1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[629],{7866:function(e,t){/*! 2 * lightgallery | 2.8.3 | March 1st 2025 3 * http://www.lightgalleryjs.com/ 4 * Copyright (c) 2020 Sachin Neravath; 5 * @license GPLv3 6 *//*! ***************************************************************************** 7Copyright (c) Microsoft Corporation. 8 9Permission to use, copy, modify, and/or distribute this software for any 10purpose with or without fee is hereby granted. 11 12THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH 13REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY 14AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, 15INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM 16LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR 17OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 18PERFORMANCE OF THIS SOFTWARE. 19***************************************************************************** */var i=function(){return(i=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++)for(var r in t=arguments[i])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},n={thumbnail:!0,animateThumb:!0,currentPagerPosition:"middle",alignThumbnails:"middle",thumbWidth:100,thumbHe
vendor: 5,502 bytes, line 19
19ight:"80px",thumbMargin:5,appendThumbnailsTo:".lg-components",toggleThumb:!1,enableThumbDrag:!0,enableThumbSwipe:!0,thumbnailSwipeThreshold:10,loadYouTubeThumbnail:!0,youTubeThumbSize:1,thumbnailPluginStrings:{toggleThumbnails:"Toggle thumbnails"}},r="lgBeforeSlide",o=function(){function e(e,t){return this.thumbOuterWidth=0,this.thumbTotalWidth=0,this.translateX=0,this.thumbClickable=!1,this.core=e,this.$LG=t,this}return e.prototype.init=function(){this.settings=i(i({},n),this.core.settings),this.thumbOuterWidth=0,this.thumbTotalWidth=this.core.galleryItems.length*(this.settings.thumbWidth+this.settings.thumbMargin),this.translateX=0,this.setAnimateThumbStyles(),this.core.settings.allowMediaOverlap||(this.settings.toggleThumb=!1),this.settings.thumbnail&&(this.build(),this.settings.animateThumb?(this.settings.enableThumbDrag&&this.enableThumbDrag(),this.settings.enableThumbSwipe&&this.enableThumbSwipe(),this.thumbClickable=!1):this.thumbClickable=!0,this.toggleThumbBar(),this.thumbKeyPress())},e.prototype.build=function(){var e=this;this.setThumbMarkup(),this.manageActiveClassOnSlideChange(),this.$lgThumb.first().on("click.lg touchend.lg",function(t){var i=e.$LG(t.target);i.hasAttribute("data-lg-item-id")&&setTimeout(function(){if(e.thumbClickable&&!e.core.lgBusy){var t=parseInt(i.attr("data-lg-item-id"));e.core.slide(t,!1,!0,!1)}},50)}),this.core.LGel.on(r+".thumb",function(t){var i=t.detail.index;e.animateThumb(i)}),this.core.LGel.on("lgBeforeOpen.thumb",function(){e.thumbOuterWidth=e.core.outer.get().offsetWidth}),this.core.LGel.on("lgUpdateSlides.thumb",function(){e.rebuildThumbnails()}),this.core.LGel.on("lgContainerResize.thumb",function(){e.core.lgOpened&&setTimeout(function(){e.thumbOuterWidth=e.core.outer.get().offsetWidth,e.animateThumb(e.core.index),e.thumbOuterWidth=e.core.outer.get().offsetWidth},50)})},e.prototype.setThumbMarkup=function(){var e="lg-thumb-outer ";this.settings.alignThumbnails&&(e+="lg-thumb-align-"+this.settings.alignThumbnails);var t='<div class="'+e+'">\n <div class="lg-thumb lg-group">\n </div>\n </div>';this.core.outer.addClass("lg-has-thumb"),".lg-components"===this.settings.appendThumbnailsTo?this.core.$lgComponents.append(t):this.core.outer.append(t),this.$thumbOuter=this.core.outer.find(".lg-thumb-outer").first(),this.$lgThumb=this.core.outer.find(".lg-thumb").first(),this.settings.animateThumb&&this.core.outer.find(".lg-thumb").css("transition-duration",this.core.settings.speed+"ms").css("width",this.thumbTotalWidth+"px").css("position","relative"),this.setThumbItemHtml(this.core.galleryItems)},e.prototype.enableThumbDrag=function(){var e=this,t={cords:{startX:0,endX:0},isMoved:!1,newTranslateX:0,startTime:new Date,endTime:new Date,touchMoveTime:0},i=!1;this.$thumbOuter.addClass("lg-grab"),this.core.outer.find(".lg-thumb").first().on("mousedown.lg.thumb",function(n){e.thumbTotalWidth>e.thumbOuterWidth&&(n.preventDefault(),t.cords.startX=n.pageX,t.startTime=new Date,e.thumbClickable=!1,i=!0,e.core.outer.get().scrollLeft+=1,e.core.outer.get().scrollLeft-=1,e.$thumbOuter.removeClass("lg-grab").addClass("lg-grabbing"))}),this.$LG(window).on("mousemove.lg.thumb.global"+this.core.lgId,function(n){e.core.lgOpened&&i&&(t.cords.endX=n.pageX,t=e.onThumbTouchMove(t))}),this.$LG(window).on("mouseup.lg.thumb.global"+this.core.lgId,function(){e.core.lgOpened&&(t.isMoved?t=e.onThumbTouchEnd(t):e.thumbClickable=!0,i&&(i=!1,e.$thumbOuter.removeClass("lg-grabbing").addClass("lg-grab")))})},e.prototype.enableThumbSwipe=function(){var e=this,t={cords:{startX:0,endX:0},isMoved:!1,newTranslateX:0,startTime:new Date,endTime:new Date,touchMoveTime:0};this.$lgThumb.on("touchstart.lg",function(i){e.thumbTotalWidth>e.thumbOuterWidth&&(i.preventDefault(),t.cords.startX=i.targetTouches[0].pageX,e.thumbClickable=!1,t.startTime=new Date)}),this.$lgThumb.on("touchmove.lg",function(i){e.thumbTotalWidth>e.thumbOuterWidth&&(i.preventDefault(),t.cords.endX=i.targetTouches[0].pageX,t=e.onThumbTouchMove(t))}),this.$lgThumb.on("touchend.lg",function(){t.isMoved?t=e.onThumbTouchEnd(t):e.thumbClickable=!0})},e.prototype.rebuildThumbnails=function(){var e=this;this.$thumbOuter.addClass("lg-rebuilding-thumbnails"),setTimeout(function(){e.thumbTotalWidth=e.core.galleryItems.length*(e.settings.thumbWidth+e.settings.thumbMargin),e.$lgThumb.css("width",e.thumbTotalWidth+"px"),e.$lgThumb.empty(),e.setThumbItemHtml(e.core.galleryItems),e.animateThumb(e.core.index)},50),setTimeout(function(){e.$thumbOuter.removeClass("lg-rebuilding-thumbnails")},200)},e.prototype.setTranslate=function(e){this.$lgThumb.css("transform","translate3d(-"+e+"px, 0px, 0px)")},e.prototype.getPossibleTransformX=function(e){return e>this.thumbTotalWidth-this.thumbOuterWidth&&(e=this.thumbTotalWidth-this.thumbOuterWidth),e<0&&(e=0),e},e.prototype.animateThumb=function(e){if(this.$lgThumb.css("transition-duration",this.core.settings.speed+"ms"),this.settings.animateThumb){var t=0;switch(this.settings.currentPagerPosition){case"left":t=0;break;case"middle":t=this.thumbOuterWidth/2-this.settings.thumbWidth/2;break;case"right":t=this.thumbOuterWidth-this.settings.thumbWidth}this.translateX=(this.settings.thumbWidth+this.settings.thumbMargin)*e-1-t,this.translateX>this.thumbTotalWidth-this.thumbOuterWidth&&(this.translateX=this.thumbTotalWidth-this.thumbOuterWidth),this.translateX<0&&(this.translateX=0),this.setTranslate(this.translateX)}},e.prototype.onThumbTouchMove=function(e){return e.newTranslateX=this.translateX,e.
19isMoved=!0,e.touchMoveTime=new Date().valueOf(),e.newTranslateX-=e.cords.endX-e.cords.startX,e.newTranslateX=this.getPossibleTransformX(e.newTranslateX),this.setTranslate(e.newTranslateX),this.$thumbOuter.addClass("lg-dragging"),e},e.prototype.onThumbTouchEnd=function(e){e.isMoved=!1,e.endTime=new Date,this.$thumbOuter.removeClass("lg-dragging");var t=e.endTime.valueOf()-e.startTime.valueOf(),i=e.cords.endX-e.cords.startX,n=Math.abs(i)/t;return n>.15&&e.endTime.valueOf()-e.touchMoveTime<30?((n+=1)>2&&(n+=1),n+=Math.abs(i)/this.thumbOuterWidth*n,this.$lgThumb.css("transition-duration",Math.min(n-1,2)+"settings"),i*=n,this.translateX=this.getPossibleTransformX(this.translateX-i),this.setTranslate(this.translateX)):this.translateX=e.newTranslateX,Math.abs(e.cords.endX-e.cords.startX)<this.settings.thumbnailSwipeThreshold&&(this.thumbClickable=!0),e},e.prototype.getThumbHtml=function(e,t,i){var n,r=this.core.galleryItems[t].__slideVideoInfo||{};n=r.youtube&&this.settings.loadYouTubeThumbnail?"//img.youtube.com/vi/"+r.youtube[1]+"/"+this.settings.youTubeThumbSize+".jpg":e;var o=document.createElement("div");o.setAttribute("data-lg-item-id",t+""),o.className="lg-thumb-item "+(t===this.core.index?"active":""),o.style.cssText="width: "+this.settings.thumbWidth+"px; height: "+this.settings.thumbHeight+"; margin-right: "+this.settings.thumbMargin+"px;";var s=document.createElement("img");return s.alt=i||"",s.setAttribute("data-lg-item-id",t+""),s.src=n,o.appendChild(s),o},e.prototype.setThumbItemHtml=function(e){for(var t=0;t<e.length;t++){var i=this.getThumbHtml(e[t].thumb,t,e[t].alt);this.$lgThumb.append(i)}},e.prototype.setAnimateThumbStyles=function(){this.settings.animateThumb&&this.core.outer.addClass("lg-animate-thumb")},e.prototype.manageActiveClassOnSlideChange=function(){var e=this;this.core.LGel.on(r+".thumb",function(t){var i=e.core.outer.find(".lg-thumb-item"),n=t.detail.index;i.removeClass("active"),i.eq(n).addClass("active")})},e.prototype.toggleThumbBar=function(){var e=this;this.settings.toggleThumb&&(this.core.outer.addClass("lg-can-toggle"),this.core.$toolbar.append('<button type="button" aria-label="'+this.settings.thumbnailPluginStrings.toggleThumbnails+'" class="lg-toggle-thumb lg-icon"></button>'),this.core.outer.find(".lg-toggle-thumb").first().on("click.lg",function(){e.core.outer.toggleClass("lg-components-open")}))},e.prototype.thumbKeyPress=function(){var e=this;this.$LG(window).on("keydown.lg.thumb.global"+this.core.lgId,function(t){e.core.lgOpened&&e.settings.toggleThumb&&(38===t.keyCode?(t.preventDefault(),e.core.outer.addClass("lg-components-open")):40===t.keyCode&&(t.preventDefault(),e.core.outer.removeClass("lg-components-open")))})},e.prototype.destroy=function(){this.settings.thumbnail&&(this.$LG(window).off(".lg.thumb.global"+this.core.lgId),this.core.LGel.off(".lg.thumb"),this.core.LGel.off(".thumb"),this.$thumbOuter.remove(),this.core.outer.removeClass("lg-has-thumb"))},e}();t.Z=o},2869:function(e,t){/*! 20 * lightgallery | 2.8.3 | March 1st 2025 21 * http://www.lightgalleryjs.com/ 22 * Copyright (c) 2020 Sachin Neravath; 23 * @license GPLv3 24 *//*! ***************************************************************************** 25Copyright (c) Microsoft Corporation. 26 27Permission to use, copy, modify, and/or distribute this software for any 28purpose with or without fee is hereby granted. 29 30THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH 31REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY 32AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, 33INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM 34LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR 35OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 36PERFORMANCE OF THIS SOFTWARE. 37***************************************************************************** */var i=function(){return(i=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++)for(var r in t=arguments[i])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},n={scale:1,zoom:!0,infiniteZoom:!0,actualSize:!0,showZoomInOutIcons:!1,actualSizeIcons:{zoomIn:"lg-zoom-in",zoomOut:"lg-zoom-out"},enableZoomAfter:300,zoomPluginStrings:{zoomIn:"Zoom in",zoomOut:"Zoom out",viewActualSize:"View actual size"}},r=function(){function e(e,t){return this.core=e,this.$LG=t,this.settings=i(i({},n),this.core.settings),this}return e.prototype.buildTemplates=function(){var e=this.settings.showZoomInOutIcons?'<button id="'+this.core.getIdName("lg-zoom-in")+'" type="button" aria-label="'+this.settings.zoomPluginStrings.zoomIn+'" class="lg-zoom-in lg-icon"></button><button id="'+this.core.getIdName("lg-zoom-out")+'" type="button" aria-label="'+this.settings.zoomPluginStrings.zoomOut+'" class="lg-zoom-out lg-icon"></button>':"";this.settings.actualSize&&(e+='<button id="'+this.core.getIdName("lg-actual-size")+'" t
37ype="button" aria-label="'+this.settings.zoomPluginStrings.viewActualSize+'" class="'+this.settings.actualSizeIcons.zoomIn+' lg-icon"></button>'),this.core.outer.addClass("lg-use-transition-for-zoom"),this.core.$toolbar.first().append(e)},e.prototype.enableZoom=function(e){var t=this,i=this.settings.enableZoomAfter+e.detail.delay;this.$LG("body").first().hasClass("lg-from-hash")&&e.detail.delay?i=0:this.$LG("body").first().removeClass("lg-from-hash"),this.zoomableTimeout=setTimeout(function(){t.isImageSlide(t.core.index)&&(t.core.getSlideItem(e.detail.index).addClass("lg-zoomable"),e.detail.index===t.core.index&&t.setZoomEssentials())},i+30)},e.prototype.enableZoomOnSlideItemLoad=function(){this.core.LGel.on("lgSlideItemLoad.zoom",this.enableZoom.bind(this))},e.prototype.getDragCords=function(e){return{x:e.pageX,y:e.pageY}},e.prototype.getSwipeCords=function(e){return{x:e.touches[0].pageX,y:e.touches[0].pageY}},e.prototype.getDragAllowedAxises=function(e,t){if(!this.containerRect)return{allowX:!1,allowY:!1};var i=this.core.getSlideItem(this.core.index).find(".lg-image").first().get(),n=0,r=0,o=i.getBoundingClientRect();e?(n=i.offsetHeight*e,r=i.offsetWidth*e):t?(n=o.height+t*o.height,r=o.width+t*o.width):(n=o.height,r=o.width);var s=n>this.containerRect.height;return{allowX:r>this.containerRect.width,allowY:s}},e.prototype.setZoomEssentials=function(){this.containerRect=this.core.$content.get().getBoundingClientRect()},e.prototype.zoomImage=function(e,t,i,n){if(!(0>=Math.abs(t))){var r,o,s,l,a=this.containerRect.width/2+this.containerRect.left,u=this.containerRect.height/2+this.containerRect.top+this.scrollTop;1===e&&(this.positionChanged=!1);var c=this.getDragAllowedAxises(0,t),d=c.allowY,h=c.allowX;this.positionChanged&&(r=this.left/(this.scale-t),o=this.top/(this.scale-t),this.pageX=a-r,this.pageY=u-o,this.positionChanged=!1);var g=this.getPossibleSwipeDragCords(t),m=a-this.pageX,f=u-this.pageY;if(e-t>1){var p=(e-t)/Math.abs(t);m=(t<0?-m:m)+this.left*(p+(t<0?-1:1)),f=(t<0?-f:f)+this.top*(p+(t<0?-1:1)),s=m/p,l=f/p}else{var p=(e-t)*t;s=m*p,l=f*p}i&&(h?this.isBeyondPossibleLeft(s,g.minX)?s=g.minX:this.isBeyondPossibleRight(s,g.maxX)&&(s=g.maxX):e>1&&(s<g.minX?s=g.minX:s>g.maxX&&(s=g.maxX)),d?this.isBeyondPossibleTop(l,g.minY)?l=g.minY:this.isBeyondPossibleBottom(l,g.maxY)&&(l=g.maxY):e>1&&(l<g.minY?l=g.minY:l>g.maxY&&(l=g.maxY))),this.setZoomStyles({x:s,y:l,scale:e}),this.left=s,this.top=l,n&&this.setZoomImageSize()}},e.prototype.resetImageTranslate=function(e){if(this.isImageSlide(e)){var t=this.core.getSlideItem(e).find(".lg-image").first();this.imageReset=!1,t.removeClass("reset-transition reset-transition-y reset-transition-x"),this.core.outer.removeClass("lg-actual-size"),t.css("width","auto").css("height","auto"),setTimeout(function(){t.removeClass("no-transition")},10)}},e.prototype.setZoomImageSize=function(){var e=this,t=this.core.getSlideItem(this.core.index).find(".lg-image").first();setTimeout(function(){var i=e.getCurrentImageActualSizeScale();e.scale>=i&&(t.addClass("no-transition"),e.imageReset=!0)},500),setTimeout(function(){var i=e.getCurrentImageActualSizeScale();if(e.scale>=i){var n=e.getDragAllowedAxises(e.scale);t.css("width",t.get().naturalWidth+"px").css("height",t.get().naturalHeight+"px"),e.core.outer.addClass("lg-actual-size"),n.allowX&&n.allowY?t.addClass("reset-transition"):n.allowX&&!n.allowY?t.addClass("reset-transition-x"):!n.allowX&&n.allowY&&t.addClass("reset-transition-y")}},550)},e.prototype.setZoomStyles=function(e){var t=this.core.getSlideItem(this.core.index).find(".lg-img-wrap").first(),i=this.core.getSlideItem(this.core.index).find(".lg-image").first(),n=this.core.outer.find(".lg-current .lg-dummy-img").first();this.scale=e.scale,i.css("transform","scale3d("+e.scale+", "+e.scale+", 1)"),n.css("transform","scale3d("+e.scale+", "+e.scale+", 1)");var r="translate3d("+e.x+"px, "+e.y+"px, 0)";t.css("transform",r)},e.prototype.setActualSize=function(e,t){var i=this;if(!this.zoomInProgress){this.zoomInProgress=!0;var n=this.core.galleryItems[this.core.index];this.resetImageTranslate(e),setTimeout(function(){if(!(!n.src||i.core.outer.hasClass("lg-first-slide-loading"))){var e=i.getCurrentImageActualSizeScale(),r=i.scale;i.core.outer.hasClass("lg-zoomed")?i.scale=1:i.scale=i.getScale(e),i.setPageCords(t),i.beginZoom(i.scale),i.zoomImage(i.scale,i.scale-r,!0,!0)}},50),setTimeout(function(){i.core.outer.removeClass("lg-grabbing").addClass("lg-grab")},60),setTimeout(function(){i.zoomInProgress=!1},610)}}
vendor: 8,335 bytes, line 37
37,e.prototype.getNaturalWidth=function(e){var t=this.core.getSlideItem(e).find(".lg-image").first(),i=this.core.galleryItems[e].width;return i?parseFloat(i):t.get().naturalWidth},e.prototype.getActualSizeScale=function(e,t){return e>=t?e/t||2:1},e.prototype.getCurrentImageActualSizeScale=function(){var e=this.core.getSlideItem(this.core.index).find(".lg-image").first().get().offsetWidth,t=this.getNaturalWidth(this.core.index)||e;return this.getActualSizeScale(t,e)},e.prototype.getPageCords=function(e){var t={};if(e)t.x=e.pageX||e.touches[0].pageX,t.y=e.pageY||e.touches[0].pageY;else{var i=this.core.$content.get().getBoundingClientRect();t.x=i.width/2+i.left,t.y=i.height/2+this.scrollTop+i.top}return t},e.prototype.setPageCords=function(e){var t=this.getPageCords(e);this.pageX=t.x,this.pageY=t.y},e.prototype.manageActualPixelClassNames=function(){this.core.getElementById("lg-actual-size").removeClass(this.settings.actualSizeIcons.zoomIn).addClass(this.settings.actualSizeIcons.zoomOut)},e.prototype.beginZoom=function(e){return this.core.outer.removeClass("lg-zoom-drag-transition lg-zoom-dragging"),e>1?(this.core.outer.addClass("lg-zoomed"),this.manageActualPixelClassNames()):this.resetZoom(),e>1},e.prototype.getScale=function(e){var t=this.getCurrentImageActualSizeScale();return e<1?e=1:e>t&&(e=t),e},e.prototype.init=function(){var e=this;if(this.settings.zoom){this.buildTemplates(),this.enableZoomOnSlideItemLoad();var t=null;this.core.outer.on("dblclick.lg",function(t){e.$LG(t.target).hasClass("lg-image")&&e.setActualSize(e.core.index,t)}),this.core.outer.on("touchstart.lg",function(i){var n=e.$LG(i.target);1===i.touches.length&&n.hasClass("lg-image")&&(t?(clearTimeout(t),t=null,i.preventDefault(),e.setActualSize(e.core.index,i)):t=setTimeout(function(){t=null},300))}),this.core.LGel.on("lgContainerResize.zoom lgRotateRight.zoom lgRotateLeft.zoom lgFlipHorizontal.zoom lgFlipVertical.zoom",function(){if(e.core.lgOpened&&e.isImageSlide(e.core.index)&&!e.core.touchAction){var t=e.core.getSlideItem(e.core.index).find(".lg-img-wrap").first();e.top=0,e.left=0,e.setZoomEssentials(),e.setZoomSwipeStyles(t,{x:0,y:0}),e.positionChanged=!0}}),this.$LG(window).on("scroll.lg.zoom.global"+this.core.lgId,function(){e.core.lgOpened&&(e.scrollTop=e.$LG(window).scrollTop())}),this.core.getElementById("lg-zoom-out").on("click.lg",function(){if(e.isImageSlide(e.core.index)){var t=0;e.imageReset&&(e.resetImageTranslate(e.core.index),t=50),setTimeout(function(){var t=e.scale-e.settings.scale;t<1&&(t=1),e.beginZoom(t),e.zoomImage(t,-e.settings.scale,!0,!e.settings.infiniteZoom)},t)}}),this.core.getElementById("lg-zoom-in").on("click.lg",function(){e.zoomIn()}),this.core.getElementById("lg-actual-size").on("click.lg",function(){e.setActualSize(e.core.index)}),this.core.LGel.on("lgBeforeOpen.zoom",function(){e.core.outer.find(".lg-item").removeClass("lg-zoomable")}),this.core.LGel.on("lgAfterOpen.zoom",function(){e.scrollTop=e.$LG(window).scrollTop(),e.pageX=e.core.outer.width()/2,e.pageY=e.core.outer.height()/2+e.scrollTop,e.scale=1}),this.core.LGel.on("lgAfterSlide.zoom",function(t){var i=t.detail.prevIndex;e.scale=1,e.positionChanged=!1,e.zoomInProgress=!1,e.resetZoom(i),e.resetImageTranslate(i),e.isImageSlide(e.core.index)&&e.setZoomEssentials()}),this.zoomDrag(),this.pinchZoom(),this.zoomSwipe(),this.zoomableTimeout=!1,this.positionChanged=!1,this.zoomInProgress=!1}},e.prototype.zoomIn=function(){if(this.isImageSlide(this.core.index)){var e=this.scale+this.settings.scale;this.settings.infiniteZoom||(e=this.getScale(e)),this.beginZoom(e),this.zoomImage(e,Math.min(this.settings.scale,e-this.scale),!0,!this.settings.infiniteZoom)}},e.prototype.resetZoom=function(e){this.core.outer.removeClass("lg-zoomed lg-zoom-drag-transition");var t=this.core.getElementById("lg-actual-size"),i=this.core.getSlideItem(void 0!==e?e:this.core.index);t.removeClass(this.settings.actualSizeIcons.zoomOut).addClass(this.settings.actualSizeIcons.zoomIn),i.find(".lg-img-wrap").first().removeAttr("style"),i.find(".lg-image").first().removeAttr("style"),this.scale=1,this.left=0,this.top=0,this.setPageCords()},e.prototype.getTouchDistance=function(e){return Math.sqrt((e.touches[0].pageX-e.touches[1].pageX)*(e.touches[0].pageX-e.touches[1].pageX)+(e.touches[0].pageY-e.touches[1].pageY)*(e.touches[0].pageY-e.touches[1].pageY))},e.prototype.pinchZoom=function(){var e=this,t=0,i=!1,n=1,r=0,o=this.core.getSlideItem(this.core.index);this.core.outer.on("touchstart.lg",function(i){o=e.core.getSlideItem(e.core.index),e.isImageSlide(e.core.index)&&2===i.touches.length&&(i.preventDefault(),!e.core.outer.hasClass("lg-first-slide-loading")&&(n=e.scale||1,e.core.outer.removeClass("lg-zoom-drag-transition lg-zoom-dragging"),e.setPageCords(i),e.resetImageTranslate(e.core.index),e.core.touchAction="pinch",t=e.getTouchDistance(i)))}),this.core.$inner.on("touchmove.lg",function(s){if(2===s.touches.length&&"pinch"===e.core.touchAction&&(e.$LG(s.target).hasClass("lg-item")||o.get().contains(s.target))){s.preventDefault();var l=e.getTouchDistance(s),a=t-l;if(!i&&Math.abs(a)>5&&(i=!0),i){r=e.scale;var u=Math.max(1,n+-(.02*a));e.scale=Math.round((u+Number.EPSILON)*100)/100;var c=e.scale-r;e.zoomImage(e.scale,Math.round((c+Number.EPSILON)*100)/100,!1,!1)}}}),this.core.$inner.on("touchend.lg",function(n){if("pinch"===e.core.touchAction&&(e.$LG(n.target).hasClass("lg-item")||o.get().contains(n.target))){if(i=!1,t=0,e.scale<=1)e.resetZoom();else{var r=e.getCurrentImageActualSizeScale();if(e.scale>=r){var s=r-e.scale;0===s&&(s=.01),e.zoomImage(r,s,!1,!0)}e.manageActualPixelClassNames(),e.core.outer.addClass("lg-zoomed")}e.core.touchAction=void 0}})},e.prototype.touchendZoom=function(e,t,i,n,r){var o=t.x-e.x,s=t.y-e.y,l=Math.abs(o)/r+1,a=Math.abs(s)/r+1;l>2&&(l+=1),a>2&&(a+=1),o*=l,s*=a;var u=this.core.getSlideItem(this.core.index).find(".lg-img-wrap").first(),c={};c.x=this.left+o,c.y=this.top+s;var d=this.getPossibleSwipeDragCords();(Math.abs(o)>15||Math.abs(s)>15)&&(n&&(this.isBeyondPossibleTop(c.y,d.minY)?c.y=d.minY:this.isBeyondPossibleBottom(c.y,d.maxY)&&(c.y=d.maxY)),i&&(this.isBeyondPossibleLeft(c.x,d.minX)?c.x=d.minX:this.isBeyondPossibleRight(c.x,d.maxX)&&(c.x=d.maxX)),n?this.top=c.y:c.y=this.top,i?this.left=c.x:c.x=this.left,this.setZoomSwipeStyles(u,c),this.positionChanged=!0)},e.prototype.getZoomSwipeCords=function(e,t,i,n,r){var o={};if(n){if(o.y=this.top+(t.y-e.y),this.isBeyondPossibleTop(o.y,r.minY)){var s=r.minY-o.y;o.y=r.minY-s/6}else if(this.isBeyondPossibleBottom(o.y,r.maxY)){var l=o.y-r.maxY;o.y=r.maxY+l/6}}else o.y=this.top;if(i){if(o.x=this.left+(t.x-e.x),this.isBeyondPossibleLeft(o.x,r.minX)){var a=r.minX-o.x;o.x=r.minX-a/6}else if(this.isBeyondPossibleRight(o.x,r.maxX)){var u=o.x-r.maxX;o.x=r.maxX+u/6}}else o.x=this.left;return o},e.prototype.isBeyondPossibleLeft=function(e,t){return e>=t},e.prototype.isBeyondPossibleRight=function(e,t){return e<=t},e.prototype.isBeyondPossibleTop=function(e,t){return e>=t},e.prototype.isBeyondPossibleBottom=function(e,t){return e<=t},e.prototype.isImageSlide=function(e){var t=this.core.galleryItems[e];return"image"===this.core.getSlideType(t)},e.prototype.getPossibleSwipeDragCords=function(e){var t=this.core.getSlideItem(this.core.index).find(".lg-image").first(),i=this.core.mediaContainerPosition.bottom,n=t.get().getBoundingClientRect(),r=n.height,o=n.width;return e&&(r+=e*r,o+=e*o),{minY:(r-this.containerRect.height)/2,maxY:(this.containerRect.height-r)/2+i,minX:(o-this.containerRect.width)/2,maxX:(this.containerRect.width-o)/2}},e.prototype.setZoomSwipeStyles=function(e,t){e.css("transform","translate3d("+t.x+"px, "+t.y+"px, 0)")},e.prototype.zoomSwipe=function(){var e,t,i=this,n={},r={},o=!1,s=!1,l=!1,a=new Date,u=this.core.getSlideItem(this.core.index);this.core.$inner.on("touchstart.lg",function(r){if(i.isImageSlide(i.core.index)&&(u=i.core.getSlideItem(i.core.index),(i.$LG(r.target).hasClass("lg-item")||u.get().contains(r.target))&&1===r.touches.length&&i.core.outer.hasClass("lg-zoomed"))){r.preventDefault(),a=new Date,i.core.touchAction="zoomSwipe",t=i.core.getSlideItem(i.core.index).find(".lg-img-wrap").first();var o=i.getDragAllowedAxises(0);l=o.allowY,((s=o.allowX)||l)&&(n=i.getSwipeCords(r)),e=i.getPossibleSwipeDragCords(),i.core.outer.addClass("lg-zoom-dragging lg-zoom-drag-transition")}}
37),this.core.$inner.on("touchmove.lg",function(a){if(1===a.touches.length&&"zoomSwipe"===i.core.touchAction&&(i.$LG(a.target).hasClass("lg-item")||u.get().contains(a.target))){a.preventDefault(),i.core.touchAction="zoomSwipe",r=i.getSwipeCords(a);var c=i.getZoomSwipeCords(n,r,s,l,e);(Math.abs(r.x-n.x)>15||Math.abs(r.y-n.y)>15)&&(o=!0,i.setZoomSwipeStyles(t,c))}}),this.core.$inner.on("touchend.lg",function(e){if("zoomSwipe"===i.core.touchAction&&(i.$LG(e.target).hasClass("lg-item")||u.get().contains(e.target))&&(e.preventDefault(),i.core.touchAction=void 0,i.core.outer.removeClass("lg-zoom-dragging"),o)){o=!1;var t=new Date().valueOf()-a.valueOf();i.touchendZoom(n,r,s,l,t)}})},e.prototype.zoomDrag=function(){var e,t,i,n,r=this,o={},s={},l=!1,a=!1,u=!1,c=!1;this.core.outer.on("mousedown.lg.zoom",function(t){if(r.isImageSlide(r.core.index)){var s=r.core.getSlideItem(r.core.index);if(r.$LG(t.target).hasClass("lg-item")||s.get().contains(t.target)){e=new Date,n=r.core.getSlideItem(r.core.index).find(".lg-img-wrap").first();var a=r.getDragAllowedAxises(0);c=a.allowY,u=a.allowX,r.core.outer.hasClass("lg-zoomed")&&r.$LG(t.target).hasClass("lg-object")&&(u||c)&&(t.preventDefault(),o=r.getDragCords(t),i=r.getPossibleSwipeDragCords(),l=!0,r.core.outer.removeClass("lg-grab").addClass("lg-grabbing lg-zoom-drag-transition lg-zoom-dragging"))}}}),this.$LG(window).on("mousemove.lg.zoom.global"+this.core.lgId,function(e){if(l){a=!0,s=r.getDragCords(e);var t=r.getZoomSwipeCords(o,s,u,c,i);r.setZoomSwipeStyles(n,t)}}),this.$LG(window).on("mouseup.lg.zoom.global"+this.core.lgId,function(i){if(l){if(t=new Date,l=!1,r.core.outer.removeClass("lg-zoom-dragging"),a&&(o.x!==s.x||o.y!==s.y)){s=r.getDragCords(i);var n=t.valueOf()-e.valueOf();r.touchendZoom(o,s,u,c,n)}a=!1}r.core.outer.removeClass("lg-grabbing").addClass("lg-grab")})},e.prototype.closeGallery=function(){this.resetZoom(),this.zoomInProgress=!1},e.prototype.destroy=function(){this.$LG(window).off(".lg.zoom.global"+this.core.lgId),this.core.LGel.off(".lg.zoom"),this.core.LGel.off(".zoom"),clearTimeout(this.zoomableTimeout),this.zoomableTimeout=!1},e}();t.Z=r},8680:function(e,t,i){var n=i(7294),r=function(){return(r=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++)for(var r in t=arguments[i])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},o={afterAppendSlide:"lgAfterAppendSlide",init:"lgInit",hasVideo:"lgHasVideo",containerResize:"lgContainerResize",updateSlides:"lgUpdateSlides",afterAppendSubHtml:"lgAfterAppendSubHtml",beforeOpen:"lgBeforeOpen",afterOpen:"lgAfterOpen",slideItemLoad:"lgSlideItemLoad",beforeSlide:"lgBeforeSlide",afterSlide:"lgAfterSlide",posterClick:"lgPosterClick",dragStart:"lgDragStart",dragMove:"lgDragMove",dragEnd:"lgDragEnd",beforeNextSlide:"lgBeforeNextSlide",beforePrevSlide:"lgBeforePrevSlide",beforeClose:"lgBeforeClose",afterClose:"lgAfterClose"},s={mode:"lg-slide",easing:"ease",speed:400,licenseKey:"0000-0000-000-0000",height:"100%",width:"100%",addClass:"",startClass:"lg-start-zoom",backdropDuration:300,container:"",startAnimationDuration:400,zoomFromOrigin:!0,hideBarsDelay:0,showBarsAfter:1e4,slideDelay:0,supportLegacyBrowser:!0,allowMediaOverlap:!1,videoMaxSize:"1280-720",loadYouTubePoster:!0,defaultCaptionHeight:0,ariaLabelledby:"",ariaDescribedby:"",resetScrollPosition:!0,hideScrollbar:!1,closable:!0,swipeToClose:!0,closeOnTap:!0,showCloseIcon:!0,showMaximizeIcon:!1,loop:!0,escKey:!0,keyPress:!0,trapFocus:!0,controls:!0,slideEndAnimation:!0,hideControlOnEnd:!1,mousewheel:!1,getCaptionFromTitleOrAlt:!0,appendSubHtmlTo:".lg-sub-html",subHtmlSelectorRelative:!1,preload:2,numberOfSlideItemsInDom:10,selector:"",selectWithin:"",nextHtml:"",prevHtml:"",index:0,iframeWidth:"100%",iframeHeight:"100%",iframeMaxWidth:"100%",iframeMaxHeight:"100%",download:!0,counter:!0,appendCounterTo:".lg-toolbar",swipeThreshold:50,enableSwipe:!0,enableDrag:!0,dynamic:!1,dynamicEl:[],extraProps:[],exThumbImage:"",isMobile:void 0,mobileSettings:{controls:!1,showCloseIcon:!1,download:!1},plugins:[],strings:{closeGallery:"Close gallery",toggleMaximize:"Toggle maximize",previousSlide:"Previous slide",nextSlide:"Next slide",download:"Download",playVideo:"Play video",mediaLoadingFailed:"Oops... Failed to load content..."}},l=function(){function e(e){return this.cssVenderPrefixes=["TransitionDuration","TransitionTimingFunction","Transform","Transition"],this.selector=this._getSelector(e),this.firstElement=this._getFirstEl(),this}return e.generateUUID=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){var t=16*Math.random()|0;return("x"==e?t:3&t|8).toString(16)})},e.prototype._getSelector=function(e,t){return(void 0===t&&(t=document),"string"!=typeof e)?e:(t=t||document,"#"===e.substring(0,1))?t.querySelector(e):t.querySelectorAll(e)},e.prototype._each=function(e){return this.selector&&(void 0!==this.selector.length?[].forEach.call(this.selector,e):e(this.selector,0)),this},e.prototype._setCssVendorPrefix=function(e,t,i){var n=t.replace(/-([a-z])/gi,function(e,t){return t.toUpperCase()});-1!==this.cssVenderPrefixes.indexOf(n)?(e.style[n.charAt(0).toLowerCase()+n.slice(1)]=i,e.style["webkit"+n]=i,e.style["moz"+n]=i,e.style["ms"+n]=i,e.style["o"+n]=i):e.style[n]=i},e.prototype._getFirstEl=function(){return this.selector&&void 0!==this.selector.length?this.selector[0]:this.selector},e.prototype.isEventMatched=function(e,t){var i=t.split(".");return e.split(".").filter(function(e){return e}).every(function(e){return -1!==i.indexOf(e)})},e.prototype.attr=function(e,t){return void 0===t?this.firstElement?this.firstElement.getAttribute(e):"":(this._each(function(i){i.setAttribute(e,t)}),this)},e.prototype.find=function(e){return a(this._getSelector(e,this.selector))},e.prototype.first=function(){return this.selector&&void 0!==this.selector.length?a(this.selector[0]):a(this.selector)},e.prototype.eq=function(e){return a(this.selector[e])},e.prototype.parent=function(){return a(this.selector.parentElement)},e.prototype.get=function(){return this._getFirstEl()},e.prototype.removeAttr=function(e){var t=e.split(" ");return this._each(function(e){t.forEach(function(t){return e.removeAttribute(t)})}),this},e.prototype.wrap=function(e){if(!this.firstElement)return this;var t=document.createElement("div");return t.className=e,this.firstElement.parentNode.insertBefore(t,this.firstElement),this.firstElement.parentNode.removeChild(this.firstElement),t.appendChild(this.firstElement),this},e.prototype.addClass=function(e){return void 0===e&&(e=""),this._each(function(t){e.split(" ").forEach(function(e){e&&t.classList.add(e)})}),this},e.prototype.removeClass=function(e){return this._each(function(t){e.split(" ").forEach(function(e){e&&t.classList.remove(e)})}),this},e.prototype.hasClass=function(e){return!!this.firstElement&&this.firstElement.classList.contains(e)},e.prototype.hasAttribute=function(e){return!!this.firstElement&&this.firstElement.hasAttribute(e)},e.prototype.toggleClass=function(e){return this.firstElement&&(this.hasClass(e)?this.removeClass(e):this.addClass(e)),this},e.prototype.css=function(e,t){var i=this;return this._each(function(n){i._setCssVendorPrefix(n,e,t)}),this},e.prototype.on=function(t,i){var n=this;return this.selector&&t.split(" ").forEach(function(t){Array.isArray(e.eventListeners[t])||(e.eventListeners[t]=[]),e.eventListeners[t].push(i),n.selector.addEventListener(t.
37split(".")[0],i)}),this},e.prototype.once=function(e,t){var i=this;return this.on(e,function(){i.off(e),t(e)}),this},e.prototype.off=function(t){var i=this;return this.selector&&Object.keys(e.eventListeners).forEach(function(n){i.isEventMatched(t,n)&&(e.eventListeners[n].forEach(function(e){i.selector.removeEventListener(n.split(".")[0],e)}),e.eventListeners[n]=[])}),this},e.prototype.trigger=function(e,t){if(!this.firstElement)return this;var i=new CustomEvent(e.split(".")[0],{detail:t||null});return this.firstElement.dispatchEvent(i),this},e.prototype.load=function(e){var t=this;return fetch(e).then(function(e){return e.text()}).then(function(e){t.selector.innerHTML=e}),this},e.prototype.html=function(e){return void 0===e?this.firstElement?this.firstElement.innerHTML:"":(this._each(function(t){t.innerHTML=e}),this)},e.prototype.append=function(e){return this._each(function(t){"string"==typeof e?t.insertAdjacentHTML("beforeend",e):t.appendChild(e)}),this},e.prototype.prepend=function(e){return this._each(function(t){"string"==typeof e?t.insertAdjacentHTML("afterbegin",e):e instanceof HTMLElement&&t.insertBefore(e.cloneNode(!0),t.firstChild)}),this},e.prototype.remove=function(){return this._each(function(e){e.parentNode.removeChild(e)}),this},e.prototype.empty=function(){return this._each(function(e){e.innerHTML=""}),this},e.prototype.scrollTop=function(e){return void 0!==e?(document.body.scrollTop=e,document.documentElement.scrollTop=e,this):window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0},e.prototype.scrollLeft=function(e){return void 0!==e?(document.body.scrollLeft=e,document.documentElement.scrollLeft=e,this):window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft||0},e.prototype.offset=function(){if(!this.firstElement)return{left:0,top:0};var e=this.firstElement.getBoundingClientRect(),t=a("body").style().marginLeft;return{left:e.left-parseFloat(t)+this.scrollLeft(),top:e.top+this.scrollTop()}},e.prototype.style=function(){return this.firstElement?this.firstElement.currentStyle||window.getComputedStyle(this.firstElement):{}},e.prototype.width=function(){var e=this.style();return this.firstElement.clientWidth-parseFloat(e.paddingLeft)-parseFloat(e.paddingRight)},e.prototype.height=function(){var e=this.style();return this.firstElement.clientHeight-parseFloat(e.paddingTop)-parseFloat(e.paddingBottom)},e.eventListeners={},e}();function a(e){return"function"!=typeof window.CustomEvent&&(window.CustomEvent=function(e,t){t=t||{bubbles:!1,cancelable:!1,detail:null};var i=document.createEvent("CustomEvent");return i.initCustomEvent(e,t.bubbles,t.cancelable,t.detail),i}),Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector),new l(e)}var u=["src","sources","subHtml","subHtmlUrl","html","video","poster","slideName","responsive","srcset","sizes","iframe","downloadUrl","download","width","facebookShareUrl","tweetText","iframeTitle","twitterShareUrl","pinterestShareUrl","pinterestText","fbHtml","disqusIdentifier","disqusUrl"],c={fetchCaptionFromUrl:function(e,t,i){fetch(e).then(function(e){return e.text()}).then(function(e){"append"===i?t.append('<div class="lg-sub-html">'+e+"</div>"):t.html(e)})},getSize:function(e,t,i,n){void 0===i&&(i=0);var r=a(e).attr("data-lg-size")||n;if(r){var o=r.split(",");if(o[1])for(var s=window.innerWidth,l=0;l<o.length;l++){var u=o[l];if(parseInt(u.split("-")[2],10)>s){r=u;break}l===o.length-1&&(r=u)}var c=r.split("-"),d=parseInt(c[0],10),h=parseInt(c[1],10),g=Math.min(Math.min(t.width(),d)/d,Math.min(t.height()-i,h)/h);return{width:d*g,height:h*g}}},getTransform:function(e,t,i,n,r){if(r){var o=a(e).find("img").first();if(o.get()){var s=t.get().getBoundingClientRect(),l=s.width,u=t.height()-(i+n),c=o.width(),d=o.height(),h=o.style(),g=(l-c)/2-o.offset().left+(parseFloat(h.paddingLeft)||0)+(parseFloat(h.borderLeft)||0)+a(window).scrollLeft()+s.left,m=(u-d)/2-o.offset().top+(parseFloat(h.paddingTop)||0)+(parseFloat(h.borderTop)||0)+a(window).scrollTop()+i;return"translate3d("+(g*=-1)+"px, "+(m*=-1)+"px, 0) scale3d("+c/r.width+", "+d/r.height+", 1)"}}},getIframeMarkup:function(e,t,i,n,r,o){return'<div class="lg-media-cont lg-has-iframe" style="width:'+e+"; max-width:"+i+"; height: "+t+"; max-height:"+n+'">\n <iframe class="lg-object" frameborder="0" '+(o?'title="'+o+'"':"")+' src="'+r+'" allowfullscreen="true"></iframe>\n </div>'},getImgMarkup:function(e,t,i,n,r,o){var s="";return o&&(s=("string"==typeof o?JSON.parse(o):o).map(function(e){var t="";return Object.keys(e).forEach(function(i){t+=" "+i+'="'+e[i]+'"'}),"<source "+t+"></source>"})),""+s+("<img "+i+" "+(n?'srcset="'+n+'"':"")+" "+(r?'sizes="'+r+'"':"")+' class="lg-object lg-image" data-index="'+e)+'" src="'+t+'" />'},getResponsiveSrc:function(e){for(var t=[],i=[],n="",r=0;r<e.length;r++){var o=e[r].split(" ");""===o[0]&&o.splice(0,1),i.push(o[0]),t.push(o[1])}for(var s=window.innerWidth,l=0;l<t.length;l++)if(parseInt(t[l],10)>s){n=i[l];break}return n},isImageLoaded:function(e){return!!e&&!!e.complete&&0!==e.naturalWi
37dth},getVideoPosterMarkup:function(e,t,i,n,r){var o="";o=r&&r.youtube?"lg-has-youtube":r&&r.vimeo?"lg-has-vimeo":"lg-has-html5";var s=t;return"string"!=typeof t&&(s=t.outerHTML),'<div class="lg-video-cont '+o+'" style="'+i+'">\n <div class="lg-video-play-button">\n <svg\n viewBox="0 0 20 20"\n preserveAspectRatio="xMidYMid"\n focusable="false"\n aria-labelledby="'+n+'"\n role="img"\n class="lg-video-play-icon"\n >\n <title>'+n+'</title>\n <polygon class="lg-video-play-icon-inner" points="1,0 20,10 1,20"></polygon>\n </svg>\n <svg class="lg-video-play-icon-bg" viewBox="0 0 50 50" focusable="false">\n <circle cx="50%" cy="50%" r="20"></circle></svg>\n <svg class="lg-video-play-icon-circle" viewBox="0 0 50 50" focusable="false">\n <circle cx="50%" cy="50%" r="20"></circle>\n </svg>\n </div>\n '+s+'\n <img class="lg-object lg-video-poster" src="'+e+'" />\n </div>'},getFocusableElements:function(e){var t=e.querySelectorAll('a[href]:not([disabled]), button:not([disabled]), textarea:not([disabled]), input[type="text"]:not([disabled]), input[type="radio"]:not([disabled]), input[type="checkbox"]:not([disabled]), select:not([disabled])');return[].filter.call(t,function(e){var t=window.getComputedStyle(e);return"none"!==t.display&&"hidden"!==t.visibility})},getDynamicOptions:function(e,t,i,n){var r=[],o=function(){for(var e=0,t=0,i=arguments.length;t<i;t++)e+=arguments[t].length;for(var n=Array(e),r=0,t=0;t<i;t++)for(var o=arguments[t],s=0,l=o.length;s<l;s++,r++)n[r]=o[s];return n}(u,t);return[].forEach.call(e,function(e){for(var t={},s=0;s<e.attributes.length;s++){var l=e.attributes[s];if(l.specified){var u,c="href"===(u=l.name)?"src":u=(u=(u=u.replace("data-","")).charAt(0).toLowerCase()+u.slice(1)).replace(/-([a-z])/g,function(e){return e[1].toUpperCase()}),d="";o.indexOf(c)>-1&&(d=c),d&&(t[d]=l.value)}}var h=a(e),g=h.find("img").first().attr("alt"),m=h.attr("title"),f=n?h.attr(n):h.find("img").first().attr("src");t.thumb=f,i&&!t.subHtml&&(t.subHtml=m||g||""),t.alt=g||m||"",r.push(t)}),r},isMobile:function(){return/iPhone|iPad|iPod|Android/i.test(navigator.userAgent)},isVideo:function(e,t,i){if(!e)return t?{html5:!0}:void console.error("lightGallery :- data-src is not provided on slide item "+(i+1)+". Please make sure the selector property is properly configured. More info - https://www.lightgalleryjs.com/demos/html-markup/");var n=e.match(/\/\/(?:www\.)?youtu(?:\.be|be\.com|be-nocookie\.com)\/(?:watch\?v=|embed\/)?([a-z0-9\-\_\%]+)([\&|?][\S]*)*/i),r=e.match(/\/\/(?:www\.)?(?:player\.)?vimeo.com\/(?:video\/)?([0-9a-z\-_]+)(.*)?/i),o=e.match(/https?:\/\/(.+)?(wistia\.com|wi\.st)\/(medias|embed)\/([0-9a-z\-_]+)(.*)/);return n?{youtube:n}:r?{vimeo:r}:o?{wistia:o}:void 0}},d=0,h=function(){function e(e,t){if(this.lgOpened=!1,this.index=0,this.plugins=[],this.lGalleryOn=!1,this.lgBusy=!1,this.currentItemsInDom=[],this.prevScrollTop=0,this.bodyPaddingRight=0,this.isDummyImageRemoved=!1,this.dragOrSwipeEnabled=!1,this.mediaContainerPosition={top:0,bottom:0},!e)return this;if(d++,this.lgId=d,this.el=e,this.LGel=a(e),this.generateSettings(t),this.buildModules(),this.settings.dynamic&&void 0!==this.settings.dynamicEl&&!Array.isArray(this.settings.dynamicEl))throw"When using dynamic mode, you must also define dynamicEl as an Array.";return this.galleryItems=this.getItems(),this.normalizeSettings(),this.init(),this.validateLicense(),this}return e.prototype.generateSettings=function(e){if(this.settings=r(r({},s),e),this.settings.isMobile&&"function"==typeof this.settings.isMobile?this.settings.isMobile():c.isMobile()){var t=r(r({},this.settings.mobileSettings),this.settings.mobileSettings);this.settings=r(r({},this.settings),t)}},e.prototype.normalizeSettings=function(){if(this.settings.slideEndAnimation&&(this.settings.hideControlOnEnd=!1),this.settings.closable||(this.settings.swipeToClose
vendor: 6,238 bytes, line 37
37=!1),this.zoomFromOrigin=this.settings.zoomFromOrigin,this.settings.dynamic&&(this.zoomFromOrigin=!1),this.settings.container){var e=this.settings.container;if("function"==typeof e)this.settings.container=e();else if("string"==typeof e){var t=document.querySelector(e);this.settings.container=null!=t?t:document.body}}else this.settings.container=document.body;this.settings.preload=Math.min(this.settings.preload,this.galleryItems.length)},e.prototype.init=function(){var e=this;this.addSlideVideoInfo(this.galleryItems),this.buildStructure(),this.LGel.trigger(o.init,{instance:this}),this.settings.keyPress&&this.keyPress(),setTimeout(function(){e.enableDrag(),e.enableSwipe(),e.triggerPosterClick()},50),this.arrow(),this.settings.mousewheel&&this.mousewheel(),this.settings.dynamic||this.openGalleryOnItemClick()},e.prototype.openGalleryOnItemClick=function(){for(var e=this,t=function(t){var n=i.items[t],r=a(n),o=l.generateUUID();r.attr("data-lg-id",o).on("click.lgcustom-item-"+o,function(i){i.preventDefault();var r=e.settings.index||t;e.openGallery(r,n)})},i=this,n=0;n<this.items.length;n++)t(n)},e.prototype.buildModules=function(){var e=this;this.settings.plugins.forEach(function(t){e.plugins.push(new t(e,a))})},e.prototype.validateLicense=function(){this.settings.licenseKey?"0000-0000-000-0000"===this.settings.licenseKey&&console.warn("lightGallery: "+this.settings.licenseKey+" license key is not valid for production use"):console.error("Please provide a valid license key")},e.prototype.getSlideItem=function(e){return a(this.getSlideItemId(e))},e.prototype.getSlideItemId=function(e){return"#lg-item-"+this.lgId+"-"+e},e.prototype.getIdName=function(e){return e+"-"+this.lgId},e.prototype.getElementById=function(e){return a("#"+this.getIdName(e))},e.prototype.manageSingleSlideClassName=function(){this.galleryItems.length<2?this.outer.addClass("lg-single-item"):this.outer.removeClass("lg-single-item")},e.prototype.buildStructure=function(){var e=this;if(!(this.$container&&this.$container.get())){var t="",i="";this.settings.controls&&(t='<button type="button" id="'+this.getIdName("lg-prev")+'" aria-label="'+this.settings.strings.previousSlide+'" class="lg-prev lg-icon"> '+this.settings.prevHtml+' </button>\n <button type="button" id="'+this.getIdName("lg-next")+'" aria-label="'+this.settings.strings.nextSlide+'" class="lg-next lg-icon"> '+this.settings.nextHtml+" </button>"),".lg-item"!==this.settings.appendSubHtmlTo&&(i='<div class="lg-sub-html" role="status" aria-live="polite"></div>');var n="";this.settings.allowMediaOverlap&&(n+="lg-media-overlap ");var r=this.settings.ariaLabelledby?'aria-labelledby="'+this.settings.ariaLabelledby+'"':"",o=this.settings.ariaDescribedby?'aria-describedby="'+this.settings.ariaDescribedby+'"':"",s="lg-container "+this.settings.addClass+" "+(document.body!==this.settings.container?"lg-inline":""),l=this.settings.closable&&this.settings.showCloseIcon?'<button type="button" aria-label="'+this.settings.strings.closeGallery+'" id="'+this.getIdName("lg-close")+'" class="lg-close lg-icon"></button>':"",u=this.settings.showMaximizeIcon?'<button type="button" aria-label="'+this.settings.strings.toggleMaximize+'" id="'+this.getIdName("lg-maximize")+'" class="lg-maximize lg-icon"></button>':"",c='\n <div class="'+s+'" id="'+this.getIdName("lg-container")+'" tabindex="-1" aria-modal="true" '+r+" "+o+' role="dialog"\n >\n <div id="'+this.getIdName("lg-backdrop")+'" class="lg-backdrop"></div>\n\n <div id="'+this.getIdName("lg-outer")+'" class="lg-outer lg-use-css3 lg-css3 lg-hide-items '+n+' ">\n\n <div id="'+this.getIdName("lg-content")+'" class="lg-content">\n <div id="'+this.getIdName("lg-inner")+'" class="lg-inner">\n </div>\n '+t+'\n </div>\n <div id="'+this.getIdName("lg-toolbar")+'" class="lg-toolbar lg-group">\n '+u+"\n "+l+"\n </div>\n "+(".lg-outer"===this.settings.appendSubHtmlTo?i:"")+'\n <div id="'+this.getIdName("lg-components")+'" class="lg-components">\n '+(".lg-sub-html"===this.settings.appendSubHtmlTo?i:"")+"\n </div>\n </div>\n </div>\n ";a(this.settings.container).append(c),document.body!==this.settings.container&&a(this.settings.container).css("position","relative"),this.outer=this.getElementById("lg-outer"),this.$lgComponents=this.getElementById("lg-components"),this.$backdrop=this.getElementById("lg-backdrop"),this.$container=this.getElementById("lg-container"),this.$inner=this.getElementById("lg-inner"),this.$content=this.getElementById("lg-content"),this.$toolbar=this.getElementById("lg-toolbar"),this.$backdrop.css("transition-duration",this.settings.backdropDuration+"ms");var d=this.settings.mode+" ";this.manageSingleSlideClassName(),this.settings.enableDrag&&(d+="lg-grab "),this.outer.addClass(d),this.$inner.css("transition-timing-function",this.settings.easing),this.$inner.css("transition-duration",this.settings.speed+"ms"),this.settings.download&&this.$toolbar.append('<a id="'+this.getIdName("lg-download")+'" target="_blank" rel="noopener" aria-label="'+this.settings.strings.download+'" download class="lg-download lg-icon"></a>'),this.counter(),a(window).on("resize.lg.global"+this.lgId+" orientationchange.lg.global"+this.lgId,function(){e.refreshOnResize()}),this.hideBars(),this.manageCloseGallery(),this.toggleMaximize(),this.initModules()}},e.prototype.refreshOnResize=function(){if(this.lgOpened){var e=this.galleryItems[this.index].__slideVideoInfo;this.mediaContainerPosition=this.getMediaContainerPosition();var t=this.mediaContainerPosition,i=t.top,n=t.bottom;if(this.currentImageSize=c.getSize(this.items[this.index],this.outer,i+n,e&&this.settings.videoMaxSize),e&&this.resizeVideoSlide(this.index,this.currentImageSize),this.zoomFromOrigin&&!this.isDummyImageRemoved){var r=this.getDummyImgStyles(this.currentImageSize);this.outer.find(".lg-current .lg-dummy-img").first().attr("style",r)}this.LGel.trigger(o.containerResize)}},e.prototype.resizeVideoSlide=function(e,t){var i=this.getVideoContStyle(t);
37this.getSlideItem(e).find(".lg-video-cont").attr("style",i)},e.prototype.updateSlides=function(e,t){if(this.index>e.length-1&&(this.index=e.length-1),1===e.length&&(this.index=0),!e.length){this.closeGallery();return}var i=this.galleryItems[t].src;this.galleryItems=e,this.updateControls(),this.$inner.empty(),this.currentItemsInDom=[];var n=0;this.galleryItems.some(function(e,t){return e.src===i&&(n=t,!0)}),this.currentItemsInDom=this.organizeSlideItems(n,-1),this.loadContent(n,!0),this.getSlideItem(n).addClass("lg-current"),this.index=n,this.updateCurrentCounter(n),this.LGel.trigger(o.updateSlides)},e.prototype.getItems=function(){if(this.items=[],this.settings.dynamic)return this.settings.dynamicEl||[];if("this"===this.settings.selector)this.items.push(this.el);else if(this.settings.selector){if("string"==typeof this.settings.selector){if(this.settings.selectWithin){var e=a(this.settings.selectWithin);this.items=e.find(this.settings.selector).get()}else this.items=this.el.querySelectorAll(this.settings.selector)}else this.items=this.settings.selector}else this.items=this.el.children;return c.getDynamicOptions(this.items,this.settings.extraProps,this.settings.getCaptionFromTitleOrAlt,this.settings.exThumbImage)},e.prototype.shouldHideScrollbar=function(){return this.settings.hideScrollbar&&document.body===this.settings.container},e.prototype.hideScrollbar=function(){if(this.shouldHideScrollbar()){this.bodyPaddingRight=parseFloat(a("body").style().paddingRight);var e=document.documentElement.getBoundingClientRect(),t=window.innerWidth-e.width;a(document.body).css("padding-right",t+this.bodyPaddingRight+"px"),a(document.body).addClass("lg-overlay-open")}},e.prototype.resetScrollBar=function(){this.shouldHideScrollbar()&&(a(document.body).css("padding-right",this.bodyPaddingRight+"px"),a(document.body).removeClass("lg-overlay-open"))},e.prototype.openGallery=function(e,t){var i=this;if(void 0===e&&(e=this.settings.index),!this.lgOpened){this.lgOpened=!0,this.outer.removeClass("lg-hide-items"),this.hideScrollbar(),this.$container.addClass("lg-show");var n=this.getItemsToBeInsertedToDom(e,e);this.currentItemsInDom=n;var r="";n.forEach(function(e){r=r+'<div id="'+e+'" class="lg-item"></div>'}),this.$inner.append(r),this.addHtml(e);var s="";this.mediaContainerPosition=this.getMediaContainerPosition();var l=this.mediaContainerPosition,u=l.top,d=l.bottom;this.settings.allowMediaOverlap||this.setMediaContainerPosition(u,d);var h=this.galleryItems[e].__slideVideoInfo;this.zoomFromOrigin&&t&&(this.currentImageSize=c.getSize(t,this.outer,u+d,h&&this.settings.videoMaxSize),s=c.getTransform(t,this.outer,u,d,this.currentImageSize)),this.zoomFromOrigin&&s||(this.outer.addClass(this.settings.startClass),this.getSlideItem(e).removeClass("lg-complete")),setTimeout(function(){i.outer.addClass("lg-components-open")},this.settings.zoomFromOrigin?100:this.settings.backdropDuration),this.index=e,this.LGel.trigger(o.beforeOpen),this.getSlideItem(e).addClass("lg-current"),this.lGalleryOn=!1,this.prevScrollTop=a(window).scrollTop(),setTimeout(function(){if(i.zoomFromOrigin&&s){var t=i.getSlideItem(e);t.css("transform",s),setTimeout(function(){t.addClass("lg-start-progress lg-start-end-progress").css("transition-duration",i.settings.startAnimationDuration+"ms"),i.outer.addClass("lg-zoom-from-image")}),setTimeout(function(){t.css("transform","translate3d(0, 0, 0)")},100)}setTimeout(function(){i.$backdrop.addClass("in"),i.$container.addClass("lg-show-in")},10),setTimeout(function(){i.settings.trapFocus&&document.body===i.settings.container&&i.trapFocus()},i.settings.backdropDuration+50),i.zoomFromOrigin&&s||setTimeout(function(){i.outer.addClass("lg-visible")},i.settings.backdropDuration),i.slide(e,!1,!1,!1),i.LGel.trigger(o.afterOpen)}),document.body===this.settings.container&&a("html").addClass("lg-on")}},e.prototype.getMediaContainerPosition=function(){if(this.settings.allowMediaOverlap)return{top:0,bottom:0};var e=this.$toolbar.get().clientHeight||0,t=this.outer.find(".lg-components .lg-sub-html").get(),i=this.settings.defaultCaptionHeight||t&&t.clientHeight||0,n=this.outer.find(".lg-thumb-outer").get();return{top:e,bottom:(n?n.clientHeight:0)+i}},e.prototype.setMediaContainerPosition=function(e,t){void 0===e&&(e=0),void 0===t&&(t=0),this.$content.css("top",e+"px").css("bottom",t+"px")},e.prototype.hideBars=function(){var e=this;setTimeout(function(){e.outer.removeClass("lg-hide-items"),e.settings.hideBarsDelay>
370&&(e.outer.on("mousemove.lg click.lg touchstart.lg",function(){e.outer.removeClass("lg-hide-items"),clearTimeout(e.hideBarTimeout),e.hideBarTimeout=setTimeout(function(){e.outer.addClass("lg-hide-items")},e.settings.hideBarsDelay)}),e.outer.trigger("mousemove.lg"))},this.settings.showBarsAfter)},e.prototype.initPictureFill=function(e){if(this.settings.supportLegacyBrowser)try{picturefill({elements:[e.get()]})}catch(e){console.warn("lightGallery :- If you want srcset or picture tag to be supported for older browser please include picturefil javascript library in your document.")}},e.prototype.counter=function(){if(this.settings.counter){var e='<div class="lg-counter" role="status" aria-live="polite">\n <span id="'+this.getIdName("lg-counter-current")+'" class="lg-counter-current">'+(this.index+1)+' </span> /\n <span id="'+this.getIdName("lg-counter-all")+'" class="lg-counter-all">'+this.galleryItems.length+" </span></div>";this.outer.find(this.settings.appendCounterTo).append(e)}},e.prototype.addHtml=function(e){if(this.galleryItems[e].subHtmlUrl?i=this.galleryItems[e].subHtmlUrl:t=this.galleryItems[e].subHtml,!i){if(t){var t,i,n=t.substring(0,1);("."===n||"#"===n)&&(t=this.settings.subHtmlSelectorRelative&&!this.settings.dynamic?a(this.items).eq(e).find(t).first().html():a(t).first().html())}else t=""}if(".lg-item"!==this.settings.appendSubHtmlTo)i?c.fetchCaptionFromUrl(i,this.outer.find(".lg-sub-html"),"replace"):this.outer.find(".lg-sub-html").html(t);else{var r=a(this.getSlideItemId(e));i?c.fetchCaptionFromUrl(i,r,"append"):r.append('<div class="lg-sub-html">'+t+"</div>")}null!=t&&(""===t?this.outer.find(this.settings.appendSubHtmlTo).addClass("lg-empty-html"):this.outer.find(this.settings.appendSubHtmlTo).removeClass("lg-empty-html")),this.LGel.trigger(o.afterAppendSubHtml,{index:e})},e.prototype.preload=function(e){for(var t=1;t<=this.settings.preload&&!(t>=this.galleryItems.length-e);t++)this.loadContent(e+t,!1);for(var i=1;i<=this.settings.preload&&!(e-i<0);i++)this.loadContent(e-i,!1)},e.prototype.getDummyImgStyles=function(e){return e?"width:"+e.width+"px;\n margin-left: -"+e.width/2+"px;\n margin-top: -"+e.height/2+"px;\n height:"+e.height+"px":""},e.prototype.getVideoContStyle=function(e){return e?"width:"+e.width+"px;\n height:"+e.height+"px":""},e.prototype.getDummyImageContent=function(e,t,i){var n;if(this.settings.dynamic||(n=a(this.items).eq(t)),n){var r=void 0;if(!(r=this.settings.exThumbImage?n.attr(this.settings.exThumbImage):n.find("img").first().attr("src")))return"";var o=this.getDummyImgStyles(this.currentImageSize),s=document.createElement("img");return s.alt=i||"",s.src=r,s.className="lg-dummy-img",s.style.cssText=o,e.addClass("lg-first-slide"),this.outer.addClass("lg-first-slide-loading"),s}return""},e.prototype.setImgMarkup=function(e,t,i){var n=this.galleryItems[i],r=n.alt,o=n.srcset,s=n.sizes,l=n.sources,u="",d=r?'alt="'+r+'"':"";u=this.isFirstSlideWithZoomAnimation()?this.getDummyImageContent(t,i,d):c.getImgMarkup(i,e,d,o,s,l);var h=document.createElement("picture");h.className="lg-img-wrap",a(h).append(u),t.prepend(h)},e.prototype.onSlideObjectLoad=function(e,t,i,n){var r=e.find(".lg-object").first();c.isImageLoaded(r.get())||t?i():(r.on("load.lg error.lg",function(){i&&i()}),r.on("error.lg",function(){n&&n()}))},e.prototype.onLgObjectLoad=function(e,t,i,n,r,o){var s=this;this.onSlideObjectLoad(e,o,function(){s.triggerSlideItemLoad(e,t,i,n,r)},function(){e.addClass("lg-complete lg-complete_"),e.html('<span class="lg-error-msg">'+s.settings.strings.mediaLoadingFailed+"</span>")})},e.prototype.triggerSlideItemLoad=function(e,t,i,n,r){var s=this,l=this.galleryItems[t];setTimeout(function(){e.addClass("lg-complete lg-complete_"),s.LGel.trigger(o.slideItemLoad,{index:t,delay:i||0,isFirstSlide:r})},r&&"video"===this.getSlideType(l)&&!l.poster?n:0)},e.prototype.isFirstSlideWithZoomAnimation=function(){return!!(!this.lGalleryOn&&this.zoomFromOrigin&&this.currentImageSize)},e.prototype.addSlideVideoInfo=function(e){var t=this;e.forEach(function(e,i){e.__slideVideoInfo=c.isVideo(e.src,!!e.video,i),e.__slideVideoInfo&&t.settings.loadYouTubePoster&&!e.poster&&e.__slideVideoInfo.youtube&&(e.poster="//img.youtube.com/vi/"+e.__slideVideoInfo.youtube[1]+"/maxresdefault.jpg")})},e.prototype.loadContent=function(e,t){var i=this,n=this.galleryItems[e],r=a(this.getSlideItemId(e)),s=n.poster,l=n.srcset,u=n.sizes,d=n.sources,h=n.src,g=n.video,m=g&&"string"==typeof g?JSON.parse(g):g;if(n.responsive){var f=n.responsive.split(",");h=c.getResponsiveSrc(f)||h}var p=n.__slideVideoInfo,v="",y=!!n.iframe,b=!this.lGalleryOn,w=0;if(b&&(w=this.zoomFromOrigin&&this.currentImageSize?this.settings.startAnimationDuration+10:this.settings.backdropDuration+10),!r.hasClass("lg-loaded")){if(p){var C=this.mediaContainerPosition,x=C.top,S=C.bottom,I=c.getSize(this.items[e],this.outer,x+S,p&&this.settings.videoMaxSize);v=this.getVideoContStyle(I)}if(y){var T=c.getIframeMarkup(this.settings.iframeWidth,this.settings.iframeHeight,this.settings.iframeMaxWidth,this.settings.iframeMaxHeight,h,n.iframeTitle);r.prepend(T)}else if(s){var E="";b&&this.zoomFromOrigin&&this.currentImageSize&&(E=this.getDummyImageContent(r,e,""));var T=c.getVideoPosterMarkup(s,E||"",v,this.settings.strings.playVideo,p);r.prepend(T)}else if(p){var T='<div class="lg-video-cont " style="'+v+'"></div>';r.prepend(T)}else if(this.setImgMarkup(h,r,e),l||d){var R=r.find(".lg-object");this.initPictureFill(R)}(s||p)&&this.LGel.trigger(o.hasVideo,{index:e,src:h,html5Video:m,hasPoster:!!s}),this.LGel.trigger(o.afterAppendSlide,{index:e}),this.lGalleryOn&&".lg-item"===this.settings.appendSubHtmlTo&&this.addHtml(e)}var O=0;w&&!a(document.body).hasClass("lg-from-hash")&&(O=w),this.isFirstSlideWithZoomAnimation()&&(setTimeout(function(){r.removeClass("lg-start-end-progress lg-start-progress").removeAttr("style")},this.settings.startAnimationDuration+100),r.hasClass("lg-loaded")||setTimeout(function(){if("image"===i.getSlideType(n)){var t=n.alt;if(r.find(".lg-img-wrap").append(c.getImgMarkup(e,h,t?'alt="'+t+'"':"",l,u,n.sources)),l||d){var o=r.find(".lg-object");i.initPictureFill(o)}}("image"===i.getSlideType(n)||"video"===i.getSlideType(n)&&s)&&(i.onLgObjectLoad(r,e,w,O,!0,!1),i.onSlideObjectLoad(r,!!(p&&p.html5&&!s),function(){i.loadContentOnFirstSlideLoad(e,r,O)},function(){i.loadContentOnFirstSlideLoad(e,r,O)}))},this.settings.startAnimationDuration+100)),r.addClass("lg-loaded"),this.isFirstSlideWithZoomAnimation()&&("video"!==this.getSlideType(n)||s)||this.onLgObjectLoad(r,e,w,O,b,!!(p&&p.html5&&!s)),(!this.zoomFromOrigin||!this.currentImageSize)&&r.hasClass("lg-complete_")&&!this.lGalleryOn&&setTimeout(function(){r.addClass("lg-complete")},this.settings.backdropDuration),this.lGalleryOn=!0,!0===t&&(r.hasClass("lg-complete_")?this.preload(e):r.find(".lg-object").first().on("load.lg error.lg",function(){i.preload(e)}))},e.prototype.loadContentOnFirstSlideLoad=function(e,t,i){var n=this;setTimeout(function(){t.find(".lg-dummy-img").remove(),t.removeClass("lg-first-slide"),n.outer.removeClass("lg-first-slide-loading"),n.isDummyImageRemoved=!0,n.preload(e)},i+300)},e.prototype.getItemsToBeInsertedToDom=function(e,t,i){var n=this;void 0===i&&(i=0);var r=[],o=Math.max(i,3);o=Math.min(o,this.galleryItems.length);var s="lg-item-"+this.lgId+"-"+t;
37if(this.galleryItems.length<=3)return this.galleryItems.forEach(function(e,t){r.push("lg-item-"+n.lgId+"-"+t)}),r;if(e<(this.galleryItems.length-1)/2){for(var l=e;l>e-o/2&&l>=0;l--)r.push("lg-item-"+this.lgId+"-"+l);for(var a=r.length,l=0;l<o-a;l++)r.push("lg-item-"+this.lgId+"-"+(e+l+1))}else{for(var l=e;l<=this.galleryItems.length-1&&l<e+o/2;l++)r.push("lg-item-"+this.lgId+"-"+l);for(var a=r.length,l=0;l<o-a;l++)r.push("lg-item-"+this.lgId+"-"+(e-l-1))}return this.settings.loop&&(e===this.galleryItems.length-1?r.push("lg-item-"+this.lgId+"-0"):0===e&&r.push("lg-item-"+this.lgId+"-"+(this.galleryItems.length-1))),-1===r.indexOf(s)&&r.push("lg-item-"+this.lgId+"-"+t),r},e.prototype.organizeSlideItems=function(e,t){var i=this,n=this.getItemsToBeInsertedToDom(e,t,this.settings.numberOfSlideItemsInDom);return n.forEach(function(e){-1===i.currentItemsInDom.indexOf(e)&&i.$inner.append('<div id="'+e+'" class="lg-item"></div>')}),this.currentItemsInDom.forEach(function(e){-1===n.indexOf(e)&&a("#"+e).remove()}),n},e.prototype.getPreviousSlideIndex=function(){var e=0;try{var t=this.outer.find(".lg-current").first().attr("id");e=parseInt(t.split("-")[3])||0}catch(t){e=0}return e},e.prototype.setDownloadValue=function(e){if(this.settings.download){var t=this.galleryItems[e];if(!1===t.downloadUrl||"false"===t.downloadUrl)this.outer.addClass("lg-hide-download");else{var i=this.getElementById("lg-download");this.outer.removeClass("lg-hide-download"),i.attr("href",t.downloadUrl||t.src),t.download&&i.attr("download",t.download)}}},e.prototype.makeSlideAnimation=function(e,t,i){var n=this;this.lGalleryOn&&i.addClass("lg-slide-progress"),setTimeout(function(){n.outer.addClass("lg-no-trans"),n.outer.find(".lg-item").removeClass("lg-prev-slide lg-next-slide"),"prev"===e?(t.addClass("lg-prev-slide"),i.addClass("lg-next-slide")):(t.addClass("lg-next-slide"),i.addClass("lg-prev-slide")),setTimeout(function(){n.outer.find(".lg-item").removeClass("lg-current"),t.addClass("lg-current"),n.outer.removeClass("lg-no-trans")},50)},this.lGalleryOn?this.settings.slideDelay:0)},e.prototype.slide=function(e,t,i,n){var r=this,s=this.getPreviousSlideIndex();if(this.currentItemsInDom=this.organizeSlideItems(e,s),!this.lGalleryOn||s!==e){var l=this.galleryItems.length;if(!this.lgBusy){this.settings.counter&&this.updateCurrentCounter(e);var a=this.getSlideItem(e),u=this.getSlideItem(s),d=this.galleryItems[e],h=d.__slideVideoInfo;if(this.outer.attr("data-lg-slide-type",this.getSlideType(d)),this.setDownloadValue(e),h){var g=this.mediaContainerPosition,m=g.top,f=g.bottom,p=c.getSize(this.items[e],this.outer,m+f,h&&this.settings.videoMaxSize);this.resizeVideoSlide(e,p)}if(this.LGel.trigger(o.beforeSlide,{prevIndex:s,index:e,fromTouch:!!t,fromThumb:!!i}),this.lgBusy=!0,clearTimeout(this.hideBarTimeout),this.arrowDisable(e),!n&&(e<s?n="prev":e>s&&(n="next")),t){this.outer.find(".lg-item").removeClass("lg-prev-slide lg-current lg-next-slide");var v=void 0,y=void 0;l>2?(v=e-1,y=e+1,0===e&&s===l-1?(y=0,v=l-1):e===l-1&&0===s&&(y=0,v=l-1)):(v=0,y=1),"prev"===n?this.getSlideItem(y).addClass("lg-next-slide"):this.getSlideItem(v).addClass("lg-prev-slide"),a.addClass("lg-current")}else this.makeSlideAnimation(n,a,u);this.lGalleryOn?setTimeout(function(){r.loadContent(e,!0),".lg-item"!==r.settings.appendSubHtmlTo&&r.addHtml(e)},this.settings.speed+50+(t?0:this.settings.slideDelay)):this.loadContent(e,!0),setTimeout(function(){r.lgBusy=!1,u.removeClass("lg-slide-progress"),r.LGel.trigger(o.afterSlide,{prevIndex:s,index:e,fromTouch:t,fromThumb:i})},(this.lGalleryOn?this.settings.speed+100:100)+(t?0:this.settings.slideDelay))}this.index=e}},e.prototype.updateCurrentCounter=function(e){this.getElementById("lg-counter-current").html(e+1+"")},e.prototype.updateCounterTotal=function(){this.getElementById("lg-counter-all").html(this.galleryItems.length+"")},e.prototype.getSlideType=function(e){return e.__slideVideoInfo?"video":e.iframe?"iframe":"image"},e.prototype.touchMove=function(e,t,i){var n=t.pageX-e.pageX,r=t.pageY-e.pageY,o=!1;if(this.swipeDirection?o=!0:Math.abs(n)>15?(this.swipeDirection="horizontal",o=!0):Math.abs(r)>15&&(this.swipeDirection="vertical",o=!0),o){var s=this.getSlideItem(this.index);if("horizontal"===this.swipeDirection){null==i||i.preventDefault(),this.outer.addClass("lg-dragging"),this.setTranslate(s,n,0);var l=s.get().offsetWidth,a=15*l/100-Math.abs(10*n/100);this.setTranslate(this.outer.find(".lg-prev-slide").first(),-l+n-a,0),this.setTranslate(this.outer.find(".lg-next-slide").first(),l+n+a,0)}else if("vertical"===this.swipeDirection&&this.settings.swipeToClose){null==i||i.preventDefault(),this.$container.addClass("lg-dragging-vertical");var u=1-Math.abs(r)/window.innerHeight;this.$backdrop.css("opacity",u);var c=1-Math.abs(r)/(2*window.innerWidth);
37this.setTranslate(s,0,r,c,c),Math.abs(r)>100&&this.outer.addClass("lg-hide-items").removeClass("lg-components-open")}}},e.prototype.touchEnd=function(e,t,i){var n,r=this;"lg-slide"!==this.settings.mode&&this.outer.addClass("lg-slide"),setTimeout(function(){r.$container.removeClass("lg-dragging-vertical"),r.outer.removeClass("lg-dragging lg-hide-items").addClass("lg-components-open");var s=!0;if("horizontal"===r.swipeDirection){n=e.pageX-t.pageX;var l=Math.abs(e.pageX-t.pageX);n<0&&l>r.settings.swipeThreshold?(r.goToNextSlide(!0),s=!1):n>0&&l>r.settings.swipeThreshold&&(r.goToPrevSlide(!0),s=!1)}else if("vertical"===r.swipeDirection){if(n=Math.abs(e.pageY-t.pageY),r.settings.closable&&r.settings.swipeToClose&&n>100){r.closeGallery();return}r.$backdrop.css("opacity",1)}if(r.outer.find(".lg-item").removeAttr("style"),s&&5>Math.abs(e.pageX-t.pageX)){var u=a(i.target);r.isPosterElement(u)&&r.LGel.trigger(o.posterClick)}r.swipeDirection=void 0}),setTimeout(function(){r.outer.hasClass("lg-dragging")||"lg-slide"===r.settings.mode||r.outer.removeClass("lg-slide")},this.settings.speed+100)},e.prototype.enableSwipe=function(){var e=this,t={},i={},n=!1,r=!1;this.settings.enableSwipe&&(this.$inner.on("touchstart.lg",function(i){e.dragOrSwipeEnabled=!0;var n=e.getSlideItem(e.index);(a(i.target).hasClass("lg-item")||n.get().contains(i.target))&&!e.outer.hasClass("lg-zoomed")&&!e.lgBusy&&1===i.touches.length&&(r=!0,e.touchAction="swipe",e.manageSwipeClass(),t={pageX:i.touches[0].pageX,pageY:i.touches[0].pageY})}),this.$inner.on("touchmove.lg",function(o){r&&"swipe"===e.touchAction&&1===o.touches.length&&(i={pageX:o.touches[0].pageX,pageY:o.touches[0].pageY},e.touchMove(t,i,o),n=!0)}),this.$inner.on("touchend.lg",function(s){if("swipe"===e.touchAction){if(n)n=!1,e.touchEnd(i,t,s);else if(r){var l=a(s.target);e.isPosterElement(l)&&e.LGel.trigger(o.posterClick)}e.touchAction=void 0,r=!1}}))},e.prototype.enableDrag=function(){var e=this,t={},i={},n=!1,r=!1;this.settings.enableDrag&&(this.outer.on("mousedown.lg",function(i){e.dragOrSwipeEnabled=!0;var r=e.getSlideItem(e.index);(a(i.target).hasClass("lg-item")||r.get().contains(i.target))&&!e.outer.hasClass("lg-zoomed")&&!e.lgBusy&&(i.preventDefault(),e.lgBusy||(e.manageSwipeClass(),t={pageX:i.pageX,pageY:i.pageY},n=!0,e.outer.get().scrollLeft+=1,e.outer.get().scrollLeft-=1,e.outer.removeClass("lg-grab").addClass("lg-grabbing"),e.LGel.trigger(o.dragStart)))}),a(window).on("mousemove.lg.global"+this.lgId,function(s){n&&e.lgOpened&&(r=!0,i={pageX:s.pageX,pageY:s.pageY},e.touchMove(t,i),e.LGel.trigger(o.dragMove))}),a(window).on("mouseup.lg.global"+this.lgId,function(s){if(e.lgOpened){var l=a(s.target);r?(r=!1,e.touchEnd(i,t,s),e.LGel.trigger(o.dragEnd)):e.isPosterElement(l)&&e.LGel.trigger(o.posterClick),n&&(n=!1,e.outer.removeClass("lg-grabbing").addClass("lg-grab"))}}))},e.prototype.triggerPosterClick=function(){var e=this;this.$inner.on("click.lg",function(t){!e.dragOrSwipeEnabled&&e.isPosterElement(a(t.target))&&e.LGel.trigger(o.posterClick)})},e.prototype.manageSwipeClass=function(){var e=this.index+1,t=this.index-1;this.settings.loop&&this.galleryItems.length>2&&(0===this.index?t=this.galleryItems.length-1:this.index===this.galleryItems.length-1&&(e=0)),this.outer.find(".lg-item").removeClass("lg-next-slide lg-prev-slide"),t>-1&&this.getSlideItem(t).addClass("lg-prev-slide"),this.getSlideItem(e).addClass("lg-next-slide")},e.prototype.goToNextSlide=function(e){var t=this,i=this.settings.loop;e&&this.galleryItems.length<3&&(i=!1),this.lgBusy||(this.index+1<this.galleryItems.length?(this.index++,this.LGel.trigger(o.beforeNextSlide,{index:this.index}),this.slide(this.index,!!e,!1,"next")):i?(this.index=0,this.LGel.trigger(o.beforeNextSlide,{index:this.index}),this.slide(this.index,!!e,!1,"next")):this.settings.slideEndAnimation&&!e&&(this.outer.addClass("lg-right-end"),setTimeout(function(){t.outer.removeClass("lg-right-end")},400)))},e.prototype.goToPrevSlide=function(e){var t=this,i=this.settings.loop;e&&this.galleryItems.length<3&&(i=!1),this.lgBusy||(this.index>0?(this.index--,this.LGel.trigger(o.beforePrevSlide,{index:this.index,fromTouch:e}),this.slide(this.index,!!e,!1,"prev")):i?(this.index=this.galleryItems.length-1,this.LGel.trigger(o.beforePrevSlide,{index:this.index,fromTouch:e}),this.slide(this.index,!!e,!1,"prev")):this.settings.slideEndAnimation&&!e&&(this.outer.addClass("lg-left-end"),setTimeout(function(){t.outer.removeClass("lg-left-end")},400)))},e.prototype.keyPress=function(){var e=this;a(window).on("keydown.lg.global"+this.lgId,function(t){e.lgOpened&&!0===e.settings.escKey&&27===t.keyCode&&(t.preventDefault(),e.settings.allowMediaOverlap&&e.outer.hasClass("lg-can-toggle")&&e.outer.hasClass("lg-components-open")?e.outer.removeClass("lg-components-open"):e.closeGallery()),e.lgOpened&&e.galleryItems.length>1&&(37===t.keyCode&&(t.preventDefault(),e.goToPrevSlide()),39===t.keyCode&&(t.preventDefault(),e.goToNextSlide()))})},e.prototype.arrow=function(){var e=this;this.getElementById("lg-prev").on("click.lg",function(){e.goToPrevSlide()}),this.getElementById("lg-next").on("click.lg",function(){e.goToNextSlide()})},e.prototype.arrowDisable=function(e){if(!this.settings.loop&&this.settings.hideControlOnEnd){var t=this.getElementById("lg-prev"),i=this.getElementById("lg-next");e+1===this.galleryItems.length?i.attr("disabled","disabled").addClass("disabled"):i.removeAttr("disabled").removeClass("disabled"),0===e?t.attr("disabled","disabled").addClass("disabled"):t.removeAttr("disabled").removeClass("disabled")}},e.prototype.setTranslate=function(e,t,i,n,r){void 0===n&&(n=1),void 0===r&&(r=1),e.css("transform","translate3d("+t+"px, "+i+"px, 0px) scale3d("+n+", "+r+", 1)")},e.prototype.mousewheel=function(){var e=this,t=0;this.outer.on("wheel.lg",function(i){if(i.deltaY&&!(e.galleryItems.length<2)){i.preventDefault();var n=new Date().getTime();!(n-t<1e3)&&(t=n,i.deltaY>0?e.goToNextSlide():i.deltaY<0&&e.goToPrevSlide())}})},e.prototype.isSlideElement=function(e){return e.hasClass("lg-outer")||e.hasClass("lg-item")||e.hasClass("lg-img-wrap")||e.hasClass("lg-img-rotate")},e.prototype.isPosterElement=function(e){var t=this.getSlideItem(this.index).find(".lg-video-play-button").get();return e.hasClass("lg-video-poster")||e.hasClass("lg-video-play-button")||t&&t.contains(e.get())},e.prototype.toggleMaximize=function(){var e=this;this.getElementById("lg-maximize").on("click.lg",function(){e.$container.toggleClass("lg-inline"),e.refreshOnResize()})},e.prototype.invalidateItems=function(){for(var e=0;e<this.items.length;e++){var t=a(this.items[e]);t.off("click.lgcustom-item-"+t.attr("data-lg-id"))}},e.prototype.trapFocus=function(){var e=this;this.$container.get().focus({preventScroll:!0}),a(window).on("keydown.lg.global"+this.lgId,function(t){if(e.lgOpened&&("Tab"===t.key||9===t.keyCode)){var i=c.getFocusableElements(e.$container.get()),n=i[0],r=i[i.length-1];t.shiftKey?document.activeElement===n&&(r.focus(),t.preventDefault()):document.activeElement===r&&(n.focus(),t.preventDefault())}})},e.prototype.manageCloseGallery=function(){var e=this;if(this.settings.closable){var t=!1;this.getElementById("lg-close").on("click.lg",function(){e.closeGallery()}),this.settings.closeOnTap&&(this.outer.on("mousedown.lg",function(i){var n=a(i.target);t=!!e.isSlideElement(n)}),this.outer.on("mousemove.lg",function(){t=!1}),this.outer.on("mouseup.lg",function(i){var n=a(i.target);e.isSlideElement(n)&&t&&!e.outer.hasClass("lg-dragging")&&e.closeGallery()}))}},e.prototype.closeGallery=function(e){var t,i=this;if(!this.lgOpened||!this.settings.closable&&!e)return 0;this.LGel.trigger(o.beforeClose),this.settings.resetScrollPosition&&!this.settings.hideScrollbar&&a(window).scrollTop(this.prevScrollTop);var n=this.items[this.index];if(this.zoomFromOrigin&&n){var r=this.mediaContainerPosition,s=r.top,l=r.bottom,u=this.galleryItems[this.index],d=u.__slideVideoInfo,h=u.poster,g=c.get
37Size(n,this.outer,s+l,d&&h&&this.settings.videoMaxSize);t=c.getTransform(n,this.outer,s,l,g)}this.zoomFromOrigin&&t?(this.outer.addClass("lg-closing lg-zoom-from-image"),this.getSlideItem(this.index).addClass("lg-start-end-progress").css("transition-duration",this.settings.startAnimationDuration+"ms").css("transform",t)):(this.outer.addClass("lg-hide-items"),this.outer.removeClass("lg-zoom-from-image")),this.destroyModules(),this.lGalleryOn=!1,this.isDummyImageRemoved=!1,this.zoomFromOrigin=this.settings.zoomFromOrigin,clearTimeout(this.hideBarTimeout),this.hideBarTimeout=!1,a("html").removeClass("lg-on"),this.outer.removeClass("lg-visible lg-components-open"),this.$backdrop.removeClass("in").css("opacity",0);var m=this.zoomFromOrigin&&t?Math.max(this.settings.startAnimationDuration,this.settings.backdropDuration):this.settings.backdropDuration;return this.$container.removeClass("lg-show-in"),setTimeout(function(){i.zoomFromOrigin&&t&&i.outer.removeClass("lg-zoom-from-image"),i.$container.removeClass("lg-show"),i.resetScrollBar(),i.$backdrop.removeAttr("style").css("transition-duration",i.settings.backdropDuration+"ms"),i.outer.removeClass("lg-closing "+i.settings.startClass),i.getSlideItem(i.index).removeClass("lg-start-end-progress"),i.$inner.empty(),i.lgOpened&&i.LGel.trigger(o.afterClose,{instance:i}),i.$container.get()&&i.$container.get().blur(),i.lgOpened=!1},m+100),m+100},e.prototype.initModules=function(){this.plugins.forEach(function(e){try{e.init()}catch(e){console.warn("lightGallery:- make sure lightGallery module is properly initiated")}})},e.prototype.destroyModules=function(e){this.plugins.forEach(function(t){try{e?t.destroy():t.closeGallery&&t.closeGallery()}catch(e){console.warn("lightGallery:- make sure lightGallery module is properly destroyed")}})},e.prototype.refresh=function(e){this.settings.dynamic||this.invalidateItems(),e?this.galleryItems=e:this.galleryItems=this.getItems(),this.updateControls(),this.openGalleryOnItemClick(),this.LGel.trigger(o.updateSlides)},e.prototype.updateControls=function(){this.addSlideVideoInfo(this.galleryItems),this.updateCounterTotal(),this.manageSingleSlideClassName()},e.prototype.destroyGallery=function(){this.destroyModules(!0),this.settings.dynamic||this.invalidateItems(),a(window).off(".lg.global"+this.lgId),this.LGel.off(".lg"),this.$container.remove()},e.prototype.destroy=function(){var e=this.closeGallery(!0);return e?setTimeout(this.destroyGallery.bind(this),e):this.destroyGallery(),e},e}(),g={onAfterAppendSlide:"lgAfterAppendSlide",onInit:"lgInit",onHasVideo:"lgHasVideo",onContainerResize:"lgContainerResize",onAfterAppendSubHtml:"lgAfterAppendSubHtml",onBeforeOpen:"lgBeforeOpen",onAfterOpen:"lgAfterOpen",onSlideItemLoad:"lgSlideItemLoad",onBeforeSlide:"lgBeforeSlide",onAfterSlide:"lgAfterSlide",onPosterClick:"lgPosterClick",onDragStart:"lgDragStart",onDragMove:"lgDragMove",onDragEnd:"lgDragEnd",onBeforeNextSlide:"lgBeforeNextSlide",onBeforePrevSlide:"lgBeforePrevSlide",onBeforeClose:"lgBeforeClose",onAfterClose:"lgAfterClose",onRotateLeft:"lgRotateLeft",onRotateRight:"lgRotateRight",onFlipHorizontal:"lgFlipHorizontal",onFlipVertical:"lgFlipVertical"};t.Z=function(e){var t=e.children,i=e.elementClassNames,r=e.onAfterAppendSlide,o=e.onInit,s=e.onHasVideo,l=e.onContainerResize,a=e.onAfterAppendSubHtml,u=e.onBeforeOpen,c=e.onAfterOpen,d=e.onSlideItemLoad,m=e.onBeforeSlide,f=e.onAfterSlide,p=e.onPosterClick,v=e.onDragStart,y=e.onDragMove,b=e.onDragEnd,w=e.onBeforeNextSlide,C=e.onBeforePrevSlide,x=e.onBeforeClose,S=e.onAfterClose,I=e.onRotateLeft,T=e.onRotateRight,E=e.onFlipHorizontal,R=e.onFlipVertical,O=/*! ***************************************************************************** 38Copyright (c) Microsoft Corporation. 39 40Permission to use, copy, modify, and/or distribute this software for any 41purpose with or without fee is hereby granted. 42 43THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH 44REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY 45AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, 46INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM 47LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR 48OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 49PERFORMANCE OF THIS SOFTWARE. 50***************************************************************************** */function(e,t){var i={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(i[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var r=0,n=Object.getOwnPropertySymbols(e);r<n.length;r++)0>t.indexOf(n[r])&&Object.prototype.propertyIsEnumerable.call(e,n[r])&&(i[n[r]]=e[n[r]]);return i}(e,["children","elementClassNames","onAfterAppendSlide","onInit","onHasVideo","onContainerResize","onAfterAppendSubHtml","onBeforeOpen","onAfterOpen","onSlideItemLoad","onBeforeSlide","onAfterSlide","onPosterClick","onDragStart","onDragMove","onDragEnd","onBeforeNextSlide","onBeforePrevSlide","onBeforeClose","onAfterClose","onRotateLeft","onRotateRight","onFlipHorizontal","onFlipVertical"]),P=(0,n.useRef)(null),L=(0,n.useCallback)(function(){r&&P&&P.current&&P.current.addEventListener(g.onAfterAppendSlide,function(e){r(e.detail)}),o&&P&&P.current&&P.current.addEventListener(g.onInit,function(e){o(e.detail)}),s&&P&&P.current&&P.current.addEventListener(g.onHasVideo,function(e){s(e.detail)}),l&&P&&P.current&&P.current.addEventListener(g.onContainerResize,function(e){l(e.detail)}),a&&P&&P.current&&P.current.addEventListener(g.onAfterAppendSubHtml,function(e){a(e.detail)}),u&&P&&P.current&&P.current.addEventListener(g.onBeforeOpen,function(e){u(e.detail)}),c&&P&&P.current&&P.current.addEventListener(g.onAfterOpen,function(e){c(e.detail)}),d&&P&&P.current&&P.current.addEventListener(g.onSlideItemLoad,function(e){d(e.detail)}),m&&P&&P.current&&P.current.addEventListener(g.onBeforeSlide,function(e){m(e.detail)}),f&&P&&P.current&&P.current.addEventListener(g.onAfterSlide,function(e){f(e.detail)}),p&&P&&P.current&&P.current.addEventListener(g.onPosterClick,function(e){p(e.detail)}),v&&P&&P.current&&P.current.addEventListener(g.onDragStart,function(e){v(e.detail)}),y&&P&&P.current&&P.current.addEventListener(g.onDragMove,function(e){y(e.detail)}),b&&P&&P.current&&P.current.addEventListener(g.onDragEnd,function(e){b(e.detail)}),w&&P&&P.current&&P.current.addEventListener(g.onBeforeNextSlide,function(e){w(e.detail)}),C&&P&&P.current&&P.current.addEventListener(g.onBeforePrevSlide,function(e){C(e.detail)}),x&&P&&P.current&&P.current.addEventListener(g.onBeforeClose,function(e){x(e.detail)}),S&&P&&P.current&&P.current.addEventListener(g.onAfterClose,function(e){
50S(e.detail)}),I&&P&&P.current&&P.current.addEventListener(g.onRotateLeft,function(e){I(e.detail)}),T&&P&&P.current&&P.current.addEventListener(g.onRotateRight,function(e){T(e.detail)}),E&&P&&P.current&&P.current.addEventListener(g.onFlipHorizontal,function(e){E(e.detail)}),R&&P&&P.current&&P.current.addEventListener(g.onFlipVertical,function(e){R(e.detail)})},[r,a,S,I,T,E,R,c,f,x,w,u,C,m,l,b,y,v,s,o,p,d]);return(0,n.useEffect)(function(){L();var e=new h(P.current,O);return function(){e.destroy()}},[L,O]),(0,n.createElement)("div",{className:"lg-react-element "+(i||""),ref:P},t)}},4561:function(e,t,i){var n=i(7294),r=function(){return(r=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++)for(var r in t=arguments[i])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},o=function(e){var t=e.animate,i=e.backgroundColor,o=void 0===i?"#f5f6f7":i,s=e.backgroundOpacity,l=void 0===s?1:s,a=e.baseUrl,u=void 0===a?"":a,c=e.children,d=e.foregroundColor,h=e.foregroundOpacity,g=e.gradientRatio,m=void 0===g?2:g,f=e.uniqueKey,p=e.rtl,v=e.speed,y=e.style,b=e.title,w=void 0===b?"Loading...":b,C=e.beforeMask,x=void 0===C?null:C,S=function(e,t){var i={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(i[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var r=0,n=Object.getOwnPropertySymbols(e);r<n.length;r++)0>t.indexOf(n[r])&&Object.prototype.propertyIsEnumerable.call(e,n[r])&&(i[n[r]]=e[n[r]]);return i}(e,["animate","backgroundColor","backgroundOpacity","baseUrl","children","foregroundColor","foregroundOpacity","gradientRatio","uniqueKey","rtl","speed","style","title","beforeMask"]),I=f||Math.random().toString(36).substring(6),T="".concat(I,"-diff"),E="".concat(I,"-animated-diff"),R="".concat(I,"-aria"),O="".concat(-1*m," 0");return(0,n.createElement)("svg",r({"aria-labelledby":R,role:"img",style:r(r({},void 0===y?{}:y),void 0!==p&&p?{transform:"scaleX(-1)"}:null)},S),w?(0,n.createElement)("title",{id:R},w):null,x&&(0,n.isValidElement)(x)?x:null,(0,n.createElement)("rect",{role:"presentation",x:"0",y:"0",width:"100%",height:"100%",clipPath:"url(".concat(u,"#").concat(T,")"),style:{fill:"url(".concat(u,"#").concat(E,")")}}),(0,n.createElement)("defs",null,(0,n.createElement)("clipPath",{id:T},c),(0,n.createElement)("linearGradient",{id:E,gradientTransform:"translate(".concat(O,")")},(0,n.createElement)("stop",{offset:"0%",stopColor:o,stopOpacity:l}),(0,n.createElement)("stop",{offset:"50%",stopColor:void 0===d?"#eee":d,stopOpacity:void 0===h?1:h}),(0,n.createElement)("stop",{offset:"100%",stopColor:o,stopOpacity:l}),(void 0===t||t)&&(0,n.createElement)("animateTransform",{attributeName:"gradientTransform",type:"translate",values:"".concat(O,"; 0 0; ").concat("".concat(m," 0")),dur:"".concat(void 0===v?1.2:v,"s"),repeatCount:"indefinite"}))))},s=function(e){return e.children?(0,n.createElement)(o,r({},e)):(0,n.createElement)(l,r({},e))},l=function(e){return(0,n.createElement)(s,r({viewBox:"0 0 476 124"},e),(0,n.createElement)("rect",{x:"48",y:"8",width:"88",height:"6",rx:"3"}),(0,n.createElement)("rect",{x:"48",y:"26",width:"52",height:"6",rx:"3"}),(0,n.createElement)("rect",{x:"0",y:"56",width:"410",height:"6",rx:"3"}),(0,n.createElement)("rect",{x:"0",y:"72",width:"380",height:"6",rx:"3"}),(0,n.createElement)("rect",{x:"0",y:"88",width:"178",height:"6",rx:"3"}),(0,n.createElement)("circle",{cx:"20",cy:"20",r:"20"}))};t.ZP=s},440:function(e,t,i){let n;i.d(t,{VY:function(){return tS},ZA:function(){return tT},JO:function(){return tx},ck:function(){return tE},eT:function(){return tR},fC:function(){return tb},xz:function(){return tw},B4:function(){return tC},l_:function(){return tI}});var r,o=i(7294),s=i(3935);function l(e,[t,i]){return Math.min(i,Math.max(t,e))}var a=i(6206),u=i(5360),c=i(8771),d=i(5893),h=o.forwardRef((e,t)=>{let{children:i,...n}=e,r=o.Children.toArray(i),s=r.find(f);if(s){let e=s.props.children,i=r.map(t=>t!==s?t:o.Children.count(e)>1?o.Children.only(null):o.isValidElement(e)?e.props.children:null);return(0,d.jsx)(g,{...n,ref:t,children:o.isValidElement(e)?o.cloneElement(e,void 0,i):null})}return(0,d.jsx)(g,{...n,ref:t,children:i})});h.displayName="Slot";var g=o.forwardRef((e,t)=>
50{let{children:i,...n}=e;if(o.isValidElement(i)){let e,r;let s=(e=Object.getOwnPropertyDescriptor(i.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning?i.ref:(e=Object.getOwnPropertyDescriptor(i,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning?i.props.ref:i.props.ref||i.ref;return o.cloneElement(i,{...function(e,t){let i={...t};for(let n in t){let r=e[n],o=t[n];/^on[A-Z]/.test(n)?r&&o?i[n]=(...e)=>{o(...e),r(...e)}:r&&(i[n]=r):"style"===n?i[n]={...r,...o}:"className"===n&&(i[n]=[r,o].filter(Boolean).join(" "))}return{...e,...i}}(n,i.props),ref:t?(0,c.F)(t,s):s})}return o.Children.count(i)>1?o.Children.only(null):null});g.displayName="SlotClone";var m=({children:e})=>(0,d.jsx)(d.Fragment,{children:e});function f(e){return o.isValidElement(e)&&e.type===m}var p=i(8990),v=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{let i=o.forwardRef((e,i)=>{let{asChild:n,...r}=e,o=n?h:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,d.jsx)(o,{...r,ref:i})});return i.displayName=`Primitive.${t}`,{...e,[t]:i}},{}),y=i(9698),b=i(8724),w="dismissableLayer.update",C=o.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),x=o.forwardRef((e,t)=>{let{disableOutsidePointerEvents:i=!1,onEscapeKeyDown:n,onPointerDownOutside:s,onFocusOutside:l,onInteractOutside:u,onDismiss:h,...g}
50=e,m=o.useContext(C),[f,p]=o.useState(null),x=f?.ownerDocument??globalThis?.document,[,T]=o.useState({}),E=(0,c.e)(t,e=>p(e)),R=Array.from(m.layers),[O]=[...m.layersWithOutsidePointerEventsDisabled].slice(-1),P=R.indexOf(O),L=f?R.indexOf(f):-1,M=m.layersWithOutsidePointerEventsDisabled.size>0,D=L>=P,z=function(e,t=globalThis?.document){let i=(0,y.W)(e),n=o.useRef(!1),r=o.useRef(()=>{});return o.useEffect(()=>{let e=e=>{if(e.target&&!n.current){let n=function(){I("dismissableLayer.pointerDownOutside",i,o,{discrete:!0})},o={originalEvent:e};"touch"===e.pointerType?(t.removeEventListener("click",r.current),r.current=n,t.addEventListener("click",r.current,{once:!0})):n()}else t.removeEventListener("click",r.current);n.current=!1},o=window.setTimeout(()=>{t.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(o),t.removeEventListener("pointerdown",e),t.removeEventListener("click",r.current)}},[t,i]),{onPointerDownCapture:()=>n.current=!0}}(e=>{let t=e.target,i=[...m.branches].some(e=>e.contains(t));!D||i||(s?.(e),u?.(e),e.defaultPrevented||h?.())},x),A=function(e,t=globalThis?.document){let i=(0,y.W)(e),n=o.useRef(!1);return o.useEffect(()=>{let e=e=>{e.target&&!n.current&&I("dismissableLayer.focusOutside",i,{originalEvent:e},{discrete:!1})};return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)},[t,i]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}(e=>{let t=e.target;[...m.branches].some(e=>e.contains(t))||(l?.(e),u?.(e),e.defaultPrevented||h?.())},x);return(0,b.e)(e=>{L!==m.layers.size-1||(n?.(e),!e.defaultPrevented&&h&&(e.preventDefault(),h()))},x),o.useEffect(()=>{if(f)return i&&(0===m.layersWithOutsidePointerEventsDisabled.size&&(r=x.body.style.pointerEvents,x.body.style.pointerEvents="none"),m.layersWithOutsidePointerEventsDisabled.add(f)),m.layers.add(f),S(),()=>{i&&1===m.layersWithOutsidePointerEventsDisabled.size&&(x.body.style.pointerEvents=r)}},[f,x,i,m]),o.useEffect(()=>()=>{f&&(m.layers.delete(f),m.layersWithOutsidePointerEventsDisabled.delete(f),S())},[f,m]),o.useEffect(()=>{let e=()=>T({});return document.addEventListener(w,e),()=>document.removeEventListener(w,e)},[]),(0,d.jsx)(v.div,{...g,ref:E,style:{pointerEvents:M?D?"auto":"none":void 0,...e.style},onFocusCapture:(0,a.M)(e.onFocusCapture,A.onFocusCapture),onBlurCapture:(0,a.M)(e.onBlurCapture,A.onBlurCapture),onPointerDownCapture:(0,a.M)(e.onPointerDownCapture,z.onPointerDownCapture)})});function S(){let e=new CustomEvent(w);document.dispatchEvent(e)}function I(e,t,i,{discrete:n}){let r=i.originalEvent.target,o=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:i});(t&&r.addEventListener(e,t,{once:!0}),n)?r&&s.flushSync(()=>r.dispatchEvent(o)):r.dispatchEvent(o)}x.displayName="DismissableLayer",o.forwardRef((e,t)=>{let i=o.useContext(C),n=o.useRef(null),r=(0,c.e)(t,n);return o.useEffect(()=>{let e=n.current;if(e)return i.branches.add(e),()=>{i.branches.delete(e)}},[i.branches]),(0,d.jsx)(v.div,{...e,ref:r})}).displayName="DismissableLayerBranch";var T=i(7552),E="focusScope.autoFocusOnMount",R="focusScope.autoFocusOnUnmount",O={bubbles:!1,cancelable:!0},P=o.forwardRef((e,t)=>{let{loop:i=!1,trapped:n=!1,onMountAutoFocus:r,onUnmountAutoFocus:s,...l}=e,[a,u]=o.useState(null),h=(0,y.W)(r),g=(0,y.W)(s),m=o.useRef(null),f=(0,c.e)(t,e=>u(e)),p=o.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;o.useEffect(()=>{if(n){let e=function(e){if(p.paused||!a)return;let t=e.target;a.contains(t)?m.current=t:D(m.current,{select:!0})},t=function(e){if(p.paused||!a)return;let t=e.relatedTarget;null===t||a.contains(t)||D(m.current,{select:!0})};document.addEventListener("focusin",e),document.addEventListener("focusout",t);let i=new MutationObserver(function(e){if(document.activeElement===document.body)for(let t of e)t.removedNodes.length>0&&D(a)});return a&&i.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),i.disconnect()}}},[n,a,p.paused]),o.useEffect(()=>{if(a){z.add(p);let e=document.activeElement;if(!a.contains(e)){let t=new CustomEvent(E,O);a.addEventListener(E,h),a.dispatchEvent(t),t.defaultPrevented||(function(e,{select:t=!1}={}){let i=document.activeElement;for(let n of e)if(D(n,{select:t}),document.activeElement!==i)return}(L(a).filter(e=>"A"!==e.tagName),{select:!0}),document.activeElement===e&&D(a))}return()=>{a.removeEventListener(E,h),setTimeout(()=>{let t=new CustomEvent(R,O);a.addEventListener(R,g),a.dispatchEvent(t),t.defaultPrevented||D(e??document.body,{select:!0}),a.removeEventListener(R,g),z.remove(p)}
50,0)}}},[a,h,g,p]);let b=o.useCallback(e=>{if(!i&&!n||p.paused)return;let t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,r=document.activeElement;if(t&&r){let t=e.currentTarget,[n,o]=function(e){let t=L(e);return[M(t,e),M(t.reverse(),e)]}(t);n&&o?e.shiftKey||r!==o?e.shiftKey&&r===n&&(e.preventDefault(),i&&D(o,{select:!0})):(e.preventDefault(),i&&D(n,{select:!0})):r===t&&e.preventDefault()}},[i,n,p.paused]);return(0,d.jsx)(v.div,{tabIndex:-1,...l,ref:f,onKeyDown:b})});function L(e){let t=[],i=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;i.nextNode();)t.push(i.currentNode);return t}function M(e,t){for(let i of e)if(!function(e,{upTo:t}){if("hidden"===getComputedStyle(e).visibility)return!0;for(;e&&(void 0===t||e!==t);){if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}(i,{upTo:t}))return i}function D(e,{select:t=!1}={}){if(e&&e.focus){var i;let n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&(i=e)instanceof HTMLInputElement&&"select"in i&&t&&e.select()}}P.displayName="FocusScope";var z=(n=[],{add(e){let t=n[0];e!==t&&t?.pause(),(n=A(n,e)).unshift(e)},remove(e){n=A(n,e),n[0]?.resume()}});function A(e,t){let i=[...e],n=i.indexOf(t);return -1!==n&&i.splice(n,1),i}var k=i(1276),N=i(1371),B=i(8573),j=o.forwardRef((e,t)=>{let{children:i,width:n=10,height:r=5,...o}=e;return(0,d.jsx)(v.svg,{...o,ref:t,width:n,height:r,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?i:(0,d.jsx)("polygon",{points:"0,0 30,0 15,10"})})});j.displayName="Arrow";var F=i(9981),$=i(7546),_="Popper",[W,G]=(0,u.b)(_),[H,X]=W(_),V=e=>{let{__scopePopper:t,children:i}=e,[n,r]=o.useState(null);return(0,d.jsx)(H,{scope:t,anchor:n,onAnchorChange:r,children:i})};V.displayName=_;var Y="PopperAnchor",U=o.forwardRef((e,t)=>{let{__scopePopper:i,virtualRef:n,...r}=e,s=X(Y,i),l=o.useRef(null),a=(0,c.e)(t,l);return o.useEffect(()=>{s.onAnchorChange(n?.current||l.current)}),n?null:(0,d.jsx)(v.div,{...r,ref:a})});U.displayName=Y;var Z="PopperContent",[Q,K]=W(Z),q=o.forwardRef((e,t)=>{let{__scopePopper:i,side:n="bottom",sideOffset:r=0,align:s="center",alignOffset:l=0,arrowPadding:a=0,avoidCollisions:u=!0,collisionBoundary:h=[],collisionPadding:g=0,sticky:m="partial",hideWhenDetached:f=!1,updatePositionStrategy:p="optimized",onPlaced:b,...w}=e,C=X(Z,i),[x,S]=o.useState(null),I=(0,c.e)(t,e=>S(e)),[T,E]=o.useState(null),R=(0,$.t)(T),O=R?.width??0,P=R?.height??0,L="number"==typeof g?g:{top:0,right:0,bottom:0,left:0,...g},M=Array.isArray(h)?h:[h],D=M.length>0,z={padding:L,boundary:M.filter(ei),altBoundary:D},{refs:A,floatingStyles:k,placement:j,isPositioned:_,middlewareData:W}=(0,N.YF)({strategy:"fixed",placement:n+("center"!==s?"-"+s:""),whileElementsMounted:(...e)=>(0,B.Me)(...e,{animationFrame:"always"===p}),elements:{reference:C.anchor},middleware:[(0,N.cv)({mainAxis:r+P,alignmentAxis:l}),u&&(0,N.uY)({mainAxis:!0,crossAxis:!1,limiter:"partial"===m?(0,N.dr)():void 0,...z}),u&&(0,N.RR)({...z}),(0,N.dp)({...z,apply:({elements:e,rects:t,availableWidth:i,availableHeight:n})=>{let{width:r,height:o}=t.reference,s=e.floating.style;s.setProperty("--radix-popper-available-width",`${i}px`),s.setProperty("--radix-popper-available-height",`${n}px`),s.setProperty("--radix-popper-anchor-width",`${r}px`),s.setProperty("--radix-popper-anchor-height",`${o}px`)}}),T&&(0,N.x7)({element:T,padding:a}),en({arrowWidth:O,arrowHeight:P}),f&&(0,N.Cp)({strategy:"referenceHidden",...z})]}),[G,H]=er(j),V=(0,y.W)(b);(0,F.b)(()=>{_&&V?.()},[_,V]);let Y=W.arrow?.x,U=W.arrow?.y,K=W.arrow?.centerOffset!==0,[q,J]=o.useState();return(0,F.b)(()=>{x&&J(window.getComputedStyle(x).zIndex)},[x]),(0,d.jsx)("div",{ref:A.setFloating,"data-radix-popper-content-wrapper":"",style:{...k,transform:_?k.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:q,"--radix-popper-transform-origin":[W.transformOrigin?.x,W.transformOrigin?.y].join(" "),...W.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:(0,d.jsx)(Q,{scope:i,placedSide:G,onArrowChange:E,arrowX:Y,arrowY:U,shouldHideArrow:K,children:(0,d.jsx)(v.div,{"data-side":G,"data-align":H,...w,ref:I,style:{...w.style,animation:_?void 0:"none"}})})})});q.displayName=Z;var J="PopperArrow",ee={top:"bottom",right:"left",bottom:"top",left:"r
50ight"},et=o.forwardRef(function(e,t){let{__scopePopper:i,...n}=e,r=K(J,i),o=ee[r.placedSide];return(0,d.jsx)("span",{ref:r.onArrowChange,style:{position:"absolute",left:r.arrowX,top:r.arrowY,[o]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[r.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[r.placedSide],visibility:r.shouldHideArrow?"hidden":void 0},children:(0,d.jsx)(j,{...n,ref:t,style:{...n.style,display:"block"}})})});function ei(e){return null!==e}et.displayName=J;var en=e=>({name:"transformOrigin",options:e,fn(t){let{placement:i,rects:n,middlewareData:r}=t,o=r.arrow?.centerOffset!==0,s=o?0:e.arrowWidth,l=o?0:e.arrowHeight,[a,u]=er(i),c={start:"0%",center:"50%",end:"100%"}[u],d=(r.arrow?.x??0)+s/2,h=(r.arrow?.y??0)+l/2,g="",m="";return"bottom"===a?(g=o?c:`${d}px`,m=`${-l}px`):"top"===a?(g=o?c:`${d}px`,m=`${n.floating.height+l}px`):"right"===a?(g=`${-l}px`,m=o?c:`${h}px`):"left"===a&&(g=`${n.floating.width+l}px`,m=o?c:`${h}px`),{data:{x:g,y:m}}}});function er(e){let[t,i="center"]=e.split("-");return[t,i]}o.forwardRef((e,t)=>{let{container:i,...n}=e,[r,l]=o.useState(!1);(0,F.b)(()=>l(!0),[]);let a=i||r&&globalThis?.document?.body;return a?s.createPortal((0,d.jsx)(v.div,{...n,ref:t}),a):null}).displayName="Portal";var eo=i(7342),es=i(7898),el=o.forwardRef((e,t)=>(0,d.jsx)(v.span,{...e,ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}}));el.displayName="VisuallyHidden";var ea=i(3541),eu=i(7582),ec=i(1642),ed=i(9495),eh=(0,i(7122)._)(),eg=function(){},em=o.forwardRef(function(e,t){var i=o.useRef(null),n=o.useState({onScrollCapture:eg,onWheelCapture:eg,onTouchMoveCapture:eg}),r=n[0],s=n[1],l=e.forwardProps,a=e.children,u=e.className,c=e.removeScrollBar,d=e.enabled,h=e.shards,g=e.sideCar,m=e.noIsolation,f=e.inert,p=e.allowPinchZoom,v=e.as,y=e.gapMode,b=(0,eu._T)(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),w=(0,ed.q)([i,t]),C=(0,eu.pi)((0,eu.pi)({},b),r);return o.createElement(o.Fragment,null,d&&o.createElement(g,{sideCar:eh,removeScrollBar:c,shards:h,noIsolation:m,inert:f,setCallbacks:s,allowPinchZoom:!!p,lockRef:i,gapMode:y}),l?o.cloneElement(o.Children.only(a),(0,eu.pi)((0,eu.pi)({},C),{ref:w})):o.createElement(void 0===v?"div":v,(0,eu.pi)({},C,{className:u,ref:w}),a))});em.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},em.classNames={fullWidth:ec.zi,zeroRight:ec.pF};var ef=i(6781),ep=i(7087),ev=i(6525),ey=!1;if("undefined"!=typeof window)try{var eb=Object.defineProperty({},"passive",{get:function(){return ey=!0,!0}});window.addEventListener("test",eb,eb),window.removeEventListener("test",eb,eb)}catch(e){ey=!1}var ew=!!ey&&{passive:!1},eC=function(e,t){if(!(e instanceof Element))return!1;var i=window.getComputedStyle(e);return"hidden"!==i[t]&&!(i.overflowY===i.overflowX&&"TEXTAREA"!==e.tagName&&"visible"===i[t])},ex=function(e,t){var i=t.ownerDocument,n=t;do{if("undefined"!=typeof ShadowRoot&&n instanceof ShadowRoot&&(n=n.host),eS(e,n)){var r=eI(e,n);if(r[1]>r[2])return!0}n=n.parentNode}while(n&&n!==i.body);return!1},eS=function(e,t){return"v"===e?eC(t,"overflowY"):eC(t,"overflowX")},eI=function(e,t){return"v"===e?[t.scrollTop,t.scrollHeight,t.clientHeight]:[t.scrollLeft,t.scrollWidth,t.clientWidth]},eT=function(e,t,i,n,r){var o,s=(o=window.getComputedStyle(t).direction,"h"===e&&"rtl"===o?-1:1),l=s*n,a=i.target,u=t.contains(a),c=!1,d=l>0,h=0,g=0;do{var m=eI(e,a),f=m[0],p=m[1]-m[2]-s*f;(f||p)&&eS(e,a)&&(h+=p,g+=f),a instanceof ShadowRoot?a=a.host:a=a.parentNode}while(!u&&a!==document.body||u&&(t.contains(a)||t===a));return d&&(r&&1>Math.abs(h)||!r&&l>h)?c=!0:!d&&(r&&1>Math.abs(g)||!r&&-l>g)&&(c=!0),c},eE=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},eR=function(e){return[e.deltaX,e.deltaY]},eO=function(e){return e&&"current"in e?e.current:e},eP=0,eL=[],eM=(0,ef.L)(eh,function(e){var t=o.useRef([]),i=o.useRef([0,0]),n=o.useRef(),r=o.useState(eP++)[0],s=o.useState(ev.W
50s)[0],l=o.useRef(e);o.useEffect(function(){l.current=e},[e]),o.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(r));var t=(0,eu.ev)([e.lockRef.current],(e.shards||[]).map(eO),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add("allow-interactivity-".concat(r))}),function(){document.body.classList.remove("block-interactivity-".concat(r)),t.forEach(function(e){return e.classList.remove("allow-interactivity-".concat(r))})}}},[e.inert,e.lockRef.current,e.shards]);var a=o.useCallback(function(e,t){if("touches"in e&&2===e.touches.length||"wheel"===e.type&&e.ctrlKey)return!l.current.allowPinchZoom;var r,o=eE(e),s=i.current,a="deltaX"in e?e.deltaX:s[0]-o[0],u="deltaY"in e?e.deltaY:s[1]-o[1],c=e.target,d=Math.abs(a)>Math.abs(u)?"h":"v";if("touches"in e&&"h"===d&&"range"===c.type)return!1;var h=ex(d,c);if(!h)return!0;if(h?r=d:(r="v"===d?"h":"v",h=ex(d,c)),!h)return!1;if(!n.current&&"changedTouches"in e&&(a||u)&&(n.current=r),!r)return!0;var g=n.current||r;return eT(g,t,e,"h"===g?a:u,!0)},[]),u=o.useCallback(function(e){if(eL.length&&eL[eL.length-1]===s){var i="deltaY"in e?eR(e):eE(e),n=t.current.filter(function(t){var n;return t.name===e.type&&(t.target===e.target||e.target===t.shadowParent)&&(n=t.delta)[0]===i[0]&&n[1]===i[1]})[0];if(n&&n.should){e.cancelable&&e.preventDefault();return}
50if(!n){var r=(l.current.shards||[]).map(eO).filter(Boolean).filter(function(t){return t.contains(e.target)});(r.length>0?a(e,r[0]):!l.current.noIsolation)&&e.cancelable&&e.preventDefault()}}},[]),c=o.useCallback(function(e,i,n,r){var o={name:e,delta:i,target:n,should:r,shadowParent:function(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}(n)};t.current.push(o),setTimeout(function(){t.current=t.current.filter(function(e){return e!==o})},1)},[]),d=o.useCallback(function(e){i.current=eE(e),n.current=void 0},[]),h=o.useCallback(function(t){c(t.type,eR(t),t.target,a(t,e.lockRef.current))},[]),g=o.useCallback(function(t){c(t.type,eE(t),t.target,a(t,e.lockRef.current))},[]);o.useEffect(function(){return eL.push(s),e.setCallbacks({onScrollCapture:h,onWheelCapture:h,onTouchMoveCapture:g}),document.addEventListener("wheel",u,ew),document.addEventListener("touchmove",u,ew),document.addEventListener("touchstart",d,ew),function(){eL=eL.filter(function(e){return e!==s}),document.removeEventListener("wheel",u,ew),document.removeEventListener("touchmove",u,ew),document.removeEventListener("touchstart",d,ew)}},[]);var m=e.removeScrollBar,f=e.inert;return o.createElement(o.Fragment,null,f?o.createElement(s,{styles:"\n .block-interactivity-".concat(r," {pointer-events: none;}\n .allow-interactivity-").concat(r," {pointer-events: all;}\n")}):null,m?o.createElement(ep.jp,{gapMode:e.gapMode}):null)}),eD=o.forwardRef(function(e,t){return o.createElement(em,(0,eu.pi)({},e,{ref:t,sideCar:eM}))});eD.classNames=em.classNames;var ez=[" ","Enter","ArrowUp","ArrowDown"],eA=[" ","Enter"],ek="Select",[eN,eB,ej]=function(e){let t=e+"CollectionProvider",[i,n]=(0,u.b)(t),[r,s]=i(t,{collectionRef:{current:null},itemMap:new Map}),l=e=>{let{scope:t,children:i}=e,n=o.useRef(null),s=o.useRef(new Map).current;return(0,d.jsx)(r,{scope:t,itemMap:s,collectionRef:n,children:i})};l.displayName=t;let a=e+"CollectionSlot",g=o.forwardRef((e,t)=>{let{scope:i,children:n}=e,r=s(a,i),o=(0,c.e)(t,r.collectionRef);return(0,d.jsx)(h,{ref:o,children:n})});g.displayName=a;let m=e+"CollectionItemSlot",f="data-radix-collection-item",p=o.forwardRef((e,t)=>{let{scope:i,children:n,...r}=e,l=o.useRef(null),a=(0,c.e)(t,l),u=s(m,i);return o.useEffect(()=>(u.itemMap.set(l,{ref:l,...r}),()=>void u.itemMap.delete(l))),(0,d.jsx)(h,{[f]:"",ref:a,children:n})});return p.displayName=m,[{Provider:l,Slot:g,ItemSlot:p},function(t){let i=s(e+"CollectionConsumer",t);return o.useCallback(()=>{let e=i.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll(`[${f}]`));return Array.from(i.itemMap.values()).sort((e,i)=>t.indexOf(e.ref.current)-t.indexOf(i.ref.current))},[i.collectionRef,i.itemMap])},n]}(ek),[eF,e$]=(0,u.b)(ek,[ej,G]),e_=G(),[eW,eG]=eF(ek),[eH,eX]=eF(ek),eV=e=>{let{__scopeSelect:t,children:i,open:n,defaultOpen:r,onOpenChange:s,value:l,defaultValue:a,onValueChange:u,dir:c,name:h,autoComplete:g,disabled:m,required:f,form:v}=e,y=e_(t),[b,w]=o.useState(null),[C,x]=o.useState(null),[S,I]=o.useState(!1),T=(0,p.gm)(c),[E=!1,R]=(0,eo.T)({prop:n,defaultProp:r,onChange:s}),[O,P]=(0,eo.T)({prop:l,defaultProp:a,onChange:u}),L=o.useRef(null),M=!b||v||!!b.closest("form"),[D,z]=o.useState(new Set),A=Array.from(D).map(e=>e.props.value).join(";");return(0,d.jsx)(V,{...y,children:(0,d.jsxs)(eW,{required:f,scope:t,trigger:b,onTriggerChange:w,valueNode:C,onValueNodeChange:x,valueNodeHasChildren:S,onValueNodeHasChildrenChange:I,contentId:(0,k.M)(),value:O,onValueChange:P,open:E,onOpenChange:R,dir:T,triggerPointerDownPosRef:L,disabled:m,children:[(0,d.jsx)(eN.Provider,{scope:t,children:(0,d.jsx)(eH,{scope:e.__scopeSelect,onNativeOptionAdd:o.useCallback(e=>{z(t=>new Set(t).add(e))},[]),onNativeOptionRemove:o.useCallback(e=>{z(t=>{let i=new Set(t);return i.delete(e),i})},[]),children:i})}),M?(0,d.jsxs)(tp,{"aria-hidden":!0,required:f,tabIndex:-1,name:h,autoComplete:g,value:O,onChange:e=>P(e.target.value),disabled:m,form:v,children:[void 0===O?(0,d.jsx)("option",{value:""}):null,Array.from(D)]},A):null]})})};eV.displayName=ek;var eY="SelectTrigger",eU=o.forwardRef((e,t)=>
50{let{__scopeSelect:i,disabled:n=!1,...r}=e,s=e_(i),l=eG(eY,i),u=l.disabled||n,h=(0,c.e)(t,l.onTriggerChange),g=eB(i),m=o.useRef("touch"),[f,p,y]=tv(e=>{let t=g().filter(e=>!e.disabled),i=t.find(e=>e.value===l.value),n=ty(t,e,i);void 0!==n&&l.onValueChange(n.value)}),b=e=>{u||(l.onOpenChange(!0),y()),e&&(l.triggerPointerDownPosRef.current={x:Math.round(e.pageX),y:Math.round(e.pageY)})};return(0,d.jsx)(U,{asChild:!0,...s,children:(0,d.jsx)(v.button,{type:"button",role:"combobox","aria-controls":l.contentId,"aria-expanded":l.open,"aria-required":l.required,"aria-autocomplete":"none",dir:l.dir,"data-state":l.open?"open":"closed",disabled:u,"data-disabled":u?"":void 0,"data-placeholder":tf(l.value)?"":void 0,...r,ref:h,onClick:(0,a.M)(r.onClick,e=>{e.currentTarget.focus(),"mouse"!==m.current&&b(e)}),onPointerDown:(0,a.M)(r.onPointerDown,e=>{m.current=e.pointerType;let t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),0===e.button&&!1===e.ctrlKey&&"mouse"===e.pointerType&&(b(e),e.preventDefault())}),onKeyDown:(0,a.M)(r.onKeyDown,e=>{let t=""!==f.current;e.ctrlKey||e.altKey||e.metaKey||1!==e.key.length||p(e.key),(!t||" "!==e.key)&&ez.includes(e.key)&&(b(),e.preventDefault())})})})});eU.displayName=eY;var eZ="SelectValue",eQ=o.forwardRef((e,t)=>{let{__scopeSelect:i,className:n,style:r,children:o,placeholder:s="",...l}=e,a=eG(eZ,i),{onValueNodeHasChildrenChange:u}=a,h=void 0!==o,g=(0,c.e)(t,a.onValueNodeChange);return(0,F.b)(()=>{u(h)},[u,h]),(0,d.jsx)(v.span,{...l,ref:g,style:{pointerEvents:"none"},children:tf(a.value)?(0,d.jsx)(d.Fragment,{children:s}):o})});eQ.displayName=eZ;var eK=o.forwardRef((e,t)=>{let{__scopeSelect:i,children:n,...r}=e;return(0,d.jsx)(v.span,{"aria-hidden":!0,...r,ref:t,children:n||"â¼"})});eK.displayName="SelectIcon";var eq="SelectContent",eJ=o.forwardRef((e,t)=>{let i=eG(eq,e.__scopeSelect),[n,r]=o.useState();return((0,F.b)(()=>{r(new DocumentFragment)},[]),i.open)?(0,d.jsx)(e2,{...e,ref:t}):n?s.createPortal((0,d.jsx)(e0,{scope:e.__scopeSelect,children:(0,d.jsx)(eN.Slot,{scope:e.__scopeSelect,children:(0,d.jsx)("div",{children:e.children})})}),n):null});eJ.displayName=eq;var[e0,e1]=eF(eq),e2=o.forwardRef((e,t)=>{let{__scopeSelect:i,position:n="item-aligned",onCloseAutoFocus:r,onEscapeKeyDown:s,onPointerDownOutside:l,side:u,sideOffset:g,align:m,alignOffset:f,arrowPadding:p,collisionBoundary:v,collisionPadding:y,sticky:b,hideWhenDetached:w,avoidCollisions:C,...S}=e,I=eG(eq,i),[E,R]=o.useState(null),[O,L]=o.useState(null),M=(0,c.e)(t,e=>R(e)),[D,z]=o.useState(null),[A,k]=o.useState(null),N=eB(i),[B,j]=o.useState(!1),F=o.useRef(!1);o.useEffect(()=>{if(E)return(0,ea.Ry)(E)},[E]),(0,T.EW)();let $=o.useCallback(e=>{let[t,...i]=N().map(e=>e.ref.current),[n]=i.slice(-1),r=document.activeElement;for(let i of e)if(i===r||(i?.scrollIntoView({block:"nearest"}),i===t&&O&&(O.scrollTop=0),i===n&&O&&(O.scrollTop=O.scrollHeight),i?.focus(),document.activeElement!==r))return},[N,O]),_=o.useCallback(()=>$([D,E]),[$,D,E]);o.useEffect(()=>{B&&_()},[B,_]);let{onOpenChange:W,triggerPointerDownPosRef:G}=I;o.useEffect(()=>{if(E){let e={x:0,y:0},t=t=>{e={x:Math.abs(Math.round(t.pageX)-(G.current?.x??0)),y:Math.abs(Math.round(t.pageY)-(G.current?.y??0))}},i=i=>{e.x<=10&&e.y<=10?i.preventDefault():E.contains(i.target)||W(!1),document.removeEventListener("pointermove",t),G.current=null};return null!==G.current&&(document.addEventListener("pointermove",t),document.addEventListener("pointerup",i,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",t),document.removeEventListener("pointerup",i,{capture:!0})}}},[E,W,G]),o.useEffect(()=>{let e=()=>W(!1);return window.addEventListener("blur",e),window.addEventListener("resize",e),()=>{window.removeEventListener("blur",e),window.removeEventListener("resize",e)}},[W]);let[H,X]=tv(e=>{let t=N().filter(e=>!e.disabled),i=t.find(e=>e.ref.current===document.activeElement),n=ty(t,e,i);n&&setTimeout(()=>n.ref.current.focus())}),V=o.useCallback((e,t,i)=>{let n=!F.current&&!i;(void 0!==I.value&&I.value===t||n)&&(z(e),n&&(F.current=!0))},[I.value]),Y=o.useCallback(()=>E?.focus(),[E]),U=o.useCallback((e,t,i)=>{let n=!F.current&&!i;(void 0!==I.value&&I.value===t||n)&&k(e)},[I.value]),Z="popper"===n?e3:e5,Q=Z===e3?{side:u,sideOffset:g,align:m,alignOffset:f,arrowPadding:p,collisionBoundary:v,collisionPadding:y,sticky:b,hideWhenDetached:w,avoidCollisions:C}:{};return(0,d.jsx)(e0,{scope:i,content:E,viewport:O,onViewportChange:L,itemRefCallback:V,selectedItem:D,onItemLeave:Y,itemTextRefCallback:U,focusSelectedItem:_,selectedItemText:A,position:n,isPositioned:B,searchRef:H,children:(0,d.jsx)(eD,{as:h,allowPinchZoom:!0,children:(0,d.jsx)(P,{asChild:!0,trapped:I.open,onMountAutoFocus:e=>{e.preventDefault()},onUnmountAutoFocus:(0,a.M)(r,e=>{I.trigger?.focus({preventScroll:!0}),e.preventDefault()}),children:(0,d.jsx)(x,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:s,onPointerDownOutside:l,onFocusOutside:e=>e.preventDefault(),onDismiss:()=>I.onOpenChange(!1),children:(0,d.jsx)(Z,{role:"listbox",id:I.contentId,"data-state":I.open?"open":"closed",dir:I.dir,onContextMenu:e=>e.preventDefault(),...S,...Q,onPlaced:()=>j(!0),ref:M,style:{display:"flex",flexDirection:"column",outline:"none",...S.style},onKeyDown:(0,a.M)(S.onKeyDown,e=>{let t=e.ctrlKey||e.altKey||e.metaKey;
50if("Tab"===e.key&&e.preventDefault(),t||1!==e.key.length||X(e.key),["ArrowUp","ArrowDown","Home","End"].includes(e.key)){let t=N().filter(e=>!e.disabled).map(e=>e.ref.current);if(["ArrowUp","End"].includes(e.key)&&(t=t.slice().reverse()),["ArrowUp","ArrowDown"].includes(e.key)){let i=e.target,n=t.indexOf(i);t=t.slice(n+1)}setTimeout(()=>$(t)),e.preventDefault()}})})})})})})});e2.displayName="SelectContentImpl";var e5=o.forwardRef((e,t)=>{let{__scopeSelect:i,onPlaced:n,...r}=e,s=eG(eq,i),a=e1(eq,i),[u,h]=o.useState(null),[g,m]=o.useState(null),f=(0,c.e)(t,e=>m(e)),p=eB(i),y=o.useRef(!1),b=o.useRef(!0),{viewport:w,selectedItem:C,selectedItemText:x,focusSelectedItem:S}=a,I=o.useCallback(()=>{if(s.trigger&&s.valueNode&&u&&g&&w&&C&&x){let e=s.trigger.getBoundingClientRect(),t=g.getBoundingClientRect(),i=s.valueNode.getBoundingClientRect(),r=x.getBoundingClientRect();if("rtl"!==s.dir){let n=r.left-t.left,o=i.left-n,s=e.left-o,a=e.width+s,c=Math.max(a,t.width),d=l(o,[10,Math.max(10,window.innerWidth-10-c)]);u.style.minWidth=a+"px",u.style.left=d+"px"}else{let n=t.right-r.right,o=window.innerWidth-i.right-n,s=window.innerWidth-e.right-o,a=e.width+s,c=Math.max(a,t.width),d=l(o,[10,Math.max(10,window.innerWidth-10-c)]);u.style.minWidth=a+"px",u.style.right=d+"px"}let o=p(),a=window.innerHeight-20,c=w.scrollHeight,d=window.getComputedStyle(g),h=parseInt(d.borderTopWidth,10),m=parseInt(d.paddingTop,10),f=parseInt(d.borderBottomWidth,10),v=h+m+c+parseInt(d.paddingBottom,10)+f,b=Math.min(5*C.offsetHeight,v),S=window.getComputedStyle(w),I=parseInt(S.paddingTop,10),T=parseInt(S.paddingBottom,10),E=e.top+e.height/2-10,R=C.offsetHeight/2,O=h+m+(C.offsetTop+R);if(O<=E){let e=o.length>0&&C===o[o.length-1].ref.current;u.style.bottom="0px";let t=g.clientHeight-w.offsetTop-w.offsetHeight;u.style.height=O+Math.max(a-E,R+(e?T:0)+t+f)+"px"}else{let e=o.length>0&&C===o[0].ref.current;u.style.top="0px";let t=Math.max(E,h+w.offsetTop+(e?I:0)+R);u.style.height=t+(v-O)+"px",w.scrollTop=O-E+w.offsetTop}u.style.margin="10px 0",u.style.minHeight=b+"px",u.style.maxHeight=a+"px",n?.(),requestAnimationFrame(()=>y.current=!0)}},[p,s.trigger,s.valueNode,u,g,w,C,x,s.dir,n]);(0,F.b)(()=>I(),[I]);let[T,E]=o.useState();(0,F.b)(()=>{g&&E(window.getComputedStyle(g).zIndex)},[g]);let R=o.useCallback(e=>{e&&!0===b.current&&(I(),S?.(),b.current=!1)},[I,S]);return(0,d.jsx)(e8,{scope:i,contentWrapper:u,shouldExpandOnScrollRef:y,onScrollButtonChange:R,children:(0,d.jsx)("div",{ref:h,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:T},children:(0,d.jsx)(v.div,{...r,ref:f,style:{boxSizing:"border-box",maxHeight:"100%",...r.style}})})})});e5.displayName="SelectItemAlignedPosition";var e3=o.forwardRef((e,t)=>{let{__scopeSelect:i,align:n="start",collisionPadding:r=10,...o}=e,s=e_(i);return(0,d.jsx)(q,{...s,...o,ref:t,align:n,collisionPadding:r,style:{boxSizing:"border-box",...o.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});e3.displayName="SelectPopperPosition";var[e8,e6]=eF(eq,{}),e7="SelectViewport",e4=o.forwardRef((e,t)=>{let{__scopeSelect:i,nonce:n,...r}=e,s=e1(e7,i),l=e6(e7,i),u=(0,c.e)(t,s.onViewportChange),h=o.useRef(0);return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:n}),(0,d.jsx)(eN.Slot,{scope:i,children:(0,d.jsx)(v.div,{"data-radix-select-viewport":"",role:"presentation",...r,ref:u,style:{position:"relative",flex:1,overflow:"hidden auto",...r.style},onScroll:(0,a.M)(r.onScroll,e=>{let t=e.currentTarget,{contentWrapper:i,shouldExpandOnScrollRef:n}=l;if(n?.current&&i){let e=Math.abs(h.current-t.scrollTop);if(e>0){let n=window.innerHeight-20,r=Math.max(parseFloat(i.style.minHeight),parseFloat(i.style.height));if(r<n){let o=r+e,s=Math.min(n,o),l=o-s;i.style.height=s+"px","0px"===i.style.bottom&&(t.scrollTop=l>0?l:0,i.style.justifyContent="flex-end")}}}h.current=t.scrollTop})})})]})});e4.displayName=e7;var e9="SelectGroup",[te,tt]=eF(e9),ti=o.forwardRef((e,t)=>
50{let{__scopeSelect:i,...n}=e,r=(0,k.M)();return(0,d.jsx)(te,{scope:i,id:r,children:(0,d.jsx)(v.div,{role:"group","aria-labelledby":r,...n,ref:t})})});ti.displayName=e9;var tn="SelectLabel";o.forwardRef((e,t)=>{let{__scopeSelect:i,...n}=e,r=tt(tn,i);return(0,d.jsx)(v.div,{id:r.id,...n,ref:t})}).displayName=tn;var tr="SelectItem",[to,ts]=eF(tr),tl=o.forwardRef((e,t)=>{let{__scopeSelect:i,value:n,disabled:r=!1,textValue:s,...l}=e,u=eG(tr,i),h=e1(tr,i),g=u.value===n,[m,f]=o.useState(s??""),[p,y]=o.useState(!1),b=(0,c.e)(t,e=>h.itemRefCallback?.(e,n,r)),w=(0,k.M)(),C=o.useRef("touch"),x=()=>{r||(u.onValueChange(n),u.onOpenChange(!1))};if(""===n)throw Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return(0,d.jsx)(to,{scope:i,value:n,disabled:r,textId:w,isSelected:g,onItemTextChange:o.useCallback(e=>{f(t=>t||(e?.textContent??"").trim())},[]),children:(0,d.jsx)(eN.ItemSlot,{scope:i,value:n,disabled:r,textValue:m,children:(0,d.jsx)(v.div,{role:"option","aria-labelledby":w,"data-highlighted":p?"":void 0,"aria-selected":g&&p,"data-state":g?"checked":"unchecked","aria-disabled":r||void 0,"data-disabled":r?"":void 0,tabIndex:r?void 0:-1,...l,ref:b,onFocus:(0,a.M)(l.onFocus,()=>y(!0)),onBlur:(0,a.M)(l.onBlur,()=>y(!1)),onClick:(0,a.M)(l.onClick,()=>{"mouse"!==C.current&&x()}),onPointerUp:(0,a.M)(l.onPointerUp,()=>{"mouse"===C.current&&x()}),onPointerDown:(0,a.M)(l.onPointerDown,e=>{C.current=e.pointerType}),onPointerMove:(0,a.M)(l.onPointerMove,e=>{C.current=e.pointerType,r?h.onItemLeave?.():"mouse"===C.current&&e.currentTarget.focus({preventScroll:!0})}),onPointerLeave:(0,a.M)(l.onPointerLeave,e=>{e.currentTarget===document.activeElement&&h.onItemLeave?.()}),onKeyDown:(0,a.M)(l.onKeyDown,e=>{h.searchRef?.current!==""&&" "===e.key||(eA.includes(e.key)&&x()," "===e.key&&e.preventDefault())})})})})});tl.displayName=tr;var ta="SelectItemText",tu=o.forwardRef((e,t)=>{let{__scopeSelect:i,className:n,style:r,...l}=e,a=eG(ta,i),u=e1(ta,i),h=ts(ta,i),g=eX(ta,i),[m,f]=o.useState(null),p=(0,c.e)(t,e=>f(e),h.onItemTextChange,e=>u.itemTextRefCallback?.(e,h.value,h.disabled)),y=m?.textContent,b=o.useMemo(()=>(0,d.jsx)("option",{value:h.value,disabled:h.disabled,children:y},h.value),[h.disabled,h.value,y]),{onNativeOptionAdd:w,onNativeOptionRemove:C}=g;return(0,F.b)(()=>(w(b),()=>C(b)),[w,C,b]),(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(v.span,{id:h.textId,...l,ref:p}),h.isSelected&&a.valueNode&&!a.valueNodeHasChildren?s.createPortal(l.children,a.valueNode):null]})});tu.displayName=ta;var tc="SelectItemIndicator";o.forwardRef((e,t)=>{let{__scopeSelect:i,...n}=e;return ts(tc,i).isSelected?(0,d.jsx)(v.span,{"aria-hidden":!0,...n,ref:t}):null}).displayName=tc;var td="SelectScrollUpButton";o.forwardRef((e,t)=>{let i=e1(td,e.__scopeSelect),n=e6(td,e.__scopeSelect),[r,s]=o.useState(!1),l=(0,c.e)(t,n.onScrollButtonChange);return(0,F.b)(()=>{if(i.viewport&&i.isPositioned){let e=function(){s(t.scrollTop>0)},t=i.viewport;return e(),t.addEventListener("scroll",e),()=>t.removeEventListener("scroll",e)}},[i.viewport,i.isPositioned]),r?(0,d.jsx)(tg,{...e,ref:l,onAutoScroll:()=>{let{viewport:e,selectedItem:t}=i;e&&t&&(e.scrollTop=e.scrollTop-t.offsetHeight)}}):null}).displayName=td;var th="SelectScrollDownButton";o.forwardRef((e,t)=>{let i=e1(th,e.__scopeSelect),n=e6(th,e.__scopeSelect),[r,s]=o.useState(!1),l=(0,c.e)(t,n.onScrollButtonChange);return(0,F.b)(()=>{if(i.viewport&&i.isPositioned){let e=function(){let e=t.scrollHeight-t.clientHeight;s(Math.ceil(t.scrollTop)<e)},t=i.viewport;return e(),t.addEventListener("scroll",e),()=>t.removeEventListener("scroll",e)}},[i.viewport,i.isPositioned]),r?(0,d.jsx)(tg,{...e,ref:l,onAutoScroll:()=>{let{viewport:e,selectedItem:t}=i;e&&t&&(e.scrollTop=e.scrollTop+t.offsetHeight)}}):null}).displayName=th;var tg=o.forwardRef((e,t)=>{let{__scopeSelect:i,onAutoScroll:n,...r}=e,s=e1("SelectScrollButton",i),l=o.useRef(null),u=eB(i),c=o.useCallback(()=>{null!==l.current&&(window.clearInterval(l.current),l.current=null)},[]);return o.useEffect(()=>()=>c(),[c]),(0,F.b)(()=>{let e=u().find(e=>e.ref.current===document.activeElement);e?.ref.current?.scrollIntoView({block:"nearest"})},[u]),(0,d.jsx)(v.div,{"aria-hidden":!0,...r,ref:t,style:{flexShrink:0,...r.style},onPointerDown:(0,a.M)(r.onPointerDown,()=>{null===l.current&&(l.current=window.setInterval(n,50))}),onPointerMove:(0,a.M)(r.onPointerMove,()=>{s.onItemLeave?.(),null===l.current&&(l.current=window.setInterval(n,50))}),onPointerLeave:(0,a.M)(r.onPointerLeave,()=>{c()})})});o.forwardRef((e,t)=>
50{let{__scopeSelect:i,...n}=e;return(0,d.jsx)(v.div,{"aria-hidden":!0,...n,ref:t})}).displayName="SelectSeparator";var tm="SelectArrow";function tf(e){return""===e||void 0===e}o.forwardRef((e,t)=>{let{__scopeSelect:i,...n}=e,r=e_(i),o=eG(tm,i),s=e1(tm,i);return o.open&&"popper"===s.position?(0,d.jsx)(et,{...r,...n,ref:t}):null}).displayName=tm;var tp=o.forwardRef((e,t)=>{let{value:i,...n}=e,r=o.useRef(null),s=(0,c.e)(t,r),l=(0,es.D)(i);return o.useEffect(()=>{let e=r.current,t=Object.getOwnPropertyDescriptor(window.HTMLSelectElement.prototype,"value").set;if(l!==i&&t){let n=new Event("change",{bubbles:!0});t.call(e,i),e.dispatchEvent(n)}},[l,i]),(0,d.jsx)(el,{asChild:!0,children:(0,d.jsx)("select",{...n,ref:s,defaultValue:i})})});function tv(e){let t=(0,y.W)(e),i=o.useRef(""),n=o.useRef(0),r=o.useCallback(e=>{let r=i.current+e;t(r),function e(t){i.current=t,window.clearTimeout(n.current),""!==t&&(n.current=window.setTimeout(()=>e(""),1e3))}(r)},[t]),s=o.useCallback(()=>{i.current="",window.clearTimeout(n.current)},[]);return o.useEffect(()=>()=>window.clearTimeout(n.current),[]),[i,r,s]}function ty(e,t,i){var n;let r=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,o=(n=Math.max(i?e.indexOf(i):-1,0),e.map((t,i)=>e[(n+i)%e.length]));1===r.length&&(o=o.filter(e=>e!==i));let s=o.find(e=>e.textValue.toLowerCase().startsWith(r.toLowerCase()));return s!==i?s:void 0}tp.displayName="BubbleSelect";var tb=eV,tw=eU,tC=eQ,tx=eK,tS=eJ,tI=e4,tT=ti,tE=tl,tR=tu},1749:function(e,t,i){i.d(t,{VY:function(){return eg},aV:function(){return ed},fC:function(){return ec},xz:function(){return eh}});var n=i(7294),r=i.t(n,2);function o(e,t,{checkForDefaultPrevented:i=!0}={}){return function(n){if(e?.(n),!1===i||!n.defaultPrevented)return t?.(n)}}var s=i(5893);function l(e,t,{checkForDefaultPrevented:i=!0}={}){return function(n){if(e?.(n),!1===i||!n.defaultPrevented)return t?.(n)}}function a(e,t=[]){let i=[],r=()=>{let t=i.map(e=>n.createContext(e));return function(i){let r=i?.[e]||t;return n.useMemo(()=>({[`__scope${e}`]:{...i,[e]:r}}),[i,r])}};return r.scopeName=e,[function(t,r){let o=n.createContext(r),l=i.length;i=[...i,r];let a=t=>{let{scope:i,children:r,...a}=t,u=i?.[e]?.[l]||o,c=n.useMemo(()=>a,Object.values(a));return(0,s.jsx)(u.Provider,{value:c,children:r})};return a.displayName=t+"Provider",[a,function(i,s){let a=s?.[e]?.[l]||o,u=n.useContext(a);if(u)return u;if(void 0!==r)return r;throw Error(`\`${i}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let i=()=>{let i=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let r=i.reduce((t,{useScope:i,scopeName:n})=>{let r=i(e)[`__scope${n}`];return{...t,...r}},{});return n.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])}};return i.scopeName=t.scopeName,i}(r,...t)]}function u(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function c(...e){return t=>{let i=!1,n=e.map(e=>{let n=u(e,t);return i||"function"!=typeof n||(i=!0),n});if(i)return()=>{for(let t=0;t<n.length;t++){let i=n[t];"function"==typeof i?i():u(e[t],null)}}}}function d(...e){return n.useCallback(c(...e),e)}function h(e){let t=function(e){let t=n.forwardRef((e,t)=>{let{children:i,...r}=e;if(n.isValidElement(i)){let e,o;let s=(e=Object.getOwnPropertyDescriptor(i.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning?i.ref:(e=Object.getOwnPropertyDescriptor(i,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning?i.props.ref:i.props.ref||i.ref,l=function(e,t){let i={...t};for(let n in t){let r=e[n],o=t[n];/^on[A-Z]/.test(n)?r&&o?i[n]=(...e)=>{let t=o(...e);return r(...e),t}:r&&(i[n]=r):"style"===n?i[n]={...r,...o}:"className"===n&&(i[n]=[r,o].filter(Boolean).join(" "))}return{...e,...i}}(r,i.props);return i.type!==n.Fragment&&(l.ref=t?c(t,s):s),n.cloneElement(i,l)}return n.Children.count(i)>1?n.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}(e),i=n.forwardRef((e,i)=>{let{children:r,...o}=e,l=n.Children.toArray(r),a=l.find(m);if(a){let e=a.props.children,r=l.map(t=>t!==a?t:n.Children.count(e)>1?n.Children.only(null):n.isValidElement(e)?e.props.children:null);return(0,s.jsx)(t,{...o,ref:i,children:n.isValidElement(e)?n.cloneElement(e,void 0,r):null})}return(0,s.jsx)(t,{...o,ref:i,children:r})});return i.displayName=`${e}.Slot`,i}var g=Symbol("radix.slottable");function m(e){return n.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===g}var f=globalThis?.document?n.useLayoutEffect:()=>{},p=r[" useId ".trim().toString()]||(()=>void 0),v=0;i(3935);var y=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>
50{let i=h(`Primitive.${t}`),r=n.forwardRef((e,n)=>{let{asChild:r,...o}=e,l=r?i:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,s.jsx)(l,{...o,ref:n})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),b=r[" useInsertionEffect ".trim().toString()]||f;Symbol("RADIX:SYNC_STATE");var w=n.createContext(void 0),C="rovingFocusGroup.onEntryFocus",x={bubbles:!1,cancelable:!0},S="RovingFocusGroup",[I,T,E]=function(e){let t=e+"CollectionProvider",[i,r]=a(t),[o,l]=i(t,{collectionRef:{current:null},itemMap:new Map}),u=e=>{let{scope:t,children:i}=e,r=n.useRef(null),l=n.useRef(new Map).current;return(0,s.jsx)(o,{scope:t,itemMap:l,collectionRef:r,children:i})};u.displayName=t;let c=e+"CollectionSlot",g=h(c),m=n.forwardRef((e,t)=>{let{scope:i,children:n}=e,r=d(t,l(c,i).collectionRef);return(0,s.jsx)(g,{ref:r,children:n})});m.displayName=c;let f=e+"CollectionItemSlot",p="data-radix-collection-item",v=h(f),y=n.forwardRef((e,t)=>{let{scope:i,children:r,...o}=e,a=n.useRef(null),u=d(t,a),c=l(f,i);return n.useEffect(()=>(c.itemMap.set(a,{ref:a,...o}),()=>void c.itemMap.delete(a))),(0,s.jsx)(v,{[p]:"",ref:u,children:r})});return y.displayName=f,[{Provider:u,Slot:m,ItemSlot:y},function(t){let i=l(e+"CollectionConsumer",t);return n.useCallback(()=>{let e=i.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll(`[${p}]`));return Array.from(i.itemMap.values()).sort((e,i)=>t.indexOf(e.ref.current)-t.indexOf(i.ref.current))},[i.collectionRef,i.itemMap])},r]}(S),[R,O]=a(S,[E]),[P,L]=R(S),M=n.forwardRef((e,t)=>(0,s.jsx)(I.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,s.jsx)(I.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,s.jsx)(D,{...e,ref:t})})}));M.displayName=S;var D=n.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:i,orientation:r,loop:o=!1,dir:a,currentTabStopId:u,defaultCurrentTabStopId:c,onCurrentTabStopIdChange:h,onEntryFocus:g,preventScrollOnEntryFocus:m=!1,...f}=e,p=n.useRef(null),v=d(t,p),I=function(e){let t=n.useContext(w);return e||t||"ltr"}(a),[E,R]=function({prop:e,defaultProp:t,onChange:i=()=>{},caller:r}){let[o,s,l]=function({defaultProp:e,onChange:t}){let[i,r]=n.useState(e),o=n.useRef(i),s=n.useRef(t);return b(()=>{s.current=t},[t]),n.useEffect(()=>{o.current!==i&&(s.current?.(i),o.current=i)},[i,o]),[i,r,s]}({defaultProp:t,onChange:i}),a=void 0!==e,u=a?e:o;{let t=n.useRef(void 0!==e);n.useEffect(()=>{let e=t.current;if(e!==a){let t=a?"controlled":"uncontrolled";console.warn(`${r} is changing from ${e?"controlled":"uncontrolled"} to ${t}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`)}t.current=a},[a,r])}return[u,n.useCallback(t=>{if(a){let i="function"==typeof t?t(e):t;i!==e&&l.current?.(i)}else s(t)},[a,e,s,l])]}({prop:u,defaultProp:c??null,onChange:h,caller:S}),[O,L]=n.useState(!1),M=function(e){let t=n.useRef(e);return n.useEffect(()=>{t.current=e}),n.useMemo(()=>(...e)=>t.current?.(...e),[])}(g),D=T(i),z=n.useRef(!1),[A,k]=n.useState(0);return n.useEffect(()=>{let e=p.current;if(e)return e.addEventListener(C,M),()=>e.removeEventListener(C,M)},[M]),(0,s.jsx)(P,{scope:i,orientation:r,dir:I,loop:o,currentTabStopId:E,onItemFocus:n.useCallback(e=>R(e),[R]),onItemShiftTab:n.useCallback(()=>L(!0),[]),onFocusableItemAdd:n.useCallback(()=>k(e=>e+1),[]),onFocusableItemRemove:n.useCallback(()=>k(e=>e-1),[]),children:(0,s.jsx)(y.div,{tabIndex:O||0===A?-1:0,"data-orientation":r,...f,ref:v,style:{outline:"none",...e.style},onMouseDown:l(e.onMouseDown,()=>{z.current=!0}),onFocus:l(e.onFocus,e=>{let t=!z.current;if(e.target===e.currentTarget&&t&&!O){let t=new CustomEvent(C,x);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=D().filter(e=>e.focusable);N([e.find(e=>e.active),e.find(e=>e.id===E),...e].filter(Boolean).map(e=>e.ref.current),m)}}z.current=!1}),onBlur:l(e.onBlur,()=>L(!1))})})}),z="RovingFocusGroupItem",A=n.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:i,focusable:r=!0,active:o=!1,tabStopId:a,children:u,...c}=e,d=function(e){let[t,i]=n.useState(p());return f(()=>{i(e=>e??String(v++))},[void 0]),t?`radix-${t}`:""}(),h=a||d,g=L(z,i),m=g.currentTabStopId===h,b=T(i),{onFocusableItemAdd:w,onFocusableItemRemove:C,currentTabStopId:x}=g;return n.useEffect(()=>{if(r)return w(),()=>C()},[r,w,C]),(0,s.jsx)(I.ItemSlot,{scope:i,id:h,focusable:r,active:o,children:(0,s.jsx)(y.span,{tabIndex:m?0:-1,"data-orientation":g.orientation,...c,ref:t,onMouseDown:l(e.onMouseDown,e=>{r?g.onItemFocus(h):e.preventDefault()}),onFocus:l(e.onFocus,()=>g.onItemFocus(h)),onKeyDown:l(e.onKeyDown,e=>{if("Tab"===e.key&&e.shiftKey){g.onItemShiftTab();return}if(e.target!==e.currentTarget)return;let t=function(e,t,i){var n;
50let r=(n=e.key,"rtl"!==i?n:"ArrowLeft"===n?"ArrowRight":"ArrowRight"===n?"ArrowLeft":n);if(!("vertical"===t&&["ArrowLeft","ArrowRight"].includes(r))&&!("horizontal"===t&&["ArrowUp","ArrowDown"].includes(r)))return k[r]}(e,g.orientation,g.dir);if(void 0!==t){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let r=b().filter(e=>e.focusable).map(e=>e.ref.current);if("last"===t)r.reverse();else if("prev"===t||"next"===t){var i,n;"prev"===t&&r.reverse();let o=r.indexOf(e.currentTarget);r=g.loop?(i=r,n=o+1,i.map((e,t)=>i[(n+t)%i.length])):r.slice(o+1)}setTimeout(()=>N(r))}}),children:"function"==typeof u?u({isCurrentTabStop:m,hasTabStop:null!=x}):u})})});A.displayName=z;var k={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function N(e,t=!1){let i=document.activeElement;for(let n of e)if(n===i||(n.focus({preventScroll:t}),document.activeElement!==i))return}function B(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function j(...e){return t=>{let i=!1,n=e.map(e=>{let n=B(e,t);return i||"function"!=typeof n||(i=!0),n});if(i)return()=>{for(let t=0;t<n.length;t++){let i=n[t];"function"==typeof i?i():B(e[t],null)}}}}var F=globalThis?.document?n.useLayoutEffect:()=>{},$=e=>{let t,i;let{present:r,children:o}=e,s=function(e){var t,i;let[r,o]=n.useState(),s=n.useRef(null),l=n.useRef(e),a=n.useRef("none"),[u,c]=(t=e?"mounted":"unmounted",i={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},n.useReducer((e,t)=>i[e][t]??e,t));return n.useEffect(()=>{let e=_(s.current);a.current="mounted"===u?e:"none"},[u]),F(()=>{let t=s.current,i=l.current;if(i!==e){let n=a.current,r=_(t);e?c("MOUNT"):"none"===r||t?.display==="none"?c("UNMOUNT"):i&&n!==r?c("ANIMATION_OUT"):c("UNMOUNT"),l.current=e}},[e,c]),F(()=>{if(r){let e;let t=r.ownerDocument.defaultView??window,i=i=>{let n=_(s.current).includes(i.animationName);if(i.target===r&&n&&(c("ANIMATION_END"),!l.current)){let i=r.style.animationFillMode;r.style.animationFillMode="forwards",e=t.setTimeout(()=>{"forwards"===r.style.animationFillMode&&(r.style.animationFillMode=i)})}},n=e=>{e.target===r&&(a.current=_(s.current))};return r.addEventListener("animationstart",n),r.addEventListener("animationcancel",i),r.addEventListener("animationend",i),()=>{t.clearTimeout(e),r.removeEventListener("animationstart",n),r.removeEventListener("animationcancel",i),r.removeEventListener("animationend",i)}}c("ANIMATION_END")},[r,c]),{isPresent:["mounted","unmountSuspended"].includes(u),ref:n.useCallback(e=>{s.current=e?getComputedStyle(e):null,o(e)},[])}}(r),l="function"==typeof o?o({present:s.isPresent}):n.Children.only(o),a=function(...e){return n.useCallback(j(...e),e)}(s.ref,(t=Object.getOwnPropertyDescriptor(l.props,"ref")?.get)&&"isReactWarning"in t&&t.isReactWarning?l.ref:(t=Object.getOwnPropertyDescriptor(l,"ref")?.get)&&"isReactWarning"in t&&t.isReactWarning?l.props.ref:l.props.ref||l.ref);return"function"==typeof o||s.isPresent?n.cloneElement(l,{ref:a}):null};function _(e){return e?.animationName||"none"}$.displayName="Presence";var W=Symbol("radix.slottable");function G(e){return n.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===W}var H=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{let i=function(e){let t=function(e){let t=n.forwardRef((e,t)=>{let{children:i,...r}=e;if(n.isValidElement(i)){let e,o;let s=(e=Object.getOwnPropertyDescriptor(i.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning?i.ref:(e=Object.getOwnPropertyDescriptor(i,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning?i.props.ref:i.props.ref||i.ref,l=function(e,t){let i={...t};for(let n in t){let r=e[n],o=t[n];/^on[A-Z]/.test(n)?r&&o?i[n]=(...e)=>{let t=o(...e);return r(...e),t}:r&&(i[n]=r):"style"===n?i[n]={...r,...o}:"className"===n&&(i[n]=[r,o].filter(Boolean).join(" "))}return{...e,...i}}(r,i.props);return i.type!==n.Fragment&&(l.ref=t?j(t,s):s),n.cloneElement(i,l)}return n.Children.count(i)>1?n.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}(e),i=n.forwardRef((e,i)=>{let{children:r,...o}=e,l=n.Children.toArray(r),a=l.find(G);if(a){let e=a.props.children,r=l.map(t=>t!==a?t:n.Children.count(e)>
501?n.Children.only(null):n.isValidElement(e)?e.props.children:null);return(0,s.jsx)(t,{...o,ref:i,children:n.isValidElement(e)?n.cloneElement(e,void 0,r):null})}return(0,s.jsx)(t,{...o,ref:i,children:r})});return i.displayName=`${e}.Slot`,i}(`Primitive.${t}`),r=n.forwardRef((e,n)=>{let{asChild:r,...o}=e,l=r?i:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,s.jsx)(l,{...o,ref:n})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),X=n.createContext(void 0),V=r[" useInsertionEffect ".trim().toString()]||F;Symbol("RADIX:SYNC_STATE");var Y=r[" useId ".trim().toString()]||(()=>void 0),U=0,Z="Tabs",[Q,K]=function(e,t=[]){let i=[],r=()=>{let t=i.map(e=>n.createContext(e));return function(i){let r=i?.[e]||t;return n.useMemo(()=>({[`__scope${e}`]:{...i,[e]:r}}),[i,r])}};return r.scopeName=e,[function(t,r){let o=n.createContext(r),l=i.length;i=[...i,r];let a=t=>{let{scope:i,children:r,...a}=t,u=i?.[e]?.[l]||o,c=n.useMemo(()=>a,Object.values(a));return(0,s.jsx)(u.Provider,{value:c,children:r})};return a.displayName=t+"Provider",[a,function(i,s){let a=s?.[e]?.[l]||o,u=n.useContext(a);if(u)return u;if(void 0!==r)return r;throw Error(`\`${i}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let i=()=>{let i=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let r=i.reduce((t,{useScope:i,scopeName:n})=>{let r=i(e)[`__scope${n}`];return{...t,...r}},{});return n.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])}};return i.scopeName=t.scopeName,i}(r,...t)]}(Z,[O]),q=O(),[J,ee]=Q(Z),et=n.forwardRef((e,t)=>{let{__scopeTabs:i,value:r,onValueChange:o,defaultValue:l,orientation:a="horizontal",dir:u,activationMode:c="automatic",...d}=e,h=function(e){let t=n.useContext(X);return e||t||"ltr"}(u),[g,m]=function({prop:e,defaultProp:t,onChange:i=()=>{},caller:r}){let[o,s,l]=function({defaultProp:e,onChange:t}){let[i,r]=n.useState(e),o=n.useRef(i),s=n.useRef(t);return V(()=>{s.current=t},[t]),n.useEffect(()=>{o.current!==i&&(s.current?.(i),o.current=i)},[i,o]),[i,r,s]}({defaultProp:t,onChange:i}),a=void 0!==e,u=a?e:o;{let t=n.useRef(void 0!==e);n.useEffect(()=>{let e=t.current;if(e!==a){let t=a?"controlled":"uncontrolled";console.warn(`${r} is changing from ${e?"controlled":"uncontrolled"} to ${t}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`)}t.current=a},[a,r])}return[u,n.useCallback(t=>{if(a){let i="function"==typeof t?t(e):t;i!==e&&l.current?.(i)}else s(t)},[a,e,s,l])]}({prop:r,onChange:o,defaultProp:l??"",caller:Z});return(0,s.jsx)(J,{scope:i,baseId:function(e){let[t,i]=n.useState(Y());return F(()=>{i(e=>e??String(U++))},[void 0]),t?`radix-${t}`:""}(),value:g,onValueChange:m,orientation:a,dir:h,activationMode:c,children:(0,s.jsx)(H.div,{dir:h,"data-orientation":a,...d,ref:t})})});et.displayName=Z;var ei="TabsList",en=n.forwardRef((e,t)=>{let{__scopeTabs:i,loop:n=!0,...r}=e,o=ee(ei,i),l=q(i);return(0,s.jsx)(M,{asChild:!0,...l,orientation:o.orientation,dir:o.dir,loop:n,children:(0,s.jsx)(H.div,{role:"tablist","aria-orientation":o.orientation,...r,ref:t})})});en.displayName=ei;var er="TabsTrigger",eo=n.forwardRef((e,t)=>{let{__scopeTabs:i,value:n,disabled:r=!1,...l}=e,a=ee(er,i),u=q(i),c=ea(a.baseId,n),d=eu(a.baseId,n),h=n===a.value;return(0,s.jsx)(A,{asChild:!0,...u,focusable:!r,active:h,children:(0,s.jsx)(H.button,{type:"button",role:"tab","aria-selected":h,"aria-controls":d,"data-state":h?"active":"inactive","data-disabled":r?"":void 0,disabled:r,id:c,...l,ref:t,onMouseDown:o(e.onMouseDown,e=>{r||0!==e.button||!1!==e.ctrlKey?e.preventDefault():a.onValueChange(n)}),onKeyDown:o(e.onKeyDown,e=>{[" ","Enter"].includes(e.key)&&a.onValueChange(n)}),onFocus:o(e.onFocus,()=>{let e="manual"!==a.activationMode;h||r||!e||a.onValueChange(n)})})})});eo.displayName=er;var es="TabsContent",el=n.forwardRef((e,t)=>{let{__scopeTabs:i,value:r,forceMount:o,children:l,...a}=e,u=ee(es,i),c=ea(u.baseId,r),d=eu(u.baseId,r),h=r===u.value,g=n.useRef(h);return n.useEffect(()=>{let e=requestAnimationFrame(()=>g.current=!1);return()=>cancelAnimationFrame(e)},[]),(0,s.jsx)($,{present:o||h,children:({present:i})=>(0,s.jsx)(H.div,{"data-state":h?"active":"inactive","data-orientation":u.orientation,role:"tabpanel","aria-labelledby":c,hidden:!i,id:d,tabIndex:0,...a,ref:t,style:{...e.style,animationDuration:g.current?"0s":void 0},children:i&&l})})});function ea(e,t){return`${e}-trigger-${t}`}function eu(e,t){return`${e}-content-${t}`}el.displayName=es;var ec=et,ed=en,eh=eo,eg=el},21:function(e,t,i){let n;i.d(t,{N:function(){return M}});var r=i(6474),o=i(7037),s=i(6888),l=i(7506),a=i(3820),u=i(4139),c=class extends l.l{constructor(e,t){super(),this.options=t,this.#e=e,this.#t=null,this.#i=(0,a.O)(),this.options.experimental_prefetchInRender||this.#i.reject(Error("experimental_prefetchInRender feature flag is not enabled")),this.bindMethods(),this.setOptions(t)}#e;#n=void 0;#r=void 0;#o=void 0;#s;#l;#i;#t;#a;#u;#c;#d;#h;#g;#m=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){1===this.listeners.size&&(this.#n.addObserver(this),d(this.#n,this.options)?this.#f():this.updateResult(),this.#p())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return h(this.#n,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return h(this.#n,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#v(),this.#y(),this.#n.removeObserver(this)}setOptions(e,t){let i=this.options,n=this.#n;if(this.options=this.#e.defaultQueryOptions(e),void 0!==this.options.enabled&&"boolean"!=typeof this.options.enabled&&"function"!=typeof this.options.enabled&&"boolean"!=typeof(0,u.Nc)(this.options.enabled,this.#n))throw Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#b(),this.#n.setOptions(this.options),i._defaulted&&!(0,u.VS)(this.options,i)&&this.#e.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#n,observer:this});let r=this.hasListeners();r&&g(this.#n,n,this.options,i)&&this.#f(),this.updateResult(t),r&&(this.#n!==n||(0,u.Nc)(this.options.enabled,this.#n)!==(0,u.Nc)(i.enabled,this.#n)||(0,u.KC)(this.options.staleTime,this.#n)!==(0,u.KC)(i.staleTime,this.#n))&&this.#w();let o=this.#C();r&&(this.#n!==n||(0,u.Nc)(this.options.enabled,this.#n)!==(0,u.Nc)(i.enabled,this.#n)||o!==this.#g)&&this.#x(o)}getOptimisticResult(e){let t=this.#e.getQueryCache().build(this.#e,e),i=this.createResult(t,e);return(0,u.VS)(this.getCurrentResult(),i)||(this.#o=i,this.#l=this.options,this.#s=this.#n.state),i}getCurrentResult(){return this.#o}trackResult(e,t){let i={};return Object.keys(e).forEach(n=>{Object.defineProperty(i,n,{configurable:!1,enumerable:!0,get:()=>(this.trackProp(n),t?.(n),e[n])})}),i}trackProp(e){this.#m.add(e)}getCurrentQuery(){return this.#n}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){let t=this.#e.defaultQueryOptions(e),i=this.#e.getQueryCache().build(this.#e,t);return i.fetch().then(()=>this.createResult(i,t))}fetch(e){return this.#f({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#o))}#f(e){this.#b();let t=this.#n.fetch(this.options,e);return e?.throwOnError||(t=t.catch(u.ZT)),t}#w(){this.#v();let e=(0,u.KC)(this.options.staleTime,this.#n);if(u.sk||this.#o.isStale||!(0,u.PN)(e))return;let t=(0,u.Kp)(this.#o.dataUpdatedAt,e);this.#d=setTimeout(()=>{this.#o.isStale||this.updateResult()},t+1)}#C(){return("function"==typeof this.options.refetchInterval?this.options.refetchInterval(this.#n):this.options.refetchInterval)??!1}#x(e){this.#y(),this.#g=e,!u.sk&&!1!==(0,u.Nc)(this.options.enabled,this.#n)&&(0,u.PN)(this.#g)&&0!==this.#g&&(this.#h=setInterval(()=>
50{(this.options.refetchIntervalInBackground||r.j.isFocused())&&this.#f()},this.#g))}#p(){this.#w(),this.#x(this.#C())}#v(){this.#d&&(clearTimeout(this.#d),this.#d=void 0)}#y(){this.#h&&(clearInterval(this.#h),this.#h=void 0)}createResult(e,t){let i;let n=this.#n,r=this.options,o=this.#o,l=this.#s,c=this.#l,h=e!==n?e.state:this.#r,{state:f}=e,p={...f},v=!1;if(t._optimisticResults){let i=this.hasListeners(),o=!i&&d(e,t),l=i&&g(e,n,t,r);(o||l)&&(p={...p,...(0,s.z)(f.data,e.options)}),"isRestoring"===t._optimisticResults&&(p.fetchStatus="idle")}let{error:y,errorUpdatedAt:b,status:w}=p;if(t.select&&void 0!==p.data){if(o&&p.data===l?.data&&t.select===this.#a)i=this.#u;else try{this.#a=t.select,i=t.select(p.data),i=(0,u.oE)(o?.data,i,t),this.#u=i,this.#t=null}catch(e){this.#t=e}}else i=p.data;if(void 0!==t.placeholderData&&void 0===i&&"pending"===w){let e;if(o?.isPlaceholderData&&t.placeholderData===c?.placeholderData)e=o.data;else if(e="function"==typeof t.placeholderData?t.placeholderData(this.#c?.state.data,this.#c):t.placeholderData,t.select&&void 0!==e)try{e=t.select(e),this.#t=null}catch(e){this.#t=e}void 0!==e&&(w="success",i=(0,u.oE)(o?.data,e,t),v=!0)}this.#t&&(y=this.#t,i=this.#u,b=Date.now(),w="error");let C="fetching"===p.fetchStatus,x="pending"===w,S="error"===w,I=x&&C,T=void 0!==i,E={status:w,fetchStatus:p.fetchStatus,isPending:x,isSuccess:"success"===w,isError:S,isInitialLoading:I,isLoading:I,data:i,dataUpdatedAt:p.dataUpdatedAt,error:y,errorUpdatedAt:b,failureCount:p.fetchFailureCount,failureReason:p.fetchFailureReason,errorUpdateCount:p.errorUpdateCount,isFetched:p.dataUpdateCount>0||p.errorUpdateCount>0,isFetchedAfterMount:p.dataUpdateCount>h.dataUpdateCount||p.errorUpdateCount>h.errorUpdateCount,isFetching:C,isRefetching:C&&!x,isLoadingError:S&&!T,isPaused:"paused"===p.fetchStatus,isPlaceholderData:v,isRefetchError:S&&T,isStale:m(e,t),refetch:this.refetch,promise:this.#i};if(this.options.experimental_prefetchInRender){let t=e=>{"error"===E.status?e.reject(E.error):void 0!==E.data&&e.resolve(E.data)},i=()=>{t(this.#i=E.promise=(0,a.O)())},r=this.#i;switch(r.status){case"pending":e.queryHash===n.queryHash&&t(r);break;case"fulfilled":("error"===E.status||E.data!==r.value)&&i();break;case"rejected":("error"!==E.status||E.error!==r.reason)&&i()}}return E}updateResult(e){let t=this.#o,i=this.createResult(this.#n,this.options);if(this.#s=this.#n.state,this.#l=this.options,void 0!==this.#s.data&&(this.#c=this.#n),(0,u.VS)(i,t))return;this.#o=i;let n={};e?.listeners!==!1&&(()=>{if(!t)return!0;let{notifyOnChangeProps:e}=this.options,i="function"==typeof e?e():e;if("all"===i||!i&&!this.#m.size)return!0;let n=new Set(i??this.#m);return this.options.throwOnError&&n.add("error"),Object.keys(this.#o).some(e=>this.#o[e]!==t[e]&&n.has(e))})()&&(n.listeners=!0),this.#S({...n,...e})}#b(){let e=this.#e.getQueryCache().build(this.#e,this.options);if(e===this.#n)return;let t=this.#n;this.#n=e,this.#r=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#p()}#S(e){o.V.batch(()=>{e.listeners&&this.listeners.forEach(e=>{e(this.#o)}),this.#e.getQueryCache().notify({query:this.#n,type:"observerResultsUpdated"})})}};function d(e,t){return!1!==(0,u.Nc)(t.enabled,e)&&void 0===e.state.data&&!("error"===e.state.status&&!1===t.retryOnMount)||void 0!==e.state.data&&h(e,t,t.refetchOnMount)}function h(e,t,i){if(!1!==(0,u.Nc)(t.enabled,e)){let n="function"==typeof i?i(e):i;return"always"===n||!1!==n&&m(e,t)}return!1}function g(e,t,i,n){return(e!==t||!1===(0,u.Nc)(n.enabled,e))&&(!i.suspense||"error"!==e.state.status)&&m(e,i)}function m(e,t){return!1!==(0,u.Nc)(t.enabled,e)&&e.isStaleByTime((0,u.KC)(t.staleTime,e))}var f=i(4948),p=class extends c{constructor(e,t){super(e,t)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(e,t){super.setOptions({...e,behavior:(0,f.Gm)()},t)}getOptimisticResult(e){return e.behavior=(0,f.Gm)(),super.getOptimisticResult(e)}
50fetchNextPage(e){return this.fetch({...e,meta:{fetchMore:{direction:"forward"}}})}fetchPreviousPage(e){return this.fetch({...e,meta:{fetchMore:{direction:"backward"}}})}createResult(e,t){let{state:i}=e,n=super.createResult(e,t),{isFetching:r,isRefetching:o,isError:s,isRefetchError:l}=n,a=i.fetchMeta?.fetchMore?.direction,u=s&&"forward"===a,c=r&&"forward"===a,d=s&&"backward"===a,h=r&&"backward"===a;return{...n,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:(0,f.Qy)(t,i.data),hasPreviousPage:(0,f.ZF)(t,i.data),isFetchNextPageError:u,isFetchingNextPage:c,isFetchPreviousPageError:d,isFetchingPreviousPage:h,isRefetchError:l&&!u&&!d,isRefetching:o&&!c&&!h}}},v=i(7294),y=i(202);i(5893);var b=v.createContext((n=!1,{clearReset:()=>{n=!1},reset:()=>{n=!0},isReset:()=>n})),w=()=>v.useContext(b);function C(){}var x=(e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&!t.isReset()&&(e.retryOnMount=!1)},S=e=>{v.useEffect(()=>{e.clearReset()},[e])},I=({result:e,errorResetBoundary:t,throwOnError:i,query:n,suspense:r})=>{var o;return e.isError&&!t.isReset()&&!e.isFetching&&n&&(r&&void 0===e.data||(o=[e.error,n],"function"==typeof i?i(...o):!!i))},T=v.createContext(!1),E=()=>v.useContext(T);T.Provider;var R=e=>{let t=e.staleTime;e.suspense&&(e.staleTime="function"==typeof t?(...e)=>Math.max(t(...e),1e3):Math.max(t??1e3,1e3),"number"==typeof e.gcTime&&(e.gcTime=Math.max(e.gcTime,1e3)))},O=(e,t)=>e.isLoading&&e.isFetching&&!t,P=(e,t)=>e?.suspense&&t.isPending,L=(e,t,i)=>t.fetchOptimistic(e).catch(()=>{i.clearReset()});function M(e,t){return function(e,t,i){let n=(0,y.NL)(i),r=E(),s=w(),l=n.defaultQueryOptions(e);
50n.getDefaultOptions().queries?._experimental_beforeQuery?.(l),l._optimisticResults=r?"isRestoring":"optimistic",R(l),x(l,s),S(s);let a=!n.getQueryCache().get(l.queryHash),[c]=v.useState(()=>new t(n,l)),d=c.getOptimisticResult(l),h=!r&&!1!==e.subscribed;if(v.useSyncExternalStore(v.useCallback(e=>{let t=h?c.subscribe(o.V.batchCalls(e)):C;return c.updateResult(),t},[c,h]),()=>c.getCurrentResult(),()=>c.getCurrentResult()),v.useEffect(()=>{c.setOptions(l,{listeners:!1})},[l,c]),P(l,d))throw L(l,c,s);if(I({result:d,errorResetBoundary:s,throwOnError:l.throwOnError,query:n.getQueryCache().get(l.queryHash),suspense:l.suspense}))throw d.error;if(n.getDefaultOptions().queries?._experimental_afterQuery?.(l,d),l.experimental_prefetchInRender&&!u.sk&&O(d,r)){let e=a?L(l,c,s):n.getQueryCache().get(l.queryHash)?.promise;e?.catch(C).finally(()=>{c.updateResult()})}return l.notifyOnChangeProps?d:c.trackResult(d)}(e,p,t)}},8357:function(e,t,i){i.d(t,{YD:function(){return u}});var n=i(7294),r=Object.defineProperty,o=new Map,s=new WeakMap,l=0,a=void 0;function u({threshold:e,delay:t,trackVisibility:i,rootMargin:r,root:u,triggerOnce:c,skip:d,initialInView:h,fallbackInView:g,onChange:m}={}){var f;let[p,v]=n.useState(null),y=n.useRef(m),[b,w]=n.useState({inView:!!h,entry:void 0});y.current=m,n.useEffect(()=>{let n;if(!d&&p)return n=function(e,t,i={},n=a){if(void 0===window.IntersectionObserver&&void 0!==n){let r=e.getBoundingClientRect();return t(n,{isIntersecting:n,target:e,intersectionRatio:"number"==typeof i.threshold?i.threshold:0,time:0,boundingClientRect:r,intersectionRect:r,rootBounds:r}),()=>{}}let{id:r,observer:u,elements:c}=function(e){let t=Object.keys(e).sort().filter(t=>void 0!==e[t]).map(t=>{var i;return`${t}_${"root"===t?(i=e.root)?(s.has(i)||(l+=1,s.set(i,l.toString())),s.get(i)):"0":e[t]}`}).toString(),i=o.get(t);if(!i){let n;let r=new Map,s=new IntersectionObserver(t=>{t.forEach(t=>{var i;let o=t.isIntersecting&&n.some(e=>t.intersectionRatio>=e);e.trackVisibility&&void 0===t.isVisible&&(t.isVisible=o),null==(i=r.get(t.target))||i.forEach(e=>{e(o,t)})})},e);n=s.thresholds||(Array.isArray(e.threshold)?e.threshold:[e.threshold||0]),i={id:t,observer:s,elements:r},o.set(t,i)}return i}(i),d=c.get(e)||[];return c.has(e)||c.set(e,d),d.push(t),u.observe(e),function(){d.splice(d.indexOf(t),1),0===d.length&&(c.delete(e),u.unobserve(e)),0===c.size&&(u.disconnect(),o.delete(r))}}(p,(e,t)=>{w({inView:e,entry:t}),y.current&&y.current(e,t),t.isIntersecting&&c&&n&&(n(),n=void 0)},{root:u,rootMargin:r,threshold:e,trackVisibility:i,delay:t},g),()=>{n&&n()}},[Array.isArray(e)?e.toString():e,p,u,r,c,d,i,g,t]);let C=null==(f=b.entry)?void 0:f.target,x=n.useRef(void 0);p||!C||c||d||x.current===C||(x.current=C,w({inView:!!h,entry:void 0}));let S=[v,b.inView,b.entry];return S.ref=S[0],S.inView=S[1],S.entry=S[2],S}n.Component}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.