netbox/netbox/project-static/dist/lldp.js
2022-10-04 22:00:32 +02:00

25 lines
106 KiB
JavaScript

(()=>{var Ar=Object.create;var pe=Object.defineProperty,Sr=Object.defineProperties,Or=Object.getOwnPropertyDescriptor,wr=Object.getOwnPropertyDescriptors,Cr=Object.getOwnPropertyNames,vn=Object.getOwnPropertySymbols,Lr=Object.getPrototypeOf,yn=Object.prototype.hasOwnProperty,Nr=Object.prototype.propertyIsEnumerable;var bn=(i,t,e)=>t in i?pe(i,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):i[t]=e,O=(i,t)=>{for(var e in t||(t={}))yn.call(t,e)&&bn(i,e,t[e]);if(vn)for(var e of vn(t))Nr.call(t,e)&&bn(i,e,t[e]);return i},Be=(i,t)=>Sr(i,wr(t)),Tn=i=>pe(i,"__esModule",{value:!0});var Nt=(i,t)=>()=>(t||i((t={exports:{}}).exports,t),t.exports),xr=(i,t)=>{Tn(i);for(var e in t)pe(i,e,{get:t[e],enumerable:!0})},Dr=(i,t,e)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of Cr(t))!yn.call(i,n)&&n!=="default"&&pe(i,n,{get:()=>t[n],enumerable:!(e=Or(t,n))||e.enumerable});return i},Ir=i=>Dr(Tn(pe(i!=null?Ar(Lr(i)):{},"default",i&&i.__esModule&&"default"in i?{get:()=>i.default,enumerable:!0}:{value:i,enumerable:!0})),i);var Oi=(i,t,e)=>new Promise((n,o)=>{var r=u=>{try{l(e.next(u))}catch(p){o(p)}},s=u=>{try{l(e.throw(u))}catch(p){o(p)}},l=u=>u.done?n(u.value):Promise.resolve(u.value).then(r,s);l((e=e.apply(i,t)).next())});var an=Nt((rr,di)=>{(function(i,t){typeof define=="function"&&define.amd?define(t):typeof di=="object"&&di.exports?di.exports=t():i.EvEmitter=t()})(typeof window!="undefined"?window:rr,function(){"use strict";function i(){}var t=i.prototype;return t.on=function(e,n){if(!(!e||!n)){var o=this._events=this._events||{},r=o[e]=o[e]||[];return r.indexOf(n)==-1&&r.push(n),this}},t.once=function(e,n){if(!(!e||!n)){this.on(e,n);var o=this._onceEvents=this._onceEvents||{},r=o[e]=o[e]||{};return r[n]=!0,this}},t.off=function(e,n){var o=this._events&&this._events[e];if(!(!o||!o.length)){var r=o.indexOf(n);return r!=-1&&o.splice(r,1),this}},t.emitEvent=function(e,n){var o=this._events&&this._events[e];if(!(!o||!o.length)){o=o.slice(0),n=n||[];for(var r=this._onceEvents&&this._onceEvents[e],s=0;s<o.length;s++){var l=o[s],u=r&&r[l];u&&(this.off(e,l),delete r[l]),l.apply(this,n)}return this}},t.allOff=function(){delete this._events,delete this._onceEvents},i})});var pi=Nt((Qh,hi)=>{(function(i,t){typeof define=="function"&&define.amd?define(t):typeof hi=="object"&&hi.exports?hi.exports=t():i.getSize=t()})(window,function(){"use strict";function t(d){var E=parseFloat(d),v=d.indexOf("%")==-1&&!isNaN(E);return v&&E}function e(){}var n=typeof console=="undefined"?e:function(d){console.error(d)},o=["paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth"],r=o.length;function s(){for(var d={width:0,height:0,innerWidth:0,innerHeight:0,outerWidth:0,outerHeight:0},E=0;E<r;E++){var v=o[E];d[v]=0}return d}function l(d){var E=getComputedStyle(d);return E||n("Style returned "+E+". Are you running this code in a hidden iframe on Firefox? See https://bit.ly/getsizebug1"),E}var u=!1,p;function f(){if(!u){u=!0;var d=document.createElement("div");d.style.width="200px",d.style.padding="1px 2px 3px 4px",d.style.borderStyle="solid",d.style.borderWidth="1px 2px 3px 4px",d.style.boxSizing="border-box";var E=document.body||document.documentElement;E.appendChild(d);var v=l(d);p=Math.round(t(v.width))==200,_.isBoxSizeOuter=p,E.removeChild(d)}}function _(d){if(f(),typeof d=="string"&&(d=document.querySelector(d)),!(!d||typeof d!="object"||!d.nodeType)){var E=l(d);if(E.display=="none")return s();var v={};v.width=d.offsetWidth,v.height=d.offsetHeight;for(var h=v.isBorderBox=E.boxSizing=="border-box",a=0;a<r;a++){var c=o[a],m=E[c],y=parseFloat(m);v[c]=isNaN(y)?0:y}var b=v.paddingLeft+v.paddingRight,T=v.paddingTop+v.paddingBottom,A=v.marginLeft+v.marginRight,w=v.marginTop+v.marginBottom,L=v.borderLeftWidth+v.borderRightWidth,N=v.borderTopWidth+v.borderBottomWidth,x=h&&p,C=t(E.width);C!==!1&&(v.width=C+(x?0:b+L));var V=t(E.height);return V!==!1&&(v.height=V+(x?0:T+N)),v.innerWidth=v.width-(b+L),v.innerHeight=v.height-(T+N),v.outerWidth=v.width+A,v.outerHeight=v.height+w,v}}return _})});var sr=Nt((Zh,mi)=>{(function(i,t){"use strict";typeof define=="function"&&define.amd?define(t):typeof mi=="object"&&mi.exports?mi.exports=t():i.matchesSelector=t()})(window,function(){"use strict";var t=function(){var e=window.Element.prototype;if(e.matches)return"matches";if(e.matchesSelector)return"matchesSelector";for(var n=["webkit","moz","ms","o"],o=0;o<n.length;o++){var r=n[o],s=r+"MatchesSelector";if(e[s])return s}}();return function(n,o){return n[t](o)}})});var ar=Nt((Jh,gi)=>{(function(i,t){typeof define=="function"&&define.amd?define(["desandro-matches-selector/matches-selector"],function(e){return t(i,e)}):typeof gi=="object"&&gi.exports?gi.exports=t(i,sr()):i.fizzyUIUtils=t(i,i.matchesSelector)})(window,function(t,e){"use strict";var n={};n.extend=function(s,l){for(var u in l)s[u]=l[u];return s},n.modulo=function(s,l){return(s%l+l)%l};var o=Array.prototype.slice;n.makeArray=function(s){if(Array.isArray(s))return s;if(s==null)return[];var l=typeof s=="object"&&typeof s.length=="number";return l?o.call(s):[s]},n.removeFrom=function(s,l){var u=s.indexOf(l);u!=-1&&s.splice(u,1)},n.getParent=function(s,l){for(;s.parentNode&&s!=document.body;)if(s=s.parentNode,e(s,l))return s},n.getQueryElement=function(s){return typeof s=="string"?document.querySelector(s):s},n.handleEvent=function(s){var l="on"+s.type;this[l]&&this[l](s)},n.filterFindElements=function(s,l){s=n.makeArray(s);var u=[];return s.forEach(function(p){if(p instanceof HTMLElement){if(!l){u.push(p);return}e(p,l)&&u.push(p);for(var f=p.querySelectorAll(l),_=0;_<f.length;_++)u.push(f[_])}}),u},n.debounceMethod=function(s,l,u){u=u||100;var p=s.prototype[l],f=l+"Timeout";s.prototype[l]=function(){var _=this[f];clearTimeout(_);var d=arguments,E=this;this[f]=setTimeout(function(){p.apply(E,d),delete E[f]},u)}},n.docReady=function(s){var l=document.readyState;l=="complete"||l=="interactive"?setTimeout(s):document.addEventListener("DOMContentLoaded",s)},n.toDashed=function(s){return s.replace(/(.)([A-Z])/g,function(l,u,p){return u+"-"+p}).toLowerCase()};var r=t.console;return n.htmlInit=function(s,l){n.docReady(function(){var u=n.toDashed(l),p="data-"+u,f=document.querySelectorAll("["+p+"]"),_=document.querySelectorAll(".js-"+u),d=n.makeArray(f).concat(n.makeArray(_)),E=p+"-options",v=t.jQuery;d.forEach(function(h){var a=h.getAttribute(p)||h.getAttribute(E),c;try{c=a&&JSON.parse(a)}catch(y){r&&r.error("Error parsing "+p+" on "+h.className+": "+y);return}var m=new s(h,c);v&&v.data(h,l,m)})})},n})});var lr=Nt((tp,_i)=>{(function(i,t){typeof define=="function"&&define.amd?define(["ev-emitter/ev-emitter","get-size/get-size"],t):typeof _i=="object"&&_i.exports?_i.exports=t(an(),pi()):(i.Outlayer={},i.Outlayer.Item=t(i.EvEmitter,i.getSize))})(window,function(t,e){"use strict";function n(h){for(var a in h)return!1;return a=null,!0}var o=document.documentElement.style,r=typeof o.transition=="string"?"transition":"WebkitTransition",s=typeof o.transform=="string"?"transform":"WebkitTransform",l={WebkitTransition:"webkitTransitionEnd",transition:"transitionend"}[r],u={transform:s,transition:r,transitionDuration:r+"Duration",transitionProperty:r+"Property",transitionDelay:r+"Delay"};function p(h,a){!h||(this.element=h,this.layout=a,this.position={x:0,y:0},this._create())}var f=p.prototype=Object.create(t.prototype);f.constructor=p,f._create=function(){this._transn={ingProperties:{},clean:{},onEnd:{}},this.css({position:"absolute"})},f.handleEvent=function(h){var a="on"+h.type;this[a]&&this[a](h)},f.getSize=function(){this.size=e(this.element)},f.css=function(h){var a=this.element.style;for(var c in h){var m=u[c]||c;a[m]=h[c]}},f.getPosition=function(){var h=getComputedStyle(this.element),a=this.layout._getOption("originLeft"),c=this.layout._getOption("originTop"),m=h[a?"left":"right"],y=h[c?"top":"bottom"],b=parseFloat(m),T=parseFloat(y),A=this.layout.size;m.indexOf("%")!=-1&&(b=b/100*A.width),y.indexOf("%")!=-1&&(T=T/100*A.height),b=isNaN(b)?0:b,T=isNaN(T)?0:T,b-=a?A.paddingLeft:A.paddingRight,T-=c?A.paddingTop:A.paddingBottom,this.position.x=b,this.position.y=T},f.layoutPosition=function(){var h=this.layout.size,a={},c=this.layout._getOption("originLeft"),m=this.layout._getOption("originTop"),y=c?"paddingLeft":"paddingRight",b=c?"left":"right",T=c?"right":"left",A=this.position.x+h[y];a[b]=this.getXValue(A),a[T]="";var w=m?"paddingTop":"paddingBottom",L=m?"top":"bottom",N=m?"bottom":"top",x=this.position.y+h[w];a[L]=this.getYValue(x),a[N]="",this.css(a),this.emitEvent("layout",[this])},f.getXValue=function(h){var a=this.layout._getOption("horizontal");return this.layout.options.percentPosition&&!a?h/this.layout.size.width*100+"%":h+"px"},f.getYValue=function(h){var a=this.layout._getOption("horizontal");return this.layout.options.percentPosition&&a?h/this.layout.size.height*100+"%":h+"px"},f._transitionTo=function(h,a){this.getPosition();var c=this.position.x,m=this.position.y,y=h==this.position.x&&a==this.position.y;if(this.setPosition(h,a),y&&!this.isTransitioning){this.layoutPosition();return}var b=h-c,T=a-m,A={};A.transform=this.getTranslate(b,T),this.transition({to:A,onTransitionEnd:{transform:this.layoutPosition},isCleaning:!0})},f.getTranslate=function(h,a){var c=this.layout._getOption("originLeft"),m=this.layout._getOption("originTop");return h=c?h:-h,a=m?a:-a,"translate3d("+h+"px, "+a+"px, 0)"},f.goTo=function(h,a){this.setPosition(h,a),this.layoutPosition()},f.moveTo=f._transitionTo,f.setPosition=function(h,a){this.position.x=parseFloat(h),this.position.y=parseFloat(a)},f._nonTransition=function(h){this.css(h.to),h.isCleaning&&this._removeStyles(h.to);for(var a in h.onTransitionEnd)h.onTransitionEnd[a].call(this)},f.transition=function(h){if(!parseFloat(this.layout.options.transitionDuration)){this._nonTransition(h);return}var a=this._transn;for(var c in h.onTransitionEnd)a.onEnd[c]=h.onTransitionEnd[c];for(c in h.to)a.ingProperties[c]=!0,h.isCleaning&&(a.clean[c]=!0);if(h.from){this.css(h.from);var m=this.element.offsetHeight;m=null}this.enableTransition(h.to),this.css(h.to),this.isTransitioning=!0};function _(h){return h.replace(/([A-Z])/g,function(a){return"-"+a.toLowerCase()})}var d="opacity,"+_(s);f.enableTransition=function(){if(!this.isTransitioning){var h=this.layout.options.transitionDuration;h=typeof h=="number"?h+"ms":h,this.css({transitionProperty:d,transitionDuration:h,transitionDelay:this.staggerDelay||0}),this.element.addEventListener(l,this,!1)}},f.onwebkitTransitionEnd=function(h){this.ontransitionend(h)},f.onotransitionend=function(h){this.ontransitionend(h)};var E={"-webkit-transform":"transform"};f.ontransitionend=function(h){if(h.target===this.element){var a=this._transn,c=E[h.propertyName]||h.propertyName;if(delete a.ingProperties[c],n(a.ingProperties)&&this.disableTransition(),c in a.clean&&(this.element.style[h.propertyName]="",delete a.clean[c]),c in a.onEnd){var m=a.onEnd[c];m.call(this),delete a.onEnd[c]}this.emitEvent("transitionEnd",[this])}},f.disableTransition=function(){this.removeTransitionStyles(),this.element.removeEventListener(l,this,!1),this.isTransitioning=!1},f._removeStyles=function(h){var a={};for(var c in h)a[c]="";this.css(a)};var v={transitionProperty:"",transitionDuration:"",transitionDelay:""};return f.removeTransitionStyles=function(){this.css(v)},f.stagger=function(h){h=isNaN(h)?0:h,this.staggerDelay=h+"ms"},f.removeElem=function(){this.element.parentNode.removeChild(this.element),this.css({display:""}),this.emitEvent("remove",[this])},f.remove=function(){if(!r||!parseFloat(this.layout.options.transitionDuration)){this.removeElem();return}this.once("transitionEnd",function(){this.removeElem()}),this.hide()},f.reveal=function(){delete this.isHidden,this.css({display:""});var h=this.layout.options,a={},c=this.getHideRevealTransitionEndProperty("visibleStyle");a[c]=this.onRevealTransitionEnd,this.transition({from:h.hiddenStyle,to:h.visibleStyle,isCleaning:!0,onTransitionEnd:a})},f.onRevealTransitionEnd=function(){this.isHidden||this.emitEvent("reveal")},f.getHideRevealTransitionEndProperty=function(h){var a=this.layout.options[h];if(a.opacity)return"opacity";for(var c in a)return c},f.hide=function(){this.isHidden=!0,this.css({display:""});var h=this.layout.options,a={},c=this.getHideRevealTransitionEndProperty("hiddenStyle");a[c]=this.onHideTransitionEnd,this.transition({from:h.visibleStyle,to:h.hiddenStyle,isCleaning:!0,onTransitionEnd:a})},f.onHideTransitionEnd=function(){this.isHidden&&(this.css({display:"none"}),this.emitEvent("hide"))},f.destroy=function(){this.css({position:"",left:"",right:"",top:"",bottom:"",transition:"",transform:""})},p})});var cr=Nt((ep,Ei)=>{(function(i,t){"use strict";typeof define=="function"&&define.amd?define(["ev-emitter/ev-emitter","get-size/get-size","fizzy-ui-utils/utils","./item"],function(e,n,o,r){return t(i,e,n,o,r)}):typeof Ei=="object"&&Ei.exports?Ei.exports=t(i,an(),pi(),ar(),lr()):i.Outlayer=t(i,i.EvEmitter,i.getSize,i.fizzyUIUtils,i.Outlayer.Item)})(window,function(t,e,n,o,r){"use strict";var s=t.console,l=t.jQuery,u=function(){},p=0,f={};function _(a,c){var m=o.getQueryElement(a);if(!m){s&&s.error("Bad element for "+this.constructor.namespace+": "+(m||a));return}this.element=m,l&&(this.$element=l(this.element)),this.options=o.extend({},this.constructor.defaults),this.option(c);var y=++p;this.element.outlayerGUID=y,f[y]=this,this._create();var b=this._getOption("initLayout");b&&this.layout()}_.namespace="outlayer",_.Item=r,_.defaults={containerStyle:{position:"relative"},initLayout:!0,originLeft:!0,originTop:!0,resize:!0,resizeContainer:!0,transitionDuration:"0.4s",hiddenStyle:{opacity:0,transform:"scale(0.001)"},visibleStyle:{opacity:1,transform:"scale(1)"}};var d=_.prototype;o.extend(d,e.prototype),d.option=function(a){o.extend(this.options,a)},d._getOption=function(a){var c=this.constructor.compatOptions[a];return c&&this.options[c]!==void 0?this.options[c]:this.options[a]},_.compatOptions={initLayout:"isInitLayout",horizontal:"isHorizontal",layoutInstant:"isLayoutInstant",originLeft:"isOriginLeft",originTop:"isOriginTop",resize:"isResizeBound",resizeContainer:"isResizingContainer"},d._create=function(){this.reloadItems(),this.stamps=[],this.stamp(this.options.stamp),o.extend(this.element.style,this.options.containerStyle);var a=this._getOption("resize");a&&this.bindResize()},d.reloadItems=function(){this.items=this._itemize(this.element.children)},d._itemize=function(a){for(var c=this._filterFindItemElements(a),m=this.constructor.Item,y=[],b=0;b<c.length;b++){var T=c[b],A=new m(T,this);y.push(A)}return y},d._filterFindItemElements=function(a){return o.filterFindElements(a,this.options.itemSelector)},d.getItemElements=function(){return this.items.map(function(a){return a.element})},d.layout=function(){this._resetLayout(),this._manageStamps();var a=this._getOption("layoutInstant"),c=a!==void 0?a:!this._isLayoutInited;this.layoutItems(this.items,c),this._isLayoutInited=!0},d._init=d.layout,d._resetLayout=function(){this.getSize()},d.getSize=function(){this.size=n(this.element)},d._getMeasurement=function(a,c){var m=this.options[a],y;m?(typeof m=="string"?y=this.element.querySelector(m):m instanceof HTMLElement&&(y=m),this[a]=y?n(y)[c]:m):this[a]=0},d.layoutItems=function(a,c){a=this._getItemsForLayout(a),this._layoutItems(a,c),this._postLayout()},d._getItemsForLayout=function(a){return a.filter(function(c){return!c.isIgnored})},d._layoutItems=function(a,c){if(this._emitCompleteOnItems("layout",a),!(!a||!a.length)){var m=[];a.forEach(function(y){var b=this._getItemLayoutPosition(y);b.item=y,b.isInstant=c||y.isLayoutInstant,m.push(b)},this),this._processLayoutQueue(m)}},d._getItemLayoutPosition=function(){return{x:0,y:0}},d._processLayoutQueue=function(a){this.updateStagger(),a.forEach(function(c,m){this._positionItem(c.item,c.x,c.y,c.isInstant,m)},this)},d.updateStagger=function(){var a=this.options.stagger;if(a==null){this.stagger=0;return}return this.stagger=h(a),this.stagger},d._positionItem=function(a,c,m,y,b){y?a.goTo(c,m):(a.stagger(b*this.stagger),a.moveTo(c,m))},d._postLayout=function(){this.resizeContainer()},d.resizeContainer=function(){var a=this._getOption("resizeContainer");if(!!a){var c=this._getContainerSize();c&&(this._setContainerMeasure(c.width,!0),this._setContainerMeasure(c.height,!1))}},d._getContainerSize=u,d._setContainerMeasure=function(a,c){if(a!==void 0){var m=this.size;m.isBorderBox&&(a+=c?m.paddingLeft+m.paddingRight+m.borderLeftWidth+m.borderRightWidth:m.paddingBottom+m.paddingTop+m.borderTopWidth+m.borderBottomWidth),a=Math.max(a,0),this.element.style[c?"width":"height"]=a+"px"}},d._emitCompleteOnItems=function(a,c){var m=this;function y(){m.dispatchEvent(a+"Complete",null,[c])}var b=c.length;if(!c||!b){y();return}var T=0;function A(){T++,T==b&&y()}c.forEach(function(w){w.once(a,A)})},d.dispatchEvent=function(a,c,m){var y=c?[c].concat(m):m;if(this.emitEvent(a,y),l)if(this.$element=this.$element||l(this.element),c){var b=l.Event(c);b.type=a,this.$element.trigger(b,m)}else this.$element.trigger(a,m)},d.ignore=function(a){var c=this.getItem(a);c&&(c.isIgnored=!0)},d.unignore=function(a){var c=this.getItem(a);c&&delete c.isIgnored},d.stamp=function(a){a=this._find(a),!!a&&(this.stamps=this.stamps.concat(a),a.forEach(this.ignore,this))},d.unstamp=function(a){a=this._find(a),!!a&&a.forEach(function(c){o.removeFrom(this.stamps,c),this.unignore(c)},this)},d._find=function(a){if(!!a)return typeof a=="string"&&(a=this.element.querySelectorAll(a)),a=o.makeArray(a),a},d._manageStamps=function(){!this.stamps||!this.stamps.length||(this._getBoundingRect(),this.stamps.forEach(this._manageStamp,this))},d._getBoundingRect=function(){var a=this.element.getBoundingClientRect(),c=this.size;this._boundingRect={left:a.left+c.paddingLeft+c.borderLeftWidth,top:a.top+c.paddingTop+c.borderTopWidth,right:a.right-(c.paddingRight+c.borderRightWidth),bottom:a.bottom-(c.paddingBottom+c.borderBottomWidth)}},d._manageStamp=u,d._getElementOffset=function(a){var c=a.getBoundingClientRect(),m=this._boundingRect,y=n(a),b={left:c.left-m.left-y.marginLeft,top:c.top-m.top-y.marginTop,right:m.right-c.right-y.marginRight,bottom:m.bottom-c.bottom-y.marginBottom};return b},d.handleEvent=o.handleEvent,d.bindResize=function(){t.addEventListener("resize",this),this.isResizeBound=!0},d.unbindResize=function(){t.removeEventListener("resize",this),this.isResizeBound=!1},d.onresize=function(){this.resize()},o.debounceMethod(_,"onresize",100),d.resize=function(){!this.isResizeBound||!this.needsResizeLayout()||this.layout()},d.needsResizeLayout=function(){var a=n(this.element),c=this.size&&a;return c&&a.innerWidth!==this.size.innerWidth},d.addItems=function(a){var c=this._itemize(a);return c.length&&(this.items=this.items.concat(c)),c},d.appended=function(a){var c=this.addItems(a);!c.length||(this.layoutItems(c,!0),this.reveal(c))},d.prepended=function(a){var c=this._itemize(a);if(!!c.length){var m=this.items.slice(0);this.items=c.concat(m),this._resetLayout(),this._manageStamps(),this.layoutItems(c,!0),this.reveal(c),this.layoutItems(m)}},d.reveal=function(a){if(this._emitCompleteOnItems("reveal",a),!(!a||!a.length)){var c=this.updateStagger();a.forEach(function(m,y){m.stagger(y*c),m.reveal()})}},d.hide=function(a){if(this._emitCompleteOnItems("hide",a),!(!a||!a.length)){var c=this.updateStagger();a.forEach(function(m,y){m.stagger(y*c),m.hide()})}},d.revealItemElements=function(a){var c=this.getItems(a);this.reveal(c)},d.hideItemElements=function(a){var c=this.getItems(a);this.hide(c)},d.getItem=function(a){for(var c=0;c<this.items.length;c++){var m=this.items[c];if(m.element==a)return m}},d.getItems=function(a){a=o.makeArray(a);var c=[];return a.forEach(function(m){var y=this.getItem(m);y&&c.push(y)},this),c},d.remove=function(a){var c=this.getItems(a);this._emitCompleteOnItems("remove",c),!(!c||!c.length)&&c.forEach(function(m){m.remove(),o.removeFrom(this.items,m)},this)},d.destroy=function(){var a=this.element.style;a.height="",a.position="",a.width="",this.items.forEach(function(m){m.destroy()}),this.unbindResize();var c=this.element.outlayerGUID;delete f[c],delete this.element.outlayerGUID,l&&l.removeData(this.element,this.constructor.namespace)},_.data=function(a){a=o.getQueryElement(a);var c=a&&a.outlayerGUID;return c&&f[c]},_.create=function(a,c){var m=E(_);return m.defaults=o.extend({},_.defaults),o.extend(m.defaults,c),m.compatOptions=o.extend({},_.compatOptions),m.namespace=a,m.data=_.data,m.Item=E(r),o.htmlInit(m,a),l&&l.bridget&&l.bridget(a,m),m};function E(a){function c(){a.apply(this,arguments)}return c.prototype=Object.create(a.prototype),c.prototype.constructor=c,c}var v={ms:1,s:1e3};function h(a){if(typeof a=="number")return a;var c=a.match(/(^\d*\.?\d*)(\w*)/),m=c&&c[1],y=c&&c[2];if(!m.length)return 0;m=parseFloat(m);var b=v[y]||1;return m*b}return _.Item=r,_})});var ur=Nt((ip,vi)=>{(function(i,t){typeof define=="function"&&define.amd?define(["outlayer/outlayer","get-size/get-size"],t):typeof vi=="object"&&vi.exports?vi.exports=t(cr(),pi()):i.Masonry=t(i.Outlayer,i.getSize)})(window,function(t,e){"use strict";var n=t.create("masonry");n.compatOptions.fitWidth="isFitWidth";var o=n.prototype;return o._resetLayout=function(){this.getSize(),this._getMeasurement("columnWidth","outerWidth"),this._getMeasurement("gutter","outerWidth"),this.measureColumns(),this.colYs=[];for(var r=0;r<this.cols;r++)this.colYs.push(0);this.maxY=0,this.horizontalColIndex=0},o.measureColumns=function(){if(this.getContainerWidth(),!this.columnWidth){var r=this.items[0],s=r&&r.element;this.columnWidth=s&&e(s).outerWidth||this.containerWidth}var l=this.columnWidth+=this.gutter,u=this.containerWidth+this.gutter,p=u/l,f=l-u%l,_=f&&f<1?"round":"floor";p=Math[_](p),this.cols=Math.max(p,1)},o.getContainerWidth=function(){var r=this._getOption("fitWidth"),s=r?this.element.parentNode:this.element,l=e(s);this.containerWidth=l&&l.innerWidth},o._getItemLayoutPosition=function(r){r.getSize();var s=r.size.outerWidth%this.columnWidth,l=s&&s<1?"round":"ceil",u=Math[l](r.size.outerWidth/this.columnWidth);u=Math.min(u,this.cols);for(var p=this.options.horizontalOrder?"_getHorizontalColPosition":"_getTopColPosition",f=this[p](u,r),_={x:this.columnWidth*f.col,y:f.y},d=f.y+r.size.outerHeight,E=u+f.col,v=f.col;v<E;v++)this.colYs[v]=d;return _},o._getTopColPosition=function(r){var s=this._getTopColGroup(r),l=Math.min.apply(Math,s);return{col:s.indexOf(l),y:l}},o._getTopColGroup=function(r){if(r<2)return this.colYs;for(var s=[],l=this.cols+1-r,u=0;u<l;u++)s[u]=this._getColGroupY(u,r);return s},o._getColGroupY=function(r,s){if(s<2)return this.colYs[r];var l=this.colYs.slice(r,r+s);return Math.max.apply(Math,l)},o._getHorizontalColPosition=function(r,s){var l=this.horizontalColIndex%this.cols,u=r>1&&l+r>this.cols;l=u?0:l;var p=s.size.outerWidth&&s.size.outerHeight;return this.horizontalColIndex=p?l+r:this.horizontalColIndex,{col:l,y:this._getColGroupY(l,r)}},o._manageStamp=function(r){var s=e(r),l=this._getElementOffset(r),u=this._getOption("originLeft"),p=u?l.left:l.right,f=p+s.outerWidth,_=Math.floor(p/this.columnWidth);_=Math.max(0,_);var d=Math.floor(f/this.columnWidth);d-=f%this.columnWidth?0:1,d=Math.min(this.cols-1,d);for(var E=this._getOption("originTop"),v=(E?l.top:l.bottom)+s.outerHeight,h=_;h<=d;h++)this.colYs[h]=Math.max(v,this.colYs[h])},o._getContainerSize=function(){this.maxY=Math.max.apply(Math,this.colYs);var r={height:this.maxY};return this._getOption("fitWidth")&&(r.width=this._getContainerFitWidth()),r},o._getContainerFitWidth=function(){for(var r=0,s=this.cols;--s&&this.colYs[s]===0;)r++;return(this.cols-r)*this.columnWidth-this.gutter},o.needsResizeLayout=function(){var r=this.containerWidth;return this.getContainerWidth(),r!=this.containerWidth},n})});var Je={};xr(Je,{afterMain:()=>Ln,afterRead:()=>On,afterWrite:()=>Dn,applyStyles:()=>Zt,arrow:()=>Fe,auto:()=>me,basePlacements:()=>ct,beforeMain:()=>wn,beforeRead:()=>An,beforeWrite:()=>Nn,bottom:()=>$,clippingParents:()=>wi,computeStyles:()=>te,createPopper:()=>Ze,createPopperBase:()=>Wn,createPopperLite:()=>Vn,detectOverflow:()=>F,end:()=>Et,eventListeners:()=>ee,flip:()=>qe,hide:()=>Ge,left:()=>P,main:()=>Cn,modifierPhases:()=>Li,offset:()=>Xe,placements:()=>_e,popper:()=>xt,popperGenerator:()=>kt,popperOffsets:()=>oe,preventOverflow:()=>Qe,read:()=>Sn,reference:()=>Ci,right:()=>R,start:()=>rt,top:()=>D,variationPlacements:()=>ze,viewport:()=>ge,write:()=>xn});var D="top",$="bottom",R="right",P="left",me="auto",ct=[D,$,R,P],rt="start",Et="end",wi="clippingParents",ge="viewport",xt="popper",Ci="reference",ze=ct.reduce(function(i,t){return i.concat([t+"-"+rt,t+"-"+Et])},[]),_e=[].concat(ct,[me]).reduce(function(i,t){return i.concat([t,t+"-"+rt,t+"-"+Et])},[]),An="beforeRead",Sn="read",On="afterRead",wn="beforeMain",Cn="main",Ln="afterMain",Nn="beforeWrite",xn="write",Dn="afterWrite",Li=[An,Sn,On,wn,Cn,Ln,Nn,xn,Dn];function j(i){return i?(i.nodeName||"").toLowerCase():null}function I(i){if(i==null)return window;if(i.toString()!=="[object Window]"){var t=i.ownerDocument;return t&&t.defaultView||window}return i}function X(i){var t=I(i).Element;return i instanceof t||i instanceof Element}function M(i){var t=I(i).HTMLElement;return i instanceof t||i instanceof HTMLElement}function Qt(i){if(typeof ShadowRoot=="undefined")return!1;var t=I(i).ShadowRoot;return i instanceof t||i instanceof ShadowRoot}function Pr(i){var t=i.state;Object.keys(t.elements).forEach(function(e){var n=t.styles[e]||{},o=t.attributes[e]||{},r=t.elements[e];!M(r)||!j(r)||(Object.assign(r.style,n),Object.keys(o).forEach(function(s){var l=o[s];l===!1?r.removeAttribute(s):r.setAttribute(s,l===!0?"":l)}))})}function Rr(i){var t=i.state,e={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,e.popper),t.styles=e,t.elements.arrow&&Object.assign(t.elements.arrow.style,e.arrow),function(){Object.keys(t.elements).forEach(function(n){var o=t.elements[n],r=t.attributes[n]||{},s=Object.keys(t.styles.hasOwnProperty(n)?t.styles[n]:e[n]),l=s.reduce(function(u,p){return u[p]="",u},{});!M(o)||!j(o)||(Object.assign(o.style,l),Object.keys(r).forEach(function(u){o.removeAttribute(u)}))})}}var Zt={name:"applyStyles",enabled:!0,phase:"write",fn:Pr,effect:Rr,requires:["computeStyles"]};function k(i){return i.split("-")[0]}var nt=Math.max,Dt=Math.min,ut=Math.round;function Jt(){var i=navigator.userAgentData;return i!=null&&i.brands?i.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function Ee(){return!/^((?!chrome|android).)*safari/i.test(Jt())}function Q(i,t,e){t===void 0&&(t=!1),e===void 0&&(e=!1);var n=i.getBoundingClientRect(),o=1,r=1;t&&M(i)&&(o=i.offsetWidth>0&&ut(n.width)/i.offsetWidth||1,r=i.offsetHeight>0&&ut(n.height)/i.offsetHeight||1);var s=X(i)?I(i):window,l=s.visualViewport,u=!Ee()&&e,p=(n.left+(u&&l?l.offsetLeft:0))/o,f=(n.top+(u&&l?l.offsetTop:0))/r,_=n.width/o,d=n.height/r;return{width:_,height:d,top:f,right:p+_,bottom:f+d,left:p,x:p,y:f}}function It(i){var t=Q(i),e=i.offsetWidth,n=i.offsetHeight;return Math.abs(t.width-e)<=1&&(e=t.width),Math.abs(t.height-n)<=1&&(n=t.height),{x:i.offsetLeft,y:i.offsetTop,width:e,height:n}}function ve(i,t){var e=t.getRootNode&&t.getRootNode();if(i.contains(t))return!0;if(e&&Qt(e)){var n=t;do{if(n&&i.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function z(i){return I(i).getComputedStyle(i)}function Ni(i){return["table","td","th"].indexOf(j(i))>=0}function W(i){return((X(i)?i.ownerDocument:i.document)||window.document).documentElement}function ft(i){return j(i)==="html"?i:i.assignedSlot||i.parentNode||(Qt(i)?i.host:null)||W(i)}function In(i){return!M(i)||z(i).position==="fixed"?null:i.offsetParent}function $r(i){var t=/firefox/i.test(Jt()),e=/Trident/i.test(Jt());if(e&&M(i)){var n=z(i);if(n.position==="fixed")return null}var o=ft(i);for(Qt(o)&&(o=o.host);M(o)&&["html","body"].indexOf(j(o))<0;){var r=z(o);if(r.transform!=="none"||r.perspective!=="none"||r.contain==="paint"||["transform","perspective"].indexOf(r.willChange)!==-1||t&&r.willChange==="filter"||t&&r.filter&&r.filter!=="none")return o;o=o.parentNode}return null}function ot(i){for(var t=I(i),e=In(i);e&&Ni(e)&&z(e).position==="static";)e=In(e);return e&&(j(e)==="html"||j(e)==="body"&&z(e).position==="static")?t:e||$r(i)||t}function Pt(i){return["top","bottom"].indexOf(i)>=0?"x":"y"}function Rt(i,t,e){return nt(i,Dt(t,e))}function Pn(i,t,e){var n=Rt(i,t,e);return n>e?e:n}function ye(){return{top:0,right:0,bottom:0,left:0}}function be(i){return Object.assign({},ye(),i)}function Te(i,t){return t.reduce(function(e,n){return e[n]=i,e},{})}var Mr=function(t,e){return t=typeof t=="function"?t(Object.assign({},e.rects,{placement:e.placement})):t,be(typeof t!="number"?t:Te(t,ct))};function jr(i){var t,e=i.state,n=i.name,o=i.options,r=e.elements.arrow,s=e.modifiersData.popperOffsets,l=k(e.placement),u=Pt(l),p=[P,R].indexOf(l)>=0,f=p?"height":"width";if(!(!r||!s)){var _=Mr(o.padding,e),d=It(r),E=u==="y"?D:P,v=u==="y"?$:R,h=e.rects.reference[f]+e.rects.reference[u]-s[u]-e.rects.popper[f],a=s[u]-e.rects.reference[u],c=ot(r),m=c?u==="y"?c.clientHeight||0:c.clientWidth||0:0,y=h/2-a/2,b=_[E],T=m-d[f]-_[v],A=m/2-d[f]/2+y,w=Rt(b,A,T),L=u;e.modifiersData[n]=(t={},t[L]=w,t.centerOffset=w-A,t)}}function kr(i){var t=i.state,e=i.options,n=e.element,o=n===void 0?"[data-popper-arrow]":n;o!=null&&(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o)||!ve(t.elements.popper,o)||(t.elements.arrow=o))}var Fe={name:"arrow",enabled:!0,phase:"main",fn:jr,effect:kr,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Z(i){return i.split("-")[1]}var Hr={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Wr(i){var t=i.x,e=i.y,n=window,o=n.devicePixelRatio||1;return{x:ut(t*o)/o||0,y:ut(e*o)/o||0}}function Rn(i){var t,e=i.popper,n=i.popperRect,o=i.placement,r=i.variation,s=i.offsets,l=i.position,u=i.gpuAcceleration,p=i.adaptive,f=i.roundOffsets,_=i.isFixed,d=s.x,E=d===void 0?0:d,v=s.y,h=v===void 0?0:v,a=typeof f=="function"?f({x:E,y:h}):{x:E,y:h};E=a.x,h=a.y;var c=s.hasOwnProperty("x"),m=s.hasOwnProperty("y"),y=P,b=D,T=window;if(p){var A=ot(e),w="clientHeight",L="clientWidth";if(A===I(e)&&(A=W(e),z(A).position!=="static"&&l==="absolute"&&(w="scrollHeight",L="scrollWidth")),A=A,o===D||(o===P||o===R)&&r===Et){b=$;var N=_&&A===T&&T.visualViewport?T.visualViewport.height:A[w];h-=N-n.height,h*=u?1:-1}if(o===P||(o===D||o===$)&&r===Et){y=R;var x=_&&A===T&&T.visualViewport?T.visualViewport.width:A[L];E-=x-n.width,E*=u?1:-1}}var C=Object.assign({position:l},p&&Hr),V=f===!0?Wr({x:E,y:h}):{x:E,y:h};if(E=V.x,h=V.y,u){var B;return Object.assign({},C,(B={},B[b]=m?"0":"",B[y]=c?"0":"",B.transform=(T.devicePixelRatio||1)<=1?"translate("+E+"px, "+h+"px)":"translate3d("+E+"px, "+h+"px, 0)",B))}return Object.assign({},C,(t={},t[b]=m?h+"px":"",t[y]=c?E+"px":"",t.transform="",t))}function Vr(i){var t=i.state,e=i.options,n=e.gpuAcceleration,o=n===void 0?!0:n,r=e.adaptive,s=r===void 0?!0:r,l=e.roundOffsets,u=l===void 0?!0:l;if(!1)var p;var f={placement:k(t.placement),variation:Z(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,Rn(Object.assign({},f,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:u})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Rn(Object.assign({},f,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:u})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var te={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Vr,data:{}};var Ye={passive:!0};function Br(i){var t=i.state,e=i.instance,n=i.options,o=n.scroll,r=o===void 0?!0:o,s=n.resize,l=s===void 0?!0:s,u=I(t.elements.popper),p=[].concat(t.scrollParents.reference,t.scrollParents.popper);return r&&p.forEach(function(f){f.addEventListener("scroll",e.update,Ye)}),l&&u.addEventListener("resize",e.update,Ye),function(){r&&p.forEach(function(f){f.removeEventListener("scroll",e.update,Ye)}),l&&u.removeEventListener("resize",e.update,Ye)}}var ee={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Br,data:{}};var zr={left:"right",right:"left",bottom:"top",top:"bottom"};function ie(i){return i.replace(/left|right|bottom|top/g,function(t){return zr[t]})}var Fr={start:"end",end:"start"};function Ke(i){return i.replace(/start|end/g,function(t){return Fr[t]})}function $t(i){var t=I(i),e=t.pageXOffset,n=t.pageYOffset;return{scrollLeft:e,scrollTop:n}}function Mt(i){return Q(W(i)).left+$t(i).scrollLeft}function xi(i,t){var e=I(i),n=W(i),o=e.visualViewport,r=n.clientWidth,s=n.clientHeight,l=0,u=0;if(o){r=o.width,s=o.height;var p=Ee();(p||!p&&t==="fixed")&&(l=o.offsetLeft,u=o.offsetTop)}return{width:r,height:s,x:l+Mt(i),y:u}}function Di(i){var t,e=W(i),n=$t(i),o=(t=i.ownerDocument)==null?void 0:t.body,r=nt(e.scrollWidth,e.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),s=nt(e.scrollHeight,e.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),l=-n.scrollLeft+Mt(i),u=-n.scrollTop;return z(o||e).direction==="rtl"&&(l+=nt(e.clientWidth,o?o.clientWidth:0)-r),{width:r,height:s,x:l,y:u}}function jt(i){var t=z(i),e=t.overflow,n=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(e+o+n)}function Ue(i){return["html","body","#document"].indexOf(j(i))>=0?i.ownerDocument.body:M(i)&&jt(i)?i:Ue(ft(i))}function vt(i,t){var e;t===void 0&&(t=[]);var n=Ue(i),o=n===((e=i.ownerDocument)==null?void 0:e.body),r=I(n),s=o?[r].concat(r.visualViewport||[],jt(n)?n:[]):n,l=t.concat(s);return o?l:l.concat(vt(ft(s)))}function ne(i){return Object.assign({},i,{left:i.x,top:i.y,right:i.x+i.width,bottom:i.y+i.height})}function Yr(i,t){var e=Q(i,!1,t==="fixed");return e.top=e.top+i.clientTop,e.left=e.left+i.clientLeft,e.bottom=e.top+i.clientHeight,e.right=e.left+i.clientWidth,e.width=i.clientWidth,e.height=i.clientHeight,e.x=e.left,e.y=e.top,e}function $n(i,t,e){return t===ge?ne(xi(i,e)):X(t)?Yr(t,e):ne(Di(W(i)))}function Kr(i){var t=vt(ft(i)),e=["absolute","fixed"].indexOf(z(i).position)>=0,n=e&&M(i)?ot(i):i;return X(n)?t.filter(function(o){return X(o)&&ve(o,n)&&j(o)!=="body"}):[]}function Ii(i,t,e,n){var o=t==="clippingParents"?Kr(i):[].concat(t),r=[].concat(o,[e]),s=r[0],l=r.reduce(function(u,p){var f=$n(i,p,n);return u.top=nt(f.top,u.top),u.right=Dt(f.right,u.right),u.bottom=Dt(f.bottom,u.bottom),u.left=nt(f.left,u.left),u},$n(i,s,n));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function Ae(i){var t=i.reference,e=i.element,n=i.placement,o=n?k(n):null,r=n?Z(n):null,s=t.x+t.width/2-e.width/2,l=t.y+t.height/2-e.height/2,u;switch(o){case D:u={x:s,y:t.y-e.height};break;case $:u={x:s,y:t.y+t.height};break;case R:u={x:t.x+t.width,y:l};break;case P:u={x:t.x-e.width,y:l};break;default:u={x:t.x,y:t.y}}var p=o?Pt(o):null;if(p!=null){var f=p==="y"?"height":"width";switch(r){case rt:u[p]=u[p]-(t[f]/2-e[f]/2);break;case Et:u[p]=u[p]+(t[f]/2-e[f]/2);break;default:}}return u}function F(i,t){t===void 0&&(t={});var e=t,n=e.placement,o=n===void 0?i.placement:n,r=e.strategy,s=r===void 0?i.strategy:r,l=e.boundary,u=l===void 0?wi:l,p=e.rootBoundary,f=p===void 0?ge:p,_=e.elementContext,d=_===void 0?xt:_,E=e.altBoundary,v=E===void 0?!1:E,h=e.padding,a=h===void 0?0:h,c=be(typeof a!="number"?a:Te(a,ct)),m=d===xt?Ci:xt,y=i.rects.popper,b=i.elements[v?m:d],T=Ii(X(b)?b:b.contextElement||W(i.elements.popper),u,f,s),A=Q(i.elements.reference),w=Ae({reference:A,element:y,strategy:"absolute",placement:o}),L=ne(Object.assign({},y,w)),N=d===xt?L:A,x={top:T.top-N.top+c.top,bottom:N.bottom-T.bottom+c.bottom,left:T.left-N.left+c.left,right:N.right-T.right+c.right},C=i.modifiersData.offset;if(d===xt&&C){var V=C[o];Object.keys(x).forEach(function(B){var St=[R,$].indexOf(B)>=0?1:-1,Ot=[D,$].indexOf(B)>=0?"y":"x";x[B]+=V[Ot]*St})}return x}function Pi(i,t){t===void 0&&(t={});var e=t,n=e.placement,o=e.boundary,r=e.rootBoundary,s=e.padding,l=e.flipVariations,u=e.allowedAutoPlacements,p=u===void 0?_e:u,f=Z(n),_=f?l?ze:ze.filter(function(v){return Z(v)===f}):ct,d=_.filter(function(v){return p.indexOf(v)>=0});d.length===0&&(d=_);var E=d.reduce(function(v,h){return v[h]=F(i,{placement:h,boundary:o,rootBoundary:r,padding:s})[k(h)],v},{});return Object.keys(E).sort(function(v,h){return E[v]-E[h]})}function Ur(i){if(k(i)===me)return[];var t=ie(i);return[Ke(i),t,Ke(t)]}function qr(i){var t=i.state,e=i.options,n=i.name;if(!t.modifiersData[n]._skip){for(var o=e.mainAxis,r=o===void 0?!0:o,s=e.altAxis,l=s===void 0?!0:s,u=e.fallbackPlacements,p=e.padding,f=e.boundary,_=e.rootBoundary,d=e.altBoundary,E=e.flipVariations,v=E===void 0?!0:E,h=e.allowedAutoPlacements,a=t.options.placement,c=k(a),m=c===a,y=u||(m||!v?[ie(a)]:Ur(a)),b=[a].concat(y).reduce(function(Xt,_t){return Xt.concat(k(_t)===me?Pi(t,{placement:_t,boundary:f,rootBoundary:_,padding:p,flipVariations:v,allowedAutoPlacements:h}):_t)},[]),T=t.rects.reference,A=t.rects.popper,w=new Map,L=!0,N=b[0],x=0;x<b.length;x++){var C=b[x],V=k(C),B=Z(C)===rt,St=[D,$].indexOf(V)>=0,Ot=St?"width":"height",U=F(t,{placement:C,boundary:f,rootBoundary:_,altBoundary:d,padding:p}),it=St?B?R:P:B?$:D;T[Ot]>A[Ot]&&(it=ie(it));var je=ie(it),wt=[];if(r&&wt.push(U[V]<=0),l&&wt.push(U[it]<=0,U[je]<=0),wt.every(function(Xt){return Xt})){N=C,L=!1;break}w.set(C,wt)}if(L)for(var ke=v?3:1,bi=function(_t){var he=b.find(function(We){var Ct=w.get(We);if(Ct)return Ct.slice(0,_t).every(function(Ti){return Ti})});if(he)return N=he,"break"},de=ke;de>0;de--){var He=bi(de);if(He==="break")break}t.placement!==N&&(t.modifiersData[n]._skip=!0,t.placement=N,t.reset=!0)}}var qe={name:"flip",enabled:!0,phase:"main",fn:qr,requiresIfExists:["offset"],data:{_skip:!1}};function Mn(i,t,e){return e===void 0&&(e={x:0,y:0}),{top:i.top-t.height-e.y,right:i.right-t.width+e.x,bottom:i.bottom-t.height+e.y,left:i.left-t.width-e.x}}function jn(i){return[D,R,$,P].some(function(t){return i[t]>=0})}function Gr(i){var t=i.state,e=i.name,n=t.rects.reference,o=t.rects.popper,r=t.modifiersData.preventOverflow,s=F(t,{elementContext:"reference"}),l=F(t,{altBoundary:!0}),u=Mn(s,n),p=Mn(l,o,r),f=jn(u),_=jn(p);t.modifiersData[e]={referenceClippingOffsets:u,popperEscapeOffsets:p,isReferenceHidden:f,hasPopperEscaped:_},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":f,"data-popper-escaped":_})}var Ge={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Gr};function Xr(i,t,e){var n=k(i),o=[P,D].indexOf(n)>=0?-1:1,r=typeof e=="function"?e(Object.assign({},t,{placement:i})):e,s=r[0],l=r[1];return s=s||0,l=(l||0)*o,[P,R].indexOf(n)>=0?{x:l,y:s}:{x:s,y:l}}function Qr(i){var t=i.state,e=i.options,n=i.name,o=e.offset,r=o===void 0?[0,0]:o,s=_e.reduce(function(f,_){return f[_]=Xr(_,t.rects,r),f},{}),l=s[t.placement],u=l.x,p=l.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=u,t.modifiersData.popperOffsets.y+=p),t.modifiersData[n]=s}var Xe={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Qr};function Zr(i){var t=i.state,e=i.name;t.modifiersData[e]=Ae({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}var oe={name:"popperOffsets",enabled:!0,phase:"read",fn:Zr,data:{}};function Ri(i){return i==="x"?"y":"x"}function Jr(i){var t=i.state,e=i.options,n=i.name,o=e.mainAxis,r=o===void 0?!0:o,s=e.altAxis,l=s===void 0?!1:s,u=e.boundary,p=e.rootBoundary,f=e.altBoundary,_=e.padding,d=e.tether,E=d===void 0?!0:d,v=e.tetherOffset,h=v===void 0?0:v,a=F(t,{boundary:u,rootBoundary:p,padding:_,altBoundary:f}),c=k(t.placement),m=Z(t.placement),y=!m,b=Pt(c),T=Ri(b),A=t.modifiersData.popperOffsets,w=t.rects.reference,L=t.rects.popper,N=typeof h=="function"?h(Object.assign({},t.rects,{placement:t.placement})):h,x=typeof N=="number"?{mainAxis:N,altAxis:N}:Object.assign({mainAxis:0,altAxis:0},N),C=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,V={x:0,y:0};if(!!A){if(r){var B,St=b==="y"?D:P,Ot=b==="y"?$:R,U=b==="y"?"height":"width",it=A[b],je=it+a[St],wt=it-a[Ot],ke=E?-L[U]/2:0,bi=m===rt?w[U]:L[U],de=m===rt?-L[U]:-w[U],He=t.elements.arrow,Xt=E&&He?It(He):{width:0,height:0},_t=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:ye(),he=_t[St],We=_t[Ot],Ct=Rt(0,w[U],Xt[U]),Ti=y?w[U]/2-ke-Ct-he-x.mainAxis:bi-Ct-he-x.mainAxis,_r=y?-w[U]/2+ke+Ct+We+x.mainAxis:de+Ct+We+x.mainAxis,Ai=t.elements.arrow&&ot(t.elements.arrow),Er=Ai?b==="y"?Ai.clientTop||0:Ai.clientLeft||0:0,un=(B=C==null?void 0:C[b])!=null?B:0,vr=it+Ti-un-Er,yr=it+_r-un,fn=Rt(E?Dt(je,vr):je,it,E?nt(wt,yr):wt);A[b]=fn,V[b]=fn-it}if(l){var dn,br=b==="x"?D:P,Tr=b==="x"?$:R,Lt=A[T],Ve=T==="y"?"height":"width",hn=Lt+a[br],pn=Lt-a[Tr],Si=[D,P].indexOf(c)!==-1,mn=(dn=C==null?void 0:C[T])!=null?dn:0,gn=Si?hn:Lt-w[Ve]-L[Ve]-mn+x.altAxis,_n=Si?Lt+w[Ve]+L[Ve]-mn-x.altAxis:pn,En=E&&Si?Pn(gn,Lt,_n):Rt(E?gn:hn,Lt,E?_n:pn);A[T]=En,V[T]=En-Lt}t.modifiersData[n]=V}}var Qe={name:"preventOverflow",enabled:!0,phase:"main",fn:Jr,requiresIfExists:["offset"]};function $i(i){return{scrollLeft:i.scrollLeft,scrollTop:i.scrollTop}}function Mi(i){return i===I(i)||!M(i)?$t(i):$i(i)}function ts(i){var t=i.getBoundingClientRect(),e=ut(t.width)/i.offsetWidth||1,n=ut(t.height)/i.offsetHeight||1;return e!==1||n!==1}function ji(i,t,e){e===void 0&&(e=!1);var n=M(t),o=M(t)&&ts(t),r=W(t),s=Q(i,o,e),l={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(n||!n&&!e)&&((j(t)!=="body"||jt(r))&&(l=Mi(t)),M(t)?(u=Q(t,!0),u.x+=t.clientLeft,u.y+=t.clientTop):r&&(u.x=Mt(r))),{x:s.left+l.scrollLeft-u.x,y:s.top+l.scrollTop-u.y,width:s.width,height:s.height}}function es(i){var t=new Map,e=new Set,n=[];i.forEach(function(r){t.set(r.name,r)});function o(r){e.add(r.name);var s=[].concat(r.requires||[],r.requiresIfExists||[]);s.forEach(function(l){if(!e.has(l)){var u=t.get(l);u&&o(u)}}),n.push(r)}return i.forEach(function(r){e.has(r.name)||o(r)}),n}function ki(i){var t=es(i);return Li.reduce(function(e,n){return e.concat(t.filter(function(o){return o.phase===n}))},[])}function Hi(i){var t;return function(){return t||(t=new Promise(function(e){Promise.resolve().then(function(){t=void 0,e(i())})})),t}}function Wi(i){var t=i.reduce(function(e,n){var o=e[n.name];return e[n.name]=o?Object.assign({},o,n,{options:Object.assign({},o.options,n.options),data:Object.assign({},o.data,n.data)}):n,e},{});return Object.keys(t).map(function(e){return t[e]})}var kn={placement:"bottom",modifiers:[],strategy:"absolute"};function Hn(){for(var i=arguments.length,t=new Array(i),e=0;e<i;e++)t[e]=arguments[e];return!t.some(function(n){return!(n&&typeof n.getBoundingClientRect=="function")})}function kt(i){i===void 0&&(i={});var t=i,e=t.defaultModifiers,n=e===void 0?[]:e,o=t.defaultOptions,r=o===void 0?kn:o;return function(l,u,p){p===void 0&&(p=r);var f={placement:"bottom",orderedModifiers:[],options:Object.assign({},kn,r),modifiersData:{},elements:{reference:l,popper:u},attributes:{},styles:{}},_=[],d=!1,E={state:f,setOptions:function(c){var m=typeof c=="function"?c(f.options):c;h(),f.options=Object.assign({},r,f.options,m),f.scrollParents={reference:X(l)?vt(l):l.contextElement?vt(l.contextElement):[],popper:vt(u)};var y=ki(Wi([].concat(n,f.options.modifiers)));if(f.orderedModifiers=y.filter(function(C){return C.enabled}),!1){var b;if(getBasePlacement(f.options.placement)===auto)var T;var A,w,L,N,x}return v(),E.update()},forceUpdate:function(){if(!d){var c=f.elements,m=c.reference,y=c.popper;if(!!Hn(m,y)){f.rects={reference:ji(m,ot(y),f.options.strategy==="fixed"),popper:It(y)},f.reset=!1,f.placement=f.options.placement,f.orderedModifiers.forEach(function(C){return f.modifiersData[C.name]=Object.assign({},C.data)});for(var b=0,T=0;T<f.orderedModifiers.length;T++){if(f.reset===!0){f.reset=!1,T=-1;continue}var A=f.orderedModifiers[T],w=A.fn,L=A.options,N=L===void 0?{}:L,x=A.name;typeof w=="function"&&(f=w({state:f,options:N,name:x,instance:E})||f)}}}},update:Hi(function(){return new Promise(function(a){E.forceUpdate(),a(f)})}),destroy:function(){h(),d=!0}};if(!Hn(l,u))return E;E.setOptions(p).then(function(a){!d&&p.onFirstUpdate&&p.onFirstUpdate(a)});function v(){f.orderedModifiers.forEach(function(a){var c=a.name,m=a.options,y=m===void 0?{}:m,b=a.effect;if(typeof b=="function"){var T=b({state:f,name:c,instance:E,options:y}),A=function(){};_.push(T||A)}})}function h(){_.forEach(function(a){return a()}),_=[]}return E}}var Wn=kt();var is=[ee,oe,te,Zt],Vn=kt({defaultModifiers:is});var ns=[ee,oe,te,Zt,Xe,qe,Qe,Fe,Ge],Ze=kt({defaultModifiers:ns});var os=3,S={find(i,t=document.documentElement){return[].concat(...Element.prototype.querySelectorAll.call(t,i))},findOne(i,t=document.documentElement){return Element.prototype.querySelector.call(t,i)},children(i,t){return[].concat(...i.children).filter(e=>e.matches(t))},parents(i,t){let e=[],n=i.parentNode;for(;n&&n.nodeType===Node.ELEMENT_NODE&&n.nodeType!==os;)n.matches(t)&&e.push(n),n=n.parentNode;return e},prev(i,t){let e=i.previousElementSibling;for(;e;){if(e.matches(t))return[e];e=e.previousElementSibling}return[]},next(i,t){let e=i.nextElementSibling;for(;e;){if(e.matches(t))return[e];e=e.nextElementSibling}return[]}},rs=1e6,ss=1e3,Vi="transitionend",as=i=>i==null?`${i}`:{}.toString.call(i).match(/\s([a-z]+)/i)[1].toLowerCase(),Bn=i=>{do i+=Math.floor(Math.random()*rs);while(document.getElementById(i));return i},zn=i=>{let t=i.getAttribute("data-bs-target");if(!t||t==="#"){let e=i.getAttribute("href");if(!e||!e.includes("#")&&!e.startsWith("."))return null;e.includes("#")&&!e.startsWith("#")&&(e=`#${e.split("#")[1]}`),t=e&&e!=="#"?e.trim():null}return t},Bi=i=>{let t=zn(i);return t&&document.querySelector(t)?t:null},yt=i=>{let t=zn(i);return t?document.querySelector(t):null},ls=i=>{if(!i)return 0;let{transitionDuration:t,transitionDelay:e}=window.getComputedStyle(i),n=Number.parseFloat(t),o=Number.parseFloat(e);return!n&&!o?0:(t=t.split(",")[0],e=e.split(",")[0],(Number.parseFloat(t)+Number.parseFloat(e))*ss)},Fn=i=>{i.dispatchEvent(new Event(Vi))},bt=i=>!i||typeof i!="object"?!1:(typeof i.jquery!="undefined"&&(i=i[0]),typeof i.nodeType!="undefined"),re=i=>bt(i)?i.jquery?i[0]:i:typeof i=="string"&&i.length>0?S.findOne(i):null,dt=(i,t,e)=>{Object.keys(e).forEach(n=>{let o=e[n],r=t[n],s=r&&bt(r)?"element":as(r);if(!new RegExp(o).test(s))throw new TypeError(`${i.toUpperCase()}: Option "${n}" provided type "${s}" but expected type "${o}".`)})},ti=i=>!bt(i)||i.getClientRects().length===0?!1:getComputedStyle(i).getPropertyValue("visibility")==="visible",se=i=>!i||i.nodeType!==Node.ELEMENT_NODE||i.classList.contains("disabled")?!0:typeof i.disabled!="undefined"?i.disabled:i.hasAttribute("disabled")&&i.getAttribute("disabled")!=="false",Yn=i=>{if(!document.documentElement.attachShadow)return null;if(typeof i.getRootNode=="function"){let t=i.getRootNode();return t instanceof ShadowRoot?t:null}return i instanceof ShadowRoot?i:i.parentNode?Yn(i.parentNode):null},ei=()=>{},ae=i=>i.offsetHeight,Kn=()=>{let{jQuery:i}=window;return i&&!document.body.hasAttribute("data-bs-no-jquery")?i:null},zi=[],cs=i=>{document.readyState==="loading"?(zi.length||document.addEventListener("DOMContentLoaded",()=>{zi.forEach(t=>t())}),zi.push(i)):i()},K=()=>document.documentElement.dir==="rtl",J=i=>{cs(()=>{let t=Kn();if(t){let e=i.NAME,n=t.fn[e];t.fn[e]=i.jQueryInterface,t.fn[e].Constructor=i,t.fn[e].noConflict=()=>(t.fn[e]=n,i.jQueryInterface)}})},Ht=i=>{typeof i=="function"&&i()},Un=(i,t,e=!0)=>{if(!e){Ht(i);return}let n=5,o=ls(t)+n,r=!1,s=({target:l})=>{l===t&&(r=!0,t.removeEventListener(Vi,s),Ht(i))};t.addEventListener(Vi,s),setTimeout(()=>{r||Fn(t)},o)},qn=(i,t,e,n)=>{let o=i.indexOf(t);if(o===-1)return i[!e&&n?i.length-1:0];let r=i.length;return o+=e?1:-1,n&&(o=(o+r)%r),i[Math.max(0,Math.min(o,r-1))]},us=/[^.]*(?=\..*)\.|.*/,fs=/\..*/,ds=/::\d+$/,Fi={},Gn=1,hs={mouseenter:"mouseover",mouseleave:"mouseout"},ps=/^(mouseenter|mouseleave)/i,Xn=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 Qn(i,t){return t&&`${t}::${Gn++}`||i.uidEvent||Gn++}function Zn(i){let t=Qn(i);return i.uidEvent=t,Fi[t]=Fi[t]||{},Fi[t]}function ms(i,t){return function e(n){return n.delegateTarget=i,e.oneOff&&g.off(i,n.type,t),t.apply(i,[n])}}function gs(i,t,e){return function n(o){let r=i.querySelectorAll(t);for(let{target:s}=o;s&&s!==this;s=s.parentNode)for(let l=r.length;l--;)if(r[l]===s)return o.delegateTarget=s,n.oneOff&&g.off(i,o.type,t,e),e.apply(s,[o]);return null}}function Jn(i,t,e=null){let n=Object.keys(i);for(let o=0,r=n.length;o<r;o++){let s=i[n[o]];if(s.originalHandler===t&&s.delegationSelector===e)return s}return null}function to(i,t,e){let n=typeof t=="string",o=n?e:t,r=io(i);return Xn.has(r)||(r=i),[n,o,r]}function eo(i,t,e,n,o){if(typeof t!="string"||!i)return;if(e||(e=n,n=null),ps.test(t)){let E=v=>function(h){if(!h.relatedTarget||h.relatedTarget!==h.delegateTarget&&!h.delegateTarget.contains(h.relatedTarget))return v.call(this,h)};n?n=E(n):e=E(e)}let[r,s,l]=to(t,e,n),u=Zn(i),p=u[l]||(u[l]={}),f=Jn(p,s,r?e:null);if(f){f.oneOff=f.oneOff&&o;return}let _=Qn(s,t.replace(us,"")),d=r?gs(i,e,n):ms(i,e);d.delegationSelector=r?e:null,d.originalHandler=s,d.oneOff=o,d.uidEvent=_,p[_]=d,i.addEventListener(l,d,r)}function Yi(i,t,e,n,o){let r=Jn(t[e],n,o);!r||(i.removeEventListener(e,r,Boolean(o)),delete t[e][r.uidEvent])}function _s(i,t,e,n){let o=t[e]||{};Object.keys(o).forEach(r=>{if(r.includes(n)){let s=o[r];Yi(i,t,e,s.originalHandler,s.delegationSelector)}})}function io(i){return i=i.replace(fs,""),hs[i]||i}var g={on(i,t,e,n){eo(i,t,e,n,!1)},one(i,t,e,n){eo(i,t,e,n,!0)},off(i,t,e,n){if(typeof t!="string"||!i)return;let[o,r,s]=to(t,e,n),l=s!==t,u=Zn(i),p=t.startsWith(".");if(typeof r!="undefined"){if(!u||!u[s])return;Yi(i,u,s,r,o?e:null);return}p&&Object.keys(u).forEach(_=>{_s(i,u,_,t.slice(1))});let f=u[s]||{};Object.keys(f).forEach(_=>{let d=_.replace(ds,"");if(!l||t.includes(d)){let E=f[_];Yi(i,u,s,E.originalHandler,E.delegationSelector)}})},trigger(i,t,e){if(typeof t!="string"||!i)return null;let n=Kn(),o=io(t),r=t!==o,s=Xn.has(o),l,u=!0,p=!0,f=!1,_=null;return r&&n&&(l=n.Event(t,e),n(i).trigger(l),u=!l.isPropagationStopped(),p=!l.isImmediatePropagationStopped(),f=l.isDefaultPrevented()),s?(_=document.createEvent("HTMLEvents"),_.initEvent(o,u,!0)):_=new CustomEvent(t,{bubbles:u,cancelable:!0}),typeof e!="undefined"&&Object.keys(e).forEach(d=>{Object.defineProperty(_,d,{get(){return e[d]}})}),f&&_.preventDefault(),p&&i.dispatchEvent(_),_.defaultPrevented&&typeof l!="undefined"&&l.preventDefault(),_}},Tt=new Map,Wt={set(i,t,e){Tt.has(i)||Tt.set(i,new Map);let n=Tt.get(i);if(!n.has(t)&&n.size!==0){console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(n.keys())[0]}.`);return}n.set(t,e)},get(i,t){return Tt.has(i)&&Tt.get(i).get(t)||null},remove(i,t){if(!Tt.has(i))return;let e=Tt.get(i);e.delete(t),e.size===0&&Tt.delete(i)}},Es="5.0.2",tt=class{constructor(t){t=re(t),!!t&&(this._element=t,Wt.set(this._element,this.constructor.DATA_KEY,this))}dispose(){Wt.remove(this._element,this.constructor.DATA_KEY),g.off(this._element,this.constructor.EVENT_KEY),Object.getOwnPropertyNames(this).forEach(t=>{this[t]=null})}_queueCallback(t,e,n=!0){Un(t,e,n)}static getInstance(t){return Wt.get(t,this.DATA_KEY)}static getOrCreateInstance(t,e={}){return this.getInstance(t)||new this(t,typeof e=="object"?e:null)}static get VERSION(){return Es}static get NAME(){throw new Error('You have to implement the static method "NAME", for each component!')}static get DATA_KEY(){return`bs.${this.NAME}`}static get EVENT_KEY(){return`.${this.DATA_KEY}`}},vs="alert",ys="bs.alert",Ki=`.${ys}`,bs=".data-api",Ts='[data-bs-dismiss="alert"]',As=`close${Ki}`,Ss=`closed${Ki}`,Os=`click${Ki}${bs}`,ws="alert",Cs="fade",Ls="show",le=class extends tt{static get NAME(){return vs}close(t){let e=t?this._getRootElement(t):this._element,n=this._triggerCloseEvent(e);n===null||n.defaultPrevented||this._removeElement(e)}_getRootElement(t){return yt(t)||t.closest(`.${ws}`)}_triggerCloseEvent(t){return g.trigger(t,As)}_removeElement(t){t.classList.remove(Ls);let e=t.classList.contains(Cs);this._queueCallback(()=>this._destroyElement(t),t,e)}_destroyElement(t){t.remove(),g.trigger(t,Ss)}static jQueryInterface(t){return this.each(function(){let e=le.getOrCreateInstance(this);t==="close"&&e[t](this)})}static handleDismiss(t){return function(e){e&&e.preventDefault(),t.close(this)}}};g.on(document,Os,Ts,le.handleDismiss(new le));J(le);var Ns="button",xs="bs.button",Ds=`.${xs}`,Is=".data-api",Ps="active",no='[data-bs-toggle="button"]',Rs=`click${Ds}${Is}`,Se=class extends tt{static get NAME(){return Ns}toggle(){this._element.setAttribute("aria-pressed",this._element.classList.toggle(Ps))}static jQueryInterface(t){return this.each(function(){let e=Se.getOrCreateInstance(this);t==="toggle"&&e[t]()})}};g.on(document,Rs,no,i=>{i.preventDefault();let t=i.target.closest(no);Se.getOrCreateInstance(t).toggle()});J(Se);function oo(i){return i==="true"?!0:i==="false"?!1:i===Number(i).toString()?Number(i):i===""||i==="null"?null:i}function Ui(i){return i.replace(/[A-Z]/g,t=>`-${t.toLowerCase()}`)}var H={setDataAttribute(i,t,e){i.setAttribute(`data-bs-${Ui(t)}`,e)},removeDataAttribute(i,t){i.removeAttribute(`data-bs-${Ui(t)}`)},getDataAttributes(i){if(!i)return{};let t={};return Object.keys(i.dataset).filter(e=>e.startsWith("bs")).forEach(e=>{let n=e.replace(/^bs/,"");n=n.charAt(0).toLowerCase()+n.slice(1,n.length),t[n]=oo(i.dataset[e])}),t},getDataAttribute(i,t){return oo(i.getAttribute(`data-bs-${Ui(t)}`))},offset(i){let t=i.getBoundingClientRect();return{top:t.top+document.body.scrollTop,left:t.left+document.body.scrollLeft}},position(i){return{top:i.offsetTop,left:i.offsetLeft}}},ro="carousel",$s="bs.carousel",q=`.${$s}`,so=".data-api",Ms="ArrowLeft",js="ArrowRight",ks=500,Hs=40,ao={interval:5e3,keyboard:!0,slide:!1,pause:"hover",wrap:!0,touch:!0},Ws={interval:"(number|boolean)",keyboard:"boolean",slide:"(boolean|string)",pause:"(string|boolean)",wrap:"boolean",touch:"boolean"},Vt="next",Bt="prev",zt="left",Oe="right",Vs={[Ms]:Oe,[js]:zt},Bs=`slide${q}`,lo=`slid${q}`,zs=`keydown${q}`,Fs=`mouseenter${q}`,Ys=`mouseleave${q}`,Ks=`touchstart${q}`,Us=`touchmove${q}`,qs=`touchend${q}`,Gs=`pointerdown${q}`,Xs=`pointerup${q}`,Qs=`dragstart${q}`,Zs=`load${q}${so}`,Js=`click${q}${so}`,ta="carousel",Ft="active",ea="slide",ia="carousel-item-end",na="carousel-item-start",oa="carousel-item-next",ra="carousel-item-prev",sa="pointer-event",aa=".active",ii=".active.carousel-item",la=".carousel-item",ca=".carousel-item img",ua=".carousel-item-next, .carousel-item-prev",fa=".carousel-indicators",da="[data-bs-target]",ha="[data-bs-slide], [data-bs-slide-to]",pa='[data-bs-ride="carousel"]',co="touch",uo="pen",st=class extends tt{constructor(t,e){super(t);this._items=null,this._interval=null,this._activeElement=null,this._isPaused=!1,this._isSliding=!1,this.touchTimeout=null,this.touchStartX=0,this.touchDeltaX=0,this._config=this._getConfig(e),this._indicatorsElement=S.findOne(fa,this._element),this._touchSupported="ontouchstart"in document.documentElement||navigator.maxTouchPoints>0,this._pointerEvent=Boolean(window.PointerEvent),this._addEventListeners()}static get Default(){return ao}static get NAME(){return ro}next(){this._slide(Vt)}nextWhenVisible(){!document.hidden&&ti(this._element)&&this.next()}prev(){this._slide(Bt)}pause(t){t||(this._isPaused=!0),S.findOne(ua,this._element)&&(Fn(this._element),this.cycle(!0)),clearInterval(this._interval),this._interval=null}cycle(t){t||(this._isPaused=!1),this._interval&&(clearInterval(this._interval),this._interval=null),this._config&&this._config.interval&&!this._isPaused&&(this._updateInterval(),this._interval=setInterval((document.visibilityState?this.nextWhenVisible:this.next).bind(this),this._config.interval))}to(t){this._activeElement=S.findOne(ii,this._element);let e=this._getItemIndex(this._activeElement);if(t>this._items.length-1||t<0)return;if(this._isSliding){g.one(this._element,lo,()=>this.to(t));return}if(e===t){this.pause(),this.cycle();return}let n=t>e?Vt:Bt;this._slide(n,this._items[t])}_getConfig(t){return t=O(O(O({},ao),H.getDataAttributes(this._element)),typeof t=="object"?t:{}),dt(ro,t,Ws),t}_handleSwipe(){let t=Math.abs(this.touchDeltaX);if(t<=Hs)return;let e=t/this.touchDeltaX;this.touchDeltaX=0,!!e&&this._slide(e>0?Oe:zt)}_addEventListeners(){this._config.keyboard&&g.on(this._element,zs,t=>this._keydown(t)),this._config.pause==="hover"&&(g.on(this._element,Fs,t=>this.pause(t)),g.on(this._element,Ys,t=>this.cycle(t))),this._config.touch&&this._touchSupported&&this._addTouchEventListeners()}_addTouchEventListeners(){let t=o=>{this._pointerEvent&&(o.pointerType===uo||o.pointerType===co)?this.touchStartX=o.clientX:this._pointerEvent||(this.touchStartX=o.touches[0].clientX)},e=o=>{this.touchDeltaX=o.touches&&o.touches.length>1?0:o.touches[0].clientX-this.touchStartX},n=o=>{this._pointerEvent&&(o.pointerType===uo||o.pointerType===co)&&(this.touchDeltaX=o.clientX-this.touchStartX),this._handleSwipe(),this._config.pause==="hover"&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout(r=>this.cycle(r),ks+this._config.interval))};S.find(ca,this._element).forEach(o=>{g.on(o,Qs,r=>r.preventDefault())}),this._pointerEvent?(g.on(this._element,Gs,o=>t(o)),g.on(this._element,Xs,o=>n(o)),this._element.classList.add(sa)):(g.on(this._element,Ks,o=>t(o)),g.on(this._element,Us,o=>e(o)),g.on(this._element,qs,o=>n(o)))}_keydown(t){if(/input|textarea/i.test(t.target.tagName))return;let e=Vs[t.key];e&&(t.preventDefault(),this._slide(e))}_getItemIndex(t){return this._items=t&&t.parentNode?S.find(la,t.parentNode):[],this._items.indexOf(t)}_getItemByOrder(t,e){let n=t===Vt;return qn(this._items,e,n,this._config.wrap)}_triggerSlideEvent(t,e){let n=this._getItemIndex(t),o=this._getItemIndex(S.findOne(ii,this._element));return g.trigger(this._element,Bs,{relatedTarget:t,direction:e,from:o,to:n})}_setActiveIndicatorElement(t){if(this._indicatorsElement){let e=S.findOne(aa,this._indicatorsElement);e.classList.remove(Ft),e.removeAttribute("aria-current");let n=S.find(da,this._indicatorsElement);for(let o=0;o<n.length;o++)if(Number.parseInt(n[o].getAttribute("data-bs-slide-to"),10)===this._getItemIndex(t)){n[o].classList.add(Ft),n[o].setAttribute("aria-current","true");break}}}_updateInterval(){let t=this._activeElement||S.findOne(ii,this._element);if(!t)return;let e=Number.parseInt(t.getAttribute("data-bs-interval"),10);e?(this._config.defaultInterval=this._config.defaultInterval||this._config.interval,this._config.interval=e):this._config.interval=this._config.defaultInterval||this._config.interval}_slide(t,e){let n=this._directionToOrder(t),o=S.findOne(ii,this._element),r=this._getItemIndex(o),s=e||this._getItemByOrder(n,o),l=this._getItemIndex(s),u=Boolean(this._interval),p=n===Vt,f=p?na:ia,_=p?oa:ra,d=this._orderToDirection(n);if(s&&s.classList.contains(Ft)){this._isSliding=!1;return}if(this._isSliding||this._triggerSlideEvent(s,d).defaultPrevented||!o||!s)return;this._isSliding=!0,u&&this.pause(),this._setActiveIndicatorElement(s),this._activeElement=s;let v=()=>{g.trigger(this._element,lo,{relatedTarget:s,direction:d,from:r,to:l})};if(this._element.classList.contains(ea)){s.classList.add(_),ae(s),o.classList.add(f),s.classList.add(f);let h=()=>{s.classList.remove(f,_),s.classList.add(Ft),o.classList.remove(Ft,_,f),this._isSliding=!1,setTimeout(v,0)};this._queueCallback(h,o,!0)}else o.classList.remove(Ft),s.classList.add(Ft),this._isSliding=!1,v();u&&this.cycle()}_directionToOrder(t){return[Oe,zt].includes(t)?K()?t===zt?Bt:Vt:t===zt?Vt:Bt:t}_orderToDirection(t){return[Vt,Bt].includes(t)?K()?t===Bt?zt:Oe:t===Bt?Oe:zt:t}static carouselInterface(t,e){let n=st.getOrCreateInstance(t,e),{_config:o}=n;typeof e=="object"&&(o=O(O({},o),e));let r=typeof e=="string"?e:o.slide;if(typeof e=="number")n.to(e);else if(typeof r=="string"){if(typeof n[r]=="undefined")throw new TypeError(`No method named "${r}"`);n[r]()}else o.interval&&o.ride&&(n.pause(),n.cycle())}static jQueryInterface(t){return this.each(function(){st.carouselInterface(this,t)})}static dataApiClickHandler(t){let e=yt(this);if(!e||!e.classList.contains(ta))return;let n=O(O({},H.getDataAttributes(e)),H.getDataAttributes(this)),o=this.getAttribute("data-bs-slide-to");o&&(n.interval=!1),st.carouselInterface(e,n),o&&st.getInstance(e).to(o),t.preventDefault()}};g.on(document,Js,ha,st.dataApiClickHandler);g.on(window,Zs,()=>{let i=S.find(pa);for(let t=0,e=i.length;t<e;t++)st.carouselInterface(i[t],st.getInstance(i[t]))});J(st);var fo="collapse",ho="bs.collapse",we=`.${ho}`,ma=".data-api",qi={toggle:!0,parent:""},ga={toggle:"boolean",parent:"(string|element)"},_a=`show${we}`,Ea=`shown${we}`,va=`hide${we}`,ya=`hidden${we}`,ba=`click${we}${ma}`,Yt="show",Ce="collapse",ni="collapsing",oi="collapsed",po="width",Ta="height",Aa=".show, .collapsing",Le='[data-bs-toggle="collapse"]',et=class extends tt{constructor(t,e){super(t);this._isTransitioning=!1,this._config=this._getConfig(e),this._triggerArray=S.find(`${Le}[href="#${this._element.id}"],${Le}[data-bs-target="#${this._element.id}"]`);let n=S.find(Le);for(let o=0,r=n.length;o<r;o++){let s=n[o],l=Bi(s),u=S.find(l).filter(p=>p===this._element);l!==null&&u.length&&(this._selector=l,this._triggerArray.push(s))}this._parent=this._config.parent?this._getParent():null,this._config.parent||this._addAriaAndCollapsedClass(this._element,this._triggerArray),this._config.toggle&&this.toggle()}static get Default(){return qi}static get NAME(){return fo}toggle(){this._element.classList.contains(Yt)?this.hide():this.show()}show(){if(this._isTransitioning||this._element.classList.contains(Yt))return;let t,e;this._parent&&(t=S.find(Aa,this._parent).filter(p=>typeof this._config.parent=="string"?p.getAttribute("data-bs-parent")===this._config.parent:p.classList.contains(Ce)),t.length===0&&(t=null));let n=S.findOne(this._selector);if(t){let p=t.find(f=>n!==f);if(e=p?et.getInstance(p):null,e&&e._isTransitioning)return}if(g.trigger(this._element,_a).defaultPrevented)return;t&&t.forEach(p=>{n!==p&&et.collapseInterface(p,"hide"),e||Wt.set(p,ho,null)});let r=this._getDimension();this._element.classList.remove(Ce),this._element.classList.add(ni),this._element.style[r]=0,this._triggerArray.length&&this._triggerArray.forEach(p=>{p.classList.remove(oi),p.setAttribute("aria-expanded",!0)}),this.setTransitioning(!0);let s=()=>{this._element.classList.remove(ni),this._element.classList.add(Ce,Yt),this._element.style[r]="",this.setTransitioning(!1),g.trigger(this._element,Ea)},u=`scroll${r[0].toUpperCase()+r.slice(1)}`;this._queueCallback(s,this._element,!0),this._element.style[r]=`${this._element[u]}px`}hide(){if(this._isTransitioning||!this._element.classList.contains(Yt)||g.trigger(this._element,va).defaultPrevented)return;let e=this._getDimension();this._element.style[e]=`${this._element.getBoundingClientRect()[e]}px`,ae(this._element),this._element.classList.add(ni),this._element.classList.remove(Ce,Yt);let n=this._triggerArray.length;if(n>0)for(let r=0;r<n;r++){let s=this._triggerArray[r],l=yt(s);l&&!l.classList.contains(Yt)&&(s.classList.add(oi),s.setAttribute("aria-expanded",!1))}this.setTransitioning(!0);let o=()=>{this.setTransitioning(!1),this._element.classList.remove(ni),this._element.classList.add(Ce),g.trigger(this._element,ya)};this._element.style[e]="",this._queueCallback(o,this._element,!0)}setTransitioning(t){this._isTransitioning=t}_getConfig(t){return t=O(O({},qi),t),t.toggle=Boolean(t.toggle),dt(fo,t,ga),t}_getDimension(){return this._element.classList.contains(po)?po:Ta}_getParent(){let{parent:t}=this._config;t=re(t);let e=`${Le}[data-bs-parent="${t}"]`;return S.find(e,t).forEach(n=>{let o=yt(n);this._addAriaAndCollapsedClass(o,[n])}),t}_addAriaAndCollapsedClass(t,e){if(!t||!e.length)return;let n=t.classList.contains(Yt);e.forEach(o=>{n?o.classList.remove(oi):o.classList.add(oi),o.setAttribute("aria-expanded",n)})}static collapseInterface(t,e){let n=et.getInstance(t),o=O(O(O({},qi),H.getDataAttributes(t)),typeof e=="object"&&e?e:{});if(!n&&o.toggle&&typeof e=="string"&&/show|hide/.test(e)&&(o.toggle=!1),n||(n=new et(t,o)),typeof e=="string"){if(typeof n[e]=="undefined")throw new TypeError(`No method named "${e}"`);n[e]()}}static jQueryInterface(t){return this.each(function(){et.collapseInterface(this,t)})}};g.on(document,ba,Le,function(i){(i.target.tagName==="A"||i.delegateTarget&&i.delegateTarget.tagName==="A")&&i.preventDefault();let t=H.getDataAttributes(this),e=Bi(this);S.find(e).forEach(o=>{let r=et.getInstance(o),s;r?(r._parent===null&&typeof t.parent=="string"&&(r._config.parent=t.parent,r._parent=r._getParent()),s="toggle"):s=t,et.collapseInterface(o,s)})});J(et);var Gi="dropdown",Sa="bs.dropdown",At=`.${Sa}`,Xi=".data-api",ri="Escape",mo="Space",go="Tab",Qi="ArrowUp",si="ArrowDown",Oa=2,wa=new RegExp(`${Qi}|${si}|${ri}`),Ca=`hide${At}`,La=`hidden${At}`,Na=`show${At}`,xa=`shown${At}`,Da=`click${At}`,_o=`click${At}${Xi}`,Eo=`keydown${At}${Xi}`,Ia=`keyup${At}${Xi}`,ht="show",Pa="dropup",Ra="dropend",$a="dropstart",Ma="navbar",Ne='[data-bs-toggle="dropdown"]',Zi=".dropdown-menu",ja=".navbar-nav",ka=".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",Ha=K()?"top-end":"top-start",Wa=K()?"top-start":"top-end",Va=K()?"bottom-end":"bottom-start",Ba=K()?"bottom-start":"bottom-end",za=K()?"left-start":"right-start",Fa=K()?"right-start":"left-start",Ya={offset:[0,2],boundary:"clippingParents",reference:"toggle",display:"dynamic",popperConfig:null,autoClose:!0},Ka={offset:"(array|string|function)",boundary:"(string|element)",reference:"(string|element|object)",display:"string",popperConfig:"(null|object|function)",autoClose:"(boolean|string)"},Y=class extends tt{constructor(t,e){super(t);this._popper=null,this._config=this._getConfig(e),this._menu=this._getMenuElement(),this._inNavbar=this._detectNavbar(),this._addEventListeners()}static get Default(){return Ya}static get DefaultType(){return Ka}static get NAME(){return Gi}toggle(){if(se(this._element))return;if(this._element.classList.contains(ht)){this.hide();return}this.show()}show(){if(se(this._element)||this._menu.classList.contains(ht))return;let t=Y.getParentFromElement(this._element),e={relatedTarget:this._element};if(!g.trigger(this._element,Na,e).defaultPrevented){if(this._inNavbar)H.setDataAttribute(this._menu,"popper","none");else{if(typeof Je=="undefined")throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org)");let o=this._element;this._config.reference==="parent"?o=t:bt(this._config.reference)?o=re(this._config.reference):typeof this._config.reference=="object"&&(o=this._config.reference);let r=this._getPopperConfig(),s=r.modifiers.find(l=>l.name==="applyStyles"&&l.enabled===!1);this._popper=Ze(o,this._menu,r),s&&H.setDataAttribute(this._menu,"popper","static")}"ontouchstart"in document.documentElement&&!t.closest(ja)&&[].concat(...document.body.children).forEach(o=>g.on(o,"mouseover",ei)),this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.toggle(ht),this._element.classList.toggle(ht),g.trigger(this._element,xa,e)}}hide(){if(se(this._element)||!this._menu.classList.contains(ht))return;let 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()}_addEventListeners(){g.on(this._element,Da,t=>{t.preventDefault(),this.toggle()})}_completeHide(t){g.trigger(this._element,Ca,t).defaultPrevented||("ontouchstart"in document.documentElement&&[].concat(...document.body.children).forEach(n=>g.off(n,"mouseover",ei)),this._popper&&this._popper.destroy(),this._menu.classList.remove(ht),this._element.classList.remove(ht),this._element.setAttribute("aria-expanded","false"),H.removeDataAttribute(this._menu,"popper"),g.trigger(this._element,La,t))}_getConfig(t){if(t=O(O(O({},this.constructor.Default),H.getDataAttributes(this._element)),t),dt(Gi,t,this.constructor.DefaultType),typeof t.reference=="object"&&!bt(t.reference)&&typeof t.reference.getBoundingClientRect!="function")throw new TypeError(`${Gi.toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`);return t}_getMenuElement(){return S.next(this._element,Zi)[0]}_getPlacement(){let t=this._element.parentNode;if(t.classList.contains(Ra))return za;if(t.classList.contains($a))return Fa;let e=getComputedStyle(this._menu).getPropertyValue("--bs-position").trim()==="end";return t.classList.contains(Pa)?e?Wa:Ha:e?Ba:Va}_detectNavbar(){return this._element.closest(`.${Ma}`)!==null}_getOffset(){let{offset:t}=this._config;return typeof t=="string"?t.split(",").map(e=>Number.parseInt(e,10)):typeof t=="function"?e=>t(e,this._element):t}_getPopperConfig(){let t={placement:this._getPlacement(),modifiers:[{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"offset",options:{offset:this._getOffset()}}]};return this._config.display==="static"&&(t.modifiers=[{name:"applyStyles",enabled:!1}]),O(O({},t),typeof this._config.popperConfig=="function"?this._config.popperConfig(t):this._config.popperConfig)}_selectMenuItem({key:t,target:e}){let n=S.find(ka,this._menu).filter(ti);!n.length||qn(n,e,t===si,!n.includes(e)).focus()}static dropdownInterface(t,e){let n=Y.getOrCreateInstance(t,e);if(typeof e=="string"){if(typeof n[e]=="undefined")throw new TypeError(`No method named "${e}"`);n[e]()}}static jQueryInterface(t){return this.each(function(){Y.dropdownInterface(this,t)})}static clearMenus(t){if(t&&(t.button===Oa||t.type==="keyup"&&t.key!==go))return;let e=S.find(Ne);for(let n=0,o=e.length;n<o;n++){let r=Y.getInstance(e[n]);if(!r||r._config.autoClose===!1||!r._element.classList.contains(ht))continue;let s={relatedTarget:r._element};if(t){let l=t.composedPath(),u=l.includes(r._menu);if(l.includes(r._element)||r._config.autoClose==="inside"&&!u||r._config.autoClose==="outside"&&u||r._menu.contains(t.target)&&(t.type==="keyup"&&t.key===go||/input|select|option|textarea|form/i.test(t.target.tagName)))continue;t.type==="click"&&(s.clickEvent=t)}r._completeHide(s)}}static getParentFromElement(t){return yt(t)||t.parentNode}static dataApiKeydownHandler(t){if(/input|textarea/i.test(t.target.tagName)?t.key===mo||t.key!==ri&&(t.key!==si&&t.key!==Qi||t.target.closest(Zi)):!wa.test(t.key))return;let e=this.classList.contains(ht);if(!e&&t.key===ri||(t.preventDefault(),t.stopPropagation(),se(this)))return;let n=()=>this.matches(Ne)?this:S.prev(this,Ne)[0];if(t.key===ri){n().focus(),Y.clearMenus();return}if(t.key===Qi||t.key===si){e||n().click(),Y.getInstance(n())._selectMenuItem(t);return}(!e||t.key===mo)&&Y.clearMenus()}};g.on(document,Eo,Ne,Y.dataApiKeydownHandler);g.on(document,Eo,Zi,Y.dataApiKeydownHandler);g.on(document,_o,Y.clearMenus);g.on(document,Ia,Y.clearMenus);g.on(document,_o,Ne,function(i){i.preventDefault(),Y.dropdownInterface(this)});J(Y);var vo=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",yo=".sticky-top",ai=class{constructor(){this._element=document.body}getWidth(){let t=document.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}hide(){let t=this.getWidth();this._disableOverFlow(),this._setElementAttributes(this._element,"paddingRight",e=>e+t),this._setElementAttributes(vo,"paddingRight",e=>e+t),this._setElementAttributes(yo,"marginRight",e=>e-t)}_disableOverFlow(){this._saveInitialAttribute(this._element,"overflow"),this._element.style.overflow="hidden"}_setElementAttributes(t,e,n){let o=this.getWidth(),r=s=>{if(s!==this._element&&window.innerWidth>s.clientWidth+o)return;this._saveInitialAttribute(s,e);let l=window.getComputedStyle(s)[e];s.style[e]=`${n(Number.parseFloat(l))}px`};this._applyManipulationCallback(t,r)}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,"paddingRight"),this._resetElementAttributes(vo,"paddingRight"),this._resetElementAttributes(yo,"marginRight")}_saveInitialAttribute(t,e){let n=t.style[e];n&&H.setDataAttribute(t,e,n)}_resetElementAttributes(t,e){let n=o=>{let r=H.getDataAttribute(o,e);typeof r=="undefined"?o.style.removeProperty(e):(H.removeDataAttribute(o,e),o.style[e]=r)};this._applyManipulationCallback(t,n)}_applyManipulationCallback(t,e){bt(t)?e(t):S.find(t,this._element).forEach(e)}isOverflowing(){return this.getWidth()>0}},Ua={isVisible:!0,isAnimated:!1,rootElement:"body",clickCallback:null},qa={isVisible:"boolean",isAnimated:"boolean",rootElement:"(element|string)",clickCallback:"(function|null)"},bo="backdrop",Ga="modal-backdrop",Xa="fade",To="show",Ao=`mousedown.bs.${bo}`,Ji=class{constructor(t){this._config=this._getConfig(t),this._isAppended=!1,this._element=null}show(t){if(!this._config.isVisible){Ht(t);return}this._append(),this._config.isAnimated&&ae(this._getElement()),this._getElement().classList.add(To),this._emulateAnimation(()=>{Ht(t)})}hide(t){if(!this._config.isVisible){Ht(t);return}this._getElement().classList.remove(To),this._emulateAnimation(()=>{this.dispose(),Ht(t)})}_getElement(){if(!this._element){let t=document.createElement("div");t.className=Ga,this._config.isAnimated&&t.classList.add(Xa),this._element=t}return this._element}_getConfig(t){return t=O(O({},Ua),typeof t=="object"?t:{}),t.rootElement=re(t.rootElement),dt(bo,t,qa),t}_append(){this._isAppended||(this._config.rootElement.appendChild(this._getElement()),g.on(this._getElement(),Ao,()=>{Ht(this._config.clickCallback)}),this._isAppended=!0)}dispose(){!this._isAppended||(g.off(this._element,Ao),this._element.remove(),this._isAppended=!1)}_emulateAnimation(t){Un(t,this._getElement(),this._config.isAnimated)}},So="modal",Qa="bs.modal",G=`.${Qa}`,Za=".data-api",Oo="Escape",wo={backdrop:!0,keyboard:!0,focus:!0},Ja={backdrop:"(boolean|string)",keyboard:"boolean",focus:"boolean"},tl=`hide${G}`,el=`hidePrevented${G}`,Co=`hidden${G}`,Lo=`show${G}`,il=`shown${G}`,li=`focusin${G}`,No=`resize${G}`,tn=`click.dismiss${G}`,xo=`keydown.dismiss${G}`,nl=`mouseup.dismiss${G}`,Do=`mousedown.dismiss${G}`,ol=`click${G}${Za}`,Io="modal-open",rl="fade",Po="show",en="modal-static",sl=".modal-dialog",al=".modal-body",ll='[data-bs-toggle="modal"]',cl='[data-bs-dismiss="modal"]',Kt=class extends tt{constructor(t,e){super(t);this._config=this._getConfig(e),this._dialog=S.findOne(sl,this._element),this._backdrop=this._initializeBackDrop(),this._isShown=!1,this._ignoreBackdropClick=!1,this._isTransitioning=!1,this._scrollBar=new ai}static get Default(){return wo}static get NAME(){return So}toggle(t){return this._isShown?this.hide():this.show(t)}show(t){this._isShown||this._isTransitioning||g.trigger(this._element,Lo,{relatedTarget:t}).defaultPrevented||(this._isShown=!0,this._isAnimated()&&(this._isTransitioning=!0),this._scrollBar.hide(),document.body.classList.add(Io),this._adjustDialog(),this._setEscapeEvent(),this._setResizeEvent(),g.on(this._element,tn,cl,n=>this.hide(n)),g.on(this._dialog,Do,()=>{g.one(this._element,nl,n=>{n.target===this._element&&(this._ignoreBackdropClick=!0)})}),this._showBackdrop(()=>this._showElement(t)))}hide(t){if(t&&["A","AREA"].includes(t.target.tagName)&&t.preventDefault(),!this._isShown||this._isTransitioning||g.trigger(this._element,tl).defaultPrevented)return;this._isShown=!1;let n=this._isAnimated();n&&(this._isTransitioning=!0),this._setEscapeEvent(),this._setResizeEvent(),g.off(document,li),this._element.classList.remove(Po),g.off(this._element,tn),g.off(this._dialog,Do),this._queueCallback(()=>this._hideModal(),this._element,n)}dispose(){[window,this._dialog].forEach(t=>g.off(t,G)),this._backdrop.dispose(),super.dispose(),g.off(document,li)}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new Ji({isVisible:Boolean(this._config.backdrop),isAnimated:this._isAnimated()})}_getConfig(t){return t=O(O(O({},wo),H.getDataAttributes(this._element)),typeof t=="object"?t:{}),dt(So,t,Ja),t}_showElement(t){let e=this._isAnimated(),n=S.findOne(al,this._dialog);(!this._element.parentNode||this._element.parentNode.nodeType!==Node.ELEMENT_NODE)&&document.body.appendChild(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.scrollTop=0,n&&(n.scrollTop=0),e&&ae(this._element),this._element.classList.add(Po),this._config.focus&&this._enforceFocus();let o=()=>{this._config.focus&&this._element.focus(),this._isTransitioning=!1,g.trigger(this._element,il,{relatedTarget:t})};this._queueCallback(o,this._dialog,e)}_enforceFocus(){g.off(document,li),g.on(document,li,t=>{document!==t.target&&this._element!==t.target&&!this._element.contains(t.target)&&this._element.focus()})}_setEscapeEvent(){this._isShown?g.on(this._element,xo,t=>{this._config.keyboard&&t.key===Oo?(t.preventDefault(),this.hide()):!this._config.keyboard&&t.key===Oo&&this._triggerBackdropTransition()}):g.off(this._element,xo)}_setResizeEvent(){this._isShown?g.on(window,No,()=>this._adjustDialog()):g.off(window,No)}_hideModal(){this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._isTransitioning=!1,this._backdrop.hide(()=>{document.body.classList.remove(Io),this._resetAdjustments(),this._scrollBar.reset(),g.trigger(this._element,Co)})}_showBackdrop(t){g.on(this._element,tn,e=>{if(this._ignoreBackdropClick){this._ignoreBackdropClick=!1;return}e.target===e.currentTarget&&(this._config.backdrop===!0?this.hide():this._config.backdrop==="static"&&this._triggerBackdropTransition())}),this._backdrop.show(t)}_isAnimated(){return this._element.classList.contains(rl)}_triggerBackdropTransition(){if(g.trigger(this._element,el).defaultPrevented)return;let{classList:e,scrollHeight:n,style:o}=this._element,r=n>document.documentElement.clientHeight;!r&&o.overflowY==="hidden"||e.contains(en)||(r||(o.overflowY="hidden"),e.add(en),this._queueCallback(()=>{e.remove(en),r||this._queueCallback(()=>{o.overflowY=""},this._dialog)},this._dialog),this._element.focus())}_adjustDialog(){let t=this._element.scrollHeight>document.documentElement.clientHeight,e=this._scrollBar.getWidth(),n=e>0;(!n&&t&&!K()||n&&!t&&K())&&(this._element.style.paddingLeft=`${e}px`),(n&&!t&&!K()||!n&&t&&K())&&(this._element.style.paddingRight=`${e}px`)}_resetAdjustments(){this._element.style.paddingLeft="",this._element.style.paddingRight=""}static jQueryInterface(t,e){return this.each(function(){let n=Kt.getOrCreateInstance(this,t);if(typeof t=="string"){if(typeof n[t]=="undefined")throw new TypeError(`No method named "${t}"`);n[t](e)}})}};g.on(document,ol,ll,function(i){let t=yt(this);["A","AREA"].includes(this.tagName)&&i.preventDefault(),g.one(t,Lo,n=>{n.defaultPrevented||g.one(t,Co,()=>{ti(this)&&this.focus()})}),Kt.getOrCreateInstance(t).toggle(this)});J(Kt);var Ro="offcanvas",ul="bs.offcanvas",pt=`.${ul}`,$o=".data-api",fl=`load${pt}${$o}`,dl="Escape",Mo={backdrop:!0,keyboard:!0,scroll:!1},hl={backdrop:"boolean",keyboard:"boolean",scroll:"boolean"},jo="show",ko=".offcanvas.show",pl=`show${pt}`,ml=`shown${pt}`,gl=`hide${pt}`,Ho=`hidden${pt}`,ci=`focusin${pt}`,_l=`click${pt}${$o}`,El=`click.dismiss${pt}`,vl=`keydown.dismiss${pt}`,yl='[data-bs-dismiss="offcanvas"]',bl='[data-bs-toggle="offcanvas"]',Ut=class extends tt{constructor(t,e){super(t);this._config=this._getConfig(e),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._addEventListeners()}static get NAME(){return Ro}static get Default(){return Mo}toggle(t){return this._isShown?this.hide():this.show(t)}show(t){if(this._isShown||g.trigger(this._element,pl,{relatedTarget:t}).defaultPrevented)return;this._isShown=!0,this._element.style.visibility="visible",this._backdrop.show(),this._config.scroll||(new ai().hide(),this._enforceFocusOnElement(this._element)),this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.classList.add(jo);let n=()=>{g.trigger(this._element,ml,{relatedTarget:t})};this._queueCallback(n,this._element,!0)}hide(){if(!this._isShown||g.trigger(this._element,gl).defaultPrevented)return;g.off(document,ci),this._element.blur(),this._isShown=!1,this._element.classList.remove(jo),this._backdrop.hide();let e=()=>{this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._element.style.visibility="hidden",this._config.scroll||new ai().reset(),g.trigger(this._element,Ho)};this._queueCallback(e,this._element,!0)}dispose(){this._backdrop.dispose(),super.dispose(),g.off(document,ci)}_getConfig(t){return t=O(O(O({},Mo),H.getDataAttributes(this._element)),typeof t=="object"?t:{}),dt(Ro,t,hl),t}_initializeBackDrop(){return new Ji({isVisible:this._config.backdrop,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:()=>this.hide()})}_enforceFocusOnElement(t){g.off(document,ci),g.on(document,ci,e=>{document!==e.target&&t!==e.target&&!t.contains(e.target)&&t.focus()}),t.focus()}_addEventListeners(){g.on(this._element,El,yl,()=>this.hide()),g.on(this._element,vl,t=>{this._config.keyboard&&t.key===dl&&this.hide()})}static jQueryInterface(t){return this.each(function(){let e=Ut.getOrCreateInstance(this,t);if(typeof t=="string"){if(e[t]===void 0||t.startsWith("_")||t==="constructor")throw new TypeError(`No method named "${t}"`);e[t](this)}})}};g.on(document,_l,bl,function(i){let t=yt(this);if(["A","AREA"].includes(this.tagName)&&i.preventDefault(),se(this))return;g.one(t,Ho,()=>{ti(this)&&this.focus()});let e=S.findOne(ko);e&&e!==t&&Ut.getInstance(e).hide(),Ut.getOrCreateInstance(t).toggle(this)});g.on(window,fl,()=>S.find(ko).forEach(i=>Ut.getOrCreateInstance(i).show()));J(Ut);var Tl=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),Al=/^aria-[\w-]*$/i,Sl=/^(?:(?:https?|mailto|ftp|tel|file):|[^#&/:?]*(?:[#/?]|$))/i,Ol=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[\d+/a-z]+=*$/i,wl=(i,t)=>{let e=i.nodeName.toLowerCase();if(t.includes(e))return Tl.has(e)?Boolean(Sl.test(i.nodeValue)||Ol.test(i.nodeValue)):!0;let n=t.filter(o=>o instanceof RegExp);for(let o=0,r=n.length;o<r;o++)if(n[o].test(e))return!0;return!1},Cl={"*":["class","dir","id","lang","role",Al],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],div:[],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:[]};function Wo(i,t,e){if(!i.length)return i;if(e&&typeof e=="function")return e(i);let o=new window.DOMParser().parseFromString(i,"text/html"),r=Object.keys(t),s=[].concat(...o.body.querySelectorAll("*"));for(let l=0,u=s.length;l<u;l++){let p=s[l],f=p.nodeName.toLowerCase();if(!r.includes(f)){p.remove();continue}let _=[].concat(...p.attributes),d=[].concat(t["*"]||[],t[f]||[]);_.forEach(E=>{wl(E,d)||p.removeAttribute(E.nodeName)})}return o.body.innerHTML}var Vo="tooltip",Ll="bs.tooltip",at=`.${Ll}`,Bo="bs-tooltip",Nl=new RegExp(`(^|\\s)${Bo}\\S+`,"g"),xl=new Set(["sanitize","allowList","sanitizeFn"]),Dl={animation:"boolean",template:"string",title:"(string|element|function)",trigger:"string",delay:"(number|object)",html:"boolean",selector:"(string|boolean)",placement:"(string|function)",offset:"(array|string|function)",container:"(string|element|boolean)",fallbackPlacements:"array",boundary:"(string|element)",customClass:"(string|function)",sanitize:"boolean",sanitizeFn:"(null|function)",allowList:"object",popperConfig:"(null|object|function)"},Il={AUTO:"auto",TOP:"top",RIGHT:K()?"left":"right",BOTTOM:"bottom",LEFT:K()?"right":"left"},Pl={animation:!0,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!1,selector:!1,placement:"top",offset:[0,0],container:!1,fallbackPlacements:["top","right","bottom","left"],boundary:"clippingParents",customClass:"",sanitize:!0,sanitizeFn:null,allowList:Cl,popperConfig:null},Rl={HIDE:`hide${at}`,HIDDEN:`hidden${at}`,SHOW:`show${at}`,SHOWN:`shown${at}`,INSERTED:`inserted${at}`,CLICK:`click${at}`,FOCUSIN:`focusin${at}`,FOCUSOUT:`focusout${at}`,MOUSEENTER:`mouseenter${at}`,MOUSELEAVE:`mouseleave${at}`},ui="fade",zo="modal",xe="show",De="show",nn="out",$l=".tooltip-inner",Ie="hover",on="focus",Ml="click",jl="manual",mt=class extends tt{constructor(t,e){if(typeof Je=="undefined")throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org)");super(t);this._isEnabled=!0,this._timeout=0,this._hoverState="",this._activeTrigger={},this._popper=null,this._config=this._getConfig(e),this.tip=null,this._setListeners()}static get Default(){return Pl}static get NAME(){return Vo}static get Event(){return Rl}static get DefaultType(){return Dl}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}toggleEnabled(){this._isEnabled=!this._isEnabled}toggle(t){if(!!this._isEnabled)if(t){let e=this._initializeOnDelegatedTarget(t);e._activeTrigger.click=!e._activeTrigger.click,e._isWithActiveTrigger()?e._enter(null,e):e._leave(null,e)}else{if(this.getTipElement().classList.contains(xe)){this._leave(null,this);return}this._enter(null,this)}}dispose(){clearTimeout(this._timeout),g.off(this._element.closest(`.${zo}`),"hide.bs.modal",this._hideModalHandler),this.tip&&this.tip.remove(),this._popper&&this._popper.destroy(),super.dispose()}show(){if(this._element.style.display==="none")throw new Error("Please use show on visible elements");if(!(this.isWithContent()&&this._isEnabled))return;let t=g.trigger(this._element,this.constructor.Event.SHOW),e=Yn(this._element),n=e===null?this._element.ownerDocument.documentElement.contains(this._element):e.contains(this._element);if(t.defaultPrevented||!n)return;let o=this.getTipElement(),r=Bn(this.constructor.NAME);o.setAttribute("id",r),this._element.setAttribute("aria-describedby",r),this.setContent(),this._config.animation&&o.classList.add(ui);let s=typeof this._config.placement=="function"?this._config.placement.call(this,o,this._element):this._config.placement,l=this._getAttachment(s);this._addAttachmentClass(l);let{container:u}=this._config;Wt.set(o,this.constructor.DATA_KEY,this),this._element.ownerDocument.documentElement.contains(this.tip)||(u.appendChild(o),g.trigger(this._element,this.constructor.Event.INSERTED)),this._popper?this._popper.update():this._popper=Ze(this._element,o,this._getPopperConfig(l)),o.classList.add(xe);let p=typeof this._config.customClass=="function"?this._config.customClass():this._config.customClass;p&&o.classList.add(...p.split(" ")),"ontouchstart"in document.documentElement&&[].concat(...document.body.children).forEach(d=>{g.on(d,"mouseover",ei)});let f=()=>{let d=this._hoverState;this._hoverState=null,g.trigger(this._element,this.constructor.Event.SHOWN),d===nn&&this._leave(null,this)},_=this.tip.classList.contains(ui);this._queueCallback(f,this.tip,_)}hide(){if(!this._popper)return;let t=this.getTipElement(),e=()=>{this._isWithActiveTrigger()||(this._hoverState!==De&&t.remove(),this._cleanTipClass(),this._element.removeAttribute("aria-describedby"),g.trigger(this._element,this.constructor.Event.HIDDEN),this._popper&&(this._popper.destroy(),this._popper=null))};if(g.trigger(this._element,this.constructor.Event.HIDE).defaultPrevented)return;t.classList.remove(xe),"ontouchstart"in document.documentElement&&[].concat(...document.body.children).forEach(r=>g.off(r,"mouseover",ei)),this._activeTrigger[Ml]=!1,this._activeTrigger[on]=!1,this._activeTrigger[Ie]=!1;let o=this.tip.classList.contains(ui);this._queueCallback(e,this.tip,o),this._hoverState=""}update(){this._popper!==null&&this._popper.update()}isWithContent(){return Boolean(this.getTitle())}getTipElement(){if(this.tip)return this.tip;let t=document.createElement("div");return t.innerHTML=this._config.template,this.tip=t.children[0],this.tip}setContent(){let t=this.getTipElement();this.setElementContent(S.findOne($l,t),this.getTitle()),t.classList.remove(ui,xe)}setElementContent(t,e){if(t!==null){if(bt(e)){e=re(e),this._config.html?e.parentNode!==t&&(t.innerHTML="",t.appendChild(e)):t.textContent=e.textContent;return}this._config.html?(this._config.sanitize&&(e=Wo(e,this._config.allowList,this._config.sanitizeFn)),t.innerHTML=e):t.textContent=e}}getTitle(){let t=this._element.getAttribute("data-bs-original-title");return t||(t=typeof this._config.title=="function"?this._config.title.call(this._element):this._config.title),t}updateAttachment(t){return t==="right"?"end":t==="left"?"start":t}_initializeOnDelegatedTarget(t,e){let n=this.constructor.DATA_KEY;return e=e||Wt.get(t.delegateTarget,n),e||(e=new this.constructor(t.delegateTarget,this._getDelegateConfig()),Wt.set(t.delegateTarget,n,e)),e}_getOffset(){let{offset:t}=this._config;return typeof t=="string"?t.split(",").map(e=>Number.parseInt(e,10)):typeof t=="function"?e=>t(e,this._element):t}_getPopperConfig(t){let 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:"onChange",enabled:!0,phase:"afterWrite",fn:n=>this._handlePopperPlacementChange(n)}],onFirstUpdate:n=>{n.options.placement!==n.placement&&this._handlePopperPlacementChange(n)}};return O(O({},e),typeof this._config.popperConfig=="function"?this._config.popperConfig(e):this._config.popperConfig)}_addAttachmentClass(t){this.getTipElement().classList.add(`${Bo}-${this.updateAttachment(t)}`)}_getAttachment(t){return Il[t.toUpperCase()]}_setListeners(){this._config.trigger.split(" ").forEach(e=>{if(e==="click")g.on(this._element,this.constructor.Event.CLICK,this._config.selector,n=>this.toggle(n));else if(e!==jl){let n=e===Ie?this.constructor.Event.MOUSEENTER:this.constructor.Event.FOCUSIN,o=e===Ie?this.constructor.Event.MOUSELEAVE:this.constructor.Event.FOCUSOUT;g.on(this._element,n,this._config.selector,r=>this._enter(r)),g.on(this._element,o,this._config.selector,r=>this._leave(r))}}),this._hideModalHandler=()=>{this._element&&this.hide()},g.on(this._element.closest(`.${zo}`),"hide.bs.modal",this._hideModalHandler),this._config.selector?this._config=Be(O({},this._config),{trigger:"manual",selector:""}):this._fixTitle()}_fixTitle(){let t=this._element.getAttribute("title"),e=typeof this._element.getAttribute("data-bs-original-title");(t||e!=="string")&&(this._element.setAttribute("data-bs-original-title",t||""),t&&!this._element.getAttribute("aria-label")&&!this._element.textContent&&this._element.setAttribute("aria-label",t),this._element.setAttribute("title",""))}_enter(t,e){if(e=this._initializeOnDelegatedTarget(t,e),t&&(e._activeTrigger[t.type==="focusin"?on:Ie]=!0),e.getTipElement().classList.contains(xe)||e._hoverState===De){e._hoverState=De;return}if(clearTimeout(e._timeout),e._hoverState=De,!e._config.delay||!e._config.delay.show){e.show();return}e._timeout=setTimeout(()=>{e._hoverState===De&&e.show()},e._config.delay.show)}_leave(t,e){if(e=this._initializeOnDelegatedTarget(t,e),t&&(e._activeTrigger[t.type==="focusout"?on:Ie]=e._element.contains(t.relatedTarget)),!e._isWithActiveTrigger()){if(clearTimeout(e._timeout),e._hoverState=nn,!e._config.delay||!e._config.delay.hide){e.hide();return}e._timeout=setTimeout(()=>{e._hoverState===nn&&e.hide()},e._config.delay.hide)}}_isWithActiveTrigger(){for(let t in this._activeTrigger)if(this._activeTrigger[t])return!0;return!1}_getConfig(t){let e=H.getDataAttributes(this._element);return Object.keys(e).forEach(n=>{xl.has(n)&&delete e[n]}),t=O(O(O({},this.constructor.Default),e),typeof t=="object"&&t?t:{}),t.container=t.container===!1?document.body:re(t.container),typeof t.delay=="number"&&(t.delay={show:t.delay,hide:t.delay}),typeof t.title=="number"&&(t.title=t.title.toString()),typeof t.content=="number"&&(t.content=t.content.toString()),dt(Vo,t,this.constructor.DefaultType),t.sanitize&&(t.template=Wo(t.template,t.allowList,t.sanitizeFn)),t}_getDelegateConfig(){let t={};if(this._config)for(let e in this._config)this.constructor.Default[e]!==this._config[e]&&(t[e]=this._config[e]);return t}_cleanTipClass(){let t=this.getTipElement(),e=t.getAttribute("class").match(Nl);e!==null&&e.length>0&&e.map(n=>n.trim()).forEach(n=>t.classList.remove(n))}_handlePopperPlacementChange(t){let{state:e}=t;!e||(this.tip=e.elements.popper,this._cleanTipClass(),this._addAttachmentClass(this._getAttachment(e.placement)))}static jQueryInterface(t){return this.each(function(){let e=mt.getOrCreateInstance(this,t);if(typeof t=="string"){if(typeof e[t]=="undefined")throw new TypeError(`No method named "${t}"`);e[t]()}})}};J(mt);var kl="popover",Hl="bs.popover",lt=`.${Hl}`,Fo="bs-popover",Wl=new RegExp(`(^|\\s)${Fo}\\S+`,"g"),Vl=Be(O({},mt.Default),{placement:"right",offset:[0,8],trigger:"click",content:"",template:'<div class="popover" role="tooltip"><div class="popover-arrow"></div><h3 class="popover-header"></h3><div class="popover-body"></div></div>'}),Bl=Be(O({},mt.DefaultType),{content:"(string|element|function)"}),zl={HIDE:`hide${lt}`,HIDDEN:`hidden${lt}`,SHOW:`show${lt}`,SHOWN:`shown${lt}`,INSERTED:`inserted${lt}`,CLICK:`click${lt}`,FOCUSIN:`focusin${lt}`,FOCUSOUT:`focusout${lt}`,MOUSEENTER:`mouseenter${lt}`,MOUSELEAVE:`mouseleave${lt}`},Fl="fade",Yl="show",Yo=".popover-header",Ko=".popover-body",ce=class extends mt{static get Default(){return Vl}static get NAME(){return kl}static get Event(){return zl}static get DefaultType(){return Bl}isWithContent(){return this.getTitle()||this._getContent()}getTipElement(){return this.tip?this.tip:(this.tip=super.getTipElement(),this.getTitle()||S.findOne(Yo,this.tip).remove(),this._getContent()||S.findOne(Ko,this.tip).remove(),this.tip)}setContent(){let t=this.getTipElement();this.setElementContent(S.findOne(Yo,t),this.getTitle());let e=this._getContent();typeof e=="function"&&(e=e.call(this._element)),this.setElementContent(S.findOne(Ko,t),e),t.classList.remove(Fl,Yl)}_addAttachmentClass(t){this.getTipElement().classList.add(`${Fo}-${this.updateAttachment(t)}`)}_getContent(){return this._element.getAttribute("data-bs-content")||this._config.content}_cleanTipClass(){let t=this.getTipElement(),e=t.getAttribute("class").match(Wl);e!==null&&e.length>0&&e.map(n=>n.trim()).forEach(n=>t.classList.remove(n))}static jQueryInterface(t){return this.each(function(){let e=ce.getOrCreateInstance(this,t);if(typeof t=="string"){if(typeof e[t]=="undefined")throw new TypeError(`No method named "${t}"`);e[t]()}})}};J(ce);var rn="scrollspy",Kl="bs.scrollspy",fi=`.${Kl}`,Ul=".data-api",Uo={offset:10,method:"auto",target:""},ql={offset:"number",method:"string",target:"(string|element)"},Gl=`activate${fi}`,Xl=`scroll${fi}`,Ql=`load${fi}${Ul}`,qo="dropdown-item",qt="active",Zl='[data-bs-spy="scroll"]',Jl=".nav, .list-group",sn=".nav-link",tc=".nav-item",Go=".list-group-item",ec=".dropdown",ic=".dropdown-toggle",nc="offset",Xo="position",Pe=class extends tt{constructor(t,e){super(t);this._scrollElement=this._element.tagName==="BODY"?window:this._element,this._config=this._getConfig(e),this._selector=`${this._config.target} ${sn}, ${this._config.target} ${Go}, ${this._config.target} .${qo}`,this._offsets=[],this._targets=[],this._activeTarget=null,this._scrollHeight=0,g.on(this._scrollElement,Xl,()=>this._process()),this.refresh(),this._process()}static get Default(){return Uo}static get NAME(){return rn}refresh(){let t=this._scrollElement===this._scrollElement.window?nc:Xo,e=this._config.method==="auto"?t:this._config.method,n=e===Xo?this._getScrollTop():0;this._offsets=[],this._targets=[],this._scrollHeight=this._getScrollHeight(),S.find(this._selector).map(r=>{let s=Bi(r),l=s?S.findOne(s):null;if(l){let u=l.getBoundingClientRect();if(u.width||u.height)return[H[e](l).top+n,s]}return null}).filter(r=>r).sort((r,s)=>r[0]-s[0]).forEach(r=>{this._offsets.push(r[0]),this._targets.push(r[1])})}dispose(){g.off(this._scrollElement,fi),super.dispose()}_getConfig(t){if(t=O(O(O({},Uo),H.getDataAttributes(this._element)),typeof t=="object"&&t?t:{}),typeof t.target!="string"&&bt(t.target)){let{id:e}=t.target;e||(e=Bn(rn),t.target.id=e),t.target=`#${e}`}return dt(rn,t,ql),t}_getScrollTop(){return this._scrollElement===window?this._scrollElement.pageYOffset:this._scrollElement.scrollTop}_getScrollHeight(){return this._scrollElement.scrollHeight||Math.max(document.body.scrollHeight,document.documentElement.scrollHeight)}_getOffsetHeight(){return this._scrollElement===window?window.innerHeight:this._scrollElement.getBoundingClientRect().height}_process(){let t=this._getScrollTop()+this._config.offset,e=this._getScrollHeight(),n=this._config.offset+e-this._getOffsetHeight();if(this._scrollHeight!==e&&this.refresh(),t>=n){let o=this._targets[this._targets.length-1];this._activeTarget!==o&&this._activate(o);return}if(this._activeTarget&&t<this._offsets[0]&&this._offsets[0]>0){this._activeTarget=null,this._clear();return}for(let o=this._offsets.length;o--;)this._activeTarget!==this._targets[o]&&t>=this._offsets[o]&&(typeof this._offsets[o+1]=="undefined"||t<this._offsets[o+1])&&this._activate(this._targets[o])}_activate(t){this._activeTarget=t,this._clear();let e=this._selector.split(",").map(o=>`${o}[data-bs-target="${t}"],${o}[href="${t}"]`),n=S.findOne(e.join(","));n.classList.contains(qo)?(S.findOne(ic,n.closest(ec)).classList.add(qt),n.classList.add(qt)):(n.classList.add(qt),S.parents(n,Jl).forEach(o=>{S.prev(o,`${sn}, ${Go}`).forEach(r=>r.classList.add(qt)),S.prev(o,tc).forEach(r=>{S.children(r,sn).forEach(s=>s.classList.add(qt))})})),g.trigger(this._scrollElement,Gl,{relatedTarget:t})}_clear(){S.find(this._selector).filter(t=>t.classList.contains(qt)).forEach(t=>t.classList.remove(qt))}static jQueryInterface(t){return this.each(function(){let e=Pe.getOrCreateInstance(this,t);if(typeof t=="string"){if(typeof e[t]=="undefined")throw new TypeError(`No method named "${t}"`);e[t]()}})}};g.on(window,Ql,()=>{S.find(Zl).forEach(i=>new Pe(i))});J(Pe);var oc="tab",rc="bs.tab",Re=`.${rc}`,sc=".data-api",ac=`hide${Re}`,lc=`hidden${Re}`,cc=`show${Re}`,uc=`shown${Re}`,fc=`click${Re}${sc}`,dc="dropdown-menu",$e="active",Qo="fade",Zo="show",hc=".dropdown",pc=".nav, .list-group",Jo=".active",tr=":scope > li > .active",mc='[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',gc=".dropdown-toggle",_c=":scope > .dropdown-menu .active",ue=class extends tt{static get NAME(){return oc}show(){if(this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE&&this._element.classList.contains($e))return;let t,e=yt(this._element),n=this._element.closest(pc);if(n){let l=n.nodeName==="UL"||n.nodeName==="OL"?tr:Jo;t=S.find(l,n),t=t[t.length-1]}let o=t?g.trigger(t,ac,{relatedTarget:this._element}):null;if(g.trigger(this._element,cc,{relatedTarget:t}).defaultPrevented||o!==null&&o.defaultPrevented)return;this._activate(this._element,n);let s=()=>{g.trigger(t,lc,{relatedTarget:this._element}),g.trigger(this._element,uc,{relatedTarget:t})};e?this._activate(e,e.parentNode,s):s()}_activate(t,e,n){let r=(e&&(e.nodeName==="UL"||e.nodeName==="OL")?S.find(tr,e):S.children(e,Jo))[0],s=n&&r&&r.classList.contains(Qo),l=()=>this._transitionComplete(t,r,n);r&&s?(r.classList.remove(Zo),this._queueCallback(l,t,!0)):l()}_transitionComplete(t,e,n){if(e){e.classList.remove($e);let r=S.findOne(_c,e.parentNode);r&&r.classList.remove($e),e.getAttribute("role")==="tab"&&e.setAttribute("aria-selected",!1)}t.classList.add($e),t.getAttribute("role")==="tab"&&t.setAttribute("aria-selected",!0),ae(t),t.classList.contains(Qo)&&t.classList.add(Zo);let o=t.parentNode;if(o&&o.nodeName==="LI"&&(o=o.parentNode),o&&o.classList.contains(dc)){let r=t.closest(hc);r&&S.find(gc,r).forEach(s=>s.classList.add($e)),t.setAttribute("aria-expanded",!0)}n&&n()}static jQueryInterface(t){return this.each(function(){let e=ue.getOrCreateInstance(this);if(typeof t=="string"){if(typeof e[t]=="undefined")throw new TypeError(`No method named "${t}"`);e[t]()}})}};g.on(document,fc,mc,function(i){if(["A","AREA"].includes(this.tagName)&&i.preventDefault(),se(this))return;ue.getOrCreateInstance(this).show()});J(ue);var er="toast",Ec="bs.toast",gt=`.${Ec}`,vc=`click.dismiss${gt}`,yc=`mouseover${gt}`,bc=`mouseout${gt}`,Tc=`focusin${gt}`,Ac=`focusout${gt}`,Sc=`hide${gt}`,Oc=`hidden${gt}`,wc=`show${gt}`,Cc=`shown${gt}`,Lc="fade",ir="hide",Me="show",nr="showing",Nc={animation:"boolean",autohide:"boolean",delay:"number"},or={animation:!0,autohide:!0,delay:5e3},xc='[data-bs-dismiss="toast"]',Gt=class extends tt{constructor(t,e){super(t);this._config=this._getConfig(e),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get DefaultType(){return Nc}static get Default(){return or}static get NAME(){return er}show(){if(g.trigger(this._element,wc).defaultPrevented)return;this._clearTimeout(),this._config.animation&&this._element.classList.add(Lc);let e=()=>{this._element.classList.remove(nr),this._element.classList.add(Me),g.trigger(this._element,Cc),this._maybeScheduleHide()};this._element.classList.remove(ir),ae(this._element),this._element.classList.add(nr),this._queueCallback(e,this._element,this._config.animation)}hide(){if(!this._element.classList.contains(Me)||g.trigger(this._element,Sc).defaultPrevented)return;let e=()=>{this._element.classList.add(ir),g.trigger(this._element,Oc)};this._element.classList.remove(Me),this._queueCallback(e,this._element,this._config.animation)}dispose(){this._clearTimeout(),this._element.classList.contains(Me)&&this._element.classList.remove(Me),super.dispose()}_getConfig(t){return t=O(O(O({},or),H.getDataAttributes(this._element)),typeof t=="object"&&t?t:{}),dt(er,t,this.constructor.DefaultType),t}_maybeScheduleHide(){!this._config.autohide||this._hasMouseInteraction||this._hasKeyboardInteraction||(this._timeout=setTimeout(()=>{this.hide()},this._config.delay))}_onInteraction(t,e){switch(t.type){case"mouseover":case"mouseout":this._hasMouseInteraction=e;break;case"focusin":case"focusout":this._hasKeyboardInteraction=e;break}if(e){this._clearTimeout();return}let n=t.relatedTarget;this._element===n||this._element.contains(n)||this._maybeScheduleHide()}_setListeners(){g.on(this._element,vc,xc,()=>this.hide()),g.on(this._element,yc,t=>this._onInteraction(t,!0)),g.on(this._element,bc,t=>this._onInteraction(t,!1)),g.on(this._element,Tc,t=>this._onInteraction(t,!0)),g.on(this._element,Ac,t=>this._onInteraction(t,!1))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(t){return this.each(function(){let e=Gt.getOrCreateInstance(this,t);if(typeof t=="string"){if(typeof e[t]=="undefined")throw new TypeError(`No method named "${t}"`);e[t](this)}})}};J(Gt);var Pc=Ir(ur());function fr(i){return"error"in i}function fe(i){let t=["","null","undefined"];return Array.isArray(i)?i.length>0:typeof i=="string"&&!t.includes(i)||typeof i=="number"||typeof i=="boolean"?!0:typeof i=="object"&&i!==null}function Dc(i,t,e){return Oi(this,null,function*(){let n=window.CSRF_TOKEN,o=new Headers({"X-CSRFToken":n}),r;typeof e!="undefined"&&(r=JSON.stringify(e),o.set("content-type","application/json"));let s=yield fetch(i,{method:t,body:r,headers:o,credentials:"same-origin"}),l=s.headers.get("Content-Type");if(typeof l=="string"&&l.includes("text"))return{error:yield s.text()};let u=yield s.json();return!s.ok&&Array.isArray(u)?{error:u.join(`
`)}:!s.ok&&"detail"in u?{error:u.detail}:u})}function dr(i){return Oi(this,null,function*(){return yield Dc(i,"GET")})}function*ln(...i){for(let t of i)for(let e of document.querySelectorAll(t))e!==null&&(yield e)}function hr(i){i.startsWith("data-")||(i=`data-${i}`);for(let t of ln("body > div#netbox-data > *")){let e=t.getAttribute(i);if(fe(e))return e}return null}function Ic(i,t){i!==null&&(typeof t=="undefined"?window.getComputedStyle(i).display==="none"?i.style.display="":i.style.display="none":t==="show"?i.style.display="":i.style.display="none")}function yi(i){for(let t of ln("div.card-overlay"))Ic(t,i)}window.Collapse=et;window.Modal=Kt;window.Popover=ce;window.Toast=Gt;window.Tooltip=mt;function pr(i,t,e,n){let o="mdi-alert";switch(i){case"warning":o="mdi-alert";break;case"success":o="mdi-check-circle";break;case"info":o="mdi-information";break;case"danger":o="mdi-alert";break}let r=document.createElement("div");r.setAttribute("class","toast-container position-fixed bottom-0 end-0 m-3");let s=document.createElement("div");s.setAttribute("class",`toast bg-${i}`),s.setAttribute("role","alert"),s.setAttribute("aria-live","assertive"),s.setAttribute("aria-atomic","true");let l=document.createElement("div");l.setAttribute("class",`toast-header bg-${i} text-body`);let u=document.createElement("i");u.setAttribute("class",`mdi ${o}`);let p=document.createElement("strong");p.setAttribute("class","me-auto ms-1"),p.innerText=t;let f=document.createElement("button");f.setAttribute("type","button"),f.setAttribute("class","btn-close"),f.setAttribute("data-bs-dismiss","toast"),f.setAttribute("aria-label","Close");let _=document.createElement("div");if(_.setAttribute("class","toast-body"),l.appendChild(u),l.appendChild(p),typeof n!="undefined"){let E=document.createElement("small");E.setAttribute("class","text-muted"),l.appendChild(E)}return l.appendChild(f),_.innerText=e.trim(),s.appendChild(l),s.appendChild(_),r.appendChild(s),document.body.appendChild(r),new Gt(s)}var mr=new RegExp(/^([A-Z][A-Za-z]+)[^0-9]*([0-9/]+)$/),Rc=new Map([["TwentyFiveGigE","Twe"]]);function cn(i,t,e){var n,o;return(o=(n=i.querySelector(t))==null?void 0:n.getAttribute(e))!=null?o:null}function $c(i){var t;if(i===null)return i;if(i.match(mr)){let[e,n]=((t=i.match(mr))!=null?t:[]).slice(1,3);if(fe(e)&&fe(n))return`${Rc.get(e)||e.slice(0,2)}${n}`}return i}function Mc(i){var t,e;for(let[n,o]of Object.entries(i.get_lldp_neighbors_detail)){let[r]=n.split("."),s=document.getElementById(r);if(s!==null)for(let l of o){let u=s.querySelector("td.device"),p=s.querySelector("td.interface"),f=cn(s,"td.configured_device","data"),_=cn(s,"td.configured_chassis","data-chassis"),d=cn(s,"td.configured_interface","data"),E=$c(d),v=(t=l.remote_system_name)!=null?t:"",h=(e=l.remote_port)!=null?e:"",[a]=v.split("."),[c]=h.split(".");u!==null&&(u.innerText=a),p!==null&&(p.innerText=c),!fe(f)&&fe(a)?s.classList.add("info"):(f===a||_===a)&&(d===c||E===c)?s.classList.add("success"):s.classList.add("danger")}}}function gr(){yi("show");let i=hr("object-url");i!==null&&dr(i).then(t=>{if(fr(t)){pr("danger","Error Retrieving LLDP Neighbor Information",t.error).show(),yi("hide");return}else Mc(t)}).finally(()=>{yi("hide")})}document.readyState!=="loading"?gr():document.addEventListener("DOMContentLoaded",gr);})();
/*!
* Bootstrap v5.0.2 (https://getbootstrap.com/)
* Copyright 2011-2021 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
*/
/*!
* Masonry v4.2.2
* Cascading grid layout library
* https://masonry.desandro.com
* MIT License
* by David DeSandro
*/
/*!
* Outlayer v2.1.1
* the brains and guts of a layout library
* MIT license
*/
/*!
* getSize v2.0.3
* measure size of elements
* MIT license
*/