From 37f833188953d6291e29a3dda4484a9a856b62c0 Mon Sep 17 00:00:00 2001 From: takanotume24 Date: Tue, 5 Nov 2024 09:24:20 +0000 Subject: [PATCH] deploy: c5f984d693c35fc31b0852a3a5b1c2d053fdaf5c --- assets/{index-G-17kw5x.js => index-CG7zlG9T.js} | 6 +++--- index.html | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) rename assets/{index-G-17kw5x.js => index-CG7zlG9T.js} (51%) diff --git a/assets/index-G-17kw5x.js b/assets/index-CG7zlG9T.js similarity index 51% rename from assets/index-G-17kw5x.js rename to assets/index-CG7zlG9T.js index 89f4e84..defd4a1 100644 --- a/assets/index-G-17kw5x.js +++ b/assets/index-CG7zlG9T.js @@ -1,11 +1,11 @@ -var ps=Object.defineProperty;var _s=(n,t,e)=>t in n?ps(n,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):n[t]=e;var Ce=(n,t,e)=>_s(n,typeof t!="symbol"?t+"":t,e);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))i(s);new MutationObserver(s=>{for(const r of s)if(r.type==="childList")for(const o of r.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&i(o)}).observe(document,{childList:!0,subtree:!0});function e(s){const r={};return s.integrity&&(r.integrity=s.integrity),s.referrerPolicy&&(r.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?r.credentials="include":s.crossOrigin==="anonymous"?r.credentials="omit":r.credentials="same-origin",r}function i(s){if(s.ep)return;s.ep=!0;const r=e(s);fetch(s.href,r)}})();function gs(n,t){return t.push(n),t}function ms(n){let t=0;for(let e of n)t+=e.length;return t}function Es(n,t){let e=[],i=[];for(let s of n)ms(i)+s.length>t&&i.length!=0&&(gs(i,e),i=[]),i.push(s);return i.length>0&&e.push(i),e}var $=[];for(var Ne=0;Ne<256;++Ne)$.push((Ne+256).toString(16).slice(1));function vs(n,t=0){return($[n[t+0]]+$[n[t+1]]+$[n[t+2]]+$[n[t+3]]+"-"+$[n[t+4]]+$[n[t+5]]+"-"+$[n[t+6]]+$[n[t+7]]+"-"+$[n[t+8]]+$[n[t+9]]+"-"+$[n[t+10]]+$[n[t+11]]+$[n[t+12]]+$[n[t+13]]+$[n[t+14]]+$[n[t+15]]).toLowerCase()}var te,bs=new Uint8Array(16);function As(){if(!te&&(te=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!te))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return te(bs)}var Ts=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto);const On={randomUUID:Ts};function ys(n,t,e){if(On.randomUUID&&!t&&!n)return On.randomUUID();n=n||{};var i=n.random||(n.rng||As)();return i[6]=i[6]&15|64,i[8]=i[8]&63|128,vs(i)}function ws(n,t){if(n==="")return[[""]];const e=ys();n=n.replace(/\. /g,e);const i=[[/-\n/g,""],[/\n/g," "],[/- /g,""],[RegExp(String.raw`Fig${e}`,"g"),"Fig. "],[RegExp(String.raw`Figs${e}`,"g"),"Figs. "],[RegExp(String.raw`Table${e}`,"g"),"Table. "],[RegExp(String.raw`No${e}`,"g"),"No. "],[RegExp(String.raw`Prof${e}`,"g"),"Prof. "],[RegExp(String.raw`Eq${e}`,"g"),"Eq. "],[RegExp(String.raw`eq${e}`,"g"),"eq. "],[RegExp(String.raw`et al${e}`,"g"),"et al. "],[RegExp(String.raw`Dr${e}`,"g"),"Dr. "],[RegExp(String.raw`e\.g${e}`,"g"),"e.g. "],[RegExp(String.raw`i\.e${e}`,"g"),"i.e. "],[RegExp(String.raw`etc${e}`,"g"),"etc. "],[RegExp(String.raw`Sec${e}`,"g"),"Sec. "],[RegExp(String.raw`Sect${e}`,"g"),"Sect. "],[RegExp(String.raw`Section${e}`,"g"),"Section. "],[RegExp(String.raw`vs${e}`,"g"),"vs. "],[RegExp(String.raw`cf${e}`,"g"),"cf. "],[RegExp(String.raw`2\.4 GHz`,"g"),"2.4GHz"],[RegExp(String.raw`I${e}`,"g"),"I. "],[RegExp(String.raw`II${e}`,"g"),"II. "],[RegExp(String.raw`III${e}`,"g"),"III. "],[RegExp(String.raw`IV${e}`,"g"),"IV. "],[RegExp(String.raw`V${e}`,"g"),"V. "],[RegExp(String.raw`VI${e}`,"g"),"VI. "],[RegExp(String.raw`VII${e}`,"g"),"VII. "],[RegExp(String.raw`VIII${e}`,"g"),"VIII. "],[RegExp(String.raw`IX${e}`,"g"),"IX. "],[RegExp(String.raw`X${e}`,"g"),"X. "],[RegExp(String.raw`Jan${e}`,"g"),"Jan. "],[RegExp(String.raw`Feb${e}`,"g"),"Feb. "],[RegExp(String.raw`Mar${e}`,"g"),"Mar. "],[RegExp(String.raw`Apr${e}`,"g"),"Apr. "],[RegExp(String.raw`May${e}`,"g"),"May. "],[RegExp(String.raw`Jun${e}`,"g"),"Jun. "],[RegExp(String.raw`Jul${e}`,"g"),"Jul. "],[RegExp(String.raw`Aug${e}`,"g"),"Aug. "],[RegExp(String.raw`Sep${e}`,"g"),"Sep. "],[RegExp(String.raw`Oct${e}`,"g"),"Oct. "],[RegExp(String.raw`Nov${e}`,"g"),"Nov. "],[RegExp(String.raw`Dec${e}`,"g"),"Dec. "],[/\.\d+,\d+(?= [A-Z])/g,o=>"["+o+"]. "],[/\.\d+-\d+(?= [A-Z])/g,o=>"["+o+"]. "]];let s=n;i.forEach(([o,a])=>{s=s.replace(o,l=>typeof a=="function"?a(l):a)});let r=s.split(RegExp(`${e}`,"s"));return r=r.map(o=>o.endsWith(".")?o:o+"."),Es(r,t)}function Os(n){return n.map((t,e)=>`
  • +var fs=Object.defineProperty;var ps=(n,t,e)=>t in n?fs(n,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):n[t]=e;var Se=(n,t,e)=>ps(n,typeof t!="symbol"?t+"":t,e);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))i(s);new MutationObserver(s=>{for(const r of s)if(r.type==="childList")for(const o of r.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&i(o)}).observe(document,{childList:!0,subtree:!0});function e(s){const r={};return s.integrity&&(r.integrity=s.integrity),s.referrerPolicy&&(r.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?r.credentials="include":s.crossOrigin==="anonymous"?r.credentials="omit":r.credentials="same-origin",r}function i(s){if(s.ep)return;s.ep=!0;const r=e(s);fetch(s.href,r)}})();function _s(n,t){return t.push(n),t}function gs(n){let t=0;for(let e of n)t+=e.length;return t}function ms(n,t){let e=[],i=[];for(let s of n)gs(i)+s.length>t&&i.length!=0&&(_s(i,e),i=[]),i.push(s);return i.length>0&&e.push(i),e}const $=[];for(let n=0;n<256;++n)$.push((n+256).toString(16).slice(1));function Es(n,t=0){return($[n[t+0]]+$[n[t+1]]+$[n[t+2]]+$[n[t+3]]+"-"+$[n[t+4]]+$[n[t+5]]+"-"+$[n[t+6]]+$[n[t+7]]+"-"+$[n[t+8]]+$[n[t+9]]+"-"+$[n[t+10]]+$[n[t+11]]+$[n[t+12]]+$[n[t+13]]+$[n[t+14]]+$[n[t+15]]).toLowerCase()}let Ce;const vs=new Uint8Array(16);function bs(){if(!Ce){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");Ce=crypto.getRandomValues.bind(crypto)}return Ce(vs)}const As=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),wn={randomUUID:As};function Ts(n,t,e){if(wn.randomUUID&&!t&&!n)return wn.randomUUID();n=n||{};const i=n.random||(n.rng||bs)();return i[6]=i[6]&15|64,i[8]=i[8]&63|128,Es(i)}function ys(n,t){if(n==="")return[[""]];const e=Ts();n=n.replace(/\. /g,e);const i=[[/-\n/g,""],[/\n/g," "],[/- /g,""],[RegExp(String.raw`Fig${e}`,"g"),"Fig. "],[RegExp(String.raw`Figs${e}`,"g"),"Figs. "],[RegExp(String.raw`Table${e}`,"g"),"Table. "],[RegExp(String.raw`No${e}`,"g"),"No. "],[RegExp(String.raw`Prof${e}`,"g"),"Prof. "],[RegExp(String.raw`Eq${e}`,"g"),"Eq. "],[RegExp(String.raw`eq${e}`,"g"),"eq. "],[RegExp(String.raw`et al${e}`,"g"),"et al. "],[RegExp(String.raw`Dr${e}`,"g"),"Dr. "],[RegExp(String.raw`e\.g${e}`,"g"),"e.g. "],[RegExp(String.raw`i\.e${e}`,"g"),"i.e. "],[RegExp(String.raw`etc${e}`,"g"),"etc. "],[RegExp(String.raw`Sec${e}`,"g"),"Sec. "],[RegExp(String.raw`Sect${e}`,"g"),"Sect. "],[RegExp(String.raw`Section${e}`,"g"),"Section. "],[RegExp(String.raw`vs${e}`,"g"),"vs. "],[RegExp(String.raw`cf${e}`,"g"),"cf. "],[RegExp(String.raw`2\.4 GHz`,"g"),"2.4GHz"],[RegExp(String.raw`I${e}`,"g"),"I. "],[RegExp(String.raw`II${e}`,"g"),"II. "],[RegExp(String.raw`III${e}`,"g"),"III. "],[RegExp(String.raw`IV${e}`,"g"),"IV. "],[RegExp(String.raw`V${e}`,"g"),"V. "],[RegExp(String.raw`VI${e}`,"g"),"VI. "],[RegExp(String.raw`VII${e}`,"g"),"VII. "],[RegExp(String.raw`VIII${e}`,"g"),"VIII. "],[RegExp(String.raw`IX${e}`,"g"),"IX. "],[RegExp(String.raw`X${e}`,"g"),"X. "],[RegExp(String.raw`Jan${e}`,"g"),"Jan. "],[RegExp(String.raw`Feb${e}`,"g"),"Feb. "],[RegExp(String.raw`Mar${e}`,"g"),"Mar. "],[RegExp(String.raw`Apr${e}`,"g"),"Apr. "],[RegExp(String.raw`May${e}`,"g"),"May. "],[RegExp(String.raw`Jun${e}`,"g"),"Jun. "],[RegExp(String.raw`Jul${e}`,"g"),"Jul. "],[RegExp(String.raw`Aug${e}`,"g"),"Aug. "],[RegExp(String.raw`Sep${e}`,"g"),"Sep. "],[RegExp(String.raw`Oct${e}`,"g"),"Oct. "],[RegExp(String.raw`Nov${e}`,"g"),"Nov. "],[RegExp(String.raw`Dec${e}`,"g"),"Dec. "],[/\.\d+,\d+(?= [A-Z])/g,o=>"["+o+"]. "],[/\.\d+-\d+(?= [A-Z])/g,o=>"["+o+"]. "]];let s=n;i.forEach(([o,a])=>{s=s.replace(o,l=>typeof a=="function"?a(l):a)});let r=s.split(RegExp(`${e}`,"s"));return r=r.map(o=>o.endsWith(".")?o:o+"."),ms(r,t)}function ws(n){return n.map((t,e)=>`
  • -
  • `).join("")}class Ss{constructor(){Ce(this,"charLimit",4500);Ce(this,"handleInput",()=>{const t=document.getElementById("original"),e=document.getElementById("char_limit");if(!t||!e)return;this.charLimit=Math.max(Number(e.value),1e3),e.value=this.charLimit.toString();const i=t.value;if(!i)return;const s=ws(i,this.charLimit),r=Os(s);this.displayConvertedText(r)});this.initializeEventListeners()}initializeEventListeners(){window.onload=()=>{const t=document.getElementById("original"),e=document.getElementById("char_limit");t==null||t.addEventListener("input",this.handleInput),e==null||e.addEventListener("change",this.handleInput)}}displayConvertedText(t){const e=document.getElementById("converted");e&&(e.innerHTML=t)}}var I="top",M="bottom",k="right",x="left",_e="auto",xt=[I,M,k,x],_t="start",St="end",ci="clippingParents",Qe="viewport",Tt="popper",li="reference",Ke=xt.reduce(function(n,t){return n.concat([t+"-"+_t,t+"-"+St])},[]),Je=[].concat(xt,[_e]).reduce(function(n,t){return n.concat([t,t+"-"+_t,t+"-"+St])},[]),ui="beforeRead",di="read",hi="afterRead",fi="beforeMain",pi="main",_i="afterMain",gi="beforeWrite",mi="write",Ei="afterWrite",vi=[ui,di,hi,fi,pi,_i,gi,mi,Ei];function G(n){return n?(n.nodeName||"").toLowerCase():null}function V(n){if(n==null)return window;if(n.toString()!=="[object Window]"){var t=n.ownerDocument;return t&&t.defaultView||window}return n}function gt(n){var t=V(n).Element;return n instanceof t||n instanceof Element}function H(n){var t=V(n).HTMLElement;return n instanceof t||n instanceof HTMLElement}function Ze(n){if(typeof ShadowRoot>"u")return!1;var t=V(n).ShadowRoot;return n instanceof t||n instanceof ShadowRoot}function Cs(n){var t=n.state;Object.keys(t.elements).forEach(function(e){var i=t.styles[e]||{},s=t.attributes[e]||{},r=t.elements[e];!H(r)||!G(r)||(Object.assign(r.style,i),Object.keys(s).forEach(function(o){var a=s[o];a===!1?r.removeAttribute(o):r.setAttribute(o,a===!0?"":a)}))})}function Ns(n){var t=n.state,e={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,e.popper),t.styles=e,t.elements.arrow&&Object.assign(t.elements.arrow.style,e.arrow),function(){Object.keys(t.elements).forEach(function(i){var s=t.elements[i],r=t.attributes[i]||{},o=Object.keys(t.styles.hasOwnProperty(i)?t.styles[i]:e[i]),a=o.reduce(function(l,d){return l[d]="",l},{});!H(s)||!G(s)||(Object.assign(s.style,a),Object.keys(r).forEach(function(l){s.removeAttribute(l)}))})}}const tn={name:"applyStyles",enabled:!0,phase:"write",fn:Cs,effect:Ns,requires:["computeStyles"]};function U(n){return n.split("-")[0]}var pt=Math.max,de=Math.min,Ct=Math.round;function Ye(){var n=navigator.userAgentData;return n!=null&&n.brands&&Array.isArray(n.brands)?n.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function bi(){return!/^((?!chrome|android).)*safari/i.test(Ye())}function Nt(n,t,e){t===void 0&&(t=!1),e===void 0&&(e=!1);var i=n.getBoundingClientRect(),s=1,r=1;t&&H(n)&&(s=n.offsetWidth>0&&Ct(i.width)/n.offsetWidth||1,r=n.offsetHeight>0&&Ct(i.height)/n.offsetHeight||1);var o=gt(n)?V(n):window,a=o.visualViewport,l=!bi()&&e,d=(i.left+(l&&a?a.offsetLeft:0))/s,u=(i.top+(l&&a?a.offsetTop:0))/r,p=i.width/s,_=i.height/r;return{width:p,height:_,top:u,right:d+p,bottom:u+_,left:d,x:d,y:u}}function en(n){var t=Nt(n),e=n.offsetWidth,i=n.offsetHeight;return Math.abs(t.width-e)<=1&&(e=t.width),Math.abs(t.height-i)<=1&&(i=t.height),{x:n.offsetLeft,y:n.offsetTop,width:e,height:i}}function Ai(n,t){var e=t.getRootNode&&t.getRootNode();if(n.contains(t))return!0;if(e&&Ze(e)){var i=t;do{if(i&&n.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function Q(n){return V(n).getComputedStyle(n)}function $s(n){return["table","td","th"].indexOf(G(n))>=0}function st(n){return((gt(n)?n.ownerDocument:n.document)||window.document).documentElement}function ge(n){return G(n)==="html"?n:n.assignedSlot||n.parentNode||(Ze(n)?n.host:null)||st(n)}function Sn(n){return!H(n)||Q(n).position==="fixed"?null:n.offsetParent}function Ds(n){var t=/firefox/i.test(Ye()),e=/Trident/i.test(Ye());if(e&&H(n)){var i=Q(n);if(i.position==="fixed")return null}var s=ge(n);for(Ze(s)&&(s=s.host);H(s)&&["html","body"].indexOf(G(s))<0;){var r=Q(s);if(r.transform!=="none"||r.perspective!=="none"||r.contain==="paint"||["transform","perspective"].indexOf(r.willChange)!==-1||t&&r.willChange==="filter"||t&&r.filter&&r.filter!=="none")return s;s=s.parentNode}return null}function Kt(n){for(var t=V(n),e=Sn(n);e&&$s(e)&&Q(e).position==="static";)e=Sn(e);return e&&(G(e)==="html"||G(e)==="body"&&Q(e).position==="static")?t:e||Ds(n)||t}function nn(n){return["top","bottom"].indexOf(n)>=0?"x":"y"}function Bt(n,t,e){return pt(n,de(t,e))}function Ls(n,t,e){var i=Bt(n,t,e);return i>e?e:i}function Ti(){return{top:0,right:0,bottom:0,left:0}}function yi(n){return Object.assign({},Ti(),n)}function wi(n,t){return t.reduce(function(e,i){return e[i]=n,e},{})}var Is=function(t,e){return t=typeof t=="function"?t(Object.assign({},e.rects,{placement:e.placement})):t,yi(typeof t!="number"?t:wi(t,xt))};function xs(n){var t,e=n.state,i=n.name,s=n.options,r=e.elements.arrow,o=e.modifiersData.popperOffsets,a=U(e.placement),l=nn(a),d=[x,k].indexOf(a)>=0,u=d?"height":"width";if(!(!r||!o)){var p=Is(s.padding,e),_=en(r),f=l==="y"?I:x,A=l==="y"?M:k,g=e.rects.reference[u]+e.rects.reference[l]-o[l]-e.rects.popper[u],E=o[l]-e.rects.reference[l],T=Kt(r),w=T?l==="y"?T.clientHeight||0:T.clientWidth||0:0,O=g/2-E/2,m=p[f],v=w-_[u]-p[A],b=w/2-_[u]/2+O,y=Bt(m,b,v),N=l;e.modifiersData[i]=(t={},t[N]=y,t.centerOffset=y-b,t)}}function Rs(n){var t=n.state,e=n.options,i=e.element,s=i===void 0?"[data-popper-arrow]":i;s!=null&&(typeof s=="string"&&(s=t.elements.popper.querySelector(s),!s)||Ai(t.elements.popper,s)&&(t.elements.arrow=s))}const Oi={name:"arrow",enabled:!0,phase:"main",fn:xs,effect:Rs,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function $t(n){return n.split("-")[1]}var Ps={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Ms(n,t){var e=n.x,i=n.y,s=t.devicePixelRatio||1;return{x:Ct(e*s)/s||0,y:Ct(i*s)/s||0}}function Cn(n){var t,e=n.popper,i=n.popperRect,s=n.placement,r=n.variation,o=n.offsets,a=n.position,l=n.gpuAcceleration,d=n.adaptive,u=n.roundOffsets,p=n.isFixed,_=o.x,f=_===void 0?0:_,A=o.y,g=A===void 0?0:A,E=typeof u=="function"?u({x:f,y:g}):{x:f,y:g};f=E.x,g=E.y;var T=o.hasOwnProperty("x"),w=o.hasOwnProperty("y"),O=x,m=I,v=window;if(d){var b=Kt(e),y="clientHeight",N="clientWidth";if(b===V(e)&&(b=st(e),Q(b).position!=="static"&&a==="absolute"&&(y="scrollHeight",N="scrollWidth")),b=b,s===I||(s===x||s===k)&&r===St){m=M;var C=p&&b===v&&v.visualViewport?v.visualViewport.height:b[y];g-=C-i.height,g*=l?1:-1}if(s===x||(s===I||s===M)&&r===St){O=k;var S=p&&b===v&&v.visualViewport?v.visualViewport.width:b[N];f-=S-i.width,f*=l?1:-1}}var D=Object.assign({position:a},d&&Ps),j=u===!0?Ms({x:f,y:g},V(e)):{x:f,y:g};if(f=j.x,g=j.y,l){var L;return Object.assign({},D,(L={},L[m]=w?"0":"",L[O]=T?"0":"",L.transform=(v.devicePixelRatio||1)<=1?"translate("+f+"px, "+g+"px)":"translate3d("+f+"px, "+g+"px, 0)",L))}return Object.assign({},D,(t={},t[m]=w?g+"px":"",t[O]=T?f+"px":"",t.transform="",t))}function ks(n){var t=n.state,e=n.options,i=e.gpuAcceleration,s=i===void 0?!0:i,r=e.adaptive,o=r===void 0?!0:r,a=e.roundOffsets,l=a===void 0?!0:a,d={placement:U(t.placement),variation:$t(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:s,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,Cn(Object.assign({},d,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:o,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Cn(Object.assign({},d,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const sn={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:ks,data:{}};var ee={passive:!0};function Vs(n){var t=n.state,e=n.instance,i=n.options,s=i.scroll,r=s===void 0?!0:s,o=i.resize,a=o===void 0?!0:o,l=V(t.elements.popper),d=[].concat(t.scrollParents.reference,t.scrollParents.popper);return r&&d.forEach(function(u){u.addEventListener("scroll",e.update,ee)}),a&&l.addEventListener("resize",e.update,ee),function(){r&&d.forEach(function(u){u.removeEventListener("scroll",e.update,ee)}),a&&l.removeEventListener("resize",e.update,ee)}}const rn={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Vs,data:{}};var Hs={left:"right",right:"left",bottom:"top",top:"bottom"};function ce(n){return n.replace(/left|right|bottom|top/g,function(t){return Hs[t]})}var Ws={start:"end",end:"start"};function Nn(n){return n.replace(/start|end/g,function(t){return Ws[t]})}function on(n){var t=V(n),e=t.pageXOffset,i=t.pageYOffset;return{scrollLeft:e,scrollTop:i}}function an(n){return Nt(st(n)).left+on(n).scrollLeft}function Bs(n,t){var e=V(n),i=st(n),s=e.visualViewport,r=i.clientWidth,o=i.clientHeight,a=0,l=0;if(s){r=s.width,o=s.height;var d=bi();(d||!d&&t==="fixed")&&(a=s.offsetLeft,l=s.offsetTop)}return{width:r,height:o,x:a+an(n),y:l}}function Fs(n){var t,e=st(n),i=on(n),s=(t=n.ownerDocument)==null?void 0:t.body,r=pt(e.scrollWidth,e.clientWidth,s?s.scrollWidth:0,s?s.clientWidth:0),o=pt(e.scrollHeight,e.clientHeight,s?s.scrollHeight:0,s?s.clientHeight:0),a=-i.scrollLeft+an(n),l=-i.scrollTop;return Q(s||e).direction==="rtl"&&(a+=pt(e.clientWidth,s?s.clientWidth:0)-r),{width:r,height:o,x:a,y:l}}function cn(n){var t=Q(n),e=t.overflow,i=t.overflowX,s=t.overflowY;return/auto|scroll|overlay|hidden/.test(e+s+i)}function Si(n){return["html","body","#document"].indexOf(G(n))>=0?n.ownerDocument.body:H(n)&&cn(n)?n:Si(ge(n))}function Ft(n,t){var e;t===void 0&&(t=[]);var i=Si(n),s=i===((e=n.ownerDocument)==null?void 0:e.body),r=V(i),o=s?[r].concat(r.visualViewport||[],cn(i)?i:[]):i,a=t.concat(o);return s?a:a.concat(Ft(ge(o)))}function Ue(n){return Object.assign({},n,{left:n.x,top:n.y,right:n.x+n.width,bottom:n.y+n.height})}function js(n,t){var e=Nt(n,!1,t==="fixed");return e.top=e.top+n.clientTop,e.left=e.left+n.clientLeft,e.bottom=e.top+n.clientHeight,e.right=e.left+n.clientWidth,e.width=n.clientWidth,e.height=n.clientHeight,e.x=e.left,e.y=e.top,e}function $n(n,t,e){return t===Qe?Ue(Bs(n,e)):gt(t)?js(t,e):Ue(Fs(st(n)))}function Ks(n){var t=Ft(ge(n)),e=["absolute","fixed"].indexOf(Q(n).position)>=0,i=e&&H(n)?Kt(n):n;return gt(i)?t.filter(function(s){return gt(s)&&Ai(s,i)&&G(s)!=="body"}):[]}function Ys(n,t,e,i){var s=t==="clippingParents"?Ks(n):[].concat(t),r=[].concat(s,[e]),o=r[0],a=r.reduce(function(l,d){var u=$n(n,d,i);return l.top=pt(u.top,l.top),l.right=de(u.right,l.right),l.bottom=de(u.bottom,l.bottom),l.left=pt(u.left,l.left),l},$n(n,o,i));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function Ci(n){var t=n.reference,e=n.element,i=n.placement,s=i?U(i):null,r=i?$t(i):null,o=t.x+t.width/2-e.width/2,a=t.y+t.height/2-e.height/2,l;switch(s){case I:l={x:o,y:t.y-e.height};break;case M:l={x:o,y:t.y+t.height};break;case k:l={x:t.x+t.width,y:a};break;case x:l={x:t.x-e.width,y:a};break;default:l={x:t.x,y:t.y}}var d=s?nn(s):null;if(d!=null){var u=d==="y"?"height":"width";switch(r){case _t:l[d]=l[d]-(t[u]/2-e[u]/2);break;case St:l[d]=l[d]+(t[u]/2-e[u]/2);break}}return l}function Dt(n,t){t===void 0&&(t={});var e=t,i=e.placement,s=i===void 0?n.placement:i,r=e.strategy,o=r===void 0?n.strategy:r,a=e.boundary,l=a===void 0?ci:a,d=e.rootBoundary,u=d===void 0?Qe:d,p=e.elementContext,_=p===void 0?Tt:p,f=e.altBoundary,A=f===void 0?!1:f,g=e.padding,E=g===void 0?0:g,T=yi(typeof E!="number"?E:wi(E,xt)),w=_===Tt?li:Tt,O=n.rects.popper,m=n.elements[A?w:_],v=Ys(gt(m)?m:m.contextElement||st(n.elements.popper),l,u,o),b=Nt(n.elements.reference),y=Ci({reference:b,element:O,strategy:"absolute",placement:s}),N=Ue(Object.assign({},O,y)),C=_===Tt?N:b,S={top:v.top-C.top+T.top,bottom:C.bottom-v.bottom+T.bottom,left:v.left-C.left+T.left,right:C.right-v.right+T.right},D=n.modifiersData.offset;if(_===Tt&&D){var j=D[s];Object.keys(S).forEach(function(L){var at=[k,M].indexOf(L)>=0?1:-1,ct=[I,M].indexOf(L)>=0?"y":"x";S[L]+=j[ct]*at})}return S}function Us(n,t){t===void 0&&(t={});var e=t,i=e.placement,s=e.boundary,r=e.rootBoundary,o=e.padding,a=e.flipVariations,l=e.allowedAutoPlacements,d=l===void 0?Je:l,u=$t(i),p=u?a?Ke:Ke.filter(function(A){return $t(A)===u}):xt,_=p.filter(function(A){return d.indexOf(A)>=0});_.length===0&&(_=p);var f=_.reduce(function(A,g){return A[g]=Dt(n,{placement:g,boundary:s,rootBoundary:r,padding:o})[U(g)],A},{});return Object.keys(f).sort(function(A,g){return f[A]-f[g]})}function zs(n){if(U(n)===_e)return[];var t=ce(n);return[Nn(n),t,Nn(t)]}function Gs(n){var t=n.state,e=n.options,i=n.name;if(!t.modifiersData[i]._skip){for(var s=e.mainAxis,r=s===void 0?!0:s,o=e.altAxis,a=o===void 0?!0:o,l=e.fallbackPlacements,d=e.padding,u=e.boundary,p=e.rootBoundary,_=e.altBoundary,f=e.flipVariations,A=f===void 0?!0:f,g=e.allowedAutoPlacements,E=t.options.placement,T=U(E),w=T===E,O=l||(w||!A?[ce(E)]:zs(E)),m=[E].concat(O).reduce(function(vt,Z){return vt.concat(U(Z)===_e?Us(t,{placement:Z,boundary:u,rootBoundary:p,padding:d,flipVariations:A,allowedAutoPlacements:g}):Z)},[]),v=t.rects.reference,b=t.rects.popper,y=new Map,N=!0,C=m[0],S=0;S=0,ct=at?"width":"height",P=Dt(t,{placement:D,boundary:u,rootBoundary:p,altBoundary:_,padding:d}),K=at?L?k:x:L?M:I;v[ct]>b[ct]&&(K=ce(K));var qt=ce(K),lt=[];if(r&<.push(P[j]<=0),a&<.push(P[K]<=0,P[qt]<=0),lt.every(function(vt){return vt})){C=D,N=!1;break}y.set(D,lt)}if(N)for(var Xt=A?3:1,ye=function(Z){var Vt=m.find(function(Jt){var ut=y.get(Jt);if(ut)return ut.slice(0,Z).every(function(we){return we})});if(Vt)return C=Vt,"break"},kt=Xt;kt>0;kt--){var Qt=ye(kt);if(Qt==="break")break}t.placement!==C&&(t.modifiersData[i]._skip=!0,t.placement=C,t.reset=!0)}}const Ni={name:"flip",enabled:!0,phase:"main",fn:Gs,requiresIfExists:["offset"],data:{_skip:!1}};function Dn(n,t,e){return e===void 0&&(e={x:0,y:0}),{top:n.top-t.height-e.y,right:n.right-t.width+e.x,bottom:n.bottom-t.height+e.y,left:n.left-t.width-e.x}}function Ln(n){return[I,k,M,x].some(function(t){return n[t]>=0})}function qs(n){var t=n.state,e=n.name,i=t.rects.reference,s=t.rects.popper,r=t.modifiersData.preventOverflow,o=Dt(t,{elementContext:"reference"}),a=Dt(t,{altBoundary:!0}),l=Dn(o,i),d=Dn(a,s,r),u=Ln(l),p=Ln(d);t.modifiersData[e]={referenceClippingOffsets:l,popperEscapeOffsets:d,isReferenceHidden:u,hasPopperEscaped:p},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":p})}const $i={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:qs};function Xs(n,t,e){var i=U(n),s=[x,I].indexOf(i)>=0?-1:1,r=typeof e=="function"?e(Object.assign({},t,{placement:n})):e,o=r[0],a=r[1];return o=o||0,a=(a||0)*s,[x,k].indexOf(i)>=0?{x:a,y:o}:{x:o,y:a}}function Qs(n){var t=n.state,e=n.options,i=n.name,s=e.offset,r=s===void 0?[0,0]:s,o=Je.reduce(function(u,p){return u[p]=Xs(p,t.rects,r),u},{}),a=o[t.placement],l=a.x,d=a.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=d),t.modifiersData[i]=o}const Di={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Qs};function Js(n){var t=n.state,e=n.name;t.modifiersData[e]=Ci({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const ln={name:"popperOffsets",enabled:!0,phase:"read",fn:Js,data:{}};function Zs(n){return n==="x"?"y":"x"}function tr(n){var t=n.state,e=n.options,i=n.name,s=e.mainAxis,r=s===void 0?!0:s,o=e.altAxis,a=o===void 0?!1:o,l=e.boundary,d=e.rootBoundary,u=e.altBoundary,p=e.padding,_=e.tether,f=_===void 0?!0:_,A=e.tetherOffset,g=A===void 0?0:A,E=Dt(t,{boundary:l,rootBoundary:d,padding:p,altBoundary:u}),T=U(t.placement),w=$t(t.placement),O=!w,m=nn(T),v=Zs(m),b=t.modifiersData.popperOffsets,y=t.rects.reference,N=t.rects.popper,C=typeof g=="function"?g(Object.assign({},t.rects,{placement:t.placement})):g,S=typeof C=="number"?{mainAxis:C,altAxis:C}:Object.assign({mainAxis:0,altAxis:0},C),D=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,j={x:0,y:0};if(b){if(r){var L,at=m==="y"?I:x,ct=m==="y"?M:k,P=m==="y"?"height":"width",K=b[m],qt=K+E[at],lt=K-E[ct],Xt=f?-N[P]/2:0,ye=w===_t?y[P]:N[P],kt=w===_t?-N[P]:-y[P],Qt=t.elements.arrow,vt=f&&Qt?en(Qt):{width:0,height:0},Z=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Ti(),Vt=Z[at],Jt=Z[ct],ut=Bt(0,y[P],vt[P]),we=O?y[P]/2-Xt-ut-Vt-S.mainAxis:ye-ut-Vt-S.mainAxis,cs=O?-y[P]/2+Xt+ut+Jt+S.mainAxis:kt+ut+Jt+S.mainAxis,Oe=t.elements.arrow&&Kt(t.elements.arrow),ls=Oe?m==="y"?Oe.clientTop||0:Oe.clientLeft||0:0,gn=(L=D==null?void 0:D[m])!=null?L:0,us=K+we-gn-ls,ds=K+cs-gn,mn=Bt(f?de(qt,us):qt,K,f?pt(lt,ds):lt);b[m]=mn,j[m]=mn-K}if(a){var En,hs=m==="x"?I:x,fs=m==="x"?M:k,dt=b[v],Zt=v==="y"?"height":"width",vn=dt+E[hs],bn=dt-E[fs],Se=[I,x].indexOf(T)!==-1,An=(En=D==null?void 0:D[v])!=null?En:0,Tn=Se?vn:dt-y[Zt]-N[Zt]-An+S.altAxis,yn=Se?dt+y[Zt]+N[Zt]-An-S.altAxis:bn,wn=f&&Se?Ls(Tn,dt,yn):Bt(f?Tn:vn,dt,f?yn:bn);b[v]=wn,j[v]=wn-dt}t.modifiersData[i]=j}}const Li={name:"preventOverflow",enabled:!0,phase:"main",fn:tr,requiresIfExists:["offset"]};function er(n){return{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop}}function nr(n){return n===V(n)||!H(n)?on(n):er(n)}function ir(n){var t=n.getBoundingClientRect(),e=Ct(t.width)/n.offsetWidth||1,i=Ct(t.height)/n.offsetHeight||1;return e!==1||i!==1}function sr(n,t,e){e===void 0&&(e=!1);var i=H(t),s=H(t)&&ir(t),r=st(t),o=Nt(n,s,e),a={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(i||!i&&!e)&&((G(t)!=="body"||cn(r))&&(a=nr(t)),H(t)?(l=Nt(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):r&&(l.x=an(r))),{x:o.left+a.scrollLeft-l.x,y:o.top+a.scrollTop-l.y,width:o.width,height:o.height}}function rr(n){var t=new Map,e=new Set,i=[];n.forEach(function(r){t.set(r.name,r)});function s(r){e.add(r.name);var o=[].concat(r.requires||[],r.requiresIfExists||[]);o.forEach(function(a){if(!e.has(a)){var l=t.get(a);l&&s(l)}}),i.push(r)}return n.forEach(function(r){e.has(r.name)||s(r)}),i}function or(n){var t=rr(n);return vi.reduce(function(e,i){return e.concat(t.filter(function(s){return s.phase===i}))},[])}function ar(n){var t;return function(){return t||(t=new Promise(function(e){Promise.resolve().then(function(){t=void 0,e(n())})})),t}}function cr(n){var t=n.reduce(function(e,i){var s=e[i.name];return e[i.name]=s?Object.assign({},s,i,{options:Object.assign({},s.options,i.options),data:Object.assign({},s.data,i.data)}):i,e},{});return Object.keys(t).map(function(e){return t[e]})}var In={placement:"bottom",modifiers:[],strategy:"absolute"};function xn(){for(var n=arguments.length,t=new Array(n),e=0;e`).join("")}class Os{constructor(){Se(this,"charLimit",4500);Se(this,"handleInput",()=>{const t=document.getElementById("original"),e=document.getElementById("char_limit");if(!t||!e)return;this.charLimit=Math.max(Number(e.value),1e3),e.value=this.charLimit.toString();const i=t.value;if(!i)return;const s=ys(i,this.charLimit),r=ws(s);this.displayConvertedText(r)});this.initializeEventListeners()}initializeEventListeners(){window.onload=()=>{const t=document.getElementById("original"),e=document.getElementById("char_limit");t==null||t.addEventListener("input",this.handleInput),e==null||e.addEventListener("change",this.handleInput)}}displayConvertedText(t){const e=document.getElementById("converted");e&&(e.innerHTML=t)}}var I="top",M="bottom",k="right",x="left",pe="auto",xt=[I,M,k,x],_t="start",St="end",ai="clippingParents",Xe="viewport",Tt="popper",ci="reference",je=xt.reduce(function(n,t){return n.concat([t+"-"+_t,t+"-"+St])},[]),Qe=[].concat(xt,[pe]).reduce(function(n,t){return n.concat([t,t+"-"+_t,t+"-"+St])},[]),li="beforeRead",ui="read",di="afterRead",hi="beforeMain",fi="main",pi="afterMain",_i="beforeWrite",gi="write",mi="afterWrite",Ei=[li,ui,di,hi,fi,pi,_i,gi,mi];function G(n){return n?(n.nodeName||"").toLowerCase():null}function V(n){if(n==null)return window;if(n.toString()!=="[object Window]"){var t=n.ownerDocument;return t&&t.defaultView||window}return n}function gt(n){var t=V(n).Element;return n instanceof t||n instanceof Element}function H(n){var t=V(n).HTMLElement;return n instanceof t||n instanceof HTMLElement}function Je(n){if(typeof ShadowRoot>"u")return!1;var t=V(n).ShadowRoot;return n instanceof t||n instanceof ShadowRoot}function Ss(n){var t=n.state;Object.keys(t.elements).forEach(function(e){var i=t.styles[e]||{},s=t.attributes[e]||{},r=t.elements[e];!H(r)||!G(r)||(Object.assign(r.style,i),Object.keys(s).forEach(function(o){var a=s[o];a===!1?r.removeAttribute(o):r.setAttribute(o,a===!0?"":a)}))})}function Cs(n){var t=n.state,e={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,e.popper),t.styles=e,t.elements.arrow&&Object.assign(t.elements.arrow.style,e.arrow),function(){Object.keys(t.elements).forEach(function(i){var s=t.elements[i],r=t.attributes[i]||{},o=Object.keys(t.styles.hasOwnProperty(i)?t.styles[i]:e[i]),a=o.reduce(function(l,d){return l[d]="",l},{});!H(s)||!G(s)||(Object.assign(s.style,a),Object.keys(r).forEach(function(l){s.removeAttribute(l)}))})}}const Ze={name:"applyStyles",enabled:!0,phase:"write",fn:Ss,effect:Cs,requires:["computeStyles"]};function U(n){return n.split("-")[0]}var pt=Math.max,ue=Math.min,Ct=Math.round;function Ke(){var n=navigator.userAgentData;return n!=null&&n.brands&&Array.isArray(n.brands)?n.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function vi(){return!/^((?!chrome|android).)*safari/i.test(Ke())}function Nt(n,t,e){t===void 0&&(t=!1),e===void 0&&(e=!1);var i=n.getBoundingClientRect(),s=1,r=1;t&&H(n)&&(s=n.offsetWidth>0&&Ct(i.width)/n.offsetWidth||1,r=n.offsetHeight>0&&Ct(i.height)/n.offsetHeight||1);var o=gt(n)?V(n):window,a=o.visualViewport,l=!vi()&&e,d=(i.left+(l&&a?a.offsetLeft:0))/s,u=(i.top+(l&&a?a.offsetTop:0))/r,p=i.width/s,_=i.height/r;return{width:p,height:_,top:u,right:d+p,bottom:u+_,left:d,x:d,y:u}}function tn(n){var t=Nt(n),e=n.offsetWidth,i=n.offsetHeight;return Math.abs(t.width-e)<=1&&(e=t.width),Math.abs(t.height-i)<=1&&(i=t.height),{x:n.offsetLeft,y:n.offsetTop,width:e,height:i}}function bi(n,t){var e=t.getRootNode&&t.getRootNode();if(n.contains(t))return!0;if(e&&Je(e)){var i=t;do{if(i&&n.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function Q(n){return V(n).getComputedStyle(n)}function Ns(n){return["table","td","th"].indexOf(G(n))>=0}function st(n){return((gt(n)?n.ownerDocument:n.document)||window.document).documentElement}function _e(n){return G(n)==="html"?n:n.assignedSlot||n.parentNode||(Je(n)?n.host:null)||st(n)}function On(n){return!H(n)||Q(n).position==="fixed"?null:n.offsetParent}function $s(n){var t=/firefox/i.test(Ke()),e=/Trident/i.test(Ke());if(e&&H(n)){var i=Q(n);if(i.position==="fixed")return null}var s=_e(n);for(Je(s)&&(s=s.host);H(s)&&["html","body"].indexOf(G(s))<0;){var r=Q(s);if(r.transform!=="none"||r.perspective!=="none"||r.contain==="paint"||["transform","perspective"].indexOf(r.willChange)!==-1||t&&r.willChange==="filter"||t&&r.filter&&r.filter!=="none")return s;s=s.parentNode}return null}function Kt(n){for(var t=V(n),e=On(n);e&&Ns(e)&&Q(e).position==="static";)e=On(e);return e&&(G(e)==="html"||G(e)==="body"&&Q(e).position==="static")?t:e||$s(n)||t}function en(n){return["top","bottom"].indexOf(n)>=0?"x":"y"}function Bt(n,t,e){return pt(n,ue(t,e))}function Ds(n,t,e){var i=Bt(n,t,e);return i>e?e:i}function Ai(){return{top:0,right:0,bottom:0,left:0}}function Ti(n){return Object.assign({},Ai(),n)}function yi(n,t){return t.reduce(function(e,i){return e[i]=n,e},{})}var Ls=function(t,e){return t=typeof t=="function"?t(Object.assign({},e.rects,{placement:e.placement})):t,Ti(typeof t!="number"?t:yi(t,xt))};function Is(n){var t,e=n.state,i=n.name,s=n.options,r=e.elements.arrow,o=e.modifiersData.popperOffsets,a=U(e.placement),l=en(a),d=[x,k].indexOf(a)>=0,u=d?"height":"width";if(!(!r||!o)){var p=Ls(s.padding,e),_=tn(r),f=l==="y"?I:x,A=l==="y"?M:k,g=e.rects.reference[u]+e.rects.reference[l]-o[l]-e.rects.popper[u],E=o[l]-e.rects.reference[l],T=Kt(r),w=T?l==="y"?T.clientHeight||0:T.clientWidth||0:0,O=g/2-E/2,m=p[f],v=w-_[u]-p[A],b=w/2-_[u]/2+O,y=Bt(m,b,v),N=l;e.modifiersData[i]=(t={},t[N]=y,t.centerOffset=y-b,t)}}function xs(n){var t=n.state,e=n.options,i=e.element,s=i===void 0?"[data-popper-arrow]":i;s!=null&&(typeof s=="string"&&(s=t.elements.popper.querySelector(s),!s)||bi(t.elements.popper,s)&&(t.elements.arrow=s))}const wi={name:"arrow",enabled:!0,phase:"main",fn:Is,effect:xs,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function $t(n){return n.split("-")[1]}var Rs={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Ps(n,t){var e=n.x,i=n.y,s=t.devicePixelRatio||1;return{x:Ct(e*s)/s||0,y:Ct(i*s)/s||0}}function Sn(n){var t,e=n.popper,i=n.popperRect,s=n.placement,r=n.variation,o=n.offsets,a=n.position,l=n.gpuAcceleration,d=n.adaptive,u=n.roundOffsets,p=n.isFixed,_=o.x,f=_===void 0?0:_,A=o.y,g=A===void 0?0:A,E=typeof u=="function"?u({x:f,y:g}):{x:f,y:g};f=E.x,g=E.y;var T=o.hasOwnProperty("x"),w=o.hasOwnProperty("y"),O=x,m=I,v=window;if(d){var b=Kt(e),y="clientHeight",N="clientWidth";if(b===V(e)&&(b=st(e),Q(b).position!=="static"&&a==="absolute"&&(y="scrollHeight",N="scrollWidth")),b=b,s===I||(s===x||s===k)&&r===St){m=M;var C=p&&b===v&&v.visualViewport?v.visualViewport.height:b[y];g-=C-i.height,g*=l?1:-1}if(s===x||(s===I||s===M)&&r===St){O=k;var S=p&&b===v&&v.visualViewport?v.visualViewport.width:b[N];f-=S-i.width,f*=l?1:-1}}var D=Object.assign({position:a},d&&Rs),j=u===!0?Ps({x:f,y:g},V(e)):{x:f,y:g};if(f=j.x,g=j.y,l){var L;return Object.assign({},D,(L={},L[m]=w?"0":"",L[O]=T?"0":"",L.transform=(v.devicePixelRatio||1)<=1?"translate("+f+"px, "+g+"px)":"translate3d("+f+"px, "+g+"px, 0)",L))}return Object.assign({},D,(t={},t[m]=w?g+"px":"",t[O]=T?f+"px":"",t.transform="",t))}function Ms(n){var t=n.state,e=n.options,i=e.gpuAcceleration,s=i===void 0?!0:i,r=e.adaptive,o=r===void 0?!0:r,a=e.roundOffsets,l=a===void 0?!0:a,d={placement:U(t.placement),variation:$t(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:s,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,Sn(Object.assign({},d,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:o,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Sn(Object.assign({},d,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const nn={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Ms,data:{}};var te={passive:!0};function ks(n){var t=n.state,e=n.instance,i=n.options,s=i.scroll,r=s===void 0?!0:s,o=i.resize,a=o===void 0?!0:o,l=V(t.elements.popper),d=[].concat(t.scrollParents.reference,t.scrollParents.popper);return r&&d.forEach(function(u){u.addEventListener("scroll",e.update,te)}),a&&l.addEventListener("resize",e.update,te),function(){r&&d.forEach(function(u){u.removeEventListener("scroll",e.update,te)}),a&&l.removeEventListener("resize",e.update,te)}}const sn={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:ks,data:{}};var Vs={left:"right",right:"left",bottom:"top",top:"bottom"};function ae(n){return n.replace(/left|right|bottom|top/g,function(t){return Vs[t]})}var Hs={start:"end",end:"start"};function Cn(n){return n.replace(/start|end/g,function(t){return Hs[t]})}function rn(n){var t=V(n),e=t.pageXOffset,i=t.pageYOffset;return{scrollLeft:e,scrollTop:i}}function on(n){return Nt(st(n)).left+rn(n).scrollLeft}function Ws(n,t){var e=V(n),i=st(n),s=e.visualViewport,r=i.clientWidth,o=i.clientHeight,a=0,l=0;if(s){r=s.width,o=s.height;var d=vi();(d||!d&&t==="fixed")&&(a=s.offsetLeft,l=s.offsetTop)}return{width:r,height:o,x:a+on(n),y:l}}function Bs(n){var t,e=st(n),i=rn(n),s=(t=n.ownerDocument)==null?void 0:t.body,r=pt(e.scrollWidth,e.clientWidth,s?s.scrollWidth:0,s?s.clientWidth:0),o=pt(e.scrollHeight,e.clientHeight,s?s.scrollHeight:0,s?s.clientHeight:0),a=-i.scrollLeft+on(n),l=-i.scrollTop;return Q(s||e).direction==="rtl"&&(a+=pt(e.clientWidth,s?s.clientWidth:0)-r),{width:r,height:o,x:a,y:l}}function an(n){var t=Q(n),e=t.overflow,i=t.overflowX,s=t.overflowY;return/auto|scroll|overlay|hidden/.test(e+s+i)}function Oi(n){return["html","body","#document"].indexOf(G(n))>=0?n.ownerDocument.body:H(n)&&an(n)?n:Oi(_e(n))}function Ft(n,t){var e;t===void 0&&(t=[]);var i=Oi(n),s=i===((e=n.ownerDocument)==null?void 0:e.body),r=V(i),o=s?[r].concat(r.visualViewport||[],an(i)?i:[]):i,a=t.concat(o);return s?a:a.concat(Ft(_e(o)))}function Ye(n){return Object.assign({},n,{left:n.x,top:n.y,right:n.x+n.width,bottom:n.y+n.height})}function Fs(n,t){var e=Nt(n,!1,t==="fixed");return e.top=e.top+n.clientTop,e.left=e.left+n.clientLeft,e.bottom=e.top+n.clientHeight,e.right=e.left+n.clientWidth,e.width=n.clientWidth,e.height=n.clientHeight,e.x=e.left,e.y=e.top,e}function Nn(n,t,e){return t===Xe?Ye(Ws(n,e)):gt(t)?Fs(t,e):Ye(Bs(st(n)))}function js(n){var t=Ft(_e(n)),e=["absolute","fixed"].indexOf(Q(n).position)>=0,i=e&&H(n)?Kt(n):n;return gt(i)?t.filter(function(s){return gt(s)&&bi(s,i)&&G(s)!=="body"}):[]}function Ks(n,t,e,i){var s=t==="clippingParents"?js(n):[].concat(t),r=[].concat(s,[e]),o=r[0],a=r.reduce(function(l,d){var u=Nn(n,d,i);return l.top=pt(u.top,l.top),l.right=ue(u.right,l.right),l.bottom=ue(u.bottom,l.bottom),l.left=pt(u.left,l.left),l},Nn(n,o,i));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function Si(n){var t=n.reference,e=n.element,i=n.placement,s=i?U(i):null,r=i?$t(i):null,o=t.x+t.width/2-e.width/2,a=t.y+t.height/2-e.height/2,l;switch(s){case I:l={x:o,y:t.y-e.height};break;case M:l={x:o,y:t.y+t.height};break;case k:l={x:t.x+t.width,y:a};break;case x:l={x:t.x-e.width,y:a};break;default:l={x:t.x,y:t.y}}var d=s?en(s):null;if(d!=null){var u=d==="y"?"height":"width";switch(r){case _t:l[d]=l[d]-(t[u]/2-e[u]/2);break;case St:l[d]=l[d]+(t[u]/2-e[u]/2);break}}return l}function Dt(n,t){t===void 0&&(t={});var e=t,i=e.placement,s=i===void 0?n.placement:i,r=e.strategy,o=r===void 0?n.strategy:r,a=e.boundary,l=a===void 0?ai:a,d=e.rootBoundary,u=d===void 0?Xe:d,p=e.elementContext,_=p===void 0?Tt:p,f=e.altBoundary,A=f===void 0?!1:f,g=e.padding,E=g===void 0?0:g,T=Ti(typeof E!="number"?E:yi(E,xt)),w=_===Tt?ci:Tt,O=n.rects.popper,m=n.elements[A?w:_],v=Ks(gt(m)?m:m.contextElement||st(n.elements.popper),l,u,o),b=Nt(n.elements.reference),y=Si({reference:b,element:O,strategy:"absolute",placement:s}),N=Ye(Object.assign({},O,y)),C=_===Tt?N:b,S={top:v.top-C.top+T.top,bottom:C.bottom-v.bottom+T.bottom,left:v.left-C.left+T.left,right:C.right-v.right+T.right},D=n.modifiersData.offset;if(_===Tt&&D){var j=D[s];Object.keys(S).forEach(function(L){var at=[k,M].indexOf(L)>=0?1:-1,ct=[I,M].indexOf(L)>=0?"y":"x";S[L]+=j[ct]*at})}return S}function Ys(n,t){t===void 0&&(t={});var e=t,i=e.placement,s=e.boundary,r=e.rootBoundary,o=e.padding,a=e.flipVariations,l=e.allowedAutoPlacements,d=l===void 0?Qe:l,u=$t(i),p=u?a?je:je.filter(function(A){return $t(A)===u}):xt,_=p.filter(function(A){return d.indexOf(A)>=0});_.length===0&&(_=p);var f=_.reduce(function(A,g){return A[g]=Dt(n,{placement:g,boundary:s,rootBoundary:r,padding:o})[U(g)],A},{});return Object.keys(f).sort(function(A,g){return f[A]-f[g]})}function Us(n){if(U(n)===pe)return[];var t=ae(n);return[Cn(n),t,Cn(t)]}function zs(n){var t=n.state,e=n.options,i=n.name;if(!t.modifiersData[i]._skip){for(var s=e.mainAxis,r=s===void 0?!0:s,o=e.altAxis,a=o===void 0?!0:o,l=e.fallbackPlacements,d=e.padding,u=e.boundary,p=e.rootBoundary,_=e.altBoundary,f=e.flipVariations,A=f===void 0?!0:f,g=e.allowedAutoPlacements,E=t.options.placement,T=U(E),w=T===E,O=l||(w||!A?[ae(E)]:Us(E)),m=[E].concat(O).reduce(function(vt,Z){return vt.concat(U(Z)===pe?Ys(t,{placement:Z,boundary:u,rootBoundary:p,padding:d,flipVariations:A,allowedAutoPlacements:g}):Z)},[]),v=t.rects.reference,b=t.rects.popper,y=new Map,N=!0,C=m[0],S=0;S=0,ct=at?"width":"height",P=Dt(t,{placement:D,boundary:u,rootBoundary:p,altBoundary:_,padding:d}),K=at?L?k:x:L?M:I;v[ct]>b[ct]&&(K=ae(K));var qt=ae(K),lt=[];if(r&<.push(P[j]<=0),a&<.push(P[K]<=0,P[qt]<=0),lt.every(function(vt){return vt})){C=D,N=!1;break}y.set(D,lt)}if(N)for(var Xt=A?3:1,Te=function(Z){var Vt=m.find(function(Jt){var ut=y.get(Jt);if(ut)return ut.slice(0,Z).every(function(ye){return ye})});if(Vt)return C=Vt,"break"},kt=Xt;kt>0;kt--){var Qt=Te(kt);if(Qt==="break")break}t.placement!==C&&(t.modifiersData[i]._skip=!0,t.placement=C,t.reset=!0)}}const Ci={name:"flip",enabled:!0,phase:"main",fn:zs,requiresIfExists:["offset"],data:{_skip:!1}};function $n(n,t,e){return e===void 0&&(e={x:0,y:0}),{top:n.top-t.height-e.y,right:n.right-t.width+e.x,bottom:n.bottom-t.height+e.y,left:n.left-t.width-e.x}}function Dn(n){return[I,k,M,x].some(function(t){return n[t]>=0})}function Gs(n){var t=n.state,e=n.name,i=t.rects.reference,s=t.rects.popper,r=t.modifiersData.preventOverflow,o=Dt(t,{elementContext:"reference"}),a=Dt(t,{altBoundary:!0}),l=$n(o,i),d=$n(a,s,r),u=Dn(l),p=Dn(d);t.modifiersData[e]={referenceClippingOffsets:l,popperEscapeOffsets:d,isReferenceHidden:u,hasPopperEscaped:p},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":p})}const Ni={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Gs};function qs(n,t,e){var i=U(n),s=[x,I].indexOf(i)>=0?-1:1,r=typeof e=="function"?e(Object.assign({},t,{placement:n})):e,o=r[0],a=r[1];return o=o||0,a=(a||0)*s,[x,k].indexOf(i)>=0?{x:a,y:o}:{x:o,y:a}}function Xs(n){var t=n.state,e=n.options,i=n.name,s=e.offset,r=s===void 0?[0,0]:s,o=Qe.reduce(function(u,p){return u[p]=qs(p,t.rects,r),u},{}),a=o[t.placement],l=a.x,d=a.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=d),t.modifiersData[i]=o}const $i={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Xs};function Qs(n){var t=n.state,e=n.name;t.modifiersData[e]=Si({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const cn={name:"popperOffsets",enabled:!0,phase:"read",fn:Qs,data:{}};function Js(n){return n==="x"?"y":"x"}function Zs(n){var t=n.state,e=n.options,i=n.name,s=e.mainAxis,r=s===void 0?!0:s,o=e.altAxis,a=o===void 0?!1:o,l=e.boundary,d=e.rootBoundary,u=e.altBoundary,p=e.padding,_=e.tether,f=_===void 0?!0:_,A=e.tetherOffset,g=A===void 0?0:A,E=Dt(t,{boundary:l,rootBoundary:d,padding:p,altBoundary:u}),T=U(t.placement),w=$t(t.placement),O=!w,m=en(T),v=Js(m),b=t.modifiersData.popperOffsets,y=t.rects.reference,N=t.rects.popper,C=typeof g=="function"?g(Object.assign({},t.rects,{placement:t.placement})):g,S=typeof C=="number"?{mainAxis:C,altAxis:C}:Object.assign({mainAxis:0,altAxis:0},C),D=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,j={x:0,y:0};if(b){if(r){var L,at=m==="y"?I:x,ct=m==="y"?M:k,P=m==="y"?"height":"width",K=b[m],qt=K+E[at],lt=K-E[ct],Xt=f?-N[P]/2:0,Te=w===_t?y[P]:N[P],kt=w===_t?-N[P]:-y[P],Qt=t.elements.arrow,vt=f&&Qt?tn(Qt):{width:0,height:0},Z=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Ai(),Vt=Z[at],Jt=Z[ct],ut=Bt(0,y[P],vt[P]),ye=O?y[P]/2-Xt-ut-Vt-S.mainAxis:Te-ut-Vt-S.mainAxis,as=O?-y[P]/2+Xt+ut+Jt+S.mainAxis:kt+ut+Jt+S.mainAxis,we=t.elements.arrow&&Kt(t.elements.arrow),cs=we?m==="y"?we.clientTop||0:we.clientLeft||0:0,_n=(L=D==null?void 0:D[m])!=null?L:0,ls=K+ye-_n-cs,us=K+as-_n,gn=Bt(f?ue(qt,ls):qt,K,f?pt(lt,us):lt);b[m]=gn,j[m]=gn-K}if(a){var mn,ds=m==="x"?I:x,hs=m==="x"?M:k,dt=b[v],Zt=v==="y"?"height":"width",En=dt+E[ds],vn=dt-E[hs],Oe=[I,x].indexOf(T)!==-1,bn=(mn=D==null?void 0:D[v])!=null?mn:0,An=Oe?En:dt-y[Zt]-N[Zt]-bn+S.altAxis,Tn=Oe?dt+y[Zt]+N[Zt]-bn-S.altAxis:vn,yn=f&&Oe?Ds(An,dt,Tn):Bt(f?An:En,dt,f?Tn:vn);b[v]=yn,j[v]=yn-dt}t.modifiersData[i]=j}}const Di={name:"preventOverflow",enabled:!0,phase:"main",fn:Zs,requiresIfExists:["offset"]};function tr(n){return{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop}}function er(n){return n===V(n)||!H(n)?rn(n):tr(n)}function nr(n){var t=n.getBoundingClientRect(),e=Ct(t.width)/n.offsetWidth||1,i=Ct(t.height)/n.offsetHeight||1;return e!==1||i!==1}function ir(n,t,e){e===void 0&&(e=!1);var i=H(t),s=H(t)&&nr(t),r=st(t),o=Nt(n,s,e),a={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(i||!i&&!e)&&((G(t)!=="body"||an(r))&&(a=er(t)),H(t)?(l=Nt(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):r&&(l.x=on(r))),{x:o.left+a.scrollLeft-l.x,y:o.top+a.scrollTop-l.y,width:o.width,height:o.height}}function sr(n){var t=new Map,e=new Set,i=[];n.forEach(function(r){t.set(r.name,r)});function s(r){e.add(r.name);var o=[].concat(r.requires||[],r.requiresIfExists||[]);o.forEach(function(a){if(!e.has(a)){var l=t.get(a);l&&s(l)}}),i.push(r)}return n.forEach(function(r){e.has(r.name)||s(r)}),i}function rr(n){var t=sr(n);return Ei.reduce(function(e,i){return e.concat(t.filter(function(s){return s.phase===i}))},[])}function or(n){var t;return function(){return t||(t=new Promise(function(e){Promise.resolve().then(function(){t=void 0,e(n())})})),t}}function ar(n){var t=n.reduce(function(e,i){var s=e[i.name];return e[i.name]=s?Object.assign({},s,i,{options:Object.assign({},s.options,i.options),data:Object.assign({},s.data,i.data)}):i,e},{});return Object.keys(t).map(function(e){return t[e]})}var Ln={placement:"bottom",modifiers:[],strategy:"absolute"};function In(){for(var n=arguments.length,t=new Array(n),e=0;e(n&&window.CSS&&window.CSS.escape&&(n=n.replace(/#([^\s"#']+)/g,(t,e)=>`#${CSS.escape(e)}`)),n),_r=n=>n==null?`${n}`:Object.prototype.toString.call(n).match(/\s([a-z]+)/i)[1].toLowerCase(),gr=n=>{do n+=Math.floor(Math.random()*fr);while(document.getElementById(n));return n},mr=n=>{if(!n)return 0;let{transitionDuration:t,transitionDelay:e}=window.getComputedStyle(n);const i=Number.parseFloat(t),s=Number.parseFloat(e);return!i&&!s?0:(t=t.split(",")[0],e=e.split(",")[0],(Number.parseFloat(t)+Number.parseFloat(e))*pr)},Ri=n=>{n.dispatchEvent(new Event(ze))},q=n=>!n||typeof n!="object"?!1:(typeof n.jquery<"u"&&(n=n[0]),typeof n.nodeType<"u"),et=n=>q(n)?n.jquery?n[0]:n:typeof n=="string"&&n.length>0?document.querySelector(xi(n)):null,Rt=n=>{if(!q(n)||n.getClientRects().length===0)return!1;const t=getComputedStyle(n).getPropertyValue("visibility")==="visible",e=n.closest("details:not([open])");if(!e)return t;if(e!==n){const i=n.closest("summary");if(i&&i.parentNode!==e||i===null)return!1}return t},nt=n=>!n||n.nodeType!==Node.ELEMENT_NODE||n.classList.contains("disabled")?!0:typeof n.disabled<"u"?n.disabled:n.hasAttribute("disabled")&&n.getAttribute("disabled")!=="false",Pi=n=>{if(!document.documentElement.attachShadow)return null;if(typeof n.getRootNode=="function"){const t=n.getRootNode();return t instanceof ShadowRoot?t:null}return n instanceof ShadowRoot?n:n.parentNode?Pi(n.parentNode):null},he=()=>{},Yt=n=>{n.offsetHeight},Mi=()=>window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?window.jQuery:null,De=[],Er=n=>{document.readyState==="loading"?(De.length||document.addEventListener("DOMContentLoaded",()=>{for(const t of De)t()}),De.push(n)):n()},W=()=>document.documentElement.dir==="rtl",F=n=>{Er(()=>{const t=Mi();if(t){const e=n.NAME,i=t.fn[e];t.fn[e]=n.jQueryInterface,t.fn[e].Constructor=n,t.fn[e].noConflict=()=>(t.fn[e]=i,n.jQueryInterface)}})},R=(n,t=[],e=n)=>typeof n=="function"?n(...t):e,ki=(n,t,e=!0)=>{if(!e){R(n);return}const s=mr(t)+5;let r=!1;const o=({target:a})=>{a===t&&(r=!0,t.removeEventListener(ze,o),R(n))};t.addEventListener(ze,o),setTimeout(()=>{r||Ri(t)},s)},dn=(n,t,e,i)=>{const s=n.length;let r=n.indexOf(t);return r===-1?!e&&i?n[s-1]:n[0]:(r+=e?1:-1,i&&(r=(r+s)%s),n[Math.max(0,Math.min(r,s-1))])},vr=/[^.]*(?=\..*)\.|.*/,br=/\..*/,Ar=/::\d+$/,Le={};let Rn=1;const Vi={mouseenter:"mouseover",mouseleave:"mouseout"},Tr=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 Hi(n,t){return t&&`${t}::${Rn++}`||n.uidEvent||Rn++}function Wi(n){const t=Hi(n);return n.uidEvent=t,Le[t]=Le[t]||{},Le[t]}function yr(n,t){return function e(i){return hn(i,{delegateTarget:n}),e.oneOff&&c.off(n,i.type,t),t.apply(n,[i])}}function wr(n,t,e){return function i(s){const r=n.querySelectorAll(t);for(let{target:o}=s;o&&o!==this;o=o.parentNode)for(const a of r)if(a===o)return hn(s,{delegateTarget:o}),i.oneOff&&c.off(n,s.type,t,e),e.apply(o,[s])}}function Bi(n,t,e=null){return Object.values(n).find(i=>i.callable===t&&i.delegationSelector===e)}function Fi(n,t,e){const i=typeof t=="string",s=i?e:t||e;let r=ji(n);return Tr.has(r)||(r=n),[i,s,r]}function Pn(n,t,e,i,s){if(typeof t!="string"||!n)return;let[r,o,a]=Fi(t,e,i);t in Vi&&(o=(A=>function(g){if(!g.relatedTarget||g.relatedTarget!==g.delegateTarget&&!g.delegateTarget.contains(g.relatedTarget))return A.call(this,g)})(o));const l=Wi(n),d=l[a]||(l[a]={}),u=Bi(d,o,r?e:null);if(u){u.oneOff=u.oneOff&&s;return}const p=Hi(o,t.replace(vr,"")),_=r?wr(n,e,o):yr(n,o);_.delegationSelector=r?e:null,_.callable=o,_.oneOff=s,_.uidEvent=p,d[p]=_,n.addEventListener(a,_,r)}function Ge(n,t,e,i,s){const r=Bi(t[e],i,s);r&&(n.removeEventListener(e,r,!!s),delete t[e][r.uidEvent])}function Or(n,t,e,i){const s=t[e]||{};for(const[r,o]of Object.entries(s))r.includes(i)&&Ge(n,t,e,o.callable,o.delegationSelector)}function ji(n){return n=n.replace(br,""),Vi[n]||n}const c={on(n,t,e,i){Pn(n,t,e,i,!1)},one(n,t,e,i){Pn(n,t,e,i,!0)},off(n,t,e,i){if(typeof t!="string"||!n)return;const[s,r,o]=Fi(t,e,i),a=o!==t,l=Wi(n),d=l[o]||{},u=t.startsWith(".");if(typeof r<"u"){if(!Object.keys(d).length)return;Ge(n,l,o,r,s?e:null);return}if(u)for(const p of Object.keys(l))Or(n,l,p,t.slice(1));for(const[p,_]of Object.entries(d)){const f=p.replace(Ar,"");(!a||t.includes(f))&&Ge(n,l,o,_.callable,_.delegationSelector)}},trigger(n,t,e){if(typeof t!="string"||!n)return null;const i=Mi(),s=ji(t),r=t!==s;let o=null,a=!0,l=!0,d=!1;r&&i&&(o=i.Event(t,e),i(n).trigger(o),a=!o.isPropagationStopped(),l=!o.isImmediatePropagationStopped(),d=o.isDefaultPrevented());const u=hn(new Event(t,{bubbles:a,cancelable:!0}),e);return d&&u.preventDefault(),l&&n.dispatchEvent(u),u.defaultPrevented&&o&&o.preventDefault(),u}};function hn(n,t={}){for(const[e,i]of Object.entries(t))try{n[e]=i}catch{Object.defineProperty(n,e,{configurable:!0,get(){return i}})}return n}function Mn(n){if(n==="true")return!0;if(n==="false")return!1;if(n===Number(n).toString())return Number(n);if(n===""||n==="null")return null;if(typeof n!="string")return n;try{return JSON.parse(decodeURIComponent(n))}catch{return n}}function Ie(n){return n.replace(/[A-Z]/g,t=>`-${t.toLowerCase()}`)}const X={setDataAttribute(n,t,e){n.setAttribute(`data-bs-${Ie(t)}`,e)},removeDataAttribute(n,t){n.removeAttribute(`data-bs-${Ie(t)}`)},getDataAttributes(n){if(!n)return{};const t={},e=Object.keys(n.dataset).filter(i=>i.startsWith("bs")&&!i.startsWith("bsConfig"));for(const i of e){let s=i.replace(/^bs/,"");s=s.charAt(0).toLowerCase()+s.slice(1,s.length),t[s]=Mn(n.dataset[i])}return t},getDataAttribute(n,t){return Mn(n.getAttribute(`data-bs-${Ie(t)}`))}};class Ut{static get Default(){return{}}static get DefaultType(){return{}}static get NAME(){throw new Error('You have to implement the static method "NAME", for each component!')}_getConfig(t){return t=this._mergeConfigObj(t),t=this._configAfterMerge(t),this._typeCheckConfig(t),t}_configAfterMerge(t){return t}_mergeConfigObj(t,e){const i=q(e)?X.getDataAttribute(e,"config"):{};return{...this.constructor.Default,...typeof i=="object"?i:{},...q(e)?X.getDataAttributes(e):{},...typeof t=="object"?t:{}}}_typeCheckConfig(t,e=this.constructor.DefaultType){for(const[i,s]of Object.entries(e)){const r=t[i],o=q(r)?"element":_r(r);if(!new RegExp(s).test(o))throw new TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${i}" provided type "${o}" but expected type "${s}".`)}}}const Sr="5.3.3";class Y extends Ut{constructor(t,e){super(),t=et(t),t&&(this._element=t,this._config=this._getConfig(e),$e.set(this._element,this.constructor.DATA_KEY,this))}dispose(){$e.remove(this._element,this.constructor.DATA_KEY),c.off(this._element,this.constructor.EVENT_KEY);for(const t of Object.getOwnPropertyNames(this))this[t]=null}_queueCallback(t,e,i=!0){ki(t,e,i)}_getConfig(t){return t=this._mergeConfigObj(t,this._element),t=this._configAfterMerge(t),this._typeCheckConfig(t),t}static getInstance(t){return $e.get(et(t),this.DATA_KEY)}static getOrCreateInstance(t,e={}){return this.getInstance(t)||new this(t,typeof e=="object"?e:null)}static get VERSION(){return Sr}static get DATA_KEY(){return`bs.${this.NAME}`}static get EVENT_KEY(){return`.${this.DATA_KEY}`}static eventName(t){return`${t}${this.EVENT_KEY}`}}const xe=n=>{let t=n.getAttribute("data-bs-target");if(!t||t==="#"){let e=n.getAttribute("href");if(!e||!e.includes("#")&&!e.startsWith("."))return null;e.includes("#")&&!e.startsWith("#")&&(e=`#${e.split("#")[1]}`),t=e&&e!=="#"?e.trim():null}return t?t.split(",").map(e=>xi(e)).join(","):null},h={find(n,t=document.documentElement){return[].concat(...Element.prototype.querySelectorAll.call(t,n))},findOne(n,t=document.documentElement){return Element.prototype.querySelector.call(t,n)},children(n,t){return[].concat(...n.children).filter(e=>e.matches(t))},parents(n,t){const e=[];let i=n.parentNode.closest(t);for(;i;)e.push(i),i=i.parentNode.closest(t);return e},prev(n,t){let e=n.previousElementSibling;for(;e;){if(e.matches(t))return[e];e=e.previousElementSibling}return[]},next(n,t){let e=n.nextElementSibling;for(;e;){if(e.matches(t))return[e];e=e.nextElementSibling}return[]},focusableChildren(n){const t=["a","button","input","textarea","select","details","[tabindex]",'[contenteditable="true"]'].map(e=>`${e}:not([tabindex^="-"])`).join(",");return this.find(t,n).filter(e=>!nt(e)&&Rt(e))},getSelectorFromElement(n){const t=xe(n);return t&&h.findOne(t)?t:null},getElementFromSelector(n){const t=xe(n);return t?h.findOne(t):null},getMultipleElementsFromSelector(n){const t=xe(n);return t?h.find(t):[]}},Ee=(n,t="hide")=>{const e=`click.dismiss${n.EVENT_KEY}`,i=n.NAME;c.on(document,e,`[data-bs-dismiss="${i}"]`,function(s){if(["A","AREA"].includes(this.tagName)&&s.preventDefault(),nt(this))return;const r=h.getElementFromSelector(this)||this.closest(`.${i}`);n.getOrCreateInstance(r)[t]()})},Cr="alert",Nr="bs.alert",Ki=`.${Nr}`,$r=`close${Ki}`,Dr=`closed${Ki}`,Lr="fade",Ir="show";class ve extends Y{static get NAME(){return Cr}close(){if(c.trigger(this._element,$r).defaultPrevented)return;this._element.classList.remove(Ir);const e=this._element.classList.contains(Lr);this._queueCallback(()=>this._destroyElement(),this._element,e)}_destroyElement(){this._element.remove(),c.trigger(this._element,Dr),this.dispose()}static jQueryInterface(t){return this.each(function(){const e=ve.getOrCreateInstance(this);if(typeof t=="string"){if(e[t]===void 0||t.startsWith("_")||t==="constructor")throw new TypeError(`No method named "${t}"`);e[t](this)}})}}Ee(ve,"close");F(ve);const xr="button",Rr="bs.button",Pr=`.${Rr}`,Mr=".data-api",kr="active",kn='[data-bs-toggle="button"]',Vr=`click${Pr}${Mr}`;class be extends Y{static get NAME(){return xr}toggle(){this._element.setAttribute("aria-pressed",this._element.classList.toggle(kr))}static jQueryInterface(t){return this.each(function(){const e=be.getOrCreateInstance(this);t==="toggle"&&e[t]()})}}c.on(document,Vr,kn,n=>{n.preventDefault();const t=n.target.closest(kn);be.getOrCreateInstance(t).toggle()});F(be);const Hr="swipe",Pt=".bs.swipe",Wr=`touchstart${Pt}`,Br=`touchmove${Pt}`,Fr=`touchend${Pt}`,jr=`pointerdown${Pt}`,Kr=`pointerup${Pt}`,Yr="touch",Ur="pen",zr="pointer-event",Gr=40,qr={endCallback:null,leftCallback:null,rightCallback:null},Xr={endCallback:"(function|null)",leftCallback:"(function|null)",rightCallback:"(function|null)"};class fe extends Ut{constructor(t,e){super(),this._element=t,!(!t||!fe.isSupported())&&(this._config=this._getConfig(e),this._deltaX=0,this._supportPointerEvents=!!window.PointerEvent,this._initEvents())}static get Default(){return qr}static get DefaultType(){return Xr}static get NAME(){return Hr}dispose(){c.off(this._element,Pt)}_start(t){if(!this._supportPointerEvents){this._deltaX=t.touches[0].clientX;return}this._eventIsPointerPenTouch(t)&&(this._deltaX=t.clientX)}_end(t){this._eventIsPointerPenTouch(t)&&(this._deltaX=t.clientX-this._deltaX),this._handleSwipe(),R(this._config.endCallback)}_move(t){this._deltaX=t.touches&&t.touches.length>1?0:t.touches[0].clientX-this._deltaX}_handleSwipe(){const t=Math.abs(this._deltaX);if(t<=Gr)return;const e=t/this._deltaX;this._deltaX=0,e&&R(e>0?this._config.rightCallback:this._config.leftCallback)}_initEvents(){this._supportPointerEvents?(c.on(this._element,jr,t=>this._start(t)),c.on(this._element,Kr,t=>this._end(t)),this._element.classList.add(zr)):(c.on(this._element,Wr,t=>this._start(t)),c.on(this._element,Br,t=>this._move(t)),c.on(this._element,Fr,t=>this._end(t)))}_eventIsPointerPenTouch(t){return this._supportPointerEvents&&(t.pointerType===Ur||t.pointerType===Yr)}static isSupported(){return"ontouchstart"in document.documentElement||navigator.maxTouchPoints>0}}const Qr="carousel",Jr="bs.carousel",rt=`.${Jr}`,Yi=".data-api",Zr="ArrowLeft",to="ArrowRight",eo=500,Ht="next",bt="prev",yt="left",le="right",no=`slide${rt}`,Re=`slid${rt}`,io=`keydown${rt}`,so=`mouseenter${rt}`,ro=`mouseleave${rt}`,oo=`dragstart${rt}`,ao=`load${rt}${Yi}`,co=`click${rt}${Yi}`,Ui="carousel",ne="active",lo="slide",uo="carousel-item-end",ho="carousel-item-start",fo="carousel-item-next",po="carousel-item-prev",zi=".active",Gi=".carousel-item",_o=zi+Gi,go=".carousel-item img",mo=".carousel-indicators",Eo="[data-bs-slide], [data-bs-slide-to]",vo='[data-bs-ride="carousel"]',bo={[Zr]:le,[to]:yt},Ao={interval:5e3,keyboard:!0,pause:"hover",ride:!1,touch:!0,wrap:!0},To={interval:"(number|boolean)",keyboard:"boolean",pause:"(string|boolean)",ride:"(boolean|string)",touch:"boolean",wrap:"boolean"};class zt extends Y{constructor(t,e){super(t,e),this._interval=null,this._activeElement=null,this._isSliding=!1,this.touchTimeout=null,this._swipeHelper=null,this._indicatorsElement=h.findOne(mo,this._element),this._addEventListeners(),this._config.ride===Ui&&this.cycle()}static get Default(){return Ao}static get DefaultType(){return To}static get NAME(){return Qr}next(){this._slide(Ht)}nextWhenVisible(){!document.hidden&&Rt(this._element)&&this.next()}prev(){this._slide(bt)}pause(){this._isSliding&&Ri(this._element),this._clearInterval()}cycle(){this._clearInterval(),this._updateInterval(),this._interval=setInterval(()=>this.nextWhenVisible(),this._config.interval)}_maybeEnableCycle(){if(this._config.ride){if(this._isSliding){c.one(this._element,Re,()=>this.cycle());return}this.cycle()}}to(t){const e=this._getItems();if(t>e.length-1||t<0)return;if(this._isSliding){c.one(this._element,Re,()=>this.to(t));return}const i=this._getItemIndex(this._getActive());if(i===t)return;const s=t>i?Ht:bt;this._slide(s,e[t])}dispose(){this._swipeHelper&&this._swipeHelper.dispose(),super.dispose()}_configAfterMerge(t){return t.defaultInterval=t.interval,t}_addEventListeners(){this._config.keyboard&&c.on(this._element,io,t=>this._keydown(t)),this._config.pause==="hover"&&(c.on(this._element,so,()=>this.pause()),c.on(this._element,ro,()=>this._maybeEnableCycle())),this._config.touch&&fe.isSupported()&&this._addTouchEventListeners()}_addTouchEventListeners(){for(const i of h.find(go,this._element))c.on(i,oo,s=>s.preventDefault());const e={leftCallback:()=>this._slide(this._directionToOrder(yt)),rightCallback:()=>this._slide(this._directionToOrder(le)),endCallback:()=>{this._config.pause==="hover"&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout(()=>this._maybeEnableCycle(),eo+this._config.interval))}};this._swipeHelper=new fe(this._element,e)}_keydown(t){if(/input|textarea/i.test(t.target.tagName))return;const e=bo[t.key];e&&(t.preventDefault(),this._slide(this._directionToOrder(e)))}_getItemIndex(t){return this._getItems().indexOf(t)}_setActiveIndicatorElement(t){if(!this._indicatorsElement)return;const e=h.findOne(zi,this._indicatorsElement);e.classList.remove(ne),e.removeAttribute("aria-current");const i=h.findOne(`[data-bs-slide-to="${t}"]`,this._indicatorsElement);i&&(i.classList.add(ne),i.setAttribute("aria-current","true"))}_updateInterval(){const t=this._activeElement||this._getActive();if(!t)return;const e=Number.parseInt(t.getAttribute("data-bs-interval"),10);this._config.interval=e||this._config.defaultInterval}_slide(t,e=null){if(this._isSliding)return;const i=this._getActive(),s=t===Ht,r=e||dn(this._getItems(),i,s,this._config.wrap);if(r===i)return;const o=this._getItemIndex(r),a=f=>c.trigger(this._element,f,{relatedTarget:r,direction:this._orderToDirection(t),from:this._getItemIndex(i),to:o});if(a(no).defaultPrevented||!i||!r)return;const d=!!this._interval;this.pause(),this._isSliding=!0,this._setActiveIndicatorElement(o),this._activeElement=r;const u=s?ho:uo,p=s?fo:po;r.classList.add(p),Yt(r),i.classList.add(u),r.classList.add(u);const _=()=>{r.classList.remove(u,p),r.classList.add(ne),i.classList.remove(ne,p,u),this._isSliding=!1,a(Re)};this._queueCallback(_,i,this._isAnimated()),d&&this.cycle()}_isAnimated(){return this._element.classList.contains(lo)}_getActive(){return h.findOne(_o,this._element)}_getItems(){return h.find(Gi,this._element)}_clearInterval(){this._interval&&(clearInterval(this._interval),this._interval=null)}_directionToOrder(t){return W()?t===yt?bt:Ht:t===yt?Ht:bt}_orderToDirection(t){return W()?t===bt?yt:le:t===bt?le:yt}static jQueryInterface(t){return this.each(function(){const e=zt.getOrCreateInstance(this,t);if(typeof t=="number"){e.to(t);return}if(typeof t=="string"){if(e[t]===void 0||t.startsWith("_")||t==="constructor")throw new TypeError(`No method named "${t}"`);e[t]()}})}}c.on(document,co,Eo,function(n){const t=h.getElementFromSelector(this);if(!t||!t.classList.contains(Ui))return;n.preventDefault();const e=zt.getOrCreateInstance(t),i=this.getAttribute("data-bs-slide-to");if(i){e.to(i),e._maybeEnableCycle();return}if(X.getDataAttribute(this,"slide")==="next"){e.next(),e._maybeEnableCycle();return}e.prev(),e._maybeEnableCycle()});c.on(window,ao,()=>{const n=h.find(vo);for(const t of n)zt.getOrCreateInstance(t)});F(zt);const yo="collapse",wo="bs.collapse",Gt=`.${wo}`,Oo=".data-api",So=`show${Gt}`,Co=`shown${Gt}`,No=`hide${Gt}`,$o=`hidden${Gt}`,Do=`click${Gt}${Oo}`,Pe="show",Ot="collapse",ie="collapsing",Lo="collapsed",Io=`:scope .${Ot} .${Ot}`,xo="collapse-horizontal",Ro="width",Po="height",Mo=".collapse.show, .collapse.collapsing",qe='[data-bs-toggle="collapse"]',ko={parent:null,toggle:!0},Vo={parent:"(null|element)",toggle:"boolean"};class jt extends Y{constructor(t,e){super(t,e),this._isTransitioning=!1,this._triggerArray=[];const i=h.find(qe);for(const s of i){const r=h.getSelectorFromElement(s),o=h.find(r).filter(a=>a===this._element);r!==null&&o.length&&this._triggerArray.push(s)}this._initializeChildren(),this._config.parent||this._addAriaAndCollapsedClass(this._triggerArray,this._isShown()),this._config.toggle&&this.toggle()}static get Default(){return ko}static get DefaultType(){return Vo}static get NAME(){return yo}toggle(){this._isShown()?this.hide():this.show()}show(){if(this._isTransitioning||this._isShown())return;let t=[];if(this._config.parent&&(t=this._getFirstLevelChildren(Mo).filter(a=>a!==this._element).map(a=>jt.getOrCreateInstance(a,{toggle:!1}))),t.length&&t[0]._isTransitioning||c.trigger(this._element,So).defaultPrevented)return;for(const a of t)a.hide();const i=this._getDimension();this._element.classList.remove(Ot),this._element.classList.add(ie),this._element.style[i]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;const s=()=>{this._isTransitioning=!1,this._element.classList.remove(ie),this._element.classList.add(Ot,Pe),this._element.style[i]="",c.trigger(this._element,Co)},o=`scroll${i[0].toUpperCase()+i.slice(1)}`;this._queueCallback(s,this._element,!0),this._element.style[i]=`${this._element[o]}px`}hide(){if(this._isTransitioning||!this._isShown()||c.trigger(this._element,No).defaultPrevented)return;const e=this._getDimension();this._element.style[e]=`${this._element.getBoundingClientRect()[e]}px`,Yt(this._element),this._element.classList.add(ie),this._element.classList.remove(Ot,Pe);for(const s of this._triggerArray){const r=h.getElementFromSelector(s);r&&!this._isShown(r)&&this._addAriaAndCollapsedClass([s],!1)}this._isTransitioning=!0;const i=()=>{this._isTransitioning=!1,this._element.classList.remove(ie),this._element.classList.add(Ot),c.trigger(this._element,$o)};this._element.style[e]="",this._queueCallback(i,this._element,!0)}_isShown(t=this._element){return t.classList.contains(Pe)}_configAfterMerge(t){return t.toggle=!!t.toggle,t.parent=et(t.parent),t}_getDimension(){return this._element.classList.contains(xo)?Ro:Po}_initializeChildren(){if(!this._config.parent)return;const t=this._getFirstLevelChildren(qe);for(const e of t){const i=h.getElementFromSelector(e);i&&this._addAriaAndCollapsedClass([e],this._isShown(i))}}_getFirstLevelChildren(t){const e=h.find(Io,this._config.parent);return h.find(t,this._config.parent).filter(i=>!e.includes(i))}_addAriaAndCollapsedClass(t,e){if(t.length)for(const i of t)i.classList.toggle(Lo,!e),i.setAttribute("aria-expanded",e)}static jQueryInterface(t){const e={};return typeof t=="string"&&/show|hide/.test(t)&&(e.toggle=!1),this.each(function(){const i=jt.getOrCreateInstance(this,e);if(typeof t=="string"){if(typeof i[t]>"u")throw new TypeError(`No method named "${t}"`);i[t]()}})}}c.on(document,Do,qe,function(n){(n.target.tagName==="A"||n.delegateTarget&&n.delegateTarget.tagName==="A")&&n.preventDefault();for(const t of h.getMultipleElementsFromSelector(this))jt.getOrCreateInstance(t,{toggle:!1}).toggle()});F(jt);const Vn="dropdown",Ho="bs.dropdown",mt=`.${Ho}`,fn=".data-api",Wo="Escape",Hn="Tab",Bo="ArrowUp",Wn="ArrowDown",Fo=2,jo=`hide${mt}`,Ko=`hidden${mt}`,Yo=`show${mt}`,Uo=`shown${mt}`,qi=`click${mt}${fn}`,Xi=`keydown${mt}${fn}`,zo=`keyup${mt}${fn}`,wt="show",Go="dropup",qo="dropend",Xo="dropstart",Qo="dropup-center",Jo="dropdown-center",ht='[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled)',Zo=`${ht}.${wt}`,ue=".dropdown-menu",ta=".navbar",ea=".navbar-nav",na=".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",ia=W()?"top-end":"top-start",sa=W()?"top-start":"top-end",ra=W()?"bottom-end":"bottom-start",oa=W()?"bottom-start":"bottom-end",aa=W()?"left-start":"right-start",ca=W()?"right-start":"left-start",la="top",ua="bottom",da={autoClose:!0,boundary:"clippingParents",display:"dynamic",offset:[0,2],popperConfig:null,reference:"toggle"},ha={autoClose:"(boolean|string)",boundary:"(string|element)",display:"string",offset:"(array|string|function)",popperConfig:"(null|object|function)",reference:"(string|element|object)"};class z extends Y{constructor(t,e){super(t,e),this._popper=null,this._parent=this._element.parentNode,this._menu=h.next(this._element,ue)[0]||h.prev(this._element,ue)[0]||h.findOne(ue,this._parent),this._inNavbar=this._detectNavbar()}static get Default(){return da}static get DefaultType(){return ha}static get NAME(){return Vn}toggle(){return this._isShown()?this.hide():this.show()}show(){if(nt(this._element)||this._isShown())return;const t={relatedTarget:this._element};if(!c.trigger(this._element,Yo,t).defaultPrevented){if(this._createPopper(),"ontouchstart"in document.documentElement&&!this._parent.closest(ea))for(const i of[].concat(...document.body.children))c.on(i,"mouseover",he);this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.add(wt),this._element.classList.add(wt),c.trigger(this._element,Uo,t)}}hide(){if(nt(this._element)||!this._isShown())return;const t={relatedTarget:this._element};this._completeHide(t)}dispose(){this._popper&&this._popper.destroy(),super.dispose()}update(){this._inNavbar=this._detectNavbar(),this._popper&&this._popper.update()}_completeHide(t){if(!c.trigger(this._element,jo,t).defaultPrevented){if("ontouchstart"in document.documentElement)for(const i of[].concat(...document.body.children))c.off(i,"mouseover",he);this._popper&&this._popper.destroy(),this._menu.classList.remove(wt),this._element.classList.remove(wt),this._element.setAttribute("aria-expanded","false"),X.removeDataAttribute(this._menu,"popper"),c.trigger(this._element,Ko,t)}}_getConfig(t){if(t=super._getConfig(t),typeof t.reference=="object"&&!q(t.reference)&&typeof t.reference.getBoundingClientRect!="function")throw new TypeError(`${Vn.toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`);return t}_createPopper(){if(typeof Ii>"u")throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org)");let t=this._element;this._config.reference==="parent"?t=this._parent:q(this._config.reference)?t=et(this._config.reference):typeof this._config.reference=="object"&&(t=this._config.reference);const e=this._getPopperConfig();this._popper=un(t,this._menu,e)}_isShown(){return this._menu.classList.contains(wt)}_getPlacement(){const t=this._parent;if(t.classList.contains(qo))return aa;if(t.classList.contains(Xo))return ca;if(t.classList.contains(Qo))return la;if(t.classList.contains(Jo))return ua;const e=getComputedStyle(this._menu).getPropertyValue("--bs-position").trim()==="end";return t.classList.contains(Go)?e?sa:ia:e?oa:ra}_detectNavbar(){return this._element.closest(ta)!==null}_getOffset(){const{offset:t}=this._config;return typeof t=="string"?t.split(",").map(e=>Number.parseInt(e,10)):typeof t=="function"?e=>t(e,this._element):t}_getPopperConfig(){const t={placement:this._getPlacement(),modifiers:[{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"offset",options:{offset:this._getOffset()}}]};return(this._inNavbar||this._config.display==="static")&&(X.setDataAttribute(this._menu,"popper","static"),t.modifiers=[{name:"applyStyles",enabled:!1}]),{...t,...R(this._config.popperConfig,[t])}}_selectMenuItem({key:t,target:e}){const i=h.find(na,this._menu).filter(s=>Rt(s));i.length&&dn(i,e,t===Wn,!i.includes(e)).focus()}static jQueryInterface(t){return this.each(function(){const e=z.getOrCreateInstance(this,t);if(typeof t=="string"){if(typeof e[t]>"u")throw new TypeError(`No method named "${t}"`);e[t]()}})}static clearMenus(t){if(t.button===Fo||t.type==="keyup"&&t.key!==Hn)return;const e=h.find(Zo);for(const i of e){const s=z.getInstance(i);if(!s||s._config.autoClose===!1)continue;const r=t.composedPath(),o=r.includes(s._menu);if(r.includes(s._element)||s._config.autoClose==="inside"&&!o||s._config.autoClose==="outside"&&o||s._menu.contains(t.target)&&(t.type==="keyup"&&t.key===Hn||/input|select|option|textarea|form/i.test(t.target.tagName)))continue;const a={relatedTarget:s._element};t.type==="click"&&(a.clickEvent=t),s._completeHide(a)}}static dataApiKeydownHandler(t){const e=/input|textarea/i.test(t.target.tagName),i=t.key===Wo,s=[Bo,Wn].includes(t.key);if(!s&&!i||e&&!i)return;t.preventDefault();const r=this.matches(ht)?this:h.prev(this,ht)[0]||h.next(this,ht)[0]||h.findOne(ht,t.delegateTarget.parentNode),o=z.getOrCreateInstance(r);if(s){t.stopPropagation(),o.show(),o._selectMenuItem(t);return}o._isShown()&&(t.stopPropagation(),o.hide(),r.focus())}}c.on(document,Xi,ht,z.dataApiKeydownHandler);c.on(document,Xi,ue,z.dataApiKeydownHandler);c.on(document,qi,z.clearMenus);c.on(document,zo,z.clearMenus);c.on(document,qi,ht,function(n){n.preventDefault(),z.getOrCreateInstance(this).toggle()});F(z);const Qi="backdrop",fa="fade",Bn="show",Fn=`mousedown.bs.${Qi}`,pa={className:"modal-backdrop",clickCallback:null,isAnimated:!1,isVisible:!0,rootElement:"body"},_a={className:"string",clickCallback:"(function|null)",isAnimated:"boolean",isVisible:"boolean",rootElement:"(element|string)"};class Ji extends Ut{constructor(t){super(),this._config=this._getConfig(t),this._isAppended=!1,this._element=null}static get Default(){return pa}static get DefaultType(){return _a}static get NAME(){return Qi}show(t){if(!this._config.isVisible){R(t);return}this._append();const e=this._getElement();this._config.isAnimated&&Yt(e),e.classList.add(Bn),this._emulateAnimation(()=>{R(t)})}hide(t){if(!this._config.isVisible){R(t);return}this._getElement().classList.remove(Bn),this._emulateAnimation(()=>{this.dispose(),R(t)})}dispose(){this._isAppended&&(c.off(this._element,Fn),this._element.remove(),this._isAppended=!1)}_getElement(){if(!this._element){const t=document.createElement("div");t.className=this._config.className,this._config.isAnimated&&t.classList.add(fa),this._element=t}return this._element}_configAfterMerge(t){return t.rootElement=et(t.rootElement),t}_append(){if(this._isAppended)return;const t=this._getElement();this._config.rootElement.append(t),c.on(t,Fn,()=>{R(this._config.clickCallback)}),this._isAppended=!0}_emulateAnimation(t){ki(t,this._getElement(),this._config.isAnimated)}}const ga="focustrap",ma="bs.focustrap",pe=`.${ma}`,Ea=`focusin${pe}`,va=`keydown.tab${pe}`,ba="Tab",Aa="forward",jn="backward",Ta={autofocus:!0,trapElement:null},ya={autofocus:"boolean",trapElement:"element"};class Zi extends Ut{constructor(t){super(),this._config=this._getConfig(t),this._isActive=!1,this._lastTabNavDirection=null}static get Default(){return Ta}static get DefaultType(){return ya}static get NAME(){return ga}activate(){this._isActive||(this._config.autofocus&&this._config.trapElement.focus(),c.off(document,pe),c.on(document,Ea,t=>this._handleFocusin(t)),c.on(document,va,t=>this._handleKeydown(t)),this._isActive=!0)}deactivate(){this._isActive&&(this._isActive=!1,c.off(document,pe))}_handleFocusin(t){const{trapElement:e}=this._config;if(t.target===document||t.target===e||e.contains(t.target))return;const i=h.focusableChildren(e);i.length===0?e.focus():this._lastTabNavDirection===jn?i[i.length-1].focus():i[0].focus()}_handleKeydown(t){t.key===ba&&(this._lastTabNavDirection=t.shiftKey?jn:Aa)}}const Kn=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",Yn=".sticky-top",se="padding-right",Un="margin-right";class Xe{constructor(){this._element=document.body}getWidth(){const t=document.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}hide(){const t=this.getWidth();this._disableOverFlow(),this._setElementAttributes(this._element,se,e=>e+t),this._setElementAttributes(Kn,se,e=>e+t),this._setElementAttributes(Yn,Un,e=>e-t)}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,se),this._resetElementAttributes(Kn,se),this._resetElementAttributes(Yn,Un)}isOverflowing(){return this.getWidth()>0}_disableOverFlow(){this._saveInitialAttribute(this._element,"overflow"),this._element.style.overflow="hidden"}_setElementAttributes(t,e,i){const s=this.getWidth(),r=o=>{if(o!==this._element&&window.innerWidth>o.clientWidth+s)return;this._saveInitialAttribute(o,e);const a=window.getComputedStyle(o).getPropertyValue(e);o.style.setProperty(e,`${i(Number.parseFloat(a))}px`)};this._applyManipulationCallback(t,r)}_saveInitialAttribute(t,e){const i=t.style.getPropertyValue(e);i&&X.setDataAttribute(t,e,i)}_resetElementAttributes(t,e){const i=s=>{const r=X.getDataAttribute(s,e);if(r===null){s.style.removeProperty(e);return}X.removeDataAttribute(s,e),s.style.setProperty(e,r)};this._applyManipulationCallback(t,i)}_applyManipulationCallback(t,e){if(q(t)){e(t);return}for(const i of h.find(t,this._element))e(i)}}const wa="modal",Oa="bs.modal",B=`.${Oa}`,Sa=".data-api",Ca="Escape",Na=`hide${B}`,$a=`hidePrevented${B}`,ts=`hidden${B}`,es=`show${B}`,Da=`shown${B}`,La=`resize${B}`,Ia=`click.dismiss${B}`,xa=`mousedown.dismiss${B}`,Ra=`keydown.dismiss${B}`,Pa=`click${B}${Sa}`,zn="modal-open",Ma="fade",Gn="show",Me="modal-static",ka=".modal.show",Va=".modal-dialog",Ha=".modal-body",Wa='[data-bs-toggle="modal"]',Ba={backdrop:!0,focus:!0,keyboard:!0},Fa={backdrop:"(boolean|string)",focus:"boolean",keyboard:"boolean"};class Lt extends Y{constructor(t,e){super(t,e),this._dialog=h.findOne(Va,this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._isTransitioning=!1,this._scrollBar=new Xe,this._addEventListeners()}static get Default(){return Ba}static get DefaultType(){return Fa}static get NAME(){return wa}toggle(t){return this._isShown?this.hide():this.show(t)}show(t){this._isShown||this._isTransitioning||c.trigger(this._element,es,{relatedTarget:t}).defaultPrevented||(this._isShown=!0,this._isTransitioning=!0,this._scrollBar.hide(),document.body.classList.add(zn),this._adjustDialog(),this._backdrop.show(()=>this._showElement(t)))}hide(){!this._isShown||this._isTransitioning||c.trigger(this._element,Na).defaultPrevented||(this._isShown=!1,this._isTransitioning=!0,this._focustrap.deactivate(),this._element.classList.remove(Gn),this._queueCallback(()=>this._hideModal(),this._element,this._isAnimated()))}dispose(){c.off(window,B),c.off(this._dialog,B),this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new Ji({isVisible:!!this._config.backdrop,isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new Zi({trapElement:this._element})}_showElement(t){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 e=h.findOne(Ha,this._dialog);e&&(e.scrollTop=0),Yt(this._element),this._element.classList.add(Gn);const i=()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,c.trigger(this._element,Da,{relatedTarget:t})};this._queueCallback(i,this._dialog,this._isAnimated())}_addEventListeners(){c.on(this._element,Ra,t=>{if(t.key===Ca){if(this._config.keyboard){this.hide();return}this._triggerBackdropTransition()}}),c.on(window,La,()=>{this._isShown&&!this._isTransitioning&&this._adjustDialog()}),c.on(this._element,xa,t=>{c.one(this._element,Ia,e=>{if(!(this._element!==t.target||this._element!==e.target)){if(this._config.backdrop==="static"){this._triggerBackdropTransition();return}this._config.backdrop&&this.hide()}})})}_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(zn),this._resetAdjustments(),this._scrollBar.reset(),c.trigger(this._element,ts)})}_isAnimated(){return this._element.classList.contains(Ma)}_triggerBackdropTransition(){if(c.trigger(this._element,$a).defaultPrevented)return;const e=this._element.scrollHeight>document.documentElement.clientHeight,i=this._element.style.overflowY;i==="hidden"||this._element.classList.contains(Me)||(e||(this._element.style.overflowY="hidden"),this._element.classList.add(Me),this._queueCallback(()=>{this._element.classList.remove(Me),this._queueCallback(()=>{this._element.style.overflowY=i},this._dialog)},this._dialog),this._element.focus())}_adjustDialog(){const t=this._element.scrollHeight>document.documentElement.clientHeight,e=this._scrollBar.getWidth(),i=e>0;if(i&&!t){const s=W()?"paddingLeft":"paddingRight";this._element.style[s]=`${e}px`}if(!i&&t){const s=W()?"paddingRight":"paddingLeft";this._element.style[s]=`${e}px`}}_resetAdjustments(){this._element.style.paddingLeft="",this._element.style.paddingRight=""}static jQueryInterface(t,e){return this.each(function(){const i=Lt.getOrCreateInstance(this,t);if(typeof t=="string"){if(typeof i[t]>"u")throw new TypeError(`No method named "${t}"`);i[t](e)}})}}c.on(document,Pa,Wa,function(n){const t=h.getElementFromSelector(this);["A","AREA"].includes(this.tagName)&&n.preventDefault(),c.one(t,es,s=>{s.defaultPrevented||c.one(t,ts,()=>{Rt(this)&&this.focus()})});const e=h.findOne(ka);e&&Lt.getInstance(e).hide(),Lt.getOrCreateInstance(t).toggle(this)});Ee(Lt);F(Lt);const ja="offcanvas",Ka="bs.offcanvas",J=`.${Ka}`,ns=".data-api",Ya=`load${J}${ns}`,Ua="Escape",qn="show",Xn="showing",Qn="hiding",za="offcanvas-backdrop",is=".offcanvas.show",Ga=`show${J}`,qa=`shown${J}`,Xa=`hide${J}`,Jn=`hidePrevented${J}`,ss=`hidden${J}`,Qa=`resize${J}`,Ja=`click${J}${ns}`,Za=`keydown.dismiss${J}`,tc='[data-bs-toggle="offcanvas"]',ec={backdrop:!0,keyboard:!0,scroll:!1},nc={backdrop:"(boolean|string)",keyboard:"boolean",scroll:"boolean"};class it extends Y{constructor(t,e){super(t,e),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._addEventListeners()}static get Default(){return ec}static get DefaultType(){return nc}static get NAME(){return ja}toggle(t){return this._isShown?this.hide():this.show(t)}show(t){if(this._isShown||c.trigger(this._element,Ga,{relatedTarget:t}).defaultPrevented)return;this._isShown=!0,this._backdrop.show(),this._config.scroll||new Xe().hide(),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.classList.add(Xn);const i=()=>{(!this._config.scroll||this._config.backdrop)&&this._focustrap.activate(),this._element.classList.add(qn),this._element.classList.remove(Xn),c.trigger(this._element,qa,{relatedTarget:t})};this._queueCallback(i,this._element,!0)}hide(){if(!this._isShown||c.trigger(this._element,Xa).defaultPrevented)return;this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.add(Qn),this._backdrop.hide();const e=()=>{this._element.classList.remove(qn,Qn),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._config.scroll||new Xe().reset(),c.trigger(this._element,ss)};this._queueCallback(e,this._element,!0)}dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}_initializeBackDrop(){const t=()=>{if(this._config.backdrop==="static"){c.trigger(this._element,Jn);return}this.hide()},e=!!this._config.backdrop;return new Ji({className:za,isVisible:e,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:e?t:null})}_initializeFocusTrap(){return new Zi({trapElement:this._element})}_addEventListeners(){c.on(this._element,Za,t=>{if(t.key===Ua){if(this._config.keyboard){this.hide();return}c.trigger(this._element,Jn)}})}static jQueryInterface(t){return this.each(function(){const e=it.getOrCreateInstance(this,t);if(typeof t=="string"){if(e[t]===void 0||t.startsWith("_")||t==="constructor")throw new TypeError(`No method named "${t}"`);e[t](this)}})}}c.on(document,Ja,tc,function(n){const t=h.getElementFromSelector(this);if(["A","AREA"].includes(this.tagName)&&n.preventDefault(),nt(this))return;c.one(t,ss,()=>{Rt(this)&&this.focus()});const e=h.findOne(is);e&&e!==t&&it.getInstance(e).hide(),it.getOrCreateInstance(t).toggle(this)});c.on(window,Ya,()=>{for(const n of h.find(is))it.getOrCreateInstance(n).show()});c.on(window,Qa,()=>{for(const n of h.find("[aria-modal][class*=show][class*=offcanvas-]"))getComputedStyle(n).position!=="fixed"&&it.getOrCreateInstance(n).hide()});Ee(it);F(it);const ic=/^aria-[\w-]*$/i,rs={"*":["class","dir","id","lang","role",ic],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:[]},sc=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),rc=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:/?#]*(?:[/?#]|$))/i,oc=(n,t)=>{const e=n.nodeName.toLowerCase();return t.includes(e)?sc.has(e)?!!rc.test(n.nodeValue):!0:t.filter(i=>i instanceof RegExp).some(i=>i.test(e))};function ac(n,t,e){if(!n.length)return n;if(e&&typeof e=="function")return e(n);const s=new window.DOMParser().parseFromString(n,"text/html"),r=[].concat(...s.body.querySelectorAll("*"));for(const o of r){const a=o.nodeName.toLowerCase();if(!Object.keys(t).includes(a)){o.remove();continue}const l=[].concat(...o.attributes),d=[].concat(t["*"]||[],t[a]||[]);for(const u of l)oc(u,d)||o.removeAttribute(u.nodeName)}return s.body.innerHTML}const cc="TemplateFactory",lc={allowList:rs,content:{},extraClass:"",html:!1,sanitize:!0,sanitizeFn:null,template:"
    "},uc={allowList:"object",content:"object",extraClass:"(string|function)",html:"boolean",sanitize:"boolean",sanitizeFn:"(null|function)",template:"string"},dc={entry:"(string|element|function|null)",selector:"(string|element)"};class hc extends Ut{constructor(t){super(),this._config=this._getConfig(t)}static get Default(){return lc}static get DefaultType(){return uc}static get NAME(){return cc}getContent(){return Object.values(this._config.content).map(t=>this._resolvePossibleFunction(t)).filter(Boolean)}hasContent(){return this.getContent().length>0}changeContent(t){return this._checkContent(t),this._config.content={...this._config.content,...t},this}toHtml(){const t=document.createElement("div");t.innerHTML=this._maybeSanitize(this._config.template);for(const[s,r]of Object.entries(this._config.content))this._setContent(t,r,s);const e=t.children[0],i=this._resolvePossibleFunction(this._config.extraClass);return i&&e.classList.add(...i.split(" ")),e}_typeCheckConfig(t){super._typeCheckConfig(t),this._checkContent(t.content)}_checkContent(t){for(const[e,i]of Object.entries(t))super._typeCheckConfig({selector:e,entry:i},dc)}_setContent(t,e,i){const s=h.findOne(i,t);if(s){if(e=this._resolvePossibleFunction(e),!e){s.remove();return}if(q(e)){this._putElementInTemplate(et(e),s);return}if(this._config.html){s.innerHTML=this._maybeSanitize(e);return}s.textContent=e}}_maybeSanitize(t){return this._config.sanitize?ac(t,this._config.allowList,this._config.sanitizeFn):t}_resolvePossibleFunction(t){return R(t,[this])}_putElementInTemplate(t,e){if(this._config.html){e.innerHTML="",e.append(t);return}e.textContent=t.textContent}}const fc="tooltip",pc=new Set(["sanitize","allowList","sanitizeFn"]),ke="fade",_c="modal",re="show",gc=".tooltip-inner",Zn=`.${_c}`,ti="hide.bs.modal",Wt="hover",Ve="focus",mc="click",Ec="manual",vc="hide",bc="hidden",Ac="show",Tc="shown",yc="inserted",wc="click",Oc="focusin",Sc="focusout",Cc="mouseenter",Nc="mouseleave",$c={AUTO:"auto",TOP:"top",RIGHT:W()?"left":"right",BOTTOM:"bottom",LEFT:W()?"right":"left"},Dc={allowList:rs,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:'',title:"",trigger:"hover focus"},Lc={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 Mt extends Y{constructor(t,e){if(typeof Ii>"u")throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org)");super(t,e),this._isEnabled=!0,this._timeout=0,this._isHovered=null,this._activeTrigger={},this._popper=null,this._templateFactory=null,this._newContent=null,this.tip=null,this._setListeners(),this._config.selector||this._fixTitle()}static get Default(){return Dc}static get DefaultType(){return Lc}static get NAME(){return fc}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}toggleEnabled(){this._isEnabled=!this._isEnabled}toggle(){if(this._isEnabled){if(this._activeTrigger.click=!this._activeTrigger.click,this._isShown()){this._leave();return}this._enter()}}dispose(){clearTimeout(this._timeout),c.off(this._element.closest(Zn),ti,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(this._element.style.display==="none")throw new Error("Please use show on visible elements");if(!(this._isWithContent()&&this._isEnabled))return;const t=c.trigger(this._element,this.constructor.eventName(Ac)),i=(Pi(this._element)||this._element.ownerDocument.documentElement).contains(this._element);if(t.defaultPrevented||!i)return;this._disposePopper();const s=this._getTipElement();this._element.setAttribute("aria-describedby",s.getAttribute("id"));const{container:r}=this._config;if(this._element.ownerDocument.documentElement.contains(this.tip)||(r.append(s),c.trigger(this._element,this.constructor.eventName(yc))),this._popper=this._createPopper(s),s.classList.add(re),"ontouchstart"in document.documentElement)for(const a of[].concat(...document.body.children))c.on(a,"mouseover",he);const o=()=>{c.trigger(this._element,this.constructor.eventName(Tc)),this._isHovered===!1&&this._leave(),this._isHovered=!1};this._queueCallback(o,this.tip,this._isAnimated())}hide(){if(!this._isShown()||c.trigger(this._element,this.constructor.eventName(vc)).defaultPrevented)return;if(this._getTipElement().classList.remove(re),"ontouchstart"in document.documentElement)for(const s of[].concat(...document.body.children))c.off(s,"mouseover",he);this._activeTrigger[mc]=!1,this._activeTrigger[Ve]=!1,this._activeTrigger[Wt]=!1,this._isHovered=null;const i=()=>{this._isWithActiveTrigger()||(this._isHovered||this._disposePopper(),this._element.removeAttribute("aria-describedby"),c.trigger(this._element,this.constructor.eventName(bc)))};this._queueCallback(i,this.tip,this._isAnimated())}update(){this._popper&&this._popper.update()}_isWithContent(){return!!this._getTitle()}_getTipElement(){return this.tip||(this.tip=this._createTipElement(this._newContent||this._getContentForTemplate())),this.tip}_createTipElement(t){const e=this._getTemplateFactory(t).toHtml();if(!e)return null;e.classList.remove(ke,re),e.classList.add(`bs-${this.constructor.NAME}-auto`);const i=gr(this.constructor.NAME).toString();return e.setAttribute("id",i),this._isAnimated()&&e.classList.add(ke),e}setContent(t){this._newContent=t,this._isShown()&&(this._disposePopper(),this.show())}_getTemplateFactory(t){return this._templateFactory?this._templateFactory.changeContent(t):this._templateFactory=new hc({...this._config,content:t,extraClass:this._resolvePossibleFunction(this._config.customClass)}),this._templateFactory}_getContentForTemplate(){return{[gc]:this._getTitle()}}_getTitle(){return this._resolvePossibleFunction(this._config.title)||this._element.getAttribute("data-bs-original-title")}_initializeOnDelegatedTarget(t){return this.constructor.getOrCreateInstance(t.delegateTarget,this._getDelegateConfig())}_isAnimated(){return this._config.animation||this.tip&&this.tip.classList.contains(ke)}_isShown(){return this.tip&&this.tip.classList.contains(re)}_createPopper(t){const e=R(this._config.placement,[this,t,this._element]),i=$c[e.toUpperCase()];return un(this._element,t,this._getPopperConfig(i))}_getOffset(){const{offset:t}=this._config;return typeof t=="string"?t.split(",").map(e=>Number.parseInt(e,10)):typeof t=="function"?e=>t(e,this._element):t}_resolvePossibleFunction(t){return R(t,[this._element])}_getPopperConfig(t){const e={placement:t,modifiers:[{name:"flip",options:{fallbackPlacements:this._config.fallbackPlacements}},{name:"offset",options:{offset:this._getOffset()}},{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"arrow",options:{element:`.${this.constructor.NAME}-arrow`}},{name:"preSetPlacement",enabled:!0,phase:"beforeMain",fn:i=>{this._getTipElement().setAttribute("data-popper-placement",i.state.placement)}}]};return{...e,...R(this._config.popperConfig,[e])}}_setListeners(){const t=this._config.trigger.split(" ");for(const e of t)if(e==="click")c.on(this._element,this.constructor.eventName(wc),this._config.selector,i=>{this._initializeOnDelegatedTarget(i).toggle()});else if(e!==Ec){const i=e===Wt?this.constructor.eventName(Cc):this.constructor.eventName(Oc),s=e===Wt?this.constructor.eventName(Nc):this.constructor.eventName(Sc);c.on(this._element,i,this._config.selector,r=>{const o=this._initializeOnDelegatedTarget(r);o._activeTrigger[r.type==="focusin"?Ve:Wt]=!0,o._enter()}),c.on(this._element,s,this._config.selector,r=>{const o=this._initializeOnDelegatedTarget(r);o._activeTrigger[r.type==="focusout"?Ve:Wt]=o._element.contains(r.relatedTarget),o._leave()})}this._hideModalHandler=()=>{this._element&&this.hide()},c.on(this._element.closest(Zn),ti,this._hideModalHandler)}_fixTitle(){const t=this._element.getAttribute("title");t&&(!this._element.getAttribute("aria-label")&&!this._element.textContent.trim()&&this._element.setAttribute("aria-label",t),this._element.setAttribute("data-bs-original-title",t),this._element.removeAttribute("title"))}_enter(){if(this._isShown()||this._isHovered){this._isHovered=!0;return}this._isHovered=!0,this._setTimeout(()=>{this._isHovered&&this.show()},this._config.delay.show)}_leave(){this._isWithActiveTrigger()||(this._isHovered=!1,this._setTimeout(()=>{this._isHovered||this.hide()},this._config.delay.hide))}_setTimeout(t,e){clearTimeout(this._timeout),this._timeout=setTimeout(t,e)}_isWithActiveTrigger(){return Object.values(this._activeTrigger).includes(!0)}_getConfig(t){const e=X.getDataAttributes(this._element);for(const i of Object.keys(e))pc.has(i)&&delete e[i];return t={...e,...typeof t=="object"&&t?t:{}},t=this._mergeConfigObj(t),t=this._configAfterMerge(t),this._typeCheckConfig(t),t}_configAfterMerge(t){return t.container=t.container===!1?document.body:et(t.container),typeof t.delay=="number"&&(t.delay={show:t.delay,hide:t.delay}),typeof t.title=="number"&&(t.title=t.title.toString()),typeof t.content=="number"&&(t.content=t.content.toString()),t}_getDelegateConfig(){const t={};for(const[e,i]of Object.entries(this._config))this.constructor.Default[e]!==i&&(t[e]=i);return t.selector=!1,t.trigger="manual",t}_disposePopper(){this._popper&&(this._popper.destroy(),this._popper=null),this.tip&&(this.tip.remove(),this.tip=null)}static jQueryInterface(t){return this.each(function(){const e=Mt.getOrCreateInstance(this,t);if(typeof t=="string"){if(typeof e[t]>"u")throw new TypeError(`No method named "${t}"`);e[t]()}})}}F(Mt);const Ic="popover",xc=".popover-header",Rc=".popover-body",Pc={...Mt.Default,content:"",offset:[0,8],placement:"right",template:'',trigger:"click"},Mc={...Mt.DefaultType,content:"(null|string|element|function)"};class pn extends Mt{static get Default(){return Pc}static get DefaultType(){return Mc}static get NAME(){return Ic}_isWithContent(){return this._getTitle()||this._getContent()}_getContentForTemplate(){return{[xc]:this._getTitle(),[Rc]:this._getContent()}}_getContent(){return this._resolvePossibleFunction(this._config.content)}static jQueryInterface(t){return this.each(function(){const e=pn.getOrCreateInstance(this,t);if(typeof t=="string"){if(typeof e[t]>"u")throw new TypeError(`No method named "${t}"`);e[t]()}})}}F(pn);const kc="scrollspy",Vc="bs.scrollspy",_n=`.${Vc}`,Hc=".data-api",Wc=`activate${_n}`,ei=`click${_n}`,Bc=`load${_n}${Hc}`,Fc="dropdown-item",At="active",jc='[data-bs-spy="scroll"]',He="[href]",Kc=".nav, .list-group",ni=".nav-link",Yc=".nav-item",Uc=".list-group-item",zc=`${ni}, ${Yc} > ${ni}, ${Uc}`,Gc=".dropdown",qc=".dropdown-toggle",Xc={offset:null,rootMargin:"0px 0px -25%",smoothScroll:!1,target:null,threshold:[.1,.5,1]},Qc={offset:"(number|null)",rootMargin:"string",smoothScroll:"boolean",target:"element",threshold:"array"};class Ae extends Y{constructor(t,e){super(t,e),this._targetLinks=new Map,this._observableSections=new Map,this._rootElement=getComputedStyle(this._element).overflowY==="visible"?null:this._element,this._activeTarget=null,this._observer=null,this._previousScrollData={visibleEntryTop:0,parentScrollTop:0},this.refresh()}static get Default(){return Xc}static get DefaultType(){return Qc}static get NAME(){return kc}refresh(){this._initializeTargetsAndObservables(),this._maybeEnableSmoothScroll(),this._observer?this._observer.disconnect():this._observer=this._getNewObserver();for(const t of this._observableSections.values())this._observer.observe(t)}dispose(){this._observer.disconnect(),super.dispose()}_configAfterMerge(t){return t.target=et(t.target)||document.body,t.rootMargin=t.offset?`${t.offset}px 0px -30%`:t.rootMargin,typeof t.threshold=="string"&&(t.threshold=t.threshold.split(",").map(e=>Number.parseFloat(e))),t}_maybeEnableSmoothScroll(){this._config.smoothScroll&&(c.off(this._config.target,ei),c.on(this._config.target,ei,He,t=>{const e=this._observableSections.get(t.target.hash);if(e){t.preventDefault();const i=this._rootElement||window,s=e.offsetTop-this._element.offsetTop;if(i.scrollTo){i.scrollTo({top:s,behavior:"smooth"});return}i.scrollTop=s}}))}_getNewObserver(){const t={root:this._rootElement,threshold:this._config.threshold,rootMargin:this._config.rootMargin};return new IntersectionObserver(e=>this._observerCallback(e),t)}_observerCallback(t){const e=o=>this._targetLinks.get(`#${o.target.id}`),i=o=>{this._previousScrollData.visibleEntryTop=o.target.offsetTop,this._process(e(o))},s=(this._rootElement||document.documentElement).scrollTop,r=s>=this._previousScrollData.parentScrollTop;this._previousScrollData.parentScrollTop=s;for(const o of t){if(!o.isIntersecting){this._activeTarget=null,this._clearActiveClass(e(o));continue}const a=o.target.offsetTop>=this._previousScrollData.visibleEntryTop;if(r&&a){if(i(o),!s)return;continue}!r&&!a&&i(o)}}_initializeTargetsAndObservables(){this._targetLinks=new Map,this._observableSections=new Map;const t=h.find(He,this._config.target);for(const e of t){if(!e.hash||nt(e))continue;const i=h.findOne(decodeURI(e.hash),this._element);Rt(i)&&(this._targetLinks.set(decodeURI(e.hash),e),this._observableSections.set(e.hash,i))}}_process(t){this._activeTarget!==t&&(this._clearActiveClass(this._config.target),this._activeTarget=t,t.classList.add(At),this._activateParents(t),c.trigger(this._element,Wc,{relatedTarget:t}))}_activateParents(t){if(t.classList.contains(Fc)){h.findOne(qc,t.closest(Gc)).classList.add(At);return}for(const e of h.parents(t,Kc))for(const i of h.prev(e,zc))i.classList.add(At)}_clearActiveClass(t){t.classList.remove(At);const e=h.find(`${He}.${At}`,t);for(const i of e)i.classList.remove(At)}static jQueryInterface(t){return this.each(function(){const e=Ae.getOrCreateInstance(this,t);if(typeof t=="string"){if(e[t]===void 0||t.startsWith("_")||t==="constructor")throw new TypeError(`No method named "${t}"`);e[t]()}})}}c.on(window,Bc,()=>{for(const n of h.find(jc))Ae.getOrCreateInstance(n)});F(Ae);const Jc="tab",Zc="bs.tab",Et=`.${Zc}`,tl=`hide${Et}`,el=`hidden${Et}`,nl=`show${Et}`,il=`shown${Et}`,sl=`click${Et}`,rl=`keydown${Et}`,ol=`load${Et}`,al="ArrowLeft",ii="ArrowRight",cl="ArrowUp",si="ArrowDown",We="Home",ri="End",ft="active",oi="fade",Be="show",ll="dropdown",os=".dropdown-toggle",ul=".dropdown-menu",Fe=`:not(${os})`,dl='.list-group, .nav, [role="tablist"]',hl=".nav-item, .list-group-item",fl=`.nav-link${Fe}, .list-group-item${Fe}, [role="tab"]${Fe}`,as='[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',je=`${fl}, ${as}`,pl=`.${ft}[data-bs-toggle="tab"], .${ft}[data-bs-toggle="pill"], .${ft}[data-bs-toggle="list"]`;class It extends Y{constructor(t){super(t),this._parent=this._element.closest(dl),this._parent&&(this._setInitialAttributes(this._parent,this._getChildren()),c.on(this._element,rl,e=>this._keydown(e)))}static get NAME(){return Jc}show(){const t=this._element;if(this._elemIsActive(t))return;const e=this._getActiveElem(),i=e?c.trigger(e,tl,{relatedTarget:t}):null;c.trigger(t,nl,{relatedTarget:e}).defaultPrevented||i&&i.defaultPrevented||(this._deactivate(e,t),this._activate(t,e))}_activate(t,e){if(!t)return;t.classList.add(ft),this._activate(h.getElementFromSelector(t));const i=()=>{if(t.getAttribute("role")!=="tab"){t.classList.add(Be);return}t.removeAttribute("tabindex"),t.setAttribute("aria-selected",!0),this._toggleDropDown(t,!0),c.trigger(t,il,{relatedTarget:e})};this._queueCallback(i,t,t.classList.contains(oi))}_deactivate(t,e){if(!t)return;t.classList.remove(ft),t.blur(),this._deactivate(h.getElementFromSelector(t));const i=()=>{if(t.getAttribute("role")!=="tab"){t.classList.remove(Be);return}t.setAttribute("aria-selected",!1),t.setAttribute("tabindex","-1"),this._toggleDropDown(t,!1),c.trigger(t,el,{relatedTarget:e})};this._queueCallback(i,t,t.classList.contains(oi))}_keydown(t){if(![al,ii,cl,si,We,ri].includes(t.key))return;t.stopPropagation(),t.preventDefault();const e=this._getChildren().filter(s=>!nt(s));let i;if([We,ri].includes(t.key))i=e[t.key===We?0:e.length-1];else{const s=[ii,si].includes(t.key);i=dn(e,t.target,s,!0)}i&&(i.focus({preventScroll:!0}),It.getOrCreateInstance(i).show())}_getChildren(){return h.find(je,this._parent)}_getActiveElem(){return this._getChildren().find(t=>this._elemIsActive(t))||null}_setInitialAttributes(t,e){this._setAttributeIfNotExists(t,"role","tablist");for(const i of e)this._setInitialAttributesOnChild(i)}_setInitialAttributesOnChild(t){t=this._getInnerElement(t);const e=this._elemIsActive(t),i=this._getOuterElement(t);t.setAttribute("aria-selected",e),i!==t&&this._setAttributeIfNotExists(i,"role","presentation"),e||t.setAttribute("tabindex","-1"),this._setAttributeIfNotExists(t,"role","tab"),this._setInitialAttributesOnTargetPanel(t)}_setInitialAttributesOnTargetPanel(t){const e=h.getElementFromSelector(t);e&&(this._setAttributeIfNotExists(e,"role","tabpanel"),t.id&&this._setAttributeIfNotExists(e,"aria-labelledby",`${t.id}`))}_toggleDropDown(t,e){const i=this._getOuterElement(t);if(!i.classList.contains(ll))return;const s=(r,o)=>{const a=h.findOne(r,i);a&&a.classList.toggle(o,e)};s(os,ft),s(ul,Be),i.setAttribute("aria-expanded",e)}_setAttributeIfNotExists(t,e,i){t.hasAttribute(e)||t.setAttribute(e,i)}_elemIsActive(t){return t.classList.contains(ft)}_getInnerElement(t){return t.matches(je)?t:h.findOne(je,t)}_getOuterElement(t){return t.closest(hl)||t}static jQueryInterface(t){return this.each(function(){const e=It.getOrCreateInstance(this);if(typeof t=="string"){if(e[t]===void 0||t.startsWith("_")||t==="constructor")throw new TypeError(`No method named "${t}"`);e[t]()}})}}c.on(document,sl,as,function(n){["A","AREA"].includes(this.tagName)&&n.preventDefault(),!nt(this)&&It.getOrCreateInstance(this).show()});c.on(window,ol,()=>{for(const n of h.find(pl))It.getOrCreateInstance(n)});F(It);const _l="toast",gl="bs.toast",ot=`.${gl}`,ml=`mouseover${ot}`,El=`mouseout${ot}`,vl=`focusin${ot}`,bl=`focusout${ot}`,Al=`hide${ot}`,Tl=`hidden${ot}`,yl=`show${ot}`,wl=`shown${ot}`,Ol="fade",ai="hide",oe="show",ae="showing",Sl={animation:"boolean",autohide:"boolean",delay:"number"},Cl={animation:!0,autohide:!0,delay:5e3};class Te extends Y{constructor(t,e){super(t,e),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get Default(){return Cl}static get DefaultType(){return Sl}static get NAME(){return _l}show(){if(c.trigger(this._element,yl).defaultPrevented)return;this._clearTimeout(),this._config.animation&&this._element.classList.add(Ol);const e=()=>{this._element.classList.remove(ae),c.trigger(this._element,wl),this._maybeScheduleHide()};this._element.classList.remove(ai),Yt(this._element),this._element.classList.add(oe,ae),this._queueCallback(e,this._element,this._config.animation)}hide(){if(!this.isShown()||c.trigger(this._element,Al).defaultPrevented)return;const e=()=>{this._element.classList.add(ai),this._element.classList.remove(ae,oe),c.trigger(this._element,Tl)};this._element.classList.add(ae),this._queueCallback(e,this._element,this._config.animation)}dispose(){this._clearTimeout(),this.isShown()&&this._element.classList.remove(oe),super.dispose()}isShown(){return this._element.classList.contains(oe)}_maybeScheduleHide(){this._config.autohide&&(this._hasMouseInteraction||this._hasKeyboardInteraction||(this._timeout=setTimeout(()=>{this.hide()},this._config.delay)))}_onInteraction(t,e){switch(t.type){case"mouseover":case"mouseout":{this._hasMouseInteraction=e;break}case"focusin":case"focusout":{this._hasKeyboardInteraction=e;break}}if(e){this._clearTimeout();return}const i=t.relatedTarget;this._element===i||this._element.contains(i)||this._maybeScheduleHide()}_setListeners(){c.on(this._element,ml,t=>this._onInteraction(t,!0)),c.on(this._element,El,t=>this._onInteraction(t,!1)),c.on(this._element,vl,t=>this._onInteraction(t,!0)),c.on(this._element,bl,t=>this._onInteraction(t,!1))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(t){return this.each(function(){const e=Te.getOrCreateInstance(this,t);if(typeof t=="string"){if(typeof e[t]>"u")throw new TypeError(`No method named "${t}"`);e[t](this)}})}}Ee(Te);F(Te);new Ss; + */const tt=new Map,Ne={set(n,t,e){tt.has(n)||tt.set(n,new Map);const i=tt.get(n);if(!i.has(t)&&i.size!==0){console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(i.keys())[0]}.`);return}i.set(t,e)},get(n,t){return tt.has(n)&&tt.get(n).get(t)||null},remove(n,t){if(!tt.has(n))return;const e=tt.get(n);e.delete(t),e.size===0&&tt.delete(n)}},hr=1e6,fr=1e3,Ue="transitionend",Ii=n=>(n&&window.CSS&&window.CSS.escape&&(n=n.replace(/#([^\s"#']+)/g,(t,e)=>`#${CSS.escape(e)}`)),n),pr=n=>n==null?`${n}`:Object.prototype.toString.call(n).match(/\s([a-z]+)/i)[1].toLowerCase(),_r=n=>{do n+=Math.floor(Math.random()*hr);while(document.getElementById(n));return n},gr=n=>{if(!n)return 0;let{transitionDuration:t,transitionDelay:e}=window.getComputedStyle(n);const i=Number.parseFloat(t),s=Number.parseFloat(e);return!i&&!s?0:(t=t.split(",")[0],e=e.split(",")[0],(Number.parseFloat(t)+Number.parseFloat(e))*fr)},xi=n=>{n.dispatchEvent(new Event(Ue))},q=n=>!n||typeof n!="object"?!1:(typeof n.jquery<"u"&&(n=n[0]),typeof n.nodeType<"u"),et=n=>q(n)?n.jquery?n[0]:n:typeof n=="string"&&n.length>0?document.querySelector(Ii(n)):null,Rt=n=>{if(!q(n)||n.getClientRects().length===0)return!1;const t=getComputedStyle(n).getPropertyValue("visibility")==="visible",e=n.closest("details:not([open])");if(!e)return t;if(e!==n){const i=n.closest("summary");if(i&&i.parentNode!==e||i===null)return!1}return t},nt=n=>!n||n.nodeType!==Node.ELEMENT_NODE||n.classList.contains("disabled")?!0:typeof n.disabled<"u"?n.disabled:n.hasAttribute("disabled")&&n.getAttribute("disabled")!=="false",Ri=n=>{if(!document.documentElement.attachShadow)return null;if(typeof n.getRootNode=="function"){const t=n.getRootNode();return t instanceof ShadowRoot?t:null}return n instanceof ShadowRoot?n:n.parentNode?Ri(n.parentNode):null},de=()=>{},Yt=n=>{n.offsetHeight},Pi=()=>window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?window.jQuery:null,$e=[],mr=n=>{document.readyState==="loading"?($e.length||document.addEventListener("DOMContentLoaded",()=>{for(const t of $e)t()}),$e.push(n)):n()},W=()=>document.documentElement.dir==="rtl",F=n=>{mr(()=>{const t=Pi();if(t){const e=n.NAME,i=t.fn[e];t.fn[e]=n.jQueryInterface,t.fn[e].Constructor=n,t.fn[e].noConflict=()=>(t.fn[e]=i,n.jQueryInterface)}})},R=(n,t=[],e=n)=>typeof n=="function"?n(...t):e,Mi=(n,t,e=!0)=>{if(!e){R(n);return}const s=gr(t)+5;let r=!1;const o=({target:a})=>{a===t&&(r=!0,t.removeEventListener(Ue,o),R(n))};t.addEventListener(Ue,o),setTimeout(()=>{r||xi(t)},s)},un=(n,t,e,i)=>{const s=n.length;let r=n.indexOf(t);return r===-1?!e&&i?n[s-1]:n[0]:(r+=e?1:-1,i&&(r=(r+s)%s),n[Math.max(0,Math.min(r,s-1))])},Er=/[^.]*(?=\..*)\.|.*/,vr=/\..*/,br=/::\d+$/,De={};let xn=1;const ki={mouseenter:"mouseover",mouseleave:"mouseout"},Ar=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 Vi(n,t){return t&&`${t}::${xn++}`||n.uidEvent||xn++}function Hi(n){const t=Vi(n);return n.uidEvent=t,De[t]=De[t]||{},De[t]}function Tr(n,t){return function e(i){return dn(i,{delegateTarget:n}),e.oneOff&&c.off(n,i.type,t),t.apply(n,[i])}}function yr(n,t,e){return function i(s){const r=n.querySelectorAll(t);for(let{target:o}=s;o&&o!==this;o=o.parentNode)for(const a of r)if(a===o)return dn(s,{delegateTarget:o}),i.oneOff&&c.off(n,s.type,t,e),e.apply(o,[s])}}function Wi(n,t,e=null){return Object.values(n).find(i=>i.callable===t&&i.delegationSelector===e)}function Bi(n,t,e){const i=typeof t=="string",s=i?e:t||e;let r=Fi(n);return Ar.has(r)||(r=n),[i,s,r]}function Rn(n,t,e,i,s){if(typeof t!="string"||!n)return;let[r,o,a]=Bi(t,e,i);t in ki&&(o=(A=>function(g){if(!g.relatedTarget||g.relatedTarget!==g.delegateTarget&&!g.delegateTarget.contains(g.relatedTarget))return A.call(this,g)})(o));const l=Hi(n),d=l[a]||(l[a]={}),u=Wi(d,o,r?e:null);if(u){u.oneOff=u.oneOff&&s;return}const p=Vi(o,t.replace(Er,"")),_=r?yr(n,e,o):Tr(n,o);_.delegationSelector=r?e:null,_.callable=o,_.oneOff=s,_.uidEvent=p,d[p]=_,n.addEventListener(a,_,r)}function ze(n,t,e,i,s){const r=Wi(t[e],i,s);r&&(n.removeEventListener(e,r,!!s),delete t[e][r.uidEvent])}function wr(n,t,e,i){const s=t[e]||{};for(const[r,o]of Object.entries(s))r.includes(i)&&ze(n,t,e,o.callable,o.delegationSelector)}function Fi(n){return n=n.replace(vr,""),ki[n]||n}const c={on(n,t,e,i){Rn(n,t,e,i,!1)},one(n,t,e,i){Rn(n,t,e,i,!0)},off(n,t,e,i){if(typeof t!="string"||!n)return;const[s,r,o]=Bi(t,e,i),a=o!==t,l=Hi(n),d=l[o]||{},u=t.startsWith(".");if(typeof r<"u"){if(!Object.keys(d).length)return;ze(n,l,o,r,s?e:null);return}if(u)for(const p of Object.keys(l))wr(n,l,p,t.slice(1));for(const[p,_]of Object.entries(d)){const f=p.replace(br,"");(!a||t.includes(f))&&ze(n,l,o,_.callable,_.delegationSelector)}},trigger(n,t,e){if(typeof t!="string"||!n)return null;const i=Pi(),s=Fi(t),r=t!==s;let o=null,a=!0,l=!0,d=!1;r&&i&&(o=i.Event(t,e),i(n).trigger(o),a=!o.isPropagationStopped(),l=!o.isImmediatePropagationStopped(),d=o.isDefaultPrevented());const u=dn(new Event(t,{bubbles:a,cancelable:!0}),e);return d&&u.preventDefault(),l&&n.dispatchEvent(u),u.defaultPrevented&&o&&o.preventDefault(),u}};function dn(n,t={}){for(const[e,i]of Object.entries(t))try{n[e]=i}catch{Object.defineProperty(n,e,{configurable:!0,get(){return i}})}return n}function Pn(n){if(n==="true")return!0;if(n==="false")return!1;if(n===Number(n).toString())return Number(n);if(n===""||n==="null")return null;if(typeof n!="string")return n;try{return JSON.parse(decodeURIComponent(n))}catch{return n}}function Le(n){return n.replace(/[A-Z]/g,t=>`-${t.toLowerCase()}`)}const X={setDataAttribute(n,t,e){n.setAttribute(`data-bs-${Le(t)}`,e)},removeDataAttribute(n,t){n.removeAttribute(`data-bs-${Le(t)}`)},getDataAttributes(n){if(!n)return{};const t={},e=Object.keys(n.dataset).filter(i=>i.startsWith("bs")&&!i.startsWith("bsConfig"));for(const i of e){let s=i.replace(/^bs/,"");s=s.charAt(0).toLowerCase()+s.slice(1,s.length),t[s]=Pn(n.dataset[i])}return t},getDataAttribute(n,t){return Pn(n.getAttribute(`data-bs-${Le(t)}`))}};class Ut{static get Default(){return{}}static get DefaultType(){return{}}static get NAME(){throw new Error('You have to implement the static method "NAME", for each component!')}_getConfig(t){return t=this._mergeConfigObj(t),t=this._configAfterMerge(t),this._typeCheckConfig(t),t}_configAfterMerge(t){return t}_mergeConfigObj(t,e){const i=q(e)?X.getDataAttribute(e,"config"):{};return{...this.constructor.Default,...typeof i=="object"?i:{},...q(e)?X.getDataAttributes(e):{},...typeof t=="object"?t:{}}}_typeCheckConfig(t,e=this.constructor.DefaultType){for(const[i,s]of Object.entries(e)){const r=t[i],o=q(r)?"element":pr(r);if(!new RegExp(s).test(o))throw new TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${i}" provided type "${o}" but expected type "${s}".`)}}}const Or="5.3.3";class Y extends Ut{constructor(t,e){super(),t=et(t),t&&(this._element=t,this._config=this._getConfig(e),Ne.set(this._element,this.constructor.DATA_KEY,this))}dispose(){Ne.remove(this._element,this.constructor.DATA_KEY),c.off(this._element,this.constructor.EVENT_KEY);for(const t of Object.getOwnPropertyNames(this))this[t]=null}_queueCallback(t,e,i=!0){Mi(t,e,i)}_getConfig(t){return t=this._mergeConfigObj(t,this._element),t=this._configAfterMerge(t),this._typeCheckConfig(t),t}static getInstance(t){return Ne.get(et(t),this.DATA_KEY)}static getOrCreateInstance(t,e={}){return this.getInstance(t)||new this(t,typeof e=="object"?e:null)}static get VERSION(){return Or}static get DATA_KEY(){return`bs.${this.NAME}`}static get EVENT_KEY(){return`.${this.DATA_KEY}`}static eventName(t){return`${t}${this.EVENT_KEY}`}}const Ie=n=>{let t=n.getAttribute("data-bs-target");if(!t||t==="#"){let e=n.getAttribute("href");if(!e||!e.includes("#")&&!e.startsWith("."))return null;e.includes("#")&&!e.startsWith("#")&&(e=`#${e.split("#")[1]}`),t=e&&e!=="#"?e.trim():null}return t?t.split(",").map(e=>Ii(e)).join(","):null},h={find(n,t=document.documentElement){return[].concat(...Element.prototype.querySelectorAll.call(t,n))},findOne(n,t=document.documentElement){return Element.prototype.querySelector.call(t,n)},children(n,t){return[].concat(...n.children).filter(e=>e.matches(t))},parents(n,t){const e=[];let i=n.parentNode.closest(t);for(;i;)e.push(i),i=i.parentNode.closest(t);return e},prev(n,t){let e=n.previousElementSibling;for(;e;){if(e.matches(t))return[e];e=e.previousElementSibling}return[]},next(n,t){let e=n.nextElementSibling;for(;e;){if(e.matches(t))return[e];e=e.nextElementSibling}return[]},focusableChildren(n){const t=["a","button","input","textarea","select","details","[tabindex]",'[contenteditable="true"]'].map(e=>`${e}:not([tabindex^="-"])`).join(",");return this.find(t,n).filter(e=>!nt(e)&&Rt(e))},getSelectorFromElement(n){const t=Ie(n);return t&&h.findOne(t)?t:null},getElementFromSelector(n){const t=Ie(n);return t?h.findOne(t):null},getMultipleElementsFromSelector(n){const t=Ie(n);return t?h.find(t):[]}},me=(n,t="hide")=>{const e=`click.dismiss${n.EVENT_KEY}`,i=n.NAME;c.on(document,e,`[data-bs-dismiss="${i}"]`,function(s){if(["A","AREA"].includes(this.tagName)&&s.preventDefault(),nt(this))return;const r=h.getElementFromSelector(this)||this.closest(`.${i}`);n.getOrCreateInstance(r)[t]()})},Sr="alert",Cr="bs.alert",ji=`.${Cr}`,Nr=`close${ji}`,$r=`closed${ji}`,Dr="fade",Lr="show";class Ee extends Y{static get NAME(){return Sr}close(){if(c.trigger(this._element,Nr).defaultPrevented)return;this._element.classList.remove(Lr);const e=this._element.classList.contains(Dr);this._queueCallback(()=>this._destroyElement(),this._element,e)}_destroyElement(){this._element.remove(),c.trigger(this._element,$r),this.dispose()}static jQueryInterface(t){return this.each(function(){const e=Ee.getOrCreateInstance(this);if(typeof t=="string"){if(e[t]===void 0||t.startsWith("_")||t==="constructor")throw new TypeError(`No method named "${t}"`);e[t](this)}})}}me(Ee,"close");F(Ee);const Ir="button",xr="bs.button",Rr=`.${xr}`,Pr=".data-api",Mr="active",Mn='[data-bs-toggle="button"]',kr=`click${Rr}${Pr}`;class ve extends Y{static get NAME(){return Ir}toggle(){this._element.setAttribute("aria-pressed",this._element.classList.toggle(Mr))}static jQueryInterface(t){return this.each(function(){const e=ve.getOrCreateInstance(this);t==="toggle"&&e[t]()})}}c.on(document,kr,Mn,n=>{n.preventDefault();const t=n.target.closest(Mn);ve.getOrCreateInstance(t).toggle()});F(ve);const Vr="swipe",Pt=".bs.swipe",Hr=`touchstart${Pt}`,Wr=`touchmove${Pt}`,Br=`touchend${Pt}`,Fr=`pointerdown${Pt}`,jr=`pointerup${Pt}`,Kr="touch",Yr="pen",Ur="pointer-event",zr=40,Gr={endCallback:null,leftCallback:null,rightCallback:null},qr={endCallback:"(function|null)",leftCallback:"(function|null)",rightCallback:"(function|null)"};class he extends Ut{constructor(t,e){super(),this._element=t,!(!t||!he.isSupported())&&(this._config=this._getConfig(e),this._deltaX=0,this._supportPointerEvents=!!window.PointerEvent,this._initEvents())}static get Default(){return Gr}static get DefaultType(){return qr}static get NAME(){return Vr}dispose(){c.off(this._element,Pt)}_start(t){if(!this._supportPointerEvents){this._deltaX=t.touches[0].clientX;return}this._eventIsPointerPenTouch(t)&&(this._deltaX=t.clientX)}_end(t){this._eventIsPointerPenTouch(t)&&(this._deltaX=t.clientX-this._deltaX),this._handleSwipe(),R(this._config.endCallback)}_move(t){this._deltaX=t.touches&&t.touches.length>1?0:t.touches[0].clientX-this._deltaX}_handleSwipe(){const t=Math.abs(this._deltaX);if(t<=zr)return;const e=t/this._deltaX;this._deltaX=0,e&&R(e>0?this._config.rightCallback:this._config.leftCallback)}_initEvents(){this._supportPointerEvents?(c.on(this._element,Fr,t=>this._start(t)),c.on(this._element,jr,t=>this._end(t)),this._element.classList.add(Ur)):(c.on(this._element,Hr,t=>this._start(t)),c.on(this._element,Wr,t=>this._move(t)),c.on(this._element,Br,t=>this._end(t)))}_eventIsPointerPenTouch(t){return this._supportPointerEvents&&(t.pointerType===Yr||t.pointerType===Kr)}static isSupported(){return"ontouchstart"in document.documentElement||navigator.maxTouchPoints>0}}const Xr="carousel",Qr="bs.carousel",rt=`.${Qr}`,Ki=".data-api",Jr="ArrowLeft",Zr="ArrowRight",to=500,Ht="next",bt="prev",yt="left",ce="right",eo=`slide${rt}`,xe=`slid${rt}`,no=`keydown${rt}`,io=`mouseenter${rt}`,so=`mouseleave${rt}`,ro=`dragstart${rt}`,oo=`load${rt}${Ki}`,ao=`click${rt}${Ki}`,Yi="carousel",ee="active",co="slide",lo="carousel-item-end",uo="carousel-item-start",ho="carousel-item-next",fo="carousel-item-prev",Ui=".active",zi=".carousel-item",po=Ui+zi,_o=".carousel-item img",go=".carousel-indicators",mo="[data-bs-slide], [data-bs-slide-to]",Eo='[data-bs-ride="carousel"]',vo={[Jr]:ce,[Zr]:yt},bo={interval:5e3,keyboard:!0,pause:"hover",ride:!1,touch:!0,wrap:!0},Ao={interval:"(number|boolean)",keyboard:"boolean",pause:"(string|boolean)",ride:"(boolean|string)",touch:"boolean",wrap:"boolean"};class zt extends Y{constructor(t,e){super(t,e),this._interval=null,this._activeElement=null,this._isSliding=!1,this.touchTimeout=null,this._swipeHelper=null,this._indicatorsElement=h.findOne(go,this._element),this._addEventListeners(),this._config.ride===Yi&&this.cycle()}static get Default(){return bo}static get DefaultType(){return Ao}static get NAME(){return Xr}next(){this._slide(Ht)}nextWhenVisible(){!document.hidden&&Rt(this._element)&&this.next()}prev(){this._slide(bt)}pause(){this._isSliding&&xi(this._element),this._clearInterval()}cycle(){this._clearInterval(),this._updateInterval(),this._interval=setInterval(()=>this.nextWhenVisible(),this._config.interval)}_maybeEnableCycle(){if(this._config.ride){if(this._isSliding){c.one(this._element,xe,()=>this.cycle());return}this.cycle()}}to(t){const e=this._getItems();if(t>e.length-1||t<0)return;if(this._isSliding){c.one(this._element,xe,()=>this.to(t));return}const i=this._getItemIndex(this._getActive());if(i===t)return;const s=t>i?Ht:bt;this._slide(s,e[t])}dispose(){this._swipeHelper&&this._swipeHelper.dispose(),super.dispose()}_configAfterMerge(t){return t.defaultInterval=t.interval,t}_addEventListeners(){this._config.keyboard&&c.on(this._element,no,t=>this._keydown(t)),this._config.pause==="hover"&&(c.on(this._element,io,()=>this.pause()),c.on(this._element,so,()=>this._maybeEnableCycle())),this._config.touch&&he.isSupported()&&this._addTouchEventListeners()}_addTouchEventListeners(){for(const i of h.find(_o,this._element))c.on(i,ro,s=>s.preventDefault());const e={leftCallback:()=>this._slide(this._directionToOrder(yt)),rightCallback:()=>this._slide(this._directionToOrder(ce)),endCallback:()=>{this._config.pause==="hover"&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout(()=>this._maybeEnableCycle(),to+this._config.interval))}};this._swipeHelper=new he(this._element,e)}_keydown(t){if(/input|textarea/i.test(t.target.tagName))return;const e=vo[t.key];e&&(t.preventDefault(),this._slide(this._directionToOrder(e)))}_getItemIndex(t){return this._getItems().indexOf(t)}_setActiveIndicatorElement(t){if(!this._indicatorsElement)return;const e=h.findOne(Ui,this._indicatorsElement);e.classList.remove(ee),e.removeAttribute("aria-current");const i=h.findOne(`[data-bs-slide-to="${t}"]`,this._indicatorsElement);i&&(i.classList.add(ee),i.setAttribute("aria-current","true"))}_updateInterval(){const t=this._activeElement||this._getActive();if(!t)return;const e=Number.parseInt(t.getAttribute("data-bs-interval"),10);this._config.interval=e||this._config.defaultInterval}_slide(t,e=null){if(this._isSliding)return;const i=this._getActive(),s=t===Ht,r=e||un(this._getItems(),i,s,this._config.wrap);if(r===i)return;const o=this._getItemIndex(r),a=f=>c.trigger(this._element,f,{relatedTarget:r,direction:this._orderToDirection(t),from:this._getItemIndex(i),to:o});if(a(eo).defaultPrevented||!i||!r)return;const d=!!this._interval;this.pause(),this._isSliding=!0,this._setActiveIndicatorElement(o),this._activeElement=r;const u=s?uo:lo,p=s?ho:fo;r.classList.add(p),Yt(r),i.classList.add(u),r.classList.add(u);const _=()=>{r.classList.remove(u,p),r.classList.add(ee),i.classList.remove(ee,p,u),this._isSliding=!1,a(xe)};this._queueCallback(_,i,this._isAnimated()),d&&this.cycle()}_isAnimated(){return this._element.classList.contains(co)}_getActive(){return h.findOne(po,this._element)}_getItems(){return h.find(zi,this._element)}_clearInterval(){this._interval&&(clearInterval(this._interval),this._interval=null)}_directionToOrder(t){return W()?t===yt?bt:Ht:t===yt?Ht:bt}_orderToDirection(t){return W()?t===bt?yt:ce:t===bt?ce:yt}static jQueryInterface(t){return this.each(function(){const e=zt.getOrCreateInstance(this,t);if(typeof t=="number"){e.to(t);return}if(typeof t=="string"){if(e[t]===void 0||t.startsWith("_")||t==="constructor")throw new TypeError(`No method named "${t}"`);e[t]()}})}}c.on(document,ao,mo,function(n){const t=h.getElementFromSelector(this);if(!t||!t.classList.contains(Yi))return;n.preventDefault();const e=zt.getOrCreateInstance(t),i=this.getAttribute("data-bs-slide-to");if(i){e.to(i),e._maybeEnableCycle();return}if(X.getDataAttribute(this,"slide")==="next"){e.next(),e._maybeEnableCycle();return}e.prev(),e._maybeEnableCycle()});c.on(window,oo,()=>{const n=h.find(Eo);for(const t of n)zt.getOrCreateInstance(t)});F(zt);const To="collapse",yo="bs.collapse",Gt=`.${yo}`,wo=".data-api",Oo=`show${Gt}`,So=`shown${Gt}`,Co=`hide${Gt}`,No=`hidden${Gt}`,$o=`click${Gt}${wo}`,Re="show",Ot="collapse",ne="collapsing",Do="collapsed",Lo=`:scope .${Ot} .${Ot}`,Io="collapse-horizontal",xo="width",Ro="height",Po=".collapse.show, .collapse.collapsing",Ge='[data-bs-toggle="collapse"]',Mo={parent:null,toggle:!0},ko={parent:"(null|element)",toggle:"boolean"};class jt extends Y{constructor(t,e){super(t,e),this._isTransitioning=!1,this._triggerArray=[];const i=h.find(Ge);for(const s of i){const r=h.getSelectorFromElement(s),o=h.find(r).filter(a=>a===this._element);r!==null&&o.length&&this._triggerArray.push(s)}this._initializeChildren(),this._config.parent||this._addAriaAndCollapsedClass(this._triggerArray,this._isShown()),this._config.toggle&&this.toggle()}static get Default(){return Mo}static get DefaultType(){return ko}static get NAME(){return To}toggle(){this._isShown()?this.hide():this.show()}show(){if(this._isTransitioning||this._isShown())return;let t=[];if(this._config.parent&&(t=this._getFirstLevelChildren(Po).filter(a=>a!==this._element).map(a=>jt.getOrCreateInstance(a,{toggle:!1}))),t.length&&t[0]._isTransitioning||c.trigger(this._element,Oo).defaultPrevented)return;for(const a of t)a.hide();const i=this._getDimension();this._element.classList.remove(Ot),this._element.classList.add(ne),this._element.style[i]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;const s=()=>{this._isTransitioning=!1,this._element.classList.remove(ne),this._element.classList.add(Ot,Re),this._element.style[i]="",c.trigger(this._element,So)},o=`scroll${i[0].toUpperCase()+i.slice(1)}`;this._queueCallback(s,this._element,!0),this._element.style[i]=`${this._element[o]}px`}hide(){if(this._isTransitioning||!this._isShown()||c.trigger(this._element,Co).defaultPrevented)return;const e=this._getDimension();this._element.style[e]=`${this._element.getBoundingClientRect()[e]}px`,Yt(this._element),this._element.classList.add(ne),this._element.classList.remove(Ot,Re);for(const s of this._triggerArray){const r=h.getElementFromSelector(s);r&&!this._isShown(r)&&this._addAriaAndCollapsedClass([s],!1)}this._isTransitioning=!0;const i=()=>{this._isTransitioning=!1,this._element.classList.remove(ne),this._element.classList.add(Ot),c.trigger(this._element,No)};this._element.style[e]="",this._queueCallback(i,this._element,!0)}_isShown(t=this._element){return t.classList.contains(Re)}_configAfterMerge(t){return t.toggle=!!t.toggle,t.parent=et(t.parent),t}_getDimension(){return this._element.classList.contains(Io)?xo:Ro}_initializeChildren(){if(!this._config.parent)return;const t=this._getFirstLevelChildren(Ge);for(const e of t){const i=h.getElementFromSelector(e);i&&this._addAriaAndCollapsedClass([e],this._isShown(i))}}_getFirstLevelChildren(t){const e=h.find(Lo,this._config.parent);return h.find(t,this._config.parent).filter(i=>!e.includes(i))}_addAriaAndCollapsedClass(t,e){if(t.length)for(const i of t)i.classList.toggle(Do,!e),i.setAttribute("aria-expanded",e)}static jQueryInterface(t){const e={};return typeof t=="string"&&/show|hide/.test(t)&&(e.toggle=!1),this.each(function(){const i=jt.getOrCreateInstance(this,e);if(typeof t=="string"){if(typeof i[t]>"u")throw new TypeError(`No method named "${t}"`);i[t]()}})}}c.on(document,$o,Ge,function(n){(n.target.tagName==="A"||n.delegateTarget&&n.delegateTarget.tagName==="A")&&n.preventDefault();for(const t of h.getMultipleElementsFromSelector(this))jt.getOrCreateInstance(t,{toggle:!1}).toggle()});F(jt);const kn="dropdown",Vo="bs.dropdown",mt=`.${Vo}`,hn=".data-api",Ho="Escape",Vn="Tab",Wo="ArrowUp",Hn="ArrowDown",Bo=2,Fo=`hide${mt}`,jo=`hidden${mt}`,Ko=`show${mt}`,Yo=`shown${mt}`,Gi=`click${mt}${hn}`,qi=`keydown${mt}${hn}`,Uo=`keyup${mt}${hn}`,wt="show",zo="dropup",Go="dropend",qo="dropstart",Xo="dropup-center",Qo="dropdown-center",ht='[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled)',Jo=`${ht}.${wt}`,le=".dropdown-menu",Zo=".navbar",ta=".navbar-nav",ea=".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",na=W()?"top-end":"top-start",ia=W()?"top-start":"top-end",sa=W()?"bottom-end":"bottom-start",ra=W()?"bottom-start":"bottom-end",oa=W()?"left-start":"right-start",aa=W()?"right-start":"left-start",ca="top",la="bottom",ua={autoClose:!0,boundary:"clippingParents",display:"dynamic",offset:[0,2],popperConfig:null,reference:"toggle"},da={autoClose:"(boolean|string)",boundary:"(string|element)",display:"string",offset:"(array|string|function)",popperConfig:"(null|object|function)",reference:"(string|element|object)"};class z extends Y{constructor(t,e){super(t,e),this._popper=null,this._parent=this._element.parentNode,this._menu=h.next(this._element,le)[0]||h.prev(this._element,le)[0]||h.findOne(le,this._parent),this._inNavbar=this._detectNavbar()}static get Default(){return ua}static get DefaultType(){return da}static get NAME(){return kn}toggle(){return this._isShown()?this.hide():this.show()}show(){if(nt(this._element)||this._isShown())return;const t={relatedTarget:this._element};if(!c.trigger(this._element,Ko,t).defaultPrevented){if(this._createPopper(),"ontouchstart"in document.documentElement&&!this._parent.closest(ta))for(const i of[].concat(...document.body.children))c.on(i,"mouseover",de);this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.add(wt),this._element.classList.add(wt),c.trigger(this._element,Yo,t)}}hide(){if(nt(this._element)||!this._isShown())return;const t={relatedTarget:this._element};this._completeHide(t)}dispose(){this._popper&&this._popper.destroy(),super.dispose()}update(){this._inNavbar=this._detectNavbar(),this._popper&&this._popper.update()}_completeHide(t){if(!c.trigger(this._element,Fo,t).defaultPrevented){if("ontouchstart"in document.documentElement)for(const i of[].concat(...document.body.children))c.off(i,"mouseover",de);this._popper&&this._popper.destroy(),this._menu.classList.remove(wt),this._element.classList.remove(wt),this._element.setAttribute("aria-expanded","false"),X.removeDataAttribute(this._menu,"popper"),c.trigger(this._element,jo,t)}}_getConfig(t){if(t=super._getConfig(t),typeof t.reference=="object"&&!q(t.reference)&&typeof t.reference.getBoundingClientRect!="function")throw new TypeError(`${kn.toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`);return t}_createPopper(){if(typeof Li>"u")throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org)");let t=this._element;this._config.reference==="parent"?t=this._parent:q(this._config.reference)?t=et(this._config.reference):typeof this._config.reference=="object"&&(t=this._config.reference);const e=this._getPopperConfig();this._popper=ln(t,this._menu,e)}_isShown(){return this._menu.classList.contains(wt)}_getPlacement(){const t=this._parent;if(t.classList.contains(Go))return oa;if(t.classList.contains(qo))return aa;if(t.classList.contains(Xo))return ca;if(t.classList.contains(Qo))return la;const e=getComputedStyle(this._menu).getPropertyValue("--bs-position").trim()==="end";return t.classList.contains(zo)?e?ia:na:e?ra:sa}_detectNavbar(){return this._element.closest(Zo)!==null}_getOffset(){const{offset:t}=this._config;return typeof t=="string"?t.split(",").map(e=>Number.parseInt(e,10)):typeof t=="function"?e=>t(e,this._element):t}_getPopperConfig(){const t={placement:this._getPlacement(),modifiers:[{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"offset",options:{offset:this._getOffset()}}]};return(this._inNavbar||this._config.display==="static")&&(X.setDataAttribute(this._menu,"popper","static"),t.modifiers=[{name:"applyStyles",enabled:!1}]),{...t,...R(this._config.popperConfig,[t])}}_selectMenuItem({key:t,target:e}){const i=h.find(ea,this._menu).filter(s=>Rt(s));i.length&&un(i,e,t===Hn,!i.includes(e)).focus()}static jQueryInterface(t){return this.each(function(){const e=z.getOrCreateInstance(this,t);if(typeof t=="string"){if(typeof e[t]>"u")throw new TypeError(`No method named "${t}"`);e[t]()}})}static clearMenus(t){if(t.button===Bo||t.type==="keyup"&&t.key!==Vn)return;const e=h.find(Jo);for(const i of e){const s=z.getInstance(i);if(!s||s._config.autoClose===!1)continue;const r=t.composedPath(),o=r.includes(s._menu);if(r.includes(s._element)||s._config.autoClose==="inside"&&!o||s._config.autoClose==="outside"&&o||s._menu.contains(t.target)&&(t.type==="keyup"&&t.key===Vn||/input|select|option|textarea|form/i.test(t.target.tagName)))continue;const a={relatedTarget:s._element};t.type==="click"&&(a.clickEvent=t),s._completeHide(a)}}static dataApiKeydownHandler(t){const e=/input|textarea/i.test(t.target.tagName),i=t.key===Ho,s=[Wo,Hn].includes(t.key);if(!s&&!i||e&&!i)return;t.preventDefault();const r=this.matches(ht)?this:h.prev(this,ht)[0]||h.next(this,ht)[0]||h.findOne(ht,t.delegateTarget.parentNode),o=z.getOrCreateInstance(r);if(s){t.stopPropagation(),o.show(),o._selectMenuItem(t);return}o._isShown()&&(t.stopPropagation(),o.hide(),r.focus())}}c.on(document,qi,ht,z.dataApiKeydownHandler);c.on(document,qi,le,z.dataApiKeydownHandler);c.on(document,Gi,z.clearMenus);c.on(document,Uo,z.clearMenus);c.on(document,Gi,ht,function(n){n.preventDefault(),z.getOrCreateInstance(this).toggle()});F(z);const Xi="backdrop",ha="fade",Wn="show",Bn=`mousedown.bs.${Xi}`,fa={className:"modal-backdrop",clickCallback:null,isAnimated:!1,isVisible:!0,rootElement:"body"},pa={className:"string",clickCallback:"(function|null)",isAnimated:"boolean",isVisible:"boolean",rootElement:"(element|string)"};class Qi extends Ut{constructor(t){super(),this._config=this._getConfig(t),this._isAppended=!1,this._element=null}static get Default(){return fa}static get DefaultType(){return pa}static get NAME(){return Xi}show(t){if(!this._config.isVisible){R(t);return}this._append();const e=this._getElement();this._config.isAnimated&&Yt(e),e.classList.add(Wn),this._emulateAnimation(()=>{R(t)})}hide(t){if(!this._config.isVisible){R(t);return}this._getElement().classList.remove(Wn),this._emulateAnimation(()=>{this.dispose(),R(t)})}dispose(){this._isAppended&&(c.off(this._element,Bn),this._element.remove(),this._isAppended=!1)}_getElement(){if(!this._element){const t=document.createElement("div");t.className=this._config.className,this._config.isAnimated&&t.classList.add(ha),this._element=t}return this._element}_configAfterMerge(t){return t.rootElement=et(t.rootElement),t}_append(){if(this._isAppended)return;const t=this._getElement();this._config.rootElement.append(t),c.on(t,Bn,()=>{R(this._config.clickCallback)}),this._isAppended=!0}_emulateAnimation(t){Mi(t,this._getElement(),this._config.isAnimated)}}const _a="focustrap",ga="bs.focustrap",fe=`.${ga}`,ma=`focusin${fe}`,Ea=`keydown.tab${fe}`,va="Tab",ba="forward",Fn="backward",Aa={autofocus:!0,trapElement:null},Ta={autofocus:"boolean",trapElement:"element"};class Ji extends Ut{constructor(t){super(),this._config=this._getConfig(t),this._isActive=!1,this._lastTabNavDirection=null}static get Default(){return Aa}static get DefaultType(){return Ta}static get NAME(){return _a}activate(){this._isActive||(this._config.autofocus&&this._config.trapElement.focus(),c.off(document,fe),c.on(document,ma,t=>this._handleFocusin(t)),c.on(document,Ea,t=>this._handleKeydown(t)),this._isActive=!0)}deactivate(){this._isActive&&(this._isActive=!1,c.off(document,fe))}_handleFocusin(t){const{trapElement:e}=this._config;if(t.target===document||t.target===e||e.contains(t.target))return;const i=h.focusableChildren(e);i.length===0?e.focus():this._lastTabNavDirection===Fn?i[i.length-1].focus():i[0].focus()}_handleKeydown(t){t.key===va&&(this._lastTabNavDirection=t.shiftKey?Fn:ba)}}const jn=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",Kn=".sticky-top",ie="padding-right",Yn="margin-right";class qe{constructor(){this._element=document.body}getWidth(){const t=document.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}hide(){const t=this.getWidth();this._disableOverFlow(),this._setElementAttributes(this._element,ie,e=>e+t),this._setElementAttributes(jn,ie,e=>e+t),this._setElementAttributes(Kn,Yn,e=>e-t)}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,ie),this._resetElementAttributes(jn,ie),this._resetElementAttributes(Kn,Yn)}isOverflowing(){return this.getWidth()>0}_disableOverFlow(){this._saveInitialAttribute(this._element,"overflow"),this._element.style.overflow="hidden"}_setElementAttributes(t,e,i){const s=this.getWidth(),r=o=>{if(o!==this._element&&window.innerWidth>o.clientWidth+s)return;this._saveInitialAttribute(o,e);const a=window.getComputedStyle(o).getPropertyValue(e);o.style.setProperty(e,`${i(Number.parseFloat(a))}px`)};this._applyManipulationCallback(t,r)}_saveInitialAttribute(t,e){const i=t.style.getPropertyValue(e);i&&X.setDataAttribute(t,e,i)}_resetElementAttributes(t,e){const i=s=>{const r=X.getDataAttribute(s,e);if(r===null){s.style.removeProperty(e);return}X.removeDataAttribute(s,e),s.style.setProperty(e,r)};this._applyManipulationCallback(t,i)}_applyManipulationCallback(t,e){if(q(t)){e(t);return}for(const i of h.find(t,this._element))e(i)}}const ya="modal",wa="bs.modal",B=`.${wa}`,Oa=".data-api",Sa="Escape",Ca=`hide${B}`,Na=`hidePrevented${B}`,Zi=`hidden${B}`,ts=`show${B}`,$a=`shown${B}`,Da=`resize${B}`,La=`click.dismiss${B}`,Ia=`mousedown.dismiss${B}`,xa=`keydown.dismiss${B}`,Ra=`click${B}${Oa}`,Un="modal-open",Pa="fade",zn="show",Pe="modal-static",Ma=".modal.show",ka=".modal-dialog",Va=".modal-body",Ha='[data-bs-toggle="modal"]',Wa={backdrop:!0,focus:!0,keyboard:!0},Ba={backdrop:"(boolean|string)",focus:"boolean",keyboard:"boolean"};class Lt extends Y{constructor(t,e){super(t,e),this._dialog=h.findOne(ka,this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._isTransitioning=!1,this._scrollBar=new qe,this._addEventListeners()}static get Default(){return Wa}static get DefaultType(){return Ba}static get NAME(){return ya}toggle(t){return this._isShown?this.hide():this.show(t)}show(t){this._isShown||this._isTransitioning||c.trigger(this._element,ts,{relatedTarget:t}).defaultPrevented||(this._isShown=!0,this._isTransitioning=!0,this._scrollBar.hide(),document.body.classList.add(Un),this._adjustDialog(),this._backdrop.show(()=>this._showElement(t)))}hide(){!this._isShown||this._isTransitioning||c.trigger(this._element,Ca).defaultPrevented||(this._isShown=!1,this._isTransitioning=!0,this._focustrap.deactivate(),this._element.classList.remove(zn),this._queueCallback(()=>this._hideModal(),this._element,this._isAnimated()))}dispose(){c.off(window,B),c.off(this._dialog,B),this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new Qi({isVisible:!!this._config.backdrop,isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new Ji({trapElement:this._element})}_showElement(t){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 e=h.findOne(Va,this._dialog);e&&(e.scrollTop=0),Yt(this._element),this._element.classList.add(zn);const i=()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,c.trigger(this._element,$a,{relatedTarget:t})};this._queueCallback(i,this._dialog,this._isAnimated())}_addEventListeners(){c.on(this._element,xa,t=>{if(t.key===Sa){if(this._config.keyboard){this.hide();return}this._triggerBackdropTransition()}}),c.on(window,Da,()=>{this._isShown&&!this._isTransitioning&&this._adjustDialog()}),c.on(this._element,Ia,t=>{c.one(this._element,La,e=>{if(!(this._element!==t.target||this._element!==e.target)){if(this._config.backdrop==="static"){this._triggerBackdropTransition();return}this._config.backdrop&&this.hide()}})})}_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(Un),this._resetAdjustments(),this._scrollBar.reset(),c.trigger(this._element,Zi)})}_isAnimated(){return this._element.classList.contains(Pa)}_triggerBackdropTransition(){if(c.trigger(this._element,Na).defaultPrevented)return;const e=this._element.scrollHeight>document.documentElement.clientHeight,i=this._element.style.overflowY;i==="hidden"||this._element.classList.contains(Pe)||(e||(this._element.style.overflowY="hidden"),this._element.classList.add(Pe),this._queueCallback(()=>{this._element.classList.remove(Pe),this._queueCallback(()=>{this._element.style.overflowY=i},this._dialog)},this._dialog),this._element.focus())}_adjustDialog(){const t=this._element.scrollHeight>document.documentElement.clientHeight,e=this._scrollBar.getWidth(),i=e>0;if(i&&!t){const s=W()?"paddingLeft":"paddingRight";this._element.style[s]=`${e}px`}if(!i&&t){const s=W()?"paddingRight":"paddingLeft";this._element.style[s]=`${e}px`}}_resetAdjustments(){this._element.style.paddingLeft="",this._element.style.paddingRight=""}static jQueryInterface(t,e){return this.each(function(){const i=Lt.getOrCreateInstance(this,t);if(typeof t=="string"){if(typeof i[t]>"u")throw new TypeError(`No method named "${t}"`);i[t](e)}})}}c.on(document,Ra,Ha,function(n){const t=h.getElementFromSelector(this);["A","AREA"].includes(this.tagName)&&n.preventDefault(),c.one(t,ts,s=>{s.defaultPrevented||c.one(t,Zi,()=>{Rt(this)&&this.focus()})});const e=h.findOne(Ma);e&&Lt.getInstance(e).hide(),Lt.getOrCreateInstance(t).toggle(this)});me(Lt);F(Lt);const Fa="offcanvas",ja="bs.offcanvas",J=`.${ja}`,es=".data-api",Ka=`load${J}${es}`,Ya="Escape",Gn="show",qn="showing",Xn="hiding",Ua="offcanvas-backdrop",ns=".offcanvas.show",za=`show${J}`,Ga=`shown${J}`,qa=`hide${J}`,Qn=`hidePrevented${J}`,is=`hidden${J}`,Xa=`resize${J}`,Qa=`click${J}${es}`,Ja=`keydown.dismiss${J}`,Za='[data-bs-toggle="offcanvas"]',tc={backdrop:!0,keyboard:!0,scroll:!1},ec={backdrop:"(boolean|string)",keyboard:"boolean",scroll:"boolean"};class it extends Y{constructor(t,e){super(t,e),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._addEventListeners()}static get Default(){return tc}static get DefaultType(){return ec}static get NAME(){return Fa}toggle(t){return this._isShown?this.hide():this.show(t)}show(t){if(this._isShown||c.trigger(this._element,za,{relatedTarget:t}).defaultPrevented)return;this._isShown=!0,this._backdrop.show(),this._config.scroll||new qe().hide(),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.classList.add(qn);const i=()=>{(!this._config.scroll||this._config.backdrop)&&this._focustrap.activate(),this._element.classList.add(Gn),this._element.classList.remove(qn),c.trigger(this._element,Ga,{relatedTarget:t})};this._queueCallback(i,this._element,!0)}hide(){if(!this._isShown||c.trigger(this._element,qa).defaultPrevented)return;this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.add(Xn),this._backdrop.hide();const e=()=>{this._element.classList.remove(Gn,Xn),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._config.scroll||new qe().reset(),c.trigger(this._element,is)};this._queueCallback(e,this._element,!0)}dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}_initializeBackDrop(){const t=()=>{if(this._config.backdrop==="static"){c.trigger(this._element,Qn);return}this.hide()},e=!!this._config.backdrop;return new Qi({className:Ua,isVisible:e,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:e?t:null})}_initializeFocusTrap(){return new Ji({trapElement:this._element})}_addEventListeners(){c.on(this._element,Ja,t=>{if(t.key===Ya){if(this._config.keyboard){this.hide();return}c.trigger(this._element,Qn)}})}static jQueryInterface(t){return this.each(function(){const e=it.getOrCreateInstance(this,t);if(typeof t=="string"){if(e[t]===void 0||t.startsWith("_")||t==="constructor")throw new TypeError(`No method named "${t}"`);e[t](this)}})}}c.on(document,Qa,Za,function(n){const t=h.getElementFromSelector(this);if(["A","AREA"].includes(this.tagName)&&n.preventDefault(),nt(this))return;c.one(t,is,()=>{Rt(this)&&this.focus()});const e=h.findOne(ns);e&&e!==t&&it.getInstance(e).hide(),it.getOrCreateInstance(t).toggle(this)});c.on(window,Ka,()=>{for(const n of h.find(ns))it.getOrCreateInstance(n).show()});c.on(window,Xa,()=>{for(const n of h.find("[aria-modal][class*=show][class*=offcanvas-]"))getComputedStyle(n).position!=="fixed"&&it.getOrCreateInstance(n).hide()});me(it);F(it);const nc=/^aria-[\w-]*$/i,ss={"*":["class","dir","id","lang","role",nc],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:[]},ic=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),sc=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:/?#]*(?:[/?#]|$))/i,rc=(n,t)=>{const e=n.nodeName.toLowerCase();return t.includes(e)?ic.has(e)?!!sc.test(n.nodeValue):!0:t.filter(i=>i instanceof RegExp).some(i=>i.test(e))};function oc(n,t,e){if(!n.length)return n;if(e&&typeof e=="function")return e(n);const s=new window.DOMParser().parseFromString(n,"text/html"),r=[].concat(...s.body.querySelectorAll("*"));for(const o of r){const a=o.nodeName.toLowerCase();if(!Object.keys(t).includes(a)){o.remove();continue}const l=[].concat(...o.attributes),d=[].concat(t["*"]||[],t[a]||[]);for(const u of l)rc(u,d)||o.removeAttribute(u.nodeName)}return s.body.innerHTML}const ac="TemplateFactory",cc={allowList:ss,content:{},extraClass:"",html:!1,sanitize:!0,sanitizeFn:null,template:"
    "},lc={allowList:"object",content:"object",extraClass:"(string|function)",html:"boolean",sanitize:"boolean",sanitizeFn:"(null|function)",template:"string"},uc={entry:"(string|element|function|null)",selector:"(string|element)"};class dc extends Ut{constructor(t){super(),this._config=this._getConfig(t)}static get Default(){return cc}static get DefaultType(){return lc}static get NAME(){return ac}getContent(){return Object.values(this._config.content).map(t=>this._resolvePossibleFunction(t)).filter(Boolean)}hasContent(){return this.getContent().length>0}changeContent(t){return this._checkContent(t),this._config.content={...this._config.content,...t},this}toHtml(){const t=document.createElement("div");t.innerHTML=this._maybeSanitize(this._config.template);for(const[s,r]of Object.entries(this._config.content))this._setContent(t,r,s);const e=t.children[0],i=this._resolvePossibleFunction(this._config.extraClass);return i&&e.classList.add(...i.split(" ")),e}_typeCheckConfig(t){super._typeCheckConfig(t),this._checkContent(t.content)}_checkContent(t){for(const[e,i]of Object.entries(t))super._typeCheckConfig({selector:e,entry:i},uc)}_setContent(t,e,i){const s=h.findOne(i,t);if(s){if(e=this._resolvePossibleFunction(e),!e){s.remove();return}if(q(e)){this._putElementInTemplate(et(e),s);return}if(this._config.html){s.innerHTML=this._maybeSanitize(e);return}s.textContent=e}}_maybeSanitize(t){return this._config.sanitize?oc(t,this._config.allowList,this._config.sanitizeFn):t}_resolvePossibleFunction(t){return R(t,[this])}_putElementInTemplate(t,e){if(this._config.html){e.innerHTML="",e.append(t);return}e.textContent=t.textContent}}const hc="tooltip",fc=new Set(["sanitize","allowList","sanitizeFn"]),Me="fade",pc="modal",se="show",_c=".tooltip-inner",Jn=`.${pc}`,Zn="hide.bs.modal",Wt="hover",ke="focus",gc="click",mc="manual",Ec="hide",vc="hidden",bc="show",Ac="shown",Tc="inserted",yc="click",wc="focusin",Oc="focusout",Sc="mouseenter",Cc="mouseleave",Nc={AUTO:"auto",TOP:"top",RIGHT:W()?"left":"right",BOTTOM:"bottom",LEFT:W()?"right":"left"},$c={allowList:ss,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:'',title:"",trigger:"hover focus"},Dc={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 Mt extends Y{constructor(t,e){if(typeof Li>"u")throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org)");super(t,e),this._isEnabled=!0,this._timeout=0,this._isHovered=null,this._activeTrigger={},this._popper=null,this._templateFactory=null,this._newContent=null,this.tip=null,this._setListeners(),this._config.selector||this._fixTitle()}static get Default(){return $c}static get DefaultType(){return Dc}static get NAME(){return hc}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}toggleEnabled(){this._isEnabled=!this._isEnabled}toggle(){if(this._isEnabled){if(this._activeTrigger.click=!this._activeTrigger.click,this._isShown()){this._leave();return}this._enter()}}dispose(){clearTimeout(this._timeout),c.off(this._element.closest(Jn),Zn,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(this._element.style.display==="none")throw new Error("Please use show on visible elements");if(!(this._isWithContent()&&this._isEnabled))return;const t=c.trigger(this._element,this.constructor.eventName(bc)),i=(Ri(this._element)||this._element.ownerDocument.documentElement).contains(this._element);if(t.defaultPrevented||!i)return;this._disposePopper();const s=this._getTipElement();this._element.setAttribute("aria-describedby",s.getAttribute("id"));const{container:r}=this._config;if(this._element.ownerDocument.documentElement.contains(this.tip)||(r.append(s),c.trigger(this._element,this.constructor.eventName(Tc))),this._popper=this._createPopper(s),s.classList.add(se),"ontouchstart"in document.documentElement)for(const a of[].concat(...document.body.children))c.on(a,"mouseover",de);const o=()=>{c.trigger(this._element,this.constructor.eventName(Ac)),this._isHovered===!1&&this._leave(),this._isHovered=!1};this._queueCallback(o,this.tip,this._isAnimated())}hide(){if(!this._isShown()||c.trigger(this._element,this.constructor.eventName(Ec)).defaultPrevented)return;if(this._getTipElement().classList.remove(se),"ontouchstart"in document.documentElement)for(const s of[].concat(...document.body.children))c.off(s,"mouseover",de);this._activeTrigger[gc]=!1,this._activeTrigger[ke]=!1,this._activeTrigger[Wt]=!1,this._isHovered=null;const i=()=>{this._isWithActiveTrigger()||(this._isHovered||this._disposePopper(),this._element.removeAttribute("aria-describedby"),c.trigger(this._element,this.constructor.eventName(vc)))};this._queueCallback(i,this.tip,this._isAnimated())}update(){this._popper&&this._popper.update()}_isWithContent(){return!!this._getTitle()}_getTipElement(){return this.tip||(this.tip=this._createTipElement(this._newContent||this._getContentForTemplate())),this.tip}_createTipElement(t){const e=this._getTemplateFactory(t).toHtml();if(!e)return null;e.classList.remove(Me,se),e.classList.add(`bs-${this.constructor.NAME}-auto`);const i=_r(this.constructor.NAME).toString();return e.setAttribute("id",i),this._isAnimated()&&e.classList.add(Me),e}setContent(t){this._newContent=t,this._isShown()&&(this._disposePopper(),this.show())}_getTemplateFactory(t){return this._templateFactory?this._templateFactory.changeContent(t):this._templateFactory=new dc({...this._config,content:t,extraClass:this._resolvePossibleFunction(this._config.customClass)}),this._templateFactory}_getContentForTemplate(){return{[_c]:this._getTitle()}}_getTitle(){return this._resolvePossibleFunction(this._config.title)||this._element.getAttribute("data-bs-original-title")}_initializeOnDelegatedTarget(t){return this.constructor.getOrCreateInstance(t.delegateTarget,this._getDelegateConfig())}_isAnimated(){return this._config.animation||this.tip&&this.tip.classList.contains(Me)}_isShown(){return this.tip&&this.tip.classList.contains(se)}_createPopper(t){const e=R(this._config.placement,[this,t,this._element]),i=Nc[e.toUpperCase()];return ln(this._element,t,this._getPopperConfig(i))}_getOffset(){const{offset:t}=this._config;return typeof t=="string"?t.split(",").map(e=>Number.parseInt(e,10)):typeof t=="function"?e=>t(e,this._element):t}_resolvePossibleFunction(t){return R(t,[this._element])}_getPopperConfig(t){const e={placement:t,modifiers:[{name:"flip",options:{fallbackPlacements:this._config.fallbackPlacements}},{name:"offset",options:{offset:this._getOffset()}},{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"arrow",options:{element:`.${this.constructor.NAME}-arrow`}},{name:"preSetPlacement",enabled:!0,phase:"beforeMain",fn:i=>{this._getTipElement().setAttribute("data-popper-placement",i.state.placement)}}]};return{...e,...R(this._config.popperConfig,[e])}}_setListeners(){const t=this._config.trigger.split(" ");for(const e of t)if(e==="click")c.on(this._element,this.constructor.eventName(yc),this._config.selector,i=>{this._initializeOnDelegatedTarget(i).toggle()});else if(e!==mc){const i=e===Wt?this.constructor.eventName(Sc):this.constructor.eventName(wc),s=e===Wt?this.constructor.eventName(Cc):this.constructor.eventName(Oc);c.on(this._element,i,this._config.selector,r=>{const o=this._initializeOnDelegatedTarget(r);o._activeTrigger[r.type==="focusin"?ke:Wt]=!0,o._enter()}),c.on(this._element,s,this._config.selector,r=>{const o=this._initializeOnDelegatedTarget(r);o._activeTrigger[r.type==="focusout"?ke:Wt]=o._element.contains(r.relatedTarget),o._leave()})}this._hideModalHandler=()=>{this._element&&this.hide()},c.on(this._element.closest(Jn),Zn,this._hideModalHandler)}_fixTitle(){const t=this._element.getAttribute("title");t&&(!this._element.getAttribute("aria-label")&&!this._element.textContent.trim()&&this._element.setAttribute("aria-label",t),this._element.setAttribute("data-bs-original-title",t),this._element.removeAttribute("title"))}_enter(){if(this._isShown()||this._isHovered){this._isHovered=!0;return}this._isHovered=!0,this._setTimeout(()=>{this._isHovered&&this.show()},this._config.delay.show)}_leave(){this._isWithActiveTrigger()||(this._isHovered=!1,this._setTimeout(()=>{this._isHovered||this.hide()},this._config.delay.hide))}_setTimeout(t,e){clearTimeout(this._timeout),this._timeout=setTimeout(t,e)}_isWithActiveTrigger(){return Object.values(this._activeTrigger).includes(!0)}_getConfig(t){const e=X.getDataAttributes(this._element);for(const i of Object.keys(e))fc.has(i)&&delete e[i];return t={...e,...typeof t=="object"&&t?t:{}},t=this._mergeConfigObj(t),t=this._configAfterMerge(t),this._typeCheckConfig(t),t}_configAfterMerge(t){return t.container=t.container===!1?document.body:et(t.container),typeof t.delay=="number"&&(t.delay={show:t.delay,hide:t.delay}),typeof t.title=="number"&&(t.title=t.title.toString()),typeof t.content=="number"&&(t.content=t.content.toString()),t}_getDelegateConfig(){const t={};for(const[e,i]of Object.entries(this._config))this.constructor.Default[e]!==i&&(t[e]=i);return t.selector=!1,t.trigger="manual",t}_disposePopper(){this._popper&&(this._popper.destroy(),this._popper=null),this.tip&&(this.tip.remove(),this.tip=null)}static jQueryInterface(t){return this.each(function(){const e=Mt.getOrCreateInstance(this,t);if(typeof t=="string"){if(typeof e[t]>"u")throw new TypeError(`No method named "${t}"`);e[t]()}})}}F(Mt);const Lc="popover",Ic=".popover-header",xc=".popover-body",Rc={...Mt.Default,content:"",offset:[0,8],placement:"right",template:'',trigger:"click"},Pc={...Mt.DefaultType,content:"(null|string|element|function)"};class fn extends Mt{static get Default(){return Rc}static get DefaultType(){return Pc}static get NAME(){return Lc}_isWithContent(){return this._getTitle()||this._getContent()}_getContentForTemplate(){return{[Ic]:this._getTitle(),[xc]:this._getContent()}}_getContent(){return this._resolvePossibleFunction(this._config.content)}static jQueryInterface(t){return this.each(function(){const e=fn.getOrCreateInstance(this,t);if(typeof t=="string"){if(typeof e[t]>"u")throw new TypeError(`No method named "${t}"`);e[t]()}})}}F(fn);const Mc="scrollspy",kc="bs.scrollspy",pn=`.${kc}`,Vc=".data-api",Hc=`activate${pn}`,ti=`click${pn}`,Wc=`load${pn}${Vc}`,Bc="dropdown-item",At="active",Fc='[data-bs-spy="scroll"]',Ve="[href]",jc=".nav, .list-group",ei=".nav-link",Kc=".nav-item",Yc=".list-group-item",Uc=`${ei}, ${Kc} > ${ei}, ${Yc}`,zc=".dropdown",Gc=".dropdown-toggle",qc={offset:null,rootMargin:"0px 0px -25%",smoothScroll:!1,target:null,threshold:[.1,.5,1]},Xc={offset:"(number|null)",rootMargin:"string",smoothScroll:"boolean",target:"element",threshold:"array"};class be extends Y{constructor(t,e){super(t,e),this._targetLinks=new Map,this._observableSections=new Map,this._rootElement=getComputedStyle(this._element).overflowY==="visible"?null:this._element,this._activeTarget=null,this._observer=null,this._previousScrollData={visibleEntryTop:0,parentScrollTop:0},this.refresh()}static get Default(){return qc}static get DefaultType(){return Xc}static get NAME(){return Mc}refresh(){this._initializeTargetsAndObservables(),this._maybeEnableSmoothScroll(),this._observer?this._observer.disconnect():this._observer=this._getNewObserver();for(const t of this._observableSections.values())this._observer.observe(t)}dispose(){this._observer.disconnect(),super.dispose()}_configAfterMerge(t){return t.target=et(t.target)||document.body,t.rootMargin=t.offset?`${t.offset}px 0px -30%`:t.rootMargin,typeof t.threshold=="string"&&(t.threshold=t.threshold.split(",").map(e=>Number.parseFloat(e))),t}_maybeEnableSmoothScroll(){this._config.smoothScroll&&(c.off(this._config.target,ti),c.on(this._config.target,ti,Ve,t=>{const e=this._observableSections.get(t.target.hash);if(e){t.preventDefault();const i=this._rootElement||window,s=e.offsetTop-this._element.offsetTop;if(i.scrollTo){i.scrollTo({top:s,behavior:"smooth"});return}i.scrollTop=s}}))}_getNewObserver(){const t={root:this._rootElement,threshold:this._config.threshold,rootMargin:this._config.rootMargin};return new IntersectionObserver(e=>this._observerCallback(e),t)}_observerCallback(t){const e=o=>this._targetLinks.get(`#${o.target.id}`),i=o=>{this._previousScrollData.visibleEntryTop=o.target.offsetTop,this._process(e(o))},s=(this._rootElement||document.documentElement).scrollTop,r=s>=this._previousScrollData.parentScrollTop;this._previousScrollData.parentScrollTop=s;for(const o of t){if(!o.isIntersecting){this._activeTarget=null,this._clearActiveClass(e(o));continue}const a=o.target.offsetTop>=this._previousScrollData.visibleEntryTop;if(r&&a){if(i(o),!s)return;continue}!r&&!a&&i(o)}}_initializeTargetsAndObservables(){this._targetLinks=new Map,this._observableSections=new Map;const t=h.find(Ve,this._config.target);for(const e of t){if(!e.hash||nt(e))continue;const i=h.findOne(decodeURI(e.hash),this._element);Rt(i)&&(this._targetLinks.set(decodeURI(e.hash),e),this._observableSections.set(e.hash,i))}}_process(t){this._activeTarget!==t&&(this._clearActiveClass(this._config.target),this._activeTarget=t,t.classList.add(At),this._activateParents(t),c.trigger(this._element,Hc,{relatedTarget:t}))}_activateParents(t){if(t.classList.contains(Bc)){h.findOne(Gc,t.closest(zc)).classList.add(At);return}for(const e of h.parents(t,jc))for(const i of h.prev(e,Uc))i.classList.add(At)}_clearActiveClass(t){t.classList.remove(At);const e=h.find(`${Ve}.${At}`,t);for(const i of e)i.classList.remove(At)}static jQueryInterface(t){return this.each(function(){const e=be.getOrCreateInstance(this,t);if(typeof t=="string"){if(e[t]===void 0||t.startsWith("_")||t==="constructor")throw new TypeError(`No method named "${t}"`);e[t]()}})}}c.on(window,Wc,()=>{for(const n of h.find(Fc))be.getOrCreateInstance(n)});F(be);const Qc="tab",Jc="bs.tab",Et=`.${Jc}`,Zc=`hide${Et}`,tl=`hidden${Et}`,el=`show${Et}`,nl=`shown${Et}`,il=`click${Et}`,sl=`keydown${Et}`,rl=`load${Et}`,ol="ArrowLeft",ni="ArrowRight",al="ArrowUp",ii="ArrowDown",He="Home",si="End",ft="active",ri="fade",We="show",cl="dropdown",rs=".dropdown-toggle",ll=".dropdown-menu",Be=`:not(${rs})`,ul='.list-group, .nav, [role="tablist"]',dl=".nav-item, .list-group-item",hl=`.nav-link${Be}, .list-group-item${Be}, [role="tab"]${Be}`,os='[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',Fe=`${hl}, ${os}`,fl=`.${ft}[data-bs-toggle="tab"], .${ft}[data-bs-toggle="pill"], .${ft}[data-bs-toggle="list"]`;class It extends Y{constructor(t){super(t),this._parent=this._element.closest(ul),this._parent&&(this._setInitialAttributes(this._parent,this._getChildren()),c.on(this._element,sl,e=>this._keydown(e)))}static get NAME(){return Qc}show(){const t=this._element;if(this._elemIsActive(t))return;const e=this._getActiveElem(),i=e?c.trigger(e,Zc,{relatedTarget:t}):null;c.trigger(t,el,{relatedTarget:e}).defaultPrevented||i&&i.defaultPrevented||(this._deactivate(e,t),this._activate(t,e))}_activate(t,e){if(!t)return;t.classList.add(ft),this._activate(h.getElementFromSelector(t));const i=()=>{if(t.getAttribute("role")!=="tab"){t.classList.add(We);return}t.removeAttribute("tabindex"),t.setAttribute("aria-selected",!0),this._toggleDropDown(t,!0),c.trigger(t,nl,{relatedTarget:e})};this._queueCallback(i,t,t.classList.contains(ri))}_deactivate(t,e){if(!t)return;t.classList.remove(ft),t.blur(),this._deactivate(h.getElementFromSelector(t));const i=()=>{if(t.getAttribute("role")!=="tab"){t.classList.remove(We);return}t.setAttribute("aria-selected",!1),t.setAttribute("tabindex","-1"),this._toggleDropDown(t,!1),c.trigger(t,tl,{relatedTarget:e})};this._queueCallback(i,t,t.classList.contains(ri))}_keydown(t){if(![ol,ni,al,ii,He,si].includes(t.key))return;t.stopPropagation(),t.preventDefault();const e=this._getChildren().filter(s=>!nt(s));let i;if([He,si].includes(t.key))i=e[t.key===He?0:e.length-1];else{const s=[ni,ii].includes(t.key);i=un(e,t.target,s,!0)}i&&(i.focus({preventScroll:!0}),It.getOrCreateInstance(i).show())}_getChildren(){return h.find(Fe,this._parent)}_getActiveElem(){return this._getChildren().find(t=>this._elemIsActive(t))||null}_setInitialAttributes(t,e){this._setAttributeIfNotExists(t,"role","tablist");for(const i of e)this._setInitialAttributesOnChild(i)}_setInitialAttributesOnChild(t){t=this._getInnerElement(t);const e=this._elemIsActive(t),i=this._getOuterElement(t);t.setAttribute("aria-selected",e),i!==t&&this._setAttributeIfNotExists(i,"role","presentation"),e||t.setAttribute("tabindex","-1"),this._setAttributeIfNotExists(t,"role","tab"),this._setInitialAttributesOnTargetPanel(t)}_setInitialAttributesOnTargetPanel(t){const e=h.getElementFromSelector(t);e&&(this._setAttributeIfNotExists(e,"role","tabpanel"),t.id&&this._setAttributeIfNotExists(e,"aria-labelledby",`${t.id}`))}_toggleDropDown(t,e){const i=this._getOuterElement(t);if(!i.classList.contains(cl))return;const s=(r,o)=>{const a=h.findOne(r,i);a&&a.classList.toggle(o,e)};s(rs,ft),s(ll,We),i.setAttribute("aria-expanded",e)}_setAttributeIfNotExists(t,e,i){t.hasAttribute(e)||t.setAttribute(e,i)}_elemIsActive(t){return t.classList.contains(ft)}_getInnerElement(t){return t.matches(Fe)?t:h.findOne(Fe,t)}_getOuterElement(t){return t.closest(dl)||t}static jQueryInterface(t){return this.each(function(){const e=It.getOrCreateInstance(this);if(typeof t=="string"){if(e[t]===void 0||t.startsWith("_")||t==="constructor")throw new TypeError(`No method named "${t}"`);e[t]()}})}}c.on(document,il,os,function(n){["A","AREA"].includes(this.tagName)&&n.preventDefault(),!nt(this)&&It.getOrCreateInstance(this).show()});c.on(window,rl,()=>{for(const n of h.find(fl))It.getOrCreateInstance(n)});F(It);const pl="toast",_l="bs.toast",ot=`.${_l}`,gl=`mouseover${ot}`,ml=`mouseout${ot}`,El=`focusin${ot}`,vl=`focusout${ot}`,bl=`hide${ot}`,Al=`hidden${ot}`,Tl=`show${ot}`,yl=`shown${ot}`,wl="fade",oi="hide",re="show",oe="showing",Ol={animation:"boolean",autohide:"boolean",delay:"number"},Sl={animation:!0,autohide:!0,delay:5e3};class Ae extends Y{constructor(t,e){super(t,e),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get Default(){return Sl}static get DefaultType(){return Ol}static get NAME(){return pl}show(){if(c.trigger(this._element,Tl).defaultPrevented)return;this._clearTimeout(),this._config.animation&&this._element.classList.add(wl);const e=()=>{this._element.classList.remove(oe),c.trigger(this._element,yl),this._maybeScheduleHide()};this._element.classList.remove(oi),Yt(this._element),this._element.classList.add(re,oe),this._queueCallback(e,this._element,this._config.animation)}hide(){if(!this.isShown()||c.trigger(this._element,bl).defaultPrevented)return;const e=()=>{this._element.classList.add(oi),this._element.classList.remove(oe,re),c.trigger(this._element,Al)};this._element.classList.add(oe),this._queueCallback(e,this._element,this._config.animation)}dispose(){this._clearTimeout(),this.isShown()&&this._element.classList.remove(re),super.dispose()}isShown(){return this._element.classList.contains(re)}_maybeScheduleHide(){this._config.autohide&&(this._hasMouseInteraction||this._hasKeyboardInteraction||(this._timeout=setTimeout(()=>{this.hide()},this._config.delay)))}_onInteraction(t,e){switch(t.type){case"mouseover":case"mouseout":{this._hasMouseInteraction=e;break}case"focusin":case"focusout":{this._hasKeyboardInteraction=e;break}}if(e){this._clearTimeout();return}const i=t.relatedTarget;this._element===i||this._element.contains(i)||this._maybeScheduleHide()}_setListeners(){c.on(this._element,gl,t=>this._onInteraction(t,!0)),c.on(this._element,ml,t=>this._onInteraction(t,!1)),c.on(this._element,El,t=>this._onInteraction(t,!0)),c.on(this._element,vl,t=>this._onInteraction(t,!1))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(t){return this.each(function(){const e=Ae.getOrCreateInstance(this,t);if(typeof t=="string"){if(typeof e[t]>"u")throw new TypeError(`No method named "${t}"`);e[t](this)}})}}me(Ae);F(Ae);new Os; diff --git a/index.html b/index.html index 0492006..f9be32f 100644 --- a/index.html +++ b/index.html @@ -3,7 +3,7 @@ Paper Translation Helper - +