@dcl/explore-site 0.0.1-24345714753.commit-c5e29cc → 0.0.1-24347323452.commit-66ae178

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.
Files changed (116) hide show
  1. package/assets/{HomePage-Cayx-aqS.js → HomePage-D6V-mveb.js} +4 -4
  2. package/assets/{QueryClientProvider-LqkYvEWg.js → QueryClientProvider-DAQLID1-.js} +1 -1
  3. package/assets/{SensorsRounded-BqhS1oOd.js → SensorsRounded-CtG4QA9Z.js} +1 -1
  4. package/assets/{__federation_expose_App-D5fURYa7.js → __federation_expose_App-BMMv9eit.js} +1 -1
  5. package/assets/{__federation_fn_import-CUxUDAy-.js → __federation_fn_import-Cw4EhxlG.js} +1 -1
  6. package/assets/__federation_shared_@dcl/{hooks-CvNpE2BS.js → hooks-BZe_CFS-.js} +3 -3
  7. package/assets/__federation_shared_@emotion/react-B8rXWKtg.js +1 -0
  8. package/assets/__federation_shared_@emotion/{styled-d41li-Cb.js → styled-4pT2Mrcu.js} +1 -1
  9. package/assets/{__federation_shared_decentraland-ui2-Bbk1NWyc.js → __federation_shared_decentraland-ui2-DZBO-y4w.js} +4 -4
  10. package/assets/{__federation_shared_react-redux-BjZVfV5U.js → __federation_shared_react-redux-D6ZOWu-c.js} +1 -1
  11. package/assets/{__federation_shared_react-router-dom-B255hKWi.js → __federation_shared_react-router-dom-aY8-4Jtr.js} +1 -1
  12. package/assets/{__federation_shared_viem-CKCF7_5-.js → __federation_shared_viem-4okQOkEY.js} +1 -1
  13. package/assets/{__federation_shared_wagmi-BzeO6Nyv.js → __federation_shared_wagmi-6QeUZhKR.js} +1 -1
  14. package/assets/{add-B1jP8GOn.js → add-BiWewVTL.js} +1 -1
  15. package/assets/{all-wallets-BbHbmEJy.js → all-wallets-CCypuRdk.js} +1 -1
  16. package/assets/{app-store-DS9BJbrX.js → app-store-DVZ78NdP.js} +1 -1
  17. package/assets/{apple-DpKjJvN9.js → apple-DI8wHuXR.js} +1 -1
  18. package/assets/{arrow-bottom-lOMD0MdX.js → arrow-bottom-Cdn25yfn.js} +1 -1
  19. package/assets/{arrow-bottom-circle-DX4t3gH0.js → arrow-bottom-circle-Dr4-FhSy.js} +1 -1
  20. package/assets/{arrow-left-B7WsYEF3.js → arrow-left-Bz1AdNPy.js} +1 -1
  21. package/assets/{arrow-right-B1ANqvnC.js → arrow-right-Bay3z0do.js} +1 -1
  22. package/assets/{arrow-top-CsMpD4AE.js → arrow-top-DI5j-zJ9.js} +1 -1
  23. package/assets/{auto-track-Cm9kFkQK.js → auto-track-D2Yg_-7n.js} +1 -1
  24. package/assets/{bank-Dnus9NnX.js → bank-RZrU0r--.js} +1 -1
  25. package/assets/{basic-DGlw7EN3.js → basic-Cyg6UEiZ.js} +1 -1
  26. package/assets/{browser-DTpaCekD.js → browser-BEYHOERe.js} +1 -1
  27. package/assets/{card-BiKoloeD.js → card-1RwXo47D.js} +1 -1
  28. package/assets/{ccip-DaZj8OQ0.js → ccip-CmnwE6kO.js} +1 -1
  29. package/assets/{checkmark-DgN_nwNU.js → checkmark-BKhQv4dC.js} +1 -1
  30. package/assets/{checkmark-bold-C4uUyv0c.js → checkmark-bold-BlUrDQih.js} +1 -1
  31. package/assets/{chevron-bottom-DRG1eJi7.js → chevron-bottom-C8rXKOMx.js} +1 -1
  32. package/assets/{chevron-left-DbVWJVmq.js → chevron-left-RIhvnx0R.js} +1 -1
  33. package/assets/{chevron-right-BnPIg0cp.js → chevron-right-CFH1HkPm.js} +1 -1
  34. package/assets/{chevron-top-DQ-txiW4.js → chevron-top-CeZ0kvWe.js} +1 -1
  35. package/assets/{chrome-store-Dawe88zJ.js → chrome-store-9FDmlz3B.js} +1 -1
  36. package/assets/{clock-BcPAPgYI.js → clock--qIdT6jS.js} +1 -1
  37. package/assets/{close-BVpl2r1E.js → close-CYQdeqtg.js} +1 -1
  38. package/assets/{coinPlaceholder-DWi0bg6D.js → coinPlaceholder-B72RV-UC.js} +1 -1
  39. package/assets/{compass-D7dtan0A.js → compass-BfGfjqHm.js} +1 -1
  40. package/assets/{copy-hCG4WIZ6.js → copy-CKx8R_ND.js} +1 -1
  41. package/assets/{core-DZ3rf3Ov.js → core-Czc2aVX-.js} +3 -3
  42. package/assets/{createClient-DRXa1ld5.js → createClient-DI-yyeB8.js} +1 -1
  43. package/assets/{cursor-Dmu87g4c.js → cursor-CE5vm2kp.js} +1 -1
  44. package/assets/{cursor-transparent-VHToohFc.js → cursor-transparent-CeJ_IeYW.js} +1 -1
  45. package/assets/{desktop-Dx5u9OAI.js → desktop-BTKUbKLu.js} +1 -1
  46. package/assets/{disconnect-C5-8AgS2.js → disconnect-bD3IIhi7.js} +1 -1
  47. package/assets/{discord-DkCG9i5n.js → discord-CiXirQpM.js} +1 -1
  48. package/assets/{emotion-react.browser.esm-CZP5L8Qk.js → emotion-react.browser.esm-DthAtJ_b.js} +1 -1
  49. package/assets/{emotion-use-insertion-effect-with-fallbacks.browser.esm-C9ZfXHMo.js → emotion-use-insertion-effect-with-fallbacks.browser.esm-T2Tuze4y.js} +1 -1
  50. package/assets/{etherscan-DFLECSU-.js → etherscan-Cu9ire2O.js} +1 -1
  51. package/assets/{exclamation-triangle-Bm1MEMw2.js → exclamation-triangle-B4byBjRl.js} +1 -1
  52. package/assets/{extension-D6qHSOqO.js → extension-D5lNpd1U.js} +1 -1
  53. package/assets/{external-link-DnPDXXfL.js → external-link-DZBoiaCZ.js} +1 -1
  54. package/assets/{facebook-oLbAlV2X.js → facebook-D_iyzARm.js} +1 -1
  55. package/assets/{farcaster-Qw2wLyU_.js → farcaster-Bdc2pI3F.js} +1 -1
  56. package/assets/{filters-BBTBCO9n.js → filters-DQns37Iv.js} +1 -1
  57. package/assets/{github-B5hmprPO.js → github-Dk6Jn9QC.js} +1 -1
  58. package/assets/{google-B8Ex8Qgi.js → google-Dc6EkFhG.js} +1 -1
  59. package/assets/{help-circle-ClCjgCm4.js → help-circle-Ce3TG0Cf.js} +1 -1
  60. package/assets/{id-BLhpNKh9.js → id-C6KbbJ--.js} +1 -1
  61. package/assets/{image-8Xt2Zhfl.js → image-DrQbraG8.js} +1 -1
  62. package/assets/{index-CSRViGQv.js → index-B1Qw9Ysc.js} +1 -1
  63. package/assets/{index-BaeNprJ6.js → index-B3NvZPz9.js} +1 -1
  64. package/assets/{index-Y9bdvg-5.js → index-B8dCIvh9.js} +1 -1
  65. package/assets/{index-qWrS70OK.js → index-BXHM3pMM.js} +3 -3
  66. package/assets/{index-CXXhfUVF.js → index-DKBIymEi.js} +2 -2
  67. package/assets/{index-Bg6Td2zb.js → index-DqrsvfXo.js} +1 -1
  68. package/assets/{index-CNHw8b42.js → index-Dw1wySAn.js} +1 -1
  69. package/assets/index-Dy0yjznp.js +1 -1
  70. package/assets/{index-pP59MxIA.js → index-DzD7KT9k.js} +1 -1
  71. package/assets/index-VfkM29PH.js +1 -1
  72. package/assets/{index.es-Cucfjcxl.js → index.es-B0jK_QO-.js} +3 -3
  73. package/assets/{info-iYiEoszH.js → info-C0D8pffU.js} +1 -1
  74. package/assets/{info-circle-Helis67o.js → info-circle-BiCleDE8.js} +1 -1
  75. package/assets/jsx-runtime-B1l0k91v.js +1 -1
  76. package/assets/{lightbulb-BS9uJHot.js → lightbulb-Fj_H2VCW.js} +1 -1
  77. package/assets/{localBatchGatewayRequest-Zago36-3.js → localBatchGatewayRequest-B7t5Tpma.js} +1 -1
  78. package/assets/{mail-D3hVXype.js → mail-DD4cyKde.js} +1 -1
  79. package/assets/{mobile-CAwIlAMb.js → mobile-BLAaxpjp.js} +1 -1
  80. package/assets/{more-Dj5j8V_O.js → more-BIo3nlRi.js} +1 -1
  81. package/assets/{network-placeholder-BMws_VGI.js → network-placeholder-f5BpXzBo.js} +1 -1
  82. package/assets/{nftPlaceholder-CKljhPuu.js → nftPlaceholder-OrEKKEpX.js} +1 -1
  83. package/assets/{off-CqfEbtg1.js → off-qcY6xMeJ.js} +1 -1
  84. package/assets/{play-store-PZAqLb5W.js → play-store-B63b8J_i.js} +1 -1
  85. package/assets/{plus-C5S9Q7Bj.js → plus-CPOBBoal.js} +1 -1
  86. package/assets/{preload-helper-DvW1yRfn.js → preload-helper-Bf6P0chZ.js} +1 -1
  87. package/assets/{qr-code-D-b-4x9P.js → qr-code-B2BeuRzC.js} +1 -1
  88. package/assets/{recycle-horizontal-DHVcHaVl.js → recycle-horizontal-BmSnrXT-.js} +1 -1
  89. package/assets/{refresh-DGzgtVTI.js → refresh-DTspwpm1.js} +1 -1
  90. package/assets/remoteEntry.js +1 -1
  91. package/assets/{reown-logo-CQOTc4nl.js → reown-logo-CULSug9i.js} +1 -1
  92. package/assets/{search-BJJ6KujM.js → search-BjfNIyFi.js} +1 -1
  93. package/assets/{secp256k1-BRbKWSko.js → secp256k1-Cr4JWMkb.js} +1 -1
  94. package/assets/{send-CHm11rKk.js → send-CwN36rlO.js} +1 -1
  95. package/assets/{swapHorizontal-BFnPIg9r.js → swapHorizontal-CmMvC6wr.js} +1 -1
  96. package/assets/{swapHorizontalBold-BGsQTGW-.js → swapHorizontalBold-BxKoODHm.js} +1 -1
  97. package/assets/{swapHorizontalMedium--s2Qaa8V.js → swapHorizontalMedium-CzUUBt8i.js} +1 -1
  98. package/assets/{swapHorizontalRoundedBold-D07xBZnD.js → swapHorizontalRoundedBold-K88FxsS9.js} +1 -1
  99. package/assets/{swapVertical-CoeD7v2V.js → swapVertical-CSlbGxlU.js} +1 -1
  100. package/assets/{telegram-D0QEUHlB.js → telegram-C-Z6gZhD.js} +1 -1
  101. package/assets/{three-dots-CVFmYfS-.js → three-dots-CXLRBoKQ.js} +1 -1
  102. package/assets/{twitch-D7Dl6jAX.js → twitch-FmYPRPZ3.js} +1 -1
  103. package/assets/{twitterIcon-DNhb3SkB.js → twitterIcon-tjiQL1DM.js} +1 -1
  104. package/assets/{uid-D1hgl1uu.js → uid-CtW3Zgnp.js} +3 -3
  105. package/assets/{verify-Dg_vg3OF.js → verify-CM9wD1IM.js} +1 -1
  106. package/assets/{verify-filled-D-AxOpyv.js → verify-filled-B6CzCgX0.js} +1 -1
  107. package/assets/{w3m-modal-BLqw1mnt.js → w3m-modal-Ck8jEkw7.js} +1 -1
  108. package/assets/{wallet-BGwbw46g.js → wallet-CKX59GDv.js} +1 -1
  109. package/assets/{wallet-placeholder-s5V_Fs1C.js → wallet-placeholder-ZskzQR-l.js} +1 -1
  110. package/assets/{walletconnect-BK-z6mal.js → walletconnect-DdcJm4E2.js} +1 -1
  111. package/assets/{warning-circle-oPNw2TSm.js → warning-circle-BE3Stp0y.js} +1 -1
  112. package/assets/{webSocket-DIG0WL1j.js → webSocket-b_H0rYq3.js} +1 -1
  113. package/assets/{x-CkipKMj3.js → x-CPGaXvQ5.js} +1 -1
  114. package/index.html +14 -14
  115. package/package.json +3 -3
  116. package/assets/__federation_shared_@emotion/react-7COqedfj.js +0 -1
@@ -1,5 +1,5 @@
1
- const __vite__fileDeps=["assets/index-CXXhfUVF.js","assets/preload-helper-DvW1yRfn.js","assets/tslib.es6-DbvBTznf.js","assets/_commonjsHelpers-C4iS2aBk.js","assets/inherits_browser-BlmhoU4v.js"],__vite__mapDeps=i=>i.map(i=>__vite__fileDeps[i]);
2
- import{c as le}from"../_commonjsHelpers-C4iS2aBk.js";import{a as uw,d as lw,b as dw}from"../index-pEp_vRda.js";import{r as fw}from"../___vite-browser-external_commonjs-proxy-BqV5D26a.js";import{_ as hw}from"../preload-helper-DvW1yRfn.js";import{importShared as kn}from"../__federation_fn_import-CUxUDAy-.js";import{j as e_}from"../jsx-runtime-B1l0k91v.js";import{b as Be,d as dr,e as pw,c as Br}from"../tslib.es6-DbvBTznf.js";var t_={},zf={};Object.defineProperty(zf,"__esModule",{value:!0});var n_={},Du={},Bu={},r_={},jd={exports:{}};/*! eth-connect {
1
+ const __vite__fileDeps=["assets/index-DKBIymEi.js","assets/preload-helper-Bf6P0chZ.js","assets/tslib.es6-DbvBTznf.js","assets/_commonjsHelpers-C4iS2aBk.js","assets/inherits_browser-BlmhoU4v.js"],__vite__mapDeps=i=>i.map(i=>__vite__fileDeps[i]);
2
+ import{c as le}from"../_commonjsHelpers-C4iS2aBk.js";import{a as uw,d as lw,b as dw}from"../index-pEp_vRda.js";import{r as fw}from"../___vite-browser-external_commonjs-proxy-BqV5D26a.js";import{_ as hw}from"../preload-helper-Bf6P0chZ.js";import{importShared as kn}from"../__federation_fn_import-Cw4EhxlG.js";import{j as e_}from"../jsx-runtime-B1l0k91v.js";import{b as Be,d as dr,e as pw,c as Br}from"../tslib.es6-DbvBTznf.js";var t_={},zf={};Object.defineProperty(zf,"__esModule",{value:!0});var n_={},Du={},Bu={},r_={},jd={exports:{}};/*! eth-connect {
3
3
  "date": "2024-01-01T15:10:57.542Z",
4
4
  "commit": "b2fa64415d297ccce86d2a5d59d8705388f77db9",
5
5
  "ref": "refs/tags/6.2.4"
@@ -511,7 +511,7 @@ or you can use record.mirror to access the mirror instance during recording.`;le
511
511
  `).reduce((n,r)=>{const[i,o]=r.split(": ");return o&&(n[i.toLowerCase()]=o),n},{}):{}}function cB(e){const t=[];try{return[e.responseText]}catch(n){t.push(n)}try{return uB(e.response,e.responseType)}catch(n){t.push(n)}return je&&$e.warn("Failed to get xhr response body",...t),[void 0]}function uB(e,t){try{if(typeof e=="string")return[e];if(e instanceof Document)return[e.body.outerHTML];if(t==="json"&&e&&typeof e=="object")return[JSON.stringify(e)];if(!e)return[void 0]}catch(n){return je&&$e.exception(n,"Failed to serialize body",e),[void 0,"BODY_PARSE_ERROR"]}return je&&$e.log("Skipping network body because of body type",e),[void 0,"UNPARSEABLE_BODY_TYPE"]}function lB(e,t){try{const n=t==="json"&&e&&typeof e=="object"?JSON.stringify(e):e;return El(n)}catch{return}}function dB(e){const t=Re();try{const{networkDetailAllowUrls:n,networkDetailDenyUrls:r,networkCaptureBodies:i,networkRequestHeaders:o,networkResponseHeaders:s}=e.getOptions(),a={replay:e,networkDetailAllowUrls:n,networkDetailDenyUrls:r,networkCaptureBodies:i,networkRequestHeaders:o,networkResponseHeaders:s};t&&t.on("beforeAddBreadcrumb",(c,u)=>fB(a,c,u))}catch{}}function fB(e,t,n){if(t.data)try{hB(t)&&mB(n)&&(oB(t,n),iB(t,n,e)),pB(t)&&gB(n)&&(YD(t,n),qD(t,n,e))}catch(r){je&&$e.exception(r,"Error when enriching network breadcrumb")}}function hB(e){return e.category==="xhr"}function pB(e){return e.category==="fetch"}function mB(e){return e?.xhr}function gB(e){return e?.response}function yB(e){const t=Re();rE(VL(e)),ml($D(e)),PD(e),dB(e);const n=UD(e);F0(n),t&&(t.on("beforeSendEvent",ND(e)),t.on("afterSendEvent",CD(e)),t.on("createDsc",r=>{const i=e.getSessionId();i&&e.isEnabled()&&e.recordingMode==="session"&&e.checkAndHandleExpiredSession()&&(r.replay_id=i)}),t.on("spanStart",r=>{e.lastActiveSpan=r}),t.on("spanEnd",r=>{e.lastActiveSpan=r}),t.on("beforeSendFeedback",async(r,i)=>{const o=e.getSessionId();i?.includeReplay&&e.isEnabled()&&o&&r.contexts?.feedback&&(r.contexts.feedback.source==="api"&&await e.sendBufferedReplayOrFlush(),r.contexts.feedback.replay_id=o)}),t.on("openFeedbackWidget",async()=>{await e.sendBufferedReplayOrFlush()}))}async function _B(e){try{return Promise.all(vl(e,[bB(Nt.performance.memory)]))}catch{return[]}}function bB(e){const{jsHeapSizeLimit:t,totalJSHeapSize:n,usedJSHeapSize:r}=e,i=Date.now()/1e3;return{type:"memory",name:"memory",start:i,end:i,data:{memory:{jsHeapSizeLimit:t,totalJSHeapSize:n,usedJSHeapSize:r}}}}function vB(e,t,n){return XC(e,t,{...n,setTimeoutImpl:ga})}const Cc=We.navigator;function EB(){return/iPhone|iPad|iPod/i.test(Cc?.userAgent??"")||/Macintosh/i.test(Cc?.userAgent??"")&&Cc?.maxTouchPoints&&Cc?.maxTouchPoints>1?{sampling:{mousemove:!1}}:{}}function SB(e){let t=!1;return(n,r)=>{if(!e.checkAndHandleExpiredSession()){je&&$e.warn("Received replay event after session expired.");return}const i=r||!t;t=!0,e.clickDetector&&jL(e.clickDetector,n),e.addUpdate(()=>{if(e.recordingMode==="buffer"&&i&&e.setInitialState(),!dp(e,n,i))return!0;if(!i)return!1;const o=e.session;if(TB(e,i),e.recordingMode==="buffer"&&o&&e.eventBuffer){const s=e.eventBuffer.getEarliestTimestamp();s&&(je&&$e.log(`Updating session start time to earliest event in buffer to ${new Date(s)}`),o.started=s,e.getOptions().stickySession&&lp(o))}return o?.previousSessionId||e.recordingMode==="session"&&e.flush(),!0})}}function wB(e){const t=e.getOptions();return{type:it.Custom,timestamp:Date.now(),data:{tag:"options",payload:{shouldRecordCanvas:e.isRecordingCanvas(),sessionSampleRate:t.sessionSampleRate,errorSampleRate:t.errorSampleRate,useCompressionOption:t.useCompression,blockAllMedia:t.blockAllMedia,maskAllText:t.maskAllText,maskAllInputs:t.maskAllInputs,useCompression:e.eventBuffer?e.eventBuffer.type==="worker":!1,networkDetailHasUrls:t.networkDetailAllowUrls.length>0,networkCaptureBodies:t.networkCaptureBodies,networkRequestHasHeaders:t.networkRequestHeaders.length>0,networkResponseHasHeaders:t.networkResponseHeaders.length>0}}}}function TB(e,t){!t||!e.session||e.session.segmentId!==0||dp(e,wB(e),!1)}function IB(e){if(!e)return null;try{return e.nodeType===e.ELEMENT_NODE?e:e.parentElement}catch{return null}}function AB(e,t,n,r){return Qr(C0(e,Ah(e),r,n),[[{type:"replay_event"},e],[{type:"replay_recording",length:typeof t=="string"?new TextEncoder().encode(t).length:t.length},t]])}function OB({recordingData:e,headers:t}){let n;const r=`${JSON.stringify(t)}
512
512
  `;if(typeof e=="string")n=`${r}${e}`;else{const o=new TextEncoder().encode(r);n=new Uint8Array(o.length+e.length),n.set(o),n.set(e,o.length)}return n}async function CB({client:e,scope:t,replayId:n,event:r}){const i=typeof e._integrations=="object"&&e._integrations!==null&&!Array.isArray(e._integrations)?Object.keys(e._integrations):void 0,o={event_id:n,integrations:i};e.emit("preprocessEvent",r,o);const s=await x0(e.getOptions(),r,o,t,e,Qt());if(!s)return null;e.emit("postprocessEvent",s,o),s.platform=s.platform||"javascript";const a=e.getSdkMetadata(),{name:c,version:u}=a?.sdk||{};return s.sdk={...s.sdk,name:c||"sentry.javascript.unknown",version:u||"0.0.0"},s}async function RB({recordingData:e,replayId:t,segmentId:n,eventContext:r,timestamp:i,session:o}){const s=OB({recordingData:e,headers:{segment_id:n}}),{urls:a,errorIds:c,traceIds:u,initialTimestamp:h}=r,d=Re(),m=tt(),g=d?.getTransport(),E=d?.getDsn();if(!d||!g||!E||!o.sampled)return Xr({});const T={type:ix,replay_start_timestamp:h/1e3,timestamp:i/1e3,error_ids:c,trace_ids:u,urls:a,replay_id:t,segment_id:n,replay_type:o.sampled},L=await CB({scope:m,client:d,replayId:t,event:T});if(!L)return d.recordDroppedEvent("event_processor","replay"),je&&$e.log("An event processor returned `null`, will not send event."),Xr({});delete L.sdkProcessingMetadata;const H=AB(L,s,E,d.getOptions().tunnel);let K;try{K=await g.send(H)}catch(F){const J=new Error(Qh);try{J.cause=F}catch{}throw J}if(typeof K.statusCode=="number"&&(K.statusCode<200||K.statusCode>=300))throw new lS(K.statusCode);const V=Z0({},K);if(J0(V,"replay"))throw new hp(V);return K}class lS extends Error{constructor(t){super(`Transport returned status code ${t}`)}}class hp extends Error{constructor(t){super("Rate limit hit"),this.rateLimits=t}}async function dS(e,t={count:0,interval:lx}){const{recordingData:n,onError:r}=e;if(n.length)try{return await RB(e),!0}catch(i){if(i instanceof lS||i instanceof hp)throw i;if(L0("Replays",{_retryCount:t.count}),r&&r(i),t.count>=dx){const o=new Error(`${Qh} - max retries exceeded`);try{o.cause=i}catch{}throw o}return t.interval*=++t.count,new Promise((o,s)=>{ga(async()=>{try{await dS(e,t),o(!0)}catch(a){s(a)}},t.interval)})}}const fS="__THROTTLED",MB="__SKIPPED";function NB(e,t,n){const r=new Map,i=a=>{const c=a-n;r.forEach((u,h)=>{h<c&&r.delete(h)})},o=()=>[...r.values()].reduce((a,c)=>a+c,0);let s=!1;return(...a)=>{const c=Math.floor(Date.now()/1e3);if(i(c),o()>=t){const h=s;return s=!0,h?MB:fS}s=!1;const u=r.get(c)||0;return r.set(c,u+1),e(...a)}}class kB{constructor({options:t,recordingOptions:n}){this.eventBuffer=null,this.performanceEntries=[],this.replayPerformanceEntries=[],this.recordingMode="session",this.timeouts={sessionIdlePause:ox,sessionIdleExpire:sx},this._lastActivity=Date.now(),this._isEnabled=!1,this._isPaused=!1,this._requiresManualStart=!1,this._hasInitializedCoreListeners=!1,this._context={errorIds:new Set,traceIds:new Set,urls:[],initialTimestamp:Date.now(),initialUrl:""},this._recordingOptions=n,this._options=t,this._debouncedFlush=vB(()=>this._flush(),this._options.flushMinDelay,{maxWait:this._options.flushMaxDelay}),this._throttledAddEvent=NB((s,a)=>ID(this,s,a),300,5);const{slowClickTimeout:r,slowClickIgnoreSelectors:i}=this.getOptions(),o=r?{threshold:Math.min(fx,r),timeout:r,scrollTimeout:hx,ignoreSelector:i?i.join(","):""}:void 0;if(o&&(this.clickDetector=new BL(this,o)),je){const s=t._experiments;$e.setConfig({captureExceptions:!!s.captureExceptions,traceInternals:!!s.traceInternals})}this._handleVisibilityChange=()=>{Nt.document.visibilityState==="visible"?this._doChangeToForegroundTasks():this._doChangeToBackgroundTasks()},this._handleWindowBlur=()=>{const s=wr({category:"ui.blur"});this._doChangeToBackgroundTasks(s)},this._handleWindowFocus=()=>{const s=wr({category:"ui.focus"});this._doChangeToForegroundTasks(s)},this._handleKeyboardEvent=s=>{KL(this,s)}}getContext(){return this._context}isEnabled(){return this._isEnabled}isPaused(){return this._isPaused}isRecordingCanvas(){return!!this._canvas}getOptions(){return this._options}handleException(t){je&&$e.exception(t),this._options.onError&&this._options.onError(t)}initializeSampling(t){const{errorSampleRate:n,sessionSampleRate:r}=this._options,i=n<=0&&r<=0;if(this._requiresManualStart=i,!i){if(this._initializeSessionForSampling(t),!this.session){je&&$e.exception(new Error("Unable to initialize and create session"));return}this.session.sampled!==!1&&(this.recordingMode=this.session.sampled==="buffer"&&this.session.segmentId===0?"buffer":"session",je&&$e.infoTick(`Starting replay in ${this.recordingMode} mode`),this._initializeRecording())}}start(){if(this._isEnabled&&this.recordingMode==="session"){je&&$e.log("Recording is already in progress");return}if(this._isEnabled&&this.recordingMode==="buffer"){je&&$e.log("Buffering is in progress, call `flush()` to save the replay");return}je&&$e.infoTick("Starting replay in session mode"),this._updateUserActivity();const t=Sd({maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire},{stickySession:this._options.stickySession,sessionSampleRate:1,allowBuffering:!1});this.session=t,this.recordingMode="session",this._initializeRecording()}startBuffering(){if(this._isEnabled){je&&$e.log("Buffering is in progress, call `flush()` to save the replay");return}je&&$e.infoTick("Starting replay in buffer mode");const t=Sd({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration},{stickySession:this._options.stickySession,sessionSampleRate:0,allowBuffering:!0});this.session=t,this.recordingMode="buffer",this._initializeRecording()}startRecording(){try{const t=this._canvas;this._stopRecording=$r({...this._recordingOptions,...this.recordingMode==="buffer"?{checkoutEveryNms:ux}:this._options._experiments.continuousCheckout&&{checkoutEveryNms:Math.max(36e4,this._options._experiments.continuousCheckout)},emit:SB(this),...EB(),onMutation:this._onMutationHandler.bind(this),...t?{recordCanvas:t.recordCanvas,getCanvasManager:t.getCanvasManager,sampling:t.sampling,dataURLOptions:t.dataURLOptions}:{}})}catch(t){this.handleException(t)}}stopRecording(){try{return this._stopRecording&&(this._stopRecording(),this._stopRecording=void 0),!0}catch(t){return this.handleException(t),!1}}async stop({forceFlush:t=!1,reason:n}={}){if(this._isEnabled){this._isEnabled=!1,this.recordingMode="buffer";try{je&&$e.log(`Stopping Replay${n?` triggered by ${n}`:""}`),oS(),this._removeListeners(),this.stopRecording(),this._debouncedFlush.cancel(),t&&await this._flush({force:!0}),this.eventBuffer?.destroy(),this.eventBuffer=null,vD(this)}catch(r){this.handleException(r)}}}pause(){this._isPaused||(this._isPaused=!0,this.stopRecording(),je&&$e.log("Pausing replay"))}resume(){!this._isPaused||!this._checkSession()||(this._isPaused=!1,this.startRecording(),je&&$e.log("Resuming replay"))}async sendBufferedReplayOrFlush({continueRecording:t=!0}={}){if(this.recordingMode==="session")return this.flushImmediate();const n=Date.now();je&&$e.log("Converting buffer to session"),await this.flushImmediate();const r=this.stopRecording();!t||!r||this.recordingMode!=="session"&&(this.recordingMode="session",this.session&&(this._updateUserActivity(n),this._updateSessionActivity(n),this._maybeSaveSession()),this.startRecording())}addUpdate(t){const n=t();this.recordingMode==="buffer"||!this._isEnabled||n!==!0&&this._debouncedFlush()}triggerUserActivity(){if(this._updateUserActivity(),!this._stopRecording){if(!this._checkSession())return;this.resume();return}this.checkAndHandleExpiredSession(),this._updateSessionActivity()}updateUserActivity(){this._updateUserActivity(),this._updateSessionActivity()}conditionalFlush(){return this.recordingMode==="buffer"?Promise.resolve():this.flushImmediate()}flush(){return this._debouncedFlush()}flushImmediate(){return this._debouncedFlush(),this._debouncedFlush.flush()}cancelFlush(){this._debouncedFlush.cancel()}getSessionId(){return this.session?.id}checkAndHandleExpiredSession(){if(this._lastActivity&&Af(this._lastActivity,this.timeouts.sessionIdlePause)&&this.session&&this.session.sampled==="session"){this.pause();return}return!!this._checkSession()}setInitialState(){const t=`${Nt.location.pathname}${Nt.location.hash}${Nt.location.search}`,n=`${Nt.location.origin}${t}`;this.performanceEntries=[],this.replayPerformanceEntries=[],this._clearContext(),this._context.initialUrl=n,this._context.initialTimestamp=Date.now(),this._context.urls.push(n)}throttledAddEvent(t,n){const r=this._throttledAddEvent(t,n);if(r===fS){const i=wr({category:"replay.throttled"});this.addUpdate(()=>!dp(this,{type:ML,timestamp:i.timestamp||0,data:{tag:"breadcrumb",payload:i,metric:!0}}))}return r}getCurrentRoute(){const t=this.lastActiveSpan||en(),n=t&&Zt(t),i=(n&&Qe(n).data||{})[Hn];if(!(!n||!i||!["route","custom"].includes(i)))return Qe(n).description}_initializeRecording(){this.setInitialState(),this._updateSessionActivity(),this.eventBuffer=yD({useCompression:this._options.useCompression,workerUrl:this._options.workerUrl}),this._removeListeners(),this._addListeners(),this._isEnabled=!0,this._isPaused=!1,this.startRecording()}_initializeSessionForSampling(t){const n=this._options.errorSampleRate>0,r=Sd({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration,previousSessionId:t},{stickySession:this._options.stickySession,sessionSampleRate:this._options.sessionSampleRate,allowBuffering:n});this.session=r}_checkSession(){if(!this.session)return!1;const t=this.session;return tS(t,{sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration})?(this._refreshSession(t),!1):!0}async _refreshSession(t){this._isEnabled&&(await this.stop({reason:"refresh session"}),this.initializeSampling(t.id))}_addListeners(){try{Nt.document.addEventListener("visibilitychange",this._handleVisibilityChange),Nt.addEventListener("blur",this._handleWindowBlur),Nt.addEventListener("focus",this._handleWindowFocus),Nt.addEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.addListeners(),this._hasInitializedCoreListeners||(yB(this),this._hasInitializedCoreListeners=!0)}catch(t){this.handleException(t)}this._performanceCleanupCallback=lD(this)}_removeListeners(){try{Nt.document.removeEventListener("visibilitychange",this._handleVisibilityChange),Nt.removeEventListener("blur",this._handleWindowBlur),Nt.removeEventListener("focus",this._handleWindowFocus),Nt.removeEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.removeListeners(),this._performanceCleanupCallback&&this._performanceCleanupCallback()}catch(t){this.handleException(t)}}_doChangeToBackgroundTasks(t){!this.session||eS(this.session,{maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire})||(t&&this._createCustomBreadcrumb(t),this.conditionalFlush())}_doChangeToForegroundTasks(t){if(!this.session)return;if(!this.checkAndHandleExpiredSession()){je&&$e.log("Document has become active, but session has expired");return}t&&this._createCustomBreadcrumb(t)}_updateUserActivity(t=Date.now()){this._lastActivity=t}_updateSessionActivity(t=Date.now()){this.session&&(this.session.lastActivity=t,this._maybeSaveSession())}_createCustomBreadcrumb(t){this.addUpdate(()=>{this.throttledAddEvent({type:it.Custom,timestamp:t.timestamp||0,data:{tag:"breadcrumb",payload:t}})})}_addPerformanceEntries(){let t=eD(this.performanceEntries).concat(this.replayPerformanceEntries);if(this.performanceEntries=[],this.replayPerformanceEntries=[],this._requiresManualStart){const n=this._context.initialTimestamp/1e3;t=t.filter(r=>r.start>=n)}return Promise.all(vl(this,t))}_clearContext(){this._context.errorIds.clear(),this._context.traceIds.clear(),this._context.urls=[]}_updateInitialTimestampFromEventBuffer(){const{session:t,eventBuffer:n}=this;if(!t||!n||this._requiresManualStart||t.segmentId)return;const r=n.getEarliestTimestamp();r&&r<this._context.initialTimestamp&&(this._context.initialTimestamp=r)}_popEventContext(){const t={initialTimestamp:this._context.initialTimestamp,initialUrl:this._context.initialUrl,errorIds:Array.from(this._context.errorIds),traceIds:Array.from(this._context.traceIds),urls:this._context.urls};return this._clearContext(),t}async _runFlush(){const t=this.getSessionId();if(!this.session||!this.eventBuffer||!t){je&&$e.error("No session or eventBuffer found to flush.");return}if(await this._addPerformanceEntries(),!!this.eventBuffer?.hasEvents&&(await _B(this),!!this.eventBuffer&&t===this.getSessionId()))try{this._updateInitialTimestampFromEventBuffer();const n=Date.now();if(n-this._context.initialTimestamp>this._options.maxReplayDuration+3e4)throw new Error("Session is too long, not sending replay");const r=this._popEventContext(),i=this.session.segmentId++;this._maybeSaveSession();const o=await this.eventBuffer.finish();await dS({replayId:t,recordingData:o,segmentId:i,eventContext:r,session:this.session,timestamp:n,onError:s=>this.handleException(s)})}catch(n){this.handleException(n),this.stop({reason:"sendReplay"});const r=Re();if(r){const i=n instanceof hp?"ratelimit_backoff":"send_error";r.recordDroppedEvent(i,"replay")}}}async _flush({force:t=!1}={}){if(!this._isEnabled&&!t)return;if(!this.checkAndHandleExpiredSession()){je&&$e.error("Attempting to finish replay event after session expired.");return}if(!this.session)return;const n=this.session.started,i=Date.now()-n;this._debouncedFlush.cancel();const o=i<this._options.minReplayDuration,s=i>this._options.maxReplayDuration+5e3;if(o||s){je&&$e.log(`Session duration (${Math.floor(i/1e3)}s) is too ${o?"short":"long"}, not sending replay.`),o&&this._debouncedFlush();return}const a=this.eventBuffer;a&&this.session.segmentId===0&&!a.hasCheckout&&je&&$e.log("Flushing initial segment without checkout.");const c=!!this._flushLock;this._flushLock||(this._flushLock=this._runFlush());try{await this._flushLock}catch(u){this.handleException(u)}finally{this._flushLock=void 0,c&&this._debouncedFlush()}}_maybeSaveSession(){this.session&&this._options.stickySession&&lp(this.session)}_onMutationHandler(t){const{ignoreMutations:n}=this._options._experiments;if(n?.length&&t.some(a=>{const c=IB(a.target),u=n.join(",");return c?.matches(u)}))return!1;const r=t.length,i=this._options.mutationLimit,o=this._options.mutationBreadcrumbLimit,s=i&&r>i;if(r>o||s){const a=wr({category:"replay.mutations",data:{count:r,limit:s}});this._createCustomBreadcrumb(a)}return s?(this.stop({reason:"mutationLimit",forceFlush:this.recordingMode==="session"}),!1):!0}}function ws(e,t){return[...e,...t].join(",")}function PB({mask:e,unmask:t,block:n,unblock:r,ignore:i}){const o=["base","iframe[srcdoc]:not([src])"],s=ws(e,[".sentry-mask","[data-sentry-mask]"]),a=ws(t,[]);return{maskTextSelector:s,unmaskTextSelector:a,blockSelector:ws(n,[".sentry-block","[data-sentry-block]",...o]),unblockSelector:ws(r,[]),ignoreSelector:ws(i,[".sentry-ignore","[data-sentry-ignore]",'input[type="file"]'])}}function xB({el:e,key:t,maskAttributes:n,maskAllText:r,privacyOptions:i,value:o}){return!r||i.unmaskTextSelector&&e.matches(i.unmaskTextSelector)?o:n.includes(t)||t==="value"&&e.tagName==="INPUT"&&["submit","button"].includes(e.getAttribute("type")||"")?o.replace(/[\S]/g,"*"):o}const Xg='img,image,svg,video,object,picture,embed,map,audio,link[rel="icon"],link[rel="apple-touch-icon"]',LB=["content-length","content-type","accept"];let Kg=!1;const DB=e=>new BB(e);class BB{constructor({flushMinDelay:t=ax,flushMaxDelay:n=cx,minReplayDuration:r=px,maxReplayDuration:i=Cg,stickySession:o=!0,useCompression:s=!0,workerUrl:a,_experiments:c={},maskAllText:u=!0,maskAllInputs:h=!0,blockAllMedia:d=!0,mutationBreadcrumbLimit:m=750,mutationLimit:g=1e4,slowClickTimeout:E=7e3,slowClickIgnoreSelectors:T=[],networkDetailAllowUrls:L=[],networkDetailDenyUrls:H=[],networkCaptureBodies:K=!0,networkRequestHeaders:V=[],networkResponseHeaders:F=[],mask:J=[],maskAttributes:D=["title","placeholder","aria-label"],unmask:W=[],block:ue=[],unblock:P=[],ignore:$=[],maskFn:G,beforeAddRecordingEvent:q,beforeErrorSampling:ie,onError:fe}={}){this.name="Replay";const ce=PB({mask:J,unmask:W,block:ue,unblock:P,ignore:$});if(this._recordingOptions={maskAllInputs:h,maskAllText:u,maskInputOptions:{password:!0},maskTextFn:G,maskInputFn:G,maskAttributeFn:(re,X,_e)=>xB({maskAttributes:D,maskAllText:u,privacyOptions:ce,key:re,value:X,el:_e}),...ce,slimDOMOptions:"all",inlineStylesheet:!0,inlineImages:!1,collectFonts:!0,errorHandler:re=>{try{re.__rrweb__=!0}catch{}},recordCrossOriginIframes:!!c.recordCrossOriginIframes},this._initialOptions={flushMinDelay:t,flushMaxDelay:n,minReplayDuration:Math.min(r,mx),maxReplayDuration:Math.min(i,Cg),stickySession:o,useCompression:s,workerUrl:a,blockAllMedia:d,maskAllInputs:h,maskAllText:u,mutationBreadcrumbLimit:m,mutationLimit:g,slowClickTimeout:E,slowClickIgnoreSelectors:T,networkDetailAllowUrls:L,networkDetailDenyUrls:H,networkCaptureBodies:K,networkRequestHeaders:Jg(V),networkResponseHeaders:Jg(F),beforeAddRecordingEvent:q,beforeErrorSampling:ie,onError:fe,_experiments:c},this._initialOptions.blockAllMedia&&(this._recordingOptions.blockSelector=this._recordingOptions.blockSelector?`${this._recordingOptions.blockSelector},${Xg}`:Xg),this._isInitialized&&uf())throw new Error("Multiple Sentry Session Replay instances are not supported");this._isInitialized=!0}get _isInitialized(){return Kg}set _isInitialized(t){Kg=t}afterAllSetup(t){!uf()||this._replay||(this._setup(t),this._initialize(t))}start(){this._replay&&this._replay.start()}startBuffering(){this._replay&&this._replay.startBuffering()}stop(){return this._replay?this._replay.stop({forceFlush:this._replay.recordingMode==="session"}):Promise.resolve()}flush(t){return this._replay?this._replay.isEnabled()?this._replay.sendBufferedReplayOrFlush(t):(this._replay.start(),Promise.resolve()):Promise.resolve()}getReplayId(){if(this._replay?.isEnabled())return this._replay.getSessionId()}getRecordingMode(){if(this._replay?.isEnabled())return this._replay.recordingMode}_initialize(t){this._replay&&(this._maybeLoadFromReplayCanvasIntegration(t),this._replay.initializeSampling())}_setup(t){const n=FB(this._initialOptions,t);this._replay=new kB({options:n,recordingOptions:this._recordingOptions})}_maybeLoadFromReplayCanvasIntegration(t){try{const n=t.getIntegrationByName("ReplayCanvas");if(!n)return;this._replay._canvas=n.getOptions()}catch{}}}function FB(e,t){const n=t.getOptions(),r={sessionSampleRate:0,errorSampleRate:0,...e},i=qi(n.replaysSessionSampleRate),o=qi(n.replaysOnErrorSampleRate);return i==null&&o==null&&Ti(()=>{console.warn("Replay is disabled because neither `replaysSessionSampleRate` nor `replaysOnErrorSampleRate` are set.")}),i!=null&&(r.sessionSampleRate=i),o!=null&&(r.errorSampleRate=o),r}function Jg(e){return[...LB,...e.map(t=>t.toLowerCase())]}function HB(){return Re()?.getIntegrationByName("Replay")}var UB=Object.defineProperty,jB=(e,t,n)=>t in e?UB(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Zg=(e,t,n)=>jB(e,typeof t!="symbol"?t+"":t,n);class $B{constructor(){Zg(this,"idNodeMap",new Map),Zg(this,"nodeMetaMap",new WeakMap)}getId(t){return t?this.getMeta(t)?.id??-1:-1}getNode(t){return this.idNodeMap.get(t)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(t){return this.nodeMetaMap.get(t)||null}removeNodeFromMap(t){const n=this.getId(t);this.idNodeMap.delete(n),t.childNodes&&t.childNodes.forEach(r=>this.removeNodeFromMap(r))}has(t){return this.idNodeMap.has(t)}hasNode(t){return this.nodeMetaMap.has(t)}add(t,n){const r=n.id;this.idNodeMap.set(r,t),this.nodeMetaMap.set(t,n)}replace(t,n){const r=this.getNode(t);if(r){const i=this.nodeMetaMap.get(r);i&&this.nodeMetaMap.set(n,i)}this.idNodeMap.set(t,n)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function WB(){return new $B}function zB(e,t){for(let n=e.classList.length;n--;){const r=e.classList[n];if(t.test(r))return!0}return!1}function Rf(e,t,n=1/0,r=0){return!e||e.nodeType!==e.ELEMENT_NODE||r>n?-1:t(e)?r:Rf(e.parentNode,t,n,r+1)}function Qg(e,t){return n=>{const r=n;if(r===null)return!1;try{if(e){if(typeof e=="string"){if(r.matches(`.${e}`))return!0}else if(zB(r,e))return!0}return!!(t&&r.matches(t))}catch{return!1}}}const Io=`Please stop import mirror directly. Instead of that,\r
513
513
  now you can use replayer.getMirror() to access the mirror instance of a replayer,\r
514
- or you can use record.mirror to access the mirror instance during recording.`;let ey={map:{},getId(){return console.error(Io),-1},getNode(){return console.error(Io),null},removeNodeFromMap(){console.error(Io)},has(){return console.error(Io),!1},reset(){console.error(Io)}};typeof window<"u"&&window.Proxy&&window.Reflect&&(ey=new Proxy(ey,{get(e,t,n){return t==="map"&&console.error(Io),Reflect.get(e,t,n)}}));function pp(e,t,n,r,i=window){const o=i.Object.getOwnPropertyDescriptor(e,t);return i.Object.defineProperty(e,t,r?n:{set(s){pS(()=>{n.set.call(this,s)},0),o&&o.set&&o.set.call(this,s)}}),()=>pp(e,t,o||{},!0)}function mp(e,t,n){try{if(!(t in e))return()=>{};const r=e[t],i=n(r);return typeof i=="function"&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__rrweb_original__:{enumerable:!1,value:r}})),e[t]=i,()=>{e[t]=r}}catch{return()=>{}}}Date.now().toString();function GB(e){if(!e)return null;try{return e.nodeType===e.ELEMENT_NODE?e:e.parentElement}catch{return null}}function Sl(e,t,n,r,i){if(!e)return!1;const o=GB(e);if(!o)return!1;const s=Qg(t,n),a=Rf(o,s);let c=-1;return a<0?!1:(r&&(c=Rf(o,Qg(null,r))),a>-1&&c<0?!0:a<c)}const ty={};function hS(e){const t=ty[e];if(t)return t;const n=window.document;let r=window[e];if(n&&typeof n.createElement=="function")try{const i=n.createElement("iframe");i.hidden=!0,n.head.appendChild(i);const o=i.contentWindow;o&&o[e]&&(r=o[e]),n.head.removeChild(i)}catch{}return ty[e]=r.bind(window)}function ki(...e){return hS("requestAnimationFrame")(...e)}function pS(...e){return hS("setTimeout")(...e)}var Xo=(e=>(e[e["2D"]=0]="2D",e[e.WebGL=1]="WebGL",e[e.WebGL2=2]="WebGL2",e))(Xo||{});let Jc;function VB(e){Jc=e}const wd=e=>Jc?(...n)=>{try{return e(...n)}catch(r){if(Jc&&Jc(r)===!0)return()=>{};throw r}}:e;var No="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",qB=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var Rc=0;Rc<No.length;Rc++)qB[No.charCodeAt(Rc)]=Rc;var YB=function(e){var t=new Uint8Array(e),n,r=t.length,i="";for(n=0;n<r;n+=3)i+=No[t[n]>>2],i+=No[(t[n]&3)<<4|t[n+1]>>4],i+=No[(t[n+1]&15)<<2|t[n+2]>>6],i+=No[t[n+2]&63];return r%3===2?i=i.substring(0,i.length-1)+"=":r%3===1&&(i=i.substring(0,i.length-2)+"=="),i};const ny=new Map;function XB(e,t){let n=ny.get(e);return n||(n=new Map,ny.set(e,n)),n.has(t)||n.set(t,[]),n.get(t)}const mS=(e,t,n)=>{if(!e||!(yS(e,t)||typeof e=="object"))return;const r=e.constructor.name,i=XB(n,r);let o=i.indexOf(e);return o===-1&&(o=i.length,i.push(e)),o};function Zc(e,t,n){if(e instanceof Array)return e.map(r=>Zc(r,t,n));if(e===null)return e;if(e instanceof Float32Array||e instanceof Float64Array||e instanceof Int32Array||e instanceof Uint32Array||e instanceof Uint8Array||e instanceof Uint16Array||e instanceof Int16Array||e instanceof Int8Array||e instanceof Uint8ClampedArray)return{rr_type:e.constructor.name,args:[Object.values(e)]};if(e instanceof ArrayBuffer){const r=e.constructor.name,i=YB(e);return{rr_type:r,base64:i}}else{if(e instanceof DataView)return{rr_type:e.constructor.name,args:[Zc(e.buffer,t,n),e.byteOffset,e.byteLength]};if(e instanceof HTMLImageElement){const r=e.constructor.name,{src:i}=e;return{rr_type:r,src:i}}else if(e instanceof HTMLCanvasElement){const r="HTMLImageElement",i=e.toDataURL();return{rr_type:r,src:i}}else{if(e instanceof ImageData)return{rr_type:e.constructor.name,args:[Zc(e.data,t,n),e.width,e.height]};if(yS(e,t)||typeof e=="object"){const r=e.constructor.name,i=mS(e,t,n);return{rr_type:r,index:i}}}}return e}const gS=(e,t,n)=>e.map(r=>Zc(r,t,n)),yS=(e,t)=>!!["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"].filter(i=>typeof t[i]=="function").find(i=>e instanceof t[i]);function KB(e,t,n,r,i){const o=[],s=Object.getOwnPropertyNames(t.CanvasRenderingContext2D.prototype);for(const a of s)try{if(typeof t.CanvasRenderingContext2D.prototype[a]!="function")continue;const c=mp(t.CanvasRenderingContext2D.prototype,a,function(u){return function(...h){return Sl(this.canvas,n,r,i,!0)||pS(()=>{const d=gS(h,t,this);e(this.canvas,{type:Xo["2D"],property:a,args:d})},0),u.apply(this,h)}});o.push(c)}catch{const c=pp(t.CanvasRenderingContext2D.prototype,a,{set(u){e(this.canvas,{type:Xo["2D"],property:a,args:[u],setter:!0})}});o.push(c)}return()=>{o.forEach(a=>a())}}function JB(e){return e==="experimental-webgl"?"webgl":e}function ry(e,t,n,r,i){const o=[];try{const s=mp(e.HTMLCanvasElement.prototype,"getContext",function(a){return function(c,...u){if(!Sl(this,t,n,r,!0)){const h=JB(c);if("__context"in this||(this.__context=h),i&&["webgl","webgl2"].includes(h))if(u[0]&&typeof u[0]=="object"){const d=u[0];d.preserveDrawingBuffer||(d.preserveDrawingBuffer=!0)}else u.splice(0,1,{preserveDrawingBuffer:!0})}return a.apply(this,[c,...u])}});o.push(s)}catch{console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return()=>{o.forEach(s=>s())}}function iy(e,t,n,r,i,o,s,a){const c=[],u=Object.getOwnPropertyNames(e);for(const h of u)if(!["isContextLost","canvas","drawingBufferWidth","drawingBufferHeight"].includes(h))try{if(typeof e[h]!="function")continue;const d=mp(e,h,function(m){return function(...g){const E=m.apply(this,g);if(mS(E,a,this),"tagName"in this.canvas&&!Sl(this.canvas,r,i,o,!0)){const T=gS(g,a,this),L={type:t,property:h,args:T};n(this.canvas,L)}return E}});c.push(d)}catch{const d=pp(e,h,{set(m){n(this.canvas,{type:t,property:h,args:[m],setter:!0})}});c.push(d)}return c}function ZB(e,t,n,r,i,o){const s=[];return s.push(...iy(t.WebGLRenderingContext.prototype,Xo.WebGL,e,n,r,i,o,t)),typeof t.WebGL2RenderingContext<"u"&&s.push(...iy(t.WebGL2RenderingContext.prototype,Xo.WebGL2,e,n,r,i,o,t)),()=>{s.forEach(a=>a())}}const QB='for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t="undefined"==typeof Uint8Array?[]:new Uint8Array(256),a=0;a<64;a++)t[e.charCodeAt(a)]=a;var n=function(t){var a,n=new Uint8Array(t),r=n.length,s="";for(a=0;a<r;a+=3)s+=e[n[a]>>2],s+=e[(3&n[a])<<4|n[a+1]>>4],s+=e[(15&n[a+1])<<2|n[a+2]>>6],s+=e[63&n[a+2]];return r%3==2?s=s.substring(0,s.length-1)+"=":r%3==1&&(s=s.substring(0,s.length-2)+"=="),s};const r=new Map,s=new Map;const i=self;i.onmessage=async function(e){if(!("OffscreenCanvas"in globalThis))return i.postMessage({id:e.data.id});{const{id:t,bitmap:a,width:o,height:f,maxCanvasSize:c,dataURLOptions:g}=e.data,u=async function(e,t,a){const r=e+"-"+t;if("OffscreenCanvas"in globalThis){if(s.has(r))return s.get(r);const i=new OffscreenCanvas(e,t);i.getContext("2d");const o=await i.convertToBlob(a),f=await o.arrayBuffer(),c=n(f);return s.set(r,c),c}return""}(o,f,g),[h,d]=function(e,t,a){if(!a)return[e,t];const[n,r]=a;if(e<=n&&t<=r)return[e,t];let s=e,i=t;return s>n&&(i=Math.floor(n*t/e),s=n),i>r&&(s=Math.floor(r*e/t),i=r),[s,i]}(o,f,c),l=new OffscreenCanvas(h,d),w=l.getContext("bitmaprenderer"),p=h===o&&d===f?a:await createImageBitmap(a,{resizeWidth:h,resizeHeight:d,resizeQuality:"low"});w?.transferFromImageBitmap(p),a.close();const y=await l.convertToBlob(g),v=y.type,b=await y.arrayBuffer(),m=n(b);if(p.close(),!r.has(t)&&await u===m)return r.set(t,m),i.postMessage({id:t});if(r.get(t)===m)return i.postMessage({id:t});i.postMessage({id:t,type:v,base64:m,width:o,height:f}),r.set(t,m)}};';function eF(){const e=new Blob([QB]);return URL.createObjectURL(e)}class tF{constructor(t){this.pendingCanvasMutations=new Map,this.rafStamps={latestId:0,invokeId:null},this.shadowDoms=new Set,this.windowsSet=new WeakSet,this.windows=[],this.restoreHandlers=[],this.frozen=!1,this.locked=!1,this.snapshotInProgressMap=new Map,this.worker=null,this.lastSnapshotTime=0,this.processMutation=(a,c)=>{(this.rafStamps.invokeId&&this.rafStamps.latestId!==this.rafStamps.invokeId||!this.rafStamps.invokeId)&&(this.rafStamps.invokeId=this.rafStamps.latestId),this.pendingCanvasMutations.has(a)||this.pendingCanvasMutations.set(a,[]),this.pendingCanvasMutations.get(a).push(c)};const{enableManualSnapshot:n,sampling:r="all",win:i,recordCanvas:o,errorHandler:s}=t;t.sampling=r,this.mutationCb=t.mutationCb,this.mirror=t.mirror,this.options=t,s&&VB(s),(o&&typeof r=="number"||n)&&(this.worker=this.initFPSWorker()),this.addWindow(i),!n&&wd(()=>{o&&r==="all"&&(this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher()),o&&typeof r=="number"&&this.initCanvasFPSObserver()})()}reset(){this.pendingCanvasMutations.clear(),this.restoreHandlers.forEach(t=>{try{t()}catch{}}),this.restoreHandlers=[],this.windowsSet=new WeakSet,this.windows=[],this.shadowDoms=new Set,this.worker?.terminate(),this.worker=null,this.snapshotInProgressMap=new Map}freeze(){this.frozen=!0}unfreeze(){this.frozen=!1}lock(){this.locked=!0}unlock(){this.locked=!1}addWindow(t){const{sampling:n="all",blockClass:r,blockSelector:i,unblockSelector:o,recordCanvas:s,enableManualSnapshot:a}=this.options;if(!this.windowsSet.has(t)){if(a){this.windowsSet.add(t),this.windows.push(new WeakRef(t));return}wd(()=>{if(s&&n==="all"&&this.initCanvasMutationObserver(t,r,i,o),s&&typeof n=="number"){const c=ry(t,r,i,o,!0);this.restoreHandlers.push(()=>{c()})}})(),this.windowsSet.add(t),this.windows.push(new WeakRef(t))}}addShadowRoot(t){this.shadowDoms.add(new WeakRef(t))}resetShadowRoots(){this.shadowDoms=new Set}snapshot(t,n){if(n?.skipRequestAnimationFrame){this.takeSnapshot(performance.now(),!0,t);return}ki(r=>this.takeSnapshot(r,!0,t))}initFPSWorker(){const t=new Worker(eF());return t.onmessage=n=>{const r=n.data,{id:i}=r;if(this.snapshotInProgressMap.set(i,!1),!("base64"in r))return;const{base64:o,type:s,width:a,height:c}=r;this.mutationCb({id:i,type:Xo["2D"],commands:[{property:"clearRect",args:[0,0,a,c]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:o}],type:s}]},0,0,a,c]}]})},t}initCanvasFPSObserver(){let t;if(!this.windows.length&&!this.shadowDoms.size)return;const n=r=>{this.takeSnapshot(r,!1),t=ki(n)};t=ki(n),this.restoreHandlers.push(()=>{t&&cancelAnimationFrame(t)})}initCanvasMutationObserver(t,n,r,i){const o=ry(t,n,r,i,!1),s=KB(this.processMutation.bind(this),t,n,r,i),a=ZB(this.processMutation.bind(this),t,n,r,i,this.mirror);this.restoreHandlers.push(()=>{o(),s(),a()})}getCanvasElements(t,n,r){const i=[],o=s=>{s.querySelectorAll("canvas").forEach(a=>{Sl(a,t,n,r)||i.push(a)})};for(const s of this.windows){const a=s.deref();let c;try{c=a&&a.document}catch{}c&&o(c)}for(const s of this.shadowDoms){const a=s.deref();a&&o(a)}return i}takeSnapshot(t,n,r){const{sampling:i,blockClass:o,blockSelector:s,unblockSelector:a,dataURLOptions:c,maxCanvasSize:u}=this.options,d=1e3/(i==="all"?2:i||2);return this.lastSnapshotTime&&t-this.lastSnapshotTime<d?!1:(this.lastSnapshotTime=t,(r?[r]:this.getCanvasElements(o,s,a)).forEach(E=>{const T=this.mirror.getId(E);if(!(!this.mirror.hasNode(E)||!E.width||!E.height||this.snapshotInProgressMap.get(T))){if(this.snapshotInProgressMap.set(T,!0),!n&&["webgl","webgl2"].includes(E.__context)){const L=E.getContext(E.__context);L?.getContextAttributes()?.preserveDrawingBuffer===!1&&L.clear(L.COLOR_BUFFER_BIT)}createImageBitmap(E).then(L=>{this.worker?.postMessage({id:T,bitmap:L,width:E.width,height:E.height,dataURLOptions:c,maxCanvasSize:u},[L])}).catch(L=>{wd(()=>{throw this.snapshotInProgressMap.delete(T),L})()})}}),!0)}startPendingCanvasMutationFlusher(){ki(()=>this.flushPendingCanvasMutations())}startRAFTimestamping(){const t=n=>{this.rafStamps.latestId=n,ki(t)};ki(t)}flushPendingCanvasMutations(){this.pendingCanvasMutations.forEach((t,n)=>{const r=this.mirror.getId(n);this.flushPendingCanvasMutationFor(n,r)}),ki(()=>this.flushPendingCanvasMutations())}flushPendingCanvasMutationFor(t,n){if(this.frozen||this.locked)return;const r=this.pendingCanvasMutations.get(t);if(!r||n===-1)return;const i=r.map(s=>{const{type:a,...c}=s;return c}),{type:o}=r[0];this.mutationCb({id:n,type:o,commands:i}),this.pendingCanvasMutations.delete(t)}}try{if(Array.from([1],e=>e*2)[0]!==2){const e=document.createElement("iframe");document.body.appendChild(e),Array.from=e.contentWindow?.Array.from||Array.from,document.body.removeChild(e)}}catch(e){console.debug("Unable to override Array.from",e)}WB();var oy;(function(e){e[e.NotStarted=0]="NotStarted",e[e.Running=1]="Running",e[e.Stopped=2]="Stopped"})(oy||(oy={}));const sy={low:{sampling:{canvas:1},dataURLOptions:{type:"image/webp",quality:.25}},medium:{sampling:{canvas:2},dataURLOptions:{type:"image/webp",quality:.4}},high:{sampling:{canvas:4},dataURLOptions:{type:"image/webp",quality:.5}}},nF="ReplayCanvas",Mc=1280,rF=(e={})=>{const[t,n]=e.maxCanvasSize||[],r={quality:e.quality||"medium",enableManualSnapshot:e.enableManualSnapshot,maxCanvasSize:[t?Math.min(t,Mc):Mc,n?Math.min(n,Mc):Mc]};let i;const o=new Promise(s=>i=s);return{name:nF,getOptions(){const{quality:s,enableManualSnapshot:a,maxCanvasSize:c}=r;return{enableManualSnapshot:a,recordCanvas:!0,getCanvasManager:u=>{const h=new tF({...u,enableManualSnapshot:a,maxCanvasSize:c,errorHandler:d=>{try{typeof d=="object"&&(d.__rrweb__=!0)}catch{}}});return i(h),h},...sy[s]||sy.medium}},async snapshot(s,a){(await o).snapshot(s,a)}}},iF=rF;function br(e=0){return((mn()||performance.timeOrigin)+e)/1e3}function oF(e){const t=[];if(e.nextHopProtocol!=null){const{name:n,version:r}=eE(e.nextHopProtocol);t.push(["network.protocol.version",r],["network.protocol.name",n])}return mn()?[...t,["http.request.redirect_start",br(e.redirectStart)],["http.request.fetch_start",br(e.fetchStart)],["http.request.domain_lookup_start",br(e.domainLookupStart)],["http.request.domain_lookup_end",br(e.domainLookupEnd)],["http.request.connect_start",br(e.connectStart)],["http.request.secure_connection_start",br(e.secureConnectionStart)],["http.request.connection_end",br(e.connectEnd)],["http.request.request_start",br(e.requestStart)],["http.request.response_start",br(e.responseStart)],["http.request.response_end",br(e.responseEnd)]]:t}const ay=new WeakMap,Td=new Map,gp={traceFetch:!0,traceXHR:!0,enableHTTPTimings:!0,trackFetchStreamPerformance:!1};function _S(e,t){const{traceFetch:n,traceXHR:r,trackFetchStreamPerformance:i,shouldCreateSpanForRequest:o,enableHTTPTimings:s,tracePropagationTargets:a,onRequestSpanStart:c}={...gp,...t},u=typeof o=="function"?o:m=>!0,h=m=>aF(m,a),d={};n&&(e.addEventProcessor(m=>(m.type==="transaction"&&m.spans&&m.spans.forEach(g=>{if(g.op==="http.client"){const E=Td.get(g.span_id);E&&(g.timestamp=E/1e3,Td.delete(g.span_id))}}),m)),i&&wM(m=>{if(m.response){const g=ay.get(m.response);g&&m.endTimestamp&&Td.set(g,m.endTimestamp)}}),Lh(m=>{const g=lM(m,u,h,d);if(m.response&&m.fetchData.__span&&ay.set(m.response,m.fetchData.__span),g){const E=bS(m.fetchData.url),T=E?zi(E).host:void 0;g.setAttributes({"http.url":E,"server.address":T}),s&&cy(g),c?.(g,{headers:m.headers})}})),r&&Xh(m=>{const g=cF(m,u,h,d);if(g){s&&cy(g);let E;try{E=new Headers(m.xhr.__sentry_xhr_v3__?.request_headers)}catch{}c?.(g,{headers:E})}})}function sF(e){return e.entryType==="resource"&&"initiatorType"in e&&typeof e.nextHopProtocol=="string"&&(e.initiatorType==="fetch"||e.initiatorType==="xmlhttprequest")}function cy(e){const{url:t}=Qe(e).data;if(!t||typeof t!="string")return;const n=Ki("resource",({entries:r})=>{r.forEach(i=>{sF(i)&&i.name.endsWith(t)&&(oF(i).forEach(s=>e.setAttribute(...s)),setTimeout(n))})})}function aF(e,t){const n=to();if(n){let r,i;try{r=new URL(e,n),i=new URL(n).origin}catch{return!1}const o=r.origin===i;return t?ar(r.toString(),t)||o&&ar(r.pathname,t):o}else{const r=!!e.match(/^\/(?!\/)/);return t?ar(e,t):r}}function cF(e,t,n,r){const i=e.xhr,o=i?.[Fr];if(!i||i.__sentry_own_request__||!o)return;const{url:s,method:a}=o,c=vi()&&t(s);if(e.endTimestamp&&c){const T=i.__sentry_xhr_span_id__;if(!T)return;const L=r[T];L&&o.status_code!==void 0&&(js(L,o.status_code),L.end(),delete r[T]);return}const u=bS(s),h=zi(u||s),d=gv(s),m=!!en(),g=c&&m?oo({name:`${a} ${d}`,attributes:{url:s,type:"xhr","http.method":a,"http.url":u,"server.address":h?.host,[Ft]:"auto.http.browser",[jn]:"http.client",...h?.search&&{"http.query":h?.search},...h?.hash&&{"http.fragment":h?.hash}}}):new Yr;i.__sentry_xhr_span_id__=g.spanContext().spanId,r[i.__sentry_xhr_span_id__]=g,n(s)&&uF(i,vi()&&m?g:void 0);const E=Re();return E&&E.emit("beforeOutgoingRequestSpan",g,e),g}function uF(e,t){const{"sentry-trace":n,baggage:r}=kh({span:t});n&&lF(e,n,r)}function lF(e,t,n){const r=e.__sentry_xhr_v3__?.request_headers;if(!r?.["sentry-trace"])try{if(e.setRequestHeader("sentry-trace",t),n){const i=r?.baggage;(!i||!dF(i))&&e.setRequestHeader("baggage",n)}}catch{}}function dF(e){return e.split(",").some(t=>t.trim().startsWith("sentry-"))}function bS(e){try{return new URL(e,Fe.location.origin).href}catch{return}}function fF(){Fe.document?Fe.document.addEventListener("visibilitychange",()=>{const e=en();if(!e)return;const t=Zt(e);if(Fe.document.hidden&&t){const n="cancelled",{op:r,status:i}=Qe(t);st&&Y.log(`[Tracing] Transaction: ${n} -> since tab moved to the background, op: ${r}`),i||t.setStatus({code:zt,message:n}),t.setAttribute("sentry.cancellation_reason","document.hidden"),t.end()}}):st&&Y.warn("[Tracing] Could not set up background tab detection due to lack of global document")}const hF=3600,vS="sentry_previous_trace",pF="sentry.previous_trace";function mF(e,{linkPreviousTrace:t,consistentTraceSampling:n}){const r=t==="session-storage";let i=r?_F():void 0;e.on("spanStart",s=>{if(Zt(s)!==s)return;const a=tt().getPropagationContext();i=gF(i,s,a),r&&yF(i)});let o=!0;n&&e.on("beforeSampling",s=>{if(!i)return;const a=tt(),c=a.getPropagationContext();if(o&&c.parentSpanId){o=!1;return}a.setPropagationContext({...c,dsc:{...c.dsc,sample_rate:String(i.sampleRate),sampled:String(Mf(i.spanContext))},sampleRand:i.sampleRand}),s.parentSampled=Mf(i.spanContext),s.parentSampleRate=i.sampleRate,s.spanAttributes={...s.spanAttributes,[s0]:i.sampleRate}})}function gF(e,t,n){const r=Qe(t);function i(){try{return Number(n.dsc?.sample_rate)??Number(r.data?.[rl])}catch{return 0}}const o={spanContext:t.spanContext(),startTimestamp:r.start_timestamp,sampleRate:i(),sampleRand:n.sampleRand};if(!e)return o;const s=e.spanContext;return s.traceId===r.trace_id?e:(Date.now()/1e3-e.startTimestamp<=hF&&(st&&Y.log(`Adding previous_trace ${s} link to span ${{op:r.op,...t.spanContext()}}`),t.addLink({context:s,attributes:{[$A]:"previous_trace"}}),t.setAttribute(pF,`${s.traceId}-${s.spanId}-${Mf(s)?1:0}`)),o)}function yF(e){try{Fe.sessionStorage.setItem(vS,JSON.stringify(e))}catch(t){st&&Y.warn("Could not store previous trace in sessionStorage",t)}}function _F(){try{const e=Fe.sessionStorage?.getItem(vS);return JSON.parse(e)}catch{return}}function Mf(e){return e.traceFlags===1}const bF="BrowserTracing",vF={...Uc,instrumentNavigation:!0,instrumentPageLoad:!0,markBackgroundSpan:!0,enableLongTask:!0,enableLongAnimationFrame:!0,enableInp:!0,enableElementTiming:!0,ignoreResourceSpans:[],ignorePerformanceApiSpans:[],detectRedirects:!0,linkPreviousTrace:"in-memory",consistentTraceSampling:!1,_experiments:{},...gp},EF=(e={})=>{const t={name:void 0,source:void 0},n=Fe.document,{enableInp:r,enableElementTiming:i,enableLongTask:o,enableLongAnimationFrame:s,_experiments:{enableInteractions:a,enableStandaloneClsSpans:c,enableStandaloneLcpSpans:u},beforeStartSpan:h,idleTimeout:d,finalTimeout:m,childSpanTimeout:g,markBackgroundSpan:E,traceFetch:T,traceXHR:L,trackFetchStreamPerformance:H,shouldCreateSpanForRequest:K,enableHTTPTimings:V,ignoreResourceSpans:F,ignorePerformanceApiSpans:J,instrumentPageLoad:D,instrumentNavigation:W,detectRedirects:ue,linkPreviousTrace:P,consistentTraceSampling:$,onRequestSpanStart:G}={...vF,...e};let q,ie;function fe(ce,re,X=!0){const _e=re.op==="pageload",ge=h?h(re):re,he=ge.attributes||{};if(re.name!==ge.name&&(he[Hn]="custom",ge.attributes=he),!X){const se=no();oo({...ge,startTime:se}).end(se);return}t.name=ge.name,t.source=he[Hn];const Se=k0(ge,{idleTimeout:d,finalTimeout:m,childSpanTimeout:g,disableAutoFinish:_e,beforeSpanEnd:se=>{q?.(),eP(se,{recordClsOnPageloadSpan:!c,recordLcpOnPageloadSpan:!u,ignoreResourceSpans:F,ignorePerformanceApiSpans:J}),ly(ce,void 0);const He=tt(),vt=He.getPropagationContext();He.setPropagationContext({...vt,traceId:Se.spanContext().traceId,sampled:ro(Se),dsc:ur(se)})}});ly(ce,Se);function Xe(){n&&["interactive","complete"].includes(n.readyState)&&ce.emit("idleSpanEnableAutoFinish",Se)}_e&&n&&(n.addEventListener("readystatechange",()=>{Xe()}),Xe())}return{name:bF,setup(ce){if(E0(),q=Vk({recordClsStandaloneSpans:c||!1,recordLcpStandaloneSpans:u||!1,client:ce}),r&&SP(),i&&lP(),s&&We.PerformanceObserver&&PerformanceObserver.supportedEntryTypes&&PerformanceObserver.supportedEntryTypes.includes("long-animation-frame")?Yk():o&&qk(),a&&Xk(),ue&&n){const X=()=>{ie=Yt()};addEventListener("click",X,{capture:!0}),addEventListener("keydown",X,{capture:!0,passive:!0})}function re(){const X=qs(ce);X&&!Qe(X).timestamp&&(st&&Y.log(`[Tracing] Finishing current active span with op: ${Qe(X).op}`),X.setAttribute(uu,"cancelled"),X.end())}ce.on("startNavigationSpan",(X,_e)=>{if(Re()!==ce)return;if(_e?.isRedirect){st&&Y.warn("[Tracing] Detected redirect, navigation span will not be the root span, but a child span."),fe(ce,{op:"navigation.redirect",...X},!1);return}re(),Qt().setPropagationContext({traceId:qr(),sampleRand:Math.random()});const ge=tt();ge.setPropagationContext({traceId:qr(),sampleRand:Math.random()}),ge.setSDKProcessingMetadata({normalizedRequest:void 0}),fe(ce,{op:"navigation",...X})}),ce.on("startPageLoadSpan",(X,_e={})=>{if(Re()!==ce)return;re();const ge=_e.sentryTrace||uy("sentry-trace"),he=_e.baggage||uy("baggage"),Se=h0(ge,he),Xe=tt();Xe.setPropagationContext(Se),Xe.setSDKProcessingMetadata({normalizedRequest:jh()}),fe(ce,{op:"pageload",...X})})},afterAllSetup(ce){let re=to();if(P!=="off"&&mF(ce,{linkPreviousTrace:P,consistentTraceSampling:$}),Fe.location){if(D){const X=mn();ES(ce,{name:Fe.location.pathname,startTime:X?X/1e3:void 0,attributes:{[Hn]:"url",[Ft]:"auto.pageload.browser"}})}W&&ml(({to:X,from:_e})=>{if(_e===void 0&&re?.indexOf(X)!==-1){re=void 0;return}re=void 0;const ge=mv(X),he=qs(ce),Se=he&&ue&&wF(he,ie);SS(ce,{name:ge?.pathname||Fe.location.pathname,attributes:{[Hn]:"url",[Ft]:"auto.navigation.browser"}},{url:X,isRedirect:Se})})}E&&fF(),a&&SF(ce,d,m,g,t),r&&IP(),_S(ce,{traceFetch:T,traceXHR:L,trackFetchStreamPerformance:H,tracePropagationTargets:ce.getOptions().tracePropagationTargets,shouldCreateSpanForRequest:K,enableHTTPTimings:V,onRequestSpanStart:G})}}};function ES(e,t,n){e.emit("startPageLoadSpan",t,n),tt().setTransactionName(t.name);const r=qs(e);return r&&e.emit("afterStartPageLoadSpan",r),r}function SS(e,t,n){const{url:r,isRedirect:i}=n||{};e.emit("beforeStartNavigationSpan",t,{isRedirect:i}),e.emit("startNavigationSpan",t,{isRedirect:i});const o=tt();return o.setTransactionName(t.name),r&&!i&&o.setSDKProcessingMetadata({normalizedRequest:{...jh(),url:r}}),qs(e)}function uy(e){return Fe.document?.querySelector(`meta[name=${e}]`)?.getAttribute("content")||void 0}function SF(e,t,n,r,i){const o=Fe.document;let s;const a=()=>{const c="ui.action.click",u=qs(e);if(u){const h=Qe(u).op;if(["navigation","pageload"].includes(h)){st&&Y.warn(`[Tracing] Did not create ${c} span because a pageload or navigation span is in progress.`);return}}if(s&&(s.setAttribute(uu,"interactionInterrupted"),s.end(),s=void 0),!i.name){st&&Y.warn(`[Tracing] Did not create ${c} transaction because _latestRouteName is missing.`);return}s=k0({name:i.name,op:c,attributes:{[Hn]:i.source||"url"}},{idleTimeout:t,finalTimeout:n,childSpanTimeout:r})};o&&addEventListener("click",a,{capture:!0})}const wS="_sentry_idleSpan";function qs(e){return e[wS]}function ly(e,t){Nn(e,wS,t)}const dy=.3;function wF(e,t){const n=Qe(e),r=no(),i=n.start_timestamp;return!(r-i>dy||t&&r-t<=dy)}function Ko(e){return new Promise((t,n)=>{e.oncomplete=e.onsuccess=()=>t(e.result),e.onabort=e.onerror=()=>n(e.error)})}function TF(e,t){const n=indexedDB.open(e);n.onupgradeneeded=()=>n.result.createObjectStore(t);const r=Ko(n);return i=>r.then(o=>i(o.transaction(t,"readwrite").objectStore(t)))}function yp(e){return Ko(e.getAllKeys())}function IF(e,t,n){return e(r=>yp(r).then(i=>{if(!(i.length>=n))return r.put(t,Math.max(...i,0)+1),Ko(r.transaction)}))}function AF(e,t,n){return e(r=>yp(r).then(i=>{if(!(i.length>=n))return r.put(t,Math.min(...i,0)-1),Ko(r.transaction)}))}function OF(e){return e(t=>yp(t).then(n=>{const r=n[0];if(r!=null)return Ko(t.get(r)).then(i=>(t.delete(r),Ko(t.transaction).then(()=>i)))}))}function CF(e){let t;function n(){return t==null&&(t=TF(e.dbName||"sentry-offline",e.storeName||"queue")),t}return{push:async r=>{try{const i=await fu(r);await IF(n(),i,e.maxQueueSize||30)}catch{}},unshift:async r=>{try{const i=await fu(r);await AF(n(),i,e.maxQueueSize||30)}catch{}},shift:async()=>{try{const r=await OF(n());if(r)return gO(r)}catch{}}}}function RF(e){return t=>{const n=e({...t,createStore:CF});return Fe.addEventListener("online",async r=>{await n.flush()}),n}}function MF(e=Jh){return RF(FC(e))}const fy=1e6,Qc=String(0),NF="main",Pu=Fe.navigator;let TS="",IS="",AS="",Nf=Pu?.userAgent||"",OS="";const kF=Pu?.language||Pu?.languages?.[0]||"";function PF(e){return typeof e=="object"&&e!==null&&"getHighEntropyValues"in e}const hy=Pu?.userAgentData;PF(hy)&&hy.getHighEntropyValues(["architecture","model","platform","platformVersion","fullVersionList"]).then(e=>{if(TS=e.platform||"",AS=e.architecture||"",OS=e.model||"",IS=e.platformVersion||"",e.fullVersionList?.length){const t=e.fullVersionList[e.fullVersionList.length-1];Nf=`${t.brand} ${t.version}`}}).catch(e=>{});function xF(e){return!("thread_metadata"in e)}function LF(e){return xF(e)?FF(e):e}function DF(e){const t=e.contexts?.trace?.trace_id;return typeof t=="string"&&t.length!==32&&st&&Y.log(`[Profiling] Invalid traceId: ${t} on profiled event`),typeof t!="string"?"":t}function BF(e,t,n,r){if(r.type!=="transaction")throw new TypeError("Profiling events may only be attached to transactions, this should never occur.");if(n==null)throw new TypeError(`Cannot construct profiling event envelope without a valid profile. Got ${n} instead.`);const i=DF(r),o=LF(n),s=t||(typeof r.start_timestamp=="number"?r.start_timestamp*1e3:Yt()*1e3),a=typeof r.timestamp=="number"?r.timestamp*1e3:Yt()*1e3;return{event_id:e,timestamp:new Date(s).toISOString(),platform:"javascript",version:"1",release:r.release||"",environment:r.environment||il,runtime:{name:"javascript",version:Fe.navigator.userAgent},os:{name:TS,version:IS,build_number:Nf},device:{locale:kF,model:OS,manufacturer:Nf,architecture:AS,is_emulator:!1},debug_meta:{images:jF(n.resources)},profile:o,transactions:[{name:r.transaction||"",id:r.event_id||Tn(),trace_id:i,active_thread_id:Qc,relative_start_ns:"0",relative_end_ns:((a-s)*1e6).toFixed(0)}]}}function CS(e){return Qe(e).op==="pageload"}function FF(e){let t,n=0;const r={samples:[],stacks:[],frames:[],thread_metadata:{[Qc]:{name:NF}}},i=e.samples[0];if(!i)return r;const o=i.timestamp,s=mn(),a=typeof performance.timeOrigin=="number"?performance.timeOrigin:s||0,c=a-(s||a);return e.samples.forEach((u,h)=>{if(u.stackId===void 0){t===void 0&&(t=n,r.stacks[t]=[],n++),r.samples[h]={elapsed_since_start_ns:((u.timestamp+c-o)*fy).toFixed(0),stack_id:t,thread_id:Qc};return}let d=e.stacks[u.stackId];const m=[];for(;d;){m.push(d.frameId);const E=e.frames[d.frameId];E&&r.frames[d.frameId]===void 0&&(r.frames[d.frameId]={function:E.name,abs_path:typeof E.resourceId=="number"?e.resources[E.resourceId]:void 0,lineno:E.line,colno:E.column}),d=d.parentId===void 0?void 0:e.stacks[d.parentId]}const g={elapsed_since_start_ns:((u.timestamp+c-o)*fy).toFixed(0),stack_id:n,thread_id:Qc};r.stacks[n]=m,r.samples[h]=g,n++}),r}function HF(e,t){if(!t.length)return e;for(const n of t)e[1].push([{type:"profile"},n]);return e}function UF(e){const t=[];return Yi(e,(n,r)=>{if(r==="transaction")for(let i=1;i<n.length;i++)n[i]?.contexts?.profile?.profile_id&&t.push(n[i])}),t}function jF(e){const r=Re()?.getOptions()?.stackParser;return r?VO(r,e):[]}function $F(e){return typeof e!="number"&&typeof e!="boolean"||typeof e=="number"&&isNaN(e)?(st&&Y.warn(`[Profiling] Invalid sample rate. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(e)} of type ${JSON.stringify(typeof e)}.`),!1):e===!0||e===!1?!0:e<0||e>1?(st&&Y.warn(`[Profiling] Invalid sample rate. Sample rate must be between 0 and 1. Got ${e}.`),!1):!0}function WF(e){return e.samples.length<2?(st&&Y.log("[Profiling] Discarding profile because it contains less than 2 samples"),!1):e.frames.length?!0:(st&&Y.log("[Profiling] Discarding profile because it contains no frames"),!1)}let RS=!1;const MS=3e4;function zF(e){return typeof e=="function"}function GF(){const e=Fe.Profiler;if(!zF(e)){st&&Y.log("[Profiling] Profiling is not supported by this browser, Profiler interface missing on window object.");return}const t=10,n=Math.floor(MS/t);try{return new e({sampleInterval:t,maxBufferSize:n})}catch{st&&(Y.log("[Profiling] Failed to initialize the Profiling constructor, this is likely due to a missing 'Document-Policy': 'js-profiling' header."),Y.log("[Profiling] Disabling profiling for current user session.")),RS=!0}}function py(e){if(RS)return st&&Y.log("[Profiling] Profiling has been disabled for the duration of the current user session."),!1;if(!e.isRecording())return st&&Y.log("[Profiling] Discarding profile because transaction was not sampled."),!1;const n=Re()?.getOptions();if(!n)return st&&Y.log("[Profiling] Profiling disabled, no options found."),!1;const r=n.profilesSampleRate;return $F(r)?r?(r===!0?!0:Math.random()<r)?!0:(st&&Y.log(`[Profiling] Discarding profile because it's not included in the random sample (sampling rate = ${Number(r)})`),!1):(st&&Y.log("[Profiling] Discarding profile because a negative sampling decision was inherited or profileSampleRate is set to 0"),!1):(st&&Y.warn("[Profiling] Discarding profile because of invalid sample rate."),!1)}function VF(e,t,n,r){return WF(n)?BF(e,t,n,r):null}const ji=new Map;function qF(){return ji.size}function YF(e){const t=ji.get(e);return t&&ji.delete(e),t}function XF(e,t){if(ji.set(e,t),ji.size>30){const n=ji.keys().next().value;ji.delete(n)}}function my(e){let t;CS(e)&&(t=Yt()*1e3);const n=GF();if(!n)return;st&&Y.log(`[Profiling] started profiling span: ${Qe(e).description}`);const r=Tn();tt().setContext("profile",{profile_id:r,start_timestamp:t});async function i(){if(e&&n)return n.stop().then(c=>{if(o&&(Fe.clearTimeout(o),o=void 0),st&&Y.log(`[Profiling] stopped profiling of span: ${Qe(e).description}`),!c){st&&Y.log(`[Profiling] profiler returned null profile for: ${Qe(e).description}`,"this may indicate an overlapping span or a call to stopProfiling with a profile title that was never started");return}XF(r,c)}).catch(c=>{st&&Y.log("[Profiling] error while stopping profiler:",c)})}let o=Fe.setTimeout(()=>{st&&Y.log("[Profiling] max profile duration elapsed, stopping profiling for:",Qe(e).description),i()},MS);const s=e.end.bind(e);function a(){return e?(i().then(()=>{s()},()=>{s()}),e):s()}e.end=a}const KF="BrowserProfiling",JF=()=>({name:KF,setup(e){const t=en(),n=t&&Zt(t);n&&CS(n)&&py(n)&&my(n),e.on("spanStart",r=>{r===Zt(r)&&py(r)&&my(r)}),e.on("beforeEnvelope",r=>{if(!qF())return;const i=UF(r);if(!i.length)return;const o=[];for(const s of i){const a=s?.contexts,c=a?.profile?.profile_id,u=a?.profile?.start_timestamp;if(typeof c!="string"){st&&Y.log("[Profiling] cannot find profile for a span without a profile context");continue}if(!c){st&&Y.log("[Profiling] cannot find profile for a span without a profile context");continue}a?.profile&&delete a.profile;const h=YF(c);if(!h){st&&Y.log(`[Profiling] Could not retrieve profile for span: ${c}`);continue}const d=VF(c,u,h,s);d&&o.push(d)}HF(r,o)})}}),ZF=JF,QF="SpotlightBrowser",e3=(e={})=>{const t=e.sidecarUrl||"http://localhost:8969/stream";return{name:QF,setup:()=>{st&&Y.log("Using Sidecar URL",t)},processEvent:n=>r3(n)?null:n,afterAllSetup:n=>{t3(n,t)}}};function t3(e,t){const n=Yh("fetch");let r=0;e.on("beforeEnvelope",i=>{if(r>3){Y.warn("[Spotlight] Disabled Sentry -> Spotlight integration due to too many failed requests:",r);return}n(t,{method:"POST",body:fu(i),headers:{"Content-Type":"application/x-sentry-envelope"},mode:"cors"}).then(o=>{o.status>=200&&o.status<400&&(r=0)},o=>{r++,Y.error("Sentry SDK can't connect to Sidecar is it running? See: https://spotlightjs.com/sidecar/npx/",o)})})}const n3=e3;function r3(e){return!!(e.type==="transaction"&&e.spans&&e.contexts?.trace&&e.contexts.trace.op==="ui.action.click"&&e.spans.some(({description:t})=>t?.includes("#sentry-spotlight")))}const i3=()=>({name:"LaunchDarkly",processEvent(e,t,n){return la(e)}});function o3(){return{name:"sentry-flag-auditor",type:"flag-used",synchronous:!0,method:(e,t,n)=>{Fo(e,t.value),Ho(e,t.value)}}}const s3=()=>({name:"OpenFeature",processEvent(e,t,n){return la(e)}});class a3{after(t,n){Fo(n.flagKey,n.value),Ho(n.flagKey,n.value)}error(t,n,r){Fo(t.flagKey,t.defaultValue),Ho(t.flagKey,t.defaultValue)}}const c3=({featureFlagClientClass:e})=>({name:"Unleash",setupOnce(){const t=e.prototype;wn(t,"isEnabled",u3)},processEvent(t,n,r){return la(t)}});function u3(e){return function(...t){const n=t[0],r=e.apply(this,t);return typeof n=="string"&&typeof r=="boolean"?(Fo(n,r),Ho(n,r)):st&&Y.error(`[Feature Flags] UnleashClient.isEnabled does not match expected signature. arg0: ${n} (${typeof n}), result: ${r} (${typeof r})`),r}}const l3=({featureFlagClient:e})=>({name:"Statsig",setup(t){e.on("gate_evaluation",n=>{Fo(n.gate.name,n.gate.value),Ho(n.gate.name,n.gate.value)})},processEvent(t,n,r){return la(t)}});async function d3(){const e=Re();if(!e)return"no-client-active";if(!e.getDsn())return"no-dsn-configured";try{await fetch("https://o447951.ingest.sentry.io/api/4509632503087104/envelope/?sentry_version=7&sentry_key=c1dfb07d783ad5325c245c1fd3725390&sentry_client=sentry.javascript.browser%2F1.33.7",{body:"{}",method:"POST",mode:"cors",credentials:"omit"})}catch{return"sentry-unreachable"}}const f3="WebWorker",h3=({worker:e})=>({name:f3,setupOnce:()=>{(Array.isArray(e)?e:[e]).forEach(t=>gy(t))},addWorker:t=>gy(t)});function gy(e){e.addEventListener("message",t=>{m3(t.data)&&(t.stopImmediatePropagation(),st&&Y.log("Sentry debugId web worker message received",t.data),Fe._sentryDebugIds={...t.data._sentryDebugIds,...Fe._sentryDebugIds})})}function p3({self:e}){e.postMessage({_sentryMessage:!0,_sentryDebugIds:e._sentryDebugIds??void 0})}function m3(e){return Gr(e)&&e._sentryMessage===!0&&"_sentryDebugIds"in e&&(Gr(e._sentryDebugIds)||e._sentryDebugIds===void 0)}const g3=Object.freeze(Object.defineProperty({__proto__:null,BrowserClient:Uv,OpenFeatureIntegrationHook:a3,SDK_VERSION:jr,SEMANTIC_ATTRIBUTE_SENTRY_OP:jn,SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN:Ft,SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE:rl,SEMANTIC_ATTRIBUTE_SENTRY_SOURCE:Hn,Scope:cr,WINDOW:Fe,addBreadcrumb:Ar,addEventProcessor:F0,addIntegration:nf,breadcrumbsIntegration:lE,browserApiErrorsIntegration:dE,browserProfilingIntegration:ZF,browserSessionIntegration:fE,browserTracingIntegration:EF,buildLaunchDarklyFlagUsedHandler:o3,captureConsoleIntegration:mR,captureEvent:ua,captureException:Xi,captureFeedback:yv,captureMessage:gu,captureSession:tf,chromeStackLineParser:oE,close:uC,consoleLoggingIntegration:_M,contextLinesIntegration:X2,continueTrace:NO,createTransport:Q0,createUserFeedbackEnvelope:qP,dedupeIntegration:uv,defaultRequestInstrumentationOptions:gp,defaultStackLineParsers:aE,defaultStackParser:cE,diagnoseSdkConnectivity:d3,endSession:Mh,eventFiltersIntegration:iv,eventFromException:Fv,eventFromMessage:Hv,exceptionFromError:ll,extraErrorDataIntegration:TR,featureFlagsIntegration:aM,feedbackAsyncIntegration:VN,feedbackIntegration:yg,feedbackSyncIntegration:yg,flush:cC,forceLoad:A2,functionToStringIntegration:rv,geckoStackLineParser:sE,getActiveSpan:en,getClient:Re,getCurrentScope:tt,getDefaultIntegrations:yE,getFeedback:nN,getGlobalScope:nl,getIsolationScope:Qt,getReplay:HB,getRootSpan:Zt,getSpanDescendants:Ps,getSpanStatusFromHttpCode:a0,getTraceData:kh,globalHandlersIntegration:hE,graphqlClientIntegration:rx,httpClientIntegration:L2,httpContextIntegration:mE,inboundFiltersIntegration:ov,init:I2,instrumentOutgoingRequests:_S,instrumentSupabaseClient:hv,isEnabled:B0,isInitialized:lC,lastEventId:D0,launchDarklyIntegration:i3,lazyLoadIntegration:Dv,linkedErrorsIntegration:gE,logger:QN,makeBrowserOfflineTransport:MF,makeFetchTransport:Jh,makeMultiplexedTransport:jC,moduleMetadataIntegration:dR,onLoad:O2,openFeatureIntegration:s3,opera10StackLineParser:WP,opera11StackLineParser:VP,parameterize:nv,registerSpanErrorInstrumentation:E0,registerWebWorker:p3,replayCanvasIntegration:iF,replayIntegration:DB,reportingObserverIntegration:k2,rewriteFramesIntegration:PR,sendFeedback:Sv,setContext:L0,setCurrentClient:Y0,setExtra:iC,setExtras:rC,setHttpStatus:js,setMeasurement:R0,setTag:sC,setTags:oC,setUser:aC,showReportDialog:C2,spanToBaggageHeader:aO,spanToJSON:Qe,spanToTraceHeader:y0,spotlightBrowserIntegration:n3,startBrowserTracingNavigationSpan:SS,startBrowserTracingPageLoadSpan:ES,startInactiveSpan:oo,startNewTrace:PO,startSession:ef,startSpan:sl,startSpanManual:MO,statsigIntegration:l3,supabaseIntegration:VR,suppressTracing:kO,thirdPartyErrorFilterIntegration:nM,unleashIntegration:c3,updateSpanName:tO,webWorkerIntegration:h3,winjsStackLineParser:UP,withActiveSpan:aa,withIsolationScope:HA,withScope:Jn,zodErrorsIntegration:tM},Symbol.toStringTag,{value:"Module"})),wl=e=>{typeof window<"u"&&window.Sentry&&e(g3)},{useEffect:y3}=await kn("react"),NS=(e,t)=>y3(()=>{const n=e().catch(r=>{console.error("AsyncEffect error: ",r),wl(i=>i.captureException("AsyncEffect error: "+r.message,{extra:r}))});return function(){n.then(r=>{typeof r=="function"&&r()})}},t),{createContext:_3,useMemo:b3,useRef:v3,useState:E3}=await kn("react"),kS=_3(null),xU=e=>{const{writeKey:t,userId:n,traits:r,children:i}=e,o=v3(null),[s,a]=E3(!1);NS(async()=>{if(!t){console.log("[Analytics] No writeKey provided");return}const u=navigator.userAgent;if(oA(u)){console.log("[Analytics] Skipping load: bot detected");return}try{const{AnalyticsBrowser:d}=await hw(async()=>{const{AnalyticsBrowser:m}=await import("../index-CXXhfUVF.js").then(g=>g.q);return{AnalyticsBrowser:m}},__vite__mapDeps([0,1,2,3,4]));o.current=d.load({writeKey:t}),n&&o.current.identify(n,r),a(!0)}catch(d){console.error("[Analytics] Failed to initialize:",d),o.current=null}},[t,n,r]);const c=b3(()=>!o.current||!s?{isInitialized:!1,track:()=>{},identify:()=>{},page:()=>{}}:{isInitialized:!0,track:(u,h)=>{o.current?.track(u,h)},identify:(u,h)=>{o.current?.identify(u,h)},page:(u,h)=>{o.current?.page(u,h)}},[s]);return e_.jsx(kS.Provider,{value:c,children:i})},{createContext:S3}=await kn("react"),PS=S3(null);function Er(e,t){var n=t&&t.cache?t.cache:R3,r=t&&t.serializer?t.serializer:O3,i=t&&t.strategy?t.strategy:T3;return i(e,{cache:n,serializer:r})}function w3(e){return e==null||typeof e=="number"||typeof e=="boolean"}function xS(e,t,n,r){var i=w3(r)?r:n(r),o=t.get(i);return typeof o>"u"&&(o=e.call(this,r),t.set(i,o)),o}function LS(e,t,n){var r=Array.prototype.slice.call(arguments,3),i=n(r),o=t.get(i);return typeof o>"u"&&(o=e.apply(this,r),t.set(i,o)),o}function _p(e,t,n,r,i){return n.bind(t,e,r,i)}function T3(e,t){var n=e.length===1?xS:LS;return _p(e,this,n,t.cache.create(),t.serializer)}function I3(e,t){return _p(e,this,LS,t.cache.create(),t.serializer)}function A3(e,t){return _p(e,this,xS,t.cache.create(),t.serializer)}var O3=function(){return JSON.stringify(arguments)},C3=function(){function e(){this.cache=Object.create(null)}return e.prototype.get=function(t){return this.cache[t]},e.prototype.set=function(t,n){this.cache[t]=n},e}(),R3={create:function(){return new C3}},Sr={variadic:I3,monadic:A3},ft;(function(e){e[e.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",e[e.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",e[e.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",e[e.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",e[e.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",e[e.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",e[e.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",e[e.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",e[e.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",e[e.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",e[e.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",e[e.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",e[e.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",e[e.INVALID_TAG=23]="INVALID_TAG",e[e.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",e[e.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",e[e.UNCLOSED_TAG=27]="UNCLOSED_TAG"})(ft||(ft={}));var kt;(function(e){e[e.literal=0]="literal",e[e.argument=1]="argument",e[e.number=2]="number",e[e.date=3]="date",e[e.time=4]="time",e[e.select=5]="select",e[e.plural=6]="plural",e[e.pound=7]="pound",e[e.tag=8]="tag"})(kt||(kt={}));var Jo;(function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"})(Jo||(Jo={}));function yy(e){return e.type===kt.literal}function M3(e){return e.type===kt.argument}function DS(e){return e.type===kt.number}function BS(e){return e.type===kt.date}function FS(e){return e.type===kt.time}function HS(e){return e.type===kt.select}function US(e){return e.type===kt.plural}function N3(e){return e.type===kt.pound}function jS(e){return e.type===kt.tag}function $S(e){return!!(e&&typeof e=="object"&&e.type===Jo.number)}function kf(e){return!!(e&&typeof e=="object"&&e.type===Jo.dateTime)}var WS=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,k3=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;function P3(e){var t={};return e.replace(k3,function(n){var r=n.length;switch(n[0]){case"G":t.era=r===4?"long":r===5?"narrow":"short";break;case"y":t.year=r===2?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":t.month=["numeric","2-digit","short","long","narrow"][r-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":t.day=["numeric","2-digit"][r-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":t.weekday=r===4?"long":r===5?"narrow":"short";break;case"e":if(r<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][r-4];break;case"c":if(r<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][r-4];break;case"a":t.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":t.hourCycle="h12",t.hour=["numeric","2-digit"][r-1];break;case"H":t.hourCycle="h23",t.hour=["numeric","2-digit"][r-1];break;case"K":t.hourCycle="h11",t.hour=["numeric","2-digit"][r-1];break;case"k":t.hourCycle="h24",t.hour=["numeric","2-digit"][r-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":t.minute=["numeric","2-digit"][r-1];break;case"s":t.second=["numeric","2-digit"][r-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":t.timeZoneName=r<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""}),t}var x3=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function L3(e){if(e.length===0)throw new Error("Number skeleton cannot be empty");for(var t=e.split(x3).filter(function(m){return m.length>0}),n=[],r=0,i=t;r<i.length;r++){var o=i[r],s=o.split("/");if(s.length===0)throw new Error("Invalid number skeleton");for(var a=s[0],c=s.slice(1),u=0,h=c;u<h.length;u++){var d=h[u];if(d.length===0)throw new Error("Invalid number skeleton")}n.push({stem:a,options:c})}return n}function D3(e){return e.replace(/^(.*?)-/,"")}var _y=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,zS=/^(@+)?(\+|#+)?[rs]?$/g,B3=/(\*)(0+)|(#+)(0+)|(0+)/g,GS=/^(0+)$/;function by(e){var t={};return e[e.length-1]==="r"?t.roundingPriority="morePrecision":e[e.length-1]==="s"&&(t.roundingPriority="lessPrecision"),e.replace(zS,function(n,r,i){return typeof i!="string"?(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length):i==="+"?t.minimumSignificantDigits=r.length:r[0]==="#"?t.maximumSignificantDigits=r.length:(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length+(typeof i=="string"?i.length:0)),""}),t}function VS(e){switch(e){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function F3(e){var t;if(e[0]==="E"&&e[1]==="E"?(t={notation:"engineering"},e=e.slice(2)):e[0]==="E"&&(t={notation:"scientific"},e=e.slice(1)),t){var n=e.slice(0,2);if(n==="+!"?(t.signDisplay="always",e=e.slice(2)):n==="+?"&&(t.signDisplay="exceptZero",e=e.slice(2)),!GS.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function vy(e){var t={},n=VS(e);return n||t}function H3(e){for(var t={},n=0,r=e;n<r.length;n++){var i=r[n];switch(i.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=i.options[0];continue;case"group-off":case",_":t.useGrouping=!1;continue;case"precision-integer":case".":t.maximumFractionDigits=0;continue;case"measure-unit":case"unit":t.style="unit",t.unit=D3(i.options[0]);continue;case"compact-short":case"K":t.notation="compact",t.compactDisplay="short";continue;case"compact-long":case"KK":t.notation="compact",t.compactDisplay="long";continue;case"scientific":t=Be(Be(Be({},t),{notation:"scientific"}),i.options.reduce(function(c,u){return Be(Be({},c),vy(u))},{}));continue;case"engineering":t=Be(Be(Be({},t),{notation:"engineering"}),i.options.reduce(function(c,u){return Be(Be({},c),vy(u))},{}));continue;case"notation-simple":t.notation="standard";continue;case"unit-width-narrow":t.currencyDisplay="narrowSymbol",t.unitDisplay="narrow";continue;case"unit-width-short":t.currencyDisplay="code",t.unitDisplay="short";continue;case"unit-width-full-name":t.currencyDisplay="name",t.unitDisplay="long";continue;case"unit-width-iso-code":t.currencyDisplay="symbol";continue;case"scale":t.scale=parseFloat(i.options[0]);continue;case"rounding-mode-floor":t.roundingMode="floor";continue;case"rounding-mode-ceiling":t.roundingMode="ceil";continue;case"rounding-mode-down":t.roundingMode="trunc";continue;case"rounding-mode-up":t.roundingMode="expand";continue;case"rounding-mode-half-even":t.roundingMode="halfEven";continue;case"rounding-mode-half-down":t.roundingMode="halfTrunc";continue;case"rounding-mode-half-up":t.roundingMode="halfExpand";continue;case"integer-width":if(i.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");i.options[0].replace(B3,function(c,u,h,d,m,g){if(u)t.minimumIntegerDigits=h.length;else{if(d&&m)throw new Error("We currently do not support maximum integer digits");if(g)throw new Error("We currently do not support exact integer digits")}return""});continue}if(GS.test(i.stem)){t.minimumIntegerDigits=i.stem.length;continue}if(_y.test(i.stem)){if(i.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(_y,function(c,u,h,d,m,g){return h==="*"?t.minimumFractionDigits=u.length:d&&d[0]==="#"?t.maximumFractionDigits=d.length:m&&g?(t.minimumFractionDigits=m.length,t.maximumFractionDigits=m.length+g.length):(t.minimumFractionDigits=u.length,t.maximumFractionDigits=u.length),""});var o=i.options[0];o==="w"?t=Be(Be({},t),{trailingZeroDisplay:"stripIfInteger"}):o&&(t=Be(Be({},t),by(o)));continue}if(zS.test(i.stem)){t=Be(Be({},t),by(i.stem));continue}var s=VS(i.stem);s&&(t=Be(Be({},t),s));var a=F3(i.stem);a&&(t=Be(Be({},t),a))}return t}var Nc={"001":["H","h"],419:["h","H","hB","hb"],AC:["H","h","hb","hB"],AD:["H","hB"],AE:["h","hB","hb","H"],AF:["H","hb","hB","h"],AG:["h","hb","H","hB"],AI:["H","h","hb","hB"],AL:["h","H","hB"],AM:["H","hB"],AO:["H","hB"],AR:["h","H","hB","hb"],AS:["h","H"],AT:["H","hB"],AU:["h","hb","H","hB"],AW:["H","hB"],AX:["H"],AZ:["H","hB","h"],BA:["H","hB","h"],BB:["h","hb","H","hB"],BD:["h","hB","H"],BE:["H","hB"],BF:["H","hB"],BG:["H","hB","h"],BH:["h","hB","hb","H"],BI:["H","h"],BJ:["H","hB"],BL:["H","hB"],BM:["h","hb","H","hB"],BN:["hb","hB","h","H"],BO:["h","H","hB","hb"],BQ:["H"],BR:["H","hB"],BS:["h","hb","H","hB"],BT:["h","H"],BW:["H","h","hb","hB"],BY:["H","h"],BZ:["H","h","hb","hB"],CA:["h","hb","H","hB"],CC:["H","h","hb","hB"],CD:["hB","H"],CF:["H","h","hB"],CG:["H","hB"],CH:["H","hB","h"],CI:["H","hB"],CK:["H","h","hb","hB"],CL:["h","H","hB","hb"],CM:["H","h","hB"],CN:["H","hB","hb","h"],CO:["h","H","hB","hb"],CP:["H"],CR:["h","H","hB","hb"],CU:["h","H","hB","hb"],CV:["H","hB"],CW:["H","hB"],CX:["H","h","hb","hB"],CY:["h","H","hb","hB"],CZ:["H"],DE:["H","hB"],DG:["H","h","hb","hB"],DJ:["h","H"],DK:["H"],DM:["h","hb","H","hB"],DO:["h","H","hB","hb"],DZ:["h","hB","hb","H"],EA:["H","h","hB","hb"],EC:["h","H","hB","hb"],EE:["H","hB"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],ER:["h","H"],ES:["H","hB","h","hb"],ET:["hB","hb","h","H"],FI:["H"],FJ:["h","hb","H","hB"],FK:["H","h","hb","hB"],FM:["h","hb","H","hB"],FO:["H","h"],FR:["H","hB"],GA:["H","hB"],GB:["H","h","hb","hB"],GD:["h","hb","H","hB"],GE:["H","hB","h"],GF:["H","hB"],GG:["H","h","hb","hB"],GH:["h","H"],GI:["H","h","hb","hB"],GL:["H","h"],GM:["h","hb","H","hB"],GN:["H","hB"],GP:["H","hB"],GQ:["H","hB","h","hb"],GR:["h","H","hb","hB"],GT:["h","H","hB","hb"],GU:["h","hb","H","hB"],GW:["H","hB"],GY:["h","hb","H","hB"],HK:["h","hB","hb","H"],HN:["h","H","hB","hb"],HR:["H","hB"],HU:["H","h"],IC:["H","h","hB","hb"],ID:["H"],IE:["H","h","hb","hB"],IL:["H","hB"],IM:["H","h","hb","hB"],IN:["h","H"],IO:["H","h","hb","hB"],IQ:["h","hB","hb","H"],IR:["hB","H"],IS:["H"],IT:["H","hB"],JE:["H","h","hb","hB"],JM:["h","hb","H","hB"],JO:["h","hB","hb","H"],JP:["H","K","h"],KE:["hB","hb","H","h"],KG:["H","h","hB","hb"],KH:["hB","h","H","hb"],KI:["h","hb","H","hB"],KM:["H","h","hB","hb"],KN:["h","hb","H","hB"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],KW:["h","hB","hb","H"],KY:["h","hb","H","hB"],KZ:["H","hB"],LA:["H","hb","hB","h"],LB:["h","hB","hb","H"],LC:["h","hb","H","hB"],LI:["H","hB","h"],LK:["H","h","hB","hb"],LR:["h","hb","H","hB"],LS:["h","H"],LT:["H","h","hb","hB"],LU:["H","h","hB"],LV:["H","hB","hb","h"],LY:["h","hB","hb","H"],MA:["H","h","hB","hb"],MC:["H","hB"],MD:["H","hB"],ME:["H","hB","h"],MF:["H","hB"],MG:["H","h"],MH:["h","hb","H","hB"],MK:["H","h","hb","hB"],ML:["H"],MM:["hB","hb","H","h"],MN:["H","h","hb","hB"],MO:["h","hB","hb","H"],MP:["h","hb","H","hB"],MQ:["H","hB"],MR:["h","hB","hb","H"],MS:["H","h","hb","hB"],MT:["H","h"],MU:["H","h"],MV:["H","h"],MW:["h","hb","H","hB"],MX:["h","H","hB","hb"],MY:["hb","hB","h","H"],MZ:["H","hB"],NA:["h","H","hB","hb"],NC:["H","hB"],NE:["H"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NI:["h","H","hB","hb"],NL:["H","hB"],NO:["H","h"],NP:["H","h","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],NZ:["h","hb","H","hB"],OM:["h","hB","hb","H"],PA:["h","H","hB","hb"],PE:["h","H","hB","hb"],PF:["H","h","hB"],PG:["h","H"],PH:["h","hB","hb","H"],PK:["h","hB","H"],PL:["H","h"],PM:["H","hB"],PN:["H","h","hb","hB"],PR:["h","H","hB","hb"],PS:["h","hB","hb","H"],PT:["H","hB"],PW:["h","H"],PY:["h","H","hB","hb"],QA:["h","hB","hb","H"],RE:["H","hB"],RO:["H","hB"],RS:["H","hB","h"],RU:["H"],RW:["H","h"],SA:["h","hB","hb","H"],SB:["h","hb","H","hB"],SC:["H","h","hB"],SD:["h","hB","hb","H"],SE:["H"],SG:["h","hb","H","hB"],SH:["H","h","hb","hB"],SI:["H","hB"],SJ:["H"],SK:["H"],SL:["h","hb","H","hB"],SM:["H","h","hB"],SN:["H","h","hB"],SO:["h","H"],SR:["H","hB"],SS:["h","hb","H","hB"],ST:["H","hB"],SV:["h","H","hB","hb"],SX:["H","h","hb","hB"],SY:["h","hB","hb","H"],SZ:["h","hb","H","hB"],TA:["H","h","hb","hB"],TC:["h","hb","H","hB"],TD:["h","H","hB"],TF:["H","h","hB"],TG:["H","hB"],TH:["H","h"],TJ:["H","h"],TL:["H","hB","hb","h"],TM:["H","h"],TN:["h","hB","hb","H"],TO:["h","H"],TR:["H","hB"],TT:["h","hb","H","hB"],TW:["hB","hb","h","H"],TZ:["hB","hb","H","h"],UA:["H","hB","h"],UG:["hB","hb","H","h"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],UY:["h","H","hB","hb"],UZ:["H","hB","h"],VA:["H","h","hB"],VC:["h","hb","H","hB"],VE:["h","H","hB","hb"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],VN:["H","h"],VU:["h","H"],WF:["H","hB"],WS:["h","H"],XK:["H","hB","h"],YE:["h","hB","hb","H"],YT:["H","hB"],ZA:["H","h","hb","hB"],ZM:["h","hb","H","hB"],ZW:["H","h"],"af-ZA":["H","h","hB","hb"],"ar-001":["h","hB","hb","H"],"ca-ES":["H","h","hB"],"en-001":["h","hb","H","hB"],"en-HK":["h","hb","H","hB"],"en-IL":["H","h","hb","hB"],"en-MY":["h","hb","H","hB"],"es-BR":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"gu-IN":["hB","hb","h","H"],"hi-IN":["hB","h","H"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],"ta-IN":["hB","h","hb","H"],"te-IN":["hB","h","H"],"zu-ZA":["H","hB","hb","h"]};function U3(e,t){for(var n="",r=0;r<e.length;r++){var i=e.charAt(r);if(i==="j"){for(var o=0;r+1<e.length&&e.charAt(r+1)===i;)o++,r++;var s=1+(o&1),a=o<2?1:3+(o>>1),c="a",u=j3(t);for((u=="H"||u=="k")&&(a=0);a-- >0;)n+=c;for(;s-- >0;)n=u+n}else i==="J"?n+="H":n+=i}return n}function j3(e){var t=e.hourCycle;if(t===void 0&&e.hourCycles&&e.hourCycles.length&&(t=e.hourCycles[0]),t)switch(t){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var n=e.language,r;n!=="root"&&(r=e.maximize().region);var i=Nc[r||""]||Nc[n||""]||Nc["".concat(n,"-001")]||Nc["001"];return i[0]}var Id,$3=new RegExp("^".concat(WS.source,"*")),W3=new RegExp("".concat(WS.source,"*$"));function pt(e,t){return{start:e,end:t}}var z3=!!String.prototype.startsWith&&"_a".startsWith("a",1),G3=!!String.fromCodePoint,V3=!!Object.fromEntries,q3=!!String.prototype.codePointAt,Y3=!!String.prototype.trimStart,X3=!!String.prototype.trimEnd,K3=!!Number.isSafeInteger,J3=K3?Number.isSafeInteger:function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},Pf=!0;try{var Z3=YS("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Pf=((Id=Z3.exec("a"))===null||Id===void 0?void 0:Id[0])==="a"}catch{Pf=!1}var Ey=z3?function(t,n,r){return t.startsWith(n,r)}:function(t,n,r){return t.slice(r,r+n.length)===n},xf=G3?String.fromCodePoint:function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];for(var r="",i=t.length,o=0,s;i>o;){if(s=t[o++],s>1114111)throw RangeError(s+" is not a valid code point");r+=s<65536?String.fromCharCode(s):String.fromCharCode(((s-=65536)>>10)+55296,s%1024+56320)}return r},Sy=V3?Object.fromEntries:function(t){for(var n={},r=0,i=t;r<i.length;r++){var o=i[r],s=o[0],a=o[1];n[s]=a}return n},qS=q3?function(t,n){return t.codePointAt(n)}:function(t,n){var r=t.length;if(!(n<0||n>=r)){var i=t.charCodeAt(n),o;return i<55296||i>56319||n+1===r||(o=t.charCodeAt(n+1))<56320||o>57343?i:(i-55296<<10)+(o-56320)+65536}},Q3=Y3?function(t){return t.trimStart()}:function(t){return t.replace($3,"")},eH=X3?function(t){return t.trimEnd()}:function(t){return t.replace(W3,"")};function YS(e,t){return new RegExp(e,t)}var Lf;if(Pf){var wy=YS("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Lf=function(t,n){var r;wy.lastIndex=n;var i=wy.exec(t);return(r=i[1])!==null&&r!==void 0?r:""}}else Lf=function(t,n){for(var r=[];;){var i=qS(t,n);if(i===void 0||XS(i)||iH(i))break;r.push(i),n+=i>=65536?2:1}return xf.apply(void 0,r)};var tH=function(){function e(t,n){n===void 0&&(n={}),this.message=t,this.position={offset:0,line:1,column:1},this.ignoreTag=!!n.ignoreTag,this.locale=n.locale,this.requiresOtherClause=!!n.requiresOtherClause,this.shouldParseSkeletons=!!n.shouldParseSkeletons}return e.prototype.parse=function(){if(this.offset()!==0)throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(t,n,r){for(var i=[];!this.isEOF();){var o=this.char();if(o===123){var s=this.parseArgument(t,r);if(s.err)return s;i.push(s.val)}else{if(o===125&&t>0)break;if(o===35&&(n==="plural"||n==="selectordinal")){var a=this.clonePosition();this.bump(),i.push({type:kt.pound,location:pt(a,this.clonePosition())})}else if(o===60&&!this.ignoreTag&&this.peek()===47){if(r)break;return this.error(ft.UNMATCHED_CLOSING_TAG,pt(this.clonePosition(),this.clonePosition()))}else if(o===60&&!this.ignoreTag&&Df(this.peek()||0)){var s=this.parseTag(t,n);if(s.err)return s;i.push(s.val)}else{var s=this.parseLiteral(t,n);if(s.err)return s;i.push(s.val)}}}return{val:i,err:null}},e.prototype.parseTag=function(t,n){var r=this.clonePosition();this.bump();var i=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:kt.literal,value:"<".concat(i,"/>"),location:pt(r,this.clonePosition())},err:null};if(this.bumpIf(">")){var o=this.parseMessage(t+1,n,!0);if(o.err)return o;var s=o.val,a=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!Df(this.char()))return this.error(ft.INVALID_TAG,pt(a,this.clonePosition()));var c=this.clonePosition(),u=this.parseTagName();return i!==u?this.error(ft.UNMATCHED_CLOSING_TAG,pt(c,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:kt.tag,value:i,children:s,location:pt(r,this.clonePosition())},err:null}:this.error(ft.INVALID_TAG,pt(a,this.clonePosition())))}else return this.error(ft.UNCLOSED_TAG,pt(r,this.clonePosition()))}else return this.error(ft.INVALID_TAG,pt(r,this.clonePosition()))},e.prototype.parseTagName=function(){var t=this.offset();for(this.bump();!this.isEOF()&&rH(this.char());)this.bump();return this.message.slice(t,this.offset())},e.prototype.parseLiteral=function(t,n){for(var r=this.clonePosition(),i="";;){var o=this.tryParseQuote(n);if(o){i+=o;continue}var s=this.tryParseUnquoted(t,n);if(s){i+=s;continue}var a=this.tryParseLeftAngleBracket();if(a){i+=a;continue}break}var c=pt(r,this.clonePosition());return{val:{type:kt.literal,value:i,location:c},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!nH(this.peek()||0))?(this.bump(),"<"):null},e.prototype.tryParseQuote=function(t){if(this.isEOF()||this.char()!==39)return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if(t==="plural"||t==="selectordinal")break;return null;default:return null}this.bump();var n=[this.char()];for(this.bump();!this.isEOF();){var r=this.char();if(r===39)if(this.peek()===39)n.push(39),this.bump();else{this.bump();break}else n.push(r);this.bump()}return xf.apply(void 0,n)},e.prototype.tryParseUnquoted=function(t,n){if(this.isEOF())return null;var r=this.char();return r===60||r===123||r===35&&(n==="plural"||n==="selectordinal")||r===125&&t>0?null:(this.bump(),xf(r))},e.prototype.parseArgument=function(t,n){var r=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(ft.EXPECT_ARGUMENT_CLOSING_BRACE,pt(r,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(ft.EMPTY_ARGUMENT,pt(r,this.clonePosition()));var i=this.parseIdentifierIfPossible().value;if(!i)return this.error(ft.MALFORMED_ARGUMENT,pt(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(ft.EXPECT_ARGUMENT_CLOSING_BRACE,pt(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:kt.argument,value:i,location:pt(r,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(ft.EXPECT_ARGUMENT_CLOSING_BRACE,pt(r,this.clonePosition())):this.parseArgumentOptions(t,n,i,r);default:return this.error(ft.MALFORMED_ARGUMENT,pt(r,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),n=this.offset(),r=Lf(this.message,n),i=n+r.length;this.bumpTo(i);var o=this.clonePosition(),s=pt(t,o);return{value:r,location:s}},e.prototype.parseArgumentOptions=function(t,n,r,i){var o,s=this.clonePosition(),a=this.parseIdentifierIfPossible().value,c=this.clonePosition();switch(a){case"":return this.error(ft.EXPECT_ARGUMENT_TYPE,pt(s,c));case"number":case"date":case"time":{this.bumpSpace();var u=null;if(this.bumpIf(",")){this.bumpSpace();var h=this.clonePosition(),d=this.parseSimpleArgStyleIfPossible();if(d.err)return d;var m=eH(d.val);if(m.length===0)return this.error(ft.EXPECT_ARGUMENT_STYLE,pt(this.clonePosition(),this.clonePosition()));var g=pt(h,this.clonePosition());u={style:m,styleLocation:g}}var E=this.tryParseArgumentClose(i);if(E.err)return E;var T=pt(i,this.clonePosition());if(u&&Ey(u?.style,"::",0)){var L=Q3(u.style.slice(2));if(a==="number"){var d=this.parseNumberSkeletonFromString(L,u.styleLocation);return d.err?d:{val:{type:kt.number,value:r,location:T,style:d.val},err:null}}else{if(L.length===0)return this.error(ft.EXPECT_DATE_TIME_SKELETON,T);var H=L;this.locale&&(H=U3(L,this.locale));var m={type:Jo.dateTime,pattern:H,location:u.styleLocation,parsedOptions:this.shouldParseSkeletons?P3(H):{}},K=a==="date"?kt.date:kt.time;return{val:{type:K,value:r,location:T,style:m},err:null}}}return{val:{type:a==="number"?kt.number:a==="date"?kt.date:kt.time,value:r,location:T,style:(o=u?.style)!==null&&o!==void 0?o:null},err:null}}case"plural":case"selectordinal":case"select":{var V=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(ft.EXPECT_SELECT_ARGUMENT_OPTIONS,pt(V,Be({},V)));this.bumpSpace();var F=this.parseIdentifierIfPossible(),J=0;if(a!=="select"&&F.value==="offset"){if(!this.bumpIf(":"))return this.error(ft.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,pt(this.clonePosition(),this.clonePosition()));this.bumpSpace();var d=this.tryParseDecimalInteger(ft.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,ft.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(d.err)return d;this.bumpSpace(),F=this.parseIdentifierIfPossible(),J=d.val}var D=this.tryParsePluralOrSelectOptions(t,a,n,F);if(D.err)return D;var E=this.tryParseArgumentClose(i);if(E.err)return E;var W=pt(i,this.clonePosition());return a==="select"?{val:{type:kt.select,value:r,options:Sy(D.val),location:W},err:null}:{val:{type:kt.plural,value:r,options:Sy(D.val),offset:J,pluralType:a==="plural"?"cardinal":"ordinal",location:W},err:null}}default:return this.error(ft.INVALID_ARGUMENT_TYPE,pt(s,c))}},e.prototype.tryParseArgumentClose=function(t){return this.isEOF()||this.char()!==125?this.error(ft.EXPECT_ARGUMENT_CLOSING_BRACE,pt(t,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var t=0,n=this.clonePosition();!this.isEOF();){var r=this.char();switch(r){case 39:{this.bump();var i=this.clonePosition();if(!this.bumpUntil("'"))return this.error(ft.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,pt(i,this.clonePosition()));this.bump();break}case 123:{t+=1,this.bump();break}case 125:{if(t>0)t-=1;else return{val:this.message.slice(n.offset,this.offset()),err:null};break}default:this.bump();break}}return{val:this.message.slice(n.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(t,n){var r=[];try{r=L3(t)}catch{return this.error(ft.INVALID_NUMBER_SKELETON,n)}return{val:{type:Jo.number,tokens:r,location:n,parsedOptions:this.shouldParseSkeletons?H3(r):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(t,n,r,i){for(var o,s=!1,a=[],c=new Set,u=i.value,h=i.location;;){if(u.length===0){var d=this.clonePosition();if(n!=="select"&&this.bumpIf("=")){var m=this.tryParseDecimalInteger(ft.EXPECT_PLURAL_ARGUMENT_SELECTOR,ft.INVALID_PLURAL_ARGUMENT_SELECTOR);if(m.err)return m;h=pt(d,this.clonePosition()),u=this.message.slice(d.offset,this.offset())}else break}if(c.has(u))return this.error(n==="select"?ft.DUPLICATE_SELECT_ARGUMENT_SELECTOR:ft.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,h);u==="other"&&(s=!0),this.bumpSpace();var g=this.clonePosition();if(!this.bumpIf("{"))return this.error(n==="select"?ft.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:ft.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,pt(this.clonePosition(),this.clonePosition()));var E=this.parseMessage(t+1,n,r);if(E.err)return E;var T=this.tryParseArgumentClose(g);if(T.err)return T;a.push([u,{value:E.val,location:pt(g,this.clonePosition())}]),c.add(u),this.bumpSpace(),o=this.parseIdentifierIfPossible(),u=o.value,h=o.location}return a.length===0?this.error(n==="select"?ft.EXPECT_SELECT_ARGUMENT_SELECTOR:ft.EXPECT_PLURAL_ARGUMENT_SELECTOR,pt(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!s?this.error(ft.MISSING_OTHER_CLAUSE,pt(this.clonePosition(),this.clonePosition())):{val:a,err:null}},e.prototype.tryParseDecimalInteger=function(t,n){var r=1,i=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(r=-1);for(var o=!1,s=0;!this.isEOF();){var a=this.char();if(a>=48&&a<=57)o=!0,s=s*10+(a-48),this.bump();else break}var c=pt(i,this.clonePosition());return o?(s*=r,J3(s)?{val:s,err:null}:this.error(n,c)):this.error(t,c)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var t=this.position.offset;if(t>=this.message.length)throw Error("out of bound");var n=qS(this.message,t);if(n===void 0)throw Error("Offset ".concat(t," is at invalid UTF-16 code unit boundary"));return n},e.prototype.error=function(t,n){return{val:null,err:{kind:t,message:this.message,location:n}}},e.prototype.bump=function(){if(!this.isEOF()){var t=this.char();t===10?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=t<65536?1:2)}},e.prototype.bumpIf=function(t){if(Ey(this.message,t,this.offset())){for(var n=0;n<t.length;n++)this.bump();return!0}return!1},e.prototype.bumpUntil=function(t){var n=this.offset(),r=this.message.indexOf(t,n);return r>=0?(this.bumpTo(r),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(t){if(this.offset()>t)throw Error("targetOffset ".concat(t," must be greater than or equal to the current offset ").concat(this.offset()));for(t=Math.min(t,this.message.length);;){var n=this.offset();if(n===t)break;if(n>t)throw Error("targetOffset ".concat(t," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&XS(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var t=this.char(),n=this.offset(),r=this.message.charCodeAt(n+(t>=65536?2:1));return r??null},e}();function Df(e){return e>=97&&e<=122||e>=65&&e<=90}function nH(e){return Df(e)||e===47}function rH(e){return e===45||e===46||e>=48&&e<=57||e===95||e>=97&&e<=122||e>=65&&e<=90||e==183||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039}function XS(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function iH(e){return e>=33&&e<=35||e===36||e>=37&&e<=39||e===40||e===41||e===42||e===43||e===44||e===45||e>=46&&e<=47||e>=58&&e<=59||e>=60&&e<=62||e>=63&&e<=64||e===91||e===92||e===93||e===94||e===96||e===123||e===124||e===125||e===126||e===161||e>=162&&e<=165||e===166||e===167||e===169||e===171||e===172||e===174||e===176||e===177||e===182||e===187||e===191||e===215||e===247||e>=8208&&e<=8213||e>=8214&&e<=8215||e===8216||e===8217||e===8218||e>=8219&&e<=8220||e===8221||e===8222||e===8223||e>=8224&&e<=8231||e>=8240&&e<=8248||e===8249||e===8250||e>=8251&&e<=8254||e>=8257&&e<=8259||e===8260||e===8261||e===8262||e>=8263&&e<=8273||e===8274||e===8275||e>=8277&&e<=8286||e>=8592&&e<=8596||e>=8597&&e<=8601||e>=8602&&e<=8603||e>=8604&&e<=8607||e===8608||e>=8609&&e<=8610||e===8611||e>=8612&&e<=8613||e===8614||e>=8615&&e<=8621||e===8622||e>=8623&&e<=8653||e>=8654&&e<=8655||e>=8656&&e<=8657||e===8658||e===8659||e===8660||e>=8661&&e<=8691||e>=8692&&e<=8959||e>=8960&&e<=8967||e===8968||e===8969||e===8970||e===8971||e>=8972&&e<=8991||e>=8992&&e<=8993||e>=8994&&e<=9e3||e===9001||e===9002||e>=9003&&e<=9083||e===9084||e>=9085&&e<=9114||e>=9115&&e<=9139||e>=9140&&e<=9179||e>=9180&&e<=9185||e>=9186&&e<=9254||e>=9255&&e<=9279||e>=9280&&e<=9290||e>=9291&&e<=9311||e>=9472&&e<=9654||e===9655||e>=9656&&e<=9664||e===9665||e>=9666&&e<=9719||e>=9720&&e<=9727||e>=9728&&e<=9838||e===9839||e>=9840&&e<=10087||e===10088||e===10089||e===10090||e===10091||e===10092||e===10093||e===10094||e===10095||e===10096||e===10097||e===10098||e===10099||e===10100||e===10101||e>=10132&&e<=10175||e>=10176&&e<=10180||e===10181||e===10182||e>=10183&&e<=10213||e===10214||e===10215||e===10216||e===10217||e===10218||e===10219||e===10220||e===10221||e===10222||e===10223||e>=10224&&e<=10239||e>=10240&&e<=10495||e>=10496&&e<=10626||e===10627||e===10628||e===10629||e===10630||e===10631||e===10632||e===10633||e===10634||e===10635||e===10636||e===10637||e===10638||e===10639||e===10640||e===10641||e===10642||e===10643||e===10644||e===10645||e===10646||e===10647||e===10648||e>=10649&&e<=10711||e===10712||e===10713||e===10714||e===10715||e>=10716&&e<=10747||e===10748||e===10749||e>=10750&&e<=11007||e>=11008&&e<=11055||e>=11056&&e<=11076||e>=11077&&e<=11078||e>=11079&&e<=11084||e>=11085&&e<=11123||e>=11124&&e<=11125||e>=11126&&e<=11157||e===11158||e>=11159&&e<=11263||e>=11776&&e<=11777||e===11778||e===11779||e===11780||e===11781||e>=11782&&e<=11784||e===11785||e===11786||e===11787||e===11788||e===11789||e>=11790&&e<=11798||e===11799||e>=11800&&e<=11801||e===11802||e===11803||e===11804||e===11805||e>=11806&&e<=11807||e===11808||e===11809||e===11810||e===11811||e===11812||e===11813||e===11814||e===11815||e===11816||e===11817||e>=11818&&e<=11822||e===11823||e>=11824&&e<=11833||e>=11834&&e<=11835||e>=11836&&e<=11839||e===11840||e===11841||e===11842||e>=11843&&e<=11855||e>=11856&&e<=11857||e===11858||e>=11859&&e<=11903||e>=12289&&e<=12291||e===12296||e===12297||e===12298||e===12299||e===12300||e===12301||e===12302||e===12303||e===12304||e===12305||e>=12306&&e<=12307||e===12308||e===12309||e===12310||e===12311||e===12312||e===12313||e===12314||e===12315||e===12316||e===12317||e>=12318&&e<=12319||e===12320||e===12336||e===64830||e===64831||e>=65093&&e<=65094}function Bf(e){e.forEach(function(t){if(delete t.location,HS(t)||US(t))for(var n in t.options)delete t.options[n].location,Bf(t.options[n].value);else DS(t)&&$S(t.style)||(BS(t)||FS(t))&&kf(t.style)?delete t.style.location:jS(t)&&Bf(t.children)})}function oH(e,t){t===void 0&&(t={}),t=Be({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var n=new tH(e,t).parse();if(n.err){var r=SyntaxError(ft[n.err.kind]);throw r.location=n.err.location,r.originalMessage=n.err.message,r}return t?.captureLocation||Bf(n.val),n.val}var Or;(function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"})(Or||(Or={}));var Ci=function(e){dr(t,e);function t(n,r,i){var o=e.call(this,n)||this;return o.code=r,o.originalMessage=i,o}return t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),Ty=function(e){dr(t,e);function t(n,r,i,o){return e.call(this,'Invalid values for "'.concat(n,'": "').concat(r,'". Options are "').concat(Object.keys(i).join('", "'),'"'),Or.INVALID_VALUE,o)||this}return t}(Ci),sH=function(e){dr(t,e);function t(n,r,i){return e.call(this,'Value for "'.concat(n,'" must be of type ').concat(r),Or.INVALID_VALUE,i)||this}return t}(Ci),aH=function(e){dr(t,e);function t(n,r){return e.call(this,'The intl string context variable "'.concat(n,'" was not provided to the string "').concat(r,'"'),Or.MISSING_VALUE,r)||this}return t}(Ci),vn;(function(e){e[e.literal=0]="literal",e[e.object=1]="object"})(vn||(vn={}));function cH(e){return e.length<2?e:e.reduce(function(t,n){var r=t[t.length-1];return!r||r.type!==vn.literal||n.type!==vn.literal?t.push(n):r.value+=n.value,t},[])}function uH(e){return typeof e=="function"}function eu(e,t,n,r,i,o,s){if(e.length===1&&yy(e[0]))return[{type:vn.literal,value:e[0].value}];for(var a=[],c=0,u=e;c<u.length;c++){var h=u[c];if(yy(h)){a.push({type:vn.literal,value:h.value});continue}if(N3(h)){typeof o=="number"&&a.push({type:vn.literal,value:n.getNumberFormat(t).format(o)});continue}var d=h.value;if(!(i&&d in i))throw new aH(d,s);var m=i[d];if(M3(h)){(!m||typeof m=="string"||typeof m=="number")&&(m=typeof m=="string"||typeof m=="number"?String(m):""),a.push({type:typeof m=="string"?vn.literal:vn.object,value:m});continue}if(BS(h)){var g=typeof h.style=="string"?r.date[h.style]:kf(h.style)?h.style.parsedOptions:void 0;a.push({type:vn.literal,value:n.getDateTimeFormat(t,g).format(m)});continue}if(FS(h)){var g=typeof h.style=="string"?r.time[h.style]:kf(h.style)?h.style.parsedOptions:r.time.medium;a.push({type:vn.literal,value:n.getDateTimeFormat(t,g).format(m)});continue}if(DS(h)){var g=typeof h.style=="string"?r.number[h.style]:$S(h.style)?h.style.parsedOptions:void 0;g&&g.scale&&(m=m*(g.scale||1)),a.push({type:vn.literal,value:n.getNumberFormat(t,g).format(m)});continue}if(jS(h)){var E=h.children,T=h.value,L=i[T];if(!uH(L))throw new sH(T,"function",s);var H=eu(E,t,n,r,i,o),K=L(H.map(function(J){return J.value}));Array.isArray(K)||(K=[K]),a.push.apply(a,K.map(function(J){return{type:typeof J=="string"?vn.literal:vn.object,value:J}}))}if(HS(h)){var V=h.options[m]||h.options.other;if(!V)throw new Ty(h.value,m,Object.keys(h.options),s);a.push.apply(a,eu(V.value,t,n,r,i));continue}if(US(h)){var V=h.options["=".concat(m)];if(!V){if(!Intl.PluralRules)throw new Ci(`Intl.PluralRules is not available in this environment.
514
+ or you can use record.mirror to access the mirror instance during recording.`;let ey={map:{},getId(){return console.error(Io),-1},getNode(){return console.error(Io),null},removeNodeFromMap(){console.error(Io)},has(){return console.error(Io),!1},reset(){console.error(Io)}};typeof window<"u"&&window.Proxy&&window.Reflect&&(ey=new Proxy(ey,{get(e,t,n){return t==="map"&&console.error(Io),Reflect.get(e,t,n)}}));function pp(e,t,n,r,i=window){const o=i.Object.getOwnPropertyDescriptor(e,t);return i.Object.defineProperty(e,t,r?n:{set(s){pS(()=>{n.set.call(this,s)},0),o&&o.set&&o.set.call(this,s)}}),()=>pp(e,t,o||{},!0)}function mp(e,t,n){try{if(!(t in e))return()=>{};const r=e[t],i=n(r);return typeof i=="function"&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__rrweb_original__:{enumerable:!1,value:r}})),e[t]=i,()=>{e[t]=r}}catch{return()=>{}}}Date.now().toString();function GB(e){if(!e)return null;try{return e.nodeType===e.ELEMENT_NODE?e:e.parentElement}catch{return null}}function Sl(e,t,n,r,i){if(!e)return!1;const o=GB(e);if(!o)return!1;const s=Qg(t,n),a=Rf(o,s);let c=-1;return a<0?!1:(r&&(c=Rf(o,Qg(null,r))),a>-1&&c<0?!0:a<c)}const ty={};function hS(e){const t=ty[e];if(t)return t;const n=window.document;let r=window[e];if(n&&typeof n.createElement=="function")try{const i=n.createElement("iframe");i.hidden=!0,n.head.appendChild(i);const o=i.contentWindow;o&&o[e]&&(r=o[e]),n.head.removeChild(i)}catch{}return ty[e]=r.bind(window)}function ki(...e){return hS("requestAnimationFrame")(...e)}function pS(...e){return hS("setTimeout")(...e)}var Xo=(e=>(e[e["2D"]=0]="2D",e[e.WebGL=1]="WebGL",e[e.WebGL2=2]="WebGL2",e))(Xo||{});let Jc;function VB(e){Jc=e}const wd=e=>Jc?(...n)=>{try{return e(...n)}catch(r){if(Jc&&Jc(r)===!0)return()=>{};throw r}}:e;var No="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",qB=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var Rc=0;Rc<No.length;Rc++)qB[No.charCodeAt(Rc)]=Rc;var YB=function(e){var t=new Uint8Array(e),n,r=t.length,i="";for(n=0;n<r;n+=3)i+=No[t[n]>>2],i+=No[(t[n]&3)<<4|t[n+1]>>4],i+=No[(t[n+1]&15)<<2|t[n+2]>>6],i+=No[t[n+2]&63];return r%3===2?i=i.substring(0,i.length-1)+"=":r%3===1&&(i=i.substring(0,i.length-2)+"=="),i};const ny=new Map;function XB(e,t){let n=ny.get(e);return n||(n=new Map,ny.set(e,n)),n.has(t)||n.set(t,[]),n.get(t)}const mS=(e,t,n)=>{if(!e||!(yS(e,t)||typeof e=="object"))return;const r=e.constructor.name,i=XB(n,r);let o=i.indexOf(e);return o===-1&&(o=i.length,i.push(e)),o};function Zc(e,t,n){if(e instanceof Array)return e.map(r=>Zc(r,t,n));if(e===null)return e;if(e instanceof Float32Array||e instanceof Float64Array||e instanceof Int32Array||e instanceof Uint32Array||e instanceof Uint8Array||e instanceof Uint16Array||e instanceof Int16Array||e instanceof Int8Array||e instanceof Uint8ClampedArray)return{rr_type:e.constructor.name,args:[Object.values(e)]};if(e instanceof ArrayBuffer){const r=e.constructor.name,i=YB(e);return{rr_type:r,base64:i}}else{if(e instanceof DataView)return{rr_type:e.constructor.name,args:[Zc(e.buffer,t,n),e.byteOffset,e.byteLength]};if(e instanceof HTMLImageElement){const r=e.constructor.name,{src:i}=e;return{rr_type:r,src:i}}else if(e instanceof HTMLCanvasElement){const r="HTMLImageElement",i=e.toDataURL();return{rr_type:r,src:i}}else{if(e instanceof ImageData)return{rr_type:e.constructor.name,args:[Zc(e.data,t,n),e.width,e.height]};if(yS(e,t)||typeof e=="object"){const r=e.constructor.name,i=mS(e,t,n);return{rr_type:r,index:i}}}}return e}const gS=(e,t,n)=>e.map(r=>Zc(r,t,n)),yS=(e,t)=>!!["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"].filter(i=>typeof t[i]=="function").find(i=>e instanceof t[i]);function KB(e,t,n,r,i){const o=[],s=Object.getOwnPropertyNames(t.CanvasRenderingContext2D.prototype);for(const a of s)try{if(typeof t.CanvasRenderingContext2D.prototype[a]!="function")continue;const c=mp(t.CanvasRenderingContext2D.prototype,a,function(u){return function(...h){return Sl(this.canvas,n,r,i,!0)||pS(()=>{const d=gS(h,t,this);e(this.canvas,{type:Xo["2D"],property:a,args:d})},0),u.apply(this,h)}});o.push(c)}catch{const c=pp(t.CanvasRenderingContext2D.prototype,a,{set(u){e(this.canvas,{type:Xo["2D"],property:a,args:[u],setter:!0})}});o.push(c)}return()=>{o.forEach(a=>a())}}function JB(e){return e==="experimental-webgl"?"webgl":e}function ry(e,t,n,r,i){const o=[];try{const s=mp(e.HTMLCanvasElement.prototype,"getContext",function(a){return function(c,...u){if(!Sl(this,t,n,r,!0)){const h=JB(c);if("__context"in this||(this.__context=h),i&&["webgl","webgl2"].includes(h))if(u[0]&&typeof u[0]=="object"){const d=u[0];d.preserveDrawingBuffer||(d.preserveDrawingBuffer=!0)}else u.splice(0,1,{preserveDrawingBuffer:!0})}return a.apply(this,[c,...u])}});o.push(s)}catch{console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return()=>{o.forEach(s=>s())}}function iy(e,t,n,r,i,o,s,a){const c=[],u=Object.getOwnPropertyNames(e);for(const h of u)if(!["isContextLost","canvas","drawingBufferWidth","drawingBufferHeight"].includes(h))try{if(typeof e[h]!="function")continue;const d=mp(e,h,function(m){return function(...g){const E=m.apply(this,g);if(mS(E,a,this),"tagName"in this.canvas&&!Sl(this.canvas,r,i,o,!0)){const T=gS(g,a,this),L={type:t,property:h,args:T};n(this.canvas,L)}return E}});c.push(d)}catch{const d=pp(e,h,{set(m){n(this.canvas,{type:t,property:h,args:[m],setter:!0})}});c.push(d)}return c}function ZB(e,t,n,r,i,o){const s=[];return s.push(...iy(t.WebGLRenderingContext.prototype,Xo.WebGL,e,n,r,i,o,t)),typeof t.WebGL2RenderingContext<"u"&&s.push(...iy(t.WebGL2RenderingContext.prototype,Xo.WebGL2,e,n,r,i,o,t)),()=>{s.forEach(a=>a())}}const QB='for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t="undefined"==typeof Uint8Array?[]:new Uint8Array(256),a=0;a<64;a++)t[e.charCodeAt(a)]=a;var n=function(t){var a,n=new Uint8Array(t),r=n.length,s="";for(a=0;a<r;a+=3)s+=e[n[a]>>2],s+=e[(3&n[a])<<4|n[a+1]>>4],s+=e[(15&n[a+1])<<2|n[a+2]>>6],s+=e[63&n[a+2]];return r%3==2?s=s.substring(0,s.length-1)+"=":r%3==1&&(s=s.substring(0,s.length-2)+"=="),s};const r=new Map,s=new Map;const i=self;i.onmessage=async function(e){if(!("OffscreenCanvas"in globalThis))return i.postMessage({id:e.data.id});{const{id:t,bitmap:a,width:o,height:f,maxCanvasSize:c,dataURLOptions:g}=e.data,u=async function(e,t,a){const r=e+"-"+t;if("OffscreenCanvas"in globalThis){if(s.has(r))return s.get(r);const i=new OffscreenCanvas(e,t);i.getContext("2d");const o=await i.convertToBlob(a),f=await o.arrayBuffer(),c=n(f);return s.set(r,c),c}return""}(o,f,g),[h,d]=function(e,t,a){if(!a)return[e,t];const[n,r]=a;if(e<=n&&t<=r)return[e,t];let s=e,i=t;return s>n&&(i=Math.floor(n*t/e),s=n),i>r&&(s=Math.floor(r*e/t),i=r),[s,i]}(o,f,c),l=new OffscreenCanvas(h,d),w=l.getContext("bitmaprenderer"),p=h===o&&d===f?a:await createImageBitmap(a,{resizeWidth:h,resizeHeight:d,resizeQuality:"low"});w?.transferFromImageBitmap(p),a.close();const y=await l.convertToBlob(g),v=y.type,b=await y.arrayBuffer(),m=n(b);if(p.close(),!r.has(t)&&await u===m)return r.set(t,m),i.postMessage({id:t});if(r.get(t)===m)return i.postMessage({id:t});i.postMessage({id:t,type:v,base64:m,width:o,height:f}),r.set(t,m)}};';function eF(){const e=new Blob([QB]);return URL.createObjectURL(e)}class tF{constructor(t){this.pendingCanvasMutations=new Map,this.rafStamps={latestId:0,invokeId:null},this.shadowDoms=new Set,this.windowsSet=new WeakSet,this.windows=[],this.restoreHandlers=[],this.frozen=!1,this.locked=!1,this.snapshotInProgressMap=new Map,this.worker=null,this.lastSnapshotTime=0,this.processMutation=(a,c)=>{(this.rafStamps.invokeId&&this.rafStamps.latestId!==this.rafStamps.invokeId||!this.rafStamps.invokeId)&&(this.rafStamps.invokeId=this.rafStamps.latestId),this.pendingCanvasMutations.has(a)||this.pendingCanvasMutations.set(a,[]),this.pendingCanvasMutations.get(a).push(c)};const{enableManualSnapshot:n,sampling:r="all",win:i,recordCanvas:o,errorHandler:s}=t;t.sampling=r,this.mutationCb=t.mutationCb,this.mirror=t.mirror,this.options=t,s&&VB(s),(o&&typeof r=="number"||n)&&(this.worker=this.initFPSWorker()),this.addWindow(i),!n&&wd(()=>{o&&r==="all"&&(this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher()),o&&typeof r=="number"&&this.initCanvasFPSObserver()})()}reset(){this.pendingCanvasMutations.clear(),this.restoreHandlers.forEach(t=>{try{t()}catch{}}),this.restoreHandlers=[],this.windowsSet=new WeakSet,this.windows=[],this.shadowDoms=new Set,this.worker?.terminate(),this.worker=null,this.snapshotInProgressMap=new Map}freeze(){this.frozen=!0}unfreeze(){this.frozen=!1}lock(){this.locked=!0}unlock(){this.locked=!1}addWindow(t){const{sampling:n="all",blockClass:r,blockSelector:i,unblockSelector:o,recordCanvas:s,enableManualSnapshot:a}=this.options;if(!this.windowsSet.has(t)){if(a){this.windowsSet.add(t),this.windows.push(new WeakRef(t));return}wd(()=>{if(s&&n==="all"&&this.initCanvasMutationObserver(t,r,i,o),s&&typeof n=="number"){const c=ry(t,r,i,o,!0);this.restoreHandlers.push(()=>{c()})}})(),this.windowsSet.add(t),this.windows.push(new WeakRef(t))}}addShadowRoot(t){this.shadowDoms.add(new WeakRef(t))}resetShadowRoots(){this.shadowDoms=new Set}snapshot(t,n){if(n?.skipRequestAnimationFrame){this.takeSnapshot(performance.now(),!0,t);return}ki(r=>this.takeSnapshot(r,!0,t))}initFPSWorker(){const t=new Worker(eF());return t.onmessage=n=>{const r=n.data,{id:i}=r;if(this.snapshotInProgressMap.set(i,!1),!("base64"in r))return;const{base64:o,type:s,width:a,height:c}=r;this.mutationCb({id:i,type:Xo["2D"],commands:[{property:"clearRect",args:[0,0,a,c]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:o}],type:s}]},0,0,a,c]}]})},t}initCanvasFPSObserver(){let t;if(!this.windows.length&&!this.shadowDoms.size)return;const n=r=>{this.takeSnapshot(r,!1),t=ki(n)};t=ki(n),this.restoreHandlers.push(()=>{t&&cancelAnimationFrame(t)})}initCanvasMutationObserver(t,n,r,i){const o=ry(t,n,r,i,!1),s=KB(this.processMutation.bind(this),t,n,r,i),a=ZB(this.processMutation.bind(this),t,n,r,i,this.mirror);this.restoreHandlers.push(()=>{o(),s(),a()})}getCanvasElements(t,n,r){const i=[],o=s=>{s.querySelectorAll("canvas").forEach(a=>{Sl(a,t,n,r)||i.push(a)})};for(const s of this.windows){const a=s.deref();let c;try{c=a&&a.document}catch{}c&&o(c)}for(const s of this.shadowDoms){const a=s.deref();a&&o(a)}return i}takeSnapshot(t,n,r){const{sampling:i,blockClass:o,blockSelector:s,unblockSelector:a,dataURLOptions:c,maxCanvasSize:u}=this.options,d=1e3/(i==="all"?2:i||2);return this.lastSnapshotTime&&t-this.lastSnapshotTime<d?!1:(this.lastSnapshotTime=t,(r?[r]:this.getCanvasElements(o,s,a)).forEach(E=>{const T=this.mirror.getId(E);if(!(!this.mirror.hasNode(E)||!E.width||!E.height||this.snapshotInProgressMap.get(T))){if(this.snapshotInProgressMap.set(T,!0),!n&&["webgl","webgl2"].includes(E.__context)){const L=E.getContext(E.__context);L?.getContextAttributes()?.preserveDrawingBuffer===!1&&L.clear(L.COLOR_BUFFER_BIT)}createImageBitmap(E).then(L=>{this.worker?.postMessage({id:T,bitmap:L,width:E.width,height:E.height,dataURLOptions:c,maxCanvasSize:u},[L])}).catch(L=>{wd(()=>{throw this.snapshotInProgressMap.delete(T),L})()})}}),!0)}startPendingCanvasMutationFlusher(){ki(()=>this.flushPendingCanvasMutations())}startRAFTimestamping(){const t=n=>{this.rafStamps.latestId=n,ki(t)};ki(t)}flushPendingCanvasMutations(){this.pendingCanvasMutations.forEach((t,n)=>{const r=this.mirror.getId(n);this.flushPendingCanvasMutationFor(n,r)}),ki(()=>this.flushPendingCanvasMutations())}flushPendingCanvasMutationFor(t,n){if(this.frozen||this.locked)return;const r=this.pendingCanvasMutations.get(t);if(!r||n===-1)return;const i=r.map(s=>{const{type:a,...c}=s;return c}),{type:o}=r[0];this.mutationCb({id:n,type:o,commands:i}),this.pendingCanvasMutations.delete(t)}}try{if(Array.from([1],e=>e*2)[0]!==2){const e=document.createElement("iframe");document.body.appendChild(e),Array.from=e.contentWindow?.Array.from||Array.from,document.body.removeChild(e)}}catch(e){console.debug("Unable to override Array.from",e)}WB();var oy;(function(e){e[e.NotStarted=0]="NotStarted",e[e.Running=1]="Running",e[e.Stopped=2]="Stopped"})(oy||(oy={}));const sy={low:{sampling:{canvas:1},dataURLOptions:{type:"image/webp",quality:.25}},medium:{sampling:{canvas:2},dataURLOptions:{type:"image/webp",quality:.4}},high:{sampling:{canvas:4},dataURLOptions:{type:"image/webp",quality:.5}}},nF="ReplayCanvas",Mc=1280,rF=(e={})=>{const[t,n]=e.maxCanvasSize||[],r={quality:e.quality||"medium",enableManualSnapshot:e.enableManualSnapshot,maxCanvasSize:[t?Math.min(t,Mc):Mc,n?Math.min(n,Mc):Mc]};let i;const o=new Promise(s=>i=s);return{name:nF,getOptions(){const{quality:s,enableManualSnapshot:a,maxCanvasSize:c}=r;return{enableManualSnapshot:a,recordCanvas:!0,getCanvasManager:u=>{const h=new tF({...u,enableManualSnapshot:a,maxCanvasSize:c,errorHandler:d=>{try{typeof d=="object"&&(d.__rrweb__=!0)}catch{}}});return i(h),h},...sy[s]||sy.medium}},async snapshot(s,a){(await o).snapshot(s,a)}}},iF=rF;function br(e=0){return((mn()||performance.timeOrigin)+e)/1e3}function oF(e){const t=[];if(e.nextHopProtocol!=null){const{name:n,version:r}=eE(e.nextHopProtocol);t.push(["network.protocol.version",r],["network.protocol.name",n])}return mn()?[...t,["http.request.redirect_start",br(e.redirectStart)],["http.request.fetch_start",br(e.fetchStart)],["http.request.domain_lookup_start",br(e.domainLookupStart)],["http.request.domain_lookup_end",br(e.domainLookupEnd)],["http.request.connect_start",br(e.connectStart)],["http.request.secure_connection_start",br(e.secureConnectionStart)],["http.request.connection_end",br(e.connectEnd)],["http.request.request_start",br(e.requestStart)],["http.request.response_start",br(e.responseStart)],["http.request.response_end",br(e.responseEnd)]]:t}const ay=new WeakMap,Td=new Map,gp={traceFetch:!0,traceXHR:!0,enableHTTPTimings:!0,trackFetchStreamPerformance:!1};function _S(e,t){const{traceFetch:n,traceXHR:r,trackFetchStreamPerformance:i,shouldCreateSpanForRequest:o,enableHTTPTimings:s,tracePropagationTargets:a,onRequestSpanStart:c}={...gp,...t},u=typeof o=="function"?o:m=>!0,h=m=>aF(m,a),d={};n&&(e.addEventProcessor(m=>(m.type==="transaction"&&m.spans&&m.spans.forEach(g=>{if(g.op==="http.client"){const E=Td.get(g.span_id);E&&(g.timestamp=E/1e3,Td.delete(g.span_id))}}),m)),i&&wM(m=>{if(m.response){const g=ay.get(m.response);g&&m.endTimestamp&&Td.set(g,m.endTimestamp)}}),Lh(m=>{const g=lM(m,u,h,d);if(m.response&&m.fetchData.__span&&ay.set(m.response,m.fetchData.__span),g){const E=bS(m.fetchData.url),T=E?zi(E).host:void 0;g.setAttributes({"http.url":E,"server.address":T}),s&&cy(g),c?.(g,{headers:m.headers})}})),r&&Xh(m=>{const g=cF(m,u,h,d);if(g){s&&cy(g);let E;try{E=new Headers(m.xhr.__sentry_xhr_v3__?.request_headers)}catch{}c?.(g,{headers:E})}})}function sF(e){return e.entryType==="resource"&&"initiatorType"in e&&typeof e.nextHopProtocol=="string"&&(e.initiatorType==="fetch"||e.initiatorType==="xmlhttprequest")}function cy(e){const{url:t}=Qe(e).data;if(!t||typeof t!="string")return;const n=Ki("resource",({entries:r})=>{r.forEach(i=>{sF(i)&&i.name.endsWith(t)&&(oF(i).forEach(s=>e.setAttribute(...s)),setTimeout(n))})})}function aF(e,t){const n=to();if(n){let r,i;try{r=new URL(e,n),i=new URL(n).origin}catch{return!1}const o=r.origin===i;return t?ar(r.toString(),t)||o&&ar(r.pathname,t):o}else{const r=!!e.match(/^\/(?!\/)/);return t?ar(e,t):r}}function cF(e,t,n,r){const i=e.xhr,o=i?.[Fr];if(!i||i.__sentry_own_request__||!o)return;const{url:s,method:a}=o,c=vi()&&t(s);if(e.endTimestamp&&c){const T=i.__sentry_xhr_span_id__;if(!T)return;const L=r[T];L&&o.status_code!==void 0&&(js(L,o.status_code),L.end(),delete r[T]);return}const u=bS(s),h=zi(u||s),d=gv(s),m=!!en(),g=c&&m?oo({name:`${a} ${d}`,attributes:{url:s,type:"xhr","http.method":a,"http.url":u,"server.address":h?.host,[Ft]:"auto.http.browser",[jn]:"http.client",...h?.search&&{"http.query":h?.search},...h?.hash&&{"http.fragment":h?.hash}}}):new Yr;i.__sentry_xhr_span_id__=g.spanContext().spanId,r[i.__sentry_xhr_span_id__]=g,n(s)&&uF(i,vi()&&m?g:void 0);const E=Re();return E&&E.emit("beforeOutgoingRequestSpan",g,e),g}function uF(e,t){const{"sentry-trace":n,baggage:r}=kh({span:t});n&&lF(e,n,r)}function lF(e,t,n){const r=e.__sentry_xhr_v3__?.request_headers;if(!r?.["sentry-trace"])try{if(e.setRequestHeader("sentry-trace",t),n){const i=r?.baggage;(!i||!dF(i))&&e.setRequestHeader("baggage",n)}}catch{}}function dF(e){return e.split(",").some(t=>t.trim().startsWith("sentry-"))}function bS(e){try{return new URL(e,Fe.location.origin).href}catch{return}}function fF(){Fe.document?Fe.document.addEventListener("visibilitychange",()=>{const e=en();if(!e)return;const t=Zt(e);if(Fe.document.hidden&&t){const n="cancelled",{op:r,status:i}=Qe(t);st&&Y.log(`[Tracing] Transaction: ${n} -> since tab moved to the background, op: ${r}`),i||t.setStatus({code:zt,message:n}),t.setAttribute("sentry.cancellation_reason","document.hidden"),t.end()}}):st&&Y.warn("[Tracing] Could not set up background tab detection due to lack of global document")}const hF=3600,vS="sentry_previous_trace",pF="sentry.previous_trace";function mF(e,{linkPreviousTrace:t,consistentTraceSampling:n}){const r=t==="session-storage";let i=r?_F():void 0;e.on("spanStart",s=>{if(Zt(s)!==s)return;const a=tt().getPropagationContext();i=gF(i,s,a),r&&yF(i)});let o=!0;n&&e.on("beforeSampling",s=>{if(!i)return;const a=tt(),c=a.getPropagationContext();if(o&&c.parentSpanId){o=!1;return}a.setPropagationContext({...c,dsc:{...c.dsc,sample_rate:String(i.sampleRate),sampled:String(Mf(i.spanContext))},sampleRand:i.sampleRand}),s.parentSampled=Mf(i.spanContext),s.parentSampleRate=i.sampleRate,s.spanAttributes={...s.spanAttributes,[s0]:i.sampleRate}})}function gF(e,t,n){const r=Qe(t);function i(){try{return Number(n.dsc?.sample_rate)??Number(r.data?.[rl])}catch{return 0}}const o={spanContext:t.spanContext(),startTimestamp:r.start_timestamp,sampleRate:i(),sampleRand:n.sampleRand};if(!e)return o;const s=e.spanContext;return s.traceId===r.trace_id?e:(Date.now()/1e3-e.startTimestamp<=hF&&(st&&Y.log(`Adding previous_trace ${s} link to span ${{op:r.op,...t.spanContext()}}`),t.addLink({context:s,attributes:{[$A]:"previous_trace"}}),t.setAttribute(pF,`${s.traceId}-${s.spanId}-${Mf(s)?1:0}`)),o)}function yF(e){try{Fe.sessionStorage.setItem(vS,JSON.stringify(e))}catch(t){st&&Y.warn("Could not store previous trace in sessionStorage",t)}}function _F(){try{const e=Fe.sessionStorage?.getItem(vS);return JSON.parse(e)}catch{return}}function Mf(e){return e.traceFlags===1}const bF="BrowserTracing",vF={...Uc,instrumentNavigation:!0,instrumentPageLoad:!0,markBackgroundSpan:!0,enableLongTask:!0,enableLongAnimationFrame:!0,enableInp:!0,enableElementTiming:!0,ignoreResourceSpans:[],ignorePerformanceApiSpans:[],detectRedirects:!0,linkPreviousTrace:"in-memory",consistentTraceSampling:!1,_experiments:{},...gp},EF=(e={})=>{const t={name:void 0,source:void 0},n=Fe.document,{enableInp:r,enableElementTiming:i,enableLongTask:o,enableLongAnimationFrame:s,_experiments:{enableInteractions:a,enableStandaloneClsSpans:c,enableStandaloneLcpSpans:u},beforeStartSpan:h,idleTimeout:d,finalTimeout:m,childSpanTimeout:g,markBackgroundSpan:E,traceFetch:T,traceXHR:L,trackFetchStreamPerformance:H,shouldCreateSpanForRequest:K,enableHTTPTimings:V,ignoreResourceSpans:F,ignorePerformanceApiSpans:J,instrumentPageLoad:D,instrumentNavigation:W,detectRedirects:ue,linkPreviousTrace:P,consistentTraceSampling:$,onRequestSpanStart:G}={...vF,...e};let q,ie;function fe(ce,re,X=!0){const _e=re.op==="pageload",ge=h?h(re):re,he=ge.attributes||{};if(re.name!==ge.name&&(he[Hn]="custom",ge.attributes=he),!X){const se=no();oo({...ge,startTime:se}).end(se);return}t.name=ge.name,t.source=he[Hn];const Se=k0(ge,{idleTimeout:d,finalTimeout:m,childSpanTimeout:g,disableAutoFinish:_e,beforeSpanEnd:se=>{q?.(),eP(se,{recordClsOnPageloadSpan:!c,recordLcpOnPageloadSpan:!u,ignoreResourceSpans:F,ignorePerformanceApiSpans:J}),ly(ce,void 0);const He=tt(),vt=He.getPropagationContext();He.setPropagationContext({...vt,traceId:Se.spanContext().traceId,sampled:ro(Se),dsc:ur(se)})}});ly(ce,Se);function Xe(){n&&["interactive","complete"].includes(n.readyState)&&ce.emit("idleSpanEnableAutoFinish",Se)}_e&&n&&(n.addEventListener("readystatechange",()=>{Xe()}),Xe())}return{name:bF,setup(ce){if(E0(),q=Vk({recordClsStandaloneSpans:c||!1,recordLcpStandaloneSpans:u||!1,client:ce}),r&&SP(),i&&lP(),s&&We.PerformanceObserver&&PerformanceObserver.supportedEntryTypes&&PerformanceObserver.supportedEntryTypes.includes("long-animation-frame")?Yk():o&&qk(),a&&Xk(),ue&&n){const X=()=>{ie=Yt()};addEventListener("click",X,{capture:!0}),addEventListener("keydown",X,{capture:!0,passive:!0})}function re(){const X=qs(ce);X&&!Qe(X).timestamp&&(st&&Y.log(`[Tracing] Finishing current active span with op: ${Qe(X).op}`),X.setAttribute(uu,"cancelled"),X.end())}ce.on("startNavigationSpan",(X,_e)=>{if(Re()!==ce)return;if(_e?.isRedirect){st&&Y.warn("[Tracing] Detected redirect, navigation span will not be the root span, but a child span."),fe(ce,{op:"navigation.redirect",...X},!1);return}re(),Qt().setPropagationContext({traceId:qr(),sampleRand:Math.random()});const ge=tt();ge.setPropagationContext({traceId:qr(),sampleRand:Math.random()}),ge.setSDKProcessingMetadata({normalizedRequest:void 0}),fe(ce,{op:"navigation",...X})}),ce.on("startPageLoadSpan",(X,_e={})=>{if(Re()!==ce)return;re();const ge=_e.sentryTrace||uy("sentry-trace"),he=_e.baggage||uy("baggage"),Se=h0(ge,he),Xe=tt();Xe.setPropagationContext(Se),Xe.setSDKProcessingMetadata({normalizedRequest:jh()}),fe(ce,{op:"pageload",...X})})},afterAllSetup(ce){let re=to();if(P!=="off"&&mF(ce,{linkPreviousTrace:P,consistentTraceSampling:$}),Fe.location){if(D){const X=mn();ES(ce,{name:Fe.location.pathname,startTime:X?X/1e3:void 0,attributes:{[Hn]:"url",[Ft]:"auto.pageload.browser"}})}W&&ml(({to:X,from:_e})=>{if(_e===void 0&&re?.indexOf(X)!==-1){re=void 0;return}re=void 0;const ge=mv(X),he=qs(ce),Se=he&&ue&&wF(he,ie);SS(ce,{name:ge?.pathname||Fe.location.pathname,attributes:{[Hn]:"url",[Ft]:"auto.navigation.browser"}},{url:X,isRedirect:Se})})}E&&fF(),a&&SF(ce,d,m,g,t),r&&IP(),_S(ce,{traceFetch:T,traceXHR:L,trackFetchStreamPerformance:H,tracePropagationTargets:ce.getOptions().tracePropagationTargets,shouldCreateSpanForRequest:K,enableHTTPTimings:V,onRequestSpanStart:G})}}};function ES(e,t,n){e.emit("startPageLoadSpan",t,n),tt().setTransactionName(t.name);const r=qs(e);return r&&e.emit("afterStartPageLoadSpan",r),r}function SS(e,t,n){const{url:r,isRedirect:i}=n||{};e.emit("beforeStartNavigationSpan",t,{isRedirect:i}),e.emit("startNavigationSpan",t,{isRedirect:i});const o=tt();return o.setTransactionName(t.name),r&&!i&&o.setSDKProcessingMetadata({normalizedRequest:{...jh(),url:r}}),qs(e)}function uy(e){return Fe.document?.querySelector(`meta[name=${e}]`)?.getAttribute("content")||void 0}function SF(e,t,n,r,i){const o=Fe.document;let s;const a=()=>{const c="ui.action.click",u=qs(e);if(u){const h=Qe(u).op;if(["navigation","pageload"].includes(h)){st&&Y.warn(`[Tracing] Did not create ${c} span because a pageload or navigation span is in progress.`);return}}if(s&&(s.setAttribute(uu,"interactionInterrupted"),s.end(),s=void 0),!i.name){st&&Y.warn(`[Tracing] Did not create ${c} transaction because _latestRouteName is missing.`);return}s=k0({name:i.name,op:c,attributes:{[Hn]:i.source||"url"}},{idleTimeout:t,finalTimeout:n,childSpanTimeout:r})};o&&addEventListener("click",a,{capture:!0})}const wS="_sentry_idleSpan";function qs(e){return e[wS]}function ly(e,t){Nn(e,wS,t)}const dy=.3;function wF(e,t){const n=Qe(e),r=no(),i=n.start_timestamp;return!(r-i>dy||t&&r-t<=dy)}function Ko(e){return new Promise((t,n)=>{e.oncomplete=e.onsuccess=()=>t(e.result),e.onabort=e.onerror=()=>n(e.error)})}function TF(e,t){const n=indexedDB.open(e);n.onupgradeneeded=()=>n.result.createObjectStore(t);const r=Ko(n);return i=>r.then(o=>i(o.transaction(t,"readwrite").objectStore(t)))}function yp(e){return Ko(e.getAllKeys())}function IF(e,t,n){return e(r=>yp(r).then(i=>{if(!(i.length>=n))return r.put(t,Math.max(...i,0)+1),Ko(r.transaction)}))}function AF(e,t,n){return e(r=>yp(r).then(i=>{if(!(i.length>=n))return r.put(t,Math.min(...i,0)-1),Ko(r.transaction)}))}function OF(e){return e(t=>yp(t).then(n=>{const r=n[0];if(r!=null)return Ko(t.get(r)).then(i=>(t.delete(r),Ko(t.transaction).then(()=>i)))}))}function CF(e){let t;function n(){return t==null&&(t=TF(e.dbName||"sentry-offline",e.storeName||"queue")),t}return{push:async r=>{try{const i=await fu(r);await IF(n(),i,e.maxQueueSize||30)}catch{}},unshift:async r=>{try{const i=await fu(r);await AF(n(),i,e.maxQueueSize||30)}catch{}},shift:async()=>{try{const r=await OF(n());if(r)return gO(r)}catch{}}}}function RF(e){return t=>{const n=e({...t,createStore:CF});return Fe.addEventListener("online",async r=>{await n.flush()}),n}}function MF(e=Jh){return RF(FC(e))}const fy=1e6,Qc=String(0),NF="main",Pu=Fe.navigator;let TS="",IS="",AS="",Nf=Pu?.userAgent||"",OS="";const kF=Pu?.language||Pu?.languages?.[0]||"";function PF(e){return typeof e=="object"&&e!==null&&"getHighEntropyValues"in e}const hy=Pu?.userAgentData;PF(hy)&&hy.getHighEntropyValues(["architecture","model","platform","platformVersion","fullVersionList"]).then(e=>{if(TS=e.platform||"",AS=e.architecture||"",OS=e.model||"",IS=e.platformVersion||"",e.fullVersionList?.length){const t=e.fullVersionList[e.fullVersionList.length-1];Nf=`${t.brand} ${t.version}`}}).catch(e=>{});function xF(e){return!("thread_metadata"in e)}function LF(e){return xF(e)?FF(e):e}function DF(e){const t=e.contexts?.trace?.trace_id;return typeof t=="string"&&t.length!==32&&st&&Y.log(`[Profiling] Invalid traceId: ${t} on profiled event`),typeof t!="string"?"":t}function BF(e,t,n,r){if(r.type!=="transaction")throw new TypeError("Profiling events may only be attached to transactions, this should never occur.");if(n==null)throw new TypeError(`Cannot construct profiling event envelope without a valid profile. Got ${n} instead.`);const i=DF(r),o=LF(n),s=t||(typeof r.start_timestamp=="number"?r.start_timestamp*1e3:Yt()*1e3),a=typeof r.timestamp=="number"?r.timestamp*1e3:Yt()*1e3;return{event_id:e,timestamp:new Date(s).toISOString(),platform:"javascript",version:"1",release:r.release||"",environment:r.environment||il,runtime:{name:"javascript",version:Fe.navigator.userAgent},os:{name:TS,version:IS,build_number:Nf},device:{locale:kF,model:OS,manufacturer:Nf,architecture:AS,is_emulator:!1},debug_meta:{images:jF(n.resources)},profile:o,transactions:[{name:r.transaction||"",id:r.event_id||Tn(),trace_id:i,active_thread_id:Qc,relative_start_ns:"0",relative_end_ns:((a-s)*1e6).toFixed(0)}]}}function CS(e){return Qe(e).op==="pageload"}function FF(e){let t,n=0;const r={samples:[],stacks:[],frames:[],thread_metadata:{[Qc]:{name:NF}}},i=e.samples[0];if(!i)return r;const o=i.timestamp,s=mn(),a=typeof performance.timeOrigin=="number"?performance.timeOrigin:s||0,c=a-(s||a);return e.samples.forEach((u,h)=>{if(u.stackId===void 0){t===void 0&&(t=n,r.stacks[t]=[],n++),r.samples[h]={elapsed_since_start_ns:((u.timestamp+c-o)*fy).toFixed(0),stack_id:t,thread_id:Qc};return}let d=e.stacks[u.stackId];const m=[];for(;d;){m.push(d.frameId);const E=e.frames[d.frameId];E&&r.frames[d.frameId]===void 0&&(r.frames[d.frameId]={function:E.name,abs_path:typeof E.resourceId=="number"?e.resources[E.resourceId]:void 0,lineno:E.line,colno:E.column}),d=d.parentId===void 0?void 0:e.stacks[d.parentId]}const g={elapsed_since_start_ns:((u.timestamp+c-o)*fy).toFixed(0),stack_id:n,thread_id:Qc};r.stacks[n]=m,r.samples[h]=g,n++}),r}function HF(e,t){if(!t.length)return e;for(const n of t)e[1].push([{type:"profile"},n]);return e}function UF(e){const t=[];return Yi(e,(n,r)=>{if(r==="transaction")for(let i=1;i<n.length;i++)n[i]?.contexts?.profile?.profile_id&&t.push(n[i])}),t}function jF(e){const r=Re()?.getOptions()?.stackParser;return r?VO(r,e):[]}function $F(e){return typeof e!="number"&&typeof e!="boolean"||typeof e=="number"&&isNaN(e)?(st&&Y.warn(`[Profiling] Invalid sample rate. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(e)} of type ${JSON.stringify(typeof e)}.`),!1):e===!0||e===!1?!0:e<0||e>1?(st&&Y.warn(`[Profiling] Invalid sample rate. Sample rate must be between 0 and 1. Got ${e}.`),!1):!0}function WF(e){return e.samples.length<2?(st&&Y.log("[Profiling] Discarding profile because it contains less than 2 samples"),!1):e.frames.length?!0:(st&&Y.log("[Profiling] Discarding profile because it contains no frames"),!1)}let RS=!1;const MS=3e4;function zF(e){return typeof e=="function"}function GF(){const e=Fe.Profiler;if(!zF(e)){st&&Y.log("[Profiling] Profiling is not supported by this browser, Profiler interface missing on window object.");return}const t=10,n=Math.floor(MS/t);try{return new e({sampleInterval:t,maxBufferSize:n})}catch{st&&(Y.log("[Profiling] Failed to initialize the Profiling constructor, this is likely due to a missing 'Document-Policy': 'js-profiling' header."),Y.log("[Profiling] Disabling profiling for current user session.")),RS=!0}}function py(e){if(RS)return st&&Y.log("[Profiling] Profiling has been disabled for the duration of the current user session."),!1;if(!e.isRecording())return st&&Y.log("[Profiling] Discarding profile because transaction was not sampled."),!1;const n=Re()?.getOptions();if(!n)return st&&Y.log("[Profiling] Profiling disabled, no options found."),!1;const r=n.profilesSampleRate;return $F(r)?r?(r===!0?!0:Math.random()<r)?!0:(st&&Y.log(`[Profiling] Discarding profile because it's not included in the random sample (sampling rate = ${Number(r)})`),!1):(st&&Y.log("[Profiling] Discarding profile because a negative sampling decision was inherited or profileSampleRate is set to 0"),!1):(st&&Y.warn("[Profiling] Discarding profile because of invalid sample rate."),!1)}function VF(e,t,n,r){return WF(n)?BF(e,t,n,r):null}const ji=new Map;function qF(){return ji.size}function YF(e){const t=ji.get(e);return t&&ji.delete(e),t}function XF(e,t){if(ji.set(e,t),ji.size>30){const n=ji.keys().next().value;ji.delete(n)}}function my(e){let t;CS(e)&&(t=Yt()*1e3);const n=GF();if(!n)return;st&&Y.log(`[Profiling] started profiling span: ${Qe(e).description}`);const r=Tn();tt().setContext("profile",{profile_id:r,start_timestamp:t});async function i(){if(e&&n)return n.stop().then(c=>{if(o&&(Fe.clearTimeout(o),o=void 0),st&&Y.log(`[Profiling] stopped profiling of span: ${Qe(e).description}`),!c){st&&Y.log(`[Profiling] profiler returned null profile for: ${Qe(e).description}`,"this may indicate an overlapping span or a call to stopProfiling with a profile title that was never started");return}XF(r,c)}).catch(c=>{st&&Y.log("[Profiling] error while stopping profiler:",c)})}let o=Fe.setTimeout(()=>{st&&Y.log("[Profiling] max profile duration elapsed, stopping profiling for:",Qe(e).description),i()},MS);const s=e.end.bind(e);function a(){return e?(i().then(()=>{s()},()=>{s()}),e):s()}e.end=a}const KF="BrowserProfiling",JF=()=>({name:KF,setup(e){const t=en(),n=t&&Zt(t);n&&CS(n)&&py(n)&&my(n),e.on("spanStart",r=>{r===Zt(r)&&py(r)&&my(r)}),e.on("beforeEnvelope",r=>{if(!qF())return;const i=UF(r);if(!i.length)return;const o=[];for(const s of i){const a=s?.contexts,c=a?.profile?.profile_id,u=a?.profile?.start_timestamp;if(typeof c!="string"){st&&Y.log("[Profiling] cannot find profile for a span without a profile context");continue}if(!c){st&&Y.log("[Profiling] cannot find profile for a span without a profile context");continue}a?.profile&&delete a.profile;const h=YF(c);if(!h){st&&Y.log(`[Profiling] Could not retrieve profile for span: ${c}`);continue}const d=VF(c,u,h,s);d&&o.push(d)}HF(r,o)})}}),ZF=JF,QF="SpotlightBrowser",e3=(e={})=>{const t=e.sidecarUrl||"http://localhost:8969/stream";return{name:QF,setup:()=>{st&&Y.log("Using Sidecar URL",t)},processEvent:n=>r3(n)?null:n,afterAllSetup:n=>{t3(n,t)}}};function t3(e,t){const n=Yh("fetch");let r=0;e.on("beforeEnvelope",i=>{if(r>3){Y.warn("[Spotlight] Disabled Sentry -> Spotlight integration due to too many failed requests:",r);return}n(t,{method:"POST",body:fu(i),headers:{"Content-Type":"application/x-sentry-envelope"},mode:"cors"}).then(o=>{o.status>=200&&o.status<400&&(r=0)},o=>{r++,Y.error("Sentry SDK can't connect to Sidecar is it running? See: https://spotlightjs.com/sidecar/npx/",o)})})}const n3=e3;function r3(e){return!!(e.type==="transaction"&&e.spans&&e.contexts?.trace&&e.contexts.trace.op==="ui.action.click"&&e.spans.some(({description:t})=>t?.includes("#sentry-spotlight")))}const i3=()=>({name:"LaunchDarkly",processEvent(e,t,n){return la(e)}});function o3(){return{name:"sentry-flag-auditor",type:"flag-used",synchronous:!0,method:(e,t,n)=>{Fo(e,t.value),Ho(e,t.value)}}}const s3=()=>({name:"OpenFeature",processEvent(e,t,n){return la(e)}});class a3{after(t,n){Fo(n.flagKey,n.value),Ho(n.flagKey,n.value)}error(t,n,r){Fo(t.flagKey,t.defaultValue),Ho(t.flagKey,t.defaultValue)}}const c3=({featureFlagClientClass:e})=>({name:"Unleash",setupOnce(){const t=e.prototype;wn(t,"isEnabled",u3)},processEvent(t,n,r){return la(t)}});function u3(e){return function(...t){const n=t[0],r=e.apply(this,t);return typeof n=="string"&&typeof r=="boolean"?(Fo(n,r),Ho(n,r)):st&&Y.error(`[Feature Flags] UnleashClient.isEnabled does not match expected signature. arg0: ${n} (${typeof n}), result: ${r} (${typeof r})`),r}}const l3=({featureFlagClient:e})=>({name:"Statsig",setup(t){e.on("gate_evaluation",n=>{Fo(n.gate.name,n.gate.value),Ho(n.gate.name,n.gate.value)})},processEvent(t,n,r){return la(t)}});async function d3(){const e=Re();if(!e)return"no-client-active";if(!e.getDsn())return"no-dsn-configured";try{await fetch("https://o447951.ingest.sentry.io/api/4509632503087104/envelope/?sentry_version=7&sentry_key=c1dfb07d783ad5325c245c1fd3725390&sentry_client=sentry.javascript.browser%2F1.33.7",{body:"{}",method:"POST",mode:"cors",credentials:"omit"})}catch{return"sentry-unreachable"}}const f3="WebWorker",h3=({worker:e})=>({name:f3,setupOnce:()=>{(Array.isArray(e)?e:[e]).forEach(t=>gy(t))},addWorker:t=>gy(t)});function gy(e){e.addEventListener("message",t=>{m3(t.data)&&(t.stopImmediatePropagation(),st&&Y.log("Sentry debugId web worker message received",t.data),Fe._sentryDebugIds={...t.data._sentryDebugIds,...Fe._sentryDebugIds})})}function p3({self:e}){e.postMessage({_sentryMessage:!0,_sentryDebugIds:e._sentryDebugIds??void 0})}function m3(e){return Gr(e)&&e._sentryMessage===!0&&"_sentryDebugIds"in e&&(Gr(e._sentryDebugIds)||e._sentryDebugIds===void 0)}const g3=Object.freeze(Object.defineProperty({__proto__:null,BrowserClient:Uv,OpenFeatureIntegrationHook:a3,SDK_VERSION:jr,SEMANTIC_ATTRIBUTE_SENTRY_OP:jn,SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN:Ft,SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE:rl,SEMANTIC_ATTRIBUTE_SENTRY_SOURCE:Hn,Scope:cr,WINDOW:Fe,addBreadcrumb:Ar,addEventProcessor:F0,addIntegration:nf,breadcrumbsIntegration:lE,browserApiErrorsIntegration:dE,browserProfilingIntegration:ZF,browserSessionIntegration:fE,browserTracingIntegration:EF,buildLaunchDarklyFlagUsedHandler:o3,captureConsoleIntegration:mR,captureEvent:ua,captureException:Xi,captureFeedback:yv,captureMessage:gu,captureSession:tf,chromeStackLineParser:oE,close:uC,consoleLoggingIntegration:_M,contextLinesIntegration:X2,continueTrace:NO,createTransport:Q0,createUserFeedbackEnvelope:qP,dedupeIntegration:uv,defaultRequestInstrumentationOptions:gp,defaultStackLineParsers:aE,defaultStackParser:cE,diagnoseSdkConnectivity:d3,endSession:Mh,eventFiltersIntegration:iv,eventFromException:Fv,eventFromMessage:Hv,exceptionFromError:ll,extraErrorDataIntegration:TR,featureFlagsIntegration:aM,feedbackAsyncIntegration:VN,feedbackIntegration:yg,feedbackSyncIntegration:yg,flush:cC,forceLoad:A2,functionToStringIntegration:rv,geckoStackLineParser:sE,getActiveSpan:en,getClient:Re,getCurrentScope:tt,getDefaultIntegrations:yE,getFeedback:nN,getGlobalScope:nl,getIsolationScope:Qt,getReplay:HB,getRootSpan:Zt,getSpanDescendants:Ps,getSpanStatusFromHttpCode:a0,getTraceData:kh,globalHandlersIntegration:hE,graphqlClientIntegration:rx,httpClientIntegration:L2,httpContextIntegration:mE,inboundFiltersIntegration:ov,init:I2,instrumentOutgoingRequests:_S,instrumentSupabaseClient:hv,isEnabled:B0,isInitialized:lC,lastEventId:D0,launchDarklyIntegration:i3,lazyLoadIntegration:Dv,linkedErrorsIntegration:gE,logger:QN,makeBrowserOfflineTransport:MF,makeFetchTransport:Jh,makeMultiplexedTransport:jC,moduleMetadataIntegration:dR,onLoad:O2,openFeatureIntegration:s3,opera10StackLineParser:WP,opera11StackLineParser:VP,parameterize:nv,registerSpanErrorInstrumentation:E0,registerWebWorker:p3,replayCanvasIntegration:iF,replayIntegration:DB,reportingObserverIntegration:k2,rewriteFramesIntegration:PR,sendFeedback:Sv,setContext:L0,setCurrentClient:Y0,setExtra:iC,setExtras:rC,setHttpStatus:js,setMeasurement:R0,setTag:sC,setTags:oC,setUser:aC,showReportDialog:C2,spanToBaggageHeader:aO,spanToJSON:Qe,spanToTraceHeader:y0,spotlightBrowserIntegration:n3,startBrowserTracingNavigationSpan:SS,startBrowserTracingPageLoadSpan:ES,startInactiveSpan:oo,startNewTrace:PO,startSession:ef,startSpan:sl,startSpanManual:MO,statsigIntegration:l3,supabaseIntegration:VR,suppressTracing:kO,thirdPartyErrorFilterIntegration:nM,unleashIntegration:c3,updateSpanName:tO,webWorkerIntegration:h3,winjsStackLineParser:UP,withActiveSpan:aa,withIsolationScope:HA,withScope:Jn,zodErrorsIntegration:tM},Symbol.toStringTag,{value:"Module"})),wl=e=>{typeof window<"u"&&window.Sentry&&e(g3)},{useEffect:y3}=await kn("react"),NS=(e,t)=>y3(()=>{const n=e().catch(r=>{console.error("AsyncEffect error: ",r),wl(i=>i.captureException("AsyncEffect error: "+r.message,{extra:r}))});return function(){n.then(r=>{typeof r=="function"&&r()})}},t),{createContext:_3,useMemo:b3,useRef:v3,useState:E3}=await kn("react"),kS=_3(null),xU=e=>{const{writeKey:t,userId:n,traits:r,children:i}=e,o=v3(null),[s,a]=E3(!1);NS(async()=>{if(!t){console.log("[Analytics] No writeKey provided");return}const u=navigator.userAgent;if(oA(u)){console.log("[Analytics] Skipping load: bot detected");return}try{const{AnalyticsBrowser:d}=await hw(async()=>{const{AnalyticsBrowser:m}=await import("../index-DKBIymEi.js").then(g=>g.q);return{AnalyticsBrowser:m}},__vite__mapDeps([0,1,2,3,4]));o.current=d.load({writeKey:t}),n&&o.current.identify(n,r),a(!0)}catch(d){console.error("[Analytics] Failed to initialize:",d),o.current=null}},[t,n,r]);const c=b3(()=>!o.current||!s?{isInitialized:!1,track:()=>{},identify:()=>{},page:()=>{}}:{isInitialized:!0,track:(u,h)=>{o.current?.track(u,h)},identify:(u,h)=>{o.current?.identify(u,h)},page:(u,h)=>{o.current?.page(u,h)}},[s]);return e_.jsx(kS.Provider,{value:c,children:i})},{createContext:S3}=await kn("react"),PS=S3(null);function Er(e,t){var n=t&&t.cache?t.cache:R3,r=t&&t.serializer?t.serializer:O3,i=t&&t.strategy?t.strategy:T3;return i(e,{cache:n,serializer:r})}function w3(e){return e==null||typeof e=="number"||typeof e=="boolean"}function xS(e,t,n,r){var i=w3(r)?r:n(r),o=t.get(i);return typeof o>"u"&&(o=e.call(this,r),t.set(i,o)),o}function LS(e,t,n){var r=Array.prototype.slice.call(arguments,3),i=n(r),o=t.get(i);return typeof o>"u"&&(o=e.apply(this,r),t.set(i,o)),o}function _p(e,t,n,r,i){return n.bind(t,e,r,i)}function T3(e,t){var n=e.length===1?xS:LS;return _p(e,this,n,t.cache.create(),t.serializer)}function I3(e,t){return _p(e,this,LS,t.cache.create(),t.serializer)}function A3(e,t){return _p(e,this,xS,t.cache.create(),t.serializer)}var O3=function(){return JSON.stringify(arguments)},C3=function(){function e(){this.cache=Object.create(null)}return e.prototype.get=function(t){return this.cache[t]},e.prototype.set=function(t,n){this.cache[t]=n},e}(),R3={create:function(){return new C3}},Sr={variadic:I3,monadic:A3},ft;(function(e){e[e.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",e[e.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",e[e.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",e[e.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",e[e.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",e[e.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",e[e.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",e[e.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",e[e.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",e[e.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",e[e.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",e[e.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",e[e.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",e[e.INVALID_TAG=23]="INVALID_TAG",e[e.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",e[e.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",e[e.UNCLOSED_TAG=27]="UNCLOSED_TAG"})(ft||(ft={}));var kt;(function(e){e[e.literal=0]="literal",e[e.argument=1]="argument",e[e.number=2]="number",e[e.date=3]="date",e[e.time=4]="time",e[e.select=5]="select",e[e.plural=6]="plural",e[e.pound=7]="pound",e[e.tag=8]="tag"})(kt||(kt={}));var Jo;(function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"})(Jo||(Jo={}));function yy(e){return e.type===kt.literal}function M3(e){return e.type===kt.argument}function DS(e){return e.type===kt.number}function BS(e){return e.type===kt.date}function FS(e){return e.type===kt.time}function HS(e){return e.type===kt.select}function US(e){return e.type===kt.plural}function N3(e){return e.type===kt.pound}function jS(e){return e.type===kt.tag}function $S(e){return!!(e&&typeof e=="object"&&e.type===Jo.number)}function kf(e){return!!(e&&typeof e=="object"&&e.type===Jo.dateTime)}var WS=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,k3=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;function P3(e){var t={};return e.replace(k3,function(n){var r=n.length;switch(n[0]){case"G":t.era=r===4?"long":r===5?"narrow":"short";break;case"y":t.year=r===2?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":t.month=["numeric","2-digit","short","long","narrow"][r-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":t.day=["numeric","2-digit"][r-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":t.weekday=r===4?"long":r===5?"narrow":"short";break;case"e":if(r<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][r-4];break;case"c":if(r<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][r-4];break;case"a":t.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":t.hourCycle="h12",t.hour=["numeric","2-digit"][r-1];break;case"H":t.hourCycle="h23",t.hour=["numeric","2-digit"][r-1];break;case"K":t.hourCycle="h11",t.hour=["numeric","2-digit"][r-1];break;case"k":t.hourCycle="h24",t.hour=["numeric","2-digit"][r-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":t.minute=["numeric","2-digit"][r-1];break;case"s":t.second=["numeric","2-digit"][r-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":t.timeZoneName=r<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""}),t}var x3=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function L3(e){if(e.length===0)throw new Error("Number skeleton cannot be empty");for(var t=e.split(x3).filter(function(m){return m.length>0}),n=[],r=0,i=t;r<i.length;r++){var o=i[r],s=o.split("/");if(s.length===0)throw new Error("Invalid number skeleton");for(var a=s[0],c=s.slice(1),u=0,h=c;u<h.length;u++){var d=h[u];if(d.length===0)throw new Error("Invalid number skeleton")}n.push({stem:a,options:c})}return n}function D3(e){return e.replace(/^(.*?)-/,"")}var _y=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,zS=/^(@+)?(\+|#+)?[rs]?$/g,B3=/(\*)(0+)|(#+)(0+)|(0+)/g,GS=/^(0+)$/;function by(e){var t={};return e[e.length-1]==="r"?t.roundingPriority="morePrecision":e[e.length-1]==="s"&&(t.roundingPriority="lessPrecision"),e.replace(zS,function(n,r,i){return typeof i!="string"?(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length):i==="+"?t.minimumSignificantDigits=r.length:r[0]==="#"?t.maximumSignificantDigits=r.length:(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length+(typeof i=="string"?i.length:0)),""}),t}function VS(e){switch(e){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function F3(e){var t;if(e[0]==="E"&&e[1]==="E"?(t={notation:"engineering"},e=e.slice(2)):e[0]==="E"&&(t={notation:"scientific"},e=e.slice(1)),t){var n=e.slice(0,2);if(n==="+!"?(t.signDisplay="always",e=e.slice(2)):n==="+?"&&(t.signDisplay="exceptZero",e=e.slice(2)),!GS.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function vy(e){var t={},n=VS(e);return n||t}function H3(e){for(var t={},n=0,r=e;n<r.length;n++){var i=r[n];switch(i.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=i.options[0];continue;case"group-off":case",_":t.useGrouping=!1;continue;case"precision-integer":case".":t.maximumFractionDigits=0;continue;case"measure-unit":case"unit":t.style="unit",t.unit=D3(i.options[0]);continue;case"compact-short":case"K":t.notation="compact",t.compactDisplay="short";continue;case"compact-long":case"KK":t.notation="compact",t.compactDisplay="long";continue;case"scientific":t=Be(Be(Be({},t),{notation:"scientific"}),i.options.reduce(function(c,u){return Be(Be({},c),vy(u))},{}));continue;case"engineering":t=Be(Be(Be({},t),{notation:"engineering"}),i.options.reduce(function(c,u){return Be(Be({},c),vy(u))},{}));continue;case"notation-simple":t.notation="standard";continue;case"unit-width-narrow":t.currencyDisplay="narrowSymbol",t.unitDisplay="narrow";continue;case"unit-width-short":t.currencyDisplay="code",t.unitDisplay="short";continue;case"unit-width-full-name":t.currencyDisplay="name",t.unitDisplay="long";continue;case"unit-width-iso-code":t.currencyDisplay="symbol";continue;case"scale":t.scale=parseFloat(i.options[0]);continue;case"rounding-mode-floor":t.roundingMode="floor";continue;case"rounding-mode-ceiling":t.roundingMode="ceil";continue;case"rounding-mode-down":t.roundingMode="trunc";continue;case"rounding-mode-up":t.roundingMode="expand";continue;case"rounding-mode-half-even":t.roundingMode="halfEven";continue;case"rounding-mode-half-down":t.roundingMode="halfTrunc";continue;case"rounding-mode-half-up":t.roundingMode="halfExpand";continue;case"integer-width":if(i.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");i.options[0].replace(B3,function(c,u,h,d,m,g){if(u)t.minimumIntegerDigits=h.length;else{if(d&&m)throw new Error("We currently do not support maximum integer digits");if(g)throw new Error("We currently do not support exact integer digits")}return""});continue}if(GS.test(i.stem)){t.minimumIntegerDigits=i.stem.length;continue}if(_y.test(i.stem)){if(i.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(_y,function(c,u,h,d,m,g){return h==="*"?t.minimumFractionDigits=u.length:d&&d[0]==="#"?t.maximumFractionDigits=d.length:m&&g?(t.minimumFractionDigits=m.length,t.maximumFractionDigits=m.length+g.length):(t.minimumFractionDigits=u.length,t.maximumFractionDigits=u.length),""});var o=i.options[0];o==="w"?t=Be(Be({},t),{trailingZeroDisplay:"stripIfInteger"}):o&&(t=Be(Be({},t),by(o)));continue}if(zS.test(i.stem)){t=Be(Be({},t),by(i.stem));continue}var s=VS(i.stem);s&&(t=Be(Be({},t),s));var a=F3(i.stem);a&&(t=Be(Be({},t),a))}return t}var Nc={"001":["H","h"],419:["h","H","hB","hb"],AC:["H","h","hb","hB"],AD:["H","hB"],AE:["h","hB","hb","H"],AF:["H","hb","hB","h"],AG:["h","hb","H","hB"],AI:["H","h","hb","hB"],AL:["h","H","hB"],AM:["H","hB"],AO:["H","hB"],AR:["h","H","hB","hb"],AS:["h","H"],AT:["H","hB"],AU:["h","hb","H","hB"],AW:["H","hB"],AX:["H"],AZ:["H","hB","h"],BA:["H","hB","h"],BB:["h","hb","H","hB"],BD:["h","hB","H"],BE:["H","hB"],BF:["H","hB"],BG:["H","hB","h"],BH:["h","hB","hb","H"],BI:["H","h"],BJ:["H","hB"],BL:["H","hB"],BM:["h","hb","H","hB"],BN:["hb","hB","h","H"],BO:["h","H","hB","hb"],BQ:["H"],BR:["H","hB"],BS:["h","hb","H","hB"],BT:["h","H"],BW:["H","h","hb","hB"],BY:["H","h"],BZ:["H","h","hb","hB"],CA:["h","hb","H","hB"],CC:["H","h","hb","hB"],CD:["hB","H"],CF:["H","h","hB"],CG:["H","hB"],CH:["H","hB","h"],CI:["H","hB"],CK:["H","h","hb","hB"],CL:["h","H","hB","hb"],CM:["H","h","hB"],CN:["H","hB","hb","h"],CO:["h","H","hB","hb"],CP:["H"],CR:["h","H","hB","hb"],CU:["h","H","hB","hb"],CV:["H","hB"],CW:["H","hB"],CX:["H","h","hb","hB"],CY:["h","H","hb","hB"],CZ:["H"],DE:["H","hB"],DG:["H","h","hb","hB"],DJ:["h","H"],DK:["H"],DM:["h","hb","H","hB"],DO:["h","H","hB","hb"],DZ:["h","hB","hb","H"],EA:["H","h","hB","hb"],EC:["h","H","hB","hb"],EE:["H","hB"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],ER:["h","H"],ES:["H","hB","h","hb"],ET:["hB","hb","h","H"],FI:["H"],FJ:["h","hb","H","hB"],FK:["H","h","hb","hB"],FM:["h","hb","H","hB"],FO:["H","h"],FR:["H","hB"],GA:["H","hB"],GB:["H","h","hb","hB"],GD:["h","hb","H","hB"],GE:["H","hB","h"],GF:["H","hB"],GG:["H","h","hb","hB"],GH:["h","H"],GI:["H","h","hb","hB"],GL:["H","h"],GM:["h","hb","H","hB"],GN:["H","hB"],GP:["H","hB"],GQ:["H","hB","h","hb"],GR:["h","H","hb","hB"],GT:["h","H","hB","hb"],GU:["h","hb","H","hB"],GW:["H","hB"],GY:["h","hb","H","hB"],HK:["h","hB","hb","H"],HN:["h","H","hB","hb"],HR:["H","hB"],HU:["H","h"],IC:["H","h","hB","hb"],ID:["H"],IE:["H","h","hb","hB"],IL:["H","hB"],IM:["H","h","hb","hB"],IN:["h","H"],IO:["H","h","hb","hB"],IQ:["h","hB","hb","H"],IR:["hB","H"],IS:["H"],IT:["H","hB"],JE:["H","h","hb","hB"],JM:["h","hb","H","hB"],JO:["h","hB","hb","H"],JP:["H","K","h"],KE:["hB","hb","H","h"],KG:["H","h","hB","hb"],KH:["hB","h","H","hb"],KI:["h","hb","H","hB"],KM:["H","h","hB","hb"],KN:["h","hb","H","hB"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],KW:["h","hB","hb","H"],KY:["h","hb","H","hB"],KZ:["H","hB"],LA:["H","hb","hB","h"],LB:["h","hB","hb","H"],LC:["h","hb","H","hB"],LI:["H","hB","h"],LK:["H","h","hB","hb"],LR:["h","hb","H","hB"],LS:["h","H"],LT:["H","h","hb","hB"],LU:["H","h","hB"],LV:["H","hB","hb","h"],LY:["h","hB","hb","H"],MA:["H","h","hB","hb"],MC:["H","hB"],MD:["H","hB"],ME:["H","hB","h"],MF:["H","hB"],MG:["H","h"],MH:["h","hb","H","hB"],MK:["H","h","hb","hB"],ML:["H"],MM:["hB","hb","H","h"],MN:["H","h","hb","hB"],MO:["h","hB","hb","H"],MP:["h","hb","H","hB"],MQ:["H","hB"],MR:["h","hB","hb","H"],MS:["H","h","hb","hB"],MT:["H","h"],MU:["H","h"],MV:["H","h"],MW:["h","hb","H","hB"],MX:["h","H","hB","hb"],MY:["hb","hB","h","H"],MZ:["H","hB"],NA:["h","H","hB","hb"],NC:["H","hB"],NE:["H"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NI:["h","H","hB","hb"],NL:["H","hB"],NO:["H","h"],NP:["H","h","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],NZ:["h","hb","H","hB"],OM:["h","hB","hb","H"],PA:["h","H","hB","hb"],PE:["h","H","hB","hb"],PF:["H","h","hB"],PG:["h","H"],PH:["h","hB","hb","H"],PK:["h","hB","H"],PL:["H","h"],PM:["H","hB"],PN:["H","h","hb","hB"],PR:["h","H","hB","hb"],PS:["h","hB","hb","H"],PT:["H","hB"],PW:["h","H"],PY:["h","H","hB","hb"],QA:["h","hB","hb","H"],RE:["H","hB"],RO:["H","hB"],RS:["H","hB","h"],RU:["H"],RW:["H","h"],SA:["h","hB","hb","H"],SB:["h","hb","H","hB"],SC:["H","h","hB"],SD:["h","hB","hb","H"],SE:["H"],SG:["h","hb","H","hB"],SH:["H","h","hb","hB"],SI:["H","hB"],SJ:["H"],SK:["H"],SL:["h","hb","H","hB"],SM:["H","h","hB"],SN:["H","h","hB"],SO:["h","H"],SR:["H","hB"],SS:["h","hb","H","hB"],ST:["H","hB"],SV:["h","H","hB","hb"],SX:["H","h","hb","hB"],SY:["h","hB","hb","H"],SZ:["h","hb","H","hB"],TA:["H","h","hb","hB"],TC:["h","hb","H","hB"],TD:["h","H","hB"],TF:["H","h","hB"],TG:["H","hB"],TH:["H","h"],TJ:["H","h"],TL:["H","hB","hb","h"],TM:["H","h"],TN:["h","hB","hb","H"],TO:["h","H"],TR:["H","hB"],TT:["h","hb","H","hB"],TW:["hB","hb","h","H"],TZ:["hB","hb","H","h"],UA:["H","hB","h"],UG:["hB","hb","H","h"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],UY:["h","H","hB","hb"],UZ:["H","hB","h"],VA:["H","h","hB"],VC:["h","hb","H","hB"],VE:["h","H","hB","hb"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],VN:["H","h"],VU:["h","H"],WF:["H","hB"],WS:["h","H"],XK:["H","hB","h"],YE:["h","hB","hb","H"],YT:["H","hB"],ZA:["H","h","hb","hB"],ZM:["h","hb","H","hB"],ZW:["H","h"],"af-ZA":["H","h","hB","hb"],"ar-001":["h","hB","hb","H"],"ca-ES":["H","h","hB"],"en-001":["h","hb","H","hB"],"en-HK":["h","hb","H","hB"],"en-IL":["H","h","hb","hB"],"en-MY":["h","hb","H","hB"],"es-BR":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"gu-IN":["hB","hb","h","H"],"hi-IN":["hB","h","H"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],"ta-IN":["hB","h","hb","H"],"te-IN":["hB","h","H"],"zu-ZA":["H","hB","hb","h"]};function U3(e,t){for(var n="",r=0;r<e.length;r++){var i=e.charAt(r);if(i==="j"){for(var o=0;r+1<e.length&&e.charAt(r+1)===i;)o++,r++;var s=1+(o&1),a=o<2?1:3+(o>>1),c="a",u=j3(t);for((u=="H"||u=="k")&&(a=0);a-- >0;)n+=c;for(;s-- >0;)n=u+n}else i==="J"?n+="H":n+=i}return n}function j3(e){var t=e.hourCycle;if(t===void 0&&e.hourCycles&&e.hourCycles.length&&(t=e.hourCycles[0]),t)switch(t){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var n=e.language,r;n!=="root"&&(r=e.maximize().region);var i=Nc[r||""]||Nc[n||""]||Nc["".concat(n,"-001")]||Nc["001"];return i[0]}var Id,$3=new RegExp("^".concat(WS.source,"*")),W3=new RegExp("".concat(WS.source,"*$"));function pt(e,t){return{start:e,end:t}}var z3=!!String.prototype.startsWith&&"_a".startsWith("a",1),G3=!!String.fromCodePoint,V3=!!Object.fromEntries,q3=!!String.prototype.codePointAt,Y3=!!String.prototype.trimStart,X3=!!String.prototype.trimEnd,K3=!!Number.isSafeInteger,J3=K3?Number.isSafeInteger:function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},Pf=!0;try{var Z3=YS("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Pf=((Id=Z3.exec("a"))===null||Id===void 0?void 0:Id[0])==="a"}catch{Pf=!1}var Ey=z3?function(t,n,r){return t.startsWith(n,r)}:function(t,n,r){return t.slice(r,r+n.length)===n},xf=G3?String.fromCodePoint:function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];for(var r="",i=t.length,o=0,s;i>o;){if(s=t[o++],s>1114111)throw RangeError(s+" is not a valid code point");r+=s<65536?String.fromCharCode(s):String.fromCharCode(((s-=65536)>>10)+55296,s%1024+56320)}return r},Sy=V3?Object.fromEntries:function(t){for(var n={},r=0,i=t;r<i.length;r++){var o=i[r],s=o[0],a=o[1];n[s]=a}return n},qS=q3?function(t,n){return t.codePointAt(n)}:function(t,n){var r=t.length;if(!(n<0||n>=r)){var i=t.charCodeAt(n),o;return i<55296||i>56319||n+1===r||(o=t.charCodeAt(n+1))<56320||o>57343?i:(i-55296<<10)+(o-56320)+65536}},Q3=Y3?function(t){return t.trimStart()}:function(t){return t.replace($3,"")},eH=X3?function(t){return t.trimEnd()}:function(t){return t.replace(W3,"")};function YS(e,t){return new RegExp(e,t)}var Lf;if(Pf){var wy=YS("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Lf=function(t,n){var r;wy.lastIndex=n;var i=wy.exec(t);return(r=i[1])!==null&&r!==void 0?r:""}}else Lf=function(t,n){for(var r=[];;){var i=qS(t,n);if(i===void 0||XS(i)||iH(i))break;r.push(i),n+=i>=65536?2:1}return xf.apply(void 0,r)};var tH=function(){function e(t,n){n===void 0&&(n={}),this.message=t,this.position={offset:0,line:1,column:1},this.ignoreTag=!!n.ignoreTag,this.locale=n.locale,this.requiresOtherClause=!!n.requiresOtherClause,this.shouldParseSkeletons=!!n.shouldParseSkeletons}return e.prototype.parse=function(){if(this.offset()!==0)throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(t,n,r){for(var i=[];!this.isEOF();){var o=this.char();if(o===123){var s=this.parseArgument(t,r);if(s.err)return s;i.push(s.val)}else{if(o===125&&t>0)break;if(o===35&&(n==="plural"||n==="selectordinal")){var a=this.clonePosition();this.bump(),i.push({type:kt.pound,location:pt(a,this.clonePosition())})}else if(o===60&&!this.ignoreTag&&this.peek()===47){if(r)break;return this.error(ft.UNMATCHED_CLOSING_TAG,pt(this.clonePosition(),this.clonePosition()))}else if(o===60&&!this.ignoreTag&&Df(this.peek()||0)){var s=this.parseTag(t,n);if(s.err)return s;i.push(s.val)}else{var s=this.parseLiteral(t,n);if(s.err)return s;i.push(s.val)}}}return{val:i,err:null}},e.prototype.parseTag=function(t,n){var r=this.clonePosition();this.bump();var i=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:kt.literal,value:"<".concat(i,"/>"),location:pt(r,this.clonePosition())},err:null};if(this.bumpIf(">")){var o=this.parseMessage(t+1,n,!0);if(o.err)return o;var s=o.val,a=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!Df(this.char()))return this.error(ft.INVALID_TAG,pt(a,this.clonePosition()));var c=this.clonePosition(),u=this.parseTagName();return i!==u?this.error(ft.UNMATCHED_CLOSING_TAG,pt(c,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:kt.tag,value:i,children:s,location:pt(r,this.clonePosition())},err:null}:this.error(ft.INVALID_TAG,pt(a,this.clonePosition())))}else return this.error(ft.UNCLOSED_TAG,pt(r,this.clonePosition()))}else return this.error(ft.INVALID_TAG,pt(r,this.clonePosition()))},e.prototype.parseTagName=function(){var t=this.offset();for(this.bump();!this.isEOF()&&rH(this.char());)this.bump();return this.message.slice(t,this.offset())},e.prototype.parseLiteral=function(t,n){for(var r=this.clonePosition(),i="";;){var o=this.tryParseQuote(n);if(o){i+=o;continue}var s=this.tryParseUnquoted(t,n);if(s){i+=s;continue}var a=this.tryParseLeftAngleBracket();if(a){i+=a;continue}break}var c=pt(r,this.clonePosition());return{val:{type:kt.literal,value:i,location:c},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!nH(this.peek()||0))?(this.bump(),"<"):null},e.prototype.tryParseQuote=function(t){if(this.isEOF()||this.char()!==39)return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if(t==="plural"||t==="selectordinal")break;return null;default:return null}this.bump();var n=[this.char()];for(this.bump();!this.isEOF();){var r=this.char();if(r===39)if(this.peek()===39)n.push(39),this.bump();else{this.bump();break}else n.push(r);this.bump()}return xf.apply(void 0,n)},e.prototype.tryParseUnquoted=function(t,n){if(this.isEOF())return null;var r=this.char();return r===60||r===123||r===35&&(n==="plural"||n==="selectordinal")||r===125&&t>0?null:(this.bump(),xf(r))},e.prototype.parseArgument=function(t,n){var r=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(ft.EXPECT_ARGUMENT_CLOSING_BRACE,pt(r,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(ft.EMPTY_ARGUMENT,pt(r,this.clonePosition()));var i=this.parseIdentifierIfPossible().value;if(!i)return this.error(ft.MALFORMED_ARGUMENT,pt(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(ft.EXPECT_ARGUMENT_CLOSING_BRACE,pt(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:kt.argument,value:i,location:pt(r,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(ft.EXPECT_ARGUMENT_CLOSING_BRACE,pt(r,this.clonePosition())):this.parseArgumentOptions(t,n,i,r);default:return this.error(ft.MALFORMED_ARGUMENT,pt(r,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),n=this.offset(),r=Lf(this.message,n),i=n+r.length;this.bumpTo(i);var o=this.clonePosition(),s=pt(t,o);return{value:r,location:s}},e.prototype.parseArgumentOptions=function(t,n,r,i){var o,s=this.clonePosition(),a=this.parseIdentifierIfPossible().value,c=this.clonePosition();switch(a){case"":return this.error(ft.EXPECT_ARGUMENT_TYPE,pt(s,c));case"number":case"date":case"time":{this.bumpSpace();var u=null;if(this.bumpIf(",")){this.bumpSpace();var h=this.clonePosition(),d=this.parseSimpleArgStyleIfPossible();if(d.err)return d;var m=eH(d.val);if(m.length===0)return this.error(ft.EXPECT_ARGUMENT_STYLE,pt(this.clonePosition(),this.clonePosition()));var g=pt(h,this.clonePosition());u={style:m,styleLocation:g}}var E=this.tryParseArgumentClose(i);if(E.err)return E;var T=pt(i,this.clonePosition());if(u&&Ey(u?.style,"::",0)){var L=Q3(u.style.slice(2));if(a==="number"){var d=this.parseNumberSkeletonFromString(L,u.styleLocation);return d.err?d:{val:{type:kt.number,value:r,location:T,style:d.val},err:null}}else{if(L.length===0)return this.error(ft.EXPECT_DATE_TIME_SKELETON,T);var H=L;this.locale&&(H=U3(L,this.locale));var m={type:Jo.dateTime,pattern:H,location:u.styleLocation,parsedOptions:this.shouldParseSkeletons?P3(H):{}},K=a==="date"?kt.date:kt.time;return{val:{type:K,value:r,location:T,style:m},err:null}}}return{val:{type:a==="number"?kt.number:a==="date"?kt.date:kt.time,value:r,location:T,style:(o=u?.style)!==null&&o!==void 0?o:null},err:null}}case"plural":case"selectordinal":case"select":{var V=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(ft.EXPECT_SELECT_ARGUMENT_OPTIONS,pt(V,Be({},V)));this.bumpSpace();var F=this.parseIdentifierIfPossible(),J=0;if(a!=="select"&&F.value==="offset"){if(!this.bumpIf(":"))return this.error(ft.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,pt(this.clonePosition(),this.clonePosition()));this.bumpSpace();var d=this.tryParseDecimalInteger(ft.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,ft.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(d.err)return d;this.bumpSpace(),F=this.parseIdentifierIfPossible(),J=d.val}var D=this.tryParsePluralOrSelectOptions(t,a,n,F);if(D.err)return D;var E=this.tryParseArgumentClose(i);if(E.err)return E;var W=pt(i,this.clonePosition());return a==="select"?{val:{type:kt.select,value:r,options:Sy(D.val),location:W},err:null}:{val:{type:kt.plural,value:r,options:Sy(D.val),offset:J,pluralType:a==="plural"?"cardinal":"ordinal",location:W},err:null}}default:return this.error(ft.INVALID_ARGUMENT_TYPE,pt(s,c))}},e.prototype.tryParseArgumentClose=function(t){return this.isEOF()||this.char()!==125?this.error(ft.EXPECT_ARGUMENT_CLOSING_BRACE,pt(t,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var t=0,n=this.clonePosition();!this.isEOF();){var r=this.char();switch(r){case 39:{this.bump();var i=this.clonePosition();if(!this.bumpUntil("'"))return this.error(ft.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,pt(i,this.clonePosition()));this.bump();break}case 123:{t+=1,this.bump();break}case 125:{if(t>0)t-=1;else return{val:this.message.slice(n.offset,this.offset()),err:null};break}default:this.bump();break}}return{val:this.message.slice(n.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(t,n){var r=[];try{r=L3(t)}catch{return this.error(ft.INVALID_NUMBER_SKELETON,n)}return{val:{type:Jo.number,tokens:r,location:n,parsedOptions:this.shouldParseSkeletons?H3(r):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(t,n,r,i){for(var o,s=!1,a=[],c=new Set,u=i.value,h=i.location;;){if(u.length===0){var d=this.clonePosition();if(n!=="select"&&this.bumpIf("=")){var m=this.tryParseDecimalInteger(ft.EXPECT_PLURAL_ARGUMENT_SELECTOR,ft.INVALID_PLURAL_ARGUMENT_SELECTOR);if(m.err)return m;h=pt(d,this.clonePosition()),u=this.message.slice(d.offset,this.offset())}else break}if(c.has(u))return this.error(n==="select"?ft.DUPLICATE_SELECT_ARGUMENT_SELECTOR:ft.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,h);u==="other"&&(s=!0),this.bumpSpace();var g=this.clonePosition();if(!this.bumpIf("{"))return this.error(n==="select"?ft.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:ft.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,pt(this.clonePosition(),this.clonePosition()));var E=this.parseMessage(t+1,n,r);if(E.err)return E;var T=this.tryParseArgumentClose(g);if(T.err)return T;a.push([u,{value:E.val,location:pt(g,this.clonePosition())}]),c.add(u),this.bumpSpace(),o=this.parseIdentifierIfPossible(),u=o.value,h=o.location}return a.length===0?this.error(n==="select"?ft.EXPECT_SELECT_ARGUMENT_SELECTOR:ft.EXPECT_PLURAL_ARGUMENT_SELECTOR,pt(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!s?this.error(ft.MISSING_OTHER_CLAUSE,pt(this.clonePosition(),this.clonePosition())):{val:a,err:null}},e.prototype.tryParseDecimalInteger=function(t,n){var r=1,i=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(r=-1);for(var o=!1,s=0;!this.isEOF();){var a=this.char();if(a>=48&&a<=57)o=!0,s=s*10+(a-48),this.bump();else break}var c=pt(i,this.clonePosition());return o?(s*=r,J3(s)?{val:s,err:null}:this.error(n,c)):this.error(t,c)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var t=this.position.offset;if(t>=this.message.length)throw Error("out of bound");var n=qS(this.message,t);if(n===void 0)throw Error("Offset ".concat(t," is at invalid UTF-16 code unit boundary"));return n},e.prototype.error=function(t,n){return{val:null,err:{kind:t,message:this.message,location:n}}},e.prototype.bump=function(){if(!this.isEOF()){var t=this.char();t===10?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=t<65536?1:2)}},e.prototype.bumpIf=function(t){if(Ey(this.message,t,this.offset())){for(var n=0;n<t.length;n++)this.bump();return!0}return!1},e.prototype.bumpUntil=function(t){var n=this.offset(),r=this.message.indexOf(t,n);return r>=0?(this.bumpTo(r),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(t){if(this.offset()>t)throw Error("targetOffset ".concat(t," must be greater than or equal to the current offset ").concat(this.offset()));for(t=Math.min(t,this.message.length);;){var n=this.offset();if(n===t)break;if(n>t)throw Error("targetOffset ".concat(t," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&XS(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var t=this.char(),n=this.offset(),r=this.message.charCodeAt(n+(t>=65536?2:1));return r??null},e}();function Df(e){return e>=97&&e<=122||e>=65&&e<=90}function nH(e){return Df(e)||e===47}function rH(e){return e===45||e===46||e>=48&&e<=57||e===95||e>=97&&e<=122||e>=65&&e<=90||e==183||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039}function XS(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function iH(e){return e>=33&&e<=35||e===36||e>=37&&e<=39||e===40||e===41||e===42||e===43||e===44||e===45||e>=46&&e<=47||e>=58&&e<=59||e>=60&&e<=62||e>=63&&e<=64||e===91||e===92||e===93||e===94||e===96||e===123||e===124||e===125||e===126||e===161||e>=162&&e<=165||e===166||e===167||e===169||e===171||e===172||e===174||e===176||e===177||e===182||e===187||e===191||e===215||e===247||e>=8208&&e<=8213||e>=8214&&e<=8215||e===8216||e===8217||e===8218||e>=8219&&e<=8220||e===8221||e===8222||e===8223||e>=8224&&e<=8231||e>=8240&&e<=8248||e===8249||e===8250||e>=8251&&e<=8254||e>=8257&&e<=8259||e===8260||e===8261||e===8262||e>=8263&&e<=8273||e===8274||e===8275||e>=8277&&e<=8286||e>=8592&&e<=8596||e>=8597&&e<=8601||e>=8602&&e<=8603||e>=8604&&e<=8607||e===8608||e>=8609&&e<=8610||e===8611||e>=8612&&e<=8613||e===8614||e>=8615&&e<=8621||e===8622||e>=8623&&e<=8653||e>=8654&&e<=8655||e>=8656&&e<=8657||e===8658||e===8659||e===8660||e>=8661&&e<=8691||e>=8692&&e<=8959||e>=8960&&e<=8967||e===8968||e===8969||e===8970||e===8971||e>=8972&&e<=8991||e>=8992&&e<=8993||e>=8994&&e<=9e3||e===9001||e===9002||e>=9003&&e<=9083||e===9084||e>=9085&&e<=9114||e>=9115&&e<=9139||e>=9140&&e<=9179||e>=9180&&e<=9185||e>=9186&&e<=9254||e>=9255&&e<=9279||e>=9280&&e<=9290||e>=9291&&e<=9311||e>=9472&&e<=9654||e===9655||e>=9656&&e<=9664||e===9665||e>=9666&&e<=9719||e>=9720&&e<=9727||e>=9728&&e<=9838||e===9839||e>=9840&&e<=10087||e===10088||e===10089||e===10090||e===10091||e===10092||e===10093||e===10094||e===10095||e===10096||e===10097||e===10098||e===10099||e===10100||e===10101||e>=10132&&e<=10175||e>=10176&&e<=10180||e===10181||e===10182||e>=10183&&e<=10213||e===10214||e===10215||e===10216||e===10217||e===10218||e===10219||e===10220||e===10221||e===10222||e===10223||e>=10224&&e<=10239||e>=10240&&e<=10495||e>=10496&&e<=10626||e===10627||e===10628||e===10629||e===10630||e===10631||e===10632||e===10633||e===10634||e===10635||e===10636||e===10637||e===10638||e===10639||e===10640||e===10641||e===10642||e===10643||e===10644||e===10645||e===10646||e===10647||e===10648||e>=10649&&e<=10711||e===10712||e===10713||e===10714||e===10715||e>=10716&&e<=10747||e===10748||e===10749||e>=10750&&e<=11007||e>=11008&&e<=11055||e>=11056&&e<=11076||e>=11077&&e<=11078||e>=11079&&e<=11084||e>=11085&&e<=11123||e>=11124&&e<=11125||e>=11126&&e<=11157||e===11158||e>=11159&&e<=11263||e>=11776&&e<=11777||e===11778||e===11779||e===11780||e===11781||e>=11782&&e<=11784||e===11785||e===11786||e===11787||e===11788||e===11789||e>=11790&&e<=11798||e===11799||e>=11800&&e<=11801||e===11802||e===11803||e===11804||e===11805||e>=11806&&e<=11807||e===11808||e===11809||e===11810||e===11811||e===11812||e===11813||e===11814||e===11815||e===11816||e===11817||e>=11818&&e<=11822||e===11823||e>=11824&&e<=11833||e>=11834&&e<=11835||e>=11836&&e<=11839||e===11840||e===11841||e===11842||e>=11843&&e<=11855||e>=11856&&e<=11857||e===11858||e>=11859&&e<=11903||e>=12289&&e<=12291||e===12296||e===12297||e===12298||e===12299||e===12300||e===12301||e===12302||e===12303||e===12304||e===12305||e>=12306&&e<=12307||e===12308||e===12309||e===12310||e===12311||e===12312||e===12313||e===12314||e===12315||e===12316||e===12317||e>=12318&&e<=12319||e===12320||e===12336||e===64830||e===64831||e>=65093&&e<=65094}function Bf(e){e.forEach(function(t){if(delete t.location,HS(t)||US(t))for(var n in t.options)delete t.options[n].location,Bf(t.options[n].value);else DS(t)&&$S(t.style)||(BS(t)||FS(t))&&kf(t.style)?delete t.style.location:jS(t)&&Bf(t.children)})}function oH(e,t){t===void 0&&(t={}),t=Be({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var n=new tH(e,t).parse();if(n.err){var r=SyntaxError(ft[n.err.kind]);throw r.location=n.err.location,r.originalMessage=n.err.message,r}return t?.captureLocation||Bf(n.val),n.val}var Or;(function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"})(Or||(Or={}));var Ci=function(e){dr(t,e);function t(n,r,i){var o=e.call(this,n)||this;return o.code=r,o.originalMessage=i,o}return t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),Ty=function(e){dr(t,e);function t(n,r,i,o){return e.call(this,'Invalid values for "'.concat(n,'": "').concat(r,'". Options are "').concat(Object.keys(i).join('", "'),'"'),Or.INVALID_VALUE,o)||this}return t}(Ci),sH=function(e){dr(t,e);function t(n,r,i){return e.call(this,'Value for "'.concat(n,'" must be of type ').concat(r),Or.INVALID_VALUE,i)||this}return t}(Ci),aH=function(e){dr(t,e);function t(n,r){return e.call(this,'The intl string context variable "'.concat(n,'" was not provided to the string "').concat(r,'"'),Or.MISSING_VALUE,r)||this}return t}(Ci),vn;(function(e){e[e.literal=0]="literal",e[e.object=1]="object"})(vn||(vn={}));function cH(e){return e.length<2?e:e.reduce(function(t,n){var r=t[t.length-1];return!r||r.type!==vn.literal||n.type!==vn.literal?t.push(n):r.value+=n.value,t},[])}function uH(e){return typeof e=="function"}function eu(e,t,n,r,i,o,s){if(e.length===1&&yy(e[0]))return[{type:vn.literal,value:e[0].value}];for(var a=[],c=0,u=e;c<u.length;c++){var h=u[c];if(yy(h)){a.push({type:vn.literal,value:h.value});continue}if(N3(h)){typeof o=="number"&&a.push({type:vn.literal,value:n.getNumberFormat(t).format(o)});continue}var d=h.value;if(!(i&&d in i))throw new aH(d,s);var m=i[d];if(M3(h)){(!m||typeof m=="string"||typeof m=="number")&&(m=typeof m=="string"||typeof m=="number"?String(m):""),a.push({type:typeof m=="string"?vn.literal:vn.object,value:m});continue}if(BS(h)){var g=typeof h.style=="string"?r.date[h.style]:kf(h.style)?h.style.parsedOptions:void 0;a.push({type:vn.literal,value:n.getDateTimeFormat(t,g).format(m)});continue}if(FS(h)){var g=typeof h.style=="string"?r.time[h.style]:kf(h.style)?h.style.parsedOptions:r.time.medium;a.push({type:vn.literal,value:n.getDateTimeFormat(t,g).format(m)});continue}if(DS(h)){var g=typeof h.style=="string"?r.number[h.style]:$S(h.style)?h.style.parsedOptions:void 0;g&&g.scale&&(m=m*(g.scale||1)),a.push({type:vn.literal,value:n.getNumberFormat(t,g).format(m)});continue}if(jS(h)){var E=h.children,T=h.value,L=i[T];if(!uH(L))throw new sH(T,"function",s);var H=eu(E,t,n,r,i,o),K=L(H.map(function(J){return J.value}));Array.isArray(K)||(K=[K]),a.push.apply(a,K.map(function(J){return{type:typeof J=="string"?vn.literal:vn.object,value:J}}))}if(HS(h)){var V=h.options[m]||h.options.other;if(!V)throw new Ty(h.value,m,Object.keys(h.options),s);a.push.apply(a,eu(V.value,t,n,r,i));continue}if(US(h)){var V=h.options["=".concat(m)];if(!V){if(!Intl.PluralRules)throw new Ci(`Intl.PluralRules is not available in this environment.
515
515
  Try polyfilling it using "@formatjs/intl-pluralrules"
516
516
  `,Or.MISSING_INTL_API,s);var F=n.getPluralRules(t,{type:h.pluralType}).select(m-(h.offset||0));V=h.options[F]||h.options.other}if(!V)throw new Ty(h.value,m,Object.keys(h.options),s);a.push.apply(a,eu(V.value,t,n,r,i,m-(h.offset||0)));continue}}return cH(a)}function lH(e,t){return t?Be(Be(Be({},e||{}),t||{}),Object.keys(e).reduce(function(n,r){return n[r]=Be(Be({},e[r]),t[r]||{}),n},{})):e}function dH(e,t){return t?Object.keys(e).reduce(function(n,r){return n[r]=lH(e[r],t[r]),n},Be({},e)):e}function Ad(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,n){e[t]=n}}}}}function fH(e){return e===void 0&&(e={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:Er(function(){for(var t,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return new((t=Intl.NumberFormat).bind.apply(t,Br([void 0],n,!1)))},{cache:Ad(e.number),strategy:Sr.variadic}),getDateTimeFormat:Er(function(){for(var t,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return new((t=Intl.DateTimeFormat).bind.apply(t,Br([void 0],n,!1)))},{cache:Ad(e.dateTime),strategy:Sr.variadic}),getPluralRules:Er(function(){for(var t,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return new((t=Intl.PluralRules).bind.apply(t,Br([void 0],n,!1)))},{cache:Ad(e.pluralRules),strategy:Sr.variadic})}}var KS=function(){function e(t,n,r,i){n===void 0&&(n=e.defaultLocale);var o=this;if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(c){var u=o.formatToParts(c);if(u.length===1)return u[0].value;var h=u.reduce(function(d,m){return!d.length||m.type!==vn.literal||typeof d[d.length-1]!="string"?d.push(m.value):d[d.length-1]+=m.value,d},[]);return h.length<=1?h[0]||"":h},this.formatToParts=function(c){return eu(o.ast,o.locales,o.formatters,o.formats,c,void 0,o.message)},this.resolvedOptions=function(){var c;return{locale:((c=o.resolvedLocale)===null||c===void 0?void 0:c.toString())||Intl.NumberFormat.supportedLocalesOf(o.locales)[0]}},this.getAst=function(){return o.ast},this.locales=n,this.resolvedLocale=e.resolveLocale(n),typeof t=="string"){if(this.message=t,!e.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var s=i||{};s.formatters;var a=pw(s,["formatters"]);this.ast=e.__parse(t,Be(Be({},a),{locale:this.resolvedLocale}))}else this.ast=t;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=dH(e.formats,r),this.formatters=i&&i.formatters||fH(this.formatterCache)}return Object.defineProperty(e,"defaultLocale",{get:function(){return e.memoizedDefaultLocale||(e.memoizedDefaultLocale=new Intl.NumberFormat().resolvedOptions().locale),e.memoizedDefaultLocale},enumerable:!1,configurable:!0}),e.memoizedDefaultLocale=null,e.resolveLocale=function(t){if(!(typeof Intl.Locale>"u")){var n=Intl.NumberFormat.supportedLocalesOf(t);return n.length>0?new Intl.Locale(n[0]):new Intl.Locale(typeof t=="string"?t:t[0])}},e.__parse=oH,e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},e}(),Ji;(function(e){e.FORMAT_ERROR="FORMAT_ERROR",e.UNSUPPORTED_FORMATTER="UNSUPPORTED_FORMATTER",e.INVALID_CONFIG="INVALID_CONFIG",e.MISSING_DATA="MISSING_DATA",e.MISSING_TRANSLATION="MISSING_TRANSLATION"})(Ji||(Ji={}));var ba=function(e){dr(t,e);function t(n,r,i){var o=this,s=i?i instanceof Error?i:new Error(String(i)):void 0;return o=e.call(this,"[@formatjs/intl Error ".concat(n,"] ").concat(r,`
517
517
  `).concat(s?`
@@ -0,0 +1 @@
1
+ import"../__federation_fn_import-Cw4EhxlG.js";import{b as o,C as t,G as r,T as h,d as i,_ as C,j as c,a as n,j as T,k as l,u,w as _,e as d}from"../emotion-react.browser.esm-DthAtJ_b.js";import"../emotion-use-insertion-effect-with-fallbacks.browser.esm-T2Tuze4y.js";export{o as CacheProvider,t as ClassNames,r as Global,h as ThemeContext,i as ThemeProvider,C as __unsafe_useEmotionCache,c as createElement,n as css,T as jsx,l as keyframes,u as useTheme,_ as withEmotionCache,d as withTheme};
@@ -1 +1 @@
1
- import{importShared as R}from"../__federation_fn_import-CUxUDAy-.js";import{m as z,g as L,s as M,_ as I,r as N,u as D,i as H}from"../emotion-use-insertion-effect-with-fallbacks.browser.esm-C9ZfXHMo.js";var U=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|popover|popoverTarget|popoverTargetAction|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,q=z(function(a){return U.test(a)||a.charCodeAt(0)===111&&a.charCodeAt(1)===110&&a.charCodeAt(2)<91});const{withEmotionCache:B,ThemeContext:V}=await R("@emotion/react"),m=await R("react");var W=!1,X=q,j=function(e){return e!=="theme"},_=function(e){return typeof e=="string"&&e.charCodeAt(0)>96?X:j},A=function(e,i,l){var t;if(i){var o=i.shouldForwardProp;t=e.__emotion_forwardProp&&o?function(s){return e.__emotion_forwardProp(s)&&o(s)}:o}return typeof t!="function"&&l&&(t=e.__emotion_forwardProp),t},Y=function(e){var i=e.cache,l=e.serialized,t=e.isStringTag;return N(i,l,t),D(function(){return H(i,l,t)}),null},G=function a(e,i){var l=e.__emotion_real===e,t=l&&e.__emotion_base||e,o,s;i!==void 0&&(o=i.label,s=i.target);var b=A(e,i,l),x=b||_(t),k=!x("as");return function(){var u=arguments,d=l&&e.__emotion_styles!==void 0?e.__emotion_styles.slice(0):[];if(o!==void 0&&d.push("label:"+o+";"),u[0]==null||u[0].raw===void 0)d.push.apply(d,u);else{var P=u[0];d.push(P[0]);for(var E=u.length,f=1;f<E;f++)d.push(u[f],P[f])}var n=B(function(r,c,h){var S=k&&r.as||t,p="",w=[],g=r;if(r.theme==null){g={};for(var T in r)g[T]=r[T];g.theme=m.useContext(V)}typeof r.className=="string"?p=L(c.registered,w,r.className):r.className!=null&&(p=r.className+" ");var C=M(d.concat(w),c.registered,g);p+=c.key+"-"+C.name,s!==void 0&&(p+=" "+s);var F=k&&b===void 0?_(S):x,y={};for(var v in r)k&&v==="as"||F(v)&&(y[v]=r[v]);return y.className=p,h&&(y.ref=h),m.createElement(m.Fragment,null,m.createElement(Y,{cache:c,serialized:C,isStringTag:typeof S=="string"}),m.createElement(S,y))});return n.displayName=o!==void 0?o:"Styled("+(typeof t=="string"?t:t.displayName||t.name||"Component")+")",n.defaultProps=e.defaultProps,n.__emotion_real=n,n.__emotion_base=t,n.__emotion_styles=d,n.__emotion_forwardProp=b,Object.defineProperty(n,"toString",{value:function(){return s===void 0&&W?"NO_COMPONENT_SELECTOR":"."+s}}),n.withComponent=function(r,c){var h=a(r,I({},i,c,{shouldForwardProp:A(n,c,!0)}));return h.apply(void 0,d)},n}},K=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],O=G.bind(null);K.forEach(function(a){O[a]=O(a)});export{O as default};
1
+ import{importShared as R}from"../__federation_fn_import-Cw4EhxlG.js";import{m as z,g as L,s as M,_ as I,r as N,u as D,i as H}from"../emotion-use-insertion-effect-with-fallbacks.browser.esm-T2Tuze4y.js";var U=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|popover|popoverTarget|popoverTargetAction|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,q=z(function(a){return U.test(a)||a.charCodeAt(0)===111&&a.charCodeAt(1)===110&&a.charCodeAt(2)<91});const{withEmotionCache:B,ThemeContext:V}=await R("@emotion/react"),m=await R("react");var W=!1,X=q,j=function(e){return e!=="theme"},_=function(e){return typeof e=="string"&&e.charCodeAt(0)>96?X:j},A=function(e,i,l){var t;if(i){var o=i.shouldForwardProp;t=e.__emotion_forwardProp&&o?function(s){return e.__emotion_forwardProp(s)&&o(s)}:o}return typeof t!="function"&&l&&(t=e.__emotion_forwardProp),t},Y=function(e){var i=e.cache,l=e.serialized,t=e.isStringTag;return N(i,l,t),D(function(){return H(i,l,t)}),null},G=function a(e,i){var l=e.__emotion_real===e,t=l&&e.__emotion_base||e,o,s;i!==void 0&&(o=i.label,s=i.target);var b=A(e,i,l),x=b||_(t),k=!x("as");return function(){var u=arguments,d=l&&e.__emotion_styles!==void 0?e.__emotion_styles.slice(0):[];if(o!==void 0&&d.push("label:"+o+";"),u[0]==null||u[0].raw===void 0)d.push.apply(d,u);else{var P=u[0];d.push(P[0]);for(var E=u.length,f=1;f<E;f++)d.push(u[f],P[f])}var n=B(function(r,c,h){var S=k&&r.as||t,p="",w=[],g=r;if(r.theme==null){g={};for(var T in r)g[T]=r[T];g.theme=m.useContext(V)}typeof r.className=="string"?p=L(c.registered,w,r.className):r.className!=null&&(p=r.className+" ");var C=M(d.concat(w),c.registered,g);p+=c.key+"-"+C.name,s!==void 0&&(p+=" "+s);var F=k&&b===void 0?_(S):x,y={};for(var v in r)k&&v==="as"||F(v)&&(y[v]=r[v]);return y.className=p,h&&(y.ref=h),m.createElement(m.Fragment,null,m.createElement(Y,{cache:c,serialized:C,isStringTag:typeof S=="string"}),m.createElement(S,y))});return n.displayName=o!==void 0?o:"Styled("+(typeof t=="string"?t:t.displayName||t.name||"Component")+")",n.defaultProps=e.defaultProps,n.__emotion_real=n,n.__emotion_base=t,n.__emotion_styles=d,n.__emotion_forwardProp=b,Object.defineProperty(n,"toString",{value:function(){return s===void 0&&W?"NO_COMPONENT_SELECTOR":"."+s}}),n.withComponent=function(r,c){var h=a(r,I({},i,c,{shouldForwardProp:A(n,c,!0)}));return h.apply(void 0,d)},n}},K=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],O=G.bind(null);K.forEach(function(a){O[a]=O(a)});export{O as default};