@mushi-mushi/web 1.29.0 → 1.31.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,2266 +1,8 @@
1
- (function(){'use strict';var ga=Object.defineProperty;var Pt=(t,e)=>()=>(t&&(e=t(t=0)),e);var ks=(t,e)=>{for(var r in e)ga(t,r,{get:e[r],enumerable:true});};function ba(t){return t instanceof Uint8Array||ArrayBuffer.isView(t)&&t.constructor.name==="Uint8Array"&&"BYTES_PER_ELEMENT"in t&&t.BYTES_PER_ELEMENT===1}function Rs(t,e=""){if(typeof t!="number"){let r=e&&`"${e}" `;throw new TypeError(`${r}expected number, got ${typeof t}`)}if(!Number.isSafeInteger(t)||t<0){let r=e&&`"${e}" `;throw new RangeError(`${r}expected integer >= 0, got ${t}`)}}function Dt(t,e,r=""){let n=ba(t),s=t?.length,o=e!==void 0;if(!n||o){let a=r&&`"${r}" `,i="",l=n?`length=${s}`:`type=${typeof t}`,h=a+"expected Uint8Array"+i+", got "+l;throw n?new RangeError(h):new TypeError(h)}return t}function Cs(t){if(typeof t!="function"||typeof t.create!="function")throw new TypeError("Hash must wrapped by utils.createHasher");if(Rs(t.outputLen),Rs(t.blockLen),t.outputLen<1)throw new Error('"outputLen" must be >= 1');if(t.blockLen<1)throw new Error('"blockLen" must be >= 1')}function yt(t,e=true){if(t.destroyed)throw new Error("Hash instance has been destroyed");if(e&&t.finished)throw new Error("Hash#digest() has already been called")}function dr(t,e){Dt(t,void 0,"digestInto() output");let r=e.outputLen;if(t.length<r)throw new RangeError('"digestInto() output" expected to be of length >='+r)}function je(...t){for(let e=0;e<t.length;e++)t[e].fill(0);}function pr(t){return new DataView(t.buffer,t.byteOffset,t.byteLength)}function Le(t,e){return t<<32-e|t>>>e}function it(t,e={}){let r=(s,o)=>t(o).update(s).digest(),n=t(void 0);return r.outputLen=n.outputLen,r.blockLen=n.blockLen,r.canXOF=n.canXOF,r.create=s=>t(s),Object.assign(r,e),Object.freeze(r)}var at,hr=Pt(()=>{at=t=>({oid:Uint8Array.from([6,9,96,134,72,1,101,3,4,2,t])});});function Ts(t,e,r){return t&e^~t&r}function Is(t,e,r){return t&e^t&r^e&r}var Ot,We,ze,ie,ae,$s=Pt(()=>{hr();Ot=class{blockLen;outputLen;canXOF=false;padOffset;isLE;buffer;view;finished=false;length=0;pos=0;destroyed=false;constructor(e,r,n,s){this.blockLen=e,this.outputLen=r,this.padOffset=n,this.isLE=s,this.buffer=new Uint8Array(e),this.view=pr(this.buffer);}update(e){yt(this),Dt(e);let{view:r,buffer:n,blockLen:s}=this,o=e.length;for(let a=0;a<o;){let i=Math.min(s-this.pos,o-a);if(i===s){let l=pr(e);for(;s<=o-a;a+=s)this.process(l,a);continue}n.set(e.subarray(a,a+i),this.pos),this.pos+=i,a+=i,this.pos===s&&(this.process(r,0),this.pos=0);}return this.length+=e.length,this.roundClean(),this}digestInto(e){yt(this),dr(e,this),this.finished=true;let{buffer:r,view:n,blockLen:s,isLE:o}=this,{pos:a}=this;r[a++]=128,je(this.buffer.subarray(a)),this.padOffset>s-a&&(this.process(n,0),a=0);for(let p=a;p<s;p++)r[p]=0;n.setBigUint64(s-8,BigInt(this.length*8),o),this.process(n,0);let i=pr(e),l=this.outputLen;if(l%4)throw new Error("_sha2: outputLen must be aligned to 32bit");let h=l/4,f=this.get();if(h>f.length)throw new Error("_sha2: outputLen bigger than state");for(let p=0;p<h;p++)i.setUint32(4*p,f[p],o);}digest(){let{buffer:e,outputLen:r}=this;this.digestInto(e);let n=e.slice(0,r);return this.destroy(),n}_cloneInto(e){e||=new this.constructor,e.set(...this.get());let{blockLen:r,buffer:n,length:s,finished:o,destroyed:a,pos:i}=this;return e.destroyed=a,e.finished=o,e.length=s,e.pos=i,s%r&&e.buffer.set(n),e}clone(){return this._cloneInto()}},We=Uint32Array.from([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),ze=Uint32Array.from([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]),ie=Uint32Array.from([3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]),ae=Uint32Array.from([1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209]);});function ya(t,e=false){return e?{h:Number(t&fr),l:Number(t>>Ms&fr)}:{h:Number(t>>Ms&fr)|0,l:Number(t&fr)|0}}function Ls(t,e=false){let r=t.length,n=new Uint32Array(r),s=new Uint32Array(r);for(let o=0;o<r;o++){let{h:a,l:i}=ya(t[o],e);[n[o],s[o]]=[a,i];}return [n,s]}function De(t,e,r,n){let s=(e>>>0)+(n>>>0);return {h:t+r+(s/2**32|0)|0,l:s|0}}var fr,Ms,tn,rn,lt,ct,Bt,Nt,_s,As,Hs,Ps,Ds,Os,Bs=Pt(()=>{fr=BigInt(4294967295),Ms=BigInt(32);tn=(t,e,r)=>t>>>r,rn=(t,e,r)=>t<<32-r|e>>>r,lt=(t,e,r)=>t>>>r|e<<32-r,ct=(t,e,r)=>t<<32-r|e>>>r,Bt=(t,e,r)=>t<<64-r|e>>>r-32,Nt=(t,e,r)=>t>>>r-32|e<<64-r;_s=(t,e,r)=>(t>>>0)+(e>>>0)+(r>>>0),As=(t,e,r,n)=>e+r+n+(t/2**32|0)|0,Hs=(t,e,r,n)=>(t>>>0)+(e>>>0)+(r>>>0)+(n>>>0),Ps=(t,e,r,n,s)=>e+r+n+s+(t/2**32|0)|0,Ds=(t,e,r,n,s)=>(t>>>0)+(e>>>0)+(r>>>0)+(n>>>0)+(s>>>0),Os=(t,e,r,n,s,o)=>e+r+n+s+o+(t/2**32|0)|0;});var nn={};ks(nn,{_SHA224:()=>br,_SHA256:()=>gr,_SHA384:()=>vr,_SHA512:()=>yr,_SHA512_224:()=>wr,_SHA512_256:()=>xr,sha224:()=>ka,sha256:()=>Ea,sha384:()=>Ca,sha512:()=>Ra,sha512_224:()=>Ia,sha512_256:()=>Ta});var wa,Qe,mr,gr,br,Ns,xa,Sa,Ze,et,vt,yr,vr,ue,de,wr,xr,Ea,ka,Ra,Ca,Ta,Ia,sn=Pt(()=>{$s();Bs();hr();wa=Uint32Array.from([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),Qe=new Uint32Array(64),mr=class extends Ot{constructor(e){super(64,e,8,false);}get(){let{A:e,B:r,C:n,D:s,E:o,F:a,G:i,H:l}=this;return [e,r,n,s,o,a,i,l]}set(e,r,n,s,o,a,i,l){this.A=e|0,this.B=r|0,this.C=n|0,this.D=s|0,this.E=o|0,this.F=a|0,this.G=i|0,this.H=l|0;}process(e,r){for(let p=0;p<16;p++,r+=4)Qe[p]=e.getUint32(r,false);for(let p=16;p<64;p++){let y=Qe[p-15],u=Qe[p-2],S=Le(y,7)^Le(y,18)^y>>>3,w=Le(u,17)^Le(u,19)^u>>>10;Qe[p]=w+Qe[p-7]+S+Qe[p-16]|0;}let{A:n,B:s,C:o,D:a,E:i,F:l,G:h,H:f}=this;for(let p=0;p<64;p++){let y=Le(i,6)^Le(i,11)^Le(i,25),u=f+y+Ts(i,l,h)+wa[p]+Qe[p]|0,w=(Le(n,2)^Le(n,13)^Le(n,22))+Is(n,s,o)|0;f=h,h=l,l=i,i=a+u|0,a=o,o=s,s=n,n=u+w|0;}n=n+this.A|0,s=s+this.B|0,o=o+this.C|0,a=a+this.D|0,i=i+this.E|0,l=l+this.F|0,h=h+this.G|0,f=f+this.H|0,this.set(n,s,o,a,i,l,h,f);}roundClean(){je(Qe);}destroy(){this.destroyed=true,this.set(0,0,0,0,0,0,0,0),je(this.buffer);}},gr=class extends mr{A=We[0]|0;B=We[1]|0;C=We[2]|0;D=We[3]|0;E=We[4]|0;F=We[5]|0;G=We[6]|0;H=We[7]|0;constructor(){super(32);}},br=class extends mr{A=ze[0]|0;B=ze[1]|0;C=ze[2]|0;D=ze[3]|0;E=ze[4]|0;F=ze[5]|0;G=ze[6]|0;H=ze[7]|0;constructor(){super(28);}},Ns=Ls(["0x428a2f98d728ae22","0x7137449123ef65cd","0xb5c0fbcfec4d3b2f","0xe9b5dba58189dbbc","0x3956c25bf348b538","0x59f111f1b605d019","0x923f82a4af194f9b","0xab1c5ed5da6d8118","0xd807aa98a3030242","0x12835b0145706fbe","0x243185be4ee4b28c","0x550c7dc3d5ffb4e2","0x72be5d74f27b896f","0x80deb1fe3b1696b1","0x9bdc06a725c71235","0xc19bf174cf692694","0xe49b69c19ef14ad2","0xefbe4786384f25e3","0x0fc19dc68b8cd5b5","0x240ca1cc77ac9c65","0x2de92c6f592b0275","0x4a7484aa6ea6e483","0x5cb0a9dcbd41fbd4","0x76f988da831153b5","0x983e5152ee66dfab","0xa831c66d2db43210","0xb00327c898fb213f","0xbf597fc7beef0ee4","0xc6e00bf33da88fc2","0xd5a79147930aa725","0x06ca6351e003826f","0x142929670a0e6e70","0x27b70a8546d22ffc","0x2e1b21385c26c926","0x4d2c6dfc5ac42aed","0x53380d139d95b3df","0x650a73548baf63de","0x766a0abb3c77b2a8","0x81c2c92e47edaee6","0x92722c851482353b","0xa2bfe8a14cf10364","0xa81a664bbc423001","0xc24b8b70d0f89791","0xc76c51a30654be30","0xd192e819d6ef5218","0xd69906245565a910","0xf40e35855771202a","0x106aa07032bbd1b8","0x19a4c116b8d2d0c8","0x1e376c085141ab53","0x2748774cdf8eeb99","0x34b0bcb5e19b48a8","0x391c0cb3c5c95a63","0x4ed8aa4ae3418acb","0x5b9cca4f7763e373","0x682e6ff3d6b2b8a3","0x748f82ee5defb2fc","0x78a5636f43172f60","0x84c87814a1f0ab72","0x8cc702081a6439ec","0x90befffa23631e28","0xa4506cebde82bde9","0xbef9a3f7b2c67915","0xc67178f2e372532b","0xca273eceea26619c","0xd186b8c721c0c207","0xeada7dd6cde0eb1e","0xf57d4f7fee6ed178","0x06f067aa72176fba","0x0a637dc5a2c898a6","0x113f9804bef90dae","0x1b710b35131c471b","0x28db77f523047d84","0x32caab7b40c72493","0x3c9ebe0a15c9bebc","0x431d67c49c100d4c","0x4cc5d4becb3e42b6","0x597f299cfc657e2a","0x5fcb6fab3ad6faec","0x6c44198c4a475817"].map(t=>BigInt(t))),xa=Ns[0],Sa=Ns[1],Ze=new Uint32Array(80),et=new Uint32Array(80),vt=class extends Ot{constructor(e){super(128,e,16,false);}get(){let{Ah:e,Al:r,Bh:n,Bl:s,Ch:o,Cl:a,Dh:i,Dl:l,Eh:h,El:f,Fh:p,Fl:y,Gh:u,Gl:S,Hh:w,Hl:k}=this;return [e,r,n,s,o,a,i,l,h,f,p,y,u,S,w,k]}set(e,r,n,s,o,a,i,l,h,f,p,y,u,S,w,k){this.Ah=e|0,this.Al=r|0,this.Bh=n|0,this.Bl=s|0,this.Ch=o|0,this.Cl=a|0,this.Dh=i|0,this.Dl=l|0,this.Eh=h|0,this.El=f|0,this.Fh=p|0,this.Fl=y|0,this.Gh=u|0,this.Gl=S|0,this.Hh=w|0,this.Hl=k|0;}process(e,r){for(let M=0;M<16;M++,r+=4)Ze[M]=e.getUint32(r),et[M]=e.getUint32(r+=4);for(let M=16;M<80;M++){let g=Ze[M-15]|0,v=et[M-15]|0,b=lt(g,v,1)^lt(g,v,8)^tn(g,v,7),E=ct(g,v,1)^ct(g,v,8)^rn(g,v,7),I=Ze[M-2]|0,A=et[M-2]|0,T=lt(I,A,19)^Bt(I,A,61)^tn(I,A,6),j=ct(I,A,19)^Nt(I,A,61)^rn(I,A,6),X=Hs(E,j,et[M-7],et[M-16]),Q=Ps(X,b,T,Ze[M-7],Ze[M-16]);Ze[M]=Q|0,et[M]=X|0;}let{Ah:n,Al:s,Bh:o,Bl:a,Ch:i,Cl:l,Dh:h,Dl:f,Eh:p,El:y,Fh:u,Fl:S,Gh:w,Gl:k,Hh:_,Hl:R}=this;for(let M=0;M<80;M++){let g=lt(p,y,14)^lt(p,y,18)^Bt(p,y,41),v=ct(p,y,14)^ct(p,y,18)^Nt(p,y,41),b=p&u^~p&w,E=y&S^~y&k,I=Ds(R,v,E,Sa[M],et[M]),A=Os(I,_,g,b,xa[M],Ze[M]),T=I|0,j=lt(n,s,28)^Bt(n,s,34)^Bt(n,s,39),X=ct(n,s,28)^Nt(n,s,34)^Nt(n,s,39),Q=n&o^n&i^o&i,ee=s&a^s&l^a&l;_=w|0,R=k|0,w=u|0,k=S|0,u=p|0,S=y|0,{h:p,l:y}=De(h|0,f|0,A|0,T|0),h=i|0,f=l|0,i=o|0,l=a|0,o=n|0,a=s|0;let ge=_s(T,X,ee);n=As(ge,A,j,Q),s=ge|0;}(({h:n,l:s}=De(this.Ah|0,this.Al|0,n|0,s|0))),{h:o,l:a}=De(this.Bh|0,this.Bl|0,o|0,a|0),{h:i,l}=De(this.Ch|0,this.Cl|0,i|0,l|0),{h,l:f}=De(this.Dh|0,this.Dl|0,h|0,f|0),{h:p,l:y}=De(this.Eh|0,this.El|0,p|0,y|0),{h:u,l:S}=De(this.Fh|0,this.Fl|0,u|0,S|0),{h:w,l:k}=De(this.Gh|0,this.Gl|0,w|0,k|0),{h:_,l:R}=De(this.Hh|0,this.Hl|0,_|0,R|0),this.set(n,s,o,a,i,l,h,f,p,y,u,S,w,k,_,R);}roundClean(){je(Ze,et);}destroy(){this.destroyed=true,je(this.buffer),this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0);}},yr=class extends vt{Ah=ae[0]|0;Al=ae[1]|0;Bh=ae[2]|0;Bl=ae[3]|0;Ch=ae[4]|0;Cl=ae[5]|0;Dh=ae[6]|0;Dl=ae[7]|0;Eh=ae[8]|0;El=ae[9]|0;Fh=ae[10]|0;Fl=ae[11]|0;Gh=ae[12]|0;Gl=ae[13]|0;Hh=ae[14]|0;Hl=ae[15]|0;constructor(){super(64);}},vr=class extends vt{Ah=ie[0]|0;Al=ie[1]|0;Bh=ie[2]|0;Bl=ie[3]|0;Ch=ie[4]|0;Cl=ie[5]|0;Dh=ie[6]|0;Dl=ie[7]|0;Eh=ie[8]|0;El=ie[9]|0;Fh=ie[10]|0;Fl=ie[11]|0;Gh=ie[12]|0;Gl=ie[13]|0;Hh=ie[14]|0;Hl=ie[15]|0;constructor(){super(48);}},ue=Uint32Array.from([2352822216,424955298,1944164710,2312950998,502970286,855612546,1738396948,1479516111,258812777,2077511080,2011393907,79989058,1067287976,1780299464,286451373,2446758561]),de=Uint32Array.from([573645204,4230739756,2673172387,3360449730,596883563,1867755857,2520282905,1497426621,2519219938,2827943907,3193839141,1401305490,721525244,746961066,246885852,2177182882]),wr=class extends vt{Ah=ue[0]|0;Al=ue[1]|0;Bh=ue[2]|0;Bl=ue[3]|0;Ch=ue[4]|0;Cl=ue[5]|0;Dh=ue[6]|0;Dl=ue[7]|0;Eh=ue[8]|0;El=ue[9]|0;Fh=ue[10]|0;Fl=ue[11]|0;Gh=ue[12]|0;Gl=ue[13]|0;Hh=ue[14]|0;Hl=ue[15]|0;constructor(){super(28);}},xr=class extends vt{Ah=de[0]|0;Al=de[1]|0;Bh=de[2]|0;Bl=de[3]|0;Ch=de[4]|0;Cl=de[5]|0;Dh=de[6]|0;Dl=de[7]|0;Eh=de[8]|0;El=de[9]|0;Fh=de[10]|0;Fl=de[11]|0;Gh=de[12]|0;Gl=de[13]|0;Hh=de[14]|0;Hl=de[15]|0;constructor(){super(32);}},Ea=it(()=>new gr,at(1)),ka=it(()=>new br,at(4)),Ra=it(()=>new yr,at(3)),Ca=it(()=>new vr,at(2)),Ta=it(()=>new xr,at(6)),Ia=it(()=>new wr,at(5));});var Us={};ks(Us,{_HMAC:()=>Ut,hmac:()=>$a});var Ut,$a,Fs=Pt(()=>{hr();Ut=class{oHash;iHash;blockLen;outputLen;canXOF=false;finished=false;destroyed=false;constructor(e,r){if(Cs(e),Dt(r,void 0,"key"),this.iHash=e.create(),typeof this.iHash.update!="function")throw new Error("Expected instance of class which extends utils.Hash");this.blockLen=this.iHash.blockLen,this.outputLen=this.iHash.outputLen;let n=this.blockLen,s=new Uint8Array(n);s.set(r.length>n?e.create().update(r).digest():r);for(let o=0;o<s.length;o++)s[o]^=54;this.iHash.update(s),this.oHash=e.create();for(let o=0;o<s.length;o++)s[o]^=106;this.oHash.update(s),je(s);}update(e){return yt(this),this.iHash.update(e),this}digestInto(e){yt(this),dr(e,this),this.finished=true;let r=e.subarray(0,this.outputLen);this.iHash.digestInto(r),this.oHash.update(r),this.oHash.digestInto(r),this.destroy();}digest(){let e=new Uint8Array(this.oHash.outputLen);return this.digestInto(e),e}_cloneInto(e){e||=Object.create(Object.getPrototypeOf(this),{});let{oHash:r,iHash:n,finished:s,destroyed:o,blockLen:a,outputLen:i}=this;return e=e,e.finished=s,e.destroyed=o,e.blockLen=a,e.outputLen=i,e.oHash=r._cloneInto(e.oHash),e.iHash=n._cloneInto(e.iHash),e}clone(){return this._cloneInto()}destroy(){this.destroyed=true,this.oHash.destroy(),this.iHash.destroy();}},$a=(()=>{let t=((e,r,n)=>new Ut(e,r).update(n).digest());return t.create=(e,r)=>new Ut(e,r),t})();});var Ma=4194304,lo=1.5*1024*1024;function La(t){try{return JSON.stringify(t)}catch{return null}}function _a(t,e=Ma){let r=La(t);if(r===null)return {ok:false,bytes:0,maxBytes:e,serializeFailed:true,reason:"Report could not be serialized (circular reference in metadata?)"};let n=new TextEncoder().encode(r).length;return n<=e?{ok:true,bytes:n,maxBytes:e}:{ok:false,bytes:n,maxBytes:e,reason:`Report payload ${qs(n)} exceeds limit ${qs(e)}`}}function qs(t){return t<1024?`${t} B`:t<1024*1024?`${(t/1024).toFixed(1)} KB`:`${(t/(1024*1024)).toFixed(2)} MB`}function co(){try{let r=globalThis.crypto?.subtle;if(r&&typeof r.digest=="function"&&typeof r.importKey=="function"&&typeof r.sign=="function")return r}catch{}return null}function Tr(t){return Array.from(t).map(e=>e.toString(16).padStart(2,"0")).join("")}async function Xt(t){let e=co();if(e){let n=await e.digest("SHA-256",new TextEncoder().encode(t));return Tr(new Uint8Array(n))}let{sha256:r}=await Promise.resolve().then(()=>(sn(),nn));return Tr(r(new TextEncoder().encode(t)))}async function Aa(t,e){let r=co();if(r){let a=await r.importKey("raw",new TextEncoder().encode(t),{name:"HMAC",hash:"SHA-256"},false,["sign"]),i=await r.sign("HMAC",a,new TextEncoder().encode(e));return Tr(new Uint8Array(i))}let{hmac:n}=await Promise.resolve().then(()=>(Fs(),Us)),{sha256:s}=await Promise.resolve().then(()=>(sn(),nn)),o=n(s,new TextEncoder().encode(t),new TextEncoder().encode(e));return Tr(o)}var Ha=60*1024;function Pa(t){return {mushiBeacon:true,path:t.path,headers:t.headers,body:t.body}}function Da(t,e=typeof location<"u"?location.origin:""){if(!t)return false;if(t.startsWith("/"))return true;if(!e)return false;try{return new URL(t,e).origin===e}catch{return false}}function Oa(t){try{let e=t.startsWith("/")?new URL(t,"https://tunnel.local"):new URL(t);return `${e.pathname}${e.search}`}catch{return t}}function Ba(t){let e=t.fetchImpl??(typeof fetch=="function"?fetch:void 0);if(e)try{return e(t.url,{method:"POST",headers:{"Content-Type":"application/json",...t.headers},body:t.body,keepalive:!0}),!0}catch{}let r=t.sendBeacon??(typeof navigator<"u"?navigator.sendBeacon?.bind(navigator):void 0);if(!r||!Da(t.url))return false;let n=t.body;try{n=JSON.parse(t.body);}catch{n=t.body;}let s=JSON.stringify(Pa({path:t.path??Oa(t.url),headers:t.headers,body:n}));if(s.length>Ha)return false;try{return r(t.url,new Blob([s],{type:"application/json"}))}catch{return false}}var uo=false;function po(){uo=true;}function js(){return uo}var pn=null;function ho(){return pn?Ba(pn):false}var Ws=false,Na="X-Mushi-User-Token",Ua="X-Mushi-Project",fo="X-Mushi-SDK-Package",mo="X-Mushi-SDK-Version";function Fa(t){let e={"Content-Type":"application/json","X-Mushi-Api-Key":t.apiKey,[Ua]:t.projectId};return t.sdkPackage&&(e[fo]=t.sdkPackage),t.sdkVersion&&(e[mo]=t.sdkVersion),t.userToken&&(e[Na]=t.userToken),t.internalKind&&(e[Yt]=t.internalKind),e}var Ft="https://dxptnwrhwsqckaftyymj.supabase.co/functions/v1/api",Yt="X-Mushi-Internal",St="__mushiInternal";function qa(t,e){let r=e?.trim();return r?r.replace(/\/$/,""):(t??Ft).replace(/\/$/,"")}var ja=1e4,Wa=2,za=4,Ka=3e4,Va=1e4;function go(t){let{projectId:e,apiKey:r,apiEndpoint:n=Ft,tunnel:s,timeout:o=ja,maxRetries:a=Wa,getUserToken:i,sdkPackage:l,sdkVersion:h,circuitBreaker:f}=t,p=qa(n,s),y=f?.enabled!==false,u=Math.max(1,f?.threshold??za),S=Math.max(1e3,f?.cooldownMs??Ka),w=0,k=0,_=()=>y&&k>Date.now(),R=()=>{w=0,k=0;},M=()=>{y&&(w+=1,w>=u&&(k=Date.now()+S));};async function g(b,E,I,A=a,T,j){if(_())return {ok:false,error:{code:"CIRCUIT_OPEN",message:"Endpoint temporarily unavailable; retrying later."}};let X=`${p}${E}`,Q=new AbortController,ee=setTimeout(()=>Q.abort(),o),ge=i?.()??null,te={...Fa({apiKey:r,projectId:e,sdkPackage:l,sdkVersion:h,userToken:ge,internalKind:T}),...j},Y=I?JSON.stringify(I):void 0;Y&&b!=="GET"&&(pn={url:X,headers:te,body:Y,path:E});try{let H=await fetch(X,{method:b,headers:te,body:Y,keepalive:js(),signal:Q.signal,...T?{[St]:T}:{}});if(clearTimeout(ee),H.status===307||H.status===308){let G=H.headers.get("Location");if(G&&A>0){let Re=G.replace(/\/v1\/.*$/,"").replace(/\/$/,"");if(Re!==p)return p=Re,g(b,E,I,A-1,T,j)}}if(!H.ok){let G=await H.json().catch(()=>({}));if((H.status===401||H.status===403)&&!Ws){Ws=!0;let x=p===Ft?"Get the correct values at: https://kensaur.us/mushi-mushi/admin/projects":"Get the correct values from your Mushi console's Projects page.";console.error(`[Mushi] Credentials rejected (HTTP ${H.status}). Check your Project ID and API key scope (must be "report:write"). `+x);}let Re=H.status===429,He=H.status>=500||Re,we=Re?Ga(H.headers.get("Retry-After")):null,$=we===null||we<=Va;return He&&A>0&&$?(await zs(we??Ks(a-A)),g(b,E,I,A-1,T,j)):(He?M():R(),{ok:!1,error:{code:G.error?.code||`HTTP_${H.status}`,message:G.error?.message||G.message||`HTTP ${H.status} error`,status:H.status}})}let L=await H.json(),se=L&&typeof L=="object"&&"ok"in L&&"data"in L?L.data:L;return R(),{ok:!0,data:se}}catch(H){return clearTimeout(ee),A>0&&Xa(H)?(await zs(Ks(a-A)),g(b,E,I,A-1,T,j)):(M(),{ok:false,error:{code:"NETWORK_ERROR",message:H instanceof Error?H.message:"Unknown network error"}})}}async function v(b,E,I,A){let T=await Xt(I),j=String(Date.now()),X=await Aa(r,`${e}.${j}.${T}`),Q=`${p}${E}`,ee=await fetch(Q,{method:b,headers:{"Content-Type":"application/json","X-Mushi-Api-Key":r,"X-Mushi-Project":e,...l?{[fo]:l}:{},...h?{[mo]:h}:{},[Yt]:"reporter-poll","X-Reporter-Token-Hash":T,"X-Reporter-Ts":j,"X-Reporter-Hmac":X},body:A?JSON.stringify(A):void 0,keepalive:js(),[St]:"reporter-poll"});if(!ee.ok){let te=await ee.json().catch(()=>({}));return {ok:false,error:{code:`HTTP_${ee.status}`,message:te.error?.message??te.message??`HTTP ${ee.status} error`}}}let ge=await ee.json();return {ok:true,data:ge.data??ge}}return {async submitReport(b){let E=_a(b);return E.ok?g("POST","/v1/reports",b,a,"report-submit"):{ok:false,error:{code:E.serializeFailed?"SERIALIZE_FAILED":"PAYLOAD_TOO_LARGE",message:E.reason??"Report payload exceeds size limit"}}},async getReportStatus(b){return g("GET",`/v1/reports/${b}/status`,void 0,a,"report-status")},async getSdkConfig(){return g("GET","/v1/sdk/config",void 0,a,"sdk-config")},async askAssistant(b){return g("POST","/v1/sdk/assistant",{message:b.message,threadId:b.threadId??null,context:b.context??null},1,"community")},async getLatestSdkVersion(b){let E=new URLSearchParams({package:b}).toString();return g("GET",`/v1/sdk/latest-version?${E}`,void 0,a,"sdk-config")},async postDiscoveryEvent(b){return g("POST","/v1/sdk/discovery",b,1,"discovery")},async listReporterReports(b){return v("GET","/v1/reporter/reports",b)},async listReporterComments(b,E){return v("GET",`/v1/reporter/reports/${b}/comments`,E)},async replyToReporterReport(b,E,I,A){return v("POST",`/v1/reporter/reports/${b}/reply`,E,{body:I,...A?{feedback_signal:A}:{}})},async reopenReporterReport(b,E,I){return v("POST",`/v1/reporter/reports/${b}/reopen`,E,{note:I??""})},async listNotifications(b,E){let I=new URLSearchParams;E?.since&&I.set("since",E.since),E?.limit&&I.set("limit",String(E.limit));let A=I.size?`?${I.toString()}`:"";return v("GET",`/v1/notifications${A}`,b)},async markNotificationRead(b,E){return v("POST",`/v1/notifications/${b}/read`,E,{})},async listReporterFeatureBoard(b){return v("GET","/v1/reporter/feature-board",b)},async voteReporterFeatureBoard(b,E){return v("POST",`/v1/reporter/feature-board/${b}/vote`,E,{})},async postSessionEvent(b){return g("POST","/v1/sdk/session",b,1,"discovery")},async postProductEvents(b){return g("POST","/v1/sdk/events",b,1,"discovery")},async submitActivity(b,E,I){return g("POST","/v1/sdk/activity",{user_id:b,user_traits:I?.userTraits,opted_in:I?.optedIn,reporter_token_hash:I?.reporterTokenHash,...I?.hostJwt?{host_jwt:I.hostJwt}:{},events:E},1,"discovery")},async getMyPoints(b){return g("GET",`/v1/sdk/me/points?userId=${encodeURIComponent(b)}`,void 0,1,"reporter-poll")},async getMyTier(b){return g("GET",`/v1/sdk/me/tier?userId=${encodeURIComponent(b)}`,void 0,1,"reporter-poll")},async getMyHistory(b,E){let I=new URLSearchParams({userId:b,...E?.limit?{limit:String(E.limit)}:{}});return g("GET",`/v1/sdk/me/history?${I}`,void 0,1,"reporter-poll")},async getHallOfFame(b=10){return g("GET",`/v1/sdk/hall-of-fame?limit=${b}`,void 0,1,"reporter-poll")},async sendMagicLink(b){return g("POST","/v1/tester/magic-link",{email:b},1,"community")},async linkReporterToken(b,E){return g("POST","/v1/tester/link-reporter",{reporter_token_hash:b},1,"community",{Authorization:`Bearer ${E}`})},async getCrossAppReports(b,E){let I=new URLSearchParams;E?.limit&&I.set("limit",String(E.limit)),E?.offset&&I.set("offset",String(E.offset));let A=I.size?`?${I.toString()}`:"";return g("GET",`/v1/tester/cross-app-reports${A}`,void 0,1,"community",{Authorization:`Bearer ${b}`})},async getMyReputation(b){return g("GET","/v1/tester/reputation",void 0,1,"community",{Authorization:`Bearer ${b}`})},async getPublicLeaderboard(b=20){return g("GET",`/v1/public/tester-leaderboard?limit=${b}`,void 0,1,"reporter-poll")},async getTesterStatus(b){return g("GET","/v1/me/tester-status",void 0,1,"community",{Authorization:`Bearer ${b}`})}}}function zs(t){return new Promise(e=>setTimeout(e,t))}function Ks(t){return Math.min(1e3*2**t+Math.random()*500,1e4)}function Ga(t,e=Date.now()){if(!t)return null;let r=t.trim();if(!r)return null;let n=Number(r);if(Number.isFinite(n))return n<0?null:n*1e3;let s=Date.parse(r);return Number.isNaN(s)?null:Math.max(s-e,0)}function Xa(t){return t instanceof DOMException&&t.name==="AbortError"||t instanceof TypeError}function on(t,e){if(!t||!e||e.length===0)return false;for(let r of e){if(typeof r=="string"){if(t.includes(r))return true;continue}try{if(r.test(t))return !0}catch{}}return false}function Jt(t){if(on(t.message,t.ignoreErrors))return true;let e=t.filename?.trim()||"";return !!(e&&on(e,t.denyUrls)||t.allowUrls&&t.allowUrls.length>0&&(!e||!on(e,t.allowUrls)))}function an(...t){return t.find(e=>e!==void 0&&e!=="")}function Te(t){try{let e=undefined;return typeof e=="object"&&e!==null?e[t]:void 0}catch{return}}function Ke(t){try{return t()}catch{return}}function Sn(){let t=an(Te("VITE_MUSHI_PROJECT_ID"),Te("NEXT_PUBLIC_MUSHI_PROJECT_ID"),Te("NUXT_PUBLIC_MUSHI_PROJECT_ID"),Te("EXPO_PUBLIC_MUSHI_PROJECT_ID"),Ke(()=>process.env.NEXT_PUBLIC_MUSHI_PROJECT_ID),Ke(()=>process.env.EXPO_PUBLIC_MUSHI_PROJECT_ID),Ke(()=>process.env.MUSHI_PROJECT_ID)),e=an(Te("VITE_MUSHI_API_KEY"),Te("NEXT_PUBLIC_MUSHI_API_KEY"),Te("NUXT_PUBLIC_MUSHI_API_KEY"),Te("EXPO_PUBLIC_MUSHI_API_KEY"),Ke(()=>process.env.NEXT_PUBLIC_MUSHI_API_KEY),Ke(()=>process.env.EXPO_PUBLIC_MUSHI_API_KEY),Ke(()=>process.env.MUSHI_API_KEY)),r=an(Te("VITE_MUSHI_API_ENDPOINT"),Te("NEXT_PUBLIC_MUSHI_API_ENDPOINT"),Te("NUXT_PUBLIC_MUSHI_API_ENDPOINT"),Te("EXPO_PUBLIC_MUSHI_API_ENDPOINT"),Ke(()=>process.env.NEXT_PUBLIC_MUSHI_API_ENDPOINT),Ke(()=>process.env.EXPO_PUBLIC_MUSHI_API_ENDPOINT),Ke(()=>process.env.MUSHI_API_ENDPOINT)),n={};return t&&(n.projectId=t),e&&(n.apiKey=e),r&&(n.apiEndpoint=r),n}var Ya=["VITE_","NEXT_PUBLIC_","NUXT_PUBLIC_","EXPO_PUBLIC_",""],Ja={projectId:"MUSHI_PROJECT_ID",apiKey:"MUSHI_API_KEY"};function bo(){let t=Sn(),e=[];if(t.projectId||e.push("projectId"),t.apiKey||e.push("apiKey"),e.length===0)return {resolved:t,missing:e,nearMisses:[],message:null};let r=(()=>{try{let i=undefined;return typeof i=="object"&&i!==null?i:null}catch{return null}})(),n=(()=>{try{return typeof process<"u"&&process.env?process.env:null}catch{return null}})(),s=[];for(let i of e)for(let l of Ya){let h=`${l}${Ja[i]}`;r&&r[h]?s.push({field:i,key:h,via:"import.meta.env"}):n&&n[h]&&s.push({field:i,key:h,via:"process.env"});}let o=r?"VITE_MUSHI_*":"NEXT_PUBLIC_MUSHI_* (Next.js), EXPO_PUBLIC_MUSHI_* (Expo), or MUSHI_* (Node / React Native)",a=[`[mushi] Missing ${e.join(" and ")} \u2014 the SDK will not initialize.`];for(let i of s)a.push(`[mushi] Found ${i.key} in ${i.via}, but this runtime did not resolve it \u2014 it is either the wrong prefix for your bundler or not exposed to the client bundle.`);return a.push(`[mushi] This runtime reads: ${o}. Set the matching variable(s) and restart your dev server.`),s.length===0&&a.push("[mushi] If you already set the variable, check the prefix: a mis-prefixed var is stripped from client bundles and resolves to undefined with no error."),{resolved:t,missing:e,nearMisses:s,message:a.join(`
2
- `)}}var Vs=["production-calm","beta-loud","internal-debug","manual-only","minimal","standard","full"],Qa=["projectId","apiKey","apiEndpoint","tunnel","timeout","maxRetries","circuitBreaker","preset","runtimeConfig","analytics","trackSessions","sentry","widget","capture","privacy","proactive","preFilter","integrations","offline","rewards","assistant","debug","enabled","appVersion","sampleRate","replaySampleRate","replaysOnErrorSampleRate","beforeSend","beforeSendFeedback","ignoreErrors","denyUrls","allowUrls","onCrashedLastRun"];function Za(t){switch(t){case "manual-only":return {widget:{trigger:"manual",outdatedBanner:"console-only"},capture:{console:true,network:true,performance:false,screenshot:"on-report",elementSelector:false},proactive:{rageClick:false,longTask:false,apiCascade:false,errorBoundary:false}};case "beta-loud":return {widget:{trigger:"auto",outdatedBanner:"banner"},capture:{console:true,network:true,performance:true,screenshot:"auto",elementSelector:true},proactive:{rageClick:true,longTask:true,apiCascade:true,errorBoundary:true}};case "internal-debug":return {widget:{trigger:"auto",outdatedBanner:"banner",brandFooter:true},capture:{console:true,network:true,performance:true,screenshot:"auto",elementSelector:true},proactive:{rageClick:true,longTask:true,apiCascade:true,errorBoundary:true,cooldown:{maxProactivePerSession:10,dismissCooldownHours:0,suppressAfterDismissals:99}}};case "production-calm":return {widget:{trigger:"auto",outdatedBanner:"console-only"},capture:{console:true,network:true,performance:false,screenshot:"on-report",elementSelector:false},proactive:{rageClick:false,longTask:false,apiCascade:false,errorBoundary:false}};case "minimal":return {widget:{trigger:"auto"},capture:{console:true,network:false,performance:false,screenshot:"on-report",replay:"off",elementSelector:false},proactive:{rageClick:false,longTask:false,apiCascade:false,errorBoundary:false}};case "full":return {widget:{trigger:"auto"},capture:{console:true,network:true,performance:true,screenshot:"auto",replay:"lite",elementSelector:true},proactive:{rageClick:true,longTask:true,apiCascade:true,errorBoundary:true}};default:return}}function yo(t){let e=Za(t.preset);return e?{...t,widget:{...e.widget,...t.widget},capture:{...e.capture,...t.capture},proactive:{...e.proactive,...t.proactive,cooldown:{...e.proactive?.cooldown,...t.proactive?.cooldown}}}:t}function el(){let t=e=>e==="1"||e==="true";try{if(typeof process<"u"&&process.env&&t(process.env.MUSHI_SILENT))return !0}catch{}try{let e=undefined;if(e&&typeof e=="object"&&(t(e.MUSHI_SILENT)||t(e.VITE_MUSHI_SILENT)))return !0}catch{}return false}function vo(t){try{if(el()||!t||typeof t!="object")return;let e=Object.keys(t).filter(r=>!Qa.includes(r));e.length>0&&console.error(`[mushi] Unknown config key${e.length>1?"s":""}: ${e.map(r=>`\`${r}\``).join(", ")} \u2014 check for typos (see MushiConfig). Ignored.`),t.preset!==void 0&&!Vs.includes(t.preset)&&console.error(`[mushi] Unknown preset \`${String(t.preset)}\` \u2014 expected one of ${Vs.map(r=>`'${r}'`).join(", ")}. Preset ignored.`);}catch{}}var tl=10,rl=2e3,nl=[/^(.)\1{10,}$/,/^[A-Z\s!?]{20,}$/,/^[\d\s]+$/,/^[^a-zA-Z\u00C0-\u024F\u4E00-\u9FFF\u3040-\u309F\u30A0-\u30FF]{10,}$/,/^(asdf|qwerty|lorem ipsum)[.,!?\s]*$/i],sl=/^[bcdfghjklmnpqrstvwxz]{6,}/i;function wo(t={}){let{enabled:e=true,blockObviousSpam:r=true,minDescriptionLength:n=tl,maxDescriptionLength:s=rl}=t;function o(i){if(!e)return {passed:true};let l=i.trim();if(l.length<n)return {passed:false,reason:`Too short (min ${n} characters)`};if(l.length>s)return {passed:false,reason:`Too long (max ${s} characters)`};if(r){for(let f of nl)if(f.test(l))return {passed:false,reason:"Detected as spam"};if(sl.test(l))return {passed:false,reason:"Detected as gibberish"};if(l.split(/\s+/).filter(f=>f.length>1).length<2)return {passed:false,reason:"Description needs at least 2 words"}}return {passed:true}}function a(i){let l=i.trim();return l.length<=s?l:l.slice(0,s)+"..."}return {check:o,truncate:a}}var Gs={debug:10,info:20,warn:30,error:40,fatal:50,silent:99},ol={debug:"DBG",info:"INF",warn:"WRN",error:"ERR",fatal:"FTL"},ye={reset:"\x1B[0m",dim:"\x1B[2m",bold:"\x1B[1m",cyan:"\x1B[36m",green:"\x1B[32m",yellow:"\x1B[33m",red:"\x1B[31m",white:"\x1B[37m",bgRed:"\x1B[41m"},il={debug:ye.dim,info:ye.green,warn:ye.yellow,error:ye.red,fatal:`${ye.bgRed}${ye.white}${ye.bold}`};function al(){try{if(typeof globalThis.Deno<"u")return "json"}catch{}let t=typeof globalThis.process<"u"?globalThis.process:void 0;if(t?.env){if(t.env.NODE_ENV==="production"||t.env.LOG_FORMAT==="json")return "json";if(t.env.LOG_FORMAT==="pretty"||t.stdout?.isTTY)return "pretty"}return typeof globalThis.window<"u"?"pretty":"json"}function ll(t){let e=[];for(let[r,n]of Object.entries(t))n!=null&&(typeof n=="object"?e.push(`${r}=${JSON.stringify(n)}`):e.push(`${r}=${String(n)}`));return e.join(" ")}function cl(t){let{ts:e,level:r,scope:n,msg:s,...o}=t,a=e.slice(11,23),i=il[r]??"",l=ol[r]??r.toUpperCase(),h=Object.keys(o).length>0?` ${ye.dim}${ll(o)}${ye.reset}`:"";return `${ye.dim}${a}${ye.reset} ${i}${l}${ye.reset} ${ye.cyan}[${n}]${ye.reset} ${s}${h}`}function ul(t){return JSON.stringify(t)}function dl(t){return t==="stderr"?(e,r)=>{console.error(r);}:(e,r)=>{switch(e){case "error":case "fatal":console.error(r);break;case "warn":console.warn(r);break;default:console.log(r);}}}function xo(t,e,r,n,s){let o=e;function a(i,l,h){if(Gs[i]<Gs[o])return;let f={ts:new Date().toISOString(),level:i,scope:t,msg:l,...r,...h};s(i,n(f));}return {debug:(i,l)=>a("debug",i,l),info:(i,l)=>a("info",i,l),warn:(i,l)=>a("warn",i,l),error:(i,l)=>a("error",i,l),fatal:(i,l)=>a("fatal",i,l),child(i,l){return xo(`${t}:${i}`,o,{...r,...l},n,s)},setLevel(i){o=i;}}}function kt(t){let{scope:e,level:r="info",meta:n={},format:s="auto",destination:o="stdout"}=t,i=(s==="auto"?al():s)==="json"?ul:cl,l=dl(o);return xo(e,r,n,i,l)}var En={debug:()=>{},info:()=>{},warn:()=>{},error:()=>{},fatal:()=>{},child:()=>En,setLevel:()=>{}},pl="mushi-mushi-keyring",ut="keys",So="offline-queue/v1",Sr=null,Er=null;function hl(){return typeof globalThis<"u"&&typeof globalThis.crypto<"u"&&typeof globalThis.crypto.subtle<"u"&&typeof indexedDB<"u"}function Eo(){return new Promise((t,e)=>{let r=indexedDB.open(pl,1);r.onupgradeneeded=()=>{try{let n=r.result;if(!n)return;n.objectStoreNames.contains(ut)||n.createObjectStore(ut);}catch{}},r.onsuccess=()=>{let n=r.result;if(!n||!n.objectStoreNames.contains(ut)){try{n?.close();}catch{}e(new Error("key object store unavailable"));return}t(n);},r.onerror=()=>e(r.error);})}async function fl(){let t=await Eo();return new Promise((e,r)=>{let s=t.transaction(ut,"readonly").objectStore(ut).get(So);s.onsuccess=()=>e(s.result??null),s.onerror=()=>r(s.error);})}async function ml(t){let e=await Eo();return new Promise((r,n)=>{let s=e.transaction(ut,"readwrite");s.objectStore(ut).put(t,So),s.oncomplete=()=>r(),s.onerror=()=>n(s.error);})}async function ko(){if(Sr)return Sr;if(Er)return Er;if(!hl())throw new Error("Web Crypto + IndexedDB required for offline queue encryption");return Er=(async()=>{let t=await fl();if(t)return Sr=t,t;let e=await crypto.subtle.generateKey({name:"AES-GCM",length:256},false,["encrypt","decrypt"]);return await ml(e),Sr=e,e})(),Er}function Xs(t){let e="";for(let r of t)e+=String.fromCharCode(r);return btoa(e)}function Ys(t){let e=atob(t),r=new Uint8Array(new ArrayBuffer(e.length));for(let n=0;n<e.length;n++)r[n]=e.charCodeAt(n);return r}async function gl(t){let e=await ko(),r=crypto.getRandomValues(new Uint8Array(12)),n=new TextEncoder().encode(JSON.stringify(t)),s=new Uint8Array(await crypto.subtle.encrypt({name:"AES-GCM",iv:r},e,n));return {_mme:1,iv:Xs(r),ct:Xs(s)}}function bl(t){return !!t&&typeof t=="object"&&t._mme===1&&typeof t.iv=="string"&&typeof t.ct=="string"}async function yl(t){let e=await ko(),r=Ys(t.iv),n=Ys(t.ct),s=await crypto.subtle.decrypt({name:"AES-GCM",iv:r},e,n);return JSON.parse(new TextDecoder().decode(s))}var Ie=kt({scope:"mushi:queue",level:"warn"}),vl="mushi-mushi",me="offline-reports",wl=1,ln="mushi_offline_queue",xl=10,Sl=6e4,El=3e4,kl=8,Rl=1440*60*1e3;function Ro(t={}){let{enabled:e=true,maxQueueSize:r=50,syncOnReconnect:n=true,encryptAtRest:s=true}=t,o=null,a=null,i=null,l=null,h=null;async function f($){let x=new Date().toISOString();if(!s)return {...$,queuedAt:x};try{let P=await gl($);return {id:$.id,queuedAt:x,payload:P}}catch(P){return Ie.warn("Offline queue: encryption failed, storing plaintext",{err:String(P)}),{...$,queuedAt:x}}}async function p($){if(y($))try{return await yl($.payload)}catch(x){return Ie.warn("Offline queue: decrypt failed, dropping row",{err:String(x),id:$.id}),null}return $}function y($){return !!$.payload&&bl($.payload)}function u($){let x=$.attempts;return typeof x=="number"&&Number.isFinite(x)?x:0}function S($,x){let P=$.queuedAt;if(!P)return false;let B=Date.parse(P);return Number.isNaN(B)?false:x-B>Rl}function w(){return i||(typeof indexedDB<"u"?i="indexeddb":typeof localStorage<"u"?i="localstorage":i="none",i)}function k(){return new Promise(($,x)=>{let P=indexedDB.open(vl,wl);P.onupgradeneeded=()=>{try{let B=P.result;if(!B)return;B.objectStoreNames.contains(me)||B.createObjectStore(me,{keyPath:"id"});}catch{}},P.onsuccess=()=>{let B=P.result;if(!B||!B.objectStoreNames.contains(me)){i="localstorage";try{B?.close();}catch{}x(new Error("queue object store unavailable"));return}$(B);},P.onerror=()=>{i="localstorage",x(P.error);};})}async function _($){let x=await k(),P=await f($);return new Promise((B,U)=>{let W=x.transaction(me,"readwrite");W.objectStore(me).put(P),W.oncomplete=()=>B(),W.onerror=()=>U(W.error);})}async function R(){let $=await k();return new Promise((x,P)=>{let U=$.transaction(me,"readonly").objectStore(me).getAll();U.onsuccess=()=>x(U.result),U.onerror=()=>P(U.error);})}async function M($){let x=await k();return new Promise((P,B)=>{let U=x.transaction(me,"readwrite");U.objectStore(me).delete($),U.oncomplete=()=>P(),U.onerror=()=>B(U.error);})}async function g($){let x=await k();return new Promise((P,B)=>{let U=x.transaction(me,"readwrite");U.objectStore(me).put($),U.oncomplete=()=>P(),U.onerror=()=>B(U.error);})}async function v(){let $=await k();return new Promise((x,P)=>{let U=$.transaction(me,"readonly").objectStore(me).count();U.onsuccess=()=>x(U.result),U.onerror=()=>P(U.error);})}async function b(){let $=await k();return new Promise((x,P)=>{let B=$.transaction(me,"readwrite");B.objectStore(me).clear(),B.oncomplete=()=>x(),B.onerror=()=>P(B.error);})}function E(){try{let $=localStorage.getItem(ln);return $?JSON.parse($):[]}catch{return []}}function I($){try{localStorage.setItem(ln,JSON.stringify($));}catch{}}async function A($){let x=E(),P=await f($),B=x.findIndex(U=>U.id===$.id);B>=0?x[B]=P:x.push(P),I(x);}function T($){let x=E().filter(P=>P.id!==$);I(x);}function j($){let x=E(),P=x.findIndex(B=>B.id===$.id);P>=0&&(x[P]=$,I(x));}async function X($,x){try{$==="indexeddb"?await M(x):T(x);}catch(P){Ie.debug("Offline queue: row removal failed (will age out)",{id:x,err:String(P)});}}async function Q($,x){try{return $==="indexeddb"?await g(x):j(x),!0}catch(P){return Ie.debug("Offline queue: row persist failed",{id:x.id,err:String(P)}),false}}async function ee(){let $=w();if($==="none")return {backend:$,rows:[]};if($==="indexeddb")try{return {backend:$,rows:await R()}}catch{i="localstorage";}return {backend:"localstorage",rows:E()}}async function ge($){let x=w();if(x==="none")return Ie.debug("Offline queue: no storage backend, dropping report",{id:$.id}),x;if(x==="indexeddb")try{return await _($),x}catch{i="localstorage";}return await A($),"localstorage"}async function te($){if(!e)return;if(await G()>=r){Ie.warn("Offline queue full \u2014 dropping report",{maxQueueSize:r});return}await ge($);}function Y($){return Math.min(1e3*2**$+Math.random()*500,Sl)}function H($){return new Promise(x=>setTimeout(x,$))}async function L($){let{backend:x,rows:P}=await ee(),B=P,U=Date.now(),W=[];for(let oe of B)if(S(oe,U)){let Se=oe.id;await X(x,Se),Ie.debug("Offline queue: evicting stale report",{id:Se});}else W.push(oe);B=W;let Pe=B.slice(0,xl),xe=0,J=0;for(let oe=0;oe<Pe.length;oe++){let Se=Pe[oe],fe=Se.id,ot=await p(Se);if(!ot){await X(x,fe),J++;continue}let q=await $.submitReport(ot);if(q.ok){await X(x,fe),xe++;continue}if(J++,q.error?.code==="CIRCUIT_OPEN"){Ie.debug("Offline queue: circuit open, deferring the rest of the batch",{id:fe,remaining:Pe.length-oe});break}let Ye=q.error?.code==="HTTP_400"||q.error?.code==="HTTP_413"||q.error?.code==="HTTP_422"||q.error?.code==="INGEST_ERROR"||q.error?.code==="VALIDATION_ERROR"||q.error?.code==="PAYLOAD_TOO_LARGE"||q.error?.code==="SERIALIZE_FAILED"||typeof q.error?.message=="string"&&/invalid payload|description must be at least|validation/i.test(q.error.message),Ce=!Ye&&(q.error?.code==="NETWORK_ERROR"||q.error?.code==="HTTP_403"||q.error?.code==="HTTP_429"||q.error?.code==="HTTP_502"||q.error?.code==="HTTP_503"||q.error?.code==="HTTP_504"||typeof q.error?.code=="string"&&q.error.code.startsWith("HTTP_5"));if(Ye)await X(x,fe);else {let Ue=u(Se)+1;Ue>=kl?(await X(x,fe),Ie.warn("Offline queue: giving up on report after repeated failures",{id:fe,attempts:Ue,code:q.error?.code})):(Se.attempts=Ue,await Q(x,Se)?Ie.debug("Offline queue: delivery failed, will retry",{id:fe,attempts:Ue,code:q.error?.code,classified:Ce?"transient":"unclassified"}):(await X(x,fe),Ie.warn("Offline queue: dropping report (attempt counter unpersistable)",{id:fe,code:q.error?.code})));}oe<Pe.length-1&&await H(Y(oe));}return {sent:xe,failed:J}}function se($){if(!e)return Promise.resolve({sent:0,failed:0});if(l)return h||(h=l.catch(()=>{}).then(()=>(h=null,se($)))),h;let x=L($).finally(()=>{l===x&&(l=null);});return l=x,x}async function G(){if(w()==="indexeddb")try{return await v()}catch{i="localstorage";}return E().length}async function Re(){if(w()==="indexeddb")try{await b();}catch{}try{localStorage.removeItem(ln);}catch{}}function He($){if(!e||!n||typeof window>"u")return;o&&we();let x=()=>{navigator.onLine&&se($).catch(P=>{Ie.warn("Offline queue auto-flush failed",{err:String(P)});});};window.addEventListener("online",x),a=setInterval(()=>{G().then(P=>{P>0&&x();});},El),o=()=>{window.removeEventListener("online",x),a&&(clearInterval(a),a=null);};}function we(){o?.(),o=null;}return {enqueue:te,flush:se,size:G,clear:Re,startAutoSync:He,stopAutoSync:we}}function kn(){let t=typeof navigator<"u"?navigator:void 0,e=typeof window<"u"?window:void 0,r=typeof document<"u"?document:void 0,n=typeof screen<"u"?screen:void 0;Tl(t);let s=t&&"connection"in t?t.connection:void 0,o=e,a=!!o?.Capacitor,i=!!o?.cordova,l=t?.product==="ReactNative"||typeof globalThis.HermesInternal<"u",h=a||i||l?{...a?{capacitor:true}:{},...i?{cordova:true}:{},...l?{reactNative:true}:{}}:void 0;return {userAgent:t?.userAgent??"unknown",platform:t?.platform??"unknown",language:t?.language??"en",viewport:{width:e?.innerWidth??0,height:e?.innerHeight??0},url:e?.location?.href??"",referrer:r?.referrer??"",timestamp:new Date().toISOString(),timezone:Intl?.DateTimeFormat?.()?.resolvedOptions?.()?.timeZone??"UTC",connection:s?{effectiveType:s.effectiveType,downlink:s.downlink,rtt:s.rtt}:void 0,deviceMemory:t?.deviceMemory,hardwareConcurrency:t?.hardwareConcurrency,route:e?.location?.pathname,nearestTestid:Cl(r),userAgentData:$l(t),screen:Ml(n,e),prefersColorScheme:Ll(e),prefersReducedMotion:$e(e,"(prefers-reduced-motion: reduce)"),prefersReducedData:$e(e,"(prefers-reduced-data: reduce)"),prefersContrast:_l(e),forcedColors:$e(e,"(forced-colors: active)"),online:typeof t?.onLine=="boolean"?t.onLine:void 0,displayMode:Al(e),documentTitle:r?.title?.slice(0,200),buildId:Hl(r),pageLoadTiming:Pl(e),...h?{native:h}:{}}}function Cl(t){if(!t)return;let e=t.activeElement??null,r=0;for(;e&&r<20;){let n=e.getAttribute?.("data-testid");if(n)return n;e=e.parentElement,r++;}}var _e=null,Js=false;function Tl(t){if(Js)return;let e=t?.userAgentData;e?.getHighEntropyValues&&(Js=true,e.getHighEntropyValues(["architecture","bitness","model","platformVersion","uaFullVersion","fullVersionList"]).then(r=>{_e=r;}).catch(()=>{}));}function Il(t){if(!t?.length)return;let e=t.filter(n=>!/not.?a.?brand/i.test(n.brand));return e.length===0?void 0:e.find(n=>!/chromium|google chrome/i.test(n.brand))??e[0]}function $l(t){let e=t?.userAgentData;if(!e&&!_e)return;let r=_e?.fullVersionList,n=Il(r??e?.brands),s={};return n&&(s.browser=n.brand,s.browserVersion=n.version),e?.platform&&(s.os=e.platform),_e?.platformVersion&&(s.osVersion=_e.platformVersion),typeof e?.mobile=="boolean"&&(s.mobile=e.mobile),_e?.model&&(s.model=_e.model),_e?.architecture&&(s.architecture=_e.architecture),_e?.bitness&&(s.bitness=_e.bitness),Object.keys(s).length===0?void 0:s}function Ml(t,e){if(!t&&!e)return;let r={};typeof t?.width=="number"&&(r.width=t.width),typeof t?.height=="number"&&(r.height=t.height),typeof e?.devicePixelRatio=="number"&&(r.devicePixelRatio=e.devicePixelRatio),typeof t?.colorDepth=="number"&&(r.colorDepth=t.colorDepth);let n=t?.orientation?.type;return n&&(r.orientation=n),Object.keys(r).length===0?void 0:r}function $e(t,e){if(t?.matchMedia)try{return t.matchMedia(e).matches}catch{return}}function Ll(t){if(t?.matchMedia)return $e(t,"(prefers-color-scheme: dark)")?"dark":$e(t,"(prefers-color-scheme: light)")?"light":"no-preference"}function _l(t){if(t?.matchMedia)return $e(t,"(prefers-contrast: more)")?"more":$e(t,"(prefers-contrast: less)")?"less":$e(t,"(prefers-contrast: custom)")?"custom":"no-preference"}function Al(t){if(t?.matchMedia){if($e(t,"(display-mode: fullscreen)"))return "fullscreen";if($e(t,"(display-mode: standalone)"))return "standalone";if($e(t,"(display-mode: minimal-ui)"))return "minimal-ui";if($e(t,"(display-mode: browser)"))return "browser"}}function Hl(t){if(!t)return;let r=t.querySelector?.('meta[name="mushi:build"]')?.content?.trim();if(r)return r.slice(0,64)}function Pl(t){let e=t?.performance;if(!e?.getEntriesByType)return;let r;try{r=e.getEntriesByType("navigation")[0];}catch{return}if(!r)return;let n=r.startTime??0,s={};return r.domContentLoadedEventEnd>0&&(s.domContentLoadedMs=Math.round(r.domContentLoadedEventEnd-n)),r.loadEventEnd>0&&(s.loadCompleteMs=Math.round(r.loadEventEnd-n)),r.responseStart>0&&(s.timeToFirstByteMs=Math.round(r.responseStart-n)),typeof r.type=="string"&&(s.navigationType=r.type),Object.keys(s).length===0?void 0:s}var cn="mushi_reporter_token";function Dl(t){return `mushi:reporter-token:${t}`}function Qs(){if(typeof crypto<"u"&&crypto.randomUUID)return `mushi_${crypto.randomUUID()}`;let t=new Uint8Array(16);if(typeof crypto<"u")crypto.getRandomValues(t);else for(let r=0;r<t.length;r++)t[r]=Math.floor(Math.random()*256);return `mushi_${Array.from(t).map(r=>r.toString(16).padStart(2,"0")).join("")}`}function un(t){if(typeof localStorage>"u")return null;try{let e=localStorage.getItem(t);return e&&e.length>0?e:null}catch{return null}}function Zs(t,e){if(!(typeof localStorage>"u"))try{localStorage.setItem(t,e);}catch{}}function le(t){if(!t){let o=un(cn);if(o)return o;let a=Qs();return Zs(cn,a),a}let e=Dl(t),r=un(e);if(r)return r;let s=un(cn)??Qs();return Zs(e,s),s}function Rn(){let t=typeof crypto<"u"?crypto:void 0;if(t?.randomUUID)return t.randomUUID();let e=new Uint8Array(16);if(t?.getRandomValues)t.getRandomValues(e);else for(let n=0;n<e.length;n++)e[n]=Math.floor(Math.random()*256);e[6]=e[6]&15|64,e[8]=e[8]&63|128;let r=Array.from(e,n=>n.toString(16).padStart(2,"0")).join("");return `${r.slice(0,8)}-${r.slice(8,12)}-${r.slice(12,16)}-${r.slice(16,20)}-${r.slice(20,32)}`}var eo="mushi_fingerprint_hash";function Ol(){let t=typeof navigator<"u"?navigator:void 0,e=typeof screen<"u"?screen:void 0,r=typeof window<"u"?window:void 0;return {userAgent:t?.userAgent??"unknown",platform:t?.platform??"unknown",language:t?.language??"en",timezone:Intl?.DateTimeFormat?.()?.resolvedOptions?.()?.timeZone??"UTC",screenWidth:e?.width??0,screenHeight:e?.height??0,pixelRatio:r?.devicePixelRatio??1,deviceMemory:t?.deviceMemory,hardwareConcurrency:t?.hardwareConcurrency}}async function Bl(t){if(typeof crypto<"u"&&crypto.subtle){let r=new TextEncoder().encode(t),n=await crypto.subtle.digest("SHA-256",r);return Array.from(new Uint8Array(n)).map(s=>s.toString(16).padStart(2,"0")).join("")}let e=0;for(let r=0;r<t.length;r++)e=(e<<5)-e+t.charCodeAt(r),e|=0;return `fbk_${(e>>>0).toString(16).padStart(8,"0")}`}async function Co(){if(typeof localStorage<"u"){let n=localStorage.getItem(eo);if(n)return n}let t=Ol(),e=JSON.stringify(t),r=await Bl(e);if(typeof localStorage<"u")try{localStorage.setItem(eo,r);}catch{}return r}var to="mushi_session_id",kr=null;function gt(){if(kr)return kr;if(typeof sessionStorage<"u"){let e=sessionStorage.getItem(to);if(e)return kr=e,e}let t=Nl();if(kr=t,typeof sessionStorage<"u")try{sessionStorage.setItem(to,t);}catch{}return t}function Nl(){return `ms_${Date.now().toString(36)}_${Ul()}`}function Ul(){let t=typeof crypto<"u"?crypto:void 0,e=new Uint8Array(4);if(t?.getRandomValues)t.getRandomValues(e);else for(let n=0;n<e.length;n++)e[n]=Math.floor(Math.random()*256);let r=0;for(let n of e)r=r*256+n>>>0;return r.toString(36).padStart(6,"0").slice(0,6)}var Fl=/HeadlessChrome|PhantomJS|Lighthouse|\bbot\b|bot[/-]|crawler|spider/i;function To(t){return "mushi_events_consent_"+t}var hn=new Set;function ql(){if(typeof navigator>"u")return false;let t=navigator;if(t.globalPrivacyControl===true)return true;let e=typeof window<"u"?window.doNotTrack:void 0,r=t.doNotTrack??t.msDoNotTrack??e;return r==="1"||r==="yes"}function jl(){return typeof navigator>"u"?false:navigator.webdriver===true?true:Fl.test(navigator.userAgent??"")}function Io(t){return t?.enabled===false?"disabled":t?.respectDoNotTrack!==false&&ql()?"dnt":t?.excludeBots!==false&&jl()?"automation":null}function Wl(t){if(!t)return null;try{let e=localStorage.getItem(To(t));return e==="granted"||e==="denied"?e:null}catch{return null}}function zl(t,e){if(t)try{localStorage.setItem(To(t),e);}catch{}}function $o(t,e){let r=Wl(t);return e?.consent==="required"?r??"pending":r==="denied"?"denied":"granted"}function Kl(t,e){zl(t,e);for(let r of [...hn])try{r(e);}catch{}}function Mo(t){return hn.add(t),()=>{hn.delete(t);}}var Vl=6e4,qt=null,Lo,Cn=null,_o=null,Tn=0,Rr=null,jt=false,Wt=false,fn=false,mn=null;function Gl(){return new Date().toISOString()}function ft(){return typeof window>"u"?"":window.location.pathname}function Xl(){if(typeof document>"u"||!document.referrer)return null;try{return new URL(document.referrer).origin}catch{return null}}function Yl(){return typeof navigator>"u"?null:navigator.userAgent??null}function zt(t,e){return {kind:t,session_id:gt(),ts:Gl(),page_view_count:Tn,reporter_token_hash:_o,user_id_hash:Cn,user_agent:Yl(),sdk_version:Lo,...e}}function Kt(t){!qt||!Wt||qt.postSessionEvent(t).catch(()=>{});}function gn(t){Wt&&(Tn+=1,Kt(zt("page_view",{route:t})));}function ro(){Wt||!jt||(Wt=true,fn||(fn=true,Tn=1,Kt(zt("session_start",{route:ft(),referrer:Xl()}))),Rr=setInterval(()=>{Kt(zt("session_heartbeat",{route:ft()}));},Vl));}function Ao(){Wt=false,Rr!=null&&(clearInterval(Rr),Rr=null);}function Ho(t){if(jt||typeof window>"u"||Io(t.analytics)!==null)return;jt=true,qt=t.client,Lo=t.sdkVersion,_o=t.reporterToken??t.reporterTokenHash??null,Cn=t.userIdHash??null;let e=()=>{typeof document<"u"&&document.visibilityState==="hidden"&&Kt(zt("session_end",{route:ft()}));};typeof document<"u"&&document.addEventListener("visibilitychange",e,{passive:true}),window.addEventListener("pagehide",()=>{Kt(zt("session_end",{route:ft()}));},{passive:true}),mn=Mo(r=>{r==="granted"?ro():Ao();}),$o(t.projectId??"",t.analytics)==="granted"&&ro();}function In(t){!jt||!qt||gn(ft());}function Po(t){Cn=t;}function Do(){Ao(),mn?.(),mn=null,jt=false,fn=false,qt=null;}var Ql=/^[a-z][a-z0-9_]{1,63}$/,dt={maxKeys:40,maxKeyLength:64,maxValueLength:256,maxBytes:8192,maxClientBatch:20,maxServerBatch:50,maxEventNamesPerProject:200},Zl="$",ec=/(email|phone|password|passwd|token|secret|ssn|address|credit|card|iban)/i;function rc(t){return typeof t=="string"&&Ql.test(t)}function so(t,e={}){let r={},n=[];if(!t||typeof t!="object"||Array.isArray(t))return {properties:r,dropped:n};let s=new Set(e.allowlist??[]),o=0;for(let[a,i]of Object.entries(t)){if(o>=dt.maxKeys){n.push(a);continue}let l=a.slice(0,dt.maxKeyLength);if(l.startsWith(Zl)&&!e.allowReserved){n.push(l);continue}if(ec.test(l)&&!s.has(l)){n.push(l);continue}let h;if(i===null||typeof i=="boolean")h=i;else if(typeof i=="number")h=Number.isFinite(i)?i:null;else if(typeof i=="string"){let f=i.slice(0,dt.maxValueLength);h=e.scrub?e.scrub(f):f;}else if(i instanceof Date)h=i.toISOString();else {n.push(l);continue}r[l]=h,o+=1;}return {properties:r,dropped:n}}function nc(t){try{return JSON.stringify(t).length<=dt.maxBytes}catch{return false}}var Ir=null,Vt="",pt=null,Mr=null,$n=null,Oo,tt=Mn(),bn,yn,Oe=[],wt=[],ve="granted",Gt=true,Cr=null,mt=false,dn=false,ht=false,vn=null,sc=50,Bo=200,oc=1440*60*1e3;function Mn(){return {sampleRate:1,autoPageviews:false,flushIntervalMs:5e3,surface:"web",propertyAllowlist:[]}}function No(){return new Date().toISOString()}function $r(){return "mushi_events_spill_"+Vt}function ic(t){return t===void 0||t===429||t>=500}function wn(){return "mushi_analytics_id_"+Vt}function ac(){try{let t=localStorage.getItem(wn());if(t)return t}catch{}return typeof crypto<"u"&&typeof crypto.randomUUID=="function"?crypto.randomUUID():"a-"+Math.random().toString(36).slice(2)+Date.now().toString(36)}function lc(){if(pt)try{localStorage.getItem(wn())!==pt&&localStorage.setItem(wn(),pt);}catch{}}function cc(t){let e=2166136261;for(let r=0;r<t.length;r+=1)e^=t.charCodeAt(r),e=Math.imul(e,16777619)>>>0;return (e>>>0)/4294967296}function xn(){try{let t=localStorage.getItem($r());if(!t)return [];let e=JSON.parse(t);return !e||Date.now()-e.at>oc?(localStorage.removeItem($r()),[]):Array.isArray(e.events)?e.events.slice(0,Bo):[]}catch{return []}}function xt(t){try{if(t.length===0){localStorage.removeItem($r());return}localStorage.setItem($r(),JSON.stringify({at:Date.now(),events:t.slice(-Bo)}));}catch{}}function Uo(){let t=xn();return t.length>0&&xt([]),t}function uc(t){return {anon_id:pt,user_id:Mr,user_traits:$n,session_id:yn?yn():null,sdk_version:Oo,surface:tt.surface,events:t}}async function rt(){if(!Ir||dn||ve!=="granted"||Oe.length===0&&!ht)return;dn=true,lc();let t=Oe.splice(0,dt.maxServerBatch);ht&&(t.unshift({name:"identify",ts:No(),properties:{}}),ht=false);try{let e=await Ir.postProductEvents(uc(t));e.ok?xt([]):ic(e.error?.status)&&xt([...xn(),...t.filter(r=>r.name!=="identify")]);}catch{xt([...xn(),...t.filter(e=>e.name!=="identify")]);}finally{dn=false;}Oe.length>=dt.maxClientBatch&&rt();}function dc(t){return ve==="denied"?false:ve==="pending"?wt.length>=sc?false:(wt.push(t),true):(Oe.push(t),Oe.length>=dt.maxClientBatch&&rt(),true)}function pc(t){if(t==="denied"){ve="denied",Oe=[],wt=[],ht=false,xt([]);return}let e=ve==="pending";ve="granted",e&&(Oe.push(...Uo(),...wt),wt=[]),(Oe.length>0||ht)&&rt();}function hc(t){let e={};for(let[r,n]of Object.entries(t))n!==void 0&&(e[r]=n);return e}function Fo(){return !mt||ve==="denied"?null:pt}function qo(t){if(mt||typeof window>"u")return;let e=t.config??{};if(tt={...Mn(),...hc(e),propertyAllowlist:e.propertyAllowlist??[]},Vt=t.projectId,Io(e)!==null)return;mt=true,Ir=t.client,pt=t.anonId??ac(),Mr=t.userId??null,Oo=t.sdkVersion,bn=t.scrub,yn=t.getSessionId;let r=Math.min(1,Math.max(0,tt.sampleRate));if(Gt=r>=1?true:r<=0?false:cc(pt??"anon")<r,!Gt)return;ve=$o(Vt,e),ve==="granted"?Oe.push(...Uo()):ve==="denied"&&xt([]),vn=Mo(pc);let n=Math.max(1e3,tt.flushIntervalMs);Cr=setInterval(()=>{rt();},n);let s=()=>{typeof document<"u"&&document.visibilityState==="hidden"&&rt();};typeof document<"u"&&document.addEventListener("visibilitychange",s,{passive:true}),window.addEventListener("pagehide",()=>{rt();},{passive:true}),tt.autoPageviews&&fc();}function Et(t,e,r){if(!mt||!Gt||!rc(t))return false;let{properties:n}=so(e,{allowlist:tt.propertyAllowlist,scrub:bn}),s=n;if(r?.reserved){let{properties:o}=so(r.reserved,{allowReserved:true,scrub:bn});s={...n,...o};}return s.$surface=tt.surface,typeof location<"u"&&s.$route===void 0&&(s.$route=location.pathname),nc(s)?dc({name:t,ts:r?.ts??No(),properties:s,...r?.dedupKey?{dedup_key:r.dedupKey}:{}}):false}function jo(t){mt||(ve=t),Kl(Vt,t);}function Wo(t,e){Mr=t,$n=e??null,!(!mt||!Gt||!t||ve==="denied")&&(ht=true,ve==="granted"&&rt());}function zo(){return rt()}function Ko(){Cr!=null&&(clearInterval(Cr),Cr=null),vn?.(),vn=null,mt=false,Ir=null,Oe=[],wt=[],ve="granted",Gt=true,ht=false,Mr=null,$n=null,tt=Mn();}var oo=false;function fc(){if(oo||typeof history>"u")return;oo=true;let t=history.pushState;history.pushState=function(...e){let r=t.apply(this,e);return Et("page_view"),r},window.addEventListener("popstate",()=>{Et("page_view");},{passive:true});}var mc=10,gc=1,bc=5e3;function Vo(t={}){let{maxBurst:e=mc,refillRate:r=gc,refillIntervalMs:n=bc}=t,s=e,o=Date.now();function a(){let f=Date.now(),p=f-o,y=Math.floor(p/n);y>0&&(s=Math.min(e,s+y*r),o=f);}function i(){return a(),s>0?(s--,true):false}function l(){s=e,o=Date.now();}function h(){return a(),s}return {tryConsume:i,reset:l,availableTokens:h}}var yc={patterns:[{id:"ssn",configKey:"ssns",source:"\\b\\d{3}-\\d{2}-\\d{4}\\b",replacement:"[REDACTED_SSN]"},{id:"creditCard",configKey:"creditCards",source:"\\b(?:\\d[ -]*){12,18}\\d\\b",replacement:"[REDACTED_CC]"},{id:"awsAccessKey",configKey:"secretTokens",source:"\\b(?:AKIA|ASIA)[0-9A-Z]{16}\\b",replacement:"[REDACTED_AWS_KEY]"},{id:"awsSecretKey",configKey:"secretTokens",source:`(?:aws_secret_access_key|secret_access_key)["'\\s:=]+[A-Za-z0-9/+=]{40}\\b`,caseInsensitive:true,replacement:"aws_secret_access_key=[REDACTED_AWS_SECRET]"},{id:"stripeSecretKey",configKey:"secretTokens",source:"\\b(?:sk|rk)_(?:live|test)_[A-Za-z0-9]{24,}\\b",replacement:"[REDACTED_STRIPE_KEY]"},{id:"stripePublishableKey",configKey:"secretTokens",source:"\\bpk_(?:live|test)_[A-Za-z0-9]{24,}\\b",replacement:"[REDACTED_STRIPE_PK]"},{id:"slackToken",configKey:"secretTokens",source:"\\bxox[abpor]-[A-Za-z0-9-]{10,}\\b",replacement:"[REDACTED_SLACK_TOKEN]"},{id:"githubPatClassic",configKey:"secretTokens",source:"\\bghp_[A-Za-z0-9]{36}\\b",replacement:"[REDACTED_GITHUB_PAT]"},{id:"githubPatFineGrained",configKey:"secretTokens",source:"\\bgithub_pat_[A-Za-z0-9_]{80,}\\b",replacement:"[REDACTED_GITHUB_PAT]"},{id:"openaiKey",configKey:"secretTokens",source:"\\bsk-(?:proj-)?[A-Za-z0-9_-]{20,}\\b",replacement:"[REDACTED_OPENAI_KEY]"},{id:"anthropicKey",configKey:"secretTokens",source:"\\bsk-ant-[A-Za-z0-9_-]{20,}\\b",replacement:"[REDACTED_ANTHROPIC_KEY]"},{id:"googleKey",configKey:"secretTokens",source:"\\bAIza[0-9A-Za-z_-]{35}\\b",replacement:"[REDACTED_GOOGLE_KEY]"},{id:"jwt",configKey:"secretTokens",source:"\\beyJ[A-Za-z0-9_-]+\\.[A-Za-z0-9_-]+\\.[A-Za-z0-9_-]+\\b",replacement:"[REDACTED_JWT]"},{id:"email",configKey:"emails",source:"\\b[A-Za-z0-9._%+\\-]+@[A-Za-z0-9.\\-]+\\.[A-Za-z]{2,}\\b",replacement:"[REDACTED_EMAIL]"},{id:"phone",configKey:"phones",source:"(?:\\+\\d{1,3}[\\s.-])?\\(?\\d{2,4}\\)?[\\s.-]\\d{3,4}[\\s.-]\\d{3,4}\\b",replacement:"[REDACTED_PHONE]"},{id:"ipv4",configKey:"ipAddresses",source:"\\b(?:\\d{1,3}\\.){3}\\d{1,3}\\b",replacement:"[REDACTED_IP]",defaultOn:false},{id:"ipv6",configKey:"ipv6",source:"\\b(?:[A-Fa-f0-9]{1,4}:){2,7}[A-Fa-f0-9]{0,4}\\b",replacement:"[REDACTED_IPV6]",defaultOn:false}]},Go=yc.patterns,vc=Go.map(t=>({key:t.configKey,regex:new RegExp(t.source,t.caseInsensitive?"gi":"g"),replacement:t.replacement})),wc=Go.reduce((t,e)=>(t[e.configKey]=e.defaultOn!==false,t),{});function Ln(t={}){let e={...wc,...t},r=vc.filter(o=>e[o.key]);function n(o){if(!o)return o;let a=o;for(let{regex:i,replacement:l}of r)a=a.replace(new RegExp(i.source,i.flags),l);return a}function s(o,a){let i={...o};for(let l of a)typeof i[l]=="string"&&(i[l]=n(i[l]));return i}return {scrub:n,scrubObject:s}}var xc=/token|jwt|passw|pwd|secret|api[-_]?key|apikey|auth|session|signature|email|phone|ssn/i,Sc=/^(?:key|code|sig)$/i;function Ec(t){let e=t;try{e=decodeURIComponent(t);}catch{}return xc.test(e)||Sc.test(e)}function kc(t,e){return t.split("&").map(r=>{let n=r.indexOf("=");if(n===-1)return r;let s=r.slice(0,n),o=r.slice(n+1);if(o.length===0)return r;if(Ec(s))return `${s}=[Scrubbed]`;let a=o;try{a=decodeURIComponent(o);}catch{}let i=e(a);return i!==a?`${s}=${encodeURIComponent(i)}`:r}).join("&")}function Qt(t,e){if(!t||!t.includes("?")&&!t.includes("#"))return t;let{scrub:r}=Ln(e),n=o=>{let a=o.indexOf("?");return a===-1?o:o.slice(0,a+1)+kc(o.slice(a+1),r)},s=t.indexOf("#");return s===-1?n(t):n(t.slice(0,s))+n(t.slice(s))}var Rc=50,Cc=500;function Xo(t={}){let e=Math.max(1,t.max??Rc),r=Math.max(50,t.maxMessageLength??Cc),n=[];return {add(s){let o=typeof s.timestamp=="number"?s.timestamp:Date.now(),a=typeof s.message=="string"&&s.message.length>r?`${s.message.slice(0,r)}\u2026`:s.message,i={timestamp:o,category:s.category,level:s.level??"info",message:a??"",...s.data?{data:s.data}:{}};for(n.push(i);n.length>e;)n.shift();},getAll(){return n.slice()},clear(){n=[];},size(){return n.length}}}var io=8*1024,Tc=1e3;function Yo(t){if(t instanceof Error){let e=t.name||"Error",r=t.message||String(t),n=typeof t.stack=="string"&&t.stack.length>0?t.stack.slice(0,io):void 0,s=t.cause;return {name:e,message:r,...n?{stack:n}:{},...s!==void 0?{cause:s instanceof Error?s.message:s}:{}}}if(typeof t=="string")return {name:"Error",message:t};if(t&&typeof t=="object"){let e=t,r=typeof e.name=="string"?e.name:"Error",n=typeof e.message=="string"?e.message:(()=>{try{return JSON.stringify(e).slice(0,Tc)}catch{return String(e)}})(),s=typeof e.stack=="string"?e.stack.slice(0,io):void 0;return {name:r,message:n,...s?{stack:s}:{}}}return t===void 0?{name:"Error",message:"unknown"}:{name:"Error",message:String(t)}}var pe={paper:"#F8F4ED",paperRaised:"#FFFFFF",ink:"#0E0D0B",inkMuted:"#5C5852",inkFaint:"#9A9489",inkDim:"#6E6760",rule:"rgba(14,13,11,0.10)",ruleStrong:"rgba(14,13,11,0.16)",accent:"#E03C2C",accentWash:"rgba(224,60,44,0.08)",accentInk:"#7A1F15",ok:"#2D7A55",danger:"#B83232"},Ic={paper:"#0F0E0C",paperRaised:"#1A1815",ink:"#F2EBDD",inkMuted:"#928B7E",inkFaint:"#5A5650",inkDim:"#7A7268",rule:"rgba(242,235,221,0.10)",ruleStrong:"rgba(242,235,221,0.18)",accent:"#FF5A47",accentWash:"rgba(255,90,71,0.12)",accentInk:"#FFE5E0",ok:"#3A9E6E",danger:"#E05555"},_n={free:pe.inkMuted,explorer:"#2563EB",contributor:"#7C3AED",champion:"#D97706",default:pe.accent},Lr={bg:"#0FFF50",fg:"#0a1a0a",border:"#00C43A"},Jo="#FAF7F0",Qo="#ffffff";var An={light:"#9A2A1E",dark:"#7A1F15"},Hn={light:"#B52F1F",dark:"#C4321E"},Zo={light:{sent:{fg:"#1E4A8C",bg:"rgba(30,74,140,0.08)",border:"rgba(30,74,140,0.16)"},review:{fg:"#8A5A00",bg:"rgba(180,120,0,0.10)",border:"rgba(180,120,0,0.18)"},fixing:{fg:"#9A3D12",bg:"rgba(224,60,44,0.10)",border:"rgba(224,60,44,0.18)"},fixed:{fg:"#1F6B3A",bg:"rgba(31,107,58,0.10)",border:"rgba(31,107,58,0.18)"}},dark:{sent:{fg:"#A8C4FF",bg:"rgba(120,160,255,0.12)",border:"rgba(120,160,255,0.22)"},review:{fg:"#FFD27A",bg:"rgba(255,190,90,0.12)",border:"rgba(255,190,90,0.22)"},fixing:{fg:"#FFB899",bg:"rgba(255,120,60,0.12)",border:"rgba(255,120,60,0.24)"},fixed:{fg:"#8FE3B0",bg:"rgba(80,200,130,0.12)",border:"rgba(80,200,130,0.22)"}}};function Pn(t){return t==="dark"?Ic:pe}var _r={tight:4,snug:8,comfy:12,roomy:16,lounge:20,open:24,wide:32},Dn={control:4,card:10},Rt={fontDisplay:"'Iowan Old Style', 'Palatino Linotype', 'Palatino', 'Book Antiqua', 'Cambria', Georgia, 'Times New Roman', serif",fontBody:"system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI Variable Display', 'Segoe UI', sans-serif",fontMono:"ui-monospace, 'SF Mono', 'JetBrains Mono', Menlo, Consolas, 'Liberation Mono', monospace",sizeBody:14,sizeLabel:12,lineBody:1.55},Ct={base:99999,banner:99998,panel:1e5,overlay:2147483647},Ar={easeStamp:"cubic-bezier(0.22, 1, 0.36, 1)",durationFast:200},ei={instant:120,fast:200,base:220,panel:300,slow:420,ring:700};var Tt={bannerHeight:36,fabSize:52,edgeTabWidth:32,gutter:24,panelWidth:360,panelMaxHeight:480,panelSheetBreakpoint:480};function ao(t){return /^#[0-9a-fA-F]{3,8}$/.test(t)?t:""}function ti(t,e="",r=""){let n=Pn(t),s=ao(e),o=ao(r),a=s||n.accent,i=s?t==="dark"?`${a}1F`:`${a}14`:n.accentWash,l=o||n.accentInk;return {accent:a,accentWash:i,accentInk:l}}function $c(t){let e=t.length%4===0?"":"=".repeat(4-t.length%4),r=t.replace(/-/g,"+").replace(/_/g,"/")+e;if(typeof atob=="function")return atob(r);let n=globalThis.Buffer;return n?n.from(r,"base64").toString("binary"):""}function ri(t){if(typeof t!="string")return null;let e=t.split(".");if(e.length!==3)return null;try{let r=$c(e[1]),n=JSON.parse(r),s=typeof n.projectId=="string"?n.projectId:void 0,o=typeof n.sub=="string"?n.sub:void 0;return !s||!o?null:{projectId:s,sub:o,...typeof n.email=="string"?{email:n.email}:{},...typeof n.name=="string"?{name:n.name}:{},...typeof n.iat=="number"?{iat:n.iat}:{},...typeof n.exp=="number"?{exp:n.exp}:{}}}catch{return null}}var Mc=new Set(["kensaur.us","www.kensaur.us"]),Lc={"glot-it":"glot.it",glotit:"glot.it","solo-boss-cloud":"solo-boss.kensaur.us","mushi-mushi":"kensaur.us","how-to-talk-to-girls":"talk.kensaur.us",htttg:"talk.kensaur.us",tsumagoi:"tsumagoi.kensaur.us"},_c={"mushi-mushi":"https://kensaur.us/mushi-mushi/admin/favicon.svg","solo-boss-cloud":"https://solo-boss.kensaur.us/favicon.svg","glot-it":"https://kensaur.us/glot-it/apple-touch-icon.png",glotit:"https://kensaur.us/glot-it/apple-touch-icon.png","the-wanting-mind":"https://kensaur.us/the-wanting-mind/pwa-512x512.png","how-to-talk-to-girls":"https://talk.kensaur.us/pwa-192.png",htttg:"https://talk.kensaur.us/pwa-192.png",tsumagoi:"https://tsumagoi.kensaur.us/apple-touch-icon.png","help-her-take-photo":"https://kensaur.us/help-her-take-photo/assets/apple-touch-icon.png","yen-yen":"https://kensaur.us/yen-yen/icon.svg"},Ac=["www.google.com","icons.duckduckgo.com","icon.horse"];function ni(t){try{let e=new URL(t).hostname.toLowerCase();return Ac.some(r=>e===r||e.endsWith(`.${r}`))}catch{return false}}function Hc(t,e=32){return [`https://${t}/favicon.svg`,`https://${t}/favicon.ico`,`https://${t}/favicon-32x32.png`,`https://${t}/apple-touch-icon.png`]}function si(t){let e=[],r=s=>{let o=s?.trim().toLowerCase();!o||e.includes(o)||e.push(o);};r(Dc(t.repo_url)),r(Lc[t.project_slug.toLowerCase()]);let n=t.sdk_origin?Pc(t.sdk_origin):null;return n&&!Mc.has(n)&&r(n),e}function oi(t,e=32){if(t.icon_url?.trim())return [t.icon_url.trim()];let r=new Set,n=[],s=a=>{!a||r.has(a)||ni(a)||(r.add(a),n.push(a));},o=_c[t.project_slug.toLowerCase()];o&&s(o);for(let a of si(t))for(let i of Hc(a,e))s(i);return n}function Pc(t){let e=t.trim();if(!e||/^(capacitor|file|content|app):/i.test(e))return null;try{let n=new URL(e.includes("://")?e:`https://${e}`).hostname.toLowerCase();return n==="localhost"||n==="127.0.0.1"||n.endsWith(".local")?null:n}catch{return null}}function Dc(t){if(!t?.trim())return null;try{let e=new URL(t.trim()),r=e.hostname.toLowerCase(),n=e.pathname.replace(/^\/+|\/+$/g,"").split("/").filter(Boolean);if(n.length<2)return null;let s=n[1].replace(/\.git$/i,"").toLowerCase();return /^[a-z0-9][a-z0-9.-]*\.[a-z]{2,}$/i.test(s)||r==="github.com"&&s.endsWith(".github.io")?s:r!=="github.com"&&r!=="www.github.com"?r:null}catch{return null}}function ii(t){return si(t)[0]??null}function ai(t){if(typeof document>"u"||!t.complete||t.naturalWidth===0||t.naturalHeight===0)return false;try{let e=document.createElement("canvas"),r=t.naturalWidth,n=t.naturalHeight;e.width=r,e.height=n;let s=e.getContext("2d");if(!s)return !1;s.drawImage(t,0,0);let{data:o}=s.getImageData(0,0,r,n),a=0,i=0,l=0;for(let f=0;f<o.length;f+=4){let p=o[f],y=o[f+1],u=o[f+2];if(o[f+3]<128)continue;a++;let w=Math.max(p,y,u),k=Math.min(p,y,u),_=w-k;l=Math.max(l,_),i+=_;}return a===0?!0:i/a<14&&l<24}catch{return ni(t.src)}}function li(t){let e=t.trim().split(/[\s._-]+/).filter(Boolean);return e.length>=2?`${e[0][0]??""}${e[1][0]??""}`.toUpperCase():(t.replace(/[^a-zA-Z0-9]/g,"").slice(0,2)||t.slice(0,2)||"?").toUpperCase()}function ci(){if(typeof document>"u")return null;let t=['link[rel="icon"]','link[rel="shortcut icon"]','link[rel="apple-touch-icon"]'];for(let e of t){let n=document.querySelector(e)?.href;if(n&&Oc(n))return n}return null}function Oc(t){try{let e=typeof location<"u"?location.href:void 0,r=new URL(t,e).protocol;return r==="http:"||r==="https:"}catch{return false}}async function di(t,e=lo){if(!t.startsWith("data:image/")||ui(t)<=e)return t;if(typeof document>"u")return null;let r=new Image;await new Promise((o,a)=>{r.onload=()=>o(),r.onerror=()=>a(new Error("screenshot_decode_failed")),r.src=t;});let n=[.65,.5,.35,.25],s=[1,.85,.7,.55,.4];for(let o of s){let a=document.createElement("canvas"),i=Math.max(1,Math.round(r.naturalWidth*o)),l=Math.max(1,Math.round(r.naturalHeight*o));a.width=i,a.height=l;let h=a.getContext("2d");if(h){h.drawImage(r,0,0,i,l);for(let f of n){let p=a.toDataURL("image/jpeg",f);if(ui(p)<=e)return p}}}return null}function ui(t){let e=t.indexOf(",");if(e<0)return t.length;let r=t.slice(e+1);return Math.ceil(r.length*3/4)}var Hr={widget:{trigger:"Report Issue",title:"Report an Issue",close:"Close",back:"Back",submit:"Submit",submitting:"Submitting\u2026",submitted:"Thank you! Your report has been submitted.",error:"Could not send your report. Check your connection and try again."},step1:{heading:"What kind of issue?",reportSectionLabel:"Report an issue",moreNavLabel:"More",moreNav:{yourReports:"Your reports",yourReportsDesc:"See status, developer replies, and respond",unreadNew:"new",communityIdeas:"Community ideas",communityIdeasDesc:"Vote on features and see what shipped",leaderboard:"Leaderboard",joinCommunity:"Join community \xB7 Track reports across apps",myAccount:"My account"},categories:{bug:"Bug",slow:"Slow / Laggy",visual:"Visual Glitch",confusing:"Confusing",other:"Other"},categoryDescriptions:{bug:"Something is broken or not working",slow:"Performance issue or slow loading",visual:"Layout, styling, or display problem",confusing:"Hard to understand or navigate",other:"Something else"},moreCategoriesLabel:"More issue types",moreCategoriesCount:"{n} more"},step2:{heading:"What happened?",intents:{bug:["Crash","Unresponsive","Data loss","Wrong result","Other"],slow:["Page load","Interaction","API call","Animation","Other"],visual:["Layout broken","Overlapping","Missing element","Wrong color/font","Other"],confusing:["Unclear label","Missing help","Unexpected flow","Lost navigation","Other"],other:["Feature request","Accessibility","Typo","Other"]}},step3:{heading:"Tell us more",descriptionPlaceholder:"Describe what happened\u2026",screenshotButton:"Attach Screenshot",screenshotAttached:"Screenshot attached \u2713",screenshotCapturing:"Taking screenshot\u2026",screenshotFailed:"Couldn't capture \u2014 describe it instead",screenshotPreviewAlt:"Preview of the screenshot that will be sent",screenshotSensitiveHint:"Check the preview \u2014 remove it if any private info (balances, personal details) is visible.",elementButton:"Select Element",elementSelected:"Element selected \u2713",elementCapturing:"Click anything on the page\u2026",elementFailed:"Couldn't select \u2014 describe it instead",elementSelectorHint:"Click any element \xB7 Esc to cancel",optional:"(optional)",tooShort:"A bit more detail helps us fix it faster",examplePrompts:["The save button does nothing","Page froze for 10 seconds","Layout looks broken here"]},assistant:{defaultLabel:"Ask",defaultGreeting:"Ask about this page \u2014 I only use what you see here.",inputPlaceholder:"Type your question\u2026",sendAriaLabel:"Send",hubDescription:"Get help using this app",thinking:"Thinking\u2026",fileReportCta:"File a report instead",stillStuckCta:"Still stuck? File a report",errors:{noResponse:"No response \u2014 check your connection and try again.",generic:"Could not reach the assistant. Try again in a moment."}},flows:{eyebrows:{inbox:"Mushi \xB7 Inbox",roadmap:"Mushi \xB7 Roadmap",community:"Mushi \xB7 Community",identity:"Mushi \xB7 Identity",signIn:"Mushi \xB7 Sign in",allApps:"Mushi \xB7 All apps",receipt:"Mushi \xB7 Receipt",thread:"Mushi \xB7 Inbox"},reports:{title:"Your reports",loading:"Loading reports\u2026",empty:"No reports from this browser yet.",leaderboardLink:"Leaderboard"},roadmap:{title:"Community ideas",loading:"Loading ideas\u2026",empty:"No community ideas yet. Be the first to suggest one.",shipped:"Shipped",vote:"Vote",voted:"Voted",voteCount:"{n} votes",untitled:"Untitled idea"},leaderboard:{title:"Global leaderboard",loading:"Loading leaderboard\u2026",empty:"No contributors yet \u2014 be the first!",signInPrompt:"Sign in to see your rank \u2192",myRank:"You are ranked #{rank} this month",footer:"Global contributors this month \xB7 Points refresh monthly",anon:"Anon"},account:{title:"Mushi account",checkEmailTitle:"Check your email",joinTitle:"Join the community",emailLabel:"Email address",emailPlaceholder:"Email",signInPrompt:"Sign in to see your reports across all apps and climb the global leaderboard. No password needed.",magicLinkSent:"We sent a sign-in link to {email}. Click it to connect your reports across apps.",resendEmail:"Resend email",sendLink:"Send sign-in link",sending:"Sending\u2026",crossAppReports:"My reports across all apps \u2192",viewLeaderboard:"View global leaderboard \u2192",signOut:"Sign out",rankSummary:"Rank #{rank} \xB7 {points} pts this month"},crossApp:{title:"My reports",loading:"Loading your reports\u2026",empty:"No reports filed yet.",unknownApp:"Unknown app"},thread:{title:"Report thread",loading:"Loading thread\u2026",empty:"No developer replies yet.",confirmFixed:"Yes, fixed for me",notFixed:"Not fixed yet",replyPlaceholder:"Reply to the developer\u2026",send:"Send"},success:{trackReport:"Track this report \u203A",receipt:"Receipt",delivering:"Delivering to the team\u2026",queuedOffline:"Queued offline",queuedHint:"We'll send it the moment you're back online.",rateLimited:"Sending too fast",rateLimitedHint:"Wait about a minute \u2014 we queued this report and will retry automatically.",quotaBlocked:"Could not accept this report",quotaBlockedHint:"This project's quota or plan blocked the send. Ask the app owner to check Billing.",permanentFailed:"Could not send this report",permanentFailedHint:"The payload was rejected (often too large). Try again with a shorter note or without a screenshot.",retrying:"Queued \u2014 retrying",retryingHint:"We could not reach the server just now. We'll keep trying in the background.",trackOnMushi:"Track on Mushi",slaDefault:"We will review your report.",screenshotDropped:"Sent without the screenshot \u2014 it was too large to attach."},featureRequest:{label:"Feature request",description:"Suggest a change"},betaStrip:{defaultMessage:"{appName} is in early development",contactHint:"Reports go to {email} \xB7 reviewed by the team",ariaLabel:"Beta status"},changelog:{whatsNew:"What's new in {version}"},poweredBy:"Bug reports by Mushi"}};var pi={widget:{trigger:"\u554F\u984C\u3092\u5831\u544A",title:"\u554F\u984C\u3092\u5831\u544A\u3059\u308B",close:"\u9589\u3058\u308B",back:"\u623B\u308B",submit:"\u9001\u4FE1",submitting:"\u9001\u4FE1\u4E2D\u2026",submitted:"\u3042\u308A\u304C\u3068\u3046\u3054\u3056\u3044\u307E\u3059\uFF01\u30EC\u30DD\u30FC\u30C8\u304C\u9001\u4FE1\u3055\u308C\u307E\u3057\u305F\u3002",error:"\u30A8\u30E9\u30FC\u304C\u767A\u751F\u3057\u307E\u3057\u305F\u3002\u3082\u3046\u4E00\u5EA6\u304A\u8A66\u3057\u304F\u3060\u3055\u3044\u3002"},step1:{heading:"\u3069\u306E\u3088\u3046\u306A\u554F\u984C\u3067\u3059\u304B\uFF1F",reportSectionLabel:"\u554F\u984C\u3092\u5831\u544A",moreNavLabel:"\u305D\u306E\u4ED6",moreNav:{yourReports:"\u3042\u306A\u305F\u306E\u30EC\u30DD\u30FC\u30C8",yourReportsDesc:"\u30B9\u30C6\u30FC\u30BF\u30B9\u3001\u958B\u767A\u8005\u304B\u3089\u306E\u8FD4\u4FE1\u3001\u8FD4\u7B54",unreadNew:"\u4EF6\u306E\u65B0\u7740",communityIdeas:"\u30B3\u30DF\u30E5\u30CB\u30C6\u30A3\u306E\u30A2\u30A4\u30C7\u30A2",communityIdeasDesc:"\u6A5F\u80FD\u306B\u6295\u7968\u3057\u3066\u30EA\u30EA\u30FC\u30B9\u72B6\u6CC1\u3092\u78BA\u8A8D",leaderboard:"\u30EA\u30FC\u30C0\u30FC\u30DC\u30FC\u30C9",joinCommunity:"\u30B3\u30DF\u30E5\u30CB\u30C6\u30A3\u306B\u53C2\u52A0 \xB7 \u30A2\u30D7\u30EA\u6A2A\u65AD\u3067\u30EC\u30DD\u30FC\u30C8\u3092\u8FFD\u8DE1",myAccount:"\u30DE\u30A4\u30A2\u30AB\u30A6\u30F3\u30C8"},categories:{bug:"\u30D0\u30B0",slow:"\u9045\u3044\u30FB\u91CD\u3044",visual:"\u8868\u793A\u306E\u554F\u984C",confusing:"\u308F\u304B\u308A\u306B\u304F\u3044",other:"\u305D\u306E\u4ED6"},categoryDescriptions:{bug:"\u52D5\u4F5C\u3057\u306A\u3044\u3001\u58CA\u308C\u3066\u3044\u308B",slow:"\u30D1\u30D5\u30A9\u30FC\u30DE\u30F3\u30B9\u304C\u60AA\u3044\u3001\u8AAD\u307F\u8FBC\u307F\u304C\u9045\u3044",visual:"\u30EC\u30A4\u30A2\u30A6\u30C8\u3001\u30C7\u30B6\u30A4\u30F3\u3001\u8868\u793A\u306E\u554F\u984C",confusing:"\u7406\u89E3\u3057\u306B\u304F\u3044\u3001\u64CD\u4F5C\u304C\u308F\u304B\u308A\u306B\u304F\u3044",other:"\u305D\u306E\u4ED6\u306E\u554F\u984C"},moreCategoriesLabel:"\u305D\u306E\u4ED6\u306E\u554F\u984C\u306E\u7A2E\u985E",moreCategoriesCount:"\u4ED6{n}\u4EF6"},step2:{heading:"\u4F55\u304C\u8D77\u304D\u307E\u3057\u305F\u304B\uFF1F",intents:{bug:["\u30AF\u30E9\u30C3\u30B7\u30E5","\u7121\u53CD\u5FDC","\u30C7\u30FC\u30BF\u6D88\u5931","\u8AA4\u3063\u305F\u7D50\u679C","\u305D\u306E\u4ED6"],slow:["\u30DA\u30FC\u30B8\u8AAD\u8FBC","\u64CD\u4F5C\u53CD\u5FDC","API\u901A\u4FE1","\u30A2\u30CB\u30E1\u30FC\u30B7\u30E7\u30F3","\u305D\u306E\u4ED6"],visual:["\u30EC\u30A4\u30A2\u30A6\u30C8\u5D29\u308C","\u8981\u7D20\u306E\u91CD\u306A\u308A","\u8981\u7D20\u304C\u8868\u793A\u3055\u308C\u306A\u3044","\u8272/\u30D5\u30A9\u30F3\u30C8\u304C\u9055\u3046","\u305D\u306E\u4ED6"],confusing:["\u30E9\u30D9\u30EB\u304C\u4E0D\u660E\u77AD","\u30D8\u30EB\u30D7\u304C\u306A\u3044","\u4E88\u60F3\u5916\u306E\u30D5\u30ED\u30FC","\u30CA\u30D3\u30B2\u30FC\u30B7\u30E7\u30F3\u8FF7\u5B50","\u305D\u306E\u4ED6"],other:["\u6A5F\u80FD\u8981\u671B","\u30A2\u30AF\u30BB\u30B7\u30D3\u30EA\u30C6\u30A3","\u8AA4\u5B57\u8131\u5B57","\u305D\u306E\u4ED6"]}},step3:{heading:"\u8A73\u7D30\u3092\u6559\u3048\u3066\u304F\u3060\u3055\u3044",descriptionPlaceholder:"\u4F55\u304C\u8D77\u304D\u305F\u304B\u8AAC\u660E\u3057\u3066\u304F\u3060\u3055\u3044\u2026",screenshotButton:"\u30B9\u30AF\u30EA\u30FC\u30F3\u30B7\u30E7\u30C3\u30C8\u6DFB\u4ED8",screenshotAttached:"\u30B9\u30AF\u30EA\u30FC\u30F3\u30B7\u30E7\u30C3\u30C8\u6DFB\u4ED8\u6E08\u307F \u2713",screenshotCapturing:"\u30B9\u30AF\u30EA\u30FC\u30F3\u30B7\u30E7\u30C3\u30C8\u64AE\u5F71\u4E2D\u2026",screenshotFailed:"\u53D6\u5F97\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F \u2014 \u6587\u5B57\u3067\u6559\u3048\u3066\u304F\u3060\u3055\u3044",screenshotPreviewAlt:"\u9001\u4FE1\u3055\u308C\u308B\u30B9\u30AF\u30EA\u30FC\u30F3\u30B7\u30E7\u30C3\u30C8\u306E\u30D7\u30EC\u30D3\u30E5\u30FC",screenshotSensitiveHint:"\u30D7\u30EC\u30D3\u30E5\u30FC\u3092\u78BA\u8A8D\u3057\u3001\u6B8B\u9AD8\u3084\u500B\u4EBA\u60C5\u5831\u306A\u3069\u304C\u5199\u3063\u3066\u3044\u308C\u3070\u524A\u9664\u3057\u3066\u304F\u3060\u3055\u3044\u3002",elementButton:"\u8981\u7D20\u3092\u9078\u629E",elementSelected:"\u8981\u7D20\u9078\u629E\u6E08\u307F \u2713",elementCapturing:"\u30DA\u30FC\u30B8\u4E0A\u306E\u8981\u7D20\u3092\u30AF\u30EA\u30C3\u30AF\u2026",elementFailed:"\u9078\u629E\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F \u2014 \u6587\u5B57\u3067\u6559\u3048\u3066\u304F\u3060\u3055\u3044",elementSelectorHint:"\u8981\u7D20\u3092\u30AF\u30EA\u30C3\u30AF \xB7 Esc \u3067\u30AD\u30E3\u30F3\u30BB\u30EB",optional:"\uFF08\u4EFB\u610F\uFF09",tooShort:"\u3082\u3046\u5C11\u3057\u8A73\u3057\u304F\u6559\u3048\u3066\u304F\u3060\u3055\u3044",examplePrompts:["\u4FDD\u5B58\u30DC\u30BF\u30F3\u304C\u53CD\u5FDC\u3057\u306A\u3044","\u30DA\u30FC\u30B8\u304C10\u79D2\u56FA\u307E\u3063\u305F","\u30EC\u30A4\u30A2\u30A6\u30C8\u304C\u5D29\u308C\u3066\u3044\u308B"]},assistant:{defaultLabel:"\u8CEA\u554F",defaultGreeting:"\u3053\u306E\u30DA\u30FC\u30B8\u306B\u3064\u3044\u3066\u8CEA\u554F\u3057\u3066\u304F\u3060\u3055\u3044 \u2014 \u8868\u793A\u3055\u308C\u3066\u3044\u308B\u5185\u5BB9\u3060\u3051\u3092\u4F7F\u3044\u307E\u3059\u3002",inputPlaceholder:"\u8CEA\u554F\u3092\u5165\u529B\u2026",sendAriaLabel:"\u9001\u4FE1",hubDescription:"\u3053\u306E\u30A2\u30D7\u30EA\u306E\u4F7F\u3044\u65B9\u3092\u805E\u304F",thinking:"\u8003\u3048\u4E2D\u2026",fileReportCta:"\u4EE3\u308F\u308A\u306B\u30D0\u30B0\u3092\u5831\u544A",stillStuckCta:"\u89E3\u6C7A\u3057\u306A\u3044\u5834\u5408\u306F\u5831\u544A\u3059\u308B",errors:{noResponse:"\u5FDC\u7B54\u304C\u3042\u308A\u307E\u305B\u3093 \u2014 \u63A5\u7D9A\u3092\u78BA\u8A8D\u3057\u3066\u518D\u8A66\u884C\u3057\u3066\u304F\u3060\u3055\u3044\u3002",generic:"\u30A2\u30B7\u30B9\u30BF\u30F3\u30C8\u306B\u63A5\u7D9A\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\u3002\u3057\u3070\u3089\u304F\u3057\u3066\u304B\u3089\u518D\u8A66\u884C\u3057\u3066\u304F\u3060\u3055\u3044\u3002"}},flows:{eyebrows:{inbox:"Mushi \xB7 \u53D7\u4FE1\u7BB1",roadmap:"Mushi \xB7 \u30A2\u30A4\u30C7\u30A2",community:"Mushi \xB7 \u30B3\u30DF\u30E5\u30CB\u30C6\u30A3",identity:"Mushi \xB7 \u30A2\u30AB\u30A6\u30F3\u30C8",signIn:"Mushi \xB7 \u30B5\u30A4\u30F3\u30A4\u30F3",allApps:"Mushi \xB7 \u5168\u30A2\u30D7\u30EA",receipt:"Mushi \xB7 \u53D7\u4ED8",thread:"Mushi \xB7 \u53D7\u4FE1\u7BB1"},reports:{title:"\u3042\u306A\u305F\u306E\u30EC\u30DD\u30FC\u30C8",loading:"\u30EC\u30DD\u30FC\u30C8\u3092\u8AAD\u307F\u8FBC\u307F\u4E2D\u2026",empty:"\u3053\u306E\u30D6\u30E9\u30A6\u30B6\u304B\u3089\u306E\u30EC\u30DD\u30FC\u30C8\u306F\u307E\u3060\u3042\u308A\u307E\u305B\u3093\u3002",leaderboardLink:"\u30E9\u30F3\u30AD\u30F3\u30B0"},roadmap:{title:"\u30B3\u30DF\u30E5\u30CB\u30C6\u30A3\u306E\u30A2\u30A4\u30C7\u30A2",loading:"\u30A2\u30A4\u30C7\u30A2\u3092\u8AAD\u307F\u8FBC\u307F\u4E2D\u2026",empty:"\u307E\u3060\u30A2\u30A4\u30C7\u30A2\u304C\u3042\u308A\u307E\u305B\u3093\u3002\u6700\u521D\u306E\u63D0\u6848\u3092\u3069\u3046\u305E\u3002",shipped:"\u30EA\u30EA\u30FC\u30B9\u6E08\u307F",vote:"\u6295\u7968",voted:"\u6295\u7968\u6E08\u307F",voteCount:"{n} \u7968",untitled:"\u7121\u984C\u306E\u30A2\u30A4\u30C7\u30A2"},leaderboard:{title:"\u30B0\u30ED\u30FC\u30D0\u30EB\u30E9\u30F3\u30AD\u30F3\u30B0",loading:"\u30E9\u30F3\u30AD\u30F3\u30B0\u3092\u8AAD\u307F\u8FBC\u307F\u4E2D\u2026",empty:"\u307E\u3060\u53C2\u52A0\u8005\u304C\u3044\u307E\u305B\u3093 \u2014 \u6700\u521D\u306E\u4E00\u4EBA\u306B\u306A\u308D\u3046\u3002",signInPrompt:"\u30B5\u30A4\u30F3\u30A4\u30F3\u3057\u3066\u9806\u4F4D\u3092\u898B\u308B \u2192",myRank:"\u4ECA\u6708\u306E\u9806\u4F4D\u306F #{rank}",footer:"\u4ECA\u6708\u306E\u30B0\u30ED\u30FC\u30D0\u30EB\u8CA2\u732E\u8005 \xB7 \u30DD\u30A4\u30F3\u30C8\u306F\u6BCE\u6708\u30EA\u30BB\u30C3\u30C8",anon:"\u533F\u540D"},account:{title:"Mushi \u30A2\u30AB\u30A6\u30F3\u30C8",checkEmailTitle:"\u30E1\u30FC\u30EB\u3092\u78BA\u8A8D",joinTitle:"\u30B3\u30DF\u30E5\u30CB\u30C6\u30A3\u306B\u53C2\u52A0",emailLabel:"\u30E1\u30FC\u30EB\u30A2\u30C9\u30EC\u30B9",emailPlaceholder:"\u30E1\u30FC\u30EB",signInPrompt:"\u30B5\u30A4\u30F3\u30A4\u30F3\u3059\u308B\u3068\u5168\u30A2\u30D7\u30EA\u306E\u30EC\u30DD\u30FC\u30C8\u3068\u30E9\u30F3\u30AD\u30F3\u30B0\u304C\u898B\u3089\u308C\u307E\u3059\u3002\u30D1\u30B9\u30EF\u30FC\u30C9\u4E0D\u8981\u3002",magicLinkSent:"{email} \u306B\u30B5\u30A4\u30F3\u30A4\u30F3\u30EA\u30F3\u30AF\u3092\u9001\u308A\u307E\u3057\u305F\u3002\u30EA\u30F3\u30AF\u3092\u958B\u3044\u3066\u30EC\u30DD\u30FC\u30C8\u3092\u63A5\u7D9A\u3057\u3066\u304F\u3060\u3055\u3044\u3002",resendEmail:"\u30E1\u30FC\u30EB\u3092\u518D\u9001",sendLink:"\u30B5\u30A4\u30F3\u30A4\u30F3\u30EA\u30F3\u30AF\u3092\u9001\u308B",sending:"\u9001\u4FE1\u4E2D\u2026",crossAppReports:"\u5168\u30A2\u30D7\u30EA\u306E\u30EC\u30DD\u30FC\u30C8 \u2192",viewLeaderboard:"\u30B0\u30ED\u30FC\u30D0\u30EB\u30E9\u30F3\u30AD\u30F3\u30B0 \u2192",signOut:"\u30B5\u30A4\u30F3\u30A2\u30A6\u30C8",rankSummary:"\u9806\u4F4D #{rank} \xB7 \u4ECA\u6708 {points} pts"},crossApp:{title:"\u30DE\u30A4\u30EC\u30DD\u30FC\u30C8",loading:"\u30EC\u30DD\u30FC\u30C8\u3092\u8AAD\u307F\u8FBC\u307F\u4E2D\u2026",empty:"\u307E\u3060\u30EC\u30DD\u30FC\u30C8\u304C\u3042\u308A\u307E\u305B\u3093\u3002",unknownApp:"\u4E0D\u660E\u306A\u30A2\u30D7\u30EA"},thread:{title:"\u30EC\u30DD\u30FC\u30C8\u30B9\u30EC\u30C3\u30C9",loading:"\u30B9\u30EC\u30C3\u30C9\u3092\u8AAD\u307F\u8FBC\u307F\u4E2D\u2026",empty:"\u958B\u767A\u8005\u304B\u3089\u306E\u8FD4\u4FE1\u306F\u307E\u3060\u3042\u308A\u307E\u305B\u3093\u3002",confirmFixed:"\u306F\u3044\u3001\u76F4\u308A\u307E\u3057\u305F",notFixed:"\u307E\u3060\u76F4\u3063\u3066\u3044\u307E\u305B\u3093",replyPlaceholder:"\u958B\u767A\u8005\u306B\u8FD4\u4FE1\u2026",send:"\u9001\u4FE1"},success:{trackReport:"\u3053\u306E\u30EC\u30DD\u30FC\u30C8\u3092\u8FFD\u8DE1 \u203A",receipt:"\u53D7\u4ED8",delivering:"\u30C1\u30FC\u30E0\u306B\u9001\u4FE1\u4E2D\u2026",queuedOffline:"\u30AA\u30D5\u30E9\u30A4\u30F3\u5F85\u6A5F\u4E2D",queuedHint:"\u30AA\u30F3\u30E9\u30A4\u30F3\u306B\u623B\u308A\u6B21\u7B2C\u9001\u4FE1\u3057\u307E\u3059\u3002",rateLimited:"\u9001\u4FE1\u304C\u65E9\u3059\u304E\u307E\u3059",rateLimitedHint:"\u7D041\u5206\u5F85\u3063\u3066\u304F\u3060\u3055\u3044\u3002\u30EC\u30DD\u30FC\u30C8\u306F\u30AD\u30E5\u30FC\u306B\u5165\u308A\u3001\u81EA\u52D5\u3067\u518D\u9001\u3057\u307E\u3059\u3002",quotaBlocked:"\u3053\u306E\u30EC\u30DD\u30FC\u30C8\u306F\u53D7\u3051\u4ED8\u3051\u3089\u308C\u307E\u305B\u3093\u3067\u3057\u305F",quotaBlockedHint:"\u30D7\u30ED\u30B8\u30A7\u30AF\u30C8\u306E\u67A0\u307E\u305F\u306F\u30D7\u30E9\u30F3\u3067\u62D2\u5426\u3055\u308C\u307E\u3057\u305F\u3002\u30A2\u30D7\u30EA\u7BA1\u7406\u8005\u306B Billing \u3092\u78BA\u8A8D\u3057\u3066\u3082\u3089\u3063\u3066\u304F\u3060\u3055\u3044\u3002",permanentFailed:"\u30EC\u30DD\u30FC\u30C8\u3092\u9001\u308C\u307E\u305B\u3093\u3067\u3057\u305F",permanentFailedHint:"\u30DA\u30A4\u30ED\u30FC\u30C9\u304C\u62D2\u5426\u3055\u308C\u307E\u3057\u305F\uFF08\u30B5\u30A4\u30BA\u8D85\u904E\u306A\u3069\uFF09\u3002\u77ED\u3044\u6587\u9762\u304B\u30B9\u30AF\u30EA\u30FC\u30F3\u30B7\u30E7\u30C3\u30C8\u306A\u3057\u3067\u518D\u8A66\u884C\u3057\u3066\u304F\u3060\u3055\u3044\u3002",retrying:"\u30AD\u30E5\u30FC \u2014 \u518D\u8A66\u884C\u4E2D",retryingHint:"\u3044\u307E\u30B5\u30FC\u30D0\u30FC\u306B\u5C4A\u304D\u307E\u305B\u3093\u3067\u3057\u305F\u3002\u30D0\u30C3\u30AF\u30B0\u30E9\u30A6\u30F3\u30C9\u3067\u518D\u9001\u3057\u307E\u3059\u3002",trackOnMushi:"Mushi\u3067\u8FFD\u8DE1",slaDefault:"\u30EC\u30DD\u30FC\u30C8\u3092\u78BA\u8A8D\u3057\u307E\u3059\u3002",screenshotDropped:"\u30B9\u30AF\u30EA\u30FC\u30F3\u30B7\u30E7\u30C3\u30C8\u306F\u30B5\u30A4\u30BA\u8D85\u904E\u306E\u305F\u3081\u6DFB\u4ED8\u3067\u304D\u305A\u3001\u30EC\u30DD\u30FC\u30C8\u306E\u307F\u9001\u4FE1\u3057\u307E\u3057\u305F\u3002"},featureRequest:{label:"\u6A5F\u80FD\u30EA\u30AF\u30A8\u30B9\u30C8",description:"\u5909\u66F4\u3092\u63D0\u6848"},betaStrip:{defaultMessage:"{appName}\u306F\u958B\u767A\u521D\u671F\u6BB5\u968E\u3067\u3059",contactHint:"\u30EC\u30DD\u30FC\u30C8\u306F {email} \u306B\u5C4A\u304D\u3001\u30C1\u30FC\u30E0\u304C\u78BA\u8A8D\u3057\u307E\u3059",ariaLabel:"\u30D9\u30FC\u30BF\u7248\u306E\u304A\u77E5\u3089\u305B"},changelog:{whatsNew:"{version} \u306E\u65B0\u6A5F\u80FD"},poweredBy:"\u30D0\u30B0\u5831\u544A\u306F Mushi \u3067"}};var hi={widget:{trigger:"\u0E23\u0E32\u0E22\u0E07\u0E32\u0E19\u0E1B\u0E31\u0E0D\u0E2B\u0E32",title:"\u0E23\u0E32\u0E22\u0E07\u0E32\u0E19\u0E1B\u0E31\u0E0D\u0E2B\u0E32",close:"\u0E1B\u0E34\u0E14",back:"\u0E01\u0E25\u0E31\u0E1A",submit:"\u0E2A\u0E48\u0E07",submitting:"\u0E01\u0E33\u0E25\u0E31\u0E07\u0E2A\u0E48\u0E07\u2026",submitted:"\u0E02\u0E2D\u0E1A\u0E04\u0E38\u0E13\u0E04\u0E23\u0E31\u0E1A/\u0E04\u0E48\u0E30! \u0E23\u0E32\u0E22\u0E07\u0E32\u0E19\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13\u0E16\u0E39\u0E01\u0E2A\u0E48\u0E07\u0E41\u0E25\u0E49\u0E27",error:"\u0E40\u0E01\u0E34\u0E14\u0E02\u0E49\u0E2D\u0E1C\u0E34\u0E14\u0E1E\u0E25\u0E32\u0E14 \u0E01\u0E23\u0E38\u0E13\u0E32\u0E25\u0E2D\u0E07\u0E43\u0E2B\u0E21\u0E48\u0E2D\u0E35\u0E01\u0E04\u0E23\u0E31\u0E49\u0E07"},step1:{heading:"\u0E1B\u0E31\u0E0D\u0E2B\u0E32\u0E1B\u0E23\u0E30\u0E40\u0E20\u0E17\u0E44\u0E2B\u0E19?",reportSectionLabel:"\u0E23\u0E32\u0E22\u0E07\u0E32\u0E19\u0E1B\u0E31\u0E0D\u0E2B\u0E32",moreNavLabel:"\u0E40\u0E1E\u0E34\u0E48\u0E21\u0E40\u0E15\u0E34\u0E21",moreNav:{yourReports:"\u0E23\u0E32\u0E22\u0E07\u0E32\u0E19\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13",yourReportsDesc:"\u0E14\u0E39\u0E2A\u0E16\u0E32\u0E19\u0E30 \u0E04\u0E33\u0E15\u0E2D\u0E1A\u0E08\u0E32\u0E01\u0E19\u0E31\u0E01\u0E1E\u0E31\u0E12\u0E19\u0E32 \u0E41\u0E25\u0E30\u0E15\u0E2D\u0E1A\u0E01\u0E25\u0E31\u0E1A",unreadNew:"\u0E43\u0E2B\u0E21\u0E48",communityIdeas:"\u0E44\u0E2D\u0E40\u0E14\u0E35\u0E22\u0E08\u0E32\u0E01\u0E0A\u0E38\u0E21\u0E0A\u0E19",communityIdeasDesc:"\u0E42\u0E2B\u0E27\u0E15\u0E1F\u0E35\u0E40\u0E08\u0E2D\u0E23\u0E4C\u0E41\u0E25\u0E30\u0E14\u0E39\u0E2A\u0E34\u0E48\u0E07\u0E17\u0E35\u0E48\u0E1B\u0E25\u0E48\u0E2D\u0E22\u0E41\u0E25\u0E49\u0E27",leaderboard:"\u0E01\u0E23\u0E30\u0E14\u0E32\u0E19\u0E1C\u0E39\u0E49\u0E19\u0E33",joinCommunity:"\u0E40\u0E02\u0E49\u0E32\u0E23\u0E48\u0E27\u0E21\u0E0A\u0E38\u0E21\u0E0A\u0E19 \xB7 \u0E15\u0E34\u0E14\u0E15\u0E32\u0E21\u0E23\u0E32\u0E22\u0E07\u0E32\u0E19\u0E02\u0E49\u0E32\u0E21\u0E41\u0E2D\u0E1B",myAccount:"\u0E1A\u0E31\u0E0D\u0E0A\u0E35\u0E02\u0E2D\u0E07\u0E09\u0E31\u0E19"},categories:{bug:"\u0E1A\u0E31\u0E01",slow:"\u0E0A\u0E49\u0E32 / \u0E41\u0E25\u0E04",visual:"\u0E41\u0E2A\u0E14\u0E07\u0E1C\u0E25\u0E1C\u0E34\u0E14\u0E1B\u0E01\u0E15\u0E34",confusing:"\u0E2A\u0E31\u0E1A\u0E2A\u0E19",other:"\u0E2D\u0E37\u0E48\u0E19\u0E46"},categoryDescriptions:{bug:"\u0E21\u0E35\u0E1A\u0E32\u0E07\u0E2D\u0E22\u0E48\u0E32\u0E07\u0E40\u0E2A\u0E35\u0E22\u0E2B\u0E23\u0E37\u0E2D\u0E17\u0E33\u0E07\u0E32\u0E19\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07",slow:"\u0E1B\u0E31\u0E0D\u0E2B\u0E32\u0E1B\u0E23\u0E30\u0E2A\u0E34\u0E17\u0E18\u0E34\u0E20\u0E32\u0E1E\u0E2B\u0E23\u0E37\u0E2D\u0E42\u0E2B\u0E25\u0E14\u0E0A\u0E49\u0E32",visual:"\u0E1B\u0E31\u0E0D\u0E2B\u0E32\u0E40\u0E25\u0E22\u0E4C\u0E40\u0E2D\u0E32\u0E15\u0E4C \u0E2A\u0E44\u0E15\u0E25\u0E4C \u0E2B\u0E23\u0E37\u0E2D\u0E01\u0E32\u0E23\u0E41\u0E2A\u0E14\u0E07\u0E1C\u0E25",confusing:"\u0E40\u0E02\u0E49\u0E32\u0E43\u0E08\u0E22\u0E32\u0E01\u0E2B\u0E23\u0E37\u0E2D\u0E19\u0E33\u0E17\u0E32\u0E07\u0E22\u0E32\u0E01",other:"\u0E2D\u0E22\u0E48\u0E32\u0E07\u0E2D\u0E37\u0E48\u0E19"},moreCategoriesLabel:"\u0E1B\u0E23\u0E30\u0E40\u0E20\u0E17\u0E1B\u0E31\u0E0D\u0E2B\u0E32\u0E2D\u0E37\u0E48\u0E19 \u0E46",moreCategoriesCount:"\u0E2D\u0E35\u0E01 {n} \u0E23\u0E32\u0E22\u0E01\u0E32\u0E23"},step2:{heading:"\u0E40\u0E01\u0E34\u0E14\u0E2D\u0E30\u0E44\u0E23\u0E02\u0E36\u0E49\u0E19?",intents:{bug:["\u0E41\u0E04\u0E23\u0E0A","\u0E44\u0E21\u0E48\u0E15\u0E2D\u0E1A\u0E2A\u0E19\u0E2D\u0E07","\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E2B\u0E32\u0E22","\u0E1C\u0E25\u0E25\u0E31\u0E1E\u0E18\u0E4C\u0E1C\u0E34\u0E14","\u0E2D\u0E37\u0E48\u0E19\u0E46"],slow:["\u0E42\u0E2B\u0E25\u0E14\u0E2B\u0E19\u0E49\u0E32","\u0E01\u0E32\u0E23\u0E42\u0E15\u0E49\u0E15\u0E2D\u0E1A","API","\u0E41\u0E2D\u0E19\u0E34\u0E40\u0E21\u0E0A\u0E31\u0E19","\u0E2D\u0E37\u0E48\u0E19\u0E46"],visual:["\u0E40\u0E25\u0E22\u0E4C\u0E40\u0E2D\u0E32\u0E15\u0E4C\u0E40\u0E2A\u0E35\u0E22","\u0E0B\u0E49\u0E2D\u0E19\u0E17\u0E31\u0E1A","\u0E2D\u0E07\u0E04\u0E4C\u0E1B\u0E23\u0E30\u0E01\u0E2D\u0E1A\u0E2B\u0E32\u0E22","\u0E2A\u0E35/\u0E1F\u0E2D\u0E19\u0E15\u0E4C\u0E1C\u0E34\u0E14","\u0E2D\u0E37\u0E48\u0E19\u0E46"],confusing:["\u0E1B\u0E49\u0E32\u0E22\u0E44\u0E21\u0E48\u0E0A\u0E31\u0E14","\u0E44\u0E21\u0E48\u0E21\u0E35\u0E04\u0E33\u0E41\u0E19\u0E30\u0E19\u0E33","\u0E02\u0E31\u0E49\u0E19\u0E15\u0E2D\u0E19\u0E44\u0E21\u0E48\u0E04\u0E32\u0E14\u0E04\u0E34\u0E14","\u0E2B\u0E25\u0E07\u0E17\u0E32\u0E07","\u0E2D\u0E37\u0E48\u0E19\u0E46"],other:["\u0E02\u0E2D\u0E1F\u0E35\u0E40\u0E08\u0E2D\u0E23\u0E4C","\u0E01\u0E32\u0E23\u0E40\u0E02\u0E49\u0E32\u0E16\u0E36\u0E07","\u0E1E\u0E34\u0E21\u0E1E\u0E4C\u0E1C\u0E34\u0E14","\u0E2D\u0E37\u0E48\u0E19\u0E46"]}},step3:{heading:"\u0E1A\u0E2D\u0E01\u0E40\u0E23\u0E32\u0E40\u0E1E\u0E34\u0E48\u0E21\u0E40\u0E15\u0E34\u0E21",descriptionPlaceholder:"\u0E2D\u0E18\u0E34\u0E1A\u0E32\u0E22\u0E2A\u0E34\u0E48\u0E07\u0E17\u0E35\u0E48\u0E40\u0E01\u0E34\u0E14\u0E02\u0E36\u0E49\u0E19\u2026",screenshotButton:"\u0E41\u0E19\u0E1A\u0E2A\u0E01\u0E23\u0E35\u0E19\u0E0A\u0E47\u0E2D\u0E15",screenshotAttached:"\u0E41\u0E19\u0E1A\u0E2A\u0E01\u0E23\u0E35\u0E19\u0E0A\u0E47\u0E2D\u0E15\u0E41\u0E25\u0E49\u0E27 \u2713",screenshotCapturing:"\u0E01\u0E33\u0E25\u0E31\u0E07\u0E16\u0E48\u0E32\u0E22\u0E2A\u0E01\u0E23\u0E35\u0E19\u0E0A\u0E47\u0E2D\u0E15\u2026",screenshotFailed:"\u0E44\u0E21\u0E48\u0E2A\u0E32\u0E21\u0E32\u0E23\u0E16\u0E16\u0E48\u0E32\u0E22\u0E20\u0E32\u0E1E\u0E44\u0E14\u0E49 \u2014 \u0E42\u0E1B\u0E23\u0E14\u0E2D\u0E18\u0E34\u0E1A\u0E32\u0E22\u0E41\u0E17\u0E19",screenshotPreviewAlt:"\u0E15\u0E31\u0E27\u0E2D\u0E22\u0E48\u0E32\u0E07\u0E2A\u0E01\u0E23\u0E35\u0E19\u0E0A\u0E47\u0E2D\u0E15\u0E17\u0E35\u0E48\u0E08\u0E30\u0E16\u0E39\u0E01\u0E2A\u0E48\u0E07",screenshotSensitiveHint:"\u0E15\u0E23\u0E27\u0E08\u0E2A\u0E2D\u0E1A\u0E15\u0E31\u0E27\u0E2D\u0E22\u0E48\u0E32\u0E07\u0E20\u0E32\u0E1E \u2014 \u0E2B\u0E32\u0E01\u0E21\u0E35\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E2A\u0E48\u0E27\u0E19\u0E15\u0E31\u0E27 (\u0E22\u0E2D\u0E14\u0E40\u0E07\u0E34\u0E19 \u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E2A\u0E48\u0E27\u0E19\u0E1A\u0E38\u0E04\u0E04\u0E25) \u0E42\u0E1B\u0E23\u0E14\u0E25\u0E1A\u0E2D\u0E2D\u0E01",elementButton:"\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E2D\u0E07\u0E04\u0E4C\u0E1B\u0E23\u0E30\u0E01\u0E2D\u0E1A",elementSelected:"\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E2D\u0E07\u0E04\u0E4C\u0E1B\u0E23\u0E30\u0E01\u0E2D\u0E1A\u0E41\u0E25\u0E49\u0E27 \u2713",elementCapturing:"\u0E04\u0E25\u0E34\u0E01\u0E2D\u0E07\u0E04\u0E4C\u0E1B\u0E23\u0E30\u0E01\u0E2D\u0E1A\u0E1A\u0E19\u0E2B\u0E19\u0E49\u0E32\u2026",elementFailed:"\u0E44\u0E21\u0E48\u0E2A\u0E32\u0E21\u0E32\u0E23\u0E16\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E44\u0E14\u0E49 \u2014 \u0E42\u0E1B\u0E23\u0E14\u0E2D\u0E18\u0E34\u0E1A\u0E32\u0E22\u0E41\u0E17\u0E19",elementSelectorHint:"\u0E04\u0E25\u0E34\u0E01\u0E2D\u0E07\u0E04\u0E4C\u0E1B\u0E23\u0E30\u0E01\u0E2D\u0E1A\u0E43\u0E14\u0E01\u0E47\u0E44\u0E14\u0E49 \xB7 Esc \u0E40\u0E1E\u0E37\u0E48\u0E2D\u0E22\u0E01\u0E40\u0E25\u0E34\u0E01",optional:"(\u0E44\u0E21\u0E48\u0E1A\u0E31\u0E07\u0E04\u0E31\u0E1A)",tooShort:"\u0E01\u0E23\u0E38\u0E13\u0E32\u0E43\u0E2B\u0E49\u0E23\u0E32\u0E22\u0E25\u0E30\u0E40\u0E2D\u0E35\u0E22\u0E14\u0E40\u0E1E\u0E34\u0E48\u0E21\u0E40\u0E15\u0E34\u0E21",examplePrompts:["\u0E1B\u0E38\u0E48\u0E21\u0E1A\u0E31\u0E19\u0E17\u0E36\u0E01\u0E44\u0E21\u0E48\u0E17\u0E33\u0E07\u0E32\u0E19","\u0E2B\u0E19\u0E49\u0E32\u0E04\u0E49\u0E32\u0E07\u0E19\u0E32\u0E19 10 \u0E27\u0E34\u0E19\u0E32\u0E17\u0E35","\u0E40\u0E25\u0E22\u0E4C\u0E40\u0E2D\u0E32\u0E15\u0E4C\u0E1E\u0E31\u0E07"]},assistant:{defaultLabel:"\u0E16\u0E32\u0E21",defaultGreeting:"\u0E16\u0E32\u0E21\u0E40\u0E01\u0E35\u0E48\u0E22\u0E27\u0E01\u0E31\u0E1A\u0E2B\u0E19\u0E49\u0E32\u0E19\u0E35\u0E49 \u2014 \u0E43\u0E0A\u0E49\u0E40\u0E09\u0E1E\u0E32\u0E30\u0E2A\u0E34\u0E48\u0E07\u0E17\u0E35\u0E48\u0E04\u0E38\u0E13\u0E40\u0E2B\u0E47\u0E19\u0E1A\u0E19\u0E2B\u0E19\u0E49\u0E32\u0E08\u0E2D",inputPlaceholder:"\u0E1E\u0E34\u0E21\u0E1E\u0E4C\u0E04\u0E33\u0E16\u0E32\u0E21\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13\u2026",sendAriaLabel:"\u0E2A\u0E48\u0E07",hubDescription:"\u0E02\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E0A\u0E48\u0E27\u0E22\u0E40\u0E2B\u0E25\u0E37\u0E2D\u0E43\u0E19\u0E01\u0E32\u0E23\u0E43\u0E0A\u0E49\u0E41\u0E2D\u0E1B",thinking:"\u0E01\u0E33\u0E25\u0E31\u0E07\u0E04\u0E34\u0E14\u2026",fileReportCta:"\u0E2A\u0E48\u0E07\u0E23\u0E32\u0E22\u0E07\u0E32\u0E19\u0E41\u0E17\u0E19",stillStuckCta:"\u0E22\u0E31\u0E07\u0E41\u0E01\u0E49\u0E44\u0E21\u0E48\u0E44\u0E14\u0E49? \u0E2A\u0E48\u0E07\u0E23\u0E32\u0E22\u0E07\u0E32\u0E19",errors:{noResponse:"\u0E44\u0E21\u0E48\u0E21\u0E35\u0E01\u0E32\u0E23\u0E15\u0E2D\u0E1A\u0E01\u0E25\u0E31\u0E1A \u2014 \u0E15\u0E23\u0E27\u0E08\u0E2A\u0E2D\u0E1A\u0E01\u0E32\u0E23\u0E40\u0E0A\u0E37\u0E48\u0E2D\u0E21\u0E15\u0E48\u0E2D\u0E41\u0E25\u0E49\u0E27\u0E25\u0E2D\u0E07\u0E2D\u0E35\u0E01\u0E04\u0E23\u0E31\u0E49\u0E07",generic:"\u0E40\u0E0A\u0E37\u0E48\u0E2D\u0E21\u0E15\u0E48\u0E2D\u0E1C\u0E39\u0E49\u0E0A\u0E48\u0E27\u0E22\u0E44\u0E21\u0E48\u0E44\u0E14\u0E49 \u0E25\u0E2D\u0E07\u0E2D\u0E35\u0E01\u0E04\u0E23\u0E31\u0E49\u0E07\u0E43\u0E19\u0E2D\u0E35\u0E01\u0E2A\u0E31\u0E01\u0E04\u0E23\u0E39\u0E48"}},flows:{eyebrows:{inbox:"Mushi \xB7 \u0E01\u0E25\u0E48\u0E2D\u0E07\u0E02\u0E32\u0E40\u0E02\u0E49\u0E32",roadmap:"Mushi \xB7 \u0E44\u0E2D\u0E40\u0E14\u0E35\u0E22",community:"Mushi \xB7 \u0E0A\u0E38\u0E21\u0E0A\u0E19",identity:"Mushi \xB7 \u0E1A\u0E31\u0E0D\u0E0A\u0E35",signIn:"Mushi \xB7 \u0E40\u0E02\u0E49\u0E32\u0E2A\u0E39\u0E48\u0E23\u0E30\u0E1A\u0E1A",allApps:"Mushi \xB7 \u0E17\u0E38\u0E01\u0E41\u0E2D\u0E1B",receipt:"Mushi \xB7 \u0E43\u0E1A\u0E23\u0E31\u0E1A",thread:"Mushi \xB7 \u0E01\u0E25\u0E48\u0E2D\u0E07\u0E02\u0E32\u0E40\u0E02\u0E49\u0E32"},reports:{title:"\u0E23\u0E32\u0E22\u0E07\u0E32\u0E19\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13",loading:"\u0E01\u0E33\u0E25\u0E31\u0E07\u0E42\u0E2B\u0E25\u0E14\u0E23\u0E32\u0E22\u0E07\u0E32\u0E19\u2026",empty:"\u0E22\u0E31\u0E07\u0E44\u0E21\u0E48\u0E21\u0E35\u0E23\u0E32\u0E22\u0E07\u0E32\u0E19\u0E08\u0E32\u0E01\u0E40\u0E1A\u0E23\u0E32\u0E27\u0E4C\u0E40\u0E0B\u0E2D\u0E23\u0E4C\u0E19\u0E35\u0E49",leaderboardLink:"\u0E01\u0E23\u0E30\u0E14\u0E32\u0E19\u0E1C\u0E39\u0E49\u0E19\u0E33"},roadmap:{title:"\u0E44\u0E2D\u0E40\u0E14\u0E35\u0E22\u0E08\u0E32\u0E01\u0E0A\u0E38\u0E21\u0E0A\u0E19",loading:"\u0E01\u0E33\u0E25\u0E31\u0E07\u0E42\u0E2B\u0E25\u0E14\u0E44\u0E2D\u0E40\u0E14\u0E35\u0E22\u2026",empty:"\u0E22\u0E31\u0E07\u0E44\u0E21\u0E48\u0E21\u0E35\u0E44\u0E2D\u0E40\u0E14\u0E35\u0E22 \u0E40\u0E1B\u0E47\u0E19\u0E04\u0E19\u0E41\u0E23\u0E01\u0E17\u0E35\u0E48\u0E40\u0E2A\u0E19\u0E2D\u0E44\u0E14\u0E49",shipped:"\u0E1B\u0E25\u0E48\u0E2D\u0E22\u0E41\u0E25\u0E49\u0E27",vote:"\u0E42\u0E2B\u0E27\u0E15",voted:"\u0E42\u0E2B\u0E27\u0E15\u0E41\u0E25\u0E49\u0E27",voteCount:"{n} \u0E42\u0E2B\u0E27\u0E15",untitled:"\u0E44\u0E2D\u0E40\u0E14\u0E35\u0E22\u0E44\u0E21\u0E48\u0E21\u0E35\u0E0A\u0E37\u0E48\u0E2D"},leaderboard:{title:"\u0E01\u0E23\u0E30\u0E14\u0E32\u0E19\u0E1C\u0E39\u0E49\u0E19\u0E33\u0E17\u0E31\u0E48\u0E27\u0E42\u0E25\u0E01",loading:"\u0E01\u0E33\u0E25\u0E31\u0E07\u0E42\u0E2B\u0E25\u0E14\u0E01\u0E23\u0E30\u0E14\u0E32\u0E19\u0E1C\u0E39\u0E49\u0E19\u0E33\u2026",empty:"\u0E22\u0E31\u0E07\u0E44\u0E21\u0E48\u0E21\u0E35\u0E1C\u0E39\u0E49\u0E23\u0E48\u0E27\u0E21\u0E2A\u0E19\u0E31\u0E1A\u0E2A\u0E19\u0E38\u0E19 \u2014 \u0E21\u0E32\u0E40\u0E1B\u0E47\u0E19\u0E04\u0E19\u0E41\u0E23\u0E01",signInPrompt:"\u0E40\u0E02\u0E49\u0E32\u0E2A\u0E39\u0E48\u0E23\u0E30\u0E1A\u0E1A\u0E40\u0E1E\u0E37\u0E48\u0E2D\u0E14\u0E39\u0E2D\u0E31\u0E19\u0E14\u0E31\u0E1A\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13 \u2192",myRank:"\u0E2D\u0E31\u0E19\u0E14\u0E31\u0E1A\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13\u0E04\u0E37\u0E2D #{rank} \u0E40\u0E14\u0E37\u0E2D\u0E19\u0E19\u0E35\u0E49",footer:"\u0E1C\u0E39\u0E49\u0E23\u0E48\u0E27\u0E21\u0E2A\u0E19\u0E31\u0E1A\u0E2A\u0E19\u0E38\u0E19\u0E17\u0E31\u0E48\u0E27\u0E42\u0E25\u0E01\u0E40\u0E14\u0E37\u0E2D\u0E19\u0E19\u0E35\u0E49 \xB7 \u0E04\u0E30\u0E41\u0E19\u0E19\u0E23\u0E35\u0E40\u0E0B\u0E47\u0E15\u0E17\u0E38\u0E01\u0E40\u0E14\u0E37\u0E2D\u0E19",anon:"\u0E44\u0E21\u0E48\u0E23\u0E30\u0E1A\u0E38\u0E0A\u0E37\u0E48\u0E2D"},account:{title:"\u0E1A\u0E31\u0E0D\u0E0A\u0E35 Mushi",checkEmailTitle:"\u0E15\u0E23\u0E27\u0E08\u0E2A\u0E2D\u0E1A\u0E2D\u0E35\u0E40\u0E21\u0E25",joinTitle:"\u0E40\u0E02\u0E49\u0E32\u0E23\u0E48\u0E27\u0E21\u0E0A\u0E38\u0E21\u0E0A\u0E19",emailLabel:"\u0E17\u0E35\u0E48\u0E2D\u0E22\u0E39\u0E48\u0E2D\u0E35\u0E40\u0E21\u0E25",emailPlaceholder:"\u0E2D\u0E35\u0E40\u0E21\u0E25",signInPrompt:"\u0E40\u0E02\u0E49\u0E32\u0E2A\u0E39\u0E48\u0E23\u0E30\u0E1A\u0E1A\u0E40\u0E1E\u0E37\u0E48\u0E2D\u0E14\u0E39\u0E23\u0E32\u0E22\u0E07\u0E32\u0E19\u0E17\u0E38\u0E01\u0E41\u0E2D\u0E1B\u0E41\u0E25\u0E30\u0E44\u0E15\u0E48\u0E2D\u0E31\u0E19\u0E14\u0E31\u0E1A \u0E44\u0E21\u0E48\u0E15\u0E49\u0E2D\u0E07\u0E43\u0E0A\u0E49\u0E23\u0E2B\u0E31\u0E2A\u0E1C\u0E48\u0E32\u0E19",magicLinkSent:"\u0E40\u0E23\u0E32\u0E2A\u0E48\u0E07\u0E25\u0E34\u0E07\u0E01\u0E4C\u0E40\u0E02\u0E49\u0E32\u0E2A\u0E39\u0E48\u0E23\u0E30\u0E1A\u0E1A\u0E44\u0E1B\u0E17\u0E35\u0E48 {email} \u0E41\u0E25\u0E49\u0E27 \u0E04\u0E25\u0E34\u0E01\u0E40\u0E1E\u0E37\u0E48\u0E2D\u0E40\u0E0A\u0E37\u0E48\u0E2D\u0E21\u0E23\u0E32\u0E22\u0E07\u0E32\u0E19\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13",resendEmail:"\u0E2A\u0E48\u0E07\u0E2D\u0E35\u0E40\u0E21\u0E25\u0E2D\u0E35\u0E01\u0E04\u0E23\u0E31\u0E49\u0E07",sendLink:"\u0E2A\u0E48\u0E07\u0E25\u0E34\u0E07\u0E01\u0E4C\u0E40\u0E02\u0E49\u0E32\u0E2A\u0E39\u0E48\u0E23\u0E30\u0E1A\u0E1A",sending:"\u0E01\u0E33\u0E25\u0E31\u0E07\u0E2A\u0E48\u0E07\u2026",crossAppReports:"\u0E23\u0E32\u0E22\u0E07\u0E32\u0E19\u0E02\u0E2D\u0E07\u0E09\u0E31\u0E19\u0E17\u0E38\u0E01\u0E41\u0E2D\u0E1B \u2192",viewLeaderboard:"\u0E14\u0E39\u0E01\u0E23\u0E30\u0E14\u0E32\u0E19\u0E1C\u0E39\u0E49\u0E19\u0E33\u0E17\u0E31\u0E48\u0E27\u0E42\u0E25\u0E01 \u2192",signOut:"\u0E2D\u0E2D\u0E01\u0E08\u0E32\u0E01\u0E23\u0E30\u0E1A\u0E1A",rankSummary:"\u0E2D\u0E31\u0E19\u0E14\u0E31\u0E1A #{rank} \xB7 {points} pts \u0E40\u0E14\u0E37\u0E2D\u0E19\u0E19\u0E35\u0E49"},crossApp:{title:"\u0E23\u0E32\u0E22\u0E07\u0E32\u0E19\u0E02\u0E2D\u0E07\u0E09\u0E31\u0E19",loading:"\u0E01\u0E33\u0E25\u0E31\u0E07\u0E42\u0E2B\u0E25\u0E14\u0E23\u0E32\u0E22\u0E07\u0E32\u0E19\u2026",empty:"\u0E22\u0E31\u0E07\u0E44\u0E21\u0E48\u0E21\u0E35\u0E23\u0E32\u0E22\u0E07\u0E32\u0E19",unknownApp:"\u0E41\u0E2D\u0E1B\u0E44\u0E21\u0E48\u0E17\u0E23\u0E32\u0E1A\u0E0A\u0E37\u0E48\u0E2D"},thread:{title:"\u0E40\u0E18\u0E23\u0E14\u0E23\u0E32\u0E22\u0E07\u0E32\u0E19",loading:"\u0E01\u0E33\u0E25\u0E31\u0E07\u0E42\u0E2B\u0E25\u0E14\u0E40\u0E18\u0E23\u0E14\u2026",empty:"\u0E22\u0E31\u0E07\u0E44\u0E21\u0E48\u0E21\u0E35\u0E04\u0E33\u0E15\u0E2D\u0E1A\u0E08\u0E32\u0E01\u0E17\u0E35\u0E21\u0E1E\u0E31\u0E12\u0E19\u0E32",confirmFixed:"\u0E43\u0E0A\u0E48 \u0E41\u0E01\u0E49\u0E41\u0E25\u0E49\u0E27",notFixed:"\u0E22\u0E31\u0E07\u0E44\u0E21\u0E48\u0E41\u0E01\u0E49",replyPlaceholder:"\u0E15\u0E2D\u0E1A\u0E19\u0E31\u0E01\u0E1E\u0E31\u0E12\u0E19\u0E32\u2026",send:"\u0E2A\u0E48\u0E07"},success:{trackReport:"\u0E15\u0E34\u0E14\u0E15\u0E32\u0E21\u0E23\u0E32\u0E22\u0E07\u0E32\u0E19\u0E19\u0E35\u0E49 \u203A",receipt:"\u0E43\u0E1A\u0E23\u0E31\u0E1A",delivering:"\u0E01\u0E33\u0E25\u0E31\u0E07\u0E2A\u0E48\u0E07\u0E44\u0E1B\u0E22\u0E31\u0E07\u0E17\u0E35\u0E21\u2026",queuedOffline:"\u0E04\u0E34\u0E27\u0E2D\u0E2D\u0E1F\u0E44\u0E25\u0E19\u0E4C",queuedHint:"\u0E08\u0E30\u0E2A\u0E48\u0E07\u0E17\u0E31\u0E19\u0E17\u0E35\u0E17\u0E35\u0E48\u0E04\u0E38\u0E13\u0E01\u0E25\u0E31\u0E1A\u0E21\u0E32\u0E2D\u0E2D\u0E19\u0E44\u0E25\u0E19\u0E4C",rateLimited:"\u0E2A\u0E48\u0E07\u0E16\u0E35\u0E48\u0E40\u0E01\u0E34\u0E19\u0E44\u0E1B",rateLimitedHint:"\u0E23\u0E2D\u0E1B\u0E23\u0E30\u0E21\u0E32\u0E13\u0E2B\u0E19\u0E36\u0E48\u0E07\u0E19\u0E32\u0E17\u0E35 \u2014 \u0E40\u0E23\u0E32\u0E08\u0E31\u0E14\u0E04\u0E34\u0E27\u0E23\u0E32\u0E22\u0E07\u0E32\u0E19\u0E19\u0E35\u0E49\u0E44\u0E27\u0E49\u0E41\u0E25\u0E30\u0E08\u0E30\u0E25\u0E2D\u0E07\u0E43\u0E2B\u0E21\u0E48\u0E43\u0E2B\u0E49\u0E2D\u0E31\u0E15\u0E42\u0E19\u0E21\u0E31\u0E15\u0E34",quotaBlocked:"\u0E44\u0E21\u0E48\u0E2A\u0E32\u0E21\u0E32\u0E23\u0E16\u0E23\u0E31\u0E1A\u0E23\u0E32\u0E22\u0E07\u0E32\u0E19\u0E19\u0E35\u0E49\u0E44\u0E14\u0E49",quotaBlockedHint:"\u0E42\u0E04\u0E27\u0E15\u0E49\u0E32\u0E2B\u0E23\u0E37\u0E2D\u0E41\u0E1E\u0E25\u0E19\u0E02\u0E2D\u0E07\u0E42\u0E1B\u0E23\u0E40\u0E08\u0E01\u0E15\u0E4C\u0E1A\u0E25\u0E47\u0E2D\u0E01\u0E01\u0E32\u0E23\u0E2A\u0E48\u0E07 \u0E02\u0E2D\u0E43\u0E2B\u0E49\u0E40\u0E08\u0E49\u0E32\u0E02\u0E2D\u0E07\u0E41\u0E2D\u0E1B\u0E15\u0E23\u0E27\u0E08 Billing",permanentFailed:"\u0E2A\u0E48\u0E07\u0E23\u0E32\u0E22\u0E07\u0E32\u0E19\u0E19\u0E35\u0E49\u0E44\u0E21\u0E48\u0E44\u0E14\u0E49",permanentFailedHint:"\u0E40\u0E1E\u0E22\u0E4C\u0E42\u0E2B\u0E25\u0E14\u0E16\u0E39\u0E01\u0E1B\u0E0F\u0E34\u0E40\u0E2A\u0E18 (\u0E21\u0E31\u0E01\u0E40\u0E1E\u0E23\u0E32\u0E30\u0E43\u0E2B\u0E0D\u0E48\u0E40\u0E01\u0E34\u0E19\u0E44\u0E1B) \u0E25\u0E2D\u0E07\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E2A\u0E31\u0E49\u0E19\u0E25\u0E07\u0E2B\u0E23\u0E37\u0E2D\u0E44\u0E21\u0E48\u0E41\u0E19\u0E1A\u0E20\u0E32\u0E1E\u0E2B\u0E19\u0E49\u0E32\u0E08\u0E2D",retrying:"\u0E2D\u0E22\u0E39\u0E48\u0E43\u0E19\u0E04\u0E34\u0E27 \u2014 \u0E01\u0E33\u0E25\u0E31\u0E07\u0E25\u0E2D\u0E07\u0E43\u0E2B\u0E21\u0E48",retryingHint:"\u0E15\u0E2D\u0E19\u0E19\u0E35\u0E49\u0E15\u0E34\u0E14\u0E15\u0E48\u0E2D\u0E40\u0E0B\u0E34\u0E23\u0E4C\u0E1F\u0E40\u0E27\u0E2D\u0E23\u0E4C\u0E44\u0E21\u0E48\u0E44\u0E14\u0E49 \u0E40\u0E23\u0E32\u0E08\u0E30\u0E25\u0E2D\u0E07\u0E43\u0E2B\u0E21\u0E48\u0E43\u0E19\u0E1E\u0E37\u0E49\u0E19\u0E2B\u0E25\u0E31\u0E07",trackOnMushi:"\u0E15\u0E34\u0E14\u0E15\u0E32\u0E21\u0E1A\u0E19 Mushi",slaDefault:"\u0E40\u0E23\u0E32\u0E08\u0E30\u0E15\u0E23\u0E27\u0E08\u0E2A\u0E2D\u0E1A\u0E23\u0E32\u0E22\u0E07\u0E32\u0E19\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13",screenshotDropped:"\u0E2A\u0E48\u0E07\u0E23\u0E32\u0E22\u0E07\u0E32\u0E19\u0E42\u0E14\u0E22\u0E44\u0E21\u0E48\u0E21\u0E35\u0E20\u0E32\u0E1E\u0E2B\u0E19\u0E49\u0E32\u0E08\u0E2D \u2014 \u0E44\u0E1F\u0E25\u0E4C\u0E43\u0E2B\u0E0D\u0E48\u0E40\u0E01\u0E34\u0E19\u0E01\u0E27\u0E48\u0E32\u0E08\u0E30\u0E41\u0E19\u0E1A\u0E44\u0E14\u0E49"},featureRequest:{label:"\u0E02\u0E2D\u0E1F\u0E35\u0E40\u0E08\u0E2D\u0E23\u0E4C",description:"\u0E40\u0E2A\u0E19\u0E2D\u0E01\u0E32\u0E23\u0E40\u0E1B\u0E25\u0E35\u0E48\u0E22\u0E19\u0E41\u0E1B\u0E25\u0E07"},betaStrip:{defaultMessage:"{appName} \u0E2D\u0E22\u0E39\u0E48\u0E23\u0E30\u0E2B\u0E27\u0E48\u0E32\u0E07\u0E01\u0E32\u0E23\u0E1E\u0E31\u0E12\u0E19\u0E32\u0E0A\u0E48\u0E27\u0E07\u0E15\u0E49\u0E19",contactHint:"\u0E23\u0E32\u0E22\u0E07\u0E32\u0E19\u0E08\u0E30\u0E2A\u0E48\u0E07\u0E44\u0E1B\u0E17\u0E35\u0E48 {email} \xB7 \u0E17\u0E35\u0E21\u0E07\u0E32\u0E19\u0E15\u0E23\u0E27\u0E08\u0E2A\u0E2D\u0E1A\u0E17\u0E38\u0E01\u0E09\u0E1A\u0E31\u0E1A",ariaLabel:"\u0E2A\u0E16\u0E32\u0E19\u0E30\u0E40\u0E1A\u0E15\u0E49\u0E32"},changelog:{whatsNew:"\u0E21\u0E35\u0E2D\u0E30\u0E44\u0E23\u0E43\u0E2B\u0E21\u0E48\u0E43\u0E19 {version}"},poweredBy:"\u0E23\u0E32\u0E22\u0E07\u0E32\u0E19\u0E1A\u0E31\u0E4A\u0E01\u0E42\u0E14\u0E22 Mushi"}};var fi={widget:{trigger:"Reportar problema",title:"Reportar un problema",close:"Cerrar",back:"Volver",submit:"Enviar",submitting:"Enviando\u2026",submitted:"\xA1Gracias! Tu reporte ha sido enviado.",error:"No se pudo enviar tu reporte. Revisa tu conexi\xF3n e int\xE9ntalo de nuevo."},step1:{heading:"\xBFQu\xE9 tipo de problema?",reportSectionLabel:"Reportar un problema",moreNavLabel:"M\xE1s",moreNav:{yourReports:"Tus reportes",yourReportsDesc:"Ver estado, respuestas del desarrollador y responder",unreadNew:"nuevos",communityIdeas:"Ideas de la comunidad",communityIdeasDesc:"Vota funciones y mira qu\xE9 se lanz\xF3",leaderboard:"Clasificaci\xF3n",joinCommunity:"Unirse a la comunidad \xB7 Rastrea reportes entre apps",myAccount:"Mi cuenta"},categories:{bug:"Error",slow:"Lento",visual:"Problema visual",confusing:"Confuso",other:"Otro"},categoryDescriptions:{bug:"Algo est\xE1 roto o no funciona",slow:"Problema de rendimiento o carga lenta",visual:"Problema de dise\xF1o, estilo o visualizaci\xF3n",confusing:"Dif\xEDcil de entender o navegar",other:"Otro problema"},moreCategoriesLabel:"M\xE1s tipos de problemas",moreCategoriesCount:"{n} m\xE1s"},step2:{heading:"\xBFQu\xE9 pas\xF3?",intents:{bug:["Cierre inesperado","Sin respuesta","P\xE9rdida de datos","Resultado incorrecto","Otro"],slow:["Carga de p\xE1gina","Interacci\xF3n","Llamada API","Animaci\xF3n","Otro"],visual:["Layout roto","Superposici\xF3n","Elemento faltante","Color/fuente incorrecta","Otro"],confusing:["Etiqueta confusa","Sin ayuda","Flujo inesperado","Navegaci\xF3n perdida","Otro"],other:["Solicitud de funci\xF3n","Accesibilidad","Error tipogr\xE1fico","Otro"]}},step3:{heading:"Cu\xE9ntanos m\xE1s",descriptionPlaceholder:"Describe lo que pas\xF3\u2026",screenshotButton:"Adjuntar captura",screenshotAttached:"Captura adjunta \u2713",screenshotCapturing:"Tomando captura\u2026",screenshotFailed:"No se pudo capturar \u2014 descr\xEDbelo en su lugar",screenshotPreviewAlt:"Vista previa de la captura que se enviar\xE1",screenshotSensitiveHint:"Revisa la vista previa \u2014 qu\xEDtala si se ve informaci\xF3n privada (saldos, datos personales).",elementButton:"Seleccionar elemento",elementSelected:"Elemento seleccionado \u2713",elementCapturing:"Haz clic en cualquier elemento\u2026",elementFailed:"No se pudo seleccionar \u2014 descr\xEDbelo en su lugar",elementSelectorHint:"Clic en cualquier elemento \xB7 Esc para cancelar",optional:"(opcional)",tooShort:"Un poco m\xE1s de detalle nos ayuda a resolverlo",examplePrompts:["El bot\xF3n guardar no responde","La p\xE1gina se congel\xF3 10 segundos","El dise\xF1o se ve roto aqu\xED"]},assistant:{defaultLabel:"Preguntar",defaultGreeting:"Pregunta sobre esta p\xE1gina \u2014 solo uso lo que ves aqu\xED.",inputPlaceholder:"Escribe tu pregunta\u2026",sendAriaLabel:"Enviar",hubDescription:"Obt\xE9n ayuda para usar esta app",thinking:"Pensando\u2026",fileReportCta:"Enviar un informe en su lugar",stillStuckCta:"\xBFSigues atascado? Env\xEDa un informe",errors:{noResponse:"Sin respuesta \u2014 revisa tu conexi\xF3n e int\xE9ntalo de nuevo.",generic:"No se pudo contactar al asistente. Int\xE9ntalo en un momento."}},flows:{eyebrows:{inbox:"Mushi \xB7 Bandeja",roadmap:"Mushi \xB7 Ideas",community:"Mushi \xB7 Comunidad",identity:"Mushi \xB7 Cuenta",signIn:"Mushi \xB7 Acceso",allApps:"Mushi \xB7 Todas las apps",receipt:"Mushi \xB7 Recibo",thread:"Mushi \xB7 Bandeja"},reports:{title:"Tus reportes",loading:"Cargando reportes\u2026",empty:"A\xFAn no hay reportes en este navegador.",leaderboardLink:"Clasificaci\xF3n"},roadmap:{title:"Ideas de la comunidad",loading:"Cargando ideas\u2026",empty:"A\xFAn no hay ideas. S\xE9 el primero en sugerir una.",shipped:"Publicado",vote:"Votar",voted:"Votado",voteCount:"{n} votos",untitled:"Idea sin t\xEDtulo"},leaderboard:{title:"Clasificaci\xF3n global",loading:"Cargando clasificaci\xF3n\u2026",empty:"A\xFAn no hay colaboradores \u2014 s\xE9 el primero.",signInPrompt:"Inicia sesi\xF3n para ver tu puesto \u2192",myRank:"Est\xE1s en el puesto #{rank} este mes",footer:"Colaboradores globales este mes \xB7 Los puntos se reinician mensualmente",anon:"An\xF3nimo"},account:{title:"Cuenta Mushi",checkEmailTitle:"Revisa tu correo",joinTitle:"\xDAnete a la comunidad",emailLabel:"Correo electr\xF3nico",emailPlaceholder:"Correo",signInPrompt:"Inicia sesi\xF3n para ver tus reportes en todas las apps y subir en la clasificaci\xF3n. Sin contrase\xF1a.",magicLinkSent:"Enviamos un enlace de acceso a {email}. \xC1brelo para conectar tus reportes.",resendEmail:"Reenviar correo",sendLink:"Enviar enlace de acceso",sending:"Enviando\u2026",crossAppReports:"Mis reportes en todas las apps \u2192",viewLeaderboard:"Ver clasificaci\xF3n global \u2192",signOut:"Cerrar sesi\xF3n",rankSummary:"Puesto #{rank} \xB7 {points} pts este mes"},crossApp:{title:"Mis reportes",loading:"Cargando tus reportes\u2026",empty:"A\xFAn no has enviado reportes.",unknownApp:"App desconocida"},thread:{title:"Hilo del reporte",loading:"Cargando hilo\u2026",empty:"A\xFAn no hay respuestas del equipo.",confirmFixed:"S\xED, qued\xF3 resuelto",notFixed:"A\xFAn no est\xE1 resuelto",replyPlaceholder:"Responder al desarrollador\u2026",send:"Enviar"},success:{trackReport:"Seguir este reporte \u203A",receipt:"Recibo",delivering:"Enviando al equipo\u2026",queuedOffline:"En cola sin conexi\xF3n",queuedHint:"Lo enviaremos en cuanto vuelvas a estar en l\xEDnea.",rateLimited:"Demasiado r\xE1pido",rateLimitedHint:"Espera un minuto \u2014 encolamos el reporte y lo reintentaremos autom\xE1ticamente.",quotaBlocked:"No se pudo aceptar este reporte",quotaBlockedHint:"La cuota o el plan del proyecto bloque\xF3 el env\xEDo. Pide al due\xF1o que revise Billing.",permanentFailed:"No se pudo enviar este reporte",permanentFailedHint:"El payload fue rechazado (a menudo por tama\xF1o). Intenta con un texto m\xE1s corto o sin captura.",retrying:"En cola \u2014 reintentando",retryingHint:"No pudimos llegar al servidor ahora. Seguiremos intentando en segundo plano.",trackOnMushi:"Seguir en Mushi",slaDefault:"Revisaremos tu reporte.",screenshotDropped:"Enviado sin la captura de pantalla \u2014 era demasiado grande para adjuntarla."},featureRequest:{label:"Solicitud de funci\xF3n",description:"Sugerir un cambio"},betaStrip:{defaultMessage:"{appName} est\xE1 en desarrollo temprano",contactHint:"Los reportes van a {email} \xB7 revisados por el equipo",ariaLabel:"Estado beta"},changelog:{whatsNew:"Novedades de {version}"},poweredBy:"Reportes de errores con Mushi"}};var Bc={en:Hr,ja:pi,th:hi,es:fi};function On(t){let e=t&&t!=="auto"?t:typeof navigator<"u"?navigator.language??navigator.languages?.[0]:void 0;if(!e)return Hr;let r=e.split("-")[0].toLowerCase();return Bc[r]??Hr}function Nc(t){let e=t.replace("#",""),r=e.length===3?e[0]+e[0]+e[1]+e[1]+e[2]+e[2]:e.slice(0,6),n=parseInt(r.slice(0,2),16),s=parseInt(r.slice(2,4),16),o=parseInt(r.slice(4,6),16);return `${n},${s},${o}`}function mi(t,e="",r=""){let n=t==="dark",s=n?"dark":"light",o=Pn(s),a=ti(s,e,r),i=Zo[s];return {isDark:n,paper:o.paper,paperRaised:o.paperRaised,ink:o.ink,inkMuted:o.inkMuted,inkFaint:o.inkFaint,inkDim:o.inkDim,rule:o.rule,ruleStrong:o.ruleStrong,widgetAccent:a.accent,widgetAccentWash:a.accentWash,widgetAccentInk:a.accentInk,widgetAccentShadow:n?An.dark:An.light,accentRgb:Nc(a.accent),shadowInk:n?"0,0,0":"14,13,11",ok:o.ok,danger:o.danger,onAccent:Jo,inverse:Qo,neonBannerBg:Lr.bg,neonBannerFg:Lr.fg,neonBannerBorder:Lr.border,brandBannerBorder:n?Hn.dark:Hn.light,statusSent:i.sent,statusReview:i.review,statusFixing:i.fixing,statusFixed:i.fixed,statusClosedBg:n?"rgba(242,235,221,0.06)":"rgba(14,13,11,0.05)",fontDisplay:Rt.fontDisplay,fontBody:Rt.fontBody,fontMono:Rt.fontMono,easeStamp:Ar.easeStamp,zBanner:Ct.banner,zPanel:Ct.panel,zOverlay:Ct.overlay,fabSize:Tt.fabSize,panelWidth:Tt.panelWidth,panelSheetBreakpoint:Tt.panelSheetBreakpoint}}function gi(t,e="",r=""){let n=mi(t,e,r),{isDark:s,paper:o,paperRaised:a,ink:i,inkMuted:l,inkFaint:h,inkDim:f,rule:p,ruleStrong:y,widgetAccent:u,widgetAccentWash:S,widgetAccentInk:w,widgetAccentShadow:k,accentRgb:_,shadowInk:R,ok:M,danger:g,onAccent:v,inverse:b,neonBannerBg:E,neonBannerFg:I,neonBannerBorder:A,brandBannerBorder:T,statusSent:j,statusReview:X,statusFixing:Q,statusFixed:ee,statusClosedBg:ge,fontDisplay:te,fontBody:Y,fontMono:H,easeStamp:L,zBanner:se,fabSize:G}=n,{sizeBody:Re,sizeLabel:He,lineBody:we}=Rt,{durationFast:$}=Ar,{instant:x,fast:P,base:B,panel:U,slow:W,ring:Pe}=ei,{bannerHeight:xe,gutter:J,panelWidth:oe,panelMaxHeight:Se,panelSheetBreakpoint:fe,edgeTabWidth:ot}=Tt,q=G+_r.comfy,{base:Ye}=Ct,Ce=Dn.control,Ue=Dn.card,{tight:Je,snug:Z,comfy:At,roomy:Ht,lounge:ar,open:lr,wide:Qr}=_r;return `
3
- :host {
4
- all: initial;
5
- font-family: ${Y};
6
- font-size: ${Re}px;
7
- line-height: ${we};
8
- color: ${i};
9
- -webkit-font-smoothing: antialiased;
10
- -moz-osx-font-smoothing: grayscale;
11
- font-feature-settings: 'ss01', 'cv11'; /* nicer system-ui glyphs where supported */
12
- --mushi-ok: ${M};
13
- /* Spacing + radius scales (MUSHI_SPACING / MUSHI_RADIUS) \u2014 prefer these
14
- over literal px so web + RN stay aligned with brand.tokens.json. */
15
- --mushi-space-tight: ${Je}px;
16
- --mushi-space-snug: ${Z}px;
17
- --mushi-space-comfy: ${At}px;
18
- --mushi-space-roomy: ${Ht}px;
19
- --mushi-space-lounge: ${ar}px;
20
- --mushi-space-open: ${lr}px;
21
- --mushi-space-wide: ${Qr}px;
22
- --mushi-radius-control: ${Ce}px;
23
- --mushi-radius-card: ${Ue}px;
24
- --mushi-touch-min: 44px;
25
- /* Derived channel vars \u2014 accent RGB triplet + shadow-ink triplet.
26
- Lets Shadow-DOM CSS compose rgba() values that respect host-accent
27
- overrides and dark-mode ink without repeating the hex guard. */
28
- --mushi-accent-rgb: ${_};
29
- --mushi-shadow-ink: ${R};
30
- /* SDK contract: the host element is always pass-through. Only the
31
- interactive surfaces (.mushi-trigger, .mushi-banner, .mushi-panel)
32
- opt back into pointer events so the widget never creates an
33
- invisible touch blocker over host-app UI. */
34
- pointer-events: none;
35
- }
36
- /* Only actual widget controls receive touch/mouse events. */
37
- .mushi-trigger,
38
- .mushi-banner,
39
- .mushi-panel {
40
- pointer-events: auto;
41
- }
42
- *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
43
- button { font-family: inherit; }
44
-
45
- .mushi-trigger {
46
- position: fixed;
47
- width: ${G}px;
48
- height: ${G}px;
49
- min-width: var(--mushi-touch-min);
50
- min-height: var(--mushi-touch-min);
51
- border: 1px solid ${y};
52
- border-radius: ${Ce}px;
53
- background: ${o};
54
- color: ${i};
55
- cursor: pointer;
56
- display: flex;
57
- align-items: center;
58
- justify-content: center;
59
- font-family: ${te};
60
- font-size: 22px;
61
- line-height: 1;
62
- box-shadow:
63
- 0 1px 0 ${p},
64
- 0 6px 14px -8px rgba(${R},0.35),
65
- inset 0 -3px 0 ${u};
66
- transition: transform ${$}ms ${L}, opacity ${$}ms ${L};
67
- overflow: visible;
68
- isolation: isolate;
69
- }
70
- .mushi-trigger::after {
71
- content: '';
72
- position: absolute;
73
- top: 6px;
74
- right: 6px;
75
- width: 6px;
76
- height: 6px;
77
- border-radius: 50%;
78
- background: ${u};
79
- box-shadow: 0 0 0 0 ${u};
80
- animation: mushi-pulse 2.4s ${L} infinite;
81
- }
82
- .mushi-trigger:hover {
83
- transform: translateY(-2px) rotate(-1.5deg);
84
- box-shadow:
85
- 0 1px 0 ${p},
86
- 0 14px 24px -10px rgba(${R},0.45),
87
- 0 0 20px -6px rgba(${_},0.22),
88
- inset 0 -3px 0 ${u};
89
- }
90
- .mushi-trigger:active {
91
- transform: translateY(0) rotate(0);
92
- box-shadow:
93
- 0 1px 0 ${p},
94
- 0 2px 4px -2px rgba(${R},0.35),
95
- inset 0 -2px 0 ${u};
96
- }
97
- .mushi-trigger:focus-visible {
98
- outline: 2px solid ${u};
99
- outline-offset: 3px;
100
- }
101
- /* First-session welcome pulse. Three soft halos at 800ms each, then
102
- auto-clear. Uses a box-shadow ring rather than transform/scale so it
103
- can compose with the hover transform without fighting it. Respects
104
- prefers-reduced-motion. */
105
- @keyframes mushi-trigger-pulse {
106
- 0% { box-shadow: 0 0 0 0 rgba(${_},0.55), 0 1px 0 ${p}, 0 10px 24px -14px rgba(${R},0.45); }
107
- 70% { box-shadow: 0 0 0 16px rgba(${_},0), 0 1px 0 ${p}, 0 10px 24px -14px rgba(${R},0.45); }
108
- 100% { box-shadow: 0 0 0 0 rgba(${_},0), 0 1px 0 ${p}, 0 10px 24px -14px rgba(${R},0.45); }
109
- }
110
- .mushi-trigger-pulse {
111
- animation: mushi-trigger-pulse 800ms ${L} 3;
112
- }
113
- @media (prefers-reduced-motion: reduce) {
114
- .mushi-trigger-pulse { animation: none; }
115
- }
116
- .mushi-trigger.bottom-right {
117
- bottom: var(--mushi-bottom, calc(${J}px + env(safe-area-inset-bottom, 0px)));
118
- right: var(--mushi-right, calc(${J}px + env(safe-area-inset-right, 0px)));
119
- }
120
- .mushi-trigger.bottom-left {
121
- bottom: var(--mushi-bottom, calc(${J}px + env(safe-area-inset-bottom, 0px)));
122
- left: var(--mushi-left, calc(${J}px + env(safe-area-inset-left, 0px)));
123
- }
124
- .mushi-trigger.top-right {
125
- top: var(--mushi-top, calc(${J}px + env(safe-area-inset-top, 0px)));
126
- right: var(--mushi-right, calc(${J}px + env(safe-area-inset-right, 0px)));
127
- }
128
- .mushi-trigger.top-left {
129
- top: var(--mushi-top, calc(${J}px + env(safe-area-inset-top, 0px)));
130
- left: var(--mushi-left, calc(${J}px + env(safe-area-inset-left, 0px)));
131
- }
132
- .mushi-trigger.edge-tab {
133
- width: ${ot}px;
134
- height: 88px;
135
- border-radius: ${Ce}px 0 0 ${Ce}px;
136
- writing-mode: vertical-rl;
137
- text-orientation: upright;
138
- font-size: 16px;
139
- box-shadow:
140
- 0 1px 0 ${p},
141
- 0 10px 24px -14px rgba(${R},0.45),
142
- inset -3px 0 0 ${u};
143
- }
144
- .mushi-trigger.edge-tab.bottom-right,
145
- .mushi-trigger.edge-tab.top-right {
146
- right: var(--mushi-right, 0);
147
- }
148
- .mushi-trigger.edge-tab.bottom-left,
149
- .mushi-trigger.edge-tab.top-left {
150
- left: var(--mushi-left, 0);
151
- border-radius: 0 ${Ce}px ${Ce}px 0;
152
- box-shadow:
153
- 0 1px 0 ${p},
154
- 0 10px 24px -14px rgba(${R},0.45),
155
- inset 3px 0 0 ${u};
156
- }
157
- .mushi-trigger.shrunk {
158
- width: ${xe}px;
159
- height: ${xe}px;
160
- opacity: 0.82;
161
- transform: scale(0.92);
162
- }
163
-
164
- /* \u2500\u2500 Draggable FAB \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500
165
- When draggable is enabled the trigger uses CSS translate to apply the
166
- drag offset ON TOP of the existing inset positioning, so snapping and
167
- safe-area clamp still work correctly via the inset vars.
168
- --mushi-drag-active 0|1 gates the transform so non-draggable FABs are
169
- completely unaffected. touch-action: none prevents browser pan/scroll
170
- from racing the pointer capture. */
171
- .mushi-trigger {
172
- touch-action: none;
173
- translate:
174
- calc(var(--mushi-drag-active, 0) * var(--mushi-drag-x, 0px))
175
- calc(var(--mushi-drag-active, 0) * var(--mushi-drag-y, 0px));
176
- }
177
- .mushi-trigger.dragging {
178
- cursor: grabbing !important;
179
- z-index: calc(var(--z, ${Ye}) + 2);
180
- transition: none !important;
181
- box-shadow:
182
- 0 1px 0 ${p},
183
- 0 20px 40px -12px rgba(${R},0.55),
184
- inset 0 -3px 0 ${u};
185
- opacity: 0.92;
186
- }
187
- @media (prefers-reduced-motion: reduce) {
188
- .mushi-trigger { transition: none !important; }
189
- }
190
-
191
- @keyframes mushi-pulse {
192
- 0% { box-shadow: 0 0 0 0 ${u}; opacity: 1; }
193
- 70% { box-shadow: 0 0 0 8px ${u}00; opacity: 0.5; }
194
- 100% { box-shadow: 0 0 0 0 ${u}00; opacity: 1; }
195
- }
196
-
197
- .mushi-panel {
198
- position: fixed;
199
- width: ${oe}px;
200
- max-width: calc(100vw - ${_r.wide}px);
201
- max-height: min(${Se}px, calc(100dvh - 120px - var(--mushi-keyboard-inset, 0px)));
202
- background: ${o};
203
- border: 1px solid ${y};
204
- border-radius: 6px;
205
- box-shadow:
206
- 0 1px 0 ${p},
207
- 0 24px 56px -20px rgba(${R},0.30),
208
- 0 8px 16px -8px rgba(${R},0.20);
209
- overflow: hidden;
210
- display: flex;
211
- flex-direction: column;
212
- transform-origin: var(--mushi-origin, bottom right);
213
- /* Keyboard inset \u2014 layout exception (IME), not decorative (docs/MOTION.md) */
214
- transition: bottom ${x}ms ease, top ${x}ms ease, max-height ${x}ms ease;
215
- }
216
- /* Keyboard-safe: on narrow viewports lift above the keyboard */
217
- .mushi-panel.keyboard-open {
218
- bottom: calc(var(--mushi-keyboard-inset, 0px) + 8px) !important;
219
- }
220
- /* On narrow mobile, fill the width as a bottom sheet */
221
- @media (max-width: ${fe}px) {
222
- .mushi-panel {
223
- left: 0 !important;
224
- right: 0 !important;
225
- width: 100% !important;
226
- max-width: 100% !important;
227
- border-bottom-left-radius: 0;
228
- border-bottom-right-radius: 0;
229
- bottom: var(--mushi-keyboard-inset, 0px) !important;
230
- }
231
- .mushi-panel.keyboard-open {
232
- bottom: calc(var(--mushi-keyboard-inset, 0px) + 4px) !important;
233
- }
234
- }
235
- .mushi-panel.open { animation: mushi-stamp-in ${U}ms ${L} both; }
236
- .mushi-panel.closed { display: none; }
237
- .mushi-panel.bottom-right {
238
- bottom: var(--mushi-panel-bottom, calc(var(--mushi-bottom, ${J}px) + ${q}px));
239
- right: var(--mushi-right, calc(${J}px + env(safe-area-inset-right, 0px)));
240
- --mushi-origin: bottom right;
241
- }
242
- .mushi-panel.bottom-left {
243
- bottom: var(--mushi-panel-bottom, calc(var(--mushi-bottom, ${J}px) + ${q}px));
244
- left: var(--mushi-left, calc(${J}px + env(safe-area-inset-left, 0px)));
245
- --mushi-origin: bottom left;
246
- }
247
- .mushi-panel.top-right {
248
- top: var(--mushi-panel-top, calc(var(--mushi-top, ${J}px) + ${q}px));
249
- right: var(--mushi-right, calc(${J}px + env(safe-area-inset-right, 0px)));
250
- --mushi-origin: top right;
251
- }
252
- .mushi-panel.top-left {
253
- top: var(--mushi-panel-top, calc(var(--mushi-top, ${J}px) + ${q}px));
254
- left: var(--mushi-left, calc(${J}px + env(safe-area-inset-left, 0px)));
255
- --mushi-origin: top left;
256
- }
257
- .mushi-outdated {
258
- margin: 12px 14px 0;
259
- padding: 10px 12px;
260
- border: 1px solid ${S};
261
- background: ${S};
262
- color: ${w};
263
- font-family: ${Y};
264
- font-size: 12px;
265
- line-height: 1.4;
266
- }
267
- .mushi-outdated strong {
268
- display: block;
269
- font-family: ${H};
270
- font-size: 10px;
271
- letter-spacing: 0.12em;
272
- text-transform: uppercase;
273
- margin-bottom: 2px;
274
- }
275
- .mushi-outdated span {
276
- display: block;
277
- margin-top: 3px;
278
- color: ${l};
279
- }
280
-
281
- @keyframes mushi-stamp-in {
282
- 0% { opacity: 0; transform: scale(0.94) translateY(6px); }
283
- 60% { opacity: 1; }
284
- 100% { opacity: 1; transform: scale(1) translateY(0); }
285
- }
286
-
287
- .mushi-header {
288
- padding: 13px 18px 10px;
289
- border-bottom: 1px solid ${p};
290
- display: grid;
291
- grid-template-columns: auto 1fr auto;
292
- align-items: end;
293
- gap: 10px;
294
- }
295
- .mushi-header-mark {
296
- display: inline-flex;
297
- align-items: center;
298
- justify-content: center;
299
- width: 22px;
300
- height: 22px;
301
- border-radius: 3px;
302
- background: ${u};
303
- color: ${v};
304
- font-family: ${te};
305
- font-size: 14px;
306
- font-weight: 600;
307
- line-height: 1;
308
- letter-spacing: -0.02em;
309
- transform: rotate(-3deg);
310
- flex-shrink: 0;
311
- }
312
- .mushi-header-titles {
313
- min-width: 0;
314
- display: flex;
315
- flex-direction: column;
316
- gap: 2px;
317
- }
318
- .mushi-header-eyebrow {
319
- font-family: ${H};
320
- font-size: 10px;
321
- letter-spacing: 0.18em;
322
- text-transform: uppercase;
323
- color: ${l};
324
- }
325
- .mushi-header h3 {
326
- font-family: ${te};
327
- font-size: 19px;
328
- font-weight: 500;
329
- line-height: 1.15;
330
- letter-spacing: -0.01em;
331
- color: ${i};
332
- }
333
- .mushi-header-meta {
334
- align-self: start;
335
- display: flex;
336
- align-items: center;
337
- gap: 6px;
338
- }
339
- .mushi-step-counter {
340
- font-family: ${H};
341
- font-size: 11px;
342
- color: ${l};
343
- letter-spacing: 0.06em;
344
- tab-size: 2ch;
345
- padding-top: 2px;
346
- }
347
- .mushi-step-counter b {
348
- font-weight: 600;
349
- color: ${i};
350
- }
351
- .mushi-close {
352
- background: none;
353
- border: none;
354
- cursor: pointer;
355
- padding: 2px 4px;
356
- color: ${l};
357
- font-family: ${Y};
358
- font-size: 16px;
359
- line-height: 1;
360
- border-radius: 0;
361
- transition: opacity ${x}ms ${L};
362
- }
363
- .mushi-back {
364
- align-self: flex-start;
365
- background: none;
366
- border: none;
367
- cursor: pointer;
368
- padding: 3px 0;
369
- margin: 0 0 2px;
370
- min-height: 22px;
371
- color: ${l};
372
- font-family: ${H};
373
- font-size: 11px;
374
- font-weight: 500;
375
- letter-spacing: 0.06em;
376
- text-transform: uppercase;
377
- line-height: 1.2;
378
- border-radius: 0;
379
- display: inline-flex;
380
- align-items: center;
381
- gap: 4px;
382
- transition: opacity ${x}ms ${L};
383
- white-space: nowrap;
384
- }
385
- .mushi-close:hover { color: ${u}; }
386
- .mushi-back:hover { color: ${i}; }
387
- .mushi-close:focus-visible {
388
- outline: 1.5px solid ${u};
389
- outline-offset: 2px;
390
- }
391
- .mushi-back:focus-visible {
392
- outline: none;
393
- color: ${u};
394
- text-decoration: underline;
395
- text-underline-offset: 3px;
396
- }
397
-
398
- /* \u2500\u2500 Body \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500
399
- Generous left/right padding (22px) so type breathes. Vertical
400
- padding tighter at top because the header rule already creates
401
- breathing room. */
402
- .mushi-body {
403
- padding: 8px 22px 16px;
404
- overflow-y: auto;
405
- flex: 1;
406
- scrollbar-width: thin;
407
- scrollbar-color: ${h} transparent;
408
- }
409
- .mushi-body::-webkit-scrollbar { width: 6px; }
410
- .mushi-body::-webkit-scrollbar-thumb { background: ${h}; border-radius: 3px; }
411
-
412
- .mushi-option-btn {
413
- display: grid;
414
- grid-template-columns: auto 1fr auto;
415
- align-items: center;
416
- gap: ${At}px;
417
- width: 100%;
418
- min-height: var(--mushi-touch-min);
419
- padding: ${At}px 0;
420
- border: none;
421
- border-bottom: 1px solid ${p};
422
- background: transparent;
423
- cursor: pointer;
424
- color: inherit;
425
- text-align: left;
426
- transition: transform ${B}ms ${L}, opacity ${B}ms ${L};
427
- position: relative;
428
- }
429
- .mushi-option-btn:last-child { border-bottom: none; }
430
- .mushi-option-btn:hover {
431
- transform: translateX(6px);
432
- color: ${u};
433
- background: linear-gradient(90deg, rgba(${_},0.07), transparent 55%);
434
- }
435
- .mushi-option-btn:hover .mushi-option-arrow { opacity: 1; transform: translateX(0); color: ${u}; }
436
- .mushi-option-btn:focus-visible {
437
- outline: none;
438
- transform: translateX(6px);
439
- box-shadow: inset 2px 0 0 ${u};
440
- }
441
- .mushi-option-icon {
442
- font-size: 18px;
443
- line-height: 1;
444
- flex-shrink: 0;
445
- filter: ${s?"none":"grayscale(0.15)"};
446
- }
447
- .mushi-option-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
448
- .mushi-option-label {
449
- font-family: ${te};
450
- font-size: 16px;
451
- font-weight: 500;
452
- letter-spacing: -0.005em;
453
- line-height: 1.2;
454
- }
455
- .mushi-option-desc {
456
- font-size: 12px;
457
- color: ${l};
458
- letter-spacing: 0.005em;
459
- }
460
- .mushi-option-arrow {
461
- font-family: ${H};
462
- font-size: 14px;
463
- color: ${h};
464
- opacity: 0;
465
- transform: translateX(-4px);
466
- transition: opacity ${B}ms ${L}, transform ${B}ms ${L};
467
- }
468
- /* Feature-request and Reports-inbox entries sit above the five
469
- category cards as discoverable shortcuts. We give them a subtle
470
- left rule so the eye reads them as a separate group rather than
471
- "another category". The shortcut group has zero hover indent
472
- overshoot \u2014 we want them quiet until intent. */
473
- .mushi-feature-entry,
474
- .mushi-reports-entry {
475
- padding-left: 10px;
476
- border-left: 2px solid ${h};
477
- transition: opacity ${B}ms ${L}, transform ${B}ms ${L};
478
- }
479
- .mushi-feature-entry:hover,
480
- .mushi-reports-entry:hover {
481
- border-left-color: ${u};
482
- padding-left: 14px;
483
- }
484
- .mushi-feature-entry .mushi-option-icon {
485
- filter: none;
486
- }
487
- .mushi-report-row {
488
- width: 100%;
489
- display: grid;
490
- grid-template-columns: 1fr auto;
491
- gap: 10px;
492
- align-items: center;
493
- padding: 12px 4px 12px 0;
494
- border: 0;
495
- border-bottom: 1px solid ${p};
496
- background: transparent;
497
- color: ${i};
498
- cursor: pointer;
499
- text-align: left;
500
- transition: opacity ${P}ms ${L}, transform ${P}ms ${L};
501
- }
502
- .mushi-report-row:hover,
503
- .mushi-report-row:focus-visible {
504
- background: ${s?"rgba(242,235,221,0.04)":"rgba(14,13,11,0.03)"};
505
- padding-left: 4px;
506
- }
507
- .mushi-report-main {
508
- min-width: 0;
509
- display: grid;
510
- gap: 6px;
511
- }
512
- .mushi-report-title {
513
- font-size: 13px;
514
- line-height: 1.35;
515
- display: -webkit-box;
516
- -webkit-line-clamp: 2;
517
- -webkit-box-orient: vertical;
518
- overflow: hidden;
519
- }
520
- .mushi-report-meta {
521
- display: flex;
522
- flex-wrap: wrap;
523
- align-items: center;
524
- gap: 8px;
525
- }
526
- .mushi-report-status {
527
- display: inline-flex;
528
- align-items: center;
529
- font-family: ${H};
530
- font-size: 10px;
531
- font-weight: 600;
532
- letter-spacing: 0.04em;
533
- text-transform: uppercase;
534
- padding: 2px 7px;
535
- border-radius: 999px;
536
- border: 1px solid transparent;
537
- }
538
- .mushi-status-sent {
539
- color: ${j.fg};
540
- background: ${j.bg};
541
- border-color: ${j.border};
542
- }
543
- .mushi-status-review {
544
- color: ${X.fg};
545
- background: ${X.bg};
546
- border-color: ${X.border};
547
- }
548
- .mushi-status-fixing {
549
- color: ${Q.fg};
550
- background: ${Q.bg};
551
- border-color: ${Q.border};
552
- }
553
- .mushi-status-fixed {
554
- color: ${ee.fg};
555
- background: ${ee.bg};
556
- border-color: ${ee.border};
557
- }
558
- .mushi-status-closed,
559
- .mushi-status-unknown {
560
- color: ${l};
561
- background: ${ge};
562
- border-color: ${y};
563
- }
564
- .mushi-report-when {
565
- font-family: ${H};
566
- font-size: 10px;
567
- color: ${h};
568
- }
569
- .mushi-unread-badge {
570
- display: inline-flex;
571
- align-items: center;
572
- justify-content: center;
573
- min-width: 18px;
574
- height: 18px;
575
- padding: 0 5px;
576
- border-radius: 999px;
577
- font-family: ${H};
578
- font-size: 10px;
579
- font-weight: 700;
580
- color: ${w};
581
- background: ${u};
582
- }
583
- .mushi-report-chevron {
584
- font-size: 18px;
585
- line-height: 1;
586
- color: ${h};
587
- transition: opacity ${P}ms ${L}, transform ${P}ms ${L};
588
- }
589
- .mushi-report-row:hover .mushi-report-chevron,
590
- .mushi-report-row:focus-visible .mushi-report-chevron {
591
- color: ${u};
592
- transform: translateX(2px);
593
- }
594
- .mushi-thread-summary {
595
- border-bottom: 1px solid ${p};
596
- padding-bottom: 10px;
597
- margin-bottom: 10px;
598
- }
599
- .mushi-thread-summary-meta {
600
- display: flex;
601
- flex-wrap: wrap;
602
- align-items: center;
603
- gap: 10px;
604
- margin-bottom: 8px;
605
- }
606
- .mushi-thread {
607
- display: grid;
608
- gap: 8px;
609
- max-height: 180px;
610
- overflow: auto;
611
- margin-bottom: 12px;
612
- }
613
- .mushi-thread-comment {
614
- padding: 8px 10px;
615
- border: 1px solid ${p};
616
- background: ${s?"rgba(242,235,221,0.04)":"rgba(14,13,11,0.03)"};
617
- }
618
- .mushi-thread-comment.reporter {
619
- border-color: ${S};
620
- background: ${S};
621
- }
622
- .mushi-thread-comment strong {
623
- display: block;
624
- font-family: ${H};
625
- font-size: 10px;
626
- letter-spacing: 0.04em;
627
- margin-bottom: 3px;
628
- }
629
- .mushi-thread-comment p,
630
- .mushi-muted,
631
- .mushi-error-inline {
632
- font-size: 12px;
633
- color: ${l};
634
- line-height: 1.45;
635
- }
636
- .mushi-error-inline { color: ${u}; }
637
-
638
- .mushi-selected-category {
639
- display: inline-flex;
640
- align-items: center;
641
- gap: 8px;
642
- padding: 6px 10px 6px 12px;
643
- border-left: 2px solid ${u};
644
- background: ${S};
645
- color: ${w};
646
- font-family: ${te};
647
- font-size: 13px;
648
- margin: 4px 0 14px;
649
- border-radius: 0 3px 3px 0;
650
- }
651
- .mushi-selected-category span:first-child { font-size: 14px; }
652
- .mushi-intents {
653
- display: flex;
654
- flex-direction: column;
655
- gap: 2px;
656
- }
657
- .mushi-intents .mushi-option-btn {
658
- grid-template-columns: 1fr auto;
659
- }
660
-
661
- /* Example starter chips \u2014 reduce first-report activation energy */
662
- .mushi-example-chips {
663
- display: flex;
664
- flex-wrap: wrap;
665
- gap: 6px;
666
- margin-bottom: 10px;
667
- }
668
- .mushi-example-chip {
669
- padding: 4px 10px;
670
- border: 1px solid ${p};
671
- border-radius: 12px;
672
- background: transparent;
673
- color: ${l};
674
- font-family: ${Y};
675
- font-size: 11px;
676
- cursor: pointer;
677
- transition: opacity ${x}ms ${L}, transform ${x}ms ${L};
678
- white-space: nowrap;
679
- }
680
- .mushi-example-chip:hover {
681
- color: ${i};
682
- border-color: ${l};
683
- background: ${s?"rgba(242,235,221,0.06)":"rgba(14,13,11,0.04)"};
684
- }
685
- .mushi-example-chip:focus-visible {
686
- outline: 2px solid ${u};
687
- outline-offset: 2px;
688
- }
689
-
690
- /* Textarea wrapper to position char counter */
691
- .mushi-textarea-wrap {
692
- position: relative;
693
- }
694
- .mushi-char-counter {
695
- position: absolute;
696
- bottom: 4px;
697
- right: 0;
698
- font-family: ${H};
699
- font-size: 10px;
700
- letter-spacing: 0.04em;
701
- color: ${h};
702
- pointer-events: none;
703
- transition: opacity ${P}ms ${L};
704
- }
705
-
706
- .mushi-textarea {
707
- width: 100%;
708
- min-height: 96px;
709
- padding: 8px 0 10px;
710
- border: none;
711
- border-bottom: 1px solid ${y};
712
- background: transparent;
713
- color: ${i};
714
- font-family: ${Y};
715
- font-size: 14px;
716
- line-height: 1.5;
717
- resize: vertical;
718
- outline: none;
719
- transition: opacity ${P}ms ${L}, transform ${P}ms ${L};
720
- }
721
- .mushi-textarea::placeholder {
722
- color: ${h};
723
- font-style: italic;
724
- }
725
- .mushi-textarea:focus { border-bottom-color: ${u}; }
726
-
727
- .mushi-attachments {
728
- display: flex;
729
- flex-wrap: wrap;
730
- gap: 6px;
731
- margin-top: 12px;
732
- }
733
- .mushi-attach-btn {
734
- display: inline-flex;
735
- align-items: center;
736
- gap: 6px;
737
- padding: 5px 10px;
738
- border: 1px solid ${y};
739
- border-radius: 3px;
740
- background: transparent;
741
- color: ${l};
742
- font-family: ${H};
743
- font-size: 11px;
744
- letter-spacing: 0.04em;
745
- text-transform: uppercase;
746
- cursor: pointer;
747
- transition: opacity ${P}ms ${L}, transform ${P}ms ${L};
748
- }
749
- .mushi-attach-btn:hover {
750
- color: ${i};
751
- border-color: ${i};
752
- }
753
- .mushi-attach-btn.active {
754
- color: ${u};
755
- border-color: ${u};
756
- background: ${S};
757
- }
758
- .mushi-attach-btn.danger {
759
- color: ${w};
760
- border-color: ${S};
761
- background: transparent;
762
- }
763
- .mushi-attach-btn.danger:hover {
764
- color: ${u};
765
- border-color: ${u};
766
- background: ${S};
767
- }
768
- .mushi-attach-btn.loading {
769
- opacity: 0.7;
770
- cursor: wait;
771
- }
772
- .mushi-attach-btn.error {
773
- color: ${u};
774
- border-color: ${S};
775
- }
776
- .mushi-attach-btn:focus-visible {
777
- outline: 2px solid ${u};
778
- outline-offset: 2px;
779
- }
780
- .mushi-annotate-host {
781
- flex-basis: 100%;
782
- margin-top: 8px;
783
- }
784
- .mushi-annotate-host:empty {
785
- margin-top: 0;
786
- }
787
- .mushi-screenshot-preview {
788
- margin: 10px 0 0;
789
- display: flex;
790
- flex-direction: column;
791
- gap: 6px;
792
- }
793
- .mushi-screenshot-preview img {
794
- display: block;
795
- max-width: 100%;
796
- max-height: 160px;
797
- width: auto;
798
- border: 1px solid ${y};
799
- border-radius: 3px;
800
- object-fit: contain;
801
- align-self: flex-start;
802
- }
803
- .mushi-screenshot-hint {
804
- margin: 0;
805
- color: ${l};
806
- font-family: ${H};
807
- font-size: 10.5px;
808
- line-height: 1.4;
809
- letter-spacing: 0.02em;
810
- }
811
- .mushi-identified-user {
812
- margin: 8px 0 0;
813
- font-size: 11.5px;
814
- color: ${l};
815
- line-height: 1.4;
816
- }
817
- .mushi-identified-user strong {
818
- color: ${i};
819
- font-weight: 600;
820
- }
821
- .mushi-annotate-toolbar {
822
- display: flex;
823
- flex-wrap: wrap;
824
- gap: 6px;
825
- margin-bottom: 8px;
826
- }
827
- @keyframes mushi-spin {
828
- to { transform: rotate(360deg); }
829
- }
830
- @keyframes mushi-fade-in {
831
- from { opacity: 0; transform: translateY(4px); }
832
- to { opacity: 1; transform: translateY(0); }
833
- }
834
- .mushi-spinner {
835
- display: inline-block;
836
- width: 10px;
837
- height: 10px;
838
- border: 1.5px solid currentColor;
839
- border-top-color: transparent;
840
- border-radius: 50%;
841
- animation: mushi-spin ${Pe}ms linear infinite;
842
- }
843
-
844
- .mushi-footer {
845
- padding: 14px 22px 16px;
846
- border-top: 1px solid ${p};
847
- display: flex;
848
- align-items: center;
849
- justify-content: space-between;
850
- gap: 12px;
851
- }
852
- .mushi-footer-hint {
853
- font-family: ${H};
854
- font-size: 10px;
855
- letter-spacing: 0.10em;
856
- text-transform: uppercase;
857
- color: ${h};
858
- }
859
- .mushi-submit {
860
- position: relative;
861
- display: inline-flex;
862
- align-items: center;
863
- gap: ${Z}px;
864
- min-height: var(--mushi-touch-min);
865
- padding: ${At}px ${ar}px;
866
- border: 1px solid ${u};
867
- border-radius: ${Ce}px;
868
- background: linear-gradient(160deg, ${u} 0%, ${k} 100%);
869
- color: ${v};
870
- font-family: ${H};
871
- font-size: ${He}px;
872
- letter-spacing: 0.16em;
873
- text-transform: uppercase;
874
- cursor: pointer;
875
- overflow: hidden;
876
- transition: transform ${P}ms ${L}, opacity ${P}ms ${L};
877
- box-shadow: 0 2px 0 ${k};
878
- }
879
- .mushi-submit::after {
880
- content: '';
881
- position: absolute;
882
- inset: 0;
883
- background: radial-gradient(circle at center, rgba(255,255,255,0.35) 0%, transparent 60%);
884
- opacity: 0;
885
- transform: scale(0.4);
886
- transition: opacity ${U}ms ${L}, transform ${W}ms ${L};
887
- pointer-events: none;
888
- }
889
- .mushi-submit:hover {
890
- transform: translateY(-1px);
891
- box-shadow:
892
- 0 3px 0 ${k},
893
- 0 0 0 3px rgba(${_},0.18),
894
- 0 4px 16px -4px rgba(${_},0.35);
895
- }
896
- .mushi-submit:hover::after { opacity: 1; transform: scale(1.4); }
897
- .mushi-submit:active { transform: translateY(1px); box-shadow: 0 1px 0 ${k}; }
898
- .mushi-submit:disabled {
899
- cursor: wait;
900
- opacity: 0.7;
901
- }
902
- .mushi-submit:focus-visible {
903
- outline: 2px solid ${u};
904
- outline-offset: 3px;
905
- }
906
- .mushi-submit-arrow {
907
- display: inline-block;
908
- transition: transform ${B}ms ${L};
909
- }
910
- .mushi-submit:hover .mushi-submit-arrow { transform: translateX(3px); }
911
-
912
- .mushi-brand-footer {
913
- padding: 9px 14px 11px;
914
- border-top: 1px solid ${p};
915
- color: ${h};
916
- font-family: ${H};
917
- font-size: 9px;
918
- letter-spacing: 0.16em;
919
- text-align: center;
920
- text-transform: uppercase;
921
- }
922
- .mushi-brand-link {
923
- color: inherit;
924
- text-decoration: none;
925
- text-underline-offset: 3px;
926
- }
927
- .mushi-brand-link:hover { color: ${l}; text-decoration: underline; }
928
- .mushi-brand-link:focus-visible {
929
- outline: 2px solid ${u};
930
- outline-offset: 2px;
931
- border-radius: 2px;
932
- color: ${u};
933
- text-decoration: underline;
934
- }
935
-
936
- .mushi-step-indicator {
937
- display: flex;
938
- align-items: center;
939
- justify-content: center;
940
- gap: 8px;
941
- padding: 10px 22px 14px;
942
- color: ${h};
943
- font-family: ${H};
944
- font-size: 11px;
945
- letter-spacing: 0.10em;
946
- }
947
- .mushi-step-num {
948
- display: inline-flex;
949
- align-items: baseline;
950
- gap: 4px;
951
- transition: opacity ${P}ms ${L};
952
- }
953
- .mushi-step-num.done { color: ${l}; text-decoration: line-through; text-decoration-color: ${h}; }
954
- .mushi-step-num.active {
955
- color: ${u};
956
- font-family: ${te};
957
- font-size: 14px;
958
- font-weight: 600;
959
- letter-spacing: 0;
960
- }
961
- .mushi-step-sep { width: 14px; height: 1px; background: ${p}; }
962
-
963
- .mushi-success {
964
- text-align: center;
965
- padding: 28px 16px 20px;
966
- }
967
- .mushi-success-stamp {
968
- position: relative;
969
- width: 96px;
970
- height: 96px;
971
- margin: 0 auto 16px;
972
- display: inline-flex;
973
- align-items: center;
974
- justify-content: center;
975
- }
976
- .mushi-success-stamp svg {
977
- position: absolute;
978
- inset: 0;
979
- width: 100%;
980
- height: 100%;
981
- }
982
- .mushi-success-stamp circle {
983
- fill: none;
984
- stroke: ${u};
985
- stroke-width: 3;
986
- stroke-dasharray: 280;
987
- stroke-dashoffset: 280;
988
- transform: rotate(-90deg);
989
- transform-origin: center;
990
- animation: mushi-stamp-ring 700ms ${L} 80ms forwards;
991
- filter: drop-shadow(0 0 6px rgba(${_},0.5));
992
- }
993
- .mushi-success-stamp-label {
994
- font-family: ${te};
995
- font-size: 18px;
996
- font-weight: 600;
997
- color: ${u};
998
- letter-spacing: 0.04em;
999
- transform: rotate(-6deg);
1000
- opacity: 0;
1001
- animation: mushi-stamp-press 360ms ${L} 600ms forwards;
1002
- }
1003
- .mushi-success-headline {
1004
- font-family: ${te};
1005
- font-size: 18px;
1006
- font-weight: 500;
1007
- color: ${i};
1008
- margin-bottom: 4px;
1009
- }
1010
- .mushi-success-meta {
1011
- font-family: ${H};
1012
- font-size: 11px;
1013
- letter-spacing: 0.10em;
1014
- text-transform: uppercase;
1015
- color: ${l};
1016
- }
1017
-
1018
- /* \u2500\u2500 Two-way receipt (success step) \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 */
1019
- /* The receipt block sits below the stamp/meta. Three states: */
1020
- /* 1. delivering... (spinner pill, while host onSubmit awaits) */
1021
- /* 2. confirmed (Receipt id + Track on Mushi link) */
1022
- /* 3. queued offline (warn pill \u2014 degrade gracefully) */
1023
- .mushi-success-receipt {
1024
- margin-top: 14px;
1025
- width: 100%;
1026
- max-width: 280px;
1027
- display: flex;
1028
- flex-direction: column;
1029
- gap: 6px;
1030
- align-items: stretch;
1031
- }
1032
- .mushi-success-receipt-row {
1033
- display: flex;
1034
- align-items: center;
1035
- justify-content: center;
1036
- gap: 8px;
1037
- font-family: ${H};
1038
- font-size: 11px;
1039
- letter-spacing: 0.05em;
1040
- color: ${l};
1041
- }
1042
- .mushi-success-receipt-label {
1043
- text-transform: uppercase;
1044
- letter-spacing: 0.10em;
1045
- color: ${l};
1046
- }
1047
- .mushi-success-receipt-id {
1048
- display: inline-flex;
1049
- align-items: center;
1050
- gap: 5px;
1051
- padding: 3px 8px;
1052
- border-radius: 4px;
1053
- background: transparent;
1054
- border: 1px dashed ${p};
1055
- color: inherit;
1056
- font-family: ${H};
1057
- font-size: 12px;
1058
- letter-spacing: 0.02em;
1059
- cursor: pointer;
1060
- transition: opacity ${x}ms ${L};
1061
- }
1062
- .mushi-success-receipt-id:hover,
1063
- .mushi-success-receipt-id:focus-visible {
1064
- background: rgba(${_},0.06);
1065
- border-color: ${u};
1066
- color: ${u};
1067
- outline: none;
1068
- }
1069
- .mushi-success-receipt-copy {
1070
- font-size: 11px;
1071
- opacity: 0.7;
1072
- }
1073
- .mushi-success-receipt-track {
1074
- display: inline-flex;
1075
- align-items: center;
1076
- justify-content: center;
1077
- gap: 4px;
1078
- padding: 6px 10px;
1079
- border-radius: 4px;
1080
- background: ${u};
1081
- color: ${b};
1082
- font-family: ${H};
1083
- font-size: 11px;
1084
- letter-spacing: 0.10em;
1085
- text-transform: uppercase;
1086
- text-decoration: none;
1087
- transition: filter ${x}ms ease;
1088
- }
1089
- .mushi-success-receipt-track:hover,
1090
- .mushi-success-receipt-track:focus-visible {
1091
- filter: brightness(0.95);
1092
- outline: none;
1093
- }
1094
- .mushi-success-receipt-spinner {
1095
- width: 11px;
1096
- height: 11px;
1097
- border-radius: 50%;
1098
- border: 1.5px solid ${p};
1099
- border-top-color: ${u};
1100
- animation: mushi-receipt-spin 0.8s linear infinite;
1101
- }
1102
- @keyframes mushi-receipt-spin {
1103
- to { transform: rotate(360deg); }
1104
- }
1105
- .mushi-success-receipt-hint {
1106
- color: ${l};
1107
- font-style: italic;
1108
- }
1109
- .mushi-success-receipt-warn {
1110
- color: ${u};
1111
- }
1112
- .mushi-success-my-reports {
1113
- display: block;
1114
- margin: 12px auto 0;
1115
- font-size: 12px;
1116
- font-family: ${H};
1117
- color: ${u};
1118
- text-decoration: underline;
1119
- text-underline-offset: 2px;
1120
- background: none;
1121
- border: none;
1122
- cursor: pointer;
1123
- padding: 4px 2px;
1124
- }
1125
- .mushi-success-my-reports:hover { opacity: 0.75; }
1126
- .mushi-success-sla {
1127
- margin-top: 2px;
1128
- font-family: ${te};
1129
- font-size: 12px;
1130
- line-height: 1.45;
1131
- text-align: center;
1132
- color: ${l};
1133
- max-width: 260px;
1134
- }
1135
- .mushi-success-sla-default {
1136
- opacity: 0.85;
1137
- }
1138
-
1139
- @keyframes mushi-stamp-ring {
1140
- to { stroke-dashoffset: 0; }
1141
- }
1142
- @keyframes mushi-stamp-press {
1143
- 0% { opacity: 0; transform: rotate(-6deg) scale(1.3); }
1144
- 60% { opacity: 1; transform: rotate(-6deg) scale(0.94); }
1145
- 100% { opacity: 1; transform: rotate(-6deg) scale(1); }
1146
- }
1147
-
1148
- .mushi-error {
1149
- margin-top: 10px;
1150
- padding: 8px 0 8px 10px;
1151
- border-left: 2px solid ${u};
1152
- color: ${u};
1153
- font-size: 12px;
1154
- font-family: ${H};
1155
- letter-spacing: 0.02em;
1156
- }
1157
-
1158
- /* \u2500\u2500 Rewards nudge (category step) \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 */
1159
- .mushi-rewards-nudge {
1160
- border-top: 1px solid ${p};
1161
- padding: 10px 0 4px;
1162
- margin-top: 6px;
1163
- }
1164
- .mushi-rewards-row {
1165
- display: flex;
1166
- align-items: center;
1167
- gap: 6px;
1168
- margin-bottom: 8px;
1169
- }
1170
- .mushi-tier-pip {
1171
- width: 7px;
1172
- height: 7px;
1173
- border-radius: 50%;
1174
- flex-shrink: 0;
1175
- }
1176
- .mushi-rewards-tier-name {
1177
- font-family: ${H};
1178
- font-size: 11px;
1179
- letter-spacing: 0.08em;
1180
- text-transform: uppercase;
1181
- color: ${i};
1182
- }
1183
- .mushi-rewards-pts-count {
1184
- font-family: ${H};
1185
- font-size: 11px;
1186
- color: ${l};
1187
- margin-right: auto;
1188
- }
1189
- .mushi-rewards-pts-earn {
1190
- font-family: ${H};
1191
- font-size: 10px;
1192
- color: ${u};
1193
- letter-spacing: 0.04em;
1194
- white-space: nowrap;
1195
- }
1196
- .mushi-tier-bar-track {
1197
- height: 3px;
1198
- background: ${y};
1199
- border-radius: 2px;
1200
- overflow: hidden;
1201
- margin-bottom: 5px;
1202
- }
1203
- .mushi-tier-bar-fill {
1204
- height: 100%;
1205
- width: 100%;
1206
- background: ${u};
1207
- border-radius: 2px;
1208
- /* Meter fill \u2014 scaleX keeps compositor-friendly motion (docs/MOTION.md). */
1209
- transform-origin: left center;
1210
- transform: scaleX(var(--mushi-tier-pct, 0));
1211
- transition: transform ${W}ms ${L};
1212
- }
1213
- .mushi-rewards-next-label {
1214
- font-family: ${H};
1215
- font-size: 10px;
1216
- color: ${l};
1217
- text-align: right;
1218
- letter-spacing: 0.02em;
1219
- }
1220
-
1221
- /* \u2500\u2500 Rewards on success step \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 */
1222
- .mushi-success-rewards {
1223
- margin-top: 14px;
1224
- padding-top: 12px;
1225
- border-top: 1px solid ${p};
1226
- width: 100%;
1227
- }
1228
- .mushi-success-pts-award {
1229
- font-family: ${H};
1230
- font-size: 22px;
1231
- font-weight: 700;
1232
- color: ${u};
1233
- text-align: center;
1234
- letter-spacing: 0.06em;
1235
- margin-bottom: 10px;
1236
- opacity: 0;
1237
- animation: mushi-pts-pop ${W}ms ${L} 900ms forwards;
1238
- }
1239
- .success-bar { margin: 0 0 5px; }
1240
-
1241
- @keyframes mushi-pts-pop {
1242
- from { opacity: 0; transform: scale(0.75) translateY(6px); }
1243
- to { opacity: 1; transform: scale(1) translateY(0); }
1244
- }
1245
-
1246
- /* \u2500\u2500\u2500 Beta mode strip (category step) \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 */
1247
- /* Brand palette: widgetAccent (vermillion) + washi ink for the strip.
1248
- The previous generic indigo purple is the single most recognisable AI-template
1249
- colour; replaced with the widget's own vermillion wash so the beta panel
1250
- reads as a Mushi-native surface rather than a generic SaaS plug-in. */
1251
-
1252
- .mushi-beta-strip {
1253
- margin: 0 16px 2px;
1254
- padding: 9px 12px;
1255
- background: ${S};
1256
- border: 1px solid rgba(${_},${s?"0.22":"0.16"});
1257
- border-radius: 4px;
1258
- display: flex;
1259
- flex-direction: column;
1260
- gap: 4px;
1261
- }
1262
-
1263
- .mushi-beta-strip-row {
1264
- display: flex;
1265
- align-items: center;
1266
- gap: 8px;
1267
- }
1268
-
1269
- .mushi-beta-tag {
1270
- display: inline-flex;
1271
- align-items: center;
1272
- padding: 1px 6px;
1273
- border-radius: 3px;
1274
- background: ${u};
1275
- color: ${v};
1276
- font-family: ${H};
1277
- font-size: 9px;
1278
- font-weight: 700;
1279
- letter-spacing: 0.14em;
1280
- line-height: 1.6;
1281
- white-space: nowrap;
1282
- flex-shrink: 0;
1283
- text-transform: uppercase;
1284
- }
1285
-
1286
- .mushi-beta-msg {
1287
- font-size: 11px;
1288
- color: ${l};
1289
- line-height: 1.45;
1290
- }
1291
-
1292
- .mushi-beta-contact-hint {
1293
- font-size: 10px;
1294
- color: ${h};
1295
- font-family: ${H};
1296
- letter-spacing: 0.06em;
1297
- }
1298
-
1299
- .mushi-beta-perks {
1300
- list-style: none;
1301
- margin: 2px 0 0;
1302
- padding: 0;
1303
- display: flex;
1304
- flex-direction: column;
1305
- gap: 2px;
1306
- }
1307
-
1308
- .mushi-beta-perks li {
1309
- font-size: 12px;
1310
- color: ${w};
1311
- font-weight: 500;
1312
- }
1313
-
1314
- /* \u2500\u2500\u2500 Beta changelog (collapsible What's new) \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 */
1315
-
1316
- .mushi-changelog {
1317
- margin-top: 5px;
1318
- }
1319
-
1320
- .mushi-changelog-summary {
1321
- font-size: 11px;
1322
- color: ${f};
1323
- cursor: pointer;
1324
- list-style: none;
1325
- display: flex;
1326
- align-items: center;
1327
- gap: 4px;
1328
- user-select: none;
1329
- }
1330
-
1331
- .mushi-changelog-summary::before {
1332
- content: '\u25B6';
1333
- font-size: 7px;
1334
- opacity: 0.6;
1335
- transition: transform ${x}ms ${L};
1336
- }
1337
-
1338
- .mushi-changelog[open] .mushi-changelog-summary::before {
1339
- transform: rotate(90deg);
1340
- }
1341
-
1342
- .mushi-changelog-list {
1343
- margin: 5px 0 0 4px;
1344
- padding: 0;
1345
- list-style: none;
1346
- display: flex;
1347
- flex-direction: column;
1348
- gap: 2px;
1349
- }
1350
-
1351
- .mushi-changelog-list li {
1352
- font-size: 11px;
1353
- color: ${f};
1354
- line-height: 1.5;
1355
- }
1356
-
1357
- /* \u2500\u2500\u2500 Beta success footer \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 */
1358
-
1359
- .mushi-beta-success-footer {
1360
- margin-top: 14px;
1361
- padding: 10px 14px;
1362
- background: ${S};
1363
- border: 1px solid rgba(${_},${s?"0.18":"0.14"});
1364
- border-radius: 4px;
1365
- display: flex;
1366
- flex-direction: column;
1367
- gap: 3px;
1368
- text-align: left;
1369
- }
1370
-
1371
- .mushi-beta-success-line {
1372
- font-size: 12px;
1373
- color: ${w};
1374
- line-height: 1.5;
1375
- }
1376
-
1377
- .mushi-beta-success-dim {
1378
- opacity: 0.65;
1379
- font-size: 12px;
1380
- }
1381
-
1382
- /* \u2500\u2500\u2500 Banner launcher (trigger: 'banner') \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 */
1383
-
1384
- .mushi-banner {
1385
- position: fixed;
1386
- left: 0;
1387
- right: 0;
1388
- /* min-height (not fixed height) + border-box so the safe-area padding
1389
- below extends the bar into the notch/home-indicator zone instead of
1390
- letting content bleed under the status bar (mobile safe-area bleed
1391
- fix \u2014 Workstream C). Horizontal padding also clears the left/right
1392
- insets for landscape notches. */
1393
- box-sizing: border-box;
1394
- min-height: ${xe}px;
1395
- display: flex;
1396
- align-items: center;
1397
- justify-content: center;
1398
- gap: 10px;
1399
- padding: 0 calc(16px + env(safe-area-inset-right, 0px)) 0 calc(16px + env(safe-area-inset-left, 0px));
1400
- font-family: ${H};
1401
- font-size: 12px;
1402
- letter-spacing: 0.04em;
1403
- white-space: nowrap;
1404
- overflow: hidden;
1405
- z-index: var(--mushi-banner-z, ${se});
1406
- animation: mushi-banner-slide-in ${U}ms ${L} both;
1407
- }
1408
-
1409
- .mushi-banner.top { top: 0; padding-top: env(safe-area-inset-top, 0px); }
1410
- .mushi-banner.bottom { bottom: 0; padding-bottom: env(safe-area-inset-bottom, 0px); }
1411
-
1412
- /* --- neon variant (electric lime \u2014 dev / beta tool aesthetic) --- */
1413
- .mushi-banner.neon {
1414
- background: ${E};
1415
- color: ${I};
1416
- border-bottom: 1.5px solid ${A};
1417
- }
1418
- .mushi-banner.neon.bottom {
1419
- border-top: 1.5px solid ${A};
1420
- border-bottom: none;
1421
- }
1422
- .mushi-banner.neon .mushi-banner-btn {
1423
- background: rgba(0,0,0,0.14);
1424
- color: ${I};
1425
- border: 1px solid rgba(0,0,0,0.22);
1426
- }
1427
- .mushi-banner.neon .mushi-banner-btn:hover {
1428
- background: rgba(0,0,0,0.22);
1429
- }
1430
-
1431
- /* --- brand variant (widgetAccent \u2014 editorial, app-quality) --- */
1432
- .mushi-banner.brand {
1433
- background: ${u};
1434
- color: ${b};
1435
- border-bottom: 1.5px solid ${T};
1436
- }
1437
- .mushi-banner.brand.bottom {
1438
- border-top: 1.5px solid ${T};
1439
- border-bottom: none;
1440
- }
1441
- .mushi-banner.brand .mushi-banner-btn {
1442
- background: rgba(255,255,255,0.18);
1443
- color: ${b};
1444
- border: 1px solid rgba(255,255,255,0.32);
1445
- }
1446
- .mushi-banner.brand .mushi-banner-btn:hover {
1447
- background: rgba(255,255,255,0.28);
1448
- }
1449
-
1450
- /* --- subtle variant (frosted-glass, muted \u2014 least disruptive) ---
1451
- Uses the widget's own paper colour at high opacity + backdrop-blur so
1452
- it blends with the host app while remaining legible. The previous 4-6%
1453
- opacity values were effectively invisible \u2014 users could not distinguish
1454
- the banner from the page content below it. */
1455
- .mushi-banner.subtle {
1456
- background: ${s?"rgba(15,14,12,0.88)":"rgba(248,244,237,0.92)"};
1457
- backdrop-filter: blur(14px);
1458
- -webkit-backdrop-filter: blur(14px);
1459
- color: ${i};
1460
- border-bottom: 1px solid ${y};
1461
- }
1462
- .mushi-banner.subtle.bottom {
1463
- border-top: 1px solid ${y};
1464
- border-bottom: none;
1465
- }
1466
- .mushi-banner.subtle .mushi-banner-btn {
1467
- background: ${s?"rgba(242,235,221,0.10)":"rgba(14,13,11,0.08)"};
1468
- color: ${i};
1469
- border: 1px solid ${y};
1470
- }
1471
- .mushi-banner.subtle .mushi-banner-btn:hover {
1472
- background: ${s?"rgba(242,235,221,0.18)":"rgba(14,13,11,0.14)"};
1473
- }
1474
-
1475
- .mushi-banner-label {
1476
- flex: 1;
1477
- text-align: center;
1478
- overflow: hidden;
1479
- text-overflow: ellipsis;
1480
- }
1481
-
1482
- /* Rich layout \u2014 pill + message + flat text actions (admin BetaBanner parity) */
1483
- .mushi-banner--rich {
1484
- justify-content: space-between;
1485
- gap: 12px;
1486
- min-height: ${xe}px;
1487
- height: auto;
1488
- padding: 4px 12px 4px 16px;
1489
- white-space: normal;
1490
- }
1491
- .mushi-banner-body {
1492
- display: flex;
1493
- align-items: center;
1494
- gap: 8px;
1495
- flex: 1;
1496
- min-width: 0;
1497
- overflow: hidden;
1498
- }
1499
- .mushi-banner-pill {
1500
- display: inline-flex;
1501
- flex-shrink: 0;
1502
- align-items: center;
1503
- padding: 1px 6px;
1504
- border-radius: 3px;
1505
- border: 1px solid currentColor;
1506
- font-size: 10px;
1507
- font-weight: 700;
1508
- letter-spacing: 0.18em;
1509
- text-transform: uppercase;
1510
- opacity: 0.92;
1511
- }
1512
- .mushi-banner.neon .mushi-banner-pill {
1513
- border-color: rgba(10,26,10,0.45);
1514
- background: rgba(10,26,10,0.12);
1515
- }
1516
- .mushi-banner.brand .mushi-banner-pill {
1517
- border-color: rgba(255,255,255,0.45);
1518
- background: rgba(255,255,255,0.14);
1519
- }
1520
- .mushi-banner.subtle .mushi-banner-pill {
1521
- border-color: ${y};
1522
- background: ${s?"rgba(242,235,221,0.08)":"rgba(14,13,11,0.06)"};
1523
- }
1524
- .mushi-banner-message {
1525
- min-width: 0;
1526
- overflow: hidden;
1527
- text-overflow: ellipsis;
1528
- white-space: nowrap;
1529
- font-size: 12px;
1530
- font-weight: 500;
1531
- line-height: 1.3;
1532
- opacity: 0.9;
1533
- }
1534
- .mushi-banner-actions {
1535
- display: inline-flex;
1536
- align-items: center;
1537
- gap: 0;
1538
- /* Shrinkable + swipe-scrollable so a long action row can never push
1539
- past the viewport edge (dismiss sits outside this nav). */
1540
- flex-shrink: 1;
1541
- min-width: 0;
1542
- overflow-x: auto;
1543
- scrollbar-width: none;
1544
- font-size: 11px;
1545
- }
1546
- .mushi-banner-actions::-webkit-scrollbar { display: none; }
1547
- @media (max-width: ${fe}px) {
1548
- /* Phones: keep only the primary bug CTA (+ dismiss outside the nav). */
1549
- .mushi-banner-actions .mushi-banner-extra { display: none; }
1550
- }
1551
- .mushi-banner-link {
1552
- display: inline-flex;
1553
- align-items: center;
1554
- padding: 2px 8px;
1555
- border: none;
1556
- background: transparent;
1557
- color: inherit;
1558
- cursor: pointer;
1559
- font: inherit;
1560
- letter-spacing: inherit;
1561
- text-decoration: none;
1562
- opacity: 0.88;
1563
- transition: opacity ${x}ms ${L};
1564
- flex-shrink: 0;
1565
- }
1566
- .mushi-banner-link:hover { opacity: 1; }
1567
- .mushi-banner-link:focus-visible {
1568
- outline: 2px solid ${u};
1569
- outline-offset: 2px;
1570
- border-radius: 2px;
1571
- }
1572
- .mushi-banner-divider {
1573
- opacity: 0.28;
1574
- padding: 0 1px;
1575
- user-select: none;
1576
- flex-shrink: 0;
1577
- }
1578
- .mushi-banner--rich .mushi-banner-dismiss {
1579
- margin-left: 4px;
1580
- }
1581
-
1582
- .mushi-banner-btn {
1583
- display: inline-flex;
1584
- align-items: center;
1585
- gap: 4px;
1586
- padding: 3px 10px;
1587
- border-radius: 3px;
1588
- cursor: pointer;
1589
- font: inherit;
1590
- letter-spacing: inherit;
1591
- transition: opacity ${x}ms ${L};
1592
- flex-shrink: 0;
1593
- height: 24px;
1594
- line-height: 1;
1595
- }
1596
- .mushi-banner-btn:focus-visible {
1597
- outline: 2px solid ${u};
1598
- outline-offset: 2px;
1599
- }
1600
-
1601
- .mushi-banner-dismiss {
1602
- background: transparent !important;
1603
- border: none !important;
1604
- opacity: 0.65;
1605
- cursor: pointer;
1606
- font-size: 14px;
1607
- line-height: 1;
1608
- padding: 4px 8px;
1609
- margin-left: auto;
1610
- flex-shrink: 0;
1611
- color: inherit;
1612
- border-radius: 3px;
1613
- transition: opacity ${x}ms ${L};
1614
- }
1615
- .mushi-banner-dismiss:hover {
1616
- opacity: 1;
1617
- background: rgba(0,0,0,0.12) !important;
1618
- }
1619
- .mushi-banner.neon .mushi-banner-dismiss:hover { background: rgba(0,0,0,0.18) !important; }
1620
-
1621
- /* "My reports" link in the simple (non-rich) banner layout */
1622
- .mushi-banner-my-reports {
1623
- background: transparent;
1624
- border: none;
1625
- cursor: pointer;
1626
- font-size: 11px;
1627
- font-family: ${H};
1628
- opacity: 0.75;
1629
- color: inherit;
1630
- padding: 2px 6px;
1631
- border-radius: 3px;
1632
- white-space: nowrap;
1633
- flex-shrink: 0;
1634
- transition: opacity ${x}ms ${L};
1635
- margin-left: 4px;
1636
- }
1637
- .mushi-banner-my-reports:hover {
1638
- opacity: 1;
1639
- background: rgba(0,0,0,0.10);
1640
- }
1641
- .mushi-banner.neon .mushi-banner-my-reports:hover { background: rgba(0,0,0,0.18); }
1642
-
1643
- @keyframes mushi-banner-slide-in {
1644
- from { transform: translateY(calc(-1 * 100%)); opacity: 0.5; }
1645
- to { transform: translateY(0); opacity: 1; }
1646
- }
1647
- .mushi-banner.bottom {
1648
- animation-name: mushi-banner-slide-in-bottom;
1649
- }
1650
- @keyframes mushi-banner-slide-in-bottom {
1651
- from { transform: translateY(100%); opacity: 0.5; }
1652
- to { transform: translateY(0); opacity: 1; }
1653
- }
1654
-
1655
- @media (prefers-reduced-motion: reduce) {
1656
- *,
1657
- *::before,
1658
- *::after {
1659
- animation-duration: 0.001ms !important;
1660
- animation-iteration-count: 1 !important;
1661
- transition-duration: 0.001ms !important;
1662
- }
1663
- .mushi-success-stamp circle { stroke-dashoffset: 0; }
1664
- .mushi-success-stamp-label { opacity: 1; }
1665
- .mushi-success-pts-award { opacity: 1; }
1666
- }
1667
-
1668
- .mushi-community-footer{display:flex;align-items:center;gap:8px;padding:10px 0 2px;border-top:1px solid ${s?"rgba(255,255,255,0.07)":"rgba(0,0,0,0.07)"};margin-top:8px;flex-wrap:wrap}
1669
- .mushi-community-btn{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
1670
- .mushi-section-label{
1671
- margin:0 0 6px;
1672
- font-family:${H};
1673
- font-size:11px;
1674
- letter-spacing:0.06em;
1675
- text-transform:uppercase;
1676
- color:${h};
1677
- }
1678
- .mushi-more-nav{margin-top:4px}
1679
- .mushi-more-nav-panel{display:flex;flex-direction:column;gap:0;border-top:1px dashed ${p};padding-top:2px}
1680
- .mushi-more-nav-link{align-self:flex-start;margin:6px 0 2px;padding:0}
1681
- /* \u2500\u2500 "More issue types \u2192" toggle (progressive disclosure) \u2500\u2500\u2500\u2500\u2500\u2500\u2500 */
1682
- .mushi-more-toggle {
1683
- display: flex;
1684
- align-items: center;
1685
- gap: 8px;
1686
- width: 100%;
1687
- padding: 11px 0;
1688
- border: none;
1689
- border-top: 1px dashed ${p};
1690
- background: transparent;
1691
- cursor: pointer;
1692
- color: ${l};
1693
- font-family: ${Y};
1694
- font-size: 13px;
1695
- text-align: left;
1696
- transition: opacity ${P}ms ${L};
1697
- }
1698
- .mushi-more-toggle:hover { color: ${u}; }
1699
- .mushi-more-toggle:hover .mushi-more-toggle-arrow { transform: translateX(3px); }
1700
- .mushi-more-toggle-text { flex: 1; }
1701
- .mushi-more-toggle-count {
1702
- font-family: ${H};
1703
- font-size: 10px;
1704
- letter-spacing: 0.08em;
1705
- text-transform: uppercase;
1706
- color: ${h};
1707
- background: ${s?"rgba(255,255,255,0.07)":"rgba(0,0,0,0.06)"};
1708
- padding: 2px 6px;
1709
- border-radius: 10px;
1710
- }
1711
- .mushi-more-toggle-arrow {
1712
- font-size: 14px;
1713
- opacity: 0.5;
1714
- transition: transform ${P}ms ${L};
1715
- }
1716
- /* \u2500\u2500 Step slide-in \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 */
1717
- @keyframes mushi-step-in {
1718
- 0% { opacity: 0; transform: translateX(8px); }
1719
- 100% { opacity: 1; transform: translateX(0); }
1720
- }
1721
- .mushi-body {
1722
- animation: mushi-step-in 160ms ease both;
1723
- }
1724
- @media (prefers-reduced-motion: reduce) {
1725
- .mushi-body { animation: none; }
1726
- }
1727
- /* Expanded secondary categories animate in */
1728
- .mushi-categories-expanded {
1729
- animation: mushi-step-in ${P}ms ${L} both;
1730
- }
1731
- .mushi-link-btn{background:none;border:none;padding:4px 2px;cursor:pointer;color:${u};font-size:12px;font-family:${H};text-decoration:underline;text-underline-offset:2px}
1732
- .mushi-link-btn:hover{opacity:0.8}
1733
- .mushi-link-btn:focus-visible,.mushi-nav-item:focus-visible{outline:2px solid ${u};outline-offset:2px;border-radius:2px}
1734
- .mushi-nav-item{display:block;width:100%;text-align:left;background:${s?"rgba(255,255,255,0.05)":"rgba(0,0,0,0.04)"};border:1px solid ${s?"rgba(255,255,255,0.08)":"rgba(0,0,0,0.08)"};border-radius:8px;padding:10px 14px;margin-bottom:8px;cursor:pointer;font-size:13px;color:${i};transition:opacity ${x}ms ${L}}
1735
- .mushi-nav-item:hover{background:${s?"rgba(255,255,255,0.09)":"rgba(0,0,0,0.07)"}}
1736
- .mushi-account-card{display:flex;align-items:center;gap:12px;background:${s?"rgba(255,255,255,0.06)":"rgba(0,0,0,0.04)"};border-radius:10px;padding:12px 14px;margin-bottom:14px}
1737
- .mushi-account-avatar{width:40px;height:40px;border-radius:50%;background:${S};color:${w};display:flex;align-items:center;justify-content:center;font-size:16px;font-weight:700;flex-shrink:0}
1738
- .mushi-account-info{display:flex;flex-direction:column;gap:2px;min-width:0}
1739
- .mushi-account-info strong{font:700 14px/1.3 inherit;color:${i}}
1740
- .mushi-account-rank,.mushi-xapp-app-name,.mushi-label{font-size:12px;color:${f};font-family:${H}}
1741
- .mushi-account-rank{display:block}
1742
- .mushi-xapp-app-head{display:flex;align-items:center;gap:8px;margin:0 0 6px}
1743
- .mushi-xapp-app-name{font-size:11px;font-weight:600;text-transform:uppercase;letter-spacing:.06em;margin:0}
1744
- .mushi-app-icon{display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;border-radius:6px;border:1px solid ${s?"rgba(255,255,255,0.12)":"rgba(0,0,0,0.1)"};background:${a};overflow:hidden;flex-shrink:0}
1745
- .mushi-app-icon-img{display:block;width:16px;height:16px;object-fit:contain}
1746
- .mushi-app-icon-initials{font-size:9px;font-weight:700;color:${f};line-height:1}
1747
- .mushi-app-icon-initials-only{background:${s?"rgba(255,255,255,0.06)":"rgba(0,0,0,0.04)"}}
1748
- .mushi-header-host-icon{display:block;width:20px;height:20px;border-radius:4px;object-fit:contain}
1749
- .mushi-xapp-group{margin-bottom:14px}
1750
- .mushi-label{display:block;font-weight:600;margin-bottom:6px}
1751
-
1752
- /* \u2500\u2500 Assistant tab (P5) \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 */
1753
- .mushi-assistant{display:flex;flex-direction:column;height:100%;min-height:0;max-height:60vh}
1754
- .mushi-assistant-log{flex:1;min-height:120px;overflow-y:auto;display:flex;flex-direction:column;gap:8px;padding:4px 2px 8px}
1755
- .mushi-assistant-greeting{font:400 14px/1.5 ${Y};color:${l};padding:6px 2px}
1756
- .mushi-assistant-suggestions{display:flex;flex-wrap:wrap;gap:6px;margin-top:4px}
1757
- .mushi-assistant-chip{background:${S};color:${w};border:1px solid ${y};border-radius:999px;padding:5px 12px;font-size:12px;cursor:pointer;font-family:${Y};transition:opacity ${x}ms ${L},transform ${x}ms ${L}}
1758
- .mushi-assistant-chip:hover{background:rgba(${_},${s?"0.22":"0.14"})}
1759
- .mushi-assistant-chip:focus-visible{outline:2px solid ${u};outline-offset:2px}
1760
- .mushi-assistant-msg{max-width:85%;padding:8px 12px;border-radius:12px;font:400 14px/1.45 ${Y};white-space:pre-wrap;word-break:break-word}
1761
- .mushi-assistant-msg-user{align-self:flex-end;background:${u};color:${b};border-bottom-right-radius:4px}
1762
- .mushi-assistant-msg-bot{align-self:flex-start;background:${s?"rgba(255,255,255,0.06)":"rgba(0,0,0,0.05)"};color:${i};border-bottom-left-radius:4px}
1763
- .mushi-assistant-thinking{opacity:0.6;font-size:18px;letter-spacing:2px}
1764
- .mushi-assistant-error{align-self:flex-start;color:${g};font-size:12px;padding:4px 2px;display:flex;flex-direction:column;align-items:flex-start;gap:6px}
1765
- .mushi-assistant-recovery{display:flex;flex-wrap:wrap;gap:6px;margin-top:2px}
1766
- .mushi-assistant-recovery-footer{margin-top:4px;padding-top:4px}
1767
- .mushi-assistant-report-cta{background:${u};color:${b};border:none;border-radius:999px;padding:6px 14px;font-size:12px;cursor:pointer;font-family:${Y};font-weight:600}
1768
- .mushi-assistant-report-cta:hover{opacity:0.92}
1769
- .mushi-assistant-report-cta:focus-visible{outline:2px solid ${u};outline-offset:2px}
1770
- .mushi-assistant-report-link{background:transparent;color:${w};border:none;padding:0;font-size:12px;cursor:pointer;font-family:${Y};text-decoration:underline;text-underline-offset:2px}
1771
- .mushi-assistant-report-link:hover{opacity:0.85}
1772
- .mushi-assistant-report-link:focus-visible{outline:2px solid ${u};outline-offset:2px}
1773
- .mushi-assistant-form{display:flex;align-items:flex-end;gap:8px;border-top:1px solid ${p};padding-top:8px}
1774
- .mushi-assistant-input{flex:1;resize:none;max-height:120px;border:1px solid ${y};border-radius:10px;padding:8px 12px;font:400 14px/1.4 ${Y};background:${o};color:${i}}
1775
- .mushi-assistant-input:focus-visible{outline:2px solid ${u};outline-offset:1px}
1776
- .mushi-assistant-submit{flex-shrink:0;width:36px;height:36px;border:none;border-radius:50%;background:${u};color:${b};font-size:18px;line-height:1;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:transform .15s,opacity .15s}
1777
- .mushi-assistant-submit:hover{transform:translateY(-1px)}
1778
- .mushi-assistant-submit:disabled{opacity:0.5;cursor:default;transform:none}
1779
- .mushi-assistant-submit:focus-visible{outline:2px solid ${u};outline-offset:2px}
1780
- `}var Ve="@mushi-mushi/web",he="1.29.0";var Pr="mushi-assistant-session-v1";function bi(){try{if(typeof sessionStorage>"u")return null;let t=sessionStorage.getItem(Pr);if(!t)return null;let e=JSON.parse(t);if(!e||typeof e!="object")return null;let r=e,n=Array.isArray(r.turns)?r.turns:null;if(!n)return null;let s=[];for(let a of n){if(!a||typeof a!="object")continue;let i=a;if(i.role!=="user"&&i.role!=="assistant"||typeof i.text!="string")continue;let l={role:i.role,text:i.text};if(Array.isArray(i.options)){let h=i.options.filter(f=>typeof f=="string");h.length&&(l.options=h);}i.offerReport===!0&&(l.offerReport=!0),s.push(l);}let o=typeof r.threadId=="string"&&r.threadId.length>0?r.threadId:null;return {turns:s,threadId:o}}catch{return null}}function yi(t){try{if(typeof sessionStorage>"u")return;if(!t.turns.length&&!t.threadId){sessionStorage.removeItem(Pr);return}sessionStorage.setItem(Pr,JSON.stringify(t));}catch{}}function vi(){try{if(typeof sessionStorage>"u")return;sessionStorage.removeItem(Pr);}catch{}}var Dr={bug:"\u26A0\uFE0F",slow:"\u{1F40C}",visual:"\u{1F3A8}",confusing:"\u{1F615}",other:"\u{1F4DD}"},Bn="Feature request";function Nn(t){switch(t){case "new":case "queued":case "pending":case "submitted":return "Sent";case "classified":case "triaged":case "grouped":case "dispatched":return "Review";case "fixing":return "Fixing";case "fixed":case "resolved":case "completed":return "Fixed";case "dismissed":return "Closed";default:return t.replace(/_/g," ").slice(0,12)}}function wi(t){switch(t){case "new":case "queued":case "pending":case "submitted":return "Submitted";case "classified":case "triaged":case "grouped":case "dispatched":return "In review";case "fixing":return "Fix in progress";case "fixed":case "resolved":case "completed":return "Fixed \u2014 confirm?";case "verified":return "Verified";case "reopened":return "Reopened";case "dismissed":return "Closed";default:return t.replace(/_/g," ")}}function Or(t){switch(t){case "new":case "queued":case "pending":case "submitted":return "sent";case "classified":case "triaged":case "grouped":case "dispatched":return "review";case "fixing":return "fixing";case "fixed":case "resolved":case "completed":return "fixed";case "verified":return "fixed";case "reopened":return "fixing";case "dismissed":return "closed";default:return "unknown"}}function Br(t){let e=Date.parse(t);if(Number.isNaN(e))return "";let r=Date.now()-e;if(r<0)return "just now";let n=Math.floor(r/1e3);if(n<60)return "just now";let s=Math.floor(n/60);if(s<60)return `${s}m ago`;let o=Math.floor(s/60);if(o<24)return `${o}h ago`;let a=Math.floor(o/24);if(a<7)return `${a}d ago`;let i=Math.floor(a/7);return i<5?`${i}w ago`:new Date(e).toLocaleDateString(void 0,{month:"short",day:"numeric"})}function Un(t){return t<10?`0${t}`:String(t)}var Uc="https://kensaur.us/mushi-mushi/",Fc="utm_source=widget&utm_medium=powered-by";function xi(t){let e=`${Uc}?${Fc}`;return t&&/^[0-9a-f]{6,64}$/.test(t)?`${e}&ref=${t}`:e}var Fn=3,Nr={category:1,intent:2,details:3};function Si(t){return (t.metaKey||t.ctrlKey)&&t.key==="Enter"}function m(t){return t.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#39;")}function Ei(t){let e=t.appDomain??ii({project_slug:t.appSlug??""}),r=m(li(t.appName)),n=oi({project_slug:t.appSlug??"",sdk_origin:t.appDomain?`https://${t.appDomain}`:null});return n.length?`<span class="mushi-app-icon" data-mushi-favicon data-candidates="${m(JSON.stringify(n))}" data-initials="${r}" aria-hidden="true" title="${m(e??t.appName)}">
1781
- <img class="mushi-app-icon-img" src="${m(n[0])}" alt="" referrerpolicy="no-referrer" width="16" height="16" />
1
+ (function(){'use strict';var yu=Object.defineProperty;var qe=(t,e)=>()=>(t&&(e=t(t=0)),e);var jt=(t,e)=>{for(var r in e)yu(t,r,{get:e[r],enumerable:true});};function vu(t){return t instanceof Uint8Array||ArrayBuffer.isView(t)&&t.constructor.name==="Uint8Array"&&"BYTES_PER_ELEMENT"in t&&t.BYTES_PER_ELEMENT===1}function Yi(t,e=""){if(typeof t!="number"){let r=e&&`"${e}" `;throw new TypeError(`${r}expected number, got ${typeof t}`)}if(!Number.isSafeInteger(t)||t<0){let r=e&&`"${e}" `;throw new RangeError(`${r}expected integer >= 0, got ${t}`)}}function Wt(t,e,r=""){let n=vu(t),i=t?.length,o=e!==void 0;if(!n||o){let a=r&&`"${r}" `,s="",u=n?`length=${i}`:`type=${typeof t}`,d=a+"expected Uint8Array"+s+", got "+u;throw n?new RangeError(d):new TypeError(d)}return t}function Xi(t){if(typeof t!="function"||typeof t.create!="function")throw new TypeError("Hash must wrapped by utils.createHasher");if(Yi(t.outputLen),Yi(t.blockLen),t.outputLen<1)throw new Error('"outputLen" must be >= 1');if(t.blockLen<1)throw new Error('"blockLen" must be >= 1')}function xt(t,e=true){if(t.destroyed)throw new Error("Hash instance has been destroyed");if(e&&t.finished)throw new Error("Hash#digest() has already been called")}function yr(t,e){Wt(t,void 0,"digestInto() output");let r=e.outputLen;if(t.length<r)throw new RangeError('"digestInto() output" expected to be of length >='+r)}function je(...t){for(let e=0;e<t.length;e++)t[e].fill(0);}function vr(t){return new DataView(t.buffer,t.byteOffset,t.byteLength)}function Ae(t,e){return t<<32-e|t>>>e}function at(t,e={}){let r=(i,o)=>t(o).update(i).digest(),n=t(void 0);return r.outputLen=n.outputLen,r.blockLen=n.blockLen,r.canXOF=n.canXOF,r.create=i=>t(i),Object.assign(r,e),Object.freeze(r)}var ut,wr=qe(()=>{ut=t=>({oid:Uint8Array.from([6,9,96,134,72,1,101,3,4,2,t])});});function Ji(t,e,r){return t&e^~t&r}function Qi(t,e,r){return t&e^t&r^e&r}var Vt,We,Ve,oe,se,Zi=qe(()=>{wr();Vt=class{blockLen;outputLen;canXOF=false;padOffset;isLE;buffer;view;finished=false;length=0;pos=0;destroyed=false;constructor(e,r,n,i){this.blockLen=e,this.outputLen=r,this.padOffset=n,this.isLE=i,this.buffer=new Uint8Array(e),this.view=vr(this.buffer);}update(e){xt(this),Wt(e);let{view:r,buffer:n,blockLen:i}=this,o=e.length;for(let a=0;a<o;){let s=Math.min(i-this.pos,o-a);if(s===i){let u=vr(e);for(;i<=o-a;a+=i)this.process(u,a);continue}n.set(e.subarray(a,a+s),this.pos),this.pos+=s,a+=s,this.pos===i&&(this.process(r,0),this.pos=0);}return this.length+=e.length,this.roundClean(),this}digestInto(e){xt(this),yr(e,this),this.finished=true;let{buffer:r,view:n,blockLen:i,isLE:o}=this,{pos:a}=this;r[a++]=128,je(this.buffer.subarray(a)),this.padOffset>i-a&&(this.process(n,0),a=0);for(let h=a;h<i;h++)r[h]=0;n.setBigUint64(i-8,BigInt(this.length*8),o),this.process(n,0);let s=vr(e),u=this.outputLen;if(u%4)throw new Error("_sha2: outputLen must be aligned to 32bit");let d=u/4,p=this.get();if(d>p.length)throw new Error("_sha2: outputLen bigger than state");for(let h=0;h<d;h++)s.setUint32(4*h,p[h],o);}digest(){let{buffer:e,outputLen:r}=this;this.digestInto(e);let n=e.slice(0,r);return this.destroy(),n}_cloneInto(e){e||=new this.constructor,e.set(...this.get());let{blockLen:r,buffer:n,length:i,finished:o,destroyed:a,pos:s}=this;return e.destroyed=a,e.finished=o,e.length=i,e.pos=s,i%r&&e.buffer.set(n),e}clone(){return this._cloneInto()}},We=Uint32Array.from([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),Ve=Uint32Array.from([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]),oe=Uint32Array.from([3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]),se=Uint32Array.from([1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209]);});function wu(t,e=false){return e?{h:Number(t&Sr),l:Number(t>>eo&Sr)}:{h:Number(t>>eo&Sr)|0,l:Number(t&Sr)|0}}function to(t,e=false){let r=t.length,n=new Uint32Array(r),i=new Uint32Array(r);for(let o=0;o<r;o++){let{h:a,l:s}=wu(t[o],e);[n[o],i[o]]=[a,s];}return [n,i]}function Pe(t,e,r,n){let i=(e>>>0)+(n>>>0);return {h:t+r+(i/2**32|0)|0,l:i|0}}var Sr,eo,pn,hn,lt,ct,Kt,zt,ro,no,io,oo,so,ao,uo=qe(()=>{Sr=BigInt(4294967295),eo=BigInt(32);pn=(t,e,r)=>t>>>r,hn=(t,e,r)=>t<<32-r|e>>>r,lt=(t,e,r)=>t>>>r|e<<32-r,ct=(t,e,r)=>t<<32-r|e>>>r,Kt=(t,e,r)=>t<<64-r|e>>>r-32,zt=(t,e,r)=>t>>>r-32|e<<64-r;ro=(t,e,r)=>(t>>>0)+(e>>>0)+(r>>>0),no=(t,e,r,n)=>e+r+n+(t/2**32|0)|0,io=(t,e,r,n)=>(t>>>0)+(e>>>0)+(r>>>0)+(n>>>0),oo=(t,e,r,n,i)=>e+r+n+i+(t/2**32|0)|0,so=(t,e,r,n,i)=>(t>>>0)+(e>>>0)+(r>>>0)+(n>>>0)+(i>>>0),ao=(t,e,r,n,i,o)=>e+r+n+i+o+(t/2**32|0)|0;});var fn={};jt(fn,{_SHA224:()=>kr,_SHA256:()=>Rr,_SHA384:()=>Cr,_SHA512:()=>_r,_SHA512_224:()=>Tr,_SHA512_256:()=>Ar,sha224:()=>Cu,sha256:()=>_u,sha384:()=>Au,sha512:()=>Tu,sha512_224:()=>Mu,sha512_256:()=>Iu});var xu,Je,xr,Rr,kr,lo,Ru,ku,Qe,Ze,Rt,_r,Cr,le,ce,Tr,Ar,_u,Cu,Tu,Au,Iu,Mu,mn=qe(()=>{Zi();uo();wr();xu=Uint32Array.from([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),Je=new Uint32Array(64),xr=class extends Vt{constructor(e){super(64,e,8,false);}get(){let{A:e,B:r,C:n,D:i,E:o,F:a,G:s,H:u}=this;return [e,r,n,i,o,a,s,u]}set(e,r,n,i,o,a,s,u){this.A=e|0,this.B=r|0,this.C=n|0,this.D=i|0,this.E=o|0,this.F=a|0,this.G=s|0,this.H=u|0;}process(e,r){for(let h=0;h<16;h++,r+=4)Je[h]=e.getUint32(r,false);for(let h=16;h<64;h++){let k=Je[h-15],S=Je[h-2],T=Ae(k,7)^Ae(k,18)^k>>>3,E=Ae(S,17)^Ae(S,19)^S>>>10;Je[h]=E+Je[h-7]+T+Je[h-16]|0;}let{A:n,B:i,C:o,D:a,E:s,F:u,G:d,H:p}=this;for(let h=0;h<64;h++){let k=Ae(s,6)^Ae(s,11)^Ae(s,25),S=p+k+Ji(s,u,d)+xu[h]+Je[h]|0,E=(Ae(n,2)^Ae(n,13)^Ae(n,22))+Qi(n,i,o)|0;p=d,d=u,u=s,s=a+S|0,a=o,o=i,i=n,n=S+E|0;}n=n+this.A|0,i=i+this.B|0,o=o+this.C|0,a=a+this.D|0,s=s+this.E|0,u=u+this.F|0,d=d+this.G|0,p=p+this.H|0,this.set(n,i,o,a,s,u,d,p);}roundClean(){je(Je);}destroy(){this.destroyed=true,this.set(0,0,0,0,0,0,0,0),je(this.buffer);}},Rr=class extends xr{A=We[0]|0;B=We[1]|0;C=We[2]|0;D=We[3]|0;E=We[4]|0;F=We[5]|0;G=We[6]|0;H=We[7]|0;constructor(){super(32);}},kr=class extends xr{A=Ve[0]|0;B=Ve[1]|0;C=Ve[2]|0;D=Ve[3]|0;E=Ve[4]|0;F=Ve[5]|0;G=Ve[6]|0;H=Ve[7]|0;constructor(){super(28);}},lo=to(["0x428a2f98d728ae22","0x7137449123ef65cd","0xb5c0fbcfec4d3b2f","0xe9b5dba58189dbbc","0x3956c25bf348b538","0x59f111f1b605d019","0x923f82a4af194f9b","0xab1c5ed5da6d8118","0xd807aa98a3030242","0x12835b0145706fbe","0x243185be4ee4b28c","0x550c7dc3d5ffb4e2","0x72be5d74f27b896f","0x80deb1fe3b1696b1","0x9bdc06a725c71235","0xc19bf174cf692694","0xe49b69c19ef14ad2","0xefbe4786384f25e3","0x0fc19dc68b8cd5b5","0x240ca1cc77ac9c65","0x2de92c6f592b0275","0x4a7484aa6ea6e483","0x5cb0a9dcbd41fbd4","0x76f988da831153b5","0x983e5152ee66dfab","0xa831c66d2db43210","0xb00327c898fb213f","0xbf597fc7beef0ee4","0xc6e00bf33da88fc2","0xd5a79147930aa725","0x06ca6351e003826f","0x142929670a0e6e70","0x27b70a8546d22ffc","0x2e1b21385c26c926","0x4d2c6dfc5ac42aed","0x53380d139d95b3df","0x650a73548baf63de","0x766a0abb3c77b2a8","0x81c2c92e47edaee6","0x92722c851482353b","0xa2bfe8a14cf10364","0xa81a664bbc423001","0xc24b8b70d0f89791","0xc76c51a30654be30","0xd192e819d6ef5218","0xd69906245565a910","0xf40e35855771202a","0x106aa07032bbd1b8","0x19a4c116b8d2d0c8","0x1e376c085141ab53","0x2748774cdf8eeb99","0x34b0bcb5e19b48a8","0x391c0cb3c5c95a63","0x4ed8aa4ae3418acb","0x5b9cca4f7763e373","0x682e6ff3d6b2b8a3","0x748f82ee5defb2fc","0x78a5636f43172f60","0x84c87814a1f0ab72","0x8cc702081a6439ec","0x90befffa23631e28","0xa4506cebde82bde9","0xbef9a3f7b2c67915","0xc67178f2e372532b","0xca273eceea26619c","0xd186b8c721c0c207","0xeada7dd6cde0eb1e","0xf57d4f7fee6ed178","0x06f067aa72176fba","0x0a637dc5a2c898a6","0x113f9804bef90dae","0x1b710b35131c471b","0x28db77f523047d84","0x32caab7b40c72493","0x3c9ebe0a15c9bebc","0x431d67c49c100d4c","0x4cc5d4becb3e42b6","0x597f299cfc657e2a","0x5fcb6fab3ad6faec","0x6c44198c4a475817"].map(t=>BigInt(t))),Ru=lo[0],ku=lo[1],Qe=new Uint32Array(80),Ze=new Uint32Array(80),Rt=class extends Vt{constructor(e){super(128,e,16,false);}get(){let{Ah:e,Al:r,Bh:n,Bl:i,Ch:o,Cl:a,Dh:s,Dl:u,Eh:d,El:p,Fh:h,Fl:k,Gh:S,Gl:T,Hh:E,Hl:w}=this;return [e,r,n,i,o,a,s,u,d,p,h,k,S,T,E,w]}set(e,r,n,i,o,a,s,u,d,p,h,k,S,T,E,w){this.Ah=e|0,this.Al=r|0,this.Bh=n|0,this.Bl=i|0,this.Ch=o|0,this.Cl=a|0,this.Dh=s|0,this.Dl=u|0,this.Eh=d|0,this.El=p|0,this.Fh=h|0,this.Fl=k|0,this.Gh=S|0,this.Gl=T|0,this.Hh=E|0,this.Hl=w|0;}process(e,r){for(let x=0;x<16;x++,r+=4)Qe[x]=e.getUint32(r),Ze[x]=e.getUint32(r+=4);for(let x=16;x<80;x++){let f=Qe[x-15]|0,g=Ze[x-15]|0,m=lt(f,g,1)^lt(f,g,8)^pn(f,g,7),b=ct(f,g,1)^ct(f,g,8)^hn(f,g,7),C=Qe[x-2]|0,P=Ze[x-2]|0,v=lt(C,P,19)^Kt(C,P,61)^pn(C,P,6),K=ct(C,P,19)^zt(C,P,61)^hn(C,P,6),Y=io(b,K,Ze[x-7],Ze[x-16]),ne=oo(Y,m,v,Qe[x-7],Qe[x-16]);Qe[x]=ne|0,Ze[x]=Y|0;}let{Ah:n,Al:i,Bh:o,Bl:a,Ch:s,Cl:u,Dh:d,Dl:p,Eh:h,El:k,Fh:S,Fl:T,Gh:E,Gl:w,Hh:L,Hl:M}=this;for(let x=0;x<80;x++){let f=lt(h,k,14)^lt(h,k,18)^Kt(h,k,41),g=ct(h,k,14)^ct(h,k,18)^zt(h,k,41),m=h&S^~h&E,b=k&T^~k&w,C=so(M,g,b,ku[x],Ze[x]),P=ao(C,L,f,m,Ru[x],Qe[x]),v=C|0,K=lt(n,i,28)^Kt(n,i,34)^Kt(n,i,39),Y=ct(n,i,28)^zt(n,i,34)^zt(n,i,39),ne=n&o^n&s^o&s,j=i&a^i&u^a&u;L=E|0,M=w|0,E=S|0,w=T|0,S=h|0,T=k|0,{h,l:k}=Pe(d|0,p|0,P|0,v|0),d=s|0,p=u|0,s=o|0,u=a|0,o=n|0,a=i|0;let ke=ro(v,Y,j);n=no(ke,P,K,ne),i=ke|0;}(({h:n,l:i}=Pe(this.Ah|0,this.Al|0,n|0,i|0))),{h:o,l:a}=Pe(this.Bh|0,this.Bl|0,o|0,a|0),{h:s,l:u}=Pe(this.Ch|0,this.Cl|0,s|0,u|0),{h:d,l:p}=Pe(this.Dh|0,this.Dl|0,d|0,p|0),{h,l:k}=Pe(this.Eh|0,this.El|0,h|0,k|0),{h:S,l:T}=Pe(this.Fh|0,this.Fl|0,S|0,T|0),{h:E,l:w}=Pe(this.Gh|0,this.Gl|0,E|0,w|0),{h:L,l:M}=Pe(this.Hh|0,this.Hl|0,L|0,M|0),this.set(n,i,o,a,s,u,d,p,h,k,S,T,E,w,L,M);}roundClean(){je(Qe,Ze);}destroy(){this.destroyed=true,je(this.buffer),this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0);}},_r=class extends Rt{Ah=se[0]|0;Al=se[1]|0;Bh=se[2]|0;Bl=se[3]|0;Ch=se[4]|0;Cl=se[5]|0;Dh=se[6]|0;Dl=se[7]|0;Eh=se[8]|0;El=se[9]|0;Fh=se[10]|0;Fl=se[11]|0;Gh=se[12]|0;Gl=se[13]|0;Hh=se[14]|0;Hl=se[15]|0;constructor(){super(64);}},Cr=class extends Rt{Ah=oe[0]|0;Al=oe[1]|0;Bh=oe[2]|0;Bl=oe[3]|0;Ch=oe[4]|0;Cl=oe[5]|0;Dh=oe[6]|0;Dl=oe[7]|0;Eh=oe[8]|0;El=oe[9]|0;Fh=oe[10]|0;Fl=oe[11]|0;Gh=oe[12]|0;Gl=oe[13]|0;Hh=oe[14]|0;Hl=oe[15]|0;constructor(){super(48);}},le=Uint32Array.from([2352822216,424955298,1944164710,2312950998,502970286,855612546,1738396948,1479516111,258812777,2077511080,2011393907,79989058,1067287976,1780299464,286451373,2446758561]),ce=Uint32Array.from([573645204,4230739756,2673172387,3360449730,596883563,1867755857,2520282905,1497426621,2519219938,2827943907,3193839141,1401305490,721525244,746961066,246885852,2177182882]),Tr=class extends Rt{Ah=le[0]|0;Al=le[1]|0;Bh=le[2]|0;Bl=le[3]|0;Ch=le[4]|0;Cl=le[5]|0;Dh=le[6]|0;Dl=le[7]|0;Eh=le[8]|0;El=le[9]|0;Fh=le[10]|0;Fl=le[11]|0;Gh=le[12]|0;Gl=le[13]|0;Hh=le[14]|0;Hl=le[15]|0;constructor(){super(28);}},Ar=class extends Rt{Ah=ce[0]|0;Al=ce[1]|0;Bh=ce[2]|0;Bl=ce[3]|0;Ch=ce[4]|0;Cl=ce[5]|0;Dh=ce[6]|0;Dl=ce[7]|0;Eh=ce[8]|0;El=ce[9]|0;Fh=ce[10]|0;Fl=ce[11]|0;Gh=ce[12]|0;Gl=ce[13]|0;Hh=ce[14]|0;Hl=ce[15]|0;constructor(){super(32);}},_u=at(()=>new Rr,ut(1)),Cu=at(()=>new kr,ut(4)),Tu=at(()=>new _r,ut(3)),Au=at(()=>new Cr,ut(2)),Iu=at(()=>new Ar,ut(6)),Mu=at(()=>new Tr,ut(5));});var co={};jt(co,{_HMAC:()=>Gt,hmac:()=>Lu});var Gt,Lu,po=qe(()=>{wr();Gt=class{oHash;iHash;blockLen;outputLen;canXOF=false;finished=false;destroyed=false;constructor(e,r){if(Xi(e),Wt(r,void 0,"key"),this.iHash=e.create(),typeof this.iHash.update!="function")throw new Error("Expected instance of class which extends utils.Hash");this.blockLen=this.iHash.blockLen,this.outputLen=this.iHash.outputLen;let n=this.blockLen,i=new Uint8Array(n);i.set(r.length>n?e.create().update(r).digest():r);for(let o=0;o<i.length;o++)i[o]^=54;this.iHash.update(i),this.oHash=e.create();for(let o=0;o<i.length;o++)i[o]^=106;this.oHash.update(i),je(i);}update(e){return xt(this),this.iHash.update(e),this}digestInto(e){xt(this),yr(e,this),this.finished=true;let r=e.subarray(0,this.outputLen);this.iHash.digestInto(r),this.oHash.update(r),this.oHash.digestInto(r),this.destroy();}digest(){let e=new Uint8Array(this.oHash.outputLen);return this.digestInto(e),e}_cloneInto(e){e||=Object.create(Object.getPrototypeOf(this),{});let{oHash:r,iHash:n,finished:i,destroyed:o,blockLen:a,outputLen:s}=this;return e=e,e.finished=i,e.destroyed=o,e.blockLen=a,e.outputLen=s,e.oHash=r._cloneInto(e.oHash),e.iHash=n._cloneInto(e.iHash),e}clone(){return this._cloneInto()}destroy(){this.destroyed=true,this.oHash.destroy(),this.iHash.destroy();}},Lu=(()=>{let t=((e,r,n)=>new Gt(e,r).update(n).digest());return t.create=(e,r)=>new Gt(e,r),t})();});function rd(t){let e=(t??"").toLowerCase().split(/[-_]/)[0];return zc.includes(e)?e:"en"}function yt(t="en"){return td[rd(t)]}function ar(t,e={}){return t.replace(/\{(\w+)\}/g,(r,n)=>{let i=e[n];return i==null?"":String(i)})}function nd(t){return Kc.includes(t)}function id(t){let e=(t.user_category??"").trim().toLowerCase().replace(/[\s-]+/g,"_");return e==="feature"||e==="feature_request"||e==="idea"}function Pt(t,e="en"){let r=yt(e),n=(t.status??"").trim(),i=nd(n)?Gc[n]:"received",o=t.fixed_in_version?.trim()||null;(n==="fixed"||n==="resolved")&&o&&(i="fixed_version"),(t.awaiting_reporter||t.awaiting_reporter_at)&&Gs.has(i)&&(i="waiting");let s=id(t),u=r.status[i],d=r.detail[i];s&&(i==="received"?u=r.idea.received:i==="reviewing"||i==="reviewing_again"?u=r.idea.reviewing:i==="fixing"?u=r.idea.fixing:i==="fixed_version"?u=r.idea.shippedVersion:(i==="fixed_next"||i==="fixed")&&(u=r.idea.shipped));let p=t.closed_reason??null;i==="closed"&&(d=p&&p!=="spam"&&p in r.closedReason?r.closedReason[p]:r.closedReason.none);let h=t.group_bucket??"none",k=Gs.has(i)||i==="waiting"?h==="few"?r.others.few:h==="many"?r.others.many:null:null;return {key:i,label:ar(u,{version:o}),tone:Yc[i],detail:ar(d,{version:o}),canVerify:i==="fixed_next"||i==="fixed_version"||i==="fixed",othersNote:k,hidden:i==="closed"&&p==="spam"}}function od(t,e={},r="en"){let n=yt(r);if(t==="comment")return e.text??"";if(t==="closed"){let i=e.closed_reason??"";return i&&i!=="spam"&&i in n.closedReason?n.closedReason[i]:n.closedReason.none}return t==="reporter_comment"?e.text??n.timeline.reporter_comment:ar(n.timeline[t],{text:e.text,version:e.version})}function Kn(t){return t.kind==="comment"||t.kind==="reporter_comment"||t.kind==="info_requested"}function Ys(t,e="en"){return t.custom||!Xc.includes(t.kind)?t.text:od(t.kind,{text:t.body??null,version:t.version??null,closed_reason:t.closed_reason??null},e)}function Xs(t,e="en"){let r=yt(e).ui,n=t.unread_total===1?t.latest[0]?.kind:null;return n==="comment"||n==="info_requested"?r.toastReplied:n==="fixed"||n==="released"?r.toastFixed:r.updates.replace("{n}",String(t.unread_total))}function Js(t){return /^[^\s@]+@[^\s@]+\.[^\s@]{2,}$/.test(t.trim())}var Kc,zc,Gc,Yc,Xc,Jc,Qc,Zc,ed,td,Gs,Vr=qe(()=>{Kc=["new","pending","submitted","queued","classified","grouped","fixing","fixed","dismissed","triaged","in_progress","resolved","verified","reopened"],zc=["en","ja","es","th"],Gc={new:"received",pending:"received",submitted:"received",queued:"received",classified:"reviewing",triaged:"reviewing",grouped:"reviewing",reopened:"reviewing_again",fixing:"fixing",in_progress:"fixing",verified:"verified",fixed:"fixed_next",resolved:"fixed",dismissed:"closed"},Yc={received:"neutral",reviewing:"info",reviewing_again:"info",fixing:"progress",verified:"success-muted",fixed_next:"success",fixed_version:"success",fixed:"success",closed:"muted",waiting:"attention"},Xc=["received","reviewing","duplicate_linked","info_requested","comment","reporter_comment","fix_started","fixed","released","verified","reopened","closed"],Jc={status:{received:"Received",reviewing:"Looking into it",reviewing_again:"Looking into it again",fixing:"Fix in progress",verified:"Confirmed fixed",fixed_next:"Fixed \u2014 coming in the next update",fixed_version:"Fixed in v{version}",fixed:"Fixed",closed:"Closed",waiting:"Waiting on you"},detail:{received:"We got it.",reviewing:"The developer has it on their list.",reviewing_again:"Thanks \u2014 we reopened it.",fixing:"A fix is being worked on.",verified:"You confirmed the fix. Thank you!",fixed_next:"It ships in the next release.",fixed_version:"Update to v{version}. Does it work for you now?",fixed:"Does it work for you now?",closed:"Closed.",waiting:"The developer asked a question \u2014 reply below."},idea:{received:"Thanks for the idea",reviewing:"Under consideration",fixing:"Being built",shipped:"Shipped",shippedVersion:"Shipped in v{version}"},closedReason:{duplicate:"Same as an earlier report \u2014 we'll update you there.",not_reproducible:"We couldn't reproduce it. Reply if it happens again.",wont_fix:"We decided not to change this.",working_as_intended:"This is expected behaviour.",none:"Closed."},others:{few:"You and a few others reported this",many:"Many people reported this"},timeline:{received:"You reported this",reviewing:"The developer is looking into it",duplicate_linked:"Same as an existing report \u2014 we'll update you there",info_requested:"The developer asked: {text}",reporter_comment:"You",fix_started:"A fix is in progress",fixed:"Fixed \u2014 coming in the next update",released:"Shipped in v{version} \u2014 update to get it",verified:"You confirmed it's fixed",reopened:"Reopened"},categories:{bug:"Bug",slow:"Slow",visual:"Looks wrong",confusing:"Confusing",idea:"Idea"},ui:{yes:"Yes",notYet:"Not yet",empty:"Nothing yet \u2014 your reports will show up here with updates.",loadError:"Couldn't load updates",retry:"Retry",sending:"Sending\u2026",sent:"Sent",sendFailed:"Failed",noReplies:"No developer replies yet.",you:"You",developer:"Developer",addWords:"Add a few words",developerReplied:"Developer replied: \u201C{text}\u201D",updates:"{n} updates on your reports",receipt:"Sent. We'll let you know here when there's news.",trackIt:"Track it",done:"Done",emailOptIn:"Get updates by email",emailPlaceholder:"you@example.com",emailSubmit:"Email me updates",emailCheckInbox:"Check your inbox and tap the link to confirm.",emailInvalid:"That does not look like an email address.",emailFailed:"Couldn't set up email updates. Try again later.",toastReplied:"The developer replied to your report",toastFixed:"Your bug is fixed",view:"View"}},Qc={status:{received:"\u53D7\u3051\u4ED8\u3051\u307E\u3057\u305F",reviewing:"\u78BA\u8A8D\u4E2D",reviewing_again:"\u518D\u78BA\u8A8D\u4E2D",fixing:"\u4FEE\u6B63\u4E2D",verified:"\u4FEE\u6B63\u3092\u78BA\u8A8D\u6E08\u307F",fixed_next:"\u4FEE\u6B63\u6E08\u307F \u2014 \u6B21\u306E\u30A2\u30C3\u30D7\u30C7\u30FC\u30C8\u3067\u53CD\u6620",fixed_version:"v{version} \u3067\u4FEE\u6B63\u6E08\u307F",fixed:"\u4FEE\u6B63\u6E08\u307F",closed:"\u7D42\u4E86",waiting:"\u3042\u306A\u305F\u306E\u8FD4\u4FE1\u5F85\u3061"},detail:{received:"\u5831\u544A\u3092\u53D7\u3051\u53D6\u308A\u307E\u3057\u305F\u3002",reviewing:"\u958B\u767A\u8005\u304C\u5BFE\u5FDC\u30EA\u30B9\u30C8\u306B\u5165\u308C\u307E\u3057\u305F\u3002",reviewing_again:"\u3042\u308A\u304C\u3068\u3046\u3054\u3056\u3044\u307E\u3059\u3002\u518D\u5EA6\u78BA\u8A8D\u3057\u3066\u3044\u307E\u3059\u3002",fixing:"\u4FEE\u6B63\u306B\u53D6\u308A\u7D44\u3093\u3067\u3044\u307E\u3059\u3002",verified:"\u4FEE\u6B63\u3092\u78BA\u8A8D\u3044\u305F\u3060\u304D\u3042\u308A\u304C\u3068\u3046\u3054\u3056\u3044\u307E\u3059\uFF01",fixed_next:"\u6B21\u306E\u30EA\u30EA\u30FC\u30B9\u3067\u53CD\u6620\u3055\u308C\u307E\u3059\u3002",fixed_version:"v{version} \u306B\u30A2\u30C3\u30D7\u30C7\u30FC\u30C8\u3057\u3066\u304F\u3060\u3055\u3044\u3002\u89E3\u6C7A\u3057\u307E\u3057\u305F\u304B\uFF1F",fixed:"\u89E3\u6C7A\u3057\u307E\u3057\u305F\u304B\uFF1F",closed:"\u7D42\u4E86\u3057\u307E\u3057\u305F\u3002",waiting:"\u958B\u767A\u8005\u304B\u3089\u8CEA\u554F\u304C\u3042\u308A\u307E\u3059\u3002\u4E0B\u304B\u3089\u8FD4\u4FE1\u3057\u3066\u304F\u3060\u3055\u3044\u3002"},idea:{received:"\u30A2\u30A4\u30C7\u30A2\u3092\u3042\u308A\u304C\u3068\u3046\u3054\u3056\u3044\u307E\u3059",reviewing:"\u691C\u8A0E\u4E2D",fixing:"\u958B\u767A\u4E2D",shipped:"\u30EA\u30EA\u30FC\u30B9\u6E08\u307F",shippedVersion:"v{version} \u3067\u30EA\u30EA\u30FC\u30B9\u6E08\u307F"},closedReason:{duplicate:"\u4EE5\u524D\u306E\u5831\u544A\u3068\u540C\u3058\u5185\u5BB9\u3067\u3059\u3002\u305D\u3061\u3089\u3067\u9032\u6357\u3092\u304A\u77E5\u3089\u305B\u3057\u307E\u3059\u3002",not_reproducible:"\u518D\u73FE\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\u3002\u518D\u767A\u3057\u305F\u3089\u8FD4\u4FE1\u3057\u3066\u304F\u3060\u3055\u3044\u3002",wont_fix:"\u3053\u306E\u70B9\u306F\u5909\u66F4\u3057\u306A\u3044\u3053\u3068\u306B\u3057\u307E\u3057\u305F\u3002",working_as_intended:"\u3053\u308C\u306F\u60F3\u5B9A\u3069\u304A\u308A\u306E\u52D5\u4F5C\u3067\u3059\u3002",none:"\u7D42\u4E86\u3057\u307E\u3057\u305F\u3002"},others:{few:"\u3042\u306A\u305F\u3092\u542B\u3081\u6570\u4EBA\u304C\u5831\u544A\u3057\u3066\u3044\u307E\u3059",many:"\u591A\u304F\u306E\u4EBA\u304C\u5831\u544A\u3057\u3066\u3044\u307E\u3059"},timeline:{received:"\u3042\u306A\u305F\u304C\u5831\u544A\u3057\u307E\u3057\u305F",reviewing:"\u958B\u767A\u8005\u304C\u78BA\u8A8D\u3057\u3066\u3044\u307E\u3059",duplicate_linked:"\u65E2\u5B58\u306E\u5831\u544A\u3068\u540C\u3058\u5185\u5BB9\u3067\u3059\u3002\u305D\u3061\u3089\u3067\u9032\u6357\u3092\u304A\u77E5\u3089\u305B\u3057\u307E\u3059",info_requested:"\u958B\u767A\u8005\u304B\u3089\u306E\u8CEA\u554F: {text}",reporter_comment:"\u3042\u306A\u305F",fix_started:"\u4FEE\u6B63\u4E2D\u3067\u3059",fixed:"\u4FEE\u6B63\u6E08\u307F \u2014 \u6B21\u306E\u30A2\u30C3\u30D7\u30C7\u30FC\u30C8\u3067\u53CD\u6620",released:"v{version} \u3067\u30EA\u30EA\u30FC\u30B9 \u2014 \u30A2\u30C3\u30D7\u30C7\u30FC\u30C8\u3057\u3066\u304F\u3060\u3055\u3044",verified:"\u4FEE\u6B63\u3092\u78BA\u8A8D\u3057\u307E\u3057\u305F",reopened:"\u518D\u30AA\u30FC\u30D7\u30F3\u3057\u307E\u3057\u305F"},categories:{bug:"\u30D0\u30B0",slow:"\u9045\u3044",visual:"\u8868\u793A\u304C\u304A\u304B\u3057\u3044",confusing:"\u308F\u304B\u308A\u306B\u304F\u3044",idea:"\u30A2\u30A4\u30C7\u30A2"},ui:{yes:"\u306F\u3044",notYet:"\u307E\u3060",empty:"\u307E\u3060\u3042\u308A\u307E\u305B\u3093\u3002\u5831\u544A\u3059\u308B\u3068\u3053\u3053\u306B\u9032\u6357\u304C\u8868\u793A\u3055\u308C\u307E\u3059\u3002",loadError:"\u66F4\u65B0\u3092\u8AAD\u307F\u8FBC\u3081\u307E\u305B\u3093\u3067\u3057\u305F",retry:"\u518D\u8A66\u884C",sending:"\u9001\u4FE1\u4E2D\u2026",sent:"\u9001\u4FE1\u3057\u307E\u3057\u305F",sendFailed:"\u9001\u4FE1\u5931\u6557",noReplies:"\u958B\u767A\u8005\u304B\u3089\u306E\u8FD4\u4FE1\u306F\u307E\u3060\u3042\u308A\u307E\u305B\u3093\u3002",you:"\u3042\u306A\u305F",developer:"\u958B\u767A\u8005",addWords:"\u3082\u3046\u5C11\u3057\u8A73\u3057\u304F\u66F8\u3044\u3066\u304F\u3060\u3055\u3044",developerReplied:"\u958B\u767A\u8005\u304B\u3089\u306E\u8FD4\u4FE1:\u300C{text}\u300D",updates:"\u3042\u306A\u305F\u306E\u5831\u544A\u306B {n} \u4EF6\u306E\u66F4\u65B0\u304C\u3042\u308A\u307E\u3059",receipt:"\u9001\u4FE1\u3057\u307E\u3057\u305F\u3002\u9032\u5C55\u304C\u3042\u308C\u3070\u3053\u3053\u3067\u304A\u77E5\u3089\u305B\u3057\u307E\u3059\u3002",trackIt:"\u7D4C\u904E\u3092\u898B\u308B",done:"\u9589\u3058\u308B",emailOptIn:"\u30E1\u30FC\u30EB\u3067\u66F4\u65B0\u3092\u53D7\u3051\u53D6\u308B",emailPlaceholder:"you@example.com",emailSubmit:"\u30E1\u30FC\u30EB\u3067\u53D7\u3051\u53D6\u308B",emailCheckInbox:"\u53D7\u4FE1\u30C8\u30EC\u30A4\u306E\u30E1\u30FC\u30EB\u306E\u30EA\u30F3\u30AF\u3092\u30BF\u30C3\u30D7\u3057\u3066\u78BA\u8A8D\u3057\u3066\u304F\u3060\u3055\u3044\u3002",emailInvalid:"\u30E1\u30FC\u30EB\u30A2\u30C9\u30EC\u30B9\u306E\u5F62\u5F0F\u304C\u6B63\u3057\u304F\u3042\u308A\u307E\u305B\u3093\u3002",emailFailed:"\u30E1\u30FC\u30EB\u901A\u77E5\u3092\u8A2D\u5B9A\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\u3002\u5F8C\u3067\u3082\u3046\u4E00\u5EA6\u304A\u8A66\u3057\u304F\u3060\u3055\u3044\u3002",toastReplied:"\u958B\u767A\u8005\u304C\u3042\u306A\u305F\u306E\u5831\u544A\u306B\u8FD4\u4FE1\u3057\u307E\u3057\u305F",toastFixed:"\u3042\u306A\u305F\u304C\u5831\u544A\u3057\u305F\u4E0D\u5177\u5408\u304C\u4FEE\u6B63\u3055\u308C\u307E\u3057\u305F",view:"\u898B\u308B"}},Zc={status:{received:"Recibido",reviewing:"Lo estamos revisando",reviewing_again:"Lo revisamos de nuevo",fixing:"Correcci\xF3n en curso",verified:"Correcci\xF3n confirmada",fixed_next:"Corregido \u2014 llega en la pr\xF3xima actualizaci\xF3n",fixed_version:"Corregido en v{version}",fixed:"Corregido",closed:"Cerrado",waiting:"Esperando tu respuesta"},detail:{received:"Lo recibimos.",reviewing:"El desarrollador lo tiene en su lista.",reviewing_again:"Gracias, lo reabrimos.",fixing:"Se est\xE1 trabajando en una correcci\xF3n.",verified:"Confirmaste la correcci\xF3n. \xA1Gracias!",fixed_next:"Llega en la pr\xF3xima versi\xF3n.",fixed_version:"Actualiza a v{version}. \xBFYa funciona?",fixed:"\xBFYa funciona?",closed:"Cerrado.",waiting:"El desarrollador hizo una pregunta: responde abajo."},idea:{received:"Gracias por la idea",reviewing:"En consideraci\xF3n",fixing:"En desarrollo",shipped:"Publicado",shippedVersion:"Publicado en v{version}"},closedReason:{duplicate:"Es igual a un reporte anterior; te avisaremos all\xED.",not_reproducible:"No pudimos reproducirlo. Responde si vuelve a pasar.",wont_fix:"Decidimos no cambiar esto.",working_as_intended:"Este es el comportamiento esperado.",none:"Cerrado."},others:{few:"T\xFA y algunas personas m\xE1s reportaron esto",many:"Muchas personas reportaron esto"},timeline:{received:"Reportaste esto",reviewing:"El desarrollador lo est\xE1 revisando",duplicate_linked:"Es igual a un reporte existente; te avisaremos all\xED",info_requested:"El desarrollador pregunt\xF3: {text}",reporter_comment:"T\xFA",fix_started:"Hay una correcci\xF3n en curso",fixed:"Corregido \u2014 llega en la pr\xF3xima actualizaci\xF3n",released:"Publicado en v{version}: actualiza para tenerlo",verified:"Confirmaste que est\xE1 corregido",reopened:"Reabierto"},categories:{bug:"Error",slow:"Lento",visual:"Se ve mal",confusing:"Confuso",idea:"Idea"},ui:{yes:"S\xED",notYet:"Todav\xEDa no",empty:"Nada todav\xEDa: tus reportes aparecer\xE1n aqu\xED con novedades.",loadError:"No se pudieron cargar las novedades",retry:"Reintentar",sending:"Enviando\u2026",sent:"Enviado",sendFailed:"Error al enviar",noReplies:"El desarrollador a\xFAn no ha respondido.",you:"T\xFA",developer:"Desarrollador",addWords:"Agrega algunas palabras",developerReplied:"El desarrollador respondi\xF3: \u201C{text}\u201D",updates:"{n} novedades en tus reportes",receipt:"Enviado. Te avisaremos aqu\xED cuando haya novedades.",trackIt:"Seguirlo",done:"Listo",emailOptIn:"Recibir novedades por correo",emailPlaceholder:"tu@ejemplo.com",emailSubmit:"Enviarme novedades",emailCheckInbox:"Revisa tu correo y toca el enlace para confirmar.",emailInvalid:"Eso no parece un correo electr\xF3nico.",emailFailed:"No pudimos activar las novedades por correo. Int\xE9ntalo m\xE1s tarde.",toastReplied:"El desarrollador respondi\xF3 a tu reporte",toastFixed:"Tu error est\xE1 corregido",view:"Ver"}},ed={status:{received:"\u0E44\u0E14\u0E49\u0E23\u0E31\u0E1A\u0E41\u0E25\u0E49\u0E27",reviewing:"\u0E01\u0E33\u0E25\u0E31\u0E07\u0E15\u0E23\u0E27\u0E08\u0E2A\u0E2D\u0E1A",reviewing_again:"\u0E01\u0E33\u0E25\u0E31\u0E07\u0E15\u0E23\u0E27\u0E08\u0E2A\u0E2D\u0E1A\u0E2D\u0E35\u0E01\u0E04\u0E23\u0E31\u0E49\u0E07",fixing:"\u0E01\u0E33\u0E25\u0E31\u0E07\u0E41\u0E01\u0E49\u0E44\u0E02",verified:"\u0E22\u0E37\u0E19\u0E22\u0E31\u0E19\u0E27\u0E48\u0E32\u0E41\u0E01\u0E49\u0E41\u0E25\u0E49\u0E27",fixed_next:"\u0E41\u0E01\u0E49\u0E41\u0E25\u0E49\u0E27 \u2014 \u0E08\u0E30\u0E21\u0E32\u0E43\u0E19\u0E2D\u0E31\u0E1B\u0E40\u0E14\u0E15\u0E16\u0E31\u0E14\u0E44\u0E1B",fixed_version:"\u0E41\u0E01\u0E49\u0E41\u0E25\u0E49\u0E27\u0E43\u0E19 v{version}",fixed:"\u0E41\u0E01\u0E49\u0E41\u0E25\u0E49\u0E27",closed:"\u0E1B\u0E34\u0E14\u0E41\u0E25\u0E49\u0E27",waiting:"\u0E23\u0E2D\u0E04\u0E33\u0E15\u0E2D\u0E1A\u0E08\u0E32\u0E01\u0E04\u0E38\u0E13"},detail:{received:"\u0E40\u0E23\u0E32\u0E44\u0E14\u0E49\u0E23\u0E31\u0E1A\u0E23\u0E32\u0E22\u0E07\u0E32\u0E19\u0E41\u0E25\u0E49\u0E27",reviewing:"\u0E19\u0E31\u0E01\u0E1E\u0E31\u0E12\u0E19\u0E32\u0E43\u0E2A\u0E48\u0E44\u0E27\u0E49\u0E43\u0E19\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23\u0E41\u0E25\u0E49\u0E27",reviewing_again:"\u0E02\u0E2D\u0E1A\u0E04\u0E38\u0E13 \u2014 \u0E40\u0E23\u0E32\u0E40\u0E1B\u0E34\u0E14\u0E40\u0E23\u0E37\u0E48\u0E2D\u0E07\u0E19\u0E35\u0E49\u0E2D\u0E35\u0E01\u0E04\u0E23\u0E31\u0E49\u0E07\u0E41\u0E25\u0E49\u0E27",fixing:"\u0E01\u0E33\u0E25\u0E31\u0E07\u0E14\u0E33\u0E40\u0E19\u0E34\u0E19\u0E01\u0E32\u0E23\u0E41\u0E01\u0E49\u0E44\u0E02",verified:"\u0E04\u0E38\u0E13\u0E22\u0E37\u0E19\u0E22\u0E31\u0E19\u0E01\u0E32\u0E23\u0E41\u0E01\u0E49\u0E44\u0E02\u0E41\u0E25\u0E49\u0E27 \u0E02\u0E2D\u0E1A\u0E04\u0E38\u0E13!",fixed_next:"\u0E08\u0E30\u0E21\u0E32\u0E43\u0E19\u0E23\u0E38\u0E48\u0E19\u0E16\u0E31\u0E14\u0E44\u0E1B",fixed_version:"\u0E2D\u0E31\u0E1B\u0E40\u0E14\u0E15\u0E40\u0E1B\u0E47\u0E19 v{version} \u0E15\u0E2D\u0E19\u0E19\u0E35\u0E49\u0E43\u0E0A\u0E49\u0E44\u0E14\u0E49\u0E2B\u0E23\u0E37\u0E2D\u0E22\u0E31\u0E07?",fixed:"\u0E15\u0E2D\u0E19\u0E19\u0E35\u0E49\u0E43\u0E0A\u0E49\u0E44\u0E14\u0E49\u0E2B\u0E23\u0E37\u0E2D\u0E22\u0E31\u0E07?",closed:"\u0E1B\u0E34\u0E14\u0E41\u0E25\u0E49\u0E27",waiting:"\u0E19\u0E31\u0E01\u0E1E\u0E31\u0E12\u0E19\u0E32\u0E21\u0E35\u0E04\u0E33\u0E16\u0E32\u0E21 \u2014 \u0E15\u0E2D\u0E1A\u0E14\u0E49\u0E32\u0E19\u0E25\u0E48\u0E32\u0E07"},idea:{received:"\u0E02\u0E2D\u0E1A\u0E04\u0E38\u0E13\u0E2A\u0E33\u0E2B\u0E23\u0E31\u0E1A\u0E44\u0E2D\u0E40\u0E14\u0E35\u0E22",reviewing:"\u0E01\u0E33\u0E25\u0E31\u0E07\u0E1E\u0E34\u0E08\u0E32\u0E23\u0E13\u0E32",fixing:"\u0E01\u0E33\u0E25\u0E31\u0E07\u0E2A\u0E23\u0E49\u0E32\u0E07",shipped:"\u0E40\u0E1B\u0E34\u0E14\u0E43\u0E0A\u0E49\u0E41\u0E25\u0E49\u0E27",shippedVersion:"\u0E40\u0E1B\u0E34\u0E14\u0E43\u0E0A\u0E49\u0E41\u0E25\u0E49\u0E27\u0E43\u0E19 v{version}"},closedReason:{duplicate:"\u0E40\u0E2B\u0E21\u0E37\u0E2D\u0E19\u0E01\u0E31\u0E1A\u0E23\u0E32\u0E22\u0E07\u0E32\u0E19\u0E01\u0E48\u0E2D\u0E19\u0E2B\u0E19\u0E49\u0E32 \u2014 \u0E40\u0E23\u0E32\u0E08\u0E30\u0E41\u0E08\u0E49\u0E07\u0E04\u0E27\u0E32\u0E21\u0E04\u0E37\u0E1A\u0E2B\u0E19\u0E49\u0E32\u0E17\u0E35\u0E48\u0E19\u0E31\u0E48\u0E19",not_reproducible:"\u0E40\u0E23\u0E32\u0E17\u0E33\u0E43\u0E2B\u0E49\u0E40\u0E01\u0E34\u0E14\u0E0B\u0E49\u0E33\u0E44\u0E21\u0E48\u0E44\u0E14\u0E49 \u0E15\u0E2D\u0E1A\u0E01\u0E25\u0E31\u0E1A\u0E2B\u0E32\u0E01\u0E40\u0E01\u0E34\u0E14\u0E02\u0E36\u0E49\u0E19\u0E2D\u0E35\u0E01",wont_fix:"\u0E40\u0E23\u0E32\u0E15\u0E31\u0E14\u0E2A\u0E34\u0E19\u0E43\u0E08\u0E44\u0E21\u0E48\u0E40\u0E1B\u0E25\u0E35\u0E48\u0E22\u0E19\u0E2A\u0E48\u0E27\u0E19\u0E19\u0E35\u0E49",working_as_intended:"\u0E19\u0E35\u0E48\u0E40\u0E1B\u0E47\u0E19\u0E01\u0E32\u0E23\u0E17\u0E33\u0E07\u0E32\u0E19\u0E15\u0E32\u0E21\u0E17\u0E35\u0E48\u0E15\u0E31\u0E49\u0E07\u0E43\u0E08\u0E44\u0E27\u0E49",none:"\u0E1B\u0E34\u0E14\u0E41\u0E25\u0E49\u0E27"},others:{few:"\u0E04\u0E38\u0E13\u0E41\u0E25\u0E30\u0E2D\u0E35\u0E01\u0E44\u0E21\u0E48\u0E01\u0E35\u0E48\u0E04\u0E19\u0E23\u0E32\u0E22\u0E07\u0E32\u0E19\u0E40\u0E23\u0E37\u0E48\u0E2D\u0E07\u0E19\u0E35\u0E49",many:"\u0E21\u0E35\u0E2B\u0E25\u0E32\u0E22\u0E04\u0E19\u0E23\u0E32\u0E22\u0E07\u0E32\u0E19\u0E40\u0E23\u0E37\u0E48\u0E2D\u0E07\u0E19\u0E35\u0E49"},timeline:{received:"\u0E04\u0E38\u0E13\u0E23\u0E32\u0E22\u0E07\u0E32\u0E19\u0E40\u0E23\u0E37\u0E48\u0E2D\u0E07\u0E19\u0E35\u0E49",reviewing:"\u0E19\u0E31\u0E01\u0E1E\u0E31\u0E12\u0E19\u0E32\u0E01\u0E33\u0E25\u0E31\u0E07\u0E15\u0E23\u0E27\u0E08\u0E2A\u0E2D\u0E1A",duplicate_linked:"\u0E40\u0E2B\u0E21\u0E37\u0E2D\u0E19\u0E01\u0E31\u0E1A\u0E23\u0E32\u0E22\u0E07\u0E32\u0E19\u0E17\u0E35\u0E48\u0E21\u0E35\u0E2D\u0E22\u0E39\u0E48 \u2014 \u0E40\u0E23\u0E32\u0E08\u0E30\u0E41\u0E08\u0E49\u0E07\u0E04\u0E27\u0E32\u0E21\u0E04\u0E37\u0E1A\u0E2B\u0E19\u0E49\u0E32\u0E17\u0E35\u0E48\u0E19\u0E31\u0E48\u0E19",info_requested:"\u0E19\u0E31\u0E01\u0E1E\u0E31\u0E12\u0E19\u0E32\u0E16\u0E32\u0E21\u0E27\u0E48\u0E32: {text}",reporter_comment:"\u0E04\u0E38\u0E13",fix_started:"\u0E01\u0E33\u0E25\u0E31\u0E07\u0E41\u0E01\u0E49\u0E44\u0E02",fixed:"\u0E41\u0E01\u0E49\u0E41\u0E25\u0E49\u0E27 \u2014 \u0E08\u0E30\u0E21\u0E32\u0E43\u0E19\u0E2D\u0E31\u0E1B\u0E40\u0E14\u0E15\u0E16\u0E31\u0E14\u0E44\u0E1B",released:"\u0E40\u0E1B\u0E34\u0E14\u0E43\u0E0A\u0E49\u0E43\u0E19 v{version} \u2014 \u0E2D\u0E31\u0E1B\u0E40\u0E14\u0E15\u0E40\u0E1E\u0E37\u0E48\u0E2D\u0E23\u0E31\u0E1A\u0E01\u0E32\u0E23\u0E41\u0E01\u0E49\u0E44\u0E02",verified:"\u0E04\u0E38\u0E13\u0E22\u0E37\u0E19\u0E22\u0E31\u0E19\u0E27\u0E48\u0E32\u0E41\u0E01\u0E49\u0E41\u0E25\u0E49\u0E27",reopened:"\u0E40\u0E1B\u0E34\u0E14\u0E2D\u0E35\u0E01\u0E04\u0E23\u0E31\u0E49\u0E07"},categories:{bug:"\u0E1A\u0E31\u0E4A\u0E01",slow:"\u0E0A\u0E49\u0E32",visual:"\u0E41\u0E2A\u0E14\u0E07\u0E1C\u0E25\u0E1C\u0E34\u0E14",confusing:"\u0E2A\u0E31\u0E1A\u0E2A\u0E19",idea:"\u0E44\u0E2D\u0E40\u0E14\u0E35\u0E22"},ui:{yes:"\u0E43\u0E0A\u0E48",notYet:"\u0E22\u0E31\u0E07\u0E44\u0E21\u0E48",empty:"\u0E22\u0E31\u0E07\u0E44\u0E21\u0E48\u0E21\u0E35 \u2014 \u0E23\u0E32\u0E22\u0E07\u0E32\u0E19\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13\u0E08\u0E30\u0E41\u0E2A\u0E14\u0E07\u0E17\u0E35\u0E48\u0E19\u0E35\u0E48\u0E1E\u0E23\u0E49\u0E2D\u0E21\u0E04\u0E27\u0E32\u0E21\u0E04\u0E37\u0E1A\u0E2B\u0E19\u0E49\u0E32",loadError:"\u0E42\u0E2B\u0E25\u0E14\u0E04\u0E27\u0E32\u0E21\u0E04\u0E37\u0E1A\u0E2B\u0E19\u0E49\u0E32\u0E44\u0E21\u0E48\u0E44\u0E14\u0E49",retry:"\u0E25\u0E2D\u0E07\u0E2D\u0E35\u0E01\u0E04\u0E23\u0E31\u0E49\u0E07",sending:"\u0E01\u0E33\u0E25\u0E31\u0E07\u0E2A\u0E48\u0E07\u2026",sent:"\u0E2A\u0E48\u0E07\u0E41\u0E25\u0E49\u0E27",sendFailed:"\u0E2A\u0E48\u0E07\u0E44\u0E21\u0E48\u0E2A\u0E33\u0E40\u0E23\u0E47\u0E08",noReplies:"\u0E22\u0E31\u0E07\u0E44\u0E21\u0E48\u0E21\u0E35\u0E04\u0E33\u0E15\u0E2D\u0E1A\u0E08\u0E32\u0E01\u0E19\u0E31\u0E01\u0E1E\u0E31\u0E12\u0E19\u0E32",you:"\u0E04\u0E38\u0E13",developer:"\u0E19\u0E31\u0E01\u0E1E\u0E31\u0E12\u0E19\u0E32",addWords:"\u0E40\u0E1E\u0E34\u0E48\u0E21\u0E23\u0E32\u0E22\u0E25\u0E30\u0E40\u0E2D\u0E35\u0E22\u0E14\u0E2D\u0E35\u0E01\u0E40\u0E25\u0E47\u0E01\u0E19\u0E49\u0E2D\u0E22",developerReplied:"\u0E19\u0E31\u0E01\u0E1E\u0E31\u0E12\u0E19\u0E32\u0E15\u0E2D\u0E1A\u0E27\u0E48\u0E32: \u201C{text}\u201D",updates:"\u0E21\u0E35\u0E04\u0E27\u0E32\u0E21\u0E04\u0E37\u0E1A\u0E2B\u0E19\u0E49\u0E32 {n} \u0E23\u0E32\u0E22\u0E01\u0E32\u0E23\u0E43\u0E19\u0E23\u0E32\u0E22\u0E07\u0E32\u0E19\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13",receipt:"\u0E2A\u0E48\u0E07\u0E41\u0E25\u0E49\u0E27 \u0E40\u0E23\u0E32\u0E08\u0E30\u0E41\u0E08\u0E49\u0E07\u0E04\u0E38\u0E13\u0E17\u0E35\u0E48\u0E19\u0E35\u0E48\u0E40\u0E21\u0E37\u0E48\u0E2D\u0E21\u0E35\u0E04\u0E27\u0E32\u0E21\u0E04\u0E37\u0E1A\u0E2B\u0E19\u0E49\u0E32",trackIt:"\u0E15\u0E34\u0E14\u0E15\u0E32\u0E21",done:"\u0E40\u0E2A\u0E23\u0E47\u0E08",emailOptIn:"\u0E23\u0E31\u0E1A\u0E04\u0E27\u0E32\u0E21\u0E04\u0E37\u0E1A\u0E2B\u0E19\u0E49\u0E32\u0E17\u0E32\u0E07\u0E2D\u0E35\u0E40\u0E21\u0E25",emailPlaceholder:"you@example.com",emailSubmit:"\u0E2A\u0E48\u0E07\u0E04\u0E27\u0E32\u0E21\u0E04\u0E37\u0E1A\u0E2B\u0E19\u0E49\u0E32\u0E17\u0E32\u0E07\u0E2D\u0E35\u0E40\u0E21\u0E25",emailCheckInbox:"\u0E15\u0E23\u0E27\u0E08\u0E2A\u0E2D\u0E1A\u0E01\u0E25\u0E48\u0E2D\u0E07\u0E08\u0E14\u0E2B\u0E21\u0E32\u0E22\u0E41\u0E25\u0E49\u0E27\u0E41\u0E15\u0E30\u0E25\u0E34\u0E07\u0E01\u0E4C\u0E40\u0E1E\u0E37\u0E48\u0E2D\u0E22\u0E37\u0E19\u0E22\u0E31\u0E19",emailInvalid:"\u0E14\u0E39\u0E40\u0E2B\u0E21\u0E37\u0E2D\u0E19\u0E08\u0E30\u0E44\u0E21\u0E48\u0E43\u0E0A\u0E48\u0E2D\u0E35\u0E40\u0E21\u0E25\u0E17\u0E35\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07",emailFailed:"\u0E15\u0E31\u0E49\u0E07\u0E04\u0E48\u0E32\u0E01\u0E32\u0E23\u0E41\u0E08\u0E49\u0E07\u0E17\u0E32\u0E07\u0E2D\u0E35\u0E40\u0E21\u0E25\u0E44\u0E21\u0E48\u0E2A\u0E33\u0E40\u0E23\u0E47\u0E08 \u0E25\u0E2D\u0E07\u0E43\u0E2B\u0E21\u0E48\u0E20\u0E32\u0E22\u0E2B\u0E25\u0E31\u0E07",toastReplied:"\u0E19\u0E31\u0E01\u0E1E\u0E31\u0E12\u0E19\u0E32\u0E15\u0E2D\u0E1A\u0E01\u0E25\u0E31\u0E1A\u0E23\u0E32\u0E22\u0E07\u0E32\u0E19\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13\u0E41\u0E25\u0E49\u0E27",toastFixed:"\u0E1A\u0E31\u0E4A\u0E01\u0E17\u0E35\u0E48\u0E04\u0E38\u0E13\u0E23\u0E32\u0E22\u0E07\u0E32\u0E19\u0E44\u0E14\u0E49\u0E23\u0E31\u0E1A\u0E01\u0E32\u0E23\u0E41\u0E01\u0E49\u0E44\u0E02\u0E41\u0E25\u0E49\u0E27",view:"\u0E14\u0E39"}},td={en:Jc,ja:Qc,es:Zc,th:ed};Gs=new Set(["received","reviewing","reviewing_again","fixing"]);});var ba={};jt(ba,{accountView:()=>Ld,assistantView:()=>Ad,crossAppView:()=>Pd,detailView:()=>Td,initViews:()=>vd,leaderboardView:()=>Md,pickUpdateToast:()=>wd,renderOptIns:()=>ma,reportsView:()=>kd,roadmapView:()=>Id});function vd(t){({esc:_,btn:pe,renderHeader:$e,chipLabel:ha,skeleton:Dt,formatRelativeTime:ur,renderAppIconHtml:fa}=t);}function wd(t,e,r){let n=t.filter(d=>(d.unread_count??0)>0&&!Pt(d,e).hidden),i=n.reduce((d,p)=>d+(p.unread_count??0),0);if(!i)return null;if(n.length>1)return {text:ar(yt(e).ui.updates,{n:i}),reportId:null};let o=n[0],a=Pt(o,e),s=a.key==="fixing"||a.canVerify||!o.last_admin_reply_at&&a.key!=="waiting",u=o.title??o.summary??void 0;return {text:s?a.label:r,reportId:o.id,...u?{detail:u}:{}}}function ma(t){let e=t.locale.panel,r=[];if(t.channels.email&&t.callbacks.onReporterEmailOptIn){let n=t.rc.ui;t.emailState==="saved"?r.push(`<p class="mushi-note" role="status">\u2709 ${_(n.emailCheckInbox)}</p>`):(r.push(`<label class="mushi-check"><input type="checkbox" data-action="email-optin"${t.emailOptInOpen?" checked":""} /> ${_(n.emailOptIn)}</label>`),t.emailOptInOpen&&r.push(`<div class="mushi-inline-form"><input type="email" class="mushi-input" data-role="optin-email" autocomplete="email" aria-label="${_(n.emailOptIn)}" placeholder="${_(n.emailPlaceholder)}" value="${_(t.channels.emailPrefill)}" />${pe("save-email",_(n.emailSubmit),"mushi-btn",t.emailState==="saving"?' aria-busy="true"':"")}</div>${t.emailState==="invalid"||t.emailState==="error"?`<p class="mushi-note mushi-error-inline" role="alert">${_(t.emailState==="invalid"?n.emailInvalid:n.emailFailed)}</p>`:""}`));}return t.channels.push&&t.callbacks.onReporterPushSubscribe&&(r.push(t.pushState==="on"?`<p class="mushi-note" role="status">\u{1F514} ${_(e.notifyOn)}</p>`:pe("notify-me",`\u{1F514} ${_(e.notifyMe)}`,"mushi-btn",t.pushState==="asking"?' aria-busy="true"':"")),t.pushState==="error"&&r.push(`<p class="mushi-note mushi-error-inline" role="alert">${_(t.rc.ui.sendFailed)}</p>`)),r.length?`<div class="mushi-optins">${r.join("")}</div>`:""}function Xn(t,e){return `<span class="mushi-pill mushi-tone-${e}">${_(t)}</span>`}function ga(t){return t.title??t.summary??t.description??`#${t.id.slice(0,8)}`}function Sd(t,e){let r=(e??"").toLowerCase();return !r||r==="other"?"":ha(t,r==="feature_request"?"idea":r)}function xd(t){let e=r=>Date.parse(r.last_event_at??r.created_at)||0;return [...t].sort((r,n)=>+((n.unread_count??0)>0)-+((r.unread_count??0)>0)||e(n)-e(r))}function Rd(t,e){let r=Pt(e,t.lang);if(r.hidden)return "";let n=(e.unread_count??0)>0,i=[Sd(t,e.user_category),e.page,r.othersNote].filter(Boolean).map(s=>_(String(s))).join(" \xB7 "),o=e.last_event_preview&&(n||r.key==="waiting")?t.rc.ui.developerReplied.replace("{text}",e.last_event_preview):r.canVerify&&r.key!=="fixed_next"?r.detail:"",a=ga(e);return `<button type="button" class="mushi-report-row${n?" unread":""}" data-report-id="${_(e.id)}" aria-label="${_(`${r.label}: ${a}`)}"><span class="mushi-row-top">${Xn(r.label,r.tone)}<span class="mushi-row-title">${_(a)}</span><span class="mushi-row-when">${_(ur(e.last_event_at??e.created_at))}</span></span>${i?`<span class="mushi-row-meta">${i}</span>`:""}${o?`<span class="mushi-row-news">${_(o)}</span>`:""}</button>`}function kd(t){let e=t.rc,r=xd(t.reporterReports).map(i=>Rd(t,i)).join(""),n=t.reporterError?`<p class="mushi-error-inline" role="alert">${_(e.ui.loadError)} ${pe("retry-list",_(e.ui.retry),"mushi-link-btn")}</p>${r}`:r||(t.listLoading?Dt(t.locale.flows.reports.loading):`<p class="mushi-empty">${_(e.ui.empty)}</p>`);return {header:$e(t,t.locale.flows.reports.title,true),lead:"",body:`<div class="mushi-report-list">${n}</div>`,footer:""}}function _d(t,e){let r=t.rc,n=[];if(t.timeline)for(let i of t.timeline){let o=i.kind==="reporter_comment";n.push({kind:i.kind,at:i.at,text:Kn(i)?i.body??i.text:Ys(i,t.lang),talk:Kn(i),mine:o,who:o?r.ui.you:r.ui.developer});}else {e&&n.push({kind:"received",at:e.created_at,text:r.timeline.received});for(let i of t.reporterComments){let o=i.author_kind==="reporter";n.push({kind:o?"reporter_comment":"comment",at:i.created_at,text:i.body,talk:true,mine:o,who:o?r.ui.you:i.author_name??r.ui.developer});}}n.sort((i,o)=>(Date.parse(i.at)||0)-(Date.parse(o.at)||0));for(let i of t.pendingReplies)n.push({kind:"reporter_comment",at:"",text:i.body,who:r.ui.you,talk:true,mine:true,pending:i});return n}function Cd(t,e){let r=e.at?`<time datetime="${_(e.at)}">${_(ur(e.at))}</time>`:"";if(!e.talk)return `<li class="mushi-event"><span>${_(e.text)}</span>${r}</li>`;let n=!!e.mine,i=e.pending?e.pending.state==="sending"?`<span class="mushi-bubble-state">${_(t.rc.ui.sending)}</span>`:`<span class="mushi-bubble-state mushi-error-inline">${_(t.rc.ui.sendFailed)} \xB7 ${pe("retry-reply",_(t.rc.ui.retry),"mushi-link-btn",` data-value="${e.pending.id}"`)}</span>`:r;return `<li class="mushi-bubble ${n?"mine":"dev"}"><strong>${_(e.who??"")}</strong><p>${_(e.text)}</p>${i}</li>`}function Td(t){let e=t.rc,r=t.reporterReports.find(h=>h.id===t.selectedReportId),n=Pt(r??{status:"new"},t.lang),i=[r?.page,r?.app_version?`v${r.app_version}`:"",r?ur(r.created_at):""].filter(Boolean).map(h=>_(String(h))).join(" \xB7 "),o=`<div class="mushi-thread-summary"><p class="mushi-card-status">${Xn(n.label,n.tone)}</p><p class="mushi-note">${_(n.detail)}${n.othersNote?` ${_(n.othersNote)}.`:""}</p><p class="mushi-summary-text">${_(r?r.description??ga(r):`#${(t.selectedReportId??"").slice(0,8)}`)}</p>${r?.screenshot_thumb_url?`<img class="mushi-card-thumb" src="${_(r.screenshot_thumb_url)}" alt="" />`:""}${i?`<p class="mushi-note">${i}</p>`:""}</div>`,a=_d(t,r),s=a.some(h=>h.talk&&!h.mine),u;t.threadLoading&&a.length<=1&&!t.pendingReplies.length?u=Dt(t.locale.flows.thread.loading):u=`${t.threadError?`<p class="mushi-error-inline" role="alert">${_(e.ui.loadError)} ${pe("retry-thread",_(e.ui.retry),"mushi-link-btn")}</p>`:""}<ol class="mushi-timeline">${a.map(h=>Cd(t,h)).join("")}</ol>${!s&&!t.threadError&&!t.threadLoading?`<p class="mushi-empty">${_(e.ui.noReplies)}</p>`:""}`;let d=t.actionPending?' disabled aria-busy="true"':"",p=n.canVerify?`<div class="mushi-verify" role="group" aria-label="${_(n.detail)}">${pe("reporter-confirms",_(e.ui.yes),"mushi-btn",d)}${pe("reporter-not-fixed",_(e.ui.notYet),"mushi-btn",d)}</div>`:"";return {header:$e(t,t.locale.panel.reportTitle,true),lead:o,body:`<div class="mushi-thread">${u}</div>${ma(t)}`,footer:`${p}${t.actionError?`<p class="mushi-error-inline mushi-thread-action-error" role="alert">${_(t.actionError)}</p>`:""}<div class="mushi-thread-composer"><textarea class="mushi-input mushi-reply" data-role="reporter-reply" rows="1" maxlength="2000" placeholder="${_(t.locale.flows.thread.replyPlaceholder)}" aria-label="${_(t.locale.flows.thread.replyPlaceholder)}"></textarea>${pe("reporter-reply","\u2191","mushi-submit mushi-send",` aria-label="${_(t.locale.panel.send)}"`)}</div>`}}function Ad(t){let e=t.locale.assistant,r=t.callbacks.assistantGreeting||e.defaultGreeting,n=d=>d.length?`<div class="mushi-chips">${d.map(p=>`<button type="button" class="mushi-chip mushi-chip-sm" data-action="assistant-suggest" data-value="${_(p)}">${_(p)}</button>`).join("")}</div>`:"",i=(d,p="mushi-link-btn")=>pe("assistant-report",_(d),p),o=t.assistantTurns.length===0?`<p class="mushi-assistant-greeting">${_(r)}</p>${n(t.callbacks.assistantSuggestions??[])}`:t.assistantTurns.map(d=>`<div class="mushi-assistant-msg ${d.role==="user"?"mine":"dev"}">${_(d.text)}</div>${n(d.options??[])}${d.offerReport?i(e.fileReportCta,"mushi-btn"):""}`).join(""),a=t.assistantSending?`<div class="mushi-assistant-msg dev" role="status" aria-live="polite">${_(e.thinking)}</div>`:"",s=t.assistantError?`<p class="mushi-error-inline" role="alert">${_(t.assistantError)} ${i(e.fileReportCta)}</p>`:"",u=t.assistantTurns.length&&!t.assistantSending&&!t.assistantError?i(e.stillStuckCta):"";return {header:$e(t,t.callbacks.assistantLabel||e.defaultLabel,true),lead:"",body:`<div class="mushi-assistant-log">${o}${a}${s}${u}</div>`,footer:`<form class="mushi-thread-composer" data-action="assistant-send"><textarea class="mushi-input mushi-reply mushi-assistant-input" rows="1" placeholder="${_(e.inputPlaceholder)}" aria-label="${_(e.inputPlaceholder)}"${t.assistantSending?" disabled":""}></textarea><button type="submit" class="mushi-submit mushi-send" aria-label="${_(e.sendAriaLabel)}"${t.assistantSending?" disabled":""}>\u2191</button></form>`}}function Id(t){let e=t.locale.flows.roadmap,r=t.featureBoard.map(n=>{let i=String(n.id??""),o=!!n.my_vote,a=n.shipped_at?e.shipped:String(n.status_label??n.status??"open");return `<div class="mushi-report-row mushi-roadmap-row"><span class="mushi-row-top"><span class="mushi-row-title">${_(String(n.subject??e.untitled))}</span></span><span class="mushi-row-meta">${_(a)} \xB7 ${_(e.voteCount.replace("{n}",String(Number(n.vote_count??0))))}</span>${t.callbacks.onFeatureBoardVote?`<button type="button" class="mushi-btn" data-vote-id="${_(i)}" aria-pressed="${o}">${_(o?e.voted:e.vote)}</button>`:""}</div>`}).join("");return {header:$e(t,e.title,true),lead:"",body:`${t.reporterError?`<p class="mushi-error-inline" role="alert">${_(t.reporterError)}</p>`:""}${r||(t.listLoading?Dt(e.loading):`<p class="mushi-empty">${_(e.empty)}</p>`)}`,footer:""}}function Md(t){let e=t.locale.flows.leaderboard,r=t.globalLeaderboard!==null||t.globalLeaderboardLoading,n=r?t.globalLeaderboard??[]:t.leaderboardEntries??[],i=r?t.globalLeaderboardLoading:t.leaderboardLoading,o=n.map((s,u)=>{let d=s.rank||u+1;return `<li class="mushi-lb-row${t.testerReputation&&s.tester_id===t.testerReputation.tester_id?" me":""}"><span>#${d}</span><span class="mushi-row-title">${_(s.public_handle??s.display_name??e.anon)}</span><span>${(s.points_30d??s.total_points).toLocaleString()} pts</span></li>`}).join(""),a=t.testerReputation?.rank;return {header:$e(t,e.title,true),lead:"",body:`${i?Dt(e.loading):""}${!i&&!n.length?`<p class="mushi-empty">${_(e.empty)}</p>`:""}<ol class="mushi-lb">${o}</ol>${a?`<p class="mushi-note">${_(e.myRank.replace("{rank}",String(a)))}</p>`:t.testerJwt?"":pe("open-account",_(e.signInPrompt),"mushi-link-btn")}<p class="mushi-note">${_(e.footer)}</p>`,footer:""}}function Ld(t){let e=t.locale.flows.account,r=t.testerInfo;if(r){let n=r.public_handle??r.display_name??t.locale.flows.leaderboard.anon,i=t.testerReputation,o=i?e.rankSummary.replace("{rank}",String(i.rank??"\u2014")).replace("{points}",(i.points_30d??0).toLocaleString()):"";return {header:$e(t,e.title,true),lead:"",body:`<div class="mushi-thread-summary"><p class="mushi-summary-text">${_(n)}</p>${o?`<p class="mushi-note">${_(o)}</p>`:""}</div>${pe("open-cross-app-reports",_(e.crossAppReports),"mushi-menu-item")}${pe("open-global-leaderboard",_(e.viewLeaderboard),"mushi-menu-item")}${pe("sign-out-tester",_(e.signOut),"mushi-link-btn")}`,footer:""}}return t.magicLinkSent?{header:$e(t,e.checkEmailTitle,true),lead:"",body:`<p class="mushi-note">${_(e.magicLinkSent.replace("{email}",t.magicLinkEmail))}</p>${pe("resend-magic-link",_(e.resendEmail),"mushi-link-btn")}${t.magicLinkError?`<p class="mushi-error-inline" role="alert">${_(t.magicLinkError)}</p>`:""}`,footer:""}:{header:$e(t,e.joinTitle,true),lead:"",body:`<p class="mushi-note">${_(e.signInPrompt)}</p><input type="email" class="mushi-input" data-role="magic-link-email" aria-label="${_(e.emailLabel)}" placeholder="${_(e.emailPlaceholder)}" autocomplete="email" value="${_(t.magicLinkEmail)}" />${t.magicLinkError?`<p class="mushi-error-inline" role="alert">${_(t.magicLinkError)}</p>`:""}`,footer:`<span></span>${pe("send-magic-link",_(t.magicLinkSending?e.sending:e.sendLink),"mushi-submit",t.magicLinkSending?' aria-busy="true"':"")}`}}function Pd(t){let e=t.locale.flows.crossApp,r=t.crossAppReports??[],n=new Map;for(let o of r){let a=o.project_id??"unknown";n.has(a)||n.set(a,{name:o.app_name??e.unknownApp,slug:o.app_slug??null,domain:o.app_domain??null,reports:[]}),n.get(a).reports.push(o);}let i=[...n.entries()].map(([o,a])=>`<section class="mushi-xapp-group"><h3 class="mushi-xapp-app-name">${fa({projectId:o,appName:a.name,appSlug:a.slug,appDomain:a.domain})} ${_(a.name)}</h3>${a.reports.map(s=>{let u=Pt(s,t.lang);return `<div class="mushi-report-row"><span class="mushi-row-top">${Xn(u.label,u.tone)}<span class="mushi-row-title">${_(s.title??`#${s.short_id??s.id.slice(0,8)}`)}</span><span class="mushi-row-when">${_(ur(s.created_at))}</span></span></div>`}).join("")}</section>`).join("");return {header:$e(t,e.title,true),lead:"",body:`${t.crossAppLoading?Dt(e.loading):""}${!t.crossAppLoading&&!r.length?`<p class="mushi-empty">${_(e.empty)}</p>`:""}${i}`,footer:""}}var _,pe,$e,ha,Dt,ur,fa,Ea=qe(()=>{Vr();});var ou={};jt(ou,{grabMaskedTabFrame:()=>jp});async function jp(t,e){let r=await t,n=r.getVideoTracks?.()[0]?.getSettings?.().displaySurface;if(n&&n!=="browser")throw r.getTracks().forEach(s=>s.stop()),Object.assign(new Error("Only this tab can be captured"),{name:"NotAllowedError"});let i=e.join(","),o=document.createElement("style");o.setAttribute("data-mushi-capture-mask",""),o.textContent=`:is(${i}){background:#000!important;color:transparent!important;-webkit-text-fill-color:transparent!important;text-shadow:none!important}:is(${i}) *{visibility:hidden!important}`,document.head.appendChild(o);let a=document.createElement("video");try{a.muted=!0,a.srcObject=r,await a.play(),await new Promise(u=>setTimeout(u,150));let s=document.createElement("canvas");return s.width=a.videoWidth,s.height=a.videoHeight,s.getContext("2d")?.drawImage(a,0,0),s.toDataURL("image/jpeg",.7)}finally{r.getTracks().forEach(s=>s.stop()),a.srcObject=null,o.remove();}}var su=qe(()=>{});var au={};jt(au,{createScreenshotAnnotation:()=>Wp});function Wp(t,e){return new Promise((r,n)=>{let i=new Image;i.onload=()=>{let o=document.createElement("div");o.style.position="relative",o.style.display="inline-block",o.style.maxWidth="100%";let a=document.createElement("canvas"),s=document.createElement("canvas"),u=Math.min(1,720/i.width),d=Math.round(i.width*u),p=Math.round(i.height*u);for(let g of [a,s])g.width=d,g.height=p,g.style.width="100%",g.style.height="auto",g.style.display="block";s.style.position="absolute",s.style.left="0",s.style.top="0",s.style.cursor="crosshair";let h=a.getContext("2d"),k=s.getContext("2d");if(!h||!k){n(new Error("Canvas not supported"));return}h.drawImage(i,0,0,d,p),o.appendChild(a),o.appendChild(s),e.appendChild(o);let S="highlight",T=false,E=null,w=[],L=g=>{let m=s.getBoundingClientRect(),b="touches"in g?g.touches[0]??g.changedTouches[0]:null,C=b?b.clientX:g.clientX,P=b?b.clientY:g.clientY;return {x:(C-m.left)/m.width*d,y:(P-m.top)/m.height*p}},M=()=>{k.clearRect(0,0,d,p);for(let g of w)if(g.tool==="highlight"&&g.points.length>=2){let[m,b]=g.points;k.fillStyle="rgba(255, 230, 0, 0.35)",k.fillRect(Math.min(m.x,b.x),Math.min(m.y,b.y),Math.abs(b.x-m.x),Math.abs(b.y-m.y));}else if(g.tool==="arrow"&&g.points.length>=2){let[m,b]=g.points;k.strokeStyle="#ef4444",k.lineWidth=3,k.beginPath(),k.moveTo(m.x,m.y),k.lineTo(b.x,b.y),k.stroke();}},x=g=>{T=true,E=L(g);},f=g=>{if(!T||!E)return;T=false;let m=L(g);if(S==="blur"){let b=Math.min(E.x,m.x),C=Math.min(E.y,m.y),P=Math.abs(m.x-E.x),v=Math.abs(m.y-E.y);P>=1&&v>=1&&(h.filter="blur(8px)",h.drawImage(a,b,C,P,v,b,C,P,v),h.filter="none");}else w.push({tool:S,points:[E,m]});E=null,M();};s.addEventListener("mousedown",x),s.addEventListener("mouseup",f),s.addEventListener("touchstart",x,{passive:true}),s.addEventListener("touchend",f),r({canvas:a,setTool(g){S=g;},getDataUrl(){let g=document.createElement("canvas");g.width=d,g.height=p;let m=g.getContext("2d");return m?(m.drawImage(a,0,0),m.drawImage(s,0,0),g.toDataURL("image/jpeg",.85)):t},destroy(){s.removeEventListener("mousedown",x),s.removeEventListener("mouseup",f),s.removeEventListener("touchstart",x),s.removeEventListener("touchend",f),o.remove();}});},i.onerror=()=>n(new Error("Failed to load screenshot")),i.src=t;})}var uu=qe(()=>{});var Pu=4194304,Lo=1.5*1024*1024;function Du(t){try{return JSON.stringify(t)}catch{return null}}function $u(t,e=Pu){let r=Du(t);if(r===null)return {ok:false,bytes:0,maxBytes:e,serializeFailed:true,reason:"Report could not be serialized (circular reference in metadata?)"};let n=new TextEncoder().encode(r).length;return n<=e?{ok:true,bytes:n,maxBytes:e}:{ok:false,bytes:n,maxBytes:e,reason:`Report payload ${ho(n)} exceeds limit ${ho(e)}`}}function ho(t){return t<1024?`${t} B`:t<1024*1024?`${(t/1024).toFixed(1)} KB`:`${(t/(1024*1024)).toFixed(2)} MB`}function Po(){try{let r=globalThis.crypto?.subtle;if(r&&typeof r.digest=="function"&&typeof r.importKey=="function"&&typeof r.sign=="function")return r}catch{}return null}function $r(t){return Array.from(t).map(e=>e.toString(16).padStart(2,"0")).join("")}async function nr(t){let e=Po();if(e){let n=await e.digest("SHA-256",new TextEncoder().encode(t));return $r(new Uint8Array(n))}let{sha256:r}=await Promise.resolve().then(()=>(mn(),fn));return $r(r(new TextEncoder().encode(t)))}async function Ou(t,e){let r=Po();if(r){let a=await r.importKey("raw",new TextEncoder().encode(t),{name:"HMAC",hash:"SHA-256"},false,["sign"]),s=await r.sign("HMAC",a,new TextEncoder().encode(e));return $r(new Uint8Array(s))}let{hmac:n}=await Promise.resolve().then(()=>(po(),co)),{sha256:i}=await Promise.resolve().then(()=>(mn(),fn)),o=n(i,new TextEncoder().encode(t),new TextEncoder().encode(e));return $r(o)}var Hu=60*1024;function Bu(t){return {mushiBeacon:true,path:t.path,headers:t.headers,body:t.body}}function Fu(t,e=typeof location<"u"?location.origin:""){if(!t)return false;if(t.startsWith("/"))return true;if(!e)return false;try{return new URL(t,e).origin===e}catch{return false}}function Nu(t){try{let e=t.startsWith("/")?new URL(t,"https://tunnel.local"):new URL(t);return `${e.pathname}${e.search}`}catch{return t}}function Uu(t){let e=t.fetchImpl??(typeof fetch=="function"?fetch:void 0);if(e)try{return e(t.url,{method:"POST",headers:{"Content-Type":"application/json",...t.headers},body:t.body,keepalive:!0}),!0}catch{}let r=t.sendBeacon??(typeof navigator<"u"?navigator.sendBeacon?.bind(navigator):void 0);if(!r||!Fu(t.url))return false;let n=t.body;try{n=JSON.parse(t.body);}catch{n=t.body;}let i=JSON.stringify(Bu({path:t.path??Nu(t.url),headers:t.headers,body:n}));if(i.length>Hu)return false;try{return r(t.url,new Blob([i],{type:"application/json"}))}catch{return false}}var Do=false;function $o(){Do=true;}function qu(){return Do}var Sn=null;function Oo(){return Sn?Uu(Sn):false}var fo=false,ju="X-Mushi-User-Token",Wu="X-Mushi-Project",Vu="X-Mushi-SDK-Package",Ku="X-Mushi-SDK-Version";function zu(t){let e={"Content-Type":"application/json","X-Mushi-Api-Key":t.apiKey,[Wu]:t.projectId};return t.sdkPackage&&(e[Vu]=t.sdkPackage),t.sdkVersion&&(e[Ku]=t.sdkVersion),t.userToken&&(e[ju]=t.userToken),t.internalKind&&(e[Br]=t.internalKind),e}var Yt="https://dxptnwrhwsqckaftyymj.supabase.co/functions/v1/api",Br="X-Mushi-Internal",ir="__mushiInternal";function Gu(t,e){let r=e?.trim();return r?r.replace(/\/$/,""):(t??Yt).replace(/\/$/,"")}var Yu=1e4,Xu=2,Ju=4,Qu=3e4,Zu=1e4;function Ho(t){let{projectId:e,apiKey:r,apiEndpoint:n=Yt,tunnel:i,timeout:o=Yu,maxRetries:a=Xu,getUserToken:s,sdkPackage:u,sdkVersion:d,circuitBreaker:p}=t,h=Gu(n,i),k=p?.enabled!==false,S=Math.max(1,p?.threshold??Ju),T=Math.max(1e3,p?.cooldownMs??Qu),E=0,w=0,L=()=>k&&w>Date.now(),M=()=>{E=0,w=0;},x=()=>{k&&(E+=1,E>=S&&(w=Date.now()+T));};async function f(m,b,C,P=a,v,K){let Y=v!=="reporter-poll";if(Y&&L())return {ok:false,error:{code:"CIRCUIT_OPEN",message:"Endpoint temporarily unavailable; retrying later."}};let ne=`${h}${b}`,j=new AbortController,ke=setTimeout(()=>j.abort(),o),Be=s?.()??null,me={...zu({apiKey:r,projectId:e,sdkPackage:u,sdkVersion:d,userToken:Be,internalKind:v}),...K},J=C?JSON.stringify(C):void 0;J&&m!=="GET"&&v!=="reporter-poll"&&(Sn={url:ne,headers:me,body:J,path:b});try{let O=await fetch(ne,{method:m,headers:me,body:J,keepalive:qu(),signal:j.signal,...v?{[ir]:v}:{}});if(clearTimeout(ke),O.status===307||O.status===308){let _e=O.headers.get("Location");if(_e&&P>0){let Ce=_e.replace(/\/v1\/.*$/,"").replace(/\/$/,"");if(Ce!==h)return h=Ce,f(m,b,C,P-1,v,K)}}if(!O.ok){let _e=await O.json().catch(()=>({}));if((O.status===401||O.status===403)&&!fo){fo=!0;let H=h===Yt?"Get the correct values at: https://kensaur.us/mushi-mushi/admin/projects":"Get the correct values from your Mushi console's Projects page.";console.error(`[Mushi] Credentials rejected (HTTP ${O.status}). Check your Project ID and API key scope (must be "report:write"). `+H);}let Ce=O.status===429,Le=O.status>=500||Ce,A=Ce?el(O.headers.get("Retry-After")):null,R=A===null||A<=Zu;return Le&&P>0&&R?(await mo(A??go(a-P)),f(m,b,C,P-1,v,K)):(Y&&(Le?x():M()),{ok:!1,error:{code:_e.error?.code||`HTTP_${O.status}`,message:_e.error?.message||_e.message||`HTTP ${O.status} error`,status:O.status}})}let G=await O.json(),re=G&&typeof G=="object"&&"ok"in G&&"data"in G?G.data:G;return Y&&M(),{ok:!0,data:re}}catch(O){return clearTimeout(ke),P>0&&tl(O)?(await mo(go(a-P)),f(m,b,C,P-1,v,K)):(Y&&x(),{ok:false,error:{code:"NETWORK_ERROR",message:O instanceof Error?O.message:"Unknown network error"}})}}async function g(m,b,C,P){try{let v=await nr(C),K=String(Date.now());return await f(m,b,P,a,"reporter-poll",{"X-Reporter-Token-Hash":v,"X-Reporter-Ts":K,"X-Reporter-Hmac":await Ou(r,`${e}.${K}.${v}`)})}catch(v){return {ok:false,error:{code:"NETWORK_ERROR",message:v instanceof Error?v.message:"Unknown error"}}}}return {async submitReport(m){let b=$u(m);return b.ok?f("POST","/v1/reports",m,a,"report-submit"):{ok:false,error:{code:b.serializeFailed?"SERIALIZE_FAILED":"PAYLOAD_TOO_LARGE",message:b.reason??"Report payload exceeds size limit"}}},async getReportStatus(m){return f("GET",`/v1/reports/${m}/status`,void 0,a,"report-status")},async getSdkConfig(){return f("GET","/v1/sdk/config",void 0,a,"sdk-config")},async askAssistant(m){return f("POST","/v1/sdk/assistant",{message:m.message,threadId:m.threadId??null,context:m.context??null},1,"community")},async getLatestSdkVersion(m){let b=new URLSearchParams({package:m}).toString();return f("GET",`/v1/sdk/latest-version?${b}`,void 0,a,"sdk-config")},async postDiscoveryEvent(m){return f("POST","/v1/sdk/discovery",m,1,"discovery")},async listReporterReports(m){return g("GET","/v1/reporter/reports",m)},reporterRequest:g,async listReporterComments(m,b){return g("GET",`/v1/reporter/reports/${m}/comments`,b)},async replyToReporterReport(m,b,C,P){return g("POST",`/v1/reporter/reports/${m}/reply`,b,{body:C,...P?{feedback_signal:P}:{}})},async reopenReporterReport(m,b,C){return g("POST",`/v1/reporter/reports/${m}/reopen`,b,{note:C??""})},async listNotifications(m,b){let C=new URLSearchParams;b?.since&&C.set("since",b.since),b?.limit&&C.set("limit",String(b.limit));let P=C.size?`?${C.toString()}`:"";return g("GET",`/v1/notifications${P}`,m)},async markNotificationRead(m,b){return g("POST",`/v1/notifications/${m}/read`,b,{})},async listReporterFeatureBoard(m){return g("GET","/v1/reporter/feature-board",m)},async voteReporterFeatureBoard(m,b){return g("POST",`/v1/reporter/feature-board/${m}/vote`,b,{})},async postSessionEvent(m){return f("POST","/v1/sdk/session",m,1,"discovery")},async postProductEvents(m){return f("POST","/v1/sdk/events",m,1,"discovery")},async submitActivity(m,b,C){return f("POST","/v1/sdk/activity",{user_id:m,user_traits:C?.userTraits,opted_in:C?.optedIn,reporter_token_hash:C?.reporterTokenHash,...C?.hostJwt?{host_jwt:C.hostJwt}:{},events:b},1,"discovery")},async getMyPoints(m){return f("GET",`/v1/sdk/me/points?userId=${encodeURIComponent(m)}`,void 0,1,"reporter-poll")},async getMyTier(m){return f("GET",`/v1/sdk/me/tier?userId=${encodeURIComponent(m)}`,void 0,1,"reporter-poll")},async getMyHistory(m,b){let C=new URLSearchParams({userId:m,...b?.limit?{limit:String(b.limit)}:{}});return f("GET",`/v1/sdk/me/history?${C}`,void 0,1,"reporter-poll")},async getHallOfFame(m=10){return f("GET",`/v1/sdk/hall-of-fame?limit=${m}`,void 0,1,"reporter-poll")},async sendMagicLink(m){return f("POST","/v1/tester/magic-link",{email:m},1,"community")},async linkReporterToken(m,b){return f("POST","/v1/tester/link-reporter",{reporter_token_hash:m},1,"community",{Authorization:`Bearer ${b}`})},async getCrossAppReports(m,b){let C=new URLSearchParams;b?.limit&&C.set("limit",String(b.limit)),b?.offset&&C.set("offset",String(b.offset));let P=C.size?`?${C.toString()}`:"";return f("GET",`/v1/tester/cross-app-reports${P}`,void 0,1,"community",{Authorization:`Bearer ${m}`})},async getMyReputation(m){return f("GET","/v1/tester/reputation",void 0,1,"community",{Authorization:`Bearer ${m}`})},async getPublicLeaderboard(m=20){return f("GET",`/v1/public/tester-leaderboard?limit=${m}`,void 0,1,"reporter-poll")},async getTesterStatus(m){return f("GET","/v1/me/tester-status",void 0,1,"community",{Authorization:`Bearer ${m}`})}}}function mo(t){return new Promise(e=>setTimeout(e,t))}function go(t){return Math.min(1e3*2**t+Math.random()*500,1e4)}function el(t,e=Date.now()){if(!t)return null;let r=t.trim();if(!r)return null;let n=Number(r);if(Number.isFinite(n))return n<0?null:n*1e3;let i=Date.parse(r);return Number.isNaN(i)?null:Math.max(i-e,0)}function tl(t){return t instanceof DOMException&&t.name==="AbortError"||t instanceof TypeError}function gn(t,e){if(!t||!e||e.length===0)return false;for(let r of e){if(typeof r=="string"){if(t.includes(r))return true;continue}try{if(r.test(t))return !0}catch{}}return false}function or(t){if(gn(t.message,t.ignoreErrors))return true;let e=t.filename?.trim()||"";return !!(e&&gn(e,t.denyUrls)||t.allowUrls&&t.allowUrls.length>0&&(!e||!gn(e,t.allowUrls)))}function bn(...t){return t.find(e=>e!==void 0&&e!=="")}function Se(t){try{let e=undefined;return typeof e=="object"&&e!==null?e[t]:void 0}catch{return}}function Ke(t){try{return t()}catch{return}}function Ln(){let t=bn(Se("VITE_MUSHI_PROJECT_ID"),Se("NEXT_PUBLIC_MUSHI_PROJECT_ID"),Se("NUXT_PUBLIC_MUSHI_PROJECT_ID"),Se("EXPO_PUBLIC_MUSHI_PROJECT_ID"),Ke(()=>process.env.NEXT_PUBLIC_MUSHI_PROJECT_ID),Ke(()=>process.env.EXPO_PUBLIC_MUSHI_PROJECT_ID),Ke(()=>process.env.MUSHI_PROJECT_ID)),e=bn(Se("VITE_MUSHI_API_KEY"),Se("NEXT_PUBLIC_MUSHI_API_KEY"),Se("NUXT_PUBLIC_MUSHI_API_KEY"),Se("EXPO_PUBLIC_MUSHI_API_KEY"),Ke(()=>process.env.NEXT_PUBLIC_MUSHI_API_KEY),Ke(()=>process.env.EXPO_PUBLIC_MUSHI_API_KEY),Ke(()=>process.env.MUSHI_API_KEY)),r=bn(Se("VITE_MUSHI_API_ENDPOINT"),Se("NEXT_PUBLIC_MUSHI_API_ENDPOINT"),Se("NUXT_PUBLIC_MUSHI_API_ENDPOINT"),Se("EXPO_PUBLIC_MUSHI_API_ENDPOINT"),Ke(()=>process.env.NEXT_PUBLIC_MUSHI_API_ENDPOINT),Ke(()=>process.env.EXPO_PUBLIC_MUSHI_API_ENDPOINT),Ke(()=>process.env.MUSHI_API_ENDPOINT)),n={};return t&&(n.projectId=t),e&&(n.apiKey=e),r&&(n.apiEndpoint=r),n}var rl=["VITE_","NEXT_PUBLIC_","NUXT_PUBLIC_","EXPO_PUBLIC_",""],nl={projectId:"MUSHI_PROJECT_ID",apiKey:"MUSHI_API_KEY"};function Bo(){let t=Ln(),e=[];if(t.projectId||e.push("projectId"),t.apiKey||e.push("apiKey"),e.length===0)return {resolved:t,missing:e,nearMisses:[],message:null};let r=(()=>{try{let s=undefined;return typeof s=="object"&&s!==null?s:null}catch{return null}})(),n=(()=>{try{return typeof process<"u"&&process.env?process.env:null}catch{return null}})(),i=[];for(let s of e)for(let u of rl){let d=`${u}${nl[s]}`;r&&r[d]?i.push({field:s,key:d,via:"import.meta.env"}):n&&n[d]&&i.push({field:s,key:d,via:"process.env"});}let o=r?"VITE_MUSHI_*":"NEXT_PUBLIC_MUSHI_* (Next.js), EXPO_PUBLIC_MUSHI_* (Expo), or MUSHI_* (Node / React Native)",a=[`[mushi] Missing ${e.join(" and ")} \u2014 the SDK will not initialize.`];for(let s of i)a.push(`[mushi] Found ${s.key} in ${s.via}, but this runtime did not resolve it \u2014 it is either the wrong prefix for your bundler or not exposed to the client bundle.`);return a.push(`[mushi] This runtime reads: ${o}. Set the matching variable(s) and restart your dev server.`),i.length===0&&a.push("[mushi] If you already set the variable, check the prefix: a mis-prefixed var is stripped from client bundles and resolves to undefined with no error."),{resolved:t,missing:e,nearMisses:i,message:a.join(`
2
+ `)}}var bo=["production-calm","beta-loud","internal-debug","manual-only","minimal","standard","full"],il=["projectId","apiKey","apiEndpoint","tunnel","timeout","maxRetries","circuitBreaker","preset","runtimeConfig","analytics","trackSessions","sentry","widget","notifications","capture","privacy","proactive","preFilter","integrations","offline","rewards","assistant","debug","enabled","appVersion","sampleRate","replaySampleRate","replaysOnErrorSampleRate","beforeSend","beforeSendFeedback","ignoreErrors","denyUrls","allowUrls","onCrashedLastRun"];function ol(t){switch(t){case "manual-only":return {widget:{trigger:"manual",outdatedBanner:"console-only"},capture:{console:true,network:true,performance:false,screenshot:"on-report",elementSelector:false},proactive:{rageClick:false,longTask:false,apiCascade:false,errorBoundary:false}};case "beta-loud":return {widget:{trigger:"auto",outdatedBanner:"banner"},capture:{console:true,network:true,performance:true,screenshot:"auto",elementSelector:true},proactive:{rageClick:true,longTask:true,apiCascade:true,errorBoundary:true}};case "internal-debug":return {widget:{trigger:"auto",outdatedBanner:"banner",brandFooter:true},capture:{console:true,network:true,performance:true,screenshot:"auto",elementSelector:true},proactive:{rageClick:true,longTask:true,apiCascade:true,errorBoundary:true,cooldown:{maxProactivePerSession:10,dismissCooldownHours:0,suppressAfterDismissals:99}}};case "production-calm":return {widget:{trigger:"auto",outdatedBanner:"console-only"},capture:{console:true,network:true,performance:false,screenshot:"on-report",elementSelector:false},proactive:{rageClick:false,longTask:false,apiCascade:false,errorBoundary:false}};case "minimal":return {widget:{trigger:"auto"},capture:{console:true,network:false,performance:false,screenshot:"on-report",replay:"off",elementSelector:false},proactive:{rageClick:false,longTask:false,apiCascade:false,errorBoundary:false}};case "full":return {widget:{trigger:"auto"},capture:{console:true,network:true,performance:true,screenshot:"auto",replay:"lite",elementSelector:true},proactive:{rageClick:true,longTask:true,apiCascade:true,errorBoundary:true}};default:return}}function Fo(t){let e=ol(t.preset);return e?{...t,widget:{...e.widget,...t.widget},capture:{...e.capture,...t.capture},proactive:{...e.proactive,...t.proactive,cooldown:{...e.proactive?.cooldown,...t.proactive?.cooldown}}}:t}function sl(){let t=e=>e==="1"||e==="true";try{if(typeof process<"u"&&process.env&&t(process.env.MUSHI_SILENT))return !0}catch{}try{let e=undefined;if(e&&typeof e=="object"&&(t(e.MUSHI_SILENT)||t(e.VITE_MUSHI_SILENT)))return !0}catch{}return false}function No(t){try{if(sl()||!t||typeof t!="object")return;let e=Object.keys(t).filter(r=>!il.includes(r));e.length>0&&console.error(`[mushi] Unknown config key${e.length>1?"s":""}: ${e.map(r=>`\`${r}\``).join(", ")} \u2014 check for typos (see MushiConfig). Ignored.`),t.preset!==void 0&&!bo.includes(t.preset)&&console.error(`[mushi] Unknown preset \`${String(t.preset)}\` \u2014 expected one of ${bo.map(r=>`'${r}'`).join(", ")}. Preset ignored.`);}catch{}}var al=10,ul=2e3,ll=[/^(.)\1{10,}$/,/^[A-Z\s!?]{20,}$/,/^[\d\s]+$/,/^[^a-zA-Z\u00C0-\u024F\u4E00-\u9FFF\u3040-\u309F\u30A0-\u30FF]{10,}$/,/^(asdf|qwerty|lorem ipsum)[.,!?\s]*$/i],cl=/^[bcdfghjklmnpqrstvwxz]{6,}/i;function Uo(t={}){let{enabled:e=true,blockObviousSpam:r=true,minDescriptionLength:n=al,maxDescriptionLength:i=ul}=t;function o(s){if(!e)return {passed:true};let u=s.trim();if(u.length<n)return {passed:false,reason:`Too short (min ${n} characters)`};if(u.length>i)return {passed:false,reason:`Too long (max ${i} characters)`};if(r){for(let p of ll)if(p.test(u))return {passed:false,reason:"Detected as spam"};if(cl.test(u))return {passed:false,reason:"Detected as gibberish"};if(u.split(/\s+/).filter(p=>p.length>1).length<2)return {passed:false,reason:"Description needs at least 2 words"}}return {passed:true}}function a(s){let u=s.trim();return u.length<=i?u:u.slice(0,i)+"..."}return {check:o,truncate:a}}var Eo={debug:10,info:20,warn:30,error:40,fatal:50,silent:99},dl={debug:"DBG",info:"INF",warn:"WRN",error:"ERR",fatal:"FTL"},Ee={reset:"\x1B[0m",dim:"\x1B[2m",bold:"\x1B[1m",cyan:"\x1B[36m",green:"\x1B[32m",yellow:"\x1B[33m",red:"\x1B[31m",white:"\x1B[37m",bgRed:"\x1B[41m"},pl={debug:Ee.dim,info:Ee.green,warn:Ee.yellow,error:Ee.red,fatal:`${Ee.bgRed}${Ee.white}${Ee.bold}`};function hl(){try{if(typeof globalThis.Deno<"u")return "json"}catch{}let t=typeof globalThis.process<"u"?globalThis.process:void 0;if(t?.env){if(t.env.NODE_ENV==="production"||t.env.LOG_FORMAT==="json")return "json";if(t.env.LOG_FORMAT==="pretty"||t.stdout?.isTTY)return "pretty"}return typeof globalThis.window<"u"?"pretty":"json"}function fl(t){let e=[];for(let[r,n]of Object.entries(t))n!=null&&(typeof n=="object"?e.push(`${r}=${JSON.stringify(n)}`):e.push(`${r}=${String(n)}`));return e.join(" ")}function ml(t){let{ts:e,level:r,scope:n,msg:i,...o}=t,a=e.slice(11,23),s=pl[r]??"",u=dl[r]??r.toUpperCase(),d=Object.keys(o).length>0?` ${Ee.dim}${fl(o)}${Ee.reset}`:"";return `${Ee.dim}${a}${Ee.reset} ${s}${u}${Ee.reset} ${Ee.cyan}[${n}]${Ee.reset} ${i}${d}`}function gl(t){return JSON.stringify(t)}function bl(t){return t==="stderr"?(e,r)=>{console.error(r);}:(e,r)=>{switch(e){case "error":case "fatal":console.error(r);break;case "warn":console.warn(r);break;default:console.log(r);}}}function qo(t,e,r,n,i){let o=e;function a(s,u,d){if(Eo[s]<Eo[o])return;let p={ts:new Date().toISOString(),level:s,scope:t,msg:u,...r,...d};i(s,n(p));}return {debug:(s,u)=>a("debug",s,u),info:(s,u)=>a("info",s,u),warn:(s,u)=>a("warn",s,u),error:(s,u)=>a("error",s,u),fatal:(s,u)=>a("fatal",s,u),child(s,u){return qo(`${t}:${s}`,o,{...r,...u},n,i)},setLevel(s){o=s;}}}function Tt(t){let{scope:e,level:r="info",meta:n={},format:i="auto",destination:o="stdout"}=t,s=(i==="auto"?hl():i)==="json"?gl:ml,u=bl(o);return qo(e,r,n,s,u)}var Pn={debug:()=>{},info:()=>{},warn:()=>{},error:()=>{},fatal:()=>{},child:()=>Pn,setLevel:()=>{}},El="mushi-mushi-keyring",dt="keys",jo="offline-queue/v1",Ir=null,Mr=null;function yl(){return typeof globalThis<"u"&&typeof globalThis.crypto<"u"&&typeof globalThis.crypto.subtle<"u"&&typeof indexedDB<"u"}function Wo(){return new Promise((t,e)=>{let r=indexedDB.open(El,1);r.onupgradeneeded=()=>{try{let n=r.result;if(!n)return;n.objectStoreNames.contains(dt)||n.createObjectStore(dt);}catch{}},r.onsuccess=()=>{let n=r.result;if(!n||!n.objectStoreNames.contains(dt)){try{n?.close();}catch{}e(new Error("key object store unavailable"));return}t(n);},r.onerror=()=>e(r.error);})}async function vl(){let t=await Wo();return new Promise((e,r)=>{let i=t.transaction(dt,"readonly").objectStore(dt).get(jo);i.onsuccess=()=>e(i.result??null),i.onerror=()=>r(i.error);})}async function wl(t){let e=await Wo();return new Promise((r,n)=>{let i=e.transaction(dt,"readwrite");i.objectStore(dt).put(t,jo),i.oncomplete=()=>r(),i.onerror=()=>n(i.error);})}async function Vo(){if(Ir)return Ir;if(Mr)return Mr;if(!yl())throw new Error("Web Crypto + IndexedDB required for offline queue encryption");return Mr=(async()=>{let t=await vl();if(t)return Ir=t,t;let e=await crypto.subtle.generateKey({name:"AES-GCM",length:256},false,["encrypt","decrypt"]);return await wl(e),Ir=e,e})(),Mr}function yo(t){let e="";for(let r of t)e+=String.fromCharCode(r);return btoa(e)}function vo(t){let e=atob(t),r=new Uint8Array(new ArrayBuffer(e.length));for(let n=0;n<e.length;n++)r[n]=e.charCodeAt(n);return r}async function Sl(t){let e=await Vo(),r=crypto.getRandomValues(new Uint8Array(12)),n=new TextEncoder().encode(JSON.stringify(t)),i=new Uint8Array(await crypto.subtle.encrypt({name:"AES-GCM",iv:r},e,n));return {_mme:1,iv:yo(r),ct:yo(i)}}function xl(t){return !!t&&typeof t=="object"&&t._mme===1&&typeof t.iv=="string"&&typeof t.ct=="string"}async function Rl(t){let e=await Vo(),r=vo(t.iv),n=vo(t.ct),i=await crypto.subtle.decrypt({name:"AES-GCM",iv:r},e,n);return JSON.parse(new TextDecoder().decode(i))}var xe=Tt({scope:"mushi:queue",level:"warn"}),kl="mushi-mushi",fe="offline-reports",_l=1,En="mushi_offline_queue",Cl=10,Tl=6e4,Al=3e4,Il=8,Ml=1440*60*1e3;function Ko(t={}){let{enabled:e=true,maxQueueSize:r=50,syncOnReconnect:n=true,encryptAtRest:i=true}=t,o=null,a=null,s=null,u=null,d=null;async function p(A){let R=new Date().toISOString();if(!i)return {...A,queuedAt:R};try{let H=await Sl(A);return {id:A.id,queuedAt:R,payload:H}}catch(H){return xe.warn("Offline queue: encryption failed, storing plaintext",{err:String(H)}),{...A,queuedAt:R}}}async function h(A){if(k(A))try{return await Rl(A.payload)}catch(R){return xe.warn("Offline queue: decrypt failed, dropping row",{err:String(R),id:A.id}),null}return A}function k(A){return !!A.payload&&xl(A.payload)}function S(A){let R=A.attempts;return typeof R=="number"&&Number.isFinite(R)?R:0}function T(A,R){let H=A.queuedAt;if(!H)return false;let F=Date.parse(H);return Number.isNaN(F)?false:R-F>Ml}function E(){return s||(typeof indexedDB<"u"?s="indexeddb":typeof localStorage<"u"?s="localstorage":s="none",s)}function w(){return new Promise((A,R)=>{let H=indexedDB.open(kl,_l);H.onupgradeneeded=()=>{try{let F=H.result;if(!F)return;F.objectStoreNames.contains(fe)||F.createObjectStore(fe,{keyPath:"id"});}catch{}},H.onsuccess=()=>{let F=H.result;if(!F||!F.objectStoreNames.contains(fe)){s="localstorage";try{F?.close();}catch{}R(new Error("queue object store unavailable"));return}A(F);},H.onerror=()=>{s="localstorage",R(H.error);};})}async function L(A){let R=await w(),H=await p(A);return new Promise((F,U)=>{let X=R.transaction(fe,"readwrite");X.objectStore(fe).put(H),X.oncomplete=()=>F(),X.onerror=()=>U(X.error);})}async function M(){let A=await w();return new Promise((R,H)=>{let U=A.transaction(fe,"readonly").objectStore(fe).getAll();U.onsuccess=()=>R(U.result),U.onerror=()=>H(U.error);})}async function x(A){let R=await w();return new Promise((H,F)=>{let U=R.transaction(fe,"readwrite");U.objectStore(fe).delete(A),U.oncomplete=()=>H(),U.onerror=()=>F(U.error);})}async function f(A){let R=await w();return new Promise((H,F)=>{let U=R.transaction(fe,"readwrite");U.objectStore(fe).put(A),U.oncomplete=()=>H(),U.onerror=()=>F(U.error);})}async function g(){let A=await w();return new Promise((R,H)=>{let U=A.transaction(fe,"readonly").objectStore(fe).count();U.onsuccess=()=>R(U.result),U.onerror=()=>H(U.error);})}async function m(){let A=await w();return new Promise((R,H)=>{let F=A.transaction(fe,"readwrite");F.objectStore(fe).clear(),F.oncomplete=()=>R(),F.onerror=()=>H(F.error);})}function b(){try{let A=localStorage.getItem(En);return A?JSON.parse(A):[]}catch{return []}}function C(A){try{localStorage.setItem(En,JSON.stringify(A));}catch{}}async function P(A){let R=b(),H=await p(A),F=R.findIndex(U=>U.id===A.id);F>=0?R[F]=H:R.push(H),C(R);}function v(A){let R=b().filter(H=>H.id!==A);C(R);}function K(A){let R=b(),H=R.findIndex(F=>F.id===A.id);H>=0&&(R[H]=A,C(R));}async function Y(A,R){try{A==="indexeddb"?await x(R):v(R);}catch(H){xe.debug("Offline queue: row removal failed (will age out)",{id:R,err:String(H)});}}async function ne(A,R){try{return A==="indexeddb"?await f(R):K(R),!0}catch(H){return xe.debug("Offline queue: row persist failed",{id:R.id,err:String(H)}),false}}async function j(){let A=E();if(A==="none")return {backend:A,rows:[]};if(A==="indexeddb")try{return {backend:A,rows:await M()}}catch{s="localstorage";}return {backend:"localstorage",rows:b()}}async function ke(A){let R=E();if(R==="none")return xe.debug("Offline queue: no storage backend, dropping report",{id:A.id}),R;if(R==="indexeddb")try{return await L(A),R}catch{s="localstorage";}return await P(A),"localstorage"}async function Be(A){if(!e)return;if(await re()>=r){xe.warn("Offline queue full \u2014 dropping report",{maxQueueSize:r});return}await ke(A);}function me(A){return Math.min(1e3*2**A+Math.random()*500,Tl)}function J(A){return new Promise(R=>setTimeout(R,A))}async function O(A){let{backend:R,rows:H}=await j(),F=H,U=Date.now(),X=[];for(let he of F)if(T(he,U)){let ie=he.id;await Y(R,ie),xe.debug("Offline queue: evicting stale report",{id:ie});}else X.push(he);F=X;let Xe=F.slice(0,Cl),Fe=0,it=0;for(let he=0;he<Xe.length;he++){let ie=Xe[he],ge=ie.id,Nt=await h(ie);if(!Nt){await Y(R,ge),it++;continue}let z=await A.submitReport(Nt);if(z.ok){await Y(R,ge),Fe++;continue}if(it++,z.error?.code==="CIRCUIT_OPEN"){xe.debug("Offline queue: circuit open, deferring the rest of the batch",{id:ge,remaining:Xe.length-he});break}let Ut=z.error?.code==="HTTP_400"||z.error?.code==="HTTP_413"||z.error?.code==="HTTP_422"||z.error?.code==="INGEST_ERROR"||z.error?.code==="VALIDATION_ERROR"||z.error?.code==="PAYLOAD_TOO_LARGE"||z.error?.code==="SERIALIZE_FAILED"||typeof z.error?.message=="string"&&/invalid payload|description must be at least|validation/i.test(z.error.message),ot=!Ut&&(z.error?.code==="NETWORK_ERROR"||z.error?.code==="HTTP_403"||z.error?.code==="HTTP_429"||z.error?.code==="HTTP_502"||z.error?.code==="HTTP_503"||z.error?.code==="HTTP_504"||typeof z.error?.code=="string"&&z.error.code.startsWith("HTTP_5"));if(Ut)await Y(R,ge);else {let st=S(ie)+1;st>=Il?(await Y(R,ge),xe.warn("Offline queue: giving up on report after repeated failures",{id:ge,attempts:st,code:z.error?.code})):(ie.attempts=st,await ne(R,ie)?xe.debug("Offline queue: delivery failed, will retry",{id:ge,attempts:st,code:z.error?.code,classified:ot?"transient":"unclassified"}):(await Y(R,ge),xe.warn("Offline queue: dropping report (attempt counter unpersistable)",{id:ge,code:z.error?.code})));}he<Xe.length-1&&await J(me(he));}return {sent:Fe,failed:it}}function G(A){if(!e)return Promise.resolve({sent:0,failed:0});if(u)return d||(d=u.catch(()=>{}).then(()=>(d=null,G(A)))),d;let R=O(A).finally(()=>{u===R&&(u=null);});return u=R,R}async function re(){if(E()==="indexeddb")try{return await g()}catch{s="localstorage";}return b().length}async function _e(){if(E()==="indexeddb")try{await m();}catch{}try{localStorage.removeItem(En);}catch{}}function Ce(A){if(!e||!n||typeof window>"u")return;o&&Le();let R=()=>{navigator.onLine&&G(A).catch(H=>{xe.warn("Offline queue auto-flush failed",{err:String(H)});});};window.addEventListener("online",R),a=setInterval(()=>{re().then(H=>{H>0&&R();});},Al),o=()=>{window.removeEventListener("online",R),a&&(clearInterval(a),a=null);};}function Le(){o?.(),o=null;}return {enqueue:Be,flush:G,size:re,clear:_e,startAutoSync:Ce,stopAutoSync:Le}}function Dn(){let t=typeof navigator<"u"?navigator:void 0,e=typeof window<"u"?window:void 0,r=typeof document<"u"?document:void 0,n=typeof screen<"u"?screen:void 0;Pl(t);let i=t&&"connection"in t?t.connection:void 0,o=e,a=!!o?.Capacitor,s=!!o?.cordova,u=t?.product==="ReactNative"||typeof globalThis.HermesInternal<"u",d=a||s||u?{...a?{capacitor:true}:{},...s?{cordova:true}:{},...u?{reactNative:true}:{}}:void 0;return {userAgent:t?.userAgent??"unknown",platform:t?.platform??"unknown",language:t?.language??"en",viewport:{width:e?.innerWidth??0,height:e?.innerHeight??0},url:e?.location?.href??"",referrer:r?.referrer??"",timestamp:new Date().toISOString(),timezone:Intl?.DateTimeFormat?.()?.resolvedOptions?.()?.timeZone??"UTC",connection:i?{effectiveType:i.effectiveType,downlink:i.downlink,rtt:i.rtt}:void 0,deviceMemory:t?.deviceMemory,hardwareConcurrency:t?.hardwareConcurrency,route:e?.location?.pathname,nearestTestid:Ll(r),userAgentData:$l(t),screen:Ol(n,e),prefersColorScheme:Hl(e),prefersReducedMotion:Re(e,"(prefers-reduced-motion: reduce)"),prefersReducedData:Re(e,"(prefers-reduced-data: reduce)"),prefersContrast:Bl(e),forcedColors:Re(e,"(forced-colors: active)"),online:typeof t?.onLine=="boolean"?t.onLine:void 0,displayMode:Fl(e),documentTitle:r?.title?.slice(0,200),buildId:Nl(r),pageLoadTiming:Ul(e),...d?{native:d}:{}}}function Ll(t){if(!t)return;let e=t.activeElement??null,r=0;for(;e&&r<20;){let n=e.getAttribute?.("data-testid");if(n)return n;e=e.parentElement,r++;}}var Ie=null,wo=false;function Pl(t){if(wo)return;let e=t?.userAgentData;e?.getHighEntropyValues&&(wo=true,e.getHighEntropyValues(["architecture","bitness","model","platformVersion","uaFullVersion","fullVersionList"]).then(r=>{Ie=r;}).catch(()=>{}));}function Dl(t){if(!t?.length)return;let e=t.filter(n=>!/not.?a.?brand/i.test(n.brand));return e.length===0?void 0:e.find(n=>!/chromium|google chrome/i.test(n.brand))??e[0]}function $l(t){let e=t?.userAgentData;if(!e&&!Ie)return;let r=Ie?.fullVersionList,n=Dl(r??e?.brands),i={};return n&&(i.browser=n.brand,i.browserVersion=n.version),e?.platform&&(i.os=e.platform),Ie?.platformVersion&&(i.osVersion=Ie.platformVersion),typeof e?.mobile=="boolean"&&(i.mobile=e.mobile),Ie?.model&&(i.model=Ie.model),Ie?.architecture&&(i.architecture=Ie.architecture),Ie?.bitness&&(i.bitness=Ie.bitness),Object.keys(i).length===0?void 0:i}function Ol(t,e){if(!t&&!e)return;let r={};typeof t?.width=="number"&&(r.width=t.width),typeof t?.height=="number"&&(r.height=t.height),typeof e?.devicePixelRatio=="number"&&(r.devicePixelRatio=e.devicePixelRatio),typeof t?.colorDepth=="number"&&(r.colorDepth=t.colorDepth);let n=t?.orientation?.type;return n&&(r.orientation=n),Object.keys(r).length===0?void 0:r}function Re(t,e){if(t?.matchMedia)try{return t.matchMedia(e).matches}catch{return}}function Hl(t){if(t?.matchMedia)return Re(t,"(prefers-color-scheme: dark)")?"dark":Re(t,"(prefers-color-scheme: light)")?"light":"no-preference"}function Bl(t){if(t?.matchMedia)return Re(t,"(prefers-contrast: more)")?"more":Re(t,"(prefers-contrast: less)")?"less":Re(t,"(prefers-contrast: custom)")?"custom":"no-preference"}function Fl(t){if(t?.matchMedia){if(Re(t,"(display-mode: fullscreen)"))return "fullscreen";if(Re(t,"(display-mode: standalone)"))return "standalone";if(Re(t,"(display-mode: minimal-ui)"))return "minimal-ui";if(Re(t,"(display-mode: browser)"))return "browser"}}function Nl(t){if(!t)return;let r=t.querySelector?.('meta[name="mushi:build"]')?.content?.trim();if(r)return r.slice(0,64)}function Ul(t){let e=t?.performance;if(!e?.getEntriesByType)return;let r;try{r=e.getEntriesByType("navigation")[0];}catch{return}if(!r)return;let n=r.startTime??0,i={};return r.domContentLoadedEventEnd>0&&(i.domContentLoadedMs=Math.round(r.domContentLoadedEventEnd-n)),r.loadEventEnd>0&&(i.loadCompleteMs=Math.round(r.loadEventEnd-n)),r.responseStart>0&&(i.timeToFirstByteMs=Math.round(r.responseStart-n)),typeof r.type=="string"&&(i.navigationType=r.type),Object.keys(i).length===0?void 0:i}var yn="mushi_reporter_token";function ql(t){return `mushi:reporter-token:${t}`}function So(){if(typeof crypto<"u"&&crypto.randomUUID)return `mushi_${crypto.randomUUID()}`;let t=new Uint8Array(16);if(typeof crypto<"u")crypto.getRandomValues(t);else for(let r=0;r<t.length;r++)t[r]=Math.floor(Math.random()*256);return `mushi_${Array.from(t).map(r=>r.toString(16).padStart(2,"0")).join("")}`}function vn(t){if(typeof localStorage>"u")return null;try{let e=localStorage.getItem(t);return e&&e.length>0?e:null}catch{return null}}function xo(t,e){if(!(typeof localStorage>"u"))try{localStorage.setItem(t,e);}catch{}}function te(t){if(!t){let o=vn(yn);if(o)return o;let a=So();return xo(yn,a),a}let e=ql(t),r=vn(e);if(r)return r;let i=vn(yn)??So();return xo(e,i),i}function $n(){let t=typeof crypto<"u"?crypto:void 0;if(t?.randomUUID)return t.randomUUID();let e=new Uint8Array(16);if(t?.getRandomValues)t.getRandomValues(e);else for(let n=0;n<e.length;n++)e[n]=Math.floor(Math.random()*256);e[6]=e[6]&15|64,e[8]=e[8]&63|128;let r=Array.from(e,n=>n.toString(16).padStart(2,"0")).join("");return `${r.slice(0,8)}-${r.slice(8,12)}-${r.slice(12,16)}-${r.slice(16,20)}-${r.slice(20,32)}`}var Ro="mushi_fingerprint_hash";function jl(){let t=typeof navigator<"u"?navigator:void 0,e=typeof screen<"u"?screen:void 0,r=typeof window<"u"?window:void 0;return {userAgent:t?.userAgent??"unknown",platform:t?.platform??"unknown",language:t?.language??"en",timezone:Intl?.DateTimeFormat?.()?.resolvedOptions?.()?.timeZone??"UTC",screenWidth:e?.width??0,screenHeight:e?.height??0,pixelRatio:r?.devicePixelRatio??1,deviceMemory:t?.deviceMemory,hardwareConcurrency:t?.hardwareConcurrency}}async function Wl(t){if(typeof crypto<"u"&&crypto.subtle){let r=new TextEncoder().encode(t),n=await crypto.subtle.digest("SHA-256",r);return Array.from(new Uint8Array(n)).map(i=>i.toString(16).padStart(2,"0")).join("")}let e=0;for(let r=0;r<t.length;r++)e=(e<<5)-e+t.charCodeAt(r),e|=0;return `fbk_${(e>>>0).toString(16).padStart(8,"0")}`}async function zo(){if(typeof localStorage<"u"){let n=localStorage.getItem(Ro);if(n)return n}let t=jl(),e=JSON.stringify(t),r=await Wl(e);if(typeof localStorage<"u")try{localStorage.setItem(Ro,r);}catch{}return r}var ko="mushi_session_id",Lr=null;function bt(){if(Lr)return Lr;if(typeof sessionStorage<"u"){let e=sessionStorage.getItem(ko);if(e)return Lr=e,e}let t=Vl();if(Lr=t,typeof sessionStorage<"u")try{sessionStorage.setItem(ko,t);}catch{}return t}function Vl(){return `ms_${Date.now().toString(36)}_${Kl()}`}function Kl(){let t=typeof crypto<"u"?crypto:void 0,e=new Uint8Array(4);if(t?.getRandomValues)t.getRandomValues(e);else for(let n=0;n<e.length;n++)e[n]=Math.floor(Math.random()*256);let r=0;for(let n of e)r=r*256+n>>>0;return r.toString(36).padStart(6,"0").slice(0,6)}var zl=/HeadlessChrome|PhantomJS|Lighthouse|\bbot\b|bot[/-]|crawler|spider/i;function Go(t){return "mushi_events_consent_"+t}var xn=new Set;function Gl(){if(typeof navigator>"u")return false;let t=navigator;if(t.globalPrivacyControl===true)return true;let e=typeof window<"u"?window.doNotTrack:void 0,r=t.doNotTrack??t.msDoNotTrack??e;return r==="1"||r==="yes"}function Yl(){return typeof navigator>"u"?false:navigator.webdriver===true?true:zl.test(navigator.userAgent??"")}function Yo(t){return t?.enabled===false?"disabled":t?.respectDoNotTrack!==false&&Gl()?"dnt":t?.excludeBots!==false&&Yl()?"automation":null}function Xl(t){if(!t)return null;try{let e=localStorage.getItem(Go(t));return e==="granted"||e==="denied"?e:null}catch{return null}}function Jl(t,e){if(t)try{localStorage.setItem(Go(t),e);}catch{}}function Xo(t,e){let r=Xl(t);return e?.consent==="required"?r??"pending":r==="denied"?"denied":"granted"}function Ql(t,e){Jl(t,e);for(let r of [...xn])try{r(e);}catch{}}function Jo(t){return xn.add(t),()=>{xn.delete(t);}}var Zl=6e4,Xt=null,Qo,On=null,Zo=null,Hn=0,Pr=null,Jt=false,Qt=false,Rn=false,kn=null;function ec(){return new Date().toISOString()}function mt(){return typeof window>"u"?"":window.location.pathname}function tc(){if(typeof document>"u"||!document.referrer)return null;try{return new URL(document.referrer).origin}catch{return null}}function rc(){return typeof navigator>"u"?null:navigator.userAgent??null}function Zt(t,e){return {kind:t,session_id:bt(),ts:ec(),page_view_count:Hn,reporter_token_hash:Zo,user_id_hash:On,user_agent:rc(),sdk_version:Qo,...e}}function er(t){!Xt||!Qt||Xt.postSessionEvent(t).catch(()=>{});}function _n(t){Qt&&(Hn+=1,er(Zt("page_view",{route:t})));}function _o(){Qt||!Jt||(Qt=true,Rn||(Rn=true,Hn=1,er(Zt("session_start",{route:mt(),referrer:tc()}))),Pr=setInterval(()=>{er(Zt("session_heartbeat",{route:mt()}));},Zl));}function es(){Qt=false,Pr!=null&&(clearInterval(Pr),Pr=null);}function ts(t){if(Jt||typeof window>"u"||Yo(t.analytics)!==null)return;Jt=true,Xt=t.client,Qo=t.sdkVersion,Zo=t.reporterToken??t.reporterTokenHash??null,On=t.userIdHash??null;let e=()=>{typeof document<"u"&&document.visibilityState==="hidden"&&er(Zt("session_end",{route:mt()}));};typeof document<"u"&&document.addEventListener("visibilitychange",e,{passive:true}),window.addEventListener("pagehide",()=>{er(Zt("session_end",{route:mt()}));},{passive:true}),kn=Jo(r=>{r==="granted"?_o():es();}),Xo(t.projectId??"",t.analytics)==="granted"&&_o();}function Bn(t){!Jt||!Xt||_n(mt());}function rs(t){On=t;}function ns(){es(),kn?.(),kn=null,Jt=false,Rn=false,Xt=null;}var ic=/^[a-z][a-z0-9_]{1,63}$/,pt={maxKeys:40,maxKeyLength:64,maxValueLength:256,maxBytes:8192,maxClientBatch:20,maxServerBatch:50,maxEventNamesPerProject:200},oc="$",sc=/(email|phone|password|passwd|token|secret|ssn|address|credit|card|iban)/i;function uc(t){return typeof t=="string"&&ic.test(t)}function To(t,e={}){let r={},n=[];if(!t||typeof t!="object"||Array.isArray(t))return {properties:r,dropped:n};let i=new Set(e.allowlist??[]),o=0;for(let[a,s]of Object.entries(t)){if(o>=pt.maxKeys){n.push(a);continue}let u=a.slice(0,pt.maxKeyLength);if(u.startsWith(oc)&&!e.allowReserved){n.push(u);continue}if(sc.test(u)&&!i.has(u)){n.push(u);continue}let d;if(s===null||typeof s=="boolean")d=s;else if(typeof s=="number")d=Number.isFinite(s)?s:null;else if(typeof s=="string"){let p=s.slice(0,pt.maxValueLength);d=e.scrub?e.scrub(p):p;}else if(s instanceof Date)d=s.toISOString();else {n.push(u);continue}r[u]=d,o+=1;}return {properties:r,dropped:n}}function lc(t){try{return JSON.stringify(t).length<=pt.maxBytes}catch{return false}}var Or=null,tr="",ht=null,Fr=null,Fn=null,is,et=Nn(),Cn,Tn,De=[],kt=[],ye="granted",rr=true,Dr=null,gt=false,wn=false,ft=false,An=null,cc=50,os=200,dc=1440*60*1e3;function Nn(){return {sampleRate:1,autoPageviews:false,flushIntervalMs:5e3,surface:"web",propertyAllowlist:[]}}function ss(){return new Date().toISOString()}function Hr(){return "mushi_events_spill_"+tr}function pc(t){return t===void 0||t===429||t>=500}function In(){return "mushi_analytics_id_"+tr}function hc(){try{let t=localStorage.getItem(In());if(t)return t}catch{}return typeof crypto<"u"&&typeof crypto.randomUUID=="function"?crypto.randomUUID():"a-"+Math.random().toString(36).slice(2)+Date.now().toString(36)}function fc(){if(ht)try{localStorage.getItem(In())!==ht&&localStorage.setItem(In(),ht);}catch{}}function mc(t){let e=2166136261;for(let r=0;r<t.length;r+=1)e^=t.charCodeAt(r),e=Math.imul(e,16777619)>>>0;return (e>>>0)/4294967296}function Mn(){try{let t=localStorage.getItem(Hr());if(!t)return [];let e=JSON.parse(t);return !e||Date.now()-e.at>dc?(localStorage.removeItem(Hr()),[]):Array.isArray(e.events)?e.events.slice(0,os):[]}catch{return []}}function _t(t){try{if(t.length===0){localStorage.removeItem(Hr());return}localStorage.setItem(Hr(),JSON.stringify({at:Date.now(),events:t.slice(-os)}));}catch{}}function as(){let t=Mn();return t.length>0&&_t([]),t}function gc(t){return {anon_id:ht,user_id:Fr,user_traits:Fn,session_id:Tn?Tn():null,sdk_version:is,surface:et.surface,events:t}}async function tt(){if(!Or||wn||ye!=="granted"||De.length===0&&!ft)return;wn=true,fc();let t=De.splice(0,pt.maxServerBatch);ft&&(t.unshift({name:"identify",ts:ss(),properties:{}}),ft=false);try{let e=await Or.postProductEvents(gc(t));e.ok?_t([]):pc(e.error?.status)&&_t([...Mn(),...t.filter(r=>r.name!=="identify")]);}catch{_t([...Mn(),...t.filter(e=>e.name!=="identify")]);}finally{wn=false;}De.length>=pt.maxClientBatch&&tt();}function bc(t){return ye==="denied"?false:ye==="pending"?kt.length>=cc?false:(kt.push(t),true):(De.push(t),De.length>=pt.maxClientBatch&&tt(),true)}function Ec(t){if(t==="denied"){ye="denied",De=[],kt=[],ft=false,_t([]);return}let e=ye==="pending";ye="granted",e&&(De.push(...as(),...kt),kt=[]),(De.length>0||ft)&&tt();}function yc(t){let e={};for(let[r,n]of Object.entries(t))n!==void 0&&(e[r]=n);return e}function us(){return !gt||ye==="denied"?null:ht}function ls(t){if(gt||typeof window>"u")return;let e=t.config??{};if(et={...Nn(),...yc(e),propertyAllowlist:e.propertyAllowlist??[]},tr=t.projectId,Yo(e)!==null)return;gt=true,Or=t.client,ht=t.anonId??hc(),Fr=t.userId??null,is=t.sdkVersion,Cn=t.scrub,Tn=t.getSessionId;let r=Math.min(1,Math.max(0,et.sampleRate));if(rr=r>=1?true:r<=0?false:mc(ht??"anon")<r,!rr)return;ye=Xo(tr,e),ye==="granted"?De.push(...as()):ye==="denied"&&_t([]),An=Jo(Ec);let n=Math.max(1e3,et.flushIntervalMs);Dr=setInterval(()=>{tt();},n);let i=()=>{typeof document<"u"&&document.visibilityState==="hidden"&&tt();};typeof document<"u"&&document.addEventListener("visibilitychange",i,{passive:true}),window.addEventListener("pagehide",()=>{tt();},{passive:true}),et.autoPageviews&&vc();}function Ct(t,e,r){if(!gt||!rr||!uc(t))return false;let{properties:n}=To(e,{allowlist:et.propertyAllowlist,scrub:Cn}),i=n;if(r?.reserved){let{properties:o}=To(r.reserved,{allowReserved:true,scrub:Cn});i={...n,...o};}return i.$surface=et.surface,typeof location<"u"&&i.$route===void 0&&(i.$route=location.pathname),lc(i)?bc({name:t,ts:r?.ts??ss(),properties:i,...r?.dedupKey?{dedup_key:r.dedupKey}:{}}):false}function cs(t){gt||(ye=t),Ql(tr,t);}function ds(t,e){Fr=t,Fn=e??null,!(!gt||!rr||!t||ye==="denied")&&(ft=true,ye==="granted"&&tt());}function ps(){return tt()}function hs(){Dr!=null&&(clearInterval(Dr),Dr=null),An?.(),An=null,gt=false,Or=null,De=[],kt=[],ye="granted",rr=true,ft=false,Fr=null,Fn=null,et=Nn();}var Ao=false;function vc(){if(Ao||typeof history>"u")return;Ao=true;let t=history.pushState;history.pushState=function(...e){let r=t.apply(this,e);return Ct("page_view"),r},window.addEventListener("popstate",()=>{Ct("page_view");},{passive:true});}var wc=10,Sc=1,xc=5e3;function fs(t={}){let{maxBurst:e=wc,refillRate:r=Sc,refillIntervalMs:n=xc}=t,i=e,o=Date.now();function a(){let p=Date.now(),h=p-o,k=Math.floor(h/n);k>0&&(i=Math.min(e,i+k*r),o=p);}function s(){return a(),i>0?(i--,true):false}function u(){i=e,o=Date.now();}function d(){return a(),i}return {tryConsume:s,reset:u,availableTokens:d}}var Rc={patterns:[{id:"ssn",configKey:"ssns",source:"\\b\\d{3}-\\d{2}-\\d{4}\\b",replacement:"[REDACTED_SSN]"},{id:"creditCard",configKey:"creditCards",source:"\\b(?:\\d[ -]*){12,18}\\d\\b",replacement:"[REDACTED_CC]"},{id:"awsAccessKey",configKey:"secretTokens",source:"\\b(?:AKIA|ASIA)[0-9A-Z]{16}\\b",replacement:"[REDACTED_AWS_KEY]"},{id:"awsSecretKey",configKey:"secretTokens",source:`(?:aws_secret_access_key|secret_access_key)["'\\s:=]+[A-Za-z0-9/+=]{40}\\b`,caseInsensitive:true,replacement:"aws_secret_access_key=[REDACTED_AWS_SECRET]"},{id:"stripeSecretKey",configKey:"secretTokens",source:"\\b(?:sk|rk)_(?:live|test)_[A-Za-z0-9]{24,}\\b",replacement:"[REDACTED_STRIPE_KEY]"},{id:"stripePublishableKey",configKey:"secretTokens",source:"\\bpk_(?:live|test)_[A-Za-z0-9]{24,}\\b",replacement:"[REDACTED_STRIPE_PK]"},{id:"slackToken",configKey:"secretTokens",source:"\\bxox[abpor]-[A-Za-z0-9-]{10,}\\b",replacement:"[REDACTED_SLACK_TOKEN]"},{id:"githubPatClassic",configKey:"secretTokens",source:"\\bghp_[A-Za-z0-9]{36}\\b",replacement:"[REDACTED_GITHUB_PAT]"},{id:"githubPatFineGrained",configKey:"secretTokens",source:"\\bgithub_pat_[A-Za-z0-9_]{80,}\\b",replacement:"[REDACTED_GITHUB_PAT]"},{id:"openaiKey",configKey:"secretTokens",source:"\\bsk-(?:proj-)?[A-Za-z0-9_-]{20,}\\b",replacement:"[REDACTED_OPENAI_KEY]"},{id:"anthropicKey",configKey:"secretTokens",source:"\\bsk-ant-[A-Za-z0-9_-]{20,}\\b",replacement:"[REDACTED_ANTHROPIC_KEY]"},{id:"googleKey",configKey:"secretTokens",source:"\\bAIza[0-9A-Za-z_-]{35}\\b",replacement:"[REDACTED_GOOGLE_KEY]"},{id:"jwt",configKey:"secretTokens",source:"\\beyJ[A-Za-z0-9_-]+\\.[A-Za-z0-9_-]+\\.[A-Za-z0-9_-]+\\b",replacement:"[REDACTED_JWT]"},{id:"email",configKey:"emails",source:"\\b[A-Za-z0-9._%+\\-]+@[A-Za-z0-9.\\-]+\\.[A-Za-z]{2,}\\b",replacement:"[REDACTED_EMAIL]"},{id:"phone",configKey:"phones",source:"(?:\\+\\d{1,3}[\\s.-])?\\(?\\d{2,4}\\)?[\\s.-]\\d{3,4}[\\s.-]\\d{3,4}\\b",replacement:"[REDACTED_PHONE]"},{id:"ipv4",configKey:"ipAddresses",source:"\\b(?:\\d{1,3}\\.){3}\\d{1,3}\\b",replacement:"[REDACTED_IP]",defaultOn:false},{id:"ipv6",configKey:"ipv6",source:"\\b(?:[A-Fa-f0-9]{1,4}:){2,7}[A-Fa-f0-9]{0,4}\\b",replacement:"[REDACTED_IPV6]",defaultOn:false}]},ms=Rc.patterns,kc=ms.map(t=>({key:t.configKey,regex:new RegExp(t.source,t.caseInsensitive?"gi":"g"),replacement:t.replacement})),_c=ms.reduce((t,e)=>(t[e.configKey]=e.defaultOn!==false,t),{});function Un(t={}){let e={..._c,...t},r=kc.filter(o=>e[o.key]);function n(o){if(!o)return o;let a=o;for(let{regex:s,replacement:u}of r)a=a.replace(new RegExp(s.source,s.flags),u);return a}function i(o,a){let s={...o};for(let u of a)typeof s[u]=="string"&&(s[u]=n(s[u]));return s}return {scrub:n,scrubObject:i}}var Cc=/token|jwt|passw|pwd|secret|api[-_]?key|apikey|auth|session|signature|email|phone|ssn/i,Tc=/^(?:key|code|sig)$/i;function Ac(t){let e=t;try{e=decodeURIComponent(t);}catch{}return Cc.test(e)||Tc.test(e)}function Ic(t,e){return t.split("&").map(r=>{let n=r.indexOf("=");if(n===-1)return r;let i=r.slice(0,n),o=r.slice(n+1);if(o.length===0)return r;if(Ac(i))return `${i}=[Scrubbed]`;let a=o;try{a=decodeURIComponent(o);}catch{}let s=e(a);return s!==a?`${i}=${encodeURIComponent(s)}`:r}).join("&")}function sr(t,e){if(!t||!t.includes("?")&&!t.includes("#"))return t;let{scrub:r}=Un(e),n=o=>{let a=o.indexOf("?");return a===-1?o:o.slice(0,a+1)+Ic(o.slice(a+1),r)},i=t.indexOf("#");return i===-1?n(t):n(t.slice(0,i))+n(t.slice(i))}var Mc=50,Lc=500;function gs(t={}){let e=Math.max(1,t.max??Mc),r=Math.max(50,t.maxMessageLength??Lc),n=[];return {add(i){let o=typeof i.timestamp=="number"?i.timestamp:Date.now(),a=typeof i.message=="string"&&i.message.length>r?`${i.message.slice(0,r)}\u2026`:i.message,s={timestamp:o,category:i.category,level:i.level??"info",message:a??"",...i.data?{data:i.data}:{}};for(n.push(s);n.length>e;)n.shift();},getAll(){return n.slice()},clear(){n=[];},size(){return n.length}}}var Io=8*1024,Pc=1e3;function bs(t){if(t instanceof Error){let e=t.name||"Error",r=t.message||String(t),n=typeof t.stack=="string"&&t.stack.length>0?t.stack.slice(0,Io):void 0,i=t.cause;return {name:e,message:r,...n?{stack:n}:{},...i!==void 0?{cause:i instanceof Error?i.message:i}:{}}}if(typeof t=="string")return {name:"Error",message:t};if(t&&typeof t=="object"){let e=t,r=typeof e.name=="string"?e.name:"Error",n=typeof e.message=="string"?e.message:(()=>{try{return JSON.stringify(e).slice(0,Pc)}catch{return String(e)}})(),i=typeof e.stack=="string"?e.stack.slice(0,Io):void 0;return {name:r,message:n,...i?{stack:i}:{}}}return t===void 0?{name:"Error",message:"unknown"}:{name:"Error",message:String(t)}}var de={paper:"#F8F4ED",paperRaised:"#FFFFFF",ink:"#0E0D0B",inkMuted:"#5C5852",inkFaint:"#9A9489",inkDim:"#6E6760",rule:"rgba(14,13,11,0.10)",ruleStrong:"rgba(14,13,11,0.16)",accent:"#E03C2C",accentWash:"rgba(224,60,44,0.08)",accentInk:"#7A1F15",ok:"#2D7A55",danger:"#B83232"},Dc={paper:"#0F0E0C",paperRaised:"#1A1815",ink:"#F2EBDD",inkMuted:"#928B7E",inkFaint:"#5A5650",inkDim:"#7A7268",rule:"rgba(242,235,221,0.10)",ruleStrong:"rgba(242,235,221,0.18)",accent:"#FF5A47",accentWash:"rgba(255,90,71,0.12)",accentInk:"#FFE5E0",ok:"#3A9E6E",danger:"#E05555"},qn={free:de.inkMuted,explorer:"#2563EB",contributor:"#7C3AED",champion:"#D97706",default:de.accent},Nr={bg:"#0FFF50",fg:"#0a1a0a",border:"#00C43A"},Es="#FAF7F0",ys="#ffffff";var jn={light:"#9A2A1E",dark:"#7A1F15"},Wn={light:"#B52F1F",dark:"#C4321E"},vs={light:{sent:{fg:"#1E4A8C",bg:"rgba(30,74,140,0.08)",border:"rgba(30,74,140,0.16)"},review:{fg:"#8A5A00",bg:"rgba(180,120,0,0.10)",border:"rgba(180,120,0,0.18)"},fixing:{fg:"#9A3D12",bg:"rgba(224,60,44,0.10)",border:"rgba(224,60,44,0.18)"},fixed:{fg:"#1F6B3A",bg:"rgba(31,107,58,0.10)",border:"rgba(31,107,58,0.18)"}},dark:{sent:{fg:"#A8C4FF",bg:"rgba(120,160,255,0.12)",border:"rgba(120,160,255,0.22)"},review:{fg:"#FFD27A",bg:"rgba(255,190,90,0.12)",border:"rgba(255,190,90,0.22)"},fixing:{fg:"#FFB899",bg:"rgba(255,120,60,0.12)",border:"rgba(255,120,60,0.24)"},fixed:{fg:"#8FE3B0",bg:"rgba(80,200,130,0.12)",border:"rgba(80,200,130,0.22)"}}};function Vn(t){return t==="dark"?Dc:de}var ws={comfy:12},Ss={control:4},Ur={fontDisplay:"'Iowan Old Style', 'Palatino Linotype', 'Palatino', 'Book Antiqua', 'Cambria', Georgia, 'Times New Roman', serif",fontBody:"system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI Variable Display', 'Segoe UI', sans-serif",fontMono:"ui-monospace, 'SF Mono', 'JetBrains Mono', Menlo, Consolas, 'Liberation Mono', monospace"},At={base:99999,banner:99998,panel:1e5,overlay:2147483647},qr={easeStamp:"cubic-bezier(0.22, 1, 0.36, 1)",durationFast:200},xs={instant:120,panel:300};var It={bannerHeight:36,fabSize:52,edgeTabWidth:32,gutter:24,panelWidth:360,panelMaxHeight:480,panelSheetBreakpoint:480};function Mo(t){return /^#[0-9a-fA-F]{3,8}$/.test(t)?t:""}function Rs(t,e="",r=""){let n=Vn(t),i=Mo(e),o=Mo(r),a=i||n.accent,s=i?t==="dark"?`${a}1F`:`${a}14`:n.accentWash,u=o||n.accentInk;return {accent:a,accentWash:s,accentInk:u}}function $c(t){let e=t.length%4===0?"":"=".repeat(4-t.length%4),r=t.replace(/-/g,"+").replace(/_/g,"/")+e;if(typeof atob=="function")return atob(r);let n=globalThis.Buffer;return n?n.from(r,"base64").toString("binary"):""}function ks(t){if(typeof t!="string")return null;let e=t.split(".");if(e.length!==3)return null;try{let r=$c(e[1]),n=JSON.parse(r),i=typeof n.projectId=="string"?n.projectId:void 0,o=typeof n.sub=="string"?n.sub:void 0;return !i||!o?null:{projectId:i,sub:o,...typeof n.email=="string"?{email:n.email}:{},...typeof n.name=="string"?{name:n.name}:{},...typeof n.iat=="number"?{iat:n.iat}:{},...typeof n.exp=="number"?{exp:n.exp}:{}}}catch{return null}}var Oc=new Set(["kensaur.us","www.kensaur.us"]),Hc={"glot-it":"glot.it",glotit:"glot.it","solo-boss-cloud":"solo-boss.kensaur.us","mushi-mushi":"kensaur.us","how-to-talk-to-girls":"talk.kensaur.us",htttg:"talk.kensaur.us",tsumagoi:"tsumagoi.kensaur.us"},Bc={"mushi-mushi":"https://kensaur.us/mushi-mushi/admin/favicon.svg","solo-boss-cloud":"https://solo-boss.kensaur.us/favicon.svg","glot-it":"https://kensaur.us/glot-it/apple-touch-icon.png",glotit:"https://kensaur.us/glot-it/apple-touch-icon.png","the-wanting-mind":"https://kensaur.us/the-wanting-mind/pwa-512x512.png","how-to-talk-to-girls":"https://talk.kensaur.us/pwa-192.png",htttg:"https://talk.kensaur.us/pwa-192.png",tsumagoi:"https://tsumagoi.kensaur.us/apple-touch-icon.png","help-her-take-photo":"https://kensaur.us/help-her-take-photo/assets/apple-touch-icon.png","yen-yen":"https://kensaur.us/yen-yen/icon.svg"},Fc=["www.google.com","icons.duckduckgo.com","icon.horse"];function _s(t){try{let e=new URL(t).hostname.toLowerCase();return Fc.some(r=>e===r||e.endsWith(`.${r}`))}catch{return false}}function Nc(t,e=32){return [`https://${t}/favicon.svg`,`https://${t}/favicon.ico`,`https://${t}/favicon-32x32.png`,`https://${t}/apple-touch-icon.png`]}function Cs(t){let e=[],r=i=>{let o=i?.trim().toLowerCase();!o||e.includes(o)||e.push(o);};r(qc(t.repo_url)),r(Hc[t.project_slug.toLowerCase()]);let n=t.sdk_origin?Uc(t.sdk_origin):null;return n&&!Oc.has(n)&&r(n),e}function Ts(t,e=32){if(t.icon_url?.trim())return [t.icon_url.trim()];let r=new Set,n=[],i=a=>{!a||r.has(a)||_s(a)||(r.add(a),n.push(a));},o=Bc[t.project_slug.toLowerCase()];o&&i(o);for(let a of Cs(t))for(let s of Nc(a,e))i(s);return n}function Uc(t){let e=t.trim();if(!e||/^(capacitor|file|content|app):/i.test(e))return null;try{let n=new URL(e.includes("://")?e:`https://${e}`).hostname.toLowerCase();return n==="localhost"||n==="127.0.0.1"||n.endsWith(".local")?null:n}catch{return null}}function qc(t){if(!t?.trim())return null;try{let e=new URL(t.trim()),r=e.hostname.toLowerCase(),n=e.pathname.replace(/^\/+|\/+$/g,"").split("/").filter(Boolean);if(n.length<2)return null;let i=n[1].replace(/\.git$/i,"").toLowerCase();return /^[a-z0-9][a-z0-9.-]*\.[a-z]{2,}$/i.test(i)||r==="github.com"&&i.endsWith(".github.io")?i:r!=="github.com"&&r!=="www.github.com"?r:null}catch{return null}}function As(t){return Cs(t)[0]??null}function Is(t){if(typeof document>"u"||!t.complete||t.naturalWidth===0||t.naturalHeight===0)return false;try{let e=document.createElement("canvas"),r=t.naturalWidth,n=t.naturalHeight;e.width=r,e.height=n;let i=e.getContext("2d");if(!i)return !1;i.drawImage(t,0,0);let{data:o}=i.getImageData(0,0,r,n),a=0,s=0,u=0;for(let p=0;p<o.length;p+=4){let h=o[p],k=o[p+1],S=o[p+2];if(o[p+3]<128)continue;a++;let E=Math.max(h,k,S),w=Math.min(h,k,S),L=E-w;u=Math.max(u,L),s+=L;}return a===0?!0:s/a<14&&u<24}catch{return _s(t.src)}}function Ms(t){let e=t.trim().split(/[\s._-]+/).filter(Boolean);return e.length>=2?`${e[0][0]??""}${e[1][0]??""}`.toUpperCase():(t.replace(/[^a-zA-Z0-9]/g,"").slice(0,2)||t.slice(0,2)||"?").toUpperCase()}function Ls(){if(typeof document>"u")return null;let t=['link[rel="icon"]','link[rel="shortcut icon"]','link[rel="apple-touch-icon"]'];for(let e of t){let n=document.querySelector(e)?.href;if(n&&jc(n))return n}return null}function jc(t){try{let e=typeof location<"u"?location.href:void 0,r=new URL(t,e).protocol;return r==="http:"||r==="https:"}catch{return false}}async function Ds(t,e=Lo){if(!t.startsWith("data:image/")||Ps(t)<=e)return t;if(typeof document>"u")return null;let r=new Image;await new Promise((o,a)=>{r.onload=()=>o(),r.onerror=()=>a(new Error("screenshot_decode_failed")),r.src=t;});let n=[.65,.5,.35,.25],i=[1,.85,.7,.55,.4];for(let o of i){let a=document.createElement("canvas"),s=Math.max(1,Math.round(r.naturalWidth*o)),u=Math.max(1,Math.round(r.naturalHeight*o));a.width=s,a.height=u;let d=a.getContext("2d");if(d){d.drawImage(r,0,0,s,u);for(let p of n){let h=a.toDataURL("image/jpeg",p);if(Ps(h)<=e)return h}}}return null}function Ps(t){let e=t.indexOf(",");if(e<0)return t.length;let r=t.slice(e+1);return Math.ceil(r.length*3/4)}var jr="mushi-assistant-session-v1";function $s(){try{if(typeof sessionStorage>"u")return null;let t=sessionStorage.getItem(jr);if(!t)return null;let e=JSON.parse(t);if(!e||typeof e!="object")return null;let r=e,n=Array.isArray(r.turns)?r.turns:null;if(!n)return null;let i=[];for(let a of n){if(!a||typeof a!="object")continue;let s=a;if(s.role!=="user"&&s.role!=="assistant"||typeof s.text!="string")continue;let u={role:s.role,text:s.text};if(Array.isArray(s.options)){let d=s.options.filter(p=>typeof p=="string");d.length&&(u.options=d);}s.offerReport===!0&&(u.offerReport=!0),i.push(u);}let o=typeof r.threadId=="string"&&r.threadId.length>0?r.threadId:null;return {turns:i,threadId:o}}catch{return null}}function Os(t){try{if(typeof sessionStorage>"u")return;if(!t.turns.length&&!t.threadId){sessionStorage.removeItem(jr);return}sessionStorage.setItem(jr,JSON.stringify(t));}catch{}}function Hs(){try{if(typeof sessionStorage>"u")return;sessionStorage.removeItem(jr);}catch{}}var Bs="Feature request";function Fs(t){let e=Date.parse(t);if(Number.isNaN(e))return "";let r=Date.now()-e;if(r<0)return "just now";let n=Math.floor(r/1e3);if(n<60)return "just now";let i=Math.floor(n/60);if(i<60)return `${i}m ago`;let o=Math.floor(i/60);if(o<24)return `${o}h ago`;let a=Math.floor(o/24);if(a<7)return `${a}d ago`;let s=Math.floor(a/7);return s<5?`${s}w ago`:new Date(e).toLocaleDateString(void 0,{month:"short",day:"numeric"})}var Wc="https://kensaur.us/mushi-mushi/",Vc="utm_source=widget&utm_medium=powered-by";function Ns(t){let e=`${Wc}?${Vc}`;return t&&/^[0-9a-f]{6,64}$/.test(t)?`${e}&ref=${t}`:e}function Us(t){return (t.metaKey||t.ctrlKey)&&t.key==="Enter"}function qs(t){return /Mac|iPhone|iPad|iPod/i.test(t)?"\u2318":"Ctrl"}function js(){return typeof navigator>"u"?"":navigator.userAgentData?.platform||navigator.platform||navigator.userAgent||""}function Ws(t,e,r){if(t==="banner")return true;if(t==="console-only"||t==="off")return false;if(e)return true;if(!r)return false;let n=r.hostname.replace(/^\[|\]$/g,"");return r.protocol==="file:"||n==="localhost"||n==="127.0.0.1"||n==="::1"||n==="0.0.0.0"||n.endsWith(".localhost")||n.endsWith(".local")}function Mt(t,e){return new Promise((r,n)=>{let i=setTimeout(()=>n(new Error("Timed out")),e);t.then(o=>{clearTimeout(i),r(o);},o=>{clearTimeout(i),n(o);});})}var Lt=15e3,Wr=4e3;function Vs(t,e){let r={month:"short",day:"numeric",hour:"2-digit",minute:"2-digit",timeZoneName:"short"};try{return t.toLocaleString(e,r)}catch{return t.toLocaleString(void 0,r)}}function Et(t){return t.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#39;")}function Ks(t){let e=t.appDomain??As({project_id:t.projectId,project_name:t.appName,project_slug:t.appSlug??""}),r=Et(Ms(t.appName)),n=Ts({project_id:t.projectId,project_name:t.appName,project_slug:t.appSlug??"",sdk_origin:t.appDomain?`https://${t.appDomain}`:null});return n.length?`<span class="mushi-app-icon" data-mushi-favicon data-candidates="${Et(JSON.stringify(n))}" data-initials="${r}" aria-hidden="true" title="${Et(e??t.appName)}">
3
+ <img class="mushi-app-icon-img" src="${Et(n[0])}" alt="" referrerpolicy="no-referrer" width="16" height="16" />
1782
4
  <span class="mushi-app-icon-initials" hidden>${r}</span>
1783
- </span>`:`<span class="mushi-app-icon mushi-app-icon-initials-only" aria-hidden="true">${r}</span>`}function ki(t){t.querySelectorAll("[data-mushi-favicon]").forEach(e=>{let r=e.querySelector(".mushi-app-icon-img"),n=e.querySelector(".mushi-app-icon-initials");if(!r||!n)return;let s=[];try{s=JSON.parse(e.dataset.candidates??"[]");}catch{s=[];}let o=0,a=()=>{o+=1,o<s.length?r.src=s[o]:(r.remove(),n.hidden=false,e.classList.add("mushi-app-icon-initials-only"));};r.onerror=a,r.onload=()=>{ai(r)&&a();};});}function Ci(t){switch(t.step){case "category":return zc(t);case "intent":return tu(t);case "details":return ru(t);case "success":return nu(t);case "reports":return Xc(t);case "report-detail":return eu(t);case "leaderboard":return Jc(t);case "roadmap":return Yc(t);case "account":return Qc(t);case "cross-app-reports":return Zc(t);case "assistant":return qc(t)}}function qc(t){let e=t.locale,r=t.callbacks.assistantLabel||e.assistant.defaultLabel,n=t.callbacks.assistantGreeting||e.assistant.defaultGreeting,s=t.callbacks.assistantSuggestions??[],o=t.assistantTurns.length===0,a=o?`<div class="mushi-assistant-greeting">${m(n)}</div>
1784
- ${s.length?`<div class="mushi-assistant-suggestions">${s.map(f=>`<button type="button" class="mushi-assistant-chip" data-action="assistant-suggest" data-value="${m(f)}">${m(f)}</button>`).join("")}</div>`:""}`:t.assistantTurns.map(f=>{let p=f.role==="user"?"mushi-assistant-msg-user":"mushi-assistant-msg-bot",y=f.options&&f.options.length?`<div class="mushi-assistant-suggestions">${f.options.map(S=>`<button type="button" class="mushi-assistant-chip" data-action="assistant-suggest" data-value="${m(S)}">${m(S)}</button>`).join("")}</div>`:"",u=f.offerReport?`<div class="mushi-assistant-recovery">
1785
- <button type="button" class="mushi-assistant-report-cta" data-action="assistant-report">${m(e.assistant.fileReportCta)}</button>
1786
- </div>`:"";return `<div class="mushi-assistant-msg ${p}">${m(f.text)}</div>${y}${u}`}).join(""),i=t.assistantSending?`<div class="mushi-assistant-msg mushi-assistant-msg-bot mushi-assistant-thinking" role="status" aria-live="polite">${m(e.assistant.thinking)}</div>`:"",l=t.assistantError?`<div class="mushi-assistant-error" role="alert">${m(t.assistantError)}
1787
- <button type="button" class="mushi-assistant-report-cta" data-action="assistant-report">${m(e.assistant.fileReportCta)}</button>
1788
- </div>`:"",h=!o&&!t.assistantSending&&!t.assistantError?`<div class="mushi-assistant-recovery mushi-assistant-recovery-footer">
1789
- <button type="button" class="mushi-assistant-report-link" data-action="assistant-report">${m(e.assistant.stillStuckCta)}</button>
1790
- </div>`:"";return `
1791
- ${Ee(t,{title:r,showBack:true})}
1792
- <div class="mushi-assistant">
1793
- <div class="mushi-assistant-log">
1794
- ${a}
1795
- ${i}
1796
- ${l}
1797
- ${h}
1798
- </div>
1799
- <form class="mushi-assistant-form" data-action="assistant-send">
1800
- <textarea
1801
- class="mushi-assistant-input"
1802
- rows="1"
1803
- placeholder="${m(e.assistant.inputPlaceholder)}"
1804
- ${t.assistantSending?"disabled":""}
1805
- ></textarea>
1806
- <button type="submit" class="mushi-assistant-submit" ${t.assistantSending?"disabled":""} aria-label="${m(e.assistant.sendAriaLabel)}">\u2191</button>
1807
- </form>
1808
- </div>
1809
- `}function Ti(t){if(!t.sdkFreshness||t.config.outdatedBanner==="off"||t.config.outdatedBanner==="console-only")return "";let{latest:e,current:r,deprecated:n,message:s}=t.sdkFreshness;return !e&&!n?"":`
1810
- <div class="mushi-outdated" role="status">
1811
- <strong>Mushi SDK ${m(r)}</strong>
1812
- ${e?`latest is ${m(e)}.`:"needs attention."}
1813
- ${s?`<span>${m(s)}</span>`:""}
1814
- </div>
1815
- `}function Ii(t){if(t.config.brandFooter!==true)return "";let e=xi(t.brandRef);return `<div class="mushi-brand-footer"><a class="mushi-brand-link" href="${m(e)}" target="_blank" rel="noopener noreferrer" data-action="brand-footer">${m(t.locale.flows.poweredBy)}<span aria-hidden="true"> \u2197</span></a></div>`}function Ee(t,e){let r=t.locale,{title:n,showBack:s=false,step:o,eyebrow:a}=e,i=s?`<button type="button" class="mushi-back" data-action="back" aria-label="${m(r.widget.back)}">\u2190 ${m(r.widget.back)}</button>`:`<span class="mushi-header-eyebrow">${m(a??"Mushi \xB7 Report")}</span>`,l=o?`<span class="mushi-step-counter" aria-label="Step ${o} of ${Fn}"><b>${Un(o)}</b> / ${Un(Fn)}</span>`:"";return `
1816
- <div class="mushi-header">
1817
- <div class="mushi-header-mark" aria-hidden="true">${t.pageFaviconHref?`<img class="mushi-header-host-icon" src="${m(t.pageFaviconHref)}" alt="" referrerpolicy="no-referrer" width="20" height="20" />`:"\u866B"}</div>
1818
- <div class="mushi-header-titles">
1819
- ${i}
1820
- <h3>${n}</h3>
1821
- </div>
1822
- <div class="mushi-header-meta">
1823
- ${l}
1824
- <button type="button" class="mushi-close" data-action="close" aria-label="${m(r.widget.close)}">\u2715</button>
1825
- </div>
1826
- </div>
1827
- `}function jc(t){let e=1;return t.callbacks.onFeatureBoardRequest&&(e+=1),t.callbacks.assistantEnabled&&(e+=1),t.rewardsState&&(e+=1),e+=1,e}function Wc(t){let e=t.locale,r=e.step1.moreNav,n=jc(t),s=`${e.step1.moreNavLabel} (${n})`,o=t.unreadCount(),a=o?`${r.yourReports} (${o} ${r.unreadNew})`:r.yourReports,i=[`<button type="button" class="mushi-option-btn mushi-reports-entry" data-action="reports">
1828
- <span class="mushi-option-icon" aria-hidden="true">\u{1F4EC}</span>
1829
- <div class="mushi-option-text">
1830
- <span class="mushi-option-label">${m(a)}</span>
1831
- <span class="mushi-option-desc">${m(r.yourReportsDesc)}</span>
1832
- </div>
1833
- <span class="mushi-option-arrow" aria-hidden="true">\u2192</span>
1834
- </button>`];t.callbacks.onFeatureBoardRequest&&i.push(`
1835
- <button type="button" class="mushi-option-btn" data-action="roadmap">
1836
- <span class="mushi-option-icon" aria-hidden="true">\u{1F5F3}\uFE0F</span>
1837
- <div class="mushi-option-text">
1838
- <span class="mushi-option-label">${m(r.communityIdeas)}</span>
1839
- <span class="mushi-option-desc">${m(r.communityIdeasDesc)}</span>
1840
- </div>
1841
- <span class="mushi-option-arrow" aria-hidden="true">\u2192</span>
1842
- </button>`),t.callbacks.assistantEnabled&&i.push(`
1843
- <button type="button" class="mushi-option-btn" data-action="assistant">
1844
- <span class="mushi-option-icon" aria-hidden="true">\u{1F4AC}</span>
1845
- <div class="mushi-option-text">
1846
- <span class="mushi-option-label">${m(t.callbacks.assistantLabel||e.assistant.defaultLabel)}</span>
1847
- <span class="mushi-option-desc">${m(e.assistant.hubDescription)}</span>
1848
- </div>
1849
- <span class="mushi-option-arrow" aria-hidden="true">\u2192</span>
1850
- </button>`),t.rewardsState&&i.push(`
1851
- <button type="button" class="mushi-link-btn mushi-more-nav-link" data-action="open-leaderboard">\u{1F3C6} ${m(r.leaderboard)}</button>`),i.push(`
1852
- <button type="button" class="mushi-link-btn mushi-more-nav-link" data-action="open-account">
1853
- ${t.testerInfo?`\u{1F464} ${m(t.testerInfo.public_handle??t.testerInfo.display_name??r.myAccount)}`:`\u{1F310} ${m(r.joinCommunity)}`}
1854
- </button>`);let l=t.showMoreNav?`<div class="mushi-more-nav-panel">${i.join("")}</div>`:"";return `
1855
- <div class="mushi-more-nav">
1856
- <button
1857
- type="button"
1858
- class="mushi-more-toggle mushi-more-nav-toggle"
1859
- data-action="toggle-more-nav"
1860
- aria-expanded="${t.showMoreNav?"true":"false"}"
1861
- >
1862
- <span class="mushi-more-toggle-text">${m(s)}</span>
1863
- <span class="mushi-more-toggle-arrow" aria-hidden="true">${t.showMoreNav?"\u25BE":"\u25B8"}</span>
1864
- </button>
1865
- ${l}
1866
- </div>
1867
- `}function zc(t){let e=t.locale,r=t.config.categories&&t.config.categories.length>0?t.config.categories.map(y=>({id:y.id,icon:y.icon??"\u{1F4AC}",label:y.label,desc:y.description??""})):["bug","slow","visual","confusing","other"].map(y=>({id:y,icon:Dr[y],label:e.step1.categories[y],desc:e.step1.categoryDescriptions[y]})),n=({id:y,icon:u,label:S,desc:w})=>`
1868
- <button type="button" class="mushi-option-btn" data-category="${m(y)}" role="radio" aria-checked="false">
1869
- <span class="mushi-option-icon" aria-hidden="true">${m(u)}</span>
1870
- <div class="mushi-option-text">
1871
- <span class="mushi-option-label">${m(S)}</span>
1872
- ${w?`<span class="mushi-option-desc">${m(w)}</span>`:""}
1873
- </div>
1874
- <span class="mushi-option-arrow" aria-hidden="true">\u2192</span>
1875
- </button>
1876
- `,s=t.config.categories&&t.config.categories.length>0,o=1,a=s?r:r.slice(0,o),i=s?[]:r.slice(o),l=i.length>0,h=a.map(n).join(""),f=i.map(n).join(""),p=l?t.showAllCategories?`<div class="mushi-categories-expanded">${f}</div>`:`<button type="button" class="mushi-more-toggle" data-action="show-all-categories">
1877
- <span class="mushi-more-toggle-text">${m(e.step1.moreCategoriesLabel)}</span>
1878
- <span class="mushi-more-toggle-count">${m(e.step1.moreCategoriesCount.replace("{n}",String(i.length)))}</span>
1879
- <span class="mushi-more-toggle-arrow" aria-hidden="true">\u2192</span>
1880
- </button>`:"";return `
1881
- ${Ee(t,{title:e.step1.heading,step:Nr.category})}
1882
- ${t.config.betaMode?.enabled?Gc(t):""}
1883
- <div class="mushi-body" role="radiogroup" aria-label="${m(e.step1.heading)}">
1884
- <p class="mushi-section-label">${m(e.step1.reportSectionLabel)}</p>
1885
- ${Kc(t)}
1886
- ${h}
1887
- ${p}
1888
- ${t.rewardsState?iu(t):""}
1889
- ${Wc(t)}
1890
- </div>
1891
- `}function Kc(t){if(!(t.config.featureRequestCard!==false))return "";let r=t.locale.flows.featureRequest,n=t.config.featureRequestLabel||r.label,s=t.config.featureRequestDescription||r.description;return `
1892
- <button
1893
- type="button"
1894
- class="mushi-option-btn mushi-feature-entry"
1895
- data-action="feature-request"
1896
- aria-label="${m(n)}"
1897
- >
1898
- <span class="mushi-option-icon" aria-hidden="true">\u2728</span>
1899
- <div class="mushi-option-text">
1900
- <span class="mushi-option-label">${m(n)}</span>
1901
- <span class="mushi-option-desc">${m(s)}</span>
1902
- </div>
1903
- <span class="mushi-option-arrow" aria-hidden="true">\u2192</span>
1904
- </button>
1905
- `}function Vc(t){let e=t.config.betaMode?.changelogItems;if(!e?.length)return "";let r=e[0],n=r.items.map(a=>`<li>\u2022 ${m(a)}</li>`).join(""),s=m(t.locale.flows.changelog.whatsNew.replace("{version}",r.version));return `
1906
- <details class="mushi-changelog">
1907
- <summary class="mushi-changelog-summary">${r.date?`${s} \xB7 ${m(r.date)}`:s}</summary>
1908
- <ul class="mushi-changelog-list">${n}</ul>
1909
- </details>
1910
- `}function Gc(t){let e=t.config.betaMode,r=t.locale.flows.betaStrip,n=m(e.appName??"This app"),s=e.message?m(e.message):m(r.defaultMessage).replace("{appName}",n),o=e.contactEmail?m(e.contactEmail):null,a=e.perks??[];return `
1911
- <div class="mushi-beta-strip" role="note" aria-label="${m(r.ariaLabel)}">
1912
- <div class="mushi-beta-strip-row">
1913
- <span class="mushi-beta-tag" aria-hidden="true">BETA</span>
1914
- <span class="mushi-beta-msg">${s}</span>
1915
- </div>
1916
- ${o?`<div class="mushi-beta-contact-hint">${m(r.contactHint).replace("{email}",o)}</div>`:""}
1917
- ${a.length>0?`
1918
- <ul class="mushi-beta-perks" aria-label="Beta tester perks">
1919
- ${a.map(i=>`<li>\u2713 ${m(i)}</li>`).join("")}
1920
- </ul>
1921
- `:""}
1922
- ${Vc(t)}
1923
- </div>
1924
- `}function Xc(t){let e=t.locale.flows,r=t.reporterReports.map(s=>{let o=s.summary??s.description??`Report ${s.id.slice(0,8)}`,a=Or(s.status),i=Br(s.created_at),l=s.unread_count&&s.unread_count>0?`<span class="mushi-unread-badge" aria-label="${s.unread_count} unread">${s.unread_count}</span>`:"";return `
1925
- <button type="button" class="mushi-report-row" data-report-id="${m(s.id)}" aria-label="View report: ${m(o)}">
1926
- <div class="mushi-report-main">
1927
- <span class="mushi-report-title">${m(o)}</span>
1928
- <span class="mushi-report-meta">
1929
- <span class="mushi-report-status mushi-status-${a}">${m(Nn(s.status))}</span>
1930
- ${i?`<span class="mushi-report-when">${m(i)}</span>`:""}
1931
- ${l}
1932
- </span>
1933
- </div>
1934
- <span class="mushi-report-chevron" aria-hidden="true">\u203A</span>
1935
- </button>`}).join(""),n=t.rewardsState?`<button type="button" class="mushi-leaderboard-link" data-action="open-leaderboard">\u{1F3C6} ${m(e.reports.leaderboardLink)}</button>`:"";return `
1936
- ${Ee(t,{title:e.reports.title,showBack:true,eyebrow:e.eyebrows.inbox})}
1937
- <div class="mushi-body">
1938
- ${t.reporterLoading?`<p class="mushi-muted">${m(e.reports.loading)}</p>`:""}
1939
- ${t.reporterError?`<p class="mushi-error-inline">${m(t.reporterError)}</p>`:""}
1940
- ${r||(t.reporterLoading?"":`<p class="mushi-muted">${m(e.reports.empty)}</p>`)}
1941
- ${n}
1942
- </div>
1943
- `}function Yc(t){let e=t.locale.flows,r=t.featureBoard.map(n=>{let s=String(n.id??""),o=m(String(n.subject??e.roadmap.untitled)),a=Number(n.vote_count??0),i=!!n.shipped_at,l=!!n.my_vote,h=i?e.roadmap.shipped:String(n.status_label??n.status??"open"),f=e.roadmap.voteCount.replace("{n}",String(a));return `
1944
- <div class="mushi-report-row mushi-roadmap-row">
1945
- <div class="mushi-report-main">
1946
- <span class="mushi-report-title">${o}</span>
1947
- <span class="mushi-report-meta">
1948
- <span class="mushi-report-status">${m(h)}</span>
1949
- <span class="mushi-report-when">${m(f)}</span>
1950
- </span>
1951
- </div>
1952
- ${t.callbacks.onFeatureBoardVote?`
1953
- <button type="button" class="mushi-vote-btn" data-vote-id="${m(s)}" aria-pressed="${l}">
1954
- ${l?m(e.roadmap.voted):m(e.roadmap.vote)}
1955
- </button>`:""}
1956
- </div>`}).join("");return `
1957
- ${Ee(t,{title:e.roadmap.title,showBack:true,eyebrow:e.eyebrows.roadmap})}
1958
- <div class="mushi-body">
1959
- ${t.reporterLoading?`<p class="mushi-muted">${m(e.roadmap.loading)}</p>`:""}
1960
- ${t.reporterError?`<p class="mushi-error-inline">${m(t.reporterError)}</p>`:""}
1961
- ${r||(t.reporterLoading?"":`<p class="mushi-muted">${m(e.roadmap.empty)}</p>`)}
1962
- </div>
1963
- `}function Jc(t){let e=t.locale.flows,r=t.globalLeaderboard!==null||t.globalLeaderboardLoading,n=r?t.globalLeaderboard??[]:(t.leaderboardEntries??[]).map(l=>({tester_id:"",public_handle:null,display_name:l.display_name,rank:0,points_30d:l.points_30d,total_points:l.total_points})),s=r?t.globalLeaderboardLoading:t.leaderboardLoading,o=t.testerReputation?.rank??null,a=n.map((l,h)=>{let f=l.rank||h+1,p=t.testerReputation&&l.tester_id===t.testerReputation.tester_id;return `
1964
- <div class="mushi-lb-row ${f===1?"mushi-lb-top":""}${p?" mushi-lb-me":""}">
1965
- <span class="mushi-lb-rank">#${f}</span>
1966
- <span class="mushi-lb-name">${m(l.public_handle??l.display_name??e.leaderboard.anon)}</span>
1967
- <span class="mushi-lb-pts">${(l.points_30d??l.total_points).toLocaleString()} pts</span>
1968
- </div>
1969
- `}).join(""),i=o?`<div class="mushi-lb-myrank">${m(e.leaderboard.myRank.replace("{rank}",String(o)))}</div>`:t.testerJwt?"":`<button type="button" class="mushi-link-btn" data-action="open-account">${m(e.leaderboard.signInPrompt)}</button>`;return `
1970
- ${Ee(t,{title:e.leaderboard.title,showBack:true,eyebrow:e.eyebrows.community})}
1971
- <div class="mushi-body">
1972
- ${s?`<p class="mushi-muted">${m(e.leaderboard.loading)}</p>`:""}
1973
- ${!s&&!n.length?`<p class="mushi-muted">${m(e.leaderboard.empty)}</p>`:""}
1974
- <div class="mushi-lb-list">${a}</div>
1975
- ${i}
1976
- <p class="mushi-lb-note">${m(e.leaderboard.footer)}</p>
1977
- </div>
1978
- `}function Qc(t){let e=t.locale.flows,r=t.testerInfo;if(r){let n=r.public_handle??r.display_name??e.leaderboard.anon,s=t.testerReputation,o=s?e.account.rankSummary.replace("{rank}",String(s.rank??"\u2014")).replace("{points}",(s.points_30d??0).toLocaleString()):"";return `
1979
- ${Ee(t,{title:e.account.title,showBack:true,eyebrow:e.eyebrows.identity})}
1980
- <div class="mushi-body">
1981
- <div class="mushi-account-card">
1982
- <div class="mushi-account-avatar">${m(n.charAt(0).toUpperCase())}</div>
1983
- <div class="mushi-account-info">
1984
- <strong>${m(n)}</strong>
1985
- ${s?`<span class="mushi-account-rank">${m(o)}</span>`:""}
1986
- </div>
1987
- </div>
1988
- <button type="button" class="mushi-nav-item" data-action="open-cross-app-reports">
1989
- ${m(e.account.crossAppReports)}
1990
- </button>
1991
- <button type="button" class="mushi-nav-item" data-action="open-global-leaderboard">
1992
- ${m(e.account.viewLeaderboard)}
1993
- </button>
1994
- <button type="button" class="mushi-link-btn" data-action="sign-out-tester">${m(e.account.signOut)}</button>
1995
- </div>
1996
- `}return t.magicLinkSent?`
1997
- ${Ee(t,{title:e.account.checkEmailTitle,showBack:true,eyebrow:e.eyebrows.signIn})}
1998
- <div class="mushi-body">
1999
- <p class="mushi-muted">${m(e.account.magicLinkSent.replace("{email}",t.magicLinkEmail))}</p>
2000
- <button type="button" class="mushi-link-btn" data-action="resend-magic-link">${m(e.account.resendEmail)}</button>
2001
- ${t.magicLinkError?`<p class="mushi-error">${m(t.magicLinkError)}</p>`:""}
2002
- </div>
2003
- `:`
2004
- ${Ee(t,{title:e.account.joinTitle,showBack:true,eyebrow:e.eyebrows.signIn})}
2005
- <div class="mushi-body">
2006
- <p class="mushi-muted">${m(e.account.signInPrompt)}</p>
2007
- <label class="mushi-label" for="mushi-email-input">${m(e.account.emailLabel)}</label>
2008
- <input
2009
- id="mushi-email-input"
2010
- type="email"
2011
- class="mushi-textarea"
2012
- data-role="magic-link-email"
2013
- placeholder="${m(e.account.emailPlaceholder)}"
2014
- autocomplete="email"
2015
- value="${m(t.magicLinkEmail)}"
2016
- style="padding: 10px 12px; height: auto; resize: none;"
2017
- />
2018
- ${t.magicLinkError?`<p class="mushi-error">${m(t.magicLinkError)}</p>`:""}
2019
- <button type="button" class="mushi-submit" data-action="send-magic-link"${t.magicLinkSending?' disabled aria-disabled="true"':""}>
2020
- <span>${t.magicLinkSending?m(e.account.sending):m(e.account.sendLink)}</span><span class="mushi-submit-arrow" aria-hidden="true">\u2192</span>
2021
- </button>
2022
- </div>
2023
- `}function Zc(t){let e=t.locale.flows,r=t.crossAppReports??[],n=new Map;for(let o of r){let a=o.project_id??"unknown";n.has(a)||n.set(a,{name:o.app_name??e.crossApp.unknownApp,slug:o.app_slug??null,domain:o.app_domain??null,reports:[]}),n.get(a).reports.push(o);}let s=[...n.entries()].map(([o,a])=>`
2024
- <div class="mushi-xapp-group">
2025
- <div class="mushi-xapp-app-head">
2026
- ${Ei({appName:a.name,appSlug:a.slug,appDomain:a.domain})}
2027
- <h4 class="mushi-xapp-app-name">${m(a.name)}</h4>
2028
- </div>
2029
- ${a.reports.map(l=>{let h=Or(l.status);return `
2030
- <div class="mushi-report-row" data-report-id="${m(l.id)}" tabindex="0" role="button">
2031
- <span class="mushi-report-status mushi-status-${h}">${m(Nn(l.status))}</span>
2032
- <span class="mushi-report-title">${m(l.title??l.category)}</span>
2033
- <span class="mushi-report-when">${m(Br(l.created_at))}</span>
2034
- </div>
2035
- `}).join("")}
2036
- </div>
2037
- `).join("");return `
2038
- ${Ee(t,{title:e.crossApp.title,showBack:true,eyebrow:e.eyebrows.allApps})}
2039
- <div class="mushi-body">
2040
- ${t.crossAppLoading?`<p class="mushi-muted">${m(e.crossApp.loading)}</p>`:""}
2041
- ${!t.crossAppLoading&&!r.length?`<p class="mushi-muted">${m(e.crossApp.empty)}</p>`:""}
2042
- ${s}
2043
- </div>
2044
- `}function eu(t){let e=t.locale.flows,r=t.reporterReports.find(i=>i.id===t.selectedReportId),n=r?.status??"unknown",s=Or(n),o=r?.created_at?Br(r.created_at):"",a=t.reporterComments.map(i=>`
2045
- <div class="mushi-thread-comment ${i.author_kind}">
2046
- <strong>${m(i.author_kind==="reporter"?"You":i.author_name??"Developer")}</strong>
2047
- <p>${m(i.body)}</p>
2048
- </div>
2049
- `).join("");return `
2050
- ${Ee(t,{title:e.thread.title,showBack:true,eyebrow:e.eyebrows.thread})}
2051
- <div class="mushi-body">
2052
- <div class="mushi-thread-summary">
2053
- <div class="mushi-thread-summary-meta">
2054
- <span class="mushi-report-status mushi-status-${s}">${m(wi(n))}</span>
2055
- ${o?`<span class="mushi-report-when">Reported ${m(o)}</span>`:""}
2056
- </div>
2057
- <p>${m(r?.summary??r?.description??"Report details")}</p>
2058
- </div>
2059
- <div class="mushi-thread">
2060
- ${t.reporterLoading?`<p class="mushi-muted">${m(e.thread.loading)}</p>`:a||`<p class="mushi-muted">${m(e.thread.empty)}</p>`}
2061
- </div>
2062
- ${["fixed","resolved","verified"].includes(n)?`
2063
- <div class="mushi-verify-actions" role="group" aria-label="Fix verification">
2064
- <button type="button" class="mushi-option-btn" data-action="reporter-confirms">${m(e.thread.confirmFixed)}</button>
2065
- <button type="button" class="mushi-option-btn" data-action="reporter-not-fixed">${m(e.thread.notFixed)}</button>
2066
- </div>
2067
- `:""}
2068
- <textarea class="mushi-textarea" data-role="reporter-reply" rows="3" placeholder="Reply to the developer\u2026"></textarea>
2069
- <button type="button" class="mushi-submit" data-action="reporter-reply">
2070
- <span>Reply</span><span class="mushi-submit-arrow" aria-hidden="true">\u2192</span>
2071
- </button>
2072
- </div>
2073
- `}function tu(t){let e=t.locale,r=t.selectedCategory,o=(t.resolveCustomCategory(r)?.intents??(e.step2.intents[r]||[])).map(l=>`
2074
- <button type="button" class="mushi-option-btn" data-intent="${m(l)}">
2075
- <span class="mushi-option-text"><span class="mushi-option-label">${m(l)}</span></span>
2076
- <span class="mushi-option-arrow" aria-hidden="true">\u2192</span>
2077
- </button>
2078
- `).join(""),a=t.categoryIcon(r),i=t.categoryLabel(r);return `
2079
- ${Ee(t,{title:e.step2.heading,showBack:true,step:Nr.intent})}
2080
- <div class="mushi-body">
2081
- <div class="mushi-selected-category">
2082
- <span aria-hidden="true">${m(a)}</span>
2083
- <span>${m(i)}</span>
2084
- </div>
2085
- <div class="mushi-intents">
2086
- ${o}
2087
- </div>
2088
- </div>
2089
- `}function ru(t){let e=t.locale,r=t.effectiveMinLength(),n=t.screenshotCapturing?e.step3.screenshotCapturing:t.screenshotError?e.step3.screenshotFailed:t.screenshotAttached?e.step3.screenshotAttached:e.step3.screenshotButton,s=["mushi-attach-btn",t.screenshotAttached?"active":"",t.screenshotError?"error":"",t.screenshotCapturing?"loading":""].filter(Boolean).join(" "),o=t.elementCapturing?e.step3.elementCapturing:t.elementError?e.step3.elementFailed:t.elementSelected?e.step3.elementSelected:e.step3.elementButton,a=["mushi-attach-btn",t.elementSelected?"active":"",t.elementError?"error":"",t.elementCapturing?"loading":""].filter(Boolean).join(" "),i=e.step3.examplePrompts.map(l=>`<button type="button" class="mushi-example-chip" data-example="${m(l)}">${m(l)}</button>`).join("");return `
2090
- ${Ee(t,{title:e.step3.heading,showBack:true,step:Nr.details})}
2091
- <div class="mushi-body">
2092
- <div class="mushi-example-chips" aria-label="Example prompts">${i}</div>
2093
- <div class="mushi-textarea-wrap">
2094
- <textarea
2095
- class="mushi-textarea"
2096
- placeholder="${m(e.step3.descriptionPlaceholder)}"
2097
- rows="4"
2098
- maxlength="4000"
2099
- aria-label="${m(e.step3.heading)}"
2100
- autofocus
2101
- ></textarea>
2102
- <div class="mushi-char-counter" data-role="char-counter" aria-hidden="true">
2103
- <span data-role="char-current">0</span>/<span data-role="char-min">${r}</span>
2104
- </div>
2105
- </div>
2106
- <div class="mushi-attachments">
2107
- ${t.screenshotAvailable?`<button type="button" class="${s}"
2108
- data-action="screenshot"
2109
- ${t.screenshotCapturing?"disabled":""}
2110
- aria-label="${m(n)}"
2111
- >
2112
- ${t.screenshotCapturing?'<span class="mushi-spinner" aria-hidden="true"></span>':"\u{1F4F8}"}
2113
- ${m(n)}
2114
- </button>`:""}
2115
- ${t.screenshotAttached&&t.allowScreenshotRemove?'<button type="button" class="mushi-attach-btn danger" data-action="remove-screenshot" aria-label="Remove screenshot">\u2715 Remove</button>':""}
2116
- ${t.screenshotAttached?'<button type="button" class="mushi-attach-btn" data-action="annotate-screenshot" aria-label="Mark up screenshot">\u270F Mark up</button><div class="mushi-annotate-host" data-role="annotate-host"></div>':""}
2117
- ${t.elementAvailable?`<button type="button" class="${a}"
2118
- data-action="element"
2119
- ${t.elementCapturing?"disabled":""}
2120
- aria-label="${m(o)}"
2121
- >
2122
- ${t.elementCapturing?'<span class="mushi-spinner" aria-hidden="true"></span>':"\u{1F3AF}"}
2123
- ${m(o)}
2124
- </button>`:""}
2125
- </div>
2126
- ${t.screenshotAttached&&t.screenshotPreview?`<figure class="mushi-screenshot-preview">
2127
- <img src="${m(t.screenshotPreview)}" alt="${m(e.step3.screenshotPreviewAlt)}" />
2128
- ${t.screenshotHint?`<figcaption class="mushi-screenshot-hint">\u26A0 ${m(t.screenshotHint)}</figcaption>`:""}
2129
- </figure>`:""}
2130
- <div class="mushi-error" style="display:none" role="alert"></div>
2131
- ${t.identifiedUser?`<p class="mushi-identified-user" aria-label="Reporting as ${m(t.identifiedUser.name??t.identifiedUser.email??"")}">\u{1F464} Reporting as <strong>${m(t.identifiedUser.name??t.identifiedUser.email??"you")}</strong></p>`:""}
2132
- </div>
2133
- <div class="mushi-footer">
2134
- <span class="mushi-footer-hint" aria-hidden="true">\u2318 + ENTER \u2192 send</span>
2135
- <button type="button" class="mushi-submit" data-action="submit"${t.submitting?" disabled":""}>
2136
- <span>${t.submitting?e.widget.submitting:e.widget.submit}</span>
2137
- <span class="mushi-submit-arrow" aria-hidden="true">\u2192</span>
2138
- </button>
2139
- </div>
2140
- `}function nu(t){let e=t.locale,n=(t.submittedAt??new Date).toLocaleTimeString(void 0,{hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:false});return `
2141
- ${Ee(t,{title:e.widget.title,showBack:true,eyebrow:"Mushi \xB7 Receipt"})}
2142
- <div class="mushi-body">
2143
- <div class="mushi-success">
2144
- <div class="mushi-success-stamp" aria-hidden="true">
2145
- <svg viewBox="0 0 100 100" preserveAspectRatio="xMidYMid meet"><circle cx="50" cy="50" r="44"/></svg>
2146
- <span class="mushi-success-stamp-label">\u53D7</span>
2147
- </div>
2148
- <div class="mushi-success-headline">${e.widget.submitted}</div>
2149
- <div class="mushi-success-meta">REPORT \xB7 ${n}</div>
2150
- ${su(t)}
2151
- ${t.rewardsState?au(t):""}
2152
- ${t.config.betaMode?.enabled?ou(t):""}
2153
- <button type="button" class="mushi-link-btn mushi-success-my-reports" data-action="view-my-reports">
2154
- ${m(t.locale.flows.success.trackReport)}
2155
- </button>
2156
- </div>
2157
- </div>
2158
- `}function su(t){let e=t.locale.flows.success,r=t.lastSubmitFailureKind;if(r==="rate_limited"||r==="quota"||r==="permanent"||r==="retrying"||t.lastSubmitQueuedOffline){let i=r==="rate_limited"?e.rateLimited:r==="quota"?e.quotaBlocked:r==="permanent"?e.permanentFailed:r==="retrying"?e.retrying:e.queuedOffline,l=r==="rate_limited"?e.rateLimitedHint:r==="quota"?e.quotaBlockedHint:r==="permanent"?e.permanentFailedHint:r==="retrying"?e.retryingHint:e.queuedHint;return `
2159
- <div class="mushi-success-receipt" role="status">
2160
- <div class="mushi-success-receipt-row mushi-success-receipt-warn">
2161
- <span class="mushi-success-receipt-label">${m(i)}</span>
2162
- <span class="mushi-success-receipt-hint">${m(l)}</span>
2163
- </div>
2164
- </div>
2165
- `}if(!t.lastReportId)return `
2166
- <div class="mushi-success-receipt" role="status">
2167
- <div class="mushi-success-receipt-row">
2168
- <span class="mushi-success-receipt-spinner" aria-hidden="true"></span>
2169
- <span class="mushi-success-receipt-hint">${m(e.delivering)}</span>
2170
- </div>
2171
- ${Ri(t)}
2172
- </div>
2173
- `;let n=`#${t.lastReportId.slice(0,8)}`,s=(t.config.dashboardUrl??"").replace(/\/$/,""),o=s?`${s}/reports/${encodeURIComponent(t.lastReportId)}`:"",a=t.lastSubmitScreenshotDropped?`
2174
- <div class="mushi-success-receipt-row mushi-success-receipt-warn">
2175
- <span class="mushi-success-receipt-hint">${m(e.screenshotDropped)}</span>
2176
- </div>
2177
- `:"";return `
2178
- <div class="mushi-success-receipt" role="status">
2179
- <div class="mushi-success-receipt-row">
2180
- <span class="mushi-success-receipt-label">${m(e.receipt)}</span>
2181
- <button
2182
- type="button"
2183
- class="mushi-success-receipt-id"
2184
- data-action="copy-report-id"
2185
- data-copy-id="${m(t.lastReportId)}"
2186
- title="Copy report id ${m(t.lastReportId)}"
2187
- aria-label="Copy report id ${m(t.lastReportId)}"
2188
- >${m(n)}<span class="mushi-success-receipt-copy" aria-hidden="true">\u2398</span></button>
2189
- </div>
2190
- ${o?`
2191
- <a
2192
- class="mushi-success-receipt-track"
2193
- href="${m(o)}"
2194
- target="_blank"
2195
- rel="noopener noreferrer"
2196
- >${m(e.trackOnMushi)} <span aria-hidden="true">\u2197</span></a>
2197
- `:""}
2198
- ${a}
2199
- ${Ri(t)}
2200
- </div>
2201
- `}function Ri(t){let e=(t.config.responseSlaLabel??"").trim();return e?`<div class="mushi-success-sla">${m(e)}</div>`:`<div class="mushi-success-sla mushi-success-sla-default">${m(t.locale.flows.success.slaDefault)}</div>`}function ou(t){let e=t.config.betaMode,r=e.contactEmail?m(e.contactEmail):null,n=m(e.appName??"the team");return `
2202
- <div class="mushi-beta-success-footer" role="note" aria-label="Beta feedback acknowledgement">
2203
- ${r?`<div class="mushi-beta-success-line">\u{1F4EC} Sent to ${r}</div>`:`<div class="mushi-beta-success-line">\u{1F4EC} Sent to ${n}</div>`}
2204
- </div>
2205
- `}function iu(t){let{tier:e,nextTier:r,totalPoints:n,pointsForReport:s}=t.rewardsState,o=e?.displayName??"Free",a=e?.slug??"free",i=t.tierColor(a),l=100,h="";if(r){let f=e?.pointsThreshold??0,p=r.pointsThreshold;l=p>f?Math.round(Math.min(1,(n-f)/(p-f))*100):100,h=`${Math.max(0,p-n).toLocaleString()} pts to ${m(r.displayName)}`;}return `
2206
- <div class="mushi-rewards-nudge" aria-label="Rewards progress">
2207
- <div class="mushi-rewards-row">
2208
- <span class="mushi-tier-pip" style="background:${i}" aria-hidden="true"></span>
2209
- <span class="mushi-rewards-tier-name">${m(o)}</span>
2210
- <span class="mushi-rewards-pts-count">${n.toLocaleString()} pts</span>
2211
- <span class="mushi-rewards-pts-earn">+${s} pts for a report</span>
2212
- </div>
2213
- ${r?`
2214
- <div class="mushi-tier-bar-track" role="progressbar" aria-valuenow="${l}" aria-valuemin="0" aria-valuemax="100" aria-label="Progress to ${m(r.displayName)}">
2215
- <div class="mushi-tier-bar-fill" style="--mushi-tier-pct:${l/100}"></div>
2216
- </div>
2217
- <div class="mushi-rewards-next-label">${h}</div>
2218
- `:""}
2219
- </div>
2220
- `}function au(t){let{tier:e,nextTier:r,totalPoints:n,pointsForReport:s}=t.rewardsState,o=n+s,a=100,i="";if(r){let l=e?.pointsThreshold??0,h=r.pointsThreshold;a=h>l?Math.round(Math.min(1,(o-l)/(h-l))*100):100;let f=Math.max(0,h-o);i=f>0?`${f.toLocaleString()} pts to ${m(r.displayName)}`:`\u{1F389} ${m(r.displayName)} reached!`;}return `
2221
- <div class="mushi-success-rewards">
2222
- <div class="mushi-success-pts-award">+${s} pts</div>
2223
- ${r?`
2224
- <div class="mushi-tier-bar-track success-bar" role="progressbar" aria-valuenow="${a}" aria-valuemin="0" aria-valuemax="100" aria-label="Progress to ${m(r.displayName)}">
2225
- <div class="mushi-tier-bar-fill" style="--mushi-tier-pct:${a/100}"></div>
2226
- </div>
2227
- <div class="mushi-rewards-next-label">${i}</div>
2228
- `:""}
2229
- </div>
2230
- `}function lu(t){let e=t.toLowerCase();return /i('m| am) not sure|i don't know|not sure|cannot help|can't help|unable to|don't have enough|outside (my|of) (scope|knowledge)|file a (bug )?report|報告/.test(e)||/わかりません|分かりません|不明|報告して/.test(t)}var Ur=class t{constructor(e={},r,n=he){this.sdkVersion=n;this.config={position:e.position??"bottom-right",anchor:e.anchor??{},theme:e.theme??"auto",triggerText:e.triggerText||"\u{1F41B}",expandedTitle:e.expandedTitle??"",mode:e.mode??"conversational",locale:e.locale??"auto",zIndex:e.zIndex??99999,trigger:e.trigger??"auto",bannerConfig:e.bannerConfig??{},attachToSelector:e.attachToSelector??"",inset:e.inset??{},respectSafeArea:e.respectSafeArea??true,hideOnSelector:e.hideOnSelector??"",hideOnRoutes:e.hideOnRoutes??[],environments:e.environments??{},smartHide:e.smartHide??false,draggable:e.draggable??false,brandFooter:e.brandFooter??false,outdatedBanner:e.outdatedBanner??"auto",screenshotSensitiveHint:e.screenshotSensitiveHint??true,betaMode:e.betaMode??{},minDescriptionLength:e.minDescriptionLength??20,dashboardUrl:e.dashboardUrl??"",responseSlaLabel:e.responseSlaLabel??"",featureRequestCard:e.featureRequestCard??true,featureRequestLabel:e.featureRequestLabel||"Feature request",featureRequestDescription:e.featureRequestDescription||"Suggest something new \u2014 even rough ideas help us prioritise",avoidSelectors:e.avoidSelectors??[],categories:e.categories??[],accent:e.accent??"",accentText:e.accentText??""},this.callbacks=r,this.locale=On(this.config.locale==="auto"?void 0:this.config.locale);let s=bi();s?.turns.length&&(this.assistantTurns=s.turns,this.assistantThreadId=s.threadId),this.host=document.createElement("div"),this.host.id="mushi-mushi-widget",this.shadow=this.host.attachShadow({mode:"open"});}sdkVersion;host;shadow;colorSchemeMq=null;onColorSchemeChange=null;config;callbacks;locale;isOpen=false;step="category";selectedCategory=null;selectedIntent=null;viaFeatureRequest=false;showAllCategories=false;showMoreNav=false;screenshotAttached=false;screenshotCapturing=false;screenshotError=false;allowScreenshotRemove=true;screenshotAvailable=true;elementAvailable=true;draftDescription="";draftEmail="";draftReply="";draftFocus=null;draftSelStart=0;draftSelEnd=0;screenshotPreview=null;elementSelected=false;elementCapturing=false;elementError=false;submitting=false;selectorHint=null;triggerVisible=true;triggerShrunk=false;triggerHiddenByScroll=false;mountedAt=null;nudgeShown=false;nudgeEl=null;nudgeTimer=null;sdkFreshness=null;brandRef=null;brandImpressionSent=false;reporterReports=[];featureBoard=[];reporterComments=[];selectedReportId=null;reporterLoading=false;reporterError=null;attachedLaunchers=[];smartHideCleanup=null;smartHideTimer=null;submittedAt=null;successTimer=null;autoCloseTimer=null;rewardsState=null;leaderboardEntries=null;leaderboardLoading=false;lastReportId=null;lastSubmitQueuedOffline=false;lastSubmitFailureKind;lastSubmitScreenshotDropped=false;bannerDismissed=false;bannerResizeObserver=null;fabPos=null;vvCleanup=null;identifiedUser=null;testerJwt=null;testerInfo=null;crossAppReports=null;crossAppLoading=false;globalLeaderboard=null;globalLeaderboardLoading=false;testerReputation=null;magicLinkSent=false;magicLinkEmail="";magicLinkError="";magicLinkSending=false;assistantTurns=[];assistantThreadId=null;assistantSending=false;assistantError=null;mount(){this.host.isConnected||(this.syncHostChromeState(),document.body.appendChild(this.host),this.syncAttachedLaunchers(),this.syncSmartHide(),this.bindColorSchemeListener(),this.render(),this.mountedAt=Date.now());}getIsMounted(){return this.host.isConnected}updateConfig(e={}){let r=this.config.trigger,n=JSON.stringify(this.config.bannerConfig??null);this.config={...this.config,...e.position?{position:e.position}:{},...e.anchor!==void 0?{anchor:e.anchor}:{},...e.theme?{theme:e.theme}:{},...e.triggerText!==void 0?{triggerText:e.triggerText||"\u{1F41B}"}:{},...e.expandedTitle!==void 0?{expandedTitle:e.expandedTitle}:{},...e.mode?{mode:e.mode}:{},...e.locale?{locale:e.locale}:{},...e.zIndex!==void 0?{zIndex:e.zIndex}:{},...e.trigger?{trigger:e.trigger}:{},...e.attachToSelector!==void 0?{attachToSelector:e.attachToSelector}:{},...e.inset!==void 0?{inset:e.inset}:{},...e.respectSafeArea!==void 0?{respectSafeArea:e.respectSafeArea}:{},...e.hideOnSelector!==void 0?{hideOnSelector:e.hideOnSelector}:{},...e.hideOnRoutes!==void 0?{hideOnRoutes:e.hideOnRoutes}:{},...e.environments!==void 0?{environments:e.environments}:{},...e.smartHide!==void 0?{smartHide:e.smartHide}:{},...e.draggable!==void 0?{draggable:e.draggable}:{},...e.brandFooter!==void 0?{brandFooter:e.brandFooter}:{},...e.outdatedBanner!==void 0?{outdatedBanner:e.outdatedBanner}:{},...e.screenshotSensitiveHint!==void 0?{screenshotSensitiveHint:e.screenshotSensitiveHint}:{},...e.betaMode!==void 0?{betaMode:e.betaMode}:{},...e.minDescriptionLength!==void 0?{minDescriptionLength:e.minDescriptionLength}:{},...e.dashboardUrl!==void 0?{dashboardUrl:e.dashboardUrl}:{},...e.responseSlaLabel!==void 0?{responseSlaLabel:e.responseSlaLabel}:{},...e.featureRequestCard!==void 0?{featureRequestCard:e.featureRequestCard}:{},...e.featureRequestLabel!==void 0?{featureRequestLabel:e.featureRequestLabel||"Feature request"}:{},...e.featureRequestDescription!==void 0?{featureRequestDescription:e.featureRequestDescription||"Suggest something new \u2014 even rough ideas help us prioritise"}:{},...e.bannerConfig!==void 0?{bannerConfig:e.bannerConfig}:{},...e.categories!==void 0?{categories:e.categories}:{}},this.locale=On(this.config.locale==="auto"?void 0:this.config.locale);let s=this.config.trigger==="banner"&&r!=="banner",o=JSON.stringify(this.config.bannerConfig??null)!==n;(s||o)&&(this.bannerDismissed=false),this.host.isConnected&&this.syncHostChromeState(),this.syncAttachedLaunchers(),this.syncSmartHide(),this.render();}resolveCustomCategory(e){return this.config.categories?.find(r=>r.id===e)}resolveBaseCategory(e){return ["bug","slow","visual","confusing","other"].includes(e)?e:this.resolveCustomCategory(e)?.baseCategory??"other"}categoryIcon(e){let r=this.resolveCustomCategory(e);return r?.icon?r.icon:Dr[e]??"\u{1F4AC}"}categoryLabel(e){let r=this.resolveCustomCategory(e);return r?r.label:this.locale.step1.categories[e]??e}open(e){if(!this.isOpen){if(this.isOpen=true,this.screenshotAttached=false,this.screenshotCapturing=false,this.screenshotError=false,this.screenshotPreview=null,this.elementSelected=false,this.elementCapturing=false,this.elementError=false,this.submitting=false,this.submittedAt=null,this.removeSelectorHint(),this.lastReportId=null,this.lastSubmitQueuedOffline=false,this.lastSubmitFailureKind=void 0,this.lastSubmitScreenshotDropped=false,this.viaFeatureRequest=false,this.clearFormDrafts(),e?.featureRequest)this.selectedCategory="other",this.selectedIntent=Bn,this.viaFeatureRequest=true,this.step="details";else if(e?.category){let r=this.resolveCustomCategory(e.category);["bug","slow","visual","confusing","other"].includes(e.category)||r!==void 0?(this.selectedCategory=e.category,this.selectedIntent=null,this.step=r&&(!r.intents||r.intents.length===0)?"details":"intent"):(this.selectedCategory=null,this.selectedIntent=null,this.step="category");}else this.selectedCategory=null,this.selectedIntent=null,this.step="category";this.render(),this.callbacks.onOpen();}}close(){this.isOpen&&(this.isOpen=false,this.showAllCategories=false,this.showMoreNav=false,this.render(),this.callbacks.onClose());}openAssistantTab(){if(!this.callbacks.assistantEnabled){this.open();return}this.isOpen||(this.isOpen=true,this.callbacks.onOpen()),this.step="assistant",this.assistantError=null,this.render(),setTimeout(()=>{this.shadow.querySelector(".mushi-assistant-input")?.focus();},0);}async sendAssistantMessage(e){let r=e.trim();if(!(!r||this.assistantSending||!this.callbacks.onAssistantAsk)){this.assistantSending=true,this.assistantError=null,this.assistantTurns.push({role:"user",text:r}),this.persistAssistantSession(),this.render();try{let n=await this.callbacks.onAssistantAsk(r,this.assistantThreadId);if(n){if(n.threadId&&(this.assistantThreadId=n.threadId),n.kind==="clarify")this.assistantTurns.push({role:"assistant",text:n.question??"Could you tell me a bit more?",...n.options&&n.options.length?{options:n.options}:{},offerReport:!0});else {let s=n.text??"\u2026",o=lu(s);this.assistantTurns.push({role:"assistant",text:s,...o?{offerReport:!0}:{}});}this.persistAssistantSession();}else this.assistantError=this.locale.assistant.errors.noResponse;}catch{this.assistantError=this.locale.assistant.errors.generic;}finally{this.assistantSending=false,this.render(),setTimeout(()=>{let n=this.shadow.querySelector(".mushi-assistant-log");n&&(n.scrollTop=n.scrollHeight);},0);}}}persistAssistantSession(){yi({turns:this.assistantTurns,threadId:this.assistantThreadId});}clearAssistantTranscript(){this.assistantTurns=[],this.assistantThreadId=null,this.assistantError=null,vi(),this.step==="assistant"&&this.render();}openReportFromAssistant(){this.selectedCategory=null,this.selectedIntent=null,this.viaFeatureRequest=false,this.step="category",this.isOpen||(this.isOpen=true,this.callbacks.onOpen()),this.render();}pulseTrigger(){if(this.isOpen)return;let e=this.shadow.querySelector(".mushi-trigger");e&&(e.classList.add("mushi-trigger-pulse"),window.setTimeout(()=>{e.classList.remove("mushi-trigger-pulse");},2400));}getIsOpen(){return this.isOpen}showTrigger(){this.triggerVisible=true,this.render();}hideTrigger(){this.triggerVisible=false,this.render();}setTrigger(e){this.updateConfig({trigger:e});}attachTo(e,r={}){let s=(typeof e=="string"?Array.from(document.querySelectorAll(e)):[e]).map(o=>{let a=i=>{i.preventDefault(),this.updateConfig(r),this.open();};return o.addEventListener("click",a),()=>o.removeEventListener("click",a)});return ()=>s.forEach(o=>o())}setScreenshotAttached(e){this.screenshotAttached=e,this.screenshotCapturing=false,e&&(this.screenshotError=false),e||(this.screenshotPreview=null),this.isOpen&&this.render();}setScreenshotPreview(e){this.screenshotPreview=e,this.isOpen&&this.render();}resolveScreenshotHint(){let e=this.config.screenshotSensitiveHint;return e===false?null:typeof e=="string"?e.trim()?e:null:this.locale.step3.screenshotSensitiveHint}setAllowScreenshotRemove(e){this.allowScreenshotRemove=e,this.isOpen&&this.render();}setCaptureAvailability(e){let r=e.screenshot??this.screenshotAvailable,n=e.element??this.elementAvailable;r===this.screenshotAvailable&&n===this.elementAvailable||(this.screenshotAvailable=r,this.elementAvailable=n,this.isOpen&&this.render());}setElementSelected(e){this.elementSelected=e,this.elementCapturing=false,e&&(this.elementError=false),this.removeSelectorHint(),this.isOpen&&this.render();}setElementError(e){this.elementError=e,this.elementCapturing=false,this.removeSelectorHint(),this.isOpen&&this.render();}setScreenshotCapturing(e){this.screenshotCapturing=e,this.screenshotError=false,this.isOpen&&this.render();}setScreenshotError(e){this.screenshotError=e,this.screenshotCapturing=false,this.isOpen&&this.render();}setElementCapturing(e){this.elementCapturing=e,e?(this.elementError=false,this.showSelectorHint()):this.removeSelectorHint(),this.isOpen&&this.render();}hidePanel(){let e=this.shadow.querySelector(".mushi-panel");e&&(e.style.display="none");}showPanel(){let e=this.shadow.querySelector(".mushi-panel");e&&(e.style.display="");}showSelectorHint(){this.removeSelectorHint();let e=document.createElement("div");e.id="mushi-selector-hint",e.setAttribute("role","status"),e.setAttribute("aria-live","polite"),e.style.cssText=`
2231
- position: fixed;
2232
- bottom: 24px;
2233
- left: 50%;
2234
- transform: translateX(-50%);
2235
- z-index: 2147483646;
2236
- background: rgba(17,17,17,0.92);
2237
- color: #fff;
2238
- font-family: ui-monospace, SFMono-Regular, monospace;
2239
- font-size: 12px;
2240
- letter-spacing: 0.04em;
2241
- padding: 8px 16px;
2242
- border-radius: 20px;
2243
- pointer-events: none;
2244
- white-space: nowrap;
2245
- backdrop-filter: blur(4px);
2246
- box-shadow: 0 2px 12px rgba(0,0,0,0.35);
2247
- `,e.textContent=this.locale.step3.elementSelectorHint,document.body.appendChild(e),this.selectorHint=e;}removeSelectorHint(){this.selectorHint?.remove(),this.selectorHint=null,document.getElementById("mushi-selector-hint")?.remove();}showNudge(){if(this.nudgeShown||this.nudgeEl)return;this.nudgeShown=true;let r=this.shadow.querySelector(".mushi-trigger")?.getBoundingClientRect(),n=document.createElement("div");n.id="mushi-nudge-bubble",n.setAttribute("role","tooltip");let s=this.config.position.includes("right");n.style.cssText=`
2248
- position: fixed;
2249
- z-index: 2147483645;
2250
- ${r?`bottom: ${window.innerHeight-r.top+8}px; ${s?`right: ${window.innerWidth-r.right}px;`:`left: ${r.left}px;`}`:"bottom: 80px; right: 24px;"}
2251
- background: rgba(17,17,17,0.92);
2252
- color: #fff;
2253
- font-family: ui-sans-serif, system-ui, sans-serif;
2254
- font-size: 12px;
2255
- line-height: 1.4;
2256
- padding: 8px 12px;
2257
- border-radius: 8px;
2258
- max-width: 200px;
2259
- pointer-events: none;
2260
- backdrop-filter: blur(4px);
2261
- box-shadow: 0 2px 12px rgba(0,0,0,0.35);
2262
- animation: mushi-fade-in 0.15s ease forwards;
2263
- `,n.textContent=this.locale.step3.tooShort.startsWith("A bit")?"Found a bug? One sentence is enough \u{1F41B}":"\u30D0\u30B0\u3092\u898B\u3064\u3051\u305F\uFF1F\u4E00\u884C\u3067\u5927\u4E08\u592B\u3067\u3059 \u{1F41B}",document.body.appendChild(n),this.nudgeEl=n,this.nudgeTimer!==null&&clearTimeout(this.nudgeTimer),this.nudgeTimer=setTimeout(()=>this.removeNudge(),5e3);}removeNudge(){this.nudgeTimer!==null&&(clearTimeout(this.nudgeTimer),this.nudgeTimer=null),this.nudgeEl?.remove(),this.nudgeEl=null,document.getElementById("mushi-nudge-bubble")?.remove();}setSdkFreshness(e){this.sdkFreshness=e,this.isOpen&&this.render();}setBrandRef(e){this.brandRef!==e&&(this.brandRef=e,this.isOpen&&this.render());}setRewardsState(e){this.rewardsState=e,this.isOpen&&this.render();}setLeaderboard(e,r=false){this.leaderboardEntries=e,this.leaderboardLoading=r,this.isOpen&&this.step==="leaderboard"&&this.render();}setIdentifiedUser(e){this.identifiedUser=e,this.isOpen&&this.render();}setTesterSession(e,r){this.testerJwt=e,this.testerInfo=r,this.isOpen&&this.render();}setGlobalLeaderboard(e,r=false){this.globalLeaderboard=e,this.globalLeaderboardLoading=r,this.isOpen&&(this.step==="leaderboard"||this.step==="account")&&this.render();}setCrossAppReports(e,r=false){this.crossAppReports=e,this.crossAppLoading=r,this.isOpen&&this.step==="cross-app-reports"&&this.render();}setTesterReputation(e){this.testerReputation=e,this.isOpen&&(this.step==="account"||this.step==="leaderboard")&&this.render();}destroy(){this.successTimer!==null&&(clearTimeout(this.successTimer),this.successTimer=null),this.autoCloseTimer!==null&&(clearTimeout(this.autoCloseTimer),this.autoCloseTimer=null),this.smartHideTimer!==null&&(clearTimeout(this.smartHideTimer),this.smartHideTimer=null),this.unbindColorSchemeListener(),this.smartHideCleanup?.(),this.smartHideCleanup=null,this.teardownViewportHandlers(),this.attachedLaunchers.forEach(e=>e()),this.attachedLaunchers=[],this.removeSelectorHint(),this.removeNudge(),this.removeBodyNudge(),this.host.remove();}bindColorSchemeListener(){if(this.unbindColorSchemeListener(),typeof window>"u"||!window.matchMedia)return;let e=this.config.theme;e!=="auto"&&e!=="inherit"||(this.colorSchemeMq=window.matchMedia("(prefers-color-scheme: dark)"),this.onColorSchemeChange=()=>{this.host.isConnected&&this.render();},typeof this.colorSchemeMq.addEventListener=="function"?this.colorSchemeMq.addEventListener("change",this.onColorSchemeChange):typeof this.colorSchemeMq.addListener=="function"&&this.colorSchemeMq.addListener(this.onColorSchemeChange));}unbindColorSchemeListener(){this.colorSchemeMq&&this.onColorSchemeChange&&(typeof this.colorSchemeMq.removeEventListener=="function"?this.colorSchemeMq.removeEventListener("change",this.onColorSchemeChange):typeof this.colorSchemeMq.removeListener=="function"&&this.colorSchemeMq.removeListener(this.onColorSchemeChange)),this.colorSchemeMq=null,this.onColorSchemeChange=null;}syncHostChromeState(){let e=this.host.style;e.setProperty("position","fixed"),e.setProperty("top","0"),e.setProperty("left","0"),e.setProperty("width","0"),e.setProperty("height","0"),e.setProperty("overflow","visible"),e.setProperty("pointer-events","none"),e.setProperty("z-index",String(this.config.zIndex)),e.setProperty("margin","0"),e.setProperty("padding","0"),e.setProperty("border","none"),e.setProperty("background","none");}isSuppressedByHost(){if(!this.config.hideOnSelector||typeof document>"u")return false;try{return !!document.querySelector(this.config.hideOnSelector)}catch{return false}}getWidgetDiagnostics(){let e=this.host.style,r=e.pointerEvents==="none"&&(e.width==="0"||e.width==="0px")&&(e.height==="0"||e.height==="0px"),n=this.host.isConnected?{width:this.host.offsetWidth,height:this.host.offsetHeight}:null,s=this.isSuppressedByHost()||this.isRouteHidden()||!this.triggerVisible,o=this.config.trigger==="banner"&&!this.bannerDismissed&&!this.isSuppressedByHost()&&!this.isRouteHidden()&&this.triggerVisible;return {widgetHostPointerSafe:r,widgetHostBounds:n,widgetSuppressed:s,bannerRendered:o}}syncAttachedLaunchers(){this.attachedLaunchers.forEach(e=>e()),this.attachedLaunchers=[],!(this.config.trigger!=="attach"||!this.config.attachToSelector)&&(typeof document>"u"||this.attachedLaunchers.push(this.attachTo(this.config.attachToSelector)));}syncSmartHide(){if(this.smartHideCleanup?.(),this.smartHideCleanup=null,this.triggerShrunk=false,this.triggerHiddenByScroll=false,!this.config.smartHide||typeof window>"u")return;let e=this.config.smartHide===true?{onScroll:"shrink",onIdleMs:900}:this.config.smartHide;if(!e.onScroll)return;let r=()=>{e.onScroll==="hide"?this.triggerHiddenByScroll=true:this.triggerShrunk=true,this.render(),this.smartHideTimer!==null&&clearTimeout(this.smartHideTimer),this.smartHideTimer=setTimeout(()=>{this.triggerHiddenByScroll=false,this.triggerShrunk=false,this.render();},e.onIdleMs??900);};window.addEventListener("scroll",r,{passive:true}),this.smartHideCleanup=()=>window.removeEventListener("scroll",r);}shouldRenderTrigger(){if(!this.triggerVisible||this.triggerHiddenByScroll||this.config.trigger==="manual"||this.config.trigger==="hidden"||this.config.trigger==="attach"||this.config.trigger==="banner"||this.isMobileSmartHidden()||this.isRouteHidden()||this.isSuppressedByHost())return false;let e=this.config.environments[this.detectEnvironment()];return e!=="never"&&e!=="manual"}static BANNER_HEIGHT=36;static BODY_NUDGE_PROP="--mushi-banner-offset";applyBodyNudge(e,r=t.BANNER_HEIGHT){let n=`${r}px`;document.documentElement.style.setProperty(t.BODY_NUDGE_PROP,n),e==="top"?document.body.dataset.mushiBannerNudged==="top"?document.body.style.paddingTop=n:document.body.style.paddingTop||(document.body.style.paddingTop=n,document.body.dataset.mushiBannerNudged="top"):document.body.dataset.mushiBannerNudged==="bottom"?document.body.style.paddingBottom=n:document.body.style.paddingBottom||(document.body.style.paddingBottom=n,document.body.dataset.mushiBannerNudged="bottom");}trackBannerHeight(e,r){let n=()=>{let s=e.getBoundingClientRect().height;s>0&&this.applyBodyNudge(r,s);};requestAnimationFrame(n),typeof ResizeObserver<"u"&&(this.bannerResizeObserver=new ResizeObserver(n),this.bannerResizeObserver.observe(e));}removeBodyNudge(){this.bannerResizeObserver?.disconnect(),this.bannerResizeObserver=null,document.documentElement.style.removeProperty(t.BODY_NUDGE_PROP);let e=document.body.dataset.mushiBannerNudged;e==="top"?(document.body.style.paddingTop="",delete document.body.dataset.mushiBannerNudged):e==="bottom"&&(document.body.style.paddingBottom="",delete document.body.dataset.mushiBannerNudged);}renderBanner(){if(this.config.trigger!=="banner")return;if(this.bannerDismissed){this.removeBodyNudge();return}if(!this.triggerVisible){this.removeBodyNudge();return}if(this.isRouteHidden()){this.removeBodyNudge();return}if(this.isSuppressedByHost()){this.removeBodyNudge();return}let e=this.config.bannerConfig??{},r=e.variant??"brand",n=e.position??"top",s=e.message?.trim()??"",o=s.length>0,a=e.bugCta??"\u{1F41B} Report a bug",i=e.featureCta!==false,l=e.featureCtaLabel??"Request feature",h=e.zIndex??(this.config.zIndex??99999)-1,f=document.createElement("div");f.className=`mushi-banner ${r} ${n}${o?" mushi-banner--rich":""}`,f.style.setProperty("--mushi-banner-z",String(h)),f.setAttribute("role","banner");let p=document.createElement("button");if(p.className="mushi-banner-dismiss",p.textContent="\u2715",p.setAttribute("aria-label","Dismiss feedback banner"),p.addEventListener("click",()=>{this.bannerDismissed=true,this.removeBodyNudge(),this.render();}),o){let y=document.createElement("div");y.className="mushi-banner-body";let u=e.label===false?null:e.label??"Beta";if(u){let R=document.createElement("span");R.className="mushi-banner-pill",R.textContent=u,y.appendChild(R);}let S=document.createElement("span");S.className="mushi-banner-message",S.textContent=s,y.appendChild(S),f.appendChild(y);let w=document.createElement("nav");w.className="mushi-banner-actions",w.setAttribute("aria-label","Feedback banner actions");let k=(R=false)=>{let M=document.createElement("span");M.className=`mushi-banner-divider${R?" mushi-banner-extra":""}`,M.setAttribute("aria-hidden","true"),M.textContent="|",w.appendChild(M);},_=(R,M,g=false)=>{let v=document.createElement("button");v.type="button",v.className=`mushi-banner-link${g?" mushi-banner-extra":""}`,v.textContent=R,v.addEventListener("click",M),w.appendChild(v);};_(a,()=>this.open()),i&&(k(true),_(l,()=>this.open({featureRequest:true}),true));for(let R of e.links??[]){let M=R.label?.trim();if(!M)continue;let g=R.href&&(/^https?:\/\//i.test(R.href)||R.href.startsWith("/"))?R.href:void 0;if(k(true),g){let v=document.createElement("a");v.className="mushi-banner-link mushi-banner-extra",v.href=g,v.textContent=M,v.target="_blank",v.rel="noopener noreferrer",w.appendChild(v);}else _(M,()=>{R.featureRequest?this.open({featureRequest:true}):this.open();},true);}k(true),_("\u{1F4EC} My reports",()=>this.openReporter(),true),f.appendChild(w),f.appendChild(p);}else {let y=document.createElement("button");if(y.className="mushi-banner-btn",y.textContent=a,y.addEventListener("click",()=>this.open()),f.appendChild(y),i){let S=document.createElement("button");S.className="mushi-banner-btn",S.textContent=l,S.addEventListener("click",()=>this.open({featureRequest:true})),f.appendChild(S);}let u=document.createElement("button");u.className="mushi-banner-my-reports",u.textContent="\u{1F4EC} My reports",u.setAttribute("aria-label","View my submitted reports"),u.addEventListener("click",()=>this.openReporter()),f.appendChild(u),f.appendChild(p);}this.shadow.appendChild(f),this.applyBodyNudge(n),this.trackBannerHeight(f,n);}effectiveTrigger(){if(!this.config.smartHide||typeof window>"u")return this.config.trigger;let e=this.config.smartHide===true?{onMobile:"edge-tab"}:this.config.smartHide;return window.matchMedia("(max-width: 768px)").matches&&e.onMobile==="edge-tab"?"edge-tab":this.config.trigger}isMobileSmartHidden(){if(!this.config.smartHide||typeof window>"u")return false;let e=this.config.smartHide===true?{onMobile:"edge-tab"}:this.config.smartHide;return window.matchMedia("(max-width: 768px)").matches&&e.onMobile==="hide"}detectEnvironment(){let e=typeof location<"u"?location.hostname:"";return e==="localhost"||e==="127.0.0.1"||e.endsWith(".local")?"development":/\b(staging|stage|preview|dev)\b/i.test(e)?"staging":"production"}isRouteHidden(){return !this.config.hideOnRoutes.length||typeof location>"u"?false:this.config.hideOnRoutes.some(e=>location.pathname.includes(e))}getTheme(){let e=this.config.theme;if(e==="light"||e==="dark")return e;if(e==="inherit"){let r=document.documentElement,n=r.getAttribute("data-color-scheme")||r.getAttribute("data-theme")||r.getAttribute("color-scheme")||"";if(/dark/i.test(n))return "dark";if(/light/i.test(n))return "light";if(r.classList.contains("dark"))return "dark";if(r.classList.contains("light"))return "light";try{let o=getComputedStyle(r).backgroundColor.match(/rgba?\((\d+),\s*(\d+),\s*(\d+)/);if(o)return .299*+o[1]+.587*+o[2]+.114*+o[3]<128?"dark":"light"}catch{}}return typeof window<"u"&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}captureFormDrafts(){let e=this.shadow.querySelector('textarea.mushi-textarea:not([data-role="reporter-reply"])'),r=this.shadow.querySelector('[data-role="magic-link-email"]'),n=this.shadow.querySelector('textarea[data-role="reporter-reply"]');e&&(this.draftDescription=e.value),r&&(this.draftEmail=r.value),n&&(this.draftReply=n.value);let s=this.shadow.activeElement;if(this.draftFocus=s&&s===e?"description":s&&s===r?"email":s&&s===n?"reply":null,this.draftFocus&&s){let o=s;this.draftSelStart=o.selectionStart??o.value.length,this.draftSelEnd=o.selectionEnd??o.value.length;}}restoreFormDrafts(e){let r=[{selector:'textarea.mushi-textarea:not([data-role="reporter-reply"])',value:this.draftDescription,key:"description"},{selector:'[data-role="magic-link-email"]',value:this.draftEmail,key:"email"},{selector:'textarea[data-role="reporter-reply"]',value:this.draftReply,key:"reply"}];for(let n of r){let s=e.querySelector(n.selector);if(s&&(n.value&&s.value!==n.value&&(s.value=n.value,s.dispatchEvent(new Event("input"))),this.draftFocus===n.key)){let o=()=>{s.focus();try{s.setSelectionRange(this.draftSelStart,this.draftSelEnd);}catch{}};typeof requestAnimationFrame=="function"?requestAnimationFrame(o):o();}}}clearFormDrafts(){this.draftDescription="",this.draftEmail="",this.draftReply="",this.draftFocus=null,this.draftSelStart=0,this.draftSelEnd=0;}render(){let e=this.getTheme(),r=this.config.position,n=this.locale;this.isOpen&&this.captureFormDrafts(),this.bannerResizeObserver?.disconnect(),this.bannerResizeObserver=null,this.shadow.innerHTML="";let s=document.createElement("style");if(s.textContent=gi(e,this.config.accent??"",this.config.accentText??""),this.shadow.appendChild(s),this.renderBanner(),this.shouldRenderTrigger()){let a=this.effectiveTrigger(),i=document.createElement("button");if(i.className=`mushi-trigger ${r}${a==="edge-tab"?" edge-tab":""}${this.triggerShrunk?" shrunk":""}`,i.textContent=this.config.triggerText,i.setAttribute("aria-label",n.widget.trigger),i.setAttribute("aria-haspopup","dialog"),i.setAttribute("aria-expanded",String(this.isOpen)),i.style.zIndex=String(this.config.zIndex),this.applyInsetVars(i),i.addEventListener("click",()=>{this.removeNudge(),this.isOpen?this.close():this.open();}),i.addEventListener("mouseenter",()=>{let l=this.mountedAt?Date.now()-this.mountedAt:0;!this.nudgeShown&&!this.isOpen&&l>=3e4&&this.showNudge();}),i.addEventListener("mouseleave",()=>{this.nudgeEl&&(this.nudgeTimer!==null&&clearTimeout(this.nudgeTimer),this.nudgeTimer=setTimeout(()=>this.removeNudge(),2e3));}),i.addEventListener("keydown",l=>{let h=this.config.draggable;if(!h)return;let f=8,p=typeof h=="object"?h.axis??"both":"both",y=0,u=0;if(p!=="y"&&(l.key==="ArrowLeft"?y=-f:l.key==="ArrowRight"&&(y=f)),p!=="x"&&(l.key==="ArrowUp"?u=-f:l.key==="ArrowDown"&&(u=f)),y!==0||u!==0){l.preventDefault();let S=this.fabPos??{x:0,y:0};this.moveFab(i,S.x+y,S.y+u,false);}}),this.config.draggable&&this.attachDragHandlers(i),this.shadow.appendChild(i),this.fabPos&&this.config.draggable){let l=this.fabPos;this.fabPos={x:0,y:0},this.moveFab(i,l.x,l.y,false);}}let o=document.createElement("div");if(o.className=`mushi-panel ${r}${this.isOpen?" open":" closed"}`,o.setAttribute("role","dialog"),o.setAttribute("aria-modal","true"),o.setAttribute("aria-label",n.widget.title),o.style.zIndex=String(this.config.zIndex+1),this.applyInsetVars(o),this.isOpen){let a=this.renderCtx();o.innerHTML=`${Ti(a)}${Ci(a)}${Ii(a)}`,this.shadow.appendChild(o),this.attachHandlers(o),!this.brandImpressionSent&&this.config.brandFooter===true&&(this.brandImpressionSent=true,this.callbacks.onBrandFooterImpression?.()),this.trapFocus(o),this.restoreFormDrafts(o),this.attachViewportHandlers(o);}else this.teardownViewportHandlers();}computeAvoidTopPx(e=8){let r=this.config.avoidSelectors;if(!r?.length)return null;let n=0;for(let s of r)try{let o=document.querySelector(s);if(!o)continue;let a=o.getBoundingClientRect();a.bottom>n&&a.width>0&&a.height>0&&(n=a.bottom);}catch{}return n>0?Math.ceil(n)+e:null}computeAvoidBottomPx(e=8){let r=this.config.avoidSelectors;if(!r?.length)return null;let n=0;for(let s of r)try{let o=document.querySelector(s);if(!o)continue;let a=o.getBoundingClientRect();if(a.width>0&&a.height>0){let i=window.innerHeight-a.top+e;i>n&&(n=i);}}catch{}return n>0?Math.ceil(n):null}applyInsetVars(e){let{anchor:r}=this.config;if(r&&Object.keys(r).length>0)["top","right","bottom","left"].forEach(o=>{let a=r[o];a!==void 0&&e.style.setProperty(`--mushi-${o}`,a);}),e.style.setProperty("--mushi-safe-area",this.config.respectSafeArea?"1":"0");else {let{inset:o}=this.config;this.config.respectSafeArea||["top","right","bottom","left"].forEach(a=>{o[a]===void 0&&e.style.setProperty(`--mushi-${a}`,"24px");}),["top","right","bottom","left"].forEach(a=>{let i=o[a];i!==void 0&&e.style.setProperty(`--mushi-${a}`,i==="auto"?"auto":`${i}px`);}),e.style.setProperty("--mushi-safe-area",this.config.respectSafeArea?"1":"0");}let n=r?.top!==void 0||this.config.position?.startsWith("top"),s=r?.bottom!==void 0||this.config.position?.startsWith("bottom")||!this.config.position;if(n){let o=this.computeAvoidTopPx();o!==null&&e.style.setProperty("--mushi-top",`${o}px`);}if(s){let o=this.computeAvoidBottomPx();o!==null&&e.style.setProperty("--mushi-bottom",`${o}px`);}}fabStorageKey(){let e=this.config.projectId??"";return `mushi_fab_pos${e?`_${e}`:""}`}moveFab(e,r,n,s){let o=(()=>{let Q=this.config.draggable;return Q&&typeof Q=="object"?Q.axis??"both":"both"})(),a=window.innerWidth,i=window.innerHeight,l=e.offsetWidth||52,h=e.offsetHeight||52,f=parseInt(getComputedStyle(document.documentElement).getPropertyValue("--sai-left")||"0")||0,p=parseInt(getComputedStyle(document.documentElement).getPropertyValue("--sai-right")||"0")||0,y=parseInt(getComputedStyle(document.documentElement).getPropertyValue("--sai-top")||"0")||0,u=parseInt(getComputedStyle(document.documentElement).getPropertyValue("--sai-bottom")||"0")||0,S=8,w=e.getBoundingClientRect(),k=this.fabPos?.x??0,_=this.fabPos?.y??0,R=w.left-k,M=w.top-_,g=f+S-R,v=a-p-S-l-R,b=y+S-M,E=i-u-S-h-M,I=o==="y"?0:Math.max(g,Math.min(v,r)),A=o==="x"?0:Math.max(b,Math.min(E,n)),T=I;if(s){let Q=this.config.draggable;(Q===true||typeof Q=="object"&&(Q.snapToEdge??true))&&o!=="y"&&(T=w.left+l/2<a/2?f+S-R:a-p-S-l-R);}this.fabPos={x:T,y:A},e.style.setProperty("--mushi-drag-x",`${T}px`),e.style.setProperty("--mushi-drag-y",`${A}px`),e.style.setProperty("--mushi-drag-active","1");let j=this.config.draggable;if(j===true||typeof j=="object"&&(j.persist??true))try{localStorage.setItem(this.fabStorageKey(),JSON.stringify(this.fabPos));}catch{}}loadFabPos(){let e=this.config.draggable;if(!(!e||!(e===true||typeof e=="object"&&(e.persist??true))))try{let n=localStorage.getItem(this.fabStorageKey());if(n){let s=JSON.parse(n);typeof s?.x=="number"&&typeof s?.y=="number"&&(this.fabPos=s);}}catch{}}attachDragHandlers(e){this.fabPos===null&&this.loadFabPos();let r=0,n=0,s=0,o=0,a=false,i=false,l=y=>{if(y.button!==0&&y.pointerType!=="touch")return;e.setPointerCapture(y.pointerId),r=y.clientX,n=y.clientY;let u=this.fabPos??{x:0,y:0};s=u.x,o=u.y,a=true,i=false;},h=6,f=y=>{if(!a)return;let u=y.clientX-r,S=y.clientY-n;!i&&Math.hypot(u,S)>h&&(i=true,e.classList.add("dragging"),e.setAttribute("aria-grabbed","true")),i&&(y.preventDefault(),this.moveFab(e,s+u,o+S,false));},p=y=>{if(a){if(a=false,e.classList.remove("dragging"),e.removeAttribute("aria-grabbed"),i){let u=y.clientX-r,S=y.clientY-n;this.moveFab(e,s+u,o+S,true);let w=k=>{k.stopImmediatePropagation(),e.removeEventListener("click",w,{capture:true});};e.addEventListener("click",w,{capture:true});}i=false;}};e.addEventListener("pointerdown",l),e.addEventListener("pointermove",f),e.addEventListener("pointerup",p),e.addEventListener("pointercancel",p);}attachViewportHandlers(e){this.teardownViewportHandlers();let r=window.visualViewport;if(!r)return;let n=()=>{let o=window.innerHeight-r.height-r.offsetTop;o>50?(e.style.setProperty("--mushi-keyboard-inset",`${Math.round(o)}px`),e.classList.add("keyboard-open"),e.querySelector('textarea, input[type="text"]')?.scrollIntoView({block:"nearest",behavior:"smooth"})):(e.style.setProperty("--mushi-keyboard-inset","0px"),e.classList.remove("keyboard-open"));};r.addEventListener("resize",n,{passive:true}),r.addEventListener("scroll",n,{passive:true});let s=()=>requestAnimationFrame(n);e.addEventListener("focusin",s),this.vvCleanup=()=>{r.removeEventListener("resize",n),r.removeEventListener("scroll",n),e.removeEventListener("focusin",s);};}teardownViewportHandlers(){this.vvCleanup?.(),this.vvCleanup=null;}effectiveMinLength(){let e=this.config.minDescriptionLength??20,r=this.config.locale==="auto"?typeof navigator<"u"?navigator.language??"":"":this.config.locale??"";return /^(ja|zh|ko)/i.test(r)?Math.max(4,Math.floor(e/2)):e}tierColor(e){return _n[e]??_n.default}renderCtx(){return {config:this.config,rewardsState:this.rewardsState,lastReportId:this.lastReportId,reporterLoading:this.reporterLoading,locale:this.locale,identifiedUser:this.identifiedUser,testerReputation:this.testerReputation,testerInfo:this.testerInfo,screenshotCapturing:this.screenshotCapturing,screenshotAttached:this.screenshotAttached,screenshotPreview:this.screenshotPreview,screenshotHint:this.resolveScreenshotHint(),screenshotAvailable:this.screenshotAvailable,elementAvailable:this.elementAvailable,reporterError:this.reporterError,magicLinkError:this.magicLinkError,elementCapturing:this.elementCapturing,submitting:this.submitting,sdkFreshness:this.sdkFreshness,screenshotError:this.screenshotError,reporterReports:this.reporterReports,magicLinkSending:this.magicLinkSending,magicLinkEmail:this.magicLinkEmail,globalLeaderboardLoading:this.globalLeaderboardLoading,globalLeaderboard:this.globalLeaderboard,elementSelected:this.elementSelected,elementError:this.elementError,crossAppLoading:this.crossAppLoading,callbacks:this.callbacks,testerJwt:this.testerJwt,submittedAt:this.submittedAt,step:this.step,selectedReportId:this.selectedReportId,selectedCategory:this.selectedCategory,sdkVersion:this.sdkVersion,reporterComments:this.reporterComments,magicLinkSent:this.magicLinkSent,leaderboardLoading:this.leaderboardLoading,leaderboardEntries:this.leaderboardEntries,lastSubmitQueuedOffline:this.lastSubmitQueuedOffline,lastSubmitFailureKind:this.lastSubmitFailureKind,lastSubmitScreenshotDropped:this.lastSubmitScreenshotDropped,featureBoard:this.featureBoard,crossAppReports:this.crossAppReports,allowScreenshotRemove:this.allowScreenshotRemove,unreadCount:()=>this.unreadCount(),tierColor:e=>this.tierColor(e),resolveCustomCategory:e=>this.resolveCustomCategory(e),effectiveMinLength:()=>this.effectiveMinLength(),categoryLabel:e=>this.categoryLabel(e),categoryIcon:e=>this.categoryIcon(e),assistantTurns:this.assistantTurns,assistantSending:this.assistantSending,assistantError:this.assistantError,showAllCategories:this.showAllCategories,showMoreNav:this.showMoreNav,pageFaviconHref:ci(),brandRef:this.brandRef}}attachHandlers(e){let r=this.locale;ki(e),e.querySelector('[data-action="close"]')?.addEventListener("click",()=>this.close()),e.querySelector('[data-action="brand-footer"]')?.addEventListener("click",()=>{this.callbacks.onBrandFooterClick?.();}),e.querySelector('[data-action="back"]')?.addEventListener("click",()=>{this.step==="intent"?(this.step="category",this.selectedCategory=null):this.step==="details"?this.viaFeatureRequest?(this.step="category",this.selectedCategory=null,this.selectedIntent=null,this.viaFeatureRequest=false):(this.step="intent",this.selectedIntent=null):this.step==="reports"?this.step="category":this.step==="report-detail"?(this.step="reports",this.selectedReportId=null):this.step==="leaderboard"?this.step="reports":this.step==="roadmap"?this.step="category":this.step==="assistant"?this.step="category":this.step==="account"?this.step="category":this.step==="cross-app-reports"?this.step="account":this.step==="success"&&(this.step="category",this.selectedCategory=null,this.selectedIntent=null,this.viaFeatureRequest=false),this.step==="category"&&(this.showAllCategories=false,this.showMoreNav=false),this.render();}),e.querySelector('[data-action="show-all-categories"]')?.addEventListener("click",()=>{this.showAllCategories=true,this.render();}),e.querySelector('[data-action="toggle-more-nav"]')?.addEventListener("click",()=>{this.showMoreNav=!this.showMoreNav,this.render();}),e.querySelector('[data-action="assistant"]')?.addEventListener("click",()=>{this.openAssistantTab();}),e.querySelectorAll('[data-action="assistant-suggest"]').forEach(a=>{a.addEventListener("click",()=>{let i=a.dataset.value;i&&this.sendAssistantMessage(i);});}),e.querySelectorAll('[data-action="assistant-report"]').forEach(a=>{a.addEventListener("click",()=>{this.openReportFromAssistant();});});{let a=e.querySelector('[data-action="assistant-send"]');if(a){let i=a.querySelector(".mushi-assistant-input");a.addEventListener("submit",l=>{l.preventDefault();let h=i?.value??"";i&&(i.value=""),this.sendAssistantMessage(h);}),i?.addEventListener("keydown",l=>{l.key==="Enter"&&!l.shiftKey&&(l.preventDefault(),a.requestSubmit());});}}e.querySelector('[data-action="reports"]')?.addEventListener("click",()=>{this.loadReporterReports();}),e.querySelector('[data-action="roadmap"]')?.addEventListener("click",()=>{this.loadFeatureBoard();}),e.querySelectorAll("[data-vote-id]").forEach(a=>{a.addEventListener("click",()=>{let i=a.dataset.voteId;i&&this.voteFeatureBoard(i);});}),e.querySelector('[data-action="feature-request"]')?.addEventListener("click",()=>{this.selectedCategory="other",this.selectedIntent=Bn,this.viaFeatureRequest=true,this.step="details",this.render();}),e.querySelectorAll("[data-report-id]").forEach(a=>{a.addEventListener("click",()=>{let i=a.dataset.reportId;i&&this.loadReporterComments(i);});}),e.querySelector('[data-action="open-leaderboard"]')?.addEventListener("click",()=>{this.step="leaderboard",this.callbacks.onLeaderboardOpen?.(),this.callbacks.onGlobalLeaderboardOpen?.(),this.render();}),e.querySelector('[data-action="open-account"]')?.addEventListener("click",()=>{this.step="account",this.render();}),e.querySelector('[data-action="open-cross-app-reports"]')?.addEventListener("click",()=>{this.step="cross-app-reports",this.crossAppLoading=true,this.crossAppReports=null,this.render(),this.callbacks.onCrossAppReportsOpen?this.callbacks.onCrossAppReportsOpen():(this.crossAppLoading=false,this.crossAppReports=[],this.render());}),e.querySelector('[data-action="open-global-leaderboard"]')?.addEventListener("click",()=>{this.step="leaderboard",this.globalLeaderboard=null,this.globalLeaderboardLoading=true,this.render(),this.callbacks.onGlobalLeaderboardOpen?this.callbacks.onGlobalLeaderboardOpen():(this.globalLeaderboardLoading=false,this.globalLeaderboard=[],this.render());}),e.querySelector('[data-action="send-magic-link"]')?.addEventListener("click",()=>{this.handleMagicLinkSend(e);}),e.querySelector('[data-action="resend-magic-link"]')?.addEventListener("click",()=>{this.magicLinkSent=false,this.magicLinkError="",this.render();}),e.querySelector('[data-action="sign-out-tester"]')?.addEventListener("click",()=>{this.testerJwt=null,this.testerInfo=null,this.testerReputation=null,this.crossAppReports=null,this.magicLinkSent=false,this.magicLinkEmail="",this.step="category",this.callbacks.onTesterSignOut?.(),this.render();}),e.querySelector('[data-action="reporter-reply"]')?.addEventListener("click",()=>{this.submitReporterReply(e);}),e.querySelector('[data-action="reporter-confirms"]')?.addEventListener("click",()=>{this.submitReporterFeedback("confirms");}),e.querySelector('[data-action="reporter-not-fixed"]')?.addEventListener("click",()=>{this.submitReporterReopen();}),e.querySelector('[data-action="view-my-reports"]')?.addEventListener("click",()=>{this.loadReporterReports();}),e.querySelector('[data-action="copy-report-id"]')?.addEventListener("click",a=>{let i=a.currentTarget,l=i.dataset.copyId;if(!l)return;let h=i.innerHTML,f=()=>{i.innerHTML="Copied \u2713",window.setTimeout(()=>{i.isConnected&&(i.innerHTML=h);},1600);};try{navigator.clipboard?.writeText?navigator.clipboard.writeText(l).then(f).catch(()=>f()):f();}catch{f();}}),e.querySelectorAll("[data-category]").forEach(a=>{a.addEventListener("click",()=>{let i=a.dataset.category??"other";this.selectedCategory=i;let l=this.resolveCustomCategory(i);this.step=l&&(!l.intents||l.intents.length===0)?"details":"intent",this.render();});}),e.querySelectorAll("[data-intent]").forEach(a=>{a.addEventListener("click",()=>{this.selectedIntent=a.dataset.intent??null,this.step="details",this.render();});});let n=e.querySelector(".mushi-textarea"),s=e.querySelector('[data-role="char-current"]');if(n&&s){let a=this.effectiveMinLength(),i=()=>{let l=n.value.trim().length;s.textContent=String(l);let h=e.querySelector('[data-role="char-counter"]');h&&(h.style.color=l>=a?"var(--mushi-ok, #22c55e)":"");};n.addEventListener("input",i);}e.querySelectorAll("[data-example]").forEach(a=>{a.addEventListener("click",()=>{let i=a.dataset.example??"";n&&(n.value=i,n.focus(),n.dispatchEvent(new Event("input")));});}),e.querySelector('[data-action="screenshot"]')?.addEventListener("click",()=>{this.callbacks.onScreenshotRequest();}),e.querySelector('[data-action="remove-screenshot"]')?.addEventListener("click",()=>{this.callbacks.onScreenshotRemove?.();}),e.querySelector('[data-action="annotate-screenshot"]')?.addEventListener("click",()=>{let a=e.querySelector('[data-role="annotate-host"]');a&&this.callbacks.onScreenshotAnnotateRequest&&this.callbacks.onScreenshotAnnotateRequest(a);}),e.querySelector('[data-action="element"]')?.addEventListener("click",()=>{this.callbacks.onElementSelectorRequest?.();});let o=()=>{let a=e.querySelector(".mushi-textarea"),i=a?.value?.trim()??"",l=e.querySelector(".mushi-error"),h=this.effectiveMinLength();if(i.length<h){if(l){let p=`${r.step3.tooShort} (${i.length}/${h})`;l.textContent=p,l.style.display="block",a?.focus();}return}this.submitting=true,this.submittedAt=new Date,this.lastReportId=null,this.lastSubmitQueuedOffline=false,this.lastSubmitFailureKind=void 0,this.lastSubmitScreenshotDropped=false,this.render();let f=(async()=>{try{let p=this.selectedCategory,y=this.resolveBaseCategory(p),u=this.config.categories&&this.config.categories.length>0,S=this.callbacks.onSubmit({category:y,...u?{userCategory:p}:{},description:i,intent:this.selectedIntent??void 0});return S&&typeof S.then=="function"?await S??null:null}catch{return {reportId:null,queuedOffline:true}}})();this.successTimer=setTimeout(()=>{this.successTimer=null,this.submitting=false,this.step="success",this.render(),this.draftDescription="",f.then(p=>{if(this.step!=="success")return;p&&(this.lastReportId=p.reportId??null,this.lastSubmitQueuedOffline=!!p.queuedOffline,this.lastSubmitFailureKind=p.failureKind,this.lastSubmitScreenshotDropped=!!p.screenshotDropped,this.render()),this.autoCloseTimer!==null&&clearTimeout(this.autoCloseTimer);let y=this.lastReportId&&this.config.dashboardUrl?6e3:2800;this.autoCloseTimer=setTimeout(()=>{this.autoCloseTimer=null,this.step==="success"&&this.close();},y);});},500);};e.querySelector('[data-action="submit"]')?.addEventListener("click",o),e.addEventListener("keydown",a=>{if(a.key==="Escape"){this.close();return}this.step==="details"&&Si(a)&&(a.preventDefault(),o());});}trapFocus(e){requestAnimationFrame(()=>{let r=e.querySelector("textarea");if(r){r.focus();return}let n=e.querySelectorAll("button, textarea, [tabindex]");n.length>0&&n[0].focus();});}unreadCount(){return this.reporterReports.reduce((e,r)=>e+(r.unread_count??0),0)}async loadFeatureBoard(){this.step="roadmap",this.reporterLoading=true,this.reporterError=null,this.render();try{this.featureBoard=await this.callbacks.onFeatureBoardRequest?.()??[];}catch(e){this.reporterError=e instanceof Error?e.message:"Could not load community ideas.";}finally{this.reporterLoading=false,this.render();}}async voteFeatureBoard(e){if(!(!this.callbacks.onFeatureBoardVote||this.reporterLoading)){this.reporterLoading=true,this.render();try{await this.callbacks.onFeatureBoardVote(e),this.featureBoard=await this.callbacks.onFeatureBoardRequest?.()??this.featureBoard;}catch(r){this.reporterError=r instanceof Error?r.message:"Could not update vote.";}finally{this.reporterLoading=false,this.render();}}}async submitReporterReopen(){let e=this.selectedReportId;if(!(!e||this.reporterLoading)){this.reporterLoading=true,this.render();try{this.callbacks.onReporterReopen?await this.callbacks.onReporterReopen(e,"Not fixed for me"):await this.callbacks.onReporterFeedback?.(e,"not_fixed","Not fixed for me"),await this.loadReporterReports();}catch(r){this.reporterError=r instanceof Error?r.message:"Could not reopen report.";}finally{this.reporterLoading=false,this.render();}}}async refreshReporterInboxQuiet(){try{if(this.reporterReports=await this.callbacks.onReporterReportsRequest?.()??[],!this.isOpen)return;this.step==="reports"?this.render():this.updateReportsBadgeText();}catch{}}updateReportsBadgeText(){let e=this.shadow.querySelector(".mushi-reports-entry .mushi-option-label");if(!e)return;let r=this.locale.step1.moreNav,n=this.unreadCount();e.textContent=n?`${r.yourReports} (${n} ${r.unreadNew})`:r.yourReports;}async loadReporterReports(){this.step="reports",this.reporterLoading=true,this.reporterError=null,this.render();try{this.reporterReports=await this.callbacks.onReporterReportsRequest?.()??[];}catch(e){this.reporterError=e instanceof Error?e.message:"Could not load reports.";}finally{this.reporterLoading=false,this.render();}}async loadReporterComments(e){this.selectedReportId!==e&&(this.draftReply=""),this.selectedReportId=e,this.step="report-detail",this.reporterLoading=true,this.reporterError=null,this.render();try{this.reporterComments=await this.callbacks.onReporterCommentsRequest?.(e)??[];}catch(r){this.reporterError=r instanceof Error?r.message:"Could not load thread.";}finally{this.reporterLoading=false,this.render();}}async submitReporterFeedback(e){let r=this.selectedReportId;if(!(!r||this.reporterLoading)){this.reporterLoading=true,this.render();try{await this.callbacks.onReporterFeedback?.(r,e),await this.loadReporterReports(),r&&await this.loadReporterComments(r);}catch(n){this.reporterError=n instanceof Error?n.message:"Could not send feedback.",this.reporterLoading=false,this.render();}}}async submitReporterReply(e){let r=this.selectedReportId,n=e.querySelector('[data-role="reporter-reply"]'),s=e.querySelector('[data-action="reporter-reply"]'),o=n?.value.trim()??"";if(!(!r||!o||this.reporterLoading)){this.reporterLoading=true,s&&(s.disabled=true),this.render();try{await this.callbacks.onReporterReply?.(r,o),n&&(n.value=""),this.draftReply="",await this.loadReporterComments(r);}catch(a){this.reporterError=a instanceof Error?a.message:"Could not send reply.",this.reporterLoading=false,this.render();}}}async handleMagicLinkSend(e){if(this.magicLinkSending)return;let n=(e.querySelector('[data-role="magic-link-email"]')?.value??this.magicLinkEmail).trim();if(!n||!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(n)){this.magicLinkError="Please enter a valid email address.",this.render();return}this.magicLinkEmail=n,this.magicLinkError="",this.magicLinkSending=true,this.render();try{await this.callbacks.onMushiSignIn?.(n),this.magicLinkSent=!0;}catch(s){this.magicLinkError=s instanceof Error?s.message:"Could not send sign-in link. Try again.";}finally{this.magicLinkSending=false,this.render();}}getRecorderStep(){return this.step}getRecorderCategoryStepIA(){return {sectionLabel:this.shadow.querySelector(".mushi-section-label")?.textContent?.trim()??"",moreToggle:!!this.shadow.querySelector('[data-action="toggle-more-nav"]'),footerStepIndicators:this.shadow.querySelectorAll(".mushi-step-indicator").length}}getRecorderTrigger(){return this.shadow.querySelector(".mushi-trigger")}getRecorderCategoryButton(e){return this.shadow.querySelector(`[data-category="${e}"]`)}getRecorderIntentButton(e){return Array.from(this.shadow.querySelectorAll("[data-intent]")).find(r=>r.dataset.intent===e)??null}getRecorderSubmitButton(){return this.shadow.querySelector('[data-action="submit"]')}recorderClickTrigger(){this.isOpen&&this.close(),this.open();}openReporter(){this.isOpen||(this.isOpen=true,this.render()),this.loadReporterReports();}recorderSelectCategory(e){this.isOpen||this.open(),this.step!=="category"&&(this.selectedCategory=null,this.selectedIntent=null,this.step="category",this.render()),this.selectedCategory=e,this.step="intent",this.render();}recorderSelectIntent(e){!this.isOpen||this.step!=="intent"||(this.selectedIntent=e,this.step="details",this.render());}recorderFocusDescription(){this.shadow.querySelector(".mushi-textarea")?.focus();}recorderSubmit(){this.shadow.querySelector('[data-action="submit"]')?.click();}recorderOpenMyReports(){this.isOpen||this.open(),this.loadReporterReports();}};function cu(t,e){let r={...t};if(e)for(let[n,s]of Object.entries(e))s!==void 0&&(r[n]=s);return r}var uu=["brandFooter"];function $i(t,e,r=t){let n=e.native?.triggerMode,s=e.widget?.launcher,o=t.widget?.trigger,a=s??e.widget?.trigger,l=(a==="auto"&&o&&o!=="auto"?void 0:a)??(n==="none"||n==="shake"?"manual":void 0),h=s==="hidden"||e.widget?.trigger==="hidden",f=l==="hidden"&&!h&&o&&o!=="hidden"?o:l,p=e.widget,y=p?.bannerVariant,u=p?.bannerPosition,S=p?.bannerMessage,w=p?.bannerLabel,k=p?.bannerBugCta,_=p?.bannerFeatureCta,R=y||u||S!=null||w!=null||k!=null||_!=null?{...t.widget?.bannerConfig??{},...y?{variant:y}:{},...u?{position:u}:{},...S!=null?{message:S}:{},...w!=null?{label:w===""?false:w}:{},...k!=null?{bugCta:k??void 0}:{},..._!=null?{featureCta:_}:{}}:void 0,M={};if(e.widget)for(let[g,v]of Object.entries(e.widget))g==="trigger"||g==="launcher"||v!=null&&(uu.includes(g)&&r.widget?.[g]!==void 0||(M[g]=v));return {...t,widget:{...t.widget,...M,...f?{trigger:f}:{},...R?{bannerConfig:R}:{},...t.widget?.betaMode?{betaMode:t.widget.betaMode}:{}},capture:cu(t.capture,e.capture),privacy:{...t.privacy}}}function Fr(t){if(!t)return null;let e=t.getBoundingClientRect();return e.width===0&&e.height===0?null:{x:e.left+e.width/2,y:e.top+e.height/2}}function Mi(t){if(typeof globalThis>"u")return;let e={ready:()=>t.getIsMounted(),getStep:()=>t.getRecorderStep(),getCategoryStepIA:()=>t.getRecorderCategoryStepIA(),getTriggerCenter:()=>Fr(t.getRecorderTrigger()),getCategoryCenter:r=>Fr(t.getRecorderCategoryButton(r)),getIntentCenter:r=>Fr(t.getRecorderIntentButton(r)),getSubmitCenter:()=>Fr(t.getRecorderSubmitButton()),clickTrigger:()=>t.recorderClickTrigger(),selectCategory:r=>t.recorderSelectCategory(r),selectIntent:r=>t.recorderSelectIntent(r),focusDescription:()=>t.recorderFocusDescription(),submit:()=>t.recorderSubmit(),openMyReports:()=>t.recorderOpenMyReports()};globalThis.__mushiRecorder=e;}var qn=null,jn=null,Zt=null,er=null,tr=null,rr=null,nr=null,qr=false,bt=new Set;function du(){for(let t of bt)try{t.onPush?.();}catch{}}function pu(){for(let t of bt)try{t.onReplace?.();}catch{}}function hu(){for(let t of bt)try{t.onPop?.();}catch{}}function fu(){qr||typeof window>"u"||(Zt=History.prototype.pushState,er=History.prototype.replaceState,qn=Zt.bind(history),jn=er.bind(history),tr=function(...e){let n=(qn??History.prototype.pushState.bind(history))(...e);return du(),n},rr=function(...e){let n=(jn??History.prototype.replaceState.bind(history))(...e);return pu(),n},history.pushState=tr,history.replaceState=rr,nr=()=>hu(),window.addEventListener("popstate",nr),qr=true);}function Li(){!qr||typeof window>"u"||(nr&&(window.removeEventListener("popstate",nr),nr=null),tr&&history.pushState===tr&&Zt&&(history.pushState=Zt),rr&&history.replaceState===rr&&er&&(history.replaceState=er),tr=null,rr=null,qn=null,jn=null,Zt=null,er=null,qr=false);}function Ae(t){return fu(),bt.add(t),()=>{bt.delete(t),bt.size===0&&Li();}}function _i(){bt.clear(),Li();}var mu=3e4,gu=3e5,bu=6e4,yu=60,Pi="mushi_session_min_day_",It=[],$t=null,Mt=null,Xe=null,Di=null,Wn=null,Lt=null,nt=false,or=null,Oi=0,vu=300*1e3,Vn=0,wu=900*1e3;function Gn(){return Date.now()<Vn}function Xn(t){t?.startsWith("HTTP_4")&&(Vn=Date.now()+wu);}var Ai=new Set;function zn(t){return `mushi_rewards_consent_${t}`}function xu(t){try{return localStorage.getItem(zn(t))==="1"}catch{return false}}function Kn(t,e){try{e?localStorage.setItem(zn(t),"1"):localStorage.removeItem(zn(t)),nt=e;}catch{}}function Bi(){return new Date().toISOString().slice(0,10)}function Ni(t){try{let e=sessionStorage.getItem(`${Pi}${t}_${Bi()}`);return e?parseInt(e,10):0}catch{return 0}}function Su(t){let e=Bi(),r=`${Pi}${t}_${e}`;try{let n=Ni(t)+1;return sessionStorage.setItem(r,String(n)),n}catch{return 99}}function Ui(t){Lt=t.client,Xe=t.userId,Di=t.traits??null,Wn=t.reporterToken??null;let{projectId:e}=t,r=Math.max(mu,t.config.flushIntervalMs??gu);t.config.consentMode==="auto"?(nt=true,Kn(e,true)):nt=xu(e),t.config.trackActivity&&ku(e),$t&&clearInterval($t),$t=setInterval(()=>Eu(t),r),Mt&&clearInterval(Mt),Mt=setInterval(()=>{if(!nt||!Xe)return;let n=Ni(e);n<yu&&(Su(e),_t({action:"session_minute",metadata:{minutes_today:n+1}}));},bu),t.config.showInWidget&&Yn(Xe).then(n=>{n&&zi(n,t.config);}),t.config.consentMode!=="auto"&&!nt&&Cu(e,t.config);}function _t(t){!nt||!Xe||It.push({...t,queuedAt:Date.now()});}async function Eu(t){if(!nt||!Xe||It.length===0)return;let e=null;if(t.config.verifyUserToken)try{e=await t.config.verifyUserToken();}catch{}if(Gn())return;let r=It.splice(0,100);try{let n=Wn?await Xt(Wn):void 0,s=await t.client.submitActivity(Xe,r,{userTraits:Di??void 0,reporterTokenHash:n,optedIn:!0,hostJwt:e??void 0});s.ok||(Xn(s.error?.code),s.error?.code?.startsWith("HTTP_4")||It.unshift(...r.slice(0,50)));}catch{It.unshift(...r.slice(0,50));}}async function Fi(t){let e=Date.now();return or&&e-Oi<vu?or:Yn(t)}async function Yn(t){if(!Lt||Gn())return null;let e=await Lt.getMyTier(t);return e.ok&&e.data?(or=e.data,Oi=Date.now(),or):(Xn(e.error?.code),null)}async function qi(t=10){if(!Lt||Gn())return null;try{let e=await Lt.getHallOfFame(t);return e.ok&&e.data?(e.data.data??[]).map(r=>({display_name:r.display_name,tier_name:r.tier_name,total_points:r.total_points,points_30d:r.points_30d})):(Xn(e.error?.code),null)}catch{return null}}function ji(){$t&&(clearInterval($t),$t=null),Mt&&(clearInterval(Mt),Mt=null),Wi(),Ru(),ke&&(ke.remove(),ke=null),It=[],Xe=null,Lt=null,nt=false,or=null,Vn=0;}var Wr=null,sr=null,zr=null,Hi="",jr=false;function ku(t){if(jr&&zr)return;jr&&Wi(),jr=true;let e=()=>{let n=location.pathname;if(n===Hi)return;Hi=n,!Ai.has(`${t}:${n}`)&&(Ai.add(`${t}:${n}`),_t({action:"screen_view_unique_per_day",metadata:{route:n}}));};zr=Ae({onPush:e,onPop:e}),e(),Wr=new MutationObserver(()=>e());let r=document.querySelector("main")??document.body;Wr.observe(r,{childList:true,subtree:false}),sr=n=>{let s=n.target.closest("[data-testid]");if(!s)return;let o=s.dataset.testid;o&&_t({action:"element_selected",metadata:{testid:o,route:location.pathname}});},document.addEventListener("click",sr,{capture:true,passive:true});}function Wi(){jr=false,zr?.(),zr=null,Wr?.disconnect(),Wr=null,sr&&(document.removeEventListener("click",sr,{capture:true}),sr=null);}var Ge=null;function zi(t,e){if(!e.showInWidget)return;Ge&&Ge.remove(),Ge=document.createElement("div"),Ge.id="mushi-tier-badge",Object.assign(Ge.style,{position:"fixed",bottom:"56px",right:"16px",zIndex:"2147483645",fontFamily:"system-ui, sans-serif"});let r=Ge.attachShadow({mode:"closed"});r.innerHTML=`
5
+ </span>`:`<span class="mushi-app-icon mushi-app-icon-initials-only" aria-hidden="true">${r}</span>`}function zs(t){t.querySelectorAll("[data-mushi-favicon]").forEach(e=>{let r=e.querySelector(".mushi-app-icon-img"),n=e.querySelector(".mushi-app-icon-initials");if(!r||!n)return;let i=[];try{i=JSON.parse(e.dataset.candidates??"[]");}catch{i=[];}let o=0,a=()=>{o+=1,o<i.length?r.src=i[o]:(r.remove(),n.hidden=false,e.classList.add("mushi-app-icon-initials-only"));};r.onerror=a,r.onload=()=>{Is(r)&&a();};});}Vr();var Kr={widget:{trigger:"Report Issue",title:"Report an Issue",close:"Close",back:"Back",submit:"Submit",submitting:"Sending\u2026",submitted:"Thank you! Your report has been submitted.",error:"Could not send your report. Check your connection and try again."},step1:{moreNav:{communityIdeas:"Community ideas",leaderboard:"Leaderboard",joinCommunity:"Join community \xB7 Track reports across apps",myAccount:"My account"},categories:{bug:"Bug",slow:"Slow / Laggy",visual:"Visual Glitch",confusing:"Confusing",other:"Other"}},step2:{intents:{bug:["Crash","Wrong result","Unresponsive","Data loss","Other"],slow:["Page load","Interaction","API call","Animation","Other"],visual:["Layout broken","Overlapping","Missing element","Wrong color/font","Other"],confusing:["Unclear label","Missing help","Unexpected flow","Lost navigation","Other"],other:["Feature request","Accessibility","Typo","Other"]}},step3:{descriptionPlaceholder:"What went wrong?",featurePlaceholder:"Describe your idea\u2026",submitHint:"{key} + Enter to send",screenshotButton:"Screenshot",screenshotAttached:"Screenshot attached",screenshotCapturing:"Taking screenshot\u2026",screenshotRetry:"Try again",screenshotShareTab:"Share this tab instead",screenshotErrors:{permission:"Screen capture was blocked. Allow it, then try again.",unsupported:"This browser can't capture the page. Describe it instead.",taint:"Content from another site blocked the capture. Describe it instead.",timeout:"Capture timed out.",csp:"This site's security policy blocks screenshots.",error:"Capture failed."},screenshotPreviewAlt:"Preview of the screenshot that will be sent",screenshotSensitiveHint:"Check the preview \u2014 remove it if any private info (balances, personal details) is visible.",elementButton:"Point at it",elementSelected:"Element selected",elementCapturing:"Click anything on the page\u2026",elementFailed:"Couldn't select \u2014 describe it instead",elementSelectorHint:"Click any element \xB7 Esc to cancel"},panel:{title:"Send feedback",more:"More\u2026",pointAt:"Point at it",remove:"Remove",markUp:"Mark up",privacy:"Shown only to the app\u2019s developer. Remove anything private.",send:"Send",yourReports:"Your reports",newCount:"{n} new",moreOptions:"More options",reportTitle:"Your report",notifyMe:"Notify me",notifyOn:"Notifications are on."},assistant:{defaultLabel:"Ask",defaultGreeting:"Ask about this page \u2014 I only use what you see here.",inputPlaceholder:"Type your question\u2026",sendAriaLabel:"Send",hubDescription:"Get help using this app",thinking:"Thinking\u2026",fileReportCta:"File a report instead",stillStuckCta:"Still stuck? File a report",errors:{noResponse:"No response \u2014 check your connection and try again.",generic:"Could not reach the assistant. Try again in a moment."}},flows:{reports:{title:"Your reports",loading:"Loading reports\u2026"},roadmap:{title:"Community ideas",loading:"Loading ideas\u2026",empty:"No community ideas yet. Be the first to suggest one.",shipped:"Shipped",vote:"Vote",voted:"Voted",voteCount:"{n} votes",untitled:"Untitled idea"},leaderboard:{title:"Global leaderboard",loading:"Loading leaderboard\u2026",empty:"No contributors yet \u2014 be the first!",signInPrompt:"Sign in to see your rank \u2192",myRank:"You are ranked #{rank} this month",footer:"Global contributors this month \xB7 Points refresh monthly",anon:"Anon"},account:{title:"Mushi account",checkEmailTitle:"Check your email",joinTitle:"Join the community",emailLabel:"Email address",emailPlaceholder:"Email",signInPrompt:"Sign in to see your reports across all apps and climb the global leaderboard. No password needed.",magicLinkSent:"We sent a sign-in link to {email}. Click it to connect your reports across apps.",resendEmail:"Resend email",sendLink:"Send sign-in link",sending:"Sending\u2026",crossAppReports:"My reports across all apps \u2192",viewLeaderboard:"View global leaderboard \u2192",signOut:"Sign out",rankSummary:"Rank #{rank} \xB7 {points} pts this month"},crossApp:{title:"My reports",loading:"Loading your reports\u2026",empty:"No reports filed yet.",unknownApp:"Unknown app"},thread:{loading:"Loading updates\u2026",replyPlaceholder:"Reply to the developer\u2026"},success:{done:"Done",trackReport:"Track it",receipt:"Receipt",delivering:"Delivering to the team\u2026",queuedOffline:"Queued offline",queuedHint:"We'll send it the moment you're back online.",rateLimited:"Sending too fast",rateLimitedHint:"Wait about a minute \u2014 we queued this report and will retry automatically.",quotaBlocked:"Could not accept this report",quotaBlockedHint:"This project's quota or plan blocked the send. Ask the app owner to check Billing.",permanentFailed:"Could not send this report",permanentFailedHint:"The payload was rejected (often too large). Try again with a shorter note or without a screenshot.",retrying:"Queued \u2014 retrying",retryingHint:"We could not reach the server just now. We'll keep trying in the background.",trackOnMushi:"Track on Mushi",slaDefault:"We'll let you know here when there's news.",screenshotDropped:"Sent without the screenshot \u2014 it was too large to attach."},featureRequest:{label:"Feature request"},betaStrip:{defaultMessage:"{appName} is in early development",contactHint:"Questions? {email}",teamSees:"The {appName} team will see this",teamSeesGeneric:"The team will see this",ariaLabel:"Beta status"},changelog:{whatsNew:"What's new in {version}"},poweredBy:"Bug reports by Mushi"}};var Qs={widget:{trigger:"\u554F\u984C\u3092\u5831\u544A",title:"\u554F\u984C\u3092\u5831\u544A\u3059\u308B",close:"\u9589\u3058\u308B",back:"\u623B\u308B",submit:"\u9001\u4FE1",submitting:"\u9001\u4FE1\u4E2D\u2026",submitted:"\u3042\u308A\u304C\u3068\u3046\u3054\u3056\u3044\u307E\u3059\uFF01\u30EC\u30DD\u30FC\u30C8\u304C\u9001\u4FE1\u3055\u308C\u307E\u3057\u305F\u3002",error:"\u30A8\u30E9\u30FC\u304C\u767A\u751F\u3057\u307E\u3057\u305F\u3002\u3082\u3046\u4E00\u5EA6\u304A\u8A66\u3057\u304F\u3060\u3055\u3044\u3002"},step1:{moreNav:{communityIdeas:"\u30B3\u30DF\u30E5\u30CB\u30C6\u30A3\u306E\u30A2\u30A4\u30C7\u30A2",leaderboard:"\u30EA\u30FC\u30C0\u30FC\u30DC\u30FC\u30C9",joinCommunity:"\u30B3\u30DF\u30E5\u30CB\u30C6\u30A3\u306B\u53C2\u52A0 \xB7 \u30A2\u30D7\u30EA\u6A2A\u65AD\u3067\u30EC\u30DD\u30FC\u30C8\u3092\u8FFD\u8DE1",myAccount:"\u30DE\u30A4\u30A2\u30AB\u30A6\u30F3\u30C8"},categories:{bug:"\u30D0\u30B0",slow:"\u9045\u3044\u30FB\u91CD\u3044",visual:"\u8868\u793A\u306E\u554F\u984C",confusing:"\u308F\u304B\u308A\u306B\u304F\u3044",other:"\u305D\u306E\u4ED6"}},step2:{intents:{bug:["\u30AF\u30E9\u30C3\u30B7\u30E5","\u7121\u53CD\u5FDC","\u30C7\u30FC\u30BF\u6D88\u5931","\u8AA4\u3063\u305F\u7D50\u679C","\u305D\u306E\u4ED6"],slow:["\u30DA\u30FC\u30B8\u8AAD\u8FBC","\u64CD\u4F5C\u53CD\u5FDC","API\u901A\u4FE1","\u30A2\u30CB\u30E1\u30FC\u30B7\u30E7\u30F3","\u305D\u306E\u4ED6"],visual:["\u30EC\u30A4\u30A2\u30A6\u30C8\u5D29\u308C","\u8981\u7D20\u306E\u91CD\u306A\u308A","\u8981\u7D20\u304C\u8868\u793A\u3055\u308C\u306A\u3044","\u8272/\u30D5\u30A9\u30F3\u30C8\u304C\u9055\u3046","\u305D\u306E\u4ED6"],confusing:["\u30E9\u30D9\u30EB\u304C\u4E0D\u660E\u77AD","\u30D8\u30EB\u30D7\u304C\u306A\u3044","\u4E88\u60F3\u5916\u306E\u30D5\u30ED\u30FC","\u30CA\u30D3\u30B2\u30FC\u30B7\u30E7\u30F3\u8FF7\u5B50","\u305D\u306E\u4ED6"],other:["\u6A5F\u80FD\u8981\u671B","\u30A2\u30AF\u30BB\u30B7\u30D3\u30EA\u30C6\u30A3","\u8AA4\u5B57\u8131\u5B57","\u305D\u306E\u4ED6"]}},step3:{descriptionPlaceholder:"\u4F55\u304C\u8D77\u304D\u307E\u3057\u305F\u304B\uFF1F",featurePlaceholder:"\u30A2\u30A4\u30C7\u30A2\u3092\u6559\u3048\u3066\u304F\u3060\u3055\u3044\u2026",submitHint:"{key} + Enter \u3067\u9001\u4FE1",screenshotButton:"\u30B9\u30AF\u30EA\u30FC\u30F3\u30B7\u30E7\u30C3\u30C8",screenshotAttached:"\u30B9\u30AF\u30EA\u30FC\u30F3\u30B7\u30E7\u30C3\u30C8\u6DFB\u4ED8\u6E08\u307F",screenshotCapturing:"\u30B9\u30AF\u30EA\u30FC\u30F3\u30B7\u30E7\u30C3\u30C8\u64AE\u5F71\u4E2D\u2026",screenshotRetry:"\u3082\u3046\u4E00\u5EA6",screenshotShareTab:"\u3053\u306E\u30BF\u30D6\u3092\u5171\u6709\u3057\u3066\u64AE\u5F71",screenshotErrors:{permission:"\u753B\u9762\u306E\u53D6\u5F97\u304C\u30D6\u30ED\u30C3\u30AF\u3055\u308C\u307E\u3057\u305F\u3002\u8A31\u53EF\u3057\u3066\u304B\u3089\u518D\u8A66\u884C\u3057\u3066\u304F\u3060\u3055\u3044\u3002",unsupported:"\u3053\u306E\u30D6\u30E9\u30A6\u30B6\u3067\u306F\u53D6\u5F97\u3067\u304D\u307E\u305B\u3093\u3002\u6587\u5B57\u3067\u6559\u3048\u3066\u304F\u3060\u3055\u3044\u3002",taint:"\u5916\u90E8\u30B5\u30A4\u30C8\u306E\u5185\u5BB9\u306E\u305F\u3081\u53D6\u5F97\u3067\u304D\u307E\u305B\u3093\u3002\u6587\u5B57\u3067\u6559\u3048\u3066\u304F\u3060\u3055\u3044\u3002",timeout:"\u53D6\u5F97\u304C\u30BF\u30A4\u30E0\u30A2\u30A6\u30C8\u3057\u307E\u3057\u305F\u3002",csp:"\u3053\u306E\u30B5\u30A4\u30C8\u306E\u30BB\u30AD\u30E5\u30EA\u30C6\u30A3\u8A2D\u5B9A\u306B\u3088\u308A\u30B9\u30AF\u30EA\u30FC\u30F3\u30B7\u30E7\u30C3\u30C8\u3092\u53D6\u5F97\u3067\u304D\u307E\u305B\u3093\u3002",error:"\u53D6\u5F97\u306B\u5931\u6557\u3057\u307E\u3057\u305F\u3002"},screenshotPreviewAlt:"\u9001\u4FE1\u3055\u308C\u308B\u30B9\u30AF\u30EA\u30FC\u30F3\u30B7\u30E7\u30C3\u30C8\u306E\u30D7\u30EC\u30D3\u30E5\u30FC",screenshotSensitiveHint:"\u30D7\u30EC\u30D3\u30E5\u30FC\u3092\u78BA\u8A8D\u3057\u3001\u6B8B\u9AD8\u3084\u500B\u4EBA\u60C5\u5831\u306A\u3069\u304C\u5199\u3063\u3066\u3044\u308C\u3070\u524A\u9664\u3057\u3066\u304F\u3060\u3055\u3044\u3002",elementButton:"\u5834\u6240\u3092\u6307\u3059",elementSelected:"\u8981\u7D20\u9078\u629E\u6E08\u307F",elementCapturing:"\u30DA\u30FC\u30B8\u4E0A\u306E\u8981\u7D20\u3092\u30AF\u30EA\u30C3\u30AF\u2026",elementFailed:"\u9078\u629E\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F \u2014 \u6587\u5B57\u3067\u6559\u3048\u3066\u304F\u3060\u3055\u3044",elementSelectorHint:"\u8981\u7D20\u3092\u30AF\u30EA\u30C3\u30AF \xB7 Esc \u3067\u30AD\u30E3\u30F3\u30BB\u30EB"},panel:{title:"\u610F\u898B\u3092\u9001\u308B",more:"\u305D\u306E\u4ED6\u2026",pointAt:"\u5834\u6240\u3092\u6307\u3059",remove:"\u524A\u9664",markUp:"\u66F8\u304D\u8FBC\u3080",privacy:"\u30A2\u30D7\u30EA\u306E\u958B\u767A\u8005\u3060\u3051\u306B\u8868\u793A\u3055\u308C\u307E\u3059\u3002\u500B\u4EBA\u60C5\u5831\u306F\u524A\u9664\u3057\u3066\u304F\u3060\u3055\u3044\u3002",send:"\u9001\u4FE1",yourReports:"\u3042\u306A\u305F\u306E\u5831\u544A",newCount:"\u65B0\u7740 {n}",moreOptions:"\u305D\u306E\u4ED6\u306E\u30E1\u30CB\u30E5\u30FC",reportTitle:"\u3042\u306A\u305F\u306E\u5831\u544A",notifyMe:"\u901A\u77E5\u3092\u53D7\u3051\u53D6\u308B",notifyOn:"\u901A\u77E5\u304C\u30AA\u30F3\u306B\u306A\u308A\u307E\u3057\u305F\u3002"},assistant:{defaultLabel:"\u8CEA\u554F",defaultGreeting:"\u3053\u306E\u30DA\u30FC\u30B8\u306B\u3064\u3044\u3066\u8CEA\u554F\u3057\u3066\u304F\u3060\u3055\u3044 \u2014 \u8868\u793A\u3055\u308C\u3066\u3044\u308B\u5185\u5BB9\u3060\u3051\u3092\u4F7F\u3044\u307E\u3059\u3002",inputPlaceholder:"\u8CEA\u554F\u3092\u5165\u529B\u2026",sendAriaLabel:"\u9001\u4FE1",hubDescription:"\u3053\u306E\u30A2\u30D7\u30EA\u306E\u4F7F\u3044\u65B9\u3092\u805E\u304F",thinking:"\u8003\u3048\u4E2D\u2026",fileReportCta:"\u4EE3\u308F\u308A\u306B\u30D0\u30B0\u3092\u5831\u544A",stillStuckCta:"\u89E3\u6C7A\u3057\u306A\u3044\u5834\u5408\u306F\u5831\u544A\u3059\u308B",errors:{noResponse:"\u5FDC\u7B54\u304C\u3042\u308A\u307E\u305B\u3093 \u2014 \u63A5\u7D9A\u3092\u78BA\u8A8D\u3057\u3066\u518D\u8A66\u884C\u3057\u3066\u304F\u3060\u3055\u3044\u3002",generic:"\u30A2\u30B7\u30B9\u30BF\u30F3\u30C8\u306B\u63A5\u7D9A\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\u3002\u3057\u3070\u3089\u304F\u3057\u3066\u304B\u3089\u518D\u8A66\u884C\u3057\u3066\u304F\u3060\u3055\u3044\u3002"}},flows:{reports:{title:"\u3042\u306A\u305F\u306E\u30EC\u30DD\u30FC\u30C8",loading:"\u30EC\u30DD\u30FC\u30C8\u3092\u8AAD\u307F\u8FBC\u307F\u4E2D\u2026"},roadmap:{title:"\u30B3\u30DF\u30E5\u30CB\u30C6\u30A3\u306E\u30A2\u30A4\u30C7\u30A2",loading:"\u30A2\u30A4\u30C7\u30A2\u3092\u8AAD\u307F\u8FBC\u307F\u4E2D\u2026",empty:"\u307E\u3060\u30A2\u30A4\u30C7\u30A2\u304C\u3042\u308A\u307E\u305B\u3093\u3002\u6700\u521D\u306E\u63D0\u6848\u3092\u3069\u3046\u305E\u3002",shipped:"\u30EA\u30EA\u30FC\u30B9\u6E08\u307F",vote:"\u6295\u7968",voted:"\u6295\u7968\u6E08\u307F",voteCount:"{n} \u7968",untitled:"\u7121\u984C\u306E\u30A2\u30A4\u30C7\u30A2"},leaderboard:{title:"\u30B0\u30ED\u30FC\u30D0\u30EB\u30E9\u30F3\u30AD\u30F3\u30B0",loading:"\u30E9\u30F3\u30AD\u30F3\u30B0\u3092\u8AAD\u307F\u8FBC\u307F\u4E2D\u2026",empty:"\u307E\u3060\u53C2\u52A0\u8005\u304C\u3044\u307E\u305B\u3093 \u2014 \u6700\u521D\u306E\u4E00\u4EBA\u306B\u306A\u308D\u3046\u3002",signInPrompt:"\u30B5\u30A4\u30F3\u30A4\u30F3\u3057\u3066\u9806\u4F4D\u3092\u898B\u308B \u2192",myRank:"\u4ECA\u6708\u306E\u9806\u4F4D\u306F #{rank}",footer:"\u4ECA\u6708\u306E\u30B0\u30ED\u30FC\u30D0\u30EB\u8CA2\u732E\u8005 \xB7 \u30DD\u30A4\u30F3\u30C8\u306F\u6BCE\u6708\u30EA\u30BB\u30C3\u30C8",anon:"\u533F\u540D"},account:{title:"Mushi \u30A2\u30AB\u30A6\u30F3\u30C8",checkEmailTitle:"\u30E1\u30FC\u30EB\u3092\u78BA\u8A8D",joinTitle:"\u30B3\u30DF\u30E5\u30CB\u30C6\u30A3\u306B\u53C2\u52A0",emailLabel:"\u30E1\u30FC\u30EB\u30A2\u30C9\u30EC\u30B9",emailPlaceholder:"\u30E1\u30FC\u30EB",signInPrompt:"\u30B5\u30A4\u30F3\u30A4\u30F3\u3059\u308B\u3068\u5168\u30A2\u30D7\u30EA\u306E\u30EC\u30DD\u30FC\u30C8\u3068\u30E9\u30F3\u30AD\u30F3\u30B0\u304C\u898B\u3089\u308C\u307E\u3059\u3002\u30D1\u30B9\u30EF\u30FC\u30C9\u4E0D\u8981\u3002",magicLinkSent:"{email} \u306B\u30B5\u30A4\u30F3\u30A4\u30F3\u30EA\u30F3\u30AF\u3092\u9001\u308A\u307E\u3057\u305F\u3002\u30EA\u30F3\u30AF\u3092\u958B\u3044\u3066\u30EC\u30DD\u30FC\u30C8\u3092\u63A5\u7D9A\u3057\u3066\u304F\u3060\u3055\u3044\u3002",resendEmail:"\u30E1\u30FC\u30EB\u3092\u518D\u9001",sendLink:"\u30B5\u30A4\u30F3\u30A4\u30F3\u30EA\u30F3\u30AF\u3092\u9001\u308B",sending:"\u9001\u4FE1\u4E2D\u2026",crossAppReports:"\u5168\u30A2\u30D7\u30EA\u306E\u30EC\u30DD\u30FC\u30C8 \u2192",viewLeaderboard:"\u30B0\u30ED\u30FC\u30D0\u30EB\u30E9\u30F3\u30AD\u30F3\u30B0 \u2192",signOut:"\u30B5\u30A4\u30F3\u30A2\u30A6\u30C8",rankSummary:"\u9806\u4F4D #{rank} \xB7 \u4ECA\u6708 {points} pts"},crossApp:{title:"\u30DE\u30A4\u30EC\u30DD\u30FC\u30C8",loading:"\u30EC\u30DD\u30FC\u30C8\u3092\u8AAD\u307F\u8FBC\u307F\u4E2D\u2026",empty:"\u307E\u3060\u30EC\u30DD\u30FC\u30C8\u304C\u3042\u308A\u307E\u305B\u3093\u3002",unknownApp:"\u4E0D\u660E\u306A\u30A2\u30D7\u30EA"},thread:{loading:"\u66F4\u65B0\u3092\u8AAD\u307F\u8FBC\u307F\u4E2D\u2026",replyPlaceholder:"\u958B\u767A\u8005\u306B\u8FD4\u4FE1\u2026"},success:{done:"\u9589\u3058\u308B",trackReport:"\u8FFD\u8DE1\u3059\u308B",receipt:"\u53D7\u4ED8",delivering:"\u30C1\u30FC\u30E0\u306B\u9001\u4FE1\u4E2D\u2026",queuedOffline:"\u30AA\u30D5\u30E9\u30A4\u30F3\u5F85\u6A5F\u4E2D",queuedHint:"\u30AA\u30F3\u30E9\u30A4\u30F3\u306B\u623B\u308A\u6B21\u7B2C\u9001\u4FE1\u3057\u307E\u3059\u3002",rateLimited:"\u9001\u4FE1\u304C\u65E9\u3059\u304E\u307E\u3059",rateLimitedHint:"\u7D041\u5206\u5F85\u3063\u3066\u304F\u3060\u3055\u3044\u3002\u30EC\u30DD\u30FC\u30C8\u306F\u30AD\u30E5\u30FC\u306B\u5165\u308A\u3001\u81EA\u52D5\u3067\u518D\u9001\u3057\u307E\u3059\u3002",quotaBlocked:"\u3053\u306E\u30EC\u30DD\u30FC\u30C8\u306F\u53D7\u3051\u4ED8\u3051\u3089\u308C\u307E\u305B\u3093\u3067\u3057\u305F",quotaBlockedHint:"\u30D7\u30ED\u30B8\u30A7\u30AF\u30C8\u306E\u67A0\u307E\u305F\u306F\u30D7\u30E9\u30F3\u3067\u62D2\u5426\u3055\u308C\u307E\u3057\u305F\u3002\u30A2\u30D7\u30EA\u7BA1\u7406\u8005\u306B Billing \u3092\u78BA\u8A8D\u3057\u3066\u3082\u3089\u3063\u3066\u304F\u3060\u3055\u3044\u3002",permanentFailed:"\u30EC\u30DD\u30FC\u30C8\u3092\u9001\u308C\u307E\u305B\u3093\u3067\u3057\u305F",permanentFailedHint:"\u30DA\u30A4\u30ED\u30FC\u30C9\u304C\u62D2\u5426\u3055\u308C\u307E\u3057\u305F\uFF08\u30B5\u30A4\u30BA\u8D85\u904E\u306A\u3069\uFF09\u3002\u77ED\u3044\u6587\u9762\u304B\u30B9\u30AF\u30EA\u30FC\u30F3\u30B7\u30E7\u30C3\u30C8\u306A\u3057\u3067\u518D\u8A66\u884C\u3057\u3066\u304F\u3060\u3055\u3044\u3002",retrying:"\u30AD\u30E5\u30FC \u2014 \u518D\u8A66\u884C\u4E2D",retryingHint:"\u3044\u307E\u30B5\u30FC\u30D0\u30FC\u306B\u5C4A\u304D\u307E\u305B\u3093\u3067\u3057\u305F\u3002\u30D0\u30C3\u30AF\u30B0\u30E9\u30A6\u30F3\u30C9\u3067\u518D\u9001\u3057\u307E\u3059\u3002",trackOnMushi:"Mushi\u3067\u8FFD\u8DE1",slaDefault:"\u9032\u6357\u304C\u3042\u308C\u3070\u3053\u3053\u3067\u304A\u77E5\u3089\u305B\u3057\u307E\u3059\u3002",screenshotDropped:"\u30B9\u30AF\u30EA\u30FC\u30F3\u30B7\u30E7\u30C3\u30C8\u306F\u30B5\u30A4\u30BA\u8D85\u904E\u306E\u305F\u3081\u6DFB\u4ED8\u3067\u304D\u305A\u3001\u30EC\u30DD\u30FC\u30C8\u306E\u307F\u9001\u4FE1\u3057\u307E\u3057\u305F\u3002"},featureRequest:{label:"\u6A5F\u80FD\u30EA\u30AF\u30A8\u30B9\u30C8"},betaStrip:{defaultMessage:"{appName}\u306F\u958B\u767A\u521D\u671F\u6BB5\u968E\u3067\u3059",contactHint:"\u3054\u8CEA\u554F\u306F {email} \u307E\u3067",teamSees:"{appName}\u306E\u30C1\u30FC\u30E0\u304C\u78BA\u8A8D\u3057\u307E\u3059",teamSeesGeneric:"\u30C1\u30FC\u30E0\u304C\u78BA\u8A8D\u3057\u307E\u3059",ariaLabel:"\u30D9\u30FC\u30BF\u7248\u306E\u304A\u77E5\u3089\u305B"},changelog:{whatsNew:"{version} \u306E\u65B0\u6A5F\u80FD"},poweredBy:"\u30D0\u30B0\u5831\u544A\u306F Mushi \u3067"}};var Zs={widget:{trigger:"\u0E23\u0E32\u0E22\u0E07\u0E32\u0E19\u0E1B\u0E31\u0E0D\u0E2B\u0E32",title:"\u0E23\u0E32\u0E22\u0E07\u0E32\u0E19\u0E1B\u0E31\u0E0D\u0E2B\u0E32",close:"\u0E1B\u0E34\u0E14",back:"\u0E01\u0E25\u0E31\u0E1A",submit:"\u0E2A\u0E48\u0E07",submitting:"\u0E01\u0E33\u0E25\u0E31\u0E07\u0E2A\u0E48\u0E07\u2026",submitted:"\u0E02\u0E2D\u0E1A\u0E04\u0E38\u0E13\u0E04\u0E23\u0E31\u0E1A/\u0E04\u0E48\u0E30! \u0E23\u0E32\u0E22\u0E07\u0E32\u0E19\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13\u0E16\u0E39\u0E01\u0E2A\u0E48\u0E07\u0E41\u0E25\u0E49\u0E27",error:"\u0E40\u0E01\u0E34\u0E14\u0E02\u0E49\u0E2D\u0E1C\u0E34\u0E14\u0E1E\u0E25\u0E32\u0E14 \u0E01\u0E23\u0E38\u0E13\u0E32\u0E25\u0E2D\u0E07\u0E43\u0E2B\u0E21\u0E48\u0E2D\u0E35\u0E01\u0E04\u0E23\u0E31\u0E49\u0E07"},step1:{moreNav:{communityIdeas:"\u0E44\u0E2D\u0E40\u0E14\u0E35\u0E22\u0E08\u0E32\u0E01\u0E0A\u0E38\u0E21\u0E0A\u0E19",leaderboard:"\u0E01\u0E23\u0E30\u0E14\u0E32\u0E19\u0E1C\u0E39\u0E49\u0E19\u0E33",joinCommunity:"\u0E40\u0E02\u0E49\u0E32\u0E23\u0E48\u0E27\u0E21\u0E0A\u0E38\u0E21\u0E0A\u0E19 \xB7 \u0E15\u0E34\u0E14\u0E15\u0E32\u0E21\u0E23\u0E32\u0E22\u0E07\u0E32\u0E19\u0E02\u0E49\u0E32\u0E21\u0E41\u0E2D\u0E1B",myAccount:"\u0E1A\u0E31\u0E0D\u0E0A\u0E35\u0E02\u0E2D\u0E07\u0E09\u0E31\u0E19"},categories:{bug:"\u0E1A\u0E31\u0E01",slow:"\u0E0A\u0E49\u0E32 / \u0E41\u0E25\u0E04",visual:"\u0E41\u0E2A\u0E14\u0E07\u0E1C\u0E25\u0E1C\u0E34\u0E14\u0E1B\u0E01\u0E15\u0E34",confusing:"\u0E2A\u0E31\u0E1A\u0E2A\u0E19",other:"\u0E2D\u0E37\u0E48\u0E19\u0E46"}},step2:{intents:{bug:["\u0E41\u0E04\u0E23\u0E0A","\u0E44\u0E21\u0E48\u0E15\u0E2D\u0E1A\u0E2A\u0E19\u0E2D\u0E07","\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E2B\u0E32\u0E22","\u0E1C\u0E25\u0E25\u0E31\u0E1E\u0E18\u0E4C\u0E1C\u0E34\u0E14","\u0E2D\u0E37\u0E48\u0E19\u0E46"],slow:["\u0E42\u0E2B\u0E25\u0E14\u0E2B\u0E19\u0E49\u0E32","\u0E01\u0E32\u0E23\u0E42\u0E15\u0E49\u0E15\u0E2D\u0E1A","API","\u0E41\u0E2D\u0E19\u0E34\u0E40\u0E21\u0E0A\u0E31\u0E19","\u0E2D\u0E37\u0E48\u0E19\u0E46"],visual:["\u0E40\u0E25\u0E22\u0E4C\u0E40\u0E2D\u0E32\u0E15\u0E4C\u0E40\u0E2A\u0E35\u0E22","\u0E0B\u0E49\u0E2D\u0E19\u0E17\u0E31\u0E1A","\u0E2D\u0E07\u0E04\u0E4C\u0E1B\u0E23\u0E30\u0E01\u0E2D\u0E1A\u0E2B\u0E32\u0E22","\u0E2A\u0E35/\u0E1F\u0E2D\u0E19\u0E15\u0E4C\u0E1C\u0E34\u0E14","\u0E2D\u0E37\u0E48\u0E19\u0E46"],confusing:["\u0E1B\u0E49\u0E32\u0E22\u0E44\u0E21\u0E48\u0E0A\u0E31\u0E14","\u0E44\u0E21\u0E48\u0E21\u0E35\u0E04\u0E33\u0E41\u0E19\u0E30\u0E19\u0E33","\u0E02\u0E31\u0E49\u0E19\u0E15\u0E2D\u0E19\u0E44\u0E21\u0E48\u0E04\u0E32\u0E14\u0E04\u0E34\u0E14","\u0E2B\u0E25\u0E07\u0E17\u0E32\u0E07","\u0E2D\u0E37\u0E48\u0E19\u0E46"],other:["\u0E02\u0E2D\u0E1F\u0E35\u0E40\u0E08\u0E2D\u0E23\u0E4C","\u0E01\u0E32\u0E23\u0E40\u0E02\u0E49\u0E32\u0E16\u0E36\u0E07","\u0E1E\u0E34\u0E21\u0E1E\u0E4C\u0E1C\u0E34\u0E14","\u0E2D\u0E37\u0E48\u0E19\u0E46"]}},step3:{descriptionPlaceholder:"\u0E40\u0E01\u0E34\u0E14\u0E2D\u0E30\u0E44\u0E23\u0E02\u0E36\u0E49\u0E19?",featurePlaceholder:"\u0E2D\u0E18\u0E34\u0E1A\u0E32\u0E22\u0E44\u0E2D\u0E40\u0E14\u0E35\u0E22\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13\u2026",submitHint:"{key} + Enter \u0E40\u0E1E\u0E37\u0E48\u0E2D\u0E2A\u0E48\u0E07",screenshotButton:"\u0E20\u0E32\u0E1E\u0E2B\u0E19\u0E49\u0E32\u0E08\u0E2D",screenshotAttached:"\u0E41\u0E19\u0E1A\u0E20\u0E32\u0E1E\u0E2B\u0E19\u0E49\u0E32\u0E08\u0E2D\u0E41\u0E25\u0E49\u0E27",screenshotCapturing:"\u0E01\u0E33\u0E25\u0E31\u0E07\u0E16\u0E48\u0E32\u0E22\u0E2A\u0E01\u0E23\u0E35\u0E19\u0E0A\u0E47\u0E2D\u0E15\u2026",screenshotRetry:"\u0E25\u0E2D\u0E07\u0E2D\u0E35\u0E01\u0E04\u0E23\u0E31\u0E49\u0E07",screenshotShareTab:"\u0E41\u0E0A\u0E23\u0E4C\u0E41\u0E17\u0E47\u0E1A\u0E19\u0E35\u0E49\u0E41\u0E17\u0E19",screenshotErrors:{permission:"\u0E01\u0E32\u0E23\u0E08\u0E31\u0E1A\u0E20\u0E32\u0E1E\u0E16\u0E39\u0E01\u0E1A\u0E25\u0E47\u0E2D\u0E01 \u0E42\u0E1B\u0E23\u0E14\u0E2D\u0E19\u0E38\u0E0D\u0E32\u0E15\u0E41\u0E25\u0E49\u0E27\u0E25\u0E2D\u0E07\u0E2D\u0E35\u0E01\u0E04\u0E23\u0E31\u0E49\u0E07",unsupported:"\u0E40\u0E1A\u0E23\u0E32\u0E27\u0E4C\u0E40\u0E0B\u0E2D\u0E23\u0E4C\u0E19\u0E35\u0E49\u0E08\u0E31\u0E1A\u0E20\u0E32\u0E1E\u0E2B\u0E19\u0E49\u0E32\u0E44\u0E21\u0E48\u0E44\u0E14\u0E49 \u0E42\u0E1B\u0E23\u0E14\u0E2D\u0E18\u0E34\u0E1A\u0E32\u0E22\u0E41\u0E17\u0E19",taint:"\u0E40\u0E19\u0E37\u0E49\u0E2D\u0E2B\u0E32\u0E08\u0E32\u0E01\u0E40\u0E27\u0E47\u0E1A\u0E2D\u0E37\u0E48\u0E19\u0E1A\u0E25\u0E47\u0E2D\u0E01\u0E01\u0E32\u0E23\u0E08\u0E31\u0E1A\u0E20\u0E32\u0E1E \u0E42\u0E1B\u0E23\u0E14\u0E2D\u0E18\u0E34\u0E1A\u0E32\u0E22\u0E41\u0E17\u0E19",timeout:"\u0E01\u0E32\u0E23\u0E08\u0E31\u0E1A\u0E20\u0E32\u0E1E\u0E2B\u0E21\u0E14\u0E40\u0E27\u0E25\u0E32",csp:"\u0E19\u0E42\u0E22\u0E1A\u0E32\u0E22\u0E04\u0E27\u0E32\u0E21\u0E1B\u0E25\u0E2D\u0E14\u0E20\u0E31\u0E22\u0E02\u0E2D\u0E07\u0E40\u0E27\u0E47\u0E1A\u0E19\u0E35\u0E49\u0E1A\u0E25\u0E47\u0E2D\u0E01\u0E01\u0E32\u0E23\u0E08\u0E31\u0E1A\u0E20\u0E32\u0E1E",error:"\u0E08\u0E31\u0E1A\u0E20\u0E32\u0E1E\u0E44\u0E21\u0E48\u0E2A\u0E33\u0E40\u0E23\u0E47\u0E08"},screenshotPreviewAlt:"\u0E15\u0E31\u0E27\u0E2D\u0E22\u0E48\u0E32\u0E07\u0E2A\u0E01\u0E23\u0E35\u0E19\u0E0A\u0E47\u0E2D\u0E15\u0E17\u0E35\u0E48\u0E08\u0E30\u0E16\u0E39\u0E01\u0E2A\u0E48\u0E07",screenshotSensitiveHint:"\u0E15\u0E23\u0E27\u0E08\u0E2A\u0E2D\u0E1A\u0E15\u0E31\u0E27\u0E2D\u0E22\u0E48\u0E32\u0E07\u0E20\u0E32\u0E1E \u2014 \u0E2B\u0E32\u0E01\u0E21\u0E35\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E2A\u0E48\u0E27\u0E19\u0E15\u0E31\u0E27 (\u0E22\u0E2D\u0E14\u0E40\u0E07\u0E34\u0E19 \u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E2A\u0E48\u0E27\u0E19\u0E1A\u0E38\u0E04\u0E04\u0E25) \u0E42\u0E1B\u0E23\u0E14\u0E25\u0E1A\u0E2D\u0E2D\u0E01",elementButton:"\u0E0A\u0E35\u0E49\u0E08\u0E38\u0E14\u0E17\u0E35\u0E48\u0E21\u0E35\u0E1B\u0E31\u0E0D\u0E2B\u0E32",elementSelected:"\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E2D\u0E07\u0E04\u0E4C\u0E1B\u0E23\u0E30\u0E01\u0E2D\u0E1A\u0E41\u0E25\u0E49\u0E27",elementCapturing:"\u0E04\u0E25\u0E34\u0E01\u0E2D\u0E07\u0E04\u0E4C\u0E1B\u0E23\u0E30\u0E01\u0E2D\u0E1A\u0E1A\u0E19\u0E2B\u0E19\u0E49\u0E32\u2026",elementFailed:"\u0E44\u0E21\u0E48\u0E2A\u0E32\u0E21\u0E32\u0E23\u0E16\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E44\u0E14\u0E49 \u2014 \u0E42\u0E1B\u0E23\u0E14\u0E2D\u0E18\u0E34\u0E1A\u0E32\u0E22\u0E41\u0E17\u0E19",elementSelectorHint:"\u0E04\u0E25\u0E34\u0E01\u0E2D\u0E07\u0E04\u0E4C\u0E1B\u0E23\u0E30\u0E01\u0E2D\u0E1A\u0E43\u0E14\u0E01\u0E47\u0E44\u0E14\u0E49 \xB7 Esc \u0E40\u0E1E\u0E37\u0E48\u0E2D\u0E22\u0E01\u0E40\u0E25\u0E34\u0E01"},panel:{title:"\u0E2A\u0E48\u0E07\u0E04\u0E27\u0E32\u0E21\u0E04\u0E34\u0E14\u0E40\u0E2B\u0E47\u0E19",more:"\u0E40\u0E1E\u0E34\u0E48\u0E21\u0E40\u0E15\u0E34\u0E21\u2026",pointAt:"\u0E0A\u0E35\u0E49\u0E08\u0E38\u0E14\u0E17\u0E35\u0E48\u0E21\u0E35\u0E1B\u0E31\u0E0D\u0E2B\u0E32",remove:"\u0E25\u0E1A",markUp:"\u0E17\u0E33\u0E40\u0E04\u0E23\u0E37\u0E48\u0E2D\u0E07\u0E2B\u0E21\u0E32\u0E22",privacy:"\u0E19\u0E31\u0E01\u0E1E\u0E31\u0E12\u0E19\u0E32\u0E41\u0E2D\u0E1B\u0E40\u0E17\u0E48\u0E32\u0E19\u0E31\u0E49\u0E19\u0E17\u0E35\u0E48\u0E40\u0E2B\u0E47\u0E19 \u0E42\u0E1B\u0E23\u0E14\u0E25\u0E1A\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E2A\u0E48\u0E27\u0E19\u0E15\u0E31\u0E27\u0E2D\u0E2D\u0E01",send:"\u0E2A\u0E48\u0E07",yourReports:"\u0E23\u0E32\u0E22\u0E07\u0E32\u0E19\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13",newCount:"\u0E43\u0E2B\u0E21\u0E48 {n}",moreOptions:"\u0E15\u0E31\u0E27\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E40\u0E1E\u0E34\u0E48\u0E21\u0E40\u0E15\u0E34\u0E21",reportTitle:"\u0E23\u0E32\u0E22\u0E07\u0E32\u0E19\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13",notifyMe:"\u0E41\u0E08\u0E49\u0E07\u0E40\u0E15\u0E37\u0E2D\u0E19\u0E09\u0E31\u0E19",notifyOn:"\u0E40\u0E1B\u0E34\u0E14\u0E01\u0E32\u0E23\u0E41\u0E08\u0E49\u0E07\u0E40\u0E15\u0E37\u0E2D\u0E19\u0E41\u0E25\u0E49\u0E27"},assistant:{defaultLabel:"\u0E16\u0E32\u0E21",defaultGreeting:"\u0E16\u0E32\u0E21\u0E40\u0E01\u0E35\u0E48\u0E22\u0E27\u0E01\u0E31\u0E1A\u0E2B\u0E19\u0E49\u0E32\u0E19\u0E35\u0E49 \u2014 \u0E43\u0E0A\u0E49\u0E40\u0E09\u0E1E\u0E32\u0E30\u0E2A\u0E34\u0E48\u0E07\u0E17\u0E35\u0E48\u0E04\u0E38\u0E13\u0E40\u0E2B\u0E47\u0E19\u0E1A\u0E19\u0E2B\u0E19\u0E49\u0E32\u0E08\u0E2D",inputPlaceholder:"\u0E1E\u0E34\u0E21\u0E1E\u0E4C\u0E04\u0E33\u0E16\u0E32\u0E21\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13\u2026",sendAriaLabel:"\u0E2A\u0E48\u0E07",hubDescription:"\u0E02\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E0A\u0E48\u0E27\u0E22\u0E40\u0E2B\u0E25\u0E37\u0E2D\u0E43\u0E19\u0E01\u0E32\u0E23\u0E43\u0E0A\u0E49\u0E41\u0E2D\u0E1B",thinking:"\u0E01\u0E33\u0E25\u0E31\u0E07\u0E04\u0E34\u0E14\u2026",fileReportCta:"\u0E2A\u0E48\u0E07\u0E23\u0E32\u0E22\u0E07\u0E32\u0E19\u0E41\u0E17\u0E19",stillStuckCta:"\u0E22\u0E31\u0E07\u0E41\u0E01\u0E49\u0E44\u0E21\u0E48\u0E44\u0E14\u0E49? \u0E2A\u0E48\u0E07\u0E23\u0E32\u0E22\u0E07\u0E32\u0E19",errors:{noResponse:"\u0E44\u0E21\u0E48\u0E21\u0E35\u0E01\u0E32\u0E23\u0E15\u0E2D\u0E1A\u0E01\u0E25\u0E31\u0E1A \u2014 \u0E15\u0E23\u0E27\u0E08\u0E2A\u0E2D\u0E1A\u0E01\u0E32\u0E23\u0E40\u0E0A\u0E37\u0E48\u0E2D\u0E21\u0E15\u0E48\u0E2D\u0E41\u0E25\u0E49\u0E27\u0E25\u0E2D\u0E07\u0E2D\u0E35\u0E01\u0E04\u0E23\u0E31\u0E49\u0E07",generic:"\u0E40\u0E0A\u0E37\u0E48\u0E2D\u0E21\u0E15\u0E48\u0E2D\u0E1C\u0E39\u0E49\u0E0A\u0E48\u0E27\u0E22\u0E44\u0E21\u0E48\u0E44\u0E14\u0E49 \u0E25\u0E2D\u0E07\u0E2D\u0E35\u0E01\u0E04\u0E23\u0E31\u0E49\u0E07\u0E43\u0E19\u0E2D\u0E35\u0E01\u0E2A\u0E31\u0E01\u0E04\u0E23\u0E39\u0E48"}},flows:{reports:{title:"\u0E23\u0E32\u0E22\u0E07\u0E32\u0E19\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13",loading:"\u0E01\u0E33\u0E25\u0E31\u0E07\u0E42\u0E2B\u0E25\u0E14\u0E23\u0E32\u0E22\u0E07\u0E32\u0E19\u2026"},roadmap:{title:"\u0E44\u0E2D\u0E40\u0E14\u0E35\u0E22\u0E08\u0E32\u0E01\u0E0A\u0E38\u0E21\u0E0A\u0E19",loading:"\u0E01\u0E33\u0E25\u0E31\u0E07\u0E42\u0E2B\u0E25\u0E14\u0E44\u0E2D\u0E40\u0E14\u0E35\u0E22\u2026",empty:"\u0E22\u0E31\u0E07\u0E44\u0E21\u0E48\u0E21\u0E35\u0E44\u0E2D\u0E40\u0E14\u0E35\u0E22 \u0E40\u0E1B\u0E47\u0E19\u0E04\u0E19\u0E41\u0E23\u0E01\u0E17\u0E35\u0E48\u0E40\u0E2A\u0E19\u0E2D\u0E44\u0E14\u0E49",shipped:"\u0E1B\u0E25\u0E48\u0E2D\u0E22\u0E41\u0E25\u0E49\u0E27",vote:"\u0E42\u0E2B\u0E27\u0E15",voted:"\u0E42\u0E2B\u0E27\u0E15\u0E41\u0E25\u0E49\u0E27",voteCount:"{n} \u0E42\u0E2B\u0E27\u0E15",untitled:"\u0E44\u0E2D\u0E40\u0E14\u0E35\u0E22\u0E44\u0E21\u0E48\u0E21\u0E35\u0E0A\u0E37\u0E48\u0E2D"},leaderboard:{title:"\u0E01\u0E23\u0E30\u0E14\u0E32\u0E19\u0E1C\u0E39\u0E49\u0E19\u0E33\u0E17\u0E31\u0E48\u0E27\u0E42\u0E25\u0E01",loading:"\u0E01\u0E33\u0E25\u0E31\u0E07\u0E42\u0E2B\u0E25\u0E14\u0E01\u0E23\u0E30\u0E14\u0E32\u0E19\u0E1C\u0E39\u0E49\u0E19\u0E33\u2026",empty:"\u0E22\u0E31\u0E07\u0E44\u0E21\u0E48\u0E21\u0E35\u0E1C\u0E39\u0E49\u0E23\u0E48\u0E27\u0E21\u0E2A\u0E19\u0E31\u0E1A\u0E2A\u0E19\u0E38\u0E19 \u2014 \u0E21\u0E32\u0E40\u0E1B\u0E47\u0E19\u0E04\u0E19\u0E41\u0E23\u0E01",signInPrompt:"\u0E40\u0E02\u0E49\u0E32\u0E2A\u0E39\u0E48\u0E23\u0E30\u0E1A\u0E1A\u0E40\u0E1E\u0E37\u0E48\u0E2D\u0E14\u0E39\u0E2D\u0E31\u0E19\u0E14\u0E31\u0E1A\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13 \u2192",myRank:"\u0E2D\u0E31\u0E19\u0E14\u0E31\u0E1A\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13\u0E04\u0E37\u0E2D #{rank} \u0E40\u0E14\u0E37\u0E2D\u0E19\u0E19\u0E35\u0E49",footer:"\u0E1C\u0E39\u0E49\u0E23\u0E48\u0E27\u0E21\u0E2A\u0E19\u0E31\u0E1A\u0E2A\u0E19\u0E38\u0E19\u0E17\u0E31\u0E48\u0E27\u0E42\u0E25\u0E01\u0E40\u0E14\u0E37\u0E2D\u0E19\u0E19\u0E35\u0E49 \xB7 \u0E04\u0E30\u0E41\u0E19\u0E19\u0E23\u0E35\u0E40\u0E0B\u0E47\u0E15\u0E17\u0E38\u0E01\u0E40\u0E14\u0E37\u0E2D\u0E19",anon:"\u0E44\u0E21\u0E48\u0E23\u0E30\u0E1A\u0E38\u0E0A\u0E37\u0E48\u0E2D"},account:{title:"\u0E1A\u0E31\u0E0D\u0E0A\u0E35 Mushi",checkEmailTitle:"\u0E15\u0E23\u0E27\u0E08\u0E2A\u0E2D\u0E1A\u0E2D\u0E35\u0E40\u0E21\u0E25",joinTitle:"\u0E40\u0E02\u0E49\u0E32\u0E23\u0E48\u0E27\u0E21\u0E0A\u0E38\u0E21\u0E0A\u0E19",emailLabel:"\u0E17\u0E35\u0E48\u0E2D\u0E22\u0E39\u0E48\u0E2D\u0E35\u0E40\u0E21\u0E25",emailPlaceholder:"\u0E2D\u0E35\u0E40\u0E21\u0E25",signInPrompt:"\u0E40\u0E02\u0E49\u0E32\u0E2A\u0E39\u0E48\u0E23\u0E30\u0E1A\u0E1A\u0E40\u0E1E\u0E37\u0E48\u0E2D\u0E14\u0E39\u0E23\u0E32\u0E22\u0E07\u0E32\u0E19\u0E17\u0E38\u0E01\u0E41\u0E2D\u0E1B\u0E41\u0E25\u0E30\u0E44\u0E15\u0E48\u0E2D\u0E31\u0E19\u0E14\u0E31\u0E1A \u0E44\u0E21\u0E48\u0E15\u0E49\u0E2D\u0E07\u0E43\u0E0A\u0E49\u0E23\u0E2B\u0E31\u0E2A\u0E1C\u0E48\u0E32\u0E19",magicLinkSent:"\u0E40\u0E23\u0E32\u0E2A\u0E48\u0E07\u0E25\u0E34\u0E07\u0E01\u0E4C\u0E40\u0E02\u0E49\u0E32\u0E2A\u0E39\u0E48\u0E23\u0E30\u0E1A\u0E1A\u0E44\u0E1B\u0E17\u0E35\u0E48 {email} \u0E41\u0E25\u0E49\u0E27 \u0E04\u0E25\u0E34\u0E01\u0E40\u0E1E\u0E37\u0E48\u0E2D\u0E40\u0E0A\u0E37\u0E48\u0E2D\u0E21\u0E23\u0E32\u0E22\u0E07\u0E32\u0E19\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13",resendEmail:"\u0E2A\u0E48\u0E07\u0E2D\u0E35\u0E40\u0E21\u0E25\u0E2D\u0E35\u0E01\u0E04\u0E23\u0E31\u0E49\u0E07",sendLink:"\u0E2A\u0E48\u0E07\u0E25\u0E34\u0E07\u0E01\u0E4C\u0E40\u0E02\u0E49\u0E32\u0E2A\u0E39\u0E48\u0E23\u0E30\u0E1A\u0E1A",sending:"\u0E01\u0E33\u0E25\u0E31\u0E07\u0E2A\u0E48\u0E07\u2026",crossAppReports:"\u0E23\u0E32\u0E22\u0E07\u0E32\u0E19\u0E02\u0E2D\u0E07\u0E09\u0E31\u0E19\u0E17\u0E38\u0E01\u0E41\u0E2D\u0E1B \u2192",viewLeaderboard:"\u0E14\u0E39\u0E01\u0E23\u0E30\u0E14\u0E32\u0E19\u0E1C\u0E39\u0E49\u0E19\u0E33\u0E17\u0E31\u0E48\u0E27\u0E42\u0E25\u0E01 \u2192",signOut:"\u0E2D\u0E2D\u0E01\u0E08\u0E32\u0E01\u0E23\u0E30\u0E1A\u0E1A",rankSummary:"\u0E2D\u0E31\u0E19\u0E14\u0E31\u0E1A #{rank} \xB7 {points} pts \u0E40\u0E14\u0E37\u0E2D\u0E19\u0E19\u0E35\u0E49"},crossApp:{title:"\u0E23\u0E32\u0E22\u0E07\u0E32\u0E19\u0E02\u0E2D\u0E07\u0E09\u0E31\u0E19",loading:"\u0E01\u0E33\u0E25\u0E31\u0E07\u0E42\u0E2B\u0E25\u0E14\u0E23\u0E32\u0E22\u0E07\u0E32\u0E19\u2026",empty:"\u0E22\u0E31\u0E07\u0E44\u0E21\u0E48\u0E21\u0E35\u0E23\u0E32\u0E22\u0E07\u0E32\u0E19",unknownApp:"\u0E41\u0E2D\u0E1B\u0E44\u0E21\u0E48\u0E17\u0E23\u0E32\u0E1A\u0E0A\u0E37\u0E48\u0E2D"},thread:{loading:"\u0E01\u0E33\u0E25\u0E31\u0E07\u0E42\u0E2B\u0E25\u0E14\u0E04\u0E27\u0E32\u0E21\u0E04\u0E37\u0E1A\u0E2B\u0E19\u0E49\u0E32\u2026",replyPlaceholder:"\u0E15\u0E2D\u0E1A\u0E19\u0E31\u0E01\u0E1E\u0E31\u0E12\u0E19\u0E32\u2026"},success:{done:"\u0E40\u0E2A\u0E23\u0E47\u0E08\u0E2A\u0E34\u0E49\u0E19",trackReport:"\u0E15\u0E34\u0E14\u0E15\u0E32\u0E21",receipt:"\u0E43\u0E1A\u0E23\u0E31\u0E1A",delivering:"\u0E01\u0E33\u0E25\u0E31\u0E07\u0E2A\u0E48\u0E07\u0E44\u0E1B\u0E22\u0E31\u0E07\u0E17\u0E35\u0E21\u2026",queuedOffline:"\u0E04\u0E34\u0E27\u0E2D\u0E2D\u0E1F\u0E44\u0E25\u0E19\u0E4C",queuedHint:"\u0E08\u0E30\u0E2A\u0E48\u0E07\u0E17\u0E31\u0E19\u0E17\u0E35\u0E17\u0E35\u0E48\u0E04\u0E38\u0E13\u0E01\u0E25\u0E31\u0E1A\u0E21\u0E32\u0E2D\u0E2D\u0E19\u0E44\u0E25\u0E19\u0E4C",rateLimited:"\u0E2A\u0E48\u0E07\u0E16\u0E35\u0E48\u0E40\u0E01\u0E34\u0E19\u0E44\u0E1B",rateLimitedHint:"\u0E23\u0E2D\u0E1B\u0E23\u0E30\u0E21\u0E32\u0E13\u0E2B\u0E19\u0E36\u0E48\u0E07\u0E19\u0E32\u0E17\u0E35 \u2014 \u0E40\u0E23\u0E32\u0E08\u0E31\u0E14\u0E04\u0E34\u0E27\u0E23\u0E32\u0E22\u0E07\u0E32\u0E19\u0E19\u0E35\u0E49\u0E44\u0E27\u0E49\u0E41\u0E25\u0E30\u0E08\u0E30\u0E25\u0E2D\u0E07\u0E43\u0E2B\u0E21\u0E48\u0E43\u0E2B\u0E49\u0E2D\u0E31\u0E15\u0E42\u0E19\u0E21\u0E31\u0E15\u0E34",quotaBlocked:"\u0E44\u0E21\u0E48\u0E2A\u0E32\u0E21\u0E32\u0E23\u0E16\u0E23\u0E31\u0E1A\u0E23\u0E32\u0E22\u0E07\u0E32\u0E19\u0E19\u0E35\u0E49\u0E44\u0E14\u0E49",quotaBlockedHint:"\u0E42\u0E04\u0E27\u0E15\u0E49\u0E32\u0E2B\u0E23\u0E37\u0E2D\u0E41\u0E1E\u0E25\u0E19\u0E02\u0E2D\u0E07\u0E42\u0E1B\u0E23\u0E40\u0E08\u0E01\u0E15\u0E4C\u0E1A\u0E25\u0E47\u0E2D\u0E01\u0E01\u0E32\u0E23\u0E2A\u0E48\u0E07 \u0E02\u0E2D\u0E43\u0E2B\u0E49\u0E40\u0E08\u0E49\u0E32\u0E02\u0E2D\u0E07\u0E41\u0E2D\u0E1B\u0E15\u0E23\u0E27\u0E08 Billing",permanentFailed:"\u0E2A\u0E48\u0E07\u0E23\u0E32\u0E22\u0E07\u0E32\u0E19\u0E19\u0E35\u0E49\u0E44\u0E21\u0E48\u0E44\u0E14\u0E49",permanentFailedHint:"\u0E40\u0E1E\u0E22\u0E4C\u0E42\u0E2B\u0E25\u0E14\u0E16\u0E39\u0E01\u0E1B\u0E0F\u0E34\u0E40\u0E2A\u0E18 (\u0E21\u0E31\u0E01\u0E40\u0E1E\u0E23\u0E32\u0E30\u0E43\u0E2B\u0E0D\u0E48\u0E40\u0E01\u0E34\u0E19\u0E44\u0E1B) \u0E25\u0E2D\u0E07\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E2A\u0E31\u0E49\u0E19\u0E25\u0E07\u0E2B\u0E23\u0E37\u0E2D\u0E44\u0E21\u0E48\u0E41\u0E19\u0E1A\u0E20\u0E32\u0E1E\u0E2B\u0E19\u0E49\u0E32\u0E08\u0E2D",retrying:"\u0E2D\u0E22\u0E39\u0E48\u0E43\u0E19\u0E04\u0E34\u0E27 \u2014 \u0E01\u0E33\u0E25\u0E31\u0E07\u0E25\u0E2D\u0E07\u0E43\u0E2B\u0E21\u0E48",retryingHint:"\u0E15\u0E2D\u0E19\u0E19\u0E35\u0E49\u0E15\u0E34\u0E14\u0E15\u0E48\u0E2D\u0E40\u0E0B\u0E34\u0E23\u0E4C\u0E1F\u0E40\u0E27\u0E2D\u0E23\u0E4C\u0E44\u0E21\u0E48\u0E44\u0E14\u0E49 \u0E40\u0E23\u0E32\u0E08\u0E30\u0E25\u0E2D\u0E07\u0E43\u0E2B\u0E21\u0E48\u0E43\u0E19\u0E1E\u0E37\u0E49\u0E19\u0E2B\u0E25\u0E31\u0E07",trackOnMushi:"\u0E15\u0E34\u0E14\u0E15\u0E32\u0E21\u0E1A\u0E19 Mushi",slaDefault:"\u0E40\u0E23\u0E32\u0E08\u0E30\u0E41\u0E08\u0E49\u0E07\u0E04\u0E27\u0E32\u0E21\u0E04\u0E37\u0E1A\u0E2B\u0E19\u0E49\u0E32\u0E17\u0E35\u0E48\u0E19\u0E35\u0E48",screenshotDropped:"\u0E2A\u0E48\u0E07\u0E23\u0E32\u0E22\u0E07\u0E32\u0E19\u0E42\u0E14\u0E22\u0E44\u0E21\u0E48\u0E21\u0E35\u0E20\u0E32\u0E1E\u0E2B\u0E19\u0E49\u0E32\u0E08\u0E2D \u2014 \u0E44\u0E1F\u0E25\u0E4C\u0E43\u0E2B\u0E0D\u0E48\u0E40\u0E01\u0E34\u0E19\u0E01\u0E27\u0E48\u0E32\u0E08\u0E30\u0E41\u0E19\u0E1A\u0E44\u0E14\u0E49"},featureRequest:{label:"\u0E02\u0E2D\u0E1F\u0E35\u0E40\u0E08\u0E2D\u0E23\u0E4C"},betaStrip:{defaultMessage:"{appName} \u0E2D\u0E22\u0E39\u0E48\u0E23\u0E30\u0E2B\u0E27\u0E48\u0E32\u0E07\u0E01\u0E32\u0E23\u0E1E\u0E31\u0E12\u0E19\u0E32\u0E0A\u0E48\u0E27\u0E07\u0E15\u0E49\u0E19",contactHint:"\u0E21\u0E35\u0E04\u0E33\u0E16\u0E32\u0E21? {email}",teamSees:"\u0E17\u0E35\u0E21 {appName} \u0E08\u0E30\u0E40\u0E2B\u0E47\u0E19\u0E23\u0E32\u0E22\u0E07\u0E32\u0E19\u0E19\u0E35\u0E49",teamSeesGeneric:"\u0E17\u0E35\u0E21\u0E07\u0E32\u0E19\u0E08\u0E30\u0E40\u0E2B\u0E47\u0E19\u0E23\u0E32\u0E22\u0E07\u0E32\u0E19\u0E19\u0E35\u0E49",ariaLabel:"\u0E2A\u0E16\u0E32\u0E19\u0E30\u0E40\u0E1A\u0E15\u0E49\u0E32"},changelog:{whatsNew:"\u0E21\u0E35\u0E2D\u0E30\u0E44\u0E23\u0E43\u0E2B\u0E21\u0E48\u0E43\u0E19 {version}"},poweredBy:"\u0E23\u0E32\u0E22\u0E07\u0E32\u0E19\u0E1A\u0E31\u0E4A\u0E01\u0E42\u0E14\u0E22 Mushi"}};var ea={widget:{trigger:"Reportar problema",title:"Reportar un problema",close:"Cerrar",back:"Volver",submit:"Enviar",submitting:"Enviando\u2026",submitted:"\xA1Gracias! Tu reporte ha sido enviado.",error:"No se pudo enviar tu reporte. Revisa tu conexi\xF3n e int\xE9ntalo de nuevo."},step1:{moreNav:{communityIdeas:"Ideas de la comunidad",leaderboard:"Clasificaci\xF3n",joinCommunity:"Unirse a la comunidad \xB7 Rastrea reportes entre apps",myAccount:"Mi cuenta"},categories:{bug:"Error",slow:"Lento",visual:"Problema visual",confusing:"Confuso",other:"Otro"}},step2:{intents:{bug:["Cierre inesperado","Sin respuesta","P\xE9rdida de datos","Resultado incorrecto","Otro"],slow:["Carga de p\xE1gina","Interacci\xF3n","Llamada API","Animaci\xF3n","Otro"],visual:["Layout roto","Superposici\xF3n","Elemento faltante","Color/fuente incorrecta","Otro"],confusing:["Etiqueta confusa","Sin ayuda","Flujo inesperado","Navegaci\xF3n perdida","Otro"],other:["Solicitud de funci\xF3n","Accesibilidad","Error tipogr\xE1fico","Otro"]}},step3:{descriptionPlaceholder:"\xBFQu\xE9 sali\xF3 mal?",featurePlaceholder:"Describe tu idea\u2026",submitHint:"{key} + Enter para enviar",screenshotButton:"Captura",screenshotAttached:"Captura adjunta",screenshotCapturing:"Tomando captura\u2026",screenshotRetry:"Reintentar",screenshotShareTab:"Compartir esta pesta\xF1a",screenshotErrors:{permission:"Se bloque\xF3 la captura. Perm\xEDtela y reintenta.",unsupported:"Este navegador no puede capturar la p\xE1gina. Descr\xEDbelo.",taint:"Contenido de otro sitio bloque\xF3 la captura. Descr\xEDbelo.",timeout:"La captura tard\xF3 demasiado.",csp:"La pol\xEDtica de seguridad de este sitio bloquea las capturas.",error:"La captura fall\xF3."},screenshotPreviewAlt:"Vista previa de la captura que se enviar\xE1",screenshotSensitiveHint:"Revisa la vista previa \u2014 qu\xEDtala si se ve informaci\xF3n privada (saldos, datos personales).",elementButton:"Se\xF1alarlo",elementSelected:"Elemento seleccionado",elementCapturing:"Haz clic en cualquier elemento\u2026",elementFailed:"No se pudo seleccionar \u2014 descr\xEDbelo en su lugar",elementSelectorHint:"Clic en cualquier elemento \xB7 Esc para cancelar"},panel:{title:"Enviar comentarios",more:"M\xE1s\u2026",pointAt:"Se\xF1alarlo",remove:"Quitar",markUp:"Marcar",privacy:"Solo lo ve el desarrollador de la app. Quita cualquier dato privado.",send:"Enviar",yourReports:"Tus reportes",newCount:"{n} nuevos",moreOptions:"M\xE1s opciones",reportTitle:"Tu reporte",notifyMe:"Avisarme",notifyOn:"Las notificaciones est\xE1n activadas."},assistant:{defaultLabel:"Preguntar",defaultGreeting:"Pregunta sobre esta p\xE1gina \u2014 solo uso lo que ves aqu\xED.",inputPlaceholder:"Escribe tu pregunta\u2026",sendAriaLabel:"Enviar",hubDescription:"Obt\xE9n ayuda para usar esta app",thinking:"Pensando\u2026",fileReportCta:"Enviar un informe en su lugar",stillStuckCta:"\xBFSigues atascado? Env\xEDa un informe",errors:{noResponse:"Sin respuesta \u2014 revisa tu conexi\xF3n e int\xE9ntalo de nuevo.",generic:"No se pudo contactar al asistente. Int\xE9ntalo en un momento."}},flows:{reports:{title:"Tus reportes",loading:"Cargando reportes\u2026"},roadmap:{title:"Ideas de la comunidad",loading:"Cargando ideas\u2026",empty:"A\xFAn no hay ideas. S\xE9 el primero en sugerir una.",shipped:"Publicado",vote:"Votar",voted:"Votado",voteCount:"{n} votos",untitled:"Idea sin t\xEDtulo"},leaderboard:{title:"Clasificaci\xF3n global",loading:"Cargando clasificaci\xF3n\u2026",empty:"A\xFAn no hay colaboradores \u2014 s\xE9 el primero.",signInPrompt:"Inicia sesi\xF3n para ver tu puesto \u2192",myRank:"Est\xE1s en el puesto #{rank} este mes",footer:"Colaboradores globales este mes \xB7 Los puntos se reinician mensualmente",anon:"An\xF3nimo"},account:{title:"Cuenta Mushi",checkEmailTitle:"Revisa tu correo",joinTitle:"\xDAnete a la comunidad",emailLabel:"Correo electr\xF3nico",emailPlaceholder:"Correo",signInPrompt:"Inicia sesi\xF3n para ver tus reportes en todas las apps y subir en la clasificaci\xF3n. Sin contrase\xF1a.",magicLinkSent:"Enviamos un enlace de acceso a {email}. \xC1brelo para conectar tus reportes.",resendEmail:"Reenviar correo",sendLink:"Enviar enlace de acceso",sending:"Enviando\u2026",crossAppReports:"Mis reportes en todas las apps \u2192",viewLeaderboard:"Ver clasificaci\xF3n global \u2192",signOut:"Cerrar sesi\xF3n",rankSummary:"Puesto #{rank} \xB7 {points} pts este mes"},crossApp:{title:"Mis reportes",loading:"Cargando tus reportes\u2026",empty:"A\xFAn no has enviado reportes.",unknownApp:"App desconocida"},thread:{loading:"Cargando novedades\u2026",replyPlaceholder:"Responder al desarrollador\u2026"},success:{done:"Listo",trackReport:"Seguirlo",receipt:"Recibo",delivering:"Enviando al equipo\u2026",queuedOffline:"En cola sin conexi\xF3n",queuedHint:"Lo enviaremos en cuanto vuelvas a estar en l\xEDnea.",rateLimited:"Demasiado r\xE1pido",rateLimitedHint:"Espera un minuto \u2014 encolamos el reporte y lo reintentaremos autom\xE1ticamente.",quotaBlocked:"No se pudo aceptar este reporte",quotaBlockedHint:"La cuota o el plan del proyecto bloque\xF3 el env\xEDo. Pide al due\xF1o que revise Billing.",permanentFailed:"No se pudo enviar este reporte",permanentFailedHint:"El payload fue rechazado (a menudo por tama\xF1o). Intenta con un texto m\xE1s corto o sin captura.",retrying:"En cola \u2014 reintentando",retryingHint:"No pudimos llegar al servidor ahora. Seguiremos intentando en segundo plano.",trackOnMushi:"Seguir en Mushi",slaDefault:"Te avisaremos aqu\xED cuando haya novedades.",screenshotDropped:"Enviado sin la captura de pantalla \u2014 era demasiado grande para adjuntarla."},featureRequest:{label:"Solicitud de funci\xF3n"},betaStrip:{defaultMessage:"{appName} est\xE1 en desarrollo temprano",contactHint:"\xBFPreguntas? {email}",teamSees:"El equipo de {appName} lo ver\xE1",teamSeesGeneric:"El equipo lo ver\xE1",ariaLabel:"Estado beta"},changelog:{whatsNew:"Novedades de {version}"},poweredBy:"Reportes de errores con Mushi"}};var sd={en:Kr,ja:Qs,th:Zs,es:ea};function zn(t){let e=t&&t!=="auto"?t:typeof navigator<"u"?navigator.language??navigator.languages?.[0]:void 0;if(!e)return Kr;let r=e.split("-")[0].toLowerCase();return sd[r]??Kr}function ad(t){let e=t.replace("#",""),r=e.length===3?e[0]+e[0]+e[1]+e[1]+e[2]+e[2]:e.slice(0,6),n=parseInt(r.slice(0,2),16),i=parseInt(r.slice(2,4),16),o=parseInt(r.slice(4,6),16);return `${n},${i},${o}`}function ra(t,e="",r=""){let n=t==="dark",i=n?"dark":"light",o=Vn(i),a=Rs(i,e,r),s=vs[i];return {isDark:n,paper:o.paper,paperRaised:o.paperRaised,ink:o.ink,inkMuted:o.inkMuted,inkFaint:o.inkFaint,inkDim:o.inkDim,rule:o.rule,ruleStrong:o.ruleStrong,widgetAccent:a.accent,widgetAccentWash:a.accentWash,widgetAccentInk:a.accentInk,widgetAccentShadow:n?jn.dark:jn.light,accentRgb:ad(a.accent),shadowInk:n?"0,0,0":"14,13,11",ok:o.ok,danger:o.danger,onAccent:Es,inverse:ys,neonBannerBg:Nr.bg,neonBannerFg:Nr.fg,neonBannerBorder:Nr.border,brandBannerBorder:n?Wn.dark:Wn.light,statusSent:s.sent,statusReview:s.review,statusFixing:s.fixing,statusFixed:s.fixed,statusClosedBg:n?"rgba(242,235,221,0.06)":"rgba(14,13,11,0.05)",fontDisplay:Ur.fontDisplay,fontBody:Ur.fontBody,fontMono:Ur.fontMono,easeStamp:qr.easeStamp,zBanner:At.banner,zPanel:At.panel,zOverlay:At.overlay,fabSize:It.fabSize,panelWidth:It.panelWidth,panelSheetBreakpoint:It.panelSheetBreakpoint}}function vt(t){let e=t.trim();return !e||e.length>64||!/^[#\w\s(),.%/+-]+$/.test(e)||typeof CSS<"u"&&typeof CSS.supports=="function"&&!CSS.supports("color",e)?"":e}function ta([t,e,r]){let n=i=>{let o=i/255;return o<=.03928?o/12.92:((o+.055)/1.055)**2.4};return .2126*n(t)+.7152*n(e)+.0722*n(r)}function Gn(t,e){let r=ta(t),n=i=>(Math.max(r,i)+.05)/(Math.min(r,i)+.05);return e?{ink:"",ratio:n(ta(e))}:n(1)>=n(0)?{ink:"white",ratio:n(1)}:{ink:"black",ratio:n(0)}}function na(t,e="",r=""){let n=ra(t),i=vt(e),o=vt(r),{isDark:a,ink:s,ruleStrong:u,widgetAccent:d,shadowInk:p,ok:h,danger:k,inverse:S,neonBannerBg:T,neonBannerFg:E,neonBannerBorder:w,brandBannerBorder:L,statusSent:M,statusReview:x,statusFixing:f,statusFixed:g,fontMono:m,easeStamp:b,zBanner:C,fabSize:P}=n,{durationFast:v}=qr,{instant:K,panel:Y}=xs,{bannerHeight:ne,gutter:j,panelWidth:ke,panelMaxHeight:Be,panelSheetBreakpoint:me,edgeTabWidth:J}=It,O=P+ws.comfy,G=Ss.control;return ` :host{all:initial;color-scheme:${a?"dark":"light"};font-family:var(--mushi-font,inherit);font-size:var(--mushi-font-size,14px);line-height:1.45;--_bg:var(--mushi-bg,Canvas);--_fg:var(--mushi-fg,CanvasText);--_muted:var(--mushi-muted,color-mix(in oklab,var(--_fg) 64%,transparent));--_surface:var(--mushi-surface,color-mix(in oklab,var(--_bg) 94%,var(--_fg)));--_border:var(--mushi-border,color-mix(in oklab,var(--_fg) 16%,transparent));--_accent:var(--mushi-accent,${i||"var(--_fg)"});--_accent-fg:var(--mushi-accent-fg,${i?o||"white":"var(--_bg)"});--_ok:var(--mushi-success,${h});--_err:var(--mushi-error,${k});--_radius:var(--mushi-radius,12px);--_shadow:var(--mushi-shadow,0 12px 40px rgb(0 0 0 / .18));color:var(--_fg);-webkit-font-smoothing:antialiased;pointer-events:none;}.mushi-trigger,.mushi-banner,.mushi-panel,.mushi-toast{pointer-events:auto;}*,*::before,*::after{box-sizing:border-box;margin:0;padding:0;}button{font-family:inherit;}.mushi-trigger{position:fixed;width:${P}px;height:${P}px;min-width:44px;min-height:44px;border:1px solid var(--_border);border-radius:${G}px;background:var(--_bg);color:var(--_fg);cursor:pointer;display:flex;align-items:center;justify-content:center;font-size:22px;line-height:1;box-shadow:0 1px 0 var(--_border),0 6px 14px -8px rgba(${p},0.35),inset 0 -3px 0 var(--_accent);transition:transform ${v}ms ${b},opacity ${v}ms ${b};overflow:visible;isolation:isolate;}.mushi-trigger::after{content:'';position:absolute;top:6px;right:6px;width:6px;height:6px;border-radius:50%;background:var(--_accent);box-shadow:0 0 0 0 var(--_accent);animation:mushi-pulse 2.4s ${b} infinite;}.mushi-trigger:hover{transform:translateY(-2px) rotate(-1.5deg);box-shadow:0 1px 0 var(--_border),0 14px 24px -10px rgba(${p},0.45),0 0 20px -6px color-mix(in oklab,var(--_accent) 22%,transparent),inset 0 -3px 0 var(--_accent);}.mushi-trigger:active{transform:translateY(0) rotate(0);box-shadow:0 1px 0 var(--_border),0 2px 4px -2px rgba(${p},0.35),inset 0 -2px 0 var(--_accent);}.mushi-trigger:focus-visible{outline:2px solid var(--_accent);outline-offset:3px;}@keyframes mushi-trigger-pulse{0%{box-shadow:0 0 0 0 color-mix(in oklab,var(--_accent) 55%,transparent),0 1px 0 var(--_border),0 10px 24px -14px rgba(${p},0.45);}70%{box-shadow:0 0 0 16px color-mix(in oklab,var(--_accent) 0%,transparent),0 1px 0 var(--_border),0 10px 24px -14px rgba(${p},0.45);}100%{box-shadow:0 0 0 0 color-mix(in oklab,var(--_accent) 0%,transparent),0 1px 0 var(--_border),0 10px 24px -14px rgba(${p},0.45);}}.mushi-trigger-pulse{animation:mushi-trigger-pulse 800ms ${b} 3;}@media (prefers-reduced-motion:reduce){.mushi-trigger-pulse{animation:none;}}.mushi-trigger.bottom-right{bottom:var(--mushi-bottom,calc(${j}px + env(safe-area-inset-bottom,0px)));right:var(--mushi-right,calc(${j}px + env(safe-area-inset-right,0px)));}.mushi-trigger.bottom-left{bottom:var(--mushi-bottom,calc(${j}px + env(safe-area-inset-bottom,0px)));left:var(--mushi-left,calc(${j}px + env(safe-area-inset-left,0px)));}.mushi-trigger.top-right{top:var(--mushi-top,calc(${j}px + env(safe-area-inset-top,0px)));right:var(--mushi-right,calc(${j}px + env(safe-area-inset-right,0px)));}.mushi-trigger.top-left{top:var(--mushi-top,calc(${j}px + env(safe-area-inset-top,0px)));left:var(--mushi-left,calc(${j}px + env(safe-area-inset-left,0px)));}.mushi-trigger.edge-tab{width:${J}px;height:88px;border-radius:${G}px 0 0 ${G}px;writing-mode:vertical-rl;text-orientation:upright;font-size:16px;box-shadow:0 1px 0 var(--_border),0 10px 24px -14px rgba(${p},0.45),inset -3px 0 0 var(--_accent);}.mushi-trigger.edge-tab.bottom-right,.mushi-trigger.edge-tab.top-right{right:var(--mushi-right,0);}.mushi-trigger.edge-tab.bottom-left,.mushi-trigger.edge-tab.top-left{left:var(--mushi-left,0);border-radius:0 ${G}px ${G}px 0;box-shadow:0 1px 0 var(--_border),0 10px 24px -14px rgba(${p},0.45),inset 3px 0 0 var(--_accent);}.mushi-trigger.shrunk{width:${ne}px;height:${ne}px;opacity:0.82;transform:scale(0.92);}.mushi-trigger{touch-action:none;translate:calc(var(--mushi-drag-active,0) * var(--mushi-drag-x,0px)) calc(var(--mushi-drag-active,0) * var(--mushi-drag-y,0px));}.mushi-trigger.dragging{cursor:grabbing !important;z-index:calc(var(--z,${At.base}) + 2);transition:none !important;box-shadow:0 1px 0 var(--_border),0 20px 40px -12px rgba(${p},0.55),inset 0 -3px 0 var(--_accent);opacity:0.92;}@media (prefers-reduced-motion:reduce){.mushi-trigger{transition:none !important;}}@keyframes mushi-pulse{0%{box-shadow:0 0 0 0 var(--_accent);opacity:1;}70%{box-shadow:0 0 0 8px transparent;opacity:0.5;}100%{box-shadow:0 0 0 0 transparent;opacity:1;}}.mushi-panel{position:fixed;width:calc(${ke}px + 40px);max-width:calc(100vw - 32px);max-height:min(calc(${Be}px + 160px),calc(100dvh - 96px - var(--mushi-keyboard-inset,0px)));background:var(--_bg);color:var(--_fg);border:1px solid var(--_border);border-radius:var(--_radius);box-shadow:var(--_shadow);overflow:hidden;display:flex;flex-direction:column;transform-origin:var(--mushi-origin,bottom right);}.mushi-panel.open{animation:mushi-open 180ms cubic-bezier(.2,.8,.2,1) both;}.mushi-panel.closed{display:none;}.mushi-panel.mushi-swap .mushi-scroll,.mushi-panel.mushi-swap .mushi-footer{animation:mushi-fade 120ms ease-out both;}@keyframes mushi-open{from{opacity:0;transform:translateY(8px);}}@keyframes mushi-fade{from{opacity:0;}}.mushi-panel.bottom-right{bottom:var(--mushi-panel-bottom,calc(var(--mushi-bottom,${j}px) + ${O}px));right:var(--mushi-right,calc(${j}px + env(safe-area-inset-right,0px)));--mushi-origin:bottom right;}.mushi-panel.bottom-left{bottom:var(--mushi-panel-bottom,calc(var(--mushi-bottom,${j}px) + ${O}px));left:var(--mushi-left,calc(${j}px + env(safe-area-inset-left,0px)));--mushi-origin:bottom left;}.mushi-panel.top-right{top:var(--mushi-panel-top,calc(var(--mushi-top,${j}px) + ${O}px));right:var(--mushi-right,calc(${j}px + env(safe-area-inset-right,0px)));--mushi-origin:top right;}.mushi-panel.top-left{top:var(--mushi-panel-top,calc(var(--mushi-top,${j}px) + ${O}px));left:var(--mushi-left,calc(${j}px + env(safe-area-inset-left,0px)));--mushi-origin:top left;}.mushi-panel.keyboard-open{bottom:calc(var(--mushi-keyboard-inset,0px) + 8px) !important;}@media (max-width:${me}px){.mushi-panel{left:0 !important;right:0 !important;top:auto !important;width:100% !important;max-width:100% !important;max-height:calc(100dvh - 24px - var(--mushi-keyboard-inset,0px));border-radius:var(--_radius) var(--_radius) 0 0;bottom:var(--mushi-keyboard-inset,0px) !important;padding-bottom:env(safe-area-inset-bottom,0px);}}.mushi-panel :focus-visible{outline:2px solid var(--_accent);outline-offset:2px;}.mushi-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;}.mushi-notice:empty,.mushi-lead:empty,.mushi-footer:empty,.mushi-brand:empty{display:none;}.mushi-outdated{margin:8px 12px 0;padding:8px 10px;border-radius:8px;background:var(--_surface);font-size:12px;}.mushi-header{display:flex;align-items:center;gap:8px;min-height:56px;padding:6px 6px 6px 16px;border-bottom:1px solid var(--_border);}.mushi-title{flex:1;min-width:0;margin:0;font-size:16px;font-weight:600;line-height:1.25;overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow-wrap:anywhere;}.mushi-title:focus{outline:none;}.mushi-header-host-icon{width:20px;height:20px;margin-right:8px;border-radius:4px;object-fit:contain;}.mushi-header .mushi-icon-btn:first-child{margin-left:-10px;}.mushi-header .mushi-icon-btn:last-child{margin-right:-4px;}.mushi-beta-receipt{display:flex;flex-direction:column;gap:2px;align-items:center;}.mushi-icon-btn{display:inline-flex;align-items:center;justify-content:center;flex:none;min-width:44px;min-height:44px;border:0;border-radius:10px;background:none;color:var(--_muted);font:inherit;font-size:17px;cursor:pointer;}.mushi-icon-btn:hover{background:var(--_surface);color:var(--_fg);}.mushi-pill-btn{display:inline-flex;align-items:center;gap:6px;flex:none;min-height:44px;padding:0 12px;border:1px solid var(--_border);border-radius:999px;background:none;color:var(--_fg);font:inherit;font-size:13px;white-space:nowrap;cursor:pointer;}.mushi-pill-btn:hover{background:var(--_surface);}.mushi-badge{padding:1px 7px;border-radius:999px;background:var(--_fg);color:var(--_bg);font-size:11px;font-weight:600;}.mushi-menu-wrap{position:relative;}.mushi-menu{position:absolute;right:0;top:calc(100% + 4px);z-index:2;display:flex;flex-direction:column;min-width:210px;padding:4px;background:var(--_bg);border:1px solid var(--_border);border-radius:10px;box-shadow:var(--_shadow);}.mushi-menu-item{min-height:44px;padding:0 12px;border:0;border-radius:8px;background:none;color:var(--_fg);font:inherit;text-align:left;cursor:pointer;}.mushi-menu-item:hover{background:var(--_surface);}.mushi-scroll{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;display:flex;flex-direction:column;gap:12px;padding:12px 16px 16px;scrollbar-width:thin;}.mushi-body{display:flex;flex-direction:column;gap:12px;min-width:0;}.mushi-footer{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px;padding:10px 12px 12px 16px;border-top:1px solid var(--_border);}.mushi-footer-hint{flex:1;min-width:0;font-size:12px;color:var(--_muted);}.mushi-brand-footer{padding:6px 12px 8px;text-align:center;font-size:11px;color:var(--_muted);}.mushi-brand-link{color:inherit;text-decoration:none;}.mushi-brand-link:hover{text-decoration:underline;}.mushi-textarea,.mushi-input{width:100%;border:1px solid var(--_border);border-radius:10px;background:var(--_bg);color:var(--_fg);font:inherit;}.mushi-textarea{display:block;min-height:88px;max-height:40vh;padding:12px;font-size:15px;line-height:1.45;resize:vertical;}.mushi-input{flex:1;min-width:0;min-height:44px;padding:10px 12px;resize:none;}.mushi-textarea:focus,.mushi-input:focus{outline:2px solid var(--_accent);outline-offset:1px;border-color:transparent;}.mushi-textarea::placeholder,.mushi-input::placeholder{color:var(--_muted);opacity:1;}.mushi-chips{display:flex;flex-wrap:wrap;gap:6px;}.mushi-chip-group{display:contents;}.mushi-chip{min-height:44px;padding:0 14px;border:1px solid var(--_border);border-radius:999px;background:none;color:var(--_fg);font:inherit;font-size:13px;cursor:pointer;}.mushi-chip:hover{background:var(--_surface);}.mushi-chip[aria-checked="true"]{background:var(--_fg);border-color:var(--_fg);color:var(--_bg);}.mushi-chip-more{border-style:dashed;color:var(--_muted);}.mushi-chip-sm{padding:0 12px;font-size:12px;}.mushi-attachments{display:flex;flex-wrap:wrap;align-items:flex-start;gap:8px;}.mushi-attach-btn{display:inline-flex;align-items:center;gap:6px;min-height:44px;padding:0 12px;border:1px solid var(--_border);border-radius:10px;background:var(--_surface);color:var(--_fg);font:inherit;font-size:13px;cursor:pointer;}.mushi-attach-btn:hover{border-color:var(--_muted);}.mushi-attach-btn.active{border-color:var(--_ok);}.mushi-attach-btn.error{border-color:var(--_err);color:var(--_err);}.mushi-attach-btn[disabled]{cursor:progress;opacity:.75;}.mushi-screenshot-preview{display:flex;align-items:flex-start;gap:10px;width:100%;margin:0;}.mushi-screenshot-preview.open{flex-direction:column;}.mushi-thumb{flex:none;padding:0;border:1px solid var(--_border);border-radius:8px;background:var(--_surface);line-height:0;overflow:hidden;cursor:zoom-in;}.mushi-thumb img{display:block;width:72px;height:54px;object-fit:cover;}.mushi-screenshot-preview.open .mushi-thumb{cursor:zoom-out;}.mushi-screenshot-preview.open .mushi-thumb img{width:100%;height:auto;max-height:40vh;object-fit:contain;}.mushi-screenshot-preview figcaption{display:flex;flex-direction:column;gap:2px;min-width:0;font-size:13px;}.mushi-screenshot-hint{font-size:12px;color:var(--_muted);}.mushi-attach-actions{display:flex;gap:14px;}.mushi-annotate-host{width:100%;}.mushi-annotate-host:empty{display:none;}.mushi-note{margin:0;font-size:12px;line-height:1.45;color:var(--_muted);}.mushi-error-inline,.mushi-warn{color:var(--_err);}.mushi-empty{margin:0;padding:24px 8px;text-align:center;color:var(--_muted);}.mushi-link-btn{min-height:24px;padding:0;border:0;background:none;color:inherit;font:inherit;text-decoration:underline;text-underline-offset:2px;cursor:pointer;}.mushi-btn,.mushi-submit{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:44px;padding:0 16px;border-radius:10px;font:inherit;font-size:14px;font-weight:500;cursor:pointer;}.mushi-btn{border:1px solid var(--_border);background:none;color:var(--_fg);}.mushi-btn:hover{background:var(--_surface);}.mushi-submit{min-width:88px;padding:0 20px;border:0;background:var(--_accent);color:var(--_accent-fg);font-weight:600;}.mushi-submit:hover{filter:brightness(1.08);}.mushi-submit[aria-disabled="true"]{opacity:.45;cursor:not-allowed;}.mushi-submit[aria-busy="true"],.mushi-btn[aria-busy="true"]{cursor:progress;opacity:.75;}.mushi-check{display:flex;align-items:center;gap:10px;min-height:44px;font-size:14px;cursor:pointer;}.mushi-check input{width:18px;height:18px;margin:0;accent-color:var(--_fg);}.mushi-inline-form{display:flex;gap:8px;width:100%;}.mushi-optins{display:flex;flex-direction:column;align-items:flex-start;gap:8px;width:100%;margin-top:4px;text-align:left;}.mushi-beta-strip{display:flex;flex-direction:column;gap:4px;padding:10px 12px;border-radius:10px;background:var(--_surface);font-size:13px;}.mushi-beta-strip p{margin:0;}.mushi-beta-tag{padding:0 6px;border-radius:4px;background:var(--_fg);color:var(--_bg);font-size:10px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;}.mushi-beta-perks,.mushi-changelog ul{margin:0;padding-left:18px;font-size:12px;}.mushi-changelog summary{font-size:12px;color:var(--_muted);cursor:pointer;}.mushi-spinner{display:inline-block;width:12px;height:12px;border:2px solid currentColor;border-top-color:transparent;border-radius:50%;vertical-align:-2px;animation:mushi-spin .8s linear infinite;}@keyframes mushi-spin{to{transform:rotate(360deg);}}.mushi-success{display:flex;flex-direction:column;align-items:center;gap:8px;padding:12px 0 4px;text-align:center;}.mushi-success-stamp{position:relative;display:inline-flex;align-items:center;justify-content:center;width:72px;height:72px;color:var(--_accent);}.mushi-success-stamp svg{position:absolute;inset:0;width:100%;height:100%;}.mushi-success-stamp circle{fill:none;stroke:currentColor;stroke-width:3;stroke-dasharray:280;stroke-dashoffset:280;transform:rotate(-90deg);transform-origin:center;animation:mushi-ring 600ms ease-out 60ms forwards;}.mushi-success-stamp-label{font-size:24px;font-weight:600;opacity:0;transform:rotate(-6deg);animation:mushi-press 300ms ease-out 450ms forwards;}@keyframes mushi-ring{to{stroke-dashoffset:0;}}@keyframes mushi-press{from{opacity:0;transform:rotate(-6deg) scale(1.3);}to{opacity:1;transform:rotate(-6deg) scale(1);}}.mushi-success-meta{font-size:12px;color:var(--_muted);}.mushi-success-receipt{display:flex;flex-direction:column;align-items:center;gap:6px;}.mushi-success-sla{margin:0;font-size:15px;}.mushi-success-receipt-id{min-height:24px;padding:2px 6px;border:1px dashed var(--_border);border-radius:6px;background:none;color:inherit;font-family:ui-monospace,monospace;font-size:12px;cursor:pointer;}.mushi-success-rewards{width:100%;}.mushi-success-pts-award{font-size:20px;font-weight:700;}.mushi-tier-bar-track{height:4px;margin:6px 0;border-radius:2px;background:var(--_surface);overflow:hidden;}.mushi-tier-bar-fill{height:100%;background:var(--_fg);transform-origin:left;transform:scaleX(var(--mushi-tier-pct,0));}.mushi-report-list,.mushi-thread,.mushi-assistant-log{display:flex;flex-direction:column;gap:8px;}.mushi-report-row{display:flex;flex-direction:column;gap:4px;width:100%;min-height:56px;padding:10px 12px;border:1px solid var(--_border);border-radius:10px;background:none;color:var(--_fg);font:inherit;text-align:left;}button.mushi-report-row{cursor:pointer;}button.mushi-report-row:hover{background:var(--_surface);}.mushi-report-row.unread{box-shadow:inset 3px 0 0 var(--_fg);}.mushi-row-top{display:flex;align-items:center;gap:8px;min-width:0;}.mushi-row-title{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:14px;}.mushi-row-when,.mushi-row-meta,.mushi-event time,.mushi-bubble time{font-size:12px;color:var(--_muted);}.mushi-row-when{flex:none;}.mushi-row-meta{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}.mushi-row-news{font-size:13px;}.unread .mushi-row-title,.unread .mushi-row-news{font-weight:600;}.mushi-roadmap-row .mushi-btn{align-self:flex-start;}.mushi-pill{flex:none;display:inline-block;padding:2px 8px;border-radius:999px;font-size:12px;font-weight:500;line-height:1.5;white-space:nowrap;}.mushi-tone-neutral,.mushi-tone-muted{background:var(--_surface);color:var(--_muted);}.mushi-tone-info{background:${M.bg};color:color-mix(in oklab,${M.fg} 85%,var(--_fg));}.mushi-tone-attention{background:${x.bg};color:color-mix(in oklab,${x.fg} 85%,var(--_fg));}.mushi-tone-progress{background:${f.bg};color:color-mix(in oklab,${f.fg} 85%,var(--_fg));}.mushi-tone-success,.mushi-tone-success-muted{background:${g.bg};color:color-mix(in oklab,${g.fg} 85%,var(--_fg));}.mushi-skeleton{display:flex;flex-direction:column;gap:8px;}.mushi-skeleton span{height:14px;border-radius:6px;background:var(--_surface);animation:mushi-shimmer 1.2s ease-in-out infinite alternate;}.mushi-skeleton span:nth-child(2){width:82%;}.mushi-skeleton span:nth-child(3){width:58%;}@keyframes mushi-shimmer{to{opacity:.45;}}.mushi-thread-summary{display:flex;flex-direction:column;gap:6px;padding:12px;border-radius:10px;background:var(--_surface);}.mushi-card-status,.mushi-summary-text{margin:0;}.mushi-summary-text{font-size:14px;white-space:pre-wrap;word-break:break-word;}.mushi-card-thumb{align-self:flex-start;max-width:100%;max-height:160px;border-radius:8px;object-fit:contain;}.mushi-timeline{display:flex;flex-direction:column;gap:10px;margin:0;padding:0;list-style:none;}.mushi-event{display:flex;justify-content:space-between;gap:8px;padding-left:10px;border-left:2px solid var(--_border);font-size:12px;color:var(--_muted);}.mushi-event time,.mushi-bubble time{flex:none;}.mushi-bubble,.mushi-assistant-msg{display:flex;flex-direction:column;gap:2px;max-width:88%;padding:8px 12px;border-radius:12px;background:var(--_surface);white-space:pre-wrap;word-break:break-word;}.mushi-bubble.dev,.mushi-assistant-msg.dev{align-self:flex-start;border:1px solid var(--_border);border-bottom-left-radius:4px;background:none;}.mushi-bubble.mine,.mushi-assistant-msg.mine{align-self:flex-end;border-bottom-right-radius:4px;background:color-mix(in oklab,var(--_fg) 9%,var(--_bg));}.mushi-bubble strong{font-size:12px;}.mushi-bubble p{margin:0;font-size:14px;}.mushi-bubble-state{font-size:11px;color:var(--_muted);}.mushi-verify{display:flex;gap:8px;width:100%;}.mushi-verify .mushi-btn{flex:1;}.mushi-thread-composer{display:flex;align-items:flex-end;gap:8px;width:100%;}.mushi-reply{max-height:104px;overflow-y:auto;}.mushi-send{min-width:44px;padding:0;font-size:18px;}.mushi-thread-action-error{width:100%;margin:0;font-size:12px;}.mushi-assistant-greeting{margin:0;color:var(--_muted);}.mushi-lb{margin:0;padding:0;list-style:none;}.mushi-lb-row{display:flex;align-items:center;gap:10px;min-height:40px;border-bottom:1px solid var(--_border);font-size:13px;}.mushi-lb-row.me{font-weight:600;}.mushi-xapp-group{display:flex;flex-direction:column;gap:6px;}.mushi-xapp-app-name{display:flex;align-items:center;gap:8px;margin:0;font-size:12px;font-weight:600;color:var(--_muted);}.mushi-app-icon{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;width:22px;height:22px;border:1px solid var(--_border);border-radius:6px;background:var(--_surface);overflow:hidden;}.mushi-app-icon-img{display:block;width:16px;height:16px;object-fit:contain;}.mushi-app-icon-initials{font-size:9px;font-weight:700;line-height:1;color:var(--_muted);}.mushi-toast{position:fixed;display:flex;align-items:center;gap:6px;max-width:min(380px,calc(100vw - 32px));padding:6px 6px 6px 14px;background:var(--_bg);color:var(--_fg);border:1px solid var(--_border);border-radius:12px;box-shadow:var(--_shadow);font-size:14px;animation:mushi-open 180ms ease-out both;}.mushi-toast span{display:flex;flex-direction:column;flex:1;min-width:0;}.mushi-toast strong{font-weight:600;}.mushi-toast small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px;color:var(--_muted);}.mushi-toast .mushi-btn{padding:0 12px;}.mushi-toast.bottom-right,.mushi-toast.bottom-left{bottom:calc(var(--mushi-bottom,${j}px) + ${O}px);}.mushi-toast.top-right,.mushi-toast.top-left{top:calc(var(--mushi-top,${j}px) + ${O}px);}.mushi-toast.bottom-right,.mushi-toast.top-right,.mushi-toast.banner-top,.mushi-toast.banner-bottom{right:var(--mushi-right,${j}px);}.mushi-toast.bottom-left,.mushi-toast.top-left{left:var(--mushi-left,${j}px);}.mushi-toast.banner-top{top:calc(var(--mushi-banner-offset,${ne}px) + 12px);}.mushi-toast.banner-bottom{bottom:calc(var(--mushi-banner-offset,${ne}px) + 12px);}.mushi-banner{position:fixed;left:0;right:0;box-sizing:border-box;min-height:${ne}px;display:flex;align-items:center;justify-content:center;gap:10px;padding:0 calc(16px + env(safe-area-inset-right,0px)) 0 calc(16px + env(safe-area-inset-left,0px));font-family:${m};font-size:12px;letter-spacing:0.04em;white-space:nowrap;overflow:hidden;z-index:var(--mushi-banner-z,${C});animation:mushi-banner-slide-in ${Y}ms ${b} both;}.mushi-banner.top{top:0;padding-top:env(safe-area-inset-top,0px);}.mushi-banner.bottom{bottom:0;padding-bottom:env(safe-area-inset-bottom,0px);}.mushi-banner.neon{background:${T};color:${E};border-bottom:1.5px solid ${w};}.mushi-banner.neon.bottom{border-top:1.5px solid ${w};border-bottom:none;}.mushi-banner.neon .mushi-banner-btn{background:rgba(0,0,0,0.14);color:${E};border:1px solid rgba(0,0,0,0.22);}.mushi-banner.neon .mushi-banner-btn:hover{background:rgba(0,0,0,0.22);}.mushi-banner.brand{background:${d};color:${S};border-bottom:1.5px solid ${L};}.mushi-banner.brand.bottom{border-top:1.5px solid ${L};border-bottom:none;}.mushi-banner.brand .mushi-banner-btn{background:rgba(255,255,255,0.18);color:${S};border:1px solid rgba(255,255,255,0.32);}.mushi-banner.brand .mushi-banner-btn:hover{background:rgba(255,255,255,0.28);}.mushi-banner.subtle{background:${a?"rgba(15,14,12,0.88)":"rgba(248,244,237,0.92)"};backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);color:${s};border-bottom:1px solid ${u};}.mushi-banner.subtle.bottom{border-top:1px solid ${u};border-bottom:none;}.mushi-banner.subtle .mushi-banner-btn{background:${a?"rgba(242,235,221,0.10)":"rgba(14,13,11,0.08)"};color:${s};border:1px solid ${u};}.mushi-banner.subtle .mushi-banner-btn:hover{background:${a?"rgba(242,235,221,0.18)":"rgba(14,13,11,0.14)"};}.mushi-banner-label{flex:1;text-align:center;overflow:hidden;text-overflow:ellipsis;}.mushi-banner--rich{justify-content:space-between;gap:12px;min-height:${ne}px;height:auto;padding:4px 12px 4px 16px;white-space:normal;}.mushi-banner-body{display:flex;align-items:center;gap:8px;flex:1;min-width:0;overflow:hidden;}.mushi-banner-pill{display:inline-flex;flex-shrink:0;align-items:center;padding:1px 6px;border-radius:3px;border:1px solid currentColor;font-size:10px;font-weight:700;letter-spacing:0.18em;text-transform:uppercase;opacity:0.92;}.mushi-banner.neon .mushi-banner-pill{border-color:rgba(10,26,10,0.45);background:rgba(10,26,10,0.12);}.mushi-banner.brand .mushi-banner-pill{border-color:rgba(255,255,255,0.45);background:rgba(255,255,255,0.14);}.mushi-banner.subtle .mushi-banner-pill{border-color:${u};background:${a?"rgba(242,235,221,0.08)":"rgba(14,13,11,0.06)"};}.mushi-banner-message{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px;font-weight:500;line-height:1.3;opacity:0.9;}.mushi-banner-actions{display:inline-flex;align-items:center;gap:0;flex-shrink:1;min-width:0;overflow-x:auto;scrollbar-width:none;font-size:11px;}.mushi-banner-actions::-webkit-scrollbar{display:none;}@media (max-width:${me}px){.mushi-banner-actions .mushi-banner-extra{display:none;}}.mushi-banner-link{display:inline-flex;align-items:center;padding:2px 8px;border:none;background:transparent;color:inherit;cursor:pointer;font:inherit;letter-spacing:inherit;text-decoration:none;opacity:0.88;transition:opacity ${K}ms ${b};flex-shrink:0;}.mushi-banner-link:hover{opacity:1;}.mushi-banner-link:focus-visible{outline:2px solid ${d};outline-offset:2px;border-radius:2px;}.mushi-banner-divider{opacity:0.28;padding:0 1px;user-select:none;flex-shrink:0;}.mushi-banner--rich .mushi-banner-dismiss{margin-left:4px;}.mushi-banner-btn{display:inline-flex;align-items:center;gap:4px;padding:3px 10px;border-radius:3px;cursor:pointer;font:inherit;letter-spacing:inherit;transition:opacity ${K}ms ${b};flex-shrink:0;height:24px;line-height:1;}.mushi-banner-btn:focus-visible{outline:2px solid ${d};outline-offset:2px;}.mushi-banner-dismiss{background:transparent !important;border:none !important;opacity:0.65;cursor:pointer;font-size:14px;line-height:1;padding:4px 8px;margin-left:auto;flex-shrink:0;color:inherit;border-radius:3px;transition:opacity ${K}ms ${b};}.mushi-banner-dismiss:hover{opacity:1;background:rgba(0,0,0,0.12) !important;}.mushi-banner.neon .mushi-banner-dismiss:hover{background:rgba(0,0,0,0.18) !important;}.mushi-banner-my-reports{background:transparent;border:none;cursor:pointer;font-size:11px;font-family:${m};opacity:0.75;color:inherit;padding:2px 6px;border-radius:3px;white-space:nowrap;flex-shrink:0;transition:opacity ${K}ms ${b};margin-left:4px;}.mushi-banner-my-reports:hover{opacity:1;background:rgba(0,0,0,0.10);}.mushi-banner.neon .mushi-banner-my-reports:hover{background:rgba(0,0,0,0.18);}@keyframes mushi-banner-slide-in{from{transform:translateY(calc(-1 * 100%));opacity:0.5;}to{transform:translateY(0);opacity:1;}}.mushi-banner.bottom{animation-name:mushi-banner-slide-in-bottom;}@keyframes mushi-banner-slide-in-bottom{from{transform:translateY(100%);opacity:0.5;}to{transform:translateY(0);opacity:1;}}@media (prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:0.001ms !important;animation-iteration-count:1 !important;transition-duration:0.001ms !important;}.mushi-success-stamp circle{stroke-dashoffset:0;}.mushi-success-stamp-label{opacity:1;}}`}Vr();var D=Et,ud=["bug","slow","visual","confusing"];function ae(t,e,r="",n=""){return `<button type="button" class="${r}" data-action="${t}"${n}>${e}</button>`}function ia(t){if(t.step==="report")return hd(t);if(t.step==="success")return Ed(t);let e=t.views;if(!e)return ld(t);switch(t.step){case "reports":return e.reportsView(t);case "report-detail":return e.detailView(t);case "assistant":return e.assistantView(t);case "roadmap":return e.roadmapView(t);case "leaderboard":return e.leaderboardView(t);case "account":return e.accountView(t);case "cross-app-reports":return e.crossAppView(t)}}var oa=new Set(["reports","report-detail","assistant","roadmap","leaderboard","account","cross-app-reports"]);function ld(t){let e=t.locale.flows,r=t.step==="report-detail"?t.locale.panel.reportTitle:t.step==="reports"?e.reports.title:"";return {header:zr(t,r,true),lead:"",body:da(e.reports.loading),footer:""}}var sa={esc:Et,btn:ae,renderHeader:zr,chipLabel:Yn,skeleton:da,formatRelativeTime:Fs,renderAppIconHtml:Ks};function cd(t){let e=t.locale.step1.moreNav,r=[];return t.callbacks.assistantEnabled&&r.push(ae("assistant",D(t.callbacks.assistantLabel||t.locale.assistant.defaultLabel),"mushi-menu-item",' role="menuitem"')),t.callbacks.onFeatureBoardRequest&&r.push(ae("roadmap",D(e.communityIdeas),"mushi-menu-item",' role="menuitem"')),t.rewardsState&&r.push(ae("open-leaderboard",D(e.leaderboard),"mushi-menu-item",' role="menuitem"')),(t.rewardsState||t.testerInfo)&&r.push(ae("open-account",D(t.testerInfo?t.testerInfo.public_handle??t.testerInfo.display_name??e.myAccount:e.joinCommunity),"mushi-menu-item",' role="menuitem"')),r}function zr(t,e,r=false){let n=t.locale.panel,i=t.step==="report"||t.step==="success",o=t.unreadCount,a=i&&t.callbacks.onReporterReportsRequest?ae("reports",`${D(n.yourReports)}${o?` <span class="mushi-badge">${D(n.newCount.replace("{n}",String(o)))}</span>`:""}`,"mushi-pill-btn"):"",s=i?cd(t):[],u=s.length?`<div class="mushi-menu-wrap">${ae("toggle-more-nav","\u22EF","mushi-icon-btn",` aria-haspopup="menu" aria-expanded="${t.showMoreNav}" aria-label="${D(n.moreOptions)}"`)}${t.showMoreNav?`<div class="mushi-menu" role="menu">${s.join("")}</div>`:""}</div>`:"";return `${r?ae("back","\u2190","mushi-icon-btn",` aria-label="${D(t.locale.widget.back)}"`):t.pageFaviconHref?`<img class="mushi-header-host-icon" src="${D(t.pageFaviconHref)}" alt="" referrerpolicy="no-referrer" width="20" height="20" />`:""}<h2 id="mushi-title" class="mushi-title">${D(e)}</h2>${a}${u}${ae("close","\u2715","mushi-icon-btn",` aria-label="${D(t.locale.widget.close)}"`)}`}function aa(t){if(!t.sdkFreshness||t.config.outdatedBanner==="off"||t.config.outdatedBanner==="console-only")return "";let{latest:e,current:r,deprecated:n,message:i}=t.sdkFreshness;return !e&&!n?"":`<div class="mushi-outdated" role="status"><strong>Mushi SDK ${D(r)}</strong> ${e?`latest is ${D(e)}.`:"needs attention."}${i?` <span>${D(i)}</span>`:""}</div>`}function ua(t){return t.config.brandFooter!==true?"":`<div class="mushi-brand-footer"><a class="mushi-brand-link" href="${D(Ns(t.brandRef))}" target="_blank" rel="noopener noreferrer" data-action="brand-footer">${D(t.locale.flows.poweredBy)}<span aria-hidden="true"> \u2197</span></a></div>`}function Yn(t,e){if(e==="idea"||e==="feature")return t.config.featureRequestLabel||t.rc.categories.idea;let r=t.resolveCustomCategory(e);return r?r.label:t.rc.categories[e]??""}function dd(t,e,r,n){let i=n===e;return `<button type="button" class="mushi-chip" role="radio" aria-checked="${i}" tabindex="${i||n===null&&r===0?"0":"-1"}" data-action="chip" data-category="${D(e)}">${D(Yn(t,e))}</button>`}function pd(t){let e=t.chip;if(!e||e==="idea")return [];let r=t.resolveCustomCategory(e);return r?r.intents??[]:(t.locale.step2.intents[e]??[]).slice(0,-1).slice(0,4)}function hd(t){let e=t.locale,r=e.panel,n=e.step3,i=[...ud];t.config.featureRequestCard!==false&&i.push("idea");let o=t.config.categories??[];t.showAllCategories&&i.push(...o.map(x=>x.id));let a=i.map((x,f)=>dd(t,x,f,i.includes(t.chip??"")?t.chip:null)).join(""),s=o.length&&!t.showAllCategories?ae("show-all-categories",D(r.more),"mushi-chip mushi-chip-more"):"",u=pd(t),d=u.length?`<div class="mushi-chips mushi-intents" role="radiogroup" aria-label="${D(Yn(t,t.chip))}">${u.map((x,f)=>`<button type="button" class="mushi-chip mushi-chip-sm" role="radio" aria-checked="${t.intent===x}" tabindex="${t.intent===x||!t.intent&&f===0?"0":"-1"}" data-action="intent" data-intent="${D(x)}">${D(x)}</button>`).join("")}</div>`:"",p=t.screenshotCapturing?n.screenshotCapturing:t.screenshotError?n.screenshotRetry:n.screenshotButton,h=t.elementCapturing?n.elementCapturing:t.elementError?n.elementFailed:t.elementSelected?n.elementSelected:r.pointAt,k='<span class="mushi-spinner" aria-hidden="true"></span>',S=t.screenshotAttached&&t.screenshotPreview?`<figure class="mushi-screenshot-preview${t.previewOpen?" open":""}"><button type="button" class="mushi-thumb" data-action="toggle-preview" aria-expanded="${t.previewOpen}"><img src="${D(t.screenshotPreview)}" alt="${D(n.screenshotPreviewAlt)}" /></button><figcaption><span class="mushi-attach-name">${D(n.screenshotAttached)}</span>${t.screenshotHint?`<span class="mushi-screenshot-hint">${D(t.screenshotHint)}</span>`:""}<span class="mushi-attach-actions">${t.callbacks.onScreenshotAnnotateRequest?ae("annotate-screenshot",D(r.markUp),"mushi-link-btn"):""}${t.allowScreenshotRemove?ae("remove-screenshot",D(r.remove),"mushi-link-btn"):""}</span></figcaption></figure><div class="mushi-annotate-host" data-role="annotate-host"></div>`:t.screenshotAvailable?ae("screenshot",`${t.screenshotCapturing?k:'<span aria-hidden="true">\u{1F4F7}</span>'}${D(p)}`,`mushi-attach-btn${t.screenshotError?" error":""}`,`${t.screenshotCapturing?" disabled":""} aria-label="${D(p)}"`):"",T=t.elementAvailable?ae("element",`${t.elementCapturing?k:'<span aria-hidden="true">\u2316</span>'}${D(h)}`,`mushi-attach-btn${t.elementSelected?" active":""}${t.elementError?" error":""}`,`${t.elementCapturing?" disabled":""} aria-label="${D(h)}"`):"",E=t.screenshotError&&t.screenshotErrorReason?`<p class="mushi-note mushi-error-inline" role="status" data-role="screenshot-reason">${D(n.screenshotErrors[t.screenshotErrorReason])}${t.callbacks.onScreenshotShareTabRequest?` ${ae("screenshot-share-tab",D(n.screenshotShareTab),"mushi-link-btn")}`:""}</p>`:"",w=t.identifiedUser?.name??t.identifiedUser?.email,L=t.chip==="idea",M=t.canSend?D(n.submitHint.replace("{key}",qs(js()))):D(t.rc.ui.addWords);return {header:zr(t,t.config.expandedTitle||r.title),lead:`<textarea class="mushi-textarea" data-role="description" rows="3" maxlength="${Wr}" placeholder="${D(L?n.featurePlaceholder:n.descriptionPlaceholder)}" aria-label="${D(r.title)}" aria-describedby="mushi-hint"></textarea>`,body:`${t.config.betaMode?.enabled?gd(t):""}<div class="mushi-chips"><div class="mushi-chip-group" role="radiogroup" aria-label="${D(r.title)}">${a}</div>${s}</div>${d}<div class="mushi-attachments">${S}${T}</div>${E}<p class="mushi-note">\u{1F512} ${D(r.privacy)}</p>${w?`<p class="mushi-note">\u{1F464} ${D(w)}</p>`:""}${t.draftLength>Wr-400?`<p class="mushi-note" aria-live="polite">${t.draftLength}/${Wr}</p>`:""}`,footer:`<span class="mushi-footer-hint" id="mushi-hint" data-role="hint">${M}</span><button type="button" class="mushi-submit" data-action="submit" aria-disabled="${!t.canSend||t.submitting}"${t.submitting?' aria-busy="true"':""}>${D(t.submitting?e.widget.submitting:r.send)}</button>`}}function la(t){let e=t.config.betaMode?.contactEmail?.trim();if(!e||!/^[^\s@<>"]+@[^\s@<>"]+$/.test(e))return "";let r=`<a class="mushi-link-btn" href="mailto:${D(encodeURIComponent(e).replace(/%40/g,"@"))}">${D(e)}</a>`;return `<p class="mushi-note mushi-beta-contact">${D(t.locale.flows.betaStrip.contactHint).replace(D("{email}"),r)}</p>`}function fd(t){let e=t.config.betaMode;if(!e?.enabled)return "";let r=t.locale.flows.betaStrip,n=e.appName?r.teamSees.replace("{appName}",e.appName):r.teamSeesGeneric;return `<div class="mushi-beta-receipt"><p class="mushi-note">${D(n)}</p>${la(t)}</div>`}function md(t){let e=t.config.betaMode?.changelogItems?.[0];if(!e)return "";let r=D(t.locale.flows.changelog.whatsNew.replace("{version}",e.version));return `<details class="mushi-changelog"><summary>${e.date?`${r} \xB7 ${D(e.date)}`:r}</summary><ul>${e.items.map(n=>`<li>${D(n)}</li>`).join("")}</ul></details>`}function gd(t){let e=t.config.betaMode,r=t.locale.flows.betaStrip,n=D(e.appName??"This app"),i=e.message?D(e.message):D(r.defaultMessage).replace("{appName}",n),o=e.perks??[];return `<div class="mushi-beta-strip" role="note" aria-label="${D(r.ariaLabel)}"><p><span class="mushi-beta-tag">Beta</span> ${i}</p>${la(t)}${o.length?`<ul class="mushi-beta-perks">${o.map(a=>`<li>${D(a)}</li>`).join("")}</ul>`:""}${md(t)}</div>`}function ca(t){let e=t.locale.flows.success;switch(t.lastSubmitFailureKind){case "rate_limited":return e.rateLimited;case "quota":return e.quotaBlocked;case "permanent":return e.permanentFailed;case "retrying":return e.retrying}return t.lastSubmitQueuedOffline?e.queuedOffline:null}function bd(t){let e=t.locale.flows.success,r=t.lastSubmitFailureKind;if(ca(t)){let a=r==="rate_limited"?e.rateLimitedHint:r==="quota"?e.quotaBlockedHint:r==="permanent"?e.permanentFailedHint:r==="retrying"?e.retryingHint:e.queuedHint;return `<p class="mushi-note mushi-success-receipt mushi-warn" role="status">${D(a)}</p>`}let n=D((t.config.responseSlaLabel??"").trim()||e.slaDefault);if(!t.lastReportId)return `<div class="mushi-success-receipt" role="status"><p class="mushi-success-sla">${n}</p><p class="mushi-note"><span class="mushi-spinner" aria-hidden="true"></span> ${D(e.delivering)}</p></div>`;let i=D(t.lastReportId),o=(t.config.dashboardUrl??"").replace(/\/$/,"");return `<div class="mushi-success-receipt" role="status"><p class="mushi-success-sla">${n}</p><p class="mushi-note">${D(e.receipt)} <button type="button" class="mushi-success-receipt-id" data-action="copy-report-id" data-copy-id="${i}" aria-label="Copy report id ${i}">#${D(t.lastReportId.slice(0,8))}</button>${o?` \xB7 <a class="mushi-link-btn" href="${D(`${o}/reports/${encodeURIComponent(t.lastReportId)}`)}" target="_blank" rel="noopener noreferrer">${D(e.trackOnMushi)} \u2197</a>`:""}</p>${t.lastSubmitScreenshotDropped?`<p class="mushi-note mushi-warn">${D(e.screenshotDropped)}</p>`:""}</div>`}function da(t,e=3){return `<div class="mushi-skeleton" role="status" aria-label="${D(t)}">${"<span></span>".repeat(e)}</div>`}function Ed(t){let e=t.locale.flows.success,r=t.submittedAt??new Date,n=ca(t),i=!n&&t.lastReportId&&t.callbacks.onReporterReportsRequest;return {header:zr(t,n??t.rc.ui.sent),lead:"",body:`<div class="mushi-success"><div class="mushi-success-stamp" aria-hidden="true"><svg viewBox="0 0 100 100"><circle cx="50" cy="50" r="44"/></svg><span class="mushi-success-stamp-label">\u53D7</span></div><time class="mushi-success-meta" datetime="${r.toISOString()}">${D(Vs(r,t.config.locale==="auto"?void 0:t.config.locale))}</time>${bd(t)}${n?"":fd(t)+(t.views?.renderOptIns(t)??"")}${t.rewardsState?yd(t):""}</div>`,footer:`${i?ae("track-report",D(e.trackReport),"mushi-btn"):"<span></span>"}${ae("done",D(e.done),"mushi-submit")}`}}function yd(t){let{tier:e,nextTier:r,totalPoints:n,pointsForReport:i}=t.rewardsState,o=n+i,a=100,s="";if(r){let u=e?.pointsThreshold??0,d=r.pointsThreshold;a=d>u?Math.round(Math.min(1,(o-u)/(d-u))*100):100;let p=Math.max(0,d-o);s=p>0?`${p.toLocaleString()} pts to ${D(r.displayName)}`:`\u{1F389} ${D(r.displayName)}`;}return `<div class="mushi-success-rewards"><div class="mushi-success-pts-award">+${i} pts</div>${r?`<div class="mushi-tier-bar-track" role="progressbar" aria-valuenow="${a}" aria-valuemin="0" aria-valuemax="100" aria-label="${D(r.displayName)}"><div class="mushi-tier-bar-fill" style="--mushi-tier-pct:${a/100}"></div></div><p class="mushi-note">${s}</p>`:""}</div>`}function pa(t){return yt(t)}function Dd(t){let e=t.toLowerCase();return /i('m| am) not sure|i don't know|not sure|cannot help|can't help|unable to|don't have enough|outside (my|of) (scope|knowledge)|file a (bug )?report|報告/.test(e)||/わかりません|分かりません|不明|報告して/.test(t)}var Zn=null,ei=null;function ya(){return ei??=Promise.resolve().then(()=>(Ea(),ba)).then(t=>(t.initViews(sa),Zn=t,t)),ei}var Jn=["notice","header","lead","body","footer","brand"],Qn=["description","reporter-reply","magic-link-email","optin-email"],$d=["bug","slow","visual","confusing","other"],Od='button:not([disabled]),textarea:not([disabled]),input:not([disabled]),a[href],[tabindex]:not([tabindex="-1"])',Yr=class t{host;shadow;colorSchemeMq=null;onColorSchemeChange=null;config;callbacks;locale;rc;lang="en";isOpen=false;step="report";styleEl;styleKey="";panel;scroller;regionEls={};regionHtml={};live;renderedStep=null;triggerEl=null;triggerKey="";bannerEl=null;bannerKey="";toastEl=null;opener=null;chip=null;intent=null;showAllCategories=false;showMoreNav=false;screenshotAttached=false;screenshotCapturing=false;screenshotError=false;screenshotErrorReason=null;screenshotByUser=false;previewOpen=false;allowScreenshotRemove=true;screenshotAvailable=true;elementAvailable=true;drafts={};screenshotPreview=null;elementSelected=false;elementCapturing=false;elementError=false;submitting=false;selectorHint=null;triggerVisible=true;triggerShrunk=false;triggerHiddenByScroll=false;sdkFreshness=null;brandRef=null;brandImpressionSent=false;reporterReports=[];featureBoard=[];reporterComments=[];timeline=null;pendingReplies=[];replySeq=0;selectedReportId=null;listLoading=false;threadLoading=false;actionPending=false;reporterError=null;threadError=null;actionError=null;channels={email:false,push:false,emailPrefill:""};emailOptInOpen=false;emailState="idle";pushState="idle";attachedLaunchers=[];smartHideCleanup=null;smartHideTimer=null;submittedAt=null;successTimer=null;pointerDownAt=null;renderDeferred=false;onPointerRelease=()=>{this.pointerDownAt=null,this.renderDeferred&&(this.renderDeferred=false,setTimeout(()=>this.render(),0));};rewardsState=null;leaderboardEntries=null;leaderboardLoading=false;lastReportId=null;lastSubmitQueuedOffline=false;lastSubmitFailureKind;lastSubmitScreenshotDropped=false;bannerDismissed=false;bannerResizeObserver=null;fabPos=null;vvCleanup=null;identifiedUser=null;testerJwt=null;testerInfo=null;crossAppReports=null;crossAppLoading=false;globalLeaderboard=null;globalLeaderboardLoading=false;testerReputation=null;magicLinkSent=false;magicLinkEmail="";magicLinkError="";magicLinkSending=false;assistantTurns=[];assistantThreadId=null;assistantSending=false;assistantError=null;constructor(e={},r){this.config={position:e.position??"bottom-right",anchor:e.anchor??{},theme:e.theme??"auto",triggerText:e.triggerText||"\u{1F41B}",expandedTitle:e.expandedTitle??"",mode:e.mode??"conversational",locale:e.locale??"auto",zIndex:e.zIndex??99999,trigger:e.trigger??"auto",bannerConfig:e.bannerConfig??{},attachToSelector:e.attachToSelector??"",inset:e.inset??{},respectSafeArea:e.respectSafeArea??true,hideOnSelector:e.hideOnSelector??"",hideOnRoutes:e.hideOnRoutes??[],environments:e.environments??{},smartHide:e.smartHide??false,draggable:e.draggable??false,brandFooter:e.brandFooter??false,outdatedBanner:e.outdatedBanner??"auto",screenshotSensitiveHint:e.screenshotSensitiveHint??true,betaMode:e.betaMode??{},minDescriptionLength:e.minDescriptionLength??8,dashboardUrl:e.dashboardUrl??"",responseSlaLabel:e.responseSlaLabel??"",featureRequestCard:e.featureRequestCard??true,featureRequestLabel:e.featureRequestLabel??"",featureRequestDescription:e.featureRequestDescription??"",avoidSelectors:e.avoidSelectors??[],categories:e.categories??[],accent:e.accent??"",accentText:e.accentText??""},this.callbacks=r,this.locale=zn(this.config.locale==="auto"?void 0:this.config.locale),this.rc=this.resolveCopy();let n=$s();n?.turns.length&&(this.assistantTurns=n.turns,this.assistantThreadId=n.threadId),this.host=document.createElement("div"),this.host.id="mushi-mushi-widget",this.shadow=this.host.attachShadow({mode:"open"}),this.styleEl=document.createElement("style"),this.panel=document.createElement("div"),this.panel.setAttribute("role","dialog"),this.panel.setAttribute("aria-modal","true"),this.panel.setAttribute("aria-labelledby","mushi-title"),this.scroller=document.createElement("div"),this.scroller.className="mushi-scroll";for(let i of Jn){let o=document.createElement("div");o.className=`mushi-${i}`,o.dataset.region=i,this.regionEls[i]=o;}this.scroller.append(this.regionEls.lead,this.regionEls.body),this.live=document.createElement("div"),this.live.className="mushi-sr",this.live.setAttribute("role","status"),this.live.setAttribute("aria-live","polite"),this.panel.append(this.regionEls.notice,this.regionEls.header,this.scroller,this.regionEls.footer,this.regionEls.brand,this.live),this.shadow.append(this.styleEl,this.panel),this.bindPanelEvents();}resolveCopy(){let e=this.config.locale==="auto"?typeof navigator<"u"?navigator.language??"":"":this.config.locale;return this.lang=(e||"en").split(/[-_]/)[0].toLowerCase(),pa(this.lang)}mount(){this.host.isConnected||(this.syncHostChromeState(),document.body.appendChild(this.host),window.addEventListener("pointerup",this.onPointerRelease,true),window.addEventListener("pointercancel",this.onPointerRelease,true),this.syncAttachedLaunchers(),this.syncSmartHide(),this.bindColorSchemeListener(),this.render());}getIsMounted(){return this.host.isConnected}updateConfig(e={}){let r=this.config.trigger,n=JSON.stringify(this.config.bannerConfig??null),i=Object.fromEntries(Object.entries(e).filter(([,s])=>s!==void 0));this.config={...this.config,...i,...e.triggerText!==void 0?{triggerText:e.triggerText||"\u{1F41B}"}:{}},this.locale=zn(this.config.locale==="auto"?void 0:this.config.locale),this.rc=this.resolveCopy();let o=this.config.trigger==="banner"&&r!=="banner",a=JSON.stringify(this.config.bannerConfig??null)!==n;(o||a)&&(this.bannerDismissed=false),this.host.isConnected&&this.syncHostChromeState(),this.syncAttachedLaunchers(),this.syncSmartHide(),this.render();}resolveCustomCategory(e){return this.config.categories?.find(r=>r.id===e)}open(e){if(this.isOpen)return;this.rememberOpener(),this.isOpen=true,this.screenshotAttached=false,this.screenshotCapturing=false,this.screenshotError=false,this.screenshotErrorReason=null,this.screenshotPreview=null,this.screenshotByUser=false,this.previewOpen=false,this.elementSelected=false,this.elementCapturing=false,this.elementError=false,this.submitting=false,this.submittedAt=null,this.removeSelectorHint(),this.lastReportId=null,this.lastSubmitQueuedOffline=false,this.lastSubmitFailureKind=void 0,this.lastSubmitScreenshotDropped=false,this.emailOptInOpen=false,this.emailState="idle",this.drafts={},this.intent=null,this.step="report";let r=e?.category,n=r?this.resolveCustomCategory(r):void 0;this.chip=e?.featureRequest?"idea":n||r&&r!=="other"&&$d.includes(r)?r:null,this.showAllCategories=!!n,this.removeToast(),this.render(),this.callbacks.onOpen();}close(){this.isOpen&&(this.isOpen=false,this.showAllCategories=false,this.showMoreNav=false,this.render(),this.restoreOpenerFocus(),this.callbacks.onClose());}openAssistantTab(){if(!this.callbacks.assistantEnabled){this.open();return}this.ensureOpen(),this.step="assistant",this.assistantError=null,this.render();}ensureOpen(){this.isOpen||(this.rememberOpener(),this.isOpen=true,this.callbacks.onOpen());}async sendAssistantMessage(e){let r=e.trim();if(!(!r||this.assistantSending||!this.callbacks.onAssistantAsk)){this.assistantSending=true,this.assistantError=null,this.assistantTurns.push({role:"user",text:r}),this.persistAssistantSession(),this.render();try{let n=await this.callbacks.onAssistantAsk(r,this.assistantThreadId);if(n){if(n.threadId&&(this.assistantThreadId=n.threadId),n.kind==="clarify")this.assistantTurns.push({role:"assistant",text:n.question??"Could you tell me a bit more?",...n.options&&n.options.length?{options:n.options}:{},offerReport:!0});else {let i=n.text??"\u2026";this.assistantTurns.push({role:"assistant",text:i,...Dd(i)?{offerReport:!0}:{}});}this.persistAssistantSession();}else this.assistantError=this.locale.assistant.errors.noResponse;}catch{this.assistantError=this.locale.assistant.errors.generic;}finally{this.assistantSending=false,this.render(),this.scroller.scrollTop=this.scroller.scrollHeight;}}}persistAssistantSession(){Os({turns:this.assistantTurns,threadId:this.assistantThreadId});}clearAssistantTranscript(){this.assistantTurns=[],this.assistantThreadId=null,this.assistantError=null,Hs(),this.step==="assistant"&&this.render();}pulseTrigger(){if(this.isOpen)return;let e=this.triggerEl;e&&(e.classList.add("mushi-trigger-pulse"),window.setTimeout(()=>e.classList.remove("mushi-trigger-pulse"),2400));}getIsOpen(){return this.isOpen}showTrigger(){this.triggerVisible=true,this.render();}hideTrigger(){this.triggerVisible=false,this.render();}setTrigger(e){this.updateConfig({trigger:e});}attachTo(e,r={}){let i=(typeof e=="string"?Array.from(document.querySelectorAll(e)):[e]).map(o=>{let a=s=>{s.preventDefault(),this.updateConfig(r),this.open();};return o.addEventListener("click",a),()=>o.removeEventListener("click",a)});return ()=>i.forEach(o=>o())}setScreenshotAttached(e){this.screenshotAttached=e,this.screenshotCapturing=false,e?(this.screenshotError=false,this.screenshotErrorReason=null):(this.screenshotPreview=null,this.screenshotByUser=false,this.previewOpen=false),this.isOpen&&this.render();}setScreenshotPreview(e){this.screenshotPreview=e,this.isOpen&&this.render();}resolveScreenshotHint(){let e=this.config.screenshotSensitiveHint;return e===false?null:typeof e=="string"?e.trim()?e:null:this.locale.step3.screenshotSensitiveHint}setAllowScreenshotRemove(e){this.allowScreenshotRemove=e,this.isOpen&&this.render();}setCaptureAvailability(e){this.screenshotAvailable=e.screenshot??this.screenshotAvailable,this.elementAvailable=e.element??this.elementAvailable,this.isOpen&&this.render();}setElementSelected(e){this.elementSelected=e,this.elementCapturing=false,e&&(this.elementError=false),this.removeSelectorHint(),this.isOpen&&this.render();}setElementError(e){this.elementError=e,this.elementCapturing=false,this.removeSelectorHint(),this.isOpen&&this.render();}setScreenshotCapturing(e){this.screenshotCapturing=e,this.screenshotError=false,this.screenshotErrorReason=null,this.isOpen&&this.render();}setScreenshotError(e,r){this.screenshotError=e,this.screenshotErrorReason=e?r??this.screenshotErrorReason??"error":null,this.screenshotCapturing=false,this.isOpen&&this.render();}setElementCapturing(e){this.elementCapturing=e,e?(this.elementError=false,this.showSelectorHint()):this.removeSelectorHint(),this.isOpen&&this.render();}hidePanel(){this.panel.style.display="none";}showPanel(){this.panel.style.display="";}showSelectorHint(){this.removeSelectorHint();let e=document.createElement("div");e.id="mushi-selector-hint",e.setAttribute("role","status"),e.setAttribute("aria-live","polite"),e.style.cssText="position:fixed;bottom:24px;left:50%;transform:translateX(-50%);z-index:2147483646;background:rgba(17,17,17,.92);color:#fff;font:12px/1.4 system-ui,sans-serif;padding:8px 16px;border-radius:20px;pointer-events:none;white-space:nowrap;box-shadow:0 2px 12px rgba(0,0,0,.35)",e.textContent=this.locale.step3.elementSelectorHint,document.body.appendChild(e),this.selectorHint=e;}removeSelectorHint(){this.selectorHint?.remove(),this.selectorHint=null,document.getElementById("mushi-selector-hint")?.remove();}setSdkFreshness(e){this.sdkFreshness=e,this.isOpen&&this.render();}setBrandRef(e){this.brandRef!==e&&(this.brandRef=e,this.isOpen&&this.render());}setRewardsState(e){this.rewardsState=e,this.isOpen&&this.render();}setLeaderboard(e,r=false){this.leaderboardEntries=e,this.leaderboardLoading=r,this.isOpen&&this.render();}setReporterChannels(e){this.channels={email:!!e.email,push:!!e.push,emailPrefill:e.emailPrefill??""},this.isOpen&&this.render();}setIdentifiedUser(e){this.identifiedUser=e,this.isOpen&&this.render();}setTesterSession(e,r){this.testerJwt=e,this.testerInfo=r,this.isOpen&&this.render();}setGlobalLeaderboard(e,r=false){this.globalLeaderboard=e,this.globalLeaderboardLoading=r,this.isOpen&&this.render();}setCrossAppReports(e,r=false){this.crossAppReports=e,this.crossAppLoading=r,this.isOpen&&this.render();}setTesterReputation(e){this.testerReputation=e,this.isOpen&&this.render();}destroy(){window.removeEventListener("pointerup",this.onPointerRelease,true),window.removeEventListener("pointercancel",this.onPointerRelease,true),this.successTimer!==null&&(clearTimeout(this.successTimer),this.successTimer=null),this.smartHideTimer!==null&&(clearTimeout(this.smartHideTimer),this.smartHideTimer=null),this.unbindColorSchemeListener(),this.smartHideCleanup?.(),this.smartHideCleanup=null,this.teardownViewportHandlers(),this.attachedLaunchers.forEach(e=>e()),this.attachedLaunchers=[],this.removeSelectorHint(),this.removeToast(),this.removeBodyNudge(),this.host.remove();}bindColorSchemeListener(){if(this.unbindColorSchemeListener(),typeof window>"u"||!window.matchMedia)return;let e=this.config.theme;e!=="auto"&&e!=="inherit"||(this.colorSchemeMq=window.matchMedia("(prefers-color-scheme: dark)"),this.onColorSchemeChange=()=>{this.host.isConnected&&this.render();},typeof this.colorSchemeMq.addEventListener=="function"?this.colorSchemeMq.addEventListener("change",this.onColorSchemeChange):typeof this.colorSchemeMq.addListener=="function"&&this.colorSchemeMq.addListener(this.onColorSchemeChange));}unbindColorSchemeListener(){this.colorSchemeMq&&this.onColorSchemeChange&&(typeof this.colorSchemeMq.removeEventListener=="function"?this.colorSchemeMq.removeEventListener("change",this.onColorSchemeChange):typeof this.colorSchemeMq.removeListener=="function"&&this.colorSchemeMq.removeListener(this.onColorSchemeChange)),this.colorSchemeMq=null,this.onColorSchemeChange=null;}syncHostChromeState(){let e=this.host.style;e.setProperty("position","fixed"),e.setProperty("top","0"),e.setProperty("left","0"),e.setProperty("width","0"),e.setProperty("height","0"),e.setProperty("overflow","visible"),e.setProperty("pointer-events","none"),e.setProperty("z-index",String(this.config.zIndex)),e.setProperty("margin","0"),e.setProperty("padding","0"),e.setProperty("border","none"),e.setProperty("background","none");}isSuppressedByHost(){if(!this.config.hideOnSelector||typeof document>"u")return false;try{return !!document.querySelector(this.config.hideOnSelector)}catch{return false}}getWidgetDiagnostics(){let e=this.host.style,r=e.pointerEvents==="none"&&(e.width==="0"||e.width==="0px")&&(e.height==="0"||e.height==="0px"),n=this.host.isConnected?{width:this.host.offsetWidth,height:this.host.offsetHeight}:null,i=this.isSuppressedByHost()||this.isRouteHidden()||!this.triggerVisible,o=this.config.trigger==="banner"&&!this.bannerDismissed&&!this.isSuppressedByHost()&&!this.isRouteHidden()&&this.triggerVisible;return {widgetHostPointerSafe:r,widgetHostBounds:n,widgetSuppressed:i,bannerRendered:o}}syncAttachedLaunchers(){this.attachedLaunchers.forEach(e=>e()),this.attachedLaunchers=[],!(this.config.trigger!=="attach"||!this.config.attachToSelector)&&(typeof document>"u"||this.attachedLaunchers.push(this.attachTo(this.config.attachToSelector)));}syncSmartHide(){if(this.smartHideCleanup?.(),this.smartHideCleanup=null,this.triggerShrunk=false,this.triggerHiddenByScroll=false,!this.config.smartHide||typeof window>"u")return;let e=this.config.smartHide===true?{onScroll:"shrink",onIdleMs:900}:this.config.smartHide;if(!e.onScroll)return;let r=()=>{e.onScroll==="hide"?this.triggerHiddenByScroll=true:this.triggerShrunk=true,this.render(),this.smartHideTimer!==null&&clearTimeout(this.smartHideTimer),this.smartHideTimer=setTimeout(()=>{this.triggerHiddenByScroll=false,this.triggerShrunk=false,this.render();},e.onIdleMs??900);};window.addEventListener("scroll",r,{passive:true}),this.smartHideCleanup=()=>window.removeEventListener("scroll",r);}shouldRenderTrigger(){if(!this.triggerVisible||this.triggerHiddenByScroll||this.config.trigger==="manual"||this.config.trigger==="hidden"||this.config.trigger==="attach"||this.config.trigger==="banner"||this.isMobileSmartHidden()||this.isRouteHidden()||this.isSuppressedByHost())return false;let e=this.config.environments[this.detectEnvironment()];return e!=="never"&&e!=="manual"}static BANNER_HEIGHT=36;static BODY_NUDGE_PROP="--mushi-banner-offset";applyBodyNudge(e,r=t.BANNER_HEIGHT){let n=`${r}px`;document.documentElement.style.setProperty(t.BODY_NUDGE_PROP,n),e==="top"?document.body.dataset.mushiBannerNudged==="top"?document.body.style.paddingTop=n:document.body.style.paddingTop||(document.body.style.paddingTop=n,document.body.dataset.mushiBannerNudged="top"):document.body.dataset.mushiBannerNudged==="bottom"?document.body.style.paddingBottom=n:document.body.style.paddingBottom||(document.body.style.paddingBottom=n,document.body.dataset.mushiBannerNudged="bottom");}trackBannerHeight(e,r){let n=()=>{let i=e.getBoundingClientRect().height;i>0&&this.applyBodyNudge(r,i);};requestAnimationFrame(n),typeof ResizeObserver<"u"&&(this.bannerResizeObserver=new ResizeObserver(n),this.bannerResizeObserver.observe(e));}removeBodyNudge(){this.bannerResizeObserver?.disconnect(),this.bannerResizeObserver=null,document.documentElement.style.removeProperty(t.BODY_NUDGE_PROP);let e=document.body.dataset.mushiBannerNudged;e==="top"?(document.body.style.paddingTop="",delete document.body.dataset.mushiBannerNudged):e==="bottom"&&(document.body.style.paddingBottom="",delete document.body.dataset.mushiBannerNudged);}syncBanner(){let e=JSON.stringify([this.config.trigger,this.bannerDismissed,this.triggerVisible,this.isRouteHidden(),this.isSuppressedByHost(),this.config.bannerConfig,this.config.zIndex,this.lang]);e===this.bannerKey&&(this.bannerEl?.isConnected??true)||(this.bannerKey=e,this.bannerEl?.remove(),this.bannerEl=null,this.bannerResizeObserver?.disconnect(),this.bannerResizeObserver=null,this.renderBanner());}renderBanner(){if(this.config.trigger!=="banner")return;if(this.bannerDismissed||!this.triggerVisible||this.isRouteHidden()||this.isSuppressedByHost()){this.removeBodyNudge();return}let e=this.config.bannerConfig??{},r=e.variant??"subtle",n=e.position??"top",i=e.message?.trim()??"",o=i.length>0,a=e.bugCta??"\u{1F41B} Report a bug",s=e.featureCta!==false,u=e.featureCtaLabel??"Request feature",d=`\u{1F4EC} ${this.locale.panel.yourReports}`,p=e.zIndex??(this.config.zIndex??99999)-1,h=document.createElement("div");h.className=`mushi-banner ${r} ${n}${o?" mushi-banner--rich":""}`,h.style.setProperty("--mushi-banner-z",String(p)),h.setAttribute("role","banner");let k=document.createElement("button");if(k.className="mushi-banner-dismiss",k.textContent="\u2715",k.setAttribute("aria-label","Dismiss feedback banner"),k.addEventListener("click",()=>{this.bannerDismissed=true,this.removeBodyNudge(),this.render();}),o){let S=document.createElement("div");S.className="mushi-banner-body";let T=e.label===false?null:e.label??"Beta";if(T){let x=document.createElement("span");x.className="mushi-banner-pill",x.textContent=T,S.appendChild(x);}let E=document.createElement("span");E.className="mushi-banner-message",E.textContent=i,S.appendChild(E),h.appendChild(S);let w=document.createElement("nav");w.className="mushi-banner-actions",w.setAttribute("aria-label","Feedback banner actions");let L=(x=false)=>{let f=document.createElement("span");f.className=`mushi-banner-divider${x?" mushi-banner-extra":""}`,f.setAttribute("aria-hidden","true"),f.textContent="|",w.appendChild(f);},M=(x,f,g=false)=>{let m=document.createElement("button");m.type="button",m.className=`mushi-banner-link${g?" mushi-banner-extra":""}`,m.textContent=x,m.addEventListener("click",f),w.appendChild(m);};M(a,()=>this.open({category:"bug"})),s&&(L(true),M(u,()=>this.open({featureRequest:true}),true));for(let x of e.links??[]){let f=x.label?.trim();if(!f)continue;let g=x.href&&(/^https?:\/\//i.test(x.href)||x.href.startsWith("/"))?x.href:void 0;if(L(true),g){let m=document.createElement("a");m.className="mushi-banner-link mushi-banner-extra",m.href=g,m.textContent=f,m.target="_blank",m.rel="noopener noreferrer",w.appendChild(m);}else M(f,()=>{x.featureRequest?this.open({featureRequest:true}):this.open();},true);}L(true),M(d,()=>this.openReporter(),true),h.appendChild(w),h.appendChild(k);}else {let S=document.createElement("button");if(S.className="mushi-banner-btn",S.textContent=a,S.addEventListener("click",()=>this.open({category:"bug"})),h.appendChild(S),s){let E=document.createElement("button");E.className="mushi-banner-btn",E.textContent=u,E.addEventListener("click",()=>this.open({featureRequest:true})),h.appendChild(E);}let T=document.createElement("button");T.className="mushi-banner-my-reports",T.textContent=d,T.addEventListener("click",()=>this.openReporter()),h.appendChild(T),h.appendChild(k);}this.shadow.insertBefore(h,this.panel),this.bannerEl=h,this.applyBodyNudge(n),this.trackBannerHeight(h,n);}effectiveTrigger(){if(!this.config.smartHide||typeof window>"u")return this.config.trigger;let e=this.config.smartHide===true?{onMobile:"edge-tab"}:this.config.smartHide;return window.matchMedia("(max-width: 768px)").matches&&e.onMobile==="edge-tab"?"edge-tab":this.config.trigger}isMobileSmartHidden(){if(!this.config.smartHide||typeof window>"u")return false;let e=this.config.smartHide===true?{onMobile:"edge-tab"}:this.config.smartHide;return window.matchMedia("(max-width: 768px)").matches&&e.onMobile==="hide"}detectEnvironment(){let e=typeof location<"u"?location.hostname:"";return e==="localhost"||e==="127.0.0.1"||e.endsWith(".local")?"development":/\b(staging|stage|preview|dev)\b/i.test(e)?"staging":"production"}isRouteHidden(){return !this.config.hideOnRoutes.length||typeof location>"u"?false:this.config.hideOnRoutes.some(e=>location.pathname.includes(e))}getTheme(){let e=this.config.theme;if(e==="light"||e==="dark")return e;if(e==="inherit"){let r=document.documentElement,n=r.getAttribute("data-color-scheme")||r.getAttribute("data-theme")||r.getAttribute("color-scheme")||"";if(/dark/i.test(n))return "dark";if(/light/i.test(n))return "light";if(r.classList.contains("dark"))return "dark";if(r.classList.contains("light"))return "light";try{let o=getComputedStyle(r).backgroundColor.match(/rgba?\((\d+),\s*(\d+),\s*(\d+)/);if(o)return .299*+o[1]+.587*+o[2]+.114*+o[3]<128?"dark":"light"}catch{}}return typeof window<"u"&&window.matchMedia?.("(prefers-color-scheme: dark)")?.matches?"dark":"light"}probeRgb(e){let r=this.host.style,n=r.color;r.color=e;let i=(this.host.isConnected?getComputedStyle(this.host).color:r.color).match(/(\d+(?:\.\d+)?)[ ,]+(\d+(?:\.\d+)?)[ ,]+(\d+(?:\.\d+)?)/);return r.color=n,i?[+i[1],+i[2],+i[3]]:null}resolveAccent(e){let r=vt(this.config.accent??""),n=[];if(!r&&typeof document<"u"){try{let s=getComputedStyle(document.documentElement);n.push(s.getPropertyValue("--mushi-accent").trim());let u=s.getPropertyValue("accent-color").trim();u&&u!=="auto"&&n.push(u);}catch{}n.push(document.querySelector('meta[name="theme-color"]')?.getAttribute("content")?.trim()??"");}let i=e?[18,18,18]:[255,255,255],o=r;for(let s of n){if(o)break;let u=vt(s),d=u?this.probeRgb(u):null;d&&Gn(d,i).ratio>=3&&(o=u);}if(!o)return {accent:"",accentFg:""};let a=this.probeRgb(o);return {accent:o,accentFg:vt(this.config.accentText??"")||(a?Gn(a).ink:"")}}syncChrome(){let e=this.getTheme(),{accent:r,accentFg:n}=this.resolveAccent(e==="dark"),i=`${e}|${r}|${n}`;i!==this.styleKey&&(this.styleKey=i,this.styleEl.textContent=na(e,r,n)),this.syncBanner(),this.syncTrigger();}syncTrigger(){let e=this.shouldRenderTrigger(),r=this.config.position,n=e?this.effectiveTrigger():"",i=JSON.stringify([e,n,r,this.triggerShrunk,this.config.triggerText,this.config.zIndex,this.config.draggable,this.lang]);(i!==this.triggerKey||e&&!this.triggerEl?.isConnected)&&(this.triggerKey=i,this.triggerEl?.remove(),this.triggerEl=e?this.buildTrigger(n):null),this.triggerEl&&(this.triggerEl.setAttribute("aria-expanded",String(this.isOpen)),this.applyInsetVars(this.triggerEl));}buildTrigger(e){let r=document.createElement("button");if(r.className=`mushi-trigger ${this.config.position}${e==="edge-tab"?" edge-tab":""}${this.triggerShrunk?" shrunk":""}`,r.textContent=this.config.triggerText,r.setAttribute("aria-label",this.locale.widget.trigger),r.setAttribute("aria-haspopup","dialog"),r.style.zIndex=String(this.config.zIndex),r.addEventListener("click",()=>{this.isOpen?this.close():this.open();}),r.addEventListener("keydown",n=>{let i=this.config.draggable;if(!i)return;let o=8,a=typeof i=="object"?i.axis??"both":"both",s=0,u=0;if(a!=="y"&&(n.key==="ArrowLeft"?s=-o:n.key==="ArrowRight"&&(s=o)),a!=="x"&&(n.key==="ArrowUp"?u=-o:n.key==="ArrowDown"&&(u=o)),s!==0||u!==0){n.preventDefault();let d=this.fabPos??{x:0,y:0};this.moveFab(r,d.x+s,d.y+u,false);}}),this.config.draggable&&this.attachDragHandlers(r),this.shadow.insertBefore(r,this.panel),this.fabPos&&this.config.draggable){let n=this.fabPos;this.fabPos={x:0,y:0},this.moveFab(r,n.x,n.y,false);}return r}render(){if(this.isOpen&&this.pointerDownAt!==null&&Date.now()-this.pointerDownAt<2e3){this.renderDeferred||setTimeout(()=>{this.renderDeferred&&this.render();},2e3),this.renderDeferred=true;return}this.renderDeferred=false,this.syncChrome(),this.renderPanel();}renderPanel(){let e=this.panel;if(e.className=`mushi-panel ${this.config.position}${this.isOpen?" open":" closed"}`,e.style.zIndex=String(this.config.zIndex+1),this.applyInsetVars(e),!this.isOpen){if(this.renderedStep!==null){for(let p of Jn)this.regionEls[p].innerHTML="";this.regionHtml={},this.renderedStep=null,this.teardownViewportHandlers();}return}let r=this.renderCtx();!Zn&&(oa.has(this.step)||this.step==="success"&&(this.channels.email||this.channels.push))&&this.preloadViews().then(()=>{this.isOpen&&this.render();});let n=ia(r),i={notice:aa(r),header:n.header,lead:n.lead,body:n.body,footer:n.footer,brand:ua(r)},o=this.renderedStep!==this.step,a=this.renderedStep===null,s=this.shadow.activeElement,u=s?va(s):null;this.captureFormDrafts();let d=false;for(let p of Jn)this.regionHtml[p]!==i[p]&&(this.regionHtml[p]=i[p],this.regionEls[p].innerHTML=i[p],d=true);this.renderedStep=this.step,d&&(zs(e),this.restoreFormDrafts()),o?(this.scroller.scrollTop=0,a||(e.classList.remove("mushi-swap"),e.offsetWidth,e.classList.add("mushi-swap")),this.focusView()):s&&!s.isConnected&&u&&e.querySelector(u)?.focus(),a&&this.attachViewportHandlers(e),!this.brandImpressionSent&&this.config.brandFooter===true&&(this.brandImpressionSent=true,this.callbacks.onBrandFooterImpression?.());}focusView(){let e=this.panel.querySelector('[data-role="description"]')??this.panel.querySelector("#mushi-title");e&&(e.id==="mushi-title"&&(e.tabIndex=-1),e.focus({preventScroll:true}));}captureFormDrafts(){for(let n of Qn){let i=this.panel.querySelector(`[data-role="${n}"]`);i&&(this.drafts[n]=i.value);}let e=this.shadow.activeElement,r=e?.dataset?.role;r&&Qn.includes(r)?(this.drafts._focus=r,this.drafts._sel=`${e.selectionStart??0},${e.selectionEnd??0}`):delete this.drafts._focus;}restoreFormDrafts(){for(let e of Qn){let r=this.panel.querySelector(`[data-role="${e}"]`),n=this.drafts[e];if(!(!r||!n||r.value===n)&&(r.value=n,this.drafts._focus===e&&this.shadow.activeElement!==r)){r.focus();let[i,o]=(this.drafts._sel??"").split(",").map(Number);try{r.setSelectionRange(i,o);}catch{}}}}computeAvoidTopPx(e=8){let r=this.config.avoidSelectors;if(!r?.length)return null;let n=0;for(let i of r)try{let o=document.querySelector(i);if(!o)continue;let a=o.getBoundingClientRect();a.bottom>n&&a.width>0&&a.height>0&&(n=a.bottom);}catch{}return n>0?Math.ceil(n)+e:null}computeAvoidBottomPx(e=8){let r=this.config.avoidSelectors;if(!r?.length)return null;let n=0;for(let i of r)try{let o=document.querySelector(i);if(!o)continue;let a=o.getBoundingClientRect();if(a.width>0&&a.height>0){let s=window.innerHeight-a.top+e;s>n&&(n=s);}}catch{}return n>0?Math.ceil(n):null}applyInsetVars(e){let{anchor:r}=this.config;if(r&&Object.keys(r).length>0)["top","right","bottom","left"].forEach(o=>{let a=r[o];a!==void 0&&e.style.setProperty(`--mushi-${o}`,a);});else {let{inset:o}=this.config;this.config.respectSafeArea||["top","right","bottom","left"].forEach(a=>{o[a]===void 0&&e.style.setProperty(`--mushi-${a}`,"24px");}),["top","right","bottom","left"].forEach(a=>{let s=o[a];s!==void 0&&e.style.setProperty(`--mushi-${a}`,s==="auto"?"auto":`${s}px`);});}e.style.setProperty("--mushi-safe-area",this.config.respectSafeArea?"1":"0");let n=r?.top!==void 0||this.config.position?.startsWith("top"),i=r?.bottom!==void 0||this.config.position?.startsWith("bottom")||!this.config.position;if(n){let o=this.computeAvoidTopPx();o!==null&&e.style.setProperty("--mushi-top",`${o}px`);}if(i){let o=this.computeAvoidBottomPx();o!==null&&e.style.setProperty("--mushi-bottom",`${o}px`);}}fabStorageKey(){let e=this.config.projectId??"";return `mushi_fab_pos${e?`_${e}`:""}`}moveFab(e,r,n,i){let o=this.config.draggable,a=o&&typeof o=="object"?o.axis??"both":"both",s=window.innerWidth,u=window.innerHeight,d=e.offsetWidth||52,p=e.offsetHeight||52,h=getComputedStyle(document.documentElement),k=Y=>parseInt(h.getPropertyValue(`--sai-${Y}`)||"0")||0,S=k("left"),T=k("right"),E=k("top"),w=k("bottom"),L=8,M=e.getBoundingClientRect(),x=M.left-(this.fabPos?.x??0),f=M.top-(this.fabPos?.y??0),g=S+L-x,m=s-T-L-d-x,b=E+L-f,C=u-w-L-p-f,P=a==="x"?0:Math.max(b,Math.min(C,n)),v=a==="y"?0:Math.max(g,Math.min(m,r));if(i&&(o===true||typeof o=="object"&&(o.snapToEdge??true))&&a!=="y"&&(v=M.left+d/2<s/2?S+L-x:s-T-L-d-x),this.fabPos={x:v,y:P},e.style.setProperty("--mushi-drag-x",`${v}px`),e.style.setProperty("--mushi-drag-y",`${P}px`),e.style.setProperty("--mushi-drag-active","1"),o===true||typeof o=="object"&&(o.persist??true))try{localStorage.setItem(this.fabStorageKey(),JSON.stringify(this.fabPos));}catch{}}loadFabPos(){let e=this.config.draggable;if(!(!e||!(e===true||typeof e=="object"&&(e.persist??true))))try{let n=localStorage.getItem(this.fabStorageKey());if(n){let i=JSON.parse(n);typeof i?.x=="number"&&typeof i?.y=="number"&&(this.fabPos=i);}}catch{}}attachDragHandlers(e){this.fabPos===null&&this.loadFabPos();let r=0,n=0,i=0,o=0,a=false,s=false,u=6;e.addEventListener("pointerdown",p=>{if(p.button!==0&&p.pointerType!=="touch")return;e.setPointerCapture(p.pointerId),r=p.clientX,n=p.clientY;let h=this.fabPos??{x:0,y:0};i=h.x,o=h.y,a=true,s=false;}),e.addEventListener("pointermove",p=>{if(!a)return;let h=p.clientX-r,k=p.clientY-n;!s&&Math.hypot(h,k)>u&&(s=true,e.classList.add("dragging")),s&&(p.preventDefault(),this.moveFab(e,i+h,o+k,false));});let d=p=>{if(a){if(a=false,e.classList.remove("dragging"),s){this.moveFab(e,i+p.clientX-r,o+p.clientY-n,true);let h=k=>{k.stopImmediatePropagation(),e.removeEventListener("click",h,{capture:true});};e.addEventListener("click",h,{capture:true});}s=false;}};e.addEventListener("pointerup",d),e.addEventListener("pointercancel",d);}attachViewportHandlers(e){this.teardownViewportHandlers();let r=typeof window<"u"?window.visualViewport:null;if(!r)return;let n=()=>{let o=window.innerHeight-r.height-r.offsetTop;o>50?(e.style.setProperty("--mushi-keyboard-inset",`${Math.round(o)}px`),e.classList.add("keyboard-open")):(e.style.setProperty("--mushi-keyboard-inset","0px"),e.classList.remove("keyboard-open"));};r.addEventListener("resize",n,{passive:true}),r.addEventListener("scroll",n,{passive:true});let i=()=>requestAnimationFrame(n);e.addEventListener("focusin",i),this.vvCleanup=()=>{r.removeEventListener("resize",n),r.removeEventListener("scroll",n),e.removeEventListener("focusin",i);};}teardownViewportHandlers(){this.vvCleanup?.(),this.vvCleanup=null;}effectiveMinLength(){let e=this.config.minDescriptionLength??8;return /^(ja|zh|ko)$/.test(this.lang)?Math.max(4,Math.floor(e/2)):e}canSend(){return (this.drafts.description??"").trim().length>=this.effectiveMinLength()||this.elementSelected||this.screenshotAttached&&this.screenshotByUser}unreadCount(){return this.reporterReports.reduce((e,r)=>e+(r.unread_count??0),0)}renderCtx(){return {config:this.config,locale:this.locale,rc:this.rc,lang:this.lang,views:Zn,step:this.step,callbacks:this.callbacks,chip:this.chip,intent:this.intent,showAllCategories:this.showAllCategories,draftLength:(this.drafts.description??"").length,canSend:this.canSend(),submitting:this.submitting,screenshotCapturing:this.screenshotCapturing,screenshotAttached:this.screenshotAttached,screenshotPreview:this.screenshotPreview,previewOpen:this.previewOpen,screenshotHint:this.resolveScreenshotHint(),screenshotAvailable:this.screenshotAvailable,elementAvailable:this.elementAvailable,screenshotError:this.screenshotError,screenshotErrorReason:this.screenshotErrorReason,elementSelected:this.elementSelected,elementCapturing:this.elementCapturing,elementError:this.elementError,allowScreenshotRemove:this.allowScreenshotRemove,identifiedUser:this.identifiedUser,lastReportId:this.lastReportId,submittedAt:this.submittedAt,lastSubmitQueuedOffline:this.lastSubmitQueuedOffline,lastSubmitFailureKind:this.lastSubmitFailureKind,lastSubmitScreenshotDropped:this.lastSubmitScreenshotDropped,channels:this.channels,emailOptInOpen:this.emailOptInOpen,emailState:this.emailState,pushState:this.pushState,reporterReports:this.reporterReports,listLoading:this.listLoading,reporterError:this.reporterError,selectedReportId:this.selectedReportId,reporterComments:this.reporterComments,timeline:this.timeline,pendingReplies:this.pendingReplies,threadLoading:this.threadLoading,threadError:this.threadError,actionPending:this.actionPending,actionError:this.actionError,unreadCount:this.unreadCount(),showMoreNav:this.showMoreNav,pageFaviconHref:Ls(),sdkFreshness:this.sdkFreshness,brandRef:this.brandRef,rewardsState:this.rewardsState,testerReputation:this.testerReputation,testerInfo:this.testerInfo,testerJwt:this.testerJwt,magicLinkError:this.magicLinkError,magicLinkSending:this.magicLinkSending,magicLinkEmail:this.magicLinkEmail,magicLinkSent:this.magicLinkSent,globalLeaderboardLoading:this.globalLeaderboardLoading,globalLeaderboard:this.globalLeaderboard,leaderboardLoading:this.leaderboardLoading,leaderboardEntries:this.leaderboardEntries,crossAppLoading:this.crossAppLoading,crossAppReports:this.crossAppReports,featureBoard:this.featureBoard,assistantTurns:this.assistantTurns,assistantSending:this.assistantSending,assistantError:this.assistantError,tierColor:e=>qn[e]??qn.default,resolveCustomCategory:e=>this.resolveCustomCategory(e)}}bindPanelEvents(){let e=this.panel;e.addEventListener("pointerdown",()=>{this.pointerDownAt=Date.now();}),e.addEventListener("click",r=>{let n=r.target;if(n.closest('[data-role="annotate-host"]'))return;let i=n.closest("[data-action],[data-report-id],[data-vote-id]");if(!i||i.tagName==="FORM")return;if(i.dataset.voteId){this.voteFeatureBoard(i.dataset.voteId);return}let o=i.dataset.action;if(!o&&i.dataset.reportId){this.openThread(i.dataset.reportId);return}o&&this.handleAction(o,i);}),e.addEventListener("input",r=>{let n=r.target,i=n.dataset?.role;i&&(this.drafts[i]=n.value,n.tagName==="TEXTAREA"&&i!=="description"&&wa(n),i==="description"&&this.render());}),e.addEventListener("submit",r=>{r.preventDefault();let n=e.querySelector(".mushi-assistant-input"),i=n?.value??"";n&&(n.value=""),this.sendAssistantMessage(i);}),e.addEventListener("keydown",r=>this.onKeydown(r));}onKeydown(e){let r=e.target;if(e.key==="Escape"){if(e.preventDefault(),this.showMoreNav){this.showMoreNav=false,this.render();return}if(this.step==="report-detail"){this.goBack();return}this.close();return}if(Us(e)||e.key==="Enter"&&!e.shiftKey&&r.classList.contains("mushi-assistant-input")){this.step==="report"?(e.preventDefault(),this.submitReport()):this.step==="report-detail"&&r.dataset.role==="reporter-reply"?(e.preventDefault(),this.submitReporterReply()):this.step==="assistant"&&(e.preventDefault(),this.panel.querySelector("form")?.requestSubmit());return}if(e.key==="Tab"){this.trapTab(e);return}if(r.getAttribute("role")==="radio"&&/^Arrow(Left|Right|Up|Down)$/.test(e.key)){let n=Array.from(r.closest('[role="radiogroup"]')?.querySelectorAll('[role="radio"]')??[]),i=n.indexOf(r),o=n[(i+(/Right|Down/.test(e.key)?1:-1)+n.length)%n.length];if(!o)return;e.preventDefault(),o.click(),this.panel.querySelector(va(o)??"")?.focus();}}trapTab(e){let r=Array.from(this.panel.querySelectorAll(Od)).filter(a=>!a.closest("[hidden]"));if(!r.length)return;let n=r[0],i=r[r.length-1],o=this.shadow.activeElement;e.shiftKey&&(o===n||!this.panel.contains(o))?(e.preventDefault(),i.focus()):!e.shiftKey&&o===i&&(e.preventDefault(),n.focus());}handleAction(e,r){let n=r.dataset.value??"";switch(e){case "close":this.close();return;case "back":this.goBack();return;case "brand-footer":this.callbacks.onBrandFooterClick?.();return;case "toggle-more-nav":this.showMoreNav=!this.showMoreNav,this.render();return;case "show-all-categories":this.showAllCategories=true,this.render();return;case "chip":{let i=r.dataset.category??"";this.chip=this.chip===i?null:i,this.intent=null,this.render();return}case "intent":{let i=r.dataset.intent??null;this.intent=this.intent===i?null:i,this.render();return}case "screenshot":this.screenshotByUser=true,this.callbacks.onScreenshotRequest();return;case "screenshot-share-tab":this.screenshotByUser=true,this.callbacks.onScreenshotShareTabRequest?.();return;case "remove-screenshot":this.callbacks.onScreenshotRemove?.();return;case "toggle-preview":this.previewOpen=!this.previewOpen,this.render();return;case "annotate-screenshot":{let i=this.panel.querySelector('[data-role="annotate-host"]');this.screenshotByUser=true,i&&this.callbacks.onScreenshotAnnotateRequest&&this.callbacks.onScreenshotAnnotateRequest(i);return}case "element":this.callbacks.onElementSelectorRequest?.();return;case "submit":this.submitReport();return;case "done":this.close();return;case "track-report":this.lastReportId&&this.openTrackedReport(this.lastReportId);return;case "copy-report-id":Hd(r);return;case "reports":this.showMoreNav=false,this.loadReporterReports();return;case "retry-list":this.loadReporterReports();return;case "retry-thread":this.selectedReportId&&this.openThread(this.selectedReportId);return;case "reporter-reply":this.submitReporterReply();return;case "retry-reply":this.sendPendingReply(Number(n));return;case "reporter-confirms":this.submitReporterFeedback("confirms");return;case "reporter-not-fixed":this.submitReporterReopen();return;case "email-optin":this.emailOptInOpen=r.checked,this.render();return;case "save-email":this.saveEmailOptIn();return;case "notify-me":this.subscribePush();return;case "assistant":this.showMoreNav=false,this.openAssistantTab();return;case "assistant-suggest":this.sendAssistantMessage(n);return;case "assistant-report":this.step="report",this.render();return;case "roadmap":this.showMoreNav=false,this.loadFeatureBoard();return;case "open-leaderboard":this.showMoreNav=false,this.step="leaderboard",this.callbacks.onLeaderboardOpen?.(),this.callbacks.onGlobalLeaderboardOpen?.(),this.render();return;case "open-account":this.showMoreNav=false,this.step="account",this.render();return;case "open-cross-app-reports":this.step="cross-app-reports",this.crossAppReports=this.callbacks.onCrossAppReportsOpen?null:[],this.crossAppLoading=!!this.callbacks.onCrossAppReportsOpen,this.render(),this.callbacks.onCrossAppReportsOpen?.();return;case "open-global-leaderboard":this.step="leaderboard",this.globalLeaderboard=this.callbacks.onGlobalLeaderboardOpen?null:[],this.globalLeaderboardLoading=!!this.callbacks.onGlobalLeaderboardOpen,this.render(),this.callbacks.onGlobalLeaderboardOpen?.();return;case "send-magic-link":this.handleMagicLinkSend();return;case "resend-magic-link":this.magicLinkSent=false,this.magicLinkError="",this.render();return;case "sign-out-tester":this.testerJwt=null,this.testerInfo=null,this.testerReputation=null,this.crossAppReports=null,this.magicLinkSent=false,this.magicLinkEmail="",this.step="report",this.callbacks.onTesterSignOut?.(),this.render();return}}goBack(){let e={"report-detail":"reports","cross-app-reports":"account"};this.step=e[this.step]??"report",this.step==="reports"&&(this.selectedReportId=null),this.step==="report"&&(this.showAllCategories=!!(this.chip&&this.resolveCustomCategory(this.chip))),this.render();}submitReport(){if(this.submitting)return;let e=this.panel.querySelector('[data-role="description"]');if(e&&(this.drafts.description=e.value),!this.canSend()){this.announce(this.rc.ui.addWords),e?.focus();return}let r=(this.drafts.description??"").trim(),n=this.chip,i=n?this.resolveCustomCategory(n):void 0,o=(this.config.categories?.length??0)>0,a=n==="idea",s=a||!n?"other":i?i.baseCategory??"other":n,u=i?n:a?"feature":o&&n?n:void 0,d=a?Bs:this.intent??void 0;this.submitting=true,this.submittedAt=new Date,this.lastReportId=null,this.lastSubmitQueuedOffline=false,this.lastSubmitFailureKind=void 0,this.lastSubmitScreenshotDropped=false,this.render();let p=(async()=>{try{let h=this.callbacks.onSubmit({category:s,...u?{userCategory:u}:{},description:r,...d?{intent:d}:{}});return h&&typeof h.then=="function"?await h??null:null}catch{return {reportId:null,queuedOffline:true}}})();this.successTimer=setTimeout(()=>{this.successTimer=null,this.submitting=false,this.step="success",this.drafts={},this.render(),this.announce(this.rc.ui.sent),p.then(h=>{this.step!=="success"||!h||(this.lastReportId=h.reportId??null,this.lastSubmitQueuedOffline=!!h.queuedOffline,this.lastSubmitFailureKind=h.failureKind,this.lastSubmitScreenshotDropped=!!h.screenshotDropped,this.render());});},500);}async loadFeatureBoard(){this.step="roadmap",this.listLoading=true,this.reporterError=null,this.render();try{this.featureBoard=await this.callbacks.onFeatureBoardRequest?.()??[];}catch(e){this.reporterError=e instanceof Error?e.message:"Could not load community ideas.";}finally{this.listLoading=false,this.render();}}async voteFeatureBoard(e){if(!(!this.callbacks.onFeatureBoardVote||this.actionPending)){this.actionPending=true,this.render();try{await this.callbacks.onFeatureBoardVote(e),this.featureBoard=await this.callbacks.onFeatureBoardRequest?.()??this.featureBoard;}catch(r){this.reporterError=r instanceof Error?r.message:"Could not update vote.";}finally{this.actionPending=false,this.render();}}}async runThreadAction(e,r){let n=this.selectedReportId;if(!n||this.actionPending)return false;this.actionPending=true,this.actionError=null,this.render();try{return await r(n),await this.refreshReporterInboxQuiet(),await this.openThread(n,!0),!0}catch(i){return this.actionError=i instanceof Error?i.message:e,false}finally{this.actionPending=false,this.render();}}async submitReporterReopen(){await this.runThreadAction("Could not reopen report.",async e=>{this.callbacks.onReporterReopen?await this.callbacks.onReporterReopen(e,"Not fixed for me"):await this.callbacks.onReporterFeedback?.(e,"not_fixed","Not fixed for me");});}async submitReporterFeedback(e){await this.runThreadAction("Could not send feedback.",r=>Promise.resolve(this.callbacks.onReporterFeedback?.(r,e)));}async refreshReporterInboxQuiet(){try{let e=this.callbacks.onReporterReportsRequest?.();this.reporterReports=e?await Mt(e,Lt):[],this.isOpen&&this.render();}catch{}}async loadReporterReports(){this.ensureOpen(),this.step="reports",this.listLoading=true,this.reporterError=null,this.render();try{let e=this.callbacks.onReporterReportsRequest?.();this.reporterReports=e?await Mt(e,Lt):[];}catch{this.reporterError=this.rc.ui.loadError;}finally{this.listLoading=false,this.render();}}async openTrackedReport(e){await this.loadReporterReports(),this.isOpen&&this.step==="reports"&&await this.openThread(e);}async openThread(e,r=false){this.selectedReportId!==e&&(delete this.drafts["reporter-reply"],this.reporterComments=[],this.timeline=null,this.pendingReplies=[],this.actionError=null,r=false),this.selectedReportId=e,this.step="report-detail",this.threadError=null,r||(this.threadLoading=true,this.render(),this.markRead(e));try{let n=this.callbacks.onReporterReportRequest?.(e),i=n?await Mt(n,Lt):null;if(i)this.selectedReportId===e&&(this.timeline=i.timeline??null,i.report&&(this.reporterReports=this.reporterReports.map(o=>o.id===e?{...o,...i.report}:o)));else {let o=this.callbacks.onReporterCommentsRequest?.(e),a=o?await Mt(o,Lt):[];this.selectedReportId===e&&(this.reporterComments=a);}}catch{this.selectedReportId===e&&(this.threadError=this.rc.ui.loadError);}finally{this.threadLoading=false,this.render();}}markRead(e){let r=this.reporterReports.find(n=>n.id===e);r?.unread_count&&(r.unread_count=0,Promise.resolve(this.callbacks.onReporterMarkRead?.(e)).catch(()=>{}));}submitReporterReply(){let e=this.panel.querySelector('[data-role="reporter-reply"]'),r=(e?.value??"").trim();if(!r||!this.selectedReportId)return;let n=++this.replySeq;this.pendingReplies.push({id:n,body:r,state:"sending"}),delete this.drafts["reporter-reply"],e&&(e.value="",wa(e)),this.sendPendingReply(n);}async sendPendingReply(e){let r=this.pendingReplies.find(i=>i.id===e),n=this.selectedReportId;if(!(!r||!n)){r.state="sending",this.render(),this.announce(this.rc.ui.sending);try{await Mt(Promise.resolve(this.callbacks.onReporterReply?.(n,r.body)),Lt),await this.openThread(n,!0),this.pendingReplies=this.pendingReplies.filter(i=>i.id!==e),this.render(),this.announce(this.rc.ui.sent);}catch{r.state="failed",this.render(),this.announce(this.rc.ui.sendFailed);}}}async saveEmailOptIn(){let e=(this.panel.querySelector('[data-role="optin-email"]')?.value??"").trim();if(!Js(e)||!this.callbacks.onReporterEmailOptIn){this.emailState="invalid",this.render();return}this.emailState="saving",this.render();try{await this.callbacks.onReporterEmailOptIn(e),this.emailState="saved";}catch{this.emailState="error";}this.render();}async subscribePush(){if(!this.callbacks.onReporterPushSubscribe||this.pushState==="asking")return;let e=this.callbacks.onReporterPushSubscribe();this.pushState="asking",this.render();try{await e,this.pushState="on";}catch{this.pushState="error";}this.render();}async showUpdatesToast(e){let r=(await ya()).pickUpdateToast(e,this.lang,this.rc.ui.toastReplied);return r?this.showUpdateToast(r):false}async preloadViews(){try{await ya();}catch{ei=null;}}showUpdatesFeedToast(e,r){if(!(e.unread_total>0))return false;let n=new Set(e.latest.map(s=>s.report_id)),i=n.size===1?[...n][0]:null,o=i?r.find(s=>s.id===i):void 0,a=o?.title??o?.summary??(i?e.latest[0]?.preview:void 0);return this.showUpdateToast({text:Xs(e,this.lang),reportId:i,...a?{detail:a}:{}})}showUpdateToast(e){if(this.isOpen||!this.triggerVisible||this.triggerHiddenByScroll||this.isMobileSmartHidden()||this.isRouteHidden()||this.isSuppressedByHost())return false;this.removeToast();let r=document.createElement("div");r.className=`mushi-toast ${this.config.trigger==="banner"?`banner-${this.config.bannerConfig?.position??"top"}`:this.config.position}`,r.setAttribute("role","status"),r.style.zIndex=String(this.config.zIndex+1);let n=document.createElement("span"),i=document.createElement("strong");if(i.textContent=e.text,n.append(i),e.detail){let s=document.createElement("small");s.textContent=e.detail,n.append(s);}let o=document.createElement("button");o.type="button",o.className="mushi-btn",o.textContent=this.rc.ui.view,o.addEventListener("click",()=>{this.removeToast();let s=e.reportId;s?this.loadReporterReports().then(()=>{this.isOpen&&this.step==="reports"&&this.openThread(s);}):this.openReporter();});let a=document.createElement("button");return a.type="button",a.className="mushi-icon-btn",a.textContent="\u2715",a.setAttribute("aria-label",this.locale.widget.close),a.addEventListener("click",()=>this.removeToast()),r.append(n,o,a),this.applyInsetVars(r),this.shadow.insertBefore(r,this.panel),this.toastEl=r,true}removeToast(){this.toastEl?.remove(),this.toastEl=null;}rememberOpener(){let e=document.activeElement;this.opener=e===this.host?this.shadow.activeElement:e;}restoreOpenerFocus(){let e=this.opener?.isConnected?this.opener:this.opener?.classList.contains("mushi-trigger")?this.triggerEl:null;this.opener=null,e&&e!==document.body&&e.focus({preventScroll:true});}announce(e){this.live.textContent="",setTimeout(()=>{this.live.textContent=e;},30);}async handleMagicLinkSend(){if(this.magicLinkSending)return;let e=(this.drafts["magic-link-email"]??this.magicLinkEmail).trim();if(!e||!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e)){this.magicLinkError="Please enter a valid email address.",this.render();return}this.magicLinkEmail=e,this.magicLinkError="",this.magicLinkSending=true,this.render();try{await this.callbacks.onMushiSignIn?.(e),this.magicLinkSent=!0;}catch(r){this.magicLinkError=r instanceof Error?r.message:"Could not send sign-in link. Try again.";}finally{this.magicLinkSending=false,this.render();}}openReporter(){this.loadReporterReports();}getRecorderStep(){return this.step}getRecorderCategoryStepIA(){return {sectionLabel:this.shadow.querySelector("#mushi-title")?.textContent?.trim()??"",moreToggle:!!this.shadow.querySelector('[data-action="toggle-more-nav"]'),footerStepIndicators:0}}getRecorderTrigger(){return this.triggerEl}getRecorderCategoryButton(e){return this.shadow.querySelector(`[data-category="${e}"]`)}getRecorderIntentButton(e){return Array.from(this.shadow.querySelectorAll("[data-intent]")).find(r=>r.dataset.intent===e)??null}getRecorderSubmitButton(){return this.shadow.querySelector('[data-action="submit"]')}recorderClickTrigger(){this.isOpen&&this.close(),this.open();}recorderSelectCategory(e){this.isOpen||this.open(),this.step="report",this.chip=e,this.intent=null,this.render();}recorderSelectIntent(e){!this.isOpen||this.step!=="report"||(this.intent=e,this.render());}recorderFocusDescription(){this.shadow.querySelector('[data-role="description"]')?.focus();}recorderSubmit(){this.submitReport();}recorderOpenMyReports(){this.loadReporterReports();}};function va(t){let e=t.dataset;return e.role?`[data-role="${e.role}"]`:e.category?`[data-category="${Gr(e.category)}"]`:e.intent?`[data-intent="${Gr(e.intent)}"]`:e.reportId?`[data-report-id="${Gr(e.reportId)}"]`:e.action?`[data-action="${e.action}"]${e.value?`[data-value="${Gr(e.value)}"]`:""}`:null}function Gr(t){return t.replace(/["\\]/g,"\\$&")}function wa(t){t.style.height="auto",t.style.height=`${Math.min(t.scrollHeight,104)}px`;}function Hd(t){let e=t.dataset.copyId;if(!e)return;let r=t.textContent,n=()=>{t.textContent="Copied \u2713",window.setTimeout(()=>{t.isConnected&&(t.textContent=r);},1600);};try{navigator.clipboard?.writeText?navigator.clipboard.writeText(e).then(n,n):n();}catch{n();}}function ti(t,e){try{return globalThis[t]?.getItem(e)??null}catch{return null}}function ri(t,e,r){try{globalThis[t]?.setItem(e,r);}catch{}}function ni(t){ri("localStorage",`mushi_has_reports_${t}`,"1");}function ii(t){return ti("localStorage",`mushi_has_reports_${t}`)==="1"}function Sa(t,e=Date.now()){if(ti("sessionStorage",`mushi_toast_${t}`))return false;let r=Number(ti("localStorage",`mushi_toast_at_${t}`)??0);return !(r&&e-r<864e5)}function xa(t,e=Date.now()){ri("sessionStorage",`mushi_toast_${t}`,"1"),ri("localStorage",`mushi_toast_at_${t}`,String(e));}function Ra(t){let e=t.reporterRequest,r=n=>encodeURIComponent(n);return {getUpdates:(n,i)=>e("GET",`/v1/reporter/updates${i?`?since=${encodeURIComponent(i)}`:""}`,n),getReport:(n,i)=>e("GET",`/v1/reporter/reports/${r(n)}`,i),markReportRead:(n,i)=>e("POST",`/v1/reporter/reports/${r(n)}/read`,i,{}),markAllRead:n=>e("POST","/v1/reporter/notifications/read-all",n,{}),getPrefs:n=>e("GET","/v1/reporter/notification-prefs",n),setPrefs:(n,i)=>e("PUT","/v1/reporter/notification-prefs",n,i),subscribePush:(n,i)=>e("POST","/v1/reporter/push-subscriptions",n,i),unsubscribePush:(n,i)=>e("DELETE","/v1/reporter/push-subscriptions",n,{endpoint:i})}}async function ka(t,e,r,n){try{if(!r||typeof Notification>"u"||!navigator.serviceWorker)return {ok:!1,reason:"unsupported"};if(!n)return {ok:!1,reason:"not_available"};if(await Notification.requestPermission()!=="granted")return {ok:!1,reason:"denied"};let i=await navigator.serviceWorker.register(r),o=n.replace(/-/g,"+").replace(/_/g,"/"),a=atob(o+"=".repeat((4-o.length%4)%4)),s=await i.pushManager.subscribe({userVisibleOnly:!0,applicationServerKey:Uint8Array.from(a,d=>d.charCodeAt(0))}),u=await t.subscribePush(e,s.toJSON());return u.ok?{ok:!0}:{ok:!1,reason:u.error?.code??"error"}}catch(i){return {ok:false,reason:i instanceof Error&&i.name||"error"}}}function Bd(t,e){let r={...t};if(e)for(let[n,i]of Object.entries(e))i!==void 0&&(r[n]=i);return r}var Fd=["brandFooter"];function _a(t,e,r=t){let n=e.native?.triggerMode,i=e.widget?.launcher,o=t.widget?.trigger,a=i??e.widget?.trigger,u=(a==="auto"&&o&&o!=="auto"?void 0:a)??(n==="none"||n==="shake"?"manual":void 0),d=i==="hidden"||e.widget?.trigger==="hidden",p=u==="hidden"&&!d&&o&&o!=="hidden"?o:u,h=e.widget,k=h?.bannerVariant,S=h?.bannerPosition,T=h?.bannerMessage,E=h?.bannerLabel,w=h?.bannerBugCta,L=h?.bannerFeatureCta,M=k||S||T!=null||E!=null||w!=null||L!=null?{...t.widget?.bannerConfig??{},...k?{variant:k}:{},...S?{position:S}:{},...T!=null?{message:T}:{},...E!=null?{label:E===""?false:E}:{},...w!=null?{bugCta:w??void 0}:{},...L!=null?{featureCta:L}:{}}:void 0,x={};if(e.widget)for(let[f,g]of Object.entries(e.widget))f==="trigger"||f==="launcher"||g!=null&&(Fd.includes(f)&&r.widget?.[f]!==void 0||(x[f]=g));return {...t,widget:{...t.widget,...x,...p?{trigger:p}:{},...M?{bannerConfig:M}:{},...t.widget?.betaMode?{betaMode:t.widget.betaMode}:{}},capture:Bd(t.capture,e.capture),privacy:{...t.privacy}}}function Xr(t){if(!t)return null;let e=t.getBoundingClientRect();return e.width===0&&e.height===0?null:{x:e.left+e.width/2,y:e.top+e.height/2}}function Ca(t){if(typeof globalThis>"u")return;let e={ready:()=>t.getIsMounted(),getStep:()=>t.getRecorderStep(),getCategoryStepIA:()=>t.getRecorderCategoryStepIA(),getTriggerCenter:()=>Xr(t.getRecorderTrigger()),getCategoryCenter:r=>Xr(t.getRecorderCategoryButton(r)),getIntentCenter:r=>Xr(t.getRecorderIntentButton(r)),getSubmitCenter:()=>Xr(t.getRecorderSubmitButton()),clickTrigger:()=>t.recorderClickTrigger(),selectCategory:r=>t.recorderSelectCategory(r),selectIntent:r=>t.recorderSelectIntent(r),focusDescription:()=>t.recorderFocusDescription(),submit:()=>t.recorderSubmit(),openMyReports:()=>t.recorderOpenMyReports()};globalThis.__mushiRecorder=e;}var oi=null,si=null,lr=null,cr=null,dr=null,pr=null,hr=null,Jr=false,wt=new Set;function Nd(){for(let t of wt)try{t.onPush?.();}catch{}}function Ud(){for(let t of wt)try{t.onReplace?.();}catch{}}function qd(){for(let t of wt)try{t.onPop?.();}catch{}}function jd(){Jr||typeof window>"u"||(lr=History.prototype.pushState,cr=History.prototype.replaceState,oi=lr.bind(history),si=cr.bind(history),dr=function(...e){let n=(oi??History.prototype.pushState.bind(history))(...e);return Nd(),n},pr=function(...e){let n=(si??History.prototype.replaceState.bind(history))(...e);return Ud(),n},history.pushState=dr,history.replaceState=pr,hr=()=>qd(),window.addEventListener("popstate",hr),Jr=true);}function Ta(){!Jr||typeof window>"u"||(hr&&(window.removeEventListener("popstate",hr),hr=null),dr&&history.pushState===dr&&lr&&(history.pushState=lr),pr&&history.replaceState===pr&&cr&&(history.replaceState=cr),dr=null,pr=null,oi=null,si=null,lr=null,cr=null,Jr=false);}function Me(t){return jd(),wt.add(t),()=>{wt.delete(t),wt.size===0&&Ta();}}function Aa(){wt.clear(),Ta();}var Wd=3e4,Vd=3e5,Kd=6e4,zd=60,La="mushi_session_min_day_",$t=[],Ot=null,Ht=null,Ge=null,Pa=null,ai=null,Bt=null,rt=false,mr=null,Da=0,Gd=300*1e3,ci=0,Yd=900*1e3;function di(){return Date.now()<ci}function pi(t){t?.startsWith("HTTP_4")&&(ci=Date.now()+Yd);}var Ia=new Set;function ui(t){return `mushi_rewards_consent_${t}`}function Xd(t){try{return localStorage.getItem(ui(t))==="1"}catch{return false}}function li(t,e){try{e?localStorage.setItem(ui(t),"1"):localStorage.removeItem(ui(t)),rt=e;}catch{}}function $a(){return new Date().toISOString().slice(0,10)}function Oa(t){try{let e=sessionStorage.getItem(`${La}${t}_${$a()}`);return e?parseInt(e,10):0}catch{return 0}}function Jd(t){let e=$a(),r=`${La}${t}_${e}`;try{let n=Oa(t)+1;return sessionStorage.setItem(r,String(n)),n}catch{return 99}}function Ha(t){Bt=t.client,Ge=t.userId,Pa=t.traits??null,ai=t.reporterToken??null;let{projectId:e}=t,r=Math.max(Wd,t.config.flushIntervalMs??Vd);t.config.consentMode==="auto"?(rt=true,li(e,true)):rt=Xd(e),t.config.trackActivity&&Zd(e),Ot&&clearInterval(Ot),Ot=setInterval(()=>Qd(t),r),Ht&&clearInterval(Ht),Ht=setInterval(()=>{if(!rt||!Ge)return;let n=Oa(e);n<zd&&(Jd(e),Ft({action:"session_minute",metadata:{minutes_today:n+1}}));},Kd),t.config.showInWidget&&hi(Ge).then(n=>{n&&qa(n,t.config);}),t.config.consentMode!=="auto"&&!rt&&tp(e,t.config);}function Ft(t){!rt||!Ge||$t.push({...t,queuedAt:Date.now()});}async function Qd(t){if(!rt||!Ge||$t.length===0)return;let e=null;if(t.config.verifyUserToken)try{e=await t.config.verifyUserToken();}catch{}if(di())return;let r=$t.splice(0,100);try{let n=ai?await nr(ai):void 0,i=await t.client.submitActivity(Ge,r,{userTraits:Pa??void 0,reporterTokenHash:n,optedIn:!0,hostJwt:e??void 0});i.ok||(pi(i.error?.code),i.error?.code?.startsWith("HTTP_4")||$t.unshift(...r.slice(0,50)));}catch{$t.unshift(...r.slice(0,50));}}async function Ba(t){let e=Date.now();return mr&&e-Da<Gd?mr:hi(t)}async function hi(t){if(!Bt||di())return null;let e=await Bt.getMyTier(t);return e.ok&&e.data?(mr=e.data,Da=Date.now(),mr):(pi(e.error?.code),null)}async function Fa(t=10){if(!Bt||di())return null;try{let e=await Bt.getHallOfFame(t);return e.ok&&e.data?(e.data.data??[]).map(r=>({display_name:r.display_name,tier_name:r.tier_name,total_points:r.total_points,points_30d:r.points_30d})):(pi(e.error?.code),null)}catch{return null}}function Na(){Ot&&(clearInterval(Ot),Ot=null),Ht&&(clearInterval(Ht),Ht=null),Ua(),ep(),ve&&(ve.remove(),ve=null),$t=[],Ge=null,Bt=null,rt=false,mr=null,ci=0;}var Zr=null,fr=null,en=null,Ma="",Qr=false;function Zd(t){if(Qr&&en)return;Qr&&Ua(),Qr=true;let e=()=>{let n=location.pathname;if(n===Ma)return;Ma=n,!Ia.has(`${t}:${n}`)&&(Ia.add(`${t}:${n}`),Ft({action:"screen_view_unique_per_day",metadata:{route:n}}));};en=Me({onPush:e,onPop:e}),e(),Zr=new MutationObserver(()=>e());let r=document.querySelector("main")??document.body;Zr.observe(r,{childList:true,subtree:false}),fr=n=>{let i=n.target.closest("[data-testid]");if(!i)return;let o=i.dataset.testid;o&&Ft({action:"element_selected",metadata:{testid:o,route:location.pathname}});},document.addEventListener("click",fr,{capture:true,passive:true});}function Ua(){Qr=false,en?.(),en=null,Zr?.disconnect(),Zr=null,fr&&(document.removeEventListener("click",fr,{capture:true}),fr=null);}var ze=null;function qa(t,e){if(!e.showInWidget)return;ze&&ze.remove(),ze=document.createElement("div"),ze.id="mushi-tier-badge",Object.assign(ze.style,{position:"fixed",bottom:"56px",right:"16px",zIndex:"2147483645",fontFamily:"system-ui, sans-serif"});let r=ze.attachShadow({mode:"closed"});r.innerHTML=`
2264
6
  <style>
2265
7
  :host { display: block; }
2266
8
  .badge {
@@ -2282,7 +24,7 @@
2282
24
  width: 6px;
2283
25
  height: 6px;
2284
26
  border-radius: 50%;
2285
- background: ${pe.accent};
27
+ background: ${de.accent};
2286
28
  flex-shrink: 0;
2287
29
  }
2288
30
  </style>
@@ -2290,20 +32,20 @@
2290
32
  <span class="dot"></span>
2291
33
  <span>${t.displayName}</span>
2292
34
  </div>
2293
- `,document.body.appendChild(Ge);}function Ru(){Ge?.remove(),Ge=null;}var ke=null;function Cu(t,e){if(ke)return;ke=document.createElement("div"),ke.id="mushi-consent-banner",Object.assign(ke.style,{position:"fixed",bottom:"80px",right:"16px",zIndex:"2147483646",maxWidth:"280px",fontFamily:"system-ui, sans-serif"});let r=ke.attachShadow({mode:"closed"});r.innerHTML=`
35
+ `,document.body.appendChild(ze);}function ep(){ze?.remove(),ze=null;}var ve=null;function tp(t,e){if(ve)return;ve=document.createElement("div"),ve.id="mushi-consent-banner",Object.assign(ve.style,{position:"fixed",bottom:"80px",right:"16px",zIndex:"2147483646",maxWidth:"280px",fontFamily:"system-ui, sans-serif"});let r=ve.attachShadow({mode:"closed"});r.innerHTML=`
2294
36
  <style>
2295
37
  :host { display: block; }
2296
38
  .banner {
2297
- background: ${pe.paperRaised};
2298
- border: 1px solid ${pe.ruleStrong};
39
+ background: ${de.paperRaised};
40
+ border: 1px solid ${de.ruleStrong};
2299
41
  border-radius: 12px;
2300
42
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
2301
43
  padding: 14px 16px;
2302
44
  font-size: 13px;
2303
45
  line-height: 1.5;
2304
- color: ${pe.inkMuted};
46
+ color: ${de.inkMuted};
2305
47
  }
2306
- .title { font-weight: 700; margin-bottom: 6px; color: ${pe.ink}; }
48
+ .title { font-weight: 700; margin-bottom: 6px; color: ${de.ink}; }
2307
49
  .actions { display: flex; gap: 8px; margin-top: 10px; }
2308
50
  button {
2309
51
  flex: 1;
@@ -2314,8 +56,8 @@
2314
56
  font-size: 12px;
2315
57
  font-weight: 600;
2316
58
  }
2317
- .accept { background: ${pe.accent}; color: ${pe.paperRaised}; }
2318
- .decline { background: ${pe.paper}; color: ${pe.inkMuted}; }
59
+ .accept { background: ${de.accent}; color: ${de.paperRaised}; }
60
+ .decline { background: ${de.paper}; color: ${de.inkMuted}; }
2319
61
  </style>
2320
62
  <div class="banner">
2321
63
  <div class="title">\u{1F3AF} Earn rewards</div>
@@ -2325,30 +67,30 @@
2325
67
  <button class="decline" id="decline">No thanks</button>
2326
68
  </div>
2327
69
  </div>
2328
- `,r.getElementById("accept")?.addEventListener("click",()=>{Kn(t,true),ke?.remove(),ke=null,e.showInWidget&&Xe&&Yn(Xe).then(n=>{n&&zi(n,e);});}),r.getElementById("decline")?.addEventListener("click",()=>{Kn(t,false),ke?.remove(),ke=null;}),document.body.appendChild(ke);}var Tu=[/\/v1\/sdk(?:\/|$)/,/\/v1\/reports(?:\/|$)/,/\/v1\/notifications(?:\/|$)/,/\/v1\/reputation(?:\/|$)/];function Kr(t){return typeof t=="string"?t:t instanceof URL?t.href:t.url}function Vr(t,e){let r=e?.[St];if(r)return r;let n=Mu(e?.headers,Yt);if(n)return n;if(typeof Request<"u"&&t instanceof Request){let s=t.headers.get(Yt);if(s)return s}return null}function ir(t,e={}){if([...Tu,...e.ignoreUrls??[]].some(s=>Iu(t,s)))return true;let n=$u(e.apiEndpoint);return n?Jn(t).startsWith(n):false}function Iu(t,e){return typeof e=="string"?Jn(t).includes(e):(e.lastIndex=0,e.test(t))}function $u(t){if(!t)return null;let e=Jn(t),r=e.length;for(;r>0&&e.charCodeAt(r-1)===47;)r--;return e.slice(0,r)}function Jn(t){try{return new URL(t,typeof location<"u"?location.href:"http://localhost").href}catch{return t}}function Mu(t,e){if(!t)return null;if(typeof Headers<"u"&&t instanceof Headers)return t.get(e);if(Array.isArray(t))return t.find(([s])=>s.toLowerCase()===e.toLowerCase())?.[1]??null;let r=t;return r[e]??r[e.toLowerCase()]??null}var Lu=30,_u="00";function Ki(){let t=crypto.getRandomValues(new Uint8Array(16)),e=crypto.getRandomValues(new Uint8Array(8)),r=o=>Array.from(o).map(a=>a.toString(16).padStart(2,"0")).join(""),n=r(t),s=r(e);return {traceparent:`${_u}-${n}-${s}-01`,traceId:n,spanId:s}}function Vi(t,e){for(let r of e)if(typeof r=="string"){if(t.includes(r))return true}else if(r.test(t))return true;return false}var st=[];function Xi(){return st[st.length-1]}function Gi(){let t=crypto.getRandomValues(new Uint8Array(4));return Array.from(t).map(e=>e.toString(16).padStart(2,"0")).join("")}function Zn(t={}){let e=[],r=globalThis.fetch,n=typeof XMLHttpRequest<"u"?XMLHttpRequest:null,s=n?XMLHttpRequest.prototype.open:null,o=n?XMLHttpRequest.prototype.send:null,a=n?XMLHttpRequest.prototype.setRequestHeader:null,i=t,l=async function(S,w){let k=Date.now(),_=w?.method?.toUpperCase()??"GET",R=Kr(S),g=!Vr(S,w)&&!ir(R,i),v=g?Gi():void 0,b,E=w,I=i.tracePropagation;if(g&&I?.enabled&&I.corsUrls?.length&&Vi(R,I.corsUrls)){let{traceparent:A,traceId:T}=Ki();b=T;let j=w?.headers?new Headers(w.headers):new Headers;j.set("traceparent",A),i.sessionId&&j.set("x-mushi-session",i.sessionId),E={...w,headers:j};}v&&st.push(v);try{let A=await r.call(globalThis,S,E);return g&&y({method:_,url:Qn(R),status:A.status,duration:Date.now()-k,timestamp:k,captureMethod:"fetch",...b?{traceId:b}:{},...v?{correlationId:v}:{}}),A}catch(A){throw g&&y({method:_,url:Qn(R),status:0,duration:Date.now()-k,timestamp:k,error:A instanceof Error?A.message:"Network error",captureMethod:"fetch",...b?{traceId:b}:{},...v?{correlationId:v}:{}}),A}finally{if(v){let A=st.lastIndexOf(v);A!==-1&&st.splice(A,1);}}};globalThis.fetch=l;let h=typeof WeakMap<"u"?new WeakMap:null;if(n&&s&&o&&a&&h){let u=s;XMLHttpRequest.prototype.open=function(...w){let[k,_]=w,R=typeof _=="string"?_:String(_),M=!ir(R,i),g=M?Gi():void 0,v,b,E=i.tracePropagation;if(M&&E?.enabled&&E.corsUrls?.length&&Vi(R,E.corsUrls)){let A=Ki();v=A.traceId,b=A.traceparent;}let I=h.get(this);I?._listener&&this.removeEventListener("readystatechange",I._listener),h.set(this,{method:String(k).toUpperCase(),url:Qn(R),startTime:0,shouldRecord:M,...v?{traceId:v}:{},...g?{correlationId:g}:{},...b?{_traceparent:b}:{}}),u.apply(this,w);},XMLHttpRequest.prototype.send=function(w){let k=h.get(this);if(k){k.startTime=Date.now();let _=k._traceparent;_&&(a.call(this,"traceparent",_),i.sessionId&&a.call(this,"x-mushi-session",i.sessionId)),k.correlationId&&st.push(k.correlationId);let R=()=>{if(this.readyState===4){if(k.shouldRecord){let M=Date.now()-k.startTime,g={method:k.method,url:k.url,status:this.status,duration:M,timestamp:k.startTime,captureMethod:"xhr",...k.traceId?{traceId:k.traceId}:{},...k.correlationId?{correlationId:k.correlationId}:{}};this.status===0&&(g.error="XHR network error or aborted"),y(g);}if(k.correlationId){let M=st.lastIndexOf(k.correlationId);M!==-1&&st.splice(M,1);}}};k._listener=R,this.addEventListener("readystatechange",R);}o.call(this,w);};}let f=n?XMLHttpRequest.prototype.open:null,p=n?XMLHttpRequest.prototype.send:null;function y(u){e.push(u),e.length>Lu&&e.shift();}return {getEntries(){return [...e]},clear(){e.length=0;},updateOptions(u){i=u;},destroy(){globalThis.fetch===l&&(globalThis.fetch=r),n&&s&&o&&(f&&XMLHttpRequest.prototype.open===f&&(XMLHttpRequest.prototype.open=s),p&&XMLHttpRequest.prototype.send===p&&(XMLHttpRequest.prototype.send=o));}}}function Qn(t){let e=Qt(t);try{let r=new URL(e),n=r.pathname+r.search;return n.length>200?r.origin+n.slice(0,200)+"...":r.origin+n}catch{return e.slice(0,200)}}var Au=50,Hu=500;function es(){let t=[],e={},r={},n=["log","warn","error","info","debug"];for(let s of n){let o=console[s];e[s]=o;let a=(...i)=>{let l=i.map(p=>{try{return typeof p=="string"?p:JSON.stringify(p)}catch{return String(p)}}).join(" ").slice(0,Hu),h=Xi(),f={level:s,message:l,timestamp:Date.now(),...h?{correlationId:h}:{}};s==="error"&&i[0]instanceof Error&&(f.stack=i[0].stack?.slice(0,1e3)),t.push(f),t.length>Au&&t.shift(),o.call(console,...i);};r[s]=a,console[s]=a;}return {getEntries(){return [...t]},clear(){t.length=0;},destroy(){for(let s of n)e[s]&&console[s]===r[s]&&(console[s]=e[s]);}}}function ns(t={}){let e=t;async function r(){try{if(typeof document>"u")return null;let n=document.createElement("canvas"),s=n.getContext("2d");if(!s)return null;let o=window.innerWidth,a=window.innerHeight,i=Math.min(window.devicePixelRatio||1,2);n.width=o*i,n.height=a*i,s.scale(i,i);let l=Du(e.privacy),h=`
70
+ `,r.getElementById("accept")?.addEventListener("click",()=>{li(t,true),ve?.remove(),ve=null,e.showInWidget&&Ge&&hi(Ge).then(n=>{n&&qa(n,e);});}),r.getElementById("decline")?.addEventListener("click",()=>{li(t,false),ve?.remove(),ve=null;}),document.body.appendChild(ve);}var rp=[/\/v1\/sdk(?:\/|$)/,/\/v1\/reports(?:\/|$)/,/\/v1\/notifications(?:\/|$)/,/\/v1\/reputation(?:\/|$)/];function tn(t){return typeof t=="string"?t:t instanceof URL?t.href:t.url}function rn(t,e){let r=e?.[ir];if(r)return r;let n=op(e?.headers,Br);if(n)return n;if(typeof Request<"u"&&t instanceof Request){let i=t.headers.get(Br);if(i)return i}return null}function gr(t,e={}){if([...rp,...e.ignoreUrls??[]].some(i=>np(t,i)))return true;let n=ip(e.apiEndpoint);return n?fi(t).startsWith(n):false}function np(t,e){return typeof e=="string"?fi(t).includes(e):(e.lastIndex=0,e.test(t))}function ip(t){if(!t)return null;let e=fi(t),r=e.length;for(;r>0&&e.charCodeAt(r-1)===47;)r--;return e.slice(0,r)}function fi(t){try{return new URL(t,typeof location<"u"?location.href:"http://localhost").href}catch{return t}}function op(t,e){if(!t)return null;if(typeof Headers<"u"&&t instanceof Headers)return t.get(e);if(Array.isArray(t))return t.find(([i])=>i.toLowerCase()===e.toLowerCase())?.[1]??null;let r=t;return r[e]??r[e.toLowerCase()]??null}var sp=30,ap="00";function ja(){let t=crypto.getRandomValues(new Uint8Array(16)),e=crypto.getRandomValues(new Uint8Array(8)),r=o=>Array.from(o).map(a=>a.toString(16).padStart(2,"0")).join(""),n=r(t),i=r(e);return {traceparent:`${ap}-${n}-${i}-01`,traceId:n,spanId:i}}function Wa(t,e){for(let r of e)if(typeof r=="string"){if(t.includes(r))return true}else if(r.test(t))return true;return false}var nt=[];function Ka(){return nt[nt.length-1]}function Va(){let t=crypto.getRandomValues(new Uint8Array(4));return Array.from(t).map(e=>e.toString(16).padStart(2,"0")).join("")}function gi(t={}){let e=[],r=globalThis.fetch,n=typeof XMLHttpRequest<"u"?XMLHttpRequest:null,i=n?XMLHttpRequest.prototype.open:null,o=n?XMLHttpRequest.prototype.send:null,a=n?XMLHttpRequest.prototype.setRequestHeader:null,s=t,u=async function(T,E){let w=Date.now(),L=E?.method?.toUpperCase()??"GET",M=tn(T),f=!rn(T,E)&&!gr(M,s),g=f?Va():void 0,m,b=E,C=s.tracePropagation;if(f&&C?.enabled&&C.corsUrls?.length&&Wa(M,C.corsUrls)){let{traceparent:P,traceId:v}=ja();m=v;let K=E?.headers?new Headers(E.headers):new Headers;K.set("traceparent",P),s.sessionId&&K.set("x-mushi-session",s.sessionId),b={...E,headers:K};}g&&nt.push(g);try{let P=await r.call(globalThis,T,b);return f&&k({method:L,url:mi(M),status:P.status,duration:Date.now()-w,timestamp:w,captureMethod:"fetch",...m?{traceId:m}:{},...g?{correlationId:g}:{}}),P}catch(P){throw f&&k({method:L,url:mi(M),status:0,duration:Date.now()-w,timestamp:w,error:P instanceof Error?P.message:"Network error",captureMethod:"fetch",...m?{traceId:m}:{},...g?{correlationId:g}:{}}),P}finally{if(g){let P=nt.lastIndexOf(g);P!==-1&&nt.splice(P,1);}}};globalThis.fetch=u;let d=typeof WeakMap<"u"?new WeakMap:null;if(n&&i&&o&&a&&d){let S=i;XMLHttpRequest.prototype.open=function(...E){let[w,L]=E,M=typeof L=="string"?L:String(L),x=!gr(M,s),f=x?Va():void 0,g,m,b=s.tracePropagation;if(x&&b?.enabled&&b.corsUrls?.length&&Wa(M,b.corsUrls)){let P=ja();g=P.traceId,m=P.traceparent;}let C=d.get(this);C?._listener&&this.removeEventListener("readystatechange",C._listener),d.set(this,{method:String(w).toUpperCase(),url:mi(M),startTime:0,shouldRecord:x,...g?{traceId:g}:{},...f?{correlationId:f}:{},...m?{_traceparent:m}:{}}),S.apply(this,E);},XMLHttpRequest.prototype.send=function(E){let w=d.get(this);if(w){w.startTime=Date.now();let L=w._traceparent;L&&(a.call(this,"traceparent",L),s.sessionId&&a.call(this,"x-mushi-session",s.sessionId)),w.correlationId&&nt.push(w.correlationId);let M=()=>{if(this.readyState===4){if(w.shouldRecord){let x=Date.now()-w.startTime,f={method:w.method,url:w.url,status:this.status,duration:x,timestamp:w.startTime,captureMethod:"xhr",...w.traceId?{traceId:w.traceId}:{},...w.correlationId?{correlationId:w.correlationId}:{}};this.status===0&&(f.error="XHR network error or aborted"),k(f);}if(w.correlationId){let x=nt.lastIndexOf(w.correlationId);x!==-1&&nt.splice(x,1);}}};w._listener=M,this.addEventListener("readystatechange",M);}o.call(this,E);};}let p=n?XMLHttpRequest.prototype.open:null,h=n?XMLHttpRequest.prototype.send:null;function k(S){e.push(S),e.length>sp&&e.shift();}return {getEntries(){return [...e]},clear(){e.length=0;},updateOptions(S){s=S;},destroy(){globalThis.fetch===u&&(globalThis.fetch=r),n&&i&&o&&(p&&XMLHttpRequest.prototype.open===p&&(XMLHttpRequest.prototype.open=i),h&&XMLHttpRequest.prototype.send===h&&(XMLHttpRequest.prototype.send=o));}}}function mi(t){let e=sr(t);try{let r=new URL(e),n=r.pathname+r.search;return n.length>200?r.origin+n.slice(0,200)+"...":r.origin+n}catch{return e.slice(0,200)}}var up=50,lp=500;function bi(){let t=[],e={},r={},n=["log","warn","error","info","debug"];for(let i of n){let o=console[i];e[i]=o;let a=(...s)=>{let u=s.map(h=>{try{return typeof h=="string"?h:JSON.stringify(h)}catch{return String(h)}}).join(" ").slice(0,lp),d=Ka(),p={level:i,message:u,timestamp:Date.now(),...d?{correlationId:d}:{}};i==="error"&&s[0]instanceof Error&&(p.stack=s[0].stack?.slice(0,1e3)),t.push(p),t.length>up&&t.shift(),o.call(console,...s);};r[i]=a,console[i]=a;}return {getEntries(){return [...t]},clear(){t.length=0;},destroy(){for(let i of n)e[i]&&console[i]===r[i]&&(console[i]=e[i]);}}}function wi(t={}){let e=t;async function r(){try{if(typeof document>"u")return null;let n=document.createElement("canvas"),i=n.getContext("2d",{willReadFrequently:!0});if(!i)return e.onFailed?.("unsupported"),Ei("unsupported"),null;let o=window.innerWidth,a=window.innerHeight,s=Math.min(window.devicePixelRatio||1,2);n.width=o*s,n.height=a*s,i.scale(s,s);let u=dp(e.privacy),d=`
2329
71
  <svg xmlns="http://www.w3.org/2000/svg" width="${o}" height="${a}">
2330
72
  <foreignObject width="100%" height="100%">
2331
73
  <div xmlns="http://www.w3.org/1999/xhtml">
2332
- ${new XMLSerializer().serializeToString(l)}
74
+ ${new XMLSerializer().serializeToString(u)}
2333
75
  </div>
2334
76
  </foreignObject>
2335
77
  </svg>
2336
- `,f=new Image,p=new Blob([h],{type:"image/svg+xml;charset=utf-8"}),y=URL.createObjectURL(p);return new Promise(u=>{let S=!1,w=(_,R)=>{S||(S=!0,clearTimeout(k),URL.revokeObjectURL(y),R&&(e.onFailed?.(R),Yi(R)),u(_));},k=setTimeout(()=>w(null,"error"),5e3);f.onload=()=>{try{if(s.drawImage(f,0,0,o,a),Uu(s,o,a)){w(null,"error");return}w(n.toDataURL("image/jpeg",.7));}catch{w(null,"taint");}},f.onerror=()=>w(null,"error"),f.src=y;})}catch{return e.onFailed?.("error"),Yi("error"),null}}return {take:r,updateOptions(n){e=n;}}}function Yi(t){try{document.dispatchEvent(new CustomEvent("mushi:screenshot_failed",{detail:{reason:t},bubbles:!1}));}catch{}}var Pu=['input[type="password"]',"[data-mushi-redact]"];function Du(t){let e=document.documentElement.cloneNode(true);e.querySelector("#mushi-mushi-widget")?.remove(),Bu(e),Nu(e);let r=t?.redactSelectors!==void 0?t.redactSelectors:Pu;for(let n of r)for(let s of ts(e,n))Ou(s);for(let n of t?.blockSelectors??[])for(let s of ts(e,n))s.remove();for(let n of t?.maskSelectors??[])for(let s of ts(e,n))qu(s);return e}function ts(t,e){try{return Array.from(t.querySelectorAll(e))}catch{return []}}function Ou(t){for((t instanceof HTMLInputElement||t instanceof HTMLTextAreaElement)&&(t.value="",t.setAttribute("value","")),t.textContent="",t.setAttribute("style",`${t.getAttribute("style")??""};background:#000!important;color:#000!important;text-shadow:none!important;border-color:#000!important;`),t.setAttribute("data-mushi-redacted","true");t.firstChild;)t.removeChild(t.firstChild);}function Bu(t){let e=typeof location<"u"?location.origin:"";for(let r of t.querySelectorAll("img, video, iframe, object, embed, picture"))r.remove();for(let r of t.querySelectorAll('link[rel="stylesheet"], link[as="style"]'))r.remove();for(let r of t.querySelectorAll("style")){let n=rs(r.textContent??"",e);n!==r.textContent&&(r.textContent=n);}for(let r of t.querySelectorAll("[style]")){let n=r.getAttribute("style");if(!n)continue;let s=rs(n,e);s!==n&&r.setAttribute("style",s);}for(let r of t.querySelectorAll("script"))r.remove();}function rs(t,e){return t.replace(/url\(\s*(['"]?)([^)'"]+)\1\s*\)/gi,(r,n,s)=>{let o=s.trim();return !o||o.startsWith("data:")||o.startsWith("#")?r:Fu(o,e)?"none":r})}function Nu(t){let e=typeof location<"u"?location.origin:"",r=[],n=[...Array.from(document.styleSheets),...document.adoptedStyleSheets??[]];for(let a of n){let i=a.ownerNode;i instanceof Element&&i.tagName==="STYLE"||r.push(Ji(a));}let s=rs(r.filter(Boolean).join(`
2337
- `),e);if(!s)return;let o=document.createElement("style");o.textContent=s,(t.querySelector("head")??t).appendChild(o);}function Ji(t){let e;try{e=t.cssRules;}catch{return ""}let r="";for(let n of Array.from(e)){if(n instanceof CSSImportRule){n.styleSheet&&(r+=Ji(n.styleSheet));continue}r+=`${n.cssText}
2338
- `;}return r}function Uu(t,e,r){try{let n=Math.max(1,Math.floor(e/8)),s=Math.max(1,Math.floor(r/8));for(let o=0;o<r;o+=s)for(let a=0;a<e;a+=n)if(t.getImageData(a,o,1,1).data[3]!==0)return !1;return !0}catch{return false}}function Fu(t,e){if(!t||t.startsWith("data:")||t.startsWith("blob:"))return false;try{let r=new URL(t,typeof location<"u"?location.href:"http://localhost/");return !!e&&r.origin!==e}catch{return true}}function qu(t){(t instanceof HTMLInputElement||t instanceof HTMLTextAreaElement)&&(t.value="",t.setAttribute("value",""),t.setAttribute("placeholder","\u2022\u2022\u2022\u2022")),t.textContent=t.children.length===0?"\u2022\u2022\u2022\u2022":t.textContent,t.setAttribute("style",`${t.getAttribute("style")??""};background:#8f8f8f!important;color:transparent!important;text-shadow:none!important;`),t.setAttribute("data-mushi-masked","true");}function ju(t){if(!t||!t.tagName)return;let e=t,r=e.tagName.toLowerCase(),n=e.id?`#${e.id}`:"",s=e.classList&&e.classList.length>0?`.${e.classList[0]}`:"";return `${r}${n}${s}`}function ss(){let t={},e=[];if(typeof PerformanceObserver<"u"){try{let r=new PerformanceObserver(n=>{for(let s of n.getEntries())s.name==="first-contentful-paint"&&(t.fcp=s.startTime);});r.observe({type:"paint",buffered:!0}),e.push(r);}catch{}try{let r=new PerformanceObserver(n=>{let s=n.getEntries();s.length>0&&(t.lcp=s[s.length-1].startTime);});r.observe({type:"largest-contentful-paint",buffered:!0}),e.push(r);}catch{}try{let r=0,n=new PerformanceObserver(s=>{for(let o of s.getEntries())o.hadRecentInput||(r+=o.value??0,t.cls=r);});n.observe({type:"layout-shift",buffered:!0}),e.push(n);}catch{}try{let r=0,n=new PerformanceObserver(s=>{r+=s.getEntries().length,t.longTasks=r;});n.observe({type:"longtask",buffered:!0}),e.push(n);}catch{}try{let r=new Map,n=new PerformanceObserver(s=>{for(let o of s.getEntries()){let a=o.interactionId;if(!a)continue;let i=r.get(a)??0;if(o.duration>i&&r.set(a,o.duration),o.duration>(t.inp??0)){t.inp=o.duration;let l=o.processingStart-o.startTime,h=o.processingEnd-o.processingStart,f=o.startTime+o.duration-o.processingEnd;t.inpAttribution={eventType:o.name,targetSelector:ju(o.target),inputDelay:Math.max(0,l),processingDuration:Math.max(0,h),presentationDelay:Math.max(0,f)};}}});n.observe({type:"event",durationThreshold:40,buffered:!0}),e.push(n);}catch{}try{let r=new PerformanceObserver(n=>{for(let s of n.getEntries())t.fid===void 0&&(t.fid=s.processingStart-s.startTime);});r.observe({type:"first-input",buffered:!0}),e.push(r);}catch{}}if(typeof performance<"u"&&performance.getEntriesByType)try{let r=performance.getEntriesByType("navigation");r.length>0&&r[0]&&(t.ttfb=r[0].responseStart-r[0].requestStart);}catch{}return {getMetrics(){return {...t}},destroy(){for(let r of e)r.disconnect();e.length=0;}}}function os(){let t=false,e=null,r=null,n=null,s=null;function o(g){let v=g,b=0;for(;v&&b<20;){let E=v.getAttribute?.("data-testid");if(E)return E;v=v.parentElement,b++;}return null}function a(g){let v=[],b=g;for(;b&&b!==document.body;){let E=1,I=b.previousElementSibling;for(;I;)I.tagName===b.tagName&&E++,I=I.previousElementSibling;let A=b.tagName.toLowerCase();v.unshift(E>1?`${A}[${E}]`:A),b=b.parentElement;}return "//"+v.join("/")}function i(g){let v=g.getBoundingClientRect(),b=typeof g.className=="string"?g.className:g.getAttribute("class")??"";return {tagName:g.tagName.toLowerCase(),id:g.id||void 0,className:b||void 0,textContent:g.textContent?.trim().slice(0,200)||void 0,xpath:a(g),rect:{x:Math.round(v.x),y:Math.round(v.y),width:Math.round(v.width),height:Math.round(v.height)},nearestTestid:o(g)||void 0,route:typeof window<"u"?window.location.pathname:void 0}}function l(){let g=document.createElement("div");return g.style.cssText=`
78
+ `,p=new Image,h=`data:image/svg+xml;charset=utf-8,${encodeURIComponent(d)}`,k=!1,S=T=>{let E=T;/^img-src|^default-src/.test(E.violatedDirective??"")&&/^data/.test(E.blockedURI??"")&&(k=!0);};return document.addEventListener("securitypolicyviolation",S),new Promise(T=>{let E=!1,w=(M,x)=>{E||(E=!0,clearTimeout(L),document.removeEventListener("securitypolicyviolation",S),x&&(e.onFailed?.(x),Ei(x)),T(M));},L=setTimeout(()=>w(null,"timeout"),5e3);p.onload=()=>{try{if(i.drawImage(p,0,0,o,a),Ep(i,o,a)){w(null,"unsupported");return}w(n.toDataURL("image/jpeg",.7));}catch{w(null,"taint");}},p.onerror=()=>setTimeout(()=>w(null,k?"csp":"error"),0),p.src=h;})}catch{return e.onFailed?.("error"),Ei("error"),null}}return {take:r,updateOptions(n){e=n;}}}function Ei(t){try{document.dispatchEvent(new CustomEvent("mushi:screenshot_failed",{detail:{reason:t},bubbles:!1}));}catch{}}var Si='input[type="password"],input[autocomplete^="cc-"],[data-private],[data-mushi-mask]',cp=["[data-mushi-redact]"];function dp(t){let e=document.documentElement.cloneNode(true);e.querySelector("#mushi-mushi-widget")?.remove(),hp(e),fp(e),bp(e),gp(e);let r=[Si,...t?.redactSelectors??cp];for(let n of r)for(let i of yi(e,n))pp(i);for(let n of t?.blockSelectors??[])for(let i of yi(e,n))i.remove();for(let n of t?.maskSelectors??[])for(let i of yi(e,n))vp(i);return e}function yi(t,e){try{return Array.from(t.querySelectorAll(e))}catch{return []}}function pp(t){for((t instanceof HTMLInputElement||t instanceof HTMLTextAreaElement)&&(t.value="",t.setAttribute("value","")),t.textContent="",t.setAttribute("style",`${t.getAttribute("style")??""};background:#000!important;color:#000!important;text-shadow:none!important;border-color:#000!important;`),t.setAttribute("data-mushi-redacted","true");t.firstChild;)t.removeChild(t.firstChild);}function hp(t){let e=typeof location<"u"?location.origin:"";for(let r of t.querySelectorAll("img, video, iframe, object, embed, picture"))r.remove();for(let r of t.querySelectorAll('link[rel="stylesheet"], link[as="style"]'))r.remove();for(let r of t.querySelectorAll("style")){let n=vi(r.textContent??"",e);n!==r.textContent&&(r.textContent=n);}for(let r of t.querySelectorAll("[style]")){let n=r.getAttribute("style");if(!n)continue;let i=vi(n,e);i!==n&&r.setAttribute("style",i);}for(let r of t.querySelectorAll("script"))r.remove();}function vi(t,e){return t.replace(/url\(\s*(['"]?)([^)'"]+)\1\s*\)/gi,(r,n,i)=>{let o=i.trim();return !o||o.startsWith("data:")||o.startsWith("#")?r:yp(o,e)?"none":r})}function fp(t){let e=typeof location<"u"?location.origin:"",r=[],n=[...Array.from(document.styleSheets),...document.adoptedStyleSheets??[]];for(let a of n){let s=a.ownerNode;s instanceof Element&&s.tagName==="STYLE"||r.push(za(a));}let i=vi(r.filter(Boolean).join(`
79
+ `),e);if(!i)return;let o=document.createElement("style");o.textContent=i,(t.querySelector("head")??t).appendChild(o);}var mp="*,*::before,*::after{animation:none!important;transition:none!important}";function gp(t){let e=i=>!i||i==="transparent"||/^rgba\(.*,\s*0\)$/.test(i),r=getComputedStyle(document.documentElement).backgroundColor;e(r)&&document.body&&(r=getComputedStyle(document.body).backgroundColor);let n=t;n.style.setProperty("background-color",e(r)?"Canvas":r),n.style.setProperty("min-height",`${window.innerHeight}px`);}function bp(t){let e=document.createElement("style");e.textContent=mp,(t.querySelector("head")??t).appendChild(e);}function za(t){let e;try{e=t.cssRules;}catch{return ""}let r="";for(let n of Array.from(e)){if(n instanceof CSSImportRule){n.styleSheet&&(r+=za(n.styleSheet));continue}r+=`${n.cssText}
80
+ `;}return r}function Ep(t,e,r){try{let n=Math.max(1,Math.floor(e/8)),i=Math.max(1,Math.floor(r/8));for(let o=0;o<r;o+=i)for(let a=0;a<e;a+=n)if(t.getImageData(a,o,1,1).data[3]!==0)return !1;return !0}catch{return false}}function yp(t,e){if(!t||t.startsWith("data:")||t.startsWith("blob:"))return false;try{let r=new URL(t,typeof location<"u"?location.href:"http://localhost/");return !!e&&r.origin!==e}catch{return true}}function vp(t){(t instanceof HTMLInputElement||t instanceof HTMLTextAreaElement)&&(t.value="",t.setAttribute("value",""),t.setAttribute("placeholder","\u2022\u2022\u2022\u2022")),t.textContent=t.children.length===0?"\u2022\u2022\u2022\u2022":t.textContent,t.setAttribute("style",`${t.getAttribute("style")??""};background:#8f8f8f!important;color:transparent!important;text-shadow:none!important;`),t.setAttribute("data-mushi-masked","true");}function wp(t){if(!t||!t.tagName)return;let e=t,r=e.tagName.toLowerCase(),n=e.id?`#${e.id}`:"",i=e.classList&&e.classList.length>0?`.${e.classList[0]}`:"";return `${r}${n}${i}`}function xi(){let t={},e=[];if(typeof PerformanceObserver<"u"){try{let r=new PerformanceObserver(n=>{for(let i of n.getEntries())i.name==="first-contentful-paint"&&(t.fcp=i.startTime);});r.observe({type:"paint",buffered:!0}),e.push(r);}catch{}try{let r=new PerformanceObserver(n=>{let i=n.getEntries();i.length>0&&(t.lcp=i[i.length-1].startTime);});r.observe({type:"largest-contentful-paint",buffered:!0}),e.push(r);}catch{}try{let r=0,n=new PerformanceObserver(i=>{for(let o of i.getEntries())o.hadRecentInput||(r+=o.value??0,t.cls=r);});n.observe({type:"layout-shift",buffered:!0}),e.push(n);}catch{}try{let r=0,n=new PerformanceObserver(i=>{r+=i.getEntries().length,t.longTasks=r;});n.observe({type:"longtask",buffered:!0}),e.push(n);}catch{}try{let r=new Map,n=new PerformanceObserver(i=>{for(let o of i.getEntries()){let a=o.interactionId;if(!a)continue;let s=r.get(a)??0;if(o.duration>s&&r.set(a,o.duration),o.duration>(t.inp??0)){t.inp=o.duration;let u=o.processingStart-o.startTime,d=o.processingEnd-o.processingStart,p=o.startTime+o.duration-o.processingEnd;t.inpAttribution={eventType:o.name,targetSelector:wp(o.target),inputDelay:Math.max(0,u),processingDuration:Math.max(0,d),presentationDelay:Math.max(0,p)};}}});n.observe({type:"event",durationThreshold:40,buffered:!0}),e.push(n);}catch{}try{let r=new PerformanceObserver(n=>{for(let i of n.getEntries())t.fid===void 0&&(t.fid=i.processingStart-i.startTime);});r.observe({type:"first-input",buffered:!0}),e.push(r);}catch{}}if(typeof performance<"u"&&performance.getEntriesByType)try{let r=performance.getEntriesByType("navigation");r.length>0&&r[0]&&(t.ttfb=r[0].responseStart-r[0].requestStart);}catch{}return {getMetrics(){return {...t}},destroy(){for(let r of e)r.disconnect();e.length=0;}}}function Ri(){let t=false,e=null,r=null,n=null,i=null;function o(f){let g=f,m=0;for(;g&&m<20;){let b=g.getAttribute?.("data-testid");if(b)return b;g=g.parentElement,m++;}return null}function a(f){let g=[],m=f;for(;m&&m!==document.body;){let b=1,C=m.previousElementSibling;for(;C;)C.tagName===m.tagName&&b++,C=C.previousElementSibling;let P=m.tagName.toLowerCase();g.unshift(b>1?`${P}[${b}]`:P),m=m.parentElement;}return "//"+g.join("/")}function s(f){let g=f.getBoundingClientRect(),m=typeof f.className=="string"?f.className:f.getAttribute("class")??"";return {tagName:f.tagName.toLowerCase(),id:f.id||void 0,className:m||void 0,textContent:f.textContent?.trim().slice(0,200)||void 0,xpath:a(f),rect:{x:Math.round(g.x),y:Math.round(g.y),width:Math.round(g.width),height:Math.round(g.height)},nearestTestid:o(f)||void 0,route:typeof window<"u"?window.location.pathname:void 0}}function u(){let f=document.createElement("div");return f.style.cssText=`
2339
81
  position: fixed;
2340
82
  pointer-events: none;
2341
83
  z-index: 2147483647;
2342
- border: 2px solid ${pe.accent};
2343
- background: ${pe.accentWash};
84
+ border: 2px solid ${de.accent};
85
+ background: ${de.accentWash};
2344
86
  border-radius: 4px;
2345
87
  transition: all 0.1s ease;
2346
88
  display: none;
2347
- `,document.body.appendChild(g),g}function h(){let g=document.createElement("div");return g.style.cssText=`
89
+ `,document.body.appendChild(f),f}function d(){let f=document.createElement("div");return f.style.cssText=`
2348
90
  position: fixed;
2349
91
  inset: 0;
2350
92
  z-index: 2147483647;
2351
93
  cursor: crosshair;
2352
94
  background: transparent;
2353
- `,document.body.appendChild(g),g}function f(g,v){let b=document.elementsFromPoint(g,v),E=null;for(let A of b)if(!(A===r||A===e)){if(A.id==="mushi-mushi-widget"||A.closest("#mushi-mushi-widget"))return null;E=A;break}let I=0;for(;E?.shadowRoot&&I<20;){let A=E.shadowRoot.elementFromPoint(g,v);if(!A||A===E)break;E=A,I++;}return E}function p(g){if(!e)return;let v=g.getBoundingClientRect();e.style.left=`${v.left}px`,e.style.top=`${v.top}px`,e.style.width=`${v.width}px`,e.style.height=`${v.height}px`,e.style.display="block";}function y(g){let v=f(g.clientX,g.clientY);if(!v){n=null,e&&(e.style.display="none");return}n=v,p(v);}function u(g){g.preventDefault(),g.stopPropagation();}function S(g){g.preventDefault(),g.stopPropagation();let v=f(g.clientX,g.clientY);v&&_(i(v));}function w(g){g.key==="Escape"&&_(null);}function k(){n?.isConnected&&p(n);}function _(g){M(),s?.(g),s=null;}function R(){return t&&M(),new Promise(g=>{s=g,t=true,e=l(),r=h(),r.addEventListener("mousemove",y),r.addEventListener("click",S),r.addEventListener("pointerdown",u),r.addEventListener("mousedown",u),r.addEventListener("mouseup",u),document.addEventListener("keydown",w,true),window.addEventListener("scroll",k,{capture:true,passive:true});})}function M(){t&&(t=false,n=null,document.removeEventListener("keydown",w,true),window.removeEventListener("scroll",k,{capture:true}),r&&(r.remove(),r=null),e&&(e.remove(),e=null));}return {activate:R,deactivate:M,isActive:()=>t}}var Qi=120;function is(){let t=[],e=()=>n("hashchange");n("initial");function r(a){t.push(a),t.length>Qi&&t.shift();}function n(a){typeof location>"u"||r({ts:Date.now(),kind:"route",payload:{source:a,route:Qt(`${location.pathname}${location.search}${location.hash}`),href:Qt(location.href)}});}function s(a){let i=a.target instanceof Element?a.target:null;if(!i)return;let l=i.closest('button,a,[role="button"],input,textarea,select,[data-mushi-track]')??i;r({ts:Date.now(),kind:"click",payload:{tag:l.tagName.toLowerCase(),id:l.id||void 0,text:Wu(l)}});}let o=Ae({onPush:()=>n("pushState"),onReplace:()=>n("replaceState"),onPop:()=>n("popstate")});return window.addEventListener("hashchange",e),document.addEventListener("click",s,true),{setScreen(a){r({ts:Date.now(),kind:"screen",payload:a});},getEntries(a={}){return [...t,...(a.consoleLogs??[]).map(l=>({ts:l.timestamp,kind:"log",payload:{level:l.level,message:l.message}})),...(a.networkLogs??[]).map(l=>({ts:l.timestamp,kind:"request",payload:{method:l.method,url:l.url,status:l.status,duration:l.duration,error:l.error}}))].sort((l,h)=>l.ts-h.ts).slice(-Qi)},clear(){t.length=0;},destroy(){o(),window.removeEventListener("hashchange",e),document.removeEventListener("click",s,true);}}}function Wu(t){let e=(t.textContent??"").replace(/\s+/g," ").trim();return e?e.slice(0,80):void 0}var zu=6e4,Ku=/^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i,Vu=/^[0-9a-f]{20,}$/i,Gu=/^\d+$/,Xu=/^[a-z0-9]{16,}$/i;function Zi(t){return t.length===0?t:Ku.test(t)||Vu.test(t)||Gu.test(t)||Xu.test(t)&&/\d/.test(t)?"[id]":t}function Yu(t,e,r){if(e.startsWith("#/")){let n=e.slice(1),s=n.indexOf("?"),o=s===-1?n:n.slice(0,s),a=r?.map(i=>i.startsWith("/#/")?i.slice(2):i);return "/#"+as(o,a)}return as(t,r)}function as(t,e){let r=t.length>1&&t.endsWith("/")?t.slice(0,-1):t;if(e?.length){let n=Ju(r,e);if(n)return n}return "/"+r.split("/").filter(n=>n.length>0).map(Zi).join("/")}function Ju(t,e){let r=t.split("/").filter(s=>s.length>0),n=[...e].sort((s,o)=>o.split("/").length-s.split("/").length);for(let s of n){let o=s.split("/").filter(i=>i.length>0);if(o.length!==r.length)continue;let a=true;for(let i=0;i<o.length;i++){let l=o[i],h=r[i];if(!(l.startsWith("[")&&l.endsWith("]"))&&!l.startsWith(":")&&l!==h){a=false;break}}if(a)return "/"+o.join("/")}return null}function Qu(){if(typeof document>"u")return [];let t=new Set,e=document.querySelectorAll("[data-testid]");for(let r of Array.from(e)){let n=r.getAttribute("data-testid");n&&n.length>0&&n.length<120&&t.add(n);}return Array.from(t).sort()}function Zu(){if(typeof window>"u")return [];try{let t=new Set,e=s=>{new URLSearchParams(s).forEach((o,a)=>t.add(a));};e(window.location.search);let r=window.location.hash,n=r.indexOf("?");return r.startsWith("#/")&&n!==-1&&e(r.slice(n+1)),Array.from(t).sort()}catch{return []}}function ed(){if(typeof document>"u")return null;let t=s=>(s??"").replace(/\s+/g," ").trim().slice(0,200),e=t(document.querySelector("h1")?.textContent);if(e)return e;let r=t(document.title);return r||t(document.querySelector("main")?.textContent)||null}async function td(t){if(!t||typeof crypto>"u"||!crypto.subtle)return null;try{let e=new TextEncoder().encode(t),r=await crypto.subtle.digest("SHA-256",e),n=new Uint8Array(r),s="";for(let o=0;o<n.length;o++)s+=n[o].toString(16).padStart(2,"0");return s}catch{return null}}function ls(t){let{config:e,getRecentNetworkPaths:r,getUserId:n,getSessionId:s,onEvent:o}=t,a=e.throttleMs??zu,i=e.captureDomSummary!==false,l=e.userIdSource??"auto",h=new Map,f=null,p=null;async function y(){if(typeof window>"u")return;let _=Yu(window.location.pathname,window.location.hash,e.routeTemplates),R=Date.now(),M=h.get(_)??0;if(R-M<a)return;h.set(_,R);let g=null;l==="auto"?g=n()??s():l==="session-only"&&(g=s());let v={route:_,page_title:typeof document<"u"&&(document.title||"").slice(0,300)||null,dom_summary:i?ed():null,testids:Qu(),network_paths:r().slice(-50),query_param_keys:Zu(),user_id_hash:await td(g),observed_at:new Date().toISOString()};o(v);}function u(){p||(p=setTimeout(()=>{p=null,y();},100));}function S(){if(typeof window>"u")return;let _=window.location.hash.startsWith("#/")?window.location.hash:"",R=window.location.pathname+window.location.search+_;R!==f&&(f=R,u());}if(typeof window>"u")return {destroy:()=>{},flushNow:()=>{}};let w=()=>S(),k=Ae({onPush:w,onReplace:w,onPop:w});return window.addEventListener("hashchange",w),u(),{destroy(){k(),window.removeEventListener("hashchange",w),p&&(clearTimeout(p),p=null),h.clear();},flushNow(){h.clear(),y();}}}var rd=3e4,us=400,nd=4,sd=2;function ea(t,e,r){let n=l=>l.timestamp,s=l=>l.type===sd,o=l=>l.type===nd,a=Date.now()-e,i=0;for(let l=0;l<t.length;l++){let h=n(t[l]);if(typeof h=="number"&&h>=a)break;s(t[l])&&(i=o(t[l-1])?l-1:l);}if(t.length-i>r){for(let l=i+1;l<t.length;l++)if(s(t[l])&&t.length-l<=r){i=o(t[l-1])?l-1:l;break}}i>0&&t.splice(0,i);}function ta(t){let e=[],r=false,n=o=>{if(!r)return;let a=o.target instanceof Element?o.target:null,i=a?.tagName?.toLowerCase()??"unknown",l=a?.closest("[data-testid]")?.getAttribute("data-testid")??void 0;e.push({type:"lite_click",timestamp:Date.now(),data:{tag:i,testId:l}}),e.length>us&&e.shift();},s=()=>{r=false,document.removeEventListener("click",n,true);};return {start(){r||(r=true,document.addEventListener("click",n,true));},stop:s,flush(){let o=Date.now()-t;return e.filter(a=>a.timestamp>=o)},destroy(){s(),e.length=0;}}}var od=['input[type="password"]',"[data-mushi-redact]"],Be=null,ra=false;function cs(t){if(!t||typeof t!="object")return null;let e=t;return typeof e.record=="function"?e:e.default&&typeof e.default.record=="function"?e.default:null}async function id(t){if(Be)return Be;if(typeof t=="function")try{if(Be=cs(await t()),Be)return Be}catch{}if(Be=cs(globalThis.rrweb),Be)return Be;try{return Be=cs(await import('rrweb')),Be}catch{return null}}async function na(t){let e=t.maxDurationMs??rd;if(t.mode==="lite")return ta(e);let r=await id(t.loadRrweb);if(!r?.record)return ra||(ra=true,kt({scope:"mushi"}).warn("capture.replay is 'rrweb' but rrweb could not be loaded, so replay is recording clicks only. Install rrweb and pass capture: { rrweb: () => import('rrweb') }.")),ta(e);let n=r.record,s=[],o=null,a=false,i=[...new Set([...od,...t.redactSelectors??[]])],l=()=>{o?.(),o=null,a=false;};return {start(){a||(a=true,o=n({emit(h){s.push(h),ea(s,e,us);},maskAllInputs:true,maskTextSelector:"*",blockSelector:i.join(","),checkoutEveryNms:e,sampling:{mousemove:false,mouseInteraction:true,scroll:150,media:800}})??null);},stop:l,flush(){return ea(s,e,us),[...s]},destroy(){l(),s.length=0;}}}function sa(t,e){return new Promise((r,n)=>{let s=new Image;s.onload=()=>{let o=document.createElement("div");o.style.position="relative",o.style.display="inline-block",o.style.maxWidth="100%";let a=document.createElement("canvas"),i=document.createElement("canvas"),l=Math.min(1,720/s.width),h=Math.round(s.width*l),f=Math.round(s.height*l);for(let v of [a,i])v.width=h,v.height=f,v.style.width="100%",v.style.height="auto",v.style.display="block";i.style.position="absolute",i.style.left="0",i.style.top="0",i.style.cursor="crosshair";let p=a.getContext("2d"),y=i.getContext("2d");if(!p||!y){n(new Error("Canvas not supported"));return}p.drawImage(s,0,0,h,f),o.appendChild(a),o.appendChild(i),e.appendChild(o);let u="highlight",S=false,w=null,k=[],_=v=>{let b=i.getBoundingClientRect(),E="touches"in v?v.touches[0]??v.changedTouches[0]:null,I=E?E.clientX:v.clientX,A=E?E.clientY:v.clientY;return {x:(I-b.left)/b.width*h,y:(A-b.top)/b.height*f}},R=()=>{y.clearRect(0,0,h,f);for(let v of k)if(v.tool==="highlight"&&v.points.length>=2){let[b,E]=v.points;y.fillStyle="rgba(255, 230, 0, 0.35)",y.fillRect(Math.min(b.x,E.x),Math.min(b.y,E.y),Math.abs(E.x-b.x),Math.abs(E.y-b.y));}else if(v.tool==="arrow"&&v.points.length>=2){let[b,E]=v.points;y.strokeStyle="#ef4444",y.lineWidth=3,y.beginPath(),y.moveTo(b.x,b.y),y.lineTo(E.x,E.y),y.stroke();}},M=v=>{S=true,w=_(v);},g=v=>{if(!S||!w)return;S=false;let b=_(v);if(u==="blur"){let E=Math.min(w.x,b.x),I=Math.min(w.y,b.y),A=Math.abs(b.x-w.x),T=Math.abs(b.y-w.y);A>=1&&T>=1&&(p.filter="blur(8px)",p.drawImage(a,E,I,A,T,E,I,A,T),p.filter="none");}else k.push({tool:u,points:[w,b]});w=null,R();};i.addEventListener("mousedown",M),i.addEventListener("mouseup",g),i.addEventListener("touchstart",M,{passive:true}),i.addEventListener("touchend",g),r({canvas:a,setTool(v){u=v;},getDataUrl(){let v=document.createElement("canvas");v.width=h,v.height=f;let b=v.getContext("2d");return b?(b.drawImage(a,0,0),b.drawImage(i,0,0),v.toDataURL("image/jpeg",.85)):t},destroy(){i.removeEventListener("mousedown",M),i.removeEventListener("mouseup",g),i.removeEventListener("touchstart",M),i.removeEventListener("touchend",g),o.remove();}});},s.onerror=()=>n(new Error("Failed to load screenshot")),s.src=t;})}function oa(){try{let t=globalThis;return t.Sentry?t.Sentry:void 0}catch{return}}function ad(){try{return globalThis.__SENTRY_REPLAY__}catch{return}}function ld(){try{let t=globalThis,e=t.__SENTRY__,r=t.Sentry;return e?.version==="9"||r&&typeof r.lastEventId=="function"?e?.version==="9"?"v9":"v8":e?.version==="8"?"v8":r&&typeof r.getCurrentHub=="function"?"v7":"unknown"}catch{return "unknown"}}function ds(t,e={}){let r=Math.max(0,e.breadcrumbsLimit??30),n={},s=oa();if(!s)return n;n.sdk=ld();try{let i=s;if(typeof i.lastEventId=="function")n.eventId=i.lastEventId()??void 0;else {let h=s.getCurrentHub?.()?.getScope?.();n.eventId=h?.getLastEventId?.()??void 0;}}catch{}let o;try{let i=s;typeof i.getCurrentScope=="function"?o=i.getCurrentScope():o=s.getCurrentHub?.()?.getScope?.();}catch{}if(o){try{let i=o.getUser?.();i&&(n.user={id:typeof i.id=="string"?i.id:void 0,email:typeof i.email=="string"?i.email:void 0,username:typeof i.username=="string"?i.username:void 0,ip_address:typeof i.ip_address=="string"?i.ip_address:void 0});}catch{}try{let i=o.getTags?.();if(i&&typeof i=="object"){let l={};for(let[h,f]of Object.entries(i))(typeof f=="string"||typeof f=="number"||typeof f=="boolean")&&(l[h]=f);Object.keys(l).length>0&&(n.tags=l);}}catch{}try{n.transactionName=o.getTransactionName?.()??o.getTransaction?.()?.name??void 0;}catch{}try{n.sessionId=o.getSession?.()?.sid??void 0;}catch{}try{let i=o.getBreadcrumbs?.()??o._breadcrumbs??[];if(Array.isArray(i)&&i.length>0){let l=i.slice(-r);n.breadcrumbs=l.map(h=>{let f=h;return {timestamp:typeof f.timestamp=="number"?f.timestamp<1e12?Math.round(f.timestamp*1e3):f.timestamp:void 0,category:typeof f.category=="string"?f.category:void 0,level:typeof f.level=="string"?f.level:void 0,message:typeof f.message=="string"?f.message:void 0,type:typeof f.type=="string"?f.type:void 0,data:f.data&&typeof f.data=="object"?f.data:void 0}});}}catch{}}try{let i=s,l;if(typeof i.getActiveSpan=="function"?l=i.getActiveSpan():o?.getSpan&&(l=o.getSpan()),l){let h=l.spanContext?.();n.traceId=h?.traceId??l.traceId??void 0,n.spanId=h?.spanId??l.spanId??void 0;}}catch{}let a;try{let i=s;typeof i.getClient=="function"?a=i.getClient():a=s.getCurrentHub?.()?.getClient?.();}catch{}if(a){try{let i=a.getOptions?.();i?.release&&(n.release=i.release),i?.environment&&(n.environment=i.environment);}catch{}try{let i=a.getDsn?.();if(i?.host&&i?.projectId&&n.eventId){let l=i.host.replace(/^o\d+\./,"");n.issueUrl=`https://${l}/issues/?query=${encodeURIComponent(n.eventId)}`;}}catch{}}try{let l=s.getReplay?.()??ad();n.replayId=l?.getReplayId?.()??void 0;}catch{}return n}function ps(t,e={}){let r=oa();if(r){try{let n=r;typeof n.setTag=="function"&&(n.setTag("mushi.report_id",t),e.reportUrl&&n.setTag("mushi.report_url",e.reportUrl)),typeof n.setContext=="function"&&n.setContext("mushi_report",{id:t,...e.reportUrl?{url:e.reportUrl}:{},captured_at:new Date().toISOString()}),typeof n.addBreadcrumb=="function"&&n.addBreadcrumb({category:"mushi",type:"info",level:"info",message:`Mushi report submitted (${t})`,data:{report_id:t,...e.reportUrl?{url:e.reportUrl}:{}}});}catch{}try{let s=r.getCurrentHub?.()?.getScope?.();s&&(s.setTag?.("mushi.report_id",t),e.reportUrl&&s.setTag?.("mushi.report_url",e.reportUrl),s.setContext?.("mushi_report",{id:t,...e.reportUrl?{url:e.reportUrl}:{}}));}catch{}}}var cd=["/login","/logout","/signup","/sso/*","/auth/*"];function aa(t,e={}){let r=[];if(e.rageClick!==false){let w=function(k){let _=Date.now();if(k.target===S){if(u.push(_),u=u.filter(R=>_-R<500),u.length>=3){let R=k.target;t.onTrigger("rage_click",{element:R.tagName,id:R.id,text:R.textContent?.slice(0,50)}),u=[];}}else S=k.target,u=[_];};let u=[],S=null;document.addEventListener("click",w,true),r.push(()=>document.removeEventListener("click",w,true));}if(e.longTask!==false&&typeof PerformanceObserver<"u")try{let u=new PerformanceObserver(S=>{for(let w of S.getEntries())w.duration>5e3&&t.onTrigger("long_task",{duration:Math.round(w.duration),startTime:Math.round(w.startTime)});});u.observe({entryTypes:["longtask"]}),r.push(()=>u.disconnect());}catch{}let n=ud(e.apiCascade);if(n.enabled){let u=[],S=globalThis.fetch;globalThis.fetch=async function(...w){let[k,_]=w,R=Kr(k),M=!!Vr(k,_)||ir(R,{apiEndpoint:e.apiEndpoint,ignoreUrls:n.ignoreUrls});try{let g=await S.apply(this,w);return !M&&!g.ok&&g.status>=400&&ia(u,t),g}catch(g){throw M||ia(u,t),g}},r.push(()=>{globalThis.fetch=S;});}if((e.pageDwell===true||typeof e.pageDwell=="object"&&e.pageDwell!==null)&&typeof window<"u"){let R=function(E){return w.some(I=>I.endsWith("/*")?E.startsWith(I.slice(0,-2)):E===I||E.startsWith(I+"/"))},M=function(){let E=window.location?.pathname??"";R(E)||t.onTrigger("page_dwell",{thresholdMs:S,path:E});},g=function(){k&&clearTimeout(k);let E=window.location?.pathname??"";R(E)||(k=setTimeout(M,S));},v=function(){let E=window.location?.pathname??"";E!==_&&(_=E,g());};let u=typeof e.pageDwell=="object"?e.pageDwell??{}:{},S=u.thresholdMs||300*1e3,w=u.excludeRoutes!==void 0?u.excludeRoutes:cd,k=null,_=window.location?.pathname??"";g();let b=Ae({onPush:v,onReplace:v,onPop:v});r.push(()=>{k&&clearTimeout(k),b();});}if((e.firstSession===true||typeof e.firstSession=="object"&&e.firstSession!==null)&&typeof window<"u"){let u=typeof e.firstSession=="object"?e.firstSession??{}:{},S=u.delayMs??45*1e3,w=u.storageKey??(e.projectId?`mushi:${e.projectId}:firstSessionShown`:"mushi:firstSessionShown"),k=false;try{k=window.localStorage?.getItem(w)==="1";}catch{}if(!k){let _=setTimeout(()=>{try{window.localStorage?.setItem(w,"1");}catch{}t.onTrigger("first_session",{delayMs:S});},S);r.push(()=>clearTimeout(_));}}if(e.errorBoundary){let u=function(w){Jt({message:w.message,filename:w.filename,ignoreErrors:e.ignoreErrors,denyUrls:e.denyUrls,allowUrls:e.allowUrls})||t.onTrigger("error_boundary",{message:w.message,filename:w.filename,lineno:w.lineno,colno:w.colno});},S=function(w){let k=w.reason instanceof Error?w.reason.message:String(w.reason);Jt({message:k,ignoreErrors:e.ignoreErrors,denyUrls:e.denyUrls,allowUrls:e.allowUrls})||t.onTrigger("error_boundary",{message:k,type:"unhandled_rejection"});};window.addEventListener("error",u),window.addEventListener("unhandledrejection",S),r.push(()=>{window.removeEventListener("error",u),window.removeEventListener("unhandledrejection",S);});}return {destroy(){r.forEach(u=>u());}}}function ud(t){return t===false?{enabled:false,ignoreUrls:[]}:t&&typeof t=="object"?{enabled:t.enabled!==false,ignoreUrls:t.ignoreUrls??[]}:{enabled:true,ignoreUrls:[]}}function ia(t,e){let r=Date.now();t.push(r);let n=t.filter(s=>r-s<1e4);n.length>=3&&(e.onTrigger("api_cascade",{failureCount:n.length,windowMs:1e4}),t.length=0);}var la="mushi:lastDismiss",Gr="mushi:consecDismiss",hs="mushi:lastShown";function Xr(t){try{return localStorage.getItem(t)}catch{return null}}function Yr(t,e){try{localStorage.setItem(t,e);}catch{}}function ca(t={}){let e=t.maxProactivePerSession??2,r=t.dismissCooldownHours??24,n=t.suppressAfterDismissals??3,s=(t.reshowCooldownMinutes??30)*60*1e3,o=0,a=new Set;function i(p){let y=Date.now();if(parseInt(Xr(Gr)??"0",10)>=n)return false;let S=Xr(la);if(S&&y-parseInt(S,10)<r*60*60*1e3)return false;if(s>0&&o===0){let w=Xr(hs);if(w&&y-parseInt(w,10)<s)return false}return o>=e||a.has(p)?false:(a.add(p),o++,Yr(hs,String(y)),true)}function l(){Yr(la,String(Date.now()));let p=parseInt(Xr(Gr)??"0",10);Yr(Gr,String(p+1));}function h(){Yr(Gr,"0");}function f(){o=0,a.clear();try{localStorage.removeItem(hs);}catch{}}return {shouldShow:i,recordDismissal:l,recordSubmission:h,reset:f}}function ua(t,e){if(t.appVersion)return t.appVersion;let r=t.integrations?.vercel?.analyticsId;return r||e?.buildId}var Ne=null,Jr=class{constructor(){}static init(e){if(Ne)return kt({scope:"mushi",level:"warn",format:"pretty"}).warn("Already initialized \u2014 call destroy() first to reinitialize"),Ne;if(typeof document>"u"||typeof window>"u")return pa();let r={...Sn(),...e};if(!r.projectId||!r.apiKey){let n=bo();throw new Error(n.message??"[mushi] projectId and apiKey are required \u2014 set NEXT_PUBLIC_MUSHI_* / VITE_MUSHI_* / MUSHI_* or pass them explicitly")}return r.enabled===false?pa():(Ne=dd(r),Ne)}static getInstance(){return Ne}static destroy(){Ne?.destroy(),Ne=null;}static diagnose(){return Ne?.diagnose()??ms()}};function dd(t){vo(t);let e=yo(t),r=e.projectId,n=()=>le(r),s=e,o=t.debug??false?kt({scope:"mushi",level:"debug",format:"pretty"}):En,a=null,i=null,l=go({projectId:e.projectId,apiKey:e.apiKey,...e.apiEndpoint?{apiEndpoint:e.apiEndpoint}:{},...typeof e.timeout=="number"?{timeout:e.timeout}:{},...typeof e.maxRetries=="number"?{maxRetries:e.maxRetries}:{},...e.circuitBreaker?{circuitBreaker:e.circuitBreaker}:{},...e.tunnel?{tunnel:e.tunnel}:{},getUserToken:()=>a,sdkPackage:Ve,sdkVersion:he}),h=null;if(e.trackSessions!==false){Ho({client:l,sdkVersion:he,reporterToken:le(e.projectId)??null,projectId:e.projectId,analytics:e.analytics});try{h=Ae({onPush:()=>In(),onPop:()=>In()});}catch{}}let f=wo(e.preFilter),p=Ro(e.offline),y=Vo({maxBurst:10,refillRate:1,refillIntervalMs:5e3}),u=Ln();qo({client:l,projectId:e.projectId,sdkVersion:he,config:e.analytics,scrub:c=>u.scrub(c),getSessionId:gt});function S(c){return c.map(d=>{let C={...d};if(typeof d.message=="string"&&(C.message=u.scrub(d.message)),d.data&&typeof d.data=="object"){let D={};for(let[O,K]of Object.entries(d.data))D[O]=typeof K=="string"?u.scrub(K):K;C.data=D;}return C})}function w(c){return c&&c.map(d=>({...d,message:u.scrub(d.message),...d.stack?{stack:u.scrub(d.stack)}:{}}))}function k(c){if(!c)return;let d={};for(let[C,D]of Object.entries(c))d[C]=typeof D=="string"?u.scrub(D):D;return d}let _=null,R=null,M=null,g=null,v=null,b=null,E=is(),I=null,A=0,T,j=`mushi:tester-jwt:${e.projectId}`;function X(){try{return typeof localStorage<"u"?localStorage.getItem(j):null}catch{return null}}function ee(){try{typeof localStorage<"u"&&localStorage.removeItem(j);}catch{}}async function ge(c){let d=await l.getTesterStatus(c);if(!d.ok||!d.data){ee();return}let C=d.data;if(!C.is_tester||!C.tester_id){ee();return}T.setTesterSession(c,{id:C.tester_id,public_handle:C.public_handle??null,display_name:C.display_name??null});let D=await l.getMyReputation(c);if(D.ok&&D.data){let O=D.data;O.reputation&&T.setTesterReputation(O.reputation);}}function te(){if(s.capture?.console!==false?_??=es():(_?.destroy(),_=null),s.capture?.network!==false){let N={apiEndpoint:fs(s),ignoreUrls:s.capture?.ignoreUrls,tracePropagation:s.capture?.tracePropagation,sessionId:gt()};R?R.updateOptions(N):R=Zn(N);}else R?.destroy(),R=null;if(s.capture?.performance!==false?M??=ss():(M?.destroy(),M=null),s.capture?.screenshot!=="off"){let N={privacy:s.privacy,onFailed:()=>T.setScreenshotError(true)};s.capture?.screenshotProvider?g=null:g?g.updateOptions(N):g=ns(N);}else g=null;!g&&!s.capture?.screenshotProvider&&(L=null),T.setAllowScreenshotRemove(s.privacy?.allowUserRemoveScreenshot!==false),s.capture?.elementSelector!==false?v??=os():(v?.deactivate(),v=null,se=null),T.setCaptureAvailability({screenshot:(!!g||!!s.capture?.screenshotProvider)&&s.capture?.screenshot!=="off",element:!!v});let c=s.capture?.discoverInventory,d=c===true?{}:c&&typeof c=="object"?c:null;d!=null&&d.enabled!==false?(b?.destroy(),b=ls({config:d,getRecentNetworkPaths:()=>R?R.getEntries().map(N=>{try{let re=new URL(N.url,typeof window<"u"?window.location.href:"http://localhost");return re.host&&typeof window<"u"&&re.host!==window.location.host?null:re.pathname}catch{return null}}).filter(N=>N!=null&&N.length>0&&N.length<200):[],getUserId:()=>x?.id??null,getSessionId:gt,onEvent:N=>{l.postDiscoveryEvent({...N,sdk_version:he}).catch(re=>{o.debug("discovery emit failed",{err:String(re)});});}})):(b?.destroy(),b=null);let D=s.capture?.replay??"off",O=s.replaySampleRate??1,K=O>=1||Math.random()<O,ne=s.replaysOnErrorSampleRate??0,ce=!K&&ne>0&&Math.random()<ne;if((D==="rrweb"||D==="lite")&&(K||ce)){let N=++A;na({mode:D,loadRrweb:e.capture?.rrweb,redactSelectors:s.privacy?.redactSelectors}).then(re=>{if(N!==A){re.destroy();return}I?.destroy(),I=re,I.start();});}else A++,I?.destroy(),I=null;}let Y=new Map;function H(c,d){Y.get(c)?.forEach(C=>C({type:c,data:d}));}let L=null,se=null,G=null,Re=false,He=true,we=null,$=null,x=null,P=null,B={},U={},W=Xo({max:50});W.add({category:"lifecycle",level:"info",message:"Mushi SDK init",data:{projectId:e.projectId,sdkVersion:he}});let Pe=null;Pe=xd(W);let xe=false;function J(){T.refreshReporterInboxQuiet();}function oe(){we&&clearInterval(we),we=null,$&&typeof document<"u"&&document.removeEventListener("visibilitychange",$),$=null;}function Se(){if(oe(),!He)return;we=setInterval(()=>{typeof document<"u"&&document.visibilityState==="hidden"||J();},6e4),typeof document<"u"&&($=()=>{document.visibilityState==="visible"&&J();},document.addEventListener("visibilitychange",$)),J();}function fe(c,d){if(!s.rewards?.enabled)return;let C={client:l,config:s.rewards,projectId:r,userId:c,traits:d,reporterToken:n()};Ui(C),s.rewards.showInWidget!==false&&l.getMyPoints(c).then(D=>{if(!D.ok)return;let O=D.data;T.setRewardsState({tier:O.tier?{slug:O.tier.slug??"free",displayName:O.tier.display_name??"Free",pointsThreshold:O.tier.points_threshold??0}:null,nextTier:O.next_tier?{displayName:O.next_tier.display_name??"",pointsThreshold:O.next_tier.points_threshold??0}:null,totalPoints:O.total_points??0,pointsForReport:O.report_submit_pts??50});}).catch(()=>{});}async function ot(){if(xe)return null;let c=s.capture?.screenshotProvider;if(c){xe=true;try{let O=await c();if(O)return O}catch(O){o.warn("screenshotProvider threw, falling back to built-in capturer",{error:O instanceof Error?O.message:String(O)});}finally{xe=false;}}if(!g)return null;xe=true;let d=T.getIsOpen();d&&T.hidePanel();let C=document.getElementById("mushi-mushi-widget"),D=C?.style.visibility??"";C&&(C.style.visibility="hidden"),await new Promise(O=>{requestAnimationFrame(()=>requestAnimationFrame(()=>O()));});try{return await g.take()}finally{xe=false,C&&(C.style.visibility=D),d&&T.showPanel();}}async function q(c){let d=s.capture?.screenshot;!(g||s.capture?.screenshotProvider)||d==="off"||L||c==="open"&&d!=="auto"||c==="submit"&&d!=="on-report"&&d!=="auto"||(o.debug("Auto-capturing screenshot",{when:c,mode:d}),L=await ot(),T.setScreenshotAttached(L!==null),T.setScreenshotPreview(L));}let Ye=Xt(r).then(c=>c.slice(0,12)).catch(()=>null);T=new Ur(e.widget,{onSubmit:async({category:c,userCategory:d,description:C,intent:D})=>(o.info("Report submitted",{category:c,userCategory:d,intent:D}),Je?.recordSubmission(),await q("submit"),await Qr(c,C,D,d)??{reportId:null,queuedOffline:true}),onOpen:()=>{o.debug("Widget opened"),q("open"),I?.start(),H("widget:opened");},onBrandFooterImpression:()=>{Ye.then(c=>{Et("loop_impression",{placement:"widget"},c?{reserved:{$ref:c}}:void 0);});},onBrandFooterClick:()=>{Ye.then(c=>(Et("loop_click",{placement:"widget"},c?{reserved:{$ref:c}}:void 0),zo()));},onClose:()=>{o.debug("Widget closed"),G&&(Je?.recordDismissal(),H("proactive:dismissed",{type:G})),L=null,se=null,G=null,H("widget:closed");},onScreenshotRequest:async()=>{if(!(!!g||!!s.capture?.screenshotProvider)||s.capture?.screenshot==="off"){o.warn("Screenshot requested but capture is disabled"),T.setScreenshotError(true);return}o.debug("Taking screenshot"),T.setScreenshotCapturing(true);try{L=await ot();}catch(d){o.warn("Screenshot capture threw",{error:d instanceof Error?d.message:String(d)}),L=null;}T.setScreenshotAttached(L!==null),T.setScreenshotPreview(L),L===null&&T.setScreenshotError(true);},onScreenshotRemove:()=>{o.debug("Screenshot attachment removed"),L=null,T.setScreenshotAttached(false);},onScreenshotAnnotateRequest:async c=>{if(!L||c.childElementCount>0)return;let d;try{d=await sa(L,c);}catch(ne){o.warn("Screenshot annotation failed",{error:ne instanceof Error?ne.message:String(ne)});return}let C=document.createElement("div");C.className="mushi-annotate-toolbar";let D=ne=>{(L=d.getDataUrl(),T.setScreenshotAttached(true),T.setScreenshotPreview(L)),d.destroy(),C.remove();},O=[{id:"highlight",label:"\u270F\uFE0F Highlight"},{id:"blur",label:"\u{1F512} Blur"},{id:"arrow",label:"\u2197\uFE0F Arrow"}];for(let ne of O){let ce=document.createElement("button");ce.type="button",ce.className="mushi-attach-btn",ce.dataset.tool=ne.id,ce.textContent=ne.label,ce.addEventListener("click",()=>{d.setTool(ne.id),C.querySelectorAll("button[data-tool]").forEach(N=>N.classList.remove("active")),ce.classList.add("active");}),C.appendChild(ce);}C.querySelector('button[data-tool="highlight"]')?.classList.add("active");let K=document.createElement("button");K.type="button",K.className="mushi-attach-btn",K.textContent="\u2713 Done",K.addEventListener("click",()=>D()),C.appendChild(K),c.insertBefore(C,c.firstChild);},onElementSelectorRequest:async()=>{if(!v||s.capture?.elementSelector===false){o.warn("Element selector requested but it is disabled/unavailable"),T.setElementError(true);return}o.debug("Element selector activated"),T.setElementCapturing(true),T.hidePanel();try{let c=await v.activate();c?(se=c,T.setElementSelected(!0),o.debug("Element selected",{tagName:c.tagName,xpath:c.xpath})):T.setElementCapturing(!1);}catch(c){o.warn("Element selector threw",{error:c instanceof Error?c.message:String(c)}),T.setElementError(true);}finally{T.showPanel();}},async onReporterReportsRequest(){let c=await l.listReporterReports(le(r));if(!c.ok)throw new Error(c.error?.message??"Could not load reports");return c.data?.reports??[]},async onReporterCommentsRequest(c){let d=await l.listReporterComments(c,le(r));if(!d.ok)throw new Error(d.error?.message??"Could not load thread");return d.data?.comments??[]},async onReporterReply(c,d){let C=await l.replyToReporterReport(c,le(r),d);if(!C.ok)throw new Error(C.error?.message??"Could not send reply")},async onReporterFeedback(c,d,C){let D=await l.replyToReporterReport(c,le(r),C??"",d);if(!D.ok)throw new Error(D.error?.message??"Could not send feedback");return D.data?.feedback??null},async onReporterReopen(c,d){let C=await l.reopenReporterReport(c,le(r),d);if(!C.ok)throw new Error(C.error?.message??"Could not reopen report");return C.data?.outcome??null},async onFeatureBoardRequest(){let c=await l.listReporterFeatureBoard(le(r));if(!c.ok)throw new Error(c.error?.message??"Could not load community ideas");return c.data?.tickets??[]},async onFeatureBoardVote(c){let d=await l.voteReporterFeatureBoard(c,le(r));if(!d.ok)throw new Error(d.error?.message??"Could not vote");return d.data??{voted:true,action:"added"}},onLeaderboardOpen(){T.setLeaderboard(null,true),qi(10).then(c=>{T.setLeaderboard(c,false);});},async onMushiSignIn(c){let d=await l.sendMagicLink(c);if(!d.ok)throw new Error(d.error?.message??"Could not send sign-in link");return {ok:true}},async onGlobalLeaderboardOpen(){T.setGlobalLeaderboard(null,true);try{let c=X(),d=await l.getPublicLeaderboard(50),D=(d.ok?d.data?.leaderboard??[]:[]).map(O=>({tester_id:O.tester_id,rank:O.rank,public_handle:O.public_handle,display_name:O.display_name,points_30d:O.points_30d,total_points:O.total_points??0,badge:O.badge_slug}));if(T.setGlobalLeaderboard(D,!1),c){let O=await l.getMyReputation(c);if(O.ok&&O.data){let K=O.data;K.reputation&&T.setTesterReputation(K.reputation);}}}catch{T.setGlobalLeaderboard([],false);}},async onCrossAppReportsOpen(){let c=X();if(!c){T.setCrossAppReports([],false);return}try{let d=await l.getCrossAppReports(c),C=d.ok?d.data?.reports??[]:[];T.setCrossAppReports(C,!1);}catch{T.setCrossAppReports([],false);}},onTesterSignOut(){ee();},assistantEnabled:e.assistant?.enabled===true,...e.assistant?.label?{assistantLabel:e.assistant.label}:{},...e.assistant?.greeting?{assistantGreeting:e.assistant.greeting}:{},...e.assistant?.suggestions?{assistantSuggestions:e.assistant.suggestions}:{},async onAssistantAsk(c,d){let C=await l.askAssistant({message:c,threadId:d,context:i});return C.ok?C.data??null:null}},he),Ye.then(c=>T.setBrandRef(c)),te(),typeof document<"u"&&(document.readyState==="loading"?document.addEventListener("DOMContentLoaded",()=>T.mount()):T.mount());let Ce=X();Ce&&ge(Ce).catch(()=>ee());let Ue=null,Je=null,Z=s.proactive;Z&&(Z.rageClick!==false||Z.longTask!==false||Z.apiCascade!==false||Z.errorBoundary===true||Z.pageDwell||Z.firstSession)&&typeof document<"u"&&(Je=ca(Z?.cooldown),Ue=aa({onTrigger:(c,d)=>{if(typeof navigator<"u"&&!navigator.onLine){o.debug("Proactive trigger suppressed: offline",{type:c});return}if(!Je.shouldShow(c)){o.debug("Proactive trigger suppressed by fatigue prevention",{type:c});return}o.info("Proactive trigger fired",{type:c,context:d}),G=c,H("proactive:triggered",{type:c,context:d}),c==="first_session"?T.pulseTrigger?.():T.open();}},{rageClick:Z?.rageClick,longTask:Z?.longTask,apiCascade:Z?.apiCascade,apiEndpoint:fs(s),errorBoundary:Z?.errorBoundary,ignoreErrors:s.ignoreErrors,denyUrls:s.denyUrls,allowUrls:s.allowUrls,pageDwell:Z?.pageDwell,firstSession:Z?.firstSession,projectId:e.projectId}),o.debug("Proactive triggers enabled",{rageClick:Z?.rageClick!==false,longTask:Z?.longTask!==false,apiCascade:Z?.apiCascade!==false,errorBoundary:Z?.errorBoundary===true,pageDwell:!!Z?.pageDwell,firstSession:!!Z?.firstSession})),p.startAutoSync(l),p.flush(l).then(c=>{c.sent>0&&o.info("Synced offline reports",{sent:c.sent});});function Ht(c){if(Re=true,He=c.reporterNotificationsEnabled!==false,c.enabled===false){s=e,bd(t.projectId),te(),T.updateConfig(s.widget),oe(),o.debug("Runtime SDK config disabled; using bootstrap config",{version:c.version});return}s=$i(s,c,e),te(),c.widget&&T.updateConfig(s.widget),He?Se():oe(),o.debug("Applied runtime SDK config",{version:c.version});}if(pd(t)){let c=md(t.projectId);c&&Ht(c),l.getSdkConfig().then(d=>{d.ok&&d.data?(gd(t.projectId,d.data),Ht(d.data)):d.error&&o.debug("Runtime SDK config unavailable",d.error);}).catch(d=>{o.debug("Runtime SDK config fetch failed",{error:d instanceof Error?d.message:String(d)});});}else o.debug("Runtime SDK config disabled via runtimeConfig:false; using static bootstrap config");ar(),Se(),o.info("Initialized",{projectId:t.projectId});async function ar(){if(s.widget?.outdatedBanner==="off")return;let c=yd(Ve);c&&lr(c);let d=await l.getLatestSdkVersion(Ve);!d.ok||!d.data||(vd(Ve,d.data),lr(d.data));}function lr(c){let d=c.latest,C=!!(d&&wd(he,d));if(!C&&!c.deprecated)return;let D=c.deprecationMessage??(C?`Update ${Ve} to ${d}.`:null);o.warn("Mushi SDK is outdated",{package:Ve,current:he,latest:d,deprecated:c.deprecated,message:D}),s.widget?.outdatedBanner!=="console-only"&&T.setSdkFreshness({latest:d,current:he,deprecated:c.deprecated,message:D});}async function Qr(c,d,C,D){let O=f.check(d);if(!O.passed){o.info("Report blocked by pre-filter",{reason:O.reason});return}let K=t.preFilter?.wasmClassifier;if(K)try{let F=await K.classify({description:d,category:c,url:typeof location<"u"?location.href:void 0,hasScreenshot:L!==null,hasSelectedElement:se!==null,hasNetworkErrors:R?.getEntries()?.some(be=>be.status>=400||!!be.error)??!1,hasConsoleErrors:_?.getEntries()?.some(be=>be.level==="error")??!1,proactiveTrigger:G??void 0});if(F.verdict==="block"){o.info("Report blocked by on-device classifier",{modelId:F.modelId,confidence:F.confidence,reason:F.reason});return}o.debug("On-device classifier verdict",{...F});}catch(F){o.warn("On-device classifier threw \u2014 falling through to server",{error:F instanceof Error?F.message:String(F)});}if(G!==null&&t.sampleRate!==void 0&&t.sampleRate<1&&(t.sampleRate<=0||Math.random()>t.sampleRate)){o.debug("Report dropped by sampleRate",{sampleRate:t.sampleRate,trigger:G});return}if(!y.tryConsume()){o.warn("Report throttled \u2014 rate limit exceeded");return}let ce=u.scrub(f.truncate(d)),N=t.sentry?ds(t.sentry):void 0,re=await Co().catch(()=>null),Fe=s.capture?.console===false?void 0:w(_?.getEntries()),qe=s.capture?.network===false?void 0:R?.getEntries(),cr=S(W.getAll()),vs=k(Object.keys(U).length>0?{...U}:void 0),ws=N?{...N,...N.breadcrumbs?{breadcrumbs:S(N.breadcrumbs)}:{},...N.tags?{tags:k(N.tags)}:{}}:void 0,xs=L?await di(L).catch(()=>null):null,ur=false;L&&!xs&&(ur=true,o.warn("Screenshot dropped \u2014 could not compress under wire budget"));let Ss=kn(),Me={id:Rn(),projectId:t.projectId,category:c,...D?{userCategory:D}:{},description:ce,userIntent:C,environment:Ss,consoleLogs:Fe,networkLogs:qe,performanceMetrics:s.capture?.performance===false?void 0:M?.getMetrics(),timeline:E.getEntries({consoleLogs:Fe,networkLogs:qe}),screenshotDataUrl:xs??void 0,selectedElement:se??void 0,...I?{replayEvents:I.flush()}:{},metadata:{...B,...x?{user:x}:{},...N?.release?{sentryRelease:N.release}:{}},sessionId:gt(),reporterToken:le(r),...re?{fingerprintHash:re}:{},appVersion:ua(s,Ss),sdkPackage:Ve,sdkVersion:he,proactiveTrigger:G??void 0,...cr.length>0?{breadcrumbs:cr}:{},...vs?{tags:vs}:{},...ws?{sentryContext:ws}:{},sentryEventId:N?.eventId,sentryReplayId:N?.replayId,createdAt:new Date().toISOString()};if(W.add({category:"lifecycle",level:"info",message:`Mushi report submitting (${c})`,data:{reportId:Me.id,category:c}}),t.integrations?.custom){let F={addMetadata(be,en){Me.metadata[be]=en;},setCategory(be){Me.category=be;},setDescription(be){Me.description=be;}};t.integrations.custom(F);}let z=Me,Es=t.beforeSend??t.beforeSendFeedback;if(Es)try{let F=await Promise.race([Promise.resolve(Es(Me)),new Promise(be=>setTimeout(()=>be(Me),2e3))]);if(F===null){o.info("Report dropped by beforeSend hook",{reportId:Me.id});return}z=F;}catch(F){o.warn("beforeSend hook threw \u2014 sending unmodified report",{error:F instanceof Error?F.message:String(F)});}if(H("report:submitted",{reportId:z.id}),typeof navigator<"u"&&!navigator.onLine)return await p.enqueue(z),o.info("Offline \u2014 report queued",{reportId:z.id}),H("report:queued",{reportId:z.id}),{reportId:null,queuedOffline:true,failureKind:"offline"};let V=await l.submitReport(z);if(!V.ok&&V.error?.code==="PAYLOAD_TOO_LARGE"&&(Array.isArray(z.replayEvents)&&z.replayEvents.length>0&&(o.warn("Report too large \u2014 dropping replay buffer and retrying",{reportId:z.id}),z={...z,replayEvents:void 0},V=await l.submitReport(z)),!V.ok&&V.error?.code==="PAYLOAD_TOO_LARGE"&&z.screenshotDataUrl&&(o.warn("Report still too large \u2014 dropping screenshot and retrying",{reportId:z.id}),ur=true,z={...z,screenshotDataUrl:void 0},V=await l.submitReport(z))),V.ok){if(o.info("Report sent",{reportId:V.data?.reportId}),H("report:sent",{reportId:V.data?.reportId}),J(),V.data?.cursorAgentId){let F=V.data;H("report:dispatched",{reportId:F.reportId,agentId:F.cursorAgentId,fixId:F.fixId});}W.add({category:"lifecycle",level:"info",message:`Mushi report sent (${V.data?.reportId??Me.id})`}),_t({action:"report_submit",metadata:{category:c,reportId:V.data?.reportId??Me.id}});try{t.sentry&&V.data?.reportId&&ps(V.data.reportId);}catch{}}else {if(V.error?.code==="PAYLOAD_TOO_LARGE"||V.error?.code==="SERIALIZE_FAILED")return o.warn("Report exceeds size limit after degradation \u2014 dropping",{reportId:z.id,error:V.error}),H("report:failed",{reportId:z.id,error:V.error}),W.add({category:"lifecycle",level:"error",message:`Mushi report dropped \u2014 payload too large (${z.id})`}),L=null,se=null,G=null,{reportId:null,queuedOffline:false,failureKind:"permanent",screenshotDropped:ur};{let F=V.error?.code??"",be=F==="HTTP_429"||F.includes("RATE_LIMIT"),en=F==="HTTP_401"||F.includes("UNAUTHORIZED")||F.includes("INVALID_API_KEY")||F.includes("MISSING_API_KEY"),ma=F==="HTTP_403"||F.includes("QUOTA")||F.includes("FORBIDDEN")||F==="feature_not_in_plan";if(en||ma)return o.warn("Report rejected \u2014 credentials/quota",{reportId:z.id,error:V.error}),H("report:failed",{reportId:z.id,error:V.error}),L=null,se=null,G=null,{reportId:null,queuedOffline:false,failureKind:"quota"};if(be)return o.warn("Report rate-limited \u2014 queued for retry",{reportId:z.id,error:V.error}),await p.enqueue(z),H("report:failed",{reportId:z.id,error:V.error}),L=null,se=null,G=null,{reportId:null,queuedOffline:true,failureKind:"rate_limited"};o.warn("Report failed, queuing for retry",{reportId:z.id,error:V.error}),await p.enqueue(z),H("report:failed",{reportId:z.id,error:V.error}),W.add({category:"lifecycle",level:"warning",message:`Mushi report queued for retry (${z.id})`});}}return L=null,se=null,G=null,V?.ok?{reportId:V.data?.reportId??Me.id,queuedOffline:false,screenshotDropped:ur}:{reportId:null,queuedOffline:true,failureKind:"retrying"}}let Zr={report(c){T.open(c);},on(c,d){return Y.has(c)||Y.set(c,new Set),Y.get(c).add(d),()=>Y.get(c)?.delete(d)},setUser(c){x=c;},setMetadata(c,d){B[c]=d;},setScreen(c){E.setScreen(c);},isOpen(){return T.getIsOpen()},open(){T.open();},openWith(c){T.open({category:c});},show(){T.showTrigger();},hide(){T.hideTrigger();},attachTo(c,d){return T.attachTo(c,d)},setTrigger(c){T.setTrigger(c);},openReporter(){T.openReporter();},close(){T.close();},updateConfig(c){Ht(c);},diagnose(){return hd({apiEndpoint:fs(s),widgetMounted:T.getIsMounted(),runtimeConfigLoaded:Re,captureScreenshotAvailable:g!==null,captureNetworkIntercepting:R!==null,widgetDiagnostics:T.getWidgetDiagnostics()})},destroy(){Ue?.destroy(),Je?.reset(),Ko(),T.destroy(),_?.destroy(),R?.destroy(),M?.destroy(),v?.deactivate(),ji(),Pe?.(),Pe=null,b?.destroy(),b=null,E.destroy(),_i(),I?.destroy(),I=null,p.stopAutoSync(),oe(),h?.(),h=null,Do(),W.clear(),Y.clear(),Ne=null,o.debug("Destroyed");},async captureEvent(c){if(!y.tryConsume())return o.warn("captureEvent throttled \u2014 rate limit exceeded"),null;let d=u.scrub(f.truncate(c.description)),C=c.category??"bug",D=t.sentry?ds(t.sentry):void 0,O=S(W.getAll()),K=k(Object.keys(U).length===0&&!c.tags?void 0:{...U,...c.tags??{}}),ne=D?{...D,...D.breadcrumbs?{breadcrumbs:S(D.breadcrumbs)}:{},...D.tags?{tags:k(D.tags)}:{}}:void 0,ce=kn(),N={id:Rn(),projectId:t.projectId,category:C,description:d,environment:ce,timeline:E.getEntries(),metadata:{...c.metadata??{},...x?{user:x}:{},...c.error?{error:c.error}:{},...c.severity?{severity:c.severity}:{},...c.component?{component:c.component}:{},...c.source?{source:c.source}:{source:"captureEvent"}},...O.length>0?{breadcrumbs:O}:{},...K&&Object.keys(K).length>0?{tags:K}:{},...ne?{sentryContext:ne}:{},sessionId:gt(),reporterToken:le(r),appVersion:ua(s,ce),sdkPackage:Ve,sdkVersion:he,sentryEventId:D?.eventId,sentryReplayId:D?.replayId,createdAt:new Date().toISOString()},re=N;if(s.beforeSendFeedback)try{let qe=await Promise.race([Promise.resolve(s.beforeSendFeedback(N)),new Promise(cr=>setTimeout(()=>cr(N),2e3))]);if(qe===null)return o.info("captureEvent dropped by beforeSendFeedback hook",{reportId:N.id}),null;re=qe;}catch(qe){o.warn("captureEvent beforeSendFeedback threw \u2014 sending unmodified report",{error:qe instanceof Error?qe.message:String(qe)});}if(H("report:submitted",{reportId:re.id}),typeof navigator<"u"&&!navigator.onLine)return await p.enqueue(re),H("report:queued",{reportId:re.id}),null;let Fe=await l.submitReport(re);if(Fe.ok){H("report:sent",{reportId:Fe.data?.reportId});try{t.sentry&&Fe.data?.reportId&&ps(Fe.data.reportId);}catch{}return Fe.data?.reportId??null}return await p.enqueue(re),H("report:failed",{reportId:re.id,error:Fe.error}),null},async captureException(c,d){let C=Yo(c),D=typeof d?.metadata?.filename=="string"?d.metadata.filename:void 0;if(Jt({message:C.message,filename:D,ignoreErrors:s.ignoreErrors,denyUrls:s.denyUrls,allowUrls:s.allowUrls}))return null;W.add({category:"lifecycle",level:"error",message:`Mushi.captureException(${C.name}): ${C.message}`,...C.stack?{data:{stack:C.stack.slice(0,500)}}:{}});let O=d?.description?.trim()||`${C.name}: ${C.message}`||"Uncaught exception";return Zr.captureEvent({description:O,category:d?.category??"bug",severity:d?.severity??"high",...d?.component?{component:d.component}:{},...d?.tags?{tags:d.tags}:{},source:d?.source??"captureException",error:{name:C.name,message:C.message,...C.stack?{stack:C.stack}:{}},metadata:{...d?.metadata??{},...C.cause?{cause:C.cause}:{}}})},identify(c,d){let C=`${c}::${d?JSON.stringify(d):""}`;if(C!==P){if(P=C,x={id:c,...d?.email?{email:d.email}:{},...d?.name?{name:d.name}:{}},T.setIdentifiedUser(x.name||x.email?{name:x.name,email:x.email}:null),d)for(let[D,O]of Object.entries(d))D!=="email"&&D!=="name"&&(B[`user.${D}`]=O);W.add({category:"lifecycle",level:"info",message:`Mushi.identify(${c})`}),Wo(c,d??null),fe(c,d?{email:d.email,name:d.name,provider:d.provider}:void 0);}},identifyWithToken(c){if(a=c&&typeof c=="string"?c:null,a){let d=ri(a);if(d?.sub){if(x?.id===d.sub){W.add({category:"lifecycle",level:"info",message:"Mushi.identifyWithToken() refreshed"});return}Po(d.sub),x={id:d.sub,...d.email?{email:d.email}:{},...d.name?{name:d.name}:{}},T.setIdentifiedUser(x.name||x.email?{name:x.name,email:x.email}:null),fe(x.id,{email:x.email,name:x.name});}W.add({category:"lifecycle",level:"info",message:"Mushi.identifyWithToken()"});}else x=null,P=null,T.setIdentifiedUser(null),W.add({category:"lifecycle",level:"info",message:"Mushi.identifyWithToken(null)"});},publishPageContext(c){i=c&&c.route?c:null;},openAssistant(){T.openAssistantTab();},addBreadcrumb(c){W.add(c);},getBreadcrumbs(){return W.getAll()},setTag(c,d){typeof c!="string"||c.length===0||(U[c]=d);},setTags(c){if(!(!c||typeof c!="object"))for(let[d,C]of Object.entries(c))typeof d=="string"&&d.length>0&&(U[d]=C);},clearTag(c){if(typeof c=="string"&&c.length>0){delete U[c];return}for(let d of Object.keys(U))delete U[d];},async getReputation(){if(!x?.id)return null;let c=await l.getMyPoints(x.id);return c.ok?{totalPoints:c.data.total_points??0,points30d:c.data.points_30d??0,reputation:1,confirmedBugs:0,totalReports:0}:null},async getTier(){return x?.id?Fi(x.id):null},recordActivity(c,d){s.rewards?.enabled&&_t({action:c,metadata:d});},track(c,d){return Et(c,d)},setConsent(c){jo(c);},getAnonymousId(){return Fo()},pulseTrigger(){T.pulseTrigger?.();},async listMyReports(){let c=await l.listReporterReports(le(r));return c.ok?c.data?.reports??[]:[]},async listMyComments(c){let d=await l.listReporterComments(c,le(r));return d.ok?d.data?.comments??[]:[]},async replyToReport(c,d){let C=await l.replyToReporterReport(c,le(r),d);return C.ok?C.data?.comment??null:null},async submitFeedbackSignal(c,d,C){let D=await l.replyToReporterReport(c,le(r),C??"",d);return D.ok?D.data?.feedback??null:null},async reopenReport(c,d){let C=await l.reopenReporterReport(c,le(r),d);return C.ok?C.data?.outcome??null:null},openMyReports(){T.recorderOpenMyReports();},async getHallOfFame(c=20){let d=await l.getHallOfFame(c);return d.ok?d.data?.data??[]:[]}};if(typeof globalThis<"u"&&(e.debug??false)&&Mi(T),typeof window<"u"&&typeof localStorage<"u"){let c="mushi:last-run",d=null;try{let C=localStorage.getItem(c);d=C===null?null:C==="unfinished",localStorage.setItem(c,"unfinished");}catch{d=null;}try{window.addEventListener("pagehide",()=>{try{localStorage.setItem(c,"clean");}catch{}po(),ho();});}catch{}if(typeof e.onCrashedLastRun=="function")try{e.onCrashedLastRun(d);}catch(C){o.warn("onCrashedLastRun hook threw",{error:C instanceof Error?C.message:String(C)});}}let bs={on:()=>{},isOpen:false,getBreadcrumbs:[],captureEvent:null,captureException:null,getReputation:null,getTier:null,listMyReports:[],listMyComments:[],getHallOfFame:[],replyToReport:null,submitFeedbackSignal:null,reopenReport:null},ys=(c,d)=>{let C=d instanceof Error?d.message:String(d);o.debug(`Mushi.${c}() failed (swallowed)`,{error:C});try{W.add({category:"custom",level:"warning",message:`mushi.${c}() threw`,data:{error:C}});}catch{}};return (c=>new Proxy(c,{get(d,C,D){let O=Reflect.get(d,C,D);if(typeof O!="function")return O;let K=String(C),ne=()=>K==="diagnose"?ms():K in bs?bs[K]:void 0;return (...ce)=>{try{let N=O.apply(d,ce);return N&&typeof N.then=="function"?N.catch(re=>(ys(K,re),ne())):N}catch(N){return ys(K,N),ne()}}}}))(Zr)}function fs(t){return t.apiEndpoint??Ft}function pd(t){return t.runtimeConfig!==false}async function hd(t){let e=await fd(t.apiEndpoint);return {apiEndpointReachable:e.reachable,cspAllowsEndpoint:e.cspAllowed,widgetMounted:t.widgetMounted,shadowDomAvailable:typeof HTMLElement<"u"&&typeof HTMLElement.prototype.attachShadow=="function",dialogSupported:typeof HTMLDialogElement<"u",runtimeConfigLoaded:t.runtimeConfigLoaded,captureScreenshotAvailable:t.captureScreenshotAvailable,captureNetworkIntercepting:t.captureNetworkIntercepting,sdkVersion:he,widgetHostPointerSafe:t.widgetDiagnostics?.widgetHostPointerSafe??false,widgetHostBounds:t.widgetDiagnostics?.widgetHostBounds??null,widgetSuppressed:t.widgetDiagnostics?.widgetSuppressed??false,bannerRendered:t.widgetDiagnostics?.bannerRendered??false}}async function ms(){return {apiEndpointReachable:false,cspAllowsEndpoint:false,widgetMounted:false,shadowDomAvailable:typeof HTMLElement<"u"&&typeof HTMLElement.prototype.attachShadow=="function",dialogSupported:typeof HTMLDialogElement<"u",runtimeConfigLoaded:false,captureScreenshotAvailable:false,captureNetworkIntercepting:false,sdkVersion:he,widgetHostPointerSafe:false,widgetHostBounds:null,widgetSuppressed:false,bannerRendered:false}}async function fd(t){if(typeof fetch>"u")return {reachable:false,cspAllowed:false};let e=typeof AbortController<"u"?new AbortController:null,r=e?setTimeout(()=>e.abort(),3e3):null;try{return {reachable:(await fetch(`${t.replace(/\/$/,"")}/health`,{method:"GET",cache:"no-store",...e?{signal:e.signal}:{},[St]:"diagnose"})).ok,cspAllowed:!0}}catch{return {reachable:false,cspAllowed:false}}finally{r&&clearTimeout(r);}}function gs(t){return `mushi:sdk-config:${t}`}function fa(t){return `mushi:sdk-version:${t}`}function md(t){if(typeof localStorage>"u")return null;try{let e=localStorage.getItem(gs(t));return e?JSON.parse(e).config??null:null}catch{return null}}function gd(t,e){if(!(typeof localStorage>"u"))try{localStorage.setItem(gs(t),JSON.stringify({cachedAt:Date.now(),config:e}));}catch{}}function bd(t){if(!(typeof localStorage>"u"))try{localStorage.removeItem(gs(t));}catch{}}function yd(t){if(typeof localStorage>"u")return null;try{let e=localStorage.getItem(fa(t));if(!e)return null;let r=JSON.parse(e);return !r.data||!r.cachedAt||Date.now()-r.cachedAt>864e5?null:r.data}catch{return null}}function vd(t,e){if(!(typeof localStorage>"u"))try{localStorage.setItem(fa(t),JSON.stringify({cachedAt:Date.now(),data:e}));}catch{}}function wd(t,e){let r=da(t),n=da(e);for(let s=0;s<Math.max(r.length,n.length);s++){let o=r[s]??0,a=n[s]??0;if(o<a)return true;if(o>a)return false}return false}function da(t){return t.split(/[.-]/).map(e=>Number.parseInt(e,10)).filter(e=>Number.isFinite(e))}function pa(){return {report:()=>{},on:()=>()=>{},setUser:()=>{},setMetadata:()=>{},setScreen:()=>{},isOpen:()=>false,open:()=>{},close:()=>{},updateConfig:()=>{},diagnose:ms,openWith:()=>{},show:()=>{},hide:()=>{},attachTo:()=>()=>{},setTrigger:()=>{},openReporter:()=>{},destroy:()=>{Ne=null;},captureEvent:async()=>null,captureException:async()=>null,identify:()=>{},identifyWithToken:()=>{},publishPageContext:()=>{},openAssistant:()=>{},addBreadcrumb:()=>{},getBreadcrumbs:()=>[],setTag:()=>{},setTags:()=>{},clearTag:()=>{},getReputation:async()=>null,getTier:async()=>null,recordActivity:()=>{},track:()=>false,setConsent:()=>{},getAnonymousId:()=>null,pulseTrigger:()=>{},listMyReports:async()=>[],listMyComments:async()=>[],replyToReport:async()=>null,submitFeedbackSignal:async()=>null,reopenReport:async()=>null,openMyReports:()=>{},getHallOfFame:async()=>[]}}function xd(t){if(typeof window>"u")return ()=>{};let e=[];try{let r=s=>{t.add({category:"navigation",level:"info",message:`${s}: ${window.location.pathname}`,data:{url:window.location.href,kind:s}});},n=Ae({onPush:()=>r("pushState"),onReplace:()=>r("replaceState"),onPop:()=>r("popstate")});e.push(n);}catch{}try{let r=console.error,n=console.warn,s=function(...a){try{t.add({category:"console",level:"error",message:a.map(ha).join(" ")});}catch{}return r.apply(this,a)},o=function(...a){try{t.add({category:"console",level:"warning",message:a.map(ha).join(" ")});}catch{}return n.apply(this,a)};console.error=s,console.warn=o,e.push(()=>{console.error===s&&(console.error=r),console.warn===o&&(console.warn=n);});}catch{}try{let r=n=>{try{let s=n.target;if(!(s instanceof Element))return;let o=s,a=0;for(;o&&a<10;){let i=o.getAttribute("data-testid");if(i){let l=(o.textContent??"").trim().slice(0,80);t.add({category:"ui.click",level:"info",message:`clicked ${i}${l?` \u2014 ${l}`:""}`,data:{testid:i,tag:o.tagName.toLowerCase()}});return}o=o.parentElement,a++;}}catch{}};document.addEventListener("click",r,{passive:!0,capture:!0}),e.push(()=>document.removeEventListener("click",r,!0));}catch{}return ()=>{for(let r of e)try{r();}catch{}}}function ha(t){try{if(t instanceof Error)return `${t.name}: ${t.message}`;if(typeof t=="object"&&t!==null){let r=JSON.stringify(t);return r.length>200?`${r.slice(0,200)}\u2026`:r}let e=String(t);return e.length>200?`${e.slice(0,200)}\u2026`:e}catch{return `[${typeof t}]`}}function Sd(){let t=document.currentScript;if(t&&t.dataset&&t.dataset.project)return t;let e=Array.from(document.querySelectorAll("script[data-project][data-key]"));return e.length>0?e[e.length-1]:null}function Ed(t){let e=t.project?.trim(),r=t.key?.trim();if(!e||!r)return null;let n={};t.trigger&&(n.trigger=t.trigger),t.theme&&(n.theme=t.theme),t.position&&(n.position=t.position),t.triggerText&&(n.triggerText=t.triggerText);let s=t.bannerVariant,o=t.bannerPosition;(s||o)&&(n.bannerConfig={...s?{variant:s}:{},...o?{position:o}:{}});let a={projectId:e,apiKey:r};return t.endpoint&&(a.apiEndpoint=t.endpoint),t.debug==="true"&&(a.debug=true),Object.keys(n).length>0&&(a.widget=n),a}function kd(){if(typeof document>"u"||typeof window>"u")return;let t=window;if(t.__mushiLoaderInit)return;let e=Sd();if(!e)return;let r=Ed(e.dataset);if(r){t.__mushiLoaderInit=true;try{Jr.init(r);}catch{}}}kd();
95
+ `,document.body.appendChild(f),f}function p(f,g){let m=document.elementsFromPoint(f,g),b=null;for(let P of m)if(!(P===r||P===e)){if(P.id==="mushi-mushi-widget"||P.closest("#mushi-mushi-widget"))return null;b=P;break}let C=0;for(;b?.shadowRoot&&C<20;){let P=b.shadowRoot.elementFromPoint(f,g);if(!P||P===b)break;b=P,C++;}return b}function h(f){if(!e)return;let g=f.getBoundingClientRect();e.style.left=`${g.left}px`,e.style.top=`${g.top}px`,e.style.width=`${g.width}px`,e.style.height=`${g.height}px`,e.style.display="block";}function k(f){let g=p(f.clientX,f.clientY);if(!g){n=null,e&&(e.style.display="none");return}n=g,h(g);}function S(f){f.preventDefault(),f.stopPropagation();}function T(f){f.preventDefault(),f.stopPropagation();let g=p(f.clientX,f.clientY);g&&L(s(g));}function E(f){f.key==="Escape"&&L(null);}function w(){n?.isConnected&&h(n);}function L(f){x(),i?.(f),i=null;}function M(){return t&&x(),new Promise(f=>{i=f,t=true,e=u(),r=d(),r.addEventListener("mousemove",k),r.addEventListener("click",T),r.addEventListener("pointerdown",S),r.addEventListener("mousedown",S),r.addEventListener("mouseup",S),document.addEventListener("keydown",E,true),window.addEventListener("scroll",w,{capture:true,passive:true});})}function x(){t&&(t=false,n=null,document.removeEventListener("keydown",E,true),window.removeEventListener("scroll",w,{capture:true}),r&&(r.remove(),r=null),e&&(e.remove(),e=null));}return {activate:M,deactivate:x,isActive:()=>t}}var Ga=120;function ki(){let t=[],e=()=>n("hashchange");n("initial");function r(a){t.push(a),t.length>Ga&&t.shift();}function n(a){typeof location>"u"||r({ts:Date.now(),kind:"route",payload:{source:a,route:sr(`${location.pathname}${location.search}${location.hash}`),href:sr(location.href)}});}function i(a){let s=a.target instanceof Element?a.target:null;if(!s)return;let u=s.closest('button,a,[role="button"],input,textarea,select,[data-mushi-track]')??s;r({ts:Date.now(),kind:"click",payload:{tag:u.tagName.toLowerCase(),id:u.id||void 0,text:Sp(u)}});}let o=Me({onPush:()=>n("pushState"),onReplace:()=>n("replaceState"),onPop:()=>n("popstate")});return window.addEventListener("hashchange",e),document.addEventListener("click",i,true),{setScreen(a){r({ts:Date.now(),kind:"screen",payload:a});},getEntries(a={}){return [...t,...(a.consoleLogs??[]).map(u=>({ts:u.timestamp,kind:"log",payload:{level:u.level,message:u.message}})),...(a.networkLogs??[]).map(u=>({ts:u.timestamp,kind:"request",payload:{method:u.method,url:u.url,status:u.status,duration:u.duration,error:u.error}}))].sort((u,d)=>u.ts-d.ts).slice(-Ga)},clear(){t.length=0;},destroy(){o(),window.removeEventListener("hashchange",e),document.removeEventListener("click",i,true);}}}function Sp(t){let e=(t.textContent??"").replace(/\s+/g," ").trim();return e?e.slice(0,80):void 0}var xp=6e4,Rp=/^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i,kp=/^[0-9a-f]{20,}$/i,_p=/^\d+$/,Cp=/^[a-z0-9]{16,}$/i;function Ya(t){return t.length===0?t:Rp.test(t)||kp.test(t)||_p.test(t)||Cp.test(t)&&/\d/.test(t)?"[id]":t}function Tp(t,e,r){if(e.startsWith("#/")){let n=e.slice(1),i=n.indexOf("?"),o=i===-1?n:n.slice(0,i),a=r?.map(s=>s.startsWith("/#/")?s.slice(2):s);return "/#"+_i(o,a)}return _i(t,r)}function _i(t,e){let r=t.length>1&&t.endsWith("/")?t.slice(0,-1):t;if(e?.length){let n=Ap(r,e);if(n)return n}return "/"+r.split("/").filter(n=>n.length>0).map(Ya).join("/")}function Ap(t,e){let r=t.split("/").filter(i=>i.length>0),n=[...e].sort((i,o)=>o.split("/").length-i.split("/").length);for(let i of n){let o=i.split("/").filter(s=>s.length>0);if(o.length!==r.length)continue;let a=true;for(let s=0;s<o.length;s++){let u=o[s],d=r[s];if(!(u.startsWith("[")&&u.endsWith("]"))&&!u.startsWith(":")&&u!==d){a=false;break}}if(a)return "/"+o.join("/")}return null}function Ip(){if(typeof document>"u")return [];let t=new Set,e=document.querySelectorAll("[data-testid]");for(let r of Array.from(e)){let n=r.getAttribute("data-testid");n&&n.length>0&&n.length<120&&t.add(n);}return Array.from(t).sort()}function Mp(){if(typeof window>"u")return [];try{let t=new Set,e=i=>{new URLSearchParams(i).forEach((o,a)=>t.add(a));};e(window.location.search);let r=window.location.hash,n=r.indexOf("?");return r.startsWith("#/")&&n!==-1&&e(r.slice(n+1)),Array.from(t).sort()}catch{return []}}function Lp(){if(typeof document>"u")return null;let t=i=>(i??"").replace(/\s+/g," ").trim().slice(0,200),e=t(document.querySelector("h1")?.textContent);if(e)return e;let r=t(document.title);return r||t(document.querySelector("main")?.textContent)||null}async function Pp(t){if(!t||typeof crypto>"u"||!crypto.subtle)return null;try{let e=new TextEncoder().encode(t),r=await crypto.subtle.digest("SHA-256",e),n=new Uint8Array(r),i="";for(let o=0;o<n.length;o++)i+=n[o].toString(16).padStart(2,"0");return i}catch{return null}}function Ci(t){let{config:e,getRecentNetworkPaths:r,getUserId:n,getSessionId:i,onEvent:o}=t,a=e.throttleMs??xp,s=e.captureDomSummary!==false,u=e.userIdSource??"auto",d=new Map,p=null,h=null;async function k(){if(typeof window>"u")return;let L=Tp(window.location.pathname,window.location.hash,e.routeTemplates),M=Date.now(),x=d.get(L)??0;if(M-x<a)return;d.set(L,M);let f=null;u==="auto"?f=n()??i():u==="session-only"&&(f=i());let g={route:L,page_title:typeof document<"u"&&(document.title||"").slice(0,300)||null,dom_summary:s?Lp():null,testids:Ip(),network_paths:r().slice(-50),query_param_keys:Mp(),user_id_hash:await Pp(f),observed_at:new Date().toISOString()};o(g);}function S(){h||(h=setTimeout(()=>{h=null,k();},100));}function T(){if(typeof window>"u")return;let L=window.location.hash.startsWith("#/")?window.location.hash:"",M=window.location.pathname+window.location.search+L;M!==p&&(p=M,S());}if(typeof window>"u")return {destroy:()=>{},flushNow:()=>{}};let E=()=>T(),w=Me({onPush:E,onReplace:E,onPop:E});return window.addEventListener("hashchange",E),S(),{destroy(){w(),window.removeEventListener("hashchange",E),h&&(clearTimeout(h),h=null),d.clear();},flushNow(){d.clear(),k();}}}var Dp=3e4,Ai=400,$p=4,Op=2;function Xa(t,e,r){let n=u=>u.timestamp,i=u=>u.type===Op,o=u=>u.type===$p,a=Date.now()-e,s=0;for(let u=0;u<t.length;u++){let d=n(t[u]);if(typeof d=="number"&&d>=a)break;i(t[u])&&(s=o(t[u-1])?u-1:u);}if(t.length-s>r){for(let u=s+1;u<t.length;u++)if(i(t[u])&&t.length-u<=r){s=o(t[u-1])?u-1:u;break}}s>0&&t.splice(0,s);}function Ja(t){let e=[],r=false,n=o=>{if(!r)return;let a=o.target instanceof Element?o.target:null,s=a?.tagName?.toLowerCase()??"unknown",u=a?.closest("[data-testid]")?.getAttribute("data-testid")??void 0;e.push({type:"lite_click",timestamp:Date.now(),data:{tag:s,testId:u}}),e.length>Ai&&e.shift();},i=()=>{r=false,document.removeEventListener("click",n,true);};return {start(){r||(r=true,document.addEventListener("click",n,true));},stop:i,flush(){let o=Date.now()-t;return e.filter(a=>a.timestamp>=o)},destroy(){i(),e.length=0;}}}var Hp=['input[type="password"]',"[data-mushi-redact]"],Oe=null,Qa=false;function Ti(t){if(!t||typeof t!="object")return null;let e=t;return typeof e.record=="function"?e:e.default&&typeof e.default.record=="function"?e.default:null}async function Bp(t){if(Oe)return Oe;if(typeof t=="function")try{if(Oe=Ti(await t()),Oe)return Oe}catch{}if(Oe=Ti(globalThis.rrweb),Oe)return Oe;try{return Oe=Ti(await import('rrweb')),Oe}catch{return null}}async function Za(t){let e=t.maxDurationMs??Dp;if(t.mode==="lite")return Ja(e);let r=await Bp(t.loadRrweb);if(!r?.record)return Qa||(Qa=true,Tt({scope:"mushi"}).warn("capture.replay is 'rrweb' but rrweb could not be loaded, so replay is recording clicks only. Install rrweb and pass capture: { rrweb: () => import('rrweb') }.")),Ja(e);let n=r.record,i=[],o=null,a=false,s=[...new Set([...Hp,...t.redactSelectors??[]])],u=()=>{o?.(),o=null,a=false;};return {start(){a||(a=true,o=n({emit(d){i.push(d),Xa(i,e,Ai);},maskAllInputs:true,maskTextSelector:"*",blockSelector:s.join(","),checkoutEveryNms:e,sampling:{mousemove:false,mouseInteraction:true,scroll:150,media:800}})??null);},stop:u,flush(){return Xa(i,e,Ai),[...i]},destroy(){u(),i.length=0;}}}function eu(){try{let t=globalThis;return t.Sentry?t.Sentry:void 0}catch{return}}function Fp(){try{return globalThis.__SENTRY_REPLAY__}catch{return}}function Np(){try{let t=globalThis,e=t.__SENTRY__,r=t.Sentry;return e?.version==="9"||r&&typeof r.lastEventId=="function"?e?.version==="9"?"v9":"v8":e?.version==="8"?"v8":r&&typeof r.getCurrentHub=="function"?"v7":"unknown"}catch{return "unknown"}}function Ii(t,e={}){let r=Math.max(0,e.breadcrumbsLimit??30),n={},i=eu();if(!i)return n;n.sdk=Np();try{let s=i;if(typeof s.lastEventId=="function")n.eventId=s.lastEventId()??void 0;else {let d=i.getCurrentHub?.()?.getScope?.();n.eventId=d?.getLastEventId?.()??void 0;}}catch{}let o;try{let s=i;typeof s.getCurrentScope=="function"?o=s.getCurrentScope():o=i.getCurrentHub?.()?.getScope?.();}catch{}if(o){try{let s=o.getUser?.();s&&(n.user={id:typeof s.id=="string"?s.id:void 0,email:typeof s.email=="string"?s.email:void 0,username:typeof s.username=="string"?s.username:void 0,ip_address:typeof s.ip_address=="string"?s.ip_address:void 0});}catch{}try{let s=o.getTags?.();if(s&&typeof s=="object"){let u={};for(let[d,p]of Object.entries(s))(typeof p=="string"||typeof p=="number"||typeof p=="boolean")&&(u[d]=p);Object.keys(u).length>0&&(n.tags=u);}}catch{}try{n.transactionName=o.getTransactionName?.()??o.getTransaction?.()?.name??void 0;}catch{}try{n.sessionId=o.getSession?.()?.sid??void 0;}catch{}try{let s=o.getBreadcrumbs?.()??o._breadcrumbs??[];if(Array.isArray(s)&&s.length>0){let u=s.slice(-r);n.breadcrumbs=u.map(d=>{let p=d;return {timestamp:typeof p.timestamp=="number"?p.timestamp<1e12?Math.round(p.timestamp*1e3):p.timestamp:void 0,category:typeof p.category=="string"?p.category:void 0,level:typeof p.level=="string"?p.level:void 0,message:typeof p.message=="string"?p.message:void 0,type:typeof p.type=="string"?p.type:void 0,data:p.data&&typeof p.data=="object"?p.data:void 0}});}}catch{}}try{let s=i,u;if(typeof s.getActiveSpan=="function"?u=s.getActiveSpan():o?.getSpan&&(u=o.getSpan()),u){let d=u.spanContext?.();n.traceId=d?.traceId??u.traceId??void 0,n.spanId=d?.spanId??u.spanId??void 0;}}catch{}let a;try{let s=i;typeof s.getClient=="function"?a=s.getClient():a=i.getCurrentHub?.()?.getClient?.();}catch{}if(a){try{let s=a.getOptions?.();s?.release&&(n.release=s.release),s?.environment&&(n.environment=s.environment);}catch{}try{let s=a.getDsn?.();if(s?.host&&s?.projectId&&n.eventId){let u=s.host.replace(/^o\d+\./,"");n.issueUrl=`https://${u}/issues/?query=${encodeURIComponent(n.eventId)}`;}}catch{}}try{let u=i.getReplay?.()??Fp();n.replayId=u?.getReplayId?.()??void 0;}catch{}return n}function Mi(t,e={}){let r=eu();if(r){try{let n=r;typeof n.setTag=="function"&&(n.setTag("mushi.report_id",t),e.reportUrl&&n.setTag("mushi.report_url",e.reportUrl)),typeof n.setContext=="function"&&n.setContext("mushi_report",{id:t,...e.reportUrl?{url:e.reportUrl}:{},captured_at:new Date().toISOString()}),typeof n.addBreadcrumb=="function"&&n.addBreadcrumb({category:"mushi",type:"info",level:"info",message:`Mushi report submitted (${t})`,data:{report_id:t,...e.reportUrl?{url:e.reportUrl}:{}}});}catch{}try{let i=r.getCurrentHub?.()?.getScope?.();i&&(i.setTag?.("mushi.report_id",t),e.reportUrl&&i.setTag?.("mushi.report_url",e.reportUrl),i.setContext?.("mushi_report",{id:t,...e.reportUrl?{url:e.reportUrl}:{}}));}catch{}}}var Up=["/login","/logout","/signup","/sso/*","/auth/*"];function ru(t,e={}){let r=[];if(e.rageClick!==false){let E=function(w){let L=Date.now();if(w.target===T){if(S.push(L),S=S.filter(M=>L-M<500),S.length>=3){let M=w.target;t.onTrigger("rage_click",{element:M.tagName,id:M.id,text:M.textContent?.slice(0,50)}),S=[];}}else T=w.target,S=[L];};let S=[],T=null;document.addEventListener("click",E,true),r.push(()=>document.removeEventListener("click",E,true));}if(e.longTask!==false&&typeof PerformanceObserver<"u")try{let S=new PerformanceObserver(T=>{for(let E of T.getEntries())E.duration>5e3&&t.onTrigger("long_task",{duration:Math.round(E.duration),startTime:Math.round(E.startTime)});});S.observe({entryTypes:["longtask"]}),r.push(()=>S.disconnect());}catch{}let n=qp(e.apiCascade);if(n.enabled){let S=[],T=globalThis.fetch;globalThis.fetch=async function(...E){let[w,L]=E,M=tn(w),x=!!rn(w,L)||gr(M,{apiEndpoint:e.apiEndpoint,ignoreUrls:n.ignoreUrls});try{let f=await T.apply(this,E);return !x&&!f.ok&&f.status>=400&&tu(S,t),f}catch(f){throw x||tu(S,t),f}},r.push(()=>{globalThis.fetch=T;});}if((e.pageDwell===true||typeof e.pageDwell=="object"&&e.pageDwell!==null)&&typeof window<"u"){let M=function(b){return E.some(C=>C.endsWith("/*")?b.startsWith(C.slice(0,-2)):b===C||b.startsWith(C+"/"))},x=function(){let b=window.location?.pathname??"";M(b)||t.onTrigger("page_dwell",{thresholdMs:T,path:b});},f=function(){w&&clearTimeout(w);let b=window.location?.pathname??"";M(b)||(w=setTimeout(x,T));},g=function(){let b=window.location?.pathname??"";b!==L&&(L=b,f());};let S=typeof e.pageDwell=="object"?e.pageDwell??{}:{},T=S.thresholdMs||300*1e3,E=S.excludeRoutes!==void 0?S.excludeRoutes:Up,w=null,L=window.location?.pathname??"";f();let m=Me({onPush:g,onReplace:g,onPop:g});r.push(()=>{w&&clearTimeout(w),m();});}if((e.firstSession===true||typeof e.firstSession=="object"&&e.firstSession!==null)&&typeof window<"u"){let S=typeof e.firstSession=="object"?e.firstSession??{}:{},T=S.delayMs??45*1e3,E=S.storageKey??(e.projectId?`mushi:${e.projectId}:firstSessionShown`:"mushi:firstSessionShown"),w=false;try{w=window.localStorage?.getItem(E)==="1";}catch{}if(!w){let L=setTimeout(()=>{try{window.localStorage?.setItem(E,"1");}catch{}t.onTrigger("first_session",{delayMs:T});},T);r.push(()=>clearTimeout(L));}}if(e.errorBoundary){let S=function(E){or({message:E.message,filename:E.filename,ignoreErrors:e.ignoreErrors,denyUrls:e.denyUrls,allowUrls:e.allowUrls})||t.onTrigger("error_boundary",{message:E.message,filename:E.filename,lineno:E.lineno,colno:E.colno});},T=function(E){let w=E.reason instanceof Error?E.reason.message:String(E.reason);or({message:w,ignoreErrors:e.ignoreErrors,denyUrls:e.denyUrls,allowUrls:e.allowUrls})||t.onTrigger("error_boundary",{message:w,type:"unhandled_rejection"});};window.addEventListener("error",S),window.addEventListener("unhandledrejection",T),r.push(()=>{window.removeEventListener("error",S),window.removeEventListener("unhandledrejection",T);});}return {destroy(){r.forEach(S=>S());}}}function qp(t){return t===false?{enabled:false,ignoreUrls:[]}:t&&typeof t=="object"?{enabled:t.enabled!==false,ignoreUrls:t.ignoreUrls??[]}:{enabled:true,ignoreUrls:[]}}function tu(t,e){let r=Date.now();t.push(r);let n=t.filter(i=>r-i<1e4);n.length>=3&&(e.onTrigger("api_cascade",{failureCount:n.length,windowMs:1e4}),t.length=0);}var nu="mushi:lastDismiss",nn="mushi:consecDismiss",Li="mushi:lastShown";function on(t){try{return localStorage.getItem(t)}catch{return null}}function sn(t,e){try{localStorage.setItem(t,e);}catch{}}function iu(t={}){let e=t.maxProactivePerSession??2,r=t.dismissCooldownHours??24,n=t.suppressAfterDismissals??3,i=(t.reshowCooldownMinutes??30)*60*1e3,o=0,a=new Set;function s(h){let k=Date.now();if(parseInt(on(nn)??"0",10)>=n)return false;let T=on(nu);if(T&&k-parseInt(T,10)<r*60*60*1e3)return false;if(i>0&&o===0){let E=on(Li);if(E&&k-parseInt(E,10)<i)return false}return o>=e||a.has(h)?false:(a.add(h),o++,sn(Li,String(k)),true)}function u(){sn(nu,String(Date.now()));let h=parseInt(on(nn)??"0",10);sn(nn,String(h+1));}function d(){sn(nn,"0");}function p(){o=0,a.clear();try{localStorage.removeItem(Li);}catch{}}return {shouldShow:s,recordDismissal:u,recordSubmission:d,reset:p}}var Ye="@mushi-mushi/web",we="1.31.0";function lu(t,e){if(t.appVersion)return t.appVersion;let r=t.integrations?.vercel?.analyticsId;return r||e?.buildId}var He=null,an=class{constructor(){}static init(e){if(He)return Tt({scope:"mushi",level:"warn",format:"pretty"}).warn("Already initialized \u2014 call destroy() first to reinitialize"),He;if(typeof document>"u"||typeof window>"u")return du();let r={...Ln(),...e};if(!r.projectId||!r.apiKey){let n=Bo();throw new Error(n.message??"[mushi] projectId and apiKey are required \u2014 set NEXT_PUBLIC_MUSHI_* / VITE_MUSHI_* / MUSHI_* or pass them explicitly")}return r.enabled===false?du():(He=Vp(r),He)}static getInstance(){return He}static destroy(){He?.destroy(),He=null;}static diagnose(){return He?.diagnose()??Di()}};function Vp(t){No(t);let e=Fo(t),r=e.projectId,n=()=>te(r),i=e,o=t.debug??false?Tt({scope:"mushi",level:"debug",format:"pretty"}):Pn,a=null,s=null,u=Ho({projectId:e.projectId,apiKey:e.apiKey,...e.apiEndpoint?{apiEndpoint:e.apiEndpoint}:{},...typeof e.timeout=="number"?{timeout:e.timeout}:{},...typeof e.maxRetries=="number"?{maxRetries:e.maxRetries}:{},...e.circuitBreaker?{circuitBreaker:e.circuitBreaker}:{},...e.tunnel?{tunnel:e.tunnel}:{},getUserToken:()=>a,sdkPackage:Ye,sdkVersion:we}),d=null;if(e.trackSessions!==false){ts({client:u,sdkVersion:we,reporterToken:te(e.projectId)??null,projectId:e.projectId,analytics:e.analytics});try{d=Me({onPush:()=>Bn(),onPop:()=>Bn()});}catch{}}let p=Uo(e.preFilter),h=Ko(e.offline),k=fs({maxBurst:10,refillRate:1,refillIntervalMs:5e3}),S=Un();ls({client:u,projectId:e.projectId,sdkVersion:we,config:e.analytics,scrub:l=>S.scrub(l),getSessionId:bt});function T(l){return l.map(c=>{let y={...c};if(typeof c.message=="string"&&(y.message=S.scrub(c.message)),c.data&&typeof c.data=="object"){let I={};for(let[$,N]of Object.entries(c.data))I[$]=typeof N=="string"?S.scrub(N):N;y.data=I;}return y})}function E(l){return l&&l.map(c=>({...c,message:S.scrub(c.message),...c.stack?{stack:S.scrub(c.stack)}:{}}))}function w(l){if(!l)return;let c={};for(let[y,I]of Object.entries(l))c[y]=typeof I=="string"?S.scrub(I):I;return c}let L=null,M=null,x=null,f=null,g=null,m=null,b=ki(),C=null,P=0,v,K=`mushi:tester-jwt:${e.projectId}`;function Y(){try{return typeof localStorage<"u"?localStorage.getItem(K):null}catch{return null}}function j(){try{typeof localStorage<"u"&&localStorage.removeItem(K);}catch{}}async function ke(l){let c=await u.getTesterStatus(l);if(!c.ok||!c.data){j();return}let y=c.data;if(!y.is_tester||!y.tester_id){j();return}v.setTesterSession(l,{id:y.tester_id,public_handle:y.public_handle??null,display_name:y.display_name??null});let I=await u.getMyReputation(l);if(I.ok&&I.data){let $=I.data;$.reputation&&v.setTesterReputation($.reputation);}}function Be(){if(i.capture?.console!==false?L??=bi():(L?.destroy(),L=null),i.capture?.network!==false){let B={apiEndpoint:Pi(i),ignoreUrls:i.capture?.ignoreUrls,tracePropagation:i.capture?.tracePropagation,sessionId:bt()};M?M.updateOptions(B):M=gi(B);}else M?.destroy(),M=null;if(i.capture?.performance!==false?x??=xi():(x?.destroy(),x=null),i.capture?.screenshot!=="off"){let B={privacy:i.privacy,onFailed:Z=>v.setScreenshotError(true,Z)};i.capture?.screenshotProvider?f=null:f?f.updateOptions(B):f=wi(B);}else f=null;!f&&!i.capture?.screenshotProvider&&(O=null),v.setAllowScreenshotRemove(i.privacy?.allowUserRemoveScreenshot!==false),i.capture?.elementSelector!==false?g??=Ri():(g?.deactivate(),g=null,G=null),v.setCaptureAvailability({screenshot:(!!f||!!i.capture?.screenshotProvider)&&i.capture?.screenshot!=="off",element:!!g});let l=i.capture?.discoverInventory,c=l===true?{}:l&&typeof l=="object"?l:null;c!=null&&c.enabled!==false?(m?.destroy(),m=Ci({config:c,getRecentNetworkPaths:()=>M?M.getEntries().map(B=>{try{let Z=new URL(B.url,typeof window<"u"?window.location.href:"http://localhost");return Z.host&&typeof window<"u"&&Z.host!==window.location.host?null:Z.pathname}catch{return null}}).filter(B=>B!=null&&B.length>0&&B.length<200):[],getUserId:()=>R?.id??null,getSessionId:bt,onEvent:B=>{u.postDiscoveryEvent({...B,sdk_version:we}).catch(Z=>{o.debug("discovery emit failed",{err:String(Z)});});}})):(m?.destroy(),m=null);let I=i.capture?.replay??"off",$=i.replaySampleRate??1,N=$>=1||Math.random()<$,Q=i.replaysOnErrorSampleRate??0,ue=!N&&Q>0&&Math.random()<Q;if((I==="rrweb"||I==="lite")&&(N||ue)){let B=++P;Za({mode:I,loadRrweb:e.capture?.rrweb,redactSelectors:i.privacy?.redactSelectors}).then(Z=>{if(B!==P){Z.destroy();return}C?.destroy(),C=Z,C.start();});}else P++,C?.destroy(),C=null;}let me=new Map;function J(l,c){me.get(l)?.forEach(y=>y({type:l,data:c}));}let O=null,G=null,re=null,_e=false,Ce=true,Le=null,A=null,R=null,H=null,F={},U={},X=gs({max:50});X.add({category:"lifecycle",level:"info",message:"Mushi SDK init",data:{projectId:e.projectId,sdkVersion:we}});let Xe=null;Xe=th(X);let Fe=false,it=false,he=new Set,ie=Ra(u);async function ge(){let l=await ie.getUpdates(n()),c=l.ok?l.data??null:null;if(c)for(let y of he)try{y(c);}catch{}return c}function Nt(){v.refreshReporterInboxQuiet(),he.size&&ge();}function z(){Le&&clearInterval(Le),Le=null,A&&typeof document<"u"&&document.removeEventListener("visibilitychange",A),A=null;}function Ut(){if(z(),!Ce)return;let l=5*6e4,c=()=>{typeof document<"u"&&document.visibilityState==="hidden"||ii(r)&&Nt();};Le=setInterval(c,l),typeof document<"u"&&(A=()=>{document.visibilityState==="visible"&&c();},document.addEventListener("visibilitychange",A)),c();}let ot=null;function st(){let l=i.notifications??e.notifications;v.setReporterChannels({email:!!ot?.emailEnabled&&l?.email!==false,push:!!(ot?.pushEnabled&&ot.vapidPublicKey)&&!!l?.webPush,emailPrefill:l?.emailFromIdentity?R?.email??"":""});}let St=[];function fu(){if(!ii(r))return;let l=globalThis.requestIdleCallback;if(l?l(()=>{v.preloadViews();},{timeout:8e3}):setTimeout(()=>{v.preloadViews();},3e3),e.notifications?.toast===false||!Sa(r))return;let c=async()=>{let I=await ge(),$=I&&typeof I.unread_total=="number"&&Array.isArray(I.latest)?I:null;if($&&!$.unread_total)return;await v.refreshReporterInboxQuiet(),($?v.showUpdatesFeedToast($,St):await v.showUpdatesToast(St))&&xa(r);},y=globalThis.requestIdleCallback;y?y(()=>{c();},{timeout:5e3}):setTimeout(()=>{c();},2e3);}async function mu(l){let c=te(r),y=await ie.markReportRead(l,c);if(y.ok)return y.data?.unread_total??null;let I=await u.listNotifications(c,{limit:50});if(!I.ok)return null;let $=(I.data?.notifications??[]).filter(N=>{let Q=N.payload??{};return !N.read_at&&(Q.reportId===l||N.report_id===l)});return await Promise.all($.map(N=>u.markNotificationRead(String(N.id),c))),null}function Oi(l,c){if(!i.rewards?.enabled)return;let y={client:u,config:i.rewards,projectId:r,userId:l,traits:c,reporterToken:n()};Ha(y),i.rewards.showInWidget!==false&&u.getMyPoints(l).then(I=>{if(!I.ok)return;let $=I.data;v.setRewardsState({tier:$.tier?{slug:$.tier.slug??"free",displayName:$.tier.display_name??"Free",pointsThreshold:$.tier.points_threshold??0}:null,nextTier:$.next_tier?{displayName:$.next_tier.display_name??"",pointsThreshold:$.next_tier.points_threshold??0}:null,totalPoints:$.total_points??0,pointsForReport:$.report_submit_pts??50});}).catch(()=>{});}async function Hi(){if(Fe)return null;it=false;let l=i.capture?.screenshotProvider;if(l){Fe=true;try{let $=await l();if($)return $}catch($){o.warn("screenshotProvider threw, falling back to built-in capturer",{error:$ instanceof Error?$.message:String($)}),it=$ instanceof Error&&($.name==="NotAllowedError"||$.name==="SecurityError"||/permission|denied/i.test($.message));}finally{Fe=false;}}if(!f)return null;Fe=true;let c=v.getIsOpen();c&&v.hidePanel();let y=document.getElementById("mushi-mushi-widget"),I=y?.style.visibility??"";y&&(y.style.visibility="hidden"),await new Promise($=>{requestAnimationFrame(()=>requestAnimationFrame(()=>$()));});try{return await f.take()}finally{Fe=false,y&&(y.style.visibility=I),c&&v.showPanel();}}async function Bi(l){let c=i.capture?.screenshot;!(f||i.capture?.screenshotProvider)||c==="off"||O||l==="open"&&c!=="auto"||l==="submit"&&c!=="on-report"&&c!=="auto"||(o.debug("Auto-capturing screenshot",{when:l,mode:c}),O=await Hi(),v.setScreenshotAttached(O!==null),v.setScreenshotPreview(O));}let un=nr(r).then(l=>l.slice(0,12)).catch(()=>null);v=new Yr(e.widget,{onSubmit:async({category:l,userCategory:c,description:y,intent:I})=>(o.info("Report submitted",{category:l,userCategory:c,intent:I}),qt?.recordSubmission(),await Bi("submit"),await bu(l,y,I,c)??{reportId:null,queuedOffline:true}),onOpen:()=>{o.debug("Widget opened"),Bi("open"),C?.start(),J("widget:opened");},onBrandFooterImpression:()=>{un.then(l=>{Ct("loop_impression",{placement:"widget"},l?{reserved:{$ref:l}}:void 0);});},onBrandFooterClick:()=>{un.then(l=>(Ct("loop_click",{placement:"widget"},l?{reserved:{$ref:l}}:void 0),ps()));},onClose:()=>{o.debug("Widget closed"),re&&(qt?.recordDismissal(),J("proactive:dismissed",{type:re})),O=null,G=null,re=null,J("widget:closed");},onScreenshotRequest:async()=>{if(!(!!f||!!i.capture?.screenshotProvider)||i.capture?.screenshot==="off"){o.warn("Screenshot requested but capture is disabled"),v.setScreenshotError(true,"unsupported");return}if(!Fe){o.debug("Taking screenshot"),v.setScreenshotCapturing(true);try{O=await Hi();}catch(c){o.warn("Screenshot capture threw",{error:c instanceof Error?c.message:String(c)}),O=null;}v.setScreenshotAttached(O!==null),v.setScreenshotPreview(O),O===null&&v.setScreenshotError(true,it?"permission":void 0);}},onScreenshotShareTabRequest:typeof navigator<"u"&&typeof navigator.mediaDevices?.getDisplayMedia=="function"?()=>{let l=navigator.mediaDevices.getDisplayMedia({video:{displaySurface:"browser"},audio:false,preferCurrentTab:true,selfBrowserSurface:"include"});l.catch(()=>{}),v.setScreenshotCapturing(true);let c=document.getElementById("mushi-mushi-widget");c&&(c.style.visibility="hidden");let y=i.privacy;Promise.resolve().then(()=>(su(),ou)).then(I=>I.grabMaskedTabFrame(l,[Si,"[data-mushi-redact]",...y?.redactSelectors??[],...y?.maskSelectors??[],...y?.blockSelectors??[]]),I=>{throw l.then($=>$.getTracks().forEach(N=>N.stop()),()=>{}),I}).then(I=>{O=I,v.setScreenshotAttached(true),v.setScreenshotPreview(I);}).catch(I=>{o.warn("Tab capture failed",{error:I instanceof Error?I.name:String(I)}),v.setScreenshotError(true,I instanceof Error&&I.name==="NotAllowedError"?"permission":"error");}).finally(()=>{c&&(c.style.visibility="");});}:void 0,onScreenshotRemove:()=>{o.debug("Screenshot attachment removed"),O=null,v.setScreenshotAttached(false);},onScreenshotAnnotateRequest:async l=>{if(!O||l.childElementCount>0)return;let c;try{let{createScreenshotAnnotation:Q}=await Promise.resolve().then(()=>(uu(),au));c=await Q(O,l);}catch(Q){o.warn("Screenshot annotation failed",{error:Q instanceof Error?Q.message:String(Q)});return}let y=document.createElement("div");y.className="mushi-annotate-toolbar";let I=Q=>{(O=c.getDataUrl(),v.setScreenshotAttached(true),v.setScreenshotPreview(O)),c.destroy(),y.remove();},$=[{id:"highlight",label:"\u270F\uFE0F Highlight"},{id:"blur",label:"\u{1F512} Blur"},{id:"arrow",label:"\u2197\uFE0F Arrow"}];for(let Q of $){let ue=document.createElement("button");ue.type="button",ue.className="mushi-attach-btn",ue.dataset.tool=Q.id,ue.textContent=Q.label,ue.addEventListener("click",()=>{c.setTool(Q.id),y.querySelectorAll("button[data-tool]").forEach(B=>B.classList.remove("active")),ue.classList.add("active");}),y.appendChild(ue);}y.querySelector('button[data-tool="highlight"]')?.classList.add("active");let N=document.createElement("button");N.type="button",N.className="mushi-attach-btn",N.textContent="\u2713 Done",N.addEventListener("click",()=>I()),y.appendChild(N),l.insertBefore(y,l.firstChild);},onElementSelectorRequest:async()=>{if(!g||i.capture?.elementSelector===false){o.warn("Element selector requested but it is disabled/unavailable"),v.setElementError(true);return}o.debug("Element selector activated"),v.setElementCapturing(true),v.hidePanel();try{let l=await g.activate();l?(G=l,v.setElementSelected(!0),o.debug("Element selected",{tagName:l.tagName,xpath:l.xpath})):v.setElementCapturing(!1);}catch(l){o.warn("Element selector threw",{error:l instanceof Error?l.message:String(l)}),v.setElementError(true);}finally{v.showPanel();}},async onReporterReportsRequest(){let l=await u.listReporterReports(te(r));if(!l.ok)throw new Error(l.error?.message??"Could not load reports");return St=l.data?.reports??[],St.length&&ni(r),St},onReporterMarkRead:l=>mu(l),async onReporterReportRequest(l){let c=await ie.getReport(l,te(r));return c.ok&&c.data?{report:c.data.report,timeline:c.data.timeline}:null},async onReporterEmailOptIn(l){let c=await ie.setPrefs(te(r),{email:l,channels:{email:true}});if(!c.ok)throw new Error(c.error?.code??"EMAIL_OPT_IN_FAILED")},async onReporterPushSubscribe(){let l=await cn.subscribeReporterPush();if(!l.ok)throw new Error(l.reason)},async onReporterCommentsRequest(l){let c=await u.listReporterComments(l,te(r));if(!c.ok)throw new Error(c.error?.message??"Could not load thread");return c.data?.comments??[]},async onReporterReply(l,c){let y=await u.replyToReporterReport(l,te(r),c);if(!y.ok)throw new Error(y.error?.message??"Could not send reply")},async onReporterFeedback(l,c,y){let I=await u.replyToReporterReport(l,te(r),y??"",c);if(!I.ok)throw new Error(I.error?.message??"Could not send feedback");return I.data?.feedback??null},async onReporterReopen(l,c){let y=await u.reopenReporterReport(l,te(r),c);if(!y.ok)throw new Error(y.error?.message??"Could not reopen report");return y.data?.outcome??null},async onFeatureBoardRequest(){let l=await u.listReporterFeatureBoard(te(r));if(!l.ok)throw new Error(l.error?.message??"Could not load community ideas");return l.data?.tickets??[]},async onFeatureBoardVote(l){let c=await u.voteReporterFeatureBoard(l,te(r));if(!c.ok)throw new Error(c.error?.message??"Could not vote");return c.data??{voted:true,action:"added"}},onLeaderboardOpen(){v.setLeaderboard(null,true),Fa(10).then(l=>{v.setLeaderboard(l,false);});},async onMushiSignIn(l){let c=await u.sendMagicLink(l);if(!c.ok)throw new Error(c.error?.message??"Could not send sign-in link");return {ok:true}},async onGlobalLeaderboardOpen(){v.setGlobalLeaderboard(null,true);try{let l=Y(),c=await u.getPublicLeaderboard(50),I=(c.ok?c.data?.leaderboard??[]:[]).map($=>({tester_id:$.tester_id,rank:$.rank,public_handle:$.public_handle,display_name:$.display_name,points_30d:$.points_30d,total_points:$.total_points??0,badge:$.badge_slug}));if(v.setGlobalLeaderboard(I,!1),l){let $=await u.getMyReputation(l);if($.ok&&$.data){let N=$.data;N.reputation&&v.setTesterReputation(N.reputation);}}}catch{v.setGlobalLeaderboard([],false);}},async onCrossAppReportsOpen(){let l=Y();if(!l){v.setCrossAppReports([],false);return}try{let c=await u.getCrossAppReports(l),y=c.ok?c.data?.reports??[]:[];v.setCrossAppReports(y,!1);}catch{v.setCrossAppReports([],false);}},onTesterSignOut(){j();},assistantEnabled:e.assistant?.enabled===true,...e.assistant?.label?{assistantLabel:e.assistant.label}:{},...e.assistant?.greeting?{assistantGreeting:e.assistant.greeting}:{},...e.assistant?.suggestions?{assistantSuggestions:e.assistant.suggestions}:{},async onAssistantAsk(l,c){let y=await u.askAssistant({message:l,threadId:c,context:s});return y.ok?y.data??null:null}}),un.then(l=>v.setBrandRef(l)),Be(),typeof document<"u"&&(document.readyState==="loading"?document.addEventListener("DOMContentLoaded",()=>v.mount()):v.mount());let Fi=Y();Fi&&ke(Fi).catch(()=>j());let Ni=null,qt=null,ee=i.proactive;ee&&(ee.rageClick!==false||ee.longTask!==false||ee.apiCascade!==false||ee.errorBoundary===true||ee.pageDwell||ee.firstSession)&&typeof document<"u"&&(qt=iu(ee?.cooldown),Ni=ru({onTrigger:(l,c)=>{if(typeof navigator<"u"&&!navigator.onLine){o.debug("Proactive trigger suppressed: offline",{type:l});return}if(!qt.shouldShow(l)){o.debug("Proactive trigger suppressed by fatigue prevention",{type:l});return}o.info("Proactive trigger fired",{type:l,context:c}),re=l,J("proactive:triggered",{type:l,context:c}),l==="first_session"?v.pulseTrigger?.():v.open();}},{rageClick:ee?.rageClick,longTask:ee?.longTask,apiCascade:ee?.apiCascade,apiEndpoint:Pi(i),errorBoundary:ee?.errorBoundary,ignoreErrors:i.ignoreErrors,denyUrls:i.denyUrls,allowUrls:i.allowUrls,pageDwell:ee?.pageDwell,firstSession:ee?.firstSession,projectId:e.projectId}),o.debug("Proactive triggers enabled",{rageClick:ee?.rageClick!==false,longTask:ee?.longTask!==false,apiCascade:ee?.apiCascade!==false,errorBoundary:ee?.errorBoundary===true,pageDwell:!!ee?.pageDwell,firstSession:!!ee?.firstSession})),h.startAutoSync(u),h.flush(u).then(l=>{l.sent>0&&o.info("Synced offline reports",{sent:l.sent});});function ln(l){if(_e=true,Ce=l.reporterNotificationsEnabled!==false,ot=l.enabled===false?null:l.reporter??null,st(),l.enabled===false){i=e,Jp(t.projectId),Be(),v.updateConfig(i.widget),z(),o.debug("Runtime SDK config disabled; using bootstrap config",{version:l.version});return}i=_a(i,l,e),Be(),l.widget&&v.updateConfig(i.widget),Ce?Ut():z(),o.debug("Applied runtime SDK config",{version:l.version});}if(Kp(t)){let l=Yp(t.projectId);l&&ln(l),u.getSdkConfig().then(c=>{c.ok&&c.data?(Xp(t.projectId,c.data),ln(c.data)):c.error&&o.debug("Runtime SDK config unavailable",c.error);}).catch(c=>{o.debug("Runtime SDK config fetch failed",{error:c instanceof Error?c.message:String(c)});});}else o.debug("Runtime SDK config disabled via runtimeConfig:false; using static bootstrap config");gu(),Ut(),fu(),o.info("Initialized",{projectId:t.projectId});async function gu(){if(i.widget?.outdatedBanner==="off")return;let l=Qp(Ye);l&&Ui(l);let c=await u.getLatestSdkVersion(Ye);!c.ok||!c.data||(Zp(Ye,c.data),Ui(c.data));}function Ui(l){let c=l.latest,y=!!(c&&eh(we,c));if(!y&&!l.deprecated)return;let I=l.deprecationMessage??(y?`Update ${Ye} to ${c}.`:null);o.warn("Mushi SDK is outdated",{package:Ye,current:we,latest:c,deprecated:l.deprecated,message:I}),Ws(i.widget?.outdatedBanner,!!i.debug,typeof location>"u"?void 0:location)&&v.setSdkFreshness({latest:c,current:we,deprecated:l.deprecated,message:I});}async function bu(l,c,y,I){let $=p.check(c);if(!$.passed){o.info("Report blocked by pre-filter",{reason:$.reason});return}let N=t.preFilter?.wasmClassifier;if(N)try{let q=await N.classify({description:c,category:l,url:typeof location<"u"?location.href:void 0,hasScreenshot:O!==null,hasSelectedElement:G!==null,hasNetworkErrors:M?.getEntries()?.some(be=>be.status>=400||!!be.error)??!1,hasConsoleErrors:L?.getEntries()?.some(be=>be.level==="error")??!1,proactiveTrigger:re??void 0});if(q.verdict==="block"){o.info("Report blocked by on-device classifier",{modelId:q.modelId,confidence:q.confidence,reason:q.reason});return}o.debug("On-device classifier verdict",{...q});}catch(q){o.warn("On-device classifier threw \u2014 falling through to server",{error:q instanceof Error?q.message:String(q)});}if(re!==null&&t.sampleRate!==void 0&&t.sampleRate<1&&(t.sampleRate<=0||Math.random()>t.sampleRate)){o.debug("Report dropped by sampleRate",{sampleRate:t.sampleRate,trigger:re});return}if(!k.tryConsume()){o.warn("Report throttled \u2014 rate limit exceeded");return}let ue=S.scrub(p.truncate(c)),B=t.sentry?Ii(t.sentry):void 0,Z=await zo().catch(()=>null),Ne=i.capture?.console===false?void 0:E(L?.getEntries()),Ue=i.capture?.network===false?void 0:M?.getEntries(),br=T(X.getAll()),Wi=w(Object.keys(U).length>0?{...U}:void 0),Vi=B?{...B,...B.breadcrumbs?{breadcrumbs:T(B.breadcrumbs)}:{},...B.tags?{tags:w(B.tags)}:{}}:void 0,Ki=O?await Ds(O).catch(()=>null):null,Er=false;O&&!Ki&&(Er=true,o.warn("Screenshot dropped \u2014 could not compress under wire budget"));let zi=Dn(),Te={id:$n(),projectId:t.projectId,category:l,...I?{userCategory:I}:{},description:ue,userIntent:y,environment:zi,consoleLogs:Ne,networkLogs:Ue,performanceMetrics:i.capture?.performance===false?void 0:x?.getMetrics(),timeline:b.getEntries({consoleLogs:Ne,networkLogs:Ue}),screenshotDataUrl:Ki??void 0,selectedElement:G??void 0,...C?{replayEvents:C.flush()}:{},metadata:{...F,...R?{user:R}:{},...B?.release?{sentryRelease:B.release}:{}},sessionId:bt(),reporterToken:te(r),...Z?{fingerprintHash:Z}:{},appVersion:lu(i,zi),sdkPackage:Ye,sdkVersion:we,proactiveTrigger:re??void 0,...br.length>0?{breadcrumbs:br}:{},...Wi?{tags:Wi}:{},...Vi?{sentryContext:Vi}:{},sentryEventId:B?.eventId,sentryReplayId:B?.replayId,createdAt:new Date().toISOString()};if(X.add({category:"lifecycle",level:"info",message:`Mushi report submitting (${l})`,data:{reportId:Te.id,category:l}}),t.integrations?.custom){let q={addMetadata(be,dn){Te.metadata[be]=dn;},setCategory(be){Te.category=be;},setDescription(be){Te.description=be;}};t.integrations.custom(q);}let W=Te,Gi=t.beforeSend??t.beforeSendFeedback;if(Gi)try{let q=await Promise.race([Promise.resolve(Gi(Te)),new Promise(be=>setTimeout(()=>be(Te),2e3))]);if(q===null){o.info("Report dropped by beforeSend hook",{reportId:Te.id});return}W=q;}catch(q){o.warn("beforeSend hook threw \u2014 sending unmodified report",{error:q instanceof Error?q.message:String(q)});}if(J("report:submitted",{reportId:W.id}),typeof navigator<"u"&&!navigator.onLine)return await h.enqueue(W),o.info("Offline \u2014 report queued",{reportId:W.id}),J("report:queued",{reportId:W.id}),{reportId:null,queuedOffline:true,failureKind:"offline"};let V=await u.submitReport(W);if(!V.ok&&V.error?.code==="PAYLOAD_TOO_LARGE"&&(Array.isArray(W.replayEvents)&&W.replayEvents.length>0&&(o.warn("Report too large \u2014 dropping replay buffer and retrying",{reportId:W.id}),W={...W,replayEvents:void 0},V=await u.submitReport(W)),!V.ok&&V.error?.code==="PAYLOAD_TOO_LARGE"&&W.screenshotDataUrl&&(o.warn("Report still too large \u2014 dropping screenshot and retrying",{reportId:W.id}),Er=true,W={...W,screenshotDataUrl:void 0},V=await u.submitReport(W))),V.ok){if(o.info("Report sent",{reportId:V.data?.reportId}),J("report:sent",{reportId:V.data?.reportId}),ni(r),Nt(),V.data?.cursorAgentId){let q=V.data;J("report:dispatched",{reportId:q.reportId,agentId:q.cursorAgentId,fixId:q.fixId});}X.add({category:"lifecycle",level:"info",message:`Mushi report sent (${V.data?.reportId??Te.id})`}),Ft({action:"report_submit",metadata:{category:l,reportId:V.data?.reportId??Te.id}});try{t.sentry&&V.data?.reportId&&Mi(V.data.reportId);}catch{}}else {if(V.error?.code==="PAYLOAD_TOO_LARGE"||V.error?.code==="SERIALIZE_FAILED")return o.warn("Report exceeds size limit after degradation \u2014 dropping",{reportId:W.id,error:V.error}),J("report:failed",{reportId:W.id,error:V.error}),X.add({category:"lifecycle",level:"error",message:`Mushi report dropped \u2014 payload too large (${W.id})`}),O=null,G=null,re=null,{reportId:null,queuedOffline:false,failureKind:"permanent",screenshotDropped:Er};{let q=V.error?.code??"",be=q==="HTTP_429"||q.includes("RATE_LIMIT"),dn=q==="HTTP_401"||q.includes("UNAUTHORIZED")||q.includes("INVALID_API_KEY")||q.includes("MISSING_API_KEY"),Eu=q==="HTTP_403"||q.includes("QUOTA")||q.includes("FORBIDDEN")||q==="feature_not_in_plan";if(dn||Eu)return o.warn("Report rejected \u2014 credentials/quota",{reportId:W.id,error:V.error}),J("report:failed",{reportId:W.id,error:V.error}),O=null,G=null,re=null,{reportId:null,queuedOffline:false,failureKind:"quota"};if(be)return o.warn("Report rate-limited \u2014 queued for retry",{reportId:W.id,error:V.error}),await h.enqueue(W),J("report:failed",{reportId:W.id,error:V.error}),O=null,G=null,re=null,{reportId:null,queuedOffline:true,failureKind:"rate_limited"};o.warn("Report failed, queuing for retry",{reportId:W.id,error:V.error}),await h.enqueue(W),J("report:failed",{reportId:W.id,error:V.error}),X.add({category:"lifecycle",level:"warning",message:`Mushi report queued for retry (${W.id})`});}}return O=null,G=null,re=null,V?.ok?{reportId:V.data?.reportId??Te.id,queuedOffline:false,screenshotDropped:Er}:{reportId:null,queuedOffline:true,failureKind:"retrying"}}let cn={report(l){v.open(l);},on(l,c){return me.has(l)||me.set(l,new Set),me.get(l).add(c),()=>me.get(l)?.delete(c)},setUser(l){R=l;},setMetadata(l,c){F[l]=c;},setScreen(l){b.setScreen(l);},isOpen(){return v.getIsOpen()},open(){v.open();},openWith(l){v.open({category:l});},show(){v.showTrigger();},hide(){v.hideTrigger();},attachTo(l,c){return v.attachTo(l,c)},setTrigger(l){v.setTrigger(l);},openReporter(){v.openReporter();},close(){v.close();},updateConfig(l){ln(l);},diagnose(){return zp({apiEndpoint:Pi(i),widgetMounted:v.getIsMounted(),runtimeConfigLoaded:_e,captureScreenshotAvailable:f!==null,captureNetworkIntercepting:M!==null,widgetDiagnostics:v.getWidgetDiagnostics()})},destroy(){Ni?.destroy(),qt?.reset(),hs(),v.destroy(),L?.destroy(),M?.destroy(),x?.destroy(),g?.deactivate(),Na(),Xe?.(),Xe=null,m?.destroy(),m=null,b.destroy(),Aa(),C?.destroy(),C=null,h.stopAutoSync(),z(),d?.(),d=null,ns(),X.clear(),me.clear(),He=null,o.debug("Destroyed");},async captureEvent(l){if(!k.tryConsume())return o.warn("captureEvent throttled \u2014 rate limit exceeded"),null;let c=S.scrub(p.truncate(l.description)),y=l.category??"bug",I=t.sentry?Ii(t.sentry):void 0,$=T(X.getAll()),N=w(Object.keys(U).length===0&&!l.tags?void 0:{...U,...l.tags??{}}),Q=I?{...I,...I.breadcrumbs?{breadcrumbs:T(I.breadcrumbs)}:{},...I.tags?{tags:w(I.tags)}:{}}:void 0,ue=Dn(),B={id:$n(),projectId:t.projectId,category:y,description:c,environment:ue,timeline:b.getEntries(),metadata:{...l.metadata??{},...R?{user:R}:{},...l.error?{error:l.error}:{},...l.severity?{severity:l.severity}:{},...l.component?{component:l.component}:{},...l.source?{source:l.source}:{source:"captureEvent"}},...$.length>0?{breadcrumbs:$}:{},...N&&Object.keys(N).length>0?{tags:N}:{},...Q?{sentryContext:Q}:{},sessionId:bt(),reporterToken:te(r),appVersion:lu(i,ue),sdkPackage:Ye,sdkVersion:we,sentryEventId:I?.eventId,sentryReplayId:I?.replayId,createdAt:new Date().toISOString()},Z=B;if(i.beforeSendFeedback)try{let Ue=await Promise.race([Promise.resolve(i.beforeSendFeedback(B)),new Promise(br=>setTimeout(()=>br(B),2e3))]);if(Ue===null)return o.info("captureEvent dropped by beforeSendFeedback hook",{reportId:B.id}),null;Z=Ue;}catch(Ue){o.warn("captureEvent beforeSendFeedback threw \u2014 sending unmodified report",{error:Ue instanceof Error?Ue.message:String(Ue)});}if(J("report:submitted",{reportId:Z.id}),typeof navigator<"u"&&!navigator.onLine)return await h.enqueue(Z),J("report:queued",{reportId:Z.id}),null;let Ne=await u.submitReport(Z);if(Ne.ok){J("report:sent",{reportId:Ne.data?.reportId});try{t.sentry&&Ne.data?.reportId&&Mi(Ne.data.reportId);}catch{}return Ne.data?.reportId??null}return await h.enqueue(Z),J("report:failed",{reportId:Z.id,error:Ne.error}),null},async captureException(l,c){let y=bs(l),I=typeof c?.metadata?.filename=="string"?c.metadata.filename:void 0;if(or({message:y.message,filename:I,ignoreErrors:i.ignoreErrors,denyUrls:i.denyUrls,allowUrls:i.allowUrls}))return null;X.add({category:"lifecycle",level:"error",message:`Mushi.captureException(${y.name}): ${y.message}`,...y.stack?{data:{stack:y.stack.slice(0,500)}}:{}});let $=c?.description?.trim()||`${y.name}: ${y.message}`||"Uncaught exception";return cn.captureEvent({description:$,category:c?.category??"bug",severity:c?.severity??"high",...c?.component?{component:c.component}:{},...c?.tags?{tags:c.tags}:{},source:c?.source??"captureException",error:{name:y.name,message:y.message,...y.stack?{stack:y.stack}:{}},metadata:{...c?.metadata??{},...y.cause?{cause:y.cause}:{}}})},identify(l,c){let y=`${l}::${c?JSON.stringify(c):""}`;if(y!==H){if(H=y,R={id:l,...c?.email?{email:c.email}:{},...c?.name?{name:c.name}:{}},v.setIdentifiedUser(R.name||R.email?{name:R.name,email:R.email}:null),st(),c)for(let[I,$]of Object.entries(c))I!=="email"&&I!=="name"&&(F[`user.${I}`]=$);X.add({category:"lifecycle",level:"info",message:`Mushi.identify(${l})`}),ds(l,c??null),Oi(l,c?{email:c.email,name:c.name,provider:c.provider}:void 0);}},identifyWithToken(l){if(a=l&&typeof l=="string"?l:null,a){let c=ks(a);if(c?.sub){if(R?.id===c.sub){X.add({category:"lifecycle",level:"info",message:"Mushi.identifyWithToken() refreshed"});return}rs(c.sub),R={id:c.sub,...c.email?{email:c.email}:{},...c.name?{name:c.name}:{}},v.setIdentifiedUser(R.name||R.email?{name:R.name,email:R.email}:null),Oi(R.id,{email:R.email,name:R.name});}X.add({category:"lifecycle",level:"info",message:"Mushi.identifyWithToken()"});}else R=null,H=null,v.setIdentifiedUser(null),X.add({category:"lifecycle",level:"info",message:"Mushi.identifyWithToken(null)"});},publishPageContext(l){s=l&&l.route?l:null;},openAssistant(){v.openAssistantTab();},addBreadcrumb(l){X.add(l);},getBreadcrumbs(){return X.getAll()},setTag(l,c){typeof l!="string"||l.length===0||(U[l]=c);},setTags(l){if(!(!l||typeof l!="object"))for(let[c,y]of Object.entries(l))typeof c=="string"&&c.length>0&&(U[c]=y);},clearTag(l){if(typeof l=="string"&&l.length>0){delete U[l];return}for(let c of Object.keys(U))delete U[c];},async getReputation(){if(!R?.id)return null;let l=await u.getMyPoints(R.id);return l.ok?{totalPoints:l.data.total_points??0,points30d:l.data.points_30d??0,reputation:1,confirmedBugs:0,totalReports:0}:null},async getTier(){return R?.id?Ba(R.id):null},recordActivity(l,c){i.rewards?.enabled&&Ft({action:l,metadata:c});},track(l,c){return Ct(l,c)},setConsent(l){cs(l);},getAnonymousId(){return us()},pulseTrigger(){v.pulseTrigger?.();},async listMyReports(){let l=await u.listReporterReports(te(r));return l.ok?l.data?.reports??[]:[]},async listMyComments(l){let c=await u.listReporterComments(l,te(r));return c.ok?c.data?.comments??[]:[]},async replyToReport(l,c){let y=await u.replyToReporterReport(l,te(r),c);return y.ok?y.data?.comment??null:null},async submitFeedbackSignal(l,c,y){let I=await u.replyToReporterReport(l,te(r),y??"",c);return I.ok?I.data?.feedback??null:null},async reopenReport(l,c){let y=await u.reopenReporterReport(l,te(r),c);return y.ok?y.data?.outcome??null:null},openMyReports(){v.recorderOpenMyReports();},getReporterUpdates:ge,async markReportRead(l){let c=await ie.markReportRead(l,n());return c.ok?c.data?.unread_total??0:null},onReporterUpdate(l){return he.add(l),ge(),()=>{he.delete(l);}},async getNotificationPrefs(){let l=await ie.getPrefs(n());return l.ok?l.data??null:null},setNotificationPrefs:l=>ie.setPrefs(n(),l),async subscribeReporterPush(){let l=i.notifications?.webPush,c=ot?.vapidPublicKey??null;if(l&&!c){let y=await u.getSdkConfig();c=y.ok?y.data?.reporter?.vapidPublicKey??null:null;}return ka(ie,n(),l?l.serviceWorkerPath:null,c)},async getHallOfFame(l=20){let c=await u.getHallOfFame(l);return c.ok?c.data?.data??[]:[]}};if(typeof globalThis<"u"&&(e.debug??false)&&Ca(v),typeof window<"u"&&typeof localStorage<"u"){let l="mushi:last-run",c=null;try{let y=localStorage.getItem(l);c=y===null?null:y==="unfinished",localStorage.setItem(l,"unfinished");}catch{c=null;}try{window.addEventListener("pagehide",()=>{try{localStorage.setItem(l,"clean");}catch{}$o(),Oo();});}catch{}if(typeof e.onCrashedLastRun=="function")try{e.onCrashedLastRun(c);}catch(y){o.warn("onCrashedLastRun hook threw",{error:y instanceof Error?y.message:String(y)});}}let qi={on:()=>{},onReporterUpdate:()=>{},isOpen:false,getBreadcrumbs:[],captureEvent:null,captureException:null,getReputation:null,getTier:null,listMyReports:[],listMyComments:[],getHallOfFame:[],replyToReport:null,submitFeedbackSignal:null,reopenReport:null},ji=(l,c)=>{let y=c instanceof Error?c.message:String(c);o.debug(`Mushi.${l}() failed (swallowed)`,{error:y});try{X.add({category:"custom",level:"warning",message:`mushi.${l}() threw`,data:{error:y}});}catch{}};return (l=>new Proxy(l,{get(c,y,I){let $=Reflect.get(c,y,I);if(typeof $!="function")return $;let N=String(y),Q=()=>N==="diagnose"?Di():N in qi?qi[N]:void 0;return (...ue)=>{try{let B=$.apply(c,ue);return B&&typeof B.then=="function"?B.catch(Z=>(ji(N,Z),Q())):B}catch(B){return ji(N,B),Q()}}}}))(cn)}function Pi(t){return t.apiEndpoint??Yt}function Kp(t){return t.runtimeConfig!==false}async function zp(t){let e=await Gp(t.apiEndpoint);return {apiEndpointReachable:e.reachable,cspAllowsEndpoint:e.cspAllowed,widgetMounted:t.widgetMounted,shadowDomAvailable:typeof HTMLElement<"u"&&typeof HTMLElement.prototype.attachShadow=="function",dialogSupported:typeof HTMLDialogElement<"u",runtimeConfigLoaded:t.runtimeConfigLoaded,captureScreenshotAvailable:t.captureScreenshotAvailable,captureNetworkIntercepting:t.captureNetworkIntercepting,sdkVersion:we,widgetHostPointerSafe:t.widgetDiagnostics?.widgetHostPointerSafe??false,widgetHostBounds:t.widgetDiagnostics?.widgetHostBounds??null,widgetSuppressed:t.widgetDiagnostics?.widgetSuppressed??false,bannerRendered:t.widgetDiagnostics?.bannerRendered??false}}async function Di(){return {apiEndpointReachable:false,cspAllowsEndpoint:false,widgetMounted:false,shadowDomAvailable:typeof HTMLElement<"u"&&typeof HTMLElement.prototype.attachShadow=="function",dialogSupported:typeof HTMLDialogElement<"u",runtimeConfigLoaded:false,captureScreenshotAvailable:false,captureNetworkIntercepting:false,sdkVersion:we,widgetHostPointerSafe:false,widgetHostBounds:null,widgetSuppressed:false,bannerRendered:false}}async function Gp(t){if(typeof fetch>"u")return {reachable:false,cspAllowed:false};let e=typeof AbortController<"u"?new AbortController:null,r=e?setTimeout(()=>e.abort(),3e3):null;try{return {reachable:(await fetch(`${t.replace(/\/$/,"")}/health`,{method:"GET",cache:"no-store",...e?{signal:e.signal}:{},[ir]:"diagnose"})).ok,cspAllowed:!0}}catch{return {reachable:false,cspAllowed:false}}finally{r&&clearTimeout(r);}}function $i(t){return `mushi:sdk-config:${t}`}function hu(t){return `mushi:sdk-version:${t}`}function Yp(t){if(typeof localStorage>"u")return null;try{let e=localStorage.getItem($i(t));return e?JSON.parse(e).config??null:null}catch{return null}}function Xp(t,e){if(!(typeof localStorage>"u"))try{localStorage.setItem($i(t),JSON.stringify({cachedAt:Date.now(),config:e}));}catch{}}function Jp(t){if(!(typeof localStorage>"u"))try{localStorage.removeItem($i(t));}catch{}}function Qp(t){if(typeof localStorage>"u")return null;try{let e=localStorage.getItem(hu(t));if(!e)return null;let r=JSON.parse(e);return !r.data||!r.cachedAt||Date.now()-r.cachedAt>864e5?null:r.data}catch{return null}}function Zp(t,e){if(!(typeof localStorage>"u"))try{localStorage.setItem(hu(t),JSON.stringify({cachedAt:Date.now(),data:e}));}catch{}}function eh(t,e){let r=cu(t),n=cu(e);for(let i=0;i<Math.max(r.length,n.length);i++){let o=r[i]??0,a=n[i]??0;if(o<a)return true;if(o>a)return false}return false}function cu(t){return t.split(/[.-]/).map(e=>Number.parseInt(e,10)).filter(e=>Number.isFinite(e))}function du(){return {report:()=>{},on:()=>()=>{},setUser:()=>{},setMetadata:()=>{},setScreen:()=>{},isOpen:()=>false,open:()=>{},close:()=>{},updateConfig:()=>{},diagnose:Di,openWith:()=>{},show:()=>{},hide:()=>{},attachTo:()=>()=>{},setTrigger:()=>{},openReporter:()=>{},destroy:()=>{He=null;},captureEvent:async()=>null,captureException:async()=>null,identify:()=>{},identifyWithToken:()=>{},publishPageContext:()=>{},openAssistant:()=>{},addBreadcrumb:()=>{},getBreadcrumbs:()=>[],setTag:()=>{},setTags:()=>{},clearTag:()=>{},getReputation:async()=>null,getTier:async()=>null,recordActivity:()=>{},track:()=>false,setConsent:()=>{},getAnonymousId:()=>null,pulseTrigger:()=>{},listMyReports:async()=>[],listMyComments:async()=>[],replyToReport:async()=>null,submitFeedbackSignal:async()=>null,reopenReport:async()=>null,openMyReports:()=>{},getHallOfFame:async()=>[],getReporterUpdates:async()=>null,markReportRead:async()=>null,onReporterUpdate:()=>()=>{},getNotificationPrefs:async()=>null,setNotificationPrefs:async()=>({ok:false}),subscribeReporterPush:async()=>({ok:false,reason:"off"})}}function th(t){if(typeof window>"u")return ()=>{};let e=[];try{let r=i=>{t.add({category:"navigation",level:"info",message:`${i}: ${window.location.pathname}`,data:{url:window.location.href,kind:i}});},n=Me({onPush:()=>r("pushState"),onReplace:()=>r("replaceState"),onPop:()=>r("popstate")});e.push(n);}catch{}try{let r=console.error,n=console.warn,i=function(...a){try{t.add({category:"console",level:"error",message:a.map(pu).join(" ")});}catch{}return r.apply(this,a)},o=function(...a){try{t.add({category:"console",level:"warning",message:a.map(pu).join(" ")});}catch{}return n.apply(this,a)};console.error=i,console.warn=o,e.push(()=>{console.error===i&&(console.error=r),console.warn===o&&(console.warn=n);});}catch{}try{let r=n=>{try{let i=n.target;if(!(i instanceof Element))return;let o=i,a=0;for(;o&&a<10;){let s=o.getAttribute("data-testid");if(s){let u=(o.textContent??"").trim().slice(0,80);t.add({category:"ui.click",level:"info",message:`clicked ${s}${u?` \u2014 ${u}`:""}`,data:{testid:s,tag:o.tagName.toLowerCase()}});return}o=o.parentElement,a++;}}catch{}};document.addEventListener("click",r,{passive:!0,capture:!0}),e.push(()=>document.removeEventListener("click",r,!0));}catch{}return ()=>{for(let r of e)try{r();}catch{}}}function pu(t){try{if(t instanceof Error)return `${t.name}: ${t.message}`;if(typeof t=="object"&&t!==null){let r=JSON.stringify(t);return r.length>200?`${r.slice(0,200)}\u2026`:r}let e=String(t);return e.length>200?`${e.slice(0,200)}\u2026`:e}catch{return `[${typeof t}]`}}function rh(){let t=document.currentScript;if(t&&t.dataset&&t.dataset.project)return t;let e=Array.from(document.querySelectorAll("script[data-project][data-key]"));return e.length>0?e[e.length-1]:null}function nh(t){let e=t.project?.trim(),r=t.key?.trim();if(!e||!r)return null;let n={};t.trigger&&(n.trigger=t.trigger),t.theme&&(n.theme=t.theme),t.position&&(n.position=t.position),t.triggerText&&(n.triggerText=t.triggerText);let i=t.bannerVariant,o=t.bannerPosition;(i||o)&&(n.bannerConfig={...i?{variant:i}:{},...o?{position:o}:{}});let a={projectId:e,apiKey:r};return t.endpoint&&(a.apiEndpoint=t.endpoint),t.debug==="true"&&(a.debug=true),Object.keys(n).length>0&&(a.widget=n),a}function ih(){if(typeof document>"u"||typeof window>"u")return;let t=window;if(t.__mushiLoaderInit)return;let e=rh();if(!e)return;let r=nh(e.dataset);if(r){t.__mushiLoaderInit=true;try{an.init(r);}catch{}}}ih();
2354
96
  })();