Gear up for greatness with our toughest design yet, now enhanced with Galaxy AI.

Save up to $350 with instant trade-in credit.θ

A Galaxy Watch Ultra is seen close-up in the water near the surface, showcasing its design.

DURABILITY

Rugged. Reliable.
Ready for anything.

A Galaxy Watch Ultra facing forward.
  • Our most powerful smartwatch processor

  • Titanium + cushion design

  • Sapphire Crystal glass

The side view of a Galaxy Watch Ultra with the Quick Button shown.
  • Quick Button

  • BioActive Sensor

  • Dual-Frequency GPS

  • Dynamic Lug System

Power for days with our best Watch battery ever

This battery is ready to go the distance, even on your longest workout.

  • Power 
    saving mode

    Up to100 hrs
  • Exercise power saving mode

    Up to48 hrs

A Galaxy Watch Ultra is displaying a Multisport Tile screen with the distance for swimming, cycling and running shown.

CUSTOMIZATION

Bands for anything.
 One UI for everything.

Gear up for every expedition with a range of band options for all terrains. With the new One UI, powered by an all-new processor, Galaxy Watch Ultra has you covered wherever you roam.

Marine

Orange

Dark Gray

Green

White

Conquer new heights

A woman is rock climbing with a Galaxy Watch Ultra on her wrist.

Finally, a Watch as tough as your workouts. Galaxy Watch Ultra is built for top-of-the-line performance wherever the trail takes you, from frozen mountain peaks to dusty deserts.

  • Operating temperature

    -4°F to 131°F

  • Altitude resistance

    29,527 feet

Lightweight and breathable Trail Band
A hand grabbing a rock on the mountain is wearing a Galaxy Watch Ultra on the wrist.
Race yourself

Challenge yourself to perform at your peak on your next run or bike ride using tracking with Galaxy AI.

A Galaxy Watch Ultra displaying Race feature screen showing a comparison of the real-time personal record and the past record with a text '01:45 ahead,' and the current heart beat is shown.
GPS navigation

Get more than just turn-by-turn directions. Track Back with detailed guidance, including altitude.,

A Galaxy Watch Ultra displaying the Route feature screen with the destination, distance elevation gains and a 'Start' button shown.
Heart rate zones

Use improved heart rate monitoring to tailor training for the best results, personalized for you.,

A Galaxy Watch Ultra displaying Personalized HR Zone screen showing the average heart rate, the maximum heart rate, the current heart rate and the current HR Zone.

    At a glance in
    any light

    A bright display is visible in bright daylight. In low-light, the display automatically switches to Night mode that keeps info clear while staying easy on the eyes.

    A Galaxy Watch Ultra is seen in daylight. As night falls and the sky turns dark, the Night Mode watch face glows on the watch screen.

    One Watch. Many workouts.

    Triathlon athletes are running out of the ocean water after swimming. One man wearing a Galaxy Watch Ultra is taking off his swimsuit to transition into the next sport.

    Train your way to triathlon triumph. Effortlessly transition between workouts with a press of the Quick Button while monitoring every step of the journey.

    • Water and dust resistance

      10 ATM / IP68

    • Military Standard

      MIL-STD 810H

    Versatile and comfortable PeakForm Band
    A hand is making a motion to press the Quick Button on a Galaxy Watch Ultra worn on the wrist. The Triathlon workout tracking screen is shown on the watch.
    Multisport

    Switch between sports easily and create your own challenges.

    A Galaxy Watch Ultra displaying the Multisport Tile screen showing the distance set for each sport from swimming to cycling to running.
    Milestones

    Reach a milestone, get rewarded with a badge for extra motivation.

    A Galaxy Watch Ultra displaying a milestone badge and a text of 'Full triathlon'.
    Workout results

    Check your final records, including burned calories and swim analysis of your stroke with SWOLF score.

    A Galaxy Watch Ultra displaying a workout results screen for triathlon with the duration, burned calories and the number of set workouts shown.

      GALAXY AI

      Galaxy AIis here

      Know your score.
      Own your day.

      Start your day strong with a score that calculates your physical readiness based on yesterday's sleep, heart rate and steps. Energy Score with Galaxy AI analyzes key indicators of your overall condition and gives you a daily score so you can crush your goals.

      As the Energy Score goes up on the display and stops at '94', cards with different health metrics for sleep score, steps and heart rate pop up around the watch.

      Power up cycling with Functional Threshold Power

      With a power meter paired with your Galaxy smartphone, Galaxy AI quickly estimates your Functional Threshold Power based on your own heart rate. Set your training intensity according to your FTP and hit your peak performance.

      A card for FTP metrics can be seen with a text of 'Functional threshold power (FTP)' under which a text of '250 watts' for Power and '3.51 w/kg' for Power per weight can be seen.
      A man in cycling gear is riding a road race bike along a bike path.

      HEALTH

      Understand your body better

      In perfect sync
      with your phone

      Galaxy Watch Ultra connects seamlessly with your Galaxy devices and comes LTE-enabled so you can leave your phone at home.

      Your shortcut to staying in touch

      Easily stay in touch using Suggested Replies with Galaxy AI. It offers quick text-reply suggestions based on the context of your conversation.

      A Galaxy Watch Ultra displaying a message chat with Galaxy AI-generated reply suggestions shown over the device.
      Control your phone with a pinch

      Capture photos, answer calls or silence alarms — all with just a pinch. Galaxy Watch Ultra is even more powerful when paired with other Galaxy devices.

      A hand wearing a Galaxy Watch Ultra is making a Double Pinch motion. Next to it is the paired Galaxy Z Fold6 with its Cover screen featuring a camera screen capturing a man cycling.

        Nourish and flourish with AGEs index

        For the first time on Galaxy Watch, see how your diet could affect your metabolic health with the new Advanced Glycation End-products(AGES) index. Monitor your meal choices, improve your lifestyle and maintain peak performance.

        A Galaxy Watch Ultra is displaying AGEs index screen with a text 'Labs' at the top. Near the watch, a line graph is seen representing the AGEs index over a week.

        COMPARE

        It's time to find
        your Watch

        Galaxy Watch Ultra
        Galaxy Watch7
        Galaxy Watch6 Classic
        Material
        Titanium,
        Sapphire Crystal
        Material
        Armor Aluminum,
        Sapphire Crystal
        Material
        Stainless Steel,
        Sapphire Crystal
        Durability
        10 ATM+IP68,
        MIL-STD-810H
        Durability
        5ATM+IP68,
        MIL-STD-810H
        Durability
        5ATM+IP68,
        MIL-STD-810H
        Battery (typical)
        590mAh
        Battery (typical)
        425mAh/300mAh
        Battery (typical)
        425mAh/300mAh
        Processor
        3nm Processor,
        5 Core
        Processor
        3nm Processor,
        5 Core
        Processor
        5nm Processor,
        2 Core
        Storage
        32GB
        Storage
        32GB
        Storage
        16GB
        GPS,
        L1+L5 Dual-
        Frequency GPS
        GPS,
        L1+L5 Dual-
        Frequency GPS
        GPS,
        L1 GPS
        Button
        Quick button,
        Home & Back button
        Button
        Home & Back button
        Button
        Home & Back button
        Connectivity
        Bluetooth+LTE
        Connectivity
        Bluetooth/Bluetooth+LTE
        Connectivity
        Bluetooth/Bluetooth+LTE
          θ For a limited time only, on Samsung.com/Shop Samsung App, purchase a new qualifying Galaxy device (“Qualifying Purchase”), send in your qualifying trade-in device to Samsung through the Samsung Trade-In Program, and if Samsung determines your trade-in device meets all eligibility requirements, you will receive a trade-in credit specific to your qualifying trade-in device to apply toward your Qualifying Purchase. Device models that currently qualify for trade-in and trade-in credit amounts associated with those models are available on Samsung.com and the Shop Samsung App; eligible models and amounts may change at Samsung’s sole discretion. To be eligible for trade-in, your qualifying device must meet all Trade-In Program eligibility requirements, which include, but are not limited to, that the device powers on, holds a charge, and does not power off unexpectedly; has a functioning display; has no breaks or cracks in the screen (unless a cracked screen offer applies); has no breaks or cracks in the case; has no liquid damage (whether visible or not); has no other defects that go beyond normal wear and tear; is not on a black list; has a verified FCC ID; has been reset to factory settings; has all personal information removed; has all software locks disabled; and is owned by you (leased devices are not eligible). Anticipated trade-in value will be applied as a credit at time of purchase, but, if you do not send in your trade-in device within 15 days of receipt of your Qualifying Purchase, you will be charged back for the trade-in credit applied to your purchase, or if you send in your trade-in device within 15 days of receipt of your Qualifying Purchase but Samsung determines your device does not meet all eligibility requirements, you will be charged back for the trade-in credit applied to your purchase minus $25. Participation in this program does not excuse you from contracts with your carrier or retailer (or any related payments or fees) for the device that was traded in. Limit 1 trade-in per Qualifying Purchase. Samsung reserves the right to modify or discontinue this offer at any time. The Trade-In Program cannot be combined with any other Samsung, carrier or retailer promotions, discounts, or offers unless specifically provided for in the terms and conditions of such offers. Additional terms, including terms that govern the resolution of disputes, apply. Click here to learn more.

          0% APR for 12, 18, or 24 Months with Equal Payments: Available on purchases of select products charged to a Samsung Financing account. Minimum purchase: $50. 0% APR from date of eligible purchase until paid in full. Estimated monthly payment equals the eligible purchase amount multiplied by a repayment factor and rounded up to the nearest penny (repayment factors: .08333 for 12 month, .05556 for 18 month, .04167 for 24 month). Last payment may vary due to rounding. Total amount of payments will not exceed eligible purchase amount. Other transactions and fees affect overall minimum payment amount. Advertised payment amount, if any, is an estimate and may change once taxes, delivery or other charges are added. Limited time offer. Regular account terms apply to non-promo purchases. Standard Purchase APR: 29.99%. Minimum interest charge: $1. Prior purchases excluded. Account must be in good standing. Subject to credit approval. Samsung Financing account issued by TD Bank, N.A.

          F7/10/24-7/23/24, while supplies last, order and purchase a Galaxy Watch Ultra ("Qualifying Purchase") and receive a select band on us ($79.99) ("Promotional Product"). Promotional Product band size must be selected by the customer in the same transaction of Qualifying Purchase at the time of order in the Galaxy Watch Ultra buy page. The Promotional Product is limited to 1 per Qualifying Purchase. If you return or cancel your Qualifying purchase, you must return the Promotional Product with your Qualifying purchase or pay for the Promotional Product in full. Void where prohibited or restricted by law.

        1. Galaxy AI features track data and require compatible Samsung Galaxy phone, Samsung Health app and Samsung account.
        2. Consistent with 10ATM water-resistance classification (up to 100m of water for up to 10 minutes) and IP68 rating (up to 6 feet of water for up to 30 minutes). Rinse residue / dry after wet.
        3. The heart rate software functions are not intended for use in the diagnosis of disease or other conditions, or in the cure, mitigation, treatment or prevention of disease.
        4. Up to 60 hours without Power Saving mode; based on typical usage. Results may vary.
        5. Select watch bands sold separately.
        6. Available for outdoor running and cycling only. Must follow the same starting point and path as a workout selected from up to 14 days prior.
        7. GPS accuracy may be affected by weather, atmosphere and other obstructions such as buildings and tall trees.
        8. Track Back feature leads back to the start of trail for hiking or cycling. Option is only available if you have tracked your route.
        9. Night mode is only available on certain watch faces.
        10. Galaxy Watch can measure a personalized power index called ‘F.T.P.’ without the help of specialized equipment, using the power meter and the Galaxy Watch. The personalized power index tells you how well you exercise on your bike for a certain amount of time. Requires a power meter sensor that is available for Android phone.
        11. Products sold separately.
        12. Must wear device for 7 nights during a 30 night period.
        13. The Sleep Apnea Feature is an over-the-counter (OTC) software-only, mobile medical application operating on a compatible Samsung Galaxy Watch and phone. This feature is intended to detect signs of moderate to severe obstructive sleep apnea in the form of significant breathing disruptions in adult users 22 years and older, by tracking sleep twice over a ten-day monitoring period. It is intended for on-demand use. This feature is not intended for users who have previously been diagnosed with sleep apnea. Users should not use this feature to replace traditional methods of diagnosis and treatment by a qualified clinician. The data provided by this device is also not intended to assist clinicians in diagnosing sleep disorders.
        14. Requires initial pairing with an eligible Android smartphone and separate qualifying wireless plan. Your carrier may not support stand-alone voice calling, or support may be available only in certain areas. Please check with your carrier for more information. Stand-alone functionality limited if paired phone is not powered on or connected to a wireless network.
        15. Tracks data and requires compatible Samsung Galaxy phone and Samsung account.
        16. Requires compatible smartphone.
        17. Consistent with MIL-STD-810H certification: high/low temperature, altitude, humidity, immersion, salt, fog, dust, vibration, drop, etc.
        18. Portion of storage/memory occupied by existing content.
        19. Advanced Glycation End-products(AGEs) requires Samsung Account login and Samsung Health app 6.27 or later. Available on devices with Android OS 10 (Q OS) or later. AGEs is supported in Samsung Galaxy Watch7 and later released Samsung Galaxy Watch models only. Not intended for use in detection, diagnosis, treatment of any medical condition. AGEs index is for your personal reference only. Please consult a medical professional for advice.
        ");return r.attr("data-swiper-slide-index")||r.attr("data-swiper-slide-index",e),i.cache&&(this.virtual.cache[e]=r),r},appendSlide:function(t){if("object"==typeof t&&"length"in t)for(var e=0;e=0;i-=1)this.virtual.slides.splice(t[i],1),this.params.virtual.cache&&delete this.virtual.cache[t[i]],t[i]0&&0===this.$el.parents("."+this.params.slideActiveClass).length)return;var o=e.innerWidth,l=e.innerHeight,h=this.$el.offset();s&&(h.left-=this.$el[0].scrollLeft);for(var d=[[h.left,h.top],[h.left+this.width,h.top],[h.left,h.top+this.height],[h.left+this.width,h.top+this.height]],c=0;c=0&&u[0]=0&&u[1]-1?"DOMMouseScroll":function(){var e="onwheel"in t;if(!e){var i=t.createElement("div");i.setAttribute("onwheel","return;"),e="function"==typeof i.onwheel}return!e&&t.implementation&&t.implementation.hasFeature&&!0!==t.implementation.hasFeature("","")&&(e=t.implementation.hasFeature("Events.wheel","3.0")),e}()?"wheel":"mousewheel"},normalize:function(t){var e=0,i=0,s=0,r=0;return"detail"in t&&(i=t.detail),"wheelDelta"in t&&(i=-t.wheelDelta/120),"wheelDeltaY"in t&&(i=-t.wheelDeltaY/120),"wheelDeltaX"in t&&(e=-t.wheelDeltaX/120),"axis"in t&&t.axis===t.HORIZONTAL_AXIS&&(e=i,i=0),s=10*e,r=10*i,"deltaY"in t&&(r=t.deltaY),"deltaX"in t&&(s=t.deltaX),t.shiftKey&&!s&&(s=r,r=0),(s||r)&&t.deltaMode&&(1===t.deltaMode?(s*=40,r*=40):(s*=800,r*=800)),s&&!e&&(e=sMath.abs(o.pixelY)))return!0;r=o.pixelX*n}else{if(!(Math.abs(o.pixelY)>Math.abs(o.pixelX)))return!0;r=o.pixelY}else r=Math.abs(o.pixelX)>Math.abs(o.pixelY)?-o.pixelX*n:-o.pixelY;if(0===r)return!0;if(s.invert&&(r=-r),i.params.freeMode){var l={time:a.now(),delta:Math.abs(r),direction:Math.sign(r)},h=i.mousewheel.lastEventBeforeSnap,d=h&&l.time=i.minTranslate()&&(c=i.minTranslate()),c=15&&m.shift();var f=m.length?m[m.length-1]:void 0,v=m[0];if(m.push(l),f&&(l.delta>f.delta||l.direction!==f.direction))m.splice(0);else if(m.length>=15&&l.time-v.time=1&&l.delta0?.8:.2;i.mousewheel.lastEventBeforeSnap=l,m.splice(0),i.mousewheel.timeout=a.nextTick((function(){i.slideToClosest(i.params.speed,!0,void 0,g)}),0)}i.mousewheel.timeout||(i.mousewheel.timeout=a.nextTick((function(){i.mousewheel.lastEventBeforeSnap=l,m.splice(0),i.slideToClosest(i.params.speed,!0,void 0,.5)}),500))}if(d||i.emit("scroll",e),i.params.autoplay&&i.params.autoplayDisableOnInteraction&&i.autoplay.stop(),c===i.minTranslate()||c===i.maxTranslate())return!0}}else{var y={time:a.now(),delta:Math.abs(r),direction:Math.sign(r),raw:t},w=i.mousewheel.recentWheelEvents;w.length>=2&&w.shift();var b=w.length?w[w.length-1]:void 0;if(w.push(y),b?(y.direction!==b.direction||y.delta>b.delta)&&i.mousewheel.animateSlider(y):i.mousewheel.animateSlider(y),i.mousewheel.releaseScroll(y))return!0}return e.preventDefault?e.preventDefault():e.returnValue=!1,!1},animateSlider:function(t){return t.delta>=6&&a.now()-this.mousewheel.lastScrollTime0&&(this.isBeginning?s.addClass(t.disabledClass):s.removeClass(t.disabledClass),s[this.params.watchOverflow&&this.isLocked?"addClass":"removeClass"](t.lockClass)),i&&i.length>0&&(this.isEnd?i.addClass(t.disabledClass):i.removeClass(t.disabledClass),i[this.params.watchOverflow&&this.isLocked?"addClass":"removeClass"](t.lockClass))}},onPrevClick:function(t){t.preventDefault(),this.isBeginning&&!this.params.loop||this.slidePrev()},onNextClick:function(t){t.preventDefault(),this.isEnd&&!this.params.loop||this.slideNext()},init:function(){var t,e,i=this.params.navigation;(i.nextEl||i.prevEl)&&(i.nextEl&&(t=s(i.nextEl),this.params.uniqueNavElements&&"string"==typeof i.nextEl&&t.length>1&&1===this.$el.find(i.nextEl).length&&(t=this.$el.find(i.nextEl))),i.prevEl&&(e=s(i.prevEl),this.params.uniqueNavElements&&"string"==typeof i.prevEl&&e.length>1&&1===this.$el.find(i.prevEl).length&&(e=this.$el.find(i.prevEl))),t&&t.length>0&&t.on("click",this.navigation.onNextClick),e&&e.length>0&&e.on("click",this.navigation.onPrevClick),a.extend(this.navigation,{$nextEl:t,nextEl:t&&t[0],$prevEl:e,prevEl:e&&e[0]}))},destroy:function(){var t=this.navigation,e=t.$nextEl,i=t.$prevEl;e&&e.length&&(e.off("click",this.navigation.onNextClick),e.removeClass(this.params.navigation.disabledClass)),i&&i.length&&(i.off("click",this.navigation.onPrevClick),i.removeClass(this.params.navigation.disabledClass))}},st={update:function(){var t=this.rtl,e=this.params.pagination;if(e.el&&this.pagination.el&&this.pagination.$el&&0!==this.pagination.$el.length){var i,r=this.virtual&&this.params.virtual.enabled?this.virtual.slides.length:this.slides.length,n=this.pagination.$el,a=this.params.loop?Math.ceil((r-2*this.loopedSlides)/this.params.slidesPerGroup):this.snapGrid.length;if(this.params.loop?((i=Math.ceil((this.activeIndex-this.loopedSlides)/this.params.slidesPerGroup))>r-1-2*this.loopedSlides&&(i-=r-2*this.loopedSlides),i>a-1&&(i-=a),i0){var o,l,h,d=this.pagination.bullets;if(e.dynamicBullets&&(this.pagination.bulletSize=d.eq(0)[this.isHorizontal()?"outerWidth":"outerHeight"](!0),n.css(this.isHorizontal()?"width":"height",this.pagination.bulletSize*(e.dynamicMainBullets+4)+"px"),e.dynamicMainBullets>1&&void 0!==this.previousIndex&&(this.pagination.dynamicBulletIndex+=i-this.previousIndex,this.pagination.dynamicBulletIndex>e.dynamicMainBullets-1?this.pagination.dynamicBulletIndex=e.dynamicMainBullets-1:this.pagination.dynamicBulletIndex1)d.each((function(t,r){var n=s(r),a=n.index();a===i&&n.addClass(e.bulletActiveClass),e.dynamicBullets&&(a>=o&&a=d.length-e.dynamicMainBullets){for(var v=e.dynamicMainBullets;v>=0;v-=1)d.eq(d.length-v).addClass(e.bulletActiveClass+"-main");d.eq(d.length-e.dynamicMainBullets-1).addClass(e.bulletActiveClass+"-prev")}else p.prev().addClass(e.bulletActiveClass+"-prev").prev().addClass(e.bulletActiveClass+"-prev-prev"),m.next().addClass(e.bulletActiveClass+"-next").next().addClass(e.bulletActiveClass+"-next-next");else p.prev().addClass(e.bulletActiveClass+"-prev").prev().addClass(e.bulletActiveClass+"-prev-prev"),m.next().addClass(e.bulletActiveClass+"-next").next().addClass(e.bulletActiveClass+"-next-next")}}if(e.dynamicBullets){var g=Math.min(d.length,e.dynamicMainBullets+4),y=(this.pagination.bulletSize*g-this.pagination.bulletSize)/2-h*this.pagination.bulletSize,w=t?"right":"left";d.css(this.isHorizontal()?w:"top",y+"px")}}if("fraction"===e.type&&(n.find("."+e.currentClass).text(e.formatFractionCurrent(i+1)),n.find("."+e.totalClass).text(e.formatFractionTotal(a))),"progressbar"===e.type){var b;b=e.progressbarOpposite?this.isHorizontal()?"vertical":"horizontal":this.isHorizontal()?"horizontal":"vertical";var _=(i+1)/a,T=1,x=1;"horizontal"===b?T=_:x=_,n.find("."+e.progressbarFillClass).transform("translate3d(0,0,0) scaleX("+T+") scaleY("+x+")").transition(this.params.speed)}"custom"===e.type&&e.renderCustom?(n.html(e.renderCustom(this,i+1,a)),this.emit("paginationRender",this,n[0])):this.emit("paginationUpdate",this,n[0]),n[this.params.watchOverflow&&this.isLocked?"addClass":"removeClass"](e.lockClass)}},render:function(){var t=this.params.pagination;if(t.el&&this.pagination.el&&this.pagination.$el&&0!==this.pagination.$el.length){var e=this.virtual&&this.params.virtual.enabled?this.virtual.slides.length:this.slides.length,i=this.pagination.$el,s="";if("bullets"===t.type){for(var r=this.params.loop?Math.ceil((e-2*this.loopedSlides)/this.params.slidesPerGroup):this.snapGrid.length,n=0;n'+t.bulletElement+">";i.html(s),this.pagination.bullets=i.find("."+t.bulletClass)}"fraction"===t.type&&(s=t.renderFraction?t.renderFraction.call(this,t.currentClass,t.totalClass):' / ',i.html(s)),"progressbar"===t.type&&(s=t.renderProgressbar?t.renderProgressbar.call(this,t.progressbarFillClass):'',i.html(s)),"custom"!==t.type&&this.emit("paginationRender",this.pagination.$el[0])}},init:function(){var t=this,e=t.params.pagination;if(e.el){var i=s(e.el);0!==i.length&&(t.params.uniqueNavElements&&"string"==typeof e.el&&i.length>1&&1===t.$el.find(e.el).length&&(i=t.$el.find(e.el)),"bullets"===e.type&&e.clickable&&i.addClass(e.clickableClass),i.addClass(e.modifierClass+e.type),"bullets"===e.type&&e.dynamicBullets&&(i.addClass(""+e.modifierClass+e.type+"-dynamic"),t.pagination.dynamicBulletIndex=0,e.dynamicMainBullets0?(l=s-h,h=0):-h+s>r&&(l=r+h):hr&&(l=r-h),this.isHorizontal()?(n.transform("translate3d("+h+"px, 0, 0)"),n[0].style.width=l+"px"):(n.transform("translate3d(0px, "+h+"px, 0)"),n[0].style.height=l+"px"),o.hide&&(clearTimeout(this.scrollbar.timeout),a[0].style.opacity=1,this.scrollbar.timeout=setTimeout((function(){a[0].style.opacity=0,a.transition(400)}),1e3))}},setTransition:function(t){this.params.scrollbar.el&&this.scrollbar.el&&this.scrollbar.$dragEl.transition(t)},updateSize:function(){if(this.params.scrollbar.el&&this.scrollbar.el){var t=this.scrollbar,e=t.$dragEl,i=t.$el;e[0].style.width="",e[0].style.height="";var s,r=this.isHorizontal()?i[0].offsetWidth:i[0].offsetHeight,n=this.size/(this.size*this.snapGrid.length),o=n*(r/this.size);s="auto"===this.params.scrollbar.dragSize?r*n:parseInt(this.params.scrollbar.dragSize,10),this.isHorizontal()?e[0].style.width=s+"px":e[0].style.height=s+"px",i[0].style.display=n>=1?"none":"",this.params.scrollbar.hide&&(i[0].style.opacity=0),a.extend(t,{trackSize:r,divider:n,moveDivider:o,dragSize:s}),t.$el[this.params.watchOverflow&&this.isLocked?"addClass":"removeClass"](this.params.scrollbar.lockClass)}},getPointerPosition:function(t){return this.isHorizontal()?"touchstart"===t.type||"touchmove"===t.type?t.targetTouches[0].clientX:t.clientX:"touchstart"===t.type||"touchmove"===t.type?t.targetTouches[0].clientY:t.clientY},setDragPosition:function(t){var e,i=this.scrollbar,s=this.rtlTranslate,r=i.$el,n=i.dragSize,a=i.trackSize,o=i.dragStartPos;e=(i.getPointerPosition(t)-r.offset()[this.isHorizontal()?"left":"top"]-(null!==o?o:n/2))/(a-n),e=Math.max(Math.min(e,1),0),s&&(e=1-e);var l=this.minTranslate()+(this.maxTranslate()-this.minTranslate())*e;this.updateProgress(l),this.setTranslate(l),this.updateActiveIndex(),this.updateSlidesClasses()},onDragStart:function(t){var e=this.params.scrollbar,i=this.scrollbar,s=this.$wrapperEl,r=i.$el,n=i.$dragEl;this.scrollbar.isTouched=!0,this.scrollbar.dragStartPos=t.target===n[0]||t.target===n?i.getPointerPosition(t)-t.target.getBoundingClientRect()[this.isHorizontal()?"left":"top"]:null,t.preventDefault(),t.stopPropagation(),s.transition(100),n.transition(100),i.setDragPosition(t),clearTimeout(this.scrollbar.dragTimeout),r.transition(0),e.hide&&r.css("opacity",1),this.params.cssMode&&this.$wrapperEl.css("scroll-snap-type","none"),this.emit("scrollbarDragStart",t)},onDragMove:function(t){var e=this.scrollbar,i=this.$wrapperEl,s=e.$el,r=e.$dragEl;this.scrollbar.isTouched&&(t.preventDefault?t.preventDefault():t.returnValue=!1,e.setDragPosition(t),i.transition(0),s.transition(0),r.transition(0),this.emit("scrollbarDragMove",t))},onDragEnd:function(t){var e=this.params.scrollbar,i=this.scrollbar,s=this.$wrapperEl,r=i.$el;this.scrollbar.isTouched&&(this.scrollbar.isTouched=!1,this.params.cssMode&&(this.$wrapperEl.css("scroll-snap-type",""),s.transition("")),e.hide&&(clearTimeout(this.scrollbar.dragTimeout),this.scrollbar.dragTimeout=a.nextTick((function(){r.css("opacity",0),r.transition(400)}),1e3)),this.emit("scrollbarDragEnd",t),e.snapOnRelease&&this.slideToClosest())},enableDraggable:function(){if(this.params.scrollbar.el){var e=this.scrollbar,i=this.touchEventsTouch,s=this.touchEventsDesktop,r=this.params,n=e.$el[0],a=!(!o.passiveListener||!r.passiveListeners)&&{passive:!1,capture:!1},l=!(!o.passiveListener||!r.passiveListeners)&&{passive:!0,capture:!1};o.touch?(n.addEventListener(i.start,this.scrollbar.onDragStart,a),n.addEventListener(i.move,this.scrollbar.onDragMove,a),n.addEventListener(i.end,this.scrollbar.onDragEnd,l)):(n.addEventListener(s.start,this.scrollbar.onDragStart,a),t.addEventListener(s.move,this.scrollbar.onDragMove,a),t.addEventListener(s.end,this.scrollbar.onDragEnd,l))}},disableDraggable:function(){if(this.params.scrollbar.el){var e=this.scrollbar,i=this.touchEventsTouch,s=this.touchEventsDesktop,r=this.params,n=e.$el[0],a=!(!o.passiveListener||!r.passiveListeners)&&{passive:!1,capture:!1},l=!(!o.passiveListener||!r.passiveListeners)&&{passive:!0,capture:!1};o.touch?(n.removeEventListener(i.start,this.scrollbar.onDragStart,a),n.removeEventListener(i.move,this.scrollbar.onDragMove,a),n.removeEventListener(i.end,this.scrollbar.onDragEnd,l)):(n.removeEventListener(s.start,this.scrollbar.onDragStart,a),t.removeEventListener(s.move,this.scrollbar.onDragMove,a),t.removeEventListener(s.end,this.scrollbar.onDragEnd,l))}},init:function(){if(this.params.scrollbar.el){var t=this.scrollbar,e=this.$el,i=this.params.scrollbar,r=s(i.el);this.params.uniqueNavElements&&"string"==typeof i.el&&r.length>1&&1===e.find(i.el).length&&(r=e.find(i.el));var n=r.find("."+this.params.scrollbar.dragClass);0===n.length&&(n=s('
        '),r.append(n)),a.extend(t,{$el:r,el:r[0],$dragEl:n,dragEl:n[0]}),i.draggable&&t.enableDraggable()}},destroy:function(){this.scrollbar.disableDraggable()}},nt={setTransform:function(t,e){var i=this.rtl,r=s(t),n=i?-1:1,a=r.attr("data-swiper-parallax")||"0",o=r.attr("data-swiper-parallax-x"),l=r.attr("data-swiper-parallax-y"),h=r.attr("data-swiper-parallax-scale"),d=r.attr("data-swiper-parallax-opacity");if(o||l?(o=o||"0",l=l||"0"):this.isHorizontal()?(o=a,l="0"):(l=a,o="0"),o=o.indexOf("%")>=0?parseInt(o,10)*e*n+"%":o*e*n+"px",l=l.indexOf("%")>=0?parseInt(l,10)*e+"%":l*e+"px",null!=d){var c=d-(d-1)*(1-Math.abs(e));r[0].style.opacity=c}if(null==h)r.transform("translate3d("+o+", "+l+", 0px)");else{var u=h-(h-1)*(1-Math.abs(e));r.transform("translate3d("+o+", "+l+", 0px) scale("+u+")")}},setTranslate:function(){var t=this,e=t.$el,i=t.slides,r=t.progress,n=t.snapGrid;e.children("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]").each((function(e,i){t.parallax.setTransform(i,r)})),i.each((function(e,i){var a=i.progress;t.params.slidesPerGroup>1&&"auto"!==t.params.slidesPerView&&(a+=Math.ceil(e/2)-r*(n.length-1)),a=Math.min(Math.max(a,-1),1),s(i).find("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]").each((function(e,i){t.parallax.setTransform(i,a)}))}))},setTransition:function(t){void 0===t&&(t=this.params.speed),this.$el.find("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]").each((function(e,i){var r=s(i),n=parseInt(r.attr("data-swiper-parallax-duration"),10)||t;0===t&&(n=0),r.transition(n)}))}},at={getDistanceBetweenTouches:function(t){if(t.targetTouches.lengths.maxRatio&&(i.scale=s.maxRatio-1+Math.pow(i.scale-s.maxRatio+1,.5)),i.scales.touchesStart.x))return void(s.isTouched=!1);if(!this.isHorizontal()&&(Math.floor(s.minY)===Math.floor(s.startY)&&s.touchesCurrent.ys.touchesStart.y))return void(s.isTouched=!1)}t.preventDefault(),t.stopPropagation(),s.isMoved=!0,s.currentX=s.touchesCurrent.x-s.touchesStart.x+s.startX,s.currentY=s.touchesCurrent.y-s.touchesStart.y+s.startY,s.currentXs.maxX&&(s.currentX=s.maxX-1+Math.pow(s.currentX-s.maxX+1,.8)),s.currentYs.maxY&&(s.currentY=s.maxY-1+Math.pow(s.currentY-s.maxY+1,.8)),r.prevPositionX||(r.prevPositionX=s.touchesCurrent.x),r.prevPositionY||(r.prevPositionY=s.touchesCurrent.y),r.prevTime||(r.prevTime=Date.now()),r.x=(s.touchesCurrent.x-r.prevPositionX)/(Date.now()-r.prevTime)/2,r.y=(s.touchesCurrent.y-r.prevPositionY)/(Date.now()-r.prevTime)/2,Math.abs(s.touchesCurrent.x-r.prevPositionX)m&&(a=m),(o=n*y.scale)

        f&&(o=f)):(a=0,o=0),b.$imageWrapEl.transition(300).transform("translate3d("+a+"px, "+o+"px,0)"),b.$imageEl.transition(300).transform("translate3d(0,0,0) scale("+y.scale+")"))},out:function(){var t=this.zoom,e=this.params.zoom,i=t.gesture;i.$slideEl||(i.$slideEl=this.clickedSlide?s(this.clickedSlide):this.slides.eq(this.activeIndex),i.$imageEl=i.$slideEl.find("img, svg, canvas"),i.$imageWrapEl=i.$imageEl.parent("."+e.containerClass)),i.$imageEl&&0!==i.$imageEl.length&&(t.scale=1,t.currentScale=1,i.$imageWrapEl.transition(300).transform("translate3d(0,0,0)"),i.$imageEl.transition(300).transform("translate3d(0,0,0) scale(1)"),i.$slideEl.removeClass(""+e.zoomedSlideClass),i.$slideEl=void 0)},enable:function(){var t=this.zoom;if(!t.enabled){t.enabled=!0;var e=!("touchstart"!==this.touchEvents.start||!o.passiveListener||!this.params.passiveListeners)&&{passive:!0,capture:!1},i=!o.passiveListener||{passive:!1,capture:!0};o.gestures?(this.$wrapperEl.on("gesturestart",".swiper-slide",t.onGestureStart,e),this.$wrapperEl.on("gesturechange",".swiper-slide",t.onGestureChange,e),this.$wrapperEl.on("gestureend",".swiper-slide",t.onGestureEnd,e)):"touchstart"===this.touchEvents.start&&(this.$wrapperEl.on(this.touchEvents.start,".swiper-slide",t.onGestureStart,e),this.$wrapperEl.on(this.touchEvents.move,".swiper-slide",t.onGestureChange,i),this.$wrapperEl.on(this.touchEvents.end,".swiper-slide",t.onGestureEnd,e),this.touchEvents.cancel&&this.$wrapperEl.on(this.touchEvents.cancel,".swiper-slide",t.onGestureEnd,e)),this.$wrapperEl.on(this.touchEvents.move,"."+this.params.zoom.containerClass,t.onTouchMove,i)}},disable:function(){var t=this.zoom;if(t.enabled){this.zoom.enabled=!1;var e=!("touchstart"!==this.touchEvents.start||!o.passiveListener||!this.params.passiveListeners)&&{passive:!0,capture:!1},i=!o.passiveListener||{passive:!1,capture:!0};o.gestures?(this.$wrapperEl.off("gesturestart",".swiper-slide",t.onGestureStart,e),this.$wrapperEl.off("gesturechange",".swiper-slide",t.onGestureChange,e),this.$wrapperEl.off("gestureend",".swiper-slide",t.onGestureEnd,e)):"touchstart"===this.touchEvents.start&&(this.$wrapperEl.off(this.touchEvents.start,".swiper-slide",t.onGestureStart,e),this.$wrapperEl.off(this.touchEvents.move,".swiper-slide",t.onGestureChange,i),this.$wrapperEl.off(this.touchEvents.end,".swiper-slide",t.onGestureEnd,e),this.touchEvents.cancel&&this.$wrapperEl.off(this.touchEvents.cancel,".swiper-slide",t.onGestureEnd,e)),this.$wrapperEl.off(this.touchEvents.move,"."+this.params.zoom.containerClass,t.onTouchMove,i)}}},ot={loadInSlide:function(t,e){void 0===e&&(e=!0);var i=this,r=i.params.lazy;if(void 0!==t&&0!==i.slides.length){var n=i.virtual&&i.params.virtual.enabled?i.$wrapperEl.children("."+i.params.slideClass+'[data-swiper-slide-index="'+t+'"]'):i.slides.eq(t),a=n.find("."+r.elementClass+":not(."+r.loadedClass+"):not(."+r.loadingClass+")");!n.hasClass(r.elementClass)||n.hasClass(r.loadedClass)||n.hasClass(r.loadingClass)||(a=a.add(n[0])),0!==a.length&&a.each((function(t,a){var o=s(a);o.addClass(r.loadingClass);var l=o.attr("data-background"),h=o.attr("data-src"),d=o.attr("data-srcset"),c=o.attr("data-sizes");i.loadImage(o[0],h||l,d,c,!1,(function(){if(null!=i&&i&&(!i||i.params)&&!i.destroyed){if(l?(o.css("background-image",'url("'+l+'")'),o.removeAttr("data-background")):(d&&(o.attr("srcset",d),o.removeAttr("data-srcset")),c&&(o.attr("sizes",c),o.removeAttr("data-sizes")),h&&(o.attr("src",h),o.removeAttr("data-src"))),o.addClass(r.loadedClass).removeClass(r.loadingClass),n.find("."+r.preloaderClass).remove(),i.params.loop&&e){var t=n.attr("data-swiper-slide-index");if(n.hasClass(i.params.slideDuplicateClass)){var s=i.$wrapperEl.children('[data-swiper-slide-index="'+t+'"]:not(.'+i.params.slideDuplicateClass+")");i.lazy.loadInSlide(s.index(),!1)}else{var a=i.$wrapperEl.children("."+i.params.slideDuplicateClass+'[data-swiper-slide-index="'+t+'"]');i.lazy.loadInSlide(a.index(),!1)}}i.emit("lazyImageReady",n[0],o[0])}})),i.emit("lazyImageLoad",n[0],o[0])}))}},load:function(){var t=this,e=t.$wrapperEl,i=t.params,r=t.slides,n=t.activeIndex,a=t.virtual&&i.virtual.enabled,o=i.lazy,l=i.slidesPerView;function h(t){if(a){if(e.children("."+i.slideClass+'[data-swiper-slide-index="'+t+'"]').length)return!0}else if(r[t])return!0;return!1}function d(t){return a?s(t).attr("data-swiper-slide-index"):s(t).index()}if("auto"===l&&(l=0),t.lazy.initialImageLoaded||(t.lazy.initialImageLoaded=!0),t.params.watchSlidesVisibility)e.children("."+i.slideVisibleClass).each((function(e,i){var r=a?s(i).attr("data-swiper-slide-index"):s(i).index();t.lazy.loadInSlide(r)}));else if(l>1)for(var c=n;c1||o.loadPrevNextAmount&&o.loadPrevNextAmount>1){for(var u=o.loadPrevNextAmount,p=l,m=Math.min(n+p+Math.max(u,p),r.length),f=Math.max(n-Math.max(p,u),0),v=n+l;v0&&t.lazy.loadInSlide(d(y));var w=e.children("."+i.slidePrevClass);w.length>0&&t.lazy.loadInSlide(d(w))}}},lt={LinearSpline:function(t,e){var i,s,r,n,a;return this.x=t,this.y=e,this.lastIndex=t.length-1,this.interpolate=function(t){return t?(a=function(t,e){for(s=-1,i=t.length;i-s>1;)t[r=i+s>>1]0&&(this.isBeginning?this.a11y.disableEl(i):this.a11y.enableEl(i)),e&&e.length>0&&(this.isEnd?this.a11y.disableEl(e):this.a11y.enableEl(e))}},updatePagination:function(){var t=this,e=t.params.a11y;t.pagination&&t.params.pagination.clickable&&t.pagination.bullets&&t.pagination.bullets.length&&t.pagination.bullets.each((function(i,r){var n=s(r);t.a11y.makeElFocusable(n),t.a11y.addElRole(n,"button"),t.a11y.addElLabel(n,e.paginationBulletMessage.replace(/{{index}}/,n.index()+1))}))},init:function(){this.$el.append(this.a11y.liveRegion);var t,e,i=this.params.a11y;this.navigation&&this.navigation.$nextEl&&(t=this.navigation.$nextEl),this.navigation&&this.navigation.$prevEl&&(e=this.navigation.$prevEl),t&&(this.a11y.makeElFocusable(t),this.a11y.addElRole(t,"button"),this.a11y.addElLabel(t,i.nextSlideMessage),t.on("keydown",this.a11y.onEnterKey)),e&&(this.a11y.makeElFocusable(e),this.a11y.addElRole(e,"button"),this.a11y.addElLabel(e,i.prevSlideMessage),e.on("keydown",this.a11y.onEnterKey)),this.pagination&&this.params.pagination.clickable&&this.pagination.bullets&&this.pagination.bullets.length&&this.pagination.$el.on("keydown","."+this.params.pagination.bulletClass,this.a11y.onEnterKey)},destroy:function(){var t,e;this.a11y.liveRegion&&this.a11y.liveRegion.length>0&&this.a11y.liveRegion.remove(),this.navigation&&this.navigation.$nextEl&&(t=this.navigation.$nextEl),this.navigation&&this.navigation.$prevEl&&(e=this.navigation.$prevEl),t&&t.off("keydown",this.a11y.onEnterKey),e&&e.off("keydown",this.a11y.onEnterKey),this.pagination&&this.params.pagination.clickable&&this.pagination.bullets&&this.pagination.bullets.length&&this.pagination.$el.off("keydown","."+this.params.pagination.bulletClass,this.a11y.onEnterKey)}},dt={init:function(){if(this.params.history){if(!e.history||!e.history.pushState)return this.params.history.enabled=!1,void(this.params.hashNavigation.enabled=!0);var t=this.history;t.initialized=!0,t.paths=dt.getPathValues(),(t.paths.key||t.paths.value)&&(t.scrollToSlide(0,t.paths.value,this.params.runCallbacksOnInit),this.params.history.replaceState||e.addEventListener("popstate",this.history.setHistoryPopState))}},destroy:function(){this.params.history.replaceState||e.removeEventListener("popstate",this.history.setHistoryPopState)},setHistoryPopState:function(){this.history.paths=dt.getPathValues(),this.history.scrollToSlide(this.params.speed,this.history.paths.value,!1)},getPathValues:function(){var t=e.location.pathname.slice(1).split("/").filter((function(t){return""!==t})),i=t.length;return{key:t[i-2],value:t[i-1]}},setHistory:function(t,i){if(this.history.initialized&&this.params.history.enabled){var s=this.slides.eq(i),r=dt.slugify(s.attr("data-history"));e.location.pathname.includes(t)||(r=t+"/"+r);var n=e.history.state;n&&n.value===r||(this.params.history.replaceState?e.history.replaceState({value:r},null,r):e.history.pushState({value:r},null,r))}},slugify:function(t){return t.toString().replace(/\s+/g,"-").replace(/[^\w-]+/g,"").replace(/--+/g,"-").replace(/^-+/,"").replace(/-+$/,"")},scrollToSlide:function(t,e,i){if(e)for(var s=0,r=this.slides.length;s

        '),i.append(t)),t.css({height:n+"px"})):0===(t=e.find(".swiper-cube-shadow")).length&&(t=s('
        '),e.append(t)));for(var p=0;p-1&&(u=90*f+90*y,o&&(u=90*-f-90*y)),m.transform(T),h.slideShadows){var x=d?m.find(".swiper-slide-shadow-left"):m.find(".swiper-slide-shadow-top"),A=d?m.find(".swiper-slide-shadow-right"):m.find(".swiper-slide-shadow-bottom");0===x.length&&(x=s('
        '),m.append(x)),0===A.length&&(A=s('
        '),m.append(A)),x.length&&(x[0].style.opacity=Math.max(-y,0)),A.length&&(A[0].style.opacity=Math.max(y,0))}}if(i.css({"-webkit-transform-origin":"50% 50% -"+l/2+"px","-moz-transform-origin":"50% 50% -"+l/2+"px","-ms-transform-origin":"50% 50% -"+l/2+"px","transform-origin":"50% 50% -"+l/2+"px"}),h.shadow)if(d)t.transform("translate3d(0px, "+(n/2+h.shadowOffset)+"px, "+-n/2+"px) rotateX(90deg) rotateZ(0deg) scale("+h.shadowScale+")");else{var C=Math.abs(u)-90*Math.floor(Math.abs(u)/90),S=1.5-(Math.sin(2*C*Math.PI/360)/2+Math.cos(2*C*Math.PI/360)/2),E=h.shadowScale,L=h.shadowScale/S,P=h.shadowOffset;t.transform("scale3d("+E+", 1, "+L+") translate3d(0px, "+(a/2+P)+"px, "+-a/2/L+"px) rotateX(-90deg)")}var k=Y.isSafari||Y.isUiWebView?-l/2:0;i.transform("translate3d(0px,0,"+k+"px) rotateX("+(this.isHorizontal()?0:u)+"deg) rotateY("+(this.isHorizontal()?-u:0)+"deg)")},setTransition:function(t){var e=this.$el;this.slides.transition(t).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(t),this.params.cubeEffect.shadow&&!this.isHorizontal()&&e.find(".swiper-cube-shadow").transition(t)}},ft={setTranslate:function(){for(var t=this.slides,e=this.rtlTranslate,i=0;i
        '),r.append(d)),0===c.length&&(c=s('
        '),r.append(c)),d.length&&(d[0].style.opacity=Math.max(-n,0)),c.length&&(c[0].style.opacity=Math.max(n,0))}r.transform("translate3d("+l+"px, "+h+"px, 0px) rotateX("+o+"deg) rotateY("+a+"deg)")}},setTransition:function(t){var e=this,i=e.slides,s=e.activeIndex,r=e.$wrapperEl;if(i.transition(t).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(t),e.params.virtualTranslate&&0!==t){var n=!1;i.eq(s).transitionEnd((function(){if(!n&&e&&!e.destroyed){n=!0,e.animating=!1;for(var t=["webkitTransitionEnd","transitionend"],i=0;i
        '),f.append(A)),0===C.length&&(C=s('
        '),f.append(C)),A.length&&(A[0].style.opacity=g>0?g:0),C.length&&(C[0].style.opacity=-g>0?-g:0)}}(o.pointerEvents||o.prefixedPointerEvents)&&(r[0].style.perspectiveOrigin=d+"px 50%")},setTransition:function(t){this.slides.transition(t).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(t)}},gt={init:function(){var t=this.params.thumbs,e=this.constructor;t.swiper instanceof e?(this.thumbs.swiper=t.swiper,a.extend(this.thumbs.swiper.originalParams,{watchSlidesProgress:!0,slideToClickedSlide:!1}),a.extend(this.thumbs.swiper.params,{watchSlidesProgress:!0,slideToClickedSlide:!1})):a.isObject(t.swiper)&&(this.thumbs.swiper=new e(a.extend({},t.swiper,{watchSlidesVisibility:!0,watchSlidesProgress:!0,slideToClickedSlide:!1})),this.thumbs.swiperCreated=!0),this.thumbs.swiper.$el.addClass(this.params.thumbs.thumbsContainerClass),this.thumbs.swiper.on("tap",this.thumbs.onThumbClick)},onThumbClick:function(){var t=this.thumbs.swiper;if(t){var e=t.clickedIndex,i=t.clickedSlide;if(!(i&&s(i).hasClass(this.params.thumbs.slideThumbActiveClass)||null==e)){var r;if(r=t.params.loop?parseInt(s(t.clickedSlide).attr("data-swiper-slide-index"),10):e,this.params.loop){var n=this.activeIndex;this.slides.eq(n).hasClass(this.params.slideDuplicateClass)&&(this.loopFix(),this._clientLeft=this.$wrapperEl[0].clientLeft,n=this.activeIndex);var a=this.slides.eq(n).prevAll('[data-swiper-slide-index="'+r+'"]').eq(0).index(),o=this.slides.eq(n).nextAll('[data-swiper-slide-index="'+r+'"]').eq(0).index();r=void 0===a?o:void 0===o?a:o-nr?s-Math.floor(i/2)+1:s+Math.floor(i/2)-1:s>r&&(s=s-i+1),e.slideTo(s,t?0:void 0))}var o=1,l=this.params.thumbs.slideThumbActiveClass;if(this.params.slidesPerView>1&&!this.params.centeredSlides&&(o=this.params.slidesPerView),this.params.thumbs.multipleActiveThumbs||(o=1),o=Math.floor(o),e.slides.removeClass(l),e.params.loop||e.params.virtual&&e.params.virtual.enabled)for(var h=0;h0&&!s(t.target).hasClass(this.params.pagination.bulletClass)&&(!0===this.pagination.$el.hasClass(this.params.pagination.hiddenClass)?this.emit("paginationShow",this):this.emit("paginationHide",this),this.pagination.$el.toggleClass(this.params.pagination.hiddenClass))}}},{name:"scrollbar",params:{scrollbar:{el:null,dragSize:"auto",hide:!1,draggable:!1,snapOnRelease:!0,lockClass:"swiper-scrollbar-lock",dragClass:"swiper-scrollbar-drag"}},create:function(){a.extend(this,{scrollbar:{init:rt.init.bind(this),destroy:rt.destroy.bind(this),updateSize:rt.updateSize.bind(this),setTranslate:rt.setTranslate.bind(this),setTransition:rt.setTransition.bind(this),enableDraggable:rt.enableDraggable.bind(this),disableDraggable:rt.disableDraggable.bind(this),setDragPosition:rt.setDragPosition.bind(this),getPointerPosition:rt.getPointerPosition.bind(this),onDragStart:rt.onDragStart.bind(this),onDragMove:rt.onDragMove.bind(this),onDragEnd:rt.onDragEnd.bind(this),isTouched:!1,timeout:null,dragTimeout:null}})},on:{init:function(){this.scrollbar.init(),this.scrollbar.updateSize(),this.scrollbar.setTranslate()},update:function(){this.scrollbar.updateSize()},resize:function(){this.scrollbar.updateSize()},observerUpdate:function(){this.scrollbar.updateSize()},setTranslate:function(){this.scrollbar.setTranslate()},setTransition:function(t){this.scrollbar.setTransition(t)},destroy:function(){this.scrollbar.destroy()}}},{name:"parallax",params:{parallax:{enabled:!1}},create:function(){a.extend(this,{parallax:{setTransform:nt.setTransform.bind(this),setTranslate:nt.setTranslate.bind(this),setTransition:nt.setTransition.bind(this)}})},on:{beforeInit:function(){this.params.parallax.enabled&&(this.params.watchSlidesProgress=!0,this.originalParams.watchSlidesProgress=!0)},init:function(){this.params.parallax.enabled&&this.parallax.setTranslate()},setTranslate:function(){this.params.parallax.enabled&&this.parallax.setTranslate()},setTransition:function(t){this.params.parallax.enabled&&this.parallax.setTransition(t)}}},{name:"zoom",params:{zoom:{enabled:!1,maxRatio:3,minRatio:1,toggle:!0,containerClass:"swiper-zoom-container",zoomedSlideClass:"swiper-slide-zoomed"}},create:function(){var t=this,e={enabled:!1,scale:1,currentScale:1,isScaling:!1,gesture:{$slideEl:void 0,slideWidth:void 0,slideHeight:void 0,$imageEl:void 0,$imageWrapEl:void 0,maxRatio:3},image:{isTouched:void 0,isMoved:void 0,currentX:void 0,currentY:void 0,minX:void 0,minY:void 0,maxX:void 0,maxY:void 0,width:void 0,height:void 0,startX:void 0,startY:void 0,touchesStart:{},touchesCurrent:{}},velocity:{x:void 0,y:void 0,prevPositionX:void 0,prevPositionY:void 0,prevTime:void 0}};"onGestureStart onGestureChange onGestureEnd onTouchStart onTouchMove onTouchEnd onTransitionEnd toggle enable disable in out".split(" ").forEach((function(i){e[i]=at[i].bind(t)})),a.extend(t,{zoom:e});var i=1;Object.defineProperty(t.zoom,"scale",{get:function(){return i},set:function(e){if(i!==e){var s=t.zoom.gesture.$imageEl?t.zoom.gesture.$imageEl[0]:void 0,r=t.zoom.gesture.$slideEl?t.zoom.gesture.$slideEl[0]:void 0;t.emit("zoomChange",e,s,r)}i=e}})},on:{init:function(){this.params.zoom.enabled&&this.zoom.enable()},destroy:function(){this.zoom.disable()},touchStart:function(t){this.zoom.enabled&&this.zoom.onTouchStart(t)},touchEnd:function(t){this.zoom.enabled&&this.zoom.onTouchEnd(t)},doubleTap:function(t){this.params.zoom.enabled&&this.zoom.enabled&&this.params.zoom.toggle&&this.zoom.toggle(t)},transitionEnd:function(){this.zoom.enabled&&this.params.zoom.enabled&&this.zoom.onTransitionEnd()},slideChange:function(){this.zoom.enabled&&this.params.zoom.enabled&&this.params.cssMode&&this.zoom.onTransitionEnd()}}},{name:"lazy",params:{lazy:{enabled:!1,loadPrevNext:!1,loadPrevNextAmount:1,loadOnTransitionStart:!1,elementClass:"swiper-lazy",loadingClass:"swiper-lazy-loading",loadedClass:"swiper-lazy-loaded",preloaderClass:"swiper-lazy-preloader"}},create:function(){a.extend(this,{lazy:{initialImageLoaded:!1,load:ot.load.bind(this),loadInSlide:ot.loadInSlide.bind(this)}})},on:{beforeInit:function(){this.params.lazy.enabled&&this.params.preloadImages&&(this.params.preloadImages=!1)},init:function(){this.params.lazy.enabled&&!this.params.loop&&0===this.params.initialSlide&&this.lazy.load()},scroll:function(){this.params.freeMode&&!this.params.freeModeSticky&&this.lazy.load()},resize:function(){this.params.lazy.enabled&&this.lazy.load()},scrollbarDragMove:function(){this.params.lazy.enabled&&this.lazy.load()},transitionStart:function(){this.params.lazy.enabled&&(this.params.lazy.loadOnTransitionStart||!this.params.lazy.loadOnTransitionStart&&!this.lazy.initialImageLoaded)&&this.lazy.load()},transitionEnd:function(){this.params.lazy.enabled&&!this.params.lazy.loadOnTransitionStart&&this.lazy.load()},slideChange:function(){this.params.lazy.enabled&&this.params.cssMode&&this.lazy.load()}}},{name:"controller",params:{controller:{control:void 0,inverse:!1,by:"slide"}},create:function(){a.extend(this,{controller:{control:this.params.controller.control,getInterpolateFunction:lt.getInterpolateFunction.bind(this),setTranslate:lt.setTranslate.bind(this),setTransition:lt.setTransition.bind(this)}})},on:{update:function(){this.controller.control&&this.controller.spline&&(this.controller.spline=void 0,delete this.controller.spline)},resize:function(){this.controller.control&&this.controller.spline&&(this.controller.spline=void 0,delete this.controller.spline)},observerUpdate:function(){this.controller.control&&this.controller.spline&&(this.controller.spline=void 0,delete this.controller.spline)},setTranslate:function(t,e){this.controller.control&&this.controller.setTranslate(t,e)},setTransition:function(t,e){this.controller.control&&this.controller.setTransition(t,e)}}},{name:"a11y",params:{a11y:{enabled:!0,notificationClass:"swiper-notification",prevSlideMessage:"Previous slide",nextSlideMessage:"Next slide",firstSlideMessage:"This is the first slide",lastSlideMessage:"This is the last slide",paginationBulletMessage:"Go to slide {{index}}"}},create:function(){var t=this;a.extend(t,{a11y:{liveRegion:s('')}}),Object.keys(ht).forEach((function(e){t.a11y[e]=ht[e].bind(t)}))},on:{init:function(){this.params.a11y.enabled&&(this.a11y.init(),this.a11y.updateNavigation())},toEdge:function(){this.params.a11y.enabled&&this.a11y.updateNavigation()},fromEdge:function(){this.params.a11y.enabled&&this.a11y.updateNavigation()},paginationUpdate:function(){this.params.a11y.enabled&&this.a11y.updatePagination()},destroy:function(){this.params.a11y.enabled&&this.a11y.destroy()}}},{name:"history",params:{history:{enabled:!1,replaceState:!1,key:"slides"}},create:function(){a.extend(this,{history:{init:dt.init.bind(this),setHistory:dt.setHistory.bind(this),setHistoryPopState:dt.setHistoryPopState.bind(this),scrollToSlide:dt.scrollToSlide.bind(this),destroy:dt.destroy.bind(this)}})},on:{init:function(){this.params.history.enabled&&this.history.init()},destroy:function(){this.params.history.enabled&&this.history.destroy()},transitionEnd:function(){this.history.initialized&&this.history.setHistory(this.params.history.key,this.activeIndex)},slideChange:function(){this.history.initialized&&this.params.cssMode&&this.history.setHistory(this.params.history.key,this.activeIndex)}}},{name:"hash-navigation",params:{hashNavigation:{enabled:!1,replaceState:!1,watchState:!1}},create:function(){a.extend(this,{hashNavigation:{initialized:!1,init:ct.init.bind(this),destroy:ct.destroy.bind(this),setHash:ct.setHash.bind(this),onHashCange:ct.onHashCange.bind(this)}})},on:{init:function(){this.params.hashNavigation.enabled&&this.hashNavigation.init()},destroy:function(){this.params.hashNavigation.enabled&&this.hashNavigation.destroy()},transitionEnd:function(){this.hashNavigation.initialized&&this.hashNavigation.setHash()},slideChange:function(){this.hashNavigation.initialized&&this.params.cssMode&&this.hashNavigation.setHash()}}},{name:"autoplay",params:{autoplay:{enabled:!1,delay:3e3,waitForTransition:!0,disableOnInteraction:!0,stopOnLastSlide:!1,reverseDirection:!1}},create:function(){var t=this;a.extend(t,{autoplay:{running:!1,paused:!1,run:ut.run.bind(t),start:ut.start.bind(t),stop:ut.stop.bind(t),pause:ut.pause.bind(t),onVisibilityChange:function(){"hidden"===document.visibilityState&&t.autoplay.running&&t.autoplay.pause(),"visible"===document.visibilityState&&t.autoplay.paused&&(t.autoplay.run(),t.autoplay.paused=!1)},onTransitionEnd:function(e){t&&!t.destroyed&&t.$wrapperEl&&e.target===this&&(t.$wrapperEl[0].removeEventListener("transitionend",t.autoplay.onTransitionEnd),t.$wrapperEl[0].removeEventListener("webkitTransitionEnd",t.autoplay.onTransitionEnd),t.autoplay.paused=!1,t.autoplay.running?t.autoplay.run():t.autoplay.stop())}}})},on:{init:function(){this.params.autoplay.enabled&&(this.autoplay.start(),document.addEventListener("visibilitychange",this.autoplay.onVisibilityChange))},beforeTransitionStart:function(t,e){this.autoplay.running&&(e||!this.params.autoplay.disableOnInteraction?this.autoplay.pause(t):this.autoplay.stop())},sliderFirstMove:function(){this.autoplay.running&&(this.params.autoplay.disableOnInteraction?this.autoplay.stop():this.autoplay.pause())},touchEnd:function(){this.params.cssMode&&this.autoplay.paused&&!this.params.autoplay.disableOnInteraction&&this.autoplay.run()},destroy:function(){this.autoplay.running&&this.autoplay.stop(),document.removeEventListener("visibilitychange",this.autoplay.onVisibilityChange)}}},{name:"effect-fade",params:{fadeEffect:{crossFade:!1}},create:function(){a.extend(this,{fadeEffect:{setTranslate:pt.setTranslate.bind(this),setTransition:pt.setTransition.bind(this)}})},on:{beforeInit:function(){if("fade"===this.params.effect){this.classNames.push(this.params.containerModifierClass+"fade");var t={slidesPerView:1,slidesPerColumn:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!0};a.extend(this.params,t),a.extend(this.originalParams,t)}},setTranslate:function(){"fade"===this.params.effect&&this.fadeEffect.setTranslate()},setTransition:function(t){"fade"===this.params.effect&&this.fadeEffect.setTransition(t)}}},{name:"effect-cube",params:{cubeEffect:{slideShadows:!0,shadow:!0,shadowOffset:20,shadowScale:.94}},create:function(){a.extend(this,{cubeEffect:{setTranslate:mt.setTranslate.bind(this),setTransition:mt.setTransition.bind(this)}})},on:{beforeInit:function(){if("cube"===this.params.effect){this.classNames.push(this.params.containerModifierClass+"cube"),this.classNames.push(this.params.containerModifierClass+"3d");var t={slidesPerView:1,slidesPerColumn:1,slidesPerGroup:1,watchSlidesProgress:!0,resistanceRatio:0,spaceBetween:0,centeredSlides:!1,virtualTranslate:!0};a.extend(this.params,t),a.extend(this.originalParams,t)}},setTranslate:function(){"cube"===this.params.effect&&this.cubeEffect.setTranslate()},setTransition:function(t){"cube"===this.params.effect&&this.cubeEffect.setTransition(t)}}},{name:"effect-flip",params:{flipEffect:{slideShadows:!0,limitRotation:!0}},create:function(){a.extend(this,{flipEffect:{setTranslate:ft.setTranslate.bind(this),setTransition:ft.setTransition.bind(this)}})},on:{beforeInit:function(){if("flip"===this.params.effect){this.classNames.push(this.params.containerModifierClass+"flip"),this.classNames.push(this.params.containerModifierClass+"3d");var t={slidesPerView:1,slidesPerColumn:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!0};a.extend(this.params,t),a.extend(this.originalParams,t)}},setTranslate:function(){"flip"===this.params.effect&&this.flipEffect.setTranslate()},setTransition:function(t){"flip"===this.params.effect&&this.flipEffect.setTransition(t)}}},{name:"effect-coverflow",params:{coverflowEffect:{rotate:50,stretch:0,depth:100,modifier:1,slideShadows:!0}},create:function(){a.extend(this,{coverflowEffect:{setTranslate:vt.setTranslate.bind(this),setTransition:vt.setTransition.bind(this)}})},on:{beforeInit:function(){"coverflow"===this.params.effect&&(this.classNames.push(this.params.containerModifierClass+"coverflow"),this.classNames.push(this.params.containerModifierClass+"3d"),this.params.watchSlidesProgress=!0,this.originalParams.watchSlidesProgress=!0)},setTranslate:function(){"coverflow"===this.params.effect&&this.coverflowEffect.setTranslate()},setTransition:function(t){"coverflow"===this.params.effect&&this.coverflowEffect.setTransition(t)}}},{name:"thumbs",params:{thumbs:{multipleActiveThumbs:!0,swiper:null,slideThumbActiveClass:"swiper-slide-thumb-active",thumbsContainerClass:"swiper-container-thumbs"}},create:function(){a.extend(this,{thumbs:{swiper:null,init:gt.init.bind(this),update:gt.update.bind(this),onThumbClick:gt.onThumbClick.bind(this)}})},on:{beforeInit:function(){var t=this.params.thumbs;t&&t.swiper&&(this.thumbs.init(),this.thumbs.update(!0))},slideChange:function(){this.thumbs.swiper&&this.thumbs.update()},update:function(){this.thumbs.swiper&&this.thumbs.update()},resize:function(){this.thumbs.swiper&&this.thumbs.update()},observerUpdate:function(){this.thumbs.swiper&&this.thumbs.update()},setTransition:function(t){var e=this.thumbs.swiper;e&&e.setTransition(t)},beforeDestroy:function(){var t=this.thumbs.swiper;t&&this.thumbs.swiperCreated&&t&&t.destroy()}}}];return void 0===q.use&&(q.use=q.Class.use,q.installModule=q.Class.installModule),q.use(yt),q},"object"==typeof exports&&"undefined"!=typeof module?module.exports=s():"function"==typeof define&&define.amd?define(s):(i=i||self).Swiper=s(); /*! * ANI-Util JavaScript Library v1.0 * * Copyright 2021. Yoon jae-ho * Released under the MIT license * * Date: 2021-02-09 */ var r={scrollController:function(){let t,e,i,s,r={},n=navigator.userAgent.toLowerCase(),a=n.indexOf("mac os")>-1,o=document.scrollingElement||document.documentElement||document.body.parentNode||document.body,l=a?60:120,h=o===document.body&&document.documentElement?document.documentElement:o,d=!1,c=null;var u=function(s){t=s.speed?a?s.speed/2:s.speed:l,e=s.duration?s.duration:.6,i=o.scrollTop},p={wheel:function(){"Netscape"==navigator.appName&&-1!=navigator.userAgent.search("Trident")||-1!=n.indexOf("msie")?document.documentElement.addEventListener("mousewheel",m.scrollEvent,{passive:!1}):document.documentElement.addEventListener("wheel",m.scrollEvent,{passive:!1})},scroll:function(){window.addEventListener("scroll",(function(){"hidden"!=document.documentElement.style.overflow&&"hidden"!=document.body.style.overflow&&(d||(i=o.scrollTop))}))}},m={scrollEvent:function(e){if("hidden"!=document.documentElement.style.overflow&&"hidden"!=document.body.style.overflow){e.preventDefault();var n=document.body.getAttribute("data-scroll-speed"),a=m.normalizeWheelDelta(e),l=r.currDelta&&n?n:n||t?t:120;i+=-a*l,s=Math.max(0,Math.min(i,o.scrollHeight-h.clientHeight)),m.update()}},normalizeWheelDelta:function(t){return t.detail?t.wheelDelta?t.wheelDelta/t.detail/40*(t.detail>0?1:-1):-t.detail/3:t.wheelDelta/120},update:function(){var t=s-o.scrollTop,r=0>=Math.ceil(o.scrollTop+t)?0:i>s?s:Math.ceil(o.scrollTop+t);d=!0,TweenMax.to(o,e,{ease:"circ.out",scrollTop:r,onComplete:function(){clearTimeout(c),c=null,c=setTimeout((function(){d=!1,i=o.scrollTop}),500)}}),i=s&&(i=s)}};return{init:function(t){return u(t),p.wheel(),p.scroll(),this.opt=t},destroy:function(t){document.documentElement.removeEventListener("mousewheel",m.scrollEvent),document.documentElement.removeEventListener("wheel",m.scrollEvent),t&&(r={})}}}};window.WATCH=window.WATCH||{};const n={isIosDevice:(m=/iPad|iPhone|iPod/.test(navigator.userAgent),m?document.documentElement.classList.add("isIosDevice"):document.documentElement.classList.add("isNotIosDevice"),m),checkGlobal:void(0===location.pathname.indexOf("/global/galaxy")||!0===window.IS_CAMPAIGN?document.documentElement.classList.add("global"):document.documentElement.classList.add("dotcom")),checkOS:(p=navigator.appVersion.match(/(mac|win|linux)/i),p=p?p[1].toLowerCase():"",void document.documentElement.classList.add(p)),isFireFox:void(/firefox/i.test(navigator.userAgent)&&document.documentElement.classList.add("firefox")),isWebkit:void(/applewebkit/i.test(navigator.userAgent)&&document.documentElement.classList.add("webkit")),isChrome:void(/chrome/i.test(navigator.userAgent)&&document.documentElement.classList.add("chrome")),isOpera:void(/opera/i.test(navigator.userAgent)&&document.documentElement.classList.add("opera")),isIos:void(/ip(ad|hone|od)/i.test(navigator.userAgent)&&document.documentElement.classList.add("ios")),isCrIos:void(/crios/i.test(navigator.userAgent)&&document.documentElement.classList.add("crios")),isAndroid:void(/android/i.test(navigator.userAgent)&&document.documentElement.classList.add("android")),isSafari:(c=/applewebkit/i.test(navigator.userAgent),u=/chrome/i.test(navigator.userAgent),void(c&&!u&&document.documentElement.classList.add("safari"))),isHuawei:void(/HUAWEICLT/i.test(navigator.userAgent)&&document.documentElement.classList.add("huawei")),isUCBrowser:void(/UCBrowser/i.test(navigator.userAgent)&&document.documentElement.classList.add("ucbrowser")),winSize:(o="Netscape"===navigator.appName,l=-1!==navigator.appVersion.indexOf("Mac"),h=-1!==navigator.userAgent.indexOf("Safari"),d=-1!==navigator.userAgent.indexOf("Chrome"),o&&!l&&h&&!d?function(){return{w:e(t).width(),h:e(t).height()}}:function(){return{w:window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,h:window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight}}),requestAFrame:window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(t){return window.setTimeout(t,1e3/60)},cancelAFrame:window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.webkitCancelRequestAnimationFrame||window.mozCancelAnimationFrame||window.oCancelAnimationFrame||window.msCancelAnimationFrame||function(t){window.clearTimeout(t)},isObject:function(t){return"object"==typeof t&&null!==t&&t.constructor&&t.constructor===Object},def:function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];for(var i=Object(t[0]),s=1;s-1?"global":"jp"},isLowNetwork:function(){var t=n.getCookie("___GALAXY_SPEED")||n.getCookie("__COM_SPEED");return null!=t&&null!=t&&("L"==t||"H"!=t&&void 0)},getNavHeight:function(){var t=0,e=document.querySelector(".pd-g-header-navigation")||document.querySelector("#subnav")||document.querySelector(".sticky-menu")||document.querySelector(".pd-g-floating-nav");if(e)if(e.classList.contains("pd-g-header-navigation")){var i=e.querySelector(".pd-header-navigation"),s=i.querySelector(".pd-header-navigation__menu-wrap");t=i.clientHeight+s.clientHeight}else t=e.clientHeight;return t},isBrokenFixed:function(){var t=window.innerWidth,e=window.innerHeight,i=!1;return document.documentElement.classList.remove("is-broken-fixed"),t>=1440&&e-1)t="trident/.*rv:";else{if(!(e.search("edge/")>-1))return-1;t="edge/"}return null!=new RegExp(t+"([0-9]{1,})(\\.{0,}[0-9]{0,1})").exec(e)?(document.documentElement.classList.add("isIEorEdge"),parseFloat(RegExp.$1+RegExp.$2)):-1}(),page:{scrollLock:{className:"is-no-scroll",barWidth:function(){return window.innerWidth-document.documentElement.clientWidth},el:e("html"),run:function(t){document.documentElement.style.paddingRight=t+"px"},off:function(){this.barWidth(),this.el.removeClass(this.className),this.el.removeClass("hive-layer-scroll-lock"),this.run(0)},on:function(){var t=this.barWidth();this.el.addClass(this.className),this.run(t)}}},MIN_VIEW_HEIGHT:400,RESPONSIVE:{PC:{NAME:"pc",WIDTH:1440},TABLET:{NAME:"tablet",WIDTH:1024},MOBILE:{NAME:"mobile",WIDTH:767}}};var a,o,l,h,d,c,u,p,m;WATCH.UTILS=n,function(){"use strict";window.WATCH=window.WATCH||{};const t=WATCH.UTILS;WATCH.ImageLoader=class{constructor(t=container,e){const i={el:t,lazyClass:".js-img-src",lazyCompleteClass:"load-complete",responsiveClass:e.responsiveClass||".js-res-img",loadOption:e.loadOption,visiblePoint:e.visiblePoint?e.visiblePoint:0,useDefaultImg:e.useDefaultImg,resizeStart:null};this.opts=i,this.classes=i.classes,this.events={load:this.onLoadHandler.bind(this),resize:this.onResizeHandler.bind(this),scroll:this.lazyEvent.bind(this)},this.el=document.querySelector(t),this.init()}init(){this.initOpts(),this.getLazyImage(),this.getResponsiveImage(),this.bindEvents()}initOpts(){this.targetAttr=this.opts.loadOption[0].attribute,this.responsiveCheck=this.opts.loadOption,this.dynamicCallCount=0,this.dynamicLoadedComplate=!1,this.opts.useDefaultImg&&this.setDefaultImage()}getLazyImage(){let t=[];const e=this.el.children;Array.from(e).forEach((e=>{if(!e.classList.contains("is-feature-hide")){const i=e.querySelectorAll(this.opts.lazyClass);t.push(...i)}})),this.lazyImages=t,this.lazyLength=t.length}getResponsiveImage(){const t=this.el.querySelectorAll(this.opts.responsiveClass);this.responsiveImages=t,this.responsiveLength=t.length}bindEvents(){window.addEventListener("load",this.events.load),window.addEventListener("scroll",this.events.scroll),this.responsiveCheck&&window.addEventListener("resize",this.events.resize)}onLoadHandler(){this.events.resize(),this.events.scroll(),setTimeout((()=>{this.responsiveHandler(),this.lazyEvent()}),300),window.removeEventListener("load",this.events.load)}onResizeHandler(){clearTimeout(this.opts.resizeStart),this.opts.resizeStart=setTimeout((()=>{this.responsiveHandler(),this.lazyEvent()}),150)}lazyEvent(){this.setLazyImage(),this.lazyLength===this.lazyCompleteLength&&window.removeEventListener("scroll",this.events.scroll)}responsiveHandler(){this.windowWidth=window.innerWidth;let t=this.opts.loadOption.length;for(let e=0;es,r&&this.opts.loadOption[e].attribute!==this.oldAttr&&(this.targetAttr=this.opts.loadOption[e].attribute,this.oldAttr=this.targetAttr,this.attrIndex=e,this.dynamicCallCount=0,this.setResponsiveImage())}}setResponsiveImage(t){if(t)for(let e=0;e-1||s.indexOf(".png")>-1)&&(s=`${s}?imbypass=true`),t[e].classList.contains(this.opts.lazyCompleteClass)||(t[e].setAttribute("src",s),t[e].classList.add(this.opts.lazyCompleteClass))}else for(let t=0;t-1||i.indexOf(".png")>-1)&&(i=`${i}?imbypass=true`),e.classList.contains(this.opts.lazyCompleteClass)&&e.setAttribute("src",i)}}checkCompleteImage(){let t=this.el.querySelectorAll("."+this.opts.lazyCompleteClass);this.lazyCompleteLength=t.length}setDefaultImage(){for(var t=0;tl&&ah||ah||a>l&&o-1||t.indexOf(".png")>-1)&&(t=`${t}?imbypass=true`),!r.classList.contains(this.opts.lazyCompleteClass)){r.setAttribute("src",t);var e=()=>{1==this.opts.lazyClass.split(" ").length&&r.classList.remove(c),this.checkCompleteImage(),r.removeEventListener("load",e)};r.addEventListener("load",e),r.classList.add(this.opts.lazyCompleteClass)}}}}findRemainingImageAttr(t){for(var e=this.opts.loadOption.length,i=0;i=0;e--){let i=t.getAttribute(this.opts.loadOption[e].attribute);if(i)return i;if(0==e&&null==i)return this.findRemainingImageAttr(t)}}findImageHandler(t){return 0!==this.attrIndex?this.findNextImageAttr(t):this.findRemainingImageAttr(t)}}}(),function(){"use strict";window.WATCH=window.WATCH||{};const t=WATCH.UTILS,e=t.RESPONSIVE;WATCH.VideoLoader=class{constructor(t=container,e){const i={el:t,lazyClass:e.lazyClass||".js-video-src",responsiveClass:e.responsiveClass||".js-res-video",imageLazyCompleteClass:"load-complete",notLoadElement:e.notLoadElement||[],loadOption:e.loadOption,visiblePoint:e.visiblePoint?e.visiblePoint:0,resizeStart:null,classes:{loaded:"loaded",ended:"ended"}};this.opts=i,this.classes=i.classes,this.el=document.querySelector(t),this.init()}init(){this.initOpts(),this.getLazyVideo(),this.getResponsiveVideo(),this.bindEvents()}initOpts(){this.getCurrentDevice();const t="mobile"!==this.currentDevice?0:1;this.prevSrcArray=[],this.targetAttr=this.opts.loadOption[t].attribute,this.responsiveCheck=this.opts.loadOption,this.videoCallStack=[]}getLazyVideo(){let t=Array.from(this.el.querySelectorAll(this.opts.lazyClass)).filter((t=>{t.isVideoInit=!1;for(let e=0;e{if(t.querySelector("video")&&!t.closest(".is-feature-hide"))return t})),this.lazyVideos=t,this.lazyLength=t.length}getResponsiveVideo(){let t=Array.from(this.el.querySelectorAll(this.opts.responsiveClass)).filter((t=>{for(let e=0;e=e.TABLET.WIDTH?this.currentDevice="desktop":this.winWidth>e.MOBILE.WIDTH&&this.winWidth{this.getCurrentDevice(),this.responsiveHandler(),this.lazyEvent()}),80)}lazyEvent(){this.setLazyVideo(),this.lazyLength===this.lazyCompleteLength&&window.removeEventListener("scroll",this.lazyEvent.bind(this))}responsiveHandler(){this.windowWidth=window.innerWidth;let t=this.opts.loadOption.length;for(let e=0;es,r&&this.opts.loadOption[e].attribute!==this.oldAttr&&(this.targetAttr=this.opts.loadOption[e].attribute,this.oldAttr=this.targetAttr,this.attrIndex=e,this.setResponsiveVideo())}}setResponsiveVideo(){for(let t=0;t{const e=t.getAttribute("type");e.indexOf("webm")>-1&&(t.src=s+".webm"+(void 0!==window.GALAXY||window.GALAXY?"":"?imbypass=true")),e.indexOf("mp4")>-1&&(t.src=s+".mp4"+(void 0!==window.GALAXY||window.GALAXY?"":"?imbypass=true"))})),i.isCanplayThrough=!1,i.load(),i.addEventListener("canplaythrough",(()=>{window.setTimeout((()=>{i.isCanplayThrough=!0,e.classList.add(this.classes.loaded)}),500),this.checkCompleteVideo()}),{once:!0}))}}setLazyVideo(){for(let t=0;tn-window.innerHeight*(0!=window.pageYOffset?this.opts.visiblePoint:0)&&e{this.checkCompleteVideo(),this.videoCallStack.splice(0,1),this.videoCallStack.length>0&&this.setVideoSrc()},l=()=>{window.fetch(s+".webm"+(void 0!==window.GALAXY||window.GALAXY?"":"?imbypass=true"),{mode:"no-cors"}).then((t=>{if(404===t.status)return fetch(s+".mp4"+(void 0!==window.GALAXY||window.GALAXY?"":"?imbypass=true"),{mode:"no-cors"})})).then((t=>{404===t.status&&o()})).catch((()=>{o()}))},h=()=>{window.setTimeout((()=>{i.isCanplayThrough=!0,e.classList.add(this.classes.loaded)}),500),1==this.opts.lazyClass.split(" ").length&&e.classList.remove(n),o()};this.prevSrcArray[t]!==a&&(i.querySelectorAll("source").forEach((t=>{const e=t.getAttribute("type");e.indexOf("webm")>-1&&(t.src=s+".webm"+(void 0!==window.GALAXY||window.GALAXY?"":"?imbypass=true")),e.indexOf("mp4")>-1&&(t.src=s+".mp4"+(void 0!==window.GALAXY||window.GALAXY?"":"?imbypass=true"))})),i.isCanplayThrough=!1,i.load(),i.addEventListener("canplaythrough",h,{once:!0}),i.addEventListener("error",l,!0),e.isVideoInit=!0,this.prevSrcArray[t]=a)}checkCompleteVideo(){let t=Array.from(this.el.querySelectorAll("."+this.classes.loaded)).filter((t=>{for(let e=0;e=e.TABLET.WIDTH?this.currentDevice="desktop":this.winWidth>e.MOBILE.WIDTH&&this.winWidth{const e=t.getAttribute("type");e.indexOf("webm")>-1&&(t.src=i+".webm"),e.indexOf("mp4")>-1&&(t.src=i+".mp4"),this.video.load()})),this.videoElement.classList.remove(this.classes.playing),this.videoElement.classList.remove(this.classes.paused),this.video.addEventListener("canplaythrough",(()=>{t.isLowNetwork()||this.onPlay()}),{once:!0})),this.prevVideoSrc=s}}onLoad(e){if(e===this.videoElement){const e="mobile"!==this.currentDevice?"data-media-pc":"data-media-mo",i=this.videoElement.getAttribute(e);this.videoElement.playState=!1,this.video.querySelectorAll("source").forEach((t=>{const e=t.getAttribute("type");e.indexOf("webm")>-1&&(t.src=i+".webm"),e.indexOf("mp4")>-1&&(t.src=i+".mp4"),this.video.load()})),this.video.isCanplayThrough=!1,this.video.addEventListener("canplaythrough",(()=>{this.video.isCanplayThrough=!0,t.isLowNetwork()||this.onPlay()}),{once:!0})}}onPlay(t){const e=()=>{if(!this.videoElement.playState){this.video.currentTime===this.video.duration&&(this.video.currentTime=0),this.autoPlay&&(this.videoElement.autoPlayState=!0),this.videoElement.playState=!0,this.videoElement.classList.remove(this.classes.ended),this.videoElement.classList.remove(this.classes.paused);const t=()=>{this.video.isCanplayThrough&&this.video.readyState>3?(cancelAnimationFrame(this.opts.videoFrame),clearTimeout(this.opts.videoPlayTimeout),this.opts.videoPlayTimeout=setTimeout((()=>{this.video.play(),this.updateController(),this.outCallback("updatePlayState",!0),this.videoElement.classList.remove(this.classes.ended),this.videoElement.classList.remove(this.classes.paused),this.videoElement.classList.add(this.classes.playing)}),250)):this.opts.videoFrame=requestAnimationFrame(t)};this.opts.videoFrame=requestAnimationFrame(t),this.video.addEventListener("ended",this.updatePlayEnded.bind(this),{once:!0})}};t?t===this.videoElement&&e():e()}onPause(){this.video.paused||this.video.pause(),this.videoElement.playState=!1,this.videoElement.classList.remove(this.classes.ended),this.videoElement.classList.remove(this.classes.playing),this.videoElement.classList.add(this.classes.paused),this.updateController()}onEnded(){this.video.readyState>3&&(this.video.ended||this.video.pause(),this.video.currentTime=this.video.duration,this.videoElement.playState=!1,this.videoElement.classList.add(this.classes.ended),this.videoElement.classList.remove(this.classes.playing),this.videoElement.classList.remove(this.classes.paused),this.updateController())}onReset(t){this.videoElement.playState||(cancelAnimationFrame(this.opts.videoFrame),clearTimeout(this.opts.videoPlayTimeout));const e=()=>{this.video.pause(),this.video.currentTime=0,this.videoElement.playState=!1,this.autoPlay&&(this.videoElement.autoPlayState=!1),this.videoElement.classList.remove(this.classes.ended),this.videoElement.classList.remove(this.classes.playing),this.videoElement.classList.remove(this.classes.paused),this.updateController()};t?t===this.videoElement&&e():e()}onCanplayThrough(){const t=this.opts.videoLazyClass.split("."),e=t[t.length-1];this.useController&&window.setTimeout((()=>{this.videoController.style.display="block"}),500),this.videoElement.classList.add(this.classes.loaded),1==this.opts.videoLazyClass.split(" ").length&&this.videoElement.classList.remove(e),this.isCanplay=!0,this.onScrollHandler(),this.isCanplay=!1}onTimeUpdate(){const t={el:this.videoElement,duration:this.video.duration,currentTime:this.video.currentTime,playState:this.videoElement.playState,controller:this.videoController};this.outCallback("updateTime",t)}onClickController(t){t.preventDefault(),this.videoElement.playState?this.onPause():this.onPlay()}onVideoPlay(){this.videoElement.playState=!0,this.videoElement.classList.remove(this.classes.ended),this.videoElement.classList.add(this.classes.playing),this.videoElement.classList.remove(this.classes.paused),this.updateController(),this.outCallback("updatePlayState",!0)}onVideoPause(){this.videoElement.playState=!1,this.videoElement.classList.remove(this.classes.ended),this.videoElement.classList.remove(this.classes.playing),this.videoElement.classList.add(this.classes.paused),this.updateController(),this.outCallback("updatePlayState",!1)}onVideoEnded(){this.videoElement.playState=!1,this.videoElement.classList.add(this.classes.ended),this.videoElement.classList.remove(this.classes.playing),this.videoElement.classList.remove(this.classes.paused),this.updateController(),this.outCallback("updatePlayState",!1)}updatePlayEnded(){this.onPause()}updateController(){if(!this.useController)return;this.videoElement.playState?this.videoController.classList.add(this.classes.isPaused):this.videoController.classList.remove(this.classes.isPaused);const t={el:this.videoController,playState:this.videoElement.playState};this.outCallback("updateController",t),this.outCallback("updatePlayState",this.videoElement.playState)}onScrollHandler(){if(this.videoElement.closest(".cm-layer"))return;const e=scrollY>this.lastScrollY?"down":"up",i=t.getHeight(this.videoElement)*this.opts.playOffset,s=t.getScroll().top,r=t.getScroll().bottom,n=t.getOffset(this.videoElement).top,a=t.getOffset(this.videoElement).bottom,o=this.videoElement.classList.contains(this.classes.playing)&&this.videoElement.playState,l=this.videoElement.classList.contains(this.classes.paused)&&!this.videoElement.playState,h=this.videoElement.classList.contains(this.classes.ended)&&!this.videoElement.playState;if("oneWay"===this.opts.playType)if(r>=n+i&&sa&&this.autoPlay&&(this.videoElement.autoPlayState?(o||l)&&this.onEnded():this.videoElement.classList.add(this.classes.ended));else"reverse"===this.opts.playType&&(r>=n+i&&sa||r{this.isCanplay=!0,this.onReset(),this.onScrollHandler(),this.isCanplay=!1}),100)}onResizeHandler(){t.winSize().w!==this.winWidth&&(this.winWidth=t.winSize().w,null==this.opts.resizeStart&&(this.opts.resizeStart=this.winWidth,this.resizeAnimateFunc()),window.clearTimeout(this.resizeEndTime),this.resizeEndTime=window.setTimeout(this.resizeEndFunc.bind(this),150))}resizeAnimateFunc(){this.setLayout(),this.resizeRequestFrame=t.requestAFrame.call(window,this.resizeAnimateFunc.bind(this))}resizeEndFunc(){this.opts.resizeStart=null,t.cancelAFrame.call(window,this.resizeRequestFrame)}setLayout(){this.onScrollHandler(),this.winWidth>=e.MOBILE.WIDTH?this.currentDevice="desktop":this.currentDevice="mobile",this.currentDevice!==this.prevDevice&&this.onResponsiveChange(),this.prevDevice=this.currentDevice}outCallback(t,e){var i=this.opts.on[t];null!=i&&i(e)}}}(),function(){"use strict";window.WATCH=window.WATCH||{};const t=function(){const t={};let i=!1,s=null,a=null;const o=function(){t.isSupClicked=!1,t.resizeTimeout=null,t.supClicker=document.querySelectorAll("a.click_sup"),t.supTopBtn=document.querySelectorAll("button.click_disclaimer"),t.contents=document.getElementById("contents")||document.getElementById("content"),t.allClickable=t.contents.querySelectorAll("a, button, input, select")},l=function(){let e=0;for(window.addEventListener("load",h),window.addEventListener("resize",c),window.addEventListener("scroll",u),e=0;e{const t=document.querySelectorAll(".click_sup"),e=document.querySelectorAll("li.common-bottom-disclaimer__list-item"),i=Array.from(e).map((t=>t.getAttribute("data-sup")));Array.from(t).map((t=>{const e=t.getAttribute("data-sup-tag");if(i.indexOf(e)>-1&&(t.innerText=i.indexOf(e)+1),-1===i.indexOf(e)){const e=t.parentElement,i=t.parentElement?.children.length??0;1===i&&e.remove(),i>1&&(e.removeChild(t.nextSibling),t.remove(),3===e.childNodes.length&&e.removeChild(e.childNodes[2]))}}))},c=function(){i=window.innerWidth>=1024?"desktop":window.innerWidth>=768&&window.innerWidth=o&&ai)&&(r.isVisible=!1)}},p=function(t){t.preventDefault(),t.stopPropagation();const i=this,s=parseFloat(this.innerText);let r=document.querySelectorAll("#desc-section ol");r.forEach((t=>{"block"===window.getComputedStyle(t).display&&(r=t)}));const n=r.querySelectorAll("li"),o=r.querySelectorAll("li")[s-1],l=o.querySelector("span"),h=l.innerHTML,d=`${h}`;l.innerHTML=d,a=t.currentTarget;const c=function(){f.call(i),l.removeEventListener("focusin",c)},u=function(){l.innerHTML=h,l.removeAttribute("tabindex"),l.removeEventListener("focusout",u)};if(t.currentTarget.closest(".cm-layer")){const i=t.currentTarget.closest(".cm-layer");e(i).trigger("closeLayer",!1)}l.addEventListener("focusin",c),l.addEventListener("focusout",u),setTimeout((()=>{o.querySelector("a").focus()}),0),n.forEach((t=>t.classList.remove("is-active"))),o.classList.add("is-active")},m=function(e){const i=e.target.closest("li"),s=i.getAttribute("data-sup"),r=document.querySelectorAll(".click_sup");for(let t=0;t{i.click(),setTimeout((()=>{a.focus(),t.isSupClicked=!1}),50)}),50)}i.classList.remove("is-active")},f=function(t){if(void 0!==t&&void 0!==t.sourceCapabilities&&null===t.sourceCapabilities)return void t.preventDefault();if(!document.documentElement.classList.contains("ios")&&t&&null==t.relatedTarget)return;const e=this;this.isClicked||this.isVisible||v(this)||setTimeout((function(){const t=window.pageYOffset,i=e.getBoundingClientRect(),s=(window.innerHeight-n.getNavHeight())/2,r=t-n.getNavHeight()+i.top+i.height/2;window.scrollTo(0,r-s)}),10),this.isClicked=!1},v=function(t){const e=t.parentNode,i=e.getAttribute("id");return"contents"!==i&&e!==document.body&&(!("subnav"!==i&&!e.classList.contains("sc-s22ultra-popup"))||v(e))},g=function(){this.isClicked=!0},y=function(){const t=document.documentElement.classList;"global"===n.checkRegion()||t.contains("mac")||t.contains("safari")||r.scrollController({speed:120,duration:.5})};return{init:function(){o(),l(),y()},getIsSupClicked:function(){return t.isSupClicked}}}();window.WATCH.Disclaimer=t}(),function(t,e){t.TrapFocus=function(){"use strict";var t=function(t){var e=window,i=e.document,s=e.jQuery,r=null,n=e.WATCH.UTILS;function a(t,e){if(!(this instanceof a))return new a(t,e);var i={obj:t,prevStep:null,isDestroy:!1,IgnoreUtilFocusChanges:!1,ariaAttr:{hidden:"aria-hidden",disabled:"aria-disabled",modal:"aria-modal"},ariaNotHidden:e&&e.ariaNotHidden?e.ariaNotHidden:[],classAttr:{clone:"trapfocus"},elAttr:{tabIndex:"tabindex",role:"role"},customEvent:".TrapFocus"+(new Date).getTime()+Math.random()};this.opts=n.def(i,e||{}),(this.obj=s(this.opts.obj)).length&&(null!=r&&r.destroy(),r=this,this.init())}return a.prototype={init:function(){this.initLayout(),this.buildAria(),this.bindEvents(!0),this.loadComponent(),this.obj.data("TrapFocus",this)},initLayout:function(){var t=this.opts.ariaAttr,e=this.opts.elAttr;this.obj.attr(t.modal,"true"),this.obj.attr(e.role,"dialog")},buildAria:function(){var e=this.opts.ariaAttr,i=this.opts.elAttr,r="head, script, noscript, link, style, meta",a=this.opts.ariaNotHidden.length>0?`, ${this.opts.ariaNotHidden.join(",")}`:"";n.def(this,{aria:{notHidden:Array(r+a),focusType:["A","BUTTON","INPUT","SELECT","TEXTAREA"],dataAttr:{ariaHidden:"trapfocusariahidden",ariaDisabled:"trapfocusariadisabled",tabIndex:"trapfocustabindex",role:"trapfocusrole"},destroy:s.proxy((function(){for(var s,r,n,a,o=this.aria.dataAttr,l=this.aria.hiddenEls,h=this.aria.focusEls,d=this.aria.tabindexEls,c=0,u=l.length;c"),v=s(""),g=0,y=p.length;g{r.attr(i.tabIndex,-1)}))}(_);for(var x=0,A=(v=v.add(m.find("["+i.tabIndex+"]"))).length;x=0;e--){var i=t.childNodes[e];if(this.attemptFocus(i)||this.focusLastDescendant(i))return!0}return!1},isFocusable:function(t){if(t.tabIndex>0||0===t.tabIndex&&null!==t.getAttribute("tabIndex"))return!0;if(t.disabled)return!1;switch(t.nodeName){case"A":return!!t.href&&"ignore"!=t.rel;case"INPUT":return"hidden"!=t.type&&"file"!=t.type;case"BUTTON":case"SELECT":case"TEXTAREA":case"VIDEO":case"SOURCE":case"IFRAME":return!0;default:return!1}},attemptFocus:function(t){if(!this.opts.isDestroy){if(!this.isFocusable(t))return!1;this.opts.IgnoreUtilFocusChanges=!0;try{t.focus()}catch(t){}return this.opts.IgnoreUtilFocusChanges=!1,document.activeElement===t}},trapFocus:function(t){if(!this.opts.isDestroy&&!this.opts.IgnoreUtilFocusChanges){document;this.dynamicComponentFocus()}},loadComponent:function(){this.dynamicComponentFocus(),setTimeout((()=>{this.dynamicComponentFocus()}),3e3),this.focusFirstDescendant(this.obj[0]),this.lastFocus=document.activeElement,this.aria.build()},dynamicComponentFocus:function(){const t=this.opts.ariaAttr,e=this.opts.elAttr;setTimeout((()=>{var i=document.getElementById("QSIFeedbackButton-btn"),s=(document.getElementById("QSIFeedbackButton-close-btn"),document.getElementById("nebula_div_btn")),r=document.getElementById("spr-live-chat-app"),n=document.getElementById("teconsent");if(i){var a=i.parentElement;i.setAttribute(t.disabled,"true"),i.setAttribute(e.tabIndex,"-1"),a.setAttribute(t.disabled,"true"),a.setAttribute(t.hidden,"true"),a.setAttribute(e.tabIndex,"-1"),a.setAttribute(e.role,"none presentation")}if(s){var o=s.parentElement;s.setAttribute(t.disabled,"true"),s.setAttribute(e.tabIndex,"0"),o.setAttribute(t.disabled,"true"),o.setAttribute(t.hidden,"true"),o.setAttribute(e.tabIndex,"-1"),o.setAttribute(e.role,"none presentation")}r&&(r.setAttribute(t.disabled,"true"),r.setAttribute(t.hidden,"true"),r.setAttribute(e.tabIndex,"-1"),r.setAttribute(e.role,"none presentation")),n&&n.hasAttribute("aria-label")&&setTimeout((()=>{var i=n.querySelector("a");i.setAttribute(e.tabIndex,"-1"),i.setAttribute(t.disabled,"true"),i.setAttribute(t.hidden,"true")}))}))},destroy:function(){r=null,this.opts.isDestroy=!0;var t=this.opts.ariaAttr;this.opts.elAttr;this.bindEvents(!1),this.aria.destroy(),this.obj.removeAttr(t.modal)}},a}();return t}()}(window),function(t,e){t.HiveLayer=function(){"use strict";var t=function(){var t=window,e=t.jQuery,i=t.document,s=t.WATCH.UTILS,r=[];function n(t,i){if(!(this instanceof n))return new n(t,i);var r={effect:"fade",layerWrapElements:t,layerBody:".cm-layer__body",layerElements:".cm-layer__wrapper",openerElements:".js-layer-opener",closerElements:".js-layer-closer",dimmedElements:".cm-layer__dimmed",classAttr:{htmlToggle:"is-layer-open",isAsync:"is-async"},focusOutObj:{CSS:{overflow:"hidden",position:"absolute",left:0,top:0,"z-index":-1,width:1,height:1,"font-size":"1px","line-height":0}},customEvent:".HiveLayer"+(new Date).getTime()+Math.random(),openerTarget:null,useOutside:!1,useEscape:!0,useCloseFocus:!0,useScrollLock:!0,useTrapFocus:!0,flip:{CLASS:"hive-layer-flip",direction:"horizontal",rotateStart:90,rotateEnd:0},customToggle:!1,dimmedDuration:250,fps:120,easing:"swing",duration:250,on:{buildTools:null,layerMove:null,layerOpenBefore:null,layerOpenAfter:null,layerCloseBefore:null,layerCloseAfter:null},ariaNotHidden:[]};(this.layerWrap=r.layerWrapElements).length&&(this.layerWrap=e(r.layerWrapElements),this.opts=s.def(r,i||{}),this.init())}return n.prototype={init:function(){this.initOpts(),this.setElements(),this.initLayout(),this.buildTween(),this.buildTrapFocus(),this.bindEvents(!0),this.layerWrap.data("HiveLayer",this)},initOpts:function(){this.layerWrapInstance="#"+this.layerWrap.attr("id"),this.opts.isSupportTransition||"flip"!==this.opts.effect||(this.opts.effect="default"),"custom"==this.opts.effect&&(this.opts.effect="default",this.opts.customToggle=!0)},setElements:function(){this.layerBody=this.layerWrap.find(this.opts.layerBody),this.layerObj=this.layerWrap.find(this.opts.layerElements),this.closerObj=this.layerWrap.find(this.opts.closerElements),this.dimmedObj=this.layerWrap.find(this.opts.dimmedElements)},initLayout:function(){if("slide"===this.opts.effect)this.dimmedObj.hide(),this.layerObj.hide();else if("flip"===this.opts.effect){var t=this.opts.flip.direction;this.opts.flip.cssD="vertical"!==t?"rotateY":"rotateX",this.dimmedObj.hide(),this.layerObj.hide(),this.layerWrap.addClass(this.opts.flip.CLASS)}},buildTween:function(){s.def(this,{tweens:{instance:[],kill:e.proxy((function(){for(var t=0,e=this.tweens.instance.length;t{this.dimmedObj.on("mousedown click clickCustom",e.proxy(this.onLayerClose,this))}),500),"click"!==i.type&&"clickCustom"!==i.type||(this.opts.openerTarget=e(i.currentTarget)),"click"!==i.type||!this.opts.openerTarget.hasClass(this.opts.classAttr.isAsync)){if(this.layerViewType="open",r.push({POPUPWRAP:this.layerWrap}),document.querySelector("html.load div#header")&&(document.querySelector("html.load div#header").style.opacity=0,document.querySelector("html.load div#header").style.pointerEvents="none"),this.setScrollLock(!0),this.bindCloseEvents(!0),"default"===this.opts.effect)this.opts.customToggle?this.outCallback("layerOpenBefore"):(this.layerWrap.css({opacity:0,display:"block"}),this.outCallback("layerOpenBefore"),this.outCallback("buildTools"),this.layerWrap.css("opacity",""),this.openAfterBugFunc());else if("fade"===this.opts.effect){this.layerWrap.css({opacity:0,display:"block"}),this.outCallback("layerOpenBefore"),TweenLite.set(this.layerBody,{opacity:0,scale:1,overflow:"hidden"}),this.outCallback("buildTools");var n=TweenLite.to(this.layerWrap,this.opts.duration/1e3,{opacity:1,onComplete:e.proxy((function(){var t=TweenLite.to(this.layerBody,.25,{ease:Expo.easeOut,opacity:1,scale:1,onComplete:e.proxy((function(){this.layerBody.css({overflow:"",transform:""}),this.openAfterBugFunc()}),this)});this.tweens.instance.push(t)}),this)});this.tweens.instance.push(n)}else if("slide"===this.opts.effect){var a=1;TweenLite.set(this.dimmedObj,{display:"block",opacity:0}),TweenLite.set(this.layerWrap,{display:"block"}),TweenLite.set(this.layerBody,{overflow:"hidden"}),TweenLite.set(this.layerObj,{display:"",y:-s.winSize().h}),TweenLite.set(this.layerObj,{display:""}),this.outCallback("layerOpenBefore");n=TweenLite.to(this.dimmedObj,a,{opacity:.9});var o=TweenLite.to(this.layerObj,a,{y:0,onComplete:e.proxy((function(){this.outCallback("buildTools"),this.layerBody.css({overflow:""}),this.layerObj.css({transform:""}),this.openAfterBugFunc()}),this)});this.tweens.instance.push(n),this.tweens.instance.push(o)}else if("slide2"===this.opts.effect){a=.6;TweenLite.set(this.dimmedObj,{display:"block",opacity:0}),TweenLite.set(this.layerWrap,{display:"block"}),TweenLite.set(this.layerObj,{display:"",y:s.winSize().h}),TweenLite.set(this.layerObj,{display:""}),this.outCallback("layerOpenBefore");n=TweenLite.to(this.dimmedObj,a,{opacity:.9}),o=TweenLite.to(this.layerObj,a,{y:0,onComplete:e.proxy((function(){this.outCallback("buildTools"),this.layerBody.css({overflow:""}),this.layerObj.css({transform:""}),this.openAfterBugFunc()}),this)});this.tweens.instance.push(n),this.tweens.instance.push(o)}else if("flip"===this.opts.effect){var l=this.opts.flip.rotateEnd-this.opts.flip.rotateStart,h=l/this.opts.duration*(1e3/this.opts.fps),d=0;this.opts.flip.moveData={startDistance:this.opts.flip.rotateStart,endDistance:this.opts.flip.rotateEnd,moveDistance:l,moveOneStep:h,currentStep:d},this.layerWrap.show(),this.dimmedObj.fadeIn(this.opts.dimmedDuration,e.proxy((function(){this.outCallback("layerOpenBefore"),this.outCallback("buildTools"),this.layerObj.show(),this.initStep(this.opts.flip.moveData),this.flipFunc()}),this)),t.setTimeout(e.proxy((function(){this.outCallback("buildTools")}),this),30)}this.ariaAccessbility(!0,this.layerWrap)}},initStep:function(t){this.opts.stepTimeOld=new Date,this.direction=t.startDistance>t.moveDistance?"toNext":"toPrev",this.condition="toNext"===this.direction?t.currentStep>t.moveDistance:t.currentStepi.moveDistance:i.currentStep{this.opts.openerTarget.focus(),this.opts.openerTarget[0].mustActive=!1,this.opts.openerTarget=null}),100)),this.opts.useCloseFocus=!0,this.bindCloseEvents(!1),this.outCallback("layerCloseAfter")},ariaAccessbility:function(t,e){},outCallback:function(t){var e=this.opts.on[t];"layerMove"===t?this.layerWrap.trigger(t,arguments[1],arguments[2],this):this.layerWrap.trigger(t,this),null!=e&&("layerMove"===t?e(arguments[1],arguments[2],this):e(this))},styleDestroy:function(){this.dimmedObj.attr("style",""),this.layerWrap.attr("style",""),this.layerBody.attr("style",""),this.layerObj.attr("style","")},destroy:function(){this.tweens.kill(),this.trapfocus&&this.trapfocus.destroy(),this.styleDestroy(),this.bindEvents(!1),this.bindOutsideEvents(!1),this.bindCloseEvents(!1)}},n}();return t}()}(window),function(){"use strict";window.WATCH=window.WATCH||{};const t=WATCH.UTILS;WATCH.SubNav=class{constructor(t=container,e){const i={navItems:"ul li>a",navDests:'[class*="js-nav-"]',visSections:".js-visible",resizeStart:null,classes:{isOn:"on"}};this.opts=i,this.classes=i.classes,this.el=document.querySelector(t),this.init()}init(){null!==this.el&&(this.setElements(),this.initOpts(),this.bindEvents())}setElements(){this.navItems=t.convertArray(this.el.querySelectorAll(this.opts.navItems)),this.navDests=document.querySelectorAll(this.opts.navDests),this.visSections=t.convertArray(document.querySelectorAll(this.opts.visSections))}initOpts(){this.visCount=-1,this.visSections.forEach((t=>{t.dataset.visIndex=t.classList.contains("js-count")?++this.visCount:this.visCount})),this.winOffsetTop=window.pageYOffset}bindEvents(){this.onScrollHandler(),window.addEventListener("resize",this.onResizeHandler.bind(this)),window.addEventListener("scroll",this.onScrollHandler.bind(this));const t=window.location.hash;this.navItems.forEach(((e,i)=>{e.getAttribute("href").indexOf("#")>-1&&(e.dataset.navIndex=i,e.addEventListener("click",this.onNavItemClickEvent.bind(this))),t&&e.getAttribute("href").indexOf(t)>-1&&(e.parentNode.classList.remove(this.classes.isOn),e.click())}))}onNavItemClickEvent(e){e.preventDefault();const i=e.target,s=i.parentNode;if(!this.el.classList.contains("hold")&&!s.classList.contains(this.classes.isOn)){this.navItems.forEach((t=>{t.parentNode.classList.remove(this.classes.isOn)})),s.classList.contains(this.classes.isOn)||s.classList.add(this.classes.isOn);const e=i.dataset.navIndex,r=this.navDests[e],n=r.getBoundingClientRect(),a=parseInt(window.getComputedStyle(r).paddingTop),o=(window.innerHeight-(n.height-a)+t.getNavHeight())/2;let l=0;if(r.classList.contains("js-nav-center")){l=this.winOffsetTop+n.top+a-o}else{l=this.winOffsetTop+n.top-t.getNavHeight()}l{this.el.classList.contains("hold")&&this.el.classList.remove("hold"),GALAXY.header&&GALAXY.header.resetSubNav()}))}}onScrollHandler(){this.winOffsetTop=window.pageYOffset;var e=(window.innerHeight+t.getNavHeight())/2;this.visSections.forEach((t=>{var i=t.getBoundingClientRect(),s=this.winOffsetTop+i.top,r=this.winOffsetTop+i.bottom;if(this.winOffsetTop+e>=s&&this.winOffsetTop+e{e!=n&&t.parentNode.classList.contains(this.classes.isOn)&&t.parentNode.classList.remove(this.classes.isOn)}));var a=this.navItems[n].parentNode;a.classList.contains(this.classes.isOn)||(a.classList.add(this.classes.isOn),!this.el.classList.contains("hold")&&a.classList.contains(this.classes.isOn)&&GALAXY.header&&GALAXY.header.resetSubNav())}}))}onResizeHandler(){t.winSize().w!==this.winWidth&&(this.winWidth=t.winSize().w,null==this.opts.resizeStart&&(this.opts.resizeStart=this.winWidth,this.resizeAnimateFunc()),window.clearTimeout(this.resizeEndTime),this.resizeEndTime=window.setTimeout(this.resizeEndFunc.bind(this),150))}resizeAnimateFunc(){this.onScrollHandler(),this.resizeRequestFrame=t.requestAFrame.call(window,this.resizeAnimateFunc.bind(this))}resizeEndFunc(){this.opts.resizeStart=null,t.cancelAFrame.call(window,this.resizeRequestFrame)}}}(),function(){"use strict";window.WATCH=window.WATCH||{};WATCH.BigMomentColumn=class{constructor(t,e){this.opts={controlTagging:{play:"movi-play",pause:"movi-pause"},centeredSlides:!0,tagging:{"data-omni-type":"microsite_pcontentinter","data-omni":"galaxy-watch-ultra:highlight:carousel:index:","an-tr":"galaxy-watch-ultra:highlight:carousel:index:","an-ca":"indication","an-ac":"carousel","an-la":"galaxy-watch-ultra:highlight:carousel:index:"},currDevice:"desktop",prevDevice:null,...e},this.selector={section:t,videoElement:".video__container",swiperEl:".swiper-container",swiperSlide:".swiper-slide",swiperSlideTitle:this.opts.slideTitle||".feature-column-r__subject-txt",swiperPagination:".swiper-pagination"},this.class={featureHide:"is-feature-hide"},this.el={section:document.querySelector(this.selector.section)||null,videoElement:null,videoPlayer:null,swiper:null,swiperEl:null,swiperSlides:null,swiperPagination:null},this.events={load:this.onLoadHandler.bind(this),resize:this.onResizeHandler.bind(this)},this.init()}init(){null===this.el.section||this.el.section.classList.contains(this.class.featureHide)||(this.setElements(),this.buildVideoPlayer(),this.bindEvents())}setElements(){this.el.videoElement=this.el.section.querySelectorAll(this.selector.videoElement),this.el.swiperEl=this.el.section.querySelector(this.selector.swiperEl),this.el.swiperSlides=this.el.swiperEl.querySelectorAll(this.selector.swiperSlide),this.el.swiperPagination=this.el.section.querySelector(this.selector.swiperPagination)}bindEvents(){window.addEventListener("load",this.events.load),window.addEventListener("resize",this.events.resize)}onLoadHandler(){this.events.resize(),window.removeEventListener("load",this.events.load)}onResizeHandler(){this.opts.currDevice=innerWidth>767?"desktop":"mobile",this.opts.currDevice!==this.opts.prevDevice&&(this.onResponsiveChange(),this.opts.prevDevice=this.opts.currDevice)}onResponsiveChange(){this.destroySwiper(),"mobile"===this.opts.currDevice&&this.setSwiper()}buildVideoPlayer(){this.el.videoPlayer={instance:[],build:()=>{this.el.videoPlayer.instance.length>0||Array.from(this.el.videoElement).forEach((t=>{this.el.videoPlayer.instance.push(new WATCH.VideoPlayer(t,{sectionElement:this.selector.section,playType:"reverse",on:{updateController:t=>{let e=t.playState?"pause":"play";const i=t.el,s=this.opts.controlTagging;if(i){i.setAttribute("data-omni",`${s[e]}:#`),i.setAttribute("an-tr",`${s[e]}:#`),i.setAttribute("an-la",`${s[e]}:#`);const t=i.querySelector(".blind");t&&("undefined"!=typeof LOCAL_VARI&&LOCAL_VARI&&void 0!==LOCAL_VARI[e]&&LOCAL_VARI[e]?t.innerText=LOCAL_VARI[e]:t.innerText=e)}}}}))}))}},this.el.videoPlayer.build()}setSwiper(){if(null!==this.el.swiper)return;const t=this;this.el.swiper=new Swiper(this.el.swiperEl,{init:!1,slidesPerView:this.opts.slidesPerView??"auto",centeredSlides:this.opts.centeredSlides,pagination:{el:this.el.swiperPagination,renderBullet:function(e){const i=t.opts.tagging;return`\n
      • \n\n
      • \n`}}}),this.el.swiper.on("snapIndexChange",(function(){t.opts.centeredSlides||(t.setSlideA11y(),t.setPaginationLabel())})),this.el.swiper.on("slideChange",(function(){t.opts.centeredSlides&&(t.setSlideA11y(),t.setPaginationLabel())})),this.el.swiper.on("init",(function(){const e=this.el.querySelector(".swiper-notification");e&&this.el.removeChild(e),t.setSlideA11y(),t.setPaginationLabel();const i=this.pagination.bullets;Array.from(i).forEach(((e,i)=>{e.addEventListener("click",(function(e){e.preventDefault(),e.stopPropagation(),t.el.swiper.slideTo(i)}))}))})),this.el.swiper.init()}destroySwiper(){null!==this.el.swiper&&(this.el.swiper.pagination.destroy(!0,!0),this.el.swiper.destroy(!0,!0),this.el.swiper=null,this.initSlideA11y())}initSlideA11y(){for(let t=0;t0&&Array.from(i).forEach(((t,i)=>{const r=e[i].querySelector(this.selector.swiperSlideTitle)?.innerText??"";if("undefined"!=typeof LOCAL_VARI&&LOCAL_VARI){const e=void 0!==LOCAL_VARI.slide&&LOCAL_VARI.slide?LOCAL_VARI.slide:"Slide",n=void 0!==LOCAL_VARI.selected&&LOCAL_VARI.selected?LOCAL_VARI.selected:"selected";s===i?t.setAttribute("aria-label",`${e}${i+1}: ${r} ${n}`):t.setAttribute("aria-label",`${e}${i+1}: ${r}`)}else s===i?t.setAttribute("aria-label",`Slide${i+1}: ${r} selected`):t.setAttribute("aria-label",`Slide${i+1}: ${r}`)}))}onA11y(t){const e=t.querySelectorAll("a, button, input, select, iframe");t.setAttribute("aria-hidden","true"),t.setAttribute("tabindex","-1"),e.length>0&&e.forEach((t=>{t.setAttribute("aria-hidden","true"),t.setAttribute("tabindex","-1")}))}offA11y(t){const e=t.querySelectorAll("a, button, input, select, iframe");t.setAttribute("aria-hidden","false"),t.removeAttribute("tabindex"),e.length>0&&e.forEach((t=>{t.setAttribute("aria-hidden","false"),t.removeAttribute("tabindex")}))}}}(),function(){"use strict";window.WATCH=window.WATCH||{};WATCH.BigMoment=class{constructor(t,e){this.opts={resizeTimeout:null,useInteger:!1,progress:0,currDevice:"",prevDevice:"",scale:1.05,...e},this.selector={section:t,bigMoment:".big-moment__content--expand",bigMomentImage:".big-moment__image img",clipWrapper:".big-moment__content--clip-motion",clipElement:".big-moment__clip"},this.class={featureHide:"is-feature-hide"},this.el={section:document.querySelector(this.selector.section)||null,clipWrapper:null,clipElement:null},this.events={load:this.onLoadHandler.bind(this),resize:this.onResizeHandler.bind(this),scroll:this.onScrollHandler.bind(this)},this.init()}init(){null===this.el.section||this.el.section.classList.contains(this.class.featureHide)||(this.setElements(),this.bindEvents())}setElements(){this.el.bigMoment=this.el.section.querySelector(this.selector.bigMoment),this.el.bigMomentImage=this.el.bigMoment.querySelector(this.selector.bigMomentImage),this.el.clipWrapper=this.el.section.querySelector(this.selector.clipWrapper),this.el.clipElement=this.el.section.querySelector(this.selector.clipElement)}bindEvents(){window.addEventListener("load",this.events.load),window.addEventListener("resize",this.events.resize),window.addEventListener("scroll",this.events.scroll)}onLoadHandler(){this.events.resize(),window.removeEventListener("load",this.events.load)}onResizeHandler(){this.opts.currDevice=innerWidth>767?"desktop":"mobile",clearTimeout(this.opts.resizeTimeout),this.opts.resizeTimeout=setTimeout((()=>{this.events.scroll(),this.opts.currDevice!==this.opts.prevDevice&&(this.opts.prevDevice=this.opts.currDevice)}),150)}onScrollHandler(){scrollY,window.innerHeight;const t=this.el.clipWrapper.getBoundingClientRect(),e=(scrollY,t.top,scrollY,t.bottom,(t.top-window.innerHeight)/t.height*-100);this.opts.progress=this.opts.useInteger?Math.round(e):e,this.opts.progress>-200&&this.opts.progress=("desktop"===this.opts.currDevice?50:0)?this.el.clipWrapper.classList.contains("is-active")||this.el.clipWrapper.classList.add("is-active"):this.el.clipWrapper.classList.contains("is-active")&&this.el.clipWrapper.classList.remove("is-active"),"desktop"===this.opts.currDevice?this.activeDesktopParallex():this.activeMobileParallex())}activeDesktopParallex(){let t,e,i=this.opts.scale;this.opts.progress=0&&this.opts.progress50&&(t=0),this.opts.progress=-60&&this.opts.progress=0&&(e=1),this.el.bigMomentImage&&TweenMax.to(this.el.bigMomentImage,.2,{scale:e}),TweenMax.to(this.el.clipElement,.2,{top:`${t}%`})}activeMobileParallex(){TweenMax.to(this.el.clipElement,0,{top:""})}}}(),function(){"use strict";window.WATCH=window.WATCH||{};WATCH.CommonVideo=class{constructor(t,e){this.opts={controlTagging:{play:"movi-play",pause:"movi-pause"},...e},this.selector={section:t,videoElement:".video__container"},this.class={featureHide:"is-feature-hide"},this.el={section:document.querySelector(this.selector.section)||null,videoElement:null,videoPlayer:null},this.init()}init(){null===this.el.section||this.el.section.classList.contains(this.class.featureHide)||(this.setElements(),this.buildVideoPlayer())}setElements(){this.el.videoElement=this.el.section.querySelectorAll(this.selector.videoElement)}buildVideoPlayer(){this.el.videoPlayer={instance:[],build:()=>{this.el.videoPlayer.instance.length>0||Array.from(this.el.videoElement).forEach((t=>{this.el.videoPlayer.instance.push(new WATCH.VideoPlayer(t,{sectionElement:this.selector.section,playType:"reverse",on:{updateController:t=>{let e=t.playState?"pause":"play";const i=t.el,s=this.opts.controlTagging;if(i){i.setAttribute("data-omni",`${s[e]}:#`),i.setAttribute("an-tr",`${s[e]}:#`),i.setAttribute("an-la",`${s[e]}:#`);const t=i.querySelector(".blind");t&&("undefined"!=typeof LOCAL_VARI&&LOCAL_VARI&&void 0!==LOCAL_VARI[e]&&LOCAL_VARI[e]?t.innerText=LOCAL_VARI[e]:t.innerText=e)}}}}))}))}},this.el.videoPlayer.build()}}}(),function(){"use strict";window.WATCH=window.WATCH||{};WATCH.KeyVisual=class{constructor(t=container){const e={el:t,classes:{isUseBuy:"is-use-buy",isUseRegist:"is-use-regist",isUseOrder:"is-use-order",isUseOff:"is-use-off"},featureHide:"is-feature-hide"};this.opts=e,this.classes=e.classes,this.el=document.querySelector(t),this.init()}init(){null===this.el||this.el.classList.contains(this.opts.featureHide)||this.initLayout()}initLayout(){this.el.classList.remove(this.classes.isUseBuy),this.el.classList.remove(this.classes.isUseRegist),this.el.classList.remove(this.classes.isUseOrder),this.el.classList.remove(this.classes.isUseWhere),"undefined"!=typeof __WATCH_USE_KV_CTA&&null!==__WATCH_USE_KV_CTA&&void 0!==__WATCH_USE_KV_CTA&&""!==__WATCH_USE_KV_CTA&&("buy-now"==__WATCH_USE_KV_CTA?this.el.classList.add(this.classes.isUseBuy):"pre-registration"==__WATCH_USE_KV_CTA?this.el.classList.add(this.classes.isUseRegist):"pre-order"==__WATCH_USE_KV_CTA?this.el.classList.add(this.classes.isUseOrder):"off"==__WATCH_USE_KV_CTA&&this.el.classList.add(this.classes.isUseOff))}}}(),function(){"use strict";window.WATCH=window.WATCH||{};const t=WATCH.UTILS;WATCH.HighlightCarousel=class{constructor(t,e={}){this.opts={currDevice:null,prevDevice:null,resizeTimeout:null,clickTimeout:null,focusMoveTimeout:null,tagging:{pagination:{"data-omni-type":"microsite_pcontentinter","data-omni":"gwatch-ultra:highlights:catch-the-highlights^titanium:sldr-dots","an-tr":"gwatch-ultra:highlights:catch-the-highlights^titanium:sldr-dots","an-ca":"indication","an-ac":"carousel","an-la":"gwatch-ultra:highlights:catch-the-highlights^titanium:sldr-dots"},navigation:{"data-omni-type":"microsite_pcontentinter","data-omni":"gwatch-ultra:highlights:catch-the-highlights:sldr-arrow:","an-tr":"gwatch-ultra:highlights:catch-the-highlights:sldr-arrow:","an-ca":"indication","an-ac":"carousel","an-la":"gwatch-ultra:highlights:catch-the-highlights:sldr-arrow:"}},taggingIdList:["titanium","galaxy-ai","10-atm","battery"],activeIndex:0,videoCanPlay:!0,videoAnimationFrame:null,videoCircleSize:266,isFocusPrevArrow:!1,isFocusNextArrow:!1,isCarouselAutoPlay:!0,isVideoAutoPlay:!0,prevState:!0,startX:0,endX:0,isPointerMoving:!1,...e},this.selector={section:t,frontSlider:".front-slider",backSlider:".background-slider",swiper:".swiper",swiperSlide:".swiper-slide",swiperSlideTitle:".wearable-common__carousel-tit",swiperPrevArrow:".wearable-common__carousel-prev",swiperNextArrow:".wearable-common__carousel-next",swiperPagination:".wearable-common__carousel-pagination",swiperScrollbar:".swiper-scrollbar",videoContainer:".video__container",videoController:".video__controller",blindController:".js-blind-controller"},this.class={featureHide:"is-feature-hide"},this.el={section:document.querySelector(this.selector.section)||null,frontSlider:null,frontSwiper:null,frontSwiperEl:null,frontSwiperSlides:null,backSlider:null,backSwiper:null,backSwiperEl:null,swiperPrevArrow:null,swiperNextArrow:null,swiperPagination:null,swiperScrollbar:null,videoContainers:null,videoControllers:null,blindController:null},this.events={load:this.onLoadHandler.bind(this),scroll:this.onScrollHandler.bind(this),resize:this.onResizeHandler.bind(this),prevArrow:{click:this.onClickPrevArrow.bind(this),keyDown:this.onKeyDownPrevArrow.bind(this),focusin:this.onFocusinPrevArrow.bind(this),focusout:this.onFocusoutPrevArrow.bind(this)},nextArrow:{click:this.onClickNextArrow.bind(this),keyDown:this.onKeyDownNextArrow.bind(this),focusin:this.onFocusinNextArrow.bind(this),focusout:this.onFocusoutNextArrow.bind(this)},controller:{click:this.onClickControllButton.bind(this)},blindController:{click:this.onClickBlindController.bind(this)},click:{down:this.onClickDownHandler.bind(this),up:this.onClickUpHandler.bind(this)}},this.init()}init(){null===this.el.section||this.el.section.classList.contains(this.class.featureHide)||(this.setElements(),this.setVideoPlayer(),this.setSwiper(),this.bindEvents())}setElements(){this.el.frontSlider=this.el.section.querySelector(this.selector.frontSlider),this.el.frontSwiperEl=this.el.frontSlider.querySelector(this.selector.swiper),this.el.frontSwiperSlides=this.el.frontSlider.querySelectorAll(this.selector.swiperSlide),this.el.swiperPrevArrow=this.el.frontSlider.querySelector(this.selector.swiperPrevArrow),this.el.swiperNextArrow=this.el.frontSlider.querySelector(this.selector.swiperNextArrow),this.el.swiperPagination=this.el.frontSlider.querySelector(this.selector.swiperPagination),this.el.swiperScrollbar=this.el.frontSlider.querySelector(this.selector.swiperScrollbar),this.el.blindController=this.el.frontSlider.querySelector(this.selector.blindController),this.el.backSlider=this.el.section.querySelector(this.selector.backSlider),this.el.backSwiperEl=this.el.backSlider.querySelector(this.selector.swiper),this.el.videoContainers=this.el.section.querySelectorAll(this.selector.videoContainer),this.el.videoControllers=this.el.section.querySelectorAll(this.selector.videoController)}bindEvents(){window.addEventListener("load",this.events.load),window.addEventListener("scroll",this.events.scroll),window.addEventListener("resize",this.events.resize),this.el.frontSwiperEl.addEventListener("mousedown",this.events.click.down),this.el.frontSwiperEl.addEventListener("mouseup",this.events.click.up),this.el.frontSwiperEl.addEventListener("touchstart",this.events.click.down),this.el.frontSwiperEl.addEventListener("touchend",this.events.click.up),Array.from(this.el.videoControllers).forEach((t=>{t.addEventListener("click",this.events.controller.click)})),this.el.blindController.addEventListener("click",this.events.blindController.click)}onLoadHandler(){this.events.resize(),this.events.scroll(),window.removeEventListener("load",this.events.load)}onResizeHandler(){this.opts.currDevice=innerWidth>767?"desktop":"mobile",this.opts.currDevice!==this.opts.prevDevice&&(this.opts.activeIndex=0,this.opts.videoCanPlay=!0,clearTimeout(this.opts.resizeTimeout),this.opts.resizeTimeout=setTimeout((()=>{this.opts.videoCanPlay=!0,this.events.scroll(),this.onResponsiveChange()}),150),this.opts.prevDevice=this.opts.currDevice)}onResponsiveChange(){this.resetVideo(),this.setSwiper()}onScrollHandler(){const e=this.el.frontSwiperEl.getBoundingClientRect(),i=e.height,s=.15*e.height,r=scrollY,n=r+innerHeight,a=r+e.top,o=r+e.bottom;if(n>=a+i&&r+t.getNavHeight()o-s){if(this.opts.videoCanPlay)return;this.onFocusoutNextArrow(),this.onFocusoutPrevArrow(),this.opts.videoCanPlay=!0,this.resetVideo(!0)}}setSwiper(){this.destroyFrontSwiper(),this.setFrontSwiper(),this.destroyBackSwiper(),this.setBackSwiper()}setFrontSwiper(){if(null!==this.el.frontSwiper)return;const t=this;this.el.frontSwiper=new Swiper(this.el.frontSwiperEl,{init:!1,a11y:!1,speed:400,allowTouchMove:!0,centeredSlides:!0,centeresSlidesBounds:!0,slidesPerView:"auto",navigation:{nextEl:t.el.swiperNextArrow,prevEl:t.el.swiperPrevArrow},scrollbar:{el:t.el.swiperScrollbar,draggable:!0},pagination:{el:t.el.swiperPagination,bulletActiveClass:"is-active",renderBullet:function(e){const i=t.opts.tagging.pagination,s=t.opts.taggingIdList[e];return`\n \n `}}}),this.el.frontSwiper.on("transitionEnd",(function(){if(this.slides[this.activeIndex].classList.contains("js-active-slide"))return;if(t.opts.activeIndex=this.activeIndex,t.resetVideo(),t.opts.videoCanPlay)return;const e=this.slides[this.activeIndex].querySelector(t.selector.videoContainer);e&&t.playVideo(e),t.setSwiperActiveClass.call(this)})),this.el.frontSwiper.on("scrollbarDragEnd",(function(){if(t.opts.isCarouselAutoPlay=!1,this.slides[this.activeIndex].classList.contains("js-active-slide"))return;if(t.opts.activeIndex=this.activeIndex,t.resetVideo(),t.opts.videoCanPlay)return;const e=this.slides[this.activeIndex].querySelector(t.selector.videoContainer);e&&t.playVideo(e),t.setSwiperActiveClass.call(this)})),this.el.frontSwiper.on("snapIndexChange",(function(){t.setNavigationDisabled()})),this.el.frontSwiper.on("slideChange",(function(){t.opts.activeIndex=this.activeIndex,t.setSlideA11y(),t.setNavigationDisabled(),t.setPaginationLabel();const e=this.slides[this.activeIndex].querySelector(t.selector.videoContainer).querySelector(t.selector.videoController);t.opts.isCarouselAutoPlay&&(clearTimeout(t.opts.focusMoveTimeout),t.opts.focusMoveTimeout=setTimeout((()=>{e&&e.focus()}),300)),t.opts.activeIndex===this.slides.length-1&&(t.opts.isCarouselAutoPlay=!1),null!==t.el.backSwiper&&t.el.backSwiper.slideTo(this.realIndex)})),this.el.frontSwiper.on("init",(function(){t.opts.activeIndex=this.activeIndex,t.setSlideA11y(),t.setNavigationLabel(),t.setPaginationLabel(),t.setNavigationDisabled(),t.el.swiperPrevArrow.addEventListener("click",t.events.prevArrow.click),t.el.swiperNextArrow.addEventListener("click",t.events.nextArrow.click),t.el.swiperPrevArrow.addEventListener("keydown",t.events.prevArrow.keyDown),t.el.swiperNextArrow.addEventListener("keydown",t.events.nextArrow.keyDown),t.el.swiperPrevArrow.addEventListener("focusin",t.events.prevArrow.focusin),t.el.swiperNextArrow.addEventListener("focusin",t.events.nextArrow.focusin),t.el.swiperPrevArrow.addEventListener("focusout",t.events.prevArrow.focusout),t.el.swiperNextArrow.addEventListener("focusout",t.events.nextArrow.focusout);const e=this,i=e.pagination.bullets;Array.from(i).forEach(((t,i)=>{t.addEventListener("click",(function(t){t.preventDefault(),t.stopPropagation(),e.slideTo(i)}))}))})),this.el.frontSwiper.init()}destroyFrontSwiper(){null!==this.el.frontSwiper&&(this.el.swiperPrevArrow.removeEventListener("click",this.events.prevArrow.click),this.el.swiperNextArrow.removeEventListener("click",this.events.nextArrow.click),this.el.swiperPrevArrow.removeEventListener("keydown",this.events.prevArrow.keyDown),this.el.swiperNextArrow.removeEventListener("keydown",this.events.nextArrow.keyDown),this.el.frontSwiper.destroy(!0,!0),this.el.frontSwiper=null)}setBackSwiper(){null===this.el.backSwiper&&(this.el.backSwiper=new Swiper(this.el.backSwiperEl,{init:!1,a11y:!1,speed:600,allowTouchMove:!1,centeredSlides:!0,centeresSlidesBounds:!0,slidesPerView:"auto"}),this.el.backSwiper.on("init",(function(){Array.from(this.slides).forEach((t=>{t.setAttribute("aria-hidden","true"),t.setAttribute("tabindex","-1")}))})),this.el.backSwiper.init())}destroyBackSwiper(){null!==this.el.backSwiper&&(this.el.backSwiper.destroy(!0,!0),this.el.backSwiper=null)}slideTo(t=300){null!==this.el.frontSwiper&&this.el.frontSwiper.slideTo(this.opts.activeIndex,t)}setSwiperActiveClass(){Array.from(this.slides).forEach(((t,e)=>{this.activeIndex!==e?t.classList.remove("js-active-slide"):t.classList.add("js-active-slide")}))}setSlideA11y(){if(null===this.el.frontSwiper)return;const t=this.el.frontSwiper,e=t.slides,i=t.activeIndex;Array.from(e).forEach(((t,e)=>{const s=t.querySelectorAll("a, button, input, select, iframe");i===e?(t.setAttribute("aria-hidden",!1),s.length>0&&s.forEach((t=>{t.setAttribute("aria-hidden","false"),t.removeAttribute("tabindex")}))):(t.setAttribute("aria-hidden",!0),s.length>0&&s.forEach((t=>{t.setAttribute("aria-hidden","true"),t.setAttribute("tabindex","-1")})))}))}setNavigationLabel(){const t=this.opts.tagging.navigation;if("undefined"!=typeof LOCAL_VARI&&LOCAL_VARI){const t=void 0!==LOCAL_VARI.previous&&LOCAL_VARI.previous?LOCAL_VARI.previous:"Previous",e=void 0!==LOCAL_VARI.next&&LOCAL_VARI.next?LOCAL_VARI.next:"Next";this.el.swiperPrevArrow.querySelector(".blind").innerText=t,this.el.swiperNextArrow.querySelector(".blind").innerText=e}else this.el.swiperPrevArrow.querySelector(".blind").innerText="Previous",this.el.swiperNextArrow.querySelector(".blind").innerText="Next";Object.keys(t).forEach((e=>{"data-omni"===e||"an-la"===e||"an-tr"==e?this.el.swiperPrevArrow.setAttribute(e,`${t[e]}left`):this.el.swiperPrevArrow.setAttribute(e,t[e])})),Object.keys(t).forEach((e=>{"data-omni"===e||"an-la"===e||"an-tr"==e?this.el.swiperNextArrow.setAttribute(e,`${t[e]}right`):this.el.swiperNextArrow.setAttribute(e,t[e])}))}setNavigationDisabled(){if(null===this.el.frontSwiper)return;const t=this.el.frontSwiper;0===t.activeIndex&&t.activeIndex0&&t.activeIndex===t.slides.length-1?(this.el.swiperPrevArrow.disabled=!1,this.el.swiperNextArrow.disabled=!0,this.offA11y(this.el.swiperPrevArrow),this.onA11y(this.el.swiperNextArrow)):t.activeIndex>0&&t.activeIndex{const r=e[i].querySelector(this.selector.swiperSlideTitle)?.innerText??"";if("undefined"!=typeof LOCAL_VARI&&LOCAL_VARI){const e=void 0!==LOCAL_VARI.slide&&LOCAL_VARI.slide?LOCAL_VARI.slide:"Slide",n=void 0!==LOCAL_VARI.selected&&LOCAL_VARI.selected?LOCAL_VARI.selected:"selected";s===i?t.setAttribute("aria-label",`${e}${i+1}: ${r} ${n}`):t.setAttribute("aria-label",`${e}${i+1}: ${r}`)}else s===i?t.setAttribute("aria-label",`Slide${i+1}: ${r} selected`):t.setAttribute("aria-label",`Slide${i+1}: ${r}`)}))}onA11y(t){const e=t.querySelectorAll("a, button, input, select, iframe");t.setAttribute("aria-hidden","true"),t.setAttribute("tabindex","-1");for(var i=0;i{this.el.frontSwiper.isBeginning&&this.el.swiperNextArrow.focus()}),100),this.opts.isCarouselAutoPlay=!1)}onClickNextArrow(){clearTimeout(this.opts.clickTimeout),this.opts.clickTimeout=setTimeout((()=>{this.el.frontSwiper.isEnd&&this.el.swiperPrevArrow.focus()}),100),this.opts.isCarouselAutoPlay=!1}onKeyDownPrevArrow(t){"enter"===t.key.toLowerCase()&&this.onClickPrevArrow()}onKeyDownNextArrow(t){"enter"===t.key.toLowerCase()&&this.onClickNextArrow()}onFocusinPrevArrow(){this.opts.isFocusPrevArrow=!0}onFocusinNextArrow(){this.opts.isFocusNextArrow=!0}onFocusoutPrevArrow(){this.el.frontSwiper.isBeginning&&this.opts.isFocusPrevArrow&&this.onClickPrevArrow(),this.opts.isFocusPrevArrow=!1}onFocusoutNextArrow(){this.el.frontSwiper.isEnd&&this.opts.isFocusNextArrow&&this.onClickNextArrow(),this.opts.isFocusNextArrow=!1}onClickControllButton(){this.opts.isCarouselAutoPlay&&(this.opts.isCarouselAutoPlay=!1),this.opts.isVideoAutoPlay=!this.opts.isVideoAutoPlay}onClickBlindController(){const t=this.el.frontSwiperSlides[this.opts.activeIndex].querySelector(this.selector.videoContainer);this.opts.isVideoAutoPlay?this.el.videoPlayer.play(t):this.el.videoPlayer.pause(t),this.opts.isVideoAutoPlay=!this.opts.isVideoAutoPlay,this.opts.isCarouselAutoPlay=!1}onClickDownHandler(t){this.opts.isPointerMoving||(this.opts.isPointerMoving=!0,this.opts.startX=0,this.opts.endX=0,this.opts.startX=this.getMovePointerX(t))}onClickUpHandler(t){if(!this.opts.isPointerMoving)return;this.opts.isPointerMoving=!1,this.opts.endX=this.getMovePointerX(t);const e="mobile"!==this.opts.currDevice?80:50;this.el.frontSwiper&&Math.abs(this.opts.startX-this.opts.endX)>e&&(this.opts.isCarouselAutoPlay=!1)}getMovePointerX(t){return t.touches&&t.touches.length>0?t.touches[0].clientX:t.changedTouches&&t.changedTouches.length>0?t.changedTouches[0].clientX:t.clientX}setVideoPlayer(){this.el.videoPlayer={instance:[],load:t=>{this.el.videoPlayer.instance.length&&this.el.videoPlayer.instance.forEach((e=>{e.onLoad(t)}))},reset:t=>{this.el.videoPlayer.instance.length&&this.el.videoPlayer.instance.forEach((e=>{e.onReset(t)}))},play:t=>{this.el.videoPlayer.instance.length&&this.el.videoPlayer.instance.forEach((e=>{e.onPlay(t)}))},pause:t=>{this.el.videoPlayer.instance.length&&this.el.videoPlayer.instance.forEach((e=>{e.onPause(t)}))},ended:t=>{this.el.videoPlayer.instance.length&&this.el.videoPlayer.instance.forEach((e=>{e.onEnded(t)}))},init:()=>{this.el.videoPlayer.instance.length||0===this.el.videoContainers.length||this.el.videoContainers.forEach(((t,e)=>{this.el.videoPlayer.instance.push(new WATCH.VideoPlayer(t,{sectionElement:this.selector.section,playType:"others",on:{updateController:i=>{let s=i.playState?"pause":"play";const r=i.el,n=this.opts.taggingIdList[e];r.setAttribute("data-omni",`gwatch-ultra:highlights:catch-the-highlights^${n}:movi-${s}:#`),r.setAttribute("an-tr",`gwatch-ultra:highlights:catch-the-highlights^${n}:movi-${s}:#`),r.setAttribute("an-la",`gwatch-ultra:highlights:catch-the-highlights^${n}:movi-${s}:#`);const a=r.querySelector(".blind");a&&("undefined"!=typeof LOCAL_VARI&&LOCAL_VARI&&void 0!==LOCAL_VARI[s]&&LOCAL_VARI[s]?(a.innerText=LOCAL_VARI[s],s!==this.opts.prevState&&(this.el.blindController.innerText=LOCAL_VARI[s],this.opts.prevState=s)):(a.innerText=s,s!==this.opts.prevState&&(this.el.blindController.innerText=s,this.opts.prevState=s))),i.playState&&this.playProgress(t)}}}))}))}},this.el.videoPlayer.init()}playVideo(e){const i=()=>{e.classList.contains("loaded")?(cancelAnimationFrame(this.opts.videoAnimationFrame),t.isLowNetwork()||this.opts.isVideoAutoPlay&&this.el.videoPlayer.play(e)):this.opts.videoAnimationFrame=requestAnimationFrame(i)};this.opts.videoAnimationFrame=requestAnimationFrame(i)}resetVideo(t=!1){if(null===this.el.frontSwiper)return;const e=this.el.frontSwiper,i=e.slides;t?Array.from(i).forEach((t=>{const e=t.querySelector(this.selector.videoContainer);this.el.videoPlayer.reset(e),this.resetProgress(e)})):Array.from(i).forEach(((t,i)=>{const s=t.querySelector(this.selector.videoContainer);i!==e.activeIndex&&s&&(this.el.videoPlayer.reset(s),this.resetProgress(s))}))}playProgress(e){let i=this.opts.videoCircleSize;const s=e.querySelector("video"),r=s.duration,n=e.querySelector(".video__controller").querySelector(".progress-icon"),a=n.querySelector(".draw-line"),o=()=>{if(n&&r){if(!s.paused&&!s.ended){const t=s.currentTime/r*100;let e=this.opts.videoCircleSize*(100-t)/100;e=e{t.addEventListener("focusin",this.events.popup.focusin),t.addEventListener("click",this.events.popup.click)}))}onLoadHandler(){this.events.resize(),this.events.scroll(),window.removeEventListener("load",this.events.load)}onResizeHandler(){this.opts.currDevice=innerWidth>767?"desktop":"mobile",clearTimeout(this.opts.resizeTimeout),this.opts.resizeTimeout=setTimeout((()=>{this.opts.navHeight=t.getNavHeight(),this.opts.prevress=null,this.opts.isBrokenFixed=t.isBrokenFixed(),this.opts.isBrokenFixed?(this.el.stickyElement.style.top="",this.el.stickyElement.style.height="",this.removeStep(1,2),this.el.section.classList.contains("scroll-up")&&this.el.section.classList.remove("scroll-up")):(this.el.stickyElement.style.top=`${this.opts.navHeight}px`,this.el.stickyElement.style.height=`calc(100vh - ${this.opts.navHeight}px)`,this.events.scroll()),this.opts.currDevice!==this.opts.prevDevice&&(this.onResponsiveChange(),this.opts.prevDevice=this.opts.currDevice)}),150)}onResponsiveChange(){document.documentElement.classList.contains("is-layer-open")&&this.el.videoElements.forEach((t=>{this.el.videoPlayer.change(t)}))}onScrollHandler(){if(this.opts.isBrokenFixed)return;const t=scrollY,e=t+innerHeight,i=this.el.trackElement.getBoundingClientRect(),s=this.el.trackElement.clientHeight-innerHeight,r=t+i.top,n=r+i.height;if(t>=r&&en&&(this.opts.progress=100),this.opts.progress===this.opts.prevress)return;const a=scrollY>this.opts.lastScrollY?"down":"up",o=this.opts.progress;o>0&&othis.anim.step1.startPoint&&othis.anim.step2.startPoint&&this.addStep(1,2)):o=100&&this.addStep(1,2),this.opts.lastScrollY=scrollY,this.opts.prevress=o}setPopupLayer(){this.el.popupLayer={instance:null,setup:()=>{if(null!==this.el.popupLayer.instance)return;const e=this.el.popupLayerClose.querySelector(".blind");"undefined"!=typeof LOCAL_VARI&&LOCAL_VARI&&void 0!==LOCAL_VARI.close&&LOCAL_VARI.close?e.innerText=LOCAL_VARI.close:e.innerText="Close",this.el.popupLayer.instance=new HiveLayer(`${this.selector.section} ${this.selector.popupLayer}`,{effect:"default",on:{layerOpenBefore:()=>{const t=this.el.popupLayerEl.querySelectorAll("img.js-res-img:not(.load-complete)");t.length>0&&this.opts.updateImageLoader(t),this.el.popupLayerClose.setAttribute("data-omni",`gwatch-ultra:highlights:cushion-design^lypu:lypu-close:${this.opts.targetPopupId}`),this.el.popupLayerClose.setAttribute("an-tr",`gwatch-ultra:highlights:cushion-design^lypu:lypu-close:${this.opts.targetPopupId}`),this.el.popupLayerClose.setAttribute("an-la",`gwatch-ultra:highlights:cushion-design^lypu:lypu-close:${this.opts.targetPopupId}`);const e=this.el.popupLayerEl.querySelector(`#${this.opts.targetPopupId}`),i=e.querySelector(this.selector.videoElement);if(i)this.el.videoPlayer.load(i);else{const t=e.querySelector(".cushion-design__popup-info");t.classList.contains("is-active")&&t.classList.remove("is-active")}this.el.videoElements.forEach((t=>{this.el.videoPlayer.reset(t)})),this.el.popupLayerEl.setAttribute("data-active-popup",this.opts.targetPopupId)},layerOpenAfter:()=>{const e=this.el.popupLayerEl.querySelector(`#${this.opts.targetPopupId}`),i=e.querySelector(this.selector.videoElement);if(i){const e=i.querySelector(this.selector.videoController);i.classList.contains("loaded")?t.isLowNetwork()||this.el.videoPlayer.play(i):this.el.videoPlayer.load(i),window.setTimeout((()=>{e&&e.focus()}),50)}else setTimeout((()=>{const t=e.querySelector(".cushion-design__popup-info");t.classList.contains("is-active")||t.classList.add("is-active")}),300)},layerCloseBefore:()=>{},layerCloseAfter:()=>{this.opts.targetPopupId="",this.setPopupContentA11y(),this.el.videoElements.forEach((t=>{this.el.videoPlayer.reset(t)}))}}})}},this.el.popupLayer.setup()}setVideoPlayer(){this.el.videoPlayer={instance:[],load:t=>{this.el.videoPlayer.instance.length&&this.el.videoPlayer.instance.forEach((e=>{e.onLoad(t)}))},reset:t=>{this.el.videoPlayer.instance.length&&this.el.videoPlayer.instance.forEach((e=>{e.onReset(t)}))},play:t=>{this.el.videoPlayer.instance.length&&this.el.videoPlayer.instance.forEach((e=>{e.onPlay(t)}))},change:t=>{this.el.videoPlayer.instance.length&&this.el.videoPlayer.instance.forEach((e=>{e.onChange(t)}))},init:()=>{this.el.videoPlayer.instance.length||this.el.videoElements.forEach((t=>{this.el.videoPlayer.instance.push(new WATCH.VideoPlayer(t,{sectionElement:this.selector.section,on:{updateController:t=>{let e=t.playState?"pause":"play";const i=t.el,s=this.opts.tagging.controller;i.setAttribute("data-omni",`${s[e]}${this.opts.targetPopupId}:#`),i.setAttribute("an-tr",`${s[e]}${this.opts.targetPopupId}:#`),i.setAttribute("an-la",`${s[e]}${this.opts.targetPopupId}:#`);const r=i.querySelector(".blind");r&&("undefined"!=typeof LOCAL_VARI&&LOCAL_VARI&&void 0!==LOCAL_VARI[e]&&LOCAL_VARI[e]?r.innerText=LOCAL_VARI[e]:r.innerText=e)},updateTime:t=>{const e=t.el.closest(".cm-layer__content"),i=e.getAttribute("id"),s=e.querySelector(".cushion-design__popup-info");t.duration&&this.opts.popupVideoInfo.forEach((e=>{e.id===i&&(t.currentTime>e.triggerTime?s.classList.contains("is-active")||s.classList.add("is-active"):s.classList.contains("is-active")&&s.classList.remove("is-active"))}))}}}))}))}},this.el.videoPlayer.init()}addStep(t,e){for(let i=t;i{const e=t.getAttribute("id"),i=t.querySelectorAll("a, button, input, select, iframe");this.opts.targetPopupId===e?(t.style.display="block",t.setAttribute("aria-hidden","false"),t.removeAttribute("tabindex"),i.length>0&&i.forEach((t=>{t.setAttribute("aria-hidden","false"),t.removeAttribute("tabindex")}))):(t.style.display="",t.setAttribute("aria-hidden","true"),t.setAttribute("tabindex","-1"),i.length>0&&i.forEach((t=>{t.setAttribute("aria-hidden","true"),t.setAttribute("tabindex","-1")})))}))}}}(),function(){"use strict";window.WATCH=window.WATCH||{};const t=WATCH.UTILS;WATCH.DARKNESS=class{constructor(e,i){this.opts={navHeight:0,progress:0,prevress:null,resizeTimeout:null,isBrokenFixed:t.isBrokenFixed(),...i},this.selector={section:e,trackElement:".night-mode__sticky-track",stickyElement:".night-mode__sticky-content",contentWrapper:".common__wrap",darkBgDay:".night-mode__background.bg-day",darkGradient:".bg-gradient",darkImgDay:".night-mode__image.img-day"},this.class={featureHide:"is-feature-hide"},this.el={section:document.querySelector(this.selector.section)||null,trackElement:null,stickyElement:null,contentWrapper:null,darkBgDay:null,darkGradient:null,darkImgDay:null},this.events={load:this.onLoadHandler.bind(this),resize:this.onResizeHandler.bind(this),scroll:this.onScrollHandler.bind(this)},this.init()}init(){null===this.el.section||this.el.section.classList.contains(this.class.featureHide)||(this.setElements(),this.bindEvents())}setElements(){this.el.trackElement=this.el.section.querySelector(this.selector.trackElement),this.el.stickyElement=this.el.section.querySelector(this.selector.stickyElement),this.el.contentWrapper=this.el.section.querySelector(this.selector.contentWrapper),this.el.darkBgDay=this.el.section.querySelector(this.selector.darkBgDay),this.el.darkGradient=this.el.darkBgDay.querySelector(this.selector.darkGradient),this.el.darkImgDay=this.el.section.querySelector(this.selector.darkImgDay)}bindEvents(){window.addEventListener("load",this.events.load),window.addEventListener("resize",this.events.resize),window.addEventListener("scroll",this.events.scroll)}onLoadHandler(){this.events.resize(),this.events.scroll(),window.removeEventListener("load",this.events.load)}onResizeHandler(){clearTimeout(this.opts.resizeTimeout),this.opts.resizeTimeout=setTimeout((()=>{this.opts.navHeight=t.getNavHeight(),this.el.stickyElement.style.height="",this.opts.isBrokenFixed=t.isBrokenFixed(),this.opts.isBrokenFixed?(this.el.stickyElement.style.top="",this.el.stickyElement.style.height="",this.el.contentWrapper.style.justifyContent="",this.el.section.classList.contains("night-mode--night-mode")||this.el.section.classList.add("night-mode--night-mode")):(this.el.stickyElement.style.top=`${this.opts.navHeight}px`,this.el.contentWrapper.scrollHeight>this.el.contentWrapper.clientHeight?(this.el.contentWrapper.style.justifyContent="flex-start",this.el.stickyElement.style.height=`${this.el.contentWrapper.scrollHeight}px`):(this.el.contentWrapper.style.justifyContent="",this.el.stickyElement.style.height=`calc(100vh - ${this.opts.navHeight}px)`),this.events.scroll())}),150)}onScrollHandler(){if(this.opts.isBrokenFixed)return;const t=this.el.trackElement.getBoundingClientRect(),e=this.el.trackElement.clientHeight-window.innerHeight,i=scrollY+t.top,s=i+e;if(scrollY>=i&&scrollYs&&(this.opts.progress=100);this.opts.progress!==this.opts.prevress&&(this.activeStep1(),this.activeStep2(),this.opts.prevress=this.opts.progress)}activeStep1(){const t=this.opts.progress,e={targetEl:this.el.darkGradient,startValue:-100,endValue:0,startProgress:0,endProgress:55};t>e.startProgress&&te.endProgress&&(e.value=e.endValue),TweenMax.to(e.targetEl,.3,{y:`${e.value}%`})}activeStep2(){const t=this.opts.progress,e={targetEl:this.el.section,startProgress:60},i="night-mode--night-mode";t>e.startProgress?e.targetEl.classList.contains(i)||e.targetEl.classList.add(i):e.targetEl.classList.contains(i)&&e.targetEl.classList.remove(i)}},new WATCH.DARKNESS(".night-mode")}(),function(){"use strict";window.WATCH=window.WATCH||{};WATCH.OneUI=class{constructor(t,e){this.opts={tagging:{"data-omni-type":"microsite_pcontentinter","data-omni":"galaxy-watch-ultra:highlight:carousel:index:","an-tr":"galaxy-watch-ultra:highlight:carousel:index:","an-ca":"indication","an-ac":"carousel","an-la":"galaxy-watch-ultra:highlight:carousel:index:"},currDevice:"desktop",prevDevice:null,currentTabIndex:0,...e},this.selector={section:t,tab:".common__tab",tabButton:".common__tab-cta",tabPanel:".common__tab-panel",swiperHeadline:".common__sub-headline",swiperEl:".figure-column",swiperSlide:".one-ui__image",swiperNavigation:".swiper-arrow-wrap",prevArrow:".swiper-button-prev",nextArrow:".swiper-button-next"},this.class={featureHide:"is-feature-hide",isTabActive:"is-active"},this.el={section:document.querySelector(this.selector.section)||null,tabEl:null,tabButtons:null,tabPanels:null,swiper:null,swiperEl:null,swiperHeadline:null,swiperNavigation:null,prevArrow:null,nextArrow:null},this.events={load:this.onLoadHandler.bind(this),resize:this.onResizeHandler.bind(this),onClickTabButton:this.onClickTabButton.bind(this),prevArrow:this.onClickPrevArrow.bind(this),nextArrow:this.onClickNextArrow.bind(this)},this.init()}init(){null===this.el.section||this.el.section.classList.contains(this.class.featureHide)||(this.setElements(),this.buildSwiper(),this.bindEvents())}setElements(){this.el.tabEl=this.el.section.querySelector(this.selector.tab),this.el.tabButtons=Array.from(this.el.tabEl.querySelectorAll(this.selector.tabButton)),this.el.tabPanels=Array.from(this.el.tabEl.querySelectorAll(this.selector.tabPanel)),this.el.swiperEl=this.el.section.querySelectorAll(this.selector.swiperEl),this.el.swiperHeadline=this.el.section.querySelector(this.selector.swiperHeadline)}bindEvents(){window.addEventListener("load",this.events.load),window.addEventListener("resize",this.events.resize),Array.from(this.el.tabButtons).forEach(((t,e)=>{t.addEventListener("click",(t=>this.events.onClickTabButton(t,e)))}))}onLoadHandler(){this.events.resize(),window.removeEventListener("load",this.events.load)}onResizeHandler(){this.opts.currDevice=innerWidth>767?"desktop":"mobile",clearTimeout(this.opts.resizeTimeout),this.opts.resizeTimeout=setTimeout((()=>{this.opts.currDevice!==this.opts.prevDevice&&(this.onResponsiveChange(),this.opts.prevDevice=this.opts.currDevice)}),150)}onResponsiveChange(){this.setTabA11y(),this.el.swiper.destroy(),"mobile"===this.opts.currDevice&&this.el.swiper.setup()}buildSwiper(){this.el.swiper={instance:Array(this.el.swiperEl.length).fill(null),destroy:()=>{this.el.swiper.instance.forEach(((t,e)=>{null!==this.el.swiper.instance[e]&&(this.el.swiper.instance[e].destroy(!0,!0),this.el.swiper.instance[e]=null)})),this.initSlideA11y()},setup:()=>{const t=this;this.el.swiperEl.forEach(((e,i)=>{if(null===this.el.swiper.instance[i]){const s=e.querySelector(this.selector.swiperNavigation),r=s.querySelector(this.selector.prevArrow),n=s.querySelector(this.selector.nextArrow);this.el.swiper.instance[i]=new Swiper(e,{init:!1,slidesPerView:2}),this.el.swiper.instance[i].on("slideChange",(function(){t.setSlideA11y()})),this.el.swiper.instance[i].on("init",(function(){const e=this.el.querySelector(".swiper-notification");e&&this.el.removeChild(e),t.setSlideA11y(),r.addEventListener("click",t.events.prevArrow),n.addEventListener("click",t.events.nextArrow)})),this.el.swiper.instance[i].init()}}))}}}onClickTabButton(t){const e=t.currentTarget,i=this.el.tabButtons.indexOf(e);this.opts.currentTabIndex=i,this.setTabA11y(),this.setSlideA11y()}onClickPrevArrow(){this.el.swiper.instance.forEach(((t,e)=>{if(null===t)return;const i=t.el.querySelector(".swiper-button-next");if(this.opts.currentTabIndex===e){const e=t.snapIndex-1;0===e&&setTimeout((()=>{i.focus()}),100),t.slideTo(e)}}))}onClickNextArrow(){this.el.swiper.instance.forEach(((t,e)=>{if(null===t)return;const i=t.el.querySelector(".swiper-button-prev");if(this.opts.currentTabIndex===e){const e=t.snapIndex+1;e===t.snapGrid.length-1&&setTimeout((()=>{i.focus()}),100),t.slideTo(e)}}))}setTabA11y(){this.el.tabButtons.forEach(((t,e)=>{const i=this.el.tabPanels[e],s=i.querySelectorAll("a, button, input, select, iframe");if(this.opts.currentTabIndex===e){t.classList.contains(this.class.isTabActive)||t.classList.add(this.class.isTabActive),i.classList.contains(this.class.isTabActive)||i.classList.add(this.class.isTabActive),t.setAttribute("aria-selected",!0),i.setAttribute("aria-hidden",!1),i.style.zIndex=5;for(var r=0;r{this.opts.currentTabIndex!==e&&i.classList.contains(this.class.isTabActive)&&i.classList.remove(this.class.isTabActive)}),300),t.setAttribute("aria-selected",!1),i.setAttribute("aria-hidden",!0),i.style.zIndex="";for(r=0;r{const i=t.querySelectorAll(this.selector.swiperSlide);if(this.opts.currentTabIndex===e)for(let t=0;t{if(null===t)return;const i=t.slides,s=t.activeIndex,r=t.el.querySelector(".swiper-button-prev"),n=t.el.querySelector(".swiper-button-next"),a=t.el.querySelectorAll("a, button, input, select, iframe");if(this.opts.currentTabIndex===e){a.length>0&&a.forEach((t=>{t.setAttribute("aria-hidden","false"),t.removeAttribute("tabindex")}));for(let t=0;t0&&r.forEach((t=>{t.setAttribute("aria-hidden","false"),t.removeAttribute("tabindex")}))):(e.setAttribute("aria-hidden","true"),e.setAttribute("tabindex","-1"),r.length>0&&r.forEach((t=>{t.setAttribute("aria-hidden","true"),t.setAttribute("tabindex","-1")})))}t.isBeginning&&!t.isEnd?(this.onArrowA11y(r),this.offArrowA11y(n)):!t.isBeginning&&t.isEnd?(this.offArrowA11y(r),this.onArrowA11y(n)):t.isBeginning||t.isEnd||(this.offArrowA11y(r),this.offArrowA11y(n))}else{a.length>0&&a.forEach((t=>{t.setAttribute("aria-hidden","true"),t.setAttribute("tabindex","-1")}));for(let t=0;t767?"desktop":"mobile",clearTimeout(this.opts.resizeTimeout),this.opts.resizeTimeout=setTimeout((()=>{this.opts.currDevice!==this.opts.prevDevice&&(this.onResponsiveChange(),this.opts.prevDevice=this.opts.currDevice)}),150)}onResponsiveChange(){this.el.swiper.destroy(),"mobile"===this.opts.currDevice&&this.el.swiper.setup()}buildSwiper(){this.el.swiper={instance:Array(this.el.swiperEl.length).fill(null),destroy:()=>{this.el.swiper.instance.forEach(((t,e)=>{null!==this.el.swiper.instance[e]&&(this.el.swiper.instance[e].destroy(!0,!0),this.el.swiper.instance[e]=null)})),this.initSlideA11y()},setup:()=>{const t=this;this.el.swiperEl.forEach(((e,i)=>{if(null===this.el.swiper.instance[i]){e.querySelector(this.selector.swiperNavigation);this.el.swiper.instance[i]=new Swiper(e,{init:!1,slidesPerView:1}),this.el.swiper.instance[i].on("slideChange",(function(){t.setSlideA11y()})),this.el.swiper.instance[i].on("init",(function(){const e=this.el.querySelector(".swiper-notification");e&&this.el.removeChild(e),t.setSlideA11y()})),this.el.swiper.instance[i].init()}}))}}}onClickTabButton(t){const e=t.currentTarget,i=this.el.tabButtons.indexOf(e);this.opts.currentTabIndex=i,this.setSlideA11y()}onClickPrevArrow(){this.el.swiper.instance.forEach(((t,e)=>{if(null===t)return;const i=t.el.querySelector(".swiper-button-next");if(this.opts.currentTabIndex===e){const e=t.snapIndex-1;0===e&&setTimeout((()=>{i.focus()}),100),t.slideTo(e)}}))}onClickNextArrow(){this.el.swiper.instance.forEach(((t,e)=>{if(null===t)return;const i=t.el.querySelector(".swiper-button-prev");if(this.opts.currentTabIndex===e){const e=t.snapIndex+1;e===t.snapGrid.length-1&&setTimeout((()=>{i.focus()}),100),t.slideTo(e)}}))}setTabA11y(){this.el.tabButtons.forEach(((t,e)=>{const i=this.el.tabPanels[e],s=i.querySelectorAll("a, button, input, select, iframe");if(this.opts.currentTabIndex===e){t.classList.contains(this.class.isTabActive)||t.classList.add(this.class.isTabActive),i.classList.contains(this.class.isTabActive)||i.classList.add(this.class.isTabActive),t.setAttribute("aria-selected",!0),i.setAttribute("aria-hidden",!1),i.style.zIndex=5;for(var r=0;r{this.opts.currentTabIndex!==e&&i.classList.contains(this.class.isTabActive)&&i.classList.remove(this.class.isTabActive)}),300),t.setAttribute("aria-selected",!1),i.setAttribute("aria-hidden",!0),i.style.zIndex="";for(r=0;r{const i=t.querySelectorAll(this.selector.swiperSlide);if(this.opts.currentTabIndex===e)for(let t=0;t{if(null===t)return;const i=t.slides,s=t.activeIndex,r=(t.el.querySelector(".swiper-button-prev"),t.el.querySelector(".swiper-button-next"),t.el.querySelectorAll("a, button, input, select, iframe"));if(this.opts.currentTabIndex===e){r.length>0&&r.forEach((t=>{t.setAttribute("aria-hidden","false"),t.removeAttribute("tabindex")}));for(let t=0;t0&&r.forEach((t=>{t.setAttribute("aria-hidden","false"),t.removeAttribute("tabindex")}))):(e.setAttribute("aria-hidden","true"),e.setAttribute("tabindex","-1"),r.length>0&&r.forEach((t=>{t.setAttribute("aria-hidden","true"),t.setAttribute("tabindex","-1")})))}}else{r.length>0&&r.forEach((t=>{t.setAttribute("aria-hidden","true"),t.setAttribute("tabindex","-1")}));for(let t=0;t{t.addEventListener("click",this.events.sizeButton)})),Array.from(this.el.compareColorItems).forEach((t=>{t.addEventListener("click",this.events.colorButton)})),this.el.viewMoreButton.addEventListener("click",this.events.viewMore)}onLoadHandler(){this.events.resize(),window.removeEventListener("load",this.events.load)}onResizeHandler(){this.opts.currDevice=innerWidth>767?"desktop":"mobile",this.opts.resizeTimeout=setTimeout((()=>{this.matchHeight(),this.opts.currDevice!==this.opts.prevDevice&&(this.onResponsiveChange(),this.opts.prevDevice=this.opts.currDevice),null!==this.el.swiper&&this.el.swiper.update()}),150)}onResponsiveChange(){this.destroySwiper(),this.initColumnsA11y(),this.initCompareItemA11y(),this.matchHeight(),"desktop"===this.opts.currDevice&&this.el.swiperSlides.length\n\n\n`}}}),this.el.swiper.on("scrollbarDragStart",(function(){e.opts.scrollbarDrag=!0})),this.el.swiper.on("scrollbarDragMove",(function(){const t=this.translate;TweenMax.to(e.el.specsTableWrap,0,{x:t})})),this.el.swiper.on("scrollbarDragEnd",(function(){e.opts.scrollbarDrag=!1;const i=this.snapGrid[this.snapIndex];TweenMax.to(e.el.specsTableWrap,0,{x:t.isRTL()?i:-i})})),this.el.swiper.on("slideChange",(function(){e.setCompareItemA11y(),e.setArrowA11y(),e.setColumnsA11y(),e.setPaginationLabel()})),this.el.swiper.on("snapIndexChange",(function(){if(e.opts.scrollbarDrag)return;const i=this.snapGrid[this.snapIndex];TweenMax.to(e.el.specsTableWrap,0,{x:t.isRTL()?i:-i})})),this.el.swiper.on("init",(function(){const t=this.el.querySelector(".swiper-notification");t&&this.el.removeChild(t),e.setCompareItemA11y(),e.setArrowA11y(),e.setColumnsA11y(),e.setNavigationLabel(),e.setPaginationLabel();const i=this,s=i.pagination.bullets;Array.from(s).forEach(((t,e)=>{t.addEventListener("click",(function(t){t.preventDefault(),t.stopPropagation(),i.slideTo(e)}))})),e.el.compareListWrap.classList.contains("slide-on")||e.el.compareListWrap.classList.add("slide-on")})),this.el.swiperEl.addEventListener("mousedown",this.events.mouse.down),this.el.swiperEl.addEventListener("mouseup",this.events.mouse.up),this.el.swiperEl.addEventListener("touchstart",this.events.touch.down),this.el.swiperEl.addEventListener("touchend",this.events.touch.up),this.el.swiper.init()}destroySwiper(){null!==this.el.swiper&&(this.el.swiper.destroy(!0,!0),this.el.swiper=null,this.el.compareListWrap.classList.contains("slide-on")&&this.el.compareListWrap.classList.remove("slide-on"),this.el.swiperSlides.forEach((t=>{this.offA11y(t)})),this.el.swiperEl.removeEventListener("mousedown",this.events.mouse.down),this.el.swiperEl.removeEventListener("mouseup",this.events.mouse.up),this.el.swiperEl.removeEventListener("touchstart",this.events.touch.down),this.el.swiperEl.removeEventListener("touchend",this.events.touch.up),TweenMax.to(this.el.specsTableWrap,0,{x:0}))}onClickPrevArrow(){if(null===this.el.swiper)return;const t=this.el.swiper,e=t.snapIndex-1;0===e&&setTimeout((()=>{this.el.nextArrow.focus()}),100),t.slideTo(e)}onClickNextArrow(){if(null===this.el.swiper)return;const t=this.el.swiper,e=t.snapIndex+1;e===t.snapGrid.length-1&&setTimeout((()=>{this.el.prevArrow.focus()}),100),t.slideTo(e)}onMouseDownHandler(t){this.opts.isPointerMoving||(this.opts.isPointerMoving=!0,this.opts.startX=0,this.opts.endX=0,this.opts.startY=0,this.opts.endY=0,this.opts.startX=this.getMovePointerX(t),this.opts.startY=this.getMovePointerY(t),this.el.swiperEl.addEventListener("mousemove",this.events.mouse.move))}onMouseMoveHandler(t){this.opts.endX=this.getMovePointerX(t),this.opts.endY=this.getMovePointerY(t);const e=Math.abs(this.opts.endX-this.opts.startX),i=Math.abs(this.opts.endY-this.opts.startY);(e>10||i>50)&&t.cancelable&&t.preventDefault()}onMouseUpHandler(e){if(e.target.closest(".swiper-scrollbar"))return;if(!this.opts.isPointerMoving)return;this.opts.isPointerMoving=!1,this.opts.endX=this.getMovePointerX(e);const i="mobile"!==this.opts.currDevice?80:50;this.el.swiper&&Math.abs(this.opts.startX-this.opts.endX)>i&&(this.opts.startX>this.opts.endX?t.isRTL()?this.el.swiper.slidePrev():this.el.swiper.slideNext():t.isRTL()?this.el.swiper.slideNext():this.el.swiper.slidePrev(),this.opts.isAutoPlay=!1),this.el.swiperEl.removeEventListener("mousemove",this.events.mouse.move)}onTouchDownHandler(t){this.opts.isPointerMoving||(this.opts.isPointerMoving=!0,this.opts.startX=0,this.opts.endX=0,this.opts.startY=0,this.opts.endY=0,this.opts.startX=this.getMovePointerX(t),this.opts.startY=this.getMovePointerY(t),this.el.swiperEl.addEventListener("touchmove",this.events.touch.move))}onTouchMoveHandler(t){this.opts.endX=this.getMovePointerX(t),this.opts.endY=this.getMovePointerY(t);const e=Math.abs(this.opts.endX-this.opts.startX),i=Math.abs(this.opts.endY-this.opts.startY);(e>10||i>50)&&t.cancelable&&t.preventDefault()}onTouchUpHandler(e){if(e.target.closest(".swiper-scrollbar"))return;if(!this.opts.isPointerMoving)return;this.opts.isPointerMoving=!1,this.opts.endX=this.getMovePointerX(e);const i="mobile"!==this.opts.currDevice?80:50;this.el.swiper&&Math.abs(this.opts.startX-this.opts.endX)>i&&(this.opts.startX>this.opts.endX?t.isRTL()?this.el.swiper.slidePrev():this.el.swiper.slideNext():t.isRTL()?this.el.swiper.slideNext():this.el.swiper.slidePrev(),this.opts.isAutoPlay=!1),this.el.swiperEl.removeEventListener("touchmove",this.events.touch.move)}getMovePointerX(t){return t.touches&&t.touches.length>0?t.touches[0].clientX:t.changedTouches&&t.changedTouches.length>0?t.changedTouches[0].clientX:t.clientX}getMovePointerY(t){return t.touches&&t.touches.length>0?t.touches[0].clientY:t.changedTouches&&t.changedTouches.length>0?t.changedTouches[0].clientY:t.clientY}onClickSizeButton(t){const e=t.currentTarget,i=e.getAttribute("data-size"),s=e.closest(this.selector.swiperSlide),r=s.getAttribute("data-product"),n=s.getAttribute("data-color");let a=`${r}-${i}-${n}`;s.setAttribute("data-size",i);const o=s.querySelector(this.selector.compareFigure).querySelectorAll(this.selector.compareFigureItem);this.updateCompareFigure(o,a,r);const l=s.querySelector(this.selector.compareSize).querySelectorAll(this.selector.compareSizeButton);this.updateCompareSize(l,i);const h=s.querySelectorAll(this.selector.compareColors);this.updateCompareColors(h,i,n,r,s);const d=s.querySelector(this.selector.CtaWrap);this.updateCta(d,r,i,n,s),o.forEach((t=>{if(t.classList.contains("is-active")){const e=t.querySelectorAll("img.js-res-img:not(.load-complete)");e.length>0&&this.opts.on.updateImageLoader(e)}}))}onClickColorButton(t){const e=t.currentTarget,i=e.getAttribute("data-color"),s=e.closest(this.selector.swiperSlide),r=s.getAttribute("data-product"),n=s.getAttribute("data-size");let a=`${r}-${n}-${i}`;s.setAttribute("data-color",i);const o=s.querySelector(this.selector.compareFigure).querySelectorAll(this.selector.compareFigureItem);this.updateCompareFigure(o,a,r);const l=s.querySelector(this.selector.compareSize).querySelectorAll(this.selector.compareSizeButton);this.updateCompareSize(l,n);const h=s.querySelectorAll(this.selector.compareColors);this.updateCompareColors(h,n,i,r,s);const d=s.querySelector(this.selector.CtaWrap);this.updateCta(d,r,n,i,s),o.forEach((t=>{if(t.classList.contains("is-active")){const e=t.querySelectorAll("img.js-res-img:not(.load-complete)");e.length>0&&this.opts.on.updateImageLoader(e)}}))}onClickViewMore(){if(this.el.compareListWrap.classList.contains("is-expanded")){this.el.compareListWrap.classList.remove("is-expanded"),this.changeViewMoreTagging("view-more");const e=t.getNavHeight(),i=scrollY,s=i+innerHeight,r=this.el.viewMoreButton.getBoundingClientRect(),n=(innerHeight-e)/2,a=i+r.top,o=a-e+r.height/2,l=a+r.height;a0&&this.opts.on.updateImageLoader(t)}null!==this.el.swiper?this.setColumnsA11y():this.initColumnsA11y()}updateCompareFigure(t,e,i){let s=!1;if(t.forEach((t=>{const i=t.getAttribute("data-product");e===i?(t.classList.add("is-active"),s=!0):t.classList.remove("is-active")})),!s){const s=this.compare[i],r=e.indexOf("large")>-1?`${i}-large-${s.largeColor}`:`${i}-small-${s.smallColor}`;this.updateCompareFigure(t,r)}}updateCompareSize(t,e){t.forEach((t=>{t.getAttribute("data-size")===e?(t.classList.add("is-active"),t.setAttribute("title","selected")):(t.classList.remove("is-active"),t.removeAttribute("title"))}))}updateCompareColors(t,e,i,s,r){let n=!1;if(t.forEach((t=>{const s=t.querySelectorAll(this.selector.compareColorItem);t.getAttribute("data-size")===e?(t.classList.add("is-active"),this.offA11y(t),s.forEach((t=>{t.getAttribute("data-color")===i?(t.classList.add("is-active"),t.setAttribute("title","selected"),n=!0):(t.classList.remove("is-active"),t.removeAttribute("title"))}))):(t.classList.remove("is-active"),this.onA11y(t),s.forEach((t=>{t.classList.remove("is-active")})))})),!n){const i=this.compare[s],n="large"===e?i.largeColor:i.smallColor;r.setAttribute("data-color",n),this.updateCompareColors(t,e,n,r)}}updateCta(t,e,i,s,r){let n=!1;const a=t.querySelector(this.selector.buyNowCta),o=t.querySelector(this.selector.learnMoreCta),l=LOCAL_DATA[e][i][s];if(l&&(l.buynow&&""!==l.buynow&&a?(a.parentElement.style.display="block",a.setAttribute("href",l.buynow),this.updateCtaTagging(a,l,e),n=!0):a.parentElement.style.display="none",l.learnmore&&""!==l.learnmore&&o?(o.parentElement.style.display="block",o.setAttribute("href",l.learnmore),this.updateCtaTagging(o,l,e),n=!0):o.parentElement.style.display="none"),!n&&!l){const s=this.compare[e],n="large"===i?s.largeColor:s.smallColor;r.setAttribute("data-color",n),this.updateCta(t,e,i,n)}}initColumnsA11y(){Array.from(this.el.specsTableRows).forEach(((t,e)=>{const i=t.querySelectorAll(this.selector.specsTableColumn);Array.from(i).forEach(((t,i)=>{this.el.compareListWrap.classList.contains("is-expanded")||e{this.offA11y(t)}))}setColumnsA11y(){if(null===this.el.swiper)return;const t=this.el.swiper.snapIndex,e="desktop"===this.opts.currDevice?4:2;Array.from(this.el.specsTableRows).forEach(((i,s)=>{const r=i.querySelectorAll(this.selector.specsTableColumn);Array.from(r).forEach(((i,r)=>{this.el.compareListWrap.classList.contains("is-expanded")?r>=t&&r=t&&r{s>=t&&s0&&t.snapIndex===t.snapGrid.length-1?(this.offA11y(this.el.prevArrow),this.onA11y(this.el.nextArrow),this.el.prevArrow.classList.remove("swiper-button-disabled"),this.el.nextArrow.classList.add("swiper-button-disabled")):t.snapIndex>0&&t.snapIndex{const e=JSON.parse(t.getAttribute("data-info"));this.compare[e.product]={size:e["default-size"],color:e["default-color"],smallColor:e["default-small-color"]||e["default-color"],largeColor:e["default-large-color"]||e["default-color"]},t.setAttribute("data-product",e.product),t.setAttribute("data-size",e["default-size"]),t.setAttribute("data-color",e["default-color"])})),this.setCompareItemA11y()}setCompareItemA11y(){Array.from(this.el.swiperSlides).forEach(((t,e)=>{const i=t.getAttribute("data-product"),s=t.getAttribute("data-size"),r=t.getAttribute("data-color"),n=`${i}-${s}-${r}`,a=t.querySelector(this.selector.compareFigure).querySelectorAll(this.selector.compareFigureItem);this.updateCompareFigure(a,n,i);const o=t.querySelector(this.selector.compareSize).querySelectorAll(this.selector.compareSizeButton);this.updateCompareSize(o,s,i);const l=t.querySelectorAll(this.selector.compareColors);this.updateCompareColors(l,s,r,i);const h=t.querySelector(this.selector.CtaWrap);if(this.updateCta(h,i,s,r),this.setCompareCtaText(h),null===this.el.swiper)return;const d=this.el.swiper.snapIndex,c="desktop"===this.opts.currDevice?4:2;e>=d&&e{"data-omni"===e||"an-la"===e||"an-tr"==e?this.el.prevArrow.setAttribute(e,`${t[e]}left`):this.el.prevArrow.setAttribute(e,t[e])})),Object.keys(t).forEach((e=>{"data-omni"===e||"an-la"===e||"an-tr"==e?this.el.nextArrow.setAttribute(e,`${t[e]}right`):this.el.nextArrow.setAttribute(e,t[e])}))}setPaginationLabel(){if(null===this.el.swiper)return;const t=this.el.swiper,e=t.pagination.bullets,i=t.activeIndex,s=["Galaxy Watch Ultra, Galaxy Watch7","Galaxy Watch Watch7, Galaxy Watch6 Classic","Galaxy Watch6 Classic, Galaxy Watch5 Pro"];Array.from(e).forEach(((t,e)=>{const r=s[e];if("undefined"!=typeof LOCAL_VARI&&LOCAL_VARI){const s=void 0!==LOCAL_VARI.slide&&LOCAL_VARI.slide?LOCAL_VARI.slide:"Slide",n=void 0!==LOCAL_VARI.selected&&LOCAL_VARI.selected?LOCAL_VARI.selected:"selected";i===e?t.setAttribute("aria-label",`${s}${e+1}: ${r} ${n}`):t.setAttribute("aria-label",`${s}${e+1}: ${r}`)}else i===e?t.setAttribute("aria-label",`Slide${e+1}: ${r} selected`):t.setAttribute("aria-label",`Slide${e+1}: ${r}`)}))}setCompareCtaText(t){if("undefined"!=typeof LOCAL_VARI&&LOCAL_VARI){const e=void 0!==LOCAL_VARI.buyNow&&LOCAL_VARI.buyNow?LOCAL_VARI.buyNow:"Buy Now",i=void 0!==LOCAL_VARI.learnMore&&LOCAL_VARI.learnMore?LOCAL_VARI.learnMore:"Learn More";t.querySelector(`${this.selector.buyNowCta} span`).innerText=e,t.querySelector(`${this.selector.learnMoreCta} span`).innerText=i}else t.querySelector(`${this.selector.buyNowCta} span`).innerText="Buy Now",t.querySelector(`${this.selector.learnMoreCta} span`).innerText="Learn More"}updateCtaTagging(t,e,i){const s=this.opts.tagging.buyNow,r=this.opts.tagging.learnMore;if(e.buynow&&""!==e.buynow&&t.classList.contains(this.class.buyNow)){let r="",n="";"galaxy-watch-ultra"===i?(r=`gwatch-ultra:highlights:compare:conv-pdt:buy-now|;${e.sku}`,n="gwatch-ultra:highlights:compare:conv-pdt:buy-now"):(r=`gwatch-ultra:highlights:compare:conv-oth:${i}`,n=`gwatch-ultra:highlights:compare:conv-oth:${i}`),Object.keys(s).forEach((e=>{"data-omni"===e||"an-tr"==e?t.setAttribute(e,r):"an-la"===e?t.setAttribute(e,n):t.setAttribute(e,s[e])}))}e.learnmore&&""!==e.learnmore&&t.classList.contains(this.class.learnMore)&&Object.keys(r).forEach((e=>{"data-omni"===e||"an-tr"==e||"an-la"===e?t.setAttribute(e,`${r[e]}${i}`):t.setAttribute(e,r[e])}))}changeViewMoreTagging(t){const e=this.opts.tagging.viewMore;Object.keys(e).forEach((i=>{"data-omni"===i||"an-la"===i||"an-tr"==i?this.el.viewMoreButton.setAttribute(i,`${e[i]}${t}`):this.el.viewMoreButton.setAttribute(i,e[i])}))}onA11y(t){const e=t.querySelectorAll("a, button, input, select, iframe");t.setAttribute("aria-hidden","true"),t.setAttribute("tabindex","-1");for(var i=0;i{const i=t.querySelector(this.selector.compareSize);i.style.height="",e.push(i.clientHeight)}));const i=Math.max(...e);Array.from(t).forEach((t=>{t.querySelector(this.selector.compareSize).style.height=`${i}px`}))}}}(),function(){"use strict";window.WATCH=window.WATCH||{};const t=WATCH.UTILS;WATCH.Contrast=class{constructor(t=container,e){const i={el:t,defaultBtn:".type-default",contrastBtn:".type-contrast",cookieName:"highContrastMode",featureHide:"is-feature-hide"};this.opts=i,this.classes=i.classes,this.el=document.querySelector(t),this.init()}init(){null===this.el||this.el.classList.contains(this.opts.featureHide)||(this.setElements(),this.bindEvents())}setElements(){this.defaultBtn=this.el.querySelector(this.opts.defaultBtn),this.defaultBtnTitle=this.defaultBtn.getAttribute("title").trim(),this.contrastBtn=this.el.querySelector(this.opts.contrastBtn),this.contrastBtnTitle=this.contrastBtn.getAttribute("title").trim(),this.cookieName=this.opts.cookieName}bindEvents(){window.addEventListener("load",this.onLoadHandler.bind(this)),this.defaultBtn&&this.defaultBtn.addEventListener("click",this.onClickDefaultBtn.bind(this)),this.contrastBtn&&this.contrastBtn.addEventListener("click",this.onClickContrastBtn.bind(this))}onLoadHandler(){this.activeContrast()}onClickDefaultBtn(e){e.preventDefault(),t.setCookie(this.cookieName,"0",1),this.activeContrast()}onClickContrastBtn(e){e.preventDefault(),t.setCookie(this.cookieName,"1",1),this.activeContrast()}activeContrast(){var e=t.getCookie(this.cookieName);null!=e&&e.length&&"1"==e?(document.documentElement.classList.add("color_yb"),this.contrastBtn.setAttribute("title",this.contrastBtnTitle+" selected"),this.defaultBtn.setAttribute("title",this.defaultBtnTitle)):(document.documentElement.classList.remove("color_yb"),this.contrastBtn.setAttribute("title",this.contrastBtnTitle),this.defaultBtn.setAttribute("title",this.defaultBtnTitle+" selected"))}}}(),function(){"use strict";window.WATCH=window.WATCH||{};const t=WATCH.UTILS,e=t.RESPONSIVE;WATCH.Detail=class{constructor(t=container,e){var i={el:t,tabEl:".wearable-tab-detail__tab",tabList:".wearable-tab-detail__tab-list",tabButtons:".wearable-tab-detail__tab-cta",tabPanel:".wearable-tab-detail__tab-panels",tabPanels:".wearable-tab-detail__tab-panel",classes:{isActive:"is-active"},featureHide:"is-feature-hide",resizeStart:null};this.opts=i,this.classes=i.classes,this.el=document.querySelector(t),this.init()}init(){null===this.el||this.el.classList.contains(this.opts.featureHide)||(this.setElements(),this.initOpts(),this.bindEvents())}setElements(){this.tabEl=this.el.querySelector(this.opts.tabEl),this.tabList=this.tabEl.querySelector(this.opts.tabList),this.tabButtons=t.convertArray(this.tabList.querySelectorAll(this.opts.tabButtons)),this.tabPanel=this.el.querySelector(this.opts.tabPanel),this.tabPanels=t.convertArray(this.tabPanel.querySelectorAll(this.opts.tabPanels))}initOpts(){this.currentIndex=0,this.currentDevice=!1,this.prevDevice=null}initLayout(){this.tabButtons.forEach((function(t,e){const i=this.tabPanels[e];this.currentIndex==e?(t.classList.contains(this.classes.isActive)||t.classList.add(this.classes.isActive),i.classList.contains(this.classes.isActive)||i.classList.add(this.classes.isActive),t.setAttribute("aria-selected",!0)):(t.classList.contains(this.classes.isActive)&&t.classList.remove(this.classes.isActive),i.classList.contains(this.classes.isActive)&&i.classList.remove(this.classes.isActive),t.setAttribute("aria-selected",!1))}))}bindEvents(){window.addEventListener("resize",this.onResizeHandler.bind(this)),this.tabButtons.forEach((t=>{t.addEventListener("click",this.onClickTabButton.bind(this))}))}unBindEvents(){}onClickTabButton(t){t=t.currentTarget;const e=this.tabButtons.indexOf(t);e!=this.currentIndex&&(this.tabButtons.forEach(((t,i)=>{const s=this.tabPanels[i];e==i?(t.classList.contains(this.classes.isActive)||t.classList.add(this.classes.isActive),s.classList.contains(this.classes.isActive)||s.classList.add(this.classes.isActive),t.setAttribute("aria-selected",!0)):(t.classList.contains(this.classes.isActive)&&t.classList.remove(this.classes.isActive),s.classList.contains(this.classes.isActive)&&s.classList.remove(this.classes.isActive),t.setAttribute("aria-selected",!1))})),this.currentIndex=e)}onResizeHandler(){t.winSize().w!==this.winWidth&&(this.winWidth=t.winSize().w,null==this.opts.resizeStart&&(this.opts.resizeStart=this.winWidth,this.resizeAnimateFunc()),window.clearTimeout(this.resizeEndTime),this.resizeEndTime=window.setTimeout(this.resizeEndFunc.bind(this),150))}resizeAnimateFunc(){this.setLayout(),this.resizeRequestFrame=t.requestAFrame.call(window,this.resizeAnimateFunc.bind(this))}resizeEndFunc(){this.opts.resizeStart=null,t.cancelAFrame.call(window,this.resizeRequestFrame)}onResponsiveChange(){}setLayout(){this.winWidth>=e.TABLET.WIDTH?this.currentDevice="desktop":this.winWidth>e.MOBILE.WIDTH&&this.winWidth{this.imageLoader.setResponsiveImage(t)}}),new WATCH.CommonVideo(".battery",{controlTagging:{play:"gwatch-ultra:highlights:battery:movi-play",pause:"gwatch-ultra:highlights:battery:movi-pause"}}),new WATCH.BigMoment(".big-moment--ocean",{scale:1.1}),new WATCH.BigMomentColumn(".gui-column--ocean",{tagging:{"data-omni-type":"microsite_pcontentinter","data-omni":"gwatch-ultra:highlights:ocean-gui:index:","an-tr":"gwatch-ultra:highlights:ocean-gui:index:","an-ca":"indication","an-ac":"carousel","an-la":"gwatch-ultra:highlights:ocean-gui:index:"},controlTagging:{play:"gwatch-ultra:highlights:ocean-gui-video:movi-play",pause:"gwatch-ultra:highlights:ocean-gui-video:movi-pause"}}),new WATCH.BigMoment(".big-moment--mountain"),new WATCH.CommonVideo(".big-moment--mountain"),new WATCH.BigMomentColumn(".gui-column--mountain",{tagging:{"data-omni-type":"microsite_pcontentinter","data-omni":"gwatch-ultra:highlights:snow-mountain-gui:index:","an-tr":"gwatch-ultra:highlights:snow-mountain-gui:index:","an-ca":"indication","an-ac":"carousel","an-la":"gwatch-ultra:highlights:snow-mountain-gui:index:"},controlTagging:{play:"gwatch-ultra:highlights:mountain-gui-video:movi-play",pause:"gwatch-ultra:highlights:mountain-gui-video:movi-pause"}}),new WATCH.BigMomentColumn(".mountain-siren",{centeredSlides:!1,slideTitle:".mountain-siren__item-text",tagging:{"data-omni-type":"microsite_pcontentinter","data-omni":"gwatch-ultra:highlights:siren:index:","an-tr":"gwatch-ultra:highlights:siren:index:","an-ca":"indication","an-ac":"carousel","an-la":"gwatch-ultra:highlights:siren:index:"}}),new WATCH.BigMoment(".big-moment--desert",{scale:1.1}),new WATCH.CommonVideo(".creating-routes",{controlTagging:{play:"gwatch-ultra:highlights:desert-video:movi-play",pause:"gwatch-ultra:highlights:desert-video:movi-pause"}}),new WATCH.BigMomentColumn(".gui-column--desert",{tagging:{"data-omni-type":"microsite_pcontentinter","data-omni":"gwatch-ultra:highlights:desert-gui:index:","an-tr":"gwatch-ultra:highlights:desert-gui:index:","an-ca":"indication","an-ac":"carousel","an-la":"gwatch-ultra:highlights:desert-gui:index:"}}),new WATCH.BigMoment(".big-moment--triathlon"),new WATCH.CommonVideo(".action-button",{controlTagging:{play:"gwatch-ultra:highlights:quick-button:movi-play",pause:"gwatch-ultra:highlights:quick-button:movi-pause"}}),new WATCH.BigMomentColumn(".gui-column--triathlon",{tagging:{"data-omni-type":"microsite_pcontentinter","data-omni":"gwatch-ultra:highlights:multi-sports:index:","an-tr":"gwatch-ultra:highlights:multi-sports:index:","an-ca":"indication","an-ac":"carousel","an-la":"gwatch-ultra:highlights:multi-sports:index:"}}),new WATCH.CommonVideo(".energy-score",{controlTagging:{play:"gwatch-ultra:highlights:ai-energy-score:movi-play",pause:"gwatch-ultra:highlights:ai-energy-score:movi-pause"}}),new WATCH.BigMomentColumn(".sleep-column",{centeredSlides:!1,slideTitle:".sleep-column__item-text",tagging:{"data-omni-type":"microsite_pcontentinter","data-omni":"gwatch-ultra:highlights:sleep-coaching:index:","an-tr":"gwatch-ultra:highlights:sleep-coaching:index:","an-ca":"indication","an-ac":"carousel","an-la":"gwatch-ultra:highlights:sleep-coaching:index:"}}),new WATCH.CommonVideo(".monitoring",{controlTagging:{play:"gwatch-ultra:highlights:heart-monitoring:movi-play",pause:"gwatch-ultra:highlights:heart-monitoring:movi-pause"}}),new WATCH.BigMomentColumn(".wellness",{centeredSlides:!1,slideTitle:".common__sub-headline",tagging:{"data-omni-type":"microsite_pcontentinter","data-omni":"gwatch-ultra:highlights:heart-monitoring:index:","an-tr":"gwatch-ultra:highlights:heart-monitoring:index:","an-ca":"indication","an-ac":"carousel","an-la":"gwatch-ultra:highlights:heart-monitoring:index:"}}),new WATCH.CommonVideo(".gesture",{controlTagging:{play:"gwatch-ultra:highlights:gesture:movi-play:expansive-screen-video",pause:"gwatch-ultra:highlights:gesture:movi-pause:expansive-screen-video"}}),new WATCH.OneUI(".one-ui"),new WATCH.BigMomentColumn(".features",{centeredSlides:!1,slidesPerView:1,slideTitle:".common__sub-headline",tagging:{"data-omni-type":"microsite_pcontentinter","data-omni":"gwatch-ultra:highlights:heart-monitoring:index:","an-tr":"gwatch-ultra:highlights:heart-monitoring:index:","an-ca":"indication","an-ac":"carousel","an-la":"gwatch-ultra:highlights:heart-monitoring:index:"}}),new WATCH.Compare(".compare",{on:{updateImageLoader:t=>{this.imageLoader.setResponsiveImage(t)}}}),new WATCH.Contrast(".cp-high-contrast"),WATCH.Disclaimer.init(),window.addEventListener("load",(()=>{setTimeout((()=>{window.GALAXY&&window.GALAXY.isGalaxy&&(this.subNav=new WATCH.SubNav("#subnav"))}),5)})),new WATCH.Detail(".wearable-tab-detail")}}(".wearable-watch")}()}))