import{B as e,C as t,D as n,E as r,F as i,G as a,H as o,J as s,K as c,M as l,O as u,P as d,R as f,T as p,U as m,V as h,Y as g,a as _,b as v,c as y,f as b,h as x,i as S,j as C,k as w,l as T,m as E,n as D,o as O,p as k,q as A,r as j,t as M,u as N,v as P,w as F,x as I,z as L}from"./CrashPanel-Di_mLyQI.js";import{n as R,r as z,t as ee}from"./FunnelCta-xGZnT66p.js";import{i as B,n as V,r as H,t as U}from"./settings-Cj-DsjE4.js";var W=w(`<option> </option>`),G=w(`<label class="ls svelte-tsbw50"><span class="sr-only svelte-tsbw50"> </span> <select class="svelte-tsbw50"><option> </option><!></select> <span class="chev svelte-tsbw50" aria-hidden="true">▾</span></label>`);function K(t,a){A(a,!0);let u=m(``);x(async()=>{o(u,await b(),!0)});async function p(e){await k(e),location.reload()}var h=G(),_=f(h),y=f(_,!0);g(_);var S=e(_,2),C=f(S),w=f(C,!0);g(C),C.value=C.__value=``,F(e(C),16,()=>T,e=>e,(e,t)=>{var a=W(),o=f(a,!0);g(a);var s={};i(()=>{r(o,N[t]),s!==(s=t)&&(a.value=(a.__value=t)??``)}),n(e,a)}),g(S);var E;v(S),s(2),g(h),i((e,t)=>{r(y,e),r(w,t),E!==(E=d(u))&&(S.value=(S.__value=d(u))??``,I(S,d(u)))},[()=>O(`optUiLanguage`),()=>O(`optUiLanguageSystem`)]),l(`change`,S,e=>p(e.currentTarget.value)),n(t,h),c()}C([`change`]);var q=w(`<span class="badge svelte-13iyc3q"> </span>`),te=w(`<div class="row svelte-13iyc3q"><span class="name svelte-13iyc3q"><svg viewBox="0 0 24 24" width="15" height="15" fill="none" stroke="var(--ok)" stroke-width="2.4" stroke-linecap="round" stroke-linejoin="round"><polyline points="4 12 10 18 20 6"></polyline></svg> <!></span> <span class="mono size svelte-13iyc3q"> </span></div>`),ne=w(`<div class="page svelte-13iyc3q"><header class="svelte-13iyc3q"><!> <h1 class="svelte-13iyc3q"> </h1></header> <section class="svelte-13iyc3q"><div class="label svelte-13iyc3q"> </div> <div class="rows svelte-13iyc3q"></div> <p class="note svelte-13iyc3q"> </p></section> <section class="svelte-13iyc3q"><div class="label svelte-13iyc3q"> </div> <button class="toggle-row svelte-13iyc3q" role="switch"><span> </span> <span aria-hidden="true"><span class="knob svelte-13iyc3q"></span></span></button> <div class="ui-lang svelte-13iyc3q"><span> </span> <!></div></section> <section class="svelte-13iyc3q"><div class="label svelte-13iyc3q"> </div> <div class="help svelte-13iyc3q"><a class="help-link svelte-13iyc3q" target="_blank" rel="noopener"> </a> <a class="help-link svelte-13iyc3q" target="_blank" rel="noopener"> </a> <button class="help-link diag svelte-13iyc3q"> </button></div></section> <section class="svelte-13iyc3q"><!></section></div>`);function J(s,v){A(v,!0);let b=m(h({langId:H,preserveLineBreaks:!0})),C=m(`#`),w=m(`#`),T=m(!1);x(()=>{(async()=>{o(b,await U(),!0),o(C,await z(),!0),o(w,await R(),!0)})()});async function k(){o(b,await V({preserveLineBreaks:!d(b).preserveLineBreaks}),!0)}async function j(){try{let e=E.runtime.getManifest(),t=await _(),n=[`${e.name} v${e.version}`,`ui: ${y()}`,`ua: ${navigator.userAgent}`,`recent errors (${t.length}):`,...t.slice(-5).map(e=>`  ${e.t} [${e.where}] ${e.msg}`)].join(`
`);await navigator.clipboard?.writeText(n),o(T,!0),setTimeout(()=>o(T,!1),1500)}catch(e){await S(`options`,e)}}var N=u();a(L(N),{onerror:e=>S(`options`,e),failed:e=>{M(e,{})}},a=>{var o=ne(),s=f(o),c=f(s);D(c,{size:30,radius:8});var u=e(c,2),m=f(u,!0);g(u),g(s);var h=e(s,2),_=f(h),v=f(_,!0);g(_);var y=e(_,2);F(y,21,()=>B,e=>e.id,(t,a)=>{var o=te(),s=f(o),c=e(f(s)),l=e(c),u=e=>{var t=q(),a=f(t,!0);g(t),i(e=>r(a,e),[()=>O(`optLangDefault`)]),n(e,t)};p(l,e=>{d(a).id===H&&e(u)}),g(s);var m=e(s,2),h=f(m);g(m),g(o),i(e=>{r(c,` ${e??``} `),r(h,`≈ ${d(a).approxMb??``} MB`)},[()=>O(d(a).labelKey)]),n(t,o)}),g(y);var x=e(y,2),S=f(x);g(x),g(h);var E=e(h,2),A=f(E),M=f(A,!0);g(A);var N=e(A,2),I=f(N),L=f(I,!0);g(I);var R=e(I,2);let z;g(N);var V=e(N,2),U=f(V),W=f(U,!0);g(U),K(e(U,2),{}),g(V),g(E);var G=e(E,2),J=f(G),re=f(J,!0);g(J);var Y=e(J,2),X=f(Y),ie=f(X);g(X);var Z=e(X,2),ae=f(Z);g(Z);var Q=e(Z,2),oe=f(Q,!0);g(Q),g(Y),g(G);var $=e(G,2);ee(f($),{spot:`optionsCard`}),g($),g(o),i((e,n,i,a,o,s,c,l,u,f,p)=>{r(m,e),r(v,n),r(S,`${i??``} — ${a??``}`),r(M,o),P(N,`aria-checked`,d(b).preserveLineBreaks),r(L,s),z=t(R,1,`switch svelte-13iyc3q`,null,z,{on:d(b).preserveLineBreaks}),r(W,c),r(re,l),P(X,`href`,d(C)),r(ie,`${u??``} ↗`),P(Z,`href`,d(w)),r(ae,`${f??``} ↗`),r(oe,p)},[()=>O(`settings`),()=>O(`optLangHeading`),()=>O(`optLangBundled`),()=>O(`optLangMoreNote`),()=>O(`optGeneralHeading`),()=>O(`optPreserveBreaks`),()=>O(`optUiLanguage`),()=>O(`optHelpHeading`),()=>O(`optHelpLink`),()=>O(`optFeedbackLink`),()=>d(T)?O(`optCopyDiagDone`):O(`optCopyDiag`)]),l(`click`,N,k),l(`click`,Q,j),n(a,o)}),n(s,N),c()}C([`click`]),j(`options`,J);