/*! For license information please see main.954f14fc.js.LICENSE.txt */ (()=>{var e={148:(e,t,n)=>{"use strict";n.d(t,{A:()=>u});var i=n(64),r=n.n(i),s=n(981),a=n.n(s),o=n(43),l=n(880),c=n(579);const u=function(){const[e]=(0,o.useState)(0);return(0,o.useEffect)((()=>{!async function(){try{const t=await fetch("https://sci.cugrader.com/api/glob/auth/callback",{method:"POST",credentials:"include",headers:{"Content-type":"application/json; charset=UTF-8","Access-Control-Allow-Origin":"*"},body:JSON.stringify({url:window.location.href})});var e=await t.json();e.success?(l.A.set("email",e.data.email),l.A.set("uid",e.data.uid),l.A.set("csrf_token",e.data.csrf_token),l.A.set("role",e.data.role),a()(r()).fire({title:"Login!",icon:"success"}).then((e=>{e&&(window.location.href="/")}))):a()(r()).fire({title:"Login unsuccessful!",text:e.msg,icon:"error"}).then((e=>{e&&(window.location.href="/login")}))}catch(t){a()(r()).fire({title:"Login unsuccessful!",text:"Please contact admin",icon:"error"}).then((e=>{e&&(window.location.href="/login")}))}}()}),[e]),(0,c.jsx)("div",{className:"pos-center",children:(0,c.jsx)("div",{className:"loader"})})}},66:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var i=n(43),r=(n(421),n(885),n(579));const s=function(){return(0,i.useEffect)((()=>{document.body.style.backgroundColor="#F2F2F2"})),(0,r.jsx)("div",{className:"container align-items-center align-content-center",style:{background:"#FFF",borderWidth:"2px",borderStyle:"solid",borderRadius:"2px",width:"70vw",height:"50vh",marginTop:"25vh",marginRight:"15vw"},children:(0,r.jsxs)("div",{className:"row",style:{height:"100%"},children:[(0,r.jsxs)("div",{className:"col-lg-6 text-center align-self-center",children:[(0,r.jsx)("img",{style:{marginTop:"20px"},src:"icon.jpg",width:"150",alt:"logo"}),(0,r.jsx)("h2",{children:"Grader"})]}),(0,r.jsxs)("div",{className:"col align-self-center",children:[(0,r.jsx)("h1",{children:"Login"}),(0,r.jsxs)("button",{onClick:()=>window.location.href="/auth/login",className:"btn btn-outline-dark",type:"button",style:{marginTop:"20px",marginLeft:"20px"},children:[(0,r.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 326667 333333",shapeRendering:"geometricPrecision",textRendering:"geometricPrecision",imageRendering:"optimizeQuality",fillRule:"evenodd",clipRule:"evenodd",width:"1.2rem",children:[(0,r.jsx)("path",{d:"M326667 170370c0-13704-1112-23704-3518-34074H166667v61851h91851c-1851 15371-11851 38519-34074 54074l-311 2071 49476 38329 3428 342c31481-29074 49630-71852 49630-122593m0 0z",fill:"#4285f4"}),(0,r.jsx)("path",{d:"M166667 333333c44999 0 82776-14815 110370-40370l-52593-40742c-14074 9815-32963 16667-57777 16667-44074 0-81481-29073-94816-69258l-1954 166-51447 39815-673 1870c27407 54444 83704 91852 148890 91852z",fill:"#34a853"}),(0,r.jsx)("path",{d:"M71851 199630c-3518-10370-5555-21482-5555-32963 0-11482 2036-22593 5370-32963l-93-2209-52091-40455-1704 811C6482 114444 1 139814 1 166666s6482 52221 17777 74814l54074-41851m0 0z",fill:"#fbbc04"}),(0,r.jsx)("path",{d:"M166667 64444c31296 0 52406 13519 64444 24816l47037-45926C249260 16482 211666 1 166667 1 101481 1 45185 37408 17777 91852l53889 41853c13520-40185 50927-69260 95001-69260m0 0z",fill:"#ea4335"})]}),"\xa0 with Google"]})]})]})})}},837:(e,t,n)=>{"use strict";n.d(t,{A:()=>u});var i=n(64),r=n.n(i),s=n(981),a=n.n(s),o=n(43),l=n(880),c=n(579);const u=function(){const[e]=(0,o.useState)(0);return(0,o.useEffect)((()=>{!async function(){try{const t=await fetch("https://sci.cugrader.com/api/glob/auth/logout",{method:"POST",credentials:"include",headers:{"Content-type":"application/json; charset=UTF-8","Access-Control-Allow-Origin":"*","X-CSRF-TOKEN":l.A.get("csrf_token")}});var e=await t.json();e.success?(l.A.remove("Email"),l.A.remove("uid"),l.A.remove("role"),l.A.remove("csrf_token"),window.location.href="/login"):a()(r()).fire({title:"Logout error!",text:e.msg,icon:"error"}).then((e=>{e&&(window.location.href="/")}))}catch(t){a()(r()).fire({title:"Logout error!",text:"Please contact admin",icon:"error"}).then((e=>{e&&(window.location.href="/")}))}}()}),[e]),(0,c.jsx)("div",{className:"pos-center",children:(0,c.jsx)("div",{className:"loader"})})}},305:(e,t,n)=>{"use strict";n.d(t,{A:()=>d});var i=n(64),r=n.n(i),s=n(981),a=n.n(s),o=n(43),l=(n(421),n(885),n(216)),c=n(880),u=n(579);const d=function(){const e=(0,l.Zp)(),[t,n]=(0,o.useState)(""),[i,s]=(0,o.useState)(!1);return(0,o.useEffect)((()=>{document.body.style.backgroundColor="#F2F2F2"})),(0,u.jsxs)("div",{className:"container align-items-center align-content-center",style:{background:"#FFF",borderWidth:"2px",borderStyle:"solid",borderRadius:"2px",width:"70vw",height:"50vh",marginTop:"25vh",marginRight:"15vw"},children:[(0,u.jsx)("input",{type:"email",className:"form-control",placeholder:"Email",value:t,onChange:e=>{n(e.target.value)},style:{width:"30vw"}}),(0,u.jsx)("br",{}),(0,u.jsxs)("div",{className:"form-check form-check-inline",children:[(0,u.jsx)("input",{className:"form-check-input",type:"checkbox",id:"inlineCheckbox",checked:i,onChange:e=>{s(e.target.checked)}}),(0,u.jsx)("label",{className:"form-check-label",htmlFor:"inlineCheckbox",children:"Professor Mode"})]}),(0,u.jsx)("br",{}),(0,u.jsx)("br",{}),(0,u.jsx)("button",{type:"button",className:"btn btn-primary",onClick:async()=>{if(""===t)return;const n=await fetch("https://sci.cugrader.com/api/glob/auth/testCallback",{method:"POST",credentials:"include",headers:{"Content-type":"application/json; charset=UTF-8","Access-Control-Allow-Origin":"*"},body:JSON.stringify({email:t,role:i?2:1})}),s=await n.json();s.success?(c.A.set("Email",t),c.A.set("uid",t.split("@")[0]),c.A.set("csrf_token",s.data.csrf_token),i?c.A.set("role",2):c.A.set("role",1),e("/")):a()(r()).fire({title:s.msg,icon:"error"})},children:"Submit"})]})}},186:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var i=n(43),r=(n(421),n(885),n(216)),s=n(579);const a=function(){const e=(0,r.Zp)();return(0,i.useEffect)((()=>{document.body.style.backgroundColor="#F2F2F2"})),(0,s.jsx)("div",{className:"container align-items-center align-content-center",style:{background:"#FFF",borderWidth:"2px",borderStyle:"solid",borderRadius:"2px",width:"70vw",height:"50vh",marginTop:"25vh",marginRight:"15vw"},children:(0,s.jsxs)("div",{className:"row",style:{height:"100%"},children:[(0,s.jsxs)("div",{className:"col-lg-6 text-center align-self-center",children:[(0,s.jsx)("img",{style:{marginTop:"20px"},src:"icon.jpg",width:"150",alt:"logo"}),(0,s.jsx)("h2",{children:"Grader"})]}),(0,s.jsxs)("div",{className:"col align-self-center",children:[(0,s.jsx)("h1",{children:"Login"}),(0,s.jsxs)("button",{onClick:()=>e("/callback"),className:"btn btn-outline-dark",type:"button",style:{marginTop:"20px",marginLeft:"20px"},children:[(0,s.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 326667 333333",shapeRendering:"geometricPrecision",textRendering:"geometricPrecision",imageRendering:"optimizeQuality",fillRule:"evenodd",clipRule:"evenodd",width:"1.2rem",children:[(0,s.jsx)("path",{d:"M326667 170370c0-13704-1112-23704-3518-34074H166667v61851h91851c-1851 15371-11851 38519-34074 54074l-311 2071 49476 38329 3428 342c31481-29074 49630-71852 49630-122593m0 0z",fill:"#4285f4"}),(0,s.jsx)("path",{d:"M166667 333333c44999 0 82776-14815 110370-40370l-52593-40742c-14074 9815-32963 16667-57777 16667-44074 0-81481-29073-94816-69258l-1954 166-51447 39815-673 1870c27407 54444 83704 91852 148890 91852z",fill:"#34a853"}),(0,s.jsx)("path",{d:"M71851 199630c-3518-10370-5555-21482-5555-32963 0-11482 2036-22593 5370-32963l-93-2209-52091-40455-1704 811C6482 114444 1 139814 1 166666s6482 52221 17777 74814l54074-41851m0 0z",fill:"#fbbc04"}),(0,s.jsx)("path",{d:"M166667 64444c31296 0 52406 13519 64444 24816l47037-45926C249260 16482 211666 1 166667 1 101481 1 45185 37408 17777 91852l53889 41853c13520-40185 50927-69260 95001-69260m0 0z",fill:"#ea4335"})]}),"\xa0 with Google"]})]})]})})}},688:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var i=n(43),r=n(880),s=n(579);const a=function(){const[e]=(0,i.useState)(0);return(0,i.useEffect)((()=>{!async function(){await fetch("https://sci.cugrader.com/api/glob/auth/logout",{method:"POST",credentials:"include",headers:{"X-CSRF-TOKEN":r.A.get("csrf_token")}}),r.A.remove("Email"),r.A.remove("uid"),r.A.remove("role"),r.A.remove("csrf_token"),window.location.href="/login"}()}),[e]),(0,s.jsx)("div",{className:"pos-center",children:(0,s.jsx)("div",{className:"loader"})})}},387:(e,t,n)=>{"use strict";function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;td,Gh:()=>D,HS:()=>B,Oi:()=>o,Rr:()=>h,pX:()=>q,pb:()=>N,rc:()=>r,tH:()=>R,ue:()=>m,yD:()=>O,zR:()=>a}),function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"}(r||(r={}));const s="popstate";function a(e){return void 0===e&&(e={}),f((function(e,t){let{pathname:n,search:i,hash:r}=e.location;return u("",{pathname:n,search:i,hash:r},t.state&&t.state.usr||null,t.state&&t.state.key||"default")}),(function(e,t){return"string"===typeof t?t:d(t)}),null,e)}function o(e,t){if(!1===e||null===e||"undefined"===typeof e)throw new Error(t)}function l(e,t){if(!e){"undefined"!==typeof console&&console.warn(t);try{throw new Error(t)}catch(n){}}}function c(e,t){return{usr:e.state,key:e.key,idx:t}}function u(e,t,n,r){return void 0===n&&(n=null),i({pathname:"string"===typeof e?e:e.pathname,search:"",hash:""},"string"===typeof t?h(t):t,{state:n,key:t&&t.key||r||Math.random().toString(36).substr(2,8)})}function d(e){let{pathname:t="/",search:n="",hash:i=""}=e;return n&&"?"!==n&&(t+="?"===n.charAt(0)?n:"?"+n),i&&"#"!==i&&(t+="#"===i.charAt(0)?i:"#"+i),t}function h(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let i=e.indexOf("?");i>=0&&(t.search=e.substr(i),e=e.substr(0,i)),e&&(t.pathname=e)}return t}function f(e,t,n,a){void 0===a&&(a={});let{window:l=document.defaultView,v5Compat:h=!1}=a,f=l.history,p=r.Pop,m=null,g=b();function b(){return(f.state||{idx:null}).idx}function w(){p=r.Pop;let e=b(),t=null==e?null:e-g;g=e,m&&m({action:p,location:y.location,delta:t})}function v(e){let t="null"!==l.location.origin?l.location.origin:l.location.href,n="string"===typeof e?e:d(e);return n=n.replace(/ $/,"%20"),o(t,"No window.location.(origin|href) available to create URL for href: "+n),new URL(n,t)}null==g&&(g=0,f.replaceState(i({},f.state,{idx:g}),""));let y={get action(){return p},get location(){return e(l,f)},listen(e){if(m)throw new Error("A history only accepts one active listener");return l.addEventListener(s,w),m=e,()=>{l.removeEventListener(s,w),m=null}},createHref:e=>t(l,e),createURL:v,encodeLocation(e){let t=v(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:function(e,t){p=r.Push;let i=u(y.location,e,t);n&&n(i,e),g=b()+1;let s=c(i,g),a=y.createHref(i);try{f.pushState(s,"",a)}catch(o){if(o instanceof DOMException&&"DataCloneError"===o.name)throw o;l.location.assign(a)}h&&m&&m({action:p,location:y.location,delta:1})},replace:function(e,t){p=r.Replace;let i=u(y.location,e,t);n&&n(i,e),g=b();let s=c(i,g),a=y.createHref(i);f.replaceState(s,"",a),h&&m&&m({action:p,location:y.location,delta:0})},go:e=>f.go(e)};return y}var p;!function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"}(p||(p={}));new Set(["lazy","caseSensitive","path","id","index","children"]);function m(e,t,n){return void 0===n&&(n="/"),g(e,t,n,!1)}function g(e,t,n,i){let r=N(("string"===typeof t?h(t):t).pathname||"/",n);if(null==r)return null;let s=b(e);!function(e){e.sort(((e,t)=>e.score!==t.score?t.score-e.score:function(e,t){let n=e.length===t.length&&e.slice(0,-1).every(((e,n)=>e===t[n]));return n?e[e.length-1]-t[t.length-1]:0}(e.routesMeta.map((e=>e.childrenIndex)),t.routesMeta.map((e=>e.childrenIndex)))))}(s);let a=null;for(let o=0;null==a&&o{let a={relativePath:void 0===s?e.path||"":s,caseSensitive:!0===e.caseSensitive,childrenIndex:r,route:e};a.relativePath.startsWith("/")&&(o(a.relativePath.startsWith(i),'Absolute route path "'+a.relativePath+'" nested under path "'+i+'" is not valid. An absolute child route path must start with the combined path of all its parent routes.'),a.relativePath=a.relativePath.slice(i.length));let l=B([i,a.relativePath]),c=n.concat(a);e.children&&e.children.length>0&&(o(!0!==e.index,'Index routes must not have child routes. Please remove all child routes from route path "'+l+'".'),b(e.children,t,c,l)),(null!=e.path||e.index)&&t.push({path:l,score:_(l,e.index),routesMeta:c})};return e.forEach(((e,t)=>{var n;if(""!==e.path&&null!=(n=e.path)&&n.includes("?"))for(let i of w(e.path))r(e,t,i);else r(e,t)})),t}function w(e){let t=e.split("/");if(0===t.length)return[];let[n,...i]=t,r=n.endsWith("?"),s=n.replace(/\?$/,"");if(0===i.length)return r?[s,""]:[s];let a=w(i.join("/")),o=[];return o.push(...a.map((e=>""===e?s:[s,e].join("/")))),r&&o.push(...a),o.map((t=>e.startsWith("/")&&""===t?"/":t))}const v=/^:[\w-]+$/,y=3,x=2,C=1,k=10,A=-2,E=e=>"*"===e;function _(e,t){let n=e.split("/"),i=n.length;return n.some(E)&&(i+=A),t&&(i+=x),n.filter((e=>!E(e))).reduce(((e,t)=>e+(v.test(t)?y:""===t?C:k)),i)}function j(e,t,n){void 0===n&&(n=!1);let{routesMeta:i}=e,r={},s="/",a=[];for(let o=0;o(i.push({paramName:t,isOptional:null!=n}),n?"/?([^\\/]+)?":"/([^\\/]+)")));e.endsWith("*")?(i.push({paramName:"*"}),r+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?r+="\\/*$":""!==e&&"/"!==e&&(r+="(?:(?=\\/|$))");let s=new RegExp(r,t?void 0:"i");return[s,i]}(e.path,e.caseSensitive,e.end),r=t.match(n);if(!r)return null;let s=r[0],a=s.replace(/(.)\/+$/,"$1"),o=r.slice(1);return{params:i.reduce(((e,t,n)=>{let{paramName:i,isOptional:r}=t;if("*"===i){let e=o[n]||"";a=s.slice(0,s.length-e.length).replace(/(.)\/+$/,"$1")}const l=o[n];return e[i]=r&&!l?void 0:(l||"").replace(/%2F/g,"/"),e}),{}),pathname:s,pathnameBase:a,pattern:e}}function T(e){try{return e.split("/").map((e=>decodeURIComponent(e).replace(/\//g,"%2F"))).join("/")}catch(t){return l(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent encoding ('+t+")."),e}}function N(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,i=e.charAt(n);return i&&"/"!==i?null:e.slice(n)||"/"}function M(e,t,n,i){return"Cannot include a '"+e+"' character in a manually specified `to."+t+"` field ["+JSON.stringify(i)+"]. Please separate it out to the `to."+n+'` field. Alternatively you may provide the full path as a string in and the router will parse it for you.'}function I(e){return e.filter(((e,t)=>0===t||e.route.path&&e.route.path.length>0))}function O(e,t){let n=I(e);return t?n.map(((e,t)=>t===n.length-1?e.pathname:e.pathnameBase)):n.map((e=>e.pathnameBase))}function D(e,t,n,r){let s;void 0===r&&(r=!1),"string"===typeof e?s=h(e):(s=i({},e),o(!s.pathname||!s.pathname.includes("?"),M("?","pathname","search",s)),o(!s.pathname||!s.pathname.includes("#"),M("#","pathname","hash",s)),o(!s.search||!s.search.includes("#"),M("#","search","hash",s)));let a,l=""===e||""===s.pathname,c=l?"/":s.pathname;if(null==c)a=n;else{let e=t.length-1;if(!r&&c.startsWith("..")){let t=c.split("/");for(;".."===t[0];)t.shift(),e-=1;s.pathname=t.join("/")}a=e>=0?t[e]:"/"}let u=function(e,t){void 0===t&&(t="/");let{pathname:n,search:i="",hash:r=""}="string"===typeof e?h(e):e,s=n?n.startsWith("/")?n:function(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach((e=>{".."===e?n.length>1&&n.pop():"."!==e&&n.push(e)})),n.length>1?n.join("/"):"/"}(n,t):t;return{pathname:s,search:P(i),hash:F(r)}}(s,a),d=c&&"/"!==c&&c.endsWith("/"),f=(l||"."===c)&&n.endsWith("/");return u.pathname.endsWith("/")||!d&&!f||(u.pathname+="/"),u}const B=e=>e.join("/").replace(/\/\/+/g,"/"),L=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),P=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",F=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"";class R extends Error{}function q(e){return null!=e&&"number"===typeof e.status&&"string"===typeof e.statusText&&"boolean"===typeof e.internal&&"data"in e}const V=["post","put","patch","delete"],z=(new Set(V),["get",...V]);new Set(z),new Set([301,302,303,307,308]),new Set([307,308]);Symbol("deferred")},885:function(e){e.exports=function(){"use strict";const e=new Map,t={set(t,n,i){e.has(t)||e.set(t,new Map);const r=e.get(t);r.has(n)||0===r.size?r.set(n,i):console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(r.keys())[0]}.`)},get:(t,n)=>e.has(t)&&e.get(t).get(n)||null,remove(t,n){if(!e.has(t))return;const i=e.get(t);i.delete(n),0===i.size&&e.delete(t)}},n="transitionend",i=e=>(e&&window.CSS&&window.CSS.escape&&(e=e.replace(/#([^\s"#']+)/g,((e,t)=>`#${CSS.escape(t)}`))),e),r=e=>{e.dispatchEvent(new Event(n))},s=e=>!(!e||"object"!=typeof e)&&(void 0!==e.jquery&&(e=e[0]),void 0!==e.nodeType),a=e=>s(e)?e.jquery?e[0]:e:"string"==typeof e&&e.length>0?document.querySelector(i(e)):null,o=e=>{if(!s(e)||0===e.getClientRects().length)return!1;const t="visible"===getComputedStyle(e).getPropertyValue("visibility"),n=e.closest("details:not([open])");if(!n)return t;if(n!==e){const t=e.closest("summary");if(t&&t.parentNode!==n)return!1;if(null===t)return!1}return t},l=e=>!e||e.nodeType!==Node.ELEMENT_NODE||!!e.classList.contains("disabled")||(void 0!==e.disabled?e.disabled:e.hasAttribute("disabled")&&"false"!==e.getAttribute("disabled")),c=e=>{if(!document.documentElement.attachShadow)return null;if("function"==typeof e.getRootNode){const t=e.getRootNode();return t instanceof ShadowRoot?t:null}return e instanceof ShadowRoot?e:e.parentNode?c(e.parentNode):null},u=()=>{},d=e=>{e.offsetHeight},h=()=>window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?window.jQuery:null,f=[],p=()=>"rtl"===document.documentElement.dir,m=e=>{var t;t=()=>{const t=h();if(t){const n=e.NAME,i=t.fn[n];t.fn[n]=e.jQueryInterface,t.fn[n].Constructor=e,t.fn[n].noConflict=()=>(t.fn[n]=i,e.jQueryInterface)}},"loading"===document.readyState?(f.length||document.addEventListener("DOMContentLoaded",(()=>{for(const e of f)e()})),f.push(t)):t()},g=function(e){let t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e;return"function"==typeof e?e(...arguments.length>1&&void 0!==arguments[1]?arguments[1]:[]):t},b=function(e,t){if(arguments.length>2&&void 0!==arguments[2]&&!arguments[2])return void g(e);const i=(e=>{if(!e)return 0;let{transitionDuration:t,transitionDelay:n}=window.getComputedStyle(e);const i=Number.parseFloat(t),r=Number.parseFloat(n);return i||r?(t=t.split(",")[0],n=n.split(",")[0],1e3*(Number.parseFloat(t)+Number.parseFloat(n))):0})(t)+5;let s=!1;const a=i=>{let{target:r}=i;r===t&&(s=!0,t.removeEventListener(n,a),g(e))};t.addEventListener(n,a),setTimeout((()=>{s||r(t)}),i)},w=(e,t,n,i)=>{const r=e.length;let s=e.indexOf(t);return-1===s?!n&&i?e[r-1]:e[0]:(s+=n?1:-1,i&&(s=(s+r)%r),e[Math.max(0,Math.min(s,r-1))])},v=/[^.]*(?=\..*)\.|.*/,y=/\..*/,x=/::\d+$/,C={};let k=1;const A={mouseenter:"mouseover",mouseleave:"mouseout"},E=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 _(e,t){return t&&`${t}::${k++}`||e.uidEvent||k++}function j(e){const t=_(e);return e.uidEvent=t,C[t]=C[t]||{},C[t]}function S(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return Object.values(e).find((e=>e.callable===t&&e.delegationSelector===n))}function T(e,t,n){const i="string"==typeof t,r=i?n:t||n;let s=O(e);return E.has(s)||(s=e),[i,r,s]}function N(e,t,n,i,r){if("string"!=typeof t||!e)return;let[s,a,o]=T(t,n,i);if(t in A){const e=e=>function(t){if(!t.relatedTarget||t.relatedTarget!==t.delegateTarget&&!t.delegateTarget.contains(t.relatedTarget))return e.call(this,t)};a=e(a)}const l=j(e),c=l[o]||(l[o]={}),u=S(c,a,s?n:null);if(u)return void(u.oneOff=u.oneOff&&r);const d=_(a,t.replace(v,"")),h=s?function(e,t,n){return function i(r){const s=e.querySelectorAll(t);for(let{target:a}=r;a&&a!==this;a=a.parentNode)for(const o of s)if(o===a)return B(r,{delegateTarget:a}),i.oneOff&&D.off(e,r.type,t,n),n.apply(a,[r])}}(e,n,a):function(e,t){return function n(i){return B(i,{delegateTarget:e}),n.oneOff&&D.off(e,i.type,t),t.apply(e,[i])}}(e,a);h.delegationSelector=s?n:null,h.callable=a,h.oneOff=r,h.uidEvent=d,c[d]=h,e.addEventListener(o,h,s)}function M(e,t,n,i,r){const s=S(t[n],i,r);s&&(e.removeEventListener(n,s,Boolean(r)),delete t[n][s.uidEvent])}function I(e,t,n,i){const r=t[n]||{};for(const[s,a]of Object.entries(r))s.includes(i)&&M(e,t,n,a.callable,a.delegationSelector)}function O(e){return e=e.replace(y,""),A[e]||e}const D={on(e,t,n,i){N(e,t,n,i,!1)},one(e,t,n,i){N(e,t,n,i,!0)},off(e,t,n,i){if("string"!=typeof t||!e)return;const[r,s,a]=T(t,n,i),o=a!==t,l=j(e),c=l[a]||{},u=t.startsWith(".");if(void 0===s){if(u)for(const n of Object.keys(l))I(e,l,n,t.slice(1));for(const[n,i]of Object.entries(c)){const r=n.replace(x,"");o&&!t.includes(r)||M(e,l,a,i.callable,i.delegationSelector)}}else{if(!Object.keys(c).length)return;M(e,l,a,s,r?n:null)}},trigger(e,t,n){if("string"!=typeof t||!e)return null;const i=h();let r=null,s=!0,a=!0,o=!1;t!==O(t)&&i&&(r=i.Event(t,n),i(e).trigger(r),s=!r.isPropagationStopped(),a=!r.isImmediatePropagationStopped(),o=r.isDefaultPrevented());const l=B(new Event(t,{bubbles:s,cancelable:!0}),n);return o&&l.preventDefault(),a&&e.dispatchEvent(l),l.defaultPrevented&&r&&r.preventDefault(),l}};function B(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};for(const[n,i]of Object.entries(t))try{e[n]=i}catch(t){Object.defineProperty(e,n,{configurable:!0,get:()=>i})}return e}function L(e){if("true"===e)return!0;if("false"===e)return!1;if(e===Number(e).toString())return Number(e);if(""===e||"null"===e)return null;if("string"!=typeof e)return e;try{return JSON.parse(decodeURIComponent(e))}catch(t){return e}}function P(e){return e.replace(/[A-Z]/g,(e=>`-${e.toLowerCase()}`))}const F={setDataAttribute(e,t,n){e.setAttribute(`data-bs-${P(t)}`,n)},removeDataAttribute(e,t){e.removeAttribute(`data-bs-${P(t)}`)},getDataAttributes(e){if(!e)return{};const t={},n=Object.keys(e.dataset).filter((e=>e.startsWith("bs")&&!e.startsWith("bsConfig")));for(const i of n){let n=i.replace(/^bs/,"");n=n.charAt(0).toLowerCase()+n.slice(1,n.length),t[n]=L(e.dataset[i])}return t},getDataAttribute:(e,t)=>L(e.getAttribute(`data-bs-${P(t)}`))};class R{static get Default(){return{}}static get DefaultType(){return{}}static get NAME(){throw new Error('You have to implement the static method "NAME", for each component!')}_getConfig(e){return e=this._mergeConfigObj(e),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}_configAfterMerge(e){return e}_mergeConfigObj(e,t){const n=s(t)?F.getDataAttribute(t,"config"):{};return{...this.constructor.Default,..."object"==typeof n?n:{},...s(t)?F.getDataAttributes(t):{},..."object"==typeof e?e:{}}}_typeCheckConfig(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.constructor.DefaultType;for(const[i,r]of Object.entries(t)){const t=e[i],a=s(t)?"element":null==(n=t)?`${n}`:Object.prototype.toString.call(n).match(/\s([a-z]+)/i)[1].toLowerCase();if(!new RegExp(r).test(a))throw new TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${i}" provided type "${a}" but expected type "${r}".`)}var n}}class q extends R{constructor(e,n){super(),(e=a(e))&&(this._element=e,this._config=this._getConfig(n),t.set(this._element,this.constructor.DATA_KEY,this))}dispose(){t.remove(this._element,this.constructor.DATA_KEY),D.off(this._element,this.constructor.EVENT_KEY);for(const e of Object.getOwnPropertyNames(this))this[e]=null}_queueCallback(e,t){b(e,t,!(arguments.length>2&&void 0!==arguments[2])||arguments[2])}_getConfig(e){return e=this._mergeConfigObj(e,this._element),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}static getInstance(e){return t.get(a(e),this.DATA_KEY)}static getOrCreateInstance(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.getInstance(e)||new this(e,"object"==typeof t?t:null)}static get VERSION(){return"5.3.3"}static get DATA_KEY(){return`bs.${this.NAME}`}static get EVENT_KEY(){return`.${this.DATA_KEY}`}static eventName(e){return`${e}${this.EVENT_KEY}`}}const V=e=>{let t=e.getAttribute("data-bs-target");if(!t||"#"===t){let n=e.getAttribute("href");if(!n||!n.includes("#")&&!n.startsWith("."))return null;n.includes("#")&&!n.startsWith("#")&&(n=`#${n.split("#")[1]}`),t=n&&"#"!==n?n.trim():null}return t?t.split(",").map((e=>i(e))).join(","):null},z={find:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document.documentElement;return[].concat(...Element.prototype.querySelectorAll.call(t,e))},findOne:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document.documentElement;return Element.prototype.querySelector.call(t,e)},children:(e,t)=>[].concat(...e.children).filter((e=>e.matches(t))),parents(e,t){const n=[];let i=e.parentNode.closest(t);for(;i;)n.push(i),i=i.parentNode.closest(t);return n},prev(e,t){let n=e.previousElementSibling;for(;n;){if(n.matches(t))return[n];n=n.previousElementSibling}return[]},next(e,t){let n=e.nextElementSibling;for(;n;){if(n.matches(t))return[n];n=n.nextElementSibling}return[]},focusableChildren(e){const t=["a","button","input","textarea","select","details","[tabindex]",'[contenteditable="true"]'].map((e=>`${e}:not([tabindex^="-"])`)).join(",");return this.find(t,e).filter((e=>!l(e)&&o(e)))},getSelectorFromElement(e){const t=V(e);return t&&z.findOne(t)?t:null},getElementFromSelector(e){const t=V(e);return t?z.findOne(t):null},getMultipleElementsFromSelector(e){const t=V(e);return t?z.find(t):[]}},Y=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"hide";const n=`click.dismiss${e.EVENT_KEY}`,i=e.NAME;D.on(document,n,`[data-bs-dismiss="${i}"]`,(function(n){if(["A","AREA"].includes(this.tagName)&&n.preventDefault(),l(this))return;const r=z.getElementFromSelector(this)||this.closest(`.${i}`);e.getOrCreateInstance(r)[t]()}))},$=".bs.alert",U=`close${$}`,G=`closed${$}`;class W extends q{static get NAME(){return"alert"}close(){if(D.trigger(this._element,U).defaultPrevented)return;this._element.classList.remove("show");const e=this._element.classList.contains("fade");this._queueCallback((()=>this._destroyElement()),this._element,e)}_destroyElement(){this._element.remove(),D.trigger(this._element,G),this.dispose()}static jQueryInterface(e){return this.each((function(){const t=W.getOrCreateInstance(this);if("string"==typeof e){if(void 0===t[e]||e.startsWith("_")||"constructor"===e)throw new TypeError(`No method named "${e}"`);t[e](this)}}))}}Y(W,"close"),m(W);const Q='[data-bs-toggle="button"]';class H extends q{static get NAME(){return"button"}toggle(){this._element.setAttribute("aria-pressed",this._element.classList.toggle("active"))}static jQueryInterface(e){return this.each((function(){const t=H.getOrCreateInstance(this);"toggle"===e&&t[e]()}))}}D.on(document,"click.bs.button.data-api",Q,(e=>{e.preventDefault();const t=e.target.closest(Q);H.getOrCreateInstance(t).toggle()})),m(H);const K=".bs.swipe",J=`touchstart${K}`,Z=`touchmove${K}`,X=`touchend${K}`,ee=`pointerdown${K}`,te=`pointerup${K}`,ne={endCallback:null,leftCallback:null,rightCallback:null},ie={endCallback:"(function|null)",leftCallback:"(function|null)",rightCallback:"(function|null)"};class re extends R{constructor(e,t){super(),this._element=e,e&&re.isSupported()&&(this._config=this._getConfig(t),this._deltaX=0,this._supportPointerEvents=Boolean(window.PointerEvent),this._initEvents())}static get Default(){return ne}static get DefaultType(){return ie}static get NAME(){return"swipe"}dispose(){D.off(this._element,K)}_start(e){this._supportPointerEvents?this._eventIsPointerPenTouch(e)&&(this._deltaX=e.clientX):this._deltaX=e.touches[0].clientX}_end(e){this._eventIsPointerPenTouch(e)&&(this._deltaX=e.clientX-this._deltaX),this._handleSwipe(),g(this._config.endCallback)}_move(e){this._deltaX=e.touches&&e.touches.length>1?0:e.touches[0].clientX-this._deltaX}_handleSwipe(){const e=Math.abs(this._deltaX);if(e<=40)return;const t=e/this._deltaX;this._deltaX=0,t&&g(t>0?this._config.rightCallback:this._config.leftCallback)}_initEvents(){this._supportPointerEvents?(D.on(this._element,ee,(e=>this._start(e))),D.on(this._element,te,(e=>this._end(e))),this._element.classList.add("pointer-event")):(D.on(this._element,J,(e=>this._start(e))),D.on(this._element,Z,(e=>this._move(e))),D.on(this._element,X,(e=>this._end(e))))}_eventIsPointerPenTouch(e){return this._supportPointerEvents&&("pen"===e.pointerType||"touch"===e.pointerType)}static isSupported(){return"ontouchstart"in document.documentElement||navigator.maxTouchPoints>0}}const se=".bs.carousel",ae=".data-api",oe="next",le="prev",ce="left",ue="right",de=`slide${se}`,he=`slid${se}`,fe=`keydown${se}`,pe=`mouseenter${se}`,me=`mouseleave${se}`,ge=`dragstart${se}`,be=`load${se}${ae}`,we=`click${se}${ae}`,ve="carousel",ye="active",xe=".active",Ce=".carousel-item",ke=xe+Ce,Ae={ArrowLeft:ue,ArrowRight:ce},Ee={interval:5e3,keyboard:!0,pause:"hover",ride:!1,touch:!0,wrap:!0},_e={interval:"(number|boolean)",keyboard:"boolean",pause:"(string|boolean)",ride:"(boolean|string)",touch:"boolean",wrap:"boolean"};class je extends q{constructor(e,t){super(e,t),this._interval=null,this._activeElement=null,this._isSliding=!1,this.touchTimeout=null,this._swipeHelper=null,this._indicatorsElement=z.findOne(".carousel-indicators",this._element),this._addEventListeners(),this._config.ride===ve&&this.cycle()}static get Default(){return Ee}static get DefaultType(){return _e}static get NAME(){return"carousel"}next(){this._slide(oe)}nextWhenVisible(){!document.hidden&&o(this._element)&&this.next()}prev(){this._slide(le)}pause(){this._isSliding&&r(this._element),this._clearInterval()}cycle(){this._clearInterval(),this._updateInterval(),this._interval=setInterval((()=>this.nextWhenVisible()),this._config.interval)}_maybeEnableCycle(){this._config.ride&&(this._isSliding?D.one(this._element,he,(()=>this.cycle())):this.cycle())}to(e){const t=this._getItems();if(e>t.length-1||e<0)return;if(this._isSliding)return void D.one(this._element,he,(()=>this.to(e)));const n=this._getItemIndex(this._getActive());if(n===e)return;const i=e>n?oe:le;this._slide(i,t[e])}dispose(){this._swipeHelper&&this._swipeHelper.dispose(),super.dispose()}_configAfterMerge(e){return e.defaultInterval=e.interval,e}_addEventListeners(){this._config.keyboard&&D.on(this._element,fe,(e=>this._keydown(e))),"hover"===this._config.pause&&(D.on(this._element,pe,(()=>this.pause())),D.on(this._element,me,(()=>this._maybeEnableCycle()))),this._config.touch&&re.isSupported()&&this._addTouchEventListeners()}_addTouchEventListeners(){for(const t of z.find(".carousel-item img",this._element))D.on(t,ge,(e=>e.preventDefault()));const e={leftCallback:()=>this._slide(this._directionToOrder(ce)),rightCallback:()=>this._slide(this._directionToOrder(ue)),endCallback:()=>{"hover"===this._config.pause&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout((()=>this._maybeEnableCycle()),500+this._config.interval))}};this._swipeHelper=new re(this._element,e)}_keydown(e){if(/input|textarea/i.test(e.target.tagName))return;const t=Ae[e.key];t&&(e.preventDefault(),this._slide(this._directionToOrder(t)))}_getItemIndex(e){return this._getItems().indexOf(e)}_setActiveIndicatorElement(e){if(!this._indicatorsElement)return;const t=z.findOne(xe,this._indicatorsElement);t.classList.remove(ye),t.removeAttribute("aria-current");const n=z.findOne(`[data-bs-slide-to="${e}"]`,this._indicatorsElement);n&&(n.classList.add(ye),n.setAttribute("aria-current","true"))}_updateInterval(){const e=this._activeElement||this._getActive();if(!e)return;const t=Number.parseInt(e.getAttribute("data-bs-interval"),10);this._config.interval=t||this._config.defaultInterval}_slide(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(this._isSliding)return;const n=this._getActive(),i=e===oe,r=t||w(this._getItems(),n,i,this._config.wrap);if(r===n)return;const s=this._getItemIndex(r),a=t=>D.trigger(this._element,t,{relatedTarget:r,direction:this._orderToDirection(e),from:this._getItemIndex(n),to:s});if(a(de).defaultPrevented)return;if(!n||!r)return;const o=Boolean(this._interval);this.pause(),this._isSliding=!0,this._setActiveIndicatorElement(s),this._activeElement=r;const l=i?"carousel-item-start":"carousel-item-end",c=i?"carousel-item-next":"carousel-item-prev";r.classList.add(c),d(r),n.classList.add(l),r.classList.add(l),this._queueCallback((()=>{r.classList.remove(l,c),r.classList.add(ye),n.classList.remove(ye,c,l),this._isSliding=!1,a(he)}),n,this._isAnimated()),o&&this.cycle()}_isAnimated(){return this._element.classList.contains("slide")}_getActive(){return z.findOne(ke,this._element)}_getItems(){return z.find(Ce,this._element)}_clearInterval(){this._interval&&(clearInterval(this._interval),this._interval=null)}_directionToOrder(e){return p()?e===ce?le:oe:e===ce?oe:le}_orderToDirection(e){return p()?e===le?ce:ue:e===le?ue:ce}static jQueryInterface(e){return this.each((function(){const t=je.getOrCreateInstance(this,e);if("number"!=typeof e){if("string"==typeof e){if(void 0===t[e]||e.startsWith("_")||"constructor"===e)throw new TypeError(`No method named "${e}"`);t[e]()}}else t.to(e)}))}}D.on(document,we,"[data-bs-slide], [data-bs-slide-to]",(function(e){const t=z.getElementFromSelector(this);if(!t||!t.classList.contains(ve))return;e.preventDefault();const n=je.getOrCreateInstance(t),i=this.getAttribute("data-bs-slide-to");return i?(n.to(i),void n._maybeEnableCycle()):"next"===F.getDataAttribute(this,"slide")?(n.next(),void n._maybeEnableCycle()):(n.prev(),void n._maybeEnableCycle())})),D.on(window,be,(()=>{const e=z.find('[data-bs-ride="carousel"]');for(const t of e)je.getOrCreateInstance(t)})),m(je);const Se=".bs.collapse",Te=`show${Se}`,Ne=`shown${Se}`,Me=`hide${Se}`,Ie=`hidden${Se}`,Oe=`click${Se}.data-api`,De="show",Be="collapse",Le="collapsing",Pe=`:scope .${Be} .${Be}`,Fe='[data-bs-toggle="collapse"]',Re={parent:null,toggle:!0},qe={parent:"(null|element)",toggle:"boolean"};class Ve extends q{constructor(e,t){super(e,t),this._isTransitioning=!1,this._triggerArray=[];const n=z.find(Fe);for(const i of n){const e=z.getSelectorFromElement(i),t=z.find(e).filter((e=>e===this._element));null!==e&&t.length&&this._triggerArray.push(i)}this._initializeChildren(),this._config.parent||this._addAriaAndCollapsedClass(this._triggerArray,this._isShown()),this._config.toggle&&this.toggle()}static get Default(){return Re}static get DefaultType(){return qe}static get NAME(){return"collapse"}toggle(){this._isShown()?this.hide():this.show()}show(){if(this._isTransitioning||this._isShown())return;let e=[];if(this._config.parent&&(e=this._getFirstLevelChildren(".collapse.show, .collapse.collapsing").filter((e=>e!==this._element)).map((e=>Ve.getOrCreateInstance(e,{toggle:!1})))),e.length&&e[0]._isTransitioning)return;if(D.trigger(this._element,Te).defaultPrevented)return;for(const i of e)i.hide();const t=this._getDimension();this._element.classList.remove(Be),this._element.classList.add(Le),this._element.style[t]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;const n=`scroll${t[0].toUpperCase()+t.slice(1)}`;this._queueCallback((()=>{this._isTransitioning=!1,this._element.classList.remove(Le),this._element.classList.add(Be,De),this._element.style[t]="",D.trigger(this._element,Ne)}),this._element,!0),this._element.style[t]=`${this._element[n]}px`}hide(){if(this._isTransitioning||!this._isShown())return;if(D.trigger(this._element,Me).defaultPrevented)return;const e=this._getDimension();this._element.style[e]=`${this._element.getBoundingClientRect()[e]}px`,d(this._element),this._element.classList.add(Le),this._element.classList.remove(Be,De);for(const t of this._triggerArray){const e=z.getElementFromSelector(t);e&&!this._isShown(e)&&this._addAriaAndCollapsedClass([t],!1)}this._isTransitioning=!0,this._element.style[e]="",this._queueCallback((()=>{this._isTransitioning=!1,this._element.classList.remove(Le),this._element.classList.add(Be),D.trigger(this._element,Ie)}),this._element,!0)}_isShown(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:this._element).classList.contains(De)}_configAfterMerge(e){return e.toggle=Boolean(e.toggle),e.parent=a(e.parent),e}_getDimension(){return this._element.classList.contains("collapse-horizontal")?"width":"height"}_initializeChildren(){if(!this._config.parent)return;const e=this._getFirstLevelChildren(Fe);for(const t of e){const e=z.getElementFromSelector(t);e&&this._addAriaAndCollapsedClass([t],this._isShown(e))}}_getFirstLevelChildren(e){const t=z.find(Pe,this._config.parent);return z.find(e,this._config.parent).filter((e=>!t.includes(e)))}_addAriaAndCollapsedClass(e,t){if(e.length)for(const n of e)n.classList.toggle("collapsed",!t),n.setAttribute("aria-expanded",t)}static jQueryInterface(e){const t={};return"string"==typeof e&&/show|hide/.test(e)&&(t.toggle=!1),this.each((function(){const n=Ve.getOrCreateInstance(this,t);if("string"==typeof e){if(void 0===n[e])throw new TypeError(`No method named "${e}"`);n[e]()}}))}}D.on(document,Oe,Fe,(function(e){("A"===e.target.tagName||e.delegateTarget&&"A"===e.delegateTarget.tagName)&&e.preventDefault();for(const t of z.getMultipleElementsFromSelector(this))Ve.getOrCreateInstance(t,{toggle:!1}).toggle()})),m(Ve);var ze="top",Ye="bottom",$e="right",Ue="left",Ge="auto",We=[ze,Ye,$e,Ue],Qe="start",He="end",Ke="clippingParents",Je="viewport",Ze="popper",Xe="reference",et=We.reduce((function(e,t){return e.concat([t+"-"+Qe,t+"-"+He])}),[]),tt=[].concat(We,[Ge]).reduce((function(e,t){return e.concat([t,t+"-"+Qe,t+"-"+He])}),[]),nt="beforeRead",it="read",rt="afterRead",st="beforeMain",at="main",ot="afterMain",lt="beforeWrite",ct="write",ut="afterWrite",dt=[nt,it,rt,st,at,ot,lt,ct,ut];function ht(e){return e?(e.nodeName||"").toLowerCase():null}function ft(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function pt(e){return e instanceof ft(e).Element||e instanceof Element}function mt(e){return e instanceof ft(e).HTMLElement||e instanceof HTMLElement}function gt(e){return"undefined"!=typeof ShadowRoot&&(e instanceof ft(e).ShadowRoot||e instanceof ShadowRoot)}const bt={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var n=t.styles[e]||{},i=t.attributes[e]||{},r=t.elements[e];mt(r)&&ht(r)&&(Object.assign(r.style,n),Object.keys(i).forEach((function(e){var t=i[e];!1===t?r.removeAttribute(e):r.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach((function(e){var i=t.elements[e],r=t.attributes[e]||{},s=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{});mt(i)&&ht(i)&&(Object.assign(i.style,s),Object.keys(r).forEach((function(e){i.removeAttribute(e)})))}))}},requires:["computeStyles"]};function wt(e){return e.split("-")[0]}var vt=Math.max,yt=Math.min,xt=Math.round;function Ct(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map((function(e){return e.brand+"/"+e.version})).join(" "):navigator.userAgent}function kt(){return!/^((?!chrome|android).)*safari/i.test(Ct())}function At(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var i=e.getBoundingClientRect(),r=1,s=1;t&&mt(e)&&(r=e.offsetWidth>0&&xt(i.width)/e.offsetWidth||1,s=e.offsetHeight>0&&xt(i.height)/e.offsetHeight||1);var a=(pt(e)?ft(e):window).visualViewport,o=!kt()&&n,l=(i.left+(o&&a?a.offsetLeft:0))/r,c=(i.top+(o&&a?a.offsetTop:0))/s,u=i.width/r,d=i.height/s;return{width:u,height:d,top:c,right:l+u,bottom:c+d,left:l,x:l,y:c}}function Et(e){var t=At(e),n=e.offsetWidth,i=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-i)<=1&&(i=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:i}}function _t(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&>(n)){var i=t;do{if(i&&e.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function jt(e){return ft(e).getComputedStyle(e)}function St(e){return["table","td","th"].indexOf(ht(e))>=0}function Tt(e){return((pt(e)?e.ownerDocument:e.document)||window.document).documentElement}function Nt(e){return"html"===ht(e)?e:e.assignedSlot||e.parentNode||(gt(e)?e.host:null)||Tt(e)}function Mt(e){return mt(e)&&"fixed"!==jt(e).position?e.offsetParent:null}function It(e){for(var t=ft(e),n=Mt(e);n&&St(n)&&"static"===jt(n).position;)n=Mt(n);return n&&("html"===ht(n)||"body"===ht(n)&&"static"===jt(n).position)?t:n||function(e){var t=/firefox/i.test(Ct());if(/Trident/i.test(Ct())&&mt(e)&&"fixed"===jt(e).position)return null;var n=Nt(e);for(gt(n)&&(n=n.host);mt(n)&&["html","body"].indexOf(ht(n))<0;){var i=jt(n);if("none"!==i.transform||"none"!==i.perspective||"paint"===i.contain||-1!==["transform","perspective"].indexOf(i.willChange)||t&&"filter"===i.willChange||t&&i.filter&&"none"!==i.filter)return n;n=n.parentNode}return null}(e)||t}function Ot(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Dt(e,t,n){return vt(e,yt(t,n))}function Bt(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function Lt(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}const Pt={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,i=e.name,r=e.options,s=n.elements.arrow,a=n.modifiersData.popperOffsets,o=wt(n.placement),l=Ot(o),c=[Ue,$e].indexOf(o)>=0?"height":"width";if(s&&a){var u=function(e,t){return Bt("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:Lt(e,We))}(r.padding,n),d=Et(s),h="y"===l?ze:Ue,f="y"===l?Ye:$e,p=n.rects.reference[c]+n.rects.reference[l]-a[l]-n.rects.popper[c],m=a[l]-n.rects.reference[l],g=It(s),b=g?"y"===l?g.clientHeight||0:g.clientWidth||0:0,w=p/2-m/2,v=u[h],y=b-d[c]-u[f],x=b/2-d[c]/2+w,C=Dt(v,x,y),k=l;n.modifiersData[i]=((t={})[k]=C,t.centerOffset=C-x,t)}},effect:function(e){var t=e.state,n=e.options.element,i=void 0===n?"[data-popper-arrow]":n;null!=i&&("string"!=typeof i||(i=t.elements.popper.querySelector(i)))&&_t(t.elements.popper,i)&&(t.elements.arrow=i)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Ft(e){return e.split("-")[1]}var Rt={top:"auto",right:"auto",bottom:"auto",left:"auto"};function qt(e){var t,n=e.popper,i=e.popperRect,r=e.placement,s=e.variation,a=e.offsets,o=e.position,l=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,d=e.isFixed,h=a.x,f=void 0===h?0:h,p=a.y,m=void 0===p?0:p,g="function"==typeof u?u({x:f,y:m}):{x:f,y:m};f=g.x,m=g.y;var b=a.hasOwnProperty("x"),w=a.hasOwnProperty("y"),v=Ue,y=ze,x=window;if(c){var C=It(n),k="clientHeight",A="clientWidth";C===ft(n)&&"static"!==jt(C=Tt(n)).position&&"absolute"===o&&(k="scrollHeight",A="scrollWidth"),(r===ze||(r===Ue||r===$e)&&s===He)&&(y=Ye,m-=(d&&C===x&&x.visualViewport?x.visualViewport.height:C[k])-i.height,m*=l?1:-1),r!==Ue&&(r!==ze&&r!==Ye||s!==He)||(v=$e,f-=(d&&C===x&&x.visualViewport?x.visualViewport.width:C[A])-i.width,f*=l?1:-1)}var E,_=Object.assign({position:o},c&&Rt),j=!0===u?function(e,t){var n=e.x,i=e.y,r=t.devicePixelRatio||1;return{x:xt(n*r)/r||0,y:xt(i*r)/r||0}}({x:f,y:m},ft(n)):{x:f,y:m};return f=j.x,m=j.y,l?Object.assign({},_,((E={})[y]=w?"0":"",E[v]=b?"0":"",E.transform=(x.devicePixelRatio||1)<=1?"translate("+f+"px, "+m+"px)":"translate3d("+f+"px, "+m+"px, 0)",E)):Object.assign({},_,((t={})[y]=w?m+"px":"",t[v]=b?f+"px":"",t.transform="",t))}const Vt={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,i=n.gpuAcceleration,r=void 0===i||i,s=n.adaptive,a=void 0===s||s,o=n.roundOffsets,l=void 0===o||o,c={placement:wt(t.placement),variation:Ft(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:r,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,qt(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:l})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,qt(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}};var zt={passive:!0};const Yt={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,i=e.options,r=i.scroll,s=void 0===r||r,a=i.resize,o=void 0===a||a,l=ft(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return s&&c.forEach((function(e){e.addEventListener("scroll",n.update,zt)})),o&&l.addEventListener("resize",n.update,zt),function(){s&&c.forEach((function(e){e.removeEventListener("scroll",n.update,zt)})),o&&l.removeEventListener("resize",n.update,zt)}},data:{}};var $t={left:"right",right:"left",bottom:"top",top:"bottom"};function Ut(e){return e.replace(/left|right|bottom|top/g,(function(e){return $t[e]}))}var Gt={start:"end",end:"start"};function Wt(e){return e.replace(/start|end/g,(function(e){return Gt[e]}))}function Qt(e){var t=ft(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Ht(e){return At(Tt(e)).left+Qt(e).scrollLeft}function Kt(e){var t=jt(e),n=t.overflow,i=t.overflowX,r=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+r+i)}function Jt(e){return["html","body","#document"].indexOf(ht(e))>=0?e.ownerDocument.body:mt(e)&&Kt(e)?e:Jt(Nt(e))}function Zt(e,t){var n;void 0===t&&(t=[]);var i=Jt(e),r=i===(null==(n=e.ownerDocument)?void 0:n.body),s=ft(i),a=r?[s].concat(s.visualViewport||[],Kt(i)?i:[]):i,o=t.concat(a);return r?o:o.concat(Zt(Nt(a)))}function Xt(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function en(e,t,n){return t===Je?Xt(function(e,t){var n=ft(e),i=Tt(e),r=n.visualViewport,s=i.clientWidth,a=i.clientHeight,o=0,l=0;if(r){s=r.width,a=r.height;var c=kt();(c||!c&&"fixed"===t)&&(o=r.offsetLeft,l=r.offsetTop)}return{width:s,height:a,x:o+Ht(e),y:l}}(e,n)):pt(t)?function(e,t){var n=At(e,!1,"fixed"===t);return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}(t,n):Xt(function(e){var t,n=Tt(e),i=Qt(e),r=null==(t=e.ownerDocument)?void 0:t.body,s=vt(n.scrollWidth,n.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),a=vt(n.scrollHeight,n.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),o=-i.scrollLeft+Ht(e),l=-i.scrollTop;return"rtl"===jt(r||n).direction&&(o+=vt(n.clientWidth,r?r.clientWidth:0)-s),{width:s,height:a,x:o,y:l}}(Tt(e)))}function tn(e){var t,n=e.reference,i=e.element,r=e.placement,s=r?wt(r):null,a=r?Ft(r):null,o=n.x+n.width/2-i.width/2,l=n.y+n.height/2-i.height/2;switch(s){case ze:t={x:o,y:n.y-i.height};break;case Ye:t={x:o,y:n.y+n.height};break;case $e:t={x:n.x+n.width,y:l};break;case Ue:t={x:n.x-i.width,y:l};break;default:t={x:n.x,y:n.y}}var c=s?Ot(s):null;if(null!=c){var u="y"===c?"height":"width";switch(a){case Qe:t[c]=t[c]-(n[u]/2-i[u]/2);break;case He:t[c]=t[c]+(n[u]/2-i[u]/2)}}return t}function nn(e,t){void 0===t&&(t={});var n=t,i=n.placement,r=void 0===i?e.placement:i,s=n.strategy,a=void 0===s?e.strategy:s,o=n.boundary,l=void 0===o?Ke:o,c=n.rootBoundary,u=void 0===c?Je:c,d=n.elementContext,h=void 0===d?Ze:d,f=n.altBoundary,p=void 0!==f&&f,m=n.padding,g=void 0===m?0:m,b=Bt("number"!=typeof g?g:Lt(g,We)),w=h===Ze?Xe:Ze,v=e.rects.popper,y=e.elements[p?w:h],x=function(e,t,n,i){var r="clippingParents"===t?function(e){var t=Zt(Nt(e)),n=["absolute","fixed"].indexOf(jt(e).position)>=0&&mt(e)?It(e):e;return pt(n)?t.filter((function(e){return pt(e)&&_t(e,n)&&"body"!==ht(e)})):[]}(e):[].concat(t),s=[].concat(r,[n]),a=s[0],o=s.reduce((function(t,n){var r=en(e,n,i);return t.top=vt(r.top,t.top),t.right=yt(r.right,t.right),t.bottom=yt(r.bottom,t.bottom),t.left=vt(r.left,t.left),t}),en(e,a,i));return o.width=o.right-o.left,o.height=o.bottom-o.top,o.x=o.left,o.y=o.top,o}(pt(y)?y:y.contextElement||Tt(e.elements.popper),l,u,a),C=At(e.elements.reference),k=tn({reference:C,element:v,strategy:"absolute",placement:r}),A=Xt(Object.assign({},v,k)),E=h===Ze?A:C,_={top:x.top-E.top+b.top,bottom:E.bottom-x.bottom+b.bottom,left:x.left-E.left+b.left,right:E.right-x.right+b.right},j=e.modifiersData.offset;if(h===Ze&&j){var S=j[r];Object.keys(_).forEach((function(e){var t=[$e,Ye].indexOf(e)>=0?1:-1,n=[ze,Ye].indexOf(e)>=0?"y":"x";_[e]+=S[n]*t}))}return _}function rn(e,t){void 0===t&&(t={});var n=t,i=n.placement,r=n.boundary,s=n.rootBoundary,a=n.padding,o=n.flipVariations,l=n.allowedAutoPlacements,c=void 0===l?tt:l,u=Ft(i),d=u?o?et:et.filter((function(e){return Ft(e)===u})):We,h=d.filter((function(e){return c.indexOf(e)>=0}));0===h.length&&(h=d);var f=h.reduce((function(t,n){return t[n]=nn(e,{placement:n,boundary:r,rootBoundary:s,padding:a})[wt(n)],t}),{});return Object.keys(f).sort((function(e,t){return f[e]-f[t]}))}const sn={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,i=e.name;if(!t.modifiersData[i]._skip){for(var r=n.mainAxis,s=void 0===r||r,a=n.altAxis,o=void 0===a||a,l=n.fallbackPlacements,c=n.padding,u=n.boundary,d=n.rootBoundary,h=n.altBoundary,f=n.flipVariations,p=void 0===f||f,m=n.allowedAutoPlacements,g=t.options.placement,b=wt(g),w=l||(b!==g&&p?function(e){if(wt(e)===Ge)return[];var t=Ut(e);return[Wt(e),t,Wt(t)]}(g):[Ut(g)]),v=[g].concat(w).reduce((function(e,n){return e.concat(wt(n)===Ge?rn(t,{placement:n,boundary:u,rootBoundary:d,padding:c,flipVariations:p,allowedAutoPlacements:m}):n)}),[]),y=t.rects.reference,x=t.rects.popper,C=new Map,k=!0,A=v[0],E=0;E=0,N=T?"width":"height",M=nn(t,{placement:_,boundary:u,rootBoundary:d,altBoundary:h,padding:c}),I=T?S?$e:Ue:S?Ye:ze;y[N]>x[N]&&(I=Ut(I));var O=Ut(I),D=[];if(s&&D.push(M[j]<=0),o&&D.push(M[I]<=0,M[O]<=0),D.every((function(e){return e}))){A=_,k=!1;break}C.set(_,D)}if(k)for(var B=function(e){var t=v.find((function(t){var n=C.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return A=t,"break"},L=p?3:1;L>0&&"break"!==B(L);L--);t.placement!==A&&(t.modifiersData[i]._skip=!0,t.placement=A,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function an(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function on(e){return[ze,$e,Ye,Ue].some((function(t){return e[t]>=0}))}const ln={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,i=t.rects.reference,r=t.rects.popper,s=t.modifiersData.preventOverflow,a=nn(t,{elementContext:"reference"}),o=nn(t,{altBoundary:!0}),l=an(a,i),c=an(o,r,s),u=on(l),d=on(c);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}},cn={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,i=e.name,r=n.offset,s=void 0===r?[0,0]:r,a=tt.reduce((function(e,n){return e[n]=function(e,t,n){var i=wt(e),r=[Ue,ze].indexOf(i)>=0?-1:1,s="function"==typeof n?n(Object.assign({},t,{placement:e})):n,a=s[0],o=s[1];return a=a||0,o=(o||0)*r,[Ue,$e].indexOf(i)>=0?{x:o,y:a}:{x:a,y:o}}(n,t.rects,s),e}),{}),o=a[t.placement],l=o.x,c=o.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[i]=a}},un={name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=tn({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},dn={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,i=e.name,r=n.mainAxis,s=void 0===r||r,a=n.altAxis,o=void 0!==a&&a,l=n.boundary,c=n.rootBoundary,u=n.altBoundary,d=n.padding,h=n.tether,f=void 0===h||h,p=n.tetherOffset,m=void 0===p?0:p,g=nn(t,{boundary:l,rootBoundary:c,padding:d,altBoundary:u}),b=wt(t.placement),w=Ft(t.placement),v=!w,y=Ot(b),x="x"===y?"y":"x",C=t.modifiersData.popperOffsets,k=t.rects.reference,A=t.rects.popper,E="function"==typeof m?m(Object.assign({},t.rects,{placement:t.placement})):m,_="number"==typeof E?{mainAxis:E,altAxis:E}:Object.assign({mainAxis:0,altAxis:0},E),j=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,S={x:0,y:0};if(C){if(s){var T,N="y"===y?ze:Ue,M="y"===y?Ye:$e,I="y"===y?"height":"width",O=C[y],D=O+g[N],B=O-g[M],L=f?-A[I]/2:0,P=w===Qe?k[I]:A[I],F=w===Qe?-A[I]:-k[I],R=t.elements.arrow,q=f&&R?Et(R):{width:0,height:0},V=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},z=V[N],Y=V[M],$=Dt(0,k[I],q[I]),U=v?k[I]/2-L-$-z-_.mainAxis:P-$-z-_.mainAxis,G=v?-k[I]/2+L+$+Y+_.mainAxis:F+$+Y+_.mainAxis,W=t.elements.arrow&&It(t.elements.arrow),Q=W?"y"===y?W.clientTop||0:W.clientLeft||0:0,H=null!=(T=null==j?void 0:j[y])?T:0,K=O+G-H,J=Dt(f?yt(D,O+U-H-Q):D,O,f?vt(B,K):B);C[y]=J,S[y]=J-O}if(o){var Z,X="x"===y?ze:Ue,ee="x"===y?Ye:$e,te=C[x],ne="y"===x?"height":"width",ie=te+g[X],re=te-g[ee],se=-1!==[ze,Ue].indexOf(b),ae=null!=(Z=null==j?void 0:j[x])?Z:0,oe=se?ie:te-k[ne]-A[ne]-ae+_.altAxis,le=se?te+k[ne]+A[ne]-ae-_.altAxis:re,ce=f&&se?function(e,t,n){var i=Dt(e,t,n);return i>n?n:i}(oe,te,le):Dt(f?oe:ie,te,f?le:re);C[x]=ce,S[x]=ce-te}t.modifiersData[i]=S}},requiresIfExists:["offset"]};function hn(e,t,n){void 0===n&&(n=!1);var i,r,s=mt(t),a=mt(t)&&function(e){var t=e.getBoundingClientRect(),n=xt(t.width)/e.offsetWidth||1,i=xt(t.height)/e.offsetHeight||1;return 1!==n||1!==i}(t),o=Tt(t),l=At(e,a,n),c={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(s||!s&&!n)&&(("body"!==ht(t)||Kt(o))&&(c=(i=t)!==ft(i)&&mt(i)?{scrollLeft:(r=i).scrollLeft,scrollTop:r.scrollTop}:Qt(i)),mt(t)?((u=At(t,!0)).x+=t.clientLeft,u.y+=t.clientTop):o&&(u.x=Ht(o))),{x:l.left+c.scrollLeft-u.x,y:l.top+c.scrollTop-u.y,width:l.width,height:l.height}}function fn(e){var t=new Map,n=new Set,i=[];function r(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!n.has(e)){var i=t.get(e);i&&r(i)}})),i.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||r(e)})),i}var pn={placement:"bottom",modifiers:[],strategy:"absolute"};function mn(){for(var e=arguments.length,t=new Array(e),n=0;nNumber.parseInt(e,10))):"function"==typeof e?t=>e(t,this._element):e}_getPopperConfig(){const e={placement:this._getPlacement(),modifiers:[{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"offset",options:{offset:this._getOffset()}}]};return(this._inNavbar||"static"===this._config.display)&&(F.setDataAttribute(this._menu,"popper","static"),e.modifiers=[{name:"applyStyles",enabled:!1}]),{...e,...g(this._config.popperConfig,[e])}}_selectMenuItem(e){let{key:t,target:n}=e;const i=z.find(".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",this._menu).filter((e=>o(e)));i.length&&w(i,n,t===En,!i.includes(n)).focus()}static jQueryInterface(e){return this.each((function(){const t=Un.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e])throw new TypeError(`No method named "${e}"`);t[e]()}}))}static clearMenus(e){if(2===e.button||"keyup"===e.type&&"Tab"!==e.key)return;const t=z.find(Bn);for(const n of t){const t=Un.getInstance(n);if(!t||!1===t._config.autoClose)continue;const i=e.composedPath(),r=i.includes(t._menu);if(i.includes(t._element)||"inside"===t._config.autoClose&&!r||"outside"===t._config.autoClose&&r)continue;if(t._menu.contains(e.target)&&("keyup"===e.type&&"Tab"===e.key||/input|select|option|textarea|form/i.test(e.target.tagName)))continue;const s={relatedTarget:t._element};"click"===e.type&&(s.clickEvent=e),t._completeHide(s)}}static dataApiKeydownHandler(e){const t=/input|textarea/i.test(e.target.tagName),n="Escape"===e.key,i=[An,En].includes(e.key);if(!i&&!n)return;if(t&&!n)return;e.preventDefault();const r=this.matches(Dn)?this:z.prev(this,Dn)[0]||z.next(this,Dn)[0]||z.findOne(Dn,e.delegateTarget.parentNode),s=Un.getOrCreateInstance(r);if(i)return e.stopPropagation(),s.show(),void s._selectMenuItem(e);s._isShown()&&(e.stopPropagation(),s.hide(),r.focus())}}D.on(document,Mn,Dn,Un.dataApiKeydownHandler),D.on(document,Mn,Ln,Un.dataApiKeydownHandler),D.on(document,Nn,Un.clearMenus),D.on(document,In,Un.clearMenus),D.on(document,Nn,Dn,(function(e){e.preventDefault(),Un.getOrCreateInstance(this).toggle()})),m(Un);const Gn="backdrop",Wn="show",Qn=`mousedown.bs.${Gn}`,Hn={className:"modal-backdrop",clickCallback:null,isAnimated:!1,isVisible:!0,rootElement:"body"},Kn={className:"string",clickCallback:"(function|null)",isAnimated:"boolean",isVisible:"boolean",rootElement:"(element|string)"};class Jn extends R{constructor(e){super(),this._config=this._getConfig(e),this._isAppended=!1,this._element=null}static get Default(){return Hn}static get DefaultType(){return Kn}static get NAME(){return Gn}show(e){if(!this._config.isVisible)return void g(e);this._append();const t=this._getElement();this._config.isAnimated&&d(t),t.classList.add(Wn),this._emulateAnimation((()=>{g(e)}))}hide(e){this._config.isVisible?(this._getElement().classList.remove(Wn),this._emulateAnimation((()=>{this.dispose(),g(e)}))):g(e)}dispose(){this._isAppended&&(D.off(this._element,Qn),this._element.remove(),this._isAppended=!1)}_getElement(){if(!this._element){const e=document.createElement("div");e.className=this._config.className,this._config.isAnimated&&e.classList.add("fade"),this._element=e}return this._element}_configAfterMerge(e){return e.rootElement=a(e.rootElement),e}_append(){if(this._isAppended)return;const e=this._getElement();this._config.rootElement.append(e),D.on(e,Qn,(()=>{g(this._config.clickCallback)})),this._isAppended=!0}_emulateAnimation(e){b(e,this._getElement(),this._config.isAnimated)}}const Zn=".bs.focustrap",Xn=`focusin${Zn}`,ei=`keydown.tab${Zn}`,ti="backward",ni={autofocus:!0,trapElement:null},ii={autofocus:"boolean",trapElement:"element"};class ri extends R{constructor(e){super(),this._config=this._getConfig(e),this._isActive=!1,this._lastTabNavDirection=null}static get Default(){return ni}static get DefaultType(){return ii}static get NAME(){return"focustrap"}activate(){this._isActive||(this._config.autofocus&&this._config.trapElement.focus(),D.off(document,Zn),D.on(document,Xn,(e=>this._handleFocusin(e))),D.on(document,ei,(e=>this._handleKeydown(e))),this._isActive=!0)}deactivate(){this._isActive&&(this._isActive=!1,D.off(document,Zn))}_handleFocusin(e){const{trapElement:t}=this._config;if(e.target===document||e.target===t||t.contains(e.target))return;const n=z.focusableChildren(t);0===n.length?t.focus():this._lastTabNavDirection===ti?n[n.length-1].focus():n[0].focus()}_handleKeydown(e){"Tab"===e.key&&(this._lastTabNavDirection=e.shiftKey?ti:"forward")}}const si=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",ai=".sticky-top",oi="padding-right",li="margin-right";class ci{constructor(){this._element=document.body}getWidth(){const e=document.documentElement.clientWidth;return Math.abs(window.innerWidth-e)}hide(){const e=this.getWidth();this._disableOverFlow(),this._setElementAttributes(this._element,oi,(t=>t+e)),this._setElementAttributes(si,oi,(t=>t+e)),this._setElementAttributes(ai,li,(t=>t-e))}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,oi),this._resetElementAttributes(si,oi),this._resetElementAttributes(ai,li)}isOverflowing(){return this.getWidth()>0}_disableOverFlow(){this._saveInitialAttribute(this._element,"overflow"),this._element.style.overflow="hidden"}_setElementAttributes(e,t,n){const i=this.getWidth();this._applyManipulationCallback(e,(e=>{if(e!==this._element&&window.innerWidth>e.clientWidth+i)return;this._saveInitialAttribute(e,t);const r=window.getComputedStyle(e).getPropertyValue(t);e.style.setProperty(t,`${n(Number.parseFloat(r))}px`)}))}_saveInitialAttribute(e,t){const n=e.style.getPropertyValue(t);n&&F.setDataAttribute(e,t,n)}_resetElementAttributes(e,t){this._applyManipulationCallback(e,(e=>{const n=F.getDataAttribute(e,t);null!==n?(F.removeDataAttribute(e,t),e.style.setProperty(t,n)):e.style.removeProperty(t)}))}_applyManipulationCallback(e,t){if(s(e))t(e);else for(const n of z.find(e,this._element))t(n)}}const ui=".bs.modal",di=`hide${ui}`,hi=`hidePrevented${ui}`,fi=`hidden${ui}`,pi=`show${ui}`,mi=`shown${ui}`,gi=`resize${ui}`,bi=`click.dismiss${ui}`,wi=`mousedown.dismiss${ui}`,vi=`keydown.dismiss${ui}`,yi=`click${ui}.data-api`,xi="modal-open",Ci="show",ki="modal-static",Ai={backdrop:!0,focus:!0,keyboard:!0},Ei={backdrop:"(boolean|string)",focus:"boolean",keyboard:"boolean"};class _i extends q{constructor(e,t){super(e,t),this._dialog=z.findOne(".modal-dialog",this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._isTransitioning=!1,this._scrollBar=new ci,this._addEventListeners()}static get Default(){return Ai}static get DefaultType(){return Ei}static get NAME(){return"modal"}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){this._isShown||this._isTransitioning||D.trigger(this._element,pi,{relatedTarget:e}).defaultPrevented||(this._isShown=!0,this._isTransitioning=!0,this._scrollBar.hide(),document.body.classList.add(xi),this._adjustDialog(),this._backdrop.show((()=>this._showElement(e))))}hide(){this._isShown&&!this._isTransitioning&&(D.trigger(this._element,di).defaultPrevented||(this._isShown=!1,this._isTransitioning=!0,this._focustrap.deactivate(),this._element.classList.remove(Ci),this._queueCallback((()=>this._hideModal()),this._element,this._isAnimated())))}dispose(){D.off(window,ui),D.off(this._dialog,ui),this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new Jn({isVisible:Boolean(this._config.backdrop),isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new ri({trapElement:this._element})}_showElement(e){document.body.contains(this._element)||document.body.append(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.scrollTop=0;const t=z.findOne(".modal-body",this._dialog);t&&(t.scrollTop=0),d(this._element),this._element.classList.add(Ci),this._queueCallback((()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,D.trigger(this._element,mi,{relatedTarget:e})}),this._dialog,this._isAnimated())}_addEventListeners(){D.on(this._element,vi,(e=>{"Escape"===e.key&&(this._config.keyboard?this.hide():this._triggerBackdropTransition())})),D.on(window,gi,(()=>{this._isShown&&!this._isTransitioning&&this._adjustDialog()})),D.on(this._element,wi,(e=>{D.one(this._element,bi,(t=>{this._element===e.target&&this._element===t.target&&("static"!==this._config.backdrop?this._config.backdrop&&this.hide():this._triggerBackdropTransition())}))}))}_hideModal(){this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._isTransitioning=!1,this._backdrop.hide((()=>{document.body.classList.remove(xi),this._resetAdjustments(),this._scrollBar.reset(),D.trigger(this._element,fi)}))}_isAnimated(){return this._element.classList.contains("fade")}_triggerBackdropTransition(){if(D.trigger(this._element,hi).defaultPrevented)return;const e=this._element.scrollHeight>document.documentElement.clientHeight,t=this._element.style.overflowY;"hidden"===t||this._element.classList.contains(ki)||(e||(this._element.style.overflowY="hidden"),this._element.classList.add(ki),this._queueCallback((()=>{this._element.classList.remove(ki),this._queueCallback((()=>{this._element.style.overflowY=t}),this._dialog)}),this._dialog),this._element.focus())}_adjustDialog(){const e=this._element.scrollHeight>document.documentElement.clientHeight,t=this._scrollBar.getWidth(),n=t>0;if(n&&!e){const e=p()?"paddingLeft":"paddingRight";this._element.style[e]=`${t}px`}if(!n&&e){const e=p()?"paddingRight":"paddingLeft";this._element.style[e]=`${t}px`}}_resetAdjustments(){this._element.style.paddingLeft="",this._element.style.paddingRight=""}static jQueryInterface(e,t){return this.each((function(){const n=_i.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===n[e])throw new TypeError(`No method named "${e}"`);n[e](t)}}))}}D.on(document,yi,'[data-bs-toggle="modal"]',(function(e){const t=z.getElementFromSelector(this);["A","AREA"].includes(this.tagName)&&e.preventDefault(),D.one(t,pi,(e=>{e.defaultPrevented||D.one(t,fi,(()=>{o(this)&&this.focus()}))}));const n=z.findOne(".modal.show");n&&_i.getInstance(n).hide(),_i.getOrCreateInstance(t).toggle(this)})),Y(_i),m(_i);const ji=".bs.offcanvas",Si=".data-api",Ti=`load${ji}${Si}`,Ni="show",Mi="showing",Ii="hiding",Oi=".offcanvas.show",Di=`show${ji}`,Bi=`shown${ji}`,Li=`hide${ji}`,Pi=`hidePrevented${ji}`,Fi=`hidden${ji}`,Ri=`resize${ji}`,qi=`click${ji}${Si}`,Vi=`keydown.dismiss${ji}`,zi={backdrop:!0,keyboard:!0,scroll:!1},Yi={backdrop:"(boolean|string)",keyboard:"boolean",scroll:"boolean"};class $i extends q{constructor(e,t){super(e,t),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._addEventListeners()}static get Default(){return zi}static get DefaultType(){return Yi}static get NAME(){return"offcanvas"}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){this._isShown||D.trigger(this._element,Di,{relatedTarget:e}).defaultPrevented||(this._isShown=!0,this._backdrop.show(),this._config.scroll||(new ci).hide(),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.classList.add(Mi),this._queueCallback((()=>{this._config.scroll&&!this._config.backdrop||this._focustrap.activate(),this._element.classList.add(Ni),this._element.classList.remove(Mi),D.trigger(this._element,Bi,{relatedTarget:e})}),this._element,!0))}hide(){this._isShown&&(D.trigger(this._element,Li).defaultPrevented||(this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.add(Ii),this._backdrop.hide(),this._queueCallback((()=>{this._element.classList.remove(Ni,Ii),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._config.scroll||(new ci).reset(),D.trigger(this._element,Fi)}),this._element,!0)))}dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}_initializeBackDrop(){const e=Boolean(this._config.backdrop);return new Jn({className:"offcanvas-backdrop",isVisible:e,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:e?()=>{"static"!==this._config.backdrop?this.hide():D.trigger(this._element,Pi)}:null})}_initializeFocusTrap(){return new ri({trapElement:this._element})}_addEventListeners(){D.on(this._element,Vi,(e=>{"Escape"===e.key&&(this._config.keyboard?this.hide():D.trigger(this._element,Pi))}))}static jQueryInterface(e){return this.each((function(){const t=$i.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e]||e.startsWith("_")||"constructor"===e)throw new TypeError(`No method named "${e}"`);t[e](this)}}))}}D.on(document,qi,'[data-bs-toggle="offcanvas"]',(function(e){const t=z.getElementFromSelector(this);if(["A","AREA"].includes(this.tagName)&&e.preventDefault(),l(this))return;D.one(t,Fi,(()=>{o(this)&&this.focus()}));const n=z.findOne(Oi);n&&n!==t&&$i.getInstance(n).hide(),$i.getOrCreateInstance(t).toggle(this)})),D.on(window,Ti,(()=>{for(const e of z.find(Oi))$i.getOrCreateInstance(e).show()})),D.on(window,Ri,(()=>{for(const e of z.find("[aria-modal][class*=show][class*=offcanvas-]"))"fixed"!==getComputedStyle(e).position&&$i.getOrCreateInstance(e).hide()})),Y($i),m($i);const Ui={"*":["class","dir","id","lang","role",/^aria-[\w-]*$/i],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],dd:[],div:[],dl:[],dt:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","srcset","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]},Gi=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),Wi=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:/?#]*(?:[/?#]|$))/i,Qi=(e,t)=>{const n=e.nodeName.toLowerCase();return t.includes(n)?!Gi.has(n)||Boolean(Wi.test(e.nodeValue)):t.filter((e=>e instanceof RegExp)).some((e=>e.test(n)))},Hi={allowList:Ui,content:{},extraClass:"",html:!1,sanitize:!0,sanitizeFn:null,template:"
"},Ki={allowList:"object",content:"object",extraClass:"(string|function)",html:"boolean",sanitize:"boolean",sanitizeFn:"(null|function)",template:"string"},Ji={entry:"(string|element|function|null)",selector:"(string|element)"};class Zi extends R{constructor(e){super(),this._config=this._getConfig(e)}static get Default(){return Hi}static get DefaultType(){return Ki}static get NAME(){return"TemplateFactory"}getContent(){return Object.values(this._config.content).map((e=>this._resolvePossibleFunction(e))).filter(Boolean)}hasContent(){return this.getContent().length>0}changeContent(e){return this._checkContent(e),this._config.content={...this._config.content,...e},this}toHtml(){const e=document.createElement("div");e.innerHTML=this._maybeSanitize(this._config.template);for(const[i,r]of Object.entries(this._config.content))this._setContent(e,r,i);const t=e.children[0],n=this._resolvePossibleFunction(this._config.extraClass);return n&&t.classList.add(...n.split(" ")),t}_typeCheckConfig(e){super._typeCheckConfig(e),this._checkContent(e.content)}_checkContent(e){for(const[t,n]of Object.entries(e))super._typeCheckConfig({selector:t,entry:n},Ji)}_setContent(e,t,n){const i=z.findOne(n,e);i&&((t=this._resolvePossibleFunction(t))?s(t)?this._putElementInTemplate(a(t),i):this._config.html?i.innerHTML=this._maybeSanitize(t):i.textContent=t:i.remove())}_maybeSanitize(e){return this._config.sanitize?function(e,t,n){if(!e.length)return e;if(n&&"function"==typeof n)return n(e);const i=(new window.DOMParser).parseFromString(e,"text/html"),r=[].concat(...i.body.querySelectorAll("*"));for(const s of r){const e=s.nodeName.toLowerCase();if(!Object.keys(t).includes(e)){s.remove();continue}const n=[].concat(...s.attributes),i=[].concat(t["*"]||[],t[e]||[]);for(const t of n)Qi(t,i)||s.removeAttribute(t.nodeName)}return i.body.innerHTML}(e,this._config.allowList,this._config.sanitizeFn):e}_resolvePossibleFunction(e){return g(e,[this])}_putElementInTemplate(e,t){if(this._config.html)return t.innerHTML="",void t.append(e);t.textContent=e.textContent}}const Xi=new Set(["sanitize","allowList","sanitizeFn"]),er="fade",tr="show",nr=".modal",ir="hide.bs.modal",rr="hover",sr="focus",ar={AUTO:"auto",TOP:"top",RIGHT:p()?"left":"right",BOTTOM:"bottom",LEFT:p()?"right":"left"},or={allowList:Ui,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"},lr={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 cr extends q{constructor(e,t){if(void 0===yn)throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org)");super(e,t),this._isEnabled=!0,this._timeout=0,this._isHovered=null,this._activeTrigger={},this._popper=null,this._templateFactory=null,this._newContent=null,this.tip=null,this._setListeners(),this._config.selector||this._fixTitle()}static get Default(){return or}static get DefaultType(){return lr}static get NAME(){return"tooltip"}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}toggleEnabled(){this._isEnabled=!this._isEnabled}toggle(){this._isEnabled&&(this._activeTrigger.click=!this._activeTrigger.click,this._isShown()?this._leave():this._enter())}dispose(){clearTimeout(this._timeout),D.off(this._element.closest(nr),ir,this._hideModalHandler),this._element.getAttribute("data-bs-original-title")&&this._element.setAttribute("title",this._element.getAttribute("data-bs-original-title")),this._disposePopper(),super.dispose()}show(){if("none"===this._element.style.display)throw new Error("Please use show on visible elements");if(!this._isWithContent()||!this._isEnabled)return;const e=D.trigger(this._element,this.constructor.eventName("show")),t=(c(this._element)||this._element.ownerDocument.documentElement).contains(this._element);if(e.defaultPrevented||!t)return;this._disposePopper();const n=this._getTipElement();this._element.setAttribute("aria-describedby",n.getAttribute("id"));const{container:i}=this._config;if(this._element.ownerDocument.documentElement.contains(this.tip)||(i.append(n),D.trigger(this._element,this.constructor.eventName("inserted"))),this._popper=this._createPopper(n),n.classList.add(tr),"ontouchstart"in document.documentElement)for(const r of[].concat(...document.body.children))D.on(r,"mouseover",u);this._queueCallback((()=>{D.trigger(this._element,this.constructor.eventName("shown")),!1===this._isHovered&&this._leave(),this._isHovered=!1}),this.tip,this._isAnimated())}hide(){if(this._isShown()&&!D.trigger(this._element,this.constructor.eventName("hide")).defaultPrevented){if(this._getTipElement().classList.remove(tr),"ontouchstart"in document.documentElement)for(const e of[].concat(...document.body.children))D.off(e,"mouseover",u);this._activeTrigger.click=!1,this._activeTrigger[sr]=!1,this._activeTrigger[rr]=!1,this._isHovered=null,this._queueCallback((()=>{this._isWithActiveTrigger()||(this._isHovered||this._disposePopper(),this._element.removeAttribute("aria-describedby"),D.trigger(this._element,this.constructor.eventName("hidden")))}),this.tip,this._isAnimated())}}update(){this._popper&&this._popper.update()}_isWithContent(){return Boolean(this._getTitle())}_getTipElement(){return this.tip||(this.tip=this._createTipElement(this._newContent||this._getContentForTemplate())),this.tip}_createTipElement(e){const t=this._getTemplateFactory(e).toHtml();if(!t)return null;t.classList.remove(er,tr),t.classList.add(`bs-${this.constructor.NAME}-auto`);const n=(e=>{do{e+=Math.floor(1e6*Math.random())}while(document.getElementById(e));return e})(this.constructor.NAME).toString();return t.setAttribute("id",n),this._isAnimated()&&t.classList.add(er),t}setContent(e){this._newContent=e,this._isShown()&&(this._disposePopper(),this.show())}_getTemplateFactory(e){return this._templateFactory?this._templateFactory.changeContent(e):this._templateFactory=new Zi({...this._config,content:e,extraClass:this._resolvePossibleFunction(this._config.customClass)}),this._templateFactory}_getContentForTemplate(){return{".tooltip-inner":this._getTitle()}}_getTitle(){return this._resolvePossibleFunction(this._config.title)||this._element.getAttribute("data-bs-original-title")}_initializeOnDelegatedTarget(e){return this.constructor.getOrCreateInstance(e.delegateTarget,this._getDelegateConfig())}_isAnimated(){return this._config.animation||this.tip&&this.tip.classList.contains(er)}_isShown(){return this.tip&&this.tip.classList.contains(tr)}_createPopper(e){const t=g(this._config.placement,[this,e,this._element]),n=ar[t.toUpperCase()];return vn(this._element,e,this._getPopperConfig(n))}_getOffset(){const{offset:e}=this._config;return"string"==typeof e?e.split(",").map((e=>Number.parseInt(e,10))):"function"==typeof e?t=>e(t,this._element):e}_resolvePossibleFunction(e){return g(e,[this._element])}_getPopperConfig(e){const t={placement:e,modifiers:[{name:"flip",options:{fallbackPlacements:this._config.fallbackPlacements}},{name:"offset",options:{offset:this._getOffset()}},{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"arrow",options:{element:`.${this.constructor.NAME}-arrow`}},{name:"preSetPlacement",enabled:!0,phase:"beforeMain",fn:e=>{this._getTipElement().setAttribute("data-popper-placement",e.state.placement)}}]};return{...t,...g(this._config.popperConfig,[t])}}_setListeners(){const e=this._config.trigger.split(" ");for(const t of e)if("click"===t)D.on(this._element,this.constructor.eventName("click"),this._config.selector,(e=>{this._initializeOnDelegatedTarget(e).toggle()}));else if("manual"!==t){const e=t===rr?this.constructor.eventName("mouseenter"):this.constructor.eventName("focusin"),n=t===rr?this.constructor.eventName("mouseleave"):this.constructor.eventName("focusout");D.on(this._element,e,this._config.selector,(e=>{const t=this._initializeOnDelegatedTarget(e);t._activeTrigger["focusin"===e.type?sr:rr]=!0,t._enter()})),D.on(this._element,n,this._config.selector,(e=>{const t=this._initializeOnDelegatedTarget(e);t._activeTrigger["focusout"===e.type?sr:rr]=t._element.contains(e.relatedTarget),t._leave()}))}this._hideModalHandler=()=>{this._element&&this.hide()},D.on(this._element.closest(nr),ir,this._hideModalHandler)}_fixTitle(){const e=this._element.getAttribute("title");e&&(this._element.getAttribute("aria-label")||this._element.textContent.trim()||this._element.setAttribute("aria-label",e),this._element.setAttribute("data-bs-original-title",e),this._element.removeAttribute("title"))}_enter(){this._isShown()||this._isHovered?this._isHovered=!0:(this._isHovered=!0,this._setTimeout((()=>{this._isHovered&&this.show()}),this._config.delay.show))}_leave(){this._isWithActiveTrigger()||(this._isHovered=!1,this._setTimeout((()=>{this._isHovered||this.hide()}),this._config.delay.hide))}_setTimeout(e,t){clearTimeout(this._timeout),this._timeout=setTimeout(e,t)}_isWithActiveTrigger(){return Object.values(this._activeTrigger).includes(!0)}_getConfig(e){const t=F.getDataAttributes(this._element);for(const n of Object.keys(t))Xi.has(n)&&delete t[n];return e={...t,..."object"==typeof e&&e?e:{}},e=this._mergeConfigObj(e),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}_configAfterMerge(e){return e.container=!1===e.container?document.body:a(e.container),"number"==typeof e.delay&&(e.delay={show:e.delay,hide:e.delay}),"number"==typeof e.title&&(e.title=e.title.toString()),"number"==typeof e.content&&(e.content=e.content.toString()),e}_getDelegateConfig(){const e={};for(const[t,n]of Object.entries(this._config))this.constructor.Default[t]!==n&&(e[t]=n);return e.selector=!1,e.trigger="manual",e}_disposePopper(){this._popper&&(this._popper.destroy(),this._popper=null),this.tip&&(this.tip.remove(),this.tip=null)}static jQueryInterface(e){return this.each((function(){const t=cr.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e])throw new TypeError(`No method named "${e}"`);t[e]()}}))}}m(cr);const ur={...cr.Default,content:"",offset:[0,8],placement:"right",template:'',trigger:"click"},dr={...cr.DefaultType,content:"(null|string|element|function)"};class hr extends cr{static get Default(){return ur}static get DefaultType(){return dr}static get NAME(){return"popover"}_isWithContent(){return this._getTitle()||this._getContent()}_getContentForTemplate(){return{".popover-header":this._getTitle(),".popover-body":this._getContent()}}_getContent(){return this._resolvePossibleFunction(this._config.content)}static jQueryInterface(e){return this.each((function(){const t=hr.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e])throw new TypeError(`No method named "${e}"`);t[e]()}}))}}m(hr);const fr=".bs.scrollspy",pr=`activate${fr}`,mr=`click${fr}`,gr=`load${fr}.data-api`,br="active",wr="[href]",vr=".nav-link",yr=`${vr}, .nav-item > ${vr}, .list-group-item`,xr={offset:null,rootMargin:"0px 0px -25%",smoothScroll:!1,target:null,threshold:[.1,.5,1]},Cr={offset:"(number|null)",rootMargin:"string",smoothScroll:"boolean",target:"element",threshold:"array"};class kr extends q{constructor(e,t){super(e,t),this._targetLinks=new Map,this._observableSections=new Map,this._rootElement="visible"===getComputedStyle(this._element).overflowY?null:this._element,this._activeTarget=null,this._observer=null,this._previousScrollData={visibleEntryTop:0,parentScrollTop:0},this.refresh()}static get Default(){return xr}static get DefaultType(){return Cr}static get NAME(){return"scrollspy"}refresh(){this._initializeTargetsAndObservables(),this._maybeEnableSmoothScroll(),this._observer?this._observer.disconnect():this._observer=this._getNewObserver();for(const e of this._observableSections.values())this._observer.observe(e)}dispose(){this._observer.disconnect(),super.dispose()}_configAfterMerge(e){return e.target=a(e.target)||document.body,e.rootMargin=e.offset?`${e.offset}px 0px -30%`:e.rootMargin,"string"==typeof e.threshold&&(e.threshold=e.threshold.split(",").map((e=>Number.parseFloat(e)))),e}_maybeEnableSmoothScroll(){this._config.smoothScroll&&(D.off(this._config.target,mr),D.on(this._config.target,mr,wr,(e=>{const t=this._observableSections.get(e.target.hash);if(t){e.preventDefault();const n=this._rootElement||window,i=t.offsetTop-this._element.offsetTop;if(n.scrollTo)return void n.scrollTo({top:i,behavior:"smooth"});n.scrollTop=i}})))}_getNewObserver(){const e={root:this._rootElement,threshold:this._config.threshold,rootMargin:this._config.rootMargin};return new IntersectionObserver((e=>this._observerCallback(e)),e)}_observerCallback(e){const t=e=>this._targetLinks.get(`#${e.target.id}`),n=e=>{this._previousScrollData.visibleEntryTop=e.target.offsetTop,this._process(t(e))},i=(this._rootElement||document.documentElement).scrollTop,r=i>=this._previousScrollData.parentScrollTop;this._previousScrollData.parentScrollTop=i;for(const s of e){if(!s.isIntersecting){this._activeTarget=null,this._clearActiveClass(t(s));continue}const e=s.target.offsetTop>=this._previousScrollData.visibleEntryTop;if(r&&e){if(n(s),!i)return}else r||e||n(s)}}_initializeTargetsAndObservables(){this._targetLinks=new Map,this._observableSections=new Map;const e=z.find(wr,this._config.target);for(const t of e){if(!t.hash||l(t))continue;const e=z.findOne(decodeURI(t.hash),this._element);o(e)&&(this._targetLinks.set(decodeURI(t.hash),t),this._observableSections.set(t.hash,e))}}_process(e){this._activeTarget!==e&&(this._clearActiveClass(this._config.target),this._activeTarget=e,e.classList.add(br),this._activateParents(e),D.trigger(this._element,pr,{relatedTarget:e}))}_activateParents(e){if(e.classList.contains("dropdown-item"))z.findOne(".dropdown-toggle",e.closest(".dropdown")).classList.add(br);else for(const t of z.parents(e,".nav, .list-group"))for(const e of z.prev(t,yr))e.classList.add(br)}_clearActiveClass(e){e.classList.remove(br);const t=z.find(`${wr}.${br}`,e);for(const n of t)n.classList.remove(br)}static jQueryInterface(e){return this.each((function(){const t=kr.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e]||e.startsWith("_")||"constructor"===e)throw new TypeError(`No method named "${e}"`);t[e]()}}))}}D.on(window,gr,(()=>{for(const e of z.find('[data-bs-spy="scroll"]'))kr.getOrCreateInstance(e)})),m(kr);const Ar=".bs.tab",Er=`hide${Ar}`,_r=`hidden${Ar}`,jr=`show${Ar}`,Sr=`shown${Ar}`,Tr=`click${Ar}`,Nr=`keydown${Ar}`,Mr=`load${Ar}`,Ir="ArrowLeft",Or="ArrowRight",Dr="ArrowUp",Br="ArrowDown",Lr="Home",Pr="End",Fr="active",Rr="fade",qr="show",Vr=".dropdown-toggle",zr=`:not(${Vr})`,Yr='[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',$r=`.nav-link${zr}, .list-group-item${zr}, [role="tab"]${zr}, ${Yr}`,Ur=`.${Fr}[data-bs-toggle="tab"], .${Fr}[data-bs-toggle="pill"], .${Fr}[data-bs-toggle="list"]`;class Gr extends q{constructor(e){super(e),this._parent=this._element.closest('.list-group, .nav, [role="tablist"]'),this._parent&&(this._setInitialAttributes(this._parent,this._getChildren()),D.on(this._element,Nr,(e=>this._keydown(e))))}static get NAME(){return"tab"}show(){const e=this._element;if(this._elemIsActive(e))return;const t=this._getActiveElem(),n=t?D.trigger(t,Er,{relatedTarget:e}):null;D.trigger(e,jr,{relatedTarget:t}).defaultPrevented||n&&n.defaultPrevented||(this._deactivate(t,e),this._activate(e,t))}_activate(e,t){e&&(e.classList.add(Fr),this._activate(z.getElementFromSelector(e)),this._queueCallback((()=>{"tab"===e.getAttribute("role")?(e.removeAttribute("tabindex"),e.setAttribute("aria-selected",!0),this._toggleDropDown(e,!0),D.trigger(e,Sr,{relatedTarget:t})):e.classList.add(qr)}),e,e.classList.contains(Rr)))}_deactivate(e,t){e&&(e.classList.remove(Fr),e.blur(),this._deactivate(z.getElementFromSelector(e)),this._queueCallback((()=>{"tab"===e.getAttribute("role")?(e.setAttribute("aria-selected",!1),e.setAttribute("tabindex","-1"),this._toggleDropDown(e,!1),D.trigger(e,_r,{relatedTarget:t})):e.classList.remove(qr)}),e,e.classList.contains(Rr)))}_keydown(e){if(![Ir,Or,Dr,Br,Lr,Pr].includes(e.key))return;e.stopPropagation(),e.preventDefault();const t=this._getChildren().filter((e=>!l(e)));let n;if([Lr,Pr].includes(e.key))n=t[e.key===Lr?0:t.length-1];else{const i=[Or,Br].includes(e.key);n=w(t,e.target,i,!0)}n&&(n.focus({preventScroll:!0}),Gr.getOrCreateInstance(n).show())}_getChildren(){return z.find($r,this._parent)}_getActiveElem(){return this._getChildren().find((e=>this._elemIsActive(e)))||null}_setInitialAttributes(e,t){this._setAttributeIfNotExists(e,"role","tablist");for(const n of t)this._setInitialAttributesOnChild(n)}_setInitialAttributesOnChild(e){e=this._getInnerElement(e);const t=this._elemIsActive(e),n=this._getOuterElement(e);e.setAttribute("aria-selected",t),n!==e&&this._setAttributeIfNotExists(n,"role","presentation"),t||e.setAttribute("tabindex","-1"),this._setAttributeIfNotExists(e,"role","tab"),this._setInitialAttributesOnTargetPanel(e)}_setInitialAttributesOnTargetPanel(e){const t=z.getElementFromSelector(e);t&&(this._setAttributeIfNotExists(t,"role","tabpanel"),e.id&&this._setAttributeIfNotExists(t,"aria-labelledby",`${e.id}`))}_toggleDropDown(e,t){const n=this._getOuterElement(e);if(!n.classList.contains("dropdown"))return;const i=(e,i)=>{const r=z.findOne(e,n);r&&r.classList.toggle(i,t)};i(Vr,Fr),i(".dropdown-menu",qr),n.setAttribute("aria-expanded",t)}_setAttributeIfNotExists(e,t,n){e.hasAttribute(t)||e.setAttribute(t,n)}_elemIsActive(e){return e.classList.contains(Fr)}_getInnerElement(e){return e.matches($r)?e:z.findOne($r,e)}_getOuterElement(e){return e.closest(".nav-item, .list-group-item")||e}static jQueryInterface(e){return this.each((function(){const t=Gr.getOrCreateInstance(this);if("string"==typeof e){if(void 0===t[e]||e.startsWith("_")||"constructor"===e)throw new TypeError(`No method named "${e}"`);t[e]()}}))}}D.on(document,Tr,Yr,(function(e){["A","AREA"].includes(this.tagName)&&e.preventDefault(),l(this)||Gr.getOrCreateInstance(this).show()})),D.on(window,Mr,(()=>{for(const e of z.find(Ur))Gr.getOrCreateInstance(e)})),m(Gr);const Wr=".bs.toast",Qr=`mouseover${Wr}`,Hr=`mouseout${Wr}`,Kr=`focusin${Wr}`,Jr=`focusout${Wr}`,Zr=`hide${Wr}`,Xr=`hidden${Wr}`,es=`show${Wr}`,ts=`shown${Wr}`,ns="hide",is="show",rs="showing",ss={animation:"boolean",autohide:"boolean",delay:"number"},as={animation:!0,autohide:!0,delay:5e3};class os extends q{constructor(e,t){super(e,t),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get Default(){return as}static get DefaultType(){return ss}static get NAME(){return"toast"}show(){D.trigger(this._element,es).defaultPrevented||(this._clearTimeout(),this._config.animation&&this._element.classList.add("fade"),this._element.classList.remove(ns),d(this._element),this._element.classList.add(is,rs),this._queueCallback((()=>{this._element.classList.remove(rs),D.trigger(this._element,ts),this._maybeScheduleHide()}),this._element,this._config.animation))}hide(){this.isShown()&&(D.trigger(this._element,Zr).defaultPrevented||(this._element.classList.add(rs),this._queueCallback((()=>{this._element.classList.add(ns),this._element.classList.remove(rs,is),D.trigger(this._element,Xr)}),this._element,this._config.animation)))}dispose(){this._clearTimeout(),this.isShown()&&this._element.classList.remove(is),super.dispose()}isShown(){return this._element.classList.contains(is)}_maybeScheduleHide(){this._config.autohide&&(this._hasMouseInteraction||this._hasKeyboardInteraction||(this._timeout=setTimeout((()=>{this.hide()}),this._config.delay)))}_onInteraction(e,t){switch(e.type){case"mouseover":case"mouseout":this._hasMouseInteraction=t;break;case"focusin":case"focusout":this._hasKeyboardInteraction=t}if(t)return void this._clearTimeout();const n=e.relatedTarget;this._element===n||this._element.contains(n)||this._maybeScheduleHide()}_setListeners(){D.on(this._element,Qr,(e=>this._onInteraction(e,!0))),D.on(this._element,Hr,(e=>this._onInteraction(e,!1))),D.on(this._element,Kr,(e=>this._onInteraction(e,!0))),D.on(this._element,Jr,(e=>this._onInteraction(e,!1)))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(e){return this.each((function(){const t=os.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e])throw new TypeError(`No method named "${e}"`);t[e](this)}}))}}return Y(os),m(os),{Alert:W,Button:H,Carousel:je,Collapse:Ve,Dropdown:Un,Modal:_i,Offcanvas:$i,Popover:hr,ScrollSpy:kr,Tab:Gr,Toast:os,Tooltip:cr}}()},497:(e,t,n)=>{"use strict";var i=n(218);function r(){}function s(){}s.resetWarningCache=r,e.exports=function(){function e(e,t,n,r,s,a){if(a!==i){var o=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw o.name="Invariant Violation",o}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:s,resetWarningCache:r};return n.PropTypes=n,n}},173:(e,t,n)=>{e.exports=n(497)()},218:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},730:(e,t,n)=>{"use strict";var i=n(43),r=n(853);function s(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n