Files
apps.apple.com/assets/indexC16D7IckKX.js

3 lines
14 KiB
JavaScript
Raw Normal View History

2025-11-04 05:03:50 +08:00
import{g as M,s as z,m as V,i as W,l as U,S as X,f as w,e as G,a as J,r as $,c as Q,b as Z,d as x,G as ee,u as te,h as re,j as ne}from"./version~BNUm1OH-k3.js";var ae=Object.defineProperty,ie=Object.defineProperties,oe=Object.getOwnPropertyDescriptors,Y=Object.getOwnPropertySymbols,se=Object.prototype.hasOwnProperty,ce=Object.prototype.propertyIsEnumerable,C=(e,n,t)=>n in e?ae(e,n,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[n]=t,h=(e,n)=>{for(var t in n||(n={}))se.call(n,t)&&C(e,t,n[t]);if(Y)for(var t of Y(n))ce.call(n,t)&&C(e,t,n[t]);return e},b=(e,n)=>ie(e,oe(n)),_e=30;function I(e,n,t=V(e.bufferSize||_e)){let a={};const o=i=>t.drain(i);function r(i){const c=[];if(w(i,(p,y)=>{const u=G(y);if(J(a,u)){const l=P(p,y);e.recordDroppedEvent("ratelimit_backoff",u,l)}else c.push(p)}),c.length===0)return $();const s=Q(i[0],c),f=p=>{w(s,(y,u)=>{const l=P(y,u);e.recordDroppedEvent(p,G(u),l)})},S=(e.getRequest||(p=>({body:Z(p,e.textEncoder)})))(s);if(!S)return $();const v=()=>n(S).then(p=>(p.statusCode!==void 0&&(p.statusCode<200||p.statusCode>=300)&&(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&U.warn("Sentry responded with status code ".concat(p.statusCode," to sent event.")),a=te(a,p),p),p=>{throw f("network_error"),p});return t.add(v).then(p=>p,p=>{if(p instanceof x)return(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&U.error("Skipped sending event because buffer is full."),f("queue_overflow"),$();throw p})}return r.__sentry__baseTransport__=!0,{send:r,flush:o}}function P(e,n){if(!(n!=="event"&&n!=="transaction"))return Array.isArray(e)?e[1]:void 0}var E=ee,g=void 0;function pe(){if(g)return g;if(W(E.fetch))return g=E.fetch.bind(E);const e=E.document;let n=E.fetch;if(e&&typeof e.createElement=="function")try{const t=e.createElement("iframe");t.hidden=!0,e.head.appendChild(t);const a=t.contentWindow;a&&a.fetch&&(n=a.fetch),e.head.removeChild(t)}catch(t){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&U.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",t)}return g=n.bind(E)}function fe(){g=void 0}function ue(e,n=pe()){let t=0,a=0;function o(r){const i=r.body.length;t+=i,a++;const c=h({body:r.body,method:"POST",referrerPolicy:"origin",headers:r.headers,keepalive:t<=6e4&&a<15},e.fetchOptions);try{return n(r.url,c).then(s=>(t-=i,a--,{statusCode:s.status,headers:{"x-sentry-rate-limits":s.headers.get("X-Sentry-Rate-Limits"),"retry-after":s.headers.get("Retry-After")}}))}catch(s){return fe(),t-=i,a--,re(s)}}return I(e,o)}var de=4;function le(e){function n(t){return new ne((a,o)=>{const r=new XMLHttpRequest;r.onerror=o,r.onreadystatechange=()=>{r.readyState===de&&a({statusCode:r.status,headers:{"x-sentry-rate-limits":r.getResponseHeader("X-Sentry-Rate-Limits"),"retry-after":r.getResponseHeader("Retry-After")}})},r.open("POST",t.url);for(const i in t.headers)Object.prototype.hasOwnProperty.call(t.headers,i)&&r.setRequestHeader(i,t.headers[i]);r.send(t.body)})}return I(e,n)}function he(e,n){const[t,a]=e;delete t.dsn;const o={_envelopeHeader:t,project:n.project,v:4};return a.map(r=>{const i=r[0].type;if(i!=="event"&&i!=="transaction")return b(h({},o),{_itemHeader:r[0],_debugLogs:['Items of type "'.concat(i,'" are not supported yet. Dropped the item.')]});const[c,s]=r;return h(b(h({},o),{_itemHeader:c}),s)})}function ye(){return navigator.userAgent===void 0||navigator.appVersion===void 0||navigator.plugins===void 0||navigator.languages===void 0||navigator.languages.length===0||navigator.language===""||navigator.webdriver||navigator.plugins.length===0||/HeadlessChrome/.test(navigator.userAgent)||/headless/i.test(navigator.appVersion)}function j(e){return e||(e="unknown"),"Version mismatch between the installed Sentry SDK version (".concat(e,") and supported SDK version (").concat(D,") by SentryKit. Make sure to use supported version of the Sentry SDK (").concat(D,").")}function L(e){return e!==D?(console.error("[SentryKit Versioning Error] ".concat(j(e)," All sent data will be discarded.")),!1):!0}function ve(){return L(X)}function me(e){var n;const t=(n=e[0].sdk)==null?void 0:n.version
//# sourceMappingURL=index~C16D7IckKX.js.map