From 9bed89b067092593917216645bae39710a31cf4e Mon Sep 17 00:00:00 2001 From: Vivek Santayana Date: Sat, 3 Sep 2022 19:50:09 +0100 Subject: [PATCH] Corrected server address --- src/assets/index.0b8786b7.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/assets/index.0b8786b7.js b/src/assets/index.0b8786b7.js index 9f9841f..201b8fa 100644 --- a/src/assets/index.0b8786b7.js +++ b/src/assets/index.0b8786b7.js @@ -10,4 +10,4 @@ * (c) 2022 Eduardo San Martin Morote * @license MIT */let Al;const Ds=e=>Al=e,Rl=Symbol();function Dr(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var jn;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(jn||(jn={}));function np(){const e=pa(!0),t=e.run(()=>Ue({}));let n=[],s=[];const r=dn({install(o){Ds(r),r._a=o,o.provide(Rl,r),o.config.globalProperties.$pinia=r,s.forEach(i=>n.push(i)),s=[]},use(o){return!this._a&&!tp?s.push(o):n.push(o),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return r}const kl=()=>{};function Fi(e,t,n,s=kl){e.push(t);const r=()=>{const o=e.indexOf(t);o>-1&&(e.splice(o,1),s())};return!n&&fo()&&Os(r),r}function tn(e,...t){e.slice().forEach(n=>{n(...t)})}function Vr(e,t){for(const n in t){if(!t.hasOwnProperty(n))continue;const s=t[n],r=e[n];Dr(r)&&Dr(s)&&e.hasOwnProperty(n)&&!Ee(s)&&!Lt(s)?e[n]=Vr(r,s):e[n]=s}return e}const sp=Symbol();function rp(e){return!Dr(e)||!e.hasOwnProperty(sp)}const{assign:vt}=Object;function op(e){return!!(Ee(e)&&e.effect)}function ip(e,t,n,s){const{state:r,actions:o,getters:i}=t,a=n.state.value[e];let l;function c(){a||(n.state.value[e]=r?r():{});const u=jc(n.state.value[e]);return vt(u,o,Object.keys(i||{}).reduce((f,d)=>(f[d]=dn($e(()=>{Ds(n);const _=n._s.get(e);return i[d].call(_,_)})),f),{}))}return l=Tl(e,c,t,n,s,!0),l.$reset=function(){const f=r?r():{};this.$patch(d=>{vt(d,f)})},l}function Tl(e,t,n={},s,r,o){let i;const a=vt({actions:{}},n),l={deep:!0};let c,u,f=dn([]),d=dn([]),_;const v=s.state.value[e];!o&&!v&&(s.state.value[e]={}),Ue({});let x;function A(X){let F;c=u=!1,typeof X=="function"?(X(s.state.value[e]),F={type:jn.patchFunction,storeId:e,events:_}):(Vr(s.state.value[e],X),F={type:jn.patchObject,payload:X,storeId:e,events:_});const Y=x=Symbol();dt().then(()=>{x===Y&&(c=!0)}),u=!0,tn(f,F,s.state.value[e])}const T=kl;function j(){i.stop(),f=[],d=[],s._s.delete(e)}function K(X,F){return function(){Ds(s);const Y=Array.from(arguments),se=[],le=[];function M(Ce){se.push(Ce)}function re(Ce){le.push(Ce)}tn(d,{args:Y,name:X,store:I,after:M,onError:re});let ce;try{ce=F.apply(this&&this.$id===e?this:I,Y)}catch(Ce){throw tn(le,Ce),Ce}return ce instanceof Promise?ce.then(Ce=>(tn(se,Ce),Ce)).catch(Ce=>(tn(le,Ce),Promise.reject(Ce))):(tn(se,ce),ce)}}const G={_p:s,$id:e,$onAction:Fi.bind(null,d),$patch:A,$reset:T,$subscribe(X,F={}){const Y=Fi(f,X,F.detached,()=>se()),se=i.run(()=>Hn(()=>s.state.value[e],le=>{(F.flush==="sync"?u:c)&&X({storeId:e,type:jn.direct,events:_},le)},vt({},l,F)));return Y},$dispose:j},I=Cn(vt({},G));s._s.set(e,I);const _e=s._e.run(()=>(i=pa(),i.run(()=>t())));for(const X in _e){const F=_e[X];if(Ee(F)&&!op(F)||Lt(F))o||(v&&rp(F)&&(Ee(F)?F.value=v[X]:Vr(F,v[X])),s.state.value[e][X]=F);else if(typeof F=="function"){const Y=K(X,F);_e[X]=Y,a.actions[X]=F}}return vt(I,_e),vt(ae(I),_e),Object.defineProperty(I,"$state",{get:()=>s.state.value[e],set:X=>{A(F=>{vt(F,X)})}}),s._p.forEach(X=>{vt(I,i.run(()=>X({store:I,app:s._a,pinia:s,options:a})))}),v&&o&&n.hydrate&&n.hydrate(I.$state,v),c=!0,u=!0,I}function go(e,t,n){let s,r;const o=typeof t=="function";typeof e=="string"?(s=e,r=o?n:t):(r=e,s=e.id);function i(a,l){const c=fo();return a=a||c&&rt(Rl),a&&Ds(a),a=Al,a._s.has(s)||(o?Tl(s,t,r,a):ip(s,r,a)),a._s.get(s)}return i.$id=s,i}const Sn=go({id:"answers",state:()=>({answers:[],quizCurrent:null}),actions:{isAnswered(e){return Array.isArray(this.answers[e])?this.answers[e].length>0:this.answers[e]!=null},makeArray(e,t){t>1&&!Array.isArray(this.answers[e])&&(this.answers[e]=[])}}}),Ge=go({id:"results",state:()=>({answers:[],playbooks:{},results:{},scores:{},count:null,compareCurrent:null}),actions:{store(e,t){this[e]=JSON.parse(JSON.stringify(t))}}});const ap={name:"SideLink",components:{SvgIcon:it},props:["prefix","route"]},lp=["href"],cp={class:"inline-flex px-2 py-1 items-center space-x-1"},up={class:"scale-75"},fp={class:"inline-flex px-2 py-1 items-center space-x-1"},dp={class:"scale-75"};function hp(e,t,n,s,r,o){const i=S("svg-icon"),a=S("router-link");return n.route.path.startsWith("http")?(E(),W("a",{key:0,href:n.route.path,class:"navlink",target:"_blank",rel:"noopener noreferrer"},[h("div",cp,[h("span",up,[$(i,{type:"mdi",path:n.route.meta.svgPath},null,8,["path"])]),h("span",null,we(n.route.meta.title),1)])],8,lp)):(E(),ee(a,{key:1,"exact-active-class":n.route.hasOwnProperty("children")?"":"active-link","active-class":n.route.hasOwnProperty("children")?"active-link":"",class:"navlink",to:n.prefix+"/"+n.route.path},{default:L(()=>[h("div",fp,[h("span",dp,[$(i,{type:"mdi",path:n.route.meta.svgPath},null,8,["path"])]),h("span",null,we(n.route.meta.title),1)])]),_:1},8,["exact-active-class","active-class","to"]))}const pp=ne(ap,[["render",hp],["__scopeId","data-v-88f7dc48"]]),mp={name:"Sidebar",components:{Navlink:pp},props:["prefix","routes"]},_p={class:"flex flex-col bg-lime-50 px-3 py-5 rounded-xl"},gp={class:"text-xl my-2 border-b-2 border-olive-600 border-solid text-center uncial-antiqua md:text-left"},vp={class:"flex flex-col text-md"};function yp(e,t,n,s,r,o){const i=S("Navlink");return E(),W("div",_p,[h("h1",gp,[Ls(e.$slots,"header")]),h("div",vp,[(E(!0),W(xe,null,mt(n.routes,a=>(E(),ee(i,{route:a,prefix:n.prefix,key:a.path},null,8,["route","prefix"]))),128))])])}const Pl=ne(mp,[["render",yp]]),bp={name:"AboutIndex",components:{Sidebar:Pl},setup(){const e=Sn(),t=Ge();return{answersStore:e,resultsStore:t}},mounted(){this.answersStore.quizCurrent==null&&this.answersStore.$reset(),this.resultsStore.$reset()}},wp={class:"flex flex-col space-y-3 md:flex-row md:space-x-6 md:space-y-0"},xp={class:"flex flex-col w-full md:w-1/3 h-fit"},Cp=N(" About "),$p={class:"flex w-full md:w-2/3"};function Sp(e,t,n,s,r,o){const i=S("Sidebar"),a=S("router-view");return E(),W("div",null,[h("div",wp,[h("div",xp,[$(i,{prefix:e.$router.options.routes[2].path,routes:e.$router.options.routes[2].children},{header:L(()=>[Cp]),_:1},8,["prefix","routes"])]),h("div",$p,[$(a,{class:"w-full",ref:"panel",appear:""},{default:L(({Component:l,route:c})=>[$($t,{mode:"out-in","enter-active-class":c.meta.panelEnterActiveClass,"enter-from-class":c.meta.panelEnterFromClass,"leave-active-class":c.meta.panelLeaveActiveClass,"leave-to-class":c.meta.panelLeaveToClass},{default:L(()=>[(E(),ee(es(l)))]),_:2},1032,["enter-active-class","enter-from-class","leave-active-class","leave-to-class"])]),_:1},512)])])])}const Ep=ne(bp,[["render",Sp]]),Ap={name:"Footer"},Rp={key:0,class:"mt-20 max-w-2xl mx-auto bg-lime-50 p-3 rounded-xl"},kp=h("hr",{class:"border-gray-400 w-2/3 mx-auto"},null,-1),Tp={class:"text-sm"},Pp=h("em",{class:"uncial-antiqua"},"Wanderhome",-1),Ip=N(" \xA9 Possum Creek Games Inc. The "),Op=h("em",null,[h("span",{class:"uncial-antiqua"},"Wanderhome"),N(" Quiz | V.S.")],-1),Lp=N(" is an independent production by Vivek Santayana and is not affiliated with Possum Creek Games Inc. It is published under the Wanderhome Third Party License. The questions used in the quiz were written by Vivek Santayana. For more information, please see the "),Mp=N("Licenses section"),Hp=N(". ");function Np(e,t,n,s,r,o){const i=S("router-link");return["CatchAll","Licenses","NotFound","Refused"].includes(e.$route.name)?Nu("",!0):(E(),W("footer",Rp,[kp,h("p",Tp,[Pp,Ip,Op,Lp,$(i,{class:"underline hover:bg-orange-200",to:"/about/licenses"},{default:L(()=>[Mp]),_:1}),Hp])]))}const Fp=ne(Ap,[["render",Np]]),qp={name:"Content",components:{Footer:Fp}};function Bp(e,t,n,s,r,o){const i=S("Footer");return E(),W(xe,null,[h("div",null,[Ls(e.$slots,"default")]),$(i)],64)}const He=ne(qp,[["render",Bp]]),jp={name:"Header"},Dp={class:"text-4xl text-center pb-1 border-b-2 border-solid border-olive-600 mb-6 uncial-antiqua"};function Vp(e,t,n,s,r,o){return E(),W("h1",Dp,[Ls(e.$slots,"default")])}const Ne=ne(jp,[["render",Vp]]),Up={name:"TextFrame"},zp={class:"max-w-2xl mx-auto bg-lime-50 p-3 rounded-xl"};function Wp(e,t,n,s,r,o){return E(),W("div",zp,[Ls(e.$slots,"default")])}const Fe=ne(Up,[["render",Wp]]),Kp={name:"About",components:{Content:He,Header:Ne,TextFrame:Fe}},Qp=N(" Background "),Jp={class:"prose mx-auto"},Yp=h("h2",null,"What Exactly Is This?",-1),Zp=h("p",null,[N(" This web app is a personality quiz to see what "),h("em",{class:"uncial-antiqua"},"Wanderhome"),N(" playbook you are. I have previously made a smilar "),h("a",{href:"https://masks.vsnt.uk/",target:"_blank",rel:"noopener noreferrer",class:"hover:bg-orange-200"},[N("character quiz for Brendan Conway\u2019s "),h("em",null,"Masks: a New Generation")]),N(". I have also made a digital version of the "),h("a",{href:"https://reftest.vsnt.uk/",target:"_blank",rel:"noopener noreferrer",class:"hover:bg-orange-200"},"Scottish Korfball refereeing exam"),N(". ")],-1),Gp=h("p",null," This was a fun programming exercise I set myself. But quizzes like this are also really enjoyable to do, and not to mention compare our results with others. And I would love to make this quiz if it gives me a reason to talk to people I know about my favourite TTRPGs. ",-1),Xp=N(" If you want to read more about "),em=h("em",{class:"uncial-antiqua"},"Wanderhome",-1),tm=N(", you can do so in the "),nm=N("relevant section"),sm=N(". I wholeheartedly recommend playing it! "),rm=h("hr",{class:"border-gray-400 w-2/3 mx-auto"},null,-1),om=h("section",null,[h("h2",null," Technobabble "),h("p",null,[N(" It has been a long time since I made the "),h("em",null,"Masks"),N(" quiz, and this quiz has been proportionately over-engineered! ")]),h("h3",null," Dividing Client/Server Side "),h("p",null,[N(" In my last upgrade to the "),h("em",null,"Masks"),N(" quiz, I made the quiz run on a server which renders the questions and evaluates the restuls. The app runs on Python and Flask, and its pages are rendered primarily through Jinja. This means that the Python server handles the quiz and also serves the web site, which is not the most robust. ")]),h("p",null,[N(" The "),h("em",{class:"uncial-antiqua"},"Wanderhome"),N(" quiz in contrast separates the server (running on Python) that renders the quiz and evaluates the results, and the client (running on JavaScript and HTML) that provides the interface. The server is a proper system-agnostic API. ")]),h("h3",null," Storing Results "),h("p",null," One of the things I have added to the quiz is that it will store the results people get. It will not collect anybody\u2019s name or any identifying information. But it will record how people answered, and what results people got, so users can compare how they did with other users anonymously, and so I can evaluate whether or not the questions are biased or skewing results. It will store all of this in a database: originally an SQLite database, but I can configure the app to use a MySQL database if I wanted. "),h("p",null," One of the biggest challenges of these personality quiz projects, funnily enough, is the mathematical quandary that writing the questions entails: ensuring that all outcomes are equally possible in the quiz overall, but also that there are sufficiently varied permutations of questions and answers that score for different outcomes to avoid some playbooks collapsing into each other. "),h("h3",null," Different Frameworks "),h("p",null," I made the regrettable decision of teaching myself a new framework for this project. I built the UI using Vue with the Tailwind CSS framework, and it was an experience I found really frustrating because of how I threw myself in the deep end. It is unbelievably fiddly, with even some of the most intuitive features being an utter pain to set up, needing detective work of finding compatible libraries and plug-ins. What was even worse is that the JQuery library that I normally use for API calls is not compatible with Vue, so I will need to learn how to use Axios. "),h("p",null," On the whole, despite how much of a hassle it was, I preferred the outcome of using Vue and Tailwind because the result looks a lot less samey to my Flask/Bootstrap projects. The result here is one that has much more polish. ")],-1),im=h("hr",{class:"border-gray-400 w-2/3 mx-auto"},null,-1),am=h("section",null,[h("h2",null," What Next? "),h("p",null,[N(" I am running out of geeky TTRPG-related programming projects. I was thinking of making a web app to play a game of "),h("a",{href:"https://www.lamemage.com/microscope/",target:"_blank",rel:"noopener noreferrer",class:"hover:bg-orange-200"},[h("em",null,"Microscope"),N(" by Ben Robbins")]),N(", published by Lame Mage Productions. There is an app that exists, but every time I tried using it I struggled to get it to work properly. The developer has not responded to my issues on GitHub, so I am tempted to reverse engineer it and make one from the ground up. The original app was written in programming languages that I have no clue about, so I would rather just build it from sratch in Python and, unfortunately, Vue. That might be the next project I tinker with. It will apply all the things I currently know, and also add websockets and state synchronisation to the mix. ")])],-1);function lm(e,t,n,s,r,o){const i=S("Header"),a=S("router-link"),l=S("Content"),c=S("TextFrame");return E(),ee(c,null,{default:L(()=>[$(i,null,{default:L(()=>[Qp]),_:1}),$(l,null,{default:L(()=>[h("article",Jp,[h("section",null,[Yp,Zp,Gp,h("p",null,[Xp,em,tm,$(a,{to:"/about/wanderhome",class:"hover:bg-orange-200"},{default:L(()=>[nm]),_:1}),sm])]),rm,om,im,am])]),_:1})]),_:1})}const cm=ne(Kp,[["render",lm]]),um="/assets/wh_ic_banner.55188797.png",fm={name:"Licenses",components:{Content:He,Header:Ne,TextFrame:Fe}},dm=N(" Licenses "),hm=h("article",{class:"prose mx-auto"},[h("section",null,[h("a",{href:"https://possumcreekgames.com/en-gb/pages/wanderhome-3rd-party-license",target:"_blank",rel:"noopener noreferrer"},[h("img",{src:um,alt:"Wanderhome Independent Content banner",class:"drop-shadow-lg scale-75 my-0 inline-block"})]),h("h2",null,[h("em",{class:"uncial-antiqua"},"Wanderhome"),N(" Text and Artwork ")]),h("p",null,[h("em",{class:"uncial-antiqua"},"Wanderhome"),N(" is copyright of Possum Creek Games Inc. ")]),h("p",null,[N(" The "),h("em",null,[h("span",{class:"uncial-antiqua"},"Wanderhome"),N(" Quiz | V.S.")]),N(" is an independent production by Vivek Santayana and is not affiliated with Possum Creek Games Inc. It is published under the "),h("a",{href:"https://possumcreekgames.com/en-gb/pages/wanderhome-3rd-party-license",target:"_blank",class:"hover:bg-orange-200",rel:"noopener noreferrer"},"Wanderhome Third Party License"),N(". ")]),h("p",null,[N(" The excerpts from "),h("em",{class:"uncial-antiqua"},"Wanderhome"),N(", including the names of the playbook, flavour text, playbook descriptions, natures, animal forms, and character action options, as well as the setting of H\xE6th, are copyright of Possum Creek Games Inc. ")]),h("p",null,[N(" Artwork from "),h("em",{class:"uncial-antiqua"},"Wanderhome"),N(", including game art and illustrations of playbooks, are also copyright Possum Creek Games Inc. ")])]),h("hr",{class:"border-gray-400 w-2/3 mx-auto"}),h("section",null,[h("h2",null," Question Text "),h("p",null,[N(" The questions used in this quiz were written by Vivek Santayana, and are licensed under a "),h("a",{rel:"license noopener noreferrer",target:"_blank",class:"hover:bg-orange-200",href:"http://creativecommons.org/licenses/by-sa/4.0/"},"Creative Commons Attribution-ShareAlike 4.0 International License"),N(". ")]),h("div",{class:"flex"},[h("a",{class:"mx-auto w-fit",target:"_blank",rel:"license noopener noreferrer",href:"http://creativecommons.org/licenses/by-sa/4.0/"},[h("img",{src:"https://i.creativecommons.org/l/by-sa/4.0/88x31.png",alt:"Creative Commons Licence BY SA",class:"m-0 inline-block"})])])]),h("hr",{class:"border-gray-400 w-2/3 mx-auto"}),h("section",null,[h("h2",null," Source Code "),h("p",null,[N(" This quiz is an opensource project. The source code for this project, including "),h("a",{rel:"noopener noreferrer",target:"_blank",class:"hover:bg-orange-200",href:"https://git.vsnt.uk/viveksantayana/wanderhome-quiz"},"the quiz server and API"),N(" and the "),h("a",{rel:"noopener noreferrer",target:"_blank",class:"hover:bg-orange-200",href:"https://git.vsnt.uk/viveksantayana/wanderhome-quiz-client"},"the client app"),N(", are available under an MIT License at the respective GIT repositories. ")])])],-1);function pm(e,t,n,s,r,o){const i=S("Header"),a=S("Content"),l=S("TextFrame");return E(),ee(l,null,{default:L(()=>[$(i,null,{default:L(()=>[dm]),_:1}),$(a,null,{default:L(()=>[hm]),_:1})]),_:1})}const mm=ne(fm,[["render",pm]]),_m={name:"Acknowledgements",components:{Content:He,Header:Ne,TextFrame:Fe}},gm=N(" Acknowledgements "),vm=h("article",{class:"prose mx-auto"},[h("section",null,[h("p",{class:"text-leader mx-12"}," This one is for all my friends and \u2018incidental companions\u2019 alike whose paths criss-crossed with mine; "),h("p",{class:"text-leader mx-12"}," And all the wonderful people from my home town whom I ironically met only after leaving; "),h("p",{class:"text-leader mx-12"}," Especially you, 8Bit. ")]),h("section",null,[h("p",null," First and foremost, I am delighted that Jay Dragon and Possum Creek Games created such a magnificent work of art. I am also grateful for Jay\u2019s enthusiasm about this project. "),h("p",null," I would also like to thank 8bit for his inspiring enthusiasm: I would have arrived at this game a whole lot later if it weren\u2019t for his relentless shilling for it. "),h("p",null," And I am deeply grateful to my friends along the way: Claire Bath for being the first playtester of the quiz, and for impeccable design advice. There will be no doubt others to go to this list for helping me test this app. "),h("p",null," And not to mention, the innumerable developers with their tutorials and guides that helped me learn a new programming framework to make this. ")])],-1);function ym(e,t,n,s,r,o){const i=S("Header"),a=S("Content"),l=S("TextFrame");return E(),ee(l,null,{default:L(()=>[$(i,null,{default:L(()=>[gm]),_:1}),$(a,null,{default:L(()=>[vm]),_:1})]),_:1})}const bm=ne(_m,[["render",ym]]),wm={name:"Wanderhome",components:{Content:He,Header:Ne,TextFrame:Fe}},xm=N(" About "),Cm=h("em",null,"Wanderhome",-1),$m=h("article",{class:"prose mx-auto"},[h("section",null,[h("p",null,[h("em",{class:"uncial-antiqua"},"Wanderhome"),N(" is a pastoral fantasy table-top role-playing game by Jay Dragon, published by Possum Creek Games. Players play anthropomorphic animals who are travelling through a vast landscape, dotted with different features and locales. The game is very focussed on the turning of seasons, how different places live, and how journeys change us. It has a very distinct character, and certainly one of the most compelling and delightful games I have played recently. ")]),h("p",null," Despite how whimsical the premise may sound at first, the game is very much intent on exploring incredibly complex dilemmas and conflicts. Looming in the setting of H\xE6th is the spectre of a terrible war that has recently ended. It has left its scars. In the midst of this, the game does not have any combat: it is explicitly about healing and building a fragile peace. And it is hopeful. ")]),h("hr",{class:"border-gray-400 w-2/3 mx-auto"}),h("section",null,[h("h2",null," Where to Find a Copy "),h("p",null,[N(" You can buy the game from "),h("a",{href:"https://possumcreekgames.com/en-gb/products/wanderhome",target:"_blank",rel:"noopener noreferrer",class:"hover:bg-orange-200"},"Possum Creek Games\u2019 web site"),N(". Physical books have been re-stocked in a new print run at the time of writing, and you can also "),h("a",{href:"https://possumcreekgames.com/en-gb/products/wanderhome-pdf",target:"_blank",rel:"noopener noreferrer",class:"hover:bg-orange-200"},"buy a pdf"),N(". ")]),h("p",null,[N(" If you are one of my friends and would like to play "),h("em",{class:"uncial-antiqua"},"Wanderhome"),N(", let me know! ")])])],-1);function Sm(e,t,n,s,r,o){const i=S("Header"),a=S("Content"),l=S("TextFrame");return E(),ee(l,null,{default:L(()=>[$(i,null,{default:L(()=>[xm,Cm]),_:1}),$(a,null,{default:L(()=>[$m]),_:1})]),_:1})}const Em=ne(wm,[["render",Sm]]),Am={name:"MdiAccountQuestion",components:{SvgIcon:it},data(){return{path:cl}}};function Rm(e,t,n,s,r,o){const i=S("svg-icon");return E(),ee(i,{type:"mdi",path:r.path},null,8,["path"])}const km=ne(Am,[["render",Rm]]),Tm={name:"Home",components:{AccountQuestion:km,Content:He,Header:Ne,TextFrame:Fe},setup(){const e=Sn(),t=Ge();return{answersStore:e,resultsStore:t}},mounted(){this.answersStore.quizCurrent==null&&this.answersStore.$reset(),this.resultsStore.$reset()}},Pm=N(" home "),Im={class:"prose mx-auto"},Om=h("p",{class:"text-leader"}," The road ahead is long and meandering. But the journey shapes us as much as we shape it. ",-1),Lm=h("p",null,[h("em",{class:"uncial-antiqua"},"Wanderhome"),N(" by Jay Dragon, published by Possum Creek Games, is a pastoral fantasy table-top role-playing game about anthropomorphic animals journeying across a vast landscape, and what they discover about themselves and the world they inhabit along the way. ")],-1),Mm=h("p",null," This quiz will help determine what playbook, or character archetype, you are. You can take the quiz by clicking on the following link: ",-1),Hm={class:"w-fit mx-auto"},Nm={class:"inline-flex px-3 py-1 space-x-2 rounded-md bg-olive-800 text-white transition-all duration-300 ease-in-out hover:bg-olive-600"},Fm={class:"scale-75"},qm=h("span",{class:"uncial-antiqua"},"Take the Quiz",-1);function Bm(e,t,n,s,r,o){const i=S("Header"),a=S("AccountQuestion"),l=S("router-link"),c=S("Content"),u=S("TextFrame");return E(),ee(u,null,{default:L(()=>[$(i,null,{default:L(()=>[Pm]),_:1}),$(c,null,{default:L(()=>[h("article",Im,[Om,Lm,Mm,h("div",Hm,[$(l,{"active-class":"active-link",class:"navlink",to:"/quiz"},{default:L(()=>[h("div",Nm,[h("span",Fm,[$(a)]),qm])]),_:1})])])]),_:1})]),_:1})}const jm=ne(Tm,[["render",Bm]]);function Dm(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Il={exports:{}},vo={exports:{}},Ol=function(t,n){return function(){for(var r=new Array(arguments.length),o=0;o"u"}function Um(e){return e!==null&&!ws(e)&&e.constructor!==null&&!ws(e.constructor)&&typeof e.constructor.isBuffer=="function"&&e.constructor.isBuffer(e)}var Ll=Zt("ArrayBuffer");function zm(e){var t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Ll(e.buffer),t}function Wm(e){return typeof e=="string"}function Km(e){return typeof e=="number"}function Ml(e){return e!==null&&typeof e=="object"}function fs(e){if(bo(e)!=="object")return!1;var t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}var Qm=Zt("Date"),Jm=Zt("File"),Ym=Zt("Blob"),Zm=Zt("FileList");function xo(e){return yo.call(e)==="[object Function]"}function Gm(e){return Ml(e)&&xo(e.pipe)}function Xm(e){var t="[object FormData]";return e&&(typeof FormData=="function"&&e instanceof FormData||yo.call(e)===t||xo(e.toString)&&e.toString()===t)}var e1=Zt("URLSearchParams");function t1(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function n1(){return typeof navigator<"u"&&(navigator.product==="ReactNative"||navigator.product==="NativeScript"||navigator.product==="NS")?!1:typeof window<"u"&&typeof document<"u"}function Co(e,t){if(!(e===null||typeof e>"u"))if(typeof e!="object"&&(e=[e]),wo(e))for(var n=0,s=e.length;n0;)o=s[r],i[o]||(t[o]=e[o],i[o]=!0);e=Object.getPrototypeOf(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t}function a1(e,t,n){e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;var s=e.indexOf(t,n);return s!==-1&&s===n}function l1(e){if(!e)return null;var t=e.length;if(ws(t))return null;for(var n=new Array(t);t-- >0;)n[t]=e[t];return n}var c1=function(e){return function(t){return e&&t instanceof e}}(typeof Uint8Array<"u"&&Object.getPrototypeOf(Uint8Array)),Oe={isArray:wo,isArrayBuffer:Ll,isBuffer:Um,isFormData:Xm,isArrayBufferView:zm,isString:Wm,isNumber:Km,isObject:Ml,isPlainObject:fs,isUndefined:ws,isDate:Qm,isFile:Jm,isBlob:Ym,isFunction:xo,isStream:Gm,isURLSearchParams:e1,isStandardBrowserEnv:n1,forEach:Co,merge:Ur,extend:s1,trim:t1,stripBOM:r1,inherits:o1,toFlatObject:i1,kindOf:bo,kindOfTest:Zt,endsWith:a1,toArray:l1,isTypedArray:c1,isFileList:Zm},nn=Oe;function qi(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var Hl=function(t,n,s){if(!n)return t;var r;if(s)r=s(n);else if(nn.isURLSearchParams(n))r=n.toString();else{var o=[];nn.forEach(n,function(l,c){l===null||typeof l>"u"||(nn.isArray(l)?c=c+"[]":l=[l],nn.forEach(l,function(f){nn.isDate(f)?f=f.toISOString():nn.isObject(f)&&(f=JSON.stringify(f)),o.push(qi(c)+"="+qi(f))}))}),r=o.join("&")}if(r){var i=t.indexOf("#");i!==-1&&(t=t.slice(0,i)),t+=(t.indexOf("?")===-1?"?":"&")+r}return t},u1=Oe;function Vs(){this.handlers=[]}Vs.prototype.use=function(t,n,s){return this.handlers.push({fulfilled:t,rejected:n,synchronous:s?s.synchronous:!1,runWhen:s?s.runWhen:null}),this.handlers.length-1};Vs.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)};Vs.prototype.forEach=function(t){u1.forEach(this.handlers,function(s){s!==null&&t(s)})};var f1=Vs,d1=Oe,h1=function(t,n){d1.forEach(t,function(r,o){o!==n&&o.toUpperCase()===n.toUpperCase()&&(t[n]=r,delete t[o])})},Nl=Oe;function gn(e,t,n,s,r){Error.call(this),this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),s&&(this.request=s),r&&(this.response=r)}Nl.inherits(gn,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}}});var Fl=gn.prototype,ql={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED"].forEach(function(e){ql[e]={value:e}});Object.defineProperties(gn,ql);Object.defineProperty(Fl,"isAxiosError",{value:!0});gn.from=function(e,t,n,s,r,o){var i=Object.create(Fl);return Nl.toFlatObject(e,i,function(l){return l!==Error.prototype}),gn.call(i,e.message,t,n,s,r),i.name=e.name,o&&Object.assign(i,o),i};var En=gn,Bl={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},et=Oe;function p1(e,t){t=t||new FormData;var n=[];function s(o){return o===null?"":et.isDate(o)?o.toISOString():et.isArrayBuffer(o)||et.isTypedArray(o)?typeof Blob=="function"?new Blob([o]):Buffer.from(o):o}function r(o,i){if(et.isPlainObject(o)||et.isArray(o)){if(n.indexOf(o)!==-1)throw Error("Circular reference detected in "+i);n.push(o),et.forEach(o,function(l,c){if(!et.isUndefined(l)){var u=i?i+"."+c:c,f;if(l&&!i&&typeof l=="object"){if(et.endsWith(c,"{}"))l=JSON.stringify(l);else if(et.endsWith(c,"[]")&&(f=et.toArray(l))){f.forEach(function(d){!et.isUndefined(d)&&t.append(u,s(d))});return}}r(l,u)}}),n.pop()}else t.append(i,s(o))}return r(e),t}var jl=p1,ar,Bi;function m1(){if(Bi)return ar;Bi=1;var e=En;return ar=function(n,s,r){var o=r.config.validateStatus;!r.status||!o||o(r.status)?n(r):s(new e("Request failed with status code "+r.status,[e.ERR_BAD_REQUEST,e.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))},ar}var lr,ji;function _1(){if(ji)return lr;ji=1;var e=Oe;return lr=e.isStandardBrowserEnv()?function(){return{write:function(s,r,o,i,a,l){var c=[];c.push(s+"="+encodeURIComponent(r)),e.isNumber(o)&&c.push("expires="+new Date(o).toGMTString()),e.isString(i)&&c.push("path="+i),e.isString(a)&&c.push("domain="+a),l===!0&&c.push("secure"),document.cookie=c.join("; ")},read:function(s){var r=document.cookie.match(new RegExp("(^|;\\s*)("+s+")=([^;]*)"));return r?decodeURIComponent(r[3]):null},remove:function(s){this.write(s,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}(),lr}var g1=function(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)},v1=function(t,n){return n?t.replace(/\/+$/,"")+"/"+n.replace(/^\/+/,""):t},y1=g1,b1=v1,Dl=function(t,n){return t&&!y1(n)?b1(t,n):n},cr,Di;function w1(){if(Di)return cr;Di=1;var e=Oe,t=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];return cr=function(s){var r={},o,i,a;return s&&e.forEach(s.split(` -`),function(c){if(a=c.indexOf(":"),o=e.trim(c.substr(0,a)).toLowerCase(),i=e.trim(c.substr(a+1)),o){if(r[o]&&t.indexOf(o)>=0)return;o==="set-cookie"?r[o]=(r[o]?r[o]:[]).concat([i]):r[o]=r[o]?r[o]+", "+i:i}}),r},cr}var ur,Vi;function x1(){if(Vi)return ur;Vi=1;var e=Oe;return ur=e.isStandardBrowserEnv()?function(){var n=/(msie|trident)/i.test(navigator.userAgent),s=document.createElement("a"),r;function o(i){var a=i;return n&&(s.setAttribute("href",a),a=s.href),s.setAttribute("href",a),{href:s.href,protocol:s.protocol?s.protocol.replace(/:$/,""):"",host:s.host,search:s.search?s.search.replace(/^\?/,""):"",hash:s.hash?s.hash.replace(/^#/,""):"",hostname:s.hostname,port:s.port,pathname:s.pathname.charAt(0)==="/"?s.pathname:"/"+s.pathname}}return r=o(window.location.href),function(a){var l=e.isString(a)?o(a):a;return l.protocol===r.protocol&&l.host===r.host}}():function(){return function(){return!0}}(),ur}var fr,Ui;function Us(){if(Ui)return fr;Ui=1;var e=En,t=Oe;function n(s){e.call(this,s==null?"canceled":s,e.ERR_CANCELED),this.name="CanceledError"}return t.inherits(n,e,{__CANCEL__:!0}),fr=n,fr}var dr,zi;function C1(){return zi||(zi=1,dr=function(t){var n=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return n&&n[1]||""}),dr}var hr,Wi;function Ki(){if(Wi)return hr;Wi=1;var e=Oe,t=m1(),n=_1(),s=Hl,r=Dl,o=w1(),i=x1(),a=Bl,l=En,c=Us(),u=C1();return hr=function(d){return new Promise(function(v,x){var A=d.data,T=d.headers,j=d.responseType,K;function G(){d.cancelToken&&d.cancelToken.unsubscribe(K),d.signal&&d.signal.removeEventListener("abort",K)}e.isFormData(A)&&e.isStandardBrowserEnv()&&delete T["Content-Type"];var I=new XMLHttpRequest;if(d.auth){var _e=d.auth.username||"",X=d.auth.password?unescape(encodeURIComponent(d.auth.password)):"";T.Authorization="Basic "+btoa(_e+":"+X)}var F=r(d.baseURL,d.url);I.open(d.method.toUpperCase(),s(F,d.params,d.paramsSerializer),!0),I.timeout=d.timeout;function Y(){if(!!I){var M="getAllResponseHeaders"in I?o(I.getAllResponseHeaders()):null,re=!j||j==="text"||j==="json"?I.responseText:I.response,ce={data:re,status:I.status,statusText:I.statusText,headers:M,config:d,request:I};t(function(ge){v(ge),G()},function(ge){x(ge),G()},ce),I=null}}if("onloadend"in I?I.onloadend=Y:I.onreadystatechange=function(){!I||I.readyState!==4||I.status===0&&!(I.responseURL&&I.responseURL.indexOf("file:")===0)||setTimeout(Y)},I.onabort=function(){!I||(x(new l("Request aborted",l.ECONNABORTED,d,I)),I=null)},I.onerror=function(){x(new l("Network Error",l.ERR_NETWORK,d,I,I)),I=null},I.ontimeout=function(){var re=d.timeout?"timeout of "+d.timeout+"ms exceeded":"timeout exceeded",ce=d.transitional||a;d.timeoutErrorMessage&&(re=d.timeoutErrorMessage),x(new l(re,ce.clarifyTimeoutError?l.ETIMEDOUT:l.ECONNABORTED,d,I)),I=null},e.isStandardBrowserEnv()){var se=(d.withCredentials||i(F))&&d.xsrfCookieName?n.read(d.xsrfCookieName):void 0;se&&(T[d.xsrfHeaderName]=se)}"setRequestHeader"in I&&e.forEach(T,function(re,ce){typeof A>"u"&&ce.toLowerCase()==="content-type"?delete T[ce]:I.setRequestHeader(ce,re)}),e.isUndefined(d.withCredentials)||(I.withCredentials=!!d.withCredentials),j&&j!=="json"&&(I.responseType=d.responseType),typeof d.onDownloadProgress=="function"&&I.addEventListener("progress",d.onDownloadProgress),typeof d.onUploadProgress=="function"&&I.upload&&I.upload.addEventListener("progress",d.onUploadProgress),(d.cancelToken||d.signal)&&(K=function(M){!I||(x(!M||M&&M.type?new c:M),I.abort(),I=null)},d.cancelToken&&d.cancelToken.subscribe(K),d.signal&&(d.signal.aborted?K():d.signal.addEventListener("abort",K))),A||(A=null);var le=u(F);if(le&&["http","https","file"].indexOf(le)===-1){x(new l("Unsupported protocol "+le+":",l.ERR_BAD_REQUEST,d));return}I.send(A)})},hr}var pr,Qi;function $1(){return Qi||(Qi=1,pr=null),pr}var ke=Oe,Ji=h1,Yi=En,S1=Bl,E1=jl,A1={"Content-Type":"application/x-www-form-urlencoded"};function Zi(e,t){!ke.isUndefined(e)&&ke.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}function R1(){var e;return(typeof XMLHttpRequest<"u"||typeof process<"u"&&Object.prototype.toString.call(process)==="[object process]")&&(e=Ki()),e}function k1(e,t,n){if(ke.isString(e))try{return(t||JSON.parse)(e),ke.trim(e)}catch(s){if(s.name!=="SyntaxError")throw s}return(n||JSON.stringify)(e)}var zs={transitional:S1,adapter:R1(),transformRequest:[function(t,n){if(Ji(n,"Accept"),Ji(n,"Content-Type"),ke.isFormData(t)||ke.isArrayBuffer(t)||ke.isBuffer(t)||ke.isStream(t)||ke.isFile(t)||ke.isBlob(t))return t;if(ke.isArrayBufferView(t))return t.buffer;if(ke.isURLSearchParams(t))return Zi(n,"application/x-www-form-urlencoded;charset=utf-8"),t.toString();var s=ke.isObject(t),r=n&&n["Content-Type"],o;if((o=ke.isFileList(t))||s&&r==="multipart/form-data"){var i=this.env&&this.env.FormData;return E1(o?{"files[]":t}:t,i&&new i)}else if(s||r==="application/json")return Zi(n,"application/json"),k1(t);return t}],transformResponse:[function(t){var n=this.transitional||zs.transitional,s=n&&n.silentJSONParsing,r=n&&n.forcedJSONParsing,o=!s&&this.responseType==="json";if(o||r&&ke.isString(t)&&t.length)try{return JSON.parse(t)}catch(i){if(o)throw i.name==="SyntaxError"?Yi.from(i,Yi.ERR_BAD_RESPONSE,this,null,this.response):i}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:$1()},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};ke.forEach(["delete","get","head"],function(t){zs.headers[t]={}});ke.forEach(["post","put","patch"],function(t){zs.headers[t]=ke.merge(A1)});var $o=zs,T1=Oe,P1=$o,I1=function(t,n,s){var r=this||P1;return T1.forEach(s,function(i){t=i.call(r,t,n)}),t},mr,Gi;function Vl(){return Gi||(Gi=1,mr=function(t){return!!(t&&t.__CANCEL__)}),mr}var Xi=Oe,_r=I1,O1=Vl(),L1=$o,M1=Us();function gr(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new M1}var H1=function(t){gr(t),t.headers=t.headers||{},t.data=_r.call(t,t.data,t.headers,t.transformRequest),t.headers=Xi.merge(t.headers.common||{},t.headers[t.method]||{},t.headers),Xi.forEach(["delete","get","head","post","put","patch","common"],function(r){delete t.headers[r]});var n=t.adapter||L1.adapter;return n(t).then(function(r){return gr(t),r.data=_r.call(t,r.data,r.headers,t.transformResponse),r},function(r){return O1(r)||(gr(t),r&&r.response&&(r.response.data=_r.call(t,r.response.data,r.response.headers,t.transformResponse))),Promise.reject(r)})},Ve=Oe,Ul=function(t,n){n=n||{};var s={};function r(u,f){return Ve.isPlainObject(u)&&Ve.isPlainObject(f)?Ve.merge(u,f):Ve.isPlainObject(f)?Ve.merge({},f):Ve.isArray(f)?f.slice():f}function o(u){if(Ve.isUndefined(n[u])){if(!Ve.isUndefined(t[u]))return r(void 0,t[u])}else return r(t[u],n[u])}function i(u){if(!Ve.isUndefined(n[u]))return r(void 0,n[u])}function a(u){if(Ve.isUndefined(n[u])){if(!Ve.isUndefined(t[u]))return r(void 0,t[u])}else return r(void 0,n[u])}function l(u){if(u in n)return r(t[u],n[u]);if(u in t)return r(void 0,t[u])}var c={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:l};return Ve.forEach(Object.keys(t).concat(Object.keys(n)),function(f){var d=c[f]||o,_=d(f);Ve.isUndefined(_)&&d!==l||(s[f]=_)}),s},vr,ea;function zl(){return ea||(ea=1,vr={version:"0.27.2"}),vr}var N1=zl().version,It=En,So={};["object","boolean","number","function","string","symbol"].forEach(function(e,t){So[e]=function(s){return typeof s===e||"a"+(t<1?"n ":" ")+e}});var ta={};So.transitional=function(t,n,s){function r(o,i){return"[Axios v"+N1+"] Transitional option '"+o+"'"+i+(s?". "+s:"")}return function(o,i,a){if(t===!1)throw new It(r(i," has been removed"+(n?" in "+n:"")),It.ERR_DEPRECATED);return n&&!ta[i]&&(ta[i]=!0,console.warn(r(i," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(o,i,a):!0}};function F1(e,t,n){if(typeof e!="object")throw new It("options must be an object",It.ERR_BAD_OPTION_VALUE);for(var s=Object.keys(e),r=s.length;r-- >0;){var o=s[r],i=t[o];if(i){var a=e[o],l=a===void 0||i(a,o,e);if(l!==!0)throw new It("option "+o+" must be "+l,It.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new It("Unknown option "+o,It.ERR_BAD_OPTION)}}var q1={assertOptions:F1,validators:So},Wl=Oe,B1=Hl,na=f1,sa=H1,Ws=Ul,j1=Dl,Kl=q1,sn=Kl.validators;function vn(e){this.defaults=e,this.interceptors={request:new na,response:new na}}vn.prototype.request=function(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Ws(this.defaults,n),n.method?n.method=n.method.toLowerCase():this.defaults.method?n.method=this.defaults.method.toLowerCase():n.method="get";var s=n.transitional;s!==void 0&&Kl.assertOptions(s,{silentJSONParsing:sn.transitional(sn.boolean),forcedJSONParsing:sn.transitional(sn.boolean),clarifyTimeoutError:sn.transitional(sn.boolean)},!1);var r=[],o=!0;this.interceptors.request.forEach(function(_){typeof _.runWhen=="function"&&_.runWhen(n)===!1||(o=o&&_.synchronous,r.unshift(_.fulfilled,_.rejected))});var i=[];this.interceptors.response.forEach(function(_){i.push(_.fulfilled,_.rejected)});var a;if(!o){var l=[sa,void 0];for(Array.prototype.unshift.apply(l,r),l=l.concat(i),a=Promise.resolve(n);l.length;)a=a.then(l.shift(),l.shift());return a}for(var c=n;r.length;){var u=r.shift(),f=r.shift();try{c=u(c)}catch(d){f(d);break}}try{a=sa(c)}catch(d){return Promise.reject(d)}for(;i.length;)a=a.then(i.shift(),i.shift());return a};vn.prototype.getUri=function(t){t=Ws(this.defaults,t);var n=j1(t.baseURL,t.url);return B1(n,t.params,t.paramsSerializer)};Wl.forEach(["delete","get","head","options"],function(t){vn.prototype[t]=function(n,s){return this.request(Ws(s||{},{method:t,url:n,data:(s||{}).data}))}});Wl.forEach(["post","put","patch"],function(t){function n(s){return function(o,i,a){return this.request(Ws(a||{},{method:t,headers:s?{"Content-Type":"multipart/form-data"}:{},url:o,data:i}))}}vn.prototype[t]=n(),vn.prototype[t+"Form"]=n(!0)});var D1=vn,yr,ra;function V1(){if(ra)return yr;ra=1;var e=Us();function t(n){if(typeof n!="function")throw new TypeError("executor must be a function.");var s;this.promise=new Promise(function(i){s=i});var r=this;this.promise.then(function(o){if(!!r._listeners){var i,a=r._listeners.length;for(i=0;i({questions:[]}),actions:{storeQuestions(e){this.questions=[...e]},nextQuestion(){this.currentQuestion++},previousQuestion(){this.currentQuestion--}}}),J1={setup(){const e=Ks(),t=Sn(),n=Ge();return{questionStore:e,answersStore:t,resultsStore:n}},name:"QuestionIndex",created(){this.questionStore.questions.length==0&&this.getQuestions()},mounted(){this.answersStore.quizCurrent!==null?this.$router.push(`/quiz/question/${this.answersStore.quizCurrent}`):this.answersStore.$reset(),this.resultsStore.$reset()},methods:{getQuestions(){Ft.get(`${qt.SERVER}api/questions/`).then(e=>{console.log("Fetched questions from server."),this.questionStore.storeQuestions(e.data)}).catch(e=>{console.log(e),this.$router.push("/err_refused")})}}};function Y1(e,t,n,s,r,o){const i=S("router-view");return E(),W("div",null,[$(i,{class:"w-full",ref:"panel",appear:""},{default:L(({Component:a,route:l})=>[$($t,{mode:"out-in","enter-active-class":"transition-all duration-300 origin-center ease-in","enter-from-class":"transform opacity-0 md:scale-95","leave-active-class":"transition-all duration-300 origin-center ease-out","leave-to-class":"transform opacity-0 md:scale-95"},{default:L(()=>[(E(),ee(es(a),{key:l.path}))]),_:2},1024)]),_:1},512)])}const Z1=ne(J1,[["render",Y1]]),G1={name:"mdiRoadVariant",components:{SvgIcon:it},data(){return{path:Qf}}};function X1(e,t,n,s,r,o){const i=S("svg-icon");return E(),ee(i,{type:"mdi",path:r.path},null,8,["path"])}const e_=ne(G1,[["render",X1]]),t_={name:"QuizConsole",components:{Content:He,Header:Ne,RoadVariant:e_,TextFrame:Fe}},n_=N(" Take the Quiz "),s_={class:"prose mx-auto"},r_=h("h2",{class:"uncial-antiqua",key:"welcome-0"}," Gather your Things ",-1),o_=h("p",{class:"text-leader",key:"welcome-1"}," We are about to embark upon a journey. ",-1),i_=h("p",{class:"text-leader",key:"welcome-2"}," In a minute, I will ask you a series of multiple choice questions. For most of them, you will need to select the one answer. Some questions will need multiple answers. Don\u2019t over-think them! ",-1),a_=h("p",{class:"text-leader",key:"welcome-3"},[h("em",{class:"uncial-antiqua"},"Wanderhome"),N(" is about going wherever the road takes you, and reflecting on how the journey changes us. The road is full of myriad travellers, each with their rich lives and stories. This quiz will help you figure out what kinds of stories you will bring to the table. ")],-1),l_=h("p",{class:"text-leader",key:"welcome-4"}," Will you join me? ",-1),c_={class:"w-fit mx-auto",key:"welcome-5"},u_={class:"inline-flex px-3 py-1 space-x-2 rounded-md bg-olive-800 text-white transition-all duration-300 ease-in-out hover:bg-olive-600"},f_={class:"scale-75"},d_=h("span",{class:"uncial-antiqua"},"Let\u2019s Go",-1);function h_(e,t,n,s,r,o){const i=S("Header"),a=S("RoadVariant"),l=S("router-link"),c=S("Content"),u=S("TextFrame");return E(),ee(u,null,{default:L(()=>[$(i,null,{default:L(()=>[n_]),_:1}),$(c,null,{default:L(()=>[h("article",s_,[r_,o_,i_,a_,l_,h("div",c_,[$(l,{"active-class":"active-link",class:"navlink",to:"/quiz/question/0"},{default:L(()=>[h("div",u_,[h("span",f_,[$(a)]),d_])]),_:1})])])]),_:1})]),_:1})}const p_=ne(t_,[["render",h_]]),m_={name:"mdiArrowLeftBold",components:{SvgIcon:it},data(){return{path:Mf}}};function __(e,t,n,s,r,o){const i=S("svg-icon");return E(),ee(i,{type:"mdi",path:r.path},null,8,["path"])}const Jl=ne(m_,[["render",__]]),g_={name:"mdiArrowRightBold",components:{SvgIcon:it},data(){return{path:Hf}}};function v_(e,t,n,s,r,o){const i=S("svg-icon");return E(),ee(i,{type:"mdi",path:r.path},null,8,["path"])}const Yl=ne(g_,[["render",v_]]),y_={name:"MdiHome",components:{SvgIcon:it},data(){return{path:Vf}}};function b_(e,t,n,s,r,o){const i=S("svg-icon");return E(),ee(i,{type:"mdi",path:r.path},null,8,["path"])}const w_=ne(y_,[["render",b_]]);const x_={setup(){const e=Ks(),t=Sn(),n=Ge();return{questionStore:e,answersStore:t,resultsStore:n}},components:{ArrowLeftBold:Jl,ArrowRightBold:Yl,Content:He,FleurDeLis:w_,Header:Ne,TextFrame:Fe},created(){this.answersStore.makeArray(this.id,this.questionStore.questions[this.id].select)},mounted(){this.answersStore.quizCurrent=this.id,this.$watch(()=>this.$route.params,(e,t)=>{this.$route.name=="Question"&&(e.id>=this.questionStore.questions.length||this.id<0?this.$router.push("/err_notfound"):this.answersStore.quizCurrent=e.id)}),this.$watch(()=>this.questionStore.questions,e=>{this.id>=this.questionStore.questions.length||this.id<0?this.$router.push("/err_notfound"):this.answersStore.makeArray(this.id,this.questionStore.questions[this.id].select)})},methods:{submitAnswers(){const e=JSON.stringify(this.answersStore.answers);Ft.post(`${qt.SERVER}api/submit/`,e,{headers:{"Content-Type":"application/json"}}).then(t=>{console.log("Submitted answers."),this.resultsStore.store("results",t.data),console.log("Results fetched from the server."),this.answersStore.quizCurrent=null,this.$router.push("/results")}).catch(t=>{console.log(t),this.$router.push("/err_refused")})}},props:{id:{type:Number,required:!0}}},ts=e=>(ro("data-v-bd26bf63"),e=e(),oo(),e),C_=N(" Take the Quiz "),$_={key:0},S_={class:"prose"},E_=["innerHTML"],A_=["aria-multiselectable"],R_=["type","id","value","disabled"],k_=["for"],T_=["innerHTML","aria-label","title"],P_={class:"w-full flex mx-auto items-center justify-between max-w-sm"},I_={class:"inline-flex h-full px-3 py-1 space-x-1 rounded-md bg-olive-800 text-white items-center transition-all duration-300 ease-in-out hover:bg-olive-600",title:"Back"},O_={class:"scale-100"},L_=ts(()=>h("span",{class:"uncial-antiqua"},"Back",-1)),M_={key:1,class:"inline-flex h-full px-3 py-1 space-x-1 rounded-md bg-olive-800 opacity-50 text-white items-center hover:cursor-not-allowed"},H_={class:"scale-100"},N_=ts(()=>h("span",{class:"uncial-antiqua"},"Back",-1)),F_={class:"inline-flex h-full px-3 py-1 space-x-1 rounded-md bg-olive-800 text-white items-center transition-all duration-300 ease-in-out hover:bg-olive-600",title:"Next"},q_=ts(()=>h("span",{class:"uncial-antiqua"},"Next",-1)),B_={class:"scale-100"},j_={key:3,class:"inline-flex h-full px-3 py-1 space-x-1 rounded-md bg-olive-800 opacity-50 text-white items-center hover:cursor-not-allowed"},D_=ts(()=>h("span",{class:"uncial-antiqua"},"Next",-1)),V_={class:"scale-100"},U_={class:"mx-auto my-8 w-fit transition-all"},z_={class:"inline-flex px-3 py-1 space-x-2 rounded-md bg-olive-800 text-white transition-all duration-300 ease-in-out hover:bg-olive-600"},W_={class:"scale-75"},K_=ts(()=>h("span",{class:"uncial-antiqua"},"Submit Answers",-1)),Q_={class:"scale-75"},J_={key:1};function Y_(e,t,n,s,r,o){const i=S("Header"),a=S("ArrowLeftBold"),l=S("router-link"),c=S("ArrowRightBold"),u=S("FleurDeLis"),f=S("Content"),d=S("TextFrame");return E(),ee(d,null,{default:L(()=>[$(i,null,{default:L(()=>[C_]),_:1}),$(f,null,{default:L(()=>[s.questionStore.questions[this.id]?(E(),W("div",$_,[h("article",S_,[h("h3",null,"Question "+we(this.id+1),1),h("div",{innerHTML:s.questionStore.questions[this.id].question},null,8,E_)]),h("div",{class:"grid grid-cols-1 content-evenly items-center gap-2 justify-center my-12 mx-auto md:grid-cols-2 lg:grid-cols-3","aria-multiselectable":s.questionStore.questions[this.id].select>1},[(E(!0),W(xe,null,mt(s.questionStore.questions[this.id].answers,(_,v)=>(E(),W("div",{key:`q${this.id}-o${v}`,class:"inline-flex"},[Vo((E(),W("input",{type:this.questionStore.questions[this.id].select>1?"checkbox":"radio",class:"checkbox",id:`q${this.id}-o${v}`,value:v,key:`q${this.id}-o${v}`,"onUpdate:modelValue":t[0]||(t[0]=x=>s.answersStore.answers[this.id]=x),disabled:this.questionStore.questions[this.id].select>1&&this.answersStore.answers[this.id].length==this.questionStore.questions[this.id].select&&!this.answersStore.answers[this.id].includes(v)},null,8,R_)),[[Cf,s.answersStore.answers[this.id]]]),h("label",{for:`q${this.id}-o${v}`},[h("div",{innerHTML:_,class:"w-full h-full p-2 select-none transition-all duration-100 ease-in-out hover:bg-lime-200 hover:text-orange-600 hover:cursor-pointer","aria-label":_,title:_},null,8,T_)],8,k_)]))),128))],8,A_),h("div",P_,[this.id>0?(E(),ee(l,{key:0,to:`/quiz/question/${this.id-1}`},{default:L(()=>[h("div",I_,[h("span",O_,[$(a)]),L_])]),_:1},8,["to"])):(E(),W("div",M_,[h("span",H_,[$(a)]),N_])),this.id[h("div",F_,[q_,h("span",B_,[$(c)])])]),_:1},8,["to"])):(E(),W("div",j_,[D_,h("span",V_,[$(c)])]))]),$($t,{"enter-active-class":"transition-all duration-300 origin-center ease-in","enter-from-class":"transform opacity-0 md:scale-95","leave-active-class":"transition-all duration-300 origin-center ease-out","leave-to-class":"transform opacity-0 md:scale-95"},{default:L(()=>[Vo(h("div",U_,[h("button",{onClick:t[1]||(t[1]=_=>this.submitAnswers())},[h("div",z_,[h("span",W_,[$(u)]),K_,h("span",Q_,[$(u)])])])],512),[[Sf,this.id==this.questionStore.questions.length-1&&this.answersStore.isAnswered(this.id)]])]),_:1})])):(E(),W("div",J_," Loading "))]),_:1})]),_:1})}const Z_=ne(x_,[["render",Y_],["__scopeId","data-v-bd26bf63"]]),G_={name:"NotFound",components:{Content:He,Header:Ne,TextFrame:Fe}},X_=N(" Error: Not Found "),eg=h("article",{class:"prose mx-auto"},[h("p",{class:"text-leader"}," Uh-oh. "),h("p",null," Sometimes we can get lost along the path. "),h("p",null," But it\u2019s okay. Just retrace your steps and you will find your way back again. ")],-1);function tg(e,t,n,s,r,o){const i=S("Header"),a=S("Content"),l=S("TextFrame");return E(),ee(l,null,{default:L(()=>[$(i,null,{default:L(()=>[X_]),_:1}),$(a,null,{default:L(()=>[eg]),_:1})]),_:1})}const ng=ne(G_,[["render",tg]]),sg={name:"Refused",components:{Content:He,Header:Ne,TextFrame:Fe}},rg=N(" Error: Connection Refused "),og=h("article",{class:"prose mx-auto"},[h("p",{class:"text-leader"}," The client is unable to connect to the server. That\u2019s okay. Sometimes, we run into obstacles along the way. And we just need to try again after a while. ")],-1);function ig(e,t,n,s,r,o){const i=S("Header"),a=S("Content"),l=S("TextFrame");return E(),ee(l,null,{default:L(()=>[$(i,null,{default:L(()=>[rg]),_:1}),$(a,null,{default:L(()=>[og]),_:1})]),_:1})}const ag=ne(sg,[["render",ig]]),lg={setup(){return{resultsStore:Ge()}},name:"ResultsIndex",components:{Sidebar:Pl},created(){this.resultsStore.results.playbooks.length>1?this.$router.options.routes[3].children[0].meta.title="Your Results":this.$router.options.routes[3].children[0].meta.title="Your Result"}},cg={class:"flex flex-col space-y-3 md:flex-row md:space-x-6 md:space-y-0"},ug={class:"flex flex-col w-full md:w-1/3 h-fit"},fg=N(" Results "),dg={class:"flex w-full md:w-2/3"};function hg(e,t,n,s,r,o){const i=S("Sidebar"),a=S("router-view");return E(),W("div",null,[h("div",cg,[h("div",ug,[$(i,{prefix:e.$router.options.routes[3].path,routes:e.$router.options.routes[3].children},{header:L(()=>[fg]),_:1},8,["prefix","routes"])]),h("div",dg,[$(a,{class:"w-full",ref:"panel",appear:""},{default:L(({Component:l,route:c})=>[$($t,{mode:"out-in","enter-active-class":c.meta.panelEnterActiveClass,"enter-from-class":c.meta.panelEnterFromClass,"leave-active-class":c.meta.panelLeaveActiveClass,"leave-to-class":c.meta.panelLeaveToClass},{default:L(()=>[(E(),ee(es(l)))]),_:2},1032,["enter-active-class","enter-from-class","leave-active-class","leave-to-class"])]),_:1},512)])])])}const pg=ne(lg,[["render",hg]]),mg={setup(){return{resultsStore:Ge()}},name:"Results",components:{Content:He,Header:Ne,TextFrame:Fe},methods:{renderAnimals(e){for(var t="",n=e.length,s=0;s[$(i,null,{default:L(()=>[this.resultsStore.results.playbooks.length>1?(E(),W("span",_g,"Your Results")):(E(),W("span",gg,"Your Result"))]),_:1}),$(a,null,{default:L(()=>[h("article",vg,[(E(!0),W(xe,null,mt(this.resultsStore.results.playbooks,(c,u)=>(E(),W("section",{key:Object.keys(c)[0],class:ht(u(E(),W("li",{class:"my-0 py-0 mx-3",key:Object.keys(c)[0]+d,innerHTML:f},null,8,Pg))),128))])],2))),128))])]),_:1})]),_:1})}const Og=ne(mg,[["render",Ig]]),Lg={setup(){return{resultsStore:Ge()}},name:"Scores",components:{Content:He,Header:Ne,TextFrame:Fe}},Mg=N(" Your Scores "),Hg=h("p",{class:"text-leader"}," While the playbook you are is the one most reflected by your answers, here are the other playbooks and the extent to which they have a bearing upon your journey. ",-1),Ng={class:"table-auto w-full max-w-sm mx-auto text-left"},Fg=h("thead",{class:"text-xs text-gray-700 uppercase bg-lime-100"},[h("tr",null,[h("th",{class:"pl-10"}," Playbook "),h("th",null," Score (%) ")])],-1),qg={scope:"col",class:"py-1 pl-10 capitalize"},Bg={scope:"col",class:"py-1"};function jg(e,t,n,s,r,o){const i=S("Header"),a=S("Content"),l=S("TextFrame");return E(),ee(l,null,{default:L(()=>[$(i,null,{default:L(()=>[Mg]),_:1}),$(a,null,{default:L(()=>[Hg,h("table",Ng,[Fg,h("tbody",null,[(E(!0),W(xe,null,mt(this.resultsStore.results.all_playbooks,(c,u,f)=>(E(),W("tr",{key:u,class:ht(["hover:bg-yellow-50",f%2==0?"bg-lime-50 border-b":"bg-lime-100 border-b"])},[h("td",qg," The "+we(u),1),h("td",Bg,we(Math.round(100*c/this.resultsStore.results.max_score)),1)],2))),128))])])]),_:1})]),_:1})}const Dg=ne(Lg,[["render",jg]]),Vg={setup(){const e=Ks(),t=Sn(),n=Ge();return{questionStore:e,answersStore:t,resultsStore:n}},name:"CompareAnswersIndex",mounted(){this.getAnswers()},methods:{getAnswers(){this.error=this.questions=null,this.loading=!0,Ft.get(`${qt.SERVER}api/answers/`).then(e=>{console.log("Fetched answer stats from the server."),this.resultsStore.store("answers",e.data)}).catch(e=>{console.log(e),this.$router.push("/err_refused")}),Ft.get(`${qt.SERVER}api/count/`).then(e=>{console.log("Fetched user count from the server."),this.resultsStore.store("count",e.data)}).catch(e=>{console.log(e),this.$router.push("/err_refused")})}}};function Ug(e,t,n,s,r,o){const i=S("router-view");return E(),W("div",null,[$(i,{class:"w-full",ref:"panel",appear:""},{default:L(({Component:a,route:l})=>[$($t,{mode:"out-in","enter-active-class":"transition-all duration-300 origin-center ease-in","enter-from-class":"transform opacity-0 md:scale-95","leave-active-class":"transition-all duration-300 origin-center ease-out","leave-to-class":"transform opacity-0 md:scale-95"},{default:L(()=>[(E(),ee(es(a),{key:l.path}))]),_:2},1024)]),_:1},512)])}const zg=ne(Vg,[["render",Ug]]),Wg={name:"mdiChefronDoubleRight",components:{SvgIcon:it},data(){return{path:Ff}}};function Kg(e,t,n,s,r,o){const i=S("svg-icon");return E(),ee(i,{type:"mdi",path:r.path},null,8,["path"])}const Zl=ne(Wg,[["render",Kg]]),Qg={setup(){return{resultsStore:Ge()}},mounted(){this.getScores()},name:"Statistics",components:{ChevronDoubleRight:Zl,Content:He,Header:Ne,TextFrame:Fe},methods:{getScores(){Ft.get(`${qt.SERVER}api/scores/`).then(e=>{console.log("Fetched score stats from the server."),this.resultsStore.store("scores",e.data)}).catch(e=>{console.log(e),this.$router.push("/err_refused")}),Ft.get(`${qt.SERVER}api/count/`).then(e=>{console.log("Fetched user count from the server."),this.resultsStore.store("count",e.data)}).catch(e=>{console.log(e),this.$router.push("/err_refused")})}}},Jg=N(" Statistics "),Yg=h("p",{class:"text-leader"}," Sometimes, it can help to have some additional insight into the likelihood of meeting different people. Or, indeed, it can provide insight into how the questions we ask of each other bias the way we perceive the world. ",-1),Zg={class:"table-auto w-full mx-auto max-w-lg text-left"},Gg=h("thead",{class:"text-xs text-gray-700 uppercase bg-lime-100"},[h("tr",null,[h("th"),h("th",null," Playbook "),h("th",null," Your Score (%) "),h("th",null," Mean "),h("th",null," Median "),h("th",{class:"lowercase underline",title:"Standard Deviation"}," \u03C3* ")])],-1),Xg={key:0},ev={key:1},tv={scope:"col",class:"py-1 capitalize"},nv={scope:"col",class:"py-1"},sv={scope:"col",class:"py-1"},rv={colspan:"6",class:"text-center text-lg text-gray-600"};function ov(e,t,n,s,r,o){const i=S("Header"),a=S("ChevronDoubleRight"),l=S("Content"),c=S("TextFrame");return E(),ee(c,null,{default:L(()=>[$(i,null,{default:L(()=>[Jg]),_:1}),$(l,null,{default:L(()=>[Yg,h("table",Zg,[Gg,h("tbody",null,[(E(!0),W(xe,null,mt(this.resultsStore.scores,(u,f,d)=>(E(),W("tr",{key:f,class:ht(["hover:bg-yellow-50",d%2==0?"bg-lime-50 border-b":"bg-lime-100 border-b"])},[this.resultsStore.results.playbooks.some(_=>_.hasOwnProperty(f))?(E(),W("td",Xg,[$(a)])):(E(),W("td",ev)),h("td",tv," The "+we(f),1),h("td",null,we(Math.round(100*this.resultsStore.results.all_playbooks[f]/this.resultsStore.results.max_score)),1),h("td",nv,we(Math.round(u.mean*100)/100),1),h("td",sv,we(Math.round(u.median*100)/100),1),h("td",null,we(Math.round(u.standard_deviation*100)/100),1)],2))),128)),h("tr",null,[h("td",rv,"From "+we(this.resultsStore.count)+" users",1)])])])]),_:1})]),_:1})}const iv=ne(Qg,[["render",ov]]),av={setup(){return{resultsStore:Ge()}},mounted(){this.getResults()},name:"CompareResults",components:{ChevronDoubleRight:Zl,Content:He,Header:Ne,TextFrame:Fe},methods:{getResults(){Ft.get(`${qt.SERVER}api/playbooks/`).then(e=>{console.log("Fetched playbook stats from the server."),this.resultsStore.store("playbooks",e.data)}).catch(e=>{console.log(e),this.$router.push("/err_refused")}),Ft.get(`${qt.SERVER}api/count/`).then(e=>{console.log("Fetched user count from the server."),this.resultsStore.store("count",e.data)}).catch(e=>{console.log(e),this.$router.push("/err_refused")})}}},lv=N(" Compare Results "),cv=h("p",{class:"text-leader"}," Based on others who have taken this quiz, here are the playbooks of fellow travellers you are likely to meet along the way. ",-1),uv={class:"table-auto w-full max-w-sm mx-auto text-left"},fv=h("thead",{class:"text-xs text-gray-700 uppercase bg-lime-100"},[h("tr",null,[h("th"),h("th",null," Playbook "),h("th",null," Number "),h("th",null," Percentage ")])],-1),dv={key:0},hv={key:1},pv={scope:"col",class:"py-1 capitalize"},mv={scope:"col",class:"py-1"},_v={scope:"col",class:"py-1"},gv={colspan:"4",class:"text-center text-lg text-gray-600"};function vv(e,t,n,s,r,o){const i=S("Header"),a=S("ChevronDoubleRight"),l=S("Content"),c=S("TextFrame");return E(),ee(c,null,{default:L(()=>[$(i,null,{default:L(()=>[lv]),_:1}),$(l,null,{default:L(()=>[cv,h("table",uv,[fv,h("tbody",null,[(E(!0),W(xe,null,mt(this.resultsStore.playbooks,(u,f,d)=>(E(),W("tr",{key:f,class:ht(["hover:bg-yellow-50",d%2==0?"bg-lime-50 border-b":"bg-lime-100 border-b"])},[this.resultsStore.results.playbooks.some(_=>_.hasOwnProperty(f))?(E(),W("td",dv,[$(a)])):(E(),W("td",hv)),h("td",pv," The "+we(f),1),h("td",mv,we(u),1),h("td",_v,we(Math.round(100*u/this.resultsStore.count))+" % ",1)],2))),128)),h("tr",null,[h("td",gv,"Out of "+we(this.resultsStore.count)+" users",1)])])])]),_:1})]),_:1})}const yv=ne(av,[["render",vv]]);const bv={name:"CompareQuestion",components:{ArrowLeftBold:Jl,ArrowRightBold:Yl,Content:He,Header:Ne,TextFrame:Fe},setup(){const e=Ks(),t=Sn(),n=Ge();return{questionStore:e,answersStore:t,resultsStore:n}},methods:{optionSelected(e,t){return Array.isArray(this.answersStore.answers[e])?this.answersStore.answers[e].includes(t):this.answersStore.answers[e]==t}},mounted(){this.resultsStore.compareCurrent=this.id,this.$watch(()=>this.$route.params,(e,t)=>{this.$route.name=="CompareQuestion"&&(e.id>=this.questionStore.questions.length||this.id<0?this.$router.push("/err_notfound"):this.resultsStore.compareCurrent=e.id)})},props:{id:{type:Number,required:!0}}},Qs=e=>(ro("data-v-3d4d2326"),e=e(),oo(),e),wv=N(" Compare Answers "),xv={key:0},Cv={class:"prose"},$v=["innerHTML"],Sv={class:"grid grid-cols-1 content-evenly items-center gap-2 justify-between mt-12 mx-auto lg:grid-cols-2"},Ev=["innerHTML","aria-label","title"],Av={class:"flex p-2 w-fit items-center",style:{"white-space":"nowrap"}},Rv={class:"text-center mt-6 mb-12 text-lg text-gray-600"},kv={class:"w-full flex mx-auto items-center justify-between max-w-sm"},Tv={class:"inline-flex h-full px-3 py-1 space-x-1 rounded-md bg-olive-800 text-white items-center transition-all duration-300 ease-in-out hover:bg-olive-600",title:"Back"},Pv={class:"scale-100"},Iv=Qs(()=>h("span",{class:"uncial-antiqua"},"Back",-1)),Ov={key:1,class:"inline-flex h-full px-3 py-1 space-x-1 rounded-md bg-olive-800 opacity-50 text-white items-center hover:cursor-not-allowed"},Lv={class:"scale-100"},Mv=Qs(()=>h("span",{class:"uncial-antiqua"},"Back",-1)),Hv={class:"inline-flex h-full px-3 py-1 space-x-1 rounded-md bg-olive-800 text-white items-center transition-all duration-300 ease-in-out hover:bg-olive-600",title:"Next"},Nv=Qs(()=>h("span",{class:"uncial-antiqua"},"Next",-1)),Fv={class:"scale-100"},qv={key:3,class:"inline-flex h-full px-3 py-1 space-x-1 rounded-md bg-olive-800 opacity-50 text-white items-center hover:cursor-not-allowed"},Bv=Qs(()=>h("span",{class:"uncial-antiqua"},"Next",-1)),jv={class:"scale-100"},Dv={key:1};function Vv(e,t,n,s,r,o){const i=S("Header"),a=S("ArrowLeftBold"),l=S("router-link"),c=S("ArrowRightBold"),u=S("Content"),f=S("TextFrame");return E(),ee(f,null,{default:L(()=>[$(i,null,{default:L(()=>[wv]),_:1}),$(u,null,{default:L(()=>[s.questionStore.questions[this.id]&&s.answersStore.answers[this.id]!=null&&s.resultsStore.answers[this.id]?(E(),W("div",xv,[h("article",Cv,[h("h3",null,"Question "+we(this.id+1),1),h("div",{innerHTML:s.questionStore.questions[this.id].question},null,8,$v)]),h("div",Sv,[(E(!0),W(xe,null,mt(s.questionStore.questions[this.id].answers,(d,_)=>(E(),W("div",{key:`q${this.id}-o${_}`,class:"inline-flex justify-between rounded-md bg-lime-200",style:Gn(`background: linear-gradient(to right, rgb(217 249 157) ${100*this.resultsStore.answers[this.id][_]/this.resultsStore.count}%, transparent ${100*this.resultsStore.answers[this.id][_]/this.resultsStore.count+3}%)`)},[h("div",{innerHTML:d,class:ht(["flex h-full p-2 select-none transition-all duration-100 ease-in-out",o.optionSelected(this.id,_)?"option-selected":""]),"aria-label":d,title:d},null,10,Ev),h("div",Av,we(Math.round(100*this.resultsStore.answers[this.id][_]/this.resultsStore.count))+" %",1)],4))),128))]),h("div",Rv," From "+we(this.resultsStore.count)+" users. ",1),h("div",kv,[this.id>0?(E(),ee(l,{key:0,to:`/results/answers/${this.id-1}`},{default:L(()=>[h("div",Tv,[h("span",Pv,[$(a)]),Iv])]),_:1},8,["to"])):(E(),W("div",Ov,[h("span",Lv,[$(a)]),Mv])),this.id[h("div",Hv,[Nv,h("span",Fv,[$(c)])])]),_:1},8,["to"])):(E(),W("div",qv,[Bv,h("span",jv,[$(c)])]))])])):(E(),W("div",Dv))]),_:1})]),_:1})}const Uv=ne(bv,[["render",Vv],["__scopeId","data-v-3d4d2326"]]),zv={name:"MdiFeatureSearch",components:{SvgIcon:it},data(){return{path:Df}}};function Wv(e,t,n,s,r,o){const i=S("svg-icon");return E(),ee(i,{type:"mdi",path:r.path},null,8,["path"])}const Kv=ne(zv,[["render",Wv]]),Qv={name:"CompareQuestions",components:{Content:He,FeatureSearch:Kv,Header:Ne,TextFrame:Fe},setup(){return{resultsStore:Ge()}},mounted(){this.resultsStore.compareCurrent!==null&&this.$router.push(`/results/answers/${this.resultsStore.compareCurrent}`)}},Jv=N(" Compare Answers "),Yv={class:"prose mx-auto"},Zv=h("p",{class:"text-leader"}," There are many turning points and forks in the road we will encounter along the way. There is a little illustration of how your choices compared to other people\u2019s. ",-1),Gv={class:"w-fit mx-auto"},Xv={class:"inline-flex px-3 py-1 space-x-2 rounded-md bg-olive-800 text-white transition-all duration-300 ease-in-out hover:bg-olive-600"},e0={class:"scale-75"},t0=h("span",{class:"uncial-antiqua"},"Take a Look",-1);function n0(e,t,n,s,r,o){const i=S("Header"),a=S("FeatureSearch"),l=S("router-link"),c=S("Content"),u=S("TextFrame");return E(),ee(u,null,{default:L(()=>[$(i,null,{default:L(()=>[Jv]),_:1}),$(c,null,{default:L(()=>[h("article",Yv,[Zv,h("div",Gv,[$(l,{"active-class":"active-link",class:"navlink",to:"/results/answers/0"},{default:L(()=>[h("div",Xv,[h("span",e0,[$(a)]),t0])]),_:1})])])]),_:1})]),_:1})}const s0=ne(Qv,[["render",n0]]),r0=[{path:"/",name:"Home",component:jm,meta:{indexBase:0,svgPath:zf,title:"Home"}},{path:"/quiz",name:"Quiz",component:Z1,meta:{indexBase:1,svgPath:cl,title:"Take the Quiz"},children:[{path:"",name:"Quiz",component:p_,meta:{indexChild:0,indexBase:1,title:"Take the Quiz"}},{path:"question/:id",name:"Question",component:Z_,props:e=>({id:parseInt(e.params.id)}),meta:{indexChild:1,indexBase:1,title:"Take the Quiz"}}]},{path:"/about",name:"About",component:Ep,meta:{indexBase:2,svgPath:vi,title:"About"},children:[{path:"",name:"About",component:cm,meta:{indexChild:0,indexBase:2,svgPath:vi,title:"Background"}},{path:"licenses",name:"Licenses",component:mm,meta:{indexChild:1,indexBase:2,svgPath:Wf,title:"Licenses"}},{path:"wanderhome",name:"Wanderhome",component:Em,meta:{indexChild:2,indexBase:2,svgPath:Uf,title:"About Wanderhome"}},{path:"acknowledgements",name:"Acknowledgements",component:bm,meta:{indexChild:3,indexBase:2,svgPath:Lf,title:"Acknowledgements"}},{path:"https://git.vsnt.uk/viveksantayana/wanderhome-quiz",name:"SourceCode",meta:{indexChild:4,indexBase:2,svgPath:qf,title:"View Source Code"}}]},{path:"/results",name:"Results",component:pg,meta:{indexBase:-1,title:"Results",svgPath:gi},children:[{path:"",name:"Result",component:Og,meta:{indexChild:0,title:"Your Results",svgPath:gi,indexBase:-1}},{path:"all",name:"Scores",component:Dg,meta:{indexChild:1,title:"Your Scores",svgPath:jf,indexBase:-1}},{path:"compare",name:"CompareResults",component:yv,meta:{indexChild:2,title:"Compare Results",svgPath:Bf,indexBase:-1}},{path:"statistics",name:"Statistics",component:iv,meta:{indexChild:3,title:"Statistics",svgPath:Nf,indexBase:-1}},{path:"answers",name:"Answers",component:zg,meta:{indexChild:4,title:"Compare Answers",svgPath:tr,indexBase:-1},children:[{path:"",name:"RootAnswer",component:s0,meta:{indexGrandchild:0,title:"Compare Answers",svgPath:tr,indexBase:-1,indexChild:4}},{path:":id",name:"CompareQuestion",component:Uv,props:e=>({id:parseInt(e.params.id)}),meta:{indexGrandchild:1,title:"Compare Answers",svgPath:tr,indexBase:-1,indexChild:4}}]}]},{path:"/err_notfound",name:"NotFound",component:ng,meta:{indexBase:-2,title:"Error: Not Found",svgPath:nr}},{path:"/:catchAll(.*)",name:"CatchAll",redirect:"/err_notfound",meta:{indexBase:-3,title:"Error: Not Found",svgPath:nr}},{path:"/err_refused",name:"Refused",component:ag,meta:{indexBase:-4,title:"Error: Connection Refused",svgPath:nr}}],Eo=Xh({history:mh(),routes:r0});Eo.beforeEach((e,t)=>{if(e.meta.title!="Home"?document.title=`Wanderhome Quiz | V.S. - ${e.meta.title}`:document.title="Wanderhome Quiz | V.S.",t.meta.indexBase==-1&&e.meta.indexBase!=-1){if(!confirm("If you navigate away from the Results section, then you will lose your results and need to start the quiz again. Are you sure?"))return!1;e.meta.resetApp=!0}});Eo.afterEach((e,t)=>{const n="transition-all duration-300 origin-top ease-in",s="transition-all duration-300 origin-top ease-out",r="transform opacity-0 md:scale-75";if(t.meta.indexBase!==e.meta.indexBase){const o=t.meta.indexBase,i=e.meta.indexBase,a=i=0)return;o==="set-cookie"?r[o]=(r[o]?r[o]:[]).concat([i]):r[o]=r[o]?r[o]+", "+i:i}}),r},cr}var ur,Vi;function x1(){if(Vi)return ur;Vi=1;var e=Oe;return ur=e.isStandardBrowserEnv()?function(){var n=/(msie|trident)/i.test(navigator.userAgent),s=document.createElement("a"),r;function o(i){var a=i;return n&&(s.setAttribute("href",a),a=s.href),s.setAttribute("href",a),{href:s.href,protocol:s.protocol?s.protocol.replace(/:$/,""):"",host:s.host,search:s.search?s.search.replace(/^\?/,""):"",hash:s.hash?s.hash.replace(/^#/,""):"",hostname:s.hostname,port:s.port,pathname:s.pathname.charAt(0)==="/"?s.pathname:"/"+s.pathname}}return r=o(window.location.href),function(a){var l=e.isString(a)?o(a):a;return l.protocol===r.protocol&&l.host===r.host}}():function(){return function(){return!0}}(),ur}var fr,Ui;function Us(){if(Ui)return fr;Ui=1;var e=En,t=Oe;function n(s){e.call(this,s==null?"canceled":s,e.ERR_CANCELED),this.name="CanceledError"}return t.inherits(n,e,{__CANCEL__:!0}),fr=n,fr}var dr,zi;function C1(){return zi||(zi=1,dr=function(t){var n=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return n&&n[1]||""}),dr}var hr,Wi;function Ki(){if(Wi)return hr;Wi=1;var e=Oe,t=m1(),n=_1(),s=Hl,r=Dl,o=w1(),i=x1(),a=Bl,l=En,c=Us(),u=C1();return hr=function(d){return new Promise(function(v,x){var A=d.data,T=d.headers,j=d.responseType,K;function G(){d.cancelToken&&d.cancelToken.unsubscribe(K),d.signal&&d.signal.removeEventListener("abort",K)}e.isFormData(A)&&e.isStandardBrowserEnv()&&delete T["Content-Type"];var I=new XMLHttpRequest;if(d.auth){var _e=d.auth.username||"",X=d.auth.password?unescape(encodeURIComponent(d.auth.password)):"";T.Authorization="Basic "+btoa(_e+":"+X)}var F=r(d.baseURL,d.url);I.open(d.method.toUpperCase(),s(F,d.params,d.paramsSerializer),!0),I.timeout=d.timeout;function Y(){if(!!I){var M="getAllResponseHeaders"in I?o(I.getAllResponseHeaders()):null,re=!j||j==="text"||j==="json"?I.responseText:I.response,ce={data:re,status:I.status,statusText:I.statusText,headers:M,config:d,request:I};t(function(ge){v(ge),G()},function(ge){x(ge),G()},ce),I=null}}if("onloadend"in I?I.onloadend=Y:I.onreadystatechange=function(){!I||I.readyState!==4||I.status===0&&!(I.responseURL&&I.responseURL.indexOf("file:")===0)||setTimeout(Y)},I.onabort=function(){!I||(x(new l("Request aborted",l.ECONNABORTED,d,I)),I=null)},I.onerror=function(){x(new l("Network Error",l.ERR_NETWORK,d,I,I)),I=null},I.ontimeout=function(){var re=d.timeout?"timeout of "+d.timeout+"ms exceeded":"timeout exceeded",ce=d.transitional||a;d.timeoutErrorMessage&&(re=d.timeoutErrorMessage),x(new l(re,ce.clarifyTimeoutError?l.ETIMEDOUT:l.ECONNABORTED,d,I)),I=null},e.isStandardBrowserEnv()){var se=(d.withCredentials||i(F))&&d.xsrfCookieName?n.read(d.xsrfCookieName):void 0;se&&(T[d.xsrfHeaderName]=se)}"setRequestHeader"in I&&e.forEach(T,function(re,ce){typeof A>"u"&&ce.toLowerCase()==="content-type"?delete T[ce]:I.setRequestHeader(ce,re)}),e.isUndefined(d.withCredentials)||(I.withCredentials=!!d.withCredentials),j&&j!=="json"&&(I.responseType=d.responseType),typeof d.onDownloadProgress=="function"&&I.addEventListener("progress",d.onDownloadProgress),typeof d.onUploadProgress=="function"&&I.upload&&I.upload.addEventListener("progress",d.onUploadProgress),(d.cancelToken||d.signal)&&(K=function(M){!I||(x(!M||M&&M.type?new c:M),I.abort(),I=null)},d.cancelToken&&d.cancelToken.subscribe(K),d.signal&&(d.signal.aborted?K():d.signal.addEventListener("abort",K))),A||(A=null);var le=u(F);if(le&&["http","https","file"].indexOf(le)===-1){x(new l("Unsupported protocol "+le+":",l.ERR_BAD_REQUEST,d));return}I.send(A)})},hr}var pr,Qi;function $1(){return Qi||(Qi=1,pr=null),pr}var ke=Oe,Ji=h1,Yi=En,S1=Bl,E1=jl,A1={"Content-Type":"application/x-www-form-urlencoded"};function Zi(e,t){!ke.isUndefined(e)&&ke.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}function R1(){var e;return(typeof XMLHttpRequest<"u"||typeof process<"u"&&Object.prototype.toString.call(process)==="[object process]")&&(e=Ki()),e}function k1(e,t,n){if(ke.isString(e))try{return(t||JSON.parse)(e),ke.trim(e)}catch(s){if(s.name!=="SyntaxError")throw s}return(n||JSON.stringify)(e)}var zs={transitional:S1,adapter:R1(),transformRequest:[function(t,n){if(Ji(n,"Accept"),Ji(n,"Content-Type"),ke.isFormData(t)||ke.isArrayBuffer(t)||ke.isBuffer(t)||ke.isStream(t)||ke.isFile(t)||ke.isBlob(t))return t;if(ke.isArrayBufferView(t))return t.buffer;if(ke.isURLSearchParams(t))return Zi(n,"application/x-www-form-urlencoded;charset=utf-8"),t.toString();var s=ke.isObject(t),r=n&&n["Content-Type"],o;if((o=ke.isFileList(t))||s&&r==="multipart/form-data"){var i=this.env&&this.env.FormData;return E1(o?{"files[]":t}:t,i&&new i)}else if(s||r==="application/json")return Zi(n,"application/json"),k1(t);return t}],transformResponse:[function(t){var n=this.transitional||zs.transitional,s=n&&n.silentJSONParsing,r=n&&n.forcedJSONParsing,o=!s&&this.responseType==="json";if(o||r&&ke.isString(t)&&t.length)try{return JSON.parse(t)}catch(i){if(o)throw i.name==="SyntaxError"?Yi.from(i,Yi.ERR_BAD_RESPONSE,this,null,this.response):i}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:$1()},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};ke.forEach(["delete","get","head"],function(t){zs.headers[t]={}});ke.forEach(["post","put","patch"],function(t){zs.headers[t]=ke.merge(A1)});var $o=zs,T1=Oe,P1=$o,I1=function(t,n,s){var r=this||P1;return T1.forEach(s,function(i){t=i.call(r,t,n)}),t},mr,Gi;function Vl(){return Gi||(Gi=1,mr=function(t){return!!(t&&t.__CANCEL__)}),mr}var Xi=Oe,_r=I1,O1=Vl(),L1=$o,M1=Us();function gr(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new M1}var H1=function(t){gr(t),t.headers=t.headers||{},t.data=_r.call(t,t.data,t.headers,t.transformRequest),t.headers=Xi.merge(t.headers.common||{},t.headers[t.method]||{},t.headers),Xi.forEach(["delete","get","head","post","put","patch","common"],function(r){delete t.headers[r]});var n=t.adapter||L1.adapter;return n(t).then(function(r){return gr(t),r.data=_r.call(t,r.data,r.headers,t.transformResponse),r},function(r){return O1(r)||(gr(t),r&&r.response&&(r.response.data=_r.call(t,r.response.data,r.response.headers,t.transformResponse))),Promise.reject(r)})},Ve=Oe,Ul=function(t,n){n=n||{};var s={};function r(u,f){return Ve.isPlainObject(u)&&Ve.isPlainObject(f)?Ve.merge(u,f):Ve.isPlainObject(f)?Ve.merge({},f):Ve.isArray(f)?f.slice():f}function o(u){if(Ve.isUndefined(n[u])){if(!Ve.isUndefined(t[u]))return r(void 0,t[u])}else return r(t[u],n[u])}function i(u){if(!Ve.isUndefined(n[u]))return r(void 0,n[u])}function a(u){if(Ve.isUndefined(n[u])){if(!Ve.isUndefined(t[u]))return r(void 0,t[u])}else return r(void 0,n[u])}function l(u){if(u in n)return r(t[u],n[u]);if(u in t)return r(void 0,t[u])}var c={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:l};return Ve.forEach(Object.keys(t).concat(Object.keys(n)),function(f){var d=c[f]||o,_=d(f);Ve.isUndefined(_)&&d!==l||(s[f]=_)}),s},vr,ea;function zl(){return ea||(ea=1,vr={version:"0.27.2"}),vr}var N1=zl().version,It=En,So={};["object","boolean","number","function","string","symbol"].forEach(function(e,t){So[e]=function(s){return typeof s===e||"a"+(t<1?"n ":" ")+e}});var ta={};So.transitional=function(t,n,s){function r(o,i){return"[Axios v"+N1+"] Transitional option '"+o+"'"+i+(s?". "+s:"")}return function(o,i,a){if(t===!1)throw new It(r(i," has been removed"+(n?" in "+n:"")),It.ERR_DEPRECATED);return n&&!ta[i]&&(ta[i]=!0,console.warn(r(i," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(o,i,a):!0}};function F1(e,t,n){if(typeof e!="object")throw new It("options must be an object",It.ERR_BAD_OPTION_VALUE);for(var s=Object.keys(e),r=s.length;r-- >0;){var o=s[r],i=t[o];if(i){var a=e[o],l=a===void 0||i(a,o,e);if(l!==!0)throw new It("option "+o+" must be "+l,It.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new It("Unknown option "+o,It.ERR_BAD_OPTION)}}var q1={assertOptions:F1,validators:So},Wl=Oe,B1=Hl,na=f1,sa=H1,Ws=Ul,j1=Dl,Kl=q1,sn=Kl.validators;function vn(e){this.defaults=e,this.interceptors={request:new na,response:new na}}vn.prototype.request=function(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Ws(this.defaults,n),n.method?n.method=n.method.toLowerCase():this.defaults.method?n.method=this.defaults.method.toLowerCase():n.method="get";var s=n.transitional;s!==void 0&&Kl.assertOptions(s,{silentJSONParsing:sn.transitional(sn.boolean),forcedJSONParsing:sn.transitional(sn.boolean),clarifyTimeoutError:sn.transitional(sn.boolean)},!1);var r=[],o=!0;this.interceptors.request.forEach(function(_){typeof _.runWhen=="function"&&_.runWhen(n)===!1||(o=o&&_.synchronous,r.unshift(_.fulfilled,_.rejected))});var i=[];this.interceptors.response.forEach(function(_){i.push(_.fulfilled,_.rejected)});var a;if(!o){var l=[sa,void 0];for(Array.prototype.unshift.apply(l,r),l=l.concat(i),a=Promise.resolve(n);l.length;)a=a.then(l.shift(),l.shift());return a}for(var c=n;r.length;){var u=r.shift(),f=r.shift();try{c=u(c)}catch(d){f(d);break}}try{a=sa(c)}catch(d){return Promise.reject(d)}for(;i.length;)a=a.then(i.shift(),i.shift());return a};vn.prototype.getUri=function(t){t=Ws(this.defaults,t);var n=j1(t.baseURL,t.url);return B1(n,t.params,t.paramsSerializer)};Wl.forEach(["delete","get","head","options"],function(t){vn.prototype[t]=function(n,s){return this.request(Ws(s||{},{method:t,url:n,data:(s||{}).data}))}});Wl.forEach(["post","put","patch"],function(t){function n(s){return function(o,i,a){return this.request(Ws(a||{},{method:t,headers:s?{"Content-Type":"multipart/form-data"}:{},url:o,data:i}))}}vn.prototype[t]=n(),vn.prototype[t+"Form"]=n(!0)});var D1=vn,yr,ra;function V1(){if(ra)return yr;ra=1;var e=Us();function t(n){if(typeof n!="function")throw new TypeError("executor must be a function.");var s;this.promise=new Promise(function(i){s=i});var r=this;this.promise.then(function(o){if(!!r._listeners){var i,a=r._listeners.length;for(i=0;i({questions:[]}),actions:{storeQuestions(e){this.questions=[...e]},nextQuestion(){this.currentQuestion++},previousQuestion(){this.currentQuestion--}}}),J1={setup(){const e=Ks(),t=Sn(),n=Ge();return{questionStore:e,answersStore:t,resultsStore:n}},name:"QuestionIndex",created(){this.questionStore.questions.length==0&&this.getQuestions()},mounted(){this.answersStore.quizCurrent!==null?this.$router.push(`/quiz/question/${this.answersStore.quizCurrent}`):this.answersStore.$reset(),this.resultsStore.$reset()},methods:{getQuestions(){Ft.get(`${qt.SERVER}api/questions/`).then(e=>{console.log("Fetched questions from server."),this.questionStore.storeQuestions(e.data)}).catch(e=>{console.log(e),this.$router.push("/err_refused")})}}};function Y1(e,t,n,s,r,o){const i=S("router-view");return E(),W("div",null,[$(i,{class:"w-full",ref:"panel",appear:""},{default:L(({Component:a,route:l})=>[$($t,{mode:"out-in","enter-active-class":"transition-all duration-300 origin-center ease-in","enter-from-class":"transform opacity-0 md:scale-95","leave-active-class":"transition-all duration-300 origin-center ease-out","leave-to-class":"transform opacity-0 md:scale-95"},{default:L(()=>[(E(),ee(es(a),{key:l.path}))]),_:2},1024)]),_:1},512)])}const Z1=ne(J1,[["render",Y1]]),G1={name:"mdiRoadVariant",components:{SvgIcon:it},data(){return{path:Qf}}};function X1(e,t,n,s,r,o){const i=S("svg-icon");return E(),ee(i,{type:"mdi",path:r.path},null,8,["path"])}const e_=ne(G1,[["render",X1]]),t_={name:"QuizConsole",components:{Content:He,Header:Ne,RoadVariant:e_,TextFrame:Fe}},n_=N(" Take the Quiz "),s_={class:"prose mx-auto"},r_=h("h2",{class:"uncial-antiqua",key:"welcome-0"}," Gather your Things ",-1),o_=h("p",{class:"text-leader",key:"welcome-1"}," We are about to embark upon a journey. ",-1),i_=h("p",{class:"text-leader",key:"welcome-2"}," In a minute, I will ask you a series of multiple choice questions. For most of them, you will need to select the one answer. Some questions will need multiple answers. Don\u2019t over-think them! ",-1),a_=h("p",{class:"text-leader",key:"welcome-3"},[h("em",{class:"uncial-antiqua"},"Wanderhome"),N(" is about going wherever the road takes you, and reflecting on how the journey changes us. The road is full of myriad travellers, each with their rich lives and stories. This quiz will help you figure out what kinds of stories you will bring to the table. ")],-1),l_=h("p",{class:"text-leader",key:"welcome-4"}," Will you join me? ",-1),c_={class:"w-fit mx-auto",key:"welcome-5"},u_={class:"inline-flex px-3 py-1 space-x-2 rounded-md bg-olive-800 text-white transition-all duration-300 ease-in-out hover:bg-olive-600"},f_={class:"scale-75"},d_=h("span",{class:"uncial-antiqua"},"Let\u2019s Go",-1);function h_(e,t,n,s,r,o){const i=S("Header"),a=S("RoadVariant"),l=S("router-link"),c=S("Content"),u=S("TextFrame");return E(),ee(u,null,{default:L(()=>[$(i,null,{default:L(()=>[n_]),_:1}),$(c,null,{default:L(()=>[h("article",s_,[r_,o_,i_,a_,l_,h("div",c_,[$(l,{"active-class":"active-link",class:"navlink",to:"/quiz/question/0"},{default:L(()=>[h("div",u_,[h("span",f_,[$(a)]),d_])]),_:1})])])]),_:1})]),_:1})}const p_=ne(t_,[["render",h_]]),m_={name:"mdiArrowLeftBold",components:{SvgIcon:it},data(){return{path:Mf}}};function __(e,t,n,s,r,o){const i=S("svg-icon");return E(),ee(i,{type:"mdi",path:r.path},null,8,["path"])}const Jl=ne(m_,[["render",__]]),g_={name:"mdiArrowRightBold",components:{SvgIcon:it},data(){return{path:Hf}}};function v_(e,t,n,s,r,o){const i=S("svg-icon");return E(),ee(i,{type:"mdi",path:r.path},null,8,["path"])}const Yl=ne(g_,[["render",v_]]),y_={name:"MdiHome",components:{SvgIcon:it},data(){return{path:Vf}}};function b_(e,t,n,s,r,o){const i=S("svg-icon");return E(),ee(i,{type:"mdi",path:r.path},null,8,["path"])}const w_=ne(y_,[["render",b_]]);const x_={setup(){const e=Ks(),t=Sn(),n=Ge();return{questionStore:e,answersStore:t,resultsStore:n}},components:{ArrowLeftBold:Jl,ArrowRightBold:Yl,Content:He,FleurDeLis:w_,Header:Ne,TextFrame:Fe},created(){this.answersStore.makeArray(this.id,this.questionStore.questions[this.id].select)},mounted(){this.answersStore.quizCurrent=this.id,this.$watch(()=>this.$route.params,(e,t)=>{this.$route.name=="Question"&&(e.id>=this.questionStore.questions.length||this.id<0?this.$router.push("/err_notfound"):this.answersStore.quizCurrent=e.id)}),this.$watch(()=>this.questionStore.questions,e=>{this.id>=this.questionStore.questions.length||this.id<0?this.$router.push("/err_notfound"):this.answersStore.makeArray(this.id,this.questionStore.questions[this.id].select)})},methods:{submitAnswers(){const e=JSON.stringify(this.answersStore.answers);Ft.post(`${qt.SERVER}api/submit/`,e,{headers:{"Content-Type":"application/json"}}).then(t=>{console.log("Submitted answers."),this.resultsStore.store("results",t.data),console.log("Results fetched from the server."),this.answersStore.quizCurrent=null,this.$router.push("/results")}).catch(t=>{console.log(t),this.$router.push("/err_refused")})}},props:{id:{type:Number,required:!0}}},ts=e=>(ro("data-v-bd26bf63"),e=e(),oo(),e),C_=N(" Take the Quiz "),$_={key:0},S_={class:"prose"},E_=["innerHTML"],A_=["aria-multiselectable"],R_=["type","id","value","disabled"],k_=["for"],T_=["innerHTML","aria-label","title"],P_={class:"w-full flex mx-auto items-center justify-between max-w-sm"},I_={class:"inline-flex h-full px-3 py-1 space-x-1 rounded-md bg-olive-800 text-white items-center transition-all duration-300 ease-in-out hover:bg-olive-600",title:"Back"},O_={class:"scale-100"},L_=ts(()=>h("span",{class:"uncial-antiqua"},"Back",-1)),M_={key:1,class:"inline-flex h-full px-3 py-1 space-x-1 rounded-md bg-olive-800 opacity-50 text-white items-center hover:cursor-not-allowed"},H_={class:"scale-100"},N_=ts(()=>h("span",{class:"uncial-antiqua"},"Back",-1)),F_={class:"inline-flex h-full px-3 py-1 space-x-1 rounded-md bg-olive-800 text-white items-center transition-all duration-300 ease-in-out hover:bg-olive-600",title:"Next"},q_=ts(()=>h("span",{class:"uncial-antiqua"},"Next",-1)),B_={class:"scale-100"},j_={key:3,class:"inline-flex h-full px-3 py-1 space-x-1 rounded-md bg-olive-800 opacity-50 text-white items-center hover:cursor-not-allowed"},D_=ts(()=>h("span",{class:"uncial-antiqua"},"Next",-1)),V_={class:"scale-100"},U_={class:"mx-auto my-8 w-fit transition-all"},z_={class:"inline-flex px-3 py-1 space-x-2 rounded-md bg-olive-800 text-white transition-all duration-300 ease-in-out hover:bg-olive-600"},W_={class:"scale-75"},K_=ts(()=>h("span",{class:"uncial-antiqua"},"Submit Answers",-1)),Q_={class:"scale-75"},J_={key:1};function Y_(e,t,n,s,r,o){const i=S("Header"),a=S("ArrowLeftBold"),l=S("router-link"),c=S("ArrowRightBold"),u=S("FleurDeLis"),f=S("Content"),d=S("TextFrame");return E(),ee(d,null,{default:L(()=>[$(i,null,{default:L(()=>[C_]),_:1}),$(f,null,{default:L(()=>[s.questionStore.questions[this.id]?(E(),W("div",$_,[h("article",S_,[h("h3",null,"Question "+we(this.id+1),1),h("div",{innerHTML:s.questionStore.questions[this.id].question},null,8,E_)]),h("div",{class:"grid grid-cols-1 content-evenly items-center gap-2 justify-center my-12 mx-auto md:grid-cols-2 lg:grid-cols-3","aria-multiselectable":s.questionStore.questions[this.id].select>1},[(E(!0),W(xe,null,mt(s.questionStore.questions[this.id].answers,(_,v)=>(E(),W("div",{key:`q${this.id}-o${v}`,class:"inline-flex"},[Vo((E(),W("input",{type:this.questionStore.questions[this.id].select>1?"checkbox":"radio",class:"checkbox",id:`q${this.id}-o${v}`,value:v,key:`q${this.id}-o${v}`,"onUpdate:modelValue":t[0]||(t[0]=x=>s.answersStore.answers[this.id]=x),disabled:this.questionStore.questions[this.id].select>1&&this.answersStore.answers[this.id].length==this.questionStore.questions[this.id].select&&!this.answersStore.answers[this.id].includes(v)},null,8,R_)),[[Cf,s.answersStore.answers[this.id]]]),h("label",{for:`q${this.id}-o${v}`},[h("div",{innerHTML:_,class:"w-full h-full p-2 select-none transition-all duration-100 ease-in-out hover:bg-lime-200 hover:text-orange-600 hover:cursor-pointer","aria-label":_,title:_},null,8,T_)],8,k_)]))),128))],8,A_),h("div",P_,[this.id>0?(E(),ee(l,{key:0,to:`/quiz/question/${this.id-1}`},{default:L(()=>[h("div",I_,[h("span",O_,[$(a)]),L_])]),_:1},8,["to"])):(E(),W("div",M_,[h("span",H_,[$(a)]),N_])),this.id[h("div",F_,[q_,h("span",B_,[$(c)])])]),_:1},8,["to"])):(E(),W("div",j_,[D_,h("span",V_,[$(c)])]))]),$($t,{"enter-active-class":"transition-all duration-300 origin-center ease-in","enter-from-class":"transform opacity-0 md:scale-95","leave-active-class":"transition-all duration-300 origin-center ease-out","leave-to-class":"transform opacity-0 md:scale-95"},{default:L(()=>[Vo(h("div",U_,[h("button",{onClick:t[1]||(t[1]=_=>this.submitAnswers())},[h("div",z_,[h("span",W_,[$(u)]),K_,h("span",Q_,[$(u)])])])],512),[[Sf,this.id==this.questionStore.questions.length-1&&this.answersStore.isAnswered(this.id)]])]),_:1})])):(E(),W("div",J_," Loading "))]),_:1})]),_:1})}const Z_=ne(x_,[["render",Y_],["__scopeId","data-v-bd26bf63"]]),G_={name:"NotFound",components:{Content:He,Header:Ne,TextFrame:Fe}},X_=N(" Error: Not Found "),eg=h("article",{class:"prose mx-auto"},[h("p",{class:"text-leader"}," Uh-oh. "),h("p",null," Sometimes we can get lost along the path. "),h("p",null," But it\u2019s okay. Just retrace your steps and you will find your way back again. ")],-1);function tg(e,t,n,s,r,o){const i=S("Header"),a=S("Content"),l=S("TextFrame");return E(),ee(l,null,{default:L(()=>[$(i,null,{default:L(()=>[X_]),_:1}),$(a,null,{default:L(()=>[eg]),_:1})]),_:1})}const ng=ne(G_,[["render",tg]]),sg={name:"Refused",components:{Content:He,Header:Ne,TextFrame:Fe}},rg=N(" Error: Connection Refused "),og=h("article",{class:"prose mx-auto"},[h("p",{class:"text-leader"}," The client is unable to connect to the server. That\u2019s okay. Sometimes, we run into obstacles along the way. And we just need to try again after a while. ")],-1);function ig(e,t,n,s,r,o){const i=S("Header"),a=S("Content"),l=S("TextFrame");return E(),ee(l,null,{default:L(()=>[$(i,null,{default:L(()=>[rg]),_:1}),$(a,null,{default:L(()=>[og]),_:1})]),_:1})}const ag=ne(sg,[["render",ig]]),lg={setup(){return{resultsStore:Ge()}},name:"ResultsIndex",components:{Sidebar:Pl},created(){this.resultsStore.results.playbooks.length>1?this.$router.options.routes[3].children[0].meta.title="Your Results":this.$router.options.routes[3].children[0].meta.title="Your Result"}},cg={class:"flex flex-col space-y-3 md:flex-row md:space-x-6 md:space-y-0"},ug={class:"flex flex-col w-full md:w-1/3 h-fit"},fg=N(" Results "),dg={class:"flex w-full md:w-2/3"};function hg(e,t,n,s,r,o){const i=S("Sidebar"),a=S("router-view");return E(),W("div",null,[h("div",cg,[h("div",ug,[$(i,{prefix:e.$router.options.routes[3].path,routes:e.$router.options.routes[3].children},{header:L(()=>[fg]),_:1},8,["prefix","routes"])]),h("div",dg,[$(a,{class:"w-full",ref:"panel",appear:""},{default:L(({Component:l,route:c})=>[$($t,{mode:"out-in","enter-active-class":c.meta.panelEnterActiveClass,"enter-from-class":c.meta.panelEnterFromClass,"leave-active-class":c.meta.panelLeaveActiveClass,"leave-to-class":c.meta.panelLeaveToClass},{default:L(()=>[(E(),ee(es(l)))]),_:2},1032,["enter-active-class","enter-from-class","leave-active-class","leave-to-class"])]),_:1},512)])])])}const pg=ne(lg,[["render",hg]]),mg={setup(){return{resultsStore:Ge()}},name:"Results",components:{Content:He,Header:Ne,TextFrame:Fe},methods:{renderAnimals(e){for(var t="",n=e.length,s=0;s[$(i,null,{default:L(()=>[this.resultsStore.results.playbooks.length>1?(E(),W("span",_g,"Your Results")):(E(),W("span",gg,"Your Result"))]),_:1}),$(a,null,{default:L(()=>[h("article",vg,[(E(!0),W(xe,null,mt(this.resultsStore.results.playbooks,(c,u)=>(E(),W("section",{key:Object.keys(c)[0],class:ht(u(E(),W("li",{class:"my-0 py-0 mx-3",key:Object.keys(c)[0]+d,innerHTML:f},null,8,Pg))),128))])],2))),128))])]),_:1})]),_:1})}const Og=ne(mg,[["render",Ig]]),Lg={setup(){return{resultsStore:Ge()}},name:"Scores",components:{Content:He,Header:Ne,TextFrame:Fe}},Mg=N(" Your Scores "),Hg=h("p",{class:"text-leader"}," While the playbook you are is the one most reflected by your answers, here are the other playbooks and the extent to which they have a bearing upon your journey. ",-1),Ng={class:"table-auto w-full max-w-sm mx-auto text-left"},Fg=h("thead",{class:"text-xs text-gray-700 uppercase bg-lime-100"},[h("tr",null,[h("th",{class:"pl-10"}," Playbook "),h("th",null," Score (%) ")])],-1),qg={scope:"col",class:"py-1 pl-10 capitalize"},Bg={scope:"col",class:"py-1"};function jg(e,t,n,s,r,o){const i=S("Header"),a=S("Content"),l=S("TextFrame");return E(),ee(l,null,{default:L(()=>[$(i,null,{default:L(()=>[Mg]),_:1}),$(a,null,{default:L(()=>[Hg,h("table",Ng,[Fg,h("tbody",null,[(E(!0),W(xe,null,mt(this.resultsStore.results.all_playbooks,(c,u,f)=>(E(),W("tr",{key:u,class:ht(["hover:bg-yellow-50",f%2==0?"bg-lime-50 border-b":"bg-lime-100 border-b"])},[h("td",qg," The "+we(u),1),h("td",Bg,we(Math.round(100*c/this.resultsStore.results.max_score)),1)],2))),128))])])]),_:1})]),_:1})}const Dg=ne(Lg,[["render",jg]]),Vg={setup(){const e=Ks(),t=Sn(),n=Ge();return{questionStore:e,answersStore:t,resultsStore:n}},name:"CompareAnswersIndex",mounted(){this.getAnswers()},methods:{getAnswers(){this.error=this.questions=null,this.loading=!0,Ft.get(`${qt.SERVER}api/answers/`).then(e=>{console.log("Fetched answer stats from the server."),this.resultsStore.store("answers",e.data)}).catch(e=>{console.log(e),this.$router.push("/err_refused")}),Ft.get(`${qt.SERVER}api/count/`).then(e=>{console.log("Fetched user count from the server."),this.resultsStore.store("count",e.data)}).catch(e=>{console.log(e),this.$router.push("/err_refused")})}}};function Ug(e,t,n,s,r,o){const i=S("router-view");return E(),W("div",null,[$(i,{class:"w-full",ref:"panel",appear:""},{default:L(({Component:a,route:l})=>[$($t,{mode:"out-in","enter-active-class":"transition-all duration-300 origin-center ease-in","enter-from-class":"transform opacity-0 md:scale-95","leave-active-class":"transition-all duration-300 origin-center ease-out","leave-to-class":"transform opacity-0 md:scale-95"},{default:L(()=>[(E(),ee(es(a),{key:l.path}))]),_:2},1024)]),_:1},512)])}const zg=ne(Vg,[["render",Ug]]),Wg={name:"mdiChefronDoubleRight",components:{SvgIcon:it},data(){return{path:Ff}}};function Kg(e,t,n,s,r,o){const i=S("svg-icon");return E(),ee(i,{type:"mdi",path:r.path},null,8,["path"])}const Zl=ne(Wg,[["render",Kg]]),Qg={setup(){return{resultsStore:Ge()}},mounted(){this.getScores()},name:"Statistics",components:{ChevronDoubleRight:Zl,Content:He,Header:Ne,TextFrame:Fe},methods:{getScores(){Ft.get(`${qt.SERVER}api/scores/`).then(e=>{console.log("Fetched score stats from the server."),this.resultsStore.store("scores",e.data)}).catch(e=>{console.log(e),this.$router.push("/err_refused")}),Ft.get(`${qt.SERVER}api/count/`).then(e=>{console.log("Fetched user count from the server."),this.resultsStore.store("count",e.data)}).catch(e=>{console.log(e),this.$router.push("/err_refused")})}}},Jg=N(" Statistics "),Yg=h("p",{class:"text-leader"}," Sometimes, it can help to have some additional insight into the likelihood of meeting different people. Or, indeed, it can provide insight into how the questions we ask of each other bias the way we perceive the world. ",-1),Zg={class:"table-auto w-full mx-auto max-w-lg text-left"},Gg=h("thead",{class:"text-xs text-gray-700 uppercase bg-lime-100"},[h("tr",null,[h("th"),h("th",null," Playbook "),h("th",null," Your Score (%) "),h("th",null," Mean "),h("th",null," Median "),h("th",{class:"lowercase underline",title:"Standard Deviation"}," \u03C3* ")])],-1),Xg={key:0},ev={key:1},tv={scope:"col",class:"py-1 capitalize"},nv={scope:"col",class:"py-1"},sv={scope:"col",class:"py-1"},rv={colspan:"6",class:"text-center text-lg text-gray-600"};function ov(e,t,n,s,r,o){const i=S("Header"),a=S("ChevronDoubleRight"),l=S("Content"),c=S("TextFrame");return E(),ee(c,null,{default:L(()=>[$(i,null,{default:L(()=>[Jg]),_:1}),$(l,null,{default:L(()=>[Yg,h("table",Zg,[Gg,h("tbody",null,[(E(!0),W(xe,null,mt(this.resultsStore.scores,(u,f,d)=>(E(),W("tr",{key:f,class:ht(["hover:bg-yellow-50",d%2==0?"bg-lime-50 border-b":"bg-lime-100 border-b"])},[this.resultsStore.results.playbooks.some(_=>_.hasOwnProperty(f))?(E(),W("td",Xg,[$(a)])):(E(),W("td",ev)),h("td",tv," The "+we(f),1),h("td",null,we(Math.round(100*this.resultsStore.results.all_playbooks[f]/this.resultsStore.results.max_score)),1),h("td",nv,we(Math.round(u.mean*100)/100),1),h("td",sv,we(Math.round(u.median*100)/100),1),h("td",null,we(Math.round(u.standard_deviation*100)/100),1)],2))),128)),h("tr",null,[h("td",rv,"From "+we(this.resultsStore.count)+" users",1)])])])]),_:1})]),_:1})}const iv=ne(Qg,[["render",ov]]),av={setup(){return{resultsStore:Ge()}},mounted(){this.getResults()},name:"CompareResults",components:{ChevronDoubleRight:Zl,Content:He,Header:Ne,TextFrame:Fe},methods:{getResults(){Ft.get(`${qt.SERVER}api/playbooks/`).then(e=>{console.log("Fetched playbook stats from the server."),this.resultsStore.store("playbooks",e.data)}).catch(e=>{console.log(e),this.$router.push("/err_refused")}),Ft.get(`${qt.SERVER}api/count/`).then(e=>{console.log("Fetched user count from the server."),this.resultsStore.store("count",e.data)}).catch(e=>{console.log(e),this.$router.push("/err_refused")})}}},lv=N(" Compare Results "),cv=h("p",{class:"text-leader"}," Based on others who have taken this quiz, here are the playbooks of fellow travellers you are likely to meet along the way. ",-1),uv={class:"table-auto w-full max-w-sm mx-auto text-left"},fv=h("thead",{class:"text-xs text-gray-700 uppercase bg-lime-100"},[h("tr",null,[h("th"),h("th",null," Playbook "),h("th",null," Number "),h("th",null," Percentage ")])],-1),dv={key:0},hv={key:1},pv={scope:"col",class:"py-1 capitalize"},mv={scope:"col",class:"py-1"},_v={scope:"col",class:"py-1"},gv={colspan:"4",class:"text-center text-lg text-gray-600"};function vv(e,t,n,s,r,o){const i=S("Header"),a=S("ChevronDoubleRight"),l=S("Content"),c=S("TextFrame");return E(),ee(c,null,{default:L(()=>[$(i,null,{default:L(()=>[lv]),_:1}),$(l,null,{default:L(()=>[cv,h("table",uv,[fv,h("tbody",null,[(E(!0),W(xe,null,mt(this.resultsStore.playbooks,(u,f,d)=>(E(),W("tr",{key:f,class:ht(["hover:bg-yellow-50",d%2==0?"bg-lime-50 border-b":"bg-lime-100 border-b"])},[this.resultsStore.results.playbooks.some(_=>_.hasOwnProperty(f))?(E(),W("td",dv,[$(a)])):(E(),W("td",hv)),h("td",pv," The "+we(f),1),h("td",mv,we(u),1),h("td",_v,we(Math.round(100*u/this.resultsStore.count))+" % ",1)],2))),128)),h("tr",null,[h("td",gv,"Out of "+we(this.resultsStore.count)+" users",1)])])])]),_:1})]),_:1})}const yv=ne(av,[["render",vv]]);const bv={name:"CompareQuestion",components:{ArrowLeftBold:Jl,ArrowRightBold:Yl,Content:He,Header:Ne,TextFrame:Fe},setup(){const e=Ks(),t=Sn(),n=Ge();return{questionStore:e,answersStore:t,resultsStore:n}},methods:{optionSelected(e,t){return Array.isArray(this.answersStore.answers[e])?this.answersStore.answers[e].includes(t):this.answersStore.answers[e]==t}},mounted(){this.resultsStore.compareCurrent=this.id,this.$watch(()=>this.$route.params,(e,t)=>{this.$route.name=="CompareQuestion"&&(e.id>=this.questionStore.questions.length||this.id<0?this.$router.push("/err_notfound"):this.resultsStore.compareCurrent=e.id)})},props:{id:{type:Number,required:!0}}},Qs=e=>(ro("data-v-3d4d2326"),e=e(),oo(),e),wv=N(" Compare Answers "),xv={key:0},Cv={class:"prose"},$v=["innerHTML"],Sv={class:"grid grid-cols-1 content-evenly items-center gap-2 justify-between mt-12 mx-auto lg:grid-cols-2"},Ev=["innerHTML","aria-label","title"],Av={class:"flex p-2 w-fit items-center",style:{"white-space":"nowrap"}},Rv={class:"text-center mt-6 mb-12 text-lg text-gray-600"},kv={class:"w-full flex mx-auto items-center justify-between max-w-sm"},Tv={class:"inline-flex h-full px-3 py-1 space-x-1 rounded-md bg-olive-800 text-white items-center transition-all duration-300 ease-in-out hover:bg-olive-600",title:"Back"},Pv={class:"scale-100"},Iv=Qs(()=>h("span",{class:"uncial-antiqua"},"Back",-1)),Ov={key:1,class:"inline-flex h-full px-3 py-1 space-x-1 rounded-md bg-olive-800 opacity-50 text-white items-center hover:cursor-not-allowed"},Lv={class:"scale-100"},Mv=Qs(()=>h("span",{class:"uncial-antiqua"},"Back",-1)),Hv={class:"inline-flex h-full px-3 py-1 space-x-1 rounded-md bg-olive-800 text-white items-center transition-all duration-300 ease-in-out hover:bg-olive-600",title:"Next"},Nv=Qs(()=>h("span",{class:"uncial-antiqua"},"Next",-1)),Fv={class:"scale-100"},qv={key:3,class:"inline-flex h-full px-3 py-1 space-x-1 rounded-md bg-olive-800 opacity-50 text-white items-center hover:cursor-not-allowed"},Bv=Qs(()=>h("span",{class:"uncial-antiqua"},"Next",-1)),jv={class:"scale-100"},Dv={key:1};function Vv(e,t,n,s,r,o){const i=S("Header"),a=S("ArrowLeftBold"),l=S("router-link"),c=S("ArrowRightBold"),u=S("Content"),f=S("TextFrame");return E(),ee(f,null,{default:L(()=>[$(i,null,{default:L(()=>[wv]),_:1}),$(u,null,{default:L(()=>[s.questionStore.questions[this.id]&&s.answersStore.answers[this.id]!=null&&s.resultsStore.answers[this.id]?(E(),W("div",xv,[h("article",Cv,[h("h3",null,"Question "+we(this.id+1),1),h("div",{innerHTML:s.questionStore.questions[this.id].question},null,8,$v)]),h("div",Sv,[(E(!0),W(xe,null,mt(s.questionStore.questions[this.id].answers,(d,_)=>(E(),W("div",{key:`q${this.id}-o${_}`,class:"inline-flex justify-between rounded-md bg-lime-200",style:Gn(`background: linear-gradient(to right, rgb(217 249 157) ${100*this.resultsStore.answers[this.id][_]/this.resultsStore.count}%, transparent ${100*this.resultsStore.answers[this.id][_]/this.resultsStore.count+3}%)`)},[h("div",{innerHTML:d,class:ht(["flex h-full p-2 select-none transition-all duration-100 ease-in-out",o.optionSelected(this.id,_)?"option-selected":""]),"aria-label":d,title:d},null,10,Ev),h("div",Av,we(Math.round(100*this.resultsStore.answers[this.id][_]/this.resultsStore.count))+" %",1)],4))),128))]),h("div",Rv," From "+we(this.resultsStore.count)+" users. ",1),h("div",kv,[this.id>0?(E(),ee(l,{key:0,to:`/results/answers/${this.id-1}`},{default:L(()=>[h("div",Tv,[h("span",Pv,[$(a)]),Iv])]),_:1},8,["to"])):(E(),W("div",Ov,[h("span",Lv,[$(a)]),Mv])),this.id[h("div",Hv,[Nv,h("span",Fv,[$(c)])])]),_:1},8,["to"])):(E(),W("div",qv,[Bv,h("span",jv,[$(c)])]))])])):(E(),W("div",Dv))]),_:1})]),_:1})}const Uv=ne(bv,[["render",Vv],["__scopeId","data-v-3d4d2326"]]),zv={name:"MdiFeatureSearch",components:{SvgIcon:it},data(){return{path:Df}}};function Wv(e,t,n,s,r,o){const i=S("svg-icon");return E(),ee(i,{type:"mdi",path:r.path},null,8,["path"])}const Kv=ne(zv,[["render",Wv]]),Qv={name:"CompareQuestions",components:{Content:He,FeatureSearch:Kv,Header:Ne,TextFrame:Fe},setup(){return{resultsStore:Ge()}},mounted(){this.resultsStore.compareCurrent!==null&&this.$router.push(`/results/answers/${this.resultsStore.compareCurrent}`)}},Jv=N(" Compare Answers "),Yv={class:"prose mx-auto"},Zv=h("p",{class:"text-leader"}," There are many turning points and forks in the road we will encounter along the way. There is a little illustration of how your choices compared to other people\u2019s. ",-1),Gv={class:"w-fit mx-auto"},Xv={class:"inline-flex px-3 py-1 space-x-2 rounded-md bg-olive-800 text-white transition-all duration-300 ease-in-out hover:bg-olive-600"},e0={class:"scale-75"},t0=h("span",{class:"uncial-antiqua"},"Take a Look",-1);function n0(e,t,n,s,r,o){const i=S("Header"),a=S("FeatureSearch"),l=S("router-link"),c=S("Content"),u=S("TextFrame");return E(),ee(u,null,{default:L(()=>[$(i,null,{default:L(()=>[Jv]),_:1}),$(c,null,{default:L(()=>[h("article",Yv,[Zv,h("div",Gv,[$(l,{"active-class":"active-link",class:"navlink",to:"/results/answers/0"},{default:L(()=>[h("div",Xv,[h("span",e0,[$(a)]),t0])]),_:1})])])]),_:1})]),_:1})}const s0=ne(Qv,[["render",n0]]),r0=[{path:"/",name:"Home",component:jm,meta:{indexBase:0,svgPath:zf,title:"Home"}},{path:"/quiz",name:"Quiz",component:Z1,meta:{indexBase:1,svgPath:cl,title:"Take the Quiz"},children:[{path:"",name:"Quiz",component:p_,meta:{indexChild:0,indexBase:1,title:"Take the Quiz"}},{path:"question/:id",name:"Question",component:Z_,props:e=>({id:parseInt(e.params.id)}),meta:{indexChild:1,indexBase:1,title:"Take the Quiz"}}]},{path:"/about",name:"About",component:Ep,meta:{indexBase:2,svgPath:vi,title:"About"},children:[{path:"",name:"About",component:cm,meta:{indexChild:0,indexBase:2,svgPath:vi,title:"Background"}},{path:"licenses",name:"Licenses",component:mm,meta:{indexChild:1,indexBase:2,svgPath:Wf,title:"Licenses"}},{path:"wanderhome",name:"Wanderhome",component:Em,meta:{indexChild:2,indexBase:2,svgPath:Uf,title:"About Wanderhome"}},{path:"acknowledgements",name:"Acknowledgements",component:bm,meta:{indexChild:3,indexBase:2,svgPath:Lf,title:"Acknowledgements"}},{path:"https://git.vsnt.uk/viveksantayana/wanderhome-quiz",name:"SourceCode",meta:{indexChild:4,indexBase:2,svgPath:qf,title:"View Source Code"}}]},{path:"/results",name:"Results",component:pg,meta:{indexBase:-1,title:"Results",svgPath:gi},children:[{path:"",name:"Result",component:Og,meta:{indexChild:0,title:"Your Results",svgPath:gi,indexBase:-1}},{path:"all",name:"Scores",component:Dg,meta:{indexChild:1,title:"Your Scores",svgPath:jf,indexBase:-1}},{path:"compare",name:"CompareResults",component:yv,meta:{indexChild:2,title:"Compare Results",svgPath:Bf,indexBase:-1}},{path:"statistics",name:"Statistics",component:iv,meta:{indexChild:3,title:"Statistics",svgPath:Nf,indexBase:-1}},{path:"answers",name:"Answers",component:zg,meta:{indexChild:4,title:"Compare Answers",svgPath:tr,indexBase:-1},children:[{path:"",name:"RootAnswer",component:s0,meta:{indexGrandchild:0,title:"Compare Answers",svgPath:tr,indexBase:-1,indexChild:4}},{path:":id",name:"CompareQuestion",component:Uv,props:e=>({id:parseInt(e.params.id)}),meta:{indexGrandchild:1,title:"Compare Answers",svgPath:tr,indexBase:-1,indexChild:4}}]}]},{path:"/err_notfound",name:"NotFound",component:ng,meta:{indexBase:-2,title:"Error: Not Found",svgPath:nr}},{path:"/:catchAll(.*)",name:"CatchAll",redirect:"/err_notfound",meta:{indexBase:-3,title:"Error: Not Found",svgPath:nr}},{path:"/err_refused",name:"Refused",component:ag,meta:{indexBase:-4,title:"Error: Connection Refused",svgPath:nr}}],Eo=Xh({history:mh(),routes:r0});Eo.beforeEach((e,t)=>{if(e.meta.title!="Home"?document.title=`Wanderhome Quiz | V.S. - ${e.meta.title}`:document.title="Wanderhome Quiz | V.S.",t.meta.indexBase==-1&&e.meta.indexBase!=-1){if(!confirm("If you navigate away from the Results section, then you will lose your results and need to start the quiz again. Are you sure?"))return!1;e.meta.resetApp=!0}});Eo.afterEach((e,t)=>{const n="transition-all duration-300 origin-top ease-in",s="transition-all duration-300 origin-top ease-out",r="transform opacity-0 md:scale-75";if(t.meta.indexBase!==e.meta.indexBase){const o=t.meta.indexBase,i=e.meta.indexBase,a=i