@d0rich/esprit-design 0.4.4 → 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +7 -0
- package/dist/esprit-design.css +1 -1
- package/dist/esprit-design.js +951 -836
- package/dist/esprit-design.umd.cjs +1 -1
- package/package.json +2 -1
- package/src/components/animations/DAnimationAccordion.vue +6 -0
- package/src/components/animations/DAnimationFloatingLetter.vue +6 -0
- package/src/components/animations/DAnimationHypnosis.vue +6 -0
- package/src/components/animations/DAnimationSpinner.vue +6 -0
- package/src/components/buttons/DBigBangButton.vue +1 -1
- package/src/components/buttons/DBigBangButtonAnimation.vue +10 -0
- package/src/components/utils/DWrapFocusHighlight.vue +25 -0
- package/tailwind.config.js +10 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(p,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue"),require("gsap")):typeof define=="function"&&define.amd?define(["exports","vue","gsap"],e):(p=typeof globalThis<"u"?globalThis:p||self,e(p.EspritDesign={},p.Vue,p.gsap))})(this,function(p,e,q){"use strict";const It={name:"DChip"},U=(t,o)=>{const n=t.__vccOpts||t;for(const[i,s]of o)n[i]=s;return n},Lt={class:"d-chip"};function Ft(t,o,n,i,s,l){return e.openBlock(),e.createElementBlock("span",Lt,[e.renderSlot(t.$slots,"default")])}const At=U(It,[["render",Ft]]),st=/^[a-z0-9]+(-[a-z0-9]+)*$/,A=(t,o,n,i="")=>{const s=t.split(":");if(t.slice(0,1)==="@"){if(s.length<2||s.length>3)return null;i=s.shift().slice(1)}if(s.length>3||!s.length)return null;if(s.length>1){const r=s.pop(),c=s.pop(),d={provider:s.length>0?s[0]:i,prefix:c,name:r};return o&&!M(d)?null:d}const l=s[0],a=l.split("-");if(a.length>1){const r={provider:i,prefix:a.shift(),name:a.join("-")};return o&&!M(r)?null:r}if(n&&i===""){const r={provider:i,prefix:"",name:l};return o&&!M(r,n)?null:r}return null},M=(t,o)=>t?!!((o&&t.prefix===""||t.prefix)&&t.name):!1,it=Object.freeze({left:0,top:0,width:16,height:16}),j=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),O=Object.freeze({...it,...j}),H=Object.freeze({...O,body:"",hidden:!1});function Mt(t,o){const n={};!t.hFlip!=!o.hFlip&&(n.hFlip=!0),!t.vFlip!=!o.vFlip&&(n.vFlip=!0);const i=((t.rotate||0)+(o.rotate||0))%4;return i&&(n.rotate=i),n}function lt(t,o){const n=Mt(t,o);for(const i in H)i in j?i in t&&!(i in n)&&(n[i]=j[i]):i in o?n[i]=o[i]:i in t&&(n[i]=t[i]);return n}function jt(t,o){const n=t.icons,i=t.aliases||Object.create(null),s=Object.create(null);function l(a){if(n[a])return s[a]=[];if(!(a in s)){s[a]=null;const r=i[a]&&i[a].parent,c=r&&l(r);c&&(s[a]=[r].concat(c))}return s[a]}return Object.keys(n).concat(Object.keys(i)).forEach(l),s}function Ot(t,o,n){const i=t.icons,s=t.aliases||Object.create(null);let l={};function a(r){l=lt(i[r]||s[r],l)}return a(o),n.forEach(a),lt(t,l)}function at(t,o){const n=[];if(typeof t!="object"||typeof t.icons!="object")return n;t.not_found instanceof Array&&t.not_found.forEach(s=>{o(s,null),n.push(s)});const i=jt(t);for(const s in i){const l=i[s];l&&(o(s,Ot(t,s,l)),n.push(s))}return n}const zt={provider:"",aliases:{},not_found:{},...it};function G(t,o){for(const n in o)if(n in t&&typeof t[n]!=typeof o[n])return!1;return!0}function rt(t){if(typeof t!="object"||t===null)return null;const o=t;if(typeof o.prefix!="string"||!t.icons||typeof t.icons!="object"||!G(t,zt))return null;const n=o.icons;for(const s in n){const l=n[s];if(!s||typeof l.body!="string"||!G(l,H))return null}const i=o.aliases||Object.create(null);for(const s in i){const l=i[s],a=l.parent;if(!s||typeof a!="string"||!n[a]&&!i[a]||!G(l,H))return null}return o}const ct=Object.create(null);function Wt(t,o){return{provider:t,prefix:o,icons:Object.create(null),missing:new Set}}function V(t,o){const n=ct[t]||(ct[t]=Object.create(null));return n[o]||(n[o]=Wt(t,o))}function dt(t,o){return rt(o)?at(o,(n,i)=>{i?t.icons[n]=i:t.missing.add(n)}):[]}function Rt(t,o,n){try{if(typeof n.body=="string")return t.icons[o]={...n},!0}catch{}return!1}let D=!1;function ft(t){return typeof t=="boolean"&&(D=t),D}function qt(t){const o=typeof t=="string"?A(t,!0,D):t;if(o){const n=V(o.provider,o.prefix),i=o.name;return n.icons[i]||(n.missing.has(i)?null:void 0)}}function Ut(t,o){const n=A(t,!0,D);if(!n)return!1;const i=V(n.provider,n.prefix);return o?Rt(i,n.name,o):(i.missing.add(n.name),!0)}function Ht(t,o){if(typeof t!="object")return!1;if(typeof o!="string"&&(o=t.provider||""),D&&!o&&!t.prefix){let s=!1;return rt(t)&&(t.prefix="",at(t,(l,a)=>{Ut(l,a)&&(s=!0)})),s}const n=t.prefix;if(!M({prefix:n,name:"a"}))return!1;const i=V(o,n);return!!dt(i,t)}const ut=Object.freeze({width:null,height:null}),mt=Object.freeze({...ut,...j}),Gt=/(-?[0-9.]*[0-9]+[0-9.]*)/g,Qt=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function pt(t,o,n){if(o===1)return t;if(n=n||100,typeof t=="number")return Math.ceil(t*o*n)/n;if(typeof t!="string")return t;const i=t.split(Gt);if(i===null||!i.length)return t;const s=[];let l=i.shift(),a=Qt.test(l);for(;;){if(a){const r=parseFloat(l);isNaN(r)?s.push(l):s.push(Math.ceil(r*o*n)/n)}else s.push(l);if(l=i.shift(),l===void 0)return s.join("");a=!a}}function Kt(t,o="defs"){let n="";const i=t.indexOf("<"+o);for(;i>=0;){const s=t.indexOf(">",i),l=t.indexOf("</"+o);if(s===-1||l===-1)break;const a=t.indexOf(">",l);if(a===-1)break;n+=t.slice(s+1,l).trim(),t=t.slice(0,i).trim()+t.slice(a+1)}return{defs:n,content:t}}function Zt(t,o){return t?"<defs>"+t+"</defs>"+o:o}function Xt(t,o,n){const i=Kt(t);return Zt(i.defs,o+i.content+n)}const Yt=t=>t==="unset"||t==="undefined"||t==="none";function Jt(t,o){const n={...O,...t},i={...mt,...o},s={left:n.left,top:n.top,width:n.width,height:n.height};let l=n.body;[n,i].forEach(g=>{const f=[],S=g.hFlip,B=g.vFlip;let y=g.rotate;S?B?y+=2:(f.push("translate("+(s.width+s.left).toString()+" "+(0-s.top).toString()+")"),f.push("scale(-1 1)"),s.top=s.left=0):B&&(f.push("translate("+(0-s.left).toString()+" "+(s.height+s.top).toString()+")"),f.push("scale(1 -1)"),s.top=s.left=0);let b;switch(y<0&&(y-=Math.floor(y/4)*4),y=y%4,y){case 1:b=s.height/2+s.top,f.unshift("rotate(90 "+b.toString()+" "+b.toString()+")");break;case 2:f.unshift("rotate(180 "+(s.width/2+s.left).toString()+" "+(s.height/2+s.top).toString()+")");break;case 3:b=s.width/2+s.left,f.unshift("rotate(-90 "+b.toString()+" "+b.toString()+")");break}y%2===1&&(s.left!==s.top&&(b=s.left,s.left=s.top,s.top=b),s.width!==s.height&&(b=s.width,s.width=s.height,s.height=b)),f.length&&(l=Xt(l,'<g transform="'+f.join(" ")+'">',"</g>"))});const a=i.width,r=i.height,c=s.width,d=s.height;let u,m;a===null?(m=r===null?"1em":r==="auto"?d:r,u=pt(m,c/d)):(u=a==="auto"?c:a,m=r===null?pt(u,d/c):r==="auto"?d:r);const h={},k=(g,f)=>{Yt(f)||(h[g]=f.toString())};k("width",u),k("height",m);const C=[s.left,s.top,c,d];return h.viewBox=C.join(" "),{attributes:h,viewBox:C,body:l}}const vt=/\sid="(\S+)"/g,te="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let ee=0;function ne(t,o=te){const n=[];let i;for(;i=vt.exec(t);)n.push(i[1]);if(!n.length)return t;const s="suffix"+(Math.random()*16777216|Date.now()).toString(16);return n.forEach(l=>{const a=typeof o=="function"?o(l):o+(ee++).toString(),r=l.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");t=t.replace(new RegExp('([#;"])('+r+')([")]|\\.[a-z])',"g"),"$1"+a+s+"$3")}),t=t.replace(new RegExp(s,"g"),""),t}const Q=Object.create(null);function oe(t,o){Q[t]=o}function K(t){return Q[t]||Q[""]}function Z(t){let o;if(typeof t.resources=="string")o=[t.resources];else if(o=t.resources,!(o instanceof Array)||!o.length)return null;return{resources:o,path:t.path||"/",maxURL:t.maxURL||500,rotate:t.rotate||750,timeout:t.timeout||5e3,random:t.random===!0,index:t.index||0,dataAfterTimeout:t.dataAfterTimeout!==!1}}const X=Object.create(null),T=["https://api.simplesvg.com","https://api.unisvg.com"],z=[];for(;T.length>0;)T.length===1||Math.random()>.5?z.push(T.shift()):z.push(T.pop());X[""]=Z({resources:["https://api.iconify.design"].concat(z)});function se(t,o){const n=Z(o);return n===null?!1:(X[t]=n,!0)}function Y(t){return X[t]}let ht=(()=>{let t;try{if(t=fetch,typeof t=="function")return t}catch{}})();function ie(t,o){const n=Y(t);if(!n)return 0;let i;if(!n.maxURL)i=0;else{let s=0;n.resources.forEach(a=>{s=Math.max(s,a.length)});const l=o+".json?icons=";i=n.maxURL-s-n.path.length-l.length}return i}function le(t){return t===404}const ae=(t,o,n)=>{const i=[],s=ie(t,o),l="icons";let a={type:l,provider:t,prefix:o,icons:[]},r=0;return n.forEach((c,d)=>{r+=c.length+1,r>=s&&d>0&&(i.push(a),a={type:l,provider:t,prefix:o,icons:[]},r=c.length),a.icons.push(c)}),i.push(a),i};function re(t){if(typeof t=="string"){const o=Y(t);if(o)return o.path}return"/"}const ce={prepare:ae,send:(t,o,n)=>{if(!ht){n("abort",424);return}let i=re(o.provider);switch(o.type){case"icons":{const l=o.prefix,r=o.icons.join(","),c=new URLSearchParams({icons:r});i+=l+".json?"+c.toString();break}case"custom":{const l=o.uri;i+=l.slice(0,1)==="/"?l.slice(1):l;break}default:n("abort",400);return}let s=503;ht(t+i).then(l=>{const a=l.status;if(a!==200){setTimeout(()=>{n(le(a)?"abort":"next",a)});return}return s=501,l.json()}).then(l=>{if(typeof l!="object"||l===null){setTimeout(()=>{l===404?n("abort",l):n("next",s)});return}setTimeout(()=>{n("success",l)})}).catch(()=>{n("next",s)})}};function de(t){const o={loaded:[],missing:[],pending:[]},n=Object.create(null);t.sort((s,l)=>s.provider!==l.provider?s.provider.localeCompare(l.provider):s.prefix!==l.prefix?s.prefix.localeCompare(l.prefix):s.name.localeCompare(l.name));let i={provider:"",prefix:"",name:""};return t.forEach(s=>{if(i.name===s.name&&i.prefix===s.prefix&&i.provider===s.provider)return;i=s;const l=s.provider,a=s.prefix,r=s.name,c=n[l]||(n[l]=Object.create(null)),d=c[a]||(c[a]=V(l,a));let u;r in d.icons?u=o.loaded:a===""||d.missing.has(r)?u=o.missing:u=o.pending;const m={provider:l,prefix:a,name:r};u.push(m)}),o}function gt(t,o){t.forEach(n=>{const i=n.loaderCallbacks;i&&(n.loaderCallbacks=i.filter(s=>s.id!==o))})}function fe(t){t.pendingCallbacksFlag||(t.pendingCallbacksFlag=!0,setTimeout(()=>{t.pendingCallbacksFlag=!1;const o=t.loaderCallbacks?t.loaderCallbacks.slice(0):[];if(!o.length)return;let n=!1;const i=t.provider,s=t.prefix;o.forEach(l=>{const a=l.icons,r=a.pending.length;a.pending=a.pending.filter(c=>{if(c.prefix!==s)return!0;const d=c.name;if(t.icons[d])a.loaded.push({provider:i,prefix:s,name:d});else if(t.missing.has(d))a.missing.push({provider:i,prefix:s,name:d});else return n=!0,!0;return!1}),a.pending.length!==r&&(n||gt([t],l.id),l.callback(a.loaded.slice(0),a.missing.slice(0),a.pending.slice(0),l.abort))})}))}let ue=0;function me(t,o,n){const i=ue++,s=gt.bind(null,n,i);if(!o.pending.length)return s;const l={id:i,icons:o,callback:t,abort:s};return n.forEach(a=>{(a.loaderCallbacks||(a.loaderCallbacks=[])).push(l)}),s}function pe(t,o=!0,n=!1){const i=[];return t.forEach(s=>{const l=typeof s=="string"?A(s,o,n):s;l&&i.push(l)}),i}var he={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function ge(t,o,n,i){const s=t.resources.length,l=t.random?Math.floor(Math.random()*s):t.index;let a;if(t.random){let _=t.resources.slice(0);for(a=[];_.length>1;){const w=Math.floor(Math.random()*_.length);a.push(_[w]),_=_.slice(0,w).concat(_.slice(w+1))}a=a.concat(_)}else a=t.resources.slice(l).concat(t.resources.slice(0,l));const r=Date.now();let c="pending",d=0,u,m=null,h=[],k=[];typeof i=="function"&&k.push(i);function C(){m&&(clearTimeout(m),m=null)}function g(){c==="pending"&&(c="aborted"),C(),h.forEach(_=>{_.status==="pending"&&(_.status="aborted")}),h=[]}function f(_,w){w&&(k=[]),typeof _=="function"&&k.push(_)}function S(){return{startTime:r,payload:o,status:c,queriesSent:d,queriesPending:h.length,subscribe:f,abort:g}}function B(){c="failed",k.forEach(_=>{_(void 0,u)})}function y(){h.forEach(_=>{_.status==="pending"&&(_.status="aborted")}),h=[]}function b(_,w,F){const R=w!=="success";switch(h=h.filter($=>$!==_),c){case"pending":break;case"failed":if(R||!t.dataAfterTimeout)return;break;default:return}if(w==="abort"){u=F,B();return}if(R){u=F,h.length||(a.length?ot():B());return}if(C(),y(),!t.random){const $=t.resources.indexOf(_.resource);$!==-1&&$!==t.index&&(t.index=$)}c="completed",k.forEach($=>{$(F)})}function ot(){if(c!=="pending")return;C();const _=a.shift();if(_===void 0){if(h.length){m=setTimeout(()=>{C(),c==="pending"&&(y(),B())},t.timeout);return}B();return}const w={status:"pending",resource:_,callback:(F,R)=>{b(w,F,R)}};h.push(w),d++,m=setTimeout(ot,t.rotate),n(_,o,w.callback)}return setTimeout(ot),S}function yt(t){const o={...he,...t};let n=[];function i(){n=n.filter(r=>r().status==="pending")}function s(r,c,d){const u=ge(o,r,c,(m,h)=>{i(),d&&d(m,h)});return n.push(u),u}function l(r){return n.find(c=>r(c))||null}return{query:s,find:l,setIndex:r=>{o.index=r},getIndex:()=>o.index,cleanup:i}}function _t(){}const J=Object.create(null);function ye(t){if(!J[t]){const o=Y(t);if(!o)return;const n=yt(o),i={config:o,redundancy:n};J[t]=i}return J[t]}function _e(t,o,n){let i,s;if(typeof t=="string"){const l=K(t);if(!l)return n(void 0,424),_t;s=l.send;const a=ye(t);a&&(i=a.redundancy)}else{const l=Z(t);if(l){i=yt(l);const a=t.resources?t.resources[0]:"",r=K(a);r&&(s=r.send)}}return!i||!s?(n(void 0,424),_t):i.query(o,s,n)().abort}function kt(){}function ke(t){t.iconsLoaderFlag||(t.iconsLoaderFlag=!0,setTimeout(()=>{t.iconsLoaderFlag=!1,fe(t)}))}function be(t){const o=[],n=[];return t.forEach(i=>{(i.match(st)?o:n).push(i)}),{valid:o,invalid:n}}function I(t,o,n){function i(){const s=t.pendingIcons;o.forEach(l=>{s&&s.delete(l),t.icons[l]||t.missing.add(l)})}if(n&&typeof n=="object")try{if(!dt(t,n).length){i();return}}catch(s){console.error(s)}i(),ke(t)}function bt(t,o){t instanceof Promise?t.then(n=>{o(n)}).catch(()=>{o(null)}):o(t)}function Ce(t,o){t.iconsToLoad?t.iconsToLoad=t.iconsToLoad.concat(o).sort():t.iconsToLoad=o,t.iconsQueueFlag||(t.iconsQueueFlag=!0,setTimeout(()=>{t.iconsQueueFlag=!1;const{provider:n,prefix:i}=t,s=t.iconsToLoad;if(delete t.iconsToLoad,!s||!s.length)return;const l=t.loadIcon;if(t.loadIcons&&(s.length>1||!l)){bt(t.loadIcons(s,i,n),u=>{I(t,s,u)});return}if(l){s.forEach(u=>{const m=l(u,i,n);bt(m,h=>{const k=h?{prefix:i,icons:{[u]:h}}:null;I(t,[u],k)})});return}const{valid:a,invalid:r}=be(s);if(r.length&&I(t,r,null),!a.length)return;const c=i.match(st)?K(n):null;if(!c){I(t,a,null);return}c.prepare(n,i,a).forEach(u=>{_e(n,u,m=>{I(t,u.icons,m)})})}))}const Be=(t,o)=>{const n=pe(t,!0,ft()),i=de(n);if(!i.pending.length){let c=!0;return o&&setTimeout(()=>{c&&o(i.loaded,i.missing,i.pending,kt)}),()=>{c=!1}}const s=Object.create(null),l=[];let a,r;return i.pending.forEach(c=>{const{provider:d,prefix:u}=c;if(u===r&&d===a)return;a=d,r=u,l.push(V(d,u));const m=s[d]||(s[d]=Object.create(null));m[u]||(m[u]=[])}),i.pending.forEach(c=>{const{provider:d,prefix:u,name:m}=c,h=V(d,u),k=h.pendingIcons||(h.pendingIcons=new Set);k.has(m)||(k.add(m),s[d][u].push(m))}),l.forEach(c=>{const d=s[c.provider][c.prefix];d.length&&Ce(c,d)}),o?me(o,i,l):kt};function Se(t,o){const n={...t};for(const i in o){const s=o[i],l=typeof s;i in ut?(s===null||s&&(l==="string"||l==="number"))&&(n[i]=s):l===typeof n[i]&&(n[i]=i==="rotate"?s%4:s)}return n}const Ee=/[\s,]+/;function we(t,o){o.split(Ee).forEach(n=>{switch(n.trim()){case"horizontal":t.hFlip=!0;break;case"vertical":t.vFlip=!0;break}})}function Ne(t,o=0){const n=t.replace(/^-?[0-9.]*/,"");function i(s){for(;s<0;)s+=4;return s%4}if(n===""){const s=parseInt(t);return isNaN(s)?0:i(s)}else if(n!==t){let s=0;switch(n){case"%":s=25;break;case"deg":s=90}if(s){let l=parseFloat(t.slice(0,t.length-n.length));return isNaN(l)?0:(l=l/s,l%1===0?i(l):0)}}return o}function xe(t,o){let n=t.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const i in o)n+=" "+i+'="'+o[i]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+n+">"+t+"</svg>"}function $e(t){return t.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function Ve(t){return"data:image/svg+xml,"+$e(t)}function Pe(t){return'url("'+Ve(t)+'")'}const Ct={...mt,inline:!1},De={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":!0,role:"img"},Te={display:"inline-block"},v={backgroundColor:"currentColor"},Bt={backgroundColor:"transparent"},St={Image:"var(--svg)",Repeat:"no-repeat",Size:"100% 100%"},Et={webkitMask:v,mask:v,background:Bt};for(const t in Et){const o=Et[t];for(const n in St)o[t+n]=St[n]}const W={};["horizontal","vertical"].forEach(t=>{const o=t.slice(0,1)+"Flip";W[t+"-flip"]=o,W[t.slice(0,1)+"-flip"]=o,W[t+"Flip"]=o});function wt(t){return t+(t.match(/^[-0-9.]+$/)?"px":"")}const Nt=(t,o)=>{const n=Se(Ct,o),i={...De},s=o.mode||"svg",l={},a=o.style,r=typeof a=="object"&&!(a instanceof Array)?a:{};for(let g in o){const f=o[g];if(f!==void 0)switch(g){case"icon":case"style":case"onLoad":case"mode":case"ssr":break;case"inline":case"hFlip":case"vFlip":n[g]=f===!0||f==="true"||f===1;break;case"flip":typeof f=="string"&&we(n,f);break;case"color":l.color=f;break;case"rotate":typeof f=="string"?n[g]=Ne(f):typeof f=="number"&&(n[g]=f);break;case"ariaHidden":case"aria-hidden":f!==!0&&f!=="true"&&delete i["aria-hidden"];break;default:{const S=W[g];S?(f===!0||f==="true"||f===1)&&(n[S]=!0):Ct[g]===void 0&&(i[g]=f)}}}const c=Jt(t,n),d=c.attributes;if(n.inline&&(l.verticalAlign="-0.125em"),s==="svg"){i.style={...l,...r},Object.assign(i,d);let g=0,f=o.id;return typeof f=="string"&&(f=f.replace(/-/g,"_")),i.innerHTML=ne(c.body,f?()=>f+"ID"+g++:"iconifyVue"),e.h("svg",i)}const{body:u,width:m,height:h}=t,k=s==="mask"||(s==="bg"?!1:u.indexOf("currentColor")!==-1),C=xe(u,{...d,width:m+"",height:h+""});return i.style={...l,"--svg":Pe(C),width:wt(d.width),height:wt(d.height),...Te,...k?v:Bt,...r},e.h("span",i)};if(ft(!0),oe("",ce),typeof document<"u"&&typeof window<"u"){const t=window;if(t.IconifyPreload!==void 0){const o=t.IconifyPreload,n="Invalid IconifyPreload syntax.";typeof o=="object"&&o!==null&&(o instanceof Array?o:[o]).forEach(i=>{try{(typeof i!="object"||i===null||i instanceof Array||typeof i.icons!="object"||typeof i.prefix!="string"||!Ht(i))&&console.error(n)}catch{console.error(n)}})}if(t.IconifyProviders!==void 0){const o=t.IconifyProviders;if(typeof o=="object"&&o!==null)for(let n in o){const i="IconifyProviders["+n+"] is invalid.";try{const s=o[n];if(typeof s!="object"||!s||s.resources===void 0)continue;se(n,s)||console.error(i)}catch{console.error(i)}}}}const Ie={...O,body:""},P=e.defineComponent({inheritAttrs:!1,data(){return{_name:"",_loadingIcon:null,iconMounted:!1,counter:0}},mounted(){this.iconMounted=!0},unmounted(){this.abortLoading()},methods:{abortLoading(){this._loadingIcon&&(this._loadingIcon.abort(),this._loadingIcon=null)},getIcon(t,o,n){if(typeof t=="object"&&t!==null&&typeof t.body=="string")return this._name="",this.abortLoading(),{data:t};let i;if(typeof t!="string"||(i=A(t,!1,!0))===null)return this.abortLoading(),null;let s=qt(i);if(!s)return(!this._loadingIcon||this._loadingIcon.name!==t)&&(this.abortLoading(),this._name="",s!==null&&(this._loadingIcon={name:t,abort:Be([i],()=>{this.counter++})})),null;if(this.abortLoading(),this._name!==t&&(this._name=t,o&&o(t)),n){s=Object.assign({},s);const a=n(s.body,i.name,i.prefix,i.provider);typeof a=="string"&&(s.body=a)}const l=["iconify"];return i.prefix!==""&&l.push("iconify--"+i.prefix),i.provider!==""&&l.push("iconify--"+i.provider),{data:s,classes:l}}},render(){this.counter;const t=this.$attrs,o=this.iconMounted||t.ssr?this.getIcon(t.icon,t.onLoad,t.customise):null;if(!o)return Nt(Ie,t);let n=t;return o.classes&&(n={...t,class:(typeof t.class=="string"?t.class+" ":"")+o.classes.join(" ")}),Nt({...O,...o.data},n)}});function xt(t,o){return o===1?t:`${t}/${o}`}const $t=()=>({getLinkToPaginatedPage:xt}),Le={class:"d-shape"},Fe={key:0,class:"d-shape__bg-wrapper"},E=e.defineComponent({name:"DWrapShape",__name:"DWrapShape",props:{shapeClass:{},shapeStyle:{type:[Boolean,null,String,Object,Array]},filterClass:{},filterStyle:{type:[Boolean,null,String,Object,Array]},tag:{}},setup(t){const o=t,n=e.useSlots();function i(r){return r?typeof r=="string"?!r.trim():Object.keys(r).length===0:!0}function s(r){return typeof r=="string"?!r.trim():Array.isArray(r)?r.length===0:r===null||r===void 0?!0:Object.keys(r).length===0}const l=e.computed(()=>n["shape-content"]||!i(o.shapeClass)?!0:!s(o.shapeStyle)),a=e.computed(()=>i(o.filterClass)?!s(o.filterStyle):!0);return(r,c)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(r.tag??"div"),null,{default:e.withCtx(()=>[e.createElementVNode("div",Le,[l.value||n["bg-overlay"]||a.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["d-shape__bg-filter",r.filterClass]),style:e.normalizeStyle(r.filterStyle)},[l.value||n["bg-overlay"]?(e.openBlock(),e.createElementBlock("div",Fe,[l.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["d-shape__bg",r.shapeClass]),style:e.normalizeStyle(r.shapeStyle)},[e.renderSlot(r.$slots,"shape-content")],6)):e.createCommentVNode("",!0),e.renderSlot(r.$slots,"bg-overlay")])):e.createCommentVNode("",!0)],6)):e.createCommentVNode("",!0),e.renderSlot(r.$slots,"default")])]),_:3}))}}),Ae={key:0,class:"d-focus-hl__hl--negative-tile"},Me={key:2,class:"d-focus-hl__hl--negative-list-item"},je={key:4,class:"d-focus-hl__hl--negative-tile"},Oe={key:5,class:"d-focus-hl__hl--negative-list-item"},ze={name:"DWrapFocusHighlight",components:{DWrapShape:E}},L=e.defineComponent({...ze,props:{linkExact:Boolean,noPassiveLink:Boolean,active:Boolean,variant:{type:String,default:"negative-tile"},tag:{type:String,default:"div"},colorClass:{type:[String,Object],default:"d-focus-hl--default-color"}},setup(t){const o=t,n=e.computed(()=>o.to||o.href?resolveComponent("NuxtLink"):o.tag);return(i,s)=>(e.openBlock(),e.createBlock(E,null,{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(n.value),e.mergeProps(o,{class:["d-focus-hl d-focusable",{"d-focus-hl--exact":t.linkExact,"d-focus-hl--not-exact":!t.linkExact,"d-focus-hl--no-passive-link":t.noPassiveLink,"d-focus-hl--active":t.active}]}),{default:e.withCtx(()=>[t.variant==="negative-tile"?(e.openBlock(),e.createElementBlock("div",Ae)):t.variant==="tile"||t.variant==="composite-tile"?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(["d-focus-hl__hl--tile",t.colorClass])},null,2)):t.variant==="negative-list-item"?(e.openBlock(),e.createElementBlock("div",Me)):t.variant==="list-item"||t.variant==="composite-list-item"?(e.openBlock(),e.createElementBlock("div",{key:3,class:e.normalizeClass(["d-focus-hl__hl--list-item",t.colorClass])},null,2)):e.createCommentVNode("",!0),e.renderSlot(i.$slots,"default"),t.variant==="composite-tile"?(e.openBlock(),e.createElementBlock("div",je)):t.variant==="composite-list-item"?(e.openBlock(),e.createElementBlock("div",Oe)):e.createCommentVNode("",!0)]),_:3},16,["class"]))]),_:3}))}});function Vt(t){const o=e.resolveDynamicComponent("RouterLink"),n=typeof defineNuxtLink=="function"?defineNuxtLink({componentName:"DNuxtLink"}):void 0,i=e.computed(()=>!!(t.href||t.to)),s=e.computed(()=>{if(!t.href)return!1;const a=t.href;return a.startsWith("http")||a.startsWith("mailto:")||a.startsWith("tel:")||a.startsWith("#")}),l=e.computed(()=>{const a={...t};return t.href&&t.to?delete a.href:t.href?delete a.to:t.to&&delete a.href,a});return i.value?s.value?{isLink:i,isExternalLink:s,linkComponent:"a",propsToProvide:l}:typeof n<"u"?{isLink:i,isExternalLink:s,linkComponent:n,propsToProvide:l}:typeof o!="string"?{isLink:i,isExternalLink:s,linkComponent:o,propsToProvide:l}:{isLink:i,isExternalLink:s,linkComponent:"a",propsToProvide:l}:{isLink:i,isExternalLink:s,linkComponent:t.tag||"span",propsToProvide:l}}const We={name:"DBtn",components:{DWrapFocusHighlight:L}},N=e.defineComponent({...We,props:{to:{type:[String,Object],default:""},href:{type:String,default:void 0},exact:Boolean,noPassiveHighlight:Boolean,active:Boolean,noRotate:Boolean,tag:{type:String,default:"button"},highlight:{type:String,default:void 0},colorClass:{type:[String,Object],default:void 0},textTransform:{type:String,default:"uppercase"}},setup(t){const o=t,{linkComponent:n,isLink:i,isExternalLink:s,propsToProvide:l}=Vt(o);return(a,r)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(n)),e.mergeProps({class:["d-btn d-focusable",{"d-btn--rotated":!t.noRotate,"d-btn--uppercase":t.textTransform==="uppercase","d-btn--capitalize":t.textTransform==="capitalize","d-btn--lowercase":t.textTransform==="lowercase"}]},e.unref(l)),{default:e.withCtx(()=>[e.createVNode(L,{variant:t.highlight,"link-exact":t.exact,"no-passive-link":t.noPassiveHighlight||!e.unref(i)||e.unref(s),"color-class":t.colorClass,active:t.active},{default:e.withCtx(()=>[e.renderSlot(a.$slots,"default")]),_:3},8,["variant","link-exact","no-passive-link","color-class","active"])]),_:3},16,["class"]))}}),Re={class:"w-fit text-2xl font-bold"},qe={key:2,class:"mx-1"},Ue={key:3,class:"mx-1"},He={name:"DPagination",components:{DBtn:N,Icon:P}},Ge=e.defineComponent({...He,props:{currentPage:{type:Number,default:1},allPages:{type:Number,required:!0},baseLink:{type:String,required:!0}},setup(t){const o=t,{getLinkToPaginatedPage:n}=$t();function i(l){return n(o.baseLink,l)}const s=e.computed(()=>Array.from({length:7},(l,a)=>a-3+o.currentPage).filter(l=>l>=1&&l<=o.allPages));return(l,a)=>(e.openBlock(),e.createElementBlock("nav",Re,[t.currentPage>1?(e.openBlock(),e.createBlock(N,{key:0,class:"inline-block mx-1",to:i(t.currentPage-1),"aria-label":"Previous page"},{default:e.withCtx(()=>[e.createVNode(e.unref(P),{icon:"ic:baseline-arrow-back-ios"})]),_:1},8,["to"])):e.createCommentVNode("",!0),s.value.includes(1)?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(N,{key:1,class:"inline-block mx-1",to:i(1),"aria-label":"First page"},{default:e.withCtx(()=>a[0]||(a[0]=[e.createTextVNode(" 1 ")])),_:1},8,["to"])),s.value.includes(1)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("span",qe," ... ")),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.value,r=>(e.openBlock(),e.createBlock(N,{key:r,class:"inline-block mx-1",to:i(r),"aria-label":`Page ${r}`},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(r),1)]),_:2},1032,["to","aria-label"]))),128)),s.value.includes(t.allPages)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("span",Ue," ... ")),s.value.includes(t.allPages)?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(N,{key:4,class:"inline-block mx-1",to:i(t.allPages),"aria-label":`Last page (${t.allPages})`},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.allPages),1)]),_:1},8,["to","aria-label"])),t.currentPage<t.allPages?(e.openBlock(),e.createBlock(N,{key:5,class:"inline-block mx-1",to:i(t.currentPage+1),"aria-label":"Next page"},{default:e.withCtx(()=>[e.createVNode(e.unref(P),{icon:"ic:baseline-arrow-forward-ios"})]),_:1},8,["to"])):e.createCommentVNode("",!0)]))}}),Qe={class:"max-w-full"},Ke={class:"stats__print-value"},Ze={class:"stats__print-value__group-title"},Xe={class:"stats__print-value--small"},Ye={class:"stats"},Je={viewBox:"-500 -500 2000 2000",xmlns:"http://www.w3.org/2000/svg"},ve=["points"],tn=["points"],en={class:"stats__single-stat"},nn=["points"],on=["points"],sn={class:"stats__single-stat"},ln=["points"],an=["points"],rn={class:"stats__single-stat"},cn=["points"],dn=["points"],fn={class:"stats__single-stat"},un=["points"],mn=["points"],pn={class:"stats__single-stat"},hn=["points"],gn=["points"],yn={class:"stats__images"},_n={class:"stats__image"},kn={class:"stats__image"},bn={class:"stats__image"},Cn={class:"stats__image"},Bn={class:"stats__image"},Sn={viewBox:"-500 -500 2000 2000",xmlns:"http://www.w3.org/2000/svg",class:"stats_titles-layer"},En={x:"-500",y:"-300",class:"stats__group-title"},wn=["x","y","transform-origin"],Nn={class:"stats__title__value"},xn=["x","y","transform-origin"],$n={class:"stats__title__value"},Vn=["x","y","transform-origin"],Pn={class:"stats__title__value"},Dn=["x","y","transform-origin"],Tn={class:"stats__title__value"},In=["x","y","transform-origin"],Ln={class:"stats__title__value"},Fn={name:"DStats",components:{Icon:P}},An=e.defineComponent({...Fn,props:{groupTitle:{},titles:{},values:{}},setup(t){const o=t,n=e.ref([[500,0],[630,330],[980,350],[700,590],[790,910],[500,720],[210,910],[300,590],[20,350],[370,330]]),i=e.ref([1,.8,.6,.4,.27]),s={1:0,"1-2":1,2:2,"2-3":3,3:4,"3-4":5,4:6,"4-5":7,5:8,"5-1":9},l=[500,500];function a(f){return f.map(S=>S.join(",")).join(" ")}function r(f,S,B=500,y=500){return f.map(b=>[b[0]-(b[0]-B)*(1-S),b[1]-(b[1]-y)*(1-S)])}const c=e.computed(()=>i.value.map(f=>r(n.value,f)));function d(f){return c.value[5-f]}function u(f){return{value:o.values?o.values[f]??1:1,title:o.titles?o.titles[f]??"":""}}const m=e.computed(()=>u(0)),h=e.computed(()=>u(1)),k=e.computed(()=>u(2)),C=e.computed(()=>u(3)),g=e.computed(()=>u(4));return(f,S)=>(e.openBlock(),e.createElementBlock("figure",Qe,[e.createElementVNode("div",Ke,[e.createElementVNode("div",Ze,e.toDisplayString(f.groupTitle),1),e.createElementVNode("div",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(f.titles,(B,y)=>(e.openBlock(),e.createElementBlock("div",{key:B,class:"stats__print-value__skill"},[e.createElementVNode("div",null,e.toDisplayString(B),1),e.createElementVNode("div",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(f.values[y],b=>(e.openBlock(),e.createBlock(e.unref(P),{key:b,icon:"ic:sharp-star"}))),128)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(5-f.values[y],b=>(e.openBlock(),e.createBlock(e.unref(P),{key:b,icon:"ic:sharp-star-border"}))),128))])]))),128))])]),e.createElementVNode("div",Xe,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(f.titles,(B,y)=>(e.openBlock(),e.createElementBlock("span",{key:B,class:e.normalizeClass(["stats__print-value--small__skill",{"stats__print-value--small__skill--hidden":f.values[y]<3,"stats__print-value--small__skill--3":f.values[y]===3,"stats__print-value--small__skill--4":f.values[y]===4,"stats__print-value--small__skill--5":f.values[y]===5}])},e.toDisplayString(B),3))),128))]),e.createElementVNode("div",Ye,[(e.openBlock(),e.createElementBlock("svg",Je,[S[0]||(S[0]=e.createElementVNode("polygon",{points:"100,-350 1500,-500 1000,1350 -500,1500",class:"stats__bg"},null,-1)),e.createElementVNode("polygon",{points:a(r(n.value,2)),class:"stats__bg-star--odd"},null,8,ve),e.createElementVNode("g",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,(B,y)=>(e.openBlock(),e.createElementBlock("polygon",{key:y,points:a(B),class:e.normalizeClass({"stats__bg-star--odd":y%2,"stats__bg-star--even":!(y%2)})},null,10,tn))),128))]),e.createElementVNode("g",null,[e.createElementVNode("g",en,[e.createElementVNode("polygon",{points:a([d(m.value.value)[s[1]],d(Math.min(m.value.value,g.value.value))[s["5-1"]],l]),class:"stats__star--dark"},null,8,nn),e.createElementVNode("polygon",{points:a([d(m.value.value)[s[1]],d(Math.min(m.value.value,h.value.value))[s["1-2"]],l]),class:"stats__star--light"},null,8,on)]),e.createElementVNode("g",sn,[e.createElementVNode("polygon",{points:a([d(h.value.value)[s[2]],d(Math.min(m.value.value,h.value.value))[s["1-2"]],l]),class:"stats__star--light"},null,8,ln),e.createElementVNode("polygon",{points:a([d(h.value.value)[s[2]],d(Math.min(k.value.value,h.value.value))[s["2-3"]],l]),class:"stats__star--dark"},null,8,an)]),e.createElementVNode("g",rn,[e.createElementVNode("polygon",{points:a([d(k.value.value)[s[3]],d(Math.min(h.value.value,k.value.value))[s["2-3"]],l]),class:"stats__star--light"},null,8,cn),e.createElementVNode("polygon",{points:a([d(k.value.value)[s[3]],d(Math.min(k.value.value,C.value.value))[s["3-4"]],l]),class:"stats__star--dark"},null,8,dn)]),e.createElementVNode("g",fn,[e.createElementVNode("polygon",{points:a([d(C.value.value)[s[4]],d(Math.min(k.value.value,C.value.value))[s["3-4"]],l]),class:"stats__star--light"},null,8,un),e.createElementVNode("polygon",{points:a([d(C.value.value)[s[4]],d(Math.min(C.value.value,g.value.value))[s["4-5"]],l]),class:"stats__star--dark"},null,8,mn)]),e.createElementVNode("g",pn,[e.createElementVNode("polygon",{points:a([d(g.value.value)[s[5]],d(Math.min(C.value.value,g.value.value))[s["4-5"]],l]),class:"stats__star--dark"},null,8,hn),e.createElementVNode("polygon",{points:a([d(g.value.value)[s[5]],d(Math.min(g.value.value,m.value.value))[s["5-1"]],l]),class:"stats__star--light"},null,8,gn)])])])),e.createElementVNode("div",yn,[e.createElementVNode("div",_n,[e.renderSlot(f.$slots,"icon-1")]),e.createElementVNode("div",kn,[e.renderSlot(f.$slots,"icon-2")]),e.createElementVNode("div",bn,[e.renderSlot(f.$slots,"icon-3")]),e.createElementVNode("div",Cn,[e.renderSlot(f.$slots,"icon-4")]),e.createElementVNode("div",Bn,[e.renderSlot(f.$slots,"icon-5")])]),(e.openBlock(),e.createElementBlock("svg",Sn,[e.createElementVNode("text",En,e.toDisplayString(f.groupTitle),1),e.createElementVNode("g",null,[e.createElementVNode("text",{x:n.value[s[1]][0],y:n.value[s[1]][1]-100,"transform-origin":`${n.value[s[1]][0]} ${n.value[s[1]][1]-100}`,class:"stats__title"},[e.createTextVNode(e.toDisplayString(m.value.title)+" ",1),e.createElementVNode("tspan",Nn,e.toDisplayString(m.value.value),1)],8,wn),e.createElementVNode("text",{x:n.value[s[2]][0]+100,y:n.value[s[2]][1]-100,"transform-origin":`${n.value[s[2]][0]+100} ${n.value[s[2]][1]-100}`,class:"stats__title"},[e.createTextVNode(e.toDisplayString(h.value.title)+" ",1),e.createElementVNode("tspan",$n,e.toDisplayString(h.value.value),1)],8,xn),e.createElementVNode("text",{"dominant-baseline":"hanging",x:n.value[s[3]][0]+150,y:n.value[s[3]][1]+150,"transform-origin":`${n.value[s[3]][0]+150} ${n.value[s[3]][1]+150}`,class:"stats__title"},[e.createTextVNode(e.toDisplayString(k.value.title)+" ",1),e.createElementVNode("tspan",Pn,e.toDisplayString(k.value.value),1)],8,Vn),e.createElementVNode("text",{"dominant-baseline":"hanging",x:n.value[s[4]][0]-150,y:n.value[s[4]][1]+150,"transform-origin":`${n.value[s[4]][0]-150} ${n.value[s[4]][1]+150}`,class:"stats__title"},[e.createTextVNode(e.toDisplayString(C.value.title)+" ",1),e.createElementVNode("tspan",Tn,e.toDisplayString(C.value.value),1)],8,Dn),e.createElementVNode("text",{x:n.value[s[5]][0]-100,y:n.value[s[5]][1]-100,"transform-origin":`${n.value[s[5]][0]-100} ${n.value[s[5]][1]-100}`,class:"stats__title"},[e.createTextVNode(e.toDisplayString(g.value.title)+" ",1),e.createElementVNode("tspan",Ln,e.toDisplayString(g.value.value),1)],8,In)])]))])]))}}),Mn={name:"DAnimationDefLetterD"},jn={d:"M200.242,139.244l137.207,-0c66.136,-0 112.859,17.192 140.169,51.576c27.31,34.384 33.562,84.973 18.755,151.767c-22.045,98.711 -85.878,148.066 -191.498,148.066l-179.16,-0l74.527,-351.409Zm184.588,179.159c12.175,-57.581 -7.732,-86.372 -59.72,-86.372l-33.068,0l-35.042,165.834l44.42,0c23.69,0 42.034,-6.169 55.031,-18.508c12.997,-12.339 22.457,-32.657 28.379,-60.954Z"};function On(t,o,n,i,s,l){return e.openBlock(),e.createElementBlock("path",jn)}const x=U(Mn,[["render",On]]),zn={name:"DAnimationAccordion",components:{DAnimationDefLetterD:x}},Wn=e.defineComponent({...zn,props:{wigglePeriod:{type:Number,default:10},delay:{type:Number,default:1}},setup(t){return(o,n)=>(e.openBlock(),e.createElementBlock("svg",{viewBox:"0 0 630 210",xmlns:"http://www.w3.org/2000/svg",class:"d-animation-accordion",style:e.normalizeStyle({"--d-accordion-wiggle-period":t.wigglePeriod+"s","--d-accordion-delay":t.delay+"s"})},[e.createElementVNode("defs",null,[e.createVNode(x,{id:"d-letter"}),n[0]||(n[0]=e.createElementVNode("use",{id:"d-accordion-section",href:"#d-letter",transform:"scale(0.33)"},null,-1))]),n[1]||(n[1]=e.createStaticVNode('<use href="#d-accordion-section" class="d-animation-accordion__section"></use><use href="#d-accordion-section" class="d-animation-accordion__section"></use><use href="#d-accordion-section" class="d-animation-accordion__section"></use><use href="#d-accordion-section" class="d-animation-accordion__section"></use><use href="#d-accordion-section" class="d-animation-accordion__section"></use><use href="#d-accordion-section" class="d-animation-accordion__section"></use>',6))],4))}}),Rn={name:"DAnimationFloatingLetter",components:{DAnimationDefLetterD:x}},qn=e.defineComponent({...Rn,props:{floatPeriod:{type:Number,default:5},pathClass:{type:[String,Object],default:""}},setup(t){return(o,n)=>(e.openBlock(),e.createElementBlock("svg",{viewBox:"0 0 630 630",xmlns:"http://www.w3.org/2000/svg",style:e.normalizeStyle({"--d-floating-letter-float-period":t.floatPeriod+"s"})},[e.createVNode(x,{class:e.normalizeClass(["d-animation-floating-letter",t.pathClass])},null,8,["class"])],4))}}),Un={name:"DAnimationHypnosis",components:{DAnimationDefLetterD:x}},Hn=e.defineComponent({...Un,props:{wigglePeriod:{type:Number,default:10},delay:{type:Number,default:1}},setup(t){return(o,n)=>(e.openBlock(),e.createElementBlock("svg",{viewBox:"0 0 630 630",xmlns:"http://www.w3.org/2000/svg",class:"d-animation-hypnosis",style:e.normalizeStyle({"--d-hypnosis-wiggle-period":t.wigglePeriod+"s","--d-hypnosis-delay":t.delay+"s"})},[e.createElementVNode("defs",null,[e.createVNode(x,{id:"d-letter"}),n[0]||(n[0]=e.createElementVNode("use",{id:"d-hypnosis-section",href:"#d-letter"},null,-1))]),n[1]||(n[1]=e.createStaticVNode('<use href="#d-hypnosis-section" class="d-animation-hypnosis__section"></use><use href="#d-hypnosis-section" class="d-animation-hypnosis__section"></use><use href="#d-hypnosis-section" class="d-animation-hypnosis__section"></use><use href="#d-hypnosis-section" class="d-animation-hypnosis__section"></use><use href="#d-hypnosis-section" class="d-animation-hypnosis__section"></use><use href="#d-hypnosis-section" class="d-animation-hypnosis__section"></use>',6))],4))}}),Gn={name:"DAnimationSpinner",components:{DAnimationDefLetterD:x}},Qn=e.defineComponent({...Gn,props:{spinPeriod:{type:Number,default:10},bladeWigglePeriod:{type:Number,default:5}},setup(t){const o="315 315";return(n,i)=>(e.openBlock(),e.createElementBlock("svg",{class:"spinner",viewBox:"0 0 630 630",xmlns:"http://www.w3.org/2000/svg",style:e.normalizeStyle({"--d-spinner-spin-period":t.spinPeriod+"s","--d-spinner-blade-wiggle-period":t.bladeWigglePeriod+"s"})},[e.createElementVNode("defs",null,[e.createVNode(x,{id:"d-letter"}),e.createElementVNode("use",{id:"d-spinner-blade",href:"#d-letter",class:"d-animation-spinner__blade","transform-origin":o}),e.createElementVNode("g",{id:"spinner",class:"d-animation-spinner__spinner","transform-origin":o},[e.createElementVNode("use",{href:"#d-spinner-blade",transform:"rotate(0)","transform-origin":o}),e.createElementVNode("use",{href:"#d-spinner-blade",transform:"rotate(120)","transform-origin":o}),e.createElementVNode("use",{href:"#d-spinner-blade",transform:"rotate(240)","transform-origin":o})])]),e.createElementVNode("use",{href:"#spinner",transform:"translate( -20 20 )",class:"d-animation-spinner__background","transform-origin":o}),e.createElementVNode("use",{href:"#spinner",class:"d-animation-spinner__foreground","transform-origin":o})],4))}}),Kn=e.ref(""),tt=()=>({text:Kn}),Zn={id:"big-bang-button-animation"},Xn=["i","textContent"],Yn={name:"DBigBangButtonAnimation"},Jn=e.defineComponent({...Yn,setup(t){const o={first:"M 0 0 C -489.471 -116.5 -526.692 -193.268 -563.913 -311.911",last:"M 0 0 C 317.761 171.963 466.645 199.879 680.666 171.963",intermediate:["M 0 0 C 36.277 125.437 19.992 358.068 -49.797 413.9","M 0 0 C 52.561 -69.974 71.171 -118.827 64.192 -446.837","M 0 0 C -3.271 137.068 -26.534 395.289 33.95 439.489"]},{text:n}=tt(),i=e.computed(()=>n.value.split(""));let s;e.watch(n,c=>{clearTimeout(s),c&&(s=setTimeout(()=>n.value="",1500))});function l(c){return c===0?o.first:c===i.value.length-1?o.last:o.intermediate[Math.floor(Math.random()*o.intermediate.length)]}function a(c,d){q.fromTo(c,{opacity:0,rotateX:-90},{opacity:1,rotateX:0,rotate:-12+Math.random()*24,delay:Math.random()*.3,duration:.2,onComplete:d})}function r(c,d){const u=+q.getProperty(c,"i");q.to(c,{motionPath:{path:l(u)},opacity:0,rotate:-180+Math.random()*360,duration:.2,onComplete:d})}return(c,d)=>(e.openBlock(),e.createElementBlock("div",Zn,[e.createVNode(e.TransitionGroup,{tag:"div",class:"bbb__text-container",onEnter:a,onLeave:r},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.value,(u,m)=>(e.openBlock(),e.createElementBlock("span",{key:m,i:m,textContent:e.toDisplayString(u)},null,8,Xn))),128))]),_:1})]))}}),vn=["textContent"],to={name:"DBigBangButton"},eo=e.defineComponent({...to,props:{text:{type:String,required:!0},tag:{type:String,default:"button"},to:{type:[String,Object],default:""}},emits:["click"],setup(t,{emit:o}){const n=o,i=t,{text:s}=tt(),{linkComponent:l}=Vt(i),a=e.computed(()=>i.text.split(""));function r(c){s.value=i.text,n("click",c)}return(c,d)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(l)),{to:t.to,class:"big-bang-button",onClick:r},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.value,(u,m)=>(e.openBlock(),e.createElementBlock("span",{key:m,textContent:e.toDisplayString(u)},null,8,vn))),128))]),_:1},8,["to"]))}}),no={name:"DCard",components:{DWrapShape:E}},oo=e.defineComponent({...no,props:{mode:{type:String,default:"default"},dense:Boolean},setup(t){return(o,n)=>(e.openBlock(),e.createBlock(E,{"shape-class":{card__bg:!t.dense,"card__bg--dense":t.dense},class:e.normalizeClass({"card--homepage-story force-light":t.mode==="homepage-story","card--homepage-skills force-light":t.mode==="homepage-skills",card:t.mode==="default"})},{default:e.withCtx(()=>[e.createElementVNode("div",{class:e.normalizeClass({card__content:!t.dense,"card__content--dense":t.dense})},[e.renderSlot(o.$slots,"default")],2)]),_:3},8,["shape-class","class"]))}}),so={name:"DCardTitle",components:{DWrapShape:E}},io={class:"card__title"},lo={class:"card__title__content__text"},ao={class:"ml-2 print:text-neutral-600"};function ro(t,o,n,i,s,l){const a=e.resolveComponent("DWrapShape");return e.openBlock(),e.createElementBlock("div",io,[e.createVNode(a,{class:"card__title__content","shape-class":"card__title__content__shape"},{default:e.withCtx(()=>[e.createElementVNode("h3",lo,[e.renderSlot(t.$slots,"default")])]),_:3}),e.createElementVNode("span",ao,[e.renderSlot(t.$slots,"extra")])])}const co=U(so,[["render",ro]]),fo={class:"d-alert__body"},uo={viewBox:"0 0 1067 1067",xmlns:"http://www.w3.org/2000/svg",class:"d-alert__sign"},mo={key:0},po={key:1},ho={key:2},go=e.defineComponent({__name:"DAlert",props:{type:{type:String,default:"info"}},setup(t){return(o,n)=>(e.openBlock(),e.createBlock(E,{class:e.normalizeClass(["d-alert",{"d-alert--info":t.type==="info","d-alert--question":t.type==="question","d-alert--warning":t.type==="warning"}]),"shape-class":"d-alert__shape"},{"bg-overlay":e.withCtx(()=>n[0]||(n[0]=[e.createElementVNode("div",{class:"d-alert__outline"},null,-1)])),default:e.withCtx(()=>[e.createElementVNode("div",fo,[e.renderSlot(o.$slots,"default"),(e.openBlock(),e.createElementBlock("svg",uo,[t.type==="info"?(e.openBlock(),e.createElementBlock("g",mo,n[1]||(n[1]=[e.createElementVNode("path",{d:"M202.481,1025.68l427.138,-769.216l171.992,106.943l-461.057,689.584l-138.073,-27.311Z"},null,-1),e.createElementVNode("path",{d:"M832.695,310.003l-170.011,-113.247l92.566,-170.289l218.937,122.443l-141.492,161.093Z"},null,-1)]))):e.createCommentVNode("",!0),t.type==="question"?(e.openBlock(),e.createElementBlock("g",po,n[2]||(n[2]=[e.createElementVNode("path",{d:"M289.17,836.982l100.67,63.007l-27.42,149.27l-200.047,-83.328l126.797,-128.949Z"},null,-1),e.createElementVNode("path",{d:"M335.818,766.179l95.499,91.347l134.944,-217.987l249.128,-6.228l174.389,-139.096l14.533,-236.672l-170.237,-224.215l-170.238,-8.304l-242.9,124.564l114.184,64.358l178.542,-41.522l161.933,130.793l-68.51,205.53l-203.455,-53.978l-178.542,70.587l-89.27,240.823Z"},null,-1)]))):e.createCommentVNode("",!0),t.type==="warning"?(e.openBlock(),e.createElementBlock("g",ho,n[3]||(n[3]=[e.createElementVNode("path",{d:"M304.988,722.034l335.792,-712.747l299.877,30.543l-514.204,743.146l-121.465,-60.942Z"},null,-1),e.createElementVNode("path",{d:"M253.974,839.059l148.42,40.169l-118.767,182.487l-131.537,-66.719l101.884,-155.937Z"},null,-1)]))):e.createCommentVNode("",!0)]))])]),_:3},8,["class"]))}}),yo={class:"d-blockquote__body"},_o=e.defineComponent({__name:"DQuote",props:{direction:{type:String,default:"right"}},setup(t){return(o,n)=>(e.openBlock(),e.createBlock(E,{tag:"blockquote",class:e.normalizeClass(["d-blockquote",{"d-blockquote--left":t.direction==="left","d-blockquote--right":t.direction==="right"}]),"shape-class":"d-blockquote__shape"},{"bg-overlay":e.withCtx(()=>n[0]||(n[0]=[e.createElementVNode("div",{class:"d-blockquote__outline"},null,-1)])),default:e.withCtx(()=>[e.createElementVNode("div",yo,[e.renderSlot(o.$slots,"default")])]),_:3},8,["class"]))}}),ko={name:"DActionsFan",components:{DWrapShape:E,DBtn:N}},bo=e.defineComponent({...ko,props:{actions:{type:Array,default:()=>[]},side:{type:String,default:"left"},filterClass:{type:[String,Object],default:""}},emits:["actionFocus","actionUnfocus","actionChoose"],setup(t){return(o,n)=>(e.openBlock(),e.createBlock(e.TransitionGroup,{name:"actions",tag:"ul",style:e.normalizeStyle({padding:`${Math.min(t.actions.length*2,15)}rem 0 ${Math.min(t.actions.length*3,15)}rem`})},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.actions,(i,s)=>(e.openBlock(),e.createBlock(E,{key:i.title,tag:"li",class:e.normalizeClass(["d-actions-fan__list-item",{[i.class??""]:!0,"d-actions-fan--right__list-item":t.side==="right","d-actions-fan--left__list-item":t.side==="left"}]),"filter-class":t.filterClass,style:e.normalizeStyle({...i.style,"--tw-rotate":`${t.side==="left"?12-s*18:-12+s*18}deg`}),"shape-class":{"d-actions-fan__list-item__shape":!0,[i.shapeClass??""]:!0,"d-actions-fan--right__list-item__shape":t.side==="right","d-actions-fan--left__list-item__shape":t.side==="left"},"shape-style":i.shapeStyle},{default:e.withCtx(()=>[e.createElementVNode("div",{class:e.normalizeClass(["d-actions-fan__list-item__body",{"d-actions-fan--right__list-item__body":t.side==="right"}])},[e.createVNode(N,e.mergeProps({ref_for:!0},i.attrs,{tag:"button","no-passive-highlight":"",onClick:l=>o.$emit("actionChoose",i.emit),onMouseenter:l=>o.$emit("actionFocus",i.emit),onTouchstart:l=>o.$emit("actionFocus",i.emit),onFocusin:l=>o.$emit("actionFocus",i.emit),onMouseleave:l=>o.$emit("actionUnfocus",i.emit),onTouchend:l=>o.$emit("actionUnfocus",i.emit),onFocusout:l=>o.$emit("actionUnfocus",i.emit)}),{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(i.title),1)]),_:2},1040,["onClick","onMouseenter","onTouchstart","onFocusin","onMouseleave","onTouchend","onFocusout"])],2)]),_:2},1032,["filter-class","class","style","shape-class","shape-style"]))),128))]),_:1},8,["style"]))}}),Co={class:"d-actions-list__body"},Bo={key:0,class:"d-actions-list__header"},So=e.defineComponent({name:"DActionsList",components:{DWrapFocusHighlight:L,DWrapShape:E},__name:"DActionsList",props:{actions:{type:Array,default:()=>[]},listClass:{type:[String,Object],default:""}},emits:["actionFocus","actionUnfocus","actionChoose"],setup(t){function o(i){var s;return(s=i.attrs)!=null&&s.highlightVariant?i.attrs.highlightVariant:"negative-list-item"}const n=e.useSlots();return(i,s)=>(e.openBlock(),e.createBlock(E,{"shape-class":"d-actions-list__shape"},{default:e.withCtx(()=>[e.createElementVNode("div",Co,[n.header?(e.openBlock(),e.createElementBlock("div",Bo,[e.renderSlot(i.$slots,"header")])):e.createCommentVNode("",!0),e.createVNode(e.TransitionGroup,{name:"actions",tag:"ul",class:e.normalizeClass(["d-actions-list__list",t.listClass])},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.actions,l=>(e.openBlock(),e.createElementBlock("li",{key:l.title},[e.createVNode(L,e.mergeProps({ref_for:!0},l.attrs,{tag:"button",variant:o(l),"no-passive-link":"",onClick:a=>i.$emit("actionChoose",l.emit),onMouseenter:a=>i.$emit("actionFocus",l.emit),onTouchstart:a=>i.$emit("actionFocus",l.emit),onFocusin:a=>i.$emit("actionFocus",l.emit),onMouseleave:a=>i.$emit("actionUnfocus",l.emit),onTouchend:a=>i.$emit("actionUnfocus",l.emit),onFocusout:a=>i.$emit("actionUnfocus",l.emit)}),{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(l.title),1)]),_:2},1040,["variant","onClick","onMouseenter","onTouchstart","onFocusin","onMouseleave","onTouchend","onFocusout"])]))),128))]),_:1},8,["class"])])]),_:3}))}}),Eo={key:0,class:"mbg__relative-container"},wo={key:1,class:"mbg__layer"},No={key:3,class:"mbg__content"},xo=e.defineComponent({name:"DWrapBackground",__name:"DWrapBackground",props:{overlayClass:{type:[String,Object],default:""},overlayStyle:{type:Object,default:()=>{}},dotsClass:{type:[String,Object],default:""},dotsStyle:{type:Object,default:()=>{}},dots:{type:Boolean,default:!1},tag:{type:String,default:"div"}},setup(t){const o=t,n=e.useSlots(),i=e.computed(()=>typeof o.overlayStyle=="string"?!o.overlayStyle.trim():Array.isArray(o.overlayStyle)?o.overlayStyle.length===0:o.overlayStyle===null||o.overlayStyle===void 0?!0:Object.keys(o.overlayStyle).length===0);return(s,l)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.tag),{class:"mbg__main-container"},{default:e.withCtx(()=>[t.overlayClass||!i.value||n.svg||n.default?(e.openBlock(),e.createElementBlock("div",Eo,[t.overlayClass||!i.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["mbg__layer",t.overlayClass]),style:e.normalizeStyle(t.overlayStyle)},null,6)):e.createCommentVNode("",!0),n.svg?(e.openBlock(),e.createElementBlock("div",wo,[e.renderSlot(s.$slots,"svg")])):e.createCommentVNode("",!0),t.dots?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(["mbg__layer mbg__dots",t.dotsClass]),style:e.normalizeStyle(t.dotsStyle)},null,6)):e.createCommentVNode("",!0),n.default?(e.openBlock(),e.createElementBlock("div",No,[e.renderSlot(s.$slots,"default")])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)]),_:3}))}});function Pt(t,o={}){return{top:()=>{var n;return(((n=t.value)==null?void 0:n.getBoundingClientRect().top)??0)+window.scrollY+(o.y?o.y():0)},bottom:()=>{var n;return(((n=t.value)==null?void 0:n.getBoundingClientRect().bottom)??0)+window.scrollY+(o.y?o.y():0)},right:()=>{var n;return(((n=t.value)==null?void 0:n.getBoundingClientRect().right)??0)+window.scrollX+(o.x?o.x():0)},left:()=>{var n;return(((n=t.value)==null?void 0:n.getBoundingClientRect().left)??0)+window.scrollX+(o.x?o.x():0)}}}function $o(t){const o=Pt(t);return{top:o.top(),bottom:o.bottom(),right:o.right(),left:o.left()}}function et(t){return t.map((o,n,i)=>{const s=i.reduce((a,r,c)=>(c>n?a.push(a.at(-1)):a.push(r.left),a),[]);return[...i.reduce((a,r,c)=>(c>n?a.push(a.at(-1)):a.push(r.right),a),[]),...s.reverse()]})}function Dt(t){const o=et(t),n=o.length,i=o[0].length,s=[];for(let l=0;l<i;l++){const a=[];for(let r=0;r<n;r++)a.push(o[r][l]);s.push(a)}return s}function Vo(t,o,n,i){const s=Dt(t);for(const l of s){const a=o.createSVGPoint();n.points.appendItem(a),i(a,l)}}function Po(t,o,n){const i=et(t).at(-1);if(i)for(const s of i){const l=o.createSVGPoint();l.x=s.x,l.y=s.y,n.points.appendItem(l)}}function nt(t){if(t.length!==2)throw new Error("Array should contain 2 numbers in order to be translated into coords");return{x:t[0],y:t[1]}}function Tt(t){if(t.length!==2)throw new Error("Array should contain 2 elements in order to be translated into LineEdge");return{left:nt(t[0]),right:nt(t[1])}}function Do(t){return t.map(Tt)}p.DActionsFan=bo,p.DActionsList=So,p.DAlert=go,p.DAnimationAccordion=Wn,p.DAnimationFloatingLetter=qn,p.DAnimationHypnosis=Hn,p.DAnimationSpinner=Qn,p.DBigBangButton=eo,p.DBigBangButtonAnimation=Jn,p.DBtn=N,p.DCard=oo,p.DCardTitle=co,p.DChip=At,p.DPagination=Ge,p.DQuote=_o,p.DStats=An,p.DWrapBackground=xo,p.DWrapFocusHighlight=L,p.DWrapShape=E,p.applyLinePerPointAnimation=Vo,p.applyStaticPoints=Po,p.createCoordsFromArray=nt,p.createLineEdgeFromArray=Tt,p.createLineFromArray=Do,p.generatePolygonLineKeyframes=et,p.generatePolygonPointsKeyframes=Dt,p.getAbsoluteBoundings=$o,p.getAbsoluteBoundingsGetters=Pt,p.getLinkToPaginatedPage=xt,p.useDBigBangButtonUtils=tt,p.useDPaginationUtils=$t,Object.defineProperty(p,Symbol.toStringTag,{value:"Module"})});
|
|
1
|
+
(function(h,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue"),require("gsap")):typeof define=="function"&&define.amd?define(["exports","vue","gsap"],e):(h=typeof globalThis<"u"?globalThis:h||self,e(h.EspritDesign={},h.Vue,h.gsap))})(this,function(h,e,q){"use strict";const At={name:"DChip"},U=(t,o)=>{const n=t.__vccOpts||t;for(const[i,s]of o)n[i]=s;return n},jt={class:"d-chip"};function Ot(t,o,n,i,s,l){return e.openBlock(),e.createElementBlock("span",jt,[e.renderSlot(t.$slots,"default")])}const zt=U(At,[["render",Ot]]),lt=/^[a-z0-9]+(-[a-z0-9]+)*$/,M=(t,o,n,i="")=>{const s=t.split(":");if(t.slice(0,1)==="@"){if(s.length<2||s.length>3)return null;i=s.shift().slice(1)}if(s.length>3||!s.length)return null;if(s.length>1){const a=s.pop(),d=s.pop(),c={provider:s.length>0?s[0]:i,prefix:d,name:a};return o&&!A(c)?null:c}const l=s[0],r=l.split("-");if(r.length>1){const a={provider:i,prefix:r.shift(),name:r.join("-")};return o&&!A(a)?null:a}if(n&&i===""){const a={provider:i,prefix:"",name:l};return o&&!A(a,n)?null:a}return null},A=(t,o)=>t?!!((o&&t.prefix===""||t.prefix)&&t.name):!1,rt=Object.freeze({left:0,top:0,width:16,height:16}),j=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),O=Object.freeze({...rt,...j}),H=Object.freeze({...O,body:"",hidden:!1});function Wt(t,o){const n={};!t.hFlip!=!o.hFlip&&(n.hFlip=!0),!t.vFlip!=!o.vFlip&&(n.vFlip=!0);const i=((t.rotate||0)+(o.rotate||0))%4;return i&&(n.rotate=i),n}function at(t,o){const n=Wt(t,o);for(const i in H)i in j?i in t&&!(i in n)&&(n[i]=j[i]):i in o?n[i]=o[i]:i in t&&(n[i]=t[i]);return n}function Rt(t,o){const n=t.icons,i=t.aliases||Object.create(null),s=Object.create(null);function l(r){if(n[r])return s[r]=[];if(!(r in s)){s[r]=null;const a=i[r]&&i[r].parent,d=a&&l(a);d&&(s[r]=[a].concat(d))}return s[r]}return Object.keys(n).concat(Object.keys(i)).forEach(l),s}function qt(t,o,n){const i=t.icons,s=t.aliases||Object.create(null);let l={};function r(a){l=at(i[a]||s[a],l)}return r(o),n.forEach(r),at(t,l)}function ct(t,o){const n=[];if(typeof t!="object"||typeof t.icons!="object")return n;t.not_found instanceof Array&&t.not_found.forEach(s=>{o(s,null),n.push(s)});const i=Rt(t);for(const s in i){const l=i[s];l&&(o(s,qt(t,s,l)),n.push(s))}return n}const Ut={provider:"",aliases:{},not_found:{},...rt};function G(t,o){for(const n in o)if(n in t&&typeof t[n]!=typeof o[n])return!1;return!0}function dt(t){if(typeof t!="object"||t===null)return null;const o=t;if(typeof o.prefix!="string"||!t.icons||typeof t.icons!="object"||!G(t,Ut))return null;const n=o.icons;for(const s in n){const l=n[s];if(!s||typeof l.body!="string"||!G(l,H))return null}const i=o.aliases||Object.create(null);for(const s in i){const l=i[s],r=l.parent;if(!s||typeof r!="string"||!n[r]&&!i[r]||!G(l,H))return null}return o}const ft=Object.create(null);function Ht(t,o){return{provider:t,prefix:o,icons:Object.create(null),missing:new Set}}function V(t,o){const n=ft[t]||(ft[t]=Object.create(null));return n[o]||(n[o]=Ht(t,o))}function ut(t,o){return dt(o)?ct(o,(n,i)=>{i?t.icons[n]=i:t.missing.add(n)}):[]}function Gt(t,o,n){try{if(typeof n.body=="string")return t.icons[o]={...n},!0}catch{}return!1}let D=!1;function mt(t){return typeof t=="boolean"&&(D=t),D}function Qt(t){const o=typeof t=="string"?M(t,!0,D):t;if(o){const n=V(o.provider,o.prefix),i=o.name;return n.icons[i]||(n.missing.has(i)?null:void 0)}}function Kt(t,o){const n=M(t,!0,D);if(!n)return!1;const i=V(n.provider,n.prefix);return o?Gt(i,n.name,o):(i.missing.add(n.name),!0)}function Zt(t,o){if(typeof t!="object")return!1;if(typeof o!="string"&&(o=t.provider||""),D&&!o&&!t.prefix){let s=!1;return dt(t)&&(t.prefix="",ct(t,(l,r)=>{Kt(l,r)&&(s=!0)})),s}const n=t.prefix;if(!A({prefix:n,name:"a"}))return!1;const i=V(o,n);return!!ut(i,t)}const pt=Object.freeze({width:null,height:null}),ht=Object.freeze({...pt,...j}),Xt=/(-?[0-9.]*[0-9]+[0-9.]*)/g,Yt=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function gt(t,o,n){if(o===1)return t;if(n=n||100,typeof t=="number")return Math.ceil(t*o*n)/n;if(typeof t!="string")return t;const i=t.split(Xt);if(i===null||!i.length)return t;const s=[];let l=i.shift(),r=Yt.test(l);for(;;){if(r){const a=parseFloat(l);isNaN(a)?s.push(l):s.push(Math.ceil(a*o*n)/n)}else s.push(l);if(l=i.shift(),l===void 0)return s.join("");r=!r}}function Jt(t,o="defs"){let n="";const i=t.indexOf("<"+o);for(;i>=0;){const s=t.indexOf(">",i),l=t.indexOf("</"+o);if(s===-1||l===-1)break;const r=t.indexOf(">",l);if(r===-1)break;n+=t.slice(s+1,l).trim(),t=t.slice(0,i).trim()+t.slice(r+1)}return{defs:n,content:t}}function vt(t,o){return t?"<defs>"+t+"</defs>"+o:o}function te(t,o,n){const i=Jt(t);return vt(i.defs,o+i.content+n)}const ee=t=>t==="unset"||t==="undefined"||t==="none";function ne(t,o){const n={...O,...t},i={...ht,...o},s={left:n.left,top:n.top,width:n.width,height:n.height};let l=n.body;[n,i].forEach(_=>{const f=[],S=_.hFlip,B=_.vFlip;let k=_.rotate;S?B?k+=2:(f.push("translate("+(s.width+s.left).toString()+" "+(0-s.top).toString()+")"),f.push("scale(-1 1)"),s.top=s.left=0):B&&(f.push("translate("+(0-s.left).toString()+" "+(s.height+s.top).toString()+")"),f.push("scale(1 -1)"),s.top=s.left=0);let C;switch(k<0&&(k-=Math.floor(k/4)*4),k=k%4,k){case 1:C=s.height/2+s.top,f.unshift("rotate(90 "+C.toString()+" "+C.toString()+")");break;case 2:f.unshift("rotate(180 "+(s.width/2+s.left).toString()+" "+(s.height/2+s.top).toString()+")");break;case 3:C=s.width/2+s.left,f.unshift("rotate(-90 "+C.toString()+" "+C.toString()+")");break}k%2===1&&(s.left!==s.top&&(C=s.left,s.left=s.top,s.top=C),s.width!==s.height&&(C=s.width,s.width=s.height,s.height=C)),f.length&&(l=te(l,'<g transform="'+f.join(" ")+'">',"</g>"))});const r=i.width,a=i.height,d=s.width,c=s.height;let u,m;r===null?(m=a===null?"1em":a==="auto"?c:a,u=gt(m,d/c)):(u=r==="auto"?d:r,m=a===null?gt(u,c/d):a==="auto"?c:a);const p={},g=(_,f)=>{ee(f)||(p[_]=f.toString())};g("width",u),g("height",m);const y=[s.left,s.top,d,c];return p.viewBox=y.join(" "),{attributes:p,viewBox:y,body:l}}const oe=/\sid="(\S+)"/g,se="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let ie=0;function le(t,o=se){const n=[];let i;for(;i=oe.exec(t);)n.push(i[1]);if(!n.length)return t;const s="suffix"+(Math.random()*16777216|Date.now()).toString(16);return n.forEach(l=>{const r=typeof o=="function"?o(l):o+(ie++).toString(),a=l.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");t=t.replace(new RegExp('([#;"])('+a+')([")]|\\.[a-z])',"g"),"$1"+r+s+"$3")}),t=t.replace(new RegExp(s,"g"),""),t}const Q=Object.create(null);function re(t,o){Q[t]=o}function K(t){return Q[t]||Q[""]}function Z(t){let o;if(typeof t.resources=="string")o=[t.resources];else if(o=t.resources,!(o instanceof Array)||!o.length)return null;return{resources:o,path:t.path||"/",maxURL:t.maxURL||500,rotate:t.rotate||750,timeout:t.timeout||5e3,random:t.random===!0,index:t.index||0,dataAfterTimeout:t.dataAfterTimeout!==!1}}const X=Object.create(null),T=["https://api.simplesvg.com","https://api.unisvg.com"],z=[];for(;T.length>0;)T.length===1||Math.random()>.5?z.push(T.shift()):z.push(T.pop());X[""]=Z({resources:["https://api.iconify.design"].concat(z)});function ae(t,o){const n=Z(o);return n===null?!1:(X[t]=n,!0)}function Y(t){return X[t]}let yt=(()=>{let t;try{if(t=fetch,typeof t=="function")return t}catch{}})();function ce(t,o){const n=Y(t);if(!n)return 0;let i;if(!n.maxURL)i=0;else{let s=0;n.resources.forEach(r=>{s=Math.max(s,r.length)});const l=o+".json?icons=";i=n.maxURL-s-n.path.length-l.length}return i}function de(t){return t===404}const fe=(t,o,n)=>{const i=[],s=ce(t,o),l="icons";let r={type:l,provider:t,prefix:o,icons:[]},a=0;return n.forEach((d,c)=>{a+=d.length+1,a>=s&&c>0&&(i.push(r),r={type:l,provider:t,prefix:o,icons:[]},a=d.length),r.icons.push(d)}),i.push(r),i};function ue(t){if(typeof t=="string"){const o=Y(t);if(o)return o.path}return"/"}const me={prepare:fe,send:(t,o,n)=>{if(!yt){n("abort",424);return}let i=ue(o.provider);switch(o.type){case"icons":{const l=o.prefix,a=o.icons.join(","),d=new URLSearchParams({icons:a});i+=l+".json?"+d.toString();break}case"custom":{const l=o.uri;i+=l.slice(0,1)==="/"?l.slice(1):l;break}default:n("abort",400);return}let s=503;yt(t+i).then(l=>{const r=l.status;if(r!==200){setTimeout(()=>{n(de(r)?"abort":"next",r)});return}return s=501,l.json()}).then(l=>{if(typeof l!="object"||l===null){setTimeout(()=>{l===404?n("abort",l):n("next",s)});return}setTimeout(()=>{n("success",l)})}).catch(()=>{n("next",s)})}};function pe(t){const o={loaded:[],missing:[],pending:[]},n=Object.create(null);t.sort((s,l)=>s.provider!==l.provider?s.provider.localeCompare(l.provider):s.prefix!==l.prefix?s.prefix.localeCompare(l.prefix):s.name.localeCompare(l.name));let i={provider:"",prefix:"",name:""};return t.forEach(s=>{if(i.name===s.name&&i.prefix===s.prefix&&i.provider===s.provider)return;i=s;const l=s.provider,r=s.prefix,a=s.name,d=n[l]||(n[l]=Object.create(null)),c=d[r]||(d[r]=V(l,r));let u;a in c.icons?u=o.loaded:r===""||c.missing.has(a)?u=o.missing:u=o.pending;const m={provider:l,prefix:r,name:a};u.push(m)}),o}function _t(t,o){t.forEach(n=>{const i=n.loaderCallbacks;i&&(n.loaderCallbacks=i.filter(s=>s.id!==o))})}function he(t){t.pendingCallbacksFlag||(t.pendingCallbacksFlag=!0,setTimeout(()=>{t.pendingCallbacksFlag=!1;const o=t.loaderCallbacks?t.loaderCallbacks.slice(0):[];if(!o.length)return;let n=!1;const i=t.provider,s=t.prefix;o.forEach(l=>{const r=l.icons,a=r.pending.length;r.pending=r.pending.filter(d=>{if(d.prefix!==s)return!0;const c=d.name;if(t.icons[c])r.loaded.push({provider:i,prefix:s,name:c});else if(t.missing.has(c))r.missing.push({provider:i,prefix:s,name:c});else return n=!0,!0;return!1}),r.pending.length!==a&&(n||_t([t],l.id),l.callback(r.loaded.slice(0),r.missing.slice(0),r.pending.slice(0),l.abort))})}))}let ge=0;function ye(t,o,n){const i=ge++,s=_t.bind(null,n,i);if(!o.pending.length)return s;const l={id:i,icons:o,callback:t,abort:s};return n.forEach(r=>{(r.loaderCallbacks||(r.loaderCallbacks=[])).push(l)}),s}function _e(t,o=!0,n=!1){const i=[];return t.forEach(s=>{const l=typeof s=="string"?M(s,o,n):s;l&&i.push(l)}),i}var ke={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function be(t,o,n,i){const s=t.resources.length,l=t.random?Math.floor(Math.random()*s):t.index;let r;if(t.random){let b=t.resources.slice(0);for(r=[];b.length>1;){const w=Math.floor(Math.random()*b.length);r.push(b[w]),b=b.slice(0,w).concat(b.slice(w+1))}r=r.concat(b)}else r=t.resources.slice(l).concat(t.resources.slice(0,l));const a=Date.now();let d="pending",c=0,u,m=null,p=[],g=[];typeof i=="function"&&g.push(i);function y(){m&&(clearTimeout(m),m=null)}function _(){d==="pending"&&(d="aborted"),y(),p.forEach(b=>{b.status==="pending"&&(b.status="aborted")}),p=[]}function f(b,w){w&&(g=[]),typeof b=="function"&&g.push(b)}function S(){return{startTime:a,payload:o,status:d,queriesSent:c,queriesPending:p.length,subscribe:f,abort:_}}function B(){d="failed",g.forEach(b=>{b(void 0,u)})}function k(){p.forEach(b=>{b.status==="pending"&&(b.status="aborted")}),p=[]}function C(b,w,F){const R=w!=="success";switch(p=p.filter($=>$!==b),d){case"pending":break;case"failed":if(R||!t.dataAfterTimeout)return;break;default:return}if(w==="abort"){u=F,B();return}if(R){u=F,p.length||(r.length?it():B());return}if(y(),k(),!t.random){const $=t.resources.indexOf(b.resource);$!==-1&&$!==t.index&&(t.index=$)}d="completed",g.forEach($=>{$(F)})}function it(){if(d!=="pending")return;y();const b=r.shift();if(b===void 0){if(p.length){m=setTimeout(()=>{y(),d==="pending"&&(k(),B())},t.timeout);return}B();return}const w={status:"pending",resource:b,callback:(F,R)=>{C(w,F,R)}};p.push(w),c++,m=setTimeout(it,t.rotate),n(b,o,w.callback)}return setTimeout(it),S}function kt(t){const o={...ke,...t};let n=[];function i(){n=n.filter(a=>a().status==="pending")}function s(a,d,c){const u=be(o,a,d,(m,p)=>{i(),c&&c(m,p)});return n.push(u),u}function l(a){return n.find(d=>a(d))||null}return{query:s,find:l,setIndex:a=>{o.index=a},getIndex:()=>o.index,cleanup:i}}function bt(){}const J=Object.create(null);function Ce(t){if(!J[t]){const o=Y(t);if(!o)return;const n=kt(o),i={config:o,redundancy:n};J[t]=i}return J[t]}function Be(t,o,n){let i,s;if(typeof t=="string"){const l=K(t);if(!l)return n(void 0,424),bt;s=l.send;const r=Ce(t);r&&(i=r.redundancy)}else{const l=Z(t);if(l){i=kt(l);const r=t.resources?t.resources[0]:"",a=K(r);a&&(s=a.send)}}return!i||!s?(n(void 0,424),bt):i.query(o,s,n)().abort}function Ct(){}function Se(t){t.iconsLoaderFlag||(t.iconsLoaderFlag=!0,setTimeout(()=>{t.iconsLoaderFlag=!1,he(t)}))}function Ee(t){const o=[],n=[];return t.forEach(i=>{(i.match(lt)?o:n).push(i)}),{valid:o,invalid:n}}function I(t,o,n){function i(){const s=t.pendingIcons;o.forEach(l=>{s&&s.delete(l),t.icons[l]||t.missing.add(l)})}if(n&&typeof n=="object")try{if(!ut(t,n).length){i();return}}catch(s){console.error(s)}i(),Se(t)}function Bt(t,o){t instanceof Promise?t.then(n=>{o(n)}).catch(()=>{o(null)}):o(t)}function we(t,o){t.iconsToLoad?t.iconsToLoad=t.iconsToLoad.concat(o).sort():t.iconsToLoad=o,t.iconsQueueFlag||(t.iconsQueueFlag=!0,setTimeout(()=>{t.iconsQueueFlag=!1;const{provider:n,prefix:i}=t,s=t.iconsToLoad;if(delete t.iconsToLoad,!s||!s.length)return;const l=t.loadIcon;if(t.loadIcons&&(s.length>1||!l)){Bt(t.loadIcons(s,i,n),u=>{I(t,s,u)});return}if(l){s.forEach(u=>{const m=l(u,i,n);Bt(m,p=>{const g=p?{prefix:i,icons:{[u]:p}}:null;I(t,[u],g)})});return}const{valid:r,invalid:a}=Ee(s);if(a.length&&I(t,a,null),!r.length)return;const d=i.match(lt)?K(n):null;if(!d){I(t,r,null);return}d.prepare(n,i,r).forEach(u=>{Be(n,u,m=>{I(t,u.icons,m)})})}))}const xe=(t,o)=>{const n=_e(t,!0,mt()),i=pe(n);if(!i.pending.length){let d=!0;return o&&setTimeout(()=>{d&&o(i.loaded,i.missing,i.pending,Ct)}),()=>{d=!1}}const s=Object.create(null),l=[];let r,a;return i.pending.forEach(d=>{const{provider:c,prefix:u}=d;if(u===a&&c===r)return;r=c,a=u,l.push(V(c,u));const m=s[c]||(s[c]=Object.create(null));m[u]||(m[u]=[])}),i.pending.forEach(d=>{const{provider:c,prefix:u,name:m}=d,p=V(c,u),g=p.pendingIcons||(p.pendingIcons=new Set);g.has(m)||(g.add(m),s[c][u].push(m))}),l.forEach(d=>{const c=s[d.provider][d.prefix];c.length&&we(d,c)}),o?ye(o,i,l):Ct};function Ne(t,o){const n={...t};for(const i in o){const s=o[i],l=typeof s;i in pt?(s===null||s&&(l==="string"||l==="number"))&&(n[i]=s):l===typeof n[i]&&(n[i]=i==="rotate"?s%4:s)}return n}const $e=/[\s,]+/;function Ve(t,o){o.split($e).forEach(n=>{switch(n.trim()){case"horizontal":t.hFlip=!0;break;case"vertical":t.vFlip=!0;break}})}function Pe(t,o=0){const n=t.replace(/^-?[0-9.]*/,"");function i(s){for(;s<0;)s+=4;return s%4}if(n===""){const s=parseInt(t);return isNaN(s)?0:i(s)}else if(n!==t){let s=0;switch(n){case"%":s=25;break;case"deg":s=90}if(s){let l=parseFloat(t.slice(0,t.length-n.length));return isNaN(l)?0:(l=l/s,l%1===0?i(l):0)}}return o}function De(t,o){let n=t.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const i in o)n+=" "+i+'="'+o[i]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+n+">"+t+"</svg>"}function Te(t){return t.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function Ie(t){return"data:image/svg+xml,"+Te(t)}function Le(t){return'url("'+Ie(t)+'")'}const St={...ht,inline:!1},Fe={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":!0,role:"img"},Me={display:"inline-block"},v={backgroundColor:"currentColor"},Et={backgroundColor:"transparent"},wt={Image:"var(--svg)",Repeat:"no-repeat",Size:"100% 100%"},xt={webkitMask:v,mask:v,background:Et};for(const t in xt){const o=xt[t];for(const n in wt)o[t+n]=wt[n]}const W={};["horizontal","vertical"].forEach(t=>{const o=t.slice(0,1)+"Flip";W[t+"-flip"]=o,W[t.slice(0,1)+"-flip"]=o,W[t+"Flip"]=o});function Nt(t){return t+(t.match(/^[-0-9.]+$/)?"px":"")}const $t=(t,o)=>{const n=Ne(St,o),i={...Fe},s=o.mode||"svg",l={},r=o.style,a=typeof r=="object"&&!(r instanceof Array)?r:{};for(let _ in o){const f=o[_];if(f!==void 0)switch(_){case"icon":case"style":case"onLoad":case"mode":case"ssr":break;case"inline":case"hFlip":case"vFlip":n[_]=f===!0||f==="true"||f===1;break;case"flip":typeof f=="string"&&Ve(n,f);break;case"color":l.color=f;break;case"rotate":typeof f=="string"?n[_]=Pe(f):typeof f=="number"&&(n[_]=f);break;case"ariaHidden":case"aria-hidden":f!==!0&&f!=="true"&&delete i["aria-hidden"];break;default:{const S=W[_];S?(f===!0||f==="true"||f===1)&&(n[S]=!0):St[_]===void 0&&(i[_]=f)}}}const d=ne(t,n),c=d.attributes;if(n.inline&&(l.verticalAlign="-0.125em"),s==="svg"){i.style={...l,...a},Object.assign(i,c);let _=0,f=o.id;return typeof f=="string"&&(f=f.replace(/-/g,"_")),i.innerHTML=le(d.body,f?()=>f+"ID"+_++:"iconifyVue"),e.h("svg",i)}const{body:u,width:m,height:p}=t,g=s==="mask"||(s==="bg"?!1:u.indexOf("currentColor")!==-1),y=De(u,{...c,width:m+"",height:p+""});return i.style={...l,"--svg":Le(y),width:Nt(c.width),height:Nt(c.height),...Me,...g?v:Et,...a},e.h("span",i)};if(mt(!0),re("",me),typeof document<"u"&&typeof window<"u"){const t=window;if(t.IconifyPreload!==void 0){const o=t.IconifyPreload,n="Invalid IconifyPreload syntax.";typeof o=="object"&&o!==null&&(o instanceof Array?o:[o]).forEach(i=>{try{(typeof i!="object"||i===null||i instanceof Array||typeof i.icons!="object"||typeof i.prefix!="string"||!Zt(i))&&console.error(n)}catch{console.error(n)}})}if(t.IconifyProviders!==void 0){const o=t.IconifyProviders;if(typeof o=="object"&&o!==null)for(let n in o){const i="IconifyProviders["+n+"] is invalid.";try{const s=o[n];if(typeof s!="object"||!s||s.resources===void 0)continue;ae(n,s)||console.error(i)}catch{console.error(i)}}}}const Ae={...O,body:""},P=e.defineComponent({inheritAttrs:!1,data(){return{_name:"",_loadingIcon:null,iconMounted:!1,counter:0}},mounted(){this.iconMounted=!0},unmounted(){this.abortLoading()},methods:{abortLoading(){this._loadingIcon&&(this._loadingIcon.abort(),this._loadingIcon=null)},getIcon(t,o,n){if(typeof t=="object"&&t!==null&&typeof t.body=="string")return this._name="",this.abortLoading(),{data:t};let i;if(typeof t!="string"||(i=M(t,!1,!0))===null)return this.abortLoading(),null;let s=Qt(i);if(!s)return(!this._loadingIcon||this._loadingIcon.name!==t)&&(this.abortLoading(),this._name="",s!==null&&(this._loadingIcon={name:t,abort:xe([i],()=>{this.counter++})})),null;if(this.abortLoading(),this._name!==t&&(this._name=t,o&&o(t)),n){s=Object.assign({},s);const r=n(s.body,i.name,i.prefix,i.provider);typeof r=="string"&&(s.body=r)}const l=["iconify"];return i.prefix!==""&&l.push("iconify--"+i.prefix),i.provider!==""&&l.push("iconify--"+i.provider),{data:s,classes:l}}},render(){this.counter;const t=this.$attrs,o=this.iconMounted||t.ssr?this.getIcon(t.icon,t.onLoad,t.customise):null;if(!o)return $t(Ae,t);let n=t;return o.classes&&(n={...t,class:(typeof t.class=="string"?t.class+" ":"")+o.classes.join(" ")}),$t({...O,...o.data},n)}});function Vt(t,o){return o===1?t:`${t}/${o}`}const Pt=()=>({getLinkToPaginatedPage:Vt}),je={class:"d-shape"},Oe={key:0,class:"d-shape__bg-wrapper"},E=e.defineComponent({name:"DWrapShape",__name:"DWrapShape",props:{shapeClass:{},shapeStyle:{type:[Boolean,null,String,Object,Array]},filterClass:{},filterStyle:{type:[Boolean,null,String,Object,Array]},tag:{}},setup(t){const o=t,n=e.useSlots();function i(a){return a?typeof a=="string"?!a.trim():Object.keys(a).length===0:!0}function s(a){return typeof a=="string"?!a.trim():Array.isArray(a)?a.length===0:a===null||a===void 0?!0:Object.keys(a).length===0}const l=e.computed(()=>n["shape-content"]||!i(o.shapeClass)?!0:!s(o.shapeStyle)),r=e.computed(()=>i(o.filterClass)?!s(o.filterStyle):!0);return(a,d)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(a.tag??"div"),null,{default:e.withCtx(()=>[e.createElementVNode("div",je,[l.value||n["bg-overlay"]||r.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["d-shape__bg-filter",a.filterClass]),style:e.normalizeStyle(a.filterStyle)},[l.value||n["bg-overlay"]?(e.openBlock(),e.createElementBlock("div",Oe,[l.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["d-shape__bg",a.shapeClass]),style:e.normalizeStyle(a.shapeStyle)},[e.renderSlot(a.$slots,"shape-content")],6)):e.createCommentVNode("",!0),e.renderSlot(a.$slots,"bg-overlay")])):e.createCommentVNode("",!0)],6)):e.createCommentVNode("",!0),e.renderSlot(a.$slots,"default")])]),_:3}))}}),ze={key:0,class:"d-focus-hl__hl--negative-tile"},We={key:2,class:"d-focus-hl__hl--negative-list-item"},Re={key:4,class:"d-focus-hl__hl--negative-tile"},qe={key:5,class:"d-focus-hl__hl--negative-list-item"},Ue={name:"DWrapFocusHighlight",components:{DWrapShape:E}},L=e.defineComponent({...Ue,props:{linkExact:Boolean,noPassiveLink:Boolean,active:Boolean,variant:{type:String,default:"negative-tile"},tag:{type:String,default:"div"},colorClass:{type:[String,Object],default:"d-focus-hl--default-color"}},setup(t){const o=t,n=e.computed(()=>o.to||o.href?resolveComponent("NuxtLink"):o.tag);return(i,s)=>(e.openBlock(),e.createBlock(E,null,{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(n.value),e.mergeProps(o,{class:["d-focus-hl d-focusable",{"d-focus-hl--exact":t.linkExact,"d-focus-hl--not-exact":!t.linkExact,"d-focus-hl--no-passive-link":t.noPassiveLink,"d-focus-hl--active":t.active}]}),{default:e.withCtx(()=>[t.variant==="negative-tile"?(e.openBlock(),e.createElementBlock("div",ze)):t.variant==="tile"||t.variant==="composite-tile"?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(["d-focus-hl__hl--tile",t.colorClass])},null,2)):t.variant==="negative-list-item"?(e.openBlock(),e.createElementBlock("div",We)):t.variant==="list-item"||t.variant==="composite-list-item"?(e.openBlock(),e.createElementBlock("div",{key:3,class:e.normalizeClass(["d-focus-hl__hl--list-item",t.colorClass])},null,2)):e.createCommentVNode("",!0),e.renderSlot(i.$slots,"default"),t.variant==="composite-tile"?(e.openBlock(),e.createElementBlock("div",Re)):t.variant==="composite-list-item"?(e.openBlock(),e.createElementBlock("div",qe)):e.createCommentVNode("",!0)]),_:3},16,["class"]))]),_:3}))}});function Dt(t){const o=e.resolveDynamicComponent("RouterLink"),n=typeof defineNuxtLink=="function"?defineNuxtLink({componentName:"DNuxtLink"}):void 0,i=e.computed(()=>!!(t.href||t.to)),s=e.computed(()=>{if(!t.href)return!1;const r=t.href;return r.startsWith("http")||r.startsWith("mailto:")||r.startsWith("tel:")||r.startsWith("#")}),l=e.computed(()=>{const r={...t};return t.href&&t.to?delete r.href:t.href?delete r.to:t.to&&delete r.href,r});return i.value?s.value?{isLink:i,isExternalLink:s,linkComponent:"a",propsToProvide:l}:typeof n<"u"?{isLink:i,isExternalLink:s,linkComponent:n,propsToProvide:l}:typeof o!="string"?{isLink:i,isExternalLink:s,linkComponent:o,propsToProvide:l}:{isLink:i,isExternalLink:s,linkComponent:"a",propsToProvide:l}:{isLink:i,isExternalLink:s,linkComponent:t.tag||"span",propsToProvide:l}}const He={name:"DBtn",components:{DWrapFocusHighlight:L}},x=e.defineComponent({...He,props:{to:{type:[String,Object],default:""},href:{type:String,default:void 0},exact:Boolean,noPassiveHighlight:Boolean,active:Boolean,noRotate:Boolean,tag:{type:String,default:"button"},highlight:{type:String,default:void 0},colorClass:{type:[String,Object],default:void 0},textTransform:{type:String,default:"uppercase"}},setup(t){const o=t,{linkComponent:n,isLink:i,isExternalLink:s,propsToProvide:l}=Dt(o);return(r,a)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(n)),e.mergeProps({class:["d-btn d-focusable",{"d-btn--rotated":!t.noRotate,"d-btn--uppercase":t.textTransform==="uppercase","d-btn--capitalize":t.textTransform==="capitalize","d-btn--lowercase":t.textTransform==="lowercase"}]},e.unref(l)),{default:e.withCtx(()=>[e.createVNode(L,{variant:t.highlight,"link-exact":t.exact,"no-passive-link":t.noPassiveHighlight||!e.unref(i)||e.unref(s),"color-class":t.colorClass,active:t.active},{default:e.withCtx(()=>[e.renderSlot(r.$slots,"default")]),_:3},8,["variant","link-exact","no-passive-link","color-class","active"])]),_:3},16,["class"]))}}),Ge={class:"w-fit text-2xl font-bold"},Qe={key:2,class:"mx-1"},Ke={key:3,class:"mx-1"},Ze={name:"DPagination",components:{DBtn:x,Icon:P}},Xe=e.defineComponent({...Ze,props:{currentPage:{type:Number,default:1},allPages:{type:Number,required:!0},baseLink:{type:String,required:!0}},setup(t){const o=t,{getLinkToPaginatedPage:n}=Pt();function i(l){return n(o.baseLink,l)}const s=e.computed(()=>Array.from({length:7},(l,r)=>r-3+o.currentPage).filter(l=>l>=1&&l<=o.allPages));return(l,r)=>(e.openBlock(),e.createElementBlock("nav",Ge,[t.currentPage>1?(e.openBlock(),e.createBlock(x,{key:0,class:"inline-block mx-1",to:i(t.currentPage-1),"aria-label":"Previous page"},{default:e.withCtx(()=>[e.createVNode(e.unref(P),{icon:"ic:baseline-arrow-back-ios"})]),_:1},8,["to"])):e.createCommentVNode("",!0),s.value.includes(1)?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(x,{key:1,class:"inline-block mx-1",to:i(1),"aria-label":"First page"},{default:e.withCtx(()=>r[0]||(r[0]=[e.createTextVNode(" 1 ")])),_:1},8,["to"])),s.value.includes(1)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("span",Qe," ... ")),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.value,a=>(e.openBlock(),e.createBlock(x,{key:a,class:"inline-block mx-1",to:i(a),"aria-label":`Page ${a}`},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(a),1)]),_:2},1032,["to","aria-label"]))),128)),s.value.includes(t.allPages)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("span",Ke," ... ")),s.value.includes(t.allPages)?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(x,{key:4,class:"inline-block mx-1",to:i(t.allPages),"aria-label":`Last page (${t.allPages})`},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.allPages),1)]),_:1},8,["to","aria-label"])),t.currentPage<t.allPages?(e.openBlock(),e.createBlock(x,{key:5,class:"inline-block mx-1",to:i(t.currentPage+1),"aria-label":"Next page"},{default:e.withCtx(()=>[e.createVNode(e.unref(P),{icon:"ic:baseline-arrow-forward-ios"})]),_:1},8,["to"])):e.createCommentVNode("",!0)]))}}),Ye={class:"max-w-full"},Je={class:"stats__print-value"},ve={class:"stats__print-value__group-title"},tn={class:"stats__print-value--small"},en={class:"stats"},nn={viewBox:"-500 -500 2000 2000",xmlns:"http://www.w3.org/2000/svg"},on=["points"],sn=["points"],ln={class:"stats__single-stat"},rn=["points"],an=["points"],cn={class:"stats__single-stat"},dn=["points"],fn=["points"],un={class:"stats__single-stat"},mn=["points"],pn=["points"],hn={class:"stats__single-stat"},gn=["points"],yn=["points"],_n={class:"stats__single-stat"},kn=["points"],bn=["points"],Cn={class:"stats__images"},Bn={class:"stats__image"},Sn={class:"stats__image"},En={class:"stats__image"},wn={class:"stats__image"},xn={class:"stats__image"},Nn={viewBox:"-500 -500 2000 2000",xmlns:"http://www.w3.org/2000/svg",class:"stats_titles-layer"},$n={x:"-500",y:"-300",class:"stats__group-title"},Vn=["x","y","transform-origin"],Pn={class:"stats__title__value"},Dn=["x","y","transform-origin"],Tn={class:"stats__title__value"},In=["x","y","transform-origin"],Ln={class:"stats__title__value"},Fn=["x","y","transform-origin"],Mn={class:"stats__title__value"},An=["x","y","transform-origin"],jn={class:"stats__title__value"},On={name:"DStats",components:{Icon:P}},zn=e.defineComponent({...On,props:{groupTitle:{},titles:{},values:{}},setup(t){const o=t,n=e.ref([[500,0],[630,330],[980,350],[700,590],[790,910],[500,720],[210,910],[300,590],[20,350],[370,330]]),i=e.ref([1,.8,.6,.4,.27]),s={1:0,"1-2":1,2:2,"2-3":3,3:4,"3-4":5,4:6,"4-5":7,5:8,"5-1":9},l=[500,500];function r(f){return f.map(S=>S.join(",")).join(" ")}function a(f,S,B=500,k=500){return f.map(C=>[C[0]-(C[0]-B)*(1-S),C[1]-(C[1]-k)*(1-S)])}const d=e.computed(()=>i.value.map(f=>a(n.value,f)));function c(f){return d.value[5-f]}function u(f){return{value:o.values?o.values[f]??1:1,title:o.titles?o.titles[f]??"":""}}const m=e.computed(()=>u(0)),p=e.computed(()=>u(1)),g=e.computed(()=>u(2)),y=e.computed(()=>u(3)),_=e.computed(()=>u(4));return(f,S)=>(e.openBlock(),e.createElementBlock("figure",Ye,[e.createElementVNode("div",Je,[e.createElementVNode("div",ve,e.toDisplayString(f.groupTitle),1),e.createElementVNode("div",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(f.titles,(B,k)=>(e.openBlock(),e.createElementBlock("div",{key:B,class:"stats__print-value__skill"},[e.createElementVNode("div",null,e.toDisplayString(B),1),e.createElementVNode("div",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(f.values[k],C=>(e.openBlock(),e.createBlock(e.unref(P),{key:C,icon:"ic:sharp-star"}))),128)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(5-f.values[k],C=>(e.openBlock(),e.createBlock(e.unref(P),{key:C,icon:"ic:sharp-star-border"}))),128))])]))),128))])]),e.createElementVNode("div",tn,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(f.titles,(B,k)=>(e.openBlock(),e.createElementBlock("span",{key:B,class:e.normalizeClass(["stats__print-value--small__skill",{"stats__print-value--small__skill--hidden":f.values[k]<3,"stats__print-value--small__skill--3":f.values[k]===3,"stats__print-value--small__skill--4":f.values[k]===4,"stats__print-value--small__skill--5":f.values[k]===5}])},e.toDisplayString(B),3))),128))]),e.createElementVNode("div",en,[(e.openBlock(),e.createElementBlock("svg",nn,[S[0]||(S[0]=e.createElementVNode("polygon",{points:"100,-350 1500,-500 1000,1350 -500,1500",class:"stats__bg"},null,-1)),e.createElementVNode("polygon",{points:r(a(n.value,2)),class:"stats__bg-star--odd"},null,8,on),e.createElementVNode("g",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.value,(B,k)=>(e.openBlock(),e.createElementBlock("polygon",{key:k,points:r(B),class:e.normalizeClass({"stats__bg-star--odd":k%2,"stats__bg-star--even":!(k%2)})},null,10,sn))),128))]),e.createElementVNode("g",null,[e.createElementVNode("g",ln,[e.createElementVNode("polygon",{points:r([c(m.value.value)[s[1]],c(Math.min(m.value.value,_.value.value))[s["5-1"]],l]),class:"stats__star--dark"},null,8,rn),e.createElementVNode("polygon",{points:r([c(m.value.value)[s[1]],c(Math.min(m.value.value,p.value.value))[s["1-2"]],l]),class:"stats__star--light"},null,8,an)]),e.createElementVNode("g",cn,[e.createElementVNode("polygon",{points:r([c(p.value.value)[s[2]],c(Math.min(m.value.value,p.value.value))[s["1-2"]],l]),class:"stats__star--light"},null,8,dn),e.createElementVNode("polygon",{points:r([c(p.value.value)[s[2]],c(Math.min(g.value.value,p.value.value))[s["2-3"]],l]),class:"stats__star--dark"},null,8,fn)]),e.createElementVNode("g",un,[e.createElementVNode("polygon",{points:r([c(g.value.value)[s[3]],c(Math.min(p.value.value,g.value.value))[s["2-3"]],l]),class:"stats__star--light"},null,8,mn),e.createElementVNode("polygon",{points:r([c(g.value.value)[s[3]],c(Math.min(g.value.value,y.value.value))[s["3-4"]],l]),class:"stats__star--dark"},null,8,pn)]),e.createElementVNode("g",hn,[e.createElementVNode("polygon",{points:r([c(y.value.value)[s[4]],c(Math.min(g.value.value,y.value.value))[s["3-4"]],l]),class:"stats__star--light"},null,8,gn),e.createElementVNode("polygon",{points:r([c(y.value.value)[s[4]],c(Math.min(y.value.value,_.value.value))[s["4-5"]],l]),class:"stats__star--dark"},null,8,yn)]),e.createElementVNode("g",_n,[e.createElementVNode("polygon",{points:r([c(_.value.value)[s[5]],c(Math.min(y.value.value,_.value.value))[s["4-5"]],l]),class:"stats__star--dark"},null,8,kn),e.createElementVNode("polygon",{points:r([c(_.value.value)[s[5]],c(Math.min(_.value.value,m.value.value))[s["5-1"]],l]),class:"stats__star--light"},null,8,bn)])])])),e.createElementVNode("div",Cn,[e.createElementVNode("div",Bn,[e.renderSlot(f.$slots,"icon-1")]),e.createElementVNode("div",Sn,[e.renderSlot(f.$slots,"icon-2")]),e.createElementVNode("div",En,[e.renderSlot(f.$slots,"icon-3")]),e.createElementVNode("div",wn,[e.renderSlot(f.$slots,"icon-4")]),e.createElementVNode("div",xn,[e.renderSlot(f.$slots,"icon-5")])]),(e.openBlock(),e.createElementBlock("svg",Nn,[e.createElementVNode("text",$n,e.toDisplayString(f.groupTitle),1),e.createElementVNode("g",null,[e.createElementVNode("text",{x:n.value[s[1]][0],y:n.value[s[1]][1]-100,"transform-origin":`${n.value[s[1]][0]} ${n.value[s[1]][1]-100}`,class:"stats__title"},[e.createTextVNode(e.toDisplayString(m.value.title)+" ",1),e.createElementVNode("tspan",Pn,e.toDisplayString(m.value.value),1)],8,Vn),e.createElementVNode("text",{x:n.value[s[2]][0]+100,y:n.value[s[2]][1]-100,"transform-origin":`${n.value[s[2]][0]+100} ${n.value[s[2]][1]-100}`,class:"stats__title"},[e.createTextVNode(e.toDisplayString(p.value.title)+" ",1),e.createElementVNode("tspan",Tn,e.toDisplayString(p.value.value),1)],8,Dn),e.createElementVNode("text",{"dominant-baseline":"hanging",x:n.value[s[3]][0]+150,y:n.value[s[3]][1]+150,"transform-origin":`${n.value[s[3]][0]+150} ${n.value[s[3]][1]+150}`,class:"stats__title"},[e.createTextVNode(e.toDisplayString(g.value.title)+" ",1),e.createElementVNode("tspan",Ln,e.toDisplayString(g.value.value),1)],8,In),e.createElementVNode("text",{"dominant-baseline":"hanging",x:n.value[s[4]][0]-150,y:n.value[s[4]][1]+150,"transform-origin":`${n.value[s[4]][0]-150} ${n.value[s[4]][1]+150}`,class:"stats__title"},[e.createTextVNode(e.toDisplayString(y.value.title)+" ",1),e.createElementVNode("tspan",Mn,e.toDisplayString(y.value.value),1)],8,Fn),e.createElementVNode("text",{x:n.value[s[5]][0]-100,y:n.value[s[5]][1]-100,"transform-origin":`${n.value[s[5]][0]-100} ${n.value[s[5]][1]-100}`,class:"stats__title"},[e.createTextVNode(e.toDisplayString(_.value.title)+" ",1),e.createElementVNode("tspan",jn,e.toDisplayString(_.value.value),1)],8,An)])]))])]))}}),Wn={name:"DAnimationDefLetterD"},Rn={d:"M200.242,139.244l137.207,-0c66.136,-0 112.859,17.192 140.169,51.576c27.31,34.384 33.562,84.973 18.755,151.767c-22.045,98.711 -85.878,148.066 -191.498,148.066l-179.16,-0l74.527,-351.409Zm184.588,179.159c12.175,-57.581 -7.732,-86.372 -59.72,-86.372l-33.068,0l-35.042,165.834l44.42,0c23.69,0 42.034,-6.169 55.031,-18.508c12.997,-12.339 22.457,-32.657 28.379,-60.954Z"};function qn(t,o,n,i,s,l){return e.openBlock(),e.createElementBlock("path",Rn)}const N=U(Wn,[["render",qn]]),Un={name:"DAnimationAccordion",components:{DAnimationDefLetterD:N}},Hn=e.defineComponent({...Un,props:{wigglePeriod:{type:Number,default:10},delay:{type:Number,default:1}},setup(t){return(o,n)=>(e.openBlock(),e.createElementBlock("svg",{viewBox:"0 0 630 210",xmlns:"http://www.w3.org/2000/svg",class:"d-animation-accordion",style:e.normalizeStyle({"--d-accordion-wiggle-period":t.wigglePeriod+"s","--d-accordion-delay":t.delay+"s"})},[e.createElementVNode("defs",null,[e.createVNode(N,{id:"d-letter"}),n[0]||(n[0]=e.createElementVNode("use",{id:"d-accordion-section",href:"#d-letter",transform:"scale(0.33)"},null,-1))]),n[1]||(n[1]=e.createStaticVNode('<use href="#d-accordion-section" class="d-animation-accordion__section"></use><use href="#d-accordion-section" class="d-animation-accordion__section"></use><use href="#d-accordion-section" class="d-animation-accordion__section"></use><use href="#d-accordion-section" class="d-animation-accordion__section"></use><use href="#d-accordion-section" class="d-animation-accordion__section"></use><use href="#d-accordion-section" class="d-animation-accordion__section"></use>',6))],4))}}),Gn={name:"DAnimationFloatingLetter",components:{DAnimationDefLetterD:N}},Qn=e.defineComponent({...Gn,props:{floatPeriod:{type:Number,default:5},pathClass:{type:[String,Object],default:""}},setup(t){return(o,n)=>(e.openBlock(),e.createElementBlock("svg",{viewBox:"0 0 630 630",xmlns:"http://www.w3.org/2000/svg",style:e.normalizeStyle({"--d-floating-letter-float-period":t.floatPeriod+"s"})},[e.createVNode(N,{class:e.normalizeClass(["d-animation-floating-letter",t.pathClass])},null,8,["class"])],4))}}),Kn={name:"DAnimationHypnosis",components:{DAnimationDefLetterD:N}},Zn=e.defineComponent({...Kn,props:{wigglePeriod:{type:Number,default:10},delay:{type:Number,default:1}},setup(t){return(o,n)=>(e.openBlock(),e.createElementBlock("svg",{viewBox:"0 0 630 630",xmlns:"http://www.w3.org/2000/svg",class:"d-animation-hypnosis",style:e.normalizeStyle({"--d-hypnosis-wiggle-period":t.wigglePeriod+"s","--d-hypnosis-delay":t.delay+"s"})},[e.createElementVNode("defs",null,[e.createVNode(N,{id:"d-letter"}),n[0]||(n[0]=e.createElementVNode("use",{id:"d-hypnosis-section",href:"#d-letter"},null,-1))]),n[1]||(n[1]=e.createStaticVNode('<use href="#d-hypnosis-section" class="d-animation-hypnosis__section"></use><use href="#d-hypnosis-section" class="d-animation-hypnosis__section"></use><use href="#d-hypnosis-section" class="d-animation-hypnosis__section"></use><use href="#d-hypnosis-section" class="d-animation-hypnosis__section"></use><use href="#d-hypnosis-section" class="d-animation-hypnosis__section"></use><use href="#d-hypnosis-section" class="d-animation-hypnosis__section"></use>',6))],4))}}),Xn={name:"DAnimationSpinner",components:{DAnimationDefLetterD:N}},Yn=e.defineComponent({...Xn,props:{spinPeriod:{type:Number,default:10},bladeWigglePeriod:{type:Number,default:5}},setup(t){const o="315 315";return(n,i)=>(e.openBlock(),e.createElementBlock("svg",{class:"spinner",viewBox:"0 0 630 630",xmlns:"http://www.w3.org/2000/svg",style:e.normalizeStyle({"--d-spinner-spin-period":t.spinPeriod+"s","--d-spinner-blade-wiggle-period":t.bladeWigglePeriod+"s"})},[e.createElementVNode("defs",null,[e.createVNode(N,{id:"d-letter"}),e.createElementVNode("use",{id:"d-spinner-blade",href:"#d-letter",class:"d-animation-spinner__blade","transform-origin":o}),e.createElementVNode("g",{id:"spinner",class:"d-animation-spinner__spinner","transform-origin":o},[e.createElementVNode("use",{href:"#d-spinner-blade",transform:"rotate(0)","transform-origin":o}),e.createElementVNode("use",{href:"#d-spinner-blade",transform:"rotate(120)","transform-origin":o}),e.createElementVNode("use",{href:"#d-spinner-blade",transform:"rotate(240)","transform-origin":o})])]),e.createElementVNode("use",{href:"#spinner",transform:"translate( -20 20 )",class:"d-animation-spinner__background","transform-origin":o}),e.createElementVNode("use",{href:"#spinner",class:"d-animation-spinner__foreground","transform-origin":o})],4))}});function Jn(t){return e.getCurrentScope()?(e.onScopeDispose(t),!0):!1}const tt=new WeakMap,vn=(...t)=>{var o;const n=t[0],i=(o=e.getCurrentInstance())==null?void 0:o.proxy;if(i==null&&!e.hasInjectionContext())throw new Error("injectLocal must be called in setup");return i&&tt.has(i)&&n in tt.get(i)?tt.get(i)[n]:e.inject(...t)},to=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const eo=Object.prototype.toString,no=t=>eo.call(t)==="[object Object]";function Tt(t){return t.endsWith("rem")?Number.parseFloat(t)*16:Number.parseFloat(t)}function et(t){return Array.isArray(t)?t:[t]}function oo(t,o,n){return e.watch(t,o,{...n,immediate:!0})}const It=to?window:void 0;function so(t){var o;const n=e.toValue(t);return(o=n==null?void 0:n.$el)!=null?o:n}function io(...t){const o=[],n=()=>{o.forEach(a=>a()),o.length=0},i=(a,d,c,u)=>(a.addEventListener(d,c,u),()=>a.removeEventListener(d,c,u)),s=e.computed(()=>{const a=et(e.toValue(t[0])).filter(d=>d!=null);return a.every(d=>typeof d!="string")?a:void 0}),l=oo(()=>{var a,d;return[(d=(a=s.value)==null?void 0:a.map(c=>so(c)))!=null?d:[It].filter(c=>c!=null),et(e.toValue(s.value?t[1]:t[0])),et(e.unref(s.value?t[2]:t[1])),e.toValue(s.value?t[3]:t[2])]},([a,d,c,u])=>{if(n(),!(a!=null&&a.length)||!(d!=null&&d.length)||!(c!=null&&c.length))return;const m=no(u)?{...u}:u;o.push(...a.flatMap(p=>d.flatMap(g=>c.map(y=>i(p,g,y,m)))))},{flush:"post"}),r=()=>{l(),n()};return Jn(n),r}function lo(){const t=e.shallowRef(!1),o=e.getCurrentInstance();return o&&e.onMounted(()=>{t.value=!0},o),t}function ro(t){const o=lo();return e.computed(()=>(o.value,!!t()))}const ao=Symbol("vueuse-ssr-width");function co(){const t=e.hasInjectionContext()?vn(ao,null):null;return typeof t=="number"?t:void 0}function fo(t,o={}){const{window:n=It,ssrWidth:i=co()}=o,s=ro(()=>n&&"matchMedia"in n&&typeof n.matchMedia=="function"),l=e.shallowRef(typeof i=="number"),r=e.shallowRef(),a=e.shallowRef(!1),d=c=>{a.value=c.matches};return e.watchEffect(()=>{if(l.value){l.value=!s.value;const c=e.toValue(t).split(",");a.value=c.some(u=>{const m=u.includes("not all"),p=u.match(/\(\s*min-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/),g=u.match(/\(\s*max-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/);let y=!!(p||g);return p&&y&&(y=i>=Tt(p[1])),g&&y&&(y=i<=Tt(g[1])),m?!y:y});return}s.value&&(r.value=n.matchMedia(e.toValue(t)),a.value=r.value.matches)}),io(r,"change",d,{passive:!0}),e.computed(()=>a.value)}function uo(t){const o=fo("(prefers-reduced-motion: reduce)",t);return e.computed(()=>o.value?"reduce":"no-preference")}const mo=e.ref(""),nt=()=>({text:mo}),po={id:"big-bang-button-animation"},ho=["i","textContent"],go={name:"DBigBangButtonAnimation"},yo=e.defineComponent({...go,setup(t){const o=uo(),n={first:"M 0 0 C -489.471 -116.5 -526.692 -193.268 -563.913 -311.911",last:"M 0 0 C 317.761 171.963 466.645 199.879 680.666 171.963",intermediate:["M 0 0 C 36.277 125.437 19.992 358.068 -49.797 413.9","M 0 0 C 52.561 -69.974 71.171 -118.827 64.192 -446.837","M 0 0 C -3.271 137.068 -26.534 395.289 33.95 439.489"]},{text:i}=nt(),s=e.computed(()=>i.value.split(""));let l;e.watch(i,c=>{clearTimeout(l),c&&(l=setTimeout(()=>i.value="",1500))});function r(c){return c===0?n.first:c===s.value.length-1?n.last:n.intermediate[Math.floor(Math.random()*n.intermediate.length)]}function a(c,u){if(o.value==="reduce"){u();return}q.fromTo(c,{opacity:0,rotateX:-90},{opacity:1,rotateX:0,rotate:-12+Math.random()*24,delay:Math.random()*.3,duration:.2,onComplete:u})}function d(c,u){if(o.value==="reduce"){u();return}const m=+q.getProperty(c,"i");q.to(c,{motionPath:{path:r(m)},opacity:0,rotate:-180+Math.random()*360,duration:.2,onComplete:u})}return(c,u)=>(e.openBlock(),e.createElementBlock("div",po,[e.createVNode(e.TransitionGroup,{tag:"div",class:"bbb__text-container",onEnter:a,onLeave:d},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.value,(m,p)=>(e.openBlock(),e.createElementBlock("span",{key:p,i:p,textContent:e.toDisplayString(m)},null,8,ho))),128))]),_:1})]))}}),_o=["textContent"],ko={name:"DBigBangButton"},bo=e.defineComponent({...ko,props:{text:{type:String,required:!0},tag:{type:String,default:"button"},to:{type:[String,Object],default:""}},emits:["click"],setup(t,{emit:o}){const n=o,i=t,{text:s}=nt(),{linkComponent:l}=Dt(i),r=e.computed(()=>i.text.split(""));function a(d){s.value=i.text,n("click",d)}return(d,c)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(l)),{to:t.to,class:"big-bang-button",onClick:a},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.value,(u,m)=>(e.openBlock(),e.createElementBlock("span",{key:m,textContent:e.toDisplayString(u)},null,8,_o))),128))]),_:1},8,["to"]))}}),Co={name:"DCard",components:{DWrapShape:E}},Bo=e.defineComponent({...Co,props:{mode:{type:String,default:"default"},dense:Boolean},setup(t){return(o,n)=>(e.openBlock(),e.createBlock(E,{"shape-class":{card__bg:!t.dense,"card__bg--dense":t.dense},class:e.normalizeClass({"card--homepage-story force-light":t.mode==="homepage-story","card--homepage-skills force-light":t.mode==="homepage-skills",card:t.mode==="default"})},{default:e.withCtx(()=>[e.createElementVNode("div",{class:e.normalizeClass({card__content:!t.dense,"card__content--dense":t.dense})},[e.renderSlot(o.$slots,"default")],2)]),_:3},8,["shape-class","class"]))}}),So={name:"DCardTitle",components:{DWrapShape:E}},Eo={class:"card__title"},wo={class:"card__title__content__text"},xo={class:"ml-2 print:text-neutral-600"};function No(t,o,n,i,s,l){const r=e.resolveComponent("DWrapShape");return e.openBlock(),e.createElementBlock("div",Eo,[e.createVNode(r,{class:"card__title__content","shape-class":"card__title__content__shape"},{default:e.withCtx(()=>[e.createElementVNode("h3",wo,[e.renderSlot(t.$slots,"default")])]),_:3}),e.createElementVNode("span",xo,[e.renderSlot(t.$slots,"extra")])])}const $o=U(So,[["render",No]]),Vo={class:"d-alert__body"},Po={viewBox:"0 0 1067 1067",xmlns:"http://www.w3.org/2000/svg",class:"d-alert__sign"},Do={key:0},To={key:1},Io={key:2},Lo=e.defineComponent({__name:"DAlert",props:{type:{type:String,default:"info"}},setup(t){return(o,n)=>(e.openBlock(),e.createBlock(E,{class:e.normalizeClass(["d-alert",{"d-alert--info":t.type==="info","d-alert--question":t.type==="question","d-alert--warning":t.type==="warning"}]),"shape-class":"d-alert__shape"},{"bg-overlay":e.withCtx(()=>n[0]||(n[0]=[e.createElementVNode("div",{class:"d-alert__outline"},null,-1)])),default:e.withCtx(()=>[e.createElementVNode("div",Vo,[e.renderSlot(o.$slots,"default"),(e.openBlock(),e.createElementBlock("svg",Po,[t.type==="info"?(e.openBlock(),e.createElementBlock("g",Do,n[1]||(n[1]=[e.createElementVNode("path",{d:"M202.481,1025.68l427.138,-769.216l171.992,106.943l-461.057,689.584l-138.073,-27.311Z"},null,-1),e.createElementVNode("path",{d:"M832.695,310.003l-170.011,-113.247l92.566,-170.289l218.937,122.443l-141.492,161.093Z"},null,-1)]))):e.createCommentVNode("",!0),t.type==="question"?(e.openBlock(),e.createElementBlock("g",To,n[2]||(n[2]=[e.createElementVNode("path",{d:"M289.17,836.982l100.67,63.007l-27.42,149.27l-200.047,-83.328l126.797,-128.949Z"},null,-1),e.createElementVNode("path",{d:"M335.818,766.179l95.499,91.347l134.944,-217.987l249.128,-6.228l174.389,-139.096l14.533,-236.672l-170.237,-224.215l-170.238,-8.304l-242.9,124.564l114.184,64.358l178.542,-41.522l161.933,130.793l-68.51,205.53l-203.455,-53.978l-178.542,70.587l-89.27,240.823Z"},null,-1)]))):e.createCommentVNode("",!0),t.type==="warning"?(e.openBlock(),e.createElementBlock("g",Io,n[3]||(n[3]=[e.createElementVNode("path",{d:"M304.988,722.034l335.792,-712.747l299.877,30.543l-514.204,743.146l-121.465,-60.942Z"},null,-1),e.createElementVNode("path",{d:"M253.974,839.059l148.42,40.169l-118.767,182.487l-131.537,-66.719l101.884,-155.937Z"},null,-1)]))):e.createCommentVNode("",!0)]))])]),_:3},8,["class"]))}}),Fo={class:"d-blockquote__body"},Mo=e.defineComponent({__name:"DQuote",props:{direction:{type:String,default:"right"}},setup(t){return(o,n)=>(e.openBlock(),e.createBlock(E,{tag:"blockquote",class:e.normalizeClass(["d-blockquote",{"d-blockquote--left":t.direction==="left","d-blockquote--right":t.direction==="right"}]),"shape-class":"d-blockquote__shape"},{"bg-overlay":e.withCtx(()=>n[0]||(n[0]=[e.createElementVNode("div",{class:"d-blockquote__outline"},null,-1)])),default:e.withCtx(()=>[e.createElementVNode("div",Fo,[e.renderSlot(o.$slots,"default")])]),_:3},8,["class"]))}}),Ao={name:"DActionsFan",components:{DWrapShape:E,DBtn:x}},jo=e.defineComponent({...Ao,props:{actions:{type:Array,default:()=>[]},side:{type:String,default:"left"},filterClass:{type:[String,Object],default:""}},emits:["actionFocus","actionUnfocus","actionChoose"],setup(t){return(o,n)=>(e.openBlock(),e.createBlock(e.TransitionGroup,{name:"actions",tag:"ul",style:e.normalizeStyle({padding:`${Math.min(t.actions.length*2,15)}rem 0 ${Math.min(t.actions.length*3,15)}rem`})},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.actions,(i,s)=>(e.openBlock(),e.createBlock(E,{key:i.title,tag:"li",class:e.normalizeClass(["d-actions-fan__list-item",{[i.class??""]:!0,"d-actions-fan--right__list-item":t.side==="right","d-actions-fan--left__list-item":t.side==="left"}]),"filter-class":t.filterClass,style:e.normalizeStyle({...i.style,"--tw-rotate":`${t.side==="left"?12-s*18:-12+s*18}deg`}),"shape-class":{"d-actions-fan__list-item__shape":!0,[i.shapeClass??""]:!0,"d-actions-fan--right__list-item__shape":t.side==="right","d-actions-fan--left__list-item__shape":t.side==="left"},"shape-style":i.shapeStyle},{default:e.withCtx(()=>[e.createElementVNode("div",{class:e.normalizeClass(["d-actions-fan__list-item__body",{"d-actions-fan--right__list-item__body":t.side==="right"}])},[e.createVNode(x,e.mergeProps({ref_for:!0},i.attrs,{tag:"button","no-passive-highlight":"",onClick:l=>o.$emit("actionChoose",i.emit),onMouseenter:l=>o.$emit("actionFocus",i.emit),onTouchstart:l=>o.$emit("actionFocus",i.emit),onFocusin:l=>o.$emit("actionFocus",i.emit),onMouseleave:l=>o.$emit("actionUnfocus",i.emit),onTouchend:l=>o.$emit("actionUnfocus",i.emit),onFocusout:l=>o.$emit("actionUnfocus",i.emit)}),{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(i.title),1)]),_:2},1040,["onClick","onMouseenter","onTouchstart","onFocusin","onMouseleave","onTouchend","onFocusout"])],2)]),_:2},1032,["filter-class","class","style","shape-class","shape-style"]))),128))]),_:1},8,["style"]))}}),Oo={class:"d-actions-list__body"},zo={key:0,class:"d-actions-list__header"},Wo=e.defineComponent({name:"DActionsList",components:{DWrapFocusHighlight:L,DWrapShape:E},__name:"DActionsList",props:{actions:{type:Array,default:()=>[]},listClass:{type:[String,Object],default:""}},emits:["actionFocus","actionUnfocus","actionChoose"],setup(t){function o(i){var s;return(s=i.attrs)!=null&&s.highlightVariant?i.attrs.highlightVariant:"negative-list-item"}const n=e.useSlots();return(i,s)=>(e.openBlock(),e.createBlock(E,{"shape-class":"d-actions-list__shape"},{default:e.withCtx(()=>[e.createElementVNode("div",Oo,[n.header?(e.openBlock(),e.createElementBlock("div",zo,[e.renderSlot(i.$slots,"header")])):e.createCommentVNode("",!0),e.createVNode(e.TransitionGroup,{name:"actions",tag:"ul",class:e.normalizeClass(["d-actions-list__list",t.listClass])},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.actions,l=>(e.openBlock(),e.createElementBlock("li",{key:l.title},[e.createVNode(L,e.mergeProps({ref_for:!0},l.attrs,{tag:"button",variant:o(l),"no-passive-link":"",onClick:r=>i.$emit("actionChoose",l.emit),onMouseenter:r=>i.$emit("actionFocus",l.emit),onTouchstart:r=>i.$emit("actionFocus",l.emit),onFocusin:r=>i.$emit("actionFocus",l.emit),onMouseleave:r=>i.$emit("actionUnfocus",l.emit),onTouchend:r=>i.$emit("actionUnfocus",l.emit),onFocusout:r=>i.$emit("actionUnfocus",l.emit)}),{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(l.title),1)]),_:2},1040,["variant","onClick","onMouseenter","onTouchstart","onFocusin","onMouseleave","onTouchend","onFocusout"])]))),128))]),_:1},8,["class"])])]),_:3}))}}),Ro={key:0,class:"mbg__relative-container"},qo={key:1,class:"mbg__layer"},Uo={key:3,class:"mbg__content"},Ho=e.defineComponent({name:"DWrapBackground",__name:"DWrapBackground",props:{overlayClass:{type:[String,Object],default:""},overlayStyle:{type:Object,default:()=>{}},dotsClass:{type:[String,Object],default:""},dotsStyle:{type:Object,default:()=>{}},dots:{type:Boolean,default:!1},tag:{type:String,default:"div"}},setup(t){const o=t,n=e.useSlots(),i=e.computed(()=>typeof o.overlayStyle=="string"?!o.overlayStyle.trim():Array.isArray(o.overlayStyle)?o.overlayStyle.length===0:o.overlayStyle===null||o.overlayStyle===void 0?!0:Object.keys(o.overlayStyle).length===0);return(s,l)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.tag),{class:"mbg__main-container"},{default:e.withCtx(()=>[t.overlayClass||!i.value||n.svg||n.default?(e.openBlock(),e.createElementBlock("div",Ro,[t.overlayClass||!i.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["mbg__layer",t.overlayClass]),style:e.normalizeStyle(t.overlayStyle)},null,6)):e.createCommentVNode("",!0),n.svg?(e.openBlock(),e.createElementBlock("div",qo,[e.renderSlot(s.$slots,"svg")])):e.createCommentVNode("",!0),t.dots?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(["mbg__layer mbg__dots",t.dotsClass]),style:e.normalizeStyle(t.dotsStyle)},null,6)):e.createCommentVNode("",!0),n.default?(e.openBlock(),e.createElementBlock("div",Uo,[e.renderSlot(s.$slots,"default")])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)]),_:3}))}});function Lt(t,o={}){return{top:()=>{var n;return(((n=t.value)==null?void 0:n.getBoundingClientRect().top)??0)+window.scrollY+(o.y?o.y():0)},bottom:()=>{var n;return(((n=t.value)==null?void 0:n.getBoundingClientRect().bottom)??0)+window.scrollY+(o.y?o.y():0)},right:()=>{var n;return(((n=t.value)==null?void 0:n.getBoundingClientRect().right)??0)+window.scrollX+(o.x?o.x():0)},left:()=>{var n;return(((n=t.value)==null?void 0:n.getBoundingClientRect().left)??0)+window.scrollX+(o.x?o.x():0)}}}function Go(t){const o=Lt(t);return{top:o.top(),bottom:o.bottom(),right:o.right(),left:o.left()}}function ot(t){return t.map((o,n,i)=>{const s=i.reduce((r,a,d)=>(d>n?r.push(r.at(-1)):r.push(a.left),r),[]);return[...i.reduce((r,a,d)=>(d>n?r.push(r.at(-1)):r.push(a.right),r),[]),...s.reverse()]})}function Ft(t){const o=ot(t),n=o.length,i=o[0].length,s=[];for(let l=0;l<i;l++){const r=[];for(let a=0;a<n;a++)r.push(o[a][l]);s.push(r)}return s}function Qo(t,o,n,i){const s=Ft(t);for(const l of s){const r=o.createSVGPoint();n.points.appendItem(r),i(r,l)}}function Ko(t,o,n){const i=ot(t).at(-1);if(i)for(const s of i){const l=o.createSVGPoint();l.x=s.x,l.y=s.y,n.points.appendItem(l)}}function st(t){if(t.length!==2)throw new Error("Array should contain 2 numbers in order to be translated into coords");return{x:t[0],y:t[1]}}function Mt(t){if(t.length!==2)throw new Error("Array should contain 2 elements in order to be translated into LineEdge");return{left:st(t[0]),right:st(t[1])}}function Zo(t){return t.map(Mt)}h.DActionsFan=jo,h.DActionsList=Wo,h.DAlert=Lo,h.DAnimationAccordion=Hn,h.DAnimationFloatingLetter=Qn,h.DAnimationHypnosis=Zn,h.DAnimationSpinner=Yn,h.DBigBangButton=bo,h.DBigBangButtonAnimation=yo,h.DBtn=x,h.DCard=Bo,h.DCardTitle=$o,h.DChip=zt,h.DPagination=Xe,h.DQuote=Mo,h.DStats=zn,h.DWrapBackground=Ho,h.DWrapFocusHighlight=L,h.DWrapShape=E,h.applyLinePerPointAnimation=Qo,h.applyStaticPoints=Ko,h.createCoordsFromArray=st,h.createLineEdgeFromArray=Mt,h.createLineFromArray=Zo,h.generatePolygonLineKeyframes=ot,h.generatePolygonPointsKeyframes=Ft,h.getAbsoluteBoundings=Go,h.getAbsoluteBoundingsGetters=Lt,h.getLinkToPaginatedPage=Vt,h.useDBigBangButtonUtils=nt,h.useDPaginationUtils=Pt,Object.defineProperty(h,Symbol.toStringTag,{value:"Module"})});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@d0rich/esprit-design",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.0",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -25,6 +25,7 @@
|
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
27
|
"@iconify/vue": "^4.1.2",
|
|
28
|
+
"@vueuse/core": "^13.2.0",
|
|
28
29
|
"gsap": "^3.12.5",
|
|
29
30
|
"vue": "^3.5.13"
|
|
30
31
|
},
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
2
|
import gsap from 'gsap'
|
|
3
3
|
import { watch, computed } from 'vue'
|
|
4
|
+
import { usePreferredReducedMotion } from '@vueuse/core'
|
|
4
5
|
import { useDBigBangButtonUtils } from '../../composables/big-bang-button-utils'
|
|
5
6
|
|
|
6
7
|
export default {
|
|
@@ -9,6 +10,7 @@ export default {
|
|
|
9
10
|
</script>
|
|
10
11
|
|
|
11
12
|
<script setup lang="ts">
|
|
13
|
+
const preferredMotion = usePreferredReducedMotion()
|
|
12
14
|
const paths = {
|
|
13
15
|
first: 'M 0 0 C -489.471 -116.5 -526.692 -193.268 -563.913 -311.911',
|
|
14
16
|
last: 'M 0 0 C 317.761 171.963 466.645 199.879 680.666 171.963',
|
|
@@ -38,6 +40,10 @@ function pathFromIndex(i: number) {
|
|
|
38
40
|
}
|
|
39
41
|
|
|
40
42
|
function onEnter(el: Element, done: () => void) {
|
|
43
|
+
if (preferredMotion.value === 'reduce') {
|
|
44
|
+
done()
|
|
45
|
+
return
|
|
46
|
+
}
|
|
41
47
|
gsap.fromTo(
|
|
42
48
|
el,
|
|
43
49
|
{
|
|
@@ -56,6 +62,10 @@ function onEnter(el: Element, done: () => void) {
|
|
|
56
62
|
}
|
|
57
63
|
|
|
58
64
|
function onLeave(el: Element, done: () => void) {
|
|
65
|
+
if (preferredMotion.value === 'reduce') {
|
|
66
|
+
done()
|
|
67
|
+
return
|
|
68
|
+
}
|
|
59
69
|
const index = +gsap.getProperty(el, 'i')
|
|
60
70
|
gsap.to(el, {
|
|
61
71
|
motionPath: {
|
|
@@ -180,6 +180,19 @@ const currentComponent = computed(() => {
|
|
|
180
180
|
transform: skew(-40deg) rotate(-6deg) scaleX(0.8);
|
|
181
181
|
}
|
|
182
182
|
}
|
|
183
|
+
|
|
184
|
+
@media (prefers-reduced-motion: reduce) {
|
|
185
|
+
.d-focus-hl > :is(.d-focus-hl__hl--negative-tile, .d-focus-hl__hl--tile) {
|
|
186
|
+
transition: none;
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
.d-focus-hl:hover
|
|
190
|
+
> :is(.d-focus-hl__hl--negative-tile, .d-focus-hl__hl--tile),
|
|
191
|
+
.d-focusable:focus
|
|
192
|
+
:is(.d-focus-hl__hl--negative-tile, .d-focus-hl__hl--tile) {
|
|
193
|
+
animation-play-state: paused;
|
|
194
|
+
}
|
|
195
|
+
}
|
|
183
196
|
</style>
|
|
184
197
|
|
|
185
198
|
<!-- list-item -->
|
|
@@ -260,4 +273,16 @@ const currentComponent = computed(() => {
|
|
|
260
273
|
clip-path: polygon(1em 10%, 0% 90%, 100% 50%);
|
|
261
274
|
}
|
|
262
275
|
}
|
|
276
|
+
|
|
277
|
+
@media (prefers-reduced-motion: reduce) {
|
|
278
|
+
.d-focus-hl
|
|
279
|
+
> :is(.d-focus-hl__hl--list-item, .d-focus-hl__hl--negative-list-item) {
|
|
280
|
+
transition: none;
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
:is(.d-focus-hl:hover, .d-focusable:focus)
|
|
284
|
+
:is(.d-focus-hl__hl--list-item, .d-focus-hl__hl--negative-list-item) {
|
|
285
|
+
animation-play-state: paused;
|
|
286
|
+
}
|
|
287
|
+
}
|
|
263
288
|
</style>
|
package/tailwind.config.js
CHANGED
|
@@ -10,14 +10,22 @@ module.exports = {
|
|
|
10
10
|
serif: [
|
|
11
11
|
'"Roboto Slab"',
|
|
12
12
|
'"Noto Color Emoji"',
|
|
13
|
-
...defaultTheme.fontFamily.
|
|
13
|
+
...defaultTheme.fontFamily.serif
|
|
14
14
|
],
|
|
15
15
|
mono: [
|
|
16
16
|
'"JetBrains Mono"',
|
|
17
17
|
'"Noto Color Emoji"',
|
|
18
18
|
...defaultTheme.fontFamily.mono
|
|
19
19
|
],
|
|
20
|
-
dialog: [
|
|
20
|
+
dialog: [
|
|
21
|
+
'Arsenal',
|
|
22
|
+
'"Noto Color Emoji"',
|
|
23
|
+
'"Segoe UI"',
|
|
24
|
+
'"San Francisco"',
|
|
25
|
+
'Roboto',
|
|
26
|
+
'Arial',
|
|
27
|
+
'sans-serif'
|
|
28
|
+
]
|
|
21
29
|
},
|
|
22
30
|
extend: {
|
|
23
31
|
screens: {
|