vendor: 44,554 bytes, lines 1-2
1/*! For license information please see vendor.js.LICENSE.txt */ 2(globalThis.webpackChunkcwaas=globalThis.webpackChunkcwaas||[]).push([[807],{197(t,e,i){"use strict";i.d(e,{lX:()=>Ce});const n=(t,e=1e4)=>(t=parseFloat(t+"")||0,Math.round((t+Number.EPSILON)*e)/e),o=function(t){if(!(t&&t instanceof Element&&t.offsetParent))return!1;const e=t.scrollHeight>t.clientHeight,i=window.getComputedStyle(t).overflowY,n=-1!==i.indexOf("hidden"),o=-1!==i.indexOf("visible");return e&&!n&&!o},s=function(t,e=void 0){return!(!t||t===document.body||e&&t===e)&&(o(t)?t:s(t.parentElement,e))},r=function(t){var e=(new DOMParser).parseFromString(t,"text/html").body;if(e.childElementCount>1){for(var i=document.createElement("div");e.firstChild;)i.appendChild(e.firstChild);return i}return e.firstChild},a=t=>`${t||""}`.split(" ").filter(t=>!!t),l=(t,e,i)=>{t&&a(e).forEach(e=>{t.classList.toggle(e,i||!1)})};class c{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:i=()=>{},end:n=()=>{}}){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=i,this.endCallback=n;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 c(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 c(e),t);window.addEventListener("blur",this.onWindowBlur)}onMove(t){const e=this.currentPointers.slice(),i="changedTouches"in t?Array.from(t.changedTouches||[]).map(t=>new c(t)):[new c(t)],n=[];for(const t of i){const e=this.currentPointers.findIndex(e=>e.id===t.id);e<0||(n.push(t),this.currentPointers[e]=t)}n.length&&this.moveCallback(t,this.currentPointers.slice(),e)}onPointerEnd(t){t.buttons>0&&0!==t.button||(this.triggerPointerEnd(t,new c(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 c(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 i=this.currentPointers.findIndex(t=>t.id===e.id);i<0||(this.currentPointers.splice(i,1),this.startPointers.splice(i,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),g=(t,...e)=>{const i=e.length;for(let n=0;n<i;n++){const i=e[n]||{};Object.entries(i).forEach(([e,i])=>{const n=Array.isArray(i)?[]:{};t[e]||Object.assign(t,{[e]:n}),f(i)?Object.assign(t[e],g(n,i)):Array.isArray(i)?Object.assign(t,{[e]:[...i]}):Object.assign(t,{[e]:i})})}return t},m=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?g({},this.constructor.defaults,t):{};for(const[t,e]of Object.entries(this.option("on")||{}))this.on(t,e)}option(t,...e){let i=m(t,this.options);return i&&"function"==typeof i&&(i=i.call(this,this,...e)),i}optionFor(t,e,i,...n){let o=m(e,t);var s;"string"!=typeof(s=o)||isNaN(s)||isNaN(parseFloat(s))||(o=parseFloat(o)),"true"===o&&(o=!0),"false"===o&&(o=!1),o&&"function"==typeof o&&(o=o.call(this,this,t,...n));let r=m(e,this.options);return r&&"function"==typeof r?o=r.call(this,this,t,...n,o):void 0===o&&(o=r),void 0===o?i:o}cn(t){const e=this.options.classes;return e&&e[t]||""}localize(t,e=[]){t=String(t).replace(/\{\{(\w+).?(\w+)?\}\}/g,(t,e,i)=>{let n="";return i?n=this.option(`${e[0]+e.toLowerCase().substring(1)}.l10n.${i}`):e&&(n=this.option(`l10n.${e}`)),n||(n=t),n});for(let i=0;i<e.length;i++)t=t.split(e[i][0]).join(e[i][1]);return t.replace(/\{\{(.*?)\}\}/g,(t,e)=>e)}on(t,e){let i=[];"string"==typeof t?i=t.split(" "):Array.isArray(t)&&(i=t),this.events||(this.events=new Map),i.forEach(t=>{let i=this.events.get(t);i||(this.events.set(t,[]),i=[]),i.includes(e)||i.push(e),this.events.set(t,i)})}off(t,e){let i=[];"string"==typeof t?i=t.split(" "):Array.isArray(t)&&(i=t),i.forEach(t=>{const i=this.events.get(t);if(Array.isArray(i)){const t=i.indexOf(e);t>-1&&i.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[i,n]of Object.entries(t)){const t=this.option(i),o=this.plugins[i];o||!1===t?o&&!1===t&&(o.detach(),delete this.plugins[i]):e.set(i,new n(this,t||{}))}for(const[t,i]of e)this.plugins[t]=i,i.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"],x={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"},_={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:x},O='<circle cx="25" cy="25" r="20"></circle>',E='<div class="f-spinner"><svg viewBox="0 0 50 50">'+O+O+"</svg></div>",S=t=>t&&null!==t&&t instanceof Element&&"nodeType"in t,C=(t,e)=>{t&&a(e).forEach(e=>{t.classList.remove(e)})},T=(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,M="mousemove",L="drag",k="content",I="auto";let j=null,F=null;class D extends b{get fits(){return this.contentRect.width-this.contentRect.fitWidth<1&&this.contentRect.height-this.contentRect.fitHeight<1}get isTouchDevice(){return null===F&&(F=window.matchMedia("(hover: none)").matches),F}get isMobile(){return null===j&&(j=/iPhone|iPad|iPod|Android/i.test(navigator.userAgent)),j}get panMode(){return this.options.panMode!==M||this.isTouchDevice?L:M}get panOnlyZoomed(){const t=this.options.panOnlyZoomed;return t===I?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,i=Math.max(t.height/e.fitHeight,t.width/e.fitWidth)||1;return Math.min(this.fullScale,i)}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={},i={}){var n;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({},D.Plugins),i)),this.emit("attachPlugins"),this.emit("init");const o=this.content;if(o.addEventListener("load",this.onLoad),o.addEventListener("error",this.onError),this.isContentLoading){if(this.option("spinner")){t.classList.add(this.cn("isLoading"));const e=r(E);!t.contains(o)||o.parentElement instanceof HTMLPictureElement?this.spinner=t.appendChild(e):this.spinner=(null===(n=o.parentElement)||void 0===n?void 0:n.insertBefore(e,o))||null}this.emit("beforeLoad")}else queueMicrotask(()=>{this.enable()})}initContent(){const{container:t}=this,e=this.cn(k);let i=this.option(k)||t.querySelector(`.${e}`);if(i||(i=t.querySelector("img,picture")||t.firstElementChild,i&&T(i,e)),i instanceof HTMLPictureElement&&(i=i.querySelector("img")),!i)throw new Error("No content found");this.content=i}onLoad(){const{spinner:t,container:e,state:i}=this;t&&(t.remove(),this.spinner=null),this.option("spinner")&&e.classList.remove(this.cn("isLoading")),this.emit("afterLoad"),i===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:i,coverScale:n,maxScale:o,minScale:s}=this;let r=s;switch(t){case"toggleMax":r=i-s<.5*(o-s)?o:s;break;case"toggleCover":r=i-s<.5*(n-s)?n:s;break;case"toggleZoom":r=i-s<.5*(e-s)?e:s;break;case"iterateZoom":let t=[1,e,o].sort((t,e)=>t-e),a=t.findIndex(t=>t>i+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(M,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(M,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 i of w)t?(this.velocity[i]*=1-t,e&&!this.isScaling&&(this.velocity[i]=Math.max(Math.min(this.velocity[i],e),-1*e)),this.current[i]+=this.velocity[i]):this.current[i]=this.target[i];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:i}=this,n=i.e+t,o=i.f+e,s=this.getBounds(),{x:r,y:a}=s,l=r.min,c=r.max,u=a.min,d=a.max;let h=0,p=0;return l!==1/0&&n<l?h=l-n:c!==1/0&&n>c&&(h=c-n),u!==1/0&&o<u?p=u-o:d!==1/0&&o>d&&(p=d-o),Math.abs(h)<1e-4&&(h=0),Math.abs(p)<1e-4&&(p=0),Object.assign(Object.assign({},s),{xDiff:h,yDiff:p,inBounds:!h&&!p})}clampTargetBounds(){const{target:t}=this,{x:e,y:i}=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)),i.min!==1/0&&(t.f=Math.max(t.f,i.min)),i.max!==1/0&&(t.f=Math.min(t.f,i.max))}calculateContentDim(t=this.current){const{content:e,contentRect:i}=this,{fitWidth:n,fitHeight:o,fullWidth:s,fullHeight:r}=i;let a=s,l=r;if(this.option("zoom")||0!==this.angle){const i=!(e instanceof HTMLImageElement||"none"!==window.getComputedStyle(e).maxWidth&&"none"!==window.getComputedStyle(e).maxHeight),c=i?s:n,u=i?r:o,d=this.getMatrix(t),h=new DOMPoint(0,0).matrixTransform(d),p=new DOMPoint(0+c,0).matrixTransform(d),f=new DOMPoint(0+c,0+u).matrixTransform(d),g=new DOMPoint(0,0+u).matrixTransform(d),m=Math.abs(f.x-h.x),v=Math.abs(f.y-h.y),b=Math.abs(g.x-p.x),y=Math.abs(g.y-p.y);a=Math.max(m,b),l=Math.max(v,y)}return{contentWidth:a,contentHeight:l}}setEdgeForce(){if(this.ignoreBounds||this.isDragging||this.panMode===M||this.targetScale<this.scale)return this.isBouncingX=!1,void(this.isBouncingY=!1);const{target:t}=this,{x:e,y:i,xDiff:n,yDiff:o}=this.checkBounds(),s=this.option("maxVelocity");let r=this.velocity.e,a=this.velocity.f;0!==n?(this.isBouncingX=!0,n*r<=0?r+=.14*n:(r=.14*n,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))),s&&(r=Math.max(Math.min(r,s),-1*s))):this.isBouncingX=!1,0!==o?(this.isBouncingY=!0,o*a<=0?a+=.14*o:(a=.14*o,i.min!==1/0&&(this.target.f=Math.max(t.f,i.min)),i.max!==1/0&&(this.target.f=Math.min(t.f,i.max))),s&&(a=Math.max(Math.min(a,s),-1*s))):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 i=t.target;if(!i||t.defaultPrevented)return;if(i.hasAttribute("disabled"))return t.preventDefault(),void t.stopPropagation();if((()=>{const t=window.getSelection();return t&&"Range"===t.type})()&&!i.closest("button"))return;const n=i.closest("[data-panzoom-action]"),o=i.closest("[data-panzoom-change]"),s=n||o,r=s&&S(s)?s.dataset:null;if(r){const e=r.panzoomChange,i=r.panzoomAction;if((e||i)&&t.preventDefault(),e){let i={};try{i=JSON.parse(e)}catch(t){console&&console.warn("The given data was not valid JSON")}return void this.applyChange(i)}if(i)return void(this[i]&&this[i]())}if(Math.abs(this.dragOffset.x)>3||Math.abs(this.dragOffset.y)>3)return t.preventDefault(),void t.stopPropagation();if(i.closest("[data-fancybox]"))return;const a=this.content.getBoundingClientRect(),l=this.dragStart;if(l.time&&!this.canZoomOut()&&(Math.abs(a.x-l.x)>2||Math.abs(a.y-l.y)>2))return;this.dragStart.time=0;const c=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&&c(u)):(this.emit("dblClick",t),t.defaultPrevented||c(d)),this.clicks=0,this.clickTimer=null},350))):(this.emit("click",t),!t.defaultPrevented&&u&&c(u))}addTrackingPoint(t){const e=this.trackingPoints.filter(t=>t.time>Date.now()-100);e.push(t),this.trackingPoints=e}onPointerDown(t,e,i){var n;if(!1===this.option("touch",t))return!1;this.pwt=0,this.dragOffset={x:0,y:0,time:0},this.trackingPoints=[];const o=this.content.getBoundingClientRect();if(this.dragStart={x:o.x,y:o.y,top:o.top,left:o.left,time:Date.now()},this.clickTimer)return!1;if(this.panMode===M&&this.targetScale>1)return t.preventDefault(),t.stopPropagation(),!1;const s=t.composedPath()[0];if(!i.length){if(["TEXTAREA","OPTION","INPUT","SELECT","VIDEO","IFRAME"].includes(s.nodeName)||s.closest("[contenteditable],[data-selectable],[data-draggable],[data-clickable],[data-panzoom-change],[data-panzoom-action]"))return!1;null===(n=window.getSelection())||void 0===n||n.removeAllRanges()}if("mousedown"===t.type)["A","BUTTON"].includes(s.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,i){if(!1===this.option("touch",t))return;if(!this.isDragging)return;if(e.length<2&&this.panOnlyZoomed&&n(this.targetScale)<=n(this.minScale))return;if(this.emit("touchMove",t),t.defaultPrevented)return;this.addTrackingPoint(e[0]);const{content:o}=this,r=p(i[0],i[1]),a=p(e[0],e[1]);let l=0,c=0;if(e.length>1){const t=o.getBoundingClientRect();l=r.clientX-t.left-.5*t.width,c=r.clientY-t.top-.5*t.height}const u=h(i[0],i[1]),d=h(e[0],e[1]);let f=u?d/u:1,g=a.clientX-r.clientX,m=a.clientY-r.clientY;this.dragOffset.x+=g,this.dragOffset.y+=m,this.dragOffset.time=Date.now()-this.dragStart.time;let v=n(this.targetScale)===n(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,g=0,m=0}else this.lockedAxis=v;if(s(t.target,this.content)&&(v="x",this.dragOffset.y=0),v&&"xy"!==v&&this.lockedAxis!==v&&n(this.targetScale)===n(this.minScale))return;t.cancelable&&t.preventDefault(),this.container.classList.add(this.cn("isDragging"));const b=this.checkBounds(g,m);this.option("rubberband")?("x"!==this.isInfinite&&(b.xDiff>0&&g<0||b.xDiff<0&&g>0)&&(g*=Math.max(0,.5-Math.abs(.75/this.contentRect.fitWidth*b.xDiff))),"y"!==this.isInfinite&&(b.yDiff>0&&m<0||b.yDiff<0&&m>0)&&(m*=Math.max(0,.5-Math.abs(.75/this.contentRect.fitHeight*b.yDiff)))):(b.xDiff&&(g=0),b.yDiff&&(m=0));const y=this.targetScale,w=this.minScale,x=this.maxScale;y<.5*w&&(f=Math.max(f,w)),y>1.5*x&&(f=Math.min(f,x)),"y"===this.lockedAxis&&n(y)===n(w)&&(g=0),"x"===this.lockedAxis&&n(y)===n(w)&&(m=0),this.applyChange({originX:l,originY:c,panX:g,panY:m,scale:f,friction:this.option("dragFriction"),ignoreBounds:!0})}onPointerUp(t,e,i){if(i.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=[]),s(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:i}=this,o=i[0],s=i[i.length-1];let r=0,a=0,l=0;s&&o&&(r=s.clientX-o.clientX,a=s.clientY-o.clientY,l=s.time-o.time);const c=(null===(t=window.visualViewport)||void 0===t?void 0:t.scale)||1;1!==c&&(r*=c,a*=c);let u=0,d=0,h=0,p=0,f=this.option("decelFriction");const g=this.targetScale;if(l>0){h=Math.abs(r)>3?r/(l/30):0,p=Math.abs(a)>3?a/(l/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&&n(g)===this.minScale)&&(u=h=0),("x"===this.option("lockAxis")||"xy"===this.option("lockAxis")&&"x"===this.lockedAxis&&n(g)===this.minScale)&&(d=p=0);const m=this.dragOffset.x,v=this.dragOffset.y,b=this.option("dragMinThreshold")||0;Math.abs(m)<b&&Math.abs(v)<b&&(u=d=0,h=p=0),(this.option("zoom")&&(g<this.minScale-1e-5||g>this.maxScale+1e-5)||e&&!u&&!d)&&(f=.35),this.applyChange({panX:u,panY:d,friction:f}),this.emit("decel",h,p,m,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 i=Math.max(-1,Math.min(1,e));if(this.emit("wheel",t,i),this.panMode===M)return;if(t.defaultPrevented)return;const n=this.option("wheel");"pan"===n?(t.preventDefault(),this.panOnlyZoomed&&!this.canZoomOut()||this.applyChange({panX:2*-t.deltaX,panY:2*-t.deltaY,bounce:!1})):"zoom"===n&&!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:i,contentRect:o}=this,s=Object.assign({},A);for(const i of w){const o="e"==i||"f"===i?P:1e5;s[i]=n(t[i],o),Math.abs(e[i]-t[i])<("e"==i||"f"===i?.51:.001)&&(t[i]=e[i])}let{a:r,b:a,c:l,d:c,e:u,f:d}=s,h=`matrix(${r}, ${a}, ${l}, ${c}, ${u}, ${d})`,p=i.parentElement instanceof HTMLPictureElement?i.parentElement:i;if(this.option("transformParent")&&(p=p.parentElement||p),p.style.transform===h)return;p.style.transform=h;const{contentWidth:f,contentHeight:g}=this.calculateContentDim();o.width=f,o.height=g,this.emit("afterTransform")}updateMetrics(t=!1){var e;if(!this||this.state===y.Destroy)return;if(this.isContentLoading)return;const i=Math.max(1,(null===(e=window.visualViewport)||void 0===e?void 0:e.scale)||1),{container:o,content:s}=this,r=s instanceof HTMLImageElement,a=o.getBoundingClientRect(),l=getComputedStyle(this.container);let c=a.width*i,u=a.height*i;const d=parseFloat(l.paddingTop)+parseFloat(l.paddingBottom),h=c-(parseFloat(l.paddingLeft)+parseFloat(l.paddingRight)),p=u-d;this.containerRect={width:c,height:u,innerWidth:h,innerHeight:p};const f=parseFloat(s.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})(s),g=parseFloat(s.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})(s);let m=this.option("width",f)||I,v=this.option("height",g)||I;const b=m===I,w=v===I;"number"!=typeof m&&(m=f),"number"!=typeof v&&(v=g),b&&(m=f*(v/g)),w&&(v=g/(f/m));let x=s.parentElement instanceof HTMLPictureElement?s.parentElement:s;this.option("transformParent")&&(x=x.parentElement||x);const _=x.getAttribute("style")||"";x.style.setProperty("transform","none","important"),r&&(x.style.width="",x.style.height=""),x.offsetHeight;const O=s.getBoundingClientRect();let E=O.width*i,S=O.height*i,C=E,T=S;E=Math.min(E,m),S=Math.min(S,v),r?({width:E,height:S}=((t,e,i,n)=>{const o=i/t,s=n/e,r=Math.min(o,s);return{width:t*=r,height:e*=r}})(m,v,E,S)):(E=Math.min(E,m),S=Math.min(S,v));let A=.5*(T-S),P=.5*(C-E);this.contentRect=Object.assign(Object.assign({},this.contentRect),{top:O.top-a.top+A,bottom:a.bottom-O.bottom+A,left:O.left-a.left+P,right:a.right-O.right+P,fitWidth:E,fitHeight:S,width:E,height:S,fullWidth:m,fullHeight:v}),x.style.cssText=_,r&&(x.style.width=`${E}px`,x.style.height=`${S}px`),this.setTransform(),!0!==t&&this.emit("refresh"),this.ignoreBounds||(n(this.targetScale)<n(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:i,lockedAxis:o}=this,{fitWidth:s,fitHeight:r}=this.contentRect;let a=0,l=0,c=0,u=0;const d=this.option("infinite");if(!0===d||o&&d===o)a=-1/0,c=1/0,l=-1/0,u=1/0;else{let{containerRect:o,contentRect:d}=this,h=n(s*i,P),p=n(r*i,P),{innerWidth:f,innerHeight:g}=o;if(o.width===h&&(f=o.width),o.width===p&&(g=o.height),t>f){c=.5*(t-f),a=-1*c;let e=.5*(d.right-d.left);a+=e,c+=e}if(s>f&&t<f&&(a-=.5*(s-f),c-=.5*(s-f)),e>g){u=.5*(e-g),l=-1*u;let t=.5*(d.bottom-d.top);l+=t,u+=t}r>g&&e<g&&(a-=.5*(r-g),c-=.5*(r-g))}return{x:{min:a,max:c},y:{min:l,max:u}}}getBounds(){const t=this.option("bounds");return t!==I?t:this.calculateBounds()}updateControls(){const t=this,e=t.container,{panMode:i,contentRect:o,targetScale:s,minScale:r}=t;let a=r,c=t.option("click")||!1;c&&(a=t.getNextScale(c));let u=t.canZoomIn(),d=t.canZoomOut(),h=i===L&&!!this.option("touch"),p=d&&h;if(h&&(n(s)<n(r)&&!this.panOnlyZoomed&&(p=!0),(n(o.width,1)>n(o.fitWidth,1)||n(o.height,1)>n(o.fitHeight,1))&&(p=!0)),n(o.width*s,1)<n(o.fitWidth,1)&&(p=!1),i===M&&(p=!1),l(e,this.cn("isDraggable"),p),!this.option("zoom"))return;let f=u&&n(a)>n(s),g=!f&&!p&&d&&n(a)<n(s);l(e,this.cn("canZoomIn"),f),l(e,this.cn("canZoomOut"),g);for(const t of e.querySelectorAll("[data-panzoom-action]")){let e=!1,i=!1;switch(t.dataset.panzoomAction){case"zoomIn":u?e=!0:i=!0;break;case"zoomOut":d?e=!0:i=!0;break;case"toggleZoom":case"iterateZoom":u||d?e=!0:i=!0;const n=t.querySelector("g");n&&(n.style.display=u?"":"none")}e?(t.removeAttribute("disabled"),t.removeAttribute("tabindex")):i&&(t.setAttribute("disabled",""),t.setAttribute("tabindex","-1"))}}panTo({x:t=this.target.e,y:e=this.target.f,scale:i=this.targetScale,friction:n=this.option("friction"),angle:o=0,originX:s=0,originY:r=0,flipX:a=!1,flipY:l=!1,ignoreBounds:c=!1}){this.state!==y.Destroy&&this.applyChange({panX:t-this.target.e,panY:e-this.target.f,scale:i/this.targetScale,angle:o,originX:s,originY:r,friction:n,flipX:a,flipY:l,ignoreBounds:c})}applyChange({panX:t=0,panY:e=0,scale:i=1,angle:o=0,originX:s=-this.current.e,originY:r=-this.current.f,friction:a=this.option("friction"),flipX:l=!1,flipY:c=!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,g=p.f,m=this.getMatrix(this.target);let v=(new DOMMatrix).translate(f,g).translate(s,r).translate(t,e);if(this.option("zoom")){if(!u){const t=this.targetScale,e=this.minScale,n=this.maxScale;t*i<e&&(i=e/t),t*i>n&&(i=n/t)}v=v.scale(i)}v=v.translate(-s,-r).translate(-f,-g).multiply(m),o&&(v=v.rotate(o)),l&&(v=v.scale(-1,1)),c&&(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]=n(v[t],P);(this.targetScale<this.scale||Math.abs(i-1)>.1||this.panMode===M||!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(),T(this.container,"is-animating"),this.isScaling&&T(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!==M||!t)return;if(n(this.targetScale)<=n(this.minScale))return;this.emit("mouseMove",t);const{container:i,containerRect:o,contentRect:s}=this,r=o.width,a=o.height,l=i.getBoundingClientRect(),c=(t.clientX||0)-l.left,u=(t.clientY||0)-l.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)-c/r*100/100*(d-r);f+=.5*(s.right-s.left);let g=.5*(h-a)-u/a*100/100*(h-a);g+=.5*(s.bottom-s.top),this.applyChange({panX:f-this.target.e,panY:g-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 i=[-t.deltaX||0,-t.deltaY||0,-t.detail||0].reduce(function(t,e){return Math.abs(e)>Math.abs(t)?e:t});const o=Math.max(-1,Math.min(1,i)),{targetScale:s,maxScale:r,minScale:a}=this;let l=s*(100+45*o)/100;n(l)<n(a)&&n(s)<=n(a)?(this.cwd+=Math.abs(o),l=a):n(l)>n(r)&&n(s)>=n(r)?(this.cwd+=Math.abs(o),l=r):(this.cwd=0,l=Math.max(Math.min(l,r),a)),this.cwd>this.option("wheelLimit")||(t.preventDefault(),n(l)!==n(s)&&this.zoomTo(l,{event:t}))}canZoomIn(){return this.option("zoom")&&(n(this.contentRect.width,1)<n(this.contentRect.fitWidth,1)||n(this.targetScale)<n(this.maxScale))}canZoomOut(){return this.option("zoom")&&n(this.targetScale)>n(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=I,originX:i=I,originY:n=I,event:o}={}){if(this.isContentLoading||this.state===y.Destroy)return;const{targetScale:s,fullScale:r,maxScale:a,coverScale:l}=this;if(this.stop(),this.panMode===M&&(o=this.pmme||o),o||i===I||n===I){const t=this.content.getBoundingClientRect(),e=this.container.getBoundingClientRect(),s=o?o.clientX:e.left+.5*e.width,r=o?o.clientY:e.top+.5*e.height;i=s-t.left-.5*t.width,n=r-t.top-.5*t.height}let c=1;"number"==typeof t?c=t:"full"===t?c=r:"cover"===t?c=l:"max"===t?c=a:"fit"===t?c=1:"next"===t&&(c=this.getNextScale("iterateZoom")),c=c/s||1,e=e===I?c>1?.15:.25:e,this.applyChange({scale:c,originX:i,originY:n,friction:e}),o&&this.panMode===M&&this.panWithMouse(o,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:i}=this;this.applyChange({panX:.5*t.width-(e.left+.5*e.fitWidth)-i.e,panY:.5*t.height-(e.top+.5*e.fitHeight)-i.f,scale:t.width/e.fitWidth/this.targetScale,originX:0,originY:0,ignoreBounds:!0})}fitY(){this.stop("target");const{containerRect:t,contentRect:e,target:i}=this;this.applyChange({panX:.5*t.width-(e.left+.5*e.fitWidth)-i.e,panY:.5*t.innerHeight-(e.top+.5*e.fitHeight)-i.f,scale:t.height/e.fitHeight/this.targetScale,originX:0,originY:0,ignoreBounds:!0})}toggleFS(){const{container:t}=this,e=this.cn("inFullscreen"),i=this.cn("htmlHasFullscreen");t.classList.toggle(e);const n=t.classList.contains(e);n?(document.documentElement.classList.add(i),document.addEventListener("keydown",this.onKeydown,!0)):(document.documentElement.classList.remove(i),document.removeEventListener("keydown",this.onKeydown,!0)),this.updateMetrics(),this.emit(n?"enterFS":"exitFS")}getMatrix(t=this.current){const{a:e,b:i,c:n,d:o,e:s,f:r}=t;return new DOMMatrix([e,i,n,o,s,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,i=this.option("classes")||{};for(const e of Object.values(i))t.classList.remove(e+"");e&&(e.removeEventListener("load",this.onLoad),e.removeEventListener("error",this.onError)),this.detachPlugins()}}Object.defineProperty(D,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:_}),Object.defineProperty(D,"Plugins",{enumerable:!0,configurable:!0,writable:!0,value:{}});const z=function(t,e){let i=!0;return(...n)=>{i&&(i=!1,t(...n),setTimeout(()=>{i=!0},e))}},R=(t,e)=>{let i=[];return t.childNodes.forEach(t=>{t.nodeType!==Node.ELEMENT_NODE||e&&!t.matches(e)||i.push(t)}),i};var N;!function(t){t[t.Init=0]="Init",t[t.Ready=1]="Ready",t[t.Destroy=2]="Destroy"}(N||(N={}));const $=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)},H=(t={})=>Object.assign({index:-1,slides:[],dim:0,pos:-1},t);class B extends v{constructor(t,e){super(e),Object.defineProperty(this,"instance",{enumerable:!0,configurable:!0,writable:!0,value:t})}attach(){}detach(){}}class V extends B{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"),T(t,this.cn("list")),t.setAttribute("role","tablist");const e=this.instance.container;e.appendChild(t),T(e,this.cn("hasDots")),this.list=t}return t}refresh(){var t;const e=this.instance.pages.length,i=Math.min(2,this.option("minCount")),n=Math.max(2e3,this.option("maxCount")),o=this.option("dynamicFrom");if(e<i||e>n)return void this.cleanup();const s="number"==typeof o&&e>5&&e>=o,r=!this.list||this.isDynamic!==s||this.list.children.length!==e;r&&this.cleanup();const a=this.build();if(l(a,this.cn("isDynamic"),!!s),r)for(let t=0;t<e;t++)a.append(this.createItem(t));let c,u=0;for(const e of[...a.children]){const i=u===this.instance.page;i&&(c=e),l(e,this.cn("isCurrent"),i),null===(t=e.children[0])||void 0===t||t.setAttribute("aria-selected",i?"true":"false");for(const t of["isBeforePrev","isPrev","isNext","isAfterNext"])C(e,this.cn(t));u++}if(c=c||a.firstChild,s&&c){const t=c.previousElementSibling,e=t&&t.previousElementSibling;T(t,this.cn("isPrev")),T(e,this.cn("isBeforePrev"));const i=c.nextElementSibling,n=i&&i.nextElementSibling;T(i,this.cn("isNext")),T(n,this.cn("isAfterNext"))}this.isDynamic=s}createItem(t=0){var e;const i=document.createElement("li");i.setAttribute("role","presentation");const n=r(this.instance.localize(this.option("dotTpl"),[["%d",t+1]]).replace(/\%i/g,t+""));return i.appendChild(n),null===(e=i.children[0])||void 0===e||e.setAttribute("role","tab"),i}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(V,"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 q="disabled",W="next",X="prev";class Y extends B{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,i=t.page;if(e<2)return void this.cleanup();this.build();let n=this.prev,o=this.next;n&&o&&(n.removeAttribute(q),o.removeAttribute(q),t.isInfinite||(i<=0&&n.setAttribute(q,""),i>=e-1&&o.setAttribute(q,"")))}addBtn(t){var e;const i=this.instance,n=document.createElement("button");n.setAttribute("tabindex","0"),n.setAttribute("title",i.localize(`{{${t.toUpperCase()}}}`)),T(n,this.cn("button")+" "+this.cn(t===W?"isNext":"isPrev"));const o=i.isRTL?t===W?X:W:t;var s;return n.innerHTML=i.localize(this.option(`${o}Tpl`)),n.dataset[`carousel${s=t,s?s.match("^[a-z]")?s.charAt(0).toUpperCase()+s.substring(1):s:""}`]="true",null===(e=this.container)||void 0===e||e.appendChild(n),n}build(){const t=this.instance.container,e=this.cn("container");let{container:i,prev:n,next:o}=this;i||(i=t.querySelector("."+e),this.isDom=!!i),i||(i=document.createElement("div"),T(i,e),t.appendChild(i)),this.container=i,o||(o=i.querySelector("[data-carousel-next]")),o||(o=this.addBtn(W)),this.next=o,n||(n=i.querySelector("[data-carousel-prev]")),n||(n=this.addBtn(X)),this.prev=n}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(Y,"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>
2',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 U extends B{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===N.Ready?this.onNavReady(t):t.on("ready",this.onNavReady),e.state===N.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,i){this.onNavTouch(t,t.panzoom,i)}onNavTouch(t,e,i){var n,o;if(Math.abs(e.dragOffset.x)>3||Math.abs(e.dragOffset.y)>3)return;const s=i.target,{nav:r,target:a}=this;if(!r||!a||!s)return;const l=s.closest("[data-index]");if(i.stopPropagation(),i.preventDefault(),!l)return;const c=parseInt(l.dataset.index||"",10)||0,u=a.getPageForSlide(c),d=r.getPageForSlide(c);r.slideTo(d),a.slideTo(u,{friction:(null===(o=null===(n=this.nav)||void 0===n?void 0:n.plugins)||void 0===o?void 0:o.Sync.option("friction"))||0}),this.markSelectedSlide(c)}onNavCreateSlide(t,e){e.index===this.selectedIndex&&this.markSelectedSlide(e.index)}onTargetChange(){var t,e;const{target:i,nav:n}=this;if(!i||!n)return;if(n.state!==N.Ready||i.state!==N.Ready)return;const o=null===(e=null===(t=i.pages[i.page])||void 0===t?void 0:t.slides[0])||void 0===e?void 0:e.index,s=n.getPageForSlide(o);this.markSelectedSlide(o),n.slideTo(s,null===n.prevPage&&null===i.prevPage?{friction:0}:void 0)}markSelectedSlide(t){const e=this.nav;e&&e.state===N.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,i=t.options.nav;e?t.addAsNavFor(e):i&&t.addAsTargetFor(i)}detach(){const t=this,e=t.nav,i=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,i&&(i.off("ready",t.onTargetReady),i.off("refresh",t.onTargetChange),i.off("change",t.onTargetChange)),t.target=null}}Object.defineProperty(U,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:{friction:.35}});const Z={Navigation:Y,Dots:V,Sync:U},G="animationend",K="isSelected",Q="slide";class J extends b{get axis(){return this.isHorizontal?"e":"f"}get isEnabled(){return this.state===N.Ready}get isInfinite(){let t=!1;const{contentDim:e,viewportDim:i,pages:n,slides:o}=this,s=o[0];return n.length>=2&&s&&e+s.dim>=i&&(t=this.option("infinite")),t}get isRTL(){return"rtl"===this.option("direction")}get isHorizontal(){return"x"===this.option("axis")}constructor(t,e={},i={}){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:N.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||!S(t))throw new Error("No Element found");this.container=t,this.slideNext=z(this.slideNext.bind(this),150),this.slidePrev=z(this.slidePrev.bind(this),150),this.userOptions=e,this.userPlugins=i,queueMicrotask(()=>{this.processOptions()})}processOptions(){var t,e;const i=g({},J.defaults,this.userOptions);let n="";const o=i.breakpoints;if(o&&f(o))for(const[t,e]of Object.entries(o))window.matchMedia(t).matches&&f(e)&&(n+=t,g(i,e));n===this.bp&&this.state!==N.Init||(this.bp=n,this.state===N.Ready&&(i.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!==N.Init&&this.destroy(),super.setOptions(i),!1===this.option("enabled")?this.attachEvents():setTimeout(()=>{this.init()},0))}
vendor: 65,861 bytes, line 2
2init(){this.state=N.Init,this.emit("init"),this.attachPlugins(Object.assign(Object.assign({},J.Plugins),this.userPlugins)),this.emit("attachPlugins"),this.initLayout(),this.initSlides(),this.updateMetrics(),this.setInitialPosition(),this.initPanzoom(),this.attachEvents(),this.state=N.Ready,this.emit("ready")}initLayout(){const{container:t}=this,e=this.option("classes");T(t,this.cn("container")),l(t,e.isLTR,!this.isRTL),l(t,e.isRTL,this.isRTL),l(t,e.isVertical,!this.isHorizontal),l(t,e.isHorizontal,this.isHorizontal);let i=this.option("viewport")||t.querySelector(`.${e.viewport}`);i||(i=document.createElement("div"),T(i,e.viewport),i.append(...R(t,`.${e.slide}`)),t.prepend(i)),i.addEventListener("scroll",this.onScroll);let n=this.option("track")||t.querySelector(`.${e.track}`);n||(n=document.createElement("div"),T(n,e.track),n.append(...Array.from(i.childNodes))),n.setAttribute("aria-live","polite"),i.contains(n)||i.prepend(n),this.viewport=i,this.track=n,this.emit("initLayout")}initSlides(){const{track:t}=this;if(!t)return;const e=[...this.slides],i=[];[...R(t,`.${this.cn(Q)}`)].forEach(t=>{if(S(t)){const e=$({el:t,isDom:!0,index:this.slides.length});i.push(e)}});for(let t of[...this.option("slides",[])||[],...e])i.push($(t));this.slides=i;for(let t=0;t<this.slides.length;t++)this.slides[t].index=t;for(const t of i)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:i}=this;if(!t||!e.length)return;let n=this.page;e[n]||(this.page=n=0);const o=(e[n].pos||0)*(this.isRTL&&i?1:-1),s=i?`${o}px`:"0",r=i?"0":`${o}px`;t.style.transform=`translate3d(${s}, ${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 D(this.viewport,g({},{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,...i)=>{this.emit(`Panzoom.${e}`,t,...i)}),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:i}=this;let n=this.option("slidesPerPage");n=("auto"===n||e<=i)&&!1!==this.option("fill")?1/0:parseFloat(n+"");let o=0,s=0,r=0;for(const e of this.slides)(!t.length||s+e.dim-i>.05||r>=n)&&(t.push(H()),o=t.length-1,s=0,r=0),t[o].slides.push(e),s+=e.dim+e.gap,r++;return t}processPages(){const t=this.pages,{contentDim:e,viewportDim:i,isInfinite:o}=this,s=this.option("center"),r=this.option("fill"),a=r&&s&&e>i&&!o;if(t.forEach((t,n)=>{var o;t.index=n,t.pos=(null===(o=t.slides[0])||void 0===o?void 0:o.pos)||0,t.dim=0;for(const[e,i]of t.slides.entries())t.dim+=i.dim,e<t.slides.length-1&&(t.dim+=i.gap);a&&t.pos+.5*t.dim<.5*i?t.pos=0:a&&t.pos+.5*t.dim>=e-.5*i?t.pos=e-i:s&&(t.pos+=-.5*(i-t.dim))}),t.forEach(t=>{r&&!o&&e>i&&(t.pos=Math.max(t.pos,0),t.pos=Math.min(t.pos,e-i)),t.pos=n(t.pos,1e3),t.dim=n(t.dim,1e3),Math.abs(t.pos)<=.1&&(t.pos=0)}),o)return t;const l=[];let c;return t.forEach(t=>{const e=Object.assign({},t);c&&e.pos===c.pos?(c.dim+=e.dim,c.slides=[...c.slides,...e.slides]):(e.index=l.length,c=e,l.push(e))}),l}getPageFromIndex(t=0){const e=this.pages.length;let i;return t=parseInt((t||0).toString())||0,i=this.isInfinite?(t%e+e)%e:Math.max(Math.min(t,e-1),0),i}getSlideMetrics(t){var e,i;const o=this.isHorizontal?"width":"height";let s=0,r=0,a=t.el;const l=!(!a||a.parentNode);if(a?s=parseFloat(a.dataset[o]||"")||0:(a=document.createElement("div"),a.style.visibility="hidden",(this.track||document.body).prepend(a)),T(a,this.cn(Q)+" "+t.class+" "+t.customClass),s)a.style[o]=`${s}px`,a.style["width"===o?"height":"width"]="";else{l&&(this.track||document.body).prepend(a),s=a.getBoundingClientRect()[o]*Math.max(1,(null===(e=window.visualViewport)||void 0===e?void 0:e.scale)||1);let t=a[this.isHorizontal?"offsetWidth":"offsetHeight"];t-1>s&&(s=t)}const c=getComputedStyle(a);return"content-box"===c.boxSizing&&(this.isHorizontal?(s+=parseFloat(c.paddingLeft)||0,s+=parseFloat(c.paddingRight)||0):(s+=parseFloat(c.paddingTop)||0,s+=parseFloat(c.paddingBottom)||0)),r=parseFloat(c[this.isHorizontal?"marginRight":"marginBottom"])||0,l?null===(i=a.parentElement)||void 0===i||i.removeChild(a):t.el||a.remove(),{dim:n(s,1e3),gap:n(r,1e3)}}getBounds(){const{isInfinite:t,isRTL:e,isHorizontal:i,pages:n}=this;let o={min:0,max:0};if(t)o={min:-1/0,max:1/0};else if(n.length){const t=n[0].pos,s=n[n.length-1].pos;o=e&&i?{min:t,max:s}:{min:-1*s,max:-1*t}}return{x:i?o:{min:0,max:0},y:i?{min:0,max:0}:o}}repositionSlides(){let t,{isHorizontal:e,isRTL:i,isInfinite:o,viewport:s,viewportDim:r,contentDim:a,page:l,pages:c,slides:u,panzoom:d}=this,h=0,p=0,f=0,g=0;d?g=-1*d.current[this.axis]:c[l]&&(g=c[l].pos||0),t=e?i?"right":"left":"top",i&&e&&(g*=-1);for(const e of u){const i=e.el;i?("top"===t?(i.style.right="",i.style.left=""):i.style.top="",e.index!==h?i.style[t]=0===p?"":`${n(p,1e3)}px`:i.style[t]="",f+=e.dim+e.gap,h++):p+=e.dim+e.gap}if(o&&f&&s){let i=getComputedStyle(s),o="padding",l=e?"Right":"Bottom",c=parseFloat(i[o+(e?"Left":"Top")]);g-=c,r+=c,r+=parseFloat(i[o+l]);for(const e of u)e.el&&(n(e.pos)<n(r)&&n(e.pos+e.dim+e.gap)<n(g)&&n(g)>n(a-r)&&(e.el.style[t]=`${n(p+f,1e3)}px`),n(e.pos+e.gap)>=n(a-r)&&n(e.pos)>n(g+r)&&n(g)<n(r)&&(e.el.style[t]=`-${n(f,1e3)}px`))}let m,v,b=[...this.inTransition];if(b.length>1&&(m=c[b[0]],v=c[b[1]]),m&&v){let e=0;for(const i of u)i.el?this.inTransition.has(i.index)&&m.slides.indexOf(i)<0&&(i.el.style[t]=`${n(e+(m.pos-v.pos),1e3)}px`):e+=i.dim+i.gap}}createSlideEl(t){const{track:e,slides:i}=this;if(!e||!t)return;if(t.el&&t.el.parentNode)return;const n=t.el||document.createElement("div");T(n,this.cn(Q)),T(n,t.class),T(n,t.customClass);const o=t.html;o&&(o instanceof HTMLElement?n.appendChild(o):n.innerHTML=t.html+"");const s=[];i.forEach((t,e)=>{t.el&&s.push(e)});const r=t.index;let a=null;s.length&&(a=i[s.reduce((t,e)=>Math.abs(e-r)<Math.abs(t-r)?e:t)]);const l=a&&a.el&&a.el.parentNode?a.index<t.index?a.el.nextSibling:a.el:null;e.insertBefore(n,e.contains(l)?l:null),t.el=n,this.emit("createSlide",t)}removeSlideEl(t,e=!1){const i=null==t?void 0:t.el;if(!i||!i.parentNode)return;const n=this.cn(K);if(i.classList.contains(n)&&(C(i,n),this.emit("unselectSlide",t)),t.isDom&&!e)return i.removeAttribute("aria-hidden"),i.removeAttribute("data-index"),void(i.style.left="");this.emit("removeSlide",t);const o=new CustomEvent(G);i.dispatchEvent(o),t.el&&(t.el.remove(),t.el=null)}transitionTo(t=0,e=this.option("transition")){var i,n,o,s;if(!e)return!1;const r=this.page,{pages:a,panzoom:l}=this;t=parseInt((t||0).toString())||0;const c=this.getPageFromIndex(t);if(!l||!a[c]||a.length<2||Math.abs(((null===(n=null===(i=a[r])||void 0===i?void 0:i.slides[0])||void 0===n?void 0:n.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[c].pos*(this.isRTL?1:-1);if(r===c&&Math.abs(d-l.target[this.axis])<1)return!1;this.clearTransitions();const h=l.isResting;T(this.container,this.cn("inTransition"));const p=(null===(o=a[r])||void 0===o?void 0:o.slides[0])||null,f=(null===(s=a[c])||void 0===s?void 0:s.slides[0])||null;this.inTransition.add(f.index),this.createSlideEl(f);let g=p.el,m=f.el;h||e===Q||(e="fadeFast",g=null);const v=this.isRTL?"next":"prev",b=this.isRTL?"prev":"next";return g&&(this.inTransition.add(p.index),p.transition=e,g.addEventListener(G,this.onAnimationEnd),g.classList.add(`f-${e}Out`,`to-${u>0?b:v}`)),m&&(f.transition=e,m.addEventListener(G,this.onAnimationEnd),m.classList.add(`f-${e}In`,`from-${u>0?v:b}`)),l.current[this.axis]=d,l.target[this.axis]=d,l.requestTick(),this.onChange(c),!0}manageSlideVisiblity(){const t=new Set,e=new Set,i=this.getVisibleSlides(parseFloat(this.option("preload",0)+"")||0);for(const n of this.slides)i.has(n)?t.add(n):e.add(n);for(const e of this.inTransition)t.add(this.slides[e]);for(const e of t)this.createSlideEl(e),this.lazyLoadSlide(e);for(const i of e)t.has(i)||this.removeSlideEl(i);this.markSelectedSlides(),this.repositionSlides()}markSelectedSlides(){if(!this.pages[this.page]||!this.pages[this.page].slides)return;const t="aria-hidden";let e=this.cn(K);if(e)for(const i of this.slides){const n=i.el;n&&(n.dataset.index=`${i.index}`,n.classList.contains("f-thumbs__slide")?this.getVisibleSlides(0).has(i)?n.removeAttribute(t):n.setAttribute(t,"true"):this.pages[this.page].slides.includes(i)?(n.classList.contains(e)||(T(n,e),this.emit("selectSlide",i)),n.removeAttribute(t)):(n.classList.contains(e)&&(C(n,e),this.emit("unselectSlide",i)),n.setAttribute(t,"true")))}}flipInfiniteTrack(){const{axis:t,isHorizontal:e,isInfinite:i,isRTL:n,viewportDim:o,contentDim:s}=this,r=this.panzoom;if(!r||!i)return;let a=r.current[t],l=r.target[t]-a,c=0,u=.5*o;n&&e?(a<-u&&(c=-1,a+=s),a>s-u&&(c=1,a-=s)):(a>u&&(c=1,a-=s),a<-s+u&&(c=-1,a+=s)),c&&(r.current[t]=a,r.target[t]=a+l)}lazyLoadImg(t,e){const i=this,n="f-fadeIn",o="is-preloading";let s=!1,a=null;const l=()=>{s||(s=!0,a&&(a.remove(),a=null),C(e,o),e.complete&&(T(e,n),setTimeout(()=>{C(e,n)},350)),this.option("adaptiveHeight")&&t.el&&this.pages[this.page].slides.indexOf(t)>-1&&(i.updateMetrics(),i.setViewportHeight()),this.emit("load",t))};T(e,o),e.src=e.dataset.lazySrcset||e.dataset.lazySrc||"",delete e.dataset.lazySrc,delete e.dataset.lazySrcset,e.addEventListener("error",()=>{l()}),e.addEventListener("load",()=>{l()}),setTimeout(()=>{const i=e.parentNode;i&&t.el&&(e.complete?l():s||(a=r(E),i.insertBefore(a,e)))},300)}lazyLoadSlide(t){const e=t&&t.el;if(!e)return;const i=new Set;let n=Array.from(e.querySelectorAll("[data-lazy-src],[data-lazy-srcset]"));e.dataset.lazySrc&&n.push(e),n.map(t=>{t instanceof HTMLImageElement?i.add(t):t instanceof HTMLElement&&t.dataset.lazySrc&&(t.style.backgroundImage=`url('${t.dataset.lazySrc}')`,delete t.dataset.lazySrc)});for(const e of i)this.lazyLoadImg(t,e)}onAnimationEnd(t){var e;const i=t.target,n=i?parseInt(i.dataset.index||"",10)||0:-1,o=this.slides[n],s=t.animationName;if(!i||!o||!s)return;const r=!!this.inTransition.has(n)&&o.transition;r&&s.substring(0,r.length+2)===`f-${r}`&&this.inTransition.delete(n),this.inTransition.size||this.clearTransitions(),n===this.page&&(null===(e=this.panzoom)||void 0===e?void 0:e.isResting)&&this.emit("settle")}onDecel(t,e=0,i=0,n=0,o=0){if(this.option("dragFree"))return void this.setPageFromPosition();const{isRTL:s,isHorizontal:r,axis:a,pages:l}=this,c=l.length,u=Math.abs(Math.atan2(i,e)/(Math.PI/180));let d=0;if(d=u>45&&u<135?r?0:i:r?e:0,!c)return;let h=this.page,p=s&&r?1:-1;const f=t.current[a]*p;let{pageIndex:g}=this.getPageFromPosition(f);Math.abs(d)>5?(l[h].dim<document.documentElement["client"+(this.isHorizontal?"Width":"Height")]-1&&(h=g),h=s&&r?d<0?h-1:h+1:d<0?h+1:h-1):h=0===n&&0===o?h:g,this.slideTo(h,{transition:!1,friction:t.option("decelFriction")})}onClick(t){const e=t.target,i=e&&S(e)?e.dataset:null;let n,o;i&&(void 0!==i.carouselPage?(o="slideTo",n=i.carouselPage):void 0!==i.carouselNext?o="slideNext":void 0!==i.carouselPrev&&(o="slidePrev")),o?(t.preventDefault(),t.stopPropagation(),e&&!e.hasAttribute("disabled")&&this[o](n)):this.emit("click",t)}onSlideTo(t){const e=t.detail||0;this.slideTo(this.getPageForSlide(e),{friction:0})}onChange(t,e=0){const i=this.page;this.prevPage=i,this.page=t,this.option("adaptiveHeight")&&this.setViewportHeight(),t!==i&&(this.markSelectedSlides(),this.emit("change",t,i,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=N.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:i=this.option("transition")}={}){if(this.state===N.Destroy)return;t=parseInt((t||0).toString())||0;const n=this.getPageFromIndex(t),{axis:o,isHorizontal:s,isRTL:r,pages:a,panzoom:l}=this,c=a.length,u=r&&s?1:-1;if(!l||!c)return;if(this.page!==n){const e=new Event("beforeChange",{bubbles:!0,cancelable:!0});if(this.emit("beforeChange",e,t),e.defaultPrevented)return}if(this.transitionTo(t,i))return;let d=a[n].pos;if(this.isInfinite){const e=this.contentDim,i=l.target[o]*u;2===c?d+=e*Math.floor(parseFloat(t+"")/2):d=[d,d-e,d+e].reduce(function(t,e){return Math.abs(e-i)<Math.abs(t-i)?e:t})}d*=u,Math.abs(l.target[o]-d)<1||(l.panTo({x:s?d:0,y:s?0:d,friction:e}),this.onChange(n))}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 i=e.el;if(i){i.removeEventListener(G,this.onAnimationEnd),i.classList.remove(...t);const n=e.transition;n&&i.classList.remove(`f-${n}Out`,`f-${n}In`)}}this.manageSlideVisiblity()}addSlide(t,e){var i,n,o,s;const r=this.panzoom,a=(null===(i=this.pages[this.page])||void 0===i?void 0:i.pos)||0,l=(null===(n=this.pages[this.page])||void 0===n?void 0:n.dim)||0,c=this.contentDim<this.viewportDim;let u=Array.isArray(e)?e:[e];const d=[];for(const t of u)d.push($(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===(o=this.pages[this.page])||void 0===o?void 0:o.pos)||0,i=(null===(s=this.pages[this.page])||void 0===s?void 0:s.dim)||0,n=this.pages.length||1,u=this.isRTL?l-i:i-l,d=this.isRTL?a-e:e-a;c&&1===n?(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 i=this.slides[t];if(i){this.removeSlideEl(i,!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",i)}}updateMetrics(){const{panzoom:t,viewport:e,track:i,slides:o,isHorizontal:s,isInfinite:r}=this;if(!i)return;const a=s?"width":"height",l=s?"offsetWidth":"offsetHeight";if(e){let t=Math.max(e[l],n(e.getBoundingClientRect()[a],1e3)),i=getComputedStyle(e),o="padding",r=s?"Right":"Bottom";t-=parseFloat(i[o+(s?"Left":"Top")])+parseFloat(i[o+r]),this.viewportDim=t}let c,u=0;for(const[t,e]of o.entries()){let i=0,s=0;!e.el&&c?(i=c.dim,s=c.gap):(({dim:i,gap:s}=this.getSlideMetrics(e)),c=e),i=n(i,1e3),s=n(s,1e3),e.dim=i,e.gap=s,e.pos=u,u+=i,(r||t<o.length-1)&&(u+=s)}u=n(u,1e3),this.contentDim=u,t&&(t.contentRect[a]=u,t.contentRect[s?"fullWidth":"fullHeight"]=u),this.pages=this.createPages(),this.pages=this.processPages(),this.state===N.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,i=!1){void 0===t&&(t=this.page);const o=this,s=o.panzoom,r=o.contentDim,a=o.pages[t]||0;if(!a||!s)return t>this.page?-1:1;let l=-1*s.current.e,c=n((l-a.pos)/(1*a.dim),1e3),u=c,d=c;this.isInfinite&&!0!==i&&(u=n((l-a.pos+r)/(1*a.dim),1e3),d=n((l-a.pos-r)/(1*a.dim),1e3));let h=[c,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:i,isHorizontal:n}=this;if(!i||!e[t])return;let o=0;n&&this.track&&(this.track.style.height="auto",e[t].slides.forEach(t=>{t.el&&(o=Math.max(o,t.el.offsetHeight))})),i.style.height=o?`${o}px`:""}getPageForSlide(t){for(const e of this.pages)for(const i of e.slides)if(i.index===t)return e.index;return-1}getVisibleSlides(t=0){var e;const i=new Set;let{panzoom:n,contentDim:o,viewportDim:s,pages:r,page:a}=this;if(s){o=o+(null===(e=this.slides[this.slides.length-1])||void 0===e?void 0:e.gap)||0;let l=0;l=n&&n.state!==y.Init&&n.state!==y.Destroy?-1*n.current[this.axis]:r[a]&&r[a].pos||0,this.isInfinite&&(l-=Math.floor(l/o)*o),this.isRTL&&this.isHorizontal&&(l*=-1);const c=l-s*t,u=l+s*(t+1),d=this.isInfinite?[-1,0,1]:[0];for(const t of this.slides)for(const e of d){const n=t.pos+e*o,s=n+t.dim+t.gap;n<u&&s>c&&i.add(t)}}return i}getPageFromPosition(t){const{viewportDim:e,contentDim:i,slides:n,pages:o,panzoom:s}=this,r=o.length,a=n.length,l=n[0],c=n[a-1],u=this.option("center");let d=0,h=0,p=0,f=void 0===t?-1*((null==s?void 0:s.target[this.axis])||0):t;u&&(f+=.5*e),this.isInfinite?(f<l.pos-.5*c.gap&&(f-=i,p=-1),f>c.pos+c.dim+.5*c.gap&&(f-=i,p=1)):f=Math.max(l.pos||0,Math.min(f,c.pos));let g=c,m=n.find(t=>{const e=t.pos-.5*g.gap,i=t.pos+t.dim+.5*t.gap;return g=t,f>=e&&f<i});return m||(m=c),h=this.getPageForSlide(m.index),d=h+p*r,{page:d,pageIndex:h}}setPageFromPosition(){const{pageIndex:t}=this.getPageFromPosition();this.onChange(t)}destroy(){if([N.Destroy].includes(this.state))return;this.state=N.Destroy;const{container:t,viewport:e,track:i,slides:n,panzoom:o}=this,s=this.option("classes");t.removeEventListener("click",this.onClick,{passive:!1,capture:!1}),t.removeEventListener("slideTo",this.onSlideTo),window.removeEventListener("resize",this.onResize),o&&(o.destroy(),this.panzoom=null),n&&n.forEach(t=>{this.removeSlideEl(t)}),this.detachPlugins(),e&&(e.removeEventListener("scroll",this.onScroll),e.offsetParent&&i&&i.offsetParent&&e.replaceWith(...i.childNodes));for(const[e,i]of Object.entries(s))"container"!==e&&i&&t.classList.remove(i);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(J,"Panzoom",{enumerable:!0,configurable:!0,writable:!0,value:D}),Object.defineProperty(J,"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(J,"Plugins",{enumerable:!0,configurable:!0,writable:!0,value:Z});const tt=function(t){if(!S(t))return 0;const e=window.scrollY,i=window.innerHeight,n=e+i,o=t.getBoundingClientRect(),s=o.y+e,r=o.height,a=s+r;if(e>a||n<s)return 0;if(e<s&&n>a)return 100;if(s<e&&a>n)return 100;let l=r;s<e&&(l-=e-s),a>n&&(l-=a-n);const c=l/i*100;return Math.round(c)},et=!("undefined"==typeof window||!window.document||!window.document.createElement);let it;const nt=["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(","),ot=t=>{if(t&&et){void 0===it&&document.createElement("div").focus({get preventScroll(){return it=!0,!1}});try{if(it)t.focus({preventScroll:!0});else{const e=window.scrollY||document.body.scrollTop,i=window.scrollX||document.body.scrollLeft;t.focus(),document.body.scrollTo({top:e,left:i,behavior:"auto"})}}catch(t){}}},st=()=>{const t=document;let e,i="",n="",o="";return t.fullscreenEnabled?(i="requestFullscreen",n="exitFullscreen",o="fullscreenElement"):t.webkitFullscreenEnabled&&(i="webkitRequestFullscreen",n="webkitExitFullscreen",o="webkitFullscreenElement"),i&&(e={request:function(e=t.documentElement){return"webkitRequestFullscreen"===i?e[i](Element.ALLOW_KEYBOARD_INPUT):e[i]()},exit:function(){return t[o]&&t[n]()},isFullscreen:function(){return t[o]}}),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({},x),{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,lt;!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"}(lt||(lt={}));let ct="",ut=!1,dt=!1,ht=null;const pt=()=>{let t="",e="";const i=Ce.getInstance();if(i){const n=i.carousel,o=i.getSlide();if(n&&o){let s=o.slug||void 0,r=o.triggerEl||void 0;e=s||i.option("slug")||"",!e&&r&&r.dataset&&(e=r.dataset.fancybox||""),e&&"true"!==e&&(t="#"+e+(!s&&n.slides.length>1?"-"+(o.index+1):""))}}return{hash:t,slug:e,index:1}},ft=()=>{const t=new URL(document.URL).hash,e=t.slice(1).split("-"),i=e[e.length-1],n=i&&/^\+?\d+$/.test(i)&&parseInt(e.pop()||"1",10)||1;return{hash:t,slug:e.join("-"),index:n}},gt=()=>{const{slug:t,index:e}=ft();if(!t)return;let i=document.querySelector(`[data-slug="${t}"]`);if(i&&i.dispatchEvent(new CustomEvent("click",{bubbles:!0,cancelable:!0})),Ce.getInstance())return;const n=document.querySelectorAll(`[data-fancybox="${t}"]`);n.length&&(i=n[e-1],i&&i.dispatchEvent(new CustomEvent("click",{bubbles:!0,cancelable:!0})))},mt=()=>{if(!1===Ce.defaults.Hash)return;const t=Ce.getInstance();if(!1===(null==t?void 0:t.options.Hash))return;const{slug:e,index:i}=ft(),{slug:n}=pt();t&&(e===n?t.jumpTo(i-1):(ut=!0,t.close())),gt()},vt=()=>{ht&&clearTimeout(ht),queueMicrotask(()=>{mt()})},bt=()=>{window.addEventListener("hashchange",vt,!1),setTimeout(()=>{mt()},500)};et&&(/complete|interactive|loaded/.test(document.readyState)?bt():document.addEventListener("DOMContentLoaded",bt));const yt="is-zooming-in";class wt extends B{onCreateSlide(t,e,i){const n=this.instance.optionFor(i,"src")||"";i.el&&"image"===i.type&&"string"==typeof n&&this.setImage(i,n)}onRemoveSlide(t,e,i){i.panzoom&&i.panzoom.destroy(),i.panzoom=void 0,i.imageEl=void 0}onChange(t,e,i,n){C(this.instance.container,yt);for(const t of e.slides){const e=t.panzoom;e&&t.index!==i&&e.reset(.35)}}onClose(){var t;const e=this.instance,i=e.container,n=e.getSlide();if(!i||!i.parentElement||!n)return;const{el:o,contentEl:s,panzoom:r,thumbElSrc:a}=n;if(!o||!a||!s||!r||r.isContentLoading||r.state===y.Init||r.state===y.Destroy)return;r.updateMetrics();let l=this.getZoomInfo(n);if(!l)return;this.instance.state=at.CustomClosing,i.classList.remove(yt),i.classList.add("is-zooming-out"),s.style.backgroundImage=`url('${a}')`;const c=i.getBoundingClientRect();1===((null===(t=window.visualViewport)||void 0===t?void 0:t.scale)||1)&&Object.assign(i.style,{position:"absolute",top:`${i.offsetTop+window.scrollY}px`,left:`${i.offsetLeft+window.scrollX}px`,bottom:"auto",right:"auto",width:`${c.width}px`,height:`${c.height}px`,overflow:"hidden"});const{x:u,y:d,scale:h,opacity:p}=l;if(p){const t=((t,e)=>{const i=e-t;return e=>1+((e-t)/i*-1||0)})(r.scale,h);r.on("afterTransform",()=>{s.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 i=this.instance;t.src=e,this.process(t,e).then(e=>{const{contentEl:n,imageEl:o,thumbElSrc:s,el:r}=t;if(i.isClosing()||!n||!o)return;n.offsetHeight;const a=!!i.isOpeningSlide(t)&&this.getZoomInfo(t);if(this.option("protected")&&r){r.addEventListener("contextmenu",t=>{t.preventDefault()});const t=document.createElement("div");T(t,"fancybox-protected"),n.appendChild(t)}if(s&&a){const o=e.contentRect,r=Math.max(o.fullWidth,o.fullHeight);let c=null;!a.opacity&&r>1200&&(c=document.createElement("img"),T(c,"fancybox-ghost"),c.src=s,n.appendChild(c));const u=()=>{c&&(T(c,"f-fadeFastOut"),setTimeout(()=>{c&&(c.remove(),c=null)},200))};(l=s,new Promise((t,e)=>{const i=new Image;i.onload=t,i.onerror=e,i.src=l})).then(()=>{i.hideLoading(t),t.state=lt.Opening,this.instance.emit("reveal",t),this.zoomIn(t).then(()=>{u(),this.instance.done(t)},()=>{}),c&&setTimeout(()=>{u()},r>2500?800:200)},()=>{i.hideLoading(t),i.revealContent(t)})}else{const n=this.optionFor(t,"initialSize"),o=this.optionFor(t,"zoom"),s={event:i.prevMouseMoveEvent||i.options.event,friction:o?.12:0};let r=i.optionFor(t,"showClass")||void 0,a=!0;i.isOpeningSlide(t)&&("full"===n?e.zoomToFull(s):"cover"===n?e.zoomToCover(s):"max"===n?e.zoomToMax(s):a=!1,e.stop("current")),a&&r&&(r=e.isDragging?"f-fadeIn":""),i.hideLoading(t),i.revealContent(t,r)}var l},()=>{i.setError(t,"{{IMAGE_ERROR}}")})}process(t,e){return new Promise((i,n)=>{var o;const s=this.instance,a=t.el;s.clearContent(t),s.showLoading(t);let l=this.optionFor(t,"content");if("string"==typeof l&&(l=r(l)),!l||!S(l)){if(l=document.createElement("img"),l instanceof HTMLImageElement){let i="",n=t.caption;i="string"==typeof n&&n?n.replace(/<[^>]+>/gi,"").substring(0,1e3):`Image ${t.index+1} of ${(null===(o=s.carousel)||void 0===o?void 0:o.pages.length)||1}`,l.src=e||"",l.alt=i,l.draggable=!1,t.srcset&&l.setAttribute("srcset",t.srcset),this.instance.isOpeningSlide(t)&&(l.fetchPriority="high")}t.sizes&&l.setAttribute("sizes",t.sizes)}T(l,"fancybox-image"),t.imageEl=l,s.setContent(t,l,!1),t.panzoom=new D(a,g({transformParent:!0},this.option("Panzoom")||{},{content:l,width:(e,i)=>s.optionFor(t,"width","auto",i)||"auto",height:(e,i)=>s.optionFor(t,"height","auto",i)||"auto",wheel:()=>{const t=s.option("wheel");return("zoom"===t||"pan"==t)&&t},click:(e,i)=>{var n,o;if(s.isCompact||s.isClosing())return!1;if(t.index!==(null===(n=s.getSlide())||void 0===n?void 0:n.index))return!1;if(i){const t=i.composedPath()[0];if(["A","BUTTON","TEXTAREA","OPTION","INPUT","SELECT","VIDEO"].includes(t.nodeName))return!1}let r=!i||i.target&&(null===(o=t.contentEl)||void 0===o?void 0:o.contains(i.target));return s.option(r?"contentClick":"backdropClick")||!1},dblClick:()=>s.isCompact?"toggleZoom":s.option("contentDblClick")||!1,spinner:!1,panOnlyZoomed:!0,wheelLimit:1/0,on:{ready:t=>{i(t)},error:()=>{n()},destroy:()=>{n()}}}))})}zoomIn(t){return new Promise((e,i)=>{const n=this.instance,o=n.container,{panzoom:s,contentEl:r,el:a}=t;s&&s.updateMetrics();const l=this.getZoomInfo(t);if(!(l&&a&&r&&s&&o))return void i();const{x:c,y:u,scale:d,opacity:h}=l,p=()=>{t.state!==lt.Closing&&(h&&(r.style.opacity=Math.max(Math.min(1,1-(1-s.scale)/(1-d)),0)+""),s.scale>=1&&s.scale>s.targetScale-.1&&e(s))},f=t=>{(t.scale<.99||t.scale>1.01)&&!t.isDragging||(C(o,yt),r.style.opacity="",t.off("endAnimation",f),t.off("touchStart",f),t.off("afterTransform",p),e(t))};s.on("endAnimation",f),s.on("touchStart",f),s.on("afterTransform",p),s.on(["error","destroy"],()=>{i()}),s.panTo({x:c,y:u,scale:d,friction:0,ignoreBounds:!0}),s.stop("current");const g={event:"mousemove"===s.panMode?n.prevMouseMoveEvent||n.options.event:void 0},m=this.optionFor(t,"initialSize");T(o,yt),n.hideLoading(t),"full"===m?s.zoomToFull(g):"cover"===m?s.zoomToCover(g):"max"===m?s.zoomToMax(g):s.reset(.172)})}getZoomInfo(t){const{el:e,imageEl:i,thumbEl:n,panzoom:o}=t,s=this.instance,r=s.container;if(!e||!i||!n||!o||tt(n)<3||!this.optionFor(t,"zoom")||!r||s.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:l,left:c,width:u,height:d}=n.getBoundingClientRect(),{top:h,left:p,fitWidth:f,fitHeight:g}=o.contentRect;if(!(u&&d&&f&&g))return!1;const m=o.container.getBoundingClientRect();p+=m.left,h+=m.top;const v=-1*(p+.5*f-(c+.5*u)),b=-1*(h+.5*g-(l+.5*d)),y=u/f;let w=this.option("zoomOpacity")||!1;return"auto"===w&&(w=Math.abs(u/d-f/g)>.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 xt="html",_t="image",Ot="map",Et="youtube",St="vimeo",Ct="html5video",Tt=(t,e={})=>{const i=new URL(t),n=new URLSearchParams(i.search),o=new URLSearchParams;for(const[t,i]of[...n,...Object.entries(e)]){let e=i+"";if("t"===t){let t=e.match(/((\d*)m)?(\d*)s?/);t&&o.set("start",60*parseInt(t[2]||"0")+parseInt(t[3]||"0")+"")}else o.set(t,e)}let s=o+"",r=t.match(/#t=((.*)?\d+s)/);return r&&(s+=`#t=${r[1]}`),s},At=["image","html","ajax","inline","clone","iframe","map","pdf","html5video","youtube","vimeo"];class Pt extends B{onBeforeInitSlide(t,e,i){this.processType(i)}onCreateSlide(t,e,i){this.setContent(i)}onClearContent(t,e){e.xhr&&(e.xhr.abort(),e.xhr=null);const i=e.iframeEl;i&&(i.onload=i.onerror=null,i.src="//about:blank",e.iframeEl=null);const n=e.contentEl,o=e.placeholderEl;if("inline"===e.type&&n&&o)n.classList.remove("fancybox__content"),"none"!==getComputedStyle(n).getPropertyValue("display")&&(n.style.display="none"),setTimeout(()=>{o&&(n&&o.parentNode&&o.parentNode.insertBefore(n,o),o.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,i){i.state===lt.Ready&&this.playVideo()}onUnselectSlide(t,e,i){var n,o;if(i.type===Ct){try{null===(o=null===(n=i.el)||void 0===n?void 0:n.querySelector("video"))||void 0===o||o.pause()}catch(t){}return}let s;i.type===St?s={method:"pause",value:"true"}:i.type===Et&&(s={event:"command",func:"pauseVideo"}),s&&i.iframeEl&&i.iframeEl.contentWindow&&i.iframeEl.contentWindow.postMessage(JSON.stringify(s),"*"),i.poller&&clearTimeout(i.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 i=this.instance,n=new XMLHttpRequest;i.showLoading(t),n.onreadystatechange=function(){n.readyState===XMLHttpRequest.DONE&&i.state===at.Ready&&(i.hideLoading(t),200===n.status?i.setContent(t,n.responseText):i.setError(t,404===n.status?"{{AJAX_NOT_FOUND}}":"{{AJAX_FORBIDDEN}}"))};const o=t.ajax||null;n.open(o?"POST":"GET",e+""),n.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),n.setRequestHeader("X-Requested-With","XMLHttpRequest"),n.send(o),t.xhr=n}setInlineContent(t){let e=null;if(S(t.src))e=t.src;else if("string"==typeof t.src){const i=t.src.split("#",2).pop();e=i?document.getElementById(i):null}if(e){if("clone"===t.type||e.closest(".fancybox__slide")){e=e.cloneNode(!0);const i=e.dataset.animationName;i&&(e.classList.remove(i),delete e.dataset.animationName);let n=e.getAttribute("id");n=n?`${n}--clone`:`clone-${this.instance.id}-${t.index}`,e.setAttribute("id",n)}else if(e.parentNode){const i=document.createElement("div");i.classList.add("fancybox-placeholder"),e.parentNode.insertBefore(i,e),t.placeholderEl=i}this.instance.setContent(t,e)}else this.instance.setError(t,"{{ELEMENT_NOT_FOUND}}")}setIframeContent(t){const{src:e,el:i}=t;if(!e||"string"!=typeof e||!i)return;i.classList.add("is-loading");const n=this.instance,o=document.createElement("iframe");o.className="fancybox__iframe",o.setAttribute("id",`fancybox__iframe_${n.id}_${t.index}`);for(const[e,i]of Object.entries(this.optionFor(t,"iframeAttr")||{}))o.setAttribute(e,i);o.onerror=()=>{n.setError(t,"{{IFRAME_ERROR}}")},t.iframeEl=o;const s=this.optionFor(t,"preload");if("iframe"!==t.type||!1===s)return o.setAttribute("src",t.src+""),n.setContent(t,o,!1),this.resizeIframe(t),void n.revealContent(t);n.showLoading(t),o.onload=()=>{if(!o.src.length)return;const e="true"!==o.dataset.ready;o.dataset.ready="true",this.resizeIframe(t),e?n.revealContent(t):n.hideLoading(t)},o.setAttribute("src",e),n.setContent(t,o,!1)}resizeIframe(t){const{type:e,iframeEl:i}=t;if(e===Et||e===St)return;const n=null==i?void 0:i.parentElement;if(!i||!n)return;let o=t.autoSize;void 0===o&&(o=this.optionFor(t,"autoSize"));let s=t.width||0,r=t.height||0;s&&r&&(o=!1);const a=n&&n.style;if(!1!==t.preload&&!1!==o&&a)try{const t=window.getComputedStyle(n),e=parseFloat(t.paddingLeft)+parseFloat(t.paddingRight),o=parseFloat(t.paddingTop)+parseFloat(t.paddingBottom),l=i.contentWindow;if(l){const t=l.document,i=t.getElementsByTagName(xt)[0],n=t.body;a.width="",n.style.overflow="hidden",s=s||i.scrollWidth+e,a.width=`${s}px`,n.style.overflow="",a.flex="0 0 auto",a.height=`${n.scrollHeight}px`,r=i.scrollHeight+o}}catch(t){}if(s||r){const t={flex:"0 1 auto",width:"",height:""};s&&"auto"!==s&&(t.width=`${s}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!==Et&&t.type!==St)return;const i=()=>{if(t.iframeEl&&t.iframeEl.contentWindow){let e;if("true"===t.iframeEl.dataset.ready)return e=t.type===Et?{event:"command",func:"playVideo"}:{method:"play",value:"true"},e&&t.iframeEl.contentWindow.postMessage(JSON.stringify(e),"*"),void(t.poller=void 0);t.type===Et&&(e={event:"listening",id:t.iframeEl.getAttribute("id")},t.iframeEl.contentWindow.postMessage(JSON.stringify(e),"*"))}t.poller=setTimeout(i,250)};i()}processType(t){if(t.html)return t.type=xt,t.src=t.html,void(t.html="");const e=this.instance.optionFor(t,"src","");if(!e||"string"!=typeof e)return;let i=t.type,n=null;if(n=e.match(/(youtube\.com|youtu\.be|youtube\-nocookie\.com)\/(?:watch\?(?:.*&)?v=|v\/|u\/|shorts\/|embed\/?)?(videoseries\?list=(?:.*)|[\w-]{11}|\?listType=(?:.*)&list=(?:.*))(?:.*)/i)){const o=this.optionFor(t,Et),{nocookie:s}=o,r=function(t,e){var i={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(i[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(t);o<n.length;o++)e.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(t,n[o])&&(i[n[o]]=t[n[o]])}return i}(o,["nocookie"]),a=`www.youtube${s?"-nocookie":""}.com`,l=Tt(e,r),c=encodeURIComponent(n[2]);t.videoId=c,t.src=`https://${a}/embed/${c}?${l}`,t.thumbSrc=t.thumbSrc||`https://i.ytimg.com/vi/${c}/mqdefault.jpg`,i=Et}else if(n=e.match(/^.+vimeo.com\/(?:\/)?([\d]+)((\/|\?h=)([a-z0-9]+))?(.*)?/)){const o=Tt(e,this.optionFor(t,St)),s=encodeURIComponent(n[1]),r=n[4]||"";t.videoId=s,t.src=`https://player.vimeo.com/video/${s}?${r?`h=${r}${o?"&":""}`:""}${o}`,i=St}if(!i&&t.triggerEl){const e=t.triggerEl.dataset.type;At.includes(e)&&(i=e)}i||"string"==typeof e&&("#"===e.charAt(0)?i="inline":(n=e.match(/\.(mp4|mov|ogv|webm)((\?|#).*)?$/i))?(i=Ct,t.videoFormat=t.videoFormat||"video/"+("ogv"===n[1]?"ogg":n[1])):e.match(/(^data:image\/[a-z0-9+\/=]*,)|(\.(jp(e|g|eg)|gif|png|bmp|webp|svg|ico)((\?|#).*)?$)/i)?i=_t:e.match(/\.(pdf)((\?|#).*)?$/i)&&(i="pdf")),(n=e.match(/(?:maps\.)?google\.([a-z]{2,3}(?:\.[a-z]{2})?)\/(?:(?:(?:maps\/(?:place\/(?:.*)\/)?\@(.*),(\d+.?\d+?)z))|(?:\?ll=))(.*)?/i))?(t.src=`https://maps.google.${n[1]}/?ll=${(n[2]?n[2]+"&z="+Math.floor(parseFloat(n[3]))+(n[4]?n[4].replace(/^\//,"&"):""):n[4]+"").replace(/\?/,"&")}&output=${n[4]&&n[4].indexOf("layer=c")>0?"svembed":"embed"}`,i=Ot):(n=e.match(/(?:maps\.)?google\.([a-z]{2,3}(?:\.[a-z]{2})?)\/(?:maps\/search\/)(.*)/i))&&(t.src=`https://maps.google.${n[1]}/maps?q=${n[2].replace("query=","q=").replace("api=1","")}&output=embed`,i=Ot),i=i||this.instance.option("defaultType"),t.type=i,i===_t&&(t.thumbSrc=t.thumbSrc||t.src)}setContent(t){const e=this.instance.optionFor(t,"src")||"";if(t&&t.type&&e){switch(t.type){case xt:this.instance.setContent(t,e);break;case Ct:const i=this.option("videoTpl");i&&this.instance.setContent(t,i.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 Ot:case Et:case St:t.preload=!1;case"iframe":this.setIframeContent(t)}this.setAspectRatio(t)}}setAspectRatio(t){const e=t.contentEl;if(!(t.el&&e&&t.type&&[Et,St,Ct].includes(t.type)))return;let i,n=t.width||"auto",o=t.height||"auto";if("auto"===n||"auto"===o){i=this.optionFor(t,"videoRatio");const e=(i+"").match(/(\d+)\s*\/\s?(\d+)/);i=e&&e.length>2?parseFloat(e[1])/parseFloat(e[2]):parseFloat(i+"")}else n&&o&&(i=n/o);if(!i)return;e.style.aspectRatio="",e.style.width="",e.style.height="",e.offsetHeight;const s=e.getBoundingClientRect(),r=s.width||1,a=s.height||1;e.style.aspectRatio=i+"",i<r/a?(o="auto"===o?a:Math.min(a,o),e.style.width="auto",e.style.height=`${o}px`):(n="auto"===n?r:Math.min(r,n),e.style.width=`${n}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 Mt="play",Lt="pause",kt="ready";class It extends B{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,i=(null===(t=e.pages[e.page])||void 0===t?void 0:t.slides)||[];let n=this.option("progressParentEl");if(n||(n=(1===i.length?i[0].el:null)||e.viewport),!n)return null;const o=document.createElement("div");return T(o,"f-progress"),n.prepend(o),this.progressBar=o,o.offsetHeight,o}set(){const t=this,e=t.instance;if(e.pages.length<2)return;if(t.timer)return;const i=t.option("timeout");t.state=Mt,T(e.container,"has-autoplay");let n=t.createProgressBar();n&&(n.style.transitionDuration=`${i}ms`,n.style.transform="scaleX(1)"),t.timer=setTimeout(()=>{t.timer=null,t.inHover||t.onTimerEnd()},i),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,i=t.instance.container;t.clear(),t.state=kt,i.removeEventListener("mouseenter",t.onMouseEnter,!1),i.removeEventListener("mouseleave",t.onMouseLeave,!1),document.removeEventListener("visibilitychange",t.onVisibilityChange,!1),C(i,"has-autoplay"),e!==kt&&t.emit("stop")}pause(){const t=this;t.state===Mt&&(t.state=Lt,t.clear(),t.emit(Lt))}resume(){const t=this,e=t.instance;if(e.isInfinite||e.page!==e.pages.length-1)if(t.state!==Mt){if(t.state===Lt&&!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===Mt||this.state===Lt?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(It,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:{autoStart:!0,pauseOnHover:!0,progressParentEl:null,showProgress:!0,timeout:3e3}});class jt extends B{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 i=t.container;i&&(e.options.Autoplay=g({autoStart:!1},this.option("Autoplay")||{},{pauseOnHover:!1,timeout:this.option("timeout"),progressParentEl:()=>this.option("progressParentEl")||null,on:{start:()=>{t.emit("startSlideshow")},set:e=>{var n;i.classList.add("has-slideshow"),(null===(n=t.getSlide())||void 0===n?void 0:n.state)!==lt.Ready&&e.pause()},stop:()=>{i.classList.remove("has-slideshow"),t.isCompact||t.endIdle(),t.emit("endSlideshow")},resume:(e,i)=>{var n,o,s;!i||!i.cancelable||(null===(n=t.getSlide())||void 0===n?void 0:n.state)===lt.Ready&&(null===(s=null===(o=t.carousel)||void 0===o?void 0:o.panzoom)||void 0===s?void 0:s.isResting)||i.preventDefault()}}}),e.attachPlugins({Autoplay:It}),this.ref=e.plugins.Autoplay)}onReady(t){const e=t.carousel,i=this.ref;i&&e&&this.option("playOnStart")&&(e.isInfinite||e.page<e.pages.length-1)&&i.start()}onDone(t,e){const i=this.ref,n=t.carousel;if(!i||!n)return;const o=e.panzoom;o&&o.on("startAnimation",()=>{t.isCurrentSlide(e)&&i.stop()}),t.isCurrentSlide(e)&&i.resume()}onKeydown(t,e){var i;const n=this.ref;n&&e===this.option("key")&&"BUTTON"!==(null===(i=document.activeElement)||void 0===i?void 0:i.nodeName)&&n.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(jt,"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 Ft={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 Dt;!function(t){t[t.Init=0]="Init",t[t.Ready=1]="Ready",t[t.Hidden=2]="Hidden"}(Dt||(Dt={}));const zt="isResting",Rt="thumbWidth",Nt="thumbHeight",$t="thumbClipWidth";let Ht=class extends B{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:Dt.Init})}get isModern(){return"modern"===this.type}onInitSlide(t,e){const i=e.el?e.el.dataset:void 0;i&&(e.thumbSrc=i.thumbSrc||e.thumbSrc||"",e[$t]=parseFloat(i[$t]||"")||e[$t]||0,e[Nt]=parseFloat(i.thumbHeight||"")||e[Nt]||0),this.addSlide(e)}onInitSlides(){this.build()}onChange(){var t;if(!this.isModern)return;const e=this.container,i=this.instance,n=i.panzoom,o=this.carousel,s=o?o.panzoom:null,r=i.page;if(n&&o&&s){if(n.isDragging){C(e,this.cn(zt));let n=(null===(t=o.pages[r])||void 0===t?void 0:t.pos)||0;n+=i.getProgress(r)*(this[$t]+this.thumbGap);let a=s.getBounds();-1*n>a.x.min&&-1*n<a.x.max&&s.panTo({x:-1*n,friction:.12})}else l(e,this.cn(zt),n.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 i=0;for(const t of e.slides||[])t.thumbSrc&&i++;if(i<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[Rt]=t[$t]&&t[Nt]?Math.round(this[Nt]*(t[$t]/t[Nt])):this[Rt])}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[Rt]=e("width")||40,this[$t]=e("clip-width")||40,this[Nt]=e("height")||40}build(){const t=this;if(t.state!==Dt.Init)return;if(t.isDisabled())return void t.emit("disabled");const e=t.instance,i=e.container,n=t.getSlides(),o=t.option("type");t.type=o;const s=t.option("parentEl"),r=t.cn("container"),a=t.cn("track");let l=null==s?void 0:s.querySelector("."+r);l||(l=document.createElement("div"),T(l,r),s?s.appendChild(l):i.after(l)),T(l,`is-${o}`),T(i,t.cn("hasThumbs")),t.container=l,t.updateProps();let c=l.querySelector("."+a);c||(c=document.createElement("div"),T(c,t.cn("track")),l.appendChild(c)),t.track=c;const u=g({},{track:c,infinite:!1,center:!0,fill:"classic"===o,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:n}),d=new e.constructor(l,u);d.on("createSlide",(e,i)=>{t.setProps(i.index),t.emit("createSlide",i,i.el)}),d.on("ready",()=>{t.shiftModern(),t.emit("ready")}),d.on("refresh",()=>{t.shiftModern()}),d.on("Panzoom.click",(e,i,n)=>{t.onClick(n)}),t.carousel=d,t.state=Dt.Ready}onClick(t){t.preventDefault(),t.stopPropagation();const e=this.instance,{pages:i,page:n}=e,o=t=>{if(t){const e=t.closest("[data-carousel-index]");if(e)return[parseInt(e.dataset.carouselIndex||"",10)||0,e]}return[-1,void 0]},s=(t,e)=>{const i=document.elementFromPoint(t,e);return i?o(i):[-1,void 0]};let[r,a]=o(t.target);if(r>-1)return;const l=this[$t],c=t.clientX,u=t.clientY;let[d,h]=s(c-l,u),[p,f]=s(c+l,u);h&&f?(r=Math.abs(c-h.getBoundingClientRect().right)<Math.abs(c-f.getBoundingClientRect().left)?d:p,r===n&&(r=r===d?p:d)):h?r=d:f&&(r=p),r>-1&&i[r]&&e.slideTo(r)}getShift(t){var e;const i=this,{instance:n}=i,o=i.carousel;if(!n||!o)return 0;const s=i[Rt],r=i[$t],a=i.thumbGap,l=i.thumbExtraGap;if(!(null===(e=o.slides[t])||void 0===e?void 0:e.el))return 0;const c=.5*(s-r),u=n.pages.length-1;let d=n.getProgress(0),h=n.getProgress(u),p=n.getProgress(t,!1,!0),f=0,g=c+l+a;const m=d<0&&d>-1,v=h>0&&h<1;return 0===t?(f=g*Math.abs(d),v&&1===d&&(f-=g*Math.abs(h))):t===u?(f=g*Math.abs(h)*-1,m&&-1===h&&(f+=g*Math.abs(d))):m||v?(f=-1*g,f+=g*Math.abs(d),f+=g*(1-Math.abs(h))):f=g*p,f}setProps(t){var e;const i=this;if(!i.isModern)return;const{instance:o}=i,s=i.carousel;if(o&&s){const r=null===(e=s.slides[t])||void 0===e?void 0:e.el;if(r&&r.childNodes.length){let e=n(1-Math.abs(o.getProgress(t))),s=n(i.getShift(t));r.style.setProperty("--progress",e?e+"":""),r.style.setProperty("--shift",s+"")}}}shiftModern(){const t=this;if(!t.isModern)return;const{instance:e,track:i}=t,n=e.panzoom,o=t.carousel;if(!(e&&i&&n&&o))return;if(n.state===y.Init||n.state===y.Destroy)return;for(const i of e.slides)t.setProps(i.index);let s=(t[$t]+t.thumbGap)*(o.slides.length||0);i.style.setProperty("--width",s+"")}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=Dt.Init,C(t.instance.container,t.cn("hasThumbs"))}attach(){const t=this,e=t.instance;e.on("initSlide",t.onInitSlide),e.state===N.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(Ht,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:Ft});const Bt=Object.assign(Object.assign({},Ft),{key:"t",showOnStart:!0,parentEl:null}),Vt="is-masked",qt="aria-hidden";class Wt extends B{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 i,n,o;const s=(null===(o=null===(n=null===(i=this.instance)||void 0===i?void 0:i.carousel)||void 0===n?void 0:n.slides[e.index])||void 0===o?void 0:o.type)||"",r=e.el;if(r&&s){let t=`for-${s}`;["video","youtube","vimeo","html5video"].includes(s)&&(t+=" for-video"),T(r,t)}}onInit(){var t;const e=this,i=e.instance,n=i.carousel;if(e.ref||!n)return;const o=e.option("parentEl")||i.footer||i.container;if(!o)return;const s=g({},e.options,{parentEl:o,classes:{container:"f-thumbs fancybox__thumbs"},Carousel:{Sync:{friction:i.option("Carousel.friction")||0}},on:{ready:t=>{const i=t.container;i&&this.hidden&&(e.refresh(),i.style.transition="none",e.hide(),i.offsetHeight,queueMicrotask(()=>{i.style.transition="",e.show()}))}}});s.Carousel=s.Carousel||{},s.Carousel.on=g((null===(t=e.options.Carousel)||void 0===t?void 0:t.on)||{},{click:this.onClick,createSlide:this.onCreateSlide}),n.options.Thumbs=s,n.attachPlugins({Thumbs:Ht}),e.ref=n.plugins.Thumbs,e.option("showOnStart")||(e.ref.state=Dt.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 i=this.option("key");i&&i===e&&this.toggle()}toggle(){const t=this.ref;if(t&&!t.isDisabled())return t.state===Dt.Hidden?(t.state=Dt.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(qt),e.classList.remove(Vt),this.hidden=!1)}hide(){const t=this.ref,e=t&&t.container;e&&(this.refresh(),e.offsetHeight,e.classList.add(Vt),e.setAttribute(qt,"true")),this.hidden=!0}refresh(){const t=this.ref;if(!t||!t.state)return;const e=t.container,i=(null==e?void 0:e.firstChild)||null;e&&i&&i.childNodes.length&&(e.style.maxHeight=`${i.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,i=e.instance;i.off("Carousel.init",e.onInit),i.off("resize",e.onResize),i.off("keydown",e.onKeydown),null===(t=i.carousel)||void 0===t||t.detachPlugins(["Thumbs"]),e.ref=null}}Object.defineProperty(Wt,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:Bt});const Xt={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 Yt;!function(t){t[t.Init=0]="Init",t[t.Ready=1]="Ready",t[t.Disabled=2]="Disabled"}(Yt||(Yt={}));const Ut={tabindex:"-1",width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Zt="has-toolbar",Gt="fancybox__toolbar";class Kt extends B{constructor(){super(...arguments),Object.defineProperty(this,"state",{enumerable:!0,configurable:!0,writable:!0,value:Yt.Init}),Object.defineProperty(this,"container",{enumerable:!0,configurable:!0,writable:!0,value:null})}onReady(t){var e;if(!t.carousel)return;let i=this.option("display"),n=this.option("absolute"),o=this.option("enabled");if("auto"===o){const t=this.instance.carousel;let e=0;if(t)for(const i of t.slides)(i.panzoom||"image"===i.type)&&e++;e||(o=!1)}o||(i=void 0);let s=0;const r={left:[],middle:[],right:[]};if(i)for(const t of["left","middle","right"])for(const n of i[t]){const i=this.createEl(n);i&&(null===(e=r[t])||void 0===e||e.push(i),s++)}let a=null;if(s&&(a=this.createContainer()),a){for(const[t,e]of Object.entries(r)){const i=document.createElement("div");T(i,Gt+"__column is-"+t);for(const t of e)i.appendChild(t);"auto"!==n||"middle"!==t||e.length||(n=!0),a.appendChild(i)}!0===n&&T(a,"is-absolute"),this.state=Yt.Ready,this.onRefresh()}else this.state=Yt.Disabled}onClick(t){var e,i;const n=this.instance,o=n.getSlide(),s=null==o?void 0:o.panzoom,r=t.target,a=r&&S(r)?r.dataset:null;if(!a)return;if(void 0!==a.fancyboxToggleThumbs)return t.preventDefault(),t.stopPropagation(),void(null===(e=n.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===(i=n.carousel)||void 0===i?void 0:i.plugins.Autoplay;let o=e.isActive;return s&&"mousemove"===s.panMode&&!o&&s.reset(),void(o?e.stop():e.start())}const l=a.panzoomAction,c=a.panzoomChange;if((c||l)&&(t.preventDefault(),t.stopPropagation()),c){let e={};try{e=JSON.parse(c)}catch(t){}s&&s.applyChange(e)}else l&&s&&s[l]&&s[l]()}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!==lt.Ready)return;const i=e&&!e.error&&e.panzoom;for(const e of t.querySelectorAll("[data-panzoom-action]"))i?(e.removeAttribute("disabled"),e.removeAttribute("tabindex")):(e.setAttribute("disabled",""),e.setAttribute("tabindex","-1"));let n=i&&i.canZoomIn(),o=i&&i.canZoomOut();for(const e of t.querySelectorAll('[data-panzoom-action="zoomIn"]'))n?(e.removeAttribute("disabled"),e.removeAttribute("tabindex")):(e.setAttribute("disabled",""),e.setAttribute("tabindex","-1"));for(const e of t.querySelectorAll('[data-panzoom-action="zoomOut"]'))o?(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"]')){o||n?(e.removeAttribute("disabled"),e.removeAttribute("tabindex")):(e.setAttribute("disabled",""),e.setAttribute("tabindex","-1"));const t=e.querySelector("g");t&&(t.style.display=n?"":"none")}}onDone(t,e){var i;null===(i=e.panzoom)||void 0===i||i.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 i=e.querySelector("."+Gt);return i||(i=document.createElement("div"),T(i,Gt),e.prepend(i)),i.addEventListener("click",this.onClick,{passive:!1,capture:!0}),t&&T(t,Zt),this.container=i,i}createEl(t){const e=this.instance,i=e.carousel;if(!i)return null;if("toggleFS"===t)return null;if("fullscreen"===t&&!st())return null;let n=null;const o=i.slides.length||0;let s=0,a=0;for(const t of i.slides)(t.panzoom||"image"===t.type)&&s++,("image"===t.type||t.downloadSrc)&&a++;if(o<2&&["infobar","prev","next"].includes(t))return n;if(void 0!==Xt[t]&&!s)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&&(!i.plugins.Autoplay||o<2))return null;if(void 0!==Xt[t]){const e=Xt[t];n=document.createElement("button"),n.setAttribute("title",this.instance.localize(`{{${t.toUpperCase()}}}`)),T(n,"f-button"),e.action&&(n.dataset.panzoomAction=e.action),e.change&&(n.dataset.panzoomChange=JSON.stringify(e.change)),n.appendChild(r(this.instance.localize(e.icon)))}else{const e=(this.option("items")||[])[t];e&&(n=r(this.instance.localize(e.tpl)),"function"==typeof e.click&&n.addEventListener("click",t=>{t.preventDefault(),t.stopPropagation(),"function"==typeof e.click&&e.click.call(this,this,t)}))}const l=null==n?void 0:n.querySelector("svg");if(l)for(const[t,e]of Object.entries(Ut))l.getAttribute(t)||l.setAttribute(t,String(e));return n}removeContainer(){const t=this.container;t&&t.remove(),this.container=null,this.state=Yt.Disabled;const e=this.instance.container;e&&C(e,Zt)}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(Kt,"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>
2<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 Qt={Hash:class extends B{onReady(){ut=!1}onChange(t){ht&&clearTimeout(ht);const{hash:e}=pt(),{hash:i}=ft(),n=t.isOpeningSlide(t.getSlide());n&&(ct=i===e?"":i),e&&e!==i&&(ht=setTimeout(()=>{try{if(t.state===at.Ready){let t="replaceState";n&&!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+(ct||""))}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(){gt()}static destroy(){window.removeEventListener("hashchange",vt,!1)}},Html:Pt,Images:wt,Slideshow:jt,Thumbs:Wt,Toolbar:Kt},Jt="with-fancybox",te="hide-scrollbar",ee="--fancybox-scrollbar-compensate",ie="--fancybox-body-margin",ne="aria-hidden",oe="is-using-tab",se="is-animated",re="is-compact",ae="is-loading",le="is-opening",ce="has-caption",ue="disabled",de="tabindex",he="download",pe="href",fe="src",ge=t=>"string"==typeof t,me=function(){var t=window.getSelection();return!!t&&"Range"===t.type};let ve,be=null,ye=null,we=0,xe=0,_e=0,Oe=0;const Ee=new Map;let Se=0;class Ce extends b{get isIdle(){return this.idle}get isCompact(){return this.option("compact")}constructor(t=[],e={},i={}){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=st()),this.id=e.id||++Se,Ee.set(this.id,this),this.userSlides=t,this.userPlugins=i,queueMicrotask(()=>{this.init()})}init(){if(this.state===at.Destroy)return;this.state=at.Init,this.attachPlugins(Object.assign(Object.assign({}
vendor: 19,550 bytes, line 2
2,Ce.Plugins),this.userPlugins)),this.emit("init"),this.emit("attachPlugins"),!0===this.option("hideScrollbar")&&(()=>{if(!et)return;const t=document,e=t.body,i=t.documentElement;if(e.classList.contains(te))return;let n=window.innerWidth-i.getBoundingClientRect().width;const o=parseFloat(window.getComputedStyle(e).marginRight);n<0&&(n=0),i.style.setProperty(ee,`${n}px`),o&&e.style.setProperty(ie,`${o}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(ne,"false")},16)};this.option("Fullscreen.autoStart")&&ve&&!ve.isFullscreen()?ve.request().then(()=>{this.startedFs=!0,t()}).catch(()=>t()):t()}initLayout(){var t,e;const i=this.option("parentEl")||document.body,n=r(this.localize(this.option("tpl.main")||""));if(n){if(n.setAttribute("id",`fancybox-${this.id}`),n.setAttribute("aria-label",this.localize("{{MODAL}}")),n.classList.toggle(re,this.isCompact),T(n,this.option("mainClass")||""),T(n,le),this.container=n,this.footer=n.querySelector(".fancybox__footer"),i.appendChild(n),T(document.documentElement,Jt),be&&ye||(be=document.createElement("span"),T(be,"fancybox-focus-guard"),be.setAttribute(de,"0"),be.setAttribute(ne,"true"),be.setAttribute("aria-label","Focus guard"),ye=be.cloneNode(),null===(t=n.parentElement)||void 0===t||t.insertBefore(be,n),null===(e=n.parentElement)||void 0===e||e.append(ye)),n.addEventListener("mousedown",t=>{we=t.pageX,xe=t.pageY,C(n,oe)}),this.option("closeExisting"))for(const t of Ee.values())t.id!==this.id&&t.close();else this.option("animated")&&(T(n,se),setTimeout(()=>{this.isClosing()||C(n,se)},350));this.emit("initLayout")}}initCarousel(t){const e=this.container;if(!e)return;const i=e.querySelector(".fancybox__carousel");if(!i)return;const n=this.carousel=new J(i,g({},{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")||{}));n.on("*",(t,e,...i)=>{this.emit(`Carousel.${e}`,t,...i)}),n.on(["ready","change"],()=>{this.manageCaption()}),this.on("Carousel.removeSlide",(t,e,i)=>{this.clearContent(i),i.state=void 0}),n.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())}),n.on("settle",()=>{this.idleTimer||this.isCompact||!this.option("idle")||this.setIdle(),this.option("autoFocus")&&!this.isClosing&&this.checkFocus()}),this.option("dragToClose")&&(n.on("Panzoom.afterTransform",(t,e)=>{const i=this.getSlide();if(i&&o(i.el))return;const n=this.container;if(n){const t=Math.abs(e.current.f),i=t<1?"":Math.max(.5,Math.min(1,1-t/e.contentRect.fitHeight*1.5));n.style.setProperty("--fancybox-ts",i?"0s":""),n.style.setProperty("--fancybox-opacity",i+"")}}),n.on("Panzoom.touchEnd",(t,e,i)=>{var n;const s=this.getSlide();if(s&&o(s.el))return;if(e.isMobile&&document.activeElement&&-1!==["TEXTAREA","INPUT"].indexOf(null===(n=document.activeElement)||void 0===n?void 0:n.nodeName))return;const r=Math.abs(e.dragOffset.y);"y"===e.lockedAxis&&(r>=200||r>=50&&e.dragOffset.time<300)&&(i&&i.cancelable&&i.preventDefault(),this.close(i,"f-throwOut"+(e.current.f<0?"Up":"Down")))})),n.on("change",t=>{var e;let i=null===(e=this.getSlide())||void 0===e?void 0:e.triggerEl;if(i){const e=new CustomEvent("slideTo",{bubbles:!0,cancelable:!0,detail:t.page});i.dispatchEvent(e)}}),n.on(["refresh","change"],t=>{const e=this.container;if(!e)return;for(const i of e.querySelectorAll("[data-fancybox-current-index]"))i.innerHTML=t.page+1;for(const i of e.querySelectorAll("[data-fancybox-count]"))i.innerHTML=t.pages.length;if(!t.isInfinite){for(const i of e.querySelectorAll("[data-fancybox-next]"))t.page<t.pages.length-1?(i.removeAttribute(ue),i.removeAttribute(de)):(i.setAttribute(ue,""),i.setAttribute(de,"-1"));for(const i of e.querySelectorAll("[data-fancybox-prev]"))t.page>0?(i.removeAttribute(ue),i.removeAttribute(de)):(i.setAttribute(ue,""),i.setAttribute(de,"-1"))}const i=this.getSlide();if(!i)return;let n=i.downloadSrc||"";n||"image"!==i.type||i.error||!ge(i[fe])||(n=i[fe]);for(const t of e.querySelectorAll("[data-fancybox-download]")){const e=i.downloadFilename;n?(t.removeAttribute(ue),t.removeAttribute(de),t.setAttribute(pe,n),t.setAttribute(he,e||n),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 i=window.visualViewport;i&&(i.addEventListener("scroll",t.onResize),i.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 i=window.visualViewport;i&&(i.removeEventListener("resize",t.onResize),i.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,i=Math.max(1,(null==e?void 0:e.scale)||1);let n="",o="",s="";if(e&&i>1){let t=`${e.offsetLeft}px`,r=`${e.offsetTop}px`;n=e.width*i+"px",o=e.height*i+"px",s=`translate3d(${t}, ${r}, 0) scale(${1/i})`}t.style.transform=s,t.style.width=n,t.style.height=o}onClick(t){var e;const{container:i,isCompact:n}=this;if(!i||this.isClosing())return;!n&&this.option("idle")&&this.resetIdle();const o=t.composedPath()[0];if(o.closest(".fancybox-spinner")||o.closest("[data-fancybox-close]"))return t.preventDefault(),void this.close(t);if(o.closest("[data-fancybox-prev]"))return t.preventDefault(),void this.prev();if(o.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-xe)>30)return;const s=document.activeElement;if(me()&&s&&i.contains(s))return;if(n&&"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(o.closest(".fancybox__content")){if(s){if(s.closest("[contenteditable]"))return;o.matches(nt)||s.blur()}if(me())return;r=this.option("contentClick")}else o.closest(".fancybox__carousel")&&!o.matches(nt)&&(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 i=this.option("wheel",t);e.closest(".fancybox__thumbs")&&(i="slide");const n="slide"===i,o=[-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,o)),a=Date.now();this.pwt&&a-this.pwt<300?n&&t.preventDefault():(this.pwt=a,this.emit("wheel",t,r),t.defaultPrevented||("close"===i?(t.preventDefault(),this.close(t)):"slide"===i&&(s(e)||(t.preventDefault(),this[r>0?"prev":"next"]()))))}onScroll(){window.scrollTo(_e,Oe)}onKeydown(t){if(!this.isTopmost())return;this.isCompact||!this.option("idle")||this.isClosing()||this.resetIdle();const e=t.key,i=this.option("keyboard");if(!i)return;const n=t.composedPath()[0],o=document.activeElement&&document.activeElement.classList,s=o&&o.contains("f-button")||n.dataset.carouselPage||n.dataset.carouselIndex;if("Escape"!==e&&!s&&S(n)&&(n.isContentEditable||-1!==["TEXTAREA","OPTION","INPUT","SELECT","VIDEO"].indexOf(n.nodeName)))return;if("Tab"===t.key?T(this.container,oe):C(this.container,oe),t.ctrlKey||t.altKey||t.shiftKey)return;this.emit("keydown",e,t);const r=i[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===Yt.Ready)return}if(!e)return;if(!t.contentEl||t.closeBtnEl)return;const i=this.option("tpl.closeButton");if(i){const e=r(this.localize(i));t.closeBtnEl=t.contentEl.appendChild(e),t.el&&T(t.el,"has-close-btn")}}manageCaption(t=void 0){var e,i;const n="fancybox__caption",o=this.container;if(!o)return;C(o,ce);const s=this.isCompact||this.option("commonCaption"),r=!s;if(this.caption&&this.stop(this.caption),r&&this.caption&&(this.caption.remove(),this.caption=null),s&&!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,ce),null===(i=t.el)||void 0===i||i.removeAttribute("aria-labelledby"));if(t||(t=this.getSlide()),!t||s&&!this.isCurrentSlide(t))return;const a=t.el;let l=this.optionFor(t,"caption","");if(!l)return void(s&&this.caption&&this.animate(this.caption,"f-fadeOut",()=>{this.caption&&(this.caption.innerHTML="")}));let c=null;if(r){if(c=t.captionEl||null,a&&!c){const e=n+`_${this.id}_${t.index}`;c=document.createElement("div"),T(c,n),c.setAttribute("id",e),t.captionEl=a.appendChild(c),T(a,ce),a.setAttribute("aria-labelledby",e)}}else c=this.caption,c||(c=o.querySelector("."+n)),c||(c=document.createElement("div"),c.dataset.fancyboxCaption="",T(c,n),(this.footer||o).prepend(c)),T(o,ce),this.caption=c;c&&(c.innerHTML="",ge(l)||"number"==typeof l?c.innerHTML=l+"":l instanceof HTMLElement&&c.appendChild(l))}checkFocus(t){this.focus(t)}focus(t){var e;if(this.ignoreFocusChange)return;const i=document.activeElement||null,n=(null==t?void 0:t.target)||null,o=this.container,s=null===(e=this.carousel)||void 0===e?void 0:e.viewport;if(!o||!s)return;if(!t&&i&&o.contains(i))return;const r=this.getSlide(),a=r&&r.state===lt.Ready?r.el:null;if(!a||a.contains(i)||o===i)return;t&&t.cancelable&&t.preventDefault(),this.ignoreFocusChange=!0;const l=Array.from(o.querySelectorAll(nt));let c=[],u=null;for(let t of l){const e=!t.offsetParent||!!t.closest('[aria-hidden="true"]'),i=a&&a.contains(t),n=!s.contains(t);if(t===o||(i||n)&&!e){c.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?(!n||c.indexOf(n)<0)&&(d=u||o,c.length&&(i===ye?d=c[0]:this.lastFocus!==o&&i!==be||(d=c[c.length-1]))):d=r&&"image"===r.type?o:u||o,d&&ot(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="",i){if(!t||!e)return void(i&&i());this.stop(t);const n=o=>{o.target===t&&t.dataset.animationName&&(t.removeEventListener("animationend",n),delete t.dataset.animationName,i&&i(),C(t,e))};t.dataset.animationName=e,t.addEventListener("animationend",n),T(t,e)}stop(t){t&&t.dispatchEvent(new CustomEvent("animationend",{bubbles:!1,cancelable:!0,currentTarget:t}))}setContent(t,e="",i=!0){if(this.isClosing())return;const n=t.el;if(!n)return;let o=null;if(S(e)?o=e:(o=r(e+""),S(o)||(o=document.createElement("div"),o.innerHTML=e+"")),["img","picture","iframe","video","audio"].includes(o.nodeName.toLowerCase())){const t=document.createElement("div");t.appendChild(o),o=t}S(o)&&t.filter&&!t.error&&(o=o.querySelector(t.filter)),o&&S(o)?(T(o,"fancybox__content"),t.id&&o.setAttribute("id",t.id),n.classList.add(`has-${t.error?"error":t.type||"unknown"}`),n.prepend(o),"none"===o.style.display&&(o.style.display=""),"none"===getComputedStyle(o).getPropertyValue("display")&&(o.style.display=t.display||this.option("defaultDisplay")||"flex"),t.contentEl=o,i&&this.revealContent(t),this.manageCloseBtn(t),this.manageCaption(t)):this.setError(t,"{{ELEMENT_NOT_FOUND}}")}revealContent(t,e){const i=t.el,n=t.contentEl;i&&n&&(this.emit("reveal",t),this.hideLoading(t),t.state=lt.Opening,(e=this.isOpeningSlide(t)?void 0===e?this.optionFor(t,"showClass"):e:"f-fadeIn")?this.animate(n,e,()=>{this.done(t)}):this.done(t))}done(t){this.isClosing()||(t.state=lt.Ready,this.emit("done",t),T(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,le),!this.isCompact&&this.option("idle")&&this.setIdle()))}isCurrentSlide(t){const e=this.getSlide();return!(!t||!e)&&e.index===t.index}isOpeningSlide(t){var e,i;return null===(null===(e=this.carousel)||void 0===e?void 0:e.prevPage)&&t&&t.index===(null===(i=this.getSlide())||void 0===i?void 0:i.index)}showLoading(t){t.state=lt.Loading;const e=t.el;e&&(T(e,ae),this.emit("loading",t),t.spinnerEl||setTimeout(()=>{if(!this.isClosing()&&!t.spinnerEl&&t.state===lt.Loading){let i=r(E);T(i,"fancybox-spinner"),t.spinnerEl=i,e.prepend(i),this.animate(i,"f-fadeIn")}},250))}hideLoading(t){const e=t.el;if(!e)return;const i=t.spinnerEl;this.isClosing()?null==i||i.remove():(C(e,ae),i&&this.animate(i,"f-fadeOut",()=>{i.remove()}),t.state===lt.Loading&&(this.emit("loaded",t),t.state=lt.Ready))}setError(t,e){if(this.isClosing())return;const i=new Event("error",{bubbles:!0,cancelable:!0});if(this.emit("error",i,t),i.defaultPrevented)return;t.error=e,this.hideLoading(t),this.clearContent(t);const n=document.createElement("div");n.classList.add("fancybox-error"),n.innerHTML=this.localize(e||"<p>{{ERROR}}</p>"),this.setContent(t,n)}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 i=new Event("shouldClose",{bubbles:!0,cancelable:!0});if(this.emit("shouldClose",i,t),i.defaultPrevented)return;t&&t.cancelable&&(t.preventDefault(),t.stopPropagation());const n=()=>{this.proceedClose(t,e)};this.startedFs&&ve&&ve.isFullscreen()?Promise.resolve(ve.exit()).then(()=>n()):n()}clearIdle(){this.idleTimer&&clearTimeout(this.idleTimer),this.idleTimer=null}setIdle(t=!1){const e=()=>{this.clearIdle(),this.idle=!0,T(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 i,n;this.state=at.Closing,this.clearIdle(),this.detachEvents();const o=this.container,s=this.carousel,r=this.getSlide(),a=r&&this.option("placeFocusBack")?r.triggerEl||this.option("triggerEl"):null;if(a&&(tt(a)?ot(a):a.focus()),o&&(C(o,le),T(o,"is-closing"),o.setAttribute(ne,"true"),this.option("animated")&&T(o,se),o.style.pointerEvents="none"),s){s.clearTransitions(),null===(i=s.panzoom)||void 0===i||i.destroy(),null===(n=s.plugins.Navigation)||void 0===n||n.detach();for(const t of s.slides){t.state=lt.Closing,this.hideLoading(t);const e=t.contentEl;e&&this.stop(e);const i=null==t?void 0:t.panzoom;i&&(i.stop(),i.detachEvents(),i.detachObserver()),this.isCurrentSlide(t)||s.emit("removeSlide",t)}}_e=window.scrollX,Oe=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,()=>{s&&s.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(),Ee.delete(this.id);const i=Ce.getInstance();i?i.focus():(be&&(be.remove(),be=null),ye&&(ye.remove(),ye=null),C(document.documentElement,Jt),(()=>{if(!et)return;const t=document,e=t.body;e.classList.remove(te),e.style.setProperty(ie,""),t.documentElement.style.setProperty(ee,"")})(),this.emit("destroy"))}static bind(t,e,i){if(!et)return;let n,o="",s={};if(void 0===t?n=document.body:ge(t)?(n=document.body,o=t,"object"==typeof e&&(s=e||{})):(n=t,ge(e)&&(o=e),"object"==typeof i&&(s=i||{})),!n||!S(n))return;o=o||"[data-fancybox]";const r=Ce.openers.get(n)||new Map;r.set(o,s),Ce.openers.set(n,r),1===r.size&&n.addEventListener("click",Ce.fromEvent)}static unbind(t,e){let i,n="";if(ge(t)?(i=document.body,n=t):(i=t,ge(e)&&(n=e)),!i)return;const o=Ce.openers.get(i);o&&n&&o.delete(n),n&&o||(Ce.openers.delete(i),i.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 i=e.closest("[data-fancybox-trigger]");if(i){const t=i.dataset.fancyboxTrigger||"",n=document.querySelectorAll(`[data-fancybox="${t}"]`),o=parseInt(i.dataset.fancyboxIndex||"",10)||0;e=n[o]||e}if(!(e&&e instanceof Element))return;let n,o,s,r;if([...Ce.openers].reverse().find(([t,i])=>!(!t.contains(e)||![...i].reverse().find(([i,a])=>{let l=e.closest(i);return!!l&&(n=t,o=i,s=l,r=a,!0)}))),!n||!o||!s)return;r=r||{},t.preventDefault(),e=s;let a=[],l=g({},rt,r);l.event=t,l.triggerEl=e,l.delegate=i;const c=l.groupAll,u=l.groupAttr,d=u&&e?e.getAttribute(`${u}`):"";
2if((!e||d||c)&&(a=[].slice.call(n.querySelectorAll(o))),e&&!c&&(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&&(l.startIndex=a.indexOf(e)),Ce.fromNodes(a,l))}static fromSelector(t,e,i){let n=null,o="",s={};if(ge(t)?(n=document.body,o=t,"object"==typeof e&&(s=e||{})):t instanceof HTMLElement&&ge(e)&&(n=t,o=e,"object"==typeof i&&(s=i||{})),!n||!o)return!1;const r=Ce.openers.get(n);return!!r&&(s=g({},r.get(o)||{},s),!!s&&Ce.fromNodes(Array.from(n.querySelectorAll(o)),s))}static fromNodes(t,e){e=g({},rt,e||{});const i=[];for(const n of t){const t=n.dataset||{},o=t[fe]||n.getAttribute(pe)||n.getAttribute("currentSrc")||n.getAttribute(fe)||void 0;let s;const r=e.delegate;let a;r&&i.length===e.startIndex&&(s=r instanceof HTMLImageElement?r:r.querySelector("img:not([aria-hidden])")),s||(s=n instanceof HTMLImageElement?n:n.querySelector("img:not([aria-hidden])")),s&&(a=s.currentSrc||s[fe]||void 0,!a&&s.dataset&&(a=s.dataset.lazySrc||s.dataset[fe]||void 0));const l={src:o,triggerEl:n,thumbEl:s,thumbElSrc:a,thumbSrc:a};for(const e in t){let i=t[e]+"";i="false"!==i&&("true"===i||i),l[e]=i}i.push(l)}return new Ce(i,e)}static getInstance(t){return t?Ee.get(t):Array.from(Ee.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 Ee.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:Qt}),Object.defineProperty(Ce,"openers",{enumerable:!0,configurable:!0,writable:!0,value:new Map})},1216(t,e,i){"use strict";i.r(e),i.d(e,{afterMain:()=>_,afterRead:()=>y,afterWrite:()=>S,applyStyles:()=>k,arrow:()=>Q,auto:()=>a,basePlacements:()=>l,beforeMain:()=>w,beforeRead:()=>v,beforeWrite:()=>O,bottom:()=>o,clippingParents:()=>d,computeStyles:()=>it,createPopper:()=>kt,createPopperBase:()=>Lt,createPopperLite:()=>It,detectOverflow:()=>bt,end:()=>u,eventListeners:()=>ot,flip:()=>yt,hide:()=>_t,left:()=>r,main:()=>x,modifierPhases:()=>C,offset:()=>Ot,placements:()=>m,popper:()=>p,popperGenerator:()=>Mt,popperOffsets:()=>Et,preventOverflow:()=>St,read:()=>b,reference:()=>f,right:()=>s,start:()=>c,top:()=>n,variationPlacements:()=>g,viewport:()=>h,write:()=>E});var n="top",o="bottom",s="right",r="left",a="auto",l=[n,o,s,r],c="start",u="end",d="clippingParents",h="viewport",p="popper",f="reference",g=l.reduce(function(t,e){return t.concat([e+"-"+c,e+"-"+u])},[]),m=[].concat(l,[a]).reduce(function(t,e){return t.concat([e,e+"-"+c,e+"-"+u])},[]),v="beforeRead",b="read",y="afterRead",w="beforeMain",x="main",_="afterMain",O="beforeWrite",E="write",S="afterWrite",C=[v,b,y,w,x,_,O,E,S];function T(t){return t?(t.nodeName||"").toLowerCase():null}function A(t){if(null==t)return window;if("[object Window]"!==t.toString()){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function P(t){return t instanceof A(t).Element||t instanceof Element}function M(t){return t instanceof A(t).HTMLElement||t instanceof HTMLElement}function L(t){return"undefined"!=typeof ShadowRoot&&(t instanceof A(t).ShadowRoot||t instanceof ShadowRoot)}const k={name:"applyStyles",enabled:!0,phase:"write",fn:function(t){var e=t.state;Object.keys(e.elements).forEach(function(t){var i=e.styles[t]||{},n=e.attributes[t]||{},o=e.elements[t];M(o)&&T(o)&&(Object.assign(o.style,i),Object.keys(n).forEach(function(t){var e=n[t];!1===e?o.removeAttribute(t):o.setAttribute(t,!0===e?"":e)}))})},effect:function(t){var e=t.state,i={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,i.popper),e.styles=i,e.elements.arrow&&Object.assign(e.elements.arrow.style,i.arrow),function(){Object.keys(e.elements).forEac
vendor: 14,629 bytes, line 2
2h(function(t){var n=e.elements[t],o=e.attributes[t]||{},s=Object.keys(e.styles.hasOwnProperty(t)?e.styles[t]:i[t]).reduce(function(t,e){return t[e]="",t},{});M(n)&&T(n)&&(Object.assign(n.style,s),Object.keys(o).forEach(function(t){n.removeAttribute(t)}))})}},requires:["computeStyles"]};function I(t){return t.split("-")[0]}var j=Math.max,F=Math.min,D=Math.round;function z(){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 R(){return!/^((?!chrome|android).)*safari/i.test(z())}function N(t,e,i){void 0===e&&(e=!1),void 0===i&&(i=!1);var n=t.getBoundingClientRect(),o=1,s=1;e&&M(t)&&(o=t.offsetWidth>0&&D(n.width)/t.offsetWidth||1,s=t.offsetHeight>0&&D(n.height)/t.offsetHeight||1);var r=(P(t)?A(t):window).visualViewport,a=!R()&&i,l=(n.left+(a&&r?r.offsetLeft:0))/o,c=(n.top+(a&&r?r.offsetTop:0))/s,u=n.width/o,d=n.height/s;return{width:u,height:d,top:c,right:l+u,bottom:c+d,left:l,x:l,y:c}}function $(t){var e=N(t),i=t.offsetWidth,n=t.offsetHeight;return Math.abs(e.width-i)<=1&&(i=e.width),Math.abs(e.height-n)<=1&&(n=e.height),{x:t.offsetLeft,y:t.offsetTop,width:i,height:n}}function H(t,e){var i=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(i&&L(i)){var n=e;do{if(n&&t.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function B(t){return A(t).getComputedStyle(t)}function V(t){return["table","td","th"].indexOf(T(t))>=0}function q(t){return((P(t)?t.ownerDocument:t.document)||window.document).documentElement}function W(t){return"html"===T(t)?t:t.assignedSlot||t.parentNode||(L(t)?t.host:null)||q(t)}function X(t){return M(t)&&"fixed"!==B(t).position?t.offsetParent:null}function Y(t){for(var e=A(t),i=X(t);i&&V(i)&&"static"===B(i).position;)i=X(i);return i&&("html"===T(i)||"body"===T(i)&&"static"===B(i).position)?e:i||function(t){var e=/firefox/i.test(z());if(/Trident/i.test(z())&&M(t)&&"fixed"===B(t).position)return null;var i=W(t);for(L(i)&&(i=i.host);M(i)&&["html","body"].indexOf(T(i))<0;){var n=B(i);if("none"!==n.transform||"none"!==n.perspective||"paint"===n.contain||-1!==["transform","perspective"].indexOf(n.willChange)||e&&"filter"===n.willChange||e&&n.filter&&"none"!==n.filter)return i;i=i.parentNode}return null}(t)||e}function U(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function Z(t,e,i){return j(t,F(e,i))}function G(t){return Object.assign({},{top:0,right:0,bottom:0,left:0},t)}function K(t,e){return e.reduce(function(e,i){return e[i]=t,e},{})}const Q={name:"arrow",enabled:!0,phase:"main",fn:function(t){var e,i=t.state,a=t.name,c=t.options,u=i.elements.arrow,d=i.modifiersData.popperOffsets,h=I(i.placement),p=U(h),f=[r,s].indexOf(h)>=0?"height":"width";if(u&&d){var g=function(t,e){return G("number"!=typeof(t="function"==typeof t?t(Object.assign({},e.rects,{placement:e.placement})):t)?t:K(t,l))}(c.padding,i),m=$(u),v="y"===p?n:r,b="y"===p?o:s,y=i.rects.reference[f]+i.rects.reference[p]-d[p]-i.rects.popper[f],w=d[p]-i.rects.reference[p],x=Y(u),_=x?"y"===p?x.clientHeight||0:x.clientWidth||0:0,O=y/2-w/2,E=g[v],S=_-m[f]-g[b],C=_/2-m[f]/2+O,T=Z(E,C,S),A=p;i.modifiersData[a]=((e={})[A]=T,e.centerOffset=T-C,e)}},effect:function(t){var e=t.state,i=t.options.element,n=void 0===i?"[data-popper-arrow]":i;null!=n&&("string"!=typeof n||(n=e.elements.popper.querySelector(n)))&&H(e.elements.popper,n)&&(e.elements.arrow=n)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function J(t){return t.split("-")[1]}var tt={top:"auto",right:"auto",bottom:"auto",left:"auto"};function et(t){var e,i=t.popper,a=t.popperRect,l=t.placement,c=t.variation,d=t.offsets,h=t.position,p=t.gpuAcceleration,f=t.adaptive,g=t.roundOffsets,m=t.isFixed,v=d.x,b=void 0===v?0:v,y=d.y,w=void 0===y?0:y,x="function"==typeof g?g({x:b,y:w}):{x:b,y:w};b=x.x,w=x.y;var _=d.hasOwnProperty("x"),O=d.hasOwnProperty("y"),E=r,S=n,C=window;if(f){var T=Y(i),P="clientHeight",M="clientWidth";if(T===A(i)&&"static"!==B(T=q(i)).position&&"absolute"===h&&(P="scrollHeight",M="scrollWidth"),l===n||(l===r||l===s)&&c===u)S=o,w-=(m&&T===C&&C.visualViewport?C.visualViewport.height:T[P])-a.height,w*=p?1:-1;if(l===r||(l===n||l===o)&&c===u)E=s,b-=(m&&T===C&&C.visualViewport?C.visualViewport.width:T[M])-a.width,b*=p?1:-1}var L,k=Object.assign({position:h},f&&tt),I=!0===g?function(t,e){var i=t.x,n=t.y,o=e.devicePixelRatio||1;return{x:D(i*o)/o||0,y:D(n*o)/o||0}}({x:b,y:w},A(i)):{x:b,y:w};return b=I.x,w=I.y,p?Object.assign({},k,((L={})[S]=O?"0":"",L[E]=_?"0":"",L.transform=(C.devicePixelRatio||1)<=1?"translate("+b+"px, "+w+"px)":"translate3d("+b+"px, "+w+"px, 0)",L)):Object.assign({},k,((e={})[S]=O?w+"px":"",e[E]=_?b+"px":"",e.transform="",e))}const it={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(t){var e=t.state,i=t.options,n=i.gpuAcceleration,o=void 0===n||n,s=i.adaptive,r=void 0===s||s,a=i.roundOffsets,l=void 0===a||a,c={placement:I(e.placement),variation:J(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:o,isFixed:"fixed"===e.options.strategy};null!=e.modifiersData.popperOffsets&&(e.styles.popper=Object.assign({},e.styles.popper,et(Object.assign({},c,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:r,roundOffsets:l})))),null!=e.modifiersData.arrow&&(e.styles.arrow=Object.assign({},e.styles.arrow,et(Object.assign({},c,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})},data:{}};var nt={passive:!0};const ot={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(t){var e=t.state,i=t.instance,n=t.options,o=n.scroll,s=void 0===o||o,r=n.resize,a=void 0===r||r,l=A(e.elements.popper),c=[].concat(e.scrollParents.reference,e.scrollParents.popper);return s&&c.forEach(function(t){t.addEventListener("scroll",i.update,nt)}),a&&l.addEventListener("resize",i.update,nt),function(){s&&c.forEach(function(t){t.removeEventListener("scroll",i.update,nt)}),a&&l.removeEventListener("resize",i.update,nt)}},data:{}};var st={left:"right",right:"left",bottom:"top",top:"bottom"};function rt(t){return t.replace(/left|right|bottom|top/g,function(t){return st[t]})}var at={start:"end",end:"start"};function lt(t){return t.replace(/start|end/g,function(t){return at[t]})}function ct(t){var e=A(t);return{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function ut(t){return N(q(t)).left+ct(t).scrollLeft}function dt(t){var e=B(t),i=e.overflow,n=e.overflowX,o=e.overflowY;return/auto|scroll|overlay|hidden/.test(i+o+n)}function ht(t){return["html","body","#document"].indexOf(T(t))>=0?t.ownerDocument.body:M(t)&&dt(t)?t:ht(W(t))}function pt(t,e){var i;void 0===e&&(e=[]);var n=ht(t),o=n===(null==(i=t.ownerDocument)?void 0:i.body),s=A(n),r=o?[s].concat(s.visualViewport||[],dt(n)?n:[]):n,a=e.concat(r);return o?a:a.concat(pt(W(r)))}function ft(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function gt(t,e,i){return e===h?ft(function(t,e){var i=A(t),n=q(t),o=i.visualViewport,s=n.clientWidth,r=n.clientHeight,a=0,l=0;if(o){s=o.width,r=o.height;var c=R();(c||!c&&"fixed"===e)&&(a=o.offsetLeft,l=o.offsetTop)}return{width:s,height:r,x:a+ut(t),y:l}}(t,i)):P(e)?function(t,e){var i=N(t,!1,"fixed"===e);return i.top=i.top+t.clientTop,i.left=i.left+t.clientLeft,i.bottom=i.top+t.clientHeight,i.right=i.left+t.clientWidth,i.width=t.clientWidth,i.height=t.clientHeight,i.x=i.left,i.y=i.top,i}(e,i):ft(function(t){var e,i=q(t),n=ct(t),o=null==(e=t.ownerDocument)?void 0:e.body,s=j(i.scrollWidth,i.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),r=j(i.scrollHeight,i.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),a=-n.scrollLeft+ut(t),l=-n.scrollTop;return"rtl"===B(o||i).direction&&(a+=j(i.clientWidth,o?o.clientWidth:0)-s),{width:s,height:r,x:a,y:l}}(q(t)))}function mt(t,e,i,n){var o="clippingParents"===e?function(t){var e=pt(W(t)),i=["absolute","fixed"].indexOf(B(t).position)>=0&&M(t)?Y(t):t;return P(i)?e.filter(function(t){return P(t)&&H(t,i)&&"body"!==T(t)}):[]}(t):[].concat(e),s=[].concat(o,[i]),r=s[0],a=s.reduce(function(e,i){var o=gt(t,i,n);return e.top=j(o.top,e.top),e.right=F(o.right,e.right),e.bottom=F(o.bottom,e.bottom),e.left=j(o.left,e.left),e},gt(t,r,n));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function vt(t){var e,i=t.reference,a=t.element,l=t.placement,d=l?I(l):null,h=l?J(l):null,p=i.x+i.width/2-a.width/2,f=i.y+i.height/2-a.height/2;switch(d){case n:e={x:p,y:i.y-a.height};break;case o:e={x:p,y:i.y+i.height};break;case s:e={x:i.x+i.width,y:f};break;case r:e={x:i.x-a.width,y:f};break;default:e={x:i.x,y:i.y}}var g=d?U(d):null;if(null!=g){var m="y"===g?"height":"width";switch(h){case c:e[g]=e[g]-(i[m]/2-a[m]/2);break;case u:e[g]=e[g]+(i[m]/2-a[m]/2)}}return e}function bt(t,e){void 0===e&&(e={});var i=e,r=i.placement,a=void 0===r?t.placement:r,c=i.strategy,u=void 0===c?t.strategy:c,g=i.boundary,m=void 0===g?d:g,v=i.rootBoundary,b=void 0===v?h:v,y=i.elementContext,w=void 0===y?p:y,x=i.altBoundary,_=void 0!==x&&x,O=i.padding,E=void 0===O?0:O,S=G("number"!=typeof E?E:K(E,l)),C=w===p?f:p,T=t.rects.popper,A=t.elements[_?C:w],M=mt(P(A)?A:A.contextElement||q(t.elements.popper),m,b,u),L=N(t.elements.reference),k=vt({reference:L,element:T,strategy:"absolute",placement:a}),I=ft(Object.assign({},T,k)),j=w===p?I:L,F={top:M.top-j.top+S.top,bottom:j.bottom-M.bottom+S.bottom,left:M.left-j.left+S.left,right:j.right-M.right+S.right},D=t.modifiersData.offset;if(w===p&&D){var z=D[a];Object.keys(F).forEach(function(t){var e=[s,o].indexOf(t)>=0?1:-1,i=[n,o].indexOf(t)>=0?"y":"x";F[t]+=z[i]*e})}return F}const yt={name:"flip",enabled:!0,phase:"main",fn:function(t){var e=t.state,i=t.options,u=t.name;if(!e.modifiersData[u]._skip){for(var d=i.mainAxis,h=void 0===d||d,p=i.altAxis,f=void 0===p||p,v=i.fallbackPlacements,b=i.padding,y=i.boundary,w=i.rootBoundary,x=i.altBoundary,_=i.flipVariations,O=void 0===_||_,E=i.allowedAutoPlacements,S=e.options.placement,C=I(S),T=v||(C===S||!O?[rt(S)]:function(t){if(I(t)===a)return[];var e=rt(t);return[lt(t),e,lt(e)]}(S)),A=[S].concat(T).reduce(function(t,i){return t.concat(I(i)===a?function(t,e){void 0===e&&(e={});var i=e,n=i.placement,o=i.boundary,s=i.rootBoundary,r=i.padding,a=i.flipVariations,c=i.allowedAutoPlacements,u=void 0===c?m:c,d=J(n),h=d?a?g:g.filter(function(t){return J(t)===d}):l,p=h.filter(function(t){return u.indexOf(t)>=0});0===p.length&&(p=h);var f=p.reduce(function(e,i){return e[i]=bt(t,{placement:i,boundary:o,rootBoundary:s,padding:r})[I(i)],e},{});return Object.keys(f).sort(function(t,e){return f[t]-f[e]})}(e,{placement:i,boundary:y,rootBoundary:w,padding:b,flipVariations:O,allowedAutoPlacements:E}):i)},[]),P=e.rects.reference,M=e.rects.popper,L=new Map,k=!0,j=A[0],F=0;F<A.length;F++){var D=A[F],z=I(D),R=J(D)===c,N=[n,o].indexOf(z)>=0,$=N?"width":"height",H=bt(e,{placement:D,boundary:y,rootBoundary:w,altBoundary:x,padding:b}),B=N?R?s:r:R?o:n;P[$]>M[$]&&(B=rt(B));var V=rt(B),q=[];if(h&&q.push(H[z]<=0),f&&q.push(H[B]<=0,H[V]<=0),q.every(function(t){return t})){j=D,k=!1;break}L.set(D,q)}if(k)for(var W=function(t){var e=A.find(function(e){var i=L.get(e);if(i)return i.slice(0,t).every(function(t){return t})});if(e)return j=e,"break"},X=O?3:1;X>0;X--){if("break"===W(X))break}e.placement!==j&&(e.modifiersData[u]._skip=!0,e.placement=j,e.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function wt(t,e,i){return void 0===i&&(i={x:0,y:0}),{top:t.top-e.height-i.y,right:t.right-e.width+i.x,bottom:t.bottom-e.height+i.y,left:t.left-e.width-i.x}}function xt(t){return[n,s,o,r].some(function(e){return t[e]>=0})}const _t={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(t){var e=t.state,i=t.name,n=e.rects.reference,o=e.rects.popper,s=e.modifiersData.preventOverflow,r=bt(e,{elementContext:"reference"}),a=bt(e,{altBoundary:!0}),l=wt(r,n),c=wt(a,o,s),u=xt(l),d=xt(c);e.modifiersData[i]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:d},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}};const Ot={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(t){var e=t.state,i=t.options,o=t.name,a=i.offset,l=void 0===a?[0,0]:a,c=m.reduce(function(t,i){return t[i]=function(t,e,i){var o=I(t),a=[r,n].indexOf(o)>=0?-1:1,l="function"==typeof i?i(Object.assign({},e,{placement:t})):i,c=l[0],u=l[1];return c=c||0,u=(u||0)*a,[r,s].indexOf(o)>=0?{x:u,y:c}:{x:c,y:u}}(i,e.rects,l),t},{}),u=c[e.placement],d=u.x,h=u.y;null!=e.modifiersData.popperOffsets&&(e.modifiersData.popperOffsets.x+=d,e.modifiersData.popperOffsets.y+=h),e.modifiersData[o]=c}};const Et={name:"popperOffsets",enabled:!0,phase:"read",fn:function(t){var e=t.state,i=t.name;e.modifiersData[i]=vt({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})},data:{}};const St={name:"preventOverflow",enabled:!0,phase:"main",fn:function(t){var e=t.state,i=t.options,a=t.name,l=i.mainAxis,u=void 0===l||l,d=i.altAxis,h=void 0!==d&&d,p=i.boundary,f=i.rootBoundary,g=i.altBoundary,m=i.padding,v=i.tether,b=void 0===v||v,y=i.tetherOffset,w=void 0===y?0:y,x=bt(e,{boundary:p,rootBoundary:f,padding:m,altBoundary:g}),_=I(e.placement),O=J(e.placement),E=!O,S=U(_),C="x"===S?"y":"x",T=e.modifiersData.popperOffsets,A=e.rects.reference,P=e.rects.popper,M="function"==typeof w?w(Object.assign({},e.rects,{placement:e.placement})):w,L="number"==typeof M?{mainAxis:M,altAxis:M}:Object.assign({mainAxis:0,altAxis:0},M),k=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,D={x:0,y:0};if(T){if(u){var z,R="y"===S?n:r,N="y"===S?o:s,H="y"===S?"height":"width",B=T[S],V=B+x[R],q=B-x[N],W=b?-P[H]/2:0,X=O===c?A[H]:P[H],G=O===c?-P[H]:-A[H],K=e.elements.arrow,Q=b&&K?$(K):{width:0,height:0},tt=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},et=tt[R],it=tt[N],nt=Z(0,A[H],Q[H]),ot=E?A[H]/2-W-nt-et-L.mainAxis:X-nt-et-L.mainAxis,st=E?-A[H]/2+W+nt+it+L.mainAxis:G+nt+it+L.mainAxis,rt=e.elements.arrow&&Y(e.elements.arrow),at=rt?"y"===S?rt.clientTop||0:rt.clientLeft||0:0,lt=null!=(z=null==k?void 0:k[S])?z:0,ct=B+st-lt,ut=Z(b?F(V,B+ot-lt-at):V,B,b?j(q,ct):q);T[S]=ut,D[S]=ut-B}if(h){var dt,ht="x"===S?n:r,pt="x"===S?o:s,ft=T[C],gt="y"===C?"height":"width",mt=ft+x[ht],vt=ft-x[pt],yt=-1!==[n,r].indexOf(_),wt=null!=(dt=null==k?void 0:k[C])?dt:0,xt=yt?mt:ft-A[gt]-P[gt]-wt+L.altAxis,_t=yt?ft+A[gt]+P[gt]-wt-L.altAxis:vt,Ot=b&&yt?function(t,e,
vendor: 9,595 bytes, line 2
2i){var n=Z(t,e,i);return n>i?i:n}(xt,ft,_t):Z(b?xt:mt,ft,b?_t:vt);T[C]=Ot,D[C]=Ot-ft}e.modifiersData[a]=D}},requiresIfExists:["offset"]};function Ct(t,e,i){void 0===i&&(i=!1);var n,o,s=M(e),r=M(e)&&function(t){var e=t.getBoundingClientRect(),i=D(e.width)/t.offsetWidth||1,n=D(e.height)/t.offsetHeight||1;return 1!==i||1!==n}(e),a=q(e),l=N(t,r,i),c={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(s||!s&&!i)&&(("body"!==T(e)||dt(a))&&(c=(n=e)!==A(n)&&M(n)?{scrollLeft:(o=n).scrollLeft,scrollTop:o.scrollTop}:ct(n)),M(e)?((u=N(e,!0)).x+=e.clientLeft,u.y+=e.clientTop):a&&(u.x=ut(a))),{x:l.left+c.scrollLeft-u.x,y:l.top+c.scrollTop-u.y,width:l.width,height:l.height}}function Tt(t){var e=new Map,i=new Set,n=[];function o(t){i.add(t.name),[].concat(t.requires||[],t.requiresIfExists||[]).forEach(function(t){if(!i.has(t)){var n=e.get(t);n&&o(n)}}),n.push(t)}return t.forEach(function(t){e.set(t.name,t)}),t.forEach(function(t){i.has(t.name)||o(t)}),n}var At={placement:"bottom",modifiers:[],strategy:"absolute"};function Pt(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];return!e.some(function(t){return!(t&&"function"==typeof t.getBoundingClientRect)})}function Mt(t){void 0===t&&(t={});var e=t,i=e.defaultModifiers,n=void 0===i?[]:i,o=e.defaultOptions,s=void 0===o?At:o;return function(t,e,i){void 0===i&&(i=s);var o,r,a={placement:"bottom",orderedModifiers:[],options:Object.assign({},At,s),modifiersData:{},elements:{reference:t,popper:e},attributes:{},styles:{}},l=[],c=!1,u={state:a,setOptions:function(i){var o="function"==typeof i?i(a.options):i;d(),a.options=Object.assign({},s,a.options,o),a.scrollParents={reference:P(t)?pt(t):t.contextElement?pt(t.contextElement):[],popper:pt(e)};var r,c,h=function(t){var e=Tt(t);return C.reduce(function(t,i){return t.concat(e.filter(function(t){return t.phase===i}))},[])}((r=[].concat(n,a.options.modifiers),c=r.reduce(function(t,e){var i=t[e.name];return t[e.name]=i?Object.assign({},i,e,{options:Object.assign({},i.options,e.options),data:Object.assign({},i.data,e.data)}):e,t},{}),Object.keys(c).map(function(t){return c[t]})));return a.orderedModifiers=h.filter(function(t){return t.enabled}),a.orderedModifiers.forEach(function(t){var e=t.name,i=t.options,n=void 0===i?{}:i,o=t.effect;if("function"==typeof o){var s=o({state:a,name:e,instance:u,options:n}),r=function(){};l.push(s||r)}}),u.update()},forceUpdate:function(){if(!c){var t=a.elements,e=t.reference,i=t.popper;if(Pt(e,i)){a.rects={reference:Ct(e,Y(i),"fixed"===a.options.strategy),popper:$(i)},a.reset=!1,a.placement=a.options.placement,a.orderedModifiers.forEach(function(t){return a.modifiersData[t.name]=Object.assign({},t.data)});for(var n=0;n<a.orderedModifiers.length;n++)if(!0!==a.reset){var o=a.orderedModifiers[n],s=o.fn,r=o.options,l=void 0===r?{}:r,d=o.name;"function"==typeof s&&(a=s({state:a,options:l,name:d,instance:u})||a)}else a.reset=!1,n=-1}}},update:(o=function(){return new Promise(function(t){u.forceUpdate(),t(a)})},function(){return r||(r=new Promise(function(t){Promise.resolve().then(function(){r=void 0,t(o())})})),r}),destroy:function(){d(),c=!0}};if(!Pt(t,e))return u;function d(){l.forEach(function(t){return t()}),l=[]}return u.setOptions(i).then(function(t){!c&&i.onFirstUpdate&&i.onFirstUpdate(t)}),u}}var Lt=Mt(),kt=Mt({defaultModifiers:[ot,Et,it,k,Ot,yt,St,Q,_t]}),It=Mt({defaultModifiers:[ot,Et,it,k]})},9011(t,e,i){t.exports=function(t,e,i,n){"use strict";const o="5.3.8";class s extends i{constructor(e,i){super(),(e=n.getElement(e))&&(this._element=e,this._config=this._getConfig(i),t.set(this._element,this.constructor.DATA_KEY,this))}dispose(){t.remove(this._element,this.constructor.DATA_KEY),e.off(this._element,this.constructor.EVENT_KEY);for(const t of Object.getOwnPropertyNames(this))this[t]=null}_queueCallback(t,e,i=!0){n.executeAfterTransition(t,e,i)}_getConfig(t){return t=this._mergeConfigObj(t,this._element),t=this._configAfterMerge(t),this._typeCheckConfig(t),t}static getInstance(e){return t.get(n.getElement(e),this.DATA_KEY)}static getOrCreateInstance(t,e={}){return this.getInstance(t)||new this(t,"object"==typeof e?e:null)}static get VERSION(){return o}static get DATA_KEY(){return`bs.${this.NAME}`}static get EVENT_KEY(){return`.${this.DATA_KEY}`}static eventName(t){return`${t}${this.EVENT_KEY}`}}return s}(i(7269),i(7956),i(2105),i(4035))},7960(t,e,i){t.exports=function(t,e,i){"use strict";const n="button",o="active",s='[data-bs-toggle="button"]',r="click.bs.button.data-api";class a extends t{static get NAME(){return n}toggle(){this._element.setAttribute("aria-pressed",this._element.classList.toggle(o))}static jQueryInterface(t){return this.each(function(){const e=a.getOrCreateInstance(this);"toggle"===t&&e[t]()})}}return e.on(document,r,s,t=>{t.preventDefault();const e=t.target.closest(s);a.getOrCreateInstance(e).toggle()}),i.defineJQueryPlugin(a),a}(i(9011),i(7956),i(4035))},114(t,e,i){t.exports=function(t,e,i,n,o,s){"use strict";const r="carousel",a=".bs.carousel",l=".data-api",c="ArrowLeft",u="ArrowRight",d=500,h="next",p="prev",f="left",g="right",m=`slide${a}`,v=`slid${a}`,b=`keydown${a}`,y=`mouseenter${a}`,w=`mouseleave${a}`,x=`dragstart${a}`,_=`load${a}${l}`,O=`click${a}${l}`,E="carousel",S="active",C="slide",T="carousel-item-end",A="carousel-item-start",P="carousel-item-next",M="carousel-item-prev",L=".active",k=".carousel-item",I=L+k,j=".carousel-item img",F=".carousel-indicators",D="[data-bs-slide], [data-bs-slide-to]",z='[data-bs-ride="carousel"]',R={[c]:g,[u]:f},N={interval:5e3,keyboard:!0,pause:"hover",ride:!1,touch:!0,wrap:!0},$={interval:"(number|boolean)",keyboard:"boolean",pause:"(string|boolean)",ride:"(boolean|string)",touch:"boolean",wrap:"boolean"};class H extends t{constructor(t,e){super(t,e),this._interval=null,this._activeElement=null,this._isSliding=!1,this.touchTimeout=null,this._swipeHelper=null,this._indicatorsElement=n.findOne(F,this._element),this._addEventListeners(),this._config.ride===E&&this.cycle()}static get Default(){return N}static get DefaultType(){return $}static get NAME(){return r}next(){this._slide(h)}nextWhenVisible(){!document.hidden&&o.isVisible(this._element)&&this.next()}prev(){this._slide(p)}pause(){this._isSliding&&o.triggerTransitionEnd(this._element),this._clearInterval()}cycle(){this._clearInterval(),this._updateInterval(),this._interval=setInterval(()=>this.nextWhenVisible(),this._config.interval)}_maybeEnableCycle(){this._config.ride&&(this._isSliding?e.one(this._element,v,()=>this.cycle()):this.cycle())}to(t){const i=this._getItems();if(t>i.length-1||t<0)return;if(this._isSliding)return void e.one(this._element,v,()=>this.to(t));const n=this._getItemIndex(this._getActive());if(n===t)return;const o=t>n?h:p;this._slide(o,i[t])}dispose(){this._swipeHelper&&this._swipeHelper.dispose(),super.dispose()}_configAfterMerge(t){return t.defaultInterval=t.interval,t}_addEventListeners(){this._config.keyboard&&e.on(this._element,b,t=>this._keydown(t)),"hover"===this._config.pause&&(e.on(this._element,y,()=>this.pause()),e.on(this._element,w,()=>this._maybeEnableCycle())),this._config.touch&&s.isSupported()&&this._addTouchEventListeners()}_addTouchEventListeners(){for(const t of n.find(j,this._element))e.on(t,x,t=>t.preventDefault());const t={leftCallback:()=>this._slide(this._directionToOrder(f)),rightCallback:()=>this._slide(this._directionToOrder(g)),endCallback:()=>{"hover"===this._config.pause&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout(()=>this._maybeEnableCycle(),d+this._config.interval))}};this._swipeHelper=new s(this._element,t)}_keydown(t){if(/input|textarea/i.test(t.target.tagName))return;const e=R[t.key];e&&(t.preventDefault(),this._slide(this._directionToOrder(e)))}_getItemIndex(t){return this._getItems().indexOf(t)}_setActiveIndicatorElement(t){if(!this._indicatorsElement)return;const e=n.findOne(L,this._indicatorsElement);e.classList.remove(S),e.removeAttribute("aria-current");const i=n.findOne(`[data-bs-slide-to="${t}"]`,this._indicatorsElement);i&&(i.classList.add(S),i.setAttribute("aria-current","true"))}_updateInterval(){const t=this._activeElement||this._getActive();if(!t)return;const e=Number.parseInt(t.getAttribute("data-bs-interval"),10);this._config.interval=e||this._config.defaultInterval}_slide(t,i=null){if(this._isSliding)return;const n=this._getActive(),s=t===h,r=i||o.getNextActiveElement(this._getItems(),n,s,this._config.wrap);if(r===n)return;const a=this._getItemIndex(r),l=i=>e.trigger(this._element,i,{relatedTarget:r,direction:this._orderToDirection(t),from:this._getItemIndex(n),to:a});if(l(m).defaultPrevented)return;if(!n||!r)return;const c=Boolean(this._interval);this.pause(),this._isSliding=!0,this._setActiveIndicatorElement(a),this._activeElement=r;const u=s?A:T,d=s?P:M;r.classList.add(d),o.reflow(r),n.classList.add(u),r.classList.add(u);const p=()=>{r.classList.remove(u,d),r.classList.add(S),n.classList.remove(S,d,u),this._isSliding=!1,l(v)};this._queueCallback(p,n,this._isAnimated()),c&&this.cycle()}_isAnimated(){return this._element.classList.contains(C)}_getActive(){return n.findOne(I,this._element)}_getItems(){return n.find(k,this._element)}_clearInterval(){this._interval&&(clearInterval(this._interval),this._interval=null)}_directionToOrder(t){return o.isRTL()?t===f?p:h:t===f?h:p}_orderToDirection(t){return o.isRTL()?t===p?f:g:t===p?g:f}static jQueryInterface(t){return this.each(function(){const e=H.getOrCreateInstance(this,t);if("number"!=typeof t){if("string"==typeof t){if(void 0===e[t]||t.startsWith("_")||"constructor"===t)throw new TypeError(`No method n
2amed "${t}"`);e[t]()}}else e.to(t)})}}return e.on(document,O,D,function(t){const e=n.getElementFromSelector(this);if(!e||!e.classList.contains(E))return;t.preventDefault();const o=H.getOrCreateInstance(e),s=this.getAttribute("data-bs-slide-to");return s?(o.to(s),void o._maybeEnableCycle()):"next"===i.getDataAttribute(this,"slide")?(o.next(),void o._maybeEnableCycle()):(o.prev(),void o._maybeEnableCycle())}),e.on(window,_,()=>{const t=n.find(z);for(const e of t)H.getOrCreateInstance(e)}),o.defineJQueryPlugin(H),H}(i(9011),i(7956),i(2333),i(5411),i(4035),i(7749))},8647(t,e,i){t.exports=function(t,e,i,n){"use strict";const o="collapse",s=".bs.collapse",r=`show${s}`,a=`shown${s}`,l=`hide${s}`,c=`hidden${s}`,u=`click${s}.data-api`,d="show",h="collapse",p="collapsing",f="collapsed",g=`:scope .${h} .${h}`,m="collapse-horizontal",v="width",b="height",y=".collapse.show, .collapse.collapsing",w='[data-bs-toggle="collapse"]',x={parent:null,toggle:!0},_={parent:"(null|element)",toggle:"boolean"};class O extends t{constructor(t,e){super(t,e),this._isTransitioning=!1,this._triggerArray=[];const n=i.find(w);for(const t of n){const e=i.getSelectorFromElement(t),n=i.find(e).filter(t=>t===this._element);null!==e&&n.length&&this._triggerArray.push(t)}this._initializeChildren(),this._config.parent||this._addAriaAndCollapsedClass(this._triggerArray,this._isShown()),this._config.toggle&&this.toggle()}static get Default(){return x}static get DefaultType(){return _}static get NAME(){return o}toggle(){this._isShown()?this.hide():this.show()}show(){if(this._isTransitioning||this._isShown())return;let t=[];if(this._config.parent&&(t=this._getFirstLevelChildren(y).filter(t=>t!==this._element).map(t=>O.getOrCreateInstance(t,{toggle:!1}))),t.length&&t[0]._isTransitioning)return;if(e.trigger(this._element,r).defaultPrevented)return;for(const e of t)e.hide();const i=this._getDimension();this._element.classList.remove(h),this._element.classList.add(p),this._element.style[i]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;const n=()=>{this._isTransitioning=!1,this._element.classList.remove(p),this._element.classList.add(h,d),this._element.style[i]="",e.trigger(this._element,a)},o=`scroll${i[0].toUpperCase()+i.slice(1)}`;this._queueCallback(n,this._element,!0),this._element.style[i]=`${this._element[o]}px`}hide(){if(this._isTransitioning||!this._isShown())return;if(e.trigger(this._element,l).defaultPrevented)return;const t=this._getDimension();this._element.style[t]=`${this._element.getBoundingClientRect()[t]}px`,n.reflow(this._element),this._element.classList.add(p),this._element.classList.remove(h,d);for(const t of this._triggerArray){const e=i.getElementFromSelector(t);e&&!this._isShown(e)&&this._addAriaAndCollapsedClass([t],!1)}this._isTransitioning=!0;const o=()=>{this._isTransitioning=!1,this._element.classList.remove(p),this._element.classList.add(h),e.trigger(this._element,c)};this._element.style[t]="",this._queueCallback(o,this._element,!0)}_isShown(t=this._element){return t.classList.contains(d)}_configAfterMerge(t){return t.toggle=Boolean(t.toggle),t.parent=n.getElement(t.parent),t}_getDimension(){return this._element.classList.contains(m)?v:b}_initializeChildren(){if(!this._config.parent)return;const t=this._getFirstLevelChildren(w);for(const e of t){const t=i.getElementFromSelector(e);t&&this._addAriaAndCollapsedClass([e],this._isShown(t))}}_getFirstLevelChildren(t){const e=i.find(g,this._config.parent);return i.find(t,this._config.parent).filter(t=>!e.includes(t))}_addAriaAndCollapsedClass(t,e){if(t.length)for(const i of t)i.classList.toggle(f,!e),i.setAttribute("aria-expanded",e)}static jQueryInterface(t){const e={};return"string"==typeof t&&/show|hide/.test(t)&&(e.toggle=!1),this.each(function(){const i=O.getOrCreateInstance(this,e);if("string"==typeof t){if(void 0===i[t])throw new TypeError(`No method named "${t}"`);i[t]()}})}}return e.on(document,u,w,function(t){("A"===t.target.tagName||t.delegateTarget&&"A"===t.delegateTarget.tagName)&&t.preventDefault();for(const t of i.getMultipleElementsFromSelector(this))O.getOrCreateInstance(t,{toggle:!1}).toggle()}),n.defineJQueryPlugin(O),O}(i(9011),i(7956),i(5411),i(4035))},7269(t){t.exports=function(){"use strict";const t=new Map;return{set(e,i,n){t.has(e)||t.set(e,new Map);const o=t.get(e);o.has(i)||0===o.size?o.set(i,n):console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(o.keys())[0]}.`)},get:(e,i)=>t.has(e)&&t.get(e).get(i)||null,remove(e,i){if(!t.has(e))return;const n=t.get(e);n.delete(i),0===n.size&&t.delete(e)}}}()}
vendor: 15,061 bytes, line 2
2,7956(t,e,i){t.exports=function(t){"use strict";const e=/[^.]*(?=\..*)\.|.*/,i=/\..*/,n=/::\d+$/,o={};let s=1;const r={mouseenter:"mouseover",mouseleave:"mouseout"},a=new Set(["click","dblclick","mouseup","mousedown","contextmenu","mousewheel","DOMMouseScroll","mouseover","mouseout","mousemove","selectstart","selectend","keydown","keypress","keyup","orientationchange","touchstart","touchmove","touchend","touchcancel","pointerdown","pointermove","pointerup","pointerleave","pointercancel","gesturestart","gesturechange","gestureend","focus","blur","change","reset","select","submit","focusin","focusout","load","unload","beforeunload","resize","move","DOMContentLoaded","readystatechange","error","abort","scroll"]);function l(t,e){return e&&`${e}::${s++}`||t.uidEvent||s++}function c(t){const e=l(t);return t.uidEvent=e,o[e]=o[e]||{},o[e]}function u(t,e){return function i(n){return y(n,{delegateTarget:t}),i.oneOff&&b.off(t,n.type,e),e.apply(t,[n])}}function d(t,e,i){return function n(o){const s=t.querySelectorAll(e);for(let{target:r}=o;r&&r!==this;r=r.parentNode)for(const a of s)if(a===r)return y(o,{delegateTarget:r}),n.oneOff&&b.off(t,o.type,e,i),i.apply(r,[o])}}function h(t,e,i=null){return Object.values(t).find(t=>t.callable===e&&t.delegationSelector===i)}function p(t,e,i){const n="string"==typeof e,o=n?i:e||i;let s=v(t);return a.has(s)||(s=t),[n,o,s]}function f(t,i,n,o,s){if("string"!=typeof i||!t)return;let[a,f,g]=p(i,n,o);if(i in r){const t=t=>function(e){if(!e.relatedTarget||e.relatedTarget!==e.delegateTarget&&!e.delegateTarget.contains(e.relatedTarget))return t.call(this,e)};f=t(f)}const m=c(t),v=m[g]||(m[g]={}),b=h(v,f,a?n:null);if(b)return void(b.oneOff=b.oneOff&&s);const y=l(f,i.replace(e,"")),w=a?d(t,n,f):u(t,f);w.delegationSelector=a?n:null,w.callable=f,w.oneOff=s,w.uidEvent=y,v[y]=w,t.addEventListener(g,w,a)}function g(t,e,i,n,o){const s=h(e[i],n,o);s&&(t.removeEventListener(i,s,Boolean(o)),delete e[i][s.uidEvent])}function m(t,e,i,n){const o=e[i]||{};for(const[s,r]of Object.entries(o))s.includes(n)&&g(t,e,i,r.callable,r.delegationSelector)}function v(t){return t=t.replace(i,""),r[t]||t}const b={on(t,e,i,n){f(t,e,i,n,!1)},one(t,e,i,n){f(t,e,i,n,!0)},off(t,e,i,o){if("string"!=typeof e||!t)return;const[s,r,a]=p(e,i,o),l=a!==e,u=c(t),d=u[a]||{},h=e.startsWith(".");if(void 0===r){if(h)for(const i of Object.keys(u))m(t,u,i,e.slice(1));for(const[i,o]of Object.entries(d)){const s=i.replace(n,"");l&&!e.includes(s)||g(t,u,a,o.callable,o.delegationSelector)}}else{if(!Object.keys(d).length)return;g(t,u,a,r,s?i:null)}},trigger(e,i,n){if("string"!=typeof i||!e)return null;const o=t.getjQuery();let s=null,r=!0,a=!0,l=!1;i!==v(i)&&o&&(s=o.Event(i,n),o(e).trigger(s),r=!s.isPropagationStopped(),a=!s.isImmediatePropagationStopped(),l=s.isDefaultPrevented());const c=y(new Event(i,{bubbles:r,cancelable:!0}),n);return l&&c.preventDefault(),a&&e.dispatchEvent(c),c.defaultPrevented&&s&&s.preventDefault(),c}};function y(t,e={}){for(const[i,n]of Object.entries(e))try{t[i]=n}catch(e){Object.defineProperty(t,i,{configurable:!0,get:()=>n})}return t}return b}(i(4035))},2333(t){t.exports=function(){"use strict";function t(t){if("true"===t)return!0;if("false"===t)return!1;if(t===Number(t).toString())return Number(t);if(""===t||"null"===t)return null;if("string"!=typeof t)return t;try{return JSON.parse(decodeURIComponent(t))}catch(e){return t}}function e(t){return t.replace(/[A-Z]/g,t=>`-${t.toLowerCase()}`)}return{setDataAttribute(t,i,n){t.setAttribute(`data-bs-${e(i)}`,n)},removeDataAttribute(t,i){t.removeAttribute(`data-bs-${e(i)}`)},getDataAttributes(e){if(!e)return{};const i={},n=Object.keys(e.dataset).filter(t=>t.startsWith("bs")&&!t.startsWith("bsConfig"));for(const o of n){let n=o.replace(/^bs/,"");n=n.charAt(0).toLowerCase()+n.slice(1),i[n]=t(e.dataset[o])}return i},getDataAttribute:(i,n)=>t(i.getAttribute(`data-bs-${e(n)}`))}}()},5411(t,e,i){t.exports=function(t){"use strict";const e=e=>{let i=e.getAttribute("data-bs-target");if(!i||"#"===i){let t=e.getAttribute("href");if(!t||!t.includes("#")&&!t.startsWith("."))return null;t.includes("#")&&!t.startsWith("#")&&(t=`#${t.split("#")[1]}`),i=t&&"#"!==t?t.trim():null}return i?i.split(",").map(e=>t.parseSelector(e)).join(","):null},i={find:(t,e=document.documentElement)=>[].concat(...Element.prototype.querySelectorAll.call(e,t)),findOne:(t,e=document.documentElement)=>Element.prototype.querySelector.call(e,t),children:(t,e)=>[].concat(...t.children).filter(t=>t.matches(e)),parents(t,e){const i=[];let n=t.parentNode.closest(e);for(;n;)i.push(n),n=n.parentNode.closest(e);return i},prev(t,e){let i=t.previousElementSibling;for(;i;){if(i.matches(e))return[i];i=i.previousElementSibling}return[]},next(t,e){let i=t.nextElementSibling;for(;i;){if(i.matches(e))return[i];i=i.nextElementSibling}return[]},focusableChildren(e){const i=["a","button","input","textarea","select","details","[tabindex]",'[contenteditable="true"]'].map(t=>`${t}:not([tabindex^="-"])`).join(",");return this.find(i,e).filter(e=>!t.isDisabled(e)&&t.isVisible(e))},getSelectorFromElement(t){const n=e(t);return n&&i.findOne(n)?n:null},getElementFromSelector(t){const n=e(t);return n?i.findOne(n):null},getMultipleElementsFromSelector(t){const n=e(t);return n?i.find(n):[]}};return i}(i(4035))},2453(t,e,i){t.exports=function(t,e,i,n,o,s){"use strict";function r(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t)for(const i in t)if("default"!==i){const n=Object.getOwnPropertyDescriptor(t,i);Object.defineProperty(e,i,n.get?n:{enumerable:!0,get:()=>t[i]})}return e.default=t,Object.freeze(e)}const a=r(t),l="dropdown",c=".bs.dropdown",u=".data-api",d="Escape",h="Tab",p="ArrowUp",f="ArrowDown",g=2,m=`hide${c}`,v=`hidden${c}`,b=`show${c}`,y=`shown${c}`,w=`click${c}${u}`,x=`keydown${c}${u}`,_=`keyup${c}${u}`,O="show",E="dropup",S="dropend",C="dropstart",T="dropup-center",A="dropdown-center",P='[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled)',M=`${P}.${O}`,L=".dropdown-menu",k=".navbar",I=".navbar-nav",j=".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",F=s.isRTL()?"top-end":"top-start",D=s.isRTL()?"top-start":"top-end",z=s.isRTL()?"bottom-end":"bottom-start",R=s.isRTL()?"bottom-start":"bottom-end",N=s.isRTL()?"left-start":"right-start",$=s.isRTL()?"right-start":"left-start",H="top",B="bottom",V={autoClose:!0,boundary:"clippingParents",display:"dynamic",offset:[0,2],popperConfig:null,reference:"toggle"},q={autoClose:"(boolean|string)",boundary:"(string|element)",display:"string",offset:"(array|string|function)",popperConfig:"(null|object|function)",reference:"(string|element|object)"};class W extends e{constructor(t,e){super(t,e),this._popper=null,this._parent=this._element.parentNode,this._menu=o.next(this._element,L)[0]||o.prev(this._element,L)[0]||o.findOne(L,this._parent),this._inNavbar=this._detectNavbar()}static get Default(){return V}static get DefaultType(){return q}static get NAME(){return l}toggle(){return this._isShown()?this.hide():this.show()}show(){if(s.isDisabled(this._element)||this._isShown())return;const t={relatedTarget:this._element};if(!i.trigger(this._element,b,t).defaultPrevented){if(this._createPopper(),"ontouchstart"in document.documentElement&&!this._parent.closest(I))for(const t of[].concat(...document.body.children))i.on(t,"mouseover",s.noop);this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.add(O),this._element.classList.add(O),i.trigger(this._element,y,t)}}hide(){if(s.isDisabled(this._element)||!this._isShown())return;const t={relatedTarget:this._element};this._completeHide(t)}dispose(){this._popper&&this._popper.destroy(),super.dispose()}update(){this._inNavbar=this._detectNavbar(),this._popper&&this._popper.update()}_completeHide(t){if(!i.trigger(this._element,m,t).defaultPrevented){if("ontouchstart"in document.documentElement)for(const t of[].concat(...document.body.children))i.off(t,"mouseover",s.noop);this._popper&&this._popper.destroy(),this._menu.classList.remove(O),this._element.classList.remove(O),this._element.setAttribute("aria-expanded","false"),n.removeDataAttribute(this._menu,"popper"),i.trigger(this._element,v,t)}}_getConfig(t){if("object"==typeof(t=super._getConfig(t)).reference&&!s.isElement(t.reference)&&"function"!=typeof t.reference.getBoundingClientRect)throw new TypeError(`${l.toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`);return t}_createPopper(){if(void 0===a)throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org/docs/v2/)");let t=this._element;"parent"===this._config.reference?t=this._parent:s.isElement(this._config.reference)?t=s.getElement(this._config.reference):"object"==typeof this._config.reference&&(t=this._config.reference);const e=this._getPopperConfig();this._popper=a.createPopper(t,this._menu,e)}_isShown(){return this._menu.classList.contains(O)}_getPlacement(){const t=this._parent;if(t.classList.contains(S))return N;if(t.classList.contains(C))return $;if(t.classList.contains(T))return H;if(t.classList.contains(A))return B;const e="end"===getComputedStyle(this._menu).getPropertyValue("--bs-position").trim();return t.classList.contains(E)?e?D:F:e?R:z}_detectNavbar(){return null!==this._element.closest(k)}_getOffset(){const{offset:t}=this._config;return"string"==typeof t?t.split(",").map(t=>Number.parseInt(t,10)):"function"==typeof t?e=>t(e,this._element):t}_getPopperConfig(){const t={placement:this._getPlacement(),modifiers:[{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"offset",options:{offset:this._getOffset()}}]};return(this._inNavbar||"static"===this._config.display)&&(n.setDataAttribute(this._menu,"popper","static"),t.modifiers=[{name:"applyStyles",enabled:!1}]),{...t,...s.execute(this._config.popperConfig,[void 0,t])}}_selectMenuItem({key:t,target:e}){const i=o.find(j,this._menu).filter(t=>s.isVisible(t));i.length&&s.getNextActiveElement(i,e,t===f,!i.includes(e)).focus()}static jQueryInterface(t){return this.each(function(){const e=W.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t])throw new TypeError(`No method named "${t}"`);e[t]()}})}static clearMenus(t){if(t.button===g||"keyup"===t.type&&t.key!==h)return;const e=o.find(M);for(const i of e){const e=W.getInstance(i);if(!e||!1===e._config.autoClose)continue;const n=t.composedPath(),o=n.includes(e._menu);if(n.includes(e._element)||"inside"===e._config.autoClose&&!o||"outside"===e._config.autoClose&&o)continue;if(e._menu.contains(t.target)&&("keyup"===t.type&&t.key===h||/input|select|option|textarea|form/i.test(t.target.tagName)))continue;const s={relatedTarget:e._element};"click"===t.type&&(s.clickEvent=t),e._completeHide(s)}}static dataApiKeydownHandler(t){const e=/input|textarea/i.test(t.target.tagName),i=t.key===d,n=[p,f].includes(t.key);if(!n&&!i)return;if(e&&!i)return;t.preventDefault();const s=this.matches(P)?this:o.prev(this,P)[0]||o.next(this,P)[0]||o.findOne(P,t.delegateTarget.parentNode),r=W.getOrCreateInstance(s);if(n)return t.stopPropagation(),r.show(),void r._selectMenuItem(t);r._isShown()&&(t.stopPropagation(),r.hide(),s.focus())}}return i.on(document,x,P,W.dataApiKeydownHandler),i.on(document,x,L,W.dataApiKeydownHandler),i.on(document,w,W.clearMenus),i.on(document,_,W.clearMenus),i.on(document,w,P,function(t){t.preventDefault(),W.getOrCreateInstance(this).toggle()}),s.defineJQueryPlugin(W),W}(i(1216),i(9011),i(7956),i(2333),i(5411),i(4035))},8013(t,e,i){t.exports=function(t,e,i,n){"use strict";const o="tab",s=".bs.tab",r=`hide${s}`,a=`hidden${s}`,l=`show${s}`,c=`shown${s}`,u=`click${s}`,d=`keydown${s}`,h=`load${s}`,p="ArrowLeft",f="ArrowRight",g="ArrowUp",m="ArrowDown",v="Home",b="End",y="active",w="fade",x="show",_="dropdown",O=".dropdown-toggle",E=".dropdown-menu",S=`:not(${O})`,C='.list-group, .nav, [role="tablist"]',T=".nav-item, .list-group-item",A='[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',P=`.nav-link${S}, .list-group-item${S}, [role="tab"]${S}, ${A}`,M=`.${y}[data-bs-toggle="tab"], .${y}[data-bs-toggle="pill"], .${y}[data-bs-toggle="list"]`;class L extends t{constructor(t){super(t),this._parent=this._element.closest(C),this._parent&&(this._setInitialAttributes(this._parent,this._getChildren()),e.on(this._element,d,t=>this._keydown(t)))}static get NAME(){return o}show(){const t=this._element;if(this._elemIsActive(t))return;const i=this._getActiveElem(),n=i?e.trigger(i,r,{relatedTarget:t}):null;e.trigger(t,l,{relatedTarget:i}).defaultPrevented||n&&n.defaultPrevented||(this._deactivate(i,t),this._activate(t,i))}_activate(t,n){if(!t)return;t.classList.add(y),this._activate(i.getElementFromSelector(t));const o=()=>{"tab"===t.getAttribute("role")?(t.removeAttribute("tabindex"),t.setAttribute("aria-selected",!0),this._toggleDropDown(t,!0),e.trigger(t,c,{relatedTarget:n})):t.classList.add(x)};this._queueCallback(o,t,t.classList.contains(w))}_deactivate(t,n){if(!t)return;t.classList.remove(y),t.blur(),this._deactivate(i.getElementFromSelector(t));const o=()=>{"tab"===t.getAttribute("role")?(t.setAttribute("aria-selected",!1),t.setAttribute("tabindex","-1"),this._toggleDropDown(t,!1),e.trigger(t,a,{relatedTarget:n})):t.classList.remove(x)};this._queueCallback(o,t,t.classList.contains(w))}_keydown(t){if(![p,f,g,m,v,b].includes(t.key))return;t.stopPropagation(),t.preventDefault();const e=this._getChildren().filter(t=>!n.isDisabled(t));let i;if([v,b].includes(t.key))i=e[t.key===v?0:e.length-1];else{const o=[f,m].includes(t.key);i=n.getNextActiveElement(e,t.target,o,!0)}i&&(i.focus({preventScroll:!0}),L.getOrCreateInstance(i).show())}_getChildren(){return i.find(P,this._parent)}_getActiveElem(){return this._getChildren().find(t=>this._elemIsActive(t))||null}_setInitialAttributes(t,e){this._setAttributeIfNotExists(t,"role","tablist");for(const t of e)this._setInitialAttributesOnChild(t)}_setInitialAttributesOnChild(t){t=this._getInnerElement(t);const e=this._elemIsActive(t),i=this._getOuterElement(t);t.setAttribute("aria-selected",e),i!==t&&this._setAttributeIfNotExists(i,"role","presentation"),e||t.setAttribute("tabindex","-1"),this._setAttributeIfNotExists(t,"role","tab"),this._setInitialAttributesOnTargetPanel(t)}_setInitialAttributesOnTargetPanel(t){const e=i.getElementFromSelector(t);e&&(this._setAttributeIfNotExists(e,"role","tabpanel"),t.id&&this._setAttributeIfNotExists(e,"aria-labelledby",`${t.id}`))}_toggleDropDown(t,e){const n=this._getOuterElement(t);if(!n.classList.contains(_))return;const o=(t,o)=>{const s=i.findOne(t,n);s&&s.classList.toggle(o,e)};o(O,y),o(E,x),n.setAttribute("aria-expanded",e)}_setAttributeIfNotExists(t,e,i){t.hasAttribute(e)||t.setAttribute(e,i)}_elemIsActive(t){return t.classList.contains(y)}_getInnerElement(t){return t.matches(P)?t:i.findOne(P,t)}_getOuterElement(t){return t.closest(T)||t}static jQueryInterface(t){return this.each(function(){const e=L.getOrCreateInstance(this);if("string"==typeof t){if(void 0===e[t]||t.startsWith("_")||"constructor"===t)throw new TypeError(`No method n
2amed "${t}"`);e[t]()}})}}return e.on(document,u,A,function(t){["A","AREA"].includes(this.tagName)&&t.preventDefault(),n.isDisabled(this)||L.getOrCreateInstance(this).show()}),e.on(window,h,()=>{for(const t of i.find(M))L.getOrCreateInstance(t)}),n.defineJQueryPlugin(L),L}(i(9011),i(7956),i(5411),i(4035))},3029(t,e,i){t.exports=function(t,e,i,n,o,s,r){"use strict";function a(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t)for(const i in t)if("default"!==i){const n=Object.getOwnPropertyDescriptor(t,i);Object.defineProperty(e,i,n.get?n:{enumerable:!0,get:()=>t[i]})}return e.default=t,Object.freeze(e)}const l=a(t),c="tooltip",u=new Set(["sanitize","allowList","sanitizeFn"]),d="fade",h="show",p=".tooltip-inner",f=".modal",g="hide.bs.modal",m="hover",v="focus",b="click",y="manual",w="hide",x="hidden",_="show",O="shown",E="inserted",S="click",C="focusin",T="focusout",A="mouseenter",P="mouseleave",M={AUTO:"auto",TOP:"top",RIGHT:o.isRTL()?"left":"right",BOTTOM:"bottom",LEFT:o.isRTL()?"right":"left"},L={allowList:s.DefaultAllowlist,animation:!0,boundary:"clippingParents",container:!1,customClass:"",delay:0,fallbackPlacements:["top","right","bottom","left"],html:!1,offset:[0,6],placement:"top",popperConfig:null,sanitize:!0,sanitizeFn:null,selector:!1,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',title:"",trigger:"hover focus"},k={allowList:"object",animation:"boolean",boundary:"(string|element)",container:"(string|element|boolean)",customClass:"(string|function)",delay:"(number|object)",fallbackPlacements:"array",html:"boolean",offset:"(array|string|function)",placement:"(string|function)",popperConfig:"(null|object|function)",sanitize:"boolean",sanitizeFn:"(null|function)",selector:"(string|boolean)",template:"string",title:"(string|element|function)",trigger:"string"};class I extends e{constructor(t,e){if(void 0===l)throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org/docs/v2/)");super(t,e),this._isEnabled=!0,this._timeout=0,this._isHovered=null,this._activeTrigger={},this._popper=null,this._templateFactory=null,this._newContent=null,this.tip=null,this._setListeners(),this._config.selector||this._fixTitle()}static get Default(){return L}static get DefaultType(){return k}static get NAME(){return c}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}toggleEnabled(){this._isEnabled=!this._isEnabled}toggle(){this._isEnabled&&(this._isShown()?this._leave():this._enter())}dispose(){clearTimeout(this._timeout),i.off(this._element.closest(f),g,this._hideModalHandler),this._element.getAttribute("data-bs-original-title")&&this._element.setAttribute("title",this._element.getAttribute("data-bs-original-title")),this._disposePopper(),super.dispose()}show(){if("none"===this._element.style.display)throw new Error("Please use show on visible elements");if(!this._isWithContent()||!this._isEnabled)return;const t=i.trigger(this._element,this.constructor.eventName(_)),e=(o.findShadowRoot(this._element)||this._element.ownerDocument.documentElement).contains(this._element);if(t.defaultPrevented||!e)return;this._disposePopper();const n=this._getTipElement();this._element.setAttribute("aria-describedby",n.getAttribute("id"));const{container:s}=this._config;if(this._element.ownerDocument.documentElement.contains(this.tip)||(s.append(n),i.trigger(this._element,this.constructor.eventName(E))),this._popper=this._createPopper(n),n.classList.add(h),"ontouchstart"in document.documentElement)for(const t of[].concat(...document.body.children))i.on(t,"mouseover",o.noop);const r=()=>{i.trigger(this._element,this.constructor.eventName(O)),!1===this._isHovered&&this._leave(),this._isHovered=!1};this._queueCallback(r,this.tip,this._isAnimated())}hide(){if(!this._isShown())return;if(i.trigger(this._element,this.constructor.eventName(w)).defaultPrevented)return;if(this._getTipElement().classList.remove(h),"ontouchstart"in document.documentElement)for(const t of[].concat(...document.body.children))i.off(t,"mouseover",o.noop);this._activeTrigger[b]=!1,this._activeTrigger[v]=!1,this._activeTrigger[m]=!1,this._isHovered=null;const t=()=>{this._isWithActiveTrigger()||(this._isHovered||this._disposePopper(),this._element.removeAttribute("aria-describedby"),i.trigger(this._element,this.constructor.eventName(x)))};this._queueCallback(t,this.tip,this._isAnimated())}
vendor: 4,747 bytes, line 2
2update(){this._popper&&this._popper.update()}_isWithContent(){return Boolean(this._getTitle())}_getTipElement(){return this.tip||(this.tip=this._createTipElement(this._newContent||this._getContentForTemplate())),this.tip}_createTipElement(t){const e=this._getTemplateFactory(t).toHtml();if(!e)return null;e.classList.remove(d,h),e.classList.add(`bs-${this.constructor.NAME}-auto`);const i=o.getUID(this.constructor.NAME).toString();return e.setAttribute("id",i),this._isAnimated()&&e.classList.add(d),e}setContent(t){this._newContent=t,this._isShown()&&(this._disposePopper(),this.show())}_getTemplateFactory(t){return this._templateFactory?this._templateFactory.changeContent(t):this._templateFactory=new r({...this._config,content:t,extraClass:this._resolvePossibleFunction(this._config.customClass)}),this._templateFactory}_getContentForTemplate(){return{[p]:this._getTitle()}}_getTitle(){return this._resolvePossibleFunction(this._config.title)||this._element.getAttribute("data-bs-original-title")}_initializeOnDelegatedTarget(t){return this.constructor.getOrCreateInstance(t.delegateTarget,this._getDelegateConfig())}_isAnimated(){return this._config.animation||this.tip&&this.tip.classList.contains(d)}_isShown(){return this.tip&&this.tip.classList.contains(h)}_createPopper(t){const e=o.execute(this._config.placement,[this,t,this._element]),i=M[e.toUpperCase()];return l.createPopper(this._element,t,this._getPopperConfig(i))}_getOffset(){const{offset:t}=this._config;return"string"==typeof t?t.split(",").map(t=>Number.parseInt(t,10)):"function"==typeof t?e=>t(e,this._element):t}_resolvePossibleFunction(t){return o.execute(t,[this._element,this._element])}_getPopperConfig(t){const e={placement:t,modifiers:[{name:"flip",options:{fallbackPlacements:this._config.fallbackPlacements}},{name:"offset",options:{offset:this._getOffset()}},{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"arrow",options:{element:`.${this.constructor.NAME}-arrow`}},{name:"preSetPlacement",enabled:!0,phase:"beforeMain",fn:t=>{this._getTipElement().setAttribute("data-popper-placement",t.state.placement)}}]};return{...e,...o.execute(this._config.popperConfig,[void 0,e])}}_setListeners(){const t=this._config.trigger.split(" ");for(const e of t)if("click"===e)i.on(this._element,this.constructor.eventName(S),this._config.selector,t=>{const e=this._initializeOnDelegatedTarget(t);e._activeTrigger[b]=!(e._isShown()&&e._activeTrigger[b]),e.toggle()});else if(e!==y){const t=e===m?this.constructor.eventName(A):this.constructor.eventName(C),n=e===m?this.constructor.eventName(P):this.constructor.eventName(T);i.on(this._element,t,this._config.selector,t=>{const e=this._initializeOnDelegatedTarget(t);e._activeTrigger["focusin"===t.type?v:m]=!0,e._enter()}),i.on(this._element,n,this._config.selector,t=>{const e=this._initializeOnDelegatedTarget(t);e._activeTrigger["focusout"===t.type?v:m]=e._element.contains(t.relatedTarget),e._leave()})}this._hideModalHandler=()=>{this._element&&this.hide()},i.on(this._element.closest(f),g,this._hideModalHandler)}_fixTitle(){const t=this._element.getAttribute("title");t&&(this._element.getAttribute("aria-label")||this._element.textContent.trim()||this._element.setAttribute("aria-label",t),this._element.setAttribute("data-bs-original-title",t),this._element.removeAttribute("title"))}_enter(){this._isShown()||this._isHovered?this._isHovered=!0:(this._isHovered=!0,this._setTimeout(()=>{this._isHovered&&this.show()},this._config.delay.show))}_leave(){this._isWithActiveTrigger()||(this._isHovered=!1,this._setTimeout(()=>{this._isHovered||this.hide()},this._config.delay.hide))}_setTimeout(t,e){clearTimeout(this._timeout),this._timeout=setTimeout(t,e)}_isWithActiveTrigger(){return Object.values(this._activeTrigger).includes(!0)}_getConfig(t){const e=n.getDataAttributes(this._element);for(const t of Object.keys(e))u.has(t)&&delete e[t];return t={...e,..."object"==typeof t&&t?t:{}},t=this._mergeConfigObj(t),t=this._configAfterMerge(t),this._typeCheckConfig(t),t}_configAfterMerge(t){return t.container=!1===t.container?document.body:o.getElement(t.container),"number"==typeof t.delay&&(t.delay={show:t.delay,hide:t.delay}),"number"==typeof t.title&&(t.title=t.title.toString()),"number"==typeof t.content&&(t.content=t.content.toString()),t}_getDelegateConfig(){const t={};for(const[e,i]of Object.entries(this._config))this.constructor.Default[e]!==i&&(t[e]=i);return t.selector=!1,t.trigger="manual",t}_disposePopper(){this._popper&&(this._popper.destroy(),this._popper=null),this.tip&&(this.tip.remove(),this.tip=null)}static jQueryInterface(t){return this.each(function(){const e=I.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t])throw new TypeError(`No method n
2amed "${t}"`);e[t]()}})}}return o.defineJQueryPlugin(I),I}(i(1216),i(9011),i(7956),i(2333),i(4035),i(2812),i(3982))},2105(t,e,i){t.exports=function(t,e){"use strict";class i{static get Default(){return{}}static get DefaultType(){return{}}static get NAME(){throw new Error('You have to implement the static method "NAME", for each component!')}_getConfig(t){return t=this._mergeConfigObj(t),t=this._configAfterMerge(t),this._typeCheckConfig(t),t}_configAfterMerge(t){return t}_mergeConfigObj(i,n){const o=e.isElement(n)?t.getDataAttribute(n,"config"):{};return{...this.constructor.Default,..."object"==typeof o?o:{},...e.isElement(n)?t.getDataAttributes(n):{},..."object"==typeof i?i:{}}}_typeCheckConfig(t,i=this.constructor.DefaultType){for(const[n,o]of Object.entries(i)){const i=t[n],s=e.isElement(i)?"element":e.toType(i);if(!new RegExp(o).test(s))throw new TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${n}" provided type "${s}" but expected type "${o}".`)}}}return i}(i(2333),i(4035))},4035(t,e){!function(t){"use strict";const e=1e6,i=1e3,n="transitionend",o=t=>(t&&window.CSS&&window.CSS.escape&&(t=t.replace(/#([^\s"#']+)/g,(t,e)=>`#${CSS.escape(e)}`)),t),s=t=>null==t?`${t}`:Object.prototype.toString.call(t).match(/\s([a-z]+)/i)[1].toLowerCase(),r=t=>{do{t+=Math.floor(Math.random()*e)}while(document.getElementById(t));return t},a=t=>{if(!t)return 0;let{transitionDuration:e,transitionDelay:n}=window.getComputedStyle(t);const o=Number.parseFloat(e),s=Number.parseFloat(n);return o||s?(e=e.split(",")[0],n=n.split(",")[0],(Number.parseFloat(e)+Number.parseFloat(n))*i):0},l=t=>{t.dispatchEvent(new Event(n))},c=t=>!(!t||"object"!=typeof t)&&(void 0!==t.jquery&&(t=t[0]),void 0!==t.nodeType),u=t=>c(t)?t.jquery?t[0]:t:"string"==typeof t&&t.length>0?document.querySelector(o(t)):null,d=t=>{if(!c(t)||0===t.getClientRects().length)return!1;const e="visible"===getComputedStyle(t).getPropertyValue("visibility"),i=t.closest("details:not([open])");if(!i)return e;if(i!==t){const e=t.closest("summary");if(e&&e.parentNode!==i)return!1;if(null===e)return!1}return e},h=t=>!t||t.nodeType!==Node.ELEMENT_NODE||!!t.classList.contains("disabled")||(void 0!==t.disabled?t.disabled:t.hasAttribute("disabled")&&"false"!==t.getAttribute("disabled")),p=t=>{if(!document.documentElement.attachShadow)return null;if("function"==typeof t.getRootNode){const e=t.getRootNode();return e instanceof ShadowRoot?e:null}return t instanceof ShadowRoot?t:t.parentNode?p(t.parentNode):null},f=()=>{},g=t=>{t.offsetHeight},m=()=>window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?window.jQuery:null,v=[],b=t=>{"loading"===document.readyState?(v.length||document.addEventListener("DOMContentLoaded",()=>{for(const t of v)t()}),v.push(t)):t()},y=()=>"rtl"===document.documentElement.dir,w=t=>{b(()=>{const e=m();if(e){const i=t.NAME,n=e.fn[i];e.fn[i]=t.jQueryInterface,e.fn[i].Constructor=t,e.fn[i].noConflict=()=>(e.fn[i]=n,t.jQueryInterface)}})},x=(t,e=[],i=t)=>"function"==typeof t?t.call(...e):i,_=(t,e,i=!0)=>{if(!i)return void x(t);const o=5,s=a(e)+o;let r=!1;const c=({target:i})=>{i===e&&(r=!0,e.removeEventListener(n,c),x(t))};e.addEventListener(n,c),setTimeout(()=>{r||l(e)},s)},O=(t,e,i,n)=>{const o=t.length;let s=t.indexOf(e);return-1===s?!i&&n?t[o-1]:t[0]:(s+=i?1:-1,n&&(s=(s+o)%o),t[Math.max(0,Math.min(s,o-1))])};t.defineJQueryPlugin=w,t.execute=x,t.executeAfterTransition=_,t.findShadowRoot=p,t.getElement=u,t.getNextActiveElement=O,t.getTransitionDurationFromElement=a,t.getUID=r,t.getjQuery=m,t.isDisabled=h,t.isElement=c,t.isRTL=y,t.isVisible=d,t.noop=f,t.onDOMContentLoaded=b,t.parseSelector=o,t.reflow=g,t.toType=s,t.triggerTransitionEnd=l,Object.defineProperty(t,Symbol.toStringTag,{value:"Module"})}(e)},2812(t,e){!function(t){"use strict";const e={"*":["class","dir","id","lang","role",/^aria-[\w-]*$/i],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],dd:[],div:[],dl:[],dt:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","srcset","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]},i=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),n=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:/?#]*(?:[/?#]|$))/i,o=(t,e)=>{const o=t.nodeName.toLowerCase();
vendor: 4,302 bytes, line 2
2return e.includes(o)?!i.has(o)||Boolean(n.test(t.nodeValue)):e.filter(t=>t instanceof RegExp).some(t=>t.test(o))};function s(t,e,i){if(!t.length)return t;if(i&&"function"==typeof i)return i(t);const n=(new window.DOMParser).parseFromString(t,"text/html"),s=[].concat(...n.body.querySelectorAll("*"));for(const t of s){const i=t.nodeName.toLowerCase();if(!Object.keys(e).includes(i)){t.remove();continue}const n=[].concat(...t.attributes),s=[].concat(e["*"]||[],e[i]||[]);for(const e of n)o(e,s)||t.removeAttribute(e.nodeName)}return n.body.innerHTML}t.DefaultAllowlist=e,t.sanitizeHtml=s,Object.defineProperty(t,Symbol.toStringTag,{value:"Module"})}(e)},7749(t,e,i){t.exports=function(t,e,i){"use strict";const n="swipe",o=".bs.swipe",s=`touchstart${o}`,r=`touchmove${o}`,a=`touchend${o}`,l=`pointerdown${o}`,c=`pointerup${o}`,u="touch",d="pen",h="pointer-event",p=40,f={endCallback:null,leftCallback:null,rightCallback:null},g={endCallback:"(function|null)",leftCallback:"(function|null)",rightCallback:"(function|null)"};class m extends e{constructor(t,e){super(),this._element=t,t&&m.isSupported()&&(this._config=this._getConfig(e),this._deltaX=0,this._supportPointerEvents=Boolean(window.PointerEvent),this._initEvents())}static get Default(){return f}static get DefaultType(){return g}static get NAME(){return n}dispose(){t.off(this._element,o)}_start(t){this._supportPointerEvents?this._eventIsPointerPenTouch(t)&&(this._deltaX=t.clientX):this._deltaX=t.touches[0].clientX}_end(t){this._eventIsPointerPenTouch(t)&&(this._deltaX=t.clientX-this._deltaX),this._handleSwipe(),i.execute(this._config.endCallback)}_move(t){this._deltaX=t.touches&&t.touches.length>1?0:t.touches[0].clientX-this._deltaX}_handleSwipe(){const t=Math.abs(this._deltaX);if(t<=p)return;const e=t/this._deltaX;this._deltaX=0,e&&i.execute(e>0?this._config.rightCallback:this._config.leftCallback)}_initEvents(){this._supportPointerEvents?(t.on(this._element,l,t=>this._start(t)),t.on(this._element,c,t=>this._end(t)),this._element.classList.add(h)):(t.on(this._element,s,t=>this._start(t)),t.on(this._element,r,t=>this._move(t)),t.on(this._element,a,t=>this._end(t)))}_eventIsPointerPenTouch(t){return this._supportPointerEvents&&(t.pointerType===d||t.pointerType===u)}static isSupported(){return"ontouchstart"in document.documentElement||navigator.maxTouchPoints>0}}return m}(i(7956),i(2105),i(4035))},3982(t,e,i){t.exports=function(t,e,i,n){"use strict";const o="TemplateFactory",s={allowList:i.DefaultAllowlist,content:{},extraClass:"",html:!1,sanitize:!0,sanitizeFn:null,template:"<div></div>"},r={allowList:"object",content:"object",extraClass:"(string|function)",html:"boolean",sanitize:"boolean",sanitizeFn:"(null|function)",template:"string"},a={entry:"(string|element|function|null)",selector:"(string|element)"};class l extends e{constructor(t){super(),this._config=this._getConfig(t)}static get Default(){return s}static get DefaultType(){return r}static get NAME(){return o}getContent(){return Object.values(this._config.content).map(t=>this._resolvePossibleFunction(t)).filter(Boolean)}hasContent(){return this.getContent().length>0}changeContent(t){return this._checkContent(t),this._config.content={...this._config.content,...t},this}toHtml(){const t=document.createElement("div");t.innerHTML=this._maybeSanitize(this._config.template);for(const[e,i]of Object.entries(this._config.content))this._setContent(t,i,e);const e=t.children[0],i=this._resolvePossibleFunction(this._config.extraClass);return i&&e.classList.add(...i.split(" ")),e}_typeCheckConfig(t){super._typeCheckConfig(t),this._checkContent(t.content)}_checkContent(t){for(const[e,i]of Object.entries(t))super._typeCheckConfig({selector:e,entry:i},a)}_setContent(e,i,o){const s=t.findOne(o,e);s&&((i=this._resolvePossibleFunction(i))?n.isElement(i)?this._putElementInTemplate(n.getElement(i),s):this._config.html?s.innerHTML=this._maybeSanitize(i):s.textContent=i:s.remove())}_maybeSanitize(t){return this._config.sanitize?i.sanitizeHtml(t,this._config.allowList,this._config.sanitizeFn):t}_resolvePossibleFunction(t){return n.execute(t,[void 0,this])}_putElementInTemplate(t,e){if(this._config.html)return e.innerHTML="",void e.append(t);e.textContent=t.textContent}}return l}(i(5411),i(2105),i(2812),i(4035))},6991(t,e,i){"use strict";i.d(e,{T:()=>
vendor: 5,274 bytes, line 2
2o});var n=function(){return n=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},n.apply(this,arguments)},o=function(){function t(t,e,i){var o=this;this.endVal=e,this.options=i,this.version="2.8.0",this.defaults={startVal:0,decimalPlaces:0,duration:2,useEasing:!0,useGrouping:!0,useIndianSeparators:!1,smartEasingThreshold:999,smartEasingAmount:333,separator:",",decimal:".",prefix:"",suffix:"",enableScrollSpy:!1,scrollSpyDelay:200,scrollSpyOnce:!1},this.finalEndVal=null,this.useEasing=!0,this.countDown=!1,this.error="",this.startVal=0,this.paused=!0,this.once=!1,this.count=function(t){o.startTime||(o.startTime=t);var e=t-o.startTime;o.remaining=o.duration-e,o.useEasing?o.countDown?o.frameVal=o.startVal-o.easingFn(e,0,o.startVal-o.endVal,o.duration):o.frameVal=o.easingFn(e,o.startVal,o.endVal-o.startVal,o.duration):o.frameVal=o.startVal+(o.endVal-o.startVal)*(e/o.duration);var i=o.countDown?o.frameVal<o.endVal:o.frameVal>o.endVal;o.frameVal=i?o.endVal:o.frameVal,o.frameVal=Number(o.frameVal.toFixed(o.options.decimalPlaces)),o.printValue(o.frameVal),e<o.duration?o.rAF=requestAnimationFrame(o.count):null!==o.finalEndVal?o.update(o.finalEndVal):o.options.onCompleteCallback&&o.options.onCompleteCallback()},this.formatNumber=function(t){var e,i,n,s,r=t<0?"-":"";e=Math.abs(t).toFixed(o.options.decimalPlaces);var a=(e+="").split(".");if(i=a[0],n=a.length>1?o.options.decimal+a[1]:"",o.options.useGrouping){s="";for(var l=3,c=0,u=0,d=i.length;u<d;++u)o.options.useIndianSeparators&&4===u&&(l=2,c=1),0!==u&&c%l==0&&(s=o.options.separator+s),c++,s=i[d-u-1]+s;i=s}return o.options.numerals&&o.options.numerals.length&&(i=i.replace(/[0-9]/g,function(t){return o.options.numerals[+t]}),n=n.replace(/[0-9]/g,function(t){return o.options.numerals[+t]})),r+o.options.prefix+i+n+o.options.suffix},this.easeOutExpo=function(t,e,i,n){return i*(1-Math.pow(2,-10*t/n))*1024/1023+e},this.options=n(n({},this.defaults),i),this.formattingFn=this.options.formattingFn?this.options.formattingFn:this.formatNumber,this.easingFn=this.options.easingFn?this.options.easingFn:this.easeOutExpo,this.startVal=this.validateValue(this.options.startVal),this.frameVal=this.startVal,this.endVal=this.validateValue(e),this.options.decimalPlaces=Math.max(this.options.decimalPlaces),this.resetDuration(),this.options.separator=String(this.options.separator),this.useEasing=this.options.useEasing,""===this.options.separator&&(this.options.useGrouping=!1),this.el="string"==typeof t?document.getElementById(t):t,this.el?this.printValue(this.startVal):this.error="[CountUp] target is null or undefined","undefined"!=typeof window&&this.options.enableScrollSpy&&(this.error?console.error(this.error,t):(window.onScrollFns=window.onScrollFns||[],window.onScrollFns.push(function(){return o.handleScroll(o)}),window.onscroll=function(){window.onScrollFns.forEach(function(t){return t()})},this.handleScroll(this)))}return t.prototype.handleScroll=function(t){if(t&&window&&!t.once){var e=window.innerHeight+window.scrollY,i=t.el.getBoundingClientRect(),n=i.top+window.pageYOffset,o=i.top+i.height+window.pageYOffset;o<e&&o>window.scrollY&&t.paused?(t.paused=!1,setTimeout(function(){return t.start()},t.options.scrollSpyDelay),t.options.scrollSpyOnce&&(t.once=!0)):(window.scrollY>o||n>e)&&!t.paused&&t.reset()}},t.prototype.determineDirectionAndSmartEasing=function(){var t=this.finalEndVal?this.finalEndVal:this.endVal;this.countDown=this.startVal>t;var e=t-this.startVal;if(Math.abs(e)>this.options.smartEasingThreshold&&this.options.useEasing){this.finalEndVal=t;var i=this.countDown?1:-1;this.endVal=t+i*this.options.smartEasingAmount,this.duration=this.duration/2}else this.endVal=t,this.finalEndVal=null;null!==this.finalEndVal?this.useEasing=!1:this.useEasing=this.options.useEasing},t.prototype.start=function(t){this.error||(this.options.onStartCallback&&this.options.onStartCallback(),t&&(this.options.onCompleteCallback=t),this.duration>0?(this.determineDirectionAndSmartEasing(),this.paused=!1,this.rAF=requestAnimationFrame(this.count)):this.printValue(this.endVal))},t.prototype.pauseResume=function(){this.paused?(this.startTime=null,this.duration=this.remaining,this.startVal=this.frameVal,this.determineDirectionAndSmartEasing(),this.rAF=requestAnimationFrame(this.count)):cancelAnimationFrame(this.rAF),this.paused=!this.paused},t.prototype.reset=function(){cancelAnimationFrame(this.rAF),this.paused=!0,this.resetDuration(),this.startVal=this.validateValue(this.options.startVal),this.frameVal=this.startVal,this.printValue(this.startVal)},t.prototype.update=function(t){cancelAnimationFrame(this.rAF),this.startTime=null,this.endVal=this.validateValue(t),this.endVal!==this.frameVal&&(this.startVal=this.frameVal,null==this.finalEndVal&&this.resetDuration(),this.finalEndVal=null,this.determineDirectionAndSmartEasing(),this.rAF=requestAnimationFrame(this.count))},t.prototype.printValue=function(t){var e;if(this.el){var i=this.formattingFn(t);(null===(e=this.options.plugin)||void 0===e?void 0:e.render)?this.options.plugin.render(this.el,i):"INPUT"===this.el.tagName?this.el.value=i:"text"===this.el.tagName||"tspan"===this.el.tagName?this.el.textContent=i:this.el.
vendor: 4,195 bytes, line 2
2innerHTML=i}},t.prototype.ensureNumber=function(t){return"number"==typeof t&&!isNaN(t)},t.prototype.validateValue=function(t){var e=Number(t);return this.ensureNumber(e)?e:(this.error="[CountUp] invalid start or end value: ".concat(t),null)},t.prototype.resetDuration=function(){this.startTime=null,this.duration=1e3*Number(this.options.duration),this.remaining=this.duration},t}()},5580(t,e,i){var n=i(6110)(i(9325),"DataView");t.exports=n},1549(t,e,i){var n=i(2032),o=i(3862),s=i(6721),r=i(2749),a=i(5749);function l(t){var e=-1,i=null==t?0:t.length;for(this.clear();++e<i;){var n=t[e];this.set(n[0],n[1])}}l.prototype.clear=n,l.prototype.delete=o,l.prototype.get=s,l.prototype.has=r,l.prototype.set=a,t.exports=l},980(t,e,i){var n=i(9344),o=i(4033);function s(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=4294967295,this.__views__=[]}s.prototype=n(o.prototype),s.prototype.constructor=s,t.exports=s},79(t,e,i){var n=i(3702),o=i(80),s=i(4739),r=i(8655),a=i(1175);function l(t){var e=-1,i=null==t?0:t.length;for(this.clear();++e<i;){var n=t[e];this.set(n[0],n[1])}}l.prototype.clear=n,l.prototype.delete=o,l.prototype.get=s,l.prototype.has=r,l.prototype.set=a,t.exports=l},6017(t,e,i){var n=i(9344),o=i(4033);function s(t,e){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!e,this.__index__=0,this.__values__=void 0}s.prototype=n(o.prototype),s.prototype.constructor=s,t.exports=s},8223(t,e,i){var n=i(6110)(i(9325),"Map");t.exports=n},3661(t,e,i){var n=i(3040),o=i(7670),s=i(289),r=i(4509),a=i(2949);function l(t){var e=-1,i=null==t?0:t.length;for(this.clear();++e<i;){var n=t[e];this.set(n[0],n[1])}}l.prototype.clear=n,l.prototype.delete=o,l.prototype.get=s,l.prototype.has=r,l.prototype.set=a,t.exports=l},2804(t,e,i){var n=i(6110)(i(9325),"Promise");t.exports=n},6545(t,e,i){var n=i(6110)(i(9325),"Set");t.exports=n},8859(t,e,i){var n=i(3661),o=i(1380),s=i(1459);function r(t){var e=-1,i=null==t?0:t.length;for(this.__data__=new n;++e<i;)this.add(t[e])}r.prototype.add=r.prototype.push=o,r.prototype.has=s,t.exports=r},7217(t,e,i){var n=i(79),o=i(1420),s=i(938),r=i(3605),a=i(9817),l=i(945);function c(t){var e=this.__data__=new n(t);this.size=e.size}c.prototype.clear=o,c.prototype.delete=s,c.prototype.get=r,c.prototype.has=a,c.prototype.set=l,t.exports=c},1873(t,e,i){var n=i(9325).Symbol;t.exports=n},7828(t,e,i){var n=i(9325).Uint8Array;t.exports=n},8303(t,e,i){var n=i(6110)(i(9325),"WeakMap");t.exports=n},1033(t){t.exports=function(t,e,i){switch(i.length){case 0:return t.call(e);case 1:return t.call(e,i[0]);case 2:return t.call(e,i[0],i[1]);case 3:return t.call(e,i[0],i[1],i[2])}return t.apply(e,i)}},3729(t){t.exports=function(t,e){for(var i=-1,n=null==t?0:t.length;++i<n&&!1!==e(t[i],i,t););return t}},9770(t){t.exports=function(t,e){for(var i=-1,n=null==t?0:t.length,o=0,s=[];++i<n;){var r=t[i];e(r,i,t)&&(s[o++]=r)}return s}},5325(t,e,i){var n=i(6131);t.exports=function(t,e){return!!(null==t?0:t.length)&&n(t,e,0)>-1}},695(t,e,i){var n=i(8096),o=i(2428),s=i(6449),r=i(3656),a=i(361),l=i(7167),c=Object.prototype.hasOwnProperty;t.exports=function(t,e){var i=s(t),u=!i&&o(t),d=!i&&!u&&r(t),h=!i&&!u&&!d&&l(t),p=i||u||d||h,f=p?n(t.length,String):[],g=f.length;for(var m in t)!e&&!c.call(t,m)||p&&("length"==m||d&&("offset"==m||"parent"==m)||h&&("buffer"==m||"byteLength"==m||"byteOffset"==m)||a(m,g))||f.push(m);return f}},4932(t){t.exports=function(t,e){for(var i=-1,n=null==t?0:t.length,o=Array(n);++i<n;)o[i]=e(t[i],i,t);return o}},4528(t){t.exports=function(t,e){for(var i=-1,n=e.length,o=t.length;++i<n;)t[o+i]=e[i];return t}},4248(t){t.exports=function(t,e){for(var i=-1,n=null==t?0:t.length;++i<n;)if(e(t[i],i,t))return!0;return!1}},6025(t,e,i){var n=i(5288);t.exports=function(t,e){for(var i=t.length;i--;)if(n(t[i][0],e))return i;return-1}},9344(t,e,i){var n=i(3805),o=Object.create,s=function(){function t(){}return function(e){if(!n(e))return{};if(o)return o(e);t.prototype=e;var i=new t;return t.prototype=void 0,i}}();t.exports=s},85(t){t.exports=function(t,e,i){if("function"!=typeof t)throw new TypeError("Expected a function");return setTimeout(function(){t.apply(void 0,i)},e)}}
vendor: 1,641 bytes, line 2
2,2523(t){t.exports=function(t,e,i,n){for(var o=t.length,s=i+(n?1:-1);n?s--:++s<o;)if(e(t[s],s,t))return s;return-1}},3120(t,e,i){var n=i(4528),o=i(5891);t.exports=function t(e,i,s,r,a){var l=-1,c=e.length;for(s||(s=o),a||(a=[]);++l<c;){var u=e[l];i>0&&s(u)?i>1?t(u,i-1,s,r,a):n(a,u):r||(a[a.length]=u)}return a}},7422(t,e,i){var n=i(1769),o=i(7797);t.exports=function(t,e){for(var i=0,s=(e=n(e,t)).length;null!=t&&i<s;)t=t[o(e[i++])];return i&&i==s?t:void 0}},2199(t,e,i){var n=i(4528),o=i(6449);t.exports=function(t,e,i){var s=e(t);return o(t)?s:n(s,i(t))}},2552(t,e,i){var n=i(1873),o=i(659),s=i(9350),r=n?n.toStringTag:void 0;t.exports=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":r&&r in Object(t)?o(t):s(t)}},8077(t){t.exports=function(t,e){return null!=t&&e in Object(t)}},6131(t,e,i){var n=i(2523),o=i(5463),s=i(6959);t.exports=function(t,e,i){return e==e?s(t,e,i):n(t,o,i)}},7534(t,e,i){var n=i(2552),o=i(346);t.exports=function(t){return o(t)&&"[object Arguments]"==n(t)}},270(t,e,i){var n=i(7068),o=i(346);t.exports=function t(e,i,s,r,a){return e===i||(null==e||null==i||!o(e)&&!o(i)?e!=e&&i!=i:n(e,i,s,r,t,a))}},7068(t,e,i){var n=i(7217),o=i(5911),s=i(1986),r=i(689),a=i(5861),l=i(6449),c=i(3656),u=i(7167),d="[object Arguments]",h="[object Array]",p="[object Object]",f=Object.prototype.hasOwnProperty;t.exports=function(t,e,i,g,m,v){var b=l(t),y=l(e),w=b?h:a(t),x=y?h:a(e),_=(w=w==d?p:w)==p,O=(x=x==d?p:x)==p,E=w==x;if(E&&c(t)){if(!c(e))return!1;b=!0,_=!1}if(E&&!_)return v||(v=new n),b||u(t)?o(t,e,i,g,m,v):s(t,e,w,i,g,m,v);if(!(1&i)){var S=_&&f.call(t,"__wrapped__"),C=O&&f.call(e,"__wrapped__");
vendor: 18,972 bytes, line 2
2if(S||C){var T=S?t.value():t,A=C?e.value():e;return v||(v=new n),m(T,A,i,g,v)}}return!!E&&(v||(v=new n),r(t,e,i,g,m,v))}},1799(t,e,i){var n=i(7217),o=i(270);t.exports=function(t,e,i,s){var r=i.length,a=r,l=!s;if(null==t)return!a;for(t=Object(t);r--;){var c=i[r];if(l&&c[2]?c[1]!==t[c[0]]:!(c[0]in t))return!1}for(;++r<a;){var u=(c=i[r])[0],d=t[u],h=c[1];if(l&&c[2]){if(void 0===d&&!(u in t))return!1}else{var p=new n;if(s)var f=s(d,h,u,t,e,p);if(!(void 0===f?o(h,d,3,s,p):f))return!1}}return!0}},5463(t){t.exports=function(t){return t!=t}},5083(t,e,i){var n=i(1882),o=i(7296),s=i(3805),r=i(7473),a=/^\[object .+?Constructor\]$/,l=Function.prototype,c=Object.prototype,u=l.toString,d=c.hasOwnProperty,h=RegExp("^"+u.call(d).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=function(t){return!(!s(t)||o(t))&&(n(t)?h:a).test(r(t))}},4901(t,e,i){var n=i(2552),o=i(294),s=i(346),r={};r["[object Float32Array]"]=r["[object Float64Array]"]=r["[object Int8Array]"]=r["[object Int16Array]"]=r["[object Int32Array]"]=r["[object Uint8Array]"]=r["[object Uint8ClampedArray]"]=r["[object Uint16Array]"]=r["[object Uint32Array]"]=!0,r["[object Arguments]"]=r["[object Array]"]=r["[object ArrayBuffer]"]=r["[object Boolean]"]=r["[object DataView]"]=r["[object Date]"]=r["[object Error]"]=r["[object Function]"]=r["[object Map]"]=r["[object Number]"]=r["[object Object]"]=r["[object RegExp]"]=r["[object Set]"]=r["[object String]"]=r["[object WeakMap]"]=!1,t.exports=function(t){return s(t)&&o(t.length)&&!!r[n(t)]}},5389(t,e,i){var n=i(3663),o=i(7978),s=i(3488),r=i(6449),a=i(583);t.exports=function(t){return"function"==typeof t?t:null==t?s:"object"==typeof t?r(t)?o(t[0],t[1]):n(t):a(t)}},8984(t,e,i){var n=i(5527),o=i(3650),s=Object.prototype.hasOwnProperty;t.exports=function(t){if(!n(t))return o(t);var e=[];for(var i in Object(t))s.call(t,i)&&"constructor"!=i&&e.push(i);return e}},4033(t){t.exports=function(){}},3663(t,e,i){var n=i(1799),o=i(776),s=i(7197);t.exports=function(t){var e=o(t);return 1==e.length&&e[0][2]?s(e[0][0],e[0][1]):function(i){return i===t||n(i,t,e)}}},7978(t,e,i){var n=i(270),o=i(8156),s=i(631),r=i(8586),a=i(756),l=i(7197),c=i(7797);t.exports=function(t,e){return r(t)&&a(e)?l(c(t),e):function(i){var r=o(i,t);return void 0===r&&r===e?s(i,t):n(e,r,3)}}},7237(t){t.exports=function(t){return function(e){return null==e?void 0:e[t]}}},7255(t,e,i){var n=i(7422);t.exports=function(t){return function(e){return n(e,t)}}},9302(t,e,i){var n=i(3488),o=i(6757),s=i(2865);t.exports=function(t,e){return s(o(t,e,n),t+"")}},8882(t,e,i){var n=i(3488),o=i(8152),s=o?function(t,e){return o.set(t,e),t}:n;t.exports=s},9570(t,e,i){var n=i(7334),o=i(3243),s=i(3488),r=o?function(t,e){return o(t,"toString",{configurable:!0,enumerable:!1,value:n(e),writable:!0})}:s;t.exports=r},5160(t){t.exports=function(t,e,i){var n=-1,o=t.length;e<0&&(e=-e>o?0:o+e),(i=i>o?o:i)<0&&(i+=o),o=e>i?0:i-e>>>0,e>>>=0;for(var s=Array(o);++n<o;)s[n]=t[n+e];return s}},8096(t){t.exports=function(t,e){for(var i=-1,n=Array(t);++i<t;)n[i]=e(i);return n}},7556(t,e,i){var n=i(1873),o=i(4932),s=i(6449),r=i(4394),a=n?n.prototype:void 0,l=a?a.toString:void 0;t.exports=function t(e){if("string"==typeof e)return e;if(s(e))return o(e,t)+"";if(r(e))return l?l.call(e):"";var i=e+"";return"0"==i&&1/e==-1/0?"-0":i}},4128(t,e,i){var n=i(1800),o=/^\s+/;t.exports=function(t){return t?t.slice(0,n(t)+1).replace(o,""):t}},7301(t){t.exports=function(t){return function(e){return t(e)}}},9219(t){t.exports=function(t,e){return t.has(e)}},4066(t,e,i){var n=i(3488);t.exports=function(t){return"function"==typeof t?t:n}},1769(t,e,i){var n=i(6449),o=i(8586),s=i(1802),r=i(3222);t.exports=function(t,e){return n(t)?t:o(t,e)?[t]:s(r(t))}},244(t,e,i){var n=i(9302);t.exports=n},8754(t,e,i){var n=i(5160);t.exports=function(t,e,i){var o=t.length;return i=void 0===i?o:i,!e&&i>=o?t:n(t,e,i)}},1596(t){var e=Math.max;t.exports=function(t,i,n,o){for(var s=-1,r=t.length,a=n.length,l=-1,c=i.length,u=e(r-a,0),d=Array(c+u),h=!o;++l<c;)d[l]=i[l];for(;++s<a;)(h||s<r)&&(d[n[s]]=t[s]);for(;u--;)d[l++]=t[s++];return d}},3320(t){var e=Math.max;t.exports=function(t,i,n,o){for(var s=-1,r=t.length,a=-1,l=n.length,c=-1,u=i.length,d=e(r-l,0),h=Array(d+u),p=!o;++s<d;)h[s]=t[s];for(var f=s;++c<u;)h[f+c]=i[c];for(;++a<l;)(p||s<r)&&(h[f+n[a]]=t[s++]);return h}},3007(t){t.exports=function(t,e){var i=-1,n=t.length;for(e||(e=Array(n));++i<n;)e[i]=t[i];return e}},5481(t,e,i){var n=i(9325)["__core-js_shared__"];t.exports=n},8523(t){t.exports=function(t,e){for(var i=t.length,n=0;i--;)t[i]===e&&++n;return n}},1842(t,e,i){var n=i(2819),o=i(9325);t.exports=function(t,e,i){var s=1&e,r=n(t);return function e(){return(this&&this!==o&&this instanceof e?r:t).apply(s?i:this,arguments)}}},2819(t,e,i){var n=i(9344),o=i(3805);t.exports=function(t){return function(){var e=arguments;switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3]);case 5:return new t(e[0],e[1],e[2],e[3],e[4]);case 6:return new t(e[0],e[1],e[2],e[3],e[4],e[5]);case 7:return new t(e[0],e[1],e[2],e[3],e[4],e[5],e[6])}var i=n(t.prototype),s=t.apply(i,e);return o(s)?s:i}}},7078(t,e,i){var n=i(1033),o=i(2819),s=i(7471),r=i(8073),a=i(1287),l=i(6306),c=i(9325);t.exports=function(t,e,i){var u=o(t);return function o(){for(var d=arguments.length,h=Array(d),p=d,f=a(o);p--;)h[p]=arguments[p];var g=d<3&&h[0]!==f&&h[d-1]!==f?[]:l(h,f);return(d-=g.length)<i?r(t,e,s,o.placeholder,void 0,h,g,void 0,void 0,i-d):n(this&&this!==c&&this instanceof o?u:t,this,h)}}},7471(t,e,i){var n=i(1596),o=i(3320),s=i(8523),r=i(2819),a=i(8073),l=i(1287),c=i(8294),u=i(6306),d=i(9325);t.exports=function t(e,i,h,p,f,g,m,v,b,y){var w=128&i,x=1&i,_=2&i,O=24&i,E=512&i,S=_?void 0:r(e);return function C(){for(var T=arguments.length,A=Array(T),P=T;P--;)A[P]=arguments[P];if(O)var M=l(C),L=s(A,M);if(p&&(A=n(A,p,f,O)),g&&(A=o(A,g,m,O)),T-=L,O&&T<y){var k=u(A,M);return a(e,i,t,C.placeholder,h,A,k,v,b,y-T)}var I=x?h:this,j=_?I[e]:e;return T=A.length,v?A=c(A,v):E&&T>1&&A.reverse(),w&&b<T&&(A.length=b),this&&this!==d&&this instanceof C&&(j=S||r(j)),j.apply(I,A)}}},4168(t,e,i){var n=i(1033),o=i(2819),s=i(9325);t.exports=function(t,e,i,r){var a=1&e,l=o(t);return function e(){for(var o=-1,c=arguments.length,u=-1,d=r.length,h=Array(d+c),p=this&&this!==s&&this instanceof e?l:t;++u<d;)h[u]=r[u];for(;c--;)h[u++]=arguments[++o];return n(p,a?i:this,h)}}},8073(t,e,i){var n=i(5087),o=i(4641),s=i(981);t.exports=function(t,e,i,r,a,l,c,u,d,h){var p=8&e;e|=p?32:64,4&(e&=~(p?64:32))||(e&=-4);var f=[t,e,a,p?l:void 0,p?c:void 0,p?void 0:l,p?void 0:c,u,d,h],g=i.apply(void 0,f);return n(t)&&o(g,f),g.placeholder=r,s(g,t,e)}},6977(t,e,i){var n=i(8882),o=i(1842),s=i(7078),r=i(7471),a=i(4168),l=i(7381),c=i(3209),u=i(4641),d=i(981),h=i(1489),p=Math.max;t.exports=function(t,e,i,f,g,m,v,b){var y=2&e;if(!y&&"function"!=typeof t)throw new TypeError("Expected a function");var w=f?f.length:0;if(w||(e&=-97,f=g=void 0),v=void 0===v?v:p(h(v),0),b=void 0===b?b:h(b),w-=g?g.length:0,64&e){var x=f,_=g;f=g=void 0}var O=y?void 0:l(t),E=[t,e,i,f,g,x,_,m,v,b];if(O&&c(E,O),t=E[0],e=E[1],i=E[2],f=E[3],g=E[4],!(b=E[9]=void 0===E[9]?y?0:t.length:p(E[9]-w,0))&&24&e&&(e&=-25),e&&1!=e)S=8==e||16==e?s(t,e,b):32!=e&&33!=e||g.length?r.apply(void 0,E):a(t,e,i,f);else var S=o(t,e,i);return d((O?n:u)(S,E),t,e)}},3243(t,e,i){var n=i(6110),o=function(){try{var t=n(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();t.exports=o},5911(t,e,i){var n=i(8859),o=i(4248),s=i(9219);t.exports=function(t,e,i,r,a,l){var c=1&i,u=t.length,d=e.length;if(u!=d&&!(c&&d>u))return!1;var h=l.get(t),p=l.get(e);if(h&&p)return h==e&&p==t;var f=-1,g=!0,m=2&i?new n:void 0;for(l.set(t,e),l.set(e,t);++f<u;){var v=t[f],b=e[f];if(r)var y=c?r(b,v,f,e,t,l):r(v,b,f,t,e,l);if(void 0!==y){if(y)continue;g=!1;break}if(m){if(!o(e,function(t,e){if(!s(m,e)&&(v===t||a(v,t,i,r,l)))return m.push(e)})){g=!1;break}}else if(v!==b&&!a(v,b,i,r,l)){g=!1;break}}return l.delete(t),l.delete(e),g}},1986(t,e,i){var n=i(1873),o=i(7828),s=i(5288),r=i(5911),a=i(317),l=i(4247),c=n?n.prototype:void 0,u=c?c.valueOf:void 0;t.exports=function(t,e,i,n,c,d,h){switch(i){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=e.byteLength||!d(new o(t),new o(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return s(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case"[object Map]":var p=a;case"[object Set]":var f=1&n;if(p||(p=l),t.size!=e.size&&!f)return!1;var g=h.get(t);if(g)return g==e;n|=2,h.set(t,e);var m=r(p(t),p(e),n,c,d,h);return h.delete(t),m;case"[object Symbol]":if(u)return u.call(t)==u.call(e)}return!1}},689(t,e,i){var n=i(2),o=Object.prototype.hasOwnProperty;t.exports=function(t,e,i,s,r,a){var l=1&i,c=n(t),u=c.length;if(u!=n(e).length&&!l)return!1;for(var d=u;d--;){var h=c[d];if(!(l?h in e:o.call(e,h)))return!1}var p=a.get(t),f=a.get(e);if(p&&f)return p==e&&f==t;var g=!0;a.set(t,e),a.set(e,t);for(var m=l;++d<u;){var v=t[h=c[d]],b=e[h];if(s)var y=l?s(b,v,h,e,t,a):s(v,b,h,t,e,a);if(!(void 0===y?v===b||r(v,b,i,s,a):y)){g=!1;break}m||(m="constructor"==h)}if(g&&!m){var w=t.constructor,x=e.constructor;w==x||!("constructor"in t)||!("constructor"in e)||"function"==typeof w&&w instanceof w&&"function"==typeof x&&x instanceof x||(g=!1)}return a.delete(t),a.delete(e),g}},8816(t,e,i){var n=i(5970),o=i(6757),s=i(2865);t.exports=function(t){return s(o(t,void 0,n),t+"")}},4840(t){var e="object"==typeof globalThis&&globalThis&&globalThis.Object===Object&&globalThis;t.exports=e},2(t,e,i){var n=i(2199),o=i(4664),s=i(5950);t.exports=function(t){return n(t,s,o)}},7381(t,e,i){var n=i(8152),o=i(3950),s=n?function(t){return n.get(t)}:o;t.exports=s},2284(t,e,i){var n=i(4629),o=Object.prototype.hasOwnProperty;t.exports=function(t){for(var e=t.name+"",i=n[e],s=o.call(n,e)?i.length:0;s--;){var r=i[s],a=r.func;if(null==a||a==t)return r.name}return e}},1287(t){t.exports=function(t){return t.placeholder}},2651(t,e,i){var n=i(4218);t.exports=function(t,e){var i=t.__data__;return n(e)?i["string"==typeof e?"string":"hash"]:i.map}},776(t,e,i){var n=i(756),o=i(5950);t.exports=function(t){for(var e=o(t),i=e.length;i--;){var s=e[i],r=t[s];e[i]=[s,r,n(r)]}return e}},6110(t,e,i){var n=i(5083),o=i(392);t.exports=function(t,e){var i=o(t,e);return n(i)?i:void 0}},659(t,e,i){var n=i(1873),o=Object.prototype,s=o.hasOwnProperty,r=o.toString,a=n?n.toStringTag:void 0;t.exports=function(t){var e=s.call(t,a),i=t[a];try{t[a]=void 0;var n=!0}catch(t){}var o=r.call(t);return n&&(e?t[a]=i:delete t[a]),o}},4664(t,e,i){var n=i(9770),o=i(3345),s=Object.prototype.propertyIsEnumerable,r=Object.getOwnPropertySymbols,a=r?function(t){return null==t?[]:(t=Object(t),n(r(t),function(e){return s.call(t,e)}))}:o;t.exports=a},5861(t,e,i){var n=i(5580),o=i(8223),s=i(2804),r=i(6545),a=i(8303),l=i(2552),c=i(7473),u="[object Map]",d="[object Promise]",h="[object Set]",p="[object WeakMap]",f="[object DataView]",g=c(n),m=c(o),v=c(s),b=c(r),y=c(a),w=l;(n&&w(new n(new ArrayBuffer(1)))!=f||o&&w(new o)!=u||s&&w(s.resolve())!=d||r&&w(new r)!=h||a&&w(new a)!=p)&&(w=function(t){var e=l(t),i="[object Object]"==e?t.constructor:void 0,n=i?c(i):"";if(n)switch(n){case g:return f;case m:return u;case v:return d;case b:return h;case y:return p}return e}),t.exports=w},392(t){t.exports=function(t,e){return null==t?void 0:t[e]}},5251(t){var e=/\{\n\/\* \[wrapped with (.+)\] \*/,i=/,? & /;t.exports=function(t){var n=t.match(e);return n?n[1].split(i):[]}},9326(t,e,i){var n=i(1769),o=i(2428),s=i(6449),r=i(361),a=i(294),l=i(7797);t.exports=function(t,e,i){for(var c=-1,u=(e=n(e,t)).length,d=!1;++c<u;){var h=l(e[c]);if(!(d=null!=t&&i(t,h)))break;t=t[h]}return d||++c!=u?d:!!(u=null==t?0:t.length)&&a(u)&&r(h,u)&&(s(t)||o(t))}},2032(t,e,i){var n=i(1042);t.exports=function(){this.__data__=n?n(null):{},this.size=0}},3862(t){t.exports=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}},6721(t,e,i){var n=i(1042),o=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;if(n){var i=e[t];return"__lodash_hash_undefined__"===i?void 0:i}return o.call(e,t)?e[t]:void 0}},2749(t,e,i){var n=i(1042),o=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;return n?void 0!==e[t]:o.call(e,t)}},5749(t,e,i){var n=i(1042);t.exports=function(t,e){var i=this.__data__;return this.size+=this.has(t)?0:1,i[t]=n&&void 0===e?"__lodash_hash_undefined__":e,this}},2060(t){var e=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/;t.exports=function(t,i){var n=i.length;if(!n)return t;var o=n-1;return i[o]=(n>1?"& ":"")+i[o],i=i.join(n>2?", ":" "),t.replace(e,"{\n/* [wrapped with "+i+"] */\n")}},5891(t,e,i){var n=i(1873),o=i(2428),s=i(6449),r=n?n.isConcatSpreadable:void 0;t.exports=function(t){return s(t)||o(t)||!!(r&&t&&t[r])}},361(t){var e=/^(?:0|[1-9]\d*)$/;t.exports=function(t,i){var n=typeof t;return!!(i=null==i?9007199254740991:i)&&("number"==n||"symbol"!=n&&e.test(t))&&t>-1&&t%1==0&&t<i}},8586(t,e,i){var n=i(6449),o=i(4394),s=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,r=/^\w*$/;t.exports=function(t,e){if(n(t))return!1;var i=typeof t;return!("number"!=i&&"symbol"!=i&&"boolean"!=i&&null!=t&&!o(t))||(r.test(t)||!s.test(t)||null!=e&&t in Object(e))}},4218(t){t.exports=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}},5087(t,e,i){var n=i(980),o=i(7381),s=i(2284),r=i(3758);t.exports=function(t){var e=s(t),i=r[e];if("function"!=typeof i||!(e in n.prototype))return!1;if(t===i)return!0;var a=o(i);return!!a&&t===a[0]}},7296(t,e,i){var n,o=i(5481),s=(n=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"";t.exports=function(t){return!!s&&s in t}},5527(t){var e=Object.prototype;t.exports=function(t){var i=t&&t.constructor;return t===("function"==typeof i&&i.prototype||e)}},756(t,e,i){var n=i(3805);t.exports=function(t){return t==t&&!n(t)}},3702(t){t.exports=function(){this.__data__=[],this.size=0}},80(t,e,i){var n=i(6025),o=Array.prototype.splice;t.exports=function(t){var e=this.__data__,i=n(e,t);return!(i<0)&&(i==e.length-1?e.pop():o.call(e,i,1),--this.size,!0)}},4739(t,e,i){var n=i(6025);t.exports=function(t){var e=this.__data__,i=n(e,t);return i<0?void 0:e[i][1]}},8655(t,e,i){var n=i(6025);t.exports=function(t){return n(this.__data__,t)>-1}},1175(t,e,i){var n=i(6025);t.exports=function(t,e){var i=this.__data__,o=n(i,t);return o<0?(++this.size,i.push([t,e])):i[o][1]=e,this}},3040(t,e,i){var n=i(1549),o=i(79),s=i(8223);t.exports=function(){this.size=0,this.__data__={hash:new n,map:new(s||o),string:new n}}},7670(t,e,i){var n=i(2651);t.exports=function(t){var e=n(this,t).delete(t);return this.size-=e?1:0,e}},289(t,e,i){var n=i(2651);t.exports=function(t){return n(this,t).get(t)}},4509(t,e,i){var n=i(2651);t.exports=function(t){return n(this,t).has(t)}},2949(t,e,i){var n=i(2651);t.exports=function(t,e){var i=n(this,t),o=i.size;return i.set(t,e),this.size+=i.size==o?0:1,this}},317(t){t.exports=function(t){var e=-1,i=Array(t.size);return t.forEach(function(t,n){i[++e]=[n,t]}),i}},7197(t){t.exports=function(t,e){return function(i){return null!=i&&(i[t]===e&&(void 0!==e||t in Object(i)))}}},2224(t,e,i){var n=i(104);t.exports=function(t){var e=n(t,function(t){return 500===i.size&&i.clear(),t}),i=e.cache;return e}},3209(t,e,i){var n=i(1596),o=i(3320),s=i(6306),r="__lodash_placeholder__",a=128,l=Math.min;t.exports=function(t,e){var i=t[1],c=e[1],u=i|c,d=u<131,h=c==a&&8==i||c==a&&256==i&&t[7].length<=e[8]||384==c&&e[7].length<=e[8]&&8==i;if(!d&&!h)return t;1&c&&(t[2]=e[2],u|=1&i?0:4);var p=e[3];if(p){var f=t[3];t[3]=f?n(f,p,e[4]):p,t[4]=f?s(t[3],r):e[4]}return(p=e[5])&&(f=t[5],t[5]=f?o(f,p,e[6]):p,t[6]=f?s(t[5],r):e[6]),(p=e[7])&&(t[7]=p),c&a&&(t[8]=null==t[8]?e[8]:l(t[8],e[8])),null==t[9]&&(t[9]=e[9]),t[0]=e[0],t[1]=u,t}},8152(t,e,i){var n=i(8303),o=n&&new n;t.exports=o},1042(t,e,i){var n=i(6110)(Object,"create");t.exports=n},3650(t,e,i){var n=i(4335)(Object.keys,Object);t.exports=n},6009(t,e,i){t=i.nmd(t);var n=i(4840),o=e&&!e.nodeType&&e,s=o&&t&&!t.nodeType&&t,r=s&&s.exports===o&&n.process,a=function(){try{var t=s&&s.require&&s.require("util").types;return t||r&&r.binding&&r.binding("util")}catch(t){}}();t.exports=a},9350(t){var e=Object.prototype.toString;t.exports=function(t){return e.call(t)}},4335(t){t.exports=function(t,e){return function(i){return t(e(i))}}},6757(t,e,i){var n=i(1033),o=Math.max;t.exports=function(t,e,i){return e=o(void 0===e?t.length-1:e,0),function(){for(var s=arguments,r=-1,a=o(s.length-e,0),l=Array(a);++r<a;)l[r]=s[e+r];r=-1;for(var c=Array(e+1);++r<e;)c[r]=s[r];return c[e]=i(l),n(t,this,c)}}},4629(t){t.exports={}},8294(t,e,i){var n=i(3007),o=i(361),s=Math.min;t.exports=function(t,e){for(var i=t.length,r=s(e.length,i),a=n(t);r--;){var l=e[r];t[r]=o(l,i)?a[l]:void 0}return t}},6306(t){var e="__lodash_placeholder__";t.exports=function(t,i){for(var n=-1,o=t.length,s=0,r=[];++n<o;){var a=t[n];a!==i&&a!==e||(t[n]=e,r[s++]=n)}return r}},9325(t,e,i){var n=i(4840),o="object"==typeof self&&self&&self.Object===Object&&self,s=n||o||Function("return this")();t.exports=s},1380(t){t.exports=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this}},1459(t){t.exports=function(t){return this.__data__.has(t)}},4641(t,e,i){var n=i(8882),o=i(1811)(n);t.exports=o},4247(t){t.exports=function(t){var e=-1,i=Array(t.size);return t.forEach(function(t){i[++e]=t}),i}},2865(t,e,i){var n=i(9570),o=i(1811)(n);t.exports=o},981(t,e,i){var n=i(5251),o=i(2060),s=i(2865),r=i(5948);t.exports=function(t,e,i){var a=e+"";return s(t,o(a,r(n(a),i)))}},1811(t){var e=Date.now;t.exports=function(t){var i=0,n=0;return function(){var o=e(),s=16-(o-n);if(n=o,s>0){if(++i>=800)return arguments[0]}else i=0;return t.apply(void 0,arguments)}}},1420(t,e,i){var n=i(79);t.exports=function(){this.__data__=new n,this.size=0}},938(t){t.exports=function(t){var e=this.__data__,i=e.delete(t);return this.size=e.size,i}},3605(t){t.exports=function(t){return this.__data__.get(t)}},9817(t){t.exports=function(t){return this.__data__.has(t)}},945(t,e,i){var n=i(79),o=i(8223),s=i(3661);t.exports=function(t,e){var i=this.__data__;if(i instanceof n){var r=i.__data__;if(!o||r.length<199)return r.push([t,e]),this.size=++i.size,this;i=this.__data__=new s(r)}return i.set(t,e),this.size=i.size,this}},6959(t){t.exports=function(t,e,i){for(var n=i-1,o=t.length;++n<o;)if(t[n]===e)return n;return-1}},1802(t,e,i){var n=i(2224),o=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,s=/\\(\\)?/g,r=n(function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(o,function(t,i,n,o){e.push(n?o.replace(s,"$1"):i||t)}),e});t.exports=r}
vendor: 3,342 bytes, line 2
2,7797(t,e,i){var n=i(4394);t.exports=function(t){if("string"==typeof t||n(t))return t;var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}},7473(t){var e=Function.prototype.toString;t.exports=function(t){if(null!=t){try{return e.call(t)}catch(t){}try{return t+""}catch(t){}}return""}},1800(t){var e=/\s/;t.exports=function(t){for(var i=t.length;i--&&e.test(t.charAt(i)););return i}},5948(t,e,i){var n=i(3729),o=i(5325),s=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]];t.exports=function(t,e){return n(s,function(i){var n="_."+i[0];e&i[1]&&!o(t,n)&&t.push(n)}),t.sort()}},257(t,e,i){var n=i(980),o=i(6017),s=i(3007);t.exports=function(t){if(t instanceof n)return t.clone();var e=new o(t.__wrapped__,t.__chain__);return e.__actions__=s(t.__actions__),e.__index__=t.__index__,e.__values__=t.__values__,e}},2730(t,e,i){var n=i(1489);t.exports=function(t,e){if("function"!=typeof e)throw new TypeError("Expected a function");return t=n(t),function(){if(--t<1)return e.apply(this,arguments)}}},4626(t,e,i){var n=i(6977);t.exports=function(t,e,i){return e=i?void 0:e,e=t&&null==e?t.length:e,n(t,128,void 0,void 0,void 0,void 0,e)}},2177(t,e,i){var n=i(1489);t.exports=function(t,e){var i;if("function"!=typeof e)throw new TypeError("Expected a function");return t=n(t),function(){return--t>0&&(i=e.apply(this,arguments)),t<=1&&(e=void 0),i}}},9729(t,e,i){var n=i(9302),o=i(6977),s=i(1287),r=i(6306),a=n(function(t,e,i){var n=1;if(i.length){var l=r(i,s(a));n|=32}return o(t,n,e,i,l)});a.placeholder={},t.exports=a},9006(t,e,i){var n=i(9302),o=i(6977),s=i(1287),r=i(6306),a=n(function(t,e,i){var n=3;if(i.length){var l=r(i,s(a));n|=32}return o(e,n,t,i,l)});a.placeholder={},t.exports=a},7334(t){t.exports=function(t){return function(){return t}}},9747(t,e,i){var n=i(6977);function o(t,e,i){var s=n(t,8,void 0,void 0,void 0,void 0,void 0,e=i?void 0:e);return s.placeholder=o.placeholder,s}o.placeholder={},t.exports=o},825(t,e,i){var n=i(6977);function o(t,e,i){var s=n(t,16,void 0,void 0,void 0,void 0,void 0,e=i?void 0:e);return s.placeholder=o.placeholder,s}o.placeholder={},t.exports=o},8221(t,e,i){var n=i(3805),o=i(124),s=i(9374),r=Math.max,a=Math.min;t.exports=function(t,e,i){var l,c,u,d,h,p,f=0,g=!1,m=!1,v=!0;if("function"!=typeof t)throw new TypeError("Expected a function");function b(e){var i=l,n=c;return l=c=void 0,f=e,d=t.apply(n,i)}function y(t){var i=t-p;return void 0===p||i>=e||i<0||m&&t-f>=u}function w(){var t=o();if(y(t))return x(t);h=setTimeout(w,function(t){var i=e-(t-p);return m?a(i,u-(t-f)):i}(t))}function x(t){return h=void 0,v&&l?b(t):(l=c=void 0,d)}function _(){var t=o(),i=y(t);if(l=arguments,c=this,p=t,i){if(void 0===h)return function(t){return f=t,h=setTimeout(w,e),g?b(t):d}(p);if(m)return clearTimeout(h),h=setTimeout(w,e),b(p)}return void 0===h&&(h=setTimeout(w,e)),d}return e=s(e)||0,n(i)&&(g=!!i.leading,u=(m="maxWait"in i)?r(s(i.maxWait)||0,e):u,v="trailing"in i?!!i.trailing:v),_.cancel=function(){void 0!==h&&clearTimeout(h),f=0,l=p=c=h=void 0},_.flush=function(){return void 0===h?d:x(o())},_}},4112(t,e,i){var n=i(85),o=i(9302)(function(t,e){return n(t,1,e)});t.exports=o},895(t,e,i){var n=i(85),o=i(9302),s=i(9374),r=o(function(t,e,i){return n(t,s(e)||0,i)});t.exports=r},5288(t){t.exports=function(t,e){return t===e||t!=t&&e!=e}}
vendor: 2,335 bytes, line 2
2,5970(t,e,i){var n=i(3120);t.exports=function(t){return(null==t?0:t.length)?n(t,1):[]}},7577(t,e,i){var n=i(6977);t.exports=function(t){return n(t,512)}},5562(t,e,i){t.exports={after:i(2730),ary:i(4626),before:i(2177),bind:i(9729),bindKey:i(9006),curry:i(9747),curryRight:i(825),debounce:i(8221),defer:i(4112),delay:i(895),flip:i(7577),memoize:i(104),negate:i(6048),once:i(8059),overArgs:i(2645),partial:i(9181),partialRight:i(7055),rearg:i(4195),rest:i(6636),spread:i(2945),throttle:i(7350),unary:i(8543),wrap:i(6150)}},8156(t,e,i){var n=i(7422);t.exports=function(t,e,i){var o=null==t?void 0:n(t,e);return void 0===o?i:o}},631(t,e,i){var n=i(8077),o=i(9326);t.exports=function(t,e){return null!=t&&o(t,e,n)}},3488(t){t.exports=function(t){return t}},2428(t,e,i){var n=i(7534),o=i(346),s=Object.prototype,r=s.hasOwnProperty,a=s.propertyIsEnumerable,l=n(function(){return arguments}())?n:function(t){return o(t)&&r.call(t,"callee")&&!a.call(t,"callee")};t.exports=l},6449(t){var e=Array.isArray;t.exports=e},4894(t,e,i){var n=i(1882),o=i(294);t.exports=function(t){return null!=t&&o(t.length)&&!n(t)}},3656(t,e,i){t=i.nmd(t);var n=i(9325),o=i(9935),s=e&&!e.nodeType&&e,r=s&&t&&!t.nodeType&&t,a=r&&r.exports===s?n.Buffer:void 0,l=(a?a.isBuffer:void 0)||o;t.exports=l},1882(t,e,i){var n=i(2552),o=i(3805);t.exports=function(t){if(!o(t))return!1;var e=n(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}},294(t){t.exports=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}},3805(t){t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},346(t){t.exports=function(t){return null!=t&&"object"==typeof t}},4394(t,e,i){var n=i(2552),o=i(346);t.exports=function(t){return"symbol"==typeof t||o(t)&&"[object Symbol]"==n(t)}},7167(t,e,i){var n=i(4901),o=i(7301),s=i(6009),r=s&&s.isTypedArray,a=r?o(r):n;t.exports=a},5950(t,e,i){var n=i(695),o=i(8984),s=i(4894);t.exports=function(t){return s(t)?n(t):o(t)}},104(t,e,i){var n=i(3661);function o(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var i=function(){var n=arguments,o=e?e.apply(this,n):n[0],s=i.cache;if(s.has(o))return s.get(o);var r=t.apply(this,n);return i.cache=s.set(o,r)||s,r};return i.cache=new(o.Cache||n),i}
2o.Cache=n,t.exports=o},6048(t){t.exports=function(t){if("function"!=typeof t)throw new TypeError("Expected a function");return function(){var e=arguments;switch(e.length){case 0:return!t.call(this);case 1:return!t.call(this,e[0]);case 2:return!t.call(this,e[0],e[1]);case 3:return!t.call(this,e[0],e[1],e[2])}return!t.apply(this,e)}}},3950(t){t.exports=function(){}},124(t,e,i){var n=i(9325);t.exports=function(){return n.Date.now()}},8059(t,e,i){var n=i(2177);t.exports=function(t){return n(2,t)}},2645(t,e,i){var n=i(1033),o=i(4932),s=i(3120),r=i(5389),a=i(9302),l=i(7301),c=i(244),u=i(6449),d=Math.min,h=c(function(t,e){var i=(e=1==e.length&&u(e[0])?o(e[0],l(r)):o(s(e,1),l(r))).length;return a(function(o){for(var s=-1,r=d(o.length,i);++s<r;)o[s]=e[s].call(this,o[s]);return n(t,this,o)})});t.exports=h},9181(t,e,i){var n=i(9302),o=i(6977),s=i(1287),r=i(6306),a=n(function(t,e){var i=r(e,s(a));return o(t,32,void 0,e,i)});a.placeholder={},t.exports=a},7055(t,e,i){var n=i(9302),o=i(6977),s=i(1287),r=i(6306),a=n(function(t,e){var i=r(e,s(a));return o(t,64,void 0,e,i)});a.placeholder={},t.exports=a},583(t,e,i){var n=i(7237),o=i(7255),s=i(8586),r=i(7797);t.exports=function(t){return s(t)?n(r(t)):o(t)}},4195(t,e,i){var n=i(6977),o=i(8816),s=o(function(t,e){return n(t,256,void 0,void 0,void 0,e)});t.exports=s},6636(t,e,i){var n=i(9302),o=i(1489);t.exports=function(t,e){if("function"!=typeof t)throw new TypeError("Expected a function");return e=void 0===e?e:o(e),n(t,e)}},2945(t,e,i){var n=i(1033),o=i(4528),s=i(9302),r=i(8754),a=i(1489),l=Math.max;t.exports=function(t,e){if("function"!=typeof t)throw new TypeError("Expected a function");return e=null==e?0:l(a(e),0),s(function(i){var s=i[e],a=r(i,0,e);return s&&o(a,s),n(t,this,a)})}},3345(t){t.exports=function(){return[]}},9935(t){t.exports=function(){return!1}},7350(t,e,i){var n=i(8221),o=i(3805);t.exports=function(t,e,i){var s=!0,r=!0;if("function"!=typeof t)throw new TypeError("Expected a function");return o(i)&&(s="leading"in i?!!i.leading:s,r="trailing"in i?!!i.trailing:r),n(t,e,{leading:s,maxWait:e,trailing:r})}},7400(t,e,i){var n=i(9374),o=1/0;t.exports=function(t){return t?(t=n(t))===o||t===-1/0?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0}},1489(t,e,i){var n=i(7400);t.exports=function(t){var e=n(t),i=e%1;return e==e?i?e-i:e:0}},9374(t,e,i){var n=i(4128),o=i(3805),s=i(4394),r=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,l=/^0o[0-7]+$/i,c=parseInt;t.exports=function(t){if("number"==typeof t)return t;if(s(t))return NaN;if(o(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=o(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=n(t);var i=a.test(t);return i||l.test(t)?c(t.slice(2),i?2:8):r.test(t)?NaN:+t}},3222(t,e,i){var n=i(7556);t.exports=function(t){return null==t?"":n(t)}},8543(t,e,i){var n=i(4626);t.exports=function(t){return n(t,1)}},6150(t,e,i){var n=i(4066),o=i(9181);t.exports=function(t,e){return o(n(e),t)}},3758(t,e,i){var n=i(980),o=i(6017),s=i(4033),r=i(6449),a=i(346),l=i(257),c=Object.prototype.hasOwnProperty;function u(t){if(a(t)&&!r(t)&&!(t instanceof n)){if(t instanceof o)return t;if(c.call(t,"__wrapped__"))return l(t)}return new o(t)}u.prototype=s.prototype,u.prototype.constructor=u,t.exports=u},7371(t){t.exports=function(){"use strict";function t(t,e){t.split(/\s+/).forEach(t=>{e(t)})}class e{constructor(){this._events=void 0,this._events={}}on(e,i){t(e,t=>{const e=this._events[t]||[];e.push(i),this._events[t]=e})}off(e,i){var n=arguments.length;0!==n?t(e,t=>{if(1===n)return void delete this._events[t];const e=this._events[t];void 0!==e&&(e.splice(e.indexOf(i),1),this._events[t]=e)}):this._events={}}trigger(e,...i){var n=this;t(e,t=>{const e=n._events[t];void 0!==e&&e.forEach(t=>{t.apply(n,i)})})}}function i(t){return t.plugins={},class extends t{constructor(...t){super(...t),this.plugins={names:[],settings:{},requested:{},loaded:{}}}static define(e,i){t.plugins[e]={name:e,fn:i}}initializePlugins(t){var e,i;const n=this,o=[];if(Array.isArray(t))t.forEach(t=>{"string"==typeof t?o.push(t):(n.plugins.settings[t.name]=t.options,o.push(t.name))});else if(t)for(e in t)t.hasOwnProperty(e)&&(n.plugins.settings[e]=t[e],o.push(e));for(;i=o.shift();)n.require(i)}loadPlugin(e){var i=this,n=i.plugins,o=t.plugins[e];if(!t.plugins.hasOwnProperty(e))throw new Error('Unable to find "'+e+'" plugin');n.requested[e]=!0,n.loaded[e]=o.fn.apply(i,[i.plugins.settings[e]||{}]),n.names.push(e)}require(t){var e=this,i=e.plugins;if(!e.plugins.loaded.hasOwnProperty(t)){if(i.requested[t])throw new Error('Plugin has circular dependency ("'+t+'")');e.loadPlugin(t)}return i.loaded[t]}}}const n=t=>(t=t.filter(Boolean)).length<2?t[0]||"":1==l(t)?"["+t.join("")+"]":"(?:"+t.join("|")+")",o=t=>{if(!r(t))return t.join("");let e="",i=0;const n=()=>{i>1&&(e+="{"+i+"}")};return t.forEach((o,s)=>{o!==t[s-1]?(n(),e+=o,i=1):i++}),n(),e},s=t=>{let e=u(t);return n(e)},r=t=>new Set(t).size!==t.length,a=t=>(t+"").replace(/([\$\(\)\*\+\.\?\[\]\^\{\|\}\\])/gu,"\\$1"),l=t=>t.reduce((t,e)=>Math.max(t,c(e)),0),c=t=>u(t).length,u=t=>Array.from(t),d=t=>{if(1===t.length)return[[t]];let e=[];const i=t.substring(1);
vendor: 23,305 bytes, line 2
2return d(i).forEach(function(i){let n=i.slice(0);n[0]=t.charAt(0)+n[0],e.push(n),n=i.slice(0),n.unshift(t.charAt(0)),e.push(n)}),e},h=[[0,65535]],p="[Ì-ͯ·ʾʼ]";let f,g;const m=3,v={},b={"/":"ââ",0:"ß",a:"â±¥ÉÉ",aa:"ê³",ae:"æǽǣ",ao:"êµ",au:"ê·",av:"ê¹ê»",ay:"ê½",b:"ÆÉÆ",c:"ê¿ÆÈ¼â",d:"ÄÉÉá´
Æê®·Ôɦ",e:"ÉÇá´É",f:"ê¼Æ",g:"Ç¥É ê¡áµ¹ê¿É¢",h:"ħⱨⱶɥ",i:"ɨı",j:"ÉÈ·",k:"Æâ±ªêêê
ê£",l:"ÅÆÉ«â±¡êêêÉ",m:"ɱɯϻ",n:"ê¥ÆÉ²êá´Ð»Ô",o:"øǿÉɵêêá´",oe:"Å",oi:"Æ£",oo:"ê",ou:"È£",p:"ƥᵽêêêÏ",q:"êêÉ",r:"Éɽêê§ê",s:"ÃÈ¿ê©ê
Ê",t:"ŧÆÊⱦê",th:"þ",tz:"ê©",u:"Ê",v:"ÊêÊ",vy:"ê¡",w:"â±³",y:"Æ´Éỿ",z:"ƶȥÉⱬê£",hv:"Æ"};for(let t in b){let e=b[t]||"";for(let i=0;i<e.length;i++){let n=e.substring(i,i+1);v[n]=t}}const y=new RegExp(Object.keys(v).join("|")+"|"+p,"gu"),w=t=>{void 0===f&&(f=C(t||h))},x=(t,e="NFKD")=>t.normalize(e),_=t=>u(t).reduce((t,e)=>t+O(e),""),O=t=>(t=x(t).toLowerCase().replace(y,t=>v[t]||""),x(t,"NFC"));function*E(t){for(const[e,i]of t)for(let t=e;t<=i;t++){let e=String.fromCharCode(t),i=_(e);i!=e.toLowerCase()&&(i.length>m||0!=i.length&&(yield{folded:i,composed:e,code_point:t}))}}const S=t=>{const e={},i=(t,i)=>{const n=e[t]||new Set,o=new RegExp("^"+s(n)+"$","iu");i.match(o)||(n.add(a(i)),e[t]=n)};for(let e of E(t))i(e.folded,e.folded),i(e.folded,e.composed);return e},C=t=>{const e=S(t),i={};let o=[];for(let t in e){let n=e[t];n&&(i[t]=s(n)),t.length>1&&o.push(a(t))}o.sort((t,e)=>e.length-t.length);const r=n(o);return g=new RegExp("^"+r,"u"),i},T=(t,e=1)=>{let i=0;return t=t.map(t=>(f[t]&&(i+=t.length),f[t]||t)),i>=e?o(t):""},A=(t,e=1)=>(e=Math.max(e,t.length-1),n(d(t).map(t=>T(t,e)))),P=(t,e=!0)=>{let i=t.length>1?1:0;return n(t.map(t=>{let n=[];const s=e?t.length():t.length()-1;for(let e=0;e<s;e++)n.push(A(t.substrs[e]||"",i));return o(n)}))},M=(t,e)=>{for(const i of e){if(i.start!=t.start||i.end!=t.end)continue;if(i.substrs.join("")!==t.substrs.join(""))continue;let e=t.parts;const n=t=>{for(const i of e){if(i.start===t.start&&i.substr===t.substr)return!1;if(1!=t.length&&1!=i.length){if(t.start<i.start&&t.end>i.start)return!0;if(i.start<t.start&&i.end>t.start)return!0}}return!1};if(!(i.parts.filter(n).length>0))return!0}return!1};class L{constructor(){this.parts=[],this.substrs=[],this.start=0,this.end=0}add(t){t&&(this.parts.push(t),this.substrs.push(t.substr),this.start=Math.min(t.start,this.start),this.end=Math.max(t.end,this.end))}last(){return this.parts[this.parts.length-1]}length(){return this.parts.length}clone(t,e){let i=new L,n=JSON.parse(JSON.stringify(this.parts)),o=n.pop();for(const t of n)i.add(t);let s=e.substr.substring(0,t-o.start),r=s.length;return i.add({start:o.start,end:o.start+r,length:r,substr:s}),i}}const k=t=>{w(),t=_(t);let e="",i=[new L];for(let n=0;n<t.length;n++){let o=t.substring(n).match(g);const s=t.substring(n,n+1),r=o?o[0]:null;let a=[],l=new Set;for(const t of i){const e=t.last();if(!e||1==e.length||e.end<=n)if(r){const e=r.length;t.add({start:n,end:n+e,length:e,substr:r}),l.add("1")}else t.add({start:n,end:n+1,length:1,substr:s}),l.add("2");else if(r){let i=t.clone(n,e);const o=r.length;i.add({start:n,end:n+o,length:o,substr:r}),a.push(i)}else l.add("3")}if(a.length>0){a=a.sort((t,e)=>t.length()-e.length());for(let t of a)M(t,i)||i.push(t)}else if(n>0&&1==l.size&&!l.has("3")){e+=P(i,!1);let t=new L;const n=i[0];n&&t.add(n.last()),i=[t]}}return e+=P(i,!0),e},I=(t,e)=>{if(t)return t[e]},j=(t,e)=>{if(t){for(var i,n=e.split(".");(i=n.shift())&&(t=t[i]););return t}},F=(t,e,i)=>{var n,o;return t?(t+="",null==e.regex||-1===(o=t.search(e.regex))?0:(n=e.string.length/t.length,0===o&&(n+=.5),n*i)):0},D=(t,e)=>{var i=t[e];if("function"==typeof i)return i;i&&!Array.isArray(i)&&(t[e]=[i])},z=(t,e)=>{if(Array.isArray(t))t.forEach(e);else for(var i in t)t.hasOwnProperty(i)&&e(t[i],i)},R=(t,e)=>"number"==typeof t&&"number"==typeof e?t>e?1:t<e?-1:0:(t=_(t+"").toLowerCase())>(e=_(e+"").toLowerCase())?1:e>t?-1:0;class N{constructor(t,e){this.items=void 0,this.settings=void 0,this.items=t,this.settings=e||{diacritics:!0}}tokenize(t,e,i){if(!t||!t.length)return[];const n=[],o=t.split(/\s+/);var s;return i&&(s=new RegExp("^("+Object.keys(i).map(a).join("|")+"):(.*)$")),o.forEach(t=>{let i,o=null,r=null;s&&(i=t.match(s))&&(o=i[1],t=i[2]),t.length>0&&(r=this.settings.diacritics?k(t)||null:a(t),r&&e&&(r="\\b"+r)),n.push({string:t,regex:r?new RegExp(r,"iu"):null,field:o})}),n}getScoreFunction(t,e){var i=this.prepareSearch(t,e);return this._getScoreFunction(i)}_getScoreFunction(t){const e=t.tokens,i=e.length;if(!i)return function(){return 0};const n=t.options.fields,o=t.weights,s=n.length,r=t.getAttrFn;if(!s)return function(){return 1};const a=1===s?function(t,e){const i=n[0].field;return F(r(e,i),t,o[i]||1)}:function(t,e){var i=0;if(t.field){const n=r(e,t.field);!t.regex&&n?i+=1/s:i+=F(n,t,1)}else z(o,(n,o)=>{i+=F(r(e,o),t,n)});return i/s};return 1===i?function(t){return a(e[0],t)}:"and"===t.options.conjunction?function(t){var n,o=0;for(let i of e){if((n=a(i,t))<=0)return 0;o+=n}return o/i}:function(t){var n=0;return z(e,e=>{n+=a(e,t)}),n/i}}getSortFunction(t,e){var i=this.prepareSearch(t,e);return this._getSortFunction(i)}_getSortFunction(t){var e,i=[];const n=this,o=t.options,s=!t.query&&o.sort_empty?o.sort_empty:o.sort;if("function"==typeof s)return s.bind(this);const r=function(e,i){return"$score"===e?i.score:t.getAttrFn(n.items[i.id],e)};if(s)for(let e of s)(t.query||"$score"!==e.field)&&i.push(e);if(t.query){e=!0;for(let t of i)if("$score"===t.field){e=!1;break}e&&i.unshift({field:"$score",direction:"desc"})}else i=i.filter(t=>"$score"!==t.field);return i.length?function(t,e){var n,o;for(let s of i)if(o=s.field,n=("desc"===s.direction?-1:1)*R(r(o,t),r(o,e)))return n;return 0}:null}prepareSearch(t,e){const i={};var n=Object.assign({},e);if(D(n,"sort"),D(n,"sort_empty"),n.fields){D(n,"fields");const t=[];n.fields.forEach(e=>{"string"==typeof e&&(e={field:e,weight:1}),t.push(e),i[e.field]="weight"in e?e.weight:1}),n.fields=t}return{options:n,query:t.toLowerCase().trim(),tokens:this.tokenize(t,n.respect_word_boundaries,i),total:0,items:[],weights:i,getAttrFn:n.nesting?j:I}}search(t,e){var i,n,o=this;n=this.prepareSearch(t,e),e=n.options,t=n.query;const s=e.score||o._getScoreFunction(n);t.length?z(o.items,(t,o)=>{i=s(t),(!1===e.filter||i>0)&&n.items.push({score:i,id:o})}):z(o.items,(t,e)=>{n.items.push({score:1,id:e})});const r=o._getSortFunction(n);return r&&n.items.sort(r),n.total=n.items.length,"number"==typeof e.limit&&(n.items=n.items.slice(0,e.limit)),n}}const $=(t,e)=>{if(Array.isArray(t))t.forEach(e);else for(var i in t)t.hasOwnProperty(i)&&e(t[i],i)},H=t=>{if(t.jquery)return t[0];if(t instanceof HTMLElement)return t;if(B(t)){var e=document.createElement("template");return e.innerHTML=t.trim(),e.content.firstChild}return document.querySelector(t)},B=t=>"string"==typeof t&&t.indexOf("<")>-1,V=t=>t.replace(/['"\\]/g,"\\$&"),q=(t,e)=>{var i=document.createEvent("HTMLEvents");i.initEvent(e,!0,!1),t.dispatchEvent(i)},W=(t,e)=>{Object.assign(t.style,e)},X=(t,...e)=>{var i=U(e);(t=Z(t)).map(t=>{i.map(e=>{t.classList.add(e)})})},Y=(t,...e)=>{var i=U(e);(t=Z(t)).map(t=>{i.map(e=>{t.classList.remove(e)})})},U=t=>{var e=[];return $(t,t=>{"string"==typeof t&&(t=t.trim().split(/[\11\12\14\15\40]/)),Array.isArray(t)&&(e=e.concat(t))}),e.filter(Boolean)},Z=t=>(Array.isArray(t)||(t=[t]),t),G=(t,e,i)=>{if(!i||i.contains(t))for(;t&&t.matches;){if(t.matches(e))return t;t=t.parentNode}},K=(t,e=0)=>e>0?t[t.length-1]:t[0],Q=t=>0===Object.keys(t).length,J=(t,e)=>{if(!t)return-1;e=e||t.nodeName;for(var i=0;t=t.previousElementSibling;)t.matches(e)&&i++;return i},tt=(t,e)=>{$(e,(e,i)=>{null==e?t.removeAttribute(i):t.setAttribute(i,""+e)})},et=(t,e)=>{t.parentNode&&t.parentNode.replaceChild(e,t)},it=(t,e)=>{if(null===e)return;if("string"==typeof e){if(!e.length)return;e=new RegExp(e,"i")}const i=t=>{var i=t.data.match(e);if(i&&t.data.length>0){var n=document.createElement("span");n.className="highlight";var o=t.splitText(i.index);o.splitText(i[0].length);var s=o.cloneNode(!0);return n.appendChild(s),et(o,n),1}return 0},n=t=>{1!==t.nodeType||!t.childNodes||/(script|style)/i.test(t.tagName)||"highlight"===t.className&&"SPAN"===t.tagName||Array.from(t.childNodes).forEach(t=>{o(t)})},o=t=>3===t.nodeType?i(t):(n(t),0);o(t)},nt=t=>{var e=t.querySelectorAll("span.highlight");Array.prototype.forEach.call(e,function(t){var e=t.parentNode;e.replaceChild(t.firstChild,t),e.normalize()})},ot=65,st=13,rt=27,at=37,lt=38,ct=39,ut=40,dt=8,ht=46,pt=9,ft="undefined"!=typeof navigator&&/Mac/.test(navigator.userAgent)?"metaKey":"ctrlKey";var gt={options:[],optgroups:[],plugins:[],delimiter:",",splitOn:null,persist:!0,diacritics:!0,create:null,createOnBlur:!1,createFilter:null,highlight:!0,openOnFocus:!0,shouldOpen:null,maxOptions:50,maxItems:null,hideSelected:null,duplicates:!1,addPrecedence:!1,selectOnTab:!1,preload:null,allowEmptyOption:!1,refreshThrottle:300,loadThrottle:300,loadingClass:"loading",dataAttr:null,optgroupField:"optgroup",valueField:"value",labelField:"text",disabledField:"disabled",optgroupLabelField:"label",optgroupValueField:"value",lockOptgroupOrder:!1,sortField:"$order",searchField:["text"],searchConjunction:"and",mode:null,wrapperClass:"ts-wrapper",controlClass:"ts-control",dropdownClass:"ts-dropdown",dropdownContentClass:"ts-dropdown-content",itemClass:"item",optionClass:"option",dropdownParent:null,controlInput:'<input type="text" autocomplete="off" size="1" />',copyClassesToDropdown:!1,placeholder:null,hidePlaceholder:null,shouldLoad:function(t){return t.length>0},render:{}};const mt=t=>null==t?null:vt(t),vt=t=>"boolean"==typeof t?t?"1":"0":t+"",bt=t=>(t+"").replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,"""),yt=(t,e)=>e>0?setTimeout(t,e):(t.call(null),null),wt=(t,e)=>{var i;return function(n,o){var s=this;i&&(s.loading=Math.max(s.loading-1,0),clearTimeout(i)),i=setTimeout(function(){i=null,s.loadedSearches[n]=!0,t.call(s,n,o)},e)}},xt=(t,e,i)=>{var n,o=t.trigger,s={};for(n of(t.trigger=function(){var i=arguments[0];if(-1===e.indexOf(i))return o.apply(t,arguments);s[i]=arguments},i.apply(t,[]),t.trigger=o,e))n in s&&o.apply(t,s[n])},_t=t=>({start:t.selectionStart||0,length:(t.selectionEnd||0)-(t.selectionStart||0)}),Ot=(t,e=!1)=>{t&&(t.preventDefault(),e&&t.stopPropagation())},Et=(t,e,i,n)=>{t.addEventListener(e,i,n)},St=(t,e)=>!!e&&!!e[t]&&1==(e.altKey?1:0)+(e.ctrlKey?1:0)+(e.shiftKey?1:0)+(e.metaKey?1:0),Ct=(t,e)=>{const i=t.getAttribute("id");return i||(t.setAttribute("id",e),e)},Tt=t=>t.replace(/[\\"']/g,"\\$&"),At=(t,e)=>{e&&t.append(e)};function Pt(t,e){var i=Object.assign({},gt,e),n=i.dataAttr,o=i.labelField,s=i.valueField,r=i.disabledField,a=i.optgroupField,l=i.optgroupLabelField,c=i.optgroupValueField,u=t.tagName.toLowerCase(),d=t.getAttribute("placeholder")||t.getAttribute("data-placeholder");if(!d&&!i.allowEmptyOption){let e=t.querySelector('option[value=""]');e&&(d=e.textContent)}var h={placeholder:d,options:[],optgroups:[],items:[],maxItems:null},p=()=>{const e=t.getAttribute(n);if(e)h.options=JSON.parse(e),$(h.options,t=>{h.items.push(t[s])});else{var r=t.value.trim()||"";if(!i.allowEmptyOption&&!r.length)return;const e=r.split(i.delimiter);$(e,t=>{const e={};e[o]=t,e[s]=t,h.options.push(e)}),h.items=e}};return"select"===u?(()=>{var e,u=h.options,d={},p=1;let f=0;var g=t=>{var e=Object.assign({},t.dataset),i=n&&e[n];return"string"==typeof i&&i.length&&(e=Object.assign(e,JSON.parse(i))),e},m=(t,e)=>{var n=mt(t.value);if(null!=n&&(n||i.allowEmptyOption)){if(d.hasOwnProperty(n)){if(e){var l=d[n][a];l?Array.isArray(l)?l.push(e):d[n][a]=[l,e]:d[n][a]=e}}else{var c=g(t);c[o]=c[o]||t.textContent,c[s]=c[s]||n,c[r]=c[r]||t.disabled,c[a]=c[a]||e,c.$option=t,c.$order=c.$order||++f,d[n]=c,u.push(c)}t.selected&&h.items.push(n)}},v=t=>{var e,i;(i=g(t))[l]=i[l]||t.getAttribute("label")||"",i[c]=i[c]||p++,i[r]=i[r]||t.disabled,i.$order=i.$order||++f,h.optgroups.push(i),e=i[c],$(t.children,t=>{m(t,e)})};h.maxItems=t.hasAttribute("multiple")?null:1,$(t.children,t=>{"optgroup"===(e=t.tagName.toLowerCase())?v(t):"option"===e&&m(t)})})():p(),Object.assign({},gt,h,e)}var Mt=0;class Lt extends(i(e)){constructor(t,e){var i;super(),this.control_input=void 0,this.wrapper=void 0,this.dropdown=void 0,this.control=void 0,this.dropdown_content=void 0,this.focus_node=void 0,this.order=0,this.settings=void 0,this.input=void 0,this.tabIndex=void 0,this.is_select_tag=void 0,this.rtl=void 0,this.inputId=void 0,this._destroy=void 0,this.sifter=void 0,this.isOpen=!1,this.isDisabled=!1,this.isReadOnly=!1,this.isRequired=void 0,this.isInvalid=!1,this.isValid=!0,this.isLocked=!1,this.isFocused=!1,this.isInputHidden=!1,this.isSetup=!1,this.ignoreFocus=!1,this.ignoreHover=!1,this.hasOptions=!1,this.currentResults=void 0,this.lastValue="",this.caretPos=0,this.loading=0,this.loadedSearches={},this.activeOption=null,this.activeItems=[],this.optgroups={},this.options={},this.userOptions={},this.items=[],this.refreshTimeout=null,Mt++;var n=H(t);if(n.tomselect)throw new Error("Tom Select already initialized on this element");n.tomselect=this,i=(window.getComputedStyle&&window.getComputedStyle(n,null)).getPropertyValue("direction");const o=Pt(n,e);this.settings=o,this.input=n,this.tabIndex=n.tabIndex||0,this.is_select_tag="select"===n.tagName.toLowerCase(),this.rtl=/rtl/i.test(i),this.inputId=Ct(n,"tomselect-"+Mt),this.isRequired=n.required,this.sifter=new N(this.options,{diacritics:o.diacritics}),o.mode=o.mode||(1===o.maxItems?"single":"multi"),"boolean"!=typeof o.hideSelected&&(o.hideSelected="multi"===o.mode),"boolean"!=typeof o.hidePlaceholder&&(o.hidePlaceholder="multi"!==o.mode);var s=o.createFilter;"function"!=typeof s&&("string"==typeof s&&(s=new RegExp(s)),s instanceof RegExp?o.createFilter=t=>s.test(t):o.createFilter=t=>this.settings.duplicates||!this.options[t]),this.initializePlugins(o.plugins),this.setupCallbacks(),this.setupTemplates();const r=H("<div>"),a=H("<div>"),l=this._render("dropdown"),c=H('<div role="listbox" tabindex="-1">'),u=this.input.getAttribute("class")||"",d=o.mode;var h;X(r,o.wrapperClass,u,d),X(a,o.controlClass),At(r,a),X(l,o.dropdownClass,d),o.copyClassesToDropdown&&X(l,u),X(c,o.dropdownContentClass),At(l,c),H(o.dropdownParent||r).appendChild(l),B(o.controlInput)?(h=H(o.controlInput),z(["autocorrect","autocapitalize","autocomplete","spellcheck"],t=>{n.getAttribute(t)&&tt(h,{[t]:n.getAttribute(t)})}),h.tabIndex=-1,a.appendChild(h),this.focus_node=h):o.controlInput?(h=H(o.controlInput),this.focus_node=h):(h=H("<input/>"),this.focus_node=a),this.wrapper=r,this.dropdown=l,this.dropdown_content=c,this.control=a,this.control_input=h,this.setup()}setup(){const t=this,e=t.settings,i=t.control_input,n=t.dropdown,o=t.dropdown_content,s=t.wrapper,r=t.control,l=t.input,c=t.focus_node,u={passive:!0},d=t.inputId+"-ts-dropdown";tt(o,{id:d}),tt(c,{role:"combobox","aria-haspopup":"listbox","aria-expanded":"false","aria-controls":d});const h=Ct(c,t.inputId+"-ts-control"),p="label[for='"+V(t.inputId)+"']",f=document.querySelector(p),g=t.focus.bind(t);if(f){Et(f,"click",g),tt(f,{for:h});const e=Ct(f,t.inputId+"-ts-label");tt(c,{"aria-labelledby":e}),tt(o,{"aria-labelledby":e})}if(s.style.width=l.style.width,t.plugins.names.length){const e="plugin-"+t.plugins.names.join(" plugin-");X([s,n],e)}(null===e.maxItems||e.maxItems>1)&&t.is_select_tag&&tt(l,{multiple:"multiple"}),e.placeholder&&tt(i,{placeholder:e.placeholder}),!e.splitOn&&e.delimiter&&(e.splitOn=new RegExp("\\s*"+a(e.delimiter)+"+\\s*")),e.load&&e.loadThrottle&&(e.load=wt(e.load,e.loadThrottle)),Et(n,"mousemove",()=>{t.ignoreHover=!1}),Et(n,"mouseenter",e=>{var i=G(e.target,"[data-selectable]",n);i&&t.onOptionHover(e,i)},{capture:!0}),Et(n,"click",e=>{const i=G(e.target,"[data-selectable]");i&&(t.onOptionSelect(e,i),Ot(e,!0))}),Et(r,"click",e=>{var n=G(e.target,"[data-ts-item]",r);n&&t.onItemSelect(e,n)?Ot(e,!0):""==i.value&&(t.onClick(),Ot(e,!0))}),Et(c,"keydown",e=>t.onKeyDown(e)),Et(i,"keypress",e=>t.onKeyPress(e)),Et(i,"input",e=>t.onInput(e)),Et(c,"blur",e=>t.onBlur(e)),Et(c,"focus",e=>t.onFocus(e)),Et(i,"paste",e=>t.onPaste(e));const m=e=>{const o=e.composedPath()[0];if(!s.contains(o)&&!n.contains(o))return t.isFocused&&t.blur(),void t.inputState();o==i&&t.isOpen?e.stopPropagation():Ot(e,!0)},v=()=>{t.isOpen&&t.positionDropdown()};Et(document,"mousedown",m),Et(window,"scroll",v,u),Et(window,"resize",v,u),this._destroy=()=>{document.removeEventListener("mousedown",m),window.removeEventListener("scroll",v),window.removeEventListener("resize",v),f&&f.removeEventListener("click",g)},this.revertSettings={innerHTML:l.innerHTML,tabIndex:l.tabIndex},l.tabIndex=-1,l.insertAdjacentElement("afterend",t.wrapper),t.sync(!1),e.items=[],delete e.optgroups,delete e.options,Et(l,"invalid",()=>{t.isValid&&(t.isValid=!1,t.isInvalid=!0,t.refreshState())}),t.updateOriginalInput(),t.refreshItems(),t.close(!1),t.inputState(),t.isSetup=!0,l.disabled?t.disable():l.readOnly?t.setReadOnly(!0):t.enable(),t.on("change",this.onChange),X(l,"tomselected","ts-hidden-accessible"),t.trigger("initialize"),!0===e.preload&&t.preload()}setupOptions(t=[],e=[]){this.addOptions(t),z(e,t=>{this.registerOptionGroup(t)})}setupTemplates(){var t=this,e=t.settings.labelField,i=t.settings.optgroupLabelField,n={optgroup:t=>{let e=document.createElement("div");return e.className="optgroup",e.appendChild(t.options),e},optgroup_header:(t,e)=>'<div class="optgroup-header">'+e(t[i])+"</div>",option:(t,i)=>"<div>"+i(t[e])+"</div>",item:(t,i)=>"<div>"+i(t[e])+"</div>",option_create:(t,e)=>'<div class="create">Add <strong>'+e(t.input)+"</strong>…</div>",no_results:()=>'<div class="no-results">No results found</div>',loading:()=>'<div class="spinner"></div>',not_loading:()=>{},dropdown:()=>"<div></div>"};t.settings.render=Object.assign({},n,t.settings.render)}setupCallbacks(){var t,e,i={initialize:"onInitialize",change:"onChange",item_add:"onItemAdd",item_remove:"onItemRemove",item_select:"onItemSelect",clear:"onClear",option_add:"onOptionAdd",option_remove:"onOptionRemove",option_clear:"onOptionClear",optgroup_add:"onOptionGroupAdd",optgroup_remove:"onOptionGroupRemove",optgroup_clear:"onOptionGroupClear",dropdown_open:"onDropdownOpen",dropdown_close:"onDropdownClose",type:"onType",load:"onLoad",focus:"onFocus",blur:"onBlur"};for(t in i)(e=this.settings[i[t]])&&this.on(t,e)}sync(t=!0){const e=this,i=t?Pt(e.input,{delimiter:e.settings.delimiter}):e.settings;e.setupOptions(i.options,i.optgroups),e.setValue(i.items||[],!0),e.lastQuery=null}onClick(){var t=this;if(t.activeItems.length>0)return t.clearActiveItems(),void t.focus();t.isFocused&&t.isOpen?t.blur():t.focus()}onMouseDown(){}onChange(){q(this.input,"input"),q(this.input,"change")}onPaste(t){var e=this;e.isInputHidden||e.isLocked?Ot(t):e.settings.splitOn&&setTimeout(()=>{var t=e.inputValue();if(t.match(e.settings.splitOn)){var i=t.trim().split(e.settings.splitOn);z(i,t=>{mt(t)&&(this.options[t]?e.addItem(t):e.createItem(t))})}},0)}onKeyPress(t){var e=this;if(!e.isLocked){var i=String.fromCharCode(t.keyCode||t.which);return e.settings.create&&"multi"===e.settings.mode&&i===e.settings.delimiter?(e.createItem(),void Ot(t)):void 0}Ot(t)}onKeyDown(t){var e=this;if(e.ignoreHover=!0,e.isLocked)t.keyCode!==pt&&Ot(t);else{switch(t.keyCode){case ot:if(St(ft,t)&&""==e.control_input.value)return Ot(t),void e.selectAll();break;case rt:return e.isOpen&&(Ot(t,!0),e.close()),void e.clearActiveItems();case ut:if(!e.isOpen&&e.hasOptions)e.open();else if(e.activeOption){let t=e.getAdjacent(e.activeOption,1);t&&e.setActiveOption(t)}return void Ot(t);case lt:if(e.activeOption){let t=e.getAdjacent(e.activeOption,-1);t&&e.setActiveOption(t)}return void Ot(t);case st:return void(e.canSelect(e.activeOption)?(e.onOptionSelect(t,e.activeOption),Ot(t)):(e.settings.create&&e.createItem()||document.activeElement==e.control_input&&e.isOpen)&&Ot(t));case at:return void e.advanceSelection(-1,t);case ct:return void e.advanceSelection(1,t);case pt:return void(e.settings.selectOnTab&&(e.canSelect(e.activeOption)&&(e.onOptionSelect(t,e.activeOption),Ot(t)),e.settings.create&&e.createItem()&&Ot(t)));case dt:case ht:return void e.deleteSelection(t)}e.isInputHidden&&!St(ft,t)&&Ot(t)}}onInput(t){if(this.isLocked)return;const e=this.inputValue();this.lastValue!==e&&(this.lastValue=e,""!=e?(this.refreshTimeout&&clearTimeout(this.refreshTimeout),this.refreshTimeout=yt(()=>{this.refreshTimeout=null,this._onInput()},this.settings.refreshThrottle)):this._onInput())}_onInput(){const t=this.lastValue;this.settings.shouldLoad.call(this,t)&&this.load(t),this.refreshOptions(),this.trigger("type",t)}onOptionHover(t,e){this.ignoreHover||this.setActiveOption(e,!1)}onFocus(t){var e=this,i=e.isFocused;if(e.isDisabled||e.isReadOnly)return e.blur(),void Ot(t);e.ignoreFocus||(e.isFocused=!0,"focus"===e.settings.preload&&e.preload(),i||e.trigger("focus"),e.activeItems.length||(e.inputState(),e.refreshOptions(!!e.settings.openOnFocus)),e.refreshState())}onBlur(t){if(!1!==document.hasFocus()){var e=this;if(e.isFocused){e.isFocused=!1,e.ignoreFocus=!1;var i=()=>{e.close(),e.setActiveItem(),e.setCaret(e.items.length),e.trigger("blur")};e.settings.create&&e.settings.createOnBlur?e.createItem(null,i):i()}}}onOptionSelect(t,e){var i,n=this;e.parentElement&&e.parentElement.matches("[data-disabled]")||(e.classList.contains("create")?n.createItem(null,()=>{n.settings.closeAfterSelect&&n.close()}):void 0!==(i=e.dataset.value)&&(n.lastQuery=null,n.addItem(i),n.settings.closeAfterSelect&&n.close(),!n.settings.hideSelected&&t.type&&/click/.test(t.type)&&n.setActiveOption(e)))}canSelect(t){return!!(this.isOpen&&t&&this.dropdown_content.contains(t))}onItemSelect(t,e){var i=this;return!i.isLocked&&"multi"===i.settings.mode&&(Ot(t),i.setActiveItem(e,t),!0)}canLoad(t){return!!this.settings.load&&!this.loadedSearches.hasOwnProperty(t)}load(t){const e=this;if(!e.canLoad(t))return;X(e.wrapper,e.settings.loadingClass),e.loading++;const i=e.loadCallback.bind(e);e.settings.load.call(e,t,i)}loadCallback(t,e){const i=this;i.loading=Math.max(i.loading-1,0),i.lastQuery=null,i.clearActiveOption(),i.setupOptions(t,e),i.refreshOptions(i.isFocused&&!i.isInputHidden),i.loading||Y(i.wrapper,i.settings.loadingClass),i.trigger("load",t,e)}preload(){var t=this.wrapper.classList;t.contains("preloaded")||(t.add("preloaded"),this.load(""))}setTextboxValue(t=""){var e=this.control_input;e.value!==t&&(e.value=t,q(e,"update"),this.lastValue=t)}getValue(){return this.is_select_tag&&this.input.hasAttribute("multiple")?this.items:this.items.join(this.settings.delimiter)}setValue(t,e){xt(this,e?[]:["change"],()=>{this.clear(e),this.addItems(t,e)})}setMaxItems(t){0===t&&(t=null),this.settings.maxItems=t,this.refreshState()}setActiveItem(t,e){var i,n,o,s,r,a,l=this;if("single"!==l.settings.mode){if(!t)return l.clearActiveItems(),void(l.isFocused&&l.inputState());if("click"===(i=e&&e.type.toLowerCase())&&St("shiftKey",e)&&l.activeItems.length){for(a=l.getLastActive(),(o=Array.prototype.indexOf.call(l.control.children,a))>(s=Array.prototype.indexOf.call(l.control.children,t))&&(r=o,o=s,s=r),n=o;n<=s;n++)t=l.control.children[n],-1===l.activeItems.indexOf(t)&&l.setActiveItem
vendor: 5,329 bytes, line 2
2Class(t);Ot(e)}else"click"===i&&St(ft,e)||"keydown"===i&&St("shiftKey",e)?t.classList.contains("active")?l.removeActiveItem(t):l.setActiveItemClass(t):(l.clearActiveItems(),l.setActiveItemClass(t));l.inputState(),l.isFocused||l.focus()}}setActiveItemClass(t){const e=this,i=e.control.querySelector(".last-active");i&&Y(i,"last-active"),X(t,"active last-active"),e.trigger("item_select",t),-1==e.activeItems.indexOf(t)&&e.activeItems.push(t)}removeActiveItem(t){var e=this.activeItems.indexOf(t);this.activeItems.splice(e,1),Y(t,"active")}clearActiveItems(){Y(this.activeItems,"active"),this.activeItems=[]}setActiveOption(t,e=!0){t!==this.activeOption&&(this.clearActiveOption(),t&&(this.activeOption=t,tt(this.focus_node,{"aria-activedescendant":t.getAttribute("id")}),tt(t,{"aria-selected":"true"}),X(t,"active"),e&&this.scrollToOption(t)))}scrollToOption(t,e){if(!t)return;const i=this.dropdown_content,n=i.clientHeight,o=i.scrollTop||0,s=t.offsetHeight,r=t.getBoundingClientRect().top-i.getBoundingClientRect().top+o;r+s>n+o?this.scroll(r-n+s,e):r<o&&this.scroll(r,e)}scroll(t,e){const i=this.dropdown_content;e&&(i.style.scrollBehavior=e),i.scrollTop=t,i.style.scrollBehavior=""}clearActiveOption(){this.activeOption&&(Y(this.activeOption,"active"),tt(this.activeOption,{"aria-selected":null})),this.activeOption=null,tt(this.focus_node,{"aria-activedescendant":null})}selectAll(){const t=this;if("single"===t.settings.mode)return;const e=t.controlChildren();e.length&&(t.inputState(),t.close(),t.activeItems=e,z(e,e=>{t.setActiveItemClass(e)}))}inputState(){var t=this;t.control.contains(t.control_input)&&(tt(t.control_input,{placeholder:t.settings.placeholder}),t.activeItems.length>0||!t.isFocused&&t.settings.hidePlaceholder&&t.items.length>0?(t.setTextboxValue(),t.isInputHidden=!0):(t.settings.hidePlaceholder&&t.items.length>0&&tt(t.control_input,{placeholder:""}),t.isInputHidden=!1),t.wrapper.classList.toggle("input-hidden",t.isInputHidden))}inputValue(){return this.control_input.value.trim()}focus(){var t=this;t.isDisabled||t.isReadOnly||(t.ignoreFocus=!0,t.control_input.offsetWidth?t.control_input.focus():t.focus_node.focus(),setTimeout(()=>{t.ignoreFocus=!1,t.onFocus()},0))}blur(){this.focus_node.blur(),this.onBlur()}getScoreFunction(t){return this.sifter.getScoreFunction(t,this.getSearchOptions())}getSearchOptions(){var t=this.settings,e=t.sortField;return"string"==typeof t.sortField&&(e=[{field:t.sortField}]),{fields:t.searchField,conjunction:t.searchConjunction,sort:e,nesting:t.nesting}}search(t){var e,i,n=this,o=this.getSearchOptions();if(n.settings.score&&"function"!=typeof(i=n.settings.score.call(n,t)))throw new Error('Tom Select "score" setting must be a function that returns a function');return t!==n.lastQuery?(n.lastQuery=t,e=n.sifter.search(t,Object.assign(o,{score:i})),n.currentResults=e):e=Object.assign({},n.currentResults),n.settings.hideSelected&&(e.items=e.items.filter(t=>{let e=mt(t.id);return!(e&&-1!==n.items.indexOf(e))})),e}refreshOptions(t=!0){var e,i,n,o,s,r,a,l,c,u;const d={},h=[];var p=this,f=p.inputValue();const g=f===p.lastQuery||""==f&&null==p.lastQuery;var m=p.search(f),v=null,b=p.settings.shouldOpen||!1,y=p.dropdown_content;g&&(v=p.activeOption)&&(c=v.closest("[data-group]")),o=m.items.length,"number"==typeof p.settings.maxOptions&&(o=Math.min(o,p.settings.maxOptions)),o>0&&(b=!0);const w=(t,e)=>{let i=d[t];if(void 0!==i){let t=h[i];if(void 0!==t)return[i,t.fragment]}let n=document.createDocumentFragment();return i=h.length,h.push({fragment:n,order:e,optgroup:t}),[i,n]};for(e=0;e<o;e++){let t=m.items[e];if(!t)continue;let o=t.id,a=p.options[o];if(void 0===a)continue;let l=vt(o),u=p.getOption(l,!0);for(p.settings.hideSelected||u.classList.toggle("selected",p.items.includes(l)),s=a[p.settings.optgroupField]||"",i=0,n=(r=Array.isArray(s)?s:[s])&&r.length;i<n;i++){s=r[i];let t=a.$order,e=p.optgroups[s];void 0===e?s="":t=e.$order;const[n,l]=w(s,t);i>0&&(u=u.cloneNode(!0),tt(u,{id:a.$id+"-clone-"+i,"aria-selected":null}),u.classList.add("ts-cloned"),Y(u,"active"),p.activeOption&&p.activeOption.dataset.value==o&&c&&c.dataset.group===s.toString()&&(v=u)),l.appendChild(u),""!=s&&(d[s]=n)}}p.settings.lockOptgroupOrder&&h.sort((t,e)=>t.order-e.order),a=document.createDocumentFragment(),z(h,t=>{let e=t.fragment,i=t.optgroup;if(!e||!e.children.length)return;let n=p.optgroups[i];if(void 0!==n){let t=document.createDocumentFragment(),i=p.render("optgroup_header",n);At(t,i),At(t,e);let o=p.render("optgroup",{group:n,options:t});At(a,o)}else At(a,e)}),y.innerHTML="",At(y,a),p.settings.highlight&&(nt(y),m.query.length&&m.tokens.length&&z(m.tokens,t=>{it(y,t.regex)}));var x=t=>{let e=p.render(t,{input:f});return e&&(b=!0,y.insertBefore(e,y.firstChild)),e};if(p.loading?x("loading"):p.settings.shouldLoad.call(p,f)?0===m.items.length&&x("no_results"):x("not_loading"),(l=p.canCreate(f))&&(u=x("option_create")),p.hasOptions=m.items.length>0||l,b){if(m.items.length>0){if(v||"single"!==p.settings.mode||null==p.items[0]||(v=p.getOption(p.items[0])),!y.contains(v)){let t=0;u&&!p.settings.addPrecedence&&(t=1),v=p.selectable()[t]}}else u&&(v=u);t&&!p.isOpen&&(p.open(),p.scrollToOption(v,"auto")),p.setActiveOption(v)}else p.clearActiveOption(),t&&p.isOpen&&p.close(!1)}selectable(){return this.dropdown_content.querySelectorAll("[data-selectable]")}
vendor: 4,699 bytes, line 2
2addOption(t,e=!1){const i=this;if(Array.isArray(t))return i.addOptions(t,e),!1;const n=mt(t[i.settings.valueField]);return null!==n&&!i.options.hasOwnProperty(n)&&(t.$order=t.$order||++i.order,t.$id=i.inputId+"-opt-"+t.$order,i.options[n]=t,i.lastQuery=null,e&&(i.userOptions[n]=e,i.trigger("option_add",n,t)),n)}addOptions(t,e=!1){z(t,t=>{this.addOption(t,e)})}registerOption(t){return this.addOption(t)}registerOptionGroup(t){var e=mt(t[this.settings.optgroupValueField]);return null!==e&&(t.$order=t.$order||++this.order,this.optgroups[e]=t,e)}addOptionGroup(t,e){var i;e[this.settings.optgroupValueField]=t,(i=this.registerOptionGroup(e))&&this.trigger("optgroup_add",i,e)}removeOptionGroup(t){this.optgroups.hasOwnProperty(t)&&(delete this.optgroups[t],this.clearCache(),this.trigger("optgroup_remove",t))}clearOptionGroups(){this.optgroups={},this.clearCache(),this.trigger("optgroup_clear")}updateOption(t,e){const i=this;var n,o;const s=mt(t),r=mt(e[i.settings.valueField]);if(null===s)return;const a=i.options[s];if(null==a)return;if("string"!=typeof r)throw new Error("Value must be set in option data");const l=i.getOption(s),c=i.getItem(s);if(e.$order=e.$order||a.$order,delete i.options[s],i.uncacheValue(r),i.options[r]=e,l){if(i.dropdown_content.contains(l)){const t=i._render("option",e);et(l,t),i.activeOption===l&&i.setActiveOption(t)}l.remove()}c&&(-1!==(o=i.items.indexOf(s))&&i.items.splice(o,1,r),n=i._render("item",e),c.classList.contains("active")&&X(n,"active"),et(c,n)),i.lastQuery=null}removeOption(t,e){const i=this;t=vt(t),i.uncacheValue(t),delete i.userOptions[t],delete i.options[t],i.lastQuery=null,i.trigger("option_remove",t),i.removeItem(t,e)}clearOptions(t){const e=(t||this.clearFilter).bind(this);this.loadedSearches={},this.userOptions={},this.clearCache();const i={};z(this.options,(t,n)=>{e(t,n)&&(i[n]=t)}),this.options=this.sifter.items=i,this.lastQuery=null,this.trigger("option_clear")}clearFilter(t,e){return this.items.indexOf(e)>=0}getOption(t,e=!1){const i=mt(t);if(null===i)return null;const n=this.options[i];if(null!=n){if(n.$div)return n.$div;if(e)return this._render("option",n)}return null}getAdjacent(t,e,i="option"){var n,o=this;if(!t)return null;n="item"==i?o.controlChildren():o.dropdown_content.querySelectorAll("[data-selectable]");for(let i=0;i<n.length;i++)if(n[i]==t)return e>0?n[i+1]:n[i-1];return null}getItem(t){if("object"==typeof t)return t;var e=mt(t);return null!==e?this.control.querySelector(`[data-value="${Tt(e)}"]`):null}addItems(t,e){var i=this,n=Array.isArray(t)?t:[t];const o=(n=n.filter(t=>-1===i.items.indexOf(t)))[n.length-1];n.forEach(t=>{i.isPending=t!==o,i.addItem(t,e)})}addItem(t,e){xt(this,e?[]:["change","dropdown_close"],()=>{var i,n;const o=this,s=o.settings.mode,r=mt(t);if((!r||-1===o.items.indexOf(r)||("single"===s&&o.close(),"single"!==s&&o.settings.duplicates))&&null!==r&&o.options.hasOwnProperty(r)&&("single"===s&&o.clear(e),"multi"!==s||!o.isFull())){if(i=o._render("item",o.options[r]),o.control.contains(i)&&(i=i.cloneNode(!0)),n=o.isFull(),o.items.splice(o.caretPos,0,r),o.insertAtCaret(i),o.isSetup){if(!o.isPending&&o.settings.hideSelected){let t=o.getOption(r),e=o.getAdjacent(t,1);e&&o.setActiveOption(e)}o.isPending||o.settings.closeAfterSelect||o.refreshOptions(o.isFocused&&"single"!==s),0!=o.settings.closeAfterSelect&&o.isFull()?o.close():o.isPending||o.positionDropdown(),o.trigger("item_add",r,i),o.isPending||o.updateOriginalInput({silent:e})}(!o.isPending||!n&&o.isFull())&&(o.inputState(),o.refreshState())}})}removeItem(t=null,e){const i=this;if(!(t=i.getItem(t)))return;var n,o;const s=t.dataset.value;n=J(t),t.remove(),t.classList.contains("active")&&(o=i.activeItems.indexOf(t),i.activeItems.splice(o,1),Y(t,"active")),i.items.splice(n,1),i.lastQuery=null,!i.settings.persist&&i.userOptions.hasOwnProperty(s)&&i.removeOption(s,e),n<i.caretPos&&i.setCaret(i.caretPos-1),i.updateOriginalInput({silent:e}),i.refreshState(),i.positionDropdown(),i.trigger("item_remove",s,t)}createItem(t=null,e=()=>{}){3===arguments.length&&(e=arguments[2]),"function"!=typeof e&&(e=()=>{});var i,n=this,o=n.caretPos;if(t=t||n.inputValue(),!n.canCreate(t))return e(),!1;n.lock();var s=!1,r=t=>{if(n.unlock(),!t||"object"!=typeof t)return e();var i=mt(t[n.settings.valueField]);if("string"!=typeof i)return e();n.setTextboxValue(),n.addOption(t,!0),n.setCaret(o),n.addItem(i),e(t),s=!0};return i="function"==typeof n.settings.create?n.settings.create.call(this,t,r):{[n.settings.labelField]:t,[n.settings.valueField]:t},s||r(i),!0}refreshItems(){var t=this;t.lastQuery=null,t.isSetup&&t.addItems(t.items),t.updateOriginalInput(),t.refreshState()}refreshState(){const t=this;t.refreshValidityState();
vendor: 5,267 bytes, line 2
2const e=t.isFull(),i=t.isLocked;t.wrapper.classList.toggle("rtl",t.rtl);const n=t.wrapper.classList;n.toggle("focus",t.isFocused),n.toggle("disabled",t.isDisabled),n.toggle("readonly",t.isReadOnly),n.toggle("required",t.isRequired),n.toggle("invalid",!t.isValid),n.toggle("locked",i),n.toggle("full",e),n.toggle("input-active",t.isFocused&&!t.isInputHidden),n.toggle("dropdown-active",t.isOpen),n.toggle("has-options",Q(t.options)),n.toggle("has-items",t.items.length>0)}refreshValidityState(){var t=this;t.input.validity&&(t.isValid=t.input.validity.valid,t.isInvalid=!t.isValid)}isFull(){return null!==this.settings.maxItems&&this.items.length>=this.settings.maxItems}updateOriginalInput(t={}){const e=this;var i,n;const o=e.input.querySelector('option[value=""]');if(e.is_select_tag){const s=[],r=e.input.querySelectorAll("option:checked").length;function a(t,i,n){return t||(t=H('<option value="'+bt(i)+'">'+bt(n)+"</option>")),t!=o&&e.input.append(t),s.push(t),(t!=o||r>0)&&(t.selected=!0),t}e.input.querySelectorAll("option:checked").forEach(t=>{t.selected=!1}),0==e.items.length&&"single"==e.settings.mode?a(o,"",""):e.items.forEach(t=>{i=e.options[t],n=i[e.settings.labelField]||"",s.includes(i.$option)?a(e.input.querySelector(`option[value="${Tt(t)}"]:not(:checked)`),t,n):i.$option=a(i.$option,t,n)})}else e.input.value=e.getValue();e.isSetup&&(t.silent||e.trigger("change",e.getValue()))}open(){var t=this;t.isLocked||t.isOpen||"multi"===t.settings.mode&&t.isFull()||(t.isOpen=!0,tt(t.focus_node,{"aria-expanded":"true"}),t.refreshState(),W(t.dropdown,{visibility:"hidden",display:"block"}),t.positionDropdown(),W(t.dropdown,{visibility:"visible",display:"block"}),t.focus(),t.trigger("dropdown_open",t.dropdown))}close(t=!0){var e=this,i=e.isOpen;t&&(e.setTextboxValue(),"single"===e.settings.mode&&e.items.length&&e.inputState()),e.isOpen=!1,tt(e.focus_node,{"aria-expanded":"false"}),W(e.dropdown,{display:"none"}),e.settings.hideSelected&&e.clearActiveOption(),e.refreshState(),i&&e.trigger("dropdown_close",e.dropdown)}positionDropdown(){if("body"===this.settings.dropdownParent){var t=this.control,e=t.getBoundingClientRect(),i=t.offsetHeight+e.top+window.scrollY,n=e.left+window.scrollX;W(this.dropdown,{width:e.width+"px",top:i+"px",left:n+"px"})}}clear(t){var e=this;if(e.items.length){var i=e.controlChildren();z(i,t=>{e.removeItem(t,!0)}),e.inputState(),t||e.updateOriginalInput(),e.trigger("clear")}}insertAtCaret(t){const e=this,i=e.caretPos,n=e.control;n.insertBefore(t,n.children[i]||null),e.setCaret(i+1)}deleteSelection(t){var e,i,n,o,s=this;e=t&&t.keyCode===dt?-1:1,i=_t(s.control_input);const r=[];if(s.activeItems.length)o=K(s.activeItems,e),n=J(o),e>0&&n++,z(s.activeItems,t=>r.push(t));else if((s.isFocused||"single"===s.settings.mode)&&s.items.length){const t=s.controlChildren();let n;e<0&&0===i.start&&0===i.length?n=t[s.caretPos-1]:e>0&&i.start===s.inputValue().length&&(n=t[s.caretPos]),void 0!==n&&r.push(n)}if(!s.shouldDelete(r,t))return!1;for(Ot(t,!0),void 0!==n&&s.setCaret(n);r.length;)s.removeItem(r.pop());return s.inputState(),s.positionDropdown(),s.refreshOptions(!1),!0}shouldDelete(t,e){const i=t.map(t=>t.dataset.value);return!(!i.length||"function"==typeof this.settings.onDelete&&!1===this.settings.onDelete(i,e))}advanceSelection(t,e){var i,n,o=this;o.rtl&&(t*=-1),o.inputValue().length||(St(ft,e)||St("shiftKey",e)?(n=(i=o.getLastActive(t))?i.classList.contains("active")?o.getAdjacent(i,t,"item"):i:t>0?o.control_input.nextElementSibling:o.control_input.previousElementSibling)&&(n.classList.contains("active")&&o.removeActiveItem(i),o.setActiveItemClass(n)):o.moveCaret(t))}moveCaret(t){}getLastActive(t){let e=this.control.querySelector(".last-active");if(e)return e;var i=this.control.querySelectorAll(".active");return i?K(i,t):void 0}setCaret(t){this.caretPos=this.items.length}controlChildren(){return Array.from(this.control.querySelectorAll("[data-ts-item]"))}lock(){this.setLocked(!0)}unlock(){this.setLocked(!1)}setLocked(t=this.isReadOnly||this.isDisabled){this.isLocked=t,this.refreshState()}disable(){this.setDisabled(!0),this.close()}enable(){this.setDisabled(!1)}setDisabled(t){this.focus_node.tabIndex=t?-1:this.tabIndex,this.isDisabled=t,this.input.disabled=t,this.control_input.disabled=t,this.setLocked()}setReadOnly(t){this.isReadOnly=t,this.input.readOnly=t,this.control_input.readOnly=t,this.setLocked()}destroy(){var t=this,e=t.revertSettings;t.trigger("destroy"),t.off(),t.wrapper.remove(),t.dropdown.remove(),t.input.innerHTML=e.innerHTML,t.input.tabIndex=e.tabIndex,Y(t.input,"tomselected","ts-hidden-accessible"),t._destroy(),delete t.input.tomselect}render(t,e){var i,n;const o=this;if("function"!=typeof this.settings.render[t])return null;if(!(n=o.settings.render[t].call(this,e,bt)))return null;if(n=H(n),"option"===t||"option_create"===t?e[o.settings.disabledField]?tt(n,{"aria-disabled":"true"}):tt(n,{"data-selectable":""}):"optgroup"===t&&(i=e.group[o.settings.optgroupValueField],tt(n,{"data-group":i}),e.group[o.settings.disabledField]&&tt(n,{"data-disabled":""})),"option"===t||"item"===t){const i=vt(e[o.settings.valueField]);tt(n,{"data-value":i}),"item"===t?(X(n,o.settings.itemClass),tt(n,{"data-ts-item":""})):(X(n,o.settings.optionClass),tt(n,{role:"option",id:e.$id}
2),e.$div=n,o.options[i]=e)}return n}_render(t,e){const i=this.render(t,e);if(null==i)throw"HTMLElement expected";return i}clearCache(){z(this.options,t=>{t.$div&&(t.$div.remove(),delete t.$div)})}uncacheValue(t){const e=this.getOption(t);e&&e.remove()}canCreate(t){return this.settings.create&&t.length>0&&this.settings.createFilter.call(this,t)}hook(t,e,i){var n=this,o=n[e];n[e]=function(){var e,s;return"after"===t&&(e=o.apply(n,arguments)),s=i.apply(n,arguments),"instead"===t?s:("before"===t&&(e=o.apply(n,arguments)),e)}}}function kt(){Et(this.input,"change",()=>{this.sync()})}function It(t){var e=this,i=e.onOptionSelect;e.settings.hideSelected=!1;const n=Object.assign({className:"tomselect-checkbox",checkedClassNames:void 0,uncheckedClassNames:void 0},t);var o=function(t,e){e?(t.checked=!0,n.uncheckedClassNames&&t.classList.remove(...n.uncheckedClassNames),n.checkedClassNames&&t.classList.add(...n.checkedClassNames)):(t.checked=!1,n.checkedClassNames&&t.classList.remove(...n.checkedClassNames),n.uncheckedClassNames&&t.classList.add(...n.uncheckedClassNames))},s=function(t){setTimeout(()=>{var e=t.querySelector("input."+n.className);e instanceof HTMLInputElement&&o(e,t.classList.contains("selected"))},1)};e.hook("after","setupTemplates",()=>{var t=e.settings.render.option;e.settings.render.option=(i,s)=>{var r=H(t.call(e,i,s)),a=document.createElement("input");n.className&&a.classList.add(n.className),a.addEventListener("click",function(t){Ot(t)}),a.type="checkbox";const l=mt(i[e.settings.valueField]);return o(a,!!(l&&e.items.indexOf(l)>-1)),r.prepend(a),r}}),e.on("item_remove",t=>{var i=e.getOption(t);i&&(i.classList.remove("selected"),s(i))}),e.on("item_add",t=>{var i=e.getOption(t);i&&s(i)}),e.hook("instead","onOptionSelect",(t,n)=>{if(n.classList.contains("selected"))return n.classList.remove("selected"),e.removeItem(n.dataset.value),e.refreshOptions(),void Ot(t,!0);i.call(e,t,n),s(n)})}function jt(t){const e=this,i=Object.assign({className:"clear-button",title:"Clear All",html:t=>`<div class="${t.className}" title="${t.title}">⨯</div>`},t);e.on("initialize",()=>{var t=H(i.html(i));t.addEventListener("click",t=>{e.isLocked||(e.clear(),"single"===e.settings.mode&&e.settings.allowEmptyOption&&e.addItem(""),t.preventDefault(),t.stopPropagation())}),e.control.appendChild(t)})}const Ft=(t,e)=>{var i;null==(i=t.parentNode)||i.insertBefore(e,t.nextSibling)},Dt=(t,e)=>{var i;null==(i=t.parentNode)||i.insertBefore(e,t)},zt=(t,e)=>{do{var i;if(t==(e=null==(i=e)?void 0:i.previousElementSibling))return!0}while(e&&e.previousElementSibling);return!1};function Rt(){var t=this;if("multi"!==t.settings.mode)return;var e=t.lock,i=t.unlock;let n,o=!0;t.hook("after","setupTemplates",()=>{var e=t.settings.render.item;t.settings.render.item=(i,s)=>{const r=H(e.call(t,i,s));tt(r,{draggable:"true"});const a=t=>{n=r,setTimeout(()=>{r.classList.add("ts-dragging")},0)},l=t=>{t.preventDefault(),r.classList.add("ts-drag-over"),u(r,n)},c=()=>{r.classList.remove("ts-drag-over")},u=(t,e)=>{void 0!==e&&(zt(e,r)?Ft(t,e):Dt(t,e))},d=()=>{var e;document.querySelectorAll(".ts-drag-over").forEach(t=>t.classList.remove("ts-drag-over")),null==(e=n)||e.classList.remove("ts-dragging"),n=void 0;var i=[];t.control.querySelectorAll("[data-value]").forEach(t=>{if(t.dataset.value){let e=t.dataset.value;e&&i.push(e)}}),t.setValue(i)};return Et(r,"mousedown",t=>{o||Ot(t),t.stopPropagation()}),Et(r,"dragstart",a),Et(r,"dragenter",l),Et(r,"dragover",l),Et(r,"dragleave",c),Et(r,"dragend",d),r}}),t.hook("instead","lock",()=>(o=!1,e.call(t))),t.hook("instead","unlock",()=>(o=!0,i.call(t)))}function Nt(t){const e=this,i=Object.assign({title:"Untitled",headerClass:"dropdown-header",titleRowClass:"dropdown-header-title",labelClass:"dropdown-header-label",closeClass:"dropdown-header-close",html:t=>'<div class="'+t.headerClass+'"><div class="'+t.titleRowClass+'"><span class="'+t.labelClass+'">'+t.title+'</span><a class="'+t.closeClass+'">×</a></div></div>'},t);e.on("initialize",()=>{var t=H(i.html(i)),n=t.querySelector("."+i.closeClass);n&&n.addEventListener("click",t=>{Ot(t,!0),e.close()}),e.dropdown.insertBefore(t,e.dropdown.firstChild)})}function $t(){var t=this;t.hook("instead","setCaret",e=>{"single"!==t.settings.mode&&t.control.contains(t.control_input)?(e=Math.max(0,Math.min(t.items.length,e)))==t.caretPos||t.isPending||t.controlChildren().forEac
vendor: 3,308 bytes, line 2
2h((i,n)=>{n<e?t.control_input.insertAdjacentElement("beforebegin",i):t.control.appendChild(i)}):e=t.items.length,t.caretPos=e}),t.hook("instead","moveCaret",e=>{if(!t.isFocused)return;const i=t.getLastActive(e);if(i){const n=J(i);t.setCaret(e>0?n+1:n),t.setActiveItem(),Y(i,"last-active")}else t.setCaret(t.caretPos+e)})}function Ht(){const t=this;t.settings.shouldOpen=!0,t.hook("before","setup",()=>{t.focus_node=t.control,X(t.control_input,"dropdown-input");const e=H('<div class="dropdown-input-wrap">');e.append(t.control_input),t.dropdown.insertBefore(e,t.dropdown.firstChild);const i=H('<input class="items-placeholder" tabindex="-1" />');i.placeholder=t.settings.placeholder||"",t.control.append(i)}),t.on("initialize",()=>{t.control_input.addEventListener("keydown",e=>{switch(e.keyCode){case rt:return t.isOpen&&(Ot(e,!0),t.close()),void t.clearActiveItems();case pt:t.focus_node.tabIndex=-1}return t.onKeyDown.call(t,e)}),t.on("blur",()=>{t.focus_node.tabIndex=t.isDisabled?-1:t.tabIndex}),t.on("dropdown_open",()=>{t.control_input.focus()});const e=t.onBlur;t.hook("instead","onBlur",i=>{if(!i||i.relatedTarget!=t.control_input)return e.call(t)}),Et(t.control_input,"blur",()=>t.onBlur()),t.hook("before","close",()=>{t.isOpen&&t.focus_node.focus({preventScroll:!0})})})}function Bt(){var t=this;t.on("initialize",()=>{var e=document.createElement("span"),i=t.control_input;e.style.cssText="position:absolute; top:-99999px; left:-99999px; width:auto; padding:0; white-space:pre; ",t.wrapper.appendChild(e);var n=["letterSpacing","fontSize","fontFamily","fontWeight","textTransform"];for(const t of n)e.style[t]=i.style[t];var o=()=>{e.textContent=i.value,i.style.width=e.clientWidth+"px"};o(),t.on("update item_add item_remove",o),Et(i,"input",o),Et(i,"keyup",o),Et(i,"blur",o),Et(i,"update",o)})}function Vt(){var t=this,e=t.deleteSelection;this.hook("instead","deleteSelection",i=>!!t.activeItems.length&&e.call(t,i))}function qt(){this.hook("instead","setActiveItem",()=>{}),this.hook("instead","selectAll",()=>{})}function Wt(){var t=this,e=t.onKeyDown;t.hook("instead","onKeyDown",i=>{var n,o,s,r;if(!t.isOpen||i.keyCode!==at&&i.keyCode!==ct)return e.call(t,i);t.ignoreHover=!0,r=G(t.activeOption,"[data-group]"),n=J(t.activeOption,"[data-selectable]"),r&&(r=i.keyCode===at?r.previousSibling:r.nextSibling)&&(o=(s=r.querySelectorAll("[data-selectable]"))[Math.min(s.length-1,n)])&&t.setActiveOption(o)})}function Xt(t){const e=Object.assign({label:"×",title:"Remove",className:"remove",append:!0},t);var i=this;if(e.append){var n='<a href="javascript:void(0)" class="'+e.className+'" tabindex="-1" title="'+bt(e.title)+'">'+e.label+"</a>";i.hook("after","setupTemplates",()=>{var t=i.settings.render.item;i.settings.render.item=(e,o)=>{var s=H(t.call(i,e,o)),r=H(n);return s.appendChild(r),Et(r,"mousedown",t=>{Ot(t,!0)}),Et(r,"click",t=>{i.isLocked||(Ot(t,!0),i.isLocked||i.shouldDelete([s],t)&&(i.removeItem(s),i.refreshOptions(!1),i.inputState()))}),s}})}}function Yt(t){const e=this,i=Object.assign({text:t=>t[e.settings.labelField]},t);e.on("item_remove",function(t){if(e.isFocused&&""===e.control_input.value.trim()){var n=e.options[t];n&&e.setTextboxValue(i.text.call(e,n))}})}function Ut(){const t=this,e=t.canLoad,i=t.clearActiveOption,n=t.loadCallback;var o,s,r={},a=!1,l=[];
2if(t.settings.shouldLoadMore||(t.settings.shouldLoadMore=()=>{if(o.clientHeight/(o.scrollHeight-o.scrollTop)>.9)return!0;if(t.activeOption){var e=t.selectable();if(Array.from(e).indexOf(t.activeOption)>=e.length-2)return!0}return!1}),!t.settings.firstUrl)throw"virtual_scroll plugin requires a firstUrl() method";t.settings.sortField=[{field:"$order"},{field:"$score"}];const c=e=>!("number"==typeof t.settings.maxOptions&&o.children.length>=t.settings.maxOptions||!(e in r)||!r[e]),u=(e,i)=>t.items.indexOf(i)>=0||l.indexOf(i)>=0;t.setNextUrl=(t,e)=>{r[t]=e},t.getUrl=e=>{if(e in r){const t=r[e];return r[e]=!1,t}return t.clearPagination(),t.settings.firstUrl.call(t,e)},t.clearPagination=()=>{r={}},t.hook("instead","clearActiveOption",()=>{if(!a)return i.call(t)}),t.hook("instead","canLoad",i=>i in r?c(i):e.call(t,i)),t.hook("instead","loadCallback",(e,i)=>{if(a){if(s){const i=e[0];void 0!==i&&(s.dataset.value=i[t.settings.valueField])}}else t.clearOptions(u);n.call(t,e,i),a=!1}),t.hook("after","refreshOptions",()=>{const e=t.lastValue;var i;c(e)?(i=t.render("loading_more",{query:e}))&&(i.setAttribute("data-selectable",""),s=i):e in r&&!o.querySelector(".no-results")&&(i=t.render("no_more_results",{query:e})),i&&(X(i,t.settings.optionClass),o.append(i))}),t.on("initialize",()=>{l=Object.keys(t.options),o=t.dropdown_content,t.settings.render=Object.assign({},{loading_more:()=>'<div class="loading-more-results">Loading more results ... </div>',no_more_results:()=>'<div class="no-more-results">No more results</div>'},t.settings.render),o.addEventListener("scroll",()=>{t.settings.shouldLoadMore.call(t)&&c(t.lastValue)&&(a||(a=!0,t.load.call(t,t.lastValue)))})})}return Lt.define("change_listener",kt),Lt.define("checkbox_options",It),Lt.define("clear_button",jt),Lt.define("drag_drop",Rt),Lt.define("dropdown_header",Nt),Lt.define("caret_position",$t),Lt.define("dropdown_input",Ht),Lt.define("input_autogrow",Bt),Lt.define("no_backspace_delete",Vt),Lt.define("no_active_items",qt),Lt.define("optgroup_columns",Wt),Lt.define("remove_button",Xt),Lt.define("restore_on_backspace",Yt),Lt.define("virtual_scroll",Ut),Lt}()},9842(t,e,i){"use strict";function n(t){return n="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},n(t)}function o(t){var e=function(t,e){if("object"!=n(t)||!t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var o=i.call(t,e||"default");if("object"!=n(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==n(e)?e:e+""}function s(t,e,i){return(e=o(e))in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}i.d(e,{A:()=>s})},5852(t,e,i){"use strict";function n(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=Array(e);i<e;i++)n[i]=t[i];return n}function o(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var i=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=i){var n,o,s,r,a=[],l=!0,c=!1;try{if(s=(i=i.call(t)).next,0===e){if(Object(i)!==i)return;l=!1}else for(;!(l=(n=s.call(i)).done)&&(a.push(n.value),a.length!==e);l=!0);}catch(t){c=!0,o=t}finally{try{if(!l&&null!=i.return&&(r=i.return(),Object(r)!==r))return}finally{if(c)throw o}}return a}}(t,e)||function(t,e){if(t){if("string"==typeof t)return n(t,e);var i={}.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?n(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}i.d(e,{A:()=>o})}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.