@d0rich/esprit-design 0.4.2 → 0.4.3

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 CHANGED
@@ -1,5 +1,11 @@
1
1
  # @d0rich/esprit-design
2
2
 
3
+ ## 0.4.3
4
+
5
+ ### Patch Changes
6
+
7
+ - e4e26d7: Process external link case in link component calculation
8
+
3
9
  ## 0.4.2
4
10
 
5
11
  ### Patch Changes
@@ -9,11 +9,11 @@ export interface LinkProps {
9
9
  export declare function useLink(props: LinkProps): {
10
10
  isLink: import('vue').ComputedRef<boolean>;
11
11
  isExternalLink: import('vue').ComputedRef<boolean>;
12
- linkComponent: import('vue-router')._RouterLinkI;
12
+ linkComponent: string;
13
13
  propsToProvide: import('vue').ComputedRef<Record<string, any>>;
14
14
  } | {
15
15
  isLink: import('vue').ComputedRef<boolean>;
16
16
  isExternalLink: import('vue').ComputedRef<boolean>;
17
- linkComponent: string;
17
+ linkComponent: import('vue-router')._RouterLinkI;
18
18
  propsToProvide: import('vue').ComputedRef<Record<string, any>>;
19
19
  };
@@ -1395,7 +1395,12 @@ function le(t) {
1395
1395
  const r = { ...t };
1396
1396
  return t.href && t.to ? delete r.href : t.href ? delete r.to : t.to && delete r.href, r;
1397
1397
  });
1398
- return o.value ? typeof n < "u" ? {
1398
+ return o.value ? s.value ? {
1399
+ isLink: o,
1400
+ isExternalLink: s,
1401
+ linkComponent: "a",
1402
+ propsToProvide: i
1403
+ } : typeof n < "u" ? {
1399
1404
  isLink: o,
1400
1405
  isExternalLink: s,
1401
1406
  linkComponent: n,
@@ -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,G){"use strict";const Qt={name:"DChip"},K=(t,n)=>{const o=t.__vccOpts||t;for(const[i,s]of n)o[i]=s;return o},Zt={class:"d-chip"};function Xt(t,n,o,i,s,r){return e.openBlock(),e.createElementBlock("span",Zt,[e.renderSlot(t.$slots,"default")])}const Jt=K(Qt,[["render",Xt]]),P=/^[a-z0-9]+(-[a-z0-9]+)*$/,A=(t,n,o,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(),c=s.pop(),d={provider:s.length>0?s[0]:i,prefix:c,name:a};return n&&!j(d)?null:d}const r=s[0],l=r.split("-");if(l.length>1){const a={provider:i,prefix:l.shift(),name:l.join("-")};return n&&!j(a)?null:a}if(o&&i===""){const a={provider:i,prefix:"",name:r};return n&&!j(a,o)?null:a}return null},j=(t,n)=>t?!!((t.provider===""||t.provider.match(P))&&(n&&t.prefix===""||t.prefix.match(P))&&t.name.match(P)):!1,mt=Object.freeze({left:0,top:0,width:16,height:16}),O=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),z=Object.freeze({...mt,...O}),Q=Object.freeze({...z,body:"",hidden:!1});function Yt(t,n){const o={};!t.hFlip!=!n.hFlip&&(o.hFlip=!0),!t.vFlip!=!n.vFlip&&(o.vFlip=!0);const i=((t.rotate||0)+(n.rotate||0))%4;return i&&(o.rotate=i),o}function pt(t,n){const o=Yt(t,n);for(const i in Q)i in O?i in t&&!(i in o)&&(o[i]=O[i]):i in n?o[i]=n[i]:i in t&&(o[i]=t[i]);return o}function vt(t,n){const o=t.icons,i=t.aliases||Object.create(null),s=Object.create(null);function r(l){if(o[l])return s[l]=[];if(!(l in s)){s[l]=null;const a=i[l]&&i[l].parent,c=a&&r(a);c&&(s[l]=[a].concat(c))}return s[l]}return Object.keys(o).concat(Object.keys(i)).forEach(r),s}function te(t,n,o){const i=t.icons,s=t.aliases||Object.create(null);let r={};function l(a){r=pt(i[a]||s[a],r)}return l(n),o.forEach(l),pt(t,r)}function ht(t,n){const o=[];if(typeof t!="object"||typeof t.icons!="object")return o;t.not_found instanceof Array&&t.not_found.forEach(s=>{n(s,null),o.push(s)});const i=vt(t);for(const s in i){const r=i[s];r&&(n(s,te(t,s,r)),o.push(s))}return o}const ee={provider:"",aliases:{},not_found:{},...mt};function Z(t,n){for(const o in n)if(o in t&&typeof t[o]!=typeof n[o])return!1;return!0}function gt(t){if(typeof t!="object"||t===null)return null;const n=t;if(typeof n.prefix!="string"||!t.icons||typeof t.icons!="object"||!Z(t,ee))return null;const o=n.icons;for(const s in o){const r=o[s];if(!s.match(P)||typeof r.body!="string"||!Z(r,Q))return null}const i=n.aliases||Object.create(null);for(const s in i){const r=i[s],l=r.parent;if(!s.match(P)||typeof l!="string"||!o[l]&&!i[l]||!Z(r,Q))return null}return n}const yt=Object.create(null);function ne(t,n){return{provider:t,prefix:n,icons:Object.create(null),missing:new Set}}function $(t,n){const o=yt[t]||(yt[t]=Object.create(null));return o[n]||(o[n]=ne(t,n))}function X(t,n){return gt(n)?ht(n,(o,i)=>{i?t.icons[o]=i:t.missing.add(o)}):[]}function oe(t,n,o){try{if(typeof o.body=="string")return t.icons[n]={...o},!0}catch{}return!1}let T=!1;function _t(t){return typeof t=="boolean"&&(T=t),T}function se(t){const n=typeof t=="string"?A(t,!0,T):t;if(n){const o=$(n.provider,n.prefix),i=n.name;return o.icons[i]||(o.missing.has(i)?null:void 0)}}function ie(t,n){const o=A(t,!0,T);if(!o)return!1;const i=$(o.provider,o.prefix);return oe(i,o.name,n)}function re(t,n){if(typeof t!="object")return!1;if(typeof n!="string"&&(n=t.provider||""),T&&!n&&!t.prefix){let s=!1;return gt(t)&&(t.prefix="",ht(t,(r,l)=>{l&&ie(r,l)&&(s=!0)})),s}const o=t.prefix;if(!j({provider:n,prefix:o,name:"a"}))return!1;const i=$(n,o);return!!X(i,t)}const kt=Object.freeze({width:null,height:null}),bt=Object.freeze({...kt,...O}),le=/(-?[0-9.]*[0-9]+[0-9.]*)/g,ae=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function Ct(t,n,o){if(n===1)return t;if(o=o||100,typeof t=="number")return Math.ceil(t*n*o)/o;if(typeof t!="string")return t;const i=t.split(le);if(i===null||!i.length)return t;const s=[];let r=i.shift(),l=ae.test(r);for(;;){if(l){const a=parseFloat(r);isNaN(a)?s.push(r):s.push(Math.ceil(a*n*o)/o)}else s.push(r);if(r=i.shift(),r===void 0)return s.join("");l=!l}}function ce(t,n="defs"){let o="";const i=t.indexOf("<"+n);for(;i>=0;){const s=t.indexOf(">",i),r=t.indexOf("</"+n);if(s===-1||r===-1)break;const l=t.indexOf(">",r);if(l===-1)break;o+=t.slice(s+1,r).trim(),t=t.slice(0,i).trim()+t.slice(l+1)}return{defs:o,content:t}}function de(t,n){return t?"<defs>"+t+"</defs>"+n:n}function fe(t,n,o){const i=ce(t);return de(i.defs,n+i.content+o)}const ue=t=>t==="unset"||t==="undefined"||t==="none";function me(t,n){const o={...z,...t},i={...bt,...n},s={left:o.left,top:o.top,width:o.width,height:o.height};let r=o.body;[o,i].forEach(g=>{const f=[],B=g.hFlip,S=g.vFlip;let y=g.rotate;B?S?y+=2:(f.push("translate("+(s.width+s.left).toString()+" "+(0-s.top).toString()+")"),f.push("scale(-1 1)"),s.top=s.left=0):S&&(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&&(r=fe(r,'<g transform="'+f.join(" ")+'">',"</g>"))});const l=i.width,a=i.height,c=s.width,d=s.height;let u,m;l===null?(m=a===null?"1em":a==="auto"?d:a,u=Ct(m,c/d)):(u=l==="auto"?c:l,m=a===null?Ct(u,d/c):a==="auto"?d:a);const h={},k=(g,f)=>{ue(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:r}}const pe=/\sid="(\S+)"/g,he="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let ge=0;function ye(t,n=he){const o=[];let i;for(;i=pe.exec(t);)o.push(i[1]);if(!o.length)return t;const s="suffix"+(Math.random()*16777216|Date.now()).toString(16);return o.forEach(r=>{const l=typeof n=="function"?n(r):n+(ge++).toString(),a=r.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");t=t.replace(new RegExp('([#;"])('+a+')([")]|\\.[a-z])',"g"),"$1"+l+s+"$3")}),t=t.replace(new RegExp(s,"g"),""),t}const J=Object.create(null);function _e(t,n){J[t]=n}function Y(t){return J[t]||J[""]}function v(t){let n;if(typeof t.resources=="string")n=[t.resources];else if(n=t.resources,!(n instanceof Array)||!n.length)return null;return{resources:n,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 tt=Object.create(null),I=["https://api.simplesvg.com","https://api.unisvg.com"],W=[];for(;I.length>0;)I.length===1||Math.random()>.5?W.push(I.shift()):W.push(I.pop());tt[""]=v({resources:["https://api.iconify.design"].concat(W)});function ke(t,n){const o=v(n);return o===null?!1:(tt[t]=o,!0)}function et(t){return tt[t]}let St=(()=>{let t;try{if(t=fetch,typeof t=="function")return t}catch{}})();function be(t,n){const o=et(t);if(!o)return 0;let i;if(!o.maxURL)i=0;else{let s=0;o.resources.forEach(l=>{s=Math.max(s,l.length)});const r=n+".json?icons=";i=o.maxURL-s-o.path.length-r.length}return i}function Ce(t){return t===404}const Se=(t,n,o)=>{const i=[],s=be(t,n),r="icons";let l={type:r,provider:t,prefix:n,icons:[]},a=0;return o.forEach((c,d)=>{a+=c.length+1,a>=s&&d>0&&(i.push(l),l={type:r,provider:t,prefix:n,icons:[]},a=c.length),l.icons.push(c)}),i.push(l),i};function Be(t){if(typeof t=="string"){const n=et(t);if(n)return n.path}return"/"}const we={prepare:Se,send:(t,n,o)=>{if(!St){o("abort",424);return}let i=Be(n.provider);switch(n.type){case"icons":{const r=n.prefix,a=n.icons.join(","),c=new URLSearchParams({icons:a});i+=r+".json?"+c.toString();break}case"custom":{const r=n.uri;i+=r.slice(0,1)==="/"?r.slice(1):r;break}default:o("abort",400);return}let s=503;St(t+i).then(r=>{const l=r.status;if(l!==200){setTimeout(()=>{o(Ce(l)?"abort":"next",l)});return}return s=501,r.json()}).then(r=>{if(typeof r!="object"||r===null){setTimeout(()=>{r===404?o("abort",r):o("next",s)});return}setTimeout(()=>{o("success",r)})}).catch(()=>{o("next",s)})}};function Ee(t){const n={loaded:[],missing:[],pending:[]},o=Object.create(null);t.sort((s,r)=>s.provider!==r.provider?s.provider.localeCompare(r.provider):s.prefix!==r.prefix?s.prefix.localeCompare(r.prefix):s.name.localeCompare(r.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 r=s.provider,l=s.prefix,a=s.name,c=o[r]||(o[r]=Object.create(null)),d=c[l]||(c[l]=$(r,l));let u;a in d.icons?u=n.loaded:l===""||d.missing.has(a)?u=n.missing:u=n.pending;const m={provider:r,prefix:l,name:a};u.push(m)}),n}function Bt(t,n){t.forEach(o=>{const i=o.loaderCallbacks;i&&(o.loaderCallbacks=i.filter(s=>s.id!==n))})}function xe(t){t.pendingCallbacksFlag||(t.pendingCallbacksFlag=!0,setTimeout(()=>{t.pendingCallbacksFlag=!1;const n=t.loaderCallbacks?t.loaderCallbacks.slice(0):[];if(!n.length)return;let o=!1;const i=t.provider,s=t.prefix;n.forEach(r=>{const l=r.icons,a=l.pending.length;l.pending=l.pending.filter(c=>{if(c.prefix!==s)return!0;const d=c.name;if(t.icons[d])l.loaded.push({provider:i,prefix:s,name:d});else if(t.missing.has(d))l.missing.push({provider:i,prefix:s,name:d});else return o=!0,!0;return!1}),l.pending.length!==a&&(o||Bt([t],r.id),r.callback(l.loaded.slice(0),l.missing.slice(0),l.pending.slice(0),r.abort))})}))}let Ne=0;function $e(t,n,o){const i=Ne++,s=Bt.bind(null,o,i);if(!n.pending.length)return s;const r={id:i,icons:n,callback:t,abort:s};return o.forEach(l=>{(l.loaderCallbacks||(l.loaderCallbacks=[])).push(r)}),s}function Ve(t,n=!0,o=!1){const i=[];return t.forEach(s=>{const r=typeof s=="string"?A(s,n,o):s;r&&i.push(r)}),i}var De={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function Pe(t,n,o,i){const s=t.resources.length,r=t.random?Math.floor(Math.random()*s):t.index;let l;if(t.random){let _=t.resources.slice(0);for(l=[];_.length>1;){const E=Math.floor(Math.random()*_.length);l.push(_[E]),_=_.slice(0,E).concat(_.slice(E+1))}l=l.concat(_)}else l=t.resources.slice(r).concat(t.resources.slice(0,r));const a=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(_,E){E&&(k=[]),typeof _=="function"&&k.push(_)}function B(){return{startTime:a,payload:n,status:c,queriesSent:d,queriesPending:h.length,subscribe:f,abort:g}}function S(){c="failed",k.forEach(_=>{_(void 0,u)})}function y(){h.forEach(_=>{_.status==="pending"&&(_.status="aborted")}),h=[]}function b(_,E,M){const H=E!=="success";switch(h=h.filter(V=>V!==_),c){case"pending":break;case"failed":if(H||!t.dataAfterTimeout)return;break;default:return}if(E==="abort"){u=M,S();return}if(H){u=M,h.length||(l.length?ut():S());return}if(C(),y(),!t.random){const V=t.resources.indexOf(_.resource);V!==-1&&V!==t.index&&(t.index=V)}c="completed",k.forEach(V=>{V(M)})}function ut(){if(c!=="pending")return;C();const _=l.shift();if(_===void 0){if(h.length){m=setTimeout(()=>{C(),c==="pending"&&(y(),S())},t.timeout);return}S();return}const E={status:"pending",resource:_,callback:(M,H)=>{b(E,M,H)}};h.push(E),d++,m=setTimeout(ut,t.rotate),o(_,n,E.callback)}return setTimeout(ut),B}function wt(t){const n={...De,...t};let o=[];function i(){o=o.filter(a=>a().status==="pending")}function s(a,c,d){const u=Pe(n,a,c,(m,h)=>{i(),d&&d(m,h)});return o.push(u),u}function r(a){return o.find(c=>a(c))||null}return{query:s,find:r,setIndex:a=>{n.index=a},getIndex:()=>n.index,cleanup:i}}function Et(){}const nt=Object.create(null);function Te(t){if(!nt[t]){const n=et(t);if(!n)return;const o=wt(n),i={config:n,redundancy:o};nt[t]=i}return nt[t]}function Ie(t,n,o){let i,s;if(typeof t=="string"){const r=Y(t);if(!r)return o(void 0,424),Et;s=r.send;const l=Te(t);l&&(i=l.redundancy)}else{const r=v(t);if(r){i=wt(r);const l=t.resources?t.resources[0]:"",a=Y(l);a&&(s=a.send)}}return!i||!s?(o(void 0,424),Et):i.query(n,s,o)().abort}const xt="iconify2",L="iconify",Nt=L+"-count",$t=L+"-version",Vt=36e5,Le=168,Fe=50;function ot(t,n){try{return t.getItem(n)}catch{}}function st(t,n,o){try{return t.setItem(n,o),!0}catch{}}function Dt(t,n){try{t.removeItem(n)}catch{}}function it(t,n){return st(t,Nt,n.toString())}function rt(t){return parseInt(ot(t,Nt))||0}const q={local:!0,session:!0},Pt={local:new Set,session:new Set};let lt=!1;function Me(t){lt=t}let R=typeof window>"u"?{}:window;function Tt(t){const n=t+"Storage";try{if(R&&R[n]&&typeof R[n].length=="number")return R[n]}catch{}q[t]=!1}function It(t,n){const o=Tt(t);if(!o)return;const i=ot(o,$t);if(i!==xt){if(i){const a=rt(o);for(let c=0;c<a;c++)Dt(o,L+c.toString())}st(o,$t,xt),it(o,0);return}const s=Math.floor(Date.now()/Vt)-Le,r=a=>{const c=L+a.toString(),d=ot(o,c);if(typeof d=="string"){try{const u=JSON.parse(d);if(typeof u=="object"&&typeof u.cached=="number"&&u.cached>s&&typeof u.provider=="string"&&typeof u.data=="object"&&typeof u.data.prefix=="string"&&n(u,a))return!0}catch{}Dt(o,c)}};let l=rt(o);for(let a=l-1;a>=0;a--)r(a)||(a===l-1?(l--,it(o,l)):Pt[t].add(a))}function Lt(){if(!lt){Me(!0);for(const t in q)It(t,n=>{const o=n.data,i=n.provider,s=o.prefix,r=$(i,s);if(!X(r,o).length)return!1;const l=o.lastModified||-1;return r.lastModifiedCached=r.lastModifiedCached?Math.min(r.lastModifiedCached,l):l,!0})}}function Ae(t,n){const o=t.lastModifiedCached;if(o&&o>=n)return o===n;if(t.lastModifiedCached=n,o)for(const i in q)It(i,s=>{const r=s.data;return s.provider!==t.provider||r.prefix!==t.prefix||r.lastModified===n});return!0}function je(t,n){lt||Lt();function o(i){let s;if(!q[i]||!(s=Tt(i)))return;const r=Pt[i];let l;if(r.size)r.delete(l=Array.from(r).shift());else if(l=rt(s),l>=Fe||!it(s,l+1))return;const a={cached:Math.floor(Date.now()/Vt),provider:t.provider,data:n};return st(s,L+l.toString(),JSON.stringify(a))}n.lastModified&&!Ae(t,n.lastModified)||Object.keys(n.icons).length&&(n.not_found&&(n=Object.assign({},n),delete n.not_found),o("local")||o("session"))}function Ft(){}function Oe(t){t.iconsLoaderFlag||(t.iconsLoaderFlag=!0,setTimeout(()=>{t.iconsLoaderFlag=!1,xe(t)}))}function ze(t,n){t.iconsToLoad?t.iconsToLoad=t.iconsToLoad.concat(n).sort():t.iconsToLoad=n,t.iconsQueueFlag||(t.iconsQueueFlag=!0,setTimeout(()=>{t.iconsQueueFlag=!1;const{provider:o,prefix:i}=t,s=t.iconsToLoad;delete t.iconsToLoad;let r;if(!s||!(r=Y(o)))return;r.prepare(o,i,s).forEach(a=>{Ie(o,a,c=>{if(typeof c!="object")a.icons.forEach(d=>{t.missing.add(d)});else try{const d=X(t,c);if(!d.length)return;const u=t.pendingIcons;u&&d.forEach(m=>{u.delete(m)}),je(t,c)}catch(d){console.error(d)}Oe(t)})})}))}const We=(t,n)=>{const o=Ve(t,!0,_t()),i=Ee(o);if(!i.pending.length){let c=!0;return n&&setTimeout(()=>{c&&n(i.loaded,i.missing,i.pending,Ft)}),()=>{c=!1}}const s=Object.create(null),r=[];let l,a;return i.pending.forEach(c=>{const{provider:d,prefix:u}=c;if(u===a&&d===l)return;l=d,a=u,r.push($(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=$(d,u),k=h.pendingIcons||(h.pendingIcons=new Set);k.has(m)||(k.add(m),s[d][u].push(m))}),r.forEach(c=>{const{provider:d,prefix:u}=c;s[d][u].length&&ze(c,s[d][u])}),n?$e(n,i,r):Ft};function qe(t,n){const o={...t};for(const i in n){const s=n[i],r=typeof s;i in kt?(s===null||s&&(r==="string"||r==="number"))&&(o[i]=s):r===typeof o[i]&&(o[i]=i==="rotate"?s%4:s)}return o}const Re=/[\s,]+/;function Ue(t,n){n.split(Re).forEach(o=>{switch(o.trim()){case"horizontal":t.hFlip=!0;break;case"vertical":t.vFlip=!0;break}})}function He(t,n=0){const o=t.replace(/^-?[0-9.]*/,"");function i(s){for(;s<0;)s+=4;return s%4}if(o===""){const s=parseInt(t);return isNaN(s)?0:i(s)}else if(o!==t){let s=0;switch(o){case"%":s=25;break;case"deg":s=90}if(s){let r=parseFloat(t.slice(0,t.length-o.length));return isNaN(r)?0:(r=r/s,r%1===0?i(r):0)}}return n}function Ge(t,n){let o=t.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const i in n)o+=" "+i+'="'+n[i]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+o+">"+t+"</svg>"}function Ke(t){return t.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function Qe(t){return"data:image/svg+xml,"+Ke(t)}function Ze(t){return'url("'+Qe(t)+'")'}const Mt={...bt,inline:!1},Xe={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":!0,role:"img"},Je={display:"inline-block"},at={backgroundColor:"currentColor"},At={backgroundColor:"transparent"},jt={Image:"var(--svg)",Repeat:"no-repeat",Size:"100% 100%"},Ot={webkitMask:at,mask:at,background:At};for(const t in Ot){const n=Ot[t];for(const o in jt)n[t+o]=jt[o]}const U={};["horizontal","vertical"].forEach(t=>{const n=t.slice(0,1)+"Flip";U[t+"-flip"]=n,U[t.slice(0,1)+"-flip"]=n,U[t+"Flip"]=n});function zt(t){return t+(t.match(/^[-0-9.]+$/)?"px":"")}const Wt=(t,n)=>{const o=qe(Mt,n),i={...Xe},s=n.mode||"svg",r={},l=n.style,a=typeof l=="object"&&!(l instanceof Array)?l:{};for(let g in n){const f=n[g];if(f!==void 0)switch(g){case"icon":case"style":case"onLoad":case"mode":break;case"inline":case"hFlip":case"vFlip":o[g]=f===!0||f==="true"||f===1;break;case"flip":typeof f=="string"&&Ue(o,f);break;case"color":r.color=f;break;case"rotate":typeof f=="string"?o[g]=He(f):typeof f=="number"&&(o[g]=f);break;case"ariaHidden":case"aria-hidden":f!==!0&&f!=="true"&&delete i["aria-hidden"];break;default:{const B=U[g];B?(f===!0||f==="true"||f===1)&&(o[B]=!0):Mt[g]===void 0&&(i[g]=f)}}}const c=me(t,o),d=c.attributes;if(o.inline&&(r.verticalAlign="-0.125em"),s==="svg"){i.style={...r,...a},Object.assign(i,d);let g=0,f=n.id;return typeof f=="string"&&(f=f.replace(/-/g,"_")),i.innerHTML=ye(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=Ge(u,{...d,width:m+"",height:h+""});return i.style={...r,"--svg":Ze(C),width:zt(d.width),height:zt(d.height),...Je,...k?at:At,...a},e.h("span",i)};if(_t(!0),_e("",we),typeof document<"u"&&typeof window<"u"){Lt();const t=window;if(t.IconifyPreload!==void 0){const n=t.IconifyPreload,o="Invalid IconifyPreload syntax.";typeof n=="object"&&n!==null&&(n instanceof Array?n:[n]).forEach(i=>{try{(typeof i!="object"||i===null||i instanceof Array||typeof i.icons!="object"||typeof i.prefix!="string"||!re(i))&&console.error(o)}catch{console.error(o)}})}if(t.IconifyProviders!==void 0){const n=t.IconifyProviders;if(typeof n=="object"&&n!==null)for(let o in n){const i="IconifyProviders["+o+"] is invalid.";try{const s=n[o];if(typeof s!="object"||!s||s.resources===void 0)continue;ke(o,s)||console.error(i)}catch{console.error(i)}}}}const Ye={...z,body:""},D=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,n){if(typeof t=="object"&&t!==null&&typeof t.body=="string")return this._name="",this.abortLoading(),{data:t};let o;if(typeof t!="string"||(o=A(t,!1,!0))===null)return this.abortLoading(),null;const i=se(o);if(!i)return(!this._loadingIcon||this._loadingIcon.name!==t)&&(this.abortLoading(),this._name="",i!==null&&(this._loadingIcon={name:t,abort:We([o],()=>{this.counter++})})),null;this.abortLoading(),this._name!==t&&(this._name=t,n&&n(t));const s=["iconify"];return o.prefix!==""&&s.push("iconify--"+o.prefix),o.provider!==""&&s.push("iconify--"+o.provider),{data:i,classes:s}}},render(){this.counter;const t=this.$attrs,n=this.iconMounted||t.ssr?this.getIcon(t.icon,t.onLoad):null;if(!n)return Wt(Ye,t);let o=t;return n.classes&&(o={...t,class:(typeof t.class=="string"?t.class+" ":"")+n.classes.join(" ")}),Wt({...z,...n.data},o)}});function qt(t,n){return n===1?t:`${t}/${n}`}const Rt=()=>({getLinkToPaginatedPage:qt}),ve={class:"d-shape"},tn={key:0,class:"d-shape__bg-wrapper"},w=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 n=t,o=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 r=e.computed(()=>o["shape-content"]||!i(n.shapeClass)?!0:!s(n.shapeStyle)),l=e.computed(()=>i(n.filterClass)?!s(n.filterStyle):!0);return(a,c)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(a.tag??"div"),null,{default:e.withCtx(()=>[e.createElementVNode("div",ve,[r.value||o["bg-overlay"]||l.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["d-shape__bg-filter",a.filterClass]),style:e.normalizeStyle(a.filterStyle)},[r.value||o["bg-overlay"]?(e.openBlock(),e.createElementBlock("div",tn,[r.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}))}}),en={key:0,class:"d-focus-hl__hl--negative-tile"},nn={key:2,class:"d-focus-hl__hl--negative-list-item"},on={key:4,class:"d-focus-hl__hl--negative-tile"},sn={key:5,class:"d-focus-hl__hl--negative-list-item"},rn={name:"DWrapFocusHighlight",components:{DWrapShape:w}},F=e.defineComponent({...rn,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 n=t,o=e.computed(()=>n.to||n.href?resolveComponent("NuxtLink"):n.tag);return(i,s)=>(e.openBlock(),e.createBlock(w,null,{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(o.value),e.mergeProps(n,{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",en)):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",nn)):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",on)):t.variant==="composite-list-item"?(e.openBlock(),e.createElementBlock("div",sn)):e.createCommentVNode("",!0)]),_:3},16,["class"]))]),_:3}))}});function Ut(t){const n=e.resolveDynamicComponent("RouterLink"),o=typeof defineNuxtLink=="function"?defineNuxtLink({componentName:"DNuxtLink"}):void 0,i=e.computed(()=>!!(t.href||t.to)),s=e.computed(()=>{if(!t.href)return!1;const l=t.href;return l.startsWith("http")||l.startsWith("mailto:")||l.startsWith("tel:")||l.startsWith("#")}),r=e.computed(()=>{const l={...t};return t.href&&t.to?delete l.href:t.href?delete l.to:t.to&&delete l.href,l});return i.value?typeof o<"u"?{isLink:i,isExternalLink:s,linkComponent:o,propsToProvide:r}:typeof n!="string"?{isLink:i,isExternalLink:s,linkComponent:n,propsToProvide:r}:{isLink:i,isExternalLink:s,linkComponent:"a",propsToProvide:r}:{isLink:i,isExternalLink:s,linkComponent:t.tag||"span",propsToProvide:r}}const ln={name:"DBtn",components:{DWrapFocusHighlight:F}},x=e.defineComponent({...ln,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 n=t,{linkComponent:o,isLink:i,isExternalLink:s,propsToProvide:r}=Ut(n);return(l,a)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(o)),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(r)),{default:e.withCtx(()=>[e.createVNode(F,{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(l.$slots,"default")]),_:3},8,["variant","link-exact","no-passive-link","color-class","active"])]),_:3},16,["class"]))}}),an={class:"w-fit text-2xl font-bold"},cn={key:2,class:"mx-1"},dn={key:3,class:"mx-1"},fn={name:"DPagination",components:{DBtn:x,Icon:D}},un=e.defineComponent({...fn,props:{currentPage:{type:Number,default:1},allPages:{type:Number,required:!0},baseLink:{type:String,required:!0}},setup(t){const n=t,{getLinkToPaginatedPage:o}=Rt();function i(r){return o(n.baseLink,r)}const s=e.computed(()=>Array.from({length:7},(r,l)=>l-3+n.currentPage).filter(r=>r>=1&&r<=n.allPages));return(r,l)=>(e.openBlock(),e.createElementBlock("nav",an,[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(D),{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(()=>l[0]||(l[0]=[e.createTextVNode(" 1 ")])),_:1},8,["to"])),s.value.includes(1)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("span",cn," ... ")),(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",dn," ... ")),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(D),{icon:"ic:baseline-arrow-forward-ios"})]),_:1},8,["to"])):e.createCommentVNode("",!0)]))}}),mn={class:"max-w-full"},pn={class:"stats__print-value"},hn={class:"stats__print-value__group-title"},gn={class:"stats__print-value--small"},yn={class:"stats"},_n={viewBox:"-500 -500 2000 2000",xmlns:"http://www.w3.org/2000/svg"},kn=["points"],bn=["points"],Cn={class:"stats__single-stat"},Sn=["points"],Bn=["points"],wn={class:"stats__single-stat"},En=["points"],xn=["points"],Nn={class:"stats__single-stat"},$n=["points"],Vn=["points"],Dn={class:"stats__single-stat"},Pn=["points"],Tn=["points"],In={class:"stats__single-stat"},Ln=["points"],Fn=["points"],Mn={class:"stats__images"},An={class:"stats__image"},jn={class:"stats__image"},On={class:"stats__image"},zn={class:"stats__image"},Wn={class:"stats__image"},qn={viewBox:"-500 -500 2000 2000",xmlns:"http://www.w3.org/2000/svg",class:"stats_titles-layer"},Rn={x:"-500",y:"-300",class:"stats__group-title"},Un=["x","y","transform-origin"],Hn={class:"stats__title__value"},Gn=["x","y","transform-origin"],Kn={class:"stats__title__value"},Qn=["x","y","transform-origin"],Zn={class:"stats__title__value"},Xn=["x","y","transform-origin"],Jn={class:"stats__title__value"},Yn=["x","y","transform-origin"],vn={class:"stats__title__value"},to={name:"DStats",components:{Icon:D}},eo=e.defineComponent({...to,props:{groupTitle:{},titles:{},values:{}},setup(t){const n=t,o=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},r=[500,500];function l(f){return f.map(B=>B.join(",")).join(" ")}function a(f,B,S=500,y=500){return f.map(b=>[b[0]-(b[0]-S)*(1-B),b[1]-(b[1]-y)*(1-B)])}const c=e.computed(()=>i.value.map(f=>a(o.value,f)));function d(f){return c.value[5-f]}function u(f){return{value:n.values?n.values[f]??1:1,title:n.titles?n.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,B)=>(e.openBlock(),e.createElementBlock("figure",mn,[e.createElementVNode("div",pn,[e.createElementVNode("div",hn,e.toDisplayString(f.groupTitle),1),e.createElementVNode("div",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(f.titles,(S,y)=>(e.openBlock(),e.createElementBlock("div",{key:S,class:"stats__print-value__skill"},[e.createElementVNode("div",null,e.toDisplayString(S),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(D),{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(D),{key:b,icon:"ic:sharp-star-border"}))),128))])]))),128))])]),e.createElementVNode("div",gn,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(f.titles,(S,y)=>(e.openBlock(),e.createElementBlock("span",{key:S,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(S),3))),128))]),e.createElementVNode("div",yn,[(e.openBlock(),e.createElementBlock("svg",_n,[B[0]||(B[0]=e.createElementVNode("polygon",{points:"100,-350 1500,-500 1000,1350 -500,1500",class:"stats__bg"},null,-1)),e.createElementVNode("polygon",{points:l(a(o.value,2)),class:"stats__bg-star--odd"},null,8,kn),e.createElementVNode("g",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,(S,y)=>(e.openBlock(),e.createElementBlock("polygon",{key:y,points:l(S),class:e.normalizeClass({"stats__bg-star--odd":y%2,"stats__bg-star--even":!(y%2)})},null,10,bn))),128))]),e.createElementVNode("g",null,[e.createElementVNode("g",Cn,[e.createElementVNode("polygon",{points:l([d(m.value.value)[s[1]],d(Math.min(m.value.value,g.value.value))[s["5-1"]],r]),class:"stats__star--dark"},null,8,Sn),e.createElementVNode("polygon",{points:l([d(m.value.value)[s[1]],d(Math.min(m.value.value,h.value.value))[s["1-2"]],r]),class:"stats__star--light"},null,8,Bn)]),e.createElementVNode("g",wn,[e.createElementVNode("polygon",{points:l([d(h.value.value)[s[2]],d(Math.min(m.value.value,h.value.value))[s["1-2"]],r]),class:"stats__star--light"},null,8,En),e.createElementVNode("polygon",{points:l([d(h.value.value)[s[2]],d(Math.min(k.value.value,h.value.value))[s["2-3"]],r]),class:"stats__star--dark"},null,8,xn)]),e.createElementVNode("g",Nn,[e.createElementVNode("polygon",{points:l([d(k.value.value)[s[3]],d(Math.min(h.value.value,k.value.value))[s["2-3"]],r]),class:"stats__star--light"},null,8,$n),e.createElementVNode("polygon",{points:l([d(k.value.value)[s[3]],d(Math.min(k.value.value,C.value.value))[s["3-4"]],r]),class:"stats__star--dark"},null,8,Vn)]),e.createElementVNode("g",Dn,[e.createElementVNode("polygon",{points:l([d(C.value.value)[s[4]],d(Math.min(k.value.value,C.value.value))[s["3-4"]],r]),class:"stats__star--light"},null,8,Pn),e.createElementVNode("polygon",{points:l([d(C.value.value)[s[4]],d(Math.min(C.value.value,g.value.value))[s["4-5"]],r]),class:"stats__star--dark"},null,8,Tn)]),e.createElementVNode("g",In,[e.createElementVNode("polygon",{points:l([d(g.value.value)[s[5]],d(Math.min(C.value.value,g.value.value))[s["4-5"]],r]),class:"stats__star--dark"},null,8,Ln),e.createElementVNode("polygon",{points:l([d(g.value.value)[s[5]],d(Math.min(g.value.value,m.value.value))[s["5-1"]],r]),class:"stats__star--light"},null,8,Fn)])])])),e.createElementVNode("div",Mn,[e.createElementVNode("div",An,[e.renderSlot(f.$slots,"icon-1")]),e.createElementVNode("div",jn,[e.renderSlot(f.$slots,"icon-2")]),e.createElementVNode("div",On,[e.renderSlot(f.$slots,"icon-3")]),e.createElementVNode("div",zn,[e.renderSlot(f.$slots,"icon-4")]),e.createElementVNode("div",Wn,[e.renderSlot(f.$slots,"icon-5")])]),(e.openBlock(),e.createElementBlock("svg",qn,[e.createElementVNode("text",Rn,e.toDisplayString(f.groupTitle),1),e.createElementVNode("g",null,[e.createElementVNode("text",{x:o.value[s[1]][0],y:o.value[s[1]][1]-100,"transform-origin":`${o.value[s[1]][0]} ${o.value[s[1]][1]-100}`,class:"stats__title"},[e.createTextVNode(e.toDisplayString(m.value.title)+" ",1),e.createElementVNode("tspan",Hn,e.toDisplayString(m.value.value),1)],8,Un),e.createElementVNode("text",{x:o.value[s[2]][0]+100,y:o.value[s[2]][1]-100,"transform-origin":`${o.value[s[2]][0]+100} ${o.value[s[2]][1]-100}`,class:"stats__title"},[e.createTextVNode(e.toDisplayString(h.value.title)+" ",1),e.createElementVNode("tspan",Kn,e.toDisplayString(h.value.value),1)],8,Gn),e.createElementVNode("text",{"dominant-baseline":"hanging",x:o.value[s[3]][0]+150,y:o.value[s[3]][1]+150,"transform-origin":`${o.value[s[3]][0]+150} ${o.value[s[3]][1]+150}`,class:"stats__title"},[e.createTextVNode(e.toDisplayString(k.value.title)+" ",1),e.createElementVNode("tspan",Zn,e.toDisplayString(k.value.value),1)],8,Qn),e.createElementVNode("text",{"dominant-baseline":"hanging",x:o.value[s[4]][0]-150,y:o.value[s[4]][1]+150,"transform-origin":`${o.value[s[4]][0]-150} ${o.value[s[4]][1]+150}`,class:"stats__title"},[e.createTextVNode(e.toDisplayString(C.value.title)+" ",1),e.createElementVNode("tspan",Jn,e.toDisplayString(C.value.value),1)],8,Xn),e.createElementVNode("text",{x:o.value[s[5]][0]-100,y:o.value[s[5]][1]-100,"transform-origin":`${o.value[s[5]][0]-100} ${o.value[s[5]][1]-100}`,class:"stats__title"},[e.createTextVNode(e.toDisplayString(g.value.title)+" ",1),e.createElementVNode("tspan",vn,e.toDisplayString(g.value.value),1)],8,Yn)])]))])]))}}),no={name:"DAnimationDefLetterD"},oo={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 so(t,n,o,i,s,r){return e.openBlock(),e.createElementBlock("path",oo)}const N=K(no,[["render",so]]),io={name:"DAnimationAccordion",components:{DAnimationDefLetterD:N}},ro=e.defineComponent({...io,props:{wigglePeriod:{type:Number,default:10},delay:{type:Number,default:1}},setup(t){return(n,o)=>(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"}),o[0]||(o[0]=e.createElementVNode("use",{id:"d-accordion-section",href:"#d-letter",transform:"scale(0.33)"},null,-1))]),o[1]||(o[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))}}),lo={name:"DAnimationFloatingLetter",components:{DAnimationDefLetterD:N}},ao=e.defineComponent({...lo,props:{floatPeriod:{type:Number,default:5},pathClass:{type:[String,Object],default:""}},setup(t){return(n,o)=>(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))}}),co={name:"DAnimationHypnosis",components:{DAnimationDefLetterD:N}},fo=e.defineComponent({...co,props:{wigglePeriod:{type:Number,default:10},delay:{type:Number,default:1}},setup(t){return(n,o)=>(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"}),o[0]||(o[0]=e.createElementVNode("use",{id:"d-hypnosis-section",href:"#d-letter"},null,-1))]),o[1]||(o[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))}}),uo={name:"DAnimationSpinner",components:{DAnimationDefLetterD:N}},mo=e.defineComponent({...uo,props:{spinPeriod:{type:Number,default:10},bladeWigglePeriod:{type:Number,default:5}},setup(t){const n="315 315";return(o,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":n}),e.createElementVNode("g",{id:"spinner",class:"d-animation-spinner__spinner","transform-origin":n},[e.createElementVNode("use",{href:"#d-spinner-blade",transform:"rotate(0)","transform-origin":n}),e.createElementVNode("use",{href:"#d-spinner-blade",transform:"rotate(120)","transform-origin":n}),e.createElementVNode("use",{href:"#d-spinner-blade",transform:"rotate(240)","transform-origin":n})])]),e.createElementVNode("use",{href:"#spinner",transform:"translate( -20 20 )",class:"d-animation-spinner__background","transform-origin":n}),e.createElementVNode("use",{href:"#spinner",class:"d-animation-spinner__foreground","transform-origin":n})],4))}}),po=e.ref(""),ct=()=>({text:po}),ho={id:"big-bang-button-animation"},go=["i","textContent"],yo={name:"DBigBangButtonAnimation"},_o=e.defineComponent({...yo,setup(t){const 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:o}=ct(),i=e.computed(()=>o.value.split(""));let s;e.watch(o,c=>{clearTimeout(s),c&&(s=setTimeout(()=>o.value="",1500))});function r(c){return c===0?n.first:c===i.value.length-1?n.last:n.intermediate[Math.floor(Math.random()*n.intermediate.length)]}function l(c,d){G.fromTo(c,{opacity:0,rotateX:-90},{opacity:1,rotateX:0,rotate:-12+Math.random()*24,delay:Math.random()*.3,duration:.2,onComplete:d})}function a(c,d){const u=+G.getProperty(c,"i");G.to(c,{motionPath:{path:r(u)},opacity:0,rotate:-180+Math.random()*360,duration:.2,onComplete:d})}return(c,d)=>(e.openBlock(),e.createElementBlock("div",ho,[e.createVNode(e.TransitionGroup,{tag:"div",class:"bbb__text-container",onEnter:l,onLeave:a},{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,go))),128))]),_:1})]))}}),ko=["textContent"],bo={name:"DBigBangButton"},Co=e.defineComponent({...bo,props:{text:{type:String,required:!0},tag:{type:String,default:"button"},to:{type:[String,Object],default:""}},emits:["click"],setup(t,{emit:n}){const o=n,i=t,{text:s}=ct(),{linkComponent:r}=Ut(i),l=e.computed(()=>i.text.split(""));function a(c){s.value=i.text,o("click",c)}return(c,d)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(r)),{to:t.to,class:"big-bang-button",onClick:a},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.value,(u,m)=>(e.openBlock(),e.createElementBlock("span",{key:m,textContent:e.toDisplayString(u)},null,8,ko))),128))]),_:1},8,["to"]))}}),So={name:"DCard",components:{DWrapShape:w}},Bo=e.defineComponent({...So,props:{mode:{type:String,default:"default"},dense:Boolean},setup(t){return(n,o)=>(e.openBlock(),e.createBlock(w,{"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(n.$slots,"default")],2)]),_:3},8,["shape-class","class"]))}}),wo={name:"DCardTitle",components:{DWrapShape:w}},Eo={class:"card__title"},xo={class:"card__title__content__text"},No={class:"ml-2 print:text-neutral-600"};function $o(t,n,o,i,s,r){const l=e.resolveComponent("DWrapShape");return e.openBlock(),e.createElementBlock("div",Eo,[e.createVNode(l,{class:"card__title__content","shape-class":"card__title__content__shape"},{default:e.withCtx(()=>[e.createElementVNode("h3",xo,[e.renderSlot(t.$slots,"default")])]),_:3}),e.createElementVNode("span",No,[e.renderSlot(t.$slots,"extra")])])}const Vo=K(wo,[["render",$o]]),Do={class:"d-alert__body"},Po={viewBox:"0 0 1067 1067",xmlns:"http://www.w3.org/2000/svg",class:"d-alert__sign"},To={key:0},Io={key:1},Lo={key:2},Fo=e.defineComponent({__name:"DAlert",props:{type:{type:String,default:"info"}},setup(t){return(n,o)=>(e.openBlock(),e.createBlock(w,{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(()=>o[0]||(o[0]=[e.createElementVNode("div",{class:"d-alert__outline"},null,-1)])),default:e.withCtx(()=>[e.createElementVNode("div",Do,[e.renderSlot(n.$slots,"default"),(e.openBlock(),e.createElementBlock("svg",Po,[t.type==="info"?(e.openBlock(),e.createElementBlock("g",To,o[1]||(o[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",Io,o[2]||(o[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",Lo,o[3]||(o[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"]))}}),Mo={class:"d-blockquote__body"},Ao=e.defineComponent({__name:"DQuote",props:{direction:{type:String,default:"right"}},setup(t){return(n,o)=>(e.openBlock(),e.createBlock(w,{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(()=>o[0]||(o[0]=[e.createElementVNode("div",{class:"d-blockquote__outline"},null,-1)])),default:e.withCtx(()=>[e.createElementVNode("div",Mo,[e.renderSlot(n.$slots,"default")])]),_:3},8,["class"]))}}),jo={name:"DActionsFan",components:{DWrapShape:w,DBtn:x}},Oo=e.defineComponent({...jo,props:{actions:{type:Array,default:()=>[]},side:{type:String,default:"left"},filterClass:{type:[String,Object],default:""}},emits:["actionFocus","actionUnfocus","actionChoose"],setup(t){return(n,o)=>(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(w,{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:r=>n.$emit("actionChoose",i.emit),onMouseenter:r=>n.$emit("actionFocus",i.emit),onTouchstart:r=>n.$emit("actionFocus",i.emit),onFocusin:r=>n.$emit("actionFocus",i.emit),onMouseleave:r=>n.$emit("actionUnfocus",i.emit),onTouchend:r=>n.$emit("actionUnfocus",i.emit),onFocusout:r=>n.$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"]))}}),zo={class:"d-actions-list__body"},Wo={key:0,class:"d-actions-list__header"},qo=e.defineComponent({name:"DActionsList",components:{DWrapFocusHighlight:F,DWrapShape:w},__name:"DActionsList",props:{actions:{type:Array,default:()=>[]},listClass:{type:[String,Object],default:""}},emits:["actionFocus","actionUnfocus","actionChoose"],setup(t){function n(i){var s;return(s=i.attrs)!=null&&s.highlightVariant?i.attrs.highlightVariant:"negative-list-item"}const o=e.useSlots();return(i,s)=>(e.openBlock(),e.createBlock(w,{"shape-class":"d-actions-list__shape"},{default:e.withCtx(()=>[e.createElementVNode("div",zo,[o.header?(e.openBlock(),e.createElementBlock("div",Wo,[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,r=>(e.openBlock(),e.createElementBlock("li",{key:r.title},[e.createVNode(F,e.mergeProps({ref_for:!0},r.attrs,{tag:"button",variant:n(r),"no-passive-link":"",onClick:l=>i.$emit("actionChoose",r.emit),onMouseenter:l=>i.$emit("actionFocus",r.emit),onTouchstart:l=>i.$emit("actionFocus",r.emit),onFocusin:l=>i.$emit("actionFocus",r.emit),onMouseleave:l=>i.$emit("actionUnfocus",r.emit),onTouchend:l=>i.$emit("actionUnfocus",r.emit),onFocusout:l=>i.$emit("actionUnfocus",r.emit)}),{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(r.title),1)]),_:2},1040,["variant","onClick","onMouseenter","onTouchstart","onFocusin","onMouseleave","onTouchend","onFocusout"])]))),128))]),_:1},8,["class"])])]),_:3}))}}),Ro={key:0,class:"mbg__relative-container"},Uo={key:1,class:"mbg__layer"},Ho={key:3,class:"mbg__content"},Go=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 n=t,o=e.useSlots(),i=e.computed(()=>typeof n.overlayStyle=="string"?!n.overlayStyle.trim():Array.isArray(n.overlayStyle)?n.overlayStyle.length===0:n.overlayStyle===null||n.overlayStyle===void 0?!0:Object.keys(n.overlayStyle).length===0);return(s,r)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.tag),{class:"mbg__main-container"},{default:e.withCtx(()=>[t.overlayClass||!i.value||o.svg||o.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),o.svg?(e.openBlock(),e.createElementBlock("div",Uo,[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),o.default?(e.openBlock(),e.createElementBlock("div",Ho,[e.renderSlot(s.$slots,"default")])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)]),_:3}))}});function Ht(t,n={}){return{top:()=>{var o;return(((o=t.value)==null?void 0:o.getBoundingClientRect().top)??0)+window.scrollY+(n.y?n.y():0)},bottom:()=>{var o;return(((o=t.value)==null?void 0:o.getBoundingClientRect().bottom)??0)+window.scrollY+(n.y?n.y():0)},right:()=>{var o;return(((o=t.value)==null?void 0:o.getBoundingClientRect().right)??0)+window.scrollX+(n.x?n.x():0)},left:()=>{var o;return(((o=t.value)==null?void 0:o.getBoundingClientRect().left)??0)+window.scrollX+(n.x?n.x():0)}}}function Ko(t){const n=Ht(t);return{top:n.top(),bottom:n.bottom(),right:n.right(),left:n.left()}}function dt(t){return t.map((n,o,i)=>{const s=i.reduce((l,a,c)=>(c>o?l.push(l.at(-1)):l.push(a.left),l),[]);return[...i.reduce((l,a,c)=>(c>o?l.push(l.at(-1)):l.push(a.right),l),[]),...s.reverse()]})}function Gt(t){const n=dt(t),o=n.length,i=n[0].length,s=[];for(let r=0;r<i;r++){const l=[];for(let a=0;a<o;a++)l.push(n[a][r]);s.push(l)}return s}function Qo(t,n,o,i){const s=Gt(t);for(const r of s){const l=n.createSVGPoint();o.points.appendItem(l),i(l,r)}}function Zo(t,n,o){const i=dt(t).at(-1);if(i)for(const s of i){const r=n.createSVGPoint();r.x=s.x,r.y=s.y,o.points.appendItem(r)}}function ft(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 Kt(t){if(t.length!==2)throw new Error("Array should contain 2 elements in order to be translated into LineEdge");return{left:ft(t[0]),right:ft(t[1])}}function Xo(t){return t.map(Kt)}p.DActionsFan=Oo,p.DActionsList=qo,p.DAlert=Fo,p.DAnimationAccordion=ro,p.DAnimationFloatingLetter=ao,p.DAnimationHypnosis=fo,p.DAnimationSpinner=mo,p.DBigBangButton=Co,p.DBigBangButtonAnimation=_o,p.DBtn=x,p.DCard=Bo,p.DCardTitle=Vo,p.DChip=Jt,p.DPagination=un,p.DQuote=Ao,p.DStats=eo,p.DWrapBackground=Go,p.DWrapFocusHighlight=F,p.DWrapShape=w,p.applyLinePerPointAnimation=Qo,p.applyStaticPoints=Zo,p.createCoordsFromArray=ft,p.createLineEdgeFromArray=Kt,p.createLineFromArray=Xo,p.generatePolygonLineKeyframes=dt,p.generatePolygonPointsKeyframes=Gt,p.getAbsoluteBoundings=Ko,p.getAbsoluteBoundingsGetters=Ht,p.getLinkToPaginatedPage=qt,p.useDBigBangButtonUtils=ct,p.useDPaginationUtils=Rt,Object.defineProperty(p,Symbol.toStringTag,{value:"Module"})});
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,G){"use strict";const Qt={name:"DChip"},K=(t,n)=>{const o=t.__vccOpts||t;for(const[i,s]of n)o[i]=s;return o},Zt={class:"d-chip"};function Xt(t,n,o,i,s,r){return e.openBlock(),e.createElementBlock("span",Zt,[e.renderSlot(t.$slots,"default")])}const Jt=K(Qt,[["render",Xt]]),P=/^[a-z0-9]+(-[a-z0-9]+)*$/,A=(t,n,o,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(),c=s.pop(),d={provider:s.length>0?s[0]:i,prefix:c,name:a};return n&&!j(d)?null:d}const r=s[0],l=r.split("-");if(l.length>1){const a={provider:i,prefix:l.shift(),name:l.join("-")};return n&&!j(a)?null:a}if(o&&i===""){const a={provider:i,prefix:"",name:r};return n&&!j(a,o)?null:a}return null},j=(t,n)=>t?!!((t.provider===""||t.provider.match(P))&&(n&&t.prefix===""||t.prefix.match(P))&&t.name.match(P)):!1,mt=Object.freeze({left:0,top:0,width:16,height:16}),O=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),z=Object.freeze({...mt,...O}),Q=Object.freeze({...z,body:"",hidden:!1});function Yt(t,n){const o={};!t.hFlip!=!n.hFlip&&(o.hFlip=!0),!t.vFlip!=!n.vFlip&&(o.vFlip=!0);const i=((t.rotate||0)+(n.rotate||0))%4;return i&&(o.rotate=i),o}function pt(t,n){const o=Yt(t,n);for(const i in Q)i in O?i in t&&!(i in o)&&(o[i]=O[i]):i in n?o[i]=n[i]:i in t&&(o[i]=t[i]);return o}function vt(t,n){const o=t.icons,i=t.aliases||Object.create(null),s=Object.create(null);function r(l){if(o[l])return s[l]=[];if(!(l in s)){s[l]=null;const a=i[l]&&i[l].parent,c=a&&r(a);c&&(s[l]=[a].concat(c))}return s[l]}return Object.keys(o).concat(Object.keys(i)).forEach(r),s}function te(t,n,o){const i=t.icons,s=t.aliases||Object.create(null);let r={};function l(a){r=pt(i[a]||s[a],r)}return l(n),o.forEach(l),pt(t,r)}function ht(t,n){const o=[];if(typeof t!="object"||typeof t.icons!="object")return o;t.not_found instanceof Array&&t.not_found.forEach(s=>{n(s,null),o.push(s)});const i=vt(t);for(const s in i){const r=i[s];r&&(n(s,te(t,s,r)),o.push(s))}return o}const ee={provider:"",aliases:{},not_found:{},...mt};function Z(t,n){for(const o in n)if(o in t&&typeof t[o]!=typeof n[o])return!1;return!0}function gt(t){if(typeof t!="object"||t===null)return null;const n=t;if(typeof n.prefix!="string"||!t.icons||typeof t.icons!="object"||!Z(t,ee))return null;const o=n.icons;for(const s in o){const r=o[s];if(!s.match(P)||typeof r.body!="string"||!Z(r,Q))return null}const i=n.aliases||Object.create(null);for(const s in i){const r=i[s],l=r.parent;if(!s.match(P)||typeof l!="string"||!o[l]&&!i[l]||!Z(r,Q))return null}return n}const yt=Object.create(null);function ne(t,n){return{provider:t,prefix:n,icons:Object.create(null),missing:new Set}}function $(t,n){const o=yt[t]||(yt[t]=Object.create(null));return o[n]||(o[n]=ne(t,n))}function X(t,n){return gt(n)?ht(n,(o,i)=>{i?t.icons[o]=i:t.missing.add(o)}):[]}function oe(t,n,o){try{if(typeof o.body=="string")return t.icons[n]={...o},!0}catch{}return!1}let T=!1;function _t(t){return typeof t=="boolean"&&(T=t),T}function se(t){const n=typeof t=="string"?A(t,!0,T):t;if(n){const o=$(n.provider,n.prefix),i=n.name;return o.icons[i]||(o.missing.has(i)?null:void 0)}}function ie(t,n){const o=A(t,!0,T);if(!o)return!1;const i=$(o.provider,o.prefix);return oe(i,o.name,n)}function re(t,n){if(typeof t!="object")return!1;if(typeof n!="string"&&(n=t.provider||""),T&&!n&&!t.prefix){let s=!1;return gt(t)&&(t.prefix="",ht(t,(r,l)=>{l&&ie(r,l)&&(s=!0)})),s}const o=t.prefix;if(!j({provider:n,prefix:o,name:"a"}))return!1;const i=$(n,o);return!!X(i,t)}const kt=Object.freeze({width:null,height:null}),bt=Object.freeze({...kt,...O}),le=/(-?[0-9.]*[0-9]+[0-9.]*)/g,ae=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function Ct(t,n,o){if(n===1)return t;if(o=o||100,typeof t=="number")return Math.ceil(t*n*o)/o;if(typeof t!="string")return t;const i=t.split(le);if(i===null||!i.length)return t;const s=[];let r=i.shift(),l=ae.test(r);for(;;){if(l){const a=parseFloat(r);isNaN(a)?s.push(r):s.push(Math.ceil(a*n*o)/o)}else s.push(r);if(r=i.shift(),r===void 0)return s.join("");l=!l}}function ce(t,n="defs"){let o="";const i=t.indexOf("<"+n);for(;i>=0;){const s=t.indexOf(">",i),r=t.indexOf("</"+n);if(s===-1||r===-1)break;const l=t.indexOf(">",r);if(l===-1)break;o+=t.slice(s+1,r).trim(),t=t.slice(0,i).trim()+t.slice(l+1)}return{defs:o,content:t}}function de(t,n){return t?"<defs>"+t+"</defs>"+n:n}function fe(t,n,o){const i=ce(t);return de(i.defs,n+i.content+o)}const ue=t=>t==="unset"||t==="undefined"||t==="none";function me(t,n){const o={...z,...t},i={...bt,...n},s={left:o.left,top:o.top,width:o.width,height:o.height};let r=o.body;[o,i].forEach(g=>{const f=[],B=g.hFlip,S=g.vFlip;let y=g.rotate;B?S?y+=2:(f.push("translate("+(s.width+s.left).toString()+" "+(0-s.top).toString()+")"),f.push("scale(-1 1)"),s.top=s.left=0):S&&(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&&(r=fe(r,'<g transform="'+f.join(" ")+'">',"</g>"))});const l=i.width,a=i.height,c=s.width,d=s.height;let u,m;l===null?(m=a===null?"1em":a==="auto"?d:a,u=Ct(m,c/d)):(u=l==="auto"?c:l,m=a===null?Ct(u,d/c):a==="auto"?d:a);const h={},k=(g,f)=>{ue(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:r}}const pe=/\sid="(\S+)"/g,he="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let ge=0;function ye(t,n=he){const o=[];let i;for(;i=pe.exec(t);)o.push(i[1]);if(!o.length)return t;const s="suffix"+(Math.random()*16777216|Date.now()).toString(16);return o.forEach(r=>{const l=typeof n=="function"?n(r):n+(ge++).toString(),a=r.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");t=t.replace(new RegExp('([#;"])('+a+')([")]|\\.[a-z])',"g"),"$1"+l+s+"$3")}),t=t.replace(new RegExp(s,"g"),""),t}const J=Object.create(null);function _e(t,n){J[t]=n}function Y(t){return J[t]||J[""]}function v(t){let n;if(typeof t.resources=="string")n=[t.resources];else if(n=t.resources,!(n instanceof Array)||!n.length)return null;return{resources:n,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 tt=Object.create(null),I=["https://api.simplesvg.com","https://api.unisvg.com"],W=[];for(;I.length>0;)I.length===1||Math.random()>.5?W.push(I.shift()):W.push(I.pop());tt[""]=v({resources:["https://api.iconify.design"].concat(W)});function ke(t,n){const o=v(n);return o===null?!1:(tt[t]=o,!0)}function et(t){return tt[t]}let St=(()=>{let t;try{if(t=fetch,typeof t=="function")return t}catch{}})();function be(t,n){const o=et(t);if(!o)return 0;let i;if(!o.maxURL)i=0;else{let s=0;o.resources.forEach(l=>{s=Math.max(s,l.length)});const r=n+".json?icons=";i=o.maxURL-s-o.path.length-r.length}return i}function Ce(t){return t===404}const Se=(t,n,o)=>{const i=[],s=be(t,n),r="icons";let l={type:r,provider:t,prefix:n,icons:[]},a=0;return o.forEach((c,d)=>{a+=c.length+1,a>=s&&d>0&&(i.push(l),l={type:r,provider:t,prefix:n,icons:[]},a=c.length),l.icons.push(c)}),i.push(l),i};function Be(t){if(typeof t=="string"){const n=et(t);if(n)return n.path}return"/"}const we={prepare:Se,send:(t,n,o)=>{if(!St){o("abort",424);return}let i=Be(n.provider);switch(n.type){case"icons":{const r=n.prefix,a=n.icons.join(","),c=new URLSearchParams({icons:a});i+=r+".json?"+c.toString();break}case"custom":{const r=n.uri;i+=r.slice(0,1)==="/"?r.slice(1):r;break}default:o("abort",400);return}let s=503;St(t+i).then(r=>{const l=r.status;if(l!==200){setTimeout(()=>{o(Ce(l)?"abort":"next",l)});return}return s=501,r.json()}).then(r=>{if(typeof r!="object"||r===null){setTimeout(()=>{r===404?o("abort",r):o("next",s)});return}setTimeout(()=>{o("success",r)})}).catch(()=>{o("next",s)})}};function Ee(t){const n={loaded:[],missing:[],pending:[]},o=Object.create(null);t.sort((s,r)=>s.provider!==r.provider?s.provider.localeCompare(r.provider):s.prefix!==r.prefix?s.prefix.localeCompare(r.prefix):s.name.localeCompare(r.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 r=s.provider,l=s.prefix,a=s.name,c=o[r]||(o[r]=Object.create(null)),d=c[l]||(c[l]=$(r,l));let u;a in d.icons?u=n.loaded:l===""||d.missing.has(a)?u=n.missing:u=n.pending;const m={provider:r,prefix:l,name:a};u.push(m)}),n}function Bt(t,n){t.forEach(o=>{const i=o.loaderCallbacks;i&&(o.loaderCallbacks=i.filter(s=>s.id!==n))})}function xe(t){t.pendingCallbacksFlag||(t.pendingCallbacksFlag=!0,setTimeout(()=>{t.pendingCallbacksFlag=!1;const n=t.loaderCallbacks?t.loaderCallbacks.slice(0):[];if(!n.length)return;let o=!1;const i=t.provider,s=t.prefix;n.forEach(r=>{const l=r.icons,a=l.pending.length;l.pending=l.pending.filter(c=>{if(c.prefix!==s)return!0;const d=c.name;if(t.icons[d])l.loaded.push({provider:i,prefix:s,name:d});else if(t.missing.has(d))l.missing.push({provider:i,prefix:s,name:d});else return o=!0,!0;return!1}),l.pending.length!==a&&(o||Bt([t],r.id),r.callback(l.loaded.slice(0),l.missing.slice(0),l.pending.slice(0),r.abort))})}))}let Ne=0;function $e(t,n,o){const i=Ne++,s=Bt.bind(null,o,i);if(!n.pending.length)return s;const r={id:i,icons:n,callback:t,abort:s};return o.forEach(l=>{(l.loaderCallbacks||(l.loaderCallbacks=[])).push(r)}),s}function Ve(t,n=!0,o=!1){const i=[];return t.forEach(s=>{const r=typeof s=="string"?A(s,n,o):s;r&&i.push(r)}),i}var De={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function Pe(t,n,o,i){const s=t.resources.length,r=t.random?Math.floor(Math.random()*s):t.index;let l;if(t.random){let _=t.resources.slice(0);for(l=[];_.length>1;){const E=Math.floor(Math.random()*_.length);l.push(_[E]),_=_.slice(0,E).concat(_.slice(E+1))}l=l.concat(_)}else l=t.resources.slice(r).concat(t.resources.slice(0,r));const a=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(_,E){E&&(k=[]),typeof _=="function"&&k.push(_)}function B(){return{startTime:a,payload:n,status:c,queriesSent:d,queriesPending:h.length,subscribe:f,abort:g}}function S(){c="failed",k.forEach(_=>{_(void 0,u)})}function y(){h.forEach(_=>{_.status==="pending"&&(_.status="aborted")}),h=[]}function b(_,E,M){const H=E!=="success";switch(h=h.filter(V=>V!==_),c){case"pending":break;case"failed":if(H||!t.dataAfterTimeout)return;break;default:return}if(E==="abort"){u=M,S();return}if(H){u=M,h.length||(l.length?ut():S());return}if(C(),y(),!t.random){const V=t.resources.indexOf(_.resource);V!==-1&&V!==t.index&&(t.index=V)}c="completed",k.forEach(V=>{V(M)})}function ut(){if(c!=="pending")return;C();const _=l.shift();if(_===void 0){if(h.length){m=setTimeout(()=>{C(),c==="pending"&&(y(),S())},t.timeout);return}S();return}const E={status:"pending",resource:_,callback:(M,H)=>{b(E,M,H)}};h.push(E),d++,m=setTimeout(ut,t.rotate),o(_,n,E.callback)}return setTimeout(ut),B}function wt(t){const n={...De,...t};let o=[];function i(){o=o.filter(a=>a().status==="pending")}function s(a,c,d){const u=Pe(n,a,c,(m,h)=>{i(),d&&d(m,h)});return o.push(u),u}function r(a){return o.find(c=>a(c))||null}return{query:s,find:r,setIndex:a=>{n.index=a},getIndex:()=>n.index,cleanup:i}}function Et(){}const nt=Object.create(null);function Te(t){if(!nt[t]){const n=et(t);if(!n)return;const o=wt(n),i={config:n,redundancy:o};nt[t]=i}return nt[t]}function Ie(t,n,o){let i,s;if(typeof t=="string"){const r=Y(t);if(!r)return o(void 0,424),Et;s=r.send;const l=Te(t);l&&(i=l.redundancy)}else{const r=v(t);if(r){i=wt(r);const l=t.resources?t.resources[0]:"",a=Y(l);a&&(s=a.send)}}return!i||!s?(o(void 0,424),Et):i.query(n,s,o)().abort}const xt="iconify2",L="iconify",Nt=L+"-count",$t=L+"-version",Vt=36e5,Le=168,Fe=50;function ot(t,n){try{return t.getItem(n)}catch{}}function st(t,n,o){try{return t.setItem(n,o),!0}catch{}}function Dt(t,n){try{t.removeItem(n)}catch{}}function it(t,n){return st(t,Nt,n.toString())}function rt(t){return parseInt(ot(t,Nt))||0}const q={local:!0,session:!0},Pt={local:new Set,session:new Set};let lt=!1;function Me(t){lt=t}let R=typeof window>"u"?{}:window;function Tt(t){const n=t+"Storage";try{if(R&&R[n]&&typeof R[n].length=="number")return R[n]}catch{}q[t]=!1}function It(t,n){const o=Tt(t);if(!o)return;const i=ot(o,$t);if(i!==xt){if(i){const a=rt(o);for(let c=0;c<a;c++)Dt(o,L+c.toString())}st(o,$t,xt),it(o,0);return}const s=Math.floor(Date.now()/Vt)-Le,r=a=>{const c=L+a.toString(),d=ot(o,c);if(typeof d=="string"){try{const u=JSON.parse(d);if(typeof u=="object"&&typeof u.cached=="number"&&u.cached>s&&typeof u.provider=="string"&&typeof u.data=="object"&&typeof u.data.prefix=="string"&&n(u,a))return!0}catch{}Dt(o,c)}};let l=rt(o);for(let a=l-1;a>=0;a--)r(a)||(a===l-1?(l--,it(o,l)):Pt[t].add(a))}function Lt(){if(!lt){Me(!0);for(const t in q)It(t,n=>{const o=n.data,i=n.provider,s=o.prefix,r=$(i,s);if(!X(r,o).length)return!1;const l=o.lastModified||-1;return r.lastModifiedCached=r.lastModifiedCached?Math.min(r.lastModifiedCached,l):l,!0})}}function Ae(t,n){const o=t.lastModifiedCached;if(o&&o>=n)return o===n;if(t.lastModifiedCached=n,o)for(const i in q)It(i,s=>{const r=s.data;return s.provider!==t.provider||r.prefix!==t.prefix||r.lastModified===n});return!0}function je(t,n){lt||Lt();function o(i){let s;if(!q[i]||!(s=Tt(i)))return;const r=Pt[i];let l;if(r.size)r.delete(l=Array.from(r).shift());else if(l=rt(s),l>=Fe||!it(s,l+1))return;const a={cached:Math.floor(Date.now()/Vt),provider:t.provider,data:n};return st(s,L+l.toString(),JSON.stringify(a))}n.lastModified&&!Ae(t,n.lastModified)||Object.keys(n.icons).length&&(n.not_found&&(n=Object.assign({},n),delete n.not_found),o("local")||o("session"))}function Ft(){}function Oe(t){t.iconsLoaderFlag||(t.iconsLoaderFlag=!0,setTimeout(()=>{t.iconsLoaderFlag=!1,xe(t)}))}function ze(t,n){t.iconsToLoad?t.iconsToLoad=t.iconsToLoad.concat(n).sort():t.iconsToLoad=n,t.iconsQueueFlag||(t.iconsQueueFlag=!0,setTimeout(()=>{t.iconsQueueFlag=!1;const{provider:o,prefix:i}=t,s=t.iconsToLoad;delete t.iconsToLoad;let r;if(!s||!(r=Y(o)))return;r.prepare(o,i,s).forEach(a=>{Ie(o,a,c=>{if(typeof c!="object")a.icons.forEach(d=>{t.missing.add(d)});else try{const d=X(t,c);if(!d.length)return;const u=t.pendingIcons;u&&d.forEach(m=>{u.delete(m)}),je(t,c)}catch(d){console.error(d)}Oe(t)})})}))}const We=(t,n)=>{const o=Ve(t,!0,_t()),i=Ee(o);if(!i.pending.length){let c=!0;return n&&setTimeout(()=>{c&&n(i.loaded,i.missing,i.pending,Ft)}),()=>{c=!1}}const s=Object.create(null),r=[];let l,a;return i.pending.forEach(c=>{const{provider:d,prefix:u}=c;if(u===a&&d===l)return;l=d,a=u,r.push($(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=$(d,u),k=h.pendingIcons||(h.pendingIcons=new Set);k.has(m)||(k.add(m),s[d][u].push(m))}),r.forEach(c=>{const{provider:d,prefix:u}=c;s[d][u].length&&ze(c,s[d][u])}),n?$e(n,i,r):Ft};function qe(t,n){const o={...t};for(const i in n){const s=n[i],r=typeof s;i in kt?(s===null||s&&(r==="string"||r==="number"))&&(o[i]=s):r===typeof o[i]&&(o[i]=i==="rotate"?s%4:s)}return o}const Re=/[\s,]+/;function Ue(t,n){n.split(Re).forEach(o=>{switch(o.trim()){case"horizontal":t.hFlip=!0;break;case"vertical":t.vFlip=!0;break}})}function He(t,n=0){const o=t.replace(/^-?[0-9.]*/,"");function i(s){for(;s<0;)s+=4;return s%4}if(o===""){const s=parseInt(t);return isNaN(s)?0:i(s)}else if(o!==t){let s=0;switch(o){case"%":s=25;break;case"deg":s=90}if(s){let r=parseFloat(t.slice(0,t.length-o.length));return isNaN(r)?0:(r=r/s,r%1===0?i(r):0)}}return n}function Ge(t,n){let o=t.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const i in n)o+=" "+i+'="'+n[i]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+o+">"+t+"</svg>"}function Ke(t){return t.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function Qe(t){return"data:image/svg+xml,"+Ke(t)}function Ze(t){return'url("'+Qe(t)+'")'}const Mt={...bt,inline:!1},Xe={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":!0,role:"img"},Je={display:"inline-block"},at={backgroundColor:"currentColor"},At={backgroundColor:"transparent"},jt={Image:"var(--svg)",Repeat:"no-repeat",Size:"100% 100%"},Ot={webkitMask:at,mask:at,background:At};for(const t in Ot){const n=Ot[t];for(const o in jt)n[t+o]=jt[o]}const U={};["horizontal","vertical"].forEach(t=>{const n=t.slice(0,1)+"Flip";U[t+"-flip"]=n,U[t.slice(0,1)+"-flip"]=n,U[t+"Flip"]=n});function zt(t){return t+(t.match(/^[-0-9.]+$/)?"px":"")}const Wt=(t,n)=>{const o=qe(Mt,n),i={...Xe},s=n.mode||"svg",r={},l=n.style,a=typeof l=="object"&&!(l instanceof Array)?l:{};for(let g in n){const f=n[g];if(f!==void 0)switch(g){case"icon":case"style":case"onLoad":case"mode":break;case"inline":case"hFlip":case"vFlip":o[g]=f===!0||f==="true"||f===1;break;case"flip":typeof f=="string"&&Ue(o,f);break;case"color":r.color=f;break;case"rotate":typeof f=="string"?o[g]=He(f):typeof f=="number"&&(o[g]=f);break;case"ariaHidden":case"aria-hidden":f!==!0&&f!=="true"&&delete i["aria-hidden"];break;default:{const B=U[g];B?(f===!0||f==="true"||f===1)&&(o[B]=!0):Mt[g]===void 0&&(i[g]=f)}}}const c=me(t,o),d=c.attributes;if(o.inline&&(r.verticalAlign="-0.125em"),s==="svg"){i.style={...r,...a},Object.assign(i,d);let g=0,f=n.id;return typeof f=="string"&&(f=f.replace(/-/g,"_")),i.innerHTML=ye(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=Ge(u,{...d,width:m+"",height:h+""});return i.style={...r,"--svg":Ze(C),width:zt(d.width),height:zt(d.height),...Je,...k?at:At,...a},e.h("span",i)};if(_t(!0),_e("",we),typeof document<"u"&&typeof window<"u"){Lt();const t=window;if(t.IconifyPreload!==void 0){const n=t.IconifyPreload,o="Invalid IconifyPreload syntax.";typeof n=="object"&&n!==null&&(n instanceof Array?n:[n]).forEach(i=>{try{(typeof i!="object"||i===null||i instanceof Array||typeof i.icons!="object"||typeof i.prefix!="string"||!re(i))&&console.error(o)}catch{console.error(o)}})}if(t.IconifyProviders!==void 0){const n=t.IconifyProviders;if(typeof n=="object"&&n!==null)for(let o in n){const i="IconifyProviders["+o+"] is invalid.";try{const s=n[o];if(typeof s!="object"||!s||s.resources===void 0)continue;ke(o,s)||console.error(i)}catch{console.error(i)}}}}const Ye={...z,body:""},D=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,n){if(typeof t=="object"&&t!==null&&typeof t.body=="string")return this._name="",this.abortLoading(),{data:t};let o;if(typeof t!="string"||(o=A(t,!1,!0))===null)return this.abortLoading(),null;const i=se(o);if(!i)return(!this._loadingIcon||this._loadingIcon.name!==t)&&(this.abortLoading(),this._name="",i!==null&&(this._loadingIcon={name:t,abort:We([o],()=>{this.counter++})})),null;this.abortLoading(),this._name!==t&&(this._name=t,n&&n(t));const s=["iconify"];return o.prefix!==""&&s.push("iconify--"+o.prefix),o.provider!==""&&s.push("iconify--"+o.provider),{data:i,classes:s}}},render(){this.counter;const t=this.$attrs,n=this.iconMounted||t.ssr?this.getIcon(t.icon,t.onLoad):null;if(!n)return Wt(Ye,t);let o=t;return n.classes&&(o={...t,class:(typeof t.class=="string"?t.class+" ":"")+n.classes.join(" ")}),Wt({...z,...n.data},o)}});function qt(t,n){return n===1?t:`${t}/${n}`}const Rt=()=>({getLinkToPaginatedPage:qt}),ve={class:"d-shape"},tn={key:0,class:"d-shape__bg-wrapper"},w=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 n=t,o=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 r=e.computed(()=>o["shape-content"]||!i(n.shapeClass)?!0:!s(n.shapeStyle)),l=e.computed(()=>i(n.filterClass)?!s(n.filterStyle):!0);return(a,c)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(a.tag??"div"),null,{default:e.withCtx(()=>[e.createElementVNode("div",ve,[r.value||o["bg-overlay"]||l.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["d-shape__bg-filter",a.filterClass]),style:e.normalizeStyle(a.filterStyle)},[r.value||o["bg-overlay"]?(e.openBlock(),e.createElementBlock("div",tn,[r.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}))}}),en={key:0,class:"d-focus-hl__hl--negative-tile"},nn={key:2,class:"d-focus-hl__hl--negative-list-item"},on={key:4,class:"d-focus-hl__hl--negative-tile"},sn={key:5,class:"d-focus-hl__hl--negative-list-item"},rn={name:"DWrapFocusHighlight",components:{DWrapShape:w}},F=e.defineComponent({...rn,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 n=t,o=e.computed(()=>n.to||n.href?resolveComponent("NuxtLink"):n.tag);return(i,s)=>(e.openBlock(),e.createBlock(w,null,{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(o.value),e.mergeProps(n,{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",en)):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",nn)):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",on)):t.variant==="composite-list-item"?(e.openBlock(),e.createElementBlock("div",sn)):e.createCommentVNode("",!0)]),_:3},16,["class"]))]),_:3}))}});function Ut(t){const n=e.resolveDynamicComponent("RouterLink"),o=typeof defineNuxtLink=="function"?defineNuxtLink({componentName:"DNuxtLink"}):void 0,i=e.computed(()=>!!(t.href||t.to)),s=e.computed(()=>{if(!t.href)return!1;const l=t.href;return l.startsWith("http")||l.startsWith("mailto:")||l.startsWith("tel:")||l.startsWith("#")}),r=e.computed(()=>{const l={...t};return t.href&&t.to?delete l.href:t.href?delete l.to:t.to&&delete l.href,l});return i.value?s.value?{isLink:i,isExternalLink:s,linkComponent:"a",propsToProvide:r}:typeof o<"u"?{isLink:i,isExternalLink:s,linkComponent:o,propsToProvide:r}:typeof n!="string"?{isLink:i,isExternalLink:s,linkComponent:n,propsToProvide:r}:{isLink:i,isExternalLink:s,linkComponent:"a",propsToProvide:r}:{isLink:i,isExternalLink:s,linkComponent:t.tag||"span",propsToProvide:r}}const ln={name:"DBtn",components:{DWrapFocusHighlight:F}},x=e.defineComponent({...ln,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 n=t,{linkComponent:o,isLink:i,isExternalLink:s,propsToProvide:r}=Ut(n);return(l,a)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(o)),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(r)),{default:e.withCtx(()=>[e.createVNode(F,{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(l.$slots,"default")]),_:3},8,["variant","link-exact","no-passive-link","color-class","active"])]),_:3},16,["class"]))}}),an={class:"w-fit text-2xl font-bold"},cn={key:2,class:"mx-1"},dn={key:3,class:"mx-1"},fn={name:"DPagination",components:{DBtn:x,Icon:D}},un=e.defineComponent({...fn,props:{currentPage:{type:Number,default:1},allPages:{type:Number,required:!0},baseLink:{type:String,required:!0}},setup(t){const n=t,{getLinkToPaginatedPage:o}=Rt();function i(r){return o(n.baseLink,r)}const s=e.computed(()=>Array.from({length:7},(r,l)=>l-3+n.currentPage).filter(r=>r>=1&&r<=n.allPages));return(r,l)=>(e.openBlock(),e.createElementBlock("nav",an,[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(D),{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(()=>l[0]||(l[0]=[e.createTextVNode(" 1 ")])),_:1},8,["to"])),s.value.includes(1)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("span",cn," ... ")),(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",dn," ... ")),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(D),{icon:"ic:baseline-arrow-forward-ios"})]),_:1},8,["to"])):e.createCommentVNode("",!0)]))}}),mn={class:"max-w-full"},pn={class:"stats__print-value"},hn={class:"stats__print-value__group-title"},gn={class:"stats__print-value--small"},yn={class:"stats"},_n={viewBox:"-500 -500 2000 2000",xmlns:"http://www.w3.org/2000/svg"},kn=["points"],bn=["points"],Cn={class:"stats__single-stat"},Sn=["points"],Bn=["points"],wn={class:"stats__single-stat"},En=["points"],xn=["points"],Nn={class:"stats__single-stat"},$n=["points"],Vn=["points"],Dn={class:"stats__single-stat"},Pn=["points"],Tn=["points"],In={class:"stats__single-stat"},Ln=["points"],Fn=["points"],Mn={class:"stats__images"},An={class:"stats__image"},jn={class:"stats__image"},On={class:"stats__image"},zn={class:"stats__image"},Wn={class:"stats__image"},qn={viewBox:"-500 -500 2000 2000",xmlns:"http://www.w3.org/2000/svg",class:"stats_titles-layer"},Rn={x:"-500",y:"-300",class:"stats__group-title"},Un=["x","y","transform-origin"],Hn={class:"stats__title__value"},Gn=["x","y","transform-origin"],Kn={class:"stats__title__value"},Qn=["x","y","transform-origin"],Zn={class:"stats__title__value"},Xn=["x","y","transform-origin"],Jn={class:"stats__title__value"},Yn=["x","y","transform-origin"],vn={class:"stats__title__value"},to={name:"DStats",components:{Icon:D}},eo=e.defineComponent({...to,props:{groupTitle:{},titles:{},values:{}},setup(t){const n=t,o=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},r=[500,500];function l(f){return f.map(B=>B.join(",")).join(" ")}function a(f,B,S=500,y=500){return f.map(b=>[b[0]-(b[0]-S)*(1-B),b[1]-(b[1]-y)*(1-B)])}const c=e.computed(()=>i.value.map(f=>a(o.value,f)));function d(f){return c.value[5-f]}function u(f){return{value:n.values?n.values[f]??1:1,title:n.titles?n.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,B)=>(e.openBlock(),e.createElementBlock("figure",mn,[e.createElementVNode("div",pn,[e.createElementVNode("div",hn,e.toDisplayString(f.groupTitle),1),e.createElementVNode("div",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(f.titles,(S,y)=>(e.openBlock(),e.createElementBlock("div",{key:S,class:"stats__print-value__skill"},[e.createElementVNode("div",null,e.toDisplayString(S),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(D),{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(D),{key:b,icon:"ic:sharp-star-border"}))),128))])]))),128))])]),e.createElementVNode("div",gn,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(f.titles,(S,y)=>(e.openBlock(),e.createElementBlock("span",{key:S,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(S),3))),128))]),e.createElementVNode("div",yn,[(e.openBlock(),e.createElementBlock("svg",_n,[B[0]||(B[0]=e.createElementVNode("polygon",{points:"100,-350 1500,-500 1000,1350 -500,1500",class:"stats__bg"},null,-1)),e.createElementVNode("polygon",{points:l(a(o.value,2)),class:"stats__bg-star--odd"},null,8,kn),e.createElementVNode("g",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,(S,y)=>(e.openBlock(),e.createElementBlock("polygon",{key:y,points:l(S),class:e.normalizeClass({"stats__bg-star--odd":y%2,"stats__bg-star--even":!(y%2)})},null,10,bn))),128))]),e.createElementVNode("g",null,[e.createElementVNode("g",Cn,[e.createElementVNode("polygon",{points:l([d(m.value.value)[s[1]],d(Math.min(m.value.value,g.value.value))[s["5-1"]],r]),class:"stats__star--dark"},null,8,Sn),e.createElementVNode("polygon",{points:l([d(m.value.value)[s[1]],d(Math.min(m.value.value,h.value.value))[s["1-2"]],r]),class:"stats__star--light"},null,8,Bn)]),e.createElementVNode("g",wn,[e.createElementVNode("polygon",{points:l([d(h.value.value)[s[2]],d(Math.min(m.value.value,h.value.value))[s["1-2"]],r]),class:"stats__star--light"},null,8,En),e.createElementVNode("polygon",{points:l([d(h.value.value)[s[2]],d(Math.min(k.value.value,h.value.value))[s["2-3"]],r]),class:"stats__star--dark"},null,8,xn)]),e.createElementVNode("g",Nn,[e.createElementVNode("polygon",{points:l([d(k.value.value)[s[3]],d(Math.min(h.value.value,k.value.value))[s["2-3"]],r]),class:"stats__star--light"},null,8,$n),e.createElementVNode("polygon",{points:l([d(k.value.value)[s[3]],d(Math.min(k.value.value,C.value.value))[s["3-4"]],r]),class:"stats__star--dark"},null,8,Vn)]),e.createElementVNode("g",Dn,[e.createElementVNode("polygon",{points:l([d(C.value.value)[s[4]],d(Math.min(k.value.value,C.value.value))[s["3-4"]],r]),class:"stats__star--light"},null,8,Pn),e.createElementVNode("polygon",{points:l([d(C.value.value)[s[4]],d(Math.min(C.value.value,g.value.value))[s["4-5"]],r]),class:"stats__star--dark"},null,8,Tn)]),e.createElementVNode("g",In,[e.createElementVNode("polygon",{points:l([d(g.value.value)[s[5]],d(Math.min(C.value.value,g.value.value))[s["4-5"]],r]),class:"stats__star--dark"},null,8,Ln),e.createElementVNode("polygon",{points:l([d(g.value.value)[s[5]],d(Math.min(g.value.value,m.value.value))[s["5-1"]],r]),class:"stats__star--light"},null,8,Fn)])])])),e.createElementVNode("div",Mn,[e.createElementVNode("div",An,[e.renderSlot(f.$slots,"icon-1")]),e.createElementVNode("div",jn,[e.renderSlot(f.$slots,"icon-2")]),e.createElementVNode("div",On,[e.renderSlot(f.$slots,"icon-3")]),e.createElementVNode("div",zn,[e.renderSlot(f.$slots,"icon-4")]),e.createElementVNode("div",Wn,[e.renderSlot(f.$slots,"icon-5")])]),(e.openBlock(),e.createElementBlock("svg",qn,[e.createElementVNode("text",Rn,e.toDisplayString(f.groupTitle),1),e.createElementVNode("g",null,[e.createElementVNode("text",{x:o.value[s[1]][0],y:o.value[s[1]][1]-100,"transform-origin":`${o.value[s[1]][0]} ${o.value[s[1]][1]-100}`,class:"stats__title"},[e.createTextVNode(e.toDisplayString(m.value.title)+" ",1),e.createElementVNode("tspan",Hn,e.toDisplayString(m.value.value),1)],8,Un),e.createElementVNode("text",{x:o.value[s[2]][0]+100,y:o.value[s[2]][1]-100,"transform-origin":`${o.value[s[2]][0]+100} ${o.value[s[2]][1]-100}`,class:"stats__title"},[e.createTextVNode(e.toDisplayString(h.value.title)+" ",1),e.createElementVNode("tspan",Kn,e.toDisplayString(h.value.value),1)],8,Gn),e.createElementVNode("text",{"dominant-baseline":"hanging",x:o.value[s[3]][0]+150,y:o.value[s[3]][1]+150,"transform-origin":`${o.value[s[3]][0]+150} ${o.value[s[3]][1]+150}`,class:"stats__title"},[e.createTextVNode(e.toDisplayString(k.value.title)+" ",1),e.createElementVNode("tspan",Zn,e.toDisplayString(k.value.value),1)],8,Qn),e.createElementVNode("text",{"dominant-baseline":"hanging",x:o.value[s[4]][0]-150,y:o.value[s[4]][1]+150,"transform-origin":`${o.value[s[4]][0]-150} ${o.value[s[4]][1]+150}`,class:"stats__title"},[e.createTextVNode(e.toDisplayString(C.value.title)+" ",1),e.createElementVNode("tspan",Jn,e.toDisplayString(C.value.value),1)],8,Xn),e.createElementVNode("text",{x:o.value[s[5]][0]-100,y:o.value[s[5]][1]-100,"transform-origin":`${o.value[s[5]][0]-100} ${o.value[s[5]][1]-100}`,class:"stats__title"},[e.createTextVNode(e.toDisplayString(g.value.title)+" ",1),e.createElementVNode("tspan",vn,e.toDisplayString(g.value.value),1)],8,Yn)])]))])]))}}),no={name:"DAnimationDefLetterD"},oo={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 so(t,n,o,i,s,r){return e.openBlock(),e.createElementBlock("path",oo)}const N=K(no,[["render",so]]),io={name:"DAnimationAccordion",components:{DAnimationDefLetterD:N}},ro=e.defineComponent({...io,props:{wigglePeriod:{type:Number,default:10},delay:{type:Number,default:1}},setup(t){return(n,o)=>(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"}),o[0]||(o[0]=e.createElementVNode("use",{id:"d-accordion-section",href:"#d-letter",transform:"scale(0.33)"},null,-1))]),o[1]||(o[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))}}),lo={name:"DAnimationFloatingLetter",components:{DAnimationDefLetterD:N}},ao=e.defineComponent({...lo,props:{floatPeriod:{type:Number,default:5},pathClass:{type:[String,Object],default:""}},setup(t){return(n,o)=>(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))}}),co={name:"DAnimationHypnosis",components:{DAnimationDefLetterD:N}},fo=e.defineComponent({...co,props:{wigglePeriod:{type:Number,default:10},delay:{type:Number,default:1}},setup(t){return(n,o)=>(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"}),o[0]||(o[0]=e.createElementVNode("use",{id:"d-hypnosis-section",href:"#d-letter"},null,-1))]),o[1]||(o[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))}}),uo={name:"DAnimationSpinner",components:{DAnimationDefLetterD:N}},mo=e.defineComponent({...uo,props:{spinPeriod:{type:Number,default:10},bladeWigglePeriod:{type:Number,default:5}},setup(t){const n="315 315";return(o,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":n}),e.createElementVNode("g",{id:"spinner",class:"d-animation-spinner__spinner","transform-origin":n},[e.createElementVNode("use",{href:"#d-spinner-blade",transform:"rotate(0)","transform-origin":n}),e.createElementVNode("use",{href:"#d-spinner-blade",transform:"rotate(120)","transform-origin":n}),e.createElementVNode("use",{href:"#d-spinner-blade",transform:"rotate(240)","transform-origin":n})])]),e.createElementVNode("use",{href:"#spinner",transform:"translate( -20 20 )",class:"d-animation-spinner__background","transform-origin":n}),e.createElementVNode("use",{href:"#spinner",class:"d-animation-spinner__foreground","transform-origin":n})],4))}}),po=e.ref(""),ct=()=>({text:po}),ho={id:"big-bang-button-animation"},go=["i","textContent"],yo={name:"DBigBangButtonAnimation"},_o=e.defineComponent({...yo,setup(t){const 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:o}=ct(),i=e.computed(()=>o.value.split(""));let s;e.watch(o,c=>{clearTimeout(s),c&&(s=setTimeout(()=>o.value="",1500))});function r(c){return c===0?n.first:c===i.value.length-1?n.last:n.intermediate[Math.floor(Math.random()*n.intermediate.length)]}function l(c,d){G.fromTo(c,{opacity:0,rotateX:-90},{opacity:1,rotateX:0,rotate:-12+Math.random()*24,delay:Math.random()*.3,duration:.2,onComplete:d})}function a(c,d){const u=+G.getProperty(c,"i");G.to(c,{motionPath:{path:r(u)},opacity:0,rotate:-180+Math.random()*360,duration:.2,onComplete:d})}return(c,d)=>(e.openBlock(),e.createElementBlock("div",ho,[e.createVNode(e.TransitionGroup,{tag:"div",class:"bbb__text-container",onEnter:l,onLeave:a},{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,go))),128))]),_:1})]))}}),ko=["textContent"],bo={name:"DBigBangButton"},Co=e.defineComponent({...bo,props:{text:{type:String,required:!0},tag:{type:String,default:"button"},to:{type:[String,Object],default:""}},emits:["click"],setup(t,{emit:n}){const o=n,i=t,{text:s}=ct(),{linkComponent:r}=Ut(i),l=e.computed(()=>i.text.split(""));function a(c){s.value=i.text,o("click",c)}return(c,d)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(r)),{to:t.to,class:"big-bang-button",onClick:a},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.value,(u,m)=>(e.openBlock(),e.createElementBlock("span",{key:m,textContent:e.toDisplayString(u)},null,8,ko))),128))]),_:1},8,["to"]))}}),So={name:"DCard",components:{DWrapShape:w}},Bo=e.defineComponent({...So,props:{mode:{type:String,default:"default"},dense:Boolean},setup(t){return(n,o)=>(e.openBlock(),e.createBlock(w,{"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(n.$slots,"default")],2)]),_:3},8,["shape-class","class"]))}}),wo={name:"DCardTitle",components:{DWrapShape:w}},Eo={class:"card__title"},xo={class:"card__title__content__text"},No={class:"ml-2 print:text-neutral-600"};function $o(t,n,o,i,s,r){const l=e.resolveComponent("DWrapShape");return e.openBlock(),e.createElementBlock("div",Eo,[e.createVNode(l,{class:"card__title__content","shape-class":"card__title__content__shape"},{default:e.withCtx(()=>[e.createElementVNode("h3",xo,[e.renderSlot(t.$slots,"default")])]),_:3}),e.createElementVNode("span",No,[e.renderSlot(t.$slots,"extra")])])}const Vo=K(wo,[["render",$o]]),Do={class:"d-alert__body"},Po={viewBox:"0 0 1067 1067",xmlns:"http://www.w3.org/2000/svg",class:"d-alert__sign"},To={key:0},Io={key:1},Lo={key:2},Fo=e.defineComponent({__name:"DAlert",props:{type:{type:String,default:"info"}},setup(t){return(n,o)=>(e.openBlock(),e.createBlock(w,{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(()=>o[0]||(o[0]=[e.createElementVNode("div",{class:"d-alert__outline"},null,-1)])),default:e.withCtx(()=>[e.createElementVNode("div",Do,[e.renderSlot(n.$slots,"default"),(e.openBlock(),e.createElementBlock("svg",Po,[t.type==="info"?(e.openBlock(),e.createElementBlock("g",To,o[1]||(o[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",Io,o[2]||(o[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",Lo,o[3]||(o[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"]))}}),Mo={class:"d-blockquote__body"},Ao=e.defineComponent({__name:"DQuote",props:{direction:{type:String,default:"right"}},setup(t){return(n,o)=>(e.openBlock(),e.createBlock(w,{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(()=>o[0]||(o[0]=[e.createElementVNode("div",{class:"d-blockquote__outline"},null,-1)])),default:e.withCtx(()=>[e.createElementVNode("div",Mo,[e.renderSlot(n.$slots,"default")])]),_:3},8,["class"]))}}),jo={name:"DActionsFan",components:{DWrapShape:w,DBtn:x}},Oo=e.defineComponent({...jo,props:{actions:{type:Array,default:()=>[]},side:{type:String,default:"left"},filterClass:{type:[String,Object],default:""}},emits:["actionFocus","actionUnfocus","actionChoose"],setup(t){return(n,o)=>(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(w,{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:r=>n.$emit("actionChoose",i.emit),onMouseenter:r=>n.$emit("actionFocus",i.emit),onTouchstart:r=>n.$emit("actionFocus",i.emit),onFocusin:r=>n.$emit("actionFocus",i.emit),onMouseleave:r=>n.$emit("actionUnfocus",i.emit),onTouchend:r=>n.$emit("actionUnfocus",i.emit),onFocusout:r=>n.$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"]))}}),zo={class:"d-actions-list__body"},Wo={key:0,class:"d-actions-list__header"},qo=e.defineComponent({name:"DActionsList",components:{DWrapFocusHighlight:F,DWrapShape:w},__name:"DActionsList",props:{actions:{type:Array,default:()=>[]},listClass:{type:[String,Object],default:""}},emits:["actionFocus","actionUnfocus","actionChoose"],setup(t){function n(i){var s;return(s=i.attrs)!=null&&s.highlightVariant?i.attrs.highlightVariant:"negative-list-item"}const o=e.useSlots();return(i,s)=>(e.openBlock(),e.createBlock(w,{"shape-class":"d-actions-list__shape"},{default:e.withCtx(()=>[e.createElementVNode("div",zo,[o.header?(e.openBlock(),e.createElementBlock("div",Wo,[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,r=>(e.openBlock(),e.createElementBlock("li",{key:r.title},[e.createVNode(F,e.mergeProps({ref_for:!0},r.attrs,{tag:"button",variant:n(r),"no-passive-link":"",onClick:l=>i.$emit("actionChoose",r.emit),onMouseenter:l=>i.$emit("actionFocus",r.emit),onTouchstart:l=>i.$emit("actionFocus",r.emit),onFocusin:l=>i.$emit("actionFocus",r.emit),onMouseleave:l=>i.$emit("actionUnfocus",r.emit),onTouchend:l=>i.$emit("actionUnfocus",r.emit),onFocusout:l=>i.$emit("actionUnfocus",r.emit)}),{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(r.title),1)]),_:2},1040,["variant","onClick","onMouseenter","onTouchstart","onFocusin","onMouseleave","onTouchend","onFocusout"])]))),128))]),_:1},8,["class"])])]),_:3}))}}),Ro={key:0,class:"mbg__relative-container"},Uo={key:1,class:"mbg__layer"},Ho={key:3,class:"mbg__content"},Go=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 n=t,o=e.useSlots(),i=e.computed(()=>typeof n.overlayStyle=="string"?!n.overlayStyle.trim():Array.isArray(n.overlayStyle)?n.overlayStyle.length===0:n.overlayStyle===null||n.overlayStyle===void 0?!0:Object.keys(n.overlayStyle).length===0);return(s,r)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.tag),{class:"mbg__main-container"},{default:e.withCtx(()=>[t.overlayClass||!i.value||o.svg||o.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),o.svg?(e.openBlock(),e.createElementBlock("div",Uo,[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),o.default?(e.openBlock(),e.createElementBlock("div",Ho,[e.renderSlot(s.$slots,"default")])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)]),_:3}))}});function Ht(t,n={}){return{top:()=>{var o;return(((o=t.value)==null?void 0:o.getBoundingClientRect().top)??0)+window.scrollY+(n.y?n.y():0)},bottom:()=>{var o;return(((o=t.value)==null?void 0:o.getBoundingClientRect().bottom)??0)+window.scrollY+(n.y?n.y():0)},right:()=>{var o;return(((o=t.value)==null?void 0:o.getBoundingClientRect().right)??0)+window.scrollX+(n.x?n.x():0)},left:()=>{var o;return(((o=t.value)==null?void 0:o.getBoundingClientRect().left)??0)+window.scrollX+(n.x?n.x():0)}}}function Ko(t){const n=Ht(t);return{top:n.top(),bottom:n.bottom(),right:n.right(),left:n.left()}}function dt(t){return t.map((n,o,i)=>{const s=i.reduce((l,a,c)=>(c>o?l.push(l.at(-1)):l.push(a.left),l),[]);return[...i.reduce((l,a,c)=>(c>o?l.push(l.at(-1)):l.push(a.right),l),[]),...s.reverse()]})}function Gt(t){const n=dt(t),o=n.length,i=n[0].length,s=[];for(let r=0;r<i;r++){const l=[];for(let a=0;a<o;a++)l.push(n[a][r]);s.push(l)}return s}function Qo(t,n,o,i){const s=Gt(t);for(const r of s){const l=n.createSVGPoint();o.points.appendItem(l),i(l,r)}}function Zo(t,n,o){const i=dt(t).at(-1);if(i)for(const s of i){const r=n.createSVGPoint();r.x=s.x,r.y=s.y,o.points.appendItem(r)}}function ft(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 Kt(t){if(t.length!==2)throw new Error("Array should contain 2 elements in order to be translated into LineEdge");return{left:ft(t[0]),right:ft(t[1])}}function Xo(t){return t.map(Kt)}p.DActionsFan=Oo,p.DActionsList=qo,p.DAlert=Fo,p.DAnimationAccordion=ro,p.DAnimationFloatingLetter=ao,p.DAnimationHypnosis=fo,p.DAnimationSpinner=mo,p.DBigBangButton=Co,p.DBigBangButtonAnimation=_o,p.DBtn=x,p.DCard=Bo,p.DCardTitle=Vo,p.DChip=Jt,p.DPagination=un,p.DQuote=Ao,p.DStats=eo,p.DWrapBackground=Go,p.DWrapFocusHighlight=F,p.DWrapShape=w,p.applyLinePerPointAnimation=Qo,p.applyStaticPoints=Zo,p.createCoordsFromArray=ft,p.createLineEdgeFromArray=Kt,p.createLineFromArray=Xo,p.generatePolygonLineKeyframes=dt,p.generatePolygonPointsKeyframes=Gt,p.getAbsoluteBoundings=Ko,p.getAbsoluteBoundingsGetters=Ht,p.getLinkToPaginatedPage=qt,p.useDBigBangButtonUtils=ct,p.useDPaginationUtils=Rt,Object.defineProperty(p,Symbol.toStringTag,{value:"Module"})});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@d0rich/esprit-design",
3
- "version": "0.4.2",
3
+ "version": "0.4.3",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -46,6 +46,16 @@ export function useLink(props: LinkProps) {
46
46
  })
47
47
 
48
48
  if (isLink.value) {
49
+
50
+ if (isExternalLink.value) {
51
+ return {
52
+ isLink,
53
+ isExternalLink,
54
+ linkComponent: 'a',
55
+ propsToProvide
56
+ }
57
+ }
58
+
49
59
  if (typeof NuxtLink !== 'undefined') {
50
60
  return {
51
61
  isLink,