@mushi-mushi/web 1.39.1 → 1.39.2
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.
- package/dist/index.cjs +3 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +3 -1
- package/dist/index.js.map +1 -1
- package/dist/mushi.loader.global.js +8 -8
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(){'use strict';var ul=Object.defineProperty;var Ce=(t,e)=>()=>(t&&(e=t(t=0)),e);var ht=(t,e)=>{for(var r in e)ul(t,r,{get:e[r],enumerable:true});};function ll(t){return t instanceof Uint8Array||ArrayBuffer.isView(t)&&t.constructor.name==="Uint8Array"&&"BYTES_PER_ELEMENT"in t&&t.BYTES_PER_ELEMENT===1}function mo(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 Qt(t,e,r=""){let n=ll(t),i=t?.length,o=e!==void 0;if(!n||o){let s=r&&`"${r}" `,a="",u=n?`length=${i}`:`type=${typeof t}`,c=s+"expected Uint8Array"+a+", got "+u;throw n?new RangeError(c):new TypeError(c)}return t}function go(t){if(typeof t!="function"||typeof t.create!="function")throw new TypeError("Hash must wrapped by utils.createHasher");if(mo(t.outputLen),mo(t.blockLen),t.outputLen<1)throw new Error('"outputLen" must be >= 1');if(t.blockLen<1)throw new Error('"blockLen" must be >= 1')}function At(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 Tr(t,e){Qt(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 ze(...t){for(let e=0;e<t.length;e++)t[e].fill(0);}function Ar(t){return new DataView(t.buffer,t.byteOffset,t.byteLength)}function Be(t,e){return t<<32-e|t>>>e}function ft(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 mt,Ir=Ce(()=>{mt=t=>({oid:Uint8Array.from([6,9,96,134,72,1,101,3,4,2,t])});});function bo(t,e,r){return t&e^~t&r}function Eo(t,e,r){return t&e^t&r^e&r}var er,Ge,Ye,ae,ue,yo=Ce(()=>{Ir();er=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=Ar(this.buffer);}update(e){At(this),Qt(e);let{view:r,buffer:n,blockLen:i}=this,o=e.length;for(let s=0;s<o;){let a=Math.min(i-this.pos,o-s);if(a===i){let u=Ar(e);for(;i<=o-s;s+=i)this.process(u,s);continue}n.set(e.subarray(s,s+a),this.pos),this.pos+=a,s+=a,this.pos===i&&(this.process(r,0),this.pos=0);}return this.length+=e.length,this.roundClean(),this}digestInto(e){At(this),Tr(e,this),this.finished=true;let{buffer:r,view:n,blockLen:i,isLE:o}=this,{pos:s}=this;r[s++]=128,ze(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(e),u=this.outputLen;if(u%4)throw new Error("_sha2: outputLen must be aligned to 32bit");let c=u/4,p=this.get();if(c>p.length)throw new Error("_sha2: outputLen bigger than state");for(let h=0;h<c;h++)a.setUint32(4*h,p[h],o);}digest(){let{buffer:e,outputLen:r}=this;this.digestInto(e);let n=e.slice(0,r);return this.destroy(),n}_cloneInto(e){e||=new this.constructor,e.set(...this.get());let{blockLen:r,buffer:n,length:i,finished:o,destroyed:s,pos:a}=this;return e.destroyed=s,e.finished=o,e.length=i,e.pos=a,i%r&&e.buffer.set(n),e}clone(){return this._cloneInto()}},Ge=Uint32Array.from([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),Ye=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 cl(t,e=false){return e?{h:Number(t&Mr),l:Number(t>>vo&Mr)}:{h:Number(t>>vo&Mr)|0,l:Number(t&Mr)|0}}function wo(t,e=false){let r=t.length,n=new Uint32Array(r),i=new Uint32Array(r);for(let o=0;o<r;o++){let{h:s,l:a}=cl(t[o],e);[n[o],i[o]]=[s,a];}return [n,i]}function Oe(t,e,r,n){let i=(e>>>0)+(n>>>0);return {h:t+r+(i/2**32|0)|0,l:i|0}}var Mr,vo,An,In,gt,bt,tr,rr,So,xo,Ro,ko,_o,Co,To=Ce(()=>{Mr=BigInt(4294967295),vo=BigInt(32);An=(t,e,r)=>t>>>r,In=(t,e,r)=>t<<32-r|e>>>r,gt=(t,e,r)=>t>>>r|e<<32-r,bt=(t,e,r)=>t<<32-r|e>>>r,tr=(t,e,r)=>t<<64-r|e>>>r-32,rr=(t,e,r)=>t>>>r-32|e<<64-r;So=(t,e,r)=>(t>>>0)+(e>>>0)+(r>>>0),xo=(t,e,r,n)=>e+r+n+(t/2**32|0)|0,Ro=(t,e,r,n)=>(t>>>0)+(e>>>0)+(r>>>0)+(n>>>0),ko=(t,e,r,n,i)=>e+r+n+i+(t/2**32|0)|0,_o=(t,e,r,n,i)=>(t>>>0)+(e>>>0)+(r>>>0)+(n>>>0)+(i>>>0),Co=(t,e,r,n,i,o)=>e+r+n+i+o+(t/2**32|0)|0;});var Mn={};ht(Mn,{_SHA224:()=>Pr,_SHA256:()=>Dr,_SHA384:()=>$r,_SHA512:()=>Br,_SHA512_224:()=>Fr,_SHA512_256:()=>Or,sha224:()=>gl,sha256:()=>ml,sha384:()=>El,sha512:()=>bl,sha512_224:()=>vl,sha512_256:()=>yl});var pl,it,Lr,Dr,Pr,Ao,hl,fl,ot,st,It,Br,$r,de,pe,Fr,Or,ml,gl,bl,El,yl,vl,Ln=Ce(()=>{yo();To();Ir();pl=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]),it=new Uint32Array(64),Lr=class extends er{constructor(e){super(64,e,8,false);}get(){let{A:e,B:r,C:n,D:i,E:o,F:s,G:a,H:u}=this;return [e,r,n,i,o,s,a,u]}set(e,r,n,i,o,s,a,u){this.A=e|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(e,r){for(let h=0;h<16;h++,r+=4)it[h]=e.getUint32(r,false);for(let h=16;h<64;h++){let m=it[h-15],v=it[h-2],k=Be(m,7)^Be(m,18)^m>>>3,g=Be(v,17)^Be(v,19)^v>>>10;it[h]=g+it[h-7]+k+it[h-16]|0;}let{A:n,B:i,C:o,D:s,E:a,F:u,G:c,H:p}=this;for(let h=0;h<64;h++){let m=Be(a,6)^Be(a,11)^Be(a,25),v=p+m+bo(a,u,c)+pl[h]+it[h]|0,g=(Be(n,2)^Be(n,13)^Be(n,22))+Eo(n,i,o)|0;p=c,c=u,u=a,a=s+v|0,s=o,o=i,i=n,n=v+g|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,c=c+this.G|0,p=p+this.H|0,this.set(n,i,o,s,a,u,c,p);}roundClean(){ze(it);}destroy(){this.destroyed=true,this.set(0,0,0,0,0,0,0,0),ze(this.buffer);}},Dr=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(32);}},Pr=class extends Lr{A=Ye[0]|0;B=Ye[1]|0;C=Ye[2]|0;D=Ye[3]|0;E=Ye[4]|0;F=Ye[5]|0;G=Ye[6]|0;H=Ye[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(t=>BigInt(t))),hl=Ao[0],fl=Ao[1],ot=new Uint32Array(80),st=new Uint32Array(80),It=class extends er{constructor(e){super(128,e,16,false);}get(){let{Ah:e,Al:r,Bh:n,Bl:i,Ch:o,Cl:s,Dh:a,Dl:u,Eh:c,El:p,Fh:h,Fl:m,Gh:v,Gl:k,Hh:g,Hl:y}=this;return [e,r,n,i,o,s,a,u,c,p,h,m,v,k,g,y]}set(e,r,n,i,o,s,a,u,c,p,h,m,v,k,g,y){this.Ah=e|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=c|0,this.El=p|0,this.Fh=h|0,this.Fl=m|0,this.Gh=v|0,this.Gl=k|0,this.Hh=g|0,this.Hl=y|0;}process(e,r){for(let w=0;w<16;w++,r+=4)ot[w]=e.getUint32(r),st[w]=e.getUint32(r+=4);for(let w=16;w<80;w++){let C=ot[w-15]|0,T=st[w-15]|0,b=gt(C,T,1)^gt(C,T,8)^An(C,T,7),f=bt(C,T,1)^bt(C,T,8)^In(C,T,7),E=ot[w-2]|0,A=st[w-2]|0,$=gt(E,A,19)^tr(E,A,61)^An(E,A,6),U=bt(E,A,19)^rr(E,A,61)^In(E,A,6),q=Ro(f,U,st[w-7],st[w-16]),se=ko(q,b,$,ot[w-7],ot[w-16]);ot[w]=se|0,st[w]=q|0;}let{Ah:n,Al:i,Bh:o,Bl:s,Ch:a,Cl:u,Dh:c,Dl:p,Eh:h,El:m,Fh:v,Fl:k,Gh:g,Gl:y,Hh:_,Hl:R}=this;for(let w=0;w<80;w++){let C=gt(h,m,14)^gt(h,m,18)^tr(h,m,41),T=bt(h,m,14)^bt(h,m,18)^rr(h,m,41),b=h&v^~h&g,f=m&k^~m&y,E=_o(R,T,f,fl[w],st[w]),A=Co(E,_,C,b,hl[w],ot[w]),$=E|0,U=gt(n,i,28)^tr(n,i,34)^tr(n,i,39),q=bt(n,i,28)^rr(n,i,34)^rr(n,i,39),se=n&o^n&a^o&a,Q=i&s^i&u^s&u;_=g|0,R=y|0,g=v|0,y=k|0,v=h|0,k=m|0,{h,l:m}=Oe(c|0,p|0,A|0,$|0),c=a|0,p=u|0,a=o|0,u=s|0,o=n|0,s=i|0;let V=So($,q,Q);n=xo(V,A,U,se),i=V|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:c,l:p}=Oe(this.Dh|0,this.Dl|0,c|0,p|0),{h,l:m}=Oe(this.Eh|0,this.El|0,h|0,m|0),{h:v,l:k}=Oe(this.Fh|0,this.Fl|0,v|0,k|0),{h:g,l:y}=Oe(this.Gh|0,this.Gl|0,g|0,y|0),{h:_,l:R}=Oe(this.Hh|0,this.Hl|0,_|0,R|0),this.set(n,i,o,s,a,u,c,p,h,m,v,k,g,y,_,R);}roundClean(){ze(ot,st);}destroy(){this.destroyed=true,ze(this.buffer),this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0);}},Br=class extends It{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);}},$r=class extends It{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);}},de=Uint32Array.from([2352822216,424955298,1944164710,2312950998,502970286,855612546,1738396948,1479516111,258812777,2077511080,2011393907,79989058,1067287976,1780299464,286451373,2446758561]),pe=Uint32Array.from([573645204,4230739756,2673172387,3360449730,596883563,1867755857,2520282905,1497426621,2519219938,2827943907,3193839141,1401305490,721525244,746961066,246885852,2177182882]),Fr=class extends It{Ah=de[0]|0;Al=de[1]|0;Bh=de[2]|0;Bl=de[3]|0;Ch=de[4]|0;Cl=de[5]|0;Dh=de[6]|0;Dl=de[7]|0;Eh=de[8]|0;El=de[9]|0;Fh=de[10]|0;Fl=de[11]|0;Gh=de[12]|0;Gl=de[13]|0;Hh=de[14]|0;Hl=de[15]|0;constructor(){super(28);}},Or=class extends It{Ah=pe[0]|0;Al=pe[1]|0;Bh=pe[2]|0;Bl=pe[3]|0;Ch=pe[4]|0;Cl=pe[5]|0;Dh=pe[6]|0;Dl=pe[7]|0;Eh=pe[8]|0;El=pe[9]|0;Fh=pe[10]|0;Fl=pe[11]|0;Gh=pe[12]|0;Gl=pe[13]|0;Hh=pe[14]|0;Hl=pe[15]|0;constructor(){super(32);}},ml=ft(()=>new Dr,mt(1)),gl=ft(()=>new Pr,mt(4)),bl=ft(()=>new Br,mt(3)),El=ft(()=>new $r,mt(2)),yl=ft(()=>new Or,mt(6)),vl=ft(()=>new Fr,mt(5));});var Io={};ht(Io,{_HMAC:()=>nr,hmac:()=>wl});var nr,wl,Mo=Ce(()=>{Ir();nr=class{oHash;iHash;blockLen;outputLen;canXOF=false;finished=false;destroyed=false;constructor(e,r){if(go(e),Qt(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),ze(i);}update(e){return At(this),this.iHash.update(e),this}digestInto(e){At(this),Tr(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:s,outputLen:a}=this;return e=e,e.finished=i,e.destroyed=o,e.blockLen=s,e.outputLen=a,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();}},wl=(()=>{let t=((e,r,n)=>new nr(e,r).update(n).digest());return t.create=(e,r)=>new nr(e,r),t})();});function ip(t){let e=(t??"").toLowerCase().split(/[-_]/)[0];return Gd.includes(e)?e:"en"}function _t(t="en"){return np[ip(t)]}function mr(t,e={}){return t.replace(/\{(\w+)\}/g,(r,n)=>{let i=e[n];return i==null?"":String(i)})}function op(t){return zd.includes(t)}function sp(t){let e=(t.user_category??"").trim().toLowerCase().replace(/[\s-]+/g,"_");return e==="feature"||e==="feature_request"||e==="idea"}function Nt(t,e="en"){let r=_t(e),n=(t.status??"").trim(),i=op(n)?Yd[n]:"received",o=t.fixed_in_version?.trim()||null;(n==="fixed"||n==="resolved")&&o&&(i="fixed_version"),(t.awaiting_reporter||t.awaiting_reporter_at)&&wa.has(i)&&(i="waiting");let a=sp(t),u=r.status[i],c=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=t.closed_reason??null;i==="closed"&&(c=p&&p!=="spam"&&p in r.closedReason?r.closedReason[p]:r.closedReason.none);let h=t.group_bucket??"none",m=wa.has(i)||i==="waiting"?h==="few"?r.others.few:h==="many"?r.others.many:null:null;return {key:i,label:mr(u,{version:o}),tone:Xd[i],detail:mr(c,{version:o}),canVerify:i==="fixed_next"||i==="fixed_version"||i==="fixed",othersNote:m,hidden:i==="closed"&&p==="spam"}}function ap(t,e={},r="en"){let n=_t(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:mr(n.timeline[t],{text:e.text,version:e.version})}function ci(t){return t.kind==="comment"||t.kind==="reporter_comment"||t.kind==="info_requested"}function Sa(t,e="en"){return t.custom||!Jd.includes(t.kind)?t.text:ap(t.kind,{text:t.body??null,version:t.version??null,closed_reason:t.closed_reason??null},e)}function xa(t,e="en"){let r=_t(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 Ra(t){return /^[^\s@]+@[^\s@]+\.[^\s@]{2,}$/.test(t.trim())}var zd,Gd,Yd,Xd,Jd,Zd,Qd,ep,tp,rp,np,wa,nn=Ce(()=>{zd=["new","pending","submitted","queued","classified","grouped","fixing","fixed","dismissed","triaged","in_progress","resolved","verified","reopened"],Gd=["en","ja","es","th","zh"],Yd={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"},Xd={received:"neutral",reviewing:"info",reviewing_again:"info",fixing:"progress",verified:"success-muted",fixed_next:"success",fixed_version:"success",fixed:"success",closed:"muted",waiting:"attention"},Jd=["received","reviewing","duplicate_linked","info_requested","comment","reporter_comment","fix_started","fixed","released","verified","reopened","closed"],Zd={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"}},Qd={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"}},ep={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"}},tp={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"}},rp={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"}},np={en:Zd,ja:Qd,es:ep,th:tp,zh:rp};wa=new Set(["received","reviewing","reviewing_again","fixing"]);});var za={};ht(za,{accountView:()=>Bp,assistantView:()=>Lp,crossAppView:()=>$p,detailView:()=>Mp,initViews:()=>xp,leaderboardView:()=>Pp,pickUpdateToast:()=>Rp,renderOptIns:()=>Ka,reportsView:()=>Tp,roadmapView:()=>Dp});function xp(t){({esc:L,btn:fe,renderHeader:Ne,chipLabel:ja,skeleton:Ut,formatRelativeTime:gr,renderAppIconHtml:Wa}=t);}function Rp(t,e,r){let n=t.filter(c=>(c.unread_count??0)>0&&!Nt(c,e).hidden),i=n.reduce((c,p)=>c+(p.unread_count??0),0);if(!i)return null;if(n.length>1)return {text:mr(_t(e).ui.updates,{n:i}),reportId:null};let o=n[0],s=Nt(o,e),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 Ka(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 ${L(n.emailCheckInbox)}</p>`):(r.push(`<label class="mushi-check"><input type="checkbox" data-action="email-optin"${t.emailOptInOpen?" checked":""} /> ${L(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="${L(n.emailOptIn)}" placeholder="${L(n.emailPlaceholder)}" value="${L(t.channels.emailPrefill)}" />${fe("save-email",L(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">${L(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} ${L(e.notifyOn)}</p>`:fe("notify-me",`\u{1F514} ${L(e.notifyMe)}`,"mushi-btn",t.pushState==="asking"?' aria-busy="true"':"")),t.pushState==="error"&&r.push(`<p class="mushi-note mushi-error-inline" role="alert">${L(t.rc.ui.sendFailed)}</p>`)),r.length?`<div class="mushi-optins">${r.join("")}</div>`:""}function hi(t,e){return `<span class="mushi-pill mushi-tone-${e}">${L(t)}</span>`}function Va(t){return t.title??t.summary??t.description??`#${t.id.slice(0,8)}`}function kp(t,e){let r=(e??"").toLowerCase();return !r||r==="other"?"":ja(t,r==="feature_request"?"idea":r)}function _p(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 Cp(t,e){let r=Nt(e,t.lang);if(r.hidden)return "";let n=(e.unread_count??0)>0,i=[kp(t,e.user_category),e.page,r.othersNote].filter(Boolean).map(a=>L(String(a))).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:"",s=Va(e);return `<button type="button" class="mushi-report-row${n?" unread":""}" data-report-id="${L(e.id)}" aria-label="${L(`${r.label}: ${s}`)}"><span class="mushi-row-top">${hi(r.label,r.tone)}<span class="mushi-row-title">${L(s)}</span><span class="mushi-row-when">${L(gr(e.last_event_at??e.created_at))}</span></span>${i?`<span class="mushi-row-meta">${i}</span>`:""}${o?`<span class="mushi-row-news">${L(o)}</span>`:""}</button>`}function Tp(t){let e=t.rc,r=_p(t.reporterReports).map(i=>Cp(t,i)).join(""),n=t.reporterError?`<p class="mushi-error-inline" role="alert">${L(e.ui.loadError)} ${fe("retry-list",L(e.ui.retry),"mushi-link-btn")}</p>${r}`:r||(t.listLoading?Ut(t.locale.flows.reports.loading):`<p class="mushi-empty">${L(e.ui.empty)}</p>`);return {header:Ne(t,t.locale.flows.reports.title,true),lead:"",body:`<div class="mushi-report-list">${n}</div>`,footer:""}}function Ap(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:ci(i)?i.body??i.text:Sa(i,t.lang),talk:ci(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 Ip(t,e){let r=e.at?`<time datetime="${L(e.at)}">${L(gr(e.at))}</time>`:"";if(!e.talk)return `<li class="mushi-event"><span>${L(e.text)}</span>${r}</li>`;let n=!!e.mine,i=e.pending?e.pending.state==="sending"?`<span class="mushi-bubble-state">${L(t.rc.ui.sending)}</span>`:`<span class="mushi-bubble-state mushi-error-inline">${L(t.rc.ui.sendFailed)} \xB7 ${fe("retry-reply",L(t.rc.ui.retry),"mushi-link-btn",` data-value="${e.pending.id}"`)}</span>`:r;return `<li class="mushi-bubble ${n?"mine":"dev"}"><strong>${L(e.who??"")}</strong><p>${L(e.text)}</p>${i}</li>`}function Mp(t){let e=t.rc,r=t.reporterReports.find(h=>h.id===t.selectedReportId),n=Nt(r??{status:"new"},t.lang),i=[r?.page,r?.app_version?`v${r.app_version}`:"",r?gr(r.created_at):""].filter(Boolean).map(h=>L(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">${L(n.detail)}${n.othersNote?` ${L(n.othersNote)}.`:""}</p><p class="mushi-summary-text">${L(r?r.description??Va(r):`#${(t.selectedReportId??"").slice(0,8)}`)}</p>${r?.screenshot_thumb_url?`<img class="mushi-card-thumb" src="${L(r.screenshot_thumb_url)}" alt="" />`:""}${i?`<p class="mushi-note">${i}</p>`:""}</div>`,s=Ap(t,r),a=s.some(h=>h.talk&&!h.mine),u;t.threadLoading&&s.length<=1&&!t.pendingReplies.length?u=Ut(t.locale.flows.thread.loading):u=`${t.threadError?`<p class="mushi-error-inline" role="alert">${L(e.ui.loadError)} ${fe("retry-thread",L(e.ui.retry),"mushi-link-btn")}</p>`:""}<ol class="mushi-timeline">${s.map(h=>Ip(t,h)).join("")}</ol>${!a&&!t.threadError&&!t.threadLoading?`<p class="mushi-empty">${L(e.ui.noReplies)}</p>`:""}`;let c=t.actionPending?' disabled aria-busy="true"':"",p=n.canVerify?`<div class="mushi-verify" role="group" aria-label="${L(n.detail)}">${fe("reporter-confirms",L(e.ui.yes),"mushi-btn",c)}${fe("reporter-not-fixed",L(e.ui.notYet),"mushi-btn",c)}</div>`:"";return {header:Ne(t,t.locale.panel.reportTitle,true),lead:o,body:`<div class="mushi-thread">${u}</div>${Ka(t)}`,footer:`${p}${t.actionError?`<p class="mushi-error-inline mushi-thread-action-error" role="alert">${L(t.actionError)}</p>`:""}<div class="mushi-thread-composer"><textarea class="mushi-input mushi-reply" data-role="reporter-reply" rows="1" maxlength="2000" placeholder="${L(t.locale.flows.thread.replyPlaceholder)}" aria-label="${L(t.locale.flows.thread.replyPlaceholder)}"></textarea>${fe("reporter-reply","\u2191","mushi-submit mushi-send",` aria-label="${L(t.locale.panel.send)}"`)}</div>`}}function Lp(t){let e=t.locale.assistant,r=t.callbacks.assistantGreeting||e.defaultGreeting,n=c=>c.length?`<div class="mushi-chips">${c.map(p=>`<button type="button" class="mushi-chip mushi-chip-sm" data-action="assistant-suggest" data-value="${L(p)}">${L(p)}</button>`).join("")}</div>`:"",i=(c,p="mushi-link-btn")=>fe("assistant-report",L(c),p),o=t.assistantTurns.length===0?`<p class="mushi-assistant-greeting">${L(r)}</p>${n(t.callbacks.assistantSuggestions??[])}`:t.assistantTurns.map(c=>`<div class="mushi-assistant-msg ${c.role==="user"?"mine":"dev"}">${L(c.text)}</div>${n(c.options??[])}${c.offerReport?i(e.fileReportCta,"mushi-btn"):""}`).join(""),s=t.assistantSending?`<div class="mushi-assistant-msg dev" role="status" aria-live="polite">${L(e.thinking)}</div>`:"",a=t.assistantError?`<p class="mushi-error-inline" role="alert">${L(t.assistantError)} ${i(e.fileReportCta)}</p>`:"",u=t.assistantTurns.length&&!t.assistantSending&&!t.assistantError?i(e.stillStuckCta):"";return {header:Ne(t,t.callbacks.assistantLabel||e.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="${L(e.inputPlaceholder)}" aria-label="${L(e.inputPlaceholder)}"${t.assistantSending?" disabled":""}></textarea><button type="submit" class="mushi-submit mushi-send" aria-label="${L(e.sendAriaLabel)}"${t.assistantSending?" disabled":""}>\u2191</button></form>`}}function Dp(t){let e=t.locale.flows.roadmap,r=t.featureBoard.map(n=>{let i=String(n.id??""),o=!!n.my_vote,s=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">${L(String(n.subject??e.untitled))}</span></span><span class="mushi-row-meta">${L(s)} \xB7 ${L(e.voteCount.replace("{n}",String(Number(n.vote_count??0))))}</span>${t.callbacks.onFeatureBoardVote?`<button type="button" class="mushi-btn" data-vote-id="${L(i)}" aria-pressed="${o}">${L(o?e.voted:e.vote)}</button>`:""}</div>`}).join("");return {header:Ne(t,e.title,true),lead:"",body:`${t.reporterError?`<p class="mushi-error-inline" role="alert">${L(t.reporterError)}</p>`:""}${r||(t.listLoading?Ut(e.loading):`<p class="mushi-empty">${L(e.empty)}</p>`)}`,footer:""}}function Pp(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((a,u)=>{let c=a.rank||u+1;return `<li class="mushi-lb-row${t.testerReputation&&a.tester_id===t.testerReputation.tester_id?" me":""}"><span>#${c}</span><span class="mushi-row-title">${L(a.public_handle??a.display_name??e.anon)}</span><span>${(a.points_30d??a.total_points).toLocaleString()} pts</span></li>`}).join(""),s=t.testerReputation?.rank;return {header:Ne(t,e.title,true),lead:"",body:`${i?Ut(e.loading):""}${!i&&!n.length?`<p class="mushi-empty">${L(e.empty)}</p>`:""}<ol class="mushi-lb">${o}</ol>${s?`<p class="mushi-note">${L(e.myRank.replace("{rank}",String(s)))}</p>`:t.testerJwt?"":fe("open-account",L(e.signInPrompt),"mushi-link-btn")}<p class="mushi-note">${L(e.footer)}</p>`,footer:""}}function Bp(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:Ne(t,e.title,true),lead:"",body:`<div class="mushi-thread-summary"><p class="mushi-summary-text">${L(n)}</p>${o?`<p class="mushi-note">${L(o)}</p>`:""}</div>${fe("open-cross-app-reports",L(e.crossAppReports),"mushi-menu-item")}${fe("open-global-leaderboard",L(e.viewLeaderboard),"mushi-menu-item")}${fe("sign-out-tester",L(e.signOut),"mushi-link-btn")}`,footer:""}}return t.magicLinkSent?{header:Ne(t,e.checkEmailTitle,true),lead:"",body:`<p class="mushi-note">${L(e.magicLinkSent.replace("{email}",t.magicLinkEmail))}</p>${fe("resend-magic-link",L(e.resendEmail),"mushi-link-btn")}${t.magicLinkError?`<p class="mushi-error-inline" role="alert">${L(t.magicLinkError)}</p>`:""}`,footer:""}:{header:Ne(t,e.joinTitle,true),lead:"",body:`<p class="mushi-note">${L(e.signInPrompt)}</p><input type="email" class="mushi-input" data-role="magic-link-email" aria-label="${L(e.emailLabel)}" placeholder="${L(e.emailPlaceholder)}" autocomplete="email" value="${L(t.magicLinkEmail)}" />${t.magicLinkError?`<p class="mushi-error-inline" role="alert">${L(t.magicLinkError)}</p>`:""}`,footer:`<span></span>${fe("send-magic-link",L(t.magicLinkSending?e.sending:e.sendLink),"mushi-submit",t.magicLinkSending?' aria-busy="true"':"")}`}}function $p(t){let e=t.locale.flows.crossApp,r=t.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??e.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">${Wa({projectId:o,appName:s.name,appSlug:s.slug,appDomain:s.domain})} ${L(s.name)}</h3>${s.reports.map(a=>{let u=Nt(a,t.lang);return `<div class="mushi-report-row"><span class="mushi-row-top">${hi(u.label,u.tone)}<span class="mushi-row-title">${L(a.title??`#${a.short_id??a.id.slice(0,8)}`)}</span><span class="mushi-row-when">${L(gr(a.created_at))}</span></span></div>`}).join("")}</section>`).join("");return {header:Ne(t,e.title,true),lead:"",body:`${t.crossAppLoading?Ut(e.loading):""}${!t.crossAppLoading&&!r.length?`<p class="mushi-empty">${L(e.empty)}</p>`:""}${i}`,footer:""}}var L,fe,Ne,ja,Ut,gr,Wa,Ga=Ce(()=>{nn();});var Au={};ht(Au,{captureDomScreenshot:()=>bh});async function bh(t,e){let r=document.createElement("canvas"),n=r.getContext("2d",{willReadFrequently:true});if(!n)return e("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 Sh(t),u=new XMLSerializer().serializeToString(a).replace(Eh,""),c=`
|
|
1
|
+
(function(){'use strict';var ul=Object.defineProperty;var Ce=(t,e)=>()=>(t&&(e=t(t=0)),e);var ht=(t,e)=>{for(var r in e)ul(t,r,{get:e[r],enumerable:true});};function ll(t){return t instanceof Uint8Array||ArrayBuffer.isView(t)&&t.constructor.name==="Uint8Array"&&"BYTES_PER_ELEMENT"in t&&t.BYTES_PER_ELEMENT===1}function mo(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 Qt(t,e,r=""){let n=ll(t),i=t?.length,o=e!==void 0;if(!n||o){let s=r&&`"${r}" `,a="",u=n?`length=${i}`:`type=${typeof t}`,c=s+"expected Uint8Array"+a+", got "+u;throw n?new RangeError(c):new TypeError(c)}return t}function go(t){if(typeof t!="function"||typeof t.create!="function")throw new TypeError("Hash must wrapped by utils.createHasher");if(mo(t.outputLen),mo(t.blockLen),t.outputLen<1)throw new Error('"outputLen" must be >= 1');if(t.blockLen<1)throw new Error('"blockLen" must be >= 1')}function At(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 Tr(t,e){Qt(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 ze(...t){for(let e=0;e<t.length;e++)t[e].fill(0);}function Ar(t){return new DataView(t.buffer,t.byteOffset,t.byteLength)}function Be(t,e){return t<<32-e|t>>>e}function ft(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 mt,Ir=Ce(()=>{mt=t=>({oid:Uint8Array.from([6,9,96,134,72,1,101,3,4,2,t])});});function bo(t,e,r){return t&e^~t&r}function Eo(t,e,r){return t&e^t&r^e&r}var er,Ge,Ye,ae,ue,yo=Ce(()=>{Ir();er=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=Ar(this.buffer);}update(e){At(this),Qt(e);let{view:r,buffer:n,blockLen:i}=this,o=e.length;for(let s=0;s<o;){let a=Math.min(i-this.pos,o-s);if(a===i){let u=Ar(e);for(;i<=o-s;s+=i)this.process(u,s);continue}n.set(e.subarray(s,s+a),this.pos),this.pos+=a,s+=a,this.pos===i&&(this.process(r,0),this.pos=0);}return this.length+=e.length,this.roundClean(),this}digestInto(e){At(this),Tr(e,this),this.finished=true;let{buffer:r,view:n,blockLen:i,isLE:o}=this,{pos:s}=this;r[s++]=128,ze(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(e),u=this.outputLen;if(u%4)throw new Error("_sha2: outputLen must be aligned to 32bit");let c=u/4,p=this.get();if(c>p.length)throw new Error("_sha2: outputLen bigger than state");for(let h=0;h<c;h++)a.setUint32(4*h,p[h],o);}digest(){let{buffer:e,outputLen:r}=this;this.digestInto(e);let n=e.slice(0,r);return this.destroy(),n}_cloneInto(e){e||=new this.constructor,e.set(...this.get());let{blockLen:r,buffer:n,length:i,finished:o,destroyed:s,pos:a}=this;return e.destroyed=s,e.finished=o,e.length=i,e.pos=a,i%r&&e.buffer.set(n),e}clone(){return this._cloneInto()}},Ge=Uint32Array.from([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),Ye=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 cl(t,e=false){return e?{h:Number(t&Mr),l:Number(t>>vo&Mr)}:{h:Number(t>>vo&Mr)|0,l:Number(t&Mr)|0}}function wo(t,e=false){let r=t.length,n=new Uint32Array(r),i=new Uint32Array(r);for(let o=0;o<r;o++){let{h:s,l:a}=cl(t[o],e);[n[o],i[o]]=[s,a];}return [n,i]}function Oe(t,e,r,n){let i=(e>>>0)+(n>>>0);return {h:t+r+(i/2**32|0)|0,l:i|0}}var Mr,vo,An,In,gt,bt,tr,rr,So,xo,Ro,ko,_o,Co,To=Ce(()=>{Mr=BigInt(4294967295),vo=BigInt(32);An=(t,e,r)=>t>>>r,In=(t,e,r)=>t<<32-r|e>>>r,gt=(t,e,r)=>t>>>r|e<<32-r,bt=(t,e,r)=>t<<32-r|e>>>r,tr=(t,e,r)=>t<<64-r|e>>>r-32,rr=(t,e,r)=>t>>>r-32|e<<64-r;So=(t,e,r)=>(t>>>0)+(e>>>0)+(r>>>0),xo=(t,e,r,n)=>e+r+n+(t/2**32|0)|0,Ro=(t,e,r,n)=>(t>>>0)+(e>>>0)+(r>>>0)+(n>>>0),ko=(t,e,r,n,i)=>e+r+n+i+(t/2**32|0)|0,_o=(t,e,r,n,i)=>(t>>>0)+(e>>>0)+(r>>>0)+(n>>>0)+(i>>>0),Co=(t,e,r,n,i,o)=>e+r+n+i+o+(t/2**32|0)|0;});var Mn={};ht(Mn,{_SHA224:()=>Pr,_SHA256:()=>Dr,_SHA384:()=>$r,_SHA512:()=>Br,_SHA512_224:()=>Fr,_SHA512_256:()=>Or,sha224:()=>gl,sha256:()=>ml,sha384:()=>El,sha512:()=>bl,sha512_224:()=>vl,sha512_256:()=>yl});var pl,it,Lr,Dr,Pr,Ao,hl,fl,ot,st,It,Br,$r,de,pe,Fr,Or,ml,gl,bl,El,yl,vl,Ln=Ce(()=>{yo();To();Ir();pl=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]),it=new Uint32Array(64),Lr=class extends er{constructor(e){super(64,e,8,false);}get(){let{A:e,B:r,C:n,D:i,E:o,F:s,G:a,H:u}=this;return [e,r,n,i,o,s,a,u]}set(e,r,n,i,o,s,a,u){this.A=e|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(e,r){for(let h=0;h<16;h++,r+=4)it[h]=e.getUint32(r,false);for(let h=16;h<64;h++){let m=it[h-15],w=it[h-2],x=Be(m,7)^Be(m,18)^m>>>3,g=Be(w,17)^Be(w,19)^w>>>10;it[h]=g+it[h-7]+x+it[h-16]|0;}let{A:n,B:i,C:o,D:s,E:a,F:u,G:c,H:p}=this;for(let h=0;h<64;h++){let m=Be(a,6)^Be(a,11)^Be(a,25),w=p+m+bo(a,u,c)+pl[h]+it[h]|0,g=(Be(n,2)^Be(n,13)^Be(n,22))+Eo(n,i,o)|0;p=c,c=u,u=a,a=s+w|0,s=o,o=i,i=n,n=w+g|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,c=c+this.G|0,p=p+this.H|0,this.set(n,i,o,s,a,u,c,p);}roundClean(){ze(it);}destroy(){this.destroyed=true,this.set(0,0,0,0,0,0,0,0),ze(this.buffer);}},Dr=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(32);}},Pr=class extends Lr{A=Ye[0]|0;B=Ye[1]|0;C=Ye[2]|0;D=Ye[3]|0;E=Ye[4]|0;F=Ye[5]|0;G=Ye[6]|0;H=Ye[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(t=>BigInt(t))),hl=Ao[0],fl=Ao[1],ot=new Uint32Array(80),st=new Uint32Array(80),It=class extends er{constructor(e){super(128,e,16,false);}get(){let{Ah:e,Al:r,Bh:n,Bl:i,Ch:o,Cl:s,Dh:a,Dl:u,Eh:c,El:p,Fh:h,Fl:m,Gh:w,Gl:x,Hh:g,Hl:y}=this;return [e,r,n,i,o,s,a,u,c,p,h,m,w,x,g,y]}set(e,r,n,i,o,s,a,u,c,p,h,m,w,x,g,y){this.Ah=e|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=c|0,this.El=p|0,this.Fh=h|0,this.Fl=m|0,this.Gh=w|0,this.Gl=x|0,this.Hh=g|0,this.Hl=y|0;}process(e,r){for(let v=0;v<16;v++,r+=4)ot[v]=e.getUint32(r),st[v]=e.getUint32(r+=4);for(let v=16;v<80;v++){let C=ot[v-15]|0,T=st[v-15]|0,b=gt(C,T,1)^gt(C,T,8)^An(C,T,7),f=bt(C,T,1)^bt(C,T,8)^In(C,T,7),E=ot[v-2]|0,A=st[v-2]|0,$=gt(E,A,19)^tr(E,A,61)^An(E,A,6),U=bt(E,A,19)^rr(E,A,61)^In(E,A,6),q=Ro(f,U,st[v-7],st[v-16]),se=ko(q,b,$,ot[v-7],ot[v-16]);ot[v]=se|0,st[v]=q|0;}let{Ah:n,Al:i,Bh:o,Bl:s,Ch:a,Cl:u,Dh:c,Dl:p,Eh:h,El:m,Fh:w,Fl:x,Gh:g,Gl:y,Hh:_,Hl:k}=this;for(let v=0;v<80;v++){let C=gt(h,m,14)^gt(h,m,18)^tr(h,m,41),T=bt(h,m,14)^bt(h,m,18)^rr(h,m,41),b=h&w^~h&g,f=m&x^~m&y,E=_o(k,T,f,fl[v],st[v]),A=Co(E,_,C,b,hl[v],ot[v]),$=E|0,U=gt(n,i,28)^tr(n,i,34)^tr(n,i,39),q=bt(n,i,28)^rr(n,i,34)^rr(n,i,39),se=n&o^n&a^o&a,Q=i&s^i&u^s&u;_=g|0,k=y|0,g=w|0,y=x|0,w=h|0,x=m|0,{h,l:m}=Oe(c|0,p|0,A|0,$|0),c=a|0,p=u|0,a=o|0,u=s|0,o=n|0,s=i|0;let V=So($,q,Q);n=xo(V,A,U,se),i=V|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:c,l:p}=Oe(this.Dh|0,this.Dl|0,c|0,p|0),{h,l:m}=Oe(this.Eh|0,this.El|0,h|0,m|0),{h:w,l:x}=Oe(this.Fh|0,this.Fl|0,w|0,x|0),{h:g,l:y}=Oe(this.Gh|0,this.Gl|0,g|0,y|0),{h:_,l:k}=Oe(this.Hh|0,this.Hl|0,_|0,k|0),this.set(n,i,o,s,a,u,c,p,h,m,w,x,g,y,_,k);}roundClean(){ze(ot,st);}destroy(){this.destroyed=true,ze(this.buffer),this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0);}},Br=class extends It{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);}},$r=class extends It{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);}},de=Uint32Array.from([2352822216,424955298,1944164710,2312950998,502970286,855612546,1738396948,1479516111,258812777,2077511080,2011393907,79989058,1067287976,1780299464,286451373,2446758561]),pe=Uint32Array.from([573645204,4230739756,2673172387,3360449730,596883563,1867755857,2520282905,1497426621,2519219938,2827943907,3193839141,1401305490,721525244,746961066,246885852,2177182882]),Fr=class extends It{Ah=de[0]|0;Al=de[1]|0;Bh=de[2]|0;Bl=de[3]|0;Ch=de[4]|0;Cl=de[5]|0;Dh=de[6]|0;Dl=de[7]|0;Eh=de[8]|0;El=de[9]|0;Fh=de[10]|0;Fl=de[11]|0;Gh=de[12]|0;Gl=de[13]|0;Hh=de[14]|0;Hl=de[15]|0;constructor(){super(28);}},Or=class extends It{Ah=pe[0]|0;Al=pe[1]|0;Bh=pe[2]|0;Bl=pe[3]|0;Ch=pe[4]|0;Cl=pe[5]|0;Dh=pe[6]|0;Dl=pe[7]|0;Eh=pe[8]|0;El=pe[9]|0;Fh=pe[10]|0;Fl=pe[11]|0;Gh=pe[12]|0;Gl=pe[13]|0;Hh=pe[14]|0;Hl=pe[15]|0;constructor(){super(32);}},ml=ft(()=>new Dr,mt(1)),gl=ft(()=>new Pr,mt(4)),bl=ft(()=>new Br,mt(3)),El=ft(()=>new $r,mt(2)),yl=ft(()=>new Or,mt(6)),vl=ft(()=>new Fr,mt(5));});var Io={};ht(Io,{_HMAC:()=>nr,hmac:()=>wl});var nr,wl,Mo=Ce(()=>{Ir();nr=class{oHash;iHash;blockLen;outputLen;canXOF=false;finished=false;destroyed=false;constructor(e,r){if(go(e),Qt(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),ze(i);}update(e){return At(this),this.iHash.update(e),this}digestInto(e){At(this),Tr(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:s,outputLen:a}=this;return e=e,e.finished=i,e.destroyed=o,e.blockLen=s,e.outputLen=a,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();}},wl=(()=>{let t=((e,r,n)=>new nr(e,r).update(n).digest());return t.create=(e,r)=>new nr(e,r),t})();});function ip(t){let e=(t??"").toLowerCase().split(/[-_]/)[0];return Gd.includes(e)?e:"en"}function _t(t="en"){return np[ip(t)]}function mr(t,e={}){return t.replace(/\{(\w+)\}/g,(r,n)=>{let i=e[n];return i==null?"":String(i)})}function op(t){return zd.includes(t)}function sp(t){let e=(t.user_category??"").trim().toLowerCase().replace(/[\s-]+/g,"_");return e==="feature"||e==="feature_request"||e==="idea"}function Nt(t,e="en"){let r=_t(e),n=(t.status??"").trim(),i=op(n)?Yd[n]:"received",o=t.fixed_in_version?.trim()||null;(n==="fixed"||n==="resolved")&&o&&(i="fixed_version"),(t.awaiting_reporter||t.awaiting_reporter_at)&&wa.has(i)&&(i="waiting");let a=sp(t),u=r.status[i],c=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=t.closed_reason??null;i==="closed"&&(c=p&&p!=="spam"&&p in r.closedReason?r.closedReason[p]:r.closedReason.none);let h=t.group_bucket??"none",m=wa.has(i)||i==="waiting"?h==="few"?r.others.few:h==="many"?r.others.many:null:null;return {key:i,label:mr(u,{version:o}),tone:Xd[i],detail:mr(c,{version:o}),canVerify:i==="fixed_next"||i==="fixed_version"||i==="fixed",othersNote:m,hidden:i==="closed"&&p==="spam"}}function ap(t,e={},r="en"){let n=_t(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:mr(n.timeline[t],{text:e.text,version:e.version})}function ci(t){return t.kind==="comment"||t.kind==="reporter_comment"||t.kind==="info_requested"}function Sa(t,e="en"){return t.custom||!Jd.includes(t.kind)?t.text:ap(t.kind,{text:t.body??null,version:t.version??null,closed_reason:t.closed_reason??null},e)}function xa(t,e="en"){let r=_t(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 Ra(t){return /^[^\s@]+@[^\s@]+\.[^\s@]{2,}$/.test(t.trim())}var zd,Gd,Yd,Xd,Jd,Zd,Qd,ep,tp,rp,np,wa,nn=Ce(()=>{zd=["new","pending","submitted","queued","classified","grouped","fixing","fixed","dismissed","triaged","in_progress","resolved","verified","reopened"],Gd=["en","ja","es","th","zh"],Yd={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"},Xd={received:"neutral",reviewing:"info",reviewing_again:"info",fixing:"progress",verified:"success-muted",fixed_next:"success",fixed_version:"success",fixed:"success",closed:"muted",waiting:"attention"},Jd=["received","reviewing","duplicate_linked","info_requested","comment","reporter_comment","fix_started","fixed","released","verified","reopened","closed"],Zd={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"}},Qd={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"}},ep={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"}},tp={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"}},rp={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"}},np={en:Zd,ja:Qd,es:ep,th:tp,zh:rp};wa=new Set(["received","reviewing","reviewing_again","fixing"]);});var za={};ht(za,{accountView:()=>Bp,assistantView:()=>Lp,crossAppView:()=>$p,detailView:()=>Mp,initViews:()=>xp,leaderboardView:()=>Pp,pickUpdateToast:()=>Rp,renderOptIns:()=>Ka,reportsView:()=>Tp,roadmapView:()=>Dp});function xp(t){({esc:L,btn:fe,renderHeader:Ne,chipLabel:ja,skeleton:Ut,formatRelativeTime:gr,renderAppIconHtml:Wa}=t);}function Rp(t,e,r){let n=t.filter(c=>(c.unread_count??0)>0&&!Nt(c,e).hidden),i=n.reduce((c,p)=>c+(p.unread_count??0),0);if(!i)return null;if(n.length>1)return {text:mr(_t(e).ui.updates,{n:i}),reportId:null};let o=n[0],s=Nt(o,e),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 Ka(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 ${L(n.emailCheckInbox)}</p>`):(r.push(`<label class="mushi-check"><input type="checkbox" data-action="email-optin"${t.emailOptInOpen?" checked":""} /> ${L(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="${L(n.emailOptIn)}" placeholder="${L(n.emailPlaceholder)}" value="${L(t.channels.emailPrefill)}" />${fe("save-email",L(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">${L(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} ${L(e.notifyOn)}</p>`:fe("notify-me",`\u{1F514} ${L(e.notifyMe)}`,"mushi-btn",t.pushState==="asking"?' aria-busy="true"':"")),t.pushState==="error"&&r.push(`<p class="mushi-note mushi-error-inline" role="alert">${L(t.rc.ui.sendFailed)}</p>`)),r.length?`<div class="mushi-optins">${r.join("")}</div>`:""}function hi(t,e){return `<span class="mushi-pill mushi-tone-${e}">${L(t)}</span>`}function Va(t){return t.title??t.summary??t.description??`#${t.id.slice(0,8)}`}function kp(t,e){let r=(e??"").toLowerCase();return !r||r==="other"?"":ja(t,r==="feature_request"?"idea":r)}function _p(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 Cp(t,e){let r=Nt(e,t.lang);if(r.hidden)return "";let n=(e.unread_count??0)>0,i=[kp(t,e.user_category),e.page,r.othersNote].filter(Boolean).map(a=>L(String(a))).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:"",s=Va(e);return `<button type="button" class="mushi-report-row${n?" unread":""}" data-report-id="${L(e.id)}" aria-label="${L(`${r.label}: ${s}`)}"><span class="mushi-row-top">${hi(r.label,r.tone)}<span class="mushi-row-title">${L(s)}</span><span class="mushi-row-when">${L(gr(e.last_event_at??e.created_at))}</span></span>${i?`<span class="mushi-row-meta">${i}</span>`:""}${o?`<span class="mushi-row-news">${L(o)}</span>`:""}</button>`}function Tp(t){let e=t.rc,r=_p(t.reporterReports).map(i=>Cp(t,i)).join(""),n=t.reporterError?`<p class="mushi-error-inline" role="alert">${L(e.ui.loadError)} ${fe("retry-list",L(e.ui.retry),"mushi-link-btn")}</p>${r}`:r||(t.listLoading?Ut(t.locale.flows.reports.loading):`<p class="mushi-empty">${L(e.ui.empty)}</p>`);return {header:Ne(t,t.locale.flows.reports.title,true),lead:"",body:`<div class="mushi-report-list">${n}</div>`,footer:""}}function Ap(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:ci(i)?i.body??i.text:Sa(i,t.lang),talk:ci(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 Ip(t,e){let r=e.at?`<time datetime="${L(e.at)}">${L(gr(e.at))}</time>`:"";if(!e.talk)return `<li class="mushi-event"><span>${L(e.text)}</span>${r}</li>`;let n=!!e.mine,i=e.pending?e.pending.state==="sending"?`<span class="mushi-bubble-state">${L(t.rc.ui.sending)}</span>`:`<span class="mushi-bubble-state mushi-error-inline">${L(t.rc.ui.sendFailed)} \xB7 ${fe("retry-reply",L(t.rc.ui.retry),"mushi-link-btn",` data-value="${e.pending.id}"`)}</span>`:r;return `<li class="mushi-bubble ${n?"mine":"dev"}"><strong>${L(e.who??"")}</strong><p>${L(e.text)}</p>${i}</li>`}function Mp(t){let e=t.rc,r=t.reporterReports.find(h=>h.id===t.selectedReportId),n=Nt(r??{status:"new"},t.lang),i=[r?.page,r?.app_version?`v${r.app_version}`:"",r?gr(r.created_at):""].filter(Boolean).map(h=>L(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">${L(n.detail)}${n.othersNote?` ${L(n.othersNote)}.`:""}</p><p class="mushi-summary-text">${L(r?r.description??Va(r):`#${(t.selectedReportId??"").slice(0,8)}`)}</p>${r?.screenshot_thumb_url?`<img class="mushi-card-thumb" src="${L(r.screenshot_thumb_url)}" alt="" />`:""}${i?`<p class="mushi-note">${i}</p>`:""}</div>`,s=Ap(t,r),a=s.some(h=>h.talk&&!h.mine),u;t.threadLoading&&s.length<=1&&!t.pendingReplies.length?u=Ut(t.locale.flows.thread.loading):u=`${t.threadError?`<p class="mushi-error-inline" role="alert">${L(e.ui.loadError)} ${fe("retry-thread",L(e.ui.retry),"mushi-link-btn")}</p>`:""}<ol class="mushi-timeline">${s.map(h=>Ip(t,h)).join("")}</ol>${!a&&!t.threadError&&!t.threadLoading?`<p class="mushi-empty">${L(e.ui.noReplies)}</p>`:""}`;let c=t.actionPending?' disabled aria-busy="true"':"",p=n.canVerify?`<div class="mushi-verify" role="group" aria-label="${L(n.detail)}">${fe("reporter-confirms",L(e.ui.yes),"mushi-btn",c)}${fe("reporter-not-fixed",L(e.ui.notYet),"mushi-btn",c)}</div>`:"";return {header:Ne(t,t.locale.panel.reportTitle,true),lead:o,body:`<div class="mushi-thread">${u}</div>${Ka(t)}`,footer:`${p}${t.actionError?`<p class="mushi-error-inline mushi-thread-action-error" role="alert">${L(t.actionError)}</p>`:""}<div class="mushi-thread-composer"><textarea class="mushi-input mushi-reply" data-role="reporter-reply" rows="1" maxlength="2000" placeholder="${L(t.locale.flows.thread.replyPlaceholder)}" aria-label="${L(t.locale.flows.thread.replyPlaceholder)}"></textarea>${fe("reporter-reply","\u2191","mushi-submit mushi-send",` aria-label="${L(t.locale.panel.send)}"`)}</div>`}}function Lp(t){let e=t.locale.assistant,r=t.callbacks.assistantGreeting||e.defaultGreeting,n=c=>c.length?`<div class="mushi-chips">${c.map(p=>`<button type="button" class="mushi-chip mushi-chip-sm" data-action="assistant-suggest" data-value="${L(p)}">${L(p)}</button>`).join("")}</div>`:"",i=(c,p="mushi-link-btn")=>fe("assistant-report",L(c),p),o=t.assistantTurns.length===0?`<p class="mushi-assistant-greeting">${L(r)}</p>${n(t.callbacks.assistantSuggestions??[])}`:t.assistantTurns.map(c=>`<div class="mushi-assistant-msg ${c.role==="user"?"mine":"dev"}">${L(c.text)}</div>${n(c.options??[])}${c.offerReport?i(e.fileReportCta,"mushi-btn"):""}`).join(""),s=t.assistantSending?`<div class="mushi-assistant-msg dev" role="status" aria-live="polite">${L(e.thinking)}</div>`:"",a=t.assistantError?`<p class="mushi-error-inline" role="alert">${L(t.assistantError)} ${i(e.fileReportCta)}</p>`:"",u=t.assistantTurns.length&&!t.assistantSending&&!t.assistantError?i(e.stillStuckCta):"";return {header:Ne(t,t.callbacks.assistantLabel||e.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="${L(e.inputPlaceholder)}" aria-label="${L(e.inputPlaceholder)}"${t.assistantSending?" disabled":""}></textarea><button type="submit" class="mushi-submit mushi-send" aria-label="${L(e.sendAriaLabel)}"${t.assistantSending?" disabled":""}>\u2191</button></form>`}}function Dp(t){let e=t.locale.flows.roadmap,r=t.featureBoard.map(n=>{let i=String(n.id??""),o=!!n.my_vote,s=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">${L(String(n.subject??e.untitled))}</span></span><span class="mushi-row-meta">${L(s)} \xB7 ${L(e.voteCount.replace("{n}",String(Number(n.vote_count??0))))}</span>${t.callbacks.onFeatureBoardVote?`<button type="button" class="mushi-btn" data-vote-id="${L(i)}" aria-pressed="${o}">${L(o?e.voted:e.vote)}</button>`:""}</div>`}).join("");return {header:Ne(t,e.title,true),lead:"",body:`${t.reporterError?`<p class="mushi-error-inline" role="alert">${L(t.reporterError)}</p>`:""}${r||(t.listLoading?Ut(e.loading):`<p class="mushi-empty">${L(e.empty)}</p>`)}`,footer:""}}function Pp(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((a,u)=>{let c=a.rank||u+1;return `<li class="mushi-lb-row${t.testerReputation&&a.tester_id===t.testerReputation.tester_id?" me":""}"><span>#${c}</span><span class="mushi-row-title">${L(a.public_handle??a.display_name??e.anon)}</span><span>${(a.points_30d??a.total_points).toLocaleString()} pts</span></li>`}).join(""),s=t.testerReputation?.rank;return {header:Ne(t,e.title,true),lead:"",body:`${i?Ut(e.loading):""}${!i&&!n.length?`<p class="mushi-empty">${L(e.empty)}</p>`:""}<ol class="mushi-lb">${o}</ol>${s?`<p class="mushi-note">${L(e.myRank.replace("{rank}",String(s)))}</p>`:t.testerJwt?"":fe("open-account",L(e.signInPrompt),"mushi-link-btn")}<p class="mushi-note">${L(e.footer)}</p>`,footer:""}}function Bp(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:Ne(t,e.title,true),lead:"",body:`<div class="mushi-thread-summary"><p class="mushi-summary-text">${L(n)}</p>${o?`<p class="mushi-note">${L(o)}</p>`:""}</div>${fe("open-cross-app-reports",L(e.crossAppReports),"mushi-menu-item")}${fe("open-global-leaderboard",L(e.viewLeaderboard),"mushi-menu-item")}${fe("sign-out-tester",L(e.signOut),"mushi-link-btn")}`,footer:""}}return t.magicLinkSent?{header:Ne(t,e.checkEmailTitle,true),lead:"",body:`<p class="mushi-note">${L(e.magicLinkSent.replace("{email}",t.magicLinkEmail))}</p>${fe("resend-magic-link",L(e.resendEmail),"mushi-link-btn")}${t.magicLinkError?`<p class="mushi-error-inline" role="alert">${L(t.magicLinkError)}</p>`:""}`,footer:""}:{header:Ne(t,e.joinTitle,true),lead:"",body:`<p class="mushi-note">${L(e.signInPrompt)}</p><input type="email" class="mushi-input" data-role="magic-link-email" aria-label="${L(e.emailLabel)}" placeholder="${L(e.emailPlaceholder)}" autocomplete="email" value="${L(t.magicLinkEmail)}" />${t.magicLinkError?`<p class="mushi-error-inline" role="alert">${L(t.magicLinkError)}</p>`:""}`,footer:`<span></span>${fe("send-magic-link",L(t.magicLinkSending?e.sending:e.sendLink),"mushi-submit",t.magicLinkSending?' aria-busy="true"':"")}`}}function $p(t){let e=t.locale.flows.crossApp,r=t.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??e.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">${Wa({projectId:o,appName:s.name,appSlug:s.slug,appDomain:s.domain})} ${L(s.name)}</h3>${s.reports.map(a=>{let u=Nt(a,t.lang);return `<div class="mushi-report-row"><span class="mushi-row-top">${hi(u.label,u.tone)}<span class="mushi-row-title">${L(a.title??`#${a.short_id??a.id.slice(0,8)}`)}</span><span class="mushi-row-when">${L(gr(a.created_at))}</span></span></div>`}).join("")}</section>`).join("");return {header:Ne(t,e.title,true),lead:"",body:`${t.crossAppLoading?Ut(e.loading):""}${!t.crossAppLoading&&!r.length?`<p class="mushi-empty">${L(e.empty)}</p>`:""}${i}`,footer:""}}var L,fe,Ne,ja,Ut,gr,Wa,Ga=Ce(()=>{nn();});var Au={};ht(Au,{captureDomScreenshot:()=>bh});async function bh(t,e){let r=document.createElement("canvas"),n=r.getContext("2d",{willReadFrequently:true});if(!n)return e("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 Sh(t),u=new XMLSerializer().serializeToString(a).replace(Eh,""),c=`
|
|
2
2
|
<svg xmlns="http://www.w3.org/2000/svg" width="${i}" height="${o}">
|
|
3
3
|
<foreignObject width="100%" height="100%">
|
|
4
4
|
<div xmlns="http://www.w3.org/1999/xhtml">
|
|
@@ -6,14 +6,14 @@
|
|
|
6
6
|
</div>
|
|
7
7
|
</foreignObject>
|
|
8
8
|
</svg>
|
|
9
|
-
`,p=new Image,h=`data:image/svg+xml;charset=utf-8,${encodeURIComponent(c)}`,m=false,v=k=>{let g=k;/^img-src|^default-src/.test(g.violatedDirective??"")&&/^data/.test(g.blockedURI??"")&&(m=true);};return document.addEventListener("securitypolicyviolation",v),new Promise(k=>{let g=false,y=(R,w)=>{g||(g=true,clearTimeout(_),document.removeEventListener("securitypolicyviolation",v),w&&e(w),k(R));},_=setTimeout(()=>y(null,"timeout"),5e3);p.onload=()=>{try{if(n.drawImage(p,0,0,i,o),rf(n,i,o)){y(null,"unsupported");return}y(r.toDataURL("image/jpeg",.7));}catch{y(null,"taint");}},p.onerror=()=>setTimeout(()=>y(null,m?"csp":"error"),0),p.src=h;})}async function Sh(t){let e=document.documentElement,r=e.cloneNode(true),n=e.querySelectorAll("link"),i=r.querySelectorAll("link"),o=new Map;n.length===i.length&&n.forEach((h,m)=>o.set(h,i[m]));let{offscreen:s,pins:a,backgrounds:u}=Rh(e,r);Zh(e,r);let c=[zt,...t?.redactSelectors??Ru,...t?.maskSelectors??[],...t?.blockSelectors??[]];Hh(Array.from(e.querySelectorAll(xu)),Array.from(r.querySelectorAll(xu)),h=>s.has(h)||c.some(m=>ku(h,m))),$h(a),await Th(u.filter(h=>!c.some(m=>ku(h.live,m)))),r.querySelector("#mushi-mushi-widget")?.remove(),await zh(r,o),Vh(r),Wh(r),tf(r),ef(r);let p=[zt,...t?.redactSelectors??Ru];for(let h of p)for(let m of Bi(r,h))Kh(m);for(let h of t?.blockSelectors??[])for(let m of Bi(r,h))m.remove();for(let h of t?.maskSelectors??[])for(let m of Bi(r,h))of(m);return r}function Rh(t,e){let r=new Set,n=[],i=[],o=[t,...Array.from(t.querySelectorAll("*"))],s=[e,...Array.from(e.querySelectorAll("*"))];if(o.length!==s.length)return {offscreen:r,pins:n,backgrounds:i};let a=Fh(),u=[],c=document.scrollingElement,p=new Map,h=(g,y,_)=>{let R=p.get(g);R||p.set(g,R=new Map),R.set(y,_);},m=[],v=[],k=false;for(let g=0;g<o.length;g++){let y=o[g],_=s[g],R=getComputedStyle(y);if(u.push(R),y===document.body&&(k=true),k)if(R.display==="none")h(_,"display","none");else {let w=y.parentElement;R.visibility!=="visible"&&w&&getComputedStyle(w).visibility==="visible"&&h(_,"visibility",R.visibility),R.opacity==="0"&&h(_,"opacity","0"),R.backgroundImage.includes("url(")&&v.push(g);}if(a.has(y))for(let w of xh)h(_,w,R.getPropertyValue(w));if(R.position==="sticky"&&y instanceof HTMLElement){let w=Oh(y);w&&(h(_,"position","relative"),h(_,"top",`${w.top}px`),h(_,"left",`${w.left}px`),h(_,"bottom","auto"),h(_,"right","auto"));}y!==c&&(y.scrollTop>0||y.scrollLeft>0)&&m.push(g);}for(let g of m){let y=o[g],_=y.children,R=s[g].children;for(let w=0;w<_.length&&w<R.length;w++){let C=getComputedStyle(_[w]);if(C.position==="fixed")continue;let T=p.get(R[w])?.get("transform")??C.transform,b=`translate(${-y.scrollLeft}px, ${-y.scrollTop}px)`;h(R[w],"transform",T&&T!=="none"?`${b} ${T}`:b);}}(window.scrollX||window.scrollY)&&(h(e,"position","relative"),h(e,"top",`${-window.scrollY}px`),h(e,"left",`${-window.scrollX}px`));for(let[g,y]of p){let _=Array.from(y,([R,w])=>`${R}:${w}!important`).join(";");g.setAttribute("style",`${g.getAttribute("style")??""};${_}`);}Dh(o,s,u,r,n);for(let g of v)r.has(o[g])||i.push({live:o[g],clone:s[g],value:u[g].backgroundImage});return {offscreen:r,pins:n,backgrounds:i}}async function Th(t){let e=new Map,r=0,n=i=>{let o=e.get(i);return o||(o=e.size>=kh?Promise.resolve(null):Ih(i).then(s=>!s||r+s.length>_h?null:(r+=s.length,s)),e.set(i,o)),o};await Promise.all(t.map(async i=>{let o=Array.from(i.value.matchAll(Ah),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,c)=>{s[c]&&(a=a.split(u).join(s[c]));}),a!==i.value&&i.clone.setAttribute("style",`${i.clone.getAttribute("style")??""};background-image:${a}!important`);}));}async function Ih(t){if(typeof fetch!="function")return null;let e=typeof AbortController=="function"?new AbortController:null,r=setTimeout(()=>e?.abort(),Cu);try{let n=await fetch(t,{cache:"force-cache",signal:e?.signal});if(!n.ok)return null;let i=await n.blob();if(i.size>Ch||!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 Dh(t,e,r,n,i){let o=document.body?t.indexOf(document.body):-1;if(o<0)return;let s=window.innerWidth,a=window.innerHeight,u=new Map,c=new Array(t.length).fill(false),p=new Array(t.length).fill(false);for(let m=o;m<t.length;m++)u.set(t[m],m);c[o]=true;for(let m=t.length-1;m>o;m--){let v=t[m],k=v.getBoundingClientRect();if((k.width>0||k.height>0)&&(k.bottom>0&&k.top<a&&k.right>0&&k.left<s?c[m]=true:p[m]=true),r[m].position==="fixed"&&(c[m]=true),c[m]){p[m]=false;let g=v.parentElement?u.get(v.parentElement):void 0;g!==void 0&&(c[g]=true);}else p[m]&&n.add(v);}let h=new Array(t.length).fill(false);for(let m=o+1;m<t.length;m++){let v=t[m],k=v.parentElement?u.get(v.parentElement):void 0;if(k===void 0)continue;if(h[k]){h[m]=true;continue}if(!p[m]||!(v instanceof HTMLElement))continue;let g=r[m];if(!Mh.test(g.display))continue;h[m]=true;let y=Lh.test(r[k].display)&&g.float==="none"&&(g.position==="static"||g.position==="relative");i.push({clone:e[m],width:v.offsetWidth,height:v.offsetHeight,marginTop:y?Ph(v):null,marginBottom:y?Bh(v):null});}}function Ph(t){let e=t.previousElementSibling;return !(e instanceof HTMLElement)||e.offsetParent!==t.offsetParent?null:Math.max(0,t.offsetTop-(e.offsetTop+e.offsetHeight))}function Bh(t){let e=t.nextElementSibling;return !(e instanceof HTMLElement)||e.offsetParent!==t.offsetParent?null:Math.max(0,e.offsetTop-(t.offsetTop+t.offsetHeight))}function $h(t){for(let e of t){e.clone.replaceChildren();let r=`width:${e.width}px!important;height:${e.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;`;e.marginTop!==null&&(r+=`margin-top:${e.marginTop}px!important;`),e.marginBottom!==null&&(r+=`margin-bottom:${e.marginBottom}px!important;`),e.clone.setAttribute("style",`${e.clone.getAttribute("style")??""};${r}`);}}function Fh(){try{return new Set(document.getAnimations().map(t=>t.effect?.target).filter(t=>t instanceof Element&&!t.pseudoElement))}catch{return new Set}}function Oh(t){let e=t.getBoundingClientRect(),r=t.style.getPropertyValue("position"),n=t.style.getPropertyPriority("position");t.style.setProperty("position","static","important");let i=t.getBoundingClientRect();t.style.removeProperty("position"),r&&t.style.setProperty("position",r,n);let o=e.top-i.top,s=e.left-i.left;return o||s?{top:o,left:s}:null}function Hh(t,e,r){let n=0,i=0;for(let o=0;o<e.length;o++){let s=e[o],a=t[o],u=a?.getBoundingClientRect(),c=a instanceof HTMLElement&&a.offsetWidth>0?{width:a.offsetWidth,height:a.offsetHeight}:u&&{width:u.width,height:u.height},p=null;a&&c&&c.width>0&&c.height>0&&n<vh&&i<wh&&!r(a)&&(p=Uh(a),p&&(n++,i+=p.url.length)),jh(s,p,c);}}function Uh(t){try{let e=null,r=0,n=0;if(t instanceof HTMLCanvasElement?[e,r,n]=[t,t.width,t.height]:t instanceof HTMLImageElement&&t.complete&&t.naturalWidth>0?[e,r,n]=[t,t.naturalWidth,t.naturalHeight]:t instanceof HTMLVideoElement&&t.readyState>=2&&([e,r,n]=[t,t.videoWidth,t.videoHeight]),!e||r<=0||n<=0)return null;let i=Math.min(1,Nh/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(e,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 ku(t,e){try{return t.closest(e)!==null}catch{return false}}function jh(t,e,r){let n=t.ownerDocument.createElement(e?"img":"div");for(let a of t.getAttributeNames())qh.has(a)||n.setAttribute(a,t.getAttribute(a)??"");let i=r?`width:${r.width}px;height:${r.height}px;`:"";e?(n.setAttribute("src",e.url),n.setAttribute("alt",""),n.hasAttribute("width")||n.setAttribute("width",String(e.width)),n.hasAttribute("height")||n.setAttribute("height",String(e.height)),n.setAttribute("style",`${n.getAttribute("style")??""};${i}`)):n.setAttribute("style",`${n.getAttribute("style")??""};${i}background:#d4d4d4!important;display:${t.tagName==="IMG"||t.tagName==="CANVAS"?"inline-block":"block"};`);let o=t.parentElement;(o&&o.tagName==="PICTURE"?o:t).replaceWith(n);}function Wh(t){let r=t.ownerDocument.createTreeWalker(t,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 [t,...Array.from(t.querySelectorAll("*"))])for(let o of i.getAttributeNames())yh.test(o)||i.removeAttribute(o);}function Bi(t,e){try{return Array.from(t.querySelectorAll(e))}catch{return []}}function Kh(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 Vh(t){let e=typeof location<"u"?location.origin:"";for(let r of t.querySelectorAll('link[rel="stylesheet"], link[as="style"]'))r.remove();for(let r of t.querySelectorAll("style")){let n=_u(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=_u(n,e);i!==n&&r.setAttribute("style",i);}for(let r of t.querySelectorAll("script, noscript, template"))r.remove();}function _u(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:nf(o,e)?"none":r})}async function zh(t,e){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"?"":Xh(await Tu(o)??En(o),o)})),i=t.querySelector("head")??t;r.forEach((o,s)=>{if(!n[s])return;let a=document.createElement("style");a.textContent=n[s];let u=o.ownerNode?e.get(o.ownerNode):void 0;u&&t.contains(u)?u.replaceWith(a):i.appendChild(a);});}async function Tu(t,e=0){let r=t.href;if(!r||e>3||typeof fetch!="function")return null;let n=typeof AbortController=="function"?new AbortController:null,i=setTimeout(()=>n?.abort(),Cu);try{let o=await fetch(r,{cache:"force-cache",signal:n?.signal});if(!o.ok)return null;let s="";for(let u of Gh(t)){if(!(u instanceof CSSImportRule)||!u.styleSheet)continue;let c=await Tu(u.styleSheet,e+1)??En(u.styleSheet);s+=Yh(c,u);}let a=Jh((await o.text()).replace(/@import\s[^;]*;/gi,""),r);return `${s}
|
|
9
|
+
`,p=new Image,h=`data:image/svg+xml;charset=utf-8,${encodeURIComponent(c)}`,m=false,w=x=>{let g=x;/^img-src|^default-src/.test(g.violatedDirective??"")&&/^data/.test(g.blockedURI??"")&&(m=true);};return document.addEventListener("securitypolicyviolation",w),new Promise(x=>{let g=false,y=(k,v)=>{g||(g=true,clearTimeout(_),document.removeEventListener("securitypolicyviolation",w),v&&e(v),x(k));},_=setTimeout(()=>y(null,"timeout"),5e3);p.onload=()=>{try{if(n.drawImage(p,0,0,i,o),rf(n,i,o)){y(null,"unsupported");return}y(r.toDataURL("image/jpeg",.7));}catch{y(null,"taint");}},p.onerror=()=>setTimeout(()=>y(null,m?"csp":"error"),0),p.src=h;})}async function Sh(t){let e=document.documentElement,r=e.cloneNode(true),n=e.querySelectorAll("link"),i=r.querySelectorAll("link"),o=new Map;n.length===i.length&&n.forEach((h,m)=>o.set(h,i[m]));let{offscreen:s,pins:a,backgrounds:u}=Rh(e,r);Zh(e,r);let c=[zt,...t?.redactSelectors??Ru,...t?.maskSelectors??[],...t?.blockSelectors??[]];Hh(Array.from(e.querySelectorAll(xu)),Array.from(r.querySelectorAll(xu)),h=>s.has(h)||c.some(m=>ku(h,m))),$h(a),await Th(u.filter(h=>!c.some(m=>ku(h.live,m)))),r.querySelector("#mushi-mushi-widget")?.remove(),await zh(r,o),Vh(r),Wh(r),tf(r),ef(r);let p=[zt,...t?.redactSelectors??Ru];for(let h of p)for(let m of Bi(r,h))Kh(m);for(let h of t?.blockSelectors??[])for(let m of Bi(r,h))m.remove();for(let h of t?.maskSelectors??[])for(let m of Bi(r,h))of(m);return r}function Rh(t,e){let r=new Set,n=[],i=[],o=[t,...Array.from(t.querySelectorAll("*"))],s=[e,...Array.from(e.querySelectorAll("*"))];if(o.length!==s.length)return {offscreen:r,pins:n,backgrounds:i};let a=Fh(),u=[],c=document.scrollingElement,p=new Map,h=(g,y,_)=>{let k=p.get(g);k||p.set(g,k=new Map),k.set(y,_);},m=[],w=[],x=false;for(let g=0;g<o.length;g++){let y=o[g],_=s[g],k=getComputedStyle(y);if(u.push(k),y===document.body&&(x=true),x)if(k.display==="none")h(_,"display","none");else {let v=y.parentElement;k.visibility!=="visible"&&v&&getComputedStyle(v).visibility==="visible"&&h(_,"visibility",k.visibility),k.opacity==="0"&&h(_,"opacity","0"),k.backgroundImage.includes("url(")&&w.push(g);}if(a.has(y))for(let v of xh)h(_,v,k.getPropertyValue(v));if(k.position==="sticky"&&y instanceof HTMLElement){let v=Oh(y);v&&(h(_,"position","relative"),h(_,"top",`${v.top}px`),h(_,"left",`${v.left}px`),h(_,"bottom","auto"),h(_,"right","auto"));}y!==c&&(y.scrollTop>0||y.scrollLeft>0)&&m.push(g);}for(let g of m){let y=o[g],_=y.children,k=s[g].children;for(let v=0;v<_.length&&v<k.length;v++){let C=getComputedStyle(_[v]);if(C.position==="fixed")continue;let T=p.get(k[v])?.get("transform")??C.transform,b=`translate(${-y.scrollLeft}px, ${-y.scrollTop}px)`;h(k[v],"transform",T&&T!=="none"?`${b} ${T}`:b);}}(window.scrollX||window.scrollY)&&(h(e,"position","relative"),h(e,"top",`${-window.scrollY}px`),h(e,"left",`${-window.scrollX}px`));for(let[g,y]of p){let _=Array.from(y,([k,v])=>`${k}:${v}!important`).join(";");g.setAttribute("style",`${g.getAttribute("style")??""};${_}`);}Dh(o,s,u,r,n);for(let g of w)r.has(o[g])||i.push({live:o[g],clone:s[g],value:u[g].backgroundImage});return {offscreen:r,pins:n,backgrounds:i}}async function Th(t){let e=new Map,r=0,n=i=>{let o=e.get(i);return o||(o=e.size>=kh?Promise.resolve(null):Ih(i).then(s=>!s||r+s.length>_h?null:(r+=s.length,s)),e.set(i,o)),o};await Promise.all(t.map(async i=>{let o=Array.from(i.value.matchAll(Ah),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,c)=>{s[c]&&(a=a.split(u).join(s[c]));}),a!==i.value&&i.clone.setAttribute("style",`${i.clone.getAttribute("style")??""};background-image:${a}!important`);}));}async function Ih(t){if(typeof fetch!="function")return null;let e=typeof AbortController=="function"?new AbortController:null,r=setTimeout(()=>e?.abort(),Cu);try{let n=await fetch(t,{cache:"force-cache",signal:e?.signal});if(!n.ok)return null;let i=await n.blob();if(i.size>Ch||!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 Dh(t,e,r,n,i){let o=document.body?t.indexOf(document.body):-1;if(o<0)return;let s=window.innerWidth,a=window.innerHeight,u=new Map,c=new Array(t.length).fill(false),p=new Array(t.length).fill(false);for(let m=o;m<t.length;m++)u.set(t[m],m);c[o]=true;for(let m=t.length-1;m>o;m--){let w=t[m],x=w.getBoundingClientRect();if((x.width>0||x.height>0)&&(x.bottom>0&&x.top<a&&x.right>0&&x.left<s?c[m]=true:p[m]=true),r[m].position==="fixed"&&(c[m]=true),c[m]){p[m]=false;let g=w.parentElement?u.get(w.parentElement):void 0;g!==void 0&&(c[g]=true);}else p[m]&&n.add(w);}let h=new Array(t.length).fill(false);for(let m=o+1;m<t.length;m++){let w=t[m],x=w.parentElement?u.get(w.parentElement):void 0;if(x===void 0)continue;if(h[x]){h[m]=true;continue}if(!p[m]||!(w instanceof HTMLElement))continue;let g=r[m];if(!Mh.test(g.display))continue;h[m]=true;let y=Lh.test(r[x].display)&&g.float==="none"&&(g.position==="static"||g.position==="relative");i.push({clone:e[m],width:w.offsetWidth,height:w.offsetHeight,marginTop:y?Ph(w):null,marginBottom:y?Bh(w):null});}}function Ph(t){let e=t.previousElementSibling;return !(e instanceof HTMLElement)||e.offsetParent!==t.offsetParent?null:Math.max(0,t.offsetTop-(e.offsetTop+e.offsetHeight))}function Bh(t){let e=t.nextElementSibling;return !(e instanceof HTMLElement)||e.offsetParent!==t.offsetParent?null:Math.max(0,e.offsetTop-(t.offsetTop+t.offsetHeight))}function $h(t){for(let e of t){e.clone.replaceChildren();let r=`width:${e.width}px!important;height:${e.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;`;e.marginTop!==null&&(r+=`margin-top:${e.marginTop}px!important;`),e.marginBottom!==null&&(r+=`margin-bottom:${e.marginBottom}px!important;`),e.clone.setAttribute("style",`${e.clone.getAttribute("style")??""};${r}`);}}function Fh(){try{return new Set(document.getAnimations().map(t=>t.effect?.target).filter(t=>t instanceof Element&&!t.pseudoElement))}catch{return new Set}}function Oh(t){let e=t.getBoundingClientRect(),r=t.style.getPropertyValue("position"),n=t.style.getPropertyPriority("position");t.style.setProperty("position","static","important");let i=t.getBoundingClientRect();t.style.removeProperty("position"),r&&t.style.setProperty("position",r,n);let o=e.top-i.top,s=e.left-i.left;return o||s?{top:o,left:s}:null}function Hh(t,e,r){let n=0,i=0;for(let o=0;o<e.length;o++){let s=e[o],a=t[o],u=a?.getBoundingClientRect(),c=a instanceof HTMLElement&&a.offsetWidth>0?{width:a.offsetWidth,height:a.offsetHeight}:u&&{width:u.width,height:u.height},p=null;a&&c&&c.width>0&&c.height>0&&n<vh&&i<wh&&!r(a)&&(p=Uh(a),p&&(n++,i+=p.url.length)),jh(s,p,c);}}function Uh(t){try{let e=null,r=0,n=0;if(t instanceof HTMLCanvasElement?[e,r,n]=[t,t.width,t.height]:t instanceof HTMLImageElement&&t.complete&&t.naturalWidth>0?[e,r,n]=[t,t.naturalWidth,t.naturalHeight]:t instanceof HTMLVideoElement&&t.readyState>=2&&([e,r,n]=[t,t.videoWidth,t.videoHeight]),!e||r<=0||n<=0)return null;let i=Math.min(1,Nh/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(e,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 ku(t,e){try{return t.closest(e)!==null}catch{return false}}function jh(t,e,r){let n=t.ownerDocument.createElement(e?"img":"div");for(let a of t.getAttributeNames())qh.has(a)||n.setAttribute(a,t.getAttribute(a)??"");let i=r?`width:${r.width}px;height:${r.height}px;`:"";e?(n.setAttribute("src",e.url),n.setAttribute("alt",""),n.hasAttribute("width")||n.setAttribute("width",String(e.width)),n.hasAttribute("height")||n.setAttribute("height",String(e.height)),n.setAttribute("style",`${n.getAttribute("style")??""};${i}`)):n.setAttribute("style",`${n.getAttribute("style")??""};${i}background:#d4d4d4!important;display:${t.tagName==="IMG"||t.tagName==="CANVAS"?"inline-block":"block"};`);let o=t.parentElement;(o&&o.tagName==="PICTURE"?o:t).replaceWith(n);}function Wh(t){let r=t.ownerDocument.createTreeWalker(t,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 [t,...Array.from(t.querySelectorAll("*"))])for(let o of i.getAttributeNames())yh.test(o)||i.removeAttribute(o);}function Bi(t,e){try{return Array.from(t.querySelectorAll(e))}catch{return []}}function Kh(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 Vh(t){let e=typeof location<"u"?location.origin:"";for(let r of t.querySelectorAll('link[rel="stylesheet"], link[as="style"]'))r.remove();for(let r of t.querySelectorAll("style")){let n=_u(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=_u(n,e);i!==n&&r.setAttribute("style",i);}for(let r of t.querySelectorAll("script, noscript, template"))r.remove();}function _u(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:nf(o,e)?"none":r})}async function zh(t,e){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"?"":Xh(await Tu(o)??En(o),o)})),i=t.querySelector("head")??t;r.forEach((o,s)=>{if(!n[s])return;let a=document.createElement("style");a.textContent=n[s];let u=o.ownerNode?e.get(o.ownerNode):void 0;u&&t.contains(u)?u.replaceWith(a):i.appendChild(a);});}async function Tu(t,e=0){let r=t.href;if(!r||e>3||typeof fetch!="function")return null;let n=typeof AbortController=="function"?new AbortController:null,i=setTimeout(()=>n?.abort(),Cu);try{let o=await fetch(r,{cache:"force-cache",signal:n?.signal});if(!o.ok)return null;let s="";for(let u of Gh(t)){if(!(u instanceof CSSImportRule)||!u.styleSheet)continue;let c=await Tu(u.styleSheet,e+1)??En(u.styleSheet);s+=Yh(c,u);}let a=Jh((await o.text()).replace(/@import\s[^;]*;/gi,""),r);return `${s}
|
|
10
10
|
${a}`}catch{return null}finally{clearTimeout(i);}}function Gh(t){try{return Array.from(t.cssRules)}catch{return []}}function Yh(t,e){let r=e.layerName,n=r==null?t:`@layer ${r}{${t}}`,i=e.media?.mediaText;return i&&i!=="all"&&(n=`@media ${i}{${n}}`),`${n}
|
|
11
11
|
`}function Xh(t,e){let r=e.media?.mediaText;return t&&r&&r!=="all"?`@media ${r}{${t}}`:t}function Jh(t,e){return t.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,e).href}${n})`}catch{return r}})}function Zh(t,e){let r=t.querySelectorAll("style"),n=e.querySelectorAll("style");r.length===n.length&&r.forEach((i,o)=>{if((i.textContent??"").trim()||!i.sheet)return;let s=En(i.sheet);s&&(n[o].textContent=s);});}function ef(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 tf(t){let e=document.createElement("style");e.textContent=Qh,(t.querySelector("head")??t).appendChild(e);}function En(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+=En(n.styleSheet));continue}r+=`${n.cssText}
|
|
12
|
-
`;}return r}function rf(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 s=0;s<e;s+=n)if(t.getImageData(s,o,1,1).data[3]!==0)return !1;return !0}catch{return false}}function nf(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 of(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");}var Eh,yh,vh,wh,xu,Ru,xh,kh,_h,Ch,Ah,Mh,Lh,Nh,qh,Cu,Qh,Iu=Ce(()=>{yn();Eh=/[\u0000-\u0008\u000B\u000C\u000E-\u001F]/g,yh=/^[A-Za-z_][\w.:-]*$/,vh=60,wh=12*1024*1024,xu="img, video, canvas, iframe, object, embed";Ru=["[data-mushi-redact]"],xh=["transform","translate","scale","rotate","opacity","visibility","clip-path","object-position","background-position","left","top","width","height","color","background-color"];kh=40,_h=6*1024*1024,Ch=2*1024*1024;Ah=/url\(\s*(['"]?)([^)'"]+)\1\s*\)/gi;Mh=/^(block|flow-root|flex|grid|list-item|inline-block|inline-flex|inline-grid|table)$/,Lh=/^(block|flow-root|list-item)$/;Nh=2048;qh=new Set(["src","srcset","sizes","poster","data","loading","decoding"]);Cu=2500;Qh="*,*::before,*::after{animation:none!important;transition:none!important}";});function $i(t={}){let e=t,r=i=>{e.onFailed?.(i),sf(i);};async function n(){try{if(typeof document>"u")return null;let{captureDomScreenshot:i}=await Promise.resolve().then(()=>(Iu(),Au));return await i(e.privacy,r)}catch{return r("error"),null}}return {take:n,updateOptions(i){e=i;}}}function sf(t){try{document.dispatchEvent(new CustomEvent("mushi:screenshot_failed",{detail:{reason:t},bubbles:!1}));}catch{}}var zt,yn=Ce(()=>{zt='input[type="password"],input[autocomplete^="cc-"],[data-private],[data-mushi-mask]';});var qu={};ht(qu,{deviceDraw:()=>Bf,journeyRecordingDecision:()=>Df,readTabOptIn:()=>Pf});function Df(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 Pf(t){if(typeof window>"u")return false;let e=null;try{e=new URL(window.location.href).searchParams.get(Lf);}catch{e=null;}try{return e==="1"||e==="true"?window.sessionStorage.setItem(zi(t),"1"):(e==="0"||e==="false")&&window.sessionStorage.removeItem(zi(t)),window.sessionStorage.getItem(zi(t))==="1"}catch{return e==="1"||e==="true"}}function Bf(t,e=Math.random){if(typeof window>"u")return e();try{let r=Number(window.localStorage.getItem(Gi(t)));if(window.localStorage.getItem(Gi(t))!==null&&Number.isFinite(r)&&r>=0&&r<1)return r;let n=e();return window.localStorage.setItem(Gi(t),String(n)),n}catch{return e()}}var Lf,zi,Gi,ju=Ce(()=>{Lf="mushi_journeys",zi=t=>`mushi:journeys:tab:${t}`,Gi=t=>`mushi:journeys:draw:${t}`;});var Wu={};ht(Wu,{grabMaskedTabFrame:()=>$f});async function $f(t,e){let r=await t,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=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 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 Ku=Ce(()=>{});var Vu={};ht(Vu,{createScreenshotAnnotation:()=>Ff});function Ff(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 s=document.createElement("canvas"),a=document.createElement("canvas"),u=Math.min(1,720/i.width),c=Math.round(i.width*u),p=Math.round(i.height*u);for(let T of [s,a])T.width=c,T.height=p,T.style.width="100%",T.style.height="auto",T.style.display="block";a.style.position="absolute",a.style.left="0",a.style.top="0",a.style.cursor="crosshair";let h=s.getContext("2d"),m=a.getContext("2d");if(!h||!m){n(new Error("Canvas not supported"));return}h.drawImage(i,0,0,c,p),o.appendChild(s),o.appendChild(a),e.appendChild(o);let v="highlight",k=false,g=null,y=[],_=T=>{let b=a.getBoundingClientRect(),f="touches"in T?T.touches[0]??T.changedTouches[0]:null,E=f?f.clientX:T.clientX,A=f?f.clientY:T.clientY;return {x:(E-b.left)/b.width*c,y:(A-b.top)/b.height*p}},R=()=>{m.clearRect(0,0,c,p);for(let T of y)if(T.tool==="highlight"&&T.points.length>=2){let[b,f]=T.points;m.fillStyle="rgba(255, 230, 0, 0.35)",m.fillRect(Math.min(b.x,f.x),Math.min(b.y,f.y),Math.abs(f.x-b.x),Math.abs(f.y-b.y));}else if(T.tool==="arrow"&&T.points.length>=2){let[b,f]=T.points;m.strokeStyle="#ef4444",m.lineWidth=3,m.beginPath(),m.moveTo(b.x,b.y),m.lineTo(f.x,f.y),m.stroke();}},w=T=>{k=true,g=_(T);},C=T=>{if(!k||!g)return;k=false;let b=_(T);if(v==="blur"){let f=Math.min(g.x,b.x),E=Math.min(g.y,b.y),A=Math.abs(b.x-g.x),$=Math.abs(b.y-g.y);A>=1&&$>=1&&(h.filter="blur(8px)",h.drawImage(s,f,E,A,$,f,E,A,$),h.filter="none");}else y.push({tool:v,points:[g,b]});g=null,R();};a.addEventListener("mousedown",w),a.addEventListener("mouseup",C),a.addEventListener("touchstart",w,{passive:true}),a.addEventListener("touchend",C),r({canvas:s,setTool(T){v=T;},getDataUrl(){let T=document.createElement("canvas");T.width=c,T.height=p;let b=T.getContext("2d");return b?(b.drawImage(s,0,0),b.drawImage(a,0,0),T.toDataURL("image/jpeg",.85)):t},destroy(){a.removeEventListener("mousedown",w),a.removeEventListener("mouseup",C),a.removeEventListener("touchstart",w),a.removeEventListener("touchend",C),o.remove();}});},i.onerror=()=>n(new Error("Failed to load screenshot")),i.src=t;})}var zu=Ce(()=>{});var Sl=4194304,Jo=1.5*1024*1024;function xl(t){try{return JSON.stringify(t)}catch{return null}}function Rl(t,e=Sl){let r=xl(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 ${Lo(n)} exceeds limit ${Lo(e)}`}}function Lo(t){return t<1024?`${t} B`:t<1024*1024?`${(t/1024).toFixed(1)} KB`:`${(t/(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(t){return Array.from(t).map(e=>e.toString(16).padStart(2,"0")).join("")}async function $t(t){let e=Zo();if(e){let n=await e.digest("SHA-256",new TextEncoder().encode(t));return jr(new Uint8Array(n))}let{sha256:r}=await Promise.resolve().then(()=>(Ln(),Mn));return jr(r(new TextEncoder().encode(t)))}async function kl(t,e){let r=Zo();if(r){let s=await r.importKey("raw",new TextEncoder().encode(t),{name:"HMAC",hash:"SHA-256"},false,["sign"]),a=await r.sign("HMAC",s,new TextEncoder().encode(e));return jr(new Uint8Array(a))}let{hmac:n}=await Promise.resolve().then(()=>(Mo(),Io)),{sha256:i}=await Promise.resolve().then(()=>(Ln(),Mn)),o=n(i,new TextEncoder().encode(t),new TextEncoder().encode(e));return jr(o)}var _l=60*1024;function Cl(t){return {mushiBeacon:true,path:t.path,headers:t.headers,body:t.body}}function Tl(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 Al(t){try{let e=t.startsWith("/")?new URL(t,"https://tunnel.local"):new URL(t);return `${e.pathname}${e.search}`}catch{return t}}function Il(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||!Tl(t.url))return false;let n=t.body;try{n=JSON.parse(t.body);}catch{n=t.body;}let i=JSON.stringify(Cl({path:t.path??Al(t.url),headers:t.headers,body:n}));if(i.length>_l)return false;try{return r(t.url,new Blob([i],{type:"application/json"}))}catch{return false}}var Qo=false;function es(){Qo=true;}function Ml(){return Qo}var ir=null;function ts(){let t=ir;return ir=null,!!t&&Il(t)}var Do=false,Ll="X-Mushi-User-Token",Dl="X-Mushi-Project",Pl="X-Mushi-SDK-Package",Bl="X-Mushi-SDK-Version";function $l(t){let e={"Content-Type":"application/json","X-Mushi-Api-Key":t.apiKey,[Dl]:t.projectId};return t.sdkPackage&&(e[Pl]=t.sdkPackage),t.sdkVersion&&(e[Bl]=t.sdkVersion),t.userToken&&(e[Ll]=t.userToken),t.internalKind&&(e[zr]=t.internalKind),e}var or="https://dxptnwrhwsqckaftyymj.supabase.co/functions/v1/api",zr="X-Mushi-Internal",dr="__mushiInternal";function Fl(t,e){let r=e?.trim();return r?r.replace(/\/$/,""):(t??or).replace(/\/$/,"")}var Ol=1e4,Hl=2,Nl=4,Ul=3e4,ql=1e4;function rs(t){let{projectId:e,apiKey:r,apiEndpoint:n=or,tunnel:i,timeout:o=Ol,maxRetries:s=Hl,getUserToken:a,sdkPackage:u,sdkVersion:c,circuitBreaker:p}=t,h=Fl(n,i),m=p?.enabled!==false,v=Math.max(1,p?.threshold??Nl),k=Math.max(1e3,p?.cooldownMs??Ul),g=0,y=0,_=()=>m&&y>Date.now(),R=()=>{g=0,y=0;},w=()=>{m&&(g+=1,g>=v&&(y=Date.now()+k));};async function C(b,f,E,A=s,$,U,q){let se=$!=="reporter-poll";if(se&&_())return {ok:false,error:{code:"CIRCUIT_OPEN",message:"Endpoint temporarily unavailable; retrying later."}};let Q=`${h}${f}`,V=new AbortController,M=setTimeout(()=>V.abort(),o),je=a?.()??null,Le={...$l({apiKey:r,projectId:e,sdkPackage:u,sdkVersion:c,userToken:je,internalKind:$}),...U},Se=E?JSON.stringify(E):void 0,le=null;Se&&b!=="GET"&&$!=="reporter-poll"&&(le={url:Q,headers:Le,body:Se,path:f},ir=le);try{let J=await fetch(Q,{method:b,headers:Le,body:Se,keepalive:Ml(),signal:V.signal,...q?{cache:q}:{},...$?{[dr]:$}:{}});if(clearTimeout(M),J.status===307||J.status===308){let Z=J.headers.get("Location");if(Z&&A>0){let x=Z.replace(/\/v1\/.*$/,"").replace(/\/$/,"");if(x!==h)return h=x,C(b,f,E,A-1,$,U,q)}}if(!J.ok){let Z=await J.json().catch(()=>({}));if((J.status===401||J.status===403)&&!Do){Do=!0;let G=h===or?"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"). `+G);}let x=J.status===429,P=J.status>=500||x,F=x?jl(J.headers.get("Retry-After")):null,O=F===null||F<=ql;return P&&A>0&&O?(await Po(F??Bo(s-A)),C(b,f,E,A-1,$,U)):(se&&(P?w():R()),{ok:!1,error:{code:Z.error?.code||`HTTP_${J.status}`,message:Z.error?.message||Z.message||`HTTP ${J.status} error`,status:J.status}})}let ne=await J.json(),ce=ne&&typeof ne=="object"&&"ok"in ne&&"data"in ne?ne.data:ne;return se&&R(),{ok:!0,data:ce}}catch(J){return clearTimeout(M),A>0&&Wl(J)?(await Po(Bo(s-A)),C(b,f,E,A-1,$,U)):(se&&w(),{ok:false,error:{code:"NETWORK_ERROR",message:J instanceof Error?J.message:"Unknown network error"}})}finally{ir===le&&(ir=null);}}async function T(b,f,E,A){try{let $=await $t(E),U=String(Date.now());return await C(b,f,A,s,"reporter-poll",{"X-Reporter-Token-Hash":$,"X-Reporter-Ts":U,"X-Reporter-Hmac":await kl(r,`${e}.${U}.${$}`)})}catch($){return {ok:false,error:{code:"NETWORK_ERROR",message:$ instanceof Error?$.message:"Unknown error"}}}}return {async submitReport(b){let f=Rl(b);return f.ok?C("POST","/v1/reports",b,s,"report-submit"):{ok:false,error:{code:f.serializeFailed?"SERIALIZE_FAILED":"PAYLOAD_TOO_LARGE",message:f.reason??"Report payload exceeds size limit"}}},async getReportStatus(b){return C("GET",`/v1/reports/${b}/status`,void 0,s,"report-status")},async getSdkConfig(b){return C("GET","/v1/sdk/config",void 0,s,"sdk-config",void 0,b?.fresh?"no-store":void 0)},async askAssistant(b){return C("POST","/v1/sdk/assistant",{message:b.message,threadId:b.threadId??null,context:b.context??null},1,"community")},async getLatestSdkVersion(b){let f=new URLSearchParams({package:b}).toString();return C("GET",`/v1/sdk/latest-version?${f}`,void 0,s,"sdk-config")},async postDiscoveryEvent(b){return C("POST","/v1/sdk/discovery",b,1,"discovery")},async listReporterReports(b){return T("GET","/v1/reporter/reports",b)},reporterRequest:T,async listReporterComments(b,f){return T("GET",`/v1/reporter/reports/${b}/comments`,f)},async replyToReporterReport(b,f,E,A){return T("POST",`/v1/reporter/reports/${b}/reply`,f,{body:E,...A?{feedback_signal:A}:{}})},async reopenReporterReport(b,f,E){return T("POST",`/v1/reporter/reports/${b}/reopen`,f,{note:E??""})},async listNotifications(b,f){let E=new URLSearchParams;f?.since&&E.set("since",f.since),f?.limit&&E.set("limit",String(f.limit));let A=E.size?`?${E.toString()}`:"";return T("GET",`/v1/notifications${A}`,b)},async markNotificationRead(b,f){return T("POST",`/v1/notifications/${b}/read`,f,{})},async listReporterFeatureBoard(b){return T("GET","/v1/reporter/feature-board",b)},async voteReporterFeatureBoard(b,f){return T("POST",`/v1/reporter/feature-board/${b}/vote`,f,{})},async postSessionEvent(b){return C("POST","/v1/sdk/session",b,1,"discovery")},async postProductEvents(b){return C("POST","/v1/sdk/events",b,1,"discovery")},async submitActivity(b,f,E){return C("POST","/v1/sdk/activity",{user_id:b,user_traits:E?.userTraits,opted_in:E?.optedIn,reporter_token_hash:E?.reporterTokenHash,...E?.hostJwt?{host_jwt:E.hostJwt}:{},events:f},1,"discovery")},async getMyPoints(b){return C("GET",`/v1/sdk/me/points?userId=${encodeURIComponent(b)}`,void 0,1,"reporter-poll")},async getMyTier(b){return C("GET",`/v1/sdk/me/tier?userId=${encodeURIComponent(b)}`,void 0,1,"reporter-poll")},async getMyHistory(b,f){let E=new URLSearchParams({userId:b,...f?.limit?{limit:String(f.limit)}:{}});return C("GET",`/v1/sdk/me/history?${E}`,void 0,1,"reporter-poll")},async getHallOfFame(b=10){return C("GET",`/v1/sdk/hall-of-fame?limit=${b}`,void 0,1,"reporter-poll")},async sendMagicLink(b){return C("POST","/v1/tester/magic-link",{email:b},1,"community")},async linkReporterToken(b,f){return C("POST","/v1/tester/link-reporter",{reporter_token_hash:b},1,"community",{Authorization:`Bearer ${f}`})},async getCrossAppReports(b,f){let E=new URLSearchParams;f?.limit&&E.set("limit",String(f.limit)),f?.offset&&E.set("offset",String(f.offset));let A=E.size?`?${E.toString()}`:"";return C("GET",`/v1/tester/cross-app-reports${A}`,void 0,1,"community",{Authorization:`Bearer ${b}`})},async getMyReputation(b){return C("GET","/v1/tester/reputation",void 0,1,"community",{Authorization:`Bearer ${b}`})},async getPublicLeaderboard(b=20){return C("GET",`/v1/public/tester-leaderboard?limit=${b}`,void 0,1,"reporter-poll")},async getTesterStatus(b){return C("GET","/v1/me/tester-status",void 0,1,"community",{Authorization:`Bearer ${b}`})}}}function Po(t){return new Promise(e=>setTimeout(e,t))}function Bo(t){return Math.min(1e3*2**t+Math.random()*500,1e4)}function jl(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 Wl(t){return t instanceof DOMException&&t.name==="AbortError"||t instanceof TypeError}function Dn(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 pr(t){if(Dn(t.message,t.ignoreErrors))return true;let e=t.filename?.trim()||"";return !!(e&&Dn(e,t.denyUrls)||t.allowUrls&&t.allowUrls.length>0&&(!e||!Dn(e,t.allowUrls)))}function Pn(...t){return t.find(e=>e!==void 0&&e!=="")}function Te(t){try{let e=undefined;return typeof e=="object"&&e!==null?e[t]:void 0}catch{return}}function Xe(t){try{return t()}catch{return}}function Gn(){let t=Pn(Te("VITE_MUSHI_PROJECT_ID"),Te("NEXT_PUBLIC_MUSHI_PROJECT_ID"),Te("NUXT_PUBLIC_MUSHI_PROJECT_ID"),Te("EXPO_PUBLIC_MUSHI_PROJECT_ID"),Xe(()=>process.env.NEXT_PUBLIC_MUSHI_PROJECT_ID),Xe(()=>process.env.EXPO_PUBLIC_MUSHI_PROJECT_ID),Xe(()=>process.env.MUSHI_PROJECT_ID)),e=Pn(Te("VITE_MUSHI_API_KEY"),Te("NEXT_PUBLIC_MUSHI_API_KEY"),Te("NUXT_PUBLIC_MUSHI_API_KEY"),Te("EXPO_PUBLIC_MUSHI_API_KEY"),Xe(()=>process.env.NEXT_PUBLIC_MUSHI_API_KEY),Xe(()=>process.env.EXPO_PUBLIC_MUSHI_API_KEY),Xe(()=>process.env.MUSHI_API_KEY)),r=Pn(Te("VITE_MUSHI_API_ENDPOINT"),Te("NEXT_PUBLIC_MUSHI_API_ENDPOINT"),Te("NUXT_PUBLIC_MUSHI_API_ENDPOINT"),Te("EXPO_PUBLIC_MUSHI_API_ENDPOINT"),Xe(()=>process.env.NEXT_PUBLIC_MUSHI_API_ENDPOINT),Xe(()=>process.env.EXPO_PUBLIC_MUSHI_API_ENDPOINT),Xe(()=>process.env.MUSHI_API_ENDPOINT)),n={};return t&&(n.projectId=t),e&&(n.apiKey=e),r&&(n.apiEndpoint=r),n}var Kl=["VITE_","NEXT_PUBLIC_","NUXT_PUBLIC_","EXPO_PUBLIC_",""],Vl={projectId:"MUSHI_PROJECT_ID",apiKey:"MUSHI_API_KEY"};function ns(){let t=Gn(),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 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 e)for(let u of Kl){let c=`${u}${Vl[a]}`;r&&r[c]?i.push({field:a,key:c,via:"import.meta.env"}):n&&n[c]&&i.push({field:a,key:c,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 ${e.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:t,missing:e,nearMisses:i,message:s.join(`
|
|
13
|
-
`)}}var $o=["production-calm","beta-loud","internal-debug","manual-only","minimal","standard","full"],zl=["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 Gl(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 is(t){let e=Gl(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 Yl(){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 os(t){try{if(Yl()||!t||typeof t!="object")return;let e=Object.keys(t).filter(r=>!zl.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&&!$o.includes(t.preset)&&console.error(`[mushi] Unknown preset \`${String(t.preset)}\` \u2014 expected one of ${$o.map(r=>`'${r}'`).join(", ")}. Preset ignored.`);}catch{}}var Xl=10,Jl=2e3,Zl=[/^(.)\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],Ql=/^[bcdfghjklmnpqrstvwxz]{6,}/i;function ss(t={}){let{enabled:e=true,blockObviousSpam:r=true,minDescriptionLength:n=Xl,maxDescriptionLength:i=Jl}=t;function o(a){if(!e)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 Zl)if(p.test(u))return {passed:false,reason:"Detected as spam"};if(Ql.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},ec={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"},tc={debug:Ee.dim,info:Ee.green,warn:Ee.yellow,error:Ee.red,fatal:`${Ee.bgRed}${Ee.white}${Ee.bold}`};function rc(){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 nc(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 ic(t){let{ts:e,level:r,scope:n,msg:i,...o}=t,s=e.slice(11,23),a=tc[r]??"",u=ec[r]??r.toUpperCase(),c=Object.keys(o).length>0?` ${Ee.dim}${nc(o)}${Ee.reset}`:"";return `${Ee.dim}${s}${Ee.reset} ${a}${u}${Ee.reset} ${Ee.cyan}[${n}]${Ee.reset} ${i}${c}`}function oc(t){return JSON.stringify(t)}function sc(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 as(t,e,r,n,i){let o=e;function s(a,u,c){if(Fo[a]<Fo[o])return;let p={ts:new Date().toISOString(),level:a,scope:t,msg:u,...r,...c};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(`${t}:${a}`,o,{...r,...u},n,i)},setLevel(a){o=a;}}}function lt(t){let{scope:e,level:r="info",meta:n={},format:i="auto",destination:o="stdout"}=t,a=(i==="auto"?rc():i)==="json"?oc:ic,u=sc(o);return as(e,r,n,a,u)}var Yn={debug:()=>{},info:()=>{},warn:()=>{},error:()=>{},fatal:()=>{},child:()=>Yn,setLevel:()=>{}},ac="mushi-mushi-keyring",Et="keys",us="offline-queue/v1",Hr=null,Nr=null;function uc(){return typeof globalThis<"u"&&typeof globalThis.crypto<"u"&&typeof globalThis.crypto.subtle<"u"&&typeof indexedDB<"u"}function ls(){return new Promise((t,e)=>{let r=indexedDB.open(ac,1);r.onupgradeneeded=()=>{try{let n=r.result;if(!n)return;n.objectStoreNames.contains(Et)||n.createObjectStore(Et);}catch{}},r.onsuccess=()=>{let n=r.result;if(!n||!n.objectStoreNames.contains(Et)){try{n?.close();}catch{}e(new Error("key object store unavailable"));return}t(n);},r.onerror=()=>e(r.error);})}async function lc(){let t=await ls();return new Promise((e,r)=>{let i=t.transaction(Et,"readonly").objectStore(Et).get(us);i.onsuccess=()=>e(i.result??null),i.onerror=()=>r(i.error);})}async function cc(t){let e=await ls();return new Promise((r,n)=>{let i=e.transaction(Et,"readwrite");i.objectStore(Et).put(t,us),i.oncomplete=()=>r(),i.onerror=()=>n(i.error);})}async function cs(){if(Hr)return Hr;if(Nr)return Nr;if(!uc())throw new Error("Web Crypto + IndexedDB required for offline queue encryption");return Nr=(async()=>{let t=await lc();if(t)return Hr=t,t;let e=await crypto.subtle.generateKey({name:"AES-GCM",length:256},false,["encrypt","decrypt"]);return await cc(e),Hr=e,e})(),Nr}function Oo(t){let e="";for(let r of t)e+=String.fromCharCode(r);return btoa(e)}function Ho(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 dc(t){let e=await cs(),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:Oo(r),ct:Oo(i)}}function pc(t){return !!t&&typeof t=="object"&&t._mme===1&&typeof t.iv=="string"&&typeof t.ct=="string"}async function hc(t){let e=await cs(),r=Ho(t.iv),n=Ho(t.ct),i=await crypto.subtle.decrypt({name:"AES-GCM",iv:r},e,n);return JSON.parse(new TextDecoder().decode(i))}var Ae=lt({scope:"mushi:queue",level:"warn"}),fc="mushi-mushi",me="offline-reports",mc=1,Bn="mushi_offline_queue",gc=10,bc=6e4,Ec=3e4,yc=8,vc=1440*60*1e3;function ds(t={}){let{enabled:e=true,maxQueueSize:r=50,syncOnReconnect:n=true,encryptAtRest:i=true}=t,o=null,s=null,a=null,u=null,c=null;async function p(x){let P=new Date().toISOString();if(!i)return {...x,queuedAt:P};try{let F=await dc(x);return {id:x.id,queuedAt:P,payload:F}}catch(F){return Ae.warn("Offline queue: encryption failed, storing plaintext",{err:String(F)}),{...x,queuedAt:P}}}async function h(x){if(m(x))try{return await hc(x.payload)}catch(P){return Ae.warn("Offline queue: decrypt failed, dropping row",{err:String(P),id:x.id}),null}return x}function m(x){return !!x.payload&&pc(x.payload)}function v(x){let P=x.attempts;return typeof P=="number"&&Number.isFinite(P)?P:0}function k(x,P){let F=x.queuedAt;if(!F)return false;let O=Date.parse(F);return Number.isNaN(O)?false:P-O>vc}function g(){return a||(typeof indexedDB<"u"?a="indexeddb":typeof localStorage<"u"?a="localstorage":a="none",a)}function y(){return new Promise((x,P)=>{let F=indexedDB.open(fc,mc);F.onupgradeneeded=()=>{try{let O=F.result;if(!O)return;O.objectStoreNames.contains(me)||O.createObjectStore(me,{keyPath:"id"});}catch{}},F.onsuccess=()=>{let O=F.result;if(!O||!O.objectStoreNames.contains(me)){a="localstorage";try{O?.close();}catch{}P(new Error("queue object store unavailable"));return}x(O);},F.onerror=()=>{a="localstorage",P(F.error);};})}async function _(x){let P=await y(),F=await p(x);return new Promise((O,G)=>{let De=P.transaction(me,"readwrite");De.objectStore(me).put(F),De.oncomplete=()=>O(),De.onerror=()=>G(De.error);})}async function R(){let x=await y();return new Promise((P,F)=>{let G=x.transaction(me,"readonly").objectStore(me).getAll();G.onsuccess=()=>P(G.result),G.onerror=()=>F(G.error);})}async function w(x){let P=await y();return new Promise((F,O)=>{let G=P.transaction(me,"readwrite");G.objectStore(me).delete(x),G.oncomplete=()=>F(),G.onerror=()=>O(G.error);})}async function C(x){let P=await y();return new Promise((F,O)=>{let G=P.transaction(me,"readwrite");G.objectStore(me).put(x),G.oncomplete=()=>F(),G.onerror=()=>O(G.error);})}async function T(){let x=await y();return new Promise((P,F)=>{let G=x.transaction(me,"readonly").objectStore(me).count();G.onsuccess=()=>P(G.result),G.onerror=()=>F(G.error);})}async function b(){let x=await y();return new Promise((P,F)=>{let O=x.transaction(me,"readwrite");O.objectStore(me).clear(),O.oncomplete=()=>P(),O.onerror=()=>F(O.error);})}function f(){try{let x=localStorage.getItem(Bn);return x?JSON.parse(x):[]}catch{return []}}function E(x){try{localStorage.setItem(Bn,JSON.stringify(x));}catch{}}async function A(x){let P=f(),F=await p(x),O=P.findIndex(G=>G.id===x.id);O>=0?P[O]=F:P.push(F),E(P);}function $(x){let P=f().filter(F=>F.id!==x);E(P);}function U(x){let P=f(),F=P.findIndex(O=>O.id===x.id);F>=0&&(P[F]=x,E(P));}async function q(x,P){try{x==="indexeddb"?await w(P):$(P);}catch(F){Ae.debug("Offline queue: row removal failed (will age out)",{id:P,err:String(F)});}}async function se(x,P){try{return x==="indexeddb"?await C(P):U(P),!0}catch(F){return Ae.debug("Offline queue: row persist failed",{id:P.id,err:String(F)}),false}}async function Q(){let x=g();if(x==="none")return {backend:x,rows:[]};if(x==="indexeddb")try{return {backend:x,rows:await R()}}catch{a="localstorage";}return {backend:"localstorage",rows:f()}}async function V(x){let P=g();if(P==="none")return Ae.debug("Offline queue: no storage backend, dropping report",{id:x.id}),P;if(P==="indexeddb")try{return await _(x),P}catch{a="localstorage";}return await A(x),"localstorage"}async function M(x){if(!e)return;if(await J()>=r){Ae.warn("Offline queue full \u2014 dropping report",{maxQueueSize:r});return}await V(x);}function je(x){return Math.min(1e3*2**x+Math.random()*500,bc)}function Le(x){return new Promise(P=>setTimeout(P,x))}async function Se(x){let{backend:P,rows:F}=await Q(),O=F,G=Date.now(),De=[];for(let ge of O)if(k(ge,G)){let xe=ge.id;await q(P,xe),Ae.debug("Offline queue: evicting stale report",{id:xe});}else De.push(ge);O=De;let We=O.slice(0,gc),et=0,z=0;for(let ge=0;ge<We.length;ge++){let xe=We[ge],Re=xe.id,ke=await h(xe);if(!ke){await q(P,Re),z++;continue}let H=await x.submitReport(ke);if(H.ok){await q(P,Re),et++;continue}if(z++,H.error?.code==="CIRCUIT_OPEN"){Ae.debug("Offline queue: circuit open, deferring the rest of the batch",{id:Re,remaining:We.length-ge});break}let Tt=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),tt=!Tt&&(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(Tt)await q(P,Re);else {let rt=v(xe)+1;rt>=yc?(await q(P,Re),Ae.warn("Offline queue: giving up on report after repeated failures",{id:Re,attempts:rt,code:H.error?.code})):(xe.attempts=rt,await se(P,xe)?Ae.debug("Offline queue: delivery failed, will retry",{id:Re,attempts:rt,code:H.error?.code,classified:tt?"transient":"unclassified"}):(await q(P,Re),Ae.warn("Offline queue: dropping report (attempt counter unpersistable)",{id:Re,code:H.error?.code})));}ge<We.length-1&&await Le(je(ge));}return {sent:et,failed:z}}function le(x){if(!e)return Promise.resolve({sent:0,failed:0});if(u)return c||(c=u.catch(()=>{}).then(()=>(c=null,le(x)))),c;let P=Se(x).finally(()=>{u===P&&(u=null);});return u=P,P}async function J(){if(g()==="indexeddb")try{return await T()}catch{a="localstorage";}return f().length}async function ne(){if(g()==="indexeddb")try{await b();}catch{}try{localStorage.removeItem(Bn);}catch{}}function ce(x){if(!e||!n||typeof window>"u")return;o&&Z();let P=()=>{navigator.onLine&&le(x).catch(F=>{Ae.warn("Offline queue auto-flush failed",{err:String(F)});});};window.addEventListener("online",P),s=setInterval(()=>{J().then(F=>{F>0&&P();});},Ec),o=()=>{window.removeEventListener("online",P),s&&(clearInterval(s),s=null);};}function Z(){o?.(),o=null;}return {enqueue:M,flush:le,size:J,clear:ne,startAutoSync:ce,stopAutoSync:Z}}function Xn(){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,s=!!o?.Capacitor,a=!!o?.cordova,u=t?.product==="ReactNative"||typeof globalThis.HermesInternal<"u",c=s||a||u?{...s?{capacitor:true}:{},...a?{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:wc(r),userAgentData:Rc(t),screen:kc(n,e),prefersColorScheme:_c(e),prefersReducedMotion:Ie(e,"(prefers-reduced-motion: reduce)"),prefersReducedData:Ie(e,"(prefers-reduced-data: reduce)"),prefersContrast:Cc(e),forcedColors:Ie(e,"(forced-colors: active)"),online:typeof t?.onLine=="boolean"?t.onLine:void 0,displayMode:Tc(e),documentTitle:r?.title?.slice(0,200),buildId:Ac(r),pageLoadTiming:Ic(e),...c?{native:c}:{}}}function wc(t){if(!t)return;let e=t.activeElement??null,r=0;for(;e&&r<20;){let n=e.getAttribute?.("data-testid");if(n)return n;e=e.parentElement,r++;}}var $e=null,No=false;function Sc(t){if(No)return;let e=t?.userAgentData;e?.getHighEntropyValues&&(No=true,e.getHighEntropyValues(["architecture","bitness","model","platformVersion","uaFullVersion","fullVersionList"]).then(r=>{$e=r;}).catch(()=>{}));}function xc(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 Rc(t){let e=t?.userAgentData;if(!e&&!$e)return;let r=$e?.fullVersionList,n=xc(r??e?.brands),i={};return n&&(i.browser=n.brand,i.browserVersion=n.version),e?.platform&&(i.os=e.platform),$e?.platformVersion&&(i.osVersion=$e.platformVersion),typeof e?.mobile=="boolean"&&(i.mobile=e.mobile),$e?.model&&(i.model=$e.model),$e?.architecture&&(i.architecture=$e.architecture),$e?.bitness&&(i.bitness=$e.bitness),Object.keys(i).length===0?void 0:i}function kc(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 Ie(t,e){if(t?.matchMedia)try{return t.matchMedia(e).matches}catch{return}}function _c(t){if(t?.matchMedia)return Ie(t,"(prefers-color-scheme: dark)")?"dark":Ie(t,"(prefers-color-scheme: light)")?"light":"no-preference"}function Cc(t){if(t?.matchMedia)return Ie(t,"(prefers-contrast: more)")?"more":Ie(t,"(prefers-contrast: less)")?"less":Ie(t,"(prefers-contrast: custom)")?"custom":"no-preference"}function Tc(t){if(t?.matchMedia){if(Ie(t,"(display-mode: fullscreen)"))return "fullscreen";if(Ie(t,"(display-mode: standalone)"))return "standalone";if(Ie(t,"(display-mode: minimal-ui)"))return "minimal-ui";if(Ie(t,"(display-mode: browser)"))return "browser"}}function Ac(t){if(!t)return;let r=t.querySelector?.('meta[name="mushi:build"]')?.content?.trim();if(r)return r.slice(0,64)}function Ic(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 $n="mushi_reporter_token";function Mc(t){return `mushi:reporter-token:${t}`}function Uo(){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 Fn(t){if(typeof localStorage>"u")return null;try{let e=localStorage.getItem(t);return e&&e.length>0?e:null}catch{return null}}function qo(t,e){if(!(typeof localStorage>"u"))try{localStorage.setItem(t,e);}catch{}}function re(t){if(!t){let o=Fn($n);if(o)return o;let s=Uo();return qo($n,s),s}let e=Mc(t),r=Fn(e);if(r)return r;let i=Fn($n)??Uo();return qo(e,i),i}function Jn(){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 jo="mushi_fingerprint_hash";function Lc(){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 Dc(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 ps(){if(typeof localStorage<"u"){let n=localStorage.getItem(jo);if(n)return n}let t=Lc(),e=JSON.stringify(t),r=await Dc(e);if(typeof localStorage<"u")try{localStorage.setItem(jo,r);}catch{}return r}var Wo="mushi_session_id",Ur=null;function Rt(){if(Ur)return Ur;if(typeof sessionStorage<"u"){let e=sessionStorage.getItem(Wo);if(e)return Ur=e,e}let t=Pc();if(Ur=t,typeof sessionStorage<"u")try{sessionStorage.setItem(Wo,t);}catch{}return t}function Pc(){return `ms_${Date.now().toString(36)}_${Bc()}`}function Bc(){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 $c=/HeadlessChrome|PhantomJS|Lighthouse|\bbot\b|bot[/-]|crawler|spider/i;function hs(t){return "mushi_events_consent_"+t}var Hn=new Set;function Fc(){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 Oc(){return typeof navigator>"u"?false:navigator.webdriver===true?true:$c.test(navigator.userAgent??"")}function fs(t){return t?.enabled===false?"disabled":t?.respectDoNotTrack!==false&&Fc()?"dnt":t?.excludeBots!==false&&Oc()?"automation":null}function Hc(t){if(!t)return null;try{let e=localStorage.getItem(hs(t));return e==="granted"||e==="denied"?e:null}catch{return null}}function Nc(t,e){if(t)try{localStorage.setItem(hs(t),e);}catch{}}function ms(t,e){let r=Hc(t);return e?.consent==="required"?r??"pending":r==="denied"?"denied":"granted"}function Uc(t,e){Nc(t,e);for(let r of [...Hn])try{r(e);}catch{}}function gs(t){return Hn.add(t),()=>{Hn.delete(t);}}var qc=6e4,sr=null,bs,Wr=null,Es=null,Zn=0,ys,Dt=null,ar=false,ur=false,St=false,Nn=false,Un=null;function jc(){return new Date().toISOString()}function Pt(){return typeof window>"u"?"":window.location.pathname}function Wc(){if(typeof document>"u"||!document.referrer)return null;try{return new URL(document.referrer).origin}catch{return null}}function Kc(){return typeof navigator>"u"?null:navigator.userAgent??null}function Gr(t,e){return {kind:t,session_id:Rt(),ts:jc(),page_view_count:Zn,reporter_token_hash:Es,user_id_hash:Wr,user_agent:Kc(),sdk_version:bs,...e}}function Yr(t){!sr||!St||(sr.postSessionEvent(t).catch(()=>{}),Xr());}function Qn(){clearTimeout(ys);}function Xr(){Qn(),!(!St||globalThis.document?.visibilityState==="hidden")&&(ys=setTimeout(()=>{Yr(Gr("session_heartbeat",{route:Pt()}));},qc));}function qn(t){St&&t!==Dt&&(Dt=t,Zn+=1,Yr(Gr("page_view",{route:t})));}function vs(){ar||!St||(ar=true,Yr(Gr("session_end",{route:Pt()})),Qn());}function Ko(){St||!ur||(St=true,Nn?Xr():(Nn=true,Zn=1,Dt=Pt(),Yr(Gr("session_start",{route:Dt,referrer:Wc()}))));}function Vc(){document.visibilityState==="hidden"?vs():(ar=false,Xr());}function zc(){vs();}function Gc(t){t.persisted&&(ar=false,Xr());}function ws(){St=false,Qn();}function Ss(t){ur||typeof window>"u"||fs(t.analytics)===null&&(ur=true,sr=t.client,bs=t.sdkVersion,Es=t.reporterToken??t.reporterTokenHash??null,Wr=t.userIdHash??null,typeof document<"u"&&document.addEventListener("visibilitychange",Vc,{passive:true}),window.addEventListener("pagehide",zc,{passive:true}),window.addEventListener("pageshow",Gc,{passive:true}),Un=gs(e=>{e==="granted"?Ko():ws();}),ms(t.projectId??"",t.analytics)==="granted"&&Ko());}function ei(t){!ur||!sr||qn(Pt());}function ti(t){t&&t!==Wr&&(Dt=null),Wr=t;}function xs(){ws(),Un?.(),Un=null,ur=false,Nn=false,Dt=null,ar=false,sr=null;}var Xc=/^[a-z][a-z0-9_]{1,63}$/,yt={maxKeys:40,maxKeyLength:64,maxValueLength:256,maxBytes:8192,maxClientBatch:20,maxServerBatch:50,maxEventNamesPerProject:200},Jc="$",Zc=/(email|phone|password|passwd|token|secret|ssn|address|credit|card|iban)/i;function ed(t){return typeof t=="string"&&Xc.test(t)}function zo(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[s,a]of Object.entries(t)){if(o>=yt.maxKeys){n.push(s);continue}let u=s.slice(0,yt.maxKeyLength);if(u.startsWith(Jc)&&!e.allowReserved){n.push(u);continue}if(Zc.test(u)&&!i.has(u)){n.push(u);continue}let c;if(a===null||typeof a=="boolean")c=a;else if(typeof a=="number")c=Number.isFinite(a)?a:null;else if(typeof a=="string"){let p=a.slice(0,yt.maxValueLength);c=e.scrub?e.scrub(p):p;}else if(a instanceof Date)c=a.toISOString();else {n.push(u);continue}r[u]=c,o+=1;}return {properties:r,dropped:n}}function td(t){try{return JSON.stringify(t).length<=yt.maxBytes}catch{return false}}var Kr=null,lr="",vt=null,Jr=null,ri=null,Rs,at=ni(),jn,Wn,He=[],Mt=[],ye="granted",cr=true,qr=null,xt=false,On=false,wt=false,Kn=null,rd=50,ks=200,nd=1440*60*1e3;function ni(){return {sampleRate:1,autoPageviews:false,flushIntervalMs:5e3,surface:"web",propertyAllowlist:[]}}function _s(){return new Date().toISOString()}function Vr(){return "mushi_events_spill_"+lr}function id(t){return t===void 0||t===429||t>=500}function Vn(){return "mushi_analytics_id_"+lr}function od(){try{let t=localStorage.getItem(Vn());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 sd(){if(vt)try{localStorage.getItem(Vn())!==vt&&localStorage.setItem(Vn(),vt);}catch{}}function ad(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 zn(){try{let t=localStorage.getItem(Vr());if(!t)return [];let e=JSON.parse(t);return !e||Date.now()-e.at>nd?(localStorage.removeItem(Vr()),[]):Array.isArray(e.events)?e.events.slice(0,ks):[]}catch{return []}}function Lt(t){try{if(t.length===0){localStorage.removeItem(Vr());return}localStorage.setItem(Vr(),JSON.stringify({at:Date.now(),events:t.slice(-ks)}));}catch{}}function Cs(){let t=zn();return t.length>0&&Lt([]),t}function ud(t){return {anon_id:vt,user_id:Jr,user_traits:ri,session_id:Wn?Wn():null,sdk_version:Rs,surface:at.surface,events:t}}async function ut(){if(!Kr||On||ye!=="granted"||He.length===0&&!wt)return;On=true,sd();let t=He.splice(0,yt.maxServerBatch);wt&&(t.unshift({name:"identify",ts:_s(),properties:{}}),wt=false);try{let e=await Kr.postProductEvents(ud(t));e.ok?Lt([]):id(e.error?.status)&&Lt([...zn(),...t.filter(r=>r.name!=="identify")]);}catch{Lt([...zn(),...t.filter(e=>e.name!=="identify")]);}finally{On=false;}He.length>=yt.maxClientBatch&&ut();}function ld(t){return ye==="denied"?false:ye==="pending"?Mt.length>=rd?false:(Mt.push(t),true):(He.push(t),He.length>=yt.maxClientBatch&&ut(),true)}function cd(t){if(t==="denied"){ye="denied",He=[],Mt=[],wt=false,Lt([]);return}let e=ye==="pending";ye="granted",e&&(He.push(...Cs(),...Mt),Mt=[]),(He.length>0||wt)&&ut();}function dd(t){let e={};for(let[r,n]of Object.entries(t))n!==void 0&&(e[r]=n);return e}function Ts(){return !xt||ye==="denied"?null:vt}function As(t){if(xt||typeof window>"u")return;let e=t.config??{};if(at={...ni(),...dd(e),propertyAllowlist:e.propertyAllowlist??[]},lr=t.projectId,fs(e)!==null)return;xt=true,Kr=t.client,vt=t.anonId??od(),Jr=t.userId??null,Rs=t.sdkVersion,jn=t.scrub,Wn=t.getSessionId;let r=Math.min(1,Math.max(0,at.sampleRate));if(cr=r>=1?true:r<=0?false:ad(vt??"anon")<r,!cr)return;ye=ms(lr,e),ye==="granted"?He.push(...Cs()):ye==="denied"&&Lt([]),Kn=gs(cd);let n=Math.max(1e3,at.flushIntervalMs);qr=setInterval(()=>{ut();},n);let i=()=>{typeof document<"u"&&document.visibilityState==="hidden"&&ut();};typeof document<"u"&&document.addEventListener("visibilitychange",i,{passive:true}),window.addEventListener("pagehide",()=>{ut();},{passive:true}),at.autoPageviews&&pd();}function Bt(t,e,r){if(!xt||!cr||!ed(t))return false;let{properties:n}=zo(e,{allowlist:at.propertyAllowlist,scrub:jn}),i=n;if(r?.reserved){let{properties:o}=zo(r.reserved,{allowReserved:true,scrub:jn});i={...n,...o};}return i.$surface=at.surface,typeof location<"u"&&i.$route===void 0&&(i.$route=location.pathname),td(i)?ld({name:t,ts:r?.ts??_s(),properties:i,...r?.dedupKey?{dedup_key:r.dedupKey}:{}}):false}function Is(t){xt||(ye=t),Uc(lr,t);}function Ms(t,e){Jr=t,ri=e??null,!(!xt||!cr||!t||ye==="denied")&&(wt=true,ye==="granted"&&ut());}function Ls(){return ut()}function Ds(){qr!=null&&(clearInterval(qr),qr=null),Kn?.(),Kn=null,xt=false,Kr=null,He=[],Mt=[],ye="granted",cr=true,wt=false,Jr=null,ri=null,at=ni();}var Go=false;function pd(){if(Go||typeof history>"u")return;Go=true;let t=history.pushState;history.pushState=function(...e){let r=t.apply(this,e);return Bt("page_view"),r},window.addEventListener("popstate",()=>{Bt("page_view");},{passive:true});}var hd=10,fd=1,md=5e3;function Ps(t={}){let{maxBurst:e=hd,refillRate:r=fd,refillIntervalMs:n=md}=t,i=e,o=Date.now();function s(){let p=Date.now(),h=p-o,m=Math.floor(h/n);m>0&&(i=Math.min(e,i+m*r),o=p);}function a(){return s(),i>0?(i--,true):false}function u(){i=e,o=Date.now();}function c(){return s(),i}return {tryConsume:a,reset:u,availableTokens:c}}var gd={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=gd.patterns,bd=Bs.map(t=>({key:t.configKey,regex:new RegExp(t.source,t.caseInsensitive?"gi":"g"),replacement:t.replacement})),Ed=Bs.reduce((t,e)=>(t[e.configKey]=e.defaultOn!==false,t),{});function ii(t={}){let e={...Ed,...t},r=bd.filter(o=>e[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 yd=/token|jwt|passw|pwd|secret|api[-_]?key|apikey|auth|session|signature|email|phone|ssn/i,vd=/^(?:key|code|sig)$/i;function wd(t){let e=t;try{e=decodeURIComponent(t);}catch{}return yd.test(e)||vd.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(wd(i))return `${i}=[Scrubbed]`;let s=o;try{s=decodeURIComponent(o);}catch{}let a=e(s);return a!==s?`${i}=${encodeURIComponent(a)}`:r}).join("&")}function hr(t,e){if(!t||!t.includes("?")&&!t.includes("#"))return t;let{scrub:r}=ii(e),n=o=>{let s=o.indexOf("?");return s===-1?o:o.slice(0,s+1)+Sd(o.slice(s+1),r)},i=t.indexOf("#");return i===-1?n(t):n(t.slice(0,i))+n(t.slice(i))}var xd=50,Rd=500;function $s(t={}){let e=Math.max(1,t.max??xd),r=Math.max(50,t.maxMessageLength??Rd),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>e;)n.shift();},getAll(){return n.slice()},clear(){n=[];},size(){return n.length}}}var Yo=8*1024,kd=1e3;function Fs(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,Yo):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,kd)}catch{return String(e)}})(),i=typeof e.stack=="string"?e.stack.slice(0,Yo):void 0;return {name:r,message:n,...i?{stack:i}:{}}}return t===void 0?{name:"Error",message:"unknown"}:{name:"Error",message:String(t)}}var he={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"},_d={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"},oi={free:he.inkMuted,explorer:"#2563EB",contributor:"#7C3AED",champion:"#D97706",default:he.accent},Zr={bg:"#0FFF50",fg:"#0a1a0a",border:"#00C43A"},Os="#FAF7F0",Hs="#ffffff";var si={light:"#9A2A1E",dark:"#7A1F15"},ai={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 ui(t){return t==="dark"?_d:he}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"},Ft={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 ct={bannerHeight:36,fabSize:52,edgeTabWidth:22,gutter:24,panelWidth:360,panelMaxHeight:480,panelSheetBreakpoint:480};function Xo(t){return /^#[0-9a-fA-F]{3,8}$/.test(t)?t:""}function Ws(t,e="",r=""){let n=ui(t),i=Xo(e),o=Xo(r),s=i||n.accent,a=i?t==="dark"?`${s}1F`:`${s}14`:n.accentWash,u=o||n.accentInk;return {accent:s,accentWash:a,accentInk:u}}var Ks={bannerLabel:"Feedback"};function Cd(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 Vs(t){if(typeof t!="string")return null;let e=t.split(".");if(e.length!==3)return null;try{let r=Cd(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 Td=new Set(["kensaur.us","www.kensaur.us"]),Ad={"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"},Id={"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 zs(t){try{let e=new URL(t).hostname.toLowerCase();return Md.some(r=>e===r||e.endsWith(`.${r}`))}catch{return false}}function Ld(t,e=32){return [`https://${t}/favicon.svg`,`https://${t}/favicon.ico`,`https://${t}/favicon-32x32.png`,`https://${t}/apple-touch-icon.png`]}function Gs(t){let e=[],r=i=>{let o=i?.trim().toLowerCase();!o||e.includes(o)||e.push(o);};r(Pd(t.repo_url)),r(Ad[t.project_slug.toLowerCase()]);let n=t.sdk_origin?Dd(t.sdk_origin):null;return n&&!Td.has(n)&&r(n),e}function Ys(t,e=32){if(t.icon_url?.trim())return [t.icon_url.trim()];let r=new Set,n=[],i=s=>{!s||r.has(s)||zs(s)||(r.add(s),n.push(s));},o=Id[t.project_slug.toLowerCase()];o&&i(o);for(let s of Gs(t))for(let a of Ld(s,e))i(a);return n}function Dd(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 Pd(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 Xs(t){return Gs(t)[0]??null}function Js(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),s=0,a=0,u=0;for(let p=0;p<o.length;p+=4){let h=o[p],m=o[p+1],v=o[p+2];if(o[p+3]<128)continue;s++;let g=Math.max(h,m,v),y=Math.min(h,m,v),_=g-y;u=Math.max(u,_),a+=_;}return s===0?!0:a/s<14&&u<24}catch{return zs(t.src)}}function Zs(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 Qs(){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&&Bd(n))return n}return null}function Bd(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 ta(t,e=Jo){if(!t.startsWith("data:image/")||ea(t)<=e)return t;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=t;});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 c=s.getContext("2d");if(c){c.drawImage(r,0,0,a,u);for(let p of n){let h=s.toDataURL("image/jpeg",p);if(ea(h)<=e)return h}}}return null}function ea(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 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 t=sessionStorage.getItem(tn);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 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 c=a.options.filter(p=>typeof p=="string");c.length&&(u.options=c);}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(t){try{if(typeof sessionStorage>"u")return;if(!t.turns.length&&!t.threadId){sessionStorage.removeItem(tn);return}sessionStorage.setItem(tn,JSON.stringify(t));}catch{}}function aa(){try{if(typeof sessionStorage>"u")return;sessionStorage.removeItem(tn);}catch{}}var ua="Feature request";function la(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 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(e).toLocaleDateString(void 0,{month:"short",day:"numeric"})}var $d="https://kensaur.us/mushi-mushi/",Fd="utm_source=widget&utm_medium=powered-by";function ca(t){let e=`${$d}?${Fd}`;return t&&/^[0-9a-f]{6,64}$/.test(t)?`${e}&ref=${t}`:e}function da(t){return (t.metaKey||t.ctrlKey)&&t.key==="Enter"}function pa(t){return /Mac|iPhone|iPad|iPod/i.test(t)?"\u2318":"Ctrl"}function ha(){return typeof navigator>"u"?"":navigator.userAgentData?.platform||navigator.platform||navigator.userAgent||""}function fa(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 Ot(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 Ht=15e3,rn=4e3;function ma(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 kt(t){return t.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function fr(t){return t?.failureKind==="blocked"||t?.failureKind==="throttled"}function ga(t,e){if(!e.includes("*"))return t.includes(e);let r=e.replace(/\/\*\*$|\*\*|\*|[.+?^${}()|[\]\\]/g,n=>n==="/**"?"(/.*)?":n==="**"?".*":n==="*"?"[^/]*":`\\${n}`);return new RegExp(`^${r}$`).test(t.length>1?t.replace(/\/$/,""):t)}function ba(t){let e=t.appDomain??Xs({project_id:t.projectId,project_name:t.appName,project_slug:t.appSlug??""}),r=kt(Zs(t.appName)),n=Ys({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="${kt(JSON.stringify(n))}" data-initials="${r}" aria-hidden="true" title="${kt(e??t.appName)}">
|
|
12
|
+
`;}return r}function rf(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 s=0;s<e;s+=n)if(t.getImageData(s,o,1,1).data[3]!==0)return !1;return !0}catch{return false}}function nf(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 of(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");}var Eh,yh,vh,wh,xu,Ru,xh,kh,_h,Ch,Ah,Mh,Lh,Nh,qh,Cu,Qh,Iu=Ce(()=>{yn();Eh=/[\u0000-\u0008\u000B\u000C\u000E-\u001F]/g,yh=/^[A-Za-z_][\w.:-]*$/,vh=60,wh=12*1024*1024,xu="img, video, canvas, iframe, object, embed";Ru=["[data-mushi-redact]"],xh=["transform","translate","scale","rotate","opacity","visibility","clip-path","object-position","background-position","left","top","width","height","color","background-color"];kh=40,_h=6*1024*1024,Ch=2*1024*1024;Ah=/url\(\s*(['"]?)([^)'"]+)\1\s*\)/gi;Mh=/^(block|flow-root|flex|grid|list-item|inline-block|inline-flex|inline-grid|table)$/,Lh=/^(block|flow-root|list-item)$/;Nh=2048;qh=new Set(["src","srcset","sizes","poster","data","loading","decoding"]);Cu=2500;Qh="*,*::before,*::after{animation:none!important;transition:none!important}";});function $i(t={}){let e=t,r=i=>{e.onFailed?.(i),sf(i);};async function n(){try{if(typeof document>"u")return null;let{captureDomScreenshot:i}=await Promise.resolve().then(()=>(Iu(),Au));return await i(e.privacy,r)}catch{return r("error"),null}}return {take:n,updateOptions(i){e=i;}}}function sf(t){try{document.dispatchEvent(new CustomEvent("mushi:screenshot_failed",{detail:{reason:t},bubbles:!1}));}catch{}}var zt,yn=Ce(()=>{zt='input[type="password"],input[autocomplete^="cc-"],[data-private],[data-mushi-mask]';});var qu={};ht(qu,{deviceDraw:()=>Bf,journeyRecordingDecision:()=>Df,readTabOptIn:()=>Pf});function Df(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 Pf(t){if(typeof window>"u")return false;let e=null;try{e=new URL(window.location.href).searchParams.get(Lf);}catch{e=null;}try{return e==="1"||e==="true"?window.sessionStorage.setItem(zi(t),"1"):(e==="0"||e==="false")&&window.sessionStorage.removeItem(zi(t)),window.sessionStorage.getItem(zi(t))==="1"}catch{return e==="1"||e==="true"}}function Bf(t,e=Math.random){if(typeof window>"u")return e();try{let r=Number(window.localStorage.getItem(Gi(t)));if(window.localStorage.getItem(Gi(t))!==null&&Number.isFinite(r)&&r>=0&&r<1)return r;let n=e();return window.localStorage.setItem(Gi(t),String(n)),n}catch{return e()}}var Lf,zi,Gi,ju=Ce(()=>{Lf="mushi_journeys",zi=t=>`mushi:journeys:tab:${t}`,Gi=t=>`mushi:journeys:draw:${t}`;});var Wu={};ht(Wu,{grabMaskedTabFrame:()=>$f});async function $f(t,e){let r=await t,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=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 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 Ku=Ce(()=>{});var Vu={};ht(Vu,{createScreenshotAnnotation:()=>Ff});function Ff(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 s=document.createElement("canvas"),a=document.createElement("canvas"),u=Math.min(1,720/i.width),c=Math.round(i.width*u),p=Math.round(i.height*u);for(let T of [s,a])T.width=c,T.height=p,T.style.width="100%",T.style.height="auto",T.style.display="block";a.style.position="absolute",a.style.left="0",a.style.top="0",a.style.cursor="crosshair";let h=s.getContext("2d"),m=a.getContext("2d");if(!h||!m){n(new Error("Canvas not supported"));return}h.drawImage(i,0,0,c,p),o.appendChild(s),o.appendChild(a),e.appendChild(o);let w="highlight",x=false,g=null,y=[],_=T=>{let b=a.getBoundingClientRect(),f="touches"in T?T.touches[0]??T.changedTouches[0]:null,E=f?f.clientX:T.clientX,A=f?f.clientY:T.clientY;return {x:(E-b.left)/b.width*c,y:(A-b.top)/b.height*p}},k=()=>{m.clearRect(0,0,c,p);for(let T of y)if(T.tool==="highlight"&&T.points.length>=2){let[b,f]=T.points;m.fillStyle="rgba(255, 230, 0, 0.35)",m.fillRect(Math.min(b.x,f.x),Math.min(b.y,f.y),Math.abs(f.x-b.x),Math.abs(f.y-b.y));}else if(T.tool==="arrow"&&T.points.length>=2){let[b,f]=T.points;m.strokeStyle="#ef4444",m.lineWidth=3,m.beginPath(),m.moveTo(b.x,b.y),m.lineTo(f.x,f.y),m.stroke();}},v=T=>{x=true,g=_(T);},C=T=>{if(!x||!g)return;x=false;let b=_(T);if(w==="blur"){let f=Math.min(g.x,b.x),E=Math.min(g.y,b.y),A=Math.abs(b.x-g.x),$=Math.abs(b.y-g.y);A>=1&&$>=1&&(h.filter="blur(8px)",h.drawImage(s,f,E,A,$,f,E,A,$),h.filter="none");}else y.push({tool:w,points:[g,b]});g=null,k();};a.addEventListener("mousedown",v),a.addEventListener("mouseup",C),a.addEventListener("touchstart",v,{passive:true}),a.addEventListener("touchend",C),r({canvas:s,setTool(T){w=T;},getDataUrl(){let T=document.createElement("canvas");T.width=c,T.height=p;let b=T.getContext("2d");return b?(b.drawImage(s,0,0),b.drawImage(a,0,0),T.toDataURL("image/jpeg",.85)):t},destroy(){a.removeEventListener("mousedown",v),a.removeEventListener("mouseup",C),a.removeEventListener("touchstart",v),a.removeEventListener("touchend",C),o.remove();}});},i.onerror=()=>n(new Error("Failed to load screenshot")),i.src=t;})}var zu=Ce(()=>{});var Sl=4194304,Jo=1.5*1024*1024;function xl(t){try{return JSON.stringify(t)}catch{return null}}function Rl(t,e=Sl){let r=xl(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 ${Lo(n)} exceeds limit ${Lo(e)}`}}function Lo(t){return t<1024?`${t} B`:t<1024*1024?`${(t/1024).toFixed(1)} KB`:`${(t/(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(t){return Array.from(t).map(e=>e.toString(16).padStart(2,"0")).join("")}async function $t(t){let e=Zo();if(e){let n=await e.digest("SHA-256",new TextEncoder().encode(t));return jr(new Uint8Array(n))}let{sha256:r}=await Promise.resolve().then(()=>(Ln(),Mn));return jr(r(new TextEncoder().encode(t)))}async function kl(t,e){let r=Zo();if(r){let s=await r.importKey("raw",new TextEncoder().encode(t),{name:"HMAC",hash:"SHA-256"},false,["sign"]),a=await r.sign("HMAC",s,new TextEncoder().encode(e));return jr(new Uint8Array(a))}let{hmac:n}=await Promise.resolve().then(()=>(Mo(),Io)),{sha256:i}=await Promise.resolve().then(()=>(Ln(),Mn)),o=n(i,new TextEncoder().encode(t),new TextEncoder().encode(e));return jr(o)}var _l=60*1024;function Cl(t){return {mushiBeacon:true,path:t.path,headers:t.headers,body:t.body}}function Tl(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 Al(t){try{let e=t.startsWith("/")?new URL(t,"https://tunnel.local"):new URL(t);return `${e.pathname}${e.search}`}catch{return t}}function Il(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||!Tl(t.url))return false;let n=t.body;try{n=JSON.parse(t.body);}catch{n=t.body;}let i=JSON.stringify(Cl({path:t.path??Al(t.url),headers:t.headers,body:n}));if(i.length>_l)return false;try{return r(t.url,new Blob([i],{type:"application/json"}))}catch{return false}}var Qo=false;function es(){Qo=true;}function Ml(){return Qo}var ir=null;function ts(){let t=ir;return ir=null,!!t&&Il(t)}var Do=false,Ll="X-Mushi-User-Token",Dl="X-Mushi-Project",Pl="X-Mushi-SDK-Package",Bl="X-Mushi-SDK-Version";function $l(t){let e={"Content-Type":"application/json","X-Mushi-Api-Key":t.apiKey,[Dl]:t.projectId};return t.sdkPackage&&(e[Pl]=t.sdkPackage),t.sdkVersion&&(e[Bl]=t.sdkVersion),t.userToken&&(e[Ll]=t.userToken),t.internalKind&&(e[zr]=t.internalKind),e}var or="https://dxptnwrhwsqckaftyymj.supabase.co/functions/v1/api",zr="X-Mushi-Internal",dr="__mushiInternal";function Fl(t,e){let r=e?.trim();return r?r.replace(/\/$/,""):(t??or).replace(/\/$/,"")}var Ol=1e4,Hl=2,Nl=4,Ul=3e4,ql=1e4;function rs(t){let{projectId:e,apiKey:r,apiEndpoint:n=or,tunnel:i,timeout:o=Ol,maxRetries:s=Hl,getUserToken:a,sdkPackage:u,sdkVersion:c,circuitBreaker:p}=t,h=Fl(n,i),m=p?.enabled!==false,w=Math.max(1,p?.threshold??Nl),x=Math.max(1e3,p?.cooldownMs??Ul),g=0,y=0,_=()=>m&&y>Date.now(),k=()=>{g=0,y=0;},v=()=>{m&&(g+=1,g>=w&&(y=Date.now()+x));};async function C(b,f,E,A=s,$,U,q){let se=$!=="reporter-poll";if(se&&_())return {ok:false,error:{code:"CIRCUIT_OPEN",message:"Endpoint temporarily unavailable; retrying later."}};let Q=`${h}${f}`,V=new AbortController,M=setTimeout(()=>V.abort(),o),je=a?.()??null,Le={...$l({apiKey:r,projectId:e,sdkPackage:u,sdkVersion:c,userToken:je,internalKind:$}),...U},Se=E?JSON.stringify(E):void 0,le=null;Se&&b!=="GET"&&$!=="reporter-poll"&&(le={url:Q,headers:Le,body:Se,path:f},ir=le);try{let J=await fetch(Q,{method:b,headers:Le,body:Se,keepalive:Ml(),signal:V.signal,...q?{cache:q}:{},...$?{[dr]:$}:{}});if(clearTimeout(M),J.status===307||J.status===308){let Z=J.headers.get("Location");if(Z&&A>0){let R=Z.replace(/\/v1\/.*$/,"").replace(/\/$/,"");if(R!==h)return h=R,C(b,f,E,A-1,$,U,q)}}if(!J.ok){let Z=await J.json().catch(()=>({}));if((J.status===401||J.status===403)&&!Do){Do=!0;let G=h===or?"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"). `+G);}let R=J.status===429,P=J.status>=500||R,F=R?jl(J.headers.get("Retry-After")):null,O=F===null||F<=ql;return P&&A>0&&O?(await Po(F??Bo(s-A)),C(b,f,E,A-1,$,U)):(se&&(P?v():k()),{ok:!1,error:{code:Z.error?.code||`HTTP_${J.status}`,message:Z.error?.message||Z.message||`HTTP ${J.status} error`,status:J.status}})}let ne=await J.json(),ce=ne&&typeof ne=="object"&&"ok"in ne&&"data"in ne?ne.data:ne;return se&&k(),{ok:!0,data:ce}}catch(J){return clearTimeout(M),A>0&&Wl(J)?(await Po(Bo(s-A)),C(b,f,E,A-1,$,U)):(se&&v(),{ok:false,error:{code:"NETWORK_ERROR",message:J instanceof Error?J.message:"Unknown network error"}})}finally{ir===le&&(ir=null);}}async function T(b,f,E,A){try{let $=await $t(E),U=String(Date.now());return await C(b,f,A,s,"reporter-poll",{"X-Reporter-Token-Hash":$,"X-Reporter-Ts":U,"X-Reporter-Hmac":await kl(r,`${e}.${U}.${$}`)})}catch($){return {ok:false,error:{code:"NETWORK_ERROR",message:$ instanceof Error?$.message:"Unknown error"}}}}return {async submitReport(b){let f=Rl(b);return f.ok?C("POST","/v1/reports",b,s,"report-submit"):{ok:false,error:{code:f.serializeFailed?"SERIALIZE_FAILED":"PAYLOAD_TOO_LARGE",message:f.reason??"Report payload exceeds size limit"}}},async getReportStatus(b){return C("GET",`/v1/reports/${b}/status`,void 0,s,"report-status")},async getSdkConfig(b){return C("GET","/v1/sdk/config",void 0,s,"sdk-config",void 0,b?.fresh?"no-store":void 0)},async askAssistant(b){return C("POST","/v1/sdk/assistant",{message:b.message,threadId:b.threadId??null,context:b.context??null},1,"community")},async getLatestSdkVersion(b){let f=new URLSearchParams({package:b}).toString();return C("GET",`/v1/sdk/latest-version?${f}`,void 0,s,"sdk-config")},async postDiscoveryEvent(b){return C("POST","/v1/sdk/discovery",b,1,"discovery")},async listReporterReports(b){return T("GET","/v1/reporter/reports",b)},reporterRequest:T,async listReporterComments(b,f){return T("GET",`/v1/reporter/reports/${b}/comments`,f)},async replyToReporterReport(b,f,E,A){return T("POST",`/v1/reporter/reports/${b}/reply`,f,{body:E,...A?{feedback_signal:A}:{}})},async reopenReporterReport(b,f,E){return T("POST",`/v1/reporter/reports/${b}/reopen`,f,{note:E??""})},async listNotifications(b,f){let E=new URLSearchParams;f?.since&&E.set("since",f.since),f?.limit&&E.set("limit",String(f.limit));let A=E.size?`?${E.toString()}`:"";return T("GET",`/v1/notifications${A}`,b)},async markNotificationRead(b,f){return T("POST",`/v1/notifications/${b}/read`,f,{})},async listReporterFeatureBoard(b){return T("GET","/v1/reporter/feature-board",b)},async voteReporterFeatureBoard(b,f){return T("POST",`/v1/reporter/feature-board/${b}/vote`,f,{})},async postSessionEvent(b){return C("POST","/v1/sdk/session",b,1,"discovery")},async postProductEvents(b){return C("POST","/v1/sdk/events",b,1,"discovery")},async submitActivity(b,f,E){return C("POST","/v1/sdk/activity",{user_id:b,user_traits:E?.userTraits,opted_in:E?.optedIn,reporter_token_hash:E?.reporterTokenHash,...E?.hostJwt?{host_jwt:E.hostJwt}:{},events:f},1,"discovery")},async getMyPoints(b){return C("GET",`/v1/sdk/me/points?userId=${encodeURIComponent(b)}`,void 0,1,"reporter-poll")},async getMyTier(b){return C("GET",`/v1/sdk/me/tier?userId=${encodeURIComponent(b)}`,void 0,1,"reporter-poll")},async getMyHistory(b,f){let E=new URLSearchParams({userId:b,...f?.limit?{limit:String(f.limit)}:{}});return C("GET",`/v1/sdk/me/history?${E}`,void 0,1,"reporter-poll")},async getHallOfFame(b=10){return C("GET",`/v1/sdk/hall-of-fame?limit=${b}`,void 0,1,"reporter-poll")},async sendMagicLink(b){return C("POST","/v1/tester/magic-link",{email:b},1,"community")},async linkReporterToken(b,f){return C("POST","/v1/tester/link-reporter",{reporter_token_hash:b},1,"community",{Authorization:`Bearer ${f}`})},async getCrossAppReports(b,f){let E=new URLSearchParams;f?.limit&&E.set("limit",String(f.limit)),f?.offset&&E.set("offset",String(f.offset));let A=E.size?`?${E.toString()}`:"";return C("GET",`/v1/tester/cross-app-reports${A}`,void 0,1,"community",{Authorization:`Bearer ${b}`})},async getMyReputation(b){return C("GET","/v1/tester/reputation",void 0,1,"community",{Authorization:`Bearer ${b}`})},async getPublicLeaderboard(b=20){return C("GET",`/v1/public/tester-leaderboard?limit=${b}`,void 0,1,"reporter-poll")},async getTesterStatus(b){return C("GET","/v1/me/tester-status",void 0,1,"community",{Authorization:`Bearer ${b}`})}}}function Po(t){return new Promise(e=>setTimeout(e,t))}function Bo(t){return Math.min(1e3*2**t+Math.random()*500,1e4)}function jl(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 Wl(t){return t instanceof DOMException&&t.name==="AbortError"||t instanceof TypeError}function Dn(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 pr(t){if(Dn(t.message,t.ignoreErrors))return true;let e=t.filename?.trim()||"";return !!(e&&Dn(e,t.denyUrls)||t.allowUrls&&t.allowUrls.length>0&&(!e||!Dn(e,t.allowUrls)))}function Pn(...t){return t.find(e=>e!==void 0&&e!=="")}function Te(t){try{let e=undefined;return typeof e=="object"&&e!==null?e[t]:void 0}catch{return}}function Xe(t){try{return t()}catch{return}}function Gn(){let t=Pn(Te("VITE_MUSHI_PROJECT_ID"),Te("NEXT_PUBLIC_MUSHI_PROJECT_ID"),Te("NUXT_PUBLIC_MUSHI_PROJECT_ID"),Te("EXPO_PUBLIC_MUSHI_PROJECT_ID"),Xe(()=>process.env.NEXT_PUBLIC_MUSHI_PROJECT_ID),Xe(()=>process.env.EXPO_PUBLIC_MUSHI_PROJECT_ID),Xe(()=>process.env.MUSHI_PROJECT_ID)),e=Pn(Te("VITE_MUSHI_API_KEY"),Te("NEXT_PUBLIC_MUSHI_API_KEY"),Te("NUXT_PUBLIC_MUSHI_API_KEY"),Te("EXPO_PUBLIC_MUSHI_API_KEY"),Xe(()=>process.env.NEXT_PUBLIC_MUSHI_API_KEY),Xe(()=>process.env.EXPO_PUBLIC_MUSHI_API_KEY),Xe(()=>process.env.MUSHI_API_KEY)),r=Pn(Te("VITE_MUSHI_API_ENDPOINT"),Te("NEXT_PUBLIC_MUSHI_API_ENDPOINT"),Te("NUXT_PUBLIC_MUSHI_API_ENDPOINT"),Te("EXPO_PUBLIC_MUSHI_API_ENDPOINT"),Xe(()=>process.env.NEXT_PUBLIC_MUSHI_API_ENDPOINT),Xe(()=>process.env.EXPO_PUBLIC_MUSHI_API_ENDPOINT),Xe(()=>process.env.MUSHI_API_ENDPOINT)),n={};return t&&(n.projectId=t),e&&(n.apiKey=e),r&&(n.apiEndpoint=r),n}var Kl=["VITE_","NEXT_PUBLIC_","NUXT_PUBLIC_","EXPO_PUBLIC_",""],Vl={projectId:"MUSHI_PROJECT_ID",apiKey:"MUSHI_API_KEY"};function ns(){let t=Gn(),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 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 e)for(let u of Kl){let c=`${u}${Vl[a]}`;r&&r[c]?i.push({field:a,key:c,via:"import.meta.env"}):n&&n[c]&&i.push({field:a,key:c,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 ${e.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:t,missing:e,nearMisses:i,message:s.join(`
|
|
13
|
+
`)}}var $o=["production-calm","beta-loud","internal-debug","manual-only","minimal","standard","full"],zl=["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 Gl(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 is(t){let e=Gl(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 Yl(){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 os(t){try{if(Yl()||!t||typeof t!="object")return;let e=Object.keys(t).filter(r=>!zl.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&&!$o.includes(t.preset)&&console.error(`[mushi] Unknown preset \`${String(t.preset)}\` \u2014 expected one of ${$o.map(r=>`'${r}'`).join(", ")}. Preset ignored.`);}catch{}}var Xl=10,Jl=2e3,Zl=[/^(.)\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],Ql=/^[bcdfghjklmnpqrstvwxz]{6,}/i;function ss(t={}){let{enabled:e=true,blockObviousSpam:r=true,minDescriptionLength:n=Xl,maxDescriptionLength:i=Jl}=t;function o(a){if(!e)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 Zl)if(p.test(u))return {passed:false,reason:"Detected as spam"};if(Ql.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},ec={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"},tc={debug:Ee.dim,info:Ee.green,warn:Ee.yellow,error:Ee.red,fatal:`${Ee.bgRed}${Ee.white}${Ee.bold}`};function rc(){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 nc(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 ic(t){let{ts:e,level:r,scope:n,msg:i,...o}=t,s=e.slice(11,23),a=tc[r]??"",u=ec[r]??r.toUpperCase(),c=Object.keys(o).length>0?` ${Ee.dim}${nc(o)}${Ee.reset}`:"";return `${Ee.dim}${s}${Ee.reset} ${a}${u}${Ee.reset} ${Ee.cyan}[${n}]${Ee.reset} ${i}${c}`}function oc(t){return JSON.stringify(t)}function sc(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 as(t,e,r,n,i){let o=e;function s(a,u,c){if(Fo[a]<Fo[o])return;let p={ts:new Date().toISOString(),level:a,scope:t,msg:u,...r,...c};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(`${t}:${a}`,o,{...r,...u},n,i)},setLevel(a){o=a;}}}function lt(t){let{scope:e,level:r="info",meta:n={},format:i="auto",destination:o="stdout"}=t,a=(i==="auto"?rc():i)==="json"?oc:ic,u=sc(o);return as(e,r,n,a,u)}var Yn={debug:()=>{},info:()=>{},warn:()=>{},error:()=>{},fatal:()=>{},child:()=>Yn,setLevel:()=>{}},ac="mushi-mushi-keyring",Et="keys",us="offline-queue/v1",Hr=null,Nr=null;function uc(){return typeof globalThis<"u"&&typeof globalThis.crypto<"u"&&typeof globalThis.crypto.subtle<"u"&&typeof indexedDB<"u"}function ls(){return new Promise((t,e)=>{let r=indexedDB.open(ac,1);r.onupgradeneeded=()=>{try{let n=r.result;if(!n)return;n.objectStoreNames.contains(Et)||n.createObjectStore(Et);}catch{}},r.onsuccess=()=>{let n=r.result;if(!n||!n.objectStoreNames.contains(Et)){try{n?.close();}catch{}e(new Error("key object store unavailable"));return}t(n);},r.onerror=()=>e(r.error);})}async function lc(){let t=await ls();return new Promise((e,r)=>{let i=t.transaction(Et,"readonly").objectStore(Et).get(us);i.onsuccess=()=>e(i.result??null),i.onerror=()=>r(i.error);})}async function cc(t){let e=await ls();return new Promise((r,n)=>{let i=e.transaction(Et,"readwrite");i.objectStore(Et).put(t,us),i.oncomplete=()=>r(),i.onerror=()=>n(i.error);})}async function cs(){if(Hr)return Hr;if(Nr)return Nr;if(!uc())throw new Error("Web Crypto + IndexedDB required for offline queue encryption");return Nr=(async()=>{let t=await lc();if(t)return Hr=t,t;let e=await crypto.subtle.generateKey({name:"AES-GCM",length:256},false,["encrypt","decrypt"]);return await cc(e),Hr=e,e})(),Nr}function Oo(t){let e="";for(let r of t)e+=String.fromCharCode(r);return btoa(e)}function Ho(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 dc(t){let e=await cs(),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:Oo(r),ct:Oo(i)}}function pc(t){return !!t&&typeof t=="object"&&t._mme===1&&typeof t.iv=="string"&&typeof t.ct=="string"}async function hc(t){let e=await cs(),r=Ho(t.iv),n=Ho(t.ct),i=await crypto.subtle.decrypt({name:"AES-GCM",iv:r},e,n);return JSON.parse(new TextDecoder().decode(i))}var Ae=lt({scope:"mushi:queue",level:"warn"}),fc="mushi-mushi",me="offline-reports",mc=1,Bn="mushi_offline_queue",gc=10,bc=6e4,Ec=3e4,yc=8,vc=1440*60*1e3;function ds(t={}){let{enabled:e=true,maxQueueSize:r=50,syncOnReconnect:n=true,encryptAtRest:i=true}=t,o=null,s=null,a=null,u=null,c=null;async function p(R){let P=new Date().toISOString();if(!i)return {...R,queuedAt:P};try{let F=await dc(R);return {id:R.id,queuedAt:P,payload:F}}catch(F){return Ae.warn("Offline queue: encryption failed, storing plaintext",{err:String(F)}),{...R,queuedAt:P}}}async function h(R){if(m(R))try{return await hc(R.payload)}catch(P){return Ae.warn("Offline queue: decrypt failed, dropping row",{err:String(P),id:R.id}),null}return R}function m(R){return !!R.payload&&pc(R.payload)}function w(R){let P=R.attempts;return typeof P=="number"&&Number.isFinite(P)?P:0}function x(R,P){let F=R.queuedAt;if(!F)return false;let O=Date.parse(F);return Number.isNaN(O)?false:P-O>vc}function g(){return a||(typeof indexedDB<"u"?a="indexeddb":typeof localStorage<"u"?a="localstorage":a="none",a)}function y(){return new Promise((R,P)=>{let F=indexedDB.open(fc,mc);F.onupgradeneeded=()=>{try{let O=F.result;if(!O)return;O.objectStoreNames.contains(me)||O.createObjectStore(me,{keyPath:"id"});}catch{}},F.onsuccess=()=>{let O=F.result;if(!O||!O.objectStoreNames.contains(me)){a="localstorage";try{O?.close();}catch{}P(new Error("queue object store unavailable"));return}R(O);},F.onerror=()=>{a="localstorage",P(F.error);};})}async function _(R){let P=await y(),F=await p(R);return new Promise((O,G)=>{let De=P.transaction(me,"readwrite");De.objectStore(me).put(F),De.oncomplete=()=>O(),De.onerror=()=>G(De.error);})}async function k(){let R=await y();return new Promise((P,F)=>{let G=R.transaction(me,"readonly").objectStore(me).getAll();G.onsuccess=()=>P(G.result),G.onerror=()=>F(G.error);})}async function v(R){let P=await y();return new Promise((F,O)=>{let G=P.transaction(me,"readwrite");G.objectStore(me).delete(R),G.oncomplete=()=>F(),G.onerror=()=>O(G.error);})}async function C(R){let P=await y();return new Promise((F,O)=>{let G=P.transaction(me,"readwrite");G.objectStore(me).put(R),G.oncomplete=()=>F(),G.onerror=()=>O(G.error);})}async function T(){let R=await y();return new Promise((P,F)=>{let G=R.transaction(me,"readonly").objectStore(me).count();G.onsuccess=()=>P(G.result),G.onerror=()=>F(G.error);})}async function b(){let R=await y();return new Promise((P,F)=>{let O=R.transaction(me,"readwrite");O.objectStore(me).clear(),O.oncomplete=()=>P(),O.onerror=()=>F(O.error);})}function f(){try{let R=localStorage.getItem(Bn);return R?JSON.parse(R):[]}catch{return []}}function E(R){try{localStorage.setItem(Bn,JSON.stringify(R));}catch{}}async function A(R){let P=f(),F=await p(R),O=P.findIndex(G=>G.id===R.id);O>=0?P[O]=F:P.push(F),E(P);}function $(R){let P=f().filter(F=>F.id!==R);E(P);}function U(R){let P=f(),F=P.findIndex(O=>O.id===R.id);F>=0&&(P[F]=R,E(P));}async function q(R,P){try{R==="indexeddb"?await v(P):$(P);}catch(F){Ae.debug("Offline queue: row removal failed (will age out)",{id:P,err:String(F)});}}async function se(R,P){try{return R==="indexeddb"?await C(P):U(P),!0}catch(F){return Ae.debug("Offline queue: row persist failed",{id:P.id,err:String(F)}),false}}async function Q(){let R=g();if(R==="none")return {backend:R,rows:[]};if(R==="indexeddb")try{return {backend:R,rows:await k()}}catch{a="localstorage";}return {backend:"localstorage",rows:f()}}async function V(R){let P=g();if(P==="none")return Ae.debug("Offline queue: no storage backend, dropping report",{id:R.id}),P;if(P==="indexeddb")try{return await _(R),P}catch{a="localstorage";}return await A(R),"localstorage"}async function M(R){if(!e)return;if(await J()>=r){Ae.warn("Offline queue full \u2014 dropping report",{maxQueueSize:r});return}await V(R);}function je(R){return Math.min(1e3*2**R+Math.random()*500,bc)}function Le(R){return new Promise(P=>setTimeout(P,R))}async function Se(R){let{backend:P,rows:F}=await Q(),O=F,G=Date.now(),De=[];for(let ge of O)if(x(ge,G)){let xe=ge.id;await q(P,xe),Ae.debug("Offline queue: evicting stale report",{id:xe});}else De.push(ge);O=De;let We=O.slice(0,gc),et=0,z=0;for(let ge=0;ge<We.length;ge++){let xe=We[ge],Re=xe.id,ke=await h(xe);if(!ke){await q(P,Re),z++;continue}let H=await R.submitReport(ke);if(H.ok){await q(P,Re),et++;continue}if(z++,H.error?.code==="CIRCUIT_OPEN"){Ae.debug("Offline queue: circuit open, deferring the rest of the batch",{id:Re,remaining:We.length-ge});break}let Tt=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),tt=!Tt&&(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(Tt)await q(P,Re);else {let rt=w(xe)+1;rt>=yc?(await q(P,Re),Ae.warn("Offline queue: giving up on report after repeated failures",{id:Re,attempts:rt,code:H.error?.code})):(xe.attempts=rt,await se(P,xe)?Ae.debug("Offline queue: delivery failed, will retry",{id:Re,attempts:rt,code:H.error?.code,classified:tt?"transient":"unclassified"}):(await q(P,Re),Ae.warn("Offline queue: dropping report (attempt counter unpersistable)",{id:Re,code:H.error?.code})));}ge<We.length-1&&await Le(je(ge));}return {sent:et,failed:z}}function le(R){if(!e)return Promise.resolve({sent:0,failed:0});if(u)return c||(c=u.catch(()=>{}).then(()=>(c=null,le(R)))),c;let P=Se(R).finally(()=>{u===P&&(u=null);});return u=P,P}async function J(){if(g()==="indexeddb")try{return await T()}catch{a="localstorage";}return f().length}async function ne(){if(g()==="indexeddb")try{await b();}catch{}try{localStorage.removeItem(Bn);}catch{}}function ce(R){if(!e||!n||typeof window>"u")return;o&&Z();let P=()=>{navigator.onLine&&le(R).catch(F=>{Ae.warn("Offline queue auto-flush failed",{err:String(F)});});};window.addEventListener("online",P),s=setInterval(()=>{J().then(F=>{F>0&&P();});},Ec),o=()=>{window.removeEventListener("online",P),s&&(clearInterval(s),s=null);};}function Z(){o?.(),o=null;}return {enqueue:M,flush:le,size:J,clear:ne,startAutoSync:ce,stopAutoSync:Z}}function Xn(){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,s=!!o?.Capacitor,a=!!o?.cordova,u=t?.product==="ReactNative"||typeof globalThis.HermesInternal<"u",c=s||a||u?{...s?{capacitor:true}:{},...a?{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:wc(r),userAgentData:Rc(t),screen:kc(n,e),prefersColorScheme:_c(e),prefersReducedMotion:Ie(e,"(prefers-reduced-motion: reduce)"),prefersReducedData:Ie(e,"(prefers-reduced-data: reduce)"),prefersContrast:Cc(e),forcedColors:Ie(e,"(forced-colors: active)"),online:typeof t?.onLine=="boolean"?t.onLine:void 0,displayMode:Tc(e),documentTitle:r?.title?.slice(0,200),buildId:Ac(r),pageLoadTiming:Ic(e),...c?{native:c}:{}}}function wc(t){if(!t)return;let e=t.activeElement??null,r=0;for(;e&&r<20;){let n=e.getAttribute?.("data-testid");if(n)return n;e=e.parentElement,r++;}}var $e=null,No=false;function Sc(t){if(No)return;let e=t?.userAgentData;e?.getHighEntropyValues&&(No=true,e.getHighEntropyValues(["architecture","bitness","model","platformVersion","uaFullVersion","fullVersionList"]).then(r=>{$e=r;}).catch(()=>{}));}function xc(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 Rc(t){let e=t?.userAgentData;if(!e&&!$e)return;let r=$e?.fullVersionList,n=xc(r??e?.brands),i={};return n&&(i.browser=n.brand,i.browserVersion=n.version),e?.platform&&(i.os=e.platform),$e?.platformVersion&&(i.osVersion=$e.platformVersion),typeof e?.mobile=="boolean"&&(i.mobile=e.mobile),$e?.model&&(i.model=$e.model),$e?.architecture&&(i.architecture=$e.architecture),$e?.bitness&&(i.bitness=$e.bitness),Object.keys(i).length===0?void 0:i}function kc(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 Ie(t,e){if(t?.matchMedia)try{return t.matchMedia(e).matches}catch{return}}function _c(t){if(t?.matchMedia)return Ie(t,"(prefers-color-scheme: dark)")?"dark":Ie(t,"(prefers-color-scheme: light)")?"light":"no-preference"}function Cc(t){if(t?.matchMedia)return Ie(t,"(prefers-contrast: more)")?"more":Ie(t,"(prefers-contrast: less)")?"less":Ie(t,"(prefers-contrast: custom)")?"custom":"no-preference"}function Tc(t){if(t?.matchMedia){if(Ie(t,"(display-mode: fullscreen)"))return "fullscreen";if(Ie(t,"(display-mode: standalone)"))return "standalone";if(Ie(t,"(display-mode: minimal-ui)"))return "minimal-ui";if(Ie(t,"(display-mode: browser)"))return "browser"}}function Ac(t){if(!t)return;let r=t.querySelector?.('meta[name="mushi:build"]')?.content?.trim();if(r)return r.slice(0,64)}function Ic(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 $n="mushi_reporter_token";function Mc(t){return `mushi:reporter-token:${t}`}function Uo(){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 Fn(t){if(typeof localStorage>"u")return null;try{let e=localStorage.getItem(t);return e&&e.length>0?e:null}catch{return null}}function qo(t,e){if(!(typeof localStorage>"u"))try{localStorage.setItem(t,e);}catch{}}function re(t){if(!t){let o=Fn($n);if(o)return o;let s=Uo();return qo($n,s),s}let e=Mc(t),r=Fn(e);if(r)return r;let i=Fn($n)??Uo();return qo(e,i),i}function Jn(){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 jo="mushi_fingerprint_hash";function Lc(){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 Dc(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 ps(){if(typeof localStorage<"u"){let n=localStorage.getItem(jo);if(n)return n}let t=Lc(),e=JSON.stringify(t),r=await Dc(e);if(typeof localStorage<"u")try{localStorage.setItem(jo,r);}catch{}return r}var Wo="mushi_session_id",Ur=null;function Rt(){if(Ur)return Ur;if(typeof sessionStorage<"u"){let e=sessionStorage.getItem(Wo);if(e)return Ur=e,e}let t=Pc();if(Ur=t,typeof sessionStorage<"u")try{sessionStorage.setItem(Wo,t);}catch{}return t}function Pc(){return `ms_${Date.now().toString(36)}_${Bc()}`}function Bc(){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 $c=/HeadlessChrome|PhantomJS|Lighthouse|\bbot\b|bot[/-]|crawler|spider/i;function hs(t){return "mushi_events_consent_"+t}var Hn=new Set;function Fc(){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 Oc(){return typeof navigator>"u"?false:navigator.webdriver===true?true:$c.test(navigator.userAgent??"")}function fs(t){return t?.enabled===false?"disabled":t?.respectDoNotTrack!==false&&Fc()?"dnt":t?.excludeBots!==false&&Oc()?"automation":null}function Hc(t){if(!t)return null;try{let e=localStorage.getItem(hs(t));return e==="granted"||e==="denied"?e:null}catch{return null}}function Nc(t,e){if(t)try{localStorage.setItem(hs(t),e);}catch{}}function ms(t,e){let r=Hc(t);return e?.consent==="required"?r??"pending":r==="denied"?"denied":"granted"}function Uc(t,e){Nc(t,e);for(let r of [...Hn])try{r(e);}catch{}}function gs(t){return Hn.add(t),()=>{Hn.delete(t);}}var qc=6e4,sr=null,bs,Wr=null,Es=null,Zn=0,ys,Dt=null,ar=false,ur=false,St=false,Nn=false,Un=null;function jc(){return new Date().toISOString()}function Pt(){return typeof window>"u"?"":window.location.pathname}function Wc(){if(typeof document>"u"||!document.referrer)return null;try{return new URL(document.referrer).origin}catch{return null}}function Kc(){return typeof navigator>"u"?null:navigator.userAgent??null}function Gr(t,e){return {kind:t,session_id:Rt(),ts:jc(),page_view_count:Zn,reporter_token_hash:Es,user_id_hash:Wr,user_agent:Kc(),sdk_version:bs,...e}}function Yr(t){!sr||!St||(sr.postSessionEvent(t).catch(()=>{}),Xr());}function Qn(){clearTimeout(ys);}function Xr(){Qn(),!(!St||globalThis.document?.visibilityState==="hidden")&&(ys=setTimeout(()=>{Yr(Gr("session_heartbeat",{route:Pt()}));},qc));}function qn(t){St&&t!==Dt&&(Dt=t,Zn+=1,Yr(Gr("page_view",{route:t})));}function vs(){ar||!St||(ar=true,Yr(Gr("session_end",{route:Pt()})),Qn());}function Ko(){St||!ur||(St=true,Nn?Xr():(Nn=true,Zn=1,Dt=Pt(),Yr(Gr("session_start",{route:Dt,referrer:Wc()}))));}function Vc(){document.visibilityState==="hidden"?vs():(ar=false,Xr());}function zc(){vs();}function Gc(t){t.persisted&&(ar=false,Xr());}function ws(){St=false,Qn();}function Ss(t){ur||typeof window>"u"||fs(t.analytics)===null&&(ur=true,sr=t.client,bs=t.sdkVersion,Es=t.reporterToken??t.reporterTokenHash??null,Wr=t.userIdHash??null,typeof document<"u"&&document.addEventListener("visibilitychange",Vc,{passive:true}),window.addEventListener("pagehide",zc,{passive:true}),window.addEventListener("pageshow",Gc,{passive:true}),Un=gs(e=>{e==="granted"?Ko():ws();}),ms(t.projectId??"",t.analytics)==="granted"&&Ko());}function ei(t){!ur||!sr||qn(Pt());}function ti(t){t&&t!==Wr&&(Dt=null),Wr=t;}function xs(){ws(),Un?.(),Un=null,ur=false,Nn=false,Dt=null,ar=false,sr=null;}var Xc=/^[a-z][a-z0-9_]{1,63}$/,yt={maxKeys:40,maxKeyLength:64,maxValueLength:256,maxBytes:8192,maxClientBatch:20,maxServerBatch:50,maxEventNamesPerProject:200},Jc="$",Zc=/(email|phone|password|passwd|token|secret|ssn|address|credit|card|iban)/i;function ed(t){return typeof t=="string"&&Xc.test(t)}function zo(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[s,a]of Object.entries(t)){if(o>=yt.maxKeys){n.push(s);continue}let u=s.slice(0,yt.maxKeyLength);if(u.startsWith(Jc)&&!e.allowReserved){n.push(u);continue}if(Zc.test(u)&&!i.has(u)){n.push(u);continue}let c;if(a===null||typeof a=="boolean")c=a;else if(typeof a=="number")c=Number.isFinite(a)?a:null;else if(typeof a=="string"){let p=a.slice(0,yt.maxValueLength);c=e.scrub?e.scrub(p):p;}else if(a instanceof Date)c=a.toISOString();else {n.push(u);continue}r[u]=c,o+=1;}return {properties:r,dropped:n}}function td(t){try{return JSON.stringify(t).length<=yt.maxBytes}catch{return false}}var Kr=null,lr="",vt=null,Jr=null,ri=null,Rs,at=ni(),jn,Wn,He=[],Mt=[],ye="granted",cr=true,qr=null,xt=false,On=false,wt=false,Kn=null,rd=50,ks=200,nd=1440*60*1e3;function ni(){return {sampleRate:1,autoPageviews:false,flushIntervalMs:5e3,surface:"web",propertyAllowlist:[]}}function _s(){return new Date().toISOString()}function Vr(){return "mushi_events_spill_"+lr}function id(t){return t===void 0||t===429||t>=500}function Vn(){return "mushi_analytics_id_"+lr}function od(){try{let t=localStorage.getItem(Vn());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 sd(){if(vt)try{localStorage.getItem(Vn())!==vt&&localStorage.setItem(Vn(),vt);}catch{}}function ad(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 zn(){try{let t=localStorage.getItem(Vr());if(!t)return [];let e=JSON.parse(t);return !e||Date.now()-e.at>nd?(localStorage.removeItem(Vr()),[]):Array.isArray(e.events)?e.events.slice(0,ks):[]}catch{return []}}function Lt(t){try{if(t.length===0){localStorage.removeItem(Vr());return}localStorage.setItem(Vr(),JSON.stringify({at:Date.now(),events:t.slice(-ks)}));}catch{}}function Cs(){let t=zn();return t.length>0&&Lt([]),t}function ud(t){return {anon_id:vt,user_id:Jr,user_traits:ri,session_id:Wn?Wn():null,sdk_version:Rs,surface:at.surface,events:t}}async function ut(){if(!Kr||On||ye!=="granted"||He.length===0&&!wt)return;On=true,sd();let t=He.splice(0,yt.maxServerBatch);wt&&(t.unshift({name:"identify",ts:_s(),properties:{}}),wt=false);try{let e=await Kr.postProductEvents(ud(t));e.ok?Lt([]):id(e.error?.status)&&Lt([...zn(),...t.filter(r=>r.name!=="identify")]);}catch{Lt([...zn(),...t.filter(e=>e.name!=="identify")]);}finally{On=false;}He.length>=yt.maxClientBatch&&ut();}function ld(t){return ye==="denied"?false:ye==="pending"?Mt.length>=rd?false:(Mt.push(t),true):(He.push(t),He.length>=yt.maxClientBatch&&ut(),true)}function cd(t){if(t==="denied"){ye="denied",He=[],Mt=[],wt=false,Lt([]);return}let e=ye==="pending";ye="granted",e&&(He.push(...Cs(),...Mt),Mt=[]),(He.length>0||wt)&&ut();}function dd(t){let e={};for(let[r,n]of Object.entries(t))n!==void 0&&(e[r]=n);return e}function Ts(){return !xt||ye==="denied"?null:vt}function As(t){if(xt||typeof window>"u")return;let e=t.config??{};if(at={...ni(),...dd(e),propertyAllowlist:e.propertyAllowlist??[]},lr=t.projectId,fs(e)!==null)return;xt=true,Kr=t.client,vt=t.anonId??od(),Jr=t.userId??null,Rs=t.sdkVersion,jn=t.scrub,Wn=t.getSessionId;let r=Math.min(1,Math.max(0,at.sampleRate));if(cr=r>=1?true:r<=0?false:ad(vt??"anon")<r,!cr)return;ye=ms(lr,e),ye==="granted"?He.push(...Cs()):ye==="denied"&&Lt([]),Kn=gs(cd);let n=Math.max(1e3,at.flushIntervalMs);qr=setInterval(()=>{ut();},n);let i=()=>{typeof document<"u"&&document.visibilityState==="hidden"&&ut();};typeof document<"u"&&document.addEventListener("visibilitychange",i,{passive:true}),window.addEventListener("pagehide",()=>{ut();},{passive:true}),at.autoPageviews&&pd();}function Bt(t,e,r){if(!xt||!cr||!ed(t))return false;let{properties:n}=zo(e,{allowlist:at.propertyAllowlist,scrub:jn}),i=n;if(r?.reserved){let{properties:o}=zo(r.reserved,{allowReserved:true,scrub:jn});i={...n,...o};}return i.$surface=at.surface,typeof location<"u"&&i.$route===void 0&&(i.$route=location.pathname),td(i)?ld({name:t,ts:r?.ts??_s(),properties:i,...r?.dedupKey?{dedup_key:r.dedupKey}:{}}):false}function Is(t){xt||(ye=t),Uc(lr,t);}function Ms(t,e){Jr=t,ri=e??null,!(!xt||!cr||!t||ye==="denied")&&(wt=true,ye==="granted"&&ut());}function Ls(){return ut()}function Ds(){qr!=null&&(clearInterval(qr),qr=null),Kn?.(),Kn=null,xt=false,Kr=null,He=[],Mt=[],ye="granted",cr=true,wt=false,Jr=null,ri=null,at=ni();}var Go=false;function pd(){if(Go||typeof history>"u")return;Go=true;let t=history.pushState;history.pushState=function(...e){let r=t.apply(this,e);return Bt("page_view"),r},window.addEventListener("popstate",()=>{Bt("page_view");},{passive:true});}var hd=10,fd=1,md=5e3;function Ps(t={}){let{maxBurst:e=hd,refillRate:r=fd,refillIntervalMs:n=md}=t,i=e,o=Date.now();function s(){let p=Date.now(),h=p-o,m=Math.floor(h/n);m>0&&(i=Math.min(e,i+m*r),o=p);}function a(){return s(),i>0?(i--,true):false}function u(){i=e,o=Date.now();}function c(){return s(),i}return {tryConsume:a,reset:u,availableTokens:c}}var gd={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=gd.patterns,bd=Bs.map(t=>({key:t.configKey,regex:new RegExp(t.source,t.caseInsensitive?"gi":"g"),replacement:t.replacement})),Ed=Bs.reduce((t,e)=>(t[e.configKey]=e.defaultOn!==false,t),{});function ii(t={}){let e={...Ed,...t},r=bd.filter(o=>e[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 yd=/token|jwt|passw|pwd|secret|api[-_]?key|apikey|auth|session|signature|email|phone|ssn/i,vd=/^(?:key|code|sig)$/i;function wd(t){let e=t;try{e=decodeURIComponent(t);}catch{}return yd.test(e)||vd.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(wd(i))return `${i}=[Scrubbed]`;let s=o;try{s=decodeURIComponent(o);}catch{}let a=e(s);return a!==s?`${i}=${encodeURIComponent(a)}`:r}).join("&")}function hr(t,e){if(!t||!t.includes("?")&&!t.includes("#"))return t;let{scrub:r}=ii(e),n=o=>{let s=o.indexOf("?");return s===-1?o:o.slice(0,s+1)+Sd(o.slice(s+1),r)},i=t.indexOf("#");return i===-1?n(t):n(t.slice(0,i))+n(t.slice(i))}var xd=50,Rd=500;function $s(t={}){let e=Math.max(1,t.max??xd),r=Math.max(50,t.maxMessageLength??Rd),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>e;)n.shift();},getAll(){return n.slice()},clear(){n=[];},size(){return n.length}}}var Yo=8*1024,kd=1e3;function Fs(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,Yo):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,kd)}catch{return String(e)}})(),i=typeof e.stack=="string"?e.stack.slice(0,Yo):void 0;return {name:r,message:n,...i?{stack:i}:{}}}return t===void 0?{name:"Error",message:"unknown"}:{name:"Error",message:String(t)}}var he={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"},_d={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"},oi={free:he.inkMuted,explorer:"#2563EB",contributor:"#7C3AED",champion:"#D97706",default:he.accent},Zr={bg:"#0FFF50",fg:"#0a1a0a",border:"#00C43A"},Os="#FAF7F0",Hs="#ffffff";var si={light:"#9A2A1E",dark:"#7A1F15"},ai={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 ui(t){return t==="dark"?_d:he}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"},Ft={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 ct={bannerHeight:36,fabSize:52,edgeTabWidth:22,gutter:24,panelWidth:360,panelMaxHeight:480,panelSheetBreakpoint:480};function Xo(t){return /^#[0-9a-fA-F]{3,8}$/.test(t)?t:""}function Ws(t,e="",r=""){let n=ui(t),i=Xo(e),o=Xo(r),s=i||n.accent,a=i?t==="dark"?`${s}1F`:`${s}14`:n.accentWash,u=o||n.accentInk;return {accent:s,accentWash:a,accentInk:u}}var Ks={bannerLabel:"Feedback"};function Cd(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 Vs(t){if(typeof t!="string")return null;let e=t.split(".");if(e.length!==3)return null;try{let r=Cd(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 Td=new Set(["kensaur.us","www.kensaur.us"]),Ad={"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"},Id={"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 zs(t){try{let e=new URL(t).hostname.toLowerCase();return Md.some(r=>e===r||e.endsWith(`.${r}`))}catch{return false}}function Ld(t,e=32){return [`https://${t}/favicon.svg`,`https://${t}/favicon.ico`,`https://${t}/favicon-32x32.png`,`https://${t}/apple-touch-icon.png`]}function Gs(t){let e=[],r=i=>{let o=i?.trim().toLowerCase();!o||e.includes(o)||e.push(o);};r(Pd(t.repo_url)),r(Ad[t.project_slug.toLowerCase()]);let n=t.sdk_origin?Dd(t.sdk_origin):null;return n&&!Td.has(n)&&r(n),e}function Ys(t,e=32){if(t.icon_url?.trim())return [t.icon_url.trim()];let r=new Set,n=[],i=s=>{!s||r.has(s)||zs(s)||(r.add(s),n.push(s));},o=Id[t.project_slug.toLowerCase()];o&&i(o);for(let s of Gs(t))for(let a of Ld(s,e))i(a);return n}function Dd(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 Pd(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 Xs(t){return Gs(t)[0]??null}function Js(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),s=0,a=0,u=0;for(let p=0;p<o.length;p+=4){let h=o[p],m=o[p+1],w=o[p+2];if(o[p+3]<128)continue;s++;let g=Math.max(h,m,w),y=Math.min(h,m,w),_=g-y;u=Math.max(u,_),a+=_;}return s===0?!0:a/s<14&&u<24}catch{return zs(t.src)}}function Zs(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 Qs(){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&&Bd(n))return n}return null}function Bd(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 ta(t,e=Jo){if(!t.startsWith("data:image/")||ea(t)<=e)return t;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=t;});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 c=s.getContext("2d");if(c){c.drawImage(r,0,0,a,u);for(let p of n){let h=s.toDataURL("image/jpeg",p);if(ea(h)<=e)return h}}}return null}function ea(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 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 t=sessionStorage.getItem(tn);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 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 c=a.options.filter(p=>typeof p=="string");c.length&&(u.options=c);}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(t){try{if(typeof sessionStorage>"u")return;if(!t.turns.length&&!t.threadId){sessionStorage.removeItem(tn);return}sessionStorage.setItem(tn,JSON.stringify(t));}catch{}}function aa(){try{if(typeof sessionStorage>"u")return;sessionStorage.removeItem(tn);}catch{}}var ua="Feature request";function la(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 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(e).toLocaleDateString(void 0,{month:"short",day:"numeric"})}var $d="https://kensaur.us/mushi-mushi/",Fd="utm_source=widget&utm_medium=powered-by";function ca(t){let e=`${$d}?${Fd}`;return t&&/^[0-9a-f]{6,64}$/.test(t)?`${e}&ref=${t}`:e}function da(t){return (t.metaKey||t.ctrlKey)&&t.key==="Enter"}function pa(t){return /Mac|iPhone|iPad|iPod/i.test(t)?"\u2318":"Ctrl"}function ha(){return typeof navigator>"u"?"":navigator.userAgentData?.platform||navigator.platform||navigator.userAgent||""}function fa(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 Ot(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 Ht=15e3,rn=4e3;function ma(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 kt(t){return t.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function fr(t){return t?.failureKind==="blocked"||t?.failureKind==="throttled"}function ga(t,e){if(!e.includes("*"))return t.includes(e);let r=e.replace(/\/\*\*$|\*\*|\*|[.+?^${}()|[\]\\]/g,n=>n==="/**"?"(/.*)?":n==="**"?".*":n==="*"?"[^/]*":`\\${n}`);return new RegExp(`^${r}$`).test(t.length>1?t.replace(/\/$/,""):t)}function ba(t){let e=t.appDomain??Xs({project_id:t.projectId,project_name:t.appName,project_slug:t.appSlug??""}),r=kt(Zs(t.appName)),n=Ys({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="${kt(JSON.stringify(n))}" data-initials="${r}" aria-hidden="true" title="${kt(e??t.appName)}">
|
|
14
14
|
<img class="mushi-app-icon-img" src="${kt(n[0])}" alt="" referrerpolicy="no-referrer" width="16" height="16" />
|
|
15
15
|
<span class="mushi-app-icon-initials" hidden>${r}</span>
|
|
16
|
-
</span>`:`<span class="mushi-app-icon mushi-app-icon-initials-only" aria-hidden="true">${r}</span>`}function Ea(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,s=()=>{o+=1,o<i.length?r.src=i[o]:(r.remove(),n.hidden=false,e.classList.add("mushi-app-icon-initials-only"));};r.onerror=s,r.onload=()=>{Js(r)&&s();};});}var Od={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}]},ya=Od.patterns,Hd=ya.map(t=>({key:t.configKey,regex:new RegExp(t.source,t.caseInsensitive?"gi":"g"),replacement:t.replacement})),Nd=ya.reduce((t,e)=>(t[e.configKey]=e.defaultOn!==false,t),{});function Ud(t={}){let e={...Nd,...t},r=Hd.filter(o=>e[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 qd(t,e){return Ud(e).scrub(t)}var jd=300,Wd=16e3,Kd=6;function li(t,e,r){if(typeof t=="string")return e(t);if(t===null||typeof t=="number"||typeof t=="boolean")return t;if(!(r>=Kd)){if(Array.isArray(t))return t.map(n=>li(n,e,r+1)).filter(n=>n!==void 0);if(typeof t=="object"){let n={};for(let[i,o]of Object.entries(t)){let s=li(o,e,r+1);s!==void 0&&(n[i]=s);}return n}}}function Vd(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 va(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??jd);})]);if(!n||typeof n!="object"||Array.isArray(n))return null;let i=li(n,e.scrub??(o=>qd(o)),0);return Object.keys(i).length>0?Vd(i,e.maxChars??Wd):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 ka={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 _a={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 Ca={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 Ta={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 Aa={en:on,ja:ka,th:_a,es:Ca,zh:Ta};function di(t){let e=t&&t!=="auto"?t:typeof navigator<"u"?navigator.language??navigator.languages?.[0]:void 0;if(!e)return on;let r=e.split("-")[0].toLowerCase();return Aa[r]??on}function Ia(){return Object.keys(Aa)}function up(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 La(t,e="",r=""){let n=t==="dark",i=n?"dark":"light",o=ui(i),s=Ws(i,e,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?si.dark:si.light,accentRgb:up(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?ai.dark:ai.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:Ft.banner,zPanel:Ft.panel,zOverlay:Ft.overlay,fabSize:ct.fabSize,panelWidth:ct.panelWidth,panelSheetBreakpoint:ct.panelSheetBreakpoint}}function dt(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 Ma([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 sn(t,e){let r=Ma(t),n=i=>(Math.max(r,i)+.05)/(Math.min(r,i)+.05);return e?{ink:"",ratio:n(Ma(e))}:n(1)>=n(0)?{ink:"white",ratio:n(1)}:{ink:"black",ratio:n(0)}}function Da(t,e="",r="",n=false){let i=La(t),o=dt(e),s=dt(r),{isDark:a,ink:u,ruleStrong:c,widgetAccent:p,shadowInk:h,ok:m,danger:v,inverse:k,neonBannerBg:g,neonBannerFg:y,neonBannerBorder:_,brandBannerBorder:R,statusSent:w,statusReview:C,statusFixing:T,statusFixed:b,fontMono:f,easeStamp:E,zBanner:A,fabSize:$}=i,{durationFast:U}=en,{instant:q,panel:se}=js,{bannerHeight:Q,gutter:V,panelWidth:M,panelMaxHeight:je,panelSheetBreakpoint:Le,edgeTabWidth:Se}=ct,le=48,J=44,ne=$+Us.comfy,ce=qs.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,${o||"var(--_fg)"});--_accent-fg:${n&&s?s:`var(--mushi-accent-fg,${o?s||"white":"var(--_bg)"})`};--_ok:var(--mushi-success,${m});--_err:var(--mushi-error,${v});--_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:${$}px;height:${$}px;min-width:44px;min-height:44px;border:1px solid var(--_border);border-radius:${ce}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(${h},0.35),inset 0 -3px 0 var(--_accent);transition:transform ${U}ms ${E},opacity ${U}ms ${E};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 ${E} infinite;}.mushi-trigger:hover{transform:translateY(-2px) rotate(-1.5deg);box-shadow:0 1px 0 var(--_border),0 14px 24px -10px rgba(${h},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(${h},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(${h},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(${h},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(${h},0.45);}}.mushi-trigger-pulse{animation:mushi-trigger-pulse 800ms ${E} 3;}@media (prefers-reduced-motion:reduce){.mushi-trigger-pulse{animation:none;}}.mushi-trigger.bottom-right{bottom:var(--mushi-bottom,calc(${V}px + env(safe-area-inset-bottom,0px)));right:var(--mushi-right,calc(${V}px + env(safe-area-inset-right,0px)));}.mushi-trigger.bottom-left{bottom:var(--mushi-bottom,calc(${V}px + env(safe-area-inset-bottom,0px)));left:var(--mushi-left,calc(${V}px + env(safe-area-inset-left,0px)));}.mushi-trigger.top-right{top:var(--mushi-top,calc(${V}px + env(safe-area-inset-top,0px)));right:var(--mushi-right,calc(${V}px + env(safe-area-inset-right,0px)));}.mushi-trigger.top-left{top:var(--mushi-top,calc(${V}px + env(safe-area-inset-top,0px)));left:var(--mushi-left,calc(${V}px + env(safe-area-inset-left,0px)));}.mushi-trigger.edge-tab{width:${J}px;height:${le}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:${Se}px;height:100%;background:var(--_bg);border:1px solid var(--_border);border-right:0;border-radius:${ce}px 0 0 ${ce}px;box-shadow:0 4px 12px -6px rgba(${h},0.4),inset -2px 0 0 var(--_accent);transition:width ${U}ms ${E},transform ${U}ms ${E},opacity ${U}ms ${E};}.mushi-trigger.edge-tab.text{height:auto;min-height:${le}px;}.mushi-trigger.edge-tab.text .mushi-trigger-face{height:auto;min-height:${le}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:${Se+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 ${ce}px ${ce}px 0;box-shadow:0 4px 12px -6px rgba(${h},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(${Se-6}px);}.mushi-trigger.edge-tab.bottom-left.tucked .mushi-trigger-face,.mushi-trigger.edge-tab.top-left.tucked .mushi-trigger-face{transform:translateX(-${Se-6}px);}.mushi-trigger.tucked:focus-visible,.mushi-trigger.tucked:focus-visible .mushi-trigger-face{opacity:1;transform:none;}.mushi-trigger.shrunk{width:${Q}px;height:${Q}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,${Ft.base}) + 2);transition:none !important;box-shadow:0 1px 0 var(--_border),0 20px 40px -12px rgba(${h},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(${M}px + 40px);max-width:calc(100vw - 32px);max-height:min(calc(${je}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,${V}px) + ${ne}px));right:var(--mushi-right,calc(${V}px + env(safe-area-inset-right,0px)));--mushi-origin:bottom right;}.mushi-panel.bottom-left{bottom:var(--mushi-panel-bottom,calc(var(--mushi-bottom,${V}px) + ${ne}px));left:var(--mushi-left,calc(${V}px + env(safe-area-inset-left,0px)));--mushi-origin:bottom left;}.mushi-panel.top-right{top:var(--mushi-panel-top,calc(var(--mushi-top,${V}px) + ${ne}px));right:var(--mushi-right,calc(${V}px + env(safe-area-inset-right,0px)));--mushi-origin:top right;}.mushi-panel.top-left{top:var(--mushi-panel-top,calc(var(--mushi-top,${V}px) + ${ne}px));left:var(--mushi-left,calc(${V}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:${Le}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:${w.bg};color:color-mix(in oklab,${w.fg} 85%,var(--_fg));}.mushi-tone-attention{background:${C.bg};color:color-mix(in oklab,${C.fg} 85%,var(--_fg));}.mushi-tone-progress{background:${T.bg};color:color-mix(in oklab,${T.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,${V}px) + ${ne}px);}.mushi-toast.top-right,.mushi-toast.top-left{top:calc(var(--mushi-top,${V}px) + ${ne}px);}.mushi-toast.bottom-right,.mushi-toast.top-right,.mushi-toast.banner-top,.mushi-toast.banner-bottom{right:var(--mushi-right,${V}px);}.mushi-toast.bottom-left,.mushi-toast.top-left{left:var(--mushi-left,${V}px);}.mushi-toast.banner-top{top:calc(var(--mushi-banner-offset,${Q}px) + 12px);}.mushi-toast.banner-bottom{bottom:calc(var(--mushi-banner-offset,${Q}px) + 12px);}.mushi-banner{position:fixed;left:0;right:0;box-sizing:border-box;min-height:${Q}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:${f};font-size:12px;letter-spacing:0.04em;white-space:nowrap;overflow:hidden;z-index:var(--mushi-banner-z,${A});animation:mushi-banner-slide-in ${se}ms ${E} 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:${g};color:${y};border-bottom:1.5px solid ${_};}.mushi-banner.neon.bottom{border-top:1.5px solid ${_};border-bottom:none;}.mushi-banner.neon .mushi-banner-btn{background:rgba(0,0,0,0.14);color:${y};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:${k};border-bottom:1.5px solid ${R};}.mushi-banner.brand.bottom{border-top:1.5px solid ${R};border-bottom:none;}.mushi-banner.brand .mushi-banner-btn{background:rgba(255,255,255,0.18);color:${k};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:${u};border-bottom:1px solid ${c};}.mushi-banner.subtle.bottom{border-top:1px solid ${c};border-bottom:none;}.mushi-banner.subtle .mushi-banner-btn{background:${a?"rgba(242,235,221,0.10)":"rgba(14,13,11,0.08)"};color:${u};border:1px solid ${c};}.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:${Q}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:${c};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:${Le}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 ${E};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 ${E};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 ${E};}.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:${f};opacity:0.75;color:inherit;padding:2px 6px;border-radius:3px;white-space:nowrap;flex-shrink:0;transition:opacity ${q}ms ${E};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=kt,lp=["bug","slow","visual","confusing"],cp="Hide the bug button for this visit";function oe(t,e,r="",n=""){return `<button type="button" class="${r}" data-action="${t}"${n}>${e}</button>`}function Pa(t){if(t.step==="report")return gp(t);if(t.step==="success")return wp(t);let e=t.views;if(!e)return dp(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 Ba=new Set(["reports","report-detail","assistant","roadmap","leaderboard","account","cross-app-reports"]);function dp(t){let e=t.locale.flows,r=t.step==="report-detail"?t.locale.panel.reportTitle:t.step==="reports"?e.reports.title:"";return {header:an(t,r,true),lead:"",body:Ua(e.reports.loading),footer:""}}var $a={esc:kt,btn:oe,renderHeader:an,chipLabel:pi,skeleton:Ua,formatRelativeTime:la,renderAppIconHtml:ba};function pp(t){let e=t.locale.step1.moreNav,r=[];return t.callbacks.assistantEnabled&&r.push(oe("assistant",B(t.callbacks.assistantLabel||t.locale.assistant.defaultLabel),"mushi-menu-item",' role="menuitem"')),t.callbacks.onFeatureBoardRequest&&r.push(oe("roadmap",B(e.communityIdeas),"mushi-menu-item",' role="menuitem"')),t.rewardsState&&r.push(oe("open-leaderboard",B(e.leaderboard),"mushi-menu-item",' role="menuitem"')),(t.rewardsState||t.testerInfo)&&r.push(oe("open-account",B(t.testerInfo?t.testerInfo.public_handle??t.testerInfo.display_name??e.myAccount:e.joinCommunity),"mushi-menu-item",' role="menuitem"')),r}function an(t,e,r=false){let n=t.locale.panel,i=t.step==="report"||t.step==="success",o=t.unreadCount,s=i&&t.callbacks.onReporterReportsRequest?oe("reports",`${B(n.yourReports)}${o?` <span class="mushi-badge">${B(n.newCount.replace("{n}",String(o)))}</span>`:""}`,"mushi-pill-btn"):"",a=i?pp(t):[],u=a.length?`<div class="mushi-menu-wrap">${oe("toggle-more-nav","\u22EF","mushi-icon-btn",` aria-haspopup="menu" aria-expanded="${t.showMoreNav}" aria-label="${B(n.moreOptions)}"`)}${t.showMoreNav?`<div class="mushi-menu" role="menu">${a.join("")}</div>`:""}</div>`:"";return `${r?oe("back","\u2190","mushi-icon-btn",` aria-label="${B(t.locale.widget.back)}"`):t.pageFaviconHref?`<img class="mushi-header-host-icon" src="${B(t.pageFaviconHref)}" alt="" referrerpolicy="no-referrer" width="20" height="20" />`:""}<h2 id="mushi-title" class="mushi-title">${B(e)}</h2>${s}${u}${oe("close","\u2715","mushi-icon-btn",` aria-label="${B(t.locale.widget.close)}"`)}`}function Fa(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 ${B(r)}</strong> ${e?`latest is ${B(e)}.`:"needs attention."}${i?` <span>${B(i)}</span>`:""}</div>`}function Oa(t){return t.config.brandFooter!==true?"":`<div class="mushi-brand-footer"><a class="mushi-brand-link" href="${B(ca(t.brandRef))}" target="_blank" rel="noopener noreferrer" data-action="brand-footer">${B(t.locale.flows.poweredBy)}<span aria-hidden="true"> \u2197</span></a></div>`}function pi(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 hp(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="${B(e)}">${B(pi(t,e))}</button>`}function fp(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 mp(t){let e=[...lp];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 gp(t){let e=t.locale,r=e.panel,n=e.step3,{primary:i,more:o}=mp(t.config),s=t.showAllCategories?[...i,...o]:i,a=s.map((b,f)=>hp(t,b,f,s.includes(t.chip??"")?t.chip:null)).join(""),u=o.length&&!t.showAllCategories?oe("show-all-categories",B(r.more),"mushi-chip mushi-chip-more"):"",c=fp(t),p=c.length?`<div class="mushi-chips mushi-intents" role="radiogroup" aria-label="${B(pi(t,t.chip))}">${c.map((b,f)=>`<button type="button" class="mushi-chip mushi-chip-sm" role="radio" aria-checked="${t.intent===b}" tabindex="${t.intent===b||!t.intent&&f===0?"0":"-1"}" data-action="intent" data-intent="${B(b)}">${B(b)}</button>`).join("")}</div>`:"",h=t.screenshotCapturing?n.screenshotCapturing:t.screenshotError?n.screenshotRetry:n.screenshotButton,m=t.elementCapturing?n.elementCapturing:t.elementError?n.elementFailed:t.elementSelected?n.elementSelected:r.pointAt,v='<span class="mushi-spinner" aria-hidden="true"></span>',k=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="${B(t.screenshotPreview)}" alt="${B(n.screenshotPreviewAlt)}" /></button><figcaption><span class="mushi-attach-name">${B(n.screenshotAttached)}</span>${t.screenshotHint?`<span class="mushi-screenshot-hint">${B(t.screenshotHint)}</span>`:""}<span class="mushi-attach-actions">${t.callbacks.onScreenshotAnnotateRequest?oe("annotate-screenshot",B(r.markUp),"mushi-link-btn"):""}${t.allowScreenshotRemove?oe("remove-screenshot",B(r.remove),"mushi-link-btn"):""}</span></figcaption></figure><div class="mushi-annotate-host" data-role="annotate-host"></div>`:t.screenshotAvailable?oe("screenshot",`${t.screenshotCapturing?v:'<span aria-hidden="true">\u{1F4F7}</span>'}${B(h)}`,`mushi-attach-btn${t.screenshotError?" error":""}`,`${t.screenshotCapturing?" disabled":""} aria-label="${B(h)}"`):"",g=t.elementAvailable?oe("element",`${t.elementCapturing?v:'<span aria-hidden="true">\u2316</span>'}${B(m)}`,`mushi-attach-btn${t.elementSelected?" active":""}${t.elementError?" error":""}`,`${t.elementCapturing?" disabled":""} aria-label="${B(m)}"`):"",y=t.screenshotError&&t.screenshotErrorReason?`<p class="mushi-note mushi-error-inline" role="status" data-role="screenshot-reason">${B(n.screenshotErrors[t.screenshotErrorReason])}${t.callbacks.onScreenshotShareTabRequest?` ${oe("screenshot-share-tab",B(n.screenshotShareTab),"mushi-link-btn")}`:""}</p>`:"",_=t.screenshotReview&&t.screenshotAttached&&t.screenshotPreview?`<p class="mushi-note mushi-screenshot-review" role="status" data-role="screenshot-review">${B(n.screenshotReview)}</p>`:"",R=t.submitNotSent?`<p class="mushi-note mushi-error-inline" data-role="not-sent">${B(t.submitNotSent==="throttled"?n.notSentThrottled:n.notSentBlocked)}</p>`:"",w=t.identifiedUser?.name??t.identifiedUser?.email,C=t.chip==="idea",T=t.canSend?B(n.submitHint.replace("{key}",pa(ha()))):B(t.rc.ui.addWords);return {header:an(t,t.config.expandedTitle||r.title),lead:`<textarea class="mushi-textarea" data-role="description" rows="3" maxlength="${rn}" placeholder="${B(C?n.featurePlaceholder:n.descriptionPlaceholder)}" aria-label="${B(r.title)}" aria-describedby="mushi-hint"></textarea>`,body:`${t.config.betaMode?.enabled?yp(t):""}<div class="mushi-chips"><div class="mushi-chip-group" role="radiogroup" aria-label="${B(r.title)}">${a}</div>${u}</div>${p}${_}<div class="mushi-attachments">${k}${g}</div>${y}${R}<p class="mushi-note">\u{1F512} ${B(r.privacy)}</p>${w?`<p class="mushi-note">\u{1F464} ${B(w)}</p>`:""}${t.draftLength>rn-400?`<p class="mushi-note" aria-live="polite">${t.draftLength}/${rn}</p>`:""}${t.launcherDismissible?`<p class="mushi-note">${oe("hide-launcher",B(e.widget.hideLauncher??cp),"mushi-link-btn")}</p>`:""}`,footer:`<span class="mushi-footer-hint" id="mushi-hint" data-role="hint">${T}</span><button type="button" class="mushi-submit" data-action="submit" aria-disabled="${!t.canSend||t.submitting}"${t.submitting?' aria-busy="true"':""}>${B(t.submitting?e.widget.submitting:r.send)}</button>`}}function Ha(t){let e=t.config.betaMode?.contactEmail?.trim();if(!e||!/^[^\s@<>"]+@[^\s@<>"]+$/.test(e))return "";let r=`<a class="mushi-link-btn" href="mailto:${B(encodeURIComponent(e).replace(/%40/g,"@"))}">${B(e)}</a>`;return `<p class="mushi-note mushi-beta-contact">${B(t.locale.flows.betaStrip.contactHint).replace(B("{email}"),r)}</p>`}function bp(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">${B(n)}</p>${Ha(t)}</div>`}function Ep(t){let e=t.config.betaMode?.changelogItems?.[0];if(!e)return "";let r=B(t.locale.flows.changelog.whatsNew.replace("{version}",e.version));return `<details class="mushi-changelog"><summary>${e.date?`${r} \xB7 ${B(e.date)}`:r}</summary><ul>${e.items.map(n=>`<li>${B(n)}</li>`).join("")}</ul></details>`}function yp(t){let e=t.config.betaMode,r=t.locale.flows.betaStrip,n=B(e.appName??"This app"),i=e.message?B(e.message):B(r.defaultMessage).replace("{appName}",n),o=e.perks??[];return `<div class="mushi-beta-strip" role="note" aria-label="${B(r.ariaLabel)}"><p><span class="mushi-beta-tag">Beta</span> ${i}</p>${Ha(t)}${o.length?`<ul class="mushi-beta-perks">${o.map(s=>`<li>${B(s)}</li>`).join("")}</ul>`:""}${Ep(t)}</div>`}function Na(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 vp(t){let e=t.locale.flows.success,r=t.lastSubmitFailureKind;if(Na(t)){let s=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">${B(s)}</p>`}let n=B((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> ${B(e.delivering)}</p></div>`;let i=B(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">${B(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}">#${B(t.lastReportId.slice(0,8))}</button>${o?` \xB7 <a class="mushi-link-btn" href="${B(`${o}/reports/${encodeURIComponent(t.lastReportId)}`)}" target="_blank" rel="noopener noreferrer">${B(e.trackOnMushi)} \u2197</a>`:""}</p>${t.lastSubmitScreenshotDropped?`<p class="mushi-note mushi-warn">${B(e.screenshotDropped)}</p>`:""}</div>`}function Ua(t,e=3){return `<div class="mushi-skeleton" role="status" aria-label="${B(t)}">${"<span></span>".repeat(e)}</div>`}function wp(t){let e=t.locale.flows.success,r=t.submittedAt??new Date,n=Na(t),i=!n&&t.lastReportId&&t.callbacks.onReporterReportsRequest;return {header:an(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()}">${B(ma(r,t.config.locale==="auto"?void 0:t.config.locale))}</time>${vp(t)}${n?"":bp(t)+(t.views?.renderOptIns(t)??"")}${t.rewardsState?Sp(t):""}</div>`,footer:`${i?oe("track-report",B(e.trackReport),"mushi-btn"):"<span></span>"}${oe("done",B(e.done),"mushi-submit")}`}}function Sp(t){let{tier:e,nextTier:r,totalPoints:n,pointsForReport:i}=t.rewardsState,o=n+i,s=100,a="";if(r){let u=e?.pointsThreshold??0,c=r.pointsThreshold;s=c>u?Math.round(Math.min(1,(o-u)/(c-u))*100):100;let p=Math.max(0,c-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 qa(t){return _t(t)}function Fp(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 gi=null,bi=null;function Ya(){return bi??=Promise.resolve().then(()=>(Ga(),za)).then(t=>(t.initViews($a),gi=t,t)),bi}var fi=["notice","header","lead","body","footer","brand"],mi=["description","reporter-reply","magic-link-email","optin-email"],Op=["bug","slow","visual","confusing","other"],Hp='button:not([disabled]),textarea:not([disabled]),input:not([disabled]),a[href],[tabindex]:not([tabindex="-1"])',ln=class t{host;shadow;colorSchemeMq=null;onColorSchemeChange=null;config;callbacks;locale;rc;lang="en";isOpen=false;openCount=0;step="report";styleEl;styleKey="";themeWarnings=[];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(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??(Np(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=di(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 e=this.config.locale==="auto"?typeof navigator<"u"?navigator.language??"":"":this.config.locale;return this.lang=(e||"en").split(/[-_]/)[0].toLowerCase(),qa(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(([,a])=>a!==void 0));this.config={...this.config,...i,...e.triggerText!==void 0?{triggerText:e.triggerText||"\u{1F41B}"}:{}},this.locale=di(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),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.openCount++,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=e?.category,n=r?this.resolveCustomCategory(r):void 0;this.chip=e?.featureRequest?"idea":n||r&&r!=="other"&&Op.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.openCount++,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,...Fp(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 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 s=a=>{a.preventDefault(),this.updateConfig(r),this.open();};return o.addEventListener("click",s),()=>o.removeEventListener("click",s)});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.screenshotReview=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,warnings:[...this.themeWarnings]}}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 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 e=window.innerHeight,r=window.innerWidth;if(!e||!r)return 0;let n=this.config.position.endsWith("left"),i=s=>s.height>0&&s.height<=e*.4&&s.top<e&&s.bottom>=e-4&&s.bottom<=e+4,o=e;for(let s of [n?24:r-24,r/2]){let a=document.elementsFromPoint(s,e-2).find(c=>c!==this.host&&!this.host.contains(c)),u=null;for(let c=a??null;c&&c!==document.body&&c!==document.documentElement;c=c.parentElement){let p=getComputedStyle(c),h=c.getBoundingClientRect();if(p.position==="fixed"||p.position==="sticky"){let m=i(h)?h:u;m&&(o=Math.min(o,m.top));break}/(auto|scroll)/.test(p.overflowY)?u=null:i(h)&&(u=h);}}return o<e?Math.ceil(e-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 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,s=e.bugCta??"\u{1F41B} Report a bug",a=e.featureCta!==false,u=e.featureCtaLabel??"Request feature",c=`\u{1F4EC} ${this.locale.panel.yourReports}`,p=e.zIndex??(this.config.zIndex??99999)-1,h=document.createElement("div");h.className=`mushi-banner ${r} ${n}${o?" mushi-banner--rich":""}`,h.style.setProperty("--mushi-banner-z",String(p)),h.setAttribute("role","banner");let m=document.createElement("button");if(m.className="mushi-banner-dismiss",m.textContent="\u2715",m.setAttribute("aria-label","Dismiss feedback banner"),m.addEventListener("click",()=>{this.bannerDismissed=true,this.removeBodyNudge(),this.render();}),o){let v=document.createElement("div");v.className="mushi-banner-body";let k=e.label===false?null:e.label??Ks.bannerLabel;if(k){let w=document.createElement("span");w.className="mushi-banner-pill",w.textContent=k,v.appendChild(w);}let g=document.createElement("span");g.className="mushi-banner-message",g.textContent=i,v.appendChild(g),h.appendChild(v);let y=document.createElement("nav");y.className="mushi-banner-actions",y.setAttribute("aria-label","Feedback banner actions");let _=(w=false)=>{let C=document.createElement("span");C.className=`mushi-banner-divider${w?" mushi-banner-extra":""}`,C.setAttribute("aria-hidden","true"),C.textContent="|",y.appendChild(C);},R=(w,C,T=false)=>{let b=document.createElement("button");b.type="button",b.className=`mushi-banner-link${T?" mushi-banner-extra":""}`,b.textContent=w,b.addEventListener("click",C),y.appendChild(b);};R(s,()=>this.open({category:"bug"})),a&&(_(true),R(u,()=>this.open({featureRequest:true}),true));for(let w of e.links??[]){let C=w.label?.trim();if(!C)continue;let T=w.href&&(/^https?:\/\//i.test(w.href)||w.href.startsWith("/"))?w.href:void 0;if(_(true),T){let b=document.createElement("a");b.className="mushi-banner-link mushi-banner-extra",b.href=T,b.textContent=C,b.target="_blank",b.rel="noopener noreferrer",y.appendChild(b);}else R(C,()=>{w.featureRequest?this.open({featureRequest:true}):this.open();},true);}_(true),R(c,()=>this.openReporter(),true),h.appendChild(y),h.appendChild(m);}else {let v=document.createElement("button");if(v.className="mushi-banner-btn",v.textContent=s,v.addEventListener("click",()=>this.open({category:"bug"})),h.appendChild(v),a){let g=document.createElement("button");g.className="mushi-banner-btn",g.textContent=u,g.addEventListener("click",()=>this.open({featureRequest:true})),h.appendChild(g);}let k=document.createElement("button");k.className="mushi-banner-my-reports",k.textContent=c,k.addEventListener("click",()=>this.openReporter()),h.appendChild(k),h.appendChild(m);}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 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=>ga(location.pathname,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,i=null;for(let o of [e,`color-mix(in srgb,${e},${e})`]){r.color="",r.color=o;let s=r.color&&(this.host.isConnected?getComputedStyle(this.host).color:r.color).match(/(rgba?\(|srgb )([\d.]+)[ ,]+([\d.]+)[ ,]+([\d.]+)/);if(s){let a=s[1]==="srgb "?255:1;i=[+s[2]*a,+s[3]*a,+s[4]*a];break}}return r.color=n,i}hostColorVar(e){return dt(this.hostCssVar(e))}resolveAccent(e){this.themeWarnings=[];let r=this.hostColorVar("--mushi-accent")||dt(this.config.accent??""),n=[];if(!r&&typeof document<"u"){try{let p=getComputedStyle(document.documentElement).getPropertyValue("accent-color").trim();p&&p!=="auto"&&n.push(p);}catch{}n.push(document.querySelector('meta[name="theme-color"]')?.getAttribute("content")?.trim()??"");}let i=e?[18,18,18]:[255,255,255];for(let p of n){if(r)break;let h=dt(p),m=h?this.probeRgb(h):null;m&&sn(m,i).ratio>=3&&(r=h);}if(!r)return {accent:"",accentFg:""};let o=this.probeRgb(r),s=this.hostColorVar("--mushi-accent-fg")||dt(this.config.accentText??""),a=o?sn(o).ink:"",u=o&&s?this.probeRgb(s):null,c=u?sn(o,u).ratio:3;return c>=3?{accent:r,accentFg:s||a}:(this.themeWarnings.push(`Accent text ${s} is ${c.toFixed(1)}:1 on ${r} (under 3:1); using ${a}.`),{accent:r,accentFg:a,lockFg:true})}syncChrome(){let e=this.getTheme(),{accent:r,accentFg:n,lockFg:i}=this.resolveAccent(e==="dark"),o=`${e}|${r}|${n}|${i}`;o!==this.styleKey&&(this.styleKey=o,this.styleEl.textContent=Da(e,r,n,i),this.themeWarnings.forEach(s=>this.callbacks.onWarning?.(s))),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&&Za(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,c=0;if(a!=="y"&&(i.key==="ArrowLeft"?u=-s:i.key==="ArrowRight"&&(u=s)),a!=="x"&&(i.key==="ArrowUp"?c=-s:i.key==="ArrowDown"&&(c=s)),u!==0||c!==0){i.preventDefault();let p=this.fabPos??{x:0,y:0};this.moveFab(n,p.x+u,p.y+c,"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 p of fi)this.regionEls[p].innerHTML="";this.regionHtml={},this.renderedStep=null,this.teardownViewportHandlers();}return}let r=this.renderCtx();!gi&&(Ba.has(this.step)||this.step==="success"&&(this.channels.email||this.channels.push))&&this.preloadViews().then(()=>{this.isOpen&&this.render();});let n=Pa(r),i={notice:Fa(r),header:n.header,lead:n.lead,body:n.body,footer:n.footer,brand:Oa(r)},o=this.renderedStep!==this.step,s=this.renderedStep===null,a=this.shadow.activeElement,u=a?Xa(a):null;this.captureFormDrafts();let c=false;for(let p of fi)this.regionHtml[p]!==i[p]&&(this.regionHtml[p]=i[p],this.regionEls[p].innerHTML=i[p],c=true);this.renderedStep=this.step,c&&(Ea(e),this.restoreFormDrafts()),o?(this.scroller.scrollTop=0,s||(e.classList.remove("mushi-swap"),e.offsetWidth,e.classList.add("mushi-swap")),this.focusView()):a&&!a.isConnected&&u&&e.querySelector(u)?.focus(),s&&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 mi){let i=this.panel.querySelector(`[data-role="${n}"]`);i&&(this.drafts[n]=i.value);}let e=this.shadow.activeElement,r=e?.dataset?.role;r&&mi.includes(r)?(this.drafts._focus=r,this.drafts._sel=`${e.selectionStart??0},${e.selectionEnd??0}`):delete this.drafts._focus;}restoreFormDrafts(){for(let e of mi){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 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)+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 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+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 s=r[o];s!==void 0&&e.style.setProperty(`--mushi-${o}`,s);});else {let{inset:o}=this.config;this.config.respectSafeArea||["top","right","bottom","left"].forEach(s=>{o[s]===void 0&&e.style.setProperty(`--mushi-${s}`,"24px");}),["top","right","bottom","left"].forEach(s=>{let a=o[s];a!==void 0&&e.style.setProperty(`--mushi-${s}`,a==="auto"?"auto":`${a}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 s=e.style.getPropertyValue("--mushi-bottom").trim()||this.hostCssVar("--mushi-bottom")||`calc(${ct.gutter}px + env(safe-area-inset-bottom, 0px))`;s!=="auto"&&e.style.setProperty("--mushi-bottom",`max(${s}, ${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:s}=o,a=window.innerWidth,u=window.innerHeight,c=e.offsetWidth||52,p=e.offsetHeight||52,h=getComputedStyle(document.documentElement),m=U=>parseInt(h.getPropertyValue(`--sai-${U}`)||"0")||0,v=m("left"),k=m("right"),g=m("top"),y=m("bottom"),_=8,R=e.getBoundingClientRect(),w=R.left-(this.fabPos?.x??0),C=R.top-(this.fabPos?.y??0),T=v+_-w,b=a-k-_-c-w,f=g+_-C,E=u-Math.max(y+_,this.barClearance)-p-C,A=s==="x"?0:Math.max(f,Math.min(E,n)),$=s==="y"?0:Math.max(T,Math.min(b,r));if(i==="end"&&o.snap&&s!=="y"&&($=R.left+c/2<a/2?v+_-w:a-k-_-c-w),this.fabPos={x:$,y:A},e.style.setProperty("--mushi-drag-x",`${$}px`),e.style.setProperty("--mushi-drag-y",`${A}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,s=false,a=false,u=6;e.addEventListener("pointerdown",p=>{if(p.button!==0&&p.pointerType!=="touch")return;e.setPointerCapture?.(p.pointerId),r=p.clientX,n=p.clientY;let h=this.fabPos??{x:0,y:0};i=h.x,o=h.y,s=true,a=false;}),e.addEventListener("pointermove",p=>{if(!s)return;let h=p.clientX-r,m=p.clientY-n;!a&&Math.hypot(h,m)>u&&(a=true,e.classList.remove("tucked"),e.classList.add("dragging")),a&&(p.preventDefault(),this.moveFab(e,i+h,o+m,"move"));});let c=p=>{if(s){if(s=false,e.classList.remove("dragging"),a){this.moveFab(e,i+p.clientX-r,o+p.clientY-n,"end");let h=m=>{m.stopImmediatePropagation(),e.removeEventListener("click",h,{capture:true});};e.addEventListener("click",h,{capture:true});}a=false;}};e.addEventListener("pointerup",c),e.addEventListener("pointercancel",c);}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: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:e=>oi[e]??oi.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"&&Ja(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(da(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(Xa(o)??"")?.focus();}}trapTab(e){let r=Array.from(this.panel.querySelectorAll(Hp)).filter(s=>!s.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":Up(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();}async 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}if(this.callbacks.onBeforeSubmit){this.submitting=true,this.render();let v=this.openCount,k=false;try{k=await this.callbacks.onBeforeSubmit();}catch{k=false;}if(v!==this.openCount||(this.submitting=false,!this.isOpen||this.step!=="report"))return;if(k&&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,c=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 v=this.callbacks.onSubmit({category:a,...u?{userCategory:u}:{},description:r,...c?{intent:c}:{}});return v&&typeof v.then=="function"?await v??null:null}catch{return {reportId:null,queuedOffline:true}}})(),m;h.then(v=>{m=v;}),this.successTimer=setTimeout(()=>{if(this.successTimer=null,fr(m)){this.showNotSent(m.failureKind,p);return}this.submitting=false,this.step="success",this.drafts={},this.render(),this.announce(this.rc.ui.sent),h.then(v=>{if(!(this.step!=="success"||!v)){if(fr(v)){this.showNotSent(v.failureKind,p);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 Ot(e,Ht):[],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 Ot(e,Ht):[];}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 Ot(n,Ht):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),s=o?await Ot(o,Ht):[];this.selectedReportId===e&&(this.reporterComments=s);}}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="",Ja(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 Ot(Promise.resolve(this.callbacks.onReporterReply?.(n,r.body)),Ht),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(!Ra(e)||!this.callbacks.onReporterEmailOptIn){this.emailState="invalid",this.render();return}this.emailState="saving",this.render();try{await this.callbacks.onReporterEmailOptIn(e),this.emailState="saved";}catch{this.emailState="error";}this.render();}async subscribePush(){if(!this.callbacks.onReporterPushSubscribe||this.pushState==="asking")return;let e=this.callbacks.onReporterPushSubscribe();this.pushState="asking",this.render();try{await e,this.pushState="on";}catch{this.pushState="error";}this.render();}async showUpdatesToast(e){let r=(await Ya()).pickUpdateToast(e,this.lang,this.rc.ui.toastReplied);return r?this.showUpdateToast(r):false}async preloadViews(){try{await Ya();}catch{bi=null;}}showUpdatesFeedToast(e,r){if(!(e.unread_total>0))return false;let n=new Set(e.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?e.latest[0]?.preview:void 0);return this.showUpdateToast({text:xa(e,this.lang),reportId:i,...s?{detail:s}:{}})}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 a=document.createElement("small");a.textContent=e.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=e.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 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 Za(t){return Array.from(t.trim()).length>2}function Np(t){let{anchor:e,inset:r}=t;return !!(t.draggable||Za(t.triggerText??"")||e?.left!==void 0||e?.right!==void 0||r?.left!==void 0||r?.right!==void 0)}function Xa(t){let e=t.dataset;return e.role?`[data-role="${e.role}"]`:e.category?`[data-category="${un(e.category)}"]`:e.intent?`[data-intent="${un(e.intent)}"]`:e.reportId?`[data-report-id="${un(e.reportId)}"]`:e.action?`[data-action="${e.action}"]${e.value?`[data-value="${un(e.value)}"]`:""}`:null}function un(t){return t.replace(/["\\]/g,"\\$&")}function Ja(t){t.style.height="auto",t.style.height=`${Math.min(t.scrollHeight,104)}px`;}function Up(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 Ei(t,e){try{return globalThis[t]?.getItem(e)??null}catch{return null}}function yi(t,e,r){try{globalThis[t]?.setItem(e,r);}catch{}}function vi(t){yi("localStorage",`mushi_has_reports_${t}`,"1");}function wi(t){return Ei("localStorage",`mushi_has_reports_${t}`)==="1"}function Qa(t,e=Date.now()){if(Ei("sessionStorage",`mushi_toast_${t}`))return false;let r=Number(Ei("localStorage",`mushi_toast_at_${t}`)??0);return !(r&&e-r<864e5)}function eu(t,e=Date.now()){yi("sessionStorage",`mushi_toast_${t}`,"1"),yi("localStorage",`mushi_toast_at_${t}`,String(e));}function tu(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 ru(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,"/"),s=atob(o+"=".repeat((4-o.length%4)%4)),a=await i.pushManager.subscribe({userVisibleOnly:!0,applicationServerKey:Uint8Array.from(s,c=>c.charCodeAt(0))}),u=await t.subscribePush(e,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 qp(t,e){let r={...t};if(e)for(let[n,i]of Object.entries(e))i!==void 0&&(r[n]=i);return r}function jp(t,e){return t.widget?.[e]!==void 0}var Wp=["manual","attach"],Kp=["variant","position","message","label","bugCta","featureCta"];function nu(t,e,r=t){let n=e.native?.triggerMode,i=e.widget?.launcher,o=t.widget?.trigger,s=r.widget?.trigger,a=i??e.widget?.trigger,u=s!==void 0&&Wp.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"||e.widget?.trigger==="hidden",m=p==="hidden"&&!h&&o&&o!=="hidden"?o:p,v=e.widget??{},k=r.widget?.bannerConfig??{},g={};for(let R of Kp){let w=v["banner"+R[0].toUpperCase()+R.slice(1)];(w!=null&&w!==""||R==="label"&&w==="")&&k[R]===void 0&&(g[R]=w===""?false:w);}let y=Object.keys(g).length?{...t.widget?.bannerConfig,...g}:void 0,_={};for(let[R,w]of Object.entries(v))R==="trigger"||R==="launcher"||R==="accentText"||w==null||jp(r,R)||(_[R]=w);return _.accent!==void 0&&v.accentText!=null&&(_.accentText=v.accentText),{...t,widget:{...t.widget,..._,...m?{trigger:m}:{},...y?{bannerConfig:y}:{},...t.widget?.betaMode?{betaMode:t.widget.betaMode}:{}},capture:qp(t.capture,e.capture),privacy:{...t.privacy}}}function cn(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 iu(t){if(typeof globalThis>"u")return;let e={ready:()=>t.getIsMounted(),getStep:()=>t.getRecorderStep(),getCategoryStepIA:()=>t.getRecorderCategoryStepIA(),getTriggerCenter:()=>cn(t.getRecorderTrigger()),getCategoryCenter:r=>cn(t.getRecorderCategoryButton(r)),getIntentCenter:r=>cn(t.getRecorderIntentButton(r)),getSubmitCenter:()=>cn(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 dn=null,pn=null,br=null,Er=null,yr=null,vr=false,Ct=new Set;function Vp(){for(let t of Ct)try{t.onPush?.();}catch{}}function zp(){for(let t of Ct)try{t.onReplace?.();}catch{}}function Gp(){for(let t of Ct)try{t.onPop?.();}catch{}}function Yp(){if(vr||typeof window>"u")return;let t=history.pushState,e=history.replaceState;dn=t,pn=e;let r=function(...o){let s=t.apply(history,o);return br===r&&Vp(),s},n=function(...o){let s=e.apply(history,o);return Er===n&&zp(),s};br=r,Er=n,history.pushState=r,history.replaceState=n,yr=()=>Gp(),window.addEventListener("popstate",yr),vr=true;}function ou(){!vr||typeof window>"u"||(yr&&(window.removeEventListener("popstate",yr),yr=null),br&&history.pushState===br&&dn&&(history.pushState=dn),Er&&history.replaceState===Er&&pn&&(history.replaceState=pn),br=null,Er=null,dn=null,pn=null,vr=false);}function Fe(t){return Yp(),vr?(Ct.add(t),()=>{Ct.delete(t),Ct.size===0&&ou();}):()=>{}}function su(){Ct.clear(),ou();}var Xp=3e4,Jp=3e5,Zp=6e4,Qp=60,lu="mushi_session_min_day_",qt=[],jt=null,Wt=null,Ze=null,cu=null,Si=null,Kt=null,pt=false,Sr=null,du=0,_i=null,eh=300*1e3,Ci=0,th=900*1e3;function Ti(){return Date.now()<Ci}function Ai(t){t?.startsWith("HTTP_4")&&(Ci=Date.now()+th);}var au=new Set;function xi(t){return `mushi_rewards_consent_${t}`}function rh(t){try{return localStorage.getItem(xi(t))==="1"}catch{return false}}function Ri(t,e){try{e?localStorage.setItem(xi(t),"1"):localStorage.removeItem(xi(t)),pt=e;}catch{}}function pu(){return new Date().toISOString().slice(0,10)}function hu(t){try{let e=sessionStorage.getItem(`${lu}${t}_${pu()}`);return e?parseInt(e,10):0}catch{return 0}}function nh(t){let e=pu(),r=`${lu}${t}_${e}`;try{let n=hu(t)+1;return sessionStorage.setItem(r,String(n)),n}catch{return 99}}function fu(t){Kt=t.client,Ze=t.userId,cu=t.traits??null,Si=t.reporterToken??null;let{projectId:e}=t,r=Math.max(Xp,t.config.flushIntervalMs??Jp);t.config.consentMode==="auto"?(pt=true,Ri(e,true)):pt=rh(e),t.config.trackActivity&&oh(e),jt&&clearInterval(jt),jt=setInterval(()=>ih(t),r),Wt&&clearInterval(Wt),Wt=setInterval(()=>{if(!pt||!Ze)return;let n=hu(e);n<Qp&&(nh(e),Vt({action:"session_minute",metadata:{minutes_today:n+1}}));},Zp),t.config.showInWidget&&Ii(Ze).then(n=>{n&&Eu(n,t.config);}),t.config.consentMode!=="auto"&&!pt&&uh(e,t.config);}function Vt(t){!pt||!Ze||qt.push({...t,queuedAt:Date.now()});}async function ih(t){if(!pt||!Ze||qt.length===0)return;let e=null;if(t.config.verifyUserToken)try{e=await t.config.verifyUserToken();}catch{}if(Ti())return;let r=qt.splice(0,100);try{let n=Si?await $t(Si):void 0,i=await t.client.submitActivity(Ze,r,{userTraits:cu??void 0,reporterTokenHash:n,optedIn:!0,hostJwt:e??void 0});i.ok||(Ai(i.error?.code),i.error?.code?.startsWith("HTTP_4")||qt.unshift(...r.slice(0,50)));}catch{qt.unshift(...r.slice(0,50));}}async function mu(t){let e=Date.now();return Sr&&_i===t&&e-du<eh?Sr:Ii(t)}async function Ii(t){if(!Kt||Ti())return null;let e=await Kt.getMyTier(t);return e.ok&&e.data?(Sr=e.data,du=Date.now(),_i=t,Sr):(Ai(e.error?.code),null)}async function gu(t=10){if(!Kt||Ti())return null;try{let e=await Kt.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})):(Ai(e.error?.code),null)}catch{return null}}function bu(){jt&&(clearInterval(jt),jt=null),Wt&&(clearInterval(Wt),Wt=null),ki(),ah(),ve&&(ve.remove(),ve=null),qt=[],Ze=null,Kt=null,pt=false,Sr=null,_i=null,Ci=0;}var fn=null,wr=null,mn=null,uu="",hn=false;function oh(t){if(!(hn&&mn)){hn&&ki(),hn=true;try{sh(t);}catch(e){throw ki(),e}}}function sh(t){let e=()=>{let n=location.pathname;if(n===uu)return;uu=n,!au.has(`${t}:${n}`)&&(au.add(`${t}:${n}`),Vt({action:"screen_view_unique_per_day",metadata:{route:n}}));};mn=Fe({onPush:e,onPop:e}),e(),fn=new MutationObserver(()=>e());let r=document.querySelector("main")??document.body;fn.observe(r,{childList:true,subtree:false}),wr=n=>{let i=n.target.closest("[data-testid]");if(!i)return;let o=i.dataset.testid;o&&Vt({action:"element_selected",metadata:{testid:o,route:location.pathname}});},document.addEventListener("click",wr,{capture:true,passive:true});}function ki(){hn=false,mn?.(),mn=null,fn?.disconnect(),fn=null,wr&&(document.removeEventListener("click",wr,{capture:true}),wr=null);}var Je=null;function Eu(t,e){if(!e.showInWidget)return;Je&&Je.remove(),Je=document.createElement("div"),Je.id="mushi-tier-badge",Object.assign(Je.style,{position:"fixed",bottom:"56px",right:"16px",zIndex:"2147483645",fontFamily:"system-ui, sans-serif"});let r=Je.attachShadow({mode:"closed"});r.innerHTML=`
|
|
16
|
+
</span>`:`<span class="mushi-app-icon mushi-app-icon-initials-only" aria-hidden="true">${r}</span>`}function Ea(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,s=()=>{o+=1,o<i.length?r.src=i[o]:(r.remove(),n.hidden=false,e.classList.add("mushi-app-icon-initials-only"));};r.onerror=s,r.onload=()=>{Js(r)&&s();};});}var Od={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}]},ya=Od.patterns,Hd=ya.map(t=>({key:t.configKey,regex:new RegExp(t.source,t.caseInsensitive?"gi":"g"),replacement:t.replacement})),Nd=ya.reduce((t,e)=>(t[e.configKey]=e.defaultOn!==false,t),{});function Ud(t={}){let e={...Nd,...t},r=Hd.filter(o=>e[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 qd(t,e){return Ud(e).scrub(t)}var jd=300,Wd=16e3,Kd=6;function li(t,e,r){if(typeof t=="string")return e(t);if(t===null||typeof t=="number"||typeof t=="boolean")return t;if(!(r>=Kd)){if(Array.isArray(t))return t.map(n=>li(n,e,r+1)).filter(n=>n!==void 0);if(typeof t=="object"){let n={};for(let[i,o]of Object.entries(t)){let s=li(o,e,r+1);s!==void 0&&(n[i]=s);}return n}}}function Vd(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 va(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??jd);})]);if(!n||typeof n!="object"||Array.isArray(n))return null;let i=li(n,e.scrub??(o=>qd(o)),0);return Object.keys(i).length>0?Vd(i,e.maxChars??Wd):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 ka={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 _a={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 Ca={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 Ta={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 Aa={en:on,ja:ka,th:_a,es:Ca,zh:Ta};function di(t){let e=t&&t!=="auto"?t:typeof navigator<"u"?navigator.language??navigator.languages?.[0]:void 0;if(!e)return on;let r=e.split("-")[0].toLowerCase();return Aa[r]??on}function Ia(){return Object.keys(Aa)}function up(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 La(t,e="",r=""){let n=t==="dark",i=n?"dark":"light",o=ui(i),s=Ws(i,e,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?si.dark:si.light,accentRgb:up(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?ai.dark:ai.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:Ft.banner,zPanel:Ft.panel,zOverlay:Ft.overlay,fabSize:ct.fabSize,panelWidth:ct.panelWidth,panelSheetBreakpoint:ct.panelSheetBreakpoint}}function dt(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 Ma([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 sn(t,e){let r=Ma(t),n=i=>(Math.max(r,i)+.05)/(Math.min(r,i)+.05);return e?{ink:"",ratio:n(Ma(e))}:n(1)>=n(0)?{ink:"white",ratio:n(1)}:{ink:"black",ratio:n(0)}}function Da(t,e="",r="",n=false){let i=La(t),o=dt(e),s=dt(r),{isDark:a,ink:u,ruleStrong:c,widgetAccent:p,shadowInk:h,ok:m,danger:w,inverse:x,neonBannerBg:g,neonBannerFg:y,neonBannerBorder:_,brandBannerBorder:k,statusSent:v,statusReview:C,statusFixing:T,statusFixed:b,fontMono:f,easeStamp:E,zBanner:A,fabSize:$}=i,{durationFast:U}=en,{instant:q,panel:se}=js,{bannerHeight:Q,gutter:V,panelWidth:M,panelMaxHeight:je,panelSheetBreakpoint:Le,edgeTabWidth:Se}=ct,le=48,J=44,ne=$+Us.comfy,ce=qs.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,${o||"var(--_fg)"});--_accent-fg:${n&&s?s:`var(--mushi-accent-fg,${o?s||"white":"var(--_bg)"})`};--_ok:var(--mushi-success,${m});--_err:var(--mushi-error,${w});--_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:${$}px;height:${$}px;min-width:44px;min-height:44px;border:1px solid var(--_border);border-radius:${ce}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(${h},0.35),inset 0 -3px 0 var(--_accent);transition:transform ${U}ms ${E},opacity ${U}ms ${E};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 ${E} infinite;}.mushi-trigger:hover{transform:translateY(-2px) rotate(-1.5deg);box-shadow:0 1px 0 var(--_border),0 14px 24px -10px rgba(${h},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(${h},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(${h},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(${h},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(${h},0.45);}}.mushi-trigger-pulse{animation:mushi-trigger-pulse 800ms ${E} 3;}@media (prefers-reduced-motion:reduce){.mushi-trigger-pulse{animation:none;}}.mushi-trigger.bottom-right{bottom:var(--mushi-bottom,calc(${V}px + env(safe-area-inset-bottom,0px)));right:var(--mushi-right,calc(${V}px + env(safe-area-inset-right,0px)));}.mushi-trigger.bottom-left{bottom:var(--mushi-bottom,calc(${V}px + env(safe-area-inset-bottom,0px)));left:var(--mushi-left,calc(${V}px + env(safe-area-inset-left,0px)));}.mushi-trigger.top-right{top:var(--mushi-top,calc(${V}px + env(safe-area-inset-top,0px)));right:var(--mushi-right,calc(${V}px + env(safe-area-inset-right,0px)));}.mushi-trigger.top-left{top:var(--mushi-top,calc(${V}px + env(safe-area-inset-top,0px)));left:var(--mushi-left,calc(${V}px + env(safe-area-inset-left,0px)));}.mushi-trigger.edge-tab{width:${J}px;height:${le}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:${Se}px;height:100%;background:var(--_bg);border:1px solid var(--_border);border-right:0;border-radius:${ce}px 0 0 ${ce}px;box-shadow:0 4px 12px -6px rgba(${h},0.4),inset -2px 0 0 var(--_accent);transition:width ${U}ms ${E},transform ${U}ms ${E},opacity ${U}ms ${E};}.mushi-trigger.edge-tab.text{height:auto;min-height:${le}px;}.mushi-trigger.edge-tab.text .mushi-trigger-face{height:auto;min-height:${le}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:${Se+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 ${ce}px ${ce}px 0;box-shadow:0 4px 12px -6px rgba(${h},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(${Se-6}px);}.mushi-trigger.edge-tab.bottom-left.tucked .mushi-trigger-face,.mushi-trigger.edge-tab.top-left.tucked .mushi-trigger-face{transform:translateX(-${Se-6}px);}.mushi-trigger.tucked:focus-visible,.mushi-trigger.tucked:focus-visible .mushi-trigger-face{opacity:1;transform:none;}.mushi-trigger.shrunk{width:${Q}px;height:${Q}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,${Ft.base}) + 2);transition:none !important;box-shadow:0 1px 0 var(--_border),0 20px 40px -12px rgba(${h},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(${M}px + 40px);max-width:calc(100vw - 32px);max-height:min(calc(${je}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,${V}px) + ${ne}px));right:var(--mushi-right,calc(${V}px + env(safe-area-inset-right,0px)));--mushi-origin:bottom right;}.mushi-panel.bottom-left{bottom:var(--mushi-panel-bottom,calc(var(--mushi-bottom,${V}px) + ${ne}px));left:var(--mushi-left,calc(${V}px + env(safe-area-inset-left,0px)));--mushi-origin:bottom left;}.mushi-panel.top-right{top:var(--mushi-panel-top,calc(var(--mushi-top,${V}px) + ${ne}px));right:var(--mushi-right,calc(${V}px + env(safe-area-inset-right,0px)));--mushi-origin:top right;}.mushi-panel.top-left{top:var(--mushi-panel-top,calc(var(--mushi-top,${V}px) + ${ne}px));left:var(--mushi-left,calc(${V}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:${Le}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:${v.bg};color:color-mix(in oklab,${v.fg} 85%,var(--_fg));}.mushi-tone-attention{background:${C.bg};color:color-mix(in oklab,${C.fg} 85%,var(--_fg));}.mushi-tone-progress{background:${T.bg};color:color-mix(in oklab,${T.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,${V}px) + ${ne}px);}.mushi-toast.top-right,.mushi-toast.top-left{top:calc(var(--mushi-top,${V}px) + ${ne}px);}.mushi-toast.bottom-right,.mushi-toast.top-right,.mushi-toast.banner-top,.mushi-toast.banner-bottom{right:var(--mushi-right,${V}px);}.mushi-toast.bottom-left,.mushi-toast.top-left{left:var(--mushi-left,${V}px);}.mushi-toast.banner-top{top:calc(var(--mushi-banner-offset,${Q}px) + 12px);}.mushi-toast.banner-bottom{bottom:calc(var(--mushi-banner-offset,${Q}px) + 12px);}.mushi-banner{position:fixed;left:0;right:0;box-sizing:border-box;min-height:${Q}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:${f};font-size:12px;letter-spacing:0.04em;white-space:nowrap;overflow:hidden;z-index:var(--mushi-banner-z,${A});animation:mushi-banner-slide-in ${se}ms ${E} 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:${g};color:${y};border-bottom:1.5px solid ${_};}.mushi-banner.neon.bottom{border-top:1.5px solid ${_};border-bottom:none;}.mushi-banner.neon .mushi-banner-btn{background:rgba(0,0,0,0.14);color:${y};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:${x};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:${x};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:${u};border-bottom:1px solid ${c};}.mushi-banner.subtle.bottom{border-top:1px solid ${c};border-bottom:none;}.mushi-banner.subtle .mushi-banner-btn{background:${a?"rgba(242,235,221,0.10)":"rgba(14,13,11,0.08)"};color:${u};border:1px solid ${c};}.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:${Q}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:${c};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:${Le}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 ${E};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 ${E};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 ${E};}.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:${f};opacity:0.75;color:inherit;padding:2px 6px;border-radius:3px;white-space:nowrap;flex-shrink:0;transition:opacity ${q}ms ${E};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=kt,lp=["bug","slow","visual","confusing"],cp="Hide the bug button for this visit";function oe(t,e,r="",n=""){return `<button type="button" class="${r}" data-action="${t}"${n}>${e}</button>`}function Pa(t){if(t.step==="report")return gp(t);if(t.step==="success")return wp(t);let e=t.views;if(!e)return dp(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 Ba=new Set(["reports","report-detail","assistant","roadmap","leaderboard","account","cross-app-reports"]);function dp(t){let e=t.locale.flows,r=t.step==="report-detail"?t.locale.panel.reportTitle:t.step==="reports"?e.reports.title:"";return {header:an(t,r,true),lead:"",body:Ua(e.reports.loading),footer:""}}var $a={esc:kt,btn:oe,renderHeader:an,chipLabel:pi,skeleton:Ua,formatRelativeTime:la,renderAppIconHtml:ba};function pp(t){let e=t.locale.step1.moreNav,r=[];return t.callbacks.assistantEnabled&&r.push(oe("assistant",B(t.callbacks.assistantLabel||t.locale.assistant.defaultLabel),"mushi-menu-item",' role="menuitem"')),t.callbacks.onFeatureBoardRequest&&r.push(oe("roadmap",B(e.communityIdeas),"mushi-menu-item",' role="menuitem"')),t.rewardsState&&r.push(oe("open-leaderboard",B(e.leaderboard),"mushi-menu-item",' role="menuitem"')),(t.rewardsState||t.testerInfo)&&r.push(oe("open-account",B(t.testerInfo?t.testerInfo.public_handle??t.testerInfo.display_name??e.myAccount:e.joinCommunity),"mushi-menu-item",' role="menuitem"')),r}function an(t,e,r=false){let n=t.locale.panel,i=t.step==="report"||t.step==="success",o=t.unreadCount,s=i&&t.callbacks.onReporterReportsRequest?oe("reports",`${B(n.yourReports)}${o?` <span class="mushi-badge">${B(n.newCount.replace("{n}",String(o)))}</span>`:""}`,"mushi-pill-btn"):"",a=i?pp(t):[],u=a.length?`<div class="mushi-menu-wrap">${oe("toggle-more-nav","\u22EF","mushi-icon-btn",` aria-haspopup="menu" aria-expanded="${t.showMoreNav}" aria-label="${B(n.moreOptions)}"`)}${t.showMoreNav?`<div class="mushi-menu" role="menu">${a.join("")}</div>`:""}</div>`:"";return `${r?oe("back","\u2190","mushi-icon-btn",` aria-label="${B(t.locale.widget.back)}"`):t.pageFaviconHref?`<img class="mushi-header-host-icon" src="${B(t.pageFaviconHref)}" alt="" referrerpolicy="no-referrer" width="20" height="20" />`:""}<h2 id="mushi-title" class="mushi-title">${B(e)}</h2>${s}${u}${oe("close","\u2715","mushi-icon-btn",` aria-label="${B(t.locale.widget.close)}"`)}`}function Fa(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 ${B(r)}</strong> ${e?`latest is ${B(e)}.`:"needs attention."}${i?` <span>${B(i)}</span>`:""}</div>`}function Oa(t){return t.config.brandFooter!==true?"":`<div class="mushi-brand-footer"><a class="mushi-brand-link" href="${B(ca(t.brandRef))}" target="_blank" rel="noopener noreferrer" data-action="brand-footer">${B(t.locale.flows.poweredBy)}<span aria-hidden="true"> \u2197</span></a></div>`}function pi(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 hp(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="${B(e)}">${B(pi(t,e))}</button>`}function fp(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 mp(t){let e=[...lp];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 gp(t){let e=t.locale,r=e.panel,n=e.step3,{primary:i,more:o}=mp(t.config),s=t.showAllCategories?[...i,...o]:i,a=s.map((b,f)=>hp(t,b,f,s.includes(t.chip??"")?t.chip:null)).join(""),u=o.length&&!t.showAllCategories?oe("show-all-categories",B(r.more),"mushi-chip mushi-chip-more"):"",c=fp(t),p=c.length?`<div class="mushi-chips mushi-intents" role="radiogroup" aria-label="${B(pi(t,t.chip))}">${c.map((b,f)=>`<button type="button" class="mushi-chip mushi-chip-sm" role="radio" aria-checked="${t.intent===b}" tabindex="${t.intent===b||!t.intent&&f===0?"0":"-1"}" data-action="intent" data-intent="${B(b)}">${B(b)}</button>`).join("")}</div>`:"",h=t.screenshotCapturing?n.screenshotCapturing:t.screenshotError?n.screenshotRetry:n.screenshotButton,m=t.elementCapturing?n.elementCapturing:t.elementError?n.elementFailed:t.elementSelected?n.elementSelected:r.pointAt,w='<span class="mushi-spinner" aria-hidden="true"></span>',x=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="${B(t.screenshotPreview)}" alt="${B(n.screenshotPreviewAlt)}" /></button><figcaption><span class="mushi-attach-name">${B(n.screenshotAttached)}</span>${t.screenshotHint?`<span class="mushi-screenshot-hint">${B(t.screenshotHint)}</span>`:""}<span class="mushi-attach-actions">${t.callbacks.onScreenshotAnnotateRequest?oe("annotate-screenshot",B(r.markUp),"mushi-link-btn"):""}${t.allowScreenshotRemove?oe("remove-screenshot",B(r.remove),"mushi-link-btn"):""}</span></figcaption></figure><div class="mushi-annotate-host" data-role="annotate-host"></div>`:t.screenshotAvailable?oe("screenshot",`${t.screenshotCapturing?w:'<span aria-hidden="true">\u{1F4F7}</span>'}${B(h)}`,`mushi-attach-btn${t.screenshotError?" error":""}`,`${t.screenshotCapturing?" disabled":""} aria-label="${B(h)}"`):"",g=t.elementAvailable?oe("element",`${t.elementCapturing?w:'<span aria-hidden="true">\u2316</span>'}${B(m)}`,`mushi-attach-btn${t.elementSelected?" active":""}${t.elementError?" error":""}`,`${t.elementCapturing?" disabled":""} aria-label="${B(m)}"`):"",y=t.screenshotError&&t.screenshotErrorReason?`<p class="mushi-note mushi-error-inline" role="status" data-role="screenshot-reason">${B(n.screenshotErrors[t.screenshotErrorReason])}${t.callbacks.onScreenshotShareTabRequest?` ${oe("screenshot-share-tab",B(n.screenshotShareTab),"mushi-link-btn")}`:""}</p>`:"",_=t.screenshotReview&&t.screenshotAttached&&t.screenshotPreview?`<p class="mushi-note mushi-screenshot-review" role="status" data-role="screenshot-review">${B(n.screenshotReview)}</p>`:"",k=t.submitNotSent?`<p class="mushi-note mushi-error-inline" data-role="not-sent">${B(t.submitNotSent==="throttled"?n.notSentThrottled:n.notSentBlocked)}</p>`:"",v=t.identifiedUser?.name??t.identifiedUser?.email,C=t.chip==="idea",T=t.canSend?B(n.submitHint.replace("{key}",pa(ha()))):B(t.rc.ui.addWords);return {header:an(t,t.config.expandedTitle||r.title),lead:`<textarea class="mushi-textarea" data-role="description" rows="3" maxlength="${rn}" placeholder="${B(C?n.featurePlaceholder:n.descriptionPlaceholder)}" aria-label="${B(r.title)}" aria-describedby="mushi-hint"></textarea>`,body:`${t.config.betaMode?.enabled?yp(t):""}<div class="mushi-chips"><div class="mushi-chip-group" role="radiogroup" aria-label="${B(r.title)}">${a}</div>${u}</div>${p}${_}<div class="mushi-attachments">${x}${g}</div>${y}${k}<p class="mushi-note">\u{1F512} ${B(r.privacy)}</p>${v?`<p class="mushi-note">\u{1F464} ${B(v)}</p>`:""}${t.draftLength>rn-400?`<p class="mushi-note" aria-live="polite">${t.draftLength}/${rn}</p>`:""}${t.launcherDismissible?`<p class="mushi-note">${oe("hide-launcher",B(e.widget.hideLauncher??cp),"mushi-link-btn")}</p>`:""}`,footer:`<span class="mushi-footer-hint" id="mushi-hint" data-role="hint">${T}</span><button type="button" class="mushi-submit" data-action="submit" aria-disabled="${!t.canSend||t.submitting}"${t.submitting?' aria-busy="true"':""}>${B(t.submitting?e.widget.submitting:r.send)}</button>`}}function Ha(t){let e=t.config.betaMode?.contactEmail?.trim();if(!e||!/^[^\s@<>"]+@[^\s@<>"]+$/.test(e))return "";let r=`<a class="mushi-link-btn" href="mailto:${B(encodeURIComponent(e).replace(/%40/g,"@"))}">${B(e)}</a>`;return `<p class="mushi-note mushi-beta-contact">${B(t.locale.flows.betaStrip.contactHint).replace(B("{email}"),r)}</p>`}function bp(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">${B(n)}</p>${Ha(t)}</div>`}function Ep(t){let e=t.config.betaMode?.changelogItems?.[0];if(!e)return "";let r=B(t.locale.flows.changelog.whatsNew.replace("{version}",e.version));return `<details class="mushi-changelog"><summary>${e.date?`${r} \xB7 ${B(e.date)}`:r}</summary><ul>${e.items.map(n=>`<li>${B(n)}</li>`).join("")}</ul></details>`}function yp(t){let e=t.config.betaMode,r=t.locale.flows.betaStrip,n=B(e.appName??"This app"),i=e.message?B(e.message):B(r.defaultMessage).replace("{appName}",n),o=e.perks??[];return `<div class="mushi-beta-strip" role="note" aria-label="${B(r.ariaLabel)}"><p><span class="mushi-beta-tag">Beta</span> ${i}</p>${Ha(t)}${o.length?`<ul class="mushi-beta-perks">${o.map(s=>`<li>${B(s)}</li>`).join("")}</ul>`:""}${Ep(t)}</div>`}function Na(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 vp(t){let e=t.locale.flows.success,r=t.lastSubmitFailureKind;if(Na(t)){let s=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">${B(s)}</p>`}let n=B((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> ${B(e.delivering)}</p></div>`;let i=B(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">${B(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}">#${B(t.lastReportId.slice(0,8))}</button>${o?` \xB7 <a class="mushi-link-btn" href="${B(`${o}/reports/${encodeURIComponent(t.lastReportId)}`)}" target="_blank" rel="noopener noreferrer">${B(e.trackOnMushi)} \u2197</a>`:""}</p>${t.lastSubmitScreenshotDropped?`<p class="mushi-note mushi-warn">${B(e.screenshotDropped)}</p>`:""}</div>`}function Ua(t,e=3){return `<div class="mushi-skeleton" role="status" aria-label="${B(t)}">${"<span></span>".repeat(e)}</div>`}function wp(t){let e=t.locale.flows.success,r=t.submittedAt??new Date,n=Na(t),i=!n&&t.lastReportId&&t.callbacks.onReporterReportsRequest;return {header:an(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()}">${B(ma(r,t.config.locale==="auto"?void 0:t.config.locale))}</time>${vp(t)}${n?"":bp(t)+(t.views?.renderOptIns(t)??"")}${t.rewardsState?Sp(t):""}</div>`,footer:`${i?oe("track-report",B(e.trackReport),"mushi-btn"):"<span></span>"}${oe("done",B(e.done),"mushi-submit")}`}}function Sp(t){let{tier:e,nextTier:r,totalPoints:n,pointsForReport:i}=t.rewardsState,o=n+i,s=100,a="";if(r){let u=e?.pointsThreshold??0,c=r.pointsThreshold;s=c>u?Math.round(Math.min(1,(o-u)/(c-u))*100):100;let p=Math.max(0,c-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 qa(t){return _t(t)}function Fp(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 gi=null,bi=null;function Ya(){return bi??=Promise.resolve().then(()=>(Ga(),za)).then(t=>(t.initViews($a),gi=t,t)),bi}var fi=["notice","header","lead","body","footer","brand"],mi=["description","reporter-reply","magic-link-email","optin-email"],Op=["bug","slow","visual","confusing","other"],Hp='button:not([disabled]),textarea:not([disabled]),input:not([disabled]),a[href],[tabindex]:not([tabindex="-1"])',ln=class t{host;shadow;colorSchemeMq=null;onColorSchemeChange=null;config;callbacks;locale;rc;lang="en";isOpen=false;openCount=0;step="report";styleEl;styleKey="";themeWarnings=[];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(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??(Np(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=di(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 e=this.config.locale==="auto"?typeof navigator<"u"?navigator.language??"":"":this.config.locale;return this.lang=(e||"en").split(/[-_]/)[0].toLowerCase(),qa(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(([,a])=>a!==void 0));this.config={...this.config,...i,...e.triggerText!==void 0?{triggerText:e.triggerText||"\u{1F41B}"}:{}},this.locale=di(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),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.openCount++,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=e?.category,n=r?this.resolveCustomCategory(r):void 0;this.chip=e?.featureRequest?"idea":n||r&&r!=="other"&&Op.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.openCount++,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,...Fp(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 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 s=a=>{a.preventDefault(),this.updateConfig(r),this.open();};return o.addEventListener("click",s),()=>o.removeEventListener("click",s)});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.screenshotReview=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,warnings:[...this.themeWarnings]}}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 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 e=window.innerHeight,r=window.innerWidth;if(!e||!r)return 0;let n=this.config.position.endsWith("left"),i=s=>s.height>0&&s.height<=e*.4&&s.top<e&&s.bottom>=e-4&&s.bottom<=e+4,o=e;for(let s of [n?24:r-24,r/2]){let a=document.elementsFromPoint(s,e-2).find(c=>c!==this.host&&!this.host.contains(c)),u=null;for(let c=a??null;c&&c!==document.body&&c!==document.documentElement;c=c.parentElement){let p=getComputedStyle(c),h=c.getBoundingClientRect();if(p.position==="fixed"||p.position==="sticky"){let m=i(h)?h:u;m&&(o=Math.min(o,m.top));break}/(auto|scroll)/.test(p.overflowY)?u=null:i(h)&&(u=h);}}return o<e?Math.ceil(e-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 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,s=e.bugCta??"\u{1F41B} Report a bug",a=e.featureCta!==false,u=e.featureCtaLabel??"Request feature",c=`\u{1F4EC} ${this.locale.panel.yourReports}`,p=e.zIndex??(this.config.zIndex??99999)-1,h=document.createElement("div");h.className=`mushi-banner ${r} ${n}${o?" mushi-banner--rich":""}`,h.style.setProperty("--mushi-banner-z",String(p)),h.setAttribute("role","banner");let m=document.createElement("button");if(m.className="mushi-banner-dismiss",m.textContent="\u2715",m.setAttribute("aria-label","Dismiss feedback banner"),m.addEventListener("click",()=>{this.bannerDismissed=true,this.removeBodyNudge(),this.render();}),o){let w=document.createElement("div");w.className="mushi-banner-body";let x=e.label===false?null:e.label??Ks.bannerLabel;if(x){let v=document.createElement("span");v.className="mushi-banner-pill",v.textContent=x,w.appendChild(v);}let g=document.createElement("span");g.className="mushi-banner-message",g.textContent=i,w.appendChild(g),h.appendChild(w);let y=document.createElement("nav");y.className="mushi-banner-actions",y.setAttribute("aria-label","Feedback banner actions");let _=(v=false)=>{let C=document.createElement("span");C.className=`mushi-banner-divider${v?" mushi-banner-extra":""}`,C.setAttribute("aria-hidden","true"),C.textContent="|",y.appendChild(C);},k=(v,C,T=false)=>{let b=document.createElement("button");b.type="button",b.className=`mushi-banner-link${T?" mushi-banner-extra":""}`,b.textContent=v,b.addEventListener("click",C),y.appendChild(b);};k(s,()=>this.open({category:"bug"})),a&&(_(true),k(u,()=>this.open({featureRequest:true}),true));for(let v of e.links??[]){let C=v.label?.trim();if(!C)continue;let T=v.href&&(/^https?:\/\//i.test(v.href)||v.href.startsWith("/"))?v.href:void 0;if(_(true),T){let b=document.createElement("a");b.className="mushi-banner-link mushi-banner-extra",b.href=T,b.textContent=C,b.target="_blank",b.rel="noopener noreferrer",y.appendChild(b);}else k(C,()=>{v.featureRequest?this.open({featureRequest:true}):this.open();},true);}_(true),k(c,()=>this.openReporter(),true),h.appendChild(y),h.appendChild(m);}else {let w=document.createElement("button");if(w.className="mushi-banner-btn",w.textContent=s,w.addEventListener("click",()=>this.open({category:"bug"})),h.appendChild(w),a){let g=document.createElement("button");g.className="mushi-banner-btn",g.textContent=u,g.addEventListener("click",()=>this.open({featureRequest:true})),h.appendChild(g);}let x=document.createElement("button");x.className="mushi-banner-my-reports",x.textContent=c,x.addEventListener("click",()=>this.openReporter()),h.appendChild(x),h.appendChild(m);}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 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=>ga(location.pathname,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,i=null;for(let o of [e,`color-mix(in srgb,${e},${e})`]){r.color="",r.color=o;let s=r.color&&(this.host.isConnected?getComputedStyle(this.host).color:r.color).match(/(rgba?\(|srgb )([\d.]+)[ ,]+([\d.]+)[ ,]+([\d.]+)/);if(s){let a=s[1]==="srgb "?255:1;i=[+s[2]*a,+s[3]*a,+s[4]*a];break}}return r.color=n,i}hostColorVar(e){return dt(this.hostCssVar(e))}resolveAccent(e){this.themeWarnings=[];let r=this.hostColorVar("--mushi-accent")||dt(this.config.accent??""),n=[];if(!r&&typeof document<"u"){try{let p=getComputedStyle(document.documentElement).getPropertyValue("accent-color").trim();p&&p!=="auto"&&n.push(p);}catch{}n.push(document.querySelector('meta[name="theme-color"]')?.getAttribute("content")?.trim()??"");}let i=e?[18,18,18]:[255,255,255];for(let p of n){if(r)break;let h=dt(p),m=h?this.probeRgb(h):null;m&&sn(m,i).ratio>=3&&(r=h);}if(!r)return {accent:"",accentFg:""};let o=this.probeRgb(r),s=this.hostColorVar("--mushi-accent-fg")||dt(this.config.accentText??""),a=o?sn(o).ink:"",u=o&&s?this.probeRgb(s):null,c=u?sn(o,u).ratio:3;return c>=3?{accent:r,accentFg:s||a}:(this.themeWarnings.push(`Accent text ${s} is ${c.toFixed(1)}:1 on ${r} (under 3:1); using ${a}.`),{accent:r,accentFg:a,lockFg:true})}syncChrome(){let e=this.getTheme(),{accent:r,accentFg:n,lockFg:i}=this.resolveAccent(e==="dark"),o=`${e}|${r}|${n}|${i}`;o!==this.styleKey&&(this.styleKey=o,this.styleEl.textContent=Da(e,r,n,i),this.themeWarnings.forEach(s=>this.callbacks.onWarning?.(s))),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&&Za(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,c=0;if(a!=="y"&&(i.key==="ArrowLeft"?u=-s:i.key==="ArrowRight"&&(u=s)),a!=="x"&&(i.key==="ArrowUp"?c=-s:i.key==="ArrowDown"&&(c=s)),u!==0||c!==0){i.preventDefault();let p=this.fabPos??{x:0,y:0};this.moveFab(n,p.x+u,p.y+c,"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 p of fi)this.regionEls[p].innerHTML="";this.regionHtml={},this.renderedStep=null,this.teardownViewportHandlers();}return}let r=this.renderCtx();!gi&&(Ba.has(this.step)||this.step==="success"&&(this.channels.email||this.channels.push))&&this.preloadViews().then(()=>{this.isOpen&&this.render();});let n=Pa(r),i={notice:Fa(r),header:n.header,lead:n.lead,body:n.body,footer:n.footer,brand:Oa(r)},o=this.renderedStep!==this.step,s=this.renderedStep===null,a=this.shadow.activeElement,u=a?Xa(a):null;this.captureFormDrafts();let c=false;for(let p of fi)this.regionHtml[p]!==i[p]&&(this.regionHtml[p]=i[p],this.regionEls[p].innerHTML=i[p],c=true);this.renderedStep=this.step,c&&(Ea(e),this.restoreFormDrafts()),o?(this.scroller.scrollTop=0,s||(e.classList.remove("mushi-swap"),e.offsetWidth,e.classList.add("mushi-swap")),this.focusView()):a&&!a.isConnected&&u&&e.querySelector(u)?.focus(),s&&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 mi){let i=this.panel.querySelector(`[data-role="${n}"]`);i&&(this.drafts[n]=i.value);}let e=this.shadow.activeElement,r=e?.dataset?.role;r&&mi.includes(r)?(this.drafts._focus=r,this.drafts._sel=`${e.selectionStart??0},${e.selectionEnd??0}`):delete this.drafts._focus;}restoreFormDrafts(){for(let e of mi){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 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)+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 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+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 s=r[o];s!==void 0&&e.style.setProperty(`--mushi-${o}`,s);});else {let{inset:o}=this.config;this.config.respectSafeArea||["top","right","bottom","left"].forEach(s=>{o[s]===void 0&&e.style.setProperty(`--mushi-${s}`,"24px");}),["top","right","bottom","left"].forEach(s=>{let a=o[s];a!==void 0&&e.style.setProperty(`--mushi-${s}`,a==="auto"?"auto":`${a}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 s=e.style.getPropertyValue("--mushi-bottom").trim()||this.hostCssVar("--mushi-bottom")||`calc(${ct.gutter}px + env(safe-area-inset-bottom, 0px))`;s!=="auto"&&e.style.setProperty("--mushi-bottom",`max(${s}, ${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:s}=o,a=window.innerWidth,u=window.innerHeight,c=e.offsetWidth||52,p=e.offsetHeight||52,h=getComputedStyle(document.documentElement),m=U=>parseInt(h.getPropertyValue(`--sai-${U}`)||"0")||0,w=m("left"),x=m("right"),g=m("top"),y=m("bottom"),_=8,k=e.getBoundingClientRect(),v=k.left-(this.fabPos?.x??0),C=k.top-(this.fabPos?.y??0),T=w+_-v,b=a-x-_-c-v,f=g+_-C,E=u-Math.max(y+_,this.barClearance)-p-C,A=s==="x"?0:Math.max(f,Math.min(E,n)),$=s==="y"?0:Math.max(T,Math.min(b,r));if(i==="end"&&o.snap&&s!=="y"&&($=k.left+c/2<a/2?w+_-v:a-x-_-c-v),this.fabPos={x:$,y:A},e.style.setProperty("--mushi-drag-x",`${$}px`),e.style.setProperty("--mushi-drag-y",`${A}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,s=false,a=false,u=6;e.addEventListener("pointerdown",p=>{if(p.button!==0&&p.pointerType!=="touch")return;e.setPointerCapture?.(p.pointerId),r=p.clientX,n=p.clientY;let h=this.fabPos??{x:0,y:0};i=h.x,o=h.y,s=true,a=false;}),e.addEventListener("pointermove",p=>{if(!s)return;let h=p.clientX-r,m=p.clientY-n;!a&&Math.hypot(h,m)>u&&(a=true,e.classList.remove("tucked"),e.classList.add("dragging")),a&&(p.preventDefault(),this.moveFab(e,i+h,o+m,"move"));});let c=p=>{if(s){if(s=false,e.classList.remove("dragging"),a){this.moveFab(e,i+p.clientX-r,o+p.clientY-n,"end");let h=m=>{m.stopImmediatePropagation(),e.removeEventListener("click",h,{capture:true});};e.addEventListener("click",h,{capture:true});}a=false;}};e.addEventListener("pointerup",c),e.addEventListener("pointercancel",c);}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: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:e=>oi[e]??oi.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"&&Ja(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(da(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(Xa(o)??"")?.focus();}}trapTab(e){let r=Array.from(this.panel.querySelectorAll(Hp)).filter(s=>!s.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":Up(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();}async 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}if(this.callbacks.onBeforeSubmit){this.submitting=true,this.render();let x=this.openCount,g=false;try{g=await this.callbacks.onBeforeSubmit();}catch{g=false;}if(x!==this.openCount||(this.submitting=false,!this.isOpen||this.step!=="report"))return;if(g&&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,c=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 x=this.callbacks.onSubmit({category:a,...u?{userCategory:u}:{},description:r,...c?{intent:c}:{}});return x&&typeof x.then=="function"?await x??null:null}catch{return {reportId:null,queuedOffline:true}}})(),m;h.then(x=>{m=x;});let w=this.openCount;this.successTimer=setTimeout(()=>{if(this.successTimer=null,!(w!==this.openCount||!this.isOpen)){if(fr(m)){this.showNotSent(m.failureKind,p);return}this.submitting=false,this.step="success",this.drafts={},this.render(),this.announce(this.rc.ui.sent),h.then(x=>{if(!(this.step!=="success"||!x)){if(fr(x)){this.showNotSent(x.failureKind,p);return}this.lastReportId=x.reportId??null,this.lastSubmitQueuedOffline=!!x.queuedOffline,this.lastSubmitFailureKind=x.failureKind,this.lastSubmitScreenshotDropped=!!x.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 Ot(e,Ht):[],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 Ot(e,Ht):[];}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 Ot(n,Ht):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),s=o?await Ot(o,Ht):[];this.selectedReportId===e&&(this.reporterComments=s);}}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="",Ja(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 Ot(Promise.resolve(this.callbacks.onReporterReply?.(n,r.body)),Ht),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(!Ra(e)||!this.callbacks.onReporterEmailOptIn){this.emailState="invalid",this.render();return}this.emailState="saving",this.render();try{await this.callbacks.onReporterEmailOptIn(e),this.emailState="saved";}catch{this.emailState="error";}this.render();}async subscribePush(){if(!this.callbacks.onReporterPushSubscribe||this.pushState==="asking")return;let e=this.callbacks.onReporterPushSubscribe();this.pushState="asking",this.render();try{await e,this.pushState="on";}catch{this.pushState="error";}this.render();}async showUpdatesToast(e){let r=(await Ya()).pickUpdateToast(e,this.lang,this.rc.ui.toastReplied);return r?this.showUpdateToast(r):false}async preloadViews(){try{await Ya();}catch{bi=null;}}showUpdatesFeedToast(e,r){if(!(e.unread_total>0))return false;let n=new Set(e.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?e.latest[0]?.preview:void 0);return this.showUpdateToast({text:xa(e,this.lang),reportId:i,...s?{detail:s}:{}})}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 a=document.createElement("small");a.textContent=e.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=e.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 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 Za(t){return Array.from(t.trim()).length>2}function Np(t){let{anchor:e,inset:r}=t;return !!(t.draggable||Za(t.triggerText??"")||e?.left!==void 0||e?.right!==void 0||r?.left!==void 0||r?.right!==void 0)}function Xa(t){let e=t.dataset;return e.role?`[data-role="${e.role}"]`:e.category?`[data-category="${un(e.category)}"]`:e.intent?`[data-intent="${un(e.intent)}"]`:e.reportId?`[data-report-id="${un(e.reportId)}"]`:e.action?`[data-action="${e.action}"]${e.value?`[data-value="${un(e.value)}"]`:""}`:null}function un(t){return t.replace(/["\\]/g,"\\$&")}function Ja(t){t.style.height="auto",t.style.height=`${Math.min(t.scrollHeight,104)}px`;}function Up(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 Ei(t,e){try{return globalThis[t]?.getItem(e)??null}catch{return null}}function yi(t,e,r){try{globalThis[t]?.setItem(e,r);}catch{}}function vi(t){yi("localStorage",`mushi_has_reports_${t}`,"1");}function wi(t){return Ei("localStorage",`mushi_has_reports_${t}`)==="1"}function Qa(t,e=Date.now()){if(Ei("sessionStorage",`mushi_toast_${t}`))return false;let r=Number(Ei("localStorage",`mushi_toast_at_${t}`)??0);return !(r&&e-r<864e5)}function eu(t,e=Date.now()){yi("sessionStorage",`mushi_toast_${t}`,"1"),yi("localStorage",`mushi_toast_at_${t}`,String(e));}function tu(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 ru(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,"/"),s=atob(o+"=".repeat((4-o.length%4)%4)),a=await i.pushManager.subscribe({userVisibleOnly:!0,applicationServerKey:Uint8Array.from(s,c=>c.charCodeAt(0))}),u=await t.subscribePush(e,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 qp(t,e){let r={...t};if(e)for(let[n,i]of Object.entries(e))i!==void 0&&(r[n]=i);return r}function jp(t,e){return t.widget?.[e]!==void 0}var Wp=["manual","attach"],Kp=["variant","position","message","label","bugCta","featureCta"];function nu(t,e,r=t){let n=e.native?.triggerMode,i=e.widget?.launcher,o=t.widget?.trigger,s=r.widget?.trigger,a=i??e.widget?.trigger,u=s!==void 0&&Wp.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"||e.widget?.trigger==="hidden",m=p==="hidden"&&!h&&o&&o!=="hidden"?o:p,w=e.widget??{},x=r.widget?.bannerConfig??{},g={};for(let k of Kp){let v=w["banner"+k[0].toUpperCase()+k.slice(1)];(v!=null&&v!==""||k==="label"&&v==="")&&x[k]===void 0&&(g[k]=v===""?false:v);}let y=Object.keys(g).length?{...t.widget?.bannerConfig,...g}:void 0,_={};for(let[k,v]of Object.entries(w))k==="trigger"||k==="launcher"||k==="accentText"||v==null||jp(r,k)||(_[k]=v);return _.accent!==void 0&&w.accentText!=null&&(_.accentText=w.accentText),{...t,widget:{...t.widget,..._,...m?{trigger:m}:{},...y?{bannerConfig:y}:{},...t.widget?.betaMode?{betaMode:t.widget.betaMode}:{}},capture:qp(t.capture,e.capture),privacy:{...t.privacy}}}function cn(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 iu(t){if(typeof globalThis>"u")return;let e={ready:()=>t.getIsMounted(),getStep:()=>t.getRecorderStep(),getCategoryStepIA:()=>t.getRecorderCategoryStepIA(),getTriggerCenter:()=>cn(t.getRecorderTrigger()),getCategoryCenter:r=>cn(t.getRecorderCategoryButton(r)),getIntentCenter:r=>cn(t.getRecorderIntentButton(r)),getSubmitCenter:()=>cn(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 dn=null,pn=null,br=null,Er=null,yr=null,vr=false,Ct=new Set;function Vp(){for(let t of Ct)try{t.onPush?.();}catch{}}function zp(){for(let t of Ct)try{t.onReplace?.();}catch{}}function Gp(){for(let t of Ct)try{t.onPop?.();}catch{}}function Yp(){if(vr||typeof window>"u")return;let t=history.pushState,e=history.replaceState;dn=t,pn=e;let r=function(...o){let s=t.apply(history,o);return br===r&&Vp(),s},n=function(...o){let s=e.apply(history,o);return Er===n&&zp(),s};br=r,Er=n,history.pushState=r,history.replaceState=n,yr=()=>Gp(),window.addEventListener("popstate",yr),vr=true;}function ou(){!vr||typeof window>"u"||(yr&&(window.removeEventListener("popstate",yr),yr=null),br&&history.pushState===br&&dn&&(history.pushState=dn),Er&&history.replaceState===Er&&pn&&(history.replaceState=pn),br=null,Er=null,dn=null,pn=null,vr=false);}function Fe(t){return Yp(),vr?(Ct.add(t),()=>{Ct.delete(t),Ct.size===0&&ou();}):()=>{}}function su(){Ct.clear(),ou();}var Xp=3e4,Jp=3e5,Zp=6e4,Qp=60,lu="mushi_session_min_day_",qt=[],jt=null,Wt=null,Ze=null,cu=null,Si=null,Kt=null,pt=false,Sr=null,du=0,_i=null,eh=300*1e3,Ci=0,th=900*1e3;function Ti(){return Date.now()<Ci}function Ai(t){t?.startsWith("HTTP_4")&&(Ci=Date.now()+th);}var au=new Set;function xi(t){return `mushi_rewards_consent_${t}`}function rh(t){try{return localStorage.getItem(xi(t))==="1"}catch{return false}}function Ri(t,e){try{e?localStorage.setItem(xi(t),"1"):localStorage.removeItem(xi(t)),pt=e;}catch{}}function pu(){return new Date().toISOString().slice(0,10)}function hu(t){try{let e=sessionStorage.getItem(`${lu}${t}_${pu()}`);return e?parseInt(e,10):0}catch{return 0}}function nh(t){let e=pu(),r=`${lu}${t}_${e}`;try{let n=hu(t)+1;return sessionStorage.setItem(r,String(n)),n}catch{return 99}}function fu(t){Kt=t.client,Ze=t.userId,cu=t.traits??null,Si=t.reporterToken??null;let{projectId:e}=t,r=Math.max(Xp,t.config.flushIntervalMs??Jp);t.config.consentMode==="auto"?(pt=true,Ri(e,true)):pt=rh(e),t.config.trackActivity&&oh(e),jt&&clearInterval(jt),jt=setInterval(()=>ih(t),r),Wt&&clearInterval(Wt),Wt=setInterval(()=>{if(!pt||!Ze)return;let n=hu(e);n<Qp&&(nh(e),Vt({action:"session_minute",metadata:{minutes_today:n+1}}));},Zp),t.config.showInWidget&&Ii(Ze).then(n=>{n&&Eu(n,t.config);}),t.config.consentMode!=="auto"&&!pt&&uh(e,t.config);}function Vt(t){!pt||!Ze||qt.push({...t,queuedAt:Date.now()});}async function ih(t){if(!pt||!Ze||qt.length===0)return;let e=null;if(t.config.verifyUserToken)try{e=await t.config.verifyUserToken();}catch{}if(Ti())return;let r=qt.splice(0,100);try{let n=Si?await $t(Si):void 0,i=await t.client.submitActivity(Ze,r,{userTraits:cu??void 0,reporterTokenHash:n,optedIn:!0,hostJwt:e??void 0});i.ok||(Ai(i.error?.code),i.error?.code?.startsWith("HTTP_4")||qt.unshift(...r.slice(0,50)));}catch{qt.unshift(...r.slice(0,50));}}async function mu(t){let e=Date.now();return Sr&&_i===t&&e-du<eh?Sr:Ii(t)}async function Ii(t){if(!Kt||Ti())return null;let e=await Kt.getMyTier(t);return e.ok&&e.data?(Sr=e.data,du=Date.now(),_i=t,Sr):(Ai(e.error?.code),null)}async function gu(t=10){if(!Kt||Ti())return null;try{let e=await Kt.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})):(Ai(e.error?.code),null)}catch{return null}}function bu(){jt&&(clearInterval(jt),jt=null),Wt&&(clearInterval(Wt),Wt=null),ki(),ah(),ve&&(ve.remove(),ve=null),qt=[],Ze=null,Kt=null,pt=false,Sr=null,_i=null,Ci=0;}var fn=null,wr=null,mn=null,uu="",hn=false;function oh(t){if(!(hn&&mn)){hn&&ki(),hn=true;try{sh(t);}catch(e){throw ki(),e}}}function sh(t){let e=()=>{let n=location.pathname;if(n===uu)return;uu=n,!au.has(`${t}:${n}`)&&(au.add(`${t}:${n}`),Vt({action:"screen_view_unique_per_day",metadata:{route:n}}));};mn=Fe({onPush:e,onPop:e}),e(),fn=new MutationObserver(()=>e());let r=document.querySelector("main")??document.body;fn.observe(r,{childList:true,subtree:false}),wr=n=>{let i=n.target.closest("[data-testid]");if(!i)return;let o=i.dataset.testid;o&&Vt({action:"element_selected",metadata:{testid:o,route:location.pathname}});},document.addEventListener("click",wr,{capture:true,passive:true});}function ki(){hn=false,mn?.(),mn=null,fn?.disconnect(),fn=null,wr&&(document.removeEventListener("click",wr,{capture:true}),wr=null);}var Je=null;function Eu(t,e){if(!e.showInWidget)return;Je&&Je.remove(),Je=document.createElement("div"),Je.id="mushi-tier-badge",Object.assign(Je.style,{position:"fixed",bottom:"56px",right:"16px",zIndex:"2147483645",fontFamily:"system-ui, sans-serif"});let r=Je.attachShadow({mode:"closed"});r.innerHTML=`
|
|
17
17
|
<style>
|
|
18
18
|
:host { display: block; }
|
|
19
19
|
.badge {
|
|
@@ -78,7 +78,7 @@ ${a}`}catch{return null}finally{clearTimeout(i);}}function Gh(t){try{return Arra
|
|
|
78
78
|
<button class="decline" id="decline">No thanks</button>
|
|
79
79
|
</div>
|
|
80
80
|
</div>
|
|
81
|
-
`,r.getElementById("accept")?.addEventListener("click",()=>{Ri(t,true),ve?.remove(),ve=null,e.showInWidget&&Ze&&Ii(Ze).then(n=>{n&&Eu(n,e);});}),r.getElementById("decline")?.addEventListener("click",()=>{Ri(t,false),ve?.remove(),ve=null;}),document.body.appendChild(ve);}var lh=[/\/v1\/sdk(?:\/|$)/,/\/v1\/reports(?:\/|$)/,/\/v1\/notifications(?:\/|$)/,/\/v1\/reputation(?:\/|$)/];function gn(t){return typeof t=="string"?t:t instanceof URL?t.href:t.url}function bn(t,e){let r=e?.[dr];if(r)return r;let n=ph(e?.headers,zr);if(n)return n;if(typeof Request<"u"&&t instanceof Request){let i=t.headers.get(zr);if(i)return i}return null}function xr(t,e={}){if([...lh,...e.ignoreUrls??[]].some(i=>ch(t,i)))return true;let n=dh(e.apiEndpoint);return n?Mi(t).startsWith(n):false}function ch(t,e){return typeof e=="string"?Mi(t).includes(e):(e.lastIndex=0,e.test(t))}function dh(t){if(!t)return null;let e=Mi(t),r=e.length;for(;r>0&&e.charCodeAt(r-1)===47;)r--;return e.slice(0,r)}function Mi(t){try{return new URL(t,typeof location<"u"?location.href:"http://localhost").href}catch{return t}}function ph(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 hh=30,fh="00";function yu(){let t=crypto.getRandomValues(new Uint8Array(16)),e=crypto.getRandomValues(new Uint8Array(8)),r=o=>Array.from(o).map(s=>s.toString(16).padStart(2,"0")).join(""),n=r(t),i=r(e);return {traceparent:`${fh}-${n}-${i}-01`,traceId:n,spanId:i}}function vu(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 Me=[];function Su(){return Me[Me.length-1]}function wu(){let t=crypto.getRandomValues(new Uint8Array(4));return Array.from(t).map(e=>e.toString(16).padStart(2,"0")).join("")}function Di(t={}){let e=[],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=t,u=async function(
|
|
81
|
+
`,r.getElementById("accept")?.addEventListener("click",()=>{Ri(t,true),ve?.remove(),ve=null,e.showInWidget&&Ze&&Ii(Ze).then(n=>{n&&Eu(n,e);});}),r.getElementById("decline")?.addEventListener("click",()=>{Ri(t,false),ve?.remove(),ve=null;}),document.body.appendChild(ve);}var lh=[/\/v1\/sdk(?:\/|$)/,/\/v1\/reports(?:\/|$)/,/\/v1\/notifications(?:\/|$)/,/\/v1\/reputation(?:\/|$)/];function gn(t){return typeof t=="string"?t:t instanceof URL?t.href:t.url}function bn(t,e){let r=e?.[dr];if(r)return r;let n=ph(e?.headers,zr);if(n)return n;if(typeof Request<"u"&&t instanceof Request){let i=t.headers.get(zr);if(i)return i}return null}function xr(t,e={}){if([...lh,...e.ignoreUrls??[]].some(i=>ch(t,i)))return true;let n=dh(e.apiEndpoint);return n?Mi(t).startsWith(n):false}function ch(t,e){return typeof e=="string"?Mi(t).includes(e):(e.lastIndex=0,e.test(t))}function dh(t){if(!t)return null;let e=Mi(t),r=e.length;for(;r>0&&e.charCodeAt(r-1)===47;)r--;return e.slice(0,r)}function Mi(t){try{return new URL(t,typeof location<"u"?location.href:"http://localhost").href}catch{return t}}function ph(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 hh=30,fh="00";function yu(){let t=crypto.getRandomValues(new Uint8Array(16)),e=crypto.getRandomValues(new Uint8Array(8)),r=o=>Array.from(o).map(s=>s.toString(16).padStart(2,"0")).join(""),n=r(t),i=r(e);return {traceparent:`${fh}-${n}-${i}-01`,traceId:n,spanId:i}}function vu(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 Me=[];function Su(){return Me[Me.length-1]}function wu(){let t=crypto.getRandomValues(new Uint8Array(4));return Array.from(t).map(e=>e.toString(16).padStart(2,"0")).join("")}function Di(t={}){let e=[],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=t,u=async function(x,g){let y=Date.now(),_=g?.method?.toUpperCase()??"GET",k=gn(x),C=!bn(x,g)&&!xr(k,a),T=C?wu():void 0,b,f=g,E=a.tracePropagation;if(C&&E?.enabled&&E.corsUrls?.length&&vu(k,E.corsUrls)){let{traceparent:A,traceId:$}=yu();b=$;let U=g?.headers?new Headers(g.headers):new Headers;U.set("traceparent",A),a.sessionId&&U.set("x-mushi-session",a.sessionId),f={...g,headers:U};}T&&Me.push(T);try{let A=await r.call(globalThis,x,f);return C&&m({method:_,url:Li(k),status:A.status,duration:Date.now()-y,timestamp:y,captureMethod:"fetch",...b?{traceId:b}:{},...T?{correlationId:T}:{}}),A}catch(A){throw C&&m({method:_,url:Li(k),status:0,duration:Date.now()-y,timestamp:y,error:A instanceof Error?A.message:"Network error",captureMethod:"fetch",...b?{traceId:b}:{},...T?{correlationId:T}:{}}),A}finally{if(T){let A=Me.lastIndexOf(T);A!==-1&&Me.splice(A,1);}}};globalThis.fetch=u;let c=typeof WeakMap<"u"?new WeakMap:null;if(n&&i&&o&&s&&c){let w=i;XMLHttpRequest.prototype.open=function(...g){let[y,_]=g,k=typeof _=="string"?_:String(_),v=!xr(k,a),C=v?wu():void 0,T,b,f=a.tracePropagation;if(v&&f?.enabled&&f.corsUrls?.length&&vu(k,f.corsUrls)){let A=yu();T=A.traceId,b=A.traceparent;}let E=c.get(this);if(E?._listener&&(this.removeEventListener("readystatechange",E._listener),E.correlationId)){let A=Me.lastIndexOf(E.correlationId);A!==-1&&Me.splice(A,1);}c.set(this,{method:String(y).toUpperCase(),url:Li(k),startTime:0,shouldRecord:v,...T?{traceId:T}:{},...C?{correlationId:C}:{},...b?{_traceparent:b}:{}}),w.apply(this,g);},XMLHttpRequest.prototype.send=function(g){let y=c.get(this);if(y){y.startTime=Date.now();let _=y._traceparent;_&&(s.call(this,"traceparent",_),a.sessionId&&s.call(this,"x-mushi-session",a.sessionId)),y.correlationId&&Me.push(y.correlationId);let k=()=>{if(this.readyState===4){if(this.removeEventListener("readystatechange",k),y._listener=void 0,y.shouldRecord){let v=Date.now()-y.startTime,C={method:y.method,url:y.url,status:this.status,duration:v,timestamp:y.startTime,captureMethod:"xhr",...y.traceId?{traceId:y.traceId}:{},...y.correlationId?{correlationId:y.correlationId}:{}};this.status===0&&(C.error="XHR network error or aborted"),m(C);}if(y.correlationId){let v=Me.lastIndexOf(y.correlationId);v!==-1&&Me.splice(v,1);}}};y._listener=k,this.addEventListener("readystatechange",k);}try{o.call(this,g);}catch(_){if(y?.correlationId){let k=Me.lastIndexOf(y.correlationId);k!==-1&&Me.splice(k,1);}throw y?._listener&&(this.removeEventListener("readystatechange",y._listener),y._listener=void 0),_}};}let p=n?XMLHttpRequest.prototype.open:null,h=n?XMLHttpRequest.prototype.send:null;function m(w){e.push(w),e.length>hh&&e.shift();}return {getEntries(){return [...e]},clear(){e.length=0;},updateOptions(w){a=w;},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(t){let e=hr(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 mh=50,gh=500;function Pi(){let t=[],e={},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,c,p,h)=>{let m={level:u,message:c.slice(0,gh),timestamp:Date.now(),...h};p instanceof Error&&p.stack&&(m.stack=p.stack.slice(0,1e3)),t.push(m),t.length>mh&&t.shift();};for(let u of n){let c=console[u];e[u]=c;let p=(...h)=>{let m=Su();o(u,h.map(i).join(" "),u==="error"?h.find(w=>w instanceof Error):void 0,m?{correlationId:m}:void 0),c.call(console,...h);};r[u]=p,console[u]=p;}let s=u=>{if(u.type==="unhandledrejection"){let c=u.reason;o("error",`Unhandled rejection: ${i(c)}`,c);}else {let c=u,p=c.filename?` (${c.filename}:${c.lineno}:${c.colno})`:"";o("error",`Uncaught ${i(c.error??(c.message||"error"))}${p}`,c.error);}},a=typeof window<"u"&&typeof window.addEventListener=="function";return a&&(window.addEventListener("error",s),window.addEventListener("unhandledrejection",s)),{getEntries(){return [...t]},clear(){t.length=0;},destroy(){for(let u of n)e[u]&&console[u]===r[u]&&(console[u]=e[u]);a&&(window.removeEventListener("error",s),window.removeEventListener("unhandledrejection",s));}}}yn();function af(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 Fi(){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 s=o.interactionId;if(!s)continue;let a=r.get(s)??0;if(o.duration>a&&r.set(s,o.duration),o.duration>(t.inp??0)){t.inp=o.duration;let u=o.processingStart-o.startTime,c=o.processingEnd-o.processingStart,p=o.startTime+o.duration-o.processingEnd;t.inpAttribution={eventType:o.name,targetSelector:af(o.target),inputDelay:Math.max(0,u),processingDuration:Math.max(0,c),presentationDelay:Math.max(0,p)};}}});n.observe({type:"event",durationThreshold:40,buffered:!0}),e.push(n);}catch{}try{let r=new PerformanceObserver(n=>{for(let i of n.getEntries())t.fid===void 0&&(t.fid=i.processingStart-i.startTime);});r.observe({type:"first-input",buffered:!0}),e.push(r);}catch{}}if(typeof performance<"u"&&performance.getEntriesByType)try{let r=performance.getEntriesByType("navigation");r.length>0&&r[0]&&(t.ttfb=r[0].responseStart-r[0].requestStart);}catch{}return {getMetrics(){return {...t}},destroy(){for(let r of e)r.disconnect();e.length=0;}}}function Oi(t=()=>"",e=r=>r){let r=false,n=null,i=null,o=null,s=null;function a(f){let E=f,A=0;for(;E&&A<20;){let $=E.getAttribute?.("data-testid");if($)return $;E=E.parentElement,A++;}return null}function u(f){let E=[],A=f;for(;A&&A!==document.body;){let $=1,U=A.previousElementSibling;for(;U;)U.tagName===A.tagName&&$++,U=U.previousElementSibling;let q=A.tagName.toLowerCase();E.unshift($>1?`${q}[${$}]`:q),A=A.parentElement;}return "//"+E.join("/")}function c(f){let E=t();if(E)try{if(f.closest(E)||f.querySelector(E))return}catch{return}let A=f.textContent?.trim().slice(0,200);return A?e(A):void 0}function p(f){let E=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:c(f),xpath:u(f),rect:{x:Math.round(E.x),y:Math.round(E.y),width:Math.round(E.width),height:Math.round(E.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=`
|
|
82
82
|
position: fixed;
|
|
83
83
|
pointer-events: none;
|
|
84
84
|
z-index: 2147483647;
|
|
@@ -93,6 +93,6 @@ ${a}`}catch{return null}finally{clearTimeout(i);}}function Gh(t){try{return Arra
|
|
|
93
93
|
z-index: 2147483647;
|
|
94
94
|
cursor: crosshair;
|
|
95
95
|
background: transparent;
|
|
96
|
-
`,document.body.appendChild(f),f}function v(f,E){let A=document.elementsFromPoint(f,E),$=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 U=0;for(;$?.shadowRoot&&U<20;){let q=$.shadowRoot.elementFromPoint(f,E);if(!q||q===$)break;$=q,U++;}return $}function k(f){if(!n)return;let E=f.getBoundingClientRect();n.style.left=`${E.left}px`,n.style.top=`${E.top}px`,n.style.width=`${E.width}px`,n.style.height=`${E.height}px`,n.style.display="block";}function g(f){let E=v(f.clientX,f.clientY);if(!E){o=null,n&&(n.style.display="none");return}o=E,k(E);}function y(f){f.preventDefault(),f.stopPropagation();}function _(f){f.preventDefault(),f.stopPropagation();let E=v(f.clientX,f.clientY);E&&C(p(E));}function R(f){f.key==="Escape"&&C(null);}function w(){o?.isConnected&&k(o);}function C(f){b(),s?.(f),s=null;}function T(){return r&&b(),new Promise(f=>{s=f,r=true,n=h(),i=m(),i.addEventListener("mousemove",g),i.addEventListener("click",_),i.addEventListener("pointerdown",y),i.addEventListener("mousedown",y),i.addEventListener("mouseup",y),document.addEventListener("keydown",R,true),window.addEventListener("scroll",w,{capture:true,passive:true});})}function b(){r&&(r=false,o=null,document.removeEventListener("keydown",R,true),window.removeEventListener("scroll",w,{capture:true}),i&&(i.remove(),i=null),n&&(n.remove(),n=null));}return {activate:T,deactivate:b,isActive:()=>r}}var Mu=120;function Hi(){let t=[],e=()=>n("hashchange");n("initial");function r(u){t.push(u),t.length>Mu&&t.shift();}function n(u){typeof location>"u"||r({ts:Date.now(),kind:"route",payload:{source:u,route:hr(`${location.pathname}${location.search}${location.hash}`),href:hr(location.href)}});}function i(u){let c=u.target instanceof Element?u.target:null;if(!c)return;let p=c.closest('button,a,[role="button"],input,textarea,select,[data-mushi-track]')??c;r({ts:Date.now(),kind:"click",payload:{tag:p.tagName.toLowerCase(),id:p.id||void 0,text:uf(p)}});}let o=Fe({onPush:()=>n("pushState"),onReplace:()=>n("replaceState"),onPop:()=>n("popstate")}),s=typeof window<"u",a=typeof document<"u";return s&&window.addEventListener("hashchange",e),a&&document.addEventListener("click",i,true),{setScreen(u){r({ts:Date.now(),kind:"screen",payload:u});},getEntries(u={}){return [...t,...(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(-Mu)},clear(){t.length=0;},destroy(){o(),s&&window.removeEventListener("hashchange",e),a&&document.removeEventListener("click",i,true);}}}function uf(t){let e=(t.textContent??"").replace(/\s+/g," ").trim();return e?e.slice(0,80):void 0}var lf=6e4,cf=/^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i,df=/^[0-9a-f]{20,}$/i,pf=/^\d+$/,hf=/^[a-z0-9]{16,}$/i;function ff(t){return t.length===0?t:cf.test(t)||df.test(t)||pf.test(t)||hf.test(t)&&/\d/.test(t)?"[id]":t}function mf(t,e,r){if(e.startsWith("#/")){let n=e.slice(1),i=n.indexOf("?"),o=i===-1?n:n.slice(0,i),s=r?.map(a=>a.startsWith("/#/")?a.slice(2):a);return "/#"+Lu(o,s)}return Lu(t,r)}function Lu(t,e){let r=t.length>1&&t.endsWith("/")?t.slice(0,-1):t;if(e?.length){let n=gf(r,e);if(n)return n}return "/"+r.split("/").filter(n=>n.length>0).map(ff).join("/")}function gf(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(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],c=r[a];if(!(u.startsWith("[")&&u.endsWith("]"))&&!u.startsWith(":")&&u!==c){s=false;break}}if(s)return "/"+o.join("/")}return null}function bf(){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 Ef(){if(typeof window>"u")return [];try{let t=new Set,e=i=>{new URLSearchParams(i).forEach((o,s)=>t.add(s));};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 yf(){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 vf(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 Ni(t){let{config:e,getRecentNetworkPaths:r,getUserId:n,getSessionId:i,onEvent:o}=t,s=e.throttleMs??lf,a=e.captureDomSummary!==false,u=e.userIdSource??"auto",c=new Map,p=null,h=null;async function m(){if(typeof window>"u")return;let _=mf(window.location.pathname,window.location.hash,e.routeTemplates),R=Date.now(),w=c.get(_)??0;if(R-w<s)return;c.set(_,R);let C=null;u==="auto"?C=n()??i():u==="session-only"&&(C=i());let T={route:_,page_title:typeof document<"u"&&(document.title||"").slice(0,300)||null,dom_summary:a?yf():null,testids:bf(),network_paths:r().slice(-50),query_param_keys:Ef(),user_id_hash:await vf(C),observed_at:new Date().toISOString()};o(T);}function v(){h||(h=setTimeout(()=>{h=null,m();},100));}function k(){if(typeof window>"u")return;let _=window.location.hash.startsWith("#/")?window.location.hash:"",R=window.location.pathname+window.location.search+_;R!==p&&(p=R,v());}if(typeof window>"u")return {destroy:()=>{},flushNow:()=>{}};let g=()=>k(),y=Fe({onPush:g,onReplace:g,onPop:g});return window.addEventListener("hashchange",g),v(),{destroy(){y(),window.removeEventListener("hashchange",g),h&&(clearTimeout(h),h=null),c.clear();},flushNow(){c.clear(),m();}}}var wf=3e4,qi=400,Sf=4,xf=2;function Du(t,e,r){let n=u=>u.timestamp,i=u=>u.type===xf,o=u=>u.type===Sf,s=Date.now()-e,a=0;for(let u=0;u<t.length;u++){let c=n(t[u]);if(typeof c=="number"&&c>=s)break;i(t[u])&&(a=o(t[u-1])?u-1:u);}if(t.length-a>r){for(let u=a+1;u<t.length;u++)if(i(t[u])&&t.length-u<=r){a=o(t[u-1])?u-1:u;break}}a>0&&t.splice(0,a);}function Pu(t){let e=[],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;e.push({type:"lite_click",timestamp:Date.now(),data:{tag:a,testId:u}}),e.length>qi&&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(s=>s.timestamp>=o)},destroy(){i(),e.length=0;}}}var Rf=['input[type="password"]',"[data-mushi-redact]"],kf="rrweb",Ue=null,Bu=false;function Ui(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 _f(t){if(Ue)return Ue;if(typeof t=="function")try{if(Ue=Ui(await t()),Ue)return Ue}catch{}if(Ue=Ui(globalThis.rrweb),Ue)return Ue;try{let e=globalThis.__MUSHI_RRWEB_SPECIFIER__||kf;return Ue=Ui(await import(e)),Ue}catch{return null}}async function $u(t){let e=t.maxDurationMs??wf;if(t.mode==="lite")return Pu(e);let r=await _f(t.loadRrweb);if(!r?.record)return Bu||(Bu=true,lt({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') }.")),Pu(e);let n=r.record,i=[],o=null,s=false,a=[...new Set([...Rf,...t.redactSelectors??[]])],u=()=>{o?.(),o=null,s=false;};return {start(){s||(s=true,o=n({emit(c){i.push(c),Du(i,e,qi);},maskAllInputs:true,maskTextSelector:"*",blockSelector:a.join(","),checkoutEveryNms:e,sampling:{mousemove:false,mouseInteraction:true,scroll:150,media:800}})??null);},stop:u,flush(){return Du(i,e,qi),[...i]},destroy(){u(),i.length=0;}}}yn();function Fu(){try{let t=globalThis;return t.Sentry?t.Sentry:void 0}catch{return}}function Cf(){try{return globalThis.__SENTRY_REPLAY__}catch{return}}function Tf(){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 ji(t,e={}){let r=Math.max(0,e.breadcrumbsLimit??30),n={},i=Fu();if(!i)return n;n.sdk=Tf();try{let a=i;if(typeof a.lastEventId=="function")n.eventId=a.lastEventId()??void 0;else {let c=i.getCurrentHub?.()?.getScope?.();n.eventId=c?.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[c,p]of Object.entries(a))(typeof p=="string"||typeof p=="number"||typeof p=="boolean")&&(u[c]=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(c=>{let p=c;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 c=u.spanContext?.();n.traceId=c?.traceId??u.traceId??void 0,n.spanId=c?.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?.()??Cf();n.replayId=u?.getReplayId?.()??void 0;}catch{}return n}function Wi(t,e={}){let r=Fu();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 Af=["/login","/logout","/signup","/sso/*","/auth/*"],If=/(?:^\s*at\s+(?:.*?\()?|@)([a-z][a-z0-9+.-]*:\/\/[^\s()]*?)(?::\d+){1,2}\)?\s*$/i;function Ki(t){if(!(typeof t!="string"||t.length===0))for(let e of t.split(`
|
|
97
|
-
`)){let r=If.exec(e);if(r)return r[1]}}function Hu(t,e={}){let r=[];if(e.rageClick!==false){let g=function(y){let _=Date.now();if(y.target===k){if(v.push(_),v=v.filter(R=>_-R<500),v.length>=3){let R=y.target;t.onTrigger("rage_click",{element:R.tagName,id:R.id,text:R.textContent?.slice(0,50)}),v=[];}}else k=y.target,v=[_];};let v=[],k=null;document.addEventListener("click",g,true),r.push(()=>document.removeEventListener("click",g,true));}if(e.longTask!==false&&typeof PerformanceObserver<"u")try{let v=new PerformanceObserver(k=>{for(let g of k.getEntries())g.duration>5e3&&t.onTrigger("long_task",{duration:Math.round(g.duration),startTime:Math.round(g.startTime)});});v.observe({entryTypes:["longtask"]}),r.push(()=>v.disconnect());}catch{}let n=Mf(e.apiCascade);if(n.enabled){let v=[],k=globalThis.fetch;globalThis.fetch=async function(...g){let[y,_]=g,R=gn(y),w=!!bn(y,_)||xr(R,{apiEndpoint:e.apiEndpoint,ignoreUrls:n.ignoreUrls});try{let C=await k.apply(this,g);return !w&&!C.ok&&C.status>=400&&Ou(v,t),C}catch(C){throw w||Ou(v,t),C}},r.push(()=>{globalThis.fetch=k;});}if((e.pageDwell===true||typeof e.pageDwell=="object"&&e.pageDwell!==null)&&typeof window<"u"){let R=function(f){return g.some(E=>E.endsWith("/*")?f.startsWith(E.slice(0,-2)):f===E||f.startsWith(E+"/"))},w=function(){let f=window.location?.pathname??"";R(f)||t.onTrigger("page_dwell",{thresholdMs:k,path:f});},C=function(){y&&clearTimeout(y);let f=window.location?.pathname??"";R(f)||(y=setTimeout(w,k));},T=function(){let f=window.location?.pathname??"";f!==_&&(_=f,C());};let v=typeof e.pageDwell=="object"?e.pageDwell??{}:{},k=v.thresholdMs||300*1e3,g=v.excludeRoutes!==void 0?v.excludeRoutes:Af,y=null,_=window.location?.pathname??"";C();let b=Fe({onPush:T,onReplace:T,onPop:T});r.push(()=>{y&&clearTimeout(y),b();});}if((e.firstSession===true||typeof e.firstSession=="object"&&e.firstSession!==null)&&typeof window<"u"){let v=typeof e.firstSession=="object"?e.firstSession??{}:{},k=v.delayMs??45*1e3,g=v.storageKey??(e.projectId?`mushi:${e.projectId}:firstSessionShown`:"mushi:firstSessionShown"),y=false;try{y=window.localStorage?.getItem(g)==="1";}catch{}if(!y){let _=setTimeout(()=>{try{window.localStorage?.setItem(g,"1");}catch{}t.onTrigger("first_session",{delayMs:k});},k);r.push(()=>clearTimeout(_));}}if(e.errorBoundary){let v=function(g){pr({message:g.message,filename:g.filename,ignoreErrors:e.ignoreErrors,denyUrls:e.denyUrls,allowUrls:e.allowUrls})||t.onTrigger("error_boundary",{message:g.message,filename:g.filename,lineno:g.lineno,colno:g.colno});},k=function(g){let y=g.reason instanceof Error?g.reason.message:String(g.reason);pr({message:y,filename:g.reason instanceof Error?Ki(g.reason.stack):void 0,ignoreErrors:e.ignoreErrors,denyUrls:e.denyUrls,allowUrls:e.allowUrls})||t.onTrigger("error_boundary",{message:y,type:"unhandled_rejection"});};window.addEventListener("error",v),window.addEventListener("unhandledrejection",k),r.push(()=>{window.removeEventListener("error",v),window.removeEventListener("unhandledrejection",k);});}return {destroy(){r.forEach(v=>v());}}}function Mf(t){return t===false?{enabled:false,ignoreUrls:[]}:t&&typeof t=="object"?{enabled:t.enabled!==false,ignoreUrls:t.ignoreUrls??[]}:{enabled:true,ignoreUrls:[]}}function Ou(t,e){let r=Date.now();t.push(r);let n=t.filter(i=>r-i<1e4);n.length>=3&&(e.onTrigger("api_cascade",{failureCount:n.length,windowMs:1e4}),t.length=0);}var Nu="mushi:lastDismiss",vn="mushi:consecDismiss",Vi="mushi:lastShown";function wn(t){try{return localStorage.getItem(t)}catch{return null}}function Sn(t,e){try{localStorage.setItem(t,e);}catch{}}function Uu(t={}){let e=t.maxProactivePerSession??2,r=t.dismissCooldownHours??24,n=t.suppressAfterDismissals??3,i=(t.reshowCooldownMinutes??30)*60*1e3,o=0,s=new Set;function a(h){let m=Date.now();if(parseInt(wn(vn)??"0",10)>=n)return false;let k=wn(Nu);if(k&&m-parseInt(k,10)<r*60*60*1e3)return false;if(i>0&&o===0){let g=wn(Vi);if(g&&m-parseInt(g,10)<i)return false}return o>=e||s.has(h)?false:(s.add(h),o++,Sn(Vi,String(m)),true)}function u(){Sn(Nu,String(Date.now()));let h=parseInt(wn(vn)??"0",10);Sn(vn,String(h+1));}function c(){Sn(vn,"0");}function p(){o=0,s.clear();try{localStorage.removeItem(Vi);}catch{}}return {shouldShow:a,recordDismissal:u,recordSubmission:c,reset:p}}var Qe="@mushi-mushi/web",we="1.39.1";function Gu(t,e){if(t.appVersion)return t.appVersion;let r=t.integrations?.vercel?.analyticsId;return r||e?.buildId}var qe=null,xn=class{constructor(){}static init(e={}){if(qe)return lt({scope:"mushi",level:"warn",format:"pretty"}).warn("Already initialized \u2014 call destroy() first to reinitialize"),qe;if(typeof document>"u"||typeof window>"u")return Xu();let r={...Gn(),...e};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?Xu():(qe=Of(r),qe)}static getInstance(){return qe}static destroy(){qe?.destroy(),qe=null;}static diagnose(){return qe?.diagnose()??Xi()}};function Of(t){os(t);let e=is(t),r=e.projectId,n=()=>re(r),i=e,o=t.debug??false?lt({scope:"mushi",level:"debug",format:"pretty"}):Yn,s=null,a=null,u=rs({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:()=>s,sdkPackage:Qe,sdkVersion:we}),c=null,p=false;function h(){if(!p){p=true,Ss({client:u,sdkVersion:we,reporterToken:re(e.projectId)??null,projectId:e.projectId,analytics:e.analytics});try{c=Fe({onPush:()=>ei(),onPop:()=>ei()});}catch{}}}let m=e.trackSessions,v=m==="on-demand"?Promise.resolve().then(()=>(ju(),qu)):null,k=v?.then(l=>l.readTabOptIn(e.projectId));function g(l){if(!(p||m===false)){if(!v){h();return}Promise.all([v,k]).then(([d,S])=>{if(p)return;d.journeyRecordingDecision({mode:m,tabOptIn:S===true,window:l,draw:l?d.deviceDraw(e.projectId):1,now:Date.now()})&&h();}).catch(()=>{});}}g(null);let y=ss(e.preFilter),_=ds(e.offline),R=Ps({maxBurst:10,refillRate:1,refillIntervalMs:5e3}),w=ii();As({client:u,projectId:e.projectId,sdkVersion:we,config:e.analytics,scrub:l=>w.scrub(l),getSessionId:Rt});function C(l){return l.map(d=>{let S={...d};if(typeof d.message=="string"&&(S.message=w.scrub(d.message)),d.data&&typeof d.data=="object"){let D={};for(let[I,W]of Object.entries(d.data))D[I]=typeof W=="string"?w.scrub(W):W;S.data=D;}return S})}function T(l){return l&&l.map(d=>({...d,message:w.scrub(d.message),...d.stack?{stack:w.scrub(d.stack)}:{}}))}function b(l){if(!l)return;let d={};for(let[S,D]of Object.entries(l))d[S]=typeof D=="string"?w.scrub(D):D;return d}let f=null,E=null,A=null,$=null,U=null,q=null,se=Hi(),Q=null,V=0,M,je=`mushi:tester-jwt:${e.projectId}`;function Le(){try{return typeof localStorage<"u"?localStorage.getItem(je):null}catch{return null}}function le(){try{typeof localStorage<"u"&&localStorage.removeItem(je);}catch{}}async function J(l){let d=await u.getTesterStatus(l);if(!d.ok||!d.data){le();return}let S=d.data;if(!S.is_tester||!S.tester_id){le();return}M.setTesterSession(l,{id:S.tester_id,public_handle:S.public_handle??null,display_name:S.display_name??null});let D=await u.getMyReputation(l);if(D.ok&&D.data){let I=D.data;I.reputation&&M.setTesterReputation(I.reputation);}}function ne(){if(i.capture?.console!==false?f??=Pi():(f?.destroy(),f=null),i.capture?.network!==false){let N={apiEndpoint:Yi(i),ignoreUrls:i.capture?.ignoreUrls,tracePropagation:i.capture?.tracePropagation,sessionId:Rt()};E?E.updateOptions(N):E=Di(N);}else E?.destroy(),E=null;if(i.capture?.performance!==false?A??=Fi():(A?.destroy(),A=null),i.capture?.screenshot!=="off"){let N={privacy:i.privacy,onFailed:K=>M.setScreenshotError(true,K)};i.capture?.screenshotProvider?$=null:$?$.updateOptions(N):$=$i(N);}else $=null;!$&&!i.capture?.screenshotProvider&&(x=null),M.setAllowScreenshotRemove(i.privacy?.allowUserRemoveScreenshot!==false),i.capture?.elementSelector!==false?U??=Oi(()=>{let N=i.privacy;return [zt,...N?.redactSelectors??["[data-mushi-redact]"],...N?.maskSelectors??[],...N?.blockSelectors??[]].join(",")},N=>w.scrub(N)):(U?.deactivate(),U=null,F=null),M.setCaptureAvailability({screenshot:(!!$||!!i.capture?.screenshotProvider)&&i.capture?.screenshot!=="off",element:!!U});let l=i.capture?.discoverInventory,d=l===true?{}:l&&typeof l=="object"?l:null;d!=null&&d.enabled!==false?(q?.destroy(),q=Ni({config:d,getRecentNetworkPaths:()=>E?E.getEntries().map(N=>{try{let K=new URL(N.url,typeof window<"u"?window.location.href:"http://localhost");return K.host&&typeof window<"u"&&K.host!==window.location.host?null:K.pathname}catch{return null}}).filter(N=>N!=null&&N.length>0&&N.length<200):[],getUserId:()=>z?.id??null,getSessionId:Rt,onEvent:N=>{u.postDiscoveryEvent({...N,sdk_version:we}).catch(K=>{o.debug("discovery emit failed",{err:String(K)});});}})):(q?.destroy(),q=null);let D=i.capture?.replay??"off",I=i.replaySampleRate??1,W=I>=1||Math.random()<I,ee=i.replaysOnErrorSampleRate??0,ie=!W&&ee>0&&Math.random()<ee;if((D==="rrweb"||D==="lite")&&(W||ie)){let N=++V;$u({mode:D,loadRrweb:e.capture?.rrweb,redactSelectors:i.privacy?.redactSelectors}).then(K=>{if(N!==V){K.destroy();return}Q?.destroy(),Q=K,Q.start();});}else V++,Q?.destroy(),Q=null;}let ce=new Map;function Z(l,d){ce.get(l)?.forEach(S=>S({type:l,data:d}));}let x=null,P=false,F=null,O=null,G=false,De=true,We=null,et=null,z=null,ge=null,xe={},Re=null,ke={},H=$s({max:50});H.add({category:"lifecycle",level:"info",message:"Mushi SDK init",data:{projectId:e.projectId,sdkVersion:we}});let Tt=null;Tt=Gf(H);let tt=false,rt=false,Gt=new Set,nt=tu(u);async function Rr(){let l=await nt.getUpdates(n()),d=l.ok?l.data??null:null;if(d)for(let S of Gt)try{S(d);}catch{}return d}function Zi(){M.refreshReporterInboxQuiet(),Gt.size&&Rr();}function kr(){We&&clearInterval(We),We=null,et&&typeof document<"u"&&document.removeEventListener("visibilitychange",et),et=null;}function Qi(){if(kr(),!De)return;let l=5*6e4,d=()=>{typeof document<"u"&&document.visibilityState==="hidden"||wi(r)&&Zi();};We=setInterval(d,l),typeof document<"u"&&(et=()=>{document.visibilityState==="visible"&&d();},document.addEventListener("visibilitychange",et)),d();}let Yt=null;function eo(){let l=i.notifications??e.notifications;M.setReporterChannels({email:!!Yt?.emailEnabled&&l?.email!==false,push:!!(Yt?.pushEnabled&&Yt.vapidPublicKey)&&!!l?.webPush,emailPrefill:l?.emailFromIdentity?z?.email??"":""});}let Xt=[];function el(){if(!wi(r))return;let l=globalThis.requestIdleCallback;if(l?l(()=>{M.preloadViews();},{timeout:8e3}):setTimeout(()=>{M.preloadViews();},3e3),e.notifications?.toast===false||!Qa(r))return;let d=async()=>{let D=await Rr(),I=D&&typeof D.unread_total=="number"&&Array.isArray(D.latest)?D:null;if(I&&!I.unread_total)return;await M.refreshReporterInboxQuiet(),(I?M.showUpdatesFeedToast(I,Xt):await M.showUpdatesToast(Xt))&&eu(r);},S=globalThis.requestIdleCallback;S?S(()=>{d();},{timeout:5e3}):setTimeout(()=>{d();},2e3);}async function tl(l){let d=re(r),S=await nt.markReportRead(l,d);if(S.ok)return S.data?.unread_total??null;let D=await u.listNotifications(d,{limit:50});if(!D.ok)return null;let I=(D.data?.notifications??[]).filter(W=>{let ee=W.payload??{};return !W.read_at&&(ee.reportId===l||W.report_id===l)});return await Promise.all(I.map(W=>u.markNotificationRead(String(W.id),d))),null}function to(l,d){if(!i.rewards?.enabled)return;let S={client:u,config:i.rewards,projectId:r,userId:l,traits:d,reporterToken:n()};fu(S),i.rewards.showInWidget!==false&&u.getMyPoints(l).then(D=>{if(!D.ok)return;let I=D.data;M.setRewardsState({tier:I.tier?{slug:I.tier.slug??"free",displayName:I.tier.display_name??"Free",pointsThreshold:I.tier.points_threshold??0}:null,nextTier:I.next_tier?{displayName:I.next_tier.display_name??"",pointsThreshold:I.next_tier.points_threshold??0}:null,totalPoints:I.total_points??0,pointsForReport:I.report_submit_pts??50});}).catch(()=>{});}async function Rn(){if(tt)return null;rt=false;let l=i.capture?.screenshotProvider;if(l){tt=true;try{let I=await l();if(I?.startsWith("data:image/"))return I;I&&o.warn("screenshotProvider must resolve to a data:image/ URL; ignoring",{prefix:I.slice(0,16)});}catch(I){o.warn("screenshotProvider threw, falling back to built-in capturer",{error:I instanceof Error?I.message:String(I)}),rt=I instanceof Error&&(I.name==="NotAllowedError"||I.name==="SecurityError"||/permission|denied/i.test(I.message));}finally{tt=false;}}if(!$)return null;tt=true;let d=M.getIsOpen();d&&M.hidePanel();let S=document.getElementById("mushi-mushi-widget"),D=S?.style.visibility??"";S&&(S.style.visibility="hidden"),await new Promise(I=>{requestAnimationFrame(()=>requestAnimationFrame(()=>I()));});try{return await $.take()}finally{tt=false,S&&(S.style.visibility=D),d&&M.showPanel();}}function ro(){let l=i.capture?.screenshot;return (!!$||!!i.capture?.screenshotProvider)&&(l==="auto"||l==="on-report")&&!x&&!P}let Jt=null,_e=0;function rl(){if(i.capture?.screenshot!=="auto"||!ro())return;o.debug("Auto-capturing screenshot on open");let l=_e,d=(async()=>{let S=await Rn().catch(()=>null);l!==_e||x||P||!S||(x=S,M.setScreenshotAttached(true),M.setScreenshotPreview(S));})();Jt=d,d.finally(()=>{Jt===d&&(Jt=null);});}async function nl(){if(Jt&&(await Jt,x))return true;if(!ro())return false;o.debug("Capturing screenshot for review before send",{mode:i.capture?.screenshot});let l=_e,d=await Rn().catch(()=>null);return !d||l!==_e?false:(x=d,M.setScreenshotAttached(true),M.setScreenshotPreview(d),true)}let kn=$t(r).then(l=>l.slice(0,12)).catch(()=>null);M=new ln(e.widget,{onWarning:l=>o.warn(l),onSubmit:async({category:l,userCategory:d,description:S,intent:D})=>{o.info("Report submitted",{category:l,userCategory:d,intent:D}),O&&Zt?.recordSubmission();let I=await ol(l,S,D,d);return fr(I)||(P=false),I},onBeforeSubmit:()=>nl(),onOpen:()=>{o.debug("Widget opened"),_e++,x=null,P=false,rl(),Q?.start(),Z("widget:opened");},onBrandFooterImpression:()=>{kn.then(l=>{Bt("loop_impression",{placement:"widget"},l?{reserved:{$ref:l}}:void 0);});},onBrandFooterClick:()=>{kn.then(l=>(Bt("loop_click",{placement:"widget"},l?{reserved:{$ref:l}}:void 0),Ls()));},onClose:()=>{o.debug("Widget closed"),O&&(Zt?.recordDismissal(),Z("proactive:dismissed",{type:O})),_e++,x=null,P=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"),M.setScreenshotError(true,"unsupported");return}if(tt)return;o.debug("Taking screenshot"),M.setScreenshotCapturing(true);let d=_e,S=null;try{S=await Rn();}catch(D){o.warn("Screenshot capture threw",{error:D instanceof Error?D.message:String(D)});}d===_e&&(x=S,M.setScreenshotAttached(x!==null),M.setScreenshotPreview(x),x===null&&M.setScreenshotError(true,rt?"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(()=>{}),M.setScreenshotCapturing(true);let d=document.getElementById("mushi-mushi-widget");d&&(d.style.visibility="hidden");let S=_e,D=i.privacy;Promise.resolve().then(()=>(Ku(),Wu)).then(I=>I.grabMaskedTabFrame(l,[zt,"[data-mushi-redact]",...D?.redactSelectors??[],...D?.maskSelectors??[],...D?.blockSelectors??[]]),I=>{throw l.then(W=>W.getTracks().forEach(ee=>ee.stop()),()=>{}),I}).then(I=>{S===_e&&(x=I,M.setScreenshotAttached(true),M.setScreenshotPreview(I));}).catch(I=>{o.warn("Tab capture failed",{error:I instanceof Error?I.name:String(I)}),M.setScreenshotError(true,I instanceof Error&&I.name==="NotAllowedError"?"permission":"error");}).finally(()=>{d&&(d.style.visibility="");});}:void 0,onScreenshotRemove:()=>{o.debug("Screenshot attachment removed"),x=null,P=true,M.setScreenshotAttached(false);},onScreenshotAnnotateRequest:async l=>{if(!x||l.childElementCount>0)return;let d=_e,S;try{let{createScreenshotAnnotation:ie}=await Promise.resolve().then(()=>(zu(),Vu));S=await ie(x,l);}catch(ie){o.warn("Screenshot annotation failed",{error:ie instanceof Error?ie.message:String(ie)});return}let D=document.createElement("div");D.className="mushi-annotate-toolbar";let I=ie=>{d===_e&&(x=S.getDataUrl(),M.setScreenshotAttached(true),M.setScreenshotPreview(x)),S.destroy(),D.remove();},W=[{id:"highlight",label:"\u270F\uFE0F Highlight"},{id:"blur",label:"\u{1F512} Blur"},{id:"arrow",label:"\u2197\uFE0F Arrow"}];for(let ie of W){let N=document.createElement("button");N.type="button",N.className="mushi-attach-btn",N.dataset.tool=ie.id,N.textContent=ie.label,N.addEventListener("click",()=>{S.setTool(ie.id),D.querySelectorAll("button[data-tool]").forEach(K=>K.classList.remove("active")),N.classList.add("active");}),D.appendChild(N);}D.querySelector('button[data-tool="highlight"]')?.classList.add("active");let ee=document.createElement("button");ee.type="button",ee.className="mushi-attach-btn",ee.textContent="\u2713 Done",ee.addEventListener("click",()=>I()),D.appendChild(ee),l.insertBefore(D,l.firstChild);},onElementSelectorRequest:async()=>{if(!U||i.capture?.elementSelector===false){o.warn("Element selector requested but it is disabled/unavailable"),M.setElementError(true);return}o.debug("Element selector activated"),M.setElementCapturing(true),M.hidePanel();try{let l=await U.activate();l?(F=l,M.setElementSelected(!0),o.debug("Element selected",{tagName:l.tagName,xpath:l.xpath})):M.setElementCapturing(!1);}catch(l){o.warn("Element selector threw",{error:l instanceof Error?l.message:String(l)}),M.setElementError(true);}finally{M.showPanel();}},async onReporterReportsRequest(){let l=await u.listReporterReports(re(r));if(!l.ok)throw new Error(l.error?.message??"Could not load reports");return Xt=l.data?.reports??[],Xt.length&&vi(r),Xt},onReporterMarkRead:l=>tl(l),async onReporterReportRequest(l){let d=await nt.getReport(l,re(r));return d.ok&&d.data?{report:d.data.report,timeline:d.data.timeline}:null},async onReporterEmailOptIn(l){let d=await nt.setPrefs(re(r),{email:l,channels:{email:true}});if(!d.ok)throw new Error(d.error?.code??"EMAIL_OPT_IN_FAILED")},async onReporterPushSubscribe(){let l=await Cn.subscribeReporterPush();if(!l.ok)throw new Error(l.reason)},async onReporterCommentsRequest(l){let d=await u.listReporterComments(l,re(r));if(!d.ok)throw new Error(d.error?.message??"Could not load thread");return d.data?.comments??[]},async onReporterReply(l,d){let S=await u.replyToReporterReport(l,re(r),d);if(!S.ok)throw new Error(S.error?.message??"Could not send reply")},async onReporterFeedback(l,d,S){let D=await u.replyToReporterReport(l,re(r),S??"",d);if(!D.ok)throw new Error(D.error?.message??"Could not send feedback");return D.data?.feedback??null},async onReporterReopen(l,d){let S=await u.reopenReporterReport(l,re(r),d);if(!S.ok)throw new Error(S.error?.message??"Could not reopen report");return S.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 d=await u.voteReporterFeatureBoard(l,re(r));if(!d.ok)throw new Error(d.error?.message??"Could not vote");return d.data??{voted:true,action:"added"}},onLeaderboardOpen(){M.setLeaderboard(null,true),gu(10).then(l=>{M.setLeaderboard(l,false);});},async onMushiSignIn(l){let d=await u.sendMagicLink(l);if(!d.ok)throw new Error(d.error?.message??"Could not send sign-in link");return {ok:true}},async onGlobalLeaderboardOpen(){M.setGlobalLeaderboard(null,true);try{let l=Le(),d=await u.getPublicLeaderboard(50),D=(d.ok?d.data?.leaderboard??[]:[]).map(I=>({tester_id:I.tester_id,rank:I.rank,public_handle:I.public_handle,display_name:I.display_name,points_30d:I.points_30d,total_points:I.total_points??0,badge:I.badge_slug}));if(M.setGlobalLeaderboard(D,!1),l){let I=await u.getMyReputation(l);if(I.ok&&I.data){let W=I.data;W.reputation&&M.setTesterReputation(W.reputation);}}}catch{M.setGlobalLeaderboard([],false);}},async onCrossAppReportsOpen(){let l=Le();if(!l){M.setCrossAppReports([],false);return}try{let d=await u.getCrossAppReports(l),S=d.ok?d.data?.reports??[]:[];M.setCrossAppReports(S,!1);}catch{M.setCrossAppReports([],false);}},onTesterSignOut(){le();},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,d){let S=await u.askAssistant({message:l,threadId:d,context:a});return S.ok?S.data??null:null}}),kn.then(l=>M.setBrandRef(l)),ne(),typeof document<"u"&&(document.readyState==="loading"?document.addEventListener("DOMContentLoaded",()=>M.mount()):M.mount());let no=Le();no&&J(no).catch(()=>le());let io=null,Zt=null,te=i.proactive;te&&(te.rageClick!==false||te.longTask!==false||te.apiCascade!==false||te.errorBoundary===true||te.pageDwell||te.firstSession)&&typeof document<"u"&&(Zt=Uu(te?.cooldown),io=Hu({onTrigger:(l,d)=>{if(typeof navigator<"u"&&!navigator.onLine){o.debug("Proactive trigger suppressed: offline",{type:l});return}if(!Zt.shouldShow(l)){o.debug("Proactive trigger suppressed by fatigue prevention",{type:l});return}o.info("Proactive trigger fired",{type:l,context:d}),O=l,Z("proactive:triggered",{type:l,context:d}),l==="first_session"?M.pulseTrigger?.():M.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:e.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})),_.startAutoSync(u),_.flush(u).then(l=>{l.sent>0&&o.info("Synced offline reports",{sent:l.sent});});function _n(l){if(G=true,De=l.reporterNotificationsEnabled!==false,Yt=l.enabled===false?null:l.reporter??null,eo(),l.enabled===false){i=e,Wf(t.projectId),ne(),M.updateConfig(i.widget),kr(),o.debug("Runtime SDK config disabled; using bootstrap config",{version:l.version});return}i=nu(i,l,e),ne(),l.widget&&M.updateConfig(i.widget),De?Qi():kr(),o.debug("Applied runtime SDK config",{version:l.version});}if(Hf(t)){let l=qf(t.projectId);l&&_n(l),u.getSdkConfig(m==="on-demand"?{fresh:true}:void 0).then(d=>{d.ok&&d.data?(jf(t.projectId,d.data),_n(d.data),d.data.enabled!==false&&g(d.data.journeys??null)):d.error&&o.debug("Runtime SDK config unavailable",d.error);}).catch(d=>{o.debug("Runtime SDK config fetch failed",{error:d instanceof Error?d.message:String(d)});});}else o.debug("Runtime SDK config disabled via runtimeConfig:false; using static bootstrap config");il(),Qi(),el(),o.info("Initialized",{projectId:t.projectId});async function il(){if(i.widget?.outdatedBanner==="off")return;let l=Kf(Qe);l&&oo(l);let d=await u.getLatestSdkVersion(Qe);!d.ok||!d.data||(Vf(Qe,d.data),oo(d.data));}function oo(l){let d=l.latest,S=!!(d&&zf(we,d));if(!S&&!l.deprecated)return;let D=l.deprecationMessage??(S?`Update ${Qe} to ${d}.`:null);o.warn("Mushi SDK is outdated",{package:Qe,current:we,latest:d,deprecated:l.deprecated,message:D}),fa(i.widget?.outdatedBanner,!!i.debug,typeof location>"u"?void 0:location)&&M.setSdkFreshness({latest:d,current:we,deprecated:l.deprecated,message:D});}async function ol(l,d,S,D){let I=j=>({reportId:null,queuedOffline:false,failureKind:j}),W=y.check(d);if(!W.passed)return o.info("Report blocked by pre-filter",{reason:W.reason}),I("blocked");let ee=t.preFilter?.wasmClassifier;if(ee)try{let j=await ee.classify({description:d,category:l,url:typeof location<"u"?location.href:void 0,hasScreenshot:x!==null,hasSelectedElement:F!==null,hasNetworkErrors:E?.getEntries()?.some(be=>be.status>=400||!!be.error)??!1,hasConsoleErrors:f?.getEntries()?.some(be=>be.level==="error")??!1,proactiveTrigger:O??void 0});if(j.verdict==="block")return o.info("Report blocked by on-device classifier",{modelId:j.modelId,confidence:j.confidence,reason:j.reason}),I("blocked");o.debug("On-device classifier verdict",{...j});}catch(j){o.warn("On-device classifier threw \u2014 falling through to server",{error:j instanceof Error?j.message:String(j)});}if(O!==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:O}),I("blocked");if(!R.tryConsume())return o.warn("Report throttled \u2014 rate limit exceeded"),I("throttled");let N=w.scrub(y.truncate(d)),K=t.sentry?ji(t.sentry):void 0,Ke=await ps().catch(()=>null),Ve=i.capture?.console===false?void 0:T(f?.getEntries()),_r=i.capture?.network===false?void 0:E?.getEntries(),uo=C(H.getAll()),lo=b(Object.keys(ke).length>0?{...ke}:void 0),co=K?{...K,...K.breadcrumbs?{breadcrumbs:C(K.breadcrumbs)}:{},...K.tags?{tags:b(K.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=Xn(),sl=await va(Re),Pe={id:Jn(),projectId:t.projectId,category:l,...D?{userCategory:D}:{},description:N,userIntent:S,environment:ho,consoleLogs:Ve,networkLogs:_r,performanceMetrics:i.capture?.performance===false?void 0:A?.getMetrics(),timeline:se.getEntries({consoleLogs:Ve,networkLogs:_r}),screenshotDataUrl:po??void 0,selectedElement:F??void 0,...Q?{replayEvents:Q.flush()}:{},metadata:{...xe,...sl??{},...z?{user:z}:{},...K?.release?{sentryRelease:K.release}:{}},sessionId:Rt(),reporterToken:re(r),...Ke?{fingerprintHash:Ke}:{},appVersion:Gu(i,ho),sdkPackage:Qe,sdkVersion:we,proactiveTrigger:O??void 0,...uo.length>0?{breadcrumbs:uo}:{},...lo?{tags:lo}:{},...co?{sentryContext:co}:{},sentryEventId:K?.eventId,sentryReplayId:K?.replayId,createdAt:new Date().toISOString()};if(H.add({category:"lifecycle",level:"info",message:`Mushi report submitting (${l})`,data:{reportId:Pe.id,category:l}}),t.integrations?.custom){let j={addMetadata(be,Tn){Pe.metadata[be]=Tn;},setCategory(be){Pe.category=be;},setDescription(be){Pe.description=be;}};t.integrations.custom(j);}let Y=Pe,fo=t.beforeSend??t.beforeSendFeedback;if(fo)try{let j=await Promise.race([Promise.resolve(fo(Pe)),new Promise(be=>setTimeout(()=>be(Pe),2e3))]);if(j===null)return o.info("Report dropped by beforeSend hook",{reportId:Pe.id}),I("blocked");Y=j;}catch(j){o.warn("beforeSend hook threw \u2014 sending unmodified report",{error:j instanceof Error?j.message:String(j)});}if(Z("report:submitted",{reportId:Y.id}),typeof navigator<"u"&&!navigator.onLine)return await _.enqueue(Y),o.info("Offline \u2014 report queued",{reportId:Y.id}),Z("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}),Cr=true,Y={...Y,screenshotDataUrl:void 0},X=await u.submitReport(Y))),X.ok){if(o.info("Report sent",{reportId:X.data?.reportId}),Z("report:sent",{reportId:X.data?.reportId}),vi(r),Zi(),X.data?.cursorAgentId){let j=X.data;Z("report:dispatched",{reportId:j.reportId,agentId:j.cursorAgentId,fixId:j.fixId});}H.add({category:"lifecycle",level:"info",message:`Mushi report sent (${X.data?.reportId??Pe.id})`}),Vt({action:"report_submit",metadata:{category:l,reportId:X.data?.reportId??Pe.id}});try{t.sentry&&X.data?.reportId&&Wi(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}),Z("report:failed",{reportId:Y.id,error:X.error}),H.add({category:"lifecycle",level:"error",message:`Mushi report dropped \u2014 payload too large (${Y.id})`}),x=null,F=null,O=null,{reportId:null,queuedOffline:false,failureKind:"permanent",screenshotDropped:Cr};{let j=X.error?.code??"",be=j==="HTTP_429"||j.includes("RATE_LIMIT"),Tn=j==="HTTP_401"||j.includes("UNAUTHORIZED")||j.includes("INVALID_API_KEY")||j.includes("MISSING_API_KEY"),al=j==="HTTP_403"||j.includes("QUOTA")||j.includes("FORBIDDEN")||j==="feature_not_in_plan";if(Tn||al)return o.warn("Report rejected \u2014 credentials/quota",{reportId:Y.id,error:X.error}),Z("report:failed",{reportId:Y.id,error:X.error}),x=null,F=null,O=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 _.enqueue(Y),Z("report:failed",{reportId:Y.id,error:X.error}),x=null,F=null,O=null,{reportId:null,queuedOffline:true,failureKind:"rate_limited"};o.warn("Report failed, queuing for retry",{reportId:Y.id,error:X.error}),await _.enqueue(Y),Z("report:failed",{reportId:Y.id,error:X.error}),H.add({category:"lifecycle",level:"warning",message:`Mushi report queued for retry (${Y.id})`});}}return x=null,F=null,O=null,X?.ok?{reportId:X.data?.reportId??Pe.id,queuedOffline:false,screenshotDropped:Cr}:{reportId:null,queuedOffline:true,failureKind:"retrying"}}let Cn={report(l){M.open(l);},on(l,d){return ce.has(l)||ce.set(l,new Set),ce.get(l).add(d),()=>ce.get(l)?.delete(d)},setUser(l){z=l;},setMetadata(l,d){xe[l]=d;},setDiagnosticsProvider(l){Re=l;},setScreen(l){se.setScreen(l);},isOpen(){return M.getIsOpen()},open(){M.open();},openWith(l){M.open({category:l});},show(){M.showTrigger();},hide(){M.hideTrigger();},attachTo(l,d){return M.attachTo(l,d)},setTrigger(l){M.setTrigger(l);},openReporter(){M.openReporter();},close(){M.close();},updateConfig(l){_n(l),l.enabled!==false&&g(l.journeys??null);},diagnose(){return Nf({apiEndpoint:Yi(i),widgetMounted:M.getIsMounted(),runtimeConfigLoaded:G,captureScreenshotAvailable:$!==null,captureNetworkIntercepting:E!==null,widgetDiagnostics:M.getWidgetDiagnostics()})},destroy(){io?.destroy(),Zt?.reset(),Ds(),M.destroy(),f?.destroy(),E?.destroy(),A?.destroy(),U?.deactivate(),bu(),Tt?.(),Tt=null,q?.destroy(),q=null,se.destroy(),su(),Q?.destroy(),Q=null,_.stopAutoSync(),kr(),c?.(),c=null,xs(),H.clear(),ce.clear(),qe=null,o.debug("Destroyed");},async captureEvent(l){if(!R.tryConsume())return o.warn("captureEvent throttled \u2014 rate limit exceeded"),null;let d=w.scrub(y.truncate(l.description)),S=l.category??"bug",D=t.sentry?ji(t.sentry):void 0,I=C(H.getAll()),W=b(Object.keys(ke).length===0&&!l.tags?void 0:{...ke,...l.tags??{}}),ee=D?{...D,...D.breadcrumbs?{breadcrumbs:C(D.breadcrumbs)}:{},...D.tags?{tags:b(D.tags)}:{}}:void 0,ie=Xn(),N={id:Jn(),projectId:t.projectId,category:S,description:d,environment:ie,timeline:se.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"}},...I.length>0?{breadcrumbs:I}:{},...W&&Object.keys(W).length>0?{tags:W}:{},...ee?{sentryContext:ee}:{},sessionId:Rt(),reporterToken:re(r),appVersion:Gu(i,ie),sdkPackage:Qe,sdkVersion:we,sentryEventId:D?.eventId,sentryReplayId:D?.replayId,createdAt:new Date().toISOString()},K=N;if(i.beforeSendFeedback)try{let Ve=await Promise.race([Promise.resolve(i.beforeSendFeedback(N)),new Promise(_r=>setTimeout(()=>_r(N),2e3))]);if(Ve===null)return o.info("captureEvent dropped by beforeSendFeedback hook",{reportId:N.id}),null;K=Ve;}catch(Ve){o.warn("captureEvent beforeSendFeedback threw \u2014 sending unmodified report",{error:Ve instanceof Error?Ve.message:String(Ve)});}if(Z("report:submitted",{reportId:K.id}),typeof navigator<"u"&&!navigator.onLine)return await _.enqueue(K),Z("report:queued",{reportId:K.id}),null;let Ke=await u.submitReport(K);if(Ke.ok){Z("report:sent",{reportId:Ke.data?.reportId});try{t.sentry&&Ke.data?.reportId&&Wi(Ke.data.reportId);}catch{}return Ke.data?.reportId??null}return await _.enqueue(K),Z("report:failed",{reportId:K.id,error:Ke.error}),null},async captureException(l,d){let S=Fs(l),D=typeof d?.metadata?.filename=="string"?d.metadata.filename:Ki(S.stack);if(pr({message:S.message,filename:D,ignoreErrors:i.ignoreErrors,denyUrls:i.denyUrls,allowUrls:i.allowUrls}))return null;H.add({category:"lifecycle",level:"error",message:`Mushi.captureException(${S.name}): ${S.message}`,...S.stack?{data:{stack:S.stack.slice(0,500)}}:{}});let I=d?.description?.trim()||`${S.name}: ${S.message}`||"Uncaught exception";return Cn.captureEvent({description:I,category:d?.category??"bug",severity:d?.severity??"high",...d?.component?{component:d.component}:{},...d?.tags?{tags:d.tags}:{},source:d?.source??"captureException",error:{name:S.name,message:S.message,...S.stack?{stack:S.stack}:{}},metadata:{...d?.metadata??{},...S.cause?{cause:S.cause}:{}}})},identify(l,d){let S=`${l}::${d?JSON.stringify(d):""}`;if(S!==ge){if(ge=S,z={id:l,...d?.email?{email:d.email}:{},...d?.name?{name:d.name}:{}},M.setIdentifiedUser(z.name||z.email?{name:z.name,email:z.email}:null),eo(),d)for(let[D,I]of Object.entries(d))D!=="email"&&D!=="name"&&(xe[`user.${D}`]=I);H.add({category:"lifecycle",level:"info",message:`Mushi.identify(${l})`}),Ms(l,d??null),to(l,d?{email:d.email,name:d.name,provider:d.provider}:void 0);}},identifyWithToken(l){if(s=l&&typeof l=="string"?l:null,s){let d=Vs(s);if(d?.sub){if(z?.id===d.sub){H.add({category:"lifecycle",level:"info",message:"Mushi.identifyWithToken() refreshed"});return}let S=d.sub;$t(S).then(D=>{z?.id===S&&ti(D);}).catch(()=>{}),z={id:d.sub,...d.email?{email:d.email}:{},...d.name?{name:d.name}:{}},M.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,ge=null,ti(null),M.setIdentifiedUser(null),H.add({category:"lifecycle",level:"info",message:"Mushi.identifyWithToken(null)"});},publishPageContext(l){a=l&&l.route?l:null;},openAssistant(){M.openAssistantTab();},addBreadcrumb(l){H.add(l);},getBreadcrumbs(){return H.getAll()},setTag(l,d){typeof l!="string"||l.length===0||(ke[l]=d);},setTags(l){if(!(!l||typeof l!="object"))for(let[d,S]of Object.entries(l))typeof d=="string"&&d.length>0&&(ke[d]=S);},clearTag(l){if(typeof l=="string"&&l.length>0){delete ke[l];return}for(let d of Object.keys(ke))delete ke[d];},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?mu(z.id):null},recordActivity(l,d){i.rewards?.enabled&&Vt({action:l,metadata:d});},track(l,d){return Bt(l,d)},setConsent(l){Is(l);},getAnonymousId(){return Ts()},pulseTrigger(){M.pulseTrigger?.();},async listMyReports(){let l=await u.listReporterReports(re(r));return l.ok?l.data?.reports??[]:[]},async listMyComments(l){let d=await u.listReporterComments(l,re(r));return d.ok?d.data?.comments??[]:[]},async replyToReport(l,d){let S=await u.replyToReporterReport(l,re(r),d);return S.ok?S.data?.comment??null:null},async submitFeedbackSignal(l,d,S){let D=await u.replyToReporterReport(l,re(r),S??"",d);return D.ok?D.data?.feedback??null:null},async reopenReport(l,d){let S=await u.reopenReporterReport(l,re(r),d);return S.ok?S.data?.outcome??null:null},openMyReports(){M.recorderOpenMyReports();},getReporterUpdates:Rr,async markReportRead(l){let d=await nt.markReportRead(l,n());return d.ok?d.data?.unread_total??0:null},onReporterUpdate(l){return Gt.add(l),Rr(),()=>{Gt.delete(l);}},async getNotificationPrefs(){let l=await nt.getPrefs(n());return l.ok?l.data??null:null},setNotificationPrefs:l=>nt.setPrefs(n(),l),async subscribeReporterPush(){let l=i.notifications?.webPush,d=Yt?.vapidPublicKey??null;if(l&&!d){let S=await u.getSdkConfig();d=S.ok?S.data?.reporter?.vapidPublicKey??null:null;}return ru(nt,n(),l?l.serviceWorkerPath:null,d)},async getHallOfFame(l=20){let d=await u.getHallOfFame(l);return d.ok?d.data?.data??[]:[]}};if(typeof globalThis<"u"&&(e.debug??false)&&iu(M),typeof window<"u"&&typeof localStorage<"u"){let l="mushi:last-run",d=null;try{let S=localStorage.getItem(l);d=S===null?null:S==="unfinished",localStorage.setItem(l,"unfinished");}catch{d=null;}try{window.addEventListener("pagehide",()=>{try{localStorage.setItem(l,"clean");}catch{}es(),ts();});}catch{}if(typeof e.onCrashedLastRun=="function")try{e.onCrashedLastRun(d);}catch(S){o.warn("onCrashedLastRun hook threw",{error:S instanceof Error?S.message:String(S)});}}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,d)=>{let S=d instanceof Error?d.message:String(d);o.debug(`Mushi.${l}() failed (swallowed)`,{error:S});try{H.add({category:"custom",level:"warning",message:`mushi.${l}() threw`,data:{error:S}});}catch{}};return (l=>new Proxy(l,{get(d,S,D){let I=Reflect.get(d,S,D);if(typeof I!="function")return I;let W=String(S),ee=()=>W==="diagnose"?Xi():W in so?so[W]:void 0;return (...ie)=>{try{let N=I.apply(d,ie);return N&&typeof N.then=="function"?N.catch(K=>(ao(W,K),ee())):N}catch(N){return ao(W,N),ee()}}}}))(Cn)}function Yi(t){return t.apiEndpoint??or}function Hf(t){return t.runtimeConfig!==false}async function Nf(t){let e=await Uf(t.apiEndpoint);return {apiEndpointReachable:e.reachable,cspAllowsEndpoint:e.cspAllowed,widgetMounted:t.widgetMounted,shadowDomAvailable:typeof HTMLElement<"u"&&typeof HTMLElement.prototype.attachShadow=="function",dialogSupported:typeof HTMLDialogElement<"u",runtimeConfigLoaded:t.runtimeConfigLoaded,captureScreenshotAvailable:t.captureScreenshotAvailable,captureNetworkIntercepting:t.captureNetworkIntercepting,sdkVersion:we,widgetHostPointerSafe:t.widgetDiagnostics?.widgetHostPointerSafe??false,widgetHostBounds:t.widgetDiagnostics?.widgetHostBounds??null,widgetSuppressed:t.widgetDiagnostics?.widgetSuppressed??false,bannerRendered:t.widgetDiagnostics?.bannerRendered??false,warnings:t.widgetDiagnostics?.warnings??[]}}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 Uf(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}:{},[dr]:"diagnose"})).ok,cspAllowed:!0}}catch{return {reachable:false,cspAllowed:false}}finally{r&&clearTimeout(r);}}function Ji(t){return `mushi:sdk-config:${t}`}function Zu(t){return `mushi:sdk-version:${t}`}function qf(t){if(typeof localStorage>"u")return null;try{let e=localStorage.getItem(Ji(t));return e?JSON.parse(e).config??null:null}catch{return null}}function jf(t,e){if(!(typeof localStorage>"u"))try{localStorage.setItem(Ji(t),JSON.stringify({cachedAt:Date.now(),config:e}));}catch{}}function Wf(t){if(!(typeof localStorage>"u"))try{localStorage.removeItem(Ji(t));}catch{}}function Kf(t){if(typeof localStorage>"u")return null;try{let e=localStorage.getItem(Zu(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 Vf(t,e){if(!(typeof localStorage>"u"))try{localStorage.setItem(Zu(t),JSON.stringify({cachedAt:Date.now(),data:e}));}catch{}}function zf(t,e){let r=Yu(t),n=Yu(e);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 Yu(t){return t.split(/[.-]/).map(e=>Number.parseInt(e,10)).filter(e=>Number.isFinite(e))}function Xu(){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 Gf(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=Fe({onPush:()=>r("pushState"),onReplace:()=>r("replaceState"),onPop:()=>r("popstate")});e.push(n);}catch{}try{let r=console.error,n=console.warn,i=function(...s){try{t.add({category:"console",level:"error",message:s.map(Ju).join(" ")});}catch{}return r.apply(this,s)},o=function(...s){try{t.add({category:"console",level:"warning",message:s.map(Ju).join(" ")});}catch{}return n.apply(this,s)};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,s=0;for(;o&&s<10;){let a=o.getAttribute("data-testid");if(a){let u=(o.textContent??"").trim().slice(0,80);t.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}),e.push(()=>document.removeEventListener("click",r,!0));}catch{}return ()=>{for(let r of e)try{r();}catch{}}}function Ju(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}]`}}var Yf=["auto","banner","edge-tab","attach","manual","hidden"],Xf=["auto","light","dark","inherit"],Jf=["bottom-right","bottom-left","top-right","top-left"],Zf=["neon","brand","subtle"],Qf=["top","bottom"],em=/^(#[\da-f]{3}|#[\da-f]{6}|(rgba?|hsla?|oklch)\([\d\s.,%/+-]*(deg|turn|rad)?[\d\s.,%/+-]*\))$/i,tm="#rgb, #rrggbb, rgb(), hsl() or oklch()";function rm(t){try{lt({scope:"mushi",level:"warn",format:"pretty"}).warn(t);}catch{}}function Qu(t,e=rm){let r=t.project?.trim(),n=t.key?.trim();if(!r||!n)return null;let i=f=>{let E=t[f]?.trim();return E||void 0},o=f=>`data-${f.replace(/[A-Z]/g,E=>`-${E.toLowerCase()}`)}`,s=(f,E,A)=>{e(`Ignored ${o(f)}="${E.slice(0,60)}". Use ${A}.`);},a=(f,E)=>{let A=i(f);if(A===void 0)return;let $=A.toLowerCase();return E.includes($)?$:s(f,A,`one of: ${E.join(", ")}`)},u=(f,E=[])=>{let A=i(f);if(A!==void 0)return em.test(A)||E.includes(A.toLowerCase())?A:s(f,A,`a colour: ${[tm,...E].join(", ")}`)},c={},p=a("trigger",Yf);p&&(c.trigger=p);let h=a("theme",Xf);h&&(c.theme=h);let m=a("position",Jf);m&&(c.position=m);let v=i("triggerText");v&&(c.triggerText=v);let k=u("accent");k&&(c.accent=k);let g=u("accentText",["black","white"]);g&&(c.accentText=g);let y=i("locale");if(y){let f=Ia(),E=y.toLowerCase();E==="auto"||f.includes(E.split(/[-_]/)[0])?c.locale=E==="auto"?"auto":y:s("locale",y,`one of: auto, ${f.join(", ")}`);}let _=i("hideOnRoutes");if(_){let f=_.split(",").map(E=>E.trim()).filter(Boolean);f.length?c.hideOnRoutes=f:s("hideOnRoutes",_,"comma-separated paths such as /admin/*, /checkout");}let R=a("bannerVariant",Zf),w=a("bannerPosition",Qf);(R||w)&&(c.bannerConfig={...R?{variant:R}:{},...w?{position:w}:{}});let C={projectId:r,apiKey:n},T=i("endpoint");T&&(/^https?:\/\/[^\s/]+/i.test(T)?C.apiEndpoint=T:s("endpoint",T,"a full http:// or https:// address"));let b=i("debug");return b==="true"?C.debug=true:b!==void 0&&b!=="false"&&s("debug",b,'"true" or "false"'),Object.keys(c).length>0&&(C.widget=c),C}function nm(){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 im(){if(typeof document>"u"||typeof window>"u")return;let t=window;if(t.__mushiLoaderInit)return;let e=nm();if(!e)return;let r=Qu(e.dataset);if(r){t.__mushiLoaderInit=true;try{xn.init(r);}catch{}}}im();
|
|
96
|
+
`,document.body.appendChild(f),f}function w(f,E){let A=document.elementsFromPoint(f,E),$=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 U=0;for(;$?.shadowRoot&&U<20;){let q=$.shadowRoot.elementFromPoint(f,E);if(!q||q===$)break;$=q,U++;}return $}function x(f){if(!n)return;let E=f.getBoundingClientRect();n.style.left=`${E.left}px`,n.style.top=`${E.top}px`,n.style.width=`${E.width}px`,n.style.height=`${E.height}px`,n.style.display="block";}function g(f){let E=w(f.clientX,f.clientY);if(!E){o=null,n&&(n.style.display="none");return}o=E,x(E);}function y(f){f.preventDefault(),f.stopPropagation();}function _(f){f.preventDefault(),f.stopPropagation();let E=w(f.clientX,f.clientY);E&&C(p(E));}function k(f){f.key==="Escape"&&C(null);}function v(){o?.isConnected&&x(o);}function C(f){b(),s?.(f),s=null;}function T(){return r&&b(),new Promise(f=>{s=f,r=true,n=h(),i=m(),i.addEventListener("mousemove",g),i.addEventListener("click",_),i.addEventListener("pointerdown",y),i.addEventListener("mousedown",y),i.addEventListener("mouseup",y),document.addEventListener("keydown",k,true),window.addEventListener("scroll",v,{capture:true,passive:true});})}function b(){r&&(r=false,o=null,document.removeEventListener("keydown",k,true),window.removeEventListener("scroll",v,{capture:true}),i&&(i.remove(),i=null),n&&(n.remove(),n=null));}return {activate:T,deactivate:b,isActive:()=>r}}var Mu=120;function Hi(){let t=[],e=()=>n("hashchange");n("initial");function r(u){t.push(u),t.length>Mu&&t.shift();}function n(u){typeof location>"u"||r({ts:Date.now(),kind:"route",payload:{source:u,route:hr(`${location.pathname}${location.search}${location.hash}`),href:hr(location.href)}});}function i(u){let c=u.target instanceof Element?u.target:null;if(!c)return;let p=c.closest('button,a,[role="button"],input,textarea,select,[data-mushi-track]')??c;r({ts:Date.now(),kind:"click",payload:{tag:p.tagName.toLowerCase(),id:p.id||void 0,text:uf(p)}});}let o=Fe({onPush:()=>n("pushState"),onReplace:()=>n("replaceState"),onPop:()=>n("popstate")}),s=typeof window<"u",a=typeof document<"u";return s&&window.addEventListener("hashchange",e),a&&document.addEventListener("click",i,true),{setScreen(u){r({ts:Date.now(),kind:"screen",payload:u});},getEntries(u={}){return [...t,...(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(-Mu)},clear(){t.length=0;},destroy(){o(),s&&window.removeEventListener("hashchange",e),a&&document.removeEventListener("click",i,true);}}}function uf(t){let e=(t.textContent??"").replace(/\s+/g," ").trim();return e?e.slice(0,80):void 0}var lf=6e4,cf=/^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i,df=/^[0-9a-f]{20,}$/i,pf=/^\d+$/,hf=/^[a-z0-9]{16,}$/i;function ff(t){return t.length===0?t:cf.test(t)||df.test(t)||pf.test(t)||hf.test(t)&&/\d/.test(t)?"[id]":t}function mf(t,e,r){if(e.startsWith("#/")){let n=e.slice(1),i=n.indexOf("?"),o=i===-1?n:n.slice(0,i),s=r?.map(a=>a.startsWith("/#/")?a.slice(2):a);return "/#"+Lu(o,s)}return Lu(t,r)}function Lu(t,e){let r=t.length>1&&t.endsWith("/")?t.slice(0,-1):t;if(e?.length){let n=gf(r,e);if(n)return n}return "/"+r.split("/").filter(n=>n.length>0).map(ff).join("/")}function gf(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(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],c=r[a];if(!(u.startsWith("[")&&u.endsWith("]"))&&!u.startsWith(":")&&u!==c){s=false;break}}if(s)return "/"+o.join("/")}return null}function bf(){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 Ef(){if(typeof window>"u")return [];try{let t=new Set,e=i=>{new URLSearchParams(i).forEach((o,s)=>t.add(s));};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 yf(){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 vf(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 Ni(t){let{config:e,getRecentNetworkPaths:r,getUserId:n,getSessionId:i,onEvent:o}=t,s=e.throttleMs??lf,a=e.captureDomSummary!==false,u=e.userIdSource??"auto",c=new Map,p=null,h=null;async function m(){if(typeof window>"u")return;let _=mf(window.location.pathname,window.location.hash,e.routeTemplates),k=Date.now(),v=c.get(_)??0;if(k-v<s)return;c.set(_,k);let C=null;u==="auto"?C=n()??i():u==="session-only"&&(C=i());let T={route:_,page_title:typeof document<"u"&&(document.title||"").slice(0,300)||null,dom_summary:a?yf():null,testids:bf(),network_paths:r().slice(-50),query_param_keys:Ef(),user_id_hash:await vf(C),observed_at:new Date().toISOString()};o(T);}function w(){h||(h=setTimeout(()=>{h=null,m();},100));}function x(){if(typeof window>"u")return;let _=window.location.hash.startsWith("#/")?window.location.hash:"",k=window.location.pathname+window.location.search+_;k!==p&&(p=k,w());}if(typeof window>"u")return {destroy:()=>{},flushNow:()=>{}};let g=()=>x(),y=Fe({onPush:g,onReplace:g,onPop:g});return window.addEventListener("hashchange",g),w(),{destroy(){y(),window.removeEventListener("hashchange",g),h&&(clearTimeout(h),h=null),c.clear();},flushNow(){c.clear(),m();}}}var wf=3e4,qi=400,Sf=4,xf=2;function Du(t,e,r){let n=u=>u.timestamp,i=u=>u.type===xf,o=u=>u.type===Sf,s=Date.now()-e,a=0;for(let u=0;u<t.length;u++){let c=n(t[u]);if(typeof c=="number"&&c>=s)break;i(t[u])&&(a=o(t[u-1])?u-1:u);}if(t.length-a>r){for(let u=a+1;u<t.length;u++)if(i(t[u])&&t.length-u<=r){a=o(t[u-1])?u-1:u;break}}a>0&&t.splice(0,a);}function Pu(t){let e=[],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;e.push({type:"lite_click",timestamp:Date.now(),data:{tag:a,testId:u}}),e.length>qi&&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(s=>s.timestamp>=o)},destroy(){i(),e.length=0;}}}var Rf=['input[type="password"]',"[data-mushi-redact]"],kf="rrweb",Ue=null,Bu=false;function Ui(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 _f(t){if(Ue)return Ue;if(typeof t=="function")try{if(Ue=Ui(await t()),Ue)return Ue}catch{}if(Ue=Ui(globalThis.rrweb),Ue)return Ue;try{let e=globalThis.__MUSHI_RRWEB_SPECIFIER__||kf;return Ue=Ui(await import(e)),Ue}catch{return null}}async function $u(t){let e=t.maxDurationMs??wf;if(t.mode==="lite")return Pu(e);let r=await _f(t.loadRrweb);if(!r?.record)return Bu||(Bu=true,lt({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') }.")),Pu(e);let n=r.record,i=[],o=null,s=false,a=[...new Set([...Rf,...t.redactSelectors??[]])],u=()=>{o?.(),o=null,s=false;};return {start(){s||(s=true,o=n({emit(c){i.push(c),Du(i,e,qi);},maskAllInputs:true,maskTextSelector:"*",blockSelector:a.join(","),checkoutEveryNms:e,sampling:{mousemove:false,mouseInteraction:true,scroll:150,media:800}})??null);},stop:u,flush(){return Du(i,e,qi),[...i]},destroy(){u(),i.length=0;}}}yn();function Fu(){try{let t=globalThis;return t.Sentry?t.Sentry:void 0}catch{return}}function Cf(){try{return globalThis.__SENTRY_REPLAY__}catch{return}}function Tf(){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 ji(t,e={}){let r=Math.max(0,e.breadcrumbsLimit??30),n={},i=Fu();if(!i)return n;n.sdk=Tf();try{let a=i;if(typeof a.lastEventId=="function")n.eventId=a.lastEventId()??void 0;else {let c=i.getCurrentHub?.()?.getScope?.();n.eventId=c?.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[c,p]of Object.entries(a))(typeof p=="string"||typeof p=="number"||typeof p=="boolean")&&(u[c]=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(c=>{let p=c;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 c=u.spanContext?.();n.traceId=c?.traceId??u.traceId??void 0,n.spanId=c?.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?.()??Cf();n.replayId=u?.getReplayId?.()??void 0;}catch{}return n}function Wi(t,e={}){let r=Fu();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 Af=["/login","/logout","/signup","/sso/*","/auth/*"],If=/(?:^\s*at\s+(?:.*?\()?|@)([a-z][a-z0-9+.-]*:\/\/[^\s()]*?)(?::\d+){1,2}\)?\s*$/i;function Ki(t){if(!(typeof t!="string"||t.length===0))for(let e of t.split(`
|
|
97
|
+
`)){let r=If.exec(e);if(r)return r[1]}}function Hu(t,e={}){let r=[];if(e.rageClick!==false){let g=function(y){let _=Date.now();if(y.target===x){if(w.push(_),w=w.filter(k=>_-k<500),w.length>=3){let k=y.target;t.onTrigger("rage_click",{element:k.tagName,id:k.id,text:k.textContent?.slice(0,50)}),w=[];}}else x=y.target,w=[_];};let w=[],x=null;document.addEventListener("click",g,true),r.push(()=>document.removeEventListener("click",g,true));}if(e.longTask!==false&&typeof PerformanceObserver<"u")try{let w=new PerformanceObserver(x=>{for(let g of x.getEntries())g.duration>5e3&&t.onTrigger("long_task",{duration:Math.round(g.duration),startTime:Math.round(g.startTime)});});w.observe({entryTypes:["longtask"]}),r.push(()=>w.disconnect());}catch{}let n=Mf(e.apiCascade);if(n.enabled){let w=[],x=globalThis.fetch;globalThis.fetch=async function(...g){let[y,_]=g,k=gn(y),v=!!bn(y,_)||xr(k,{apiEndpoint:e.apiEndpoint,ignoreUrls:n.ignoreUrls});try{let C=await x.apply(this,g);return !v&&!C.ok&&C.status>=400&&Ou(w,t),C}catch(C){throw v||Ou(w,t),C}},r.push(()=>{globalThis.fetch=x;});}if((e.pageDwell===true||typeof e.pageDwell=="object"&&e.pageDwell!==null)&&typeof window<"u"){let k=function(f){return g.some(E=>E.endsWith("/*")?f.startsWith(E.slice(0,-2)):f===E||f.startsWith(E+"/"))},v=function(){let f=window.location?.pathname??"";k(f)||t.onTrigger("page_dwell",{thresholdMs:x,path:f});},C=function(){y&&clearTimeout(y);let f=window.location?.pathname??"";k(f)||(y=setTimeout(v,x));},T=function(){let f=window.location?.pathname??"";f!==_&&(_=f,C());};let w=typeof e.pageDwell=="object"?e.pageDwell??{}:{},x=w.thresholdMs||300*1e3,g=w.excludeRoutes!==void 0?w.excludeRoutes:Af,y=null,_=window.location?.pathname??"";C();let b=Fe({onPush:T,onReplace:T,onPop:T});r.push(()=>{y&&clearTimeout(y),b();});}if((e.firstSession===true||typeof e.firstSession=="object"&&e.firstSession!==null)&&typeof window<"u"){let w=typeof e.firstSession=="object"?e.firstSession??{}:{},x=w.delayMs??45*1e3,g=w.storageKey??(e.projectId?`mushi:${e.projectId}:firstSessionShown`:"mushi:firstSessionShown"),y=false;try{y=window.localStorage?.getItem(g)==="1";}catch{}if(!y){let _=setTimeout(()=>{try{window.localStorage?.setItem(g,"1");}catch{}t.onTrigger("first_session",{delayMs:x});},x);r.push(()=>clearTimeout(_));}}if(e.errorBoundary){let w=function(g){pr({message:g.message,filename:g.filename,ignoreErrors:e.ignoreErrors,denyUrls:e.denyUrls,allowUrls:e.allowUrls})||t.onTrigger("error_boundary",{message:g.message,filename:g.filename,lineno:g.lineno,colno:g.colno});},x=function(g){let y=g.reason instanceof Error?g.reason.message:String(g.reason);pr({message:y,filename:g.reason instanceof Error?Ki(g.reason.stack):void 0,ignoreErrors:e.ignoreErrors,denyUrls:e.denyUrls,allowUrls:e.allowUrls})||t.onTrigger("error_boundary",{message:y,type:"unhandled_rejection"});};window.addEventListener("error",w),window.addEventListener("unhandledrejection",x),r.push(()=>{window.removeEventListener("error",w),window.removeEventListener("unhandledrejection",x);});}return {destroy(){r.forEach(w=>w());}}}function Mf(t){return t===false?{enabled:false,ignoreUrls:[]}:t&&typeof t=="object"?{enabled:t.enabled!==false,ignoreUrls:t.ignoreUrls??[]}:{enabled:true,ignoreUrls:[]}}function Ou(t,e){let r=Date.now();t.push(r);let n=t.filter(i=>r-i<1e4);n.length>=3&&(e.onTrigger("api_cascade",{failureCount:n.length,windowMs:1e4}),t.length=0);}var Nu="mushi:lastDismiss",vn="mushi:consecDismiss",Vi="mushi:lastShown";function wn(t){try{return localStorage.getItem(t)}catch{return null}}function Sn(t,e){try{localStorage.setItem(t,e);}catch{}}function Uu(t={}){let e=t.maxProactivePerSession??2,r=t.dismissCooldownHours??24,n=t.suppressAfterDismissals??3,i=(t.reshowCooldownMinutes??30)*60*1e3,o=0,s=new Set;function a(h){let m=Date.now();if(parseInt(wn(vn)??"0",10)>=n)return false;let x=wn(Nu);if(x&&m-parseInt(x,10)<r*60*60*1e3)return false;if(i>0&&o===0){let g=wn(Vi);if(g&&m-parseInt(g,10)<i)return false}return o>=e||s.has(h)?false:(s.add(h),o++,Sn(Vi,String(m)),true)}function u(){Sn(Nu,String(Date.now()));let h=parseInt(wn(vn)??"0",10);Sn(vn,String(h+1));}function c(){Sn(vn,"0");}function p(){o=0,s.clear();try{localStorage.removeItem(Vi);}catch{}}return {shouldShow:a,recordDismissal:u,recordSubmission:c,reset:p}}var Qe="@mushi-mushi/web",we="1.39.2";function Gu(t,e){if(t.appVersion)return t.appVersion;let r=t.integrations?.vercel?.analyticsId;return r||e?.buildId}var qe=null,xn=class{constructor(){}static init(e={}){if(qe)return lt({scope:"mushi",level:"warn",format:"pretty"}).warn("Already initialized \u2014 call destroy() first to reinitialize"),qe;if(typeof document>"u"||typeof window>"u")return Xu();let r={...Gn(),...e};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?Xu():(qe=Of(r),qe)}static getInstance(){return qe}static destroy(){qe?.destroy(),qe=null;}static diagnose(){return qe?.diagnose()??Xi()}};function Of(t){os(t);let e=is(t),r=e.projectId,n=()=>re(r),i=e,o=t.debug??false?lt({scope:"mushi",level:"debug",format:"pretty"}):Yn,s=null,a=null,u=rs({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:()=>s,sdkPackage:Qe,sdkVersion:we}),c=null,p=false;function h(){if(!p){p=true,Ss({client:u,sdkVersion:we,reporterToken:re(e.projectId)??null,projectId:e.projectId,analytics:e.analytics});try{c=Fe({onPush:()=>ei(),onPop:()=>ei()});}catch{}}}let m=e.trackSessions,w=m==="on-demand"?Promise.resolve().then(()=>(ju(),qu)):null,x=w?.then(l=>l.readTabOptIn(e.projectId));function g(l){if(!(p||m===false)){if(!w){h();return}Promise.all([w,x]).then(([d,S])=>{if(p)return;d.journeyRecordingDecision({mode:m,tabOptIn:S===true,window:l,draw:l?d.deviceDraw(e.projectId):1,now:Date.now()})&&h();}).catch(()=>{});}}g(null);let y=ss(e.preFilter),_=ds(e.offline),k=Ps({maxBurst:10,refillRate:1,refillIntervalMs:5e3}),v=ii();As({client:u,projectId:e.projectId,sdkVersion:we,config:e.analytics,scrub:l=>v.scrub(l),getSessionId:Rt});function C(l){return l.map(d=>{let S={...d};if(typeof d.message=="string"&&(S.message=v.scrub(d.message)),d.data&&typeof d.data=="object"){let D={};for(let[I,W]of Object.entries(d.data))D[I]=typeof W=="string"?v.scrub(W):W;S.data=D;}return S})}function T(l){return l&&l.map(d=>({...d,message:v.scrub(d.message),...d.stack?{stack:v.scrub(d.stack)}:{}}))}function b(l){if(!l)return;let d={};for(let[S,D]of Object.entries(l))d[S]=typeof D=="string"?v.scrub(D):D;return d}let f=null,E=null,A=null,$=null,U=null,q=null,se=Hi(),Q=null,V=0,M,je=`mushi:tester-jwt:${e.projectId}`;function Le(){try{return typeof localStorage<"u"?localStorage.getItem(je):null}catch{return null}}function le(){try{typeof localStorage<"u"&&localStorage.removeItem(je);}catch{}}async function J(l){let d=await u.getTesterStatus(l);if(!d.ok||!d.data){le();return}let S=d.data;if(!S.is_tester||!S.tester_id){le();return}M.setTesterSession(l,{id:S.tester_id,public_handle:S.public_handle??null,display_name:S.display_name??null});let D=await u.getMyReputation(l);if(D.ok&&D.data){let I=D.data;I.reputation&&M.setTesterReputation(I.reputation);}}function ne(){if(i.capture?.console!==false?f??=Pi():(f?.destroy(),f=null),i.capture?.network!==false){let N={apiEndpoint:Yi(i),ignoreUrls:i.capture?.ignoreUrls,tracePropagation:i.capture?.tracePropagation,sessionId:Rt()};E?E.updateOptions(N):E=Di(N);}else E?.destroy(),E=null;if(i.capture?.performance!==false?A??=Fi():(A?.destroy(),A=null),i.capture?.screenshot!=="off"){let N={privacy:i.privacy,onFailed:K=>M.setScreenshotError(true,K)};i.capture?.screenshotProvider?$=null:$?$.updateOptions(N):$=$i(N);}else $=null;!$&&!i.capture?.screenshotProvider&&(R=null),M.setAllowScreenshotRemove(i.privacy?.allowUserRemoveScreenshot!==false),i.capture?.elementSelector!==false?U??=Oi(()=>{let N=i.privacy;return [zt,...N?.redactSelectors??["[data-mushi-redact]"],...N?.maskSelectors??[],...N?.blockSelectors??[]].join(",")},N=>v.scrub(N)):(U?.deactivate(),U=null,F=null),M.setCaptureAvailability({screenshot:(!!$||!!i.capture?.screenshotProvider)&&i.capture?.screenshot!=="off",element:!!U});let l=i.capture?.discoverInventory,d=l===true?{}:l&&typeof l=="object"?l:null;d!=null&&d.enabled!==false?(q?.destroy(),q=Ni({config:d,getRecentNetworkPaths:()=>E?E.getEntries().map(N=>{try{let K=new URL(N.url,typeof window<"u"?window.location.href:"http://localhost");return K.host&&typeof window<"u"&&K.host!==window.location.host?null:K.pathname}catch{return null}}).filter(N=>N!=null&&N.length>0&&N.length<200):[],getUserId:()=>z?.id??null,getSessionId:Rt,onEvent:N=>{u.postDiscoveryEvent({...N,sdk_version:we}).catch(K=>{o.debug("discovery emit failed",{err:String(K)});});}})):(q?.destroy(),q=null);let D=i.capture?.replay??"off",I=i.replaySampleRate??1,W=I>=1||Math.random()<I,ee=i.replaysOnErrorSampleRate??0,ie=!W&&ee>0&&Math.random()<ee;if((D==="rrweb"||D==="lite")&&(W||ie)){let N=++V;$u({mode:D,loadRrweb:e.capture?.rrweb,redactSelectors:i.privacy?.redactSelectors}).then(K=>{if(N!==V){K.destroy();return}Q?.destroy(),Q=K,Q.start();});}else V++,Q?.destroy(),Q=null;}let ce=new Map;function Z(l,d){ce.get(l)?.forEach(S=>S({type:l,data:d}));}let R=null,P=false,F=null,O=null,G=false,De=true,We=null,et=null,z=null,ge=null,xe={},Re=null,ke={},H=$s({max:50});H.add({category:"lifecycle",level:"info",message:"Mushi SDK init",data:{projectId:e.projectId,sdkVersion:we}});let Tt=null;Tt=Gf(H);let tt=false,rt=false,Gt=new Set,nt=tu(u);async function Rr(){let l=await nt.getUpdates(n()),d=l.ok?l.data??null:null;if(d)for(let S of Gt)try{S(d);}catch{}return d}function Zi(){M.refreshReporterInboxQuiet(),Gt.size&&Rr();}function kr(){We&&clearInterval(We),We=null,et&&typeof document<"u"&&document.removeEventListener("visibilitychange",et),et=null;}function Qi(){if(kr(),!De)return;let l=5*6e4,d=()=>{typeof document<"u"&&document.visibilityState==="hidden"||wi(r)&&Zi();};We=setInterval(d,l),typeof document<"u"&&(et=()=>{document.visibilityState==="visible"&&d();},document.addEventListener("visibilitychange",et)),d();}let Yt=null;function eo(){let l=i.notifications??e.notifications;M.setReporterChannels({email:!!Yt?.emailEnabled&&l?.email!==false,push:!!(Yt?.pushEnabled&&Yt.vapidPublicKey)&&!!l?.webPush,emailPrefill:l?.emailFromIdentity?z?.email??"":""});}let Xt=[];function el(){if(!wi(r))return;let l=globalThis.requestIdleCallback;if(l?l(()=>{M.preloadViews();},{timeout:8e3}):setTimeout(()=>{M.preloadViews();},3e3),e.notifications?.toast===false||!Qa(r))return;let d=async()=>{let D=await Rr(),I=D&&typeof D.unread_total=="number"&&Array.isArray(D.latest)?D:null;if(I&&!I.unread_total)return;await M.refreshReporterInboxQuiet(),(I?M.showUpdatesFeedToast(I,Xt):await M.showUpdatesToast(Xt))&&eu(r);},S=globalThis.requestIdleCallback;S?S(()=>{d();},{timeout:5e3}):setTimeout(()=>{d();},2e3);}async function tl(l){let d=re(r),S=await nt.markReportRead(l,d);if(S.ok)return S.data?.unread_total??null;let D=await u.listNotifications(d,{limit:50});if(!D.ok)return null;let I=(D.data?.notifications??[]).filter(W=>{let ee=W.payload??{};return !W.read_at&&(ee.reportId===l||W.report_id===l)});return await Promise.all(I.map(W=>u.markNotificationRead(String(W.id),d))),null}function to(l,d){if(!i.rewards?.enabled)return;let S={client:u,config:i.rewards,projectId:r,userId:l,traits:d,reporterToken:n()};fu(S),i.rewards.showInWidget!==false&&u.getMyPoints(l).then(D=>{if(!D.ok)return;let I=D.data;M.setRewardsState({tier:I.tier?{slug:I.tier.slug??"free",displayName:I.tier.display_name??"Free",pointsThreshold:I.tier.points_threshold??0}:null,nextTier:I.next_tier?{displayName:I.next_tier.display_name??"",pointsThreshold:I.next_tier.points_threshold??0}:null,totalPoints:I.total_points??0,pointsForReport:I.report_submit_pts??50});}).catch(()=>{});}async function Rn(){if(tt)return null;rt=false;let l=i.capture?.screenshotProvider;if(l){tt=true;try{let I=await l();if(I?.startsWith("data:image/"))return I;I&&o.warn("screenshotProvider must resolve to a data:image/ URL; ignoring",{prefix:I.slice(0,16)});}catch(I){o.warn("screenshotProvider threw, falling back to built-in capturer",{error:I instanceof Error?I.message:String(I)}),rt=I instanceof Error&&(I.name==="NotAllowedError"||I.name==="SecurityError"||/permission|denied/i.test(I.message));}finally{tt=false;}}if(!$)return null;tt=true;let d=M.getIsOpen();d&&M.hidePanel();let S=document.getElementById("mushi-mushi-widget"),D=S?.style.visibility??"";S&&(S.style.visibility="hidden"),await new Promise(I=>{requestAnimationFrame(()=>requestAnimationFrame(()=>I()));});try{return await $.take()}finally{tt=false,S&&(S.style.visibility=D),d&&M.showPanel();}}function ro(){let l=i.capture?.screenshot;return (!!$||!!i.capture?.screenshotProvider)&&(l==="auto"||l==="on-report")&&!R&&!P}let Jt=null,_e=0;function rl(){if(i.capture?.screenshot!=="auto"||!ro())return;o.debug("Auto-capturing screenshot on open");let l=_e,d=(async()=>{let S=await Rn().catch(()=>null);l!==_e||R||P||!S||(R=S,M.setScreenshotAttached(true),M.setScreenshotPreview(S));})();Jt=d,d.finally(()=>{Jt===d&&(Jt=null);});}async function nl(){if(Jt&&(await Jt,R))return true;if(!ro())return false;o.debug("Capturing screenshot for review before send",{mode:i.capture?.screenshot});let l=_e,d=await Rn().catch(()=>null);return !d||l!==_e?false:(R=d,M.setScreenshotAttached(true),M.setScreenshotPreview(d),true)}let kn=$t(r).then(l=>l.slice(0,12)).catch(()=>null);M=new ln(e.widget,{onWarning:l=>o.warn(l),onSubmit:async({category:l,userCategory:d,description:S,intent:D})=>{o.info("Report submitted",{category:l,userCategory:d,intent:D}),O&&Zt?.recordSubmission();let I=await ol(l,S,D,d);return fr(I)||(P=false),I},onBeforeSubmit:()=>nl(),onOpen:()=>{o.debug("Widget opened"),_e++,R=null,P=false,rl(),Q?.start(),Z("widget:opened");},onBrandFooterImpression:()=>{kn.then(l=>{Bt("loop_impression",{placement:"widget"},l?{reserved:{$ref:l}}:void 0);});},onBrandFooterClick:()=>{kn.then(l=>(Bt("loop_click",{placement:"widget"},l?{reserved:{$ref:l}}:void 0),Ls()));},onClose:()=>{o.debug("Widget closed"),O&&(Zt?.recordDismissal(),Z("proactive:dismissed",{type:O})),_e++,R=null,P=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"),M.setScreenshotError(true,"unsupported");return}if(tt)return;o.debug("Taking screenshot"),M.setScreenshotCapturing(true);let d=_e,S=null;try{S=await Rn();}catch(D){o.warn("Screenshot capture threw",{error:D instanceof Error?D.message:String(D)});}d===_e&&(R=S,M.setScreenshotAttached(R!==null),M.setScreenshotPreview(R),R===null&&M.setScreenshotError(true,rt?"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(()=>{}),M.setScreenshotCapturing(true);let d=document.getElementById("mushi-mushi-widget");d&&(d.style.visibility="hidden");let S=_e,D=i.privacy;Promise.resolve().then(()=>(Ku(),Wu)).then(I=>I.grabMaskedTabFrame(l,[zt,"[data-mushi-redact]",...D?.redactSelectors??[],...D?.maskSelectors??[],...D?.blockSelectors??[]]),I=>{throw l.then(W=>W.getTracks().forEach(ee=>ee.stop()),()=>{}),I}).then(I=>{S===_e&&(R=I,M.setScreenshotAttached(true),M.setScreenshotPreview(I));}).catch(I=>{o.warn("Tab capture failed",{error:I instanceof Error?I.name:String(I)}),M.setScreenshotError(true,I instanceof Error&&I.name==="NotAllowedError"?"permission":"error");}).finally(()=>{d&&(d.style.visibility="");});}:void 0,onScreenshotRemove:()=>{o.debug("Screenshot attachment removed"),R=null,P=true,M.setScreenshotAttached(false);},onScreenshotAnnotateRequest:async l=>{if(!R||l.childElementCount>0)return;let d=_e,S;try{let{createScreenshotAnnotation:ie}=await Promise.resolve().then(()=>(zu(),Vu));S=await ie(R,l);}catch(ie){o.warn("Screenshot annotation failed",{error:ie instanceof Error?ie.message:String(ie)});return}let D=document.createElement("div");D.className="mushi-annotate-toolbar";let I=ie=>{d===_e&&(R=S.getDataUrl(),M.setScreenshotAttached(true),M.setScreenshotPreview(R)),S.destroy(),D.remove();},W=[{id:"highlight",label:"\u270F\uFE0F Highlight"},{id:"blur",label:"\u{1F512} Blur"},{id:"arrow",label:"\u2197\uFE0F Arrow"}];for(let ie of W){let N=document.createElement("button");N.type="button",N.className="mushi-attach-btn",N.dataset.tool=ie.id,N.textContent=ie.label,N.addEventListener("click",()=>{S.setTool(ie.id),D.querySelectorAll("button[data-tool]").forEach(K=>K.classList.remove("active")),N.classList.add("active");}),D.appendChild(N);}D.querySelector('button[data-tool="highlight"]')?.classList.add("active");let ee=document.createElement("button");ee.type="button",ee.className="mushi-attach-btn",ee.textContent="\u2713 Done",ee.addEventListener("click",()=>I()),D.appendChild(ee),l.insertBefore(D,l.firstChild);},onElementSelectorRequest:async()=>{if(!U||i.capture?.elementSelector===false){o.warn("Element selector requested but it is disabled/unavailable"),M.setElementError(true);return}o.debug("Element selector activated"),M.setElementCapturing(true),M.hidePanel();try{let l=await U.activate();l?(F=l,M.setElementSelected(!0),o.debug("Element selected",{tagName:l.tagName,xpath:l.xpath})):M.setElementCapturing(!1);}catch(l){o.warn("Element selector threw",{error:l instanceof Error?l.message:String(l)}),M.setElementError(true);}finally{M.showPanel();}},async onReporterReportsRequest(){let l=await u.listReporterReports(re(r));if(!l.ok)throw new Error(l.error?.message??"Could not load reports");return Xt=l.data?.reports??[],Xt.length&&vi(r),Xt},onReporterMarkRead:l=>tl(l),async onReporterReportRequest(l){let d=await nt.getReport(l,re(r));return d.ok&&d.data?{report:d.data.report,timeline:d.data.timeline}:null},async onReporterEmailOptIn(l){let d=await nt.setPrefs(re(r),{email:l,channels:{email:true}});if(!d.ok)throw new Error(d.error?.code??"EMAIL_OPT_IN_FAILED")},async onReporterPushSubscribe(){let l=await Cn.subscribeReporterPush();if(!l.ok)throw new Error(l.reason)},async onReporterCommentsRequest(l){let d=await u.listReporterComments(l,re(r));if(!d.ok)throw new Error(d.error?.message??"Could not load thread");return d.data?.comments??[]},async onReporterReply(l,d){let S=await u.replyToReporterReport(l,re(r),d);if(!S.ok)throw new Error(S.error?.message??"Could not send reply")},async onReporterFeedback(l,d,S){let D=await u.replyToReporterReport(l,re(r),S??"",d);if(!D.ok)throw new Error(D.error?.message??"Could not send feedback");return D.data?.feedback??null},async onReporterReopen(l,d){let S=await u.reopenReporterReport(l,re(r),d);if(!S.ok)throw new Error(S.error?.message??"Could not reopen report");return S.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 d=await u.voteReporterFeatureBoard(l,re(r));if(!d.ok)throw new Error(d.error?.message??"Could not vote");return d.data??{voted:true,action:"added"}},onLeaderboardOpen(){M.setLeaderboard(null,true),gu(10).then(l=>{M.setLeaderboard(l,false);});},async onMushiSignIn(l){let d=await u.sendMagicLink(l);if(!d.ok)throw new Error(d.error?.message??"Could not send sign-in link");return {ok:true}},async onGlobalLeaderboardOpen(){M.setGlobalLeaderboard(null,true);try{let l=Le(),d=await u.getPublicLeaderboard(50),D=(d.ok?d.data?.leaderboard??[]:[]).map(I=>({tester_id:I.tester_id,rank:I.rank,public_handle:I.public_handle,display_name:I.display_name,points_30d:I.points_30d,total_points:I.total_points??0,badge:I.badge_slug}));if(M.setGlobalLeaderboard(D,!1),l){let I=await u.getMyReputation(l);if(I.ok&&I.data){let W=I.data;W.reputation&&M.setTesterReputation(W.reputation);}}}catch{M.setGlobalLeaderboard([],false);}},async onCrossAppReportsOpen(){let l=Le();if(!l){M.setCrossAppReports([],false);return}try{let d=await u.getCrossAppReports(l),S=d.ok?d.data?.reports??[]:[];M.setCrossAppReports(S,!1);}catch{M.setCrossAppReports([],false);}},onTesterSignOut(){le();},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,d){let S=await u.askAssistant({message:l,threadId:d,context:a});return S.ok?S.data??null:null}}),kn.then(l=>M.setBrandRef(l)),ne(),typeof document<"u"&&(document.readyState==="loading"?document.addEventListener("DOMContentLoaded",()=>M.mount()):M.mount());let no=Le();no&&J(no).catch(()=>le());let io=null,Zt=null,te=i.proactive;te&&(te.rageClick!==false||te.longTask!==false||te.apiCascade!==false||te.errorBoundary===true||te.pageDwell||te.firstSession)&&typeof document<"u"&&(Zt=Uu(te?.cooldown),io=Hu({onTrigger:(l,d)=>{if(typeof navigator<"u"&&!navigator.onLine){o.debug("Proactive trigger suppressed: offline",{type:l});return}if(!Zt.shouldShow(l)){o.debug("Proactive trigger suppressed by fatigue prevention",{type:l});return}o.info("Proactive trigger fired",{type:l,context:d}),O=l,Z("proactive:triggered",{type:l,context:d}),l==="first_session"?M.pulseTrigger?.():M.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:e.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})),_.startAutoSync(u),_.flush(u).then(l=>{l.sent>0&&o.info("Synced offline reports",{sent:l.sent});});function _n(l){if(G=true,De=l.reporterNotificationsEnabled!==false,Yt=l.enabled===false?null:l.reporter??null,eo(),l.enabled===false){i=e,Wf(t.projectId),ne(),M.updateConfig(i.widget),kr(),o.debug("Runtime SDK config disabled; using bootstrap config",{version:l.version});return}i=nu(i,l,e),ne(),l.widget&&M.updateConfig(i.widget),De?Qi():kr(),o.debug("Applied runtime SDK config",{version:l.version});}if(Hf(t)){let l=qf(t.projectId);l&&_n(l),u.getSdkConfig(m==="on-demand"?{fresh:true}:void 0).then(d=>{d.ok&&d.data?(jf(t.projectId,d.data),_n(d.data),d.data.enabled!==false&&g(d.data.journeys??null)):d.error&&o.debug("Runtime SDK config unavailable",d.error);}).catch(d=>{o.debug("Runtime SDK config fetch failed",{error:d instanceof Error?d.message:String(d)});});}else o.debug("Runtime SDK config disabled via runtimeConfig:false; using static bootstrap config");il(),Qi(),el(),o.info("Initialized",{projectId:t.projectId});async function il(){if(i.widget?.outdatedBanner==="off")return;let l=Kf(Qe);l&&oo(l);let d=await u.getLatestSdkVersion(Qe);!d.ok||!d.data||(Vf(Qe,d.data),oo(d.data));}function oo(l){let d=l.latest,S=!!(d&&zf(we,d));if(!S&&!l.deprecated)return;let D=l.deprecationMessage??(S?`Update ${Qe} to ${d}.`:null);o.warn("Mushi SDK is outdated",{package:Qe,current:we,latest:d,deprecated:l.deprecated,message:D}),fa(i.widget?.outdatedBanner,!!i.debug,typeof location>"u"?void 0:location)&&M.setSdkFreshness({latest:d,current:we,deprecated:l.deprecated,message:D});}async function ol(l,d,S,D){let I=j=>({reportId:null,queuedOffline:false,failureKind:j}),W=y.check(d);if(!W.passed)return o.info("Report blocked by pre-filter",{reason:W.reason}),I("blocked");let ee=t.preFilter?.wasmClassifier;if(ee)try{let j=await ee.classify({description:d,category:l,url:typeof location<"u"?location.href:void 0,hasScreenshot:R!==null,hasSelectedElement:F!==null,hasNetworkErrors:E?.getEntries()?.some(be=>be.status>=400||!!be.error)??!1,hasConsoleErrors:f?.getEntries()?.some(be=>be.level==="error")??!1,proactiveTrigger:O??void 0});if(j.verdict==="block")return o.info("Report blocked by on-device classifier",{modelId:j.modelId,confidence:j.confidence,reason:j.reason}),I("blocked");o.debug("On-device classifier verdict",{...j});}catch(j){o.warn("On-device classifier threw \u2014 falling through to server",{error:j instanceof Error?j.message:String(j)});}if(O!==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:O}),I("blocked");if(!k.tryConsume())return o.warn("Report throttled \u2014 rate limit exceeded"),I("throttled");let N=v.scrub(y.truncate(d)),K=t.sentry?ji(t.sentry):void 0,Ke=await ps().catch(()=>null),Ve=i.capture?.console===false?void 0:T(f?.getEntries()),_r=i.capture?.network===false?void 0:E?.getEntries(),uo=C(H.getAll()),lo=b(Object.keys(ke).length>0?{...ke}:void 0),co=K?{...K,...K.breadcrumbs?{breadcrumbs:C(K.breadcrumbs)}:{},...K.tags?{tags:b(K.tags)}:{}}:void 0,po=R?await ta(R).catch(()=>null):null,Cr=false;R&&!po&&(Cr=true,o.warn("Screenshot dropped \u2014 could not compress under wire budget"));let ho=Xn(),sl=await va(Re),Pe={id:Jn(),projectId:t.projectId,category:l,...D?{userCategory:D}:{},description:N,userIntent:S,environment:ho,consoleLogs:Ve,networkLogs:_r,performanceMetrics:i.capture?.performance===false?void 0:A?.getMetrics(),timeline:se.getEntries({consoleLogs:Ve,networkLogs:_r}),screenshotDataUrl:po??void 0,selectedElement:F??void 0,...Q?{replayEvents:Q.flush()}:{},metadata:{...xe,...sl??{},...z?{user:z}:{},...K?.release?{sentryRelease:K.release}:{}},sessionId:Rt(),reporterToken:re(r),...Ke?{fingerprintHash:Ke}:{},appVersion:Gu(i,ho),sdkPackage:Qe,sdkVersion:we,proactiveTrigger:O??void 0,...uo.length>0?{breadcrumbs:uo}:{},...lo?{tags:lo}:{},...co?{sentryContext:co}:{},sentryEventId:K?.eventId,sentryReplayId:K?.replayId,createdAt:new Date().toISOString()};if(H.add({category:"lifecycle",level:"info",message:`Mushi report submitting (${l})`,data:{reportId:Pe.id,category:l}}),t.integrations?.custom){let j={addMetadata(be,Tn){Pe.metadata[be]=Tn;},setCategory(be){Pe.category=be;},setDescription(be){Pe.description=be;}};t.integrations.custom(j);}let Y=Pe,fo=t.beforeSend??t.beforeSendFeedback;if(fo)try{let j=await Promise.race([Promise.resolve(fo(Pe)),new Promise(be=>setTimeout(()=>be(Pe),2e3))]);if(j===null)return o.info("Report dropped by beforeSend hook",{reportId:Pe.id}),I("blocked");Y=j;}catch(j){o.warn("beforeSend hook threw \u2014 sending unmodified report",{error:j instanceof Error?j.message:String(j)});}if(Z("report:submitted",{reportId:Y.id}),typeof navigator<"u"&&!navigator.onLine)return await _.enqueue(Y),o.info("Offline \u2014 report queued",{reportId:Y.id}),Z("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}),Cr=true,Y={...Y,screenshotDataUrl:void 0},X=await u.submitReport(Y))),X.ok){if(o.info("Report sent",{reportId:X.data?.reportId}),Z("report:sent",{reportId:X.data?.reportId}),vi(r),Zi(),X.data?.cursorAgentId){let j=X.data;Z("report:dispatched",{reportId:j.reportId,agentId:j.cursorAgentId,fixId:j.fixId});}H.add({category:"lifecycle",level:"info",message:`Mushi report sent (${X.data?.reportId??Pe.id})`}),Vt({action:"report_submit",metadata:{category:l,reportId:X.data?.reportId??Pe.id}});try{t.sentry&&X.data?.reportId&&Wi(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}),Z("report:failed",{reportId:Y.id,error:X.error}),H.add({category:"lifecycle",level:"error",message:`Mushi report dropped \u2014 payload too large (${Y.id})`}),R=null,F=null,O=null,{reportId:null,queuedOffline:false,failureKind:"permanent",screenshotDropped:Cr};{let j=X.error?.code??"",be=j==="HTTP_429"||j.includes("RATE_LIMIT"),Tn=j==="HTTP_401"||j.includes("UNAUTHORIZED")||j.includes("INVALID_API_KEY")||j.includes("MISSING_API_KEY"),al=j==="HTTP_403"||j.includes("QUOTA")||j.includes("FORBIDDEN")||j==="feature_not_in_plan";if(Tn||al)return o.warn("Report rejected \u2014 credentials/quota",{reportId:Y.id,error:X.error}),Z("report:failed",{reportId:Y.id,error:X.error}),R=null,F=null,O=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 _.enqueue(Y),Z("report:failed",{reportId:Y.id,error:X.error}),R=null,F=null,O=null,{reportId:null,queuedOffline:true,failureKind:"rate_limited"};o.warn("Report failed, queuing for retry",{reportId:Y.id,error:X.error}),await _.enqueue(Y),Z("report:failed",{reportId:Y.id,error:X.error}),H.add({category:"lifecycle",level:"warning",message:`Mushi report queued for retry (${Y.id})`});}}return R=null,F=null,O=null,X?.ok?{reportId:X.data?.reportId??Pe.id,queuedOffline:false,screenshotDropped:Cr}:{reportId:null,queuedOffline:true,failureKind:"retrying"}}let Cn={report(l){M.open(l);},on(l,d){return ce.has(l)||ce.set(l,new Set),ce.get(l).add(d),()=>ce.get(l)?.delete(d)},setUser(l){z=l;},setMetadata(l,d){xe[l]=d;},setDiagnosticsProvider(l){Re=l;},setScreen(l){se.setScreen(l);},isOpen(){return M.getIsOpen()},open(){M.open();},openWith(l){M.open({category:l});},show(){M.showTrigger();},hide(){M.hideTrigger();},attachTo(l,d){return M.attachTo(l,d)},setTrigger(l){M.setTrigger(l);},openReporter(){M.openReporter();},close(){M.close();},updateConfig(l){_n(l),l.enabled!==false&&g(l.journeys??null);},diagnose(){return Nf({apiEndpoint:Yi(i),widgetMounted:M.getIsMounted(),runtimeConfigLoaded:G,captureScreenshotAvailable:$!==null,captureNetworkIntercepting:E!==null,widgetDiagnostics:M.getWidgetDiagnostics()})},destroy(){io?.destroy(),Zt?.reset(),Ds(),M.destroy(),f?.destroy(),E?.destroy(),A?.destroy(),U?.deactivate(),bu(),Tt?.(),Tt=null,q?.destroy(),q=null,se.destroy(),su(),Q?.destroy(),Q=null,_.stopAutoSync(),kr(),c?.(),c=null,xs(),H.clear(),ce.clear(),qe=null,o.debug("Destroyed");},async captureEvent(l){if(!k.tryConsume())return o.warn("captureEvent throttled \u2014 rate limit exceeded"),null;let d=v.scrub(y.truncate(l.description)),S=l.category??"bug",D=t.sentry?ji(t.sentry):void 0,I=C(H.getAll()),W=b(Object.keys(ke).length===0&&!l.tags?void 0:{...ke,...l.tags??{}}),ee=D?{...D,...D.breadcrumbs?{breadcrumbs:C(D.breadcrumbs)}:{},...D.tags?{tags:b(D.tags)}:{}}:void 0,ie=Xn(),N={id:Jn(),projectId:t.projectId,category:S,description:d,environment:ie,timeline:se.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"}},...I.length>0?{breadcrumbs:I}:{},...W&&Object.keys(W).length>0?{tags:W}:{},...ee?{sentryContext:ee}:{},sessionId:Rt(),reporterToken:re(r),appVersion:Gu(i,ie),sdkPackage:Qe,sdkVersion:we,sentryEventId:D?.eventId,sentryReplayId:D?.replayId,createdAt:new Date().toISOString()},K=N;if(i.beforeSendFeedback)try{let Ve=await Promise.race([Promise.resolve(i.beforeSendFeedback(N)),new Promise(_r=>setTimeout(()=>_r(N),2e3))]);if(Ve===null)return o.info("captureEvent dropped by beforeSendFeedback hook",{reportId:N.id}),null;K=Ve;}catch(Ve){o.warn("captureEvent beforeSendFeedback threw \u2014 sending unmodified report",{error:Ve instanceof Error?Ve.message:String(Ve)});}if(Z("report:submitted",{reportId:K.id}),typeof navigator<"u"&&!navigator.onLine)return await _.enqueue(K),Z("report:queued",{reportId:K.id}),null;let Ke=await u.submitReport(K);if(Ke.ok){Z("report:sent",{reportId:Ke.data?.reportId});try{t.sentry&&Ke.data?.reportId&&Wi(Ke.data.reportId);}catch{}return Ke.data?.reportId??null}return await _.enqueue(K),Z("report:failed",{reportId:K.id,error:Ke.error}),null},async captureException(l,d){let S=Fs(l),D=typeof d?.metadata?.filename=="string"?d.metadata.filename:Ki(S.stack);if(pr({message:S.message,filename:D,ignoreErrors:i.ignoreErrors,denyUrls:i.denyUrls,allowUrls:i.allowUrls}))return null;H.add({category:"lifecycle",level:"error",message:`Mushi.captureException(${S.name}): ${S.message}`,...S.stack?{data:{stack:S.stack.slice(0,500)}}:{}});let I=d?.description?.trim()||`${S.name}: ${S.message}`||"Uncaught exception";return Cn.captureEvent({description:I,category:d?.category??"bug",severity:d?.severity??"high",...d?.component?{component:d.component}:{},...d?.tags?{tags:d.tags}:{},source:d?.source??"captureException",error:{name:S.name,message:S.message,...S.stack?{stack:S.stack}:{}},metadata:{...d?.metadata??{},...S.cause?{cause:S.cause}:{}}})},identify(l,d){let S=`${l}::${d?JSON.stringify(d):""}`;if(S!==ge){if(ge=S,z={id:l,...d?.email?{email:d.email}:{},...d?.name?{name:d.name}:{}},M.setIdentifiedUser(z.name||z.email?{name:z.name,email:z.email}:null),eo(),d)for(let[D,I]of Object.entries(d))D!=="email"&&D!=="name"&&(xe[`user.${D}`]=I);H.add({category:"lifecycle",level:"info",message:`Mushi.identify(${l})`}),Ms(l,d??null),to(l,d?{email:d.email,name:d.name,provider:d.provider}:void 0);}},identifyWithToken(l){if(s=l&&typeof l=="string"?l:null,s){let d=Vs(s);if(d?.sub){if(z?.id===d.sub){H.add({category:"lifecycle",level:"info",message:"Mushi.identifyWithToken() refreshed"});return}let S=d.sub;$t(S).then(D=>{z?.id===S&&ti(D);}).catch(()=>{}),z={id:d.sub,...d.email?{email:d.email}:{},...d.name?{name:d.name}:{}},M.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,ge=null,ti(null),M.setIdentifiedUser(null),H.add({category:"lifecycle",level:"info",message:"Mushi.identifyWithToken(null)"});},publishPageContext(l){a=l&&l.route?l:null;},openAssistant(){M.openAssistantTab();},addBreadcrumb(l){H.add(l);},getBreadcrumbs(){return H.getAll()},setTag(l,d){typeof l!="string"||l.length===0||(ke[l]=d);},setTags(l){if(!(!l||typeof l!="object"))for(let[d,S]of Object.entries(l))typeof d=="string"&&d.length>0&&(ke[d]=S);},clearTag(l){if(typeof l=="string"&&l.length>0){delete ke[l];return}for(let d of Object.keys(ke))delete ke[d];},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?mu(z.id):null},recordActivity(l,d){i.rewards?.enabled&&Vt({action:l,metadata:d});},track(l,d){return Bt(l,d)},setConsent(l){Is(l);},getAnonymousId(){return Ts()},pulseTrigger(){M.pulseTrigger?.();},async listMyReports(){let l=await u.listReporterReports(re(r));return l.ok?l.data?.reports??[]:[]},async listMyComments(l){let d=await u.listReporterComments(l,re(r));return d.ok?d.data?.comments??[]:[]},async replyToReport(l,d){let S=await u.replyToReporterReport(l,re(r),d);return S.ok?S.data?.comment??null:null},async submitFeedbackSignal(l,d,S){let D=await u.replyToReporterReport(l,re(r),S??"",d);return D.ok?D.data?.feedback??null:null},async reopenReport(l,d){let S=await u.reopenReporterReport(l,re(r),d);return S.ok?S.data?.outcome??null:null},openMyReports(){M.recorderOpenMyReports();},getReporterUpdates:Rr,async markReportRead(l){let d=await nt.markReportRead(l,n());return d.ok?d.data?.unread_total??0:null},onReporterUpdate(l){return Gt.add(l),Rr(),()=>{Gt.delete(l);}},async getNotificationPrefs(){let l=await nt.getPrefs(n());return l.ok?l.data??null:null},setNotificationPrefs:l=>nt.setPrefs(n(),l),async subscribeReporterPush(){let l=i.notifications?.webPush,d=Yt?.vapidPublicKey??null;if(l&&!d){let S=await u.getSdkConfig();d=S.ok?S.data?.reporter?.vapidPublicKey??null:null;}return ru(nt,n(),l?l.serviceWorkerPath:null,d)},async getHallOfFame(l=20){let d=await u.getHallOfFame(l);return d.ok?d.data?.data??[]:[]}};if(typeof globalThis<"u"&&(e.debug??false)&&iu(M),typeof window<"u"&&typeof localStorage<"u"){let l="mushi:last-run",d=null;try{let S=localStorage.getItem(l);d=S===null?null:S==="unfinished",localStorage.setItem(l,"unfinished");}catch{d=null;}try{window.addEventListener("pagehide",()=>{try{localStorage.setItem(l,"clean");}catch{}es(),ts();});}catch{}if(typeof e.onCrashedLastRun=="function")try{e.onCrashedLastRun(d);}catch(S){o.warn("onCrashedLastRun hook threw",{error:S instanceof Error?S.message:String(S)});}}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,d)=>{let S=d instanceof Error?d.message:String(d);o.debug(`Mushi.${l}() failed (swallowed)`,{error:S});try{H.add({category:"custom",level:"warning",message:`mushi.${l}() threw`,data:{error:S}});}catch{}};return (l=>new Proxy(l,{get(d,S,D){let I=Reflect.get(d,S,D);if(typeof I!="function")return I;let W=String(S),ee=()=>W==="diagnose"?Xi():W in so?so[W]:void 0;return (...ie)=>{try{let N=I.apply(d,ie);return N&&typeof N.then=="function"?N.catch(K=>(ao(W,K),ee())):N}catch(N){return ao(W,N),ee()}}}}))(Cn)}function Yi(t){return t.apiEndpoint??or}function Hf(t){return t.runtimeConfig!==false}async function Nf(t){let e=await Uf(t.apiEndpoint);return {apiEndpointReachable:e.reachable,cspAllowsEndpoint:e.cspAllowed,widgetMounted:t.widgetMounted,shadowDomAvailable:typeof HTMLElement<"u"&&typeof HTMLElement.prototype.attachShadow=="function",dialogSupported:typeof HTMLDialogElement<"u",runtimeConfigLoaded:t.runtimeConfigLoaded,captureScreenshotAvailable:t.captureScreenshotAvailable,captureNetworkIntercepting:t.captureNetworkIntercepting,sdkVersion:we,widgetHostPointerSafe:t.widgetDiagnostics?.widgetHostPointerSafe??false,widgetHostBounds:t.widgetDiagnostics?.widgetHostBounds??null,widgetSuppressed:t.widgetDiagnostics?.widgetSuppressed??false,bannerRendered:t.widgetDiagnostics?.bannerRendered??false,warnings:t.widgetDiagnostics?.warnings??[]}}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 Uf(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}:{},[dr]:"diagnose"})).ok,cspAllowed:!0}}catch{return {reachable:false,cspAllowed:false}}finally{r&&clearTimeout(r);}}function Ji(t){return `mushi:sdk-config:${t}`}function Zu(t){return `mushi:sdk-version:${t}`}function qf(t){if(typeof localStorage>"u")return null;try{let e=localStorage.getItem(Ji(t));return e?JSON.parse(e).config??null:null}catch{return null}}function jf(t,e){if(!(typeof localStorage>"u"))try{localStorage.setItem(Ji(t),JSON.stringify({cachedAt:Date.now(),config:e}));}catch{}}function Wf(t){if(!(typeof localStorage>"u"))try{localStorage.removeItem(Ji(t));}catch{}}function Kf(t){if(typeof localStorage>"u")return null;try{let e=localStorage.getItem(Zu(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 Vf(t,e){if(!(typeof localStorage>"u"))try{localStorage.setItem(Zu(t),JSON.stringify({cachedAt:Date.now(),data:e}));}catch{}}function zf(t,e){let r=Yu(t),n=Yu(e);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 Yu(t){return t.split(/[.-]/).map(e=>Number.parseInt(e,10)).filter(e=>Number.isFinite(e))}function Xu(){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 Gf(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=Fe({onPush:()=>r("pushState"),onReplace:()=>r("replaceState"),onPop:()=>r("popstate")});e.push(n);}catch{}try{let r=console.error,n=console.warn,i=function(...s){try{t.add({category:"console",level:"error",message:s.map(Ju).join(" ")});}catch{}return r.apply(this,s)},o=function(...s){try{t.add({category:"console",level:"warning",message:s.map(Ju).join(" ")});}catch{}return n.apply(this,s)};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,s=0;for(;o&&s<10;){let a=o.getAttribute("data-testid");if(a){let u=(o.textContent??"").trim().slice(0,80);t.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}),e.push(()=>document.removeEventListener("click",r,!0));}catch{}return ()=>{for(let r of e)try{r();}catch{}}}function Ju(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}]`}}var Yf=["auto","banner","edge-tab","attach","manual","hidden"],Xf=["auto","light","dark","inherit"],Jf=["bottom-right","bottom-left","top-right","top-left"],Zf=["neon","brand","subtle"],Qf=["top","bottom"],em=/^(#[\da-f]{3}|#[\da-f]{6}|(rgba?|hsla?|oklch)\([\d\s.,%/+-]*(deg|turn|rad)?[\d\s.,%/+-]*\))$/i,tm="#rgb, #rrggbb, rgb(), hsl() or oklch()";function rm(t){try{lt({scope:"mushi",level:"warn",format:"pretty"}).warn(t);}catch{}}function Qu(t,e=rm){let r=t.project?.trim(),n=t.key?.trim();if(!r||!n)return null;let i=f=>{let E=t[f]?.trim();return E||void 0},o=f=>`data-${f.replace(/[A-Z]/g,E=>`-${E.toLowerCase()}`)}`,s=(f,E,A)=>{e(`Ignored ${o(f)}="${E.slice(0,60)}". Use ${A}.`);},a=(f,E)=>{let A=i(f);if(A===void 0)return;let $=A.toLowerCase();return E.includes($)?$:s(f,A,`one of: ${E.join(", ")}`)},u=(f,E=[])=>{let A=i(f);if(A!==void 0)return em.test(A)||E.includes(A.toLowerCase())?A:s(f,A,`a colour: ${[tm,...E].join(", ")}`)},c={},p=a("trigger",Yf);p&&(c.trigger=p);let h=a("theme",Xf);h&&(c.theme=h);let m=a("position",Jf);m&&(c.position=m);let w=i("triggerText");w&&(c.triggerText=w);let x=u("accent");x&&(c.accent=x);let g=u("accentText",["black","white"]);g&&(c.accentText=g);let y=i("locale");if(y){let f=Ia(),E=y.toLowerCase();E==="auto"||f.includes(E.split(/[-_]/)[0])?c.locale=E==="auto"?"auto":y:s("locale",y,`one of: auto, ${f.join(", ")}`);}let _=i("hideOnRoutes");if(_){let f=_.split(",").map(E=>E.trim()).filter(Boolean);f.length?c.hideOnRoutes=f:s("hideOnRoutes",_,"comma-separated paths such as /admin/*, /checkout");}let k=a("bannerVariant",Zf),v=a("bannerPosition",Qf);(k||v)&&(c.bannerConfig={...k?{variant:k}:{},...v?{position:v}:{}});let C={projectId:r,apiKey:n},T=i("endpoint");T&&(/^https?:\/\/[^\s/]+/i.test(T)?C.apiEndpoint=T:s("endpoint",T,"a full http:// or https:// address"));let b=i("debug");return b==="true"?C.debug=true:b!==void 0&&b!=="false"&&s("debug",b,'"true" or "false"'),Object.keys(c).length>0&&(C.widget=c),C}function nm(){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 im(){if(typeof document>"u"||typeof window>"u")return;let t=window;if(t.__mushiLoaderInit)return;let e=nm();if(!e)return;let r=Qu(e.dataset);if(r){t.__mushiLoaderInit=true;try{xn.init(r);}catch{}}}im();
|
|
98
98
|
})();
|