diff --git a/.gitignore b/.gitignore index cb801a2..d3937ce 100644 --- a/.gitignore +++ b/.gitignore @@ -8,7 +8,8 @@ pnpm-debug.log* lerna-debug.log* node_modules -dist +# dist +src/dist dist-ssr *.local diff --git a/dist/assets/index.40e6ab88.css b/dist/assets/index.40e6ab88.css new file mode 100644 index 0000000..618bf0f --- /dev/null +++ b/dist/assets/index.40e6ab88.css @@ -0,0 +1 @@ +@import"https://fonts.googleapis.com/css?family=Poppins:wght@400;500;700&display=swap";.spinner-grow,.spinner-border{display:inline-block;width:var(--bs-spinner-width);height:var(--bs-spinner-height);vertical-align:var(--bs-spinner-vertical-align);border-radius:50%;animation:var(--bs-spinner-animation-speed) linear infinite var(--bs-spinner-animation-name)}@keyframes spinner-border{to{transform:rotate(360deg)}}.spinner-border{--bs-spinner-width: 2rem;--bs-spinner-height: 2rem;--bs-spinner-vertical-align: -.125em;--bs-spinner-border-width: .25em;--bs-spinner-animation-speed: .75s;--bs-spinner-animation-name: spinner-border;border:var(--bs-spinner-border-width) solid currentcolor;border-right-color:transparent}.spinner-border-sm{--bs-spinner-width: 1rem;--bs-spinner-height: 1rem;--bs-spinner-border-width: .2em}@keyframes spinner-grow{0%{transform:scale(0)}50%{opacity:1;transform:none}}.spinner-grow{--bs-spinner-width: 2rem;--bs-spinner-height: 2rem;--bs-spinner-vertical-align: -.125em;--bs-spinner-animation-speed: .75s;--bs-spinner-animation-name: spinner-grow;background-color:currentcolor;opacity:0}.spinner-grow-sm{--bs-spinner-width: 1rem;--bs-spinner-height: 1rem}@media (prefers-reduced-motion: reduce){.spinner-border,.spinner-grow{--bs-spinner-animation-speed: 1.5s}}.tooltip{--bs-tooltip-zindex: 1080;--bs-tooltip-max-width: 200px;--bs-tooltip-padding-x: .5rem;--bs-tooltip-padding-y: .25rem;--bs-tooltip-margin: ;--bs-tooltip-font-size: .875rem;--bs-tooltip-color: #000;--bs-tooltip-bg: #fff;--bs-tooltip-border-radius: .375rem;--bs-tooltip-opacity: .9;--bs-tooltip-arrow-width: .8rem;--bs-tooltip-arrow-height: .4rem;z-index:var(--bs-tooltip-zindex);display:block;padding:var(--bs-tooltip-arrow-height);margin:var(--bs-tooltip-margin);font-family:var(--bs-font-sans-serif);font-style:normal;font-weight:400;line-height:1.5;text-align:left;text-align:start;text-decoration:none;text-shadow:none;text-transform:none;letter-spacing:normal;word-break:normal;white-space:normal;word-spacing:normal;line-break:auto;font-size:var(--bs-tooltip-font-size);word-wrap:break-word;opacity:0}.tooltip.show{opacity:var(--bs-tooltip-opacity)}.tooltip .tooltip-arrow{display:block;width:var(--bs-tooltip-arrow-width);height:var(--bs-tooltip-arrow-height)}.tooltip .tooltip-arrow:before{position:absolute;content:"";border-color:transparent;border-style:solid}.bs-tooltip-top .tooltip-arrow,.bs-tooltip-auto[data-popper-placement^=top] .tooltip-arrow{bottom:0}.bs-tooltip-top .tooltip-arrow:before,.bs-tooltip-auto[data-popper-placement^=top] .tooltip-arrow:before{top:-1px;border-width:var(--bs-tooltip-arrow-height) calc(var(--bs-tooltip-arrow-width) * .5) 0;border-top-color:var(--bs-tooltip-bg)}.bs-tooltip-end .tooltip-arrow,.bs-tooltip-auto[data-popper-placement^=right] .tooltip-arrow{left:0;width:var(--bs-tooltip-arrow-height);height:var(--bs-tooltip-arrow-width)}.bs-tooltip-end .tooltip-arrow:before,.bs-tooltip-auto[data-popper-placement^=right] .tooltip-arrow:before{right:-1px;border-width:calc(var(--bs-tooltip-arrow-width) * .5) var(--bs-tooltip-arrow-height) calc(var(--bs-tooltip-arrow-width) * .5) 0;border-right-color:var(--bs-tooltip-bg)}.bs-tooltip-bottom .tooltip-arrow,.bs-tooltip-auto[data-popper-placement^=bottom] .tooltip-arrow{top:0}.bs-tooltip-bottom .tooltip-arrow:before,.bs-tooltip-auto[data-popper-placement^=bottom] .tooltip-arrow:before{bottom:-1px;border-width:0 calc(var(--bs-tooltip-arrow-width) * .5) var(--bs-tooltip-arrow-height);border-bottom-color:var(--bs-tooltip-bg)}.bs-tooltip-start .tooltip-arrow,.bs-tooltip-auto[data-popper-placement^=left] .tooltip-arrow{right:0;width:var(--bs-tooltip-arrow-height);height:var(--bs-tooltip-arrow-width)}.bs-tooltip-start .tooltip-arrow:before,.bs-tooltip-auto[data-popper-placement^=left] .tooltip-arrow:before{left:-1px;border-width:calc(var(--bs-tooltip-arrow-width) * .5) 0 calc(var(--bs-tooltip-arrow-width) * .5) var(--bs-tooltip-arrow-height);border-left-color:var(--bs-tooltip-bg)}.tooltip-inner{max-width:var(--bs-tooltip-max-width);padding:var(--bs-tooltip-padding-y) var(--bs-tooltip-padding-x);color:var(--bs-tooltip-color);text-align:center;background-color:var(--bs-tooltip-bg);border-radius:var(--bs-tooltip-border-radius)}body>section{position:absolute;transition:all .3s ease;opacity:0;pointer-events:none;box-shadow:0 4px 8px #0003,0 6px 20px #00000030}body>section:not(.start-container){transform:scale(.9)}body>section.active{z-index:5;opacity:1;pointer-events:auto;transform:scale(1)}.d-none{display:none!important}.opacity-0{opacity:0}.btn{padding:.5rem 1rem;margin:0 5px;background-color:#007bff;color:#fff;font-size:1rem;font-weight:500;outline:none;border:none;border-radius:5px;cursor:pointer;transition:all .3s ease}.btn:hover{background-color:#0263ca}.btn-primary-outlined{background-color:#fff;color:#007bff;border:1px solid #007bff}.btn-primary-outlined:hover{color:#fff;background-color:#007bff}.pill{padding:.35rem;background:#cce5ff;border:1px solid #a8d1fc;border-radius:5px;display:flex;align-items:center;font-weight:400px;font-size:.9rem;user-select:none}.pill .pill-badge{padding:1px .5rem;margin-left:5px;color:#fff;background-color:#343a40;font-size:1rem;font-weight:500;text-align:center;border:1px solid #a8d1fc;border-radius:5px}.pointer{cursor:pointer!important}.place-items-end{display:flex;justify-content:flex-end}.loading{text-align:center;padding:1.5rem 0}.loading.offline .online-status-text{display:none}.loading.offline .offline-status-text{display:block}.loading .offline-status-text{display:none;font-size:larger;padding-bottom:1rem}.window{width:90%;max-width:540px;max-height:90%;display:flex;flex-direction:column;border-radius:5px;background-color:#fff;box-shadow:0 4px 8px #0003,0 6px 20px #00000030}.window nav,.window .nav{padding:1rem 1.5rem;border-bottom:1px solid lightgray;display:flex;justify-content:space-between;align-items:center}.window nav .title,.window .nav .title{font-size:1.25rem;font-weight:700}.window nav svg,.window .nav svg{cursor:pointer}.window main,.window .main{padding:1rem 1.5rem}.window footer,.window .footer{border-top:1px solid lightgray;padding:.75rem 1rem}.start-container{box-shadow:none!important;width:100%;height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center}.start-container button{padding:15px 30px;width:220px;font-size:25px;font-weight:500;outline:none;border:none;border-radius:5px;color:#007bff;background:#fff;cursor:pointer;box-shadow:0 4px 8px #0003,0 6px 20px #00000030}.start-container .leaderboard-btn button{padding:10px;margin-top:10px;width:200px;font-size:20px}.start-container .extras{width:100%;position:absolute;bottom:0;display:flex;flex-direction:row-reverse;justify-content:space-between;align-items:center;padding:.5rem}.start-container .extras .github{margin-left:0;padding:0;background:transparent;box-shadow:none}.start-container .extras .github a{color:#fff;display:flex}.start-container .user-settings{display:flex}.start-container .user-settings>div{padding:.5rem;margin:.25rem;border-radius:5px;background-color:#fff;color:#007bff;display:flex;align-items:center;cursor:pointer;box-shadow:0 4px 8px #0003,0 6px 20px #00000030}.user-details main .key{font-weight:700}.user-details main .value{font-size:1.1rem;font-family:monospace}.user-details main>div{display:flex;justify-content:space-between;align-items:center;line-height:2}.leaderboard-container .nav{padding-left:2rem}.leaderboard-container .rank-list{padding:.5rem;overflow:auto}.leaderboard-container .rank-list .list-item{padding:.5rem 1rem;display:flex;font-weight:700}.leaderboard-container .rank-list .list-item:first-child .rank{color:#f0d121}.leaderboard-container .rank-list .list-item:nth-child(2) .rank{color:silver}.leaderboard-container .rank-list .list-item:nth-child(3) .rank{color:#933}.leaderboard-container .rank-list .list-item:nth-child(n+4){font-weight:400}.leaderboard-container .rank-list .list-item:nth-child(n+4) span{color:#000}.leaderboard-container .rank-list .rank{position:relative;margin-right:1rem;color:transparent;display:flex;align-items:center;justify-content:center}.leaderboard-container .rank-list .rank span{color:#fff;position:absolute;font-weight:700}.leaderboard-container .rank-list .score{margin-left:auto}.leaderboard-container .rank-list::-webkit-scrollbar{width:5px}.leaderboard-container .rank-list::-webkit-scrollbar-track{background:#f8f9fa}.leaderboard-container .rank-list::-webkit-scrollbar-thumb{background:#adb5bd}.leaderboard-container .rank-list::-webkit-scrollbar-thumb:hover{background:#495057}.leaderboard-container .rank-list::-webkit-scrollbar-thumb:active{background:#212529}.update-container nav,.register-container nav{border-bottom:0px}.update-container main,.register-container main{padding:1.5rem;padding-top:0}.update-container main input,.update-container main button,.register-container main input,.register-container main button{width:100%;padding:.75rem 1rem;font-size:1rem;border:1px solid #333;border-radius:4px}.update-container .loading,.register-container .loading{display:none}.update-container .loading.active,.register-container .loading.active{display:block}.update-container .loading.active~.input-container,.register-container .loading.active~.input-container{display:none}.input-text input{margin-bottom:10px}.input-text input:focus{outline:1px solid #000}.input-button button{color:#fff;background:#000;cursor:pointer}.input-button button:hover{background:#111}.input-button button:active{background:#000}.instructions-container ol.list{padding-left:1.5rem;font-size:17px}.instructions-container ol.list li{margin:5px 0}.instructions-container ol.list span{font-weight:700;color:#007bff}.instructions-container .btn{padding:.4rem 1rem}.quiz-box nav{padding:.7rem 1.5rem;position:relative;box-shadow:0 3px 5px 1px #0000001a}.quiz-box main{padding:2rem;font-size:1.9rem;text-align:center}.quiz-box main p{display:inline}.quiz-box footer{padding:.5rem 1.5rem;border:none;display:flex;align-items:center;justify-content:space-between}.quiz-box footer button.btn{display:none}.quiz-box .option-list{margin-top:20px;list-style:none}.quiz-box .option-list .option{display:inline-block;padding:.7rem 1rem;margin-bottom:10px;width:100px;background-color:#f0f8ff;border:1px solid #84c5fe;border-radius:5px}.quiz-box .option-list .option:hover{color:#004085;background:#cce5ff;border-color:#b8daff}.quiz-box .option-list .option.correct{color:#23903c;border-color:#23903c;background:#d4edda}.quiz-box .option-list .option.wrong{color:#721c24;border-color:#a42834;background:#f8d7da}.quiz-box .option-list .option.disabled{pointer-events:none}.quiz-box .pill{justify-content:space-between;padding-left:.5rem;min-width:130px;font-size:1rem}.quiz-box .pill .pill-badge{font-size:1.1rem}.quiz-box .time-line{width:100%;height:3px;background:#007bff;position:absolute;bottom:0px;left:0px}.result-box{text-align:center;padding:.7rem 1.5rem}.result-box .icon img{width:27%;margin-top:1rem;-webkit-user-drag:none}.result-box .complete-text{font-size:1.5rem;font-weight:bolder}.result-box .score-text{font-size:1.2rem}.result-box .buttons-container{display:flex;align-items:center;margin-top:2rem}.result-box .buttons-container :first-child{margin-right:auto}.result-box .buttons-container :last-child{margin-right:0}*{margin:0;padding:0;box-sizing:border-box;outline:none;-webkit-tap-highlight-color:transparent}html,body{width:100%;height:100%}body{user-select:none;background-color:#007bff;display:flex;align-items:center;justify-content:center;font-family:Poppins,sans-serif} diff --git a/dist/assets/index.68a22072.js b/dist/assets/index.68a22072.js new file mode 100644 index 0000000..ca12708 --- /dev/null +++ b/dist/assets/index.68a22072.js @@ -0,0 +1,51 @@ +const Nn=function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))o(r);new MutationObserver(r=>{for(const i of r)if(i.type==="childList")for(const s of i.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&o(s)}).observe(document,{childList:!0,subtree:!0});function n(r){const i={};return r.integrity&&(i.integrity=r.integrity),r.referrerpolicy&&(i.referrerPolicy=r.referrerpolicy),r.crossorigin==="use-credentials"?i.credentials="include":r.crossorigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function o(r){if(r.ep)return;r.ep=!0;const i=n(r);fetch(r.href,i)}};Nn();function Pn(e,t,n){return` +
+
+ + + + ${e} +
+
${t}
+
${n}
+
`.replaceAll(/\s+/g," ")}const re=document.querySelector(".start-container"),K=document.querySelector(".user-details"),me=document.querySelector(".leaderboard-container"),Se=document.querySelector(".register-container"),ke=document.querySelector(".update-container"),we=document.querySelector(".instructions-container"),Rt=document.querySelector(".quiz-box"),Qe=document.querySelector(".result-box"),Mn=document.getElementById("startBtn"),In=document.getElementById("leaderboardBtn"),Bn=re.querySelector(".user"),kn=K.querySelector("#userDetailsExitBtn"),Rn=K.querySelector("#usernameText"),jn=K.querySelector("#highscoreText"),$n=K.querySelector("#averageScoreText"),Fn=K.querySelector("#noOfTimesPlayedText"),Hn=K.querySelector("#rankText"),qn=K.querySelector("#updateNameBtn"),Ot=me.querySelector(".rank-list > .list"),Vn=me.querySelector(".loading"),zn=me.querySelector("#rankListExitBtn"),Ce=document.getElementById("registerNameInputBox"),Wn=document.getElementById("registerNameInputBtn"),Un=document.getElementById("registerDivExitBtn"),qe=Se.querySelector(".loading"),De=document.getElementById("usernameInputBox"),Yn=document.getElementById("usernameInputBtn"),Kn=document.getElementById("usernameDivExitBtn"),Ve=ke.querySelector(".loading"),Qn=document.getElementById("quitBtn"),Xn=document.getElementById("continueBtn"),xt=document.getElementById("timeLeftNoText"),jt=document.getElementById("timeLeftText"),Jn=document.getElementById("timeLine"),Gn=document.getElementById("questions"),St=Gn.querySelectorAll("p"),Zn=document.getElementById("optionList"),Xe=Zn.querySelectorAll(".option"),er=document.getElementById("pointsNoText"),Re=document.getElementById("showResultsBtn"),tr=document.getElementById("highScoreText"),nr=document.getElementById("completeText"),rr=document.getElementById("scoreText"),or=document.getElementById("replayBtn"),ir=document.getElementById("exitQuizBtn");let $t=0,Ft,ze,Je,te=0;const Ht=15;function qt(){var e=St[0].innerText=At(),t=St[1].innerText=At(),n=+e*+t,o=Math.floor(Math.random()*4);Je=String(n),Xe.forEach((r,i)=>{r.innerText=String(o==i?n:fr(n)),r.onclick=function(){sr(this)}})}function sr(e){if(Ge(),e.innerText!=Je)return e.classList.add("wrong"),Re.style.display="block",pr(),Kt();te++,qt(),zt(++$t),Ut(Ht)}function Vt(){$t=te=0,jt.innerText="Time Left",Re.style.display="",Ge(),ur()}function zt(e){er.innerText=e.toString()}async function ar(){const e=await hr();Ot.innerHTML="",Vn.style.display="none",e.forEach(({name:t,score:n},o)=>{Ot.innerHTML+=Pn(o+1,t,n)})}function cr(){we.classList.remove("active"),Rt.classList.remove("active"),Qe.classList.add("active"),rr.innerText=`You got ${te} Points`,lr();var e=localStorage.getItem("app-user-details");if(!!e){var t=JSON.parse(e);tr.innerText=String(t.highscore)}}function Wt(e){var t;Rn.innerText=e.name,Hn.innerText=String((t=e.rank)!=null?t:"--"),jn.innerText=String(e.highscore),$n.innerText=String(e.averageScore),Fn.innerText=String(e.noOfTimesPlayed)}function Ut(e){dr(e),xt.innerText=Lt(e),Ft=setInterval(()=>{xt.innerText=Lt(--e),e==0&&(jt.innerText="Time Out",Re.style.display="block",Ge(),Kt())},1e3)}function Yt(e){return e.value.trim()!=""}function Lt(e){return String(e<=9?"0"+e:e)}function lr(){nr.innerText="You've completed The Quiz"}function Ge(){clearInterval(Ft),clearInterval(ze)}function ur(){Xe.forEach(e=>{e.classList.remove("correct","wrong","disabled")})}function At(){return String(Math.floor(Math.random()*20+1))}function fr(e){return Math.floor(Math.random()*e+Math.floor(e/2))}function Kt(){Xe.forEach(e=>{e.innerText==Je&&e.classList.add("correct"),e.classList.add("disabled")})}function dr(e){const r=100/(e*20),i=1e3/20;let s=0;ze=setInterval(()=>{s+=r,s>100?clearInterval(ze):Jn.style.width=s+"%"},i)}const Qt=window.location.hostname,Ze="https://script.google.com/macros/s/AKfycbz8vXR3g9KmyXHVlxFcLfcJn6yEYdX96PKEyPf8vFRuhgCfqkhThgegD48Az1fpMOdncg/exec",et="app-user-details";function Xt(e){if(localStorage.getItem(et)!==null)return;const t={name:e,nuid:1,ref:Qt};return new Promise((n,o)=>{fetch(Ze,{method:"POST",body:JSON.stringify(t)}).then(r=>{if(r.status==200)return r.text();throw"Failed to Post"}).then(r=>{const i=JSON.parse(r);if(i.data.id==null)return o("Failed");Pe({id:i.data.id,name:e,highscore:0,averageScore:0,noOfTimesPlayed:0}),n(i)}).catch(o)})}async function pr(){if(te==0)return;const e=We();if(e==null)return;const{averageScore:t,highscore:n}=e;if(e.averageScore=t!=0?Math.round((t+te)/2):te,e.averageScore!=0&&(e.noOfTimesPlayed+=1),+n>+te)return Pe(e);e.highscore=te,Pe(e);const o={id:e.id,name:e.name,score:te,ref:Qt};return await new Promise((r,i)=>{fetch(Ze,{method:"POST",body:JSON.stringify(o)}).then(s=>s.json()).then(s=>{var c=We();s.rank&&c&&(c.rank=s.rank,Pe(c)),r(s)}).catch(i)})}async function hr(){return(await(await fetch(Ze)).json()).data}function Pe(e){localStorage.setItem(et,JSON.stringify(e))}function We(){return JSON.parse(localStorage.getItem(et))}Mn.onclick=()=>{re.classList.remove("active");const e=JSON.parse(localStorage.getItem("app-user-details"));e&&e.name?we.classList.add("active"):Se.classList.add("active")};In.onclick=()=>{var e;re.classList.remove("active"),me.classList.add("active"),navigator.onLine?ar():(e=me.querySelector(".loading"))==null||e.classList.add("offline")};Bn.onclick=()=>{const e=JSON.parse(localStorage.getItem("app-user-details"));if(!(e&&e.name))return Se.classList.add("active");re.classList.remove("active"),K.classList.add("active"),Wt(e)};zn.onclick=()=>{me.classList.remove("active"),re.classList.add("active")};qn.onclick=()=>{ke.classList.add("active"),K.classList.remove("active");const e=We();e&&e.name&&Wt(e)};kn.onclick=()=>{K.classList.remove("active"),re.classList.add("active")};Un.onclick=()=>{Se.classList.remove("active"),re.classList.add("active")};Wn.onclick=()=>{var e=Yt(Ce);if(!e){Ce.placeholder="Invalid Name",Ce.value="";return}qe.classList.add("active");var t=Xt(Ce.value);if(!t)return console.log("You've already Registered");t.then(()=>{Se.classList.remove("active"),we.classList.add("active"),qe.classList.remove("active")}).catch(n=>{qe.classList.add("offline"),console.error(n)})};Kn.onclick=()=>{ke.classList.remove("active"),K.classList.add("active")};Yn.onclick=()=>{var e=Yt(De);if(!e){De.placeholder="Invalid Name",De.value="";return}Ve.classList.add("active");var t=Xt(De.value);if(!t)return console.log("You've already Registered");t.then(()=>{ke.classList.remove("active"),K.classList.add("active"),Ve.classList.remove("active")}).catch(n=>{Ve.classList.add("offline"),console.error(n)})};Qn.onclick=()=>{we.classList.remove("active"),re.classList.add("active")};Xn.onclick=()=>{we.classList.remove("active"),Rt.classList.add("active"),qt(),zt(0),Ut(Ht)};Re.onclick=cr;or.onclick=()=>{Qe.classList.remove("active"),we.classList.add("active"),Vt()};ir.onclick=()=>{Qe.classList.remove("active"),re.classList.add("active"),Vt()};window.ononline=()=>{console.log("Online")};window.onoffline=()=>{console.log("Offline")};var ee=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function vr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function mr(e){if(e.__esModule)return e;var t=Object.defineProperty({},"__esModule",{value:!0});return Object.keys(e).forEach(function(n){var o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:function(){return e[n]}})}),t}var Jt={exports:{}},F="top",V="bottom",z="right",H="left",je="auto",Te=[F,V,z,H],fe="start",ge="end",Gt="clippingParents",tt="viewport",ve="popper",Zt="reference",Ue=Te.reduce(function(e,t){return e.concat([t+"-"+fe,t+"-"+ge])},[]),nt=[].concat(Te,[je]).reduce(function(e,t){return e.concat([t,t+"-"+fe,t+"-"+ge])},[]),en="beforeRead",tn="read",nn="afterRead",rn="beforeMain",on="main",sn="afterMain",an="beforeWrite",cn="write",ln="afterWrite",un=[en,tn,nn,rn,on,sn,an,cn,ln];function Z(e){return e?(e.nodeName||"").toLowerCase():null}function Q(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function de(e){var t=Q(e).Element;return e instanceof t||e instanceof Element}function Y(e){var t=Q(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function rt(e){if(typeof ShadowRoot=="undefined")return!1;var t=Q(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function gr(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var o=t.styles[n]||{},r=t.attributes[n]||{},i=t.elements[n];!Y(i)||!Z(i)||(Object.assign(i.style,o),Object.keys(r).forEach(function(s){var c=r[s];c===!1?i.removeAttribute(s):i.setAttribute(s,c===!0?"":c)}))})}function yr(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(o){var r=t.elements[o],i=t.attributes[o]||{},s=Object.keys(t.styles.hasOwnProperty(o)?t.styles[o]:n[o]),c=s.reduce(function(l,h){return l[h]="",l},{});!Y(r)||!Z(r)||(Object.assign(r.style,c),Object.keys(i).forEach(function(l){r.removeAttribute(l)}))})}}var ot={name:"applyStyles",enabled:!0,phase:"write",fn:gr,effect:yr,requires:["computeStyles"]};function G(e){return e.split("-")[0]}var ue=Math.max,Ie=Math.min,ye=Math.round;function Ye(){var e=navigator.userAgentData;return e!=null&&e.brands?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function fn(){return!/^((?!chrome|android).)*safari/i.test(Ye())}function be(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var o=e.getBoundingClientRect(),r=1,i=1;t&&Y(e)&&(r=e.offsetWidth>0&&ye(o.width)/e.offsetWidth||1,i=e.offsetHeight>0&&ye(o.height)/e.offsetHeight||1);var s=de(e)?Q(e):window,c=s.visualViewport,l=!fn()&&n,h=(o.left+(l&&c?c.offsetLeft:0))/r,u=(o.top+(l&&c?c.offsetTop:0))/i,T=o.width/r,y=o.height/i;return{width:T,height:y,top:u,right:h+T,bottom:u+y,left:h,x:h,y:u}}function it(e){var t=be(e),n=e.offsetWidth,o=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-o)<=1&&(o=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:o}}function dn(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&rt(n)){var o=t;do{if(o&&e.isSameNode(o))return!0;o=o.parentNode||o.host}while(o)}return!1}function ne(e){return Q(e).getComputedStyle(e)}function br(e){return["table","td","th"].indexOf(Z(e))>=0}function ae(e){return((de(e)?e.ownerDocument:e.document)||window.document).documentElement}function $e(e){return Z(e)==="html"?e:e.assignedSlot||e.parentNode||(rt(e)?e.host:null)||ae(e)}function Ct(e){return!Y(e)||ne(e).position==="fixed"?null:e.offsetParent}function _r(e){var t=/firefox/i.test(Ye()),n=/Trident/i.test(Ye());if(n&&Y(e)){var o=ne(e);if(o.position==="fixed")return null}var r=$e(e);for(rt(r)&&(r=r.host);Y(r)&&["html","body"].indexOf(Z(r))<0;){var i=ne(r);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||t&&i.willChange==="filter"||t&&i.filter&&i.filter!=="none")return r;r=r.parentNode}return null}function Le(e){for(var t=Q(e),n=Ct(e);n&&br(n)&&ne(n).position==="static";)n=Ct(n);return n&&(Z(n)==="html"||Z(n)==="body"&&ne(n).position==="static")?t:n||_r(e)||t}function st(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Oe(e,t,n){return ue(e,Ie(t,n))}function Er(e,t,n){var o=Oe(e,t,n);return o>n?n:o}function pn(){return{top:0,right:0,bottom:0,left:0}}function hn(e){return Object.assign({},pn(),e)}function vn(e,t){return t.reduce(function(n,o){return n[o]=e,n},{})}var wr=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,hn(typeof t!="number"?t:vn(t,Te))};function Tr(e){var t,n=e.state,o=e.name,r=e.options,i=n.elements.arrow,s=n.modifiersData.popperOffsets,c=G(n.placement),l=st(c),h=[H,z].indexOf(c)>=0,u=h?"height":"width";if(!(!i||!s)){var T=wr(r.padding,n),y=it(i),p=l==="y"?F:H,S=l==="y"?V:z,m=n.rects.reference[u]+n.rects.reference[l]-s[l]-n.rects.popper[u],b=s[l]-n.rects.reference[l],L=Le(i),D=L?l==="y"?L.clientHeight||0:L.clientWidth||0:0,M=m/2-b/2,x=T[p],N=D-y[u]-T[S],f=D/2-y[u]/2+M,v=Oe(x,f,N),_=l;n.modifiersData[o]=(t={},t[_]=v,t.centerOffset=v-f,t)}}function Or(e){var t=e.state,n=e.options,o=n.element,r=o===void 0?"[data-popper-arrow]":o;r!=null&&(typeof r=="string"&&(r=t.elements.popper.querySelector(r),!r)||!dn(t.elements.popper,r)||(t.elements.arrow=r))}var mn={name:"arrow",enabled:!0,phase:"main",fn:Tr,effect:Or,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function _e(e){return e.split("-")[1]}var xr={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Sr(e){var t=e.x,n=e.y,o=window,r=o.devicePixelRatio||1;return{x:ye(t*r)/r||0,y:ye(n*r)/r||0}}function Dt(e){var t,n=e.popper,o=e.popperRect,r=e.placement,i=e.variation,s=e.offsets,c=e.position,l=e.gpuAcceleration,h=e.adaptive,u=e.roundOffsets,T=e.isFixed,y=s.x,p=y===void 0?0:y,S=s.y,m=S===void 0?0:S,b=typeof u=="function"?u({x:p,y:m}):{x:p,y:m};p=b.x,m=b.y;var L=s.hasOwnProperty("x"),D=s.hasOwnProperty("y"),M=H,x=F,N=window;if(h){var f=Le(n),v="clientHeight",_="clientWidth";if(f===Q(n)&&(f=ae(n),ne(f).position!=="static"&&c==="absolute"&&(v="scrollHeight",_="scrollWidth")),f=f,r===F||(r===H||r===z)&&i===ge){x=V;var w=T&&f===N&&N.visualViewport?N.visualViewport.height:f[v];m-=w-o.height,m*=l?1:-1}if(r===H||(r===F||r===V)&&i===ge){M=z;var A=T&&f===N&&N.visualViewport?N.visualViewport.width:f[_];p-=A-o.width,p*=l?1:-1}}var C=Object.assign({position:c},h&&xr),a=u===!0?Sr({x:p,y:m}):{x:p,y:m};if(p=a.x,m=a.y,l){var g;return Object.assign({},C,(g={},g[x]=D?"0":"",g[M]=L?"0":"",g.transform=(N.devicePixelRatio||1)<=1?"translate("+p+"px, "+m+"px)":"translate3d("+p+"px, "+m+"px, 0)",g))}return Object.assign({},C,(t={},t[x]=D?m+"px":"",t[M]=L?p+"px":"",t.transform="",t))}function Lr(e){var t=e.state,n=e.options,o=n.gpuAcceleration,r=o===void 0?!0:o,i=n.adaptive,s=i===void 0?!0:i,c=n.roundOffsets,l=c===void 0?!0:c,h={placement:G(t.placement),variation:_e(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:r,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,Dt(Object.assign({},h,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Dt(Object.assign({},h,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var at={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Lr,data:{}},Ne={passive:!0};function Ar(e){var t=e.state,n=e.instance,o=e.options,r=o.scroll,i=r===void 0?!0:r,s=o.resize,c=s===void 0?!0:s,l=Q(t.elements.popper),h=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&h.forEach(function(u){u.addEventListener("scroll",n.update,Ne)}),c&&l.addEventListener("resize",n.update,Ne),function(){i&&h.forEach(function(u){u.removeEventListener("scroll",n.update,Ne)}),c&&l.removeEventListener("resize",n.update,Ne)}}var ct={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Ar,data:{}},Cr={left:"right",right:"left",bottom:"top",top:"bottom"};function Me(e){return e.replace(/left|right|bottom|top/g,function(t){return Cr[t]})}var Dr={start:"end",end:"start"};function Nt(e){return e.replace(/start|end/g,function(t){return Dr[t]})}function lt(e){var t=Q(e),n=t.pageXOffset,o=t.pageYOffset;return{scrollLeft:n,scrollTop:o}}function ut(e){return be(ae(e)).left+lt(e).scrollLeft}function Nr(e,t){var n=Q(e),o=ae(e),r=n.visualViewport,i=o.clientWidth,s=o.clientHeight,c=0,l=0;if(r){i=r.width,s=r.height;var h=fn();(h||!h&&t==="fixed")&&(c=r.offsetLeft,l=r.offsetTop)}return{width:i,height:s,x:c+ut(e),y:l}}function Pr(e){var t,n=ae(e),o=lt(e),r=(t=e.ownerDocument)==null?void 0:t.body,i=ue(n.scrollWidth,n.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),s=ue(n.scrollHeight,n.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),c=-o.scrollLeft+ut(e),l=-o.scrollTop;return ne(r||n).direction==="rtl"&&(c+=ue(n.clientWidth,r?r.clientWidth:0)-i),{width:i,height:s,x:c,y:l}}function ft(e){var t=ne(e),n=t.overflow,o=t.overflowX,r=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+r+o)}function gn(e){return["html","body","#document"].indexOf(Z(e))>=0?e.ownerDocument.body:Y(e)&&ft(e)?e:gn($e(e))}function xe(e,t){var n;t===void 0&&(t=[]);var o=gn(e),r=o===((n=e.ownerDocument)==null?void 0:n.body),i=Q(o),s=r?[i].concat(i.visualViewport||[],ft(o)?o:[]):o,c=t.concat(s);return r?c:c.concat(xe($e(s)))}function Ke(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Mr(e,t){var n=be(e,!1,t==="fixed");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}function Pt(e,t,n){return t===tt?Ke(Nr(e,n)):de(t)?Mr(t,n):Ke(Pr(ae(e)))}function Ir(e){var t=xe($e(e)),n=["absolute","fixed"].indexOf(ne(e).position)>=0,o=n&&Y(e)?Le(e):e;return de(o)?t.filter(function(r){return de(r)&&dn(r,o)&&Z(r)!=="body"}):[]}function Br(e,t,n,o){var r=t==="clippingParents"?Ir(e):[].concat(t),i=[].concat(r,[n]),s=i[0],c=i.reduce(function(l,h){var u=Pt(e,h,o);return l.top=ue(u.top,l.top),l.right=Ie(u.right,l.right),l.bottom=Ie(u.bottom,l.bottom),l.left=ue(u.left,l.left),l},Pt(e,s,o));return c.width=c.right-c.left,c.height=c.bottom-c.top,c.x=c.left,c.y=c.top,c}function yn(e){var t=e.reference,n=e.element,o=e.placement,r=o?G(o):null,i=o?_e(o):null,s=t.x+t.width/2-n.width/2,c=t.y+t.height/2-n.height/2,l;switch(r){case F:l={x:s,y:t.y-n.height};break;case V:l={x:s,y:t.y+t.height};break;case z:l={x:t.x+t.width,y:c};break;case H:l={x:t.x-n.width,y:c};break;default:l={x:t.x,y:t.y}}var h=r?st(r):null;if(h!=null){var u=h==="y"?"height":"width";switch(i){case fe:l[h]=l[h]-(t[u]/2-n[u]/2);break;case ge:l[h]=l[h]+(t[u]/2-n[u]/2);break}}return l}function Ee(e,t){t===void 0&&(t={});var n=t,o=n.placement,r=o===void 0?e.placement:o,i=n.strategy,s=i===void 0?e.strategy:i,c=n.boundary,l=c===void 0?Gt:c,h=n.rootBoundary,u=h===void 0?tt:h,T=n.elementContext,y=T===void 0?ve:T,p=n.altBoundary,S=p===void 0?!1:p,m=n.padding,b=m===void 0?0:m,L=hn(typeof b!="number"?b:vn(b,Te)),D=y===ve?Zt:ve,M=e.rects.popper,x=e.elements[S?D:y],N=Br(de(x)?x:x.contextElement||ae(e.elements.popper),l,u,s),f=be(e.elements.reference),v=yn({reference:f,element:M,strategy:"absolute",placement:r}),_=Ke(Object.assign({},M,v)),w=y===ve?_:f,A={top:N.top-w.top+L.top,bottom:w.bottom-N.bottom+L.bottom,left:N.left-w.left+L.left,right:w.right-N.right+L.right},C=e.modifiersData.offset;if(y===ve&&C){var a=C[r];Object.keys(A).forEach(function(g){var O=[z,V].indexOf(g)>=0?1:-1,I=[F,V].indexOf(g)>=0?"y":"x";A[g]+=a[I]*O})}return A}function kr(e,t){t===void 0&&(t={});var n=t,o=n.placement,r=n.boundary,i=n.rootBoundary,s=n.padding,c=n.flipVariations,l=n.allowedAutoPlacements,h=l===void 0?nt:l,u=_e(o),T=u?c?Ue:Ue.filter(function(S){return _e(S)===u}):Te,y=T.filter(function(S){return h.indexOf(S)>=0});y.length===0&&(y=T);var p=y.reduce(function(S,m){return S[m]=Ee(e,{placement:m,boundary:r,rootBoundary:i,padding:s})[G(m)],S},{});return Object.keys(p).sort(function(S,m){return p[S]-p[m]})}function Rr(e){if(G(e)===je)return[];var t=Me(e);return[Nt(e),t,Nt(t)]}function jr(e){var t=e.state,n=e.options,o=e.name;if(!t.modifiersData[o]._skip){for(var r=n.mainAxis,i=r===void 0?!0:r,s=n.altAxis,c=s===void 0?!0:s,l=n.fallbackPlacements,h=n.padding,u=n.boundary,T=n.rootBoundary,y=n.altBoundary,p=n.flipVariations,S=p===void 0?!0:p,m=n.allowedAutoPlacements,b=t.options.placement,L=G(b),D=L===b,M=l||(D||!S?[Me(b)]:Rr(b)),x=[b].concat(M).reduce(function(ie,q){return ie.concat(G(q)===je?kr(t,{placement:q,boundary:u,rootBoundary:T,padding:h,flipVariations:S,allowedAutoPlacements:m}):q)},[]),N=t.rects.reference,f=t.rects.popper,v=new Map,_=!0,w=x[0],A=0;A=0,I=O?"width":"height",P=Ee(t,{placement:C,boundary:u,rootBoundary:T,altBoundary:y,padding:h}),B=O?g?z:H:g?V:F;N[I]>f[I]&&(B=Me(B));var j=Me(B),$=[];if(i&&$.push(P[a]<=0),c&&$.push(P[B]<=0,P[j]<=0),$.every(function(ie){return ie})){w=C,_=!1;break}v.set(C,$)}if(_)for(var oe=S?3:1,W=function(q){var R=x.find(function(d){var E=v.get(d);if(E)return E.slice(0,q).every(function(k){return k})});if(R)return w=R,"break"},ce=oe;ce>0;ce--){var pe=W(ce);if(pe==="break")break}t.placement!==w&&(t.modifiersData[o]._skip=!0,t.placement=w,t.reset=!0)}}var bn={name:"flip",enabled:!0,phase:"main",fn:jr,requiresIfExists:["offset"],data:{_skip:!1}};function Mt(e,t,n){return n===void 0&&(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 It(e){return[F,z,V,H].some(function(t){return e[t]>=0})}function $r(e){var t=e.state,n=e.name,o=t.rects.reference,r=t.rects.popper,i=t.modifiersData.preventOverflow,s=Ee(t,{elementContext:"reference"}),c=Ee(t,{altBoundary:!0}),l=Mt(s,o),h=Mt(c,r,i),u=It(l),T=It(h);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:h,isReferenceHidden:u,hasPopperEscaped:T},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":T})}var _n={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:$r};function Fr(e,t,n){var o=G(e),r=[H,F].indexOf(o)>=0?-1:1,i=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,s=i[0],c=i[1];return s=s||0,c=(c||0)*r,[H,z].indexOf(o)>=0?{x:c,y:s}:{x:s,y:c}}function Hr(e){var t=e.state,n=e.options,o=e.name,r=n.offset,i=r===void 0?[0,0]:r,s=nt.reduce(function(u,T){return u[T]=Fr(T,t.rects,i),u},{}),c=s[t.placement],l=c.x,h=c.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=h),t.modifiersData[o]=s}var En={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Hr};function qr(e){var t=e.state,n=e.name;t.modifiersData[n]=yn({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}var dt={name:"popperOffsets",enabled:!0,phase:"read",fn:qr,data:{}};function Vr(e){return e==="x"?"y":"x"}function zr(e){var t=e.state,n=e.options,o=e.name,r=n.mainAxis,i=r===void 0?!0:r,s=n.altAxis,c=s===void 0?!1:s,l=n.boundary,h=n.rootBoundary,u=n.altBoundary,T=n.padding,y=n.tether,p=y===void 0?!0:y,S=n.tetherOffset,m=S===void 0?0:S,b=Ee(t,{boundary:l,rootBoundary:h,padding:T,altBoundary:u}),L=G(t.placement),D=_e(t.placement),M=!D,x=st(L),N=Vr(x),f=t.modifiersData.popperOffsets,v=t.rects.reference,_=t.rects.popper,w=typeof m=="function"?m(Object.assign({},t.rects,{placement:t.placement})):m,A=typeof w=="number"?{mainAxis:w,altAxis:w}:Object.assign({mainAxis:0,altAxis:0},w),C=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,a={x:0,y:0};if(!!f){if(i){var g,O=x==="y"?F:H,I=x==="y"?V:z,P=x==="y"?"height":"width",B=f[x],j=B+b[O],$=B-b[I],oe=p?-_[P]/2:0,W=D===fe?v[P]:_[P],ce=D===fe?-_[P]:-v[P],pe=t.elements.arrow,ie=p&&pe?it(pe):{width:0,height:0},q=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:pn(),R=q[O],d=q[I],E=Oe(0,v[P],ie[P]),k=M?v[P]/2-oe-E-R-A.mainAxis:W-E-R-A.mainAxis,X=M?-v[P]/2+oe+E+d+A.mainAxis:ce+E+d+A.mainAxis,U=t.elements.arrow&&Le(t.elements.arrow),J=U?x==="y"?U.clientTop||0:U.clientLeft||0:0,he=(g=C==null?void 0:C[x])!=null?g:0,Ln=B+k-he-J,An=B+X-he,mt=Oe(p?Ie(j,Ln):j,B,p?ue($,An):$);f[x]=mt,a[x]=mt-B}if(c){var gt,Cn=x==="x"?F:H,Dn=x==="x"?V:z,le=f[N],Ae=N==="y"?"height":"width",yt=le+b[Cn],bt=le-b[Dn],He=[F,H].indexOf(L)!==-1,_t=(gt=C==null?void 0:C[N])!=null?gt:0,Et=He?yt:le-v[Ae]-_[Ae]-_t+A.altAxis,wt=He?le+v[Ae]+_[Ae]-_t-A.altAxis:bt,Tt=p&&He?Er(Et,le,wt):Oe(p?Et:yt,le,p?wt:bt);f[N]=Tt,a[N]=Tt-le}t.modifiersData[o]=a}}var wn={name:"preventOverflow",enabled:!0,phase:"main",fn:zr,requiresIfExists:["offset"]};function Wr(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Ur(e){return e===Q(e)||!Y(e)?lt(e):Wr(e)}function Yr(e){var t=e.getBoundingClientRect(),n=ye(t.width)/e.offsetWidth||1,o=ye(t.height)/e.offsetHeight||1;return n!==1||o!==1}function Kr(e,t,n){n===void 0&&(n=!1);var o=Y(t),r=Y(t)&&Yr(t),i=ae(t),s=be(e,r,n),c={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(o||!o&&!n)&&((Z(t)!=="body"||ft(i))&&(c=Ur(t)),Y(t)?(l=be(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):i&&(l.x=ut(i))),{x:s.left+c.scrollLeft-l.x,y:s.top+c.scrollTop-l.y,width:s.width,height:s.height}}function Qr(e){var t=new Map,n=new Set,o=[];e.forEach(function(i){t.set(i.name,i)});function r(i){n.add(i.name);var s=[].concat(i.requires||[],i.requiresIfExists||[]);s.forEach(function(c){if(!n.has(c)){var l=t.get(c);l&&r(l)}}),o.push(i)}return e.forEach(function(i){n.has(i.name)||r(i)}),o}function Xr(e){var t=Qr(e);return un.reduce(function(n,o){return n.concat(t.filter(function(r){return r.phase===o}))},[])}function Jr(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function Gr(e){var t=e.reduce(function(n,o){var r=n[o.name];return n[o.name]=r?Object.assign({},r,o,{options:Object.assign({},r.options,o.options),data:Object.assign({},r.data,o.data)}):o,n},{});return Object.keys(t).map(function(n){return t[n]})}var Bt={placement:"bottom",modifiers:[],strategy:"absolute"};function kt(){for(var e=arguments.length,t=new Array(e),n=0;na==null?`${a}`:Object.prototype.toString.call(a).match(/\s([a-z]+)/i)[1].toLowerCase(),c=a=>{do a+=Math.floor(Math.random()*1e6);while(document.getElementById(a));return a},l=a=>{let g=a.getAttribute("data-bs-target");if(!g||g==="#"){let O=a.getAttribute("href");if(!O||!O.includes("#")&&!O.startsWith("."))return null;O.includes("#")&&!O.startsWith("#")&&(O=`#${O.split("#")[1]}`),g=O&&O!=="#"?O.trim():null}return g},h=a=>{const g=l(a);return g&&document.querySelector(g)?g:null},u=a=>{const g=l(a);return g?document.querySelector(g):null},T=a=>{if(!a)return 0;let{transitionDuration:g,transitionDelay:O}=window.getComputedStyle(a);const I=Number.parseFloat(g),P=Number.parseFloat(O);return!I&&!P?0:(g=g.split(",")[0],O=O.split(",")[0],(Number.parseFloat(g)+Number.parseFloat(O))*1e3)},y=a=>{a.dispatchEvent(new Event(i))},p=a=>!a||typeof a!="object"?!1:(typeof a.jquery!="undefined"&&(a=a[0]),typeof a.nodeType!="undefined"),S=a=>p(a)?a.jquery?a[0]:a:typeof a=="string"&&a.length>0?document.querySelector(a):null,m=a=>{if(!p(a)||a.getClientRects().length===0)return!1;const g=getComputedStyle(a).getPropertyValue("visibility")==="visible",O=a.closest("details:not([open])");if(!O)return g;if(O!==a){const I=a.closest("summary");if(I&&I.parentNode!==O||I===null)return!1}return g},b=a=>!a||a.nodeType!==Node.ELEMENT_NODE||a.classList.contains("disabled")?!0:typeof a.disabled!="undefined"?a.disabled:a.hasAttribute("disabled")&&a.getAttribute("disabled")!=="false",L=a=>{if(!document.documentElement.attachShadow)return null;if(typeof a.getRootNode=="function"){const g=a.getRootNode();return g instanceof ShadowRoot?g:null}return a instanceof ShadowRoot?a:a.parentNode?L(a.parentNode):null},D=()=>{},M=a=>{a.offsetHeight},x=()=>window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?window.jQuery:null,N=[],f=a=>{document.readyState==="loading"?(N.length||document.addEventListener("DOMContentLoaded",()=>{for(const g of N)g()}),N.push(a)):a()},v=()=>document.documentElement.dir==="rtl",_=a=>{f(()=>{const g=x();if(g){const O=a.NAME,I=g.fn[O];g.fn[O]=a.jQueryInterface,g.fn[O].Constructor=a,g.fn[O].noConflict=()=>(g.fn[O]=I,a.jQueryInterface)}})},w=a=>{typeof a=="function"&&a()},A=(a,g,O=!0)=>{if(!O){w(a);return}const I=5,P=T(g)+I;let B=!1;const j=({target:$})=>{$===g&&(B=!0,g.removeEventListener(i,j),w(a))};g.addEventListener(i,j),setTimeout(()=>{B||y(g)},P)},C=(a,g,O,I)=>{const P=a.length;let B=a.indexOf(g);return B===-1?!O&&I?a[P-1]:a[0]:(B+=O?1:-1,I&&(B=(B+P)%P),a[Math.max(0,Math.min(B,P-1))])};n.defineJQueryPlugin=_,n.execute=w,n.executeAfterTransition=A,n.findShadowRoot=L,n.getElement=S,n.getElementFromSelector=u,n.getNextActiveElement=C,n.getSelectorFromElement=h,n.getTransitionDurationFromElement=T,n.getUID=c,n.getjQuery=x,n.isDisabled=b,n.isElement=p,n.isRTL=v,n.isVisible=m,n.noop=D,n.onDOMContentLoaded=f,n.reflow=M,n.toType=s,n.triggerTransitionEnd=y,Object.defineProperties(n,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})})(se,se.exports);var Be={exports:{}};/*! + * Bootstrap sanitizer.js v5.2.0 (https://getbootstrap.com/) + * Copyright 2011-2022 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors) + * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE) + */(function(e,t){(function(n,o){o(t)})(ee,function(n){const o=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),r=/^aria-[\w-]*$/i,i=/^(?:(?:https?|mailto|ftp|tel|file|sms):|[^#&/:?]*(?:[#/?]|$))/i,s=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[\d+/a-z]+=*$/i,c=(u,T)=>{const y=u.nodeName.toLowerCase();return T.includes(y)?o.has(y)?Boolean(i.test(u.nodeValue)||s.test(u.nodeValue)):!0:T.filter(p=>p instanceof RegExp).some(p=>p.test(y))},l={"*":["class","dir","id","lang","role",r],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],div:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","srcset","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]};function h(u,T,y){if(!u.length)return u;if(y&&typeof y=="function")return y(u);const S=new window.DOMParser().parseFromString(u,"text/html"),m=[].concat(...S.body.querySelectorAll("*"));for(const b of m){const L=b.nodeName.toLowerCase();if(!Object.keys(T).includes(L)){b.remove();continue}const D=[].concat(...b.attributes),M=[].concat(T["*"]||[],T[L]||[]);for(const x of D)c(x,M)||b.removeAttribute(x.nodeName)}return S.body.innerHTML}n.DefaultAllowlist=l,n.sanitizeHtml=h,Object.defineProperties(n,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})})(Be,Be.exports);var pt={exports:{}};/*! + * Bootstrap event-handler.js v5.2.0 (https://getbootstrap.com/) + * Copyright 2011-2022 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors) + * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE) + */(function(e,t){(function(n,o){e.exports=o(se.exports)})(ee,function(n){const o=/[^.]*(?=\..*)\.|.*/,r=/\..*/,i=/::\d+$/,s={};let c=1;const l={mouseenter:"mouseover",mouseleave:"mouseout"},h=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 u(f,v){return v&&`${v}::${c++}`||f.uidEvent||c++}function T(f){const v=u(f);return f.uidEvent=v,s[v]=s[v]||{},s[v]}function y(f,v){return function _(w){return N(w,{delegateTarget:f}),_.oneOff&&x.off(f,w.type,v),v.apply(f,[w])}}function p(f,v,_){return function w(A){const C=f.querySelectorAll(v);for(let{target:a}=A;a&&a!==this;a=a.parentNode)for(const g of C)if(g===a)return N(A,{delegateTarget:a}),w.oneOff&&x.off(f,A.type,v,_),_.apply(a,[A])}}function S(f,v,_=null){return Object.values(f).find(w=>w.callable===v&&w.delegationSelector===_)}function m(f,v,_){const w=typeof v=="string",A=w?_:v||_;let C=M(f);return h.has(C)||(C=f),[w,A,C]}function b(f,v,_,w,A){if(typeof v!="string"||!f)return;let[C,a,g]=m(v,_,w);v in l&&(a=(oe=>function(W){if(!W.relatedTarget||W.relatedTarget!==W.delegateTarget&&!W.delegateTarget.contains(W.relatedTarget))return oe.call(this,W)})(a));const O=T(f),I=O[g]||(O[g]={}),P=S(I,a,C?_:null);if(P){P.oneOff=P.oneOff&&A;return}const B=u(a,v.replace(o,"")),j=C?p(f,_,a):y(f,a);j.delegationSelector=C?_:null,j.callable=a,j.oneOff=A,j.uidEvent=B,I[B]=j,f.addEventListener(g,j,C)}function L(f,v,_,w,A){const C=S(v[_],w,A);!C||(f.removeEventListener(_,C,Boolean(A)),delete v[_][C.uidEvent])}function D(f,v,_,w){const A=v[_]||{};for(const C of Object.keys(A))if(C.includes(w)){const a=A[C];L(f,v,_,a.callable,a.delegationSelector)}}function M(f){return f=f.replace(r,""),l[f]||f}const x={on(f,v,_,w){b(f,v,_,w,!1)},one(f,v,_,w){b(f,v,_,w,!0)},off(f,v,_,w){if(typeof v!="string"||!f)return;const[A,C,a]=m(v,_,w),g=a!==v,O=T(f),I=O[a]||{},P=v.startsWith(".");if(typeof C!="undefined"){if(!Object.keys(I).length)return;L(f,O,a,C,A?_:null);return}if(P)for(const B of Object.keys(O))D(f,O,B,v.slice(1));for(const B of Object.keys(I)){const j=B.replace(i,"");if(!g||v.includes(j)){const $=I[B];L(f,O,a,$.callable,$.delegationSelector)}}},trigger(f,v,_){if(typeof v!="string"||!f)return null;const w=n.getjQuery(),A=M(v),C=v!==A;let a=null,g=!0,O=!0,I=!1;C&&w&&(a=w.Event(v,_),w(f).trigger(a),g=!a.isPropagationStopped(),O=!a.isImmediatePropagationStopped(),I=a.isDefaultPrevented());let P=new Event(v,{bubbles:g,cancelable:!0});return P=N(P,_),I&&P.preventDefault(),O&&f.dispatchEvent(P),P.defaultPrevented&&a&&a.preventDefault(),P}};function N(f,v){for(const[_,w]of Object.entries(v||{}))try{f[_]=w}catch{Object.defineProperty(f,_,{configurable:!0,get(){return w}})}return f}return x})})(pt);var ht={exports:{}};/*! + * Bootstrap manipulator.js v5.2.0 (https://getbootstrap.com/) + * Copyright 2011-2022 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors) + * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE) + */(function(e,t){(function(n,o){e.exports=o()})(ee,function(){function n(i){if(i==="true")return!0;if(i==="false")return!1;if(i===Number(i).toString())return Number(i);if(i===""||i==="null")return null;if(typeof i!="string")return i;try{return JSON.parse(decodeURIComponent(i))}catch{return i}}function o(i){return i.replace(/[A-Z]/g,s=>`-${s.toLowerCase()}`)}return{setDataAttribute(i,s,c){i.setAttribute(`data-bs-${o(s)}`,c)},removeDataAttribute(i,s){i.removeAttribute(`data-bs-${o(s)}`)},getDataAttributes(i){if(!i)return{};const s={},c=Object.keys(i.dataset).filter(l=>l.startsWith("bs")&&!l.startsWith("bsConfig"));for(const l of c){let h=l.replace(/^bs/,"");h=h.charAt(0).toLowerCase()+h.slice(1,h.length),s[h]=n(i.dataset[l])}return s},getDataAttribute(i,s){return n(i.getAttribute(`data-bs-${o(s)}`))}}})})(ht);var Tn={exports:{}},On={exports:{}};/*! + * Bootstrap data.js v5.2.0 (https://getbootstrap.com/) + * Copyright 2011-2022 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors) + * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE) + */(function(e,t){(function(n,o){e.exports=o()})(ee,function(){const n=new Map;return{set(r,i,s){n.has(r)||n.set(r,new Map);const c=n.get(r);if(!c.has(i)&&c.size!==0){console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(c.keys())[0]}.`);return}c.set(i,s)},get(r,i){return n.has(r)&&n.get(r).get(i)||null},remove(r,i){if(!n.has(r))return;const s=n.get(r);s.delete(i),s.size===0&&n.delete(r)}}})})(On);var vt={exports:{}};/*! + * Bootstrap config.js v5.2.0 (https://getbootstrap.com/) + * Copyright 2011-2022 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors) + * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE) + */(function(e,t){(function(n,o){e.exports=o(se.exports,ht.exports)})(ee,function(n,o){const i=(c=>c&&typeof c=="object"&&"default"in c?c:{default:c})(o);class s{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(l){return l=this._mergeConfigObj(l),l=this._configAfterMerge(l),this._typeCheckConfig(l),l}_configAfterMerge(l){return l}_mergeConfigObj(l,h){const u=n.isElement(h)?i.default.getDataAttribute(h,"config"):{};return{...this.constructor.Default,...typeof u=="object"?u:{},...n.isElement(h)?i.default.getDataAttributes(h):{},...typeof l=="object"?l:{}}}_typeCheckConfig(l,h=this.constructor.DefaultType){for(const u of Object.keys(h)){const T=h[u],y=l[u],p=n.isElement(y)?"element":n.toType(y);if(!new RegExp(T).test(p))throw new TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${u}" provided type "${p}" but expected type "${T}".`)}}}return s})})(vt);/*! + * Bootstrap base-component.js v5.2.0 (https://getbootstrap.com/) + * Copyright 2011-2022 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors) + * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE) + */(function(e,t){(function(n,o){e.exports=o(On.exports,se.exports,pt.exports,vt.exports)})(ee,function(n,o,r,i){const s=y=>y&&typeof y=="object"&&"default"in y?y:{default:y},c=s(n),l=s(r),h=s(i),u="5.2.0";class T extends h.default{constructor(p,S){super(),p=o.getElement(p),p&&(this._element=p,this._config=this._getConfig(S),c.default.set(this._element,this.constructor.DATA_KEY,this))}dispose(){c.default.remove(this._element,this.constructor.DATA_KEY),l.default.off(this._element,this.constructor.EVENT_KEY);for(const p of Object.getOwnPropertyNames(this))this[p]=null}_queueCallback(p,S,m=!0){o.executeAfterTransition(p,S,m)}_getConfig(p){return p=this._mergeConfigObj(p,this._element),p=this._configAfterMerge(p),this._typeCheckConfig(p),p}static getInstance(p){return c.default.get(o.getElement(p),this.DATA_KEY)}static getOrCreateInstance(p,S={}){return this.getInstance(p)||new this(p,typeof S=="object"?S:null)}static get VERSION(){return u}static get DATA_KEY(){return`bs.${this.NAME}`}static get EVENT_KEY(){return`.${this.DATA_KEY}`}static eventName(p){return`${p}${this.EVENT_KEY}`}}return T})})(Tn);var xn={exports:{}},Sn={exports:{}};/*! + * Bootstrap selector-engine.js v5.2.0 (https://getbootstrap.com/) + * Copyright 2011-2022 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors) + * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE) + */(function(e,t){(function(n,o){e.exports=o(se.exports)})(ee,function(n){return{find(r,i=document.documentElement){return[].concat(...Element.prototype.querySelectorAll.call(i,r))},findOne(r,i=document.documentElement){return Element.prototype.querySelector.call(i,r)},children(r,i){return[].concat(...r.children).filter(s=>s.matches(i))},parents(r,i){const s=[];let c=r.parentNode.closest(i);for(;c;)s.push(c),c=c.parentNode.closest(i);return s},prev(r,i){let s=r.previousElementSibling;for(;s;){if(s.matches(i))return[s];s=s.previousElementSibling}return[]},next(r,i){let s=r.nextElementSibling;for(;s;){if(s.matches(i))return[s];s=s.nextElementSibling}return[]},focusableChildren(r){const i=["a","button","input","textarea","select","details","[tabindex]",'[contenteditable="true"]'].map(s=>`${s}:not([tabindex^="-"])`).join(",");return this.find(i,r).filter(s=>!n.isDisabled(s)&&n.isVisible(s))}}})})(Sn);/*! + * Bootstrap template-factory.js v5.2.0 (https://getbootstrap.com/) + * Copyright 2011-2022 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors) + * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE) + */(function(e,t){(function(n,o){e.exports=o(Be.exports,se.exports,Sn.exports,vt.exports)})(ee,function(n,o,r,i){const s=S=>S&&typeof S=="object"&&"default"in S?S:{default:S},c=s(r),l=s(i),h="TemplateFactory",u={allowList:n.DefaultAllowlist,content:{},extraClass:"",html:!1,sanitize:!0,sanitizeFn:null,template:"
"},T={allowList:"object",content:"object",extraClass:"(string|function)",html:"boolean",sanitize:"boolean",sanitizeFn:"(null|function)",template:"string"},y={entry:"(string|element|function|null)",selector:"(string|element)"};class p extends l.default{constructor(m){super(),this._config=this._getConfig(m)}static get Default(){return u}static get DefaultType(){return T}static get NAME(){return h}getContent(){return Object.values(this._config.content).map(m=>this._resolvePossibleFunction(m)).filter(Boolean)}hasContent(){return this.getContent().length>0}changeContent(m){return this._checkContent(m),this._config.content={...this._config.content,...m},this}toHtml(){const m=document.createElement("div");m.innerHTML=this._maybeSanitize(this._config.template);for(const[D,M]of Object.entries(this._config.content))this._setContent(m,M,D);const b=m.children[0],L=this._resolvePossibleFunction(this._config.extraClass);return L&&b.classList.add(...L.split(" ")),b}_typeCheckConfig(m){super._typeCheckConfig(m),this._checkContent(m.content)}_checkContent(m){for(const[b,L]of Object.entries(m))super._typeCheckConfig({selector:b,entry:L},y)}_setContent(m,b,L){const D=c.default.findOne(L,m);if(!!D){if(b=this._resolvePossibleFunction(b),!b){D.remove();return}if(o.isElement(b)){this._putElementInTemplate(o.getElement(b),D);return}if(this._config.html){D.innerHTML=this._maybeSanitize(b);return}D.textContent=b}}_maybeSanitize(m){return this._config.sanitize?n.sanitizeHtml(m,this._config.allowList,this._config.sanitizeFn):m}_resolvePossibleFunction(m){return typeof m=="function"?m(this):m}_putElementInTemplate(m,b){if(this._config.html){b.innerHTML="",b.append(m);return}b.textContent=m.textContent}}return p})})(xn);/*! + * Bootstrap tooltip.js v5.2.0 (https://getbootstrap.com/) + * Copyright 2011-2022 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors) + * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE) + */(function(e,t){(function(n,o){e.exports=o(io,se.exports,Be.exports,pt.exports,ht.exports,Tn.exports,xn.exports)})(ee,function(n,o,r,i,s,c,l){const h=R=>R&&typeof R=="object"&&"default"in R?R:{default:R};function u(R){if(R&&R.__esModule)return R;const d=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(R){for(const E in R)if(E!=="default"){const k=Object.getOwnPropertyDescriptor(R,E);Object.defineProperty(d,E,k.get?k:{enumerable:!0,get:()=>R[E]})}}return d.default=R,Object.freeze(d)}const T=u(n),y=h(i),p=h(s),S=h(c),m=h(l),b="tooltip",L=new Set(["sanitize","allowList","sanitizeFn"]),D="fade",M="modal",x="show",N=".tooltip-inner",f=`.${M}`,v="hide.bs.modal",_="hover",w="focus",A="click",C="manual",a="hide",g="hidden",O="show",I="shown",P="inserted",B="click",j="focusin",$="focusout",oe="mouseenter",W="mouseleave",ce={AUTO:"auto",TOP:"top",RIGHT:o.isRTL()?"left":"right",BOTTOM:"bottom",LEFT:o.isRTL()?"right":"left"},pe={allowList:r.DefaultAllowlist,animation:!0,boundary:"clippingParents",container:!1,customClass:"",delay:0,fallbackPlacements:["top","right","bottom","left"],html:!1,offset:[0,0],placement:"top",popperConfig:null,sanitize:!0,sanitizeFn:null,selector:!1,template:'',title:"",trigger:"hover focus"},ie={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 q extends S.default{constructor(d,E){if(typeof T=="undefined")throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org)");super(d,E),this._isEnabled=!0,this._timeout=0,this._isHovered=!1,this._activeTrigger={},this._popper=null,this._templateFactory=null,this._newContent=null,this.tip=null,this._setListeners()}static get Default(){return pe}static get DefaultType(){return ie}static get NAME(){return b}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}toggleEnabled(){this._isEnabled=!this._isEnabled}toggle(d){if(!!this._isEnabled){if(d){const E=this._initializeOnDelegatedTarget(d);E._activeTrigger.click=!E._activeTrigger.click,E._isWithActiveTrigger()?E._enter():E._leave();return}if(this._isShown()){this._leave();return}this._enter()}}dispose(){clearTimeout(this._timeout),y.default.off(this._element.closest(f),v,this._hideModalHandler),this.tip&&this.tip.remove(),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 d=y.default.trigger(this._element,this.constructor.eventName(O)),k=(o.findShadowRoot(this._element)||this._element.ownerDocument.documentElement).contains(this._element);if(d.defaultPrevented||!k)return;this.tip&&(this.tip.remove(),this.tip=null);const X=this._getTipElement();this._element.setAttribute("aria-describedby",X.getAttribute("id"));const{container:U}=this._config;if(this._element.ownerDocument.documentElement.contains(this.tip)||(U.append(X),y.default.trigger(this._element,this.constructor.eventName(P))),this._popper?this._popper.update():this._popper=this._createPopper(X),X.classList.add(x),"ontouchstart"in document.documentElement)for(const he of[].concat(...document.body.children))y.default.on(he,"mouseover",o.noop);const J=()=>{const he=this._isHovered;this._isHovered=!1,y.default.trigger(this._element,this.constructor.eventName(I)),he&&this._leave()};this._queueCallback(J,this.tip,this._isAnimated())}hide(){if(!this._isShown()||y.default.trigger(this._element,this.constructor.eventName(a)).defaultPrevented)return;const E=this._getTipElement();if(E.classList.remove(x),"ontouchstart"in document.documentElement)for(const X of[].concat(...document.body.children))y.default.off(X,"mouseover",o.noop);this._activeTrigger[A]=!1,this._activeTrigger[w]=!1,this._activeTrigger[_]=!1,this._isHovered=!1;const k=()=>{this._isWithActiveTrigger()||(this._isHovered||E.remove(),this._element.removeAttribute("aria-describedby"),y.default.trigger(this._element,this.constructor.eventName(g)),this._disposePopper())};this._queueCallback(k,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(d){const E=this._getTemplateFactory(d).toHtml();if(!E)return null;E.classList.remove(D,x),E.classList.add(`bs-${this.constructor.NAME}-auto`);const k=o.getUID(this.constructor.NAME).toString();return E.setAttribute("id",k),this._isAnimated()&&E.classList.add(D),E}setContent(d){this._newContent=d,this._isShown()&&(this._disposePopper(),this.show())}_getTemplateFactory(d){return this._templateFactory?this._templateFactory.changeContent(d):this._templateFactory=new m.default({...this._config,content:d,extraClass:this._resolvePossibleFunction(this._config.customClass)}),this._templateFactory}_getContentForTemplate(){return{[N]:this._getTitle()}}_getTitle(){return this._resolvePossibleFunction(this._config.title)||this._config.originalTitle}_initializeOnDelegatedTarget(d){return this.constructor.getOrCreateInstance(d.delegateTarget,this._getDelegateConfig())}_isAnimated(){return this._config.animation||this.tip&&this.tip.classList.contains(D)}_isShown(){return this.tip&&this.tip.classList.contains(x)}_createPopper(d){const E=typeof this._config.placement=="function"?this._config.placement.call(this,d,this._element):this._config.placement,k=ce[E.toUpperCase()];return T.createPopper(this._element,d,this._getPopperConfig(k))}_getOffset(){const{offset:d}=this._config;return typeof d=="string"?d.split(",").map(E=>Number.parseInt(E,10)):typeof d=="function"?E=>d(E,this._element):d}_resolvePossibleFunction(d){return typeof d=="function"?d.call(this._element):d}_getPopperConfig(d){const E={placement:d,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:k=>{this._getTipElement().setAttribute("data-popper-placement",k.state.placement)}}]};return{...E,...typeof this._config.popperConfig=="function"?this._config.popperConfig(E):this._config.popperConfig}}_setListeners(){const d=this._config.trigger.split(" ");for(const E of d)if(E==="click")y.default.on(this._element,this.constructor.eventName(B),this._config.selector,k=>this.toggle(k));else if(E!==C){const k=E===_?this.constructor.eventName(oe):this.constructor.eventName(j),X=E===_?this.constructor.eventName(W):this.constructor.eventName($);y.default.on(this._element,k,this._config.selector,U=>{const J=this._initializeOnDelegatedTarget(U);J._activeTrigger[U.type==="focusin"?w:_]=!0,J._enter()}),y.default.on(this._element,X,this._config.selector,U=>{const J=this._initializeOnDelegatedTarget(U);J._activeTrigger[U.type==="focusout"?w:_]=J._element.contains(U.relatedTarget),J._leave()})}this._hideModalHandler=()=>{this._element&&this.hide()},y.default.on(this._element.closest(f),v,this._hideModalHandler),this._config.selector?this._config={...this._config,trigger:"manual",selector:""}:this._fixTitle()}_fixTitle(){const d=this._config.originalTitle;!d||(!this._element.getAttribute("aria-label")&&!this._element.textContent.trim()&&this._element.setAttribute("aria-label",d),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(d,E){clearTimeout(this._timeout),this._timeout=setTimeout(d,E)}_isWithActiveTrigger(){return Object.values(this._activeTrigger).includes(!0)}_getConfig(d){const E=p.default.getDataAttributes(this._element);for(const k of Object.keys(E))L.has(k)&&delete E[k];return d={...E,...typeof d=="object"&&d?d:{}},d=this._mergeConfigObj(d),d=this._configAfterMerge(d),this._typeCheckConfig(d),d}_configAfterMerge(d){return d.container=d.container===!1?document.body:o.getElement(d.container),typeof d.delay=="number"&&(d.delay={show:d.delay,hide:d.delay}),d.originalTitle=this._element.getAttribute("title")||"",typeof d.title=="number"&&(d.title=d.title.toString()),typeof d.content=="number"&&(d.content=d.content.toString()),d}_getDelegateConfig(){const d={};for(const E in this._config)this.constructor.Default[E]!==this._config[E]&&(d[E]=this._config[E]);return d}_disposePopper(){this._popper&&(this._popper.destroy(),this._popper=null)}static jQueryInterface(d){return this.each(function(){const E=q.getOrCreateInstance(this,d);if(typeof d=="string"){if(typeof E[d]=="undefined")throw new TypeError(`No method named "${d}"`);E[d]()}})}}return o.defineJQueryPlugin(q),q})})(Jt);var so=vr(Jt.exports);document.querySelectorAll('[data-bs-toggle="tooltip"]').forEach(e=>new so(e)); diff --git a/dist/img/crown.png b/dist/img/crown.png new file mode 100644 index 0000000..98d92a7 Binary files /dev/null and b/dist/img/crown.png differ diff --git a/index.html b/index.html new file mode 100644 index 0000000..0247583 --- /dev/null +++ b/index.html @@ -0,0 +1,368 @@ + + + + + + + + + Maths Quiz + + + + + + + + + Trophy + + + + Shield + + + + + + + + Tips and Tricks + + + + Close + + + + Settings + + + + + + + Warning Icon + + + + + +
+
+ +
+ +
+ +
+ +
+ + + +
+
+ +
+ + +
+
+
Your Name:
+
(Unknown)
+
+
+
Your Highscore:
+
----
+
+
+
Average Score:
+
----
+
+
+
No of Times Played:
+
--
+
+
+
+
Your Rank:
+
#--
+
+
+ +
+ +
+
+ +
+ + +
+
+
+
+
+
+ + + + +
+ Oops! You're Offline +
+
+
+
+
+ +
+ +
hahdha
+
+ + +
+
+ +
+ +
+
+
+
+
Saving, Please Wait!
+
+
+ + + +
+ Oops! You're Offline +
+
+
+
+ +
+ +
+ +
+
+
+
+ +
+ +
+
+
+
+
Saving, Please Wait!
+
+
+ + + +
+ Oops! You're Offline +
+
+
+
+ +
+ +
+ +
+
+
+
+ +
+ + +
+
    +
  1. You will have only 15 seconds per each question.
  2. +
  3. You can't select any option once time goes off.
  4. +
  5. You can't exit while you're playing the Quiz.
  6. +
  7. Your score won't update when you're offline.
  8. +
  9. If you're a beginner, try using Tips & Tricks
  10. +
+
+ +
+ + +
+
+ +
+ + +
+
+

12

+ X +

12

+
+ +
    +
  • 144
  • +
  • 232
  • +
  • 32
  • +
  • 89
  • +
+
+ +
+
+
Points
+
0
+
+ +
+
+ +
+
+ Crown Image +
+ +
+ You’ve Completed the Quiz +
+ +
You scored 321
+ +
+
+
Highscore
+
0
+
+ +
+
+ + diff --git a/src/index.html b/src/index.html index c40ac12..6f6bd2f 100644 --- a/src/index.html +++ b/src/index.html @@ -122,7 +122,7 @@ -
+