/*! For license information please see vendors.bundle.js.LICENSE.txt */
(self.webpackChunkveeam_cms=self.webpackChunkveeam_cms||[]).push([[96],{7115:function(t,e,n){"use strict";n.d(e,{I:function(){return h}});const i=(t,...e)=>{const n=e.length;for(let s=0;s<n;s++){const n=e[s]||{};Object.entries(n).forEach((([e,n])=>{const s=Array.isArray(n)?[]:{};var o;t[e]||Object.assign(t,{[e]:s}),"object"==typeof(o=n)&&null!==o&&o.constructor===Object&&"[object Object]"===Object.prototype.toString.call(o)?Object.assign(t[e],i(s,n)):Array.isArray(n)?Object.assign(t,{[e]:[...n]}):Object.assign(t,{[e]:n})}))}return t},s=function(t,e){return t.split(".").reduce(((t,e)=>"object"==typeof t?t[e]:void 0),e)};class o{constructor(t={}){Object.defineProperty(this,"options",{enumerable:!0,configurable:!0,writable:!0,value:t}),Object.defineProperty(this,"events",{enumerable:!0,configurable:!0,writable:!0,value:new Map}),this.setOptions(t);for(const t of Object.getOwnPropertyNames(Object.getPrototypeOf(this)))t.startsWith("on")&&"function"==typeof this[t]&&(this[t]=this[t].bind(this))}setOptions(t){this.options=t?i({},this.constructor.defaults,t):{};for(const[t,e]of Object.entries(this.option("on")||{}))this.on(t,e)}option(t,...e){let n=s(t,this.options);return n&&"function"==typeof n&&(n=n.call(this,this,...e)),n}optionFor(t,e,n,...i){let o=s(e,t);var r;"string"!=typeof(r=o)||isNaN(r)||isNaN(parseFloat(r))||(o=parseFloat(o)),"true"===o&&(o=!0),"false"===o&&(o=!1),o&&"function"==typeof o&&(o=o.call(this,this,t,...i));let a=s(e,this.options);return a&&"function"==typeof a?o=a.call(this,this,t,...i,o):void 0===o&&(o=a),void 0===o?n:o}cn(t){const e=this.options.classes;return e&&e[t]||""}localize(t,e=[]){t=String(t).replace(/\{\{(\w+).?(\w+)?\}\}/g,((t,e,n)=>{let i="";return n?i=this.option(`${e[0]+e.toLowerCase().substring(1)}.l10n.${n}`):e&&(i=this.option(`l10n.${e}`)),i||(i=t),i}));for(let n=0;n<e.length;n++)t=t.split(e[n][0]).join(e[n][1]);return t.replace(/\{\{(.*?)\}\}/g,((t,e)=>e))}on(t,e){let n=[];"string"==typeof t?n=t.split(" "):Array.isArray(t)&&(n=t),this.events||(this.events=new Map),n.forEach((t=>{let n=this.events.get(t);n||(this.events.set(t,[]),n=[]),n.includes(e)||n.push(e),this.events.set(t,n)}))}off(t,e){let n=[];"string"==typeof t?n=t.split(" "):Array.isArray(t)&&(n=t),n.forEach((t=>{const n=this.events.get(t);if(Array.isArray(n)){const t=n.indexOf(e);t>-1&&n.splice(t,1)}}))}emit(t,...e){[...this.events.get(t)||[]].forEach((t=>t(this,...e))),"*"!==t&&this.emit("*",t,...e)}}Object.defineProperty(o,"version",{enumerable:!0,configurable:!0,writable:!0,value:"5.0.36"}),Object.defineProperty(o,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:{}});class r extends o{constructor(t,e){super(e),Object.defineProperty(this,"instance",{enumerable:!0,configurable:!0,writable:!0,value:t})}attach(){}detach(){}}const a=t=>`${t||""}`.split(" ").filter((t=>!!t)),c=(t,e)=>{t&&a(e).forEach((e=>{t.classList.add(e)}))},l="play",u="pause",d="ready";class h extends r{constructor(){super(...arguments),Object.defineProperty(this,"state",{enumerable:!0,configurable:!0,writable:!0,value:d}),Object.defineProperty(this,"inHover",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"timer",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"progressBar",{enumerable:!0,configurable:!0,writable:!0,value:null})}get isActive(){return this.state!==d}onReady(t){this.option("autoStart")&&(t.isInfinite||t.page<t.pages.length-1)&&this.start()}onChange(){this.removeProgressBar(),this.pause()}onSettle(){this.resume()}onVisibilityChange(){"visible"===document.visibilityState?this.resume():this.pause()}onMouseEnter(){this.inHover=!0,this.pause()}onMouseLeave(){var t;this.inHover=!1,(null===(t=this.instance.panzoom)||void 0===t?void 0:t.isResting)&&this.resume()}onTimerEnd(){const t=this.instance;"play"===this.state&&(t.isInfinite||t.page!==t.pages.length-1?t.slideNext():t.slideTo(0))}removeProgressBar(){this.progressBar&&(this.progressBar.remove(),this.progressBar=null)}createProgressBar(){var t;if(!this.option("showProgress"))return null;this.removeProgressBar();const e=this.instance,n=(null===(t=e.pages[e.page])||void 0===t?void 0:t.slides)||[];let i=this.option("progressParentEl");if(i||(i=(1===n.length?n[0].el:null)||e.viewport),!i)return null;const s=document.createElement("div");return c(s,"f-progress"),i.prepend(s),this.progressBar=s,s.offsetHeight,s}set(){const t=this,e=t.instance;if(e.pages.length<2)return;if(t.timer)return;const n=t.option("timeout");t.state=l,c(e.container,"has-autoplay");let i=t.createProgressBar();i&&(i.style.transitionDuration=`${n}ms`,i.style.transform="scaleX(1)"),t.timer=setTimeout((()=>{t.timer=null,t.inHover||t.onTimerEnd()}),n),t.emit("set")}clear(){const t=this;t.timer&&(clearTimeout(t.timer),t.timer=null),t.removeProgressBar()}start(){const t=this;if(t.set(),t.state!==d){if(t.option("pauseOnHover")){const e=t.instance.container;e.addEventListener("mouseenter",t.onMouseEnter,!1),e.addEventListener("mouseleave",t.onMouseLeave,!1)}document.addEventListener("visibilitychange",t.onVisibilityChange,!1),t.emit("start")}}stop(){const t=this,e=t.state,n=t.instance.container;var i;t.clear(),t.state=d,n.removeEventListener("mouseenter",t.onMouseEnter,!1),n.removeEventListener("mouseleave",t.onMouseLeave,!1),document.removeEventListener("visibilitychange",t.onVisibilityChange,!1),(i=n)&&a("has-autoplay").forEach((t=>{i.classList.remove(t)})),e!==d&&t.emit("stop")}pause(){const t=this;t.state===l&&(t.state=u,t.clear(),t.emit(u))}resume(){const t=this,e=t.instance;if(e.isInfinite||e.page!==e.pages.length-1)if(t.state!==l){if(t.state===u&&!t.inHover){const e=new Event("resume",{bubbles:!0,cancelable:!0});t.emit("resume",e),e.defaultPrevented||t.set()}}else t.set();else t.stop()}toggle(){this.state===l||this.state===u?this.stop():this.start()}attach(){const t=this,e=t.instance;e.on("ready",t.onReady),e.on("Panzoom.startAnimation",t.onChange),e.on("Panzoom.endAnimation",t.onSettle),e.on("Panzoom.touchMove",t.onChange)}detach(){const t=this,e=t.instance;e.off("ready",t.onReady),e.off("Panzoom.startAnimation",t.onChange),e.off("Panzoom.endAnimation",t.onSettle),e.off("Panzoom.touchMove",t.onChange),t.stop()}}Object.defineProperty(h,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:{autoStart:!0,pauseOnHover:!0,progressParentEl:null,showProgress:!0,timeout:3e3}})},197:function(t,e,n){"use strict";n.d(e,{FN:function(){return Q},lX:function(){return Ce}});const i=(t,e=1e4)=>(t=parseFloat(t+"")||0,Math.round((t+Number.EPSILON)*e)/e),s=function(t){if(!(t&&t instanceof Element&&t.offsetParent))return!1;const e=t.scrollHeight>t.clientHeight,n=window.getComputedStyle(t).overflowY,i=-1!==n.indexOf("hidden"),s=-1!==n.indexOf("visible");return e&&!i&&!s},o=function(t,e=void 0){return!(!t||t===document.body||e&&t===e)&&(s(t)?t:o(t.parentElement,e))},r=function(t){var e=(new DOMParser).parseFromString(t,"text/html").body;if(e.childElementCount>1){for(var n=document.createElement("div");e.firstChild;)n.appendChild(e.firstChild);return n}return e.firstChild},a=t=>`${t||""}`.split(" ").filter((t=>!!t)),c=(t,e,n)=>{t&&a(e).forEach((e=>{t.classList.toggle(e,n||!1)}))};class l{constructor(t){Object.defineProperty(this,"pageX",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"pageY",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"clientX",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"clientY",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"id",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"time",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"nativePointer",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.nativePointer=t,this.pageX=t.pageX,this.pageY=t.pageY,this.clientX=t.clientX,this.clientY=t.clientY,this.id=self.Touch&&t instanceof Touch?t.identifier:-1,this.time=Date.now()}}const u={passive:!1};class d{constructor(t,{start:e=()=>!0,move:n=()=>{},end:i=()=>{}}){Object.defineProperty(this,"element",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"startCallback",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"moveCallback",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"endCallback",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"currentPointers",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"startPointers",{enumerable:!0,configurable:!0,writable:!0,value:[]}),this.element=t,this.startCallback=e,this.moveCallback=n,this.endCallback=i;for(const t of["onPointerStart","onTouchStart","onMove","onTouchEnd","onPointerEnd","onWindowBlur"])this[t]=this[t].bind(this);this.element.addEventListener("mousedown",this.onPointerStart,u),this.element.addEventListener("touchstart",this.onTouchStart,u),this.element.addEventListener("touchmove",this.onMove,u),this.element.addEventListener("touchend",this.onTouchEnd),this.element.addEventListener("touchcancel",this.onTouchEnd)}onPointerStart(t){if(!t.buttons||0!==t.button)return;const e=new l(t);this.currentPointers.some((t=>t.id===e.id))||this.triggerPointerStart(e,t)&&(window.addEventListener("mousemove",this.onMove),window.addEventListener("mouseup",this.onPointerEnd),window.addEventListener("blur",this.onWindowBlur))}onTouchStart(t){for(const e of Array.from(t.changedTouches||[]))this.triggerPointerStart(new l(e),t);window.addEventListener("blur",this.onWindowBlur)}onMove(t){const e=this.currentPointers.slice(),n="changedTouches"in t?Array.from(t.changedTouches||[]).map((t=>new l(t))):[new l(t)],i=[];for(const t of n){const e=this.currentPointers.findIndex((e=>e.id===t.id));e<0||(i.push(t),this.currentPointers[e]=t)}i.length&&this.moveCallback(t,this.currentPointers.slice(),e)}onPointerEnd(t){t.buttons>0&&0!==t.button||(this.triggerPointerEnd(t,new l(t)),window.removeEventListener("mousemove",this.onMove),window.removeEventListener("mouseup",this.onPointerEnd),window.removeEventListener("blur",this.onWindowBlur))}onTouchEnd(t){for(const e of Array.from(t.changedTouches||[]))this.triggerPointerEnd(t,new l(e))}triggerPointerStart(t,e){return!!this.startCallback(e,t,this.currentPointers.slice())&&(this.currentPointers.push(t),this.startPointers.push(t),!0)}triggerPointerEnd(t,e){const n=this.currentPointers.findIndex((t=>t.id===e.id));n<0||(this.currentPointers.splice(n,1),this.startPointers.splice(n,1),this.endCallback(t,e,this.currentPointers.slice()))}onWindowBlur(){this.clear()}clear(){for(;this.currentPointers.length;){const t=this.currentPointers[this.currentPointers.length-1];this.currentPointers.splice(this.currentPointers.length-1,1),this.startPointers.splice(this.currentPointers.length-1,1),this.endCallback(new Event("touchend",{bubbles:!0,cancelable:!0,clientX:t.clientX,clientY:t.clientY}),t,this.currentPointers.slice())}}stop(){this.element.removeEventListener("mousedown",this.onPointerStart,u),this.element.removeEventListener("touchstart",this.onTouchStart,u),this.element.removeEventListener("touchmove",this.onMove,u),this.element.removeEventListener("touchend",this.onTouchEnd),this.element.removeEventListener("touchcancel",this.onTouchEnd),window.removeEventListener("mousemove",this.onMove),window.removeEventListener("mouseup",this.onPointerEnd),window.removeEventListener("blur",this.onWindowBlur)}}function h(t,e){return e?Math.sqrt(Math.pow(e.clientX-t.clientX,2)+Math.pow(e.clientY-t.clientY,2)):0}function p(t,e){return e?{clientX:(t.clientX+e.clientX)/2,clientY:(t.clientY+e.clientY)/2}:t}const f=t=>"object"==typeof t&&null!==t&&t.constructor===Object&&"[object Object]"===Object.prototype.toString.call(t),m=(t,...e)=>{const n=e.length;for(let i=0;i<n;i++){const n=e[i]||{};Object.entries(n).forEach((([e,n])=>{const i=Array.isArray(n)?[]:{};t[e]||Object.assign(t,{[e]:i}),f(n)?Object.assign(t[e],m(i,n)):Array.isArray(n)?Object.assign(t,{[e]:[...n]}):Object.assign(t,{[e]:n})}))}return t},g=function(t,e){return t.split(".").reduce(((t,e)=>"object"==typeof t?t[e]:void 0),e)};class v{constructor(t={}){Object.defineProperty(this,"options",{enumerable:!0,configurable:!0,writable:!0,value:t}),Object.defineProperty(this,"events",{enumerable:!0,configurable:!0,writable:!0,value:new Map}),this.setOptions(t);for(const t of Object.getOwnPropertyNames(Object.getPrototypeOf(this)))t.startsWith("on")&&"function"==typeof this[t]&&(this[t]=this[t].bind(this))}setOptions(t){this.options=t?m({},this.constructor.defaults,t):{};for(const[t,e]of Object.entries(this.option("on")||{}))this.on(t,e)}option(t,...e){let n=g(t,this.options);return n&&"function"==typeof n&&(n=n.call(this,this,...e)),n}optionFor(t,e,n,...i){let s=g(e,t);var o;"string"!=typeof(o=s)||isNaN(o)||isNaN(parseFloat(o))||(s=parseFloat(s)),"true"===s&&(s=!0),"false"===s&&(s=!1),s&&"function"==typeof s&&(s=s.call(this,this,t,...i));let r=g(e,this.options);return r&&"function"==typeof r?s=r.call(this,this,t,...i,s):void 0===s&&(s=r),void 0===s?n:s}cn(t){const e=this.options.classes;return e&&e[t]||""}localize(t,e=[]){t=String(t).replace(/\{\{(\w+).?(\w+)?\}\}/g,((t,e,n)=>{let i="";return n?i=this.option(`${e[0]+e.toLowerCase().substring(1)}.l10n.${n}`):e&&(i=this.option(`l10n.${e}`)),i||(i=t),i}));for(let n=0;n<e.length;n++)t=t.split(e[n][0]).join(e[n][1]);return t.replace(/\{\{(.*?)\}\}/g,((t,e)=>e))}on(t,e){let n=[];"string"==typeof t?n=t.split(" "):Array.isArray(t)&&(n=t),this.events||(this.events=new Map),n.forEach((t=>{let n=this.events.get(t);n||(this.events.set(t,[]),n=[]),n.includes(e)||n.push(e),this.events.set(t,n)}))}off(t,e){let n=[];"string"==typeof t?n=t.split(" "):Array.isArray(t)&&(n=t),n.forEach((t=>{const n=this.events.get(t);if(Array.isArray(n)){const t=n.indexOf(e);t>-1&&n.splice(t,1)}}))}emit(t,...e){[...this.events.get(t)||[]].forEach((t=>t(this,...e))),"*"!==t&&this.emit("*",t,...e)}}Object.defineProperty(v,"version",{enumerable:!0,configurable:!0,writable:!0,value:"5.0.36"}),Object.defineProperty(v,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:{}});class b extends v{constructor(t={}){super(t),Object.defineProperty(this,"plugins",{enumerable:!0,configurable:!0,writable:!0,value:{}})}attachPlugins(t={}){const e=new Map;for(const[n,i]of Object.entries(t)){const t=this.option(n),s=this.plugins[n];s||!1===t?s&&!1===t&&(s.detach(),delete this.plugins[n]):e.set(n,new i(this,t||{}))}for(const[t,n]of e)this.plugins[t]=n,n.attach()}detachPlugins(t){t=t||Object.keys(this.plugins);for(const e of t){const t=this.plugins[e];t&&t.detach(),delete this.plugins[e]}return this.emit("detachPlugins"),this}}var y;!function(t){t[t.Init=0]="Init",t[t.Error=1]="Error",t[t.Ready=2]="Ready",t[t.Panning=3]="Panning",t[t.Mousemove=4]="Mousemove",t[t.Destroy=5]="Destroy"}(y||(y={}));const w=["a","b","c","d","e","f"],E={PANUP:"Move up",PANDOWN:"Move down",PANLEFT:"Move left",PANRIGHT:"Move right",ZOOMIN:"Zoom in",ZOOMOUT:"Zoom out",TOGGLEZOOM:"Toggle zoom level",TOGGLE1TO1:"Toggle zoom level",ITERATEZOOM:"Toggle zoom level",ROTATECCW:"Rotate counterclockwise",ROTATECW:"Rotate clockwise",FLIPX:"Flip horizontally",FLIPY:"Flip vertically",FITX:"Fit horizontally",FITY:"Fit vertically",RESET:"Reset",TOGGLEFS:"Toggle fullscreen"},S={content:null,width:"auto",height:"auto",panMode:"drag",touch:!0,dragMinThreshold:3,lockAxis:!1,mouseMoveFactor:1,mouseMoveFriction:.12,zoom:!0,pinchToZoom:!0,panOnlyZoomed:"auto",minScale:1,maxScale:2,friction:.25,dragFriction:.35,decelFriction:.05,click:"toggleZoom",dblClick:!1,wheel:"zoom",wheelLimit:7,spinner:!0,bounds:"auto",infinite:!1,rubberband:!0,bounce:!0,maxVelocity:75,transformParent:!1,classes:{content:"f-panzoom__content",isLoading:"is-loading",canZoomIn:"can-zoom_in",canZoomOut:"can-zoom_out",isDraggable:"is-draggable",isDragging:"is-dragging",inFullscreen:"in-fullscreen",htmlHasFullscreen:"with-panzoom-in-fullscreen"},l10n:E},_='<circle cx="25" cy="25" r="20"></circle>',x='<div class="f-spinner"><svg viewBox="0 0 50 50">'+_+_+"</svg></div>",T=t=>t&&null!==t&&t instanceof Element&&"nodeType"in t,C=(t,e)=>{t&&a(e).forEach((e=>{t.classList.remove(e)}))},O=(t,e)=>{t&&a(e).forEach((e=>{t.classList.add(e)}))},A={a:1,b:0,c:0,d:1,e:0,f:0},P=1e4,L="mousemove",I="drag",k="content",D="auto";let N=null,M=null;class R extends b{get fits(){return this.contentRect.width-this.contentRect.fitWidth<1&&this.contentRect.height-this.contentRect.fitHeight<1}get isTouchDevice(){return null===M&&(M=window.matchMedia("(hover: none)").matches),M}get isMobile(){return null===N&&(N=/iPhone|iPad|iPod|Android/i.test(navigator.userAgent)),N}get panMode(){return this.options.panMode!==L||this.isTouchDevice?I:L}get panOnlyZoomed(){const t=this.options.panOnlyZoomed;return t===D?this.isTouchDevice:t}get isInfinite(){return this.option("infinite")}get angle(){return 180*Math.atan2(this.current.b,this.current.a)/Math.PI||0}get targetAngle(){return 180*Math.atan2(this.target.b,this.target.a)/Math.PI||0}get scale(){const{a:t,b:e}=this.current;return Math.sqrt(t*t+e*e)||1}get targetScale(){const{a:t,b:e}=this.target;return Math.sqrt(t*t+e*e)||1}get minScale(){return this.option("minScale")||1}get fullScale(){const{contentRect:t}=this;return t.fullWidth/t.fitWidth||1}get maxScale(){return this.fullScale*(this.option("maxScale")||1)||1}get coverScale(){const{containerRect:t,contentRect:e}=this,n=Math.max(t.height/e.fitHeight,t.width/e.fitWidth)||1;return Math.min(this.fullScale,n)}get isScaling(){return Math.abs(this.targetScale-this.scale)>1e-5&&!this.isResting}get isContentLoading(){const t=this.content;return!!(t&&t instanceof HTMLImageElement)&&!t.complete}get isResting(){if(this.isBouncingX||this.isBouncingY)return!1;for(const t of w){const e="e"==t||"f"===t?1e-4:1e-5;if(Math.abs(this.target[t]-this.current[t])>e)return!1}return!(!this.ignoreBounds&&!this.checkBounds().inBounds)}constructor(t,e={},n={}){var i;if(super(e),Object.defineProperty(this,"pointerTracker",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"resizeObserver",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"updateTimer",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"clickTimer",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"rAF",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"isTicking",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"ignoreBounds",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"isBouncingX",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"isBouncingY",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"clicks",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"trackingPoints",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"pwt",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"cwd",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"pmme",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"friction",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"state",{enumerable:!0,configurable:!0,writable:!0,value:y.Init}),Object.defineProperty(this,"isDragging",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"container",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"content",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"spinner",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"containerRect",{enumerable:!0,configurable:!0,writable:!0,value:{width:0,height:0,innerWidth:0,innerHeight:0}}),Object.defineProperty(this,"contentRect",{enumerable:!0,configurable:!0,writable:!0,value:{top:0,right:0,bottom:0,left:0,fullWidth:0,fullHeight:0,fitWidth:0,fitHeight:0,width:0,height:0}}),Object.defineProperty(this,"dragStart",{enumerable:!0,configurable:!0,writable:!0,value:{x:0,y:0,top:0,left:0,time:0}}),Object.defineProperty(this,"dragOffset",{enumerable:!0,configurable:!0,writable:!0,value:{x:0,y:0,time:0}}),Object.defineProperty(this,"current",{enumerable:!0,configurable:!0,writable:!0,value:Object.assign({},A)}),Object.defineProperty(this,"target",{enumerable:!0,configurable:!0,writable:!0,value:Object.assign({},A)}),Object.defineProperty(this,"velocity",{enumerable:!0,configurable:!0,writable:!0,value:{a:0,b:0,c:0,d:0,e:0,f:0}}),Object.defineProperty(this,"lockedAxis",{enumerable:!0,configurable:!0,writable:!0,value:!1}),!t)throw new Error("Container Element Not Found");this.container=t,this.initContent(),this.attachPlugins(Object.assign(Object.assign({},R.Plugins),n)),this.emit("attachPlugins"),this.emit("init");const s=this.content;if(s.addEventListener("load",this.onLoad),s.addEventListener("error",this.onError),this.isContentLoading){if(this.option("spinner")){t.classList.add(this.cn("isLoading"));const e=r(x);!t.contains(s)||s.parentElement instanceof HTMLPictureElement?this.spinner=t.appendChild(e):this.spinner=(null===(i=s.parentElement)||void 0===i?void 0:i.insertBefore(e,s))||null}this.emit("beforeLoad")}else queueMicrotask((()=>{this.enable()}))}initContent(){const{container:t}=this,e=this.cn(k);let n=this.option(k)||t.querySelector(`.${e}`);if(n||(n=t.querySelector("img,picture")||t.firstElementChild,n&&O(n,e)),n instanceof HTMLPictureElement&&(n=n.querySelector("img")),!n)throw new Error("No content found");this.content=n}onLoad(){const{spinner:t,container:e,state:n}=this;t&&(t.remove(),this.spinner=null),this.option("spinner")&&e.classList.remove(this.cn("isLoading")),this.emit("afterLoad"),n===y.Init?this.enable():this.updateMetrics()}onError(){this.state!==y.Destroy&&(this.spinner&&(this.spinner.remove(),this.spinner=null),this.stop(),this.detachEvents(),this.state=y.Error,this.emit("error"))}getNextScale(t){const{fullScale:e,targetScale:n,coverScale:i,maxScale:s,minScale:o}=this;let r=o;switch(t){case"toggleMax":r=n-o<.5*(s-o)?s:o;break;case"toggleCover":r=n-o<.5*(i-o)?i:o;break;case"toggleZoom":r=n-o<.5*(e-o)?e:o;break;case"iterateZoom":let t=[1,e,s].sort(((t,e)=>t-e)),a=t.findIndex((t=>t>n+1e-5));r=t[a]||1}return r}attachObserver(){var t;const e=()=>{const{container:t,containerRect:e}=this;return Math.abs(e.width-t.getBoundingClientRect().width)>.1||Math.abs(e.height-t.getBoundingClientRect().height)>.1};this.resizeObserver||void 0===window.ResizeObserver||(this.resizeObserver=new ResizeObserver((()=>{this.updateTimer||(e()?(this.onResize(),this.isMobile&&(this.updateTimer=setTimeout((()=>{e()&&this.onResize(),this.updateTimer=null}),500))):this.updateTimer&&(clearTimeout(this.updateTimer),this.updateTimer=null))}))),null===(t=this.resizeObserver)||void 0===t||t.observe(this.container)}detachObserver(){var t;null===(t=this.resizeObserver)||void 0===t||t.disconnect()}attachEvents(){const{container:t}=this;t.addEventListener("click",this.onClick,{passive:!1,capture:!1}),t.addEventListener("wheel",this.onWheel,{passive:!1}),this.pointerTracker=new d(t,{start:this.onPointerDown,move:this.onPointerMove,end:this.onPointerUp}),document.addEventListener(L,this.onMouseMove)}detachEvents(){var t;const{container:e}=this;e.removeEventListener("click",this.onClick,{passive:!1,capture:!1}),e.removeEventListener("wheel",this.onWheel,{passive:!1}),null===(t=this.pointerTracker)||void 0===t||t.stop(),this.pointerTracker=null,document.removeEventListener(L,this.onMouseMove),document.removeEventListener("keydown",this.onKeydown,!0),this.clickTimer&&(clearTimeout(this.clickTimer),this.clickTimer=null),this.updateTimer&&(clearTimeout(this.updateTimer),this.updateTimer=null)}animate(){this.setTargetForce();const t=this.friction,e=this.option("maxVelocity");for(const n of w)t?(this.velocity[n]*=1-t,e&&!this.isScaling&&(this.velocity[n]=Math.max(Math.min(this.velocity[n],e),-1*e)),this.current[n]+=this.velocity[n]):this.current[n]=this.target[n];this.setTransform(),this.setEdgeForce(),!this.isResting||this.isDragging?this.rAF=requestAnimationFrame((()=>this.animate())):this.stop("current")}setTargetForce(){for(const t of w)"e"===t&&this.isBouncingX||"f"===t&&this.isBouncingY||(this.velocity[t]=(1/(1-this.friction)-1)*(this.target[t]-this.current[t]))}checkBounds(t=0,e=0){const{current:n}=this,i=n.e+t,s=n.f+e,o=this.getBounds(),{x:r,y:a}=o,c=r.min,l=r.max,u=a.min,d=a.max;let h=0,p=0;return c!==1/0&&i<c?h=c-i:l!==1/0&&i>l&&(h=l-i),u!==1/0&&s<u?p=u-s:d!==1/0&&s>d&&(p=d-s),Math.abs(h)<1e-4&&(h=0),Math.abs(p)<1e-4&&(p=0),Object.assign(Object.assign({},o),{xDiff:h,yDiff:p,inBounds:!h&&!p})}clampTargetBounds(){const{target:t}=this,{x:e,y:n}=this.getBounds();e.min!==1/0&&(t.e=Math.max(t.e,e.min)),e.max!==1/0&&(t.e=Math.min(t.e,e.max)),n.min!==1/0&&(t.f=Math.max(t.f,n.min)),n.max!==1/0&&(t.f=Math.min(t.f,n.max))}calculateContentDim(t=this.current){const{content:e,contentRect:n}=this,{fitWidth:i,fitHeight:s,fullWidth:o,fullHeight:r}=n;let a=o,c=r;if(this.option("zoom")||0!==this.angle){const n=!(e instanceof HTMLImageElement||"none"!==window.getComputedStyle(e).maxWidth&&"none"!==window.getComputedStyle(e).maxHeight),l=n?o:i,u=n?r:s,d=this.getMatrix(t),h=new DOMPoint(0,0).matrixTransform(d),p=new DOMPoint(0+l,0).matrixTransform(d),f=new DOMPoint(0+l,0+u).matrixTransform(d),m=new DOMPoint(0,0+u).matrixTransform(d),g=Math.abs(f.x-h.x),v=Math.abs(f.y-h.y),b=Math.abs(m.x-p.x),y=Math.abs(m.y-p.y);a=Math.max(g,b),c=Math.max(v,y)}return{contentWidth:a,contentHeight:c}}setEdgeForce(){if(this.ignoreBounds||this.isDragging||this.panMode===L||this.targetScale<this.scale)return this.isBouncingX=!1,void(this.isBouncingY=!1);const{target:t}=this,{x:e,y:n,xDiff:i,yDiff:s}=this.checkBounds(),o=this.option("maxVelocity");let r=this.velocity.e,a=this.velocity.f;0!==i?(this.isBouncingX=!0,i*r<=0?r+=.14*i:(r=.14*i,e.min!==1/0&&(this.target.e=Math.max(t.e,e.min)),e.max!==1/0&&(this.target.e=Math.min(t.e,e.max))),o&&(r=Math.max(Math.min(r,o),-1*o))):this.isBouncingX=!1,0!==s?(this.isBouncingY=!0,s*a<=0?a+=.14*s:(a=.14*s,n.min!==1/0&&(this.target.f=Math.max(t.f,n.min)),n.max!==1/0&&(this.target.f=Math.min(t.f,n.max))),o&&(a=Math.max(Math.min(a,o),-1*o))):this.isBouncingY=!1,this.isBouncingX&&(this.velocity.e=r),this.isBouncingY&&(this.velocity.f=a)}enable(){const{content:t}=this,e=new DOMMatrixReadOnly(window.getComputedStyle(t).transform);for(const t of w)this.current[t]=this.target[t]=e[t];this.updateMetrics(),this.attachObserver(),this.attachEvents(),this.state=y.Ready,this.emit("ready")}onClick(t){var e;"click"===t.type&&0===t.detail&&(this.dragOffset.x=0,this.dragOffset.y=0),this.isDragging&&(null===(e=this.pointerTracker)||void 0===e||e.clear(),this.trackingPoints=[],this.startDecelAnim());const n=t.target;if(!n||t.defaultPrevented)return;if(n.hasAttribute("disabled"))return t.preventDefault(),void t.stopPropagation();if((()=>{const t=window.getSelection();return t&&"Range"===t.type})()&&!n.closest("button"))return;const i=n.closest("[data-panzoom-action]"),s=n.closest("[data-panzoom-change]"),o=i||s,r=o&&T(o)?o.dataset:null;if(r){const e=r.panzoomChange,n=r.panzoomAction;if((e||n)&&t.preventDefault(),e){let n={};try{n=JSON.parse(e)}catch(t){console&&console.warn("The given data was not valid JSON")}return void this.applyChange(n)}if(n)return void(this[n]&&this[n]())}if(Math.abs(this.dragOffset.x)>3||Math.abs(this.dragOffset.y)>3)return t.preventDefault(),void t.stopPropagation();if(n.closest("[data-fancybox]"))return;const a=this.content.getBoundingClientRect(),c=this.dragStart;if(c.time&&!this.canZoomOut()&&(Math.abs(a.x-c.x)>2||Math.abs(a.y-c.y)>2))return;this.dragStart.time=0;const l=e=>{this.option("zoom",t)&&e&&"string"==typeof e&&/(iterateZoom)|(toggle(Zoom|Full|Cover|Max)|(zoomTo(Fit|Cover|Max)))/.test(e)&&"function"==typeof this[e]&&(t.preventDefault(),this[e]({event:t}))},u=this.option("click",t),d=this.option("dblClick",t);d?(this.clicks++,1==this.clicks&&(this.clickTimer=setTimeout((()=>{1===this.clicks?(this.emit("click",t),!t.defaultPrevented&&u&&l(u)):(this.emit("dblClick",t),t.defaultPrevented||l(d)),this.clicks=0,this.clickTimer=null}),350))):(this.emit("click",t),!t.defaultPrevented&&u&&l(u))}addTrackingPoint(t){const e=this.trackingPoints.filter((t=>t.time>Date.now()-100));e.push(t),this.trackingPoints=e}onPointerDown(t,e,n){var i;if(!1===this.option("touch",t))return!1;this.pwt=0,this.dragOffset={x:0,y:0,time:0},this.trackingPoints=[];const s=this.content.getBoundingClientRect();if(this.dragStart={x:s.x,y:s.y,top:s.top,left:s.left,time:Date.now()},this.clickTimer)return!1;if(this.panMode===L&&this.targetScale>1)return t.preventDefault(),t.stopPropagation(),!1;const o=t.composedPath()[0];if(!n.length){if(["TEXTAREA","OPTION","INPUT","SELECT","VIDEO","IFRAME"].includes(o.nodeName)||o.closest("[contenteditable],[data-selectable],[data-draggable],[data-clickable],[data-panzoom-change],[data-panzoom-action]"))return!1;null===(i=window.getSelection())||void 0===i||i.removeAllRanges()}if("mousedown"===t.type)["A","BUTTON"].includes(o.nodeName)||t.preventDefault();else if(Math.abs(this.velocity.a)>.3)return!1;return this.target.e=this.current.e,this.target.f=this.current.f,this.stop(),this.isDragging||(this.isDragging=!0,this.addTrackingPoint(e),this.emit("touchStart",t)),!0}onPointerMove(t,e,n){if(!1===this.option("touch",t))return;if(!this.isDragging)return;if(e.length<2&&this.panOnlyZoomed&&i(this.targetScale)<=i(this.minScale))return;if(this.emit("touchMove",t),t.defaultPrevented)return;this.addTrackingPoint(e[0]);const{content:s}=this,r=p(n[0],n[1]),a=p(e[0],e[1]);let c=0,l=0;if(e.length>1){const t=s.getBoundingClientRect();c=r.clientX-t.left-.5*t.width,l=r.clientY-t.top-.5*t.height}const u=h(n[0],n[1]),d=h(e[0],e[1]);let f=u?d/u:1,m=a.clientX-r.clientX,g=a.clientY-r.clientY;this.dragOffset.x+=m,this.dragOffset.y+=g,this.dragOffset.time=Date.now()-this.dragStart.time;let v=i(this.targetScale)===i(this.minScale)&&this.option("lockAxis");if(v&&!this.lockedAxis)if("xy"===v||"y"===v||"touchmove"===t.type){if(Math.abs(this.dragOffset.x)<6&&Math.abs(this.dragOffset.y)<6)return void t.preventDefault();const e=Math.abs(180*Math.atan2(this.dragOffset.y,this.dragOffset.x)/Math.PI);this.lockedAxis=e>45&&e<135?"y":"x",this.dragOffset.x=0,this.dragOffset.y=0,m=0,g=0}else this.lockedAxis=v;if(o(t.target,this.content)&&(v="x",this.dragOffset.y=0),v&&"xy"!==v&&this.lockedAxis!==v&&i(this.targetScale)===i(this.minScale))return;t.cancelable&&t.preventDefault(),this.container.classList.add(this.cn("isDragging"));const b=this.checkBounds(m,g);this.option("rubberband")?("x"!==this.isInfinite&&(b.xDiff>0&&m<0||b.xDiff<0&&m>0)&&(m*=Math.max(0,.5-Math.abs(.75/this.contentRect.fitWidth*b.xDiff))),"y"!==this.isInfinite&&(b.yDiff>0&&g<0||b.yDiff<0&&g>0)&&(g*=Math.max(0,.5-Math.abs(.75/this.contentRect.fitHeight*b.yDiff)))):(b.xDiff&&(m=0),b.yDiff&&(g=0));const y=this.targetScale,w=this.minScale,E=this.maxScale;y<.5*w&&(f=Math.max(f,w)),y>1.5*E&&(f=Math.min(f,E)),"y"===this.lockedAxis&&i(y)===i(w)&&(m=0),"x"===this.lockedAxis&&i(y)===i(w)&&(g=0),this.applyChange({originX:c,originY:l,panX:m,panY:g,scale:f,friction:this.option("dragFriction"),ignoreBounds:!0})}onPointerUp(t,e,n){if(n.length)return this.dragOffset.x=0,this.dragOffset.y=0,void(this.trackingPoints=[]);this.container.classList.remove(this.cn("isDragging")),this.isDragging&&(this.addTrackingPoint(e),this.panOnlyZoomed&&this.contentRect.width-this.contentRect.fitWidth<1&&this.contentRect.height-this.contentRect.fitHeight<1&&(this.trackingPoints=[]),o(t.target,this.content)&&"y"===this.lockedAxis&&(this.trackingPoints=[]),this.emit("touchEnd",t),this.isDragging=!1,this.lockedAxis=!1,this.state!==y.Destroy&&(t.defaultPrevented||this.startDecelAnim()))}startDecelAnim(){var t;const e=this.isScaling;this.rAF&&(cancelAnimationFrame(this.rAF),this.rAF=null),this.isBouncingX=!1,this.isBouncingY=!1;for(const t of w)this.velocity[t]=0;this.target.e=this.current.e,this.target.f=this.current.f,C(this.container,"is-scaling"),C(this.container,"is-animating"),this.isTicking=!1;const{trackingPoints:n}=this,s=n[0],o=n[n.length-1];let r=0,a=0,c=0;o&&s&&(r=o.clientX-s.clientX,a=o.clientY-s.clientY,c=o.time-s.time);const l=(null===(t=window.visualViewport)||void 0===t?void 0:t.scale)||1;1!==l&&(r*=l,a*=l);let u=0,d=0,h=0,p=0,f=this.option("decelFriction");const m=this.targetScale;if(c>0){h=Math.abs(r)>3?r/(c/30):0,p=Math.abs(a)>3?a/(c/30):0;const t=this.option("maxVelocity");t&&(h=Math.max(Math.min(h,t),-1*t),p=Math.max(Math.min(p,t),-1*t))}h&&(u=h/(1/(1-f)-1)),p&&(d=p/(1/(1-f)-1)),("y"===this.option("lockAxis")||"xy"===this.option("lockAxis")&&"y"===this.lockedAxis&&i(m)===this.minScale)&&(u=h=0),("x"===this.option("lockAxis")||"xy"===this.option("lockAxis")&&"x"===this.lockedAxis&&i(m)===this.minScale)&&(d=p=0);const g=this.dragOffset.x,v=this.dragOffset.y,b=this.option("dragMinThreshold")||0;Math.abs(g)<b&&Math.abs(v)<b&&(u=d=0,h=p=0),(this.option("zoom")&&(m<this.minScale-1e-5||m>this.maxScale+1e-5)||e&&!u&&!d)&&(f=.35),this.applyChange({panX:u,panY:d,friction:f}),this.emit("decel",h,p,g,v)}onWheel(t){var e=[-t.deltaX||0,-t.deltaY||0,-t.detail||0].reduce((function(t,e){return Math.abs(e)>Math.abs(t)?e:t}));const n=Math.max(-1,Math.min(1,e));if(this.emit("wheel",t,n),this.panMode===L)return;if(t.defaultPrevented)return;const i=this.option("wheel");"pan"===i?(t.preventDefault(),this.panOnlyZoomed&&!this.canZoomOut()||this.applyChange({panX:2*-t.deltaX,panY:2*-t.deltaY,bounce:!1})):"zoom"===i&&!1!==this.option("zoom")&&this.zoomWithWheel(t)}onMouseMove(t){this.panWithMouse(t)}onKeydown(t){"Escape"===t.key&&this.toggleFS()}onResize(){this.updateMetrics(),this.checkBounds().inBounds||this.requestTick()}setTransform(){this.emit("beforeTransform");const{current:t,target:e,content:n,contentRect:s}=this,o=Object.assign({},A);for(const n of w){const s="e"==n||"f"===n?P:1e5;o[n]=i(t[n],s),Math.abs(e[n]-t[n])<("e"==n||"f"===n?.51:.001)&&(t[n]=e[n])}let{a:r,b:a,c:c,d:l,e:u,f:d}=o,h=`matrix(${r}, ${a}, ${c}, ${l}, ${u}, ${d})`,p=n.parentElement instanceof HTMLPictureElement?n.parentElement:n;if(this.option("transformParent")&&(p=p.parentElement||p),p.style.transform===h)return;p.style.transform=h;const{contentWidth:f,contentHeight:m}=this.calculateContentDim();s.width=f,s.height=m,this.emit("afterTransform")}updateMetrics(t=!1){var e;if(!this||this.state===y.Destroy)return;if(this.isContentLoading)return;const n=Math.max(1,(null===(e=window.visualViewport)||void 0===e?void 0:e.scale)||1),{container:s,content:o}=this,r=o instanceof HTMLImageElement,a=s.getBoundingClientRect(),c=getComputedStyle(this.container);let l=a.width*n,u=a.height*n;const d=parseFloat(c.paddingTop)+parseFloat(c.paddingBottom),h=l-(parseFloat(c.paddingLeft)+parseFloat(c.paddingRight)),p=u-d;this.containerRect={width:l,height:u,innerWidth:h,innerHeight:p};const f=parseFloat(o.dataset.width||"")||(t=>{let e=0;return e=t instanceof HTMLImageElement?t.naturalWidth:t instanceof SVGElement?t.width.baseVal.value:Math.max(t.offsetWidth,t.scrollWidth),e||0})(o),m=parseFloat(o.dataset.height||"")||(t=>{let e=0;return e=t instanceof HTMLImageElement?t.naturalHeight:t instanceof SVGElement?t.height.baseVal.value:Math.max(t.offsetHeight,t.scrollHeight),e||0})(o);let g=this.option("width",f)||D,v=this.option("height",m)||D;const b=g===D,w=v===D;"number"!=typeof g&&(g=f),"number"!=typeof v&&(v=m),b&&(g=f*(v/m)),w&&(v=m/(f/g));let E=o.parentElement instanceof HTMLPictureElement?o.parentElement:o;this.option("transformParent")&&(E=E.parentElement||E);const S=E.getAttribute("style")||"";E.style.setProperty("transform","none","important"),r&&(E.style.width="",E.style.height=""),E.offsetHeight;const _=o.getBoundingClientRect();let x=_.width*n,T=_.height*n,C=x,O=T;x=Math.min(x,g),T=Math.min(T,v),r?({width:x,height:T}=((t,e,n,i)=>{const s=n/t,o=i/e,r=Math.min(s,o);return{width:t*=r,height:e*=r}})(g,v,x,T)):(x=Math.min(x,g),T=Math.min(T,v));let A=.5*(O-T),P=.5*(C-x);this.contentRect=Object.assign(Object.assign({},this.contentRect),{top:_.top-a.top+A,bottom:a.bottom-_.bottom+A,left:_.left-a.left+P,right:a.right-_.right+P,fitWidth:x,fitHeight:T,width:x,height:T,fullWidth:g,fullHeight:v}),E.style.cssText=S,r&&(E.style.width=`${x}px`,E.style.height=`${T}px`),this.setTransform(),!0!==t&&this.emit("refresh"),this.ignoreBounds||(i(this.targetScale)<i(this.minScale)?this.zoomTo(this.minScale,{friction:0}):this.targetScale>this.maxScale?this.zoomTo(this.maxScale,{friction:0}):this.state===y.Init||this.checkBounds().inBounds||this.requestTick()),this.updateControls()}calculateBounds(){const{contentWidth:t,contentHeight:e}=this.calculateContentDim(this.target),{targetScale:n,lockedAxis:s}=this,{fitWidth:o,fitHeight:r}=this.contentRect;let a=0,c=0,l=0,u=0;const d=this.option("infinite");if(!0===d||s&&d===s)a=-1/0,l=1/0,c=-1/0,u=1/0;else{let{containerRect:s,contentRect:d}=this,h=i(o*n,P),p=i(r*n,P),{innerWidth:f,innerHeight:m}=s;if(s.width===h&&(f=s.width),s.width===p&&(m=s.height),t>f){l=.5*(t-f),a=-1*l;let e=.5*(d.right-d.left);a+=e,l+=e}if(o>f&&t<f&&(a-=.5*(o-f),l-=.5*(o-f)),e>m){u=.5*(e-m),c=-1*u;let t=.5*(d.bottom-d.top);c+=t,u+=t}r>m&&e<m&&(a-=.5*(r-m),l-=.5*(r-m))}return{x:{min:a,max:l},y:{min:c,max:u}}}getBounds(){const t=this.option("bounds");return t!==D?t:this.calculateBounds()}updateControls(){const t=this,e=t.container,{panMode:n,contentRect:s,targetScale:o,minScale:r}=t;let a=r,l=t.option("click")||!1;l&&(a=t.getNextScale(l));let u=t.canZoomIn(),d=t.canZoomOut(),h=n===I&&!!this.option("touch"),p=d&&h;if(h&&(i(o)<i(r)&&!this.panOnlyZoomed&&(p=!0),(i(s.width,1)>i(s.fitWidth,1)||i(s.height,1)>i(s.fitHeight,1))&&(p=!0)),i(s.width*o,1)<i(s.fitWidth,1)&&(p=!1),n===L&&(p=!1),c(e,this.cn("isDraggable"),p),!this.option("zoom"))return;let f=u&&i(a)>i(o),m=!f&&!p&&d&&i(a)<i(o);c(e,this.cn("canZoomIn"),f),c(e,this.cn("canZoomOut"),m);for(const t of e.querySelectorAll("[data-panzoom-action]")){let e=!1,n=!1;switch(t.dataset.panzoomAction){case"zoomIn":u?e=!0:n=!0;break;case"zoomOut":d?e=!0:n=!0;break;case"toggleZoom":case"iterateZoom":u||d?e=!0:n=!0;const i=t.querySelector("g");i&&(i.style.display=u?"":"none")}e?(t.removeAttribute("disabled"),t.removeAttribute("tabindex")):n&&(t.setAttribute("disabled",""),t.setAttribute("tabindex","-1"))}}panTo({x:t=this.target.e,y:e=this.target.f,scale:n=this.targetScale,friction:i=this.option("friction"),angle:s=0,originX:o=0,originY:r=0,flipX:a=!1,flipY:c=!1,ignoreBounds:l=!1}){this.state!==y.Destroy&&this.applyChange({panX:t-this.target.e,panY:e-this.target.f,scale:n/this.targetScale,angle:s,originX:o,originY:r,friction:i,flipX:a,flipY:c,ignoreBounds:l})}applyChange({panX:t=0,panY:e=0,scale:n=1,angle:s=0,originX:o=-this.current.e,originY:r=-this.current.f,friction:a=this.option("friction"),flipX:c=!1,flipY:l=!1,ignoreBounds:u=!1,bounce:d=this.option("bounce")}){const h=this.state;if(h===y.Destroy)return;this.rAF&&(cancelAnimationFrame(this.rAF),this.rAF=null),this.friction=a||0,this.ignoreBounds=u;const{current:p}=this,f=p.e,m=p.f,g=this.getMatrix(this.target);let v=(new DOMMatrix).translate(f,m).translate(o,r).translate(t,e);if(this.option("zoom")){if(!u){const t=this.targetScale,e=this.minScale,i=this.maxScale;t*n<e&&(n=e/t),t*n>i&&(n=i/t)}v=v.scale(n)}v=v.translate(-o,-r).translate(-f,-m).multiply(g),s&&(v=v.rotate(s)),c&&(v=v.scale(-1,1)),l&&(v=v.scale(1,-1));for(const t of w)"e"!==t&&"f"!==t&&(v[t]>this.minScale+1e-5||v[t]<this.minScale-1e-5)?this.target[t]=v[t]:this.target[t]=i(v[t],P);(this.targetScale<this.scale||Math.abs(n-1)>.1||this.panMode===L||!1===d)&&!u&&this.clampTargetBounds(),h===y.Init?this.animate():this.isResting||(this.state=y.Panning,this.requestTick())}stop(t=!1){if(this.state===y.Init||this.state===y.Destroy)return;const e=this.isTicking;this.rAF&&(cancelAnimationFrame(this.rAF),this.rAF=null),this.isBouncingX=!1,this.isBouncingY=!1;for(const e of w)this.velocity[e]=0,"current"===t?this.current[e]=this.target[e]:"target"===t&&(this.target[e]=this.current[e]);this.setTransform(),C(this.container,"is-scaling"),C(this.container,"is-animating"),this.isTicking=!1,this.state=y.Ready,e&&(this.emit("endAnimation"),this.updateControls())}requestTick(){this.isTicking||(this.emit("startAnimation"),this.updateControls(),O(this.container,"is-animating"),this.isScaling&&O(this.container,"is-scaling")),this.isTicking=!0,this.rAF||(this.rAF=requestAnimationFrame((()=>this.animate())))}panWithMouse(t,e=this.option("mouseMoveFriction")){if(this.pmme=t,this.panMode!==L||!t)return;if(i(this.targetScale)<=i(this.minScale))return;this.emit("mouseMove",t);const{container:n,containerRect:s,contentRect:o}=this,r=s.width,a=s.height,c=n.getBoundingClientRect(),l=(t.clientX||0)-c.left,u=(t.clientY||0)-c.top;let{contentWidth:d,contentHeight:h}=this.calculateContentDim(this.target);const p=this.option("mouseMoveFactor");p>1&&(d!==r&&(d*=p),h!==a&&(h*=p));let f=.5*(d-r)-l/r*100/100*(d-r);f+=.5*(o.right-o.left);let m=.5*(h-a)-u/a*100/100*(h-a);m+=.5*(o.bottom-o.top),this.applyChange({panX:f-this.target.e,panY:m-this.target.f,friction:e})}zoomWithWheel(t){if(this.state===y.Destroy||this.state===y.Init)return;const e=Date.now();if(e-this.pwt<45)return void t.preventDefault();this.pwt=e;var n=[-t.deltaX||0,-t.deltaY||0,-t.detail||0].reduce((function(t,e){return Math.abs(e)>Math.abs(t)?e:t}));const s=Math.max(-1,Math.min(1,n)),{targetScale:o,maxScale:r,minScale:a}=this;let c=o*(100+45*s)/100;i(c)<i(a)&&i(o)<=i(a)?(this.cwd+=Math.abs(s),c=a):i(c)>i(r)&&i(o)>=i(r)?(this.cwd+=Math.abs(s),c=r):(this.cwd=0,c=Math.max(Math.min(c,r),a)),this.cwd>this.option("wheelLimit")||(t.preventDefault(),i(c)!==i(o)&&this.zoomTo(c,{event:t}))}canZoomIn(){return this.option("zoom")&&(i(this.contentRect.width,1)<i(this.contentRect.fitWidth,1)||i(this.targetScale)<i(this.maxScale))}canZoomOut(){return this.option("zoom")&&i(this.targetScale)>i(this.minScale)}zoomIn(t=1.25,e){this.zoomTo(this.targetScale*t,e)}zoomOut(t=.8,e){this.zoomTo(this.targetScale*t,e)}zoomToFit(t){this.zoomTo("fit",t)}zoomToCover(t){this.zoomTo("cover",t)}zoomToFull(t){this.zoomTo("full",t)}zoomToMax(t){this.zoomTo("max",t)}toggleZoom(t){this.zoomTo(this.getNextScale("toggleZoom"),t)}toggleMax(t){this.zoomTo(this.getNextScale("toggleMax"),t)}toggleCover(t){this.zoomTo(this.getNextScale("toggleCover"),t)}iterateZoom(t){this.zoomTo("next",t)}zoomTo(t=1,{friction:e=D,originX:n=D,originY:i=D,event:s}={}){if(this.isContentLoading||this.state===y.Destroy)return;const{targetScale:o,fullScale:r,maxScale:a,coverScale:c}=this;if(this.stop(),this.panMode===L&&(s=this.pmme||s),s||n===D||i===D){const t=this.content.getBoundingClientRect(),e=this.container.getBoundingClientRect(),o=s?s.clientX:e.left+.5*e.width,r=s?s.clientY:e.top+.5*e.height;n=o-t.left-.5*t.width,i=r-t.top-.5*t.height}let l=1;"number"==typeof t?l=t:"full"===t?l=r:"cover"===t?l=c:"max"===t?l=a:"fit"===t?l=1:"next"===t&&(l=this.getNextScale("iterateZoom")),l=l/o||1,e=e===D?l>1?.15:.25:e,this.applyChange({scale:l,originX:n,originY:i,friction:e}),s&&this.panMode===L&&this.panWithMouse(s,e)}rotateCCW(){this.applyChange({angle:-90})}rotateCW(){this.applyChange({angle:90})}flipX(){this.applyChange({flipX:!0})}flipY(){this.applyChange({flipY:!0})}fitX(){this.stop("target");const{containerRect:t,contentRect:e,target:n}=this;this.applyChange({panX:.5*t.width-(e.left+.5*e.fitWidth)-n.e,panY:.5*t.height-(e.top+.5*e.fitHeight)-n.f,scale:t.width/e.fitWidth/this.targetScale,originX:0,originY:0,ignoreBounds:!0})}fitY(){this.stop("target");const{containerRect:t,contentRect:e,target:n}=this;this.applyChange({panX:.5*t.width-(e.left+.5*e.fitWidth)-n.e,panY:.5*t.innerHeight-(e.top+.5*e.fitHeight)-n.f,scale:t.height/e.fitHeight/this.targetScale,originX:0,originY:0,ignoreBounds:!0})}toggleFS(){const{container:t}=this,e=this.cn("inFullscreen"),n=this.cn("htmlHasFullscreen");t.classList.toggle(e);const i=t.classList.contains(e);i?(document.documentElement.classList.add(n),document.addEventListener("keydown",this.onKeydown,!0)):(document.documentElement.classList.remove(n),document.removeEventListener("keydown",this.onKeydown,!0)),this.updateMetrics(),this.emit(i?"enterFS":"exitFS")}getMatrix(t=this.current){const{a:e,b:n,c:i,d:s,e:o,f:r}=t;return new DOMMatrix([e,n,i,s,o,r])}reset(t){if(this.state!==y.Init&&this.state!==y.Destroy){this.stop("current");for(const t of w)this.target[t]=A[t];this.target.a=this.minScale,this.target.d=this.minScale,this.clampTargetBounds(),this.isResting||(this.friction=void 0===t?this.option("friction"):t,this.state=y.Panning,this.requestTick())}}destroy(){this.stop(),this.state=y.Destroy,this.detachEvents(),this.detachObserver();const{container:t,content:e}=this,n=this.option("classes")||{};for(const e of Object.values(n))t.classList.remove(e+"");e&&(e.removeEventListener("load",this.onLoad),e.removeEventListener("error",this.onError)),this.detachPlugins()}}Object.defineProperty(R,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:S}),Object.defineProperty(R,"Plugins",{enumerable:!0,configurable:!0,writable:!0,value:{}});const j=function(t,e){let n=!0;return(...i)=>{n&&(n=!1,t(...i),setTimeout((()=>{n=!0}),e))}},F=(t,e)=>{let n=[];return t.childNodes.forEach((t=>{t.nodeType!==Node.ELEMENT_NODE||e&&!t.matches(e)||n.push(t)})),n};var z;!function(t){t[t.Init=0]="Init",t[t.Ready=1]="Ready",t[t.Destroy=2]="Destroy"}(z||(z={}));const B=t=>{if("string"==typeof t||t instanceof HTMLElement)t={html:t};else{const e=t.thumb;void 0!==e&&("string"==typeof e&&(t.thumbSrc=e),e instanceof HTMLImageElement&&(t.thumbEl=e,t.thumbElSrc=e.src,t.thumbSrc=e.src),delete t.thumb)}return Object.assign({html:"",el:null,isDom:!1,class:"",customClass:"",index:-1,dim:0,gap:0,pos:0,transition:!1},t)},$=(t={})=>Object.assign({index:-1,slides:[],dim:0,pos:-1},t);class H extends v{constructor(t,e){super(e),Object.defineProperty(this,"instance",{enumerable:!0,configurable:!0,writable:!0,value:t})}attach(){}detach(){}}class U extends H{constructor(){super(...arguments),Object.defineProperty(this,"isDynamic",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"list",{enumerable:!0,configurable:!0,writable:!0,value:null})}onRefresh(){this.refresh()}build(){let t=this.list;if(!t){t=document.createElement("ul"),O(t,this.cn("list")),t.setAttribute("role","tablist");const e=this.instance.container;e.appendChild(t),O(e,this.cn("hasDots")),this.list=t}return t}refresh(){var t;const e=this.instance.pages.length,n=Math.min(2,this.option("minCount")),i=Math.max(2e3,this.option("maxCount")),s=this.option("dynamicFrom");if(e<n||e>i)return void this.cleanup();const o="number"==typeof s&&e>5&&e>=s,r=!this.list||this.isDynamic!==o||this.list.children.length!==e;r&&this.cleanup();const a=this.build();if(c(a,this.cn("isDynamic"),!!o),r)for(let t=0;t<e;t++)a.append(this.createItem(t));let l,u=0;for(const e of[...a.children]){const n=u===this.instance.page;n&&(l=e),c(e,this.cn("isCurrent"),n),null===(t=e.children[0])||void 0===t||t.setAttribute("aria-selected",n?"true":"false");for(const t of["isBeforePrev","isPrev","isNext","isAfterNext"])C(e,this.cn(t));u++}if(l=l||a.firstChild,o&&l){const t=l.previousElementSibling,e=t&&t.previousElementSibling;O(t,this.cn("isPrev")),O(e,this.cn("isBeforePrev"));const n=l.nextElementSibling,i=n&&n.nextElementSibling;O(n,this.cn("isNext")),O(i,this.cn("isAfterNext"))}this.isDynamic=o}createItem(t=0){var e;const n=document.createElement("li");n.setAttribute("role","presentation");const i=r(this.instance.localize(this.option("dotTpl"),[["%d",t+1]]).replace(/\%i/g,t+""));return n.appendChild(i),null===(e=n.children[0])||void 0===e||e.setAttribute("role","tab"),n}cleanup(){this.list&&(this.list.remove(),this.list=null),this.isDynamic=!1,C(this.instance.container,this.cn("hasDots"))}attach(){this.instance.on(["refresh","change"],this.onRefresh)}detach(){this.instance.off(["refresh","change"],this.onRefresh),this.cleanup()}}Object.defineProperty(U,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:{classes:{list:"f-carousel__dots",isDynamic:"is-dynamic",hasDots:"has-dots",dot:"f-carousel__dot",isBeforePrev:"is-before-prev",isPrev:"is-prev",isCurrent:"is-current",isNext:"is-next",isAfterNext:"is-after-next"},dotTpl:'<button type="button" data-carousel-page="%i" aria-label="{{GOTO}}"><span class="f-carousel__dot" aria-hidden="true"></span></button>',dynamicFrom:11,maxCount:1/0,minCount:2}});const W="disabled",q="next",V="prev";class G extends H{constructor(){super(...arguments),Object.defineProperty(this,"container",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"prev",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"next",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"isDom",{enumerable:!0,configurable:!0,writable:!0,value:!1})}onRefresh(){const t=this.instance,e=t.pages.length,n=t.page;if(e<2)return void this.cleanup();this.build();let i=this.prev,s=this.next;i&&s&&(i.removeAttribute(W),s.removeAttribute(W),t.isInfinite||(n<=0&&i.setAttribute(W,""),n>=e-1&&s.setAttribute(W,"")))}addBtn(t){var e;const n=this.instance,i=document.createElement("button");i.setAttribute("tabindex","0"),i.setAttribute("title",n.localize(`{{${t.toUpperCase()}}}`)),O(i,this.cn("button")+" "+this.cn(t===q?"isNext":"isPrev"));const s=n.isRTL?t===q?V:q:t;var o;return i.innerHTML=n.localize(this.option(`${s}Tpl`)),i.dataset[`carousel${o=t,o?o.match("^[a-z]")?o.charAt(0).toUpperCase()+o.substring(1):o:""}`]="true",null===(e=this.container)||void 0===e||e.appendChild(i),i}build(){const t=this.instance.container,e=this.cn("container");let{container:n,prev:i,next:s}=this;n||(n=t.querySelector("."+e),this.isDom=!!n),n||(n=document.createElement("div"),O(n,e),t.appendChild(n)),this.container=n,s||(s=n.querySelector("[data-carousel-next]")),s||(s=this.addBtn(q)),this.next=s,i||(i=n.querySelector("[data-carousel-prev]")),i||(i=this.addBtn(V)),this.prev=i}cleanup(){this.isDom||(this.prev&&this.prev.remove(),this.next&&this.next.remove(),this.container&&this.container.remove()),this.prev=null,this.next=null,this.container=null,this.isDom=!1}attach(){this.instance.on(["refresh","change"],this.onRefresh)}detach(){this.instance.off(["refresh","change"],this.onRefresh),this.cleanup()}}Object.defineProperty(G,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:{classes:{container:"f-carousel__nav",button:"f-button",isNext:"is-next",isPrev:"is-prev"},nextTpl:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" tabindex="-1"><path d="M9 3l9 9-9 9"/></svg>',prevTpl:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" tabindex="-1"><path d="M15 3l-9 9 9 9"/></svg>'}});class X extends H{constructor(){super(...arguments),Object.defineProperty(this,"selectedIndex",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"target",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"nav",{enumerable:!0,configurable:!0,writable:!0,value:null})}addAsTargetFor(t){this.target=this.instance,this.nav=t,this.attachEvents()}addAsNavFor(t){this.nav=this.instance,this.target=t,this.attachEvents()}attachEvents(){const{nav:t,target:e}=this;t&&e&&(t.options.initialSlide=e.options.initialPage,t.state===z.Ready?this.onNavReady(t):t.on("ready",this.onNavReady),e.state===z.Ready?this.onTargetReady(e):e.on("ready",this.onTargetReady))}onNavReady(t){t.on("createSlide",this.onNavCreateSlide),t.on("Panzoom.click",this.onNavClick),t.on("Panzoom.touchEnd",this.onNavTouch),this.onTargetChange()}onTargetReady(t){t.on("change",this.onTargetChange),t.on("Panzoom.refresh",this.onTargetChange),this.onTargetChange()}onNavClick(t,e,n){this.onNavTouch(t,t.panzoom,n)}onNavTouch(t,e,n){var i,s;if(Math.abs(e.dragOffset.x)>3||Math.abs(e.dragOffset.y)>3)return;const o=n.target,{nav:r,target:a}=this;if(!r||!a||!o)return;const c=o.closest("[data-index]");if(n.stopPropagation(),n.preventDefault(),!c)return;const l=parseInt(c.dataset.index||"",10)||0,u=a.getPageForSlide(l),d=r.getPageForSlide(l);r.slideTo(d),a.slideTo(u,{friction:(null===(s=null===(i=this.nav)||void 0===i?void 0:i.plugins)||void 0===s?void 0:s.Sync.option("friction"))||0}),this.markSelectedSlide(l)}onNavCreateSlide(t,e){e.index===this.selectedIndex&&this.markSelectedSlide(e.index)}onTargetChange(){var t,e;const{target:n,nav:i}=this;if(!n||!i)return;if(i.state!==z.Ready||n.state!==z.Ready)return;const s=null===(e=null===(t=n.pages[n.page])||void 0===t?void 0:t.slides[0])||void 0===e?void 0:e.index,o=i.getPageForSlide(s);this.markSelectedSlide(s),i.slideTo(o,null===i.prevPage&&null===n.prevPage?{friction:0}:void 0)}markSelectedSlide(t){const e=this.nav;e&&e.state===z.Ready&&(this.selectedIndex=t,[...e.slides].map((e=>{e.el&&e.el.classList[e.index===t?"add":"remove"]("is-nav-selected")})))}attach(){const t=this;let e=t.options.target,n=t.options.nav;e?t.addAsNavFor(e):n&&t.addAsTargetFor(n)}detach(){const t=this,e=t.nav,n=t.target;e&&(e.off("ready",t.onNavReady),e.off("createSlide",t.onNavCreateSlide),e.off("Panzoom.click",t.onNavClick),e.off("Panzoom.touchEnd",t.onNavTouch)),t.nav=null,n&&(n.off("ready",t.onTargetReady),n.off("refresh",t.onTargetChange),n.off("change",t.onTargetChange)),t.target=null}}Object.defineProperty(X,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:{friction:.35}});const K={Navigation:G,Dots:U,Sync:X},Y="animationend",J="isSelected",Z="slide";class Q extends b{get axis(){return this.isHorizontal?"e":"f"}get isEnabled(){return this.state===z.Ready}get isInfinite(){let t=!1;const{contentDim:e,viewportDim:n,pages:i,slides:s}=this,o=s[0];return i.length>=2&&o&&e+o.dim>=n&&(t=this.option("infinite")),t}get isRTL(){return"rtl"===this.option("direction")}get isHorizontal(){return"x"===this.option("axis")}constructor(t,e={},n={}){if(super(),Object.defineProperty(this,"bp",{enumerable:!0,configurable:!0,writable:!0,value:""}),Object.defineProperty(this,"lp",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"userOptions",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"userPlugins",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"state",{enumerable:!0,configurable:!0,writable:!0,value:z.Init}),Object.defineProperty(this,"page",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"prevPage",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"container",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"viewport",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"track",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"slides",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"pages",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"panzoom",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"inTransition",{enumerable:!0,configurable:!0,writable:!0,value:new Set}),Object.defineProperty(this,"contentDim",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"viewportDim",{enumerable:!0,configurable:!0,writable:!0,value:0}),"string"==typeof t&&(t=document.querySelector(t)),!t||!T(t))throw new Error("No Element found");this.container=t,this.slideNext=j(this.slideNext.bind(this),150),this.slidePrev=j(this.slidePrev.bind(this),150),this.userOptions=e,this.userPlugins=n,queueMicrotask((()=>{this.processOptions()}))}processOptions(){var t,e;const n=m({},Q.defaults,this.userOptions);let i="";const s=n.breakpoints;if(s&&f(s))for(const[t,e]of Object.entries(s))window.matchMedia(t).matches&&f(e)&&(i+=t,m(n,e));i===this.bp&&this.state!==z.Init||(this.bp=i,this.state===z.Ready&&(n.initialSlide=(null===(e=null===(t=this.pages[this.page])||void 0===t?void 0:t.slides[0])||void 0===e?void 0:e.index)||0),this.state!==z.Init&&this.destroy(),super.setOptions(n),!1===this.option("enabled")?this.attachEvents():setTimeout((()=>{this.init()}),0))}init(){this.state=z.Init,this.emit("init"),this.attachPlugins(Object.assign(Object.assign({},Q.Plugins),this.userPlugins)),this.emit("attachPlugins"),this.initLayout(),this.initSlides(),this.updateMetrics(),this.setInitialPosition(),this.initPanzoom(),this.attachEvents(),this.state=z.Ready,this.emit("ready")}initLayout(){const{container:t}=this,e=this.option("classes");O(t,this.cn("container")),c(t,e.isLTR,!this.isRTL),c(t,e.isRTL,this.isRTL),c(t,e.isVertical,!this.isHorizontal),c(t,e.isHorizontal,this.isHorizontal);let n=this.option("viewport")||t.querySelector(`.${e.viewport}`);n||(n=document.createElement("div"),O(n,e.viewport),n.append(...F(t,`.${e.slide}`)),t.prepend(n)),n.addEventListener("scroll",this.onScroll);let i=this.option("track")||t.querySelector(`.${e.track}`);i||(i=document.createElement("div"),O(i,e.track),i.append(...Array.from(n.childNodes))),i.setAttribute("aria-live","polite"),n.contains(i)||n.prepend(i),this.viewport=n,this.track=i,this.emit("initLayout")}initSlides(){const{track:t}=this;if(!t)return;const e=[...this.slides],n=[];[...F(t,`.${this.cn(Z)}`)].forEach((t=>{if(T(t)){const e=B({el:t,isDom:!0,index:this.slides.length});n.push(e)}}));for(let t of[...this.option("slides",[])||[],...e])n.push(B(t));this.slides=n;for(let t=0;t<this.slides.length;t++)this.slides[t].index=t;for(const t of n)this.emit("beforeInitSlide",t,t.index),this.emit("initSlide",t,t.index);this.emit("initSlides")}setInitialPage(){const t=this.option("initialSlide");this.page="number"==typeof t?this.getPageForSlide(t):parseInt(this.option("initialPage",0)+"",10)||0}setInitialPosition(){const{track:t,pages:e,isHorizontal:n}=this;if(!t||!e.length)return;let i=this.page;e[i]||(this.page=i=0);const s=(e[i].pos||0)*(this.isRTL&&n?1:-1),o=n?`${s}px`:"0",r=n?"0":`${s}px`;t.style.transform=`translate3d(${o}, ${r}, 0) scale(1)`,this.option("adaptiveHeight")&&this.setViewportHeight()}initPanzoom(){this.panzoom&&(this.panzoom.destroy(),this.panzoom=null);const t=this.option("Panzoom")||{};this.panzoom=new R(this.viewport,m({},{content:this.track,zoom:!1,panOnlyZoomed:!1,lockAxis:this.isHorizontal?"x":"y",infinite:this.isInfinite,click:!1,dblClick:!1,touch:t=>!(this.pages.length<2&&!t.options.infinite),bounds:()=>this.getBounds(),maxVelocity:t=>Math.abs(t.target[this.axis]-t.current[this.axis])<2*this.viewportDim?100:0},t)),this.panzoom.on("*",((t,e,...n)=>{this.emit(`Panzoom.${e}`,t,...n)})),this.panzoom.on("decel",this.onDecel),this.panzoom.on("refresh",this.onRefresh),this.panzoom.on("beforeTransform",this.onBeforeTransform),this.panzoom.on("endAnimation",this.onEndAnimation)}attachEvents(){const t=this.container;t&&(t.addEventListener("click",this.onClick,{passive:!1,capture:!1}),t.addEventListener("slideTo",this.onSlideTo)),window.addEventListener("resize",this.onResize)}createPages(){let t=[];const{contentDim:e,viewportDim:n}=this;let i=this.option("slidesPerPage");i=("auto"===i||e<=n)&&!1!==this.option("fill")?1/0:parseFloat(i+"");let s=0,o=0,r=0;for(const e of this.slides)(!t.length||o+e.dim-n>.05||r>=i)&&(t.push($()),s=t.length-1,o=0,r=0),t[s].slides.push(e),o+=e.dim+e.gap,r++;return t}processPages(){const t=this.pages,{contentDim:e,viewportDim:n,isInfinite:s}=this,o=this.option("center"),r=this.option("fill"),a=r&&o&&e>n&&!s;if(t.forEach(((t,i)=>{var s;t.index=i,t.pos=(null===(s=t.slides[0])||void 0===s?void 0:s.pos)||0,t.dim=0;for(const[e,n]of t.slides.entries())t.dim+=n.dim,e<t.slides.length-1&&(t.dim+=n.gap);a&&t.pos+.5*t.dim<.5*n?t.pos=0:a&&t.pos+.5*t.dim>=e-.5*n?t.pos=e-n:o&&(t.pos+=-.5*(n-t.dim))})),t.forEach((t=>{r&&!s&&e>n&&(t.pos=Math.max(t.pos,0),t.pos=Math.min(t.pos,e-n)),t.pos=i(t.pos,1e3),t.dim=i(t.dim,1e3),Math.abs(t.pos)<=.1&&(t.pos=0)})),s)return t;const c=[];let l;return t.forEach((t=>{const e=Object.assign({},t);l&&e.pos===l.pos?(l.dim+=e.dim,l.slides=[...l.slides,...e.slides]):(e.index=c.length,l=e,c.push(e))})),c}getPageFromIndex(t=0){const e=this.pages.length;let n;return t=parseInt((t||0).toString())||0,n=this.isInfinite?(t%e+e)%e:Math.max(Math.min(t,e-1),0),n}getSlideMetrics(t){var e,n;const s=this.isHorizontal?"width":"height";let o=0,r=0,a=t.el;const c=!(!a||a.parentNode);if(a?o=parseFloat(a.dataset[s]||"")||0:(a=document.createElement("div"),a.style.visibility="hidden",(this.track||document.body).prepend(a)),O(a,this.cn(Z)+" "+t.class+" "+t.customClass),o)a.style[s]=`${o}px`,a.style["width"===s?"height":"width"]="";else{c&&(this.track||document.body).prepend(a),o=a.getBoundingClientRect()[s]*Math.max(1,(null===(e=window.visualViewport)||void 0===e?void 0:e.scale)||1);let t=a[this.isHorizontal?"offsetWidth":"offsetHeight"];t-1>o&&(o=t)}const l=getComputedStyle(a);return"content-box"===l.boxSizing&&(this.isHorizontal?(o+=parseFloat(l.paddingLeft)||0,o+=parseFloat(l.paddingRight)||0):(o+=parseFloat(l.paddingTop)||0,o+=parseFloat(l.paddingBottom)||0)),r=parseFloat(l[this.isHorizontal?"marginRight":"marginBottom"])||0,c?null===(n=a.parentElement)||void 0===n||n.removeChild(a):t.el||a.remove(),{dim:i(o,1e3),gap:i(r,1e3)}}getBounds(){const{isInfinite:t,isRTL:e,isHorizontal:n,pages:i}=this;let s={min:0,max:0};if(t)s={min:-1/0,max:1/0};else if(i.length){const t=i[0].pos,o=i[i.length-1].pos;s=e&&n?{min:t,max:o}:{min:-1*o,max:-1*t}}return{x:n?s:{min:0,max:0},y:n?{min:0,max:0}:s}}repositionSlides(){let t,{isHorizontal:e,isRTL:n,isInfinite:s,viewport:o,viewportDim:r,contentDim:a,page:c,pages:l,slides:u,panzoom:d}=this,h=0,p=0,f=0,m=0;d?m=-1*d.current[this.axis]:l[c]&&(m=l[c].pos||0),t=e?n?"right":"left":"top",n&&e&&(m*=-1);for(const e of u){const n=e.el;n?("top"===t?(n.style.right="",n.style.left=""):n.style.top="",e.index!==h?n.style[t]=0===p?"":`${i(p,1e3)}px`:n.style[t]="",f+=e.dim+e.gap,h++):p+=e.dim+e.gap}if(s&&f&&o){let n=getComputedStyle(o),s="padding",c=e?"Right":"Bottom",l=parseFloat(n[s+(e?"Left":"Top")]);m-=l,r+=l,r+=parseFloat(n[s+c]);for(const e of u)e.el&&(i(e.pos)<i(r)&&i(e.pos+e.dim+e.gap)<i(m)&&i(m)>i(a-r)&&(e.el.style[t]=`${i(p+f,1e3)}px`),i(e.pos+e.gap)>=i(a-r)&&i(e.pos)>i(m+r)&&i(m)<i(r)&&(e.el.style[t]=`-${i(f,1e3)}px`))}let g,v,b=[...this.inTransition];if(b.length>1&&(g=l[b[0]],v=l[b[1]]),g&&v){let e=0;for(const n of u)n.el?this.inTransition.has(n.index)&&g.slides.indexOf(n)<0&&(n.el.style[t]=`${i(e+(g.pos-v.pos),1e3)}px`):e+=n.dim+n.gap}}createSlideEl(t){const{track:e,slides:n}=this;if(!e||!t)return;if(t.el&&t.el.parentNode)return;const i=t.el||document.createElement("div");O(i,this.cn(Z)),O(i,t.class),O(i,t.customClass);const s=t.html;s&&(s instanceof HTMLElement?i.appendChild(s):i.innerHTML=t.html+"");const o=[];n.forEach(((t,e)=>{t.el&&o.push(e)}));const r=t.index;let a=null;o.length&&(a=n[o.reduce(((t,e)=>Math.abs(e-r)<Math.abs(t-r)?e:t))]);const c=a&&a.el&&a.el.parentNode?a.index<t.index?a.el.nextSibling:a.el:null;e.insertBefore(i,e.contains(c)?c:null),t.el=i,this.emit("createSlide",t)}removeSlideEl(t,e=!1){const n=null==t?void 0:t.el;if(!n||!n.parentNode)return;const i=this.cn(J);if(n.classList.contains(i)&&(C(n,i),this.emit("unselectSlide",t)),t.isDom&&!e)return n.removeAttribute("aria-hidden"),n.removeAttribute("data-index"),void(n.style.left="");this.emit("removeSlide",t);const s=new CustomEvent(Y);n.dispatchEvent(s),t.el&&(t.el.remove(),t.el=null)}transitionTo(t=0,e=this.option("transition")){var n,i,s,o;if(!e)return!1;const r=this.page,{pages:a,panzoom:c}=this;t=parseInt((t||0).toString())||0;const l=this.getPageFromIndex(t);if(!c||!a[l]||a.length<2||Math.abs(((null===(i=null===(n=a[r])||void 0===n?void 0:n.slides[0])||void 0===i?void 0:i.dim)||0)-this.viewportDim)>1)return!1;let u=t>r?1:-1;this.isInfinite&&(0===r&&t===a.length-1&&(u=-1),r===a.length-1&&0===t&&(u=1));const d=a[l].pos*(this.isRTL?1:-1);if(r===l&&Math.abs(d-c.target[this.axis])<1)return!1;this.clearTransitions();const h=c.isResting;O(this.container,this.cn("inTransition"));const p=(null===(s=a[r])||void 0===s?void 0:s.slides[0])||null,f=(null===(o=a[l])||void 0===o?void 0:o.slides[0])||null;this.inTransition.add(f.index),this.createSlideEl(f);let m=p.el,g=f.el;h||e===Z||(e="fadeFast",m=null);const v=this.isRTL?"next":"prev",b=this.isRTL?"prev":"next";return m&&(this.inTransition.add(p.index),p.transition=e,m.addEventListener(Y,this.onAnimationEnd),m.classList.add(`f-${e}Out`,`to-${u>0?b:v}`)),g&&(f.transition=e,g.addEventListener(Y,this.onAnimationEnd),g.classList.add(`f-${e}In`,`from-${u>0?v:b}`)),c.current[this.axis]=d,c.target[this.axis]=d,c.requestTick(),this.onChange(l),!0}manageSlideVisiblity(){const t=new Set,e=new Set,n=this.getVisibleSlides(parseFloat(this.option("preload",0)+"")||0);for(const i of this.slides)n.has(i)?t.add(i):e.add(i);for(const e of this.inTransition)t.add(this.slides[e]);for(const e of t)this.createSlideEl(e),this.lazyLoadSlide(e);for(const n of e)t.has(n)||this.removeSlideEl(n);this.markSelectedSlides(),this.repositionSlides()}markSelectedSlides(){if(!this.pages[this.page]||!this.pages[this.page].slides)return;const t="aria-hidden";let e=this.cn(J);if(e)for(const n of this.slides){const i=n.el;i&&(i.dataset.index=`${n.index}`,i.classList.contains("f-thumbs__slide")?this.getVisibleSlides(0).has(n)?i.removeAttribute(t):i.setAttribute(t,"true"):this.pages[this.page].slides.includes(n)?(i.classList.contains(e)||(O(i,e),this.emit("selectSlide",n)),i.removeAttribute(t)):(i.classList.contains(e)&&(C(i,e),this.emit("unselectSlide",n)),i.setAttribute(t,"true")))}}flipInfiniteTrack(){const{axis:t,isHorizontal:e,isInfinite:n,isRTL:i,viewportDim:s,contentDim:o}=this,r=this.panzoom;if(!r||!n)return;let a=r.current[t],c=r.target[t]-a,l=0,u=.5*s;i&&e?(a<-u&&(l=-1,a+=o),a>o-u&&(l=1,a-=o)):(a>u&&(l=1,a-=o),a<-o+u&&(l=-1,a+=o)),l&&(r.current[t]=a,r.target[t]=a+c)}lazyLoadImg(t,e){const n=this,i="f-fadeIn",s="is-preloading";let o=!1,a=null;const c=()=>{o||(o=!0,a&&(a.remove(),a=null),C(e,s),e.complete&&(O(e,i),setTimeout((()=>{C(e,i)}),350)),this.option("adaptiveHeight")&&t.el&&this.pages[this.page].slides.indexOf(t)>-1&&(n.updateMetrics(),n.setViewportHeight()),this.emit("load",t))};O(e,s),e.src=e.dataset.lazySrcset||e.dataset.lazySrc||"",delete e.dataset.lazySrc,delete e.dataset.lazySrcset,e.addEventListener("error",(()=>{c()})),e.addEventListener("load",(()=>{c()})),setTimeout((()=>{const n=e.parentNode;n&&t.el&&(e.complete?c():o||(a=r(x),n.insertBefore(a,e)))}),300)}lazyLoadSlide(t){const e=t&&t.el;if(!e)return;const n=new Set;let i=Array.from(e.querySelectorAll("[data-lazy-src],[data-lazy-srcset]"));e.dataset.lazySrc&&i.push(e),i.map((t=>{t instanceof HTMLImageElement?n.add(t):t instanceof HTMLElement&&t.dataset.lazySrc&&(t.style.backgroundImage=`url('${t.dataset.lazySrc}')`,delete t.dataset.lazySrc)}));for(const e of n)this.lazyLoadImg(t,e)}onAnimationEnd(t){var e;const n=t.target,i=n?parseInt(n.dataset.index||"",10)||0:-1,s=this.slides[i],o=t.animationName;if(!n||!s||!o)return;const r=!!this.inTransition.has(i)&&s.transition;r&&o.substring(0,r.length+2)===`f-${r}`&&this.inTransition.delete(i),this.inTransition.size||this.clearTransitions(),i===this.page&&(null===(e=this.panzoom)||void 0===e?void 0:e.isResting)&&this.emit("settle")}onDecel(t,e=0,n=0,i=0,s=0){if(this.option("dragFree"))return void this.setPageFromPosition();const{isRTL:o,isHorizontal:r,axis:a,pages:c}=this,l=c.length,u=Math.abs(Math.atan2(n,e)/(Math.PI/180));let d=0;if(d=u>45&&u<135?r?0:n:r?e:0,!l)return;let h=this.page,p=o&&r?1:-1;const f=t.current[a]*p;let{pageIndex:m}=this.getPageFromPosition(f);Math.abs(d)>5?(c[h].dim<document.documentElement["client"+(this.isHorizontal?"Width":"Height")]-1&&(h=m),h=o&&r?d<0?h-1:h+1:d<0?h+1:h-1):h=0===i&&0===s?h:m,this.slideTo(h,{transition:!1,friction:t.option("decelFriction")})}onClick(t){const e=t.target,n=e&&T(e)?e.dataset:null;let i,s;n&&(void 0!==n.carouselPage?(s="slideTo",i=n.carouselPage):void 0!==n.carouselNext?s="slideNext":void 0!==n.carouselPrev&&(s="slidePrev")),s?(t.preventDefault(),t.stopPropagation(),e&&!e.hasAttribute("disabled")&&this[s](i)):this.emit("click",t)}onSlideTo(t){const e=t.detail||0;this.slideTo(this.getPageForSlide(e),{friction:0})}onChange(t,e=0){const n=this.page;this.prevPage=n,this.page=t,this.option("adaptiveHeight")&&this.setViewportHeight(),t!==n&&(this.markSelectedSlides(),this.emit("change",t,n,e))}onRefresh(){let t=this.contentDim,e=this.viewportDim;this.updateMetrics(),this.contentDim===t&&this.viewportDim===e||this.slideTo(this.page,{friction:0,transition:!1})}onScroll(){var t;null===(t=this.viewport)||void 0===t||t.scroll(0,0)}onResize(){this.option("breakpoints")&&this.processOptions()}onBeforeTransform(t){this.lp!==t.current[this.axis]&&(this.flipInfiniteTrack(),this.manageSlideVisiblity()),this.lp=t.current.e}onEndAnimation(){this.inTransition.size||this.emit("settle")}reInit(t=null,e=null){this.destroy(),this.state=z.Init,this.prevPage=null,this.userOptions=t||this.userOptions,this.userPlugins=e||this.userPlugins,this.processOptions()}slideTo(t=0,{friction:e=this.option("friction"),transition:n=this.option("transition")}={}){if(this.state===z.Destroy)return;t=parseInt((t||0).toString())||0;const i=this.getPageFromIndex(t),{axis:s,isHorizontal:o,isRTL:r,pages:a,panzoom:c}=this,l=a.length,u=r&&o?1:-1;if(!c||!l)return;if(this.page!==i){const e=new Event("beforeChange",{bubbles:!0,cancelable:!0});if(this.emit("beforeChange",e,t),e.defaultPrevented)return}if(this.transitionTo(t,n))return;let d=a[i].pos;if(this.isInfinite){const e=this.contentDim,n=c.target[s]*u;2===l?d+=e*Math.floor(parseFloat(t+"")/2):d=[d,d-e,d+e].reduce((function(t,e){return Math.abs(e-n)<Math.abs(t-n)?e:t}))}d*=u,Math.abs(c.target[s]-d)<1||(c.panTo({x:o?d:0,y:o?0:d,friction:e}),this.onChange(i))}slideToClosest(t){if(this.panzoom){const{pageIndex:e}=this.getPageFromPosition();this.slideTo(e,t)}}slideNext(){this.slideTo(this.page+1)}slidePrev(){this.slideTo(this.page-1)}clearTransitions(){this.inTransition.clear(),C(this.container,this.cn("inTransition"));const t=["to-prev","to-next","from-prev","from-next"];for(const e of this.slides){const n=e.el;if(n){n.removeEventListener(Y,this.onAnimationEnd),n.classList.remove(...t);const i=e.transition;i&&n.classList.remove(`f-${i}Out`,`f-${i}In`)}}this.manageSlideVisiblity()}addSlide(t,e){var n,i,s,o;const r=this.panzoom,a=(null===(n=this.pages[this.page])||void 0===n?void 0:n.pos)||0,c=(null===(i=this.pages[this.page])||void 0===i?void 0:i.dim)||0,l=this.contentDim<this.viewportDim;let u=Array.isArray(e)?e:[e];const d=[];for(const t of u)d.push(B(t));this.slides.splice(t,0,...d);for(let t=0;t<this.slides.length;t++)this.slides[t].index=t;for(const t of d)this.emit("beforeInitSlide",t,t.index);if(this.page>=t&&(this.page+=d.length),this.updateMetrics(),r){const e=(null===(s=this.pages[this.page])||void 0===s?void 0:s.pos)||0,n=(null===(o=this.pages[this.page])||void 0===o?void 0:o.dim)||0,i=this.pages.length||1,u=this.isRTL?c-n:n-c,d=this.isRTL?a-e:e-a;l&&1===i?(t<=this.page&&(r.current[this.axis]-=u,r.target[this.axis]-=u),r.panTo({[this.isHorizontal?"x":"y"]:-1*e})):d&&t<=this.page&&(r.target[this.axis]-=d,r.current[this.axis]-=d,r.requestTick())}for(const t of d)this.emit("initSlide",t,t.index)}prependSlide(t){this.addSlide(0,t)}appendSlide(t){this.addSlide(this.slides.length,t)}removeSlide(t){const e=this.slides.length;t=(t%e+e)%e;const n=this.slides[t];if(n){this.removeSlideEl(n,!0),this.slides.splice(t,1);for(let t=0;t<this.slides.length;t++)this.slides[t].index=t;this.updateMetrics(),this.slideTo(this.page,{friction:0,transition:!1}),this.emit("destroySlide",n)}}updateMetrics(){const{panzoom:t,viewport:e,track:n,slides:s,isHorizontal:o,isInfinite:r}=this;if(!n)return;const a=o?"width":"height",c=o?"offsetWidth":"offsetHeight";if(e){let t=Math.max(e[c],i(e.getBoundingClientRect()[a],1e3)),n=getComputedStyle(e),s="padding",r=o?"Right":"Bottom";t-=parseFloat(n[s+(o?"Left":"Top")])+parseFloat(n[s+r]),this.viewportDim=t}let l,u=0;for(const[t,e]of s.entries()){let n=0,o=0;!e.el&&l?(n=l.dim,o=l.gap):(({dim:n,gap:o}=this.getSlideMetrics(e)),l=e),n=i(n,1e3),o=i(o,1e3),e.dim=n,e.gap=o,e.pos=u,u+=n,(r||t<s.length-1)&&(u+=o)}u=i(u,1e3),this.contentDim=u,t&&(t.contentRect[a]=u,t.contentRect[o?"fullWidth":"fullHeight"]=u),this.pages=this.createPages(),this.pages=this.processPages(),this.state===z.Init&&this.setInitialPage(),this.page=Math.max(0,Math.min(this.page,this.pages.length-1)),this.manageSlideVisiblity(),this.emit("refresh")}getProgress(t,e=!1,n=!1){void 0===t&&(t=this.page);const s=this,o=s.panzoom,r=s.contentDim,a=s.pages[t]||0;if(!a||!o)return t>this.page?-1:1;let c=-1*o.current.e,l=i((c-a.pos)/(1*a.dim),1e3),u=l,d=l;this.isInfinite&&!0!==n&&(u=i((c-a.pos+r)/(1*a.dim),1e3),d=i((c-a.pos-r)/(1*a.dim),1e3));let h=[l,u,d].reduce((function(t,e){return Math.abs(e)<Math.abs(t)?e:t}));return e?h:h>1?1:h<-1?-1:h}setViewportHeight(){const{page:t,pages:e,viewport:n,isHorizontal:i}=this;if(!n||!e[t])return;let s=0;i&&this.track&&(this.track.style.height="auto",e[t].slides.forEach((t=>{t.el&&(s=Math.max(s,t.el.offsetHeight))}))),n.style.height=s?`${s}px`:""}getPageForSlide(t){for(const e of this.pages)for(const n of e.slides)if(n.index===t)return e.index;return-1}getVisibleSlides(t=0){var e;const n=new Set;let{panzoom:i,contentDim:s,viewportDim:o,pages:r,page:a}=this;if(o){s=s+(null===(e=this.slides[this.slides.length-1])||void 0===e?void 0:e.gap)||0;let c=0;c=i&&i.state!==y.Init&&i.state!==y.Destroy?-1*i.current[this.axis]:r[a]&&r[a].pos||0,this.isInfinite&&(c-=Math.floor(c/s)*s),this.isRTL&&this.isHorizontal&&(c*=-1);const l=c-o*t,u=c+o*(t+1),d=this.isInfinite?[-1,0,1]:[0];for(const t of this.slides)for(const e of d){const i=t.pos+e*s,o=i+t.dim+t.gap;i<u&&o>l&&n.add(t)}}return n}getPageFromPosition(t){const{viewportDim:e,contentDim:n,slides:i,pages:s,panzoom:o}=this,r=s.length,a=i.length,c=i[0],l=i[a-1],u=this.option("center");let d=0,h=0,p=0,f=void 0===t?-1*((null==o?void 0:o.target[this.axis])||0):t;u&&(f+=.5*e),this.isInfinite?(f<c.pos-.5*l.gap&&(f-=n,p=-1),f>l.pos+l.dim+.5*l.gap&&(f-=n,p=1)):f=Math.max(c.pos||0,Math.min(f,l.pos));let m=l,g=i.find((t=>{const e=t.pos-.5*m.gap,n=t.pos+t.dim+.5*t.gap;return m=t,f>=e&&f<n}));return g||(g=l),h=this.getPageForSlide(g.index),d=h+p*r,{page:d,pageIndex:h}}setPageFromPosition(){const{pageIndex:t}=this.getPageFromPosition();this.onChange(t)}destroy(){if([z.Destroy].includes(this.state))return;this.state=z.Destroy;const{container:t,viewport:e,track:n,slides:i,panzoom:s}=this,o=this.option("classes");t.removeEventListener("click",this.onClick,{passive:!1,capture:!1}),t.removeEventListener("slideTo",this.onSlideTo),window.removeEventListener("resize",this.onResize),s&&(s.destroy(),this.panzoom=null),i&&i.forEach((t=>{this.removeSlideEl(t)})),this.detachPlugins(),e&&(e.removeEventListener("scroll",this.onScroll),e.offsetParent&&n&&n.offsetParent&&e.replaceWith(...n.childNodes));for(const[e,n]of Object.entries(o))"container"!==e&&n&&t.classList.remove(n);this.track=null,this.viewport=null,this.page=0,this.slides=[];const r=this.events.get("ready");this.events=new Map,r&&this.events.set("ready",r)}}Object.defineProperty(Q,"Panzoom",{enumerable:!0,configurable:!0,writable:!0,value:R}),Object.defineProperty(Q,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:{viewport:null,track:null,enabled:!0,slides:[],axis:"x",transition:"fade",preload:1,slidesPerPage:"auto",initialPage:0,friction:.12,Panzoom:{decelFriction:.12},center:!0,infinite:!0,fill:!0,dragFree:!1,adaptiveHeight:!1,direction:"ltr",classes:{container:"f-carousel",viewport:"f-carousel__viewport",track:"f-carousel__track",slide:"f-carousel__slide",isLTR:"is-ltr",isRTL:"is-rtl",isHorizontal:"is-horizontal",isVertical:"is-vertical",inTransition:"in-transition",isSelected:"is-selected"},l10n:{NEXT:"Next slide",PREV:"Previous slide",GOTO:"Go to slide #%d"}}}),Object.defineProperty(Q,"Plugins",{enumerable:!0,configurable:!0,writable:!0,value:K});const tt=function(t){if(!T(t))return 0;const e=window.scrollY,n=window.innerHeight,i=e+n,s=t.getBoundingClientRect(),o=s.y+e,r=s.height,a=o+r;if(e>a||i<o)return 0;if(e<o&&i>a)return 100;if(o<e&&a>i)return 100;let c=r;o<e&&(c-=e-o),a>i&&(c-=a-i);const l=c/n*100;return Math.round(l)},et=!("undefined"==typeof window||!window.document||!window.document.createElement);let nt;const it=["a[href]","area[href]",'input:not([disabled]):not([type="hidden"]):not([aria-hidden])',"select:not([disabled]):not([aria-hidden])","textarea:not([disabled]):not([aria-hidden])","button:not([disabled]):not([aria-hidden]):not(.fancybox-focus-guard)","iframe","object","embed","video","audio","[contenteditable]",'[tabindex]:not([tabindex^="-"]):not([disabled]):not([aria-hidden])'].join(","),st=t=>{if(t&&et){void 0===nt&&document.createElement("div").focus({get preventScroll(){return nt=!0,!1}});try{if(nt)t.focus({preventScroll:!0});else{const e=window.scrollY||document.body.scrollTop,n=window.scrollX||document.body.scrollLeft;t.focus(),document.body.scrollTo({top:e,left:n,behavior:"auto"})}}catch(t){}}},ot=()=>{const t=document;let e,n="",i="",s="";return t.fullscreenEnabled?(n="requestFullscreen",i="exitFullscreen",s="fullscreenElement"):t.webkitFullscreenEnabled&&(n="webkitRequestFullscreen",i="webkitExitFullscreen",s="webkitFullscreenElement"),n&&(e={request:function(e=t.documentElement){return"webkitRequestFullscreen"===n?e[n](Element.ALLOW_KEYBOARD_INPUT):e[n]()},exit:function(){return t[s]&&t[i]()},isFullscreen:function(){return t[s]}}),e},rt={animated:!0,autoFocus:!0,backdropClick:"close",Carousel:{classes:{container:"fancybox__carousel",viewport:"fancybox__viewport",track:"fancybox__track",slide:"fancybox__slide"}},closeButton:"auto",closeExisting:!1,commonCaption:!1,compact:()=>window.matchMedia("(max-width: 578px), (max-height: 578px)").matches,contentClick:"toggleZoom",contentDblClick:!1,defaultType:"image",defaultDisplay:"flex",dragToClose:!0,Fullscreen:{autoStart:!1},groupAll:!1,groupAttr:"data-fancybox",hideClass:"f-fadeOut",hideScrollbar:!0,idle:3500,keyboard:{Escape:"close",Delete:"close",Backspace:"close",PageUp:"next",PageDown:"prev",ArrowUp:"prev",ArrowDown:"next",ArrowRight:"next",ArrowLeft:"prev"},l10n:Object.assign(Object.assign({},E),{CLOSE:"Close",NEXT:"Next",PREV:"Previous",MODAL:"You can close this modal content with the ESC key",ERROR:"Something Went Wrong, Please Try Again Later",IMAGE_ERROR:"Image Not Found",ELEMENT_NOT_FOUND:"HTML Element Not Found",AJAX_NOT_FOUND:"Error Loading AJAX : Not Found",AJAX_FORBIDDEN:"Error Loading AJAX : Forbidden",IFRAME_ERROR:"Error Loading Page",TOGGLE_ZOOM:"Toggle zoom level",TOGGLE_THUMBS:"Toggle thumbnails",TOGGLE_SLIDESHOW:"Toggle slideshow",TOGGLE_FULLSCREEN:"Toggle full-screen mode",DOWNLOAD:"Download"}),parentEl:null,placeFocusBack:!0,showClass:"f-zoomInUp",startIndex:0,tpl:{closeButton:'<button data-fancybox-close class="f-button is-close-btn" title="{{CLOSE}}"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" tabindex="-1"><path d="M20 20L4 4m16 0L4 20"/></svg></button>',main:'<div class="fancybox__container" role="dialog" aria-modal="true" aria-label="{{MODAL}}" tabindex="-1">\n    <div class="fancybox__backdrop"></div>\n    <div class="fancybox__carousel"></div>\n    <div class="fancybox__footer"></div>\n  </div>'},trapFocus:!0,wheel:"zoom"};var at,ct;!function(t){t[t.Init=0]="Init",t[t.Ready=1]="Ready",t[t.Closing=2]="Closing",t[t.CustomClosing=3]="CustomClosing",t[t.Destroy=4]="Destroy"}(at||(at={})),function(t){t[t.Loading=0]="Loading",t[t.Opening=1]="Opening",t[t.Ready=2]="Ready",t[t.Closing=3]="Closing"}(ct||(ct={}));let lt="",ut=!1,dt=!1,ht=null;const pt=()=>{let t="",e="";const n=Ce.getInstance();if(n){const i=n.carousel,s=n.getSlide();if(i&&s){let o=s.slug||void 0,r=s.triggerEl||void 0;e=o||n.option("slug")||"",!e&&r&&r.dataset&&(e=r.dataset.fancybox||""),e&&"true"!==e&&(t="#"+e+(!o&&i.slides.length>1?"-"+(s.index+1):""))}}return{hash:t,slug:e,index:1}},ft=()=>{const t=new URL(document.URL).hash,e=t.slice(1).split("-"),n=e[e.length-1],i=n&&/^\+?\d+$/.test(n)&&parseInt(e.pop()||"1",10)||1;return{hash:t,slug:e.join("-"),index:i}},mt=()=>{const{slug:t,index:e}=ft();if(!t)return;let n=document.querySelector(`[data-slug="${t}"]`);if(n&&n.dispatchEvent(new CustomEvent("click",{bubbles:!0,cancelable:!0})),Ce.getInstance())return;const i=document.querySelectorAll(`[data-fancybox="${t}"]`);i.length&&(n=i[e-1],n&&n.dispatchEvent(new CustomEvent("click",{bubbles:!0,cancelable:!0})))},gt=()=>{if(!1===Ce.defaults.Hash)return;const t=Ce.getInstance();if(!1===(null==t?void 0:t.options.Hash))return;const{slug:e,index:n}=ft(),{slug:i}=pt();t&&(e===i?t.jumpTo(n-1):(ut=!0,t.close())),mt()},vt=()=>{ht&&clearTimeout(ht),queueMicrotask((()=>{gt()}))},bt=()=>{window.addEventListener("hashchange",vt,!1),setTimeout((()=>{gt()}),500)};et&&(/complete|interactive|loaded/.test(document.readyState)?bt():document.addEventListener("DOMContentLoaded",bt));const yt="is-zooming-in";class wt extends H{onCreateSlide(t,e,n){const i=this.instance.optionFor(n,"src")||"";n.el&&"image"===n.type&&"string"==typeof i&&this.setImage(n,i)}onRemoveSlide(t,e,n){n.panzoom&&n.panzoom.destroy(),n.panzoom=void 0,n.imageEl=void 0}onChange(t,e,n,i){C(this.instance.container,yt);for(const t of e.slides){const e=t.panzoom;e&&t.index!==n&&e.reset(.35)}}onClose(){var t;const e=this.instance,n=e.container,i=e.getSlide();if(!n||!n.parentElement||!i)return;const{el:s,contentEl:o,panzoom:r,thumbElSrc:a}=i;if(!s||!a||!o||!r||r.isContentLoading||r.state===y.Init||r.state===y.Destroy)return;r.updateMetrics();let c=this.getZoomInfo(i);if(!c)return;this.instance.state=at.CustomClosing,n.classList.remove(yt),n.classList.add("is-zooming-out"),o.style.backgroundImage=`url('${a}')`;const l=n.getBoundingClientRect();1===((null===(t=window.visualViewport)||void 0===t?void 0:t.scale)||1)&&Object.assign(n.style,{position:"absolute",top:`${n.offsetTop+window.scrollY}px`,left:`${n.offsetLeft+window.scrollX}px`,bottom:"auto",right:"auto",width:`${l.width}px`,height:`${l.height}px`,overflow:"hidden"});const{x:u,y:d,scale:h,opacity:p}=c;if(p){const t=((t,e)=>{const n=e-t;return e=>1+((e-t)/n*-1||0)})(r.scale,h);r.on("afterTransform",(()=>{o.style.opacity=t(r.scale)+""}))}r.on("endAnimation",(()=>{e.destroy()})),r.target.a=h,r.target.b=0,r.target.c=0,r.target.d=h,r.panTo({x:u,y:d,scale:h,friction:p?.2:.33,ignoreBounds:!0}),r.isResting&&e.destroy()}setImage(t,e){const n=this.instance;t.src=e,this.process(t,e).then((e=>{const{contentEl:i,imageEl:s,thumbElSrc:o,el:r}=t;if(n.isClosing()||!i||!s)return;i.offsetHeight;const a=!!n.isOpeningSlide(t)&&this.getZoomInfo(t);if(this.option("protected")&&r){r.addEventListener("contextmenu",(t=>{t.preventDefault()}));const t=document.createElement("div");O(t,"fancybox-protected"),i.appendChild(t)}if(o&&a){const s=e.contentRect,r=Math.max(s.fullWidth,s.fullHeight);let l=null;!a.opacity&&r>1200&&(l=document.createElement("img"),O(l,"fancybox-ghost"),l.src=o,i.appendChild(l));const u=()=>{l&&(O(l,"f-fadeFastOut"),setTimeout((()=>{l&&(l.remove(),l=null)}),200))};(c=o,new Promise(((t,e)=>{const n=new Image;n.onload=t,n.onerror=e,n.src=c}))).then((()=>{n.hideLoading(t),t.state=ct.Opening,this.instance.emit("reveal",t),this.zoomIn(t).then((()=>{u(),this.instance.done(t)}),(()=>{})),l&&setTimeout((()=>{u()}),r>2500?800:200)}),(()=>{n.hideLoading(t),n.revealContent(t)}))}else{const i=this.optionFor(t,"initialSize"),s=this.optionFor(t,"zoom"),o={event:n.prevMouseMoveEvent||n.options.event,friction:s?.12:0};let r=n.optionFor(t,"showClass")||void 0,a=!0;n.isOpeningSlide(t)&&("full"===i?e.zoomToFull(o):"cover"===i?e.zoomToCover(o):"max"===i?e.zoomToMax(o):a=!1,e.stop("current")),a&&r&&(r=e.isDragging?"f-fadeIn":""),n.hideLoading(t),n.revealContent(t,r)}var c}),(()=>{n.setError(t,"{{IMAGE_ERROR}}")}))}process(t,e){return new Promise(((n,i)=>{var s;const o=this.instance,a=t.el;o.clearContent(t),o.showLoading(t);let c=this.optionFor(t,"content");if("string"==typeof c&&(c=r(c)),!c||!T(c)){if(c=document.createElement("img"),c instanceof HTMLImageElement){let n="",i=t.caption;n="string"==typeof i&&i?i.replace(/<[^>]+>/gi,"").substring(0,1e3):`Image ${t.index+1} of ${(null===(s=o.carousel)||void 0===s?void 0:s.pages.length)||1}`,c.src=e||"",c.alt=n,c.draggable=!1,t.srcset&&c.setAttribute("srcset",t.srcset),this.instance.isOpeningSlide(t)&&(c.fetchPriority="high")}t.sizes&&c.setAttribute("sizes",t.sizes)}O(c,"fancybox-image"),t.imageEl=c,o.setContent(t,c,!1),t.panzoom=new R(a,m({transformParent:!0},this.option("Panzoom")||{},{content:c,width:(e,n)=>o.optionFor(t,"width","auto",n)||"auto",height:(e,n)=>o.optionFor(t,"height","auto",n)||"auto",wheel:()=>{const t=o.option("wheel");return("zoom"===t||"pan"==t)&&t},click:(e,n)=>{var i,s;if(o.isCompact||o.isClosing())return!1;if(t.index!==(null===(i=o.getSlide())||void 0===i?void 0:i.index))return!1;if(n){const t=n.composedPath()[0];if(["A","BUTTON","TEXTAREA","OPTION","INPUT","SELECT","VIDEO"].includes(t.nodeName))return!1}let r=!n||n.target&&(null===(s=t.contentEl)||void 0===s?void 0:s.contains(n.target));return o.option(r?"contentClick":"backdropClick")||!1},dblClick:()=>o.isCompact?"toggleZoom":o.option("contentDblClick")||!1,spinner:!1,panOnlyZoomed:!0,wheelLimit:1/0,on:{ready:t=>{n(t)},error:()=>{i()},destroy:()=>{i()}}}))}))}zoomIn(t){return new Promise(((e,n)=>{const i=this.instance,s=i.container,{panzoom:o,contentEl:r,el:a}=t;o&&o.updateMetrics();const c=this.getZoomInfo(t);if(!(c&&a&&r&&o&&s))return void n();const{x:l,y:u,scale:d,opacity:h}=c,p=()=>{t.state!==ct.Closing&&(h&&(r.style.opacity=Math.max(Math.min(1,1-(1-o.scale)/(1-d)),0)+""),o.scale>=1&&o.scale>o.targetScale-.1&&e(o))},f=t=>{(t.scale<.99||t.scale>1.01)&&!t.isDragging||(C(s,yt),r.style.opacity="",t.off("endAnimation",f),t.off("touchStart",f),t.off("afterTransform",p),e(t))};o.on("endAnimation",f),o.on("touchStart",f),o.on("afterTransform",p),o.on(["error","destroy"],(()=>{n()})),o.panTo({x:l,y:u,scale:d,friction:0,ignoreBounds:!0}),o.stop("current");const m={event:"mousemove"===o.panMode?i.prevMouseMoveEvent||i.options.event:void 0},g=this.optionFor(t,"initialSize");O(s,yt),i.hideLoading(t),"full"===g?o.zoomToFull(m):"cover"===g?o.zoomToCover(m):"max"===g?o.zoomToMax(m):o.reset(.172)}))}getZoomInfo(t){const{el:e,imageEl:n,thumbEl:i,panzoom:s}=t,o=this.instance,r=o.container;if(!e||!n||!i||!s||tt(i)<3||!this.optionFor(t,"zoom")||!r||o.state===at.Destroy)return!1;if("0"===getComputedStyle(r).getPropertyValue("--f-images-zoom"))return!1;const a=window.visualViewport||null;if(1!==(a?a.scale:1))return!1;let{top:c,left:l,width:u,height:d}=i.getBoundingClientRect(),{top:h,left:p,fitWidth:f,fitHeight:m}=s.contentRect;if(!(u&&d&&f&&m))return!1;const g=s.container.getBoundingClientRect();p+=g.left,h+=g.top;const v=-1*(p+.5*f-(l+.5*u)),b=-1*(h+.5*m-(c+.5*d)),y=u/f;let w=this.option("zoomOpacity")||!1;return"auto"===w&&(w=Math.abs(u/d-f/m)>.1),{x:v,y:b,scale:y,opacity:w}}attach(){const t=this,e=t.instance;e.on("Carousel.change",t.onChange),e.on("Carousel.createSlide",t.onCreateSlide),e.on("Carousel.removeSlide",t.onRemoveSlide),e.on("close",t.onClose)}detach(){const t=this,e=t.instance;e.off("Carousel.change",t.onChange),e.off("Carousel.createSlide",t.onCreateSlide),e.off("Carousel.removeSlide",t.onRemoveSlide),e.off("close",t.onClose)}}Object.defineProperty(wt,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:{initialSize:"fit",Panzoom:{maxScale:1},protected:!1,zoom:!0,zoomOpacity:"auto"}}),"function"==typeof SuppressedError&&SuppressedError;const Et="html",St="image",_t="map",xt="youtube",Tt="vimeo",Ct="html5video",Ot=(t,e={})=>{const n=new URL(t),i=new URLSearchParams(n.search),s=new URLSearchParams;for(const[t,n]of[...i,...Object.entries(e)]){let e=n+"";if("t"===t){let t=e.match(/((\d*)m)?(\d*)s?/);t&&s.set("start",60*parseInt(t[2]||"0")+parseInt(t[3]||"0")+"")}else s.set(t,e)}let o=s+"",r=t.match(/#t=((.*)?\d+s)/);return r&&(o+=`#t=${r[1]}`),o},At=["image","html","ajax","inline","clone","iframe","map","pdf","html5video","youtube","vimeo"];class Pt extends H{onBeforeInitSlide(t,e,n){this.processType(n)}onCreateSlide(t,e,n){this.setContent(n)}onClearContent(t,e){e.xhr&&(e.xhr.abort(),e.xhr=null);const n=e.iframeEl;n&&(n.onload=n.onerror=null,n.src="//about:blank",e.iframeEl=null);const i=e.contentEl,s=e.placeholderEl;if("inline"===e.type&&i&&s)i.classList.remove("fancybox__content"),"none"!==getComputedStyle(i).getPropertyValue("display")&&(i.style.display="none"),setTimeout((()=>{s&&(i&&s.parentNode&&s.parentNode.insertBefore(i,s),s.remove())}),0),e.contentEl=void 0,e.placeholderEl=void 0;else for(;e.el&&e.el.firstChild;)e.el.removeChild(e.el.firstChild)}onSelectSlide(t,e,n){n.state===ct.Ready&&this.playVideo()}onUnselectSlide(t,e,n){var i,s;if(n.type===Ct){try{null===(s=null===(i=n.el)||void 0===i?void 0:i.querySelector("video"))||void 0===s||s.pause()}catch(t){}return}let o;n.type===Tt?o={method:"pause",value:"true"}:n.type===xt&&(o={event:"command",func:"pauseVideo"}),o&&n.iframeEl&&n.iframeEl.contentWindow&&n.iframeEl.contentWindow.postMessage(JSON.stringify(o),"*"),n.poller&&clearTimeout(n.poller)}onDone(t,e){t.isCurrentSlide(e)&&!t.isClosing()&&this.playVideo()}onRefresh(t,e){e.slides.forEach((t=>{t.el&&(this.resizeIframe(t),this.setAspectRatio(t))}))}onMessage(t){try{let e=JSON.parse(t.data);if("https://player.vimeo.com"===t.origin){if("ready"===e.event)for(let e of Array.from(document.getElementsByClassName("fancybox__iframe")))e instanceof HTMLIFrameElement&&e.contentWindow===t.source&&(e.dataset.ready="true")}else if(t.origin.match(/^https:\/\/(www.)?youtube(-nocookie)?.com$/)&&"onReady"===e.event){const t=document.getElementById(e.id);t&&(t.dataset.ready="true")}}catch(t){}}loadAjaxContent(t){const e=this.instance.optionFor(t,"src")||"";this.instance.showLoading(t);const n=this.instance,i=new XMLHttpRequest;n.showLoading(t),i.onreadystatechange=function(){i.readyState===XMLHttpRequest.DONE&&n.state===at.Ready&&(n.hideLoading(t),200===i.status?n.setContent(t,i.responseText):n.setError(t,404===i.status?"{{AJAX_NOT_FOUND}}":"{{AJAX_FORBIDDEN}}"))};const s=t.ajax||null;i.open(s?"POST":"GET",e+""),i.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),i.setRequestHeader("X-Requested-With","XMLHttpRequest"),i.send(s),t.xhr=i}setInlineContent(t){let e=null;if(T(t.src))e=t.src;else if("string"==typeof t.src){const n=t.src.split("#",2).pop();e=n?document.getElementById(n):null}if(e){if("clone"===t.type||e.closest(".fancybox__slide")){e=e.cloneNode(!0);const n=e.dataset.animationName;n&&(e.classList.remove(n),delete e.dataset.animationName);let i=e.getAttribute("id");i=i?`${i}--clone`:`clone-${this.instance.id}-${t.index}`,e.setAttribute("id",i)}else if(e.parentNode){const n=document.createElement("div");n.classList.add("fancybox-placeholder"),e.parentNode.insertBefore(n,e),t.placeholderEl=n}this.instance.setContent(t,e)}else this.instance.setError(t,"{{ELEMENT_NOT_FOUND}}")}setIframeContent(t){const{src:e,el:n}=t;if(!e||"string"!=typeof e||!n)return;n.classList.add("is-loading");const i=this.instance,s=document.createElement("iframe");s.className="fancybox__iframe",s.setAttribute("id",`fancybox__iframe_${i.id}_${t.index}`);for(const[e,n]of Object.entries(this.optionFor(t,"iframeAttr")||{}))s.setAttribute(e,n);s.onerror=()=>{i.setError(t,"{{IFRAME_ERROR}}")},t.iframeEl=s;const o=this.optionFor(t,"preload");if("iframe"!==t.type||!1===o)return s.setAttribute("src",t.src+""),i.setContent(t,s,!1),this.resizeIframe(t),void i.revealContent(t);i.showLoading(t),s.onload=()=>{if(!s.src.length)return;const e="true"!==s.dataset.ready;s.dataset.ready="true",this.resizeIframe(t),e?i.revealContent(t):i.hideLoading(t)},s.setAttribute("src",e),i.setContent(t,s,!1)}resizeIframe(t){const{type:e,iframeEl:n}=t;if(e===xt||e===Tt)return;const i=null==n?void 0:n.parentElement;if(!n||!i)return;let s=t.autoSize;void 0===s&&(s=this.optionFor(t,"autoSize"));let o=t.width||0,r=t.height||0;o&&r&&(s=!1);const a=i&&i.style;if(!1!==t.preload&&!1!==s&&a)try{const t=window.getComputedStyle(i),e=parseFloat(t.paddingLeft)+parseFloat(t.paddingRight),s=parseFloat(t.paddingTop)+parseFloat(t.paddingBottom),c=n.contentWindow;if(c){const t=c.document,n=t.getElementsByTagName(Et)[0],i=t.body;a.width="",i.style.overflow="hidden",o=o||n.scrollWidth+e,a.width=`${o}px`,i.style.overflow="",a.flex="0 0 auto",a.height=`${i.scrollHeight}px`,r=n.scrollHeight+s}}catch(t){}if(o||r){const t={flex:"0 1 auto",width:"",height:""};o&&"auto"!==o&&(t.width=`${o}px`),r&&"auto"!==r&&(t.height=`${r}px`),Object.assign(a,t)}}playVideo(){const t=this.instance.getSlide();if(!t)return;const{el:e}=t;if(!e||!e.offsetParent)return;if(!this.optionFor(t,"videoAutoplay"))return;if(t.type===Ct)try{const t=e.querySelector("video");if(t){const e=t.play();void 0!==e&&e.then((()=>{})).catch((e=>{t.muted=!0,t.play()}))}}catch(t){}if(t.type!==xt&&t.type!==Tt)return;const n=()=>{if(t.iframeEl&&t.iframeEl.contentWindow){let e;if("true"===t.iframeEl.dataset.ready)return e=t.type===xt?{event:"command",func:"playVideo"}:{method:"play",value:"true"},e&&t.iframeEl.contentWindow.postMessage(JSON.stringify(e),"*"),void(t.poller=void 0);t.type===xt&&(e={event:"listening",id:t.iframeEl.getAttribute("id")},t.iframeEl.contentWindow.postMessage(JSON.stringify(e),"*"))}t.poller=setTimeout(n,250)};n()}processType(t){if(t.html)return t.type=Et,t.src=t.html,void(t.html="");const e=this.instance.optionFor(t,"src","");if(!e||"string"!=typeof e)return;let n=t.type,i=null;if(i=e.match(/(youtube\.com|youtu\.be|youtube\-nocookie\.com)\/(?:watch\?(?:.*&)?v=|v\/|u\/|shorts\/|embed\/?)?(videoseries\?list=(?:.*)|[\w-]{11}|\?listType=(?:.*)&list=(?:.*))(?:.*)/i)){const s=this.optionFor(t,xt),{nocookie:o}=s,r=function(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var s=0;for(i=Object.getOwnPropertySymbols(t);s<i.length;s++)e.indexOf(i[s])<0&&Object.prototype.propertyIsEnumerable.call(t,i[s])&&(n[i[s]]=t[i[s]])}return n}(s,["nocookie"]),a=`www.youtube${o?"-nocookie":""}.com`,c=Ot(e,r),l=encodeURIComponent(i[2]);t.videoId=l,t.src=`https://${a}/embed/${l}?${c}`,t.thumbSrc=t.thumbSrc||`https://i.ytimg.com/vi/${l}/mqdefault.jpg`,n=xt}else if(i=e.match(/^.+vimeo.com\/(?:\/)?([\d]+)((\/|\?h=)([a-z0-9]+))?(.*)?/)){const s=Ot(e,this.optionFor(t,Tt)),o=encodeURIComponent(i[1]),r=i[4]||"";t.videoId=o,t.src=`https://player.vimeo.com/video/${o}?${r?`h=${r}${s?"&":""}`:""}${s}`,n=Tt}if(!n&&t.triggerEl){const e=t.triggerEl.dataset.type;At.includes(e)&&(n=e)}n||"string"==typeof e&&("#"===e.charAt(0)?n="inline":(i=e.match(/\.(mp4|mov|ogv|webm)((\?|#).*)?$/i))?(n=Ct,t.videoFormat=t.videoFormat||"video/"+("ogv"===i[1]?"ogg":i[1])):e.match(/(^data:image\/[a-z0-9+\/=]*,)|(\.(jp(e|g|eg)|gif|png|bmp|webp|svg|ico)((\?|#).*)?$)/i)?n=St:e.match(/\.(pdf)((\?|#).*)?$/i)&&(n="pdf")),(i=e.match(/(?:maps\.)?google\.([a-z]{2,3}(?:\.[a-z]{2})?)\/(?:(?:(?:maps\/(?:place\/(?:.*)\/)?\@(.*),(\d+.?\d+?)z))|(?:\?ll=))(.*)?/i))?(t.src=`https://maps.google.${i[1]}/?ll=${(i[2]?i[2]+"&z="+Math.floor(parseFloat(i[3]))+(i[4]?i[4].replace(/^\//,"&"):""):i[4]+"").replace(/\?/,"&")}&output=${i[4]&&i[4].indexOf("layer=c")>0?"svembed":"embed"}`,n=_t):(i=e.match(/(?:maps\.)?google\.([a-z]{2,3}(?:\.[a-z]{2})?)\/(?:maps\/search\/)(.*)/i))&&(t.src=`https://maps.google.${i[1]}/maps?q=${i[2].replace("query=","q=").replace("api=1","")}&output=embed`,n=_t),n=n||this.instance.option("defaultType"),t.type=n,n===St&&(t.thumbSrc=t.thumbSrc||t.src)}setContent(t){const e=this.instance.optionFor(t,"src")||"";if(t&&t.type&&e){switch(t.type){case Et:this.instance.setContent(t,e);break;case Ct:const n=this.option("videoTpl");n&&this.instance.setContent(t,n.replace(/\{\{src\}\}/gi,e+"").replace(/\{\{format\}\}/gi,this.optionFor(t,"videoFormat")||"").replace(/\{\{poster\}\}/gi,t.poster||t.thumbSrc||""));break;case"inline":case"clone":this.setInlineContent(t);break;case"ajax":this.loadAjaxContent(t);break;case"pdf":case _t:case xt:case Tt:t.preload=!1;case"iframe":this.setIframeContent(t)}this.setAspectRatio(t)}}setAspectRatio(t){const e=t.contentEl;if(!(t.el&&e&&t.type&&[xt,Tt,Ct].includes(t.type)))return;let n,i=t.width||"auto",s=t.height||"auto";if("auto"===i||"auto"===s){n=this.optionFor(t,"videoRatio");const e=(n+"").match(/(\d+)\s*\/\s?(\d+)/);n=e&&e.length>2?parseFloat(e[1])/parseFloat(e[2]):parseFloat(n+"")}else i&&s&&(n=i/s);if(!n)return;e.style.aspectRatio="",e.style.width="",e.style.height="",e.offsetHeight;const o=e.getBoundingClientRect(),r=o.width||1,a=o.height||1;e.style.aspectRatio=n+"",n<r/a?(s="auto"===s?a:Math.min(a,s),e.style.width="auto",e.style.height=`${s}px`):(i="auto"===i?r:Math.min(r,i),e.style.width=`${i}px`,e.style.height="auto")}attach(){const t=this,e=t.instance;e.on("Carousel.beforeInitSlide",t.onBeforeInitSlide),e.on("Carousel.createSlide",t.onCreateSlide),e.on("Carousel.selectSlide",t.onSelectSlide),e.on("Carousel.unselectSlide",t.onUnselectSlide),e.on("Carousel.Panzoom.refresh",t.onRefresh),e.on("done",t.onDone),e.on("clearContent",t.onClearContent),window.addEventListener("message",t.onMessage)}detach(){const t=this,e=t.instance;e.off("Carousel.beforeInitSlide",t.onBeforeInitSlide),e.off("Carousel.createSlide",t.onCreateSlide),e.off("Carousel.selectSlide",t.onSelectSlide),e.off("Carousel.unselectSlide",t.onUnselectSlide),e.off("Carousel.Panzoom.refresh",t.onRefresh),e.off("done",t.onDone),e.off("clearContent",t.onClearContent),window.removeEventListener("message",t.onMessage)}}Object.defineProperty(Pt,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:{ajax:null,autoSize:!0,iframeAttr:{allow:"autoplay; fullscreen",scrolling:"auto"},preload:!0,videoAutoplay:!0,videoRatio:16/9,videoTpl:'<video class="fancybox__html5video" playsinline controls controlsList="nodownload" poster="{{poster}}">\n  <source src="{{src}}" type="{{format}}" />Sorry, your browser doesn\'t support embedded videos.</video>',videoFormat:"",vimeo:{byline:1,color:"00adef",controls:1,dnt:1,muted:0},youtube:{controls:1,enablejsapi:1,nocookie:1,rel:0,fs:1}}});const Lt="play",It="pause",kt="ready";class Dt extends H{constructor(){super(...arguments),Object.defineProperty(this,"state",{enumerable:!0,configurable:!0,writable:!0,value:kt}),Object.defineProperty(this,"inHover",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"timer",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"progressBar",{enumerable:!0,configurable:!0,writable:!0,value:null})}get isActive(){return this.state!==kt}onReady(t){this.option("autoStart")&&(t.isInfinite||t.page<t.pages.length-1)&&this.start()}onChange(){this.removeProgressBar(),this.pause()}onSettle(){this.resume()}onVisibilityChange(){"visible"===document.visibilityState?this.resume():this.pause()}onMouseEnter(){this.inHover=!0,this.pause()}onMouseLeave(){var t;this.inHover=!1,(null===(t=this.instance.panzoom)||void 0===t?void 0:t.isResting)&&this.resume()}onTimerEnd(){const t=this.instance;"play"===this.state&&(t.isInfinite||t.page!==t.pages.length-1?t.slideNext():t.slideTo(0))}removeProgressBar(){this.progressBar&&(this.progressBar.remove(),this.progressBar=null)}createProgressBar(){var t;if(!this.option("showProgress"))return null;this.removeProgressBar();const e=this.instance,n=(null===(t=e.pages[e.page])||void 0===t?void 0:t.slides)||[];let i=this.option("progressParentEl");if(i||(i=(1===n.length?n[0].el:null)||e.viewport),!i)return null;const s=document.createElement("div");return O(s,"f-progress"),i.prepend(s),this.progressBar=s,s.offsetHeight,s}set(){const t=this,e=t.instance;if(e.pages.length<2)return;if(t.timer)return;const n=t.option("timeout");t.state=Lt,O(e.container,"has-autoplay");let i=t.createProgressBar();i&&(i.style.transitionDuration=`${n}ms`,i.style.transform="scaleX(1)"),t.timer=setTimeout((()=>{t.timer=null,t.inHover||t.onTimerEnd()}),n),t.emit("set")}clear(){const t=this;t.timer&&(clearTimeout(t.timer),t.timer=null),t.removeProgressBar()}start(){const t=this;if(t.set(),t.state!==kt){if(t.option("pauseOnHover")){const e=t.instance.container;e.addEventListener("mouseenter",t.onMouseEnter,!1),e.addEventListener("mouseleave",t.onMouseLeave,!1)}document.addEventListener("visibilitychange",t.onVisibilityChange,!1),t.emit("start")}}stop(){const t=this,e=t.state,n=t.instance.container;t.clear(),t.state=kt,n.removeEventListener("mouseenter",t.onMouseEnter,!1),n.removeEventListener("mouseleave",t.onMouseLeave,!1),document.removeEventListener("visibilitychange",t.onVisibilityChange,!1),C(n,"has-autoplay"),e!==kt&&t.emit("stop")}pause(){const t=this;t.state===Lt&&(t.state=It,t.clear(),t.emit(It))}resume(){const t=this,e=t.instance;if(e.isInfinite||e.page!==e.pages.length-1)if(t.state!==Lt){if(t.state===It&&!t.inHover){const e=new Event("resume",{bubbles:!0,cancelable:!0});t.emit("resume",e),e.defaultPrevented||t.set()}}else t.set();else t.stop()}toggle(){this.state===Lt||this.state===It?this.stop():this.start()}attach(){const t=this,e=t.instance;e.on("ready",t.onReady),e.on("Panzoom.startAnimation",t.onChange),e.on("Panzoom.endAnimation",t.onSettle),e.on("Panzoom.touchMove",t.onChange)}detach(){const t=this,e=t.instance;e.off("ready",t.onReady),e.off("Panzoom.startAnimation",t.onChange),e.off("Panzoom.endAnimation",t.onSettle),e.off("Panzoom.touchMove",t.onChange),t.stop()}}Object.defineProperty(Dt,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:{autoStart:!0,pauseOnHover:!0,progressParentEl:null,showProgress:!0,timeout:3e3}});class Nt extends H{constructor(){super(...arguments),Object.defineProperty(this,"ref",{enumerable:!0,configurable:!0,writable:!0,value:null})}onPrepare(t){const e=t.carousel;if(!e)return;const n=t.container;n&&(e.options.Autoplay=m({autoStart:!1},this.option("Autoplay")||{},{pauseOnHover:!1,timeout:this.option("timeout"),progressParentEl:()=>this.option("progressParentEl")||null,on:{start:()=>{t.emit("startSlideshow")},set:e=>{var i;n.classList.add("has-slideshow"),(null===(i=t.getSlide())||void 0===i?void 0:i.state)!==ct.Ready&&e.pause()},stop:()=>{n.classList.remove("has-slideshow"),t.isCompact||t.endIdle(),t.emit("endSlideshow")},resume:(e,n)=>{var i,s,o;!n||!n.cancelable||(null===(i=t.getSlide())||void 0===i?void 0:i.state)===ct.Ready&&(null===(o=null===(s=t.carousel)||void 0===s?void 0:s.panzoom)||void 0===o?void 0:o.isResting)||n.preventDefault()}}}),e.attachPlugins({Autoplay:Dt}),this.ref=e.plugins.Autoplay)}onReady(t){const e=t.carousel,n=this.ref;n&&e&&this.option("playOnStart")&&(e.isInfinite||e.page<e.pages.length-1)&&n.start()}onDone(t,e){const n=this.ref,i=t.carousel;if(!n||!i)return;const s=e.panzoom;s&&s.on("startAnimation",(()=>{t.isCurrentSlide(e)&&n.stop()})),t.isCurrentSlide(e)&&n.resume()}onKeydown(t,e){var n;const i=this.ref;i&&e===this.option("key")&&"BUTTON"!==(null===(n=document.activeElement)||void 0===n?void 0:n.nodeName)&&i.toggle()}attach(){const t=this,e=t.instance;e.on("Carousel.init",t.onPrepare),e.on("Carousel.ready",t.onReady),e.on("done",t.onDone),e.on("keydown",t.onKeydown)}detach(){const t=this,e=t.instance;e.off("Carousel.init",t.onPrepare),e.off("Carousel.ready",t.onReady),e.off("done",t.onDone),e.off("keydown",t.onKeydown)}}Object.defineProperty(Nt,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:{key:" ",playOnStart:!1,progressParentEl:t=>{var e;return(null===(e=t.instance.container)||void 0===e?void 0:e.querySelector(".fancybox__toolbar [data-fancybox-toggle-slideshow]"))||t.instance.container},timeout:3e3}});const Mt={classes:{container:"f-thumbs f-carousel__thumbs",viewport:"f-thumbs__viewport",track:"f-thumbs__track",slide:"f-thumbs__slide",isResting:"is-resting",isSelected:"is-selected",isLoading:"is-loading",hasThumbs:"has-thumbs"},minCount:2,parentEl:null,thumbTpl:'<button class="f-thumbs__slide__button" tabindex="0" type="button" aria-label="{{GOTO}}" data-carousel-index="%i"><img class="f-thumbs__slide__img" data-lazy-src="{{%s}}" alt="" /></button>',type:"modern"};var Rt;!function(t){t[t.Init=0]="Init",t[t.Ready=1]="Ready",t[t.Hidden=2]="Hidden"}(Rt||(Rt={}));const jt="isResting",Ft="thumbWidth",zt="thumbHeight",Bt="thumbClipWidth";let $t=class extends H{constructor(){super(...arguments),Object.defineProperty(this,"type",{enumerable:!0,configurable:!0,writable:!0,value:"modern"}),Object.defineProperty(this,"container",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"track",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"carousel",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"thumbWidth",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"thumbClipWidth",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"thumbHeight",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"thumbGap",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"thumbExtraGap",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"state",{enumerable:!0,configurable:!0,writable:!0,value:Rt.Init})}get isModern(){return"modern"===this.type}onInitSlide(t,e){const n=e.el?e.el.dataset:void 0;n&&(e.thumbSrc=n.thumbSrc||e.thumbSrc||"",e[Bt]=parseFloat(n[Bt]||"")||e[Bt]||0,e[zt]=parseFloat(n.thumbHeight||"")||e[zt]||0),this.addSlide(e)}onInitSlides(){this.build()}onChange(){var t;if(!this.isModern)return;const e=this.container,n=this.instance,i=n.panzoom,s=this.carousel,o=s?s.panzoom:null,r=n.page;if(i&&s&&o){if(i.isDragging){C(e,this.cn(jt));let i=(null===(t=s.pages[r])||void 0===t?void 0:t.pos)||0;i+=n.getProgress(r)*(this[Bt]+this.thumbGap);let a=o.getBounds();-1*i>a.x.min&&-1*i<a.x.max&&o.panTo({x:-1*i,friction:.12})}else c(e,this.cn(jt),i.isResting);this.shiftModern()}}onRefresh(){this.updateProps();for(const t of this.instance.slides||[])this.resizeModernSlide(t);this.shiftModern()}isDisabled(){const t=this.option("minCount")||0;if(t){const e=this.instance;let n=0;for(const t of e.slides||[])t.thumbSrc&&n++;if(n<t)return!0}const e=this.option("type");return["modern","classic"].indexOf(e)<0}getThumb(t){const e=this.option("thumbTpl")||"";return{html:this.instance.localize(e,[["%i",t.index],["%d",t.index+1],["%s",t.thumbSrc||"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"]])}}addSlide(t){const e=this.carousel;e&&e.addSlide(t.index,this.getThumb(t))}getSlides(){const t=[];for(const e of this.instance.slides||[])t.push(this.getThumb(e));return t}resizeModernSlide(t){this.isModern&&(t[Ft]=t[Bt]&&t[zt]?Math.round(this[zt]*(t[Bt]/t[zt])):this[Ft])}updateProps(){const t=this.container;if(!t)return;const e=e=>parseFloat(getComputedStyle(t).getPropertyValue("--f-thumb-"+e))||0;this.thumbGap=e("gap"),this.thumbExtraGap=e("extra-gap"),this[Ft]=e("width")||40,this[Bt]=e("clip-width")||40,this[zt]=e("height")||40}build(){const t=this;if(t.state!==Rt.Init)return;if(t.isDisabled())return void t.emit("disabled");const e=t.instance,n=e.container,i=t.getSlides(),s=t.option("type");t.type=s;const o=t.option("parentEl"),r=t.cn("container"),a=t.cn("track");let c=null==o?void 0:o.querySelector("."+r);c||(c=document.createElement("div"),O(c,r),o?o.appendChild(c):n.after(c)),O(c,`is-${s}`),O(n,t.cn("hasThumbs")),t.container=c,t.updateProps();let l=c.querySelector("."+a);l||(l=document.createElement("div"),O(l,t.cn("track")),c.appendChild(l)),t.track=l;const u=m({},{track:l,infinite:!1,center:!0,fill:"classic"===s,dragFree:!0,slidesPerPage:1,transition:!1,preload:.25,friction:.12,Panzoom:{maxVelocity:0},Dots:!1,Navigation:!1,classes:{container:"f-thumbs",viewport:"f-thumbs__viewport",track:"f-thumbs__track",slide:"f-thumbs__slide"}},t.option("Carousel")||{},{Sync:{target:e},slides:i}),d=new e.constructor(c,u);d.on("createSlide",((e,n)=>{t.setProps(n.index),t.emit("createSlide",n,n.el)})),d.on("ready",(()=>{t.shiftModern(),t.emit("ready")})),d.on("refresh",(()=>{t.shiftModern()})),d.on("Panzoom.click",((e,n,i)=>{t.onClick(i)})),t.carousel=d,t.state=Rt.Ready}onClick(t){t.preventDefault(),t.stopPropagation();const e=this.instance,{pages:n,page:i}=e,s=t=>{if(t){const e=t.closest("[data-carousel-index]");if(e)return[parseInt(e.dataset.carouselIndex||"",10)||0,e]}return[-1,void 0]},o=(t,e)=>{const n=document.elementFromPoint(t,e);return n?s(n):[-1,void 0]};let[r,a]=s(t.target);if(r>-1)return;const c=this[Bt],l=t.clientX,u=t.clientY;let[d,h]=o(l-c,u),[p,f]=o(l+c,u);h&&f?(r=Math.abs(l-h.getBoundingClientRect().right)<Math.abs(l-f.getBoundingClientRect().left)?d:p,r===i&&(r=r===d?p:d)):h?r=d:f&&(r=p),r>-1&&n[r]&&e.slideTo(r)}getShift(t){var e;const n=this,{instance:i}=n,s=n.carousel;if(!i||!s)return 0;const o=n[Ft],r=n[Bt],a=n.thumbGap,c=n.thumbExtraGap;if(!(null===(e=s.slides[t])||void 0===e?void 0:e.el))return 0;const l=.5*(o-r),u=i.pages.length-1;let d=i.getProgress(0),h=i.getProgress(u),p=i.getProgress(t,!1,!0),f=0,m=l+c+a;const g=d<0&&d>-1,v=h>0&&h<1;return 0===t?(f=m*Math.abs(d),v&&1===d&&(f-=m*Math.abs(h))):t===u?(f=m*Math.abs(h)*-1,g&&-1===h&&(f+=m*Math.abs(d))):g||v?(f=-1*m,f+=m*Math.abs(d),f+=m*(1-Math.abs(h))):f=m*p,f}setProps(t){var e;const n=this;if(!n.isModern)return;const{instance:s}=n,o=n.carousel;if(s&&o){const r=null===(e=o.slides[t])||void 0===e?void 0:e.el;if(r&&r.childNodes.length){let e=i(1-Math.abs(s.getProgress(t))),o=i(n.getShift(t));r.style.setProperty("--progress",e?e+"":""),r.style.setProperty("--shift",o+"")}}}shiftModern(){const t=this;if(!t.isModern)return;const{instance:e,track:n}=t,i=e.panzoom,s=t.carousel;if(!(e&&n&&i&&s))return;if(i.state===y.Init||i.state===y.Destroy)return;for(const n of e.slides)t.setProps(n.index);let o=(t[Bt]+t.thumbGap)*(s.slides.length||0);n.style.setProperty("--width",o+"")}cleanup(){const t=this;t.carousel&&t.carousel.destroy(),t.carousel=null,t.container&&t.container.remove(),t.container=null,t.track&&t.track.remove(),t.track=null,t.state=Rt.Init,C(t.instance.container,t.cn("hasThumbs"))}attach(){const t=this,e=t.instance;e.on("initSlide",t.onInitSlide),e.state===z.Init?e.on("initSlides",t.onInitSlides):t.onInitSlides(),e.on(["change","Panzoom.afterTransform"],t.onChange),e.on("Panzoom.refresh",t.onRefresh)}detach(){const t=this,e=t.instance;e.off("initSlide",t.onInitSlide),e.off("initSlides",t.onInitSlides),e.off(["change","Panzoom.afterTransform"],t.onChange),e.off("Panzoom.refresh",t.onRefresh),t.cleanup()}};Object.defineProperty($t,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:Mt});const Ht=Object.assign(Object.assign({},Mt),{key:"t",showOnStart:!0,parentEl:null}),Ut="is-masked",Wt="aria-hidden";class qt extends H{constructor(){super(...arguments),Object.defineProperty(this,"ref",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"hidden",{enumerable:!0,configurable:!0,writable:!0,value:!1})}get isEnabled(){const t=this.ref;return t&&!t.isDisabled()}get isHidden(){return this.hidden}onClick(t,e){e.stopPropagation()}onCreateSlide(t,e){var n,i,s;const o=(null===(s=null===(i=null===(n=this.instance)||void 0===n?void 0:n.carousel)||void 0===i?void 0:i.slides[e.index])||void 0===s?void 0:s.type)||"",r=e.el;if(r&&o){let t=`for-${o}`;["video","youtube","vimeo","html5video"].includes(o)&&(t+=" for-video"),O(r,t)}}onInit(){var t;const e=this,n=e.instance,i=n.carousel;if(e.ref||!i)return;const s=e.option("parentEl")||n.footer||n.container;if(!s)return;const o=m({},e.options,{parentEl:s,classes:{container:"f-thumbs fancybox__thumbs"},Carousel:{Sync:{friction:n.option("Carousel.friction")||0}},on:{ready:t=>{const n=t.container;n&&this.hidden&&(e.refresh(),n.style.transition="none",e.hide(),n.offsetHeight,queueMicrotask((()=>{n.style.transition="",e.show()})))}}});o.Carousel=o.Carousel||{},o.Carousel.on=m((null===(t=e.options.Carousel)||void 0===t?void 0:t.on)||{},{click:this.onClick,createSlide:this.onCreateSlide}),i.options.Thumbs=o,i.attachPlugins({Thumbs:$t}),e.ref=i.plugins.Thumbs,e.option("showOnStart")||(e.ref.state=Rt.Hidden,e.hidden=!0)}onResize(){var t;const e=null===(t=this.ref)||void 0===t?void 0:t.container;e&&(e.style.maxHeight="")}onKeydown(t,e){const n=this.option("key");n&&n===e&&this.toggle()}toggle(){const t=this.ref;if(t&&!t.isDisabled())return t.state===Rt.Hidden?(t.state=Rt.Init,void t.build()):void(this.hidden?this.show():this.hide())}show(){const t=this.ref;if(!t||t.isDisabled())return;const e=t.container;e&&(this.refresh(),e.offsetHeight,e.removeAttribute(Wt),e.classList.remove(Ut),this.hidden=!1)}hide(){const t=this.ref,e=t&&t.container;e&&(this.refresh(),e.offsetHeight,e.classList.add(Ut),e.setAttribute(Wt,"true")),this.hidden=!0}refresh(){const t=this.ref;if(!t||!t.state)return;const e=t.container,n=(null==e?void 0:e.firstChild)||null;e&&n&&n.childNodes.length&&(e.style.maxHeight=`${n.getBoundingClientRect().height}px`)}attach(){const t=this,e=t.instance;e.state===at.Init?e.on("Carousel.init",t.onInit):t.onInit(),e.on("resize",t.onResize),e.on("keydown",t.onKeydown)}detach(){var t;const e=this,n=e.instance;n.off("Carousel.init",e.onInit),n.off("resize",e.onResize),n.off("keydown",e.onKeydown),null===(t=n.carousel)||void 0===t||t.detachPlugins(["Thumbs"]),e.ref=null}}Object.defineProperty(qt,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:Ht});const Vt={panLeft:{icon:'<svg><path d="M5 12h14M5 12l6 6M5 12l6-6"/></svg>',change:{panX:-100}},panRight:{icon:'<svg><path d="M5 12h14M13 18l6-6M13 6l6 6"/></svg>',change:{panX:100}},panUp:{icon:'<svg><path d="M12 5v14M18 11l-6-6M6 11l6-6"/></svg>',change:{panY:-100}},panDown:{icon:'<svg><path d="M12 5v14M18 13l-6 6M6 13l6 6"/></svg>',change:{panY:100}},zoomIn:{icon:'<svg><circle cx="11" cy="11" r="7.5"/><path d="m21 21-4.35-4.35M11 8v6M8 11h6"/></svg>',action:"zoomIn"},zoomOut:{icon:'<svg><circle cx="11" cy="11" r="7.5"/><path d="m21 21-4.35-4.35M8 11h6"/></svg>',action:"zoomOut"},toggle1to1:{icon:'<svg><path d="M3.51 3.07c5.74.02 11.48-.02 17.22.02 1.37.1 2.34 1.64 2.18 3.13 0 4.08.02 8.16 0 12.23-.1 1.54-1.47 2.64-2.79 2.46-5.61-.01-11.24.02-16.86-.01-1.36-.12-2.33-1.65-2.17-3.14 0-4.07-.02-8.16 0-12.23.1-1.36 1.22-2.48 2.42-2.46Z"/><path d="M5.65 8.54h1.49v6.92m8.94-6.92h1.49v6.92M11.5 9.4v.02m0 5.18v0"/></svg>',action:"toggleZoom"},toggleZoom:{icon:'<svg><g><line x1="11" y1="8" x2="11" y2="14"></line></g><circle cx="11" cy="11" r="7.5"/><path d="m21 21-4.35-4.35M8 11h6"/></svg>',action:"toggleZoom"},iterateZoom:{icon:'<svg><g><line x1="11" y1="8" x2="11" y2="14"></line></g><circle cx="11" cy="11" r="7.5"/><path d="m21 21-4.35-4.35M8 11h6"/></svg>',action:"iterateZoom"},rotateCCW:{icon:'<svg><path d="M15 4.55a8 8 0 0 0-6 14.9M9 15v5H4M18.37 7.16v.01M13 19.94v.01M16.84 18.37v.01M19.37 15.1v.01M19.94 11v.01"/></svg>',action:"rotateCCW"},rotateCW:{icon:'<svg><path d="M9 4.55a8 8 0 0 1 6 14.9M15 15v5h5M5.63 7.16v.01M4.06 11v.01M4.63 15.1v.01M7.16 18.37v.01M11 19.94v.01"/></svg>',action:"rotateCW"},flipX:{icon:'<svg style="stroke-width: 1.3"><path d="M12 3v18M16 7v10h5L16 7M8 7v10H3L8 7"/></svg>',action:"flipX"},flipY:{icon:'<svg style="stroke-width: 1.3"><path d="M3 12h18M7 16h10L7 21v-5M7 8h10L7 3v5"/></svg>',action:"flipY"},fitX:{icon:'<svg><path d="M4 12V6a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v6M10 18H3M21 18h-7M6 15l-3 3 3 3M18 15l3 3-3 3"/></svg>',action:"fitX"},fitY:{icon:'<svg><path d="M12 20H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h6M18 14v7M18 3v7M15 18l3 3 3-3M15 6l3-3 3 3"/></svg>',action:"fitY"},reset:{icon:'<svg><path d="M20 11A8.1 8.1 0 0 0 4.5 9M4 5v4h4M4 13a8.1 8.1 0 0 0 15.5 2m.5 4v-4h-4"/></svg>',action:"reset"},toggleFS:{icon:'<svg><g><path d="M14.5 9.5 21 3m0 0h-6m6 0v6M3 21l6.5-6.5M3 21v-6m0 6h6"/></g><g><path d="m14 10 7-7m-7 7h6m-6 0V4M3 21l7-7m0 0v6m0-6H4"/></g></svg>',action:"toggleFS"}};var Gt;!function(t){t[t.Init=0]="Init",t[t.Ready=1]="Ready",t[t.Disabled=2]="Disabled"}(Gt||(Gt={}));const Xt={tabindex:"-1",width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Kt="has-toolbar",Yt="fancybox__toolbar";class Jt extends H{constructor(){super(...arguments),Object.defineProperty(this,"state",{enumerable:!0,configurable:!0,writable:!0,value:Gt.Init}),Object.defineProperty(this,"container",{enumerable:!0,configurable:!0,writable:!0,value:null})}onReady(t){var e;if(!t.carousel)return;let n=this.option("display"),i=this.option("absolute"),s=this.option("enabled");if("auto"===s){const t=this.instance.carousel;let e=0;if(t)for(const n of t.slides)(n.panzoom||"image"===n.type)&&e++;e||(s=!1)}s||(n=void 0);let o=0;const r={left:[],middle:[],right:[]};if(n)for(const t of["left","middle","right"])for(const i of n[t]){const n=this.createEl(i);n&&(null===(e=r[t])||void 0===e||e.push(n),o++)}let a=null;if(o&&(a=this.createContainer()),a){for(const[t,e]of Object.entries(r)){const n=document.createElement("div");O(n,Yt+"__column is-"+t);for(const t of e)n.appendChild(t);"auto"!==i||"middle"!==t||e.length||(i=!0),a.appendChild(n)}!0===i&&O(a,"is-absolute"),this.state=Gt.Ready,this.onRefresh()}else this.state=Gt.Disabled}onClick(t){var e,n;const i=this.instance,s=i.getSlide(),o=null==s?void 0:s.panzoom,r=t.target,a=r&&T(r)?r.dataset:null;if(!a)return;if(void 0!==a.fancyboxToggleThumbs)return t.preventDefault(),t.stopPropagation(),void(null===(e=i.plugins.Thumbs)||void 0===e||e.toggle());if(void 0!==a.fancyboxToggleFullscreen)return t.preventDefault(),t.stopPropagation(),void this.instance.toggleFullscreen();if(void 0!==a.fancyboxToggleSlideshow){t.preventDefault(),t.stopPropagation();const e=null===(n=i.carousel)||void 0===n?void 0:n.plugins.Autoplay;let s=e.isActive;return o&&"mousemove"===o.panMode&&!s&&o.reset(),void(s?e.stop():e.start())}const c=a.panzoomAction,l=a.panzoomChange;if((l||c)&&(t.preventDefault(),t.stopPropagation()),l){let e={};try{e=JSON.parse(l)}catch(t){}o&&o.applyChange(e)}else c&&o&&o[c]&&o[c]()}onChange(){this.onRefresh()}onRefresh(){if(this.instance.isClosing())return;const t=this.container;if(!t)return;const e=this.instance.getSlide();if(!e||e.state!==ct.Ready)return;const n=e&&!e.error&&e.panzoom;for(const e of t.querySelectorAll("[data-panzoom-action]"))n?(e.removeAttribute("disabled"),e.removeAttribute("tabindex")):(e.setAttribute("disabled",""),e.setAttribute("tabindex","-1"));let i=n&&n.canZoomIn(),s=n&&n.canZoomOut();for(const e of t.querySelectorAll('[data-panzoom-action="zoomIn"]'))i?(e.removeAttribute("disabled"),e.removeAttribute("tabindex")):(e.setAttribute("disabled",""),e.setAttribute("tabindex","-1"));for(const e of t.querySelectorAll('[data-panzoom-action="zoomOut"]'))s?(e.removeAttribute("disabled"),e.removeAttribute("tabindex")):(e.setAttribute("disabled",""),e.setAttribute("tabindex","-1"));for(const e of t.querySelectorAll('[data-panzoom-action="toggleZoom"],[data-panzoom-action="iterateZoom"]')){s||i?(e.removeAttribute("disabled"),e.removeAttribute("tabindex")):(e.setAttribute("disabled",""),e.setAttribute("tabindex","-1"));const t=e.querySelector("g");t&&(t.style.display=i?"":"none")}}onDone(t,e){var n;null===(n=e.panzoom)||void 0===n||n.on("afterTransform",(()=>{this.instance.isCurrentSlide(e)&&this.onRefresh()})),this.instance.isCurrentSlide(e)&&this.onRefresh()}createContainer(){const t=this.instance.container;if(!t)return null;const e=this.option("parentEl")||t;let n=e.querySelector("."+Yt);return n||(n=document.createElement("div"),O(n,Yt),e.prepend(n)),n.addEventListener("click",this.onClick,{passive:!1,capture:!0}),t&&O(t,Kt),this.container=n,n}createEl(t){const e=this.instance,n=e.carousel;if(!n)return null;if("toggleFS"===t)return null;if("fullscreen"===t&&!ot())return null;let i=null;const s=n.slides.length||0;let o=0,a=0;for(const t of n.slides)(t.panzoom||"image"===t.type)&&o++,("image"===t.type||t.downloadSrc)&&a++;if(s<2&&["infobar","prev","next"].includes(t))return i;if(void 0!==Vt[t]&&!o)return null;if("download"===t&&!a)return null;if("thumbs"===t){const t=e.plugins.Thumbs;if(!t||!t.isEnabled)return null}if("slideshow"===t&&(!n.plugins.Autoplay||s<2))return null;if(void 0!==Vt[t]){const e=Vt[t];i=document.createElement("button"),i.setAttribute("title",this.instance.localize(`{{${t.toUpperCase()}}}`)),O(i,"f-button"),e.action&&(i.dataset.panzoomAction=e.action),e.change&&(i.dataset.panzoomChange=JSON.stringify(e.change)),i.appendChild(r(this.instance.localize(e.icon)))}else{const e=(this.option("items")||[])[t];e&&(i=r(this.instance.localize(e.tpl)),"function"==typeof e.click&&i.addEventListener("click",(t=>{t.preventDefault(),t.stopPropagation(),"function"==typeof e.click&&e.click.call(this,this,t)})))}const c=null==i?void 0:i.querySelector("svg");if(c)for(const[t,e]of Object.entries(Xt))c.getAttribute(t)||c.setAttribute(t,String(e));return i}removeContainer(){const t=this.container;t&&t.remove(),this.container=null,this.state=Gt.Disabled;const e=this.instance.container;e&&C(e,Kt)}attach(){const t=this,e=t.instance;e.on("Carousel.initSlides",t.onReady),e.on("done",t.onDone),e.on(["reveal","Carousel.change"],t.onChange),t.onReady(t.instance)}detach(){const t=this,e=t.instance;e.off("Carousel.initSlides",t.onReady),e.off("done",t.onDone),e.off(["reveal","Carousel.change"],t.onChange),t.removeContainer()}}Object.defineProperty(Jt,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:{absolute:"auto",display:{left:["infobar"],middle:[],right:["iterateZoom","slideshow","fullscreen","thumbs","close"]},enabled:"auto",items:{infobar:{tpl:'<div class="fancybox__infobar" tabindex="-1"><span data-fancybox-current-index></span>/<span data-fancybox-count></span></div>'},download:{tpl:'<a class="f-button" title="{{DOWNLOAD}}" data-fancybox-download href="javasript:;"><svg><path d="M4 17v2a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-2M7 11l5 5 5-5M12 4v12"/></svg></a>'},prev:{tpl:'<button class="f-button" title="{{PREV}}" data-fancybox-prev><svg><path d="m15 6-6 6 6 6"/></svg></button>'},next:{tpl:'<button class="f-button" title="{{NEXT}}" data-fancybox-next><svg><path d="m9 6 6 6-6 6"/></svg></button>'},slideshow:{tpl:'<button class="f-button" title="{{TOGGLE_SLIDESHOW}}" data-fancybox-toggle-slideshow><svg><g><path d="M8 4v16l13 -8z"></path></g><g><path d="M8 4v15M17 4v15"/></g></svg></button>'},fullscreen:{tpl:'<button class="f-button" title="{{TOGGLE_FULLSCREEN}}" data-fancybox-toggle-fullscreen><svg><g><path d="M4 8V6a2 2 0 0 1 2-2h2M4 16v2a2 2 0 0 0 2 2h2M16 4h2a2 2 0 0 1 2 2v2M16 20h2a2 2 0 0 0 2-2v-2"/></g><g><path d="M15 19v-2a2 2 0 0 1 2-2h2M15 5v2a2 2 0 0 0 2 2h2M5 15h2a2 2 0 0 1 2 2v2M5 9h2a2 2 0 0 0 2-2V5"/></g></svg></button>'},thumbs:{tpl:'<button class="f-button" title="{{TOGGLE_THUMBS}}" data-fancybox-toggle-thumbs><svg><circle cx="5.5" cy="5.5" r="1"/><circle cx="12" cy="5.5" r="1"/><circle cx="18.5" cy="5.5" r="1"/><circle cx="5.5" cy="12" r="1"/><circle cx="12" cy="12" r="1"/><circle cx="18.5" cy="12" r="1"/><circle cx="5.5" cy="18.5" r="1"/><circle cx="12" cy="18.5" r="1"/><circle cx="18.5" cy="18.5" r="1"/></svg></button>'},close:{tpl:'<button class="f-button" title="{{CLOSE}}" data-fancybox-close><svg><path d="m19.5 4.5-15 15M4.5 4.5l15 15"/></svg></button>'}},parentEl:null}});const Zt={Hash:class extends H{onReady(){ut=!1}onChange(t){ht&&clearTimeout(ht);const{hash:e}=pt(),{hash:n}=ft(),i=t.isOpeningSlide(t.getSlide());i&&(lt=n===e?"":n),e&&e!==n&&(ht=setTimeout((()=>{try{if(t.state===at.Ready){let t="replaceState";i&&!dt&&(t="pushState",dt=!0),window.history[t]({},document.title,window.location.pathname+window.location.search+e)}}catch(t){}}),300))}onClose(t){if(ht&&clearTimeout(ht),!ut&&dt)return dt=!1,ut=!1,void window.history.back();if(!ut)try{window.history.replaceState({},document.title,window.location.pathname+window.location.search+(lt||""))}catch(t){}}attach(){const t=this.instance;t.on("ready",this.onReady),t.on(["Carousel.ready","Carousel.change"],this.onChange),t.on("close",this.onClose)}detach(){const t=this.instance;t.off("ready",this.onReady),t.off(["Carousel.ready","Carousel.change"],this.onChange),t.off("close",this.onClose)}static parseURL(){return ft()}static startFromUrl(){mt()}static destroy(){window.removeEventListener("hashchange",vt,!1)}},Html:Pt,Images:wt,Slideshow:Nt,Thumbs:qt,Toolbar:Jt},Qt="with-fancybox",te="hide-scrollbar",ee="--fancybox-scrollbar-compensate",ne="--fancybox-body-margin",ie="aria-hidden",se="is-using-tab",oe="is-animated",re="is-compact",ae="is-loading",ce="is-opening",le="has-caption",ue="disabled",de="tabindex",he="download",pe="href",fe="src",me=t=>"string"==typeof t,ge=function(){var t=window.getSelection();return!!t&&"Range"===t.type};let ve,be=null,ye=null,we=0,Ee=0,Se=0,_e=0;const xe=new Map;let Te=0;class Ce extends b{get isIdle(){return this.idle}get isCompact(){return this.option("compact")}constructor(t=[],e={},n={}){super(e),Object.defineProperty(this,"userSlides",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"userPlugins",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"idle",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"idleTimer",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"clickTimer",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"pwt",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"ignoreFocusChange",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"startedFs",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"state",{enumerable:!0,configurable:!0,writable:!0,value:at.Init}),Object.defineProperty(this,"id",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"container",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"footer",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"carousel",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"lastFocus",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"prevMouseMoveEvent",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),ve||(ve=ot()),this.id=e.id||++Te,xe.set(this.id,this),this.userSlides=t,this.userPlugins=n,queueMicrotask((()=>{this.init()}))}init(){if(this.state===at.Destroy)return;this.state=at.Init,this.attachPlugins(Object.assign(Object.assign({},Ce.Plugins),this.userPlugins)),this.emit("init"),this.emit("attachPlugins"),!0===this.option("hideScrollbar")&&(()=>{if(!et)return;const t=document,e=t.body,n=t.documentElement;if(e.classList.contains(te))return;let i=window.innerWidth-n.getBoundingClientRect().width;const s=parseFloat(window.getComputedStyle(e).marginRight);i<0&&(i=0),n.style.setProperty(ee,`${i}px`),s&&e.style.setProperty(ne,`${s}px`),e.classList.add(te)})(),this.initLayout(),this.scale();const t=()=>{this.initCarousel(this.userSlides),this.state=at.Ready,this.attachEvents(),this.emit("ready"),setTimeout((()=>{this.container&&this.container.setAttribute(ie,"false")}),16)};this.option("Fullscreen.autoStart")&&ve&&!ve.isFullscreen()?ve.request().then((()=>{this.startedFs=!0,t()})).catch((()=>t())):t()}initLayout(){var t,e;const n=this.option("parentEl")||document.body,i=r(this.localize(this.option("tpl.main")||""));if(i){if(i.setAttribute("id",`fancybox-${this.id}`),i.setAttribute("aria-label",this.localize("{{MODAL}}")),i.classList.toggle(re,this.isCompact),O(i,this.option("mainClass")||""),O(i,ce),this.container=i,this.footer=i.querySelector(".fancybox__footer"),n.appendChild(i),O(document.documentElement,Qt),be&&ye||(be=document.createElement("span"),O(be,"fancybox-focus-guard"),be.setAttribute(de,"0"),be.setAttribute(ie,"true"),be.setAttribute("aria-label","Focus guard"),ye=be.cloneNode(),null===(t=i.parentElement)||void 0===t||t.insertBefore(be,i),null===(e=i.parentElement)||void 0===e||e.append(ye)),i.addEventListener("mousedown",(t=>{we=t.pageX,Ee=t.pageY,C(i,se)})),this.option("closeExisting"))for(const t of xe.values())t.id!==this.id&&t.close();else this.option("animated")&&(O(i,oe),setTimeout((()=>{this.isClosing()||C(i,oe)}),350));this.emit("initLayout")}}initCarousel(t){const e=this.container;if(!e)return;const n=e.querySelector(".fancybox__carousel");if(!n)return;const i=this.carousel=new Q(n,m({},{slides:t,transition:"fade",Panzoom:{lockAxis:this.option("dragToClose")?"xy":"x",infinite:!!this.option("dragToClose")&&"y"},Dots:!1,Navigation:{classes:{container:"fancybox__nav",button:"f-button",isNext:"is-next",isPrev:"is-prev"}},initialPage:this.option("startIndex"),l10n:this.option("l10n")},this.option("Carousel")||{}));i.on("*",((t,e,...n)=>{this.emit(`Carousel.${e}`,t,...n)})),i.on(["ready","change"],(()=>{this.manageCaption()})),this.on("Carousel.removeSlide",((t,e,n)=>{this.clearContent(n),n.state=void 0})),i.on("Panzoom.touchStart",(()=>{var t,e;this.isCompact||this.endIdle(),(null===(t=document.activeElement)||void 0===t?void 0:t.closest(".f-thumbs"))&&(null===(e=this.container)||void 0===e||e.focus())})),i.on("settle",(()=>{this.idleTimer||this.isCompact||!this.option("idle")||this.setIdle(),this.option("autoFocus")&&!this.isClosing&&this.checkFocus()})),this.option("dragToClose")&&(i.on("Panzoom.afterTransform",((t,e)=>{const n=this.getSlide();if(n&&s(n.el))return;const i=this.container;if(i){const t=Math.abs(e.current.f),n=t<1?"":Math.max(.5,Math.min(1,1-t/e.contentRect.fitHeight*1.5));i.style.setProperty("--fancybox-ts",n?"0s":""),i.style.setProperty("--fancybox-opacity",n+"")}})),i.on("Panzoom.touchEnd",((t,e,n)=>{var i;const o=this.getSlide();if(o&&s(o.el))return;if(e.isMobile&&document.activeElement&&-1!==["TEXTAREA","INPUT"].indexOf(null===(i=document.activeElement)||void 0===i?void 0:i.nodeName))return;const r=Math.abs(e.dragOffset.y);"y"===e.lockedAxis&&(r>=200||r>=50&&e.dragOffset.time<300)&&(n&&n.cancelable&&n.preventDefault(),this.close(n,"f-throwOut"+(e.current.f<0?"Up":"Down")))}))),i.on("change",(t=>{var e;let n=null===(e=this.getSlide())||void 0===e?void 0:e.triggerEl;if(n){const e=new CustomEvent("slideTo",{bubbles:!0,cancelable:!0,detail:t.page});n.dispatchEvent(e)}})),i.on(["refresh","change"],(t=>{const e=this.container;if(!e)return;for(const n of e.querySelectorAll("[data-fancybox-current-index]"))n.innerHTML=t.page+1;for(const n of e.querySelectorAll("[data-fancybox-count]"))n.innerHTML=t.pages.length;if(!t.isInfinite){for(const n of e.querySelectorAll("[data-fancybox-next]"))t.page<t.pages.length-1?(n.removeAttribute(ue),n.removeAttribute(de)):(n.setAttribute(ue,""),n.setAttribute(de,"-1"));for(const n of e.querySelectorAll("[data-fancybox-prev]"))t.page>0?(n.removeAttribute(ue),n.removeAttribute(de)):(n.setAttribute(ue,""),n.setAttribute(de,"-1"))}const n=this.getSlide();if(!n)return;let i=n.downloadSrc||"";i||"image"!==n.type||n.error||!me(n[fe])||(i=n[fe]);for(const t of e.querySelectorAll("[data-fancybox-download]")){const e=n.downloadFilename;i?(t.removeAttribute(ue),t.removeAttribute(de),t.setAttribute(pe,i),t.setAttribute(he,e||i),t.setAttribute("target","_blank")):(t.setAttribute(ue,""),t.setAttribute(de,"-1"),t.removeAttribute(pe),t.removeAttribute(he))}})),this.emit("initCarousel")}attachEvents(){const t=this,e=t.container;if(!e)return;e.addEventListener("click",t.onClick,{passive:!1,capture:!1}),e.addEventListener("wheel",t.onWheel,{passive:!1,capture:!1}),document.addEventListener("keydown",t.onKeydown,{passive:!1,capture:!0}),document.addEventListener("visibilitychange",t.onVisibilityChange,!1),document.addEventListener("mousemove",t.onMousemove),t.option("trapFocus")&&document.addEventListener("focus",t.onFocus,!0),window.addEventListener("resize",t.onResize);const n=window.visualViewport;n&&(n.addEventListener("scroll",t.onResize),n.addEventListener("resize",t.onResize))}detachEvents(){const t=this,e=t.container;if(!e)return;document.removeEventListener("keydown",t.onKeydown,{passive:!1,capture:!0}),e.removeEventListener("wheel",t.onWheel,{passive:!1,capture:!1}),e.removeEventListener("click",t.onClick,{passive:!1,capture:!1}),document.removeEventListener("mousemove",t.onMousemove),window.removeEventListener("resize",t.onResize);const n=window.visualViewport;n&&(n.removeEventListener("resize",t.onResize),n.removeEventListener("scroll",t.onResize)),document.removeEventListener("visibilitychange",t.onVisibilityChange,!1),document.removeEventListener("focus",t.onFocus,!0)}scale(){const t=this.container;if(!t)return;const e=window.visualViewport,n=Math.max(1,(null==e?void 0:e.scale)||1);let i="",s="",o="";if(e&&n>1){let t=`${e.offsetLeft}px`,r=`${e.offsetTop}px`;i=e.width*n+"px",s=e.height*n+"px",o=`translate3d(${t}, ${r}, 0) scale(${1/n})`}t.style.transform=o,t.style.width=i,t.style.height=s}onClick(t){var e;const{container:n,isCompact:i}=this;if(!n||this.isClosing())return;!i&&this.option("idle")&&this.resetIdle();const s=t.composedPath()[0];if(s.closest(".fancybox-spinner")||s.closest("[data-fancybox-close]"))return t.preventDefault(),void this.close(t);if(s.closest("[data-fancybox-prev]"))return t.preventDefault(),void this.prev();if(s.closest("[data-fancybox-next]"))return t.preventDefault(),void this.next();if("click"===t.type&&0===t.detail)return;if(Math.abs(t.pageX-we)>30||Math.abs(t.pageY-Ee)>30)return;const o=document.activeElement;if(ge()&&o&&n.contains(o))return;if(i&&"image"===(null===(e=this.getSlide())||void 0===e?void 0:e.type))return void(this.clickTimer?(clearTimeout(this.clickTimer),this.clickTimer=null):this.clickTimer=setTimeout((()=>{this.toggleIdle(),this.clickTimer=null}),350));if(this.emit("click",t),t.defaultPrevented)return;let r=!1;if(s.closest(".fancybox__content")){if(o){if(o.closest("[contenteditable]"))return;s.matches(it)||o.blur()}if(ge())return;r=this.option("contentClick")}else s.closest(".fancybox__carousel")&&!s.matches(it)&&(r=this.option("backdropClick"));"close"===r?(t.preventDefault(),this.close(t)):"next"===r?(t.preventDefault(),this.next()):"prev"===r&&(t.preventDefault(),this.prev())}onWheel(t){const e=t.target;let n=this.option("wheel",t);e.closest(".fancybox__thumbs")&&(n="slide");const i="slide"===n,s=[-t.deltaX||0,-t.deltaY||0,-t.detail||0].reduce((function(t,e){return Math.abs(e)>Math.abs(t)?e:t})),r=Math.max(-1,Math.min(1,s)),a=Date.now();this.pwt&&a-this.pwt<300?i&&t.preventDefault():(this.pwt=a,this.emit("wheel",t,r),t.defaultPrevented||("close"===n?(t.preventDefault(),this.close(t)):"slide"===n&&(o(e)||(t.preventDefault(),this[r>0?"prev":"next"]()))))}onScroll(){window.scrollTo(Se,_e)}onKeydown(t){if(!this.isTopmost())return;this.isCompact||!this.option("idle")||this.isClosing()||this.resetIdle();const e=t.key,n=this.option("keyboard");if(!n)return;const i=t.composedPath()[0],s=document.activeElement&&document.activeElement.classList,o=s&&s.contains("f-button")||i.dataset.carouselPage||i.dataset.carouselIndex;if("Escape"!==e&&!o&&T(i)&&(i.isContentEditable||-1!==["TEXTAREA","OPTION","INPUT","SELECT","VIDEO"].indexOf(i.nodeName)))return;if("Tab"===t.key?O(this.container,se):C(this.container,se),t.ctrlKey||t.altKey||t.shiftKey)return;this.emit("keydown",e,t);const r=n[e];r&&"function"==typeof this[r]&&(t.preventDefault(),this[r]())}onResize(){const t=this.container;if(!t)return;const e=this.isCompact;t.classList.toggle(re,e),this.manageCaption(this.getSlide()),this.isCompact?this.clearIdle():this.endIdle(),this.scale(),this.emit("resize")}onFocus(t){this.isTopmost()&&this.checkFocus(t)}onMousemove(t){this.prevMouseMoveEvent=t,!this.isCompact&&this.option("idle")&&this.resetIdle()}onVisibilityChange(){"visible"===document.visibilityState?this.checkFocus():this.endIdle()}manageCloseBtn(t){const e=this.optionFor(t,"closeButton")||!1;if("auto"===e){const t=this.plugins.Toolbar;if(t&&t.state===Gt.Ready)return}if(!e)return;if(!t.contentEl||t.closeBtnEl)return;const n=this.option("tpl.closeButton");if(n){const e=r(this.localize(n));t.closeBtnEl=t.contentEl.appendChild(e),t.el&&O(t.el,"has-close-btn")}}manageCaption(t=void 0){var e,n;const i="fancybox__caption",s=this.container;if(!s)return;C(s,le);const o=this.isCompact||this.option("commonCaption"),r=!o;if(this.caption&&this.stop(this.caption),r&&this.caption&&(this.caption.remove(),this.caption=null),o&&!this.caption)for(const t of(null===(e=this.carousel)||void 0===e?void 0:e.slides)||[])t.captionEl&&(t.captionEl.remove(),t.captionEl=void 0,C(t.el,le),null===(n=t.el)||void 0===n||n.removeAttribute("aria-labelledby"));if(t||(t=this.getSlide()),!t||o&&!this.isCurrentSlide(t))return;const a=t.el;let c=this.optionFor(t,"caption","");if(!c)return void(o&&this.caption&&this.animate(this.caption,"f-fadeOut",(()=>{this.caption&&(this.caption.innerHTML="")})));let l=null;if(r){if(l=t.captionEl||null,a&&!l){const e=i+`_${this.id}_${t.index}`;l=document.createElement("div"),O(l,i),l.setAttribute("id",e),t.captionEl=a.appendChild(l),O(a,le),a.setAttribute("aria-labelledby",e)}}else l=this.caption,l||(l=s.querySelector("."+i)),l||(l=document.createElement("div"),l.dataset.fancyboxCaption="",O(l,i),(this.footer||s).prepend(l)),O(s,le),this.caption=l;l&&(l.innerHTML="",me(c)||"number"==typeof c?l.innerHTML=c+"":c instanceof HTMLElement&&l.appendChild(c))}checkFocus(t){this.focus(t)}focus(t){var e;if(this.ignoreFocusChange)return;const n=document.activeElement||null,i=(null==t?void 0:t.target)||null,s=this.container,o=null===(e=this.carousel)||void 0===e?void 0:e.viewport;if(!s||!o)return;if(!t&&n&&s.contains(n))return;const r=this.getSlide(),a=r&&r.state===ct.Ready?r.el:null;if(!a||a.contains(n)||s===n)return;t&&t.cancelable&&t.preventDefault(),this.ignoreFocusChange=!0;const c=Array.from(s.querySelectorAll(it));let l=[],u=null;for(let t of c){const e=!t.offsetParent||!!t.closest('[aria-hidden="true"]'),n=a&&a.contains(t),i=!o.contains(t);if(t===s||(n||i)&&!e){l.push(t);const e=t.dataset.origTabindex;void 0!==e&&e&&(t.tabIndex=parseFloat(e)),t.removeAttribute("data-orig-tabindex"),!t.hasAttribute("autoFocus")&&u||(u=t)}else{const e=void 0===t.dataset.origTabindex?t.getAttribute("tabindex")||"":t.dataset.origTabindex;e&&(t.dataset.origTabindex=e),t.tabIndex=-1}}let d=null;t?(!i||l.indexOf(i)<0)&&(d=u||s,l.length&&(n===ye?d=l[0]:this.lastFocus!==s&&n!==be||(d=l[l.length-1]))):d=r&&"image"===r.type?s:u||s,d&&st(d),this.lastFocus=document.activeElement,this.ignoreFocusChange=!1}next(){const t=this.carousel;t&&t.pages.length>1&&t.slideNext()}prev(){const t=this.carousel;t&&t.pages.length>1&&t.slidePrev()}jumpTo(...t){this.carousel&&this.carousel.slideTo(...t)}isTopmost(){var t;return(null===(t=Ce.getInstance())||void 0===t?void 0:t.id)==this.id}animate(t=null,e="",n){if(!t||!e)return void(n&&n());this.stop(t);const i=s=>{s.target===t&&t.dataset.animationName&&(t.removeEventListener("animationend",i),delete t.dataset.animationName,n&&n(),C(t,e))};t.dataset.animationName=e,t.addEventListener("animationend",i),O(t,e)}stop(t){t&&t.dispatchEvent(new CustomEvent("animationend",{bubbles:!1,cancelable:!0,currentTarget:t}))}setContent(t,e="",n=!0){if(this.isClosing())return;const i=t.el;if(!i)return;let s=null;if(T(e)?s=e:(s=r(e+""),T(s)||(s=document.createElement("div"),s.innerHTML=e+"")),["img","picture","iframe","video","audio"].includes(s.nodeName.toLowerCase())){const t=document.createElement("div");t.appendChild(s),s=t}T(s)&&t.filter&&!t.error&&(s=s.querySelector(t.filter)),s&&T(s)?(O(s,"fancybox__content"),t.id&&s.setAttribute("id",t.id),i.classList.add(`has-${t.error?"error":t.type||"unknown"}`),i.prepend(s),"none"===s.style.display&&(s.style.display=""),"none"===getComputedStyle(s).getPropertyValue("display")&&(s.style.display=t.display||this.option("defaultDisplay")||"flex"),t.contentEl=s,n&&this.revealContent(t),this.manageCloseBtn(t),this.manageCaption(t)):this.setError(t,"{{ELEMENT_NOT_FOUND}}")}revealContent(t,e){const n=t.el,i=t.contentEl;n&&i&&(this.emit("reveal",t),this.hideLoading(t),t.state=ct.Opening,(e=this.isOpeningSlide(t)?void 0===e?this.optionFor(t,"showClass"):e:"f-fadeIn")?this.animate(i,e,(()=>{this.done(t)})):this.done(t))}done(t){this.isClosing()||(t.state=ct.Ready,this.emit("done",t),O(t.el,"is-done"),this.isCurrentSlide(t)&&this.option("autoFocus")&&queueMicrotask((()=>{var e;null===(e=t.panzoom)||void 0===e||e.updateControls(),this.option("autoFocus")&&this.focus()})),this.isOpeningSlide(t)&&(C(this.container,ce),!this.isCompact&&this.option("idle")&&this.setIdle()))}isCurrentSlide(t){const e=this.getSlide();return!(!t||!e)&&e.index===t.index}isOpeningSlide(t){var e,n;return null===(null===(e=this.carousel)||void 0===e?void 0:e.prevPage)&&t&&t.index===(null===(n=this.getSlide())||void 0===n?void 0:n.index)}showLoading(t){t.state=ct.Loading;const e=t.el;e&&(O(e,ae),this.emit("loading",t),t.spinnerEl||setTimeout((()=>{if(!this.isClosing()&&!t.spinnerEl&&t.state===ct.Loading){let n=r(x);O(n,"fancybox-spinner"),t.spinnerEl=n,e.prepend(n),this.animate(n,"f-fadeIn")}}),250))}hideLoading(t){const e=t.el;if(!e)return;const n=t.spinnerEl;this.isClosing()?null==n||n.remove():(C(e,ae),n&&this.animate(n,"f-fadeOut",(()=>{n.remove()})),t.state===ct.Loading&&(this.emit("loaded",t),t.state=ct.Ready))}setError(t,e){if(this.isClosing())return;const n=new Event("error",{bubbles:!0,cancelable:!0});if(this.emit("error",n,t),n.defaultPrevented)return;t.error=e,this.hideLoading(t),this.clearContent(t);const i=document.createElement("div");i.classList.add("fancybox-error"),i.innerHTML=this.localize(e||"<p>{{ERROR}}</p>"),this.setContent(t,i)}clearContent(t){if(void 0===t.state)return;this.emit("clearContent",t),t.contentEl&&(t.contentEl.remove(),t.contentEl=void 0);const e=t.el;e&&(C(e,"has-error"),C(e,"has-unknown"),C(e,`has-${t.type||"unknown"}`)),t.closeBtnEl&&t.closeBtnEl.remove(),t.closeBtnEl=void 0,t.captionEl&&t.captionEl.remove(),t.captionEl=void 0,t.spinnerEl&&t.spinnerEl.remove(),t.spinnerEl=void 0}getSlide(){var t;const e=this.carousel;return(null===(t=null==e?void 0:e.pages[null==e?void 0:e.page])||void 0===t?void 0:t.slides[0])||void 0}close(t,e){if(this.isClosing())return;const n=new Event("shouldClose",{bubbles:!0,cancelable:!0});if(this.emit("shouldClose",n,t),n.defaultPrevented)return;t&&t.cancelable&&(t.preventDefault(),t.stopPropagation());const i=()=>{this.proceedClose(t,e)};this.startedFs&&ve&&ve.isFullscreen()?Promise.resolve(ve.exit()).then((()=>i())):i()}clearIdle(){this.idleTimer&&clearTimeout(this.idleTimer),this.idleTimer=null}setIdle(t=!1){const e=()=>{this.clearIdle(),this.idle=!0,O(this.container,"is-idle"),this.emit("setIdle")};if(this.clearIdle(),!this.isClosing())if(t)e();else{const t=this.option("idle");t&&(this.idleTimer=setTimeout(e,t))}}endIdle(){this.clearIdle(),this.idle&&!this.isClosing()&&(this.idle=!1,C(this.container,"is-idle"),this.emit("endIdle"))}resetIdle(){this.endIdle(),this.setIdle()}toggleIdle(){this.idle?this.endIdle():this.setIdle(!0)}toggleFullscreen(){ve&&(ve.isFullscreen()?ve.exit():ve.request().then((()=>{this.startedFs=!0})))}isClosing(){return[at.Closing,at.CustomClosing,at.Destroy].includes(this.state)}proceedClose(t,e){var n,i;this.state=at.Closing,this.clearIdle(),this.detachEvents();const s=this.container,o=this.carousel,r=this.getSlide(),a=r&&this.option("placeFocusBack")?r.triggerEl||this.option("triggerEl"):null;if(a&&(tt(a)?st(a):a.focus()),s&&(C(s,ce),O(s,"is-closing"),s.setAttribute(ie,"true"),this.option("animated")&&O(s,oe),s.style.pointerEvents="none"),o){o.clearTransitions(),null===(n=o.panzoom)||void 0===n||n.destroy(),null===(i=o.plugins.Navigation)||void 0===i||i.detach();for(const t of o.slides){t.state=ct.Closing,this.hideLoading(t);const e=t.contentEl;e&&this.stop(e);const n=null==t?void 0:t.panzoom;n&&(n.stop(),n.detachEvents(),n.detachObserver()),this.isCurrentSlide(t)||o.emit("removeSlide",t)}}Se=window.scrollX,_e=window.scrollY,window.addEventListener("scroll",this.onScroll),this.emit("close",t),this.state!==at.CustomClosing?(void 0===e&&r&&(e=this.optionFor(r,"hideClass")),e&&r?(this.animate(r.contentEl,e,(()=>{o&&o.emit("removeSlide",r)})),setTimeout((()=>{this.destroy()}),500)):this.destroy()):setTimeout((()=>{this.destroy()}),500)}destroy(){var t;if(this.state===at.Destroy)return;window.removeEventListener("scroll",this.onScroll),this.state=at.Destroy,null===(t=this.carousel)||void 0===t||t.destroy();const e=this.container;e&&e.remove(),xe.delete(this.id);const n=Ce.getInstance();n?n.focus():(be&&(be.remove(),be=null),ye&&(ye.remove(),ye=null),C(document.documentElement,Qt),(()=>{if(!et)return;const t=document,e=t.body;e.classList.remove(te),e.style.setProperty(ne,""),t.documentElement.style.setProperty(ee,"")})(),this.emit("destroy"))}static bind(t,e,n){if(!et)return;let i,s="",o={};if(void 0===t?i=document.body:me(t)?(i=document.body,s=t,"object"==typeof e&&(o=e||{})):(i=t,me(e)&&(s=e),"object"==typeof n&&(o=n||{})),!i||!T(i))return;s=s||"[data-fancybox]";const r=Ce.openers.get(i)||new Map;r.set(s,o),Ce.openers.set(i,r),1===r.size&&i.addEventListener("click",Ce.fromEvent)}static unbind(t,e){let n,i="";if(me(t)?(n=document.body,i=t):(n=t,me(e)&&(i=e)),!n)return;const s=Ce.openers.get(n);s&&i&&s.delete(i),i&&s||(Ce.openers.delete(n),n.removeEventListener("click",Ce.fromEvent))}static destroy(){let t;for(;t=Ce.getInstance();)t.destroy();for(const t of Ce.openers.keys())t.removeEventListener("click",Ce.fromEvent);Ce.openers=new Map}static fromEvent(t){if(t.defaultPrevented)return;if(t.button&&0!==t.button)return;if(t.ctrlKey||t.metaKey||t.shiftKey)return;let e=t.composedPath()[0];const n=e.closest("[data-fancybox-trigger]");if(n){const t=n.dataset.fancyboxTrigger||"",i=document.querySelectorAll(`[data-fancybox="${t}"]`),s=parseInt(n.dataset.fancyboxIndex||"",10)||0;e=i[s]||e}if(!(e&&e instanceof Element))return;let i,s,o,r;if([...Ce.openers].reverse().find((([t,n])=>!(!t.contains(e)||![...n].reverse().find((([n,a])=>{let c=e.closest(n);return!!c&&(i=t,s=n,o=c,r=a,!0)}))))),!i||!s||!o)return;r=r||{},t.preventDefault(),e=o;let a=[],c=m({},rt,r);c.event=t,c.triggerEl=e,c.delegate=n;const l=c.groupAll,u=c.groupAttr,d=u&&e?e.getAttribute(`${u}`):"";if((!e||d||l)&&(a=[].slice.call(i.querySelectorAll(s))),e&&!l&&(a=d?a.filter((t=>t.getAttribute(`${u}`)===d)):[e]),!a.length)return;const h=Ce.getInstance();return h&&h.options.triggerEl&&a.indexOf(h.options.triggerEl)>-1?void 0:(e&&(c.startIndex=a.indexOf(e)),Ce.fromNodes(a,c))}static fromSelector(t,e,n){let i=null,s="",o={};if(me(t)?(i=document.body,s=t,"object"==typeof e&&(o=e||{})):t instanceof HTMLElement&&me(e)&&(i=t,s=e,"object"==typeof n&&(o=n||{})),!i||!s)return!1;const r=Ce.openers.get(i);return!!r&&(o=m({},r.get(s)||{},o),!!o&&Ce.fromNodes(Array.from(i.querySelectorAll(s)),o))}static fromNodes(t,e){e=m({},rt,e||{});const n=[];for(const i of t){const t=i.dataset||{},s=t[fe]||i.getAttribute(pe)||i.getAttribute("currentSrc")||i.getAttribute(fe)||void 0;let o;const r=e.delegate;let a;r&&n.length===e.startIndex&&(o=r instanceof HTMLImageElement?r:r.querySelector("img:not([aria-hidden])")),o||(o=i instanceof HTMLImageElement?i:i.querySelector("img:not([aria-hidden])")),o&&(a=o.currentSrc||o[fe]||void 0,!a&&o.dataset&&(a=o.dataset.lazySrc||o.dataset[fe]||void 0));const c={src:s,triggerEl:i,thumbEl:o,thumbElSrc:a,thumbSrc:a};for(const e in t){let n=t[e]+"";n="false"!==n&&("true"===n||n),c[e]=n}n.push(c)}return new Ce(n,e)}static getInstance(t){return t?xe.get(t):Array.from(xe.values()).reverse().find((t=>!t.isClosing()&&t))||null}static getSlide(){var t;return(null===(t=Ce.getInstance())||void 0===t?void 0:t.getSlide())||null}static show(t=[],e={}){return new Ce(t,e)}static next(){const t=Ce.getInstance();t&&t.next()}static prev(){const t=Ce.getInstance();t&&t.prev()}static close(t=!0,...e){if(t)for(const t of xe.values())t.close(...e);else{const t=Ce.getInstance();t&&t.close(...e)}}}Object.defineProperty(Ce,"version",{enumerable:!0,configurable:!0,writable:!0,value:"5.0.36"}),Object.defineProperty(Ce,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:rt}),Object.defineProperty(Ce,"Plugins",{enumerable:!0,configurable:!0,writable:!0,value:Zt}),Object.defineProperty(Ce,"openers",{enumerable:!0,configurable:!0,writable:!0,value:new Map})},133:function(t,e){!function(t){"use strict";function e(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function n(t){for(var n=1;n<arguments.length;n++){var i=null!=arguments[n]?arguments[n]:{};n%2?e(Object(i),!0).forEach((function(e){var n,s,o;n=t,s=e,o=i[e],(s=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:String(e)}(s))in n?Object.defineProperty(n,s,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[s]=o})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):e(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}function i(t){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i(t)}function s(t,e,n){var i,s="";if((t="number"==typeof t?String(t):t).length>e)return t;for(i=0;i<e;i+=1)s+=String(n);return(s+t).slice(-s.length)}function o(){this.reset()}function r(){this.events={}}o.prototype.toString=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["hours","minutes","seconds"],e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:":",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:2;t=t||["hours","minutes","seconds"],e=e||":",n=n||2;var i,o=[];for(i=0;i<t.length;i+=1)void 0!==this[t[i]]&&("secondTenths"===t[i]?o.push(this[t[i]]):o.push(s(this[t[i]],n,"0")));return o.join(e)},o.prototype.reset=function(){this.secondTenths=0,this.seconds=0,this.minutes=0,this.hours=0,this.days=0},r.prototype.on=function(t,e){var n=this;return Array.isArray(this.events[t])||(this.events[t]=[]),this.events[t].push(e),function(){return n.removeListener(t,e)}},r.prototype.removeListener=function(t,e){if(Array.isArray(this.events[t])){var n=this.events[t].indexOf(e);n>-1&&this.events[t].splice(n,1)}},r.prototype.removeAllListeners=function(t){t?Array.isArray(this.events[t])&&(this.events[t]=[]):this.events={}},r.prototype.emit=function(t){for(var e=this,n=arguments.length,i=new Array(n>1?n-1:0),s=1;s<n;s++)i[s-1]=arguments[s];Array.isArray(this.events[t])&&this.events[t].forEach((function(t){return t.apply(e,i)}))};var a="secondTenths",c="seconds",l="minutes",u="hours",d="days",h=[a,c,l,u,d],p={secondTenths:100,seconds:1e3,minutes:6e4,hours:36e5,days:864e5},f={secondTenths:10,seconds:60,minutes:60,hours:24};function m(t,e){return(t%e+e)%e}function g(){var t,e,s,g,v,b,y,w,E,S,_=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},x=new o,T=new o,C=new r,O=!1,A=!1,P={},L={detail:{timer:this}};function I(t,e){var n=T[e];return function(t,e){var n=f[t];T[t]=e,x[t]=t===d?Math.abs(e):m(e>=0?e:n-m(e,n),n)}(e,H(t,p[e])),T[e]!==n}function k(){D(),x.reset(),T.reset()}function D(){clearInterval(t),t=void 0,O=!1,A=!1}function N(n){var i;Y()?(E=M(),b=U(v.target)):B(n),i=p[e],z(F(Date.now()))||(t=setInterval(R,i),O=!0,A=!1)}function M(){return F(Date.now())-T.secondTenths*p[a]*s}function R(){var t,e=F(Date.now());(t=j())[a]&&X("secondTenthsUpdated",L),t[c]&&X("secondsUpdated",L),t[l]&&X("minutesUpdated",L),t[u]&&X("hoursUpdated",L),t[d]&&X("daysUpdated",L),g(L.detail.timer),z(e)&&(q(),X("targetAchieved",L))}function j(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:F(Date.now()),e=s>0?t-E:E-t,n={};return n[a]=I(e,a),n[c]=function(t){return I(t,c)}(e),n[l]=function(t){return I(t,l)}(e),n[u]=function(t){return I(t,u)}(e),n[d]=function(t){return I(t,d)}(e),n}function F(t){return Math.floor(t/p[e])*p[e]}function z(t){return b instanceof Array&&t>=S}function B(t){var n;e=function(t){if(e=t="string"==typeof t?t:c,!(h.indexOf(e)>=0))throw new Error("Error in precision parameter: ".concat(t," is not a valid value"));var e;return t}((t=t||{}).precision),g="function"==typeof t.callback?t.callback:function(){},w=!0===t.countdown,s=!0===w?-1:1,"object"===i(t.startValues)?(n=t.startValues,y=$(n),x.secondTenths=y[0],x.seconds=y[1],x.minutes=y[2],x.hours=y[3],x.days=y[4],T=W(y,T)):y=null,E=M(),j(),"object"===i(t.target)?b=U(t.target):w?(t.target={seconds:0},b=U(t.target)):b=null,P={precision:e,callback:g,countdown:"object"===i(t)&&!0===t.countdown,target:b,startValues:y},v=t}function $(t){var e;if("object"===i(t))if(t instanceof Array){if(5!==t.length)throw new Error("Array size not valid");e=t}else{for(var n in t)if(h.indexOf(n)<0)throw new Error("Error in startValues or target parameter: ".concat(n," is not a valid input value"));e=[t.secondTenths||0,t.seconds||0,t.minutes||0,t.hours||0,t.days||0]}e=e.map((function(t){return parseInt(t,10)}));var s=e[0],o=e[1]+H(s,10),r=e[2]+H(o,60),a=e[3]+H(r,60),c=e[4]+H(a,24);return e[0]=s%10,e[1]=o%60,e[2]=r%60,e[3]=a%24,e[4]=c,e}function H(t,e){var n=t/e;return n<0?Math.ceil(n):Math.floor(n)}function U(t){if(t){var e=W(b=$(t));return S=E+e.secondTenths*p[a]*s,b}}function W(t,e){var n=e||{};return n.days=t[4],n.hours=24*n.days+t[3],n.minutes=60*n.hours+t[2],n.seconds=60*n.minutes+t[1],n.secondTenths=10*n.seconds+t[[0]],n}function q(){k(),X("stopped",L)}function V(t,e){C.on(t,e)}function G(t,e){C.removeListener(t,e)}function X(t,e){C.emit(t,e)}function K(){return O}function Y(){return A}B(_),void 0!==this&&(this.start=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};t=n(n({},_),t),K()||(N(t),X("started",L))},this.pause=function(){D(),A=!0,X("paused",L)},this.stop=q,this.reset=function(){k(),N(v),X("reset",L)},this.isRunning=K,this.isPaused=Y,this.getTimeValues=function(){return x},this.getTotalTimeValues=function(){return T},this.getConfig=function(){return P},this.addEventListener=V,this.on=V,this.removeEventListener=G,this.removeAllEventListeners=function(t){C.removeAllListeners(t)},this.off=G)}t.Timer=g,t.default=g,Object.defineProperty(t,"__esModule",{value:!0})}(e)},436:function(t){var e;e=()=>(()=>{var t=Object.defineProperty,e=Object.getOwnPropertyDescriptor,n=Object.getOwnPropertyNames,i=Object.prototype.hasOwnProperty,s={};((e,n)=>{for(var i in n)t(e,i,{get:n[i],enumerable:!0})})(s,{Iti:()=>b,default:()=>w});var o=[["af","93"],["ax","358",1,["18"]],["al","355"],["dz","213"],["as","1",5,["684"]],["ad","376"],["ao","244"],["ai","1",6,["264"]],["ag","1",7,["268"]],["ar","54"],["am","374"],["aw","297"],["ac","247"],["au","61",0],["at","43"],["az","994"],["bs","1",8,["242"]],["bh","973"],["bd","880"],["bb","1",9,["246"]],["by","375"],["be","32"],["bz","501"],["bj","229"],["bm","1",10,["441"]],["bt","975"],["bo","591"],["ba","387"],["bw","267"],["br","55"],["io","246"],["vg","1",11,["284"]],["bn","673"],["bg","359"],["bf","226"],["bi","257"],["kh","855"],["cm","237"],["ca","1",1,["204","226","236","249","250","263","289","306","343","354","365","367","368","382","387","403","416","418","428","431","437","438","450","584","468","474","506","514","519","548","579","581","584","587","604","613","639","647","672","683","705","709","742","753","778","780","782","807","819","825","867","873","879","902","905"]],["cv","238"],["bq","599",1,["3","4","7"]],["ky","1",12,["345"]],["cf","236"],["td","235"],["cl","56"],["cn","86"],["cx","61",2,["89164"]],["cc","61",1,["89162"]],["co","57"],["km","269"],["cg","242"],["cd","243"],["ck","682"],["cr","506"],["ci","225"],["hr","385"],["cu","53"],["cw","599",0],["cy","357"],["cz","420"],["dk","45"],["dj","253"],["dm","1",13,["767"]],["do","1",2,["809","829","849"]],["ec","593"],["eg","20"],["sv","503"],["gq","240"],["er","291"],["ee","372"],["sz","268"],["et","251"],["fk","500"],["fo","298"],["fj","679"],["fi","358",0],["fr","33"],["gf","594"],["pf","689"],["ga","241"],["gm","220"],["ge","995"],["de","49"],["gh","233"],["gi","350"],["gr","30"],["gl","299"],["gd","1",14,["473"]],["gp","590",0],["gu","1",15,["671"]],["gt","502"],["gg","44",1,["1481","7781","7839","7911"]],["gn","224"],["gw","245"],["gy","592"],["ht","509"],["hn","504"],["hk","852"],["hu","36"],["is","354"],["in","91"],["id","62"],["ir","98"],["iq","964"],["ie","353"],["im","44",2,["1624","74576","7524","7924","7624"]],["il","972"],["it","39",0],["jm","1",4,["876","658"]],["jp","81"],["je","44",3,["1534","7509","7700","7797","7829","7937"]],["jo","962"],["kz","7",1,["33","7"]],["ke","254"],["ki","686"],["xk","383"],["kw","965"],["kg","996"],["la","856"],["lv","371"],["lb","961"],["ls","266"],["lr","231"],["ly","218"],["li","423"],["lt","370"],["lu","352"],["mo","853"],["mg","261"],["mw","265"],["my","60"],["mv","960"],["ml","223"],["mt","356"],["mh","692"],["mq","596"],["mr","222"],["mu","230"],["yt","262",1,["269","639"]],["mx","52"],["fm","691"],["md","373"],["mc","377"],["mn","976"],["me","382"],["ms","1",16,["664"]],["ma","212",0],["mz","258"],["mm","95"],["na","264"],["nr","674"],["np","977"],["nl","31"],["nc","687"],["nz","64"],["ni","505"],["ne","227"],["ng","234"],["nu","683"],["nf","672"],["kp","850"],["mk","389"],["mp","1",17,["670"]],["no","47",0],["om","968"],["pk","92"],["pw","680"],["ps","970"],["pa","507"],["pg","675"],["py","595"],["pe","51"],["ph","63"],["pl","48"],["pt","351"],["pr","1",3,["787","939"]],["qa","974"],["re","262",0],["ro","40"],["ru","7",0],["rw","250"],["ws","685"],["sm","378"],["st","239"],["sa","966"],["sn","221"],["rs","381"],["sc","248"],["sl","232"],["sg","65"],["sx","1",21,["721"]],["sk","421"],["si","386"],["sb","677"],["so","252"],["za","27"],["kr","82"],["ss","211"],["es","34"],["lk","94"],["bl","590",1],["sh","290"],["kn","1",18,["869"]],["lc","1",19,["758"]],["mf","590",2],["pm","508"],["vc","1",20,["784"]],["sd","249"],["sr","597"],["sj","47",1,["79"]],["se","46"],["ch","41"],["sy","963"],["tw","886"],["tj","992"],["tz","255"],["th","66"],["tl","670"],["tg","228"],["tk","690"],["to","676"],["tt","1",22,["868"]],["tn","216"],["tr","90"],["tm","993"],["tc","1",23,["649"]],["tv","688"],["ug","256"],["ua","380"],["ae","971"],["gb","44",0],["us","1",0],["uy","598"],["vi","1",24,["340"]],["uz","998"],["vu","678"],["va","39",1,["06698"]],["ve","58"],["vn","84"],["wf","681"],["eh","212",1,["5288","5289"]],["ye","967"],["zm","260"],["zw","263"]],r=[];for(let t=0;t<o.length;t++){const e=o[t];r[t]={name:"",iso2:e[0],dialCode:e[1],priority:e[2]||0,areaCodes:e[3]||null,nodeById:{}}}var a=r,c={ad:"Andorra",ae:"United Arab Emirates",af:"Afghanistan",ag:"Antigua & Barbuda",ai:"Anguilla",al:"Albania",am:"Armenia",ao:"Angola",ar:"Argentina",as:"American Samoa",at:"Austria",au:"Australia",aw:"Aruba",ax:"Åland Islands",az:"Azerbaijan",ba:"Bosnia & Herzegovina",bb:"Barbados",bd:"Bangladesh",be:"Belgium",bf:"Burkina Faso",bg:"Bulgaria",bh:"Bahrain",bi:"Burundi",bj:"Benin",bl:"St. Barthélemy",bm:"Bermuda",bn:"Brunei",bo:"Bolivia",bq:"Caribbean Netherlands",br:"Brazil",bs:"Bahamas",bt:"Bhutan",bw:"Botswana",by:"Belarus",bz:"Belize",ca:"Canada",cc:"Cocos (Keeling) Islands",cd:"Congo - Kinshasa",cf:"Central African Republic",cg:"Congo - Brazzaville",ch:"Switzerland",ci:"Côte d’Ivoire",ck:"Cook Islands",cl:"Chile",cm:"Cameroon",cn:"China",co:"Colombia",cr:"Costa Rica",cu:"Cuba",cv:"Cape Verde",cw:"Curaçao",cx:"Christmas Island",cy:"Cyprus",cz:"Czechia",de:"Germany",dj:"Djibouti",dk:"Denmark",dm:"Dominica",do:"Dominican Republic",dz:"Algeria",ec:"Ecuador",ee:"Estonia",eg:"Egypt",eh:"Western Sahara",er:"Eritrea",es:"Spain",et:"Ethiopia",fi:"Finland",fj:"Fiji",fk:"Falkland Islands",fm:"Micronesia",fo:"Faroe Islands",fr:"France",ga:"Gabon",gb:"United Kingdom",gd:"Grenada",ge:"Georgia",gf:"French Guiana",gg:"Guernsey",gh:"Ghana",gi:"Gibraltar",gl:"Greenland",gm:"Gambia",gn:"Guinea",gp:"Guadeloupe",gq:"Equatorial Guinea",gr:"Greece",gt:"Guatemala",gu:"Guam",gw:"Guinea-Bissau",gy:"Guyana",hk:"Hong Kong SAR China",hn:"Honduras",hr:"Croatia",ht:"Haiti",hu:"Hungary",id:"Indonesia",ie:"Ireland",il:"Israel",im:"Isle of Man",in:"India",io:"British Indian Ocean Territory",iq:"Iraq",ir:"Iran",is:"Iceland",it:"Italy",je:"Jersey",jm:"Jamaica",jo:"Jordan",jp:"Japan",ke:"Kenya",kg:"Kyrgyzstan",kh:"Cambodia",ki:"Kiribati",km:"Comoros",kn:"St. Kitts & Nevis",kp:"North Korea",kr:"South Korea",kw:"Kuwait",ky:"Cayman Islands",kz:"Kazakhstan",la:"Laos",lb:"Lebanon",lc:"St. Lucia",li:"Liechtenstein",lk:"Sri Lanka",lr:"Liberia",ls:"Lesotho",lt:"Lithuania",lu:"Luxembourg",lv:"Latvia",ly:"Libya",ma:"Morocco",mc:"Monaco",md:"Moldova",me:"Montenegro",mf:"St. Martin",mg:"Madagascar",mh:"Marshall Islands",mk:"North Macedonia",ml:"Mali",mm:"Myanmar (Burma)",mn:"Mongolia",mo:"Macao SAR China",mp:"Northern Mariana Islands",mq:"Martinique",mr:"Mauritania",ms:"Montserrat",mt:"Malta",mu:"Mauritius",mv:"Maldives",mw:"Malawi",mx:"Mexico",my:"Malaysia",mz:"Mozambique",na:"Namibia",nc:"New Caledonia",ne:"Niger",nf:"Norfolk Island",ng:"Nigeria",ni:"Nicaragua",nl:"Netherlands",no:"Norway",np:"Nepal",nr:"Nauru",nu:"Niue",nz:"New Zealand",om:"Oman",pa:"Panama",pe:"Peru",pf:"French Polynesia",pg:"Papua New Guinea",ph:"Philippines",pk:"Pakistan",pl:"Poland",pm:"St. Pierre & Miquelon",pr:"Puerto Rico",ps:"Palestinian Territories",pt:"Portugal",pw:"Palau",py:"Paraguay",qa:"Qatar",re:"Réunion",ro:"Romania",rs:"Serbia",ru:"Russia",rw:"Rwanda",sa:"Saudi Arabia",sb:"Solomon Islands",sc:"Seychelles",sd:"Sudan",se:"Sweden",sg:"Singapore",sh:"St. Helena",si:"Slovenia",sj:"Svalbard & Jan Mayen",sk:"Slovakia",sl:"Sierra Leone",sm:"San Marino",sn:"Senegal",so:"Somalia",sr:"Suriname",ss:"South Sudan",st:"São Tomé & Príncipe",sv:"El Salvador",sx:"Sint Maarten",sy:"Syria",sz:"Eswatini",tc:"Turks & Caicos Islands",td:"Chad",tg:"Togo",th:"Thailand",tj:"Tajikistan",tk:"Tokelau",tl:"Timor-Leste",tm:"Turkmenistan",tn:"Tunisia",to:"Tonga",tr:"Turkey",tt:"Trinidad & Tobago",tv:"Tuvalu",tw:"Taiwan",tz:"Tanzania",ua:"Ukraine",ug:"Uganda",us:"United States",uy:"Uruguay",uz:"Uzbekistan",va:"Vatican City",vc:"St. Vincent & Grenadines",ve:"Venezuela",vg:"British Virgin Islands",vi:"U.S. Virgin Islands",vn:"Vietnam",vu:"Vanuatu",wf:"Wallis & Futuna",ws:"Samoa",ye:"Yemen",yt:"Mayotte",za:"South Africa",zm:"Zambia",zw:"Zimbabwe",selectedCountryAriaLabel:"Selected country",noCountrySelected:"No country selected",countryListAriaLabel:"List of countries",searchPlaceholder:"Search",zeroSearchResults:"No results found",oneSearchResult:"1 result found",multipleSearchResults:"${count} results found",ac:"Ascension Island",xk:"Kosovo"};for(let t=0;t<a.length;t++)a[t].name=c[a[t].iso2];var l,u=0,d={allowDropdown:!0,autoPlaceholder:"polite",containerClass:"",countryOrder:null,countrySearch:!0,customPlaceholder:null,dropdownContainer:null,excludeCountries:[],fixDropdownWidth:!0,formatAsYouType:!0,formatOnDisplay:!0,geoIpLookup:null,hiddenInput:null,i18n:{},initialCountry:"",nationalMode:!0,onlyCountries:[],placeholderNumberType:"MOBILE",showFlags:!0,separateDialCode:!1,strictMode:!1,useFullscreenPopup:"undefined"!=typeof navigator&&"undefined"!=typeof window&&(/Android.+Mobile|webOS|iPhone|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)||window.innerWidth<=500),utilsScript:"",validationNumberType:"MOBILE"},h=["800","822","833","844","855","866","877","880","881","882","883","884","885","886","887","888","889"],p=t=>t.replace(/\D/g,""),f=(t="")=>t.normalize("NFD").replace(/[\u0300-\u036f]/g,"").toLowerCase(),m=t=>{const e=p(t);if("1"===e.charAt(0)){const t=e.substr(1,3);return-1!==h.indexOf(t)}return!1},g=(t,e,n)=>{const i=document.createElement(t);return e&&Object.entries(e).forEach((([t,e])=>i.setAttribute(t,e))),n&&n.appendChild(i),i},v=t=>{const{instances:e}=y;Object.values(e).forEach((e=>e[t]()))},b=class{constructor(t,e={}){this.id=u++,this.telInput=t,this.highlightedItem=null,this.options=Object.assign({},d,e),this.hadInitialPlaceholder=Boolean(t.getAttribute("placeholder"))}_init(){this.options.useFullscreenPopup&&(this.options.fixDropdownWidth=!1),1===this.options.onlyCountries.length&&(this.options.initialCountry=this.options.onlyCountries[0]),this.options.separateDialCode&&(this.options.nationalMode=!1),!this.options.allowDropdown||this.options.showFlags||this.options.separateDialCode||(this.options.nationalMode=!1),this.options.useFullscreenPopup&&!this.options.dropdownContainer&&(this.options.dropdownContainer=document.body),this.isAndroid="undefined"!=typeof navigator&&/Android/i.test(navigator.userAgent),this.isRTL=!!this.telInput.closest("[dir=rtl]");const t=this.options.allowDropdown||this.options.separateDialCode;this.showSelectedCountryOnLeft=this.isRTL?!t:t,this.options.separateDialCode&&(this.isRTL?this.originalPaddingRight=this.telInput.style.paddingRight:this.originalPaddingLeft=this.telInput.style.paddingLeft),this.options.i18n={...c,...this.options.i18n};const e=new Promise(((t,e)=>{this.resolveAutoCountryPromise=t,this.rejectAutoCountryPromise=e})),n=new Promise(((t,e)=>{this.resolveUtilsScriptPromise=t,this.rejectUtilsScriptPromise=e}));this.promise=Promise.all([e,n]),this.selectedCountryData={},this._processCountryData(),this._generateMarkup(),this._setInitialState(),this._initListeners(),this._initRequests()}_processCountryData(){this._processAllCountries(),this._processDialCodes(),this._translateCountryNames(),this._sortCountries()}_sortCountries(){this.options.countryOrder&&(this.options.countryOrder=this.options.countryOrder.map((t=>t.toLowerCase()))),this.countries.sort(((t,e)=>{const{countryOrder:n}=this.options;if(n){const i=n.indexOf(t.iso2),s=n.indexOf(e.iso2),o=i>-1,r=s>-1;if(o||r)return o&&r?i-s:o?-1:1}return t.name.localeCompare(e.name)}))}_addToDialCodeMap(t,e,n){e.length>this.dialCodeMaxLen&&(this.dialCodeMaxLen=e.length),this.dialCodeToIso2Map.hasOwnProperty(e)||(this.dialCodeToIso2Map[e]=[]);for(let n=0;n<this.dialCodeToIso2Map[e].length;n++)if(this.dialCodeToIso2Map[e][n]===t)return;const i=void 0!==n?n:this.dialCodeToIso2Map[e].length;this.dialCodeToIso2Map[e][i]=t}_processAllCountries(){const{onlyCountries:t,excludeCountries:e}=this.options;if(t.length){const e=t.map((t=>t.toLowerCase()));this.countries=a.filter((t=>e.indexOf(t.iso2)>-1))}else if(e.length){const t=e.map((t=>t.toLowerCase()));this.countries=a.filter((e=>-1===t.indexOf(e.iso2)))}else this.countries=a}_translateCountryNames(){for(let t=0;t<this.countries.length;t++){const e=this.countries[t].iso2.toLowerCase();this.options.i18n.hasOwnProperty(e)&&(this.countries[t].name=this.options.i18n[e])}}_processDialCodes(){this.dialCodes={},this.dialCodeMaxLen=0,this.dialCodeToIso2Map={};for(let t=0;t<this.countries.length;t++){const e=this.countries[t];this.dialCodes[e.dialCode]||(this.dialCodes[e.dialCode]=!0),this._addToDialCodeMap(e.iso2,e.dialCode,e.priority)}for(let t=0;t<this.countries.length;t++){const e=this.countries[t];if(e.areaCodes){const t=this.dialCodeToIso2Map[e.dialCode][0];for(let n=0;n<e.areaCodes.length;n++){const i=e.areaCodes[n];for(let n=1;n<i.length;n++){const s=e.dialCode+i.substr(0,n);this._addToDialCodeMap(t,s),this._addToDialCodeMap(e.iso2,s)}this._addToDialCodeMap(e.iso2,e.dialCode+i)}}}}_generateMarkup(){this.telInput.classList.add("iti__tel-input"),this.telInput.hasAttribute("autocomplete")||this.telInput.form&&this.telInput.form.hasAttribute("autocomplete")||this.telInput.setAttribute("autocomplete","off");const{allowDropdown:t,separateDialCode:e,showFlags:n,containerClass:i,hiddenInput:s,dropdownContainer:o,fixDropdownWidth:r,useFullscreenPopup:a,countrySearch:c,i18n:l}=this.options;let u="iti";t&&(u+=" iti--allow-dropdown"),n&&(u+=" iti--show-flags"),i&&(u+=` ${i}`),a||(u+=" iti--inline-dropdown");const d=g("div",{class:u});if(this.telInput.parentNode?.insertBefore(d,this.telInput),t||n||e){this.countryContainer=g("div",{class:"iti__country-container"},d),this.showSelectedCountryOnLeft?this.countryContainer.style.left="0px":this.countryContainer.style.right="0px",t?(this.selectedCountry=g("button",{type:"button",class:"iti__selected-country","aria-expanded":"false","aria-label":this.options.i18n.selectedCountryAriaLabel,"aria-haspopup":"true","aria-controls":`iti-${this.id}__dropdown-content`,role:"combobox"},this.countryContainer),this.telInput.disabled&&this.selectedCountry.setAttribute("disabled","true")):this.selectedCountry=g("div",{class:"iti__selected-country"},this.countryContainer);const n=g("div",{class:"iti__selected-country-primary"},this.selectedCountry);if(this.selectedCountryInner=g("div",{class:"iti__flag"},n),this.selectedCountryA11yText=g("span",{class:"iti__a11y-text"},this.selectedCountryInner),t&&(this.dropdownArrow=g("div",{class:"iti__arrow","aria-hidden":"true"},n)),e&&(this.selectedDialCode=g("div",{class:"iti__selected-dial-code"},this.selectedCountry)),t){const t=r?"":"iti--flexible-dropdown-width";if(this.dropdownContent=g("div",{id:`iti-${this.id}__dropdown-content`,class:`iti__dropdown-content iti__hide ${t}`}),c&&(this.searchInput=g("input",{type:"text",class:"iti__search-input",placeholder:l.searchPlaceholder,role:"combobox","aria-expanded":"true","aria-label":l.searchPlaceholder,"aria-controls":`iti-${this.id}__country-listbox`,"aria-autocomplete":"list",autocomplete:"off"},this.dropdownContent),this.searchResultsA11yText=g("span",{class:"iti__a11y-text"},this.dropdownContent)),this.countryList=g("ul",{class:"iti__country-list",id:`iti-${this.id}__country-listbox`,role:"listbox","aria-label":l.countryListAriaLabel},this.dropdownContent),this._appendListItems(),c&&this._updateSearchResultsText(),o){let t="iti iti--container";t+=a?" iti--fullscreen-popup":" iti--inline-dropdown",this.dropdown=g("div",{class:t}),this.dropdown.appendChild(this.dropdownContent)}else this.countryContainer.appendChild(this.dropdownContent)}}if(d.appendChild(this.telInput),this._updateInputPadding(),s){const t=s(this.telInput.getAttribute("name")||"");t.phone&&(this.hiddenInput=g("input",{type:"hidden",name:t.phone}),d.appendChild(this.hiddenInput)),t.country&&(this.hiddenInputCountry=g("input",{type:"hidden",name:t.country}),d.appendChild(this.hiddenInputCountry))}}_appendListItems(){for(let t=0;t<this.countries.length;t++){const e=this.countries[t],n=0===t?"iti__highlight":"",i=g("li",{id:`iti-${this.id}__item-${e.iso2}`,class:`iti__country ${n}`,tabindex:"-1",role:"option","data-dial-code":e.dialCode,"data-country-code":e.iso2,"aria-selected":"false"},this.countryList);e.nodeById[this.id]=i;let s="";this.options.showFlags&&(s+=`<div class='iti__flag iti__${e.iso2}'></div>`),s+=`<span class='iti__country-name'>${e.name}</span>`,s+=`<span class='iti__dial-code'>+${e.dialCode}</span>`,i.insertAdjacentHTML("beforeend",s)}}_setInitialState(t=!1){const e=this.telInput.getAttribute("value"),n=this.telInput.value,i=!e||"+"!==e.charAt(0)||n&&"+"===n.charAt(0)?n:e,s=this._getDialCode(i),o=m(i),{initialCountry:r,geoIpLookup:a}=this.options,c="auto"===r&&a;if(s&&!o)this._updateCountryFromNumber(i);else if(!c||t){const t=r?r.toLowerCase():"";t&&this._getCountryData(t,!0)?this._setCountry(t):s&&o?this._setCountry("us"):this._setCountry()}i&&this._updateValFromNumber(i)}_initListeners(){this._initTelInputListeners(),this.options.allowDropdown&&this._initDropdownListeners(),(this.hiddenInput||this.hiddenInputCountry)&&this.telInput.form&&this._initHiddenInputListener()}_initHiddenInputListener(){this._handleHiddenInputSubmit=()=>{this.hiddenInput&&(this.hiddenInput.value=this.getNumber()),this.hiddenInputCountry&&(this.hiddenInputCountry.value=this.getSelectedCountryData().iso2||"")},this.telInput.form?.addEventListener("submit",this._handleHiddenInputSubmit)}_initDropdownListeners(){this._handleLabelClick=t=>{this.dropdownContent.classList.contains("iti__hide")?this.telInput.focus():t.preventDefault()};const t=this.telInput.closest("label");t&&t.addEventListener("click",this._handleLabelClick),this._handleClickSelectedCountry=()=>{!this.dropdownContent.classList.contains("iti__hide")||this.telInput.disabled||this.telInput.readOnly||this._openDropdown()},this.selectedCountry.addEventListener("click",this._handleClickSelectedCountry),this._handleCountryContainerKeydown=t=>{this.dropdownContent.classList.contains("iti__hide")&&["ArrowUp","ArrowDown"," ","Enter"].includes(t.key)&&(t.preventDefault(),t.stopPropagation(),this._openDropdown()),"Tab"===t.key&&this._closeDropdown()},this.countryContainer.addEventListener("keydown",this._handleCountryContainerKeydown)}_initRequests(){const{utilsScript:t,initialCountry:e,geoIpLookup:n}=this.options;t&&!y.utils?y.documentReady()?y.loadUtils(t):window.addEventListener("load",(()=>{y.loadUtils(t)})):this.resolveUtilsScriptPromise(),"auto"===e&&n&&!this.selectedCountryData.iso2?this._loadAutoCountry():this.resolveAutoCountryPromise()}_loadAutoCountry(){y.autoCountry?this.handleAutoCountry():y.startedLoadingAutoCountry||(y.startedLoadingAutoCountry=!0,"function"==typeof this.options.geoIpLookup&&this.options.geoIpLookup(((t="")=>{const e=t.toLowerCase();e&&this._getCountryData(e,!0)?(y.autoCountry=e,setTimeout((()=>v("handleAutoCountry")))):(this._setInitialState(!0),v("rejectAutoCountryPromise"))}),(()=>{this._setInitialState(!0),v("rejectAutoCountryPromise")})))}_openDropdownWithPlus(){this._openDropdown(),this.searchInput.value="+",this._filterCountries("",!0)}_initTelInputListeners(){const{strictMode:t,formatAsYouType:e,separateDialCode:n,formatOnDisplay:i,allowDropdown:s,countrySearch:o}=this.options;let r=!1;/\p{L}/u.test(this.telInput.value)&&(r=!0),this._handleInputEvent=a=>{if(this.isAndroid&&"+"===a?.data&&n&&s&&o){const t=this.telInput.selectionStart||0,e=this.telInput.value.substring(0,t-1),n=this.telInput.value.substring(t);return this.telInput.value=e+n,void this._openDropdownWithPlus()}this._updateCountryFromNumber(this.telInput.value)&&this._triggerCountryChange();const c=a?.data&&/[^+0-9]/.test(a.data),l="insertFromPaste"===a?.inputType&&this.telInput.value;c||l&&!t?r=!0:/[^+0-9]/.test(this.telInput.value)||(r=!1);const u=a?.detail&&a.detail.isSetNumber&&!i;if(e&&!r&&!u){const t=this.telInput.selectionStart||0,e=this.telInput.value.substring(0,t).replace(/[^+0-9]/g,"").length,n="deleteContentForward"===a?.inputType,i=this._formatNumberAsYouType(),s=((t,e,n,i)=>{if(0===n&&!i)return 0;let s=0;for(let n=0;n<e.length;n++){if(/[+0-9]/.test(e[n])&&s++,s===t&&!i)return n+1;if(i&&s===t+1)return n}return e.length})(e,i,t,n);this.telInput.value=i,this.telInput.setSelectionRange(s,s)}},this.telInput.addEventListener("input",this._handleInputEvent),(t||n)&&(this._handleKeydownEvent=e=>{if(e.key&&1===e.key.length&&!e.altKey&&!e.ctrlKey&&!e.metaKey){if(n&&s&&o&&"+"===e.key)return e.preventDefault(),void this._openDropdownWithPlus();if(t){const t=0===this.telInput.selectionStart&&"+"===e.key,i=/^[0-9]$/.test(e.key),s=n?i:t||i,o=this._getFullNumber(),r=y.utils.getCoreNumber(o,this.selectedCountryData.iso2),a=this.maxCoreNumberLength&&r.length>=this.maxCoreNumberLength,c=this.telInput.value.substring(this.telInput.selectionStart,this.telInput.selectionEnd),l=/\d/.test(c),u=(this.telInput.selectionStart||0)===this.telInput.value.length;(!s||a&&!l&&u)&&e.preventDefault()}}},this.telInput.addEventListener("keydown",this._handleKeydownEvent))}_cap(t){const e=parseInt(this.telInput.getAttribute("maxlength")||"",10);return e&&t.length>e?t.substr(0,e):t}_trigger(t,e={}){const n=new CustomEvent(t,{bubbles:!0,cancelable:!0,detail:e});this.telInput.dispatchEvent(n)}_openDropdown(){const{fixDropdownWidth:t,countrySearch:e}=this.options;if(t&&(this.dropdownContent.style.width=`${this.telInput.offsetWidth}px`),this.dropdownContent.classList.remove("iti__hide"),this.selectedCountry.setAttribute("aria-expanded","true"),this._setDropdownPosition(),e){const t=this.countryList.firstElementChild;t&&(this._highlightListItem(t,!1),this.countryList.scrollTop=0),this.searchInput.focus()}this._bindDropdownListeners(),this.dropdownArrow.classList.add("iti__arrow--up"),this._trigger("open:countrydropdown")}_setDropdownPosition(){if(this.options.dropdownContainer&&this.options.dropdownContainer.appendChild(this.dropdown),!this.options.useFullscreenPopup){const t=this.telInput.getBoundingClientRect(),e=this.telInput.offsetHeight;this.options.dropdownContainer&&(this.dropdown.style.top=`${t.top+e}px`,this.dropdown.style.left=`${t.left}px`,this._handleWindowScroll=()=>this._closeDropdown(),window.addEventListener("scroll",this._handleWindowScroll))}}_bindDropdownListeners(){this._handleMouseoverCountryList=t=>{const e=t.target?.closest(".iti__country");e&&this._highlightListItem(e,!1)},this.countryList.addEventListener("mouseover",this._handleMouseoverCountryList),this._handleClickCountryList=t=>{const e=t.target?.closest(".iti__country");e&&this._selectListItem(e)},this.countryList.addEventListener("click",this._handleClickCountryList);let t=!0;this._handleClickOffToClose=()=>{t||this._closeDropdown(),t=!1},document.documentElement.addEventListener("click",this._handleClickOffToClose);let e="",n=null;if(this._handleKeydownOnDropdown=t=>{["ArrowUp","ArrowDown","Enter","Escape"].includes(t.key)&&(t.preventDefault(),t.stopPropagation(),"ArrowUp"===t.key||"ArrowDown"===t.key?this._handleUpDownKey(t.key):"Enter"===t.key?this._handleEnterKey():"Escape"===t.key&&this._closeDropdown()),!this.options.countrySearch&&/^[a-zA-ZÀ-ÿа-яА-Я ]$/.test(t.key)&&(t.stopPropagation(),n&&clearTimeout(n),e+=t.key.toLowerCase(),this._searchForCountry(e),n=setTimeout((()=>{e=""}),1e3))},document.addEventListener("keydown",this._handleKeydownOnDropdown),this.options.countrySearch){const t=()=>{const t=this.searchInput.value.trim();t?this._filterCountries(t):this._filterCountries("",!0)};let e=null;this._handleSearchChange=()=>{e&&clearTimeout(e),e=setTimeout((()=>{t(),e=null}),100)},this.searchInput.addEventListener("input",this._handleSearchChange),this.searchInput.addEventListener("click",(t=>t.stopPropagation()))}}_searchForCountry(t){for(let e=0;e<this.countries.length;e++){const n=this.countries[e];if(n.name.substr(0,t.length).toLowerCase()===t){const t=n.nodeById[this.id];this._highlightListItem(t,!1),this._scrollTo(t);break}}}_filterCountries(t,e=!1){let n=!0;this.countryList.innerHTML="";const i=f(t);for(let t=0;t<this.countries.length;t++){const s=this.countries[t],o=f(s.name),r=s.name.split(/[^a-zA-ZÀ-ÿа-яА-Я]/).map((t=>t[0])).join("").toLowerCase(),a=`+${s.dialCode}`;if(e||o.includes(i)||a.includes(i)||s.iso2.includes(i)||r.includes(i)){const t=s.nodeById[this.id];t&&this.countryList.appendChild(t),n&&(this._highlightListItem(t,!1),n=!1)}}n&&this._highlightListItem(null,!1),this.countryList.scrollTop=0,this._updateSearchResultsText()}_updateSearchResultsText(){const{i18n:t}=this.options,e=this.countryList.childElementCount;let n;n=0===e?t.zeroSearchResults:1===e?t.oneSearchResult:t.multipleSearchResults.replace("${count}",e.toString()),this.searchResultsA11yText.textContent=n}_handleUpDownKey(t){let e="ArrowUp"===t?this.highlightedItem?.previousElementSibling:this.highlightedItem?.nextElementSibling;!e&&this.countryList.childElementCount>1&&(e="ArrowUp"===t?this.countryList.lastElementChild:this.countryList.firstElementChild),e&&(this._scrollTo(e),this._highlightListItem(e,!1))}_handleEnterKey(){this.highlightedItem&&this._selectListItem(this.highlightedItem)}_updateValFromNumber(t){let e=t;if(this.options.formatOnDisplay&&y.utils&&this.selectedCountryData){const t=this.options.nationalMode||"+"!==e.charAt(0)&&!this.options.separateDialCode,{NATIONAL:n,INTERNATIONAL:i}=y.utils.numberFormat,s=t?n:i;e=y.utils.formatNumber(e,this.selectedCountryData.iso2,s)}e=this._beforeSetNumber(e),this.telInput.value=e}_updateCountryFromNumber(t){const e=t.indexOf("+");let n=e?t.substring(e):t;const i=this.selectedCountryData.dialCode;n&&"1"===i&&"+"!==n.charAt(0)&&("1"!==n.charAt(0)&&(n=`1${n}`),n=`+${n}`),this.options.separateDialCode&&i&&"+"!==n.charAt(0)&&(n=`+${i}${n}`);const s=this._getDialCode(n,!0),o=p(n);let r=null;if(s){const t=this.dialCodeToIso2Map[p(s)],e=-1!==t.indexOf(this.selectedCountryData.iso2)&&o.length<=s.length-1;if(!("1"===i&&m(o)||e))for(let e=0;e<t.length;e++)if(t[e]){r=t[e];break}}else"+"===n.charAt(0)&&o.length?r="":n&&"+"!==n||this.selectedCountryData.iso2||(r=this.defaultCountry);return null!==r&&this._setCountry(r)}_highlightListItem(t,e){const n=this.highlightedItem;if(n&&(n.classList.remove("iti__highlight"),n.setAttribute("aria-selected","false")),this.highlightedItem=t,this.highlightedItem){this.highlightedItem.classList.add("iti__highlight"),this.highlightedItem.setAttribute("aria-selected","true");const t=this.highlightedItem.getAttribute("id")||"";this.selectedCountry.setAttribute("aria-activedescendant",t),this.options.countrySearch&&this.searchInput.setAttribute("aria-activedescendant",t)}e&&this.highlightedItem.focus()}_getCountryData(t,e){for(let e=0;e<this.countries.length;e++)if(this.countries[e].iso2===t)return this.countries[e];if(e)return null;throw new Error(`No country data for '${t}'`)}_setCountry(t){const{separateDialCode:e,showFlags:n,i18n:i}=this.options,s=this.selectedCountryData.iso2?this.selectedCountryData:{};if(this.selectedCountryData=t&&this._getCountryData(t,!1)||{},this.selectedCountryData.iso2&&(this.defaultCountry=this.selectedCountryData.iso2),this.selectedCountryInner){let e="",s="";t&&n?(e=`iti__flag iti__${t}`,s=`${this.selectedCountryData.name} +${this.selectedCountryData.dialCode}`):(e="iti__flag iti__globe",s=i.noCountrySelected),this.selectedCountryInner.className=e,this.selectedCountryA11yText.textContent=s}if(this._setSelectedCountryTitleAttribute(t,e),e){const t=this.selectedCountryData.dialCode?`+${this.selectedCountryData.dialCode}`:"";this.selectedDialCode.innerHTML=t,this._updateInputPadding()}return this._updatePlaceholder(),this._updateMaxLength(),s.iso2!==t}_updateInputPadding(){if(this.selectedCountry){const t=(this.selectedCountry.offsetWidth||this._getHiddenSelectedCountryWidth())+6;this.showSelectedCountryOnLeft?this.telInput.style.paddingLeft=`${t}px`:this.telInput.style.paddingRight=`${t}px`}}_updateMaxLength(){const{strictMode:t,placeholderNumberType:e,validationNumberType:n}=this.options;if(t&&y.utils)if(this.selectedCountryData.iso2){const t=y.utils.numberType[e];let i=y.utils.getExampleNumber(this.selectedCountryData.iso2,!1,t,!0),s=i;for(;y.utils.isPossibleNumber(i,this.selectedCountryData.iso2,n);)s=i,i+="0";const o=y.utils.getCoreNumber(s,this.selectedCountryData.iso2);this.maxCoreNumberLength=o.length}else this.maxCoreNumberLength=null}_setSelectedCountryTitleAttribute(t=null,e){if(!this.selectedCountry)return;let n;n=t&&!e?`${this.selectedCountryData.name}: +${this.selectedCountryData.dialCode}`:t?this.selectedCountryData.name:"Unknown",this.selectedCountry.setAttribute("title",n)}_getHiddenSelectedCountryWidth(){if(this.telInput.parentNode){const t=this.telInput.parentNode.cloneNode(!1);t.style.visibility="hidden",document.body.appendChild(t);const e=this.countryContainer.cloneNode();t.appendChild(e);const n=this.selectedCountry.cloneNode(!0);e.appendChild(n);const i=n.offsetWidth;return document.body.removeChild(t),i}return 0}_updatePlaceholder(){const{autoPlaceholder:t,placeholderNumberType:e,nationalMode:n,customPlaceholder:i}=this.options,s="aggressive"===t||!this.hadInitialPlaceholder&&"polite"===t;if(y.utils&&s){const t=y.utils.numberType[e];let s=this.selectedCountryData.iso2?y.utils.getExampleNumber(this.selectedCountryData.iso2,n,t):"";s=this._beforeSetNumber(s),"function"==typeof i&&(s=i(s,this.selectedCountryData)),this.telInput.setAttribute("placeholder",s)}}_selectListItem(t){const e=this._setCountry(t.getAttribute("data-country-code"));this._closeDropdown(),this._updateDialCode(t.getAttribute("data-dial-code")),this.telInput.focus(),e&&this._triggerCountryChange()}_closeDropdown(){this.dropdownContent.classList.add("iti__hide"),this.selectedCountry.setAttribute("aria-expanded","false"),this.selectedCountry.removeAttribute("aria-activedescendant"),this.highlightedItem&&this.highlightedItem.setAttribute("aria-selected","false"),this.options.countrySearch&&this.searchInput.removeAttribute("aria-activedescendant"),this.dropdownArrow.classList.remove("iti__arrow--up"),document.removeEventListener("keydown",this._handleKeydownOnDropdown),this.options.countrySearch&&this.searchInput.removeEventListener("input",this._handleSearchChange),document.documentElement.removeEventListener("click",this._handleClickOffToClose),this.countryList.removeEventListener("mouseover",this._handleMouseoverCountryList),this.countryList.removeEventListener("click",this._handleClickCountryList),this.options.dropdownContainer&&(this.options.useFullscreenPopup||window.removeEventListener("scroll",this._handleWindowScroll),this.dropdown.parentNode&&this.dropdown.parentNode.removeChild(this.dropdown)),this._trigger("close:countrydropdown")}_scrollTo(t){const e=this.countryList,n=document.documentElement.scrollTop,i=e.offsetHeight,s=e.getBoundingClientRect().top+n,o=s+i,r=t.offsetHeight,a=t.getBoundingClientRect().top+n,c=a+r,l=a-s+e.scrollTop;if(a<s)e.scrollTop=l;else if(c>o){const t=i-r;e.scrollTop=l-t}}_updateDialCode(t){const e=this.telInput.value,n=`+${t}`;let i;if("+"===e.charAt(0)){const t=this._getDialCode(e);i=t?e.replace(t,n):n,this.telInput.value=i}}_getDialCode(t,e){let n="";if("+"===t.charAt(0)){let i="";for(let s=0;s<t.length;s++){const o=t.charAt(s);if(!isNaN(parseInt(o,10))){if(i+=o,e)this.dialCodeToIso2Map[i]&&(n=t.substr(0,s+1));else if(this.dialCodes[i]){n=t.substr(0,s+1);break}if(i.length===this.dialCodeMaxLen)break}}}return n}_getFullNumber(){const t=this.telInput.value.trim(),{dialCode:e}=this.selectedCountryData;let n;const i=p(t);return n=this.options.separateDialCode&&"+"!==t.charAt(0)&&e&&i?`+${e}`:"",n+t}_beforeSetNumber(t){let e=t;if(this.options.separateDialCode){let t=this._getDialCode(e);if(t){t=`+${this.selectedCountryData.dialCode}`;const n=" "===e[t.length]||"-"===e[t.length]?t.length+1:t.length;e=e.substr(n)}}return this._cap(e)}_triggerCountryChange(){this._trigger("countrychange")}_formatNumberAsYouType(){const t=this._getFullNumber(),e=y.utils?y.utils.formatNumberAsYouType(t,this.selectedCountryData.iso2):t,{dialCode:n}=this.selectedCountryData;return this.options.separateDialCode&&"+"!==this.telInput.value.charAt(0)&&e.includes(`+${n}`)?(e.split(`+${n}`)[1]||"").trim():e}handleAutoCountry(){"auto"===this.options.initialCountry&&y.autoCountry&&(this.defaultCountry=y.autoCountry,this.selectedCountryData.iso2||this.selectedCountryInner.classList.contains("iti__globe")||this.setCountry(this.defaultCountry),this.resolveAutoCountryPromise())}handleUtils(){y.utils&&(this.telInput.value&&this._updateValFromNumber(this.telInput.value),this.selectedCountryData.iso2&&(this._updatePlaceholder(),this._updateMaxLength())),this.resolveUtilsScriptPromise()}destroy(){const{allowDropdown:t,separateDialCode:e}=this.options;if(t){this._closeDropdown(),this.selectedCountry.removeEventListener("click",this._handleClickSelectedCountry),this.countryContainer.removeEventListener("keydown",this._handleCountryContainerKeydown);const t=this.telInput.closest("label");t&&t.removeEventListener("click",this._handleLabelClick)}const{form:n}=this.telInput;this._handleHiddenInputSubmit&&n&&n.removeEventListener("submit",this._handleHiddenInputSubmit),this.telInput.removeEventListener("input",this._handleInputEvent),this._handleKeydownEvent&&this.telInput.removeEventListener("keydown",this._handleKeydownEvent),this.telInput.removeAttribute("data-intl-tel-input-id"),e&&(this.isRTL?this.telInput.style.paddingRight=this.originalPaddingRight:this.telInput.style.paddingLeft=this.originalPaddingLeft);const i=this.telInput.parentNode;i?.parentNode?.insertBefore(this.telInput,i),i?.parentNode?.removeChild(i),delete y.instances[this.id]}getExtension(){return y.utils?y.utils.getExtension(this._getFullNumber(),this.selectedCountryData.iso2):""}getNumber(t){if(y.utils){const{iso2:e}=this.selectedCountryData;return y.utils.formatNumber(this._getFullNumber(),e,t)}return""}getNumberType(){return y.utils?y.utils.getNumberType(this._getFullNumber(),this.selectedCountryData.iso2):-99}getSelectedCountryData(){return this.selectedCountryData}getValidationError(){if(y.utils){const{iso2:t}=this.selectedCountryData;return y.utils.getValidationError(this._getFullNumber(),t)}return-99}isValidNumber(){if(!this.selectedCountryData.iso2)return!1;const t=this._getFullNumber(),e=t.search(/\p{L}/u);if(e>-1){const n=t.substring(0,e),i=this._utilsIsPossibleNumber(n),s=this._utilsIsPossibleNumber(t);return i&&s}return this._utilsIsPossibleNumber(t)}_utilsIsPossibleNumber(t){return y.utils?y.utils.isPossibleNumber(t,this.selectedCountryData.iso2,this.options.validationNumberType):null}isValidNumberPrecise(){if(!this.selectedCountryData.iso2)return!1;const t=this._getFullNumber(),e=t.search(/\p{L}/u);if(e>-1){const n=t.substring(0,e),i=this._utilsIsValidNumber(n),s=this._utilsIsValidNumber(t);return i&&s}return this._utilsIsValidNumber(t)}_utilsIsValidNumber(t){return y.utils?y.utils.isValidNumber(t,this.selectedCountryData.iso2):null}setCountry(t){const e=t?.toLowerCase(),n=this.selectedCountryData.iso2;(t&&e!==n||!t&&n)&&(this._setCountry(e),this._updateDialCode(this.selectedCountryData.dialCode),this._triggerCountryChange())}setNumber(t){const e=this._updateCountryFromNumber(t);this._updateValFromNumber(t),e&&this._triggerCountryChange(),this._trigger("input",{isSetNumber:!0})}setPlaceholderNumberType(t){this.options.placeholderNumberType=t,this._updatePlaceholder()}setDisabled(t){this.telInput.disabled=t,t?this.selectedCountry.setAttribute("disabled","true"):this.selectedCountry.removeAttribute("disabled")}},y=Object.assign(((t,e)=>{const n=new b(t,e);return n._init(),t.setAttribute("data-intl-tel-input-id",n.id.toString()),y.instances[n.id]=n,n}),{defaults:d,documentReady:()=>"complete"===document.readyState,getCountryData:()=>a,getInstance:t=>{const e=t.getAttribute("data-intl-tel-input-id");return e?y.instances[e]:null},instances:{},loadUtils:t=>y.utils||y.startedLoadingUtilsScript?null:(y.startedLoadingUtilsScript=!0,new Promise(((e,n)=>{import(t).then((({default:t})=>{y.utils=t,v("handleUtils"),e(!0)})).catch((()=>{v("rejectUtilsScriptPromise"),n()}))}))),version:"24.5.0"}),w=y;return l=s,((s,o,r,a)=>{if(o&&"object"==typeof o||"function"==typeof o)for(let r of n(o))i.call(s,r)||undefined===r||t(s,r,{get:()=>o[r],enumerable:!(a=e(o,r))||a.enumerable});return s})(t({},"__esModule",{value:!0}),l)})().default,t.exports?t.exports=e():window.intlTelInput=e()},9230:function(){class t extends HTMLElement{connectedCallback(){this.videoId=this.getAttribute("videoid");let e=this.querySelector(".lty-playbtn");if(this.playLabel=e&&e.textContent.trim()||this.getAttribute("playlabel")||"Play",this.dataset.title=this.getAttribute("title")||"",this.style.backgroundImage||(this.style.backgroundImage=`url("https://i.ytimg.com/vi/${this.videoId}/hqdefault.jpg")`,this.upgradePosterImage()),e||(e=document.createElement("button"),e.type="button",e.classList.add("lty-playbtn"),this.append(e)),!e.textContent){const t=document.createElement("span");t.className="lyt-visually-hidden",t.textContent=this.playLabel,e.append(t)}this.addNoscriptIframe(),"A"===e.nodeName&&(e.removeAttribute("href"),e.setAttribute("tabindex","0"),e.setAttribute("role","button"),e.addEventListener("keydown",(t=>{"Enter"!==t.key&&" "!==t.key||(t.preventDefault(),this.activate())}))),this.addEventListener("pointerover",t.warmConnections,{once:!0}),this.addEventListener("focusin",t.warmConnections,{once:!0}),this.addEventListener("click",this.activate),this.needsYTApi=this.hasAttribute("js-api")||navigator.vendor.includes("Apple")||navigator.userAgent.includes("Mobi")}static addPrefetch(t,e,n){const i=document.createElement("link");i.rel=t,i.href=e,n&&(i.as=n),document.head.append(i)}static warmConnections(){t.preconnected||(t.addPrefetch("preconnect","https://www.youtube-nocookie.com"),t.addPrefetch("preconnect","https://www.google.com"),t.addPrefetch("preconnect","https://googleads.g.doubleclick.net"),t.addPrefetch("preconnect","https://static.doubleclick.net"),t.preconnected=!0)}fetchYTPlayerApi(){window.YT||window.YT&&window.YT.Player||(this.ytApiPromise=new Promise(((t,e)=>{var n=document.createElement("script");n.src="https://www.youtube.com/iframe_api",n.async=!0,n.onload=e=>{YT.ready(t)},n.onerror=e,this.append(n)})))}async getYTPlayer(){return this.playerPromise||await this.activate(),this.playerPromise}async addYTPlayerIframe(){this.fetchYTPlayerApi(),await this.ytApiPromise;const t=document.createElement("div");this.append(t);const e=Object.fromEntries(this.getParams().entries());this.playerPromise=new Promise((n=>{let i=new YT.Player(t,{width:"100%",videoId:this.videoId,playerVars:e,events:{onReady:t=>{t.target.playVideo(),n(i)}}})}))}addNoscriptIframe(){const t=this.createBasicIframe(),e=document.createElement("noscript");e.innerHTML=t.outerHTML,this.append(e)}getParams(){const t=new URLSearchParams(this.getAttribute("params")||[]);return t.append("autoplay","1"),t.append("playsinline","1"),t}async activate(){if(this.classList.contains("lyt-activated"))return;if(this.classList.add("lyt-activated"),this.needsYTApi)return this.addYTPlayerIframe(this.getParams());const t=this.createBasicIframe();this.append(t),t.focus()}createBasicIframe(){const t=document.createElement("iframe");return t.width=560,t.height=315,t.title=this.playLabel,t.allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture",t.allowFullscreen=!0,t.src=`https://www.youtube-nocookie.com/embed/${encodeURIComponent(this.videoId)}?${this.getParams().toString()}`,t}upgradePosterImage(){setTimeout((()=>{const t=`https://i.ytimg.com/vi_webp/${this.videoId}/sddefault.webp`,e=new Image;e.fetchPriority="low",e.referrerpolicy="origin",e.src=t,e.onload=e=>{90==e.target.naturalHeight&&120==e.target.naturalWidth||(this.style.backgroundImage=`url("${t}")`)}}),100)}}customElements.define("lite-youtube",t)},8498:function(t,e){var n,i={domainThreshold:2,secondLevelThreshold:2,topLevelThreshold:2,defaultDomains:["msn.com","bellsouth.net","telus.net","comcast.net","optusnet.com.au","earthlink.net","qq.com","sky.com","icloud.com","mac.com","sympatico.ca","googlemail.com","att.net","xtra.co.nz","web.de","cox.net","gmail.com","ymail.com","aim.com","rogers.com","verizon.net","rocketmail.com","google.com","optonline.net","sbcglobal.net","aol.com","me.com","btinternet.com","charter.net","shaw.ca"],defaultSecondLevelDomains:["yahoo","hotmail","mail","live","outlook","gmx"],defaultTopLevelDomains:["com","com.au","com.tw","ca","co.nz","co.uk","de","fr","it","ru","net","org","edu","gov","jp","nl","kr","se","eu","ie","co.il","us","at","be","dk","hk","es","gr","ch","no","cz","in","net","net.au","info","biz","mil","co.jp","sg","hu"],run:function(t){t.domains=t.domains||i.defaultDomains,t.secondLevelDomains=t.secondLevelDomains||i.defaultSecondLevelDomains,t.topLevelDomains=t.topLevelDomains||i.defaultTopLevelDomains,t.distanceFunction=t.distanceFunction||i.sift3Distance;var e=function(t){return t},n=t.suggested||e,s=t.empty||e,o=i.suggest(i.encodeEmail(t.email),t.domains,t.secondLevelDomains,t.topLevelDomains,t.distanceFunction);return o?n(o):s()},suggest:function(t,e,n,i,s){t=t.toLowerCase();var o=this.splitEmail(t);if(n&&i&&-1!==n.indexOf(o.secondLevelDomain)&&-1!==i.indexOf(o.topLevelDomain))return!1;if(c=this.findClosestDomain(o.domain,e,s,this.domainThreshold))return c!=o.domain&&{address:o.address,domain:c,full:o.address+"@"+c};var r=this.findClosestDomain(o.secondLevelDomain,n,s,this.secondLevelThreshold),a=this.findClosestDomain(o.topLevelDomain,i,s,this.topLevelThreshold);if(o.domain){var c=o.domain,l=!1;if(r&&r!=o.secondLevelDomain&&(c=c.replace(o.secondLevelDomain,r),l=!0),a&&a!=o.topLevelDomain&&(c=c.replace(o.topLevelDomain,a),l=!0),1==l)return{address:o.address,domain:c,full:o.address+"@"+c}}return!1},findClosestDomain:function(t,e,n,i){var s;i=i||this.topLevelThreshold;var o=99,r=null;if(!t||!e)return!1;n||(n=this.sift3Distance);for(var a=0;a<e.length;a++){if(t===e[a])return t;(s=n(t,e[a]))<o&&(o=s,r=e[a])}return o<=i&&null!==r&&r},sift3Distance:function(t,e){if(null==t||0===t.length)return null==e||0===e.length?0:e.length;if(null==e||0===e.length)return t.length;for(var n=0,i=0,s=0,o=0;n+i<t.length&&n+s<e.length;){if(t.charAt(n+i)==e.charAt(n+s))o++;else{i=0,s=0;for(var r=0;r<5;r++){if(n+r<t.length&&t.charAt(n+r)==e.charAt(n)){i=r;break}if(n+r<e.length&&t.charAt(n)==e.charAt(n+r)){s=r;break}}}n++}return(t.length+e.length)/2-o},splitEmail:function(t){var e=t.trim().split("@");if(e.length<2)return!1;for(var n=0;n<e.length;n++)if(""===e[n])return!1;var i=e.pop(),s=i.split("."),o="",r="";if(0==s.length)return!1;if(1==s.length)r=s[0];else{for(o=s[0],n=1;n<s.length;n++)r+=s[n]+".";r=r.substring(0,r.length-1)}return{topLevelDomain:r,secondLevelDomain:o,domain:i,address:e.join("@")}},encodeEmail:function(t){var e=encodeURI(t);return e.replace("%20"," ").replace("%25","%").replace("%5E","^").replace("%60","`").replace("%7B","{").replace("%7C","|").replace("%7D","}")}};t.exports&&(t.exports=i),void 0===(n=function(){return i}.apply(e,[]))||(t.exports=n),"undefined"!=typeof window&&window.jQuery&&(jQuery.fn.mailcheck=function(t){var e=this;if(t.suggested){var n=t.suggested;t.suggested=function(t){n(e,t)}}if(t.empty){var s=t.empty;t.empty=function(){s.call(null,e)}}t.email=this.val(),i.run(t)})},6234:function(){},3749:function(){},8946:function(){},4030:function(t,e,n){t.exports=n(777)},7700:function(t){"use strict";var e=!("undefined"==typeof window||!window.document||!window.document.createElement),n={canUseDOM:e,canUseWorkers:"undefined"!=typeof Worker,canUseEventListeners:e&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:e&&!!window.screen,isInWorker:!e};t.exports=n},8751:function(t){var e,n,i,s,o,r,a,c,l,u,d,h,p,f,m,g=!1;function v(){if(!g){g=!0;var t=navigator.userAgent,v=/(?:MSIE.(\d+\.\d+))|(?:(?:Firefox|GranParadiso|Iceweasel).(\d+\.\d+))|(?:Opera(?:.+Version.|.)(\d+\.\d+))|(?:AppleWebKit.(\d+(?:\.\d+)?))|(?:Trident\/\d+\.\d+.*rv:(\d+\.\d+))/.exec(t),b=/(Mac OS X)|(Windows)|(Linux)/.exec(t);if(h=/\b(iPhone|iP[ao]d)/.exec(t),p=/\b(iP[ao]d)/.exec(t),u=/Android/i.exec(t),f=/FBAN\/\w+;/i.exec(t),m=/Mobile/i.exec(t),d=!!/Win64/.exec(t),v){(e=v[1]?parseFloat(v[1]):v[5]?parseFloat(v[5]):NaN)&&document&&document.documentMode&&(e=document.documentMode);var y=/(?:Trident\/(\d+.\d+))/.exec(t);r=y?parseFloat(y[1])+4:e,n=v[2]?parseFloat(v[2]):NaN,i=v[3]?parseFloat(v[3]):NaN,(s=v[4]?parseFloat(v[4]):NaN)?(v=/(?:Chrome\/(\d+\.\d+))/.exec(t),o=v&&v[1]?parseFloat(v[1]):NaN):o=NaN}else e=n=i=o=s=NaN;if(b){if(b[1]){var w=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(t);a=!w||parseFloat(w[1].replace("_","."))}else a=!1;c=!!b[2],l=!!b[3]}else a=c=l=!1}}var b={ie:function(){return v()||e},ieCompatibilityMode:function(){return v()||r>e},ie64:function(){return b.ie()&&d},firefox:function(){return v()||n},opera:function(){return v()||i},webkit:function(){return v()||s},safari:function(){return b.webkit()},chrome:function(){return v()||o},windows:function(){return v()||c},osx:function(){return v()||a},linux:function(){return v()||l},iphone:function(){return v()||h},mobile:function(){return v()||h||p||u||m},nativeApp:function(){return v()||f},android:function(){return v()||u},ipad:function(){return v()||p}};t.exports=b},8125:function(t,e,n){"use strict";var i,s=n(7700);s.canUseDOM&&(i=document.implementation&&document.implementation.hasFeature&&!0!==document.implementation.hasFeature("","")),t.exports=function(t,e){if(!s.canUseDOM||e&&!("addEventListener"in document))return!1;var n="on"+t,o=n in document;if(!o){var r=document.createElement("div");r.setAttribute(n,"return;"),o="function"==typeof r[n]}return!o&&i&&"wheel"===t&&(o=document.implementation.hasFeature("Events.wheel","3.0")),o}},777:function(t,e,n){"use strict";var i=n(8751),s=n(8125);function o(t){var e=0,n=0,i=0,s=0;return"detail"in t&&(n=t.detail),"wheelDelta"in t&&(n=-t.wheelDelta/120),"wheelDeltaY"in t&&(n=-t.wheelDeltaY/120),"wheelDeltaX"in t&&(e=-t.wheelDeltaX/120),"axis"in t&&t.axis===t.HORIZONTAL_AXIS&&(e=n,n=0),i=10*e,s=10*n,"deltaY"in t&&(s=t.deltaY),"deltaX"in t&&(i=t.deltaX),(i||s)&&t.deltaMode&&(1==t.deltaMode?(i*=40,s*=40):(i*=800,s*=800)),i&&!e&&(e=i<1?-1:1),s&&!n&&(n=s<1?-1:1),{spinX:e,spinY:n,pixelX:i,pixelY:s}}o.getEventType=function(){return i.firefox()?"DOMMouseScroll":s("wheel")?"wheel":"mousewheel"},t.exports=o},6311:function(t){t.exports=function(){"use strict";class t{constructor(t){t||(t={}),this.main=t.main||"ss-main",this.placeholder=t.placeholder||"ss-placeholder",this.values=t.values||"ss-values",this.single=t.single||"ss-single",this.max=t.max||"ss-max",this.value=t.value||"ss-value",this.valueText=t.valueText||"ss-value-text",this.valueDelete=t.valueDelete||"ss-value-delete",this.valueOut=t.valueOut||"ss-value-out",this.deselect=t.deselect||"ss-deselect",this.deselectPath=t.deselectPath||"M10,10 L90,90 M10,90 L90,10",this.arrow=t.arrow||"ss-arrow",this.arrowClose=t.arrowClose||"M10,30 L50,70 L90,30",this.arrowOpen=t.arrowOpen||"M10,70 L50,30 L90,70",this.content=t.content||"ss-content",this.openAbove=t.openAbove||"ss-open-above",this.openBelow=t.openBelow||"ss-open-below",this.search=t.search||"ss-search",this.searchHighlighter=t.searchHighlighter||"ss-search-highlight",this.searching=t.searching||"ss-searching",this.addable=t.addable||"ss-addable",this.addablePath=t.addablePath||"M50,10 L50,90 M10,50 L90,50",this.list=t.list||"ss-list",this.optgroup=t.optgroup||"ss-optgroup",this.optgroupLabel=t.optgroupLabel||"ss-optgroup-label",this.optgroupLabelText=t.optgroupLabelText||"ss-optgroup-label-text",this.optgroupActions=t.optgroupActions||"ss-optgroup-actions",this.optgroupSelectAll=t.optgroupSelectAll||"ss-selectall",this.optgroupSelectAllBox=t.optgroupSelectAllBox||"M60,10 L10,10 L10,90 L90,90 L90,50",this.optgroupSelectAllCheck=t.optgroupSelectAllCheck||"M30,45 L50,70 L90,10",this.optgroupClosable=t.optgroupClosable||"ss-closable",this.option=t.option||"ss-option",this.optionDelete=t.optionDelete||"M10,10 L90,90 M10,90 L90,10",this.highlighted=t.highlighted||"ss-highlighted",this.open=t.open||"ss-open",this.close=t.close||"ss-close",this.selected=t.selected||"ss-selected",this.error=t.error||"ss-error",this.disabled=t.disabled||"ss-disabled",this.hide=t.hide||"ss-hide"}}function e(){return Math.random().toString(36).substring(2,10)}function n(t,e=50,n=!1){let i;return function(...s){const o=self,r=n&&!i;clearTimeout(i),i=setTimeout((()=>{i=null,n||t.apply(o,s)}),e),r&&t.apply(o,s)}}function i(t,e){return JSON.stringify(t)===JSON.stringify(e)}class s{constructor(t){if(this.id=t.id&&""!==t.id?t.id:e(),this.label=t.label||"",this.selectAll=void 0!==t.selectAll&&t.selectAll,this.selectAllText=t.selectAllText||"Select All",this.closable=t.closable||"off",this.options=[],t.options)for(const e of t.options)this.options.push(new o(e))}}class o{constructor(t){this.id=t.id&&""!==t.id?t.id:e(),this.value=void 0===t.value?t.text:t.value,this.text=t.text||"",this.html=t.html||"",this.selected=void 0!==t.selected&&t.selected,this.display=void 0===t.display||t.display,this.disabled=void 0!==t.disabled&&t.disabled,this.mandatory=void 0!==t.mandatory&&t.mandatory,this.placeholder=void 0!==t.placeholder&&t.placeholder,this.class=t.class||"",this.style=t.style||"",this.data=t.data||{}}}class r{constructor(t,e){this.selectType="single",this.data=[],this.selectedOrder=[],this.selectType=t,this.setData(e)}validateDataArray(t){if(!Array.isArray(t))return new Error("Data must be an array");for(let e of t)if(e instanceof s||"label"in e){if(!("label"in e))return new Error("Optgroup must have a label");if("options"in e&&e.options)for(let t of e.options){const e=this.validateOption(t);if(e)return e}}else{if(!(e instanceof o||"text"in e))return new Error("Data object must be a valid optgroup or option");{const t=this.validateOption(e);if(t)return t}}return null}validateOption(t){return"text"in t?null:new Error("Option must have a text")}partialToFullData(t){let e=[];return t.forEach((t=>{if(t instanceof s||"label"in t){let n=[];"options"in t&&t.options&&t.options.forEach((t=>{n.push(new o(t))})),n.length>0&&e.push(new s(t))}(t instanceof o||"text"in t)&&e.push(new o(t))})),e}setData(t){this.data=this.partialToFullData(t),"single"===this.selectType&&this.setSelectedBy("id",this.getSelected())}getData(){return this.filter(null,!0)}getDataOptions(){return this.filter(null,!1)}addOption(t,e=!1){if(e){let e=[new o(t)];this.setData(e.concat(this.getData()))}else this.setData(this.getData().concat(new o(t)))}setSelectedBy(t,e){let n=null,i=!1;const r=[];for(let a of this.data){if(a instanceof s)for(let s of a.options)n||(n=s),s.selected=!i&&e.includes(s[t]),s.selected&&(r.push(s),"single"===this.selectType&&(i=!0));a instanceof o&&(n||(n=a),a.selected=!i&&e.includes(a[t]),a.selected&&(r.push(a),"single"===this.selectType&&(i=!0)))}"single"===this.selectType&&n&&!i&&(n.selected=!0,r.push(n));const a=e.map((e=>{var n;return(null===(n=r.find((n=>n[t]===e)))||void 0===n?void 0:n.id)||""}));this.selectedOrder=a}getSelected(){return this.getSelectedOptions().map((t=>t.id))}getSelectedValues(){return this.getSelectedOptions().map((t=>t.value))}getSelectedOptions(){return this.filter((t=>t.selected),!1)}getOptgroupByID(t){for(let e of this.data)if(e instanceof s&&e.id===t)return e;return null}getOptionByID(t){let e=this.filter((e=>e.id===t),!1);return e.length?e[0]:null}getSelectType(){return this.selectType}getFirstOption(){let t=null;for(let e of this.data)if(e instanceof s?t=e.options[0]:e instanceof o&&(t=e),t)break;return t}search(t,e){return""===(t=t.trim())?this.getData():this.filter((n=>e(n,t)),!0)}filter(t,e){const n=[];return this.data.forEach((i=>{if(i instanceof s){let r=[];if(i.options.forEach((i=>{t&&!t(i)||(e?r.push(new o(i)):n.push(new o(i)))})),r.length>0){let t=new s(i);t.options=r,n.push(t)}}i instanceof o&&(t&&!t(i)||n.push(new o(i)))})),n}selectedOrderOptions(t){const e=[];return this.selectedOrder.forEach((n=>{const i=t.find((t=>t.id===n));i&&e.push(i)})),t.forEach((t=>{let n=!1;e.forEach((e=>{t.id!==e.id||(n=!0)})),n||e.push(t)})),e}}class a{constructor(t,e,n,i){this.store=n,this.settings=t,this.classes=e,this.callbacks=i,this.main=this.mainDiv(),this.content=this.contentDiv(),this.updateClassStyles(),this.updateAriaAttributes(),this.settings.contentLocation.appendChild(this.content.main)}enable(){this.main.main.classList.remove(this.classes.disabled),this.content.search.input.disabled=!1}disable(){this.main.main.classList.add(this.classes.disabled),this.content.search.input.disabled=!0}open(){this.main.arrow.path.setAttribute("d",this.classes.arrowOpen),this.main.main.classList.add("up"===this.settings.openPosition?this.classes.openAbove:this.classes.openBelow),this.main.main.setAttribute("aria-expanded","true"),this.moveContent();const t=this.store.getSelectedOptions();if(t.length){const e=t[t.length-1].id,n=this.content.list.querySelector('[data-id="'+e+'"]');n&&this.ensureElementInView(this.content.list,n)}}close(){this.main.main.classList.remove(this.classes.openAbove),this.main.main.classList.remove(this.classes.openBelow),this.main.main.setAttribute("aria-expanded","false"),this.content.main.classList.remove(this.classes.openAbove),this.content.main.classList.remove(this.classes.openBelow),this.main.arrow.path.setAttribute("d",this.classes.arrowClose)}updateClassStyles(){if(this.main.main.className="",this.main.main.removeAttribute("style"),this.content.main.className="",this.content.main.removeAttribute("style"),this.main.main.classList.add(this.classes.main),this.content.main.classList.add(this.classes.content),""!==this.settings.style&&(this.main.main.style.cssText=this.settings.style,this.content.main.style.cssText=this.settings.style),this.settings.class.length)for(const t of this.settings.class)""!==t.trim()&&(this.main.main.classList.add(t.trim()),this.content.main.classList.add(t.trim()));"relative"===this.settings.contentPosition&&this.content.main.classList.add("ss-"+this.settings.contentPosition)}updateAriaAttributes(){this.main.main.role="combobox",this.main.main.setAttribute("aria-haspopup","listbox"),this.main.main.setAttribute("aria-controls",this.content.main.id),this.main.main.setAttribute("aria-expanded","false"),this.content.main.setAttribute("role","listbox")}mainDiv(){var t;const e=document.createElement("div");e.dataset.id=this.settings.id,e.setAttribute("aria-label",this.settings.ariaLabel),e.tabIndex=0,e.onkeydown=t=>{switch(t.key){case"ArrowUp":case"ArrowDown":return this.callbacks.open(),"ArrowDown"===t.key?this.highlight("down"):this.highlight("up"),!1;case"Tab":return this.callbacks.close(),!0;case"Enter":case" ":this.callbacks.open();const e=this.content.list.querySelector("."+this.classes.highlighted);return e&&e.click(),!1;case"Escape":return this.callbacks.close(),!1}return!0},e.onclick=t=>{this.settings.disabled||(this.settings.isOpen?this.callbacks.close():this.callbacks.open())};const n=document.createElement("div");n.classList.add(this.classes.values),e.appendChild(n);const i=document.createElement("div");i.classList.add(this.classes.deselect);const s=null===(t=this.store)||void 0===t?void 0:t.getSelectedOptions();!this.settings.allowDeselect||this.settings.isMultiple&&s&&s.length<=0?i.classList.add(this.classes.hide):i.classList.remove(this.classes.hide),i.onclick=t=>{if(t.stopPropagation(),this.settings.disabled)return;let e=!0;const n=this.store.getSelectedOptions();if(this.callbacks.beforeChange&&(e=!0===this.callbacks.beforeChange([],n)),e){if(this.settings.isMultiple)this.callbacks.setSelected([],!1),this.updateDeselectAll();else{const t=this.store.getFirstOption(),e=t?t.id:"";this.callbacks.setSelected(e,!1)}this.settings.closeOnSelect&&this.callbacks.close(),this.callbacks.afterChange&&this.callbacks.afterChange(this.store.getSelectedOptions())}};const o=document.createElementNS("http://www.w3.org/2000/svg","svg");o.setAttribute("viewBox","0 0 100 100");const r=document.createElementNS("http://www.w3.org/2000/svg","path");r.setAttribute("d",this.classes.deselectPath),o.appendChild(r),i.appendChild(o),e.appendChild(i);const a=document.createElementNS("http://www.w3.org/2000/svg","svg");a.classList.add(this.classes.arrow),a.setAttribute("viewBox","0 0 100 100");const c=document.createElementNS("http://www.w3.org/2000/svg","path");return c.setAttribute("d",this.classes.arrowClose),this.settings.alwaysOpen&&a.classList.add(this.classes.hide),a.appendChild(c),e.appendChild(a),{main:e,values:n,deselect:{main:i,svg:o,path:r},arrow:{main:a,path:c}}}mainFocus(t){"click"!==t&&this.main.main.focus({preventScroll:!0})}placeholder(){const t=this.store.filter((t=>t.placeholder),!1);let e=this.settings.placeholderText;t.length&&(""!==t[0].html?e=t[0].html:""!==t[0].text&&(e=t[0].text));const n=document.createElement("div");return n.classList.add(this.classes.placeholder),n.innerHTML=e,n}renderValues(){this.settings.isMultiple?(this.renderMultipleValues(),this.updateDeselectAll()):this.renderSingleValue()}renderSingleValue(){const t=this.store.filter((t=>t.selected&&!t.placeholder),!1),e=t.length>0?t[0]:null;if(e){const t=document.createElement("div");t.classList.add(this.classes.single),e.html?t.innerHTML=e.html:t.innerText=e.text,this.main.values.innerHTML=t.outerHTML}else this.main.values.innerHTML=this.placeholder().outerHTML;this.settings.allowDeselect&&t.length?this.main.deselect.main.classList.remove(this.classes.hide):this.main.deselect.main.classList.add(this.classes.hide)}renderMultipleValues(){let t=this.main.values.childNodes,e=this.store.filter((t=>t.selected&&t.display),!1);if(0===e.length)return void(this.main.values.innerHTML=this.placeholder().outerHTML);{const t=this.main.values.querySelector("."+this.classes.placeholder);t&&t.remove()}if(e.length>this.settings.maxValuesShown){const t=document.createElement("div");return t.classList.add(this.classes.max),t.textContent=this.settings.maxValuesMessage.replace("{number}",e.length.toString()),void(this.main.values.innerHTML=t.outerHTML)}{const t=this.main.values.querySelector("."+this.classes.max);t&&t.remove()}this.settings.keepOrder&&(e=this.store.selectedOrderOptions(e));let n=[];for(let i=0;i<t.length;i++){const s=t[i],o=s.getAttribute("data-id");o&&(e.filter((t=>t.id===o),!1).length||n.push(s))}for(const t of n)t.classList.add(this.classes.valueOut),setTimeout((()=>{this.main.values.hasChildNodes()&&this.main.values.contains(t)&&this.main.values.removeChild(t)}),100);t=this.main.values.childNodes;for(let n=0;n<e.length;n++){let i=!0;for(let s=0;s<t.length;s++)e[n].id===String(t[s].dataset.id)&&(i=!1);i&&(this.settings.keepOrder||0===t.length?this.main.values.appendChild(this.multipleValue(e[n])):0===n?this.main.values.insertBefore(this.multipleValue(e[n]),t[n]):t[n-1].insertAdjacentElement("afterend",this.multipleValue(e[n])))}}multipleValue(t){const e=document.createElement("div");e.classList.add(this.classes.value),e.dataset.id=t.id;const n=document.createElement("div");if(n.classList.add(this.classes.valueText),n.textContent=t.text,e.appendChild(n),!t.mandatory){const n=document.createElement("div");n.classList.add(this.classes.valueDelete),n.onclick=e=>{if(e.preventDefault(),e.stopPropagation(),this.settings.disabled)return;let n=!0;const i=this.store.getSelectedOptions(),r=i.filter((e=>e.selected&&e.id!==t.id),!0);if(!(this.settings.minSelected&&r.length<this.settings.minSelected)&&(this.callbacks.beforeChange&&(n=!0===this.callbacks.beforeChange(r,i)),n)){let t=[];for(const e of r){if(e instanceof s)for(const n of e.options)t.push(n.id);e instanceof o&&t.push(e.id)}this.callbacks.setSelected(t,!1),this.settings.closeOnSelect&&this.callbacks.close(),this.callbacks.afterChange&&this.callbacks.afterChange(r),this.updateDeselectAll()}};const i=document.createElementNS("http://www.w3.org/2000/svg","svg");i.setAttribute("viewBox","0 0 100 100");const r=document.createElementNS("http://www.w3.org/2000/svg","path");r.setAttribute("d",this.classes.optionDelete),i.appendChild(r),n.appendChild(i),e.appendChild(n)}return e}contentDiv(){const t=document.createElement("div");t.dataset.id=this.settings.id;const e=this.searchDiv();t.appendChild(e.main);const n=this.listDiv();return t.appendChild(n),{main:t,search:e,list:n}}moveContent(){"relative"!==this.settings.contentPosition&&"down"!==this.settings.openPosition?"up"!==this.settings.openPosition?"up"===this.putContent()?this.moveContentAbove():this.moveContentBelow():this.moveContentAbove():this.moveContentBelow()}searchDiv(){const t=document.createElement("div"),e=document.createElement("input"),i=document.createElement("div");t.classList.add(this.classes.search);const s={main:t,input:e};if(this.settings.showSearch||(t.classList.add(this.classes.hide),e.readOnly=!0),e.type="search",e.placeholder=this.settings.searchPlaceholder,e.tabIndex=-1,e.setAttribute("aria-label",this.settings.searchPlaceholder),e.setAttribute("autocapitalize","off"),e.setAttribute("autocomplete","off"),e.setAttribute("autocorrect","off"),e.oninput=n((t=>{this.callbacks.search(t.target.value)}),100),e.onkeydown=t=>{switch(t.key){case"ArrowUp":case"ArrowDown":return"ArrowDown"===t.key?this.highlight("down"):this.highlight("up"),!1;case"Tab":return this.callbacks.close(),!0;case"Escape":return this.callbacks.close(),!1;case" ":const e=this.content.list.querySelector("."+this.classes.highlighted);return!e||(e.click(),!1);case"Enter":if(this.callbacks.addable)return i.click(),!1;{const t=this.content.list.querySelector("."+this.classes.highlighted);if(t)return t.click(),!1}return!0}return!0},t.appendChild(e),this.callbacks.addable){i.classList.add(this.classes.addable);const e=document.createElementNS("http://www.w3.org/2000/svg","svg");e.setAttribute("viewBox","0 0 100 100");const n=document.createElementNS("http://www.w3.org/2000/svg","path");n.setAttribute("d",this.classes.addablePath),e.appendChild(n),i.appendChild(e),i.onclick=t=>{if(t.preventDefault(),t.stopPropagation(),!this.callbacks.addable)return;const e=this.content.search.input.value.trim();if(""===e)return void this.content.search.input.focus();const n=t=>{let e=new o(t);if(this.callbacks.addOption(e),this.settings.isMultiple){let t=this.store.getSelected();t.push(e.id),this.callbacks.setSelected(t,!0)}else this.callbacks.setSelected([e.id],!0);this.callbacks.search(""),this.settings.closeOnSelect&&setTimeout((()=>{this.callbacks.close()}),100)},i=this.callbacks.addable(e);!1!==i&&null!=i&&(i instanceof Promise?i.then((t=>{"string"==typeof t?n({text:t,value:t}):i instanceof Error?this.renderError(i.message):n(t)})):"string"==typeof i?n({text:i,value:i}):i instanceof Error?this.renderError(i.message):n(i))},t.appendChild(i),s.addable={main:i,svg:e,path:n}}return s}searchFocus(){this.content.search.input.focus()}getOptions(t=!1,e=!1,n=!1){let i="."+this.classes.option;return t&&(i+=":not(."+this.classes.placeholder+")"),e&&(i+=":not(."+this.classes.disabled+")"),n&&(i+=":not(."+this.classes.hide+")"),Array.from(this.content.list.querySelectorAll(i))}highlight(t){const e=this.getOptions(!0,!0,!0);if(0===e.length)return;if(1===e.length&&!e[0].classList.contains(this.classes.highlighted))return void e[0].classList.add(this.classes.highlighted);let n=!1;for(const t of e)t.classList.contains(this.classes.highlighted)&&(n=!0);if(!n)for(const t of e)if(t.classList.contains(this.classes.selected)){t.classList.add(this.classes.highlighted);break}for(let n=0;n<e.length;n++)if(e[n].classList.contains(this.classes.highlighted)){const i=e[n];i.classList.remove(this.classes.highlighted);const s=i.parentElement;if(s&&s.classList.contains(this.classes.open)){const t=s.querySelector("."+this.classes.optgroupLabel);t&&t.click()}let o=e["down"===t?n+1<e.length?n+1:0:n-1>=0?n-1:e.length-1];o.classList.add(this.classes.highlighted),this.ensureElementInView(this.content.list,o);const r=o.parentElement;if(r&&r.classList.contains(this.classes.close)){const t=r.querySelector("."+this.classes.optgroupLabel);t&&t.click()}return}e["down"===t?0:e.length-1].classList.add(this.classes.highlighted),this.ensureElementInView(this.content.list,e["down"===t?0:e.length-1])}listDiv(){const t=document.createElement("div");return t.classList.add(this.classes.list),t}renderError(t){this.content.list.innerHTML="";const e=document.createElement("div");e.classList.add(this.classes.error),e.textContent=t,this.content.list.appendChild(e)}renderSearching(){this.content.list.innerHTML="";const t=document.createElement("div");t.classList.add(this.classes.searching),t.textContent=this.settings.searchingText,this.content.list.appendChild(t)}renderOptions(t){if(this.content.list.innerHTML="",0===t.length){const t=document.createElement("div");return t.classList.add(this.classes.search),this.callbacks.addable?t.innerHTML=this.settings.addableText.replace("{value}",this.content.search.input.value):t.innerHTML=this.settings.searchText,void this.content.list.appendChild(t)}this.settings.allowDeselect&&!this.settings.isMultiple&&(this.store.filter((t=>t.placeholder),!1).length||this.store.addOption(new o({text:"",value:"",selected:!1,placeholder:!0}),!0));for(const e of t){if(e instanceof s){const t=document.createElement("div");t.classList.add(this.classes.optgroup);const n=document.createElement("div");n.classList.add(this.classes.optgroupLabel),t.appendChild(n);const i=document.createElement("div");i.classList.add(this.classes.optgroupLabelText),i.textContent=e.label,n.appendChild(i);const s=document.createElement("div");if(s.classList.add(this.classes.optgroupActions),n.appendChild(s),this.settings.isMultiple&&e.selectAll){const t=document.createElement("div");t.classList.add(this.classes.optgroupSelectAll);let n=!0;for(const t of e.options)if(!t.selected){n=!1;break}n&&t.classList.add(this.classes.selected);const i=document.createElement("span");i.textContent=e.selectAllText,t.appendChild(i);const o=document.createElementNS("http://www.w3.org/2000/svg","svg");o.setAttribute("viewBox","0 0 100 100"),t.appendChild(o);const r=document.createElementNS("http://www.w3.org/2000/svg","path");r.setAttribute("d",this.classes.optgroupSelectAllBox),o.appendChild(r);const a=document.createElementNS("http://www.w3.org/2000/svg","path");a.setAttribute("d",this.classes.optgroupSelectAllCheck),o.appendChild(a),t.addEventListener("click",(t=>{t.preventDefault(),t.stopPropagation();const i=this.store.getSelected();if(n){const t=i.filter((t=>{for(const n of e.options)if(t===n.id)return!1;return!0}));this.callbacks.setSelected(t,!0)}else{const t=i.concat(e.options.map((t=>t.id)));for(const t of e.options)this.store.getOptionByID(t.id)||this.callbacks.addOption(t);this.callbacks.setSelected(t,!0)}})),s.appendChild(t)}if("off"!==e.closable){const i=document.createElement("div");i.classList.add(this.classes.optgroupClosable);const o=document.createElementNS("http://www.w3.org/2000/svg","svg");o.setAttribute("viewBox","0 0 100 100"),o.classList.add(this.classes.arrow),i.appendChild(o);const r=document.createElementNS("http://www.w3.org/2000/svg","path");o.appendChild(r),e.options.some((t=>t.selected))||""!==this.content.search.input.value.trim()?(i.classList.add(this.classes.open),r.setAttribute("d",this.classes.arrowOpen)):"open"===e.closable?(t.classList.add(this.classes.open),r.setAttribute("d",this.classes.arrowOpen)):"close"===e.closable&&(t.classList.add(this.classes.close),r.setAttribute("d",this.classes.arrowClose)),n.addEventListener("click",(e=>{e.preventDefault(),e.stopPropagation(),t.classList.contains(this.classes.close)?(t.classList.remove(this.classes.close),t.classList.add(this.classes.open),r.setAttribute("d",this.classes.arrowOpen)):(t.classList.remove(this.classes.open),t.classList.add(this.classes.close),r.setAttribute("d",this.classes.arrowClose))})),s.appendChild(i)}t.appendChild(n);for(const n of e.options)t.appendChild(this.option(n));this.content.list.appendChild(t)}e instanceof o&&this.content.list.appendChild(this.option(e))}}option(t){if(t.placeholder){const t=document.createElement("div");return t.classList.add(this.classes.option),t.classList.add(this.classes.hide),t}const e=document.createElement("div");return e.dataset.id=t.id,e.id=t.id,e.classList.add(this.classes.option),e.setAttribute("role","option"),t.class&&t.class.split(" ").forEach((t=>{e.classList.add(t)})),t.style&&(e.style.cssText=t.style),this.settings.searchHighlight&&""!==this.content.search.input.value.trim()?e.innerHTML=this.highlightText(""!==t.html?t.html:t.text,this.content.search.input.value,this.classes.searchHighlighter):""!==t.html?e.innerHTML=t.html:e.textContent=t.text,this.settings.showOptionTooltips&&e.textContent&&e.setAttribute("title",e.textContent),t.display||e.classList.add(this.classes.hide),t.disabled&&e.classList.add(this.classes.disabled),t.selected&&this.settings.hideSelected&&e.classList.add(this.classes.hide),t.selected?(e.classList.add(this.classes.selected),e.setAttribute("aria-selected","true"),this.main.main.setAttribute("aria-activedescendant",e.id)):(e.classList.remove(this.classes.selected),e.setAttribute("aria-selected","false")),e.addEventListener("click",(e=>{e.preventDefault(),e.stopPropagation();const n=this.store.getSelected(),i=e.currentTarget,s=String(i.dataset.id);if(t.disabled||t.selected&&!this.settings.allowDeselect)return;if(this.settings.isMultiple&&this.settings.maxSelected<=n.length&&!t.selected||this.settings.isMultiple&&this.settings.minSelected>=n.length&&t.selected)return;let o=!1;const r=this.store.getSelectedOptions();let a=[];this.settings.isMultiple&&(a=t.selected?r.filter((t=>t.id!==s)):r.concat(t)),this.settings.isMultiple||(a=t.selected?[]:[t]),this.callbacks.beforeChange||(o=!0),this.callbacks.beforeChange&&(o=!1!==this.callbacks.beforeChange(a,r)),o&&(this.store.getOptionByID(s)||this.callbacks.addOption(t),this.callbacks.setSelected(a.map((t=>t.id)),!1),this.settings.closeOnSelect&&this.callbacks.close(),this.callbacks.afterChange&&this.callbacks.afterChange(a))})),e}destroy(){this.main.main.remove(),this.content.main.remove()}highlightText(t,e,n){let i=t;const s=new RegExp("(?![^<]*>)("+e.trim()+")(?![^<]*>[^<>]*</)","i");if(!t.match(s))return t;const o=t.match(s).index,r=o+t.match(s)[0].toString().length,a=t.substring(o,r);return i=i.replace(s,`<mark class="${n}">${a}</mark>`),i}moveContentAbove(){const t=this.main.main.offsetHeight,e=this.content.main.offsetHeight;this.main.main.classList.remove(this.classes.openBelow),this.main.main.classList.add(this.classes.openAbove),this.content.main.classList.remove(this.classes.openBelow),this.content.main.classList.add(this.classes.openAbove);const n=this.main.main.getBoundingClientRect();this.content.main.style.margin="-"+(t+e-1)+"px 0px 0px 0px",this.content.main.style.top=n.top+n.height+window.scrollY+"px",this.content.main.style.left=n.left+window.scrollX+"px",this.content.main.style.width=n.width+"px"}moveContentBelow(){this.main.main.classList.remove(this.classes.openAbove),this.main.main.classList.add(this.classes.openBelow),this.content.main.classList.remove(this.classes.openAbove),this.content.main.classList.add(this.classes.openBelow);const t=this.main.main.getBoundingClientRect();this.content.main.style.margin="-1px 0px 0px 0px","relative"!==this.settings.contentPosition&&(this.content.main.style.top=t.top+t.height+window.scrollY+"px",this.content.main.style.left=t.left+window.scrollX+"px",this.content.main.style.width=t.width+"px")}ensureElementInView(t,e){const n=t.scrollTop+t.offsetTop,i=n+t.clientHeight,s=e.offsetTop,o=s+e.clientHeight;s<n?t.scrollTop-=n-s:o>i&&(t.scrollTop+=o-i)}putContent(){const t=this.main.main.offsetHeight,e=this.main.main.getBoundingClientRect(),n=this.content.main.offsetHeight;return window.innerHeight-(e.top+t)<=n&&e.top>n?"up":"down"}updateDeselectAll(){if(!this.store||!this.settings)return;const t=this.store.getSelectedOptions(),e=t&&t.length>0,n=this.settings.isMultiple,i=this.settings.allowDeselect,s=this.main.deselect.main,o=this.classes.hide;!i||n&&!e?s.classList.add(o):s.classList.remove(o)}}class c{constructor(t){this.listen=!1,this.observer=null,this.select=t,this.valueChange=this.valueChange.bind(this),this.select.addEventListener("change",this.valueChange,{passive:!0}),this.observer=new MutationObserver(this.observeCall.bind(this)),this.changeListen(!0)}enable(){this.select.disabled=!1}disable(){this.select.disabled=!0}hideUI(){this.select.tabIndex=-1,this.select.style.display="none",this.select.setAttribute("aria-hidden","true")}showUI(){this.select.removeAttribute("tabindex"),this.select.style.display="",this.select.removeAttribute("aria-hidden")}changeListen(t){this.listen=t,t&&this.observer&&this.observer.observe(this.select,{subtree:!0,childList:!0,attributes:!0}),t||this.observer&&this.observer.disconnect()}valueChange(t){return this.listen&&this.onValueChange&&this.onValueChange(this.getSelectedOptions()),!0}observeCall(t){if(!this.listen)return;let e=!1,n=!1,i=!1;for(const s of t){if(s.target===this.select&&("disabled"===s.attributeName&&(n=!0),"class"===s.attributeName&&(e=!0),"childList"===s.type)){for(const t of s.addedNodes)if("OPTION"===t.nodeName&&t.value===this.select.value){this.select.dispatchEvent(new Event("change"));break}i=!0}"OPTGROUP"!==s.target.nodeName&&"OPTION"!==s.target.nodeName||(i=!0)}e&&this.onClassChange&&this.onClassChange(this.select.className.split(" ")),n&&this.onDisabledChange&&(this.changeListen(!1),this.onDisabledChange(this.select.disabled),this.changeListen(!0)),i&&this.onOptionsChange&&(this.changeListen(!1),this.onOptionsChange(this.getData()),this.changeListen(!0))}getData(){let t=[];const e=this.select.childNodes;for(const n of e)"OPTGROUP"===n.nodeName&&t.push(this.getDataFromOptgroup(n)),"OPTION"===n.nodeName&&t.push(this.getDataFromOption(n));return t}getDataFromOptgroup(t){let e={id:t.id,label:t.label,selectAll:!!t.dataset&&"true"===t.dataset.selectall,selectAllText:t.dataset?t.dataset.selectalltext:"Select all",closable:t.dataset?t.dataset.closable:"off",options:[]};const n=t.childNodes;for(const t of n)"OPTION"===t.nodeName&&e.options.push(this.getDataFromOption(t));return e}getDataFromOption(t){return{id:t.id,value:t.value,text:t.text,html:t.dataset&&t.dataset.html?t.dataset.html:"",selected:t.selected,display:"none"!==t.style.display,disabled:t.disabled,mandatory:!!t.dataset&&"true"===t.dataset.mandatory,placeholder:"true"===t.dataset.placeholder,class:t.className,style:t.style.cssText,data:t.dataset}}getSelectedOptions(){let t=[];const e=this.select.childNodes;for(const n of e){if("OPTGROUP"===n.nodeName){const e=n.childNodes;for(const n of e)if("OPTION"===n.nodeName){const e=n;e.selected&&t.push(this.getDataFromOption(e))}}if("OPTION"===n.nodeName){const e=n;e.selected&&t.push(this.getDataFromOption(e))}}return t}getSelectedValues(){return this.getSelectedOptions().map((t=>t.value))}setSelected(t){this.changeListen(!1);const e=this.select.childNodes;for(const n of e){if("OPTGROUP"===n.nodeName){const e=n.childNodes;for(const n of e)if("OPTION"===n.nodeName){const e=n;e.selected=t.includes(e.id)}}if("OPTION"===n.nodeName){const e=n;e.selected=t.includes(e.id)}}this.changeListen(!0)}setSelectedByValue(t){this.changeListen(!1);const e=this.select.childNodes;for(const n of e){if("OPTGROUP"===n.nodeName){const e=n.childNodes;for(const n of e)if("OPTION"===n.nodeName){const e=n;e.selected=t.includes(e.value)}}if("OPTION"===n.nodeName){const e=n;e.selected=t.includes(e.value)}}this.changeListen(!0)}updateSelect(t,e,n){this.changeListen(!1),t&&(this.select.dataset.id=t),e&&(this.select.style.cssText=e),n&&(this.select.className="",n.forEach((t=>{""!==t.trim()&&this.select.classList.add(t.trim())}))),this.changeListen(!0)}updateOptions(t){this.changeListen(!1),this.select.innerHTML="";for(const e of t)e instanceof s&&this.select.appendChild(this.createOptgroup(e)),e instanceof o&&this.select.appendChild(this.createOption(e));this.select.dispatchEvent(new Event("change",{bubbles:!0})),this.changeListen(!0)}createOptgroup(t){const e=document.createElement("optgroup");if(e.id=t.id,e.label=t.label,t.selectAll&&(e.dataset.selectAll="true"),"off"!==t.closable&&(e.dataset.closable=t.closable),t.options)for(const n of t.options)e.appendChild(this.createOption(n));return e}createOption(t){const e=document.createElement("option");return e.id=t.id,e.value=t.value,e.innerHTML=t.text,""!==t.html&&e.setAttribute("data-html",t.html),t.selected&&(e.selected=t.selected),t.disabled&&(e.disabled=!0),t.display||(e.style.display="none"),t.placeholder&&e.setAttribute("data-placeholder","true"),t.mandatory&&e.setAttribute("data-mandatory","true"),t.class&&t.class.split(" ").forEach((t=>{e.classList.add(t)})),t.data&&"object"==typeof t.data&&Object.keys(t.data).forEach((n=>{e.setAttribute("data-"+function(t){const e=t.replace(/[A-Z\u00C0-\u00D6\u00D8-\u00DE]/g,(t=>"-"+t.toLowerCase()));return t[0]===t[0].toUpperCase()?e.substring(1):e}(n),t.data[n])})),e}destroy(){this.changeListen(!1),this.select.removeEventListener("change",this.valueChange),this.observer&&(this.observer.disconnect(),this.observer=null),delete this.select.dataset.id,this.showUI()}}class l{constructor(t){this.id="",this.style="",this.class=[],this.isMultiple=!1,this.isOpen=!1,this.isFullOpen=!1,this.intervalMove=null,t||(t={}),this.id="ss-"+e(),this.style=t.style||"",this.class=t.class||[],this.disabled=void 0!==t.disabled&&t.disabled,this.alwaysOpen=void 0!==t.alwaysOpen&&t.alwaysOpen,this.showSearch=void 0===t.showSearch||t.showSearch,this.focusSearch=void 0===t.focusSearch||t.focusSearch,this.ariaLabel=t.ariaLabel||"Combobox",this.searchPlaceholder=t.searchPlaceholder||"Search",this.searchText=t.searchText||"No Results",this.searchingText=t.searchingText||"Searching...",this.searchHighlight=void 0!==t.searchHighlight&&t.searchHighlight,this.closeOnSelect=void 0===t.closeOnSelect||t.closeOnSelect,this.contentLocation=t.contentLocation||document.body,this.contentPosition=t.contentPosition||"absolute",this.openPosition=t.openPosition||"auto",this.placeholderText=void 0!==t.placeholderText?t.placeholderText:"Select Value",this.allowDeselect=void 0!==t.allowDeselect&&t.allowDeselect,this.hideSelected=void 0!==t.hideSelected&&t.hideSelected,this.keepOrder=void 0!==t.keepOrder&&t.keepOrder,this.showOptionTooltips=void 0!==t.showOptionTooltips&&t.showOptionTooltips,this.minSelected=t.minSelected||0,this.maxSelected=t.maxSelected||1e3,this.timeoutDelay=t.timeoutDelay||200,this.maxValuesShown=t.maxValuesShown||20,this.maxValuesMessage=t.maxValuesMessage||"{number} selected",this.addableText=t.addableText||'Press "Enter" to add {value}'}}return class{constructor(e){var i;if(this.events={search:void 0,searchFilter:(t,e)=>-1!==t.text.toLowerCase().indexOf(e.toLowerCase()),addable:void 0,beforeChange:void 0,afterChange:void 0,beforeOpen:void 0,afterOpen:void 0,beforeClose:void 0,afterClose:void 0},this.windowResize=n((()=>{(this.settings.isOpen||this.settings.isFullOpen)&&this.render.moveContent()})),this.windowScroll=n((()=>{(this.settings.isOpen||this.settings.isFullOpen)&&this.render.moveContent()})),this.documentClick=t=>{this.settings.isOpen&&t.target&&!function(t,e){function n(t,n){return n&&t&&t.classList&&t.classList.contains(n)||n&&t&&t.dataset&&t.dataset.id&&t.dataset.id===e?t:null}return n(t,e)||function t(e,i){return e&&e!==document?n(e,i)?e:t(e.parentNode,i):null}(t,e)}(t.target,this.settings.id)&&this.close(t.type)},this.windowVisibilityChange=()=>{document.hidden&&this.close()},this.selectEl="string"==typeof e.select?document.querySelector(e.select):e.select,!this.selectEl)return void(e.events&&e.events.error&&e.events.error(new Error("Could not find select element")));if("SELECT"!==this.selectEl.tagName)return void(e.events&&e.events.error&&e.events.error(new Error("Element isnt of type select")));this.selectEl.dataset.ssid&&this.destroy(),this.settings=new l(e.settings),this.cssClasses=new t(e.cssClasses);const s=["afterChange","beforeOpen","afterOpen","beforeClose","afterClose"];for(const t in e.events)e.events.hasOwnProperty(t)&&(-1!==s.indexOf(t)?this.events[t]=n(e.events[t],100):this.events[t]=e.events[t]);this.settings.disabled=(null===(i=e.settings)||void 0===i?void 0:i.disabled)?e.settings.disabled:this.selectEl.disabled,this.settings.isMultiple=this.selectEl.multiple,this.settings.style=this.selectEl.style.cssText,this.settings.class=this.selectEl.className.split(" "),this.select=new c(this.selectEl),this.select.updateSelect(this.settings.id,this.settings.style,this.settings.class),this.select.hideUI(),this.select.onValueChange=t=>{this.setSelected(t.map((t=>t.id)))},this.select.onClassChange=t=>{this.settings.class=t,this.render.updateClassStyles()},this.select.onDisabledChange=t=>{t?this.disable():this.enable()},this.select.onOptionsChange=t=>{this.setData(t)},this.store=new r(this.settings.isMultiple?"multiple":"single",e.data?e.data:this.select.getData()),e.data&&this.select.updateOptions(this.store.getData());const o={open:this.open.bind(this),close:this.close.bind(this),addable:this.events.addable?this.events.addable:void 0,setSelected:this.setSelected.bind(this),addOption:this.addOption.bind(this),search:this.search.bind(this),beforeChange:this.events.beforeChange,afterChange:this.events.afterChange};this.render=new a(this.settings,this.cssClasses,this.store,o),this.render.renderValues(),this.render.renderOptions(this.store.getData());const u=this.selectEl.getAttribute("aria-label"),d=this.selectEl.getAttribute("aria-labelledby");u?this.render.main.main.setAttribute("aria-label",u):d&&this.render.main.main.setAttribute("aria-labelledby",d),this.selectEl.parentNode&&this.selectEl.parentNode.insertBefore(this.render.main.main,this.selectEl.nextSibling),window.addEventListener("resize",this.windowResize,!1),"auto"===this.settings.openPosition&&window.addEventListener("scroll",this.windowScroll,!1),document.addEventListener("visibilitychange",this.windowVisibilityChange),this.settings.disabled&&this.disable(),this.settings.alwaysOpen&&this.open(),this.selectEl.slim=this}enable(){this.settings.disabled=!1,this.select.enable(),this.render.enable()}disable(){this.settings.disabled=!0,this.select.disable(),this.render.disable()}getData(){return this.store.getData()}setData(t){const e=this.store.getSelected(),n=this.store.validateDataArray(t);if(n)return void(this.events.error&&this.events.error(n));this.store.setData(t);const s=this.store.getData();this.select.updateOptions(s),this.render.renderValues(),this.render.renderOptions(s),this.events.afterChange&&!i(e,this.store.getSelected())&&this.events.afterChange(this.store.getSelectedOptions())}getSelected(){let t=this.store.getSelectedOptions();return this.settings.keepOrder&&(t=this.store.selectedOrderOptions(t)),t.map((t=>t.value))}setSelected(t,e=!0){const n=this.store.getSelected(),s=this.store.getDataOptions();t=Array.isArray(t)?t:[t];const o=[];for(const e of t)if(s.find((t=>t.id==e)))o.push(e);else for(const t of s.filter((t=>t.value==e)))o.push(t.id);this.store.setSelectedBy("id",o);const r=this.store.getData();this.select.updateOptions(r),this.render.renderValues(),""!==this.render.content.search.input.value?this.search(this.render.content.search.input.value):this.render.renderOptions(r),e&&this.events.afterChange&&!i(n,this.store.getSelected())&&this.events.afterChange(this.store.getSelectedOptions())}addOption(t){const e=this.store.getSelected();this.store.getDataOptions().some((e=>{var n;return e.value===(null!==(n=t.value)&&void 0!==n?n:t.text)}))||this.store.addOption(t);const n=this.store.getData();this.select.updateOptions(n),this.render.renderValues(),this.render.renderOptions(n),this.events.afterChange&&!i(e,this.store.getSelected())&&this.events.afterChange(this.store.getSelectedOptions())}open(){this.settings.disabled||this.settings.isOpen||(this.events.beforeOpen&&this.events.beforeOpen(),this.render.open(),this.settings.showSearch&&this.settings.focusSearch&&this.render.searchFocus(),this.settings.isOpen=!0,setTimeout((()=>{this.events.afterOpen&&this.events.afterOpen(),this.settings.isOpen&&(this.settings.isFullOpen=!0),document.addEventListener("click",this.documentClick)}),this.settings.timeoutDelay),"absolute"===this.settings.contentPosition&&(this.settings.intervalMove&&clearInterval(this.settings.intervalMove),this.settings.intervalMove=setInterval(this.render.moveContent.bind(this.render),500)))}close(t=null){this.settings.isOpen&&!this.settings.alwaysOpen&&(this.events.beforeClose&&this.events.beforeClose(),this.render.close(),""!==this.render.content.search.input.value&&this.search(""),this.render.mainFocus(t),this.settings.isOpen=!1,this.settings.isFullOpen=!1,setTimeout((()=>{this.events.afterClose&&this.events.afterClose(),document.removeEventListener("click",this.documentClick)}),this.settings.timeoutDelay),this.settings.intervalMove&&clearInterval(this.settings.intervalMove))}search(t){if(this.render.content.search.input.value!==t&&(this.render.content.search.input.value=t),!this.events.search)return void this.render.renderOptions(""===t?this.store.getData():this.store.search(t,this.events.searchFilter));this.render.renderSearching();const e=this.events.search(t,this.store.getSelectedOptions());e instanceof Promise?e.then((t=>{this.render.renderOptions(this.store.partialToFullData(t))})).catch((t=>{this.render.renderError("string"==typeof t?t:t.message)})):Array.isArray(e)?this.render.renderOptions(this.store.partialToFullData(e)):this.render.renderError("Search event must return a promise or an array of data")}destroy(){document.removeEventListener("click",this.documentClick),window.removeEventListener("resize",this.windowResize,!1),"auto"===this.settings.openPosition&&window.removeEventListener("scroll",this.windowScroll,!1),document.removeEventListener("visibilitychange",this.windowVisibilityChange),this.store.setData([]),this.render.destroy(),this.select.destroy()}}}()},9244:function(t,e,n){"use strict";function i(t){if(null==t)return window;if("[object Window]"!==t.toString()){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function s(t){return t instanceof i(t).Element||t instanceof Element}function o(t){return t instanceof i(t).HTMLElement||t instanceof HTMLElement}function r(t){return"undefined"!=typeof ShadowRoot&&(t instanceof i(t).ShadowRoot||t instanceof ShadowRoot)}n.d(e,{Ay:function(){return ee},cJ:function(){return te}});var a=Math.max,c=Math.min,l=Math.round;function u(){var t=navigator.userAgentData;return null!=t&&t.brands&&Array.isArray(t.brands)?t.brands.map((function(t){return t.brand+"/"+t.version})).join(" "):navigator.userAgent}function d(){return!/^((?!chrome|android).)*safari/i.test(u())}function h(t,e,n){void 0===e&&(e=!1),void 0===n&&(n=!1);var r=t.getBoundingClientRect(),a=1,c=1;e&&o(t)&&(a=t.offsetWidth>0&&l(r.width)/t.offsetWidth||1,c=t.offsetHeight>0&&l(r.height)/t.offsetHeight||1);var u=(s(t)?i(t):window).visualViewport,h=!d()&&n,p=(r.left+(h&&u?u.offsetLeft:0))/a,f=(r.top+(h&&u?u.offsetTop:0))/c,m=r.width/a,g=r.height/c;return{width:m,height:g,top:f,right:p+m,bottom:f+g,left:p,x:p,y:f}}function p(t){var e=i(t);return{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function f(t){return t?(t.nodeName||"").toLowerCase():null}function m(t){return((s(t)?t.ownerDocument:t.document)||window.document).documentElement}function g(t){return h(m(t)).left+p(t).scrollLeft}function v(t){return i(t).getComputedStyle(t)}function b(t){var e=v(t),n=e.overflow,i=e.overflowX,s=e.overflowY;return/auto|scroll|overlay|hidden/.test(n+s+i)}function y(t,e,n){void 0===n&&(n=!1);var s,r,a=o(e),c=o(e)&&function(t){var e=t.getBoundingClientRect(),n=l(e.width)/t.offsetWidth||1,i=l(e.height)/t.offsetHeight||1;return 1!==n||1!==i}(e),u=m(e),d=h(t,c,n),v={scrollLeft:0,scrollTop:0},y={x:0,y:0};return(a||!a&&!n)&&(("body"!==f(e)||b(u))&&(v=(s=e)!==i(s)&&o(s)?{scrollLeft:(r=s).scrollLeft,scrollTop:r.scrollTop}:p(s)),o(e)?((y=h(e,!0)).x+=e.clientLeft,y.y+=e.clientTop):u&&(y.x=g(u))),{x:d.left+v.scrollLeft-y.x,y:d.top+v.scrollTop-y.y,width:d.width,height:d.height}}function w(t){var e=h(t),n=t.offsetWidth,i=t.offsetHeight;return Math.abs(e.width-n)<=1&&(n=e.width),Math.abs(e.height-i)<=1&&(i=e.height),{x:t.offsetLeft,y:t.offsetTop,width:n,height:i}}function E(t){return"html"===f(t)?t:t.assignedSlot||t.parentNode||(r(t)?t.host:null)||m(t)}function S(t){return["html","body","#document"].indexOf(f(t))>=0?t.ownerDocument.body:o(t)&&b(t)?t:S(E(t))}function _(t,e){var n;void 0===e&&(e=[]);var s=S(t),o=s===(null==(n=t.ownerDocument)?void 0:n.body),r=i(s),a=o?[r].concat(r.visualViewport||[],b(s)?s:[]):s,c=e.concat(a);return o?c:c.concat(_(E(a)))}function x(t){return["table","td","th"].indexOf(f(t))>=0}function T(t){return o(t)&&"fixed"!==v(t).position?t.offsetParent:null}function C(t){for(var e=i(t),n=T(t);n&&x(n)&&"static"===v(n).position;)n=T(n);return n&&("html"===f(n)||"body"===f(n)&&"static"===v(n).position)?e:n||function(t){var e=/firefox/i.test(u());if(/Trident/i.test(u())&&o(t)&&"fixed"===v(t).position)return null;var n=E(t);for(r(n)&&(n=n.host);o(n)&&["html","body"].indexOf(f(n))<0;){var i=v(n);if("none"!==i.transform||"none"!==i.perspective||"paint"===i.contain||-1!==["transform","perspective"].indexOf(i.willChange)||e&&"filter"===i.willChange||e&&i.filter&&"none"!==i.filter)return n;n=n.parentNode}return null}(t)||e}var O="top",A="bottom",P="right",L="left",I="auto",k=[O,A,P,L],D="start",N="end",M="viewport",R="popper",j=k.reduce((function(t,e){return t.concat([e+"-"+D,e+"-"+N])}),[]),F=[].concat(k,[I]).reduce((function(t,e){return t.concat([e,e+"-"+D,e+"-"+N])}),[]),z=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function B(t){var e=new Map,n=new Set,i=[];function s(t){n.add(t.name),[].concat(t.requires||[],t.requiresIfExists||[]).forEach((function(t){if(!n.has(t)){var i=e.get(t);i&&s(i)}})),i.push(t)}return t.forEach((function(t){e.set(t.name,t)})),t.forEach((function(t){n.has(t.name)||s(t)})),i}var $={placement:"bottom",modifiers:[],strategy:"absolute"};function H(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return!e.some((function(t){return!(t&&"function"==typeof t.getBoundingClientRect)}))}function U(t){void 0===t&&(t={});var e=t,n=e.defaultModifiers,i=void 0===n?[]:n,o=e.defaultOptions,r=void 0===o?$:o;return function(t,e,n){void 0===n&&(n=r);var o,a,c={placement:"bottom",orderedModifiers:[],options:Object.assign({},$,r),modifiersData:{},elements:{reference:t,popper:e},attributes:{},styles:{}},l=[],u=!1,d={state:c,setOptions:function(n){var o="function"==typeof n?n(c.options):n;h(),c.options=Object.assign({},r,c.options,o),c.scrollParents={reference:s(t)?_(t):t.contextElement?_(t.contextElement):[],popper:_(e)};var a,u,p=function(t){var e=B(t);return z.reduce((function(t,n){return t.concat(e.filter((function(t){return t.phase===n})))}),[])}((a=[].concat(i,c.options.modifiers),u=a.reduce((function(t,e){var n=t[e.name];return t[e.name]=n?Object.assign({},n,e,{options:Object.assign({},n.options,e.options),data:Object.assign({},n.data,e.data)}):e,t}),{}),Object.keys(u).map((function(t){return u[t]}))));return c.orderedModifiers=p.filter((function(t){return t.enabled})),c.orderedModifiers.forEach((function(t){var e=t.name,n=t.options,i=void 0===n?{}:n,s=t.effect;if("function"==typeof s){var o=s({state:c,name:e,instance:d,options:i});l.push(o||function(){})}})),d.update()},forceUpdate:function(){if(!u){var t=c.elements,e=t.reference,n=t.popper;if(H(e,n)){c.rects={reference:y(e,C(n),"fixed"===c.options.strategy),popper:w(n)},c.reset=!1,c.placement=c.options.placement,c.orderedModifiers.forEach((function(t){return c.modifiersData[t.name]=Object.assign({},t.data)}));for(var i=0;i<c.orderedModifiers.length;i++)if(!0!==c.reset){var s=c.orderedModifiers[i],o=s.fn,r=s.options,a=void 0===r?{}:r,l=s.name;"function"==typeof o&&(c=o({state:c,options:a,name:l,instance:d})||c)}else c.reset=!1,i=-1}}},update:(o=function(){return new Promise((function(t){d.forceUpdate(),t(c)}))},function(){return a||(a=new Promise((function(t){Promise.resolve().then((function(){a=void 0,t(o())}))}))),a}),destroy:function(){h(),u=!0}};if(!H(t,e))return d;function h(){l.forEach((function(t){return t()})),l=[]}return d.setOptions(n).then((function(t){!u&&n.onFirstUpdate&&n.onFirstUpdate(t)})),d}}var W={passive:!0};function q(t){return t.split("-")[0]}function V(t){return t.split("-")[1]}function G(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function X(t){var e,n=t.reference,i=t.element,s=t.placement,o=s?q(s):null,r=s?V(s):null,a=n.x+n.width/2-i.width/2,c=n.y+n.height/2-i.height/2;switch(o){case O:e={x:a,y:n.y-i.height};break;case A:e={x:a,y:n.y+n.height};break;case P:e={x:n.x+n.width,y:c};break;case L:e={x:n.x-i.width,y:c};break;default:e={x:n.x,y:n.y}}var l=o?G(o):null;if(null!=l){var u="y"===l?"height":"width";switch(r){case D:e[l]=e[l]-(n[u]/2-i[u]/2);break;case N:e[l]=e[l]+(n[u]/2-i[u]/2)}}return e}var K={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Y(t){var e,n=t.popper,s=t.popperRect,o=t.placement,r=t.variation,a=t.offsets,c=t.position,u=t.gpuAcceleration,d=t.adaptive,h=t.roundOffsets,p=t.isFixed,f=a.x,g=void 0===f?0:f,b=a.y,y=void 0===b?0:b,w="function"==typeof h?h({x:g,y:y}):{x:g,y:y};g=w.x,y=w.y;var E=a.hasOwnProperty("x"),S=a.hasOwnProperty("y"),_=L,x=O,T=window;if(d){var I=C(n),k="clientHeight",D="clientWidth";I===i(n)&&"static"!==v(I=m(n)).position&&"absolute"===c&&(k="scrollHeight",D="scrollWidth"),(o===O||(o===L||o===P)&&r===N)&&(x=A,y-=(p&&I===T&&T.visualViewport?T.visualViewport.height:I[k])-s.height,y*=u?1:-1),o!==L&&(o!==O&&o!==A||r!==N)||(_=P,g-=(p&&I===T&&T.visualViewport?T.visualViewport.width:I[D])-s.width,g*=u?1:-1)}var M,R=Object.assign({position:c},d&&K),j=!0===h?function(t,e){var n=t.x,i=t.y,s=e.devicePixelRatio||1;return{x:l(n*s)/s||0,y:l(i*s)/s||0}}({x:g,y:y},i(n)):{x:g,y:y};return g=j.x,y=j.y,u?Object.assign({},R,((M={})[x]=S?"0":"",M[_]=E?"0":"",M.transform=(T.devicePixelRatio||1)<=1?"translate("+g+"px, "+y+"px)":"translate3d("+g+"px, "+y+"px, 0)",M)):Object.assign({},R,((e={})[x]=S?y+"px":"",e[_]=E?g+"px":"",e.transform="",e))}var J={name:"applyStyles",enabled:!0,phase:"write",fn:function(t){var e=t.state;Object.keys(e.elements).forEach((function(t){var n=e.styles[t]||{},i=e.attributes[t]||{},s=e.elements[t];o(s)&&f(s)&&(Object.assign(s.style,n),Object.keys(i).forEach((function(t){var e=i[t];!1===e?s.removeAttribute(t):s.setAttribute(t,!0===e?"":e)})))}))},effect:function(t){var e=t.state,n={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,n.popper),e.styles=n,e.elements.arrow&&Object.assign(e.elements.arrow.style,n.arrow),function(){Object.keys(e.elements).forEach((function(t){var i=e.elements[t],s=e.attributes[t]||{},r=Object.keys(e.styles.hasOwnProperty(t)?e.styles[t]:n[t]).reduce((function(t,e){return t[e]="",t}),{});o(i)&&f(i)&&(Object.assign(i.style,r),Object.keys(s).forEach((function(t){i.removeAttribute(t)})))}))}},requires:["computeStyles"]},Z={left:"right",right:"left",bottom:"top",top:"bottom"};function Q(t){return t.replace(/left|right|bottom|top/g,(function(t){return Z[t]}))}var tt={start:"end",end:"start"};function et(t){return t.replace(/start|end/g,(function(t){return tt[t]}))}function nt(t,e){var n=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(n&&r(n)){var i=e;do{if(i&&t.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function it(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function st(t,e,n){return e===M?it(function(t,e){var n=i(t),s=m(t),o=n.visualViewport,r=s.clientWidth,a=s.clientHeight,c=0,l=0;if(o){r=o.width,a=o.height;var u=d();(u||!u&&"fixed"===e)&&(c=o.offsetLeft,l=o.offsetTop)}return{width:r,height:a,x:c+g(t),y:l}}(t,n)):s(e)?function(t,e){var n=h(t,!1,"fixed"===e);return n.top=n.top+t.clientTop,n.left=n.left+t.clientLeft,n.bottom=n.top+t.clientHeight,n.right=n.left+t.clientWidth,n.width=t.clientWidth,n.height=t.clientHeight,n.x=n.left,n.y=n.top,n}(e,n):it(function(t){var e,n=m(t),i=p(t),s=null==(e=t.ownerDocument)?void 0:e.body,o=a(n.scrollWidth,n.clientWidth,s?s.scrollWidth:0,s?s.clientWidth:0),r=a(n.scrollHeight,n.clientHeight,s?s.scrollHeight:0,s?s.clientHeight:0),c=-i.scrollLeft+g(t),l=-i.scrollTop;return"rtl"===v(s||n).direction&&(c+=a(n.clientWidth,s?s.clientWidth:0)-o),{width:o,height:r,x:c,y:l}}(m(t)))}function ot(t){return Object.assign({},{top:0,right:0,bottom:0,left:0},t)}function rt(t,e){return e.reduce((function(e,n){return e[n]=t,e}),{})}function at(t,e){void 0===e&&(e={});var n=e,i=n.placement,r=void 0===i?t.placement:i,l=n.strategy,u=void 0===l?t.strategy:l,d=n.boundary,p=void 0===d?"clippingParents":d,g=n.rootBoundary,b=void 0===g?M:g,y=n.elementContext,w=void 0===y?R:y,S=n.altBoundary,x=void 0!==S&&S,T=n.padding,L=void 0===T?0:T,I=ot("number"!=typeof L?L:rt(L,k)),D=w===R?"reference":R,N=t.rects.popper,j=t.elements[x?D:w],F=function(t,e,n,i){var r="clippingParents"===e?function(t){var e=_(E(t)),n=["absolute","fixed"].indexOf(v(t).position)>=0&&o(t)?C(t):t;return s(n)?e.filter((function(t){return s(t)&&nt(t,n)&&"body"!==f(t)})):[]}(t):[].concat(e),l=[].concat(r,[n]),u=l[0],d=l.reduce((function(e,n){var s=st(t,n,i);return e.top=a(s.top,e.top),e.right=c(s.right,e.right),e.bottom=c(s.bottom,e.bottom),e.left=a(s.left,e.left),e}),st(t,u,i));return d.width=d.right-d.left,d.height=d.bottom-d.top,d.x=d.left,d.y=d.top,d}(s(j)?j:j.contextElement||m(t.elements.popper),p,b,u),z=h(t.elements.reference),B=X({reference:z,element:N,strategy:"absolute",placement:r}),$=it(Object.assign({},N,B)),H=w===R?$:z,U={top:F.top-H.top+I.top,bottom:H.bottom-F.bottom+I.bottom,left:F.left-H.left+I.left,right:H.right-F.right+I.right},W=t.modifiersData.offset;if(w===R&&W){var q=W[r];Object.keys(U).forEach((function(t){var e=[P,A].indexOf(t)>=0?1:-1,n=[O,A].indexOf(t)>=0?"y":"x";U[t]+=q[n]*e}))}return U}function ct(t,e,n){return a(t,c(e,n))}function lt(t,e,n){return void 0===n&&(n={x:0,y:0}),{top:t.top-e.height-n.y,right:t.right-e.width+n.x,bottom:t.bottom-e.height+n.y,left:t.left-e.width-n.x}}function ut(t){return[O,P,A,L].some((function(e){return t[e]>=0}))}var dt=U({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(t){var e=t.state,n=t.instance,s=t.options,o=s.scroll,r=void 0===o||o,a=s.resize,c=void 0===a||a,l=i(e.elements.popper),u=[].concat(e.scrollParents.reference,e.scrollParents.popper);return r&&u.forEach((function(t){t.addEventListener("scroll",n.update,W)})),c&&l.addEventListener("resize",n.update,W),function(){r&&u.forEach((function(t){t.removeEventListener("scroll",n.update,W)})),c&&l.removeEventListener("resize",n.update,W)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(t){var e=t.state,n=t.name;e.modifiersData[n]=X({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(t){var e=t.state,n=t.options,i=n.gpuAcceleration,s=void 0===i||i,o=n.adaptive,r=void 0===o||o,a=n.roundOffsets,c=void 0===a||a,l={placement:q(e.placement),variation:V(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:s,isFixed:"fixed"===e.options.strategy};null!=e.modifiersData.popperOffsets&&(e.styles.popper=Object.assign({},e.styles.popper,Y(Object.assign({},l,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:r,roundOffsets:c})))),null!=e.modifiersData.arrow&&(e.styles.arrow=Object.assign({},e.styles.arrow,Y(Object.assign({},l,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})},data:{}},J,{name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(t){var e=t.state,n=t.options,i=t.name,s=n.offset,o=void 0===s?[0,0]:s,r=F.reduce((function(t,n){return t[n]=function(t,e,n){var i=q(t),s=[L,O].indexOf(i)>=0?-1:1,o="function"==typeof n?n(Object.assign({},e,{placement:t})):n,r=o[0],a=o[1];return r=r||0,a=(a||0)*s,[L,P].indexOf(i)>=0?{x:a,y:r}:{x:r,y:a}}(n,e.rects,o),t}),{}),a=r[e.placement],c=a.x,l=a.y;null!=e.modifiersData.popperOffsets&&(e.modifiersData.popperOffsets.x+=c,e.modifiersData.popperOffsets.y+=l),e.modifiersData[i]=r}},{name:"flip",enabled:!0,phase:"main",fn:function(t){var e=t.state,n=t.options,i=t.name;if(!e.modifiersData[i]._skip){for(var s=n.mainAxis,o=void 0===s||s,r=n.altAxis,a=void 0===r||r,c=n.fallbackPlacements,l=n.padding,u=n.boundary,d=n.rootBoundary,h=n.altBoundary,p=n.flipVariations,f=void 0===p||p,m=n.allowedAutoPlacements,g=e.options.placement,v=q(g),b=c||(v!==g&&f?function(t){if(q(t)===I)return[];var e=Q(t);return[et(t),e,et(e)]}(g):[Q(g)]),y=[g].concat(b).reduce((function(t,n){return t.concat(q(n)===I?function(t,e){void 0===e&&(e={});var n=e,i=n.placement,s=n.boundary,o=n.rootBoundary,r=n.padding,a=n.flipVariations,c=n.allowedAutoPlacements,l=void 0===c?F:c,u=V(i),d=u?a?j:j.filter((function(t){return V(t)===u})):k,h=d.filter((function(t){return l.indexOf(t)>=0}));0===h.length&&(h=d);var p=h.reduce((function(e,n){return e[n]=at(t,{placement:n,boundary:s,rootBoundary:o,padding:r})[q(n)],e}),{});return Object.keys(p).sort((function(t,e){return p[t]-p[e]}))}(e,{placement:n,boundary:u,rootBoundary:d,padding:l,flipVariations:f,allowedAutoPlacements:m}):n)}),[]),w=e.rects.reference,E=e.rects.popper,S=new Map,_=!0,x=y[0],T=0;T<y.length;T++){var C=y[T],N=q(C),M=V(C)===D,R=[O,A].indexOf(N)>=0,z=R?"width":"height",B=at(e,{placement:C,boundary:u,rootBoundary:d,altBoundary:h,padding:l}),$=R?M?P:L:M?A:O;w[z]>E[z]&&($=Q($));var H=Q($),U=[];if(o&&U.push(B[N]<=0),a&&U.push(B[$]<=0,B[H]<=0),U.every((function(t){return t}))){x=C,_=!1;break}S.set(C,U)}if(_)for(var W=function(t){var e=y.find((function(e){var n=S.get(e);if(n)return n.slice(0,t).every((function(t){return t}))}));if(e)return x=e,"break"},G=f?3:1;G>0&&"break"!==W(G);G--);e.placement!==x&&(e.modifiersData[i]._skip=!0,e.placement=x,e.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},{name:"preventOverflow",enabled:!0,phase:"main",fn:function(t){var e=t.state,n=t.options,i=t.name,s=n.mainAxis,o=void 0===s||s,r=n.altAxis,l=void 0!==r&&r,u=n.boundary,d=n.rootBoundary,h=n.altBoundary,p=n.padding,f=n.tether,m=void 0===f||f,g=n.tetherOffset,v=void 0===g?0:g,b=at(e,{boundary:u,rootBoundary:d,padding:p,altBoundary:h}),y=q(e.placement),E=V(e.placement),S=!E,_=G(y),x="x"===_?"y":"x",T=e.modifiersData.popperOffsets,I=e.rects.reference,k=e.rects.popper,N="function"==typeof v?v(Object.assign({},e.rects,{placement:e.placement})):v,M="number"==typeof N?{mainAxis:N,altAxis:N}:Object.assign({mainAxis:0,altAxis:0},N),R=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,j={x:0,y:0};if(T){if(o){var F,z="y"===_?O:L,B="y"===_?A:P,$="y"===_?"height":"width",H=T[_],U=H+b[z],W=H-b[B],X=m?-k[$]/2:0,K=E===D?I[$]:k[$],Y=E===D?-k[$]:-I[$],J=e.elements.arrow,Z=m&&J?w(J):{width:0,height:0},Q=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},tt=Q[z],et=Q[B],nt=ct(0,I[$],Z[$]),it=S?I[$]/2-X-nt-tt-M.mainAxis:K-nt-tt-M.mainAxis,st=S?-I[$]/2+X+nt+et+M.mainAxis:Y+nt+et+M.mainAxis,ot=e.elements.arrow&&C(e.elements.arrow),rt=ot?"y"===_?ot.clientTop||0:ot.clientLeft||0:0,lt=null!=(F=null==R?void 0:R[_])?F:0,ut=H+st-lt,dt=ct(m?c(U,H+it-lt-rt):U,H,m?a(W,ut):W);T[_]=dt,j[_]=dt-H}if(l){var ht,pt="x"===_?O:L,ft="x"===_?A:P,mt=T[x],gt="y"===x?"height":"width",vt=mt+b[pt],bt=mt-b[ft],yt=-1!==[O,L].indexOf(y),wt=null!=(ht=null==R?void 0:R[x])?ht:0,Et=yt?vt:mt-I[gt]-k[gt]-wt+M.altAxis,St=yt?mt+I[gt]+k[gt]-wt-M.altAxis:bt,_t=m&&yt?function(t,e,n){var i=ct(t,e,n);return i>n?n:i}(Et,mt,St):ct(m?Et:vt,mt,m?St:bt);T[x]=_t,j[x]=_t-mt}e.modifiersData[i]=j}},requiresIfExists:["offset"]},{name:"arrow",enabled:!0,phase:"main",fn:function(t){var e,n=t.state,i=t.name,s=t.options,o=n.elements.arrow,r=n.modifiersData.popperOffsets,a=q(n.placement),c=G(a),l=[L,P].indexOf(a)>=0?"height":"width";if(o&&r){var u=function(t,e){return ot("number"!=typeof(t="function"==typeof t?t(Object.assign({},e.rects,{placement:e.placement})):t)?t:rt(t,k))}(s.padding,n),d=w(o),h="y"===c?O:L,p="y"===c?A:P,f=n.rects.reference[l]+n.rects.reference[c]-r[c]-n.rects.popper[l],m=r[c]-n.rects.reference[c],g=C(o),v=g?"y"===c?g.clientHeight||0:g.clientWidth||0:0,b=f/2-m/2,y=u[h],E=v-d[l]-u[p],S=v/2-d[l]/2+b,_=ct(y,S,E),x=c;n.modifiersData[i]=((e={})[x]=_,e.centerOffset=_-S,e)}},effect:function(t){var e=t.state,n=t.options.element,i=void 0===n?"[data-popper-arrow]":n;null!=i&&("string"!=typeof i||(i=e.elements.popper.querySelector(i)))&&nt(e.elements.popper,i)&&(e.elements.arrow=i)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(t){var e=t.state,n=t.name,i=e.rects.reference,s=e.rects.popper,o=e.modifiersData.preventOverflow,r=at(e,{elementContext:"reference"}),a=at(e,{altBoundary:!0}),c=lt(r,i),l=lt(a,s,o),u=ut(c),d=ut(l);e.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:l,isReferenceHidden:u,hasPopperEscaped:d},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}}]}),ht="tippy-content",pt="tippy-backdrop",ft="tippy-arrow",mt="tippy-svg-arrow",gt={passive:!0,capture:!0},vt=function(){return document.body};function bt(t,e,n){if(Array.isArray(t)){var i=t[e];return null==i?Array.isArray(n)?n[e]:n:i}return t}function yt(t,e){var n={}.toString.call(t);return 0===n.indexOf("[object")&&n.indexOf(e+"]")>-1}function wt(t,e){return"function"==typeof t?t.apply(void 0,e):t}function Et(t,e){return 0===e?t:function(i){clearTimeout(n),n=setTimeout((function(){t(i)}),e)};var n}function St(t){return[].concat(t)}function _t(t,e){-1===t.indexOf(e)&&t.push(e)}function xt(t){return[].slice.call(t)}function Tt(t){return Object.keys(t).reduce((function(e,n){return void 0!==t[n]&&(e[n]=t[n]),e}),{})}function Ct(){return document.createElement("div")}function Ot(t){return["Element","Fragment"].some((function(e){return yt(t,e)}))}function At(t){return!(!t||!t._tippy||t._tippy.reference!==t)}function Pt(t,e){t.forEach((function(t){t&&(t.style.transitionDuration=e+"ms")}))}function Lt(t,e){t.forEach((function(t){t&&t.setAttribute("data-state",e)}))}function It(t,e,n){var i=e+"EventListener";["transitionend","webkitTransitionEnd"].forEach((function(e){t[i](e,n)}))}function kt(t,e){for(var n=e;n;){var i;if(t.contains(n))return!0;n=null==n.getRootNode||null==(i=n.getRootNode())?void 0:i.host}return!1}var Dt={isTouch:!1},Nt=0;function Mt(){Dt.isTouch||(Dt.isTouch=!0,window.performance&&document.addEventListener("mousemove",Rt))}function Rt(){var t=performance.now();t-Nt<20&&(Dt.isTouch=!1,document.removeEventListener("mousemove",Rt)),Nt=t}function jt(){var t=document.activeElement;if(At(t)){var e=t._tippy;t.blur&&!e.state.isVisible&&t.blur()}}var Ft=!("undefined"==typeof window||"undefined"==typeof document||!window.msCrypto),zt=Object.assign({appendTo:vt,aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},{animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},{allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999}),Bt=Object.keys(zt);function $t(t){var e=(t.plugins||[]).reduce((function(e,n){var i,s=n.name,o=n.defaultValue;return s&&(e[s]=void 0!==t[s]?t[s]:null!=(i=zt[s])?i:o),e}),{});return Object.assign({},t,e)}function Ht(t,e){var n=Object.assign({},e,{content:wt(e.content,[t])},e.ignoreAttributes?{}:function(t,e){return(e?Object.keys($t(Object.assign({},zt,{plugins:e}))):Bt).reduce((function(e,n){var i=(t.getAttribute("data-tippy-"+n)||"").trim();if(!i)return e;if("content"===n)e[n]=i;else try{e[n]=JSON.parse(i)}catch(t){e[n]=i}return e}),{})}(t,e.plugins));return n.aria=Object.assign({},zt.aria,n.aria),n.aria={expanded:"auto"===n.aria.expanded?e.interactive:n.aria.expanded,content:"auto"===n.aria.content?e.interactive?null:"describedby":n.aria.content},n}var Ut=function(){return"innerHTML"};function Wt(t,e){t[Ut()]=e}function qt(t){var e=Ct();return!0===t?e.className=ft:(e.className=mt,Ot(t)?e.appendChild(t):Wt(e,t)),e}function Vt(t,e){Ot(e.content)?(Wt(t,""),t.appendChild(e.content)):"function"!=typeof e.content&&(e.allowHTML?Wt(t,e.content):t.textContent=e.content)}function Gt(t){var e=t.firstElementChild,n=xt(e.children);return{box:e,content:n.find((function(t){return t.classList.contains(ht)})),arrow:n.find((function(t){return t.classList.contains(ft)||t.classList.contains(mt)})),backdrop:n.find((function(t){return t.classList.contains(pt)}))}}function Xt(t){var e=Ct(),n=Ct();n.className="tippy-box",n.setAttribute("data-state","hidden"),n.setAttribute("tabindex","-1");var i=Ct();function s(n,i){var s=Gt(e),o=s.box,r=s.content,a=s.arrow;i.theme?o.setAttribute("data-theme",i.theme):o.removeAttribute("data-theme"),"string"==typeof i.animation?o.setAttribute("data-animation",i.animation):o.removeAttribute("data-animation"),i.inertia?o.setAttribute("data-inertia",""):o.removeAttribute("data-inertia"),o.style.maxWidth="number"==typeof i.maxWidth?i.maxWidth+"px":i.maxWidth,i.role?o.setAttribute("role",i.role):o.removeAttribute("role"),n.content===i.content&&n.allowHTML===i.allowHTML||Vt(r,t.props),i.arrow?a?n.arrow!==i.arrow&&(o.removeChild(a),o.appendChild(qt(i.arrow))):o.appendChild(qt(i.arrow)):a&&o.removeChild(a)}return i.className=ht,i.setAttribute("data-state","hidden"),Vt(i,t.props),e.appendChild(n),n.appendChild(i),s(t.props,t.props),{popper:e,onUpdate:s}}Xt.$$tippy=!0;var Kt=1,Yt=[],Jt=[];function Zt(t,e){var n,i,s,o,r,a,c,l,u=Ht(t,Object.assign({},zt,$t(Tt(e)))),d=!1,h=!1,p=!1,f=!1,m=[],g=Et(G,u.interactiveDebounce),v=Kt++,b=(l=u.plugins).filter((function(t,e){return l.indexOf(t)===e})),y={id:v,reference:t,popper:Ct(),popperInstance:null,props:u,state:{isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},plugins:b,clearDelayTimeouts:function(){clearTimeout(n),clearTimeout(i),cancelAnimationFrame(s)},setProps:function(e){if(!y.state.isDestroyed){D("onBeforeUpdate",[y,e]),q();var n=y.props,i=Ht(t,Object.assign({},n,Tt(e),{ignoreAttributes:!0}));y.props=i,W(),n.interactiveDebounce!==i.interactiveDebounce&&(R(),g=Et(G,i.interactiveDebounce)),n.triggerTarget&&!i.triggerTarget?St(n.triggerTarget).forEach((function(t){t.removeAttribute("aria-expanded")})):i.triggerTarget&&t.removeAttribute("aria-expanded"),M(),k(),S&&S(n,i),y.popperInstance&&(J(),Q().forEach((function(t){requestAnimationFrame(t._tippy.popperInstance.forceUpdate)}))),D("onAfterUpdate",[y,e])}},setContent:function(t){y.setProps({content:t})},show:function(){var t=y.state.isVisible,e=y.state.isDestroyed,n=!y.state.isEnabled,i=Dt.isTouch&&!y.props.touch,s=bt(y.props.duration,0,zt.duration);if(!(t||e||n||i||A().hasAttribute("disabled")||(D("onShow",[y],!1),!1===y.props.onShow(y)))){if(y.state.isVisible=!0,O()&&(E.style.visibility="visible"),k(),B(),y.state.isMounted||(E.style.transition="none"),O()){var o=L();Pt([o.box,o.content],0)}var r,c,l;a=function(){var t;if(y.state.isVisible&&!f){if(f=!0,E.offsetHeight,E.style.transition=y.props.moveTransition,O()&&y.props.animation){var e=L(),n=e.box,i=e.content;Pt([n,i],s),Lt([n,i],"visible")}N(),M(),_t(Jt,y),null==(t=y.popperInstance)||t.forceUpdate(),D("onMount",[y]),y.props.animation&&O()&&function(t){H(t,(function(){y.state.isShown=!0,D("onShown",[y])}))}(s)}},c=y.props.appendTo,l=A(),(r=y.props.interactive&&c===vt||"parent"===c?l.parentNode:wt(c,[l])).contains(E)||r.appendChild(E),y.state.isMounted=!0,J()}},hide:function(){var t=!y.state.isVisible,e=y.state.isDestroyed,n=!y.state.isEnabled,i=bt(y.props.duration,1,zt.duration);if(!(t||e||n)&&(D("onHide",[y],!1),!1!==y.props.onHide(y))){if(y.state.isVisible=!1,y.state.isShown=!1,f=!1,d=!1,O()&&(E.style.visibility="hidden"),R(),$(),k(!0),O()){var s=L(),o=s.box,r=s.content;y.props.animation&&(Pt([o,r],i),Lt([o,r],"hidden"))}N(),M(),y.props.animation?O()&&function(t,e){H(t,(function(){!y.state.isVisible&&E.parentNode&&E.parentNode.contains(E)&&e()}))}(i,y.unmount):y.unmount()}},hideWithInteractivity:function(t){P().addEventListener("mousemove",g),_t(Yt,g),g(t)},enable:function(){y.state.isEnabled=!0},disable:function(){y.hide(),y.state.isEnabled=!1},unmount:function(){y.state.isVisible&&y.hide(),y.state.isMounted&&(Z(),Q().forEach((function(t){t._tippy.unmount()})),E.parentNode&&E.parentNode.removeChild(E),Jt=Jt.filter((function(t){return t!==y})),y.state.isMounted=!1,D("onHidden",[y]))},destroy:function(){y.state.isDestroyed||(y.clearDelayTimeouts(),y.unmount(),q(),delete t._tippy,y.state.isDestroyed=!0,D("onDestroy",[y]))}};if(!u.render)return y;var w=u.render(y),E=w.popper,S=w.onUpdate;E.setAttribute("data-tippy-root",""),E.id="tippy-"+y.id,y.popper=E,t._tippy=y,E._tippy=y;var _=b.map((function(t){return t.fn(y)})),x=t.hasAttribute("aria-expanded");return W(),M(),k(),D("onCreate",[y]),u.showOnCreate&&tt(),E.addEventListener("mouseenter",(function(){y.props.interactive&&y.state.isVisible&&y.clearDelayTimeouts()})),E.addEventListener("mouseleave",(function(){y.props.interactive&&y.props.trigger.indexOf("mouseenter")>=0&&P().addEventListener("mousemove",g)})),y;function T(){var t=y.props.touch;return Array.isArray(t)?t:[t,0]}function C(){return"hold"===T()[0]}function O(){var t;return!(null==(t=y.props.render)||!t.$$tippy)}function A(){return c||t}function P(){var t,e,n=A().parentNode;return n?null!=(e=St(n)[0])&&null!=(t=e.ownerDocument)&&t.body?e.ownerDocument:document:document}function L(){return Gt(E)}function I(t){return y.state.isMounted&&!y.state.isVisible||Dt.isTouch||o&&"focus"===o.type?0:bt(y.props.delay,t?0:1,zt.delay)}function k(t){void 0===t&&(t=!1),E.style.pointerEvents=y.props.interactive&&!t?"":"none",E.style.zIndex=""+y.props.zIndex}function D(t,e,n){var i;void 0===n&&(n=!0),_.forEach((function(n){n[t]&&n[t].apply(n,e)})),n&&(i=y.props)[t].apply(i,e)}function N(){var e=y.props.aria;if(e.content){var n="aria-"+e.content,i=E.id;St(y.props.triggerTarget||t).forEach((function(t){var e=t.getAttribute(n);if(y.state.isVisible)t.setAttribute(n,e?e+" "+i:i);else{var s=e&&e.replace(i,"").trim();s?t.setAttribute(n,s):t.removeAttribute(n)}}))}}function M(){!x&&y.props.aria.expanded&&St(y.props.triggerTarget||t).forEach((function(t){y.props.interactive?t.setAttribute("aria-expanded",y.state.isVisible&&t===A()?"true":"false"):t.removeAttribute("aria-expanded")}))}function R(){P().removeEventListener("mousemove",g),Yt=Yt.filter((function(t){return t!==g}))}function j(e){if(!Dt.isTouch||!p&&"mousedown"!==e.type){var n=e.composedPath&&e.composedPath()[0]||e.target;if(!y.props.interactive||!kt(E,n)){if(St(y.props.triggerTarget||t).some((function(t){return kt(t,n)}))){if(Dt.isTouch)return;if(y.state.isVisible&&y.props.trigger.indexOf("click")>=0)return}else D("onClickOutside",[y,e]);!0===y.props.hideOnClick&&(y.clearDelayTimeouts(),y.hide(),h=!0,setTimeout((function(){h=!1})),y.state.isMounted||$())}}}function F(){p=!0}function z(){p=!1}function B(){var t=P();t.addEventListener("mousedown",j,!0),t.addEventListener("touchend",j,gt),t.addEventListener("touchstart",z,gt),t.addEventListener("touchmove",F,gt)}function $(){var t=P();t.removeEventListener("mousedown",j,!0),t.removeEventListener("touchend",j,gt),t.removeEventListener("touchstart",z,gt),t.removeEventListener("touchmove",F,gt)}function H(t,e){var n=L().box;function i(t){t.target===n&&(It(n,"remove",i),e())}if(0===t)return e();It(n,"remove",r),It(n,"add",i),r=i}function U(e,n,i){void 0===i&&(i=!1),St(y.props.triggerTarget||t).forEach((function(t){t.addEventListener(e,n,i),m.push({node:t,eventType:e,handler:n,options:i})}))}function W(){var t;C()&&(U("touchstart",V,{passive:!0}),U("touchend",X,{passive:!0})),(t=y.props.trigger,t.split(/\s+/).filter(Boolean)).forEach((function(t){if("manual"!==t)switch(U(t,V),t){case"mouseenter":U("mouseleave",X);break;case"focus":U(Ft?"focusout":"blur",K);break;case"focusin":U("focusout",K)}}))}function q(){m.forEach((function(t){var e=t.node,n=t.eventType,i=t.handler,s=t.options;e.removeEventListener(n,i,s)})),m=[]}function V(t){var e,n=!1;if(y.state.isEnabled&&!Y(t)&&!h){var i="focus"===(null==(e=o)?void 0:e.type);o=t,c=t.currentTarget,M(),!y.state.isVisible&&yt(t,"MouseEvent")&&Yt.forEach((function(e){return e(t)})),"click"===t.type&&(y.props.trigger.indexOf("mouseenter")<0||d)&&!1!==y.props.hideOnClick&&y.state.isVisible?n=!0:tt(t),"click"===t.type&&(d=!n),n&&!i&&et(t)}}function G(t){var e=t.target,n=A().contains(e)||E.contains(e);if("mousemove"!==t.type||!n){var i=Q().concat(E).map((function(t){var e,n=null==(e=t._tippy.popperInstance)?void 0:e.state;return n?{popperRect:t.getBoundingClientRect(),popperState:n,props:u}:null})).filter(Boolean);(function(t,e){var n=e.clientX,i=e.clientY;return t.every((function(t){var e=t.popperRect,s=t.popperState,o=t.props.interactiveBorder,r=s.placement.split("-")[0],a=s.modifiersData.offset;if(!a)return!0;var c="bottom"===r?a.top.y:0,l="top"===r?a.bottom.y:0,u="right"===r?a.left.x:0,d="left"===r?a.right.x:0,h=e.top-i+c>o,p=i-e.bottom-l>o,f=e.left-n+u>o,m=n-e.right-d>o;return h||p||f||m}))})(i,t)&&(R(),et(t))}}function X(t){Y(t)||y.props.trigger.indexOf("click")>=0&&d||(y.props.interactive?y.hideWithInteractivity(t):et(t))}function K(t){y.props.trigger.indexOf("focusin")<0&&t.target!==A()||y.props.interactive&&t.relatedTarget&&E.contains(t.relatedTarget)||et(t)}function Y(t){return!!Dt.isTouch&&C()!==t.type.indexOf("touch")>=0}function J(){Z();var e=y.props,n=e.popperOptions,i=e.placement,s=e.offset,o=e.getReferenceClientRect,r=e.moveTransition,c=O()?Gt(E).arrow:null,l=o?{getBoundingClientRect:o,contextElement:o.contextElement||A()}:t,u=[{name:"offset",options:{offset:s}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!r}},{name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(t){var e=t.state;if(O()){var n=L().box;["placement","reference-hidden","escaped"].forEach((function(t){"placement"===t?n.setAttribute("data-placement",e.placement):e.attributes.popper["data-popper-"+t]?n.setAttribute("data-"+t,""):n.removeAttribute("data-"+t)})),e.attributes.popper={}}}}];O()&&c&&u.push({name:"arrow",options:{element:c,padding:3}}),u.push.apply(u,(null==n?void 0:n.modifiers)||[]),y.popperInstance=dt(l,E,Object.assign({},n,{placement:i,onFirstUpdate:a,modifiers:u}))}function Z(){y.popperInstance&&(y.popperInstance.destroy(),y.popperInstance=null)}function Q(){return xt(E.querySelectorAll("[data-tippy-root]"))}function tt(t){y.clearDelayTimeouts(),t&&D("onTrigger",[y,t]),B();var e=I(!0),i=T(),s=i[0],o=i[1];Dt.isTouch&&"hold"===s&&o&&(e=o),e?n=setTimeout((function(){y.show()}),e):y.show()}function et(t){if(y.clearDelayTimeouts(),D("onUntrigger",[y,t]),y.state.isVisible){if(!(y.props.trigger.indexOf("mouseenter")>=0&&y.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(t.type)>=0&&d)){var e=I(!1);e?i=setTimeout((function(){y.state.isVisible&&y.hide()}),e):s=requestAnimationFrame((function(){y.hide()}))}}else $()}}function Qt(t,e){void 0===e&&(e={});var n=zt.plugins.concat(e.plugins||[]);document.addEventListener("touchstart",Mt,gt),window.addEventListener("blur",jt);var i,s=Object.assign({},e,{plugins:n}),o=(i=t,Ot(i)?[i]:function(t){return yt(t,"NodeList")}(i)?xt(i):Array.isArray(i)?i:xt(document.querySelectorAll(i))).reduce((function(t,e){var n=e&&Zt(e,s);return n&&t.push(n),t}),[]);return Ot(t)?o[0]:o}Qt.defaultProps=zt,Qt.setDefaultProps=function(t){Object.keys(t).forEach((function(e){zt[e]=t[e]}))},Qt.currentInput=Dt;var te=function(t){var e=void 0===t?{}:t,n=e.exclude,i=e.duration;Jt.forEach((function(t){var e=!1;if(n&&(e=At(n)?t.reference===n:t.popper===n.popper),!e){var s=t.props.duration;t.setProps({duration:i}),t.hide(),t.state.isDestroyed||t.setProps({duration:s})}}))};Object.assign({},J,{effect:function(t){var e=t.state,n={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(e.elements.popper.style,n.popper),e.styles=n,e.elements.arrow&&Object.assign(e.elements.arrow.style,n.arrow)}}),Qt.setDefaultProps({render:Xt});var ee=Qt},9306:function(t,e,n){"use strict";var i=n(4901),s=n(6823),o=TypeError;t.exports=function(t){if(i(t))return t;throw new o(s(t)+" is not a function")}},7080:function(t,e,n){"use strict";var i=n(4402).has;t.exports=function(t){return i(t),t}},8551:function(t,e,n){"use strict";var i=n(34),s=String,o=TypeError;t.exports=function(t){if(i(t))return t;throw new o(s(t)+" is not an object")}},9617:function(t,e,n){"use strict";var i=n(5397),s=n(5610),o=n(6198),r=function(t){return function(e,n,r){var a=i(e),c=o(a);if(0===c)return!t&&-1;var l,u=s(r,c);if(t&&n!=n){for(;c>u;)if((l=a[u++])!=l)return!0}else for(;c>u;u++)if((t||u in a)&&a[u]===n)return t||u||0;return!t&&-1}};t.exports={includes:r(!0),indexOf:r(!1)}},4527:function(t,e,n){"use strict";var i=n(3724),s=n(4376),o=TypeError,r=Object.getOwnPropertyDescriptor,a=i&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(t){return t instanceof TypeError}}();t.exports=a?function(t,e){if(s(t)&&!r(t,"length").writable)throw new o("Cannot set read only .length");return t.length=e}:function(t,e){return t.length=e}},2195:function(t,e,n){"use strict";var i=n(9504),s=i({}.toString),o=i("".slice);t.exports=function(t){return o(s(t),8,-1)}},6955:function(t,e,n){"use strict";var i=n(2140),s=n(4901),o=n(2195),r=n(8227)("toStringTag"),a=Object,c="Arguments"===o(function(){return arguments}());t.exports=i?o:function(t){var e,n,i;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=a(t),r))?n:c?o(e):"Object"===(i=o(e))&&s(e.callee)?"Arguments":i}},7740:function(t,e,n){"use strict";var i=n(9297),s=n(5031),o=n(7347),r=n(4913);t.exports=function(t,e,n){for(var a=s(e),c=r.f,l=o.f,u=0;u<a.length;u++){var d=a[u];i(t,d)||n&&i(n,d)||c(t,d,l(e,d))}}},6699:function(t,e,n){"use strict";var i=n(3724),s=n(4913),o=n(6980);t.exports=i?function(t,e,n){return s.f(t,e,o(1,n))}:function(t,e,n){return t[e]=n,t}},6980:function(t){"use strict";t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},2106:function(t,e,n){"use strict";var i=n(283),s=n(4913);t.exports=function(t,e,n){return n.get&&i(n.get,e,{getter:!0}),n.set&&i(n.set,e,{setter:!0}),s.f(t,e,n)}},6840:function(t,e,n){"use strict";var i=n(4901),s=n(4913),o=n(283),r=n(9433);t.exports=function(t,e,n,a){a||(a={});var c=a.enumerable,l=void 0!==a.name?a.name:e;if(i(n)&&o(n,l,a),a.global)c?t[e]=n:r(e,n);else{try{a.unsafe?t[e]&&(c=!0):delete t[e]}catch(t){}c?t[e]=n:s.f(t,e,{value:n,enumerable:!1,configurable:!a.nonConfigurable,writable:!a.nonWritable})}return t}},9433:function(t,e,n){"use strict";var i=n(4576),s=Object.defineProperty;t.exports=function(t,e){try{s(i,t,{value:e,configurable:!0,writable:!0})}catch(n){i[t]=e}return e}},3724:function(t,e,n){"use strict";var i=n(9039);t.exports=!i((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))},4055:function(t,e,n){"use strict";var i=n(4576),s=n(34),o=i.document,r=s(o)&&s(o.createElement);t.exports=function(t){return r?o.createElement(t):{}}},6837:function(t){"use strict";var e=TypeError;t.exports=function(t){if(t>9007199254740991)throw e("Maximum allowed index exceeded");return t}},8727:function(t){"use strict";t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},2839:function(t,e,n){"use strict";var i=n(4576).navigator,s=i&&i.userAgent;t.exports=s?String(s):""},9519:function(t,e,n){"use strict";var i,s,o=n(4576),r=n(2839),a=o.process,c=o.Deno,l=a&&a.versions||c&&c.version,u=l&&l.v8;u&&(s=(i=u.split("."))[0]>0&&i[0]<4?1:+(i[0]+i[1])),!s&&r&&(!(i=r.match(/Edge\/(\d+)/))||i[1]>=74)&&(i=r.match(/Chrome\/(\d+)/))&&(s=+i[1]),t.exports=s},6518:function(t,e,n){"use strict";var i=n(4576),s=n(7347).f,o=n(6699),r=n(6840),a=n(9433),c=n(7740),l=n(2796);t.exports=function(t,e){var n,u,d,h,p,f=t.target,m=t.global,g=t.stat;if(n=m?i:g?i[f]||a(f,{}):i[f]&&i[f].prototype)for(u in e){if(h=e[u],d=t.dontCallGetSet?(p=s(n,u))&&p.value:n[u],!l(m?u:f+(g?".":"#")+u,t.forced)&&void 0!==d){if(typeof h==typeof d)continue;c(h,d)}(t.sham||d&&d.sham)&&o(h,"sham",!0),r(n,u,h,t)}}},9039:function(t){"use strict";t.exports=function(t){try{return!!t()}catch(t){return!0}}},616:function(t,e,n){"use strict";var i=n(9039);t.exports=!i((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")}))},9565:function(t,e,n){"use strict";var i=n(616),s=Function.prototype.call;t.exports=i?s.bind(s):function(){return s.apply(s,arguments)}},350:function(t,e,n){"use strict";var i=n(3724),s=n(9297),o=Function.prototype,r=i&&Object.getOwnPropertyDescriptor,a=s(o,"name"),c=a&&"something"===function(){}.name,l=a&&(!i||i&&r(o,"name").configurable);t.exports={EXISTS:a,PROPER:c,CONFIGURABLE:l}},6706:function(t,e,n){"use strict";var i=n(9504),s=n(9306);t.exports=function(t,e,n){try{return i(s(Object.getOwnPropertyDescriptor(t,e)[n]))}catch(t){}}},9504:function(t,e,n){"use strict";var i=n(616),s=Function.prototype,o=s.call,r=i&&s.bind.bind(o,o);t.exports=i?r:function(t){return function(){return o.apply(t,arguments)}}},7751:function(t,e,n){"use strict";var i=n(4576),s=n(4901);t.exports=function(t,e){return arguments.length<2?(n=i[t],s(n)?n:void 0):i[t]&&i[t][e];var n}},1767:function(t){"use strict";t.exports=function(t){return{iterator:t,next:t.next,done:!1}}},5966:function(t,e,n){"use strict";var i=n(9306),s=n(4117);t.exports=function(t,e){var n=t[e];return s(n)?void 0:i(n)}},3789:function(t,e,n){"use strict";var i=n(9306),s=n(8551),o=n(9565),r=n(1291),a=n(1767),c="Invalid size",l=RangeError,u=TypeError,d=Math.max,h=function(t,e){this.set=t,this.size=d(e,0),this.has=i(t.has),this.keys=i(t.keys)};h.prototype={getIterator:function(){return a(s(o(this.keys,this.set)))},includes:function(t){return o(this.has,this.set,t)}},t.exports=function(t){s(t);var e=+t.size;if(e!=e)throw new u(c);var n=r(e);if(n<0)throw new l(c);return new h(t,n)}},4576:function(t,e,n){"use strict";var i=function(t){return t&&t.Math===Math&&t};t.exports=i("object"==typeof globalThis&&globalThis)||i("object"==typeof window&&window)||i("object"==typeof self&&self)||i("object"==typeof n.g&&n.g)||i("object"==typeof this&&this)||function(){return this}()||Function("return this")()},9297:function(t,e,n){"use strict";var i=n(9504),s=n(8981),o=i({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,e){return o(s(t),e)}},421:function(t){"use strict";t.exports={}},5917:function(t,e,n){"use strict";var i=n(3724),s=n(9039),o=n(4055);t.exports=!i&&!s((function(){return 7!==Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a}))},7055:function(t,e,n){"use strict";var i=n(9504),s=n(9039),o=n(2195),r=Object,a=i("".split);t.exports=s((function(){return!r("z").propertyIsEnumerable(0)}))?function(t){return"String"===o(t)?a(t,""):r(t)}:r},3706:function(t,e,n){"use strict";var i=n(9504),s=n(4901),o=n(7629),r=i(Function.toString);s(o.inspectSource)||(o.inspectSource=function(t){return r(t)}),t.exports=o.inspectSource},1181:function(t,e,n){"use strict";var i,s,o,r=n(8622),a=n(4576),c=n(34),l=n(6699),u=n(9297),d=n(7629),h=n(6119),p=n(421),f="Object already initialized",m=a.TypeError,g=a.WeakMap;if(r||d.state){var v=d.state||(d.state=new g);v.get=v.get,v.has=v.has,v.set=v.set,i=function(t,e){if(v.has(t))throw new m(f);return e.facade=t,v.set(t,e),e},s=function(t){return v.get(t)||{}},o=function(t){return v.has(t)}}else{var b=h("state");p[b]=!0,i=function(t,e){if(u(t,b))throw new m(f);return e.facade=t,l(t,b,e),e},s=function(t){return u(t,b)?t[b]:{}},o=function(t){return u(t,b)}}t.exports={set:i,get:s,has:o,enforce:function(t){return o(t)?s(t):i(t,{})},getterFor:function(t){return function(e){var n;if(!c(e)||(n=s(e)).type!==t)throw new m("Incompatible receiver, "+t+" required");return n}}}},4376:function(t,e,n){"use strict";var i=n(2195);t.exports=Array.isArray||function(t){return"Array"===i(t)}},4901:function(t){"use strict";var e="object"==typeof document&&document.all;t.exports=void 0===e&&void 0!==e?function(t){return"function"==typeof t||t===e}:function(t){return"function"==typeof t}},2796:function(t,e,n){"use strict";var i=n(9039),s=n(4901),o=/#|\.prototype\./,r=function(t,e){var n=c[a(t)];return n===u||n!==l&&(s(e)?i(e):!!e)},a=r.normalize=function(t){return String(t).replace(o,".").toLowerCase()},c=r.data={},l=r.NATIVE="N",u=r.POLYFILL="P";t.exports=r},4117:function(t){"use strict";t.exports=function(t){return null==t}},34:function(t,e,n){"use strict";var i=n(4901);t.exports=function(t){return"object"==typeof t?null!==t:i(t)}},6395:function(t){"use strict";t.exports=!1},757:function(t,e,n){"use strict";var i=n(7751),s=n(4901),o=n(1625),r=n(7040),a=Object;t.exports=r?function(t){return"symbol"==typeof t}:function(t){var e=i("Symbol");return s(e)&&o(e.prototype,a(t))}},507:function(t,e,n){"use strict";var i=n(9565);t.exports=function(t,e,n){for(var s,o,r=n?t:t.iterator,a=t.next;!(s=i(a,r)).done;)if(void 0!==(o=e(s.value)))return o}},9539:function(t,e,n){"use strict";var i=n(9565),s=n(8551),o=n(5966);t.exports=function(t,e,n){var r,a;s(t);try{if(!(r=o(t,"return"))){if("throw"===e)throw n;return n}r=i(r,t)}catch(t){a=!0,r=t}if("throw"===e)throw n;if(a)throw r;return s(r),n}},6198:function(t,e,n){"use strict";var i=n(8014);t.exports=function(t){return i(t.length)}},283:function(t,e,n){"use strict";var i=n(9504),s=n(9039),o=n(4901),r=n(9297),a=n(3724),c=n(350).CONFIGURABLE,l=n(3706),u=n(1181),d=u.enforce,h=u.get,p=String,f=Object.defineProperty,m=i("".slice),g=i("".replace),v=i([].join),b=a&&!s((function(){return 8!==f((function(){}),"length",{value:8}).length})),y=String(String).split("String"),w=t.exports=function(t,e,n){"Symbol("===m(p(e),0,7)&&(e="["+g(p(e),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),n&&n.getter&&(e="get "+e),n&&n.setter&&(e="set "+e),(!r(t,"name")||c&&t.name!==e)&&(a?f(t,"name",{value:e,configurable:!0}):t.name=e),b&&n&&r(n,"arity")&&t.length!==n.arity&&f(t,"length",{value:n.arity});try{n&&r(n,"constructor")&&n.constructor?a&&f(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var i=d(t);return r(i,"source")||(i.source=v(y,"string"==typeof e?e:"")),t};Function.prototype.toString=w((function(){return o(this)&&h(this).source||l(this)}),"toString")},741:function(t){"use strict";var e=Math.ceil,n=Math.floor;t.exports=Math.trunc||function(t){var i=+t;return(i>0?n:e)(i)}},4913:function(t,e,n){"use strict";var i=n(3724),s=n(5917),o=n(8686),r=n(8551),a=n(6969),c=TypeError,l=Object.defineProperty,u=Object.getOwnPropertyDescriptor,d="enumerable",h="configurable",p="writable";e.f=i?o?function(t,e,n){if(r(t),e=a(e),r(n),"function"==typeof t&&"prototype"===e&&"value"in n&&p in n&&!n[p]){var i=u(t,e);i&&i[p]&&(t[e]=n.value,n={configurable:h in n?n[h]:i[h],enumerable:d in n?n[d]:i[d],writable:!1})}return l(t,e,n)}:l:function(t,e,n){if(r(t),e=a(e),r(n),s)try{return l(t,e,n)}catch(t){}if("get"in n||"set"in n)throw new c("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},7347:function(t,e,n){"use strict";var i=n(3724),s=n(9565),o=n(8773),r=n(6980),a=n(5397),c=n(6969),l=n(9297),u=n(5917),d=Object.getOwnPropertyDescriptor;e.f=i?d:function(t,e){if(t=a(t),e=c(e),u)try{return d(t,e)}catch(t){}if(l(t,e))return r(!s(o.f,t,e),t[e])}},8480:function(t,e,n){"use strict";var i=n(1828),s=n(8727).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return i(t,s)}},3717:function(t,e){"use strict";e.f=Object.getOwnPropertySymbols},1625:function(t,e,n){"use strict";var i=n(9504);t.exports=i({}.isPrototypeOf)},1828:function(t,e,n){"use strict";var i=n(9504),s=n(9297),o=n(5397),r=n(9617).indexOf,a=n(421),c=i([].push);t.exports=function(t,e){var n,i=o(t),l=0,u=[];for(n in i)!s(a,n)&&s(i,n)&&c(u,n);for(;e.length>l;)s(i,n=e[l++])&&(~r(u,n)||c(u,n));return u}},8773:function(t,e){"use strict";var n={}.propertyIsEnumerable,i=Object.getOwnPropertyDescriptor,s=i&&!n.call({1:2},1);e.f=s?function(t){var e=i(this,t);return!!e&&e.enumerable}:n},4270:function(t,e,n){"use strict";var i=n(9565),s=n(4901),o=n(34),r=TypeError;t.exports=function(t,e){var n,a;if("string"===e&&s(n=t.toString)&&!o(a=i(n,t)))return a;if(s(n=t.valueOf)&&!o(a=i(n,t)))return a;if("string"!==e&&s(n=t.toString)&&!o(a=i(n,t)))return a;throw new r("Can't convert object to primitive value")}},5031:function(t,e,n){"use strict";var i=n(7751),s=n(9504),o=n(8480),r=n(3717),a=n(8551),c=s([].concat);t.exports=i("Reflect","ownKeys")||function(t){var e=o.f(a(t)),n=r.f;return n?c(e,n(t)):e}},7750:function(t,e,n){"use strict";var i=n(4117),s=TypeError;t.exports=function(t){if(i(t))throw new s("Can't call method on "+t);return t}},9286:function(t,e,n){"use strict";var i=n(4402),s=n(8469),o=i.Set,r=i.add;t.exports=function(t){var e=new o;return s(t,(function(t){r(e,t)})),e}},3440:function(t,e,n){"use strict";var i=n(7080),s=n(4402),o=n(9286),r=n(5170),a=n(3789),c=n(8469),l=n(507),u=s.has,d=s.remove;t.exports=function(t){var e=i(this),n=a(t),s=o(e);return r(e)<=n.size?c(e,(function(t){n.includes(t)&&d(s,t)})):l(n.getIterator(),(function(t){u(e,t)&&d(s,t)})),s}},4402:function(t,e,n){"use strict";var i=n(9504),s=Set.prototype;t.exports={Set:Set,add:i(s.add),has:i(s.has),remove:i(s.delete),proto:s}},8750:function(t,e,n){"use strict";var i=n(7080),s=n(4402),o=n(5170),r=n(3789),a=n(8469),c=n(507),l=s.Set,u=s.add,d=s.has;t.exports=function(t){var e=i(this),n=r(t),s=new l;return o(e)>n.size?c(n.getIterator(),(function(t){d(e,t)&&u(s,t)})):a(e,(function(t){n.includes(t)&&u(s,t)})),s}},4449:function(t,e,n){"use strict";var i=n(7080),s=n(4402).has,o=n(5170),r=n(3789),a=n(8469),c=n(507),l=n(9539);t.exports=function(t){var e=i(this),n=r(t);if(o(e)<=n.size)return!1!==a(e,(function(t){if(n.includes(t))return!1}),!0);var u=n.getIterator();return!1!==c(u,(function(t){if(s(e,t))return l(u,"normal",!1)}))}},3838:function(t,e,n){"use strict";var i=n(7080),s=n(5170),o=n(8469),r=n(3789);t.exports=function(t){var e=i(this),n=r(t);return!(s(e)>n.size)&&!1!==o(e,(function(t){if(!n.includes(t))return!1}),!0)}},8527:function(t,e,n){"use strict";var i=n(7080),s=n(4402).has,o=n(5170),r=n(3789),a=n(507),c=n(9539);t.exports=function(t){var e=i(this),n=r(t);if(o(e)<n.size)return!1;var l=n.getIterator();return!1!==a(l,(function(t){if(!s(e,t))return c(l,"normal",!1)}))}},8469:function(t,e,n){"use strict";var i=n(9504),s=n(507),o=n(4402),r=o.Set,a=o.proto,c=i(a.forEach),l=i(a.keys),u=l(new r).next;t.exports=function(t,e,n){return n?s({iterator:l(t),next:u},e):c(t,e)}},4916:function(t,e,n){"use strict";var i=n(7751),s=function(t){return{size:t,has:function(){return!1},keys:function(){return{next:function(){return{done:!0}}}}}};t.exports=function(t){var e=i("Set");try{(new e)[t](s(0));try{return(new e)[t](s(-1)),!1}catch(t){return!0}}catch(t){return!1}}},5170:function(t,e,n){"use strict";var i=n(6706),s=n(4402);t.exports=i(s.proto,"size","get")||function(t){return t.size}},3650:function(t,e,n){"use strict";var i=n(7080),s=n(4402),o=n(9286),r=n(3789),a=n(507),c=s.add,l=s.has,u=s.remove;t.exports=function(t){var e=i(this),n=r(t).getIterator(),s=o(e);return a(n,(function(t){l(e,t)?u(s,t):c(s,t)})),s}},4204:function(t,e,n){"use strict";var i=n(7080),s=n(4402).add,o=n(9286),r=n(3789),a=n(507);t.exports=function(t){var e=i(this),n=r(t).getIterator(),c=o(e);return a(n,(function(t){s(c,t)})),c}},6119:function(t,e,n){"use strict";var i=n(5745),s=n(3392),o=i("keys");t.exports=function(t){return o[t]||(o[t]=s(t))}},7629:function(t,e,n){"use strict";var i=n(6395),s=n(4576),o=n(9433),r="__core-js_shared__",a=t.exports=s[r]||o(r,{});(a.versions||(a.versions=[])).push({version:"3.38.1",mode:i?"pure":"global",copyright:"© 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.38.1/LICENSE",source:"https://github.com/zloirock/core-js"})},5745:function(t,e,n){"use strict";var i=n(7629);t.exports=function(t,e){return i[t]||(i[t]=e||{})}},4495:function(t,e,n){"use strict";var i=n(9519),s=n(9039),o=n(4576).String;t.exports=!!Object.getOwnPropertySymbols&&!s((function(){var t=Symbol("symbol detection");return!o(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&i&&i<41}))},5610:function(t,e,n){"use strict";var i=n(1291),s=Math.max,o=Math.min;t.exports=function(t,e){var n=i(t);return n<0?s(n+e,0):o(n,e)}},5397:function(t,e,n){"use strict";var i=n(7055),s=n(7750);t.exports=function(t){return i(s(t))}},1291:function(t,e,n){"use strict";var i=n(741);t.exports=function(t){var e=+t;return e!=e||0===e?0:i(e)}},8014:function(t,e,n){"use strict";var i=n(1291),s=Math.min;t.exports=function(t){var e=i(t);return e>0?s(e,9007199254740991):0}},8981:function(t,e,n){"use strict";var i=n(7750),s=Object;t.exports=function(t){return s(i(t))}},2777:function(t,e,n){"use strict";var i=n(9565),s=n(34),o=n(757),r=n(5966),a=n(4270),c=n(8227),l=TypeError,u=c("toPrimitive");t.exports=function(t,e){if(!s(t)||o(t))return t;var n,c=r(t,u);if(c){if(void 0===e&&(e="default"),n=i(c,t,e),!s(n)||o(n))return n;throw new l("Can't convert object to primitive value")}return void 0===e&&(e="number"),a(t,e)}},6969:function(t,e,n){"use strict";var i=n(2777),s=n(757);t.exports=function(t){var e=i(t,"string");return s(e)?e:e+""}},2140:function(t,e,n){"use strict";var i={};i[n(8227)("toStringTag")]="z",t.exports="[object z]"===String(i)},655:function(t,e,n){"use strict";var i=n(6955),s=String;t.exports=function(t){if("Symbol"===i(t))throw new TypeError("Cannot convert a Symbol value to a string");return s(t)}},6823:function(t){"use strict";var e=String;t.exports=function(t){try{return e(t)}catch(t){return"Object"}}},3392:function(t,e,n){"use strict";var i=n(9504),s=0,o=Math.random(),r=i(1..toString);t.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+r(++s+o,36)}},7040:function(t,e,n){"use strict";var i=n(4495);t.exports=i&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},8686:function(t,e,n){"use strict";var i=n(3724),s=n(9039);t.exports=i&&s((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},2812:function(t){"use strict";var e=TypeError;t.exports=function(t,n){if(t<n)throw new e("Not enough arguments");return t}},8622:function(t,e,n){"use strict";var i=n(4576),s=n(4901),o=i.WeakMap;t.exports=s(o)&&/native code/.test(String(o))},8227:function(t,e,n){"use strict";var i=n(4576),s=n(5745),o=n(9297),r=n(3392),a=n(4495),c=n(7040),l=i.Symbol,u=s("wks"),d=c?l.for||l:l&&l.withoutSetter||r;t.exports=function(t){return o(u,t)||(u[t]=a&&o(l,t)?l[t]:d("Symbol."+t)),u[t]}},4114:function(t,e,n){"use strict";var i=n(6518),s=n(8981),o=n(6198),r=n(4527),a=n(6837);i({target:"Array",proto:!0,arity:1,forced:n(9039)((function(){return 4294967297!==[].push.call({length:4294967296},1)}))||!function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(t){return t instanceof TypeError}}()},{push:function(t){var e=s(this),n=o(e),i=arguments.length;a(n+i);for(var c=0;c<i;c++)e[n]=arguments[c],n++;return r(e,n),n}})},7642:function(t,e,n){"use strict";var i=n(6518),s=n(3440);i({target:"Set",proto:!0,real:!0,forced:!n(4916)("difference")},{difference:s})},8004:function(t,e,n){"use strict";var i=n(6518),s=n(9039),o=n(8750);i({target:"Set",proto:!0,real:!0,forced:!n(4916)("intersection")||s((function(){return"3,2"!==String(Array.from(new Set([1,2,3]).intersection(new Set([3,2]))))}))},{intersection:o})},3853:function(t,e,n){"use strict";var i=n(6518),s=n(4449);i({target:"Set",proto:!0,real:!0,forced:!n(4916)("isDisjointFrom")},{isDisjointFrom:s})},5876:function(t,e,n){"use strict";var i=n(6518),s=n(3838);i({target:"Set",proto:!0,real:!0,forced:!n(4916)("isSubsetOf")},{isSubsetOf:s})},2475:function(t,e,n){"use strict";var i=n(6518),s=n(8527);i({target:"Set",proto:!0,real:!0,forced:!n(4916)("isSupersetOf")},{isSupersetOf:s})},5024:function(t,e,n){"use strict";var i=n(6518),s=n(3650);i({target:"Set",proto:!0,real:!0,forced:!n(4916)("symmetricDifference")},{symmetricDifference:s})},1698:function(t,e,n){"use strict";var i=n(6518),s=n(4204);i({target:"Set",proto:!0,real:!0,forced:!n(4916)("union")},{union:s})},4603:function(t,e,n){"use strict";var i=n(6840),s=n(9504),o=n(655),r=n(2812),a=URLSearchParams,c=a.prototype,l=s(c.append),u=s(c.delete),d=s(c.forEach),h=s([].push),p=new a("a=1&a=2&b=3");p.delete("a",1),p.delete("b",void 0),p+""!="a=2"&&i(c,"delete",(function(t){var e=arguments.length,n=e<2?void 0:arguments[1];if(e&&void 0===n)return u(this,t);var i=[];d(this,(function(t,e){h(i,{key:e,value:t})})),r(e,1);for(var s,a=o(t),c=o(n),p=0,f=0,m=!1,g=i.length;p<g;)s=i[p++],m||s.key===a?(m=!0,u(this,s.key)):f++;for(;f<g;)(s=i[f++]).key===a&&s.value===c||l(this,s.key,s.value)}),{enumerable:!0,unsafe:!0})},7566:function(t,e,n){"use strict";var i=n(6840),s=n(9504),o=n(655),r=n(2812),a=URLSearchParams,c=a.prototype,l=s(c.getAll),u=s(c.has),d=new a("a=1");!d.has("a",2)&&d.has("a",void 0)||i(c,"has",(function(t){var e=arguments.length,n=e<2?void 0:arguments[1];if(e&&void 0===n)return u(this,t);var i=l(this,t);r(e,1);for(var s=o(n),a=0;a<i.length;)if(i[a++]===s)return!0;return!1}),{enumerable:!0,unsafe:!0})},8721:function(t,e,n){"use strict";var i=n(3724),s=n(9504),o=n(2106),r=URLSearchParams.prototype,a=s(r.forEach);i&&!("size"in r)&&o(r,"size",{get:function(){var t=0;return a(this,(function(){t++})),t},configurable:!0,enumerable:!0})},4693:function(t,e,n){"use strict";n.d(e,{T:function(){return i}});const i="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__},3741:function(t,e,n){"use strict";n.d(e,{_:function(){return c}});var i=n(2433);const s=n(9085).O;var o=n(179),r=n(4910);let a;function c(t){const e="history";(0,i.s5)(e,t),(0,i.AS)(e,l)}function l(){if(!function(){const t=s.chrome,e=t&&t.app&&t.app.runtime,n="history"in s&&!!s.history.pushState&&!!s.history.replaceState;return!e&&n}())return;const t=r.j.onpopstate;function e(t){return function(...e){const n=e.length>2?e[2]:void 0;if(n){const t=a,e=String(n);a=e;const s={from:t,to:e};(0,i.aj)("history",s)}return t.apply(this,e)}}r.j.onpopstate=function(...e){const n=r.j.location.href,s=a;a=n;const o={from:s,to:n};if((0,i.aj)("history",o),t)try{return t.apply(this,e)}catch(t){}},(0,o.GS)(r.j.history,"pushState",e),(0,o.GS)(r.j.history,"replaceState",e)}},5947:function(t,e,n){"use strict";n.d(e,{Er:function(){return a},Mn:function(){return c}});var i=n(2433),s=n(1305),o=n(6752),r=n(4910);const a="__sentry_xhr_v3__";function c(t){(0,i.s5)("xhr",t),(0,i.AS)("xhr",l)}function l(){if(!r.j.XMLHttpRequest)return;const t=XMLHttpRequest.prototype;t.open=new Proxy(t.open,{apply(t,e,n){const r=1e3*(0,s.zf)(),c=(0,o.Kg)(n[0])?n[0].toUpperCase():void 0,l=function(t){if((0,o.Kg)(t))return t;try{return t.toString()}catch(t){}}(n[1]);if(!c||!l)return t.apply(e,n);e[a]={method:c,url:l,request_headers:{}},"POST"===c&&l.match(/sentry_key/)&&(e.__sentry_own_request__=!0);const u=()=>{const t=e[a];if(t&&4===e.readyState){try{t.status_code=e.status}catch(t){}const n={endTimestamp:1e3*(0,s.zf)(),startTimestamp:r,xhr:e};(0,i.aj)("xhr",n)}};return"onreadystatechange"in e&&"function"==typeof e.onreadystatechange?e.onreadystatechange=new Proxy(e.onreadystatechange,{apply(t,e,n){return u(),t.apply(e,n)}}):e.addEventListener("readystatechange",u),e.setRequestHeader=new Proxy(e.setRequestHeader,{apply(t,e,n){const[i,s]=n,r=e[a];return r&&(0,o.Kg)(i)&&(0,o.Kg)(s)&&(r.request_headers[i.toLowerCase()]=s),t.apply(e,n)}}),t.apply(e,n)}}),t.send=new Proxy(t.send,{apply(t,e,n){const o=e[a];if(!o)return t.apply(e,n);void 0!==n[0]&&(o.body=n[0]);const r={startTimestamp:1e3*(0,s.zf)(),xhr:e};return(0,i.aj)("xhr",r),t.apply(e,n)}})}},4910:function(t,e,n){"use strict";n.d(e,{j:function(){return i}});const i=n(9085).O},9431:function(t,e,n){"use strict";n.d(e,{T:function(){return i}});const i="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__},452:function(t,e,n){"use strict";n.d(e,{LV:function(){return d},jN:function(){return u},jf:function(){return c}});var i=n(7968),s=n(4251),o=n(9085),r=n(179),a=n(9888);const c=o.O;let l=0;function u(){return l>0}function d(t,e={},n){if("function"!=typeof t)return t;try{const e=t.__sentry_wrapped__;if(e)return e;if((0,r.sp)(t))return t}catch(e){return t}const o=function(){const o=Array.prototype.slice.call(arguments);try{n&&"function"==typeof n&&n.apply(this,arguments);const i=o.map((t=>d(t,e)));return t.apply(this,i)}catch(t){throw l++,setTimeout((()=>{l--})),(0,i.v4)((n=>{n.addEventProcessor((t=>(e.mechanism&&((0,a.gO)(t,void 0,void 0),(0,a.M6)(t,e.mechanism)),t.extra={...t.extra,arguments:o},t))),(0,s.Cp)(t)})),t}};try{for(const e in t)Object.prototype.hasOwnProperty.call(t,e)&&(o[e]=t[e])}catch(t){}(0,r.pO)(o,t),(0,r.my)(t,"__sentry_wrapped__",o);try{Object.getOwnPropertyDescriptor(o,"name").configurable&&Object.defineProperty(o,"name",{get(){return t.name}})}catch(t){}return o}},9872:function(t,e,n){"use strict";n.d(e,{Ts:function(){return Qt}});var i=n(3932),s=n(9888),o=n(6013),r=n(6674);const a=[];function c(t){const e=t.defaultIntegrations||[],n=t.integrations;let i;e.forEach((t=>{t.isDefaultInstance=!0})),i=Array.isArray(n)?[...e,...n]:"function"==typeof n?(0,s.k9)(n(e)):e;const o=function(t){const e={};return t.forEach((t=>{const{name:n}=t,i=e[n];i&&!i.isDefaultInstance&&t.isDefaultInstance||(e[n]=t)})),Object.values(e)}(i),r=o.findIndex((t=>"Debug"===t.name));if(r>-1){const[t]=o.splice(r,1);o.push(t)}return o}function l(t,e){for(const n of e)n&&n.afterAllSetup&&n.afterAllSetup(t)}function u(t,e,n){if(n[e.name])r.T&&i.vF.log(`Integration skipped because it was already installed: ${e.name}`);else{if(n[e.name]=e,-1===a.indexOf(e.name)&&"function"==typeof e.setupOnce&&(e.setupOnce(),a.push(e.name)),e.setup&&"function"==typeof e.setup&&e.setup(t),"function"==typeof e.preprocessEvent){const n=e.preprocessEvent.bind(e);t.on("preprocessEvent",((e,i)=>n(e,i,t)))}if("function"==typeof e.processEvent){const n=e.processEvent.bind(e),i=Object.assign(((e,i)=>n(e,i,t)),{id:e.name});t.addEventProcessor(i)}r.T&&i.vF.log(`Integration installed: ${e.name}`)}}const d=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/,"undefined is not an object (evaluating 'a.L')",'can\'t redefine non-configurable property "solana"',"vv().getRestrictions is not a function. (In 'vv().getRestrictions(1,a)', 'vv().getRestrictions' is undefined)","Can't find variable: _AutofillCallbackHandler"],h=(t={})=>({name:"InboundFilters",processEvent(e,n,a){const c=a.getOptions(),l=function(t={},e={}){return{allowUrls:[...t.allowUrls||[],...e.allowUrls||[]],denyUrls:[...t.denyUrls||[],...e.denyUrls||[]],ignoreErrors:[...t.ignoreErrors||[],...e.ignoreErrors||[],...t.disableErrorDefaults?[]:d],ignoreTransactions:[...t.ignoreTransactions||[],...e.ignoreTransactions||[]],ignoreInternal:void 0===t.ignoreInternal||t.ignoreInternal}}(t,c);return function(t,e){return e.ignoreInternal&&function(t){try{return"SentryError"===t.exception.values[0].type}catch(t){}return!1}(t)?(r.T&&i.vF.warn(`Event dropped due to being internal Sentry Error.\nEvent: ${(0,s.$X)(t)}`),!0):function(t,e){return!(t.type||!e||!e.length)&&function(t){const e=[];let n;t.message&&e.push(t.message);try{n=t.exception.values[t.exception.values.length-1]}catch(t){}return n&&n.value&&(e.push(n.value),n.type&&e.push(`${n.type}: ${n.value}`)),e}(t).some((t=>(0,o.Xr)(t,e)))}(t,e.ignoreErrors)?(r.T&&i.vF.warn(`Event dropped due to being matched by \`ignoreErrors\` option.\nEvent: ${(0,s.$X)(t)}`),!0):function(t){return!t.type&&(!(!t.exception||!t.exception.values||0===t.exception.values.length)&&(!t.message&&!t.exception.values.some((t=>t.stacktrace||t.type&&"Error"!==t.type||t.value))))}(t)?(r.T&&i.vF.warn(`Event dropped due to not having an error message, error type or stacktrace.\nEvent: ${(0,s.$X)(t)}`),!0):function(t,e){if("transaction"!==t.type||!e||!e.length)return!1;const n=t.transaction;return!!n&&(0,o.Xr)(n,e)}(t,e.ignoreTransactions)?(r.T&&i.vF.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.\nEvent: ${(0,s.$X)(t)}`),!0):function(t,e){if(!e||!e.length)return!1;const n=p(t);return!!n&&(0,o.Xr)(n,e)}(t,e.denyUrls)?(r.T&&i.vF.warn(`Event dropped due to being matched by \`denyUrls\` option.\nEvent: ${(0,s.$X)(t)}.\nUrl: ${p(t)}`),!0):!function(t,e){if(!e||!e.length)return!0;const n=p(t);return!n||(0,o.Xr)(n,e)}(t,e.allowUrls)&&(r.T&&i.vF.warn(`Event dropped due to not being matched by \`allowUrls\` option.\nEvent: ${(0,s.$X)(t)}.\nUrl: ${p(t)}`),!0)}(e,l)?null:e}});function p(t){try{let e;try{e=t.exception.values[0].stacktrace.frames}catch(t){}return e?function(t=[]){for(let e=t.length-1;e>=0;e--){const n=t[e];if(n&&"<anonymous>"!==n.filename&&"[native code]"!==n.filename)return n.filename||null}return null}(e):null}catch(e){return r.T&&i.vF.error(`Cannot extract url for event ${(0,s.$X)(t)}`),null}}var f=n(179),m=n(7968);let g;const v=new WeakMap,b=()=>({name:"FunctionToString",setupOnce(){g=Function.prototype.toString;try{Function.prototype.toString=function(...t){const e=(0,f.sp)(this),n=v.has((0,m.KU)())&&void 0!==e?e:this;return g.apply(n,t)}}catch(t){}},setup(t){v.set(t,!0)}});var y=n(6453);const w=()=>{let t;return{name:"Dedupe",processEvent(e){if(e.type)return e;try{if(function(t,e){return!!e&&(!!function(t,e){const n=t.message,i=e.message;return!(!n&&!i)&&(!(n&&!i||!n&&i)&&(n===i&&(!!S(t,e)&&!!E(t,e))))}(t,e)||!!function(t,e){const n=_(e),i=_(t);return!(!n||!i)&&(n.type===i.type&&n.value===i.value&&(!!S(t,e)&&!!E(t,e)))}(t,e))}(e,t))return r.T&&i.vF.warn("Event dropped due to being a duplicate of previously captured event."),null}catch(t){}return t=e}}};function E(t,e){let n=(0,y.RV)(t),i=(0,y.RV)(e);if(!n&&!i)return!0;if(n&&!i||!n&&i)return!1;if(i.length!==n.length)return!1;for(let t=0;t<i.length;t++){const e=i[t],s=n[t];if(e.filename!==s.filename||e.lineno!==s.lineno||e.colno!==s.colno||e.function!==s.function)return!1}return!0}function S(t,e){let n=t.fingerprint,i=e.fingerprint;if(!n&&!i)return!0;if(n&&!i||!n&&i)return!1;try{return!(n.join("")!==i.join(""))}catch(t){return!1}}function _(t){return t.exception&&t.exception.values&&t.exception.values[0]}var x=n(4251),T=n(2544),C=n(3741),O=n(1447),A=n(6752),P=n(1114),L=n(4984);class I extends Error{constructor(t,e="warn"){super(t),this.message=t,this.name=new.target.prototype.constructor.name,Object.setPrototypeOf(this,new.target.prototype),this.logLevel=e}}var k=n(1305);var D=n(5330),N=n(9328),M=n(1158),R=n(1773),j=n(204);const F="Not capturing exception because it's already been captured.";class z{constructor(t){if(this._options=t,this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],t.dsn?this._dsn=(0,O.AD)(t.dsn):r.T&&i.vF.warn("No DSN provided, client will not send events."),this._dsn){const i=(e=this._dsn,n=t.tunnel,s=t._metadata?t._metadata.sdk:void 0,n||`${function(t){return`${function(t){const e=t.protocol?`${t.protocol}:`:"",n=t.port?`:${t.port}`:"";return`${e}//${t.host}${n}${t.path?`/${t.path}`:""}/api/`}(t)}${t.projectId}/envelope/`}(e)}?${function(t,e){return(0,f.u4)({sentry_key:t.publicKey,sentry_version:"7",...e&&{sentry_client:`${e.name}/${e.version}`}})}(e,s)}`);this._transport=t.transport({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...t.transportOptions,url:i})}var e,n,s}captureException(t,e,n){const o=(0,s.eJ)();if((0,s.GR)(t))return r.T&&i.vF.log(F),o;const a={event_id:o,...e};return this._process(this.eventFromException(t,a).then((t=>this._captureEvent(t,a,n)))),a.event_id}captureMessage(t,e,n,i){const o={event_id:(0,s.eJ)(),...n},r=(0,A.NF)(t)?t:String(t),a=(0,A.sO)(t)?this.eventFromMessage(r,e,o):this.eventFromException(t,o);return this._process(a.then((t=>this._captureEvent(t,o,i)))),o.event_id}captureEvent(t,e,n){const o=(0,s.eJ)();if(e&&e.originalException&&(0,s.GR)(e.originalException))return r.T&&i.vF.log(F),o;const a={event_id:o,...e},c=(t.sdkProcessingMetadata||{}).capturedSpanScope;return this._process(this._captureEvent(t,a,c||n)),a.event_id}captureSession(t){"string"!=typeof t.release?r.T&&i.vF.warn("Discarded session because of missing or non-string release"):(this.sendSession(t),(0,N.qO)(t,{init:!1}))}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}flush(t){const e=this._transport;return e?(this.emit("flush"),this._isClientDoneProcessing(t).then((n=>e.flush(t).then((t=>n&&t))))):(0,P.XW)(!0)}close(t){return this.flush(t).then((t=>(this.getOptions().enabled=!1,this.emit("close"),t)))}getEventProcessors(){return this._eventProcessors}addEventProcessor(t){this._eventProcessors.push(t)}init(){(this._isEnabled()||this._options.integrations.some((({name:t})=>t.startsWith("Spotlight"))))&&this._setupIntegrations()}getIntegrationByName(t){return this._integrations[t]}addIntegration(t){const e=this._integrations[t.name];u(this,t,this._integrations),e||l(this,[t])}sendEvent(t,e={}){this.emit("beforeSendEvent",t,e);let n=(0,D.V7)(t,this._dsn,this._options._metadata,this._options.tunnel);for(const t of e.attachments||[])n=(0,L.W3)(n,(0,L.bm)(t));const i=this.sendEnvelope(n);i&&i.then((e=>this.emit("afterSendEvent",t,e)),null)}sendSession(t){const e=(0,D.LE)(t,this._dsn,this._options._metadata,this._options.tunnel);this.sendEnvelope(e)}recordDroppedEvent(t,e,n){if(this._options.sendClientReports){const s="number"==typeof n?n:1,o=`${t}:${e}`;r.T&&i.vF.log(`Recording outcome: "${o}"${s>1?` (${s} times)`:""}`),this._outcomes[o]=(this._outcomes[o]||0)+s}}on(t,e){const n=this._hooks[t]=this._hooks[t]||[];return n.push(e),()=>{const t=n.indexOf(e);t>-1&&n.splice(t,1)}}emit(t,...e){const n=this._hooks[t];n&&n.forEach((t=>t(...e)))}sendEnvelope(t){return this.emit("beforeEnvelope",t),this._isEnabled()&&this._transport?this._transport.send(t).then(null,(t=>(r.T&&i.vF.error("Error while sending event:",t),t))):(r.T&&i.vF.error("Transport disabled"),(0,P.XW)({}))}_setupIntegrations(){const{integrations:t}=this._options;this._integrations=function(t,e){const n={};return e.forEach((e=>{e&&u(t,e,n)})),n}(this,t),l(this,t)}_updateSessionFromEvent(t,e){let n=!1,i=!1;const s=e.exception&&e.exception.values;if(s){i=!0;for(const t of s){const e=t.mechanism;if(e&&!1===e.handled){n=!0;break}}}const o="ok"===t.status;(o&&0===t.errors||o&&n)&&((0,N.qO)(t,{...n&&{status:"crashed"},errors:t.errors||Number(i||n)}),this.captureSession(t))}_isClientDoneProcessing(t){return new P.T2((e=>{let n=0;const i=setInterval((()=>{0==this._numProcessing?(clearInterval(i),e(!0)):(n+=1,t&&n>=t&&(clearInterval(i),e(!1)))}),1)}))}_isEnabled(){return!1!==this.getOptions().enabled&&void 0!==this._transport}_prepareEvent(t,e,n,i=(0,m.rm)()){const s=this.getOptions(),o=Object.keys(this._integrations);return!e.integrations&&o.length>0&&(e.integrations=o),this.emit("preprocessEvent",t,e),t.type||i.setLastEventId(t.event_id||e.event_id),(0,j.mG)(s,t,e,n,this,i).then((t=>{if(null===t)return t;const e={...i.getPropagationContext(),...n?n.getPropagationContext():void 0};if((!t.contexts||!t.contexts.trace)&&e){const{traceId:n,spanId:i,parentSpanId:s,dsc:o}=e;t.contexts={trace:(0,f.Ce)({trace_id:n,span_id:i,parent_span_id:s}),...t.contexts};const r=o||(0,M.lF)(n,this);t.sdkProcessingMetadata={dynamicSamplingContext:r,...t.sdkProcessingMetadata}}return t}))}_captureEvent(t,e={},n){return this._processEvent(t,e,n).then((t=>t.event_id),(t=>{if(r.T){const e=t;"log"===e.logLevel?i.vF.log(e.message):i.vF.warn(e)}}))}_processEvent(t,e,n){const i=this.getOptions(),{sampleRate:s}=i,o=$(t),r=B(t),a=t.type||"error",c=`before send for type \`${a}\``,l=void 0===s?void 0:(0,R.i)(s);if(r&&"number"==typeof l&&Math.random()>l)return this.recordDroppedEvent("sample_rate","error",t),(0,P.xg)(new I(`Discarding event because it's not included in the random sample (sampling rate = ${s})`,"log"));const u="replay_event"===a?"replay":a,d=(t.sdkProcessingMetadata||{}).capturedSpanIsolationScope;return this._prepareEvent(t,e,n,d).then((n=>{if(null===n)throw this.recordDroppedEvent("event_processor",u,t),new I("An event processor returned `null`, will not send event.","log");if(e.data&&!0===e.data.__sentry__)return n;const s=function(t,e,n,i){const{beforeSend:s,beforeSendTransaction:o,beforeSendSpan:r}=e;if(B(n)&&s)return s(n,i);if($(n)){if(n.spans&&r){const e=[];for(const i of n.spans){const n=r(i);n?e.push(n):t.recordDroppedEvent("before_send","span")}n.spans=e}if(o){if(n.spans){const t=n.spans.length;n.sdkProcessingMetadata={...n.sdkProcessingMetadata,spanCountBeforeProcessing:t}}return o(n,i)}}return n}(this,i,n,e);return function(t,e){const n=`${e} must return \`null\` or a valid event.`;if((0,A.Qg)(t))return t.then((t=>{if(!(0,A.Qd)(t)&&null!==t)throw new I(n);return t}),(t=>{throw new I(`${e} rejected with ${t}`)}));if(!(0,A.Qd)(t)&&null!==t)throw new I(n);return t}(s,c)})).then((i=>{if(null===i){if(this.recordDroppedEvent("before_send",u,t),o){const e=1+(t.spans||[]).length;this.recordDroppedEvent("before_send","span",e)}throw new I(`${c} returned \`null\`, will not send event.`,"log")}const s=n&&n.getSession();if(!o&&s&&this._updateSessionFromEvent(s,i),o){const t=(i.sdkProcessingMetadata&&i.sdkProcessingMetadata.spanCountBeforeProcessing||0)-(i.spans?i.spans.length:0);t>0&&this.recordDroppedEvent("before_send","span",t)}const r=i.transaction_info;if(o&&r&&i.transaction!==t.transaction){const t="custom";i.transaction_info={...r,source:t}}return this.sendEvent(i,e),i})).then(null,(t=>{if(t instanceof I)throw t;throw this.captureException(t,{data:{__sentry__:!0},originalException:t}),new I(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: ${t}`)}))}_process(t){this._numProcessing++,t.then((t=>(this._numProcessing--,t)),(t=>(this._numProcessing--,t)))}_clearOutcomes(){const t=this._outcomes;return this._outcomes={},Object.entries(t).map((([t,e])=>{const[n,i]=t.split(":");return{reason:n,category:i,quantity:e}}))}_flushOutcomes(){r.T&&i.vF.log("Flushing outcomes...");const t=this._clearOutcomes();if(0===t.length)return void(r.T&&i.vF.log("No outcomes to send"));if(!this._dsn)return void(r.T&&i.vF.log("No dsn provided, will not send outcomes"));r.T&&i.vF.log("Sending outcomes:",t);const e=function(t,e){const n=[{type:"client_report"},{timestamp:(0,k.lu)(),discarded_events:t}];return(0,L.h4)(e?{dsn:e}:{},[n])}(t,this._options.tunnel&&(0,O.SB)(this._dsn));this.sendEnvelope(e)}}function B(t){return void 0===t.type}function $(t){return"transaction"===t.type}var H=n(8074),U=n(9431),W=n(6845);function q(t,e){const n=G(t,e),i={type:e&&e.name,value:K(e)};return n.length&&(i.stacktrace={frames:n}),void 0===i.type&&""===i.value&&(i.value="Unrecoverable error caught"),i}function V(t,e){return{exception:{values:[q(t,e)]}}}function G(t,e){const n=e.stacktrace||e.stack||"",i=function(t){return t&&X.test(t.message)?1:0}(e),s=function(t){return"number"==typeof t.framesToPop?t.framesToPop:0}(e);try{return t(n,i,s)}catch(t){}return[]}const X=/Minified React error #\d+;/i;function K(t){const e=t&&t.message;return e?e.error&&"string"==typeof e.error.message?e.error.message:e:"No error message"}function Y(t,e,n,i,o){let r;if((0,A.T2)(e)&&e.error)return V(t,e.error);if((0,A.BD)(e)||(0,A.W6)(e)){const o=e;if("stack"in e)r=V(t,e);else{const e=o.name||((0,A.BD)(o)?"DOMError":"DOMException"),a=o.message?`${e}: ${o.message}`:e;r=J(t,a,n,i),(0,s.gO)(r,a)}return"code"in o&&(r.tags={...r.tags,"DOMException.code":`${o.code}`}),r}return(0,A.bJ)(e)?V(t,e):(0,A.Qd)(e)||(0,A.xH)(e)?(r=function(t,e,n,i){const s=(0,m.KU)(),o=s&&s.getOptions().normalizeDepth,r=function(t){for(const e in t)if(Object.prototype.hasOwnProperty.call(t,e)){const n=t[e];if(n instanceof Error)return n}}(e),a={__serialized__:(0,W.cd)(e,o)};if(r)return{exception:{values:[q(t,r)]},extra:a};const c={exception:{values:[{type:(0,A.xH)(e)?e.constructor.name:i?"UnhandledRejection":"Error",value:Z(e,{isUnhandledRejection:i})}]},extra:a};if(n){const e=G(t,n);e.length&&(c.exception.values[0].stacktrace={frames:e})}return c}(t,e,n,o),(0,s.M6)(r,{synthetic:!0}),r):(r=J(t,e,n,i),(0,s.gO)(r,`${e}`,void 0),(0,s.M6)(r,{synthetic:!0}),r)}function J(t,e,n,i){const s={};if(i&&n){const i=G(t,n);i.length&&(s.exception={values:[{value:e,stacktrace:{frames:i}}]})}if((0,A.NF)(e)){const{__sentry_template_string__:t,__sentry_template_values__:n}=e;return s.logentry={message:t,params:n},s}return s.message=e,s}function Z(t,{isUnhandledRejection:e}){const n=(0,f.HF)(t),i=e?"promise rejection":"exception";return(0,A.T2)(t)?`Event \`ErrorEvent\` captured as ${i} with message \`${t.message}\``:(0,A.xH)(t)?`Event \`${function(t){try{const e=Object.getPrototypeOf(t);return e?e.constructor.name:void 0}catch(t){}}(t)}\` (type=${t.type}) captured as ${i}`:`Object captured as ${i} with keys: ${n}`}var Q=n(452);class tt extends z{constructor(t){const e={parentSpanIsAlwaysRootSpan:!0,...t};!function(t,e,n=[e],i="npm"){const s=t._metadata||{};s.sdk||(s.sdk={name:`sentry.javascript.${e}`,packages:n.map((t=>({name:`${i}:@sentry/${t}`,version:H.M}))),version:H.M}),t._metadata=s}(e,"browser",["browser"],Q.jf.SENTRY_SDK_SOURCE||"npm"),super(e),e.sendClientReports&&Q.jf.document&&Q.jf.document.addEventListener("visibilitychange",(()=>{"hidden"===Q.jf.document.visibilityState&&this._flushOutcomes()}))}eventFromException(t,e){return function(t,e,n,i){const o=Y(t,e,n&&n.syntheticException||void 0,i);return(0,s.M6)(o),o.level="error",n&&n.event_id&&(o.event_id=n.event_id),(0,P.XW)(o)}(this._options.stackParser,t,e,this._options.attachStacktrace)}eventFromMessage(t,e="info",n){return function(t,e,n="info",i,s){const o=J(t,e,i&&i.syntheticException||void 0,s);return o.level=n,i&&i.event_id&&(o.event_id=i.event_id),(0,P.XW)(o)}(this._options.stackParser,t,e,n,this._options.attachStacktrace)}captureUserFeedback(t){if(!this._isEnabled())return void(U.T&&i.vF.warn("SDK not enabled, will not capture user feedback."));const e=function(t,{metadata:e,tunnel:n,dsn:i}){const s={event_id:t.event_id,sent_at:(new Date).toISOString(),...e&&e.sdk&&{sdk:{name:e.sdk.name,version:e.sdk.version}},...!!n&&!!i&&{dsn:(0,O.SB)(i)}},o=function(t){return[{type:"user_report"},t]}(t);return(0,L.h4)(s,[o])}(t,{metadata:this.getSdkMetadata(),dsn:this.getDsn(),tunnel:this.getOptions().tunnel});this.sendEnvelope(e)}_prepareEvent(t,e,n){return t.platform=t.platform||"javascript",super._prepareEvent(t,e,n)}}var et=n(2433),nt=n(4910);const it=1e3;let st,ot,rt;function at(){if(!nt.j.document)return;const t=et.aj.bind(null,"dom"),e=ct(t,!0);nt.j.document.addEventListener("click",e,!1),nt.j.document.addEventListener("keypress",e,!1),["EventTarget","Node"].forEach((e=>{const n=nt.j[e]&&nt.j[e].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&((0,f.GS)(n,"addEventListener",(function(e){return function(n,i,s){if("click"===n||"keypress"==n)try{const i=this,o=i.__sentry_instrumentation_handlers__=i.__sentry_instrumentation_handlers__||{},r=o[n]=o[n]||{refCount:0};if(!r.handler){const i=ct(t);r.handler=i,e.call(this,n,i,s)}r.refCount++}catch(t){}return e.call(this,n,i,s)}})),(0,f.GS)(n,"removeEventListener",(function(t){return function(e,n,i){if("click"===e||"keypress"==e)try{const n=this,s=n.__sentry_instrumentation_handlers__||{},o=s[e];o&&(o.refCount--,o.refCount<=0&&(t.call(this,e,o.handler,i),o.handler=void 0,delete s[e]),0===Object.keys(s).length&&delete n.__sentry_instrumentation_handlers__)}catch(t){}return t.call(this,e,n,i)}})))}))}function ct(t,e=!1){return n=>{if(!n||n._sentryCaptured)return;const i=function(t){try{return t.target}catch(t){return null}}(n);if(function(t,e){return"keypress"===t&&(!e||!e.tagName||"INPUT"!==e.tagName&&"TEXTAREA"!==e.tagName&&!e.isContentEditable)}(n.type,i))return;(0,f.my)(n,"_sentryCaptured",!0),i&&!i._sentryId&&(0,f.my)(i,"_sentryId",(0,s.eJ)());const o="keypress"===n.type?"input":n.type;(function(t){if(t.type!==ot)return!1;try{if(!t.target||t.target._sentryId!==rt)return!1}catch(t){}return!0})(n)||(t({event:n,name:o,global:e}),ot=n.type,rt=i?i._sentryId:void 0),clearTimeout(st),st=nt.j.setTimeout((()=>{rt=void 0,ot=void 0}),it)}}var lt=n(5947);const ut=100;function dt(t,e){const n=(0,m.KU)(),s=(0,m.rm)();if(!n)return;const{beforeBreadcrumb:o=null,maxBreadcrumbs:r=ut}=n.getOptions();if(r<=0)return;const a={timestamp:(0,k.lu)(),...t},c=o?(0,i.pq)((()=>o(a,e))):a;null!==c&&(n.emit&&n.emit("beforeAddBreadcrumb",c,e),s.addBreadcrumb(c,r))}var ht=n(9085);function pt(){"console"in ht.O&&i.Ow.forEach((function(t){t in ht.O.console&&(0,f.GS)(ht.O.console,t,(function(e){return i.Z9[t]=e,function(...e){const n={args:e,level:t};(0,et.aj)("console",n);const s=i.Z9[t];s&&s.apply(ht.O.console,e)}}))}))}var ft=n(1098),mt=n(5166);const gt=["fatal","error","warning","log","info","debug"];var vt=n(8039);const bt=(t={})=>{const e={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...t};return{name:"Breadcrumbs",setup(t){var n;e.console&&function(t){const e="console";(0,et.s5)(e,t),(0,et.AS)(e,pt)}(function(t){return function(e){if((0,m.KU)()!==t)return;const n={category:"console",data:{arguments:e.args,logger:"console"},level:(i=e.level,"warn"===i?"warning":gt.includes(i)?i:"log"),message:(0,o.gt)(e.args," ")};var i;if("assert"===e.level){if(!1!==e.args[0])return;n.message=`Assertion failed: ${(0,o.gt)(e.args.slice(1)," ")||"console.assert"}`,n.data.arguments=e.args.slice(1)}dt(n,{input:e.args,level:e.level})}}(t)),e.dom&&(n=function(t,e){return function(n){if((0,m.KU)()!==t)return;let s,o,r="object"==typeof e?e.serializeAttribute:void 0,a="object"==typeof e&&"number"==typeof e.maxStringLength?e.maxStringLength:void 0;a&&a>1024&&(U.T&&i.vF.warn(`\`dom.maxStringLength\` cannot exceed 1024, but a value of ${a} was configured. Sentry will use 1024 instead.`),a=1024),"string"==typeof r&&(r=[r]);try{const t=n.event,e=function(t){return!!t&&!!t.target}(t)?t.target:t;s=(0,mt.Hd)(e,{keyAttrs:r,maxStringLength:a}),o=(0,mt.xE)(e)}catch(t){s="<unknown>"}if(0===s.length)return;const c={category:`ui.${n.name}`,message:s};o&&(c.data={"ui.component_name":o}),dt(c,{event:n.event,name:n.name,global:n.global})}}(t,e.dom),(0,et.s5)("dom",n),(0,et.AS)("dom",at)),e.xhr&&(0,lt.Mn)(function(t){return function(e){if((0,m.KU)()!==t)return;const{startTimestamp:n,endTimestamp:i}=e,s=e.xhr[lt.Er];if(!n||!i||!s)return;const{method:o,url:r,status_code:a,body:c}=s;dt({category:"xhr",data:{method:o,url:r,status_code:a},type:"http"},{xhr:e.xhr,input:c,startTimestamp:n,endTimestamp:i})}}(t)),e.fetch&&(0,ft.ur)(function(t){return function(e){if((0,m.KU)()!==t)return;const{startTimestamp:n,endTimestamp:i}=e;if(i&&(!e.fetchData.url.match(/sentry_key/)||"POST"!==e.fetchData.method))if(e.error)dt({category:"fetch",data:e.fetchData,level:"error",type:"http"},{data:e.error,input:e.args,startTimestamp:n,endTimestamp:i});else{const t=e.response;dt({category:"fetch",data:{...e.fetchData,status_code:t&&t.status},type:"http"},{input:e.args,response:t,startTimestamp:n,endTimestamp:i})}}}(t)),e.history&&(0,C._)(function(t){return function(e){if((0,m.KU)()!==t)return;let n=e.from,i=e.to;const s=(0,vt.Dl)(Q.jf.location.href);let o=n?(0,vt.Dl)(n):void 0;const r=(0,vt.Dl)(i);o&&o.path||(o=s),s.protocol===r.protocol&&s.host===r.host&&(i=r.relative),s.protocol===o.protocol&&s.host===o.host&&(n=o.relative),dt({category:"navigation",data:{from:n,to:i}})}}(t)),e.sentry&&t.on("beforeSendEvent",function(t){return function(e){(0,m.KU)()===t&&dt({category:"sentry."+("transaction"===e.type?"transaction":"event"),event_id:e.event_id,level:e.level,message:(0,s.$X)(e)},{event:e})}}(t))}}},yt=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","BroadcastChannel","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","SharedWorker","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"],wt=(t={})=>{const e={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...t};return{name:"BrowserApiErrors",setupOnce(){e.setTimeout&&(0,f.GS)(Q.jf,"setTimeout",Et),e.setInterval&&(0,f.GS)(Q.jf,"setInterval",Et),e.requestAnimationFrame&&(0,f.GS)(Q.jf,"requestAnimationFrame",St),e.XMLHttpRequest&&"XMLHttpRequest"in Q.jf&&(0,f.GS)(XMLHttpRequest.prototype,"send",_t);const t=e.eventTarget;t&&(Array.isArray(t)?t:yt).forEach(xt)}}};function Et(t){return function(...e){const n=e[0];return e[0]=(0,Q.LV)(n,{mechanism:{data:{function:(0,y.qQ)(t)},handled:!1,type:"instrument"}}),t.apply(this,e)}}function St(t){return function(e){return t.apply(this,[(0,Q.LV)(e,{mechanism:{data:{function:"requestAnimationFrame",handler:(0,y.qQ)(t)},handled:!1,type:"instrument"}})])}}function _t(t){return function(...e){const n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach((t=>{t in n&&"function"==typeof n[t]&&(0,f.GS)(n,t,(function(e){const n={mechanism:{data:{function:t,handler:(0,y.qQ)(e)},handled:!1,type:"instrument"}},i=(0,f.sp)(e);return i&&(n.mechanism.data.handler=(0,y.qQ)(i)),(0,Q.LV)(e,n)}))})),t.apply(this,e)}}function xt(t){const e=Q.jf,n=e[t]&&e[t].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&((0,f.GS)(n,"addEventListener",(function(e){return function(n,i,s){try{"function"==typeof i.handleEvent&&(i.handleEvent=(0,Q.LV)(i.handleEvent,{mechanism:{data:{function:"handleEvent",handler:(0,y.qQ)(i),target:t},handled:!1,type:"instrument"}}))}catch(t){}return e.apply(this,[n,(0,Q.LV)(i,{mechanism:{data:{function:"addEventListener",handler:(0,y.qQ)(i),target:t},handled:!1,type:"instrument"}}),s])}})),(0,f.GS)(n,"removeEventListener",(function(t){return function(e,n,i){const s=n;try{const n=s&&s.__sentry_wrapped__;n&&t.call(this,e,n,i)}catch(t){}return t.call(this,e,s,i)}})))}var Tt=n(7397),Ct=n(2221);const Ot=(t={})=>{const e={onerror:!0,onunhandledrejection:!0,...t};return{name:"GlobalHandlers",setupOnce(){Error.stackTraceLimit=50},setup(t){e.onerror&&(function(t){(0,Tt.L)((e=>{const{stackParser:n,attachStacktrace:i}=Pt();if((0,m.KU)()!==t||(0,Q.jN)())return;const{msg:s,url:o,line:r,column:a,error:c}=e,l=function(t,e,n,i){const s=t.exception=t.exception||{},o=s.values=s.values||[],r=o[0]=o[0]||{},a=r.stacktrace=r.stacktrace||{},c=a.frames=a.frames||[],l=isNaN(parseInt(i,10))?void 0:i,u=isNaN(parseInt(n,10))?void 0:n,d=(0,A.Kg)(e)&&e.length>0?e:(0,mt.$N)();return 0===c.length&&c.push({colno:l,filename:d,function:y.yF,in_app:!0,lineno:u}),t}(Y(n,c||s,void 0,i,!1),o,r,a);l.level="error",(0,x.r)(l,{originalException:c,mechanism:{handled:!1,type:"onerror"}})}))}(t),At("onerror")),e.onunhandledrejection&&(function(t){(0,Ct.r)((e=>{const{stackParser:n,attachStacktrace:i}=Pt();if((0,m.KU)()!==t||(0,Q.jN)())return;const s=function(t){if((0,A.sO)(t))return t;try{if("reason"in t)return t.reason;if("detail"in t&&"reason"in t.detail)return t.detail.reason}catch(t){}return t}(e),o=(0,A.sO)(s)?{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(s)}`}]}}:Y(n,s,void 0,i,!0);o.level="error",(0,x.r)(o,{originalException:s,mechanism:{handled:!1,type:"onunhandledrejection"}})}))}(t),At("onunhandledrejection"))}}};function At(t){U.T&&i.vF.log(`Global Handler attached: ${t}`)}function Pt(){const t=(0,m.KU)();return t&&t.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}const Lt=()=>({name:"HttpContext",preprocessEvent(t){if(!Q.jf.navigator&&!Q.jf.location&&!Q.jf.document)return;const e=t.request&&t.request.url||Q.jf.location&&Q.jf.location.href,{referrer:n}=Q.jf.document||{},{userAgent:i}=Q.jf.navigator||{},s={...t.request&&t.request.headers,...n&&{Referer:n},...i&&{"User-Agent":i}},o={...t.request,...e&&{url:e},headers:s};t.request=o}});function It(t,e,n=250,i,s,r,a){if(!(r.exception&&r.exception.values&&a&&(0,A.tH)(a.originalException,Error)))return;const c=r.exception.values.length>0?r.exception.values[r.exception.values.length-1]:void 0;var l,u;c&&(r.exception.values=(l=kt(t,e,s,a.originalException,i,r.exception.values,c,0),u=n,l.map((t=>(t.value&&(t.value=(0,o.xv)(t.value,u)),t)))))}function kt(t,e,n,i,s,o,r,a){if(o.length>=n+1)return o;let c=[...o];if((0,A.tH)(i[s],Error)){Dt(r,a);const o=t(e,i[s]),l=c.length;Nt(o,s,l,a),c=kt(t,e,n,i[s],s,[o,...c],o,l)}return Array.isArray(i.errors)&&i.errors.forEach(((i,o)=>{if((0,A.tH)(i,Error)){Dt(r,a);const l=t(e,i),u=c.length;Nt(l,`errors[${o}]`,u,a),c=kt(t,e,n,i,s,[l,...c],l,u)}})),c}function Dt(t,e){t.mechanism=t.mechanism||{type:"generic",handled:!0},t.mechanism={...t.mechanism,..."AggregateError"===t.type&&{is_exception_group:!0},exception_id:e}}function Nt(t,e,n,i){t.mechanism=t.mechanism||{type:"generic",handled:!0},t.mechanism={...t.mechanism,type:"chained",source:e,exception_id:n,parent_id:i}}const Mt=(t={})=>{const e=t.limit||5,n=t.key||"cause";return{name:"LinkedErrors",preprocessEvent(t,i,s){const o=s.getOptions();It(q,o.stackParser,o.maxValueLength,n,e,t,i)}}};function Rt(t,e,n,i){const s={filename:t,function:"<anonymous>"===e?y.yF:e,in_app:!0};return void 0!==n&&(s.lineno=n),void 0!==i&&(s.colno=i),s}const jt=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,Ft=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,zt=/\((\S*)(?::(\d+))(?::(\d+))\)/,Bt=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,$t=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,Ht=[[30,t=>{const e=jt.exec(t);if(e){const[,t,n,i]=e;return Rt(t,y.yF,+n,+i)}const n=Ft.exec(t);if(n){if(n[2]&&0===n[2].indexOf("eval")){const t=zt.exec(n[2]);t&&(n[2]=t[1],n[3]=t[2],n[4]=t[3])}const[t,e]=Wt(n[1]||y.yF,n[2]);return Rt(e,t,n[3]?+n[3]:void 0,n[4]?+n[4]:void 0)}}],[50,t=>{const e=Bt.exec(t);if(e){if(e[3]&&e[3].indexOf(" > eval")>-1){const t=$t.exec(e[3]);t&&(e[1]=e[1]||"eval",e[3]=t[1],e[4]=t[2],e[5]="")}let t=e[3],n=e[1]||y.yF;return[n,t]=Wt(n,t),Rt(t,n,e[4]?+e[4]:void 0,e[5]?+e[5]:void 0)}}]],Ut=(0,y.gd)(...Ht),Wt=(t,e)=>{const n=-1!==t.indexOf("safari-extension"),i=-1!==t.indexOf("safari-web-extension");return n||i?[-1!==t.indexOf("@")?t.split("@")[0]:y.yF,n?`safari-extension:${e}`:`safari-web-extension:${e}`]:[t,e]};var qt=n(4693);const Vt={};function Gt(t){Vt[t]=void 0}const Xt=6e4;const Kt=64;function Yt(t,e,n=function(t){const e=[];function n(t){return e.splice(e.indexOf(t),1)[0]||Promise.resolve(void 0)}return{$:e,add:function(i){if(!(void 0===t||e.length<t))return(0,P.xg)(new I("Not adding Promise because buffer limit was reached."));const s=i();return-1===e.indexOf(s)&&e.push(s),s.then((()=>n(s))).then(null,(()=>n(s).then(null,(()=>{})))),s},drain:function(t){return new P.T2(((n,i)=>{let s=e.length;if(!s)return n(!0);const o=setTimeout((()=>{t&&t>0&&n(!1)}),t);e.forEach((t=>{(0,P.XW)(t).then((()=>{--s||(clearTimeout(o),n(!0))}),i)}))}))}}}(t.bufferSize||Kt)){let s={};return{send:function(o){const a=[];if((0,L.yH)(o,((e,n)=>{const i=(0,L.zk)(n);if(function(t,e,n=Date.now()){return function(t,e){return t[e]||t.all||0}(t,e)>n}(s,i)){const s=Jt(e,n);t.recordDroppedEvent("ratelimit_backoff",i,s)}else a.push(e)})),0===a.length)return(0,P.XW)({});const c=(0,L.h4)(o[0],a),l=e=>{(0,L.yH)(c,((n,i)=>{const s=Jt(n,i);t.recordDroppedEvent(e,(0,L.zk)(i),s)}))};return n.add((()=>e({body:(0,L.bN)(c)}).then((t=>(void 0!==t.statusCode&&(t.statusCode<200||t.statusCode>=300)&&r.T&&i.vF.warn(`Sentry responded with status code ${t.statusCode} to sent event.`),s=function(t,{statusCode:e,headers:n},i=Date.now()){const s={...t},o=n&&n["x-sentry-rate-limits"],r=n&&n["retry-after"];if(o)for(const t of o.trim().split(",")){const[e,n,,,o]=t.split(":",5),r=parseInt(e,10),a=1e3*(isNaN(r)?60:r);if(n)for(const t of n.split(";"))"metric_bucket"===t&&o&&!o.split(";").includes("custom")||(s[t]=i+a);else s.all=i+a}else r?s.all=i+function(t,e=Date.now()){const n=parseInt(`${t}`,10);if(!isNaN(n))return 1e3*n;const i=Date.parse(`${t}`);return isNaN(i)?Xt:i-e}(r,i):429===e&&(s.all=i+6e4);return s}(s,t),t)),(t=>{throw l("network_error"),t})))).then((t=>t),(t=>{if(t instanceof I)return r.T&&i.vF.error("Skipped sending event because buffer is full."),l("queue_overflow"),(0,P.XW)({});throw t}))},flush:t=>n.drain(t)}}function Jt(t,e){if("event"===e||"transaction"===e)return Array.isArray(t)?t[1]:void 0}function Zt(t,e=function(t){const e=Vt[t];if(e)return e;let n=nt.j[t];if((0,T.a3)(n))return Vt[t]=n.bind(nt.j);const s=nt.j.document;if(s&&"function"==typeof s.createElement)try{const e=s.createElement("iframe");e.hidden=!0,s.head.appendChild(e);const i=e.contentWindow;i&&i[t]&&(n=i[t]),s.head.removeChild(e)}catch(e){qt.T&&i.vF.warn(`Could not create sandbox iframe for ${t} check, bailing to window.${t}: `,e)}return n?Vt[t]=n.bind(nt.j):n}("fetch")){let n=0,s=0;return Yt(t,(function(i){const o=i.body.length;n+=o,s++;const r={body:i.body,method:"POST",referrerPolicy:"origin",headers:t.headers,keepalive:n<=6e4&&s<15,...t.fetchOptions};if(!e)return Gt("fetch"),(0,P.xg)("No fetch implementation available");try{return e(t.url,r).then((t=>(n-=o,s--,{statusCode:t.status,headers:{"x-sentry-rate-limits":t.headers.get("X-Sentry-Rate-Limits"),"retry-after":t.headers.get("Retry-After")}})))}catch(t){return Gt("fetch"),n-=o,s--,(0,P.xg)(t)}}))}function Qt(t={}){const e=function(t={}){const e={defaultIntegrations:[h(),b(),wt(),bt(),Ot(),Mt(),w(),Lt()],release:"string"==typeof __SENTRY_RELEASE__?__SENTRY_RELEASE__:Q.jf.SENTRY_RELEASE&&Q.jf.SENTRY_RELEASE.id?Q.jf.SENTRY_RELEASE.id:void 0,autoSessionTracking:!0,sendClientReports:!0};return null==t.defaultIntegrations&&delete t.defaultIntegrations,{...e,...t}}(t);if(function(){const t=void 0!==Q.jf.window&&Q.jf;if(!t)return!1;const e=t[t.chrome?"chrome":"browser"],n=e&&e.runtime&&e.runtime.id,i=Q.jf.location&&Q.jf.location.href||"",s=!!n&&Q.jf===Q.jf.top&&["chrome-extension:","moz-extension:","ms-browser-extension:","safari-web-extension:"].some((t=>i.startsWith(`${t}//`))),o=void 0!==t.nw;return!!n&&!s&&!o}())return void(0,i.pq)((()=>{console.error("[Sentry] You cannot run Sentry this way in a browser extension, check: https://docs.sentry.io/platforms/javascript/best-practices/browser-extensions/")}));U.T&&((0,T.vm)()||i.vF.warn("No Fetch API detected. The Sentry SDK requires a Fetch API compatible environment to send events. Please add a Fetch API polyfill."));const n={...e,stackParser:(0,y.vk)(e.stackParser||Ut),integrations:c(e),transport:e.transport||Zt},s=function(t,e){!0===e.debug&&(r.T?i.vF.enable():(0,i.pq)((()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")}))),(0,m.o5)().update(e.initialScope);const n=new t(e);return function(t){(0,m.o5)().setClient(t)}(n),n.init(),n}(tt,n);return e.autoSessionTracking&&(void 0!==Q.jf.document?((0,x.J0)({ignoreDuration:!0}),(0,x.J5)(),(0,C._)((({from:t,to:e})=>{void 0!==t&&t!==e&&((0,x.J0)({ignoreDuration:!0}),(0,x.J5)())}))):U.T&&i.vF.warn("Session tracking in non-browser environment with @sentry/browser is not supported.")),s}},3508:function(t,e,n){"use strict";n.d(e,{dp:function(){return xe}});var i=n(5915),s=n(5200),o=n(7968),r=n(2328),a=n(4611);function c(t){if("boolean"==typeof __SENTRY_TRACING__&&!__SENTRY_TRACING__)return!1;const e=(0,o.KU)(),n=t||e&&e.getOptions();return!!n&&(n.enableTracing||"tracesSampleRate"in n||"tracesSampler"in n)}var l=n(333),u=n(1158),d=n(3932),h=n(6674),p=n(1773),f=n(9888);class m{constructor(t={}){this._traceId=t.traceId||(0,f.eJ)(),this._spanId=t.spanId||(0,f.eJ)().substring(16)}spanContext(){return{spanId:this._spanId,traceId:this._traceId,traceFlags:i.CC}}end(t){}setAttribute(t,e){return this}setAttributes(t){return this}setStatus(t){return this}updateName(t){return this}isRecording(){return!1}addEvent(t,e,n){return this}addLink(t){return this}addLinks(t){return this}recordException(t,e){}}var g=n(1305),v=n(179),b=n(5330),y=n(2409);function w(t){if(!t||0===t.length)return;const e={};return t.forEach((t=>{const n=t.attributes||{},i=n[a.Sn],s=n[a.xc];"string"==typeof i&&"number"==typeof s&&(e[t.name]={value:s,unit:i})})),e}const E="_sentryScope",S="_sentryIsolationScope";function _(t){return{scope:t[E],isolationScope:t[S]}}class x{constructor(t={}){this._traceId=t.traceId||(0,f.eJ)(),this._spanId=t.spanId||(0,f.eJ)().substring(16),this._startTime=t.startTimestamp||(0,g.zf)(),this._attributes={},this.setAttributes({[a.JD]:"manual",[a.uT]:t.op,...t.attributes}),this._name=t.name,t.parentSpanId&&(this._parentSpanId=t.parentSpanId),"sampled"in t&&(this._sampled=t.sampled),t.endTimestamp&&(this._endTime=t.endTimestamp),this._events=[],this._isStandaloneSpan=t.isStandalone,this._endTime&&this._onSpanEnded()}addLink(t){return this}addLinks(t){return this}recordException(t,e){}spanContext(){const{_spanId:t,_traceId:e,_sampled:n}=this;return{spanId:t,traceId:e,traceFlags:n?i.aO:i.CC}}setAttribute(t,e){return void 0===e?delete this._attributes[t]:this._attributes[t]=e,this}setAttributes(t){return Object.keys(t).forEach((e=>this.setAttribute(e,t[e]))),this}updateStartTime(t){this._startTime=(0,i.cI)(t)}setStatus(t){return this._status=t,this}updateName(t){return this._name=t,this}end(t){this._endTime||(this._endTime=(0,i.cI)(t),function(t){if(!h.T)return;const{description:e="< unknown name >",op:n="< unknown op >"}=(0,i.et)(t),{spanId:s}=t.spanContext(),o=`[Tracing] Finishing "${n}" ${(0,i.zU)(t)===t?"root ":""}span "${e}" with ID ${s}`;d.vF.log(o)}(this),this._onSpanEnded())}getSpanJSON(){return(0,v.Ce)({data:this._attributes,description:this._name,op:this._attributes[a.uT],parent_span_id:this._parentSpanId,span_id:this._spanId,start_timestamp:this._startTime,status:(0,i.yW)(this._status),timestamp:this._endTime,trace_id:this._traceId,origin:this._attributes[a.JD],_metrics_summary:(0,y.g)(this),profile_id:this._attributes[a.E1],exclusive_time:this._attributes[a.jG],measurements:w(this._events),is_segment:this._isStandaloneSpan&&(0,i.zU)(this)===this||void 0,segment_id:this._isStandaloneSpan?(0,i.zU)(this).spanContext().spanId:void 0})}isRecording(){return!this._endTime&&!!this._sampled}addEvent(t,e,n){h.T&&d.vF.log("[Tracing] Adding an event to span:",t);const s=T(e)?e:n||(0,g.zf)(),o=T(e)?{}:e||{},r={name:t,time:(0,i.cI)(s),attributes:o};return this._events.push(r),this}isStandaloneSpan(){return!!this._isStandaloneSpan}_onSpanEnded(){const t=(0,o.KU)();if(t&&t.emit("spanEnd",this),!this._isStandaloneSpan&&this!==(0,i.zU)(this))return;if(this._isStandaloneSpan)return void(this._sampled?function(t){const e=(0,o.KU)();if(!e)return;const n=t[1];if(!n||0===n.length)return void e.recordDroppedEvent("before_send","span");const i=e.getTransport();i&&i.send(t).then(null,(t=>{h.T&&d.vF.error("Error while sending span:",t)}))}((0,b.lu)([this],t)):(h.T&&d.vF.log("[Tracing] Discarding standalone span because its trace was not chosen to be sampled."),t&&t.recordDroppedEvent("sample_rate","span")));const e=this._convertSpanToTransaction();e&&(_(this).scope||(0,o.o5)()).captureEvent(e)}_convertSpanToTransaction(){if(!C((0,i.et)(this)))return;this._name||(h.T&&d.vF.warn("Transaction has no name, falling back to `<unlabeled transaction>`."),this._name="<unlabeled transaction>");const{scope:t,isolationScope:e}=_(this),n=(t||(0,o.o5)()).getClient()||(0,o.KU)();if(!0!==this._sampled)return h.T&&d.vF.log("[Tracing] Discarding transaction because its trace was not chosen to be sampled."),void(n&&n.recordDroppedEvent("sample_rate","transaction"));const s=(0,i.xO)(this).filter((t=>t!==this&&!function(t){return t instanceof x&&t.isStandaloneSpan()}(t))).map((t=>(0,i.et)(t))).filter(C),r=this._attributes[a.i_],c={contexts:{trace:(0,i.Ck)(this)},spans:s.length>1e3?s.sort(((t,e)=>t.start_timestamp-e.start_timestamp)).slice(0,1e3):s,start_timestamp:this._startTime,timestamp:this._endTime,transaction:this._name,type:"transaction",sdkProcessingMetadata:{capturedSpanScope:t,capturedSpanIsolationScope:e,...(0,v.Ce)({dynamicSamplingContext:(0,u.k1)(this)})},_metrics_summary:(0,y.g)(this),...r&&{transaction_info:{source:r}}},l=w(this._events);return l&&Object.keys(l).length&&(h.T&&d.vF.log("[Measurements] Adding measurements to transaction event",JSON.stringify(l,void 0,2)),c.measurements=l),c}}function T(t){return t&&"number"==typeof t||t instanceof Date||Array.isArray(t)}function C(t){return!!(t.start_timestamp&&t.timestamp&&t.span_id&&t.trace_id)}const O="__SENTRY_SUPPRESS_TRACING__";function A(t){const e=L();if(e.startInactiveSpan)return e.startInactiveSpan(t);const n=function(t){const e={isStandalone:(t.experimental||{}).standalone,...t};if(t.startTime){const n={...e};return n.startTimestamp=(0,i.cI)(t.startTime),delete n.startTime,n}return e}(t),{forceTransaction:s,parentSpan:r}=t;return(t.scope?e=>(0,o.v4)(t.scope,e):void 0!==r?t=>P(r,t):t=>t())((()=>{const e=(0,o.o5)(),r=function(t){const e=(0,l.f)(t);if(!e)return;const n=(0,o.KU)();return(n?n.getOptions():{}).parentSpanIsAlwaysRootSpan?(0,i.zU)(e):e}(e);return t.onlyIfParent&&!r?new m:function({parentSpan:t,spanArguments:e,forceTransaction:n,scope:s}){if(!c())return new m;const r=(0,o.rm)();let a;if(t&&!n)a=function(t,e,n){const{spanId:s,traceId:r}=t.spanContext(),a=!e.getScopeData().sdkProcessingMetadata[O]&&(0,i.pK)(t),c=a?new x({...n,parentSpanId:s,traceId:r,sampled:a}):new m({traceId:r});(0,i.Hu)(t,c);const l=(0,o.KU)();return l&&(l.emit("spanStart",c),n.endTimestamp&&l.emit("spanEnd",c)),c}(t,s,e),(0,i.Hu)(t,a);else if(t){const n=(0,u.k1)(t),{traceId:o,spanId:r}=t.spanContext(),c=(0,i.pK)(t);a=I({traceId:o,parentSpanId:r,...e},s,c),(0,u.LZ)(a,n)}else{const{traceId:t,dsc:n,parentSpanId:i,sampled:o}={...r.getPropagationContext(),...s.getPropagationContext()};a=I({traceId:t,parentSpanId:i,...e},s,o),n&&(0,u.LZ)(a,n)}return function(t){if(!h.T)return;const{description:e="< unknown name >",op:n="< unknown op >",parent_span_id:s}=(0,i.et)(t),{spanId:o}=t.spanContext(),r=(0,i.pK)(t),a=(0,i.zU)(t),c=a===t,l=`[Tracing] Starting ${r?"sampled":"unsampled"} ${c?"root ":""}span`,u=[`op: ${n}`,`name: ${e}`,`ID: ${o}`];if(s&&u.push(`parent ID: ${s}`),!c){const{op:t,description:e}=(0,i.et)(a);u.push(`root ID: ${a.spanContext().spanId}`),t&&u.push(`root op: ${t}`),e&&u.push(`root description: ${e}`)}d.vF.log(`${l}\n  ${u.join("\n  ")}`)}(a),function(t,e,n){t&&((0,v.my)(t,S,n),(0,v.my)(t,E,e))}(a,s,r),a}({parentSpan:r,spanArguments:n,forceTransaction:s,scope:e})}))}function P(t,e){const n=L();return n.withActiveSpan?n.withActiveSpan(t,e):(0,o.v4)((n=>((0,l.r)(n,t||void 0),e(n))))}function L(){const t=(0,s.E)();return(0,r.h)(t)}function I(t,e,n){const i=(0,o.KU)(),s=i&&i.getOptions()||{},{name:r="",attributes:l}=t,[u,f]=e.getScopeData().sdkProcessingMetadata[O]?[!1]:function(t,e){if(!c(t))return[!1];let n;n="function"==typeof t.tracesSampler?t.tracesSampler(e):void 0!==e.parentSampled?e.parentSampled:void 0!==t.tracesSampleRate?t.tracesSampleRate:1;const i=(0,p.i)(n);return void 0===i?(h.T&&d.vF.warn("[Tracing] Discarding transaction because of invalid sample rate."),[!1]):i?Math.random()<i?[!0,i]:(h.T&&d.vF.log(`[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = ${Number(n)})`),[!1,i]):(h.T&&d.vF.log("[Tracing] Discarding transaction because "+("function"==typeof t.tracesSampler?"tracesSampler returned 0 or false":"a negative sampling decision was inherited or tracesSampleRate is set to 0")),[!1,i])}(s,{name:r,parentSampled:n,attributes:l,transactionContext:{name:r,parentSampled:n}}),m=new x({...t,attributes:{[a.i_]:"custom",...t.attributes},sampled:u});return void 0!==f&&m.setAttribute(a.sy,f),i&&i.emit("spanStart",m),m}var k=n(5166),D=n(8039),N=n(4693),M=n(4910);function R(t){let e,n=t[0],i=1;for(;i<t.length;){const s=t[i],o=t[i+1];if(i+=2,("optionalAccess"===s||"optionalCall"===s)&&null==n)return;"access"===s||"optionalAccess"===s?(e=n,n=o(n)):"call"!==s&&"optionalCall"!==s||(n=o(((...t)=>n.call(e,...t))),e=void 0)}return n}var j=n(6453);const F=(t,e,n,i)=>{let s,o;return r=>{e.value>=0&&(r||i)&&(o=e.value-(s||0),(o||void 0===s)&&(s=e.value,e.delta=o,e.rating=((t,e)=>t>e[1]?"poor":t>e[0]?"needs-improvement":"good")(e.value,n),t(e)))}},z=()=>M.j.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0],B=()=>{const t=z();return t&&t.activationStart||0},$=(t,e)=>{const n=z();let i="navigate";return n&&(M.j.document&&M.j.document.prerendering||B()>0?i="prerender":M.j.document&&M.j.document.wasDiscarded?i="restore":n.type&&(i=n.type.replace(/_/g,"-"))),{name:t,value:void 0===e?-1:e,rating:"good",delta:0,entries:[],id:`v3-${Date.now()}-${Math.floor(8999999999999*Math.random())+1e12}`,navigationType:i}},H=(t,e,n)=>{try{if(PerformanceObserver.supportedEntryTypes.includes(t)){const i=new PerformanceObserver((t=>{Promise.resolve().then((()=>{e(t.getEntries())}))}));return i.observe(Object.assign({type:t,buffered:!0},n||{})),i}}catch(t){}},U=t=>{const e=e=>{("pagehide"===e.type||M.j.document&&"hidden"===M.j.document.visibilityState)&&t(e)};M.j.document&&(addEventListener("visibilitychange",e,!0),addEventListener("pagehide",e,!0))},W=t=>{let e=!1;return n=>{e||(t(n),e=!0)}};let q=-1;const V=t=>{"hidden"===M.j.document.visibilityState&&q>-1&&(q="visibilitychange"===t.type?t.timeStamp:0,removeEventListener("visibilitychange",V,!0),removeEventListener("prerenderingchange",V,!0))},G=()=>(M.j.document&&q<0&&(q="hidden"!==M.j.document.visibilityState||M.j.document.prerendering?1/0:0,addEventListener("visibilitychange",V,!0),addEventListener("prerenderingchange",V,!0)),{get firstHiddenTime(){return q}}),X=t=>{M.j.document&&M.j.document.prerendering?addEventListener("prerenderingchange",(()=>t()),!0):t()},K=[1800,3e3],Y=[.1,.25],J=(t,e={})=>{((t,e={})=>{X((()=>{const n=G(),i=$("FCP");let s;const o=H("paint",(t=>{t.forEach((t=>{"first-contentful-paint"===t.name&&(o.disconnect(),t.startTime<n.firstHiddenTime&&(i.value=Math.max(t.startTime-B(),0),i.entries.push(t),s(!0)))}))}));o&&(s=F(t,i,K,e.reportAllChanges))}))})(W((()=>{const n=$("CLS",0);let i,s=0,o=[];const r=t=>{t.forEach((t=>{if(!t.hadRecentInput){const e=o[0],n=o[o.length-1];s&&e&&n&&t.startTime-n.startTime<1e3&&t.startTime-e.startTime<5e3?(s+=t.value,o.push(t)):(s=t.value,o=[t])}})),s>n.value&&(n.value=s,n.entries=o,i())},a=H("layout-shift",r);a&&(i=F(t,n,Y,e.reportAllChanges),U((()=>{r(a.takeRecords()),i(!0)})),setTimeout(i,0))})))},Z=[100,300],Q=(t,e={})=>{X((()=>{const n=G(),i=$("FID");let s;const o=t=>{t.startTime<n.firstHiddenTime&&(i.value=t.processingStart-t.startTime,i.entries.push(t),s(!0))},r=t=>{t.forEach(o)},a=H("first-input",r);s=F(t,i,Z,e.reportAllChanges),a&&U(W((()=>{r(a.takeRecords()),a.disconnect()})))}))};let tt=0,et=1/0,nt=0;const it=t=>{t.forEach((t=>{t.interactionId&&(et=Math.min(et,t.interactionId),nt=Math.max(nt,t.interactionId),tt=nt?(nt-et)/7+1:0)}))};let st;const ot=()=>{"interactionCount"in performance||st||(st=H("event",it,{type:"event",buffered:!0,durationThreshold:0}))},rt=[200,500],at=()=>(st?tt:performance.interactionCount||0)-0,ct=[],lt={},ut=t=>{const e=ct[ct.length-1],n=lt[t.interactionId];if(n||ct.length<10||e&&t.duration>e.latency){if(n)n.entries.push(t),n.latency=Math.max(n.latency,t.duration);else{const e={id:t.interactionId,latency:t.duration,entries:[t]};lt[e.id]=e,ct.push(e)}ct.sort(((t,e)=>e.latency-t.latency)),ct.splice(10).forEach((t=>{delete lt[t.id]}))}},dt=(t,e={})=>{X((()=>{ot();const n=$("INP");let i;const s=t=>{t.forEach((t=>{t.interactionId&&ut(t),"first-input"===t.entryType&&!ct.some((e=>e.entries.some((e=>t.duration===e.duration&&t.startTime===e.startTime))))&&ut(t)}));const e=(()=>{const t=Math.min(ct.length-1,Math.floor(at()/50));return ct[t]})();e&&e.latency!==n.value&&(n.value=e.latency,n.entries=e.entries,i())},o=H("event",s,{durationThreshold:null!=e.durationThreshold?e.durationThreshold:40});i=F(t,n,rt,e.reportAllChanges),o&&("PerformanceEventTiming"in M.j&&"interactionId"in PerformanceEventTiming.prototype&&o.observe({type:"first-input",buffered:!0}),U((()=>{s(o.takeRecords()),n.value<0&&at()>0&&(n.value=0,n.entries=[]),i(!0)})))}))},ht=[2500,4e3],pt={},ft=(t,e={})=>{X((()=>{const n=G(),i=$("LCP");let s;const o=t=>{const e=t[t.length-1];e&&e.startTime<n.firstHiddenTime&&(i.value=Math.max(e.startTime-B(),0),i.entries=[e],s())},r=H("largest-contentful-paint",o);if(r){s=F(t,i,ht,e.reportAllChanges);const n=W((()=>{pt[i.id]||(o(r.takeRecords()),r.disconnect(),pt[i.id]=!0,s(!0))}));["keydown","click"].forEach((t=>{M.j.document&&addEventListener(t,(()=>setTimeout(n,0)),!0)})),U(n)}}))},mt=[800,1800],gt=t=>{M.j.document&&M.j.document.prerendering?X((()=>gt(t))):M.j.document&&"complete"!==M.j.document.readyState?addEventListener("load",(()=>gt(t)),!0):setTimeout(t,0)},vt=(t,e={})=>{const n=$("TTFB"),i=F(t,n,mt,e.reportAllChanges);gt((()=>{const t=z();if(t){const e=t.responseStart;if(e<=0||e>performance.now())return;n.value=Math.max(e-B(),0),n.entries=[t],i(!0)}}))},bt={},yt={};let wt,Et,St,_t,xt;function Tt(t,e=!1){return Dt("cls",t,At,wt,e)}function Ct(t,e){return Nt(t,e),yt[t]||(function(t){const e={};"event"===t&&(e.durationThreshold=0),H(t,(e=>{Ot(t,{entries:e})}),e)}(t),yt[t]=!0),Mt(t,e)}function Ot(t,e){const n=bt[t];if(n&&n.length)for(const i of n)try{i(e)}catch(e){N.T&&d.vF.error(`Error while triggering instrumentation handler.\nType: ${t}\nName: ${(0,j.qQ)(i)}\nError:`,e)}}function At(){return J((t=>{Ot("cls",{metric:t}),wt=t}),{reportAllChanges:!0})}function Pt(){return Q((t=>{Ot("fid",{metric:t}),Et=t}))}function Lt(){return ft((t=>{Ot("lcp",{metric:t}),St=t}),{reportAllChanges:!0})}function It(){return vt((t=>{Ot("ttfb",{metric:t}),_t=t}))}function kt(){return dt((t=>{Ot("inp",{metric:t}),xt=t}))}function Dt(t,e,n,i,s=!1){let o;return Nt(t,e),yt[t]||(o=n(),yt[t]=!0),i&&e({metric:i}),Mt(t,e,s?o:void 0)}function Nt(t,e){bt[t]=bt[t]||[],bt[t].push(e)}function Mt(t,e,n){return()=>{n&&n();const i=bt[t];if(!i)return;const s=i.indexOf(e);-1!==s&&i.splice(s,1)}}function Rt(t){return"number"==typeof t&&isFinite(t)}function jt(t,e,n,{...s}){const o=(0,i.et)(t).start_timestamp;return o&&o>e&&"function"==typeof t.updateStartTime&&t.updateStartTime(e),P(t,(()=>{const t=A({startTime:e,...s});return t&&t.end(n),t}))}function Ft(t){const e=(0,o.KU)();if(!e)return;const{name:n,transaction:i,attributes:s,startTime:r}=t,{release:a,environment:c}=e.getOptions(),l=e.getIntegrationByName("Replay"),u=l&&l.getReplayId(),d=(0,o.o5)(),h=d.getUser(),p=void 0!==h?h.email||h.id||h.ip_address:void 0;let f;try{f=d.getScopeData().contexts.profile.profile_id}catch(t){}return A({name:n,attributes:{release:a,environment:c,user:p||void 0,profile_id:f||void 0,replay_id:u||void 0,transaction:i,"user_agent.original":M.j.navigator&&M.j.navigator.userAgent,...s},startTime:r,experimental:{standalone:!0}})}function zt(){return M.j&&M.j.addEventListener&&M.j.performance}function Bt(t){return t/1e3}const $t=2147483647;let Ht,Ut,Wt=0,qt={};function Vt({recordClsStandaloneSpans:t}){const e=zt();if(e&&g.k3){e.mark&&M.j.performance.mark("sentry-tracing-init");const n=Dt("fid",(({metric:t})=>{const e=t.entries[t.entries.length-1];if(!e)return;const n=Bt(g.k3),i=Bt(e.startTime);N.T&&d.vF.log("[Measurements] Adding FID"),qt.fid={value:t.value,unit:"millisecond"},qt["mark.fid"]={value:n+i,unit:"second"}}),Pt,Et),s=function(t,e=!1){return Dt("lcp",t,Lt,St,e)}((({metric:t})=>{const e=t.entries[t.entries.length-1];e&&(N.T&&d.vF.log("[Measurements] Adding LCP"),qt.lcp={value:t.value,unit:"millisecond"},Ht=e)}),!0),r=Dt("ttfb",(({metric:t})=>{t.entries[t.entries.length-1]&&(N.T&&d.vF.log("[Measurements] Adding TTFB"),qt.ttfb={value:t.value,unit:"millisecond"})}),It,_t),c=t?function(){let t,e,n=0;if(!function(){try{return R([PerformanceObserver,"access",t=>t.supportedEntryTypes,"optionalAccess",t=>t.includes,"call",t=>t("layout-shift")])}catch(t){return!1}}())return;let s=!1;function r(){s||(s=!0,e&&function(t,e,n){N.T&&d.vF.log(`Sending CLS span (${t})`);const i=Bt((g.k3||0)+(R([e,"optionalAccess",t=>t.startTime])||0)),s=(0,o.o5)().getScopeData().transactionName,r=Ft({name:e?(0,k.Hd)(R([e,"access",t=>t.sources,"access",t=>t[0],"optionalAccess",t=>t.node])):"Layout shift",transaction:s,attributes:(0,v.Ce)({[a.JD]:"auto.http.browser.cls",[a.uT]:"ui.webvital.cls",[a.jG]:R([e,"optionalAccess",t=>t.duration])||0,"sentry.pageload.span_id":n}),startTime:i});R([r,"optionalAccess",t=>t.addEvent,"call",e=>e("cls",{[a.Sn]:"",[a.xc]:t})]),R([r,"optionalAccess",t=>t.end,"call",t=>t(i)])}(n,t,e),c())}const c=Tt((({metric:e})=>{const i=e.entries[e.entries.length-1];i&&(n=e.value,t=i)}),!0);U((()=>{r()})),setTimeout((()=>{const t=R([(0,o.KU)(),"optionalAccess",t=>t.on,"call",e=>e("startNavigationSpan",(()=>{r(),t&&t()}))]),n=(0,i.Bk)(),s=n&&(0,i.zU)(n),a=s&&(0,i.et)(s);a&&"pageload"===a.op&&(e=s.spanContext().spanId)}),0)}():Tt((({metric:t})=>{const e=t.entries[t.entries.length-1];e&&(N.T&&d.vF.log(`[Measurements] Adding CLS ${t.value}`),qt.cls={value:t.value,unit:""},Ut=e)}),!0);return()=>{n(),s(),r(),c&&c()}}return()=>{}}function Gt(t,e,n,i,s,o){const r=o?e[o]:e[`${n}End`],c=e[`${n}Start`];c&&r&&jt(t,i+Bt(c),i+Bt(r),{op:"browser",name:s||n,attributes:{[a.JD]:"auto.ui.browser.metrics"}})}function Xt(t,e,n,i){const s=e[n];null!=s&&s<$t&&(t[i]=s)}const Kt=[],Yt=new Map;const Jt={click:"click",pointerdown:"click",pointerup:"click",mousedown:"click",mouseup:"click",touchstart:"click",touchend:"click",mouseover:"hover",mouseout:"hover",mouseenter:"hover",mouseleave:"hover",pointerover:"hover",pointerout:"hover",pointerenter:"hover",pointerleave:"hover",dragstart:"drag",dragend:"drag",drag:"drag",dragenter:"drag",dragleave:"drag",dragover:"drag",drop:"drag",keydown:"press",keyup:"press",keypress:"press",input:"press"};var Zt=n(3741),Qt=n(1135);const te={idleTimeout:1e3,finalTimeout:3e4,childSpanTimeout:15e3};function ee(t,e={}){const n=new Map;let s,r=!1,u="externalFinish",p=!e.disableAutoFinish;const f=[],{idleTimeout:v=te.idleTimeout,finalTimeout:b=te.finalTimeout,childSpanTimeout:y=te.childSpanTimeout,beforeSpanEnd:w}=e,E=(0,o.KU)();if(!E||!c())return new m;const S=(0,o.o5)(),_=(0,i.Bk)(),x=function(t){const e=A(t);return(0,l.r)((0,o.o5)(),e),h.T&&d.vF.log("[Tracing] Started span is an idle span"),e}(t);function T(){s&&(clearTimeout(s),s=void 0)}function C(t){T(),s=setTimeout((()=>{!r&&0===n.size&&p&&(u="idleTimeout",x.end(t))}),v)}function O(t){s=setTimeout((()=>{!r&&p&&(u="heartbeatFailed",x.end(t))}),y)}function P(t){r=!0,n.clear(),f.forEach((t=>t())),(0,l.r)(S,_);const e=(0,i.et)(x),{start_timestamp:s}=e;if(!s)return;(e.data||{})[a.fs]||x.setAttribute(a.fs,u),d.vF.log(`[Tracing] Idle span "${e.op}" finished`);const o=(0,i.xO)(x).filter((t=>t!==x));let c=0;o.forEach((e=>{e.isRecording()&&(e.setStatus({code:Qt.TJ,message:"cancelled"}),e.end(t),h.T&&d.vF.log("[Tracing] Cancelling span since span ended early",JSON.stringify(e,void 0,2)));const n=(0,i.et)(e),{timestamp:s=0,start_timestamp:o=0}=n,r=o<=t,a=s-o<=(b+v)/1e3;if(h.T){const t=JSON.stringify(e,void 0,2);r?a||d.vF.log("[Tracing] Discarding span since it finished after idle span final timeout",t):d.vF.log("[Tracing] Discarding span since it happened after idle span was finished",t)}a&&r||((0,i.VS)(x,e),c++)})),c>0&&x.setAttribute("sentry.idle_span_discarded_spans",c)}return x.end=new Proxy(x.end,{apply(t,e,n){w&&w(x);const[s,...o]=n,r=s||(0,g.zf)(),a=(0,i.cI)(r),c=(0,i.xO)(x).filter((t=>t!==x));if(!c.length)return P(a),Reflect.apply(t,e,[a,...o]);const l=c.map((t=>(0,i.et)(t).timestamp)).filter((t=>!!t)),u=l.length?Math.max(...l):void 0,d=(0,i.et)(x).start_timestamp,h=Math.min(d?d+b/1e3:1/0,Math.max(d||-1/0,Math.min(a,u||1/0)));return P(h),Reflect.apply(t,e,[h,...o])}}),f.push(E.on("spanStart",(t=>{var e;r||t===x||(0,i.et)(t).timestamp||(0,i.xO)(x).includes(t)&&(e=t.spanContext().spanId,T(),n.set(e,!0),O((0,g.zf)()+y/1e3))}))),f.push(E.on("spanEnd",(t=>{var e;r||(e=t.spanContext().spanId,n.has(e)&&n.delete(e),0===n.size&&C((0,g.zf)()+v/1e3))}))),f.push(E.on("idleSpanEnableAutoFinish",(t=>{t===x&&(p=!0,C(),n.size&&O())}))),e.disableAutoFinish||C(),setTimeout((()=>{r||(x.setStatus({code:Qt.TJ,message:"deadline_exceeded"}),u="finalTimeout",x.end())}),b),x}var ne=n(7397),ie=n(2221);let se=!1;function oe(){const t=(0,i.Bk)(),e=t&&(0,i.zU)(t);if(e){const t="internal_error";h.T&&d.vF.log(`[Tracing] Root span: ${t} -> Global error occured`),e.setStatus({code:Qt.TJ,message:t})}}oe.tag="sentry_tracingErrorCallback";var re=n(9085),ae=n(9540),ce=n(2317),le=n(9431),ue=n(452),de=n(5947),he=n(6904),pe=n(6752);var fe=n(1098),me=n(6013);const ge=new WeakMap,ve=new Map,be={traceFetch:!0,traceXHR:!0,enableHTTPTimings:!0};function ye(t,e){const{traceFetch:n,traceXHR:s,shouldCreateSpanForRequest:r,enableHTTPTimings:l,tracePropagationTargets:d}={traceFetch:be.traceFetch,traceXHR:be.traceXHR,...e},h="function"==typeof r?r:t=>!0,p=t=>function(t,e){const n=ue.jf.location&&ue.jf.location.href;if(n){let i,s;try{i=new URL(t,n),s=new URL(n).origin}catch(t){return!1}const o=i.origin===s;return e?(0,me.Xr)(i.toString(),e)||o&&(0,me.Xr)(i.pathname,e):o}{const n=!!t.match(/^\/(?!\/)/);return e?(0,me.Xr)(t,e):n}}(t,d),f={};n&&(t.addEventProcessor((t=>("transaction"===t.type&&t.spans&&t.spans.forEach((t=>{if("http.client"===t.op){const e=ve.get(t.span_id);e&&(t.timestamp=e/1e3,ve.delete(t.span_id))}})),t))),(0,fe.B$)((t=>{if(t.response){const e=ge.get(t.response);e&&t.endTimestamp&&ve.set(e,t.endTimestamp)}})),(0,fe.ur)((t=>{const e=function(t,e,n,s,r="auto.http.browser"){if(!t.fetchData)return;const l=c()&&e(t.fetchData.url);if(t.endTimestamp&&l){const e=t.fetchData.__span;if(!e)return;const n=s[e];return void(n&&(function(t,e){if(e.response){(0,Qt.N8)(t,e.response.status);const n=e.response&&e.response.headers&&e.response.headers.get("content-length");if(n){const e=parseInt(n);e>0&&t.setAttribute("http.response_content_length",e)}}else e.error&&t.setStatus({code:Qt.TJ,message:"internal_error"});t.end()}(n,t),delete s[e]))}const d=(0,o.o5)(),h=(0,o.KU)(),{method:p,url:f}=t.fetchData,g=function(t){try{return new URL(t).href}catch(t){return}}(f),v=g?(0,D.Dl)(g).host:void 0,b=!!(0,i.Bk)(),y=l&&b?A({name:`${p} ${f}`,attributes:{url:f,type:"fetch","http.method":p,"http.url":g,"server.address":v,[a.JD]:r,[a.uT]:"http.client"}}):new m;if(t.fetchData.__span=y.spanContext().spanId,s[y.spanContext().spanId]=y,n(t.fetchData.url)&&h){const e=t.args[0];t.args[1]=t.args[1]||{};const n=t.args[1];n.headers=function(t,e,n,s,r){const a=(0,o.rm)(),{traceId:c,spanId:l,sampled:d,dsc:h}={...a.getPropagationContext(),...n.getPropagationContext()},p=r?(0,i.Qh)(r):(0,ae.TC)(c,l,d),f=(0,he.De)(h||(r?(0,u.k1)(r):(0,u.lF)(c,e))),m=s.headers||("undefined"!=typeof Request&&(0,pe.tH)(t,Request)?t.headers:void 0);if(m){if("undefined"!=typeof Headers&&(0,pe.tH)(m,Headers)){const t=new Headers(m);return t.append("sentry-trace",p),f&&t.append(he.hF,f),t}if(Array.isArray(m)){const t=[...m,["sentry-trace",p]];return f&&t.push([he.hF,f]),t}{const t="baggage"in m?m.baggage:void 0,e=[];return Array.isArray(t)?e.push(...t):t&&e.push(t),f&&e.push(f),{...m,"sentry-trace":p,baggage:e.length>0?e.join(","):void 0}}}return{"sentry-trace":p,baggage:f}}(e,h,d,n,c()&&b?y:void 0)}return y}(t,h,p,f);if(t.response&&t.fetchData.__span&&ge.set(t.response,t.fetchData.__span),e){const n=Se(t.fetchData.url),i=n?(0,D.Dl)(n).host:void 0;e.setAttributes({"http.url":n,"server.address":i})}l&&e&&we(e)}))),s&&(0,de.Mn)((t=>{const e=function(t,e,n,s){const r=t.xhr,l=r&&r[de.Er];if(!r||r.__sentry_own_request__||!l)return;const d=c()&&e(l.url);if(t.endTimestamp&&d){const t=r.__sentry_xhr_span_id__;if(!t)return;const e=s[t];return void(e&&void 0!==l.status_code&&((0,Qt.N8)(e,l.status_code),e.end(),delete s[t]))}const h=Se(l.url),p=h?(0,D.Dl)(h).host:void 0,f=!!(0,i.Bk)(),g=d&&f?A({name:`${l.method} ${l.url}`,attributes:{type:"xhr","http.method":l.method,"http.url":h,url:l.url,"server.address":p,[a.JD]:"auto.http.browser",[a.uT]:"http.client"}}):new m;r.__sentry_xhr_span_id__=g.spanContext().spanId,s[r.__sentry_xhr_span_id__]=g;const v=(0,o.KU)();return r.setRequestHeader&&n(l.url)&&v&&function(t,e,n){const s=(0,o.o5)(),r=(0,o.rm)(),{traceId:a,spanId:l,sampled:d,dsc:h}={...r.getPropagationContext(),...s.getPropagationContext()};!function(t,e,n){try{t.setRequestHeader("sentry-trace",e),n&&t.setRequestHeader(he.hF,n)}catch(t){}}(t,n&&c()?(0,i.Qh)(n):(0,ae.TC)(a,l,d),(0,he.De)(h||(n?(0,u.k1)(n):(0,u.lF)(a,e))))}(r,v,c()&&f?g:void 0),g}(t,h,p,f);l&&e&&we(e)}))}function we(t){const{url:e}=(0,i.et)(t).data||{};if(!e||"string"!=typeof e)return;const n=Ct("resource",(({entries:i})=>{i.forEach((i=>{(function(t){return"resource"===t.entryType&&"initiatorType"in t&&"string"==typeof t.nextHopProtocol&&("fetch"===t.initiatorType||"xmlhttprequest"===t.initiatorType)})(i)&&i.name.endsWith(e)&&(function(t){const{name:e,version:n}=function(t){let e="unknown",n="unknown",i="";for(const s of t){if("/"===s){[e,n]=t.split("/");break}if(!isNaN(Number(s))){e="h"===i?"http":i,n=t.split(i)[1];break}i+=s}return i===t&&(e=i),{name:e,version:n}}(t.nextHopProtocol),i=[];return i.push(["network.protocol.version",n],["network.protocol.name",e]),g.k3?[...i,["http.request.redirect_start",Ee(t.redirectStart)],["http.request.fetch_start",Ee(t.fetchStart)],["http.request.domain_lookup_start",Ee(t.domainLookupStart)],["http.request.domain_lookup_end",Ee(t.domainLookupEnd)],["http.request.connect_start",Ee(t.connectStart)],["http.request.secure_connection_start",Ee(t.secureConnectionStart)],["http.request.connection_end",Ee(t.connectEnd)],["http.request.request_start",Ee(t.requestStart)],["http.request.response_start",Ee(t.responseStart)],["http.request.response_end",Ee(t.responseEnd)]]:i}(i).forEach((e=>t.setAttribute(...e))),setTimeout(n))}))}))}function Ee(t=0){return((g.k3||performance.timeOrigin)+t)/1e3}function Se(t){try{return new URL(t,ue.jf.location.origin).href}catch(t){return}}const _e={...te,instrumentNavigation:!0,instrumentPageLoad:!0,markBackgroundSpan:!0,enableLongTask:!0,enableLongAnimationFrame:!0,enableInp:!0,_experiments:{},...be},xe=(t={})=>{se||(se=!0,(0,ne.L)(oe),(0,ie.r)(oe));const{enableInp:e,enableLongTask:n,enableLongAnimationFrame:s,_experiments:{enableInteractions:r,enableStandaloneClsSpans:c},beforeStartSpan:l,idleTimeout:h,finalTimeout:p,childSpanTimeout:f,markBackgroundSpan:m,traceFetch:b,traceXHR:y,shouldCreateSpanForRequest:w,enableHTTPTimings:E,instrumentPageLoad:S,instrumentNavigation:_}={..._e,...t},x=Vt({recordClsStandaloneSpans:c||!1});e&&function(){if(zt()&&g.k3){const t=Dt("inp",(({metric:t})=>{if(null==t.value)return;const e=t.entries.find((e=>e.duration===t.value&&Jt[e.name]));if(!e)return;const{interactionId:n}=e,s=Jt[e.name],r=Bt(g.k3+e.startTime),c=Bt(t.value),l=(0,i.Bk)(),u=l?(0,i.zU)(l):void 0,d=(null!=n?Yt.get(n):void 0)||u,h=d?(0,i.et)(d).description:(0,o.o5)().getScopeData().transactionName,p=Ft({name:(0,k.Hd)(e.target),transaction:h,attributes:(0,v.Ce)({[a.JD]:"auto.http.browser.inp",[a.uT]:`ui.interaction.${s}`,[a.jG]:e.duration}),startTime:r});R([p,"optionalAccess",t=>t.addEvent,"call",e=>e("inp",{[a.Sn]:"millisecond",[a.xc]:t.value})]),R([p,"optionalAccess",t=>t.end,"call",t=>t(r+c)])}),kt,xt);return()=>{t()}}}(),s&&re.O.PerformanceObserver&&PerformanceObserver.supportedEntryTypes&&PerformanceObserver.supportedEntryTypes.includes("long-animation-frame")?new PerformanceObserver((t=>{if((0,i.Bk)())for(const e of t.getEntries()){if(!e.scripts[0])continue;const t=Bt(g.k3+e.startTime),n=Bt(e.duration),i={[a.JD]:"auto.ui.browser.metrics"},s=e.scripts[0],{invoker:o,invokerType:r,sourceURL:c,sourceFunctionName:l,sourceCharPosition:u}=s;i["browser.script.invoker"]=o,i["browser.script.invoker_type"]=r,c&&(i["code.filepath"]=c),l&&(i["code.function"]=l),-1!==u&&(i["browser.script.source_char_position"]=u);const d=A({name:"Main UI thread blocked",op:"ui.long-animation-frame",startTime:t,attributes:i});d&&d.end(t+n)}})).observe({type:"long-animation-frame",buffered:!0}):n&&Ct("longtask",(({entries:t})=>{if((0,i.Bk)())for(const e of t){const t=Bt(g.k3+e.startTime),n=Bt(e.duration),i=A({name:"Main UI thread blocked",op:"ui.long-task",startTime:t,attributes:{[a.JD]:"auto.ui.browser.metrics"}});i&&i.end(t+n)}})),r&&Ct("event",(({entries:t})=>{if((0,i.Bk)())for(const e of t)if("click"===e.name){const t=Bt(g.k3+e.startTime),n=Bt(e.duration),i={name:(0,k.Hd)(e.target),op:`ui.interaction.${e.name}`,startTime:t,attributes:{[a.JD]:"auto.ui.browser.metrics"}},s=(0,k.xE)(e.target);s&&(i.attributes["ui.component_name"]=s);const o=A(i);o&&o.end(t+n)}}));const T={name:void 0,source:void 0};function C(t,e){const n="pageload"===e.op,s=l?l(e):e,o=s.attributes||{};e.name!==s.name&&(o[a.i_]="custom",s.attributes=o),T.name=s.name,T.source=o[a.i_];const r=ee(s,{idleTimeout:h,finalTimeout:p,childSpanTimeout:f,disableAutoFinish:n,beforeSpanEnd:t=>{x(),function(t,e){const n=zt();if(!n||!M.j.performance.getEntries||!g.k3)return;N.T&&d.vF.log("[Tracing] Adding & adjusting spans using Performance API");const s=Bt(g.k3),o=n.getEntries(),{op:r,start_timestamp:c}=(0,i.et)(t);if(o.slice(Wt).forEach((e=>{const n=Bt(e.startTime),i=Bt(Math.max(0,e.duration));if(!("navigation"===r&&c&&s+n<c))switch(e.entryType){case"navigation":!function(t,e,n){["unloadEvent","redirect","domContentLoadedEvent","loadEvent","connect"].forEach((i=>{Gt(t,e,i,n)})),Gt(t,e,"secureConnection",n,"TLS/SSL","connectEnd"),Gt(t,e,"fetch",n,"cache","domainLookupStart"),Gt(t,e,"domainLookup",n,"DNS"),function(t,e,n){const i=n+Bt(e.requestStart),s=n+Bt(e.responseEnd),o=n+Bt(e.responseStart);e.responseEnd&&(jt(t,i,s,{op:"browser",name:"request",attributes:{[a.JD]:"auto.ui.browser.metrics"}}),jt(t,o,s,{op:"browser",name:"response",attributes:{[a.JD]:"auto.ui.browser.metrics"}}))}(t,e,n)}(t,e,s);break;case"mark":case"paint":case"measure":{!function(t,e,n,i,s){const o=z(),r=Bt(o?o.requestStart:0),c=s+Math.max(n,r),l=s+n,u=l+i,d={[a.JD]:"auto.resource.browser.metrics"};c!==l&&(d["sentry.browser.measure_happened_before_request"]=!0,d["sentry.browser.measure_start_time"]=c),jt(t,c,u,{name:e.name,op:e.entryType,attributes:d})}(t,e,n,i,s);const o=G(),r=e.startTime<o.firstHiddenTime;"first-paint"===e.name&&r&&(N.T&&d.vF.log("[Measurements] Adding FP"),qt.fp={value:e.startTime,unit:"millisecond"}),"first-contentful-paint"===e.name&&r&&(N.T&&d.vF.log("[Measurements] Adding FCP"),qt.fcp={value:e.startTime,unit:"millisecond"});break}case"resource":!function(t,e,n,i,s,o){if("xmlhttprequest"===e.initiatorType||"fetch"===e.initiatorType)return;const r=(0,D.Dl)(n),c={[a.JD]:"auto.resource.browser.metrics"};Xt(c,e,"transferSize","http.response_transfer_size"),Xt(c,e,"encodedBodySize","http.response_content_length"),Xt(c,e,"decodedBodySize","http.decoded_response_content_length"),"renderBlockingStatus"in e&&(c["resource.render_blocking_status"]=e.renderBlockingStatus),r.protocol&&(c["url.scheme"]=r.protocol.split(":").pop()),r.host&&(c["server.address"]=r.host),c["url.same_origin"]=n.includes(M.j.location.origin);const l=o+i;jt(t,l,l+s,{name:n.replace(M.j.location.origin,""),op:e.initiatorType?`resource.${e.initiatorType}`:"resource.other",attributes:c})}(t,e,e.name,n,i,s)}})),Wt=Math.max(o.length-1,0),function(t){const e=M.j.navigator;if(!e)return;const n=e.connection;n&&(n.effectiveType&&t.setAttribute("effectiveConnectionType",n.effectiveType),n.type&&t.setAttribute("connectionType",n.type),Rt(n.rtt)&&(qt["connection.rtt"]={value:n.rtt,unit:"millisecond"})),Rt(e.deviceMemory)&&t.setAttribute("deviceMemory",`${e.deviceMemory} GB`),Rt(e.hardwareConcurrency)&&t.setAttribute("hardwareConcurrency",String(e.hardwareConcurrency))}(t),"pageload"===r){!function(t){const e=z();if(!e)return;const{responseStart:n,requestStart:i}=e;i<=n&&(N.T&&d.vF.log("[Measurements] Adding TTFB Request Time"),t["ttfb.requestTime"]={value:n-i,unit:"millisecond"})}(qt);const n=qt["mark.fid"];n&&qt.fid&&(jt(t,n.value,n.value+Bt(qt.fid.value),{name:"first input delay",op:"ui.action",attributes:{[a.JD]:"auto.ui.browser.metrics"}}),delete qt["mark.fid"]),"fcp"in qt&&e.recordClsOnPageloadSpan||delete qt.cls,Object.entries(qt).forEach((([t,e])=>{!function(t,e,n,s=(0,i.Bk)()){const o=s&&(0,i.zU)(s);o&&o.addEvent(t,{[a.xc]:e,[a.Sn]:n})}(t,e.value,e.unit)})),t.setAttribute("performance.timeOrigin",s),function(t){Ht&&(N.T&&d.vF.log("[Measurements] Adding LCP Data"),Ht.element&&t.setAttribute("lcp.element",(0,k.Hd)(Ht.element)),Ht.id&&t.setAttribute("lcp.id",Ht.id),Ht.url&&t.setAttribute("lcp.url",Ht.url.trim().slice(0,200)),t.setAttribute("lcp.size",Ht.size)),Ut&&Ut.sources&&(N.T&&d.vF.log("[Measurements] Adding CLS Data"),Ut.sources.forEach(((e,n)=>t.setAttribute(`cls.source.${n+1}`,(0,k.Hd)(e.node)))))}(t)}Ht=void 0,Ut=void 0,qt={}}(t,{recordClsOnPageloadSpan:!c})}});function u(){["interactive","complete"].includes(ue.jf.document.readyState)&&t.emit("idleSpanEnableAutoFinish",r)}return n&&ue.jf.document&&(ue.jf.document.addEventListener("readystatechange",(()=>{u()})),u()),r}return{name:"BrowserTracing",afterAllSetup(t){let n,s=ue.jf.location&&ue.jf.location.href;t.on("startNavigationSpan",(e=>{(0,o.KU)()===t&&(n&&!(0,i.et)(n).timestamp&&(le.T&&d.vF.log(`[Tracing] Finishing current root span with op: ${(0,i.et)(n).op}`),n.end()),n=C(t,{op:"navigation",...e}))})),t.on("startPageLoadSpan",((e,s={})=>{if((0,o.KU)()!==t)return;n&&!(0,i.et)(n).timestamp&&(le.T&&d.vF.log(`[Tracing] Finishing current root span with op: ${(0,i.et)(n).op}`),n.end());const r=s.sentryTrace||Te("sentry-trace"),a=s.baggage||Te("baggage"),c=(0,ae.kM)(r,a);(0,o.o5)().setPropagationContext(c),n=C(t,{op:"pageload",...e})})),t.on("spanEnd",(t=>{const e=(0,i.et)(t).op;if(t!==(0,i.zU)(t)||"navigation"!==e&&"pageload"!==e)return;const n=(0,o.o5)(),s=n.getPropagationContext();n.setPropagationContext({...s,sampled:void 0!==s.sampled?s.sampled:(0,i.pK)(t),dsc:s.dsc||(0,u.k1)(t)})})),ue.jf.location&&(S&&function(t,e){t.emit("startPageLoadSpan",e,void 0),(0,o.o5)().setTransactionName(e.name);const n=(0,i.Bk)();n&&(0,i.et)(n).op}(t,{name:ue.jf.location.pathname,startTime:g.k3?g.k3/1e3:void 0,attributes:{[a.i_]:"url",[a.JD]:"auto.pageload.browser"}}),_&&(0,Zt._)((({to:e,from:n})=>{void 0===n&&s&&-1!==s.indexOf(e)?s=void 0:n!==e&&(s=void 0,function(t,e){(0,o.rm)().setPropagationContext((0,ce.J)()),(0,o.o5)().setPropagationContext((0,ce.J)()),t.emit("startNavigationSpan",e),(0,o.o5)().setTransactionName(e.name);const n=(0,i.Bk)();n&&(0,i.et)(n).op}(t,{name:ue.jf.location.pathname,attributes:{[a.i_]:"url",[a.JD]:"auto.navigation.browser"}}))}))),m&&(ue.jf&&ue.jf.document?ue.jf.document.addEventListener("visibilitychange",(()=>{const t=(0,i.Bk)();if(!t)return;const e=(0,i.zU)(t);if(ue.jf.document.hidden&&e){const t="cancelled",{op:n,status:s}=(0,i.et)(e);le.T&&d.vF.log(`[Tracing] Transaction: ${t} -> since tab moved to the background, op: ${n}`),s||e.setStatus({code:Qt.TJ,message:t}),e.setAttribute("sentry.cancellation_reason","document.hidden"),e.end()}})):le.T&&d.vF.warn("[Tracing] Could not set up background tab detection due to lack of global document")),r&&function(t,e,n,s){let o;ue.jf.document&&addEventListener("click",(()=>{const r="ui.action.click",c=(0,i.Bk)(),l=c&&(0,i.zU)(c);if(l){const t=(0,i.et)(l).op;if(["navigation","pageload"].includes(t))return void(le.T&&d.vF.warn(`[Tracing] Did not create ${r} span because a pageload or navigation span is in progress.`))}o&&(o.setAttribute(a.fs,"interactionInterrupted"),o.end(),o=void 0),s.name?o=ee({name:s.name,op:r,attributes:{[a.i_]:s.source||"url"}},{idleTimeout:t,finalTimeout:e,childSpanTimeout:n}):le.T&&d.vF.warn(`[Tracing] Did not create ${r} transaction because _latestRouteName is missing.`)}),{once:!1,capture:!0})}(h,p,f,T),e&&function(){const t=({entries:t})=>{const e=(0,i.Bk)(),n=e&&(0,i.zU)(e);t.forEach((t=>{if(!function(t){return"duration"in t}(t)||!n)return;const e=t.interactionId;if(null!=e&&!Yt.has(e)){if(Kt.length>10){const t=Kt.shift();Yt.delete(t)}Kt.push(e),Yt.set(e,n)}}))};Ct("event",t),Ct("first-input",t)}(),ye(t,{traceFetch:b,traceXHR:y,tracePropagationTargets:t.getOptions().tracePropagationTargets,shouldCreateSpanForRequest:w,enableHTTPTimings:E})}}};function Te(t){const e=(0,k.NX)(`meta[name=${t}]`);return e?e.getAttribute("content"):void 0}},2328:function(t,e,n){"use strict";n.d(e,{h:function(){return h}});var i=n(5200),s=n(6752),o=n(9085),r=n(4988);class a{constructor(t,e){let n,i;n=t||new r.H,i=e||new r.H,this._stack=[{scope:n}],this._isolationScope=i}withScope(t){const e=this._pushScope();let n;try{n=t(e)}catch(t){throw this._popScope(),t}return(0,s.Qg)(n)?n.then((t=>(this._popScope(),t)),(t=>{throw this._popScope(),t})):(this._popScope(),n)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){const t=this.getScope().clone();return this._stack.push({client:this.getClient(),scope:t}),t}_popScope(){return!(this._stack.length<=1||!this._stack.pop())}}function c(){const t=(0,i.E)(),e=(0,i.S)(t);return e.stack=e.stack||new a((0,o.B)("defaultCurrentScope",(()=>new r.H)),(0,o.B)("defaultIsolationScope",(()=>new r.H)))}function l(t){return c().withScope(t)}function u(t,e){const n=c();return n.withScope((()=>(n.getStackTop().scope=t,e(t))))}function d(t){return c().withScope((()=>t(c().getIsolationScope())))}function h(t){const e=(0,i.S)(t);return e.acs?e.acs:{withIsolationScope:d,withScope:l,withSetScope:u,withSetIsolationScope:(t,e)=>d(e),getCurrentScope:()=>c().getScope(),getIsolationScope:()=>c().getIsolationScope()}}},5200:function(t,e,n){"use strict";n.d(e,{E:function(){return o},S:function(){return r}});var i=n(9085),s=n(8074);function o(){return r(i.O),i.O}function r(t){const e=t.__SENTRY__=t.__SENTRY__||{};return e.version=e.version||s.M,e[s.M]=e[s.M]||{}}},7313:function(t,e,n){"use strict";n.d(e,{U:function(){return i}});const i="production"},7968:function(t,e,n){"use strict";n.d(e,{KU:function(){return d},m6:function(){return l},o5:function(){return a},rm:function(){return c},v4:function(){return u}});var i=n(9085),s=n(2328),o=n(5200),r=n(4988);function a(){const t=(0,o.E)();return(0,s.h)(t).getCurrentScope()}function c(){const t=(0,o.E)();return(0,s.h)(t).getIsolationScope()}function l(){return(0,i.B)("globalScope",(()=>new r.H))}function u(...t){const e=(0,o.E)(),n=(0,s.h)(e);if(2===t.length){const[e,i]=t;return e?n.withSetScope(e,i):n.withScope(i)}return n.withScope(t[0])}function d(){return a().getClient()}},6674:function(t,e,n){"use strict";n.d(e,{T:function(){return i}});const i="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__},5330:function(t,e,n){"use strict";n.d(e,{LE:function(){return a},V7:function(){return c},lu:function(){return l}});var i=n(4984),s=n(1447),o=n(1158),r=n(5915);function a(t,e,n,o){const r=(0,i.Cj)(n),a={sent_at:(new Date).toISOString(),...r&&{sdk:r},...!!o&&e&&{dsn:(0,s.SB)(e)}},c="aggregates"in t?[{type:"sessions"},t]:[{type:"session"},t.toJSON()];return(0,i.h4)(a,[c])}function c(t,e,n,s){const o=(0,i.Cj)(n),r=t.type&&"replay_event"!==t.type?t.type:"event";!function(t,e){e&&(t.sdk=t.sdk||{},t.sdk.name=t.sdk.name||e.name,t.sdk.version=t.sdk.version||e.version,t.sdk.integrations=[...t.sdk.integrations||[],...e.integrations||[]],t.sdk.packages=[...t.sdk.packages||[],...e.packages||[]])}(t,n&&n.sdk);const a=(0,i.n2)(t,o,s,e);delete t.sdkProcessingMetadata;const c=[{type:r},t];return(0,i.h4)(a,[c])}function l(t,e){const n=(0,o.k1)(t[0]),a=e&&e.getDsn(),c=e&&e.getOptions().tunnel,l={sent_at:(new Date).toISOString(),...function(t){return!!t.trace_id&&!!t.public_key}(n)&&{trace:n},...!!c&&a&&{dsn:(0,s.SB)(a)}},u=e&&e.getOptions().beforeSendSpan,d=u?t=>u((0,r.et)(t)):t=>(0,r.et)(t),h=[];for(const e of t){const t=d(e);t&&h.push((0,i.y5)(t))}return(0,i.h4)(l,h)}},4251:function(t,e,n){"use strict";n.d(e,{Cp:function(){return c},J0:function(){return u},J5:function(){return p},r:function(){return l}});var i=n(9085),s=n(7313),o=n(7968),r=n(9328),a=n(204);function c(t,e){return(0,o.o5)().captureException(t,(0,a.li)(e))}function l(t,e){return(0,o.o5)().captureEvent(t,e)}function u(t){const e=(0,o.KU)(),n=(0,o.rm)(),a=(0,o.o5)(),{release:c,environment:l=s.U}=e&&e.getOptions()||{},{userAgent:u}=i.O.navigator||{},h=(0,r.fj)({release:c,environment:l,user:a.getUser()||n.getUser(),...u&&{userAgent:u},...t}),p=n.getSession();return p&&"ok"===p.status&&(0,r.qO)(p,{status:"exited"}),d(),n.setSession(h),a.setSession(h),h}function d(){const t=(0,o.rm)(),e=(0,o.o5)(),n=e.getSession()||t.getSession();n&&(0,r.Vu)(n),h(),t.setSession(),e.setSession()}function h(){const t=(0,o.rm)(),e=(0,o.o5)(),n=(0,o.KU)(),i=e.getSession()||t.getSession();i&&n&&n.captureSession(i)}function p(t=!1){t?d():h()}},2409:function(t,e,n){"use strict";n.d(e,{g:function(){return o}});var i=n(179);const s="_sentryMetrics";function o(t){const e=t[s];if(!e)return;const n={};for(const[,[t,s]]of e)(n[t]||(n[t]=[])).push((0,i.Ce)(s));return n}},4988:function(t,e,n){"use strict";n.d(e,{H:function(){return d}});var i=n(2317),s=n(6752),o=n(1305),r=n(9888),a=n(3932),c=n(9328),l=n(333);class u{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext=(0,i.J)()}clone(){const t=new u;return t._breadcrumbs=[...this._breadcrumbs],t._tags={...this._tags},t._extra={...this._extra},t._contexts={...this._contexts},t._user=this._user,t._level=this._level,t._session=this._session,t._transactionName=this._transactionName,t._fingerprint=this._fingerprint,t._eventProcessors=[...this._eventProcessors],t._requestSession=this._requestSession,t._attachments=[...this._attachments],t._sdkProcessingMetadata={...this._sdkProcessingMetadata},t._propagationContext={...this._propagationContext},t._client=this._client,t._lastEventId=this._lastEventId,(0,l.r)(t,(0,l.f)(this)),t}setClient(t){this._client=t}setLastEventId(t){this._lastEventId=t}getClient(){return this._client}lastEventId(){return this._lastEventId}addScopeListener(t){this._scopeListeners.push(t)}addEventProcessor(t){return this._eventProcessors.push(t),this}setUser(t){return this._user=t||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this._session&&(0,c.qO)(this._session,{user:t}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(t){return this._requestSession=t,this}setTags(t){return this._tags={...this._tags,...t},this._notifyScopeListeners(),this}setTag(t,e){return this._tags={...this._tags,[t]:e},this._notifyScopeListeners(),this}setExtras(t){return this._extra={...this._extra,...t},this._notifyScopeListeners(),this}setExtra(t,e){return this._extra={...this._extra,[t]:e},this._notifyScopeListeners(),this}setFingerprint(t){return this._fingerprint=t,this._notifyScopeListeners(),this}setLevel(t){return this._level=t,this._notifyScopeListeners(),this}setTransactionName(t){return this._transactionName=t,this._notifyScopeListeners(),this}setContext(t,e){return null===e?delete this._contexts[t]:this._contexts[t]=e,this._notifyScopeListeners(),this}setSession(t){return t?this._session=t:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(t){if(!t)return this;const e="function"==typeof t?t(this):t,[n,i]=e instanceof d?[e.getScopeData(),e.getRequestSession()]:(0,s.Qd)(e)?[t,t.requestSession]:[],{tags:o,extra:r,user:a,contexts:c,level:l,fingerprint:u=[],propagationContext:h}=n||{};return this._tags={...this._tags,...o},this._extra={...this._extra,...r},this._contexts={...this._contexts,...c},a&&Object.keys(a).length&&(this._user=a),l&&(this._level=l),u.length&&(this._fingerprint=u),h&&(this._propagationContext=h),i&&(this._requestSession=i),this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._session=void 0,(0,l.r)(this,void 0),this._attachments=[],this._propagationContext=(0,i.J)(),this._notifyScopeListeners(),this}addBreadcrumb(t,e){const n="number"==typeof e?e:100;if(n<=0)return this;const i={timestamp:(0,o.lu)(),...t},s=this._breadcrumbs;return s.push(i),this._breadcrumbs=s.length>n?s.slice(-n):s,this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(t){return this._attachments.push(t),this}clearAttachments(){return this._attachments=[],this}getScopeData(){return{breadcrumbs:this._breadcrumbs,attachments:this._attachments,contexts:this._contexts,tags:this._tags,extra:this._extra,user:this._user,level:this._level,fingerprint:this._fingerprint||[],eventProcessors:this._eventProcessors,propagationContext:this._propagationContext,sdkProcessingMetadata:this._sdkProcessingMetadata,transactionName:this._transactionName,span:(0,l.f)(this)}}setSDKProcessingMetadata(t){return this._sdkProcessingMetadata={...this._sdkProcessingMetadata,...t},this}setPropagationContext(t){return this._propagationContext=t,this}getPropagationContext(){return this._propagationContext}captureException(t,e){const n=e&&e.event_id?e.event_id:(0,r.eJ)();if(!this._client)return a.vF.warn("No client configured on scope - will not capture exception!"),n;const i=new Error("Sentry syntheticException");return this._client.captureException(t,{originalException:t,syntheticException:i,...e,event_id:n},this),n}captureMessage(t,e,n){const i=n&&n.event_id?n.event_id:(0,r.eJ)();if(!this._client)return a.vF.warn("No client configured on scope - will not capture message!"),i;const s=new Error(t);return this._client.captureMessage(t,e,{originalException:t,syntheticException:s,...n,event_id:i},this),i}captureEvent(t,e){const n=e&&e.event_id?e.event_id:(0,r.eJ)();return this._client?(this._client.captureEvent(t,{...e,event_id:n},this),n):(a.vF.warn("No client configured on scope - will not capture event!"),n)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach((t=>{t(this)})),this._notifyingListeners=!1)}}const d=u},4611:function(t,e,n){"use strict";n.d(e,{E1:function(){return u},JD:function(){return r},Sn:function(){return c},fs:function(){return a},i_:function(){return i},jG:function(){return d},sy:function(){return s},uT:function(){return o},xc:function(){return l}});const i="sentry.source",s="sentry.sample_rate",o="sentry.op",r="sentry.origin",a="sentry.idle_span_finish_reason",c="sentry.measurement_unit",l="sentry.measurement_value",u="sentry.profile_id",d="sentry.exclusive_time"},9328:function(t,e,n){"use strict";n.d(e,{Vu:function(){return c},fj:function(){return r},qO:function(){return a}});var i=n(1305),s=n(9888),o=n(179);function r(t){const e=(0,i.zf)(),n={sid:(0,s.eJ)(),init:!0,timestamp:e,started:e,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>function(t){return(0,o.Ce)({sid:`${t.sid}`,init:t.init,started:new Date(1e3*t.started).toISOString(),timestamp:new Date(1e3*t.timestamp).toISOString(),status:t.status,errors:t.errors,did:"number"==typeof t.did||"string"==typeof t.did?`${t.did}`:void 0,duration:t.duration,abnormal_mechanism:t.abnormal_mechanism,attrs:{release:t.release,environment:t.environment,ip_address:t.ipAddress,user_agent:t.userAgent}})}(n)};return t&&a(n,t),n}function a(t,e={}){if(e.user&&(!t.ipAddress&&e.user.ip_address&&(t.ipAddress=e.user.ip_address),t.did||e.did||(t.did=e.user.id||e.user.email||e.user.username)),t.timestamp=e.timestamp||(0,i.zf)(),e.abnormal_mechanism&&(t.abnormal_mechanism=e.abnormal_mechanism),e.ignoreDuration&&(t.ignoreDuration=e.ignoreDuration),e.sid&&(t.sid=32===e.sid.length?e.sid:(0,s.eJ)()),void 0!==e.init&&(t.init=e.init),!t.did&&e.did&&(t.did=`${e.did}`),"number"==typeof e.started&&(t.started=e.started),t.ignoreDuration)t.duration=void 0;else if("number"==typeof e.duration)t.duration=e.duration;else{const e=t.timestamp-t.started;t.duration=e>=0?e:0}e.release&&(t.release=e.release),e.environment&&(t.environment=e.environment),!t.ipAddress&&e.ipAddress&&(t.ipAddress=e.ipAddress),!t.userAgent&&e.userAgent&&(t.userAgent=e.userAgent),"number"==typeof e.errors&&(t.errors=e.errors),e.status&&(t.status=e.status)}function c(t,e){let n={};e?n={status:e}:"ok"===t.status&&(n={status:"exited"}),a(t,n)}},1158:function(t,e,n){"use strict";n.d(e,{LZ:function(){return u},k1:function(){return h},lF:function(){return d}});var i=n(179),s=n(6904),o=n(7313),r=n(7968),a=n(4611),c=n(5915);const l="_frozenDsc";function u(t,e){const n=t;(0,i.my)(n,l,e)}function d(t,e){const n=e.getOptions(),{publicKey:s}=e.getDsn()||{},r=(0,i.Ce)({environment:n.environment||o.U,release:n.release,public_key:s,trace_id:t});return e.emit("createDsc",r),r}function h(t){const e=(0,r.KU)();if(!e)return{};const n=d((0,c.et)(t).trace_id||"",e),i=(0,c.zU)(t),o=i[l];if(o)return o;const u=i.spanContext().traceState,h=u&&u.get("sentry.dsc"),p=h&&(0,s.yD)(h);if(p)return p;const f=(0,c.et)(i),m=f.data||{},g=m[a.sy];null!=g&&(n.sample_rate=`${g}`);const v=m[a.i_],b=f.description;return"url"!==v&&b&&(n.transaction=b),n.sampled=String((0,c.pK)(i)),e.emit("createDsc",n,i),n}},1135:function(t,e,n){"use strict";n.d(e,{F3:function(){return s},N8:function(){return r},TJ:function(){return o},a3:function(){return i}});const i=0,s=1,o=2;function r(t,e){t.setAttribute("http.response.status_code",e);const n=function(t){if(t<400&&t>=100)return{code:s};if(t>=400&&t<500)switch(t){case 401:return{code:o,message:"unauthenticated"};case 403:return{code:o,message:"permission_denied"};case 404:return{code:o,message:"not_found"};case 409:return{code:o,message:"already_exists"};case 413:return{code:o,message:"failed_precondition"};case 429:return{code:o,message:"resource_exhausted"};case 499:return{code:o,message:"cancelled"};default:return{code:o,message:"invalid_argument"}}if(t>=500&&t<600)switch(t){case 501:return{code:o,message:"unimplemented"};case 503:return{code:o,message:"unavailable"};case 504:return{code:o,message:"deadline_exceeded"};default:return{code:o,message:"internal_error"}}return{code:o,message:"unknown_error"}}(e);"unknown_error"!==n.message&&t.setStatus(n)}},1773:function(t,e,n){"use strict";n.d(e,{i:function(){return o}});var i=n(3932),s=n(6674);function o(t){if("boolean"==typeof t)return Number(t);const e="string"==typeof t?parseFloat(t):t;if(!("number"!=typeof e||isNaN(e)||e<0||e>1))return e;s.T&&i.vF.warn(`[Tracing] Given sample rate is invalid. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(t)} of type ${JSON.stringify(typeof t)}.`)}},204:function(t,e,n){"use strict";n.d(e,{li:function(){return _},mG:function(){return E}});var i=n(9888),s=n(1305),o=n(6013),r=n(9085),a=n(6845),c=n(7313),l=n(7968),u=n(1114),d=n(3932),h=n(6752),p=n(6674);function f(t,e,n,i=0){return new u.T2(((s,o)=>{const r=t[i];if(null===e||"function"!=typeof r)s(e);else{const a=r({...e},n);p.T&&r.id&&null===a&&d.vF.log(`Event processor "${r.id}" dropped event`),(0,h.Qg)(a)?a.then((e=>f(t,e,n,i+1).then(s))).then(null,o):f(t,a,n,i+1).then(s).then(null,o)}}))}var m=n(4988),g=n(179),v=n(1158),b=n(5915);function y(t,e){const{extra:n,tags:i,user:s,contexts:o,level:r,sdkProcessingMetadata:a,breadcrumbs:c,fingerprint:l,eventProcessors:u,attachments:d,propagationContext:h,transactionName:p,span:f}=e;w(t,"extra",n),w(t,"tags",i),w(t,"user",s),w(t,"contexts",o),w(t,"sdkProcessingMetadata",a),r&&(t.level=r),p&&(t.transactionName=p),f&&(t.span=f),c.length&&(t.breadcrumbs=[...t.breadcrumbs,...c]),l.length&&(t.fingerprint=[...t.fingerprint,...l]),u.length&&(t.eventProcessors=[...t.eventProcessors,...u]),d.length&&(t.attachments=[...t.attachments,...d]),t.propagationContext={...t.propagationContext,...h}}function w(t,e,n){if(n&&Object.keys(n).length){t[e]={...t[e]};for(const i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[e][i]=n[i])}}function E(t,e,n,u,d,h){const{normalizeDepth:p=3,normalizeMaxBreadth:w=1e3}=t,E={...e,event_id:e.event_id||n.event_id||(0,i.eJ)(),timestamp:e.timestamp||(0,s.lu)()},_=n.integrations||t.integrations.map((t=>t.name));!function(t,e){const{environment:n,release:i,dist:s,maxValueLength:r=250}=e;"environment"in t||(t.environment="environment"in e?n:c.U),void 0===t.release&&void 0!==i&&(t.release=i),void 0===t.dist&&void 0!==s&&(t.dist=s),t.message&&(t.message=(0,o.xv)(t.message,r));const a=t.exception&&t.exception.values&&t.exception.values[0];a&&a.value&&(a.value=(0,o.xv)(a.value,r));const l=t.request;l&&l.url&&(l.url=(0,o.xv)(l.url,r))}(E,t),function(t,e){e.length>0&&(t.sdk=t.sdk||{},t.sdk.integrations=[...t.sdk.integrations||[],...e])}(E,_),d&&d.emit("applyFrameMetadata",e),void 0===e.type&&function(t,e){const n=r.O._sentryDebugIds;if(!n)return;let i;const s=S.get(e);s?i=s:(i=new Map,S.set(e,i));const o=Object.entries(n).reduce(((t,[n,s])=>{let o;const r=i.get(n);r?o=r:(o=e(n),i.set(n,o));for(let e=o.length-1;e>=0;e--){const n=o[e];if(n.filename){t[n.filename]=s;break}}return t}),{});try{t.exception.values.forEach((t=>{t.stacktrace.frames.forEach((t=>{t.filename&&(t.debug_id=o[t.filename])}))}))}catch(t){}}(E,t.stackParser);const x=function(t,e){if(!e)return t;const n=t?t.clone():new m.H;return n.update(e),n}(u,n.captureContext);n.mechanism&&(0,i.M6)(E,n.mechanism);const T=d?d.getEventProcessors():[],C=(0,l.m6)().getScopeData();h&&y(C,h.getScopeData()),x&&y(C,x.getScopeData());const O=[...n.attachments||[],...C.attachments];return O.length&&(n.attachments=O),function(t,e){const{fingerprint:n,span:s,breadcrumbs:o,sdkProcessingMetadata:r}=e;!function(t,e){const{extra:n,tags:i,user:s,contexts:o,level:r,transactionName:a}=e,c=(0,g.Ce)(n);c&&Object.keys(c).length&&(t.extra={...c,...t.extra});const l=(0,g.Ce)(i);l&&Object.keys(l).length&&(t.tags={...l,...t.tags});const u=(0,g.Ce)(s);u&&Object.keys(u).length&&(t.user={...u,...t.user});const d=(0,g.Ce)(o);d&&Object.keys(d).length&&(t.contexts={...d,...t.contexts}),r&&(t.level=r),a&&"transaction"!==t.type&&(t.transaction=a)}(t,e),s&&function(t,e){t.contexts={trace:(0,b.kX)(e),...t.contexts},t.sdkProcessingMetadata={dynamicSamplingContext:(0,v.k1)(e),...t.sdkProcessingMetadata};const n=(0,b.zU)(e),i=(0,b.et)(n).description;i&&!t.transaction&&"transaction"===t.type&&(t.transaction=i)}(t,s),function(t,e){t.fingerprint=t.fingerprint?(0,i.k9)(t.fingerprint):[],e&&(t.fingerprint=t.fingerprint.concat(e)),t.fingerprint&&!t.fingerprint.length&&delete t.fingerprint}(t,n),function(t,e){const n=[...t.breadcrumbs||[],...e];t.breadcrumbs=n.length?n:void 0}(t,o),function(t,e){t.sdkProcessingMetadata={...t.sdkProcessingMetadata,...e}}(t,r)}(E,C),f([...T,...C.eventProcessors],E,n).then((t=>(t&&function(t){const e={};try{t.exception.values.forEach((t=>{t.stacktrace.frames.forEach((t=>{t.debug_id&&(t.abs_path?e[t.abs_path]=t.debug_id:t.filename&&(e[t.filename]=t.debug_id),delete t.debug_id)}))}))}catch(t){}if(0===Object.keys(e).length)return;t.debug_meta=t.debug_meta||{},t.debug_meta.images=t.debug_meta.images||[];const n=t.debug_meta.images;Object.entries(e).forEach((([t,e])=>{n.push({type:"sourcemap",code_file:t,debug_id:e})}))}(t),"number"==typeof p&&p>0?function(t,e,n){if(!t)return null;const i={...t,...t.breadcrumbs&&{breadcrumbs:t.breadcrumbs.map((t=>({...t,...t.data&&{data:(0,a.S8)(t.data,e,n)}})))},...t.user&&{user:(0,a.S8)(t.user,e,n)},...t.contexts&&{contexts:(0,a.S8)(t.contexts,e,n)},...t.extra&&{extra:(0,a.S8)(t.extra,e,n)}};return t.contexts&&t.contexts.trace&&i.contexts&&(i.contexts.trace=t.contexts.trace,t.contexts.trace.data&&(i.contexts.trace.data=(0,a.S8)(t.contexts.trace.data,e,n))),t.spans&&(i.spans=t.spans.map((t=>({...t,...t.data&&{data:(0,a.S8)(t.data,e,n)}})))),i}(t,p,w):t)))}const S=new WeakMap;function _(t){if(t)return function(t){return t instanceof m.H||"function"==typeof t}(t)||function(t){return Object.keys(t).some((t=>x.includes(t)))}(t)?{captureContext:t}:t}const x=["user","level","extra","contexts","tags","fingerprint","requestSession","propagationContext"]},333:function(t,e,n){"use strict";n.d(e,{f:function(){return r},r:function(){return o}});var i=n(179);const s="_sentrySpan";function o(t,e){e?(0,i.my)(t,s,e):delete t[s]}function r(t){return t[s]}},5915:function(t,e,n){"use strict";n.d(e,{Bk:function(){return P},CC:function(){return p},Ck:function(){return m},Hu:function(){return T},Qh:function(){return v},VS:function(){return C},aO:function(){return f},cI:function(){return b},et:function(){return w},kX:function(){return g},pK:function(){return E},xO:function(){return O},yW:function(){return S},zU:function(){return A}});var i=n(179),s=n(9540),o=n(1305),r=n(2328),a=n(5200),c=n(7968),l=n(2409),u=n(4611),d=n(1135),h=n(333);const p=0,f=1;function m(t){const{spanId:e,traceId:n}=t.spanContext(),{data:s,op:o,parent_span_id:r,status:a,origin:c}=w(t);return(0,i.Ce)({parent_span_id:r,span_id:e,trace_id:n,data:s,op:o,status:a,origin:c})}function g(t){const{spanId:e,traceId:n}=t.spanContext(),{parent_span_id:s}=w(t);return(0,i.Ce)({parent_span_id:s,span_id:e,trace_id:n})}function v(t){const{traceId:e,spanId:n}=t.spanContext(),i=E(t);return(0,s.TC)(e,n,i)}function b(t){return"number"==typeof t?y(t):Array.isArray(t)?t[0]+t[1]/1e9:t instanceof Date?y(t.getTime()):(0,o.zf)()}function y(t){return t>9999999999?t/1e3:t}function w(t){if(function(t){return"function"==typeof t.getSpanJSON}(t))return t.getSpanJSON();try{const{spanId:e,traceId:n}=t.spanContext();if(function(t){const e=t;return!!(e.attributes&&e.startTime&&e.name&&e.endTime&&e.status)}(t)){const{attributes:s,startTime:o,name:r,endTime:a,parentSpanId:c,status:d}=t;return(0,i.Ce)({span_id:e,trace_id:n,data:s,description:r,parent_span_id:c,start_timestamp:b(o),timestamp:b(a)||void 0,status:S(d),op:s[u.uT],origin:s[u.JD],_metrics_summary:(0,l.g)(t)})}return{span_id:e,trace_id:n}}catch(t){return{}}}function E(t){const{traceFlags:e}=t.spanContext();return e===f}function S(t){if(t&&t.code!==d.a3)return t.code===d.F3?"ok":t.message||"unknown_error"}const _="_sentryChildSpans",x="_sentryRootSpan";function T(t,e){const n=t[x]||t;(0,i.my)(e,x,n),t[_]?t[_].add(e):(0,i.my)(t,_,new Set([e]))}function C(t,e){t[_]&&t[_].delete(e)}function O(t){const e=new Set;return function t(n){if(!e.has(n)&&E(n)){e.add(n);const i=n[_]?Array.from(n[_]):[];for(const e of i)t(e)}}(t),Array.from(e)}function A(t){return t[x]||t}function P(){const t=(0,a.E)(),e=(0,r.h)(t);return e.getActiveSpan?e.getActiveSpan():(0,h.f)((0,c.o5)())}},6904:function(t,e,n){"use strict";n.d(e,{De:function(){return d},hF:function(){return r},yD:function(){return u}});var i=n(3364),s=n(6752),o=n(3932);const r="baggage",a="sentry-",c=/^sentry-/,l=8192;function u(t){const e=function(t){if(t&&((0,s.Kg)(t)||Array.isArray(t)))return Array.isArray(t)?t.reduce(((t,e)=>{const n=h(e);return Object.entries(n).forEach((([e,n])=>{t[e]=n})),t}),{}):h(t)}(t);if(!e)return;const n=Object.entries(e).reduce(((t,[e,n])=>(e.match(c)&&(t[e.slice(a.length)]=n),t)),{});return Object.keys(n).length>0?n:void 0}function d(t){if(t)return function(t){if(0!==Object.keys(t).length)return Object.entries(t).reduce(((t,[e,n],s)=>{const r=`${encodeURIComponent(e)}=${encodeURIComponent(n)}`,a=0===s?r:`${t},${r}`;return a.length>l?(i.T&&o.vF.warn(`Not adding key: ${e} with val: ${n} to baggage header due to exceeding baggage size limits.`),t):a}),"")}(Object.entries(t).reduce(((t,[e,n])=>(n&&(t[`${a}${e}`]=n),t)),{}))}function h(t){return t.split(",").map((t=>t.split("=").map((t=>decodeURIComponent(t.trim()))))).reduce(((t,[e,n])=>(e&&n&&(t[e]=n),t)),{})}},5166:function(t,e,n){"use strict";n.d(e,{$N:function(){return c},Hd:function(){return r},NX:function(){return l},xE:function(){return u}});var i=n(6752);const s=n(9085).O,o=80;function r(t,e={}){if(!t)return"<unknown>";try{let n=t;const i=5,s=[];let r=0,c=0;const l=" > ",u=l.length;let d;const h=Array.isArray(e)?e:e.keyAttrs,p=!Array.isArray(e)&&e.maxStringLength||o;for(;n&&r++<i&&(d=a(n,h),!("html"===d||r>1&&c+s.length*u+d.length>=p));)s.push(d),c+=d.length,n=n.parentNode;return s.reverse().join(l)}catch(t){return"<unknown>"}}function a(t,e){const n=t,o=[];if(!n||!n.tagName)return"";if(s.HTMLElement&&n instanceof HTMLElement&&n.dataset){if(n.dataset.sentryComponent)return n.dataset.sentryComponent;if(n.dataset.sentryElement)return n.dataset.sentryElement}o.push(n.tagName.toLowerCase());const r=e&&e.length?e.filter((t=>n.getAttribute(t))).map((t=>[t,n.getAttribute(t)])):null;if(r&&r.length)r.forEach((t=>{o.push(`[${t[0]}="${t[1]}"]`)}));else{n.id&&o.push(`#${n.id}`);const t=n.className;if(t&&(0,i.Kg)(t)){const e=t.split(/\s+/);for(const t of e)o.push(`.${t}`)}}const a=["aria-label","type","name","title","alt"];for(const t of a){const e=n.getAttribute(t);e&&o.push(`[${t}="${e}"]`)}return o.join("")}function c(){try{return s.document.location.href}catch(t){return""}}function l(t){return s.document&&s.document.querySelector?s.document.querySelector(t):null}function u(t){if(!s.HTMLElement)return null;let e=t;for(let t=0;t<5;t++){if(!e)return null;if(e instanceof HTMLElement){if(e.dataset.sentryComponent)return e.dataset.sentryComponent;if(e.dataset.sentryElement)return e.dataset.sentryElement}e=e.parentNode}return null}},3364:function(t,e,n){"use strict";n.d(e,{T:function(){return i}});const i="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__},1447:function(t,e,n){"use strict";n.d(e,{AD:function(){return c},SB:function(){return r}});var i=n(3364),s=n(3932);const o=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function r(t,e=!1){const{host:n,path:i,pass:s,port:o,projectId:r,protocol:a,publicKey:c}=t;return`${a}://${c}${e&&s?`:${s}`:""}@${n}${o?`:${o}`:""}/${i?`${i}/`:i}${r}`}function a(t){return{protocol:t.protocol,publicKey:t.publicKey||"",pass:t.pass||"",host:t.host,port:t.port||"",path:t.path||"",projectId:t.projectId}}function c(t){const e="string"==typeof t?function(t){const e=o.exec(t);if(!e)return void(0,s.pq)((()=>{console.error(`Invalid Sentry Dsn: ${t}`)}));const[n,i,r="",c="",l="",u=""]=e.slice(1);let d="",h=u;const p=h.split("/");if(p.length>1&&(d=p.slice(0,-1).join("/"),h=p.pop()),h){const t=h.match(/^\d+/);t&&(h=t[0])}return a({host:c,pass:r,path:d,projectId:h,port:l,protocol:n,publicKey:i})}(t):a(t);if(e&&function(t){if(!i.T)return!0;const{port:e,projectId:n,protocol:o}=t;return!(["protocol","publicKey","host","projectId"].find((e=>!t[e]&&(s.vF.error(`Invalid Sentry Dsn: ${e} missing`),!0)))||(n.match(/^\d+$/)?function(t){return"http"===t||"https"===t}(o)?e&&isNaN(parseInt(e,10))&&(s.vF.error(`Invalid Sentry Dsn: Invalid port ${e}`),1):(s.vF.error(`Invalid Sentry Dsn: Invalid protocol ${o}`),1):(s.vF.error(`Invalid Sentry Dsn: Invalid projectId ${n}`),1)))}(e))return e}},4984:function(t,e,n){"use strict";n.d(e,{Cj:function(){return g},W3:function(){return c},bN:function(){return d},bm:function(){return p},h4:function(){return a},n2:function(){return v},y5:function(){return h},yH:function(){return l},zk:function(){return m}});var i=n(1447),s=n(6845),o=n(179),r=n(9085);function a(t,e=[]){return[t,e]}function c(t,e){const[n,i]=t;return[n,[...i,e]]}function l(t,e){const n=t[1];for(const t of n)if(e(t,t[0].type))return!0;return!1}function u(t){return r.O.__SENTRY__&&r.O.__SENTRY__.encodePolyfill?r.O.__SENTRY__.encodePolyfill(t):(new TextEncoder).encode(t)}function d(t){const[e,n]=t;let i=JSON.stringify(e);function o(t){"string"==typeof i?i="string"==typeof t?i+t:[u(i),t]:i.push("string"==typeof t?u(t):t)}for(const t of n){const[e,n]=t;if(o(`\n${JSON.stringify(e)}\n`),"string"==typeof n||n instanceof Uint8Array)o(n);else{let t;try{t=JSON.stringify(n)}catch(e){t=JSON.stringify((0,s.S8)(n))}o(t)}}return"string"==typeof i?i:function(t){const e=t.reduce(((t,e)=>t+e.length),0),n=new Uint8Array(e);let i=0;for(const e of t)n.set(e,i),i+=e.length;return n}(i)}function h(t){return[{type:"span"},t]}function p(t){const e="string"==typeof t.data?u(t.data):t.data;return[(0,o.Ce)({type:"attachment",length:e.length,filename:t.filename,content_type:t.contentType,attachment_type:t.attachmentType}),e]}const f={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",profile_chunk:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",feedback:"feedback",span:"span",statsd:"metric_bucket"};function m(t){return f[t]}function g(t){if(!t||!t.sdk)return;const{name:e,version:n}=t.sdk;return{name:e,version:n}}function v(t,e,n,s){const r=t.sdkProcessingMetadata&&t.sdkProcessingMetadata.dynamicSamplingContext;return{event_id:t.event_id,sent_at:(new Date).toISOString(),...e&&{sdk:e},...!!n&&s&&{dsn:(0,i.SB)(s)},...r&&{trace:(0,o.Ce)({...r})}}}},1098:function(t,e,n){"use strict";n.d(e,{B$:function(){return u},ur:function(){return l}});var i=n(6752),s=n(179),o=n(2544),r=n(1305),a=n(9085),c=n(2433);function l(t,e){const n="fetch";(0,c.s5)(n,t),(0,c.AS)(n,(()=>d(void 0,e)))}function u(t){const e="fetch-body-resolved";(0,c.s5)(e,t),(0,c.AS)(e,(()=>d(h)))}function d(t,e=!1){e&&!(0,o.m7)()||(0,s.GS)(a.O,"fetch",(function(e){return function(...n){const{method:o,url:l}=function(t){if(0===t.length)return{method:"GET",url:""};if(2===t.length){const[e,n]=t;return{url:f(e),method:p(n,"method")?String(n.method).toUpperCase():"GET"}}const e=t[0];return{url:f(e),method:p(e,"method")?String(e.method).toUpperCase():"GET"}}(n),u={args:n,fetchData:{method:o,url:l},startTimestamp:1e3*(0,r.zf)()};t||(0,c.aj)("fetch",{...u});const d=(new Error).stack;return e.apply(a.O,n).then((async e=>(t?t(e):(0,c.aj)("fetch",{...u,endTimestamp:1e3*(0,r.zf)(),response:e}),e)),(t=>{throw(0,c.aj)("fetch",{...u,endTimestamp:1e3*(0,r.zf)(),error:t}),(0,i.bJ)(t)&&void 0===t.stack&&(t.stack=d,(0,s.my)(t,"framesToPop",1)),t}))}}))}async function h(t){let e;try{e=t.clone()}catch(t){return}await async function(e){if(e&&e.body&&e.body.getReader){const n=e.body.getReader();async function i({done:t}){if(t)return Promise.resolve();try{const t=await Promise.race([n.read(),new Promise((t=>{setTimeout((()=>{t({done:!0})}),5e3)}))]);await i(t)}catch(t){}}return n.read().then(i).then((()=>{(0,c.aj)("fetch-body-resolved",{endTimestamp:1e3*(0,r.zf)(),response:t})})).catch((()=>{}))}}(e)}function p(t,e){return!!t&&"object"==typeof t&&!!t[e]}function f(t){return"string"==typeof t?t:t?p(t,"url")?t.url:t.toString?t.toString():"":""}},7397:function(t,e,n){"use strict";n.d(e,{L:function(){return r}});var i=n(9085),s=n(2433);let o=null;function r(t){const e="error";(0,s.s5)(e,t),(0,s.AS)(e,a)}function a(){o=i.O.onerror,i.O.onerror=function(t,e,n,i,r){const a={column:i,error:r,line:n,msg:t,url:e};return(0,s.aj)("error",a),!(!o||o.__SENTRY_LOADER__)&&o.apply(this,arguments)},i.O.onerror.__SENTRY_INSTRUMENTED__=!0}},2221:function(t,e,n){"use strict";n.d(e,{r:function(){return r}});var i=n(9085),s=n(2433);let o=null;function r(t){const e="unhandledrejection";(0,s.s5)(e,t),(0,s.AS)(e,a)}function a(){o=i.O.onunhandledrejection,i.O.onunhandledrejection=function(t){const e=t;return(0,s.aj)("unhandledrejection",e),!(o&&!o.__SENTRY_LOADER__)||o.apply(this,arguments)},i.O.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}},2433:function(t,e,n){"use strict";n.d(e,{AS:function(){return l},aj:function(){return u},s5:function(){return c}});var i=n(3364),s=n(3932),o=n(6453);const r={},a={};function c(t,e){r[t]=r[t]||[],r[t].push(e)}function l(t,e){a[t]||(e(),a[t]=!0)}function u(t,e){const n=t&&r[t];if(n)for(const r of n)try{r(e)}catch(e){i.T&&s.vF.error(`Error while triggering instrumentation handler.\nType: ${t}\nName: ${(0,o.qQ)(r)}\nError:`,e)}}},6752:function(t,e,n){"use strict";n.d(e,{BD:function(){return a},Kg:function(){return l},L2:function(){return y},NF:function(){return u},Qd:function(){return h},Qg:function(){return g},T2:function(){return r},W6:function(){return c},bJ:function(){return s},gd:function(){return m},mE:function(){return v},sO:function(){return d},tH:function(){return b},vq:function(){return f},xH:function(){return p}});const i=Object.prototype.toString;function s(t){switch(i.call(t)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return b(t,Error)}}function o(t,e){return i.call(t)===`[object ${e}]`}function r(t){return o(t,"ErrorEvent")}function a(t){return o(t,"DOMError")}function c(t){return o(t,"DOMException")}function l(t){return o(t,"String")}function u(t){return"object"==typeof t&&null!==t&&"__sentry_template_string__"in t&&"__sentry_template_values__"in t}function d(t){return null===t||u(t)||"object"!=typeof t&&"function"!=typeof t}function h(t){return o(t,"Object")}function p(t){return"undefined"!=typeof Event&&b(t,Event)}function f(t){return"undefined"!=typeof Element&&b(t,Element)}function m(t){return o(t,"RegExp")}function g(t){return Boolean(t&&t.then&&"function"==typeof t.then)}function v(t){return h(t)&&"nativeEvent"in t&&"preventDefault"in t&&"stopPropagation"in t}function b(t,e){try{return t instanceof e}catch(t){return!1}}function y(t){return!("object"!=typeof t||null===t||!t.__isVue&&!t._isVue)}},3932:function(t,e,n){"use strict";n.d(e,{Ow:function(){return o},Z9:function(){return r},pq:function(){return a},vF:function(){return c}});var i=n(3364),s=n(9085);const o=["debug","info","warn","error","log","assert","trace"],r={};function a(t){if(!("console"in s.O))return t();const e=s.O.console,n={},i=Object.keys(r);i.forEach((t=>{const i=r[t];n[t]=e[t],e[t]=i}));try{return t()}finally{i.forEach((t=>{e[t]=n[t]}))}}const c=(0,s.B)("logger",(function(){let t=!1;const e={enable:()=>{t=!0},disable:()=>{t=!1},isEnabled:()=>t};return i.T?o.forEach((n=>{e[n]=(...e)=>{t&&a((()=>{s.O.console[n](`Sentry Logger [${n}]:`,...e)}))}})):o.forEach((t=>{e[t]=()=>{}})),e}))},9888:function(t,e,n){"use strict";n.d(e,{$X:function(){return a},GR:function(){return u},M6:function(){return l},eJ:function(){return o},gO:function(){return c},k9:function(){return d}});var i=n(179),s=n(9085);function o(){const t=s.O,e=t.crypto||t.msCrypto;let n=()=>16*Math.random();try{if(e&&e.randomUUID)return e.randomUUID().replace(/-/g,"");e&&e.getRandomValues&&(n=()=>{const t=new Uint8Array(1);return e.getRandomValues(t),t[0]})}catch(t){}return([1e7]+1e3+4e3+8e3+1e11).replace(/[018]/g,(t=>(t^(15&n())>>t/4).toString(16)))}function r(t){return t.exception&&t.exception.values?t.exception.values[0]:void 0}function a(t){const{message:e,event_id:n}=t;if(e)return e;const i=r(t);return i?i.type&&i.value?`${i.type}: ${i.value}`:i.type||i.value||n||"<unknown>":n||"<unknown>"}function c(t,e,n){const i=t.exception=t.exception||{},s=i.values=i.values||[],o=s[0]=s[0]||{};o.value||(o.value=e||""),o.type||(o.type=n||"Error")}function l(t,e){const n=r(t);if(!n)return;const i=n.mechanism;if(n.mechanism={type:"generic",handled:!0,...i,...e},e&&"data"in e){const t={...i&&i.data,...e.data};n.mechanism.data=t}}function u(t){if(t&&t.__sentry_captured__)return!0;try{(0,i.my)(t,"__sentry_captured__",!0)}catch(t){}return!1}function d(t){return Array.isArray(t)?t:[t]}},6845:function(t,e,n){"use strict";n.d(e,{S8:function(){return r},cd:function(){return a}});var i=n(6752),s=n(179),o=n(6453);function r(t,e=100,n=1/0){try{return c("",t,e,n)}catch(t){return{ERROR:`**non-serializable** (${t})`}}}function a(t,e=3,n=102400){const i=r(t,e);return s=i,function(t){return~-encodeURI(t).split(/%..|./).length}(JSON.stringify(s))>n?a(t,e-1,n):i;var s}function c(t,e,n=1/0,r=1/0,a=function(){const t="function"==typeof WeakSet,e=t?new WeakSet:[];return[function(n){if(t)return!!e.has(n)||(e.add(n),!1);for(let t=0;t<e.length;t++)if(e[t]===n)return!0;return e.push(n),!1},function(n){if(t)e.delete(n);else for(let t=0;t<e.length;t++)if(e[t]===n){e.splice(t,1);break}}]}()){const[l,u]=a;if(null==e||["number","boolean","string"].includes(typeof e)&&!Number.isNaN(e))return e;const d=function(t,e){try{if("domain"===t&&e&&"object"==typeof e&&e._events)return"[Domain]";if("domainEmitter"===t)return"[DomainEmitter]";if("undefined"!=typeof global&&e===global)return"[Global]";if("undefined"!=typeof window&&e===window)return"[Window]";if("undefined"!=typeof document&&e===document)return"[Document]";if((0,i.L2)(e))return"[VueViewModel]";if((0,i.mE)(e))return"[SyntheticEvent]";if("number"==typeof e&&e!=e)return"[NaN]";if("function"==typeof e)return`[Function: ${(0,o.qQ)(e)}]`;if("symbol"==typeof e)return`[${String(e)}]`;if("bigint"==typeof e)return`[BigInt: ${String(e)}]`;const n=function(t){const e=Object.getPrototypeOf(t);return e?e.constructor.name:"null prototype"}(e);return/^HTML(\w*)Element$/.test(n)?`[HTMLElement: ${n}]`:`[object ${n}]`}catch(t){return`**non-serializable** (${t})`}}(t,e);if(!d.startsWith("[object "))return d;if(e.__sentry_skip_normalization__)return e;const h="number"==typeof e.__sentry_override_normalization_depth__?e.__sentry_override_normalization_depth__:n;if(0===h)return d.replace("object ","");if(l(e))return"[Circular ~]";const p=e;if(p&&"function"==typeof p.toJSON)try{return c("",p.toJSON(),h-1,r,a)}catch(t){}const f=Array.isArray(e)?[]:{};let m=0;const g=(0,s.W4)(e);for(const t in g){if(!Object.prototype.hasOwnProperty.call(g,t))continue;if(m>=r){f[t]="[MaxProperties ~]";break}const e=g[t];f[t]=c(t,e,h-1,r,a),m++}return u(e),f}},179:function(t,e,n){"use strict";n.d(e,{Ce:function(){return v},GS:function(){return c},HF:function(){return g},W4:function(){return p},my:function(){return l},pO:function(){return u},sp:function(){return d},u4:function(){return h}});var i=n(5166),s=n(3364),o=n(6752),r=n(3932),a=n(6013);function c(t,e,n){if(!(e in t))return;const i=t[e],s=n(i);"function"==typeof s&&u(s,i),t[e]=s}function l(t,e,n){try{Object.defineProperty(t,e,{value:n,writable:!0,configurable:!0})}catch(n){s.T&&r.vF.log(`Failed to add non-enumerable property "${e}" to object`,t)}}function u(t,e){try{const n=e.prototype||{};t.prototype=e.prototype=n,l(t,"__sentry_original__",e)}catch(t){}}function d(t){return t.__sentry_original__}function h(t){return Object.keys(t).map((e=>`${encodeURIComponent(e)}=${encodeURIComponent(t[e])}`)).join("&")}function p(t){if((0,o.bJ)(t))return{message:t.message,name:t.name,stack:t.stack,...m(t)};if((0,o.xH)(t)){const e={type:t.type,target:f(t.target),currentTarget:f(t.currentTarget),...m(t)};return"undefined"!=typeof CustomEvent&&(0,o.tH)(t,CustomEvent)&&(e.detail=t.detail),e}return t}function f(t){try{return(0,o.vq)(t)?(0,i.Hd)(t):Object.prototype.toString.call(t)}catch(t){return"<unknown>"}}function m(t){if("object"==typeof t&&null!==t){const e={};for(const n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}return{}}function g(t,e=40){const n=Object.keys(p(t));n.sort();const i=n[0];if(!i)return"[object has no keys]";if(i.length>=e)return(0,a.xv)(i,e);for(let t=n.length;t>0;t--){const i=n.slice(0,t).join(", ");if(!(i.length>e))return t===n.length?i:(0,a.xv)(i,e)}return""}function v(t){return b(t,new Map)}function b(t,e){if(function(t){if(!(0,o.Qd)(t))return!1;try{const e=Object.getPrototypeOf(t).constructor.name;return!e||"Object"===e}catch(t){return!0}}(t)){const n=e.get(t);if(void 0!==n)return n;const i={};e.set(t,i);for(const n of Object.keys(t))void 0!==t[n]&&(i[n]=b(t[n],e));return i}if(Array.isArray(t)){const n=e.get(t);if(void 0!==n)return n;const i=[];return e.set(t,i),t.forEach((t=>{i.push(b(t,e))})),i}return t}},2317:function(t,e,n){"use strict";n.d(e,{J:function(){return s}});var i=n(9888);function s(){return{traceId:(0,i.eJ)(),spanId:(0,i.eJ)().substring(16)}}},6453:function(t,e,n){"use strict";n.d(e,{RV:function(){return h},gd:function(){return a},qQ:function(){return d},vk:function(){return c},yF:function(){return s}});const i=50,s="?",o=/\(error: (.*)\)/,r=/captureMessage|captureException/;function a(...t){const e=t.sort(((t,e)=>t[0]-e[0])).map((t=>t[1]));return(t,n=0,a=0)=>{const c=[],u=t.split("\n");for(let t=n;t<u.length;t++){const n=u[t];if(n.length>1024)continue;const s=o.test(n)?n.replace(o,"$1"):n;if(!s.match(/\S*Error: /)){for(const t of e){const e=t(s);if(e){c.push(e);break}}if(c.length>=i+a)break}}return function(t){if(!t.length)return[];const e=Array.from(t);return/sentryWrapped/.test(l(e).function||"")&&e.pop(),e.reverse(),r.test(l(e).function||"")&&(e.pop(),r.test(l(e).function||"")&&e.pop()),e.slice(0,i).map((t=>({...t,filename:t.filename||l(e).filename,function:t.function||s})))}(c.slice(a))}}function c(t){return Array.isArray(t)?a(...t):t}function l(t){return t[t.length-1]||{}}const u="<anonymous>";function d(t){try{return t&&"function"==typeof t&&t.name||u}catch(t){return u}}function h(t){const e=t.exception;if(e){const t=[];try{return e.values.forEach((e=>{e.stacktrace.frames&&t.push(...e.stacktrace.frames)})),t}catch(t){return}}}},6013:function(t,e,n){"use strict";n.d(e,{Xr:function(){return r},gt:function(){return o},xv:function(){return s}});var i=n(6752);function s(t,e=0){return"string"!=typeof t||0===e||t.length<=e?t:`${t.slice(0,e)}...`}function o(t,e){if(!Array.isArray(t))return"";const n=[];for(let e=0;e<t.length;e++){const s=t[e];try{(0,i.L2)(s)?n.push("[VueViewModel]"):n.push(String(s))}catch(t){n.push("[value cannot be serialized]")}}return n.join(e)}function r(t,e=[],n=!1){return e.some((e=>function(t,e,n=!1){return!!(0,i.Kg)(t)&&((0,i.gd)(e)?e.test(t):!!(0,i.Kg)(e)&&(n?t===e:t.includes(e)))}(t,e,n)))}},2544:function(t,e,n){"use strict";n.d(e,{a3:function(){return a},m7:function(){return c},vm:function(){return r}});var i=n(3364),s=n(3932);const o=n(9085).O;function r(){if(!("fetch"in o))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch(t){return!1}}function a(t){return t&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(t.toString())}function c(){if("string"==typeof EdgeRuntime)return!0;if(!r())return!1;if(a(o.fetch))return!0;let t=!1;const e=o.document;if(e&&"function"==typeof e.createElement)try{const n=e.createElement("iframe");n.hidden=!0,e.head.appendChild(n),n.contentWindow&&n.contentWindow.fetch&&(t=a(n.contentWindow.fetch)),e.head.removeChild(n)}catch(t){i.T&&s.vF.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",t)}return t}},1114:function(t,e,n){"use strict";n.d(e,{T2:function(){return a},XW:function(){return o},xg:function(){return r}});var i,s=n(6752);function o(t){return new a((e=>{e(t)}))}function r(t){return new a(((e,n)=>{n(t)}))}!function(t){t[t.PENDING=0]="PENDING",t[t.RESOLVED=1]="RESOLVED",t[t.REJECTED=2]="REJECTED"}(i||(i={}));class a{constructor(t){a.prototype.__init.call(this),a.prototype.__init2.call(this),a.prototype.__init3.call(this),a.prototype.__init4.call(this),this._state=i.PENDING,this._handlers=[];try{t(this._resolve,this._reject)}catch(t){this._reject(t)}}then(t,e){return new a(((n,i)=>{this._handlers.push([!1,e=>{if(t)try{n(t(e))}catch(t){i(t)}else n(e)},t=>{if(e)try{n(e(t))}catch(t){i(t)}else i(t)}]),this._executeHandlers()}))}catch(t){return this.then((t=>t),t)}finally(t){return new a(((e,n)=>{let i,s;return this.then((e=>{s=!1,i=e,t&&t()}),(e=>{s=!0,i=e,t&&t()})).then((()=>{s?n(i):e(i)}))}))}__init(){this._resolve=t=>{this._setResult(i.RESOLVED,t)}}__init2(){this._reject=t=>{this._setResult(i.REJECTED,t)}}__init3(){this._setResult=(t,e)=>{this._state===i.PENDING&&((0,s.Qg)(e)?e.then(this._resolve,this._reject):(this._state=t,this._value=e,this._executeHandlers()))}}__init4(){this._executeHandlers=()=>{if(this._state===i.PENDING)return;const t=this._handlers.slice();this._handlers=[],t.forEach((t=>{t[0]||(this._state===i.RESOLVED&&t[1](this._value),this._state===i.REJECTED&&t[2](this._value),t[0]=!0)}))}}}},1305:function(t,e,n){"use strict";n.d(e,{k3:function(){return c},lu:function(){return o},zf:function(){return r}});var i=n(9085);const s=1e3;function o(){return Date.now()/s}const r=function(){const{performance:t}=i.O;if(!t||!t.now)return o;const e=Date.now()-t.now(),n=null==t.timeOrigin?e:t.timeOrigin;return()=>(n+t.now())/s}();let a;const c=(()=>{const{performance:t}=i.O;if(!t||!t.now)return void(a="none");const e=36e5,n=t.now(),s=Date.now(),o=t.timeOrigin?Math.abs(t.timeOrigin+n-s):e,r=o<e,c=t.timing&&t.timing.navigationStart,l="number"==typeof c?Math.abs(c+n-s):e;return r||l<e?o<=l?(a="timeOrigin",t.timeOrigin):(a="navigationStart",c):(a="dateNow",s)})()},9540:function(t,e,n){"use strict";n.d(e,{TC:function(){return a},kM:function(){return r}});var i=n(6904),s=n(9888);const o=new RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function r(t,e){const n=function(t){if(!t)return;const e=t.match(o);if(!e)return;let n;return"1"===e[3]?n=!0:"0"===e[3]&&(n=!1),{traceId:e[1],parentSampled:n,parentSpanId:e[2]}}(t),r=(0,i.yD)(e),{traceId:a,parentSpanId:c,parentSampled:l}=n||{};return n?{traceId:a||(0,s.eJ)(),parentSpanId:c||(0,s.eJ)().substring(16),spanId:(0,s.eJ)().substring(16),sampled:l,dsc:r||{}}:{traceId:a||(0,s.eJ)(),spanId:(0,s.eJ)().substring(16)}}function a(t=(0,s.eJ)(),e=(0,s.eJ)().substring(16),n){let i="";return void 0!==n&&(i=n?"-1":"-0"),`${t}-${e}${i}`}},8039:function(t,e,n){"use strict";function i(t){if(!t)return{};const e=t.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!e)return{};const n=e[6]||"",i=e[8]||"";return{host:e[4],path:e[5],protocol:e[2],search:n,hash:i,relative:e[5]+n+i}}n.d(e,{Dl:function(){return i}})},8074:function(t,e,n){"use strict";n.d(e,{M:function(){return i}});const i="8.30.0"},9085:function(t,e,n){"use strict";n.d(e,{B:function(){return o},O:function(){return s}});var i=n(8074);const s=globalThis;function o(t,e,n){const o=n||s,r=o.__SENTRY__=o.__SENTRY__||{},a=r[i.M]=r[i.M]||{};return a[t]||(a[t]=e())}},8504:function(t,e,n){"use strict";function i(t){return(...e)=>!t(...e)}function s(t){const e=String(t),n=Number(t),i=!isNaN(parseFloat(e))&&!isNaN(Number(t))&&isFinite(n);return Boolean(i)}n.d(e,{vt:function(){return Un},FE:function(){return kt},lq:function(){return me},iv:function(){return $e},YA:function(){return Sn},t6:function(){return Fn}});const o=i(s);function r(t,e){return s(t)&&s(e)&&Number(t)===Number(e)}const a=i(r);function c(t,e){return r(t.length,e)}const l=i(c);function u(t,e){return s(t)&&s(e)&&Number(t)>Number(e)}function d(t,e){return u(t.length,e)}function h(t=1){const e=[],n=(i,s)=>{const o=n.get(i);if(o)return o[1];const r=s();return e.unshift([i.concat(),r]),d(e,t)&&(e.length=t),r};return n.invalidate=t=>{const n=i(t);n>-1&&e.splice(n,1)},n.get=t=>e[i(t)]||null,n;function i(t){return e.findIndex((([e])=>c(t,e.length)&&t.every(((t,n)=>t===e[n]))))}}function p(t){return null===t}const f=i(p);function m(t){return void 0===t}const g=i(m);function v(t){return p(t)||m(t)}const b=i(v);function y(t){return[].concat(t)}function w(t){return t.forEach((t=>t()))}function E(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function S(t){return"function"==typeof t}function _(t){return!!t&&S(t.then)}function x(t,...e){return S(t)?t(...e):t}var T=Object.assign;function C(t,e){var n;return null!==(n=x(t))&&void 0!==n?n:x(e)}function O(t,e){if(!t)throw e instanceof String?e.valueOf():new Error(e?x(e):e)}function A(t){return String(t)===t}function P(t){return!!t===t}function L(t){setTimeout((()=>{throw new Error(t)}),0)}var I=Object.freeze({__proto__:null,createBus:function(){const t={};return{emit(t,n){e(t).concat(e("*")).forEach((t=>{t(n)}))},on:(n,i)=>(t[n]=e(n).concat(i),{off(){t[n]=e(n).filter((t=>t!==i))}})};function e(e){return t[e]||[]}}});const k=(D=0,()=>""+D++);var D;function N(t){return"object"==typeof t&&!v(t)}function M(t){return Boolean(Array.isArray(t))}const R=i(M);function j(t){return!t||(E(t,"length")?c(t,0):!!N(t)&&c(Object.keys(t),0))}const F=i(j);function z(t){return u(t,0)}const B=/{(.*?)}/g;function $(t,...e){const n=e[0];if(N(n))return t.replace(B,((t,e)=>{var i;return`${null!==(i=n[e])&&void 0!==i?i:t}`}));const i=[...e];return t.replace(B,(t=>`${j(i)?t:i.shift()}`))}function H(t){let e=t.initial;return{getState:function(){return e},initial:function(){return t.initial},staticTransition:n,transition:function(t,i){return e=n(e,t,i)}};function n(e,n,i){var s,o,r;let a=null!==(o=null===(s=t.states[e])||void 0===s?void 0:s[n])&&void 0!==o?o:null===(r=t.states["*"])||void 0===r?void 0:r[n];if(Array.isArray(a)){const[,t]=a;if(!t(i))return e;a=a[0]}return a&&a!==e?a:e}}var U=Object.freeze({__proto__:null,createTinyState:function(t){let e;return i(),()=>[e,n,i];function n(t){e=x(t,e)}function i(){n(x(t))}}});function W(t){return new String(x(t))}function q(){}var V=Object.freeze({__proto__:null,all:function(...t){return e=>!j(t)&&t.every((t=>x(t,e)))},any:function(...t){return e=>!j(t)&&t.some((t=>x(t,e)))}});const G="Not inside of a running context.",X=Symbol();function K(t){let e=X;return{run:function(t,s){const o=i()?n():X;e=t;const r=s();return e=o,r},use:n,useX:function(t){return O(i(),C(t,G)),e}};function n(){return i()?e:t}function i(){return e!==X}}function Y(t){const e=K();return{bind:function(t,e){return function(...i){return n(t,(function(){return e(...i)}))}},run:n,use:e.use,useX:e.useX};function n(n,i){var s;const o=e.use(),r=T({},o||{},null!==(s=x(t,n,o))&&void 0!==s?s:n);return e.run(Object.freeze(r),i)}}const J=Y(((t,e)=>{const n={value:t.value,meta:t.meta||{}};return e?t.set?T(n,{parent:()=>{return{value:(t=e).value,meta:t.meta,parent:t.parent};var t}}):e:T(n,{parent:Z})}));function Z(){return null}function Q(t,e){return A(t)&&A(e)&&t.endsWith(e)}const tt=i(Q);function et(t,e){return t===e}const nt=i(et);function it(t,e){return r(t,e)||u(t,e)}function st(t,e){return(M(e)||!(!A(e)||!A(t)))&&-1!==e.indexOf(t)}const ot=i(st);function rt(t,e){return s(t)&&s(e)&&Number(t)<Number(e)}function at(t,e){return r(t,e)||rt(t,e)}function ct(t,e,n){return it(t,e)&&at(t,n)}const lt=i(ct);function ut(t){return v(t)||A(t)&&!t.trim()}const dt=i(ut),ht=i(P);function pt(t,e){return t in e}const ft=i(pt);function mt(t){return Number.isNaN(t)}const gt=i(mt);function vt(t){return Boolean("number"==typeof t)}const bt=i(vt),yt=i(A);function wt(t){return!!t}const Et=i(wt);function St(t,e){if(v(e))return!1;for(const n in e)if(e[n]===t)return!0;return!1}const _t=i(St);function xt(t,e){return e instanceof RegExp?e.test(t):!!A(e)&&new RegExp(e).test(t)}const Tt=i(xt);function Ct(t,e){return A(t)&&A(e)&&t.startsWith(e)}const Ot={condition:function(t,e){try{return e(t)}catch(t){return!1}},doesNotEndWith:tt,doesNotStartWith:i(Ct),endsWith:Q,equals:et,greaterThan:u,greaterThanOrEquals:it,gt:u,gte:it,inside:st,isArray:M,isBetween:ct,isBlank:ut,isBoolean:P,isEmpty:j,isEven:t=>!!s(t)&&t%2==0,isFalsy:Et,isKeyOf:pt,isNaN:mt,isNegative:function(t){return rt(t,0)},isNotArray:R,isNotBetween:lt,isNotBlank:dt,isNotBoolean:ht,isNotEmpty:F,isNotKeyOf:ft,isNotNaN:gt,isNotNull:f,isNotNullish:b,isNotNumber:bt,isNotNumeric:o,isNotString:yt,isNotUndefined:g,isNotValueOf:_t,isNull:p,isNullish:v,isNumber:vt,isNumeric:s,isOdd:t=>!!s(t)&&t%2!=0,isPositive:z,isString:A,isTruthy:wt,isUndefined:m,isValueOf:St,lengthEquals:c,lengthNotEquals:l,lessThan:rt,lessThanOrEquals:at,longerThan:d,longerThanOrEquals:function(t,e){return it(t.length,e)},lt:rt,lte:at,matches:xt,notEquals:nt,notInside:ot,notMatches:Tt,numberEquals:r,numberNotEquals:a,shorterThan:function(t,e){return rt(t.length,e)},shorterThanOrEquals:function(t,e){return at(t.length,e)},startsWith:Ct};function At(t){return Ot[t]}function Pt(t,e){const n={pass:t};return e&&(n.message=e),n}function Lt(t,e,n,...i){return function(t){O(P(t)||t&&P(t.pass),"Incorrect return value for rule: "+JSON.stringify(t))}(t),P(t)?Pt(t):Pt(t.pass,x(t.message,e,n,...i))}function It(t){const e={message:function(t){return n=t,i},pass:!1};let n;const i=new Proxy(e,{get:(s,o)=>{const r=At(o);return r?function(e,i,s){return function(...o){const r=J.run({value:t},(()=>Lt(i(t,...o),s,t,...o)));return O(r.pass,v(n)?v(r.message)?`enforce/${s} failed with ${JSON.stringify(t)}`:W(r.message):W(n)),e.pass=r.pass,e}}(i,r,o):e[o]}});return i}const kt=function(){const t={context:()=>J.useX(),extend:t=>{T(Ot,t)}};return new Proxy(T(It,t),{get:(t,e)=>e in t?t[e]:At(e)?function(t){const e=[];let n;return function t(i){return(...s)=>{const o=At(i);e.push((t=>Lt(o(t,...s),i,t,...s)));let r={run:t=>function(t){return C(t,Pt(!0))}(function(t,e){let n=!1,i=null;for(let o=0;o<t.length;o++)if(e(t[o],s),n)return i;function s(t,e){t&&(n=!0,i=e)}}(e,((e,i)=>{var s;const o=J.run({value:t},(()=>e(t)));i(!o.pass,Pt(!!o.pass,null!==(s=x(n,t,o.message))&&void 0!==s?s:o.message))}))),test:t=>r.run(t).pass,message:t=>(t&&(n=t),r)};return r=new Proxy(r,{get:(e,n)=>At(n)?t(n):e[n]}),r}}(t)}(e):void 0})}(),Dt={ASYNC_ISOLATE_DONE:"ASYNC_ISOLATE_DONE",ISOLATE_DONE:"ISOLATE_DONE",ISOLATE_ENTER:"ISOLATE_ENTER",ISOLATE_PENDING:"ISOLATE_PENDING"};var Nt;"function"==typeof SuppressedError&&SuppressedError,function(t){t.NO_ACTIVE_ISOLATE="Not within an active isolate",t.UNABLE_TO_PICK_NEXT_ISOLATE="Unable to pick next isolate. This is a bug, please report it to the Vest maintainers.",t.ENCOUNTERED_THE_SAME_KEY_TWICE='Encountered the same key "{key}" twice. This may lead to inconsistent or overriding of results.',t.INVALID_ISOLATE_CANNOT_PARSE="Invalid isolate was passed to IsolateSerializer. Cannot proceed."}(Nt||(Nt={}));class Mt{static at(t,e){var n,i;return v(t)?null:null!==(i=null===(n=t.children)||void 0===n?void 0:n[e])&&void 0!==i?i:null}static cursor(t){var e,n;return v(t)?0:null!==(n=null===(e=t.children)||void 0===e?void 0:e.length)&&void 0!==n?n:0}static canReorder(t){return!v(t)&&Mt.allowsReorder(t.parent)}static allowsReorder(t){return!0===(null==t?void 0:t.allowReorder)}static usesKey(t){return!v(t)&&b(t.key)}static getChildByKey(t,e){var n,i;return v(t)?null:null!==(i=null===(n=t.keys)||void 0===n?void 0:n[e])&&void 0!==i?i:null}}class Rt{static setParent(t,e){return t.parent=e,t}static saveOutput(t,e){return t.output=e,t}static setKey(t,e){return t.key=e,t}static addChild(t,e){var n;O(t),t.children=null!==(n=t.children)&&void 0!==n?n:[],t.children.push(e),Rt.setParent(e,t)}static removeChild(t,e){var n,i;t.children=null!==(i=null===(n=t.children)||void 0===n?void 0:n.filter((t=>t!==e)))&&void 0!==i?i:null}static addChildKey(t,e,n){var i;O(t),t.keys=null!==(i=t.keys)&&void 0!==i?i:{},t.keys[e]=n}static slice(t,e){v(t.children)||(t.children.length=e)}static setData(t,e){t.data=e}static abort(t,e){v(t.abortController)||t.abortController.abort(e)}}const jt=Y(((t,e)=>{if(e)return null;O(t.historyRoot);const[n]=t.historyRoot(),i={};return T(i,{historyNode:n,runtimeNode:null,runtimeRoot:null,stateRef:t}),i})),Ft=jt.run,zt={Run:Ft,createRef:function(t,e){return Object.freeze({Bus:I.createBus(),Reconciler:t,appData:x(e),historyRoot:U.createTinyState(null)})},persist:Bt,reset:function(){const[,,t]=Ht();t()},useAvailableRoot:function(){const t=Gt();if(t)return t;const[e]=Ht();return e},useCurrentCursor:function(){const t=Vt();return t?Mt.cursor(t):0},useHistoryRoot:Ht,useSetHistoryRoot:qt,useSetNextIsolateChild:Xt,useXAppData:function(){return $t().stateRef.appData}};function Bt(t){const e=jt.useX();return(...n)=>{var i;const s=null!==(i=jt.use())&&void 0!==i?i:e;return jt.run(s.stateRef,(()=>t(...n)))}}function $t(){return jt.useX()}function Ht(){return $t().stateRef.historyRoot()}function Ut(){return $t().historyNode}function Wt(){const t=Vt(),e=Ut();return t?Mt.at(e,Mt.cursor(t)):e}function qt(t){const[,e]=Ht();e(t)}function Vt(){var t;return null!==(t=$t().runtimeNode)&&void 0!==t?t:null}function Gt(){return $t().runtimeRoot}function Xt(t){const e=Vt();O(e,Nt.NO_ACTIVE_ISOLATE),Rt.addChild(e,t),Rt.setParent(t,e)}function Kt(){return $t().stateRef.Bus}function Yt(t,e){const n=Kt().emit;return v(t)||n(t,e),Bt(n)}var Jt,Zt=Object.freeze({__proto__:null,useBus:Kt,useEmit:Yt,usePrepareEmitter:function(t){const e=Yt();return n=>e(t,n)}});function Qt(t,e){return(null==t?void 0:t[Jt.Type])===e}function te(t,e){return Qt(t,e[Jt.Type])}!function(t){t.Type="$type",t.Keys="keys",t.Key="key",t.Parent="parent",t.Data="data",t.AllowReorder="allowReorder",t.Status="status",t.AbortController="abortController",t.Children="children"}(Jt||(Jt={})),new Set([Jt.AbortController,Jt.Parent,Jt.Keys]);var ee=Object.freeze({__proto__:null,isIsolateType:Qt,isSameIsolateIdentity:function(t,e){return Object.is(t,e)||te(t,e)&&t.key===e.key},isSameIsolateType:te});class ne{static reconcile(t){const e=function(t,e){var n;return v(e)?function(t){return Mt.usesKey(t)?ne.handleIsolateNodeWithKey(t,!1):t}(t):te(t,e)?null!==(n=(0,$t().stateRef.Reconciler)(t,e))&&void 0!==n?n:function(t,e){return v(e),t}(t,e):t}(t,Wt());return O(e,Nt.UNABLE_TO_PICK_NEXT_ISOLATE),e}static dropNextNodesOnReorder(t,e,n){const i=t(e,n);return i&&function(){const t=Vt(),e=Ut();e&&t&&Rt.slice(e,Mt.cursor(t))}(),i}static handleIsolateNodeWithKey(t,e){O(Mt.usesKey(t));const n=function(t){if(v(t))return null;const e=$t().historyNode;return Mt.getChildByKey(e,t)}(t.key);let i=t;return v(n)||x(e,n)||(i=n),function(t,e){if(!t)return;const n=Vt();O(n,Nt.NO_ACTIVE_ISOLATE),v(Mt.getChildByKey(n,t))?Rt.addChildKey(n,t,e):L($(Nt.ENCOUNTERED_THE_SAME_KEY_TWICE,{key:t}))}(t.key,i),i}}class ie{static create(t,e,n=void 0,i){const s=Vt(),o=Rt.setParent(function(t,e,n=null){const i=null!=e?e:{},{allowReorder:s,status:o}=i,r=function(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var s=0;for(i=Object.getOwnPropertySymbols(t);s<i.length;s++)e.indexOf(i[s])<0&&Object.prototype.propertyIsEnumerable.call(t,i[s])&&(n[i[s]]=t[i[s]])}return n}(i,["allowReorder","status"]);return Object.assign(Object.assign({[Jt.AllowReorder]:s,[Jt.AbortController]:new AbortController,[Jt.Keys]:null,[Jt.Parent]:null,[Jt.Type]:t,[Jt.Data]:r},o&&{[Jt.Status]:o}),{children:null,key:n,output:null})}(t,n,i),s),r=ne.reconcile(o),a=Wt(),c=Object.is(r,o);s&&Xt(r);const l=c?function(t,e,n){const i=Gt(),s=Yt(),o=Ft(Object.assign({historyNode:t,runtimeNode:e},!i&&{runtimeRoot:e}),(()=>{s(Dt.ISOLATE_ENTER,e);const t=n(e);return _(t)?(s(Dt.ISOLATE_PENDING,e),t.then((t=>{ie.isIsolate(t)&&Rt.addChild(e,t),s(Dt.ISOLATE_DONE,e),s(Dt.ASYNC_ISOLATE_DONE,e)}))):s(Dt.ISOLATE_DONE,e),t}));return e.output=o,o}(a,o,e):r.output;return Rt.saveOutput(r,l),s||qt(r),r}static isIsolate(t){return b(t)&&t[Jt.Type]}}function se(t,e,n){var i;let s=!1;if(!s){for(const r of null!==(i=t.children)&&void 0!==i?i:[])if(se(r,((t,n)=>{e(t,(()=>{n(),o()}))}),n),s)return;(v(n)||x(n,t))&&e(t,o)}function o(){s=!0}}function oe(t,e,n){let i=!1;return se(t,((t,n)=>{e(t)&&(n(),i=!0)}),n),i}function re(t,e){let n=t;do{if(e(n))return n;n=n.parent}while(n);return null}var ae=Object.freeze({__proto__:null,closest:re,closestExists:function(t,e){return!!re(t,e)},every:function(t,e,n){let i=!0;return se(t,((t,n)=>{e(t)||(n(),i=!1)}),n),i},find:function(t,e,n){let i=null;return se(t,((t,n)=>{e(t)&&(n(),i=t)}),n),i},findAll:function(t,e,n){const i=[];return se(t,(t=>{e(t)&&i.push(t)}),n),i},findClosest:function(t,e){var n,i;let s=null,o=t;for(;o&&(s=null!==(i=null===(n=o.children)||void 0===n?void 0:n.find(e))&&void 0!==i?i:null,!s);)o=o.parent;return s},has:function(t,e){return oe(t,(()=>!0),e)},pluck:function(t,e,n){se(t,(t=>{e(t)&&t.parent&&Rt.removeChild(t.parent,t)}),n)},reduce:function(t,e,n,i){let s=n;return se(t,((t,n)=>{s=e(s,t,n)}),i),s},some:oe,walk:se});const ce={Each:"Each",Focused:"Focused",Group:"Group",OmitWhen:"OmitWhen",SkipWhen:"SkipWhen",Suite:"Suite",Test:"Test"};class le{static setOptionalField(t,e,n){const i=t.data.optional,s=i[e];T(i,{[e]:T({},s,n(s))})}static getOptionalField(t,e){var n;return null!==(n=le.getOptionalFields(t)[e])&&void 0!==n?n:{}}static getOptionalFields(t){var e,n;return null!==(n=null===(e=t.data)||void 0===e?void 0:e.optional)&&void 0!==n?n:{}}}var ue,de;!function(t){t[t.CUSTOM_LOGIC=0]="CUSTOM_LOGIC",t[t.AUTO=1]="AUTO"}(ue||(ue={})),function(t){t.EAGER="EAGER",t.ALL="ALL",t.ONE="ONE"}(de||(de={}));const he=Y(((t,e)=>e?null:T({inclusion:{},mode:U.createTinyState(de.EAGER),suiteParams:[],testMemoCache:fe},t)));function pe(){return he.useX().inclusion}const fe=h(10);function me(t){var e;const n=zt.useAvailableRoot(),i=he.useX().suiteParams,s=null!==(e=null==i?void 0:i[0])&&void 0!==e?e:{};if(M(t)||A(t))y(t).forEach((t=>{le.setOptionalField(n,t,(()=>({type:ue.AUTO,applied:!!E(s,t)&&kt.isBlank().test(null==s?void 0:s[t]),rule:null})))}));else for(const e in t){const i=t[e];le.setOptionalField(n,e,(()=>({type:ue.CUSTOM_LOGIC,rule:i,applied:kt.isBlank().test(i)||!0===i})))}}function ge(t){var e,n;if(!t)return!1;const i=zt.useAvailableRoot();return null!==(n=null===(e=le.getOptionalField(i,t))||void 0===e?void 0:e.applied)&&void 0!==n&&n}var ve;!function(t){t.HOOK_CALLED_OUTSIDE="hook called outside of a running suite.",t.EXPECTED_VEST_TEST="Expected value to be an instance of IsolateTest",t.FIELD_NAME_REQUIRED="Field name must be passed",t.SUITE_MUST_BE_INITIALIZED_WITH_FUNCTION="Suite must be initialized with a function",t.PROMISIFY_REQUIRE_FUNCTION="Vest.Promisify must be called with a function",t.PARSER_EXPECT_RESULT_OBJECT="Vest parser: expected argument at position 0 to be Vest's result object.",t.WARN_MUST_BE_CALLED_FROM_TEST="Warn must be called from within the body of a test function",t.EACH_CALLBACK_MUST_BE_A_FUNCTION="Each must be called with a function",t.INVALID_PARAM_PASSED_TO_FUNCTION='Incompatible params passed to {fn_name} function. "{param}" must be of type {expected}',t.TESTS_CALLED_IN_DIFFERENT_ORDER='Vest Critical Error: Tests called in different order than previous run.\n    expected: {fieldName}\n    received: {prevName}\n    This can happen on one of two reasons:\n    1. You\'re using if/else statements to conditionally select tests. Instead, use "skipWhen".\n    2. You are iterating over a list of tests, and their order changed. Use "each" and a custom key prop so that Vest retains their state.',t.UNEXPECTED_TEST_REGISTRATION_ERROR="Unexpected error encountered during test registration.\n      Please report this issue to Vest's Github repository.\n      Test Object: {testObject}.\n      Error: {error}.",t.UNEXPECTED_TEST_RUN_ERROR="Unexpected error encountered during test run. Please report this issue to Vest's Github repository.\n      Test Object: {testObject}.",t.INCLUDE_SELF="Trying to call include.when on the same field."}(ve||(ve={}));const be="PENDING",ye="INITIAL",we="DONE",Ee={[be]:be,[ye]:ye,[we]:we},Se=H({initial:Ee.INITIAL,states:{[Ee.DONE]:{},[Ee.INITIAL]:{[Ee.PENDING]:Ee.PENDING,[Ee.DONE]:Ee.DONE},[Ee.PENDING]:{[Ee.DONE]:Ee.DONE}}}),_e={[be]:be,CANCELED:"CANCELED",FAILED:"FAILED",OMITTED:"OMITTED",PASSING:"PASSING",SKIPPED:"SKIPPED",UNTESTED:"UNTESTED",WARNING:"WARNING"},xe="RESET",Te=H({initial:_e.UNTESTED,states:{"*":{[_e.OMITTED]:_e.OMITTED,[xe]:_e.UNTESTED},[_e.UNTESTED]:{[_e.CANCELED]:_e.CANCELED,[_e.FAILED]:_e.FAILED,[_e.PASSING]:_e.PASSING,[_e.PENDING]:_e.PENDING,[_e.SKIPPED]:_e.SKIPPED,[_e.WARNING]:_e.WARNING},[_e.PENDING]:{[_e.CANCELED]:_e.CANCELED,[_e.FAILED]:_e.FAILED,[_e.PASSING]:_e.PASSING,[_e.SKIPPED]:[_e.SKIPPED,t=>!0===t],[_e.WARNING]:_e.WARNING},[_e.SKIPPED]:{},[_e.FAILED]:{},[_e.WARNING]:{},[_e.PASSING]:{},[_e.CANCELED]:{},[_e.OMITTED]:{}}});var Ce,Oe,Ae,Pe,Le,Ie;function ke(t){return t===Ce.ERRORS?Oe.ERROR_COUNT:Oe.WARN_COUNT}!function(t){t.WARNINGS="warnings",t.ERRORS="errors"}(Ce||(Ce={})),function(t){t.ERROR_COUNT="errorCount",t.WARN_COUNT="warnCount"}(Oe||(Oe={})),function(t){t.Error="error",t.Warning="warning"}(Ae||(Ae={}));class De{static getStatus(t){var e;return null!==(e=t.status)&&void 0!==e?e:ye}static setStatus(t,e,n){t.status=this.stateMachine.staticTransition(De.getStatus(t),e,n)}static statusEquals(t,e){return De.getStatus(t)===e}static setPending(t){this.setStatus(t,be)}static setDone(t){this.setStatus(t,we)}static isPending(t){return De.statusEquals(t,be)}}De.stateMachine=Se;class Ne extends De{static getData(t){return O(t.data),t.data}static is(t){return ee.isIsolateType(t,ce.Test)}static isX(t){O(Ne.is(t),ve.EXPECTED_VEST_TEST)}static cast(t){return Ne.isX(t),t}static warns(t){return Ne.getData(t).severity===Ae.Warning}static isOmitted(t){return Ne.statusEquals(t,_e.OMITTED)}static isUntested(t){return Ne.statusEquals(t,_e.UNTESTED)}static isFailing(t){return Ne.statusEquals(t,_e.FAILED)}static isCanceled(t){return Ne.statusEquals(t,_e.CANCELED)}static isSkipped(t){return Ne.statusEquals(t,_e.SKIPPED)}static isPassing(t){return Ne.statusEquals(t,_e.PASSING)}static isWarning(t){return Ne.statusEquals(t,_e.WARNING)}static hasFailures(t){return Ne.isFailing(t)||Ne.isWarning(t)}static isNonActionable(t){return Ne.isSkipped(t)||Ne.isOmitted(t)||Ne.isCanceled(t)}static isTested(t){return Ne.hasFailures(t)||Ne.isPassing(t)}static awaitsResolution(t){return Ne.isSkipped(t)||Ne.isUntested(t)||Ne.isPending(t)}static isAsyncTest(t){return _(Ne.getData(t).asyncTest)}static fail(t){Ne.setStatus(t,Ne.warns(t)?_e.WARNING:_e.FAILED)}static pass(t){Ne.setStatus(t,_e.PASSING)}static warn(t){Ne.setData(t,(t=>Object.assign(Object.assign({},t),{severity:Ae.Warning})))}static setData(t,e){t.data=x(e,Ne.getData(t))}static skip(t,e){Ne.setStatus(t,_e.SKIPPED,e)}static cancel(t){Ne.setStatus(t,_e.CANCELED),Rt.abort(t,_e.CANCELED)}static omit(t){Ne.setStatus(t,_e.OMITTED)}static reset(t){Ne.setStatus(t,xe)}}function Me(t,e){return!!e&&!Re(t,e)}function Re(t,e){return!(!e||t.fieldName!==e)}function je(t,e){const{groupName:n}=Ne.getData(t),{groupName:i,fieldName:s}=Ne.getData(e);return Re(Ne.getData(t),s)&&n===i&&t.key==e.key}function Fe(t,e){return ie.create(ce.Focused,q,{focusMode:t,match:y(e).filter(A),matchAll:!0===e})}Ne.stateMachine=Te,function(t){t[t.ONLY=0]="ONLY",t[t.SKIP=1]="SKIP"}(Pe||(Pe={}));class ze{static isSkipFocused(t,e){return(null==t?void 0:t.data.focusMode)===Pe.SKIP&&(Ue(t,e)||!0===t.data.matchAll)}static isOnlyFocused(t,e){return(null==t?void 0:t.data.focusMode)===Pe.ONLY&&Ue(t,e)}static isIsolateFocused(t){return ee.isIsolateType(t,ce.Focused)}}function Be(t){return Fe(Pe.ONLY,He(t))}function $e(t){return Fe(Pe.SKIP,He(t))}function He(t){return!1===t?[]:t}function Ue(t,e){var n,i;return F(null==t?void 0:t.data.match)&&(!e||null===(i=null===(n=null==t?void 0:t.data.match)||void 0===n?void 0:n.includes(e))||void 0===i||i)}class We{constructor(){this.errorCount=0,this.warnCount=0,this.testCount=0,this.pendingCount=0}}class qe extends We{constructor(){super(...arguments),this[Le]=[],this[Ie]=[],this.groups={},this.tests={},this.valid=null}}Le=Ce.ERRORS,Ie=Ce.WARNINGS;const Ve=h(),Ge=h();function Xe(){return zt.useXAppData()}function Ke(){return Xe().doneCallbacks()}function Ye(){return Xe().fieldCallbacks()}function Je(){return Xe().suiteId}function Ze(){Xe().suiteResultCache.invalidate([Je()]),Ge.invalidate([Je()])}function Qe(){const[,,t]=Ke(),[,,e]=Ye();t(),e()}function tn(t){zt.useSetHistoryRoot(t),Ze()}function en(t,e,n){return n?function(t,e,n){var i;return(null===(i=null==t?void 0:t[n])||void 0===i?void 0:i[e])||[]}(t,e,n):function(t,e){const n={},i=ke(e);for(const s in t)z(t[s][i])&&(n[s]=t[s][e]||[]);return n}(t,e)}function nn(t,e,n){return en(t.tests,e,n)}function sn(t,e,n,i){return en(t.groups[n],e,i)}function on(t,e){var n;return!!(null===(n=t[e])||void 0===n?void 0:n.valid)}function rn(t,e,n,i){var s,o;const r=t.groups[n];if(!r)return!1;if(i)return z(null===(s=r[i])||void 0===s?void 0:s[e]);for(const t in r)if(z(null===(o=r[t])||void 0===o?void 0:o[e]))return!0;return!1}function an(t,e,n){var i;return z(n?null===(i=t.tests[n])||void 0===i?void 0:i[e]:t[e]||0)}function cn(t,e,n){var i;const s=e[t];return n?null===(i=s.find((t=>Re(t,n))))||void 0===i?void 0:i.message:s[0]}class ln{constructor(t,e,n){this.fieldName=t,this.message=e,this.groupName=n}static fromTestObject(t){const{fieldName:e,message:n,groupName:i}=Ne.getData(t);return new ln(e,n,i)}}class un{static hasNoTests(t=un.defaultRoot()){return!t||!ae.has(t,Ne.is)}static someTests(t,e=un.defaultRoot()){return!!e&&ae.some(e,(e=>(Ne.isX(e),t(e))),Ne.is)}static everyTest(t,e=un.defaultRoot()){return!!e&&ae.every(e,(e=>(Ne.isX(e),t(e))),Ne.is)}static walkTests(t,e=un.defaultRoot()){e&&ae.walk(e,((e,n)=>{t(Ne.cast(e),n)}),Ne.is)}static reduceTests(t,e,n=un.defaultRoot()){return n?ae.reduce(n,((e,n,i)=>t(e,Ne.cast(n),i)),e,Ne.is):e}static pluckTests(t,e=un.defaultRoot()){e&&ae.pluck(e,(e=>(Ne.isX(e),t(e))),Ne.is)}static resetField(t){un.walkTests((e=>{Re(Ne.getData(e),t)&&Ne.reset(e)}),un.defaultRoot())}static removeTestByFieldName(t,e=un.defaultRoot()){un.pluckTests((e=>Re(Ne.getData(e),t)),e)}}un.defaultRoot=zt.useAvailableRoot;class dn{static useHasPending(t){if(!dn.defaultRoot())return!1;const e=dn.usePreAggs().pending;return!j(e)&&e.some(V.all(null==t||t))}static usePreAggs(){return t=hn,(0,Xe().preAggCache)([Je()],t);var t}static useHasRemainingWithTestNameMatching(t){return dn.useHasPending(V.any(v(t),V.all(Ne.is,(e=>function(t,e){return!e||Re(t,e)}(Ne.getData(e),t)))))}}function hn(){const t=dn.defaultRoot(),e={pending:[],failures:{errors:{},warnings:{}}};return t?ae.reduce(t,((t,e)=>{var n,i;if(De.isPending(e)&&t.pending.push(e),Ne.is(e)){const s=Ne.getData(e).fieldName;Ne.isWarning(e)&&(t.failures.warnings[s]=null!==(n=t.failures.warnings[s])&&void 0!==n?n:[],t.failures.warnings[s].push(e)),Ne.isFailing(e)&&(t.failures.errors[s]=null!==(i=t.failures.errors[s])&&void 0!==i?i:[],t.failures.errors[s].push(e))}return t}),e):e}dn.defaultRoot=zt.useAvailableRoot;const pn=i((function(t,e){return Ne.getData(t).groupName===e}));function fn(t){return function(t,e){const n=dn.usePreAggs().failures;return!(j(n[t])||e&&j(n[t][e]))}(Ce.ERRORS,t)}function mn(t){return!!ge(t)||!un.hasNoTests()&&!fn(t)&&!function(t){return dn.useHasPending(V.all(Ne.is,(e=>!Me(Ne.getData(e),t)),(()=>!ge(t))))}(t)&&function(t){return un.everyTest((e=>gn(e,t)))}(t)}function gn(t,e){return!!Me(Ne.getData(t),e)||Ne.isOmitted(t)||Ne.isTested(t)||function(t){const e=zt.useAvailableRoot(),{fieldName:n}=Ne.getData(t);return le.getOptionalField(e,n).type===ue.AUTO&&Ne.awaitsResolution(t)}(t)}function vn(t,e){const{message:n}=Ne.getData(e),i=C(t?Object.assign({},t):null,bn);return Ne.isNonActionable(e)||(Ne.isPending(e)&&i.pendingCount++,Ne.isFailing(e)?s(Ce.ERRORS):Ne.isWarning(e)&&s(Ce.WARNINGS),i.testCount++),i;function s(t){const e=ke(t);i[e]++,n&&(i[t]=(i[t]||[]).concat(n))}}function bn(){return T(new We,{errors:[],valid:!0,warnings:[]})}function yn(){return t=()=>{const t=function(){const t=un.reduceTests(((t,e)=>{const n=Ne.getData(e).fieldName;return t.tests[n]=function(t,e){const n=Ne.getData(e).fieldName,i=vn(t[n],e);return i.valid=!1!==i.valid&&mn(n),i}(t.tests,e),t.groups=function(t,e){const{groupName:n,fieldName:i}=Ne.getData(e);if(!n)return t;t[n]=t[n]||{};const s=t[n];return s[i]=vn(s[i],e),s[i].valid=!1!==s[i].valid&&function(t,e){return!!ge(e)||!function(t,e,n){return un.someTests((i=>!pn(i,e)&&function(t,e,n){return!!Ne.hasFailures(t)&&!Me(Ne.getData(t),n)&&!function(t,e){return function(t,e){return!!t!=!!e}(t===Ce.WARNINGS,Ne.warns(e))}(e,t)}(i,t,n)))}(Ce.ERRORS,t,e)&&!function(t,e){return dn.useHasPending(V.all(Ne.is,(e=>!pn(e,t)),(t=>!Me(Ne.getData(t),e)),(()=>!ge(e))))}(t,e)&&function(t,e){return un.everyTest((n=>!!pn(n,t)||gn(n,e)))}(t,e)}(n,i),t}(t.groups,e),Ne.isOmitted(e)?t:(!1===t.tests[n].valid&&(t.valid=!1),function(t,e){return Ne.isWarning(t)?(e.warnCount++,e.warnings.push(ln.fromTestObject(t))):Ne.isFailing(t)&&(e.errorCount++,e.errors.push(ln.fromTestObject(t))),Ne.isPending(t)&&e.pendingCount++,Ne.isNonActionable(t)||e.testCount++,e}(e,t))}),new qe);return t.valid=!1!==t.valid&&mn(),t}(),e=Xe().suiteName;return Object.freeze(wn(t,e))},(0,Xe().suiteResultCache)([Je()],t);var t}function wn(t,e){return T(t,function(t){const e={getError:i,getErrors:function(e){return nn(t,Ce.ERRORS,e)},getErrorsByGroup:function(e,n){return sn(t,Ce.ERRORS,e,n)},getMessage:function(t){return i(t)||n(t)},getWarning:n,getWarnings:function(e){return nn(t,Ce.WARNINGS,e)},getWarningsByGroup:function(e,n){return sn(t,Ce.WARNINGS,e,n)},hasErrors:function(e){return an(t,Oe.ERROR_COUNT,e)},hasErrorsByGroup:function(e,n){return rn(t,Oe.ERROR_COUNT,e,n)},hasWarnings:function(e){return an(t,Oe.WARN_COUNT,e)},hasWarningsByGroup:function(e,n){return rn(t,Oe.WARN_COUNT,e,n)},isPending:function(e){var n;return u(e?null===(n=t.tests[e])||void 0===n?void 0:n.pendingCount:t.pendingCount,0)},isTested:function(e){var n;return z(null===(n=t.tests[e])||void 0===n?void 0:n.testCount)},isValid:function(e){var n;return Boolean(e?null===(n=t.tests[e])||void 0===n?void 0:n.valid:t.valid)},isValidByGroup:function(e,n){const i=t.groups[e];if(!i)return!1;if(n)return on(i,n);for(const t in i)if(!on(i,t))return!1;return!0}};return e;function n(e){return cn(Ce.WARNINGS,t,e)}function i(e){return cn(Ce.ERRORS,t,e)}}(t),{suiteName:e})}function En(){const t=wn(new qe);return new Proxy(t,{get:(t,e)=>yn()[e]})}function Sn(t,e){ie.create(ce.SkipWhen,(()=>{he.run({skipped:_n()||x(t,En())},e)}))}function _n(){return function(){var t;return null!==(t=he.useX().skipped)&&void 0!==t&&t}()}function xn(t,e){return b(ae.findClosest(t,(t=>!!ze.isIsolateFocused(t)&&ze.isOnlyFocused(t,e))))}function Tn(t){const{fieldName:e}=Ne.getData(t);if(_n())return!0;const n=pe(),i=function(t){return ae.findClosest(t,(e=>{var n;if(!ze.isIsolateFocused(e))return!1;const{fieldName:i}=Ne.getData(t);return(null===(n=e.data.match)||void 0===n?void 0:n.includes(i))||e.data.matchAll}))}(t);return!!ze.isSkipFocused(i)||!ze.isOnlyFocused(i)&&!!xn(t)&&!x(n[e],t)}function Cn(t){const[e]=he.useX().mode();return e===t}function On(t,e){ie.create(ce.OmitWhen,(()=>{he.run({omitted:An()||x(t,En())},e)}))}function An(){return function(){var t;return null!==(t=he.useX().omitted)&&void 0!==t&&t}()}function Pn(t,e=t){const n=Ne.getData(t);return function(t){return Cn(de.ONE)?fn():!!Cn(de.EAGER)&&fn(t.fieldName)}(n)?(i=t,Ne.skip(i),i):(s=n.fieldName,An()||ge(s)?function(t){return Ne.omit(t),t}(t):Tn(t)?function(t){return Ne.skip(t,_n()),t}(e):t);var i,s}function Ln(t,e){return Ne.is(e)&&!je(e,t)}const In=[class{static match(t,e){return Ne.is(t)&&Ne.is(e)}static reconcile(t,e){const n=Pn(t,function(t,e){return Mt.usesKey(t)?function(t){return Ne.cast(ne.handleIsolateNodeWithKey(t,(e=>!!Ne.isNonActionable(e)||!Tn(t))))}(t):ne.dropNextNodesOnReorder(Ln,t,e)?(function(t,e){Mt.canReorder(t)||L($(ve.TESTS_CALLED_IN_DIFFERENT_ORDER,{fieldName:Ne.getData(t).fieldName,prevName:Ne.is(e)?Ne.getData(e).fieldName:void 0}))}(t,e),t):Ne.is(e)?Ne.isOmitted(e)?t:e:t}(t,e));return function(t,e,n){var i,s;t===e&&Ne.is(e)&&(s=e)!==(i=n)&&je(i,s)&&Ne.isPending(i)&&Ne.cancel(i)}(n,t,e),n}}];function kn(t,e){var n,i;return null!==(i=null===(n=In.find((n=>n.match(t,e))))||void 0===n?void 0:n.reconcile(t,e))&&void 0!==i?i:null}function Dn(...t){const[e,n]=t.reverse();return ie.create(ce.Group,(()=>he.run(Object.assign({},n&&{groupName:n}),e)))}function Nn(t){return O(A(t)),pe()[t]=!0,{when:function(e){O(e!==t,ve.INCLUDE_SELF),pe()[t]=function(t){return A(e)?xn(t,e):x(e,x(yn))}}}}function Mn(t){if(Pn(t),Ne.isUntested(t))return function(t){const e=function(t){return he.run({currentTest:t},(()=>{let e;const{message:n,testFn:i}=Ne.getData(t);try{e=i({signal:t.abortController.signal})}catch(i){(function(t,e){return m(t)&&A(e)})(n,i)&&(Ne.getData(t).message=i),e=!1}return!1===e&&Ne.fail(t),e}))}(t);try{if(_(e))return Ne.getData(t).asyncTest=e,function(t){const{asyncTest:e,message:n}=Ne.getData(t);if(!_(e))return;const i=zt.persist((()=>{Rn(t)})),s=zt.persist((e=>{Ne.isCanceled(t)||(Ne.getData(t).message=A(e)?e:n,Ne.fail(t),i())}));return e.then(i,s)}(t);Rn(t)}catch(e){throw new Error($(ve.UNEXPECTED_TEST_REGISTRATION_ERROR,{testObject:JSON.stringify(t),error:e}))}}(t);Ne.isNonActionable(t)||L($(ve.UNEXPECTED_TEST_REGISTRATION_ERROR,{testObject:JSON.stringify(t)}))}function Rn(t){Ne.pass(t)}function jn(t,...e){const[n,i,s]=S(e[1])?e:[void 0,...e];!function(t,e){const n="test";O(A(t),$(ve.INVALID_PARAM_PASSED_TO_FUNCTION,{fn_name:n,param:"fieldName",expected:"string"})),O(S(e),$(ve.INVALID_PARAM_PASSED_TO_FUNCTION,{fn_name:n,param:"callback",expected:"function"}))}(t,i);const o={fieldName:t,groupName:he.useX().groupName,message:n,testFn:i};return Zt.useEmit("TEST_RUN_STARTED"),function(t,e,n){const i=Object.assign(Object.assign({},{severity:Ae.Error,status:Te.initial()}),{fieldName:e.fieldName,testFn:e.testFn});return e.groupName&&(i.groupName=e.groupName),e.message&&(i.message=e.message),ie.create(ce.Test,t,i,null!=n?n:null)}(Mn,o,s)}const Fn=T(jn,{memo:function(t){return function(e,...n){const[i,s,o]=n.reverse();return function(t,e){const n=he.useX().testMemoCache,i=n.get(t);if(p(i))return n(t,e);const[,s]=i;return Ne.isCanceled(s)?(n.invalidate(t),n(t,e)):(zt.useSetNextIsolateChild(s),s)}([Je(),e,zt.useCurrentCursor()].concat(i),(function(){return t(e,o,s)}))}}(jn)});function zn(){return{group:Dn,include:Nn,omitWhen:On,only:Be,optional:me,skip:$e,skipWhen:Sn,test:Fn}}function Bn(){const t=zt.useAvailableRoot();if(j(le.getOptionalFields(t)))return;const e=new Set;function n(n){const{fieldName:i}=Ne.getData(n);e.has(i)&&(Ne.omit(n),le.setOptionalField(t,i,(t=>Object.assign(Object.assign({},t),{applied:!0}))))}un.walkTests((i=>{if(Ne.isPending(i))return;const{fieldName:s}=Ne.getData(i);e.has(s)?n(i):function(i){const{fieldName:s}=Ne.getData(i);!0===x(le.getOptionalField(t,s).rule)&&e.add(s),n(i)}(i)})),Zt.useEmit("DONE_TEST_OMISSION_PASS")}function $n(){return function(...t){return Object.freeze(T(...t))}({done:zt.persist(Hn)},yn())}function Hn(...t){const[e,n]=t.reverse(),i=$n();if(function(t,e,n){var i,s;return!!(!S(t)||e&&r(null!==(s=null===(i=n.tests[e])||void 0===i?void 0:i.testCount)&&void 0!==s?s:0,0))}(e,n,i))return i;const s=()=>e(yn());return dn.useHasRemainingWithTestNameMatching(n)?(function(t,e){const[,n]=Ye(),[,i]=Ke();e?n((n=>T(n,{[e]:(n[e]||[]).concat(t)}))):i((e=>e.concat(t)))}(s,n),i):(s(),i)}function Un(...t){const[e,n]=t.reverse();!function(t){O(S(t),ve.SUITE_MUST_BE_INITIALIZED_WITH_FUNCTION)}(e);const i=function({suiteName:t,VestReconciler:e}){const n={doneCallbacks:U.createTinyState((()=>[])),fieldCallbacks:U.createTinyState((()=>({}))),preAggCache:Ge,suiteId:k(),suiteName:t,suiteResultCache:Ve};return zt.createRef(e,n)}({suiteName:n,VestReconciler:kn});function s(...t){return he.run({suiteParams:t},(()=>{return Zt.useEmit("SUITE_RUN_STARTED"),n=function(t,...e){const n=Zt.useEmit();return()=>(t(...e),n("SUITE_CALLBACK_RUN_FINISHED"),$n())}(e,...t),ie.create(ce.Suite,n,{optional:{}});var n})).output}const o=function(...t){return T(((...e)=>{const n=Un(...t),i=n(...e);return T(new Promise((t=>{i.done((e=>{t(s(e))}))})),s(i));function s(t){return T({dump:n.dump},t)}}),Object.assign({},zn()))}(...t);return zt.Run(i,(()=>{const t=function(){const t=Zt.useBus();return e("TEST_COMPLETED",(()=>{})),t.on(Dt.ISOLATE_PENDING,(t=>{Ne.is(t)&&Ne.setPending(t),De.setPending(t)})),t.on(Dt.ISOLATE_DONE,(e=>{Ne.is(e)&&t.emit("TEST_COMPLETED",e),De.setDone(e)})),t.on(Dt.ASYNC_ISOLATE_DONE,(e=>{if(Ne.is(e)&&!Ne.isCanceled(e)){const{fieldName:t}=Ne.getData(e);!function(t){const[e]=Ye();t&&!dn.useHasRemainingWithTestNameMatching(t)&&M(e[t])&&w(e[t])}(t)}dn.useHasPending()||t.emit("ALL_RUNNING_TESTS_FINISHED")})),e("DONE_TEST_OMISSION_PASS",(()=>{})),t.on("ALL_RUNNING_TESTS_FINISHED",(()=>{un.someTests(Ne.isAsyncTest)&&Bn(),function(){const[t]=Ke();w(t)}()})),e("RESET_FIELD",(t=>{un.resetField(t)})),e("SUITE_RUN_STARTED",(()=>{Qe()})),e("SUITE_CALLBACK_RUN_FINISHED",(()=>{dn.useHasPending()||t.emit("ALL_RUNNING_TESTS_FINISHED"),Bn()})),e("REMOVE_FIELD",(t=>{un.removeTestByFieldName(t)})),e("RESET_SUITE",(()=>{Qe(),zt.reset()})),{subscribe:function(...e){const[n,i]=e.reverse();return t.on(null!=i?i:"*",(()=>{n()})).off}};function e(e,n){t.on(e,((...t)=>{Ze(),n(...t)}))}}();return T(zt.persist(s),Object.assign(Object.assign({dump:zt.persist((()=>zt.useAvailableRoot())),get:zt.persist(yn),remove:Zt.usePrepareEmitter("REMOVE_FIELD"),reset:Zt.usePrepareEmitter("RESET_SUITE"),resetField:Zt.usePrepareEmitter("RESET_FIELD"),resume:zt.persist(tn),runStatic:(...t)=>o(...t),subscribe:t.subscribe},(e=zt.persist(yn),{getError:(...t)=>e().getError(...t),getErrors:(...t)=>e().getErrors(...t),getErrorsByGroup:(...t)=>e().getErrorsByGroup(...t),getMessage:(...t)=>e().getMessage(...t),getWarning:(...t)=>e().getWarning(...t),getWarnings:(...t)=>e().getWarnings(...t),getWarningsByGroup:(...t)=>e().getWarningsByGroup(...t),hasErrors:(...t)=>e().hasErrors(...t),hasErrorsByGroup:(...t)=>e().hasErrorsByGroup(...t),hasWarnings:(...t)=>e().hasWarnings(...t),hasWarningsByGroup:(...t)=>e().hasWarningsByGroup(...t),isPending:(...t)=>e().isPending(...t),isTested:(...t)=>e().isTested(...t),isValid:(...t)=>e().isValid(...t),isValidByGroup:(...t)=>e().isValidByGroup(...t)})),zn()));var e}))}ve.WARN_MUST_BE_CALLED_FROM_TEST}}]);