@mushi-mushi/web 1.37.0 → 1.38.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,8 +1,19 @@
1
- (function(){'use strict';var Vu=Object.defineProperty;var $e=(t,e)=>()=>(t&&(e=t(t=0)),e);var kt=(t,e)=>{for(var r in e)Vu(t,r,{get:e[r],enumerable:true});};function zu(t){return t instanceof Uint8Array||ArrayBuffer.isView(t)&&t.constructor.name==="Uint8Array"&&"BYTES_PER_ELEMENT"in t&&t.BYTES_PER_ELEMENT===1}function po(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 Yt(t,e,r=""){let n=zu(t),i=t?.length,o=e!==void 0;if(!n||o){let a=r&&`"${r}" `,s="",u=n?`length=${i}`:`type=${typeof t}`,p=a+"expected Uint8Array"+s+", got "+u;throw n?new RangeError(p):new TypeError(p)}return t}function ho(t){if(typeof t!="function"||typeof t.create!="function")throw new TypeError("Hash must wrapped by utils.createHasher");if(po(t.outputLen),po(t.blockLen),t.outputLen<1)throw new Error('"outputLen" must be >= 1');if(t.blockLen<1)throw new Error('"blockLen" must be >= 1')}function _t(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 xr(t,e){Yt(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 Ye(...t){for(let e=0;e<t.length;e++)t[e].fill(0);}function Rr(t){return new DataView(t.buffer,t.byteOffset,t.byteLength)}function Le(t,e){return t<<32-e|t>>>e}function ct(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 dt,kr=$e(()=>{dt=t=>({oid:Uint8Array.from([6,9,96,134,72,1,101,3,4,2,t])});});function fo(t,e,r){return t&e^~t&r}function mo(t,e,r){return t&e^t&r^e&r}var Xt,Xe,Je,ae,ue,go=$e(()=>{kr();Xt=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=Rr(this.buffer);}update(e){_t(this),Yt(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=Rr(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){_t(this),xr(e,this),this.finished=true;let{buffer:r,view:n,blockLen:i,isLE:o}=this,{pos:a}=this;r[a++]=128,Ye(this.buffer.subarray(a)),this.padOffset>i-a&&(this.process(n,0),a=0);for(let f=a;f<i;f++)r[f]=0;n.setBigUint64(i-8,BigInt(this.length*8),o),this.process(n,0);let s=Rr(e),u=this.outputLen;if(u%4)throw new Error("_sha2: outputLen must be aligned to 32bit");let p=u/4,d=this.get();if(p>d.length)throw new Error("_sha2: outputLen bigger than state");for(let f=0;f<p;f++)s.setUint32(4*f,d[f],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()}},Xe=Uint32Array.from([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),Je=Uint32Array.from([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]),ae=Uint32Array.from([3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]),ue=Uint32Array.from([1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209]);});function Gu(t,e=false){return e?{h:Number(t&_r),l:Number(t>>bo&_r)}:{h:Number(t>>bo&_r)|0,l:Number(t&_r)|0}}function Eo(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}=Gu(t[o],e);[n[o],i[o]]=[a,s];}return [n,i]}function He(t,e,r,n){let i=(e>>>0)+(n>>>0);return {h:t+r+(i/2**32|0)|0,l:i|0}}var _r,bo,vn,wn,pt,ht,Jt,Zt,yo,vo,wo,So,xo,Ro,ko=$e(()=>{_r=BigInt(4294967295),bo=BigInt(32);vn=(t,e,r)=>t>>>r,wn=(t,e,r)=>t<<32-r|e>>>r,pt=(t,e,r)=>t>>>r|e<<32-r,ht=(t,e,r)=>t<<32-r|e>>>r,Jt=(t,e,r)=>t<<64-r|e>>>r-32,Zt=(t,e,r)=>t>>>r-32|e<<64-r;yo=(t,e,r)=>(t>>>0)+(e>>>0)+(r>>>0),vo=(t,e,r,n)=>e+r+n+(t/2**32|0)|0,wo=(t,e,r,n)=>(t>>>0)+(e>>>0)+(r>>>0)+(n>>>0),So=(t,e,r,n,i)=>e+r+n+i+(t/2**32|0)|0,xo=(t,e,r,n,i)=>(t>>>0)+(e>>>0)+(r>>>0)+(n>>>0)+(i>>>0),Ro=(t,e,r,n,i,o)=>e+r+n+i+o+(t/2**32|0)|0;});var Sn={};kt(Sn,{_SHA224:()=>Ar,_SHA256:()=>Tr,_SHA384:()=>Mr,_SHA512:()=>Ir,_SHA512_224:()=>Lr,_SHA512_256:()=>Dr,sha224:()=>el,sha256:()=>Qu,sha384:()=>rl,sha512:()=>tl,sha512_224:()=>il,sha512_256:()=>nl});var Xu,rt,Cr,Tr,Ar,_o,Ju,Zu,nt,it,Ct,Ir,Mr,le,ce,Lr,Dr,Qu,el,tl,rl,nl,il,xn=$e(()=>{go();ko();kr();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]),rt=new Uint32Array(64),Cr=class extends Xt{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 f=0;f<16;f++,r+=4)rt[f]=e.getUint32(r,false);for(let f=16;f<64;f++){let x=rt[f-15],v=rt[f-2],L=Le(x,7)^Le(x,18)^x>>>3,E=Le(v,17)^Le(v,19)^v>>>10;rt[f]=E+rt[f-7]+L+rt[f-16]|0;}let{A:n,B:i,C:o,D:a,E:s,F:u,G:p,H:d}=this;for(let f=0;f<64;f++){let x=Le(s,6)^Le(s,11)^Le(s,25),v=d+x+fo(s,u,p)+Xu[f]+rt[f]|0,E=(Le(n,2)^Le(n,13)^Le(n,22))+mo(n,i,o)|0;d=p,p=u,u=s,s=a+v|0,a=o,o=i,i=n,n=v+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,p=p+this.G|0,d=d+this.H|0,this.set(n,i,o,a,s,u,p,d);}roundClean(){Ye(rt);}destroy(){this.destroyed=true,this.set(0,0,0,0,0,0,0,0),Ye(this.buffer);}},Tr=class extends Cr{A=Xe[0]|0;B=Xe[1]|0;C=Xe[2]|0;D=Xe[3]|0;E=Xe[4]|0;F=Xe[5]|0;G=Xe[6]|0;H=Xe[7]|0;constructor(){super(32);}},Ar=class extends Cr{A=Je[0]|0;B=Je[1]|0;C=Je[2]|0;D=Je[3]|0;E=Je[4]|0;F=Je[5]|0;G=Je[6]|0;H=Je[7]|0;constructor(){super(28);}},_o=Eo(["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))),Ju=_o[0],Zu=_o[1],nt=new Uint32Array(80),it=new Uint32Array(80),Ct=class extends Xt{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:p,El:d,Fh:f,Fl:x,Gh:v,Gl:L,Hh:E,Hl:w}=this;return [e,r,n,i,o,a,s,u,p,d,f,x,v,L,E,w]}set(e,r,n,i,o,a,s,u,p,d,f,x,v,L,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=p|0,this.El=d|0,this.Fh=f|0,this.Fl=x|0,this.Gh=v|0,this.Gl=L|0,this.Hh=E|0,this.Hl=w|0;}process(e,r){for(let R=0;R<16;R++,r+=4)nt[R]=e.getUint32(r),it[R]=e.getUint32(r+=4);for(let R=16;R<80;R++){let m=nt[R-15]|0,b=it[R-15]|0,h=pt(m,b,1)^pt(m,b,8)^vn(m,b,7),g=ht(m,b,1)^ht(m,b,8)^wn(m,b,7),k=nt[R-2]|0,M=it[R-2]|0,O=pt(k,M,19)^Jt(k,M,61)^vn(k,M,6),q=ht(k,M,19)^Zt(k,M,61)^wn(k,M,6),Q=wo(g,q,it[R-7],it[R-16]),ee=So(Q,h,O,nt[R-7],nt[R-16]);nt[R]=ee|0,it[R]=Q|0;}let{Ah:n,Al:i,Bh:o,Bl:a,Ch:s,Cl:u,Dh:p,Dl:d,Eh:f,El:x,Fh:v,Fl:L,Gh:E,Gl:w,Hh:I,Hl:P}=this;for(let R=0;R<80;R++){let m=pt(f,x,14)^pt(f,x,18)^Jt(f,x,41),b=ht(f,x,14)^ht(f,x,18)^Zt(f,x,41),h=f&v^~f&E,g=x&L^~x&w,k=xo(P,b,g,Zu[R],it[R]),M=Ro(k,I,m,h,Ju[R],nt[R]),O=k|0,q=pt(n,i,28)^Jt(n,i,34)^Jt(n,i,39),Q=ht(n,i,28)^Zt(n,i,34)^Zt(n,i,39),ee=n&o^n&s^o&s,$=i&a^i&u^a&u;I=E|0,P=w|0,E=v|0,w=L|0,v=f|0,L=x|0,{h:f,l:x}=He(p|0,d|0,M|0,O|0),p=s|0,d=u|0,s=o|0,u=a|0,o=n|0,a=i|0;let ve=yo(O,Q,$);n=vo(ve,M,q,ee),i=ve|0;}(({h:n,l:i}=He(this.Ah|0,this.Al|0,n|0,i|0))),{h:o,l:a}=He(this.Bh|0,this.Bl|0,o|0,a|0),{h:s,l:u}=He(this.Ch|0,this.Cl|0,s|0,u|0),{h:p,l:d}=He(this.Dh|0,this.Dl|0,p|0,d|0),{h:f,l:x}=He(this.Eh|0,this.El|0,f|0,x|0),{h:v,l:L}=He(this.Fh|0,this.Fl|0,v|0,L|0),{h:E,l:w}=He(this.Gh|0,this.Gl|0,E|0,w|0),{h:I,l:P}=He(this.Hh|0,this.Hl|0,I|0,P|0),this.set(n,i,o,a,s,u,p,d,f,x,v,L,E,w,I,P);}roundClean(){Ye(nt,it);}destroy(){this.destroyed=true,Ye(this.buffer),this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0);}},Ir=class extends Ct{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(64);}},Mr=class extends Ct{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(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]),Lr=class extends Ct{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);}},Dr=class extends Ct{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);}},Qu=ct(()=>new Tr,dt(1)),el=ct(()=>new Ar,dt(4)),tl=ct(()=>new Ir,dt(3)),rl=ct(()=>new Mr,dt(2)),nl=ct(()=>new Dr,dt(6)),il=ct(()=>new Lr,dt(5));});var Co={};kt(Co,{_HMAC:()=>Qt,hmac:()=>ol});var Qt,ol,To=$e(()=>{kr();Qt=class{oHash;iHash;blockLen;outputLen;canXOF=false;finished=false;destroyed=false;constructor(e,r){if(ho(e),Yt(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),Ye(i);}update(e){return _t(this),this.iHash.update(e),this}digestInto(e){_t(this),xr(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();}},ol=(()=>{let t=((e,r,n)=>new Qt(e,r).update(n).digest());return t.create=(e,r)=>new Qt(e,r),t})();});function qd(t){let e=(t??"").toLowerCase().split(/[-_]/)[0];return Ld.includes(e)?e:"en"}function St(t="en"){return Ud[qd(t)]}function cr(t,e={}){return t.replace(/\{(\w+)\}/g,(r,n)=>{let i=e[n];return i==null?"":String(i)})}function jd(t){return Md.includes(t)}function Wd(t){let e=(t.user_category??"").trim().toLowerCase().replace(/[\s-]+/g,"_");return e==="feature"||e==="feature_request"||e==="idea"}function $t(t,e="en"){let r=St(e),n=(t.status??"").trim(),i=jd(n)?Dd[n]:"received",o=t.fixed_in_version?.trim()||null;(n==="fixed"||n==="resolved")&&o&&(i="fixed_version"),(t.awaiting_reporter||t.awaiting_reporter_at)&&ba.has(i)&&(i="waiting");let s=Wd(t),u=r.status[i],p=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 d=t.closed_reason??null;i==="closed"&&(p=d&&d!=="spam"&&d in r.closedReason?r.closedReason[d]:r.closedReason.none);let f=t.group_bucket??"none",x=ba.has(i)||i==="waiting"?f==="few"?r.others.few:f==="many"?r.others.many:null:null;return {key:i,label:cr(u,{version:o}),tone:Pd[i],detail:cr(p,{version:o}),canVerify:i==="fixed_next"||i==="fixed_version"||i==="fixed",othersNote:x,hidden:i==="closed"&&d==="spam"}}function Kd(t,e={},r="en"){let n=St(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:cr(n.timeline[t],{text:e.text,version:e.version})}function ri(t){return t.kind==="comment"||t.kind==="reporter_comment"||t.kind==="info_requested"}function Ea(t,e="en"){return t.custom||!Bd.includes(t.kind)?t.text:Kd(t.kind,{text:t.body??null,version:t.version??null,closed_reason:t.closed_reason??null},e)}function ya(t,e="en"){let r=St(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 va(t){return /^[^\s@]+@[^\s@]+\.[^\s@]{2,}$/.test(t.trim())}var Md,Ld,Dd,Pd,Bd,Fd,Od,$d,Hd,Nd,Ud,ba,Zr=$e(()=>{Md=["new","pending","submitted","queued","classified","grouped","fixing","fixed","dismissed","triaged","in_progress","resolved","verified","reopened"],Ld=["en","ja","es","th","zh"],Dd={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"},Pd={received:"neutral",reviewing:"info",reviewing_again:"info",fixing:"progress",verified:"success-muted",fixed_next:"success",fixed_version:"success",fixed:"success",closed:"muted",waiting:"attention"},Bd=["received","reviewing","duplicate_linked","info_requested","comment","reporter_comment","fix_started","fixed","released","verified","reopened","closed"],Fd={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"}},Od={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"}},$d={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"}},Hd={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"}},Nd={status:{received:"\u5DF2\u6536\u5230",reviewing:"\u5904\u7406\u4E2D",reviewing_again:"\u91CD\u65B0\u67E5\u770B\u4E2D",fixing:"\u4FEE\u590D\u4E2D",verified:"\u5DF2\u786E\u8BA4\u4FEE\u590D",fixed_next:"\u5DF2\u4FEE\u590D \u2014 \u4E0B\u6B21\u66F4\u65B0\u4E0A\u7EBF",fixed_version:"\u5DF2\u5728 v{version} \u4FEE\u590D",fixed:"\u5DF2\u4FEE\u590D",closed:"\u5DF2\u5173\u95ED",waiting:"\u7B49\u5F85\u4F60\u7684\u56DE\u590D"},detail:{received:"\u6211\u4EEC\u5DF2\u6536\u5230\u4F60\u7684\u53CD\u9988\u3002",reviewing:"\u5F00\u53D1\u8005\u5DF2\u628A\u5B83\u52A0\u5165\u5F85\u5904\u7406\u5217\u8868\u3002",reviewing_again:"\u8C22\u8C22\uFF0C\u6211\u4EEC\u6B63\u5728\u91CD\u65B0\u67E5\u770B\u3002",fixing:"\u6B63\u5728\u4FEE\u590D\u3002",verified:"\u611F\u8C22\u4F60\u786E\u8BA4\u4FEE\u590D\uFF01",fixed_next:"\u4F1A\u5728\u4E0B\u4E00\u4E2A\u7248\u672C\u4E2D\u4E0A\u7EBF\u3002",fixed_version:"\u8BF7\u66F4\u65B0\u5230 v{version}\u3002\u95EE\u9898\u89E3\u51B3\u4E86\u5417\uFF1F",fixed:"\u95EE\u9898\u89E3\u51B3\u4E86\u5417\uFF1F",closed:"\u5DF2\u5173\u95ED\u3002",waiting:"\u5F00\u53D1\u8005\u6709\u95EE\u9898\u60F3\u95EE\u4F60\uFF0C\u8BF7\u5728\u4E0B\u65B9\u56DE\u590D\u3002"},idea:{received:"\u8C22\u8C22\u4F60\u7684\u60F3\u6CD5",reviewing:"\u8003\u8651\u4E2D",fixing:"\u5F00\u53D1\u4E2D",shipped:"\u5DF2\u4E0A\u7EBF",shippedVersion:"\u5DF2\u5728 v{version} \u4E0A\u7EBF"},closedReason:{duplicate:"\u548C\u4E4B\u524D\u7684\u4E00\u6761\u53CD\u9988\u76F8\u540C\uFF0C\u6211\u4EEC\u4F1A\u5728\u90A3\u6761\u91CC\u901A\u77E5\u8FDB\u5C55\u3002",not_reproducible:"\u6211\u4EEC\u6CA1\u80FD\u590D\u73B0\u3002\u5982\u679C\u518D\u6B21\u53D1\u751F\uFF0C\u8BF7\u56DE\u590D\u3002",wont_fix:"\u6211\u4EEC\u51B3\u5B9A\u4E0D\u4FEE\u6539\u8FD9\u4E00\u70B9\u3002",working_as_intended:"\u8FD9\u662F\u9884\u671F\u7684\u884C\u4E3A\u3002",none:"\u5DF2\u5173\u95ED\u3002"},others:{few:"\u5305\u62EC\u4F60\u5728\u5185\uFF0C\u6709\u51E0\u4E2A\u4EBA\u53CD\u9988\u4E86\u8FD9\u4E2A\u95EE\u9898",many:"\u5F88\u591A\u4EBA\u53CD\u9988\u4E86\u8FD9\u4E2A\u95EE\u9898"},timeline:{received:"\u4F60\u63D0\u4EA4\u4E86\u53CD\u9988",reviewing:"\u5F00\u53D1\u8005\u6B63\u5728\u67E5\u770B",duplicate_linked:"\u548C\u5DF2\u6709\u53CD\u9988\u76F8\u540C\uFF0C\u6211\u4EEC\u4F1A\u5728\u90A3\u6761\u91CC\u901A\u77E5\u8FDB\u5C55",info_requested:"\u5F00\u53D1\u8005\u7684\u95EE\u9898\uFF1A{text}",reporter_comment:"\u4F60",fix_started:"\u6B63\u5728\u4FEE\u590D",fixed:"\u5DF2\u4FEE\u590D \u2014 \u4E0B\u6B21\u66F4\u65B0\u4E0A\u7EBF",released:"\u5DF2\u5728 v{version} \u53D1\u5E03 \u2014 \u8BF7\u66F4\u65B0",verified:"\u5DF2\u786E\u8BA4\u4FEE\u590D",reopened:"\u5DF2\u91CD\u65B0\u6253\u5F00"},categories:{bug:"\u9519\u8BEF",slow:"\u6162",visual:"\u663E\u793A\u95EE\u9898",confusing:"\u96BE\u4EE5\u7406\u89E3",idea:"\u60F3\u6CD5"},ui:{yes:"\u662F",notYet:"\u8FD8\u6CA1\u6709",empty:"\u8FD8\u6CA1\u6709\u53CD\u9988\u3002\u63D0\u4EA4\u540E\u4F1A\u5728\u8FD9\u91CC\u663E\u793A\u8FDB\u5C55\u3002",loadError:"\u65E0\u6CD5\u52A0\u8F7D\u66F4\u65B0",retry:"\u91CD\u8BD5",sending:"\u53D1\u9001\u4E2D\u2026",sent:"\u5DF2\u53D1\u9001",sendFailed:"\u53D1\u9001\u5931\u8D25",noReplies:"\u5F00\u53D1\u8005\u8FD8\u6CA1\u6709\u56DE\u590D\u3002",you:"\u4F60",developer:"\u5F00\u53D1\u8005",addWords:"\u8BF7\u518D\u591A\u5199\u51E0\u4E2A\u5B57",developerReplied:"\u5F00\u53D1\u8005\u56DE\u590D\uFF1A\u201C{text}\u201D",updates:"\u4F60\u7684\u53CD\u9988\u6709 {n} \u6761\u66F4\u65B0",receipt:"\u5DF2\u53D1\u9001\u3002\u6709\u8FDB\u5C55\u65F6\u4F1A\u5728\u8FD9\u91CC\u901A\u77E5\u4F60\u3002",trackIt:"\u67E5\u770B\u8FDB\u5C55",done:"\u5B8C\u6210",emailOptIn:"\u901A\u8FC7\u90AE\u4EF6\u63A5\u6536\u66F4\u65B0",emailPlaceholder:"you@example.com",emailSubmit:"\u7528\u90AE\u4EF6\u63A5\u6536",emailCheckInbox:"\u8BF7\u70B9\u51FB\u6536\u4EF6\u7BB1\u4E2D\u90AE\u4EF6\u91CC\u7684\u94FE\u63A5\u5B8C\u6210\u786E\u8BA4\u3002",emailInvalid:"\u90AE\u7BB1\u5730\u5740\u683C\u5F0F\u4E0D\u6B63\u786E\u3002",emailFailed:"\u65E0\u6CD5\u8BBE\u7F6E\u90AE\u4EF6\u901A\u77E5\uFF0C\u8BF7\u7A0D\u540E\u518D\u8BD5\u3002",toastReplied:"\u5F00\u53D1\u8005\u56DE\u590D\u4E86\u4F60\u7684\u53CD\u9988",toastFixed:"\u4F60\u53CD\u9988\u7684\u95EE\u9898\u5DF2\u4FEE\u590D",view:"\u67E5\u770B"}},Ud={en:Fd,ja:Od,es:$d,th:Hd,zh:Nd};ba=new Set(["received","reviewing","reviewing_again","fixing"]);});var Ua={};kt(Ua,{accountView:()=>vp,assistantView:()=>bp,crossAppView:()=>wp,detailView:()=>gp,initViews:()=>up,leaderboardView:()=>yp,pickUpdateToast:()=>lp,renderOptIns:()=>Ha,reportsView:()=>hp,roadmapView:()=>Ep});function up(t){({esc:_,btn:pe,renderHeader:Ue,chipLabel:Oa,skeleton:Ht,formatRelativeTime:dr,renderAppIconHtml:$a}=t);}function lp(t,e,r){let n=t.filter(p=>(p.unread_count??0)>0&&!$t(p,e).hidden),i=n.reduce((p,d)=>p+(d.unread_count??0),0);if(!i)return null;if(n.length>1)return {text:cr(St(e).ui.updates,{n:i}),reportId:null};let o=n[0],a=$t(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 Ha(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 si(t,e){return `<span class="mushi-pill mushi-tone-${e}">${_(t)}</span>`}function Na(t){return t.title??t.summary??t.description??`#${t.id.slice(0,8)}`}function cp(t,e){let r=(e??"").toLowerCase();return !r||r==="other"?"":Oa(t,r==="feature_request"?"idea":r)}function dp(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 pp(t,e){let r=$t(e,t.lang);if(r.hidden)return "";let n=(e.unread_count??0)>0,i=[cp(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=Na(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">${si(r.label,r.tone)}<span class="mushi-row-title">${_(a)}</span><span class="mushi-row-when">${_(dr(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 hp(t){let e=t.rc,r=dp(t.reporterReports).map(i=>pp(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?Ht(t.locale.flows.reports.loading):`<p class="mushi-empty">${_(e.ui.empty)}</p>`);return {header:Ue(t,t.locale.flows.reports.title,true),lead:"",body:`<div class="mushi-report-list">${n}</div>`,footer:""}}function fp(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:ri(i)?i.body??i.text:Ea(i,t.lang),talk:ri(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 mp(t,e){let r=e.at?`<time datetime="${_(e.at)}">${_(dr(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 gp(t){let e=t.rc,r=t.reporterReports.find(f=>f.id===t.selectedReportId),n=$t(r??{status:"new"},t.lang),i=[r?.page,r?.app_version?`v${r.app_version}`:"",r?dr(r.created_at):""].filter(Boolean).map(f=>_(String(f))).join(" \xB7 "),o=`<div class="mushi-thread-summary"><p class="mushi-card-status">${si(n.label,n.tone)}</p><p class="mushi-note">${_(n.detail)}${n.othersNote?` ${_(n.othersNote)}.`:""}</p><p class="mushi-summary-text">${_(r?r.description??Na(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=fp(t,r),s=a.some(f=>f.talk&&!f.mine),u;t.threadLoading&&a.length<=1&&!t.pendingReplies.length?u=Ht(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(f=>mp(t,f)).join("")}</ol>${!s&&!t.threadError&&!t.threadLoading?`<p class="mushi-empty">${_(e.ui.noReplies)}</p>`:""}`;let p=t.actionPending?' disabled aria-busy="true"':"",d=n.canVerify?`<div class="mushi-verify" role="group" aria-label="${_(n.detail)}">${pe("reporter-confirms",_(e.ui.yes),"mushi-btn",p)}${pe("reporter-not-fixed",_(e.ui.notYet),"mushi-btn",p)}</div>`:"";return {header:Ue(t,t.locale.panel.reportTitle,true),lead:o,body:`<div class="mushi-thread">${u}</div>${Ha(t)}`,footer:`${d}${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 bp(t){let e=t.locale.assistant,r=t.callbacks.assistantGreeting||e.defaultGreeting,n=p=>p.length?`<div class="mushi-chips">${p.map(d=>`<button type="button" class="mushi-chip mushi-chip-sm" data-action="assistant-suggest" data-value="${_(d)}">${_(d)}</button>`).join("")}</div>`:"",i=(p,d="mushi-link-btn")=>pe("assistant-report",_(p),d),o=t.assistantTurns.length===0?`<p class="mushi-assistant-greeting">${_(r)}</p>${n(t.callbacks.assistantSuggestions??[])}`:t.assistantTurns.map(p=>`<div class="mushi-assistant-msg ${p.role==="user"?"mine":"dev"}">${_(p.text)}</div>${n(p.options??[])}${p.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:Ue(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 Ep(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:Ue(t,e.title,true),lead:"",body:`${t.reporterError?`<p class="mushi-error-inline" role="alert">${_(t.reporterError)}</p>`:""}${r||(t.listLoading?Ht(e.loading):`<p class="mushi-empty">${_(e.empty)}</p>`)}`,footer:""}}function yp(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 p=s.rank||u+1;return `<li class="mushi-lb-row${t.testerReputation&&s.tester_id===t.testerReputation.tester_id?" me":""}"><span>#${p}</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:Ue(t,e.title,true),lead:"",body:`${i?Ht(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 vp(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:Ue(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:Ue(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:Ue(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 wp(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">${$a({projectId:o,appName:a.name,appSlug:a.slug,appDomain:a.domain})} ${_(a.name)}</h3>${a.reports.map(s=>{let u=$t(s,t.lang);return `<div class="mushi-report-row"><span class="mushi-row-top">${si(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">${_(dr(s.created_at))}</span></span></div>`}).join("")}</section>`).join("");return {header:Ue(t,e.title,true),lead:"",body:`${t.crossAppLoading?Ht(e.loading):""}${!t.crossAppLoading&&!r.length?`<p class="mushi-empty">${_(e.empty)}</p>`:""}${i}`,footer:""}}var _,pe,Ue,Oa,Ht,dr,$a,qa=$e(()=>{Zr();});var Au={};kt(Au,{deviceDraw:()=>Nh,journeyRecordingDecision:()=>$h,readTabOptIn:()=>Hh});function $h(t){if(t.mode===false)return false;if(t.mode!=="on-demand"||t.tabOptIn)return true;let e=t.window;if(!e)return false;let r=Date.parse(e.recordUntil);if(!Number.isFinite(r)||r<=t.now)return false;let n=Number.isFinite(e.sampleRate)?Math.min(1,Math.max(0,e.sampleRate)):0;return t.draw<n}function Hh(t){if(typeof window>"u")return false;let e=null;try{e=new URL(window.location.href).searchParams.get(Oh);}catch{e=null;}try{return e==="1"||e==="true"?window.sessionStorage.setItem(ji(t),"1"):(e==="0"||e==="false")&&window.sessionStorage.removeItem(ji(t)),window.sessionStorage.getItem(ji(t))==="1"}catch{return e==="1"||e==="true"}}function Nh(t,e=Math.random){if(typeof window>"u")return e();try{let r=Number(window.localStorage.getItem(Wi(t)));if(window.localStorage.getItem(Wi(t))!==null&&Number.isFinite(r)&&r>=0&&r<1)return r;let n=e();return window.localStorage.setItem(Wi(t),String(n)),n}catch{return e()}}var Oh,ji,Wi,Iu=$e(()=>{Oh="mushi_journeys",ji=t=>`mushi:journeys:tab:${t}`,Wi=t=>`mushi:journeys:draw:${t}`;});var Mu={};kt(Mu,{grabMaskedTabFrame:()=>Uh});async function Uh(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 Lu=$e(()=>{});var Du={};kt(Du,{createScreenshotAnnotation:()=>qh});function qh(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),p=Math.round(i.width*u),d=Math.round(i.height*u);for(let b of [a,s])b.width=p,b.height=d,b.style.width="100%",b.style.height="auto",b.style.display="block";s.style.position="absolute",s.style.left="0",s.style.top="0",s.style.cursor="crosshair";let f=a.getContext("2d"),x=s.getContext("2d");if(!f||!x){n(new Error("Canvas not supported"));return}f.drawImage(i,0,0,p,d),o.appendChild(a),o.appendChild(s),e.appendChild(o);let v="highlight",L=false,E=null,w=[],I=b=>{let h=s.getBoundingClientRect(),g="touches"in b?b.touches[0]??b.changedTouches[0]:null,k=g?g.clientX:b.clientX,M=g?g.clientY:b.clientY;return {x:(k-h.left)/h.width*p,y:(M-h.top)/h.height*d}},P=()=>{x.clearRect(0,0,p,d);for(let b of w)if(b.tool==="highlight"&&b.points.length>=2){let[h,g]=b.points;x.fillStyle="rgba(255, 230, 0, 0.35)",x.fillRect(Math.min(h.x,g.x),Math.min(h.y,g.y),Math.abs(g.x-h.x),Math.abs(g.y-h.y));}else if(b.tool==="arrow"&&b.points.length>=2){let[h,g]=b.points;x.strokeStyle="#ef4444",x.lineWidth=3,x.beginPath(),x.moveTo(h.x,h.y),x.lineTo(g.x,g.y),x.stroke();}},R=b=>{L=true,E=I(b);},m=b=>{if(!L||!E)return;L=false;let h=I(b);if(v==="blur"){let g=Math.min(E.x,h.x),k=Math.min(E.y,h.y),M=Math.abs(h.x-E.x),O=Math.abs(h.y-E.y);M>=1&&O>=1&&(f.filter="blur(8px)",f.drawImage(a,g,k,M,O,g,k,M,O),f.filter="none");}else w.push({tool:v,points:[E,h]});E=null,P();};s.addEventListener("mousedown",R),s.addEventListener("mouseup",m),s.addEventListener("touchstart",R,{passive:true}),s.addEventListener("touchend",m),r({canvas:a,setTool(b){v=b;},getDataUrl(){let b=document.createElement("canvas");b.width=p,b.height=d;let h=b.getContext("2d");return h?(h.drawImage(a,0,0),h.drawImage(s,0,0),b.toDataURL("image/jpeg",.85)):t},destroy(){s.removeEventListener("mousedown",R),s.removeEventListener("mouseup",m),s.removeEventListener("touchstart",R),s.removeEventListener("touchend",m),o.remove();}});},i.onerror=()=>n(new Error("Failed to load screenshot")),i.src=t;})}var Pu=$e(()=>{});var sl=4194304,Go=1.5*1024*1024;function al(t){try{return JSON.stringify(t)}catch{return null}}function ul(t,e=sl){let r=al(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 ${Ao(n)} exceeds limit ${Ao(e)}`}}function Ao(t){return t<1024?`${t} B`:t<1024*1024?`${(t/1024).toFixed(1)} KB`:`${(t/(1024*1024)).toFixed(2)} MB`}function Yo(){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 Dt(t){let e=Yo();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(()=>(xn(),Sn));return $r(r(new TextEncoder().encode(t)))}async function ll(t,e){let r=Yo();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(()=>(To(),Co)),{sha256:i}=await Promise.resolve().then(()=>(xn(),Sn)),o=n(i,new TextEncoder().encode(t),new TextEncoder().encode(e));return $r(o)}var cl=60*1024;function dl(t){return {mushiBeacon:true,path:t.path,headers:t.headers,body:t.body}}function pl(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 hl(t){try{let e=t.startsWith("/")?new URL(t,"https://tunnel.local"):new URL(t);return `${e.pathname}${e.search}`}catch{return t}}function fl(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||!pl(t.url))return false;let n=t.body;try{n=JSON.parse(t.body);}catch{n=t.body;}let i=JSON.stringify(dl({path:t.path??hl(t.url),headers:t.headers,body:n}));if(i.length>cl)return false;try{return r(t.url,new Blob([i],{type:"application/json"}))}catch{return false}}var Xo=false;function Jo(){Xo=true;}function ml(){return Xo}var er=null;function Zo(){let t=er;return er=null,!!t&&fl(t)}var Io=false,gl="X-Mushi-User-Token",bl="X-Mushi-Project",El="X-Mushi-SDK-Package",yl="X-Mushi-SDK-Version";function vl(t){let e={"Content-Type":"application/json","X-Mushi-Api-Key":t.apiKey,[bl]:t.projectId};return t.sdkPackage&&(e[El]=t.sdkPackage),t.sdkVersion&&(e[yl]=t.sdkVersion),t.userToken&&(e[gl]=t.userToken),t.internalKind&&(e[qr]=t.internalKind),e}var tr="https://dxptnwrhwsqckaftyymj.supabase.co/functions/v1/api",qr="X-Mushi-Internal",ar="__mushiInternal";function wl(t,e){let r=e?.trim();return r?r.replace(/\/$/,""):(t??tr).replace(/\/$/,"")}var Sl=1e4,xl=2,Rl=4,kl=3e4,_l=1e4;function Qo(t){let{projectId:e,apiKey:r,apiEndpoint:n=tr,tunnel:i,timeout:o=Sl,maxRetries:a=xl,getUserToken:s,sdkPackage:u,sdkVersion:p,circuitBreaker:d}=t,f=wl(n,i),x=d?.enabled!==false,v=Math.max(1,d?.threshold??Rl),L=Math.max(1e3,d?.cooldownMs??kl),E=0,w=0,I=()=>x&&w>Date.now(),P=()=>{E=0,w=0;},R=()=>{x&&(E+=1,E>=v&&(w=Date.now()+L));};async function m(h,g,k,M=a,O,q,Q){let ee=O!=="reporter-poll";if(ee&&I())return {ok:false,error:{code:"CIRCUIT_OPEN",message:"Endpoint temporarily unavailable; retrying later."}};let $=`${f}${g}`,ve=new AbortController,C=setTimeout(()=>ve.abort(),o),Be=s?.()??null,we={...vl({apiKey:r,projectId:e,sdkPackage:u,sdkVersion:p,userToken:Be,internalKind:O}),...q},Ae=k?JSON.stringify(k):void 0,me=null;Ae&&h!=="GET"&&O!=="reporter-poll"&&(me={url:$,headers:we,body:Ae,path:g},er=me);try{let j=await fetch($,{method:h,headers:we,body:Ae,keepalive:ml(),signal:ve.signal,...Q?{cache:Q}:{},...O?{[ar]:O}:{}});if(clearTimeout(C),j.status===307||j.status===308){let J=j.headers.get("Location");if(J&&M>0){let S=J.replace(/\/v1\/.*$/,"").replace(/\/$/,"");if(S!==f)return f=S,m(h,g,k,M-1,O,q,Q)}}if(!j.ok){let J=await j.json().catch(()=>({}));if((j.status===401||j.status===403)&&!Io){Io=!0;let W=f===tr?"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 ${j.status}). Check your Project ID and API key scope (must be "report:write"). `+W);}let S=j.status===429,T=j.status>=500||S,F=S?Cl(j.headers.get("Retry-After")):null,H=F===null||F<=_l;return T&&M>0&&H?(await Mo(F??Lo(a-M)),m(h,g,k,M-1,O,q)):(ee&&(T?R():P()),{ok:!1,error:{code:J.error?.code||`HTTP_${j.status}`,message:J.error?.message||J.message||`HTTP ${j.status} error`,status:j.status}})}let oe=await j.json(),Fe=oe&&typeof oe=="object"&&"ok"in oe&&"data"in oe?oe.data:oe;return ee&&P(),{ok:!0,data:Fe}}catch(j){return clearTimeout(C),M>0&&Tl(j)?(await Mo(Lo(a-M)),m(h,g,k,M-1,O,q)):(ee&&R(),{ok:false,error:{code:"NETWORK_ERROR",message:j instanceof Error?j.message:"Unknown network error"}})}finally{er===me&&(er=null);}}async function b(h,g,k,M){try{let O=await Dt(k),q=String(Date.now());return await m(h,g,M,a,"reporter-poll",{"X-Reporter-Token-Hash":O,"X-Reporter-Ts":q,"X-Reporter-Hmac":await ll(r,`${e}.${q}.${O}`)})}catch(O){return {ok:false,error:{code:"NETWORK_ERROR",message:O instanceof Error?O.message:"Unknown error"}}}}return {async submitReport(h){let g=ul(h);return g.ok?m("POST","/v1/reports",h,a,"report-submit"):{ok:false,error:{code:g.serializeFailed?"SERIALIZE_FAILED":"PAYLOAD_TOO_LARGE",message:g.reason??"Report payload exceeds size limit"}}},async getReportStatus(h){return m("GET",`/v1/reports/${h}/status`,void 0,a,"report-status")},async getSdkConfig(h){return m("GET","/v1/sdk/config",void 0,a,"sdk-config",void 0,h?.fresh?"no-store":void 0)},async askAssistant(h){return m("POST","/v1/sdk/assistant",{message:h.message,threadId:h.threadId??null,context:h.context??null},1,"community")},async getLatestSdkVersion(h){let g=new URLSearchParams({package:h}).toString();return m("GET",`/v1/sdk/latest-version?${g}`,void 0,a,"sdk-config")},async postDiscoveryEvent(h){return m("POST","/v1/sdk/discovery",h,1,"discovery")},async listReporterReports(h){return b("GET","/v1/reporter/reports",h)},reporterRequest:b,async listReporterComments(h,g){return b("GET",`/v1/reporter/reports/${h}/comments`,g)},async replyToReporterReport(h,g,k,M){return b("POST",`/v1/reporter/reports/${h}/reply`,g,{body:k,...M?{feedback_signal:M}:{}})},async reopenReporterReport(h,g,k){return b("POST",`/v1/reporter/reports/${h}/reopen`,g,{note:k??""})},async listNotifications(h,g){let k=new URLSearchParams;g?.since&&k.set("since",g.since),g?.limit&&k.set("limit",String(g.limit));let M=k.size?`?${k.toString()}`:"";return b("GET",`/v1/notifications${M}`,h)},async markNotificationRead(h,g){return b("POST",`/v1/notifications/${h}/read`,g,{})},async listReporterFeatureBoard(h){return b("GET","/v1/reporter/feature-board",h)},async voteReporterFeatureBoard(h,g){return b("POST",`/v1/reporter/feature-board/${h}/vote`,g,{})},async postSessionEvent(h){return m("POST","/v1/sdk/session",h,1,"discovery")},async postProductEvents(h){return m("POST","/v1/sdk/events",h,1,"discovery")},async submitActivity(h,g,k){return m("POST","/v1/sdk/activity",{user_id:h,user_traits:k?.userTraits,opted_in:k?.optedIn,reporter_token_hash:k?.reporterTokenHash,...k?.hostJwt?{host_jwt:k.hostJwt}:{},events:g},1,"discovery")},async getMyPoints(h){return m("GET",`/v1/sdk/me/points?userId=${encodeURIComponent(h)}`,void 0,1,"reporter-poll")},async getMyTier(h){return m("GET",`/v1/sdk/me/tier?userId=${encodeURIComponent(h)}`,void 0,1,"reporter-poll")},async getMyHistory(h,g){let k=new URLSearchParams({userId:h,...g?.limit?{limit:String(g.limit)}:{}});return m("GET",`/v1/sdk/me/history?${k}`,void 0,1,"reporter-poll")},async getHallOfFame(h=10){return m("GET",`/v1/sdk/hall-of-fame?limit=${h}`,void 0,1,"reporter-poll")},async sendMagicLink(h){return m("POST","/v1/tester/magic-link",{email:h},1,"community")},async linkReporterToken(h,g){return m("POST","/v1/tester/link-reporter",{reporter_token_hash:h},1,"community",{Authorization:`Bearer ${g}`})},async getCrossAppReports(h,g){let k=new URLSearchParams;g?.limit&&k.set("limit",String(g.limit)),g?.offset&&k.set("offset",String(g.offset));let M=k.size?`?${k.toString()}`:"";return m("GET",`/v1/tester/cross-app-reports${M}`,void 0,1,"community",{Authorization:`Bearer ${h}`})},async getMyReputation(h){return m("GET","/v1/tester/reputation",void 0,1,"community",{Authorization:`Bearer ${h}`})},async getPublicLeaderboard(h=20){return m("GET",`/v1/public/tester-leaderboard?limit=${h}`,void 0,1,"reporter-poll")},async getTesterStatus(h){return m("GET","/v1/me/tester-status",void 0,1,"community",{Authorization:`Bearer ${h}`})}}}function Mo(t){return new Promise(e=>setTimeout(e,t))}function Lo(t){return Math.min(1e3*2**t+Math.random()*500,1e4)}function Cl(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 Rn(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.lastIndex=0,r.test(t))return !0}catch{}}return false}function ur(t){if(Rn(t.message,t.ignoreErrors))return true;let e=t.filename?.trim()||"";return !!(e&&Rn(e,t.denyUrls)||t.allowUrls&&t.allowUrls.length>0&&(!e||!Rn(e,t.allowUrls)))}function kn(...t){return t.find(e=>e!==void 0&&e!=="")}function ke(t){try{let e=undefined;return typeof e=="object"&&e!==null?e[t]:void 0}catch{return}}function Ze(t){try{return t()}catch{return}}function Hn(){let t=kn(ke("VITE_MUSHI_PROJECT_ID"),ke("NEXT_PUBLIC_MUSHI_PROJECT_ID"),ke("NUXT_PUBLIC_MUSHI_PROJECT_ID"),ke("EXPO_PUBLIC_MUSHI_PROJECT_ID"),Ze(()=>process.env.NEXT_PUBLIC_MUSHI_PROJECT_ID),Ze(()=>process.env.EXPO_PUBLIC_MUSHI_PROJECT_ID),Ze(()=>process.env.MUSHI_PROJECT_ID)),e=kn(ke("VITE_MUSHI_API_KEY"),ke("NEXT_PUBLIC_MUSHI_API_KEY"),ke("NUXT_PUBLIC_MUSHI_API_KEY"),ke("EXPO_PUBLIC_MUSHI_API_KEY"),Ze(()=>process.env.NEXT_PUBLIC_MUSHI_API_KEY),Ze(()=>process.env.EXPO_PUBLIC_MUSHI_API_KEY),Ze(()=>process.env.MUSHI_API_KEY)),r=kn(ke("VITE_MUSHI_API_ENDPOINT"),ke("NEXT_PUBLIC_MUSHI_API_ENDPOINT"),ke("NUXT_PUBLIC_MUSHI_API_ENDPOINT"),ke("EXPO_PUBLIC_MUSHI_API_ENDPOINT"),Ze(()=>process.env.NEXT_PUBLIC_MUSHI_API_ENDPOINT),Ze(()=>process.env.EXPO_PUBLIC_MUSHI_API_ENDPOINT),Ze(()=>process.env.MUSHI_API_ENDPOINT)),n={};return t&&(n.projectId=t),e&&(n.apiKey=e),r&&(n.apiEndpoint=r),n}var Al=["VITE_","NEXT_PUBLIC_","NUXT_PUBLIC_","EXPO_PUBLIC_",""],Il={projectId:"MUSHI_PROJECT_ID",apiKey:"MUSHI_API_KEY"};function es(){let t=Hn(),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 Al){let p=`${u}${Il[s]}`;r&&r[p]?i.push({field:s,key:p,via:"import.meta.env"}):n&&n[p]&&i.push({field:s,key:p,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 Do=["production-calm","beta-loud","internal-debug","manual-only","minimal","standard","full"],Ml=["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 Ll(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 ts(t){let e=Ll(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 Dl(){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 rs(t){try{if(Dl()||!t||typeof t!="object")return;let e=Object.keys(t).filter(r=>!Ml.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&&!Do.includes(t.preset)&&console.error(`[mushi] Unknown preset \`${String(t.preset)}\` \u2014 expected one of ${Do.map(r=>`'${r}'`).join(", ")}. Preset ignored.`);}catch{}}var Pl=10,Bl=2e3,Fl=[/^(.)\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],Ol=/^[bcdfghjklmnpqrstvwxz]{6,}/i;function ns(t={}){let{enabled:e=true,blockObviousSpam:r=true,minDescriptionLength:n=Pl,maxDescriptionLength:i=Bl}=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 d of Fl)if(d.test(u))return {passed:false,reason:"Detected as spam"};if(Ol.test(u))return {passed:false,reason:"Detected as gibberish"};if(u.split(/\s+/).filter(d=>d.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 Po={debug:10,info:20,warn:30,error:40,fatal:50,silent:99},$l={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"},Hl={debug:Ee.dim,info:Ee.green,warn:Ee.yellow,error:Ee.red,fatal:`${Ee.bgRed}${Ee.white}${Ee.bold}`};function Nl(){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 Ul(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 ql(t){let{ts:e,level:r,scope:n,msg:i,...o}=t,a=e.slice(11,23),s=Hl[r]??"",u=$l[r]??r.toUpperCase(),p=Object.keys(o).length>0?` ${Ee.dim}${Ul(o)}${Ee.reset}`:"";return `${Ee.dim}${a}${Ee.reset} ${s}${u}${Ee.reset} ${Ee.cyan}[${n}]${Ee.reset} ${i}${p}`}function jl(t){return JSON.stringify(t)}function Wl(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 is(t,e,r,n,i){let o=e;function a(s,u,p){if(Po[s]<Po[o])return;let d={ts:new Date().toISOString(),level:s,scope:t,msg:u,...r,...p};i(s,n(d));}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 is(`${t}:${s}`,o,{...r,...u},n,i)},setLevel(s){o=s;}}}function Pt(t){let{scope:e,level:r="info",meta:n={},format:i="auto",destination:o="stdout"}=t,s=(i==="auto"?Nl():i)==="json"?jl:ql,u=Wl(o);return is(e,r,n,s,u)}var Nn={debug:()=>{},info:()=>{},warn:()=>{},error:()=>{},fatal:()=>{},child:()=>Nn,setLevel:()=>{}},Kl="mushi-mushi-keyring",ft="keys",os="offline-queue/v1",Pr=null,Br=null;function Vl(){return typeof globalThis<"u"&&typeof globalThis.crypto<"u"&&typeof globalThis.crypto.subtle<"u"&&typeof indexedDB<"u"}function ss(){return new Promise((t,e)=>{let r=indexedDB.open(Kl,1);r.onupgradeneeded=()=>{try{let n=r.result;if(!n)return;n.objectStoreNames.contains(ft)||n.createObjectStore(ft);}catch{}},r.onsuccess=()=>{let n=r.result;if(!n||!n.objectStoreNames.contains(ft)){try{n?.close();}catch{}e(new Error("key object store unavailable"));return}t(n);},r.onerror=()=>e(r.error);})}async function zl(){let t=await ss();return new Promise((e,r)=>{let i=t.transaction(ft,"readonly").objectStore(ft).get(os);i.onsuccess=()=>e(i.result??null),i.onerror=()=>r(i.error);})}async function Gl(t){let e=await ss();return new Promise((r,n)=>{let i=e.transaction(ft,"readwrite");i.objectStore(ft).put(t,os),i.oncomplete=()=>r(),i.onerror=()=>n(i.error);})}async function as(){if(Pr)return Pr;if(Br)return Br;if(!Vl())throw new Error("Web Crypto + IndexedDB required for offline queue encryption");return Br=(async()=>{let t=await zl();if(t)return Pr=t,t;let e=await crypto.subtle.generateKey({name:"AES-GCM",length:256},false,["encrypt","decrypt"]);return await Gl(e),Pr=e,e})(),Br}function Bo(t){let e="";for(let r of t)e+=String.fromCharCode(r);return btoa(e)}function Fo(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 Yl(t){let e=await as(),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:Bo(r),ct:Bo(i)}}function Xl(t){return !!t&&typeof t=="object"&&t._mme===1&&typeof t.iv=="string"&&typeof t.ct=="string"}async function Jl(t){let e=await as(),r=Fo(t.iv),n=Fo(t.ct),i=await crypto.subtle.decrypt({name:"AES-GCM",iv:r},e,n);return JSON.parse(new TextDecoder().decode(i))}var _e=Pt({scope:"mushi:queue",level:"warn"}),Zl="mushi-mushi",fe="offline-reports",Ql=1,_n="mushi_offline_queue",ec=10,tc=6e4,rc=3e4,nc=8,ic=1440*60*1e3;function us(t={}){let{enabled:e=true,maxQueueSize:r=50,syncOnReconnect:n=true,encryptAtRest:i=true}=t,o=null,a=null,s=null,u=null,p=null;async function d(S){let T=new Date().toISOString();if(!i)return {...S,queuedAt:T};try{let F=await Yl(S);return {id:S.id,queuedAt:T,payload:F}}catch(F){return _e.warn("Offline queue: encryption failed, storing plaintext",{err:String(F)}),{...S,queuedAt:T}}}async function f(S){if(x(S))try{return await Jl(S.payload)}catch(T){return _e.warn("Offline queue: decrypt failed, dropping row",{err:String(T),id:S.id}),null}return S}function x(S){return !!S.payload&&Xl(S.payload)}function v(S){let T=S.attempts;return typeof T=="number"&&Number.isFinite(T)?T:0}function L(S,T){let F=S.queuedAt;if(!F)return false;let H=Date.parse(F);return Number.isNaN(H)?false:T-H>ic}function E(){return s||(typeof indexedDB<"u"?s="indexeddb":typeof localStorage<"u"?s="localstorage":s="none",s)}function w(){return new Promise((S,T)=>{let F=indexedDB.open(Zl,Ql);F.onupgradeneeded=()=>{try{let H=F.result;if(!H)return;H.objectStoreNames.contains(fe)||H.createObjectStore(fe,{keyPath:"id"});}catch{}},F.onsuccess=()=>{let H=F.result;if(!H||!H.objectStoreNames.contains(fe)){s="localstorage";try{H?.close();}catch{}T(new Error("queue object store unavailable"));return}S(H);},F.onerror=()=>{s="localstorage",T(F.error);};})}async function I(S){let T=await w(),F=await d(S);return new Promise((H,W)=>{let Re=T.transaction(fe,"readwrite");Re.objectStore(fe).put(F),Re.oncomplete=()=>H(),Re.onerror=()=>W(Re.error);})}async function P(){let S=await w();return new Promise((T,F)=>{let W=S.transaction(fe,"readonly").objectStore(fe).getAll();W.onsuccess=()=>T(W.result),W.onerror=()=>F(W.error);})}async function R(S){let T=await w();return new Promise((F,H)=>{let W=T.transaction(fe,"readwrite");W.objectStore(fe).delete(S),W.oncomplete=()=>F(),W.onerror=()=>H(W.error);})}async function m(S){let T=await w();return new Promise((F,H)=>{let W=T.transaction(fe,"readwrite");W.objectStore(fe).put(S),W.oncomplete=()=>F(),W.onerror=()=>H(W.error);})}async function b(){let S=await w();return new Promise((T,F)=>{let W=S.transaction(fe,"readonly").objectStore(fe).count();W.onsuccess=()=>T(W.result),W.onerror=()=>F(W.error);})}async function h(){let S=await w();return new Promise((T,F)=>{let H=S.transaction(fe,"readwrite");H.objectStore(fe).clear(),H.oncomplete=()=>T(),H.onerror=()=>F(H.error);})}function g(){try{let S=localStorage.getItem(_n);return S?JSON.parse(S):[]}catch{return []}}function k(S){try{localStorage.setItem(_n,JSON.stringify(S));}catch{}}async function M(S){let T=g(),F=await d(S),H=T.findIndex(W=>W.id===S.id);H>=0?T[H]=F:T.push(F),k(T);}function O(S){let T=g().filter(F=>F.id!==S);k(T);}function q(S){let T=g(),F=T.findIndex(H=>H.id===S.id);F>=0&&(T[F]=S,k(T));}async function Q(S,T){try{S==="indexeddb"?await R(T):O(T);}catch(F){_e.debug("Offline queue: row removal failed (will age out)",{id:T,err:String(F)});}}async function ee(S,T){try{return S==="indexeddb"?await m(T):q(T),!0}catch(F){return _e.debug("Offline queue: row persist failed",{id:T.id,err:String(F)}),false}}async function $(){let S=E();if(S==="none")return {backend:S,rows:[]};if(S==="indexeddb")try{return {backend:S,rows:await P()}}catch{s="localstorage";}return {backend:"localstorage",rows:g()}}async function ve(S){let T=E();if(T==="none")return _e.debug("Offline queue: no storage backend, dropping report",{id:S.id}),T;if(T==="indexeddb")try{return await I(S),T}catch{s="localstorage";}return await M(S),"localstorage"}async function C(S){if(!e)return;if(await j()>=r){_e.warn("Offline queue full \u2014 dropping report",{maxQueueSize:r});return}await ve(S);}function Be(S){return Math.min(1e3*2**S+Math.random()*500,tc)}function we(S){return new Promise(T=>setTimeout(T,S))}async function Ae(S){let{backend:T,rows:F}=await $(),H=F,W=Date.now(),Re=[];for(let ge of H)if(L(ge,W)){let Ie=ge.id;await Q(T,Ie),_e.debug("Offline queue: evicting stale report",{id:Ie});}else Re.push(ge);H=Re;let Oe=H.slice(0,ec),z=0,lt=0;for(let ge=0;ge<Oe.length;ge++){let Ie=Oe[ge],ie=Ie.id,te=await f(Ie);if(!te){await Q(T,ie),lt++;continue}let G=await S.submitReport(te);if(G.ok){await Q(T,ie),z++;continue}if(lt++,G.error?.code==="CIRCUIT_OPEN"){_e.debug("Offline queue: circuit open, deferring the rest of the batch",{id:ie,remaining:Oe.length-ge});break}let We=G.error?.code==="HTTP_400"||G.error?.status===401||G.error?.status===403||G.error?.code==="HTTP_401"||G.error?.code==="HTTP_403"||G.error?.code==="HTTP_413"||G.error?.code==="HTTP_422"||G.error?.code==="INGEST_ERROR"||G.error?.code==="VALIDATION_ERROR"||G.error?.code==="PAYLOAD_TOO_LARGE"||G.error?.code==="SERIALIZE_FAILED"||typeof G.error?.message=="string"&&/invalid payload|description must be at least|validation/i.test(G.error.message),Kt=!We&&(G.error?.code==="NETWORK_ERROR"||G.error?.code==="HTTP_429"||G.error?.code==="HTTP_502"||G.error?.code==="HTTP_503"||G.error?.code==="HTTP_504"||typeof G.error?.code=="string"&&G.error.code.startsWith("HTTP_5"));if(We)await Q(T,ie);else {let Ke=v(Ie)+1;Ke>=nc?(await Q(T,ie),_e.warn("Offline queue: giving up on report after repeated failures",{id:ie,attempts:Ke,code:G.error?.code})):(Ie.attempts=Ke,await ee(T,Ie)?_e.debug("Offline queue: delivery failed, will retry",{id:ie,attempts:Ke,code:G.error?.code,classified:Kt?"transient":"unclassified"}):(await Q(T,ie),_e.warn("Offline queue: dropping report (attempt counter unpersistable)",{id:ie,code:G.error?.code})));}ge<Oe.length-1&&await we(Be(ge));}return {sent:z,failed:lt}}function me(S){if(!e)return Promise.resolve({sent:0,failed:0});if(u)return p||(p=u.catch(()=>{}).then(()=>(p=null,me(S)))),p;let T=Ae(S).finally(()=>{u===T&&(u=null);});return u=T,T}async function j(){if(E()==="indexeddb")try{return await b()}catch{s="localstorage";}return g().length}async function oe(){if(E()==="indexeddb")try{await h();}catch{}try{localStorage.removeItem(_n);}catch{}}function Fe(S){if(!e||!n||typeof window>"u")return;o&&J();let T=()=>{navigator.onLine&&me(S).catch(F=>{_e.warn("Offline queue auto-flush failed",{err:String(F)});});};window.addEventListener("online",T),a=setInterval(()=>{j().then(F=>{F>0&&T();});},rc),o=()=>{window.removeEventListener("online",T),a&&(clearInterval(a),a=null);};}function J(){o?.(),o=null;}return {enqueue:C,flush:me,size:j,clear:oe,startAutoSync:Fe,stopAutoSync:J}}function Un(){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;sc(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",p=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:oc(r),userAgentData:uc(t),screen:lc(n,e),prefersColorScheme:cc(e),prefersReducedMotion:Ce(e,"(prefers-reduced-motion: reduce)"),prefersReducedData:Ce(e,"(prefers-reduced-data: reduce)"),prefersContrast:dc(e),forcedColors:Ce(e,"(forced-colors: active)"),online:typeof t?.onLine=="boolean"?t.onLine:void 0,displayMode:pc(e),documentTitle:r?.title?.slice(0,200),buildId:hc(r),pageLoadTiming:fc(e),...p?{native:p}:{}}}function oc(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 De=null,Oo=false;function sc(t){if(Oo)return;let e=t?.userAgentData;e?.getHighEntropyValues&&(Oo=true,e.getHighEntropyValues(["architecture","bitness","model","platformVersion","uaFullVersion","fullVersionList"]).then(r=>{De=r;}).catch(()=>{}));}function ac(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 uc(t){let e=t?.userAgentData;if(!e&&!De)return;let r=De?.fullVersionList,n=ac(r??e?.brands),i={};return n&&(i.browser=n.brand,i.browserVersion=n.version),e?.platform&&(i.os=e.platform),De?.platformVersion&&(i.osVersion=De.platformVersion),typeof e?.mobile=="boolean"&&(i.mobile=e.mobile),De?.model&&(i.model=De.model),De?.architecture&&(i.architecture=De.architecture),De?.bitness&&(i.bitness=De.bitness),Object.keys(i).length===0?void 0:i}function lc(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 Ce(t,e){if(t?.matchMedia)try{return t.matchMedia(e).matches}catch{return}}function cc(t){if(t?.matchMedia)return Ce(t,"(prefers-color-scheme: dark)")?"dark":Ce(t,"(prefers-color-scheme: light)")?"light":"no-preference"}function dc(t){if(t?.matchMedia)return Ce(t,"(prefers-contrast: more)")?"more":Ce(t,"(prefers-contrast: less)")?"less":Ce(t,"(prefers-contrast: custom)")?"custom":"no-preference"}function pc(t){if(t?.matchMedia){if(Ce(t,"(display-mode: fullscreen)"))return "fullscreen";if(Ce(t,"(display-mode: standalone)"))return "standalone";if(Ce(t,"(display-mode: minimal-ui)"))return "minimal-ui";if(Ce(t,"(display-mode: browser)"))return "browser"}}function hc(t){if(!t)return;let r=t.querySelector?.('meta[name="mushi:build"]')?.content?.trim();if(r)return r.slice(0,64)}function fc(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 Cn="mushi_reporter_token";function mc(t){return `mushi:reporter-token:${t}`}function $o(){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 Tn(t){if(typeof localStorage>"u")return null;try{let e=localStorage.getItem(t);return e&&e.length>0?e:null}catch{return null}}function Ho(t,e){if(!(typeof localStorage>"u"))try{localStorage.setItem(t,e);}catch{}}function ne(t){if(!t){let o=Tn(Cn);if(o)return o;let a=$o();return Ho(Cn,a),a}let e=mc(t),r=Tn(e);if(r)return r;let i=Tn(Cn)??$o();return Ho(e,i),i}function qn(){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 No="mushi_fingerprint_hash";function gc(){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 bc(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 ls(){if(typeof localStorage<"u"){let n=localStorage.getItem(No);if(n)return n}let t=gc(),e=JSON.stringify(t),r=await bc(e);if(typeof localStorage<"u")try{localStorage.setItem(No,r);}catch{}return r}var Uo="mushi_session_id",Fr=null;function vt(){if(Fr)return Fr;if(typeof sessionStorage<"u"){let e=sessionStorage.getItem(Uo);if(e)return Fr=e,e}let t=Ec();if(Fr=t,typeof sessionStorage<"u")try{sessionStorage.setItem(Uo,t);}catch{}return t}function Ec(){return `ms_${Date.now().toString(36)}_${yc()}`}function yc(){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%36**6).toString(36).padStart(6,"0")}var vc=/HeadlessChrome|PhantomJS|Lighthouse|\bbot\b|bot[/-]|crawler|spider/i;function cs(t){return "mushi_events_consent_"+t}var In=new Set;function wc(){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 Sc(){return typeof navigator>"u"?false:navigator.webdriver===true?true:vc.test(navigator.userAgent??"")}function ds(t){return t?.enabled===false?"disabled":t?.respectDoNotTrack!==false&&wc()?"dnt":t?.excludeBots!==false&&Sc()?"automation":null}function xc(t){if(!t)return null;try{let e=localStorage.getItem(cs(t));return e==="granted"||e==="denied"?e:null}catch{return null}}function Rc(t,e){if(t)try{localStorage.setItem(cs(t),e);}catch{}}function ps(t,e){let r=xc(t);return e?.consent==="required"?r??"pending":r==="denied"?"denied":"granted"}function kc(t,e){Rc(t,e);for(let r of [...In])try{r(e);}catch{}}function hs(t){return In.add(t),()=>{In.delete(t);}}var _c=6e4,rr=null,fs,Hr=null,ms=null,jn=0,gs,It=null,nr=false,ir=false,Et=false,Mn=false,Ln=null;function Cc(){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 Ac(){return typeof navigator>"u"?null:navigator.userAgent??null}function jr(t,e){return {kind:t,session_id:vt(),ts:Cc(),page_view_count:jn,reporter_token_hash:ms,user_id_hash:Hr,user_agent:Ac(),sdk_version:fs,...e}}function Wr(t){!rr||!Et||(rr.postSessionEvent(t).catch(()=>{}),Kr());}function Wn(){clearTimeout(gs);}function Kr(){Wn(),!(!Et||globalThis.document?.visibilityState==="hidden")&&(gs=setTimeout(()=>{Wr(jr("session_heartbeat",{route:Mt()}));},_c));}function Dn(t){Et&&t!==It&&(It=t,jn+=1,Wr(jr("page_view",{route:t})));}function bs(){nr||!Et||(nr=true,Wr(jr("session_end",{route:Mt()})),Wn());}function qo(){Et||!ir||(Et=true,Mn?Kr():(Mn=true,jn=1,It=Mt(),Wr(jr("session_start",{route:It,referrer:Tc()}))));}function Ic(){document.visibilityState==="hidden"?bs():(nr=false,Kr());}function Mc(){bs();}function Lc(t){t.persisted&&(nr=false,Kr());}function Es(){Et=false,Wn();}function ys(t){ir||typeof window>"u"||ds(t.analytics)===null&&(ir=true,rr=t.client,fs=t.sdkVersion,ms=t.reporterToken??t.reporterTokenHash??null,Hr=t.userIdHash??null,typeof document<"u"&&document.addEventListener("visibilitychange",Ic,{passive:true}),window.addEventListener("pagehide",Mc,{passive:true}),window.addEventListener("pageshow",Lc,{passive:true}),Ln=hs(e=>{e==="granted"?qo():Es();}),ps(t.projectId??"",t.analytics)==="granted"&&qo());}function Kn(t){!ir||!rr||Dn(Mt());}function Vn(t){t&&t!==Hr&&(It=null),Hr=t;}function vs(){Es(),Ln?.(),Ln=null,ir=false,Mn=false,It=null,nr=false,rr=null;}var Pc=/^[a-z][a-z0-9_]{1,63}$/,mt={maxKeys:40,maxKeyLength:64,maxValueLength:256,maxBytes:8192,maxClientBatch:20,maxServerBatch:50,maxEventNamesPerProject:200},Bc="$",Fc=/(email|phone|password|passwd|token|secret|ssn|address|credit|card|iban)/i;function $c(t){return typeof t=="string"&&Pc.test(t)}function Wo(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>=mt.maxKeys){n.push(a);continue}let u=a.slice(0,mt.maxKeyLength);if(u.startsWith(Bc)&&!e.allowReserved){n.push(u);continue}if(Fc.test(u)&&!i.has(u)){n.push(u);continue}let p;if(s===null||typeof s=="boolean")p=s;else if(typeof s=="number")p=Number.isFinite(s)?s:null;else if(typeof s=="string"){let d=s.slice(0,mt.maxValueLength);p=e.scrub?e.scrub(d):d;}else if(s instanceof Date)p=s.toISOString();else {n.push(u);continue}r[u]=p,o+=1;}return {properties:r,dropped:n}}function Hc(t){try{return JSON.stringify(t).length<=mt.maxBytes}catch{return false}}var Nr=null,or="",gt=null,Vr=null,zn=null,ws,ot=Gn(),Pn,Bn,Ne=[],Tt=[],ye="granted",sr=true,Or=null,yt=false,An=false,bt=false,Fn=null,Nc=50,Ss=200,Uc=1440*60*1e3;function Gn(){return {sampleRate:1,autoPageviews:false,flushIntervalMs:5e3,surface:"web",propertyAllowlist:[]}}function xs(){return new Date().toISOString()}function Ur(){return "mushi_events_spill_"+or}function qc(t){return t===void 0||t===429||t>=500}function On(){return "mushi_analytics_id_"+or}function jc(){try{let t=localStorage.getItem(On());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 Wc(){if(gt)try{localStorage.getItem(On())!==gt&&localStorage.setItem(On(),gt);}catch{}}function Kc(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 $n(){try{let t=localStorage.getItem(Ur());if(!t)return [];let e=JSON.parse(t);return !e||Date.now()-e.at>Uc?(localStorage.removeItem(Ur()),[]):Array.isArray(e.events)?e.events.slice(0,Ss):[]}catch{return []}}function At(t){try{if(t.length===0){localStorage.removeItem(Ur());return}localStorage.setItem(Ur(),JSON.stringify({at:Date.now(),events:t.slice(-Ss)}));}catch{}}function Rs(){let t=$n();return t.length>0&&At([]),t}function Vc(t){return {anon_id:gt,user_id:Vr,user_traits:zn,session_id:Bn?Bn():null,sdk_version:ws,surface:ot.surface,events:t}}async function st(){if(!Nr||An||ye!=="granted"||Ne.length===0&&!bt)return;An=true,Wc();let t=Ne.splice(0,mt.maxServerBatch);bt&&(t.unshift({name:"identify",ts:xs(),properties:{}}),bt=false);try{let e=await Nr.postProductEvents(Vc(t));e.ok?At([]):qc(e.error?.status)&&At([...$n(),...t.filter(r=>r.name!=="identify")]);}catch{At([...$n(),...t.filter(e=>e.name!=="identify")]);}finally{An=false;}Ne.length>=mt.maxClientBatch&&st();}function zc(t){return ye==="denied"?false:ye==="pending"?Tt.length>=Nc?false:(Tt.push(t),true):(Ne.push(t),Ne.length>=mt.maxClientBatch&&st(),true)}function Gc(t){if(t==="denied"){ye="denied",Ne=[],Tt=[],bt=false,At([]);return}let e=ye==="pending";ye="granted",e&&(Ne.push(...Rs(),...Tt),Tt=[]),(Ne.length>0||bt)&&st();}function Yc(t){let e={};for(let[r,n]of Object.entries(t))n!==void 0&&(e[r]=n);return e}function ks(){return !yt||ye==="denied"?null:gt}function _s(t){if(yt||typeof window>"u")return;let e=t.config??{};if(ot={...Gn(),...Yc(e),propertyAllowlist:e.propertyAllowlist??[]},or=t.projectId,ds(e)!==null)return;yt=true,Nr=t.client,gt=t.anonId??jc(),Vr=t.userId??null,ws=t.sdkVersion,Pn=t.scrub,Bn=t.getSessionId;let r=Math.min(1,Math.max(0,ot.sampleRate));if(sr=r>=1?true:r<=0?false:Kc(gt??"anon")<r,!sr)return;ye=ps(or,e),ye==="granted"?Ne.push(...Rs()):ye==="denied"&&At([]),Fn=hs(Gc);let n=Math.max(1e3,ot.flushIntervalMs);Or=setInterval(()=>{st();},n);let i=()=>{typeof document<"u"&&document.visibilityState==="hidden"&&st();};typeof document<"u"&&document.addEventListener("visibilitychange",i,{passive:true}),window.addEventListener("pagehide",()=>{st();},{passive:true}),ot.autoPageviews&&Xc();}function Lt(t,e,r){if(!yt||!sr||!$c(t))return false;let{properties:n}=Wo(e,{allowlist:ot.propertyAllowlist,scrub:Pn}),i=n;if(r?.reserved){let{properties:o}=Wo(r.reserved,{allowReserved:true,scrub:Pn});i={...n,...o};}return i.$surface=ot.surface,typeof location<"u"&&i.$route===void 0&&(i.$route=location.pathname),Hc(i)?zc({name:t,ts:r?.ts??xs(),properties:i,...r?.dedupKey?{dedup_key:r.dedupKey}:{}}):false}function Cs(t){yt||(ye=t),kc(or,t);}function Ts(t,e){Vr=t,zn=e??null,!(!yt||!sr||!t||ye==="denied")&&(bt=true,ye==="granted"&&st());}function As(){return st()}function Is(){Or!=null&&(clearInterval(Or),Or=null),Fn?.(),Fn=null,yt=false,Nr=null,Ne=[],Tt=[],ye="granted",sr=true,bt=false,Vr=null,zn=null,ot=Gn();}var Ko=false;function Xc(){if(Ko||typeof history>"u")return;Ko=true;let t=history.pushState;history.pushState=function(...e){let r=t.apply(this,e);return Lt("page_view"),r},window.addEventListener("popstate",()=>{Lt("page_view");},{passive:true});}var Jc=10,Zc=1,Qc=5e3;function Ms(t={}){let{maxBurst:e=Jc,refillRate:r=Zc,refillIntervalMs:n=Qc}=t,i=e,o=Date.now();function a(){let d=Date.now(),f=d-o,x=Math.floor(f/n);x>0&&(i=Math.min(e,i+x*r),o=d);}function s(){return a(),i>0?(i--,true):false}function u(){i=e,o=Date.now();}function p(){return a(),i}return {tryConsume:s,reset:u,availableTokens:p}}var ed={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}]},Ls=ed.patterns,td=Ls.map(t=>({key:t.configKey,regex:new RegExp(t.source,t.caseInsensitive?"gi":"g"),replacement:t.replacement})),rd=Ls.reduce((t,e)=>(t[e.configKey]=e.defaultOn!==false,t),{});function Yn(t={}){let e={...rd,...t},r=td.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 nd=/token|jwt|passw|pwd|secret|api[-_]?key|apikey|auth|session|signature|email|phone|ssn/i,id=/^(?:key|code|sig)$/i;function od(t){let e=t;try{e=decodeURIComponent(t);}catch{}return nd.test(e)||id.test(e)}function sd(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(od(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 lr(t,e){if(!t||!t.includes("?")&&!t.includes("#"))return t;let{scrub:r}=Yn(e),n=o=>{let a=o.indexOf("?");return a===-1?o:o.slice(0,a+1)+sd(o.slice(a+1),r)},i=t.indexOf("#");return i===-1?n(t):n(t.slice(0,i))+n(t.slice(i))}var ad=50,ud=500;function Ds(t={}){let e=Math.max(1,t.max??ad),r=Math.max(50,t.maxMessageLength??ud),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 Vo=8*1024,ld=1e3;function Ps(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,Vo):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,ld)}catch{return String(e)}})(),i=typeof e.stack=="string"?e.stack.slice(0,Vo):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"},cd={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"},Xn={free:de.inkMuted,explorer:"#2563EB",contributor:"#7C3AED",champion:"#D97706",default:de.accent},zr={bg:"#0FFF50",fg:"#0a1a0a",border:"#00C43A"},Bs="#FAF7F0",Fs="#ffffff";var Jn={light:"#9A2A1E",dark:"#7A1F15"},Zn={light:"#B52F1F",dark:"#C4321E"},Os={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 Qn(t){return t==="dark"?cd:de}var $s={comfy:12},Hs={control:4},Gr={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"},Bt={base:99999,banner:99998,panel:1e5,overlay:2147483647},Yr={easeStamp:"cubic-bezier(0.22, 1, 0.36, 1)",durationFast:200},Ns={instant:120,panel:300};var at={bannerHeight:36,fabSize:52,edgeTabWidth:22,gutter:24,panelWidth:360,panelMaxHeight:480,panelSheetBreakpoint:480};function zo(t){return /^#[0-9a-fA-F]{3,8}$/.test(t)?t:""}function Us(t,e="",r=""){let n=Qn(t),i=zo(e),o=zo(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}}var qs={bannerLabel:"Feedback"};function dd(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 js(t){if(typeof t!="string")return null;let e=t.split(".");if(e.length!==3)return null;try{let r=dd(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 pd=new Set(["kensaur.us","www.kensaur.us"]),hd={"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"},fd={"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"},md=["www.google.com","icons.duckduckgo.com","icon.horse"];function Ws(t){try{let e=new URL(t).hostname.toLowerCase();return md.some(r=>e===r||e.endsWith(`.${r}`))}catch{return false}}function gd(t,e=32){return [`https://${t}/favicon.svg`,`https://${t}/favicon.ico`,`https://${t}/favicon-32x32.png`,`https://${t}/apple-touch-icon.png`]}function Ks(t){let e=[],r=i=>{let o=i?.trim().toLowerCase();!o||e.includes(o)||e.push(o);};r(Ed(t.repo_url)),r(hd[t.project_slug.toLowerCase()]);let n=t.sdk_origin?bd(t.sdk_origin):null;return n&&!pd.has(n)&&r(n),e}function Vs(t,e=32){if(t.icon_url?.trim())return [t.icon_url.trim()];let r=new Set,n=[],i=a=>{!a||r.has(a)||Ws(a)||(r.add(a),n.push(a));},o=fd[t.project_slug.toLowerCase()];o&&i(o);for(let a of Ks(t))for(let s of gd(a,e))i(s);return n}function bd(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 Ed(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 zs(t){return Ks(t)[0]??null}function Gs(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 d=0;d<o.length;d+=4){let f=o[d],x=o[d+1],v=o[d+2];if(o[d+3]<128)continue;a++;let E=Math.max(f,x,v),w=Math.min(f,x,v),I=E-w;u=Math.max(u,I),s+=I;}return a===0?!0:s/a<14&&u<24}catch{return Ws(t.src)}}function Ys(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 Xs(){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&&yd(n))return n}return null}function yd(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 Zs(t,e=Go){if(!t.startsWith("data:image/")||Js(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 p=a.getContext("2d");if(p){p.drawImage(r,0,0,s,u);for(let d of n){let f=a.toDataURL("image/jpeg",d);if(Js(f)<=e)return f}}}return null}function Js(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 Qs="mushi-launcher-hidden";function ea(){try{return typeof sessionStorage<"u"&&sessionStorage.getItem(Qs)==="1"}catch{return false}}function ta(){try{typeof sessionStorage<"u"&&sessionStorage.setItem(Qs,"1");}catch{}}var Xr="mushi-assistant-session-v1";function ra(){try{if(typeof sessionStorage>"u")return null;let t=sessionStorage.getItem(Xr);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 p=s.options.filter(d=>typeof d=="string");p.length&&(u.options=p);}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 na(t){try{if(typeof sessionStorage>"u")return;if(!t.turns.length&&!t.threadId){sessionStorage.removeItem(Xr);return}sessionStorage.setItem(Xr,JSON.stringify(t));}catch{}}function ia(){try{if(typeof sessionStorage>"u")return;sessionStorage.removeItem(Xr);}catch{}}var oa="Feature request";function sa(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 vd="https://kensaur.us/mushi-mushi/",wd="utm_source=widget&utm_medium=powered-by";function aa(t){let e=`${vd}?${wd}`;return t&&/^[0-9a-f]{6,64}$/.test(t)?`${e}&ref=${t}`:e}function ua(t){return (t.metaKey||t.ctrlKey)&&t.key==="Enter"}function la(t){return /Mac|iPhone|iPad|iPod/i.test(t)?"\u2318":"Ctrl"}function ca(){return typeof navigator>"u"?"":navigator.userAgentData?.platform||navigator.platform||navigator.userAgent||""}function da(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 Ft(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 Ot=15e3,Jr=4e3;function pa(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 wt(t){return t.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#39;")}function ei(t){return t?.failureKind==="blocked"||t?.failureKind==="throttled"}function ha(t){let e=t.appDomain??zs({project_id:t.projectId,project_name:t.appName,project_slug:t.appSlug??""}),r=wt(Ys(t.appName)),n=Vs({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="${wt(JSON.stringify(n))}" data-initials="${r}" aria-hidden="true" title="${wt(e??t.appName)}">
3
- <img class="mushi-app-icon-img" src="${wt(n[0])}" alt="" referrerpolicy="no-referrer" width="16" height="16" />
1
+ (function(){'use strict';var il=Object.defineProperty;var ke=(e,t)=>()=>(e&&(t=e(e=0)),t);var ct=(e,t)=>{for(var r in t)il(e,r,{get:t[r],enumerable:true});};function ol(e){return e instanceof Uint8Array||ArrayBuffer.isView(e)&&e.constructor.name==="Uint8Array"&&"BYTES_PER_ELEMENT"in e&&e.BYTES_PER_ELEMENT===1}function mo(e,t=""){if(typeof e!="number"){let r=t&&`"${t}" `;throw new TypeError(`${r}expected number, got ${typeof e}`)}if(!Number.isSafeInteger(e)||e<0){let r=t&&`"${t}" `;throw new RangeError(`${r}expected integer >= 0, got ${e}`)}}function Zt(e,t,r=""){let n=ol(e),i=e?.length,o=t!==void 0;if(!n||o){let s=r&&`"${r}" `,a="",u=n?`length=${i}`:`type=${typeof e}`,d=s+"expected Uint8Array"+a+", got "+u;throw n?new RangeError(d):new TypeError(d)}return e}function go(e){if(typeof e!="function"||typeof e.create!="function")throw new TypeError("Hash must wrapped by utils.createHasher");if(mo(e.outputLen),mo(e.blockLen),e.outputLen<1)throw new Error('"outputLen" must be >= 1');if(e.blockLen<1)throw new Error('"blockLen" must be >= 1')}function Ct(e,t=true){if(e.destroyed)throw new Error("Hash instance has been destroyed");if(t&&e.finished)throw new Error("Hash#digest() has already been called")}function Tr(e,t){Zt(e,void 0,"digestInto() output");let r=t.outputLen;if(e.length<r)throw new RangeError('"digestInto() output" expected to be of length >='+r)}function Ve(...e){for(let t=0;t<e.length;t++)e[t].fill(0);}function Ar(e){return new DataView(e.buffer,e.byteOffset,e.byteLength)}function De(e,t){return e<<32-t|e>>>t}function dt(e,t={}){let r=(i,o)=>e(o).update(i).digest(),n=e(void 0);return r.outputLen=n.outputLen,r.blockLen=n.blockLen,r.canXOF=n.canXOF,r.create=i=>e(i),Object.assign(r,t),Object.freeze(r)}var pt,Ir=ke(()=>{pt=e=>({oid:Uint8Array.from([6,9,96,134,72,1,101,3,4,2,e])});});function bo(e,t,r){return e&t^~e&r}function Eo(e,t,r){return e&t^e&r^t&r}var Qt,ze,Ge,oe,se,yo=ke(()=>{Ir();Qt=class{blockLen;outputLen;canXOF=false;padOffset;isLE;buffer;view;finished=false;length=0;pos=0;destroyed=false;constructor(t,r,n,i){this.blockLen=t,this.outputLen=r,this.padOffset=n,this.isLE=i,this.buffer=new Uint8Array(t),this.view=Ar(this.buffer);}update(t){Ct(this),Zt(t);let{view:r,buffer:n,blockLen:i}=this,o=t.length;for(let s=0;s<o;){let a=Math.min(i-this.pos,o-s);if(a===i){let u=Ar(t);for(;i<=o-s;s+=i)this.process(u,s);continue}n.set(t.subarray(s,s+a),this.pos),this.pos+=a,s+=a,this.pos===i&&(this.process(r,0),this.pos=0);}return this.length+=t.length,this.roundClean(),this}digestInto(t){Ct(this),Tr(t,this),this.finished=true;let{buffer:r,view:n,blockLen:i,isLE:o}=this,{pos:s}=this;r[s++]=128,Ve(this.buffer.subarray(s)),this.padOffset>i-s&&(this.process(n,0),s=0);for(let h=s;h<i;h++)r[h]=0;n.setBigUint64(i-8,BigInt(this.length*8),o),this.process(n,0);let a=Ar(t),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++)a.setUint32(4*h,p[h],o);}digest(){let{buffer:t,outputLen:r}=this;this.digestInto(t);let n=t.slice(0,r);return this.destroy(),n}_cloneInto(t){t||=new this.constructor,t.set(...this.get());let{blockLen:r,buffer:n,length:i,finished:o,destroyed:s,pos:a}=this;return t.destroyed=s,t.finished=o,t.length=i,t.pos=a,i%r&&t.buffer.set(n),t}clone(){return this._cloneInto()}},ze=Uint32Array.from([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),Ge=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 sl(e,t=false){return t?{h:Number(e&Mr),l:Number(e>>vo&Mr)}:{h:Number(e>>vo&Mr)|0,l:Number(e&Mr)|0}}function wo(e,t=false){let r=e.length,n=new Uint32Array(r),i=new Uint32Array(r);for(let o=0;o<r;o++){let{h:s,l:a}=sl(e[o],t);[n[o],i[o]]=[s,a];}return [n,i]}function Oe(e,t,r,n){let i=(t>>>0)+(n>>>0);return {h:e+r+(i/2**32|0)|0,l:i|0}}var Mr,vo,Tn,An,ht,ft,er,tr,So,xo,Ro,ko,_o,Co,To=ke(()=>{Mr=BigInt(4294967295),vo=BigInt(32);Tn=(e,t,r)=>e>>>r,An=(e,t,r)=>e<<32-r|t>>>r,ht=(e,t,r)=>e>>>r|t<<32-r,ft=(e,t,r)=>e<<32-r|t>>>r,er=(e,t,r)=>e<<64-r|t>>>r-32,tr=(e,t,r)=>e>>>r-32|t<<64-r;So=(e,t,r)=>(e>>>0)+(t>>>0)+(r>>>0),xo=(e,t,r,n)=>t+r+n+(e/2**32|0)|0,Ro=(e,t,r,n)=>(e>>>0)+(t>>>0)+(r>>>0)+(n>>>0),ko=(e,t,r,n,i)=>t+r+n+i+(e/2**32|0)|0,_o=(e,t,r,n,i)=>(e>>>0)+(t>>>0)+(r>>>0)+(n>>>0)+(i>>>0),Co=(e,t,r,n,i,o)=>t+r+n+i+o+(e/2**32|0)|0;});var In={};ct(In,{_SHA224:()=>Pr,_SHA256:()=>Dr,_SHA384:()=>$r,_SHA512:()=>Br,_SHA512_224:()=>Fr,_SHA512_256:()=>Or,sha224:()=>pl,sha256:()=>dl,sha384:()=>fl,sha512:()=>hl,sha512_224:()=>gl,sha512_256:()=>ml});var ul,nt,Lr,Dr,Pr,Ao,ll,cl,it,ot,Tt,Br,$r,ae,ue,Fr,Or,dl,pl,hl,fl,ml,gl,Mn=ke(()=>{yo();To();Ir();ul=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]),nt=new Uint32Array(64),Lr=class extends Qt{constructor(t){super(64,t,8,false);}get(){let{A:t,B:r,C:n,D:i,E:o,F:s,G:a,H:u}=this;return [t,r,n,i,o,s,a,u]}set(t,r,n,i,o,s,a,u){this.A=t|0,this.B=r|0,this.C=n|0,this.D=i|0,this.E=o|0,this.F=s|0,this.G=a|0,this.H=u|0;}process(t,r){for(let h=0;h<16;h++,r+=4)nt[h]=t.getUint32(r,false);for(let h=16;h<64;h++){let g=nt[h-15],E=nt[h-2],_=De(g,7)^De(g,18)^g>>>3,b=De(E,17)^De(E,19)^E>>>10;nt[h]=b+nt[h-7]+_+nt[h-16]|0;}let{A:n,B:i,C:o,D:s,E:a,F:u,G:d,H:p}=this;for(let h=0;h<64;h++){let g=De(a,6)^De(a,11)^De(a,25),E=p+g+bo(a,u,d)+ul[h]+nt[h]|0,b=(De(n,2)^De(n,13)^De(n,22))+Eo(n,i,o)|0;p=d,d=u,u=a,a=s+E|0,s=o,o=i,i=n,n=E+b|0;}n=n+this.A|0,i=i+this.B|0,o=o+this.C|0,s=s+this.D|0,a=a+this.E|0,u=u+this.F|0,d=d+this.G|0,p=p+this.H|0,this.set(n,i,o,s,a,u,d,p);}roundClean(){Ve(nt);}destroy(){this.destroyed=true,this.set(0,0,0,0,0,0,0,0),Ve(this.buffer);}},Dr=class extends Lr{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(32);}},Pr=class extends Lr{A=Ge[0]|0;B=Ge[1]|0;C=Ge[2]|0;D=Ge[3]|0;E=Ge[4]|0;F=Ge[5]|0;G=Ge[6]|0;H=Ge[7]|0;constructor(){super(28);}},Ao=wo(["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(e=>BigInt(e))),ll=Ao[0],cl=Ao[1],it=new Uint32Array(80),ot=new Uint32Array(80),Tt=class extends Qt{constructor(t){super(128,t,16,false);}get(){let{Ah:t,Al:r,Bh:n,Bl:i,Ch:o,Cl:s,Dh:a,Dl:u,Eh:d,El:p,Fh:h,Fl:g,Gh:E,Gl:_,Hh:b,Hl:y}=this;return [t,r,n,i,o,s,a,u,d,p,h,g,E,_,b,y]}set(t,r,n,i,o,s,a,u,d,p,h,g,E,_,b,y){this.Ah=t|0,this.Al=r|0,this.Bh=n|0,this.Bl=i|0,this.Ch=o|0,this.Cl=s|0,this.Dh=a|0,this.Dl=u|0,this.Eh=d|0,this.El=p|0,this.Fh=h|0,this.Fl=g|0,this.Gh=E|0,this.Gl=_|0,this.Hh=b|0,this.Hl=y|0;}process(t,r){for(let w=0;w<16;w++,r+=4)it[w]=t.getUint32(r),ot[w]=t.getUint32(r+=4);for(let w=16;w<80;w++){let R=it[w-15]|0,C=ot[w-15]|0,m=ht(R,C,1)^ht(R,C,8)^Tn(R,C,7),f=ft(R,C,1)^ft(R,C,8)^An(R,C,7),S=it[w-2]|0,A=ot[w-2]|0,$=ht(S,A,19)^er(S,A,61)^Tn(S,A,6),N=ft(S,A,19)^tr(S,A,61)^An(S,A,6),q=Ro(f,N,ot[w-7],ot[w-16]),ee=ko(q,m,$,it[w-7],it[w-16]);it[w]=ee|0,ot[w]=q|0;}let{Ah:n,Al:i,Bh:o,Bl:s,Ch:a,Cl:u,Dh:d,Dl:p,Eh:h,El:g,Fh:E,Fl:_,Gh:b,Gl:y,Hh:k,Hl:T}=this;for(let w=0;w<80;w++){let R=ht(h,g,14)^ht(h,g,18)^er(h,g,41),C=ft(h,g,14)^ft(h,g,18)^tr(h,g,41),m=h&E^~h&b,f=g&_^~g&y,S=_o(T,C,f,cl[w],ot[w]),A=Co(S,k,R,m,ll[w],it[w]),$=S|0,N=ht(n,i,28)^er(n,i,34)^er(n,i,39),q=ft(n,i,28)^tr(n,i,34)^tr(n,i,39),ee=n&o^n&a^o&a,U=i&s^i&u^s&u;k=b|0,T=y|0,b=E|0,y=_|0,E=h|0,_=g|0,{h,l:g}=Oe(d|0,p|0,A|0,$|0),d=a|0,p=u|0,a=o|0,u=s|0,o=n|0,s=i|0;let Ee=So($,q,U);n=xo(Ee,A,N,ee),i=Ee|0;}(({h:n,l:i}=Oe(this.Ah|0,this.Al|0,n|0,i|0))),{h:o,l:s}=Oe(this.Bh|0,this.Bl|0,o|0,s|0),{h:a,l:u}=Oe(this.Ch|0,this.Cl|0,a|0,u|0),{h:d,l:p}=Oe(this.Dh|0,this.Dl|0,d|0,p|0),{h,l:g}=Oe(this.Eh|0,this.El|0,h|0,g|0),{h:E,l:_}=Oe(this.Fh|0,this.Fl|0,E|0,_|0),{h:b,l:y}=Oe(this.Gh|0,this.Gl|0,b|0,y|0),{h:k,l:T}=Oe(this.Hh|0,this.Hl|0,k|0,T|0),this.set(n,i,o,s,a,u,d,p,h,g,E,_,b,y,k,T);}roundClean(){Ve(it,ot);}destroy(){this.destroyed=true,Ve(this.buffer),this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0);}},Br=class extends Tt{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);}},$r=class extends Tt{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);}},ae=Uint32Array.from([2352822216,424955298,1944164710,2312950998,502970286,855612546,1738396948,1479516111,258812777,2077511080,2011393907,79989058,1067287976,1780299464,286451373,2446758561]),ue=Uint32Array.from([573645204,4230739756,2673172387,3360449730,596883563,1867755857,2520282905,1497426621,2519219938,2827943907,3193839141,1401305490,721525244,746961066,246885852,2177182882]),Fr=class extends Tt{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(28);}},Or=class extends Tt{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(32);}},dl=dt(()=>new Dr,pt(1)),pl=dt(()=>new Pr,pt(4)),hl=dt(()=>new Br,pt(3)),fl=dt(()=>new $r,pt(2)),ml=dt(()=>new Or,pt(6)),gl=dt(()=>new Fr,pt(5));});var Io={};ct(Io,{_HMAC:()=>rr,hmac:()=>bl});var rr,bl,Mo=ke(()=>{Ir();rr=class{oHash;iHash;blockLen;outputLen;canXOF=false;finished=false;destroyed=false;constructor(t,r){if(go(t),Zt(r,void 0,"key"),this.iHash=t.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?t.create().update(r).digest():r);for(let o=0;o<i.length;o++)i[o]^=54;this.iHash.update(i),this.oHash=t.create();for(let o=0;o<i.length;o++)i[o]^=106;this.oHash.update(i),Ve(i);}update(t){return Ct(this),this.iHash.update(t),this}digestInto(t){Ct(this),Tr(t,this),this.finished=true;let r=t.subarray(0,this.outputLen);this.iHash.digestInto(r),this.oHash.update(r),this.oHash.digestInto(r),this.destroy();}digest(){let t=new Uint8Array(this.oHash.outputLen);return this.digestInto(t),t}_cloneInto(t){t||=Object.create(Object.getPrototypeOf(this),{});let{oHash:r,iHash:n,finished:i,destroyed:o,blockLen:s,outputLen:a}=this;return t=t,t.finished=i,t.destroyed=o,t.blockLen=s,t.outputLen=a,t.oHash=r._cloneInto(t.oHash),t.iHash=n._cloneInto(t.iHash),t}clone(){return this._cloneInto()}destroy(){this.destroyed=true,this.oHash.destroy(),this.iHash.destroy();}},bl=(()=>{let e=((t,r,n)=>new rr(t,r).update(n).digest());return e.create=(t,r)=>new rr(t,r),e})();});function ep(e){let t=(e??"").toLowerCase().split(/[-_]/)[0];return Wd.includes(t)?t:"en"}function xt(e="en"){return Qd[ep(e)]}function fr(e,t={}){return e.replace(/\{(\w+)\}/g,(r,n)=>{let i=t[n];return i==null?"":String(i)})}function tp(e){return jd.includes(e)}function rp(e){let t=(e.user_category??"").trim().toLowerCase().replace(/[\s-]+/g,"_");return t==="feature"||t==="feature_request"||t==="idea"}function Ht(e,t="en"){let r=xt(t),n=(e.status??"").trim(),i=tp(n)?Kd[n]:"received",o=e.fixed_in_version?.trim()||null;(n==="fixed"||n==="resolved")&&o&&(i="fixed_version"),(e.awaiting_reporter||e.awaiting_reporter_at)&&va.has(i)&&(i="waiting");let a=rp(e),u=r.status[i],d=r.detail[i];a&&(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=e.closed_reason??null;i==="closed"&&(d=p&&p!=="spam"&&p in r.closedReason?r.closedReason[p]:r.closedReason.none);let h=e.group_bucket??"none",g=va.has(i)||i==="waiting"?h==="few"?r.others.few:h==="many"?r.others.many:null:null;return {key:i,label:fr(u,{version:o}),tone:Vd[i],detail:fr(d,{version:o}),canVerify:i==="fixed_next"||i==="fixed_version"||i==="fixed",othersNote:g,hidden:i==="closed"&&p==="spam"}}function np(e,t={},r="en"){let n=xt(r);if(e==="comment")return t.text??"";if(e==="closed"){let i=t.closed_reason??"";return i&&i!=="spam"&&i in n.closedReason?n.closedReason[i]:n.closedReason.none}return e==="reporter_comment"?t.text??n.timeline.reporter_comment:fr(n.timeline[e],{text:t.text,version:t.version})}function li(e){return e.kind==="comment"||e.kind==="reporter_comment"||e.kind==="info_requested"}function wa(e,t="en"){return e.custom||!zd.includes(e.kind)?e.text:np(e.kind,{text:e.body??null,version:e.version??null,closed_reason:e.closed_reason??null},t)}function Sa(e,t="en"){let r=xt(t).ui,n=e.unread_total===1?e.latest[0]?.kind:null;return n==="comment"||n==="info_requested"?r.toastReplied:n==="fixed"||n==="released"?r.toastFixed:r.updates.replace("{n}",String(e.unread_total))}function xa(e){return /^[^\s@]+@[^\s@]+\.[^\s@]{2,}$/.test(e.trim())}var jd,Wd,Kd,Vd,zd,Gd,Yd,Xd,Jd,Zd,Qd,va,nn=ke(()=>{jd=["new","pending","submitted","queued","classified","grouped","fixing","fixed","dismissed","triaged","in_progress","resolved","verified","reopened"],Wd=["en","ja","es","th","zh"],Kd={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"},Vd={received:"neutral",reviewing:"info",reviewing_again:"info",fixing:"progress",verified:"success-muted",fixed_next:"success",fixed_version:"success",fixed:"success",closed:"muted",waiting:"attention"},zd=["received","reviewing","duplicate_linked","info_requested","comment","reporter_comment","fix_started","fixed","released","verified","reopened","closed"],Gd={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"}},Yd={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"}},Xd={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"}},Jd={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"}},Zd={status:{received:"\u5DF2\u6536\u5230",reviewing:"\u5904\u7406\u4E2D",reviewing_again:"\u91CD\u65B0\u67E5\u770B\u4E2D",fixing:"\u4FEE\u590D\u4E2D",verified:"\u5DF2\u786E\u8BA4\u4FEE\u590D",fixed_next:"\u5DF2\u4FEE\u590D \u2014 \u4E0B\u6B21\u66F4\u65B0\u4E0A\u7EBF",fixed_version:"\u5DF2\u5728 v{version} \u4FEE\u590D",fixed:"\u5DF2\u4FEE\u590D",closed:"\u5DF2\u5173\u95ED",waiting:"\u7B49\u5F85\u4F60\u7684\u56DE\u590D"},detail:{received:"\u6211\u4EEC\u5DF2\u6536\u5230\u4F60\u7684\u53CD\u9988\u3002",reviewing:"\u5F00\u53D1\u8005\u5DF2\u628A\u5B83\u52A0\u5165\u5F85\u5904\u7406\u5217\u8868\u3002",reviewing_again:"\u8C22\u8C22\uFF0C\u6211\u4EEC\u6B63\u5728\u91CD\u65B0\u67E5\u770B\u3002",fixing:"\u6B63\u5728\u4FEE\u590D\u3002",verified:"\u611F\u8C22\u4F60\u786E\u8BA4\u4FEE\u590D\uFF01",fixed_next:"\u4F1A\u5728\u4E0B\u4E00\u4E2A\u7248\u672C\u4E2D\u4E0A\u7EBF\u3002",fixed_version:"\u8BF7\u66F4\u65B0\u5230 v{version}\u3002\u95EE\u9898\u89E3\u51B3\u4E86\u5417\uFF1F",fixed:"\u95EE\u9898\u89E3\u51B3\u4E86\u5417\uFF1F",closed:"\u5DF2\u5173\u95ED\u3002",waiting:"\u5F00\u53D1\u8005\u6709\u95EE\u9898\u60F3\u95EE\u4F60\uFF0C\u8BF7\u5728\u4E0B\u65B9\u56DE\u590D\u3002"},idea:{received:"\u8C22\u8C22\u4F60\u7684\u60F3\u6CD5",reviewing:"\u8003\u8651\u4E2D",fixing:"\u5F00\u53D1\u4E2D",shipped:"\u5DF2\u4E0A\u7EBF",shippedVersion:"\u5DF2\u5728 v{version} \u4E0A\u7EBF"},closedReason:{duplicate:"\u548C\u4E4B\u524D\u7684\u4E00\u6761\u53CD\u9988\u76F8\u540C\uFF0C\u6211\u4EEC\u4F1A\u5728\u90A3\u6761\u91CC\u901A\u77E5\u8FDB\u5C55\u3002",not_reproducible:"\u6211\u4EEC\u6CA1\u80FD\u590D\u73B0\u3002\u5982\u679C\u518D\u6B21\u53D1\u751F\uFF0C\u8BF7\u56DE\u590D\u3002",wont_fix:"\u6211\u4EEC\u51B3\u5B9A\u4E0D\u4FEE\u6539\u8FD9\u4E00\u70B9\u3002",working_as_intended:"\u8FD9\u662F\u9884\u671F\u7684\u884C\u4E3A\u3002",none:"\u5DF2\u5173\u95ED\u3002"},others:{few:"\u5305\u62EC\u4F60\u5728\u5185\uFF0C\u6709\u51E0\u4E2A\u4EBA\u53CD\u9988\u4E86\u8FD9\u4E2A\u95EE\u9898",many:"\u5F88\u591A\u4EBA\u53CD\u9988\u4E86\u8FD9\u4E2A\u95EE\u9898"},timeline:{received:"\u4F60\u63D0\u4EA4\u4E86\u53CD\u9988",reviewing:"\u5F00\u53D1\u8005\u6B63\u5728\u67E5\u770B",duplicate_linked:"\u548C\u5DF2\u6709\u53CD\u9988\u76F8\u540C\uFF0C\u6211\u4EEC\u4F1A\u5728\u90A3\u6761\u91CC\u901A\u77E5\u8FDB\u5C55",info_requested:"\u5F00\u53D1\u8005\u7684\u95EE\u9898\uFF1A{text}",reporter_comment:"\u4F60",fix_started:"\u6B63\u5728\u4FEE\u590D",fixed:"\u5DF2\u4FEE\u590D \u2014 \u4E0B\u6B21\u66F4\u65B0\u4E0A\u7EBF",released:"\u5DF2\u5728 v{version} \u53D1\u5E03 \u2014 \u8BF7\u66F4\u65B0",verified:"\u5DF2\u786E\u8BA4\u4FEE\u590D",reopened:"\u5DF2\u91CD\u65B0\u6253\u5F00"},categories:{bug:"\u9519\u8BEF",slow:"\u6162",visual:"\u663E\u793A\u95EE\u9898",confusing:"\u96BE\u4EE5\u7406\u89E3",idea:"\u60F3\u6CD5"},ui:{yes:"\u662F",notYet:"\u8FD8\u6CA1\u6709",empty:"\u8FD8\u6CA1\u6709\u53CD\u9988\u3002\u63D0\u4EA4\u540E\u4F1A\u5728\u8FD9\u91CC\u663E\u793A\u8FDB\u5C55\u3002",loadError:"\u65E0\u6CD5\u52A0\u8F7D\u66F4\u65B0",retry:"\u91CD\u8BD5",sending:"\u53D1\u9001\u4E2D\u2026",sent:"\u5DF2\u53D1\u9001",sendFailed:"\u53D1\u9001\u5931\u8D25",noReplies:"\u5F00\u53D1\u8005\u8FD8\u6CA1\u6709\u56DE\u590D\u3002",you:"\u4F60",developer:"\u5F00\u53D1\u8005",addWords:"\u8BF7\u518D\u591A\u5199\u51E0\u4E2A\u5B57",developerReplied:"\u5F00\u53D1\u8005\u56DE\u590D\uFF1A\u201C{text}\u201D",updates:"\u4F60\u7684\u53CD\u9988\u6709 {n} \u6761\u66F4\u65B0",receipt:"\u5DF2\u53D1\u9001\u3002\u6709\u8FDB\u5C55\u65F6\u4F1A\u5728\u8FD9\u91CC\u901A\u77E5\u4F60\u3002",trackIt:"\u67E5\u770B\u8FDB\u5C55",done:"\u5B8C\u6210",emailOptIn:"\u901A\u8FC7\u90AE\u4EF6\u63A5\u6536\u66F4\u65B0",emailPlaceholder:"you@example.com",emailSubmit:"\u7528\u90AE\u4EF6\u63A5\u6536",emailCheckInbox:"\u8BF7\u70B9\u51FB\u6536\u4EF6\u7BB1\u4E2D\u90AE\u4EF6\u91CC\u7684\u94FE\u63A5\u5B8C\u6210\u786E\u8BA4\u3002",emailInvalid:"\u90AE\u7BB1\u5730\u5740\u683C\u5F0F\u4E0D\u6B63\u786E\u3002",emailFailed:"\u65E0\u6CD5\u8BBE\u7F6E\u90AE\u4EF6\u901A\u77E5\uFF0C\u8BF7\u7A0D\u540E\u518D\u8BD5\u3002",toastReplied:"\u5F00\u53D1\u8005\u56DE\u590D\u4E86\u4F60\u7684\u53CD\u9988",toastFixed:"\u4F60\u53CD\u9988\u7684\u95EE\u9898\u5DF2\u4FEE\u590D",view:"\u67E5\u770B"}},Qd={en:Gd,ja:Yd,es:Xd,th:Jd,zh:Zd};va=new Set(["received","reviewing","reviewing_again","fixing"]);});var Wa={};ct(Wa,{accountView:()=>Lp,assistantView:()=>Ap,crossAppView:()=>Dp,detailView:()=>Tp,initViews:()=>vp,leaderboardView:()=>Mp,pickUpdateToast:()=>wp,renderOptIns:()=>qa,reportsView:()=>kp,roadmapView:()=>Ip});function vp(e){({esc:M,btn:ce,renderHeader:Ne,chipLabel:Na,skeleton:Nt,formatRelativeTime:mr,renderAppIconHtml:Ua}=e);}function wp(e,t,r){let n=e.filter(d=>(d.unread_count??0)>0&&!Ht(d,t).hidden),i=n.reduce((d,p)=>d+(p.unread_count??0),0);if(!i)return null;if(n.length>1)return {text:fr(xt(t).ui.updates,{n:i}),reportId:null};let o=n[0],s=Ht(o,t),a=s.key==="fixing"||s.canVerify||!o.last_admin_reply_at&&s.key!=="waiting",u=o.title??o.summary??void 0;return {text:a?s.label:r,reportId:o.id,...u?{detail:u}:{}}}function qa(e){let t=e.locale.panel,r=[];if(e.channels.email&&e.callbacks.onReporterEmailOptIn){let n=e.rc.ui;e.emailState==="saved"?r.push(`<p class="mushi-note" role="status">\u2709 ${M(n.emailCheckInbox)}</p>`):(r.push(`<label class="mushi-check"><input type="checkbox" data-action="email-optin"${e.emailOptInOpen?" checked":""} /> ${M(n.emailOptIn)}</label>`),e.emailOptInOpen&&r.push(`<div class="mushi-inline-form"><input type="email" class="mushi-input" data-role="optin-email" autocomplete="email" aria-label="${M(n.emailOptIn)}" placeholder="${M(n.emailPlaceholder)}" value="${M(e.channels.emailPrefill)}" />${ce("save-email",M(n.emailSubmit),"mushi-btn",e.emailState==="saving"?' aria-busy="true"':"")}</div>${e.emailState==="invalid"||e.emailState==="error"?`<p class="mushi-note mushi-error-inline" role="alert">${M(e.emailState==="invalid"?n.emailInvalid:n.emailFailed)}</p>`:""}`));}return e.channels.push&&e.callbacks.onReporterPushSubscribe&&(r.push(e.pushState==="on"?`<p class="mushi-note" role="status">\u{1F514} ${M(t.notifyOn)}</p>`:ce("notify-me",`\u{1F514} ${M(t.notifyMe)}`,"mushi-btn",e.pushState==="asking"?' aria-busy="true"':"")),e.pushState==="error"&&r.push(`<p class="mushi-note mushi-error-inline" role="alert">${M(e.rc.ui.sendFailed)}</p>`)),r.length?`<div class="mushi-optins">${r.join("")}</div>`:""}function hi(e,t){return `<span class="mushi-pill mushi-tone-${t}">${M(e)}</span>`}function ja(e){return e.title??e.summary??e.description??`#${e.id.slice(0,8)}`}function Sp(e,t){let r=(t??"").toLowerCase();return !r||r==="other"?"":Na(e,r==="feature_request"?"idea":r)}function xp(e){let t=r=>Date.parse(r.last_event_at??r.created_at)||0;return [...e].sort((r,n)=>+((n.unread_count??0)>0)-+((r.unread_count??0)>0)||t(n)-t(r))}function Rp(e,t){let r=Ht(t,e.lang);if(r.hidden)return "";let n=(t.unread_count??0)>0,i=[Sp(e,t.user_category),t.page,r.othersNote].filter(Boolean).map(a=>M(String(a))).join(" \xB7 "),o=t.last_event_preview&&(n||r.key==="waiting")?e.rc.ui.developerReplied.replace("{text}",t.last_event_preview):r.canVerify&&r.key!=="fixed_next"?r.detail:"",s=ja(t);return `<button type="button" class="mushi-report-row${n?" unread":""}" data-report-id="${M(t.id)}" aria-label="${M(`${r.label}: ${s}`)}"><span class="mushi-row-top">${hi(r.label,r.tone)}<span class="mushi-row-title">${M(s)}</span><span class="mushi-row-when">${M(mr(t.last_event_at??t.created_at))}</span></span>${i?`<span class="mushi-row-meta">${i}</span>`:""}${o?`<span class="mushi-row-news">${M(o)}</span>`:""}</button>`}function kp(e){let t=e.rc,r=xp(e.reporterReports).map(i=>Rp(e,i)).join(""),n=e.reporterError?`<p class="mushi-error-inline" role="alert">${M(t.ui.loadError)} ${ce("retry-list",M(t.ui.retry),"mushi-link-btn")}</p>${r}`:r||(e.listLoading?Nt(e.locale.flows.reports.loading):`<p class="mushi-empty">${M(t.ui.empty)}</p>`);return {header:Ne(e,e.locale.flows.reports.title,true),lead:"",body:`<div class="mushi-report-list">${n}</div>`,footer:""}}function _p(e,t){let r=e.rc,n=[];if(e.timeline)for(let i of e.timeline){let o=i.kind==="reporter_comment";n.push({kind:i.kind,at:i.at,text:li(i)?i.body??i.text:wa(i,e.lang),talk:li(i),mine:o,who:o?r.ui.you:r.ui.developer});}else {t&&n.push({kind:"received",at:t.created_at,text:r.timeline.received});for(let i of e.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 e.pendingReplies)n.push({kind:"reporter_comment",at:"",text:i.body,who:r.ui.you,talk:true,mine:true,pending:i});return n}function Cp(e,t){let r=t.at?`<time datetime="${M(t.at)}">${M(mr(t.at))}</time>`:"";if(!t.talk)return `<li class="mushi-event"><span>${M(t.text)}</span>${r}</li>`;let n=!!t.mine,i=t.pending?t.pending.state==="sending"?`<span class="mushi-bubble-state">${M(e.rc.ui.sending)}</span>`:`<span class="mushi-bubble-state mushi-error-inline">${M(e.rc.ui.sendFailed)} \xB7 ${ce("retry-reply",M(e.rc.ui.retry),"mushi-link-btn",` data-value="${t.pending.id}"`)}</span>`:r;return `<li class="mushi-bubble ${n?"mine":"dev"}"><strong>${M(t.who??"")}</strong><p>${M(t.text)}</p>${i}</li>`}function Tp(e){let t=e.rc,r=e.reporterReports.find(h=>h.id===e.selectedReportId),n=Ht(r??{status:"new"},e.lang),i=[r?.page,r?.app_version?`v${r.app_version}`:"",r?mr(r.created_at):""].filter(Boolean).map(h=>M(String(h))).join(" \xB7 "),o=`<div class="mushi-thread-summary"><p class="mushi-card-status">${hi(n.label,n.tone)}</p><p class="mushi-note">${M(n.detail)}${n.othersNote?` ${M(n.othersNote)}.`:""}</p><p class="mushi-summary-text">${M(r?r.description??ja(r):`#${(e.selectedReportId??"").slice(0,8)}`)}</p>${r?.screenshot_thumb_url?`<img class="mushi-card-thumb" src="${M(r.screenshot_thumb_url)}" alt="" />`:""}${i?`<p class="mushi-note">${i}</p>`:""}</div>`,s=_p(e,r),a=s.some(h=>h.talk&&!h.mine),u;e.threadLoading&&s.length<=1&&!e.pendingReplies.length?u=Nt(e.locale.flows.thread.loading):u=`${e.threadError?`<p class="mushi-error-inline" role="alert">${M(t.ui.loadError)} ${ce("retry-thread",M(t.ui.retry),"mushi-link-btn")}</p>`:""}<ol class="mushi-timeline">${s.map(h=>Cp(e,h)).join("")}</ol>${!a&&!e.threadError&&!e.threadLoading?`<p class="mushi-empty">${M(t.ui.noReplies)}</p>`:""}`;let d=e.actionPending?' disabled aria-busy="true"':"",p=n.canVerify?`<div class="mushi-verify" role="group" aria-label="${M(n.detail)}">${ce("reporter-confirms",M(t.ui.yes),"mushi-btn",d)}${ce("reporter-not-fixed",M(t.ui.notYet),"mushi-btn",d)}</div>`:"";return {header:Ne(e,e.locale.panel.reportTitle,true),lead:o,body:`<div class="mushi-thread">${u}</div>${qa(e)}`,footer:`${p}${e.actionError?`<p class="mushi-error-inline mushi-thread-action-error" role="alert">${M(e.actionError)}</p>`:""}<div class="mushi-thread-composer"><textarea class="mushi-input mushi-reply" data-role="reporter-reply" rows="1" maxlength="2000" placeholder="${M(e.locale.flows.thread.replyPlaceholder)}" aria-label="${M(e.locale.flows.thread.replyPlaceholder)}"></textarea>${ce("reporter-reply","\u2191","mushi-submit mushi-send",` aria-label="${M(e.locale.panel.send)}"`)}</div>`}}function Ap(e){let t=e.locale.assistant,r=e.callbacks.assistantGreeting||t.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="${M(p)}">${M(p)}</button>`).join("")}</div>`:"",i=(d,p="mushi-link-btn")=>ce("assistant-report",M(d),p),o=e.assistantTurns.length===0?`<p class="mushi-assistant-greeting">${M(r)}</p>${n(e.callbacks.assistantSuggestions??[])}`:e.assistantTurns.map(d=>`<div class="mushi-assistant-msg ${d.role==="user"?"mine":"dev"}">${M(d.text)}</div>${n(d.options??[])}${d.offerReport?i(t.fileReportCta,"mushi-btn"):""}`).join(""),s=e.assistantSending?`<div class="mushi-assistant-msg dev" role="status" aria-live="polite">${M(t.thinking)}</div>`:"",a=e.assistantError?`<p class="mushi-error-inline" role="alert">${M(e.assistantError)} ${i(t.fileReportCta)}</p>`:"",u=e.assistantTurns.length&&!e.assistantSending&&!e.assistantError?i(t.stillStuckCta):"";return {header:Ne(e,e.callbacks.assistantLabel||t.defaultLabel,true),lead:"",body:`<div class="mushi-assistant-log">${o}${s}${a}${u}</div>`,footer:`<form class="mushi-thread-composer" data-action="assistant-send"><textarea class="mushi-input mushi-reply mushi-assistant-input" rows="1" placeholder="${M(t.inputPlaceholder)}" aria-label="${M(t.inputPlaceholder)}"${e.assistantSending?" disabled":""}></textarea><button type="submit" class="mushi-submit mushi-send" aria-label="${M(t.sendAriaLabel)}"${e.assistantSending?" disabled":""}>\u2191</button></form>`}}function Ip(e){let t=e.locale.flows.roadmap,r=e.featureBoard.map(n=>{let i=String(n.id??""),o=!!n.my_vote,s=n.shipped_at?t.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">${M(String(n.subject??t.untitled))}</span></span><span class="mushi-row-meta">${M(s)} \xB7 ${M(t.voteCount.replace("{n}",String(Number(n.vote_count??0))))}</span>${e.callbacks.onFeatureBoardVote?`<button type="button" class="mushi-btn" data-vote-id="${M(i)}" aria-pressed="${o}">${M(o?t.voted:t.vote)}</button>`:""}</div>`}).join("");return {header:Ne(e,t.title,true),lead:"",body:`${e.reporterError?`<p class="mushi-error-inline" role="alert">${M(e.reporterError)}</p>`:""}${r||(e.listLoading?Nt(t.loading):`<p class="mushi-empty">${M(t.empty)}</p>`)}`,footer:""}}function Mp(e){let t=e.locale.flows.leaderboard,r=e.globalLeaderboard!==null||e.globalLeaderboardLoading,n=r?e.globalLeaderboard??[]:e.leaderboardEntries??[],i=r?e.globalLeaderboardLoading:e.leaderboardLoading,o=n.map((a,u)=>{let d=a.rank||u+1;return `<li class="mushi-lb-row${e.testerReputation&&a.tester_id===e.testerReputation.tester_id?" me":""}"><span>#${d}</span><span class="mushi-row-title">${M(a.public_handle??a.display_name??t.anon)}</span><span>${(a.points_30d??a.total_points).toLocaleString()} pts</span></li>`}).join(""),s=e.testerReputation?.rank;return {header:Ne(e,t.title,true),lead:"",body:`${i?Nt(t.loading):""}${!i&&!n.length?`<p class="mushi-empty">${M(t.empty)}</p>`:""}<ol class="mushi-lb">${o}</ol>${s?`<p class="mushi-note">${M(t.myRank.replace("{rank}",String(s)))}</p>`:e.testerJwt?"":ce("open-account",M(t.signInPrompt),"mushi-link-btn")}<p class="mushi-note">${M(t.footer)}</p>`,footer:""}}function Lp(e){let t=e.locale.flows.account,r=e.testerInfo;if(r){let n=r.public_handle??r.display_name??e.locale.flows.leaderboard.anon,i=e.testerReputation,o=i?t.rankSummary.replace("{rank}",String(i.rank??"\u2014")).replace("{points}",(i.points_30d??0).toLocaleString()):"";return {header:Ne(e,t.title,true),lead:"",body:`<div class="mushi-thread-summary"><p class="mushi-summary-text">${M(n)}</p>${o?`<p class="mushi-note">${M(o)}</p>`:""}</div>${ce("open-cross-app-reports",M(t.crossAppReports),"mushi-menu-item")}${ce("open-global-leaderboard",M(t.viewLeaderboard),"mushi-menu-item")}${ce("sign-out-tester",M(t.signOut),"mushi-link-btn")}`,footer:""}}return e.magicLinkSent?{header:Ne(e,t.checkEmailTitle,true),lead:"",body:`<p class="mushi-note">${M(t.magicLinkSent.replace("{email}",e.magicLinkEmail))}</p>${ce("resend-magic-link",M(t.resendEmail),"mushi-link-btn")}${e.magicLinkError?`<p class="mushi-error-inline" role="alert">${M(e.magicLinkError)}</p>`:""}`,footer:""}:{header:Ne(e,t.joinTitle,true),lead:"",body:`<p class="mushi-note">${M(t.signInPrompt)}</p><input type="email" class="mushi-input" data-role="magic-link-email" aria-label="${M(t.emailLabel)}" placeholder="${M(t.emailPlaceholder)}" autocomplete="email" value="${M(e.magicLinkEmail)}" />${e.magicLinkError?`<p class="mushi-error-inline" role="alert">${M(e.magicLinkError)}</p>`:""}`,footer:`<span></span>${ce("send-magic-link",M(e.magicLinkSending?t.sending:t.sendLink),"mushi-submit",e.magicLinkSending?' aria-busy="true"':"")}`}}function Dp(e){let t=e.locale.flows.crossApp,r=e.crossAppReports??[],n=new Map;for(let o of r){let s=o.project_id??"unknown";n.has(s)||n.set(s,{name:o.app_name??t.unknownApp,slug:o.app_slug??null,domain:o.app_domain??null,reports:[]}),n.get(s).reports.push(o);}let i=[...n.entries()].map(([o,s])=>`<section class="mushi-xapp-group"><h3 class="mushi-xapp-app-name">${Ua({projectId:o,appName:s.name,appSlug:s.slug,appDomain:s.domain})} ${M(s.name)}</h3>${s.reports.map(a=>{let u=Ht(a,e.lang);return `<div class="mushi-report-row"><span class="mushi-row-top">${hi(u.label,u.tone)}<span class="mushi-row-title">${M(a.title??`#${a.short_id??a.id.slice(0,8)}`)}</span><span class="mushi-row-when">${M(mr(a.created_at))}</span></span></div>`}).join("")}</section>`).join("");return {header:Ne(e,t.title,true),lead:"",body:`${e.crossAppLoading?Nt(t.loading):""}${!e.crossAppLoading&&!r.length?`<p class="mushi-empty">${M(t.empty)}</p>`:""}${i}`,footer:""}}var M,ce,Ne,Na,Nt,mr,Ua,Ka=ke(()=>{nn();});var _u={};ct(_u,{captureDomScreenshot:()=>hh});async function hh(e,t){let r=document.createElement("canvas"),n=r.getContext("2d",{willReadFrequently:true});if(!n)return t("unsupported"),null;let i=window.innerWidth,o=window.innerHeight,s=Math.min(window.devicePixelRatio||1,2);r.width=i*s,r.height=o*s,n.scale(s,s);let a=await Eh(e),u=new XMLSerializer().serializeToString(a).replace(fh,""),d=`
2
+ <svg xmlns="http://www.w3.org/2000/svg" width="${i}" height="${o}">
3
+ <foreignObject width="100%" height="100%">
4
+ <div xmlns="http://www.w3.org/1999/xhtml">
5
+ ${u}
6
+ </div>
7
+ </foreignObject>
8
+ </svg>
9
+ `,p=new Image,h=`data:image/svg+xml;charset=utf-8,${encodeURIComponent(d)}`,g=false,E=_=>{let b=_;/^img-src|^default-src/.test(b.violatedDirective??"")&&/^data/.test(b.blockedURI??"")&&(g=true);};return document.addEventListener("securitypolicyviolation",E),new Promise(_=>{let b=false,y=(T,w)=>{b||(b=true,clearTimeout(k),document.removeEventListener("securitypolicyviolation",E),w&&t(w),_(T));},k=setTimeout(()=>y(null,"timeout"),5e3);p.onload=()=>{try{if(n.drawImage(p,0,0,i,o),Zh(n,i,o)){y(null,"unsupported");return}y(r.toDataURL("image/jpeg",.7));}catch{y(null,"taint");}},p.onerror=()=>setTimeout(()=>y(null,g?"csp":"error"),0),p.src=h;})}async function Eh(e){let t=document.documentElement,r=t.cloneNode(true),n=t.querySelectorAll("link"),i=r.querySelectorAll("link"),o=new Map;n.length===i.length&&n.forEach((h,g)=>o.set(h,i[g]));let{offscreen:s,pins:a,backgrounds:u}=vh(t,r);Gh(t,r);let d=[Vt,...e?.redactSelectors??wu,...e?.maskSelectors??[],...e?.blockSelectors??[]];Bh(Array.from(t.querySelectorAll(vu)),Array.from(r.querySelectorAll(vu)),h=>s.has(h)||d.some(g=>Su(h,g))),Lh(a),await Rh(u.filter(h=>!d.some(g=>Su(h.live,g)))),r.querySelector("#mushi-mushi-widget")?.remove(),await jh(r,o),qh(r),Nh(r),Jh(r),Xh(r);let p=[Vt,...e?.redactSelectors??wu];for(let h of p)for(let g of Bi(r,h))Uh(g);for(let h of e?.blockSelectors??[])for(let g of Bi(r,h))g.remove();for(let h of e?.maskSelectors??[])for(let g of Bi(r,h))ef(g);return r}function vh(e,t){let r=new Set,n=[],i=[],o=[e,...Array.from(e.querySelectorAll("*"))],s=[t,...Array.from(t.querySelectorAll("*"))];if(o.length!==s.length)return {offscreen:r,pins:n,backgrounds:i};let a=Dh(),u=[],d=document.scrollingElement,p=new Map,h=(b,y,k)=>{let T=p.get(b);T||p.set(b,T=new Map),T.set(y,k);},g=[],E=[],_=false;for(let b=0;b<o.length;b++){let y=o[b],k=s[b],T=getComputedStyle(y);if(u.push(T),y===document.body&&(_=true),_)if(T.display==="none")h(k,"display","none");else {let w=y.parentElement;T.visibility!=="visible"&&w&&getComputedStyle(w).visibility==="visible"&&h(k,"visibility",T.visibility),T.opacity==="0"&&h(k,"opacity","0"),T.backgroundImage.includes("url(")&&E.push(b);}if(a.has(y))for(let w of yh)h(k,w,T.getPropertyValue(w));if(T.position==="sticky"&&y instanceof HTMLElement){let w=Ph(y);w&&(h(k,"position","relative"),h(k,"top",`${w.top}px`),h(k,"left",`${w.left}px`),h(k,"bottom","auto"),h(k,"right","auto"));}y!==d&&(y.scrollTop>0||y.scrollLeft>0)&&g.push(b);}for(let b of g){let y=o[b],k=y.children,T=s[b].children;for(let w=0;w<k.length&&w<T.length;w++){let R=getComputedStyle(k[w]);if(R.position==="fixed")continue;let C=p.get(T[w])?.get("transform")??R.transform,m=`translate(${-y.scrollLeft}px, ${-y.scrollTop}px)`;h(T[w],"transform",C&&C!=="none"?`${m} ${C}`:m);}}(window.scrollX||window.scrollY)&&(h(t,"position","relative"),h(t,"top",`${-window.scrollY}px`),h(t,"left",`${-window.scrollX}px`));for(let[b,y]of p){let k=Array.from(y,([T,w])=>`${T}:${w}!important`).join(";");b.setAttribute("style",`${b.getAttribute("style")??""};${k}`);}Ah(o,s,u,r,n);for(let b of E)r.has(o[b])||i.push({live:o[b],clone:s[b],value:u[b].backgroundImage});return {offscreen:r,pins:n,backgrounds:i}}async function Rh(e){let t=new Map,r=0,n=i=>{let o=t.get(i);return o||(o=t.size>=wh?Promise.resolve(null):_h(i).then(s=>!s||r+s.length>Sh?null:(r+=s.length,s)),t.set(i,o)),o};await Promise.all(e.map(async i=>{let o=Array.from(i.value.matchAll(kh),u=>u[2].trim()).filter(u=>!u.startsWith("data:"));if(o.length===0)return;let s=await Promise.all(o.map(n)),a=i.value;o.forEach((u,d)=>{s[d]&&(a=a.split(u).join(s[d]));}),a!==i.value&&i.clone.setAttribute("style",`${i.clone.getAttribute("style")??""};background-image:${a}!important`);}));}async function _h(e){if(typeof fetch!="function")return null;let t=typeof AbortController=="function"?new AbortController:null,r=setTimeout(()=>t?.abort(),Ru);try{let n=await fetch(e,{cache:"force-cache",signal:t?.signal});if(!n.ok)return null;let i=await n.blob();if(i.size>xh||!i.type.startsWith("image/"))return null;let o=new Uint8Array(await i.arrayBuffer()),s="";for(let a=0;a<o.length;a+=32768)s+=String.fromCharCode(...o.subarray(a,a+32768));return `data:${i.type};base64,${btoa(s)}`}catch{return null}finally{clearTimeout(r);}}function Ah(e,t,r,n,i){let o=document.body?e.indexOf(document.body):-1;if(o<0)return;let s=window.innerWidth,a=window.innerHeight,u=new Map,d=new Array(e.length).fill(false),p=new Array(e.length).fill(false);for(let g=o;g<e.length;g++)u.set(e[g],g);d[o]=true;for(let g=e.length-1;g>o;g--){let E=e[g],_=E.getBoundingClientRect();if((_.width>0||_.height>0)&&(_.bottom>0&&_.top<a&&_.right>0&&_.left<s?d[g]=true:p[g]=true),r[g].position==="fixed"&&(d[g]=true),d[g]){p[g]=false;let b=E.parentElement?u.get(E.parentElement):void 0;b!==void 0&&(d[b]=true);}else p[g]&&n.add(E);}let h=new Array(e.length).fill(false);for(let g=o+1;g<e.length;g++){let E=e[g],_=E.parentElement?u.get(E.parentElement):void 0;if(_===void 0)continue;if(h[_]){h[g]=true;continue}if(!p[g]||!(E instanceof HTMLElement))continue;let b=r[g];if(!Ch.test(b.display))continue;h[g]=true;let y=Th.test(r[_].display)&&b.float==="none"&&(b.position==="static"||b.position==="relative");i.push({clone:t[g],width:E.offsetWidth,height:E.offsetHeight,marginTop:y?Ih(E):null,marginBottom:y?Mh(E):null});}}function Ih(e){let t=e.previousElementSibling;return !(t instanceof HTMLElement)||t.offsetParent!==e.offsetParent?null:Math.max(0,e.offsetTop-(t.offsetTop+t.offsetHeight))}function Mh(e){let t=e.nextElementSibling;return !(t instanceof HTMLElement)||t.offsetParent!==e.offsetParent?null:Math.max(0,t.offsetTop-(e.offsetTop+e.offsetHeight))}function Lh(e){for(let t of e){t.clone.replaceChildren();let r=`width:${t.width}px!important;height:${t.height}px!important;box-sizing:border-box!important;min-width:0!important;min-height:0!important;max-width:none!important;max-height:none!important;content-visibility:visible!important;contain:none!important;`;t.marginTop!==null&&(r+=`margin-top:${t.marginTop}px!important;`),t.marginBottom!==null&&(r+=`margin-bottom:${t.marginBottom}px!important;`),t.clone.setAttribute("style",`${t.clone.getAttribute("style")??""};${r}`);}}function Dh(){try{return new Set(document.getAnimations().map(e=>e.effect?.target).filter(e=>e instanceof Element&&!e.pseudoElement))}catch{return new Set}}function Ph(e){let t=e.getBoundingClientRect(),r=e.style.getPropertyValue("position"),n=e.style.getPropertyPriority("position");e.style.setProperty("position","static","important");let i=e.getBoundingClientRect();e.style.removeProperty("position"),r&&e.style.setProperty("position",r,n);let o=t.top-i.top,s=t.left-i.left;return o||s?{top:o,left:s}:null}function Bh(e,t,r){let n=0,i=0;for(let o=0;o<t.length;o++){let s=t[o],a=e[o],u=a?.getBoundingClientRect(),d=a instanceof HTMLElement&&a.offsetWidth>0?{width:a.offsetWidth,height:a.offsetHeight}:u&&{width:u.width,height:u.height},p=null;a&&d&&d.width>0&&d.height>0&&n<gh&&i<bh&&!r(a)&&(p=Fh(a),p&&(n++,i+=p.url.length)),Hh(s,p,d);}}function Fh(e){try{let t=null,r=0,n=0;if(e instanceof HTMLCanvasElement?[t,r,n]=[e,e.width,e.height]:e instanceof HTMLImageElement&&e.complete&&e.naturalWidth>0?[t,r,n]=[e,e.naturalWidth,e.naturalHeight]:e instanceof HTMLVideoElement&&e.readyState>=2&&([t,r,n]=[e,e.videoWidth,e.videoHeight]),!t||r<=0||n<=0)return null;let i=Math.min(1,$h/Math.max(r,n)),o=document.createElement("canvas");o.width=Math.max(1,Math.round(r*i)),o.height=Math.max(1,Math.round(n*i));let s=o.getContext("2d");if(!s)return null;s.drawImage(t,0,0,o.width,o.height);let a=o.toDataURL("image/webp",.85);return a==="data:,"?null:{url:a,width:r,height:n}}catch{return null}}function Su(e,t){try{return e.closest(t)!==null}catch{return false}}function Hh(e,t,r){let n=e.ownerDocument.createElement(t?"img":"div");for(let a of e.getAttributeNames())Oh.has(a)||n.setAttribute(a,e.getAttribute(a)??"");let i=r?`width:${r.width}px;height:${r.height}px;`:"";t?(n.setAttribute("src",t.url),n.setAttribute("alt",""),n.hasAttribute("width")||n.setAttribute("width",String(t.width)),n.hasAttribute("height")||n.setAttribute("height",String(t.height)),n.setAttribute("style",`${n.getAttribute("style")??""};${i}`)):n.setAttribute("style",`${n.getAttribute("style")??""};${i}background:#d4d4d4!important;display:${e.tagName==="IMG"||e.tagName==="CANVAS"?"inline-block":"block"};`);let o=e.parentElement;(o&&o.tagName==="PICTURE"?o:e).replaceWith(n);}function Nh(e){let r=e.ownerDocument.createTreeWalker(e,NodeFilter.SHOW_COMMENT),n=[];for(let i=r.nextNode();i;i=r.nextNode())n.push(i);for(let i of n)i.parentNode?.removeChild(i);for(let i of [e,...Array.from(e.querySelectorAll("*"))])for(let o of i.getAttributeNames())mh.test(o)||i.removeAttribute(o);}function Bi(e,t){try{return Array.from(e.querySelectorAll(t))}catch{return []}}function Uh(e){for((e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement)&&(e.value="",e.setAttribute("value","")),e.textContent="",e.setAttribute("style",`${e.getAttribute("style")??""};background:#000!important;color:#000!important;text-shadow:none!important;border-color:#000!important;`),e.setAttribute("data-mushi-redacted","true");e.firstChild;)e.removeChild(e.firstChild);}function qh(e){let t=typeof location<"u"?location.origin:"";for(let r of e.querySelectorAll('link[rel="stylesheet"], link[as="style"]'))r.remove();for(let r of e.querySelectorAll("style")){let n=xu(r.textContent??"",t);n!==r.textContent&&(r.textContent=n);}for(let r of e.querySelectorAll("[style]")){let n=r.getAttribute("style");if(!n)continue;let i=xu(n,t);i!==n&&r.setAttribute("style",i);}for(let r of e.querySelectorAll("script, noscript, template"))r.remove();}function xu(e,t){return e.replace(/url\(\s*(['"]?)([^)'"]+)\1\s*\)/gi,(r,n,i)=>{let o=i.trim();return !o||o.startsWith("data:")||o.startsWith("#")?r:Qh(o,t)?"none":r})}async function jh(e,t){let r=[...Array.from(document.styleSheets),...document.adoptedStyleSheets??[]],n=await Promise.all(r.map(async o=>{let s=o.ownerNode;return o.disabled||s instanceof Element&&s.tagName==="STYLE"?"":Vh(await ku(o)??bn(o),o)})),i=e.querySelector("head")??e;r.forEach((o,s)=>{if(!n[s])return;let a=document.createElement("style");a.textContent=n[s];let u=o.ownerNode?t.get(o.ownerNode):void 0;u&&e.contains(u)?u.replaceWith(a):i.appendChild(a);});}async function ku(e,t=0){let r=e.href;if(!r||t>3||typeof fetch!="function")return null;let n=typeof AbortController=="function"?new AbortController:null,i=setTimeout(()=>n?.abort(),Ru);try{let o=await fetch(r,{cache:"force-cache",signal:n?.signal});if(!o.ok)return null;let s="";for(let u of Wh(e)){if(!(u instanceof CSSImportRule)||!u.styleSheet)continue;let d=await ku(u.styleSheet,t+1)??bn(u.styleSheet);s+=Kh(d,u);}let a=zh((await o.text()).replace(/@import\s[^;]*;/gi,""),r);return `${s}
10
+ ${a}`}catch{return null}finally{clearTimeout(i);}}function Wh(e){try{return Array.from(e.cssRules)}catch{return []}}function Kh(e,t){let r=t.layerName,n=r==null?e:`@layer ${r}{${e}}`,i=t.media?.mediaText;return i&&i!=="all"&&(n=`@media ${i}{${n}}`),`${n}
11
+ `}function Vh(e,t){let r=t.media?.mediaText;return e&&r&&r!=="all"?`@media ${r}{${e}}`:e}function zh(e,t){return e.replace(/url\(\s*(['"]?)([^)'"]+)\1\s*\)/gi,(r,n,i)=>{let o=i.trim();if(!o||/^(data:|#|[a-z][a-z\d+.-]*:)/i.test(o))return r;try{return `url(${n}${new URL(o,t).href}${n})`}catch{return r}})}function Gh(e,t){let r=e.querySelectorAll("style"),n=t.querySelectorAll("style");r.length===n.length&&r.forEach((i,o)=>{if((i.textContent??"").trim()||!i.sheet)return;let s=bn(i.sheet);s&&(n[o].textContent=s);});}function Xh(e){let t=i=>!i||i==="transparent"||/^rgba\(.*,\s*0\)$/.test(i),r=getComputedStyle(document.documentElement).backgroundColor;t(r)&&document.body&&(r=getComputedStyle(document.body).backgroundColor);let n=e;n.style.setProperty("background-color",t(r)?"Canvas":r),n.style.setProperty("min-height",`${window.innerHeight}px`);}function Jh(e){let t=document.createElement("style");t.textContent=Yh,(e.querySelector("head")??e).appendChild(t);}function bn(e){let t;try{t=e.cssRules;}catch{return ""}let r="";for(let n of Array.from(t)){if(n instanceof CSSImportRule){n.styleSheet&&(r+=bn(n.styleSheet));continue}r+=`${n.cssText}
12
+ `;}return r}function Zh(e,t,r){try{let n=Math.max(1,Math.floor(t/8)),i=Math.max(1,Math.floor(r/8));for(let o=0;o<r;o+=i)for(let s=0;s<t;s+=n)if(e.getImageData(s,o,1,1).data[3]!==0)return !1;return !0}catch{return false}}function Qh(e,t){if(!e||e.startsWith("data:")||e.startsWith("blob:"))return false;try{let r=new URL(e,typeof location<"u"?location.href:"http://localhost/");return !!t&&r.origin!==t}catch{return true}}function ef(e){(e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement)&&(e.value="",e.setAttribute("value",""),e.setAttribute("placeholder","\u2022\u2022\u2022\u2022")),e.textContent=e.children.length===0?"\u2022\u2022\u2022\u2022":e.textContent,e.setAttribute("style",`${e.getAttribute("style")??""};background:#8f8f8f!important;color:transparent!important;text-shadow:none!important;`),e.setAttribute("data-mushi-masked","true");}var fh,mh,gh,bh,vu,wu,yh,wh,Sh,xh,kh,Ch,Th,$h,Oh,Ru,Yh,Cu=ke(()=>{En();fh=/[\u0000-\u0008\u000B\u000C\u000E-\u001F￾￿]/g,mh=/^[A-Za-z_][\w.:-]*$/,gh=60,bh=12*1024*1024,vu="img, video, canvas, iframe, object, embed";wu=["[data-mushi-redact]"],yh=["transform","translate","scale","rotate","opacity","visibility","clip-path","object-position","background-position","left","top","width","height","color","background-color"];wh=40,Sh=6*1024*1024,xh=2*1024*1024;kh=/url\(\s*(['"]?)([^)'"]+)\1\s*\)/gi;Ch=/^(block|flow-root|flex|grid|list-item|inline-block|inline-flex|inline-grid|table)$/,Th=/^(block|flow-root|list-item)$/;$h=2048;Oh=new Set(["src","srcset","sizes","poster","data","loading","decoding"]);Ru=2500;Yh="*,*::before,*::after{animation:none!important;transition:none!important}";});function $i(e={}){let t=e,r=i=>{t.onFailed?.(i),tf(i);};async function n(){try{if(typeof document>"u")return null;let{captureDomScreenshot:i}=await Promise.resolve().then(()=>(Cu(),_u));return await i(t.privacy,r)}catch{return r("error"),null}}return {take:n,updateOptions(i){t=i;}}}function tf(e){try{document.dispatchEvent(new CustomEvent("mushi:screenshot_failed",{detail:{reason:e},bubbles:!1}));}catch{}}var Vt,En=ke(()=>{Vt='input[type="password"],input[autocomplete^="cc-"],[data-private],[data-mushi-mask]';});var Hu={};ct(Hu,{deviceDraw:()=>Mf,journeyRecordingDecision:()=>Af,readTabOptIn:()=>If});function Af(e){if(e.mode===false)return false;if(e.mode!=="on-demand"||e.tabOptIn)return true;let t=e.window;if(!t)return false;let r=Date.parse(t.recordUntil);if(!Number.isFinite(r)||r<=e.now)return false;let n=Number.isFinite(t.sampleRate)?Math.min(1,Math.max(0,t.sampleRate)):0;return e.draw<n}function If(e){if(typeof window>"u")return false;let t=null;try{t=new URL(window.location.href).searchParams.get(Tf);}catch{t=null;}try{return t==="1"||t==="true"?window.sessionStorage.setItem(zi(e),"1"):(t==="0"||t==="false")&&window.sessionStorage.removeItem(zi(e)),window.sessionStorage.getItem(zi(e))==="1"}catch{return t==="1"||t==="true"}}function Mf(e,t=Math.random){if(typeof window>"u")return t();try{let r=Number(window.localStorage.getItem(Gi(e)));if(window.localStorage.getItem(Gi(e))!==null&&Number.isFinite(r)&&r>=0&&r<1)return r;let n=t();return window.localStorage.setItem(Gi(e),String(n)),n}catch{return t()}}var Tf,zi,Gi,Nu=ke(()=>{Tf="mushi_journeys",zi=e=>`mushi:journeys:tab:${e}`,Gi=e=>`mushi:journeys:draw:${e}`;});var Uu={};ct(Uu,{grabMaskedTabFrame:()=>Lf});async function Lf(e,t){let r=await e,n=r.getVideoTracks?.()[0]?.getSettings?.().displaySurface;if(n&&n!=="browser")throw r.getTracks().forEach(a=>a.stop()),Object.assign(new Error("Only this tab can be captured"),{name:"NotAllowedError"});let i=t.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 s=document.createElement("video");try{s.muted=!0,s.srcObject=r,await s.play(),await new Promise(u=>setTimeout(u,150));let a=document.createElement("canvas");return a.width=s.videoWidth,a.height=s.videoHeight,a.getContext("2d")?.drawImage(s,0,0),a.toDataURL("image/jpeg",.7)}finally{r.getTracks().forEach(a=>a.stop()),s.srcObject=null,o.remove();}}var qu=ke(()=>{});var ju={};ct(ju,{createScreenshotAnnotation:()=>Df});function Df(e,t){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 s=document.createElement("canvas"),a=document.createElement("canvas"),u=Math.min(1,720/i.width),d=Math.round(i.width*u),p=Math.round(i.height*u);for(let C of [s,a])C.width=d,C.height=p,C.style.width="100%",C.style.height="auto",C.style.display="block";a.style.position="absolute",a.style.left="0",a.style.top="0",a.style.cursor="crosshair";let h=s.getContext("2d"),g=a.getContext("2d");if(!h||!g){n(new Error("Canvas not supported"));return}h.drawImage(i,0,0,d,p),o.appendChild(s),o.appendChild(a),t.appendChild(o);let E="highlight",_=false,b=null,y=[],k=C=>{let m=a.getBoundingClientRect(),f="touches"in C?C.touches[0]??C.changedTouches[0]:null,S=f?f.clientX:C.clientX,A=f?f.clientY:C.clientY;return {x:(S-m.left)/m.width*d,y:(A-m.top)/m.height*p}},T=()=>{g.clearRect(0,0,d,p);for(let C of y)if(C.tool==="highlight"&&C.points.length>=2){let[m,f]=C.points;g.fillStyle="rgba(255, 230, 0, 0.35)",g.fillRect(Math.min(m.x,f.x),Math.min(m.y,f.y),Math.abs(f.x-m.x),Math.abs(f.y-m.y));}else if(C.tool==="arrow"&&C.points.length>=2){let[m,f]=C.points;g.strokeStyle="#ef4444",g.lineWidth=3,g.beginPath(),g.moveTo(m.x,m.y),g.lineTo(f.x,f.y),g.stroke();}},w=C=>{_=true,b=k(C);},R=C=>{if(!_||!b)return;_=false;let m=k(C);if(E==="blur"){let f=Math.min(b.x,m.x),S=Math.min(b.y,m.y),A=Math.abs(m.x-b.x),$=Math.abs(m.y-b.y);A>=1&&$>=1&&(h.filter="blur(8px)",h.drawImage(s,f,S,A,$,f,S,A,$),h.filter="none");}else y.push({tool:E,points:[b,m]});b=null,T();};a.addEventListener("mousedown",w),a.addEventListener("mouseup",R),a.addEventListener("touchstart",w,{passive:true}),a.addEventListener("touchend",R),r({canvas:s,setTool(C){E=C;},getDataUrl(){let C=document.createElement("canvas");C.width=d,C.height=p;let m=C.getContext("2d");return m?(m.drawImage(s,0,0),m.drawImage(a,0,0),C.toDataURL("image/jpeg",.85)):e},destroy(){a.removeEventListener("mousedown",w),a.removeEventListener("mouseup",R),a.removeEventListener("touchstart",w),a.removeEventListener("touchend",R),o.remove();}});},i.onerror=()=>n(new Error("Failed to load screenshot")),i.src=e;})}var Wu=ke(()=>{});var El=4194304,Jo=1.5*1024*1024;function yl(e){try{return JSON.stringify(e)}catch{return null}}function vl(e,t=El){let r=yl(e);if(r===null)return {ok:false,bytes:0,maxBytes:t,serializeFailed:true,reason:"Report could not be serialized (circular reference in metadata?)"};let n=new TextEncoder().encode(r).length;return n<=t?{ok:true,bytes:n,maxBytes:t}:{ok:false,bytes:n,maxBytes:t,reason:`Report payload ${Lo(n)} exceeds limit ${Lo(t)}`}}function Lo(e){return e<1024?`${e} B`:e<1024*1024?`${(e/1024).toFixed(1)} KB`:`${(e/(1024*1024)).toFixed(2)} MB`}function Zo(){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 jr(e){return Array.from(e).map(t=>t.toString(16).padStart(2,"0")).join("")}async function Pt(e){let t=Zo();if(t){let n=await t.digest("SHA-256",new TextEncoder().encode(e));return jr(new Uint8Array(n))}let{sha256:r}=await Promise.resolve().then(()=>(Mn(),In));return jr(r(new TextEncoder().encode(e)))}async function wl(e,t){let r=Zo();if(r){let s=await r.importKey("raw",new TextEncoder().encode(e),{name:"HMAC",hash:"SHA-256"},false,["sign"]),a=await r.sign("HMAC",s,new TextEncoder().encode(t));return jr(new Uint8Array(a))}let{hmac:n}=await Promise.resolve().then(()=>(Mo(),Io)),{sha256:i}=await Promise.resolve().then(()=>(Mn(),In)),o=n(i,new TextEncoder().encode(e),new TextEncoder().encode(t));return jr(o)}var Sl=60*1024;function xl(e){return {mushiBeacon:true,path:e.path,headers:e.headers,body:e.body}}function Rl(e,t=typeof location<"u"?location.origin:""){if(!e)return false;if(e.startsWith("/"))return true;if(!t)return false;try{return new URL(e,t).origin===t}catch{return false}}function kl(e){try{let t=e.startsWith("/")?new URL(e,"https://tunnel.local"):new URL(e);return `${t.pathname}${t.search}`}catch{return e}}function _l(e){let t=e.fetchImpl??(typeof fetch=="function"?fetch:void 0);if(t)try{return t(e.url,{method:"POST",headers:{"Content-Type":"application/json",...e.headers},body:e.body,keepalive:!0}),!0}catch{}let r=e.sendBeacon??(typeof navigator<"u"?navigator.sendBeacon?.bind(navigator):void 0);if(!r||!Rl(e.url))return false;let n=e.body;try{n=JSON.parse(e.body);}catch{n=e.body;}let i=JSON.stringify(xl({path:e.path??kl(e.url),headers:e.headers,body:n}));if(i.length>Sl)return false;try{return r(e.url,new Blob([i],{type:"application/json"}))}catch{return false}}var Qo=false;function es(){Qo=true;}function Cl(){return Qo}var nr=null;function ts(){let e=nr;return nr=null,!!e&&_l(e)}var Do=false,Tl="X-Mushi-User-Token",Al="X-Mushi-Project",Il="X-Mushi-SDK-Package",Ml="X-Mushi-SDK-Version";function Ll(e){let t={"Content-Type":"application/json","X-Mushi-Api-Key":e.apiKey,[Al]:e.projectId};return e.sdkPackage&&(t[Il]=e.sdkPackage),e.sdkVersion&&(t[Ml]=e.sdkVersion),e.userToken&&(t[Tl]=e.userToken),e.internalKind&&(t[zr]=e.internalKind),t}var ir="https://dxptnwrhwsqckaftyymj.supabase.co/functions/v1/api",zr="X-Mushi-Internal",cr="__mushiInternal";function Dl(e,t){let r=t?.trim();return r?r.replace(/\/$/,""):(e??ir).replace(/\/$/,"")}var Pl=1e4,Bl=2,$l=4,Fl=3e4,Ol=1e4;function rs(e){let{projectId:t,apiKey:r,apiEndpoint:n=ir,tunnel:i,timeout:o=Pl,maxRetries:s=Bl,getUserToken:a,sdkPackage:u,sdkVersion:d,circuitBreaker:p}=e,h=Dl(n,i),g=p?.enabled!==false,E=Math.max(1,p?.threshold??$l),_=Math.max(1e3,p?.cooldownMs??Fl),b=0,y=0,k=()=>g&&y>Date.now(),T=()=>{b=0,y=0;},w=()=>{g&&(b+=1,b>=E&&(y=Date.now()+_));};async function R(m,f,S,A=s,$,N,q){let ee=$!=="reporter-poll";if(ee&&k())return {ok:false,error:{code:"CIRCUIT_OPEN",message:"Endpoint temporarily unavailable; retrying later."}};let U=`${h}${f}`,Ee=new AbortController,I=setTimeout(()=>Ee.abort(),o),$e=a?.()??null,ye={...Ll({apiKey:r,projectId:t,sdkPackage:u,sdkVersion:d,userToken:$e,internalKind:$}),...N},Ie=S?JSON.stringify(S):void 0,he=null;Ie&&m!=="GET"&&$!=="reporter-poll"&&(he={url:U,headers:ye,body:Ie,path:f},nr=he);try{let V=await fetch(U,{method:m,headers:ye,body:Ie,keepalive:Cl(),signal:Ee.signal,...q?{cache:q}:{},...$?{[cr]:$}:{}});if(clearTimeout(I),V.status===307||V.status===308){let Z=V.headers.get("Location");if(Z&&A>0){let x=Z.replace(/\/v1\/.*$/,"").replace(/\/$/,"");if(x!==h)return h=x,R(m,f,S,A-1,$,N,q)}}if(!V.ok){let Z=await V.json().catch(()=>({}));if((V.status===401||V.status===403)&&!Do){Do=!0;let Y=h===ir?"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 ${V.status}). Check your Project ID and API key scope (must be "report:write"). `+Y);}let x=V.status===429,D=V.status>=500||x,F=x?Hl(V.headers.get("Retry-After")):null,O=F===null||F<=Ol;return D&&A>0&&O?(await Po(F??Bo(s-A)),R(m,f,S,A-1,$,N)):(ee&&(D?w():T()),{ok:!1,error:{code:Z.error?.code||`HTTP_${V.status}`,message:Z.error?.message||Z.message||`HTTP ${V.status} error`,status:V.status}})}let ne=await V.json(),Fe=ne&&typeof ne=="object"&&"ok"in ne&&"data"in ne?ne.data:ne;return ee&&T(),{ok:!0,data:Fe}}catch(V){return clearTimeout(I),A>0&&Nl(V)?(await Po(Bo(s-A)),R(m,f,S,A-1,$,N)):(ee&&w(),{ok:false,error:{code:"NETWORK_ERROR",message:V instanceof Error?V.message:"Unknown network error"}})}finally{nr===he&&(nr=null);}}async function C(m,f,S,A){try{let $=await Pt(S),N=String(Date.now());return await R(m,f,A,s,"reporter-poll",{"X-Reporter-Token-Hash":$,"X-Reporter-Ts":N,"X-Reporter-Hmac":await wl(r,`${t}.${N}.${$}`)})}catch($){return {ok:false,error:{code:"NETWORK_ERROR",message:$ instanceof Error?$.message:"Unknown error"}}}}return {async submitReport(m){let f=vl(m);return f.ok?R("POST","/v1/reports",m,s,"report-submit"):{ok:false,error:{code:f.serializeFailed?"SERIALIZE_FAILED":"PAYLOAD_TOO_LARGE",message:f.reason??"Report payload exceeds size limit"}}},async getReportStatus(m){return R("GET",`/v1/reports/${m}/status`,void 0,s,"report-status")},async getSdkConfig(m){return R("GET","/v1/sdk/config",void 0,s,"sdk-config",void 0,m?.fresh?"no-store":void 0)},async askAssistant(m){return R("POST","/v1/sdk/assistant",{message:m.message,threadId:m.threadId??null,context:m.context??null},1,"community")},async getLatestSdkVersion(m){let f=new URLSearchParams({package:m}).toString();return R("GET",`/v1/sdk/latest-version?${f}`,void 0,s,"sdk-config")},async postDiscoveryEvent(m){return R("POST","/v1/sdk/discovery",m,1,"discovery")},async listReporterReports(m){return C("GET","/v1/reporter/reports",m)},reporterRequest:C,async listReporterComments(m,f){return C("GET",`/v1/reporter/reports/${m}/comments`,f)},async replyToReporterReport(m,f,S,A){return C("POST",`/v1/reporter/reports/${m}/reply`,f,{body:S,...A?{feedback_signal:A}:{}})},async reopenReporterReport(m,f,S){return C("POST",`/v1/reporter/reports/${m}/reopen`,f,{note:S??""})},async listNotifications(m,f){let S=new URLSearchParams;f?.since&&S.set("since",f.since),f?.limit&&S.set("limit",String(f.limit));let A=S.size?`?${S.toString()}`:"";return C("GET",`/v1/notifications${A}`,m)},async markNotificationRead(m,f){return C("POST",`/v1/notifications/${m}/read`,f,{})},async listReporterFeatureBoard(m){return C("GET","/v1/reporter/feature-board",m)},async voteReporterFeatureBoard(m,f){return C("POST",`/v1/reporter/feature-board/${m}/vote`,f,{})},async postSessionEvent(m){return R("POST","/v1/sdk/session",m,1,"discovery")},async postProductEvents(m){return R("POST","/v1/sdk/events",m,1,"discovery")},async submitActivity(m,f,S){return R("POST","/v1/sdk/activity",{user_id:m,user_traits:S?.userTraits,opted_in:S?.optedIn,reporter_token_hash:S?.reporterTokenHash,...S?.hostJwt?{host_jwt:S.hostJwt}:{},events:f},1,"discovery")},async getMyPoints(m){return R("GET",`/v1/sdk/me/points?userId=${encodeURIComponent(m)}`,void 0,1,"reporter-poll")},async getMyTier(m){return R("GET",`/v1/sdk/me/tier?userId=${encodeURIComponent(m)}`,void 0,1,"reporter-poll")},async getMyHistory(m,f){let S=new URLSearchParams({userId:m,...f?.limit?{limit:String(f.limit)}:{}});return R("GET",`/v1/sdk/me/history?${S}`,void 0,1,"reporter-poll")},async getHallOfFame(m=10){return R("GET",`/v1/sdk/hall-of-fame?limit=${m}`,void 0,1,"reporter-poll")},async sendMagicLink(m){return R("POST","/v1/tester/magic-link",{email:m},1,"community")},async linkReporterToken(m,f){return R("POST","/v1/tester/link-reporter",{reporter_token_hash:m},1,"community",{Authorization:`Bearer ${f}`})},async getCrossAppReports(m,f){let S=new URLSearchParams;f?.limit&&S.set("limit",String(f.limit)),f?.offset&&S.set("offset",String(f.offset));let A=S.size?`?${S.toString()}`:"";return R("GET",`/v1/tester/cross-app-reports${A}`,void 0,1,"community",{Authorization:`Bearer ${m}`})},async getMyReputation(m){return R("GET","/v1/tester/reputation",void 0,1,"community",{Authorization:`Bearer ${m}`})},async getPublicLeaderboard(m=20){return R("GET",`/v1/public/tester-leaderboard?limit=${m}`,void 0,1,"reporter-poll")},async getTesterStatus(m){return R("GET","/v1/me/tester-status",void 0,1,"community",{Authorization:`Bearer ${m}`})}}}function Po(e){return new Promise(t=>setTimeout(t,e))}function Bo(e){return Math.min(1e3*2**e+Math.random()*500,1e4)}function Hl(e,t=Date.now()){if(!e)return null;let r=e.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-t,0)}function Nl(e){return e instanceof DOMException&&e.name==="AbortError"||e instanceof TypeError}function Ln(e,t){if(!e||!t||t.length===0)return false;for(let r of t){if(typeof r=="string"){if(e.includes(r))return true;continue}try{if(r.lastIndex=0,r.test(e))return !0}catch{}}return false}function dr(e){if(Ln(e.message,e.ignoreErrors))return true;let t=e.filename?.trim()||"";return !!(t&&Ln(t,e.denyUrls)||e.allowUrls&&e.allowUrls.length>0&&(!t||!Ln(t,e.allowUrls)))}function Dn(...e){return e.find(t=>t!==void 0&&t!=="")}function _e(e){try{let t=undefined;return typeof t=="object"&&t!==null?t[e]:void 0}catch{return}}function Ye(e){try{return e()}catch{return}}function zn(){let e=Dn(_e("VITE_MUSHI_PROJECT_ID"),_e("NEXT_PUBLIC_MUSHI_PROJECT_ID"),_e("NUXT_PUBLIC_MUSHI_PROJECT_ID"),_e("EXPO_PUBLIC_MUSHI_PROJECT_ID"),Ye(()=>process.env.NEXT_PUBLIC_MUSHI_PROJECT_ID),Ye(()=>process.env.EXPO_PUBLIC_MUSHI_PROJECT_ID),Ye(()=>process.env.MUSHI_PROJECT_ID)),t=Dn(_e("VITE_MUSHI_API_KEY"),_e("NEXT_PUBLIC_MUSHI_API_KEY"),_e("NUXT_PUBLIC_MUSHI_API_KEY"),_e("EXPO_PUBLIC_MUSHI_API_KEY"),Ye(()=>process.env.NEXT_PUBLIC_MUSHI_API_KEY),Ye(()=>process.env.EXPO_PUBLIC_MUSHI_API_KEY),Ye(()=>process.env.MUSHI_API_KEY)),r=Dn(_e("VITE_MUSHI_API_ENDPOINT"),_e("NEXT_PUBLIC_MUSHI_API_ENDPOINT"),_e("NUXT_PUBLIC_MUSHI_API_ENDPOINT"),_e("EXPO_PUBLIC_MUSHI_API_ENDPOINT"),Ye(()=>process.env.NEXT_PUBLIC_MUSHI_API_ENDPOINT),Ye(()=>process.env.EXPO_PUBLIC_MUSHI_API_ENDPOINT),Ye(()=>process.env.MUSHI_API_ENDPOINT)),n={};return e&&(n.projectId=e),t&&(n.apiKey=t),r&&(n.apiEndpoint=r),n}var Ul=["VITE_","NEXT_PUBLIC_","NUXT_PUBLIC_","EXPO_PUBLIC_",""],ql={projectId:"MUSHI_PROJECT_ID",apiKey:"MUSHI_API_KEY"};function ns(){let e=zn(),t=[];if(e.projectId||t.push("projectId"),e.apiKey||t.push("apiKey"),t.length===0)return {resolved:e,missing:t,nearMisses:[],message:null};let r=(()=>{try{let a=undefined;return typeof a=="object"&&a!==null?a:null}catch{return null}})(),n=(()=>{try{return typeof process<"u"&&process.env?process.env:null}catch{return null}})(),i=[];for(let a of t)for(let u of Ul){let d=`${u}${ql[a]}`;r&&r[d]?i.push({field:a,key:d,via:"import.meta.env"}):n&&n[d]&&i.push({field:a,key:d,via:"process.env"});}let o=r?"VITE_MUSHI_*":"NEXT_PUBLIC_MUSHI_* (Next.js), EXPO_PUBLIC_MUSHI_* (Expo), or MUSHI_* (Node / React Native)",s=[`[mushi] Missing ${t.join(" and ")} \u2014 the SDK will not initialize.`];for(let a of i)s.push(`[mushi] Found ${a.key} in ${a.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 s.push(`[mushi] This runtime reads: ${o}. Set the matching variable(s) and restart your dev server.`),i.length===0&&s.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:e,missing:t,nearMisses:i,message:s.join(`
13
+ `)}}var $o=["production-calm","beta-loud","internal-debug","manual-only","minimal","standard","full"],jl=["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 Wl(e){switch(e){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 is(e){let t=Wl(e.preset);return t?{...e,widget:{...t.widget,...e.widget},capture:{...t.capture,...e.capture},proactive:{...t.proactive,...e.proactive,cooldown:{...t.proactive?.cooldown,...e.proactive?.cooldown}}}:e}function Kl(){let e=t=>t==="1"||t==="true";try{if(typeof process<"u"&&process.env&&e(process.env.MUSHI_SILENT))return !0}catch{}try{let t=undefined;if(t&&typeof t=="object"&&(e(t.MUSHI_SILENT)||e(t.VITE_MUSHI_SILENT)))return !0}catch{}return false}function os(e){try{if(Kl()||!e||typeof e!="object")return;let t=Object.keys(e).filter(r=>!jl.includes(r));t.length>0&&console.error(`[mushi] Unknown config key${t.length>1?"s":""}: ${t.map(r=>`\`${r}\``).join(", ")} \u2014 check for typos (see MushiConfig). Ignored.`),e.preset!==void 0&&!$o.includes(e.preset)&&console.error(`[mushi] Unknown preset \`${String(e.preset)}\` \u2014 expected one of ${$o.map(r=>`'${r}'`).join(", ")}. Preset ignored.`);}catch{}}var Vl=10,zl=2e3,Gl=[/^(.)\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],Yl=/^[bcdfghjklmnpqrstvwxz]{6,}/i;function ss(e={}){let{enabled:t=true,blockObviousSpam:r=true,minDescriptionLength:n=Vl,maxDescriptionLength:i=zl}=e;function o(a){if(!t)return {passed:true};let u=a.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 Gl)if(p.test(u))return {passed:false,reason:"Detected as spam"};if(Yl.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 s(a){let u=a.trim();return u.length<=i?u:u.slice(0,i)+"..."}return {check:o,truncate:s}}var Fo={debug:10,info:20,warn:30,error:40,fatal:50,silent:99},Xl={debug:"DBG",info:"INF",warn:"WRN",error:"ERR",fatal:"FTL"},ge={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"},Jl={debug:ge.dim,info:ge.green,warn:ge.yellow,error:ge.red,fatal:`${ge.bgRed}${ge.white}${ge.bold}`};function Zl(){try{if(typeof globalThis.Deno<"u")return "json"}catch{}let e=typeof globalThis.process<"u"?globalThis.process:void 0;if(e?.env){if(e.env.NODE_ENV==="production"||e.env.LOG_FORMAT==="json")return "json";if(e.env.LOG_FORMAT==="pretty"||e.stdout?.isTTY)return "pretty"}return typeof globalThis.window<"u"?"pretty":"json"}function Ql(e){let t=[];for(let[r,n]of Object.entries(e))n!=null&&(typeof n=="object"?t.push(`${r}=${JSON.stringify(n)}`):t.push(`${r}=${String(n)}`));return t.join(" ")}function ec(e){let{ts:t,level:r,scope:n,msg:i,...o}=e,s=t.slice(11,23),a=Jl[r]??"",u=Xl[r]??r.toUpperCase(),d=Object.keys(o).length>0?` ${ge.dim}${Ql(o)}${ge.reset}`:"";return `${ge.dim}${s}${ge.reset} ${a}${u}${ge.reset} ${ge.cyan}[${n}]${ge.reset} ${i}${d}`}function tc(e){return JSON.stringify(e)}function rc(e){return e==="stderr"?(t,r)=>{console.error(r);}:(t,r)=>{switch(t){case "error":case "fatal":console.error(r);break;case "warn":console.warn(r);break;default:console.log(r);}}}function as(e,t,r,n,i){let o=t;function s(a,u,d){if(Fo[a]<Fo[o])return;let p={ts:new Date().toISOString(),level:a,scope:e,msg:u,...r,...d};i(a,n(p));}return {debug:(a,u)=>s("debug",a,u),info:(a,u)=>s("info",a,u),warn:(a,u)=>s("warn",a,u),error:(a,u)=>s("error",a,u),fatal:(a,u)=>s("fatal",a,u),child(a,u){return as(`${e}:${a}`,o,{...r,...u},n,i)},setLevel(a){o=a;}}}function Bt(e){let{scope:t,level:r="info",meta:n={},format:i="auto",destination:o="stdout"}=e,a=(i==="auto"?Zl():i)==="json"?tc:ec,u=rc(o);return as(t,r,n,a,u)}var Gn={debug:()=>{},info:()=>{},warn:()=>{},error:()=>{},fatal:()=>{},child:()=>Gn,setLevel:()=>{}},nc="mushi-mushi-keyring",mt="keys",us="offline-queue/v1",Hr=null,Nr=null;function ic(){return typeof globalThis<"u"&&typeof globalThis.crypto<"u"&&typeof globalThis.crypto.subtle<"u"&&typeof indexedDB<"u"}function ls(){return new Promise((e,t)=>{let r=indexedDB.open(nc,1);r.onupgradeneeded=()=>{try{let n=r.result;if(!n)return;n.objectStoreNames.contains(mt)||n.createObjectStore(mt);}catch{}},r.onsuccess=()=>{let n=r.result;if(!n||!n.objectStoreNames.contains(mt)){try{n?.close();}catch{}t(new Error("key object store unavailable"));return}e(n);},r.onerror=()=>t(r.error);})}async function oc(){let e=await ls();return new Promise((t,r)=>{let i=e.transaction(mt,"readonly").objectStore(mt).get(us);i.onsuccess=()=>t(i.result??null),i.onerror=()=>r(i.error);})}async function sc(e){let t=await ls();return new Promise((r,n)=>{let i=t.transaction(mt,"readwrite");i.objectStore(mt).put(e,us),i.oncomplete=()=>r(),i.onerror=()=>n(i.error);})}async function cs(){if(Hr)return Hr;if(Nr)return Nr;if(!ic())throw new Error("Web Crypto + IndexedDB required for offline queue encryption");return Nr=(async()=>{let e=await oc();if(e)return Hr=e,e;let t=await crypto.subtle.generateKey({name:"AES-GCM",length:256},false,["encrypt","decrypt"]);return await sc(t),Hr=t,t})(),Nr}function Oo(e){let t="";for(let r of e)t+=String.fromCharCode(r);return btoa(t)}function Ho(e){let t=atob(e),r=new Uint8Array(new ArrayBuffer(t.length));for(let n=0;n<t.length;n++)r[n]=t.charCodeAt(n);return r}async function ac(e){let t=await cs(),r=crypto.getRandomValues(new Uint8Array(12)),n=new TextEncoder().encode(JSON.stringify(e)),i=new Uint8Array(await crypto.subtle.encrypt({name:"AES-GCM",iv:r},t,n));return {_mme:1,iv:Oo(r),ct:Oo(i)}}function uc(e){return !!e&&typeof e=="object"&&e._mme===1&&typeof e.iv=="string"&&typeof e.ct=="string"}async function lc(e){let t=await cs(),r=Ho(e.iv),n=Ho(e.ct),i=await crypto.subtle.decrypt({name:"AES-GCM",iv:r},t,n);return JSON.parse(new TextDecoder().decode(i))}var Ce=Bt({scope:"mushi:queue",level:"warn"}),cc="mushi-mushi",pe="offline-reports",dc=1,Pn="mushi_offline_queue",pc=10,hc=6e4,fc=3e4,mc=8,gc=1440*60*1e3;function ds(e={}){let{enabled:t=true,maxQueueSize:r=50,syncOnReconnect:n=true,encryptAtRest:i=true}=e,o=null,s=null,a=null,u=null,d=null;async function p(x){let D=new Date().toISOString();if(!i)return {...x,queuedAt:D};try{let F=await ac(x);return {id:x.id,queuedAt:D,payload:F}}catch(F){return Ce.warn("Offline queue: encryption failed, storing plaintext",{err:String(F)}),{...x,queuedAt:D}}}async function h(x){if(g(x))try{return await lc(x.payload)}catch(D){return Ce.warn("Offline queue: decrypt failed, dropping row",{err:String(D),id:x.id}),null}return x}function g(x){return !!x.payload&&uc(x.payload)}function E(x){let D=x.attempts;return typeof D=="number"&&Number.isFinite(D)?D:0}function _(x,D){let F=x.queuedAt;if(!F)return false;let O=Date.parse(F);return Number.isNaN(O)?false:D-O>gc}function b(){return a||(typeof indexedDB<"u"?a="indexeddb":typeof localStorage<"u"?a="localstorage":a="none",a)}function y(){return new Promise((x,D)=>{let F=indexedDB.open(cc,dc);F.onupgradeneeded=()=>{try{let O=F.result;if(!O)return;O.objectStoreNames.contains(pe)||O.createObjectStore(pe,{keyPath:"id"});}catch{}},F.onsuccess=()=>{let O=F.result;if(!O||!O.objectStoreNames.contains(pe)){a="localstorage";try{O?.close();}catch{}D(new Error("queue object store unavailable"));return}x(O);},F.onerror=()=>{a="localstorage",D(F.error);};})}async function k(x){let D=await y(),F=await p(x);return new Promise((O,Y)=>{let Me=D.transaction(pe,"readwrite");Me.objectStore(pe).put(F),Me.oncomplete=()=>O(),Me.onerror=()=>Y(Me.error);})}async function T(){let x=await y();return new Promise((D,F)=>{let Y=x.transaction(pe,"readonly").objectStore(pe).getAll();Y.onsuccess=()=>D(Y.result),Y.onerror=()=>F(Y.error);})}async function w(x){let D=await y();return new Promise((F,O)=>{let Y=D.transaction(pe,"readwrite");Y.objectStore(pe).delete(x),Y.oncomplete=()=>F(),Y.onerror=()=>O(Y.error);})}async function R(x){let D=await y();return new Promise((F,O)=>{let Y=D.transaction(pe,"readwrite");Y.objectStore(pe).put(x),Y.oncomplete=()=>F(),Y.onerror=()=>O(Y.error);})}async function C(){let x=await y();return new Promise((D,F)=>{let Y=x.transaction(pe,"readonly").objectStore(pe).count();Y.onsuccess=()=>D(Y.result),Y.onerror=()=>F(Y.error);})}async function m(){let x=await y();return new Promise((D,F)=>{let O=x.transaction(pe,"readwrite");O.objectStore(pe).clear(),O.oncomplete=()=>D(),O.onerror=()=>F(O.error);})}function f(){try{let x=localStorage.getItem(Pn);return x?JSON.parse(x):[]}catch{return []}}function S(x){try{localStorage.setItem(Pn,JSON.stringify(x));}catch{}}async function A(x){let D=f(),F=await p(x),O=D.findIndex(Y=>Y.id===x.id);O>=0?D[O]=F:D.push(F),S(D);}function $(x){let D=f().filter(F=>F.id!==x);S(D);}function N(x){let D=f(),F=D.findIndex(O=>O.id===x.id);F>=0&&(D[F]=x,S(D));}async function q(x,D){try{x==="indexeddb"?await w(D):$(D);}catch(F){Ce.debug("Offline queue: row removal failed (will age out)",{id:D,err:String(F)});}}async function ee(x,D){try{return x==="indexeddb"?await R(D):N(D),!0}catch(F){return Ce.debug("Offline queue: row persist failed",{id:D.id,err:String(F)}),false}}async function U(){let x=b();if(x==="none")return {backend:x,rows:[]};if(x==="indexeddb")try{return {backend:x,rows:await T()}}catch{a="localstorage";}return {backend:"localstorage",rows:f()}}async function Ee(x){let D=b();if(D==="none")return Ce.debug("Offline queue: no storage backend, dropping report",{id:x.id}),D;if(D==="indexeddb")try{return await k(x),D}catch{a="localstorage";}return await A(x),"localstorage"}async function I(x){if(!t)return;if(await V()>=r){Ce.warn("Offline queue full \u2014 dropping report",{maxQueueSize:r});return}await Ee(x);}function $e(x){return Math.min(1e3*2**x+Math.random()*500,hc)}function ye(x){return new Promise(D=>setTimeout(D,x))}async function Ie(x){let{backend:D,rows:F}=await U(),O=F,Y=Date.now(),Me=[];for(let fe of O)if(_(fe,Y)){let Se=fe.id;await q(D,Se),Ce.debug("Offline queue: evicting stale report",{id:Se});}else Me.push(fe);O=Me;let je=O.slice(0,pc),Qe=0,z=0;for(let fe=0;fe<je.length;fe++){let Se=je[fe],xe=Se.id,Re=await h(Se);if(!Re){await q(D,xe),z++;continue}let H=await x.submitReport(Re);if(H.ok){await q(D,xe),Qe++;continue}if(z++,H.error?.code==="CIRCUIT_OPEN"){Ce.debug("Offline queue: circuit open, deferring the rest of the batch",{id:xe,remaining:je.length-fe});break}let _t=H.error?.code==="HTTP_400"||H.error?.status===401||H.error?.status===403||H.error?.code==="HTTP_401"||H.error?.code==="HTTP_403"||H.error?.code==="HTTP_413"||H.error?.code==="HTTP_422"||H.error?.code==="INGEST_ERROR"||H.error?.code==="VALIDATION_ERROR"||H.error?.code==="PAYLOAD_TOO_LARGE"||H.error?.code==="SERIALIZE_FAILED"||typeof H.error?.message=="string"&&/invalid payload|description must be at least|validation/i.test(H.error.message),et=!_t&&(H.error?.code==="NETWORK_ERROR"||H.error?.code==="HTTP_429"||H.error?.code==="HTTP_502"||H.error?.code==="HTTP_503"||H.error?.code==="HTTP_504"||typeof H.error?.code=="string"&&H.error.code.startsWith("HTTP_5"));if(_t)await q(D,xe);else {let tt=E(Se)+1;tt>=mc?(await q(D,xe),Ce.warn("Offline queue: giving up on report after repeated failures",{id:xe,attempts:tt,code:H.error?.code})):(Se.attempts=tt,await ee(D,Se)?Ce.debug("Offline queue: delivery failed, will retry",{id:xe,attempts:tt,code:H.error?.code,classified:et?"transient":"unclassified"}):(await q(D,xe),Ce.warn("Offline queue: dropping report (attempt counter unpersistable)",{id:xe,code:H.error?.code})));}fe<je.length-1&&await ye($e(fe));}return {sent:Qe,failed:z}}function he(x){if(!t)return Promise.resolve({sent:0,failed:0});if(u)return d||(d=u.catch(()=>{}).then(()=>(d=null,he(x)))),d;let D=Ie(x).finally(()=>{u===D&&(u=null);});return u=D,D}async function V(){if(b()==="indexeddb")try{return await C()}catch{a="localstorage";}return f().length}async function ne(){if(b()==="indexeddb")try{await m();}catch{}try{localStorage.removeItem(Pn);}catch{}}function Fe(x){if(!t||!n||typeof window>"u")return;o&&Z();let D=()=>{navigator.onLine&&he(x).catch(F=>{Ce.warn("Offline queue auto-flush failed",{err:String(F)});});};window.addEventListener("online",D),s=setInterval(()=>{V().then(F=>{F>0&&D();});},fc),o=()=>{window.removeEventListener("online",D),s&&(clearInterval(s),s=null);};}function Z(){o?.(),o=null;}return {enqueue:I,flush:he,size:V,clear:ne,startAutoSync:Fe,stopAutoSync:Z}}function Yn(){let e=typeof navigator<"u"?navigator:void 0,t=typeof window<"u"?window:void 0,r=typeof document<"u"?document:void 0,n=typeof screen<"u"?screen:void 0;Ec(e);let i=e&&"connection"in e?e.connection:void 0,o=t,s=!!o?.Capacitor,a=!!o?.cordova,u=e?.product==="ReactNative"||typeof globalThis.HermesInternal<"u",d=s||a||u?{...s?{capacitor:true}:{},...a?{cordova:true}:{},...u?{reactNative:true}:{}}:void 0;return {userAgent:e?.userAgent??"unknown",platform:e?.platform??"unknown",language:e?.language??"en",viewport:{width:t?.innerWidth??0,height:t?.innerHeight??0},url:t?.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:e?.deviceMemory,hardwareConcurrency:e?.hardwareConcurrency,route:t?.location?.pathname,nearestTestid:bc(r),userAgentData:vc(e),screen:wc(n,t),prefersColorScheme:Sc(t),prefersReducedMotion:Te(t,"(prefers-reduced-motion: reduce)"),prefersReducedData:Te(t,"(prefers-reduced-data: reduce)"),prefersContrast:xc(t),forcedColors:Te(t,"(forced-colors: active)"),online:typeof e?.onLine=="boolean"?e.onLine:void 0,displayMode:Rc(t),documentTitle:r?.title?.slice(0,200),buildId:kc(r),pageLoadTiming:_c(t),...d?{native:d}:{}}}function bc(e){if(!e)return;let t=e.activeElement??null,r=0;for(;t&&r<20;){let n=t.getAttribute?.("data-testid");if(n)return n;t=t.parentElement,r++;}}var Pe=null,No=false;function Ec(e){if(No)return;let t=e?.userAgentData;t?.getHighEntropyValues&&(No=true,t.getHighEntropyValues(["architecture","bitness","model","platformVersion","uaFullVersion","fullVersionList"]).then(r=>{Pe=r;}).catch(()=>{}));}function yc(e){if(!e?.length)return;let t=e.filter(n=>!/not.?a.?brand/i.test(n.brand));return t.length===0?void 0:t.find(n=>!/chromium|google chrome/i.test(n.brand))??t[0]}function vc(e){let t=e?.userAgentData;if(!t&&!Pe)return;let r=Pe?.fullVersionList,n=yc(r??t?.brands),i={};return n&&(i.browser=n.brand,i.browserVersion=n.version),t?.platform&&(i.os=t.platform),Pe?.platformVersion&&(i.osVersion=Pe.platformVersion),typeof t?.mobile=="boolean"&&(i.mobile=t.mobile),Pe?.model&&(i.model=Pe.model),Pe?.architecture&&(i.architecture=Pe.architecture),Pe?.bitness&&(i.bitness=Pe.bitness),Object.keys(i).length===0?void 0:i}function wc(e,t){if(!e&&!t)return;let r={};typeof e?.width=="number"&&(r.width=e.width),typeof e?.height=="number"&&(r.height=e.height),typeof t?.devicePixelRatio=="number"&&(r.devicePixelRatio=t.devicePixelRatio),typeof e?.colorDepth=="number"&&(r.colorDepth=e.colorDepth);let n=e?.orientation?.type;return n&&(r.orientation=n),Object.keys(r).length===0?void 0:r}function Te(e,t){if(e?.matchMedia)try{return e.matchMedia(t).matches}catch{return}}function Sc(e){if(e?.matchMedia)return Te(e,"(prefers-color-scheme: dark)")?"dark":Te(e,"(prefers-color-scheme: light)")?"light":"no-preference"}function xc(e){if(e?.matchMedia)return Te(e,"(prefers-contrast: more)")?"more":Te(e,"(prefers-contrast: less)")?"less":Te(e,"(prefers-contrast: custom)")?"custom":"no-preference"}function Rc(e){if(e?.matchMedia){if(Te(e,"(display-mode: fullscreen)"))return "fullscreen";if(Te(e,"(display-mode: standalone)"))return "standalone";if(Te(e,"(display-mode: minimal-ui)"))return "minimal-ui";if(Te(e,"(display-mode: browser)"))return "browser"}}function kc(e){if(!e)return;let r=e.querySelector?.('meta[name="mushi:build"]')?.content?.trim();if(r)return r.slice(0,64)}function _c(e){let t=e?.performance;if(!t?.getEntriesByType)return;let r;try{r=t.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 Bn="mushi_reporter_token";function Cc(e){return `mushi:reporter-token:${e}`}function Uo(){if(typeof crypto<"u"&&crypto.randomUUID)return `mushi_${crypto.randomUUID()}`;let e=new Uint8Array(16);if(typeof crypto<"u")crypto.getRandomValues(e);else for(let r=0;r<e.length;r++)e[r]=Math.floor(Math.random()*256);return `mushi_${Array.from(e).map(r=>r.toString(16).padStart(2,"0")).join("")}`}function $n(e){if(typeof localStorage>"u")return null;try{let t=localStorage.getItem(e);return t&&t.length>0?t:null}catch{return null}}function qo(e,t){if(!(typeof localStorage>"u"))try{localStorage.setItem(e,t);}catch{}}function re(e){if(!e){let o=$n(Bn);if(o)return o;let s=Uo();return qo(Bn,s),s}let t=Cc(e),r=$n(t);if(r)return r;let i=$n(Bn)??Uo();return qo(t,i),i}function Xn(){let e=typeof crypto<"u"?crypto:void 0;if(e?.randomUUID)return e.randomUUID();let t=new Uint8Array(16);if(e?.getRandomValues)e.getRandomValues(t);else for(let n=0;n<t.length;n++)t[n]=Math.floor(Math.random()*256);t[6]=t[6]&15|64,t[8]=t[8]&63|128;let r=Array.from(t,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 jo="mushi_fingerprint_hash";function Tc(){let e=typeof navigator<"u"?navigator:void 0,t=typeof screen<"u"?screen:void 0,r=typeof window<"u"?window:void 0;return {userAgent:e?.userAgent??"unknown",platform:e?.platform??"unknown",language:e?.language??"en",timezone:Intl?.DateTimeFormat?.()?.resolvedOptions?.()?.timeZone??"UTC",screenWidth:t?.width??0,screenHeight:t?.height??0,pixelRatio:r?.devicePixelRatio??1,deviceMemory:e?.deviceMemory,hardwareConcurrency:e?.hardwareConcurrency}}async function Ac(e){if(typeof crypto<"u"&&crypto.subtle){let r=new TextEncoder().encode(e),n=await crypto.subtle.digest("SHA-256",r);return Array.from(new Uint8Array(n)).map(i=>i.toString(16).padStart(2,"0")).join("")}let t=0;for(let r=0;r<e.length;r++)t=(t<<5)-t+e.charCodeAt(r),t|=0;return `fbk_${(t>>>0).toString(16).padStart(8,"0")}`}async function ps(){if(typeof localStorage<"u"){let n=localStorage.getItem(jo);if(n)return n}let e=Tc(),t=JSON.stringify(e),r=await Ac(t);if(typeof localStorage<"u")try{localStorage.setItem(jo,r);}catch{}return r}var Wo="mushi_session_id",Ur=null;function wt(){if(Ur)return Ur;if(typeof sessionStorage<"u"){let t=sessionStorage.getItem(Wo);if(t)return Ur=t,t}let e=Ic();if(Ur=e,typeof sessionStorage<"u")try{sessionStorage.setItem(Wo,e);}catch{}return e}function Ic(){return `ms_${Date.now().toString(36)}_${Mc()}`}function Mc(){let e=typeof crypto<"u"?crypto:void 0,t=new Uint8Array(4);if(e?.getRandomValues)e.getRandomValues(t);else for(let n=0;n<t.length;n++)t[n]=Math.floor(Math.random()*256);let r=0;for(let n of t)r=r*256+n>>>0;return (r%36**6).toString(36).padStart(6,"0")}var Lc=/HeadlessChrome|PhantomJS|Lighthouse|\bbot\b|bot[/-]|crawler|spider/i;function hs(e){return "mushi_events_consent_"+e}var On=new Set;function Dc(){if(typeof navigator>"u")return false;let e=navigator;if(e.globalPrivacyControl===true)return true;let t=typeof window<"u"?window.doNotTrack:void 0,r=e.doNotTrack??e.msDoNotTrack??t;return r==="1"||r==="yes"}function Pc(){return typeof navigator>"u"?false:navigator.webdriver===true?true:Lc.test(navigator.userAgent??"")}function fs(e){return e?.enabled===false?"disabled":e?.respectDoNotTrack!==false&&Dc()?"dnt":e?.excludeBots!==false&&Pc()?"automation":null}function Bc(e){if(!e)return null;try{let t=localStorage.getItem(hs(e));return t==="granted"||t==="denied"?t:null}catch{return null}}function $c(e,t){if(e)try{localStorage.setItem(hs(e),t);}catch{}}function ms(e,t){let r=Bc(e);return t?.consent==="required"?r??"pending":r==="denied"?"denied":"granted"}function Fc(e,t){$c(e,t);for(let r of [...On])try{r(t);}catch{}}function gs(e){return On.add(e),()=>{On.delete(e);}}var Oc=6e4,or=null,bs,Wr=null,Es=null,Jn=0,ys,Mt=null,sr=false,ar=false,yt=false,Hn=false,Nn=null;function Hc(){return new Date().toISOString()}function Lt(){return typeof window>"u"?"":window.location.pathname}function Nc(){if(typeof document>"u"||!document.referrer)return null;try{return new URL(document.referrer).origin}catch{return null}}function Uc(){return typeof navigator>"u"?null:navigator.userAgent??null}function Gr(e,t){return {kind:e,session_id:wt(),ts:Hc(),page_view_count:Jn,reporter_token_hash:Es,user_id_hash:Wr,user_agent:Uc(),sdk_version:bs,...t}}function Yr(e){!or||!yt||(or.postSessionEvent(e).catch(()=>{}),Xr());}function Zn(){clearTimeout(ys);}function Xr(){Zn(),!(!yt||globalThis.document?.visibilityState==="hidden")&&(ys=setTimeout(()=>{Yr(Gr("session_heartbeat",{route:Lt()}));},Oc));}function Un(e){yt&&e!==Mt&&(Mt=e,Jn+=1,Yr(Gr("page_view",{route:e})));}function vs(){sr||!yt||(sr=true,Yr(Gr("session_end",{route:Lt()})),Zn());}function Ko(){yt||!ar||(yt=true,Hn?Xr():(Hn=true,Jn=1,Mt=Lt(),Yr(Gr("session_start",{route:Mt,referrer:Nc()}))));}function qc(){document.visibilityState==="hidden"?vs():(sr=false,Xr());}function jc(){vs();}function Wc(e){e.persisted&&(sr=false,Xr());}function ws(){yt=false,Zn();}function Ss(e){ar||typeof window>"u"||fs(e.analytics)===null&&(ar=true,or=e.client,bs=e.sdkVersion,Es=e.reporterToken??e.reporterTokenHash??null,Wr=e.userIdHash??null,typeof document<"u"&&document.addEventListener("visibilitychange",qc,{passive:true}),window.addEventListener("pagehide",jc,{passive:true}),window.addEventListener("pageshow",Wc,{passive:true}),Nn=gs(t=>{t==="granted"?Ko():ws();}),ms(e.projectId??"",e.analytics)==="granted"&&Ko());}function Qn(e){!ar||!or||Un(Lt());}function ei(e){e&&e!==Wr&&(Mt=null),Wr=e;}function xs(){ws(),Nn?.(),Nn=null,ar=false,Hn=false,Mt=null,sr=false,or=null;}var Vc=/^[a-z][a-z0-9_]{1,63}$/,gt={maxKeys:40,maxKeyLength:64,maxValueLength:256,maxBytes:8192,maxClientBatch:20,maxServerBatch:50,maxEventNamesPerProject:200},zc="$",Gc=/(email|phone|password|passwd|token|secret|ssn|address|credit|card|iban)/i;function Xc(e){return typeof e=="string"&&Vc.test(e)}function zo(e,t={}){let r={},n=[];if(!e||typeof e!="object"||Array.isArray(e))return {properties:r,dropped:n};let i=new Set(t.allowlist??[]),o=0;for(let[s,a]of Object.entries(e)){if(o>=gt.maxKeys){n.push(s);continue}let u=s.slice(0,gt.maxKeyLength);if(u.startsWith(zc)&&!t.allowReserved){n.push(u);continue}if(Gc.test(u)&&!i.has(u)){n.push(u);continue}let d;if(a===null||typeof a=="boolean")d=a;else if(typeof a=="number")d=Number.isFinite(a)?a:null;else if(typeof a=="string"){let p=a.slice(0,gt.maxValueLength);d=t.scrub?t.scrub(p):p;}else if(a instanceof Date)d=a.toISOString();else {n.push(u);continue}r[u]=d,o+=1;}return {properties:r,dropped:n}}function Jc(e){try{return JSON.stringify(e).length<=gt.maxBytes}catch{return false}}var Kr=null,ur="",bt=null,Jr=null,ti=null,Rs,st=ri(),qn,jn,He=[],At=[],be="granted",lr=true,qr=null,vt=false,Fn=false,Et=false,Wn=null,Zc=50,ks=200,Qc=1440*60*1e3;function ri(){return {sampleRate:1,autoPageviews:false,flushIntervalMs:5e3,surface:"web",propertyAllowlist:[]}}function _s(){return new Date().toISOString()}function Vr(){return "mushi_events_spill_"+ur}function ed(e){return e===void 0||e===429||e>=500}function Kn(){return "mushi_analytics_id_"+ur}function td(){try{let e=localStorage.getItem(Kn());if(e)return e}catch{}return typeof crypto<"u"&&typeof crypto.randomUUID=="function"?crypto.randomUUID():"a-"+Math.random().toString(36).slice(2)+Date.now().toString(36)}function rd(){if(bt)try{localStorage.getItem(Kn())!==bt&&localStorage.setItem(Kn(),bt);}catch{}}function nd(e){let t=2166136261;for(let r=0;r<e.length;r+=1)t^=e.charCodeAt(r),t=Math.imul(t,16777619)>>>0;return (t>>>0)/4294967296}function Vn(){try{let e=localStorage.getItem(Vr());if(!e)return [];let t=JSON.parse(e);return !t||Date.now()-t.at>Qc?(localStorage.removeItem(Vr()),[]):Array.isArray(t.events)?t.events.slice(0,ks):[]}catch{return []}}function It(e){try{if(e.length===0){localStorage.removeItem(Vr());return}localStorage.setItem(Vr(),JSON.stringify({at:Date.now(),events:e.slice(-ks)}));}catch{}}function Cs(){let e=Vn();return e.length>0&&It([]),e}function id(e){return {anon_id:bt,user_id:Jr,user_traits:ti,session_id:jn?jn():null,sdk_version:Rs,surface:st.surface,events:e}}async function at(){if(!Kr||Fn||be!=="granted"||He.length===0&&!Et)return;Fn=true,rd();let e=He.splice(0,gt.maxServerBatch);Et&&(e.unshift({name:"identify",ts:_s(),properties:{}}),Et=false);try{let t=await Kr.postProductEvents(id(e));t.ok?It([]):ed(t.error?.status)&&It([...Vn(),...e.filter(r=>r.name!=="identify")]);}catch{It([...Vn(),...e.filter(t=>t.name!=="identify")]);}finally{Fn=false;}He.length>=gt.maxClientBatch&&at();}function od(e){return be==="denied"?false:be==="pending"?At.length>=Zc?false:(At.push(e),true):(He.push(e),He.length>=gt.maxClientBatch&&at(),true)}function sd(e){if(e==="denied"){be="denied",He=[],At=[],Et=false,It([]);return}let t=be==="pending";be="granted",t&&(He.push(...Cs(),...At),At=[]),(He.length>0||Et)&&at();}function ad(e){let t={};for(let[r,n]of Object.entries(e))n!==void 0&&(t[r]=n);return t}function Ts(){return !vt||be==="denied"?null:bt}function As(e){if(vt||typeof window>"u")return;let t=e.config??{};if(st={...ri(),...ad(t),propertyAllowlist:t.propertyAllowlist??[]},ur=e.projectId,fs(t)!==null)return;vt=true,Kr=e.client,bt=e.anonId??td(),Jr=e.userId??null,Rs=e.sdkVersion,qn=e.scrub,jn=e.getSessionId;let r=Math.min(1,Math.max(0,st.sampleRate));if(lr=r>=1?true:r<=0?false:nd(bt??"anon")<r,!lr)return;be=ms(ur,t),be==="granted"?He.push(...Cs()):be==="denied"&&It([]),Wn=gs(sd);let n=Math.max(1e3,st.flushIntervalMs);qr=setInterval(()=>{at();},n);let i=()=>{typeof document<"u"&&document.visibilityState==="hidden"&&at();};typeof document<"u"&&document.addEventListener("visibilitychange",i,{passive:true}),window.addEventListener("pagehide",()=>{at();},{passive:true}),st.autoPageviews&&ud();}function Dt(e,t,r){if(!vt||!lr||!Xc(e))return false;let{properties:n}=zo(t,{allowlist:st.propertyAllowlist,scrub:qn}),i=n;if(r?.reserved){let{properties:o}=zo(r.reserved,{allowReserved:true,scrub:qn});i={...n,...o};}return i.$surface=st.surface,typeof location<"u"&&i.$route===void 0&&(i.$route=location.pathname),Jc(i)?od({name:e,ts:r?.ts??_s(),properties:i,...r?.dedupKey?{dedup_key:r.dedupKey}:{}}):false}function Is(e){vt||(be=e),Fc(ur,e);}function Ms(e,t){Jr=e,ti=t??null,!(!vt||!lr||!e||be==="denied")&&(Et=true,be==="granted"&&at());}function Ls(){return at()}function Ds(){qr!=null&&(clearInterval(qr),qr=null),Wn?.(),Wn=null,vt=false,Kr=null,He=[],At=[],be="granted",lr=true,Et=false,Jr=null,ti=null,st=ri();}var Go=false;function ud(){if(Go||typeof history>"u")return;Go=true;let e=history.pushState;history.pushState=function(...t){let r=e.apply(this,t);return Dt("page_view"),r},window.addEventListener("popstate",()=>{Dt("page_view");},{passive:true});}var ld=10,cd=1,dd=5e3;function Ps(e={}){let{maxBurst:t=ld,refillRate:r=cd,refillIntervalMs:n=dd}=e,i=t,o=Date.now();function s(){let p=Date.now(),h=p-o,g=Math.floor(h/n);g>0&&(i=Math.min(t,i+g*r),o=p);}function a(){return s(),i>0?(i--,true):false}function u(){i=t,o=Date.now();}function d(){return s(),i}return {tryConsume:a,reset:u,availableTokens:d}}var pd={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}]},Bs=pd.patterns,hd=Bs.map(e=>({key:e.configKey,regex:new RegExp(e.source,e.caseInsensitive?"gi":"g"),replacement:e.replacement})),fd=Bs.reduce((e,t)=>(e[t.configKey]=t.defaultOn!==false,e),{});function ni(e={}){let t={...fd,...e},r=hd.filter(o=>t[o.key]);function n(o){if(!o)return o;let s=o;for(let{regex:a,replacement:u}of r)s=s.replace(new RegExp(a.source,a.flags),u);return s}function i(o,s){let a={...o};for(let u of s)typeof a[u]=="string"&&(a[u]=n(a[u]));return a}return {scrub:n,scrubObject:i}}var md=/token|jwt|passw|pwd|secret|api[-_]?key|apikey|auth|session|signature|email|phone|ssn/i,gd=/^(?:key|code|sig)$/i;function bd(e){let t=e;try{t=decodeURIComponent(e);}catch{}return md.test(t)||gd.test(t)}function Ed(e,t){return e.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(bd(i))return `${i}=[Scrubbed]`;let s=o;try{s=decodeURIComponent(o);}catch{}let a=t(s);return a!==s?`${i}=${encodeURIComponent(a)}`:r}).join("&")}function pr(e,t){if(!e||!e.includes("?")&&!e.includes("#"))return e;let{scrub:r}=ni(t),n=o=>{let s=o.indexOf("?");return s===-1?o:o.slice(0,s+1)+Ed(o.slice(s+1),r)},i=e.indexOf("#");return i===-1?n(e):n(e.slice(0,i))+n(e.slice(i))}var yd=50,vd=500;function $s(e={}){let t=Math.max(1,e.max??yd),r=Math.max(50,e.maxMessageLength??vd),n=[];return {add(i){let o=typeof i.timestamp=="number"?i.timestamp:Date.now(),s=typeof i.message=="string"&&i.message.length>r?`${i.message.slice(0,r)}\u2026`:i.message,a={timestamp:o,category:i.category,level:i.level??"info",message:s??"",...i.data?{data:i.data}:{}};for(n.push(a);n.length>t;)n.shift();},getAll(){return n.slice()},clear(){n=[];},size(){return n.length}}}var Yo=8*1024,wd=1e3;function Fs(e){if(e instanceof Error){let t=e.name||"Error",r=e.message||String(e),n=typeof e.stack=="string"&&e.stack.length>0?e.stack.slice(0,Yo):void 0,i=e.cause;return {name:t,message:r,...n?{stack:n}:{},...i!==void 0?{cause:i instanceof Error?i.message:i}:{}}}if(typeof e=="string")return {name:"Error",message:e};if(e&&typeof e=="object"){let t=e,r=typeof t.name=="string"?t.name:"Error",n=typeof t.message=="string"?t.message:(()=>{try{return JSON.stringify(t).slice(0,wd)}catch{return String(t)}})(),i=typeof t.stack=="string"?t.stack.slice(0,Yo):void 0;return {name:r,message:n,...i?{stack:i}:{}}}return e===void 0?{name:"Error",message:"unknown"}:{name:"Error",message:String(e)}}var le={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"},Sd={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"},ii={free:le.inkMuted,explorer:"#2563EB",contributor:"#7C3AED",champion:"#D97706",default:le.accent},Zr={bg:"#0FFF50",fg:"#0a1a0a",border:"#00C43A"},Os="#FAF7F0",Hs="#ffffff";var oi={light:"#9A2A1E",dark:"#7A1F15"},si={light:"#B52F1F",dark:"#C4321E"},Ns={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 ai(e){return e==="dark"?Sd:le}var Us={comfy:12},qs={control:4},Qr={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"},$t={base:99999,banner:99998,panel:1e5,overlay:2147483647},en={easeStamp:"cubic-bezier(0.22, 1, 0.36, 1)",durationFast:200},js={instant:120,panel:300};var ut={bannerHeight:36,fabSize:52,edgeTabWidth:22,gutter:24,panelWidth:360,panelMaxHeight:480,panelSheetBreakpoint:480};function Xo(e){return /^#[0-9a-fA-F]{3,8}$/.test(e)?e:""}function Ws(e,t="",r=""){let n=ai(e),i=Xo(t),o=Xo(r),s=i||n.accent,a=i?e==="dark"?`${s}1F`:`${s}14`:n.accentWash,u=o||n.accentInk;return {accent:s,accentWash:a,accentInk:u}}var Ks={bannerLabel:"Feedback"};function xd(e){let t=e.length%4===0?"":"=".repeat(4-e.length%4),r=e.replace(/-/g,"+").replace(/_/g,"/")+t;if(typeof atob=="function")return atob(r);let n=globalThis.Buffer;return n?n.from(r,"base64").toString("binary"):""}function Vs(e){if(typeof e!="string")return null;let t=e.split(".");if(t.length!==3)return null;try{let r=xd(t[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 Rd=new Set(["kensaur.us","www.kensaur.us"]),kd={"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"},_d={"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"},Cd=["www.google.com","icons.duckduckgo.com","icon.horse"];function zs(e){try{let t=new URL(e).hostname.toLowerCase();return Cd.some(r=>t===r||t.endsWith(`.${r}`))}catch{return false}}function Td(e,t=32){return [`https://${e}/favicon.svg`,`https://${e}/favicon.ico`,`https://${e}/favicon-32x32.png`,`https://${e}/apple-touch-icon.png`]}function Gs(e){let t=[],r=i=>{let o=i?.trim().toLowerCase();!o||t.includes(o)||t.push(o);};r(Id(e.repo_url)),r(kd[e.project_slug.toLowerCase()]);let n=e.sdk_origin?Ad(e.sdk_origin):null;return n&&!Rd.has(n)&&r(n),t}function Ys(e,t=32){if(e.icon_url?.trim())return [e.icon_url.trim()];let r=new Set,n=[],i=s=>{!s||r.has(s)||zs(s)||(r.add(s),n.push(s));},o=_d[e.project_slug.toLowerCase()];o&&i(o);for(let s of Gs(e))for(let a of Td(s,t))i(a);return n}function Ad(e){let t=e.trim();if(!t||/^(capacitor|file|content|app):/i.test(t))return null;try{let n=new URL(t.includes("://")?t:`https://${t}`).hostname.toLowerCase();return n==="localhost"||n==="127.0.0.1"||n.endsWith(".local")?null:n}catch{return null}}function Id(e){if(!e?.trim())return null;try{let t=new URL(e.trim()),r=t.hostname.toLowerCase(),n=t.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 Xs(e){return Gs(e)[0]??null}function Js(e){if(typeof document>"u"||!e.complete||e.naturalWidth===0||e.naturalHeight===0)return false;try{let t=document.createElement("canvas"),r=e.naturalWidth,n=e.naturalHeight;t.width=r,t.height=n;let i=t.getContext("2d");if(!i)return !1;i.drawImage(e,0,0);let{data:o}=i.getImageData(0,0,r,n),s=0,a=0,u=0;for(let p=0;p<o.length;p+=4){let h=o[p],g=o[p+1],E=o[p+2];if(o[p+3]<128)continue;s++;let b=Math.max(h,g,E),y=Math.min(h,g,E),k=b-y;u=Math.max(u,k),a+=k;}return s===0?!0:a/s<14&&u<24}catch{return zs(e.src)}}function Zs(e){let t=e.trim().split(/[\s._-]+/).filter(Boolean);return t.length>=2?`${t[0][0]??""}${t[1][0]??""}`.toUpperCase():(e.replace(/[^a-zA-Z0-9]/g,"").slice(0,2)||e.slice(0,2)||"?").toUpperCase()}function Qs(){if(typeof document>"u")return null;let e=['link[rel="icon"]','link[rel="shortcut icon"]','link[rel="apple-touch-icon"]'];for(let t of e){let n=document.querySelector(t)?.href;if(n&&Md(n))return n}return null}function Md(e){try{let t=typeof location<"u"?location.href:void 0,r=new URL(e,t).protocol;return r==="http:"||r==="https:"}catch{return false}}async function ta(e,t=Jo){if(!e.startsWith("data:image/")||ea(e)<=t)return e;if(typeof document>"u")return null;let r=new Image;await new Promise((o,s)=>{r.onload=()=>o(),r.onerror=()=>s(new Error("screenshot_decode_failed")),r.src=e;});let n=[.65,.5,.35,.25],i=[1,.85,.7,.55,.4];for(let o of i){let s=document.createElement("canvas"),a=Math.max(1,Math.round(r.naturalWidth*o)),u=Math.max(1,Math.round(r.naturalHeight*o));s.width=a,s.height=u;let d=s.getContext("2d");if(d){d.drawImage(r,0,0,a,u);for(let p of n){let h=s.toDataURL("image/jpeg",p);if(ea(h)<=t)return h}}}return null}function ea(e){let t=e.indexOf(",");if(t<0)return e.length;let r=e.slice(t+1);return Math.ceil(r.length*3/4)}var ra="mushi-launcher-hidden";function na(){try{return typeof sessionStorage<"u"&&sessionStorage.getItem(ra)==="1"}catch{return false}}function ia(){try{typeof sessionStorage<"u"&&sessionStorage.setItem(ra,"1");}catch{}}var tn="mushi-assistant-session-v1";function oa(){try{if(typeof sessionStorage>"u")return null;let e=sessionStorage.getItem(tn);if(!e)return null;let t=JSON.parse(e);if(!t||typeof t!="object")return null;let r=t,n=Array.isArray(r.turns)?r.turns:null;if(!n)return null;let i=[];for(let s of n){if(!s||typeof s!="object")continue;let a=s;if(a.role!=="user"&&a.role!=="assistant"||typeof a.text!="string")continue;let u={role:a.role,text:a.text};if(Array.isArray(a.options)){let d=a.options.filter(p=>typeof p=="string");d.length&&(u.options=d);}a.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 sa(e){try{if(typeof sessionStorage>"u")return;if(!e.turns.length&&!e.threadId){sessionStorage.removeItem(tn);return}sessionStorage.setItem(tn,JSON.stringify(e));}catch{}}function aa(){try{if(typeof sessionStorage>"u")return;sessionStorage.removeItem(tn);}catch{}}var ua="Feature request";function la(e){let t=Date.parse(e);if(Number.isNaN(t))return "";let r=Date.now()-t;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 s=Math.floor(o/24);if(s<7)return `${s}d ago`;let a=Math.floor(s/7);return a<5?`${a}w ago`:new Date(t).toLocaleDateString(void 0,{month:"short",day:"numeric"})}var Ld="https://kensaur.us/mushi-mushi/",Dd="utm_source=widget&utm_medium=powered-by";function ca(e){let t=`${Ld}?${Dd}`;return e&&/^[0-9a-f]{6,64}$/.test(e)?`${t}&ref=${e}`:t}function da(e){return (e.metaKey||e.ctrlKey)&&e.key==="Enter"}function pa(e){return /Mac|iPhone|iPad|iPod/i.test(e)?"\u2318":"Ctrl"}function ha(){return typeof navigator>"u"?"":navigator.userAgentData?.platform||navigator.platform||navigator.userAgent||""}function fa(e,t,r){if(e==="banner")return true;if(e==="console-only"||e==="off")return false;if(t)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 Ft(e,t){return new Promise((r,n)=>{let i=setTimeout(()=>n(new Error("Timed out")),t);e.then(o=>{clearTimeout(i),r(o);},o=>{clearTimeout(i),n(o);});})}var Ot=15e3,rn=4e3;function ma(e,t){let r={month:"short",day:"numeric",hour:"2-digit",minute:"2-digit",timeZoneName:"short"};try{return e.toLocaleString(t,r)}catch{return e.toLocaleString(void 0,r)}}function St(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#39;")}function hr(e){return e?.failureKind==="blocked"||e?.failureKind==="throttled"}function ga(e){let t=e.appDomain??Xs({project_id:e.projectId,project_name:e.appName,project_slug:e.appSlug??""}),r=St(Zs(e.appName)),n=Ys({project_id:e.projectId,project_name:e.appName,project_slug:e.appSlug??"",sdk_origin:e.appDomain?`https://${e.appDomain}`:null});return n.length?`<span class="mushi-app-icon" data-mushi-favicon data-candidates="${St(JSON.stringify(n))}" data-initials="${r}" aria-hidden="true" title="${St(t??e.appName)}">
14
+ <img class="mushi-app-icon-img" src="${St(n[0])}" alt="" referrerpolicy="no-referrer" width="16" height="16" />
4
15
  <span class="mushi-app-icon-initials" hidden>${r}</span>
5
- </span>`:`<span class="mushi-app-icon mushi-app-icon-initials-only" aria-hidden="true">${r}</span>`}function fa(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=()=>{Gs(r)&&a();};});}var Sd={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}]},ma=Sd.patterns,xd=ma.map(t=>({key:t.configKey,regex:new RegExp(t.source,t.caseInsensitive?"gi":"g"),replacement:t.replacement})),Rd=ma.reduce((t,e)=>(t[e.configKey]=e.defaultOn!==false,t),{});function kd(t={}){let e={...Rd,...t},r=xd.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}}function _d(t,e){return kd(e).scrub(t)}var Cd=300,Td=16e3,Ad=6;function ti(t,e,r){if(typeof t=="string")return e(t);if(t===null||typeof t=="number"||typeof t=="boolean")return t;if(!(r>=Ad)){if(Array.isArray(t))return t.map(n=>ti(n,e,r+1)).filter(n=>n!==void 0);if(typeof t=="object"){let n={};for(let[i,o]of Object.entries(t)){let a=ti(o,e,r+1);a!==void 0&&(n[i]=a);}return n}}}function Id(t,e){if(JSON.stringify(t).length<=e)return t;let r={diagnosticsTruncated:true};for(let[n,i]of Object.entries(t)){let o={...r,[n]:i};JSON.stringify(o).length>e||(r[n]=i);}return r}async function ga(t,e={}){if(!t)return null;let r;try{let n=await Promise.race([Promise.resolve().then(t),new Promise(o=>{r=setTimeout(()=>o(null),e.timeoutMs??Cd);})]);if(!n||typeof n!="object"||Array.isArray(n))return null;let i=ti(n,e.scrub??(o=>_d(o)),0);return Object.keys(i).length>0?Id(i,e.maxChars??Td):null}catch{return null}finally{r&&clearTimeout(r);}}Zr();var Qr={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.",hideLauncher:"Hide the bug button for this visit"},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",notSentBlocked:"Not sent. This report was filtered out before sending. Your text is still here; add a little more detail and try again.",notSentThrottled:"Not sent. Too many reports in a short time. Your text is still here; wait a minute and try again.",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 Mushi"}};var wa={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\u3002\u5831\u544A\u3092\u9001\u4FE1\u3057\u307E\u3057\u305F\u3002",error:"\u5831\u544A\u3092\u9001\u4FE1\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\u3002\u63A5\u7D9A\u3092\u78BA\u8A8D\u3057\u3066\u3001\u3082\u3046\u4E00\u5EA6\u304A\u8A66\u3057\u304F\u3060\u3055\u3044\u3002",hideLauncher:"\u4ECA\u56DE\u306E\u5229\u7528\u4E2D\u306F\u5831\u544A\u30DC\u30BF\u30F3\u3092\u8868\u793A\u3057\u306A\u3044"},step1:{moreNav:{communityIdeas:"\u30B3\u30DF\u30E5\u30CB\u30C6\u30A3\u306E\u30A2\u30A4\u30C7\u30A2",leaderboard:"\u30E9\u30F3\u30AD\u30F3\u30B0",joinCommunity:"\u30B3\u30DF\u30E5\u30CB\u30C6\u30A3\u306B\u53C2\u52A0 \xB7 \u8907\u6570\u30A2\u30D7\u30EA\u306E\u5831\u544A\u3092\u307E\u3068\u3081\u3066\u78BA\u8A8D",myAccount:"\u30DE\u30A4\u30A2\u30AB\u30A6\u30F3\u30C8"},categories:{bug:"\u4E0D\u5177\u5408",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:["\u30A2\u30D7\u30EA\u304C\u843D\u3061\u308B","\u53CD\u5FDC\u3057\u306A\u3044","\u30C7\u30FC\u30BF\u304C\u6D88\u3048\u305F","\u7D50\u679C\u304C\u304A\u304B\u3057\u3044","\u305D\u306E\u4ED6"],slow:["\u30DA\u30FC\u30B8\u306E\u8AAD\u307F\u8FBC\u307F","\u64CD\u4F5C\u3078\u306E\u53CD\u5FDC","\u901A\u4FE1","\u30A2\u30CB\u30E1\u30FC\u30B7\u30E7\u30F3","\u305D\u306E\u4ED6"],visual:["\u30EC\u30A4\u30A2\u30A6\u30C8\u304C\u5D29\u308C\u3066\u3044\u308B","\u8868\u793A\u304C\u91CD\u306A\u3063\u3066\u3044\u308B","\u8868\u793A\u3055\u308C\u306A\u3044\u90E8\u5206\u304C\u3042\u308B","\u8272\u3084\u6587\u5B57\u304C\u9055\u3046","\u305D\u306E\u4ED6"],confusing:["\u8868\u793A\u306E\u610F\u5473\u304C\u5206\u304B\u308A\u306B\u304F\u3044","\u8AAC\u660E\u304C\u898B\u5F53\u305F\u3089\u306A\u3044","\u601D\u3063\u305F\u901A\u308A\u306B\u9032\u307E\u306A\u3044","\u3069\u3053\u306B\u3042\u308B\u304B\u5206\u304B\u3089\u306A\u3044","\u305D\u306E\u4ED6"],other:["\u6A5F\u80FD\u306E\u8981\u671B","\u30A2\u30AF\u30BB\u30B7\u30D3\u30EA\u30C6\u30A3","\u8AA4\u5B57\u30FB\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\u3092\u6DFB\u4ED8\u3057\u307E\u3057\u305F",screenshotCapturing:"\u30B9\u30AF\u30EA\u30FC\u30F3\u30B7\u30E7\u30C3\u30C8\u3092\u64AE\u5F71\u4E2D\u2026",screenshotRetry:"\u3084\u308A\u76F4\u3059",screenshotShareTab:"\u3053\u306E\u30BF\u30D6\u3092\u5171\u6709\u3057\u3066\u64AE\u5F71",notSentBlocked:"\u9001\u4FE1\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\u3002\u9001\u4FE1\u524D\u306E\u78BA\u8A8D\u3067\u5BFE\u8C61\u5916\u3068\u5224\u65AD\u3055\u308C\u307E\u3057\u305F\u3002\u5165\u529B\u5185\u5BB9\u306F\u6B8B\u3063\u3066\u3044\u307E\u3059\u3002\u3082\u3046\u5C11\u3057\u8A73\u3057\u304F\u66F8\u3044\u3066\u3001\u3082\u3046\u4E00\u5EA6\u304A\u8A66\u3057\u304F\u3060\u3055\u3044\u3002",notSentThrottled:"\u9001\u4FE1\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\u3002\u77ED\u3044\u6642\u9593\u306B\u9001\u4FE1\u304C\u7D9A\u3044\u3066\u3044\u307E\u3059\u3002\u5165\u529B\u5185\u5BB9\u306F\u6B8B\u3063\u3066\u3044\u307E\u3059\u30021 \u5206\u307B\u3069\u5F85\u3063\u3066\u304B\u3089\u3001\u3082\u3046\u4E00\u5EA6\u304A\u8A66\u3057\u304F\u3060\u3055\u3044\u3002",screenshotErrors:{permission:"\u753B\u9762\u306E\u53D6\u5F97\u304C\u8A31\u53EF\u3055\u308C\u3066\u3044\u307E\u305B\u3093\u3002\u8A31\u53EF\u3057\u3066\u304B\u3089\u3001\u3082\u3046\u4E00\u5EA6\u304A\u8A66\u3057\u304F\u3060\u3055\u3044\u3002",unsupported:"\u3053\u306E\u30D6\u30E9\u30A6\u30B6\u3067\u306F\u753B\u9762\u3092\u53D6\u5F97\u3067\u304D\u307E\u305B\u3093\u3002\u6587\u7AE0\u3067\u304A\u77E5\u3089\u305B\u304F\u3060\u3055\u3044\u3002",taint:"\u5916\u90E8\u30B5\u30A4\u30C8\u306E\u30B3\u30F3\u30C6\u30F3\u30C4\u304C\u542B\u307E\u308C\u308B\u305F\u3081\u3001\u753B\u9762\u3092\u53D6\u5F97\u3067\u304D\u307E\u305B\u3093\u3002",timeout:"\u753B\u9762\u306E\u53D6\u5F97\u306B\u6642\u9593\u304C\u304B\u304B\u308A\u3059\u304E\u307E\u3057\u305F\u3002",csp:"\u3053\u306E\u30B5\u30A4\u30C8\u306E\u30BB\u30AD\u30E5\u30EA\u30C6\u30A3\u8A2D\u5B9A\u306B\u3088\u308A\u3001\u30B9\u30AF\u30EA\u30FC\u30F3\u30B7\u30E7\u30C3\u30C8\u3092\u53D6\u5F97\u3067\u304D\u307E\u305B\u3093\u3002",error:"\u753B\u9762\u3092\u53D6\u5F97\u3067\u304D\u307E\u305B\u3093\u3067\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\u3066\u304F\u3060\u3055\u3044\u3002\u6B8B\u9AD8\u3084\u500B\u4EBA\u60C5\u5831\u306A\u3069\u304C\u5199\u3063\u3066\u3044\u308B\u5834\u5408\u306F\u3001\u524A\u9664\u3057\u3066\u304B\u3089\u9001\u4FE1\u3057\u3066\u304F\u3060\u3055\u3044\u3002",elementButton:"\u5834\u6240\u3092\u6307\u5B9A",elementSelected:"\u5834\u6240\u3092\u6307\u5B9A\u3057\u307E\u3057\u305F",elementCapturing:"\u8A72\u5F53\u3059\u308B\u7B87\u6240\u3092\u30AF\u30EA\u30C3\u30AF\u3057\u3066\u304F\u3060\u3055\u3044\u2026",elementFailed:"\u9078\u629E\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\u3002\u6587\u7AE0\u3067\u304A\u77E5\u3089\u305B\u304F\u3060\u3055\u3044\u3002",elementSelectorHint:"\u8A72\u5F53\u3059\u308B\u7B87\u6240\u3092\u30AF\u30EA\u30C3\u30AF \xB7 Esc \u3067\u30AD\u30E3\u30F3\u30BB\u30EB"},panel:{title:"\u30D5\u30A3\u30FC\u30C9\u30D0\u30C3\u30AF\u3092\u9001\u308B",more:"\u305D\u306E\u4ED6\u2026",pointAt:"\u5834\u6240\u3092\u6307\u5B9A",remove:"\u524A\u9664",markUp:"\u5370\u3092\u3064\u3051\u308B",privacy:"\u9001\u4FE1\u5185\u5BB9\u306F\u3001\u3053\u306E\u30A2\u30D7\u30EA\u306E\u958B\u767A\u8005\u3060\u3051\u304C\u78BA\u8A8D\u3057\u307E\u3059\u3002\u500B\u4EBA\u60C5\u5831\u306F\u542B\u3081\u306A\u3044\u3067\u304F\u3060\u3055\u3044\u3002",send:"\u9001\u4FE1",yourReports:"\u3042\u306A\u305F\u306E\u5831\u544A",newCount:"\u65B0\u7740 {n} \u4EF6",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\u3092\u30AA\u30F3\u306B\u3057\u307E\u3057\u305F\u3002"},assistant:{defaultLabel:"\u8CEA\u554F",defaultGreeting:"\u3053\u306E\u30DA\u30FC\u30B8\u306B\u3064\u3044\u3066\u8CEA\u554F\u3067\u304D\u307E\u3059\u3002\u56DE\u7B54\u306B\u306F\u3001\u3044\u307E\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\u8CEA\u554F\u3059\u308B",thinking:"\u8003\u3048\u4E2D\u2026",fileReportCta:"\u4E0D\u5177\u5408\u3068\u3057\u3066\u5831\u544A\u3059\u308B",stillStuckCta:"\u89E3\u6C7A\u3057\u306A\u3044\u5834\u5408\u306F\u5831\u544A\u3059\u308B",errors:{noResponse:"\u5FDC\u7B54\u304C\u3042\u308A\u307E\u305B\u3093\u3002\u63A5\u7D9A\u3092\u78BA\u8A8D\u3057\u3066\u3001\u3082\u3046\u4E00\u5EA6\u304A\u8A66\u3057\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\u3001\u3082\u3046\u4E00\u5EA6\u304A\u8A66\u3057\u304F\u3060\u3055\u3044\u3002"}},flows:{reports:{title:"\u3042\u306A\u305F\u306E\u5831\u544A",loading:"\u5831\u544A\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\u304A\u5F85\u3061\u3057\u3066\u3044\u307E\u3059\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:"\u5168\u4F53\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\u3002\u6700\u521D\u306E\u4E00\u4EBA\u306B\u306A\u308A\u307E\u305B\u3093\u304B\u3002",signInPrompt:"\u30B5\u30A4\u30F3\u30A4\u30F3\u3057\u3066\u9806\u4F4D\u3092\u78BA\u8A8D \u2192",myRank:"\u4ECA\u6708\u306E\u9806\u4F4D\uFF1A{rank} \u4F4D",footer:"\u4ECA\u6708\u306E\u5168\u4F53\u30E9\u30F3\u30AD\u30F3\u30B0 \xB7 \u30DD\u30A4\u30F3\u30C8\u306F\u6BCE\u6708\u30EA\u30BB\u30C3\u30C8\u3055\u308C\u307E\u3059",anon:"\u533F\u540D"},account:{title:"Mushi Mushi \u30A2\u30AB\u30A6\u30F3\u30C8",checkEmailTitle:"\u30E1\u30FC\u30EB\u3092\u3054\u78BA\u8A8D\u304F\u3060\u3055\u3044",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\u3001\u3059\u3079\u3066\u306E\u30A2\u30D7\u30EA\u306E\u5831\u544A\u3068\u30E9\u30F3\u30AD\u30F3\u30B0\u3092\u78BA\u8A8D\u3067\u304D\u307E\u3059\u3002\u30D1\u30B9\u30EF\u30FC\u30C9\u306F\u4E0D\u8981\u3067\u3059\u3002",magicLinkSent:"{email} \u306B\u30B5\u30A4\u30F3\u30A4\u30F3\u7528\u306E\u30EA\u30F3\u30AF\u3092\u9001\u308A\u307E\u3057\u305F\u3002\u30EA\u30F3\u30AF\u3092\u958B\u304F\u3068\u3001\u3053\u308C\u307E\u3067\u306E\u5831\u544A\u304C\u30A2\u30AB\u30A6\u30F3\u30C8\u306B\u7D10\u3065\u304D\u307E\u3059\u3002",resendEmail:"\u30E1\u30FC\u30EB\u3092\u518D\u9001",sendLink:"\u30B5\u30A4\u30F3\u30A4\u30F3\u7528\u306E\u30EA\u30F3\u30AF\u3092\u9001\u308B",sending:"\u9001\u4FE1\u4E2D\u2026",crossAppReports:"\u3059\u3079\u3066\u306E\u30A2\u30D7\u30EA\u306E\u5831\u544A \u2192",viewLeaderboard:"\u5168\u4F53\u30E9\u30F3\u30AD\u30F3\u30B0 \u2192",signOut:"\u30B5\u30A4\u30F3\u30A2\u30A6\u30C8",rankSummary:"{rank} \u4F4D \xB7 \u4ECA\u6708 {points} \u30DD\u30A4\u30F3\u30C8"},crossApp:{title:"\u3042\u306A\u305F\u306E\u5831\u544A",loading:"\u5831\u544A\u3092\u8AAD\u307F\u8FBC\u307F\u4E2D\u2026",empty:"\u307E\u3060\u5831\u544A\u304C\u3042\u308A\u307E\u305B\u3093\u3002",unknownApp:"\u4E0D\u660E\u306A\u30A2\u30D7\u30EA"},thread:{loading:"\u6700\u65B0\u306E\u72B6\u6CC1\u3092\u8AAD\u307F\u8FBC\u307F\u4E2D\u2026",replyPlaceholder:"\u958B\u767A\u8005\u306B\u8FD4\u4FE1\u3059\u308B\u2026"},success:{done:"\u9589\u3058\u308B",trackReport:"\u72B6\u6CC1\u3092\u78BA\u8A8D",receipt:"\u53D7\u4ED8\u756A\u53F7",delivering:"\u958B\u767A\u30C1\u30FC\u30E0\u306B\u9001\u4FE1\u4E2D\u2026",queuedOffline:"\u30AA\u30D5\u30E9\u30A4\u30F3\u306E\u305F\u3081\u9001\u4FE1\u5F85\u3061",queuedHint:"\u30AA\u30F3\u30E9\u30A4\u30F3\u306B\u623B\u308B\u3068\u3001\u81EA\u52D5\u7684\u306B\u9001\u4FE1\u3057\u307E\u3059\u3002",rateLimited:"\u9001\u4FE1\u306E\u9593\u9694\u304C\u77ED\u3059\u304E\u307E\u3059",rateLimitedHint:"1 \u5206\u307B\u3069\u304A\u5F85\u3061\u304F\u3060\u3055\u3044\u3002\u5831\u544A\u306F\u4FDD\u5B58\u6E08\u307F\u3067\u3001\u81EA\u52D5\u7684\u306B\u518D\u9001\u3055\u308C\u307E\u3059\u3002",quotaBlocked:"\u3053\u306E\u5831\u544A\u306F\u53D7\u3051\u4ED8\u3051\u3089\u308C\u307E\u305B\u3093\u3067\u3057\u305F",quotaBlockedHint:"\u3053\u306E\u30A2\u30D7\u30EA\u306E\u53D7\u4ED8\u4E0A\u9650\u306B\u9054\u3057\u3066\u3044\u307E\u3059\u3002\u304A\u624B\u6570\u3067\u3059\u304C\u3001\u30A2\u30D7\u30EA\u306E\u904B\u55B6\u8005\u306B\u76F4\u63A5\u3054\u9023\u7D61\u304F\u3060\u3055\u3044\u3002",permanentFailed:"\u5831\u544A\u3092\u9001\u4FE1\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F",permanentFailedHint:"\u9001\u4FE1\u5185\u5BB9\u3092\u53D7\u3051\u4ED8\u3051\u3089\u308C\u307E\u305B\u3093\u3067\u3057\u305F\uFF08\u30B5\u30A4\u30BA\u8D85\u904E\u306A\u3069\uFF09\u3002\u6587\u7AE0\u3092\u77ED\u304F\u3059\u308B\u304B\u3001\u30B9\u30AF\u30EA\u30FC\u30F3\u30B7\u30E7\u30C3\u30C8\u3092\u5916\u3057\u3066\u3001\u3082\u3046\u4E00\u5EA6\u304A\u8A66\u3057\u304F\u3060\u3055\u3044\u3002",retrying:"\u9001\u4FE1\u5F85\u3061\uFF08\u518D\u8A66\u884C\u4E2D\uFF09",retryingHint:"\u30B5\u30FC\u30D0\u30FC\u306B\u63A5\u7D9A\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\u3002\u81EA\u52D5\u7684\u306B\u518D\u9001\u3057\u307E\u3059\u3002",trackOnMushi:"Mushi Mushi \u3067\u78BA\u8A8D",slaDefault:"\u9032\u5C55\u304C\u3042\u308C\u3070\u3001\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\u304C\u5927\u304D\u3059\u304E\u308B\u305F\u3081\u6DFB\u4ED8\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\u3002\u5831\u544A\u306E\u6587\u7AE0\u306E\u307F\u9001\u4FE1\u3057\u307E\u3057\u305F\u3002"},featureRequest:{label:"\u6A5F\u80FD\u306E\u8981\u671B"},betaStrip:{defaultMessage:"{appName} \u306F\u958B\u767A\u521D\u671F\u306E\u6BB5\u968E\u3067\u3059",contactHint:"\u3054\u8CEA\u554F\u306F {email} \u307E\u3067\u304A\u5BC4\u305B\u304F\u3060\u3055\u3044",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 Mushi \u3067"}};var Sa={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",hideLauncher:"\u0E0B\u0E48\u0E2D\u0E19\u0E1B\u0E38\u0E48\u0E21\u0E41\u0E08\u0E49\u0E07\u0E1A\u0E31\u0E4A\u0E01\u0E23\u0E30\u0E2B\u0E27\u0E48\u0E32\u0E07\u0E01\u0E32\u0E23\u0E40\u0E02\u0E49\u0E32\u0E0A\u0E21\u0E04\u0E23\u0E31\u0E49\u0E07\u0E19\u0E35\u0E49"},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",notSentBlocked:"\u0E22\u0E31\u0E07\u0E44\u0E21\u0E48\u0E44\u0E14\u0E49\u0E2A\u0E48\u0E07 \u0E23\u0E32\u0E22\u0E07\u0E32\u0E19\u0E19\u0E35\u0E49\u0E16\u0E39\u0E01\u0E01\u0E23\u0E2D\u0E07\u0E2D\u0E2D\u0E01\u0E01\u0E48\u0E2D\u0E19\u0E2A\u0E48\u0E07 \u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13\u0E22\u0E31\u0E07\u0E2D\u0E22\u0E39\u0E48 \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\u0E41\u0E25\u0E49\u0E27\u0E25\u0E2D\u0E07\u0E2D\u0E35\u0E01\u0E04\u0E23\u0E31\u0E49\u0E07",notSentThrottled:"\u0E22\u0E31\u0E07\u0E44\u0E21\u0E48\u0E44\u0E14\u0E49\u0E2A\u0E48\u0E07 \u0E2A\u0E48\u0E07\u0E23\u0E32\u0E22\u0E07\u0E32\u0E19\u0E21\u0E32\u0E01\u0E40\u0E01\u0E34\u0E19\u0E44\u0E1B\u0E43\u0E19\u0E40\u0E27\u0E25\u0E32\u0E2A\u0E31\u0E49\u0E19\u0E46 \u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13\u0E22\u0E31\u0E07\u0E2D\u0E22\u0E39\u0E48 \u0E23\u0E2D\u0E2A\u0E31\u0E01\u0E2B\u0E19\u0E36\u0E48\u0E07\u0E19\u0E32\u0E17\u0E35\u0E41\u0E25\u0E49\u0E27\u0E25\u0E2D\u0E07\u0E2D\u0E35\u0E01\u0E04\u0E23\u0E31\u0E49\u0E07",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 Mushi"}};var xa={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.",hideLauncher:"Ocultar el bot\xF3n de errores durante esta visita"},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",notSentBlocked:"No se envi\xF3. El reporte se filtr\xF3 antes de enviarse. Tu texto sigue aqu\xED; a\xF1ade algo m\xE1s de detalle e int\xE9ntalo de nuevo.",notSentThrottled:"No se envi\xF3. Demasiados reportes en poco tiempo. Tu texto sigue aqu\xED; espera un minuto e int\xE9ntalo de nuevo.",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 Mushi"}};var Ra={widget:{trigger:"\u53CD\u9988\u95EE\u9898",title:"\u53CD\u9988\u95EE\u9898",close:"\u5173\u95ED",back:"\u8FD4\u56DE",submit:"\u63D0\u4EA4",submitting:"\u63D0\u4EA4\u4E2D\u2026",submitted:"\u8C22\u8C22\uFF01\u4F60\u7684\u53CD\u9988\u5DF2\u63D0\u4EA4\u3002",error:"\u51FA\u9519\u4E86\uFF0C\u8BF7\u518D\u8BD5\u4E00\u6B21\u3002",hideLauncher:"\u672C\u6B21\u8BBF\u95EE\u671F\u95F4\u9690\u85CF\u53CD\u9988\u6309\u94AE"},step1:{moreNav:{communityIdeas:"\u793E\u533A\u60F3\u6CD5",leaderboard:"\u6392\u884C\u699C",joinCommunity:"\u52A0\u5165\u793E\u533A \xB7 \u8DE8\u5E94\u7528\u8DDF\u8E2A\u4F60\u7684\u53CD\u9988",myAccount:"\u6211\u7684\u8D26\u6237"},categories:{bug:"\u9519\u8BEF",slow:"\u6162",visual:"\u663E\u793A\u95EE\u9898",confusing:"\u96BE\u4EE5\u7406\u89E3",other:"\u5176\u4ED6"}},step2:{intents:{bug:["\u5D29\u6E83","\u6CA1\u6709\u53CD\u5E94","\u6570\u636E\u4E22\u5931","\u7ED3\u679C\u9519\u8BEF","\u5176\u4ED6"],slow:["\u9875\u9762\u52A0\u8F7D","\u64CD\u4F5C\u54CD\u5E94","\u7F51\u7EDC\u8BF7\u6C42","\u52A8\u753B","\u5176\u4ED6"],visual:["\u5E03\u5C40\u9519\u4E71","\u5143\u7D20\u91CD\u53E0","\u5143\u7D20\u4E0D\u663E\u793A","\u989C\u8272/\u5B57\u4F53\u4E0D\u5BF9","\u5176\u4ED6"],confusing:["\u6807\u7B7E\u4E0D\u6E05\u695A","\u7F3A\u5C11\u5E2E\u52A9","\u6D41\u7A0B\u51FA\u4E4E\u610F\u6599","\u627E\u4E0D\u5230\u5165\u53E3","\u5176\u4ED6"],other:["\u529F\u80FD\u5EFA\u8BAE","\u65E0\u969C\u788D","\u9519\u522B\u5B57","\u5176\u4ED6"]}},step3:{descriptionPlaceholder:"\u53D1\u751F\u4E86\u4EC0\u4E48\uFF1F",featurePlaceholder:"\u8BF4\u8BF4\u4F60\u7684\u60F3\u6CD5\u2026",submitHint:"{key} + Enter \u63D0\u4EA4",screenshotButton:"\u622A\u56FE",screenshotAttached:"\u5DF2\u9644\u622A\u56FE",screenshotCapturing:"\u6B63\u5728\u622A\u56FE\u2026",screenshotRetry:"\u518D\u8BD5\u4E00\u6B21",screenshotShareTab:"\u5171\u4EAB\u6B64\u6807\u7B7E\u9875\u6765\u622A\u56FE",notSentBlocked:"\u672A\u53D1\u9001\u3002\u8BE5\u53CD\u9988\u5728\u53D1\u9001\u524D\u88AB\u8FC7\u6EE4\u3002\u4F60\u7684\u6587\u5B57\u4ECD\u4FDD\u7559\u5728\u8FD9\u91CC\uFF0C\u8BF7\u8865\u5145\u4E00\u4E9B\u7EC6\u8282\u540E\u91CD\u8BD5\u3002",notSentThrottled:"\u672A\u53D1\u9001\u3002\u77ED\u65F6\u95F4\u5185\u63D0\u4EA4\u8FC7\u591A\u3002\u4F60\u7684\u6587\u5B57\u4ECD\u4FDD\u7559\u5728\u8FD9\u91CC\uFF0C\u8BF7\u7B49\u5F85\u4E00\u5206\u949F\u540E\u91CD\u8BD5\u3002",screenshotErrors:{permission:"\u622A\u56FE\u88AB\u62E6\u622A\u4E86\u3002\u8BF7\u5141\u8BB8\u540E\u518D\u8BD5\u3002",unsupported:"\u6B64\u6D4F\u89C8\u5668\u65E0\u6CD5\u622A\u56FE\u3002\u8BF7\u7528\u6587\u5B57\u63CF\u8FF0\u3002",taint:"\u9875\u9762\u5305\u542B\u5176\u4ED6\u7F51\u7AD9\u7684\u5185\u5BB9\uFF0C\u65E0\u6CD5\u622A\u56FE\u3002\u8BF7\u7528\u6587\u5B57\u63CF\u8FF0\u3002",timeout:"\u622A\u56FE\u8D85\u65F6\u3002",csp:"\u6B64\u7F51\u7AD9\u7684\u5B89\u5168\u8BBE\u7F6E\u4E0D\u5141\u8BB8\u622A\u56FE\u3002",error:"\u622A\u56FE\u5931\u8D25\u3002"},screenshotPreviewAlt:"\u5C06\u8981\u53D1\u9001\u7684\u622A\u56FE\u9884\u89C8",screenshotSensitiveHint:"\u8BF7\u68C0\u67E5\u9884\u89C8\uFF1B\u5982\u6709\u4F59\u989D\u6216\u4E2A\u4EBA\u4FE1\u606F\uFF0C\u8BF7\u5220\u9664\u622A\u56FE\u3002",elementButton:"\u6307\u51FA\u4F4D\u7F6E",elementSelected:"\u5DF2\u9009\u4E2D\u5143\u7D20",elementCapturing:"\u70B9\u51FB\u9875\u9762\u4E0A\u7684\u5143\u7D20\u2026",elementFailed:"\u65E0\u6CD5\u9009\u62E9 \u2014 \u8BF7\u7528\u6587\u5B57\u63CF\u8FF0",elementSelectorHint:"\u70B9\u51FB\u4E00\u4E2A\u5143\u7D20 \xB7 Esc \u53D6\u6D88"},panel:{title:"\u53D1\u9001\u53CD\u9988",more:"\u66F4\u591A\u2026",pointAt:"\u6307\u51FA\u4F4D\u7F6E",remove:"\u5220\u9664",markUp:"\u6807\u6CE8",privacy:"\u53EA\u6709\u8FD9\u4E2A\u5E94\u7528\u7684\u5F00\u53D1\u8005\u80FD\u770B\u5230\u3002\u8BF7\u5220\u9664\u4E2A\u4EBA\u4FE1\u606F\u3002",send:"\u53D1\u9001",yourReports:"\u4F60\u7684\u53CD\u9988",newCount:"{n} \u6761\u65B0\u6D88\u606F",moreOptions:"\u66F4\u591A\u9009\u9879",reportTitle:"\u4F60\u7684\u53CD\u9988",notifyMe:"\u63A5\u6536\u901A\u77E5",notifyOn:"\u901A\u77E5\u5DF2\u5F00\u542F\u3002"},assistant:{defaultLabel:"\u63D0\u95EE",defaultGreeting:"\u95EE\u95EE\u5173\u4E8E\u8FD9\u4E2A\u9875\u9762\u7684\u95EE\u9898 \u2014 \u6211\u53EA\u4F1A\u4F7F\u7528\u9875\u9762\u4E0A\u663E\u793A\u7684\u5185\u5BB9\u3002",inputPlaceholder:"\u8F93\u5165\u4F60\u7684\u95EE\u9898\u2026",sendAriaLabel:"\u53D1\u9001",hubDescription:"\u8BE2\u95EE\u5982\u4F55\u4F7F\u7528\u8FD9\u4E2A\u5E94\u7528",thinking:"\u601D\u8003\u4E2D\u2026",fileReportCta:"\u6539\u4E3A\u53CD\u9988\u9519\u8BEF",stillStuckCta:"\u8FD8\u6CA1\u89E3\u51B3\uFF1F\u53CD\u9988\u95EE\u9898",errors:{noResponse:"\u6CA1\u6709\u56DE\u5E94 \u2014 \u8BF7\u68C0\u67E5\u7F51\u7EDC\u540E\u91CD\u8BD5\u3002",generic:"\u65E0\u6CD5\u8FDE\u63A5\u52A9\u624B\uFF0C\u8BF7\u7A0D\u540E\u518D\u8BD5\u3002"}},flows:{reports:{title:"\u4F60\u7684\u53CD\u9988",loading:"\u6B63\u5728\u52A0\u8F7D\u53CD\u9988\u2026"},roadmap:{title:"\u793E\u533A\u60F3\u6CD5",loading:"\u6B63\u5728\u52A0\u8F7D\u60F3\u6CD5\u2026",empty:"\u8FD8\u6CA1\u6709\u60F3\u6CD5\u3002\u6765\u63D0\u7B2C\u4E00\u4E2A\u5427\u3002",shipped:"\u5DF2\u4E0A\u7EBF",vote:"\u6295\u7968",voted:"\u5DF2\u6295\u7968",voteCount:"{n} \u7968",untitled:"\u672A\u547D\u540D\u7684\u60F3\u6CD5"},leaderboard:{title:"\u5168\u7403\u6392\u884C\u699C",loading:"\u6B63\u5728\u52A0\u8F7D\u6392\u884C\u699C\u2026",empty:"\u8FD8\u6CA1\u6709\u4EBA\u4E0A\u699C \u2014 \u6765\u505A\u7B2C\u4E00\u4E2A\u5427\u3002",signInPrompt:"\u767B\u5F55\u67E5\u770B\u4F60\u7684\u6392\u540D \u2192",myRank:"\u4F60\u672C\u6708\u6392\u540D #{rank}",footer:"\u672C\u6708\u5168\u7403\u8D21\u732E\u8005 \xB7 \u79EF\u5206\u6BCF\u6708\u91CD\u7F6E",anon:"\u533F\u540D"},account:{title:"Mushi \u8D26\u6237",checkEmailTitle:"\u67E5\u770B\u90AE\u7BB1",joinTitle:"\u52A0\u5165\u793E\u533A",emailLabel:"\u90AE\u7BB1\u5730\u5740",emailPlaceholder:"\u90AE\u7BB1",signInPrompt:"\u767B\u5F55\u540E\u53EF\u4EE5\u67E5\u770B\u4F60\u5728\u6240\u6709\u5E94\u7528\u4E2D\u7684\u53CD\u9988\u548C\u6392\u540D\u3002\u65E0\u9700\u5BC6\u7801\u3002",magicLinkSent:"\u767B\u5F55\u94FE\u63A5\u5DF2\u53D1\u9001\u5230 {email}\u3002\u6253\u5F00\u94FE\u63A5\u5373\u53EF\u5173\u8054\u4F60\u7684\u53CD\u9988\u3002",resendEmail:"\u91CD\u65B0\u53D1\u9001\u90AE\u4EF6",sendLink:"\u53D1\u9001\u767B\u5F55\u94FE\u63A5",sending:"\u53D1\u9001\u4E2D\u2026",crossAppReports:"\u6240\u6709\u5E94\u7528\u7684\u53CD\u9988 \u2192",viewLeaderboard:"\u5168\u7403\u6392\u884C\u699C \u2192",signOut:"\u9000\u51FA\u767B\u5F55",rankSummary:"\u6392\u540D #{rank} \xB7 \u672C\u6708 {points} \u5206"},crossApp:{title:"\u6211\u7684\u53CD\u9988",loading:"\u6B63\u5728\u52A0\u8F7D\u53CD\u9988\u2026",empty:"\u8FD8\u6CA1\u6709\u53CD\u9988\u3002",unknownApp:"\u672A\u77E5\u5E94\u7528"},thread:{loading:"\u6B63\u5728\u52A0\u8F7D\u66F4\u65B0\u2026",replyPlaceholder:"\u56DE\u590D\u5F00\u53D1\u8005\u2026"},success:{done:"\u5B8C\u6210",trackReport:"\u8DDF\u8E2A\u8FDB\u5EA6",receipt:"\u56DE\u6267",delivering:"\u6B63\u5728\u53D1\u9001\u7ED9\u56E2\u961F\u2026",queuedOffline:"\u79BB\u7EBF\u6392\u961F\u4E2D",queuedHint:"\u6062\u590D\u8054\u7F51\u540E\u4F1A\u81EA\u52A8\u53D1\u9001\u3002",rateLimited:"\u53D1\u9001\u592A\u9891\u7E41",rateLimitedHint:"\u8BF7\u7B49\u5F85\u7EA6\u4E00\u5206\u949F\u3002\u53CD\u9988\u5DF2\u6392\u961F\uFF0C\u4F1A\u81EA\u52A8\u91CD\u65B0\u53D1\u9001\u3002",quotaBlocked:"\u8FD9\u6761\u53CD\u9988\u672A\u88AB\u63A5\u6536",quotaBlockedHint:"\u9879\u76EE\u989D\u5EA6\u6216\u5957\u9910\u62D2\u7EDD\u4E86\u5B83\u3002\u8BF7\u8BA9\u5E94\u7528\u7BA1\u7406\u5458\u68C0\u67E5 Billing\u3002",permanentFailed:"\u53CD\u9988\u53D1\u9001\u5931\u8D25",permanentFailedHint:"\u5185\u5BB9\u88AB\u62D2\u7EDD\u4E86\uFF08\u4F8B\u5982\u592A\u5927\uFF09\u3002\u8BF7\u7F29\u77ED\u6587\u5B57\u6216\u4E0D\u5E26\u622A\u56FE\u518D\u8BD5\u4E00\u6B21\u3002",retrying:"\u5DF2\u6392\u961F \u2014 \u6B63\u5728\u91CD\u8BD5",retryingHint:"\u6682\u65F6\u8FDE\u4E0D\u4E0A\u670D\u52A1\u5668\uFF0C\u4F1A\u5728\u540E\u53F0\u91CD\u65B0\u53D1\u9001\u3002",trackOnMushi:"\u5728 Mushi \u4E0A\u8DDF\u8E2A",slaDefault:"\u6709\u8FDB\u5C55\u65F6\u4F1A\u5728\u8FD9\u91CC\u901A\u77E5\u4F60\u3002",screenshotDropped:"\u622A\u56FE\u592A\u5927\u65E0\u6CD5\u9644\u4E0A\uFF0C\u5DF2\u53EA\u53D1\u9001\u6587\u5B57\u53CD\u9988\u3002"},featureRequest:{label:"\u529F\u80FD\u5EFA\u8BAE"},betaStrip:{defaultMessage:"{appName} \u8FD8\u5728\u65E9\u671F\u5F00\u53D1\u9636\u6BB5",contactHint:"\u6709\u95EE\u9898\u8BF7\u8054\u7CFB {email}",teamSees:"{appName} \u56E2\u961F\u4F1A\u67E5\u770B",teamSeesGeneric:"\u56E2\u961F\u4F1A\u67E5\u770B",ariaLabel:"\u6D4B\u8BD5\u7248\u901A\u77E5"},changelog:{whatsNew:"{version} \u65B0\u529F\u80FD"},poweredBy:"\u9519\u8BEF\u53CD\u9988\u7531 Mushi Mushi \u63D0\u4F9B"}};var Vd={en:Qr,ja:wa,th:Sa,es:xa,zh:Ra};function ni(t){let e=t&&t!=="auto"?t:typeof navigator<"u"?navigator.language??navigator.languages?.[0]:void 0;if(!e)return Qr;let r=e.split("-")[0].toLowerCase();return Vd[r]??Qr}function zd(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 _a(t,e="",r=""){let n=t==="dark",i=n?"dark":"light",o=Qn(i),a=Us(i,e,r),s=Os[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:zd(a.accent),shadowInk:n?"0,0,0":"14,13,11",ok:o.ok,danger:o.danger,onAccent:Bs,inverse:Fs,neonBannerBg:zr.bg,neonBannerFg:zr.fg,neonBannerBorder:zr.border,brandBannerBorder:n?Zn.dark:Zn.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:Gr.fontDisplay,fontBody:Gr.fontBody,fontMono:Gr.fontMono,easeStamp:Yr.easeStamp,zBanner:Bt.banner,zPanel:Bt.panel,zOverlay:Bt.overlay,fabSize:at.fabSize,panelWidth:at.panelWidth,panelSheetBreakpoint:at.panelSheetBreakpoint}}function xt(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 ka([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 ii(t,e){let r=ka(t),n=i=>(Math.max(r,i)+.05)/(Math.min(r,i)+.05);return e?{ink:"",ratio:n(ka(e))}:n(1)>=n(0)?{ink:"white",ratio:n(1)}:{ink:"black",ratio:n(0)}}function Ca(t,e="",r=""){let n=_a(t),i=xt(e),o=xt(r),{isDark:a,ink:s,ruleStrong:u,widgetAccent:p,shadowInk:d,ok:f,danger:x,inverse:v,neonBannerBg:L,neonBannerFg:E,neonBannerBorder:w,brandBannerBorder:I,statusSent:P,statusReview:R,statusFixing:m,statusFixed:b,fontMono:h,easeStamp:g,zBanner:k,fabSize:M}=n,{durationFast:O}=Yr,{instant:q,panel:Q}=Ns,{bannerHeight:ee,gutter:$,panelWidth:ve,panelMaxHeight:C,panelSheetBreakpoint:Be,edgeTabWidth:we}=at,Ae=48,me=44,j=M+$s.comfy,oe=Hs.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,${f});--_err:var(--mushi-error,${x});--_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:${M}px;height:${M}px;min-width:44px;min-height:44px;border:1px solid var(--_border);border-radius:${oe}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(${d},0.35),inset 0 -3px 0 var(--_accent);transition:transform ${O}ms ${g},opacity ${O}ms ${g};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 ${g} infinite;}.mushi-trigger:hover{transform:translateY(-2px) rotate(-1.5deg);box-shadow:0 1px 0 var(--_border),0 14px 24px -10px rgba(${d},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(${d},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(${d},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(${d},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(${d},0.45);}}.mushi-trigger-pulse{animation:mushi-trigger-pulse 800ms ${g} 3;}@media (prefers-reduced-motion:reduce){.mushi-trigger-pulse{animation:none;}}.mushi-trigger.bottom-right{bottom:var(--mushi-bottom,calc(${$}px + env(safe-area-inset-bottom,0px)));right:var(--mushi-right,calc(${$}px + env(safe-area-inset-right,0px)));}.mushi-trigger.bottom-left{bottom:var(--mushi-bottom,calc(${$}px + env(safe-area-inset-bottom,0px)));left:var(--mushi-left,calc(${$}px + env(safe-area-inset-left,0px)));}.mushi-trigger.top-right{top:var(--mushi-top,calc(${$}px + env(safe-area-inset-top,0px)));right:var(--mushi-right,calc(${$}px + env(safe-area-inset-right,0px)));}.mushi-trigger.top-left{top:var(--mushi-top,calc(${$}px + env(safe-area-inset-top,0px)));left:var(--mushi-left,calc(${$}px + env(safe-area-inset-left,0px)));}.mushi-trigger.edge-tab{width:${me}px;height:${Ae}px;background:transparent;border:0;border-radius:0;box-shadow:none;font-size:14px;justify-content:flex-end;}.mushi-trigger.edge-tab::after{display:none;}.mushi-trigger.edge-tab:hover,.mushi-trigger.edge-tab:active,.mushi-trigger.edge-tab.dragging{transform:none;box-shadow:none;}.mushi-trigger-face{display:flex;align-items:center;justify-content:center;width:${we}px;height:100%;background:var(--_bg);border:1px solid var(--_border);border-right:0;border-radius:${oe}px 0 0 ${oe}px;box-shadow:0 4px 12px -6px rgba(${d},0.4),inset -2px 0 0 var(--_accent);transition:width ${O}ms ${g},transform ${O}ms ${g},opacity ${O}ms ${g};}.mushi-trigger.edge-tab.text{height:auto;min-height:${Ae}px;}.mushi-trigger.edge-tab.text .mushi-trigger-face{height:auto;min-height:${Ae}px;padding:10px 0;writing-mode:vertical-rl;font-size:12px;white-space:nowrap;}.mushi-trigger.edge-tab:hover .mushi-trigger-face,.mushi-trigger.edge-tab:focus-visible .mushi-trigger-face{width:${we+6}px;}.mushi-trigger.edge-tab:focus-visible{outline:none;}.mushi-trigger.edge-tab:focus-visible .mushi-trigger-face{outline:2px solid var(--_accent);outline-offset:2px;}.mushi-trigger.edge-tab.bottom-right,.mushi-trigger.edge-tab.top-right{right:calc(var(--mushi-safe-area,1) * env(safe-area-inset-right,0px));}.mushi-trigger.edge-tab.bottom-left,.mushi-trigger.edge-tab.top-left{left:calc(var(--mushi-safe-area,1) * env(safe-area-inset-left,0px));justify-content:flex-start;}.mushi-trigger.edge-tab.bottom-left .mushi-trigger-face,.mushi-trigger.edge-tab.top-left .mushi-trigger-face{border-right:1px solid var(--_border);border-left:0;border-radius:0 ${oe}px ${oe}px 0;box-shadow:0 4px 12px -6px rgba(${d},0.4),inset 2px 0 0 var(--_accent);}.mushi-trigger.tucked{opacity:0.3;}.mushi-trigger.edge-tab.tucked{opacity:1;}.mushi-trigger.edge-tab.tucked .mushi-trigger-face{opacity:0.55;transform:translateX(${we-6}px);}.mushi-trigger.edge-tab.bottom-left.tucked .mushi-trigger-face,.mushi-trigger.edge-tab.top-left.tucked .mushi-trigger-face{transform:translateX(-${we-6}px);}.mushi-trigger.tucked:focus-visible,.mushi-trigger.tucked:focus-visible .mushi-trigger-face{opacity:1;transform:none;}.mushi-trigger.shrunk{width:${ee}px;height:${ee}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,${Bt.base}) + 2);transition:none !important;box-shadow:0 1px 0 var(--_border),0 20px 40px -12px rgba(${d},0.55),inset 0 -3px 0 var(--_accent);opacity:0.92;}@media (prefers-reduced-motion:reduce){.mushi-trigger,.mushi-trigger-face{transition:none !important;}.mushi-trigger::after{animation:none;}.mushi-trigger.edge-tab.tucked .mushi-trigger-face{transform: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(${ve}px + 40px);max-width:calc(100vw - 32px);max-height:min(calc(${C}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,${$}px) + ${j}px));right:var(--mushi-right,calc(${$}px + env(safe-area-inset-right,0px)));--mushi-origin:bottom right;}.mushi-panel.bottom-left{bottom:var(--mushi-panel-bottom,calc(var(--mushi-bottom,${$}px) + ${j}px));left:var(--mushi-left,calc(${$}px + env(safe-area-inset-left,0px)));--mushi-origin:bottom left;}.mushi-panel.top-right{top:var(--mushi-panel-top,calc(var(--mushi-top,${$}px) + ${j}px));right:var(--mushi-right,calc(${$}px + env(safe-area-inset-right,0px)));--mushi-origin:top right;}.mushi-panel.top-left{top:var(--mushi-panel-top,calc(var(--mushi-top,${$}px) + ${j}px));left:var(--mushi-left,calc(${$}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:${Be}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:${P.bg};color:color-mix(in oklab,${P.fg} 85%,var(--_fg));}.mushi-tone-attention{background:${R.bg};color:color-mix(in oklab,${R.fg} 85%,var(--_fg));}.mushi-tone-progress{background:${m.bg};color:color-mix(in oklab,${m.fg} 85%,var(--_fg));}.mushi-tone-success,.mushi-tone-success-muted{background:${b.bg};color:color-mix(in oklab,${b.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,${$}px) + ${j}px);}.mushi-toast.top-right,.mushi-toast.top-left{top:calc(var(--mushi-top,${$}px) + ${j}px);}.mushi-toast.bottom-right,.mushi-toast.top-right,.mushi-toast.banner-top,.mushi-toast.banner-bottom{right:var(--mushi-right,${$}px);}.mushi-toast.bottom-left,.mushi-toast.top-left{left:var(--mushi-left,${$}px);}.mushi-toast.banner-top{top:calc(var(--mushi-banner-offset,${ee}px) + 12px);}.mushi-toast.banner-bottom{bottom:calc(var(--mushi-banner-offset,${ee}px) + 12px);}.mushi-banner{position:fixed;left:0;right:0;box-sizing:border-box;min-height:${ee}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:${h};font-size:12px;letter-spacing:0.04em;white-space:nowrap;overflow:hidden;z-index:var(--mushi-banner-z,${k});animation:mushi-banner-slide-in ${Q}ms ${g} 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:${L};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:${p};color:${v};border-bottom:1.5px solid ${I};}.mushi-banner.brand.bottom{border-top:1.5px solid ${I};border-bottom:none;}.mushi-banner.brand .mushi-banner-btn{background:rgba(255,255,255,0.18);color:${v};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:${ee}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:${Be}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 ${q}ms ${g};flex-shrink:0;}.mushi-banner-link:hover{opacity:1;}.mushi-banner-link:focus-visible{outline:2px solid ${p};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 ${q}ms ${g};flex-shrink:0;height:24px;line-height:1;}.mushi-banner-btn:focus-visible{outline:2px solid ${p};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 ${q}ms ${g};}.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:${h};opacity:0.75;color:inherit;padding:2px 6px;border-radius:3px;white-space:nowrap;flex-shrink:0;transition:opacity ${q}ms ${g};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;}}`}Zr();var D=wt,Gd=["bug","slow","visual","confusing"],Yd="Hide the bug button for this visit";function se(t,e,r="",n=""){return `<button type="button" class="${r}" data-action="${t}"${n}>${e}</button>`}function Ta(t){if(t.step==="report")return tp(t);if(t.step==="success")return sp(t);let e=t.views;if(!e)return Xd(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 Aa=new Set(["reports","report-detail","assistant","roadmap","leaderboard","account","cross-app-reports"]);function Xd(t){let e=t.locale.flows,r=t.step==="report-detail"?t.locale.panel.reportTitle:t.step==="reports"?e.reports.title:"";return {header:en(t,r,true),lead:"",body:Ba(e.reports.loading),footer:""}}var Ia={esc:wt,btn:se,renderHeader:en,chipLabel:oi,skeleton:Ba,formatRelativeTime:sa,renderAppIconHtml:ha};function Jd(t){let e=t.locale.step1.moreNav,r=[];return t.callbacks.assistantEnabled&&r.push(se("assistant",D(t.callbacks.assistantLabel||t.locale.assistant.defaultLabel),"mushi-menu-item",' role="menuitem"')),t.callbacks.onFeatureBoardRequest&&r.push(se("roadmap",D(e.communityIdeas),"mushi-menu-item",' role="menuitem"')),t.rewardsState&&r.push(se("open-leaderboard",D(e.leaderboard),"mushi-menu-item",' role="menuitem"')),(t.rewardsState||t.testerInfo)&&r.push(se("open-account",D(t.testerInfo?t.testerInfo.public_handle??t.testerInfo.display_name??e.myAccount:e.joinCommunity),"mushi-menu-item",' role="menuitem"')),r}function en(t,e,r=false){let n=t.locale.panel,i=t.step==="report"||t.step==="success",o=t.unreadCount,a=i&&t.callbacks.onReporterReportsRequest?se("reports",`${D(n.yourReports)}${o?` <span class="mushi-badge">${D(n.newCount.replace("{n}",String(o)))}</span>`:""}`,"mushi-pill-btn"):"",s=i?Jd(t):[],u=s.length?`<div class="mushi-menu-wrap">${se("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?se("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}${se("close","\u2715","mushi-icon-btn",` aria-label="${D(t.locale.widget.close)}"`)}`}function Ma(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 La(t){return t.config.brandFooter!==true?"":`<div class="mushi-brand-footer"><a class="mushi-brand-link" href="${D(aa(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 oi(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 Zd(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(oi(t,e))}</button>`}function Qd(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 ep(t){let e=[...Gd];t.featureRequestCard!==false&&e.push("idea");let r=new Set(e),n=[];for(let{id:i}of t.categories??[])r.has(i)||(r.add(i),n.push(i));return {primary:e,more:n}}function tp(t){let e=t.locale,r=e.panel,n=e.step3,{primary:i,more:o}=ep(t.config),a=t.showAllCategories?[...i,...o]:i,s=a.map((b,h)=>Zd(t,b,h,a.includes(t.chip??"")?t.chip:null)).join(""),u=o.length&&!t.showAllCategories?se("show-all-categories",D(r.more),"mushi-chip mushi-chip-more"):"",p=Qd(t),d=p.length?`<div class="mushi-chips mushi-intents" role="radiogroup" aria-label="${D(oi(t,t.chip))}">${p.map((b,h)=>`<button type="button" class="mushi-chip mushi-chip-sm" role="radio" aria-checked="${t.intent===b}" tabindex="${t.intent===b||!t.intent&&h===0?"0":"-1"}" data-action="intent" data-intent="${D(b)}">${D(b)}</button>`).join("")}</div>`:"",f=t.screenshotCapturing?n.screenshotCapturing:t.screenshotError?n.screenshotRetry:n.screenshotButton,x=t.elementCapturing?n.elementCapturing:t.elementError?n.elementFailed:t.elementSelected?n.elementSelected:r.pointAt,v='<span class="mushi-spinner" aria-hidden="true"></span>',L=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?se("annotate-screenshot",D(r.markUp),"mushi-link-btn"):""}${t.allowScreenshotRemove?se("remove-screenshot",D(r.remove),"mushi-link-btn"):""}</span></figcaption></figure><div class="mushi-annotate-host" data-role="annotate-host"></div>`:t.screenshotAvailable?se("screenshot",`${t.screenshotCapturing?v:'<span aria-hidden="true">\u{1F4F7}</span>'}${D(f)}`,`mushi-attach-btn${t.screenshotError?" error":""}`,`${t.screenshotCapturing?" disabled":""} aria-label="${D(f)}"`):"",E=t.elementAvailable?se("element",`${t.elementCapturing?v:'<span aria-hidden="true">\u2316</span>'}${D(x)}`,`mushi-attach-btn${t.elementSelected?" active":""}${t.elementError?" error":""}`,`${t.elementCapturing?" disabled":""} aria-label="${D(x)}"`):"",w=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?` ${se("screenshot-share-tab",D(n.screenshotShareTab),"mushi-link-btn")}`:""}</p>`:"",I=t.submitNotSent?`<p class="mushi-note mushi-error-inline" data-role="not-sent">${D(t.submitNotSent==="throttled"?n.notSentThrottled:n.notSentBlocked)}</p>`:"",P=t.identifiedUser?.name??t.identifiedUser?.email,R=t.chip==="idea",m=t.canSend?D(n.submitHint.replace("{key}",la(ca()))):D(t.rc.ui.addWords);return {header:en(t,t.config.expandedTitle||r.title),lead:`<textarea class="mushi-textarea" data-role="description" rows="3" maxlength="${Jr}" placeholder="${D(R?n.featurePlaceholder:n.descriptionPlaceholder)}" aria-label="${D(r.title)}" aria-describedby="mushi-hint"></textarea>`,body:`${t.config.betaMode?.enabled?ip(t):""}<div class="mushi-chips"><div class="mushi-chip-group" role="radiogroup" aria-label="${D(r.title)}">${s}</div>${u}</div>${d}<div class="mushi-attachments">${L}${E}</div>${w}${I}<p class="mushi-note">\u{1F512} ${D(r.privacy)}</p>${P?`<p class="mushi-note">\u{1F464} ${D(P)}</p>`:""}${t.draftLength>Jr-400?`<p class="mushi-note" aria-live="polite">${t.draftLength}/${Jr}</p>`:""}${t.launcherDismissible?`<p class="mushi-note">${se("hide-launcher",D(e.widget.hideLauncher??Yd),"mushi-link-btn")}</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 Da(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 rp(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>${Da(t)}</div>`}function np(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 ip(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>${Da(t)}${o.length?`<ul class="mushi-beta-perks">${o.map(a=>`<li>${D(a)}</li>`).join("")}</ul>`:""}${np(t)}</div>`}function Pa(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 op(t){let e=t.locale.flows.success,r=t.lastSubmitFailureKind;if(Pa(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 Ba(t,e=3){return `<div class="mushi-skeleton" role="status" aria-label="${D(t)}">${"<span></span>".repeat(e)}</div>`}function sp(t){let e=t.locale.flows.success,r=t.submittedAt??new Date,n=Pa(t),i=!n&&t.lastReportId&&t.callbacks.onReporterReportsRequest;return {header:en(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(pa(r,t.config.locale==="auto"?void 0:t.config.locale))}</time>${op(t)}${n?"":rp(t)+(t.views?.renderOptIns(t)??"")}${t.rewardsState?ap(t):""}</div>`,footer:`${i?se("track-report",D(e.trackReport),"mushi-btn"):"<span></span>"}${se("done",D(e.done),"mushi-submit")}`}}function ap(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,p=r.pointsThreshold;a=p>u?Math.round(Math.min(1,(o-u)/(p-u))*100):100;let d=Math.max(0,p-o);s=d>0?`${d.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 Fa(t){return St(t)}function Sp(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 li=null,ci=null;function ja(){return ci??=Promise.resolve().then(()=>(qa(),Ua)).then(t=>(t.initViews(Ia),li=t,t)),ci}var ai=["notice","header","lead","body","footer","brand"],ui=["description","reporter-reply","magic-link-email","optin-email"],xp=["bug","slow","visual","confusing","other"],Rp='button:not([disabled]),textarea:not([disabled]),input:not([disabled]),a[href],[tabindex]:not([tabindex="-1"])',rn=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;submitNotSent=null;bannerDismissed=false;bannerResizeObserver=null;fabPos=null;fabPosKey="";draggableSet=false;barClearance=0;clampedForClearance=0;tuckCleanup=null;tuckTimer=null;resizeFrame=null;lateMeasureTimer=null;onViewportResize=()=>{this.resizeFrame===null&&(this.resizeFrame=requestAnimationFrame(()=>{this.resizeFrame=null,this.barClearance=this.measureFixedBars(),this.render();}));};launcherDismissed=ea();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,mobileTrigger:e.mobileTrigger??(kp(e)?"auto":"edge-tab"),avoidFixedBars:e.avoidFixedBars??true,tuckOnScroll:e.tuckOnScroll??true,dismissible:e.dismissible??true,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.draggableSet=e.draggable!==void 0,this.locale=ni(this.config.locale==="auto"?void 0:this.config.locale),this.rc=this.resolveCopy();let n=ra();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 ai){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(),Fa(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.syncScrollTuck(),this.bindColorSchemeListener(),window.addEventListener("resize",this.onViewportResize),window.visualViewport?.addEventListener("resize",this.onViewportResize),this.render(),this.onViewportResize(),this.lateMeasureTimer=setTimeout(()=>{this.lateMeasureTimer=null,this.onViewportResize();},1200));}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=ni(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),e.draggable!==void 0&&(this.draggableSet=true),this.host.isConnected&&this.syncHostChromeState(),this.syncAttachedLaunchers(),this.syncSmartHide(),this.host.isConnected&&this.syncScrollTuck(),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.submitNotSent=null,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"&&xp.includes(r)?r:null,this.showAllCategories=!!n,this.removeToast(),this.barClearance=this.measureFixedBars(),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,...Sp(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(){na({turns:this.assistantTurns,threadId:this.assistantThreadId});}clearAssistantTranscript(){this.assistantTurns=[],this.assistantThreadId=null,this.assistantError=null,ia(),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.tuckCleanup?.(),this.tuckCleanup=null,window.removeEventListener("resize",this.onViewportResize),window.visualViewport?.removeEventListener("resize",this.onViewportResize),this.resizeFrame!==null&&(cancelAnimationFrame(this.resizeFrame),this.resizeFrame=null),this.lateMeasureTimer!==null&&(clearTimeout(this.lateMeasureTimer),this.lateMeasureTimer=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","absolute"),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","auto"),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||this.launcherDismissed,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);}syncScrollTuck(){this.tuckCleanup?.(),this.tuckCleanup=null;let e=this.config.smartHide,r=e===true||typeof e=="object"&&!!e.onScroll;if(!this.config.tuckOnScroll||r||typeof document>"u")return;let n=700,i=()=>{let o=this.triggerEl;!o||this.isOpen||this.shadow.activeElement===o||o.classList.contains("dragging")||(o.classList.add("tucked"),this.tuckTimer!==null&&clearTimeout(this.tuckTimer),this.tuckTimer=setTimeout(()=>{this.tuckTimer=null,this.triggerEl?.classList.remove("tucked");let a=this.measureFixedBars();a!==this.barClearance&&(this.barClearance=a,this.render());},n));};document.addEventListener("scroll",i,{capture:true,passive:true}),this.tuckCleanup=()=>{document.removeEventListener("scroll",i,{capture:true}),this.tuckTimer!==null&&clearTimeout(this.tuckTimer),this.tuckTimer=null;};}measureFixedBars(){if(!this.config.avoidFixedBars||typeof document>"u"||typeof document.elementsFromPoint!="function")return 0;let e=window.innerHeight,r=window.innerWidth;if(!e||!r)return 0;let n=this.config.position.endsWith("left"),i=a=>a.height>0&&a.height<=e*.4&&a.top<e&&a.bottom>=e-4&&a.bottom<=e+4,o=e;for(let a of [n?24:r-24,r/2]){let s=document.elementsFromPoint(a,e-2).find(p=>p!==this.host&&!this.host.contains(p)),u=null;for(let p=s??null;p&&p!==document.body&&p!==document.documentElement;p=p.parentElement){let d=getComputedStyle(p),f=p.getBoundingClientRect();if(d.position==="fixed"||d.position==="sticky"){let x=i(f)?f:u;x&&(o=Math.min(o,x.top));break}/(auto|scroll)/.test(d.overflowY)?u=null:i(f)&&(u=f);}}return o<e?Math.ceil(e-o+8):0}dismissLauncherForSession(){this.launcherDismissed=true,ta(),this.close();}shouldRenderTrigger(){if(!this.triggerVisible||this.launcherDismissed||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",p=`\u{1F4EC} ${this.locale.panel.yourReports}`,d=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(d)),f.setAttribute("role","banner");let x=document.createElement("button");if(x.className="mushi-banner-dismiss",x.textContent="\u2715",x.setAttribute("aria-label","Dismiss feedback banner"),x.addEventListener("click",()=>{this.bannerDismissed=true,this.removeBodyNudge(),this.render();}),o){let v=document.createElement("div");v.className="mushi-banner-body";let L=e.label===false?null:e.label??qs.bannerLabel;if(L){let R=document.createElement("span");R.className="mushi-banner-pill",R.textContent=L,v.appendChild(R);}let E=document.createElement("span");E.className="mushi-banner-message",E.textContent=i,v.appendChild(E),f.appendChild(v);let w=document.createElement("nav");w.className="mushi-banner-actions",w.setAttribute("aria-label","Feedback banner actions");let I=(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);},P=(R,m,b=false)=>{let h=document.createElement("button");h.type="button",h.className=`mushi-banner-link${b?" mushi-banner-extra":""}`,h.textContent=R,h.addEventListener("click",m),w.appendChild(h);};P(a,()=>this.open({category:"bug"})),s&&(I(true),P(u,()=>this.open({featureRequest:true}),true));for(let R of e.links??[]){let m=R.label?.trim();if(!m)continue;let b=R.href&&(/^https?:\/\//i.test(R.href)||R.href.startsWith("/"))?R.href:void 0;if(I(true),b){let h=document.createElement("a");h.className="mushi-banner-link mushi-banner-extra",h.href=b,h.textContent=m,h.target="_blank",h.rel="noopener noreferrer",w.appendChild(h);}else P(m,()=>{R.featureRequest?this.open({featureRequest:true}):this.open();},true);}I(true),P(p,()=>this.openReporter(),true),f.appendChild(w),f.appendChild(x);}else {let v=document.createElement("button");if(v.className="mushi-banner-btn",v.textContent=a,v.addEventListener("click",()=>this.open({category:"bug"})),f.appendChild(v),s){let E=document.createElement("button");E.className="mushi-banner-btn",E.textContent=u,E.addEventListener("click",()=>this.open({featureRequest:true})),f.appendChild(E);}let L=document.createElement("button");L.className="mushi-banner-my-reports",L.textContent=p,L.addEventListener("click",()=>this.openReporter()),f.appendChild(L),f.appendChild(x);}this.shadow.insertBefore(f,this.panel),this.bannerEl=f,this.applyBodyNudge(n),this.trackBannerHeight(f,n);}effectiveTrigger(){if(typeof window>"u")return this.config.trigger;if(this.config.smartHide){let e=this.config.smartHide===true?{onMobile:"edge-tab"}:this.config.smartHide;if(window.matchMedia("(max-width: 768px)").matches&&e.onMobile==="edge-tab")return "edge-tab"}return this.config.trigger==="auto"&&this.config.mobileTrigger==="edge-tab"&&typeof window.matchMedia=="function"&&window.matchMedia("(max-width: 768px)")?.matches?"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=xt(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=xt(s),p=u?this.probeRgb(u):null;p&&ii(p,i).ratio>=3&&(o=u);}if(!o)return {accent:"",accentFg:""};let a=this.probeRgb(o);return {accent:o,accentFg:xt(this.config.accentText??"")||(a?ii(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=Ca(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]),o=false;(i!==this.triggerKey||e&&!this.triggerEl?.isConnected)&&(this.triggerKey=i,this.triggerEl?.remove(),this.triggerEl=e?this.buildTrigger(n):null,o=true),this.triggerEl&&(this.triggerEl.setAttribute("aria-expanded",String(this.isOpen)),this.applyInsetVars(this.triggerEl),(o||this.barClearance!==this.clampedForClearance)&&this.fabPos&&this.dragOptions(this.triggerEl)&&this.restoreFabPos(this.triggerEl),this.clampedForClearance=this.barClearance);}buildTrigger(e){let r=e==="edge-tab",n=document.createElement("button");if(n.className=`mushi-trigger ${this.config.position}${r?" edge-tab":""}${r&&Va(this.config.triggerText)?" text":""}${this.triggerShrunk?" shrunk":""}`,r){let i=document.createElement("span");i.className="mushi-trigger-face",i.textContent=this.config.triggerText,n.appendChild(i);}else n.textContent=this.config.triggerText;return n.setAttribute("aria-label",this.locale.widget.trigger),n.setAttribute("aria-haspopup","dialog"),n.style.zIndex=String(this.config.zIndex),n.addEventListener("click",()=>{this.isOpen?this.close():this.open();}),n.addEventListener("keydown",i=>{let o=this.dragOptions(n);if(!o)return;let a=8,{axis:s}=o,u=0,p=0;if(s!=="y"&&(i.key==="ArrowLeft"?u=-a:i.key==="ArrowRight"&&(u=a)),s!=="x"&&(i.key==="ArrowUp"?p=-a:i.key==="ArrowDown"&&(p=a)),u!==0||p!==0){i.preventDefault();let d=this.fabPos??{x:0,y:0};this.moveFab(n,d.x+u,d.y+p,"end");}}),this.dragOptions(n)&&this.attachDragHandlers(n),this.shadow.insertBefore(n,this.panel),n}restoreFabPos(e){if(!this.fabPos)return;let r=this.fabPos;this.fabPos={x:0,y:0},e.style.setProperty("--mushi-drag-active","0"),this.moveFab(e,r.x,r.y,"restore");}dragOptions(e){let r=e.classList.contains("edge-tab"),n=this.config.draggable;if(!n&&(this.draggableSet||!r))return null;let i=typeof n=="object"?n:{};return {axis:r?"y":i.axis??"both",persist:i.persist??true,snap:!r&&(i.snapToEdge??true)}}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 d of ai)this.regionEls[d].innerHTML="";this.regionHtml={},this.renderedStep=null,this.teardownViewportHandlers();}return}let r=this.renderCtx();!li&&(Aa.has(this.step)||this.step==="success"&&(this.channels.email||this.channels.push))&&this.preloadViews().then(()=>{this.isOpen&&this.render();});let n=Ta(r),i={notice:Ma(r),header:n.header,lead:n.lead,body:n.body,footer:n.footer,brand:La(r)},o=this.renderedStep!==this.step,a=this.renderedStep===null,s=this.shadow.activeElement,u=s?Wa(s):null;this.captureFormDrafts();let p=false;for(let d of ai)this.regionHtml[d]!==i[d]&&(this.regionHtml[d]=i[d],this.regionEls[d].innerHTML=i[d],p=true);this.renderedStep=this.step,p&&(fa(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 ui){let i=this.panel.querySelector(`[data-role="${n}"]`);i&&(this.drafts[n]=i.value);}let e=this.shadow.activeElement,r=e?.dataset?.role;r&&ui.includes(r)?(this.drafts._focus=r,this.drafts._sel=`${e.selectionStart??0},${e.selectionEnd??0}`):delete this.drafts._focus;}restoreFormDrafts(){for(let e of ui){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=window.innerHeight/2,i=0;for(let o of r)try{let a=document.querySelector(o);if(!a)continue;let s=a.getBoundingClientRect();if((s.top+s.bottom)/2>=n)continue;s.bottom>i&&s.width>0&&s.height>0&&(i=s.bottom);}catch{}return i>0?Math.ceil(i)+e:null}computeAvoidBottomPx(e=8){let r=this.config.avoidSelectors;if(!r?.length)return null;let n=window.innerHeight/2,i=0;for(let o of r)try{let a=document.querySelector(o);if(!a)continue;let s=a.getBoundingClientRect();if((s.top+s.bottom)/2<=n)continue;if(s.width>0&&s.height>0){let u=window.innerHeight-s.top+e;u>i&&(i=u);}}catch{}return i>0?Math.ceil(i):null}hostCssVar(e){if(!this.host.isConnected)return "";try{return getComputedStyle(this.host).getPropertyValue(e).trim()}catch{return ""}}applyInsetVars(e){let{anchor:r}=this.config;for(let o of ["top","right","bottom","left"])e.style.removeProperty(`--mushi-${o}`);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();if(o!==null)e.style.setProperty("--mushi-bottom",`${Math.max(o,this.barClearance)}px`);else if(this.barClearance>0){let a=e.style.getPropertyValue("--mushi-bottom").trim()||this.hostCssVar("--mushi-bottom")||`calc(${at.gutter}px + env(safe-area-inset-bottom, 0px))`;a!=="auto"&&e.style.setProperty("--mushi-bottom",`max(${a}, ${this.barClearance}px)`);}}}fabStorageKey(e){let r=this.config.projectId??"";return `${e.classList.contains("edge-tab")?"mushi_tab_pos":"mushi_fab_pos"}${r?`_${r}`:""}`}moveFab(e,r,n,i){let o=this.dragOptions(e);if(!o)return;let{axis:a}=o,s=window.innerWidth,u=window.innerHeight,p=e.offsetWidth||52,d=e.offsetHeight||52,f=getComputedStyle(document.documentElement),x=q=>parseInt(f.getPropertyValue(`--sai-${q}`)||"0")||0,v=x("left"),L=x("right"),E=x("top"),w=x("bottom"),I=8,P=e.getBoundingClientRect(),R=P.left-(this.fabPos?.x??0),m=P.top-(this.fabPos?.y??0),b=v+I-R,h=s-L-I-p-R,g=E+I-m,k=u-Math.max(w+I,this.barClearance)-d-m,M=a==="x"?0:Math.max(g,Math.min(k,n)),O=a==="y"?0:Math.max(b,Math.min(h,r));if(i==="end"&&o.snap&&a!=="y"&&(O=P.left+p/2<s/2?v+I-R:s-L-I-p-R),this.fabPos={x:O,y:M},e.style.setProperty("--mushi-drag-x",`${O}px`),e.style.setProperty("--mushi-drag-y",`${M}px`),e.style.setProperty("--mushi-drag-active","1"),i==="end"&&o.persist)try{localStorage.setItem(this.fabStorageKey(e),JSON.stringify(this.fabPos));}catch{}}loadFabPos(e){let r=this.fabStorageKey(e);if(r!==this.fabPosKey&&(this.fabPosKey=r,this.fabPos=null,!!this.dragOptions(e)?.persist))try{let n=localStorage.getItem(r);if(n){let i=JSON.parse(n);typeof i?.x=="number"&&typeof i?.y=="number"&&(this.fabPos=i);}}catch{}}attachDragHandlers(e){this.loadFabPos(e);let r=0,n=0,i=0,o=0,a=false,s=false,u=6;e.addEventListener("pointerdown",d=>{if(d.button!==0&&d.pointerType!=="touch")return;e.setPointerCapture?.(d.pointerId),r=d.clientX,n=d.clientY;let f=this.fabPos??{x:0,y:0};i=f.x,o=f.y,a=true,s=false;}),e.addEventListener("pointermove",d=>{if(!a)return;let f=d.clientX-r,x=d.clientY-n;!s&&Math.hypot(f,x)>u&&(s=true,e.classList.remove("tucked"),e.classList.add("dragging")),s&&(d.preventDefault(),this.moveFab(e,i+f,o+x,"move"));});let p=d=>{if(a){if(a=false,e.classList.remove("dragging"),s){this.moveFab(e,i+d.clientX-r,o+d.clientY-n,"end");let f=x=>{x.stopImmediatePropagation(),e.removeEventListener("click",f,{capture:true});};e.addEventListener("click",f,{capture:true});}s=false;}};e.addEventListener("pointerup",p),e.addEventListener("pointercancel",p);}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:li,step:this.step,callbacks:this.callbacks,chip:this.chip,intent:this.intent,showAllCategories:this.showAllCategories,draftLength:(this.drafts.description??"").length,launcherDismissible:this.config.dismissible&&this.triggerEl!==null,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,submitNotSent:this.submitNotSent,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:Xs(),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=>Xn[e]??Xn.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"&&Ka(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(ua(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(Wa(o)??"")?.focus();}}trapTab(e){let r=Array.from(this.panel.querySelectorAll(Rp)).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 "hide-launcher":this.dismissLauncherForSession();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":_p(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,p=a?oa: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.submitNotSent=null;let d={...this.drafts};this.render();let f=(async()=>{try{let v=this.callbacks.onSubmit({category:s,...u?{userCategory:u}:{},description:r,...p?{intent:p}:{}});return v&&typeof v.then=="function"?await v??null:null}catch{return {reportId:null,queuedOffline:true}}})(),x;f.then(v=>{x=v;}),this.successTimer=setTimeout(()=>{if(this.successTimer=null,ei(x)){this.showNotSent(x.failureKind,d);return}this.submitting=false,this.step="success",this.drafts={},this.render(),this.announce(this.rc.ui.sent),f.then(v=>{if(!(this.step!=="success"||!v)){if(ei(v)){this.showNotSent(v.failureKind,d);return}this.lastReportId=v.reportId??null,this.lastSubmitQueuedOffline=!!v.queuedOffline,this.lastSubmitFailureKind=v.failureKind,this.lastSubmitScreenshotDropped=!!v.screenshotDropped,this.render();}});},500);}showNotSent(e,r){this.submitting=false,this.step="report",this.drafts=r,this.submitNotSent=e,this.render();let n=this.locale.step3;this.announce(e==="throttled"?n.notSentThrottled:n.notSentBlocked);}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 Ft(e,Ot):[],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 Ft(e,Ot):[];}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 Ft(n,Ot):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 Ft(o,Ot):[];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="",Ka(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 Ft(Promise.resolve(this.callbacks.onReporterReply?.(n,r.body)),Ot),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(!va(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 ja()).pickUpdateToast(e,this.lang,this.rc.ui.toastReplied);return r?this.showUpdateToast(r):false}async preloadViews(){try{await ja();}catch{ci=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:ya(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){return Array.from(t.trim()).length>2}function kp(t){let{anchor:e,inset:r}=t;return !!(t.draggable||Va(t.triggerText??"")||e?.left!==void 0||e?.right!==void 0||r?.left!==void 0||r?.right!==void 0)}function Wa(t){let e=t.dataset;return e.role?`[data-role="${e.role}"]`:e.category?`[data-category="${tn(e.category)}"]`:e.intent?`[data-intent="${tn(e.intent)}"]`:e.reportId?`[data-report-id="${tn(e.reportId)}"]`:e.action?`[data-action="${e.action}"]${e.value?`[data-value="${tn(e.value)}"]`:""}`:null}function tn(t){return t.replace(/["\\]/g,"\\$&")}function Ka(t){t.style.height="auto",t.style.height=`${Math.min(t.scrollHeight,104)}px`;}function _p(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 di(t,e){try{return globalThis[t]?.getItem(e)??null}catch{return null}}function pi(t,e,r){try{globalThis[t]?.setItem(e,r);}catch{}}function hi(t){pi("localStorage",`mushi_has_reports_${t}`,"1");}function fi(t){return di("localStorage",`mushi_has_reports_${t}`)==="1"}function za(t,e=Date.now()){if(di("sessionStorage",`mushi_toast_${t}`))return false;let r=Number(di("localStorage",`mushi_toast_at_${t}`)??0);return !(r&&e-r<864e5)}function Ga(t,e=Date.now()){pi("sessionStorage",`mushi_toast_${t}`,"1"),pi("localStorage",`mushi_toast_at_${t}`,String(e));}function Ya(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 Xa(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,p=>p.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 Cp(t,e){let r={...t};if(e)for(let[n,i]of Object.entries(e))i!==void 0&&(r[n]=i);return r}var Tp=["brandFooter"],Ap=["manual","attach"];function Ja(t,e,r=t){let n=e.native?.triggerMode,i=e.widget?.launcher,o=t.widget?.trigger,a=r.widget?.trigger,s=i??e.widget?.trigger,u=a!==void 0&&Ap.includes(a)&&s!=="hidden",d=u?void 0:(u||s==="auto"&&o&&o!=="auto"?void 0:s)??(n==="none"||n==="shake"?"manual":void 0),f=i==="hidden"||e.widget?.trigger==="hidden",x=d==="hidden"&&!f&&o&&o!=="hidden"?o:d,v=e.widget,L=v?.bannerVariant,E=v?.bannerPosition,w=v?.bannerMessage,I=v?.bannerLabel,P=v?.bannerBugCta,R=v?.bannerFeatureCta,m=L||E||w!=null||I!=null||P!=null||R!=null?{...t.widget?.bannerConfig??{},...L?{variant:L}:{},...E?{position:E}:{},...w!=null?{message:w}:{},...I!=null?{label:I===""?false:I}:{},...P!=null?{bugCta:P??void 0}:{},...R!=null?{featureCta:R}:{}}:void 0,b={};if(e.widget)for(let[h,g]of Object.entries(e.widget))h==="trigger"||h==="launcher"||g!=null&&(Tp.includes(h)&&r.widget?.[h]!==void 0||(b[h]=g));return {...t,widget:{...t.widget,...b,...x?{trigger:x}:{},...m?{bannerConfig:m}:{},...t.widget?.betaMode?{betaMode:t.widget.betaMode}:{}},capture:Cp(t.capture,e.capture),privacy:{...t.privacy}}}function nn(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 Za(t){if(typeof globalThis>"u")return;let e={ready:()=>t.getIsMounted(),getStep:()=>t.getRecorderStep(),getCategoryStepIA:()=>t.getRecorderCategoryStepIA(),getTriggerCenter:()=>nn(t.getRecorderTrigger()),getCategoryCenter:r=>nn(t.getRecorderCategoryButton(r)),getIntentCenter:r=>nn(t.getRecorderIntentButton(r)),getSubmitCenter:()=>nn(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 on=null,sn=null,pr=null,hr=null,fr=null,mr=false,Rt=new Set;function Ip(){for(let t of Rt)try{t.onPush?.();}catch{}}function Mp(){for(let t of Rt)try{t.onReplace?.();}catch{}}function Lp(){for(let t of Rt)try{t.onPop?.();}catch{}}function Dp(){if(mr||typeof window>"u")return;let t=history.pushState,e=history.replaceState;on=t,sn=e;let r=function(...o){let a=t.apply(history,o);return pr===r&&Ip(),a},n=function(...o){let a=e.apply(history,o);return hr===n&&Mp(),a};pr=r,hr=n,history.pushState=r,history.replaceState=n,fr=()=>Lp(),window.addEventListener("popstate",fr),mr=true;}function Qa(){!mr||typeof window>"u"||(fr&&(window.removeEventListener("popstate",fr),fr=null),pr&&history.pushState===pr&&on&&(history.pushState=on),hr&&history.replaceState===hr&&sn&&(history.replaceState=sn),pr=null,hr=null,on=null,sn=null,mr=false);}function Pe(t){return Dp(),mr?(Rt.add(t),()=>{Rt.delete(t),Rt.size===0&&Qa();}):()=>{}}function eu(){Rt.clear(),Qa();}var Pp=3e4,Bp=3e5,Fp=6e4,Op=60,nu="mushi_session_min_day_",Nt=[],Ut=null,qt=null,et=null,iu=null,mi=null,jt=null,ut=false,br=null,ou=0,yi=null,$p=300*1e3,vi=0,Hp=900*1e3;function wi(){return Date.now()<vi}function Si(t){t?.startsWith("HTTP_4")&&(vi=Date.now()+Hp);}var tu=new Set;function gi(t){return `mushi_rewards_consent_${t}`}function Np(t){try{return localStorage.getItem(gi(t))==="1"}catch{return false}}function bi(t,e){try{e?localStorage.setItem(gi(t),"1"):localStorage.removeItem(gi(t)),ut=e;}catch{}}function su(){return new Date().toISOString().slice(0,10)}function au(t){try{let e=sessionStorage.getItem(`${nu}${t}_${su()}`);return e?parseInt(e,10):0}catch{return 0}}function Up(t){let e=su(),r=`${nu}${t}_${e}`;try{let n=au(t)+1;return sessionStorage.setItem(r,String(n)),n}catch{return 99}}function uu(t){jt=t.client,et=t.userId,iu=t.traits??null,mi=t.reporterToken??null;let{projectId:e}=t,r=Math.max(Pp,t.config.flushIntervalMs??Bp);t.config.consentMode==="auto"?(ut=true,bi(e,true)):ut=Np(e),t.config.trackActivity&&jp(e),Ut&&clearInterval(Ut),Ut=setInterval(()=>qp(t),r),qt&&clearInterval(qt),qt=setInterval(()=>{if(!ut||!et)return;let n=au(e);n<Op&&(Up(e),Wt({action:"session_minute",metadata:{minutes_today:n+1}}));},Fp),t.config.showInWidget&&xi(et).then(n=>{n&&pu(n,t.config);}),t.config.consentMode!=="auto"&&!ut&&Vp(e,t.config);}function Wt(t){!ut||!et||Nt.push({...t,queuedAt:Date.now()});}async function qp(t){if(!ut||!et||Nt.length===0)return;let e=null;if(t.config.verifyUserToken)try{e=await t.config.verifyUserToken();}catch{}if(wi())return;let r=Nt.splice(0,100);try{let n=mi?await Dt(mi):void 0,i=await t.client.submitActivity(et,r,{userTraits:iu??void 0,reporterTokenHash:n,optedIn:!0,hostJwt:e??void 0});i.ok||(Si(i.error?.code),i.error?.code?.startsWith("HTTP_4")||Nt.unshift(...r.slice(0,50)));}catch{Nt.unshift(...r.slice(0,50));}}async function lu(t){let e=Date.now();return br&&yi===t&&e-ou<$p?br:xi(t)}async function xi(t){if(!jt||wi())return null;let e=await jt.getMyTier(t);return e.ok&&e.data?(br=e.data,ou=Date.now(),yi=t,br):(Si(e.error?.code),null)}async function cu(t=10){if(!jt||wi())return null;try{let e=await jt.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})):(Si(e.error?.code),null)}catch{return null}}function du(){Ut&&(clearInterval(Ut),Ut=null),qt&&(clearInterval(qt),qt=null),Ei(),Kp(),Se&&(Se.remove(),Se=null),Nt=[],et=null,jt=null,ut=false,br=null,yi=null,vi=0;}var un=null,gr=null,ln=null,ru="",an=false;function jp(t){if(!(an&&ln)){an&&Ei(),an=true;try{Wp(t);}catch(e){throw Ei(),e}}}function Wp(t){let e=()=>{let n=location.pathname;if(n===ru)return;ru=n,!tu.has(`${t}:${n}`)&&(tu.add(`${t}:${n}`),Wt({action:"screen_view_unique_per_day",metadata:{route:n}}));};ln=Pe({onPush:e,onPop:e}),e(),un=new MutationObserver(()=>e());let r=document.querySelector("main")??document.body;un.observe(r,{childList:true,subtree:false}),gr=n=>{let i=n.target.closest("[data-testid]");if(!i)return;let o=i.dataset.testid;o&&Wt({action:"element_selected",metadata:{testid:o,route:location.pathname}});},document.addEventListener("click",gr,{capture:true,passive:true});}function Ei(){an=false,ln?.(),ln=null,un?.disconnect(),un=null,gr&&(document.removeEventListener("click",gr,{capture:true}),gr=null);}var Qe=null;function pu(t,e){if(!e.showInWidget)return;Qe&&Qe.remove(),Qe=document.createElement("div"),Qe.id="mushi-tier-badge",Object.assign(Qe.style,{position:"fixed",bottom:"56px",right:"16px",zIndex:"2147483645",fontFamily:"system-ui, sans-serif"});let r=Qe.attachShadow({mode:"closed"});r.innerHTML=`
16
+ </span>`:`<span class="mushi-app-icon mushi-app-icon-initials-only" aria-hidden="true">${r}</span>`}function ba(e){e.querySelectorAll("[data-mushi-favicon]").forEach(t=>{let r=t.querySelector(".mushi-app-icon-img"),n=t.querySelector(".mushi-app-icon-initials");if(!r||!n)return;let i=[];try{i=JSON.parse(t.dataset.candidates??"[]");}catch{i=[];}let o=0,s=()=>{o+=1,o<i.length?r.src=i[o]:(r.remove(),n.hidden=false,t.classList.add("mushi-app-icon-initials-only"));};r.onerror=s,r.onload=()=>{Js(r)&&s();};});}var Pd={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}]},Ea=Pd.patterns,Bd=Ea.map(e=>({key:e.configKey,regex:new RegExp(e.source,e.caseInsensitive?"gi":"g"),replacement:e.replacement})),$d=Ea.reduce((e,t)=>(e[t.configKey]=t.defaultOn!==false,e),{});function Fd(e={}){let t={...$d,...e},r=Bd.filter(o=>t[o.key]);function n(o){if(!o)return o;let s=o;for(let{regex:a,replacement:u}of r)s=s.replace(new RegExp(a.source,a.flags),u);return s}function i(o,s){let a={...o};for(let u of s)typeof a[u]=="string"&&(a[u]=n(a[u]));return a}return {scrub:n,scrubObject:i}}function Od(e,t){return Fd(t).scrub(e)}var Hd=300,Nd=16e3,Ud=6;function ui(e,t,r){if(typeof e=="string")return t(e);if(e===null||typeof e=="number"||typeof e=="boolean")return e;if(!(r>=Ud)){if(Array.isArray(e))return e.map(n=>ui(n,t,r+1)).filter(n=>n!==void 0);if(typeof e=="object"){let n={};for(let[i,o]of Object.entries(e)){let s=ui(o,t,r+1);s!==void 0&&(n[i]=s);}return n}}}function qd(e,t){if(JSON.stringify(e).length<=t)return e;let r={diagnosticsTruncated:true};for(let[n,i]of Object.entries(e)){let o={...r,[n]:i};JSON.stringify(o).length>t||(r[n]=i);}return r}async function ya(e,t={}){if(!e)return null;let r;try{let n=await Promise.race([Promise.resolve().then(e),new Promise(o=>{r=setTimeout(()=>o(null),t.timeoutMs??Hd);})]);if(!n||typeof n!="object"||Array.isArray(n))return null;let i=ui(n,t.scrub??(o=>Od(o)),0);return Object.keys(i).length>0?qd(i,t.maxChars??Nd):null}catch{return null}finally{r&&clearTimeout(r);}}nn();var on={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.",hideLauncher:"Hide the bug button for this visit"},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",notSentBlocked:"Not sent. This report was filtered out before sending. Your text is still here; add a little more detail and try again.",notSentThrottled:"Not sent. Too many reports in a short time. Your text is still here; wait a minute and try again.",screenshotReview:"Check the screenshot below, then press Send again.",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 Mushi"}};var Ra={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\u3002\u5831\u544A\u3092\u9001\u4FE1\u3057\u307E\u3057\u305F\u3002",error:"\u5831\u544A\u3092\u9001\u4FE1\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\u3002\u63A5\u7D9A\u3092\u78BA\u8A8D\u3057\u3066\u3001\u3082\u3046\u4E00\u5EA6\u304A\u8A66\u3057\u304F\u3060\u3055\u3044\u3002",hideLauncher:"\u4ECA\u56DE\u306E\u5229\u7528\u4E2D\u306F\u5831\u544A\u30DC\u30BF\u30F3\u3092\u8868\u793A\u3057\u306A\u3044"},step1:{moreNav:{communityIdeas:"\u30B3\u30DF\u30E5\u30CB\u30C6\u30A3\u306E\u30A2\u30A4\u30C7\u30A2",leaderboard:"\u30E9\u30F3\u30AD\u30F3\u30B0",joinCommunity:"\u30B3\u30DF\u30E5\u30CB\u30C6\u30A3\u306B\u53C2\u52A0 \xB7 \u8907\u6570\u30A2\u30D7\u30EA\u306E\u5831\u544A\u3092\u307E\u3068\u3081\u3066\u78BA\u8A8D",myAccount:"\u30DE\u30A4\u30A2\u30AB\u30A6\u30F3\u30C8"},categories:{bug:"\u4E0D\u5177\u5408",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:["\u30A2\u30D7\u30EA\u304C\u843D\u3061\u308B","\u53CD\u5FDC\u3057\u306A\u3044","\u30C7\u30FC\u30BF\u304C\u6D88\u3048\u305F","\u7D50\u679C\u304C\u304A\u304B\u3057\u3044","\u305D\u306E\u4ED6"],slow:["\u30DA\u30FC\u30B8\u306E\u8AAD\u307F\u8FBC\u307F","\u64CD\u4F5C\u3078\u306E\u53CD\u5FDC","\u901A\u4FE1","\u30A2\u30CB\u30E1\u30FC\u30B7\u30E7\u30F3","\u305D\u306E\u4ED6"],visual:["\u30EC\u30A4\u30A2\u30A6\u30C8\u304C\u5D29\u308C\u3066\u3044\u308B","\u8868\u793A\u304C\u91CD\u306A\u3063\u3066\u3044\u308B","\u8868\u793A\u3055\u308C\u306A\u3044\u90E8\u5206\u304C\u3042\u308B","\u8272\u3084\u6587\u5B57\u304C\u9055\u3046","\u305D\u306E\u4ED6"],confusing:["\u8868\u793A\u306E\u610F\u5473\u304C\u5206\u304B\u308A\u306B\u304F\u3044","\u8AAC\u660E\u304C\u898B\u5F53\u305F\u3089\u306A\u3044","\u601D\u3063\u305F\u901A\u308A\u306B\u9032\u307E\u306A\u3044","\u3069\u3053\u306B\u3042\u308B\u304B\u5206\u304B\u3089\u306A\u3044","\u305D\u306E\u4ED6"],other:["\u6A5F\u80FD\u306E\u8981\u671B","\u30A2\u30AF\u30BB\u30B7\u30D3\u30EA\u30C6\u30A3","\u8AA4\u5B57\u30FB\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\u3092\u6DFB\u4ED8\u3057\u307E\u3057\u305F",screenshotCapturing:"\u30B9\u30AF\u30EA\u30FC\u30F3\u30B7\u30E7\u30C3\u30C8\u3092\u64AE\u5F71\u4E2D\u2026",screenshotRetry:"\u3084\u308A\u76F4\u3059",screenshotShareTab:"\u3053\u306E\u30BF\u30D6\u3092\u5171\u6709\u3057\u3066\u64AE\u5F71",notSentBlocked:"\u9001\u4FE1\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\u3002\u9001\u4FE1\u524D\u306E\u78BA\u8A8D\u3067\u5BFE\u8C61\u5916\u3068\u5224\u65AD\u3055\u308C\u307E\u3057\u305F\u3002\u5165\u529B\u5185\u5BB9\u306F\u6B8B\u3063\u3066\u3044\u307E\u3059\u3002\u3082\u3046\u5C11\u3057\u8A73\u3057\u304F\u66F8\u3044\u3066\u3001\u3082\u3046\u4E00\u5EA6\u304A\u8A66\u3057\u304F\u3060\u3055\u3044\u3002",notSentThrottled:"\u9001\u4FE1\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\u3002\u77ED\u3044\u6642\u9593\u306B\u9001\u4FE1\u304C\u7D9A\u3044\u3066\u3044\u307E\u3059\u3002\u5165\u529B\u5185\u5BB9\u306F\u6B8B\u3063\u3066\u3044\u307E\u3059\u30021 \u5206\u307B\u3069\u5F85\u3063\u3066\u304B\u3089\u3001\u3082\u3046\u4E00\u5EA6\u304A\u8A66\u3057\u304F\u3060\u3055\u3044\u3002",screenshotReview:"\u4E0B\u306E\u30B9\u30AF\u30EA\u30FC\u30F3\u30B7\u30E7\u30C3\u30C8\u3092\u78BA\u8A8D\u3057\u3066\u304B\u3089\u3001\u3082\u3046\u4E00\u5EA6\u300C\u9001\u4FE1\u300D\u3092\u62BC\u3057\u3066\u304F\u3060\u3055\u3044\u3002",screenshotErrors:{permission:"\u753B\u9762\u306E\u53D6\u5F97\u304C\u8A31\u53EF\u3055\u308C\u3066\u3044\u307E\u305B\u3093\u3002\u8A31\u53EF\u3057\u3066\u304B\u3089\u3001\u3082\u3046\u4E00\u5EA6\u304A\u8A66\u3057\u304F\u3060\u3055\u3044\u3002",unsupported:"\u3053\u306E\u30D6\u30E9\u30A6\u30B6\u3067\u306F\u753B\u9762\u3092\u53D6\u5F97\u3067\u304D\u307E\u305B\u3093\u3002\u6587\u7AE0\u3067\u304A\u77E5\u3089\u305B\u304F\u3060\u3055\u3044\u3002",taint:"\u5916\u90E8\u30B5\u30A4\u30C8\u306E\u30B3\u30F3\u30C6\u30F3\u30C4\u304C\u542B\u307E\u308C\u308B\u305F\u3081\u3001\u753B\u9762\u3092\u53D6\u5F97\u3067\u304D\u307E\u305B\u3093\u3002",timeout:"\u753B\u9762\u306E\u53D6\u5F97\u306B\u6642\u9593\u304C\u304B\u304B\u308A\u3059\u304E\u307E\u3057\u305F\u3002",csp:"\u3053\u306E\u30B5\u30A4\u30C8\u306E\u30BB\u30AD\u30E5\u30EA\u30C6\u30A3\u8A2D\u5B9A\u306B\u3088\u308A\u3001\u30B9\u30AF\u30EA\u30FC\u30F3\u30B7\u30E7\u30C3\u30C8\u3092\u53D6\u5F97\u3067\u304D\u307E\u305B\u3093\u3002",error:"\u753B\u9762\u3092\u53D6\u5F97\u3067\u304D\u307E\u305B\u3093\u3067\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\u3066\u304F\u3060\u3055\u3044\u3002\u6B8B\u9AD8\u3084\u500B\u4EBA\u60C5\u5831\u306A\u3069\u304C\u5199\u3063\u3066\u3044\u308B\u5834\u5408\u306F\u3001\u524A\u9664\u3057\u3066\u304B\u3089\u9001\u4FE1\u3057\u3066\u304F\u3060\u3055\u3044\u3002",elementButton:"\u5834\u6240\u3092\u6307\u5B9A",elementSelected:"\u5834\u6240\u3092\u6307\u5B9A\u3057\u307E\u3057\u305F",elementCapturing:"\u8A72\u5F53\u3059\u308B\u7B87\u6240\u3092\u30AF\u30EA\u30C3\u30AF\u3057\u3066\u304F\u3060\u3055\u3044\u2026",elementFailed:"\u9078\u629E\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\u3002\u6587\u7AE0\u3067\u304A\u77E5\u3089\u305B\u304F\u3060\u3055\u3044\u3002",elementSelectorHint:"\u8A72\u5F53\u3059\u308B\u7B87\u6240\u3092\u30AF\u30EA\u30C3\u30AF \xB7 Esc \u3067\u30AD\u30E3\u30F3\u30BB\u30EB"},panel:{title:"\u30D5\u30A3\u30FC\u30C9\u30D0\u30C3\u30AF\u3092\u9001\u308B",more:"\u305D\u306E\u4ED6\u2026",pointAt:"\u5834\u6240\u3092\u6307\u5B9A",remove:"\u524A\u9664",markUp:"\u5370\u3092\u3064\u3051\u308B",privacy:"\u9001\u4FE1\u5185\u5BB9\u306F\u3001\u3053\u306E\u30A2\u30D7\u30EA\u306E\u958B\u767A\u8005\u3060\u3051\u304C\u78BA\u8A8D\u3057\u307E\u3059\u3002\u500B\u4EBA\u60C5\u5831\u306F\u542B\u3081\u306A\u3044\u3067\u304F\u3060\u3055\u3044\u3002",send:"\u9001\u4FE1",yourReports:"\u3042\u306A\u305F\u306E\u5831\u544A",newCount:"\u65B0\u7740 {n} \u4EF6",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\u3092\u30AA\u30F3\u306B\u3057\u307E\u3057\u305F\u3002"},assistant:{defaultLabel:"\u8CEA\u554F",defaultGreeting:"\u3053\u306E\u30DA\u30FC\u30B8\u306B\u3064\u3044\u3066\u8CEA\u554F\u3067\u304D\u307E\u3059\u3002\u56DE\u7B54\u306B\u306F\u3001\u3044\u307E\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\u8CEA\u554F\u3059\u308B",thinking:"\u8003\u3048\u4E2D\u2026",fileReportCta:"\u4E0D\u5177\u5408\u3068\u3057\u3066\u5831\u544A\u3059\u308B",stillStuckCta:"\u89E3\u6C7A\u3057\u306A\u3044\u5834\u5408\u306F\u5831\u544A\u3059\u308B",errors:{noResponse:"\u5FDC\u7B54\u304C\u3042\u308A\u307E\u305B\u3093\u3002\u63A5\u7D9A\u3092\u78BA\u8A8D\u3057\u3066\u3001\u3082\u3046\u4E00\u5EA6\u304A\u8A66\u3057\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\u3001\u3082\u3046\u4E00\u5EA6\u304A\u8A66\u3057\u304F\u3060\u3055\u3044\u3002"}},flows:{reports:{title:"\u3042\u306A\u305F\u306E\u5831\u544A",loading:"\u5831\u544A\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\u304A\u5F85\u3061\u3057\u3066\u3044\u307E\u3059\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:"\u5168\u4F53\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\u3002\u6700\u521D\u306E\u4E00\u4EBA\u306B\u306A\u308A\u307E\u305B\u3093\u304B\u3002",signInPrompt:"\u30B5\u30A4\u30F3\u30A4\u30F3\u3057\u3066\u9806\u4F4D\u3092\u78BA\u8A8D \u2192",myRank:"\u4ECA\u6708\u306E\u9806\u4F4D\uFF1A{rank} \u4F4D",footer:"\u4ECA\u6708\u306E\u5168\u4F53\u30E9\u30F3\u30AD\u30F3\u30B0 \xB7 \u30DD\u30A4\u30F3\u30C8\u306F\u6BCE\u6708\u30EA\u30BB\u30C3\u30C8\u3055\u308C\u307E\u3059",anon:"\u533F\u540D"},account:{title:"Mushi Mushi \u30A2\u30AB\u30A6\u30F3\u30C8",checkEmailTitle:"\u30E1\u30FC\u30EB\u3092\u3054\u78BA\u8A8D\u304F\u3060\u3055\u3044",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\u3001\u3059\u3079\u3066\u306E\u30A2\u30D7\u30EA\u306E\u5831\u544A\u3068\u30E9\u30F3\u30AD\u30F3\u30B0\u3092\u78BA\u8A8D\u3067\u304D\u307E\u3059\u3002\u30D1\u30B9\u30EF\u30FC\u30C9\u306F\u4E0D\u8981\u3067\u3059\u3002",magicLinkSent:"{email} \u306B\u30B5\u30A4\u30F3\u30A4\u30F3\u7528\u306E\u30EA\u30F3\u30AF\u3092\u9001\u308A\u307E\u3057\u305F\u3002\u30EA\u30F3\u30AF\u3092\u958B\u304F\u3068\u3001\u3053\u308C\u307E\u3067\u306E\u5831\u544A\u304C\u30A2\u30AB\u30A6\u30F3\u30C8\u306B\u7D10\u3065\u304D\u307E\u3059\u3002",resendEmail:"\u30E1\u30FC\u30EB\u3092\u518D\u9001",sendLink:"\u30B5\u30A4\u30F3\u30A4\u30F3\u7528\u306E\u30EA\u30F3\u30AF\u3092\u9001\u308B",sending:"\u9001\u4FE1\u4E2D\u2026",crossAppReports:"\u3059\u3079\u3066\u306E\u30A2\u30D7\u30EA\u306E\u5831\u544A \u2192",viewLeaderboard:"\u5168\u4F53\u30E9\u30F3\u30AD\u30F3\u30B0 \u2192",signOut:"\u30B5\u30A4\u30F3\u30A2\u30A6\u30C8",rankSummary:"{rank} \u4F4D \xB7 \u4ECA\u6708 {points} \u30DD\u30A4\u30F3\u30C8"},crossApp:{title:"\u3042\u306A\u305F\u306E\u5831\u544A",loading:"\u5831\u544A\u3092\u8AAD\u307F\u8FBC\u307F\u4E2D\u2026",empty:"\u307E\u3060\u5831\u544A\u304C\u3042\u308A\u307E\u305B\u3093\u3002",unknownApp:"\u4E0D\u660E\u306A\u30A2\u30D7\u30EA"},thread:{loading:"\u6700\u65B0\u306E\u72B6\u6CC1\u3092\u8AAD\u307F\u8FBC\u307F\u4E2D\u2026",replyPlaceholder:"\u958B\u767A\u8005\u306B\u8FD4\u4FE1\u3059\u308B\u2026"},success:{done:"\u9589\u3058\u308B",trackReport:"\u72B6\u6CC1\u3092\u78BA\u8A8D",receipt:"\u53D7\u4ED8\u756A\u53F7",delivering:"\u958B\u767A\u30C1\u30FC\u30E0\u306B\u9001\u4FE1\u4E2D\u2026",queuedOffline:"\u30AA\u30D5\u30E9\u30A4\u30F3\u306E\u305F\u3081\u9001\u4FE1\u5F85\u3061",queuedHint:"\u30AA\u30F3\u30E9\u30A4\u30F3\u306B\u623B\u308B\u3068\u3001\u81EA\u52D5\u7684\u306B\u9001\u4FE1\u3057\u307E\u3059\u3002",rateLimited:"\u9001\u4FE1\u306E\u9593\u9694\u304C\u77ED\u3059\u304E\u307E\u3059",rateLimitedHint:"1 \u5206\u307B\u3069\u304A\u5F85\u3061\u304F\u3060\u3055\u3044\u3002\u5831\u544A\u306F\u4FDD\u5B58\u6E08\u307F\u3067\u3001\u81EA\u52D5\u7684\u306B\u518D\u9001\u3055\u308C\u307E\u3059\u3002",quotaBlocked:"\u3053\u306E\u5831\u544A\u306F\u53D7\u3051\u4ED8\u3051\u3089\u308C\u307E\u305B\u3093\u3067\u3057\u305F",quotaBlockedHint:"\u3053\u306E\u30A2\u30D7\u30EA\u306E\u53D7\u4ED8\u4E0A\u9650\u306B\u9054\u3057\u3066\u3044\u307E\u3059\u3002\u304A\u624B\u6570\u3067\u3059\u304C\u3001\u30A2\u30D7\u30EA\u306E\u904B\u55B6\u8005\u306B\u76F4\u63A5\u3054\u9023\u7D61\u304F\u3060\u3055\u3044\u3002",permanentFailed:"\u5831\u544A\u3092\u9001\u4FE1\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F",permanentFailedHint:"\u9001\u4FE1\u5185\u5BB9\u3092\u53D7\u3051\u4ED8\u3051\u3089\u308C\u307E\u305B\u3093\u3067\u3057\u305F\uFF08\u30B5\u30A4\u30BA\u8D85\u904E\u306A\u3069\uFF09\u3002\u6587\u7AE0\u3092\u77ED\u304F\u3059\u308B\u304B\u3001\u30B9\u30AF\u30EA\u30FC\u30F3\u30B7\u30E7\u30C3\u30C8\u3092\u5916\u3057\u3066\u3001\u3082\u3046\u4E00\u5EA6\u304A\u8A66\u3057\u304F\u3060\u3055\u3044\u3002",retrying:"\u9001\u4FE1\u5F85\u3061\uFF08\u518D\u8A66\u884C\u4E2D\uFF09",retryingHint:"\u30B5\u30FC\u30D0\u30FC\u306B\u63A5\u7D9A\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\u3002\u81EA\u52D5\u7684\u306B\u518D\u9001\u3057\u307E\u3059\u3002",trackOnMushi:"Mushi Mushi \u3067\u78BA\u8A8D",slaDefault:"\u9032\u5C55\u304C\u3042\u308C\u3070\u3001\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\u304C\u5927\u304D\u3059\u304E\u308B\u305F\u3081\u6DFB\u4ED8\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\u3002\u5831\u544A\u306E\u6587\u7AE0\u306E\u307F\u9001\u4FE1\u3057\u307E\u3057\u305F\u3002"},featureRequest:{label:"\u6A5F\u80FD\u306E\u8981\u671B"},betaStrip:{defaultMessage:"{appName} \u306F\u958B\u767A\u521D\u671F\u306E\u6BB5\u968E\u3067\u3059",contactHint:"\u3054\u8CEA\u554F\u306F {email} \u307E\u3067\u304A\u5BC4\u305B\u304F\u3060\u3055\u3044",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 Mushi \u3067"}};var ka={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",hideLauncher:"\u0E0B\u0E48\u0E2D\u0E19\u0E1B\u0E38\u0E48\u0E21\u0E41\u0E08\u0E49\u0E07\u0E1A\u0E31\u0E4A\u0E01\u0E23\u0E30\u0E2B\u0E27\u0E48\u0E32\u0E07\u0E01\u0E32\u0E23\u0E40\u0E02\u0E49\u0E32\u0E0A\u0E21\u0E04\u0E23\u0E31\u0E49\u0E07\u0E19\u0E35\u0E49"},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",notSentBlocked:"\u0E22\u0E31\u0E07\u0E44\u0E21\u0E48\u0E44\u0E14\u0E49\u0E2A\u0E48\u0E07 \u0E23\u0E32\u0E22\u0E07\u0E32\u0E19\u0E19\u0E35\u0E49\u0E16\u0E39\u0E01\u0E01\u0E23\u0E2D\u0E07\u0E2D\u0E2D\u0E01\u0E01\u0E48\u0E2D\u0E19\u0E2A\u0E48\u0E07 \u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13\u0E22\u0E31\u0E07\u0E2D\u0E22\u0E39\u0E48 \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\u0E41\u0E25\u0E49\u0E27\u0E25\u0E2D\u0E07\u0E2D\u0E35\u0E01\u0E04\u0E23\u0E31\u0E49\u0E07",notSentThrottled:"\u0E22\u0E31\u0E07\u0E44\u0E21\u0E48\u0E44\u0E14\u0E49\u0E2A\u0E48\u0E07 \u0E2A\u0E48\u0E07\u0E23\u0E32\u0E22\u0E07\u0E32\u0E19\u0E21\u0E32\u0E01\u0E40\u0E01\u0E34\u0E19\u0E44\u0E1B\u0E43\u0E19\u0E40\u0E27\u0E25\u0E32\u0E2A\u0E31\u0E49\u0E19\u0E46 \u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13\u0E22\u0E31\u0E07\u0E2D\u0E22\u0E39\u0E48 \u0E23\u0E2D\u0E2A\u0E31\u0E01\u0E2B\u0E19\u0E36\u0E48\u0E07\u0E19\u0E32\u0E17\u0E35\u0E41\u0E25\u0E49\u0E27\u0E25\u0E2D\u0E07\u0E2D\u0E35\u0E01\u0E04\u0E23\u0E31\u0E49\u0E07",screenshotReview:"\u0E15\u0E23\u0E27\u0E08\u0E2A\u0E2D\u0E1A\u0E20\u0E32\u0E1E\u0E2B\u0E19\u0E49\u0E32\u0E08\u0E2D\u0E14\u0E49\u0E32\u0E19\u0E25\u0E48\u0E32\u0E07 \u0E41\u0E25\u0E49\u0E27\u0E01\u0E14 \u0E2A\u0E48\u0E07 \u0E2D\u0E35\u0E01\u0E04\u0E23\u0E31\u0E49\u0E07",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 Mushi"}};var _a={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.",hideLauncher:"Ocultar el bot\xF3n de errores durante esta visita"},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",notSentBlocked:"No se envi\xF3. El reporte se filtr\xF3 antes de enviarse. Tu texto sigue aqu\xED; a\xF1ade algo m\xE1s de detalle e int\xE9ntalo de nuevo.",notSentThrottled:"No se envi\xF3. Demasiados reportes en poco tiempo. Tu texto sigue aqu\xED; espera un minuto e int\xE9ntalo de nuevo.",screenshotReview:"Revisa la captura de abajo y pulsa Enviar otra vez.",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 Mushi"}};var Ca={widget:{trigger:"\u53CD\u9988\u95EE\u9898",title:"\u53CD\u9988\u95EE\u9898",close:"\u5173\u95ED",back:"\u8FD4\u56DE",submit:"\u63D0\u4EA4",submitting:"\u63D0\u4EA4\u4E2D\u2026",submitted:"\u8C22\u8C22\uFF01\u4F60\u7684\u53CD\u9988\u5DF2\u63D0\u4EA4\u3002",error:"\u51FA\u9519\u4E86\uFF0C\u8BF7\u518D\u8BD5\u4E00\u6B21\u3002",hideLauncher:"\u672C\u6B21\u8BBF\u95EE\u671F\u95F4\u9690\u85CF\u53CD\u9988\u6309\u94AE"},step1:{moreNav:{communityIdeas:"\u793E\u533A\u60F3\u6CD5",leaderboard:"\u6392\u884C\u699C",joinCommunity:"\u52A0\u5165\u793E\u533A \xB7 \u8DE8\u5E94\u7528\u8DDF\u8E2A\u4F60\u7684\u53CD\u9988",myAccount:"\u6211\u7684\u8D26\u6237"},categories:{bug:"\u9519\u8BEF",slow:"\u6162",visual:"\u663E\u793A\u95EE\u9898",confusing:"\u96BE\u4EE5\u7406\u89E3",other:"\u5176\u4ED6"}},step2:{intents:{bug:["\u5D29\u6E83","\u6CA1\u6709\u53CD\u5E94","\u6570\u636E\u4E22\u5931","\u7ED3\u679C\u9519\u8BEF","\u5176\u4ED6"],slow:["\u9875\u9762\u52A0\u8F7D","\u64CD\u4F5C\u54CD\u5E94","\u7F51\u7EDC\u8BF7\u6C42","\u52A8\u753B","\u5176\u4ED6"],visual:["\u5E03\u5C40\u9519\u4E71","\u5143\u7D20\u91CD\u53E0","\u5143\u7D20\u4E0D\u663E\u793A","\u989C\u8272/\u5B57\u4F53\u4E0D\u5BF9","\u5176\u4ED6"],confusing:["\u6807\u7B7E\u4E0D\u6E05\u695A","\u7F3A\u5C11\u5E2E\u52A9","\u6D41\u7A0B\u51FA\u4E4E\u610F\u6599","\u627E\u4E0D\u5230\u5165\u53E3","\u5176\u4ED6"],other:["\u529F\u80FD\u5EFA\u8BAE","\u65E0\u969C\u788D","\u9519\u522B\u5B57","\u5176\u4ED6"]}},step3:{descriptionPlaceholder:"\u53D1\u751F\u4E86\u4EC0\u4E48\uFF1F",featurePlaceholder:"\u8BF4\u8BF4\u4F60\u7684\u60F3\u6CD5\u2026",submitHint:"{key} + Enter \u63D0\u4EA4",screenshotButton:"\u622A\u56FE",screenshotAttached:"\u5DF2\u9644\u622A\u56FE",screenshotCapturing:"\u6B63\u5728\u622A\u56FE\u2026",screenshotRetry:"\u518D\u8BD5\u4E00\u6B21",screenshotShareTab:"\u5171\u4EAB\u6B64\u6807\u7B7E\u9875\u6765\u622A\u56FE",notSentBlocked:"\u672A\u53D1\u9001\u3002\u8BE5\u53CD\u9988\u5728\u53D1\u9001\u524D\u88AB\u8FC7\u6EE4\u3002\u4F60\u7684\u6587\u5B57\u4ECD\u4FDD\u7559\u5728\u8FD9\u91CC\uFF0C\u8BF7\u8865\u5145\u4E00\u4E9B\u7EC6\u8282\u540E\u91CD\u8BD5\u3002",notSentThrottled:"\u672A\u53D1\u9001\u3002\u77ED\u65F6\u95F4\u5185\u63D0\u4EA4\u8FC7\u591A\u3002\u4F60\u7684\u6587\u5B57\u4ECD\u4FDD\u7559\u5728\u8FD9\u91CC\uFF0C\u8BF7\u7B49\u5F85\u4E00\u5206\u949F\u540E\u91CD\u8BD5\u3002",screenshotReview:"\u8BF7\u5148\u67E5\u770B\u4E0B\u65B9\u622A\u56FE\uFF0C\u518D\u70B9\u51FB\u201C\u53D1\u9001\u201D\u3002",screenshotErrors:{permission:"\u622A\u56FE\u88AB\u62E6\u622A\u4E86\u3002\u8BF7\u5141\u8BB8\u540E\u518D\u8BD5\u3002",unsupported:"\u6B64\u6D4F\u89C8\u5668\u65E0\u6CD5\u622A\u56FE\u3002\u8BF7\u7528\u6587\u5B57\u63CF\u8FF0\u3002",taint:"\u9875\u9762\u5305\u542B\u5176\u4ED6\u7F51\u7AD9\u7684\u5185\u5BB9\uFF0C\u65E0\u6CD5\u622A\u56FE\u3002\u8BF7\u7528\u6587\u5B57\u63CF\u8FF0\u3002",timeout:"\u622A\u56FE\u8D85\u65F6\u3002",csp:"\u6B64\u7F51\u7AD9\u7684\u5B89\u5168\u8BBE\u7F6E\u4E0D\u5141\u8BB8\u622A\u56FE\u3002",error:"\u622A\u56FE\u5931\u8D25\u3002"},screenshotPreviewAlt:"\u5C06\u8981\u53D1\u9001\u7684\u622A\u56FE\u9884\u89C8",screenshotSensitiveHint:"\u8BF7\u68C0\u67E5\u9884\u89C8\uFF1B\u5982\u6709\u4F59\u989D\u6216\u4E2A\u4EBA\u4FE1\u606F\uFF0C\u8BF7\u5220\u9664\u622A\u56FE\u3002",elementButton:"\u6307\u51FA\u4F4D\u7F6E",elementSelected:"\u5DF2\u9009\u4E2D\u5143\u7D20",elementCapturing:"\u70B9\u51FB\u9875\u9762\u4E0A\u7684\u5143\u7D20\u2026",elementFailed:"\u65E0\u6CD5\u9009\u62E9 \u2014 \u8BF7\u7528\u6587\u5B57\u63CF\u8FF0",elementSelectorHint:"\u70B9\u51FB\u4E00\u4E2A\u5143\u7D20 \xB7 Esc \u53D6\u6D88"},panel:{title:"\u53D1\u9001\u53CD\u9988",more:"\u66F4\u591A\u2026",pointAt:"\u6307\u51FA\u4F4D\u7F6E",remove:"\u5220\u9664",markUp:"\u6807\u6CE8",privacy:"\u53EA\u6709\u8FD9\u4E2A\u5E94\u7528\u7684\u5F00\u53D1\u8005\u80FD\u770B\u5230\u3002\u8BF7\u5220\u9664\u4E2A\u4EBA\u4FE1\u606F\u3002",send:"\u53D1\u9001",yourReports:"\u4F60\u7684\u53CD\u9988",newCount:"{n} \u6761\u65B0\u6D88\u606F",moreOptions:"\u66F4\u591A\u9009\u9879",reportTitle:"\u4F60\u7684\u53CD\u9988",notifyMe:"\u63A5\u6536\u901A\u77E5",notifyOn:"\u901A\u77E5\u5DF2\u5F00\u542F\u3002"},assistant:{defaultLabel:"\u63D0\u95EE",defaultGreeting:"\u95EE\u95EE\u5173\u4E8E\u8FD9\u4E2A\u9875\u9762\u7684\u95EE\u9898 \u2014 \u6211\u53EA\u4F1A\u4F7F\u7528\u9875\u9762\u4E0A\u663E\u793A\u7684\u5185\u5BB9\u3002",inputPlaceholder:"\u8F93\u5165\u4F60\u7684\u95EE\u9898\u2026",sendAriaLabel:"\u53D1\u9001",hubDescription:"\u8BE2\u95EE\u5982\u4F55\u4F7F\u7528\u8FD9\u4E2A\u5E94\u7528",thinking:"\u601D\u8003\u4E2D\u2026",fileReportCta:"\u6539\u4E3A\u53CD\u9988\u9519\u8BEF",stillStuckCta:"\u8FD8\u6CA1\u89E3\u51B3\uFF1F\u53CD\u9988\u95EE\u9898",errors:{noResponse:"\u6CA1\u6709\u56DE\u5E94 \u2014 \u8BF7\u68C0\u67E5\u7F51\u7EDC\u540E\u91CD\u8BD5\u3002",generic:"\u65E0\u6CD5\u8FDE\u63A5\u52A9\u624B\uFF0C\u8BF7\u7A0D\u540E\u518D\u8BD5\u3002"}},flows:{reports:{title:"\u4F60\u7684\u53CD\u9988",loading:"\u6B63\u5728\u52A0\u8F7D\u53CD\u9988\u2026"},roadmap:{title:"\u793E\u533A\u60F3\u6CD5",loading:"\u6B63\u5728\u52A0\u8F7D\u60F3\u6CD5\u2026",empty:"\u8FD8\u6CA1\u6709\u60F3\u6CD5\u3002\u6765\u63D0\u7B2C\u4E00\u4E2A\u5427\u3002",shipped:"\u5DF2\u4E0A\u7EBF",vote:"\u6295\u7968",voted:"\u5DF2\u6295\u7968",voteCount:"{n} \u7968",untitled:"\u672A\u547D\u540D\u7684\u60F3\u6CD5"},leaderboard:{title:"\u5168\u7403\u6392\u884C\u699C",loading:"\u6B63\u5728\u52A0\u8F7D\u6392\u884C\u699C\u2026",empty:"\u8FD8\u6CA1\u6709\u4EBA\u4E0A\u699C \u2014 \u6765\u505A\u7B2C\u4E00\u4E2A\u5427\u3002",signInPrompt:"\u767B\u5F55\u67E5\u770B\u4F60\u7684\u6392\u540D \u2192",myRank:"\u4F60\u672C\u6708\u6392\u540D #{rank}",footer:"\u672C\u6708\u5168\u7403\u8D21\u732E\u8005 \xB7 \u79EF\u5206\u6BCF\u6708\u91CD\u7F6E",anon:"\u533F\u540D"},account:{title:"Mushi \u8D26\u6237",checkEmailTitle:"\u67E5\u770B\u90AE\u7BB1",joinTitle:"\u52A0\u5165\u793E\u533A",emailLabel:"\u90AE\u7BB1\u5730\u5740",emailPlaceholder:"\u90AE\u7BB1",signInPrompt:"\u767B\u5F55\u540E\u53EF\u4EE5\u67E5\u770B\u4F60\u5728\u6240\u6709\u5E94\u7528\u4E2D\u7684\u53CD\u9988\u548C\u6392\u540D\u3002\u65E0\u9700\u5BC6\u7801\u3002",magicLinkSent:"\u767B\u5F55\u94FE\u63A5\u5DF2\u53D1\u9001\u5230 {email}\u3002\u6253\u5F00\u94FE\u63A5\u5373\u53EF\u5173\u8054\u4F60\u7684\u53CD\u9988\u3002",resendEmail:"\u91CD\u65B0\u53D1\u9001\u90AE\u4EF6",sendLink:"\u53D1\u9001\u767B\u5F55\u94FE\u63A5",sending:"\u53D1\u9001\u4E2D\u2026",crossAppReports:"\u6240\u6709\u5E94\u7528\u7684\u53CD\u9988 \u2192",viewLeaderboard:"\u5168\u7403\u6392\u884C\u699C \u2192",signOut:"\u9000\u51FA\u767B\u5F55",rankSummary:"\u6392\u540D #{rank} \xB7 \u672C\u6708 {points} \u5206"},crossApp:{title:"\u6211\u7684\u53CD\u9988",loading:"\u6B63\u5728\u52A0\u8F7D\u53CD\u9988\u2026",empty:"\u8FD8\u6CA1\u6709\u53CD\u9988\u3002",unknownApp:"\u672A\u77E5\u5E94\u7528"},thread:{loading:"\u6B63\u5728\u52A0\u8F7D\u66F4\u65B0\u2026",replyPlaceholder:"\u56DE\u590D\u5F00\u53D1\u8005\u2026"},success:{done:"\u5B8C\u6210",trackReport:"\u8DDF\u8E2A\u8FDB\u5EA6",receipt:"\u56DE\u6267",delivering:"\u6B63\u5728\u53D1\u9001\u7ED9\u56E2\u961F\u2026",queuedOffline:"\u79BB\u7EBF\u6392\u961F\u4E2D",queuedHint:"\u6062\u590D\u8054\u7F51\u540E\u4F1A\u81EA\u52A8\u53D1\u9001\u3002",rateLimited:"\u53D1\u9001\u592A\u9891\u7E41",rateLimitedHint:"\u8BF7\u7B49\u5F85\u7EA6\u4E00\u5206\u949F\u3002\u53CD\u9988\u5DF2\u6392\u961F\uFF0C\u4F1A\u81EA\u52A8\u91CD\u65B0\u53D1\u9001\u3002",quotaBlocked:"\u8FD9\u6761\u53CD\u9988\u672A\u88AB\u63A5\u6536",quotaBlockedHint:"\u9879\u76EE\u989D\u5EA6\u6216\u5957\u9910\u62D2\u7EDD\u4E86\u5B83\u3002\u8BF7\u8BA9\u5E94\u7528\u7BA1\u7406\u5458\u68C0\u67E5 Billing\u3002",permanentFailed:"\u53CD\u9988\u53D1\u9001\u5931\u8D25",permanentFailedHint:"\u5185\u5BB9\u88AB\u62D2\u7EDD\u4E86\uFF08\u4F8B\u5982\u592A\u5927\uFF09\u3002\u8BF7\u7F29\u77ED\u6587\u5B57\u6216\u4E0D\u5E26\u622A\u56FE\u518D\u8BD5\u4E00\u6B21\u3002",retrying:"\u5DF2\u6392\u961F \u2014 \u6B63\u5728\u91CD\u8BD5",retryingHint:"\u6682\u65F6\u8FDE\u4E0D\u4E0A\u670D\u52A1\u5668\uFF0C\u4F1A\u5728\u540E\u53F0\u91CD\u65B0\u53D1\u9001\u3002",trackOnMushi:"\u5728 Mushi \u4E0A\u8DDF\u8E2A",slaDefault:"\u6709\u8FDB\u5C55\u65F6\u4F1A\u5728\u8FD9\u91CC\u901A\u77E5\u4F60\u3002",screenshotDropped:"\u622A\u56FE\u592A\u5927\u65E0\u6CD5\u9644\u4E0A\uFF0C\u5DF2\u53EA\u53D1\u9001\u6587\u5B57\u53CD\u9988\u3002"},featureRequest:{label:"\u529F\u80FD\u5EFA\u8BAE"},betaStrip:{defaultMessage:"{appName} \u8FD8\u5728\u65E9\u671F\u5F00\u53D1\u9636\u6BB5",contactHint:"\u6709\u95EE\u9898\u8BF7\u8054\u7CFB {email}",teamSees:"{appName} \u56E2\u961F\u4F1A\u67E5\u770B",teamSeesGeneric:"\u56E2\u961F\u4F1A\u67E5\u770B",ariaLabel:"\u6D4B\u8BD5\u7248\u901A\u77E5"},changelog:{whatsNew:"{version} \u65B0\u529F\u80FD"},poweredBy:"\u9519\u8BEF\u53CD\u9988\u7531 Mushi Mushi \u63D0\u4F9B"}};var ip={en:on,ja:Ra,th:ka,es:_a,zh:Ca};function ci(e){let t=e&&e!=="auto"?e:typeof navigator<"u"?navigator.language??navigator.languages?.[0]:void 0;if(!t)return on;let r=t.split("-")[0].toLowerCase();return ip[r]??on}function op(e){let t=e.replace("#",""),r=t.length===3?t[0]+t[0]+t[1]+t[1]+t[2]+t[2]:t.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 Aa(e,t="",r=""){let n=e==="dark",i=n?"dark":"light",o=ai(i),s=Ws(i,t,r),a=Ns[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:s.accent,widgetAccentWash:s.accentWash,widgetAccentInk:s.accentInk,widgetAccentShadow:n?oi.dark:oi.light,accentRgb:op(s.accent),shadowInk:n?"0,0,0":"14,13,11",ok:o.ok,danger:o.danger,onAccent:Os,inverse:Hs,neonBannerBg:Zr.bg,neonBannerFg:Zr.fg,neonBannerBorder:Zr.border,brandBannerBorder:n?si.dark:si.light,statusSent:a.sent,statusReview:a.review,statusFixing:a.fixing,statusFixed:a.fixed,statusClosedBg:n?"rgba(242,235,221,0.06)":"rgba(14,13,11,0.05)",fontDisplay:Qr.fontDisplay,fontBody:Qr.fontBody,fontMono:Qr.fontMono,easeStamp:en.easeStamp,zBanner:$t.banner,zPanel:$t.panel,zOverlay:$t.overlay,fabSize:ut.fabSize,panelWidth:ut.panelWidth,panelSheetBreakpoint:ut.panelSheetBreakpoint}}function Rt(e){let t=e.trim();return !t||t.length>64||!/^[#\w\s(),.%/+-]+$/.test(t)||typeof CSS<"u"&&typeof CSS.supports=="function"&&!CSS.supports("color",t)?"":t}function Ta([e,t,r]){let n=i=>{let o=i/255;return o<=.03928?o/12.92:((o+.055)/1.055)**2.4};return .2126*n(e)+.7152*n(t)+.0722*n(r)}function di(e,t){let r=Ta(e),n=i=>(Math.max(r,i)+.05)/(Math.min(r,i)+.05);return t?{ink:"",ratio:n(Ta(t))}:n(1)>=n(0)?{ink:"white",ratio:n(1)}:{ink:"black",ratio:n(0)}}function Ia(e,t="",r=""){let n=Aa(e),i=Rt(t),o=Rt(r),{isDark:s,ink:a,ruleStrong:u,widgetAccent:d,shadowInk:p,ok:h,danger:g,inverse:E,neonBannerBg:_,neonBannerFg:b,neonBannerBorder:y,brandBannerBorder:k,statusSent:T,statusReview:w,statusFixing:R,statusFixed:C,fontMono:m,easeStamp:f,zBanner:S,fabSize:A}=n,{durationFast:$}=en,{instant:N,panel:q}=js,{bannerHeight:ee,gutter:U,panelWidth:Ee,panelMaxHeight:I,panelSheetBreakpoint:$e,edgeTabWidth:ye}=ut,Ie=48,he=44,V=A+Us.comfy,ne=qs.control;return ` :host{all:initial;color-scheme:${s?"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,${g});--_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:${A}px;height:${A}px;min-width:44px;min-height:44px;border:1px solid var(--_border);border-radius:${ne}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 ${$}ms ${f},opacity ${$}ms ${f};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 ${f} 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 ${f} 3;}@media (prefers-reduced-motion:reduce){.mushi-trigger-pulse{animation:none;}}.mushi-trigger.bottom-right{bottom:var(--mushi-bottom,calc(${U}px + env(safe-area-inset-bottom,0px)));right:var(--mushi-right,calc(${U}px + env(safe-area-inset-right,0px)));}.mushi-trigger.bottom-left{bottom:var(--mushi-bottom,calc(${U}px + env(safe-area-inset-bottom,0px)));left:var(--mushi-left,calc(${U}px + env(safe-area-inset-left,0px)));}.mushi-trigger.top-right{top:var(--mushi-top,calc(${U}px + env(safe-area-inset-top,0px)));right:var(--mushi-right,calc(${U}px + env(safe-area-inset-right,0px)));}.mushi-trigger.top-left{top:var(--mushi-top,calc(${U}px + env(safe-area-inset-top,0px)));left:var(--mushi-left,calc(${U}px + env(safe-area-inset-left,0px)));}.mushi-trigger.edge-tab{width:${he}px;height:${Ie}px;background:transparent;border:0;border-radius:0;box-shadow:none;font-size:14px;justify-content:flex-end;}.mushi-trigger.edge-tab::after{display:none;}.mushi-trigger.edge-tab:hover,.mushi-trigger.edge-tab:active,.mushi-trigger.edge-tab.dragging{transform:none;box-shadow:none;}.mushi-trigger-face{display:flex;align-items:center;justify-content:center;width:${ye}px;height:100%;background:var(--_bg);border:1px solid var(--_border);border-right:0;border-radius:${ne}px 0 0 ${ne}px;box-shadow:0 4px 12px -6px rgba(${p},0.4),inset -2px 0 0 var(--_accent);transition:width ${$}ms ${f},transform ${$}ms ${f},opacity ${$}ms ${f};}.mushi-trigger.edge-tab.text{height:auto;min-height:${Ie}px;}.mushi-trigger.edge-tab.text .mushi-trigger-face{height:auto;min-height:${Ie}px;padding:10px 0;writing-mode:vertical-rl;font-size:12px;white-space:nowrap;}.mushi-trigger.edge-tab:hover .mushi-trigger-face,.mushi-trigger.edge-tab:focus-visible .mushi-trigger-face{width:${ye+6}px;}.mushi-trigger.edge-tab:focus-visible{outline:none;}.mushi-trigger.edge-tab:focus-visible .mushi-trigger-face{outline:2px solid var(--_accent);outline-offset:2px;}.mushi-trigger.edge-tab.bottom-right,.mushi-trigger.edge-tab.top-right{right:calc(var(--mushi-safe-area,1) * env(safe-area-inset-right,0px));}.mushi-trigger.edge-tab.bottom-left,.mushi-trigger.edge-tab.top-left{left:calc(var(--mushi-safe-area,1) * env(safe-area-inset-left,0px));justify-content:flex-start;}.mushi-trigger.edge-tab.bottom-left .mushi-trigger-face,.mushi-trigger.edge-tab.top-left .mushi-trigger-face{border-right:1px solid var(--_border);border-left:0;border-radius:0 ${ne}px ${ne}px 0;box-shadow:0 4px 12px -6px rgba(${p},0.4),inset 2px 0 0 var(--_accent);}.mushi-trigger.tucked{opacity:0.3;}.mushi-trigger.edge-tab.tucked{opacity:1;}.mushi-trigger.edge-tab.tucked .mushi-trigger-face{opacity:0.55;transform:translateX(${ye-6}px);}.mushi-trigger.edge-tab.bottom-left.tucked .mushi-trigger-face,.mushi-trigger.edge-tab.top-left.tucked .mushi-trigger-face{transform:translateX(-${ye-6}px);}.mushi-trigger.tucked:focus-visible,.mushi-trigger.tucked:focus-visible .mushi-trigger-face{opacity:1;transform:none;}.mushi-trigger.shrunk{width:${ee}px;height:${ee}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,${$t.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,.mushi-trigger-face{transition:none !important;}.mushi-trigger::after{animation:none;}.mushi-trigger.edge-tab.tucked .mushi-trigger-face{transform: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(${Ee}px + 40px);max-width:calc(100vw - 32px);max-height:min(calc(${I}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,${U}px) + ${V}px));right:var(--mushi-right,calc(${U}px + env(safe-area-inset-right,0px)));--mushi-origin:bottom right;}.mushi-panel.bottom-left{bottom:var(--mushi-panel-bottom,calc(var(--mushi-bottom,${U}px) + ${V}px));left:var(--mushi-left,calc(${U}px + env(safe-area-inset-left,0px)));--mushi-origin:bottom left;}.mushi-panel.top-right{top:var(--mushi-panel-top,calc(var(--mushi-top,${U}px) + ${V}px));right:var(--mushi-right,calc(${U}px + env(safe-area-inset-right,0px)));--mushi-origin:top right;}.mushi-panel.top-left{top:var(--mushi-panel-top,calc(var(--mushi-top,${U}px) + ${V}px));left:var(--mushi-left,calc(${U}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:${$e}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-screenshot-review{color:var(--_fg);font-weight:600;}.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:${T.bg};color:color-mix(in oklab,${T.fg} 85%,var(--_fg));}.mushi-tone-attention{background:${w.bg};color:color-mix(in oklab,${w.fg} 85%,var(--_fg));}.mushi-tone-progress{background:${R.bg};color:color-mix(in oklab,${R.fg} 85%,var(--_fg));}.mushi-tone-success,.mushi-tone-success-muted{background:${C.bg};color:color-mix(in oklab,${C.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,${U}px) + ${V}px);}.mushi-toast.top-right,.mushi-toast.top-left{top:calc(var(--mushi-top,${U}px) + ${V}px);}.mushi-toast.bottom-right,.mushi-toast.top-right,.mushi-toast.banner-top,.mushi-toast.banner-bottom{right:var(--mushi-right,${U}px);}.mushi-toast.bottom-left,.mushi-toast.top-left{left:var(--mushi-left,${U}px);}.mushi-toast.banner-top{top:calc(var(--mushi-banner-offset,${ee}px) + 12px);}.mushi-toast.banner-bottom{bottom:calc(var(--mushi-banner-offset,${ee}px) + 12px);}.mushi-banner{position:fixed;left:0;right:0;box-sizing:border-box;min-height:${ee}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,${S});animation:mushi-banner-slide-in ${q}ms ${f} 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:${_};color:${b};border-bottom:1.5px solid ${y};}.mushi-banner.neon.bottom{border-top:1.5px solid ${y};border-bottom:none;}.mushi-banner.neon .mushi-banner-btn{background:rgba(0,0,0,0.14);color:${b};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:${E};border-bottom:1.5px solid ${k};}.mushi-banner.brand.bottom{border-top:1.5px solid ${k};border-bottom:none;}.mushi-banner.brand .mushi-banner-btn{background:rgba(255,255,255,0.18);color:${E};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:${s?"rgba(15,14,12,0.88)":"rgba(248,244,237,0.92)"};backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);color:${a};border-bottom:1px solid ${u};}.mushi-banner.subtle.bottom{border-top:1px solid ${u};border-bottom:none;}.mushi-banner.subtle .mushi-banner-btn{background:${s?"rgba(242,235,221,0.10)":"rgba(14,13,11,0.08)"};color:${a};border:1px solid ${u};}.mushi-banner.subtle .mushi-banner-btn:hover{background:${s?"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:${ee}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:${s?"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:${$e}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 ${N}ms ${f};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 ${N}ms ${f};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 ${N}ms ${f};}.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 ${N}ms ${f};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;}}`}nn();var B=St,sp=["bug","slow","visual","confusing"],ap="Hide the bug button for this visit";function ie(e,t,r="",n=""){return `<button type="button" class="${r}" data-action="${e}"${n}>${t}</button>`}function Ma(e){if(e.step==="report")return hp(e);if(e.step==="success")return Ep(e);let t=e.views;if(!t)return up(e);switch(e.step){case "reports":return t.reportsView(e);case "report-detail":return t.detailView(e);case "assistant":return t.assistantView(e);case "roadmap":return t.roadmapView(e);case "leaderboard":return t.leaderboardView(e);case "account":return t.accountView(e);case "cross-app-reports":return t.crossAppView(e)}}var La=new Set(["reports","report-detail","assistant","roadmap","leaderboard","account","cross-app-reports"]);function up(e){let t=e.locale.flows,r=e.step==="report-detail"?e.locale.panel.reportTitle:e.step==="reports"?t.reports.title:"";return {header:sn(e,r,true),lead:"",body:Oa(t.reports.loading),footer:""}}var Da={esc:St,btn:ie,renderHeader:sn,chipLabel:pi,skeleton:Oa,formatRelativeTime:la,renderAppIconHtml:ga};function lp(e){let t=e.locale.step1.moreNav,r=[];return e.callbacks.assistantEnabled&&r.push(ie("assistant",B(e.callbacks.assistantLabel||e.locale.assistant.defaultLabel),"mushi-menu-item",' role="menuitem"')),e.callbacks.onFeatureBoardRequest&&r.push(ie("roadmap",B(t.communityIdeas),"mushi-menu-item",' role="menuitem"')),e.rewardsState&&r.push(ie("open-leaderboard",B(t.leaderboard),"mushi-menu-item",' role="menuitem"')),(e.rewardsState||e.testerInfo)&&r.push(ie("open-account",B(e.testerInfo?e.testerInfo.public_handle??e.testerInfo.display_name??t.myAccount:t.joinCommunity),"mushi-menu-item",' role="menuitem"')),r}function sn(e,t,r=false){let n=e.locale.panel,i=e.step==="report"||e.step==="success",o=e.unreadCount,s=i&&e.callbacks.onReporterReportsRequest?ie("reports",`${B(n.yourReports)}${o?` <span class="mushi-badge">${B(n.newCount.replace("{n}",String(o)))}</span>`:""}`,"mushi-pill-btn"):"",a=i?lp(e):[],u=a.length?`<div class="mushi-menu-wrap">${ie("toggle-more-nav","\u22EF","mushi-icon-btn",` aria-haspopup="menu" aria-expanded="${e.showMoreNav}" aria-label="${B(n.moreOptions)}"`)}${e.showMoreNav?`<div class="mushi-menu" role="menu">${a.join("")}</div>`:""}</div>`:"";return `${r?ie("back","\u2190","mushi-icon-btn",` aria-label="${B(e.locale.widget.back)}"`):e.pageFaviconHref?`<img class="mushi-header-host-icon" src="${B(e.pageFaviconHref)}" alt="" referrerpolicy="no-referrer" width="20" height="20" />`:""}<h2 id="mushi-title" class="mushi-title">${B(t)}</h2>${s}${u}${ie("close","\u2715","mushi-icon-btn",` aria-label="${B(e.locale.widget.close)}"`)}`}function Pa(e){if(!e.sdkFreshness||e.config.outdatedBanner==="off"||e.config.outdatedBanner==="console-only")return "";let{latest:t,current:r,deprecated:n,message:i}=e.sdkFreshness;return !t&&!n?"":`<div class="mushi-outdated" role="status"><strong>Mushi SDK ${B(r)}</strong> ${t?`latest is ${B(t)}.`:"needs attention."}${i?` <span>${B(i)}</span>`:""}</div>`}function Ba(e){return e.config.brandFooter!==true?"":`<div class="mushi-brand-footer"><a class="mushi-brand-link" href="${B(ca(e.brandRef))}" target="_blank" rel="noopener noreferrer" data-action="brand-footer">${B(e.locale.flows.poweredBy)}<span aria-hidden="true"> \u2197</span></a></div>`}function pi(e,t){if(t==="idea"||t==="feature")return e.config.featureRequestLabel||e.rc.categories.idea;let r=e.resolveCustomCategory(t);return r?r.label:e.rc.categories[t]??""}function cp(e,t,r,n){let i=n===t;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="${B(t)}">${B(pi(e,t))}</button>`}function dp(e){let t=e.chip;if(!t||t==="idea")return [];let r=e.resolveCustomCategory(t);return r?r.intents??[]:(e.locale.step2.intents[t]??[]).slice(0,-1).slice(0,4)}function pp(e){let t=[...sp];e.featureRequestCard!==false&&t.push("idea");let r=new Set(t),n=[];for(let{id:i}of e.categories??[])r.has(i)||(r.add(i),n.push(i));return {primary:t,more:n}}function hp(e){let t=e.locale,r=t.panel,n=t.step3,{primary:i,more:o}=pp(e.config),s=e.showAllCategories?[...i,...o]:i,a=s.map((m,f)=>cp(e,m,f,s.includes(e.chip??"")?e.chip:null)).join(""),u=o.length&&!e.showAllCategories?ie("show-all-categories",B(r.more),"mushi-chip mushi-chip-more"):"",d=dp(e),p=d.length?`<div class="mushi-chips mushi-intents" role="radiogroup" aria-label="${B(pi(e,e.chip))}">${d.map((m,f)=>`<button type="button" class="mushi-chip mushi-chip-sm" role="radio" aria-checked="${e.intent===m}" tabindex="${e.intent===m||!e.intent&&f===0?"0":"-1"}" data-action="intent" data-intent="${B(m)}">${B(m)}</button>`).join("")}</div>`:"",h=e.screenshotCapturing?n.screenshotCapturing:e.screenshotError?n.screenshotRetry:n.screenshotButton,g=e.elementCapturing?n.elementCapturing:e.elementError?n.elementFailed:e.elementSelected?n.elementSelected:r.pointAt,E='<span class="mushi-spinner" aria-hidden="true"></span>',_=e.screenshotAttached&&e.screenshotPreview?`<figure class="mushi-screenshot-preview${e.previewOpen?" open":""}"><button type="button" class="mushi-thumb" data-action="toggle-preview" aria-expanded="${e.previewOpen}"><img src="${B(e.screenshotPreview)}" alt="${B(n.screenshotPreviewAlt)}" /></button><figcaption><span class="mushi-attach-name">${B(n.screenshotAttached)}</span>${e.screenshotHint?`<span class="mushi-screenshot-hint">${B(e.screenshotHint)}</span>`:""}<span class="mushi-attach-actions">${e.callbacks.onScreenshotAnnotateRequest?ie("annotate-screenshot",B(r.markUp),"mushi-link-btn"):""}${e.allowScreenshotRemove?ie("remove-screenshot",B(r.remove),"mushi-link-btn"):""}</span></figcaption></figure><div class="mushi-annotate-host" data-role="annotate-host"></div>`:e.screenshotAvailable?ie("screenshot",`${e.screenshotCapturing?E:'<span aria-hidden="true">\u{1F4F7}</span>'}${B(h)}`,`mushi-attach-btn${e.screenshotError?" error":""}`,`${e.screenshotCapturing?" disabled":""} aria-label="${B(h)}"`):"",b=e.elementAvailable?ie("element",`${e.elementCapturing?E:'<span aria-hidden="true">\u2316</span>'}${B(g)}`,`mushi-attach-btn${e.elementSelected?" active":""}${e.elementError?" error":""}`,`${e.elementCapturing?" disabled":""} aria-label="${B(g)}"`):"",y=e.screenshotError&&e.screenshotErrorReason?`<p class="mushi-note mushi-error-inline" role="status" data-role="screenshot-reason">${B(n.screenshotErrors[e.screenshotErrorReason])}${e.callbacks.onScreenshotShareTabRequest?` ${ie("screenshot-share-tab",B(n.screenshotShareTab),"mushi-link-btn")}`:""}</p>`:"",k=e.screenshotReview&&e.screenshotAttached&&e.screenshotPreview?`<p class="mushi-note mushi-screenshot-review" role="status" data-role="screenshot-review">${B(n.screenshotReview)}</p>`:"",T=e.submitNotSent?`<p class="mushi-note mushi-error-inline" data-role="not-sent">${B(e.submitNotSent==="throttled"?n.notSentThrottled:n.notSentBlocked)}</p>`:"",w=e.identifiedUser?.name??e.identifiedUser?.email,R=e.chip==="idea",C=e.canSend?B(n.submitHint.replace("{key}",pa(ha()))):B(e.rc.ui.addWords);return {header:sn(e,e.config.expandedTitle||r.title),lead:`<textarea class="mushi-textarea" data-role="description" rows="3" maxlength="${rn}" placeholder="${B(R?n.featurePlaceholder:n.descriptionPlaceholder)}" aria-label="${B(r.title)}" aria-describedby="mushi-hint"></textarea>`,body:`${e.config.betaMode?.enabled?gp(e):""}<div class="mushi-chips"><div class="mushi-chip-group" role="radiogroup" aria-label="${B(r.title)}">${a}</div>${u}</div>${p}${k}<div class="mushi-attachments">${_}${b}</div>${y}${T}<p class="mushi-note">\u{1F512} ${B(r.privacy)}</p>${w?`<p class="mushi-note">\u{1F464} ${B(w)}</p>`:""}${e.draftLength>rn-400?`<p class="mushi-note" aria-live="polite">${e.draftLength}/${rn}</p>`:""}${e.launcherDismissible?`<p class="mushi-note">${ie("hide-launcher",B(t.widget.hideLauncher??ap),"mushi-link-btn")}</p>`:""}`,footer:`<span class="mushi-footer-hint" id="mushi-hint" data-role="hint">${C}</span><button type="button" class="mushi-submit" data-action="submit" aria-disabled="${!e.canSend||e.submitting}"${e.submitting?' aria-busy="true"':""}>${B(e.submitting?t.widget.submitting:r.send)}</button>`}}function $a(e){let t=e.config.betaMode?.contactEmail?.trim();if(!t||!/^[^\s@<>"]+@[^\s@<>"]+$/.test(t))return "";let r=`<a class="mushi-link-btn" href="mailto:${B(encodeURIComponent(t).replace(/%40/g,"@"))}">${B(t)}</a>`;return `<p class="mushi-note mushi-beta-contact">${B(e.locale.flows.betaStrip.contactHint).replace(B("{email}"),r)}</p>`}function fp(e){let t=e.config.betaMode;if(!t?.enabled)return "";let r=e.locale.flows.betaStrip,n=t.appName?r.teamSees.replace("{appName}",t.appName):r.teamSeesGeneric;return `<div class="mushi-beta-receipt"><p class="mushi-note">${B(n)}</p>${$a(e)}</div>`}function mp(e){let t=e.config.betaMode?.changelogItems?.[0];if(!t)return "";let r=B(e.locale.flows.changelog.whatsNew.replace("{version}",t.version));return `<details class="mushi-changelog"><summary>${t.date?`${r} \xB7 ${B(t.date)}`:r}</summary><ul>${t.items.map(n=>`<li>${B(n)}</li>`).join("")}</ul></details>`}function gp(e){let t=e.config.betaMode,r=e.locale.flows.betaStrip,n=B(t.appName??"This app"),i=t.message?B(t.message):B(r.defaultMessage).replace("{appName}",n),o=t.perks??[];return `<div class="mushi-beta-strip" role="note" aria-label="${B(r.ariaLabel)}"><p><span class="mushi-beta-tag">Beta</span> ${i}</p>${$a(e)}${o.length?`<ul class="mushi-beta-perks">${o.map(s=>`<li>${B(s)}</li>`).join("")}</ul>`:""}${mp(e)}</div>`}function Fa(e){let t=e.locale.flows.success;switch(e.lastSubmitFailureKind){case "rate_limited":return t.rateLimited;case "quota":return t.quotaBlocked;case "permanent":return t.permanentFailed;case "retrying":return t.retrying}return e.lastSubmitQueuedOffline?t.queuedOffline:null}function bp(e){let t=e.locale.flows.success,r=e.lastSubmitFailureKind;if(Fa(e)){let s=r==="rate_limited"?t.rateLimitedHint:r==="quota"?t.quotaBlockedHint:r==="permanent"?t.permanentFailedHint:r==="retrying"?t.retryingHint:t.queuedHint;return `<p class="mushi-note mushi-success-receipt mushi-warn" role="status">${B(s)}</p>`}let n=B((e.config.responseSlaLabel??"").trim()||t.slaDefault);if(!e.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> ${B(t.delivering)}</p></div>`;let i=B(e.lastReportId),o=(e.config.dashboardUrl??"").replace(/\/$/,"");return `<div class="mushi-success-receipt" role="status"><p class="mushi-success-sla">${n}</p><p class="mushi-note">${B(t.receipt)} <button type="button" class="mushi-success-receipt-id" data-action="copy-report-id" data-copy-id="${i}" aria-label="Copy report id ${i}">#${B(e.lastReportId.slice(0,8))}</button>${o?` \xB7 <a class="mushi-link-btn" href="${B(`${o}/reports/${encodeURIComponent(e.lastReportId)}`)}" target="_blank" rel="noopener noreferrer">${B(t.trackOnMushi)} \u2197</a>`:""}</p>${e.lastSubmitScreenshotDropped?`<p class="mushi-note mushi-warn">${B(t.screenshotDropped)}</p>`:""}</div>`}function Oa(e,t=3){return `<div class="mushi-skeleton" role="status" aria-label="${B(e)}">${"<span></span>".repeat(t)}</div>`}function Ep(e){let t=e.locale.flows.success,r=e.submittedAt??new Date,n=Fa(e),i=!n&&e.lastReportId&&e.callbacks.onReporterReportsRequest;return {header:sn(e,n??e.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()}">${B(ma(r,e.config.locale==="auto"?void 0:e.config.locale))}</time>${bp(e)}${n?"":fp(e)+(e.views?.renderOptIns(e)??"")}${e.rewardsState?yp(e):""}</div>`,footer:`${i?ie("track-report",B(t.trackReport),"mushi-btn"):"<span></span>"}${ie("done",B(t.done),"mushi-submit")}`}}function yp(e){let{tier:t,nextTier:r,totalPoints:n,pointsForReport:i}=e.rewardsState,o=n+i,s=100,a="";if(r){let u=t?.pointsThreshold??0,d=r.pointsThreshold;s=d>u?Math.round(Math.min(1,(o-u)/(d-u))*100):100;let p=Math.max(0,d-o);a=p>0?`${p.toLocaleString()} pts to ${B(r.displayName)}`:`\u{1F389} ${B(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="${s}" aria-valuemin="0" aria-valuemax="100" aria-label="${B(r.displayName)}"><div class="mushi-tier-bar-fill" style="--mushi-tier-pct:${s/100}"></div></div><p class="mushi-note">${a}</p>`:""}</div>`}function Ha(e){return xt(e)}function Pp(e){let t=e.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(t)||/わかりません|分かりません|不明|報告して/.test(e)}var gi=null,bi=null;function Va(){return bi??=Promise.resolve().then(()=>(Ka(),Wa)).then(e=>(e.initViews(Da),gi=e,e)),bi}var fi=["notice","header","lead","body","footer","brand"],mi=["description","reporter-reply","magic-link-email","optin-email"],Bp=["bug","slow","visual","confusing","other"],$p='button:not([disabled]),textarea:not([disabled]),input:not([disabled]),a[href],[tabindex]:not([tabindex="-1"])',un=class e{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;screenshotReview=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;submitNotSent=null;bannerDismissed=false;bannerResizeObserver=null;fabPos=null;fabPosKey="";draggableSet=false;barClearance=0;clampedForClearance=0;tuckCleanup=null;tuckTimer=null;resizeFrame=null;lateMeasureTimer=null;onViewportResize=()=>{this.resizeFrame===null&&(this.resizeFrame=requestAnimationFrame(()=>{this.resizeFrame=null,this.barClearance=this.measureFixedBars(),this.render();}));};launcherDismissed=na();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(t={},r){this.config={position:t.position??"bottom-right",anchor:t.anchor??{},theme:t.theme??"auto",triggerText:t.triggerText||"\u{1F41B}",expandedTitle:t.expandedTitle??"",mode:t.mode??"conversational",locale:t.locale??"auto",zIndex:t.zIndex??99999,trigger:t.trigger??"auto",bannerConfig:t.bannerConfig??{},attachToSelector:t.attachToSelector??"",inset:t.inset??{},respectSafeArea:t.respectSafeArea??true,hideOnSelector:t.hideOnSelector??"",hideOnRoutes:t.hideOnRoutes??[],environments:t.environments??{},smartHide:t.smartHide??false,draggable:t.draggable??false,mobileTrigger:t.mobileTrigger??(Fp(t)?"auto":"edge-tab"),avoidFixedBars:t.avoidFixedBars??true,tuckOnScroll:t.tuckOnScroll??true,dismissible:t.dismissible??true,brandFooter:t.brandFooter??false,outdatedBanner:t.outdatedBanner??"auto",screenshotSensitiveHint:t.screenshotSensitiveHint??true,betaMode:t.betaMode??{},minDescriptionLength:t.minDescriptionLength??8,dashboardUrl:t.dashboardUrl??"",responseSlaLabel:t.responseSlaLabel??"",featureRequestCard:t.featureRequestCard??true,featureRequestLabel:t.featureRequestLabel??"",featureRequestDescription:t.featureRequestDescription??"",avoidSelectors:t.avoidSelectors??[],categories:t.categories??[],accent:t.accent??"",accentText:t.accentText??""},this.callbacks=r,this.draggableSet=t.draggable!==void 0,this.locale=ci(this.config.locale==="auto"?void 0:this.config.locale),this.rc=this.resolveCopy();let n=oa();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 fi){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 t=this.config.locale==="auto"?typeof navigator<"u"?navigator.language??"":"":this.config.locale;return this.lang=(t||"en").split(/[-_]/)[0].toLowerCase(),Ha(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.syncScrollTuck(),this.bindColorSchemeListener(),window.addEventListener("resize",this.onViewportResize),window.visualViewport?.addEventListener("resize",this.onViewportResize),this.render(),this.onViewportResize(),this.lateMeasureTimer=setTimeout(()=>{this.lateMeasureTimer=null,this.onViewportResize();},1200));}getIsMounted(){return this.host.isConnected}updateConfig(t={}){let r=this.config.trigger,n=JSON.stringify(this.config.bannerConfig??null),i=Object.fromEntries(Object.entries(t).filter(([,a])=>a!==void 0));this.config={...this.config,...i,...t.triggerText!==void 0?{triggerText:t.triggerText||"\u{1F41B}"}:{}},this.locale=ci(this.config.locale==="auto"?void 0:this.config.locale),this.rc=this.resolveCopy();let o=this.config.trigger==="banner"&&r!=="banner",s=JSON.stringify(this.config.bannerConfig??null)!==n;(o||s)&&(this.bannerDismissed=false),t.draggable!==void 0&&(this.draggableSet=true),this.host.isConnected&&this.syncHostChromeState(),this.syncAttachedLaunchers(),this.syncSmartHide(),this.host.isConnected&&this.syncScrollTuck(),this.render();}resolveCustomCategory(t){return this.config.categories?.find(r=>r.id===t)}open(t){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.screenshotReview=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.submitNotSent=null,this.emailOptInOpen=false,this.emailState="idle",this.drafts={},this.intent=null,this.step="report";let r=t?.category,n=r?this.resolveCustomCategory(r):void 0;this.chip=t?.featureRequest?"idea":n||r&&r!=="other"&&Bp.includes(r)?r:null,this.showAllCategories=!!n,this.removeToast(),this.barClearance=this.measureFixedBars(),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(t){let r=t.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,...Pp(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(){sa({turns:this.assistantTurns,threadId:this.assistantThreadId});}clearAssistantTranscript(){this.assistantTurns=[],this.assistantThreadId=null,this.assistantError=null,aa(),this.step==="assistant"&&this.render();}pulseTrigger(){if(this.isOpen)return;let t=this.triggerEl;t&&(t.classList.add("mushi-trigger-pulse"),window.setTimeout(()=>t.classList.remove("mushi-trigger-pulse"),2400));}getIsOpen(){return this.isOpen}showTrigger(){this.triggerVisible=true,this.render();}hideTrigger(){this.triggerVisible=false,this.render();}setTrigger(t){this.updateConfig({trigger:t});}attachTo(t,r={}){let i=(typeof t=="string"?Array.from(document.querySelectorAll(t)):[t]).map(o=>{let s=a=>{a.preventDefault(),this.updateConfig(r),this.open();};return o.addEventListener("click",s),()=>o.removeEventListener("click",s)});return ()=>i.forEach(o=>o())}setScreenshotAttached(t){this.screenshotAttached=t,this.screenshotCapturing=false,t?(this.screenshotError=false,this.screenshotErrorReason=null):(this.screenshotPreview=null,this.screenshotByUser=false,this.previewOpen=false,this.screenshotReview=false),this.isOpen&&this.render();}setScreenshotPreview(t){this.screenshotPreview=t,this.isOpen&&this.render();}resolveScreenshotHint(){let t=this.config.screenshotSensitiveHint;return t===false?null:typeof t=="string"?t.trim()?t:null:this.locale.step3.screenshotSensitiveHint}setAllowScreenshotRemove(t){this.allowScreenshotRemove=t,this.isOpen&&this.render();}setCaptureAvailability(t){this.screenshotAvailable=t.screenshot??this.screenshotAvailable,this.elementAvailable=t.element??this.elementAvailable,this.isOpen&&this.render();}setElementSelected(t){this.elementSelected=t,this.elementCapturing=false,t&&(this.elementError=false),this.removeSelectorHint(),this.isOpen&&this.render();}setElementError(t){this.elementError=t,this.elementCapturing=false,this.removeSelectorHint(),this.isOpen&&this.render();}setScreenshotCapturing(t){this.screenshotCapturing=t,this.screenshotError=false,this.screenshotErrorReason=null,this.isOpen&&this.render();}setScreenshotError(t,r){this.screenshotError=t,this.screenshotErrorReason=t?r??this.screenshotErrorReason??"error":null,this.screenshotCapturing=false,this.isOpen&&this.render();}setElementCapturing(t){this.elementCapturing=t,t?(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 t=document.createElement("div");t.id="mushi-selector-hint",t.setAttribute("role","status"),t.setAttribute("aria-live","polite"),t.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)",t.textContent=this.locale.step3.elementSelectorHint,document.body.appendChild(t),this.selectorHint=t;}removeSelectorHint(){this.selectorHint?.remove(),this.selectorHint=null,document.getElementById("mushi-selector-hint")?.remove();}setSdkFreshness(t){this.sdkFreshness=t,this.isOpen&&this.render();}setBrandRef(t){this.brandRef!==t&&(this.brandRef=t,this.isOpen&&this.render());}setRewardsState(t){this.rewardsState=t,this.isOpen&&this.render();}setLeaderboard(t,r=false){this.leaderboardEntries=t,this.leaderboardLoading=r,this.isOpen&&this.render();}setReporterChannels(t){this.channels={email:!!t.email,push:!!t.push,emailPrefill:t.emailPrefill??""},this.isOpen&&this.render();}setIdentifiedUser(t){this.identifiedUser=t,this.isOpen&&this.render();}setTesterSession(t,r){this.testerJwt=t,this.testerInfo=r,this.isOpen&&this.render();}setGlobalLeaderboard(t,r=false){this.globalLeaderboard=t,this.globalLeaderboardLoading=r,this.isOpen&&this.render();}setCrossAppReports(t,r=false){this.crossAppReports=t,this.crossAppLoading=r,this.isOpen&&this.render();}setTesterReputation(t){this.testerReputation=t,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.tuckCleanup?.(),this.tuckCleanup=null,window.removeEventListener("resize",this.onViewportResize),window.visualViewport?.removeEventListener("resize",this.onViewportResize),this.resizeFrame!==null&&(cancelAnimationFrame(this.resizeFrame),this.resizeFrame=null),this.lateMeasureTimer!==null&&(clearTimeout(this.lateMeasureTimer),this.lateMeasureTimer=null),this.teardownViewportHandlers(),this.attachedLaunchers.forEach(t=>t()),this.attachedLaunchers=[],this.removeSelectorHint(),this.removeToast(),this.removeBodyNudge(),this.host.remove();}bindColorSchemeListener(){if(this.unbindColorSchemeListener(),typeof window>"u"||!window.matchMedia)return;let t=this.config.theme;t!=="auto"&&t!=="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 t=this.host.style;t.setProperty("position","absolute"),t.setProperty("top","0"),t.setProperty("left","0"),t.setProperty("width","0"),t.setProperty("height","0"),t.setProperty("overflow","visible"),t.setProperty("pointer-events","none"),t.setProperty("z-index","auto"),t.setProperty("margin","0"),t.setProperty("padding","0"),t.setProperty("border","none"),t.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 t=this.host.style,r=t.pointerEvents==="none"&&(t.width==="0"||t.width==="0px")&&(t.height==="0"||t.height==="0px"),n=this.host.isConnected?{width:this.host.offsetWidth,height:this.host.offsetHeight}:null,i=this.isSuppressedByHost()||this.isRouteHidden()||!this.triggerVisible||this.launcherDismissed,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(t=>t()),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 t=this.config.smartHide===true?{onScroll:"shrink",onIdleMs:900}:this.config.smartHide;if(!t.onScroll)return;let r=()=>{t.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();},t.onIdleMs??900);};window.addEventListener("scroll",r,{passive:true}),this.smartHideCleanup=()=>window.removeEventListener("scroll",r);}syncScrollTuck(){this.tuckCleanup?.(),this.tuckCleanup=null;let t=this.config.smartHide,r=t===true||typeof t=="object"&&!!t.onScroll;if(!this.config.tuckOnScroll||r||typeof document>"u")return;let n=700,i=()=>{let o=this.triggerEl;!o||this.isOpen||this.shadow.activeElement===o||o.classList.contains("dragging")||(o.classList.add("tucked"),this.tuckTimer!==null&&clearTimeout(this.tuckTimer),this.tuckTimer=setTimeout(()=>{this.tuckTimer=null,this.triggerEl?.classList.remove("tucked");let s=this.measureFixedBars();s!==this.barClearance&&(this.barClearance=s,this.render());},n));};document.addEventListener("scroll",i,{capture:true,passive:true}),this.tuckCleanup=()=>{document.removeEventListener("scroll",i,{capture:true}),this.tuckTimer!==null&&clearTimeout(this.tuckTimer),this.tuckTimer=null;};}measureFixedBars(){if(!this.config.avoidFixedBars||typeof document>"u"||typeof document.elementsFromPoint!="function")return 0;let t=window.innerHeight,r=window.innerWidth;if(!t||!r)return 0;let n=this.config.position.endsWith("left"),i=s=>s.height>0&&s.height<=t*.4&&s.top<t&&s.bottom>=t-4&&s.bottom<=t+4,o=t;for(let s of [n?24:r-24,r/2]){let a=document.elementsFromPoint(s,t-2).find(d=>d!==this.host&&!this.host.contains(d)),u=null;for(let d=a??null;d&&d!==document.body&&d!==document.documentElement;d=d.parentElement){let p=getComputedStyle(d),h=d.getBoundingClientRect();if(p.position==="fixed"||p.position==="sticky"){let g=i(h)?h:u;g&&(o=Math.min(o,g.top));break}/(auto|scroll)/.test(p.overflowY)?u=null:i(h)&&(u=h);}}return o<t?Math.ceil(t-o+8):0}dismissLauncherForSession(){this.launcherDismissed=true,ia(),this.close();}shouldRenderTrigger(){if(!this.triggerVisible||this.launcherDismissed||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 t=this.config.environments[this.detectEnvironment()];return t!=="never"&&t!=="manual"}static BANNER_HEIGHT=36;static BODY_NUDGE_PROP="--mushi-banner-offset";applyBodyNudge(t,r=e.BANNER_HEIGHT){let n=`${r}px`;document.documentElement.style.setProperty(e.BODY_NUDGE_PROP,n),t==="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(t,r){let n=()=>{let i=t.getBoundingClientRect().height;i>0&&this.applyBodyNudge(r,i);};requestAnimationFrame(n),typeof ResizeObserver<"u"&&(this.bannerResizeObserver=new ResizeObserver(n),this.bannerResizeObserver.observe(t));}removeBodyNudge(){this.bannerResizeObserver?.disconnect(),this.bannerResizeObserver=null,document.documentElement.style.removeProperty(e.BODY_NUDGE_PROP);let t=document.body.dataset.mushiBannerNudged;t==="top"?(document.body.style.paddingTop="",delete document.body.dataset.mushiBannerNudged):t==="bottom"&&(document.body.style.paddingBottom="",delete document.body.dataset.mushiBannerNudged);}syncBanner(){let t=JSON.stringify([this.config.trigger,this.bannerDismissed,this.triggerVisible,this.isRouteHidden(),this.isSuppressedByHost(),this.config.bannerConfig,this.config.zIndex,this.lang]);t===this.bannerKey&&(this.bannerEl?.isConnected??true)||(this.bannerKey=t,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 t=this.config.bannerConfig??{},r=t.variant??"subtle",n=t.position??"top",i=t.message?.trim()??"",o=i.length>0,s=t.bugCta??"\u{1F41B} Report a bug",a=t.featureCta!==false,u=t.featureCtaLabel??"Request feature",d=`\u{1F4EC} ${this.locale.panel.yourReports}`,p=t.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 g=document.createElement("button");if(g.className="mushi-banner-dismiss",g.textContent="\u2715",g.setAttribute("aria-label","Dismiss feedback banner"),g.addEventListener("click",()=>{this.bannerDismissed=true,this.removeBodyNudge(),this.render();}),o){let E=document.createElement("div");E.className="mushi-banner-body";let _=t.label===false?null:t.label??Ks.bannerLabel;if(_){let w=document.createElement("span");w.className="mushi-banner-pill",w.textContent=_,E.appendChild(w);}let b=document.createElement("span");b.className="mushi-banner-message",b.textContent=i,E.appendChild(b),h.appendChild(E);let y=document.createElement("nav");y.className="mushi-banner-actions",y.setAttribute("aria-label","Feedback banner actions");let k=(w=false)=>{let R=document.createElement("span");R.className=`mushi-banner-divider${w?" mushi-banner-extra":""}`,R.setAttribute("aria-hidden","true"),R.textContent="|",y.appendChild(R);},T=(w,R,C=false)=>{let m=document.createElement("button");m.type="button",m.className=`mushi-banner-link${C?" mushi-banner-extra":""}`,m.textContent=w,m.addEventListener("click",R),y.appendChild(m);};T(s,()=>this.open({category:"bug"})),a&&(k(true),T(u,()=>this.open({featureRequest:true}),true));for(let w of t.links??[]){let R=w.label?.trim();if(!R)continue;let C=w.href&&(/^https?:\/\//i.test(w.href)||w.href.startsWith("/"))?w.href:void 0;if(k(true),C){let m=document.createElement("a");m.className="mushi-banner-link mushi-banner-extra",m.href=C,m.textContent=R,m.target="_blank",m.rel="noopener noreferrer",y.appendChild(m);}else T(R,()=>{w.featureRequest?this.open({featureRequest:true}):this.open();},true);}k(true),T(d,()=>this.openReporter(),true),h.appendChild(y),h.appendChild(g);}else {let E=document.createElement("button");if(E.className="mushi-banner-btn",E.textContent=s,E.addEventListener("click",()=>this.open({category:"bug"})),h.appendChild(E),a){let b=document.createElement("button");b.className="mushi-banner-btn",b.textContent=u,b.addEventListener("click",()=>this.open({featureRequest:true})),h.appendChild(b);}let _=document.createElement("button");_.className="mushi-banner-my-reports",_.textContent=d,_.addEventListener("click",()=>this.openReporter()),h.appendChild(_),h.appendChild(g);}this.shadow.insertBefore(h,this.panel),this.bannerEl=h,this.applyBodyNudge(n),this.trackBannerHeight(h,n);}effectiveTrigger(){if(typeof window>"u")return this.config.trigger;if(this.config.smartHide){let t=this.config.smartHide===true?{onMobile:"edge-tab"}:this.config.smartHide;if(window.matchMedia("(max-width: 768px)").matches&&t.onMobile==="edge-tab")return "edge-tab"}return this.config.trigger==="auto"&&this.config.mobileTrigger==="edge-tab"&&typeof window.matchMedia=="function"&&window.matchMedia("(max-width: 768px)")?.matches?"edge-tab":this.config.trigger}isMobileSmartHidden(){if(!this.config.smartHide||typeof window>"u")return false;let t=this.config.smartHide===true?{onMobile:"edge-tab"}:this.config.smartHide;return window.matchMedia("(max-width: 768px)").matches&&t.onMobile==="hide"}detectEnvironment(){let t=typeof location<"u"?location.hostname:"";return t==="localhost"||t==="127.0.0.1"||t.endsWith(".local")?"development":/\b(staging|stage|preview|dev)\b/i.test(t)?"staging":"production"}isRouteHidden(){return !this.config.hideOnRoutes.length||typeof location>"u"?false:this.config.hideOnRoutes.some(t=>location.pathname.includes(t))}getTheme(){let t=this.config.theme;if(t==="light"||t==="dark")return t;if(t==="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(t){let r=this.host.style,n=r.color;r.color=t;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(t){let r=Rt(this.config.accent??""),n=[];if(!r&&typeof document<"u"){try{let a=getComputedStyle(document.documentElement);n.push(a.getPropertyValue("--mushi-accent").trim());let u=a.getPropertyValue("accent-color").trim();u&&u!=="auto"&&n.push(u);}catch{}n.push(document.querySelector('meta[name="theme-color"]')?.getAttribute("content")?.trim()??"");}let i=t?[18,18,18]:[255,255,255],o=r;for(let a of n){if(o)break;let u=Rt(a),d=u?this.probeRgb(u):null;d&&di(d,i).ratio>=3&&(o=u);}if(!o)return {accent:"",accentFg:""};let s=this.probeRgb(o);return {accent:o,accentFg:Rt(this.config.accentText??"")||(s?di(s).ink:"")}}syncChrome(){let t=this.getTheme(),{accent:r,accentFg:n}=this.resolveAccent(t==="dark"),i=`${t}|${r}|${n}`;i!==this.styleKey&&(this.styleKey=i,this.styleEl.textContent=Ia(t,r,n)),this.syncBanner(),this.syncTrigger();}syncTrigger(){let t=this.shouldRenderTrigger(),r=this.config.position,n=t?this.effectiveTrigger():"",i=JSON.stringify([t,n,r,this.triggerShrunk,this.config.triggerText,this.config.zIndex,this.config.draggable,this.lang]),o=false;(i!==this.triggerKey||t&&!this.triggerEl?.isConnected)&&(this.triggerKey=i,this.triggerEl?.remove(),this.triggerEl=t?this.buildTrigger(n):null,o=true),this.triggerEl&&(this.triggerEl.setAttribute("aria-expanded",String(this.isOpen)),this.applyInsetVars(this.triggerEl),(o||this.barClearance!==this.clampedForClearance)&&this.fabPos&&this.dragOptions(this.triggerEl)&&this.restoreFabPos(this.triggerEl),this.clampedForClearance=this.barClearance);}buildTrigger(t){let r=t==="edge-tab",n=document.createElement("button");if(n.className=`mushi-trigger ${this.config.position}${r?" edge-tab":""}${r&&Ya(this.config.triggerText)?" text":""}${this.triggerShrunk?" shrunk":""}`,r){let i=document.createElement("span");i.className="mushi-trigger-face",i.textContent=this.config.triggerText,n.appendChild(i);}else n.textContent=this.config.triggerText;return n.setAttribute("aria-label",this.locale.widget.trigger),n.setAttribute("aria-haspopup","dialog"),n.style.zIndex=String(this.config.zIndex),n.addEventListener("click",()=>{this.isOpen?this.close():this.open();}),n.addEventListener("keydown",i=>{let o=this.dragOptions(n);if(!o)return;let s=8,{axis:a}=o,u=0,d=0;if(a!=="y"&&(i.key==="ArrowLeft"?u=-s:i.key==="ArrowRight"&&(u=s)),a!=="x"&&(i.key==="ArrowUp"?d=-s:i.key==="ArrowDown"&&(d=s)),u!==0||d!==0){i.preventDefault();let p=this.fabPos??{x:0,y:0};this.moveFab(n,p.x+u,p.y+d,"end");}}),this.dragOptions(n)&&this.attachDragHandlers(n),this.shadow.insertBefore(n,this.panel),n}restoreFabPos(t){if(!this.fabPos)return;let r=this.fabPos;this.fabPos={x:0,y:0},t.style.setProperty("--mushi-drag-active","0"),this.moveFab(t,r.x,r.y,"restore");}dragOptions(t){let r=t.classList.contains("edge-tab"),n=this.config.draggable;if(!n&&(this.draggableSet||!r))return null;let i=typeof n=="object"?n:{};return {axis:r?"y":i.axis??"both",persist:i.persist??true,snap:!r&&(i.snapToEdge??true)}}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 t=this.panel;if(t.className=`mushi-panel ${this.config.position}${this.isOpen?" open":" closed"}`,t.style.zIndex=String(this.config.zIndex+1),this.applyInsetVars(t),!this.isOpen){if(this.renderedStep!==null){for(let p of fi)this.regionEls[p].innerHTML="";this.regionHtml={},this.renderedStep=null,this.teardownViewportHandlers();}return}let r=this.renderCtx();!gi&&(La.has(this.step)||this.step==="success"&&(this.channels.email||this.channels.push))&&this.preloadViews().then(()=>{this.isOpen&&this.render();});let n=Ma(r),i={notice:Pa(r),header:n.header,lead:n.lead,body:n.body,footer:n.footer,brand:Ba(r)},o=this.renderedStep!==this.step,s=this.renderedStep===null,a=this.shadow.activeElement,u=a?za(a):null;this.captureFormDrafts();let d=false;for(let p of fi)this.regionHtml[p]!==i[p]&&(this.regionHtml[p]=i[p],this.regionEls[p].innerHTML=i[p],d=true);this.renderedStep=this.step,d&&(ba(t),this.restoreFormDrafts()),o?(this.scroller.scrollTop=0,s||(t.classList.remove("mushi-swap"),t.offsetWidth,t.classList.add("mushi-swap")),this.focusView()):a&&!a.isConnected&&u&&t.querySelector(u)?.focus(),s&&this.attachViewportHandlers(t),!this.brandImpressionSent&&this.config.brandFooter===true&&(this.brandImpressionSent=true,this.callbacks.onBrandFooterImpression?.());}focusView(){let t=this.panel.querySelector('[data-role="description"]')??this.panel.querySelector("#mushi-title");t&&(t.id==="mushi-title"&&(t.tabIndex=-1),t.focus({preventScroll:true}));}captureFormDrafts(){for(let n of mi){let i=this.panel.querySelector(`[data-role="${n}"]`);i&&(this.drafts[n]=i.value);}let t=this.shadow.activeElement,r=t?.dataset?.role;r&&mi.includes(r)?(this.drafts._focus=r,this.drafts._sel=`${t.selectionStart??0},${t.selectionEnd??0}`):delete this.drafts._focus;}restoreFormDrafts(){for(let t of mi){let r=this.panel.querySelector(`[data-role="${t}"]`),n=this.drafts[t];if(!(!r||!n||r.value===n)&&(r.value=n,this.drafts._focus===t&&this.shadow.activeElement!==r)){r.focus();let[i,o]=(this.drafts._sel??"").split(",").map(Number);try{r.setSelectionRange(i,o);}catch{}}}}computeAvoidTopPx(t=8){let r=this.config.avoidSelectors;if(!r?.length)return null;let n=window.innerHeight/2,i=0;for(let o of r)try{let s=document.querySelector(o);if(!s)continue;let a=s.getBoundingClientRect();if((a.top+a.bottom)/2>=n)continue;a.bottom>i&&a.width>0&&a.height>0&&(i=a.bottom);}catch{}return i>0?Math.ceil(i)+t:null}computeAvoidBottomPx(t=8){let r=this.config.avoidSelectors;if(!r?.length)return null;let n=window.innerHeight/2,i=0;for(let o of r)try{let s=document.querySelector(o);if(!s)continue;let a=s.getBoundingClientRect();if((a.top+a.bottom)/2<=n)continue;if(a.width>0&&a.height>0){let u=window.innerHeight-a.top+t;u>i&&(i=u);}}catch{}return i>0?Math.ceil(i):null}hostCssVar(t){if(!this.host.isConnected)return "";try{return getComputedStyle(this.host).getPropertyValue(t).trim()}catch{return ""}}applyInsetVars(t){let{anchor:r}=this.config;for(let o of ["top","right","bottom","left"])t.style.removeProperty(`--mushi-${o}`);if(r&&Object.keys(r).length>0)["top","right","bottom","left"].forEach(o=>{let s=r[o];s!==void 0&&t.style.setProperty(`--mushi-${o}`,s);});else {let{inset:o}=this.config;this.config.respectSafeArea||["top","right","bottom","left"].forEach(s=>{o[s]===void 0&&t.style.setProperty(`--mushi-${s}`,"24px");}),["top","right","bottom","left"].forEach(s=>{let a=o[s];a!==void 0&&t.style.setProperty(`--mushi-${s}`,a==="auto"?"auto":`${a}px`);});}t.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&&t.style.setProperty("--mushi-top",`${o}px`);}if(i){let o=this.computeAvoidBottomPx();if(o!==null)t.style.setProperty("--mushi-bottom",`${Math.max(o,this.barClearance)}px`);else if(this.barClearance>0){let s=t.style.getPropertyValue("--mushi-bottom").trim()||this.hostCssVar("--mushi-bottom")||`calc(${ut.gutter}px + env(safe-area-inset-bottom, 0px))`;s!=="auto"&&t.style.setProperty("--mushi-bottom",`max(${s}, ${this.barClearance}px)`);}}}fabStorageKey(t){let r=this.config.projectId??"";return `${t.classList.contains("edge-tab")?"mushi_tab_pos":"mushi_fab_pos"}${r?`_${r}`:""}`}moveFab(t,r,n,i){let o=this.dragOptions(t);if(!o)return;let{axis:s}=o,a=window.innerWidth,u=window.innerHeight,d=t.offsetWidth||52,p=t.offsetHeight||52,h=getComputedStyle(document.documentElement),g=N=>parseInt(h.getPropertyValue(`--sai-${N}`)||"0")||0,E=g("left"),_=g("right"),b=g("top"),y=g("bottom"),k=8,T=t.getBoundingClientRect(),w=T.left-(this.fabPos?.x??0),R=T.top-(this.fabPos?.y??0),C=E+k-w,m=a-_-k-d-w,f=b+k-R,S=u-Math.max(y+k,this.barClearance)-p-R,A=s==="x"?0:Math.max(f,Math.min(S,n)),$=s==="y"?0:Math.max(C,Math.min(m,r));if(i==="end"&&o.snap&&s!=="y"&&($=T.left+d/2<a/2?E+k-w:a-_-k-d-w),this.fabPos={x:$,y:A},t.style.setProperty("--mushi-drag-x",`${$}px`),t.style.setProperty("--mushi-drag-y",`${A}px`),t.style.setProperty("--mushi-drag-active","1"),i==="end"&&o.persist)try{localStorage.setItem(this.fabStorageKey(t),JSON.stringify(this.fabPos));}catch{}}loadFabPos(t){let r=this.fabStorageKey(t);if(r!==this.fabPosKey&&(this.fabPosKey=r,this.fabPos=null,!!this.dragOptions(t)?.persist))try{let n=localStorage.getItem(r);if(n){let i=JSON.parse(n);typeof i?.x=="number"&&typeof i?.y=="number"&&(this.fabPos=i);}}catch{}}attachDragHandlers(t){this.loadFabPos(t);let r=0,n=0,i=0,o=0,s=false,a=false,u=6;t.addEventListener("pointerdown",p=>{if(p.button!==0&&p.pointerType!=="touch")return;t.setPointerCapture?.(p.pointerId),r=p.clientX,n=p.clientY;let h=this.fabPos??{x:0,y:0};i=h.x,o=h.y,s=true,a=false;}),t.addEventListener("pointermove",p=>{if(!s)return;let h=p.clientX-r,g=p.clientY-n;!a&&Math.hypot(h,g)>u&&(a=true,t.classList.remove("tucked"),t.classList.add("dragging")),a&&(p.preventDefault(),this.moveFab(t,i+h,o+g,"move"));});let d=p=>{if(s){if(s=false,t.classList.remove("dragging"),a){this.moveFab(t,i+p.clientX-r,o+p.clientY-n,"end");let h=g=>{g.stopImmediatePropagation(),t.removeEventListener("click",h,{capture:true});};t.addEventListener("click",h,{capture:true});}a=false;}};t.addEventListener("pointerup",d),t.addEventListener("pointercancel",d);}attachViewportHandlers(t){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?(t.style.setProperty("--mushi-keyboard-inset",`${Math.round(o)}px`),t.classList.add("keyboard-open")):(t.style.setProperty("--mushi-keyboard-inset","0px"),t.classList.remove("keyboard-open"));};r.addEventListener("resize",n,{passive:true}),r.addEventListener("scroll",n,{passive:true});let i=()=>requestAnimationFrame(n);t.addEventListener("focusin",i),this.vvCleanup=()=>{r.removeEventListener("resize",n),r.removeEventListener("scroll",n),t.removeEventListener("focusin",i);};}teardownViewportHandlers(){this.vvCleanup?.(),this.vvCleanup=null;}effectiveMinLength(){let t=this.config.minDescriptionLength??8;return /^(ja|zh|ko)$/.test(this.lang)?Math.max(4,Math.floor(t/2)):t}canSend(){return (this.drafts.description??"").trim().length>=this.effectiveMinLength()||this.elementSelected||this.screenshotAttached&&this.screenshotByUser}unreadCount(){return this.reporterReports.reduce((t,r)=>t+(r.unread_count??0),0)}renderCtx(){return {config:this.config,locale:this.locale,rc:this.rc,lang:this.lang,views:gi,step:this.step,callbacks:this.callbacks,chip:this.chip,intent:this.intent,showAllCategories:this.showAllCategories,draftLength:(this.drafts.description??"").length,launcherDismissible:this.config.dismissible&&this.triggerEl!==null,canSend:this.canSend(),submitting:this.submitting,screenshotCapturing:this.screenshotCapturing,screenshotAttached:this.screenshotAttached,screenshotPreview:this.screenshotPreview,previewOpen:this.previewOpen,screenshotReview:this.screenshotReview,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,submitNotSent:this.submitNotSent,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:Qs(),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:t=>ii[t]??ii.default,resolveCustomCategory:t=>this.resolveCustomCategory(t)}}bindPanelEvents(){let t=this.panel;t.addEventListener("pointerdown",()=>{this.pointerDownAt=Date.now();}),t.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);}),t.addEventListener("input",r=>{let n=r.target,i=n.dataset?.role;i&&(this.drafts[i]=n.value,n.tagName==="TEXTAREA"&&i!=="description"&&Ga(n),i==="description"&&this.render());}),t.addEventListener("submit",r=>{r.preventDefault();let n=t.querySelector(".mushi-assistant-input"),i=n?.value??"";n&&(n.value=""),this.sendAssistantMessage(i);}),t.addEventListener("keydown",r=>this.onKeydown(r));}onKeydown(t){let r=t.target;if(t.key==="Escape"){if(t.preventDefault(),this.showMoreNav){this.showMoreNav=false,this.render();return}if(this.step==="report-detail"){this.goBack();return}this.close();return}if(da(t)||t.key==="Enter"&&!t.shiftKey&&r.classList.contains("mushi-assistant-input")){this.step==="report"?(t.preventDefault(),this.submitReport()):this.step==="report-detail"&&r.dataset.role==="reporter-reply"?(t.preventDefault(),this.submitReporterReply()):this.step==="assistant"&&(t.preventDefault(),this.panel.querySelector("form")?.requestSubmit());return}if(t.key==="Tab"){this.trapTab(t);return}if(r.getAttribute("role")==="radio"&&/^Arrow(Left|Right|Up|Down)$/.test(t.key)){let n=Array.from(r.closest('[role="radiogroup"]')?.querySelectorAll('[role="radio"]')??[]),i=n.indexOf(r),o=n[(i+(/Right|Down/.test(t.key)?1:-1)+n.length)%n.length];if(!o)return;t.preventDefault(),o.click(),this.panel.querySelector(za(o)??"")?.focus();}}trapTab(t){let r=Array.from(this.panel.querySelectorAll($p)).filter(s=>!s.closest("[hidden]"));if(!r.length)return;let n=r[0],i=r[r.length-1],o=this.shadow.activeElement;t.shiftKey&&(o===n||!this.panel.contains(o))?(t.preventDefault(),i.focus()):!t.shiftKey&&o===i&&(t.preventDefault(),n.focus());}handleAction(t,r){let n=r.dataset.value??"";switch(t){case "close":this.close();return;case "back":this.goBack();return;case "brand-footer":this.callbacks.onBrandFooterClick?.();return;case "hide-launcher":this.dismissLauncherForSession();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":Op(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 t={"report-detail":"reports","cross-app-reports":"account"};this.step=t[this.step]??"report",this.step==="reports"&&(this.selectedReportId=null),this.step==="report"&&(this.showAllCategories=!!(this.chip&&this.resolveCustomCategory(this.chip))),this.render();}async submitReport(){if(this.submitting)return;let t=this.panel.querySelector('[data-role="description"]');if(t&&(this.drafts.description=t.value),!this.canSend()){this.announce(this.rc.ui.addWords),t?.focus();return}if(this.callbacks.onBeforeSubmit){this.submitting=true,this.render();let E=false;try{E=await this.callbacks.onBeforeSubmit();}catch{E=false;}if(this.submitting=false,!this.isOpen||this.step!=="report")return;if(E&&this.screenshotAttached&&this.screenshotPreview){this.screenshotReview=true,this.previewOpen=true,this.render(),this.announce(this.locale.step3.screenshotReview);return}}this.screenshotReview=false;let r=(this.drafts.description??"").trim(),n=this.chip,i=n?this.resolveCustomCategory(n):void 0,o=(this.config.categories?.length??0)>0,s=n==="idea",a=s||!n?"other":i?i.baseCategory??"other":n,u=i?n:s?"feature":o&&n?n:void 0,d=s?ua: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.submitNotSent=null;let p={...this.drafts};this.render();let h=(async()=>{try{let E=this.callbacks.onSubmit({category:a,...u?{userCategory:u}:{},description:r,...d?{intent:d}:{}});return E&&typeof E.then=="function"?await E??null:null}catch{return {reportId:null,queuedOffline:true}}})(),g;h.then(E=>{g=E;}),this.successTimer=setTimeout(()=>{if(this.successTimer=null,hr(g)){this.showNotSent(g.failureKind,p);return}this.submitting=false,this.step="success",this.drafts={},this.render(),this.announce(this.rc.ui.sent),h.then(E=>{if(!(this.step!=="success"||!E)){if(hr(E)){this.showNotSent(E.failureKind,p);return}this.lastReportId=E.reportId??null,this.lastSubmitQueuedOffline=!!E.queuedOffline,this.lastSubmitFailureKind=E.failureKind,this.lastSubmitScreenshotDropped=!!E.screenshotDropped,this.render();}});},500);}showNotSent(t,r){this.submitting=false,this.step="report",this.drafts=r,this.submitNotSent=t,this.render();let n=this.locale.step3;this.announce(t==="throttled"?n.notSentThrottled:n.notSentBlocked);}async loadFeatureBoard(){this.step="roadmap",this.listLoading=true,this.reporterError=null,this.render();try{this.featureBoard=await this.callbacks.onFeatureBoardRequest?.()??[];}catch(t){this.reporterError=t instanceof Error?t.message:"Could not load community ideas.";}finally{this.listLoading=false,this.render();}}async voteFeatureBoard(t){if(!(!this.callbacks.onFeatureBoardVote||this.actionPending)){this.actionPending=true,this.render();try{await this.callbacks.onFeatureBoardVote(t),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(t,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:t,false}finally{this.actionPending=false,this.render();}}async submitReporterReopen(){await this.runThreadAction("Could not reopen report.",async t=>{this.callbacks.onReporterReopen?await this.callbacks.onReporterReopen(t,"Not fixed for me"):await this.callbacks.onReporterFeedback?.(t,"not_fixed","Not fixed for me");});}async submitReporterFeedback(t){await this.runThreadAction("Could not send feedback.",r=>Promise.resolve(this.callbacks.onReporterFeedback?.(r,t)));}async refreshReporterInboxQuiet(){try{let t=this.callbacks.onReporterReportsRequest?.();this.reporterReports=t?await Ft(t,Ot):[],this.isOpen&&this.render();}catch{}}async loadReporterReports(){this.ensureOpen(),this.step="reports",this.listLoading=true,this.reporterError=null,this.render();try{let t=this.callbacks.onReporterReportsRequest?.();this.reporterReports=t?await Ft(t,Ot):[];}catch{this.reporterError=this.rc.ui.loadError;}finally{this.listLoading=false,this.render();}}async openTrackedReport(t){await this.loadReporterReports(),this.isOpen&&this.step==="reports"&&await this.openThread(t);}async openThread(t,r=false){this.selectedReportId!==t&&(delete this.drafts["reporter-reply"],this.reporterComments=[],this.timeline=null,this.pendingReplies=[],this.actionError=null,r=false),this.selectedReportId=t,this.step="report-detail",this.threadError=null,r||(this.threadLoading=true,this.render(),this.markRead(t));try{let n=this.callbacks.onReporterReportRequest?.(t),i=n?await Ft(n,Ot):null;if(i)this.selectedReportId===t&&(this.timeline=i.timeline??null,i.report&&(this.reporterReports=this.reporterReports.map(o=>o.id===t?{...o,...i.report}:o)));else {let o=this.callbacks.onReporterCommentsRequest?.(t),s=o?await Ft(o,Ot):[];this.selectedReportId===t&&(this.reporterComments=s);}}catch{this.selectedReportId===t&&(this.threadError=this.rc.ui.loadError);}finally{this.threadLoading=false,this.render();}}markRead(t){let r=this.reporterReports.find(n=>n.id===t);r?.unread_count&&(r.unread_count=0,Promise.resolve(this.callbacks.onReporterMarkRead?.(t)).catch(()=>{}));}submitReporterReply(){let t=this.panel.querySelector('[data-role="reporter-reply"]'),r=(t?.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"],t&&(t.value="",Ga(t)),this.sendPendingReply(n);}async sendPendingReply(t){let r=this.pendingReplies.find(i=>i.id===t),n=this.selectedReportId;if(!(!r||!n)){r.state="sending",this.render(),this.announce(this.rc.ui.sending);try{await Ft(Promise.resolve(this.callbacks.onReporterReply?.(n,r.body)),Ot),await this.openThread(n,!0),this.pendingReplies=this.pendingReplies.filter(i=>i.id!==t),this.render(),this.announce(this.rc.ui.sent);}catch{r.state="failed",this.render(),this.announce(this.rc.ui.sendFailed);}}}async saveEmailOptIn(){let t=(this.panel.querySelector('[data-role="optin-email"]')?.value??"").trim();if(!xa(t)||!this.callbacks.onReporterEmailOptIn){this.emailState="invalid",this.render();return}this.emailState="saving",this.render();try{await this.callbacks.onReporterEmailOptIn(t),this.emailState="saved";}catch{this.emailState="error";}this.render();}async subscribePush(){if(!this.callbacks.onReporterPushSubscribe||this.pushState==="asking")return;let t=this.callbacks.onReporterPushSubscribe();this.pushState="asking",this.render();try{await t,this.pushState="on";}catch{this.pushState="error";}this.render();}async showUpdatesToast(t){let r=(await Va()).pickUpdateToast(t,this.lang,this.rc.ui.toastReplied);return r?this.showUpdateToast(r):false}async preloadViews(){try{await Va();}catch{bi=null;}}showUpdatesFeedToast(t,r){if(!(t.unread_total>0))return false;let n=new Set(t.latest.map(a=>a.report_id)),i=n.size===1?[...n][0]:null,o=i?r.find(a=>a.id===i):void 0,s=o?.title??o?.summary??(i?t.latest[0]?.preview:void 0);return this.showUpdateToast({text:Sa(t,this.lang),reportId:i,...s?{detail:s}:{}})}showUpdateToast(t){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=t.text,n.append(i),t.detail){let a=document.createElement("small");a.textContent=t.detail,n.append(a);}let o=document.createElement("button");o.type="button",o.className="mushi-btn",o.textContent=this.rc.ui.view,o.addEventListener("click",()=>{this.removeToast();let a=t.reportId;a?this.loadReporterReports().then(()=>{this.isOpen&&this.step==="reports"&&this.openThread(a);}):this.openReporter();});let s=document.createElement("button");return s.type="button",s.className="mushi-icon-btn",s.textContent="\u2715",s.setAttribute("aria-label",this.locale.widget.close),s.addEventListener("click",()=>this.removeToast()),r.append(n,o,s),this.applyInsetVars(r),this.shadow.insertBefore(r,this.panel),this.toastEl=r,true}removeToast(){this.toastEl?.remove(),this.toastEl=null;}rememberOpener(){let t=document.activeElement;this.opener=t===this.host?this.shadow.activeElement:t;}restoreOpenerFocus(){let t=this.opener?.isConnected?this.opener:this.opener?.classList.contains("mushi-trigger")?this.triggerEl:null;this.opener=null,t&&t!==document.body&&t.focus({preventScroll:true});}announce(t){this.live.textContent="",setTimeout(()=>{this.live.textContent=t;},30);}async handleMagicLinkSend(){if(this.magicLinkSending)return;let t=(this.drafts["magic-link-email"]??this.magicLinkEmail).trim();if(!t||!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(t)){this.magicLinkError="Please enter a valid email address.",this.render();return}this.magicLinkEmail=t,this.magicLinkError="",this.magicLinkSending=true,this.render();try{await this.callbacks.onMushiSignIn?.(t),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(t){return this.shadow.querySelector(`[data-category="${t}"]`)}getRecorderIntentButton(t){return Array.from(this.shadow.querySelectorAll("[data-intent]")).find(r=>r.dataset.intent===t)??null}getRecorderSubmitButton(){return this.shadow.querySelector('[data-action="submit"]')}recorderClickTrigger(){this.isOpen&&this.close(),this.open();}recorderSelectCategory(t){this.isOpen||this.open(),this.step="report",this.chip=t,this.intent=null,this.render();}recorderSelectIntent(t){!this.isOpen||this.step!=="report"||(this.intent=t,this.render());}recorderFocusDescription(){this.shadow.querySelector('[data-role="description"]')?.focus();}recorderSubmit(){this.submitReport();}recorderOpenMyReports(){this.loadReporterReports();}};function Ya(e){return Array.from(e.trim()).length>2}function Fp(e){let{anchor:t,inset:r}=e;return !!(e.draggable||Ya(e.triggerText??"")||t?.left!==void 0||t?.right!==void 0||r?.left!==void 0||r?.right!==void 0)}function za(e){let t=e.dataset;return t.role?`[data-role="${t.role}"]`:t.category?`[data-category="${an(t.category)}"]`:t.intent?`[data-intent="${an(t.intent)}"]`:t.reportId?`[data-report-id="${an(t.reportId)}"]`:t.action?`[data-action="${t.action}"]${t.value?`[data-value="${an(t.value)}"]`:""}`:null}function an(e){return e.replace(/["\\]/g,"\\$&")}function Ga(e){e.style.height="auto",e.style.height=`${Math.min(e.scrollHeight,104)}px`;}function Op(e){let t=e.dataset.copyId;if(!t)return;let r=e.textContent,n=()=>{e.textContent="Copied \u2713",window.setTimeout(()=>{e.isConnected&&(e.textContent=r);},1600);};try{navigator.clipboard?.writeText?navigator.clipboard.writeText(t).then(n,n):n();}catch{n();}}function Ei(e,t){try{return globalThis[e]?.getItem(t)??null}catch{return null}}function yi(e,t,r){try{globalThis[e]?.setItem(t,r);}catch{}}function vi(e){yi("localStorage",`mushi_has_reports_${e}`,"1");}function wi(e){return Ei("localStorage",`mushi_has_reports_${e}`)==="1"}function Xa(e,t=Date.now()){if(Ei("sessionStorage",`mushi_toast_${e}`))return false;let r=Number(Ei("localStorage",`mushi_toast_at_${e}`)??0);return !(r&&t-r<864e5)}function Ja(e,t=Date.now()){yi("sessionStorage",`mushi_toast_${e}`,"1"),yi("localStorage",`mushi_toast_at_${e}`,String(t));}function Za(e){let t=e.reporterRequest,r=n=>encodeURIComponent(n);return {getUpdates:(n,i)=>t("GET",`/v1/reporter/updates${i?`?since=${encodeURIComponent(i)}`:""}`,n),getReport:(n,i)=>t("GET",`/v1/reporter/reports/${r(n)}`,i),markReportRead:(n,i)=>t("POST",`/v1/reporter/reports/${r(n)}/read`,i,{}),markAllRead:n=>t("POST","/v1/reporter/notifications/read-all",n,{}),getPrefs:n=>t("GET","/v1/reporter/notification-prefs",n),setPrefs:(n,i)=>t("PUT","/v1/reporter/notification-prefs",n,i),subscribePush:(n,i)=>t("POST","/v1/reporter/push-subscriptions",n,i),unsubscribePush:(n,i)=>t("DELETE","/v1/reporter/push-subscriptions",n,{endpoint:i})}}async function Qa(e,t,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,"/"),s=atob(o+"=".repeat((4-o.length%4)%4)),a=await i.pushManager.subscribe({userVisibleOnly:!0,applicationServerKey:Uint8Array.from(s,d=>d.charCodeAt(0))}),u=await e.subscribePush(t,a.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 Hp(e,t){let r={...e};if(t)for(let[n,i]of Object.entries(t))i!==void 0&&(r[n]=i);return r}var Np=["brandFooter"],Up=["manual","attach"];function eu(e,t,r=e){let n=t.native?.triggerMode,i=t.widget?.launcher,o=e.widget?.trigger,s=r.widget?.trigger,a=i??t.widget?.trigger,u=s!==void 0&&Up.includes(s)&&a!=="hidden",p=u?void 0:(u||a==="auto"&&o&&o!=="auto"?void 0:a)??(n==="none"||n==="shake"?"manual":void 0),h=i==="hidden"||t.widget?.trigger==="hidden",g=p==="hidden"&&!h&&o&&o!=="hidden"?o:p,E=t.widget,_=E?.bannerVariant,b=E?.bannerPosition,y=E?.bannerMessage,k=E?.bannerLabel,T=E?.bannerBugCta,w=E?.bannerFeatureCta,R=_||b||y!=null||k!=null||T!=null||w!=null?{...e.widget?.bannerConfig??{},..._?{variant:_}:{},...b?{position:b}:{},...y!=null?{message:y}:{},...k!=null?{label:k===""?false:k}:{},...T!=null?{bugCta:T??void 0}:{},...w!=null?{featureCta:w}:{}}:void 0,C={};if(t.widget)for(let[m,f]of Object.entries(t.widget))m==="trigger"||m==="launcher"||f!=null&&(Np.includes(m)&&r.widget?.[m]!==void 0||(C[m]=f));return {...e,widget:{...e.widget,...C,...g?{trigger:g}:{},...R?{bannerConfig:R}:{},...e.widget?.betaMode?{betaMode:e.widget.betaMode}:{}},capture:Hp(e.capture,t.capture),privacy:{...e.privacy}}}function ln(e){if(!e)return null;let t=e.getBoundingClientRect();return t.width===0&&t.height===0?null:{x:t.left+t.width/2,y:t.top+t.height/2}}function tu(e){if(typeof globalThis>"u")return;let t={ready:()=>e.getIsMounted(),getStep:()=>e.getRecorderStep(),getCategoryStepIA:()=>e.getRecorderCategoryStepIA(),getTriggerCenter:()=>ln(e.getRecorderTrigger()),getCategoryCenter:r=>ln(e.getRecorderCategoryButton(r)),getIntentCenter:r=>ln(e.getRecorderIntentButton(r)),getSubmitCenter:()=>ln(e.getRecorderSubmitButton()),clickTrigger:()=>e.recorderClickTrigger(),selectCategory:r=>e.recorderSelectCategory(r),selectIntent:r=>e.recorderSelectIntent(r),focusDescription:()=>e.recorderFocusDescription(),submit:()=>e.recorderSubmit(),openMyReports:()=>e.recorderOpenMyReports()};globalThis.__mushiRecorder=t;}var cn=null,dn=null,gr=null,br=null,Er=null,yr=false,kt=new Set;function qp(){for(let e of kt)try{e.onPush?.();}catch{}}function jp(){for(let e of kt)try{e.onReplace?.();}catch{}}function Wp(){for(let e of kt)try{e.onPop?.();}catch{}}function Kp(){if(yr||typeof window>"u")return;let e=history.pushState,t=history.replaceState;cn=e,dn=t;let r=function(...o){let s=e.apply(history,o);return gr===r&&qp(),s},n=function(...o){let s=t.apply(history,o);return br===n&&jp(),s};gr=r,br=n,history.pushState=r,history.replaceState=n,Er=()=>Wp(),window.addEventListener("popstate",Er),yr=true;}function ru(){!yr||typeof window>"u"||(Er&&(window.removeEventListener("popstate",Er),Er=null),gr&&history.pushState===gr&&cn&&(history.pushState=cn),br&&history.replaceState===br&&dn&&(history.replaceState=dn),gr=null,br=null,cn=null,dn=null,yr=false);}function Be(e){return Kp(),yr?(kt.add(e),()=>{kt.delete(e),kt.size===0&&ru();}):()=>{}}function nu(){kt.clear(),ru();}var Vp=3e4,zp=3e5,Gp=6e4,Yp=60,su="mushi_session_min_day_",Ut=[],qt=null,jt=null,Je=null,au=null,Si=null,Wt=null,lt=false,wr=null,uu=0,_i=null,Xp=300*1e3,Ci=0,Jp=900*1e3;function Ti(){return Date.now()<Ci}function Ai(e){e?.startsWith("HTTP_4")&&(Ci=Date.now()+Jp);}var iu=new Set;function xi(e){return `mushi_rewards_consent_${e}`}function Zp(e){try{return localStorage.getItem(xi(e))==="1"}catch{return false}}function Ri(e,t){try{t?localStorage.setItem(xi(e),"1"):localStorage.removeItem(xi(e)),lt=t;}catch{}}function lu(){return new Date().toISOString().slice(0,10)}function cu(e){try{let t=sessionStorage.getItem(`${su}${e}_${lu()}`);return t?parseInt(t,10):0}catch{return 0}}function Qp(e){let t=lu(),r=`${su}${e}_${t}`;try{let n=cu(e)+1;return sessionStorage.setItem(r,String(n)),n}catch{return 99}}function du(e){Wt=e.client,Je=e.userId,au=e.traits??null,Si=e.reporterToken??null;let{projectId:t}=e,r=Math.max(Vp,e.config.flushIntervalMs??zp);e.config.consentMode==="auto"?(lt=true,Ri(t,true)):lt=Zp(t),e.config.trackActivity&&th(t),qt&&clearInterval(qt),qt=setInterval(()=>eh(e),r),jt&&clearInterval(jt),jt=setInterval(()=>{if(!lt||!Je)return;let n=cu(t);n<Yp&&(Qp(t),Kt({action:"session_minute",metadata:{minutes_today:n+1}}));},Gp),e.config.showInWidget&&Ii(Je).then(n=>{n&&mu(n,e.config);}),e.config.consentMode!=="auto"&&!lt&&ih(t,e.config);}function Kt(e){!lt||!Je||Ut.push({...e,queuedAt:Date.now()});}async function eh(e){if(!lt||!Je||Ut.length===0)return;let t=null;if(e.config.verifyUserToken)try{t=await e.config.verifyUserToken();}catch{}if(Ti())return;let r=Ut.splice(0,100);try{let n=Si?await Pt(Si):void 0,i=await e.client.submitActivity(Je,r,{userTraits:au??void 0,reporterTokenHash:n,optedIn:!0,hostJwt:t??void 0});i.ok||(Ai(i.error?.code),i.error?.code?.startsWith("HTTP_4")||Ut.unshift(...r.slice(0,50)));}catch{Ut.unshift(...r.slice(0,50));}}async function pu(e){let t=Date.now();return wr&&_i===e&&t-uu<Xp?wr:Ii(e)}async function Ii(e){if(!Wt||Ti())return null;let t=await Wt.getMyTier(e);return t.ok&&t.data?(wr=t.data,uu=Date.now(),_i=e,wr):(Ai(t.error?.code),null)}async function hu(e=10){if(!Wt||Ti())return null;try{let t=await Wt.getHallOfFame(e);return t.ok&&t.data?(t.data.data??[]).map(r=>({display_name:r.display_name,tier_name:r.tier_name,total_points:r.total_points,points_30d:r.points_30d})):(Ai(t.error?.code),null)}catch{return null}}function fu(){qt&&(clearInterval(qt),qt=null),jt&&(clearInterval(jt),jt=null),ki(),nh(),ve&&(ve.remove(),ve=null),Ut=[],Je=null,Wt=null,lt=false,wr=null,_i=null,Ci=0;}var hn=null,vr=null,fn=null,ou="",pn=false;function th(e){if(!(pn&&fn)){pn&&ki(),pn=true;try{rh(e);}catch(t){throw ki(),t}}}function rh(e){let t=()=>{let n=location.pathname;if(n===ou)return;ou=n,!iu.has(`${e}:${n}`)&&(iu.add(`${e}:${n}`),Kt({action:"screen_view_unique_per_day",metadata:{route:n}}));};fn=Be({onPush:t,onPop:t}),t(),hn=new MutationObserver(()=>t());let r=document.querySelector("main")??document.body;hn.observe(r,{childList:true,subtree:false}),vr=n=>{let i=n.target.closest("[data-testid]");if(!i)return;let o=i.dataset.testid;o&&Kt({action:"element_selected",metadata:{testid:o,route:location.pathname}});},document.addEventListener("click",vr,{capture:true,passive:true});}function ki(){pn=false,fn?.(),fn=null,hn?.disconnect(),hn=null,vr&&(document.removeEventListener("click",vr,{capture:true}),vr=null);}var Xe=null;function mu(e,t){if(!t.showInWidget)return;Xe&&Xe.remove(),Xe=document.createElement("div"),Xe.id="mushi-tier-badge",Object.assign(Xe.style,{position:"fixed",bottom:"56px",right:"16px",zIndex:"2147483645",fontFamily:"system-ui, sans-serif"});let r=Xe.attachShadow({mode:"closed"});r.innerHTML=`
6
17
  <style>
7
18
  :host { display: block; }
8
19
  .badge {
@@ -24,28 +35,28 @@
24
35
  width: 6px;
25
36
  height: 6px;
26
37
  border-radius: 50%;
27
- background: ${de.accent};
38
+ background: ${le.accent};
28
39
  flex-shrink: 0;
29
40
  }
30
41
  </style>
31
42
  <div class="badge">
32
43
  <span class="dot"></span>
33
- <span>${t.displayName}</span>
44
+ <span>${e.displayName}</span>
34
45
  </div>
35
- `,document.body.appendChild(Qe);}function Kp(){Qe?.remove(),Qe=null;}var Se=null;function Vp(t,e){if(Se)return;Se=document.createElement("div"),Se.id="mushi-consent-banner",Object.assign(Se.style,{position:"fixed",bottom:"80px",right:"16px",zIndex:"2147483646",maxWidth:"280px",fontFamily:"system-ui, sans-serif"});let r=Se.attachShadow({mode:"closed"});r.innerHTML=`
46
+ `,document.body.appendChild(Xe);}function nh(){Xe?.remove(),Xe=null;}var ve=null;function ih(e,t){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=`
36
47
  <style>
37
48
  :host { display: block; }
38
49
  .banner {
39
- background: ${de.paperRaised};
40
- border: 1px solid ${de.ruleStrong};
50
+ background: ${le.paperRaised};
51
+ border: 1px solid ${le.ruleStrong};
41
52
  border-radius: 12px;
42
53
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
43
54
  padding: 14px 16px;
44
55
  font-size: 13px;
45
56
  line-height: 1.5;
46
- color: ${de.inkMuted};
57
+ color: ${le.inkMuted};
47
58
  }
48
- .title { font-weight: 700; margin-bottom: 6px; color: ${de.ink}; }
59
+ .title { font-weight: 700; margin-bottom: 6px; color: ${le.ink}; }
49
60
  .actions { display: flex; gap: 8px; margin-top: 10px; }
50
61
  button {
51
62
  flex: 1;
@@ -56,8 +67,8 @@
56
67
  font-size: 12px;
57
68
  font-weight: 600;
58
69
  }
59
- .accept { background: ${de.accent}; color: ${de.paperRaised}; }
60
- .decline { background: ${de.paper}; color: ${de.inkMuted}; }
70
+ .accept { background: ${le.accent}; color: ${le.paperRaised}; }
71
+ .decline { background: ${le.paper}; color: ${le.inkMuted}; }
61
72
  </style>
62
73
  <div class="banner">
63
74
  <div class="title">\u{1F3AF} Earn rewards</div>
@@ -67,31 +78,21 @@
67
78
  <button class="decline" id="decline">No thanks</button>
68
79
  </div>
69
80
  </div>
70
- `,r.getElementById("accept")?.addEventListener("click",()=>{bi(t,true),Se?.remove(),Se=null,e.showInWidget&&et&&xi(et).then(n=>{n&&pu(n,e);});}),r.getElementById("decline")?.addEventListener("click",()=>{bi(t,false),Se?.remove(),Se=null;}),document.body.appendChild(Se);}var zp=[/\/v1\/sdk(?:\/|$)/,/\/v1\/reports(?:\/|$)/,/\/v1\/notifications(?:\/|$)/,/\/v1\/reputation(?:\/|$)/];function cn(t){return typeof t=="string"?t:t instanceof URL?t.href:t.url}function dn(t,e){let r=e?.[ar];if(r)return r;let n=Xp(e?.headers,qr);if(n)return n;if(typeof Request<"u"&&t instanceof Request){let i=t.headers.get(qr);if(i)return i}return null}function Er(t,e={}){if([...zp,...e.ignoreUrls??[]].some(i=>Gp(t,i)))return true;let n=Yp(e.apiEndpoint);return n?Ri(t).startsWith(n):false}function Gp(t,e){return typeof e=="string"?Ri(t).includes(e):(e.lastIndex=0,e.test(t))}function Yp(t){if(!t)return null;let e=Ri(t),r=e.length;for(;r>0&&e.charCodeAt(r-1)===47;)r--;return e.slice(0,r)}function Ri(t){try{return new URL(t,typeof location<"u"?location.href:"http://localhost").href}catch{return t}}function Xp(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 Jp=30,Zp="00";function hu(){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:`${Zp}-${n}-${i}-01`,traceId:n,spanId:i}}function fu(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 Te=[];function gu(){return Te[Te.length-1]}function mu(){let t=crypto.getRandomValues(new Uint8Array(4));return Array.from(t).map(e=>e.toString(16).padStart(2,"0")).join("")}function _i(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(L,E){let w=Date.now(),I=E?.method?.toUpperCase()??"GET",P=cn(L),m=!dn(L,E)&&!Er(P,s),b=m?mu():void 0,h,g=E,k=s.tracePropagation;if(m&&k?.enabled&&k.corsUrls?.length&&fu(P,k.corsUrls)){let{traceparent:M,traceId:O}=hu();h=O;let q=E?.headers?new Headers(E.headers):new Headers;q.set("traceparent",M),s.sessionId&&q.set("x-mushi-session",s.sessionId),g={...E,headers:q};}b&&Te.push(b);try{let M=await r.call(globalThis,L,g);return m&&x({method:I,url:ki(P),status:M.status,duration:Date.now()-w,timestamp:w,captureMethod:"fetch",...h?{traceId:h}:{},...b?{correlationId:b}:{}}),M}catch(M){throw m&&x({method:I,url:ki(P),status:0,duration:Date.now()-w,timestamp:w,error:M instanceof Error?M.message:"Network error",captureMethod:"fetch",...h?{traceId:h}:{},...b?{correlationId:b}:{}}),M}finally{if(b){let M=Te.lastIndexOf(b);M!==-1&&Te.splice(M,1);}}};globalThis.fetch=u;let p=typeof WeakMap<"u"?new WeakMap:null;if(n&&i&&o&&a&&p){let v=i;XMLHttpRequest.prototype.open=function(...E){let[w,I]=E,P=typeof I=="string"?I:String(I),R=!Er(P,s),m=R?mu():void 0,b,h,g=s.tracePropagation;if(R&&g?.enabled&&g.corsUrls?.length&&fu(P,g.corsUrls)){let M=hu();b=M.traceId,h=M.traceparent;}let k=p.get(this);if(k?._listener&&(this.removeEventListener("readystatechange",k._listener),k.correlationId)){let M=Te.lastIndexOf(k.correlationId);M!==-1&&Te.splice(M,1);}p.set(this,{method:String(w).toUpperCase(),url:ki(P),startTime:0,shouldRecord:R,...b?{traceId:b}:{},...m?{correlationId:m}:{},...h?{_traceparent:h}:{}}),v.apply(this,E);},XMLHttpRequest.prototype.send=function(E){let w=p.get(this);if(w){w.startTime=Date.now();let I=w._traceparent;I&&(a.call(this,"traceparent",I),s.sessionId&&a.call(this,"x-mushi-session",s.sessionId)),w.correlationId&&Te.push(w.correlationId);let P=()=>{if(this.readyState===4){if(this.removeEventListener("readystatechange",P),w._listener=void 0,w.shouldRecord){let R=Date.now()-w.startTime,m={method:w.method,url:w.url,status:this.status,duration:R,timestamp:w.startTime,captureMethod:"xhr",...w.traceId?{traceId:w.traceId}:{},...w.correlationId?{correlationId:w.correlationId}:{}};this.status===0&&(m.error="XHR network error or aborted"),x(m);}if(w.correlationId){let R=Te.lastIndexOf(w.correlationId);R!==-1&&Te.splice(R,1);}}};w._listener=P,this.addEventListener("readystatechange",P);}try{o.call(this,E);}catch(I){if(w?.correlationId){let P=Te.lastIndexOf(w.correlationId);P!==-1&&Te.splice(P,1);}throw w?._listener&&(this.removeEventListener("readystatechange",w._listener),w._listener=void 0),I}};}let d=n?XMLHttpRequest.prototype.open:null,f=n?XMLHttpRequest.prototype.send:null;function x(v){e.push(v),e.length>Jp&&e.shift();}return {getEntries(){return [...e]},clear(){e.length=0;},updateOptions(v){s=v;},destroy(){globalThis.fetch===u&&(globalThis.fetch=r),n&&i&&o&&(d&&XMLHttpRequest.prototype.open===d&&(XMLHttpRequest.prototype.open=i),f&&XMLHttpRequest.prototype.send===f&&(XMLHttpRequest.prototype.send=o));}}}function ki(t){let e=lr(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 Qp=50,eh=500;function Ci(){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(f=>{try{return typeof f=="string"?f:JSON.stringify(f)}catch{return String(f)}}).join(" ").slice(0,eh),p=gu(),d={level:i,message:u,timestamp:Date.now(),...p?{correlationId:p}:{}};i==="error"&&s[0]instanceof Error&&(d.stack=s[0].stack?.slice(0,1e3)),t.push(d),t.length>Qp&&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 Mi(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"),Ti("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=rh(e.privacy),p=`
71
- <svg xmlns="http://www.w3.org/2000/svg" width="${o}" height="${a}">
72
- <foreignObject width="100%" height="100%">
73
- <div xmlns="http://www.w3.org/1999/xhtml">
74
- ${new XMLSerializer().serializeToString(u)}
75
- </div>
76
- </foreignObject>
77
- </svg>
78
- `,d=new Image,f=`data:image/svg+xml;charset=utf-8,${encodeURIComponent(p)}`,x=!1,v=L=>{let E=L;/^img-src|^default-src/.test(E.violatedDirective??"")&&/^data/.test(E.blockedURI??"")&&(x=!0);};return document.addEventListener("securitypolicyviolation",v),new Promise(L=>{let E=!1,w=(P,R)=>{E||(E=!0,clearTimeout(I),document.removeEventListener("securitypolicyviolation",v),R&&(e.onFailed?.(R),Ti(R)),L(P));},I=setTimeout(()=>w(null,"timeout"),5e3);d.onload=()=>{try{if(i.drawImage(d,0,0,o,a),lh(i,o,a)){w(null,"unsupported");return}w(n.toDataURL("image/jpeg",.7));}catch{w(null,"taint");}},d.onerror=()=>setTimeout(()=>w(null,x?"csp":"error"),0),d.src=f;})}catch{return e.onFailed?.("error"),Ti("error"),null}}return {take:r,updateOptions(n){e=n;}}}function Ti(t){try{document.dispatchEvent(new CustomEvent("mushi:screenshot_failed",{detail:{reason:t},bubbles:!1}));}catch{}}var Li='input[type="password"],input[autocomplete^="cc-"],[data-private],[data-mushi-mask]',th=["[data-mushi-redact]"];function rh(t){let e=document.documentElement.cloneNode(true);e.querySelector("#mushi-mushi-widget")?.remove(),ih(e),oh(e),uh(e),ah(e);let r=[Li,...t?.redactSelectors??th];for(let n of r)for(let i of Ai(e,n))nh(i);for(let n of t?.blockSelectors??[])for(let i of Ai(e,n))i.remove();for(let n of t?.maskSelectors??[])for(let i of Ai(e,n))dh(i);return e}function Ai(t,e){try{return Array.from(t.querySelectorAll(e))}catch{return []}}function nh(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 ih(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=Ii(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=Ii(n,e);i!==n&&r.setAttribute("style",i);}for(let r of t.querySelectorAll("script"))r.remove();}function Ii(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:ch(o,e)?"none":r})}function oh(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(bu(a));}let i=Ii(r.filter(Boolean).join(`
79
- `),e);if(!i)return;let o=document.createElement("style");o.textContent=i,(t.querySelector("head")??t).appendChild(o);}var sh="*,*::before,*::after{animation:none!important;transition:none!important}";function ah(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 uh(t){let e=document.createElement("style");e.textContent=sh,(t.querySelector("head")??t).appendChild(e);}function bu(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+=bu(n.styleSheet));continue}r+=`${n.cssText}
80
- `;}return r}function lh(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 ch(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 dh(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 ph(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 Di(){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,p=o.processingEnd-o.processingStart,d=o.startTime+o.duration-o.processingEnd;t.inpAttribution={eventType:o.name,targetSelector:ph(o.target),inputDelay:Math.max(0,u),processingDuration:Math.max(0,p),presentationDelay:Math.max(0,d)};}}});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 Pi(){let t=false,e=null,r=null,n=null,i=null;function o(m){let b=m,h=0;for(;b&&h<20;){let g=b.getAttribute?.("data-testid");if(g)return g;b=b.parentElement,h++;}return null}function a(m){let b=[],h=m;for(;h&&h!==document.body;){let g=1,k=h.previousElementSibling;for(;k;)k.tagName===h.tagName&&g++,k=k.previousElementSibling;let M=h.tagName.toLowerCase();b.unshift(g>1?`${M}[${g}]`:M),h=h.parentElement;}return "//"+b.join("/")}function s(m){let b=m.getBoundingClientRect(),h=typeof m.className=="string"?m.className:m.getAttribute("class")??"";return {tagName:m.tagName.toLowerCase(),id:m.id||void 0,className:h||void 0,textContent:m.textContent?.trim().slice(0,200)||void 0,xpath:a(m),rect:{x:Math.round(b.x),y:Math.round(b.y),width:Math.round(b.width),height:Math.round(b.height)},nearestTestid:o(m)||void 0,route:typeof window<"u"?window.location.pathname:void 0}}function u(){let m=document.createElement("div");return m.style.cssText=`
81
+ `,r.getElementById("accept")?.addEventListener("click",()=>{Ri(e,true),ve?.remove(),ve=null,t.showInWidget&&Je&&Ii(Je).then(n=>{n&&mu(n,t);});}),r.getElementById("decline")?.addEventListener("click",()=>{Ri(e,false),ve?.remove(),ve=null;}),document.body.appendChild(ve);}var oh=[/\/v1\/sdk(?:\/|$)/,/\/v1\/reports(?:\/|$)/,/\/v1\/notifications(?:\/|$)/,/\/v1\/reputation(?:\/|$)/];function mn(e){return typeof e=="string"?e:e instanceof URL?e.href:e.url}function gn(e,t){let r=t?.[cr];if(r)return r;let n=uh(t?.headers,zr);if(n)return n;if(typeof Request<"u"&&e instanceof Request){let i=e.headers.get(zr);if(i)return i}return null}function Sr(e,t={}){if([...oh,...t.ignoreUrls??[]].some(i=>sh(e,i)))return true;let n=ah(t.apiEndpoint);return n?Mi(e).startsWith(n):false}function sh(e,t){return typeof t=="string"?Mi(e).includes(t):(t.lastIndex=0,t.test(e))}function ah(e){if(!e)return null;let t=Mi(e),r=t.length;for(;r>0&&t.charCodeAt(r-1)===47;)r--;return t.slice(0,r)}function Mi(e){try{return new URL(e,typeof location<"u"?location.href:"http://localhost").href}catch{return e}}function uh(e,t){if(!e)return null;if(typeof Headers<"u"&&e instanceof Headers)return e.get(t);if(Array.isArray(e))return e.find(([i])=>i.toLowerCase()===t.toLowerCase())?.[1]??null;let r=e;return r[t]??r[t.toLowerCase()]??null}var lh=30,ch="00";function gu(){let e=crypto.getRandomValues(new Uint8Array(16)),t=crypto.getRandomValues(new Uint8Array(8)),r=o=>Array.from(o).map(s=>s.toString(16).padStart(2,"0")).join(""),n=r(e),i=r(t);return {traceparent:`${ch}-${n}-${i}-01`,traceId:n,spanId:i}}function bu(e,t){for(let r of t)if(typeof r=="string"){if(e.includes(r))return true}else if(r.test(e))return true;return false}var Ae=[];function yu(){return Ae[Ae.length-1]}function Eu(){let e=crypto.getRandomValues(new Uint8Array(4));return Array.from(e).map(t=>t.toString(16).padStart(2,"0")).join("")}function Di(e={}){let t=[],r=globalThis.fetch,n=typeof XMLHttpRequest<"u"?XMLHttpRequest:null,i=n?XMLHttpRequest.prototype.open:null,o=n?XMLHttpRequest.prototype.send:null,s=n?XMLHttpRequest.prototype.setRequestHeader:null,a=e,u=async function(_,b){let y=Date.now(),k=b?.method?.toUpperCase()??"GET",T=mn(_),R=!gn(_,b)&&!Sr(T,a),C=R?Eu():void 0,m,f=b,S=a.tracePropagation;if(R&&S?.enabled&&S.corsUrls?.length&&bu(T,S.corsUrls)){let{traceparent:A,traceId:$}=gu();m=$;let N=b?.headers?new Headers(b.headers):new Headers;N.set("traceparent",A),a.sessionId&&N.set("x-mushi-session",a.sessionId),f={...b,headers:N};}C&&Ae.push(C);try{let A=await r.call(globalThis,_,f);return R&&g({method:k,url:Li(T),status:A.status,duration:Date.now()-y,timestamp:y,captureMethod:"fetch",...m?{traceId:m}:{},...C?{correlationId:C}:{}}),A}catch(A){throw R&&g({method:k,url:Li(T),status:0,duration:Date.now()-y,timestamp:y,error:A instanceof Error?A.message:"Network error",captureMethod:"fetch",...m?{traceId:m}:{},...C?{correlationId:C}:{}}),A}finally{if(C){let A=Ae.lastIndexOf(C);A!==-1&&Ae.splice(A,1);}}};globalThis.fetch=u;let d=typeof WeakMap<"u"?new WeakMap:null;if(n&&i&&o&&s&&d){let E=i;XMLHttpRequest.prototype.open=function(...b){let[y,k]=b,T=typeof k=="string"?k:String(k),w=!Sr(T,a),R=w?Eu():void 0,C,m,f=a.tracePropagation;if(w&&f?.enabled&&f.corsUrls?.length&&bu(T,f.corsUrls)){let A=gu();C=A.traceId,m=A.traceparent;}let S=d.get(this);if(S?._listener&&(this.removeEventListener("readystatechange",S._listener),S.correlationId)){let A=Ae.lastIndexOf(S.correlationId);A!==-1&&Ae.splice(A,1);}d.set(this,{method:String(y).toUpperCase(),url:Li(T),startTime:0,shouldRecord:w,...C?{traceId:C}:{},...R?{correlationId:R}:{},...m?{_traceparent:m}:{}}),E.apply(this,b);},XMLHttpRequest.prototype.send=function(b){let y=d.get(this);if(y){y.startTime=Date.now();let k=y._traceparent;k&&(s.call(this,"traceparent",k),a.sessionId&&s.call(this,"x-mushi-session",a.sessionId)),y.correlationId&&Ae.push(y.correlationId);let T=()=>{if(this.readyState===4){if(this.removeEventListener("readystatechange",T),y._listener=void 0,y.shouldRecord){let w=Date.now()-y.startTime,R={method:y.method,url:y.url,status:this.status,duration:w,timestamp:y.startTime,captureMethod:"xhr",...y.traceId?{traceId:y.traceId}:{},...y.correlationId?{correlationId:y.correlationId}:{}};this.status===0&&(R.error="XHR network error or aborted"),g(R);}if(y.correlationId){let w=Ae.lastIndexOf(y.correlationId);w!==-1&&Ae.splice(w,1);}}};y._listener=T,this.addEventListener("readystatechange",T);}try{o.call(this,b);}catch(k){if(y?.correlationId){let T=Ae.lastIndexOf(y.correlationId);T!==-1&&Ae.splice(T,1);}throw y?._listener&&(this.removeEventListener("readystatechange",y._listener),y._listener=void 0),k}};}let p=n?XMLHttpRequest.prototype.open:null,h=n?XMLHttpRequest.prototype.send:null;function g(E){t.push(E),t.length>lh&&t.shift();}return {getEntries(){return [...t]},clear(){t.length=0;},updateOptions(E){a=E;},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 Li(e){let t=pr(e);try{let r=new URL(t),n=r.pathname+r.search;return n.length>200?r.origin+n.slice(0,200)+"...":r.origin+n}catch{return t.slice(0,200)}}var dh=50,ph=500;function Pi(){let e=[],t={},r={},n=["log","warn","error","info","debug"],i=u=>{if(u instanceof Error)return `${u.name}: ${u.message}`;try{return typeof u=="string"?u:JSON.stringify(u)}catch{return String(u)}},o=(u,d,p,h)=>{let g={level:u,message:d.slice(0,ph),timestamp:Date.now(),...h};p instanceof Error&&p.stack&&(g.stack=p.stack.slice(0,1e3)),e.push(g),e.length>dh&&e.shift();};for(let u of n){let d=console[u];t[u]=d;let p=(...h)=>{let g=yu();o(u,h.map(i).join(" "),u==="error"?h.find(E=>E instanceof Error):void 0,g?{correlationId:g}:void 0),d.call(console,...h);};r[u]=p,console[u]=p;}let s=u=>{if(u.type==="unhandledrejection"){let d=u.reason;o("error",`Unhandled rejection: ${i(d)}`,d);}else {let d=u,p=d.filename?` (${d.filename}:${d.lineno}:${d.colno})`:"";o("error",`Uncaught ${i(d.error??(d.message||"error"))}${p}`,d.error);}},a=typeof window<"u"&&typeof window.addEventListener=="function";return a&&(window.addEventListener("error",s),window.addEventListener("unhandledrejection",s)),{getEntries(){return [...e]},clear(){e.length=0;},destroy(){for(let u of n)t[u]&&console[u]===r[u]&&(console[u]=t[u]);a&&(window.removeEventListener("error",s),window.removeEventListener("unhandledrejection",s));}}}En();function rf(e){if(!e||!e.tagName)return;let t=e,r=t.tagName.toLowerCase(),n=t.id?`#${t.id}`:"",i=t.classList&&t.classList.length>0?`.${t.classList[0]}`:"";return `${r}${n}${i}`}function Fi(){let e={},t=[];if(typeof PerformanceObserver<"u"){try{let r=new PerformanceObserver(n=>{for(let i of n.getEntries())i.name==="first-contentful-paint"&&(e.fcp=i.startTime);});r.observe({type:"paint",buffered:!0}),t.push(r);}catch{}try{let r=new PerformanceObserver(n=>{let i=n.getEntries();i.length>0&&(e.lcp=i[i.length-1].startTime);});r.observe({type:"largest-contentful-paint",buffered:!0}),t.push(r);}catch{}try{let r=0,n=new PerformanceObserver(i=>{for(let o of i.getEntries())o.hadRecentInput||(r+=o.value??0,e.cls=r);});n.observe({type:"layout-shift",buffered:!0}),t.push(n);}catch{}try{let r=0,n=new PerformanceObserver(i=>{r+=i.getEntries().length,e.longTasks=r;});n.observe({type:"longtask",buffered:!0}),t.push(n);}catch{}try{let r=new Map,n=new PerformanceObserver(i=>{for(let o of i.getEntries()){let s=o.interactionId;if(!s)continue;let a=r.get(s)??0;if(o.duration>a&&r.set(s,o.duration),o.duration>(e.inp??0)){e.inp=o.duration;let u=o.processingStart-o.startTime,d=o.processingEnd-o.processingStart,p=o.startTime+o.duration-o.processingEnd;e.inpAttribution={eventType:o.name,targetSelector:rf(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}),t.push(n);}catch{}try{let r=new PerformanceObserver(n=>{for(let i of n.getEntries())e.fid===void 0&&(e.fid=i.processingStart-i.startTime);});r.observe({type:"first-input",buffered:!0}),t.push(r);}catch{}}if(typeof performance<"u"&&performance.getEntriesByType)try{let r=performance.getEntriesByType("navigation");r.length>0&&r[0]&&(e.ttfb=r[0].responseStart-r[0].requestStart);}catch{}return {getMetrics(){return {...e}},destroy(){for(let r of t)r.disconnect();t.length=0;}}}function Oi(e=()=>"",t=r=>r){let r=false,n=null,i=null,o=null,s=null;function a(f){let S=f,A=0;for(;S&&A<20;){let $=S.getAttribute?.("data-testid");if($)return $;S=S.parentElement,A++;}return null}function u(f){let S=[],A=f;for(;A&&A!==document.body;){let $=1,N=A.previousElementSibling;for(;N;)N.tagName===A.tagName&&$++,N=N.previousElementSibling;let q=A.tagName.toLowerCase();S.unshift($>1?`${q}[${$}]`:q),A=A.parentElement;}return "//"+S.join("/")}function d(f){let S=e();if(S)try{if(f.closest(S)||f.querySelector(S))return}catch{return}let A=f.textContent?.trim().slice(0,200);return A?t(A):void 0}function p(f){let S=f.getBoundingClientRect(),A=typeof f.className=="string"?f.className:f.getAttribute("class")??"";return {tagName:f.tagName.toLowerCase(),id:f.id||void 0,className:A||void 0,textContent:d(f),xpath:u(f),rect:{x:Math.round(S.x),y:Math.round(S.y),width:Math.round(S.width),height:Math.round(S.height)},nearestTestid:a(f)||void 0,route:typeof window<"u"?window.location.pathname:void 0}}function h(){let f=document.createElement("div");return f.style.cssText=`
81
82
  position: fixed;
82
83
  pointer-events: none;
83
84
  z-index: 2147483647;
84
- border: 2px solid ${de.accent};
85
- background: ${de.accentWash};
85
+ border: 2px solid ${le.accent};
86
+ background: ${le.accentWash};
86
87
  border-radius: 4px;
87
88
  transition: all 0.1s ease;
88
89
  display: none;
89
- `,document.body.appendChild(m),m}function p(){let m=document.createElement("div");return m.style.cssText=`
90
+ `,document.body.appendChild(f),f}function g(){let f=document.createElement("div");return f.style.cssText=`
90
91
  position: fixed;
91
92
  inset: 0;
92
93
  z-index: 2147483647;
93
94
  cursor: crosshair;
94
95
  background: transparent;
95
- `,document.body.appendChild(m),m}function d(m,b){let h=document.elementsFromPoint(m,b),g=null;for(let M of h)if(!(M===r||M===e)){if(M.id==="mushi-mushi-widget"||M.closest("#mushi-mushi-widget"))return null;g=M;break}let k=0;for(;g?.shadowRoot&&k<20;){let M=g.shadowRoot.elementFromPoint(m,b);if(!M||M===g)break;g=M,k++;}return g}function f(m){if(!e)return;let b=m.getBoundingClientRect();e.style.left=`${b.left}px`,e.style.top=`${b.top}px`,e.style.width=`${b.width}px`,e.style.height=`${b.height}px`,e.style.display="block";}function x(m){let b=d(m.clientX,m.clientY);if(!b){n=null,e&&(e.style.display="none");return}n=b,f(b);}function v(m){m.preventDefault(),m.stopPropagation();}function L(m){m.preventDefault(),m.stopPropagation();let b=d(m.clientX,m.clientY);b&&I(s(b));}function E(m){m.key==="Escape"&&I(null);}function w(){n?.isConnected&&f(n);}function I(m){R(),i?.(m),i=null;}function P(){return t&&R(),new Promise(m=>{i=m,t=true,e=u(),r=p(),r.addEventListener("mousemove",x),r.addEventListener("click",L),r.addEventListener("pointerdown",v),r.addEventListener("mousedown",v),r.addEventListener("mouseup",v),document.addEventListener("keydown",E,true),window.addEventListener("scroll",w,{capture:true,passive:true});})}function R(){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:P,deactivate:R,isActive:()=>t}}var Eu=120;function Bi(){let t=[],e=()=>n("hashchange");n("initial");function r(u){t.push(u),t.length>Eu&&t.shift();}function n(u){typeof location>"u"||r({ts:Date.now(),kind:"route",payload:{source:u,route:lr(`${location.pathname}${location.search}${location.hash}`),href:lr(location.href)}});}function i(u){let p=u.target instanceof Element?u.target:null;if(!p)return;let d=p.closest('button,a,[role="button"],input,textarea,select,[data-mushi-track]')??p;r({ts:Date.now(),kind:"click",payload:{tag:d.tagName.toLowerCase(),id:d.id||void 0,text:hh(d)}});}let o=Pe({onPush:()=>n("pushState"),onReplace:()=>n("replaceState"),onPop:()=>n("popstate")}),a=typeof window<"u",s=typeof document<"u";return a&&window.addEventListener("hashchange",e),s&&document.addEventListener("click",i,true),{setScreen(u){r({ts:Date.now(),kind:"screen",payload:u});},getEntries(u={}){return [...t,...(u.consoleLogs??[]).map(d=>({ts:d.timestamp,kind:"log",payload:{level:d.level,message:d.message}})),...(u.networkLogs??[]).map(d=>({ts:d.timestamp,kind:"request",payload:{method:d.method,url:d.url,status:d.status,duration:d.duration,error:d.error}}))].sort((d,f)=>d.ts-f.ts).slice(-Eu)},clear(){t.length=0;},destroy(){o(),a&&window.removeEventListener("hashchange",e),s&&document.removeEventListener("click",i,true);}}}function hh(t){let e=(t.textContent??"").replace(/\s+/g," ").trim();return e?e.slice(0,80):void 0}var fh=6e4,mh=/^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i,gh=/^[0-9a-f]{20,}$/i,bh=/^\d+$/,Eh=/^[a-z0-9]{16,}$/i;function yh(t){return t.length===0?t:mh.test(t)||gh.test(t)||bh.test(t)||Eh.test(t)&&/\d/.test(t)?"[id]":t}function vh(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 "/#"+yu(o,a)}return yu(t,r)}function yu(t,e){let r=t.length>1&&t.endsWith("/")?t.slice(0,-1):t;if(e?.length){let n=wh(r,e);if(n)return n}return "/"+r.split("/").filter(n=>n.length>0).map(yh).join("/")}function wh(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],p=r[s];if(!(u.startsWith("[")&&u.endsWith("]"))&&!u.startsWith(":")&&u!==p){a=false;break}}if(a)return "/"+o.join("/")}return null}function Sh(){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 xh(){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 Rh(){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 kh(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 Fi(t){let{config:e,getRecentNetworkPaths:r,getUserId:n,getSessionId:i,onEvent:o}=t,a=e.throttleMs??fh,s=e.captureDomSummary!==false,u=e.userIdSource??"auto",p=new Map,d=null,f=null;async function x(){if(typeof window>"u")return;let I=vh(window.location.pathname,window.location.hash,e.routeTemplates),P=Date.now(),R=p.get(I)??0;if(P-R<a)return;p.set(I,P);let m=null;u==="auto"?m=n()??i():u==="session-only"&&(m=i());let b={route:I,page_title:typeof document<"u"&&(document.title||"").slice(0,300)||null,dom_summary:s?Rh():null,testids:Sh(),network_paths:r().slice(-50),query_param_keys:xh(),user_id_hash:await kh(m),observed_at:new Date().toISOString()};o(b);}function v(){f||(f=setTimeout(()=>{f=null,x();},100));}function L(){if(typeof window>"u")return;let I=window.location.hash.startsWith("#/")?window.location.hash:"",P=window.location.pathname+window.location.search+I;P!==d&&(d=P,v());}if(typeof window>"u")return {destroy:()=>{},flushNow:()=>{}};let E=()=>L(),w=Pe({onPush:E,onReplace:E,onPop:E});return window.addEventListener("hashchange",E),v(),{destroy(){w(),window.removeEventListener("hashchange",E),f&&(clearTimeout(f),f=null),p.clear();},flushNow(){p.clear(),x();}}}var _h=3e4,$i=400,Ch=4,Th=2;function vu(t,e,r){let n=u=>u.timestamp,i=u=>u.type===Th,o=u=>u.type===Ch,a=Date.now()-e,s=0;for(let u=0;u<t.length;u++){let p=n(t[u]);if(typeof p=="number"&&p>=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 wu(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>$i&&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 Ah=['input[type="password"]',"[data-mushi-redact]"],Ih="rrweb",qe=null,Su=false;function Oi(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 Mh(t){if(qe)return qe;if(typeof t=="function")try{if(qe=Oi(await t()),qe)return qe}catch{}if(qe=Oi(globalThis.rrweb),qe)return qe;try{let e=globalThis.__MUSHI_RRWEB_SPECIFIER__||Ih;return qe=Oi(await import(e)),qe}catch{return null}}async function xu(t){let e=t.maxDurationMs??_h;if(t.mode==="lite")return wu(e);let r=await Mh(t.loadRrweb);if(!r?.record)return Su||(Su=true,Pt({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') }.")),wu(e);let n=r.record,i=[],o=null,a=false,s=[...new Set([...Ah,...t.redactSelectors??[]])],u=()=>{o?.(),o=null,a=false;};return {start(){a||(a=true,o=n({emit(p){i.push(p),vu(i,e,$i);},maskAllInputs:true,maskTextSelector:"*",blockSelector:s.join(","),checkoutEveryNms:e,sampling:{mousemove:false,mouseInteraction:true,scroll:150,media:800}})??null);},stop:u,flush(){return vu(i,e,$i),[...i]},destroy(){u(),i.length=0;}}}function Ru(){try{let t=globalThis;return t.Sentry?t.Sentry:void 0}catch{return}}function Lh(){try{return globalThis.__SENTRY_REPLAY__}catch{return}}function Dh(){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 Hi(t,e={}){let r=Math.max(0,e.breadcrumbsLimit??30),n={},i=Ru();if(!i)return n;n.sdk=Dh();try{let s=i;if(typeof s.lastEventId=="function")n.eventId=s.lastEventId()??void 0;else {let p=i.getCurrentHub?.()?.getScope?.();n.eventId=p?.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[p,d]of Object.entries(s))(typeof d=="string"||typeof d=="number"||typeof d=="boolean")&&(u[p]=d);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(p=>{let d=p;return {timestamp:typeof d.timestamp=="number"?d.timestamp<1e12?Math.round(d.timestamp*1e3):d.timestamp:void 0,category:typeof d.category=="string"?d.category:void 0,level:typeof d.level=="string"?d.level:void 0,message:typeof d.message=="string"?d.message:void 0,type:typeof d.type=="string"?d.type:void 0,data:d.data&&typeof d.data=="object"?d.data:void 0}});}}catch{}}try{let s=i,u;if(typeof s.getActiveSpan=="function"?u=s.getActiveSpan():o?.getSpan&&(u=o.getSpan()),u){let p=u.spanContext?.();n.traceId=p?.traceId??u.traceId??void 0,n.spanId=p?.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?.()??Lh();n.replayId=u?.getReplayId?.()??void 0;}catch{}return n}function Ni(t,e={}){let r=Ru();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 Ph=["/login","/logout","/signup","/sso/*","/auth/*"],Bh=/(?:^\s*at\s+(?:.*?\()?|@)([a-z][a-z0-9+.-]*:\/\/[^\s()]*?)(?::\d+){1,2}\)?\s*$/i;function Ui(t){if(!(typeof t!="string"||t.length===0))for(let e of t.split(`
96
- `)){let r=Bh.exec(e);if(r)return r[1]}}function _u(t,e={}){let r=[];if(e.rageClick!==false){let E=function(w){let I=Date.now();if(w.target===L){if(v.push(I),v=v.filter(P=>I-P<500),v.length>=3){let P=w.target;t.onTrigger("rage_click",{element:P.tagName,id:P.id,text:P.textContent?.slice(0,50)}),v=[];}}else L=w.target,v=[I];};let v=[],L=null;document.addEventListener("click",E,true),r.push(()=>document.removeEventListener("click",E,true));}if(e.longTask!==false&&typeof PerformanceObserver<"u")try{let v=new PerformanceObserver(L=>{for(let E of L.getEntries())E.duration>5e3&&t.onTrigger("long_task",{duration:Math.round(E.duration),startTime:Math.round(E.startTime)});});v.observe({entryTypes:["longtask"]}),r.push(()=>v.disconnect());}catch{}let n=Fh(e.apiCascade);if(n.enabled){let v=[],L=globalThis.fetch;globalThis.fetch=async function(...E){let[w,I]=E,P=cn(w),R=!!dn(w,I)||Er(P,{apiEndpoint:e.apiEndpoint,ignoreUrls:n.ignoreUrls});try{let m=await L.apply(this,E);return !R&&!m.ok&&m.status>=400&&ku(v,t),m}catch(m){throw R||ku(v,t),m}},r.push(()=>{globalThis.fetch=L;});}if((e.pageDwell===true||typeof e.pageDwell=="object"&&e.pageDwell!==null)&&typeof window<"u"){let P=function(g){return E.some(k=>k.endsWith("/*")?g.startsWith(k.slice(0,-2)):g===k||g.startsWith(k+"/"))},R=function(){let g=window.location?.pathname??"";P(g)||t.onTrigger("page_dwell",{thresholdMs:L,path:g});},m=function(){w&&clearTimeout(w);let g=window.location?.pathname??"";P(g)||(w=setTimeout(R,L));},b=function(){let g=window.location?.pathname??"";g!==I&&(I=g,m());};let v=typeof e.pageDwell=="object"?e.pageDwell??{}:{},L=v.thresholdMs||300*1e3,E=v.excludeRoutes!==void 0?v.excludeRoutes:Ph,w=null,I=window.location?.pathname??"";m();let h=Pe({onPush:b,onReplace:b,onPop:b});r.push(()=>{w&&clearTimeout(w),h();});}if((e.firstSession===true||typeof e.firstSession=="object"&&e.firstSession!==null)&&typeof window<"u"){let v=typeof e.firstSession=="object"?e.firstSession??{}:{},L=v.delayMs??45*1e3,E=v.storageKey??(e.projectId?`mushi:${e.projectId}:firstSessionShown`:"mushi:firstSessionShown"),w=false;try{w=window.localStorage?.getItem(E)==="1";}catch{}if(!w){let I=setTimeout(()=>{try{window.localStorage?.setItem(E,"1");}catch{}t.onTrigger("first_session",{delayMs:L});},L);r.push(()=>clearTimeout(I));}}if(e.errorBoundary){let v=function(E){ur({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});},L=function(E){let w=E.reason instanceof Error?E.reason.message:String(E.reason);ur({message:w,filename:E.reason instanceof Error?Ui(E.reason.stack):void 0,ignoreErrors:e.ignoreErrors,denyUrls:e.denyUrls,allowUrls:e.allowUrls})||t.onTrigger("error_boundary",{message:w,type:"unhandled_rejection"});};window.addEventListener("error",v),window.addEventListener("unhandledrejection",L),r.push(()=>{window.removeEventListener("error",v),window.removeEventListener("unhandledrejection",L);});}return {destroy(){r.forEach(v=>v());}}}function Fh(t){return t===false?{enabled:false,ignoreUrls:[]}:t&&typeof t=="object"?{enabled:t.enabled!==false,ignoreUrls:t.ignoreUrls??[]}:{enabled:true,ignoreUrls:[]}}function ku(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 Cu="mushi:lastDismiss",pn="mushi:consecDismiss",qi="mushi:lastShown";function hn(t){try{return localStorage.getItem(t)}catch{return null}}function fn(t,e){try{localStorage.setItem(t,e);}catch{}}function Tu(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(f){let x=Date.now();if(parseInt(hn(pn)??"0",10)>=n)return false;let L=hn(Cu);if(L&&x-parseInt(L,10)<r*60*60*1e3)return false;if(i>0&&o===0){let E=hn(qi);if(E&&x-parseInt(E,10)<i)return false}return o>=e||a.has(f)?false:(a.add(f),o++,fn(qi,String(x)),true)}function u(){fn(Cu,String(Date.now()));let f=parseInt(hn(pn)??"0",10);fn(pn,String(f+1));}function p(){fn(pn,"0");}function d(){o=0,a.clear();try{localStorage.removeItem(qi);}catch{}}return {shouldShow:s,recordDismissal:u,recordSubmission:p,reset:d}}var tt="@mushi-mushi/web",xe="1.37.0";function Bu(t,e){if(t.appVersion)return t.appVersion;let r=t.integrations?.vercel?.analyticsId;return r||e?.buildId}var je=null,mn=class{constructor(){}static init(e={}){if(je)return Pt({scope:"mushi",level:"warn",format:"pretty"}).warn("Already initialized \u2014 call destroy() first to reinitialize"),je;if(typeof document>"u"||typeof window>"u")return Ou();let r={...Hn(),...e};if(!r.projectId||!r.apiKey){let n=es();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?Ou():(je=jh(r),je)}static getInstance(){return je}static destroy(){je?.destroy(),je=null;}static diagnose(){return je?.diagnose()??Vi()}};function jh(t){rs(t);let e=ts(t),r=e.projectId,n=()=>ne(r),i=e,o=t.debug??false?Pt({scope:"mushi",level:"debug",format:"pretty"}):Nn,a=null,s=null,u=Qo({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:tt,sdkVersion:xe}),p=null,d=false;function f(){if(!d){d=true,ys({client:u,sdkVersion:xe,reporterToken:ne(e.projectId)??null,projectId:e.projectId,analytics:e.analytics});try{p=Pe({onPush:()=>Kn(),onPop:()=>Kn()});}catch{}}}let x=e.trackSessions,v=x==="on-demand"?Promise.resolve().then(()=>(Iu(),Au)):null,L=v?.then(l=>l.readTabOptIn(e.projectId));function E(l){if(!(d||x===false)){if(!v){f();return}Promise.all([v,L]).then(([c,y])=>{if(d)return;c.journeyRecordingDecision({mode:x,tabOptIn:y===true,window:l,draw:l?c.deviceDraw(e.projectId):1,now:Date.now()})&&f();}).catch(()=>{});}}E(null);let w=ns(e.preFilter),I=us(e.offline),P=Ms({maxBurst:10,refillRate:1,refillIntervalMs:5e3}),R=Yn();_s({client:u,projectId:e.projectId,sdkVersion:xe,config:e.analytics,scrub:l=>R.scrub(l),getSessionId:vt});function m(l){return l.map(c=>{let y={...c};if(typeof c.message=="string"&&(y.message=R.scrub(c.message)),c.data&&typeof c.data=="object"){let A={};for(let[B,N]of Object.entries(c.data))A[B]=typeof N=="string"?R.scrub(N):N;y.data=A;}return y})}function b(l){return l&&l.map(c=>({...c,message:R.scrub(c.message),...c.stack?{stack:R.scrub(c.stack)}:{}}))}function h(l){if(!l)return;let c={};for(let[y,A]of Object.entries(l))c[y]=typeof A=="string"?R.scrub(A):A;return c}let g=null,k=null,M=null,O=null,q=null,Q=null,ee=Bi(),$=null,ve=0,C,Be=`mushi:tester-jwt:${e.projectId}`;function we(){try{return typeof localStorage<"u"?localStorage.getItem(Be):null}catch{return null}}function me(){try{typeof localStorage<"u"&&localStorage.removeItem(Be);}catch{}}async function j(l){let c=await u.getTesterStatus(l);if(!c.ok||!c.data){me();return}let y=c.data;if(!y.is_tester||!y.tester_id){me();return}C.setTesterSession(l,{id:y.tester_id,public_handle:y.public_handle??null,display_name:y.display_name??null});let A=await u.getMyReputation(l);if(A.ok&&A.data){let B=A.data;B.reputation&&C.setTesterReputation(B.reputation);}}function oe(){if(i.capture?.console!==false?g??=Ci():(g?.destroy(),g=null),i.capture?.network!==false){let K={apiEndpoint:Ki(i),ignoreUrls:i.capture?.ignoreUrls,tracePropagation:i.capture?.tracePropagation,sessionId:vt()};k?k.updateOptions(K):k=_i(K);}else k?.destroy(),k=null;if(i.capture?.performance!==false?M??=Di():(M?.destroy(),M=null),i.capture?.screenshot!=="off"){let K={privacy:i.privacy,onFailed:V=>C.setScreenshotError(true,V)};i.capture?.screenshotProvider?O=null:O?O.updateOptions(K):O=Mi(K);}else O=null;!O&&!i.capture?.screenshotProvider&&(S=null),C.setAllowScreenshotRemove(i.privacy?.allowUserRemoveScreenshot!==false),i.capture?.elementSelector!==false?q??=Pi():(q?.deactivate(),q=null,T=null),C.setCaptureAvailability({screenshot:(!!O||!!i.capture?.screenshotProvider)&&i.capture?.screenshot!=="off",element:!!q});let l=i.capture?.discoverInventory,c=l===true?{}:l&&typeof l=="object"?l:null;c!=null&&c.enabled!==false?(Q?.destroy(),Q=Fi({config:c,getRecentNetworkPaths:()=>k?k.getEntries().map(K=>{try{let V=new URL(K.url,typeof window<"u"?window.location.href:"http://localhost");return V.host&&typeof window<"u"&&V.host!==window.location.host?null:V.pathname}catch{return null}}).filter(K=>K!=null&&K.length>0&&K.length<200):[],getUserId:()=>z?.id??null,getSessionId:vt,onEvent:K=>{u.postDiscoveryEvent({...K,sdk_version:xe}).catch(V=>{o.debug("discovery emit failed",{err:String(V)});});}})):(Q?.destroy(),Q=null);let A=i.capture?.replay??"off",B=i.replaySampleRate??1,N=B>=1||Math.random()<B,Z=i.replaysOnErrorSampleRate??0,he=!N&&Z>0&&Math.random()<Z;if((A==="rrweb"||A==="lite")&&(N||he)){let K=++ve;xu({mode:A,loadRrweb:e.capture?.rrweb,redactSelectors:i.privacy?.redactSelectors}).then(V=>{if(K!==ve){V.destroy();return}$?.destroy(),$=V,$.start();});}else ve++,$?.destroy(),$=null;}let Fe=new Map;function J(l,c){Fe.get(l)?.forEach(y=>y({type:l,data:c}));}let S=null,T=null,F=null,H=false,W=true,Re=null,Oe=null,z=null,lt=null,ge={},Ie=null,ie={},te=Ds({max:50});te.add({category:"lifecycle",level:"info",message:"Mushi SDK init",data:{projectId:e.projectId,sdkVersion:xe}});let G=null;G=Qh(te);let We=false,Kt=false,Ke=new Set,Ve=Ya(u);async function yr(){let l=await Ve.getUpdates(n()),c=l.ok?l.data??null:null;if(c)for(let y of Ke)try{y(c);}catch{}return c}function Gi(){C.refreshReporterInboxQuiet(),Ke.size&&yr();}function vr(){Re&&clearInterval(Re),Re=null,Oe&&typeof document<"u"&&document.removeEventListener("visibilitychange",Oe),Oe=null;}function Yi(){if(vr(),!W)return;let l=5*6e4,c=()=>{typeof document<"u"&&document.visibilityState==="hidden"||fi(r)&&Gi();};Re=setInterval(c,l),typeof document<"u"&&(Oe=()=>{document.visibilityState==="visible"&&c();},document.addEventListener("visibilitychange",Oe)),c();}let Vt=null;function Xi(){let l=i.notifications??e.notifications;C.setReporterChannels({email:!!Vt?.emailEnabled&&l?.email!==false,push:!!(Vt?.pushEnabled&&Vt.vapidPublicKey)&&!!l?.webPush,emailPrefill:l?.emailFromIdentity?z?.email??"":""});}let zt=[];function Nu(){if(!fi(r))return;let l=globalThis.requestIdleCallback;if(l?l(()=>{C.preloadViews();},{timeout:8e3}):setTimeout(()=>{C.preloadViews();},3e3),e.notifications?.toast===false||!za(r))return;let c=async()=>{let A=await yr(),B=A&&typeof A.unread_total=="number"&&Array.isArray(A.latest)?A:null;if(B&&!B.unread_total)return;await C.refreshReporterInboxQuiet(),(B?C.showUpdatesFeedToast(B,zt):await C.showUpdatesToast(zt))&&Ga(r);},y=globalThis.requestIdleCallback;y?y(()=>{c();},{timeout:5e3}):setTimeout(()=>{c();},2e3);}async function Uu(l){let c=ne(r),y=await Ve.markReportRead(l,c);if(y.ok)return y.data?.unread_total??null;let A=await u.listNotifications(c,{limit:50});if(!A.ok)return null;let B=(A.data?.notifications??[]).filter(N=>{let Z=N.payload??{};return !N.read_at&&(Z.reportId===l||N.report_id===l)});return await Promise.all(B.map(N=>u.markNotificationRead(String(N.id),c))),null}function Ji(l,c){if(!i.rewards?.enabled)return;let y={client:u,config:i.rewards,projectId:r,userId:l,traits:c,reporterToken:n()};uu(y),i.rewards.showInWidget!==false&&u.getMyPoints(l).then(A=>{if(!A.ok)return;let B=A.data;C.setRewardsState({tier:B.tier?{slug:B.tier.slug??"free",displayName:B.tier.display_name??"Free",pointsThreshold:B.tier.points_threshold??0}:null,nextTier:B.next_tier?{displayName:B.next_tier.display_name??"",pointsThreshold:B.next_tier.points_threshold??0}:null,totalPoints:B.total_points??0,pointsForReport:B.report_submit_pts??50});}).catch(()=>{});}async function Zi(){if(We)return null;Kt=false;let l=i.capture?.screenshotProvider;if(l){We=true;try{let B=await l();if(B?.startsWith("data:image/"))return B;B&&o.warn("screenshotProvider must resolve to a data:image/ URL; ignoring",{prefix:B.slice(0,16)});}catch(B){o.warn("screenshotProvider threw, falling back to built-in capturer",{error:B instanceof Error?B.message:String(B)}),Kt=B instanceof Error&&(B.name==="NotAllowedError"||B.name==="SecurityError"||/permission|denied/i.test(B.message));}finally{We=false;}}if(!O)return null;We=true;let c=C.getIsOpen();c&&C.hidePanel();let y=document.getElementById("mushi-mushi-widget"),A=y?.style.visibility??"";y&&(y.style.visibility="hidden"),await new Promise(B=>{requestAnimationFrame(()=>requestAnimationFrame(()=>B()));});try{return await O.take()}finally{We=false,y&&(y.style.visibility=A),c&&C.showPanel();}}async function Qi(l){let c=i.capture?.screenshot;!(O||i.capture?.screenshotProvider)||c==="off"||S||l==="open"&&c!=="auto"||l==="submit"&&c!=="on-report"&&c!=="auto"||(o.debug("Auto-capturing screenshot",{when:l,mode:c}),S=await Zi(),C.setScreenshotAttached(S!==null),C.setScreenshotPreview(S));}let gn=Dt(r).then(l=>l.slice(0,12)).catch(()=>null);C=new rn(e.widget,{onSubmit:async({category:l,userCategory:c,description:y,intent:A})=>(o.info("Report submitted",{category:l,userCategory:c,intent:A}),F&&Gt?.recordSubmission(),await Qi("submit"),ju(l,y,A,c)),onOpen:()=>{o.debug("Widget opened"),Qi("open"),$?.start(),J("widget:opened");},onBrandFooterImpression:()=>{gn.then(l=>{Lt("loop_impression",{placement:"widget"},l?{reserved:{$ref:l}}:void 0);});},onBrandFooterClick:()=>{gn.then(l=>(Lt("loop_click",{placement:"widget"},l?{reserved:{$ref:l}}:void 0),As()));},onClose:()=>{o.debug("Widget closed"),F&&(Gt?.recordDismissal(),J("proactive:dismissed",{type:F})),S=null,T=null,F=null,J("widget:closed");},onScreenshotRequest:async()=>{if(!(!!O||!!i.capture?.screenshotProvider)||i.capture?.screenshot==="off"){o.warn("Screenshot requested but capture is disabled"),C.setScreenshotError(true,"unsupported");return}if(!We){o.debug("Taking screenshot"),C.setScreenshotCapturing(true);try{S=await Zi();}catch(c){o.warn("Screenshot capture threw",{error:c instanceof Error?c.message:String(c)}),S=null;}C.setScreenshotAttached(S!==null),C.setScreenshotPreview(S),S===null&&C.setScreenshotError(true,Kt?"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(()=>{}),C.setScreenshotCapturing(true);let c=document.getElementById("mushi-mushi-widget");c&&(c.style.visibility="hidden");let y=i.privacy;Promise.resolve().then(()=>(Lu(),Mu)).then(A=>A.grabMaskedTabFrame(l,[Li,"[data-mushi-redact]",...y?.redactSelectors??[],...y?.maskSelectors??[],...y?.blockSelectors??[]]),A=>{throw l.then(B=>B.getTracks().forEach(N=>N.stop()),()=>{}),A}).then(A=>{S=A,C.setScreenshotAttached(true),C.setScreenshotPreview(A);}).catch(A=>{o.warn("Tab capture failed",{error:A instanceof Error?A.name:String(A)}),C.setScreenshotError(true,A instanceof Error&&A.name==="NotAllowedError"?"permission":"error");}).finally(()=>{c&&(c.style.visibility="");});}:void 0,onScreenshotRemove:()=>{o.debug("Screenshot attachment removed"),S=null,C.setScreenshotAttached(false);},onScreenshotAnnotateRequest:async l=>{if(!S||l.childElementCount>0)return;let c;try{let{createScreenshotAnnotation:Z}=await Promise.resolve().then(()=>(Pu(),Du));c=await Z(S,l);}catch(Z){o.warn("Screenshot annotation failed",{error:Z instanceof Error?Z.message:String(Z)});return}let y=document.createElement("div");y.className="mushi-annotate-toolbar";let A=Z=>{(S=c.getDataUrl(),C.setScreenshotAttached(true),C.setScreenshotPreview(S)),c.destroy(),y.remove();},B=[{id:"highlight",label:"\u270F\uFE0F Highlight"},{id:"blur",label:"\u{1F512} Blur"},{id:"arrow",label:"\u2197\uFE0F Arrow"}];for(let Z of B){let he=document.createElement("button");he.type="button",he.className="mushi-attach-btn",he.dataset.tool=Z.id,he.textContent=Z.label,he.addEventListener("click",()=>{c.setTool(Z.id),y.querySelectorAll("button[data-tool]").forEach(K=>K.classList.remove("active")),he.classList.add("active");}),y.appendChild(he);}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",()=>A()),y.appendChild(N),l.insertBefore(y,l.firstChild);},onElementSelectorRequest:async()=>{if(!q||i.capture?.elementSelector===false){o.warn("Element selector requested but it is disabled/unavailable"),C.setElementError(true);return}o.debug("Element selector activated"),C.setElementCapturing(true),C.hidePanel();try{let l=await q.activate();l?(T=l,C.setElementSelected(!0),o.debug("Element selected",{tagName:l.tagName,xpath:l.xpath})):C.setElementCapturing(!1);}catch(l){o.warn("Element selector threw",{error:l instanceof Error?l.message:String(l)}),C.setElementError(true);}finally{C.showPanel();}},async onReporterReportsRequest(){let l=await u.listReporterReports(ne(r));if(!l.ok)throw new Error(l.error?.message??"Could not load reports");return zt=l.data?.reports??[],zt.length&&hi(r),zt},onReporterMarkRead:l=>Uu(l),async onReporterReportRequest(l){let c=await Ve.getReport(l,ne(r));return c.ok&&c.data?{report:c.data.report,timeline:c.data.timeline}:null},async onReporterEmailOptIn(l){let c=await Ve.setPrefs(ne(r),{email:l,channels:{email:true}});if(!c.ok)throw new Error(c.error?.code??"EMAIL_OPT_IN_FAILED")},async onReporterPushSubscribe(){let l=await En.subscribeReporterPush();if(!l.ok)throw new Error(l.reason)},async onReporterCommentsRequest(l){let c=await u.listReporterComments(l,ne(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,ne(r),c);if(!y.ok)throw new Error(y.error?.message??"Could not send reply")},async onReporterFeedback(l,c,y){let A=await u.replyToReporterReport(l,ne(r),y??"",c);if(!A.ok)throw new Error(A.error?.message??"Could not send feedback");return A.data?.feedback??null},async onReporterReopen(l,c){let y=await u.reopenReporterReport(l,ne(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(ne(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,ne(r));if(!c.ok)throw new Error(c.error?.message??"Could not vote");return c.data??{voted:true,action:"added"}},onLeaderboardOpen(){C.setLeaderboard(null,true),cu(10).then(l=>{C.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(){C.setGlobalLeaderboard(null,true);try{let l=we(),c=await u.getPublicLeaderboard(50),A=(c.ok?c.data?.leaderboard??[]:[]).map(B=>({tester_id:B.tester_id,rank:B.rank,public_handle:B.public_handle,display_name:B.display_name,points_30d:B.points_30d,total_points:B.total_points??0,badge:B.badge_slug}));if(C.setGlobalLeaderboard(A,!1),l){let B=await u.getMyReputation(l);if(B.ok&&B.data){let N=B.data;N.reputation&&C.setTesterReputation(N.reputation);}}}catch{C.setGlobalLeaderboard([],false);}},async onCrossAppReportsOpen(){let l=we();if(!l){C.setCrossAppReports([],false);return}try{let c=await u.getCrossAppReports(l),y=c.ok?c.data?.reports??[]:[];C.setCrossAppReports(y,!1);}catch{C.setCrossAppReports([],false);}},onTesterSignOut(){me();},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}}),gn.then(l=>C.setBrandRef(l)),oe(),typeof document<"u"&&(document.readyState==="loading"?document.addEventListener("DOMContentLoaded",()=>C.mount()):C.mount());let eo=we();eo&&j(eo).catch(()=>me());let to=null,Gt=null,re=i.proactive;re&&(re.rageClick!==false||re.longTask!==false||re.apiCascade!==false||re.errorBoundary===true||re.pageDwell||re.firstSession)&&typeof document<"u"&&(Gt=Tu(re?.cooldown),to=_u({onTrigger:(l,c)=>{if(typeof navigator<"u"&&!navigator.onLine){o.debug("Proactive trigger suppressed: offline",{type:l});return}if(!Gt.shouldShow(l)){o.debug("Proactive trigger suppressed by fatigue prevention",{type:l});return}o.info("Proactive trigger fired",{type:l,context:c}),F=l,J("proactive:triggered",{type:l,context:c}),l==="first_session"?C.pulseTrigger?.():C.open();}},{rageClick:re?.rageClick,longTask:re?.longTask,apiCascade:re?.apiCascade,apiEndpoint:Ki(i),errorBoundary:re?.errorBoundary,ignoreErrors:i.ignoreErrors,denyUrls:i.denyUrls,allowUrls:i.allowUrls,pageDwell:re?.pageDwell,firstSession:re?.firstSession,projectId:e.projectId}),o.debug("Proactive triggers enabled",{rageClick:re?.rageClick!==false,longTask:re?.longTask!==false,apiCascade:re?.apiCascade!==false,errorBoundary:re?.errorBoundary===true,pageDwell:!!re?.pageDwell,firstSession:!!re?.firstSession})),I.startAutoSync(u),I.flush(u).then(l=>{l.sent>0&&o.info("Synced offline reports",{sent:l.sent});});function bn(l){if(H=true,W=l.reporterNotificationsEnabled!==false,Vt=l.enabled===false?null:l.reporter??null,Xi(),l.enabled===false){i=e,Yh(t.projectId),oe(),C.updateConfig(i.widget),vr(),o.debug("Runtime SDK config disabled; using bootstrap config",{version:l.version});return}i=Ja(i,l,e),oe(),l.widget&&C.updateConfig(i.widget),W?Yi():vr(),o.debug("Applied runtime SDK config",{version:l.version});}if(Wh(t)){let l=zh(t.projectId);l&&bn(l),u.getSdkConfig(x==="on-demand"?{fresh:true}:void 0).then(c=>{c.ok&&c.data?(Gh(t.projectId,c.data),bn(c.data),c.data.enabled!==false&&E(c.data.journeys??null)):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");qu(),Yi(),Nu(),o.info("Initialized",{projectId:t.projectId});async function qu(){if(i.widget?.outdatedBanner==="off")return;let l=Xh(tt);l&&ro(l);let c=await u.getLatestSdkVersion(tt);!c.ok||!c.data||(Jh(tt,c.data),ro(c.data));}function ro(l){let c=l.latest,y=!!(c&&Zh(xe,c));if(!y&&!l.deprecated)return;let A=l.deprecationMessage??(y?`Update ${tt} to ${c}.`:null);o.warn("Mushi SDK is outdated",{package:tt,current:xe,latest:c,deprecated:l.deprecated,message:A}),da(i.widget?.outdatedBanner,!!i.debug,typeof location>"u"?void 0:location)&&C.setSdkFreshness({latest:c,current:xe,deprecated:l.deprecated,message:A});}async function ju(l,c,y,A){let B=U=>({reportId:null,queuedOffline:false,failureKind:U}),N=w.check(c);if(!N.passed)return o.info("Report blocked by pre-filter",{reason:N.reason}),B("blocked");let Z=t.preFilter?.wasmClassifier;if(Z)try{let U=await Z.classify({description:c,category:l,url:typeof location<"u"?location.href:void 0,hasScreenshot:S!==null,hasSelectedElement:T!==null,hasNetworkErrors:k?.getEntries()?.some(be=>be.status>=400||!!be.error)??!1,hasConsoleErrors:g?.getEntries()?.some(be=>be.level==="error")??!1,proactiveTrigger:F??void 0});if(U.verdict==="block")return o.info("Report blocked by on-device classifier",{modelId:U.modelId,confidence:U.confidence,reason:U.reason}),B("blocked");o.debug("On-device classifier verdict",{...U});}catch(U){o.warn("On-device classifier threw \u2014 falling through to server",{error:U instanceof Error?U.message:String(U)});}if(F!==null&&t.sampleRate!==void 0&&t.sampleRate<1&&(t.sampleRate<=0||Math.random()>t.sampleRate))return o.debug("Report dropped by sampleRate",{sampleRate:t.sampleRate,trigger:F}),B("blocked");if(!P.tryConsume())return o.warn("Report throttled \u2014 rate limit exceeded"),B("throttled");let K=R.scrub(w.truncate(c)),V=t.sentry?Hi(t.sentry):void 0,ze=await ls().catch(()=>null),Ge=i.capture?.console===false?void 0:b(g?.getEntries()),wr=i.capture?.network===false?void 0:k?.getEntries(),oo=m(te.getAll()),so=h(Object.keys(ie).length>0?{...ie}:void 0),ao=V?{...V,...V.breadcrumbs?{breadcrumbs:m(V.breadcrumbs)}:{},...V.tags?{tags:h(V.tags)}:{}}:void 0,uo=S?await Zs(S).catch(()=>null):null,Sr=false;S&&!uo&&(Sr=true,o.warn("Screenshot dropped \u2014 could not compress under wire budget"));let lo=Un(),Wu=await ga(Ie),Me={id:qn(),projectId:t.projectId,category:l,...A?{userCategory:A}:{},description:K,userIntent:y,environment:lo,consoleLogs:Ge,networkLogs:wr,performanceMetrics:i.capture?.performance===false?void 0:M?.getMetrics(),timeline:ee.getEntries({consoleLogs:Ge,networkLogs:wr}),screenshotDataUrl:uo??void 0,selectedElement:T??void 0,...$?{replayEvents:$.flush()}:{},metadata:{...ge,...Wu??{},...z?{user:z}:{},...V?.release?{sentryRelease:V.release}:{}},sessionId:vt(),reporterToken:ne(r),...ze?{fingerprintHash:ze}:{},appVersion:Bu(i,lo),sdkPackage:tt,sdkVersion:xe,proactiveTrigger:F??void 0,...oo.length>0?{breadcrumbs:oo}:{},...so?{tags:so}:{},...ao?{sentryContext:ao}:{},sentryEventId:V?.eventId,sentryReplayId:V?.replayId,createdAt:new Date().toISOString()};if(te.add({category:"lifecycle",level:"info",message:`Mushi report submitting (${l})`,data:{reportId:Me.id,category:l}}),t.integrations?.custom){let U={addMetadata(be,yn){Me.metadata[be]=yn;},setCategory(be){Me.category=be;},setDescription(be){Me.description=be;}};t.integrations.custom(U);}let Y=Me,co=t.beforeSend??t.beforeSendFeedback;if(co)try{let U=await Promise.race([Promise.resolve(co(Me)),new Promise(be=>setTimeout(()=>be(Me),2e3))]);if(U===null)return o.info("Report dropped by beforeSend hook",{reportId:Me.id}),B("blocked");Y=U;}catch(U){o.warn("beforeSend hook threw \u2014 sending unmodified report",{error:U instanceof Error?U.message:String(U)});}if(J("report:submitted",{reportId:Y.id}),typeof navigator<"u"&&!navigator.onLine)return await I.enqueue(Y),o.info("Offline \u2014 report queued",{reportId:Y.id}),J("report:queued",{reportId:Y.id}),{reportId:null,queuedOffline:true,failureKind:"offline"};let X=await u.submitReport(Y);if(!X.ok&&X.error?.code==="PAYLOAD_TOO_LARGE"&&(Array.isArray(Y.replayEvents)&&Y.replayEvents.length>0&&(o.warn("Report too large \u2014 dropping replay buffer and retrying",{reportId:Y.id}),Y={...Y,replayEvents:void 0},X=await u.submitReport(Y)),!X.ok&&X.error?.code==="PAYLOAD_TOO_LARGE"&&Y.screenshotDataUrl&&(o.warn("Report still too large \u2014 dropping screenshot and retrying",{reportId:Y.id}),Sr=true,Y={...Y,screenshotDataUrl:void 0},X=await u.submitReport(Y))),X.ok){if(o.info("Report sent",{reportId:X.data?.reportId}),J("report:sent",{reportId:X.data?.reportId}),hi(r),Gi(),X.data?.cursorAgentId){let U=X.data;J("report:dispatched",{reportId:U.reportId,agentId:U.cursorAgentId,fixId:U.fixId});}te.add({category:"lifecycle",level:"info",message:`Mushi report sent (${X.data?.reportId??Me.id})`}),Wt({action:"report_submit",metadata:{category:l,reportId:X.data?.reportId??Me.id}});try{t.sentry&&X.data?.reportId&&Ni(X.data.reportId);}catch{}}else {if(X.error?.code==="PAYLOAD_TOO_LARGE"||X.error?.code==="SERIALIZE_FAILED")return o.warn("Report exceeds size limit after degradation \u2014 dropping",{reportId:Y.id,error:X.error}),J("report:failed",{reportId:Y.id,error:X.error}),te.add({category:"lifecycle",level:"error",message:`Mushi report dropped \u2014 payload too large (${Y.id})`}),S=null,T=null,F=null,{reportId:null,queuedOffline:false,failureKind:"permanent",screenshotDropped:Sr};{let U=X.error?.code??"",be=U==="HTTP_429"||U.includes("RATE_LIMIT"),yn=U==="HTTP_401"||U.includes("UNAUTHORIZED")||U.includes("INVALID_API_KEY")||U.includes("MISSING_API_KEY"),Ku=U==="HTTP_403"||U.includes("QUOTA")||U.includes("FORBIDDEN")||U==="feature_not_in_plan";if(yn||Ku)return o.warn("Report rejected \u2014 credentials/quota",{reportId:Y.id,error:X.error}),J("report:failed",{reportId:Y.id,error:X.error}),S=null,T=null,F=null,{reportId:null,queuedOffline:false,failureKind:"quota"};if(be)return o.warn("Report rate-limited \u2014 queued for retry",{reportId:Y.id,error:X.error}),await I.enqueue(Y),J("report:failed",{reportId:Y.id,error:X.error}),S=null,T=null,F=null,{reportId:null,queuedOffline:true,failureKind:"rate_limited"};o.warn("Report failed, queuing for retry",{reportId:Y.id,error:X.error}),await I.enqueue(Y),J("report:failed",{reportId:Y.id,error:X.error}),te.add({category:"lifecycle",level:"warning",message:`Mushi report queued for retry (${Y.id})`});}}return S=null,T=null,F=null,X?.ok?{reportId:X.data?.reportId??Me.id,queuedOffline:false,screenshotDropped:Sr}:{reportId:null,queuedOffline:true,failureKind:"retrying"}}let En={report(l){C.open(l);},on(l,c){return Fe.has(l)||Fe.set(l,new Set),Fe.get(l).add(c),()=>Fe.get(l)?.delete(c)},setUser(l){z=l;},setMetadata(l,c){ge[l]=c;},setDiagnosticsProvider(l){Ie=l;},setScreen(l){ee.setScreen(l);},isOpen(){return C.getIsOpen()},open(){C.open();},openWith(l){C.open({category:l});},show(){C.showTrigger();},hide(){C.hideTrigger();},attachTo(l,c){return C.attachTo(l,c)},setTrigger(l){C.setTrigger(l);},openReporter(){C.openReporter();},close(){C.close();},updateConfig(l){bn(l),l.enabled!==false&&E(l.journeys??null);},diagnose(){return Kh({apiEndpoint:Ki(i),widgetMounted:C.getIsMounted(),runtimeConfigLoaded:H,captureScreenshotAvailable:O!==null,captureNetworkIntercepting:k!==null,widgetDiagnostics:C.getWidgetDiagnostics()})},destroy(){to?.destroy(),Gt?.reset(),Is(),C.destroy(),g?.destroy(),k?.destroy(),M?.destroy(),q?.deactivate(),du(),G?.(),G=null,Q?.destroy(),Q=null,ee.destroy(),eu(),$?.destroy(),$=null,I.stopAutoSync(),vr(),p?.(),p=null,vs(),te.clear(),Fe.clear(),je=null,o.debug("Destroyed");},async captureEvent(l){if(!P.tryConsume())return o.warn("captureEvent throttled \u2014 rate limit exceeded"),null;let c=R.scrub(w.truncate(l.description)),y=l.category??"bug",A=t.sentry?Hi(t.sentry):void 0,B=m(te.getAll()),N=h(Object.keys(ie).length===0&&!l.tags?void 0:{...ie,...l.tags??{}}),Z=A?{...A,...A.breadcrumbs?{breadcrumbs:m(A.breadcrumbs)}:{},...A.tags?{tags:h(A.tags)}:{}}:void 0,he=Un(),K={id:qn(),projectId:t.projectId,category:y,description:c,environment:he,timeline:ee.getEntries(),metadata:{...l.metadata??{},...z?{user:z}:{},...l.error?{error:l.error}:{},...l.severity?{severity:l.severity}:{},...l.component?{component:l.component}:{},...l.source?{source:l.source}:{source:"captureEvent"}},...B.length>0?{breadcrumbs:B}:{},...N&&Object.keys(N).length>0?{tags:N}:{},...Z?{sentryContext:Z}:{},sessionId:vt(),reporterToken:ne(r),appVersion:Bu(i,he),sdkPackage:tt,sdkVersion:xe,sentryEventId:A?.eventId,sentryReplayId:A?.replayId,createdAt:new Date().toISOString()},V=K;if(i.beforeSendFeedback)try{let Ge=await Promise.race([Promise.resolve(i.beforeSendFeedback(K)),new Promise(wr=>setTimeout(()=>wr(K),2e3))]);if(Ge===null)return o.info("captureEvent dropped by beforeSendFeedback hook",{reportId:K.id}),null;V=Ge;}catch(Ge){o.warn("captureEvent beforeSendFeedback threw \u2014 sending unmodified report",{error:Ge instanceof Error?Ge.message:String(Ge)});}if(J("report:submitted",{reportId:V.id}),typeof navigator<"u"&&!navigator.onLine)return await I.enqueue(V),J("report:queued",{reportId:V.id}),null;let ze=await u.submitReport(V);if(ze.ok){J("report:sent",{reportId:ze.data?.reportId});try{t.sentry&&ze.data?.reportId&&Ni(ze.data.reportId);}catch{}return ze.data?.reportId??null}return await I.enqueue(V),J("report:failed",{reportId:V.id,error:ze.error}),null},async captureException(l,c){let y=Ps(l),A=typeof c?.metadata?.filename=="string"?c.metadata.filename:Ui(y.stack);if(ur({message:y.message,filename:A,ignoreErrors:i.ignoreErrors,denyUrls:i.denyUrls,allowUrls:i.allowUrls}))return null;te.add({category:"lifecycle",level:"error",message:`Mushi.captureException(${y.name}): ${y.message}`,...y.stack?{data:{stack:y.stack.slice(0,500)}}:{}});let B=c?.description?.trim()||`${y.name}: ${y.message}`||"Uncaught exception";return En.captureEvent({description:B,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!==lt){if(lt=y,z={id:l,...c?.email?{email:c.email}:{},...c?.name?{name:c.name}:{}},C.setIdentifiedUser(z.name||z.email?{name:z.name,email:z.email}:null),Xi(),c)for(let[A,B]of Object.entries(c))A!=="email"&&A!=="name"&&(ge[`user.${A}`]=B);te.add({category:"lifecycle",level:"info",message:`Mushi.identify(${l})`}),Ts(l,c??null),Ji(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=js(a);if(c?.sub){if(z?.id===c.sub){te.add({category:"lifecycle",level:"info",message:"Mushi.identifyWithToken() refreshed"});return}let y=c.sub;Dt(y).then(A=>{z?.id===y&&Vn(A);}).catch(()=>{}),z={id:c.sub,...c.email?{email:c.email}:{},...c.name?{name:c.name}:{}},C.setIdentifiedUser(z.name||z.email?{name:z.name,email:z.email}:null),Ji(z.id,{email:z.email,name:z.name});}te.add({category:"lifecycle",level:"info",message:"Mushi.identifyWithToken()"});}else z=null,lt=null,Vn(null),C.setIdentifiedUser(null),te.add({category:"lifecycle",level:"info",message:"Mushi.identifyWithToken(null)"});},publishPageContext(l){s=l&&l.route?l:null;},openAssistant(){C.openAssistantTab();},addBreadcrumb(l){te.add(l);},getBreadcrumbs(){return te.getAll()},setTag(l,c){typeof l!="string"||l.length===0||(ie[l]=c);},setTags(l){if(!(!l||typeof l!="object"))for(let[c,y]of Object.entries(l))typeof c=="string"&&c.length>0&&(ie[c]=y);},clearTag(l){if(typeof l=="string"&&l.length>0){delete ie[l];return}for(let c of Object.keys(ie))delete ie[c];},async getReputation(){if(!z?.id)return null;let l=await u.getMyPoints(z.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 z?.id?lu(z.id):null},recordActivity(l,c){i.rewards?.enabled&&Wt({action:l,metadata:c});},track(l,c){return Lt(l,c)},setConsent(l){Cs(l);},getAnonymousId(){return ks()},pulseTrigger(){C.pulseTrigger?.();},async listMyReports(){let l=await u.listReporterReports(ne(r));return l.ok?l.data?.reports??[]:[]},async listMyComments(l){let c=await u.listReporterComments(l,ne(r));return c.ok?c.data?.comments??[]:[]},async replyToReport(l,c){let y=await u.replyToReporterReport(l,ne(r),c);return y.ok?y.data?.comment??null:null},async submitFeedbackSignal(l,c,y){let A=await u.replyToReporterReport(l,ne(r),y??"",c);return A.ok?A.data?.feedback??null:null},async reopenReport(l,c){let y=await u.reopenReporterReport(l,ne(r),c);return y.ok?y.data?.outcome??null:null},openMyReports(){C.recorderOpenMyReports();},getReporterUpdates:yr,async markReportRead(l){let c=await Ve.markReportRead(l,n());return c.ok?c.data?.unread_total??0:null},onReporterUpdate(l){return Ke.add(l),yr(),()=>{Ke.delete(l);}},async getNotificationPrefs(){let l=await Ve.getPrefs(n());return l.ok?l.data??null:null},setNotificationPrefs:l=>Ve.setPrefs(n(),l),async subscribeReporterPush(){let l=i.notifications?.webPush,c=Vt?.vapidPublicKey??null;if(l&&!c){let y=await u.getSdkConfig();c=y.ok?y.data?.reporter?.vapidPublicKey??null:null;}return Xa(Ve,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)&&Za(C),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{}Jo(),Zo();});}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 no={on:()=>{},onReporterUpdate:()=>{},isOpen:false,getBreadcrumbs:[],captureEvent:null,captureException:null,getReputation:null,getTier:null,listMyReports:[],listMyComments:[],getHallOfFame:[],replyToReport:null,submitFeedbackSignal:null,reopenReport:null},io=(l,c)=>{let y=c instanceof Error?c.message:String(c);o.debug(`Mushi.${l}() failed (swallowed)`,{error:y});try{te.add({category:"custom",level:"warning",message:`mushi.${l}() threw`,data:{error:y}});}catch{}};return (l=>new Proxy(l,{get(c,y,A){let B=Reflect.get(c,y,A);if(typeof B!="function")return B;let N=String(y),Z=()=>N==="diagnose"?Vi():N in no?no[N]:void 0;return (...he)=>{try{let K=B.apply(c,he);return K&&typeof K.then=="function"?K.catch(V=>(io(N,V),Z())):K}catch(K){return io(N,K),Z()}}}}))(En)}function Ki(t){return t.apiEndpoint??tr}function Wh(t){return t.runtimeConfig!==false}async function Kh(t){let e=await Vh(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:xe,widgetHostPointerSafe:t.widgetDiagnostics?.widgetHostPointerSafe??false,widgetHostBounds:t.widgetDiagnostics?.widgetHostBounds??null,widgetSuppressed:t.widgetDiagnostics?.widgetSuppressed??false,bannerRendered:t.widgetDiagnostics?.bannerRendered??false}}async function Vi(){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:xe,widgetHostPointerSafe:false,widgetHostBounds:null,widgetSuppressed:false,bannerRendered:false}}async function Vh(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}:{},[ar]:"diagnose"})).ok,cspAllowed:!0}}catch{return {reachable:false,cspAllowed:false}}finally{r&&clearTimeout(r);}}function zi(t){return `mushi:sdk-config:${t}`}function Hu(t){return `mushi:sdk-version:${t}`}function zh(t){if(typeof localStorage>"u")return null;try{let e=localStorage.getItem(zi(t));return e?JSON.parse(e).config??null:null}catch{return null}}function Gh(t,e){if(!(typeof localStorage>"u"))try{localStorage.setItem(zi(t),JSON.stringify({cachedAt:Date.now(),config:e}));}catch{}}function Yh(t){if(!(typeof localStorage>"u"))try{localStorage.removeItem(zi(t));}catch{}}function Xh(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 Jh(t,e){if(!(typeof localStorage>"u"))try{localStorage.setItem(Hu(t),JSON.stringify({cachedAt:Date.now(),data:e}));}catch{}}function Zh(t,e){let r=Fu(t),n=Fu(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 Fu(t){return t.split(/[.-]/).map(e=>Number.parseInt(e,10)).filter(e=>Number.isFinite(e))}function Ou(){return {report:()=>{},on:()=>()=>{},setUser:()=>{},setMetadata:()=>{},setDiagnosticsProvider:()=>{},setScreen:()=>{},isOpen:()=>false,open:()=>{},close:()=>{},updateConfig:()=>{},diagnose:Vi,openWith:()=>{},show:()=>{},hide:()=>{},attachTo:()=>()=>{},setTrigger:()=>{},openReporter:()=>{},destroy:()=>{je=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 Qh(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=Pe({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($u).join(" ")});}catch{}return r.apply(this,a)},o=function(...a){try{t.add({category:"console",level:"warning",message:a.map($u).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 $u(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 ef(){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 tf(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 rf(){if(typeof document>"u"||typeof window>"u")return;let t=window;if(t.__mushiLoaderInit)return;let e=ef();if(!e)return;let r=tf(e.dataset);if(r){t.__mushiLoaderInit=true;try{mn.init(r);}catch{}}}rf();
96
+ `,document.body.appendChild(f),f}function E(f,S){let A=document.elementsFromPoint(f,S),$=null;for(let q of A)if(!(q===i||q===n)){if(q.id==="mushi-mushi-widget"||q.closest("#mushi-mushi-widget"))return null;$=q;break}let N=0;for(;$?.shadowRoot&&N<20;){let q=$.shadowRoot.elementFromPoint(f,S);if(!q||q===$)break;$=q,N++;}return $}function _(f){if(!n)return;let S=f.getBoundingClientRect();n.style.left=`${S.left}px`,n.style.top=`${S.top}px`,n.style.width=`${S.width}px`,n.style.height=`${S.height}px`,n.style.display="block";}function b(f){let S=E(f.clientX,f.clientY);if(!S){o=null,n&&(n.style.display="none");return}o=S,_(S);}function y(f){f.preventDefault(),f.stopPropagation();}function k(f){f.preventDefault(),f.stopPropagation();let S=E(f.clientX,f.clientY);S&&R(p(S));}function T(f){f.key==="Escape"&&R(null);}function w(){o?.isConnected&&_(o);}function R(f){m(),s?.(f),s=null;}function C(){return r&&m(),new Promise(f=>{s=f,r=true,n=h(),i=g(),i.addEventListener("mousemove",b),i.addEventListener("click",k),i.addEventListener("pointerdown",y),i.addEventListener("mousedown",y),i.addEventListener("mouseup",y),document.addEventListener("keydown",T,true),window.addEventListener("scroll",w,{capture:true,passive:true});})}function m(){r&&(r=false,o=null,document.removeEventListener("keydown",T,true),window.removeEventListener("scroll",w,{capture:true}),i&&(i.remove(),i=null),n&&(n.remove(),n=null));}return {activate:C,deactivate:m,isActive:()=>r}}var Tu=120;function Hi(){let e=[],t=()=>n("hashchange");n("initial");function r(u){e.push(u),e.length>Tu&&e.shift();}function n(u){typeof location>"u"||r({ts:Date.now(),kind:"route",payload:{source:u,route:pr(`${location.pathname}${location.search}${location.hash}`),href:pr(location.href)}});}function i(u){let d=u.target instanceof Element?u.target:null;if(!d)return;let p=d.closest('button,a,[role="button"],input,textarea,select,[data-mushi-track]')??d;r({ts:Date.now(),kind:"click",payload:{tag:p.tagName.toLowerCase(),id:p.id||void 0,text:nf(p)}});}let o=Be({onPush:()=>n("pushState"),onReplace:()=>n("replaceState"),onPop:()=>n("popstate")}),s=typeof window<"u",a=typeof document<"u";return s&&window.addEventListener("hashchange",t),a&&document.addEventListener("click",i,true),{setScreen(u){r({ts:Date.now(),kind:"screen",payload:u});},getEntries(u={}){return [...e,...(u.consoleLogs??[]).map(p=>({ts:p.timestamp,kind:"log",payload:{level:p.level,message:p.message}})),...(u.networkLogs??[]).map(p=>({ts:p.timestamp,kind:"request",payload:{method:p.method,url:p.url,status:p.status,duration:p.duration,error:p.error}}))].sort((p,h)=>p.ts-h.ts).slice(-Tu)},clear(){e.length=0;},destroy(){o(),s&&window.removeEventListener("hashchange",t),a&&document.removeEventListener("click",i,true);}}}function nf(e){let t=(e.textContent??"").replace(/\s+/g," ").trim();return t?t.slice(0,80):void 0}var of=6e4,sf=/^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i,af=/^[0-9a-f]{20,}$/i,uf=/^\d+$/,lf=/^[a-z0-9]{16,}$/i;function cf(e){return e.length===0?e:sf.test(e)||af.test(e)||uf.test(e)||lf.test(e)&&/\d/.test(e)?"[id]":e}function df(e,t,r){if(t.startsWith("#/")){let n=t.slice(1),i=n.indexOf("?"),o=i===-1?n:n.slice(0,i),s=r?.map(a=>a.startsWith("/#/")?a.slice(2):a);return "/#"+Au(o,s)}return Au(e,r)}function Au(e,t){let r=e.length>1&&e.endsWith("/")?e.slice(0,-1):e;if(t?.length){let n=pf(r,t);if(n)return n}return "/"+r.split("/").filter(n=>n.length>0).map(cf).join("/")}function pf(e,t){let r=e.split("/").filter(i=>i.length>0),n=[...t].sort((i,o)=>o.split("/").length-i.split("/").length);for(let i of n){let o=i.split("/").filter(a=>a.length>0);if(o.length!==r.length)continue;let s=true;for(let a=0;a<o.length;a++){let u=o[a],d=r[a];if(!(u.startsWith("[")&&u.endsWith("]"))&&!u.startsWith(":")&&u!==d){s=false;break}}if(s)return "/"+o.join("/")}return null}function hf(){if(typeof document>"u")return [];let e=new Set,t=document.querySelectorAll("[data-testid]");for(let r of Array.from(t)){let n=r.getAttribute("data-testid");n&&n.length>0&&n.length<120&&e.add(n);}return Array.from(e).sort()}function ff(){if(typeof window>"u")return [];try{let e=new Set,t=i=>{new URLSearchParams(i).forEach((o,s)=>e.add(s));};t(window.location.search);let r=window.location.hash,n=r.indexOf("?");return r.startsWith("#/")&&n!==-1&&t(r.slice(n+1)),Array.from(e).sort()}catch{return []}}function mf(){if(typeof document>"u")return null;let e=i=>(i??"").replace(/\s+/g," ").trim().slice(0,200),t=e(document.querySelector("h1")?.textContent);if(t)return t;let r=e(document.title);return r||e(document.querySelector("main")?.textContent)||null}async function gf(e){if(!e||typeof crypto>"u"||!crypto.subtle)return null;try{let t=new TextEncoder().encode(e),r=await crypto.subtle.digest("SHA-256",t),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 Ni(e){let{config:t,getRecentNetworkPaths:r,getUserId:n,getSessionId:i,onEvent:o}=e,s=t.throttleMs??of,a=t.captureDomSummary!==false,u=t.userIdSource??"auto",d=new Map,p=null,h=null;async function g(){if(typeof window>"u")return;let k=df(window.location.pathname,window.location.hash,t.routeTemplates),T=Date.now(),w=d.get(k)??0;if(T-w<s)return;d.set(k,T);let R=null;u==="auto"?R=n()??i():u==="session-only"&&(R=i());let C={route:k,page_title:typeof document<"u"&&(document.title||"").slice(0,300)||null,dom_summary:a?mf():null,testids:hf(),network_paths:r().slice(-50),query_param_keys:ff(),user_id_hash:await gf(R),observed_at:new Date().toISOString()};o(C);}function E(){h||(h=setTimeout(()=>{h=null,g();},100));}function _(){if(typeof window>"u")return;let k=window.location.hash.startsWith("#/")?window.location.hash:"",T=window.location.pathname+window.location.search+k;T!==p&&(p=T,E());}if(typeof window>"u")return {destroy:()=>{},flushNow:()=>{}};let b=()=>_(),y=Be({onPush:b,onReplace:b,onPop:b});return window.addEventListener("hashchange",b),E(),{destroy(){y(),window.removeEventListener("hashchange",b),h&&(clearTimeout(h),h=null),d.clear();},flushNow(){d.clear(),g();}}}var bf=3e4,qi=400,Ef=4,yf=2;function Iu(e,t,r){let n=u=>u.timestamp,i=u=>u.type===yf,o=u=>u.type===Ef,s=Date.now()-t,a=0;for(let u=0;u<e.length;u++){let d=n(e[u]);if(typeof d=="number"&&d>=s)break;i(e[u])&&(a=o(e[u-1])?u-1:u);}if(e.length-a>r){for(let u=a+1;u<e.length;u++)if(i(e[u])&&e.length-u<=r){a=o(e[u-1])?u-1:u;break}}a>0&&e.splice(0,a);}function Mu(e){let t=[],r=false,n=o=>{if(!r)return;let s=o.target instanceof Element?o.target:null,a=s?.tagName?.toLowerCase()??"unknown",u=s?.closest("[data-testid]")?.getAttribute("data-testid")??void 0;t.push({type:"lite_click",timestamp:Date.now(),data:{tag:a,testId:u}}),t.length>qi&&t.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()-e;return t.filter(s=>s.timestamp>=o)},destroy(){i(),t.length=0;}}}var vf=['input[type="password"]',"[data-mushi-redact]"],wf="rrweb",Ue=null,Lu=false;function Ui(e){if(!e||typeof e!="object")return null;let t=e;return typeof t.record=="function"?t:t.default&&typeof t.default.record=="function"?t.default:null}async function Sf(e){if(Ue)return Ue;if(typeof e=="function")try{if(Ue=Ui(await e()),Ue)return Ue}catch{}if(Ue=Ui(globalThis.rrweb),Ue)return Ue;try{let t=globalThis.__MUSHI_RRWEB_SPECIFIER__||wf;return Ue=Ui(await import(t)),Ue}catch{return null}}async function Du(e){let t=e.maxDurationMs??bf;if(e.mode==="lite")return Mu(t);let r=await Sf(e.loadRrweb);if(!r?.record)return Lu||(Lu=true,Bt({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') }.")),Mu(t);let n=r.record,i=[],o=null,s=false,a=[...new Set([...vf,...e.redactSelectors??[]])],u=()=>{o?.(),o=null,s=false;};return {start(){s||(s=true,o=n({emit(d){i.push(d),Iu(i,t,qi);},maskAllInputs:true,maskTextSelector:"*",blockSelector:a.join(","),checkoutEveryNms:t,sampling:{mousemove:false,mouseInteraction:true,scroll:150,media:800}})??null);},stop:u,flush(){return Iu(i,t,qi),[...i]},destroy(){u(),i.length=0;}}}En();function Pu(){try{let e=globalThis;return e.Sentry?e.Sentry:void 0}catch{return}}function xf(){try{return globalThis.__SENTRY_REPLAY__}catch{return}}function Rf(){try{let e=globalThis,t=e.__SENTRY__,r=e.Sentry;return t?.version==="9"||r&&typeof r.lastEventId=="function"?t?.version==="9"?"v9":"v8":t?.version==="8"?"v8":r&&typeof r.getCurrentHub=="function"?"v7":"unknown"}catch{return "unknown"}}function ji(e,t={}){let r=Math.max(0,t.breadcrumbsLimit??30),n={},i=Pu();if(!i)return n;n.sdk=Rf();try{let a=i;if(typeof a.lastEventId=="function")n.eventId=a.lastEventId()??void 0;else {let d=i.getCurrentHub?.()?.getScope?.();n.eventId=d?.getLastEventId?.()??void 0;}}catch{}let o;try{let a=i;typeof a.getCurrentScope=="function"?o=a.getCurrentScope():o=i.getCurrentHub?.()?.getScope?.();}catch{}if(o){try{let a=o.getUser?.();a&&(n.user={id:typeof a.id=="string"?a.id:void 0,email:typeof a.email=="string"?a.email:void 0,username:typeof a.username=="string"?a.username:void 0,ip_address:typeof a.ip_address=="string"?a.ip_address:void 0});}catch{}try{let a=o.getTags?.();if(a&&typeof a=="object"){let u={};for(let[d,p]of Object.entries(a))(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 a=o.getBreadcrumbs?.()??o._breadcrumbs??[];if(Array.isArray(a)&&a.length>0){let u=a.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 a=i,u;if(typeof a.getActiveSpan=="function"?u=a.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 s;try{let a=i;typeof a.getClient=="function"?s=a.getClient():s=i.getCurrentHub?.()?.getClient?.();}catch{}if(s){try{let a=s.getOptions?.();a?.release&&(n.release=a.release),a?.environment&&(n.environment=a.environment);}catch{}try{let a=s.getDsn?.();if(a?.host&&a?.projectId&&n.eventId){let u=a.host.replace(/^o\d+\./,"");n.issueUrl=`https://${u}/issues/?query=${encodeURIComponent(n.eventId)}`;}}catch{}}try{let u=i.getReplay?.()??xf();n.replayId=u?.getReplayId?.()??void 0;}catch{}return n}function Wi(e,t={}){let r=Pu();if(r){try{let n=r;typeof n.setTag=="function"&&(n.setTag("mushi.report_id",e),t.reportUrl&&n.setTag("mushi.report_url",t.reportUrl)),typeof n.setContext=="function"&&n.setContext("mushi_report",{id:e,...t.reportUrl?{url:t.reportUrl}:{},captured_at:new Date().toISOString()}),typeof n.addBreadcrumb=="function"&&n.addBreadcrumb({category:"mushi",type:"info",level:"info",message:`Mushi report submitted (${e})`,data:{report_id:e,...t.reportUrl?{url:t.reportUrl}:{}}});}catch{}try{let i=r.getCurrentHub?.()?.getScope?.();i&&(i.setTag?.("mushi.report_id",e),t.reportUrl&&i.setTag?.("mushi.report_url",t.reportUrl),i.setContext?.("mushi_report",{id:e,...t.reportUrl?{url:t.reportUrl}:{}}));}catch{}}}var kf=["/login","/logout","/signup","/sso/*","/auth/*"],_f=/(?:^\s*at\s+(?:.*?\()?|@)([a-z][a-z0-9+.-]*:\/\/[^\s()]*?)(?::\d+){1,2}\)?\s*$/i;function Ki(e){if(!(typeof e!="string"||e.length===0))for(let t of e.split(`
97
+ `)){let r=_f.exec(t);if(r)return r[1]}}function $u(e,t={}){let r=[];if(t.rageClick!==false){let b=function(y){let k=Date.now();if(y.target===_){if(E.push(k),E=E.filter(T=>k-T<500),E.length>=3){let T=y.target;e.onTrigger("rage_click",{element:T.tagName,id:T.id,text:T.textContent?.slice(0,50)}),E=[];}}else _=y.target,E=[k];};let E=[],_=null;document.addEventListener("click",b,true),r.push(()=>document.removeEventListener("click",b,true));}if(t.longTask!==false&&typeof PerformanceObserver<"u")try{let E=new PerformanceObserver(_=>{for(let b of _.getEntries())b.duration>5e3&&e.onTrigger("long_task",{duration:Math.round(b.duration),startTime:Math.round(b.startTime)});});E.observe({entryTypes:["longtask"]}),r.push(()=>E.disconnect());}catch{}let n=Cf(t.apiCascade);if(n.enabled){let E=[],_=globalThis.fetch;globalThis.fetch=async function(...b){let[y,k]=b,T=mn(y),w=!!gn(y,k)||Sr(T,{apiEndpoint:t.apiEndpoint,ignoreUrls:n.ignoreUrls});try{let R=await _.apply(this,b);return !w&&!R.ok&&R.status>=400&&Bu(E,e),R}catch(R){throw w||Bu(E,e),R}},r.push(()=>{globalThis.fetch=_;});}if((t.pageDwell===true||typeof t.pageDwell=="object"&&t.pageDwell!==null)&&typeof window<"u"){let T=function(f){return b.some(S=>S.endsWith("/*")?f.startsWith(S.slice(0,-2)):f===S||f.startsWith(S+"/"))},w=function(){let f=window.location?.pathname??"";T(f)||e.onTrigger("page_dwell",{thresholdMs:_,path:f});},R=function(){y&&clearTimeout(y);let f=window.location?.pathname??"";T(f)||(y=setTimeout(w,_));},C=function(){let f=window.location?.pathname??"";f!==k&&(k=f,R());};let E=typeof t.pageDwell=="object"?t.pageDwell??{}:{},_=E.thresholdMs||300*1e3,b=E.excludeRoutes!==void 0?E.excludeRoutes:kf,y=null,k=window.location?.pathname??"";R();let m=Be({onPush:C,onReplace:C,onPop:C});r.push(()=>{y&&clearTimeout(y),m();});}if((t.firstSession===true||typeof t.firstSession=="object"&&t.firstSession!==null)&&typeof window<"u"){let E=typeof t.firstSession=="object"?t.firstSession??{}:{},_=E.delayMs??45*1e3,b=E.storageKey??(t.projectId?`mushi:${t.projectId}:firstSessionShown`:"mushi:firstSessionShown"),y=false;try{y=window.localStorage?.getItem(b)==="1";}catch{}if(!y){let k=setTimeout(()=>{try{window.localStorage?.setItem(b,"1");}catch{}e.onTrigger("first_session",{delayMs:_});},_);r.push(()=>clearTimeout(k));}}if(t.errorBoundary){let E=function(b){dr({message:b.message,filename:b.filename,ignoreErrors:t.ignoreErrors,denyUrls:t.denyUrls,allowUrls:t.allowUrls})||e.onTrigger("error_boundary",{message:b.message,filename:b.filename,lineno:b.lineno,colno:b.colno});},_=function(b){let y=b.reason instanceof Error?b.reason.message:String(b.reason);dr({message:y,filename:b.reason instanceof Error?Ki(b.reason.stack):void 0,ignoreErrors:t.ignoreErrors,denyUrls:t.denyUrls,allowUrls:t.allowUrls})||e.onTrigger("error_boundary",{message:y,type:"unhandled_rejection"});};window.addEventListener("error",E),window.addEventListener("unhandledrejection",_),r.push(()=>{window.removeEventListener("error",E),window.removeEventListener("unhandledrejection",_);});}return {destroy(){r.forEach(E=>E());}}}function Cf(e){return e===false?{enabled:false,ignoreUrls:[]}:e&&typeof e=="object"?{enabled:e.enabled!==false,ignoreUrls:e.ignoreUrls??[]}:{enabled:true,ignoreUrls:[]}}function Bu(e,t){let r=Date.now();e.push(r);let n=e.filter(i=>r-i<1e4);n.length>=3&&(t.onTrigger("api_cascade",{failureCount:n.length,windowMs:1e4}),e.length=0);}var Fu="mushi:lastDismiss",yn="mushi:consecDismiss",Vi="mushi:lastShown";function vn(e){try{return localStorage.getItem(e)}catch{return null}}function wn(e,t){try{localStorage.setItem(e,t);}catch{}}function Ou(e={}){let t=e.maxProactivePerSession??2,r=e.dismissCooldownHours??24,n=e.suppressAfterDismissals??3,i=(e.reshowCooldownMinutes??30)*60*1e3,o=0,s=new Set;function a(h){let g=Date.now();if(parseInt(vn(yn)??"0",10)>=n)return false;let _=vn(Fu);if(_&&g-parseInt(_,10)<r*60*60*1e3)return false;if(i>0&&o===0){let b=vn(Vi);if(b&&g-parseInt(b,10)<i)return false}return o>=t||s.has(h)?false:(s.add(h),o++,wn(Vi,String(g)),true)}function u(){wn(Fu,String(Date.now()));let h=parseInt(vn(yn)??"0",10);wn(yn,String(h+1));}function d(){wn(yn,"0");}function p(){o=0,s.clear();try{localStorage.removeItem(Vi);}catch{}}return {shouldShow:a,recordDismissal:u,recordSubmission:d,reset:p}}var Ze="@mushi-mushi/web",we="1.38.0";function Ku(e,t){if(e.appVersion)return e.appVersion;let r=e.integrations?.vercel?.analyticsId;return r||t?.buildId}var qe=null,Sn=class{constructor(){}static init(t={}){if(qe)return Bt({scope:"mushi",level:"warn",format:"pretty"}).warn("Already initialized \u2014 call destroy() first to reinitialize"),qe;if(typeof document>"u"||typeof window>"u")return zu();let r={...zn(),...t};if(!r.projectId||!r.apiKey){let n=ns();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?zu():(qe=Pf(r),qe)}static getInstance(){return qe}static destroy(){qe?.destroy(),qe=null;}static diagnose(){return qe?.diagnose()??Xi()}};function Pf(e){os(e);let t=is(e),r=t.projectId,n=()=>re(r),i=t,o=e.debug??false?Bt({scope:"mushi",level:"debug",format:"pretty"}):Gn,s=null,a=null,u=rs({projectId:t.projectId,apiKey:t.apiKey,...t.apiEndpoint?{apiEndpoint:t.apiEndpoint}:{},...typeof t.timeout=="number"?{timeout:t.timeout}:{},...typeof t.maxRetries=="number"?{maxRetries:t.maxRetries}:{},...t.circuitBreaker?{circuitBreaker:t.circuitBreaker}:{},...t.tunnel?{tunnel:t.tunnel}:{},getUserToken:()=>s,sdkPackage:Ze,sdkVersion:we}),d=null,p=false;function h(){if(!p){p=true,Ss({client:u,sdkVersion:we,reporterToken:re(t.projectId)??null,projectId:t.projectId,analytics:t.analytics});try{d=Be({onPush:()=>Qn(),onPop:()=>Qn()});}catch{}}}let g=t.trackSessions,E=g==="on-demand"?Promise.resolve().then(()=>(Nu(),Hu)):null,_=E?.then(l=>l.readTabOptIn(t.projectId));function b(l){if(!(p||g===false)){if(!E){h();return}Promise.all([E,_]).then(([c,v])=>{if(p)return;c.journeyRecordingDecision({mode:g,tabOptIn:v===true,window:l,draw:l?c.deviceDraw(t.projectId):1,now:Date.now()})&&h();}).catch(()=>{});}}b(null);let y=ss(t.preFilter),k=ds(t.offline),T=Ps({maxBurst:10,refillRate:1,refillIntervalMs:5e3}),w=ni();As({client:u,projectId:t.projectId,sdkVersion:we,config:t.analytics,scrub:l=>w.scrub(l),getSessionId:wt});function R(l){return l.map(c=>{let v={...c};if(typeof c.message=="string"&&(v.message=w.scrub(c.message)),c.data&&typeof c.data=="object"){let L={};for(let[P,j]of Object.entries(c.data))L[P]=typeof j=="string"?w.scrub(j):j;v.data=L;}return v})}function C(l){return l&&l.map(c=>({...c,message:w.scrub(c.message),...c.stack?{stack:w.scrub(c.stack)}:{}}))}function m(l){if(!l)return;let c={};for(let[v,L]of Object.entries(l))c[v]=typeof L=="string"?w.scrub(L):L;return c}let f=null,S=null,A=null,$=null,N=null,q=null,ee=Hi(),U=null,Ee=0,I,$e=`mushi:tester-jwt:${t.projectId}`;function ye(){try{return typeof localStorage<"u"?localStorage.getItem($e):null}catch{return null}}function he(){try{typeof localStorage<"u"&&localStorage.removeItem($e);}catch{}}async function V(l){let c=await u.getTesterStatus(l);if(!c.ok||!c.data){he();return}let v=c.data;if(!v.is_tester||!v.tester_id){he();return}I.setTesterSession(l,{id:v.tester_id,public_handle:v.public_handle??null,display_name:v.display_name??null});let L=await u.getMyReputation(l);if(L.ok&&L.data){let P=L.data;P.reputation&&I.setTesterReputation(P.reputation);}}function ne(){if(i.capture?.console!==false?f??=Pi():(f?.destroy(),f=null),i.capture?.network!==false){let W={apiEndpoint:Yi(i),ignoreUrls:i.capture?.ignoreUrls,tracePropagation:i.capture?.tracePropagation,sessionId:wt()};S?S.updateOptions(W):S=Di(W);}else S?.destroy(),S=null;if(i.capture?.performance!==false?A??=Fi():(A?.destroy(),A=null),i.capture?.screenshot!=="off"){let W={privacy:i.privacy,onFailed:G=>I.setScreenshotError(true,G)};i.capture?.screenshotProvider?$=null:$?$.updateOptions(W):$=$i(W);}else $=null;!$&&!i.capture?.screenshotProvider&&(x=null),I.setAllowScreenshotRemove(i.privacy?.allowUserRemoveScreenshot!==false),i.capture?.elementSelector!==false?N??=Oi(()=>{let W=i.privacy;return [Vt,...W?.redactSelectors??["[data-mushi-redact]"],...W?.maskSelectors??[],...W?.blockSelectors??[]].join(",")},W=>w.scrub(W)):(N?.deactivate(),N=null,F=null),I.setCaptureAvailability({screenshot:(!!$||!!i.capture?.screenshotProvider)&&i.capture?.screenshot!=="off",element:!!N});let l=i.capture?.discoverInventory,c=l===true?{}:l&&typeof l=="object"?l:null;c!=null&&c.enabled!==false?(q?.destroy(),q=Ni({config:c,getRecentNetworkPaths:()=>S?S.getEntries().map(W=>{try{let G=new URL(W.url,typeof window<"u"?window.location.href:"http://localhost");return G.host&&typeof window<"u"&&G.host!==window.location.host?null:G.pathname}catch{return null}}).filter(W=>W!=null&&W.length>0&&W.length<200):[],getUserId:()=>z?.id??null,getSessionId:wt,onEvent:W=>{u.postDiscoveryEvent({...W,sdk_version:we}).catch(G=>{o.debug("discovery emit failed",{err:String(G)});});}})):(q?.destroy(),q=null);let L=i.capture?.replay??"off",P=i.replaySampleRate??1,j=P>=1||Math.random()<P,Q=i.replaysOnErrorSampleRate??0,de=!j&&Q>0&&Math.random()<Q;if((L==="rrweb"||L==="lite")&&(j||de)){let W=++Ee;Du({mode:L,loadRrweb:t.capture?.rrweb,redactSelectors:i.privacy?.redactSelectors}).then(G=>{if(W!==Ee){G.destroy();return}U?.destroy(),U=G,U.start();});}else Ee++,U?.destroy(),U=null;}let Fe=new Map;function Z(l,c){Fe.get(l)?.forEach(v=>v({type:l,data:c}));}let x=null,D=false,F=null,O=null,Y=false,Me=true,je=null,Qe=null,z=null,fe=null,Se={},xe=null,Re={},H=$s({max:50});H.add({category:"lifecycle",level:"info",message:"Mushi SDK init",data:{projectId:t.projectId,sdkVersion:we}});let _t=null;_t=Wf(H);let et=false,tt=false,zt=new Set,rt=Za(u);async function xr(){let l=await rt.getUpdates(n()),c=l.ok?l.data??null:null;if(c)for(let v of zt)try{v(c);}catch{}return c}function Zi(){I.refreshReporterInboxQuiet(),zt.size&&xr();}function Rr(){je&&clearInterval(je),je=null,Qe&&typeof document<"u"&&document.removeEventListener("visibilitychange",Qe),Qe=null;}function Qi(){if(Rr(),!Me)return;let l=5*6e4,c=()=>{typeof document<"u"&&document.visibilityState==="hidden"||wi(r)&&Zi();};je=setInterval(c,l),typeof document<"u"&&(Qe=()=>{document.visibilityState==="visible"&&c();},document.addEventListener("visibilitychange",Qe)),c();}let Gt=null;function eo(){let l=i.notifications??t.notifications;I.setReporterChannels({email:!!Gt?.emailEnabled&&l?.email!==false,push:!!(Gt?.pushEnabled&&Gt.vapidPublicKey)&&!!l?.webPush,emailPrefill:l?.emailFromIdentity?z?.email??"":""});}let Yt=[];function Xu(){if(!wi(r))return;let l=globalThis.requestIdleCallback;if(l?l(()=>{I.preloadViews();},{timeout:8e3}):setTimeout(()=>{I.preloadViews();},3e3),t.notifications?.toast===false||!Xa(r))return;let c=async()=>{let L=await xr(),P=L&&typeof L.unread_total=="number"&&Array.isArray(L.latest)?L:null;if(P&&!P.unread_total)return;await I.refreshReporterInboxQuiet(),(P?I.showUpdatesFeedToast(P,Yt):await I.showUpdatesToast(Yt))&&Ja(r);},v=globalThis.requestIdleCallback;v?v(()=>{c();},{timeout:5e3}):setTimeout(()=>{c();},2e3);}async function Ju(l){let c=re(r),v=await rt.markReportRead(l,c);if(v.ok)return v.data?.unread_total??null;let L=await u.listNotifications(c,{limit:50});if(!L.ok)return null;let P=(L.data?.notifications??[]).filter(j=>{let Q=j.payload??{};return !j.read_at&&(Q.reportId===l||j.report_id===l)});return await Promise.all(P.map(j=>u.markNotificationRead(String(j.id),c))),null}function to(l,c){if(!i.rewards?.enabled)return;let v={client:u,config:i.rewards,projectId:r,userId:l,traits:c,reporterToken:n()};du(v),i.rewards.showInWidget!==false&&u.getMyPoints(l).then(L=>{if(!L.ok)return;let P=L.data;I.setRewardsState({tier:P.tier?{slug:P.tier.slug??"free",displayName:P.tier.display_name??"Free",pointsThreshold:P.tier.points_threshold??0}:null,nextTier:P.next_tier?{displayName:P.next_tier.display_name??"",pointsThreshold:P.next_tier.points_threshold??0}:null,totalPoints:P.total_points??0,pointsForReport:P.report_submit_pts??50});}).catch(()=>{});}async function xn(){if(et)return null;tt=false;let l=i.capture?.screenshotProvider;if(l){et=true;try{let P=await l();if(P?.startsWith("data:image/"))return P;P&&o.warn("screenshotProvider must resolve to a data:image/ URL; ignoring",{prefix:P.slice(0,16)});}catch(P){o.warn("screenshotProvider threw, falling back to built-in capturer",{error:P instanceof Error?P.message:String(P)}),tt=P instanceof Error&&(P.name==="NotAllowedError"||P.name==="SecurityError"||/permission|denied/i.test(P.message));}finally{et=false;}}if(!$)return null;et=true;let c=I.getIsOpen();c&&I.hidePanel();let v=document.getElementById("mushi-mushi-widget"),L=v?.style.visibility??"";v&&(v.style.visibility="hidden"),await new Promise(P=>{requestAnimationFrame(()=>requestAnimationFrame(()=>P()));});try{return await $.take()}finally{et=false,v&&(v.style.visibility=L),c&&I.showPanel();}}function ro(){let l=i.capture?.screenshot;return (!!$||!!i.capture?.screenshotProvider)&&(l==="auto"||l==="on-report")&&!x&&!D}let Xt=null,kr=0;function Zu(){if(i.capture?.screenshot!=="auto"||!ro())return;o.debug("Auto-capturing screenshot on open");let l=kr,c=(async()=>{let v=await xn().catch(()=>null);l!==kr||x||D||!v||(x=v,I.setScreenshotAttached(true),I.setScreenshotPreview(v));})();Xt=c,c.finally(()=>{Xt===c&&(Xt=null);});}async function Qu(){if(Xt&&(await Xt,x))return true;if(!ro())return false;o.debug("Capturing screenshot for review before send",{mode:i.capture?.screenshot});let l=await xn().catch(()=>null);return l?(x=l,I.setScreenshotAttached(true),I.setScreenshotPreview(l),true):false}let Rn=Pt(r).then(l=>l.slice(0,12)).catch(()=>null);I=new un(t.widget,{onSubmit:async({category:l,userCategory:c,description:v,intent:L})=>{o.info("Report submitted",{category:l,userCategory:c,intent:L}),O&&Jt?.recordSubmission();let P=await tl(l,v,L,c);return hr(P)||(D=false),P},onBeforeSubmit:()=>Qu(),onOpen:()=>{o.debug("Widget opened"),kr++,D=false,Zu(),U?.start(),Z("widget:opened");},onBrandFooterImpression:()=>{Rn.then(l=>{Dt("loop_impression",{placement:"widget"},l?{reserved:{$ref:l}}:void 0);});},onBrandFooterClick:()=>{Rn.then(l=>(Dt("loop_click",{placement:"widget"},l?{reserved:{$ref:l}}:void 0),Ls()));},onClose:()=>{o.debug("Widget closed"),O&&(Jt?.recordDismissal(),Z("proactive:dismissed",{type:O})),kr++,x=null,D=false,F=null,O=null,Z("widget:closed");},onScreenshotRequest:async()=>{if(!(!!$||!!i.capture?.screenshotProvider)||i.capture?.screenshot==="off"){o.warn("Screenshot requested but capture is disabled"),I.setScreenshotError(true,"unsupported");return}if(!et){o.debug("Taking screenshot"),I.setScreenshotCapturing(true);try{x=await xn();}catch(c){o.warn("Screenshot capture threw",{error:c instanceof Error?c.message:String(c)}),x=null;}I.setScreenshotAttached(x!==null),I.setScreenshotPreview(x),x===null&&I.setScreenshotError(true,tt?"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(()=>{}),I.setScreenshotCapturing(true);let c=document.getElementById("mushi-mushi-widget");c&&(c.style.visibility="hidden");let v=i.privacy;Promise.resolve().then(()=>(qu(),Uu)).then(L=>L.grabMaskedTabFrame(l,[Vt,"[data-mushi-redact]",...v?.redactSelectors??[],...v?.maskSelectors??[],...v?.blockSelectors??[]]),L=>{throw l.then(P=>P.getTracks().forEach(j=>j.stop()),()=>{}),L}).then(L=>{x=L,I.setScreenshotAttached(true),I.setScreenshotPreview(L);}).catch(L=>{o.warn("Tab capture failed",{error:L instanceof Error?L.name:String(L)}),I.setScreenshotError(true,L instanceof Error&&L.name==="NotAllowedError"?"permission":"error");}).finally(()=>{c&&(c.style.visibility="");});}:void 0,onScreenshotRemove:()=>{o.debug("Screenshot attachment removed"),x=null,D=true,I.setScreenshotAttached(false);},onScreenshotAnnotateRequest:async l=>{if(!x||l.childElementCount>0)return;let c;try{let{createScreenshotAnnotation:Q}=await Promise.resolve().then(()=>(Wu(),ju));c=await Q(x,l);}catch(Q){o.warn("Screenshot annotation failed",{error:Q instanceof Error?Q.message:String(Q)});return}let v=document.createElement("div");v.className="mushi-annotate-toolbar";let L=Q=>{(x=c.getDataUrl(),I.setScreenshotAttached(true),I.setScreenshotPreview(x)),c.destroy(),v.remove();},P=[{id:"highlight",label:"\u270F\uFE0F Highlight"},{id:"blur",label:"\u{1F512} Blur"},{id:"arrow",label:"\u2197\uFE0F Arrow"}];for(let Q of P){let de=document.createElement("button");de.type="button",de.className="mushi-attach-btn",de.dataset.tool=Q.id,de.textContent=Q.label,de.addEventListener("click",()=>{c.setTool(Q.id),v.querySelectorAll("button[data-tool]").forEach(W=>W.classList.remove("active")),de.classList.add("active");}),v.appendChild(de);}v.querySelector('button[data-tool="highlight"]')?.classList.add("active");let j=document.createElement("button");j.type="button",j.className="mushi-attach-btn",j.textContent="\u2713 Done",j.addEventListener("click",()=>L()),v.appendChild(j),l.insertBefore(v,l.firstChild);},onElementSelectorRequest:async()=>{if(!N||i.capture?.elementSelector===false){o.warn("Element selector requested but it is disabled/unavailable"),I.setElementError(true);return}o.debug("Element selector activated"),I.setElementCapturing(true),I.hidePanel();try{let l=await N.activate();l?(F=l,I.setElementSelected(!0),o.debug("Element selected",{tagName:l.tagName,xpath:l.xpath})):I.setElementCapturing(!1);}catch(l){o.warn("Element selector threw",{error:l instanceof Error?l.message:String(l)}),I.setElementError(true);}finally{I.showPanel();}},async onReporterReportsRequest(){let l=await u.listReporterReports(re(r));if(!l.ok)throw new Error(l.error?.message??"Could not load reports");return Yt=l.data?.reports??[],Yt.length&&vi(r),Yt},onReporterMarkRead:l=>Ju(l),async onReporterReportRequest(l){let c=await rt.getReport(l,re(r));return c.ok&&c.data?{report:c.data.report,timeline:c.data.timeline}:null},async onReporterEmailOptIn(l){let c=await rt.setPrefs(re(r),{email:l,channels:{email:true}});if(!c.ok)throw new Error(c.error?.code??"EMAIL_OPT_IN_FAILED")},async onReporterPushSubscribe(){let l=await _n.subscribeReporterPush();if(!l.ok)throw new Error(l.reason)},async onReporterCommentsRequest(l){let c=await u.listReporterComments(l,re(r));if(!c.ok)throw new Error(c.error?.message??"Could not load thread");return c.data?.comments??[]},async onReporterReply(l,c){let v=await u.replyToReporterReport(l,re(r),c);if(!v.ok)throw new Error(v.error?.message??"Could not send reply")},async onReporterFeedback(l,c,v){let L=await u.replyToReporterReport(l,re(r),v??"",c);if(!L.ok)throw new Error(L.error?.message??"Could not send feedback");return L.data?.feedback??null},async onReporterReopen(l,c){let v=await u.reopenReporterReport(l,re(r),c);if(!v.ok)throw new Error(v.error?.message??"Could not reopen report");return v.data?.outcome??null},async onFeatureBoardRequest(){let l=await u.listReporterFeatureBoard(re(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,re(r));if(!c.ok)throw new Error(c.error?.message??"Could not vote");return c.data??{voted:true,action:"added"}},onLeaderboardOpen(){I.setLeaderboard(null,true),hu(10).then(l=>{I.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(){I.setGlobalLeaderboard(null,true);try{let l=ye(),c=await u.getPublicLeaderboard(50),L=(c.ok?c.data?.leaderboard??[]:[]).map(P=>({tester_id:P.tester_id,rank:P.rank,public_handle:P.public_handle,display_name:P.display_name,points_30d:P.points_30d,total_points:P.total_points??0,badge:P.badge_slug}));if(I.setGlobalLeaderboard(L,!1),l){let P=await u.getMyReputation(l);if(P.ok&&P.data){let j=P.data;j.reputation&&I.setTesterReputation(j.reputation);}}}catch{I.setGlobalLeaderboard([],false);}},async onCrossAppReportsOpen(){let l=ye();if(!l){I.setCrossAppReports([],false);return}try{let c=await u.getCrossAppReports(l),v=c.ok?c.data?.reports??[]:[];I.setCrossAppReports(v,!1);}catch{I.setCrossAppReports([],false);}},onTesterSignOut(){he();},assistantEnabled:t.assistant?.enabled===true,...t.assistant?.label?{assistantLabel:t.assistant.label}:{},...t.assistant?.greeting?{assistantGreeting:t.assistant.greeting}:{},...t.assistant?.suggestions?{assistantSuggestions:t.assistant.suggestions}:{},async onAssistantAsk(l,c){let v=await u.askAssistant({message:l,threadId:c,context:a});return v.ok?v.data??null:null}}),Rn.then(l=>I.setBrandRef(l)),ne(),typeof document<"u"&&(document.readyState==="loading"?document.addEventListener("DOMContentLoaded",()=>I.mount()):I.mount());let no=ye();no&&V(no).catch(()=>he());let io=null,Jt=null,te=i.proactive;te&&(te.rageClick!==false||te.longTask!==false||te.apiCascade!==false||te.errorBoundary===true||te.pageDwell||te.firstSession)&&typeof document<"u"&&(Jt=Ou(te?.cooldown),io=$u({onTrigger:(l,c)=>{if(typeof navigator<"u"&&!navigator.onLine){o.debug("Proactive trigger suppressed: offline",{type:l});return}if(!Jt.shouldShow(l)){o.debug("Proactive trigger suppressed by fatigue prevention",{type:l});return}o.info("Proactive trigger fired",{type:l,context:c}),O=l,Z("proactive:triggered",{type:l,context:c}),l==="first_session"?I.pulseTrigger?.():I.open();}},{rageClick:te?.rageClick,longTask:te?.longTask,apiCascade:te?.apiCascade,apiEndpoint:Yi(i),errorBoundary:te?.errorBoundary,ignoreErrors:i.ignoreErrors,denyUrls:i.denyUrls,allowUrls:i.allowUrls,pageDwell:te?.pageDwell,firstSession:te?.firstSession,projectId:t.projectId}),o.debug("Proactive triggers enabled",{rageClick:te?.rageClick!==false,longTask:te?.longTask!==false,apiCascade:te?.apiCascade!==false,errorBoundary:te?.errorBoundary===true,pageDwell:!!te?.pageDwell,firstSession:!!te?.firstSession})),k.startAutoSync(u),k.flush(u).then(l=>{l.sent>0&&o.info("Synced offline reports",{sent:l.sent});});function kn(l){if(Y=true,Me=l.reporterNotificationsEnabled!==false,Gt=l.enabled===false?null:l.reporter??null,eo(),l.enabled===false){i=t,Nf(e.projectId),ne(),I.updateConfig(i.widget),Rr(),o.debug("Runtime SDK config disabled; using bootstrap config",{version:l.version});return}i=eu(i,l,t),ne(),l.widget&&I.updateConfig(i.widget),Me?Qi():Rr(),o.debug("Applied runtime SDK config",{version:l.version});}if(Bf(e)){let l=Of(e.projectId);l&&kn(l),u.getSdkConfig(g==="on-demand"?{fresh:true}:void 0).then(c=>{c.ok&&c.data?(Hf(e.projectId,c.data),kn(c.data),c.data.enabled!==false&&b(c.data.journeys??null)):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");el(),Qi(),Xu(),o.info("Initialized",{projectId:e.projectId});async function el(){if(i.widget?.outdatedBanner==="off")return;let l=Uf(Ze);l&&oo(l);let c=await u.getLatestSdkVersion(Ze);!c.ok||!c.data||(qf(Ze,c.data),oo(c.data));}function oo(l){let c=l.latest,v=!!(c&&jf(we,c));if(!v&&!l.deprecated)return;let L=l.deprecationMessage??(v?`Update ${Ze} to ${c}.`:null);o.warn("Mushi SDK is outdated",{package:Ze,current:we,latest:c,deprecated:l.deprecated,message:L}),fa(i.widget?.outdatedBanner,!!i.debug,typeof location>"u"?void 0:location)&&I.setSdkFreshness({latest:c,current:we,deprecated:l.deprecated,message:L});}async function tl(l,c,v,L){let P=K=>({reportId:null,queuedOffline:false,failureKind:K}),j=y.check(c);if(!j.passed)return o.info("Report blocked by pre-filter",{reason:j.reason}),P("blocked");let Q=e.preFilter?.wasmClassifier;if(Q)try{let K=await Q.classify({description:c,category:l,url:typeof location<"u"?location.href:void 0,hasScreenshot:x!==null,hasSelectedElement:F!==null,hasNetworkErrors:S?.getEntries()?.some(me=>me.status>=400||!!me.error)??!1,hasConsoleErrors:f?.getEntries()?.some(me=>me.level==="error")??!1,proactiveTrigger:O??void 0});if(K.verdict==="block")return o.info("Report blocked by on-device classifier",{modelId:K.modelId,confidence:K.confidence,reason:K.reason}),P("blocked");o.debug("On-device classifier verdict",{...K});}catch(K){o.warn("On-device classifier threw \u2014 falling through to server",{error:K instanceof Error?K.message:String(K)});}if(O!==null&&e.sampleRate!==void 0&&e.sampleRate<1&&(e.sampleRate<=0||Math.random()>e.sampleRate))return o.debug("Report dropped by sampleRate",{sampleRate:e.sampleRate,trigger:O}),P("blocked");if(!T.tryConsume())return o.warn("Report throttled \u2014 rate limit exceeded"),P("throttled");let W=w.scrub(y.truncate(c)),G=e.sentry?ji(e.sentry):void 0,We=await ps().catch(()=>null),Ke=i.capture?.console===false?void 0:C(f?.getEntries()),_r=i.capture?.network===false?void 0:S?.getEntries(),uo=R(H.getAll()),lo=m(Object.keys(Re).length>0?{...Re}:void 0),co=G?{...G,...G.breadcrumbs?{breadcrumbs:R(G.breadcrumbs)}:{},...G.tags?{tags:m(G.tags)}:{}}:void 0,po=x?await ta(x).catch(()=>null):null,Cr=false;x&&!po&&(Cr=true,o.warn("Screenshot dropped \u2014 could not compress under wire budget"));let ho=Yn(),rl=await ya(xe),Le={id:Xn(),projectId:e.projectId,category:l,...L?{userCategory:L}:{},description:W,userIntent:v,environment:ho,consoleLogs:Ke,networkLogs:_r,performanceMetrics:i.capture?.performance===false?void 0:A?.getMetrics(),timeline:ee.getEntries({consoleLogs:Ke,networkLogs:_r}),screenshotDataUrl:po??void 0,selectedElement:F??void 0,...U?{replayEvents:U.flush()}:{},metadata:{...Se,...rl??{},...z?{user:z}:{},...G?.release?{sentryRelease:G.release}:{}},sessionId:wt(),reporterToken:re(r),...We?{fingerprintHash:We}:{},appVersion:Ku(i,ho),sdkPackage:Ze,sdkVersion:we,proactiveTrigger:O??void 0,...uo.length>0?{breadcrumbs:uo}:{},...lo?{tags:lo}:{},...co?{sentryContext:co}:{},sentryEventId:G?.eventId,sentryReplayId:G?.replayId,createdAt:new Date().toISOString()};if(H.add({category:"lifecycle",level:"info",message:`Mushi report submitting (${l})`,data:{reportId:Le.id,category:l}}),e.integrations?.custom){let K={addMetadata(me,Cn){Le.metadata[me]=Cn;},setCategory(me){Le.category=me;},setDescription(me){Le.description=me;}};e.integrations.custom(K);}let X=Le,fo=e.beforeSend??e.beforeSendFeedback;if(fo)try{let K=await Promise.race([Promise.resolve(fo(Le)),new Promise(me=>setTimeout(()=>me(Le),2e3))]);if(K===null)return o.info("Report dropped by beforeSend hook",{reportId:Le.id}),P("blocked");X=K;}catch(K){o.warn("beforeSend hook threw \u2014 sending unmodified report",{error:K instanceof Error?K.message:String(K)});}if(Z("report:submitted",{reportId:X.id}),typeof navigator<"u"&&!navigator.onLine)return await k.enqueue(X),o.info("Offline \u2014 report queued",{reportId:X.id}),Z("report:queued",{reportId:X.id}),{reportId:null,queuedOffline:true,failureKind:"offline"};let J=await u.submitReport(X);if(!J.ok&&J.error?.code==="PAYLOAD_TOO_LARGE"&&(Array.isArray(X.replayEvents)&&X.replayEvents.length>0&&(o.warn("Report too large \u2014 dropping replay buffer and retrying",{reportId:X.id}),X={...X,replayEvents:void 0},J=await u.submitReport(X)),!J.ok&&J.error?.code==="PAYLOAD_TOO_LARGE"&&X.screenshotDataUrl&&(o.warn("Report still too large \u2014 dropping screenshot and retrying",{reportId:X.id}),Cr=true,X={...X,screenshotDataUrl:void 0},J=await u.submitReport(X))),J.ok){if(o.info("Report sent",{reportId:J.data?.reportId}),Z("report:sent",{reportId:J.data?.reportId}),vi(r),Zi(),J.data?.cursorAgentId){let K=J.data;Z("report:dispatched",{reportId:K.reportId,agentId:K.cursorAgentId,fixId:K.fixId});}H.add({category:"lifecycle",level:"info",message:`Mushi report sent (${J.data?.reportId??Le.id})`}),Kt({action:"report_submit",metadata:{category:l,reportId:J.data?.reportId??Le.id}});try{e.sentry&&J.data?.reportId&&Wi(J.data.reportId);}catch{}}else {if(J.error?.code==="PAYLOAD_TOO_LARGE"||J.error?.code==="SERIALIZE_FAILED")return o.warn("Report exceeds size limit after degradation \u2014 dropping",{reportId:X.id,error:J.error}),Z("report:failed",{reportId:X.id,error:J.error}),H.add({category:"lifecycle",level:"error",message:`Mushi report dropped \u2014 payload too large (${X.id})`}),x=null,F=null,O=null,{reportId:null,queuedOffline:false,failureKind:"permanent",screenshotDropped:Cr};{let K=J.error?.code??"",me=K==="HTTP_429"||K.includes("RATE_LIMIT"),Cn=K==="HTTP_401"||K.includes("UNAUTHORIZED")||K.includes("INVALID_API_KEY")||K.includes("MISSING_API_KEY"),nl=K==="HTTP_403"||K.includes("QUOTA")||K.includes("FORBIDDEN")||K==="feature_not_in_plan";if(Cn||nl)return o.warn("Report rejected \u2014 credentials/quota",{reportId:X.id,error:J.error}),Z("report:failed",{reportId:X.id,error:J.error}),x=null,F=null,O=null,{reportId:null,queuedOffline:false,failureKind:"quota"};if(me)return o.warn("Report rate-limited \u2014 queued for retry",{reportId:X.id,error:J.error}),await k.enqueue(X),Z("report:failed",{reportId:X.id,error:J.error}),x=null,F=null,O=null,{reportId:null,queuedOffline:true,failureKind:"rate_limited"};o.warn("Report failed, queuing for retry",{reportId:X.id,error:J.error}),await k.enqueue(X),Z("report:failed",{reportId:X.id,error:J.error}),H.add({category:"lifecycle",level:"warning",message:`Mushi report queued for retry (${X.id})`});}}return x=null,F=null,O=null,J?.ok?{reportId:J.data?.reportId??Le.id,queuedOffline:false,screenshotDropped:Cr}:{reportId:null,queuedOffline:true,failureKind:"retrying"}}let _n={report(l){I.open(l);},on(l,c){return Fe.has(l)||Fe.set(l,new Set),Fe.get(l).add(c),()=>Fe.get(l)?.delete(c)},setUser(l){z=l;},setMetadata(l,c){Se[l]=c;},setDiagnosticsProvider(l){xe=l;},setScreen(l){ee.setScreen(l);},isOpen(){return I.getIsOpen()},open(){I.open();},openWith(l){I.open({category:l});},show(){I.showTrigger();},hide(){I.hideTrigger();},attachTo(l,c){return I.attachTo(l,c)},setTrigger(l){I.setTrigger(l);},openReporter(){I.openReporter();},close(){I.close();},updateConfig(l){kn(l),l.enabled!==false&&b(l.journeys??null);},diagnose(){return $f({apiEndpoint:Yi(i),widgetMounted:I.getIsMounted(),runtimeConfigLoaded:Y,captureScreenshotAvailable:$!==null,captureNetworkIntercepting:S!==null,widgetDiagnostics:I.getWidgetDiagnostics()})},destroy(){io?.destroy(),Jt?.reset(),Ds(),I.destroy(),f?.destroy(),S?.destroy(),A?.destroy(),N?.deactivate(),fu(),_t?.(),_t=null,q?.destroy(),q=null,ee.destroy(),nu(),U?.destroy(),U=null,k.stopAutoSync(),Rr(),d?.(),d=null,xs(),H.clear(),Fe.clear(),qe=null,o.debug("Destroyed");},async captureEvent(l){if(!T.tryConsume())return o.warn("captureEvent throttled \u2014 rate limit exceeded"),null;let c=w.scrub(y.truncate(l.description)),v=l.category??"bug",L=e.sentry?ji(e.sentry):void 0,P=R(H.getAll()),j=m(Object.keys(Re).length===0&&!l.tags?void 0:{...Re,...l.tags??{}}),Q=L?{...L,...L.breadcrumbs?{breadcrumbs:R(L.breadcrumbs)}:{},...L.tags?{tags:m(L.tags)}:{}}:void 0,de=Yn(),W={id:Xn(),projectId:e.projectId,category:v,description:c,environment:de,timeline:ee.getEntries(),metadata:{...l.metadata??{},...z?{user:z}:{},...l.error?{error:l.error}:{},...l.severity?{severity:l.severity}:{},...l.component?{component:l.component}:{},...l.source?{source:l.source}:{source:"captureEvent"}},...P.length>0?{breadcrumbs:P}:{},...j&&Object.keys(j).length>0?{tags:j}:{},...Q?{sentryContext:Q}:{},sessionId:wt(),reporterToken:re(r),appVersion:Ku(i,de),sdkPackage:Ze,sdkVersion:we,sentryEventId:L?.eventId,sentryReplayId:L?.replayId,createdAt:new Date().toISOString()},G=W;if(i.beforeSendFeedback)try{let Ke=await Promise.race([Promise.resolve(i.beforeSendFeedback(W)),new Promise(_r=>setTimeout(()=>_r(W),2e3))]);if(Ke===null)return o.info("captureEvent dropped by beforeSendFeedback hook",{reportId:W.id}),null;G=Ke;}catch(Ke){o.warn("captureEvent beforeSendFeedback threw \u2014 sending unmodified report",{error:Ke instanceof Error?Ke.message:String(Ke)});}if(Z("report:submitted",{reportId:G.id}),typeof navigator<"u"&&!navigator.onLine)return await k.enqueue(G),Z("report:queued",{reportId:G.id}),null;let We=await u.submitReport(G);if(We.ok){Z("report:sent",{reportId:We.data?.reportId});try{e.sentry&&We.data?.reportId&&Wi(We.data.reportId);}catch{}return We.data?.reportId??null}return await k.enqueue(G),Z("report:failed",{reportId:G.id,error:We.error}),null},async captureException(l,c){let v=Fs(l),L=typeof c?.metadata?.filename=="string"?c.metadata.filename:Ki(v.stack);if(dr({message:v.message,filename:L,ignoreErrors:i.ignoreErrors,denyUrls:i.denyUrls,allowUrls:i.allowUrls}))return null;H.add({category:"lifecycle",level:"error",message:`Mushi.captureException(${v.name}): ${v.message}`,...v.stack?{data:{stack:v.stack.slice(0,500)}}:{}});let P=c?.description?.trim()||`${v.name}: ${v.message}`||"Uncaught exception";return _n.captureEvent({description:P,category:c?.category??"bug",severity:c?.severity??"high",...c?.component?{component:c.component}:{},...c?.tags?{tags:c.tags}:{},source:c?.source??"captureException",error:{name:v.name,message:v.message,...v.stack?{stack:v.stack}:{}},metadata:{...c?.metadata??{},...v.cause?{cause:v.cause}:{}}})},identify(l,c){let v=`${l}::${c?JSON.stringify(c):""}`;if(v!==fe){if(fe=v,z={id:l,...c?.email?{email:c.email}:{},...c?.name?{name:c.name}:{}},I.setIdentifiedUser(z.name||z.email?{name:z.name,email:z.email}:null),eo(),c)for(let[L,P]of Object.entries(c))L!=="email"&&L!=="name"&&(Se[`user.${L}`]=P);H.add({category:"lifecycle",level:"info",message:`Mushi.identify(${l})`}),Ms(l,c??null),to(l,c?{email:c.email,name:c.name,provider:c.provider}:void 0);}},identifyWithToken(l){if(s=l&&typeof l=="string"?l:null,s){let c=Vs(s);if(c?.sub){if(z?.id===c.sub){H.add({category:"lifecycle",level:"info",message:"Mushi.identifyWithToken() refreshed"});return}let v=c.sub;Pt(v).then(L=>{z?.id===v&&ei(L);}).catch(()=>{}),z={id:c.sub,...c.email?{email:c.email}:{},...c.name?{name:c.name}:{}},I.setIdentifiedUser(z.name||z.email?{name:z.name,email:z.email}:null),to(z.id,{email:z.email,name:z.name});}H.add({category:"lifecycle",level:"info",message:"Mushi.identifyWithToken()"});}else z=null,fe=null,ei(null),I.setIdentifiedUser(null),H.add({category:"lifecycle",level:"info",message:"Mushi.identifyWithToken(null)"});},publishPageContext(l){a=l&&l.route?l:null;},openAssistant(){I.openAssistantTab();},addBreadcrumb(l){H.add(l);},getBreadcrumbs(){return H.getAll()},setTag(l,c){typeof l!="string"||l.length===0||(Re[l]=c);},setTags(l){if(!(!l||typeof l!="object"))for(let[c,v]of Object.entries(l))typeof c=="string"&&c.length>0&&(Re[c]=v);},clearTag(l){if(typeof l=="string"&&l.length>0){delete Re[l];return}for(let c of Object.keys(Re))delete Re[c];},async getReputation(){if(!z?.id)return null;let l=await u.getMyPoints(z.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 z?.id?pu(z.id):null},recordActivity(l,c){i.rewards?.enabled&&Kt({action:l,metadata:c});},track(l,c){return Dt(l,c)},setConsent(l){Is(l);},getAnonymousId(){return Ts()},pulseTrigger(){I.pulseTrigger?.();},async listMyReports(){let l=await u.listReporterReports(re(r));return l.ok?l.data?.reports??[]:[]},async listMyComments(l){let c=await u.listReporterComments(l,re(r));return c.ok?c.data?.comments??[]:[]},async replyToReport(l,c){let v=await u.replyToReporterReport(l,re(r),c);return v.ok?v.data?.comment??null:null},async submitFeedbackSignal(l,c,v){let L=await u.replyToReporterReport(l,re(r),v??"",c);return L.ok?L.data?.feedback??null:null},async reopenReport(l,c){let v=await u.reopenReporterReport(l,re(r),c);return v.ok?v.data?.outcome??null:null},openMyReports(){I.recorderOpenMyReports();},getReporterUpdates:xr,async markReportRead(l){let c=await rt.markReportRead(l,n());return c.ok?c.data?.unread_total??0:null},onReporterUpdate(l){return zt.add(l),xr(),()=>{zt.delete(l);}},async getNotificationPrefs(){let l=await rt.getPrefs(n());return l.ok?l.data??null:null},setNotificationPrefs:l=>rt.setPrefs(n(),l),async subscribeReporterPush(){let l=i.notifications?.webPush,c=Gt?.vapidPublicKey??null;if(l&&!c){let v=await u.getSdkConfig();c=v.ok?v.data?.reporter?.vapidPublicKey??null:null;}return Qa(rt,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"&&(t.debug??false)&&tu(I),typeof window<"u"&&typeof localStorage<"u"){let l="mushi:last-run",c=null;try{let v=localStorage.getItem(l);c=v===null?null:v==="unfinished",localStorage.setItem(l,"unfinished");}catch{c=null;}try{window.addEventListener("pagehide",()=>{try{localStorage.setItem(l,"clean");}catch{}es(),ts();});}catch{}if(typeof t.onCrashedLastRun=="function")try{t.onCrashedLastRun(c);}catch(v){o.warn("onCrashedLastRun hook threw",{error:v instanceof Error?v.message:String(v)});}}let so={on:()=>{},onReporterUpdate:()=>{},isOpen:false,getBreadcrumbs:[],captureEvent:null,captureException:null,getReputation:null,getTier:null,listMyReports:[],listMyComments:[],getHallOfFame:[],replyToReport:null,submitFeedbackSignal:null,reopenReport:null},ao=(l,c)=>{let v=c instanceof Error?c.message:String(c);o.debug(`Mushi.${l}() failed (swallowed)`,{error:v});try{H.add({category:"custom",level:"warning",message:`mushi.${l}() threw`,data:{error:v}});}catch{}};return (l=>new Proxy(l,{get(c,v,L){let P=Reflect.get(c,v,L);if(typeof P!="function")return P;let j=String(v),Q=()=>j==="diagnose"?Xi():j in so?so[j]:void 0;return (...de)=>{try{let W=P.apply(c,de);return W&&typeof W.then=="function"?W.catch(G=>(ao(j,G),Q())):W}catch(W){return ao(j,W),Q()}}}}))(_n)}function Yi(e){return e.apiEndpoint??ir}function Bf(e){return e.runtimeConfig!==false}async function $f(e){let t=await Ff(e.apiEndpoint);return {apiEndpointReachable:t.reachable,cspAllowsEndpoint:t.cspAllowed,widgetMounted:e.widgetMounted,shadowDomAvailable:typeof HTMLElement<"u"&&typeof HTMLElement.prototype.attachShadow=="function",dialogSupported:typeof HTMLDialogElement<"u",runtimeConfigLoaded:e.runtimeConfigLoaded,captureScreenshotAvailable:e.captureScreenshotAvailable,captureNetworkIntercepting:e.captureNetworkIntercepting,sdkVersion:we,widgetHostPointerSafe:e.widgetDiagnostics?.widgetHostPointerSafe??false,widgetHostBounds:e.widgetDiagnostics?.widgetHostBounds??null,widgetSuppressed:e.widgetDiagnostics?.widgetSuppressed??false,bannerRendered:e.widgetDiagnostics?.bannerRendered??false}}async function Xi(){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 Ff(e){if(typeof fetch>"u")return {reachable:false,cspAllowed:false};let t=typeof AbortController<"u"?new AbortController:null,r=t?setTimeout(()=>t.abort(),3e3):null;try{return {reachable:(await fetch(`${e.replace(/\/$/,"")}/health`,{method:"GET",cache:"no-store",...t?{signal:t.signal}:{},[cr]:"diagnose"})).ok,cspAllowed:!0}}catch{return {reachable:false,cspAllowed:false}}finally{r&&clearTimeout(r);}}function Ji(e){return `mushi:sdk-config:${e}`}function Yu(e){return `mushi:sdk-version:${e}`}function Of(e){if(typeof localStorage>"u")return null;try{let t=localStorage.getItem(Ji(e));return t?JSON.parse(t).config??null:null}catch{return null}}function Hf(e,t){if(!(typeof localStorage>"u"))try{localStorage.setItem(Ji(e),JSON.stringify({cachedAt:Date.now(),config:t}));}catch{}}function Nf(e){if(!(typeof localStorage>"u"))try{localStorage.removeItem(Ji(e));}catch{}}function Uf(e){if(typeof localStorage>"u")return null;try{let t=localStorage.getItem(Yu(e));if(!t)return null;let r=JSON.parse(t);return !r.data||!r.cachedAt||Date.now()-r.cachedAt>864e5?null:r.data}catch{return null}}function qf(e,t){if(!(typeof localStorage>"u"))try{localStorage.setItem(Yu(e),JSON.stringify({cachedAt:Date.now(),data:t}));}catch{}}function jf(e,t){let r=Vu(e),n=Vu(t);for(let i=0;i<Math.max(r.length,n.length);i++){let o=r[i]??0,s=n[i]??0;if(o<s)return true;if(o>s)return false}return false}function Vu(e){return e.split(/[.-]/).map(t=>Number.parseInt(t,10)).filter(t=>Number.isFinite(t))}function zu(){return {report:()=>{},on:()=>()=>{},setUser:()=>{},setMetadata:()=>{},setDiagnosticsProvider:()=>{},setScreen:()=>{},isOpen:()=>false,open:()=>{},close:()=>{},updateConfig:()=>{},diagnose:Xi,openWith:()=>{},show:()=>{},hide:()=>{},attachTo:()=>()=>{},setTrigger:()=>{},openReporter:()=>{},destroy:()=>{qe=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 Wf(e){if(typeof window>"u")return ()=>{};let t=[];try{let r=i=>{e.add({category:"navigation",level:"info",message:`${i}: ${window.location.pathname}`,data:{url:window.location.href,kind:i}});},n=Be({onPush:()=>r("pushState"),onReplace:()=>r("replaceState"),onPop:()=>r("popstate")});t.push(n);}catch{}try{let r=console.error,n=console.warn,i=function(...s){try{e.add({category:"console",level:"error",message:s.map(Gu).join(" ")});}catch{}return r.apply(this,s)},o=function(...s){try{e.add({category:"console",level:"warning",message:s.map(Gu).join(" ")});}catch{}return n.apply(this,s)};console.error=i,console.warn=o,t.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,s=0;for(;o&&s<10;){let a=o.getAttribute("data-testid");if(a){let u=(o.textContent??"").trim().slice(0,80);e.add({category:"ui.click",level:"info",message:`clicked ${a}${u?` \u2014 ${u}`:""}`,data:{testid:a,tag:o.tagName.toLowerCase()}});return}o=o.parentElement,s++;}}catch{}};document.addEventListener("click",r,{passive:!0,capture:!0}),t.push(()=>document.removeEventListener("click",r,!0));}catch{}return ()=>{for(let r of t)try{r();}catch{}}}function Gu(e){try{if(e instanceof Error)return `${e.name}: ${e.message}`;if(typeof e=="object"&&e!==null){let r=JSON.stringify(e);return r.length>200?`${r.slice(0,200)}\u2026`:r}let t=String(e);return t.length>200?`${t.slice(0,200)}\u2026`:t}catch{return `[${typeof e}]`}}function Kf(){let e=document.currentScript;if(e&&e.dataset&&e.dataset.project)return e;let t=Array.from(document.querySelectorAll("script[data-project][data-key]"));return t.length>0?t[t.length-1]:null}function Vf(e){let t=e.project?.trim(),r=e.key?.trim();if(!t||!r)return null;let n={};e.trigger&&(n.trigger=e.trigger),e.theme&&(n.theme=e.theme),e.position&&(n.position=e.position),e.triggerText&&(n.triggerText=e.triggerText);let i=e.bannerVariant,o=e.bannerPosition;(i||o)&&(n.bannerConfig={...i?{variant:i}:{},...o?{position:o}:{}});let s={projectId:t,apiKey:r};return e.endpoint&&(s.apiEndpoint=e.endpoint),e.debug==="true"&&(s.debug=true),Object.keys(n).length>0&&(s.widget=n),s}function zf(){if(typeof document>"u"||typeof window>"u")return;let e=window;if(e.__mushiLoaderInit)return;let t=Kf();if(!t)return;let r=Vf(t.dataset);if(r){e.__mushiLoaderInit=true;try{Sn.init(r);}catch{}}}zf();
97
98
  })();