1import{o as e}from"./rolldown-runtime-C0FnF6B9.js";import{i as t,n,r}from"./framework-qeFN-NPv.js";import{$ as i,Q as a,n as o,qr as s,t as c,tt as l,y as u}from"./vinext-CIxJ3jjH.js";import{t as d}from"./link-6wJPG8-O.js";import{a as f,i as p,n as m,t as h}from"./analytics-consent-CknmGs0b.js";var g=e(t(),1),_=`@vercel/analytics`,v=`1.6.1`,y=()=>{window.va||(window.va=function(...e){(window.vaq=window.vaq||[]).push(e)})};function b(){return!0}function x(){return`production`}function ee(e=`auto`){if(e===`auto`){window.vam=x();return}window.vam=e}function S(){return(b()?window.vam:x())||`production`}function C(){return S()===`development`}function w(e,t){if(!e||!t)return e;let n=e;try{let e=Object.entries(t);for(let[t,r]of e)if(!Array.isArray(r)){let e=T(r);e.test(n)&&(n=n.replace(e,`/[${t}]`))}for(let[t,r]of e)if(Array.isArray(r)){let e=T(r.join(`/`));e.test(n)&&(n=n.replace(e,`/[...${t}]`))}return n}catch{return e}}function T(e){return RegExp(`/${te(e)}(?=[/?#]|$)`)}function te(e){return e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)}function ne(e){return e.scriptSrc?e.scriptSrc:C()?`https://va.vercel-scripts.com/v1/script.debug.js`:e.basePath?`${e.basePath}/insights/script.js`:`/_vercel/insights/script.js`}function re(e={debug:!0}){var t;if(!b())return;ee(e.mode),y(),e.beforeSend&&((t=window.va)==null||t.call(window,`beforeSend`,e.beforeSend));let n=ne(e);if(document.head.querySelector(`script[src*="${n}"]`))return;let r=document.createElement(`script`);r.src=n,r.defer=!0,r.dataset.sdkn=_+(e.framework?`/${e.framework}`:``),r.dataset.sdkv=v,e.disableAutoTrack&&(r.dataset.disableAutoTrack=`1`),e.endpoint?r.dataset.endpoint=e.endpoint:e.basePath&&(r.dataset.endpoint=`${e.basePath}/insights`),e.dsn&&(r.dataset.dsn=e.dsn),r.onerror=()=>{let e=C()?`Please check if any ad blockers are enabled and try again.`:`Be sure to enable Web Analytics for your project and deploy again. See https://vercel.com/docs/analytics/quickstart for more information.`;console.log(`[Vercel Web Analytics] Failed to load script from ${n}. ${e}`)},C()&&e.debug===!1&&(r.dataset.debug=`false`),document.head.appendChild(r)}function ie({route:e,path:t}){var n;(n=window.va)==null||n.call(window,`pageview`,{route:e,path:t})}function ae(){if(!(typeof process>`u`))return{}.REACT_APP_VERCEL_OBSERVABILITY_BASEPATH}function oe(e){return(0,g.useEffect)(()=>{var t;e.beforeSend&&((t=window.va)==null||t.call(window,`beforeSend`,e.beforeSend))},[e.beforeSend]),(0,g.useEffect)(()=>{re({framework:e.framework||`react`,basePath:e.basePath??ae(),...e.route!==void 0&&{disableAutoTrack:!0},...e})},[]),(0,g.useEffect)(()=>{e.route&&e.path&&ie({route:e.route,path:e.path})},[e.route,e.path]),null}var se=()=>{let e=a(),t=l(),n=i();return e?{route:w(n,Object.keys(e).length?e:Object.fromEntries(t.entries())),path:n}:{route:null,path:n}};function ce(){if(!(typeof process>`u`))return{}.NEXT_PUBLIC_VERCEL_OBSERVABILITY_BASEPATH}function E(e){let{route:t,path:n}=se();return g.createElement(oe,{path:n,route:t,...e,basePath:ce(),framework:`next`})}function D(e){return g.createElement(g.Suspense,{fallback:null},g.createElement(E,{...e}))}var O=`@vercel/speed-insights`,k=`1.3.1`,A=()=>{window.si||(window.si=function(...e){(window.siq=window.siq||[]).push(e)})};function j(){return!0}function M(){return`production`}function N(){return M()===`development`}function P(e,t){if(!e||!t)return e;let n=e;try{let e=Object.entries(t);for(let[t,r]of e)if(!Array.isArray(r)){let e=F(r);e.test(n)&&(n=n.replace(e,`/[${t}]`))}for(let[t,r]of e)if(Array.isArray(r)){let e=F(r.join(`/`));e.test(n)&&(n=n.replace(e,`/[...${t}]`))}return n}catch{return e}}function F(e){return RegExp(`/${I(e)}(?=[/?#]|$)`)}function I(e){return e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)}function L(e){return e.scriptSrc?e.scriptSrc:N()?`https://va.vercel-scripts.com/v1/speed-insights/script.debug.js`:e.dsn?`https://va.vercel-scripts.com/v1/speed-insights/script.js`:e.basePath?`${e.basePath}/speed-insights/script.js`:`/_vercel/speed-insights/script.js`}function R(e={}){var t;if(!j()||e.route===null)return null;A();let n=L(e);if(document.head.querySelector(`script[src*="${n}"]`))return null;e.beforeSend&&((t=window.si)==null||t.call(window,`beforeSend`,e.beforeSend));let r=document.createElement(`script`);return r.src=n,r.defer=!0,r.dataset.sdkn=O+(e.framework?`/${e.framework}`:``),r.dataset.sdkv=k,e.sampleRate&&(r.dataset.sampleRate=e.sampleRate.toString()),e.route&&(r.dataset.route=e.route),e.endpoint?r.dataset.endpoint=e.endpoint:e.basePath&&(r.dataset.endpoint=`${e.basePath}/speed-insights/vitals`),e.dsn&&(r.dataset.dsn=e.dsn),N()&&e.debug===!1&&(r.dataset.debug=`false`),r.onerror=()=>{console.log(`[Vercel Speed Insights] Failed to load script from ${n}. Please check if any content blockers are enabled and try again.`)},document.head.appendChild(r),{setRoute:e=>{r.dataset.route=e??void 0}}}function z(){if(!(typeof process>`u`))return{}.REACT_APP_VERCEL_OBSERVABILITY_BASEPATH}function B(e){(0,g.useEffect)(()=>{var t;e.beforeSend&&((t=window.si)==null||t.call(window,`beforeSend`,e.beforeSend))},[e.beforeSend]);let t=(0,g.useRef)(null);return(0,g.useEffect)(()=>
1{if(t.current)e.route&&t.current(e.route);else{let n=R({framework:e.framework??`react`,basePath:e.basePath??z(),...e});n&&(t.current=n.setRoute)}},[e.route]),null}var V=()=>{let e=a(),t=l()||new URLSearchParams,n=i();return e?P(n,Object.keys(e).length?e:Object.fromEntries(t.entries())):null};function le(){if(!(typeof process>`u`))return{}.NEXT_PUBLIC_VERCEL_OBSERVABILITY_BASEPATH}function H(e){let t=V();return g.createElement(B,{route:t,...e,framework:`next`,basePath:le()})}function U(e){return g.createElement(g.Suspense,{fallback:null},g.createElement(H,{...e}))}var W=e(n(),1),G=new Set,K=new Map;function ue(){if(typeof document>`u`)return;let e=document.querySelector(`[nonce]`);if(e)return typeof HTMLElement<`u`&&e instanceof HTMLElement?e.nonce||e.getAttribute(`nonce`)||void 0:e.getAttribute(`nonce`)||void 0}function de(e,t){return typeof e==`string`&&e.length>0?e:typeof t==`string`&&t.length>0?t:ue()}function q(e){if(!e||e.length===0||typeof document>`u`)return;if(typeof W.preinit==`function`){for(let t of e)W.preinit(t,{as:`style`});return}let t=document.head;if(t)for(let n of e){let e=document.createElement(`link`);e.rel=`stylesheet`,e.type=`text/css`,e.href=n,t.appendChild(e)}}function fe(e){let t={...e.rest};return e.src&&(t.src=e.src),e.id&&(t.id=e.id),e.resolvedNonce&&(t.nonce=e.resolvedNonce),e.dangerouslySetInnerHTML&&(t.dangerouslySetInnerHTML={__html:u(J(e.dangerouslySetInnerHTML.__html),`script`)}),t}function J(e){return String(e)}function pe(e,t){if(t&&J(t.__html).length>0)return J(t.__html);if(typeof e==`string`&&e.length>0)return e;if(Array.isArray(e)&&e.every(e=>typeof e==`string`)){let t=e.join(``);return t.length>0?t:null}return null}function me(e,t,n){let r=n!==!1&&n!==`false`&&!!n;switch(t){case`async`:e.async=r;break;case`defer`:e.defer=r;break;case`noModule`:case`nomodule`:e.noModule=r;break;default:return!1}return r||(e.setAttribute(t,``),e.removeAttribute(t)),!0}function he(e,t){for(let[n,r]of Object.entries(t))n!==`dangerouslySetInnerHTML`&&r!==void 0&&(me(e,n,r)||(n===`className`&&typeof r==`string`?e.setAttribute(`class`,r):typeof r==`string`?e.setAttribute(n,r):typeof r==`boolean`&&r&&e.setAttribute(n,``)))}function ge(e,t){let{src:n,id:r,onLoad:i,onReady:a,onError:o,strategy:s=`afterInteractive`,children:c,dangerouslySetInnerHTML:l,stylesheets:u,...d}=e;q(u);let f=r??n??``;if(f&&G.has(f)){t.fireReadyWhenAlreadyLoaded&&a?.();return}if(n){let e=K.get(n);if(e){e.then(e=>{f&&G.add(f),i?.(e),a?.()},e=>o?.(e));return}}let p=document.createElement(`script`);n&&(p.src=n),r&&(p.id=r),he(p,d),t.resolvedNonce&&!p.getAttribute(`nonce`)&&p.setAttribute(`nonce`,t.resolvedNonce),s===`worker`&&p.setAttribute(`type`,`text/partytown`);let m=()=>{f&&G.add(f),a?.()};if(l?.__html)p.innerHTML=J(l.__html),m();else if(c&&typeof c==`string`)p.textContent=c,m();else if(n){let e=new Promise((e,t)=>{p.addEventListener(`load`,t=>{e(t),f&&G.add(f),i?.(t),a?.()}),p.addEventListener(`error`,e=>{t(e),o?.(e)})});e.catch(()=>void 0).finally(()=>K.delete(n)),K.set(n,e)}document.body.appendChild(p)}function Y(e){let{src:t,id:n,strategy:r=`afterInteractive`,onLoad:i,onReady:a,onError:l,children:u,dangerouslySetInnerHTML:d,stylesheets:f,...p}=e,m=(0,g.useRef)(!1),h=n??t??``,_=o(),v=de(p.nonce,_);if(c(),(0,g.useEffect)(()=>{if(m.current)return;if(m.current=!0,r===`beforeInteractive`){q(f);return}if(h&&G.has(h)){q(f),a?.();return}let e=()=>{if(h&&G.has(h)){a?.();return}ge({src:t,id:n,strategy:r,onLoad:i,onReady:a,onError:l,children:u,dangerouslySetInnerHTML:d,stylesheets:f,...p},{resolvedNonce:v,fireReadyWhenAlreadyLoaded:!0})};r===`lazyOnload`?document.readyState===`complete`?typeof requestIdleCallback==`function`?requestIdleCallback(e):setTimeout(e,1):window.addEventListener(`load`,()=>{typeof requestIdleCallback==`function`?requestIdleCallback(e):setTimeout(e,1)}):e()},[t,n,r,i,a,l,u,d,f,h,v,p]),r===`beforeInteractive`){let e=t?null:pe(u,d);return(t||e!==null)&&s()?null:g.createElement(`script`,fe({src:t,id:n,rest:p,resolvedNonce:v,dangerouslySetInnerHTML:d}),u)}return null}var X=r(),Z=`G-ZL8HG6YW99`,Q=`ga-disable-${Z}`;function $({enabled:e}){return(0,g.useEffect)(()=>{let t=window;if(e){t[Q]=!1;return}t[Q]=!0,document.querySelectorAll(`script[src*="googletagmanager.com/gtag/js?i
1d=${Z}"], script#google-analytics`).forEach(e=>{try{e.remove()}catch{}}),Array.isArray(t.dataLayer)&&(t.dataLayer.length=0)},[e]),e?(0,X.jsxs)(X.Fragment,{children:[(0,X.jsx)(Y,{async:!0,src:`https://www.googletagmanager.com/gtag/js?id=${Z}`,strategy:`afterInteractive`}),(0,X.jsx)(Y,{id:`google-analytics`,strategy:`afterInteractive`,onReady:()=>{window.dispatchEvent(new Event(h))},children:` 2 window.dataLayer = window.dataLayer || []; 3 // Always address the global explicitly. Some browsers execute this 4 // inline tag without exposing window properties as free variables, 5 // which caused dataLayer ReferenceErrors on client navigation. 6 function gtag(){window.dataLayer.push(arguments);} 7 gtag('js', new Date()); 8 // Page views are emitted by AnalyticsProvider. Disabling the 9 // automatic hit prevents GA4 enhanced measurement and App Router 10 // navigation from counting the same route more than once. 11 gtag('config', '${Z}', { send_page_view: false }); 12 `}),(0,X.jsx)(Y,{src:`https://datafa.st/js/script.js`,"data-website-id":`dfid_wpHunl5nGMvUx27JecbpA`,"data-domain":`www.gitskins.com`,strategy:`afterInteractive`}),(0,X.jsx)(D,{}),(0,X.jsx)(U,{})]}):null}function _e(){let[e,t]=(0,g.useState)(`unknown`);i(),(0,g.useEffect)(()=>{let e=()=>t(p());return e(),window.addEventListener(h,e),()=>window.removeEventListener(h,e)},[]);let[n,r]=(0,g.useState)(!1);return(0,g.useEffect)(()=>{let e=window.matchMedia(`(max-width: 640px)`),t=()=>r(e.matches);return t(),e.addEventListener(`change`,t),()=>e.removeEventListener(`change`,t)},[]),(0,X.jsxs)(X.Fragment,{children:[(0,X.jsx)($,{enabled:e===`accepted`}),e===`unknown`?(0,X.jsxs)(`aside`,{role:`dialog`,"aria-label":`Analytics preferences`,style:{position:`fixed`,zIndex:120,...n?{bottom:`max(12px, env(safe-area-inset-bottom))`,left:12,right:12,width:`auto`,padding:14}:{left:16,bottom:16,width:`min(340px, calc(100vw - 32px))`,padding:14},border:`1px solid rgba(18, 33, 26, 0.12)`,borderRadius:14,boxSizing:`border-box`,background:`rgba(255, 255, 255, 0.96)`,color:`#12211a`,boxShadow:`0 18px 50px rgba(18, 33, 26, 0.16)`,backdropFilter:`blur(18px)`},children:[(0,X.jsx)(`p`,{style:{margin:`0 0 5px`,fontSize:13,fontWeight:650},children:`Optional analytics`}),(0,X.jsxs)(`p`,{style:{margin:`0 0 10px`,color:`#4c5a52`,fontSize:12,lineHeight:1.5},children:[`Help us improve GitSkins. Your choice wonât affect access.`,` `,(0,X.jsx)(d,{href:`/privacy`,style:{color:`#15803d`,textDecoration:`underline`},children:`Privacy`})]}),(0,X.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,gap:10,flexWrap:`wrap`},children:[(0,X.jsx)(`button`,{type:`button`,onClick:()=>{f(`accepted`),t(`accepted`)},style:{flex:1,minHeight:40,border:`1px solid rgba(18, 33, 26, 0.16)`,borderRadius:9,padding:`8px 12px`,background:`#fff`,color:`#12211a`,fontSize:12,fontWeight:600,cursor:`pointer`},children:`Accept`}),(0,X.jsx)(`button`,{type:`button`,onClick:()=>{f(`rejected`),t(`rejected`)},style:{border:`1px solid rgba(18, 33, 26, 0.16)`,flex:1,minHeight:40,borderRadius:9,padding:`8px 12px`,background:`#fff`,color:`#12211a`,fontSize:12,fontWeight:600,cursor:`pointer`},children:`Decline`})]})]}):null]})}function ve(){let[e,t]=(0,g.useState)(`unknown`);return(0,g.useEffect)(()=>{let e=()=>t(p());return e(),window.addEventListener(h,e),()=>window.removeEventListener(h,e)},[]),(0,X.jsxs)(`div`,{style:{display:`flex`,flexWrap:`wrap`,gap:10,alignItems:`center`},children:[(0,X.jsx)(`button`,{type:`button`,onClick:()=>f(`accepted`),style:{border:0,borderRadius:999,padding:`10px 14px`,background:`linear-gradient(180deg, #2fbb63, #16a34a)`,color:`#fff`,fontWeight:800,cursor:`pointer`},children:`Allow analytics`}),(0,X.jsx)(`button`,{type:`button`,onClick:()=>f(`rejected`),style:{border:`1px solid var(--mk-border)`,borderRadius:999,padding:`9px 14px`,background:`var(--mk-surface)`,color:`var(--mk-ink)`,fontWeight:700,cursor:`pointer`},children:`Keep analytics off`}),(0,X.jsx)(`span`,{"aria-live":`polite`,style:{color:`var(--mk-ink-3)`,fontSize:13},children:e===`accepted`?`Analytics are on.`:e===`rejected`?`Analytics are off.`:`No choice saved yet.`}),e===`unknown`?null:(0,X.jsx)(`button`,{type:`button`,onClick:m,style:{border:0,padding:0,background:`transparent`,color:`var(--mk-blue-ink)`,fontSize:13,fontWeight:700,cursor:`pointer`},children:`Reset choice`})]})}
12export{_e as AnalyticsConsent,ve as AnalyticsPreferencesButton};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.