Plugin Directory

Changeset 3330437


Ignore:
Timestamp:
07/18/2025 07:47:01 PM (5 months ago)
Author:
boonebgorges
Message:

More updates to trunk for 5.9.0 release.

Location:
pressforward/trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • pressforward/trunk/assets/js/settings-tools.js

    r3207176 r3330437  
    1818            const initialTabTarget = jQuery(initialTab).attr('data-tab-target');
    1919
    20             tabToTarget( initialTabTarget, initialTab );
     20            // If there is no initial tab target, default to the first tab.
     21            if ( ! initialTabTarget ) {
     22                tabToTarget( firstTab.attr( 'data-tab-target' ), firstTab[0] );
     23            } else {
     24                tabToTarget( initialTabTarget, initialTab );
     25            }
    2126        }, 0);
    2227    }
  • pressforward/trunk/assets/js/settings-tools.min.js

    r3207176 r3330437  
    1 jQuery(window).load(function(){var a,t,e=jQuery("#pf-settings-tabs .nav-tab").first();function r(t,a){jQuery(".pftab").removeClass("active"),jQuery(t).addClass("active"),jQuery(".nav-tab").removeClass("nav-tab-active"),jQuery(a).addClass("nav-tab-active");var e=jQuery(window).scrollTop(),e=(window.location.hash=t,jQuery(window).scrollTop(e),a.closest("form")),a=e.getAttribute("action");e.setAttribute("action",a.replace(/#.*$/,"")+t)}0!==e.length&&((a=window.location.hash)&&setTimeout(function(){jQuery(window).scrollTop(0);var t=document.getElementById(a.replace(/#/g,"")+"-tab");r(jQuery(t).attr("data-tab-target"),t)},0),jQuery("#pf-settings-box").show(),jQuery("#pf-settings-tabs").on("click",".nav-tab",function(t){t.preventDefault();return r(jQuery(this).attr("data-tab-target"),this),!1}),(window.location.hash.indexOf("#")<0?(e=e.attr("data-tab-target"),t=(window.location.hash=e)+"-tab",jQuery(".pftab").removeClass("active"),jQuery(e)):(t=(theHash="#"+(theHash=a.replace(/#/g,"")))+"-tab",jQuery(".pftab").removeClass("active"),jQuery(theHash))).addClass("active"),jQuery(".nav-tab").removeClass("nav-tab-active"),jQuery(t).addClass("nav-tab-active"))});
     1jQuery(window).load(function(){var e,t,a,r=jQuery("#pf-settings-tabs .nav-tab").first();function s(t,a){jQuery(".pftab").removeClass("active"),jQuery(t).addClass("active"),jQuery(".nav-tab").removeClass("nav-tab-active"),jQuery(a).addClass("nav-tab-active");var e=jQuery(window).scrollTop(),e=(window.location.hash=t,jQuery(window).scrollTop(e),a.closest("form")),a=e.getAttribute("action");e.setAttribute("action",a.replace(/#.*$/,"")+t)}0!==r.length&&((e=window.location.hash)&&setTimeout(function(){jQuery(window).scrollTop(0);var t=document.getElementById(e.replace(/#/g,"")+"-tab"),a=jQuery(t).attr("data-tab-target");a?s(a,t):s(r.attr("data-tab-target"),r[0])},0),jQuery("#pf-settings-box").show(),jQuery("#pf-settings-tabs").on("click",".nav-tab",function(t){t.preventDefault();return s(jQuery(this).attr("data-tab-target"),this),!1}),(window.location.hash.indexOf("#")<0?(t=r.attr("data-tab-target"),a=(window.location.hash=t)+"-tab",jQuery(".pftab").removeClass("active"),jQuery(t)):(a=(theHash="#"+(theHash=e.replace(/#/g,"")))+"-tab",jQuery(".pftab").removeClass("active"),jQuery(theHash))).addClass("active"),jQuery(".nav-tab").removeClass("nav-tab-active"),jQuery(a).addClass("nav-tab-active"))});
  • pressforward/trunk/build/reader.asset.php

    r3330426 r3330437  
    1 <?php return array('dependencies' => array('wp-i18n'), 'version' => 'ce0c7b19f572cb5a19f8');
     1<?php return array('dependencies' => array('wp-i18n'), 'version' => 'e4c894d509ead6ba79c5');
  • pressforward/trunk/build/reader.js

    r3330426 r3330437  
    1 (()=>{"use strict";var e={d:(t,i)=>{for(var n in i)e.o(i,n)&&!e.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:i[n]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},t={};e.r(t),e.d(t,{afterMain:()=>x,afterRead:()=>C,afterWrite:()=>O,applyStyles:()=>N,arrow:()=>ie,auto:()=>u,basePlacements:()=>h,beforeMain:()=>A,beforeRead:()=>w,beforeWrite:()=>T,bottom:()=>l,clippingParents:()=>m,computeStyles:()=>re,createPopper:()=>$e,createPopperBase:()=>Ie,createPopperLite:()=>Ne,detectOverflow:()=>we,end:()=>p,eventListeners:()=>le,flip:()=>je,hide:()=>Ee,left:()=>d,main:()=>E,modifierPhases:()=>Q,offset:()=>xe,placements:()=>b,popper:()=>_,popperGenerator:()=>Se,popperOffsets:()=>Te,preventOverflow:()=>ke,read:()=>j,reference:()=>v,right:()=>c,start:()=>f,top:()=>a,variationPlacements:()=>y,viewport:()=>g,write:()=>k});const i=window.wp.i18n;function n(e){window.location.hash="#"+e}function s(e,t){return e.split(/\s+/,t).join(" ")}function o(e,t,i){var n=jQuery("article:last-child").attr("tabindex");return(0==t.length||t.is(":hidden"))&&(1==i?e+=1:e-=1,t=jQuery('article[tabindex="'+e+'"]')),(0==t.length||t.is(":hidden"))&&0<=e&&n>e&&(t=o(e,t,i)),!t.is(":hidden")&&t}function r(e,t){var i=e.split("?");if(i.length>=2){for(var n=encodeURIComponent(t)+"=",s=i[1].split(/[&;]/g),o=s.length;o-- >0;)-1!==s[o].lastIndexOf(n,0)&&s.splice(o,1);return i[0]+"?"+s.join("&")}return e}var a="top",l="bottom",c="right",d="left",u="auto",h=[a,l,c,d],f="start",p="end",m="clippingParents",g="viewport",_="popper",v="reference",y=h.reduce((function(e,t){return e.concat([t+"-"+f,t+"-"+p])}),[]),b=[].concat(h,[u]).reduce((function(e,t){return e.concat([t,t+"-"+f,t+"-"+p])}),[]),w="beforeRead",j="read",C="afterRead",A="beforeMain",E="main",x="afterMain",T="beforeWrite",k="write",O="afterWrite",Q=[w,j,C,A,E,x,T,k,O];function D(e){return e?(e.nodeName||"").toLowerCase():null}function L(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function S(e){return e instanceof L(e).Element||e instanceof Element}function I(e){return e instanceof L(e).HTMLElement||e instanceof HTMLElement}function $(e){return"undefined"!=typeof ShadowRoot&&(e instanceof L(e).ShadowRoot||e instanceof ShadowRoot)}const N={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var i=t.styles[e]||{},n=t.attributes[e]||{},s=t.elements[e];I(s)&&D(s)&&(Object.assign(s.style,i),Object.keys(n).forEach((function(e){var t=n[e];!1===t?s.removeAttribute(e):s.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,i={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,i.popper),t.styles=i,t.elements.arrow&&Object.assign(t.elements.arrow.style,i.arrow),function(){Object.keys(t.elements).forEach((function(e){var n=t.elements[e],s=t.attributes[e]||{},o=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:i[e]).reduce((function(e,t){return e[t]="",e}),{});I(n)&&D(n)&&(Object.assign(n.style,o),Object.keys(s).forEach((function(e){n.removeAttribute(e)})))}))}},requires:["computeStyles"]};function P(e){return e.split("-")[0]}var M=Math.max,F=Math.min,H=Math.round;function W(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map((function(e){return e.brand+"/"+e.version})).join(" "):navigator.userAgent}function B(){return!/^((?!chrome|android).)*safari/i.test(W())}function R(e,t,i){void 0===t&&(t=!1),void 0===i&&(i=!1);var n=e.getBoundingClientRect(),s=1,o=1;t&&I(e)&&(s=e.offsetWidth>0&&H(n.width)/e.offsetWidth||1,o=e.offsetHeight>0&&H(n.height)/e.offsetHeight||1);var r=(S(e)?L(e):window).visualViewport,a=!B()&&i,l=(n.left+(a&&r?r.offsetLeft:0))/s,c=(n.top+(a&&r?r.offsetTop:0))/o,d=n.width/s,u=n.height/o;return{width:d,height:u,top:c,right:l+d,bottom:c+u,left:l,x:l,y:c}}function z(e){var t=R(e),i=e.offsetWidth,n=e.offsetHeight;return Math.abs(t.width-i)<=1&&(i=t.width),Math.abs(t.height-n)<=1&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:i,height:n}}function q(e,t){var i=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(i&&$(i)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function V(e){return L(e).getComputedStyle(e)}function U(e){return["table","td","th"].indexOf(D(e))>=0}function K(e){return((S(e)?e.ownerDocument:e.document)||window.document).documentElement}function Y(e){return"html"===D(e)?e:e.assignedSlot||e.parentNode||($(e)?e.host:null)||K(e)}function X(e){return I(e)&&"fixed"!==V(e).position?e.offsetParent:null}function G(e){for(var t=L(e),i=X(e);i&&U(i)&&"static"===V(i).position;)i=X(i);return i&&("html"===D(i)||"body"===D(i)&&"static"===V(i).position)?t:i||function(e){var t=/firefox/i.test(W());if(/Trident/i.test(W())&&I(e)&&"fixed"===V(e).position)return null;var i=Y(e);for($(i)&&(i=i.host);I(i)&&["html","body"].indexOf(D(i))<0;){var n=V(i);if("none"!==n.transform||"none"!==n.perspective||"paint"===n.contain||-1!==["transform","perspective"].indexOf(n.willChange)||t&&"filter"===n.willChange||t&&n.filter&&"none"!==n.filter)return i;i=i.parentNode}return null}(e)||t}function J(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Z(e,t,i){return M(e,F(t,i))}function ee(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function te(e,t){return t.reduce((function(t,i){return t[i]=e,t}),{})}const ie={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,i=e.state,n=e.name,s=e.options,o=i.elements.arrow,r=i.modifiersData.popperOffsets,u=P(i.placement),f=J(u),p=[d,c].indexOf(u)>=0?"height":"width";if(o&&r){var m=function(e,t){return ee("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:te(e,h))}(s.padding,i),g=z(o),_="y"===f?a:d,v="y"===f?l:c,y=i.rects.reference[p]+i.rects.reference[f]-r[f]-i.rects.popper[p],b=r[f]-i.rects.reference[f],w=G(o),j=w?"y"===f?w.clientHeight||0:w.clientWidth||0:0,C=y/2-b/2,A=m[_],E=j-g[p]-m[v],x=j/2-g[p]/2+C,T=Z(A,x,E),k=f;i.modifiersData[n]=((t={})[k]=T,t.centerOffset=T-x,t)}},effect:function(e){var t=e.state,i=e.options.element,n=void 0===i?"[data-popper-arrow]":i;null!=n&&("string"!=typeof n||(n=t.elements.popper.querySelector(n)))&&q(t.elements.popper,n)&&(t.elements.arrow=n)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ne(e){return e.split("-")[1]}var se={top:"auto",right:"auto",bottom:"auto",left:"auto"};function oe(e){var t,i=e.popper,n=e.popperRect,s=e.placement,o=e.variation,r=e.offsets,u=e.position,h=e.gpuAcceleration,f=e.adaptive,m=e.roundOffsets,g=e.isFixed,_=r.x,v=void 0===_?0:_,y=r.y,b=void 0===y?0:y,w="function"==typeof m?m({x:v,y:b}):{x:v,y:b};v=w.x,b=w.y;var j=r.hasOwnProperty("x"),C=r.hasOwnProperty("y"),A=d,E=a,x=window;if(f){var T=G(i),k="clientHeight",O="clientWidth";T===L(i)&&"static"!==V(T=K(i)).position&&"absolute"===u&&(k="scrollHeight",O="scrollWidth"),(s===a||(s===d||s===c)&&o===p)&&(E=l,b-=(g&&T===x&&x.visualViewport?x.visualViewport.height:T[k])-n.height,b*=h?1:-1),s!==d&&(s!==a&&s!==l||o!==p)||(A=c,v-=(g&&T===x&&x.visualViewport?x.visualViewport.width:T[O])-n.width,v*=h?1:-1)}var Q,D=Object.assign({position:u},f&&se),S=!0===m?function(e,t){var i=e.x,n=e.y,s=t.devicePixelRatio||1;return{x:H(i*s)/s||0,y:H(n*s)/s||0}}({x:v,y:b},L(i)):{x:v,y:b};return v=S.x,b=S.y,h?Object.assign({},D,((Q={})[E]=C?"0":"",Q[A]=j?"0":"",Q.transform=(x.devicePixelRatio||1)<=1?"translate("+v+"px, "+b+"px)":"translate3d("+v+"px, "+b+"px, 0)",Q)):Object.assign({},D,((t={})[E]=C?b+"px":"",t[A]=j?v+"px":"",t.transform="",t))}const re={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,i=e.options,n=i.gpuAcceleration,s=void 0===n||n,o=i.adaptive,r=void 0===o||o,a=i.roundOffsets,l=void 0===a||a,c={placement:P(t.placement),variation:ne(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:s,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,oe(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:r,roundOffsets:l})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,oe(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}};var ae={passive:!0};const le={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,i=e.instance,n=e.options,s=n.scroll,o=void 0===s||s,r=n.resize,a=void 0===r||r,l=L(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&c.forEach((function(e){e.addEventListener("scroll",i.update,ae)})),a&&l.addEventListener("resize",i.update,ae),function(){o&&c.forEach((function(e){e.removeEventListener("scroll",i.update,ae)})),a&&l.removeEventListener("resize",i.update,ae)}},data:{}};var ce={left:"right",right:"left",bottom:"top",top:"bottom"};function de(e){return e.replace(/left|right|bottom|top/g,(function(e){return ce[e]}))}var ue={start:"end",end:"start"};function he(e){return e.replace(/start|end/g,(function(e){return ue[e]}))}function fe(e){var t=L(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function pe(e){return R(K(e)).left+fe(e).scrollLeft}function me(e){var t=V(e),i=t.overflow,n=t.overflowX,s=t.overflowY;return/auto|scroll|overlay|hidden/.test(i+s+n)}function ge(e){return["html","body","#document"].indexOf(D(e))>=0?e.ownerDocument.body:I(e)&&me(e)?e:ge(Y(e))}function _e(e,t){var i;void 0===t&&(t=[]);var n=ge(e),s=n===(null==(i=e.ownerDocument)?void 0:i.body),o=L(n),r=s?[o].concat(o.visualViewport||[],me(n)?n:[]):n,a=t.concat(r);return s?a:a.concat(_e(Y(r)))}function ve(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function ye(e,t,i){return t===g?ve(function(e,t){var i=L(e),n=K(e),s=i.visualViewport,o=n.clientWidth,r=n.clientHeight,a=0,l=0;if(s){o=s.width,r=s.height;var c=B();(c||!c&&"fixed"===t)&&(a=s.offsetLeft,l=s.offsetTop)}return{width:o,height:r,x:a+pe(e),y:l}}(e,i)):S(t)?function(e,t){var i=R(e,!1,"fixed"===t);return i.top=i.top+e.clientTop,i.left=i.left+e.clientLeft,i.bottom=i.top+e.clientHeight,i.right=i.left+e.clientWidth,i.width=e.clientWidth,i.height=e.clientHeight,i.x=i.left,i.y=i.top,i}(t,i):ve(function(e){var t,i=K(e),n=fe(e),s=null==(t=e.ownerDocument)?void 0:t.body,o=M(i.scrollWidth,i.clientWidth,s?s.scrollWidth:0,s?s.clientWidth:0),r=M(i.scrollHeight,i.clientHeight,s?s.scrollHeight:0,s?s.clientHeight:0),a=-n.scrollLeft+pe(e),l=-n.scrollTop;return"rtl"===V(s||i).direction&&(a+=M(i.clientWidth,s?s.clientWidth:0)-o),{width:o,height:r,x:a,y:l}}(K(e)))}function be(e){var t,i=e.reference,n=e.element,s=e.placement,o=s?P(s):null,r=s?ne(s):null,u=i.x+i.width/2-n.width/2,h=i.y+i.height/2-n.height/2;switch(o){case a:t={x:u,y:i.y-n.height};break;case l:t={x:u,y:i.y+i.height};break;case c:t={x:i.x+i.width,y:h};break;case d:t={x:i.x-n.width,y:h};break;default:t={x:i.x,y:i.y}}var m=o?J(o):null;if(null!=m){var g="y"===m?"height":"width";switch(r){case f:t[m]=t[m]-(i[g]/2-n[g]/2);break;case p:t[m]=t[m]+(i[g]/2-n[g]/2)}}return t}function we(e,t){void 0===t&&(t={});var i=t,n=i.placement,s=void 0===n?e.placement:n,o=i.strategy,r=void 0===o?e.strategy:o,d=i.boundary,u=void 0===d?m:d,f=i.rootBoundary,p=void 0===f?g:f,y=i.elementContext,b=void 0===y?_:y,w=i.altBoundary,j=void 0!==w&&w,C=i.padding,A=void 0===C?0:C,E=ee("number"!=typeof A?A:te(A,h)),x=b===_?v:_,T=e.rects.popper,k=e.elements[j?x:b],O=function(e,t,i,n){var s="clippingParents"===t?function(e){var t=_e(Y(e)),i=["absolute","fixed"].indexOf(V(e).position)>=0&&I(e)?G(e):e;return S(i)?t.filter((function(e){return S(e)&&q(e,i)&&"body"!==D(e)})):[]}(e):[].concat(t),o=[].concat(s,[i]),r=o[0],a=o.reduce((function(t,i){var s=ye(e,i,n);return t.top=M(s.top,t.top),t.right=F(s.right,t.right),t.bottom=F(s.bottom,t.bottom),t.left=M(s.left,t.left),t}),ye(e,r,n));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}(S(k)?k:k.contextElement||K(e.elements.popper),u,p,r),Q=R(e.elements.reference),L=be({reference:Q,element:T,strategy:"absolute",placement:s}),$=ve(Object.assign({},T,L)),N=b===_?$:Q,P={top:O.top-N.top+E.top,bottom:N.bottom-O.bottom+E.bottom,left:O.left-N.left+E.left,right:N.right-O.right+E.right},H=e.modifiersData.offset;if(b===_&&H){var W=H[s];Object.keys(P).forEach((function(e){var t=[c,l].indexOf(e)>=0?1:-1,i=[a,l].indexOf(e)>=0?"y":"x";P[e]+=W[i]*t}))}return P}const je={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,i=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var s=i.mainAxis,o=void 0===s||s,r=i.altAxis,p=void 0===r||r,m=i.fallbackPlacements,g=i.padding,_=i.boundary,v=i.rootBoundary,w=i.altBoundary,j=i.flipVariations,C=void 0===j||j,A=i.allowedAutoPlacements,E=t.options.placement,x=P(E),T=m||(x!==E&&C?function(e){if(P(e)===u)return[];var t=de(e);return[he(e),t,he(t)]}(E):[de(E)]),k=[E].concat(T).reduce((function(e,i){return e.concat(P(i)===u?function(e,t){void 0===t&&(t={});var i=t,n=i.placement,s=i.boundary,o=i.rootBoundary,r=i.padding,a=i.flipVariations,l=i.allowedAutoPlacements,c=void 0===l?b:l,d=ne(n),u=d?a?y:y.filter((function(e){return ne(e)===d})):h,f=u.filter((function(e){return c.indexOf(e)>=0}));0===f.length&&(f=u);var p=f.reduce((function(t,i){return t[i]=we(e,{placement:i,boundary:s,rootBoundary:o,padding:r})[P(i)],t}),{});return Object.keys(p).sort((function(e,t){return p[e]-p[t]}))}(t,{placement:i,boundary:_,rootBoundary:v,padding:g,flipVariations:C,allowedAutoPlacements:A}):i)}),[]),O=t.rects.reference,Q=t.rects.popper,D=new Map,L=!0,S=k[0],I=0;I<k.length;I++){var $=k[I],N=P($),M=ne($)===f,F=[a,l].indexOf(N)>=0,H=F?"width":"height",W=we(t,{placement:$,boundary:_,rootBoundary:v,altBoundary:w,padding:g}),B=F?M?c:d:M?l:a;O[H]>Q[H]&&(B=de(B));var R=de(B),z=[];if(o&&z.push(W[N]<=0),p&&z.push(W[B]<=0,W[R]<=0),z.every((function(e){return e}))){S=$,L=!1;break}D.set($,z)}if(L)for(var q=function(e){var t=k.find((function(t){var i=D.get(t);if(i)return i.slice(0,e).every((function(e){return e}))}));if(t)return S=t,"break"},V=C?3:1;V>0&&"break"!==q(V);V--);t.placement!==S&&(t.modifiersData[n]._skip=!0,t.placement=S,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function Ce(e,t,i){return void 0===i&&(i={x:0,y:0}),{top:e.top-t.height-i.y,right:e.right-t.width+i.x,bottom:e.bottom-t.height+i.y,left:e.left-t.width-i.x}}function Ae(e){return[a,c,l,d].some((function(t){return e[t]>=0}))}const Ee={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,i=e.name,n=t.rects.reference,s=t.rects.popper,o=t.modifiersData.preventOverflow,r=we(t,{elementContext:"reference"}),a=we(t,{altBoundary:!0}),l=Ce(r,n),c=Ce(a,s,o),d=Ae(l),u=Ae(c);t.modifiersData[i]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:d,hasPopperEscaped:u},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":u})}},xe={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,i=e.options,n=e.name,s=i.offset,o=void 0===s?[0,0]:s,r=b.reduce((function(e,i){return e[i]=function(e,t,i){var n=P(e),s=[d,a].indexOf(n)>=0?-1:1,o="function"==typeof i?i(Object.assign({},t,{placement:e})):i,r=o[0],l=o[1];return r=r||0,l=(l||0)*s,[d,c].indexOf(n)>=0?{x:l,y:r}:{x:r,y:l}}(i,t.rects,o),e}),{}),l=r[t.placement],u=l.x,h=l.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=u,t.modifiersData.popperOffsets.y+=h),t.modifiersData[n]=r}},Te={name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,i=e.name;t.modifiersData[i]=be({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},ke={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,i=e.options,n=e.name,s=i.mainAxis,o=void 0===s||s,r=i.altAxis,u=void 0!==r&&r,h=i.boundary,p=i.rootBoundary,m=i.altBoundary,g=i.padding,_=i.tether,v=void 0===_||_,y=i.tetherOffset,b=void 0===y?0:y,w=we(t,{boundary:h,rootBoundary:p,padding:g,altBoundary:m}),j=P(t.placement),C=ne(t.placement),A=!C,E=J(j),x="x"===E?"y":"x",T=t.modifiersData.popperOffsets,k=t.rects.reference,O=t.rects.popper,Q="function"==typeof b?b(Object.assign({},t.rects,{placement:t.placement})):b,D="number"==typeof Q?{mainAxis:Q,altAxis:Q}:Object.assign({mainAxis:0,altAxis:0},Q),L=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,S={x:0,y:0};if(T){if(o){var I,$="y"===E?a:d,N="y"===E?l:c,H="y"===E?"height":"width",W=T[E],B=W+w[$],R=W-w[N],q=v?-O[H]/2:0,V=C===f?k[H]:O[H],U=C===f?-O[H]:-k[H],K=t.elements.arrow,Y=v&&K?z(K):{width:0,height:0},X=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},ee=X[$],te=X[N],ie=Z(0,k[H],Y[H]),se=A?k[H]/2-q-ie-ee-D.mainAxis:V-ie-ee-D.mainAxis,oe=A?-k[H]/2+q+ie+te+D.mainAxis:U+ie+te+D.mainAxis,re=t.elements.arrow&&G(t.elements.arrow),ae=re?"y"===E?re.clientTop||0:re.clientLeft||0:0,le=null!=(I=null==L?void 0:L[E])?I:0,ce=W+oe-le,de=Z(v?F(B,W+se-le-ae):B,W,v?M(R,ce):R);T[E]=de,S[E]=de-W}if(u){var ue,he="x"===E?a:d,fe="x"===E?l:c,pe=T[x],me="y"===x?"height":"width",ge=pe+w[he],_e=pe-w[fe],ve=-1!==[a,d].indexOf(j),ye=null!=(ue=null==L?void 0:L[x])?ue:0,be=ve?ge:pe-k[me]-O[me]-ye+D.altAxis,je=ve?pe+k[me]+O[me]-ye-D.altAxis:_e,Ce=v&&ve?function(e,t,i){var n=Z(e,t,i);return n>i?i:n}(be,pe,je):Z(v?be:ge,pe,v?je:_e);T[x]=Ce,S[x]=Ce-pe}t.modifiersData[n]=S}},requiresIfExists:["offset"]};function Oe(e,t,i){void 0===i&&(i=!1);var n,s,o=I(t),r=I(t)&&function(e){var t=e.getBoundingClientRect(),i=H(t.width)/e.offsetWidth||1,n=H(t.height)/e.offsetHeight||1;return 1!==i||1!==n}(t),a=K(t),l=R(e,r,i),c={scrollLeft:0,scrollTop:0},d={x:0,y:0};return(o||!o&&!i)&&(("body"!==D(t)||me(a))&&(c=(n=t)!==L(n)&&I(n)?{scrollLeft:(s=n).scrollLeft,scrollTop:s.scrollTop}:fe(n)),I(t)?((d=R(t,!0)).x+=t.clientLeft,d.y+=t.clientTop):a&&(d.x=pe(a))),{x:l.left+c.scrollLeft-d.x,y:l.top+c.scrollTop-d.y,width:l.width,height:l.height}}function Qe(e){var t=new Map,i=new Set,n=[];function s(e){i.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!i.has(e)){var n=t.get(e);n&&s(n)}})),n.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){i.has(e.name)||s(e)})),n}var De={placement:"bottom",modifiers:[],strategy:"absolute"};function Le(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return!t.some((function(e){return!(e&&"function"==typeof e.getBoundingClientRect)}))}function Se(e){void 0===e&&(e={});var t=e,i=t.defaultModifiers,n=void 0===i?[]:i,s=t.defaultOptions,o=void 0===s?De:s;return function(e,t,i){void 0===i&&(i=o);var s,r,a={placement:"bottom",orderedModifiers:[],options:Object.assign({},De,o),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},l=[],c=!1,d={state:a,setOptions:function(i){var s="function"==typeof i?i(a.options):i;u(),a.options=Object.assign({},o,a.options,s),a.scrollParents={reference:S(e)?_e(e):e.contextElement?_e(e.contextElement):[],popper:_e(t)};var r,c,h=function(e){var t=Qe(e);return Q.reduce((function(e,i){return e.concat(t.filter((function(e){return e.phase===i})))}),[])}((r=[].concat(n,a.options.modifiers),c=r.reduce((function(e,t){var i=e[t.name];return e[t.name]=i?Object.assign({},i,t,{options:Object.assign({},i.options,t.options),data:Object.assign({},i.data,t.data)}):t,e}),{}),Object.keys(c).map((function(e){return c[e]}))));return a.orderedModifiers=h.filter((function(e){return e.enabled})),a.orderedModifiers.forEach((function(e){var t=e.name,i=e.options,n=void 0===i?{}:i,s=e.effect;if("function"==typeof s){var o=s({state:a,name:t,instance:d,options:n});l.push(o||function(){})}})),d.update()},forceUpdate:function(){if(!c){var e=a.elements,t=e.reference,i=e.popper;if(Le(t,i)){a.rects={reference:Oe(t,G(i),"fixed"===a.options.strategy),popper:z(i)},a.reset=!1,a.placement=a.options.placement,a.orderedModifiers.forEach((function(e){return a.modifiersData[e.name]=Object.assign({},e.data)}));for(var n=0;n<a.orderedModifiers.length;n++)if(!0!==a.reset){var s=a.orderedModifiers[n],o=s.fn,r=s.options,l=void 0===r?{}:r,u=s.name;"function"==typeof o&&(a=o({state:a,options:l,name:u,instance:d})||a)}else a.reset=!1,n=-1}}},update:(s=function(){return new Promise((function(e){d.forceUpdate(),e(a)}))},function(){return r||(r=new Promise((function(e){Promise.resolve().then((function(){r=void 0,e(s())}))}))),r}),destroy:function(){u(),c=!0}};if(!Le(e,t))return d;function u(){l.forEach((function(e){return e()})),l=[]}return d.setOptions(i).then((function(e){!c&&i.onFirstUpdate&&i.onFirstUpdate(e)})),d}}var Ie=Se(),$e=Se({defaultModifiers:[le,Te,re,N,xe,je,ke,ie,Ee]}),Ne=Se({defaultModifiers:[le,Te,re,N]});const Pe=new Map,Me={set(e,t,i){Pe.has(e)||Pe.set(e,new Map);const n=Pe.get(e);n.has(t)||0===n.size?n.set(t,i):console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(n.keys())[0]}.`)},get:(e,t)=>Pe.has(e)&&Pe.get(e).get(t)||null,remove(e,t){if(!Pe.has(e))return;const i=Pe.get(e);i.delete(t),0===i.size&&Pe.delete(e)}},Fe="transitionend",He=e=>(e&&window.CSS&&window.CSS.escape&&(e=e.replace(/#([^\s"#']+)/g,((e,t)=>`#${CSS.escape(t)}`))),e),We=e=>{e.dispatchEvent(new Event(Fe))},Be=e=>!(!e||"object"!=typeof e)&&(void 0!==e.jquery&&(e=e[0]),void 0!==e.nodeType),Re=e=>Be(e)?e.jquery?e[0]:e:"string"==typeof e&&e.length>0?document.querySelector(He(e)):null,ze=e=>{if(!Be(e)||0===e.getClientRects().length)return!1;const t="visible"===getComputedStyle(e).getPropertyValue("visibility"),i=e.closest("details:not([open])");if(!i)return t;if(i!==e){const t=e.closest("summary");if(t&&t.parentNode!==i)return!1;if(null===t)return!1}return t},qe=e=>!e||e.nodeType!==Node.ELEMENT_NODE||!!e.classList.contains("disabled")||(void 0!==e.disabled?e.disabled:e.hasAttribute("disabled")&&"false"!==e.getAttribute("disabled")),Ve=e=>{if(!document.documentElement.attachShadow)return null;if("function"==typeof e.getRootNode){const t=e.getRootNode();return t instanceof ShadowRoot?t:null}return e instanceof ShadowRoot?e:e.parentNode?Ve(e.parentNode):null},Ue=()=>{},Ke=e=>{e.offsetHeight},Ye=()=>window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?window.jQuery:null,Xe=[],Ge=()=>"rtl"===document.documentElement.dir,Je=e=>{var t;t=()=>{const t=Ye();if(t){const i=e.NAME,n=t.fn[i];t.fn[i]=e.jQueryInterface,t.fn[i].Constructor=e,t.fn[i].noConflict=()=>(t.fn[i]=n,e.jQueryInterface)}},"loading"===document.readyState?(Xe.length||document.addEventListener("DOMContentLoaded",(()=>{for(const e of Xe)e()})),Xe.push(t)):t()},Ze=(e,t=[],i=e)=>"function"==typeof e?e(...t):i,et=(e,t,i=!0)=>{if(!i)return void Ze(e);const n=(e=>{if(!e)return 0;let{transitionDuration:t,transitionDelay:i}=window.getComputedStyle(e);const n=Number.parseFloat(t),s=Number.parseFloat(i);return n||s?(t=t.split(",")[0],i=i.split(",")[0],1e3*(Number.parseFloat(t)+Number.parseFloat(i))):0})(t)+5;let s=!1;const o=({target:i})=>{i===t&&(s=!0,t.removeEventListener(Fe,o),Ze(e))};t.addEventListener(Fe,o),setTimeout((()=>{s||We(t)}),n)},tt=(e,t,i,n)=>{const s=e.length;let o=e.indexOf(t);return-1===o?!i&&n?e[s-1]:e[0]:(o+=i?1:-1,n&&(o=(o+s)%s),e[Math.max(0,Math.min(o,s-1))])},it=/[^.]*(?=\..*)\.|.*/,nt=/\..*/,st=/::\d+$/,ot={};let rt=1;const at={mouseenter:"mouseover",mouseleave:"mouseout"},lt=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 ct(e,t){return t&&`${t}::${rt++}`||e.uidEvent||rt++}function dt(e){const t=ct(e);return e.uidEvent=t,ot[t]=ot[t]||{},ot[t]}function ut(e,t,i=null){return Object.values(e).find((e=>e.callable===t&&e.delegationSelector===i))}function ht(e,t,i){const n="string"==typeof t,s=n?i:t||i;let o=gt(e);return lt.has(o)||(o=e),[n,s,o]}function ft(e,t,i,n,s){if("string"!=typeof t||!e)return;let[o,r,a]=ht(t,i,n);if(t in at){const e=e=>function(t){if(!t.relatedTarget||t.relatedTarget!==t.delegateTarget&&!t.delegateTarget.contains(t.relatedTarget))return e.call(this,t)};r=e(r)}const l=dt(e),c=l[a]||(l[a]={}),d=ut(c,r,o?i:null);if(d)return void(d.oneOff=d.oneOff&&s);const u=ct(r,t.replace(it,"")),h=o?function(e,t,i){return function n(s){const o=e.querySelectorAll(t);for(let{target:r}=s;r&&r!==this;r=r.parentNode)for(const a of o)if(a===r)return vt(s,{delegateTarget:r}),n.oneOff&&_t.off(e,s.type,t,i),i.apply(r,[s])}}(e,i,r):function(e,t){return function i(n){return vt(n,{delegateTarget:e}),i.oneOff&&_t.off(e,n.type,t),t.apply(e,[n])}}(e,r);h.delegationSelector=o?i:null,h.callable=r,h.oneOff=s,h.uidEvent=u,c[u]=h,e.addEventListener(a,h,o)}function pt(e,t,i,n,s){const o=ut(t[i],n,s);o&&(e.removeEventListener(i,o,Boolean(s)),delete t[i][o.uidEvent])}function mt(e,t,i,n){const s=t[i]||{};for(const[o,r]of Object.entries(s))o.includes(n)&&pt(e,t,i,r.callable,r.delegationSelector)}function gt(e){return e=e.replace(nt,""),at[e]||e}const _t={on(e,t,i,n){ft(e,t,i,n,!1)},one(e,t,i,n){ft(e,t,i,n,!0)},off(e,t,i,n){if("string"!=typeof t||!e)return;const[s,o,r]=ht(t,i,n),a=r!==t,l=dt(e),c=l[r]||{},d=t.startsWith(".");if(void 0===o){if(d)for(const i of Object.keys(l))mt(e,l,i,t.slice(1));for(const[i,n]of Object.entries(c)){const s=i.replace(st,"");a&&!t.includes(s)||pt(e,l,r,n.callable,n.delegationSelector)}}else{if(!Object.keys(c).length)return;pt(e,l,r,o,s?i:null)}},trigger(e,t,i){if("string"!=typeof t||!e)return null;const n=Ye();let s=null,o=!0,r=!0,a=!1;t!==gt(t)&&n&&(s=n.Event(t,i),n(e).trigger(s),o=!s.isPropagationStopped(),r=!s.isImmediatePropagationStopped(),a=s.isDefaultPrevented());const l=vt(new Event(t,{bubbles:o,cancelable:!0}),i);return a&&l.preventDefault(),r&&e.dispatchEvent(l),l.defaultPrevented&&s&&s.preventDefault(),l}};function vt(e,t={}){for(const[i,n]of Object.entries(t))try{e[i]=n}catch(t){Object.defineProperty(e,i,{configurable:!0,get:()=>n})}return e}function yt(e){if("true"===e)return!0;if("false"===e)return!1;if(e===Number(e).toString())return Number(e);if(""===e||"null"===e)return null;if("string"!=typeof e)return e;try{return JSON.parse(decodeURIComponent(e))}catch(t){return e}}function bt(e){return e.replace(/[A-Z]/g,(e=>`-${e.toLowerCase()}`))}const wt={setDataAttribute(e,t,i){e.setAttribute(`data-bs-${bt(t)}`,i)},removeDataAttribute(e,t){e.removeAttribute(`data-bs-${bt(t)}`)},getDataAttributes(e){if(!e)return{};const t={},i=Object.keys(e.dataset).filter((e=>e.startsWith("bs")&&!e.startsWith("bsConfig")));for(const n of i){let i=n.replace(/^bs/,"");i=i.charAt(0).toLowerCase()+i.slice(1,i.length),t[i]=yt(e.dataset[n])}return t},getDataAttribute:(e,t)=>yt(e.getAttribute(`data-bs-${bt(t)}`))};class jt{static get Default(){return{}}static get DefaultType(){return{}}static get NAME(){throw new Error('You have to implement the static method "NAME", for each component!')}_getConfig(e){return e=this._mergeConfigObj(e),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}_configAfterMerge(e){return e}_mergeConfigObj(e,t){const i=Be(t)?wt.getDataAttribute(t,"config"):{};return{...this.constructor.Default,..."object"==typeof i?i:{},...Be(t)?wt.getDataAttributes(t):{},..."object"==typeof e?e:{}}}_typeCheckConfig(e,t=this.constructor.DefaultType){for(const[n,s]of Object.entries(t)){const t=e[n],o=Be(t)?"element":null==(i=t)?`${i}`:Object.prototype.toString.call(i).match(/\s([a-z]+)/i)[1].toLowerCase();if(!new RegExp(s).test(o))throw new TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${n}" provided type "${o}" but expected type "${s}".`)}var i}}class Ct extends jt{constructor(e,t){super(),(e=Re(e))&&(this._element=e,this._config=this._getConfig(t),Me.set(this._element,this.constructor.DATA_KEY,this))}dispose(){Me.remove(this._element,this.constructor.DATA_KEY),_t.off(this._element,this.constructor.EVENT_KEY);for(const e of Object.getOwnPropertyNames(this))this[e]=null}_queueCallback(e,t,i=!0){et(e,t,i)}_getConfig(e){return e=this._mergeConfigObj(e,this._element),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}static getInstance(e){return Me.get(Re(e),this.DATA_KEY)}static getOrCreateInstance(e,t={}){return this.getInstance(e)||new this(e,"object"==typeof t?t:null)}static get VERSION(){return"5.3.3"}static get DATA_KEY(){return`bs.${this.NAME}`}static get EVENT_KEY(){return`.${this.DATA_KEY}`}static eventName(e){return`${e}${this.EVENT_KEY}`}}const At=e=>{let t=e.getAttribute("data-bs-target");if(!t||"#"===t){let i=e.getAttribute("href");if(!i||!i.includes("#")&&!i.startsWith("."))return null;i.includes("#")&&!i.startsWith("#")&&(i=`#${i.split("#")[1]}`),t=i&&"#"!==i?i.trim():null}return t?t.split(",").map((e=>He(e))).join(","):null},Et={find:(e,t=document.documentElement)=>[].concat(...Element.prototype.querySelectorAll.call(t,e)),findOne:(e,t=document.documentElement)=>Element.prototype.querySelector.call(t,e),children:(e,t)=>[].concat(...e.children).filter((e=>e.matches(t))),parents(e,t){const i=[];let n=e.parentNode.closest(t);for(;n;)i.push(n),n=n.parentNode.closest(t);return i},prev(e,t){let i=e.previousElementSibling;for(;i;){if(i.matches(t))return[i];i=i.previousElementSibling}return[]},next(e,t){let i=e.nextElementSibling;for(;i;){if(i.matches(t))return[i];i=i.nextElementSibling}return[]},focusableChildren(e){const t=["a","button","input","textarea","select","details","[tabindex]",'[contenteditable="true"]'].map((e=>`${e}:not([tabindex^="-"])`)).join(",");return this.find(t,e).filter((e=>!qe(e)&&ze(e)))},getSelectorFromElement(e){const t=At(e);return t&&Et.findOne(t)?t:null},getElementFromSelector(e){const t=At(e);return t?Et.findOne(t):null},getMultipleElementsFromSelector(e){const t=At(e);return t?Et.find(t):[]}},xt=(e,t="hide")=>{const i=`click.dismiss${e.EVENT_KEY}`,n=e.NAME;_t.on(document,i,`[data-bs-dismiss="${n}"]`,(function(i){if(["A","AREA"].includes(this.tagName)&&i.preventDefault(),qe(this))return;const s=Et.getElementFromSelector(this)||this.closest(`.${n}`);e.getOrCreateInstance(s)[t]()}))},Tt=".bs.alert",kt=`close${Tt}`,Ot=`closed${Tt}`;class Qt extends Ct{static get NAME(){return"alert"}close(){if(_t.trigger(this._element,kt).defaultPrevented)return;this._element.classList.remove("show");const e=this._element.classList.contains("fade");this._queueCallback((()=>this._destroyElement()),this._element,e)}_destroyElement(){this._element.remove(),_t.trigger(this._element,Ot),this.dispose()}static jQueryInterface(e){return this.each((function(){const t=Qt.getOrCreateInstance(this);if("string"==typeof e){if(void 0===t[e]||e.startsWith("_")||"constructor"===e)throw new TypeError(`No method named "${e}"`);t[e](this)}}))}}xt(Qt,"close"),Je(Qt);const Dt='[data-bs-toggle="button"]';class Lt extends Ct{static get NAME(){return"button"}toggle(){this._element.setAttribute("aria-pressed",this._element.classList.toggle("active"))}static jQueryInterface(e){return this.each((function(){const t=Lt.getOrCreateInstance(this);"toggle"===e&&t[e]()}))}}_t.on(document,"click.bs.button.data-api",Dt,(e=>{e.preventDefault();const t=e.target.closest(Dt);Lt.getOrCreateInstance(t).toggle()})),Je(Lt);const St=".bs.swipe",It=`touchstart${St}`,$t=`touchmove${St}`,Nt=`touchend${St}`,Pt=`pointerdown${St}`,Mt=`pointerup${St}`,Ft={endCallback:null,leftCallback:null,rightCallback:null},Ht={endCallback:"(function|null)",leftCallback:"(function|null)",rightCallback:"(function|null)"};class Wt extends jt{constructor(e,t){super(),this._element=e,e&&Wt.isSupported()&&(this._config=this._getConfig(t),this._deltaX=0,this._supportPointerEvents=Boolean(window.PointerEvent),this._initEvents())}static get Default(){return Ft}static get DefaultType(){return Ht}static get NAME(){return"swipe"}dispose(){_t.off(this._element,St)}_start(e){this._supportPointerEvents?this._eventIsPointerPenTouch(e)&&(this._deltaX=e.clientX):this._deltaX=e.touches[0].clientX}_end(e){this._eventIsPointerPenTouch(e)&&(this._deltaX=e.clientX-this._deltaX),this._handleSwipe(),Ze(this._config.endCallback)}_move(e){this._deltaX=e.touches&&e.touches.length>1?0:e.touches[0].clientX-this._deltaX}_handleSwipe(){const e=Math.abs(this._deltaX);if(e<=40)return;const t=e/this._deltaX;this._deltaX=0,t&&Ze(t>0?this._config.rightCallback:this._config.leftCallback)}_initEvents(){this._supportPointerEvents?(_t.on(this._element,Pt,(e=>this._start(e))),_t.on(this._element,Mt,(e=>this._end(e))),this._element.classList.add("pointer-event")):(_t.on(this._element,It,(e=>this._start(e))),_t.on(this._element,$t,(e=>this._move(e))),_t.on(this._element,Nt,(e=>this._end(e))))}_eventIsPointerPenTouch(e){return this._supportPointerEvents&&("pen"===e.pointerType||"touch"===e.pointerType)}static isSupported(){return"ontouchstart"in document.documentElement||navigator.maxTouchPoints>0}}const Bt=".bs.carousel",Rt=".data-api",zt="ArrowLeft",qt="ArrowRight",Vt="next",Ut="prev",Kt="left",Yt="right",Xt=`slide${Bt}`,Gt=`slid${Bt}`,Jt=`keydown${Bt}`,Zt=`mouseenter${Bt}`,ei=`mouseleave${Bt}`,ti=`dragstart${Bt}`,ii=`load${Bt}${Rt}`,ni=`click${Bt}${Rt}`,si="carousel",oi="active",ri=".active",ai=".carousel-item",li=ri+ai,ci={[zt]:Yt,[qt]:Kt},di={interval:5e3,keyboard:!0,pause:"hover",ride:!1,touch:!0,wrap:!0},ui={interval:"(number|boolean)",keyboard:"boolean",pause:"(string|boolean)",ride:"(boolean|string)",touch:"boolean",wrap:"boolean"};class hi extends Ct{constructor(e,t){super(e,t),this._interval=null,this._activeElement=null,this._isSliding=!1,this.touchTimeout=null,this._swipeHelper=null,this._indicatorsElement=Et.findOne(".carousel-indicators",this._element),this._addEventListeners(),this._config.ride===si&&this.cycle()}static get Default(){return di}static get DefaultType(){return ui}static get NAME(){return"carousel"}next(){this._slide(Vt)}nextWhenVisible(){!document.hidden&&ze(this._element)&&this.next()}prev(){this._slide(Ut)}pause(){this._isSliding&&We(this._element),this._clearInterval()}cycle(){this._clearInterval(),this._updateInterval(),this._interval=setInterval((()=>this.nextWhenVisible()),this._config.interval)}_maybeEnableCycle(){this._config.ride&&(this._isSliding?_t.one(this._element,Gt,(()=>this.cycle())):this.cycle())}to(e){const t=this._getItems();if(e>t.length-1||e<0)return;if(this._isSliding)return void _t.one(this._element,Gt,(()=>this.to(e)));const i=this._getItemIndex(this._getActive());if(i===e)return;const n=e>i?Vt:Ut;this._slide(n,t[e])}dispose(){this._swipeHelper&&this._swipeHelper.dispose(),super.dispose()}_configAfterMerge(e){return e.defaultInterval=e.interval,e}_addEventListeners(){this._config.keyboard&&_t.on(this._element,Jt,(e=>this._keydown(e))),"hover"===this._config.pause&&(_t.on(this._element,Zt,(()=>this.pause())),_t.on(this._element,ei,(()=>this._maybeEnableCycle()))),this._config.touch&&Wt.isSupported()&&this._addTouchEventListeners()}_addTouchEventListeners(){for(const e of Et.find(".carousel-item img",this._element))_t.on(e,ti,(e=>e.preventDefault()));const e={leftCallback:()=>this._slide(this._directionToOrder(Kt)),rightCallback:()=>this._slide(this._directionToOrder(Yt)),endCallback:()=>{"hover"===this._config.pause&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout((()=>this._maybeEnableCycle()),500+this._config.interval))}};this._swipeHelper=new Wt(this._element,e)}_keydown(e){if(/input|textarea/i.test(e.target.tagName))return;const t=ci[e.key];t&&(e.preventDefault(),this._slide(this._directionToOrder(t)))}_getItemIndex(e){return this._getItems().indexOf(e)}_setActiveIndicatorElement(e){if(!this._indicatorsElement)return;const t=Et.findOne(ri,this._indicatorsElement);t.classList.remove(oi),t.removeAttribute("aria-current");const i=Et.findOne(`[data-bs-slide-to="${e}"]`,this._indicatorsElement);i&&(i.classList.add(oi),i.setAttribute("aria-current","true"))}_updateInterval(){const e=this._activeElement||this._getActive();if(!e)return;const t=Number.parseInt(e.getAttribute("data-bs-interval"),10);this._config.interval=t||this._config.defaultInterval}_slide(e,t=null){if(this._isSliding)return;const i=this._getActive(),n=e===Vt,s=t||tt(this._getItems(),i,n,this._config.wrap);if(s===i)return;const o=this._getItemIndex(s),r=t=>_t.trigger(this._element,t,{relatedTarget:s,direction:this._orderToDirection(e),from:this._getItemIndex(i),to:o});if(r(Xt).defaultPrevented)return;if(!i||!s)return;const a=Boolean(this._interval);this.pause(),this._isSliding=!0,this._setActiveIndicatorElement(o),this._activeElement=s;const l=n?"carousel-item-start":"carousel-item-end",c=n?"carousel-item-next":"carousel-item-prev";s.classList.add(c),Ke(s),i.classList.add(l),s.classList.add(l),this._queueCallback((()=>{s.classList.remove(l,c),s.classList.add(oi),i.classList.remove(oi,c,l),this._isSliding=!1,r(Gt)}),i,this._isAnimated()),a&&this.cycle()}_isAnimated(){return this._element.classList.contains("slide")}_getActive(){return Et.findOne(li,this._element)}_getItems(){return Et.find(ai,this._element)}_clearInterval(){this._interval&&(clearInterval(this._interval),this._interval=null)}_directionToOrder(e){return Ge()?e===Kt?Ut:Vt:e===Kt?Vt:Ut}_orderToDirection(e){return Ge()?e===Ut?Kt:Yt:e===Ut?Yt:Kt}static jQueryInterface(e){return this.each((function(){const t=hi.getOrCreateInstance(this,e);if("number"!=typeof e){if("string"==typeof e){if(void 0===t[e]||e.startsWith("_")||"constructor"===e)throw new TypeError(`No method named "${e}"`);t[e]()}}else t.to(e)}))}}_t.on(document,ni,"[data-bs-slide], [data-bs-slide-to]",(function(e){const t=Et.getElementFromSelector(this);if(!t||!t.classList.contains(si))return;e.preventDefault();const i=hi.getOrCreateInstance(t),n=this.getAttribute("data-bs-slide-to");return n?(i.to(n),void i._maybeEnableCycle()):"next"===wt.getDataAttribute(this,"slide")?(i.next(),void i._maybeEnableCycle()):(i.prev(),void i._maybeEnableCycle())})),_t.on(window,ii,(()=>{const e=Et.find('[data-bs-ride="carousel"]');for(const t of e)hi.getOrCreateInstance(t)})),Je(hi);const fi=".bs.collapse",pi=`show${fi}`,mi=`shown${fi}`,gi=`hide${fi}`,_i=`hidden${fi}`,vi=`click${fi}.data-api`,yi="show",bi="collapse",wi="collapsing",ji=`:scope .${bi} .${bi}`,Ci='[data-bs-toggle="collapse"]',Ai={parent:null,toggle:!0},Ei={parent:"(null|element)",toggle:"boolean"};class xi extends Ct{constructor(e,t){super(e,t),this._isTransitioning=!1,this._triggerArray=[];const i=Et.find(Ci);for(const e of i){const t=Et.getSelectorFromElement(e),i=Et.find(t).filter((e=>e===this._element));null!==t&&i.length&&this._triggerArray.push(e)}this._initializeChildren(),this._config.parent||this._addAriaAndCollapsedClass(this._triggerArray,this._isShown()),this._config.toggle&&this.toggle()}static get Default(){return Ai}static get DefaultType(){return Ei}static get NAME(){return"collapse"}toggle(){this._isShown()?this.hide():this.show()}show(){if(this._isTransitioning||this._isShown())return;let e=[];if(this._config.parent&&(e=this._getFirstLevelChildren(".collapse.show, .collapse.collapsing").filter((e=>e!==this._element)).map((e=>xi.getOrCreateInstance(e,{toggle:!1})))),e.length&&e[0]._isTransitioning)return;if(_t.trigger(this._element,pi).defaultPrevented)return;for(const t of e)t.hide();const t=this._getDimension();this._element.classList.remove(bi),this._element.classList.add(wi),this._element.style[t]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;const i=`scroll${t[0].toUpperCase()+t.slice(1)}`;this._queueCallback((()=>{this._isTransitioning=!1,this._element.classList.remove(wi),this._element.classList.add(bi,yi),this._element.style[t]="",_t.trigger(this._element,mi)}),this._element,!0),this._element.style[t]=`${this._element[i]}px`}hide(){if(this._isTransitioning||!this._isShown())return;if(_t.trigger(this._element,gi).defaultPrevented)return;const e=this._getDimension();this._element.style[e]=`${this._element.getBoundingClientRect()[e]}px`,Ke(this._element),this._element.classList.add(wi),this._element.classList.remove(bi,yi);for(const e of this._triggerArray){const t=Et.getElementFromSelector(e);t&&!this._isShown(t)&&this._addAriaAndCollapsedClass([e],!1)}this._isTransitioning=!0,this._element.style[e]="",this._queueCallback((()=>{this._isTransitioning=!1,this._element.classList.remove(wi),this._element.classList.add(bi),_t.trigger(this._element,_i)}),this._element,!0)}_isShown(e=this._element){return e.classList.contains(yi)}_configAfterMerge(e){return e.toggle=Boolean(e.toggle),e.parent=Re(e.parent),e}_getDimension(){return this._element.classList.contains("collapse-horizontal")?"width":"height"}_initializeChildren(){if(!this._config.parent)return;const e=this._getFirstLevelChildren(Ci);for(const t of e){const e=Et.getElementFromSelector(t);e&&this._addAriaAndCollapsedClass([t],this._isShown(e))}}_getFirstLevelChildren(e){const t=Et.find(ji,this._config.parent);return Et.find(e,this._config.parent).filter((e=>!t.includes(e)))}_addAriaAndCollapsedClass(e,t){if(e.length)for(const i of e)i.classList.toggle("collapsed",!t),i.setAttribute("aria-expanded",t)}static jQueryInterface(e){const t={};return"string"==typeof e&&/show|hide/.test(e)&&(t.toggle=!1),this.each((function(){const i=xi.getOrCreateInstance(this,t);if("string"==typeof e){if(void 0===i[e])throw new TypeError(`No method named "${e}"`);i[e]()}}))}}_t.on(document,vi,Ci,(function(e){("A"===e.target.tagName||e.delegateTarget&&"A"===e.delegateTarget.tagName)&&e.preventDefault();for(const e of Et.getMultipleElementsFromSelector(this))xi.getOrCreateInstance(e,{toggle:!1}).toggle()})),Je(xi);const Ti="dropdown",ki=".bs.dropdown",Oi=".data-api",Qi="ArrowUp",Di="ArrowDown",Li=`hide${ki}`,Si=`hidden${ki}`,Ii=`show${ki}`,$i=`shown${ki}`,Ni=`click${ki}${Oi}`,Pi=`keydown${ki}${Oi}`,Mi=`keyup${ki}${Oi}`,Fi="show",Hi='[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled)',Wi=`${Hi}.${Fi}`,Bi=".dropdown-menu",Ri=Ge()?"top-end":"top-start",zi=Ge()?"top-start":"top-end",qi=Ge()?"bottom-end":"bottom-start",Vi=Ge()?"bottom-start":"bottom-end",Ui=Ge()?"left-start":"right-start",Ki=Ge()?"right-start":"left-start",Yi={autoClose:!0,boundary:"clippingParents",display:"dynamic",offset:[0,2],popperConfig:null,reference:"toggle"},Xi={autoClose:"(boolean|string)",boundary:"(string|element)",display:"string",offset:"(array|string|function)",popperConfig:"(null|object|function)",reference:"(string|element|object)"};class Gi extends Ct{constructor(e,t){super(e,t),this._popper=null,this._parent=this._element.parentNode,this._menu=Et.next(this._element,Bi)[0]||Et.prev(this._element,Bi)[0]||Et.findOne(Bi,this._parent),this._inNavbar=this._detectNavbar()}static get Default(){return Yi}static get DefaultType(){return Xi}static get NAME(){return Ti}toggle(){return this._isShown()?this.hide():this.show()}show(){if(qe(this._element)||this._isShown())return;const e={relatedTarget:this._element};if(!_t.trigger(this._element,Ii,e).defaultPrevented){if(this._createPopper(),"ontouchstart"in document.documentElement&&!this._parent.closest(".navbar-nav"))for(const e of[].concat(...document.body.children))_t.on(e,"mouseover",Ue);this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.add(Fi),this._element.classList.add(Fi),_t.trigger(this._element,$i,e)}}hide(){if(qe(this._element)||!this._isShown())return;const e={relatedTarget:this._element};this._completeHide(e)}dispose(){this._popper&&this._popper.destroy(),super.dispose()}update(){this._inNavbar=this._detectNavbar(),this._popper&&this._popper.update()}_completeHide(e){if(!_t.trigger(this._element,Li,e).defaultPrevented){if("ontouchstart"in document.documentElement)for(const e of[].concat(...document.body.children))_t.off(e,"mouseover",Ue);this._popper&&this._popper.destroy(),this._menu.classList.remove(Fi),this._element.classList.remove(Fi),this._element.setAttribute("aria-expanded","false"),wt.removeDataAttribute(this._menu,"popper"),_t.trigger(this._element,Si,e)}}_getConfig(e){if("object"==typeof(e=super._getConfig(e)).reference&&!Be(e.reference)&&"function"!=typeof e.reference.getBoundingClientRect)throw new TypeError(`${Ti.toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`);return e}_createPopper(){let e=this._element;"parent"===this._config.reference?e=this._parent:Be(this._config.reference)?e=Re(this._config.reference):"object"==typeof this._config.reference&&(e=this._config.reference);const t=this._getPopperConfig();this._popper=$e(e,this._menu,t)}_isShown(){return this._menu.classList.contains(Fi)}_getPlacement(){const e=this._parent;if(e.classList.contains("dropend"))return Ui;if(e.classList.contains("dropstart"))return Ki;if(e.classList.contains("dropup-center"))return"top";if(e.classList.contains("dropdown-center"))return"bottom";const t="end"===getComputedStyle(this._menu).getPropertyValue("--bs-position").trim();return e.classList.contains("dropup")?t?zi:Ri:t?Vi:qi}_detectNavbar(){return null!==this._element.closest(".navbar")}_getOffset(){const{offset:e}=this._config;return"string"==typeof e?e.split(",").map((e=>Number.parseInt(e,10))):"function"==typeof e?t=>e(t,this._element):e}_getPopperConfig(){const e={placement:this._getPlacement(),modifiers:[{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"offset",options:{offset:this._getOffset()}}]};return(this._inNavbar||"static"===this._config.display)&&(wt.setDataAttribute(this._menu,"popper","static"),e.modifiers=[{name:"applyStyles",enabled:!1}]),{...e,...Ze(this._config.popperConfig,[e])}}_selectMenuItem({key:e,target:t}){const i=Et.find(".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",this._menu).filter((e=>ze(e)));i.length&&tt(i,t,e===Di,!i.includes(t)).focus()}static jQueryInterface(e){return this.each((function(){const t=Gi.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e])throw new TypeError(`No method named "${e}"`);t[e]()}}))}static clearMenus(e){if(2===e.button||"keyup"===e.type&&"Tab"!==e.key)return;const t=Et.find(Wi);for(const i of t){const t=Gi.getInstance(i);if(!t||!1===t._config.autoClose)continue;const n=e.composedPath(),s=n.includes(t._menu);if(n.includes(t._element)||"inside"===t._config.autoClose&&!s||"outside"===t._config.autoClose&&s)continue;if(t._menu.contains(e.target)&&("keyup"===e.type&&"Tab"===e.key||/input|select|option|textarea|form/i.test(e.target.tagName)))continue;const o={relatedTarget:t._element};"click"===e.type&&(o.clickEvent=e),t._completeHide(o)}}static dataApiKeydownHandler(e){const t=/input|textarea/i.test(e.target.tagName),i="Escape"===e.key,n=[Qi,Di].includes(e.key);if(!n&&!i)return;if(t&&!i)return;e.preventDefault();const s=this.matches(Hi)?this:Et.prev(this,Hi)[0]||Et.next(this,Hi)[0]||Et.findOne(Hi,e.delegateTarget.parentNode),o=Gi.getOrCreateInstance(s);if(n)return e.stopPropagation(),o.show(),void o._selectMenuItem(e);o._isShown()&&(e.stopPropagation(),o.hide(),s.focus())}}_t.on(document,Pi,Hi,Gi.dataApiKeydownHandler),_t.on(document,Pi,Bi,Gi.dataApiKeydownHandler),_t.on(document,Ni,Gi.clearMenus),_t.on(document,Mi,Gi.clearMenus),_t.on(document,Ni,Hi,(function(e){e.preventDefault(),Gi.getOrCreateInstance(this).toggle()})),Je(Gi);const Ji="backdrop",Zi="show",en=`mousedown.bs.${Ji}`,tn={className:"modal-backdrop",clickCallback:null,isAnimated:!1,isVisible:!0,rootElement:"body"},nn={className:"string",clickCallback:"(function|null)",isAnimated:"boolean",isVisible:"boolean",rootElement:"(element|string)"};class sn extends jt{constructor(e){super(),this._config=this._getConfig(e),this._isAppended=!1,this._element=null}static get Default(){return tn}static get DefaultType(){return nn}static get NAME(){return Ji}show(e){if(!this._config.isVisible)return void Ze(e);this._append();const t=this._getElement();this._config.isAnimated&&Ke(t),t.classList.add(Zi),this._emulateAnimation((()=>{Ze(e)}))}hide(e){this._config.isVisible?(this._getElement().classList.remove(Zi),this._emulateAnimation((()=>{this.dispose(),Ze(e)}))):Ze(e)}dispose(){this._isAppended&&(_t.off(this._element,en),this._element.remove(),this._isAppended=!1)}_getElement(){if(!this._element){const e=document.createElement("div");e.className=this._config.className,this._config.isAnimated&&e.classList.add("fade"),this._element=e}return this._element}_configAfterMerge(e){return e.rootElement=Re(e.rootElement),e}_append(){if(this._isAppended)return;const e=this._getElement();this._config.rootElement.append(e),_t.on(e,en,(()=>{Ze(this._config.clickCallback)})),this._isAppended=!0}_emulateAnimation(e){et(e,this._getElement(),this._config.isAnimated)}}const on=".bs.focustrap",rn=`focusin${on}`,an=`keydown.tab${on}`,ln="backward",cn={autofocus:!0,trapElement:null},dn={autofocus:"boolean",trapElement:"element"};class un extends jt{constructor(e){super(),this._config=this._getConfig(e),this._isActive=!1,this._lastTabNavDirection=null}static get Default(){return cn}static get DefaultType(){return dn}static get NAME(){return"focustrap"}activate(){this._isActive||(this._config.autofocus&&this._config.trapElement.focus(),_t.off(document,on),_t.on(document,rn,(e=>this._handleFocusin(e))),_t.on(document,an,(e=>this._handleKeydown(e))),this._isActive=!0)}deactivate(){this._isActive&&(this._isActive=!1,_t.off(document,on))}_handleFocusin(e){const{trapElement:t}=this._config;if(e.target===document||e.target===t||t.contains(e.target))return;const i=Et.focusableChildren(t);0===i.length?t.focus():this._lastTabNavDirection===ln?i[i.length-1].focus():i[0].focus()}_handleKeydown(e){"Tab"===e.key&&(this._lastTabNavDirection=e.shiftKey?ln:"forward")}}const hn=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",fn=".sticky-top",pn="padding-right",mn="margin-right";class gn{constructor(){this._element=document.body}getWidth(){const e=document.documentElement.clientWidth;return Math.abs(window.innerWidth-e)}hide(){const e=this.getWidth();this._disableOverFlow(),this._setElementAttributes(this._element,pn,(t=>t+e)),this._setElementAttributes(hn,pn,(t=>t+e)),this._setElementAttributes(fn,mn,(t=>t-e))}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,pn),this._resetElementAttributes(hn,pn),this._resetElementAttributes(fn,mn)}isOverflowing(){return this.getWidth()>0}_disableOverFlow(){this._saveInitialAttribute(this._element,"overflow"),this._element.style.overflow="hidden"}_setElementAttributes(e,t,i){const n=this.getWidth();this._applyManipulationCallback(e,(e=>{if(e!==this._element&&window.innerWidth>e.clientWidth+n)return;this._saveInitialAttribute(e,t);const s=window.getComputedStyle(e).getPropertyValue(t);e.style.setProperty(t,`${i(Number.parseFloat(s))}px`)}))}_saveInitialAttribute(e,t){const i=e.style.getPropertyValue(t);i&&wt.setDataAttribute(e,t,i)}_resetElementAttributes(e,t){this._applyManipulationCallback(e,(e=>{const i=wt.getDataAttribute(e,t);null!==i?(wt.removeDataAttribute(e,t),e.style.setProperty(t,i)):e.style.removeProperty(t)}))}_applyManipulationCallback(e,t){if(Be(e))t(e);else for(const i of Et.find(e,this._element))t(i)}}const vn=".bs.modal",yn=`hide${vn}`,bn=`hidePrevented${vn}`,wn=`hidden${vn}`,jn=`show${vn}`,Cn=`shown${vn}`,An=`resize${vn}`,En=`click.dismiss${vn}`,xn=`mousedown.dismiss${vn}`,Tn=`keydown.dismiss${vn}`,kn=`click${vn}.data-api`,On="modal-open",Qn="show",Dn="modal-static",Ln={backdrop:!0,focus:!0,keyboard:!0},Sn={backdrop:"(boolean|string)",focus:"boolean",keyboard:"boolean"};class In extends Ct{constructor(e,t){super(e,t),this._dialog=Et.findOne(".modal-dialog",this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._isTransitioning=!1,this._scrollBar=new gn,this._addEventListeners()}static get Default(){return Ln}static get DefaultType(){return Sn}static get NAME(){return"modal"}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){this._isShown||this._isTransitioning||_t.trigger(this._element,jn,{relatedTarget:e}).defaultPrevented||(this._isShown=!0,this._isTransitioning=!0,this._scrollBar.hide(),document.body.classList.add(On),this._adjustDialog(),this._backdrop.show((()=>this._showElement(e))))}hide(){this._isShown&&!this._isTransitioning&&(_t.trigger(this._element,yn).defaultPrevented||(this._isShown=!1,this._isTransitioning=!0,this._focustrap.deactivate(),this._element.classList.remove(Qn),this._queueCallback((()=>this._hideModal()),this._element,this._isAnimated())))}dispose(){_t.off(window,vn),_t.off(this._dialog,vn),this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new sn({isVisible:Boolean(this._config.backdrop),isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new un({trapElement:this._element})}_showElement(e){document.body.contains(this._element)||document.body.append(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;const t=Et.findOne(".modal-body",this._dialog);t&&(t.scrollTop=0),Ke(this._element),this._element.classList.add(Qn),this._queueCallback((()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,_t.trigger(this._element,Cn,{relatedTarget:e})}),this._dialog,this._isAnimated())}_addEventListeners(){_t.on(this._element,Tn,(e=>{"Escape"===e.key&&(this._config.keyboard?this.hide():this._triggerBackdropTransition())})),_t.on(window,An,(()=>{this._isShown&&!this._isTransitioning&&this._adjustDialog()})),_t.on(this._element,xn,(e=>{_t.one(this._element,En,(t=>{this._element===e.target&&this._element===t.target&&("static"!==this._config.backdrop?this._config.backdrop&&this.hide():this._triggerBackdropTransition())}))}))}_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(On),this._resetAdjustments(),this._scrollBar.reset(),_t.trigger(this._element,wn)}))}_isAnimated(){return this._element.classList.contains("fade")}_triggerBackdropTransition(){if(_t.trigger(this._element,bn).defaultPrevented)return;const e=this._element.scrollHeight>document.documentElement.clientHeight,t=this._element.style.overflowY;"hidden"===t||this._element.classList.contains(Dn)||(e||(this._element.style.overflowY="hidden"),this._element.classList.add(Dn),this._queueCallback((()=>{this._element.classList.remove(Dn),this._queueCallback((()=>{this._element.style.overflowY=t}),this._dialog)}),this._dialog),this._element.focus())}_adjustDialog(){const e=this._element.scrollHeight>document.documentElement.clientHeight,t=this._scrollBar.getWidth(),i=t>0;if(i&&!e){const e=Ge()?"paddingLeft":"paddingRight";this._element.style[e]=`${t}px`}if(!i&&e){const e=Ge()?"paddingRight":"paddingLeft";this._element.style[e]=`${t}px`}}_resetAdjustments(){this._element.style.paddingLeft="",this._element.style.paddingRight=""}static jQueryInterface(e,t){return this.each((function(){const i=In.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===i[e])throw new TypeError(`No method named "${e}"`);i[e](t)}}))}}_t.on(document,kn,'[data-bs-toggle="modal"]',(function(e){const t=Et.getElementFromSelector(this);["A","AREA"].includes(this.tagName)&&e.preventDefault(),_t.one(t,jn,(e=>{e.defaultPrevented||_t.one(t,wn,(()=>{ze(this)&&this.focus()}))}));const i=Et.findOne(".modal.show");i&&In.getInstance(i).hide(),In.getOrCreateInstance(t).toggle(this)})),xt(In),Je(In);const $n=".bs.offcanvas",Nn=".data-api",Pn=`load${$n}${Nn}`,Mn="show",Fn="showing",Hn="hiding",Wn=".offcanvas.show",Bn=`show${$n}`,Rn=`shown${$n}`,zn=`hide${$n}`,qn=`hidePrevented${$n}`,Vn=`hidden${$n}`,Un=`resize${$n}`,Kn=`click${$n}${Nn}`,Yn=`keydown.dismiss${$n}`,Xn={backdrop:!0,keyboard:!0,scroll:!1},Gn={backdrop:"(boolean|string)",keyboard:"boolean",scroll:"boolean"};class Jn extends Ct{constructor(e,t){super(e,t),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._addEventListeners()}static get Default(){return Xn}static get DefaultType(){return Gn}static get NAME(){return"offcanvas"}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){this._isShown||_t.trigger(this._element,Bn,{relatedTarget:e}).defaultPrevented||(this._isShown=!0,this._backdrop.show(),this._config.scroll||(new gn).hide(),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.classList.add(Fn),this._queueCallback((()=>{this._config.scroll&&!this._config.backdrop||this._focustrap.activate(),this._element.classList.add(Mn),this._element.classList.remove(Fn),_t.trigger(this._element,Rn,{relatedTarget:e})}),this._element,!0))}hide(){this._isShown&&(_t.trigger(this._element,zn).defaultPrevented||(this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.add(Hn),this._backdrop.hide(),this._queueCallback((()=>{this._element.classList.remove(Mn,Hn),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._config.scroll||(new gn).reset(),_t.trigger(this._element,Vn)}),this._element,!0)))}dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}_initializeBackDrop(){const e=Boolean(this._config.backdrop);return new sn({className:"offcanvas-backdrop",isVisible:e,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:e?()=>{"static"!==this._config.backdrop?this.hide():_t.trigger(this._element,qn)}:null})}_initializeFocusTrap(){return new un({trapElement:this._element})}_addEventListeners(){_t.on(this._element,Yn,(e=>{"Escape"===e.key&&(this._config.keyboard?this.hide():_t.trigger(this._element,qn))}))}static jQueryInterface(e){return this.each((function(){const t=Jn.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e]||e.startsWith("_")||"constructor"===e)throw new TypeError(`No method named "${e}"`);t[e](this)}}))}}_t.on(document,Kn,'[data-bs-toggle="offcanvas"]',(function(e){const t=Et.getElementFromSelector(this);if(["A","AREA"].includes(this.tagName)&&e.preventDefault(),qe(this))return;_t.one(t,Vn,(()=>{ze(this)&&this.focus()}));const i=Et.findOne(Wn);i&&i!==t&&Jn.getInstance(i).hide(),Jn.getOrCreateInstance(t).toggle(this)})),_t.on(window,Pn,(()=>{for(const e of Et.find(Wn))Jn.getOrCreateInstance(e).show()})),_t.on(window,Un,(()=>{for(const e of Et.find("[aria-modal][class*=show][class*=offcanvas-]"))"fixed"!==getComputedStyle(e).position&&Jn.getOrCreateInstance(e).hide()})),xt(Jn),Je(Jn);const Zn={"*":["class","dir","id","lang","role",/^aria-[\w-]*$/i],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],dd:[],div:[],dl:[],dt:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","srcset","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]},es=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),ts=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:/?#]*(?:[/?#]|$))/i,is=(e,t)=>{const i=e.nodeName.toLowerCase();return t.includes(i)?!es.has(i)||Boolean(ts.test(e.nodeValue)):t.filter((e=>e instanceof RegExp)).some((e=>e.test(i)))},ns={allowList:Zn,content:{},extraClass:"",html:!1,sanitize:!0,sanitizeFn:null,template:"<div></div>"},ss={allowList:"object",content:"object",extraClass:"(string|function)",html:"boolean",sanitize:"boolean",sanitizeFn:"(null|function)",template:"string"},os={entry:"(string|element|function|null)",selector:"(string|element)"};class rs extends jt{constructor(e){super(),this._config=this._getConfig(e)}static get Default(){return ns}static get DefaultType(){return ss}static get NAME(){return"TemplateFactory"}getContent(){return Object.values(this._config.content).map((e=>this._resolvePossibleFunction(e))).filter(Boolean)}hasContent(){return this.getContent().length>0}changeContent(e){return this._checkContent(e),this._config.content={...this._config.content,...e},this}toHtml(){const e=document.createElement("div");e.innerHTML=this._maybeSanitize(this._config.template);for(const[t,i]of Object.entries(this._config.content))this._setContent(e,i,t);const t=e.children[0],i=this._resolvePossibleFunction(this._config.extraClass);return i&&t.classList.add(...i.split(" ")),t}_typeCheckConfig(e){super._typeCheckConfig(e),this._checkContent(e.content)}_checkContent(e){for(const[t,i]of Object.entries(e))super._typeCheckConfig({selector:t,entry:i},os)}_setContent(e,t,i){const n=Et.findOne(i,e);n&&((t=this._resolvePossibleFunction(t))?Be(t)?this._putElementInTemplate(Re(t),n):this._config.html?n.innerHTML=this._maybeSanitize(t):n.textContent=t:n.remove())}_maybeSanitize(e){return this._config.sanitize?function(e,t,i){if(!e.length)return e;if(i&&"function"==typeof i)return i(e);const n=(new window.DOMParser).parseFromString(e,"text/html"),s=[].concat(...n.body.querySelectorAll("*"));for(const e of s){const i=e.nodeName.toLowerCase();if(!Object.keys(t).includes(i)){e.remove();continue}const n=[].concat(...e.attributes),s=[].concat(t["*"]||[],t[i]||[]);for(const t of n)is(t,s)||e.removeAttribute(t.nodeName)}return n.body.innerHTML}(e,this._config.allowList,this._config.sanitizeFn):e}_resolvePossibleFunction(e){return Ze(e,[this])}_putElementInTemplate(e,t){if(this._config.html)return t.innerHTML="",void t.append(e);t.textContent=e.textContent}}const as=new Set(["sanitize","allowList","sanitizeFn"]),ls="fade",cs="show",ds=".tooltip-inner",us=".modal",hs="hide.bs.modal",fs="hover",ps="focus",ms={AUTO:"auto",TOP:"top",RIGHT:Ge()?"left":"right",BOTTOM:"bottom",LEFT:Ge()?"right":"left"},gs={allowList:Zn,animation:!0,boundary:"clippingParents",container:!1,customClass:"",delay:0,fallbackPlacements:["top","right","bottom","left"],html:!1,offset:[0,6],placement:"top",popperConfig:null,sanitize:!0,sanitizeFn:null,selector:!1,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',title:"",trigger:"hover focus"},_s={allowList:"object",animation:"boolean",boundary:"(string|element)",container:"(string|element|boolean)",customClass:"(string|function)",delay:"(number|object)",fallbackPlacements:"array",html:"boolean",offset:"(array|string|function)",placement:"(string|function)",popperConfig:"(null|object|function)",sanitize:"boolean",sanitizeFn:"(null|function)",selector:"(string|boolean)",template:"string",title:"(string|element|function)",trigger:"string"};class vs extends Ct{constructor(e,t){super(e,t),this._isEnabled=!0,this._timeout=0,this._isHovered=null,this._activeTrigger={},this._popper=null,this._templateFactory=null,this._newContent=null,this.tip=null,this._setListeners(),this._config.selector||this._fixTitle()}static get Default(){return gs}static get DefaultType(){return _s}static get NAME(){return"tooltip"}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}toggleEnabled(){this._isEnabled=!this._isEnabled}toggle(){this._isEnabled&&(this._activeTrigger.click=!this._activeTrigger.click,this._isShown()?this._leave():this._enter())}dispose(){clearTimeout(this._timeout),_t.off(this._element.closest(us),hs,this._hideModalHandler),this._element.getAttribute("data-bs-original-title")&&this._element.setAttribute("title",this._element.getAttribute("data-bs-original-title")),this._disposePopper(),super.dispose()}show(){if("none"===this._element.style.display)throw new Error("Please use show on visible elements");if(!this._isWithContent()||!this._isEnabled)return;const e=_t.trigger(this._element,this.constructor.eventName("show")),t=(Ve(this._element)||this._element.ownerDocument.documentElement).contains(this._element);if(e.defaultPrevented||!t)return;this._disposePopper();const i=this._getTipElement();this._element.setAttribute("aria-describedby",i.getAttribute("id"));const{container:n}=this._config;if(this._element.ownerDocument.documentElement.contains(this.tip)||(n.append(i),_t.trigger(this._element,this.constructor.eventName("inserted"))),this._popper=this._createPopper(i),i.classList.add(cs),"ontouchstart"in document.documentElement)for(const e of[].concat(...document.body.children))_t.on(e,"mouseover",Ue);this._queueCallback((()=>{_t.trigger(this._element,this.constructor.eventName("shown")),!1===this._isHovered&&this._leave(),this._isHovered=!1}),this.tip,this._isAnimated())}hide(){if(this._isShown()&&!_t.trigger(this._element,this.constructor.eventName("hide")).defaultPrevented){if(this._getTipElement().classList.remove(cs),"ontouchstart"in document.documentElement)for(const e of[].concat(...document.body.children))_t.off(e,"mouseover",Ue);this._activeTrigger.click=!1,this._activeTrigger[ps]=!1,this._activeTrigger[fs]=!1,this._isHovered=null,this._queueCallback((()=>{this._isWithActiveTrigger()||(this._isHovered||this._disposePopper(),this._element.removeAttribute("aria-describedby"),_t.trigger(this._element,this.constructor.eventName("hidden")))}),this.tip,this._isAnimated())}}update(){this._popper&&this._popper.update()}_isWithContent(){return Boolean(this._getTitle())}_getTipElement(){return this.tip||(this.tip=this._createTipElement(this._newContent||this._getContentForTemplate())),this.tip}_createTipElement(e){const t=this._getTemplateFactory(e).toHtml();if(!t)return null;t.classList.remove(ls,cs),t.classList.add(`bs-${this.constructor.NAME}-auto`);const i=(e=>{do{e+=Math.floor(1e6*Math.random())}while(document.getElementById(e));return e})(this.constructor.NAME).toString();return t.setAttribute("id",i),this._isAnimated()&&t.classList.add(ls),t}setContent(e){this._newContent=e,this._isShown()&&(this._disposePopper(),this.show())}_getTemplateFactory(e){return this._templateFactory?this._templateFactory.changeContent(e):this._templateFactory=new rs({...this._config,content:e,extraClass:this._resolvePossibleFunction(this._config.customClass)}),this._templateFactory}_getContentForTemplate(){return{[ds]:this._getTitle()}}_getTitle(){return this._resolvePossibleFunction(this._config.title)||this._element.getAttribute("data-bs-original-title")}_initializeOnDelegatedTarget(e){return this.constructor.getOrCreateInstance(e.delegateTarget,this._getDelegateConfig())}_isAnimated(){return this._config.animation||this.tip&&this.tip.classList.contains(ls)}_isShown(){return this.tip&&this.tip.classList.contains(cs)}_createPopper(e){const t=Ze(this._config.placement,[this,e,this._element]),i=ms[t.toUpperCase()];return $e(this._element,e,this._getPopperConfig(i))}_getOffset(){const{offset:e}=this._config;return"string"==typeof e?e.split(",").map((e=>Number.parseInt(e,10))):"function"==typeof e?t=>e(t,this._element):e}_resolvePossibleFunction(e){return Ze(e,[this._element])}_getPopperConfig(e){const t={placement:e,modifiers:[{name:"flip",options:{fallbackPlacements:this._config.fallbackPlacements}},{name:"offset",options:{offset:this._getOffset()}},{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"arrow",options:{element:`.${this.constructor.NAME}-arrow`}},{name:"preSetPlacement",enabled:!0,phase:"beforeMain",fn:e=>{this._getTipElement().setAttribute("data-popper-placement",e.state.placement)}}]};return{...t,...Ze(this._config.popperConfig,[t])}}_setListeners(){const e=this._config.trigger.split(" ");for(const t of e)if("click"===t)_t.on(this._element,this.constructor.eventName("click"),this._config.selector,(e=>{this._initializeOnDelegatedTarget(e).toggle()}));else if("manual"!==t){const e=t===fs?this.constructor.eventName("mouseenter"):this.constructor.eventName("focusin"),i=t===fs?this.constructor.eventName("mouseleave"):this.constructor.eventName("focusout");_t.on(this._element,e,this._config.selector,(e=>{const t=this._initializeOnDelegatedTarget(e);t._activeTrigger["focusin"===e.type?ps:fs]=!0,t._enter()})),_t.on(this._element,i,this._config.selector,(e=>{const t=this._initializeOnDelegatedTarget(e);t._activeTrigger["focusout"===e.type?ps:fs]=t._element.contains(e.relatedTarget),t._leave()}))}this._hideModalHandler=()=>{this._element&&this.hide()},_t.on(this._element.closest(us),hs,this._hideModalHandler)}_fixTitle(){const e=this._element.getAttribute("title");e&&(this._element.getAttribute("aria-label")||this._element.textContent.trim()||this._element.setAttribute("aria-label",e),this._element.setAttribute("data-bs-original-title",e),this._element.removeAttribute("title"))}_enter(){this._isShown()||this._isHovered?this._isHovered=!0:(this._isHovered=!0,this._setTimeout((()=>{this._isHovered&&this.show()}),this._config.delay.show))}_leave(){this._isWithActiveTrigger()||(this._isHovered=!1,this._setTimeout((()=>{this._isHovered||this.hide()}),this._config.delay.hide))}_setTimeout(e,t){clearTimeout(this._timeout),this._timeout=setTimeout(e,t)}_isWithActiveTrigger(){return Object.values(this._activeTrigger).includes(!0)}_getConfig(e){const t=wt.getDataAttributes(this._element);for(const e of Object.keys(t))as.has(e)&&delete t[e];return e={...t,..."object"==typeof e&&e?e:{}},e=this._mergeConfigObj(e),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}_configAfterMerge(e){return e.container=!1===e.container?document.body:Re(e.container),"number"==typeof e.delay&&(e.delay={show:e.delay,hide:e.delay}),"number"==typeof e.title&&(e.title=e.title.toString()),"number"==typeof e.content&&(e.content=e.content.toString()),e}_getDelegateConfig(){const e={};for(const[t,i]of Object.entries(this._config))this.constructor.Default[t]!==i&&(e[t]=i);return e.selector=!1,e.trigger="manual",e}_disposePopper(){this._popper&&(this._popper.destroy(),this._popper=null),this.tip&&(this.tip.remove(),this.tip=null)}static jQueryInterface(e){return this.each((function(){const t=vs.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e])throw new TypeError(`No method named "${e}"`);t[e]()}}))}}Je(vs);const ys=".popover-header",bs=".popover-body",ws={...vs.Default,content:"",offset:[0,8],placement:"right",template:'<div class="popover" role="tooltip"><div class="popover-arrow"></div><h3 class="popover-header"></h3><div class="popover-body"></div></div>',trigger:"click"},js={...vs.DefaultType,content:"(null|string|element|function)"};class Cs extends vs{static get Default(){return ws}static get DefaultType(){return js}static get NAME(){return"popover"}_isWithContent(){return this._getTitle()||this._getContent()}_getContentForTemplate(){return{[ys]:this._getTitle(),[bs]:this._getContent()}}_getContent(){return this._resolvePossibleFunction(this._config.content)}static jQueryInterface(e){return this.each((function(){const t=Cs.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e])throw new TypeError(`No method named "${e}"`);t[e]()}}))}}Je(Cs);const As=".bs.scrollspy",Es=`activate${As}`,xs=`click${As}`,Ts=`load${As}.data-api`,ks="active",Os="[href]",Qs=".nav-link",Ds=`${Qs}, .nav-item > ${Qs}, .list-group-item`,Ls={offset:null,rootMargin:"0px 0px -25%",smoothScroll:!1,target:null,threshold:[.1,.5,1]},Ss={offset:"(number|null)",rootMargin:"string",smoothScroll:"boolean",target:"element",threshold:"array"};class Is extends Ct{constructor(e,t){super(e,t),this._targetLinks=new Map,this._observableSections=new Map,this._rootElement="visible"===getComputedStyle(this._element).overflowY?null:this._element,this._activeTarget=null,this._observer=null,this._previousScrollData={visibleEntryTop:0,parentScrollTop:0},this.refresh()}static get Default(){return Ls}static get DefaultType(){return Ss}static get NAME(){return"scrollspy"}refresh(){this._initializeTargetsAndObservables(),this._maybeEnableSmoothScroll(),this._observer?this._observer.disconnect():this._observer=this._getNewObserver();for(const e of this._observableSections.values())this._observer.observe(e)}dispose(){this._observer.disconnect(),super.dispose()}_configAfterMerge(e){return e.target=Re(e.target)||document.body,e.rootMargin=e.offset?`${e.offset}px 0px -30%`:e.rootMargin,"string"==typeof e.threshold&&(e.threshold=e.threshold.split(",").map((e=>Number.parseFloat(e)))),e}_maybeEnableSmoothScroll(){this._config.smoothScroll&&(_t.off(this._config.target,xs),_t.on(this._config.target,xs,Os,(e=>{const t=this._observableSections.get(e.target.hash);if(t){e.preventDefault();const i=this._rootElement||window,n=t.offsetTop-this._element.offsetTop;if(i.scrollTo)return void i.scrollTo({top:n,behavior:"smooth"});i.scrollTop=n}})))}_getNewObserver(){const e={root:this._rootElement,threshold:this._config.threshold,rootMargin:this._config.rootMargin};return new IntersectionObserver((e=>this._observerCallback(e)),e)}_observerCallback(e){const t=e=>this._targetLinks.get(`#${e.target.id}`),i=e=>{this._previousScrollData.visibleEntryTop=e.target.offsetTop,this._process(t(e))},n=(this._rootElement||document.documentElement).scrollTop,s=n>=this._previousScrollData.parentScrollTop;this._previousScrollData.parentScrollTop=n;for(const o of e){if(!o.isIntersecting){this._activeTarget=null,this._clearActiveClass(t(o));continue}const e=o.target.offsetTop>=this._previousScrollData.visibleEntryTop;if(s&&e){if(i(o),!n)return}else s||e||i(o)}}_initializeTargetsAndObservables(){this._targetLinks=new Map,this._observableSections=new Map;const e=Et.find(Os,this._config.target);for(const t of e){if(!t.hash||qe(t))continue;const e=Et.findOne(decodeURI(t.hash),this._element);ze(e)&&(this._targetLinks.set(decodeURI(t.hash),t),this._observableSections.set(t.hash,e))}}_process(e){this._activeTarget!==e&&(this._clearActiveClass(this._config.target),this._activeTarget=e,e.classList.add(ks),this._activateParents(e),_t.trigger(this._element,Es,{relatedTarget:e}))}_activateParents(e){if(e.classList.contains("dropdown-item"))Et.findOne(".dropdown-toggle",e.closest(".dropdown")).classList.add(ks);else for(const t of Et.parents(e,".nav, .list-group"))for(const e of Et.prev(t,Ds))e.classList.add(ks)}_clearActiveClass(e){e.classList.remove(ks);const t=Et.find(`${Os}.${ks}`,e);for(const e of t)e.classList.remove(ks)}static jQueryInterface(e){return this.each((function(){const t=Is.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e]||e.startsWith("_")||"constructor"===e)throw new TypeError(`No method named "${e}"`);t[e]()}}))}}_t.on(window,Ts,(()=>{for(const e of Et.find('[data-bs-spy="scroll"]'))Is.getOrCreateInstance(e)})),Je(Is);const $s=".bs.tab",Ns=`hide${$s}`,Ps=`hidden${$s}`,Ms=`show${$s}`,Fs=`shown${$s}`,Hs=`click${$s}`,Ws=`keydown${$s}`,Bs=`load${$s}`,Rs="ArrowLeft",zs="ArrowRight",qs="ArrowUp",Vs="ArrowDown",Us="Home",Ks="End",Ys="active",Xs="fade",Gs="show",Js=".dropdown-toggle",Zs=`:not(${Js})`,eo='[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',to=`.nav-link${Zs}, .list-group-item${Zs}, [role="tab"]${Zs}, ${eo}`,io=`.${Ys}[data-bs-toggle="tab"], .${Ys}[data-bs-toggle="pill"], .${Ys}[data-bs-toggle="list"]`;class no extends Ct{constructor(e){super(e),this._parent=this._element.closest('.list-group, .nav, [role="tablist"]'),this._parent&&(this._setInitialAttributes(this._parent,this._getChildren()),_t.on(this._element,Ws,(e=>this._keydown(e))))}static get NAME(){return"tab"}show(){const e=this._element;if(this._elemIsActive(e))return;const t=this._getActiveElem(),i=t?_t.trigger(t,Ns,{relatedTarget:e}):null;_t.trigger(e,Ms,{relatedTarget:t}).defaultPrevented||i&&i.defaultPrevented||(this._deactivate(t,e),this._activate(e,t))}_activate(e,t){e&&(e.classList.add(Ys),this._activate(Et.getElementFromSelector(e)),this._queueCallback((()=>{"tab"===e.getAttribute("role")?(e.removeAttribute("tabindex"),e.setAttribute("aria-selected",!0),this._toggleDropDown(e,!0),_t.trigger(e,Fs,{relatedTarget:t})):e.classList.add(Gs)}),e,e.classList.contains(Xs)))}_deactivate(e,t){e&&(e.classList.remove(Ys),e.blur(),this._deactivate(Et.getElementFromSelector(e)),this._queueCallback((()=>{"tab"===e.getAttribute("role")?(e.setAttribute("aria-selected",!1),e.setAttribute("tabindex","-1"),this._toggleDropDown(e,!1),_t.trigger(e,Ps,{relatedTarget:t})):e.classList.remove(Gs)}),e,e.classList.contains(Xs)))}_keydown(e){if(![Rs,zs,qs,Vs,Us,Ks].includes(e.key))return;e.stopPropagation(),e.preventDefault();const t=this._getChildren().filter((e=>!qe(e)));let i;if([Us,Ks].includes(e.key))i=t[e.key===Us?0:t.length-1];else{const n=[zs,Vs].includes(e.key);i=tt(t,e.target,n,!0)}i&&(i.focus({preventScroll:!0}),no.getOrCreateInstance(i).show())}_getChildren(){return Et.find(to,this._parent)}_getActiveElem(){return this._getChildren().find((e=>this._elemIsActive(e)))||null}_setInitialAttributes(e,t){this._setAttributeIfNotExists(e,"role","tablist");for(const e of t)this._setInitialAttributesOnChild(e)}_setInitialAttributesOnChild(e){e=this._getInnerElement(e);const t=this._elemIsActive(e),i=this._getOuterElement(e);e.setAttribute("aria-selected",t),i!==e&&this._setAttributeIfNotExists(i,"role","presentation"),t||e.setAttribute("tabindex","-1"),this._setAttributeIfNotExists(e,"role","tab"),this._setInitialAttributesOnTargetPanel(e)}_setInitialAttributesOnTargetPanel(e){const t=Et.getElementFromSelector(e);t&&(this._setAttributeIfNotExists(t,"role","tabpanel"),e.id&&this._setAttributeIfNotExists(t,"aria-labelledby",`${e.id}`))}_toggleDropDown(e,t){const i=this._getOuterElement(e);if(!i.classList.contains("dropdown"))return;const n=(e,n)=>{const s=Et.findOne(e,i);s&&s.classList.toggle(n,t)};n(Js,Ys),n(".dropdown-menu",Gs),i.setAttribute("aria-expanded",t)}_setAttributeIfNotExists(e,t,i){e.hasAttribute(t)||e.setAttribute(t,i)}_elemIsActive(e){return e.classList.contains(Ys)}_getInnerElement(e){return e.matches(to)?e:Et.findOne(to,e)}_getOuterElement(e){return e.closest(".nav-item, .list-group-item")||e}static jQueryInterface(e){return this.each((function(){const t=no.getOrCreateInstance(this);if("string"==typeof e){if(void 0===t[e]||e.startsWith("_")||"constructor"===e)throw new TypeError(`No method named "${e}"`);t[e]()}}))}}_t.on(document,Hs,eo,(function(e){["A","AREA"].includes(this.tagName)&&e.preventDefault(),qe(this)||no.getOrCreateInstance(this).show()})),_t.on(window,Bs,(()=>{for(const e of Et.find(io))no.getOrCreateInstance(e)})),Je(no);const so=".bs.toast",oo=`mouseover${so}`,ro=`mouseout${so}`,ao=`focusin${so}`,lo=`focusout${so}`,co=`hide${so}`,uo=`hidden${so}`,ho=`show${so}`,fo=`shown${so}`,po="hide",mo="show",go="showing",_o={animation:"boolean",autohide:"boolean",delay:"number"},vo={animation:!0,autohide:!0,delay:5e3};class yo extends Ct{constructor(e,t){super(e,t),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get Default(){return vo}static get DefaultType(){return _o}static get NAME(){return"toast"}show(){_t.trigger(this._element,ho).defaultPrevented||(this._clearTimeout(),this._config.animation&&this._element.classList.add("fade"),this._element.classList.remove(po),Ke(this._element),this._element.classList.add(mo,go),this._queueCallback((()=>{this._element.classList.remove(go),_t.trigger(this._element,fo),this._maybeScheduleHide()}),this._element,this._config.animation))}hide(){this.isShown()&&(_t.trigger(this._element,co).defaultPrevented||(this._element.classList.add(go),this._queueCallback((()=>{this._element.classList.add(po),this._element.classList.remove(go,mo),_t.trigger(this._element,uo)}),this._element,this._config.animation)))}dispose(){this._clearTimeout(),this.isShown()&&this._element.classList.remove(mo),super.dispose()}isShown(){return this._element.classList.contains(mo)}_maybeScheduleHide(){this._config.autohide&&(this._hasMouseInteraction||this._hasKeyboardInteraction||(this._timeout=setTimeout((()=>{this.hide()}),this._config.delay)))}_onInteraction(e,t){switch(e.type){case"mouseover":case"mouseout":this._hasMouseInteraction=t;break;case"focusin":case"focusout":this._hasKeyboardInteraction=t}if(t)return void this._clearTimeout();const i=e.relatedTarget;this._element===i||this._element.contains(i)||this._maybeScheduleHide()}_setListeners(){_t.on(this._element,oo,(e=>this._onInteraction(e,!0))),_t.on(this._element,ro,(e=>this._onInteraction(e,!1))),_t.on(this._element,ao,(e=>this._onInteraction(e,!0))),_t.on(this._element,lo,(e=>this._onInteraction(e,!1)))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(e){return this.each((function(){const t=yo.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e])throw new TypeError(`No method named "${e}"`);t[e](this)}}))}}xt(yo),Je(yo),jQuery(window).on("load",(function(){const e=document.getElementById("mastodon-modal"),t=document.getElementById("mastodon-instance-url"),i=document.getElementById("mastodon-share-ok");let n=null;jQuery(".amplify-option-mastodon").on("click",(function(i){i.preventDefault(),n=jQuery(this);const o=localStorage.getItem("mastodon-instance-url");o&&(t.value=o),s(),e.style.display="block"})),i.addEventListener("click",(function(i){i.preventDefault();let s=t.value.trim();localStorage.setItem("mastodon-instance-url",s);const o=n.data("posttitle"),r=n.data("posturl");s.match(/^(https?:\/\/)/)||(s="https://"+s);const a=`${s}/share?text=${encodeURIComponent(o)}%20${encodeURIComponent(r)}`;window.open(a,"_blank"),e.style.display="none"}));const s=()=>{t.value.trim()?i.removeAttribute("disabled"):i.setAttribute("disabled","disabled")};t.addEventListener("input",s),s();var o=jQuery(".pfmodal");jQuery(".pf-loader").delay(300).fadeOut("slow",(function(){var e,t;if(jQuery(".pf_container").fadeIn("slow"),jQuery(".page-load-status").show(),window.location.hash.indexOf("#")<0)window.location.hash="#ready";else if(window.location.hash.toLowerCase().indexOf("modal")>=0){var i=window.location.hash;0===(t=jQuery(i)).length||jQuery(i).hasClass("in")?window.location.hash="#ready":(e=t.find(".close"),new In(t).show(e))}jQuery(window).on("hashchange",(function(){if("#ready"===window.location.hash&&jQuery(".modal").modal("hide"),window.location.hash.toLowerCase().indexOf("modal")>=0){var i=window.location.hash;jQuery(i).hasClass("in")||(t=jQuery(i),e=t.find(".close"),new In(t).show(e),o.each((function(){var e=In.getInstance(this);e&&e.hide()})))}}))}))})),jQuery(window).on("load",(function(){if(jQuery("#gogrid").on("click",(function(e){e.preventDefault(),jQuery("div.pf_container").removeClass("list").addClass("grid"),jQuery("#gogrid").addClass("unset"),jQuery("#golist").removeClass("unset"),jQuery(".feed-item").each((function(){var e=jQuery(this).attr("id");jQuery("#"+e+" footer .actions").appendTo("#"+e+" header")}))})),jQuery("#golist").on("click",(function(e){e.preventDefault(),jQuery("div.pf_container").removeClass("grid").addClass("list"),jQuery("#golist").addClass("unset"),jQuery("#gogrid").removeClass("unset"),jQuery(".feed-item").each((function(){var e=jQuery(this).attr("id");jQuery("#"+e+" header .actions").appendTo("#"+e+" footer")}))})),jQuery("#gomenu").on("click",(function(e){e.preventDefault(),jQuery("#feed-folders").hide({direction:"right",duration:150,easing:"linear"})})),jQuery("#gomenu").on("click",(function(e){pf.toggler(e,this,(function(){var e=jQuery("#tools");jQuery("div.pf_container").removeClass("full"),jQuery("#feed-folders").hide({direction:"right",duration:150,easing:"linear"}),jQuery(e).show({direction:"right",duration:150,easing:"linear"})}),(function(){var e=jQuery("#tools");jQuery(e).hide({direction:"right",duration:150,easing:"linear"}),jQuery("div.pf_container").addClass("full")}))})),jQuery("#gofolders").on("click",(function(e){e.preventDefault(),jQuery("#tools").hide({direction:"right",duration:150,easing:"linear"})})),jQuery("#gofolders").on("click",(function(e){pf.toggler(e,this,(function(){var e=jQuery("#feed-folders");jQuery("div.pf_container").removeClass("full"),jQuery(e).show({direction:"right",duration:150,easing:"linear"})}),(function(){var e=jQuery("#feed-folders");jQuery(e).hide({direction:"right",duration:150,easing:"linear"}),jQuery("div.pf_container").addClass("full")}))})),jQuery("#feed-folders .folder").on("click",(function(e){e.preventDefault();var t=jQuery(this).attr("href"),i=window.location.href;i=r(i=i.replace("#","&"),"folder"),i=r(i,"feed"),(i=r(i,"ready")).indexOf("?")>-1?i+="&folder="+t:i+="?folder="+t,window.location.href=i})),jQuery("#feed-folders .feed").on("click",(function(e){e.preventDefault();var t=jQuery(this).children("a").attr("href"),i=window.location.href;i=r(i=i.replace("#","&"),"folder"),i=r(i,"feed"),(i=r(i,"ready")).indexOf("?")>-1?i+="&feed="+t:i+="?feed="+t,window.location.href=i})),jQuery(".scroll-toggler").on("click",(function(e){e.preventDefault();var t="true";"gopaged"===jQuery(this).attr("id")&&(t="false"),jQuery.post(ajaxurl,{action:"pf_ajax_user_setting",pf_user_setting:"pf_user_scroll_switch",setting:t},(function(e){"1"!=html_entity_decode(jQuery(e).find("response_data").text())?alert((0,i.__)("PressForward has lost its connection to your server. Reload page and try again.","pressforward")):window.location.reload()}))})),jQuery("#deletefeedarchive").on("click",(function(e){e.preventDefault(),jQuery(".loading-top").show(),jQuery.post(ajaxurl,{action:"reset_feed"},(function(e){jQuery(".loading-top").hide(),jQuery("#errors").html(e)}))})),0!==jQuery(".list").length){var e=jQuery(".list article");jQuery.each(e,(function(){var e=jQuery(this).attr("id");jQuery("#"+e+" header .actions").appendTo("#"+e+" footer")}))}jQuery(".pf_container").on("click","#showMyNominations",(function(e){e.preventDefault(),window.open("?page=pf-all-content&by=nominated","_self")})),jQuery(".pf_container").on("click","#showMyHidden",(function(e){e.preventDefault(),window.open("?page=pf-all-content&reveal=no_hidden","_self")})),jQuery(".pf_container").on("click","#showUnread",(function(e){e.preventDefault(),window.open("?page=pf-all-content&reveal=unread","_self")})),jQuery(".pf_container.pf-all-content").on("click","#showDrafted",(function(e){e.preventDefault(),window.open("?page=pf-all-content&reveal=drafted","_self")})),jQuery(".pf_container").on("click","#showMyStarred",(function(e){e.preventDefault(),window.open("?page=pf-all-content&by=starred","_self")})),jQuery(".pf_container").on("click","#showNormal",(function(e){e.preventDefault(),window.open("?page=pf-all-content","_self")})),jQuery(".pf_container").on("click","#showNormalNominations",(function(e){e.preventDefault(),window.open("?page=pf-review","_self")})),jQuery(".pf_container").on("click","#date-range-button",(function(e){e.preventDefault(),jQuery("#date-range-options").toggleClass("show")})),jQuery(".pf_container").on("click",".date-range-submit",(function(e){e.preventDefault(),t(),document.getElementById("date-range-options").classList.remove("show");const i=jQuery("#date-range-start").val(),n=jQuery("#date-range-end").val(),s=new URLSearchParams(window.location.search).get("page");window.open("?page="+s+"&date-range-start="+i+"&date-range-end="+n,"_self")}));const t=()=>{const e=jQuery("#date-range-start").val(),t=jQuery("#date-range-end").val(),n=document.getElementById("date-range-button");if(n){const s=(e,t)=>e&&t?(0,i.sprintf)((0,i.__)("%1$s to %2$s","pressforward"),e,t):e?(0,i.sprintf)((0,i.__)("Newer than %1$s","pressforward"),e):t?(0,i.sprintf)((0,i.__)("Older than %1$s","pressforward"),t):(0,i.__)("All Dates","pressforward");n.querySelector(".date-range-text").textContent=s(e,t)}};t(),jQuery(".pf_container").on("click",".remove-nom-this-prompt",(function(e){e.preventDefault(),jQuery("article.nominate-this-preview").remove(),jQuery.post(ajaxurl,{action:"pf_ajax_user_setting",pf_user_setting:"have_you_seen_nominate_this",setting:"yes"},(function(e){})),jQuery(this).is("[href]")&&window.open("?page=pf-tools","_self")})),jQuery(".pfmodal").on("show.bs.modal",(function(e){n(jQuery(this).attr("id"))})),jQuery(".comment-modal").on("shown.bs.modal",(function(e){var t=jQuery(this).attr("id");document.body.style.overflow="hidden",jQuery("#"+t+".pfmodal").css({display:"block",position:"fixed",top:"32px",right:"0",bottom:"100%",left:"0",margin:"0",width:"100%",height:"calc(100% - 32px)",overflow:"hidden","z-index":"9999"})})),jQuery(".pfmodal").on("shown.bs.modal",(function(e){var t=jQuery(this),n=t.hasClass("comment-modal"),r=t.attr("id"),a=t.closest(".feed-item").attr("pf-item-post-id");jQuery.post(ajaxurl,{action:"pf_ajax_get_comments",id_for_comments:a},(function(e){n?jQuery("#"+r+".comment-modal .modal-body").html(e):jQuery("#"+r+" .modal-comments").html(e)})),setTimeout((function(){var e=t.find(".modal-body-row").height();t.find(".modal-body-row .modal-body").height(e)}),100),t.find(".main-text img").each((function(e,t){var i=t.dataset.hasOwnProperty("src")?t.dataset.src:"";i&&t.setAttribute("src",i)})),function(e){e=parseInt(e);var t=jQuery('article[tabindex="'+e+'"]'),n=(jQuery(t).attr("id"),e-1),r=e+1,a=jQuery('article[tabindex="'+n+'"]'),l=jQuery('article[tabindex="'+r+'"]'),c=t.children("header").children("h1").children("a").attr("href");if(a=o(n,a,0),l=o(r,l,1),0!=jQuery(a)&&jQuery(a).is("*")){var d=jQuery(a).children("header").children("h1").children("a").attr("href"),u=jQuery(a).children("header").children("h1").text(),h=jQuery(a).children("header").children("p.source_title").text(),f=jQuery(a).children("header").children("div.feed-item-info-box").children("span.item_authors").text(),p=jQuery(a).children("div.content").children("div.item_excerpt").text();p=s(p,20);var m=jQuery(a).children("footer").children("p.pubdate").text(),g='<h5 class="prev_title">'+(0,i.sprintf)((0,i.__)("Previous: %s","pressforward"),'<a href="'+d+'" role="button" class="modal-nav" data-dismiss="modal" data-toggle="modal" data-backdrop="false">'+u+"</a>")+"</h5>";
     1(()=>{"use strict";var e={d:(t,i)=>{for(var n in i)e.o(i,n)&&!e.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:i[n]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},t={};e.r(t),e.d(t,{afterMain:()=>x,afterRead:()=>C,afterWrite:()=>O,applyStyles:()=>N,arrow:()=>ie,auto:()=>u,basePlacements:()=>h,beforeMain:()=>A,beforeRead:()=>w,beforeWrite:()=>T,bottom:()=>l,clippingParents:()=>m,computeStyles:()=>re,createPopper:()=>$e,createPopperBase:()=>Ie,createPopperLite:()=>Ne,detectOverflow:()=>we,end:()=>p,eventListeners:()=>le,flip:()=>je,hide:()=>Ee,left:()=>d,main:()=>E,modifierPhases:()=>Q,offset:()=>xe,placements:()=>b,popper:()=>_,popperGenerator:()=>Se,popperOffsets:()=>Te,preventOverflow:()=>ke,read:()=>j,reference:()=>v,right:()=>c,start:()=>f,top:()=>a,variationPlacements:()=>y,viewport:()=>g,write:()=>k});const i=window.wp.i18n;function n(e){window.location.hash="#"+e}function s(e,t){return e.split(/\s+/,t).join(" ")}function o(e,t,i){var n=jQuery("article:last-child").attr("tabindex");return(0==t.length||t.is(":hidden"))&&(1==i?e+=1:e-=1,t=jQuery('article[tabindex="'+e+'"]')),(0==t.length||t.is(":hidden"))&&0<=e&&n>e&&(t=o(e,t,i)),!t.is(":hidden")&&t}function r(e,t){var i=e.split("?");if(i.length>=2){for(var n=encodeURIComponent(t)+"=",s=i[1].split(/[&;]/g),o=s.length;o-- >0;)-1!==s[o].lastIndexOf(n,0)&&s.splice(o,1);return i[0]+"?"+s.join("&")}return e}var a="top",l="bottom",c="right",d="left",u="auto",h=[a,l,c,d],f="start",p="end",m="clippingParents",g="viewport",_="popper",v="reference",y=h.reduce((function(e,t){return e.concat([t+"-"+f,t+"-"+p])}),[]),b=[].concat(h,[u]).reduce((function(e,t){return e.concat([t,t+"-"+f,t+"-"+p])}),[]),w="beforeRead",j="read",C="afterRead",A="beforeMain",E="main",x="afterMain",T="beforeWrite",k="write",O="afterWrite",Q=[w,j,C,A,E,x,T,k,O];function D(e){return e?(e.nodeName||"").toLowerCase():null}function L(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function S(e){return e instanceof L(e).Element||e instanceof Element}function I(e){return e instanceof L(e).HTMLElement||e instanceof HTMLElement}function $(e){return"undefined"!=typeof ShadowRoot&&(e instanceof L(e).ShadowRoot||e instanceof ShadowRoot)}const N={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var i=t.styles[e]||{},n=t.attributes[e]||{},s=t.elements[e];I(s)&&D(s)&&(Object.assign(s.style,i),Object.keys(n).forEach((function(e){var t=n[e];!1===t?s.removeAttribute(e):s.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,i={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,i.popper),t.styles=i,t.elements.arrow&&Object.assign(t.elements.arrow.style,i.arrow),function(){Object.keys(t.elements).forEach((function(e){var n=t.elements[e],s=t.attributes[e]||{},o=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:i[e]).reduce((function(e,t){return e[t]="",e}),{});I(n)&&D(n)&&(Object.assign(n.style,o),Object.keys(s).forEach((function(e){n.removeAttribute(e)})))}))}},requires:["computeStyles"]};function P(e){return e.split("-")[0]}var M=Math.max,F=Math.min,H=Math.round;function W(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map((function(e){return e.brand+"/"+e.version})).join(" "):navigator.userAgent}function B(){return!/^((?!chrome|android).)*safari/i.test(W())}function R(e,t,i){void 0===t&&(t=!1),void 0===i&&(i=!1);var n=e.getBoundingClientRect(),s=1,o=1;t&&I(e)&&(s=e.offsetWidth>0&&H(n.width)/e.offsetWidth||1,o=e.offsetHeight>0&&H(n.height)/e.offsetHeight||1);var r=(S(e)?L(e):window).visualViewport,a=!B()&&i,l=(n.left+(a&&r?r.offsetLeft:0))/s,c=(n.top+(a&&r?r.offsetTop:0))/o,d=n.width/s,u=n.height/o;return{width:d,height:u,top:c,right:l+d,bottom:c+u,left:l,x:l,y:c}}function z(e){var t=R(e),i=e.offsetWidth,n=e.offsetHeight;return Math.abs(t.width-i)<=1&&(i=t.width),Math.abs(t.height-n)<=1&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:i,height:n}}function q(e,t){var i=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(i&&$(i)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function V(e){return L(e).getComputedStyle(e)}function U(e){return["table","td","th"].indexOf(D(e))>=0}function K(e){return((S(e)?e.ownerDocument:e.document)||window.document).documentElement}function Y(e){return"html"===D(e)?e:e.assignedSlot||e.parentNode||($(e)?e.host:null)||K(e)}function X(e){return I(e)&&"fixed"!==V(e).position?e.offsetParent:null}function G(e){for(var t=L(e),i=X(e);i&&U(i)&&"static"===V(i).position;)i=X(i);return i&&("html"===D(i)||"body"===D(i)&&"static"===V(i).position)?t:i||function(e){var t=/firefox/i.test(W());if(/Trident/i.test(W())&&I(e)&&"fixed"===V(e).position)return null;var i=Y(e);for($(i)&&(i=i.host);I(i)&&["html","body"].indexOf(D(i))<0;){var n=V(i);if("none"!==n.transform||"none"!==n.perspective||"paint"===n.contain||-1!==["transform","perspective"].indexOf(n.willChange)||t&&"filter"===n.willChange||t&&n.filter&&"none"!==n.filter)return i;i=i.parentNode}return null}(e)||t}function J(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Z(e,t,i){return M(e,F(t,i))}function ee(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function te(e,t){return t.reduce((function(t,i){return t[i]=e,t}),{})}const ie={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,i=e.state,n=e.name,s=e.options,o=i.elements.arrow,r=i.modifiersData.popperOffsets,u=P(i.placement),f=J(u),p=[d,c].indexOf(u)>=0?"height":"width";if(o&&r){var m=function(e,t){return ee("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:te(e,h))}(s.padding,i),g=z(o),_="y"===f?a:d,v="y"===f?l:c,y=i.rects.reference[p]+i.rects.reference[f]-r[f]-i.rects.popper[p],b=r[f]-i.rects.reference[f],w=G(o),j=w?"y"===f?w.clientHeight||0:w.clientWidth||0:0,C=y/2-b/2,A=m[_],E=j-g[p]-m[v],x=j/2-g[p]/2+C,T=Z(A,x,E),k=f;i.modifiersData[n]=((t={})[k]=T,t.centerOffset=T-x,t)}},effect:function(e){var t=e.state,i=e.options.element,n=void 0===i?"[data-popper-arrow]":i;null!=n&&("string"!=typeof n||(n=t.elements.popper.querySelector(n)))&&q(t.elements.popper,n)&&(t.elements.arrow=n)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ne(e){return e.split("-")[1]}var se={top:"auto",right:"auto",bottom:"auto",left:"auto"};function oe(e){var t,i=e.popper,n=e.popperRect,s=e.placement,o=e.variation,r=e.offsets,u=e.position,h=e.gpuAcceleration,f=e.adaptive,m=e.roundOffsets,g=e.isFixed,_=r.x,v=void 0===_?0:_,y=r.y,b=void 0===y?0:y,w="function"==typeof m?m({x:v,y:b}):{x:v,y:b};v=w.x,b=w.y;var j=r.hasOwnProperty("x"),C=r.hasOwnProperty("y"),A=d,E=a,x=window;if(f){var T=G(i),k="clientHeight",O="clientWidth";T===L(i)&&"static"!==V(T=K(i)).position&&"absolute"===u&&(k="scrollHeight",O="scrollWidth"),(s===a||(s===d||s===c)&&o===p)&&(E=l,b-=(g&&T===x&&x.visualViewport?x.visualViewport.height:T[k])-n.height,b*=h?1:-1),s!==d&&(s!==a&&s!==l||o!==p)||(A=c,v-=(g&&T===x&&x.visualViewport?x.visualViewport.width:T[O])-n.width,v*=h?1:-1)}var Q,D=Object.assign({position:u},f&&se),S=!0===m?function(e,t){var i=e.x,n=e.y,s=t.devicePixelRatio||1;return{x:H(i*s)/s||0,y:H(n*s)/s||0}}({x:v,y:b},L(i)):{x:v,y:b};return v=S.x,b=S.y,h?Object.assign({},D,((Q={})[E]=C?"0":"",Q[A]=j?"0":"",Q.transform=(x.devicePixelRatio||1)<=1?"translate("+v+"px, "+b+"px)":"translate3d("+v+"px, "+b+"px, 0)",Q)):Object.assign({},D,((t={})[E]=C?b+"px":"",t[A]=j?v+"px":"",t.transform="",t))}const re={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,i=e.options,n=i.gpuAcceleration,s=void 0===n||n,o=i.adaptive,r=void 0===o||o,a=i.roundOffsets,l=void 0===a||a,c={placement:P(t.placement),variation:ne(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:s,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,oe(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:r,roundOffsets:l})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,oe(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}};var ae={passive:!0};const le={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,i=e.instance,n=e.options,s=n.scroll,o=void 0===s||s,r=n.resize,a=void 0===r||r,l=L(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&c.forEach((function(e){e.addEventListener("scroll",i.update,ae)})),a&&l.addEventListener("resize",i.update,ae),function(){o&&c.forEach((function(e){e.removeEventListener("scroll",i.update,ae)})),a&&l.removeEventListener("resize",i.update,ae)}},data:{}};var ce={left:"right",right:"left",bottom:"top",top:"bottom"};function de(e){return e.replace(/left|right|bottom|top/g,(function(e){return ce[e]}))}var ue={start:"end",end:"start"};function he(e){return e.replace(/start|end/g,(function(e){return ue[e]}))}function fe(e){var t=L(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function pe(e){return R(K(e)).left+fe(e).scrollLeft}function me(e){var t=V(e),i=t.overflow,n=t.overflowX,s=t.overflowY;return/auto|scroll|overlay|hidden/.test(i+s+n)}function ge(e){return["html","body","#document"].indexOf(D(e))>=0?e.ownerDocument.body:I(e)&&me(e)?e:ge(Y(e))}function _e(e,t){var i;void 0===t&&(t=[]);var n=ge(e),s=n===(null==(i=e.ownerDocument)?void 0:i.body),o=L(n),r=s?[o].concat(o.visualViewport||[],me(n)?n:[]):n,a=t.concat(r);return s?a:a.concat(_e(Y(r)))}function ve(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function ye(e,t,i){return t===g?ve(function(e,t){var i=L(e),n=K(e),s=i.visualViewport,o=n.clientWidth,r=n.clientHeight,a=0,l=0;if(s){o=s.width,r=s.height;var c=B();(c||!c&&"fixed"===t)&&(a=s.offsetLeft,l=s.offsetTop)}return{width:o,height:r,x:a+pe(e),y:l}}(e,i)):S(t)?function(e,t){var i=R(e,!1,"fixed"===t);return i.top=i.top+e.clientTop,i.left=i.left+e.clientLeft,i.bottom=i.top+e.clientHeight,i.right=i.left+e.clientWidth,i.width=e.clientWidth,i.height=e.clientHeight,i.x=i.left,i.y=i.top,i}(t,i):ve(function(e){var t,i=K(e),n=fe(e),s=null==(t=e.ownerDocument)?void 0:t.body,o=M(i.scrollWidth,i.clientWidth,s?s.scrollWidth:0,s?s.clientWidth:0),r=M(i.scrollHeight,i.clientHeight,s?s.scrollHeight:0,s?s.clientHeight:0),a=-n.scrollLeft+pe(e),l=-n.scrollTop;return"rtl"===V(s||i).direction&&(a+=M(i.clientWidth,s?s.clientWidth:0)-o),{width:o,height:r,x:a,y:l}}(K(e)))}function be(e){var t,i=e.reference,n=e.element,s=e.placement,o=s?P(s):null,r=s?ne(s):null,u=i.x+i.width/2-n.width/2,h=i.y+i.height/2-n.height/2;switch(o){case a:t={x:u,y:i.y-n.height};break;case l:t={x:u,y:i.y+i.height};break;case c:t={x:i.x+i.width,y:h};break;case d:t={x:i.x-n.width,y:h};break;default:t={x:i.x,y:i.y}}var m=o?J(o):null;if(null!=m){var g="y"===m?"height":"width";switch(r){case f:t[m]=t[m]-(i[g]/2-n[g]/2);break;case p:t[m]=t[m]+(i[g]/2-n[g]/2)}}return t}function we(e,t){void 0===t&&(t={});var i=t,n=i.placement,s=void 0===n?e.placement:n,o=i.strategy,r=void 0===o?e.strategy:o,d=i.boundary,u=void 0===d?m:d,f=i.rootBoundary,p=void 0===f?g:f,y=i.elementContext,b=void 0===y?_:y,w=i.altBoundary,j=void 0!==w&&w,C=i.padding,A=void 0===C?0:C,E=ee("number"!=typeof A?A:te(A,h)),x=b===_?v:_,T=e.rects.popper,k=e.elements[j?x:b],O=function(e,t,i,n){var s="clippingParents"===t?function(e){var t=_e(Y(e)),i=["absolute","fixed"].indexOf(V(e).position)>=0&&I(e)?G(e):e;return S(i)?t.filter((function(e){return S(e)&&q(e,i)&&"body"!==D(e)})):[]}(e):[].concat(t),o=[].concat(s,[i]),r=o[0],a=o.reduce((function(t,i){var s=ye(e,i,n);return t.top=M(s.top,t.top),t.right=F(s.right,t.right),t.bottom=F(s.bottom,t.bottom),t.left=M(s.left,t.left),t}),ye(e,r,n));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}(S(k)?k:k.contextElement||K(e.elements.popper),u,p,r),Q=R(e.elements.reference),L=be({reference:Q,element:T,strategy:"absolute",placement:s}),$=ve(Object.assign({},T,L)),N=b===_?$:Q,P={top:O.top-N.top+E.top,bottom:N.bottom-O.bottom+E.bottom,left:O.left-N.left+E.left,right:N.right-O.right+E.right},H=e.modifiersData.offset;if(b===_&&H){var W=H[s];Object.keys(P).forEach((function(e){var t=[c,l].indexOf(e)>=0?1:-1,i=[a,l].indexOf(e)>=0?"y":"x";P[e]+=W[i]*t}))}return P}const je={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,i=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var s=i.mainAxis,o=void 0===s||s,r=i.altAxis,p=void 0===r||r,m=i.fallbackPlacements,g=i.padding,_=i.boundary,v=i.rootBoundary,w=i.altBoundary,j=i.flipVariations,C=void 0===j||j,A=i.allowedAutoPlacements,E=t.options.placement,x=P(E),T=m||(x!==E&&C?function(e){if(P(e)===u)return[];var t=de(e);return[he(e),t,he(t)]}(E):[de(E)]),k=[E].concat(T).reduce((function(e,i){return e.concat(P(i)===u?function(e,t){void 0===t&&(t={});var i=t,n=i.placement,s=i.boundary,o=i.rootBoundary,r=i.padding,a=i.flipVariations,l=i.allowedAutoPlacements,c=void 0===l?b:l,d=ne(n),u=d?a?y:y.filter((function(e){return ne(e)===d})):h,f=u.filter((function(e){return c.indexOf(e)>=0}));0===f.length&&(f=u);var p=f.reduce((function(t,i){return t[i]=we(e,{placement:i,boundary:s,rootBoundary:o,padding:r})[P(i)],t}),{});return Object.keys(p).sort((function(e,t){return p[e]-p[t]}))}(t,{placement:i,boundary:_,rootBoundary:v,padding:g,flipVariations:C,allowedAutoPlacements:A}):i)}),[]),O=t.rects.reference,Q=t.rects.popper,D=new Map,L=!0,S=k[0],I=0;I<k.length;I++){var $=k[I],N=P($),M=ne($)===f,F=[a,l].indexOf(N)>=0,H=F?"width":"height",W=we(t,{placement:$,boundary:_,rootBoundary:v,altBoundary:w,padding:g}),B=F?M?c:d:M?l:a;O[H]>Q[H]&&(B=de(B));var R=de(B),z=[];if(o&&z.push(W[N]<=0),p&&z.push(W[B]<=0,W[R]<=0),z.every((function(e){return e}))){S=$,L=!1;break}D.set($,z)}if(L)for(var q=function(e){var t=k.find((function(t){var i=D.get(t);if(i)return i.slice(0,e).every((function(e){return e}))}));if(t)return S=t,"break"},V=C?3:1;V>0&&"break"!==q(V);V--);t.placement!==S&&(t.modifiersData[n]._skip=!0,t.placement=S,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function Ce(e,t,i){return void 0===i&&(i={x:0,y:0}),{top:e.top-t.height-i.y,right:e.right-t.width+i.x,bottom:e.bottom-t.height+i.y,left:e.left-t.width-i.x}}function Ae(e){return[a,c,l,d].some((function(t){return e[t]>=0}))}const Ee={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,i=e.name,n=t.rects.reference,s=t.rects.popper,o=t.modifiersData.preventOverflow,r=we(t,{elementContext:"reference"}),a=we(t,{altBoundary:!0}),l=Ce(r,n),c=Ce(a,s,o),d=Ae(l),u=Ae(c);t.modifiersData[i]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:d,hasPopperEscaped:u},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":u})}},xe={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,i=e.options,n=e.name,s=i.offset,o=void 0===s?[0,0]:s,r=b.reduce((function(e,i){return e[i]=function(e,t,i){var n=P(e),s=[d,a].indexOf(n)>=0?-1:1,o="function"==typeof i?i(Object.assign({},t,{placement:e})):i,r=o[0],l=o[1];return r=r||0,l=(l||0)*s,[d,c].indexOf(n)>=0?{x:l,y:r}:{x:r,y:l}}(i,t.rects,o),e}),{}),l=r[t.placement],u=l.x,h=l.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=u,t.modifiersData.popperOffsets.y+=h),t.modifiersData[n]=r}},Te={name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,i=e.name;t.modifiersData[i]=be({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},ke={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,i=e.options,n=e.name,s=i.mainAxis,o=void 0===s||s,r=i.altAxis,u=void 0!==r&&r,h=i.boundary,p=i.rootBoundary,m=i.altBoundary,g=i.padding,_=i.tether,v=void 0===_||_,y=i.tetherOffset,b=void 0===y?0:y,w=we(t,{boundary:h,rootBoundary:p,padding:g,altBoundary:m}),j=P(t.placement),C=ne(t.placement),A=!C,E=J(j),x="x"===E?"y":"x",T=t.modifiersData.popperOffsets,k=t.rects.reference,O=t.rects.popper,Q="function"==typeof b?b(Object.assign({},t.rects,{placement:t.placement})):b,D="number"==typeof Q?{mainAxis:Q,altAxis:Q}:Object.assign({mainAxis:0,altAxis:0},Q),L=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,S={x:0,y:0};if(T){if(o){var I,$="y"===E?a:d,N="y"===E?l:c,H="y"===E?"height":"width",W=T[E],B=W+w[$],R=W-w[N],q=v?-O[H]/2:0,V=C===f?k[H]:O[H],U=C===f?-O[H]:-k[H],K=t.elements.arrow,Y=v&&K?z(K):{width:0,height:0},X=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},ee=X[$],te=X[N],ie=Z(0,k[H],Y[H]),se=A?k[H]/2-q-ie-ee-D.mainAxis:V-ie-ee-D.mainAxis,oe=A?-k[H]/2+q+ie+te+D.mainAxis:U+ie+te+D.mainAxis,re=t.elements.arrow&&G(t.elements.arrow),ae=re?"y"===E?re.clientTop||0:re.clientLeft||0:0,le=null!=(I=null==L?void 0:L[E])?I:0,ce=W+oe-le,de=Z(v?F(B,W+se-le-ae):B,W,v?M(R,ce):R);T[E]=de,S[E]=de-W}if(u){var ue,he="x"===E?a:d,fe="x"===E?l:c,pe=T[x],me="y"===x?"height":"width",ge=pe+w[he],_e=pe-w[fe],ve=-1!==[a,d].indexOf(j),ye=null!=(ue=null==L?void 0:L[x])?ue:0,be=ve?ge:pe-k[me]-O[me]-ye+D.altAxis,je=ve?pe+k[me]+O[me]-ye-D.altAxis:_e,Ce=v&&ve?function(e,t,i){var n=Z(e,t,i);return n>i?i:n}(be,pe,je):Z(v?be:ge,pe,v?je:_e);T[x]=Ce,S[x]=Ce-pe}t.modifiersData[n]=S}},requiresIfExists:["offset"]};function Oe(e,t,i){void 0===i&&(i=!1);var n,s,o=I(t),r=I(t)&&function(e){var t=e.getBoundingClientRect(),i=H(t.width)/e.offsetWidth||1,n=H(t.height)/e.offsetHeight||1;return 1!==i||1!==n}(t),a=K(t),l=R(e,r,i),c={scrollLeft:0,scrollTop:0},d={x:0,y:0};return(o||!o&&!i)&&(("body"!==D(t)||me(a))&&(c=(n=t)!==L(n)&&I(n)?{scrollLeft:(s=n).scrollLeft,scrollTop:s.scrollTop}:fe(n)),I(t)?((d=R(t,!0)).x+=t.clientLeft,d.y+=t.clientTop):a&&(d.x=pe(a))),{x:l.left+c.scrollLeft-d.x,y:l.top+c.scrollTop-d.y,width:l.width,height:l.height}}function Qe(e){var t=new Map,i=new Set,n=[];function s(e){i.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!i.has(e)){var n=t.get(e);n&&s(n)}})),n.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){i.has(e.name)||s(e)})),n}var De={placement:"bottom",modifiers:[],strategy:"absolute"};function Le(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return!t.some((function(e){return!(e&&"function"==typeof e.getBoundingClientRect)}))}function Se(e){void 0===e&&(e={});var t=e,i=t.defaultModifiers,n=void 0===i?[]:i,s=t.defaultOptions,o=void 0===s?De:s;return function(e,t,i){void 0===i&&(i=o);var s,r,a={placement:"bottom",orderedModifiers:[],options:Object.assign({},De,o),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},l=[],c=!1,d={state:a,setOptions:function(i){var s="function"==typeof i?i(a.options):i;u(),a.options=Object.assign({},o,a.options,s),a.scrollParents={reference:S(e)?_e(e):e.contextElement?_e(e.contextElement):[],popper:_e(t)};var r,c,h=function(e){var t=Qe(e);return Q.reduce((function(e,i){return e.concat(t.filter((function(e){return e.phase===i})))}),[])}((r=[].concat(n,a.options.modifiers),c=r.reduce((function(e,t){var i=e[t.name];return e[t.name]=i?Object.assign({},i,t,{options:Object.assign({},i.options,t.options),data:Object.assign({},i.data,t.data)}):t,e}),{}),Object.keys(c).map((function(e){return c[e]}))));return a.orderedModifiers=h.filter((function(e){return e.enabled})),a.orderedModifiers.forEach((function(e){var t=e.name,i=e.options,n=void 0===i?{}:i,s=e.effect;if("function"==typeof s){var o=s({state:a,name:t,instance:d,options:n});l.push(o||function(){})}})),d.update()},forceUpdate:function(){if(!c){var e=a.elements,t=e.reference,i=e.popper;if(Le(t,i)){a.rects={reference:Oe(t,G(i),"fixed"===a.options.strategy),popper:z(i)},a.reset=!1,a.placement=a.options.placement,a.orderedModifiers.forEach((function(e){return a.modifiersData[e.name]=Object.assign({},e.data)}));for(var n=0;n<a.orderedModifiers.length;n++)if(!0!==a.reset){var s=a.orderedModifiers[n],o=s.fn,r=s.options,l=void 0===r?{}:r,u=s.name;"function"==typeof o&&(a=o({state:a,options:l,name:u,instance:d})||a)}else a.reset=!1,n=-1}}},update:(s=function(){return new Promise((function(e){d.forceUpdate(),e(a)}))},function(){return r||(r=new Promise((function(e){Promise.resolve().then((function(){r=void 0,e(s())}))}))),r}),destroy:function(){u(),c=!0}};if(!Le(e,t))return d;function u(){l.forEach((function(e){return e()})),l=[]}return d.setOptions(i).then((function(e){!c&&i.onFirstUpdate&&i.onFirstUpdate(e)})),d}}var Ie=Se(),$e=Se({defaultModifiers:[le,Te,re,N,xe,je,ke,ie,Ee]}),Ne=Se({defaultModifiers:[le,Te,re,N]});const Pe=new Map,Me={set(e,t,i){Pe.has(e)||Pe.set(e,new Map);const n=Pe.get(e);n.has(t)||0===n.size?n.set(t,i):console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(n.keys())[0]}.`)},get:(e,t)=>Pe.has(e)&&Pe.get(e).get(t)||null,remove(e,t){if(!Pe.has(e))return;const i=Pe.get(e);i.delete(t),0===i.size&&Pe.delete(e)}},Fe="transitionend",He=e=>(e&&window.CSS&&window.CSS.escape&&(e=e.replace(/#([^\s"#']+)/g,((e,t)=>`#${CSS.escape(t)}`))),e),We=e=>{e.dispatchEvent(new Event(Fe))},Be=e=>!(!e||"object"!=typeof e)&&(void 0!==e.jquery&&(e=e[0]),void 0!==e.nodeType),Re=e=>Be(e)?e.jquery?e[0]:e:"string"==typeof e&&e.length>0?document.querySelector(He(e)):null,ze=e=>{if(!Be(e)||0===e.getClientRects().length)return!1;const t="visible"===getComputedStyle(e).getPropertyValue("visibility"),i=e.closest("details:not([open])");if(!i)return t;if(i!==e){const t=e.closest("summary");if(t&&t.parentNode!==i)return!1;if(null===t)return!1}return t},qe=e=>!e||e.nodeType!==Node.ELEMENT_NODE||!!e.classList.contains("disabled")||(void 0!==e.disabled?e.disabled:e.hasAttribute("disabled")&&"false"!==e.getAttribute("disabled")),Ve=e=>{if(!document.documentElement.attachShadow)return null;if("function"==typeof e.getRootNode){const t=e.getRootNode();return t instanceof ShadowRoot?t:null}return e instanceof ShadowRoot?e:e.parentNode?Ve(e.parentNode):null},Ue=()=>{},Ke=e=>{e.offsetHeight},Ye=()=>window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?window.jQuery:null,Xe=[],Ge=()=>"rtl"===document.documentElement.dir,Je=e=>{var t;t=()=>{const t=Ye();if(t){const i=e.NAME,n=t.fn[i];t.fn[i]=e.jQueryInterface,t.fn[i].Constructor=e,t.fn[i].noConflict=()=>(t.fn[i]=n,e.jQueryInterface)}},"loading"===document.readyState?(Xe.length||document.addEventListener("DOMContentLoaded",(()=>{for(const e of Xe)e()})),Xe.push(t)):t()},Ze=(e,t=[],i=e)=>"function"==typeof e?e(...t):i,et=(e,t,i=!0)=>{if(!i)return void Ze(e);const n=(e=>{if(!e)return 0;let{transitionDuration:t,transitionDelay:i}=window.getComputedStyle(e);const n=Number.parseFloat(t),s=Number.parseFloat(i);return n||s?(t=t.split(",")[0],i=i.split(",")[0],1e3*(Number.parseFloat(t)+Number.parseFloat(i))):0})(t)+5;let s=!1;const o=({target:i})=>{i===t&&(s=!0,t.removeEventListener(Fe,o),Ze(e))};t.addEventListener(Fe,o),setTimeout((()=>{s||We(t)}),n)},tt=(e,t,i,n)=>{const s=e.length;let o=e.indexOf(t);return-1===o?!i&&n?e[s-1]:e[0]:(o+=i?1:-1,n&&(o=(o+s)%s),e[Math.max(0,Math.min(o,s-1))])},it=/[^.]*(?=\..*)\.|.*/,nt=/\..*/,st=/::\d+$/,ot={};let rt=1;const at={mouseenter:"mouseover",mouseleave:"mouseout"},lt=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 ct(e,t){return t&&`${t}::${rt++}`||e.uidEvent||rt++}function dt(e){const t=ct(e);return e.uidEvent=t,ot[t]=ot[t]||{},ot[t]}function ut(e,t,i=null){return Object.values(e).find((e=>e.callable===t&&e.delegationSelector===i))}function ht(e,t,i){const n="string"==typeof t,s=n?i:t||i;let o=gt(e);return lt.has(o)||(o=e),[n,s,o]}function ft(e,t,i,n,s){if("string"!=typeof t||!e)return;let[o,r,a]=ht(t,i,n);if(t in at){const e=e=>function(t){if(!t.relatedTarget||t.relatedTarget!==t.delegateTarget&&!t.delegateTarget.contains(t.relatedTarget))return e.call(this,t)};r=e(r)}const l=dt(e),c=l[a]||(l[a]={}),d=ut(c,r,o?i:null);if(d)return void(d.oneOff=d.oneOff&&s);const u=ct(r,t.replace(it,"")),h=o?function(e,t,i){return function n(s){const o=e.querySelectorAll(t);for(let{target:r}=s;r&&r!==this;r=r.parentNode)for(const a of o)if(a===r)return vt(s,{delegateTarget:r}),n.oneOff&&_t.off(e,s.type,t,i),i.apply(r,[s])}}(e,i,r):function(e,t){return function i(n){return vt(n,{delegateTarget:e}),i.oneOff&&_t.off(e,n.type,t),t.apply(e,[n])}}(e,r);h.delegationSelector=o?i:null,h.callable=r,h.oneOff=s,h.uidEvent=u,c[u]=h,e.addEventListener(a,h,o)}function pt(e,t,i,n,s){const o=ut(t[i],n,s);o&&(e.removeEventListener(i,o,Boolean(s)),delete t[i][o.uidEvent])}function mt(e,t,i,n){const s=t[i]||{};for(const[o,r]of Object.entries(s))o.includes(n)&&pt(e,t,i,r.callable,r.delegationSelector)}function gt(e){return e=e.replace(nt,""),at[e]||e}const _t={on(e,t,i,n){ft(e,t,i,n,!1)},one(e,t,i,n){ft(e,t,i,n,!0)},off(e,t,i,n){if("string"!=typeof t||!e)return;const[s,o,r]=ht(t,i,n),a=r!==t,l=dt(e),c=l[r]||{},d=t.startsWith(".");if(void 0===o){if(d)for(const i of Object.keys(l))mt(e,l,i,t.slice(1));for(const[i,n]of Object.entries(c)){const s=i.replace(st,"");a&&!t.includes(s)||pt(e,l,r,n.callable,n.delegationSelector)}}else{if(!Object.keys(c).length)return;pt(e,l,r,o,s?i:null)}},trigger(e,t,i){if("string"!=typeof t||!e)return null;const n=Ye();let s=null,o=!0,r=!0,a=!1;t!==gt(t)&&n&&(s=n.Event(t,i),n(e).trigger(s),o=!s.isPropagationStopped(),r=!s.isImmediatePropagationStopped(),a=s.isDefaultPrevented());const l=vt(new Event(t,{bubbles:o,cancelable:!0}),i);return a&&l.preventDefault(),r&&e.dispatchEvent(l),l.defaultPrevented&&s&&s.preventDefault(),l}};function vt(e,t={}){for(const[i,n]of Object.entries(t))try{e[i]=n}catch(t){Object.defineProperty(e,i,{configurable:!0,get:()=>n})}return e}function yt(e){if("true"===e)return!0;if("false"===e)return!1;if(e===Number(e).toString())return Number(e);if(""===e||"null"===e)return null;if("string"!=typeof e)return e;try{return JSON.parse(decodeURIComponent(e))}catch(t){return e}}function bt(e){return e.replace(/[A-Z]/g,(e=>`-${e.toLowerCase()}`))}const wt={setDataAttribute(e,t,i){e.setAttribute(`data-bs-${bt(t)}`,i)},removeDataAttribute(e,t){e.removeAttribute(`data-bs-${bt(t)}`)},getDataAttributes(e){if(!e)return{};const t={},i=Object.keys(e.dataset).filter((e=>e.startsWith("bs")&&!e.startsWith("bsConfig")));for(const n of i){let i=n.replace(/^bs/,"");i=i.charAt(0).toLowerCase()+i.slice(1,i.length),t[i]=yt(e.dataset[n])}return t},getDataAttribute:(e,t)=>yt(e.getAttribute(`data-bs-${bt(t)}`))};class jt{static get Default(){return{}}static get DefaultType(){return{}}static get NAME(){throw new Error('You have to implement the static method "NAME", for each component!')}_getConfig(e){return e=this._mergeConfigObj(e),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}_configAfterMerge(e){return e}_mergeConfigObj(e,t){const i=Be(t)?wt.getDataAttribute(t,"config"):{};return{...this.constructor.Default,..."object"==typeof i?i:{},...Be(t)?wt.getDataAttributes(t):{},..."object"==typeof e?e:{}}}_typeCheckConfig(e,t=this.constructor.DefaultType){for(const[n,s]of Object.entries(t)){const t=e[n],o=Be(t)?"element":null==(i=t)?`${i}`:Object.prototype.toString.call(i).match(/\s([a-z]+)/i)[1].toLowerCase();if(!new RegExp(s).test(o))throw new TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${n}" provided type "${o}" but expected type "${s}".`)}var i}}class Ct extends jt{constructor(e,t){super(),(e=Re(e))&&(this._element=e,this._config=this._getConfig(t),Me.set(this._element,this.constructor.DATA_KEY,this))}dispose(){Me.remove(this._element,this.constructor.DATA_KEY),_t.off(this._element,this.constructor.EVENT_KEY);for(const e of Object.getOwnPropertyNames(this))this[e]=null}_queueCallback(e,t,i=!0){et(e,t,i)}_getConfig(e){return e=this._mergeConfigObj(e,this._element),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}static getInstance(e){return Me.get(Re(e),this.DATA_KEY)}static getOrCreateInstance(e,t={}){return this.getInstance(e)||new this(e,"object"==typeof t?t:null)}static get VERSION(){return"5.3.3"}static get DATA_KEY(){return`bs.${this.NAME}`}static get EVENT_KEY(){return`.${this.DATA_KEY}`}static eventName(e){return`${e}${this.EVENT_KEY}`}}const At=e=>{let t=e.getAttribute("data-bs-target");if(!t||"#"===t){let i=e.getAttribute("href");if(!i||!i.includes("#")&&!i.startsWith("."))return null;i.includes("#")&&!i.startsWith("#")&&(i=`#${i.split("#")[1]}`),t=i&&"#"!==i?i.trim():null}return t?t.split(",").map((e=>He(e))).join(","):null},Et={find:(e,t=document.documentElement)=>[].concat(...Element.prototype.querySelectorAll.call(t,e)),findOne:(e,t=document.documentElement)=>Element.prototype.querySelector.call(t,e),children:(e,t)=>[].concat(...e.children).filter((e=>e.matches(t))),parents(e,t){const i=[];let n=e.parentNode.closest(t);for(;n;)i.push(n),n=n.parentNode.closest(t);return i},prev(e,t){let i=e.previousElementSibling;for(;i;){if(i.matches(t))return[i];i=i.previousElementSibling}return[]},next(e,t){let i=e.nextElementSibling;for(;i;){if(i.matches(t))return[i];i=i.nextElementSibling}return[]},focusableChildren(e){const t=["a","button","input","textarea","select","details","[tabindex]",'[contenteditable="true"]'].map((e=>`${e}:not([tabindex^="-"])`)).join(",");return this.find(t,e).filter((e=>!qe(e)&&ze(e)))},getSelectorFromElement(e){const t=At(e);return t&&Et.findOne(t)?t:null},getElementFromSelector(e){const t=At(e);return t?Et.findOne(t):null},getMultipleElementsFromSelector(e){const t=At(e);return t?Et.find(t):[]}},xt=(e,t="hide")=>{const i=`click.dismiss${e.EVENT_KEY}`,n=e.NAME;_t.on(document,i,`[data-bs-dismiss="${n}"]`,(function(i){if(["A","AREA"].includes(this.tagName)&&i.preventDefault(),qe(this))return;const s=Et.getElementFromSelector(this)||this.closest(`.${n}`);e.getOrCreateInstance(s)[t]()}))},Tt=".bs.alert",kt=`close${Tt}`,Ot=`closed${Tt}`;class Qt extends Ct{static get NAME(){return"alert"}close(){if(_t.trigger(this._element,kt).defaultPrevented)return;this._element.classList.remove("show");const e=this._element.classList.contains("fade");this._queueCallback((()=>this._destroyElement()),this._element,e)}_destroyElement(){this._element.remove(),_t.trigger(this._element,Ot),this.dispose()}static jQueryInterface(e){return this.each((function(){const t=Qt.getOrCreateInstance(this);if("string"==typeof e){if(void 0===t[e]||e.startsWith("_")||"constructor"===e)throw new TypeError(`No method named "${e}"`);t[e](this)}}))}}xt(Qt,"close"),Je(Qt);const Dt='[data-bs-toggle="button"]';class Lt extends Ct{static get NAME(){return"button"}toggle(){this._element.setAttribute("aria-pressed",this._element.classList.toggle("active"))}static jQueryInterface(e){return this.each((function(){const t=Lt.getOrCreateInstance(this);"toggle"===e&&t[e]()}))}}_t.on(document,"click.bs.button.data-api",Dt,(e=>{e.preventDefault();const t=e.target.closest(Dt);Lt.getOrCreateInstance(t).toggle()})),Je(Lt);const St=".bs.swipe",It=`touchstart${St}`,$t=`touchmove${St}`,Nt=`touchend${St}`,Pt=`pointerdown${St}`,Mt=`pointerup${St}`,Ft={endCallback:null,leftCallback:null,rightCallback:null},Ht={endCallback:"(function|null)",leftCallback:"(function|null)",rightCallback:"(function|null)"};class Wt extends jt{constructor(e,t){super(),this._element=e,e&&Wt.isSupported()&&(this._config=this._getConfig(t),this._deltaX=0,this._supportPointerEvents=Boolean(window.PointerEvent),this._initEvents())}static get Default(){return Ft}static get DefaultType(){return Ht}static get NAME(){return"swipe"}dispose(){_t.off(this._element,St)}_start(e){this._supportPointerEvents?this._eventIsPointerPenTouch(e)&&(this._deltaX=e.clientX):this._deltaX=e.touches[0].clientX}_end(e){this._eventIsPointerPenTouch(e)&&(this._deltaX=e.clientX-this._deltaX),this._handleSwipe(),Ze(this._config.endCallback)}_move(e){this._deltaX=e.touches&&e.touches.length>1?0:e.touches[0].clientX-this._deltaX}_handleSwipe(){const e=Math.abs(this._deltaX);if(e<=40)return;const t=e/this._deltaX;this._deltaX=0,t&&Ze(t>0?this._config.rightCallback:this._config.leftCallback)}_initEvents(){this._supportPointerEvents?(_t.on(this._element,Pt,(e=>this._start(e))),_t.on(this._element,Mt,(e=>this._end(e))),this._element.classList.add("pointer-event")):(_t.on(this._element,It,(e=>this._start(e))),_t.on(this._element,$t,(e=>this._move(e))),_t.on(this._element,Nt,(e=>this._end(e))))}_eventIsPointerPenTouch(e){return this._supportPointerEvents&&("pen"===e.pointerType||"touch"===e.pointerType)}static isSupported(){return"ontouchstart"in document.documentElement||navigator.maxTouchPoints>0}}const Bt=".bs.carousel",Rt=".data-api",zt="ArrowLeft",qt="ArrowRight",Vt="next",Ut="prev",Kt="left",Yt="right",Xt=`slide${Bt}`,Gt=`slid${Bt}`,Jt=`keydown${Bt}`,Zt=`mouseenter${Bt}`,ei=`mouseleave${Bt}`,ti=`dragstart${Bt}`,ii=`load${Bt}${Rt}`,ni=`click${Bt}${Rt}`,si="carousel",oi="active",ri=".active",ai=".carousel-item",li=ri+ai,ci={[zt]:Yt,[qt]:Kt},di={interval:5e3,keyboard:!0,pause:"hover",ride:!1,touch:!0,wrap:!0},ui={interval:"(number|boolean)",keyboard:"boolean",pause:"(string|boolean)",ride:"(boolean|string)",touch:"boolean",wrap:"boolean"};class hi extends Ct{constructor(e,t){super(e,t),this._interval=null,this._activeElement=null,this._isSliding=!1,this.touchTimeout=null,this._swipeHelper=null,this._indicatorsElement=Et.findOne(".carousel-indicators",this._element),this._addEventListeners(),this._config.ride===si&&this.cycle()}static get Default(){return di}static get DefaultType(){return ui}static get NAME(){return"carousel"}next(){this._slide(Vt)}nextWhenVisible(){!document.hidden&&ze(this._element)&&this.next()}prev(){this._slide(Ut)}pause(){this._isSliding&&We(this._element),this._clearInterval()}cycle(){this._clearInterval(),this._updateInterval(),this._interval=setInterval((()=>this.nextWhenVisible()),this._config.interval)}_maybeEnableCycle(){this._config.ride&&(this._isSliding?_t.one(this._element,Gt,(()=>this.cycle())):this.cycle())}to(e){const t=this._getItems();if(e>t.length-1||e<0)return;if(this._isSliding)return void _t.one(this._element,Gt,(()=>this.to(e)));const i=this._getItemIndex(this._getActive());if(i===e)return;const n=e>i?Vt:Ut;this._slide(n,t[e])}dispose(){this._swipeHelper&&this._swipeHelper.dispose(),super.dispose()}_configAfterMerge(e){return e.defaultInterval=e.interval,e}_addEventListeners(){this._config.keyboard&&_t.on(this._element,Jt,(e=>this._keydown(e))),"hover"===this._config.pause&&(_t.on(this._element,Zt,(()=>this.pause())),_t.on(this._element,ei,(()=>this._maybeEnableCycle()))),this._config.touch&&Wt.isSupported()&&this._addTouchEventListeners()}_addTouchEventListeners(){for(const e of Et.find(".carousel-item img",this._element))_t.on(e,ti,(e=>e.preventDefault()));const e={leftCallback:()=>this._slide(this._directionToOrder(Kt)),rightCallback:()=>this._slide(this._directionToOrder(Yt)),endCallback:()=>{"hover"===this._config.pause&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout((()=>this._maybeEnableCycle()),500+this._config.interval))}};this._swipeHelper=new Wt(this._element,e)}_keydown(e){if(/input|textarea/i.test(e.target.tagName))return;const t=ci[e.key];t&&(e.preventDefault(),this._slide(this._directionToOrder(t)))}_getItemIndex(e){return this._getItems().indexOf(e)}_setActiveIndicatorElement(e){if(!this._indicatorsElement)return;const t=Et.findOne(ri,this._indicatorsElement);t.classList.remove(oi),t.removeAttribute("aria-current");const i=Et.findOne(`[data-bs-slide-to="${e}"]`,this._indicatorsElement);i&&(i.classList.add(oi),i.setAttribute("aria-current","true"))}_updateInterval(){const e=this._activeElement||this._getActive();if(!e)return;const t=Number.parseInt(e.getAttribute("data-bs-interval"),10);this._config.interval=t||this._config.defaultInterval}_slide(e,t=null){if(this._isSliding)return;const i=this._getActive(),n=e===Vt,s=t||tt(this._getItems(),i,n,this._config.wrap);if(s===i)return;const o=this._getItemIndex(s),r=t=>_t.trigger(this._element,t,{relatedTarget:s,direction:this._orderToDirection(e),from:this._getItemIndex(i),to:o});if(r(Xt).defaultPrevented)return;if(!i||!s)return;const a=Boolean(this._interval);this.pause(),this._isSliding=!0,this._setActiveIndicatorElement(o),this._activeElement=s;const l=n?"carousel-item-start":"carousel-item-end",c=n?"carousel-item-next":"carousel-item-prev";s.classList.add(c),Ke(s),i.classList.add(l),s.classList.add(l),this._queueCallback((()=>{s.classList.remove(l,c),s.classList.add(oi),i.classList.remove(oi,c,l),this._isSliding=!1,r(Gt)}),i,this._isAnimated()),a&&this.cycle()}_isAnimated(){return this._element.classList.contains("slide")}_getActive(){return Et.findOne(li,this._element)}_getItems(){return Et.find(ai,this._element)}_clearInterval(){this._interval&&(clearInterval(this._interval),this._interval=null)}_directionToOrder(e){return Ge()?e===Kt?Ut:Vt:e===Kt?Vt:Ut}_orderToDirection(e){return Ge()?e===Ut?Kt:Yt:e===Ut?Yt:Kt}static jQueryInterface(e){return this.each((function(){const t=hi.getOrCreateInstance(this,e);if("number"!=typeof e){if("string"==typeof e){if(void 0===t[e]||e.startsWith("_")||"constructor"===e)throw new TypeError(`No method named "${e}"`);t[e]()}}else t.to(e)}))}}_t.on(document,ni,"[data-bs-slide], [data-bs-slide-to]",(function(e){const t=Et.getElementFromSelector(this);if(!t||!t.classList.contains(si))return;e.preventDefault();const i=hi.getOrCreateInstance(t),n=this.getAttribute("data-bs-slide-to");return n?(i.to(n),void i._maybeEnableCycle()):"next"===wt.getDataAttribute(this,"slide")?(i.next(),void i._maybeEnableCycle()):(i.prev(),void i._maybeEnableCycle())})),_t.on(window,ii,(()=>{const e=Et.find('[data-bs-ride="carousel"]');for(const t of e)hi.getOrCreateInstance(t)})),Je(hi);const fi=".bs.collapse",pi=`show${fi}`,mi=`shown${fi}`,gi=`hide${fi}`,_i=`hidden${fi}`,vi=`click${fi}.data-api`,yi="show",bi="collapse",wi="collapsing",ji=`:scope .${bi} .${bi}`,Ci='[data-bs-toggle="collapse"]',Ai={parent:null,toggle:!0},Ei={parent:"(null|element)",toggle:"boolean"};class xi extends Ct{constructor(e,t){super(e,t),this._isTransitioning=!1,this._triggerArray=[];const i=Et.find(Ci);for(const e of i){const t=Et.getSelectorFromElement(e),i=Et.find(t).filter((e=>e===this._element));null!==t&&i.length&&this._triggerArray.push(e)}this._initializeChildren(),this._config.parent||this._addAriaAndCollapsedClass(this._triggerArray,this._isShown()),this._config.toggle&&this.toggle()}static get Default(){return Ai}static get DefaultType(){return Ei}static get NAME(){return"collapse"}toggle(){this._isShown()?this.hide():this.show()}show(){if(this._isTransitioning||this._isShown())return;let e=[];if(this._config.parent&&(e=this._getFirstLevelChildren(".collapse.show, .collapse.collapsing").filter((e=>e!==this._element)).map((e=>xi.getOrCreateInstance(e,{toggle:!1})))),e.length&&e[0]._isTransitioning)return;if(_t.trigger(this._element,pi).defaultPrevented)return;for(const t of e)t.hide();const t=this._getDimension();this._element.classList.remove(bi),this._element.classList.add(wi),this._element.style[t]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;const i=`scroll${t[0].toUpperCase()+t.slice(1)}`;this._queueCallback((()=>{this._isTransitioning=!1,this._element.classList.remove(wi),this._element.classList.add(bi,yi),this._element.style[t]="",_t.trigger(this._element,mi)}),this._element,!0),this._element.style[t]=`${this._element[i]}px`}hide(){if(this._isTransitioning||!this._isShown())return;if(_t.trigger(this._element,gi).defaultPrevented)return;const e=this._getDimension();this._element.style[e]=`${this._element.getBoundingClientRect()[e]}px`,Ke(this._element),this._element.classList.add(wi),this._element.classList.remove(bi,yi);for(const e of this._triggerArray){const t=Et.getElementFromSelector(e);t&&!this._isShown(t)&&this._addAriaAndCollapsedClass([e],!1)}this._isTransitioning=!0,this._element.style[e]="",this._queueCallback((()=>{this._isTransitioning=!1,this._element.classList.remove(wi),this._element.classList.add(bi),_t.trigger(this._element,_i)}),this._element,!0)}_isShown(e=this._element){return e.classList.contains(yi)}_configAfterMerge(e){return e.toggle=Boolean(e.toggle),e.parent=Re(e.parent),e}_getDimension(){return this._element.classList.contains("collapse-horizontal")?"width":"height"}_initializeChildren(){if(!this._config.parent)return;const e=this._getFirstLevelChildren(Ci);for(const t of e){const e=Et.getElementFromSelector(t);e&&this._addAriaAndCollapsedClass([t],this._isShown(e))}}_getFirstLevelChildren(e){const t=Et.find(ji,this._config.parent);return Et.find(e,this._config.parent).filter((e=>!t.includes(e)))}_addAriaAndCollapsedClass(e,t){if(e.length)for(const i of e)i.classList.toggle("collapsed",!t),i.setAttribute("aria-expanded",t)}static jQueryInterface(e){const t={};return"string"==typeof e&&/show|hide/.test(e)&&(t.toggle=!1),this.each((function(){const i=xi.getOrCreateInstance(this,t);if("string"==typeof e){if(void 0===i[e])throw new TypeError(`No method named "${e}"`);i[e]()}}))}}_t.on(document,vi,Ci,(function(e){("A"===e.target.tagName||e.delegateTarget&&"A"===e.delegateTarget.tagName)&&e.preventDefault();for(const e of Et.getMultipleElementsFromSelector(this))xi.getOrCreateInstance(e,{toggle:!1}).toggle()})),Je(xi);const Ti="dropdown",ki=".bs.dropdown",Oi=".data-api",Qi="ArrowUp",Di="ArrowDown",Li=`hide${ki}`,Si=`hidden${ki}`,Ii=`show${ki}`,$i=`shown${ki}`,Ni=`click${ki}${Oi}`,Pi=`keydown${ki}${Oi}`,Mi=`keyup${ki}${Oi}`,Fi="show",Hi='[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled)',Wi=`${Hi}.${Fi}`,Bi=".dropdown-menu",Ri=Ge()?"top-end":"top-start",zi=Ge()?"top-start":"top-end",qi=Ge()?"bottom-end":"bottom-start",Vi=Ge()?"bottom-start":"bottom-end",Ui=Ge()?"left-start":"right-start",Ki=Ge()?"right-start":"left-start",Yi={autoClose:!0,boundary:"clippingParents",display:"dynamic",offset:[0,2],popperConfig:null,reference:"toggle"},Xi={autoClose:"(boolean|string)",boundary:"(string|element)",display:"string",offset:"(array|string|function)",popperConfig:"(null|object|function)",reference:"(string|element|object)"};class Gi extends Ct{constructor(e,t){super(e,t),this._popper=null,this._parent=this._element.parentNode,this._menu=Et.next(this._element,Bi)[0]||Et.prev(this._element,Bi)[0]||Et.findOne(Bi,this._parent),this._inNavbar=this._detectNavbar()}static get Default(){return Yi}static get DefaultType(){return Xi}static get NAME(){return Ti}toggle(){return this._isShown()?this.hide():this.show()}show(){if(qe(this._element)||this._isShown())return;const e={relatedTarget:this._element};if(!_t.trigger(this._element,Ii,e).defaultPrevented){if(this._createPopper(),"ontouchstart"in document.documentElement&&!this._parent.closest(".navbar-nav"))for(const e of[].concat(...document.body.children))_t.on(e,"mouseover",Ue);this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.add(Fi),this._element.classList.add(Fi),_t.trigger(this._element,$i,e)}}hide(){if(qe(this._element)||!this._isShown())return;const e={relatedTarget:this._element};this._completeHide(e)}dispose(){this._popper&&this._popper.destroy(),super.dispose()}update(){this._inNavbar=this._detectNavbar(),this._popper&&this._popper.update()}_completeHide(e){if(!_t.trigger(this._element,Li,e).defaultPrevented){if("ontouchstart"in document.documentElement)for(const e of[].concat(...document.body.children))_t.off(e,"mouseover",Ue);this._popper&&this._popper.destroy(),this._menu.classList.remove(Fi),this._element.classList.remove(Fi),this._element.setAttribute("aria-expanded","false"),wt.removeDataAttribute(this._menu,"popper"),_t.trigger(this._element,Si,e)}}_getConfig(e){if("object"==typeof(e=super._getConfig(e)).reference&&!Be(e.reference)&&"function"!=typeof e.reference.getBoundingClientRect)throw new TypeError(`${Ti.toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`);return e}_createPopper(){let e=this._element;"parent"===this._config.reference?e=this._parent:Be(this._config.reference)?e=Re(this._config.reference):"object"==typeof this._config.reference&&(e=this._config.reference);const t=this._getPopperConfig();this._popper=$e(e,this._menu,t)}_isShown(){return this._menu.classList.contains(Fi)}_getPlacement(){const e=this._parent;if(e.classList.contains("dropend"))return Ui;if(e.classList.contains("dropstart"))return Ki;if(e.classList.contains("dropup-center"))return"top";if(e.classList.contains("dropdown-center"))return"bottom";const t="end"===getComputedStyle(this._menu).getPropertyValue("--bs-position").trim();return e.classList.contains("dropup")?t?zi:Ri:t?Vi:qi}_detectNavbar(){return null!==this._element.closest(".navbar")}_getOffset(){const{offset:e}=this._config;return"string"==typeof e?e.split(",").map((e=>Number.parseInt(e,10))):"function"==typeof e?t=>e(t,this._element):e}_getPopperConfig(){const e={placement:this._getPlacement(),modifiers:[{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"offset",options:{offset:this._getOffset()}}]};return(this._inNavbar||"static"===this._config.display)&&(wt.setDataAttribute(this._menu,"popper","static"),e.modifiers=[{name:"applyStyles",enabled:!1}]),{...e,...Ze(this._config.popperConfig,[e])}}_selectMenuItem({key:e,target:t}){const i=Et.find(".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",this._menu).filter((e=>ze(e)));i.length&&tt(i,t,e===Di,!i.includes(t)).focus()}static jQueryInterface(e){return this.each((function(){const t=Gi.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e])throw new TypeError(`No method named "${e}"`);t[e]()}}))}static clearMenus(e){if(2===e.button||"keyup"===e.type&&"Tab"!==e.key)return;const t=Et.find(Wi);for(const i of t){const t=Gi.getInstance(i);if(!t||!1===t._config.autoClose)continue;const n=e.composedPath(),s=n.includes(t._menu);if(n.includes(t._element)||"inside"===t._config.autoClose&&!s||"outside"===t._config.autoClose&&s)continue;if(t._menu.contains(e.target)&&("keyup"===e.type&&"Tab"===e.key||/input|select|option|textarea|form/i.test(e.target.tagName)))continue;const o={relatedTarget:t._element};"click"===e.type&&(o.clickEvent=e),t._completeHide(o)}}static dataApiKeydownHandler(e){const t=/input|textarea/i.test(e.target.tagName),i="Escape"===e.key,n=[Qi,Di].includes(e.key);if(!n&&!i)return;if(t&&!i)return;e.preventDefault();const s=this.matches(Hi)?this:Et.prev(this,Hi)[0]||Et.next(this,Hi)[0]||Et.findOne(Hi,e.delegateTarget.parentNode),o=Gi.getOrCreateInstance(s);if(n)return e.stopPropagation(),o.show(),void o._selectMenuItem(e);o._isShown()&&(e.stopPropagation(),o.hide(),s.focus())}}_t.on(document,Pi,Hi,Gi.dataApiKeydownHandler),_t.on(document,Pi,Bi,Gi.dataApiKeydownHandler),_t.on(document,Ni,Gi.clearMenus),_t.on(document,Mi,Gi.clearMenus),_t.on(document,Ni,Hi,(function(e){e.preventDefault(),Gi.getOrCreateInstance(this).toggle()})),Je(Gi);const Ji="backdrop",Zi="show",en=`mousedown.bs.${Ji}`,tn={className:"modal-backdrop",clickCallback:null,isAnimated:!1,isVisible:!0,rootElement:"body"},nn={className:"string",clickCallback:"(function|null)",isAnimated:"boolean",isVisible:"boolean",rootElement:"(element|string)"};class sn extends jt{constructor(e){super(),this._config=this._getConfig(e),this._isAppended=!1,this._element=null}static get Default(){return tn}static get DefaultType(){return nn}static get NAME(){return Ji}show(e){if(!this._config.isVisible)return void Ze(e);this._append();const t=this._getElement();this._config.isAnimated&&Ke(t),t.classList.add(Zi),this._emulateAnimation((()=>{Ze(e)}))}hide(e){this._config.isVisible?(this._getElement().classList.remove(Zi),this._emulateAnimation((()=>{this.dispose(),Ze(e)}))):Ze(e)}dispose(){this._isAppended&&(_t.off(this._element,en),this._element.remove(),this._isAppended=!1)}_getElement(){if(!this._element){const e=document.createElement("div");e.className=this._config.className,this._config.isAnimated&&e.classList.add("fade"),this._element=e}return this._element}_configAfterMerge(e){return e.rootElement=Re(e.rootElement),e}_append(){if(this._isAppended)return;const e=this._getElement();this._config.rootElement.append(e),_t.on(e,en,(()=>{Ze(this._config.clickCallback)})),this._isAppended=!0}_emulateAnimation(e){et(e,this._getElement(),this._config.isAnimated)}}const on=".bs.focustrap",rn=`focusin${on}`,an=`keydown.tab${on}`,ln="backward",cn={autofocus:!0,trapElement:null},dn={autofocus:"boolean",trapElement:"element"};class un extends jt{constructor(e){super(),this._config=this._getConfig(e),this._isActive=!1,this._lastTabNavDirection=null}static get Default(){return cn}static get DefaultType(){return dn}static get NAME(){return"focustrap"}activate(){this._isActive||(this._config.autofocus&&this._config.trapElement.focus(),_t.off(document,on),_t.on(document,rn,(e=>this._handleFocusin(e))),_t.on(document,an,(e=>this._handleKeydown(e))),this._isActive=!0)}deactivate(){this._isActive&&(this._isActive=!1,_t.off(document,on))}_handleFocusin(e){const{trapElement:t}=this._config;if(e.target===document||e.target===t||t.contains(e.target))return;const i=Et.focusableChildren(t);0===i.length?t.focus():this._lastTabNavDirection===ln?i[i.length-1].focus():i[0].focus()}_handleKeydown(e){"Tab"===e.key&&(this._lastTabNavDirection=e.shiftKey?ln:"forward")}}const hn=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",fn=".sticky-top",pn="padding-right",mn="margin-right";class gn{constructor(){this._element=document.body}getWidth(){const e=document.documentElement.clientWidth;return Math.abs(window.innerWidth-e)}hide(){const e=this.getWidth();this._disableOverFlow(),this._setElementAttributes(this._element,pn,(t=>t+e)),this._setElementAttributes(hn,pn,(t=>t+e)),this._setElementAttributes(fn,mn,(t=>t-e))}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,pn),this._resetElementAttributes(hn,pn),this._resetElementAttributes(fn,mn)}isOverflowing(){return this.getWidth()>0}_disableOverFlow(){this._saveInitialAttribute(this._element,"overflow"),this._element.style.overflow="hidden"}_setElementAttributes(e,t,i){const n=this.getWidth();this._applyManipulationCallback(e,(e=>{if(e!==this._element&&window.innerWidth>e.clientWidth+n)return;this._saveInitialAttribute(e,t);const s=window.getComputedStyle(e).getPropertyValue(t);e.style.setProperty(t,`${i(Number.parseFloat(s))}px`)}))}_saveInitialAttribute(e,t){const i=e.style.getPropertyValue(t);i&&wt.setDataAttribute(e,t,i)}_resetElementAttributes(e,t){this._applyManipulationCallback(e,(e=>{const i=wt.getDataAttribute(e,t);null!==i?(wt.removeDataAttribute(e,t),e.style.setProperty(t,i)):e.style.removeProperty(t)}))}_applyManipulationCallback(e,t){if(Be(e))t(e);else for(const i of Et.find(e,this._element))t(i)}}const vn=".bs.modal",yn=`hide${vn}`,bn=`hidePrevented${vn}`,wn=`hidden${vn}`,jn=`show${vn}`,Cn=`shown${vn}`,An=`resize${vn}`,En=`click.dismiss${vn}`,xn=`mousedown.dismiss${vn}`,Tn=`keydown.dismiss${vn}`,kn=`click${vn}.data-api`,On="modal-open",Qn="show",Dn="modal-static",Ln={backdrop:!0,focus:!0,keyboard:!0},Sn={backdrop:"(boolean|string)",focus:"boolean",keyboard:"boolean"};class In extends Ct{constructor(e,t){super(e,t),this._dialog=Et.findOne(".modal-dialog",this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._isTransitioning=!1,this._scrollBar=new gn,this._addEventListeners()}static get Default(){return Ln}static get DefaultType(){return Sn}static get NAME(){return"modal"}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){this._isShown||this._isTransitioning||_t.trigger(this._element,jn,{relatedTarget:e}).defaultPrevented||(this._isShown=!0,this._isTransitioning=!0,this._scrollBar.hide(),document.body.classList.add(On),this._adjustDialog(),this._backdrop.show((()=>this._showElement(e))))}hide(){this._isShown&&!this._isTransitioning&&(_t.trigger(this._element,yn).defaultPrevented||(this._isShown=!1,this._isTransitioning=!0,this._focustrap.deactivate(),this._element.classList.remove(Qn),this._queueCallback((()=>this._hideModal()),this._element,this._isAnimated())))}dispose(){_t.off(window,vn),_t.off(this._dialog,vn),this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new sn({isVisible:Boolean(this._config.backdrop),isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new un({trapElement:this._element})}_showElement(e){document.body.contains(this._element)||document.body.append(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;const t=Et.findOne(".modal-body",this._dialog);t&&(t.scrollTop=0),Ke(this._element),this._element.classList.add(Qn),this._queueCallback((()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,_t.trigger(this._element,Cn,{relatedTarget:e})}),this._dialog,this._isAnimated())}_addEventListeners(){_t.on(this._element,Tn,(e=>{"Escape"===e.key&&(this._config.keyboard?this.hide():this._triggerBackdropTransition())})),_t.on(window,An,(()=>{this._isShown&&!this._isTransitioning&&this._adjustDialog()})),_t.on(this._element,xn,(e=>{_t.one(this._element,En,(t=>{this._element===e.target&&this._element===t.target&&("static"!==this._config.backdrop?this._config.backdrop&&this.hide():this._triggerBackdropTransition())}))}))}_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(On),this._resetAdjustments(),this._scrollBar.reset(),_t.trigger(this._element,wn)}))}_isAnimated(){return this._element.classList.contains("fade")}_triggerBackdropTransition(){if(_t.trigger(this._element,bn).defaultPrevented)return;const e=this._element.scrollHeight>document.documentElement.clientHeight,t=this._element.style.overflowY;"hidden"===t||this._element.classList.contains(Dn)||(e||(this._element.style.overflowY="hidden"),this._element.classList.add(Dn),this._queueCallback((()=>{this._element.classList.remove(Dn),this._queueCallback((()=>{this._element.style.overflowY=t}),this._dialog)}),this._dialog),this._element.focus())}_adjustDialog(){const e=this._element.scrollHeight>document.documentElement.clientHeight,t=this._scrollBar.getWidth(),i=t>0;if(i&&!e){const e=Ge()?"paddingLeft":"paddingRight";this._element.style[e]=`${t}px`}if(!i&&e){const e=Ge()?"paddingRight":"paddingLeft";this._element.style[e]=`${t}px`}}_resetAdjustments(){this._element.style.paddingLeft="",this._element.style.paddingRight=""}static jQueryInterface(e,t){return this.each((function(){const i=In.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===i[e])throw new TypeError(`No method named "${e}"`);i[e](t)}}))}}_t.on(document,kn,'[data-bs-toggle="modal"]',(function(e){const t=Et.getElementFromSelector(this);["A","AREA"].includes(this.tagName)&&e.preventDefault(),_t.one(t,jn,(e=>{e.defaultPrevented||_t.one(t,wn,(()=>{ze(this)&&this.focus()}))}));const i=Et.findOne(".modal.show");i&&In.getInstance(i).hide(),In.getOrCreateInstance(t).toggle(this)})),xt(In),Je(In);const $n=".bs.offcanvas",Nn=".data-api",Pn=`load${$n}${Nn}`,Mn="show",Fn="showing",Hn="hiding",Wn=".offcanvas.show",Bn=`show${$n}`,Rn=`shown${$n}`,zn=`hide${$n}`,qn=`hidePrevented${$n}`,Vn=`hidden${$n}`,Un=`resize${$n}`,Kn=`click${$n}${Nn}`,Yn=`keydown.dismiss${$n}`,Xn={backdrop:!0,keyboard:!0,scroll:!1},Gn={backdrop:"(boolean|string)",keyboard:"boolean",scroll:"boolean"};class Jn extends Ct{constructor(e,t){super(e,t),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._addEventListeners()}static get Default(){return Xn}static get DefaultType(){return Gn}static get NAME(){return"offcanvas"}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){this._isShown||_t.trigger(this._element,Bn,{relatedTarget:e}).defaultPrevented||(this._isShown=!0,this._backdrop.show(),this._config.scroll||(new gn).hide(),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.classList.add(Fn),this._queueCallback((()=>{this._config.scroll&&!this._config.backdrop||this._focustrap.activate(),this._element.classList.add(Mn),this._element.classList.remove(Fn),_t.trigger(this._element,Rn,{relatedTarget:e})}),this._element,!0))}hide(){this._isShown&&(_t.trigger(this._element,zn).defaultPrevented||(this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.add(Hn),this._backdrop.hide(),this._queueCallback((()=>{this._element.classList.remove(Mn,Hn),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._config.scroll||(new gn).reset(),_t.trigger(this._element,Vn)}),this._element,!0)))}dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}_initializeBackDrop(){const e=Boolean(this._config.backdrop);return new sn({className:"offcanvas-backdrop",isVisible:e,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:e?()=>{"static"!==this._config.backdrop?this.hide():_t.trigger(this._element,qn)}:null})}_initializeFocusTrap(){return new un({trapElement:this._element})}_addEventListeners(){_t.on(this._element,Yn,(e=>{"Escape"===e.key&&(this._config.keyboard?this.hide():_t.trigger(this._element,qn))}))}static jQueryInterface(e){return this.each((function(){const t=Jn.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e]||e.startsWith("_")||"constructor"===e)throw new TypeError(`No method named "${e}"`);t[e](this)}}))}}_t.on(document,Kn,'[data-bs-toggle="offcanvas"]',(function(e){const t=Et.getElementFromSelector(this);if(["A","AREA"].includes(this.tagName)&&e.preventDefault(),qe(this))return;_t.one(t,Vn,(()=>{ze(this)&&this.focus()}));const i=Et.findOne(Wn);i&&i!==t&&Jn.getInstance(i).hide(),Jn.getOrCreateInstance(t).toggle(this)})),_t.on(window,Pn,(()=>{for(const e of Et.find(Wn))Jn.getOrCreateInstance(e).show()})),_t.on(window,Un,(()=>{for(const e of Et.find("[aria-modal][class*=show][class*=offcanvas-]"))"fixed"!==getComputedStyle(e).position&&Jn.getOrCreateInstance(e).hide()})),xt(Jn),Je(Jn);const Zn={"*":["class","dir","id","lang","role",/^aria-[\w-]*$/i],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],dd:[],div:[],dl:[],dt:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","srcset","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]},es=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),ts=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:/?#]*(?:[/?#]|$))/i,is=(e,t)=>{const i=e.nodeName.toLowerCase();return t.includes(i)?!es.has(i)||Boolean(ts.test(e.nodeValue)):t.filter((e=>e instanceof RegExp)).some((e=>e.test(i)))},ns={allowList:Zn,content:{},extraClass:"",html:!1,sanitize:!0,sanitizeFn:null,template:"<div></div>"},ss={allowList:"object",content:"object",extraClass:"(string|function)",html:"boolean",sanitize:"boolean",sanitizeFn:"(null|function)",template:"string"},os={entry:"(string|element|function|null)",selector:"(string|element)"};class rs extends jt{constructor(e){super(),this._config=this._getConfig(e)}static get Default(){return ns}static get DefaultType(){return ss}static get NAME(){return"TemplateFactory"}getContent(){return Object.values(this._config.content).map((e=>this._resolvePossibleFunction(e))).filter(Boolean)}hasContent(){return this.getContent().length>0}changeContent(e){return this._checkContent(e),this._config.content={...this._config.content,...e},this}toHtml(){const e=document.createElement("div");e.innerHTML=this._maybeSanitize(this._config.template);for(const[t,i]of Object.entries(this._config.content))this._setContent(e,i,t);const t=e.children[0],i=this._resolvePossibleFunction(this._config.extraClass);return i&&t.classList.add(...i.split(" ")),t}_typeCheckConfig(e){super._typeCheckConfig(e),this._checkContent(e.content)}_checkContent(e){for(const[t,i]of Object.entries(e))super._typeCheckConfig({selector:t,entry:i},os)}_setContent(e,t,i){const n=Et.findOne(i,e);n&&((t=this._resolvePossibleFunction(t))?Be(t)?this._putElementInTemplate(Re(t),n):this._config.html?n.innerHTML=this._maybeSanitize(t):n.textContent=t:n.remove())}_maybeSanitize(e){return this._config.sanitize?function(e,t,i){if(!e.length)return e;if(i&&"function"==typeof i)return i(e);const n=(new window.DOMParser).parseFromString(e,"text/html"),s=[].concat(...n.body.querySelectorAll("*"));for(const e of s){const i=e.nodeName.toLowerCase();if(!Object.keys(t).includes(i)){e.remove();continue}const n=[].concat(...e.attributes),s=[].concat(t["*"]||[],t[i]||[]);for(const t of n)is(t,s)||e.removeAttribute(t.nodeName)}return n.body.innerHTML}(e,this._config.allowList,this._config.sanitizeFn):e}_resolvePossibleFunction(e){return Ze(e,[this])}_putElementInTemplate(e,t){if(this._config.html)return t.innerHTML="",void t.append(e);t.textContent=e.textContent}}const as=new Set(["sanitize","allowList","sanitizeFn"]),ls="fade",cs="show",ds=".tooltip-inner",us=".modal",hs="hide.bs.modal",fs="hover",ps="focus",ms={AUTO:"auto",TOP:"top",RIGHT:Ge()?"left":"right",BOTTOM:"bottom",LEFT:Ge()?"right":"left"},gs={allowList:Zn,animation:!0,boundary:"clippingParents",container:!1,customClass:"",delay:0,fallbackPlacements:["top","right","bottom","left"],html:!1,offset:[0,6],placement:"top",popperConfig:null,sanitize:!0,sanitizeFn:null,selector:!1,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',title:"",trigger:"hover focus"},_s={allowList:"object",animation:"boolean",boundary:"(string|element)",container:"(string|element|boolean)",customClass:"(string|function)",delay:"(number|object)",fallbackPlacements:"array",html:"boolean",offset:"(array|string|function)",placement:"(string|function)",popperConfig:"(null|object|function)",sanitize:"boolean",sanitizeFn:"(null|function)",selector:"(string|boolean)",template:"string",title:"(string|element|function)",trigger:"string"};class vs extends Ct{constructor(e,t){super(e,t),this._isEnabled=!0,this._timeout=0,this._isHovered=null,this._activeTrigger={},this._popper=null,this._templateFactory=null,this._newContent=null,this.tip=null,this._setListeners(),this._config.selector||this._fixTitle()}static get Default(){return gs}static get DefaultType(){return _s}static get NAME(){return"tooltip"}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}toggleEnabled(){this._isEnabled=!this._isEnabled}toggle(){this._isEnabled&&(this._activeTrigger.click=!this._activeTrigger.click,this._isShown()?this._leave():this._enter())}dispose(){clearTimeout(this._timeout),_t.off(this._element.closest(us),hs,this._hideModalHandler),this._element.getAttribute("data-bs-original-title")&&this._element.setAttribute("title",this._element.getAttribute("data-bs-original-title")),this._disposePopper(),super.dispose()}show(){if("none"===this._element.style.display)throw new Error("Please use show on visible elements");if(!this._isWithContent()||!this._isEnabled)return;const e=_t.trigger(this._element,this.constructor.eventName("show")),t=(Ve(this._element)||this._element.ownerDocument.documentElement).contains(this._element);if(e.defaultPrevented||!t)return;this._disposePopper();const i=this._getTipElement();this._element.setAttribute("aria-describedby",i.getAttribute("id"));const{container:n}=this._config;if(this._element.ownerDocument.documentElement.contains(this.tip)||(n.append(i),_t.trigger(this._element,this.constructor.eventName("inserted"))),this._popper=this._createPopper(i),i.classList.add(cs),"ontouchstart"in document.documentElement)for(const e of[].concat(...document.body.children))_t.on(e,"mouseover",Ue);this._queueCallback((()=>{_t.trigger(this._element,this.constructor.eventName("shown")),!1===this._isHovered&&this._leave(),this._isHovered=!1}),this.tip,this._isAnimated())}hide(){if(this._isShown()&&!_t.trigger(this._element,this.constructor.eventName("hide")).defaultPrevented){if(this._getTipElement().classList.remove(cs),"ontouchstart"in document.documentElement)for(const e of[].concat(...document.body.children))_t.off(e,"mouseover",Ue);this._activeTrigger.click=!1,this._activeTrigger[ps]=!1,this._activeTrigger[fs]=!1,this._isHovered=null,this._queueCallback((()=>{this._isWithActiveTrigger()||(this._isHovered||this._disposePopper(),this._element.removeAttribute("aria-describedby"),_t.trigger(this._element,this.constructor.eventName("hidden")))}),this.tip,this._isAnimated())}}update(){this._popper&&this._popper.update()}_isWithContent(){return Boolean(this._getTitle())}_getTipElement(){return this.tip||(this.tip=this._createTipElement(this._newContent||this._getContentForTemplate())),this.tip}_createTipElement(e){const t=this._getTemplateFactory(e).toHtml();if(!t)return null;t.classList.remove(ls,cs),t.classList.add(`bs-${this.constructor.NAME}-auto`);const i=(e=>{do{e+=Math.floor(1e6*Math.random())}while(document.getElementById(e));return e})(this.constructor.NAME).toString();return t.setAttribute("id",i),this._isAnimated()&&t.classList.add(ls),t}setContent(e){this._newContent=e,this._isShown()&&(this._disposePopper(),this.show())}_getTemplateFactory(e){return this._templateFactory?this._templateFactory.changeContent(e):this._templateFactory=new rs({...this._config,content:e,extraClass:this._resolvePossibleFunction(this._config.customClass)}),this._templateFactory}_getContentForTemplate(){return{[ds]:this._getTitle()}}_getTitle(){return this._resolvePossibleFunction(this._config.title)||this._element.getAttribute("data-bs-original-title")}_initializeOnDelegatedTarget(e){return this.constructor.getOrCreateInstance(e.delegateTarget,this._getDelegateConfig())}_isAnimated(){return this._config.animation||this.tip&&this.tip.classList.contains(ls)}_isShown(){return this.tip&&this.tip.classList.contains(cs)}_createPopper(e){const t=Ze(this._config.placement,[this,e,this._element]),i=ms[t.toUpperCase()];return $e(this._element,e,this._getPopperConfig(i))}_getOffset(){const{offset:e}=this._config;return"string"==typeof e?e.split(",").map((e=>Number.parseInt(e,10))):"function"==typeof e?t=>e(t,this._element):e}_resolvePossibleFunction(e){return Ze(e,[this._element])}_getPopperConfig(e){const t={placement:e,modifiers:[{name:"flip",options:{fallbackPlacements:this._config.fallbackPlacements}},{name:"offset",options:{offset:this._getOffset()}},{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"arrow",options:{element:`.${this.constructor.NAME}-arrow`}},{name:"preSetPlacement",enabled:!0,phase:"beforeMain",fn:e=>{this._getTipElement().setAttribute("data-popper-placement",e.state.placement)}}]};return{...t,...Ze(this._config.popperConfig,[t])}}_setListeners(){const e=this._config.trigger.split(" ");for(const t of e)if("click"===t)_t.on(this._element,this.constructor.eventName("click"),this._config.selector,(e=>{this._initializeOnDelegatedTarget(e).toggle()}));else if("manual"!==t){const e=t===fs?this.constructor.eventName("mouseenter"):this.constructor.eventName("focusin"),i=t===fs?this.constructor.eventName("mouseleave"):this.constructor.eventName("focusout");_t.on(this._element,e,this._config.selector,(e=>{const t=this._initializeOnDelegatedTarget(e);t._activeTrigger["focusin"===e.type?ps:fs]=!0,t._enter()})),_t.on(this._element,i,this._config.selector,(e=>{const t=this._initializeOnDelegatedTarget(e);t._activeTrigger["focusout"===e.type?ps:fs]=t._element.contains(e.relatedTarget),t._leave()}))}this._hideModalHandler=()=>{this._element&&this.hide()},_t.on(this._element.closest(us),hs,this._hideModalHandler)}_fixTitle(){const e=this._element.getAttribute("title");e&&(this._element.getAttribute("aria-label")||this._element.textContent.trim()||this._element.setAttribute("aria-label",e),this._element.setAttribute("data-bs-original-title",e),this._element.removeAttribute("title"))}_enter(){this._isShown()||this._isHovered?this._isHovered=!0:(this._isHovered=!0,this._setTimeout((()=>{this._isHovered&&this.show()}),this._config.delay.show))}_leave(){this._isWithActiveTrigger()||(this._isHovered=!1,this._setTimeout((()=>{this._isHovered||this.hide()}),this._config.delay.hide))}_setTimeout(e,t){clearTimeout(this._timeout),this._timeout=setTimeout(e,t)}_isWithActiveTrigger(){return Object.values(this._activeTrigger).includes(!0)}_getConfig(e){const t=wt.getDataAttributes(this._element);for(const e of Object.keys(t))as.has(e)&&delete t[e];return e={...t,..."object"==typeof e&&e?e:{}},e=this._mergeConfigObj(e),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}_configAfterMerge(e){return e.container=!1===e.container?document.body:Re(e.container),"number"==typeof e.delay&&(e.delay={show:e.delay,hide:e.delay}),"number"==typeof e.title&&(e.title=e.title.toString()),"number"==typeof e.content&&(e.content=e.content.toString()),e}_getDelegateConfig(){const e={};for(const[t,i]of Object.entries(this._config))this.constructor.Default[t]!==i&&(e[t]=i);return e.selector=!1,e.trigger="manual",e}_disposePopper(){this._popper&&(this._popper.destroy(),this._popper=null),this.tip&&(this.tip.remove(),this.tip=null)}static jQueryInterface(e){return this.each((function(){const t=vs.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e])throw new TypeError(`No method named "${e}"`);t[e]()}}))}}Je(vs);const ys=".popover-header",bs=".popover-body",ws={...vs.Default,content:"",offset:[0,8],placement:"right",template:'<div class="popover" role="tooltip"><div class="popover-arrow"></div><h3 class="popover-header"></h3><div class="popover-body"></div></div>',trigger:"click"},js={...vs.DefaultType,content:"(null|string|element|function)"};class Cs extends vs{static get Default(){return ws}static get DefaultType(){return js}static get NAME(){return"popover"}_isWithContent(){return this._getTitle()||this._getContent()}_getContentForTemplate(){return{[ys]:this._getTitle(),[bs]:this._getContent()}}_getContent(){return this._resolvePossibleFunction(this._config.content)}static jQueryInterface(e){return this.each((function(){const t=Cs.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e])throw new TypeError(`No method named "${e}"`);t[e]()}}))}}Je(Cs);const As=".bs.scrollspy",Es=`activate${As}`,xs=`click${As}`,Ts=`load${As}.data-api`,ks="active",Os="[href]",Qs=".nav-link",Ds=`${Qs}, .nav-item > ${Qs}, .list-group-item`,Ls={offset:null,rootMargin:"0px 0px -25%",smoothScroll:!1,target:null,threshold:[.1,.5,1]},Ss={offset:"(number|null)",rootMargin:"string",smoothScroll:"boolean",target:"element",threshold:"array"};class Is extends Ct{constructor(e,t){super(e,t),this._targetLinks=new Map,this._observableSections=new Map,this._rootElement="visible"===getComputedStyle(this._element).overflowY?null:this._element,this._activeTarget=null,this._observer=null,this._previousScrollData={visibleEntryTop:0,parentScrollTop:0},this.refresh()}static get Default(){return Ls}static get DefaultType(){return Ss}static get NAME(){return"scrollspy"}refresh(){this._initializeTargetsAndObservables(),this._maybeEnableSmoothScroll(),this._observer?this._observer.disconnect():this._observer=this._getNewObserver();for(const e of this._observableSections.values())this._observer.observe(e)}dispose(){this._observer.disconnect(),super.dispose()}_configAfterMerge(e){return e.target=Re(e.target)||document.body,e.rootMargin=e.offset?`${e.offset}px 0px -30%`:e.rootMargin,"string"==typeof e.threshold&&(e.threshold=e.threshold.split(",").map((e=>Number.parseFloat(e)))),e}_maybeEnableSmoothScroll(){this._config.smoothScroll&&(_t.off(this._config.target,xs),_t.on(this._config.target,xs,Os,(e=>{const t=this._observableSections.get(e.target.hash);if(t){e.preventDefault();const i=this._rootElement||window,n=t.offsetTop-this._element.offsetTop;if(i.scrollTo)return void i.scrollTo({top:n,behavior:"smooth"});i.scrollTop=n}})))}_getNewObserver(){const e={root:this._rootElement,threshold:this._config.threshold,rootMargin:this._config.rootMargin};return new IntersectionObserver((e=>this._observerCallback(e)),e)}_observerCallback(e){const t=e=>this._targetLinks.get(`#${e.target.id}`),i=e=>{this._previousScrollData.visibleEntryTop=e.target.offsetTop,this._process(t(e))},n=(this._rootElement||document.documentElement).scrollTop,s=n>=this._previousScrollData.parentScrollTop;this._previousScrollData.parentScrollTop=n;for(const o of e){if(!o.isIntersecting){this._activeTarget=null,this._clearActiveClass(t(o));continue}const e=o.target.offsetTop>=this._previousScrollData.visibleEntryTop;if(s&&e){if(i(o),!n)return}else s||e||i(o)}}_initializeTargetsAndObservables(){this._targetLinks=new Map,this._observableSections=new Map;const e=Et.find(Os,this._config.target);for(const t of e){if(!t.hash||qe(t))continue;const e=Et.findOne(decodeURI(t.hash),this._element);ze(e)&&(this._targetLinks.set(decodeURI(t.hash),t),this._observableSections.set(t.hash,e))}}_process(e){this._activeTarget!==e&&(this._clearActiveClass(this._config.target),this._activeTarget=e,e.classList.add(ks),this._activateParents(e),_t.trigger(this._element,Es,{relatedTarget:e}))}_activateParents(e){if(e.classList.contains("dropdown-item"))Et.findOne(".dropdown-toggle",e.closest(".dropdown")).classList.add(ks);else for(const t of Et.parents(e,".nav, .list-group"))for(const e of Et.prev(t,Ds))e.classList.add(ks)}_clearActiveClass(e){e.classList.remove(ks);const t=Et.find(`${Os}.${ks}`,e);for(const e of t)e.classList.remove(ks)}static jQueryInterface(e){return this.each((function(){const t=Is.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e]||e.startsWith("_")||"constructor"===e)throw new TypeError(`No method named "${e}"`);t[e]()}}))}}_t.on(window,Ts,(()=>{for(const e of Et.find('[data-bs-spy="scroll"]'))Is.getOrCreateInstance(e)})),Je(Is);const $s=".bs.tab",Ns=`hide${$s}`,Ps=`hidden${$s}`,Ms=`show${$s}`,Fs=`shown${$s}`,Hs=`click${$s}`,Ws=`keydown${$s}`,Bs=`load${$s}`,Rs="ArrowLeft",zs="ArrowRight",qs="ArrowUp",Vs="ArrowDown",Us="Home",Ks="End",Ys="active",Xs="fade",Gs="show",Js=".dropdown-toggle",Zs=`:not(${Js})`,eo='[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',to=`.nav-link${Zs}, .list-group-item${Zs}, [role="tab"]${Zs}, ${eo}`,io=`.${Ys}[data-bs-toggle="tab"], .${Ys}[data-bs-toggle="pill"], .${Ys}[data-bs-toggle="list"]`;class no extends Ct{constructor(e){super(e),this._parent=this._element.closest('.list-group, .nav, [role="tablist"]'),this._parent&&(this._setInitialAttributes(this._parent,this._getChildren()),_t.on(this._element,Ws,(e=>this._keydown(e))))}static get NAME(){return"tab"}show(){const e=this._element;if(this._elemIsActive(e))return;const t=this._getActiveElem(),i=t?_t.trigger(t,Ns,{relatedTarget:e}):null;_t.trigger(e,Ms,{relatedTarget:t}).defaultPrevented||i&&i.defaultPrevented||(this._deactivate(t,e),this._activate(e,t))}_activate(e,t){e&&(e.classList.add(Ys),this._activate(Et.getElementFromSelector(e)),this._queueCallback((()=>{"tab"===e.getAttribute("role")?(e.removeAttribute("tabindex"),e.setAttribute("aria-selected",!0),this._toggleDropDown(e,!0),_t.trigger(e,Fs,{relatedTarget:t})):e.classList.add(Gs)}),e,e.classList.contains(Xs)))}_deactivate(e,t){e&&(e.classList.remove(Ys),e.blur(),this._deactivate(Et.getElementFromSelector(e)),this._queueCallback((()=>{"tab"===e.getAttribute("role")?(e.setAttribute("aria-selected",!1),e.setAttribute("tabindex","-1"),this._toggleDropDown(e,!1),_t.trigger(e,Ps,{relatedTarget:t})):e.classList.remove(Gs)}),e,e.classList.contains(Xs)))}_keydown(e){if(![Rs,zs,qs,Vs,Us,Ks].includes(e.key))return;e.stopPropagation(),e.preventDefault();const t=this._getChildren().filter((e=>!qe(e)));let i;if([Us,Ks].includes(e.key))i=t[e.key===Us?0:t.length-1];else{const n=[zs,Vs].includes(e.key);i=tt(t,e.target,n,!0)}i&&(i.focus({preventScroll:!0}),no.getOrCreateInstance(i).show())}_getChildren(){return Et.find(to,this._parent)}_getActiveElem(){return this._getChildren().find((e=>this._elemIsActive(e)))||null}_setInitialAttributes(e,t){this._setAttributeIfNotExists(e,"role","tablist");for(const e of t)this._setInitialAttributesOnChild(e)}_setInitialAttributesOnChild(e){e=this._getInnerElement(e);const t=this._elemIsActive(e),i=this._getOuterElement(e);e.setAttribute("aria-selected",t),i!==e&&this._setAttributeIfNotExists(i,"role","presentation"),t||e.setAttribute("tabindex","-1"),this._setAttributeIfNotExists(e,"role","tab"),this._setInitialAttributesOnTargetPanel(e)}_setInitialAttributesOnTargetPanel(e){const t=Et.getElementFromSelector(e);t&&(this._setAttributeIfNotExists(t,"role","tabpanel"),e.id&&this._setAttributeIfNotExists(t,"aria-labelledby",`${e.id}`))}_toggleDropDown(e,t){const i=this._getOuterElement(e);if(!i.classList.contains("dropdown"))return;const n=(e,n)=>{const s=Et.findOne(e,i);s&&s.classList.toggle(n,t)};n(Js,Ys),n(".dropdown-menu",Gs),i.setAttribute("aria-expanded",t)}_setAttributeIfNotExists(e,t,i){e.hasAttribute(t)||e.setAttribute(t,i)}_elemIsActive(e){return e.classList.contains(Ys)}_getInnerElement(e){return e.matches(to)?e:Et.findOne(to,e)}_getOuterElement(e){return e.closest(".nav-item, .list-group-item")||e}static jQueryInterface(e){return this.each((function(){const t=no.getOrCreateInstance(this);if("string"==typeof e){if(void 0===t[e]||e.startsWith("_")||"constructor"===e)throw new TypeError(`No method named "${e}"`);t[e]()}}))}}_t.on(document,Hs,eo,(function(e){["A","AREA"].includes(this.tagName)&&e.preventDefault(),qe(this)||no.getOrCreateInstance(this).show()})),_t.on(window,Bs,(()=>{for(const e of Et.find(io))no.getOrCreateInstance(e)})),Je(no);const so=".bs.toast",oo=`mouseover${so}`,ro=`mouseout${so}`,ao=`focusin${so}`,lo=`focusout${so}`,co=`hide${so}`,uo=`hidden${so}`,ho=`show${so}`,fo=`shown${so}`,po="hide",mo="show",go="showing",_o={animation:"boolean",autohide:"boolean",delay:"number"},vo={animation:!0,autohide:!0,delay:5e3};class yo extends Ct{constructor(e,t){super(e,t),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get Default(){return vo}static get DefaultType(){return _o}static get NAME(){return"toast"}show(){_t.trigger(this._element,ho).defaultPrevented||(this._clearTimeout(),this._config.animation&&this._element.classList.add("fade"),this._element.classList.remove(po),Ke(this._element),this._element.classList.add(mo,go),this._queueCallback((()=>{this._element.classList.remove(go),_t.trigger(this._element,fo),this._maybeScheduleHide()}),this._element,this._config.animation))}hide(){this.isShown()&&(_t.trigger(this._element,co).defaultPrevented||(this._element.classList.add(go),this._queueCallback((()=>{this._element.classList.add(po),this._element.classList.remove(go,mo),_t.trigger(this._element,uo)}),this._element,this._config.animation)))}dispose(){this._clearTimeout(),this.isShown()&&this._element.classList.remove(mo),super.dispose()}isShown(){return this._element.classList.contains(mo)}_maybeScheduleHide(){this._config.autohide&&(this._hasMouseInteraction||this._hasKeyboardInteraction||(this._timeout=setTimeout((()=>{this.hide()}),this._config.delay)))}_onInteraction(e,t){switch(e.type){case"mouseover":case"mouseout":this._hasMouseInteraction=t;break;case"focusin":case"focusout":this._hasKeyboardInteraction=t}if(t)return void this._clearTimeout();const i=e.relatedTarget;this._element===i||this._element.contains(i)||this._maybeScheduleHide()}_setListeners(){_t.on(this._element,oo,(e=>this._onInteraction(e,!0))),_t.on(this._element,ro,(e=>this._onInteraction(e,!1))),_t.on(this._element,ao,(e=>this._onInteraction(e,!0))),_t.on(this._element,lo,(e=>this._onInteraction(e,!1)))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(e){return this.each((function(){const t=yo.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e])throw new TypeError(`No method named "${e}"`);t[e](this)}}))}}xt(yo),Je(yo),jQuery(window).on("load",(function(){const e=document.getElementById("mastodon-modal"),t=document.getElementById("mastodon-instance-url"),i=document.getElementById("mastodon-share-ok");let n=null;jQuery(".amplify-option-mastodon").on("click",(function(i){i.preventDefault(),n=jQuery(this);const o=localStorage.getItem("mastodon-instance-url");o&&(t.value=o),s(),e.style.display="block"}));const s=()=>{t&&i&&(t.value.trim()?i.removeAttribute("disabled"):i.setAttribute("disabled","disabled"))};i&&(i.addEventListener("click",(function(i){i.preventDefault();let s=t.value.trim();localStorage.setItem("mastodon-instance-url",s);const o=n.data("posttitle"),r=n.data("posturl");s.match(/^(https?:\/\/)/)||(s="https://"+s);const a=`${s}/share?text=${encodeURIComponent(o)}%20${encodeURIComponent(r)}`;window.open(a,"_blank"),e.style.display="none"})),t.addEventListener("input",s),s());var o=jQuery(".pfmodal");jQuery(".pf-loader").delay(300).fadeOut("slow",(function(){var e,t;if(jQuery(".pf_container").fadeIn("slow"),jQuery(".page-load-status").show(),window.location.hash.indexOf("#")<0)window.location.hash="#ready";else if(window.location.hash.toLowerCase().indexOf("modal")>=0){var i=window.location.hash;0===(t=jQuery(i)).length||jQuery(i).hasClass("in")?window.location.hash="#ready":(e=t.find(".close"),new In(t).show(e))}jQuery(window).on("hashchange",(function(){if("#ready"===window.location.hash&&jQuery(".modal").modal("hide"),window.location.hash.toLowerCase().indexOf("modal")>=0){var i=window.location.hash;jQuery(i).hasClass("in")||(t=jQuery(i),e=t.find(".close"),new In(t).show(e),o.each((function(){var e=In.getInstance(this);e&&e.hide()})))}}))}))})),jQuery(window).on("load",(function(){if(jQuery("#gogrid").on("click",(function(e){e.preventDefault(),jQuery("div.pf_container").removeClass("list").addClass("grid"),jQuery("#gogrid").addClass("unset"),jQuery("#golist").removeClass("unset"),jQuery(".feed-item").each((function(){var e=jQuery(this).attr("id");jQuery("#"+e+" footer .actions").appendTo("#"+e+" header")}))})),jQuery("#golist").on("click",(function(e){e.preventDefault(),jQuery("div.pf_container").removeClass("grid").addClass("list"),jQuery("#golist").addClass("unset"),jQuery("#gogrid").removeClass("unset"),jQuery(".feed-item").each((function(){var e=jQuery(this).attr("id");jQuery("#"+e+" header .actions").appendTo("#"+e+" footer")}))})),jQuery("#gomenu").on("click",(function(e){e.preventDefault(),jQuery("#feed-folders").hide({direction:"right",duration:150,easing:"linear"})})),jQuery("#gomenu").on("click",(function(e){pf.toggler(e,this,(function(){var e=jQuery("#tools");jQuery("div.pf_container").removeClass("full"),jQuery("#feed-folders").hide({direction:"right",duration:150,easing:"linear"}),jQuery(e).show({direction:"right",duration:150,easing:"linear"})}),(function(){var e=jQuery("#tools");jQuery(e).hide({direction:"right",duration:150,easing:"linear"}),jQuery("div.pf_container").addClass("full")}))})),jQuery("#gofolders").on("click",(function(e){e.preventDefault(),jQuery("#tools").hide({direction:"right",duration:150,easing:"linear"})})),jQuery("#gofolders").on("click",(function(e){pf.toggler(e,this,(function(){var e=jQuery("#feed-folders");jQuery("div.pf_container").removeClass("full"),jQuery(e).show({direction:"right",duration:150,easing:"linear"})}),(function(){var e=jQuery("#feed-folders");jQuery(e).hide({direction:"right",duration:150,easing:"linear"}),jQuery("div.pf_container").addClass("full")}))})),jQuery("#feed-folders .folder").on("click",(function(e){e.preventDefault();var t=jQuery(this).attr("href"),i=window.location.href;i=r(i=i.replace("#","&"),"folder"),i=r(i,"feed"),(i=r(i,"ready")).indexOf("?")>-1?i+="&folder="+t:i+="?folder="+t,window.location.href=i})),jQuery("#feed-folders .feed").on("click",(function(e){e.preventDefault();var t=jQuery(this).children("a").attr("href"),i=window.location.href;i=r(i=i.replace("#","&"),"folder"),i=r(i,"feed"),(i=r(i,"ready")).indexOf("?")>-1?i+="&feed="+t:i+="?feed="+t,window.location.href=i})),jQuery(".scroll-toggler").on("click",(function(e){e.preventDefault();var t="true";"gopaged"===jQuery(this).attr("id")&&(t="false"),jQuery.post(ajaxurl,{action:"pf_ajax_user_setting",pf_user_setting:"pf_user_scroll_switch",setting:t},(function(e){"1"!=html_entity_decode(jQuery(e).find("response_data").text())?alert((0,i.__)("PressForward has lost its connection to your server. Reload page and try again.","pressforward")):window.location.reload()}))})),jQuery("#deletefeedarchive").on("click",(function(e){e.preventDefault(),jQuery(".loading-top").show(),jQuery.post(ajaxurl,{action:"reset_feed"},(function(e){jQuery(".loading-top").hide(),jQuery("#errors").html(e)}))})),0!==jQuery(".list").length){var e=jQuery(".list article");jQuery.each(e,(function(){var e=jQuery(this).attr("id");jQuery("#"+e+" header .actions").appendTo("#"+e+" footer")}))}jQuery(".pf_container").on("click","#showMyNominations",(function(e){e.preventDefault(),window.open("?page=pf-all-content&by=nominated","_self")})),jQuery(".pf_container").on("click","#showMyHidden",(function(e){e.preventDefault(),window.open("?page=pf-all-content&reveal=no_hidden","_self")})),jQuery(".pf_container").on("click","#showUnread",(function(e){e.preventDefault(),window.open("?page=pf-all-content&reveal=unread","_self")})),jQuery(".pf_container.pf-all-content").on("click","#showDrafted",(function(e){e.preventDefault(),window.open("?page=pf-all-content&reveal=drafted","_self")})),jQuery(".pf_container").on("click","#showMyStarred",(function(e){e.preventDefault(),window.open("?page=pf-all-content&by=starred","_self")})),jQuery(".pf_container").on("click","#showNormal",(function(e){e.preventDefault(),window.open("?page=pf-all-content","_self")})),jQuery(".pf_container").on("click","#showNormalNominations",(function(e){e.preventDefault(),window.open("?page=pf-review","_self")})),jQuery(".pf_container").on("click","#date-range-button",(function(e){e.preventDefault(),jQuery("#date-range-options").toggleClass("show")})),jQuery(".pf_container").on("click",".date-range-submit",(function(e){e.preventDefault(),t(),document.getElementById("date-range-options").classList.remove("show");const i=jQuery("#date-range-start").val(),n=jQuery("#date-range-end").val(),s=new URLSearchParams(window.location.search).get("page");window.open("?page="+s+"&date-range-start="+i+"&date-range-end="+n,"_self")}));const t=()=>{const e=jQuery("#date-range-start").val(),t=jQuery("#date-range-end").val(),n=document.getElementById("date-range-button");if(n){const s=(e,t)=>e&&t?(0,i.sprintf)((0,i.__)("%1$s to %2$s","pressforward"),e,t):e?(0,i.sprintf)((0,i.__)("Newer than %1$s","pressforward"),e):t?(0,i.sprintf)((0,i.__)("Older than %1$s","pressforward"),t):(0,i.__)("All Dates","pressforward");n.querySelector(".date-range-text").textContent=s(e,t)}};t(),jQuery(".pf_container").on("click",".remove-nom-this-prompt",(function(e){e.preventDefault(),jQuery("article.nominate-this-preview").remove(),jQuery.post(ajaxurl,{action:"pf_ajax_user_setting",pf_user_setting:"have_you_seen_nominate_this",setting:"yes"},(function(e){})),jQuery(this).is("[href]")&&window.open("?page=pf-tools","_self")})),jQuery(".pfmodal").on("show.bs.modal",(function(e){n(jQuery(this).attr("id"))})),jQuery(".comment-modal").on("shown.bs.modal",(function(e){var t=jQuery(this).attr("id");document.body.style.overflow="hidden",jQuery("#"+t+".pfmodal").css({display:"block",position:"fixed",top:"32px",right:"0",bottom:"100%",left:"0",margin:"0",width:"100%",height:"calc(100% - 32px)",overflow:"hidden","z-index":"9999"})})),jQuery(".pfmodal").on("shown.bs.modal",(function(e){var t=jQuery(this),n=t.hasClass("comment-modal"),r=t.attr("id"),a=t.closest(".feed-item").attr("pf-item-post-id");jQuery.post(ajaxurl,{action:"pf_ajax_get_comments",id_for_comments:a},(function(e){n?jQuery("#"+r+".comment-modal .modal-body").html(e):jQuery("#"+r+" .modal-comments").html(e)})),setTimeout((function(){var e=t.find(".modal-body-row").height();t.find(".modal-body-row .modal-body").height(e)}),100),t.find(".main-text img").each((function(e,t){var i=t.dataset.hasOwnProperty("src")?t.dataset.src:"";i&&t.setAttribute("src",i)})),function(e){e=parseInt(e);var t=jQuery('article[tabindex="'+e+'"]'),n=(jQuery(t).attr("id"),e-1),r=e+1,a=jQuery('article[tabindex="'+n+'"]'),l=jQuery('article[tabindex="'+r+'"]'),c=t.children("header").children("h1").children("a").attr("href");if(a=o(n,a,0),l=o(r,l,1),0!=jQuery(a)&&jQuery(a).is("*")){var d=jQuery(a).children("header").children("h1").children("a").attr("href"),u=jQuery(a).children("header").children("h1").text(),h=jQuery(a).children("header").children("p.source_title").text(),f=jQuery(a).children("header").children("div.feed-item-info-box").children("span.item_authors").text(),p=jQuery(a).children("div.content").children("div.item_excerpt").text();p=s(p,20);var m=jQuery(a).children("footer").children("p.pubdate").text(),g='<h5 class="prev_title">'+(0,i.sprintf)((0,i.__)("Previous: %s","pressforward"),'<a href="'+d+'" role="button" class="modal-nav" data-dismiss="modal" data-toggle="modal" data-backdrop="false">'+u+"</a>")+"</h5>";
    22// translators: Link to previous item.
    33g+='<p class="prev_source_title">'+h+"</p>",g+='<p class="prev_author">'+f+"</p>",g+='<p class="prev_excerpt">'+p+"</p>",g+='<p class="prev_date">'+m+"</p>",jQuery(c+" div.modal-body-row div.modal-sidebar div.goPrev").html(g),jQuery(c+" div.mobile-goPrev").html('<i class="icon-arrow-left"></i> <a href="'+d+'" role="button" data-bs-dismiss="modal" class="mobile-modal-navlink modal-nav">'+u+"</a> ")}if(0!=jQuery(l)&&jQuery(l).is("*")){var _=jQuery(l).children("header").children("h1").children("a").attr("href"),v=jQuery(l).children("header").children("h1").text(),y=jQuery(l).children("header").children("p.source_title").text(),b=jQuery(l).children("header").children("div.feed-item-info-box").children("span.item_authors").text(),w=jQuery(l).children("div.content").children("div.item_excerpt").text();w=s(w,20);var j=jQuery(l).children("footer").children("p.pubdate").text(),C='<h5 class="next_title">'+(0,i.sprintf)((0,i.__)("Next: %s","pressforward"),'<a href="'+_+'" role="button" class="modal-nav" data-dismiss="modal" data-toggle="modal" data-backdrop="false">'+v+"</a>")+"</h5>";
  • pressforward/trunk/languages/pressforward.pot

    r3330426 r3330437  
    1010"Content-Type: text/plain; charset=UTF-8\n"
    1111"Content-Transfer-Encoding: 8bit\n"
    12 "POT-Creation-Date: 2025-07-18T14:27:11-05:00\n"
     12"POT-Creation-Date: 2025-07-18T14:45:21-05:00\n"
    1313"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
    1414"X-Generator: WP-CLI 2.12.0\n"
     
    12591259
    12601260#: Core/Admin/PFTemplater.php:427
    1261 #: assets/src/reader/reader.js:377
     1261#: assets/src/reader/reader.js:384
    12621262#: build/reader.js:1
    12631263msgid "All Dates"
     
    35873587msgstr ""
    35883588
    3589 #: assets/src/reader/reader.js:277
     3589#: assets/src/reader/reader.js:284
    35903590#: build/reader.js:1
    35913591msgid "PressForward has lost its connection to your server. Reload page and try again."
     
    35933593
    35943594#. translators: %1$s is the start date, %2$s is the end date
    3595 #: assets/src/reader/reader.js:364
     3595#: assets/src/reader/reader.js:371
    35963596#: build/reader.js:1
    35973597#, js-format
     
    36003600
    36013601#. translators: %1$s is the start date
    3602 #: assets/src/reader/reader.js:369
     3602#: assets/src/reader/reader.js:376
    36033603#: build/reader.js:1
    36043604#, js-format
     
    36073607
    36083608#. translators: %1$s is the end date
    3609 #: assets/src/reader/reader.js:374
     3609#: assets/src/reader/reader.js:381
    36103610#: build/reader.js:1
    36113611#, js-format
Note: See TracChangeset for help on using the changeset viewer.