demoman 0.9.5 → 0.9.7

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.
@@ -1 +1 @@
1
- import{Ct as e,D as t,E as n,H as r,J as i,K as a,M as o,N as s,P as c,S as l,St as u,U as d,V as f,Y as p,_t as m,bt as h,c as g,d as _,dt as v,ft as y,mt as ee,q as b,ut as x,xt as S,yt as C}from"./toast-BE4O_wjA.js";var w=[`off`,`ask`,`attach`],T={off:`Off`,ask:`Ask`,attach:`Attach`};function te(e,t,n){return e.naturalHeight===null||e.naturalHeight>=t?null:`Upscaled in a ${n} export — an SVG or a larger PNG stays sharp`}var E=new WeakMap;function ne(e){let t=E.get(e);return t===void 0&&(t=(async()=>{let t=await e.rasterAt(160),n=Math.max(1,Math.round(160*e.aspect)),r=document.createElement(`canvas`);r.width=n,r.height=160;let i=r.getContext(`2d`);if(i===null)throw Error(`the thumbnail has no 2D context to draw in`);return i.drawImage(t.image,0,0,n,160),r.toDataURL(`image/png`)})(),E.set(e,t),t.catch(()=>{E.get(e)===t&&E.delete(e)})),t}var D=e=>e.kind===`wallpaper`||e.kind===`image`,re=(e,t)=>({kind:`image`,ref:e,...D(t)&&t.blur!==void 0?{blur:t.blur}:{}}),ie=(e,t)=>`/wallpapers/${S(e,t)}`,O=e=>ie(e,`thumb`);function ae(e,t){return e.kind===`wallpaper`?`id:${e.id}@${b(t)}`:`ref:${e.ref}`}var oe=(e,t)=>t===null?a(e):a(e,t),se=e=>e instanceof Error?e.message:String(e);async function ce(e,t,n){if(e.kind===`wallpaper`){if(u(e.id)===null)throw Error(`there is no built-in wallpaper "${e.id}"`);let n=ie(e.id,b(t)),r;try{r=await fetch(new URL(n,location.href))}catch(t){throw Error(`the built-in wallpaper "${e.id}" could not be fetched: ${se(t)}`)}if(!r.ok)throw Error(`the built-in wallpaper "${e.id}" could not be fetched: ${n} answered HTTP ${r.status}`);let i=new Uint8Array(await r.arrayBuffer());return{image:await l(i,`image/webp`,a(t)),natural:null}}let r=await n.load(e.ref);if(!r.ok)throw Error(`"${e.ref}" could not be loaded: ${r.error}`);let i=new Uint8Array(await r.blob.arrayBuffer()),o=await l(i,r.blob.type||`image/webp`),s={width:o.width,height:o.height},c=a(t,s);if(c.width>=o.width)return{image:o,natural:s};try{let e=await createImageBitmap(o.image,{resizeWidth:c.width,resizeHeight:c.height,resizeQuality:`high`});return{image:{...o,image:e,...c},natural:s}}catch(t){throw Error(`"${e.ref}" could not be resized to ${c.width}×${c.height}: ${se(t)}`)}finally{`close`in o.image&&o.image.close()}}async function le(e){let t=Math.max(1,Math.round(e.width/e.height*120)),n=new OffscreenCanvas(t,120),r=n.getContext(`2d`);return r.imageSmoothingQuality=`high`,r.drawImage(e.image,0,0,t,120),URL.createObjectURL(await n.convertToBlob({type:`image/png`}))}var k=new WeakMap,ue=4;function A(e,t,n){if(e===null||!D(t))return e;let r=c(n,e,t.blur??0);if(r===0)return e;let i=k.get(e);i===void 0&&(i=new Map,k.set(e,i));let a=i.get(r);return a===void 0&&(a=s(e,r),i.set(r,a),i.size>ue&&i.delete(i.keys().next().value)),a}var j=new WeakMap;function de(e,t){let n=Math.max(t.width/e.width,t.height/e.height);if(n>=1)return e;let r=Math.ceil(e.width*n),i=Math.ceil(e.height*n),a=j.get(e);if(a!==void 0&&a.width===r&&a.height===i)return a;let o=new OffscreenCanvas(r,i),s=o.getContext(`2d`);if(s===null)throw Error(`no 2D context to draw ${r}×${i} on`);s.imageSmoothingQuality=`high`,s.drawImage(e.image,0,0,r,i);let c={...e,image:o.transferToImageBitmap(),width:r,height:i};return j.set(e,c),c}function M(e,t){let n=e.logo;if(t.logo===null)n=null;else if(t.logo!==void 0){if(`ref`in t.logo)n=t.logo;else if(n===null)throw Error(`there is no logo to adjust — upload one first`);else n={...n,...t.logo}}let r=t.background??e.background;if(t.gradient!==void 0){if(r.kind!==`gradient`)throw Error(`the background is not a gradient any more`);let{swap:e,...n}=t.gradient;e&&(r={...r,from:r.to,to:r.from}),r={...r,...n}}return{...e,background:r,logo:n,padding:t.padding??e.padding}}function N(e,t){let n=e=>({...e.kind===`wallpaper`||e.kind===`image`?{blur:0}:{},...Object.fromEntries(Object.entries(e).filter(([,e])=>e!==void 0))}),[r,i]=[n(e),n(t)],a=Object.keys(r);return a.length===Object.keys(i).length&&a.every(e=>r[e]===i[e])}function fe(e,t){if(e.padding!==t.padding)return!1;let n=e.background,r=t.background;return N(n,r)?e.logo===null||t.logo===null?e.logo===t.logo:e.logo.ref===t.logo.ref&&e.logo.corner===t.logo.corner&&e.logo.size===t.logo.size&&e.logo.opacity===t.logo.opacity:!1}function pe(e,t,n=()=>void 0){if(e===null||e.scene!==t)return{branding:t.branding,preview:null};try{return{branding:M(t.branding,e.patch),preview:e}}catch(e){return n(e instanceof Error?e:Error(String(e))),{branding:t.branding,preview:null}}}var P={mp4:`MP4`,gif:`GIF`,stills:`PNG stills`},me=[`mp4`,`gif`,`stills`];function he(e){return[`Export`,e.map((e,t)=>t>0&&e===`stills`?`stills`:P[e]).join(` + `)].filter(Boolean).join(` `)}function ge(e,t){let n=`${t.width} × ${t.height}`;return e===`stills`?`one per step · ${n}`:n}function F(e,t){let n=t===`9:16`;switch(e){case`mp4`:return n?`Vertical video`:t===`auto`?`Video`:`Landscape video`;case`gif`:return n?`Vertical GIF`:`GIF`;case`stills`:return n?`Vertical PNG stills`:`PNG stills`}}function _e(e){switch(e){case`auto`:return{value:`Auto`,reason:`The export takes the source's shape.`};case`9:16`:return{value:`9:16`,reason:`The camera follows each step.`};case`16:9`:return{value:`16:9`,reason:null}}}function ve(e){return`${e.width} × ${e.height}`}function ye(e){if(!e.hasFrames)return`No frames to export`;if(e.durationMs<=0)return`Nothing left to export`;let t=`${e.target.width} × ${e.target.height}`;return e.fileType===`stills`?`${P.stills} · ${t}`:`${_(e.durationMs)} · ${t}`}var I=(e,t,n)=>{let r=document.createElement(e);return t&&(r.className=t),n!==void 0&&(r.textContent=n),r},L=e=>{let t=Number(e.min===``?0:e.min),n=Number(e.max===``?100:e.max)-t,r=n>0?(Number(e.value)-t)/n:0,i=Math.min(1,Math.max(0,r));e.style.setProperty(`--fill`,`${(i*100).toFixed(2)}%`)};function be(e){switch(e.kind){case`solid`:return{from:e.color,to:e.color};case`gradient`:return{from:e.from,to:e.to};case`wallpaper`:return u(e.id)?.swatch??m;case`image`:return m}}function xe(e,t){if(e===`wallpaper`)return D(t)?null:{kind:`wallpaper`,id:C,blur:0};if(t.kind===e)return null;let{from:n,to:r}=be(t);return e===`solid`?{kind:`solid`,color:n}:{kind:`gradient`,from:n,to:t.kind===`solid`?`#ffffff`:r,angle:135}}var R=e=>{let t=I(`img`,`wallpaper-tile-img`);return t.src=e,t.alt=``,t.draggable=!1,t};function Se(e,t,n){let r=I(`div`,`wallpaper-grid`);r.setAttribute(`role`,`group`),r.setAttribute(`aria-label`,`Wallpaper`);let i=e.blur===void 0?{}:{blur:e.blur},a=(e,t,r)=>{let i=I(`button`,`wallpaper-tile`);return i.type=`button`,i.setAttribute(`aria-pressed`,String(e)),i.setAttribute(`aria-label`,t),i.title=t,i.addEventListener(`click`,()=>{e||n.onCommit({background:r})}),i};for(let n of h){let o=`${n.family[0]?.toUpperCase()}${n.family.slice(1)} ${n.id.split(`-`)[1]}`,s=a(e.kind===`wallpaper`&&e.id===n.id,o,{kind:`wallpaper`,id:n.id,...i});s.setAttribute(`data-wallpaper-id`,n.id),s.append(R(t.thumbUrl(n.id))),r.append(s)}let o=t.custom;if(o!==null){let t=a(e.kind===`image`&&e.ref===o.ref,`Your image`,{kind:`image`,ref:o.ref,...i});t.setAttribute(`data-wallpaper-custom`,o.thumb?.kind??`none`),o.thumb?.kind===`ready`?t.append(R(o.thumb.url)):o.thumb?.kind===`failed`?(t.append(g(`circleAlert`)),t.title=`Your image — could not be loaded: ${o.thumb.reason}`,t.setAttribute(`aria-label`,t.title)):t.append(g(`image`)),r.append(t)}let s=I(`input`);s.type=`file`,s.accept=`image/svg+xml,image/png,image/webp,image/jpeg`,s.hidden=!0,s.setAttribute(`data-wallpaper-file`,``),s.addEventListener(`change`,()=>{let e=s.files?.[0];e&&n.onWallpaperFile(e),s.value=``});let c=I(`button`,`wallpaper-tile wallpaper-upload`);return c.type=`button`,c.setAttribute(`data-wallpaper-upload`,``),c.setAttribute(`aria-label`,`Upload an image`),c.title=`Upload an image`,c.append(g(`plus`)),c.addEventListener(`click`,()=>s.click()),r.append(c,s),r}var z={"top-left":`Top left`,"top-right":`Top right`,"bottom-left":`Bottom left`,"bottom-right":`Bottom right`};function Ce(e){let t=I(`span`,`logo-thumb`),n=e??{kind:`failed`,reason:`this page did not load the logo`};if(t.setAttribute(`data-logo-thumb`,n.kind),n.kind===`ready`){let e=I(`img`,`logo-thumb-img`);e.src=n.url,e.alt=`Logo`,t.append(e)}else n.kind===`loading`?(t.setAttribute(`aria-busy`,`true`),t.title=`Loading the logo`):(t.append(g(`circleAlert`)),t.title=`The logo could not be shown: ${n.reason}`,t.setAttribute(`aria-label`,t.title),t.setAttribute(`role`,`img`));return t}function we(e,t){return e===null||!e.capped?null:e.effectiveSize===0?`No room for the logo in ${t} — the video fills the frame`:`Shown at ${Math.round(e.effectiveSize*100)}% in ${t} to stay clear of your video`}var B=null,V=new WeakMap,Te=e=>{let t=V.get(e);return t===void 0&&(t=new Map,V.set(e,t)),t};function H(t,n,r,i,a,o=null){let s=I(`div`,`control-row colour-field`);s.setAttribute(`data-colour-field`,``);let c=I(`input`);c.type=`color`,c.value=n,c.setAttribute(`aria-label`,`${t} swatch`);let l=I(`input`,`colour-text`);l.type=`text`,l.value=n,l.spellcheck=!1,l.setAttribute(`aria-label`,t),l.setAttribute(`data-colour-text`,``);let u=I(`p`,`colour-error`);u.setAttribute(`data-colour-error`,``),u.setAttribute(`role`,`alert`);let d=I(`p`,`muted`);d.setAttribute(`data-colour-note`,``),B!==null&&B.hex===n&&(d.textContent=B.note);let f=a.get(t);f!==void 0&&f.base!==n?a.delete(t):f!==void 0&&(l.value=f.text,u.textContent=f.error,f.error!==``&&(d.textContent=``,l.setAttribute(`aria-invalid`,`true`))),l.addEventListener(`input`,()=>{let e=a.get(t);a.set(t,{base:n,text:l.value,error:e?.error??``})}),c.addEventListener(`input`,()=>{a.delete(t),l.value=c.value,i.onPreview(r(c.value))}),c.addEventListener(`change`,()=>i.onCommit(r(c.value))),l.addEventListener(`change`,()=>{let o=e(l.value);if(!o.ok){u.textContent=o.reason,d.textContent=``,l.setAttribute(`aria-invalid`,`true`),a.set(t,{base:n,text:l.value,error:o.reason});return}a.delete(t),u.textContent=``,d.textContent=o.note??``,B=o.note===null?null:{hex:o.hex,note:o.note},l.removeAttribute(`aria-invalid`),l.value=o.hex,c.value=o.hex,i.onCommit(r(o.hex))});let p=I(`div`,`colour-row`);return p.append(c,l),s.append(I(`span`,`control-label`,t)),o!==null&&(o.classList.add(`control-aside`),s.append(o)),s.append(p,u,d),s}function U(e,t,n,r,i,a,o){let s=I(`div`,`slider-row`),c=I(`input`);c.type=`range`,c.min=String(r.min),c.max=String(r.max),c.step=String(r.step),c.value=String(n),c.setAttribute(e,``),c.setAttribute(`aria-label`,t);let l=I(`span`,`slider-value`,i(n));return L(c),c.addEventListener(`input`,()=>{L(c),l.textContent=i(Number(c.value)),o.onPreview(a(Number(c.value)))}),c.addEventListener(`change`,()=>o.onCommit(a(Number(c.value)))),s.append(I(`span`,`control-label slider-label`,t),l,c),s}function W(e,t,n){let{branding:r}=t,i=r.background,a=I(`div`,`branding-controls`),o=Te(e),s=(e,n)=>{let r=I(`section`,`branding-group`);return r.setAttribute(`data-group`,e),t.groupTitles&&r.append(I(`h3`,`branding-group-title`,n)),r},c=s(`background`,`Background`),l=s(`logo`,`Logo`),u=s(`frame`,`Frame`);t.kit!==void 0&&a.append(De(e,t.kit));let d=I(`div`,`segmented`);d.setAttribute(`role`,`radiogroup`),d.setAttribute(`aria-label`,`Background style`);let f=i.kind===`image`?`wallpaper`:i.kind,p={solid:`Solid`,gradient:`Gradient`,wallpaper:`Wallpaper`};for(let e of[`solid`,`gradient`,`wallpaper`]){let t=I(`button`,`segment`,p[e]);t.type=`button`,t.setAttribute(`role`,`radio`),t.setAttribute(`data-bg-kind`,e),t.setAttribute(`aria-checked`,String(f===e)),t.addEventListener(`click`,()=>{let t=xe(e,i);t!==null&&n.onCommit({background:t})}),d.append(t)}let m=I(`div`,`control-row`);m.append(I(`span`,`control-label`,`Style`),d),c.append(m);let h=null;if(i.kind===`solid`)c.append(H(`Colour`,i.color,e=>({background:{kind:`solid`,color:e}}),n,o));else if(D(i)){if(c.append(Se(i,t.wallpaper,n)),t.wallpaper.loadError!==null){let e=I(`p`,`colour-error`,`The image could not be loaded: ${t.wallpaper.loadError}`);e.setAttribute(`data-wallpaper-error`,``),e.setAttribute(`role`,`alert`),c.append(e)}c.append(U(`data-wallpaper-blur`,`Blur`,i.blur??0,{min:0,max:1,step:.01},e=>`${Math.round(e*100)}%`,e=>({background:{...i,blur:Math.round(e*100)/100}}),n))}else{let e=e=>({gradient:e}),r=I(`button`,`btn btn-link`,`⇅ Swap`);r.type=`button`,r.setAttribute(`data-swap`,``),r.setAttribute(`aria-label`,`Swap From and To`),r.title=`Swap From and To`,r.addEventListener(`click`,()=>n.onCommit(e({swap:!0}))),c.append(H(`From`,i.from,t=>e({from:t}),n,o,r),H(`To`,i.to,t=>e({to:t}),n,o)),h=U(`data-angle`,`Angle`,i.angle,{min:0,max:359,step:1},e=>`${Math.round(e)}°`,t=>e({angle:Math.round(t)}),n),t.groupTitles||c.append(h)}u.append(U(`data-padding`,`Padding`,r.padding,{min:0,max:.2,step:.01},e=>`${Math.round(e*100)}%`,e=>({padding:Math.round(e*100)/100}),n)),h!==null&&t.groupTitles&&u.append(h);let _=I(`div`,`logo-controls`),v=I(`input`);v.type=`file`,v.accept=`image/svg+xml,image/png,image/webp,image/jpeg`,v.setAttribute(`aria-label`,r.logo?`Replace logo`:`Upload logo`),v.addEventListener(`change`,()=>{let e=v.files?.[0];e&&n.onLogoFile(e)});let y=I(`label`,`btn btn-quiet`,r.logo?`Replace`:`Upload logo`);y.prepend(g(`upload`)),y.append(v);let b=I(`div`,`control-row`);if(t.groupTitles||b.append(I(`span`,`control-label`,`Logo`)),_.append(b),r.logo===null){let e=I(`div`,`control-actions`);e.append(y),b.append(e)}else{let e=r.logo,i=I(`button`,`btn btn-quiet`,`Remove`);i.type=`button`,i.setAttribute(`data-logo-remove`,``),i.prepend(g(`trash`)),i.addEventListener(`click`,()=>n.onCommit({logo:null}));let a=I(`div`,`logo-stack`);a.append(y,i);let o=I(`div`,`logo-row`);o.append(Ce(t.logoThumb),a),b.append(o);let s=I(`div`,`corner-frame`);s.setAttribute(`role`,`radiogroup`),s.setAttribute(`aria-label`,`Logo corner`),s.append(I(`div`,`corner-frame-rec`));for(let t of ee){let r=I(`button`,`corner`);r.type=`button`,r.setAttribute(`role`,`radio`),r.setAttribute(`data-logo-corner`,t),r.setAttribute(`aria-checked`,String(e.corner===t)),r.setAttribute(`aria-label`,z[t]),r.title=z[t],r.addEventListener(`click`,()=>n.onCommit({logo:{corner:t}})),s.append(r)}let c=I(`div`,`control-row`);c.append(I(`span`,`control-label`,`Corner`),s),_.append(c,U(`data-logo-size`,`Size`,e.size,{min:.02,max:.2,step:.01},e=>`${Math.round(e*100)}%`,e=>({logo:{size:e}}),n),U(`data-logo-opacity`,`Opacity`,e.opacity,{min:.2,max:1,step:.05},e=>`${Math.round(e*100)}%`,e=>({logo:{opacity:e}}),n));let l=[we(t.logoPlacement,t.formatTitle),...t.logoNotes].filter(e=>e!==null);if(l.length>0){let e=I(`div`,`muted`);e.setAttribute(`data-logo-notes`,``);for(let t of l)e.append(I(`p`,void 0,t));_.append(e)}}l.append(_),a.append(c,u,l);let x=document.activeElement,S=x instanceof HTMLInputElement&&x.hasAttribute(`data-colour-text`)&&e.contains(x)?{label:x.getAttribute(`aria-label`),start:x.selectionStart,end:x.selectionEnd}:null,C=e.querySelector(`[data-kit-new-name]`),w=C!==null&&document.activeElement===C?{start:C.selectionStart,end:C.selectionEnd}:null;e.replaceChildren(a);let T=a.querySelector(`[data-kit-new-name]`);if(T!==null&&C===null?T.focus():T!==null&&w!==null&&(T.focus(),w.start!==null&&w.end!==null&&T.setSelectionRange(w.start,w.end)),S!==null){let e=Array.from(a.querySelectorAll(`[data-colour-text]`)).find(e=>e.getAttribute(`aria-label`)===S.label);e!==void 0&&(e.focus(),S.start!==null&&S.end!==null&&e.setSelectionRange(S.start,S.end))}}var G=new WeakMap,K=new WeakSet;function Ee(e){let t=I(`span`,`kit-swatch`);if(e?.read.state===`ready`){let n=e.read.kit.background;n.kind===`solid`?t.style.background=n.color:n.kind===`gradient`?t.style.background=`linear-gradient(${n.angle}deg, ${n.from}, ${n.to})`:n.kind===`wallpaper`?t.style.background=`center / cover url("${O(n.id)}")`:t.append(g(`image`))}else e!==null&&t.append(g(`circleAlert`));return t}function De(e,t){let{read:n,standing:r,naming:i}=t,a=I(`div`,`control-row kit-actions`);if(a.setAttribute(`data-kit-row`,``),a.append(I(`span`,`control-label`,`Brand kit`)),n.state===`invalid`){let e=I(`p`,`colour-error`,`Your brand kits could not be read: ${n.reason}`);return e.setAttribute(`data-kit-error`,``),a.append(e),a}if(i!==null){let e=I(`div`,`kit-naming`),n=I(`input`,`kit-new-name`);n.type=`text`,n.maxLength=40,n.value=i.text,n.placeholder=`Kit name`,n.setAttribute(`aria-label`,`New kit name`),n.setAttribute(`data-kit-new-name`,``),n.addEventListener(`input`,()=>t.onNameInput(n.value)),n.addEventListener(`keydown`,e=>{e.key===`Enter`?t.onConfirmNew(n.value):e.key===`Escape`&&t.onCancelNew()});let r=I(`button`,`btn btn-primary`,`Save`);r.type=`button`,r.setAttribute(`data-kit-new-save`,``),r.addEventListener(`click`,()=>t.onConfirmNew(n.value));let o=I(`button`,`btn btn-quiet`,`Cancel`);if(o.type=`button`,o.setAttribute(`data-kit-new-cancel`,``),o.addEventListener(`click`,()=>t.onCancelNew()),e.append(n,r,o),a.append(e),i.error!==null){let e=I(`p`,`colour-error`,i.error);e.setAttribute(`data-kit-new-error`,``),a.append(e)}return a}let o=I(`div`,`kit-picker-wrap`),s=I(`button`,`kit-picker`);s.type=`button`,s.setAttribute(`data-kit-picker`,``),s.setAttribute(`aria-haspopup`,`menu`);let c=r===null?n.kits.length===0?`No brand kit`:`Custom look`:r.kit.name;if(s.append(Ee(r?.kit??null),I(`span`,r===null?`kit-picker-name kit-picker-none`:`kit-picker-name`,c)),r?.edited){let e=I(`span`,`kit-edited`,`Edited`);e.setAttribute(`data-kit-edited`,``),s.append(e)}s.append(g(`chevronDown`));let l=I(`div`,`kit-menu`);l.setAttribute(`role`,`menu`),l.setAttribute(`data-kit-menu`,``);let u=t=>{G.set(e,t),l.hidden=!t,s.setAttribute(`aria-expanded`,String(t))},d=(e,t,n)=>{let r=I(`button`,`kit-menu-item ${e}`.trim());return r.type=`button`,n!==null&&r.append(n),r.append(I(`span`,`kit-menu-label`,t)),r};for(let e of n.kits){let i=d(``,e.name,Ee(e));i.setAttribute(`role`,`menuitemradio`),i.setAttribute(`data-kit-option`,e.id);let a=e.id===r?.kit.id;i.setAttribute(`aria-checked`,String(a));let o=I(`span`,`kit-menu-meta`);if(e.id===n.defaultId){let e=g(`star`);e.setAttribute(`aria-label`,`Default`),o.append(e)}a&&o.append(g(`check`)),i.append(o),e.read.state===`invalid`&&(i.disabled=!0,i.title=e.read.reason),i.addEventListener(`click`,()=>{u(!1),t.onApply(e.id)}),l.append(i)}if(n.kits.length>0&&l.append(I(`div`,`kit-menu-sep`)),r!==null){let e=d(``,`Update "${r.kit.name}"`,g(`refresh`));e.setAttribute(`role`,`menuitem`),e.setAttribute(`data-kit-update`,``),r.edited||(e.disabled=!0),e.addEventListener(`click`,()=>{u(!1),t.onUpdate()}),l.append(e)}let f=d(``,`Save as new kit…`,g(`plus`));return f.setAttribute(`role`,`menuitem`),f.setAttribute(`data-kit-new`,``),f.addEventListener(`click`,()=>{u(!1),t.onStartNew()}),l.append(f),s.addEventListener(`click`,()=>u(l.hidden)),l.addEventListener(`keydown`,e=>{e.key===`Escape`&&(u(!1),s.focus())}),u(G.get(e)===!0),K.has(e)||(K.add(e),document.addEventListener(`pointerdown`,t=>{if(G.get(e)!==!0||e.querySelector(`[data-kit-row]`)?.contains(t.target))return;G.set(e,!1);let n=e.querySelector(`[data-kit-menu]`);n!==null&&(n.hidden=!0),e.querySelector(`[data-kit-picker]`)?.setAttribute(`aria-expanded`,`false`)})),o.append(s,l),a.append(o),a}var Oe={...i,width:480,height:270,cornerRadius:i.cornerRadius*480/i.width},q={width:1280,height:800};function J(e){return p(Oe,q,e)}var ke=v.shape.padding.maxValue;if(ke===null)throw Error(`BrandingSchema's padding has no ceiling to size the preview by`);var Y=J(ke);function Ae(e,t){return f(e,J(e.padding),q,t).logoPlacement}function je(e,t,n,i,a=0,o=null){let s=e.getContext(`2d`);if(s===null)return!1;let c=Y;e.width!==c.width&&(e.width=c.width),e.height!==c.height&&(e.height=c.height);let l=J(t.padding);s.clearRect(0,0,c.width,c.height),s.save(),s.beginPath(),s.roundRect(0,0,l.width,l.height,a),s.clip();let u=s,p=null;try{p=A(o,t.background,l)}catch(e){console.warn(`demoman settings: the brand kit preview's image could not be blurred: ${e instanceof Error?e.message:String(e)}`)}let m=f(t,l,q,n,p);r(u,l,m);let h=m.frameRect;return s.save(),s.fillStyle=i,s.beginPath(),s.roundRect(h.x,h.y,h.width,h.height,m.cornerRadius),s.fill(),s.restore(),d(u,l,m),s.restore(),!0}function X(e,t={},n){let r=document.createElement(e);for(let[e,n]of Object.entries(t))r.setAttribute(e,n);return n!==void 0&&(r.textContent=n),r}var Me=[{section:`brandKit`,id:`brand-kit`,label:`Brand kit`,glyph:`palette`},{section:`export`,id:`export`,label:`Export`,glyph:`download`},{section:`pullRequests`,id:`pull-requests`,label:`Pull requests`,glyph:`upload`}];function Z(e,t){let n=X(`section`,{"data-section":e,id:Me.find(t=>t.section===e)?.id??e}),r=X(`div`,{class:`section-head`});r.append(X(`h2`,{},t));let i=X(`div`,{class:`card section-body`});return n.append(r,i),{box:n,body:i}}function Ne(){let e=X(`nav`,{class:`section-nav`,"aria-label":`Settings sections`}),t=X(`ul`);for(let e of Me){let n=X(`a`,{href:`#${e.id}`,"data-nav":e.id});n.append(g(e.glyph),X(`span`,{},e.label));let r=X(`li`);r.append(n),t.append(r)}return e.append(t),e}function Q(e,t){return X(`button`,{type:`button`,class:`btn btn-quiet`,...t},e)}function $(e){return X(`p`,{class:`notice notice-error`,"data-notice":``},e)}function Pe(e,r,i,a){let o=X(`div`,{class:`content`});{let e=Z(`brandKit`,`Brand kit`),t=a.get(`brandKit`);t!==void 0&&e.body.append($(t)),r.kitsUnwatched!==null&&e.body.append(X(`p`,{class:`notice notice-warn`,"data-notice":``,"data-unwatched":``},`Kits changed outside this window will not show until you reload — ${r.kitsUnwatched}.`)),Fe(e.body,r,i),o.append(e.box)}{let e=Z(`export`,`Export`),s=a.get(`export`);s!==void 0&&e.body.append($(s));let c=r.exportQuality,l=X(`div`,{class:`switch-row export-quality`}),u=X(`div`,{class:`segmented`,role:`radiogroup`,"aria-label":`Export quality`});for(let e of t){let t=X(`button`,{type:`button`,class:`segment`,role:`radio`,"data-export-quality":e,"aria-checked":String(e===c)},n[e]);t.addEventListener(`click`,()=>{e!==c&&i.setExportQuality(e)}),u.append(t)}l.append(u),e.body.append(l),o.append(e.box)}{let e=Z(`pullRequests`,`Pull requests`),t=a.get(`pullRequests`);t!==void 0&&e.body.append($(t));let n=r.pullRequests,s=X(`div`,{class:`switch-row pull-requests`}),c=X(`div`,{class:`segmented`,role:`radiogroup`,"aria-label":`Pull requests`});for(let e of w){let t=X(`button`,{type:`button`,class:`segment`,role:`radio`,"data-pull-requests":e,"aria-checked":String(e===n)},T[e]);t.addEventListener(`click`,()=>{e!==n&&i.setPullRequests(e)}),c.append(t)}s.append(c),e.body.append(s),o.append(e.box)}let s=X(`div`,{class:`settings-side`});s.append(X(`h1`,{},`Settings`),Ne());let c=X(`div`,{class:`settings`});c.append(s,o),e.replaceChildren(c)}function Fe(e,t,n){let r=t.brandKits;if(r.state===`invalid`){if(e.append($(`Your brand kits could not be read: ${r.reason}`)),r.storageRefused){e.append(X(`p`,{class:`hint`},`Nothing was changed. Reload this page to try again.`));return}let t=Q(`Start a fresh kit list`,{"data-kit-reset-list":``});t.addEventListener(`click`,()=>n.resetKits()),e.append(t);return}let i=r.kits.find(e=>e.id===t.selectedKitId)??null;e.append(Ie(r,i,n)),i!==null&&e.append(Le(i,r,n)),i?.read.state===`invalid`&&e.append($(`"${i.name}" could not be read: ${i.read.reason}`));let a=i?.read.state===`ready`?i.read.kit:x,o=X(`div`,{class:`kit-hero`});o.append(X(`canvas`,{"data-preview-kit":``,width:String(Y.width),height:String(Y.height),class:`kit-preview`}));let s=X(`div`,{class:`kit-controls`});W(s,{branding:a,logoThumb:t.brandKitLogoThumb,logoPlacement:t.brandKitPlacement,formatTitle:F(`mp4`,y.aspect),logoNotes:t.brandKitNotes,groupTitles:!0,wallpaper:{thumbUrl:O,...t.brandKitWallpaper}},{onCommit:e=>n.setBrandKit(e),onPreview:e=>n.previewBrandKit(e),onLogoFile:e=>n.uploadKitLogo(e),onWallpaperFile:e=>n.uploadKitWallpaper(e)}),e.append(o,s)}function Ie(e,t,n){let r=X(`div`,{class:`kit-strip`,role:`list`}),i=o(e);for(let a of e.kits){let e=X(`div`,{class:`kit-tile`,role:`listitem`,"data-kit-tile":a.id}),o=X(`button`,{type:`button`,class:`kit-pick`,"data-kit-select":a.id,"aria-pressed":String(a.id===t?.id)});if(a.read.state===`ready`)o.append(X(`canvas`,{class:`kit-thumb`,"data-kit-thumb":a.id,width:String(Y.width),height:String(Y.height)}));else{let e=X(`span`,{class:`kit-thumb kit-thumb-broken`});e.append(g(`circleAlert`)),o.append(e),o.title=a.read.reason}o.append(X(`span`,{class:`kit-tile-name`},a.name)),o.addEventListener(`click`,()=>n.selectKit(a.id));let s=a.id===i?.id,c=X(`button`,{type:`button`,class:`kit-star`,"data-kit-star":a.id,"aria-pressed":String(s),"aria-label":s?`"${a.name}" is the default kit`:`Make "${a.name}" the default kit`});c.append(g(`star`)),c.addEventListener(`click`,()=>{s||n.setDefaultKit(a.id)}),e.append(o,c),r.append(e)}let a=X(`button`,{type:`button`,class:`kit-tile kit-new`,"data-kit-new":``});return a.append(g(`plus`),X(`span`,{},`New kit`)),a.addEventListener(`click`,()=>n.newKit()),r.append(a),r}function Le(e,t,n){let r=X(`div`,{class:`kit-head`}),i=X(`input`,{type:`text`,class:`kit-name`,"data-kit-name":``,maxlength:`40`,"aria-label":`Kit name`});i.value=e.name,i.addEventListener(`change`,()=>n.renameKit(e.id,i.value)),i.addEventListener(`keydown`,t=>{t.key===`Escape`&&(i.value=e.name,i.blur())});let a=Q(`Duplicate`,{"data-kit-duplicate":``});a.prepend(g(`copy`)),a.addEventListener(`click`,()=>n.duplicateKit(e.id));let o=Q(`Delete`,{"data-kit-delete":``});return o.prepend(g(`trash`)),t.kits.length===1&&(o.disabled=!0,o.title=`The last kit cannot be deleted`),o.addEventListener(`click`,()=>n.deleteKit(e.id)),r.append(i,a,o),r}export{te as A,D as C,le as D,ae as E,O,de as S,re as T,pe as _,W as a,A as b,me as c,F as d,he as f,M as g,ye as h,je as i,ne as k,P as l,ve as m,Y as n,I as o,ge as p,Ae as r,L as s,Pe as t,_e as u,N as v,oe as w,ce as x,fe as y};
1
+ import{Ct as e,D as t,E as n,H as r,J as i,K as a,M as o,N as s,P as c,S as l,St as u,U as d,V as f,Y as p,_t as m,bt as h,c as g,d as _,dt as v,ft as y,mt as ee,q as b,ut as x,xt as S,yt as C}from"./toast-DqduzzQ9.js";var w=[`off`,`ask`,`attach`],T={off:`Off`,ask:`Ask`,attach:`Attach`};function te(e,t,n){return e.naturalHeight===null||e.naturalHeight>=t?null:`Upscaled in a ${n} export — an SVG or a larger PNG stays sharp`}var E=new WeakMap;function ne(e){let t=E.get(e);return t===void 0&&(t=(async()=>{let t=await e.rasterAt(160),n=Math.max(1,Math.round(160*e.aspect)),r=document.createElement(`canvas`);r.width=n,r.height=160;let i=r.getContext(`2d`);if(i===null)throw Error(`the thumbnail has no 2D context to draw in`);return i.drawImage(t.image,0,0,n,160),r.toDataURL(`image/png`)})(),E.set(e,t),t.catch(()=>{E.get(e)===t&&E.delete(e)})),t}var D=e=>e.kind===`wallpaper`||e.kind===`image`,re=(e,t)=>({kind:`image`,ref:e,...D(t)&&t.blur!==void 0?{blur:t.blur}:{}}),ie=(e,t)=>`/wallpapers/${S(e,t)}`,O=e=>ie(e,`thumb`);function ae(e,t){return e.kind===`wallpaper`?`id:${e.id}@${b(t)}`:`ref:${e.ref}`}var oe=(e,t)=>t===null?a(e):a(e,t),se=e=>e instanceof Error?e.message:String(e);async function ce(e,t,n){if(e.kind===`wallpaper`){if(u(e.id)===null)throw Error(`there is no built-in wallpaper "${e.id}"`);let n=ie(e.id,b(t)),r;try{r=await fetch(new URL(n,location.href))}catch(t){throw Error(`the built-in wallpaper "${e.id}" could not be fetched: ${se(t)}`)}if(!r.ok)throw Error(`the built-in wallpaper "${e.id}" could not be fetched: ${n} answered HTTP ${r.status}`);let i=new Uint8Array(await r.arrayBuffer());return{image:await l(i,`image/webp`,a(t)),natural:null}}let r=await n.load(e.ref);if(!r.ok)throw Error(`"${e.ref}" could not be loaded: ${r.error}`);let i=new Uint8Array(await r.blob.arrayBuffer()),o=await l(i,r.blob.type||`image/webp`),s={width:o.width,height:o.height},c=a(t,s);if(c.width>=o.width)return{image:o,natural:s};try{let e=await createImageBitmap(o.image,{resizeWidth:c.width,resizeHeight:c.height,resizeQuality:`high`});return{image:{...o,image:e,...c},natural:s}}catch(t){throw Error(`"${e.ref}" could not be resized to ${c.width}×${c.height}: ${se(t)}`)}finally{`close`in o.image&&o.image.close()}}async function le(e){let t=Math.max(1,Math.round(e.width/e.height*120)),n=new OffscreenCanvas(t,120),r=n.getContext(`2d`);return r.imageSmoothingQuality=`high`,r.drawImage(e.image,0,0,t,120),URL.createObjectURL(await n.convertToBlob({type:`image/png`}))}var k=new WeakMap,ue=4;function A(e,t,n){if(e===null||!D(t))return e;let r=c(n,e,t.blur??0);if(r===0)return e;let i=k.get(e);i===void 0&&(i=new Map,k.set(e,i));let a=i.get(r);return a===void 0&&(a=s(e,r),i.set(r,a),i.size>ue&&i.delete(i.keys().next().value)),a}var j=new WeakMap;function de(e,t){let n=Math.max(t.width/e.width,t.height/e.height);if(n>=1)return e;let r=Math.ceil(e.width*n),i=Math.ceil(e.height*n),a=j.get(e);if(a!==void 0&&a.width===r&&a.height===i)return a;let o=new OffscreenCanvas(r,i),s=o.getContext(`2d`);if(s===null)throw Error(`no 2D context to draw ${r}×${i} on`);s.imageSmoothingQuality=`high`,s.drawImage(e.image,0,0,r,i);let c={...e,image:o.transferToImageBitmap(),width:r,height:i};return j.set(e,c),c}function M(e,t){let n=e.logo;if(t.logo===null)n=null;else if(t.logo!==void 0){if(`ref`in t.logo)n=t.logo;else if(n===null)throw Error(`there is no logo to adjust — upload one first`);else n={...n,...t.logo}}let r=t.background??e.background;if(t.gradient!==void 0){if(r.kind!==`gradient`)throw Error(`the background is not a gradient any more`);let{swap:e,...n}=t.gradient;e&&(r={...r,from:r.to,to:r.from}),r={...r,...n}}return{...e,background:r,logo:n,padding:t.padding??e.padding}}function N(e,t){let n=e=>({...e.kind===`wallpaper`||e.kind===`image`?{blur:0}:{},...Object.fromEntries(Object.entries(e).filter(([,e])=>e!==void 0))}),[r,i]=[n(e),n(t)],a=Object.keys(r);return a.length===Object.keys(i).length&&a.every(e=>r[e]===i[e])}function fe(e,t){if(e.padding!==t.padding)return!1;let n=e.background,r=t.background;return N(n,r)?e.logo===null||t.logo===null?e.logo===t.logo:e.logo.ref===t.logo.ref&&e.logo.corner===t.logo.corner&&e.logo.size===t.logo.size&&e.logo.opacity===t.logo.opacity:!1}function pe(e,t,n=()=>void 0){if(e===null||e.scene!==t)return{branding:t.branding,preview:null};try{return{branding:M(t.branding,e.patch),preview:e}}catch(e){return n(e instanceof Error?e:Error(String(e))),{branding:t.branding,preview:null}}}var P={mp4:`MP4`,gif:`GIF`,stills:`PNG stills`},me=[`mp4`,`gif`,`stills`];function he(e){return[`Export`,e.map((e,t)=>t>0&&e===`stills`?`stills`:P[e]).join(` + `)].filter(Boolean).join(` `)}function ge(e,t){let n=`${t.width} × ${t.height}`;return e===`stills`?`one per step · ${n}`:n}function F(e,t){let n=t===`9:16`;switch(e){case`mp4`:return n?`Vertical video`:t===`auto`?`Video`:`Landscape video`;case`gif`:return n?`Vertical GIF`:`GIF`;case`stills`:return n?`Vertical PNG stills`:`PNG stills`}}function _e(e){switch(e){case`auto`:return{value:`Auto`,reason:`The export takes the source's shape.`};case`9:16`:return{value:`9:16`,reason:`The camera follows each step.`};case`16:9`:return{value:`16:9`,reason:null}}}function ve(e){return`${e.width} × ${e.height}`}function ye(e){if(!e.hasFrames)return`No frames to export`;if(e.durationMs<=0)return`Nothing left to export`;let t=`${e.target.width} × ${e.target.height}`;return e.fileType===`stills`?`${P.stills} · ${t}`:`${_(e.durationMs)} · ${t}`}var I=(e,t,n)=>{let r=document.createElement(e);return t&&(r.className=t),n!==void 0&&(r.textContent=n),r},L=e=>{let t=Number(e.min===``?0:e.min),n=Number(e.max===``?100:e.max)-t,r=n>0?(Number(e.value)-t)/n:0,i=Math.min(1,Math.max(0,r));e.style.setProperty(`--fill`,`${(i*100).toFixed(2)}%`)};function be(e){switch(e.kind){case`solid`:return{from:e.color,to:e.color};case`gradient`:return{from:e.from,to:e.to};case`wallpaper`:return u(e.id)?.swatch??m;case`image`:return m}}function xe(e,t){if(e===`wallpaper`)return D(t)?null:{kind:`wallpaper`,id:C,blur:0};if(t.kind===e)return null;let{from:n,to:r}=be(t);return e===`solid`?{kind:`solid`,color:n}:{kind:`gradient`,from:n,to:t.kind===`solid`?`#ffffff`:r,angle:135}}var R=e=>{let t=I(`img`,`wallpaper-tile-img`);return t.src=e,t.alt=``,t.draggable=!1,t};function Se(e,t,n){let r=I(`div`,`wallpaper-grid`);r.setAttribute(`role`,`group`),r.setAttribute(`aria-label`,`Wallpaper`);let i=e.blur===void 0?{}:{blur:e.blur},a=(e,t,r)=>{let i=I(`button`,`wallpaper-tile`);return i.type=`button`,i.setAttribute(`aria-pressed`,String(e)),i.setAttribute(`aria-label`,t),i.title=t,i.addEventListener(`click`,()=>{e||n.onCommit({background:r})}),i};for(let n of h){let o=`${n.family[0]?.toUpperCase()}${n.family.slice(1)} ${n.id.split(`-`)[1]}`,s=a(e.kind===`wallpaper`&&e.id===n.id,o,{kind:`wallpaper`,id:n.id,...i});s.setAttribute(`data-wallpaper-id`,n.id),s.append(R(t.thumbUrl(n.id))),r.append(s)}let o=t.custom;if(o!==null){let t=a(e.kind===`image`&&e.ref===o.ref,`Your image`,{kind:`image`,ref:o.ref,...i});t.setAttribute(`data-wallpaper-custom`,o.thumb?.kind??`none`),o.thumb?.kind===`ready`?t.append(R(o.thumb.url)):o.thumb?.kind===`failed`?(t.append(g(`circleAlert`)),t.title=`Your image — could not be loaded: ${o.thumb.reason}`,t.setAttribute(`aria-label`,t.title)):t.append(g(`image`)),r.append(t)}let s=I(`input`);s.type=`file`,s.accept=`image/svg+xml,image/png,image/webp,image/jpeg`,s.hidden=!0,s.setAttribute(`data-wallpaper-file`,``),s.addEventListener(`change`,()=>{let e=s.files?.[0];e&&n.onWallpaperFile(e),s.value=``});let c=I(`button`,`wallpaper-tile wallpaper-upload`);return c.type=`button`,c.setAttribute(`data-wallpaper-upload`,``),c.setAttribute(`aria-label`,`Upload an image`),c.title=`Upload an image`,c.append(g(`plus`)),c.addEventListener(`click`,()=>s.click()),r.append(c,s),r}var z={"top-left":`Top left`,"top-right":`Top right`,"bottom-left":`Bottom left`,"bottom-right":`Bottom right`};function Ce(e){let t=I(`span`,`logo-thumb`),n=e??{kind:`failed`,reason:`this page did not load the logo`};if(t.setAttribute(`data-logo-thumb`,n.kind),n.kind===`ready`){let e=I(`img`,`logo-thumb-img`);e.src=n.url,e.alt=`Logo`,t.append(e)}else n.kind===`loading`?(t.setAttribute(`aria-busy`,`true`),t.title=`Loading the logo`):(t.append(g(`circleAlert`)),t.title=`The logo could not be shown: ${n.reason}`,t.setAttribute(`aria-label`,t.title),t.setAttribute(`role`,`img`));return t}function we(e,t){return e===null||!e.capped?null:e.effectiveSize===0?`No room for the logo in ${t} — the video fills the frame`:`Shown at ${Math.round(e.effectiveSize*100)}% in ${t} to stay clear of your video`}var B=null,V=new WeakMap,Te=e=>{let t=V.get(e);return t===void 0&&(t=new Map,V.set(e,t)),t};function H(t,n,r,i,a,o=null){let s=I(`div`,`control-row colour-field`);s.setAttribute(`data-colour-field`,``);let c=I(`input`);c.type=`color`,c.value=n,c.setAttribute(`aria-label`,`${t} swatch`);let l=I(`input`,`colour-text`);l.type=`text`,l.value=n,l.spellcheck=!1,l.setAttribute(`aria-label`,t),l.setAttribute(`data-colour-text`,``);let u=I(`p`,`colour-error`);u.setAttribute(`data-colour-error`,``),u.setAttribute(`role`,`alert`);let d=I(`p`,`muted`);d.setAttribute(`data-colour-note`,``),B!==null&&B.hex===n&&(d.textContent=B.note);let f=a.get(t);f!==void 0&&f.base!==n?a.delete(t):f!==void 0&&(l.value=f.text,u.textContent=f.error,f.error!==``&&(d.textContent=``,l.setAttribute(`aria-invalid`,`true`))),l.addEventListener(`input`,()=>{let e=a.get(t);a.set(t,{base:n,text:l.value,error:e?.error??``})}),c.addEventListener(`input`,()=>{a.delete(t),l.value=c.value,i.onPreview(r(c.value))}),c.addEventListener(`change`,()=>i.onCommit(r(c.value))),l.addEventListener(`change`,()=>{let o=e(l.value);if(!o.ok){u.textContent=o.reason,d.textContent=``,l.setAttribute(`aria-invalid`,`true`),a.set(t,{base:n,text:l.value,error:o.reason});return}a.delete(t),u.textContent=``,d.textContent=o.note??``,B=o.note===null?null:{hex:o.hex,note:o.note},l.removeAttribute(`aria-invalid`),l.value=o.hex,c.value=o.hex,i.onCommit(r(o.hex))});let p=I(`div`,`colour-row`);return p.append(c,l),s.append(I(`span`,`control-label`,t)),o!==null&&(o.classList.add(`control-aside`),s.append(o)),s.append(p,u,d),s}function U(e,t,n,r,i,a,o){let s=I(`div`,`slider-row`),c=I(`input`);c.type=`range`,c.min=String(r.min),c.max=String(r.max),c.step=String(r.step),c.value=String(n),c.setAttribute(e,``),c.setAttribute(`aria-label`,t);let l=I(`span`,`slider-value`,i(n));return L(c),c.addEventListener(`input`,()=>{L(c),l.textContent=i(Number(c.value)),o.onPreview(a(Number(c.value)))}),c.addEventListener(`change`,()=>o.onCommit(a(Number(c.value)))),s.append(I(`span`,`control-label slider-label`,t),l,c),s}function W(e,t,n){let{branding:r}=t,i=r.background,a=I(`div`,`branding-controls`),o=Te(e),s=(e,n)=>{let r=I(`section`,`branding-group`);return r.setAttribute(`data-group`,e),t.groupTitles&&r.append(I(`h3`,`branding-group-title`,n)),r},c=s(`background`,`Background`),l=s(`logo`,`Logo`),u=s(`frame`,`Frame`);t.kit!==void 0&&a.append(De(e,t.kit));let d=I(`div`,`segmented`);d.setAttribute(`role`,`radiogroup`),d.setAttribute(`aria-label`,`Background style`);let f=i.kind===`image`?`wallpaper`:i.kind,p={solid:`Solid`,gradient:`Gradient`,wallpaper:`Wallpaper`};for(let e of[`solid`,`gradient`,`wallpaper`]){let t=I(`button`,`segment`,p[e]);t.type=`button`,t.setAttribute(`role`,`radio`),t.setAttribute(`data-bg-kind`,e),t.setAttribute(`aria-checked`,String(f===e)),t.addEventListener(`click`,()=>{let t=xe(e,i);t!==null&&n.onCommit({background:t})}),d.append(t)}let m=I(`div`,`control-row`);m.append(I(`span`,`control-label`,`Style`),d),c.append(m);let h=null;if(i.kind===`solid`)c.append(H(`Colour`,i.color,e=>({background:{kind:`solid`,color:e}}),n,o));else if(D(i)){if(c.append(Se(i,t.wallpaper,n)),t.wallpaper.loadError!==null){let e=I(`p`,`colour-error`,`The image could not be loaded: ${t.wallpaper.loadError}`);e.setAttribute(`data-wallpaper-error`,``),e.setAttribute(`role`,`alert`),c.append(e)}c.append(U(`data-wallpaper-blur`,`Blur`,i.blur??0,{min:0,max:1,step:.01},e=>`${Math.round(e*100)}%`,e=>({background:{...i,blur:Math.round(e*100)/100}}),n))}else{let e=e=>({gradient:e}),r=I(`button`,`btn btn-link`,`⇅ Swap`);r.type=`button`,r.setAttribute(`data-swap`,``),r.setAttribute(`aria-label`,`Swap From and To`),r.title=`Swap From and To`,r.addEventListener(`click`,()=>n.onCommit(e({swap:!0}))),c.append(H(`From`,i.from,t=>e({from:t}),n,o,r),H(`To`,i.to,t=>e({to:t}),n,o)),h=U(`data-angle`,`Angle`,i.angle,{min:0,max:359,step:1},e=>`${Math.round(e)}°`,t=>e({angle:Math.round(t)}),n),t.groupTitles||c.append(h)}u.append(U(`data-padding`,`Padding`,r.padding,{min:0,max:.2,step:.01},e=>`${Math.round(e*100)}%`,e=>({padding:Math.round(e*100)/100}),n)),h!==null&&t.groupTitles&&u.append(h);let _=I(`div`,`logo-controls`),v=I(`input`);v.type=`file`,v.accept=`image/svg+xml,image/png,image/webp,image/jpeg`,v.setAttribute(`aria-label`,r.logo?`Replace logo`:`Upload logo`),v.addEventListener(`change`,()=>{let e=v.files?.[0];e&&n.onLogoFile(e)});let y=I(`label`,`btn btn-quiet`,r.logo?`Replace`:`Upload logo`);y.prepend(g(`upload`)),y.append(v);let b=I(`div`,`control-row`);if(t.groupTitles||b.append(I(`span`,`control-label`,`Logo`)),_.append(b),r.logo===null){let e=I(`div`,`control-actions`);e.append(y),b.append(e)}else{let e=r.logo,i=I(`button`,`btn btn-quiet`,`Remove`);i.type=`button`,i.setAttribute(`data-logo-remove`,``),i.prepend(g(`trash`)),i.addEventListener(`click`,()=>n.onCommit({logo:null}));let a=I(`div`,`logo-stack`);a.append(y,i);let o=I(`div`,`logo-row`);o.append(Ce(t.logoThumb),a),b.append(o);let s=I(`div`,`corner-frame`);s.setAttribute(`role`,`radiogroup`),s.setAttribute(`aria-label`,`Logo corner`),s.append(I(`div`,`corner-frame-rec`));for(let t of ee){let r=I(`button`,`corner`);r.type=`button`,r.setAttribute(`role`,`radio`),r.setAttribute(`data-logo-corner`,t),r.setAttribute(`aria-checked`,String(e.corner===t)),r.setAttribute(`aria-label`,z[t]),r.title=z[t],r.addEventListener(`click`,()=>n.onCommit({logo:{corner:t}})),s.append(r)}let c=I(`div`,`control-row`);c.append(I(`span`,`control-label`,`Corner`),s),_.append(c,U(`data-logo-size`,`Size`,e.size,{min:.02,max:.2,step:.01},e=>`${Math.round(e*100)}%`,e=>({logo:{size:e}}),n),U(`data-logo-opacity`,`Opacity`,e.opacity,{min:.2,max:1,step:.05},e=>`${Math.round(e*100)}%`,e=>({logo:{opacity:e}}),n));let l=[we(t.logoPlacement,t.formatTitle),...t.logoNotes].filter(e=>e!==null);if(l.length>0){let e=I(`div`,`muted`);e.setAttribute(`data-logo-notes`,``);for(let t of l)e.append(I(`p`,void 0,t));_.append(e)}}l.append(_),a.append(c,u,l);let x=document.activeElement,S=x instanceof HTMLInputElement&&x.hasAttribute(`data-colour-text`)&&e.contains(x)?{label:x.getAttribute(`aria-label`),start:x.selectionStart,end:x.selectionEnd}:null,C=e.querySelector(`[data-kit-new-name]`),w=C!==null&&document.activeElement===C?{start:C.selectionStart,end:C.selectionEnd}:null;e.replaceChildren(a);let T=a.querySelector(`[data-kit-new-name]`);if(T!==null&&C===null?T.focus():T!==null&&w!==null&&(T.focus(),w.start!==null&&w.end!==null&&T.setSelectionRange(w.start,w.end)),S!==null){let e=Array.from(a.querySelectorAll(`[data-colour-text]`)).find(e=>e.getAttribute(`aria-label`)===S.label);e!==void 0&&(e.focus(),S.start!==null&&S.end!==null&&e.setSelectionRange(S.start,S.end))}}var G=new WeakMap,K=new WeakSet;function Ee(e){let t=I(`span`,`kit-swatch`);if(e?.read.state===`ready`){let n=e.read.kit.background;n.kind===`solid`?t.style.background=n.color:n.kind===`gradient`?t.style.background=`linear-gradient(${n.angle}deg, ${n.from}, ${n.to})`:n.kind===`wallpaper`?t.style.background=`center / cover url("${O(n.id)}")`:t.append(g(`image`))}else e!==null&&t.append(g(`circleAlert`));return t}function De(e,t){let{read:n,standing:r,naming:i}=t,a=I(`div`,`control-row kit-actions`);if(a.setAttribute(`data-kit-row`,``),a.append(I(`span`,`control-label`,`Brand kit`)),n.state===`invalid`){let e=I(`p`,`colour-error`,`Your brand kits could not be read: ${n.reason}`);return e.setAttribute(`data-kit-error`,``),a.append(e),a}if(i!==null){let e=I(`div`,`kit-naming`),n=I(`input`,`kit-new-name`);n.type=`text`,n.maxLength=40,n.value=i.text,n.placeholder=`Kit name`,n.setAttribute(`aria-label`,`New kit name`),n.setAttribute(`data-kit-new-name`,``),n.addEventListener(`input`,()=>t.onNameInput(n.value)),n.addEventListener(`keydown`,e=>{e.key===`Enter`?t.onConfirmNew(n.value):e.key===`Escape`&&t.onCancelNew()});let r=I(`button`,`btn btn-primary`,`Save`);r.type=`button`,r.setAttribute(`data-kit-new-save`,``),r.addEventListener(`click`,()=>t.onConfirmNew(n.value));let o=I(`button`,`btn btn-quiet`,`Cancel`);if(o.type=`button`,o.setAttribute(`data-kit-new-cancel`,``),o.addEventListener(`click`,()=>t.onCancelNew()),e.append(n,r,o),a.append(e),i.error!==null){let e=I(`p`,`colour-error`,i.error);e.setAttribute(`data-kit-new-error`,``),a.append(e)}return a}let o=I(`div`,`kit-picker-wrap`),s=I(`button`,`kit-picker`);s.type=`button`,s.setAttribute(`data-kit-picker`,``),s.setAttribute(`aria-haspopup`,`menu`);let c=r===null?n.kits.length===0?`No brand kit`:`Custom look`:r.kit.name;if(s.append(Ee(r?.kit??null),I(`span`,r===null?`kit-picker-name kit-picker-none`:`kit-picker-name`,c)),r?.edited){let e=I(`span`,`kit-edited`,`Edited`);e.setAttribute(`data-kit-edited`,``),s.append(e)}s.append(g(`chevronDown`));let l=I(`div`,`kit-menu`);l.setAttribute(`role`,`menu`),l.setAttribute(`data-kit-menu`,``);let u=t=>{G.set(e,t),l.hidden=!t,s.setAttribute(`aria-expanded`,String(t))},d=(e,t,n)=>{let r=I(`button`,`kit-menu-item ${e}`.trim());return r.type=`button`,n!==null&&r.append(n),r.append(I(`span`,`kit-menu-label`,t)),r};for(let e of n.kits){let i=d(``,e.name,Ee(e));i.setAttribute(`role`,`menuitemradio`),i.setAttribute(`data-kit-option`,e.id);let a=e.id===r?.kit.id;i.setAttribute(`aria-checked`,String(a));let o=I(`span`,`kit-menu-meta`);if(e.id===n.defaultId){let e=g(`star`);e.setAttribute(`aria-label`,`Default`),o.append(e)}a&&o.append(g(`check`)),i.append(o),e.read.state===`invalid`&&(i.disabled=!0,i.title=e.read.reason),i.addEventListener(`click`,()=>{u(!1),t.onApply(e.id)}),l.append(i)}if(n.kits.length>0&&l.append(I(`div`,`kit-menu-sep`)),r!==null){let e=d(``,`Update "${r.kit.name}"`,g(`refresh`));e.setAttribute(`role`,`menuitem`),e.setAttribute(`data-kit-update`,``),r.edited||(e.disabled=!0),e.addEventListener(`click`,()=>{u(!1),t.onUpdate()}),l.append(e)}let f=d(``,`Save as new kit…`,g(`plus`));return f.setAttribute(`role`,`menuitem`),f.setAttribute(`data-kit-new`,``),f.addEventListener(`click`,()=>{u(!1),t.onStartNew()}),l.append(f),s.addEventListener(`click`,()=>u(l.hidden)),l.addEventListener(`keydown`,e=>{e.key===`Escape`&&(u(!1),s.focus())}),u(G.get(e)===!0),K.has(e)||(K.add(e),document.addEventListener(`pointerdown`,t=>{if(G.get(e)!==!0||e.querySelector(`[data-kit-row]`)?.contains(t.target))return;G.set(e,!1);let n=e.querySelector(`[data-kit-menu]`);n!==null&&(n.hidden=!0),e.querySelector(`[data-kit-picker]`)?.setAttribute(`aria-expanded`,`false`)})),o.append(s,l),a.append(o),a}var Oe={...i,width:480,height:270,cornerRadius:i.cornerRadius*480/i.width},q={width:1280,height:800};function J(e){return p(Oe,q,e)}var ke=v.shape.padding.maxValue;if(ke===null)throw Error(`BrandingSchema's padding has no ceiling to size the preview by`);var Y=J(ke);function Ae(e,t){return f(e,J(e.padding),q,t).logoPlacement}function je(e,t,n,i,a=0,o=null){let s=e.getContext(`2d`);if(s===null)return!1;let c=Y;e.width!==c.width&&(e.width=c.width),e.height!==c.height&&(e.height=c.height);let l=J(t.padding);s.clearRect(0,0,c.width,c.height),s.save(),s.beginPath(),s.roundRect(0,0,l.width,l.height,a),s.clip();let u=s,p=null;try{p=A(o,t.background,l)}catch(e){console.warn(`demoman settings: the brand kit preview's image could not be blurred: ${e instanceof Error?e.message:String(e)}`)}let m=f(t,l,q,n,p);r(u,l,m);let h=m.frameRect;return s.save(),s.fillStyle=i,s.beginPath(),s.roundRect(h.x,h.y,h.width,h.height,m.cornerRadius),s.fill(),s.restore(),d(u,l,m),s.restore(),!0}function X(e,t={},n){let r=document.createElement(e);for(let[e,n]of Object.entries(t))r.setAttribute(e,n);return n!==void 0&&(r.textContent=n),r}var Me=[{section:`brandKit`,id:`brand-kit`,label:`Brand kit`,glyph:`palette`},{section:`export`,id:`export`,label:`Export`,glyph:`download`},{section:`pullRequests`,id:`pull-requests`,label:`Pull requests`,glyph:`upload`}];function Z(e,t){let n=X(`section`,{"data-section":e,id:Me.find(t=>t.section===e)?.id??e}),r=X(`div`,{class:`section-head`});r.append(X(`h2`,{},t));let i=X(`div`,{class:`card section-body`});return n.append(r,i),{box:n,body:i}}function Ne(){let e=X(`nav`,{class:`section-nav`,"aria-label":`Settings sections`}),t=X(`ul`);for(let e of Me){let n=X(`a`,{href:`#${e.id}`,"data-nav":e.id});n.append(g(e.glyph),X(`span`,{},e.label));let r=X(`li`);r.append(n),t.append(r)}return e.append(t),e}function Q(e,t){return X(`button`,{type:`button`,class:`btn btn-quiet`,...t},e)}function $(e){return X(`p`,{class:`notice notice-error`,"data-notice":``},e)}function Pe(e,r,i,a){let o=X(`div`,{class:`content`});{let e=Z(`brandKit`,`Brand kit`),t=a.get(`brandKit`);t!==void 0&&e.body.append($(t)),r.kitsUnwatched!==null&&e.body.append(X(`p`,{class:`notice notice-warn`,"data-notice":``,"data-unwatched":``},`Kits changed outside this window will not show until you reload — ${r.kitsUnwatched}.`)),Fe(e.body,r,i),o.append(e.box)}{let e=Z(`export`,`Export`),s=a.get(`export`);s!==void 0&&e.body.append($(s));let c=r.exportQuality,l=X(`div`,{class:`switch-row export-quality`}),u=X(`div`,{class:`segmented`,role:`radiogroup`,"aria-label":`Export quality`});for(let e of t){let t=X(`button`,{type:`button`,class:`segment`,role:`radio`,"data-export-quality":e,"aria-checked":String(e===c)},n[e]);t.addEventListener(`click`,()=>{e!==c&&i.setExportQuality(e)}),u.append(t)}l.append(u),e.body.append(l),o.append(e.box)}{let e=Z(`pullRequests`,`Pull requests`),t=a.get(`pullRequests`);t!==void 0&&e.body.append($(t));let n=r.pullRequests,s=X(`div`,{class:`switch-row pull-requests`}),c=X(`div`,{class:`segmented`,role:`radiogroup`,"aria-label":`Pull requests`});for(let e of w){let t=X(`button`,{type:`button`,class:`segment`,role:`radio`,"data-pull-requests":e,"aria-checked":String(e===n)},T[e]);t.addEventListener(`click`,()=>{e!==n&&i.setPullRequests(e)}),c.append(t)}s.append(c),e.body.append(s),o.append(e.box)}let s=X(`div`,{class:`settings-side`});s.append(X(`h1`,{},`Settings`),Ne());let c=X(`div`,{class:`settings`});c.append(s,o),e.replaceChildren(c)}function Fe(e,t,n){let r=t.brandKits;if(r.state===`invalid`){if(e.append($(`Your brand kits could not be read: ${r.reason}`)),r.storageRefused){e.append(X(`p`,{class:`hint`},`Nothing was changed. Reload this page to try again.`));return}let t=Q(`Start a fresh kit list`,{"data-kit-reset-list":``});t.addEventListener(`click`,()=>n.resetKits()),e.append(t);return}let i=r.kits.find(e=>e.id===t.selectedKitId)??null;e.append(Ie(r,i,n)),i!==null&&e.append(Le(i,r,n)),i?.read.state===`invalid`&&e.append($(`"${i.name}" could not be read: ${i.read.reason}`));let a=i?.read.state===`ready`?i.read.kit:x,o=X(`div`,{class:`kit-hero`});o.append(X(`canvas`,{"data-preview-kit":``,width:String(Y.width),height:String(Y.height),class:`kit-preview`}));let s=X(`div`,{class:`kit-controls`});W(s,{branding:a,logoThumb:t.brandKitLogoThumb,logoPlacement:t.brandKitPlacement,formatTitle:F(`mp4`,y.aspect),logoNotes:t.brandKitNotes,groupTitles:!0,wallpaper:{thumbUrl:O,...t.brandKitWallpaper}},{onCommit:e=>n.setBrandKit(e),onPreview:e=>n.previewBrandKit(e),onLogoFile:e=>n.uploadKitLogo(e),onWallpaperFile:e=>n.uploadKitWallpaper(e)}),e.append(o,s)}function Ie(e,t,n){let r=X(`div`,{class:`kit-strip`,role:`list`}),i=o(e);for(let a of e.kits){let e=X(`div`,{class:`kit-tile`,role:`listitem`,"data-kit-tile":a.id}),o=X(`button`,{type:`button`,class:`kit-pick`,"data-kit-select":a.id,"aria-pressed":String(a.id===t?.id)});if(a.read.state===`ready`)o.append(X(`canvas`,{class:`kit-thumb`,"data-kit-thumb":a.id,width:String(Y.width),height:String(Y.height)}));else{let e=X(`span`,{class:`kit-thumb kit-thumb-broken`});e.append(g(`circleAlert`)),o.append(e),o.title=a.read.reason}o.append(X(`span`,{class:`kit-tile-name`},a.name)),o.addEventListener(`click`,()=>n.selectKit(a.id));let s=a.id===i?.id,c=X(`button`,{type:`button`,class:`kit-star`,"data-kit-star":a.id,"aria-pressed":String(s),"aria-label":s?`"${a.name}" is the default kit`:`Make "${a.name}" the default kit`});c.append(g(`star`)),c.addEventListener(`click`,()=>{s||n.setDefaultKit(a.id)}),e.append(o,c),r.append(e)}let a=X(`button`,{type:`button`,class:`kit-tile kit-new`,"data-kit-new":``});return a.append(g(`plus`),X(`span`,{},`New kit`)),a.addEventListener(`click`,()=>n.newKit()),r.append(a),r}function Le(e,t,n){let r=X(`div`,{class:`kit-head`}),i=X(`input`,{type:`text`,class:`kit-name`,"data-kit-name":``,maxlength:`40`,"aria-label":`Kit name`});i.value=e.name,i.addEventListener(`change`,()=>n.renameKit(e.id,i.value)),i.addEventListener(`keydown`,t=>{t.key===`Escape`&&(i.value=e.name,i.blur())});let a=Q(`Duplicate`,{"data-kit-duplicate":``});a.prepend(g(`copy`)),a.addEventListener(`click`,()=>n.duplicateKit(e.id));let o=Q(`Delete`,{"data-kit-delete":``});return o.prepend(g(`trash`)),t.kits.length===1&&(o.disabled=!0,o.title=`The last kit cannot be deleted`),o.addEventListener(`click`,()=>n.deleteKit(e.id)),r.append(i,a,o),r}export{te as A,D as C,le as D,ae as E,O,de as S,re as T,pe as _,W as a,A as b,me as c,F as d,he as f,M as g,ye as h,je as i,ne as k,P as l,ve as m,Y as n,I as o,ge as p,Ae as r,L as s,Pe as t,_e as u,N as v,oe as w,ce as x,fe as y};
@@ -7,12 +7,12 @@
7
7
  <!-- The shell — tokens, faces, the brand lockup, buttons, notices — is
8
8
  shared with the popup, the Recordings page and Settings. Only the
9
9
  editor's own rules are inline below. -->
10
- <link rel="stylesheet" href="/assets/editor-inline-61caf545.css">
11
- <script type="module" crossorigin src="/assets/editor-CJ2FLYuv.js"></script>
12
- <link rel="modulepreload" crossorigin href="/assets/toast-BE4O_wjA.js">
13
- <link rel="modulepreload" crossorigin href="/assets/state-CAJCdg4W.js">
14
- <link rel="modulepreload" crossorigin href="/assets/view-B276ZLOH.js">
15
- <link rel="stylesheet" crossorigin href="/assets/toast-DoOgSxra.css">
10
+ <link rel="stylesheet" href="/assets/editor-inline-cd7c872c.css">
11
+ <script type="module" crossorigin src="/assets/editor-CkqCwhYk.js"></script>
12
+ <link rel="modulepreload" crossorigin href="/assets/toast-DqduzzQ9.js">
13
+ <link rel="modulepreload" crossorigin href="/assets/state-BS-KyCjA.js">
14
+ <link rel="modulepreload" crossorigin href="/assets/view-DCUIuEZt.js">
15
+ <link rel="stylesheet" crossorigin href="/assets/toast-BrkW6C03.css">
16
16
  </head>
17
17
  <body>
18
18
  <header>
Binary file
@@ -1,4 +1,4 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="157.0 119.3 299.2 299.2" width="32" height="32">
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="-5.2 -30.2 140.4 140.4" width="32" height="32">
2
2
  <title>Demoman</title>
3
- <g fill="currentColor"><g transform="translate(5.54,56.31) scale(0.96895)"><path d="M 287.20,151.99 L 345.34,125.16 A 16,16 0 0 0 345.34,96.10 L 287.20,69.27 A 16,16 0 0 0 264.50,83.80 L 264.50,137.46 A 16,16 0 0 0 287.20,151.99 Z"/></g><rect x="264" y="224" width="83" height="83" rx="16.5"/><rect x="264" y="326" width="33" height="92.5" rx="16.5"/><rect x="314" y="326" width="33" height="92.5" rx="16.5"/></g>
3
+ <g fill="currentColor" stroke="currentColor" stroke-width="6" stroke-linejoin="round"><polygon points="28.18,3 39.87,3 15.82,77 4.13,77"/><polygon points="58.18,3 69.87,3 45.82,77 34.13,77"/><path transform="translate(88.18,3) skewX(-18)" d="M0 0 H8 A41 37 0 0 1 8 74 H0 Z"/></g>
4
4
  </svg>
@@ -1,11 +1,7 @@
1
1
  <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1280 320" width="1280" height="320" role="img" aria-label="Demoman">
2
2
  <title>Demoman</title>
3
- <svg x="207.2" y="60" width="200" height="200" viewBox="0 0 100 100" aria-hidden="true">
4
- <rect width="100" height="100" rx="22" fill="#0a0a0a"/>
5
- <rect x="0.25" y="0.25" width="99.5" height="99.5" rx="21.75" fill="none" stroke="rgba(255,255,255,.16)" stroke-width="0.5"/>
6
- <g fill="#f4f4f5" transform="translate(-31.979 -21.898) scale(0.267)"><g transform="translate(5.54,56.31) scale(0.96895)"><path d="M 287.20,151.99 L 345.34,125.16 A 16,16 0 0 0 345.34,96.10 L 287.20,69.27 A 16,16 0 0 0 264.50,83.80 L 264.50,137.46 A 16,16 0 0 0 287.20,151.99 Z"/></g><rect x="264" y="224" width="83" height="83" rx="16.5"/><rect x="264" y="326" width="33" height="92.5" rx="16.5"/><rect x="314" y="326" width="33" height="92.5" rx="16.5"/></g>
7
- </svg>
8
- <svg x="463.2" y="112" width="609.7" height="96" viewBox="71.8 -703.0 4531.2 713.5" aria-hidden="true">
9
- <path fill="#f4f4f5" d="M164.5 0V-121.2H344Q412 -121.2 463.1 -149.6Q514.2 -178 542.6 -230.1Q571 -282.2 571 -352.5Q571 -422 542.1 -473.5Q513.2 -525 462.2 -553.4Q411.2 -581.8 344 -581.8H162V-703H346.2Q424.2 -703 490.6 -676.9Q557 -650.8 606.4 -603.4Q655.8 -556 683.1 -492Q710.5 -428 710.5 -351.5Q710.5 -275.8 683.1 -211.4Q655.8 -147 606.8 -99.6Q557.8 -52.2 491.5 -26.1Q425.2 0 348.2 0ZM71.8 0V-703H208V0ZM1020.8 10.5Q945.2 10.5 885.9 -22Q826.5 -54.5 792.2 -111.9Q758 -169.2 758 -241.5Q758 -313.5 791.6 -370.4Q825.2 -427.2 883.1 -460.4Q941 -493.5 1012.2 -493.5Q1081.8 -493.5 1135.1 -462.4Q1188.5 -431.2 1219 -376.8Q1249.5 -322.2 1249.5 -252.5Q1249.5 -239.8 1248 -226.2Q1246.5 -212.8 1243 -196L836.5 -195.2V-292.8L1182 -293.5L1128.5 -253.2Q1127 -296.2 1113.4 -325.1Q1099.8 -354 1074.4 -369.2Q1049 -384.5 1011.8 -384.5Q972.8 -384.5 944 -367.2Q915.2 -350 899.6 -318.6Q884 -287.2 884 -243.5Q884 -199.5 900.6 -167.1Q917.2 -134.8 948 -117.4Q978.8 -100 1020 -100Q1056.5 -100 1086.8 -112.6Q1117 -125.2 1139 -150.2L1216 -72.8Q1180.5 -31.5 1130 -10.5Q1079.5 10.5 1020.8 10.5ZM1315.5 0V-483H1447V0ZM1630.5 0V-285Q1630.5 -327.2 1604.2 -350.8Q1578 -374.2 1539.2 -374.2Q1512.8 -374.2 1492 -363.6Q1471.2 -353 1459.1 -333.1Q1447 -313.2 1447 -285L1395.8 -310Q1395.8 -366.2 1420.4 -407Q1445 -447.8 1487 -470.4Q1529 -493 1581.5 -493Q1632.2 -493 1673.1 -470.5Q1714 -448 1738 -407.4Q1762 -366.8 1762 -310.2V0ZM1945.5 0V-285Q1945.5 -327.2 1919.2 -350.8Q1893 -374.2 1854.2 -374.2Q1828.5 -374.2 1807.4 -363.6Q1786.2 -353 1774.1 -333.1Q1762 -313.2 1762 -285L1686.8 -302.8Q1690.5 -361.2 1717.6 -403.6Q1744.8 -446 1788.9 -469.5Q1833 -493 1887 -493Q1940.8 -493 1983.6 -470.2Q2026.5 -447.5 2051.8 -405.8Q2077 -364 2077 -305.5V0ZM2394.5 10.5Q2321.8 10.5 2263.1 -23Q2204.5 -56.5 2170.2 -114Q2136 -171.5 2136 -242.5Q2136 -313.5 2170.1 -370Q2204.2 -426.5 2262.9 -460Q2321.5 -493.5 2394.2 -493.5Q2467.8 -493.5 2526.2 -460.4Q2584.8 -427.2 2619 -370.4Q2653.2 -313.5 2653.2 -242.5Q2653.2 -171.5 2619.1 -114Q2585 -56.5 2526.5 -23Q2468 10.5 2394.5 10.5ZM2394.2 -112Q2431.2 -112 2459.5 -128.5Q2487.8 -145 2503.4 -174.6Q2519 -204.2 2519 -242.2Q2519 -280.2 2502.9 -309.1Q2486.8 -338 2459 -354.5Q2431.2 -371 2394.2 -371Q2358.2 -371 2330 -354.4Q2301.8 -337.8 2286 -308.9Q2270.2 -280 2270.2 -242Q2270.2 -204.2 2286 -174.6Q2301.8 -145 2330 -128.5Q2358.2 -112 2394.2 -112ZM2721.5 0V-483H2853V0ZM3036.5 0V-285Q3036.5 -327.2 3010.2 -350.8Q2984 -374.2 2945.2 -374.2Q2918.8 -374.2 2898 -363.6Q2877.2 -353 2865.1 -333.1Q2853 -313.2 2853 -285L2801.8 -310Q2801.8 -366.2 2826.4 -407Q2851 -447.8 2893 -470.4Q2935 -493 2987.5 -493Q3038.2 -493 3079.1 -470.5Q3120 -448 3144 -407.4Q3168 -366.8 3168 -310.2V0ZM3351.5 0V-285Q3351.5 -327.2 3325.2 -350.8Q3299 -374.2 3260.2 -374.2Q3234.5 -374.2 3213.4 -363.6Q3192.2 -353 3180.1 -333.1Q3168 -313.2 3168 -285L3092.8 -302.8Q3096.5 -361.2 3123.6 -403.6Q3150.8 -446 3194.9 -469.5Q3239 -493 3293 -493Q3346.8 -493 3389.6 -470.2Q3432.5 -447.5 3457.8 -405.8Q3483 -364 3483 -305.5V0ZM3775.5 10Q3709.5 10 3656.9 -23Q3604.2 -56 3573.9 -112.8Q3543.5 -169.5 3543.5 -240.8Q3543.5 -312.8 3573.9 -369.6Q3604.2 -426.5 3656.9 -459.8Q3709.5 -493 3775.5 -493Q3827.5 -493 3868.5 -471.8Q3909.5 -450.5 3934.4 -413.2Q3959.2 -376 3961 -328.5V-154.5Q3959.2 -107 3934.8 -69.8Q3910.2 -32.5 3868.9 -11.2Q3827.5 10 3775.5 10ZM3800 -111Q3855 -111 3888.8 -147.6Q3922.5 -184.2 3922.5 -241.5Q3922.5 -280 3907.2 -309.4Q3892 -338.8 3864.5 -355.4Q3837 -372 3800.2 -372Q3764.2 -372 3736.8 -355.4Q3709.2 -338.8 3693.4 -309.2Q3677.5 -279.8 3677.5 -241.5Q3677.5 -203.2 3693.2 -173.8Q3709 -144.2 3736.6 -127.6Q3764.2 -111 3800 -111ZM3915.8 0V-129.8L3936.8 -247.5L3915.8 -364.2V-483H4046V0ZM4471.5 0V-276.8Q4471.5 -320 4444.5 -347.1Q4417.5 -374.2 4375.4 -374.2Q4346.8 -374.2 4324.8 -362Q4302.8 -349.8 4290.4 -327.6Q4278 -305.5 4278 -276.8L4226.8 -303.2Q4226.8 -359.5 4251.4 -402.1Q4276 -444.8 4319.4 -468.9Q4362.8 -493 4417.8 -493Q4471.2 -493 4513.1 -466.5Q4555 -440 4579 -397.2Q4603 -354.5 4603 -306V0ZM4146.5 0V-483H4278V0Z"/>
3
+ <svg x="233.3" y="106.59154929577466" width="813.5" height="106.8169014084507" viewBox="-40 -740 6016.5 790.0" aria-hidden="true">
4
+ <svg x="0" y="-700" width="1137.5" height="700" viewBox="0 0 130.0 80.0" aria-hidden="true"><g fill="#f4f4f5" stroke="#f4f4f5" stroke-width="6" stroke-linejoin="round"><polygon points="28.18,3 39.87,3 15.82,77 4.13,77"/><polygon points="58.18,3 69.87,3 45.82,77 34.13,77"/><path transform="translate(88.18,3) skewX(-18)" d="M0 0 H8 A41 37 0 0 1 8 74 H0 Z"/></g></svg>
5
+ <g transform="translate(1387.5 0)"><path fill="#f4f4f5" d="M155 0V-105H339Q411 -105 465.5 -136Q520 -167 550.5 -222.5Q581 -278 581 -351Q581 -423 550 -478Q519 -533 464.5 -564Q410 -595 339 -595H155V-700H342Q418 -700 483 -673.5Q548 -647 596.5 -599.5Q645 -552 672 -488.5Q699 -425 699 -350Q699 -276 672 -212Q645 -148 597 -100.5Q549 -53 484 -26.5Q419 0 344 0ZM76 0V-700H191V0ZM1009 10Q937 10 879.5 -22.5Q822 -55 788.5 -112Q755 -169 755 -240Q755 -311 788 -367.5Q821 -424 877.5 -457Q934 -490 1003 -490Q1070 -490 1121.5 -459Q1173 -428 1202.5 -374Q1232 -320 1232 -251Q1232 -239 1230.5 -226.5Q1229 -214 1226 -199H832V-289H1169L1128 -253Q1126 -297 1111 -327Q1096 -357 1068.5 -373Q1041 -389 1001 -389Q959 -389 928 -371Q897 -353 880 -320.5Q863 -288 863 -243Q863 -198 881 -164Q899 -130 932 -111.5Q965 -93 1008 -93Q1045 -93 1076.5 -106Q1108 -119 1130 -144L1200 -73Q1165 -32 1115 -11Q1065 10 1009 10ZM1305 0V-480H1415V0ZM1624 0V-286Q1624 -334 1594 -360.5Q1564 -387 1520 -387Q1490 -387 1466.5 -375Q1443 -363 1429 -340.5Q1415 -318 1415 -286L1372 -310Q1372 -365 1396 -405Q1420 -445 1461 -467.5Q1502 -490 1553 -490Q1604 -490 1645 -468Q1686 -446 1710 -406Q1734 -366 1734 -310V0ZM1943 0V-286Q1943 -334 1913 -360.5Q1883 -387 1839 -387Q1810 -387 1786 -375Q1762 -363 1748 -340.5Q1734 -318 1734 -286L1672 -310Q1677 -365 1704 -405Q1731 -445 1773.5 -467.5Q1816 -490 1867 -490Q1919 -490 1961 -468Q2003 -446 2028 -406Q2053 -366 2053 -310V0ZM2371 10Q2301 10 2244 -23.5Q2187 -57 2153.5 -114Q2120 -171 2120 -241Q2120 -311 2153.5 -367Q2187 -423 2244 -456.5Q2301 -490 2371 -490Q2442 -490 2499 -457Q2556 -424 2589.5 -367.5Q2623 -311 2623 -241Q2623 -171 2589.5 -114Q2556 -57 2499 -23.5Q2442 10 2371 10ZM2371 -96Q2412 -96 2443.5 -114.5Q2475 -133 2492.5 -166Q2510 -199 2510 -241Q2510 -283 2492 -315Q2474 -347 2443 -365.5Q2412 -384 2371 -384Q2331 -384 2299.5 -365.5Q2268 -347 2250.5 -315Q2233 -283 2233 -241Q2233 -199 2250.5 -166Q2268 -133 2299.5 -114.5Q2331 -96 2371 -96ZM2699 0V-480H2809V0ZM3018 0V-286Q3018 -334 2988 -360.5Q2958 -387 2914 -387Q2884 -387 2860.5 -375Q2837 -363 2823 -340.5Q2809 -318 2809 -286L2766 -310Q2766 -365 2790 -405Q2814 -445 2855 -467.5Q2896 -490 2947 -490Q2998 -490 3039 -468Q3080 -446 3104 -406Q3128 -366 3128 -310V0ZM3337 0V-286Q3337 -334 3307 -360.5Q3277 -387 3233 -387Q3204 -387 3180 -375Q3156 -363 3142 -340.5Q3128 -318 3128 -286L3066 -310Q3071 -365 3098 -405Q3125 -445 3167.5 -467.5Q3210 -490 3261 -490Q3313 -490 3355 -468Q3397 -446 3422 -406Q3447 -366 3447 -310V0ZM3746 10Q3681 10 3628.5 -23Q3576 -56 3545.5 -112.5Q3515 -169 3515 -239Q3515 -310 3545.5 -366.5Q3576 -423 3628.5 -456.5Q3681 -490 3746 -490Q3801 -490 3843.5 -466.5Q3886 -443 3911 -402Q3936 -361 3936 -309V-171Q3936 -119 3911.5 -78Q3887 -37 3844 -13.5Q3801 10 3746 10ZM3764 -94Q3825 -94 3862.5 -135Q3900 -176 3900 -240Q3900 -283 3883 -316Q3866 -349 3835.5 -367.5Q3805 -386 3764 -386Q3724 -386 3693.5 -367.5Q3663 -349 3645.5 -316Q3628 -283 3628 -240Q3628 -197 3645.5 -164Q3663 -131 3693.5 -112.5Q3724 -94 3764 -94ZM3893 0V-129L3912 -246L3893 -362V-480H4003V0ZM4439 0V-277Q4439 -325 4408.5 -356Q4378 -387 4330.2 -387Q4297.7 -387 4272.9 -373Q4248 -359 4234 -334Q4220 -309 4220 -277L4177 -301Q4177 -356 4201 -398.5Q4225 -441 4267.4 -465.5Q4309.8 -490 4363.4 -490Q4417 -490 4459 -462.5Q4501 -435 4525 -391.5Q4549 -348 4549 -301V0ZM4110 0V-480H4220V0Z"/></g>
10
6
  </svg>
11
7
  </svg>
@@ -1,11 +1,7 @@
1
1
  <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1280 320" width="1280" height="320" role="img" aria-label="Demoman">
2
2
  <title>Demoman</title>
3
- <svg x="207.2" y="60" width="200" height="200" viewBox="0 0 100 100" aria-hidden="true">
4
- <rect width="100" height="100" rx="22" fill="#0a0a0a"/>
5
- <rect x="0.25" y="0.25" width="99.5" height="99.5" rx="21.75" fill="none" stroke="rgba(255,255,255,.16)" stroke-width="0.5"/>
6
- <g fill="#f4f4f5" transform="translate(-31.979 -21.898) scale(0.267)"><g transform="translate(5.54,56.31) scale(0.96895)"><path d="M 287.20,151.99 L 345.34,125.16 A 16,16 0 0 0 345.34,96.10 L 287.20,69.27 A 16,16 0 0 0 264.50,83.80 L 264.50,137.46 A 16,16 0 0 0 287.20,151.99 Z"/></g><rect x="264" y="224" width="83" height="83" rx="16.5"/><rect x="264" y="326" width="33" height="92.5" rx="16.5"/><rect x="314" y="326" width="33" height="92.5" rx="16.5"/></g>
7
- </svg>
8
- <svg x="463.2" y="112" width="609.7" height="96" viewBox="71.8 -703.0 4531.2 713.5" aria-hidden="true">
9
- <path fill="#0a0a0a" d="M164.5 0V-121.2H344Q412 -121.2 463.1 -149.6Q514.2 -178 542.6 -230.1Q571 -282.2 571 -352.5Q571 -422 542.1 -473.5Q513.2 -525 462.2 -553.4Q411.2 -581.8 344 -581.8H162V-703H346.2Q424.2 -703 490.6 -676.9Q557 -650.8 606.4 -603.4Q655.8 -556 683.1 -492Q710.5 -428 710.5 -351.5Q710.5 -275.8 683.1 -211.4Q655.8 -147 606.8 -99.6Q557.8 -52.2 491.5 -26.1Q425.2 0 348.2 0ZM71.8 0V-703H208V0ZM1020.8 10.5Q945.2 10.5 885.9 -22Q826.5 -54.5 792.2 -111.9Q758 -169.2 758 -241.5Q758 -313.5 791.6 -370.4Q825.2 -427.2 883.1 -460.4Q941 -493.5 1012.2 -493.5Q1081.8 -493.5 1135.1 -462.4Q1188.5 -431.2 1219 -376.8Q1249.5 -322.2 1249.5 -252.5Q1249.5 -239.8 1248 -226.2Q1246.5 -212.8 1243 -196L836.5 -195.2V-292.8L1182 -293.5L1128.5 -253.2Q1127 -296.2 1113.4 -325.1Q1099.8 -354 1074.4 -369.2Q1049 -384.5 1011.8 -384.5Q972.8 -384.5 944 -367.2Q915.2 -350 899.6 -318.6Q884 -287.2 884 -243.5Q884 -199.5 900.6 -167.1Q917.2 -134.8 948 -117.4Q978.8 -100 1020 -100Q1056.5 -100 1086.8 -112.6Q1117 -125.2 1139 -150.2L1216 -72.8Q1180.5 -31.5 1130 -10.5Q1079.5 10.5 1020.8 10.5ZM1315.5 0V-483H1447V0ZM1630.5 0V-285Q1630.5 -327.2 1604.2 -350.8Q1578 -374.2 1539.2 -374.2Q1512.8 -374.2 1492 -363.6Q1471.2 -353 1459.1 -333.1Q1447 -313.2 1447 -285L1395.8 -310Q1395.8 -366.2 1420.4 -407Q1445 -447.8 1487 -470.4Q1529 -493 1581.5 -493Q1632.2 -493 1673.1 -470.5Q1714 -448 1738 -407.4Q1762 -366.8 1762 -310.2V0ZM1945.5 0V-285Q1945.5 -327.2 1919.2 -350.8Q1893 -374.2 1854.2 -374.2Q1828.5 -374.2 1807.4 -363.6Q1786.2 -353 1774.1 -333.1Q1762 -313.2 1762 -285L1686.8 -302.8Q1690.5 -361.2 1717.6 -403.6Q1744.8 -446 1788.9 -469.5Q1833 -493 1887 -493Q1940.8 -493 1983.6 -470.2Q2026.5 -447.5 2051.8 -405.8Q2077 -364 2077 -305.5V0ZM2394.5 10.5Q2321.8 10.5 2263.1 -23Q2204.5 -56.5 2170.2 -114Q2136 -171.5 2136 -242.5Q2136 -313.5 2170.1 -370Q2204.2 -426.5 2262.9 -460Q2321.5 -493.5 2394.2 -493.5Q2467.8 -493.5 2526.2 -460.4Q2584.8 -427.2 2619 -370.4Q2653.2 -313.5 2653.2 -242.5Q2653.2 -171.5 2619.1 -114Q2585 -56.5 2526.5 -23Q2468 10.5 2394.5 10.5ZM2394.2 -112Q2431.2 -112 2459.5 -128.5Q2487.8 -145 2503.4 -174.6Q2519 -204.2 2519 -242.2Q2519 -280.2 2502.9 -309.1Q2486.8 -338 2459 -354.5Q2431.2 -371 2394.2 -371Q2358.2 -371 2330 -354.4Q2301.8 -337.8 2286 -308.9Q2270.2 -280 2270.2 -242Q2270.2 -204.2 2286 -174.6Q2301.8 -145 2330 -128.5Q2358.2 -112 2394.2 -112ZM2721.5 0V-483H2853V0ZM3036.5 0V-285Q3036.5 -327.2 3010.2 -350.8Q2984 -374.2 2945.2 -374.2Q2918.8 -374.2 2898 -363.6Q2877.2 -353 2865.1 -333.1Q2853 -313.2 2853 -285L2801.8 -310Q2801.8 -366.2 2826.4 -407Q2851 -447.8 2893 -470.4Q2935 -493 2987.5 -493Q3038.2 -493 3079.1 -470.5Q3120 -448 3144 -407.4Q3168 -366.8 3168 -310.2V0ZM3351.5 0V-285Q3351.5 -327.2 3325.2 -350.8Q3299 -374.2 3260.2 -374.2Q3234.5 -374.2 3213.4 -363.6Q3192.2 -353 3180.1 -333.1Q3168 -313.2 3168 -285L3092.8 -302.8Q3096.5 -361.2 3123.6 -403.6Q3150.8 -446 3194.9 -469.5Q3239 -493 3293 -493Q3346.8 -493 3389.6 -470.2Q3432.5 -447.5 3457.8 -405.8Q3483 -364 3483 -305.5V0ZM3775.5 10Q3709.5 10 3656.9 -23Q3604.2 -56 3573.9 -112.8Q3543.5 -169.5 3543.5 -240.8Q3543.5 -312.8 3573.9 -369.6Q3604.2 -426.5 3656.9 -459.8Q3709.5 -493 3775.5 -493Q3827.5 -493 3868.5 -471.8Q3909.5 -450.5 3934.4 -413.2Q3959.2 -376 3961 -328.5V-154.5Q3959.2 -107 3934.8 -69.8Q3910.2 -32.5 3868.9 -11.2Q3827.5 10 3775.5 10ZM3800 -111Q3855 -111 3888.8 -147.6Q3922.5 -184.2 3922.5 -241.5Q3922.5 -280 3907.2 -309.4Q3892 -338.8 3864.5 -355.4Q3837 -372 3800.2 -372Q3764.2 -372 3736.8 -355.4Q3709.2 -338.8 3693.4 -309.2Q3677.5 -279.8 3677.5 -241.5Q3677.5 -203.2 3693.2 -173.8Q3709 -144.2 3736.6 -127.6Q3764.2 -111 3800 -111ZM3915.8 0V-129.8L3936.8 -247.5L3915.8 -364.2V-483H4046V0ZM4471.5 0V-276.8Q4471.5 -320 4444.5 -347.1Q4417.5 -374.2 4375.4 -374.2Q4346.8 -374.2 4324.8 -362Q4302.8 -349.8 4290.4 -327.6Q4278 -305.5 4278 -276.8L4226.8 -303.2Q4226.8 -359.5 4251.4 -402.1Q4276 -444.8 4319.4 -468.9Q4362.8 -493 4417.8 -493Q4471.2 -493 4513.1 -466.5Q4555 -440 4579 -397.2Q4603 -354.5 4603 -306V0ZM4146.5 0V-483H4278V0Z"/>
3
+ <svg x="233.3" y="106.59154929577466" width="813.5" height="106.8169014084507" viewBox="-40 -740 6016.5 790.0" aria-hidden="true">
4
+ <svg x="0" y="-700" width="1137.5" height="700" viewBox="0 0 130.0 80.0" aria-hidden="true"><g fill="#0a0a0a" stroke="#0a0a0a" stroke-width="6" stroke-linejoin="round"><polygon points="28.18,3 39.87,3 15.82,77 4.13,77"/><polygon points="58.18,3 69.87,3 45.82,77 34.13,77"/><path transform="translate(88.18,3) skewX(-18)" d="M0 0 H8 A41 37 0 0 1 8 74 H0 Z"/></g></svg>
5
+ <g transform="translate(1387.5 0)"><path fill="#0a0a0a" d="M155 0V-105H339Q411 -105 465.5 -136Q520 -167 550.5 -222.5Q581 -278 581 -351Q581 -423 550 -478Q519 -533 464.5 -564Q410 -595 339 -595H155V-700H342Q418 -700 483 -673.5Q548 -647 596.5 -599.5Q645 -552 672 -488.5Q699 -425 699 -350Q699 -276 672 -212Q645 -148 597 -100.5Q549 -53 484 -26.5Q419 0 344 0ZM76 0V-700H191V0ZM1009 10Q937 10 879.5 -22.5Q822 -55 788.5 -112Q755 -169 755 -240Q755 -311 788 -367.5Q821 -424 877.5 -457Q934 -490 1003 -490Q1070 -490 1121.5 -459Q1173 -428 1202.5 -374Q1232 -320 1232 -251Q1232 -239 1230.5 -226.5Q1229 -214 1226 -199H832V-289H1169L1128 -253Q1126 -297 1111 -327Q1096 -357 1068.5 -373Q1041 -389 1001 -389Q959 -389 928 -371Q897 -353 880 -320.5Q863 -288 863 -243Q863 -198 881 -164Q899 -130 932 -111.5Q965 -93 1008 -93Q1045 -93 1076.5 -106Q1108 -119 1130 -144L1200 -73Q1165 -32 1115 -11Q1065 10 1009 10ZM1305 0V-480H1415V0ZM1624 0V-286Q1624 -334 1594 -360.5Q1564 -387 1520 -387Q1490 -387 1466.5 -375Q1443 -363 1429 -340.5Q1415 -318 1415 -286L1372 -310Q1372 -365 1396 -405Q1420 -445 1461 -467.5Q1502 -490 1553 -490Q1604 -490 1645 -468Q1686 -446 1710 -406Q1734 -366 1734 -310V0ZM1943 0V-286Q1943 -334 1913 -360.5Q1883 -387 1839 -387Q1810 -387 1786 -375Q1762 -363 1748 -340.5Q1734 -318 1734 -286L1672 -310Q1677 -365 1704 -405Q1731 -445 1773.5 -467.5Q1816 -490 1867 -490Q1919 -490 1961 -468Q2003 -446 2028 -406Q2053 -366 2053 -310V0ZM2371 10Q2301 10 2244 -23.5Q2187 -57 2153.5 -114Q2120 -171 2120 -241Q2120 -311 2153.5 -367Q2187 -423 2244 -456.5Q2301 -490 2371 -490Q2442 -490 2499 -457Q2556 -424 2589.5 -367.5Q2623 -311 2623 -241Q2623 -171 2589.5 -114Q2556 -57 2499 -23.5Q2442 10 2371 10ZM2371 -96Q2412 -96 2443.5 -114.5Q2475 -133 2492.5 -166Q2510 -199 2510 -241Q2510 -283 2492 -315Q2474 -347 2443 -365.5Q2412 -384 2371 -384Q2331 -384 2299.5 -365.5Q2268 -347 2250.5 -315Q2233 -283 2233 -241Q2233 -199 2250.5 -166Q2268 -133 2299.5 -114.5Q2331 -96 2371 -96ZM2699 0V-480H2809V0ZM3018 0V-286Q3018 -334 2988 -360.5Q2958 -387 2914 -387Q2884 -387 2860.5 -375Q2837 -363 2823 -340.5Q2809 -318 2809 -286L2766 -310Q2766 -365 2790 -405Q2814 -445 2855 -467.5Q2896 -490 2947 -490Q2998 -490 3039 -468Q3080 -446 3104 -406Q3128 -366 3128 -310V0ZM3337 0V-286Q3337 -334 3307 -360.5Q3277 -387 3233 -387Q3204 -387 3180 -375Q3156 -363 3142 -340.5Q3128 -318 3128 -286L3066 -310Q3071 -365 3098 -405Q3125 -445 3167.5 -467.5Q3210 -490 3261 -490Q3313 -490 3355 -468Q3397 -446 3422 -406Q3447 -366 3447 -310V0ZM3746 10Q3681 10 3628.5 -23Q3576 -56 3545.5 -112.5Q3515 -169 3515 -239Q3515 -310 3545.5 -366.5Q3576 -423 3628.5 -456.5Q3681 -490 3746 -490Q3801 -490 3843.5 -466.5Q3886 -443 3911 -402Q3936 -361 3936 -309V-171Q3936 -119 3911.5 -78Q3887 -37 3844 -13.5Q3801 10 3746 10ZM3764 -94Q3825 -94 3862.5 -135Q3900 -176 3900 -240Q3900 -283 3883 -316Q3866 -349 3835.5 -367.5Q3805 -386 3764 -386Q3724 -386 3693.5 -367.5Q3663 -349 3645.5 -316Q3628 -283 3628 -240Q3628 -197 3645.5 -164Q3663 -131 3693.5 -112.5Q3724 -94 3764 -94ZM3893 0V-129L3912 -246L3893 -362V-480H4003V0ZM4439 0V-277Q4439 -325 4408.5 -356Q4378 -387 4330.2 -387Q4297.7 -387 4272.9 -373Q4248 -359 4234 -334Q4220 -309 4220 -277L4177 -301Q4177 -356 4201 -398.5Q4225 -441 4267.4 -465.5Q4309.8 -490 4363.4 -490Q4417 -490 4459 -462.5Q4501 -435 4525 -391.5Q4549 -348 4549 -301V0ZM4110 0V-480H4220V0Z"/></g>
10
6
  </svg>
11
7
  </svg>
@@ -1,4 +1,4 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="157.0 119.3 299.2 299.2" width="300" height="300">
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="-5.2 -30.2 140.4 140.4" width="300" height="300">
2
2
  <title>Demoman</title>
3
- <g fill="currentColor"><g transform="translate(5.54,56.31) scale(0.96895)"><path d="M 287.20,151.99 L 345.34,125.16 A 16,16 0 0 0 345.34,96.10 L 287.20,69.27 A 16,16 0 0 0 264.50,83.80 L 264.50,137.46 A 16,16 0 0 0 287.20,151.99 Z"/></g><rect x="264" y="224" width="83" height="83" rx="16.5"/><rect x="264" y="326" width="33" height="92.5" rx="16.5"/><rect x="314" y="326" width="33" height="92.5" rx="16.5"/></g>
3
+ <g fill="currentColor" stroke="currentColor" stroke-width="6" stroke-linejoin="round"><polygon points="28.18,3 39.87,3 15.82,77 4.13,77"/><polygon points="58.18,3 69.87,3 45.82,77 34.13,77"/><path transform="translate(88.18,3) skewX(-18)" d="M0 0 H8 A41 37 0 0 1 8 74 H0 Z"/></g>
4
4
  </svg>
@@ -9,11 +9,11 @@
9
9
  — is shared with the popup. Only this page's own rules are inline
10
10
  below. -->
11
11
  <link rel="stylesheet" href="/assets/library-inline-1ca82571.css">
12
- <script type="module" crossorigin src="/assets/library-1V4zxHu1.js"></script>
13
- <link rel="modulepreload" crossorigin href="/assets/toast-BE4O_wjA.js">
14
- <link rel="modulepreload" crossorigin href="/assets/state-CAJCdg4W.js">
12
+ <script type="module" crossorigin src="/assets/library-DWd3jUOU.js"></script>
13
+ <link rel="modulepreload" crossorigin href="/assets/toast-DqduzzQ9.js">
14
+ <link rel="modulepreload" crossorigin href="/assets/state-BS-KyCjA.js">
15
15
  <link rel="modulepreload" crossorigin href="/assets/topbar-DW2VlQMA.js">
16
- <link rel="stylesheet" crossorigin href="/assets/toast-DoOgSxra.css">
16
+ <link rel="stylesheet" crossorigin href="/assets/toast-BrkW6C03.css">
17
17
  </head>
18
18
  <body>
19
19
  <header class="topbar">
@@ -25,12 +25,12 @@
25
25
  <img class="for-light" src="/images/lockup_light.svg#svgView(viewBox(400,60,952,300))" alt="" />
26
26
  <img class="for-dark" src="/images/lockup_dark.svg#svgView(viewBox(400,60,952,300))" alt="" />
27
27
  </span>
28
- <!-- The studio's mark: demoman.io's bare figure (brand/logomark.svg
28
+ <!-- The studio's mark: demoman.io's bare mark (brand/logomark.svg
29
29
  without the disc). Hidden here, so the extension shows its
30
30
  lockup unchanged; only the studio's own sheet shows it. In an
31
31
  HTML span: the UA's [hidden] rule reaches HTML elements only,
32
32
  so an svg carrying the attribute would still render. -->
33
- <span class="figure" hidden><svg viewBox="258 120 96 302" aria-hidden="true" focusable="false"><path transform="translate(5.54,56.31) scale(0.96895)" d="M 287.20,151.99 L 345.34,125.16 A 16,16 0 0 0 345.34,96.10 L 287.20,69.27 A 16,16 0 0 0 264.50,83.80 L 264.50,137.46 A 16,16 0 0 0 287.20,151.99 Z"/><rect x="264" y="224" width="83" height="83" rx="16.5"/><rect x="264" y="326" width="33" height="92.5" rx="16.5"/><rect x="314" y="326" width="33" height="92.5" rx="16.5"/></svg></span>
33
+ <span class="figure" hidden><svg viewBox="0 0 130 80" overflow="visible" fill="currentColor" stroke="currentColor" stroke-width="6" stroke-linejoin="round" aria-hidden="true" focusable="false"><polygon points="28.18,3 39.87,3 15.82,77 4.13,77"/><polygon points="58.18,3 69.87,3 45.82,77 34.13,77"/><path transform="translate(88.18,3) skewX(-18)" d="M0 0 H8 A41 37 0 0 1 8 74 H0 Z"/></svg></span>
34
34
  </span>
35
35
  <!-- Lucide outlines (MIT), decorative beside their words. -->
36
36
  <nav class="tabs" data-tabs aria-label="Pages">
@@ -9,11 +9,11 @@
9
9
  buttons, switches, notices — is shared with the popup and the
10
10
  Recordings page. Only this page's own rules are inline below. -->
11
11
  <link rel="stylesheet" href="/assets/settings-inline-2f59fbb0.css">
12
- <script type="module" crossorigin src="/assets/settings-CUfsBYQW.js"></script>
13
- <link rel="modulepreload" crossorigin href="/assets/toast-BE4O_wjA.js">
14
- <link rel="modulepreload" crossorigin href="/assets/view-B276ZLOH.js">
12
+ <script type="module" crossorigin src="/assets/settings-DaJG9l_m.js"></script>
13
+ <link rel="modulepreload" crossorigin href="/assets/toast-DqduzzQ9.js">
14
+ <link rel="modulepreload" crossorigin href="/assets/view-DCUIuEZt.js">
15
15
  <link rel="modulepreload" crossorigin href="/assets/topbar-DW2VlQMA.js">
16
- <link rel="stylesheet" crossorigin href="/assets/toast-DoOgSxra.css">
16
+ <link rel="stylesheet" crossorigin href="/assets/toast-BrkW6C03.css">
17
17
  </head>
18
18
  <body>
19
19
  <header class="topbar">
@@ -25,12 +25,12 @@
25
25
  <img class="for-light" src="/images/lockup_light.svg#svgView(viewBox(400,60,952,300))" alt="" />
26
26
  <img class="for-dark" src="/images/lockup_dark.svg#svgView(viewBox(400,60,952,300))" alt="" />
27
27
  </span>
28
- <!-- The studio's mark: demoman.io's bare figure (brand/logomark.svg
28
+ <!-- The studio's mark: demoman.io's bare mark (brand/logomark.svg
29
29
  without the disc). Hidden here, so the extension shows its
30
30
  lockup unchanged; only the studio's own sheet shows it. In an
31
31
  HTML span: the UA's [hidden] rule reaches HTML elements only,
32
32
  so an svg carrying the attribute would still render. -->
33
- <span class="figure" hidden><svg viewBox="258 120 96 302" aria-hidden="true" focusable="false"><path transform="translate(5.54,56.31) scale(0.96895)" d="M 287.20,151.99 L 345.34,125.16 A 16,16 0 0 0 345.34,96.10 L 287.20,69.27 A 16,16 0 0 0 264.50,83.80 L 264.50,137.46 A 16,16 0 0 0 287.20,151.99 Z"/><rect x="264" y="224" width="83" height="83" rx="16.5"/><rect x="264" y="326" width="33" height="92.5" rx="16.5"/><rect x="314" y="326" width="33" height="92.5" rx="16.5"/></svg></span>
33
+ <span class="figure" hidden><svg viewBox="0 0 130 80" overflow="visible" fill="currentColor" stroke="currentColor" stroke-width="6" stroke-linejoin="round" aria-hidden="true" focusable="false"><polygon points="28.18,3 39.87,3 15.82,77 4.13,77"/><polygon points="58.18,3 69.87,3 45.82,77 34.13,77"/><path transform="translate(88.18,3) skewX(-18)" d="M0 0 H8 A41 37 0 0 1 8 74 H0 Z"/></svg></span>
34
34
  </span>
35
35
  <!-- Lucide outlines (MIT), decorative beside their words. -->
36
36
  <nav class="tabs" data-tabs aria-label="Pages">
@@ -1,5 +1,5 @@
1
1
  {
2
- "sha": "767ef683",
3
- "builtAt": "2026-11-12T17:53:45.732Z",
4
- "version": "0.9.5"
2
+ "sha": "f0790ac4",
3
+ "builtAt": "2026-11-19T07:12:10.653Z",
4
+ "version": "0.9.7"
5
5
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "demoman",
3
- "version": "0.9.5",
3
+ "version": "0.9.7",
4
4
  "description": "Polished demo videos of web apps, made by your coding agent.",
5
5
  "license": "FSL-1.1-ALv2",
6
6
  "homepage": "https://demoman.io",