@emailmaker/emailmaker 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +188 -0
- package/README_eng.md +195 -0
- package/android-chrome-192x192.png +0 -0
- package/android-chrome-512x512.png +0 -0
- package/apple-touch-icon-b.png +0 -0
- package/apple-touch-icon.png +0 -0
- package/asset-manifest.json +207 -0
- package/css.worker.js +2 -0
- package/css.worker.js.LICENSE.txt +6 -0
- package/editor.worker.js +1 -0
- package/emailmaker-esm.js +1 -0
- package/emailmaker.d.ts +978 -0
- package/emailmaker.js +1 -0
- package/favicon-16x16.png +0 -0
- package/favicon-32x32.png +0 -0
- package/favicon-b.ico +0 -0
- package/favicon.ico +0 -0
- package/html.worker.js +2 -0
- package/html.worker.js.LICENSE.txt +14 -0
- package/icon-192.png +0 -0
- package/icon-512.png +0 -0
- package/icon.svg +2 -0
- package/iframe/css/line-awesome/line-awesome.min.css +2 -0
- package/iframe/css/line-awesome/line-awesome.min.css.js +0 -0
- package/iframe/css/sandbox-dark.css +301 -0
- package/iframe/css/sandbox-dark.css.js +0 -0
- package/iframe/css/sandbox-darktheme.css +234 -0
- package/iframe/css/sandbox-darktheme.css.js +0 -0
- package/iframe/css/sandbox-light.css +197 -0
- package/iframe/css/sandbox-light.css.js +0 -0
- package/iframe/css/sandbox.css +1553 -0
- package/iframe/css/sandbox.css.js +0 -0
- package/iframe/css/sandbox.locale.en_en.css +16 -0
- package/iframe/css/sandbox.locale.en_en.css.js +0 -0
- package/iframe/css/sandbox.locale.ru_ru.css +16 -0
- package/iframe/css/sandbox.locale.ru_ru.css.js +0 -0
- package/iframe/fonts/line-awesome/la-solid-900.ttf +0 -0
- package/iframe/fonts/line-awesome/la-solid-900.woff +0 -0
- package/iframe/fonts/line-awesome/la-solid-900.woff2 +0 -0
- package/iframe/iframe-eblock.5ad84761d0d28cf7389f.html +18 -0
- package/iframe/iframe.5ad84761d0d28cf7389f.html +20 -0
- package/iframe/iframe.html +33 -0
- package/iframe/img/drag-insert.svg +5 -0
- package/iframe/img/icon-code.svg +10 -0
- package/iframe/img/icon-img.svg +10 -0
- package/iframe/img/left-arrow.svg +3 -0
- package/iframe/img/loader-1-dark.gif +0 -0
- package/iframe/img/loader-1-light.gif +0 -0
- package/iframe/js/cssbeautify.js +1 -0
- package/iframe/js/csso.min.js +1 -0
- package/iframe/js/emmet-monaco.min.js +2 -0
- package/iframe/js/emmet-monaco.min.js.LICENSE.txt +14 -0
- package/iframe/js/iframeResizer.contentWindow.min.js +2 -0
- package/iframe/js/iframeResizer.contentWindow.min.js.LICENSE.txt +7 -0
- package/iframe/js/sandbox.locale.en_us.js +1 -0
- package/iframe/js/sandbox.locale.ru_ru.js +1 -0
- package/iframe/js/typograf/typograf.all.min.js +2 -0
- package/iframe/js/typograf/typograf.all.min.js.LICENSE.txt +1 -0
- package/iframe/sandbox-eblock.js +1 -0
- package/iframe/sandbox-eblock.js.LICENSE.txt +10 -0
- package/iframe/sandbox.js +1 -0
- package/iframe/sandbox.js.LICENSE.txt +8 -0
- package/images/video-playButtons/youtube_red.png +0 -0
- package/json.worker.js +2 -0
- package/json.worker.js.LICENSE.txt +6 -0
- package/manifest-b.json +16 -0
- package/manifest.json +17 -0
- package/package.json +10 -0
- package/plugin.html +115 -0
- package/plugin_default.html +56 -0
- package/plugin_s.html +31 -0
- package/react/index.d.ts +11 -0
- package/react/index.jsx +34 -0
- package/robots.txt +3 -0
- package/static/css/2859.3f78309e.css +1 -0
- package/static/css/4225.7ff43163.css +1 -0
- package/static/css/4872.36457ae6.css +1 -0
- package/static/css/9002.f81f3603.css +1 -0
- package/static/js/111.cbd98290.chunk.js +2 -0
- package/static/js/111.cbd98290.chunk.js.LICENSE.txt +6 -0
- package/static/js/1115.fb08b320.chunk.js +2 -0
- package/static/js/1115.fb08b320.chunk.js.LICENSE.txt +6 -0
- package/static/js/1247.6885a0da.chunk.js +2 -0
- package/static/js/1247.6885a0da.chunk.js.LICENSE.txt +6 -0
- package/static/js/1375.9309af3d.chunk.js +2 -0
- package/static/js/1375.9309af3d.chunk.js.LICENSE.txt +6 -0
- package/static/js/1727.05b807df.chunk.js +2 -0
- package/static/js/1727.05b807df.chunk.js.LICENSE.txt +6 -0
- package/static/js/1863.7fa7c875.chunk.js +2 -0
- package/static/js/1863.7fa7c875.chunk.js.LICENSE.txt +6 -0
- package/static/js/2095.35960898.chunk.js +2 -0
- package/static/js/2095.35960898.chunk.js.LICENSE.txt +6 -0
- package/static/js/215.184294a2.chunk.js +2 -0
- package/static/js/215.184294a2.chunk.js.LICENSE.txt +6 -0
- package/static/js/2175.7bfdf72e.chunk.js +2 -0
- package/static/js/2175.7bfdf72e.chunk.js.LICENSE.txt +6 -0
- package/static/js/223.86871df9.chunk.js +2 -0
- package/static/js/223.86871df9.chunk.js.LICENSE.txt +6 -0
- package/static/js/255.96cc3f0a.chunk.js +2 -0
- package/static/js/255.96cc3f0a.chunk.js.LICENSE.txt +6 -0
- package/static/js/2777.93e2f4b9.chunk.js +2 -0
- package/static/js/2777.93e2f4b9.chunk.js.LICENSE.txt +6 -0
- package/static/js/2799.a8352a8e.chunk.js +2 -0
- package/static/js/2799.a8352a8e.chunk.js.LICENSE.txt +6 -0
- package/static/js/2807.13d244f7.js +2 -0
- package/static/js/2807.13d244f7.js.LICENSE.txt +51 -0
- package/static/js/2859.b9caeb15.js +1 -0
- package/static/js/2959.37c71ed2.chunk.js +2 -0
- package/static/js/2959.37c71ed2.chunk.js.LICENSE.txt +6 -0
- package/static/js/3.cc80fb69.chunk.js +2 -0
- package/static/js/3.cc80fb69.chunk.js.LICENSE.txt +6 -0
- package/static/js/303.4b451722.chunk.js +2 -0
- package/static/js/303.4b451722.chunk.js.LICENSE.txt +6 -0
- package/static/js/3095.27a8a7ce.chunk.js +2 -0
- package/static/js/3095.27a8a7ce.chunk.js.LICENSE.txt +6 -0
- package/static/js/3116.b4e4c747.chunk.js +2 -0
- package/static/js/3116.b4e4c747.chunk.js.LICENSE.txt +6 -0
- package/static/js/33.7087137f.chunk.js +2 -0
- package/static/js/33.7087137f.chunk.js.LICENSE.txt +6 -0
- package/static/js/3321.3369560d.chunk.js +2 -0
- package/static/js/3321.3369560d.chunk.js.LICENSE.txt +6 -0
- package/static/js/351.800cfa64.chunk.js +2 -0
- package/static/js/351.800cfa64.chunk.js.LICENSE.txt +10 -0
- package/static/js/363.36407050.chunk.js +2 -0
- package/static/js/363.36407050.chunk.js.LICENSE.txt +6 -0
- package/static/js/3756.4539bf2a.chunk.js +2 -0
- package/static/js/3756.4539bf2a.chunk.js.LICENSE.txt +6 -0
- package/static/js/3887.1d2dfdb9.chunk.js +2 -0
- package/static/js/3887.1d2dfdb9.chunk.js.LICENSE.txt +6 -0
- package/static/js/4123.3cb83836.chunk.js +2 -0
- package/static/js/4123.3cb83836.chunk.js.LICENSE.txt +6 -0
- package/static/js/4225.e7602269.js +2 -0
- package/static/js/4225.e7602269.js.LICENSE.txt +8 -0
- package/static/js/4311.af4a59a5.chunk.js +2 -0
- package/static/js/4311.af4a59a5.chunk.js.LICENSE.txt +6 -0
- package/static/js/4459.b6de1b05.chunk.js +2 -0
- package/static/js/4459.b6de1b05.chunk.js.LICENSE.txt +6 -0
- package/static/js/4461.371ffb79.chunk.js +2 -0
- package/static/js/4461.371ffb79.chunk.js.LICENSE.txt +6 -0
- package/static/js/4501.6e4ba4d8.js +2 -0
- package/static/js/4501.6e4ba4d8.js.LICENSE.txt +42 -0
- package/static/js/4791.c9177129.chunk.js +2 -0
- package/static/js/4791.c9177129.chunk.js.LICENSE.txt +6 -0
- package/static/js/4872.a0e5cb2b.js +2 -0
- package/static/js/4872.a0e5cb2b.js.LICENSE.txt +200 -0
- package/static/js/4879.8556f136.chunk.js +2 -0
- package/static/js/4879.8556f136.chunk.js.LICENSE.txt +6 -0
- package/static/js/4932.6c513f63.chunk.js +2 -0
- package/static/js/4932.6c513f63.chunk.js.LICENSE.txt +6 -0
- package/static/js/5051.b9a57eb1.chunk.js +2 -0
- package/static/js/5051.b9a57eb1.chunk.js.LICENSE.txt +6 -0
- package/static/js/5068.5d29e1a9.chunk.js +1 -0
- package/static/js/5227.6c918241.chunk.js +2 -0
- package/static/js/5227.6c918241.chunk.js.LICENSE.txt +6 -0
- package/static/js/5293.7e051b80.chunk.js +2 -0
- package/static/js/5293.7e051b80.chunk.js.LICENSE.txt +6 -0
- package/static/js/5423.bddd4a43.chunk.js +2 -0
- package/static/js/5423.bddd4a43.chunk.js.LICENSE.txt +6 -0
- package/static/js/543.82f27022.chunk.js +2 -0
- package/static/js/543.82f27022.chunk.js.LICENSE.txt +6 -0
- package/static/js/5535.3244c148.chunk.js +2 -0
- package/static/js/5535.3244c148.chunk.js.LICENSE.txt +6 -0
- package/static/js/5613.62288e00.chunk.js +2 -0
- package/static/js/5613.62288e00.chunk.js.LICENSE.txt +6 -0
- package/static/js/5615.6ccde06b.chunk.js +2 -0
- package/static/js/5615.6ccde06b.chunk.js.LICENSE.txt +6 -0
- package/static/js/5693.3d4fe88d.chunk.js +2 -0
- package/static/js/5693.3d4fe88d.chunk.js.LICENSE.txt +6 -0
- package/static/js/5763.37c30999.chunk.js +2 -0
- package/static/js/5763.37c30999.chunk.js.LICENSE.txt +6 -0
- package/static/js/5919.dd3128af.chunk.js +2 -0
- package/static/js/5919.dd3128af.chunk.js.LICENSE.txt +6 -0
- package/static/js/6009.f189e5ae.chunk.js +2 -0
- package/static/js/6009.f189e5ae.chunk.js.LICENSE.txt +6 -0
- package/static/js/6447.cfdb8875.chunk.js +2 -0
- package/static/js/6447.cfdb8875.chunk.js.LICENSE.txt +6 -0
- package/static/js/6639.bbbbe601.chunk.js +2 -0
- package/static/js/6639.bbbbe601.chunk.js.LICENSE.txt +6 -0
- package/static/js/6675.3a2d412d.chunk.js +2 -0
- package/static/js/6675.3a2d412d.chunk.js.LICENSE.txt +6 -0
- package/static/js/6713.b7412fee.chunk.js +2 -0
- package/static/js/6713.b7412fee.chunk.js.LICENSE.txt +6 -0
- package/static/js/6735.a97baca4.chunk.js +2 -0
- package/static/js/6735.a97baca4.chunk.js.LICENSE.txt +6 -0
- package/static/js/6901.40d177c8.chunk.js +1 -0
- package/static/js/6933.74b38c02.chunk.js +2 -0
- package/static/js/6933.74b38c02.chunk.js.LICENSE.txt +6 -0
- package/static/js/6987.76422d40.js +1 -0
- package/static/js/7073.605ee411.chunk.js +2 -0
- package/static/js/7073.605ee411.chunk.js.LICENSE.txt +6 -0
- package/static/js/7119.ca1d70c7.chunk.js +2 -0
- package/static/js/7119.ca1d70c7.chunk.js.LICENSE.txt +6 -0
- package/static/js/7175.5dd62a53.chunk.js +2 -0
- package/static/js/7175.5dd62a53.chunk.js.LICENSE.txt +6 -0
- package/static/js/7241.0040848f.chunk.js +2 -0
- package/static/js/7241.0040848f.chunk.js.LICENSE.txt +6 -0
- package/static/js/7260.df86f79c.chunk.js +2 -0
- package/static/js/7260.df86f79c.chunk.js.LICENSE.txt +6 -0
- package/static/js/7473.703ab781.chunk.js +2 -0
- package/static/js/7473.703ab781.chunk.js.LICENSE.txt +6 -0
- package/static/js/7533.ff47b1c6.chunk.js +2 -0
- package/static/js/7533.ff47b1c6.chunk.js.LICENSE.txt +6 -0
- package/static/js/7567.5b36aa1e.chunk.js +2 -0
- package/static/js/7567.5b36aa1e.chunk.js.LICENSE.txt +6 -0
- package/static/js/7568.abd309a5.chunk.js +2 -0
- package/static/js/7568.abd309a5.chunk.js.LICENSE.txt +6 -0
- package/static/js/7663.9dadc8ad.chunk.js +2 -0
- package/static/js/7663.9dadc8ad.chunk.js.LICENSE.txt +6 -0
- package/static/js/779.7ec500b4.chunk.js +2 -0
- package/static/js/779.7ec500b4.chunk.js.LICENSE.txt +6 -0
- package/static/js/7803.0edbb2ab.chunk.js +2 -0
- package/static/js/7803.0edbb2ab.chunk.js.LICENSE.txt +6 -0
- package/static/js/7855.90402a9a.chunk.js +2 -0
- package/static/js/7855.90402a9a.chunk.js.LICENSE.txt +6 -0
- package/static/js/7878.a2ba845f.chunk.js +2 -0
- package/static/js/7878.a2ba845f.chunk.js.LICENSE.txt +6 -0
- package/static/js/7963.8d0e0875.chunk.js +2 -0
- package/static/js/7963.8d0e0875.chunk.js.LICENSE.txt +6 -0
- package/static/js/7999.0ef327fe.chunk.js +2 -0
- package/static/js/7999.0ef327fe.chunk.js.LICENSE.txt +6 -0
- package/static/js/8287.60007a30.chunk.js +2 -0
- package/static/js/8287.60007a30.chunk.js.LICENSE.txt +6 -0
- package/static/js/8525.164b4ef1.chunk.js +2 -0
- package/static/js/8525.164b4ef1.chunk.js.LICENSE.txt +6 -0
- package/static/js/8614.4df07be3.chunk.js +2 -0
- package/static/js/8614.4df07be3.chunk.js.LICENSE.txt +6 -0
- package/static/js/863.6162bd02.chunk.js +2 -0
- package/static/js/863.6162bd02.chunk.js.LICENSE.txt +6 -0
- package/static/js/8675.4011b507.chunk.js +2 -0
- package/static/js/8675.4011b507.chunk.js.LICENSE.txt +6 -0
- package/static/js/8799.eaf2f1c6.chunk.js +2 -0
- package/static/js/8799.eaf2f1c6.chunk.js.LICENSE.txt +6 -0
- package/static/js/8871.25143e00.chunk.js +2 -0
- package/static/js/8871.25143e00.chunk.js.LICENSE.txt +6 -0
- package/static/js/8991.19d7f941.chunk.js +2 -0
- package/static/js/8991.19d7f941.chunk.js.LICENSE.txt +6 -0
- package/static/js/9002.6c79bc92.js +1 -0
- package/static/js/9059.695b4670.chunk.js +2 -0
- package/static/js/9059.695b4670.chunk.js.LICENSE.txt +6 -0
- package/static/js/9137.564a2d8b.chunk.js +2 -0
- package/static/js/9137.564a2d8b.chunk.js.LICENSE.txt +6 -0
- package/static/js/9199.9d74e16f.chunk.js +2 -0
- package/static/js/9199.9d74e16f.chunk.js.LICENSE.txt +6 -0
- package/static/js/9225.25bc13dc.chunk.js +2 -0
- package/static/js/9225.25bc13dc.chunk.js.LICENSE.txt +6 -0
- package/static/js/9368.cc07f295.js +1 -0
- package/static/js/9503.80f871a1.chunk.js +2 -0
- package/static/js/9503.80f871a1.chunk.js.LICENSE.txt +6 -0
- package/static/js/9541.7d3756bf.js +1 -0
- package/static/js/9655.2e8d4a8e.chunk.js +2 -0
- package/static/js/9655.2e8d4a8e.chunk.js.LICENSE.txt +6 -0
- package/static/js/9823.a7ba133e.chunk.js +2 -0
- package/static/js/9823.a7ba133e.chunk.js.LICENSE.txt +6 -0
- package/static/js/9875.3b739db7.js +2 -0
- package/static/js/9875.3b739db7.js.LICENSE.txt +86 -0
- package/static/js/9935.f14200e3.chunk.js +2 -0
- package/static/js/9935.f14200e3.chunk.js.LICENSE.txt +6 -0
- package/static/js/ant-locale/locale0.bc9eb989.chunk.js +1 -0
- package/static/js/ant-locale/locale1.79afa8d5.chunk.js +1 -0
- package/static/js/ant-locale/locale10.931ba183.chunk.js +1 -0
- package/static/js/ant-locale/locale11.7c905a2e.chunk.js +1 -0
- package/static/js/ant-locale/locale13.8c7e33f9.chunk.js +1 -0
- package/static/js/ant-locale/locale14.a6d2b694.chunk.js +1 -0
- package/static/js/ant-locale/locale15.e521e6c8.chunk.js +1 -0
- package/static/js/ant-locale/locale16.6bf080c9.chunk.js +1 -0
- package/static/js/ant-locale/locale17.8db23aba.chunk.js +1 -0
- package/static/js/ant-locale/locale18.2378252e.chunk.js +1 -0
- package/static/js/ant-locale/locale19.a9518e0a.chunk.js +1 -0
- package/static/js/ant-locale/locale2.49423b7a.chunk.js +1 -0
- package/static/js/ant-locale/locale20.4195bdf5.chunk.js +1 -0
- package/static/js/ant-locale/locale21.479ba0df.chunk.js +1 -0
- package/static/js/ant-locale/locale22.4c3baa93.chunk.js +1 -0
- package/static/js/ant-locale/locale23.58be86ea.chunk.js +1 -0
- package/static/js/ant-locale/locale24.a44b9124.chunk.js +1 -0
- package/static/js/ant-locale/locale25.efe23431.chunk.js +1 -0
- package/static/js/ant-locale/locale26.52c7a0fc.chunk.js +1 -0
- package/static/js/ant-locale/locale27.cc9719d7.chunk.js +1 -0
- package/static/js/ant-locale/locale28.8b89909a.chunk.js +1 -0
- package/static/js/ant-locale/locale3.547b47e0.chunk.js +1 -0
- package/static/js/ant-locale/locale30.fb7b325a.chunk.js +1 -0
- package/static/js/ant-locale/locale31.2700fff5.chunk.js +1 -0
- package/static/js/ant-locale/locale32.27d17521.chunk.js +1 -0
- package/static/js/ant-locale/locale33.3f671b7f.chunk.js +1 -0
- package/static/js/ant-locale/locale34.6eea3a7c.chunk.js +1 -0
- package/static/js/ant-locale/locale35.1c169a8f.chunk.js +1 -0
- package/static/js/ant-locale/locale36.a0f5d209.chunk.js +1 -0
- package/static/js/ant-locale/locale37.d7a93cd8.chunk.js +1 -0
- package/static/js/ant-locale/locale38.a167fb02.chunk.js +1 -0
- package/static/js/ant-locale/locale39.88330df8.chunk.js +1 -0
- package/static/js/ant-locale/locale4.a14d4f60.chunk.js +1 -0
- package/static/js/ant-locale/locale40.26a0f7b4.chunk.js +1 -0
- package/static/js/ant-locale/locale41.2c575f45.chunk.js +1 -0
- package/static/js/ant-locale/locale42.bd705058.chunk.js +1 -0
- package/static/js/ant-locale/locale43.4c318c1e.chunk.js +1 -0
- package/static/js/ant-locale/locale44.ae6fc942.chunk.js +1 -0
- package/static/js/ant-locale/locale45.4fcc0acf.chunk.js +1 -0
- package/static/js/ant-locale/locale46.8d7fca54.chunk.js +1 -0
- package/static/js/ant-locale/locale47.6a8d9ee9.chunk.js +1 -0
- package/static/js/ant-locale/locale48.db4fb3e9.chunk.js +1 -0
- package/static/js/ant-locale/locale49.876e9846.chunk.js +1 -0
- package/static/js/ant-locale/locale5.179f1d8d.chunk.js +1 -0
- package/static/js/ant-locale/locale50.8d63ce0a.chunk.js +1 -0
- package/static/js/ant-locale/locale51.691274b8.chunk.js +1 -0
- package/static/js/ant-locale/locale52.b9a49d71.chunk.js +1 -0
- package/static/js/ant-locale/locale53.7a7722e3.chunk.js +1 -0
- package/static/js/ant-locale/locale54.0c75bb80.chunk.js +1 -0
- package/static/js/ant-locale/locale55.f5c0d904.chunk.js +1 -0
- package/static/js/ant-locale/locale56.bb2a06a4.chunk.js +1 -0
- package/static/js/ant-locale/locale57.648ebc5b.chunk.js +1 -0
- package/static/js/ant-locale/locale58.fd6a6d0e.chunk.js +1 -0
- package/static/js/ant-locale/locale59.05c85397.chunk.js +1 -0
- package/static/js/ant-locale/locale60.23e6b029.chunk.js +1 -0
- package/static/js/ant-locale/locale61.30ad8fdf.chunk.js +1 -0
- package/static/js/ant-locale/locale62.2ba4458e.chunk.js +1 -0
- package/static/js/ant-locale/locale63.e0e3072c.chunk.js +1 -0
- package/static/js/ant-locale/locale64.d9db34fb.chunk.js +1 -0
- package/static/js/ant-locale/locale65.aa10f18f.chunk.js +1 -0
- package/static/js/ant-locale/locale66.586f32ee.chunk.js +1 -0
- package/static/js/ant-locale/locale68.d2a63a32.chunk.js +1 -0
- package/static/js/ant-locale/locale69.b786c422.chunk.js +1 -0
- package/static/js/ant-locale/locale7.e847d0ec.chunk.js +1 -0
- package/static/js/ant-locale/locale70.75d26f29.chunk.js +1 -0
- package/static/js/ant-locale/locale71.e5c07b26.chunk.js +1 -0
- package/static/js/ant-locale/locale8.f139c7f8.chunk.js +1 -0
- package/static/js/ant-locale/locale9.b69465db.chunk.js +1 -0
- package/static/js/emailmaker_core.b4fb2394.js +1 -0
- package/static/js/mergeTags/locale0.d3379239.chunk.js +1 -0
- package/static/js/mergeTags/locale1.9462df85.chunk.js +1 -0
- package/static/media/codicon.f13d28f3.ttf +0 -0
- package/static/media/frame_dark.318d7ed5.png +0 -0
- package/static/media/frame_light.22a9b4ec.png +0 -0
- package/static/media/frame_template_gallery.85693b39.png +0 -0
- package/static/media/icon-border-radius.2a56b93a7711558098a622296b7ae2e1.svg +1 -0
- package/static/media/icon-create-block.0b077f4000bf7907b9ea871d28c7fb1e.svg +1 -0
- package/static/media/typewriter.c11b8204.png +0 -0
- package/translations.pot +3955 -0
- package/ts.worker.js +2 -0
- package/ts.worker.js.LICENSE.txt +21 -0
- package/vite/index.d.ts +11 -0
- package/vite/index.js +136 -0
- package/vite/mime-types.js +179 -0
- package/vite/utils.js +58 -0
- package/webpack/index.d.ts +12 -0
- package/webpack/index.js +109 -0
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! For license information please see 2807.13d244f7.js.LICENSE.txt */
|
|
2
|
+
(globalThis.webpackChunkemail_maker=globalThis.webpackChunkemail_maker||[]).push([[2807],{1018:(t,e,n)=>{"use strict";function r(){return r=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},r.apply(this,arguments)}var i;n.d(e,{AO:()=>u,Gh:()=>k,HS:()=>B,Rr:()=>l,V1:()=>w,pX:()=>Y,pb:()=>x,rc:()=>i,tH:()=>G,ue:()=>d,zR:()=>s}),function(t){t.Pop="POP",t.Push="PUSH",t.Replace="REPLACE"}(i||(i={}));const a="popstate";function s(t){return void 0===t&&(t={}),h((function(t,e){let{pathname:n,search:r,hash:i}=t.location;return c("",{pathname:n,search:r,hash:i},e.state&&e.state.usr||null,e.state&&e.state.key||"default")}),(function(t,e){return"string"===typeof e?e:u(e)}),null,t)}function o(t){return{usr:t.state,key:t.key}}function c(t,e,n,i){return void 0===n&&(n=null),r({pathname:"string"===typeof t?t:t.pathname,search:"",hash:""},"string"===typeof e?l(e):e,{state:n,key:e&&e.key||i||Math.random().toString(36).substr(2,8)})}function u(t){let{pathname:e="/",search:n="",hash:r=""}=t;return n&&"?"!==n&&(e+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(e+="#"===r.charAt(0)?r:"#"+r),e}function l(t){let e={};if(t){let n=t.indexOf("#");n>=0&&(e.hash=t.substr(n),t=t.substr(0,n));let r=t.indexOf("?");r>=0&&(e.search=t.substr(r),t=t.substr(0,r)),t&&(e.pathname=t)}return e}function h(t,e,n,r){void 0===r&&(r={});let{window:s=document.defaultView,v5Compat:u=!1}=r,l=s.history,h=i.Pop,p=null;function d(){h=i.Pop,p&&p({action:h,location:_.location})}let _={get action(){return h},get location(){return t(s,l)},listen(t){if(p)throw new Error("A history only accepts one active listener");return s.addEventListener(a,d),p=t,()=>{s.removeEventListener(a,d),p=null}},createHref:t=>e(s,t),push:function(t,e){h=i.Push;let r=c(_.location,t,e);n&&n(r,t);let a=o(r),d=_.createHref(r);try{l.pushState(a,"",d)}catch(f){s.location.assign(d)}u&&p&&p({action:h,location:r})},replace:function(t,e){h=i.Replace;let r=c(_.location,t,e);n&&n(r,t);let a=o(r),s=_.createHref(r);l.replaceState(a,"",s),u&&p&&p({action:h,location:r})},go:t=>l.go(t)};return _}var p;function d(t,e,n){void 0===n&&(n="/");let r=x(("string"===typeof e?l(e):e).pathname||"/",n);if(null==r)return null;let i=_(t);!function(t){t.sort(((t,e)=>t.score!==e.score?e.score-t.score:function(t,e){let n=t.length===e.length&&t.slice(0,-1).every(((t,n)=>t===e[n]));return n?t[t.length-1]-e[e.length-1]:0}(t.routesMeta.map((t=>t.childrenIndex)),e.routesMeta.map((t=>t.childrenIndex)))))}(i);let a=null;for(let s=0;null==a&&s<i.length;++s)a=T(i[s],r);return a}function _(t,e,n,r){return void 0===e&&(e=[]),void 0===n&&(n=[]),void 0===r&&(r=""),t.forEach(((t,i)=>{let a={relativePath:t.path||"",caseSensitive:!0===t.caseSensitive,childrenIndex:i,route:t};a.relativePath.startsWith("/")&&(w(a.relativePath.startsWith(r),'Absolute route path "'+a.relativePath+'" nested under path "'+r+'" is not valid. An absolute child route path must start with the combined path of all its parent routes.'),a.relativePath=a.relativePath.slice(r.length));let s=B([r,a.relativePath]),o=n.concat(a);t.children&&t.children.length>0&&(w(!0!==t.index,'Index routes must not have child routes. Please remove all child routes from route path "'+s+'".'),_(t.children,e,o,s)),(null!=t.path||t.index)&&e.push({path:s,score:b(s,t.index),routesMeta:o})})),e}!function(t){t.data="data",t.deferred="deferred",t.redirect="redirect",t.error="error"}(p||(p={}));const f=/^:\w+$/,v=3,m=2,g=1,y=10,E=-2,S=t=>"*"===t;function b(t,e){let n=t.split("/"),r=n.length;return n.some(S)&&(r+=E),e&&(r+=m),n.filter((t=>!S(t))).reduce(((t,e)=>t+(f.test(e)?v:""===e?g:y)),r)}function T(t,e){let{routesMeta:n}=t,r={},i="/",a=[];for(let s=0;s<n.length;++s){let t=n[s],o=s===n.length-1,c="/"===i?e:e.slice(i.length)||"/",u=R({path:t.relativePath,caseSensitive:t.caseSensitive,end:o},c);if(!u)return null;Object.assign(r,u.params);let l=t.route;a.push({params:r,pathname:B([i,u.pathname]),pathnameBase:U(B([i,u.pathnameBase])),route:l}),"/"!==u.pathnameBase&&(i=B([i,u.pathnameBase]))}return a}function R(t,e){"string"===typeof t&&(t={path:t,caseSensitive:!1,end:!0});let[n,r]=function(t,e,n){void 0===e&&(e=!1);void 0===n&&(n=!0);D("*"===t||!t.endsWith("*")||t.endsWith("/*"),'Route path "'+t+'" will be treated as if it were "'+t.replace(/\*$/,"/*")+'" because the `*` character must always follow a `/` in the pattern. To get rid of this warning, please change the route path to "'+t.replace(/\*$/,"/*")+'".');let r=[],i="^"+t.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^$?{}|()[\]]/g,"\\$&").replace(/:(\w+)/g,((t,e)=>(r.push(e),"([^\\/]+)")));t.endsWith("*")?(r.push("*"),i+="*"===t||"/*"===t?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":""!==t&&"/"!==t&&(i+="(?:(?=\\/|$))");let a=new RegExp(i,e?void 0:"i");return[a,r]}(t.path,t.caseSensitive,t.end),i=e.match(n);if(!i)return null;let a=i[0],s=a.replace(/(.)\/+$/,"$1"),o=i.slice(1);return{params:r.reduce(((t,e,n)=>{if("*"===e){let t=o[n]||"";s=a.slice(0,a.length-t.length).replace(/(.)\/+$/,"$1")}return t[e]=function(t,e){try{return decodeURIComponent(t)}catch(n){return D(!1,'The value for the URL param "'+e+'" will not be decoded because the string "'+t+'" is a malformed URL segment. This is probably due to a bad percent encoding ('+n+")."),t}}(o[n]||"",e),t}),{}),pathname:a,pathnameBase:s,pattern:t}}function x(t,e){if("/"===e)return t;if(!t.toLowerCase().startsWith(e.toLowerCase()))return null;let n=e.endsWith("/")?e.length-1:e.length,r=t.charAt(n);return r&&"/"!==r?null:t.slice(n)||"/"}function w(t,e){if(!1===t||null===t||"undefined"===typeof t)throw new Error(e)}function D(t,e){if(!t){"undefined"!==typeof console&&console.warn(e);try{throw new Error(e)}catch(n){}}}function N(t,e,n,r){return"Cannot include a '"+t+"' character in a manually specified `to."+e+"` field ["+JSON.stringify(r)+"]. Please separate it out to the `to."+n+'` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.'}function k(t,e,n,i){let a;void 0===i&&(i=!1),"string"===typeof t?a=l(t):(a=r({},t),w(!a.pathname||!a.pathname.includes("?"),N("?","pathname","search",a)),w(!a.pathname||!a.pathname.includes("#"),N("#","pathname","hash",a)),w(!a.search||!a.search.includes("#"),N("#","search","hash",a)));let s,o=""===t||""===a.pathname,c=o?"/":a.pathname;if(i||null==c)s=n;else{let t=e.length-1;if(c.startsWith("..")){let e=c.split("/");for(;".."===e[0];)e.shift(),t-=1;a.pathname=e.join("/")}s=t>=0?e[t]:"/"}let u=function(t,e){void 0===e&&(e="/");let{pathname:n,search:r="",hash:i=""}="string"===typeof t?l(t):t,a=n?n.startsWith("/")?n:function(t,e){let n=e.replace(/\/+$/,"").split("/");return t.split("/").forEach((t=>{".."===t?n.length>1&&n.pop():"."!==t&&n.push(t)})),n.length>1?n.join("/"):"/"}(n,e):e;return{pathname:a,search:O(r),hash:C(i)}}(a,s),h=c&&"/"!==c&&c.endsWith("/"),p=(o||"."===c)&&n.endsWith("/");return u.pathname.endsWith("/")||!h&&!p||(u.pathname+="/"),u}const B=t=>t.join("/").replace(/\/\/+/g,"/"),U=t=>t.replace(/\/+$/,"").replace(/^\/*/,"/"),O=t=>t&&"?"!==t?t.startsWith("?")?t:"?"+t:"",C=t=>t&&"#"!==t?t.startsWith("#")?t:"#"+t:"";class G extends Error{}class ${constructor(t,e,n){this.status=t,this.statusText=e||"",this.data=n}}function Y(t){return t instanceof $}},90445:(t,e,n)=>{"use strict";n.d(e,{Cp:()=>i,v4:()=>s,wd:()=>a});var r=n(51361);function i(t,e){return(0,r.BF)().captureException(t,{captureContext:e})}function a(t,e){var n="string"===typeof e?e:void 0,i="string"!==typeof e?{captureContext:e}:void 0;return(0,r.BF)().captureMessage(t,n,i)}function s(t){(0,r.BF)().withScope(t)}},51361:(t,e,n)=>{"use strict";n.d(e,{BF:()=>f,EU:()=>d});var r=n(26566),i=n(16559),a=n(17914),s=n(67373),o=n(8658),c=n(79782),u=n(52002),l=4,h=100;class p{__init(){this._stack=[{}]}constructor(t,e=new c.H,n=l){this._version=n,p.prototype.__init.call(this),this.getStackTop().scope=e,t&&this.bindClient(t)}isOlderThan(t){return this._version<t}bindClient(t){this.getStackTop().client=t,t&&t.setupIntegrations&&t.setupIntegrations()}pushScope(){var t=c.H.clone(this.getScope());return this.getStack().push({client:this.getClient(),scope:t}),t}popScope(){return!(this.getStack().length<=1)&&!!this.getStack().pop()}withScope(t){var e=this.pushScope();try{t(e)}finally{this.popScope()}}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getStack(){return this._stack}getStackTop(){return this._stack[this._stack.length-1]}captureException(t,e){var n=this._lastEventId=e&&e.event_id?e.event_id:(0,r.eJ)(),i=new Error("Sentry syntheticException");return this._withClient(((r,a)=>{r.captureException(t,{originalException:t,syntheticException:i,...e,event_id:n},a)})),n}captureMessage(t,e,n){var i=this._lastEventId=n&&n.event_id?n.event_id:(0,r.eJ)(),a=new Error(t);return this._withClient(((r,s)=>{r.captureMessage(t,e,{originalException:t,syntheticException:a,...n,event_id:i},s)})),i}captureEvent(t,e){var n=e&&e.event_id?e.event_id:(0,r.eJ)();return"transaction"!==t.type&&(this._lastEventId=n),this._withClient(((r,i)=>{r.captureEvent(t,{...e,event_id:n},i)})),n}lastEventId(){return this._lastEventId}addBreadcrumb(t,e){const{scope:n,client:r}=this.getStackTop();if(!n||!r)return;const{beforeBreadcrumb:s=null,maxBreadcrumbs:o=h}=r.getOptions&&r.getOptions()||{};if(!(o<=0)){var c={timestamp:(0,i.lu)(),...t},u=s?(0,a.pq)((()=>s(c,e))):c;null!==u&&n.addBreadcrumb(u,o)}}setUser(t){var e=this.getScope();e&&e.setUser(t)}setTags(t){var e=this.getScope();e&&e.setTags(t)}setExtras(t){var e=this.getScope();e&&e.setExtras(t)}setTag(t,e){var n=this.getScope();n&&n.setTag(t,e)}setExtra(t,e){var n=this.getScope();n&&n.setExtra(t,e)}setContext(t,e){var n=this.getScope();n&&n.setContext(t,e)}configureScope(t){const{scope:e,client:n}=this.getStackTop();e&&n&&t(e)}run(t){var e=_(this);try{t(this)}finally{_(e)}}getIntegration(t){var e=this.getClient();if(!e)return null;try{return e.getIntegration(t)}catch(n){return("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&a.vF.warn(`Cannot retrieve integration ${t.id} from the current Hub`),null}}startTransaction(t,e){return this._callExtensionMethod("startTransaction",t,e)}traceHeaders(){return this._callExtensionMethod("traceHeaders")}captureSession(t=!1){if(t)return this.endSession();this._sendSessionUpdate()}endSession(){var t=this.getStackTop(),e=t&&t.scope,n=e&&e.getSession();n&&(0,u.Vu)(n),this._sendSessionUpdate(),e&&e.setSession()}startSession(t){const{scope:e,client:n}=this.getStackTop(),{release:r,environment:i}=n&&n.getOptions()||{};var a=(0,s.V)();const{userAgent:o}=a.navigator||{};var c=(0,u.fj)({release:r,environment:i,...e&&{user:e.getUser()},...o&&{userAgent:o},...t});if(e){var l=e.getSession&&e.getSession();l&&"ok"===l.status&&(0,u.qO)(l,{status:"exited"}),this.endSession(),e.setSession(c)}return c}shouldSendDefaultPii(){var t=this.getClient(),e=t&&t.getOptions();return Boolean(e&&e.sendDefaultPii)}_sendSessionUpdate(){const{scope:t,client:e}=this.getStackTop();if(t){var n=t.getSession();n&&e&&e.captureSession&&e.captureSession(n)}}_withClient(t){const{scope:e,client:n}=this.getStackTop();n&&t(n,e)}_callExtensionMethod(t,...e){var n=d().__SENTRY__;if(n&&n.extensions&&"function"===typeof n.extensions[t])return n.extensions[t].apply(this,e);("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&a.vF.warn(`Extension method ${t} couldn't be found, doing nothing.`)}}function d(){var t=(0,s.V)();return t.__SENTRY__=t.__SENTRY__||{extensions:{},hub:void 0},t}function _(t){var e=d(),n=m(e);return g(e,t),n}function f(){var t=d();return v(t)&&!m(t).isOlderThan(l)||g(t,new p),(0,o.wD)()?function(t){try{var e=d().__SENTRY__,n=e&&e.extensions&&e.extensions.domain&&e.extensions.domain.active;if(!n)return m(t);if(!v(n)||m(n).isOlderThan(l)){var r=m(t).getStackTop();g(n,new p(r.client,c.H.clone(r.scope)))}return m(n)}catch(i){return m(t)}}(t):m(t)}function v(t){return!!(t&&t.__SENTRY__&&t.__SENTRY__.hub)}function m(t){return(0,s.B)("hub",(()=>new p),t)}function g(t,e){return!!t&&((t.__SENTRY__=t.__SENTRY__||{}).hub=e,!0)}},79782:(t,e,n)=>{"use strict";n.d(e,{H:()=>l,l:()=>p});var r=n(79850),i=n(16559),a=n(45684),s=n(17914),o=n(26566),c=n(67373),u=n(52002);class l{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={}}static clone(t){var e=new l;return t&&(e._breadcrumbs=[...t._breadcrumbs],e._tags={...t._tags},e._extra={...t._extra},e._contexts={...t._contexts},e._user=t._user,e._level=t._level,e._span=t._span,e._session=t._session,e._transactionName=t._transactionName,e._fingerprint=t._fingerprint,e._eventProcessors=[...t._eventProcessors],e._requestSession=t._requestSession,e._attachments=[...t._attachments]),e}addScopeListener(t){this._scopeListeners.push(t)}addEventProcessor(t){return this._eventProcessors.push(t),this}setUser(t){return this._user=t||{},this._session&&(0,u.qO)(this._session,{user:t}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(t){return this._requestSession=t,this}setTags(t){return this._tags={...this._tags,...t},this._notifyScopeListeners(),this}setTag(t,e){return this._tags={...this._tags,[t]:e},this._notifyScopeListeners(),this}setExtras(t){return this._extra={...this._extra,...t},this._notifyScopeListeners(),this}setExtra(t,e){return this._extra={...this._extra,[t]:e},this._notifyScopeListeners(),this}setFingerprint(t){return this._fingerprint=t,this._notifyScopeListeners(),this}setLevel(t){return this._level=t,this._notifyScopeListeners(),this}setTransactionName(t){return this._transactionName=t,this._notifyScopeListeners(),this}setContext(t,e){return null===e?delete this._contexts[t]:this._contexts={...this._contexts,[t]:e},this._notifyScopeListeners(),this}setSpan(t){return this._span=t,this._notifyScopeListeners(),this}getSpan(){return this._span}getTransaction(){var t=this.getSpan();return t&&t.transaction}setSession(t){return t?this._session=t:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(t){if(!t)return this;if("function"===typeof t){var e=t(this);return e instanceof l?e:this}return t instanceof l?(this._tags={...this._tags,...t._tags},this._extra={...this._extra,...t._extra},this._contexts={...this._contexts,...t._contexts},t._user&&Object.keys(t._user).length&&(this._user=t._user),t._level&&(this._level=t._level),t._fingerprint&&(this._fingerprint=t._fingerprint),t._requestSession&&(this._requestSession=t._requestSession)):(0,r.Qd)(t)&&(this._tags={...this._tags,...t.tags},this._extra={...this._extra,...t.extra},this._contexts={...this._contexts,...t.contexts},t.user&&(this._user=t.user),t.level&&(this._level=t.level),t.fingerprint&&(this._fingerprint=t.fingerprint),t.requestSession&&(this._requestSession=t.requestSession)),this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._span=void 0,this._session=void 0,this._notifyScopeListeners(),this._attachments=[],this}addBreadcrumb(t,e){var n="number"===typeof e?e:100;if(n<=0)return this;var r={timestamp:(0,i.lu)(),...t};return this._breadcrumbs=[...this._breadcrumbs,r].slice(-n),this._notifyScopeListeners(),this}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(t){return this._attachments.push(t),this}getAttachments(){return this._attachments}clearAttachments(){return this._attachments=[],this}applyToEvent(t,e={}){if(this._extra&&Object.keys(this._extra).length&&(t.extra={...this._extra,...t.extra}),this._tags&&Object.keys(this._tags).length&&(t.tags={...this._tags,...t.tags}),this._user&&Object.keys(this._user).length&&(t.user={...this._user,...t.user}),this._contexts&&Object.keys(this._contexts).length&&(t.contexts={...this._contexts,...t.contexts}),this._level&&(t.level=this._level),this._transactionName&&(t.transaction=this._transactionName),this._span){t.contexts={trace:this._span.getTraceContext(),...t.contexts};var n=this._span.transaction&&this._span.transaction.name;n&&(t.tags={transaction:n,...t.tags})}return this._applyFingerprint(t),t.breadcrumbs=[...t.breadcrumbs||[],...this._breadcrumbs],t.breadcrumbs=t.breadcrumbs.length>0?t.breadcrumbs:void 0,t.sdkProcessingMetadata={...t.sdkProcessingMetadata,...this._sdkProcessingMetadata},this._notifyEventProcessors([...h(),...this._eventProcessors],t,e)}setSDKProcessingMetadata(t){return this._sdkProcessingMetadata={...this._sdkProcessingMetadata,...t},this}_notifyEventProcessors(t,e,n,i=0){return new a.T2(((a,o)=>{var c=t[i];if(null===e||"function"!==typeof c)a(e);else{var u=c({...e},n);("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&c.id&&null===u&&s.vF.log(`Event processor "${c.id}" dropped event`),(0,r.Qg)(u)?u.then((e=>this._notifyEventProcessors(t,e,n,i+1).then(a))).then(null,o):this._notifyEventProcessors(t,u,n,i+1).then(a).then(null,o)}}))}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach((t=>{t(this)})),this._notifyingListeners=!1)}_applyFingerprint(t){t.fingerprint=t.fingerprint?(0,o.k9)(t.fingerprint):[],this._fingerprint&&(t.fingerprint=t.fingerprint.concat(this._fingerprint)),t.fingerprint&&!t.fingerprint.length&&delete t.fingerprint}}function h(){return(0,c.B)("globalEventProcessors",(()=>[]))}function p(t){h().push(t)}},24071:(t,e,n)=>{"use strict";n.d(e,{T:()=>oe});var r="7.14.2",i=n(17914),a=n(26566),s=n(97867),o=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/];class c{static __initStatic(){this.id="InboundFilters"}__init(){this.name=c.id}constructor(t={}){this._options=t,c.prototype.__init.call(this)}setupOnce(t,e){var n=t=>{var n=e();if(n){var r=n.getIntegration(c);if(r){var l=n.getClient(),h=l?l.getOptions():{},p=function(t={},e={}){return{allowUrls:[...t.allowUrls||[],...e.allowUrls||[]],denyUrls:[...t.denyUrls||[],...e.denyUrls||[]],ignoreErrors:[...t.ignoreErrors||[],...e.ignoreErrors||[],...o],ignoreInternal:void 0===t.ignoreInternal||t.ignoreInternal}}(r._options,h);return function(t,e){if(e.ignoreInternal&&function(t){try{return"SentryError"===t.exception.values[0].type}catch(e){}return!1}(t))return("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.vF.warn(`Event dropped due to being internal Sentry Error.\nEvent: ${(0,a.$X)(t)}`),!0;if(function(t,e){if(!e||!e.length)return!1;return function(t){if(t.message)return[t.message];if(t.exception)try{const{type:e="",value:n=""}=t.exception.values&&t.exception.values[0]||{};return[`${n}`,`${e}: ${n}`]}catch(e){return("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.vF.error(`Cannot extract message for event ${(0,a.$X)(t)}`),[]}return[]}(t).some((t=>e.some((e=>(0,s._c)(t,e)))))}(t,e.ignoreErrors))return("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.vF.warn(`Event dropped due to being matched by \`ignoreErrors\` option.\nEvent: ${(0,a.$X)(t)}`),!0;if(function(t,e){if(!e||!e.length)return!1;var n=u(t);return!!n&&e.some((t=>(0,s._c)(n,t)))}(t,e.denyUrls))return("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.vF.warn(`Event dropped due to being matched by \`denyUrls\` option.\nEvent: ${(0,a.$X)(t)}.\nUrl: ${u(t)}`),!0;if(!function(t,e){if(!e||!e.length)return!0;var n=u(t);return!n||e.some((t=>(0,s._c)(n,t)))}(t,e.allowUrls))return("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.vF.warn(`Event dropped due to not being matched by \`allowUrls\` option.\nEvent: ${(0,a.$X)(t)}.\nUrl: ${u(t)}`),!0;return!1}(t,p)?null:t}}return t};n.id=this.name,t(n)}}function u(t){try{let n;try{n=t.exception.values[0].stacktrace.frames}catch(e){}return n?function(t=[]){for(let n=t.length-1;n>=0;n--){var e=t[n];if(e&&"<anonymous>"!==e.filename&&"[native code]"!==e.filename)return e.filename||null}return null}(n):null}catch(n){return("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.vF.error(`Cannot extract url for event ${(0,a.$X)(t)}`),null}}c.__initStatic();var l=n(15873);let h;class p{constructor(){p.prototype.__init.call(this)}static __initStatic(){this.id="FunctionToString"}__init(){this.name=p.id}setupOnce(){h=Function.prototype.toString,Function.prototype.toString=function(...t){var e=(0,l.sp)(this)||this;return h.apply(e,t)}}}p.__initStatic();var d=n(79782),_=n(51361),f=[];function v(t){var e=t.defaultIntegrations||[],n=t.integrations;let r;e.forEach((t=>{t.isDefaultInstance=!0})),r=Array.isArray(n)?[...e,...n]:"function"===typeof n?(0,a.k9)(n(e)):e;var i=function(t){var e={};return t.forEach((t=>{const{name:n}=t;var r=e[n];r&&!r.isDefaultInstance&&t.isDefaultInstance||(e[n]=t)})),Object.values(e)}(r),s=i.findIndex((t=>"Debug"===t.name));if(-1!==s){const[t]=i.splice(s,1);i.push(t)}return i}var m=n(67373),g=n(18935),y=n(93710),E=n(79139),S=n(52002);class b extends Error{constructor(t,e="warn"){super(t),this.message=t,this.name=new.target.prototype.constructor.name,Object.setPrototypeOf(this,new.target.prototype),this.logLevel=e}}var T=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+))?@)([\w.-]+)(?::(\d+))?\/(.+)/;function R(t,e=!1){const{host:n,path:r,pass:i,port:a,projectId:s,protocol:o,publicKey:c}=t;return`${o}://${c}${e&&i?`:${i}`:""}@${n}${a?`:${a}`:""}/${r?`${r}/`:r}${s}`}function x(t){return{protocol:t.protocol,publicKey:t.publicKey||"",pass:t.pass||"",host:t.host,port:t.port||"",path:t.path||"",projectId:t.projectId}}function w(t){var e="string"===typeof t?function(t){var e=T.exec(t);if(!e)throw new b(`Invalid Sentry Dsn: ${t}`);const[n,r,i="",a,s="",o]=e.slice(1);let c="",u=o;var l=u.split("/");if(l.length>1&&(c=l.slice(0,-1).join("/"),u=l.pop()),u){var h=u.match(/^\d+/);h&&(u=h[0])}return x({host:a,pass:i,path:c,projectId:u,port:s,protocol:n,publicKey:r})}(t):x(t);return function(t){if("undefined"!==typeof __SENTRY_DEBUG__&&!__SENTRY_DEBUG__)return;const{port:e,projectId:n,protocol:r}=t;if(["protocol","publicKey","host","projectId"].forEach((e=>{if(!t[e])throw new b(`Invalid Sentry Dsn: ${e} missing`)})),!n.match(/^\d+$/))throw new b(`Invalid Sentry Dsn: Invalid projectId ${n}`);if(!function(t){return"http"===t||"https"===t}(r))throw new b(`Invalid Sentry Dsn: Invalid protocol ${r}`);if(e&&isNaN(parseInt(e,10)))throw new b(`Invalid Sentry Dsn: Invalid port ${e}`)}(e),e}var D=n(79850),N=n(45684);function k(t,e=1/0,n=1/0){try{return U("",t,e,n)}catch(r){return{ERROR:`**non-serializable** (${r})`}}}function B(t,e=3,n=102400){var r,i=k(t,e);return r=i,function(t){return~-encodeURI(t).split(/%..|./).length}(JSON.stringify(r))>n?B(t,e-1,n):i}function U(t,e,r=1/0,i=1/0,a=function(){var t="function"===typeof WeakSet,e=t?new WeakSet:[];return[function(n){if(t)return!!e.has(n)||(e.add(n),!1);for(let t=0;t<e.length;t++)if(e[t]===n)return!0;return e.push(n),!1},function(n){if(t)e.delete(n);else for(let t=0;t<e.length;t++)if(e[t]===n){e.splice(t,1);break}}]}()){const[s,o]=a;if(null===e||["number","boolean","string"].includes(typeof e)&&!(0,D.yr)(e))return e;var c=function(t,e){try{return"domain"===t&&e&&"object"===typeof e&&e._events?"[Domain]":"domainEmitter"===t?"[DomainEmitter]":"undefined"!==typeof n.g&&e===n.g?"[Global]":"undefined"!==typeof window&&e===window?"[Window]":"undefined"!==typeof document&&e===document?"[Document]":(0,D.mE)(e)?"[SyntheticEvent]":"number"===typeof e&&e!==e?"[NaN]":void 0===e?"[undefined]":"function"===typeof e?`[Function: ${(0,g.qQ)(e)}]`:"symbol"===typeof e?`[${String(e)}]`:"bigint"===typeof e?`[BigInt: ${String(e)}]`:`[object ${Object.getPrototypeOf(e).constructor.name}]`}catch(r){return`**non-serializable** (${r})`}}(t,e);if(!c.startsWith("[object "))return c;if(e.__sentry_skip_normalization__)return e;if(0===r)return c.replace("object ","");if(s(e))return"[Circular ~]";var u=e;if(u&&"function"===typeof u.toJSON)try{return U("",u.toJSON(),r-1,i,a)}catch(v){}var h=Array.isArray(e)?[]:{};let p=0;var d=(0,l.W4)(e);for(var _ in d)if(Object.prototype.hasOwnProperty.call(d,_)){if(p>=i){h[_]="[MaxProperties ~]";break}var f=d[_];h[_]=U(_,f,r-1,i,a),p+=1}return o(e),h}function O(t,e=[]){return[t,e]}function C(t,e){const[n,r]=t;return[n,[...r,e]]}function G(t,e){t[1].forEach((t=>{var n=t[0].type;e(t,n)}))}function $(t,e){return(e||new TextEncoder).encode(t)}function Y(t,e){const[n,r]=t;let i=JSON.stringify(n);function a(t){"string"===typeof i?i="string"===typeof t?i+t:[$(i,e),t]:i.push("string"===typeof t?$(t,e):t)}for(var s of r){const[t,e]=s;if(a(`\n${JSON.stringify(t)}\n`),"string"===typeof e||e instanceof Uint8Array)a(e);else{let t;try{t=JSON.stringify(e)}catch(o){t=JSON.stringify(k(e))}a(t)}}return"string"===typeof i?i:function(t){var e=t.reduce(((t,e)=>t+e.length),0),n=new Uint8Array(e);let r=0;for(var i of t)n.set(i,r),r+=i.length;return n}(i)}function I(t,e){var n="string"===typeof t.data?$(t.data,e):t.data;return[(0,l.Ce)({type:"attachment",length:n.length,filename:t.filename,content_type:t.contentType,attachment_type:t.attachmentType}),n]}var F={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default"};function j(t){return F[t]}var A=n(16559),P="7";function L(t){var e=t.protocol?`${t.protocol}:`:"",n=t.port?`:${t.port}`:"";return`${e}//${t.host}${n}${t.path?`/${t.path}`:""}/api/`}function M(t,e={}){var n="string"===typeof e?e:e.tunnel,r="string"!==typeof e&&e._metadata?e._metadata.sdk:void 0;return n||`${function(t){return`${L(t)}${t.projectId}/envelope/`}(t)}?${function(t,e){return(0,l.u4)({sentry_key:t.publicKey,sentry_version:P,...e&&{sentry_client:`${e.name}/${e.version}`}})}(t,r)}`}function H(t){if(!t||!t.sdk)return;const{name:e,version:n}=t.sdk;return{name:e,version:n}}function q(t,e,n,r){var i=H(n),a=t.type||"event";!function(t,e){e&&(t.sdk=t.sdk||{},t.sdk.name=t.sdk.name||e.name,t.sdk.version=t.sdk.version||e.version,t.sdk.integrations=[...t.sdk.integrations||[],...e.integrations||[]],t.sdk.packages=[...t.sdk.packages||[],...e.packages||[]])}(t,n&&n.sdk);var s=function(t,e,n,r){var i=t.sdkProcessingMetadata&&t.sdkProcessingMetadata.dynamicSamplingContext;return{event_id:t.event_id,sent_at:(new Date).toISOString(),...e&&{sdk:e},...!!n&&{dsn:R(r)},..."transaction"===t.type&&i&&{trace:(0,l.Ce)({...i})}}}(t,i,r,e);return delete t.sdkProcessingMetadata,O(s,[[{type:a},t]])}var V="Not capturing exception because it's already been captured.";class z{__init(){this._integrations={}}__init2(){this._integrationsInitialized=!1}__init3(){this._numProcessing=0}__init4(){this._outcomes={}}constructor(t){if(z.prototype.__init.call(this),z.prototype.__init2.call(this),z.prototype.__init3.call(this),z.prototype.__init4.call(this),this._options=t,t.dsn){this._dsn=w(t.dsn);var e=M(this._dsn,t);this._transport=t.transport({recordDroppedEvent:this.recordDroppedEvent.bind(this),...t.transportOptions,url:e})}else("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.vF.warn("No DSN provided, client will not do anything.")}captureException(t,e,n){if((0,a.GR)(t))return void(("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.vF.log(V));let r=e&&e.event_id;return this._process(this.eventFromException(t,e).then((t=>this._captureEvent(t,e,n))).then((t=>{r=t}))),r}captureMessage(t,e,n,r){let i=n&&n.event_id;var a=(0,D.sO)(t)?this.eventFromMessage(String(t),e,n):this.eventFromException(t,n);return this._process(a.then((t=>this._captureEvent(t,n,r))).then((t=>{i=t}))),i}captureEvent(t,e,n){if(e&&e.originalException&&(0,a.GR)(e.originalException))return void(("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.vF.log(V));let r=e&&e.event_id;return this._process(this._captureEvent(t,e,n).then((t=>{r=t}))),r}captureSession(t){this._isEnabled()?"string"!==typeof t.release?("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.vF.warn("Discarded session because of missing or non-string release"):(this.sendSession(t),(0,S.qO)(t,{init:!1})):("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.vF.warn("SDK not enabled, will not capture session.")}getDsn(){return this._dsn}getOptions(){return this._options}getTransport(){return this._transport}flush(t){var e=this._transport;return e?this._isClientDoneProcessing(t).then((n=>e.flush(t).then((t=>n&&t)))):(0,N.XW)(!0)}close(t){return this.flush(t).then((t=>(this.getOptions().enabled=!1,t)))}setupIntegrations(){this._isEnabled()&&!this._integrationsInitialized&&(this._integrations=function(t){var e={};return t.forEach((t=>{e[t.name]=t,-1===f.indexOf(t.name)&&(t.setupOnce(d.l,_.BF),f.push(t.name),("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.vF.log(`Integration installed: ${t.name}`))})),e}(this._options.integrations),this._integrationsInitialized=!0)}getIntegrationById(t){return this._integrations[t]}getIntegration(t){try{return this._integrations[t.id]||null}catch(e){return("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.vF.warn(`Cannot retrieve integration ${t.id} from the current Client`),null}}sendEvent(t,e={}){if(this._dsn){let r=q(t,this._dsn,this._options._metadata,this._options.tunnel);for(var n of e.attachments||[])r=C(r,I(n,this._options.transportOptions&&this._options.transportOptions.textEncoder));this._sendEnvelope(r)}}sendSession(t){if(this._dsn){var e=function(t,e,n,r){var i=H(n);return O({sent_at:(new Date).toISOString(),...i&&{sdk:i},...!!r&&{dsn:R(e)}},["aggregates"in t?[{type:"sessions"},t]:[{type:"session"},t]])}(t,this._dsn,this._options._metadata,this._options.tunnel);this._sendEnvelope(e)}}recordDroppedEvent(t,e){if(this._options.sendClientReports){var n=`${t}:${e}`;("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.vF.log(`Adding outcome: "${n}"`),this._outcomes[n]=this._outcomes[n]+1||1}}_updateSessionFromEvent(t,e){let n=!1,r=!1;var i=e.exception&&e.exception.values;if(i)for(var a of(r=!0,i)){var s=a.mechanism;if(s&&!1===s.handled){n=!0;break}}var o="ok"===t.status;(o&&0===t.errors||o&&n)&&((0,S.qO)(t,{...n&&{status:"crashed"},errors:t.errors||Number(r||n)}),this.captureSession(t))}_isClientDoneProcessing(t){return new N.T2((e=>{let n=0;var r=setInterval((()=>{0==this._numProcessing?(clearInterval(r),e(!0)):(n+=1,t&&n>=t&&(clearInterval(r),e(!1)))}),1)}))}_isEnabled(){return!1!==this.getOptions().enabled&&void 0!==this._dsn}_prepareEvent(t,e,n){const{normalizeDepth:r=3,normalizeMaxBreadth:i=1e3}=this.getOptions();var s={...t,event_id:t.event_id||e.event_id||(0,a.eJ)(),timestamp:t.timestamp||(0,A.lu)()};this._applyClientOptions(s),this._applyIntegrationsMetadata(s);let o=n;e.captureContext&&(o=d.H.clone(o).update(e.captureContext));let c=(0,N.XW)(s);if(o){var u=[...e.attachments||[],...o.getAttachments()];u.length&&(e.attachments=u),c=o.applyToEvent(s,e)}return c.then((t=>"number"===typeof r&&r>0?this._normalizeEvent(t,r,i):t))}_normalizeEvent(t,e,n){if(!t)return null;var r={...t,...t.breadcrumbs&&{breadcrumbs:t.breadcrumbs.map((t=>({...t,...t.data&&{data:k(t.data,e,n)}})))},...t.user&&{user:k(t.user,e,n)},...t.contexts&&{contexts:k(t.contexts,e,n)},...t.extra&&{extra:k(t.extra,e,n)}};return t.contexts&&t.contexts.trace&&r.contexts&&(r.contexts.trace=t.contexts.trace,t.contexts.trace.data&&(r.contexts.trace.data=k(t.contexts.trace.data,e,n))),t.spans&&(r.spans=t.spans.map((t=>(t.data&&(t.data=k(t.data,e,n)),t)))),r}_applyClientOptions(t){var e=this.getOptions();const{environment:n,release:r,dist:i,maxValueLength:a=250}=e;"environment"in t||(t.environment="environment"in e?n:"production"),void 0===t.release&&void 0!==r&&(t.release=r),void 0===t.dist&&void 0!==i&&(t.dist=i),t.message&&(t.message=(0,s.xv)(t.message,a));var o=t.exception&&t.exception.values&&t.exception.values[0];o&&o.value&&(o.value=(0,s.xv)(o.value,a));var c=t.request;c&&c.url&&(c.url=(0,s.xv)(c.url,a))}_applyIntegrationsMetadata(t){var e=Object.keys(this._integrations);e.length>0&&(t.sdk=t.sdk||{},t.sdk.integrations=[...t.sdk.integrations||[],...e])}_captureEvent(t,e={},n){return this._processEvent(t,e,n).then((t=>t.event_id),(t=>{if("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__){var e=t;"log"===e.logLevel?i.vF.log(e.message):i.vF.warn(e)}}))}_processEvent(t,e,n){const{beforeSend:r,sampleRate:i}=this.getOptions();if(!this._isEnabled())return(0,N.xg)(new b("SDK not enabled, will not capture event.","log"));var a="transaction"===t.type;return!a&&"number"===typeof i&&Math.random()>i?(this.recordDroppedEvent("sample_rate","error"),(0,N.xg)(new b(`Discarding event because it's not included in the random sample (sampling rate = ${i})`,"log"))):this._prepareEvent(t,e,n).then((n=>{if(null===n)throw this.recordDroppedEvent("event_processor",t.type||"error"),new b("An event processor returned null, will not send event.","log");return e.data&&!0===e.data.__sentry__||a||!r?n:function(t){var e="`beforeSend` method has to return `null` or a valid event.";if((0,D.Qg)(t))return t.then((t=>{if(!(0,D.Qd)(t)&&null!==t)throw new b(e);return t}),(t=>{throw new b(`beforeSend rejected with ${t}`)}));if(!(0,D.Qd)(t)&&null!==t)throw new b(e);return t}(r(n,e))})).then((r=>{if(null===r)throw this.recordDroppedEvent("before_send",t.type||"error"),new b("`beforeSend` returned `null`, will not send event.","log");var i=n&&n.getSession();!a&&i&&this._updateSessionFromEvent(i,r);var s=r.transaction_info;if(a&&s&&r.transaction!==t.transaction){var o="custom";r.transaction_info={...s,source:o,changes:[...s.changes,{source:o,timestamp:r.timestamp,propagations:s.propagations}]}}return this.sendEvent(r,e),r})).then(null,(t=>{if(t instanceof b)throw t;throw this.captureException(t,{data:{__sentry__:!0},originalException:t}),new b(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: ${t}`)}))}_process(t){this._numProcessing+=1,t.then((t=>(this._numProcessing-=1,t)),(t=>(this._numProcessing-=1,t)))}_sendEnvelope(t){this._transport&&this._dsn?this._transport.send(t).then(null,(t=>{("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.vF.error("Error while sending event:",t)})):("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.vF.error("Transport disabled")}_clearOutcomes(){var t=this._outcomes;return this._outcomes={},Object.keys(t).map((e=>{const[n,r]=e.split(":");return{reason:n,category:r,quantity:t[e]}}))}}function W(t,e){var n=X(t,e),r={type:e&&e.name,value:Q(e)};return n.length&&(r.stacktrace={frames:n}),void 0===r.type&&""===r.value&&(r.value="Unrecoverable error caught"),r}function J(t,e){return{exception:{values:[W(t,e)]}}}function X(t,e){var n=e.stacktrace||e.stack||"",r=function(t){if(t){if("number"===typeof t.framesToPop)return t.framesToPop;if(K.test(t.message))return 1}return 0}(e);try{return t(n,r)}catch(i){}return[]}var K=/Minified React error #\d+;/i;function Q(t){var e=t&&t.message;return e?e.error&&"string"===typeof e.error.message?e.error.message:e:"No error message"}function Z(t,e,n,r,i){let s;if((0,D.T2)(e)&&e.error)return J(t,e.error);if((0,D.BD)(e)||(0,D.W6)(e)){var o=e;if("stack"in e)s=J(t,e);else{var c=o.name||((0,D.BD)(o)?"DOMError":"DOMException"),u=o.message?`${c}: ${o.message}`:c;s=tt(t,u,n,r),(0,a.gO)(s,u)}return"code"in o&&(s.tags={...s.tags,"DOMException.code":`${o.code}`}),s}return(0,D.bJ)(e)?J(t,e):(0,D.Qd)(e)||(0,D.xH)(e)?(s=function(t,e,n,r){var i=(0,_.BF)().getClient(),a=i&&i.getOptions().normalizeDepth,s={exception:{values:[{type:(0,D.xH)(e)?e.constructor.name:r?"UnhandledRejection":"Error",value:`Non-Error ${r?"promise rejection":"exception"} captured with keys: ${(0,l.HF)(e)}`}]},extra:{__serialized__:B(e,a)}};if(n){var o=X(t,n);o.length&&(s.exception.values[0].stacktrace={frames:o})}return s}(t,e,n,i),(0,a.M6)(s,{synthetic:!0}),s):(s=tt(t,e,n,r),(0,a.gO)(s,`${e}`,void 0),(0,a.M6)(s,{synthetic:!0}),s)}function tt(t,e,n,r){var i={message:e};if(r&&n){var a=X(t,n);a.length&&(i.exception={values:[{value:e,stacktrace:{frames:a}}]})}return i}var et=n(30736),nt=["fatal","error","warning","log","info","debug"];function rt(t){return"warn"===t?"warning":nt.includes(t)?t:"log"}function it(t){if(!t)return{};var e=t.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!e)return{};var n=e[6]||"",r=e[8]||"";return{host:e[4],path:e[5],protocol:e[2],relative:e[5]+n+r}}var at="Breadcrumbs";class st{static __initStatic(){this.id=at}__init(){this.name=st.id}constructor(t){st.prototype.__init.call(this),this.options={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...t}}setupOnce(){this.options.console&&(0,E.O)("console",ot),this.options.dom&&(0,E.O)("dom",function(t){function e(e){let n,r="object"===typeof t?t.serializeAttribute:void 0;"string"===typeof r&&(r=[r]);try{n=e.event.target?(0,et.Hd)(e.event.target,r):(0,et.Hd)(e.event,r)}catch(i){n="<unknown>"}0!==n.length&&(0,_.BF)().addBreadcrumb({category:`ui.${e.name}`,message:n},{event:e.event,name:e.name,global:e.global})}return e}(this.options.dom)),this.options.xhr&&(0,E.O)("xhr",ct),this.options.fetch&&(0,E.O)("fetch",ut),this.options.history&&(0,E.O)("history",lt)}}function ot(t){var e={category:"console",data:{arguments:t.args,logger:"console"},level:rt(t.level),message:(0,s.gt)(t.args," ")};if("assert"===t.level){if(!1!==t.args[0])return;e.message=`Assertion failed: ${(0,s.gt)(t.args.slice(1)," ")||"console.assert"}`,e.data.arguments=t.args.slice(1)}(0,_.BF)().addBreadcrumb(e,{input:t.args,level:t.level})}function ct(t){if(t.endTimestamp){if(t.xhr.__sentry_own_request__)return;const{method:e,url:n,status_code:r,body:i}=t.xhr.__sentry_xhr__||{};(0,_.BF)().addBreadcrumb({category:"xhr",data:{method:e,url:n,status_code:r},type:"http"},{xhr:t.xhr,input:i})}else;}function ut(t){t.endTimestamp&&(t.fetchData.url.match(/sentry_key/)&&"POST"===t.fetchData.method||(t.error?(0,_.BF)().addBreadcrumb({category:"fetch",data:t.fetchData,level:"error",type:"http"},{data:t.error,input:t.args}):(0,_.BF)().addBreadcrumb({category:"fetch",data:{...t.fetchData,status_code:t.response.status},type:"http"},{input:t.args,response:t.response})))}function lt(t){var e=(0,m.V)();let n=t.from,r=t.to;var i=it(e.location.href);let a=it(n);var s=it(r);a.path||(a=i),i.protocol===s.protocol&&i.host===s.host&&(r=s.relative),i.protocol===a.protocol&&i.host===a.host&&(n=a.relative),(0,_.BF)().addBreadcrumb({category:"navigation",data:{from:n,to:r}})}st.__initStatic();var ht=(0,m.V)();class pt extends z{constructor(t){t._metadata=t._metadata||{},t._metadata.sdk=t._metadata.sdk||{name:"sentry.javascript.browser",packages:[{name:"npm:@sentry/browser",version:r}],version:r},super(t),t.sendClientReports&&ht.document&&ht.document.addEventListener("visibilitychange",(()=>{"hidden"===ht.document.visibilityState&&this._flushOutcomes()}))}eventFromException(t,e){return function(t,e,n,r){var i=Z(t,e,n&&n.syntheticException||void 0,r);return(0,a.M6)(i),i.level="error",n&&n.event_id&&(i.event_id=n.event_id),(0,N.XW)(i)}(this._options.stackParser,t,e,this._options.attachStacktrace)}eventFromMessage(t,e="info",n){return function(t,e,n="info",r,i){var a=tt(t,e,r&&r.syntheticException||void 0,i);return a.level=n,r&&r.event_id&&(a.event_id=r.event_id),(0,N.XW)(a)}(this._options.stackParser,t,e,n,this._options.attachStacktrace)}sendEvent(t,e){var n=this.getIntegrationById(at);n&&n.options&&n.options.sentry&&(0,_.BF)().addBreadcrumb({category:"sentry."+("transaction"===t.type?"transaction":"event"),event_id:t.event_id,level:t.level,message:(0,a.$X)(t)},{event:t}),super.sendEvent(t,e)}_prepareEvent(t,e,n){return t.platform=t.platform||"javascript",super._prepareEvent(t,e,n)}_flushOutcomes(){var t=this._clearOutcomes();if(0!==t.length)if(this._dsn){("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.vF.log("Sending outcomes:",t);var e,n,r,a=M(this._dsn,this._options),s=(e=t,O((n=this._options.tunnel&&R(this._dsn))?{dsn:n}:{},[[{type:"client_report"},{timestamp:r||(0,A.lu)(),discarded_events:e}]]));try{var o=(0,m.V)();if("[object Navigator]"===Object.prototype.toString.call(o&&o.navigator)&&"function"===typeof o.navigator.sendBeacon&&!this._options.transportOptions)o.navigator.sendBeacon.bind(o.navigator)(a,Y(s));else this._sendEnvelope(s)}catch(c){("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.vF.error(c)}}else("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.vF.log("No dsn provided, will not send outcomes");else("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.vF.log("No outcomes to send")}}var dt="?";function _t(t,e,n,r){var i={filename:t,function:e,in_app:!0};return void 0!==n&&(i.lineno=n),void 0!==r&&(i.colno=r),i}var ft=/^\s*at (?:(.*\).*?|.*?) ?\((?:address at )?)?((?:file|https?|blob|chrome-extension|address|native|eval|webpack|<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,vt=/\((\S*)(?::(\d+))(?::(\d+))\)/,mt=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension|safari-extension|safari-web-extension|capacitor)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,gt=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,yt=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,Et=[[30,t=>{var e=ft.exec(t);if(e){if(e[2]&&0===e[2].indexOf("eval")){var n=vt.exec(e[2]);n&&(e[2]=n[1],e[3]=n[2],e[4]=n[3])}const[t,r]=bt(e[1]||dt,e[2]);return _t(r,t,e[3]?+e[3]:void 0,e[4]?+e[4]:void 0)}}],[50,t=>{var e=mt.exec(t);if(e){if(e[3]&&e[3].indexOf(" > eval")>-1){var n=gt.exec(e[3]);n&&(e[1]=e[1]||"eval",e[3]=n[1],e[4]=n[2],e[5]="")}let t=e[3],r=e[1]||dt;return[r,t]=bt(r,t),_t(t,r,e[4]?+e[4]:void 0,e[5]?+e[5]:void 0)}}],[40,t=>{var e=yt.exec(t);return e?_t(e[2],e[1]||dt,+e[3],e[4]?+e[4]:void 0):void 0}]],St=(0,g.gd)(...Et),bt=(t,e)=>{var n=-1!==t.indexOf("safari-extension"),r=-1!==t.indexOf("safari-web-extension");return n||r?[-1!==t.indexOf("@")?t.split("@")[0]:dt,n?`safari-extension:${e}`:`safari-web-extension:${e}`]:[t,e]},Tt=n(90445);let Rt=0;function xt(){return Rt>0}function wt(t,e={},n){if("function"!==typeof t)return t;try{var r=t.__sentry_wrapped__;if(r)return r;if((0,l.sp)(t))return t}catch(o){return t}var i=function(){var r=Array.prototype.slice.call(arguments);try{n&&"function"===typeof n&&n.apply(this,arguments);var i=r.map((t=>wt(t,e)));return t.apply(this,i)}catch(s){throw Rt+=1,setTimeout((()=>{Rt-=1})),(0,Tt.v4)((t=>{t.addEventProcessor((t=>(e.mechanism&&((0,a.gO)(t,void 0,void 0),(0,a.M6)(t,e.mechanism)),t.extra={...t.extra,arguments:r},t))),(0,Tt.Cp)(s)})),s}};try{for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&(i[s]=t[s])}catch(c){}(0,l.pO)(i,t),(0,l.my)(t,"__sentry_wrapped__",i);try{Object.getOwnPropertyDescriptor(i,"name").configurable&&Object.defineProperty(i,"name",{get:()=>t.name})}catch(c){}return i}var Dt=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"];class Nt{static __initStatic(){this.id="TryCatch"}__init(){this.name=Nt.id}constructor(t){Nt.prototype.__init.call(this),this._options={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...t}}setupOnce(){var t=(0,m.V)();this._options.setTimeout&&(0,l.GS)(t,"setTimeout",kt),this._options.setInterval&&(0,l.GS)(t,"setInterval",kt),this._options.requestAnimationFrame&&(0,l.GS)(t,"requestAnimationFrame",Bt),this._options.XMLHttpRequest&&"XMLHttpRequest"in t&&(0,l.GS)(XMLHttpRequest.prototype,"send",Ut);var e=this._options.eventTarget;e&&(Array.isArray(e)?e:Dt).forEach(Ot)}}function kt(t){return function(...e){var n=e[0];return e[0]=wt(n,{mechanism:{data:{function:(0,g.qQ)(t)},handled:!0,type:"instrument"}}),t.apply(this,e)}}function Bt(t){return function(e){return t.apply(this,[wt(e,{mechanism:{data:{function:"requestAnimationFrame",handler:(0,g.qQ)(t)},handled:!0,type:"instrument"}})])}}function Ut(t){return function(...e){var n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach((t=>{t in n&&"function"===typeof n[t]&&(0,l.GS)(n,t,(function(e){var n={mechanism:{data:{function:t,handler:(0,g.qQ)(e)},handled:!0,type:"instrument"}},r=(0,l.sp)(e);return r&&(n.mechanism.data.handler=(0,g.qQ)(r)),wt(e,n)}))})),t.apply(this,e)}}function Ot(t){var e=(0,m.V)(),n=e[t]&&e[t].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&((0,l.GS)(n,"addEventListener",(function(e){return function(n,r,i){try{"function"===typeof r.handleEvent&&(r.handleEvent=wt(r.handleEvent,{mechanism:{data:{function:"handleEvent",handler:(0,g.qQ)(r),target:t},handled:!0,type:"instrument"}}))}catch(a){}return e.apply(this,[n,wt(r,{mechanism:{data:{function:"addEventListener",handler:(0,g.qQ)(r),target:t},handled:!0,type:"instrument"}}),i])}})),(0,l.GS)(n,"removeEventListener",(function(t){return function(e,n,r){var i=n;try{var a=i&&i.__sentry_wrapped__;a&&t.call(this,e,a,r)}catch(s){}return t.call(this,e,i,r)}})))}Nt.__initStatic();class Ct{static __initStatic(){this.id="GlobalHandlers"}__init(){this.name=Ct.id}__init2(){this._installFunc={onerror:Gt,onunhandledrejection:$t}}constructor(t){Ct.prototype.__init.call(this),Ct.prototype.__init2.call(this),this._options={onerror:!0,onunhandledrejection:!0,...t}}setupOnce(){Error.stackTraceLimit=50;var t,e=this._options;for(var n in e){var r=this._installFunc[n];r&&e[n]&&(t=n,("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.vF.log(`Global Handler attached: ${t}`),r(),this._installFunc[n]=void 0)}}}function Gt(){(0,E.O)("error",(t=>{const[e,n,r]=Ft();if(!e.getIntegration(Ct))return;const{msg:i,url:a,line:s,column:o,error:c}=t;if(!(xt()||c&&c.__sentry_own_request__)){var u=void 0===c&&(0,D.Kg)(i)?function(t,e,n,r){var i=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i;let a=(0,D.T2)(t)?t.message:t,s="Error";var o=a.match(i);o&&(s=o[1],a=o[2]);var c={exception:{values:[{type:s,value:a}]}};return Yt(c,e,n,r)}(i,a,s,o):Yt(Z(n,c||i,void 0,r,!1),a,s,o);u.level="error",It(e,c,u,"onerror")}}))}function $t(){(0,E.O)("unhandledrejection",(t=>{const[e,n,r]=Ft();if(!e.getIntegration(Ct))return;let i=t;try{"reason"in t?i=t.reason:"detail"in t&&"reason"in t.detail&&(i=t.detail.reason)}catch(s){}if(xt()||i&&i.__sentry_own_request__)return!0;var a=(0,D.sO)(i)?{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(i)}`}]}}:Z(n,i,void 0,r,!0);a.level="error",It(e,i,a,"onunhandledrejection")}))}function Yt(t,e,n,r){var i=t.exception=t.exception||{},a=i.values=i.values||[],s=a[0]=a[0]||{},o=s.stacktrace=s.stacktrace||{},c=o.frames=o.frames||[],u=isNaN(parseInt(r,10))?void 0:r,l=isNaN(parseInt(n,10))?void 0:n,h=(0,D.Kg)(e)&&e.length>0?e:(0,et.$N)();return 0===c.length&&c.push({colno:u,filename:h,function:"?",in_app:!0,lineno:l}),t}function It(t,e,n,r){(0,a.M6)(n,{handled:!1,type:r}),t.captureEvent(n,{originalException:e})}function Ft(){var t=(0,_.BF)(),e=t.getClient(),n=e&&e.getOptions()||{stackParser:()=>[],attachStacktrace:!1};return[t,n.stackParser,n.attachStacktrace]}Ct.__initStatic();class jt{static __initStatic(){this.id="LinkedErrors"}__init(){this.name=jt.id}constructor(t={}){jt.prototype.__init.call(this),this._key=t.key||"cause",this._limit=t.limit||5}setupOnce(){var t=(0,_.BF)().getClient();t&&(0,d.l)(((e,n)=>{var r=(0,_.BF)().getIntegration(jt);return r?function(t,e,n,r,i){if(!r.exception||!r.exception.values||!i||!(0,D.tH)(i.originalException,Error))return r;var a=At(t,n,i.originalException,e);return r.exception.values=[...a,...r.exception.values],r}(t.getOptions().stackParser,r._key,r._limit,e,n):e}))}}function At(t,e,n,r,i=[]){if(!(0,D.tH)(n[r],Error)||i.length+1>=e)return i;var a=W(t,n[r]);return At(t,e,n[r],r,[a,...i])}jt.__initStatic();class Pt{constructor(){Pt.prototype.__init.call(this)}static __initStatic(){this.id="Dedupe"}__init(){this.name=Pt.id}setupOnce(t,e){var n=t=>{var n=e().getIntegration(Pt);if(n){try{if(function(t,e){if(!e)return!1;if(function(t,e){var n=t.message,r=e.message;if(!n&&!r)return!1;if(n&&!r||!n&&r)return!1;if(n!==r)return!1;if(!Mt(t,e))return!1;if(!Lt(t,e))return!1;return!0}(t,e))return!0;if(function(t,e){var n=Ht(e),r=Ht(t);if(!n||!r)return!1;if(n.type!==r.type||n.value!==r.value)return!1;if(!Mt(t,e))return!1;if(!Lt(t,e))return!1;return!0}(t,e))return!0;return!1}(t,n._previousEvent))return("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.vF.warn("Event dropped due to being a duplicate of previously captured event."),null}catch(r){return n._previousEvent=t}return n._previousEvent=t}return t};n.id=this.name,t(n)}}function Lt(t,e){let n=qt(t),r=qt(e);if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;if(r.length!==n.length)return!1;for(let s=0;s<r.length;s++){var i=r[s],a=n[s];if(i.filename!==a.filename||i.lineno!==a.lineno||i.colno!==a.colno||i.function!==a.function)return!1}return!0}function Mt(t,e){let n=t.fingerprint,r=e.fingerprint;if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;try{return!(n.join("")!==r.join(""))}catch(i){return!1}}function Ht(t){return t.exception&&t.exception.values&&t.exception.values[0]}function qt(t){var e=t.exception;if(e)try{return e.values[0].stacktrace.frames}catch(n){return}}Pt.__initStatic();var Vt=(0,m.V)();class zt{constructor(){zt.prototype.__init.call(this)}static __initStatic(){this.id="HttpContext"}__init(){this.name=zt.id}setupOnce(){(0,d.l)((t=>{if((0,_.BF)().getIntegration(zt)){if(!Vt.navigator&&!Vt.location&&!Vt.document)return t;var e=t.request&&t.request.url||Vt.location&&Vt.location.href;const{referrer:r}=Vt.document||{},{userAgent:i}=Vt.navigator||{};var n={...e&&{url:e},headers:{...t.request&&t.request.headers,...r&&{Referer:r},...i&&{"User-Agent":i}}};return{...t,request:n}}return t}))}}function Wt(t){var e=[];function n(t){return e.splice(e.indexOf(t),1)[0]}return{$:e,add:function(r){if(!(void 0===t||e.length<t))return(0,N.xg)(new b("Not adding Promise because buffer limit was reached."));var i=r();return-1===e.indexOf(i)&&e.push(i),i.then((()=>n(i))).then(null,(()=>n(i).then(null,(()=>{})))),i},drain:function(t){return new N.T2(((n,r)=>{let i=e.length;if(!i)return n(!0);var a=setTimeout((()=>{t&&t>0&&n(!1)}),t);e.forEach((t=>{(0,N.XW)(t).then((()=>{--i||(clearTimeout(a),n(!0))}),r)}))}))}}}zt.__initStatic();var Jt=6e4;function Xt(t,{statusCode:e,headers:n},r=Date.now()){var i={...t},a=n&&n["x-sentry-rate-limits"],s=n&&n["retry-after"];if(a)for(var o of a.trim().split(",")){const[t,e]=o.split(":",2);var c=parseInt(t,10),u=1e3*(isNaN(c)?60:c);if(e)for(var l of e.split(";"))i[l]=r+u;else i.all=r+u}else s?i.all=r+function(t,e=Date.now()){var n=parseInt(`${t}`,10);if(!isNaN(n))return 1e3*n;var r=Date.parse(`${t}`);return isNaN(r)?Jt:r-e}(s,r):429===e&&(i.all=r+6e4);return i}var Kt=30;function Qt(t,e,n=Wt(t.bufferSize||Kt)){let r={};return{send:function(a){var s=[];if(G(a,((e,n)=>{var i=j(n);!function(t,e,n=Date.now()){return function(t,e){return t[e]||t.all||0}(t,e)>n}(r,i)?s.push(e):t.recordDroppedEvent("ratelimit_backoff",i)})),0===s.length)return(0,N.XW)();var o=O(a[0],s),c=e=>{G(o,((n,r)=>{t.recordDroppedEvent(e,j(r))}))};return n.add((()=>e({body:Y(o,t.textEncoder)}).then((t=>{void 0!==t.statusCode&&(t.statusCode<200||t.statusCode>=300)&&("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.vF.warn(`Sentry responded with status code ${t.statusCode} to sent event.`),r=Xt(r,t)}),(t=>{("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.vF.error("Failed while sending event:",t),c("network_error")})))).then((t=>t),(t=>{if(t instanceof b)return("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.vF.error("Skipped sending event because buffer is full."),c("queue_overflow"),(0,N.XW)();throw t}))},flush:t=>n.drain(t)}}var Zt=(0,m.V)();let te;function ee(t,e=function(){if(te)return te;if((0,y.ap)(Zt.fetch))return te=Zt.fetch.bind(Zt);var t=Zt.document;let e=Zt.fetch;if(t&&"function"===typeof t.createElement)try{var n=t.createElement("iframe");n.hidden=!0,t.head.appendChild(n);var r=n.contentWindow;r&&r.fetch&&(e=r.fetch),t.head.removeChild(n)}catch(a){("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.vF.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",a)}return te=e.bind(Zt)}()){return Qt(t,(function(n){var r={body:n.body,method:"POST",referrerPolicy:"origin",headers:t.headers,keepalive:n.body.length<=65536,...t.fetchOptions};return e(t.url,r).then((t=>({statusCode:t.status,headers:{"x-sentry-rate-limits":t.headers.get("X-Sentry-Rate-Limits"),"retry-after":t.headers.get("Retry-After")}})))}))}var ne=4;function re(t){return Qt(t,(function(e){return new N.T2(((n,r)=>{var i=new XMLHttpRequest;for(var a in i.onerror=r,i.onreadystatechange=()=>{i.readyState===ne&&n({statusCode:i.status,headers:{"x-sentry-rate-limits":i.getResponseHeader("X-Sentry-Rate-Limits"),"retry-after":i.getResponseHeader("Retry-After")}})},i.open("POST",t.url),t.headers)Object.prototype.hasOwnProperty.call(t.headers,a)&&i.setRequestHeader(a,t.headers[a]);i.send(e.body)}))}))}var ie=[new c,new p,new Nt,new st,new Ct,new jt,new Pt,new zt];function ae(t={}){if(void 0===t.defaultIntegrations&&(t.defaultIntegrations=ie),void 0===t.release){var e=(0,m.V)();e.SENTRY_RELEASE&&e.SENTRY_RELEASE.id&&(t.release=e.SENTRY_RELEASE.id)}void 0===t.autoSessionTracking&&(t.autoSessionTracking=!0),void 0===t.sendClientReports&&(t.sendClientReports=!0);var n={...t,stackParser:(0,g.vk)(t.stackParser||St),integrations:v(t),transport:t.transport||((0,y.vm)()?ee:re)};!function(t,e){!0===e.debug&&("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__?i.vF.enable():console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle."));var n=(0,_.BF)(),r=n.getScope();r&&r.update(e.initialScope);var a=new t(e);n.bindClient(a)}(pt,n),t.autoSessionTracking&&function(){var t=(0,m.V)(),e=t.document;if("undefined"===typeof e)return void(("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.vF.warn("Session tracking in non-browser environment with @sentry/browser is not supported."));var n=(0,_.BF)();if(!n.captureSession)return;se(n),(0,E.O)("history",(({from:t,to:e})=>{void 0!==t&&t!==e&&se((0,_.BF)())}))}()}function se(t){t.startSession({ignoreDuration:!0}),t.captureSession()}function oe(t){t._metadata=t._metadata||{},t._metadata.sdk=t._metadata.sdk||{name:"sentry.javascript.react",packages:[{name:"npm:@sentry/react",version:r}],version:r},ae(t)}},54926:(t,e,n)=>{"use strict";n.d(e,{lk:()=>v,pd:()=>f});var r=n(51361),i=n(17914),a=n(79850),s=n(8658),o=n(79139),c=n(27146);function u(){var t=(0,c.Z7)();if(t){var e="internal_error";("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.vF.log(`[Tracing] Transaction: ${e} -> Global error occured`),t.setStatus(e)}}var l=n(96709),h=n(57651);function p(){var t=this.getScope();if(t){var e=t.getSpan();if(e)return{"sentry-trace":e.toTraceparent()}}return{}}function d(t,e,n){if(!(0,c.wt)(e))return t.sampled=!1,t;if(void 0!==t.sampled)return t.setMetadata({sampleRate:Number(t.sampled)}),t;let r;return"function"===typeof e.tracesSampler?(r=e.tracesSampler(n),t.setMetadata({sampleRate:Number(r)})):void 0!==n.parentSampled?r=n.parentSampled:(r=e.tracesSampleRate,t.setMetadata({sampleRate:Number(r)})),function(t){if((0,a.yr)(t)||"number"!==typeof t&&"boolean"!==typeof t)return("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.vF.warn(`[Tracing] Given sample rate is invalid. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(t)} of type ${JSON.stringify(typeof t)}.`),!1;if(t<0||t>1)return("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.vF.warn(`[Tracing] Given sample rate is invalid. Sample rate must be between 0 and 1. Got ${t}.`),!1;return!0}(r)?r?(t.sampled=Math.random()<r,t.sampled?(("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.vF.log(`[Tracing] starting ${t.op} transaction - ${t.name}`),t):(("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.vF.log(`[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = ${Number(r)})`),t)):(("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.vF.log("[Tracing] Discarding transaction because "+("function"===typeof e.tracesSampler?"tracesSampler returned 0 or false":"a negative sampling decision was inherited or tracesSampleRate is set to 0")),t.sampled=!1,t):(("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.vF.warn("[Tracing] Discarding transaction because of invalid sample rate."),t.sampled=!1,t)}function _(t,e){var n=this.getClient(),r=n&&n.getOptions()||{};let i=new h.Z(t,this);return i=d(i,r,{parentSampled:t.parentSampled,transactionContext:t,...e}),i.sampled&&i.initSpanRecorder(r._experiments&&r._experiments.maxSpans),i}function f(t,e,n,r,i,a){var s=t.getClient(),o=s&&s.getOptions()||{};let c=new l.zX(e,t,n,r,i);return c=d(c,o,{parentSampled:e.parentSampled,transactionContext:e,...a}),c.sampled&&c.initSpanRecorder(o._experiments&&o._experiments.maxSpans),c}function v(){!function(){var t=(0,r.EU)();t.__SENTRY__&&(t.__SENTRY__.extensions=t.__SENTRY__.extensions||{},t.__SENTRY__.extensions.startTransaction||(t.__SENTRY__.extensions.startTransaction=_),t.__SENTRY__.extensions.traceHeaders||(t.__SENTRY__.extensions.traceHeaders=p))}(),(0,s.wD)()&&function(){var e=(0,r.EU)();if(e.__SENTRY__){var n={mongodb:()=>new((0,s.fj)(t,"./integrations/node/mongo").Mongo),mongoose:()=>new((0,s.fj)(t,"./integrations/node/mongo").Mongo)({mongoose:!0}),mysql:()=>new((0,s.fj)(t,"./integrations/node/mysql").Mysql),pg:()=>new((0,s.fj)(t,"./integrations/node/postgres").Postgres)},i=Object.keys(n).filter((t=>!!(0,s.Vw)(t))).map((t=>{try{return n[t]()}catch(e){return}})).filter((t=>t));i.length>0&&(e.__SENTRY__.integrations=[...e.__SENTRY__.integrations||[],...i])}}(),(0,o.O)("error",u),(0,o.O)("unhandledrejection",u)}t=n.hmd(t)},96709:(t,e,n)=>{"use strict";n.d(e,{$F:()=>o,nJ:()=>c,zX:()=>l});var r=n(16559),i=n(17914),a=n(90747),s=n(57651),o=1e3,c=3e4;class u extends a.lh{constructor(t,e,n,r){super(r),this._pushActivity=t,this._popActivity=e,this.transactionSpanId=n}add(t){t.spanId!==this.transactionSpanId&&(t.finish=e=>{t.endTimestamp="number"===typeof e?e:(0,r.LU)(),this._popActivity(t.spanId)},void 0===t.endTimestamp&&this._pushActivity(t.spanId)),super.add(t)}}class l extends s.Z{__init(){this.activities={}}__init2(){this._heartbeatCounter=0}__init3(){this._finished=!1}__init4(){this._beforeFinishCallbacks=[]}constructor(t,e,n=o,r=c,a=!1){super(t,e),this._idleHub=e,this._idleTimeout=n,this._finalTimeout=r,this._onScope=a,l.prototype.__init.call(this),l.prototype.__init2.call(this),l.prototype.__init3.call(this),l.prototype.__init4.call(this),a&&(h(e),("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.vF.log(`Setting idle transaction on scope. Span ID: ${this.spanId}`),e.configureScope((t=>t.setSpan(this)))),this._startIdleTimeout(),setTimeout((()=>{this._finished||(this.setStatus("deadline_exceeded"),this.finish())}),this._finalTimeout)}finish(t=(0,r.LU)()){if(this._finished=!0,this.activities={},this.spanRecorder){for(var e of(("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.vF.log("[Tracing] finishing IdleTransaction",new Date(1e3*t).toISOString(),this.op),this._beforeFinishCallbacks))e(this,t);this.spanRecorder.spans=this.spanRecorder.spans.filter((e=>{if(e.spanId===this.spanId)return!0;e.endTimestamp||(e.endTimestamp=t,e.setStatus("cancelled"),("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.vF.log("[Tracing] cancelling span since transaction ended early",JSON.stringify(e,void 0,2)));var n=e.startTimestamp<t;return n||("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.vF.log("[Tracing] discarding Span since it happened after Transaction was finished",JSON.stringify(e,void 0,2)),n})),("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.vF.log("[Tracing] flushing IdleTransaction")}else("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.vF.log("[Tracing] No active IdleTransaction");return this._onScope&&h(this._idleHub),super.finish(t)}registerBeforeFinishCallback(t){this._beforeFinishCallbacks.push(t)}initSpanRecorder(t){if(!this.spanRecorder){this.spanRecorder=new u((t=>{this._finished||this._pushActivity(t)}),(t=>{this._finished||this._popActivity(t)}),this.spanId,t),("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.vF.log("Starting heartbeat"),this._pingHeartbeat()}this.spanRecorder.add(this)}_cancelIdleTimeout(){this._idleTimeoutID&&(clearTimeout(this._idleTimeoutID),this._idleTimeoutID=void 0)}_startIdleTimeout(t){this._cancelIdleTimeout(),this._idleTimeoutID=setTimeout((()=>{this._finished||0!==Object.keys(this.activities).length||this.finish(t)}),this._idleTimeout)}_pushActivity(t){this._cancelIdleTimeout(),("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.vF.log(`[Tracing] pushActivity: ${t}`),this.activities[t]=!0,("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.vF.log("[Tracing] new activities count",Object.keys(this.activities).length)}_popActivity(t){if(this.activities[t]&&(("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.vF.log(`[Tracing] popActivity ${t}`),delete this.activities[t],("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.vF.log("[Tracing] new activities count",Object.keys(this.activities).length)),0===Object.keys(this.activities).length){var e=(0,r.LU)()+this._idleTimeout/1e3;this._startIdleTimeout(e)}}_beat(){if(!this._finished){var t=Object.keys(this.activities).join("");t===this._prevHeartbeatString?this._heartbeatCounter+=1:this._heartbeatCounter=1,this._prevHeartbeatString=t,this._heartbeatCounter>=3?(("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.vF.log("[Tracing] Transaction finished because of no change for 3 heart beats"),this.setStatus("deadline_exceeded"),this.finish()):this._pingHeartbeat()}}_pingHeartbeat(){("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.vF.log(`pinging Heartbeat -> current counter: ${this._heartbeatCounter}`),setTimeout((()=>{this._beat()}),5e3)}}function h(t){var e=t.getScope();e&&(e.getTransaction()&&e.setSpan(void 0))}},35936:(t,e,n)=>{"use strict";n.d(e,{Jh:()=>z});var r=n(54926);var i=n(17914),a=new RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");var s=n(79850),o="baggage",c="sentry-",u=/^sentry-/,l=8192;function h(t){return function(t){if(0===Object.keys(t).length)return;return Object.entries(t).reduce(((t,[e,n],r)=>{var a=`${encodeURIComponent(e)}=${encodeURIComponent(n)}`,s=0===r?a:`${t},${a}`;return s.length>l?(("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.vF.warn(`Not adding key: ${e} with val: ${n} to baggage header due to exceeding baggage size limits.`),t):s}),"")}(Object.entries(t).reduce(((t,[e,n])=>(n&&(t[`${c}${e}`]=n),t)),{}))}function p(t){return t.split(",").map((t=>t.split("=").map((t=>decodeURIComponent(t.trim()))))).reduce(((t,[e,n])=>(t[e]=n,t)),{})}var d=n(67373),_=n(30736),f=n(96709),v=n(27146),m=(0,d.V)();var g=n(19462),y=n(16559),E=(t,e,n)=>{let r;return i=>{e.value>=0&&(i||n)&&(e.delta=e.value-(r||0),(e.delta||void 0===r)&&(r=e.value,t(e)))}},S=(t,e)=>({name:t,value:(0,g.S)(e,(()=>-1)),delta:0,entries:[],id:`v2-${Date.now()}-${Math.floor(8999999999999*Math.random())+1e12}`}),b=(t,e)=>{try{if(PerformanceObserver.supportedEntryTypes.includes(t)){if("first-input"===t&&!("PerformanceEventTiming"in self))return;var n=new PerformanceObserver((t=>t.getEntries().map(e)));return n.observe({type:t,buffered:!0}),n}}catch(r){}},T=(t,e)=>{var n=r=>{"pagehide"!==r.type&&"hidden"!==(0,d.V)().document.visibilityState||(t(r),e&&(removeEventListener("visibilitychange",n,!0),removeEventListener("pagehide",n,!0)))};addEventListener("visibilitychange",n,!0),addEventListener("pagehide",n,!0)},R=(t,e)=>{var n=S("CLS",0);let r,i=0,a=[];var s=t=>{if(t&&!t.hadRecentInput){var e=a[0],s=a[a.length-1];i&&0!==a.length&&t.startTime-s.startTime<1e3&&t.startTime-e.startTime<5e3?(i+=t.value,a.push(t)):(i=t.value,a=[t]),i>n.value&&(n.value=i,n.entries=a,r&&r())}},o=b("layout-shift",s);o&&(r=E(t,n,e),T((()=>{o.takeRecords().map(s),r(!0)})))};let x=-1;var w=()=>(x<0&&(x="hidden"===(0,d.V)().document.visibilityState?0:1/0,T((({timeStamp:t})=>{x=t}),!0)),{get firstHiddenTime(){return x}}),D=(t,e)=>{var n=w(),r=S("FID");let i;var a=t=>{i&&t.startTime<n.firstHiddenTime&&(r.value=t.processingStart-t.startTime,r.entries.push(t),i(!0))},s=b("first-input",a);s&&(i=E(t,r,e),T((()=>{s.takeRecords().map(a),s.disconnect()}),!0))},N={},k=(t,e)=>{var n=w(),r=S("LCP");let i;var a=t=>{var e=t.startTime;e<n.firstHiddenTime&&(r.value=e,r.entries.push(t)),i&&i()},s=b("largest-contentful-paint",a);if(s){i=E(t,r,e);var o=()=>{N[r.id]||(s.takeRecords().map(a),s.disconnect(),N[r.id]=!0,i(!0))};["keydown","click"].forEach((t=>{addEventListener(t,o,{once:!0,capture:!0})})),T(o,!0)}};function B(t){return"number"===typeof t&&isFinite(t)}function U(t,{startTimestamp:e,...n}){return e&&t.startTimestamp>e&&(t.startTimestamp=e),t.startChild({startTimestamp:e,...n})}var O=(0,d.V)();function C(){return O&&O.addEventListener&&O.performance}let G,$,Y=0,I={};function F(t=!1){var e=C();e&&y.k3&&(e.mark&&O.performance.mark("sentry-tracing-init"),R((t=>{var e=t.entries.pop();e&&(("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.vF.log("[Measurements] Adding CLS"),I.cls={value:t.value,unit:""},$=e)})),function(t){k((t=>{var e=t.entries.pop();e&&(("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.vF.log("[Measurements] Adding LCP"),I.lcp={value:t.value,unit:"millisecond"},G=e)}),t)}(t),D((t=>{var e=t.entries.pop();if(e){var n=(0,v.rv)(y.k3),r=(0,v.rv)(e.startTime);("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.vF.log("[Measurements] Adding FID"),I.fid={value:t.value,unit:"millisecond"},I["mark.fid"]={value:n+r,unit:"second"}}})))}function j(t){var e=C();if(!e||!O.performance.getEntries||!y.k3)return;("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.vF.log("[Tracing] Adding & adjusting spans using Performance API");var n=(0,v.rv)(y.k3),r=e.getEntries();let a,s;if(r.slice(Y).forEach((e=>{var r=(0,v.rv)(e.startTime),o=(0,v.rv)(e.duration);if(!("navigation"===t.op&&n+r<t.startTimestamp))switch(e.entryType){case"navigation":!function(t,e,n){["unloadEvent","redirect","domContentLoadedEvent","loadEvent","connect"].forEach((r=>{A(t,e,r,n)})),A(t,e,"secureConnection",n,"TLS/SSL","connectEnd"),A(t,e,"fetch",n,"cache","domainLookupStart"),A(t,e,"domainLookup",n,"DNS"),function(t,e,n){U(t,{op:"browser",description:"request",startTimestamp:n+(0,v.rv)(e.requestStart),endTimestamp:n+(0,v.rv)(e.responseEnd)}),U(t,{op:"browser",description:"response",startTimestamp:n+(0,v.rv)(e.responseStart),endTimestamp:n+(0,v.rv)(e.responseEnd)})}(t,e,n)}(t,e,n),a=n+(0,v.rv)(e.responseStart),s=n+(0,v.rv)(e.requestStart);break;case"mark":case"paint":case"measure":!function(t,e,n,r,i){var a=i+n,s=a+r;U(t,{description:e.name,endTimestamp:s,op:e.entryType,startTimestamp:a})}(t,e,r,o,n);var c=w(),u=e.startTime<c.firstHiddenTime;"first-paint"===e.name&&u&&(("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.vF.log("[Measurements] Adding FP"),I.fp={value:e.startTime,unit:"millisecond"}),"first-contentful-paint"===e.name&&u&&(("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.vF.log("[Measurements] Adding FCP"),I.fcp={value:e.startTime,unit:"millisecond"});break;case"resource":var l=e.name.replace(O.location.origin,"");!function(t,e,n,r,i,a){if("xmlhttprequest"===e.initiatorType||"fetch"===e.initiatorType)return;var s={};"transferSize"in e&&(s["Transfer Size"]=e.transferSize);"encodedBodySize"in e&&(s["Encoded Body Size"]=e.encodedBodySize);"decodedBodySize"in e&&(s["Decoded Body Size"]=e.decodedBodySize);var o=a+r,c=o+i;U(t,{description:n,endTimestamp:c,op:e.initiatorType?`resource.${e.initiatorType}`:"resource.other",startTimestamp:o,data:s})}(t,e,l,r,o,n)}})),Y=Math.max(r.length-1,0),function(t){var e=O.navigator;if(!e)return;var n=e.connection;n&&(n.effectiveType&&t.setTag("effectiveConnectionType",n.effectiveType),n.type&&t.setTag("connectionType",n.type),B(n.rtt)&&(I["connection.rtt"]={value:n.rtt,unit:"millisecond"}));B(e.deviceMemory)&&t.setTag("deviceMemory",`${e.deviceMemory} GB`);B(e.hardwareConcurrency)&&t.setTag("hardwareConcurrency",String(e.hardwareConcurrency))}(t),"pageload"===t.op){"number"===typeof a&&(("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.vF.log("[Measurements] Adding TTFB"),I.ttfb={value:1e3*(a-t.startTimestamp),unit:"millisecond"},"number"===typeof s&&s<=a&&(I["ttfb.requestTime"]={value:1e3*(a-s),unit:"millisecond"})),["fcp","fp","lcp"].forEach((e=>{if(I[e]&&!(n>=t.startTimestamp)){var r=I[e].value,a=n+(0,v.rv)(r),s=Math.abs(1e3*(a-t.startTimestamp)),o=s-r;("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.vF.log(`[Measurements] Normalized ${e} from ${r} to ${s} (${o})`),I[e].value=s}}));var o=I["mark.fid"];o&&I.fid&&(U(t,{description:"first input delay",endTimestamp:o.value+(0,v.rv)(I.fid.value),op:"ui.action",startTimestamp:o.value}),delete I["mark.fid"]),"fcp"in I||delete I.cls,Object.keys(I).forEach((e=>{t.setMeasurement(e,I[e].value,I[e].unit)})),function(t){G&&(("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.vF.log("[Measurements] Adding LCP Data"),G.element&&t.setTag("lcp.element",(0,_.Hd)(G.element)),G.id&&t.setTag("lcp.id",G.id),G.url&&t.setTag("lcp.url",G.url.trim().slice(0,200)),t.setTag("lcp.size",G.size));$&&$.sources&&(("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.vF.log("[Measurements] Adding CLS Data"),$.sources.forEach(((e,n)=>t.setTag(`cls.source.${n+1}`,(0,_.Hd)(e.node)))))}(t)}G=void 0,$=void 0,I={}}function A(t,e,n,r,i,a){var s=a?e[a]:e[`${n}End`],o=e[`${n}Start`];o&&s&&U(t,{op:"browser",description:(0,g.S)(i,(()=>n)),startTimestamp:r+(0,v.rv)(o),endTimestamp:r+(0,v.rv)(s)})}var P=n(97867),L=n(79139),M={traceFetch:!0,traceXHR:!0,tracingOrigins:["localhost",/^\//]};function H(t){const{traceFetch:e,traceXHR:n,tracingOrigins:r,shouldCreateSpanForRequest:i}={...M,...t};var a={},c=t=>{if(a[t])return a[t];var e=r;return a[t]=e.some((e=>(0,P._c)(t,e)))&&!(0,P._c)(t,"sentry_key"),a[t]};let u=c;"function"===typeof i&&(u=t=>c(t)&&i(t));var l={};e&&(0,L.O)("fetch",(t=>{!function(t,e,n){if(!(0,v.wt)()||!t.fetchData||!e(t.fetchData.url))return;if(t.endTimestamp){var r=t.fetchData.__span;if(!r)return;return void((a=n[r])&&(t.response?a.setHttpStatus(t.response.status):t.error&&a.setStatus("internal_error"),a.finish(),delete n[r]))}var i=(0,v.Z7)();if(i){var a=i.startChild({data:{...t.fetchData,type:"fetch"},description:`${t.fetchData.method} ${t.fetchData.url}`,op:"http.client"});t.fetchData.__span=a.spanId,n[a.spanId]=a;var c=t.args[0];t.args[1]=t.args[1]||{};var u=t.args[1];u.headers=function(t,e,n,r){var i=h(e),a=n.toTraceparent(),c="undefined"!==typeof Request&&(0,s.tH)(t,Request)?t.headers:r.headers;if(c){if("undefined"!==typeof Headers&&(0,s.tH)(c,Headers))return(u=new Headers(c)).append("sentry-trace",a),i&&u.append(o,i),u;if(Array.isArray(c)){var u=[...c,["sentry-trace",a]];return i&&u.push([o,i]),u}var l="baggage"in c?c.baggage:void 0,p=[];return Array.isArray(l)?p.push(...l):l&&p.push(l),i&&p.push(i),{...c,"sentry-trace":a,baggage:p.length>0?p.join(","):void 0}}return{"sentry-trace":a,baggage:i}}(c,i.getDynamicSamplingContext(),a,u),i.metadata.propagations+=1}}(t,u,l)})),n&&(0,L.O)("xhr",(t=>{!function(t,e,n){if(!(0,v.wt)()||t.xhr&&t.xhr.__sentry_own_request__||!(t.xhr&&t.xhr.__sentry_xhr__&&e(t.xhr.__sentry_xhr__.url)))return;var r=t.xhr.__sentry_xhr__;if(t.endTimestamp){var i=t.xhr.__sentry_xhr_span_id__;if(!i)return;return void((s=n[i])&&(s.setHttpStatus(r.status_code),s.finish(),delete n[i]))}var a=(0,v.Z7)();if(a){var s=a.startChild({data:{...r.data,type:"xhr",method:r.method,url:r.url},description:`${r.method} ${r.url}`,op:"http.client"});if(t.xhr.__sentry_xhr_span_id__=s.spanId,n[t.xhr.__sentry_xhr_span_id__]=s,t.xhr.setRequestHeader)try{t.xhr.setRequestHeader("sentry-trace",s.toTraceparent());var c=h(a.getDynamicSamplingContext());c&&t.xhr.setRequestHeader(o,c),a.metadata.propagations+=1}catch(u){}}}(t,u,l)}))}var q=(0,d.V)();var V={idleTimeout:f.$F,finalTimeout:f.nJ,markBackgroundTransactions:!0,routingInstrumentation:function(t,e=!0,n=!0){if(!q||!q.location)return void(("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.vF.warn("Could not initialize routing instrumentation due to invalid location"));let r,a=q.location.href;e&&(r=t({name:q.location.pathname,op:"pageload",metadata:{source:"url"}})),n&&(0,L.O)("history",(({to:e,from:n})=>{void 0===n&&a&&-1!==a.indexOf(e)?a=void 0:n!==e&&(a=void 0,r&&(("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.vF.log(`[Tracing] Finishing current transaction with op: ${r.op}`),r.finish()),r=t({name:q.location.pathname,op:"navigation",metadata:{source:"url"}}))}))},startTransactionOnLocationChange:!0,startTransactionOnPageLoad:!0,_experiments:{enableLongTask:!0},...M};class z{__init(){this.name="BrowserTracing"}constructor(t){z.prototype.__init.call(this);let e=M.tracingOrigins;t&&(t.tracingOrigins&&Array.isArray(t.tracingOrigins)?e=t.tracingOrigins:("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&(this._emitOptionsWarning=!0)),this.options={...V,...t,tracingOrigins:e};const{_metricOptions:n}=this.options;F(n&&n._reportAllChanges),function(t){let e,n=t[0],r=1;for(;r<t.length;){var i=t[r],a=t[r+1];if(r+=2,("optionalAccess"===i||"optionalCall"===i)&&null==n)return;"access"===i||"optionalAccess"===i?(e=n,n=a(n)):"call"!==i&&"optionalCall"!==i||(n=a(((...t)=>n.call(e,...t))),e=void 0)}return n}([this,"access",t=>t.options,"access",t=>t._experiments,"optionalAccess",t=>t.enableLongTask])&&b("longtask",(t=>{var e=(0,v.Z7)();if(e){var n=(0,v.rv)(y.k3+t.startTime),r=(0,v.rv)(t.duration);e.startChild({description:"Main UI thread blocked",op:"ui.long-task",startTimestamp:n,endTimestamp:n+r})}}))}setupOnce(t,e){this._getCurrentHub=e,this._emitOptionsWarning&&(("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.vF.warn("[Tracing] You need to define `tracingOrigins` in the options. Set an array of urls or patterns to trace."),("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.vF.warn(`[Tracing] We added a reasonable default for you: ${M.tracingOrigins}`));const{routingInstrumentation:n,startTransactionOnLocationChange:r,startTransactionOnPageLoad:a,markBackgroundTransactions:s,traceFetch:o,traceXHR:c,tracingOrigins:u,shouldCreateSpanForRequest:l}=this.options;n((t=>this._createRouteTransaction(t)),a,r),s&&(m&&m.document?m.document.addEventListener("visibilitychange",(()=>{var t=(0,v.Z7)();if(m.document.hidden&&t){var e="cancelled";("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.vF.log(`[Tracing] Transaction: ${e} -> since tab moved to the background, op: ${t.op}`),t.status||t.setStatus(e),t.setTag("visibilitychange","document.hidden"),t.finish()}})):("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.vF.warn("[Tracing] Could not set up background tab detection due to lack of global document")),H({traceFetch:o,traceXHR:c,tracingOrigins:u,shouldCreateSpanForRequest:l})}_createRouteTransaction(t){if(!this._getCurrentHub)return void(("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.vF.warn(`[Tracing] Did not create ${t.op} transaction because _getCurrentHub is invalid.`));const{beforeNavigate:e,idleTimeout:n,finalTimeout:o}=this.options;var l="pageload"===t.op,h=l?W("sentry-trace"):null,_=l?W("baggage"):null,f=h?function(t){var e=t.match(a);if(!t||!e)return;let n;return"1"===e[3]?n=!0:"0"===e[3]&&(n=!1),{traceId:e[1],parentSampled:n,parentSpanId:e[2]}}(h):void 0,v=_?function(t){if(!(0,s.Kg)(t)&&!Array.isArray(t))return;let e={};if(Array.isArray(t))e=t.reduce(((t,e)=>({...t,...p(e)})),{});else{if(!t)return;e=p(t)}var n=Object.entries(e).reduce(((t,[e,n])=>(e.match(u)&&(t[e.slice(c.length)]=n),t)),{});return Object.keys(n).length>0?n:void 0}(_):void 0,m={...t,...f,metadata:{...t.metadata,dynamicSamplingContext:f&&!v?{}:v},trimEnd:!0},g="function"===typeof e?e(m):m,y=void 0===g?{...m,sampled:!1}:g;y.metadata=y.name!==m.name?{...y.metadata,source:"custom"}:y.metadata,!1===y.sampled&&("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.vF.log(`[Tracing] Will not send ${y.op} transaction because of beforeNavigate.`),("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.vF.log(`[Tracing] Starting ${y.op} transaction on scope`);var E=this._getCurrentHub();const{location:S}=(0,d.V)();var b=(0,r.pd)(E,y,n,o,!0,{location:S});return b.registerBeforeFinishCallback((t=>{j(t),t.setTag("sentry_reportAllChanges",Boolean(this.options._metricOptions&&this.options._metricOptions._reportAllChanges))})),b}}function W(t){var e=(0,_.NX)(`meta[name=${t}]`);return e?e.getAttribute("content"):null}("undefined"===typeof __SENTRY_TRACING__||__SENTRY_TRACING__)&&(0,r.lk)()},90747:(t,e,n)=>{"use strict";n.d(e,{L9:()=>u,lh:()=>c});var r=n(19462),i=n(26566),a=n(16559),s=n(17914),o=n(15873);class c{__init(){this.spans=[]}constructor(t=1e3){c.prototype.__init.call(this),this._maxlen=t}add(t){this.spans.length>this._maxlen?t.spanRecorder=void 0:this.spans.push(t)}}class u{__init2(){this.traceId=(0,i.eJ)()}__init3(){this.spanId=(0,i.eJ)().substring(16)}__init4(){this.startTimestamp=(0,a.LU)()}__init5(){this.tags={}}__init6(){this.data={}}constructor(t){if(u.prototype.__init2.call(this),u.prototype.__init3.call(this),u.prototype.__init4.call(this),u.prototype.__init5.call(this),u.prototype.__init6.call(this),!t)return this;t.traceId&&(this.traceId=t.traceId),t.spanId&&(this.spanId=t.spanId),t.parentSpanId&&(this.parentSpanId=t.parentSpanId),"sampled"in t&&(this.sampled=t.sampled),t.op&&(this.op=t.op),t.description&&(this.description=t.description),t.data&&(this.data=t.data),t.tags&&(this.tags=t.tags),t.status&&(this.status=t.status),t.startTimestamp&&(this.startTimestamp=t.startTimestamp),t.endTimestamp&&(this.endTimestamp=t.endTimestamp)}startChild(t){var e=new u({...t,parentSpanId:this.spanId,sampled:this.sampled,traceId:this.traceId});if(e.spanRecorder=this.spanRecorder,e.spanRecorder&&e.spanRecorder.add(e),e.transaction=this.transaction,("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&e.transaction){var n=`[Tracing] Starting '${t&&t.op||"< unknown op >"}' span on transaction '${e.transaction.name||"< unknown name >"}' (${e.transaction.spanId}).`;e.transaction.metadata.spanMetadata[e.spanId]={logMessage:n},s.vF.log(n)}return e}setTag(t,e){return this.tags={...this.tags,[t]:e},this}setData(t,e){return this.data={...this.data,[t]:e},this}setStatus(t){return this.status=t,this}setHttpStatus(t){this.setTag("http.status_code",String(t));var e=function(t){if(t<400&&t>=100)return"ok";if(t>=400&&t<500)switch(t){case 401:return"unauthenticated";case 403:return"permission_denied";case 404:return"not_found";case 409:return"already_exists";case 413:return"failed_precondition";case 429:return"resource_exhausted";default:return"invalid_argument"}if(t>=500&&t<600)switch(t){case 501:return"unimplemented";case 503:return"unavailable";case 504:return"deadline_exceeded";default:return"internal_error"}return"unknown_error"}(t);return"unknown_error"!==e&&this.setStatus(e),this}isSuccess(){return"ok"===this.status}finish(t){if(("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&this.transaction&&this.transaction.spanId!==this.spanId){const{logMessage:t}=this.transaction.metadata.spanMetadata[this.spanId];t&&s.vF.log(t.replace("Starting","Finishing"))}this.endTimestamp="number"===typeof t?t:(0,a.LU)()}toTraceparent(){let t="";return void 0!==this.sampled&&(t=this.sampled?"-1":"-0"),`${this.traceId}-${this.spanId}${t}`}toContext(){return(0,o.Ce)({data:this.data,description:this.description,endTimestamp:this.endTimestamp,op:this.op,parentSpanId:this.parentSpanId,sampled:this.sampled,spanId:this.spanId,startTimestamp:this.startTimestamp,status:this.status,tags:this.tags,traceId:this.traceId})}updateWithContext(t){return this.data=(0,r.S)(t.data,(()=>({}))),this.description=t.description,this.endTimestamp=t.endTimestamp,this.op=t.op,this.parentSpanId=t.parentSpanId,this.sampled=t.sampled,this.spanId=(0,r.S)(t.spanId,(()=>this.spanId)),this.startTimestamp=(0,r.S)(t.startTimestamp,(()=>this.startTimestamp)),this.status=t.status,this.tags=(0,r.S)(t.tags,(()=>({}))),this.traceId=(0,r.S)(t.traceId,(()=>this.traceId)),this}getTraceContext(){return(0,o.Ce)({data:Object.keys(this.data).length>0?this.data:void 0,description:this.description,op:this.op,parent_span_id:this.parentSpanId,span_id:this.spanId,status:this.status,tags:Object.keys(this.tags).length>0?this.tags:void 0,trace_id:this.traceId})}toJSON(){return(0,o.Ce)({data:Object.keys(this.data).length>0?this.data:void 0,description:this.description,op:this.op,parent_span_id:this.parentSpanId,span_id:this.spanId,start_timestamp:this.startTimestamp,status:this.status,tags:Object.keys(this.tags).length>0?this.tags:void 0,timestamp:this.endTimestamp,trace_id:this.traceId})}}},57651:(t,e,n)=>{"use strict";n.d(e,{Z:()=>u});var r=n(19462),i=n(51361),a=n(16559),s=n(17914),o=n(15873),c=n(90747);class u extends c.L9{__init(){this._measurements={}}__init2(){this._frozenDynamicSamplingContext=void 0}constructor(t,e){super(t),u.prototype.__init.call(this),u.prototype.__init2.call(this),this._hub=e||(0,i.BF)(),this._name=t.name||"",this.metadata={source:"custom",...t.metadata,spanMetadata:{},changes:[],propagations:0},this._trimEnd=t.trimEnd,this.transaction=this;var n=this.metadata.dynamicSamplingContext;n&&(this._frozenDynamicSamplingContext={...n})}get name(){return this._name}set name(t){this.setName(t)}setName(t,e="custom"){t===this.name&&e===this.metadata.source||this.metadata.changes.push({source:this.metadata.source,timestamp:(0,a.zf)(),propagations:this.metadata.propagations}),this._name=t,this.metadata.source=e}initSpanRecorder(t=1e3){this.spanRecorder||(this.spanRecorder=new c.lh(t)),this.spanRecorder.add(this)}setMeasurement(t,e,n=""){this._measurements[t]={value:e,unit:n}}setMetadata(t){this.metadata={...this.metadata,...t}}finish(t){if(void 0===this.endTimestamp){if(this.name||(("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&s.vF.warn("Transaction has no name, falling back to `<unlabeled transaction>`."),this.name="<unlabeled transaction>"),super.finish(t),!0===this.sampled){var e=this.spanRecorder?this.spanRecorder.spans.filter((t=>t!==this&&t.endTimestamp)):[];this._trimEnd&&e.length>0&&(this.endTimestamp=e.reduce(((t,e)=>t.endTimestamp&&e.endTimestamp?t.endTimestamp>e.endTimestamp?t:e:t)).endTimestamp);var n=this.metadata,r={contexts:{trace:this.getTraceContext()},spans:e,start_timestamp:this.startTimestamp,tags:this.tags,timestamp:this.endTimestamp,transaction:this.name,type:"transaction",sdkProcessingMetadata:{...n,dynamicSamplingContext:this.getDynamicSamplingContext()},...n.source&&{transaction_info:{source:n.source,changes:n.changes,propagations:n.propagations}}};return Object.keys(this._measurements).length>0&&(("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&s.vF.log("[Measurements] Adding measurements to transaction",JSON.stringify(this._measurements,void 0,2)),r.measurements=this._measurements),("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&s.vF.log(`[Tracing] Finishing ${this.op} transaction: ${this.name}.`),this._hub.captureEvent(r)}("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&s.vF.log("[Tracing] Discarding transaction because its trace was not chosen to be sampled.");var i=this._hub.getClient();i&&i.recordDroppedEvent("sample_rate","transaction")}}toContext(){var t=super.toContext();return(0,o.Ce)({...t,name:this.name,trimEnd:this._trimEnd})}updateWithContext(t){return super.updateWithContext(t),this.name=(0,r.S)(t.name,(()=>"")),this._trimEnd=t.trimEnd,this}getDynamicSamplingContext(){if(this._frozenDynamicSamplingContext)return this._frozenDynamicSamplingContext;var t=this._hub||(0,i.BF)(),e=t&&t.getClient();if(!e)return{};const{environment:n,release:r}=e.getOptions()||{},{publicKey:a}=e.getDsn()||{};var s=this.metadata.sampleRate,c=void 0!==s?s.toString():void 0,u=t.getScope();const{segment:l}=u&&u.getUser()||{};var h=this.metadata.source,p=h&&"url"!==h?this.name:void 0;return(0,o.Ce)({environment:n,release:r,transaction:p,user_segment:l,public_key:a,trace_id:this.traceId,sample_rate:c})}}},27146:(t,e,n)=>{"use strict";n.d(e,{Z7:()=>a,rv:()=>s,wt:()=>i});var r=n(51361);function i(t){var e=(0,r.BF)().getClient(),n=t||e&&e.getOptions();return!!n&&("tracesSampleRate"in n||"tracesSampler"in n)}function a(t){var e=(t||(0,r.BF)()).getScope();return e&&e.getTransaction()}function s(t){return t/1e3}},30736:(t,e,n)=>{"use strict";n.d(e,{$N:()=>o,Hd:()=>a,NX:()=>c});var r=n(67373),i=n(79850);function a(t,e){try{let r=t;var n=[];let i=0,a=0;let o;for(;r&&i++<5&&(o=s(r,e),!("html"===o||i>1&&a+3*n.length+o.length>=80));)n.push(o),a+=o.length,r=r.parentNode;return n.reverse().join(" > ")}catch(r){return"<unknown>"}}function s(t,e){var n=t,r=[];let a,s,o,c,u;if(!n||!n.tagName)return"";r.push(n.tagName.toLowerCase());var l=e&&e.length?e.filter((t=>n.getAttribute(t))).map((t=>[t,n.getAttribute(t)])):null;if(l&&l.length)l.forEach((t=>{r.push(`[${t[0]}="${t[1]}"]`)}));else if(n.id&&r.push(`#${n.id}`),a=n.className,a&&(0,i.Kg)(a))for(s=a.split(/\s+/),u=0;u<s.length;u++)r.push(`.${s[u]}`);var h=["type","name","title","alt"];for(u=0;u<h.length;u++)o=h[u],c=n.getAttribute(o),c&&r.push(`[${o}="${c}"]`);return r.join("")}function o(){var t=(0,r.V)();try{return t.document.location.href}catch(e){return""}}function c(t){var e=(0,r.V)();return e.document&&e.document.querySelector?e.document.querySelector(t):null}},19462:(t,e,n)=>{"use strict";function r(t,e){return null!=t?t:e()}n.d(e,{S:()=>r})},79139:(t,e,n)=>{"use strict";n.d(e,{O:()=>d});var r=n(67373),i=n(79850),a=n(17914),s=n(15873),o=n(18935),c=n(93710),u=(0,r.V)(),l={},h={};function p(t){if(!h[t])switch(h[t]=!0,t){case"console":!function(){if(!("console"in u))return;a.Ow.forEach((function(t){t in u.console&&(0,s.GS)(u.console,t,(function(e){return function(...n){_("console",{args:n,level:t}),e&&e.apply(u.console,n)}}))}))}();break;case"dom":!function(){if(!("document"in u))return;var t=_.bind(null,"dom"),e=S(t,!0);u.document.addEventListener("click",e,!1),u.document.addEventListener("keypress",e,!1),["EventTarget","Node"].forEach((e=>{var n=u[e]&&u[e].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&((0,s.GS)(n,"addEventListener",(function(e){return function(n,r,i){if("click"===n||"keypress"==n)try{var a=this,s=a.__sentry_instrumentation_handlers__=a.__sentry_instrumentation_handlers__||{},o=s[n]=s[n]||{refCount:0};if(!o.handler){var c=S(t);o.handler=c,e.call(this,n,c,i)}o.refCount+=1}catch(u){}return e.call(this,n,r,i)}})),(0,s.GS)(n,"removeEventListener",(function(t){return function(e,n,r){if("click"===e||"keypress"==e)try{var i=this,a=i.__sentry_instrumentation_handlers__||{},s=a[e];s&&(s.refCount-=1,s.refCount<=0&&(t.call(this,e,s.handler,r),s.handler=void 0,delete a[e]),0===Object.keys(a).length&&delete i.__sentry_instrumentation_handlers__)}catch(o){}return t.call(this,e,n,r)}})))}))}();break;case"xhr":!function(){if(!("XMLHttpRequest"in u))return;var t=XMLHttpRequest.prototype;(0,s.GS)(t,"open",(function(t){return function(...e){var n=this,r=e[1],a=n.__sentry_xhr__={method:(0,i.Kg)(e[0])?e[0].toUpperCase():e[0],url:e[1]};(0,i.Kg)(r)&&"POST"===a.method&&r.match(/sentry_key/)&&(n.__sentry_own_request__=!0);var o=function(){if(4===n.readyState){try{a.status_code=n.status}catch(t){}_("xhr",{args:e,endTimestamp:Date.now(),startTimestamp:Date.now(),xhr:n})}};return"onreadystatechange"in n&&"function"===typeof n.onreadystatechange?(0,s.GS)(n,"onreadystatechange",(function(t){return function(...e){return o(),t.apply(n,e)}})):n.addEventListener("readystatechange",o),t.apply(n,e)}})),(0,s.GS)(t,"send",(function(t){return function(...e){return this.__sentry_xhr__&&void 0!==e[0]&&(this.__sentry_xhr__.body=e[0]),_("xhr",{args:e,startTimestamp:Date.now(),xhr:this}),t.apply(this,e)}}))}();break;case"fetch":!function(){if(!(0,c.m7)())return;(0,s.GS)(u,"fetch",(function(t){return function(...e){var n={args:e,fetchData:{method:f(e),url:v(e)},startTimestamp:Date.now()};return _("fetch",{...n}),t.apply(u,e).then((t=>(_("fetch",{...n,endTimestamp:Date.now(),response:t}),t)),(t=>{throw _("fetch",{...n,endTimestamp:Date.now(),error:t}),t}))}}))}();break;case"history":!function(){if(!(0,c.NJ)())return;var t=u.onpopstate;function e(t){return function(...e){var n=e.length>2?e[2]:void 0;if(n){var r=m,i=String(n);m=i,_("history",{from:r,to:i})}return t.apply(this,e)}}u.onpopstate=function(...e){var n=u.location.href,r=m;if(m=n,_("history",{from:r,to:n}),t)try{return t.apply(this,e)}catch(i){}},(0,s.GS)(u.history,"pushState",e),(0,s.GS)(u.history,"replaceState",e)}();break;case"error":b=u.onerror,u.onerror=function(t,e,n,r,i){return _("error",{column:r,error:i,line:n,msg:t,url:e}),!!b&&b.apply(this,arguments)};break;case"unhandledrejection":T=u.onunhandledrejection,u.onunhandledrejection=function(t){return _("unhandledrejection",t),!T||T.apply(this,arguments)};break;default:return void(("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&a.vF.warn("unknown instrumentation type:",t))}}function d(t,e){l[t]=l[t]||[],l[t].push(e),p(t)}function _(t,e){if(t&&l[t])for(var n of l[t]||[])try{n(e)}catch(r){("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&a.vF.error(`Error while triggering instrumentation handler.\nType: ${t}\nName: ${(0,o.qQ)(n)}\nError:`,r)}}function f(t=[]){return"Request"in u&&(0,i.tH)(t[0],Request)&&t[0].method?String(t[0].method).toUpperCase():t[1]&&t[1].method?String(t[1].method).toUpperCase():"GET"}function v(t=[]){return"string"===typeof t[0]?t[0]:"Request"in u&&(0,i.tH)(t[0],Request)?t[0].url:String(t[0])}let m;var g=1e3;let y,E;function S(t,e=!1){return n=>{if(n&&E!==n&&!function(t){if("keypress"!==t.type)return!1;try{var e=t.target;if(!e||!e.tagName)return!0;if("INPUT"===e.tagName||"TEXTAREA"===e.tagName||e.isContentEditable)return!1}catch(n){}return!0}(n)){var r="keypress"===n.type?"input":n.type;(void 0===y||function(t,e){if(!t)return!0;if(t.type!==e.type)return!0;try{if(t.target!==e.target)return!0}catch(n){}return!1}(E,n))&&(t({event:n,name:r,global:e}),E=n),clearTimeout(y),y=u.setTimeout((()=>{y=void 0}),g)}}}let b=null;let T=null},79850:(t,e,n)=>{"use strict";n.d(e,{BD:()=>o,Kg:()=>u,Qd:()=>h,Qg:()=>f,T2:()=>s,W6:()=>c,bJ:()=>i,gd:()=>_,mE:()=>v,sO:()=>l,tH:()=>g,vq:()=>d,xH:()=>p,yr:()=>m});var r=Object.prototype.toString;function i(t){switch(r.call(t)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return g(t,Error)}}function a(t,e){return r.call(t)===`[object ${e}]`}function s(t){return a(t,"ErrorEvent")}function o(t){return a(t,"DOMError")}function c(t){return a(t,"DOMException")}function u(t){return a(t,"String")}function l(t){return null===t||"object"!==typeof t&&"function"!==typeof t}function h(t){return a(t,"Object")}function p(t){return"undefined"!==typeof Event&&g(t,Event)}function d(t){return"undefined"!==typeof Element&&g(t,Element)}function _(t){return a(t,"RegExp")}function f(t){return Boolean(t&&t.then&&"function"===typeof t.then)}function v(t){return h(t)&&"nativeEvent"in t&&"preventDefault"in t&&"stopPropagation"in t}function m(t){return"number"===typeof t&&t!==t}function g(t,e){try{return t instanceof e}catch(n){return!1}}},17914:(t,e,n)=>{"use strict";n.d(e,{Ow:()=>a,pq:()=>s,vF:()=>c});var r=n(67373),i=(0,r.V)(),a=["debug","info","warn","error","log","assert","trace"];function s(t){var e=(0,r.V)();if(!("console"in e))return t();var n=e.console,i={};a.forEach((t=>{var r=n[t]&&n[t].__sentry_original__;t in e.console&&r&&(i[t]=n[t],n[t]=r)}));try{return t()}finally{Object.keys(i).forEach((t=>{n[t]=i[t]}))}}function o(){let t=!1;var e={enable:()=>{t=!0},disable:()=>{t=!1}};return"undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__?a.forEach((n=>{e[n]=(...e)=>{t&&s((()=>{i.console[n](`Sentry Logger [${n}]:`,...e)}))}})):a.forEach((t=>{e[t]=()=>{}})),e}let c;c="undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__?(0,r.B)("logger",o):o()},26566:(t,e,n)=>{"use strict";n.d(e,{$X:()=>o,GR:()=>l,M6:()=>u,eJ:()=>a,gO:()=>c,k9:()=>h});var r=n(67373),i=n(15873);function a(){var t=(0,r.V)(),e=t.crypto||t.msCrypto;if(e&&e.randomUUID)return e.randomUUID().replace(/-/g,"");var n=e&&e.getRandomValues?()=>e.getRandomValues(new Uint8Array(1))[0]:()=>16*Math.random();return([1e7]+1e3+4e3+8e3+1e11).replace(/[018]/g,(t=>(t^(15&n())>>t/4).toString(16)))}function s(t){return t.exception&&t.exception.values?t.exception.values[0]:void 0}function o(t){const{message:e,event_id:n}=t;if(e)return e;var r=s(t);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||n||"<unknown>":n||"<unknown>"}function c(t,e,n){var r=t.exception=t.exception||{},i=r.values=r.values||[],a=i[0]=i[0]||{};a.value||(a.value=e||""),a.type||(a.type=n||"Error")}function u(t,e){var n=s(t);if(n){var r=n.mechanism;if(n.mechanism={type:"generic",handled:!0,...r,...e},e&&"data"in e){var i={...r&&r.data,...e.data};n.mechanism.data=i}}}function l(t){if(t&&t.__sentry_captured__)return!0;try{(0,i.my)(t,"__sentry_captured__",!0)}catch(e){}return!1}function h(t){return Array.isArray(t)?t:[t]}},8658:(t,e,n)=>{"use strict";n.d(e,{Vw:()=>o,fj:()=>s,wD:()=>a});var r=n(50751);t=n.hmd(t);var i=n(85224);function a(){return!(0,r.Z)()&&"[object process]"===Object.prototype.toString.call("undefined"!==typeof i?i:0)}function s(t,e){return t.require(e)}function o(e){let n;try{n=s(t,e)}catch(r){}try{const{cwd:r}=s(t,"process");n=s(t,`${r()}/node_modules/${e}`)}catch(r){}return n}},15873:(t,e,n)=>{"use strict";n.d(e,{Ce:()=>f,GS:()=>s,HF:()=>_,W4:()=>h,my:()=>o,pO:()=>c,sp:()=>u,u4:()=>l});var r=n(30736),i=n(79850),a=n(97867);function s(t,e,n){if(e in t){var r=t[e],i=n(r);if("function"===typeof i)try{c(i,r)}catch(a){}t[e]=i}}function o(t,e,n){Object.defineProperty(t,e,{value:n,writable:!0,configurable:!0})}function c(t,e){var n=e.prototype||{};t.prototype=e.prototype=n,o(t,"__sentry_original__",e)}function u(t){return t.__sentry_original__}function l(t){return Object.keys(t).map((e=>`${encodeURIComponent(e)}=${encodeURIComponent(t[e])}`)).join("&")}function h(t){if((0,i.bJ)(t))return{message:t.message,name:t.name,stack:t.stack,...d(t)};if((0,i.xH)(t)){var e={type:t.type,target:p(t.target),currentTarget:p(t.currentTarget),...d(t)};return"undefined"!==typeof CustomEvent&&(0,i.tH)(t,CustomEvent)&&(e.detail=t.detail),e}return t}function p(t){try{return(0,i.vq)(t)?(0,r.Hd)(t):Object.prototype.toString.call(t)}catch(e){return"<unknown>"}}function d(t){if("object"===typeof t&&null!==t){var e={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}return{}}function _(t,e=40){var n=Object.keys(h(t));if(n.sort(),!n.length)return"[object has no keys]";if(n[0].length>=e)return(0,a.xv)(n[0],e);for(let i=n.length;i>0;i--){var r=n.slice(0,i).join(", ");if(!(r.length>e))return i===n.length?r:(0,a.xv)(r,e)}return""}function f(t){return v(t,new Map)}function v(t,e){if((0,i.Qd)(t)){if(void 0!==(a=e.get(t)))return a;var n={};for(var r of(e.set(t,n),Object.keys(t)))"undefined"!==typeof t[r]&&(n[r]=v(t[r],e));return n}if(Array.isArray(t)){var a;if(void 0!==(a=e.get(t)))return a;n=[];return e.set(t,n),t.forEach((t=>{n.push(v(t,e))})),n}return t}},18935:(t,e,n)=>{"use strict";n.d(e,{gd:()=>i,qQ:()=>o,vk:()=>a});var r=50;function i(...t){var e=t.sort(((t,e)=>t[0]-e[0])).map((t=>t[1]));return(t,n=0)=>{var i=[];for(var a of t.split("\n").slice(n)){var s=a.replace(/\(error: (.*)\)/,"$1");for(var o of e){var c=o(s);if(c){i.push(c);break}}}return function(t){if(!t.length)return[];let e=t;var n=e[0].function||"",i=e[e.length-1].function||"";-1===n.indexOf("captureMessage")&&-1===n.indexOf("captureException")||(e=e.slice(1));-1!==i.indexOf("sentryWrapped")&&(e=e.slice(0,-1));return e.slice(0,r).map((t=>({...t,filename:t.filename||e[0].filename,function:t.function||"?"}))).reverse()}(i)}}function a(t){return Array.isArray(t)?i(...t):t}var s="<anonymous>";function o(t){try{return t&&"function"===typeof t&&t.name||s}catch(e){return s}}},97867:(t,e,n)=>{"use strict";n.d(e,{_c:()=>s,gt:()=>a,xv:()=>i});var r=n(79850);function i(t,e=0){return"string"!==typeof t||0===e||t.length<=e?t:`${t.substr(0,e)}...`}function a(t,e){if(!Array.isArray(t))return"";var n=[];for(let a=0;a<t.length;a++){var r=t[a];try{n.push(String(r))}catch(i){n.push("[value cannot be serialized]")}}return n.join(e)}function s(t,e){return!!(0,r.Kg)(t)&&((0,r.gd)(e)?e.test(t):"string"===typeof e&&-1!==t.indexOf(e))}},93710:(t,e,n)=>{"use strict";n.d(e,{NJ:()=>c,ap:()=>s,m7:()=>o,vm:()=>a});var r=n(67373),i=n(17914);function a(){if(!("fetch"in(0,r.V)()))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch(t){return!1}}function s(t){return t&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(t.toString())}function o(){if(!a())return!1;var t=(0,r.V)();if(s(t.fetch))return!0;let e=!1;var n=t.document;if(n&&"function"===typeof n.createElement)try{var o=n.createElement("iframe");o.hidden=!0,n.head.appendChild(o),o.contentWindow&&o.contentWindow.fetch&&(e=s(o.contentWindow.fetch)),n.head.removeChild(o)}catch(c){("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.vF.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",c)}return e}function c(){var t=(0,r.V)(),e=t.chrome,n=e&&e.app&&e.app.runtime,i="history"in t&&!!t.history.pushState&&!!t.history.replaceState;return!n&&i}},45684:(t,e,n)=>{"use strict";n.d(e,{T2:()=>o,XW:()=>a,xg:()=>s});var r,i=n(79850);function a(t){return new o((e=>{e(t)}))}function s(t){return new o(((e,n)=>{n(t)}))}!function(t){t[t.PENDING=0]="PENDING";t[t.RESOLVED=1]="RESOLVED";t[t.REJECTED=2]="REJECTED"}(r||(r={}));class o{__init(){this._state=r.PENDING}__init2(){this._handlers=[]}constructor(t){o.prototype.__init.call(this),o.prototype.__init2.call(this),o.prototype.__init3.call(this),o.prototype.__init4.call(this),o.prototype.__init5.call(this),o.prototype.__init6.call(this);try{t(this._resolve,this._reject)}catch(e){this._reject(e)}}then(t,e){return new o(((n,r)=>{this._handlers.push([!1,e=>{if(t)try{n(t(e))}catch(i){r(i)}else n(e)},t=>{if(e)try{n(e(t))}catch(i){r(i)}else r(t)}]),this._executeHandlers()}))}catch(t){return this.then((t=>t),t)}finally(t){return new o(((e,n)=>{let r,i;return this.then((e=>{i=!1,r=e,t&&t()}),(e=>{i=!0,r=e,t&&t()})).then((()=>{i?n(r):e(r)}))}))}__init3(){this._resolve=t=>{this._setResult(r.RESOLVED,t)}}__init4(){this._reject=t=>{this._setResult(r.REJECTED,t)}}__init5(){this._setResult=(t,e)=>{this._state===r.PENDING&&((0,i.Qg)(e)?e.then(this._resolve,this._reject):(this._state=t,this._value=e,this._executeHandlers()))}}__init6(){this._executeHandlers=()=>{if(this._state!==r.PENDING){var t=this._handlers.slice();this._handlers=[],t.forEach((t=>{t[0]||(this._state===r.RESOLVED&&t[1](this._value),this._state===r.REJECTED&&t[2](this._value),t[0]=!0)}))}}}}},16559:(t,e,n)=>{"use strict";n.d(e,{LU:()=>l,k3:()=>p,lu:()=>c,zf:()=>u});var r=n(67373),i=n(8658);t=n.hmd(t);var a={nowSeconds:()=>Date.now()/1e3};var s=(0,i.wD)()?function(){try{return(0,i.fj)(t,"perf_hooks").performance}catch(e){return}}():function(){const{performance:t}=(0,r.V)();if(t&&t.now)return{now:()=>t.now(),timeOrigin:Date.now()-t.now()}}(),o=void 0===s?a:{nowSeconds:()=>(s.timeOrigin+s.now())/1e3},c=a.nowSeconds.bind(a),u=o.nowSeconds.bind(o),l=u;let h;var p=(()=>{const{performance:t}=(0,r.V)();if(t&&t.now){var e=36e5,n=t.now(),i=Date.now(),a=t.timeOrigin?Math.abs(t.timeOrigin+n-i):e,s=a<e,o=t.timing&&t.timing.navigationStart,c="number"===typeof o?Math.abs(o+n-i):e;return s||c<e?a<=c?(h="timeOrigin",t.timeOrigin):(h="navigationStart",o):(h="dateNow",i)}h="none"})()},90386:(t,e,n)=>{var r,i=n(85224);!function(){"use strict";var e="input is invalid type",a="object"===typeof window,s=a?window:{};s.JS_SHA256_NO_WINDOW&&(a=!1);var o=!a&&"object"===typeof self,c=!s.JS_SHA256_NO_NODE_JS&&"object"===typeof i&&i.versions&&i.versions.node;c?s=n.g:o&&(s=self);var u=!s.JS_SHA256_NO_COMMON_JS&&t.exports,l=n.amdO,h=!s.JS_SHA256_NO_ARRAY_BUFFER&&"undefined"!==typeof ArrayBuffer,p="0123456789abcdef".split(""),d=[-2147483648,8388608,32768,128],_=[24,16,8,0],f=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],v=["hex","array","digest","arrayBuffer"],m=[];!s.JS_SHA256_NO_NODE_JS&&Array.isArray||(Array.isArray=function(t){return"[object Array]"===Object.prototype.toString.call(t)}),!h||!s.JS_SHA256_NO_ARRAY_BUFFER_IS_VIEW&&ArrayBuffer.isView||(ArrayBuffer.isView=function(t){return"object"===typeof t&&t.buffer&&t.buffer.constructor===ArrayBuffer});var g=function(t,e){return function(n){return new T(e,!0).update(n)[t]()}},y=function(t){var e=g("hex",t);c&&(e=E(e,t)),e.create=function(){return new T(t)},e.update=function(t){return e.create().update(t)};for(var n=0;n<v.length;++n){var r=v[n];e[r]=g(r,t)}return e},E=function(t,r){var i,a=n(24394),o=n(91903).Buffer,c=r?"sha224":"sha256";i=o.from&&!s.JS_SHA256_NO_BUFFER_FROM?o.from:function(t){return new o(t)};return function(n){if("string"===typeof n)return a.createHash(c).update(n,"utf8").digest("hex");if(null===n||void 0===n)throw new Error(e);return n.constructor===ArrayBuffer&&(n=new Uint8Array(n)),Array.isArray(n)||ArrayBuffer.isView(n)||n.constructor===o?a.createHash(c).update(i(n)).digest("hex"):t(n)}},S=function(t,e){return function(n,r){return new R(n,e,!0).update(r)[t]()}},b=function(t){var e=S("hex",t);e.create=function(e){return new R(e,t)},e.update=function(t,n){return e.create(t).update(n)};for(var n=0;n<v.length;++n){var r=v[n];e[r]=S(r,t)}return e};function T(t,e){e?(m[0]=m[16]=m[1]=m[2]=m[3]=m[4]=m[5]=m[6]=m[7]=m[8]=m[9]=m[10]=m[11]=m[12]=m[13]=m[14]=m[15]=0,this.blocks=m):this.blocks=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],t?(this.h0=3238371032,this.h1=914150663,this.h2=812702999,this.h3=4144912697,this.h4=4290775857,this.h5=1750603025,this.h6=1694076839,this.h7=3204075428):(this.h0=1779033703,this.h1=3144134277,this.h2=1013904242,this.h3=2773480762,this.h4=1359893119,this.h5=2600822924,this.h6=528734635,this.h7=1541459225),this.block=this.start=this.bytes=this.hBytes=0,this.finalized=this.hashed=!1,this.first=!0,this.is224=t}function R(t,n,r){var i,a=typeof t;if("string"===a){var s,o=[],c=t.length,u=0;for(i=0;i<c;++i)(s=t.charCodeAt(i))<128?o[u++]=s:s<2048?(o[u++]=192|s>>>6,o[u++]=128|63&s):s<55296||s>=57344?(o[u++]=224|s>>>12,o[u++]=128|s>>>6&63,o[u++]=128|63&s):(s=65536+((1023&s)<<10|1023&t.charCodeAt(++i)),o[u++]=240|s>>>18,o[u++]=128|s>>>12&63,o[u++]=128|s>>>6&63,o[u++]=128|63&s);t=o}else{if("object"!==a)throw new Error(e);if(null===t)throw new Error(e);if(h&&t.constructor===ArrayBuffer)t=new Uint8Array(t);else if(!Array.isArray(t)&&(!h||!ArrayBuffer.isView(t)))throw new Error(e)}t.length>64&&(t=new T(n,!0).update(t).array());var l=[],p=[];for(i=0;i<64;++i){var d=t[i]||0;l[i]=92^d,p[i]=54^d}T.call(this,n,r),this.update(p),this.oKeyPad=l,this.inner=!0,this.sharedMemory=r}T.prototype.update=function(t){if(!this.finalized){var n,r=typeof t;if("string"!==r){if("object"!==r)throw new Error(e);if(null===t)throw new Error(e);if(h&&t.constructor===ArrayBuffer)t=new Uint8Array(t);else if(!Array.isArray(t)&&(!h||!ArrayBuffer.isView(t)))throw new Error(e);n=!0}for(var i,a,s=0,o=t.length,c=this.blocks;s<o;){if(this.hashed&&(this.hashed=!1,c[0]=this.block,this.block=c[16]=c[1]=c[2]=c[3]=c[4]=c[5]=c[6]=c[7]=c[8]=c[9]=c[10]=c[11]=c[12]=c[13]=c[14]=c[15]=0),n)for(a=this.start;s<o&&a<64;++s)c[a>>>2]|=t[s]<<_[3&a++];else for(a=this.start;s<o&&a<64;++s)(i=t.charCodeAt(s))<128?c[a>>>2]|=i<<_[3&a++]:i<2048?(c[a>>>2]|=(192|i>>>6)<<_[3&a++],c[a>>>2]|=(128|63&i)<<_[3&a++]):i<55296||i>=57344?(c[a>>>2]|=(224|i>>>12)<<_[3&a++],c[a>>>2]|=(128|i>>>6&63)<<_[3&a++],c[a>>>2]|=(128|63&i)<<_[3&a++]):(i=65536+((1023&i)<<10|1023&t.charCodeAt(++s)),c[a>>>2]|=(240|i>>>18)<<_[3&a++],c[a>>>2]|=(128|i>>>12&63)<<_[3&a++],c[a>>>2]|=(128|i>>>6&63)<<_[3&a++],c[a>>>2]|=(128|63&i)<<_[3&a++]);this.lastByteIndex=a,this.bytes+=a-this.start,a>=64?(this.block=c[16],this.start=a-64,this.hash(),this.hashed=!0):this.start=a}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296|0,this.bytes=this.bytes%4294967296),this}},T.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var t=this.blocks,e=this.lastByteIndex;t[16]=this.block,t[e>>>2]|=d[3&e],this.block=t[16],e>=56&&(this.hashed||this.hash(),t[0]=this.block,t[16]=t[1]=t[2]=t[3]=t[4]=t[5]=t[6]=t[7]=t[8]=t[9]=t[10]=t[11]=t[12]=t[13]=t[14]=t[15]=0),t[14]=this.hBytes<<3|this.bytes>>>29,t[15]=this.bytes<<3,this.hash()}},T.prototype.hash=function(){var t,e,n,r,i,a,s,o,c,u=this.h0,l=this.h1,h=this.h2,p=this.h3,d=this.h4,_=this.h5,v=this.h6,m=this.h7,g=this.blocks;for(t=16;t<64;++t)e=((i=g[t-15])>>>7|i<<25)^(i>>>18|i<<14)^i>>>3,n=((i=g[t-2])>>>17|i<<15)^(i>>>19|i<<13)^i>>>10,g[t]=g[t-16]+e+g[t-7]+n|0;for(c=l&h,t=0;t<64;t+=4)this.first?(this.is224?(a=300032,m=(i=g[0]-1413257819)-150054599|0,p=i+24177077|0):(a=704751109,m=(i=g[0]-210244248)-1521486534|0,p=i+143694565|0),this.first=!1):(e=(u>>>2|u<<30)^(u>>>13|u<<19)^(u>>>22|u<<10),r=(a=u&l)^u&h^c,m=p+(i=m+(n=(d>>>6|d<<26)^(d>>>11|d<<21)^(d>>>25|d<<7))+(d&_^~d&v)+f[t]+g[t])|0,p=i+(e+r)|0),e=(p>>>2|p<<30)^(p>>>13|p<<19)^(p>>>22|p<<10),r=(s=p&u)^p&l^a,v=h+(i=v+(n=(m>>>6|m<<26)^(m>>>11|m<<21)^(m>>>25|m<<7))+(m&d^~m&_)+f[t+1]+g[t+1])|0,e=((h=i+(e+r)|0)>>>2|h<<30)^(h>>>13|h<<19)^(h>>>22|h<<10),r=(o=h&p)^h&u^s,_=l+(i=_+(n=(v>>>6|v<<26)^(v>>>11|v<<21)^(v>>>25|v<<7))+(v&m^~v&d)+f[t+2]+g[t+2])|0,e=((l=i+(e+r)|0)>>>2|l<<30)^(l>>>13|l<<19)^(l>>>22|l<<10),r=(c=l&h)^l&p^o,d=u+(i=d+(n=(_>>>6|_<<26)^(_>>>11|_<<21)^(_>>>25|_<<7))+(_&v^~_&m)+f[t+3]+g[t+3])|0,u=i+(e+r)|0,this.chromeBugWorkAround=!0;this.h0=this.h0+u|0,this.h1=this.h1+l|0,this.h2=this.h2+h|0,this.h3=this.h3+p|0,this.h4=this.h4+d|0,this.h5=this.h5+_|0,this.h6=this.h6+v|0,this.h7=this.h7+m|0},T.prototype.hex=function(){this.finalize();var t=this.h0,e=this.h1,n=this.h2,r=this.h3,i=this.h4,a=this.h5,s=this.h6,o=this.h7,c=p[t>>>28&15]+p[t>>>24&15]+p[t>>>20&15]+p[t>>>16&15]+p[t>>>12&15]+p[t>>>8&15]+p[t>>>4&15]+p[15&t]+p[e>>>28&15]+p[e>>>24&15]+p[e>>>20&15]+p[e>>>16&15]+p[e>>>12&15]+p[e>>>8&15]+p[e>>>4&15]+p[15&e]+p[n>>>28&15]+p[n>>>24&15]+p[n>>>20&15]+p[n>>>16&15]+p[n>>>12&15]+p[n>>>8&15]+p[n>>>4&15]+p[15&n]+p[r>>>28&15]+p[r>>>24&15]+p[r>>>20&15]+p[r>>>16&15]+p[r>>>12&15]+p[r>>>8&15]+p[r>>>4&15]+p[15&r]+p[i>>>28&15]+p[i>>>24&15]+p[i>>>20&15]+p[i>>>16&15]+p[i>>>12&15]+p[i>>>8&15]+p[i>>>4&15]+p[15&i]+p[a>>>28&15]+p[a>>>24&15]+p[a>>>20&15]+p[a>>>16&15]+p[a>>>12&15]+p[a>>>8&15]+p[a>>>4&15]+p[15&a]+p[s>>>28&15]+p[s>>>24&15]+p[s>>>20&15]+p[s>>>16&15]+p[s>>>12&15]+p[s>>>8&15]+p[s>>>4&15]+p[15&s];return this.is224||(c+=p[o>>>28&15]+p[o>>>24&15]+p[o>>>20&15]+p[o>>>16&15]+p[o>>>12&15]+p[o>>>8&15]+p[o>>>4&15]+p[15&o]),c},T.prototype.toString=T.prototype.hex,T.prototype.digest=function(){this.finalize();var t=this.h0,e=this.h1,n=this.h2,r=this.h3,i=this.h4,a=this.h5,s=this.h6,o=this.h7,c=[t>>>24&255,t>>>16&255,t>>>8&255,255&t,e>>>24&255,e>>>16&255,e>>>8&255,255&e,n>>>24&255,n>>>16&255,n>>>8&255,255&n,r>>>24&255,r>>>16&255,r>>>8&255,255&r,i>>>24&255,i>>>16&255,i>>>8&255,255&i,a>>>24&255,a>>>16&255,a>>>8&255,255&a,s>>>24&255,s>>>16&255,s>>>8&255,255&s];return this.is224||c.push(o>>>24&255,o>>>16&255,o>>>8&255,255&o),c},T.prototype.array=T.prototype.digest,T.prototype.arrayBuffer=function(){this.finalize();var t=new ArrayBuffer(this.is224?28:32),e=new DataView(t);return e.setUint32(0,this.h0),e.setUint32(4,this.h1),e.setUint32(8,this.h2),e.setUint32(12,this.h3),e.setUint32(16,this.h4),e.setUint32(20,this.h5),e.setUint32(24,this.h6),this.is224||e.setUint32(28,this.h7),t},R.prototype=new T,R.prototype.finalize=function(){if(T.prototype.finalize.call(this),this.inner){this.inner=!1;var t=this.array();T.call(this,this.is224,this.sharedMemory),this.update(this.oKeyPad),this.update(t),T.prototype.finalize.call(this)}};var x=y();x.sha256=x,x.sha224=y(!0),x.sha256.hmac=b(),x.sha224.hmac=b(!0),u?t.exports=x:(s.sha256=x.sha256,s.sha224=x.sha224,l&&(void 0===(r=function(){return x}.call(x,n,x,t))||(t.exports=r)))}()},42016:(t,e,n)=>{"use strict";n.d(e,{w:()=>s});var r=n(79628),i=n(2697);function a(t){void 0===t&&(t=r.t);var e=t===r.t?i.P:(0,i.N)(t);return function(){return e().dispatch}}var s=a()},48447:(t,e,n)=>{"use strict";n.d(e,{n:()=>a});var r=n(9950),i=n(79628);function a(){return(0,r.useContext)(i.t)}},82443:(t,e,n)=>{"use strict";n.d(e,{d:()=>l});var r=n(9950),i=n(48447),a=n(4131),s=n(1849),o=n(79628),c=function(t,e){return t===e};function u(t){void 0===t&&(t=o.t);var e=t===o.t?i.n:function(){return(0,r.useContext)(t)};return function(t,n){void 0===n&&(n=c);var i=e(),o=function(t,e,n,i){var o,c=(0,r.useReducer)((function(t){return t+1}),0)[1],u=(0,r.useMemo)((function(){return(0,a.K)(n,i)}),[n,i]),l=(0,r.useRef)(),h=(0,r.useRef)(),p=(0,r.useRef)(),d=(0,r.useRef)(),_=n.getState();try{if(t!==h.current||_!==p.current||l.current){var f=t(_);o=void 0!==d.current&&e(f,d.current)?d.current:f}else o=d.current}catch(v){throw l.current&&(v.message+="\nThe error may be correlated with this previous error:\n"+l.current.stack+"\n\n"),v}return(0,s.E)((function(){h.current=t,p.current=_,d.current=o,l.current=void 0})),(0,s.E)((function(){function t(){try{var t=n.getState();if(t===p.current)return;var r=h.current(t);if(e(r,d.current))return;d.current=r,p.current=t}catch(v){l.current=v}c()}return u.onStateChange=t,u.trySubscribe(),t(),function(){return u.tryUnsubscribe()}}),[n,u]),o}(t,n,i.store,i.subscription);return(0,r.useDebugValue)(o),o}}var l=u()},42074:(t,e,n)=>{"use strict";n.d(e,{Kd:()=>l,N_:()=>h,ok:()=>_});var r=n(9950),i=n(28429),a=n(1018);function s(){return s=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},s.apply(this,arguments)}function o(t,e){if(null==t)return{};var n,r,i={},a=Object.keys(t);for(r=0;r<a.length;r++)n=a[r],e.indexOf(n)>=0||(i[n]=t[n]);return i}function c(t){return void 0===t&&(t=""),new URLSearchParams("string"===typeof t||Array.isArray(t)||t instanceof URLSearchParams?t:Object.keys(t).reduce(((e,n)=>{let r=t[n];return e.concat(Array.isArray(r)?r.map((t=>[n,t])):[[n,r]])}),[]))}const u=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset"];function l(t){let{basename:e,children:n,window:s}=t,o=r.useRef();null==o.current&&(o.current=(0,a.zR)({window:s,v5Compat:!0}));let c=o.current,[u,l]=r.useState({action:c.action,location:c.location});return r.useLayoutEffect((()=>c.listen(l)),[c]),r.createElement(i.Ix,{basename:e,children:n,location:u.location,navigationType:u.action,navigator:c})}const h=r.forwardRef((function(t,e){let{onClick:n,relative:c,reloadDocument:l,replace:h,state:p,target:d,to:_,preventScrollReset:f}=t,v=o(t,u),m=(0,i.$P)(_,{relative:c}),g=function(t,e){let{target:n,replace:s,state:o,preventScrollReset:c,relative:u}=void 0===e?{}:e,l=(0,i.Zp)(),h=(0,i.zy)(),p=(0,i.x$)(t,{relative:u});return r.useCallback((e=>{if(function(t,e){return 0===t.button&&(!e||"_self"===e)&&!function(t){return!!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)}(t)}(e,n)){e.preventDefault();let n=void 0!==s?s:(0,a.AO)(h)===(0,a.AO)(p);l(t,{replace:n,state:o,preventScrollReset:c,relative:u})}}),[h,l,p,s,o,n,t,c,u])}(_,{replace:h,state:p,target:d,preventScrollReset:f,relative:c});return r.createElement("a",s({},v,{href:m,onClick:l?n:function(t){n&&n(t),t.defaultPrevented||g(t)},ref:e,target:d}))}));var p,d;function _(t){let e=r.useRef(c(t)),n=(0,i.zy)(),a=r.useMemo((()=>function(t,e){let n=c(t);for(let r of e.keys())n.has(r)||e.getAll(r).forEach((t=>{n.append(r,t)}));return n}(n.search,e.current)),[n.search]),s=(0,i.Zp)(),o=r.useCallback(((t,e)=>{const n=c("function"===typeof t?t(a):t);s("?"+n,e)}),[s,a]);return[a,o]}(function(t){t.UseScrollRestoration="useScrollRestoration",t.UseSubmitImpl="useSubmitImpl",t.UseFetcher="useFetcher"})(p||(p={})),function(t){t.UseFetchers="useFetchers",t.UseScrollRestoration="useScrollRestoration"}(d||(d={}))},28429:(t,e,n)=>{"use strict";var r;n.d(e,{$P:()=>E,BV:()=>A,C5:()=>Y,Ix:()=>j,KC:()=>w,Zp:()=>R,g:()=>D,qh:()=>F,sv:()=>I,x$:()=>N,zy:()=>b});var i=n(1018),a=n(9950);function s(){return s=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},s.apply(this,arguments)}const o="function"===typeof Object.is?Object.is:function(t,e){return t===e&&(0!==t||1/t===1/e)||t!==t&&e!==e},{useState:c,useEffect:u,useLayoutEffect:l,useDebugValue:h}=r||(r=n.t(a,2));function p(t){const e=t.getSnapshot,n=t.value;try{const t=e();return!o(n,t)}catch(r){return!0}}"undefined"===typeof window||"undefined"===typeof window.document||window.document.createElement,(r||(r=n.t(a,2))).useSyncExternalStore;const d=a.createContext(null);const _=a.createContext(null);const f=a.createContext(null);const v=a.createContext(null);const m=a.createContext(null);const g=a.createContext({outlet:null,matches:[]});const y=a.createContext(null);function E(t,e){let{relative:n}=void 0===e?{}:e;S()||(0,i.V1)(!1);let{basename:r,navigator:s}=a.useContext(v),{hash:o,pathname:c,search:u}=N(t,{relative:n}),l=c;return"/"!==r&&(l="/"===c?r:(0,i.HS)([r,c])),s.createHref({pathname:l,search:u,hash:o})}function S(){return null!=a.useContext(m)}function b(){return S()||(0,i.V1)(!1),a.useContext(m).location}function T(t){return t.filter(((e,n)=>0===n||!e.route.index&&e.pathnameBase!==t[n-1].pathnameBase))}function R(){S()||(0,i.V1)(!1);let{basename:t,navigator:e}=a.useContext(v),{matches:n}=a.useContext(g),{pathname:r}=b(),s=JSON.stringify(T(n).map((t=>t.pathnameBase))),o=a.useRef(!1);return a.useEffect((()=>{o.current=!0})),a.useCallback((function(n,a){if(void 0===a&&(a={}),!o.current)return;if("number"===typeof n)return void e.go(n);let c=(0,i.Gh)(n,JSON.parse(s),r,"path"===a.relative);"/"!==t&&(c.pathname="/"===c.pathname?t:(0,i.HS)([t,c.pathname])),(a.replace?e.replace:e.push)(c,a.state,a)}),[t,e,s,r])}const x=a.createContext(null);function w(){return a.useContext(x)}function D(){let{matches:t}=a.useContext(g),e=t[t.length-1];return e?e.params:{}}function N(t,e){let{relative:n}=void 0===e?{}:e,{matches:r}=a.useContext(g),{pathname:s}=b(),o=JSON.stringify(T(r).map((t=>t.pathnameBase)));return a.useMemo((()=>(0,i.Gh)(t,JSON.parse(o),s,"path"===n)),[t,o,s,n])}function k(){let t=function(){var t;let e=a.useContext(y),n=$(G.UseRouteError),r=a.useContext(g),s=r.matches[r.matches.length-1];if(e)return e;return r||(0,i.V1)(!1),!s.route.id&&(0,i.V1)(!1),null==(t=n.errors)?void 0:t[s.route.id]}(),e=(0,i.pX)(t)?t.status+" "+t.statusText:t instanceof Error?t.message:JSON.stringify(t),n=t instanceof Error?t.stack:null,r="rgba(200,200,200, 0.5)",s={padding:"0.5rem",backgroundColor:r},o={padding:"2px 4px",backgroundColor:r};return a.createElement(a.Fragment,null,a.createElement("h2",null,"Unhandled Thrown Error!"),a.createElement("h3",{style:{fontStyle:"italic"}},e),n?a.createElement("pre",{style:s},n):null,a.createElement("p",null,"\ud83d\udcbf Hey developer \ud83d\udc4b"),a.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own\xa0",a.createElement("code",{style:o},"errorElement")," props on\xa0",a.createElement("code",{style:o},"<Route>")))}class B extends a.Component{constructor(t){super(t),this.state={location:t.location,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,e){return e.location!==t.location?{error:t.error,location:t.location}:{error:t.error||e.error,location:e.location}}componentDidCatch(t,e){console.error("React Router caught the following error during render",t,e)}render(){return this.state.error?a.createElement(y.Provider,{value:this.state.error,children:this.props.component}):this.props.children}}function U(t){let{routeContext:e,match:n,children:r}=t,i=a.useContext(d);return i&&n.route.errorElement&&(i._deepestRenderedBoundaryId=n.route.id),a.createElement(g.Provider,{value:e},r)}function O(t,e,n){if(void 0===e&&(e=[]),null==t){if(null==n||!n.errors)return null;t=n.matches}let r=t,s=null==n?void 0:n.errors;if(null!=s){let t=r.findIndex((t=>t.route.id&&(null==s?void 0:s[t.route.id])));t>=0||(0,i.V1)(!1),r=r.slice(0,Math.min(r.length,t+1))}return r.reduceRight(((t,i,o)=>{let c=i.route.id?null==s?void 0:s[i.route.id]:null,u=n?i.route.errorElement||a.createElement(k,null):null,l=()=>a.createElement(U,{match:i,routeContext:{outlet:t,matches:e.concat(r.slice(0,o+1))}},c?u:void 0!==i.route.element?i.route.element:t);return n&&(i.route.errorElement||0===o)?a.createElement(B,{location:n.location,component:u,error:c,children:l()}):l()}),null)}var C,G;function $(t){let e=a.useContext(f);return e||(0,i.V1)(!1),e}!function(t){t.UseRevalidator="useRevalidator"}(C||(C={})),function(t){t.UseLoaderData="useLoaderData",t.UseActionData="useActionData",t.UseRouteError="useRouteError",t.UseNavigation="useNavigation",t.UseRouteLoaderData="useRouteLoaderData",t.UseMatches="useMatches",t.UseRevalidator="useRevalidator"}(G||(G={}));function Y(t){let{to:e,replace:n,state:r,relative:s}=t;S()||(0,i.V1)(!1);let o=a.useContext(f),c=R();return a.useEffect((()=>{o&&"idle"!==o.navigation.state||c(e,{replace:n,state:r,relative:s})})),null}function I(t){return function(t){let e=a.useContext(g).outlet;return e?a.createElement(x.Provider,{value:t},e):e}(t.context)}function F(t){(0,i.V1)(!1)}function j(t){let{basename:e="/",children:n=null,location:r,navigationType:s=i.rc.Pop,navigator:o,static:c=!1}=t;S()&&(0,i.V1)(!1);let u=e.replace(/^\/*/,"/"),l=a.useMemo((()=>({basename:u,navigator:o,static:c})),[u,o,c]);"string"===typeof r&&(r=(0,i.Rr)(r));let{pathname:h="/",search:p="",hash:d="",state:_=null,key:f="default"}=r,g=a.useMemo((()=>{let t=(0,i.pb)(h,u);return null==t?null:{pathname:t,search:p,hash:d,state:_,key:f}}),[u,h,p,d,_,f]);return null==g?null:a.createElement(v.Provider,{value:l},a.createElement(m.Provider,{children:n,value:{location:g,navigationType:s}}))}function A(t){let{children:e,location:n}=t,r=a.useContext(_);return function(t,e){S()||(0,i.V1)(!1);let n=a.useContext(f),{matches:r}=a.useContext(g),o=r[r.length-1],c=o?o.params:{},u=(o&&o.pathname,o?o.pathnameBase:"/");o&&o.route;let l,h=b();if(e){var p;let t="string"===typeof e?(0,i.Rr)(e):e;"/"===u||(null==(p=t.pathname)?void 0:p.startsWith(u))||(0,i.V1)(!1),l=t}else l=h;let d=l.pathname||"/",_="/"===u?d:d.slice(u.length)||"/",v=(0,i.ue)(t,{pathname:_}),y=O(v&&v.map((t=>Object.assign({},t,{params:Object.assign({},c,t.params),pathname:(0,i.HS)([u,t.pathname]),pathnameBase:"/"===t.pathnameBase?u:(0,i.HS)([u,t.pathnameBase])}))),r,n||void 0);return e?a.createElement(m.Provider,{value:{location:s({pathname:"/",search:"",hash:"",state:null,key:"default"},l),navigationType:i.rc.Pop}},y):y}(r&&!e?r.router.routes:L(e),n)}var P;!function(t){t[t.pending=0]="pending",t[t.success=1]="success",t[t.error=2]="error"}(P||(P={}));new Promise((()=>{}));a.Component;function L(t,e){void 0===e&&(e=[]);let n=[];return a.Children.forEach(t,((t,r)=>{if(!a.isValidElement(t))return;if(t.type===a.Fragment)return void n.push.apply(n,L(t.props.children,e));t.type!==F&&(0,i.V1)(!1),t.props.index&&t.props.children&&(0,i.V1)(!1);let s=[...e,r],o={id:t.props.id||s.join("-"),caseSensitive:t.props.caseSensitive,element:t.props.element,index:t.props.index,path:t.props.path,loader:t.props.loader,action:t.props.action,errorElement:t.props.errorElement,hasErrorBoundary:null!=t.props.errorElement,shouldRevalidate:t.props.shouldRevalidate,handle:t.props.handle};t.props.children&&(o.children=L(t.props.children,s)),n.push(o)})),n}},32049:(t,e)=>{"use strict";var n=Symbol.for("react.element"),r=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),o=Symbol.for("react.provider"),c=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),h=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),d=Symbol.iterator;var _={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},f=Object.assign,v={};function m(t,e,n){this.props=t,this.context=e,this.refs=v,this.updater=n||_}function g(){}function y(t,e,n){this.props=t,this.context=e,this.refs=v,this.updater=n||_}m.prototype.isReactComponent={},m.prototype.setState=function(t,e){if("object"!==typeof t&&"function"!==typeof t&&null!=t)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,t,e,"setState")},m.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this,t,"forceUpdate")},g.prototype=m.prototype;var E=y.prototype=new g;E.constructor=y,f(E,m.prototype),E.isPureReactComponent=!0;var S=Array.isArray,b=Object.prototype.hasOwnProperty,T={current:null},R={key:!0,ref:!0,__self:!0,__source:!0};function x(t,e,r){var i,a={},s=null,o=null;if(null!=e)for(i in void 0!==e.ref&&(o=e.ref),void 0!==e.key&&(s=""+e.key),e)b.call(e,i)&&!R.hasOwnProperty(i)&&(a[i]=e[i]);var c=arguments.length-2;if(1===c)a.children=r;else if(1<c){for(var u=Array(c),l=0;l<c;l++)u[l]=arguments[l+2];a.children=u}if(t&&t.defaultProps)for(i in c=t.defaultProps)void 0===a[i]&&(a[i]=c[i]);return{$$typeof:n,type:t,key:s,ref:o,props:a,_owner:T.current}}function w(t){return"object"===typeof t&&null!==t&&t.$$typeof===n}var D=/\/+/g;function N(t,e){return"object"===typeof t&&null!==t&&null!=t.key?function(t){var e={"=":"=0",":":"=2"};return"$"+t.replace(/[=:]/g,(function(t){return e[t]}))}(""+t.key):e.toString(36)}function k(t,e,i,a,s){var o=typeof t;"undefined"!==o&&"boolean"!==o||(t=null);var c=!1;if(null===t)c=!0;else switch(o){case"string":case"number":c=!0;break;case"object":switch(t.$$typeof){case n:case r:c=!0}}if(c)return s=s(c=t),t=""===a?"."+N(c,0):a,S(s)?(i="",null!=t&&(i=t.replace(D,"$&/")+"/"),k(s,e,i,"",(function(t){return t}))):null!=s&&(w(s)&&(s=function(t,e){return{$$typeof:n,type:t.type,key:e,ref:t.ref,props:t.props,_owner:t._owner}}(s,i+(!s.key||c&&c.key===s.key?"":(""+s.key).replace(D,"$&/")+"/")+t)),e.push(s)),1;if(c=0,a=""===a?".":a+":",S(t))for(var u=0;u<t.length;u++){var l=a+N(o=t[u],u);c+=k(o,e,i,l,s)}else if(l=function(t){return null===t||"object"!==typeof t?null:"function"===typeof(t=d&&t[d]||t["@@iterator"])?t:null}(t),"function"===typeof l)for(t=l.call(t),u=0;!(o=t.next()).done;)c+=k(o=o.value,e,i,l=a+N(o,u++),s);else if("object"===o)throw e=String(t),Error("Objects are not valid as a React child (found: "+("[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e)+"). If you meant to render a collection of children, use an array instead.");return c}function B(t,e,n){if(null==t)return t;var r=[],i=0;return k(t,r,"","",(function(t){return e.call(n,t,i++)})),r}function U(t){if(-1===t._status){var e=t._result;(e=e()).then((function(e){0!==t._status&&-1!==t._status||(t._status=1,t._result=e)}),(function(e){0!==t._status&&-1!==t._status||(t._status=2,t._result=e)})),-1===t._status&&(t._status=0,t._result=e)}if(1===t._status)return t._result.default;throw t._result}var O={current:null},C={transition:null},G={ReactCurrentDispatcher:O,ReactCurrentBatchConfig:C,ReactCurrentOwner:T};e.Children={map:B,forEach:function(t,e,n){B(t,(function(){e.apply(this,arguments)}),n)},count:function(t){var e=0;return B(t,(function(){e++})),e},toArray:function(t){return B(t,(function(t){return t}))||[]},only:function(t){if(!w(t))throw Error("React.Children.only expected to receive a single React element child.");return t}},e.Component=m,e.Fragment=i,e.Profiler=s,e.PureComponent=y,e.StrictMode=a,e.Suspense=l,e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=G,e.cloneElement=function(t,e,r){if(null===t||void 0===t)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+t+".");var i=f({},t.props),a=t.key,s=t.ref,o=t._owner;if(null!=e){if(void 0!==e.ref&&(s=e.ref,o=T.current),void 0!==e.key&&(a=""+e.key),t.type&&t.type.defaultProps)var c=t.type.defaultProps;for(u in e)b.call(e,u)&&!R.hasOwnProperty(u)&&(i[u]=void 0===e[u]&&void 0!==c?c[u]:e[u])}var u=arguments.length-2;if(1===u)i.children=r;else if(1<u){c=Array(u);for(var l=0;l<u;l++)c[l]=arguments[l+2];i.children=c}return{$$typeof:n,type:t.type,key:a,ref:s,props:i,_owner:o}},e.createContext=function(t){return(t={$$typeof:c,_currentValue:t,_currentValue2:t,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:o,_context:t},t.Consumer=t},e.createElement=x,e.createFactory=function(t){var e=x.bind(null,t);return e.type=t,e},e.createRef=function(){return{current:null}},e.forwardRef=function(t){return{$$typeof:u,render:t}},e.isValidElement=w,e.lazy=function(t){return{$$typeof:p,_payload:{_status:-1,_result:t},_init:U}},e.memo=function(t,e){return{$$typeof:h,type:t,compare:void 0===e?null:e}},e.startTransition=function(t){var e=C.transition;C.transition={};try{t()}finally{C.transition=e}},e.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")},e.useCallback=function(t,e){return O.current.useCallback(t,e)},e.useContext=function(t){return O.current.useContext(t)},e.useDebugValue=function(){},e.useDeferredValue=function(t){return O.current.useDeferredValue(t)},e.useEffect=function(t,e){return O.current.useEffect(t,e)},e.useId=function(){return O.current.useId()},e.useImperativeHandle=function(t,e,n){return O.current.useImperativeHandle(t,e,n)},e.useInsertionEffect=function(t,e){return O.current.useInsertionEffect(t,e)},e.useLayoutEffect=function(t,e){return O.current.useLayoutEffect(t,e)},e.useMemo=function(t,e){return O.current.useMemo(t,e)},e.useReducer=function(t,e,n){return O.current.useReducer(t,e,n)},e.useRef=function(t){return O.current.useRef(t)},e.useState=function(t){return O.current.useState(t)},e.useSyncExternalStore=function(t,e,n){return O.current.useSyncExternalStore(t,e,n)},e.useTransition=function(){return O.current.useTransition()},e.version="18.2.0"},9950:(t,e,n)=>{"use strict";t.exports=n(32049)}}]);
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license React
|
|
3
|
+
* react.production.min.js
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
6
|
+
*
|
|
7
|
+
* This source code is licensed under the MIT license found in the
|
|
8
|
+
* LICENSE file in the root directory of this source tree.
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* @remix-run/router v1.0.2
|
|
13
|
+
*
|
|
14
|
+
* Copyright (c) Remix Software Inc.
|
|
15
|
+
*
|
|
16
|
+
* This source code is licensed under the MIT license found in the
|
|
17
|
+
* LICENSE.md file in the root directory of this source tree.
|
|
18
|
+
*
|
|
19
|
+
* @license MIT
|
|
20
|
+
*/
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* React Router DOM v6.4.2
|
|
24
|
+
*
|
|
25
|
+
* Copyright (c) Remix Software Inc.
|
|
26
|
+
*
|
|
27
|
+
* This source code is licensed under the MIT license found in the
|
|
28
|
+
* LICENSE.md file in the root directory of this source tree.
|
|
29
|
+
*
|
|
30
|
+
* @license MIT
|
|
31
|
+
*/
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* React Router v6.4.2
|
|
35
|
+
*
|
|
36
|
+
* Copyright (c) Remix Software Inc.
|
|
37
|
+
*
|
|
38
|
+
* This source code is licensed under the MIT license found in the
|
|
39
|
+
* LICENSE.md file in the root directory of this source tree.
|
|
40
|
+
*
|
|
41
|
+
* @license MIT
|
|
42
|
+
*/
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* [js-sha256]{@link https://github.com/emn178/js-sha256}
|
|
46
|
+
*
|
|
47
|
+
* @version 0.11.0
|
|
48
|
+
* @author Chen, Yi-Cyuan [emn178@gmail.com]
|
|
49
|
+
* @copyright Chen, Yi-Cyuan 2014-2024
|
|
50
|
+
* @license MIT
|
|
51
|
+
*/
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(globalThis.webpackChunkemail_maker=globalThis.webpackChunkemail_maker||[]).push([[2859],{34555:(e,t,n)=>{n.d(t,{D3:()=>u,RS:()=>d});var s=n(35901),i=n(9950),o=n(95870),a=n(93163),r=n(80434),c=n(91442);const l=(0,o.Q)();function d(e,t,n){e instanceof c.m||(e=(0,r.My)(e));e.getOrCreateInstance(l,(()=>new a.v)).fire({id:t,payload:n})}const u=(e,t)=>{const n=function(e,t){return(0,r.My)(e).getOrCreateInstance(l,(()=>new a.v)).addEventListener}((0,s.Pj)());(0,i.useEffect)((()=>{const s=n((({id:n,payload:s})=>{n===e&&t(s)}));return()=>s.dispose()}),[n,e,t])}},91442:(e,t,n)=>{n.d(t,{m:()=>a});var s=n(93163),i=n(35911);function o(e){return`service_container_${e}`}class a extends i.j{constructor(e){super(),this._parent=e,this._injections=Object.create(null),this._emitter=this.addDisposable(new s.v)}inject(e,t,n){if("function"===typeof t){let s=this._injections[e],i="function"===typeof s?s():s;const o=this._injections[e]=()=>(i=t(this,i),i);n&&o()}else this._injections[e]=()=>t;this._emitter.fire(e)}_find(e){var t;return this._injections[e]||(null===(t=this._parent)||void 0===t?void 0:t._find(e))}_onInject(e,t,n=new i.j){return n.addDisposable(this._emitter.addEventListener((s=>{e===s&&(n.dispose(),t(this.getInstance(s)))}))),this._parent&&n.addDisposable(this._parent._onInject(e,t,n)),this.addDisposable(n),n}getInstance(e){const t=this._find(e);if("function"===typeof t)return t()}getOrCreateInstance(e,t){const n=this._find(e);if("function"===typeof n)return n();{const n=t(this);return this.inject(e,n),n}}getInstanceAsync(e){const t=this._find(e);return"function"===typeof t?Promise.resolve(t()):new Promise((t=>this._onInject(e,(()=>t(this.getInstance(e))))))}addService(e,t){const n=o(e);this.inject(n,((e,n=[])=>n.indexOf(t)<0?[...n,t]:n))}getServices(e){var t;const n=o(e);return[...this.getInstance(n)||[],...(null===(t=this._parent)||void 0===t?void 0:t.getServices(e))||[]]}createChild(){return new a(this)}dispose(){this._injections=Object.create(null)}}},93163:(e,t,n)=>{n.d(t,{v:()=>i});var s=n(35911);class i extends s.j{constructor(e){super(),this._options=e,this._listeners=[],this.fire=e=>{if(!this.isDisposed()){let t;const n=this._listeners;for(const s of n){if(!1===t)return!1;t=t instanceof Promise?t.then((e=>!1!==e&&!this.isDisposed()&&s(e))).catch((e=>console.log(e))):s(e)}return t}},this.addEventListener=e=>{const t=this._listeners;var n;(t.push(e),1===t.length)&&((null===(n=this._options)||void 0===n?void 0:n.onFirstListenerAdd)&&this._options.onFirstListenerAdd());return{dispose:()=>{const n=t.indexOf(e);var s;n>=0&&(t.splice(n),t.length||(null===(s=this._options)||void 0===s?void 0:s.onFirstListenerAdd)&&this._options.onLastListenerRemove())}}},this.event=this.addEventListener}}let o;!function(e){function t(e){let t;const n=new i({onFirstListenerAdd(){t=e(n.fire)},onLastListenerRemove(){t.dispose()}});return n.event}e.snapshot=t,e.filter=function(e,n){return t((t=>e((e=>n(e)&&t(e)))))},e.map=function(e,n){return t((t=>e((e=>t(n(e))))))}}(o||(o={}))},98632:(e,t,n)=>{n.d(t,{Zc:()=>l,_q:()=>d,cZ:()=>r,dB:()=>c,ml:()=>u});var s=n(35901),i=n(95870),o=n(80434),a=n(33128);function r(e){return(0,i.Q)(e)}function c(e,t){return(0,o.My)(e).getOrCreateInstance(t,(()=>new a.lt))}function l(e,t){return(0,o.My)(e).getOrCreateInstance(t,(()=>new a.lt)).event}function d(e){return u(e).event}function u(e){return c((0,s.Pj)(),e)}},32083:(e,t,n)=>{n.d(t,{Cb:()=>G,Cl:()=>p,DI:()=>B,Dx:()=>D,EU:()=>L,HT:()=>$,Hy:()=>Z,Id:()=>h,Np:()=>O,Qi:()=>U,X7:()=>V,XZ:()=>x,Yq:()=>g,Z1:()=>H,_9:()=>F,_q:()=>W,au:()=>A,d_:()=>R,el:()=>w,ez:()=>E,fq:()=>v,gq:()=>k,i0:()=>P,iV:()=>N,jG:()=>l.j,p6:()=>C,sh:()=>z,vl:()=>d.v,wB:()=>I});var s=n(66284),i=n(9950),o=n(28285),a=n(9129),r=n.n(a),c=n(36061),l=n(35911),d=n(93163),u=n(23608),m=n(44414);const h=e=>{Object.keys(o.A9).forEach((t=>{"onboarding_success"!==e.get(o.A9[t])&&e.remove(o.A9[t])}))};function p(e){const t=(0,s.A)(e);return isNaN(t)?new Date(e):t}const g=(e,t,n=!1)=>{Date;const s=new Date,i=e.getDate()===s.getDate()&&e.getMonth()===s.getMonth()&&e.getFullYear()===s.getFullYear();if(n&&i){const n=Math.floor((s-e)/1e3),i=Math.floor(n/60),o=Math.floor(i/60);if(n<60)return t("Just now");if(o>0){const e=i%60;return`${o} ${t("hour","hours",o)} ${e} ${t("minute","minutes",e)}`}return`${i} ${t("minute","minutes",i)}`}{const t=new Intl.DateTimeFormat(navigator.language,{dateStyle:"short"}),n=new Intl.DateTimeFormat(navigator.language,{timeStyle:"short"});return t.format(e)+" "+n.format(e)}},v=e=>{const t=e.match(/(\(copy\))( \d+)?$/),n=null===t||void 0===t?void 0:t[1],s=null===t||void 0===t?void 0:t[2];return n?s?`${e.slice(0,-s.length)} ${+s.slice(1)+1}`:`${e} 2`:`${e} (copy)`};function f(e,t,n){const s=new Map,i=new RegExp(`(${t})(.*?)(${n})`,"gis");return e=e.replaceAll(i,((e,t,n,i)=>{const o=(0,u.l)();return s.set(o,n),t+o+i})),{escapes:s,html:e}}function _(e,t){let n=[];for(const[s,i]of t){const{escapes:t,html:o}=f(e,s,i);e=o,n.push([s,i,t])}return{escapes:n,html:e}}function y(e,t,n,s){const i=new RegExp(`(${t})(.*?)(${n})`,"gis");return e.replaceAll(i,((e,t,n,i)=>{const o=s.get(n);return"string"===typeof o?t+o+i:e}))}const b=/<title>(.*)<\/title>/gm,w=(e,t)=>{let{escapes:n,html:s}=_(e,[["<style.*?>","<\\/style>"],["<script.*?>","<\\/script>"],["<\\!--","--\x3e"]]);return s=s.replaceAll(b,((e,n)=>n===t?`<title>${v(n)}</title>`:e)),function(e,t){for(const[n,s,i]of t)e=y(e,n,s,i);return e}(s,n.reverse())};function E(e){let{html:t}=_(e,[["<style.*?>","<\\/style>"],["<script.*?>","<\\/script>"],["<\\!--","--\x3e"]]);return[...t.matchAll(b)].map((e=>e[1])).find((e=>!!e))}const S="bottomRight",C=(e,t,n=S)=>{var s,i,o;t.error({message:(0,m.jsx)("div",{dangerouslySetInnerHTML:{__html:(null===(s=e.error)||void 0===s||null===(i=s.data)||void 0===i?void 0:i.code)||e.error.status||e.error}}),description:(0,m.jsx)("div",{dangerouslySetInnerHTML:{__html:(null===(o=e.error.data)||void 0===o?void 0:o.message)||e.error.error}}),placement:n})},I=(e,t,n=S)=>{t.success({message:e,placement:n})},j="ascend",T="descend",M="desc",k=e=>{switch(e){case j:return"asc";case T:return M;default:return""}},O=e=>{switch(e){case"asc":return j;case M:return T;default:return""}},D=e=>{const t=document.createElement("div");return t.className=e||"resizer",t},A=/[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?/,B=e=>new Promise(((t,n)=>{let s=new Image;s.src=e,s.addEventListener("load",(()=>{t("success")})),s.addEventListener("error",(()=>{n("error")})),s=null})),L=(e,t)=>{for(const n of t)"object"===typeof e.properties&&(e=e.properties[n]);return e},R=e=>e instanceof Array?e.map((e=>({label:e,value:e}))):Object.keys(e).map((t=>({label:e[t],value:t}))),P=(e,t,n=!0)=>{const s=Object.keys(t);for(const i of s){const s=t[i];void 0!==s&&null!==s&&(e[i]=n&&"object"===typeof s?P(e[i]||{},s,!0):s)}return e},N=e=>new Promise(((t,n)=>{r().load({google:{families:[e]},classes:!1,active:t,inactive:n})})),x=(e,t)=>{t&&e(t)},F=()=>{const e=(0,c.XW)();return(0,i.useCallback)(((t,n)=>{document.querySelectorAll(".block-search__preview").forEach((e=>e.remove()));const s=document.getElementById("iframe-scroll-top"),i=document.getElementById("iframe-scroll-bottom"),a=document.getElementById("email_iframe"),r=document.body.getBoundingClientRect().height,c=a.getClientRects()[0];c.top<0&&(s.style.display="block"),c.top+c.height>r&&(i.style.display="block");const l={operation:o.Ru.SANDBOX_BLOCK_INSERT,settings:{blockHTML:n||null,targetBlock:null,project:"emailmaker"}};t.dataTransfer.setData("Text",JSON.stringify(l)),e(l)}),[e])},U=()=>{const e=(0,c.XW)();return(0,i.useCallback)(((t,n)=>{const s=document.getElementById("iframe-scroll-top"),i=document.getElementById("iframe-scroll-bottom"),a=document.getElementById("email_iframe"),r=document.body.getBoundingClientRect().height,c=a.getClientRects()[0];c.top<0&&(s.style.display="block"),c.top+c.height>r&&(i.style.display="block");const l={operation:o.Ru.SANDBOX_ATOM_INSERT,settings:{atomHTML:n||null,targetBlock:null}};t.dataTransfer.setData("Text",JSON.stringify(l)),e(l)}),[e])},z=()=>{const e=(0,c.XW)();return(0,i.useCallback)(((t,n)=>{e({operation:o.Ru.SANDBOX_BLOCK_INSERT,action:"insert",settings:{blockHTML:n}})}),[e])},V=()=>{const e=(0,c.XW)();return(0,i.useCallback)(((t,n)=>{e({operation:o.Ru.SANDBOX_ATOM_INSERT,action:"insert",settings:{atomHTML:n}})}),[e])},H=(e,t)=>{t.success({maskClosable:!0,centered:!0,title:e("Coming soon"),content:e("The feature is under development."),okText:e("Ok. I'll be waiting"),onOk:()=>{}})},G=()=>{const e=(0,c.XW)();return(t,n)=>{e({operation:o.Ru.SANDBOX_ELEMENT_SETTINGS_SET,settings:t,type:n})}},W=(e,t="")=>{var n,s;const i=[];return null===(n=e._embedded)||void 0===n||null===(s=n["wp:term"])||void 0===s||s.filter((e=>{var n;return!!e.length&&(!t||(null===(n=e[0])||void 0===n?void 0:n.taxonomy)===t)})).forEach((e=>{const t=e[0].taxonomy;i[t]||(i[t]=[]),i[t]=e.map((e=>({id:e.id,name:e.name,children:e.children}))),i[i.length]=i[t]})),""!==t&&i.length?i[t]:i},$=(e,t="")=>{var n,s,i,o,a;return(null===(n=e._embedded)||void 0===n||null===(s=n["wp:term"])||void 0===s||null===(i=s.find((e=>{var n;return!!e.length&&(!t||(null===(n=e[0])||void 0===n?void 0:n.taxonomy)===t)})))||void 0===i||null===(o=i.find((e=>{var t;return null===e||void 0===e||null===(t=e.name)||void 0===t?void 0:t.startsWith("project_")})))||void 0===o||null===(a=o.children)||void 0===a?void 0:a.map((e=>({id:e.id,name:e.name,count:e.count}))))||null},Z=(e,t)=>{const n=e.target,s=t.getBoundingClientRect().height,i=n.getBoundingClientRect().height-s,o=e.clientY-t.getBoundingClientRect().top-30,a=-i*(Math.min(Math.max(o,0),s-60)/(s-60));n.style.transform=`translateY(${a}px)`}},1234:(e,t,n)=>{n.d(t,{BD:()=>a,R1:()=>o});var s=n(26938);const i=s.di.createIdentifier("mocks");function o(e,t){const n=Object.keys(e.endpoints);for(const o of n){const t={[o]:t=>{e.enhanceEndpoints({endpoints:{[`${o}_base`]:t}});const n=t.queryFn;n&&(t.queryFn=(t,a,r,c)=>{const l=s.di.getInstance(a,i),d=l&&l[e.reducerPath],u=d&&d[o];if(u){const e=u(t);let s={data:null,error:null};return s="function"===typeof e?e((e=>Promise.resolve().then((()=>n(e,a,r,c))).then((e=>{if(!e.error)return e.hasOwnProperty("data")?e.data:e;if(e.error)throw e.error})))):e,Promise.resolve(s).then((e=>({data:e})),(e=>({data:null,error:{data:e}})))}return n(t,a,r,c)})}};e.enhanceEndpoints({endpoints:t})}return{[e.reducerPath]:t}}function a(e,t){const n={};for(const s of Object.keys(t))n[s]="function"===typeof t[s]?t[s](e):t[s];return s.di.inject(e,i,n)}},97161:(e,t,n)=>{n.d(t,{Ri:()=>d,uS:()=>u});var s=n(1234),i=n(90176),o=n(53997),a=n(26938),r=n(33128),c=n(98632),l=n(19672);const d=a.di.createIdentifier(),u=(a.di.createIdentifier(),(0,s.R1)(o.yH,(e=>{const t=a.di.getInstance(e,i.Lz);if(!t)throw new Error("Something was wrong");const n=t.addDisposable(new r.lt);a.di.inject(e,d,n);const s=(0,c.dB)(e,l.A.ON_SEND_TESTEMAIL_ID);return{uploadImage:t=>async s=>{const o=e.getState(),{project:r}=o.configSlice,c="tmp"===t.folder?null:await n.fire({file:t.file,project:r}),l=c?c.find((e=>e)):null;return l?[{file_url:l,project:r}]:s({...t,user_id:String((await a.di.getInstanceAsync(e,i.sZ)).app_id)})},sendTestEmail:t=>async n=>{const o=e.getState(),{project:r}=o.configSlice;(await s.fire({project:r,email_id:t.email_id,subject:t.subject,email:t.email,html:t.html,from_name:t.from_name})).some((e=>!1===e))&&await n({...t,user_id:String((await a.di.getInstanceAsync(e,i.sZ)).app_id)})},sendLivePreview(e){throw new Error(i.f5)},sendShortLink:e=>t=>t(e)}})))},82257:(e,t,n)=>{n.d(t,{r:()=>m});var s=n(99988),i=n(72315),o=n(66868);var a=n(4701),r=n(26938),c=n(90176),l=n(78454),d=n(68372);function u(e){var t,n;const s=e.getState(),a=s[o.Ay.name],r=s[i.Ay.name],c=s[d.Ay.name];return{...r.config,theme:null===(t=a.currentUser)||void 0===t?void 0:t.theme,locale:null===(n=a.currentUser)||void 0===n?void 0:n.locale,codeModeDirection:c.isCodeMode?c.codeModeDirection:"none",editor:(l=a.monacoOptions,{fontSize:l.font_size,fontFamily:l.font_family,tabSize:l.tab_size,wordWrap:l.word_wrap,minimap:l.minimap,insertSpaces:l.insert_spaces,indentSize:l.indentSize})};var l}const m=(0,s.l)((e=>{const t=e.dispatch,n=u(e),s=r.di.getInstanceAsync(e,c.sZ).then((e=>(null===e||void 0===e?void 0:e.app_config)||{}),(e=>(console.log(e),{}))),m=(0,l.y)(),h=async(...e)=>{const n=(0,a.TJ)(...e),{locale:s,theme:r,editor:c,codeModeDirection:l,...u}=n;if(c){const e=function(e){return{font_size:e.fontSize,font_family:e.fontFamily,tab_size:e.tabSize,word_wrap:e.wordWrap,minimap:e.minimap,insert_spaces:e.insertSpaces,indentSize:e.indentSize}}(c);await t((0,o.ww)(e))}void 0!==l&&("none"===l?t((0,d.N6)(!1)):(t((0,d.N6)(!0)),t((0,d.Uf)(l)))),"string"===typeof s&&t((0,o.ko)(s)),"string"===typeof r&&t((0,o.Yl)(r)),t((0,i._R)(u))};return{setOptions:m.decorate((async({config:e={},project:a,user:r})=>{await h(n,await s,e),t((0,i.bn)(String(a))),r&&t((0,o.gV)({email:"",password:"",...r}))})),instance:{setConfig:m.decorate((async e=>{await h(n,await s,e)})),getConfig:()=>u(e),updateConfig:m.decorate((e=>h(e)))}}}))},62348:(e,t,n)=>{n.d(t,{F:()=>c});var s=n(39239),i=n(26938),o=n(90176),a=n(99988),r=n(34087);const c=(0,a.l)((e=>{let t=!0;return{setOptions(n){if(n.hasOwnProperty("baseUrl")){const s=i.di.getInstance(e,r.eT),o=s.getOptions(),a=(0,r.qT)(n.baseUrl);o.baseUrl!==a&&(s.setOptions({baseUrl:a}),t=!0)}if(t){const n=i.di.getInstance(e,s.Pz);i.di.inject(e,o.sZ,(async(e,t)=>t||n.app.app_init_create({}).then((({data:e})=>e))),!0),t=!0}}}}))},74551:(e,t,n)=>{n.d(t,{F:()=>m});var s=n(99988),i=n(63025),o=n(26938),a=n(95870),r=n(34087),c=n(78454),l=n(28285);const d=(0,a.Q)(),u=(0,a.Q)(),m=(0,s.l)((e=>({setOptions(t){const n=(0,c.y)(),s=(0,r.mg)(e);o.di.addService(e,r.jY,{execute:n.decorate((async n=>{if(t.jwtAuth){let a=o.di.getInstance(e,d),r=o.di.getInstance(e,u);if(!r&&!a){const n=await s.jwtAuth.token_create({body:t.jwtAuth,type:i.cM.Json});if(n.error)throw r=l.ff,o.di.inject(e,u,l.ff),new Error(l.ff);a=n.data.token,o.di.inject(e,d,a)}r||n.headers.append("authorization",`Bearer ${a}`)}}))})}})))},11699:(e,t,n)=>{n.d(t,{h:()=>l});var s=n(99988),i=n(95870),o=n(26938),a=n(34087),r=n(2392);const c=(0,i.Q)(),l=(0,s.l)((e=>{let t;return o.di.addService(e,a.jY,{execute:async n=>{if(t){const t=await o.di.getInstanceAsync(e,c);t&&n.headers.append("authorization",`Bearer ${t}`)}}}),{setOptions(n){t!==n.getAuthToken&&(t=n.getAuthToken,o.di.inject(e,c,void 0),o.di.inject(e,c,(async(e,n)=>{try{let e=await n;var s;return t?e&&1e3*(null===(s=(0,r.iU)(e))||void 0===s?void 0:s.exp)>function(){const e=new Date;return e.valueOf()-60*e.getTimezoneOffset()*1e3}()?e:await t(e):""}catch(i){return console.log(i),""}}),!0))}}}))},99988:(e,t,n)=>{function s(e){return function(t){return{setOptions:()=>{},instance:{},dispose:()=>{},...e(t)||{}}}}function i(e){return t=>{const n={},s=e.map((e=>e(t)));for(const e of s)Object.assign(n,e.instance);return{instance:n,setOptions:e=>{const t=s.map((t=>t.setOptions(e)));return t.some((e=>e instanceof Promise))?Promise.all(t).then((()=>{})):void 0},dispose:()=>{for(const e of s)e.dispose()}}}}n.d(t,{E:()=>i,l:()=>s})},14591:(e,t,n)=>{n.d(t,{m:()=>a});n(9950);var s=n(35901),i=n(72315),o=n(44414);const a=({children:e})=>{const t=(0,s.d4)(i.p5);return(0,o.jsxs)("div",{className:"App blocks-app blocks-plugin",children:[t&&(0,o.jsx)("style",{dangerouslySetInnerHTML:{__html:t}}),e]})}},26602:(e,t,n)=>{n.d(t,{i:()=>Be});var s=n(1234),i=n(85610);const o=(0,s.R1)(i.B,{addUserToProject:e=>{}});var a=n(75170);const r=(0,s.R1)(a.Zs,{sendMessage:({body:e})=>t=>t({body:e}),getDialog:e=>t=>t(e)});var c=n(89918);const l=(0,s.R1)(c.Q2,(e=>{let t={id:0,username:"",email:"",password:"",code_editor:{},theme:"light",locale:"ru_RU",counters:{},avatar_urls:{},autosaves:!0};return{userRegistration(){},getSchema:()=>e=>e({}),getMe:()=>t,getUser:e=>t,editMe:e=>t={...t,...e},getSubscriptions:()=>[]}}));var d=n(90176),u=n(34);const m=(0,s.R1)(u.f,{getEmailRaw({emailId:e,secret_hash:t}){throw new Error(d.f5)}});var h=n(9765);const p=(0,s.R1)(h.CL,{sendAiImageRequest:function({body:e}){return t=>t({body:e})},getAiImage:e=>t=>t(e)});var g=n(26746);const v=(0,s.R1)(g.vx,{getNotifications:e=>[],notificationShown({id:e,datetime:t}){throw new Error(d.f5)}});var f=n(63997);const _=(0,s.R1)(f.Nq,(e=>{let t;return{getProjects:(e={page:1})=>[],getProject:e=>n=>t||(t=n(e).then((t=>({...t,id:e})))),addProject(e){throw new Error},editProject:({projectId:e,...n})=>t=t.then((t=>({...t,...n,id:e}))),deleteProject(e){throw new Error}}}));var y=n(56997);const b=(0,s.R1)(y.Z8,{getFile({url:e,tryFetch:t=!0,type:n}){throw new Error(d.f5)}});var w=n(10369);const E=(0,s.R1)(w.yR,{resetPassword(e){throw new Error(d.f5)},setPassword(e){throw new Error(d.f5)},validateRecoverPasswordCode(e){throw new Error(d.f5)}});var S=n(97161),C=n(46725);const I=(0,s.R1)(C.OV,{tokenCreate:e=>t=>t(e),tokenValidate:()=>e=>e({})});var j=n(38611),T=n(26938),M=n(95870),k=n(32083),O=n(33128);class D extends O.IO{async execute([e],t){for(const n of t){const t=await n(e);t&&(void 0===t.id&&(t.id=e.value.id),e.value=t)}return e.value}}function A(e,t){if(e===t)return!0;if("object"===typeof e&&e&&"object"===typeof t&&t){const n=Object.keys(e),s=Object.keys(t);if(n.length!==s.length)return!1;for(const i of n)if(!A(e[i],t[i]))return!1;return!0}return!1}function B(e,t){if(!e)return t;const n={};for(const s of Object.keys(t))A(t[s],e[s])||(n[s]=t[s]);return n}class L extends O.lt{}var R=n(36502);class P extends k.jG{constructor(...e){super(...e),this._items=new Map,this._onChangeEmitter=new O.HN,this.onChange=this._onChangeEmitter.event}async _getOrCreate(e,t){const n=this._items;let s;if(n.has(e))try{s=await n.get(e)}catch{t&&(s=await t())}else t&&(s=await t(),s&&this._onChangeEmitter.fire());return s}async _addOrUpdate(e,t){let n;const s=this._items;if(s.has(e))try{n=await s.get(e)}catch{}const i=await t(n);return(0,R.bD)(n,i)||this._onChangeEmitter.fire(),i}entries(){return Promise.all([...this._items.entries()].map((([e,t])=>t.then((t=>[e,t]))))).then((e=>e.filter((([e,t])=>!!t))))}values(){return Promise.all([...this._items.values()].map((e=>e)).filter((e=>!!e)))}getOrCreate(e,t){let n=this._getOrCreate(e,(()=>t(e)));return this._items.set(e,n),n}addOrUpdate(e,t){let n=this._addOrUpdate(e,t);return this._items.set(e,n),n}add(e,t){const n=Promise.resolve(t);return this._items.set(e,n),n}remove(e){if(this._items.has(e)){const t=this._items.get(e);return this._items.delete(e),this._onChangeEmitter.fire(),t}return Promise.resolve(void 0)}async setAll(e){try{this.suspendChange();const t=[],n=new Set(Array.from(e).map((([e,t])=>e))),s=(await this.entries()).filter((([e,t])=>!n.has(e)));for(const[i,o]of e)t.push(this.addOrUpdate(i,(()=>o))),n.add(i);for(const[e]of s)t.push(this.remove(e));return await Promise.all(t),s}finally{this.resumeChange()}}clear(){this._items.clear(),this._onChangeEmitter.fire()}suspendChange(){this._onChangeEmitter.suspend()}resumeChange(){this._onChangeEmitter.resume()}}var N=n(23608);class x extends k.jG{constructor(...e){super(...e),this._cache=new P,this._readEmitter=new O.lt,this._saveEmitter=this.addDisposable(new D),this._removeEmitter=this.addDisposable(new L),this._foreignCache=Object.create(null),this.handlerRead=this._readEmitter.event,this.onSave=this._saveEmitter.event,this.onRemove=this._removeEmitter.event,this.onChange=this._cache.onChange}async get(e){return this._cache.getOrCreate(e,(async t=>Object.assign({id:e},...(await this._readEmitter.fire(e)).filter((e=>!!e)))))}get cache(){return this._cache}byForeignKey(e){let t=this._foreignCache[e];if(!t){const n=this.addDisposable(new k.jG);n.addDispose((()=>delete this._foreignCache[e]));const s=n.addDisposable(new P),i=n.addDisposable(new O.lt);t=this._foreignCache[e]={get:async(t,n={})=>(await s.getOrCreate(t,(async()=>{try{const n=function(e=[]){if((e=e.filter((e=>e))).length<=1)return e[0];let t=new Map;for(const n of e)for(const e of n)if(void 0!==e.id){let n=t.get(e.id)||{};t.set(e.id,{...n,...e})}return[...t].map((([e,t])=>t))}(await i.fire(t));for(const s of n)s[e]=t,await this._cache.add(s.id,s);return n}catch{return[]}})),function(e,{filter:t,order:n="asc",orderBy:s,page:i,pageSize:o=20}={}){const a=e.length;let r=e.length;if(void 0!==t){const n=Object.keys(t);r=(e=e.filter((e=>{for(const s of n){const n=e[s],i=t[s];return"id"===s||"string"!==typeof n?n===i:"string"===typeof i&&n.startsWith(i)}return!0}))).length}return s&&(e=e.sort(((e,t)=>(e[s]>t[s]?1:t[s]>e[s]?-1:0)*("asc"===n?1:-1)))),void 0!==i&&(e=e.slice(o*(i-1),o*i-1)),{data:e,filteredTotal:r,total:a,totalPages:Math.floor(a/o)}}(await this._cache.values(),n)),first:(e,n={})=>t.get(e,{...n,page:1,pageSize:1}).then((e=>e[0])),handleRead:i.event,clear(){s.clear()},dispose(){n.dispose()}}}return t}async create(e,{source:t="",silent:n}={}){let s=e;return n||(s=await this._saveEmitter.fire({prev:void 0,patch:e,value:s,source:t})),void 0===s.id&&(s.id=(0,N.l)()),await this._cache.addOrUpdate(s.id,(()=>s))}async update(e,t,{source:n="",silent:s}={}){return this._cache.addOrUpdate(e,(async e=>{let i=e?{...e,...t}:t;if(!s)return t=e?B(e,t):t,await this._saveEmitter.fire({prev:e,patch:t,value:i,source:n})}))}async remove(e,{source:t="",silent:n}={}){const s=await this._cache.remove(e);return n||await this._removeEmitter.fire({value:s,source:t}),s}refresh(){this._cache.clear();for(const e of Object.values(this._foreignCache))e.clear()}suspendChange(){this._cache.suspendChange()}resumeChange(){this._cache.resumeChange()}}var F=n(72315);function U(){const e=(0,M.Q)();return t=>T.di.getOrCreateInstance(t,e,(()=>new x))}function z(e){const t=T.di.getInstance(e,d.ax);if(!t)throw new Error("Failed");return t}function V(e){const t=T.di.getInstance(e,d.Lz);if(!t)throw new Error("Failed");return t}const H=U(),G=U(),W=(0,s.R1)(j.VM,(e=>{const t=H(e),n=t.byForeignKey("project"),s=G(e),i=s.byForeignKey("parent"),{dispatch:o,getState:a}=z(e),r=V(e);return r.addDisposable(t.onChange((()=>o(j.VM.util.invalidateTags(["Blocks"]))))),r.addDisposable(t.onSave((({prev:e,patch:t,value:n})=>{(e=e?{...e,...t}:t)&&n.html===e.html&&n.title===e.title&&(n.renderGuid=e.renderGuid)}),Number.MIN_VALUE)),{async getBlocks(e){const t={};e.name&&(t.title=e.name),e.type&&(t.type=e.type);return await n.get(e.projectId,{filter:t,page:e.page,pageSize:e.pageSize,order:e.order,orderBy:e.orderby}).then((({data:e})=>e))},getBlocksSchema:()=>e=>e({}),getParentEmailBlocks:e=>t=>t(e),getTemplateBlocks:e=>t=>t(e),async getBlock(e){const t=a().projectSlice.project.id;return n.first(t,{filter:{id:e}})},getBlockHistory:async({blockId:e,page:t=1})=>({...await i.get(e,{page:t}),args:{blockId:e,page:t}}),addBlock:e=>async n=>{const s=await t.create(e);return a().configSlice.config.preventSendDataToEM||n(s).catch((e=>console.log(e))),s},editBlock:({blockId:e,...n})=>t.update(e,n),deleteBlock:e=>n=>(a().configSlice.config.preventSendDataToEM||n(e).catch((e=>console.log(e))),t.remove(e)),addTag:e=>e,getDeletableTag:([e,t])=>[],autoSaveBlock:({blockId:e,body:t})=>s.create({...t,parent:e})}}));var $=n(9324),Z=n(61775);const K=U(),Q=(0,s.R1)($.Jg,(e=>{const t=K(e),n=t.byForeignKey("post"),{dispatch:s}=z(e);return V(e).addDisposable(t.onChange((()=>s($.Jg.util.invalidateTags(["Comments"]))))),{getComments:e=>n.get(e).then((({data:e})=>e)),addComment({subjectId:e,author:n,parent:s,content:i,author_name:o,author_email:a,targetId:r}){const c={post:e,author:n,author_name:o,author_email:a,content:i,parent:s,target_id:r,date:(0,Z.A)(new Date),author_avatar_urls:{}};return t.create(c)},deleteComment:e=>t.remove(e),editComment:({commentId:e,...n})=>t.update(e,n),deleteTarget:e=>t.update(e,{target_id:""})}}));var q=n(44371);const X=(0,s.R1)(q.Ad,{getLocale:({id:e})=>t=>t({id:e}),getLocales:()=>e=>e({})}),{useGetLocalesQuery:Y,useGetLocaleQuery:J,useLazyGetLocaleQuery:ee,useLazyGetLocalesQuery:te}=q.Ad;var ne=n(26080);const se=U(),ie=U(),oe=(0,s.R1)(ne.GY,(e=>{const t=se(e),n=ie(e),s=n.byForeignKey("parent"),{dispatch:i}=z(e),o=V(e);return o.addDisposable(t.onChange((async()=>{i(ne.GY.util.invalidateTags(["Email"]))}))),o.addDisposable(n.onChange((()=>{i(ne.GY.util.invalidateTags(["EmailAutosaves"]))}))),o.addDisposable(t.onSave((({prev:e,patch:t,value:n})=>{(e=e?{...e,...t}:t)&&n.subject===e.subject&&n.html===e.html&&n.preheader===e.preheader&&n.title===e.title&&(n.renderGuid=e.renderGuid)}),Number.MIN_VALUE)),{getEmails:e=>[],getTemplateEmails:e=>t=>t(e),getEmail:async e=>await t.get(e),getEmailHistory:async({emailId:e,page:t=1})=>({...await s.get(e,{page:t}),args:{emailId:e,page:t}}),addEmail:({source:e,...n})=>t.create(n,{source:e}),editEmail:({emailId:e,source:n,...s})=>t.update(e,s,{source:n}),deleteEmail:e=>t.remove("object"===typeof e?e.id:e),addTag:e=>e,getDeletableTag:([e,t])=>[],autoSaveEmail:async({emailId:e,body:t})=>await n.create({...t,parent:e,modified:(new Date).toString()})}})),ae={...o,...r,...l,...W,...Q,...oe,...m,...p,...X,...v,..._,...b,...E,...S.uS,...I};var re=n(99988),ce=n(54841),le=n(39239),de=n(9724),ue=n(85321),me=n(65972);function he(e){return{getEmail:async t=>(0,le.KU)(e).wp.email_detail({id:(0,me.mQ)(t)},{extraQuery:{_embed:"wp:term",_fields:"_embedded,id,author,title,emailtags,folder,group,modified,date,type,\n acf.description,\n acf.html,\n acf.common_styles,\n acf.is_template,\n acf.lock,\n acf.parent_email,\n acf.project,\n acf.secret_hash,\n acf.subject,\n acf.utm_parameters\n "}}).then((0,de.SC)(ue.V))}}function pe(e){return{emails:se(e),blocks:H(e),emailRevisions:ie(e),blocksRevision:G(e),comments:K(e)}}var ge=n(80434),ve=n(34555),fe=n(4086);function _e({code:e,...t},n){var s,i;const o=n.getState();return{...t,...e?{html:e}:{},renderGuid:(0,N.l)(),project:null===(s=o.projectSlice)||void 0===s||null===(i=s.project)||void 0===i?void 0:i.id}}function ye({html:e,renderGuid:t,...n},s){const i=s.getState(),{project:o}=i.configSlice;return(0,me.TB)({...n,code:e,project:void 0===o?n.project:o,guid:void 0,link:void 0,status:void 0,slug:void 0,password:void 0,comment_status:void 0,template:void 0,blocktags:void 0,project_title:void 0,ping_status:void 0,lock:void 0,tag:void 0,is_template:void 0})}function be({code:e,...t},n){var s,i;const o=n.getState();return{...t,...e?{html:e}:{},renderGuid:(0,N.l)(),project:null===(s=o.projectSlice)||void 0===s||null===(i=s.project)||void 0===i?void 0:i.id,utm_parameters:{},_embedded:void 0}}function we({html:e,renderGuid:t,...n},s){const i=s.getState(),{project:o,config:a}=i.configSlice;return(0,me.TB)({...n,code:e,project:void 0===o?n.project:o,utm_parameters:a.UTMEnabled?n.utm_parameters:void 0,tags:void 0,template:void 0,guid:void 0,emailtags:void 0,project_title:void 0,project_author:void 0,is_template:void 0,is_inited:void 0,compiled:(0,me.TB)({html:e,ampHtml:e&&""})})}function Ee({code:e,...t},n,s){const i=n.getState();var o,a;void 0===s&&(s=void 0===t.parent?null===(o=i.emailSlice)||void 0===o||null===(a=o.email)||void 0===a?void 0:a.id:t.parent);return{...t,...e?{html:e}:{},parent:s}}function Se({html:e,...t},n){return(0,me.TB)({...t,code:e,guid:void 0,compiled:(0,me.TB)({html:e,ampHtml:e&&""})})}function Ce(e,t,n){const s=t.getState();var i,o;void 0===n&&(n=void 0===e.post?null===(i=s.emailSlice)||void 0===i||null===(o=i.email)||void 0===o?void 0:o.id:e.post);return{...e,content:e.content?`<p>${e.content}</p>`:"",post:n}}function Ie(e,t){return(0,me.TB)({...e,link:void 0,comment_status:void 0})}var je=n(78454),Te=n(19672),Me=n(98632);const ke="EXTERNAL";class Oe extends k.jG{constructor(e){super(),this._store=e,this._emailTemplateCache=Object.create(null),this._prevCommand=void 0,this._prevContent=void 0,this._dataSources=void 0,this._api=void 0,this._eventLock=void 0,this._queue=(0,je.y)(),this._model=void 0,this.show=this._queue.decorate(this._show,this),this.save=this._queue.decorate(this._save,this);const t=(0,ge.My)(e);this._dataSources=pe(t),this._api=function(e){return{...he(e),...(0,ce.E)(e)}}(t),this._eventLock=function(e){const t=Object.values(pe(e));return{suspendChange(){t.forEach((e=>e.suspendChange()))},resumeChange(){t.forEach((e=>e.resumeChange()))}}}(t);const n=(0,Me.Zc)(e,Te.A.ON_MODEL_CHANGE);this.addDisposable(n((e=>{this._model=e})))}async getProject(){const e=await T.di.getInstanceAsync(this._store,d.sZ);return null===e||void 0===e?void 0:e.project}async getTemplateEmail(e){e=String(e);let t=this._emailTemplateCache[e];if(!t){const n=await this._api.getEmail(e);n.error?console.log(n.error):(t={...n.data,lock:!1,parent_email:e},delete t.id)}return t}async getBlocks(){const{cache:e}=this._dataSources.blocks,t=await this.getProject();return(await e.values()).filter((e=>e.project===t)).map((e=>ye(e,this._store)))}async getComments(){const{cache:e}=this._dataSources.comments,t=await this.getEmail();return(await e.values()).filter((e=>e.post===t.id)).map((e=>Ie(e,this._store)))}async getEmailRevisions(){const{cache:e}=this._dataSources.emailRevisions,t=await this.getEmail();return(await e.values()).filter((e=>e.parent===t.id)).map((e=>Se(e,this._store)))}async setBlocks(e=[]){const{cache:t}=this._dataSources.blocks;await t.setAll(e.filter((e=>void 0!==e.id)).map((e=>[e.id,_e(e,this._store)])))}async setEmailRevisions(e=[],t){const{cache:n}=this._dataSources.emailRevisions,s=e.filter((e=>void 0!==e.id)).map((e=>[e.id,Ee(e,this._store,t)]));await n.setAll(s)}async setComments(e=[],t){const{cache:n}=this._dataSources.comments,s=e.filter((e=>void 0!==e.id)).map((e=>[e.id,Ce(e,this._store,t)]));await n.setAll(s)}async getEmail(){const e=this._store.getState(),t=e.emailSlice.email.id?e.emailSlice.email:e.newEmailSlice.email;return we({...t,html:this._model?this._model.getValue():t.html},this._store)}async setEmail(e,t,n=!1){const s=this._dataSources.emails,i=s.cache,o=await this.getProject();let a=be(e="string"===typeof e?{code:e}:{...e},this._store);const r=a.id;let c=r;if(void 0!==r?a={...await s.get(r),...a,project:o}:(a={...a,project:o},c=(0,N.l)(),delete a.project),t){const e=await this.getTemplateEmail(String(t));e&&(a={...e,id:String(t),...a})}await i.setAll([[c,a]]),n&&this._runShowCommand({isNew:void 0===r,id:c,project:o})}_runShowCommand(e){const t={...e,type:"email"};this._prevCommand&&!(0,R.bD)(this._prevCommand,e)?(0,ve.RS)(this._store,fe._1,t):this._store.dispatch((0,F.Ir)(t)),this._prevCommand=e}async _show(e){try{if(this._eventLock.suspendChange(),e!==this._prevContent){this._prevContent=e;const{email:n,blocks:s,autosaves:i,comments:o,templateId:a}="string"===typeof(t=e)?{email:{code:t}}:function(e){return!e.hasOwnProperty("email")&&!e.hasOwnProperty("block")}(t)?{email:t}:{...t,email:"string"===typeof t.email?{code:t.email}:t.email},r=[];r.push(this.setBlocks(s)),void 0!==n.id&&(r.push(this.setComments(o)),r.push(this.setEmailRevisions(i))),r.push(this.setEmail(n,Number(a),!0)),await Promise.all(r)}}catch(n){console.log(n)}finally{this._eventLock.resumeChange()}var t;return new Promise((e=>{(0,Me.Zc)(this._store,Te.A.ON_EMAIL_INIT_ID)((()=>e()))}))}_save(){return new Promise((async e=>{const t=this._dataSources.emails,n=this.addDisposable(t.onSave((({value:t,source:s})=>{s===ke&&(n.dispose(),e(we(t,this._store)))}),Number.MIN_VALUE));(0,ve.RS)(this._store,fe.Kp,ke)}))}}var De=n(7208);class Ae extends k.jG{constructor(e){super(),this._store=e,this._events=void 0,this._listenersUpdaters=void 0}_get(){const e=this._store,t=(0,ge.My)(e),{blocks:n,emails:s,comments:i,emailRevisions:o}=pe(t),a=(0,Me.Zc)(e,Te.A.ON_SAVEBUTTON_CLICK_ID),r=(0,Me.Zc)(e,Te.A.ON_PREVIOUSBUTTON_CLICK_ID),c=(0,Me.Zc)(e,Te.A.ON_NEXTBUTTON_CLICK_ID),l=(0,Me.Zc)(e,Te.A.ON_EMAIL_INIT_ID),d=(0,Me.Zc)(e,Te.A.ON_EMAIL_CHANGED_ID),u=(0,Me.Zc)(e,Te.A.ON_CONTENT_CHANGED_ID),m=(0,Me.Zc)(e,Te.A.ON_SEND_TESTEMAIL_ID),h=(0,Me.Zc)(e,Te.A.ON_SEND_EMAIL_MODAL_ID);return{handleReadEmail:(0,De.m)(s.handlerRead,(e=>e),(t=>t&&be(t,e))),handleSaveEmail:(0,De.m)(s.onSave,(function({prev:t,patch:n,value:s,source:i}){const o=t?we(t,e):void 0;return{prev:o,patch:B(o,we(n,e)),value:we(s,e),source:i}}),(t=>t?be(t,e):void 0)),handleReadBlocks:(0,De.m)(n.byForeignKey("project").handleRead,(t=>(0,F.jY)(e.getState())||String(t)),(t=>null===t||void 0===t?void 0:t.map((t=>_e(t,e))))),handleSaveBlock:(0,De.m)(n.onSave,(function({prev:t,patch:n,value:s,source:i}){const o=t?ye(t,e):void 0;return{prev:o,patch:B(o,ye(n,e)),value:ye(s,e),source:i}}),(t=>t?_e(t,e):void 0)),handleRemoveBlock:(0,De.m)(n.onRemove,(({value:t,source:n})=>({value:ye(t,e),source:n})),(()=>{})),handleReadComments:(0,De.m)(i.byForeignKey("post").handleRead,(e=>e),(t=>null===t||void 0===t?void 0:t.map((t=>Ce(t,e))))),handleSaveComment:(0,De.m)(i.onSave,(function({prev:e,patch:t,value:n,source:s}){const i=e?Ie(e):void 0;return{prev:i,patch:B(i,Ie(t)),value:Ie(n),source:s}}),(t=>t?Ce(t,e):void 0)),handleRemoveComment:(0,De.m)(i.onRemove,(({value:e,source:t})=>({value:Ie(e),source:t})),(()=>{})),handleReadEmailRevisions:(0,De.m)(o.byForeignKey("parent").handleRead,(e=>e),(t=>null===t||void 0===t?void 0:t.map((t=>Ee(t,e))))),handleEmailAutosave:(0,De.m)(o.onSave,(function({prev:e,patch:t,value:n,source:s}){return{value:Se(n),source:s}}),(t=>t?Ee(t,e):void 0)),handleRemoveEmailAutoSave:(0,De.m)(o.onRemove,(({value:e,source:t})=>({value:Se(e),source:t})),(()=>{})),handleEmailChanged:(0,De.m)((0,O.sg)(d,100),(t=>we(t,e))),handleEmailInit:(0,De.m)(l,(t=>we(t,e))),handlePreviousButtonClick:(0,De.m)(r,(t=>we(t,e))),handleNextButtonClick:(0,De.m)(c,(t=>we(t,e))),handleSaveButtonClick:(0,De.m)(a,(t=>we(t,e))),handleHtmlChanged:(0,De.m)((0,O.sg)(u,100)),handleTestEmailSend:(0,De.m)(m,(({html:e,...t})=>({...t,code:e,compiled:{html:e,ampHtml:""}}))),handleTestEmailModal:(0,De.m)(h,(t=>we(t,e)))}}get(){return this._events||(this._events=this._get())}setOptions(e={}){const t=this.get();let n=this._listenersUpdaters;if(!n){n=this._listenersUpdaters={};for(const e of Object.keys(t))n[e]=this.addDisposable(new De.U(t[e]))}for(const s of Object.keys(t))n[s].setListener(e[s])}}const Be=(0,re.l)((e=>{(0,s.BD)(e,ae);const t=new Oe(e),n=new Ae(e);return{async setOptions(e){n.setOptions(e),await t.show(e.content)},instance:{...n.get(),show:e=>t.show(e),save:()=>t.save(),getEmail:()=>t.getEmail(),getBlocks:()=>t.getBlocks(),getEmailRevisions:()=>t.getEmailRevisions(),getComments:()=>t.getComments()}}}))},33037:(e,t,n)=>{n.d(t,{e:()=>c});var s=n(99988),i=n(26938),o=n(90176),a=n(32083),r=n(7208);const c=(0,s.l)((e=>{const t=i.di.getInstance(e,o.Lz),n=t.addDisposable(new a.vl),s=(0,r.m)(n.event),c=t.addDisposable(new r.U(s));return{setOptions({handleDestroy:e}){c.setListener(e)},instance:{handleDestroy:s,destroy:()=>t.dispose()}}}))},73578:(e,t,n)=>{n.d(t,{Z:()=>c});var s=n(99988),i=n(97161),o=n(26938),a=n(7208),r=n(90176);const c=(0,s.l)((e=>{const t=o.di.getInstance(e,r.Lz),n=o.di.getInstance(e,i.Ri),s=(0,a.m)(n.event),c=t.addDisposable(new a.U(s));return{setOptions(e){c.setListener(e.handleLoadImage)},instance:{handleLoadImage:(0,a.m)(n.event)}}}))},83639:(e,t,n)=>{n.d(t,{E:()=>c});var s=n(99988),i=n(26938),o=n(90176),a=n(33128),r=n(7208);const c=(0,s.l)((e=>{const t=i.di.getInstance(e,o.Lz),n=t.addDisposable(new a.vl),s=i.di.getInstanceAsync(e,o.Cd);s.then((({instance:e})=>n.fire(e)));const c=(0,r.m)(n.event),l=t.addDisposable(new r.U(c));return{setOptions({handleLoad:e}){l.setListener(e)},instance:{handleLoad:c,reset:e=>s.then((({instance:t,setOptions:n})=>Promise.resolve(n(e)).then((()=>t))))},destroy:()=>t.dispose()}}))},64497:(e,t,n)=>{n.d(t,{Z:()=>v});var s=n(99988),i=n(26938),o=n(90176),a=n(7208),r=n(34555),c=n(4086),l=(n(9950),n(65972)),d=n(44414);function u(e){return"string"===typeof e?e:e?(0,d.jsx)("div",{ref:t=>null===t||void 0===t?void 0:t.replaceWith(e)}):void 0}function m(e,t="success"){return"string"===typeof e&&(e={message:e}),(0,l.TB)({type:e.type||t,data:e.data,innerException:e.innerException,message:u(e.message),description:u(e.description),btn:u(e.btn),onClose:e.onClose,duration:e.duration,icon:u(e.icon),placement:e.placement,style:e.style,closeIcon:"boolean"===typeof e.closeIcon||"undefined"===typeof e.closeIcon?e.closeIcon:u(e.closeIcon),props:e.props,role:e.role})}var h=n(19672),p=n(33128),g=n(98632);const v=(0,s.l)((e=>{const t=i.di.getInstance(e,o.Lz),n=(0,g.Zc)(e,h.A.ON_NOTIFICATION),s=(0,p.pb)(n,(e=>"error"===e.type)),l=(0,p.pb)(n,(e=>"success"===e.type)),d=(0,a.m)(n,(e=>e),(e=>"string"===typeof e||"object"===typeof e?m(e):e)),u=(0,a.m)(s,(e=>e),(e=>"string"===typeof e||"object"===typeof e?m(e,"error"):e)),v=(0,a.m)(l,(e=>e),(e=>"string"===typeof e||"object"===typeof e?m(e):e)),f=t.addDisposable(new a.U(d)),_=t.addDisposable(new a.U(u)),y=t.addDisposable(new a.U(v));return{setOptions({handleNotify:e,handleSuccess:t,handleError:n}){f.setListener(e),_.setListener(n),y.setListener(t)},instance:{notify(t){(0,r.RS)(e,c.Sb,{placement:"bottomRight",...m(t)})},handleNotify:d,handleError:u,handleSuccess:v}}}))},15183:(e,t,n)=>{n.d(t,{R:()=>a});var s=n(9950),i=n(35901),o=n(89918);const a=({onLoad:e,children:t})=>{(0,s.useEffect)((()=>{e&&e()}),[e]);const n=(0,i.wA)();return(0,s.useEffect)((()=>{n(o.Q2.endpoints.getMe.initiate({}))})),t}},33128:(e,t,n)=>{n.d(t,{HN:()=>d,IO:()=>o,P9:()=>a,lt:()=>m,pb:()=>c,sg:()=>l,vl:()=>u});var s=n(32083);class i extends s.jG{constructor(...e){super(...e),this._listeners=[],this.event=this._addListener.bind(this)}getListeners(e){return this._listeners.flatMap((([t])=>"function"===typeof t?t:t.getListeners(e)))}_addListener(e,t=0,n){if(!this.isDisposed()){const s=this._listeners;n&&"function"===typeof e&&(e=e.bind(n));const i=s.findIndex((([e,n])=>t<n)),o=[e,t];return s.splice(i>=0?i:s.length,0,o),{dispose(){const e=s.indexOf(o);e>=0&&s.splice(e,1)}}}}dispose(){this._listeners.splice(0,this._listeners.length),super.dispose()}}class o extends i{constructor(...e){super(...e),this.fire=this._fire.bind(this)}execute(e,t){for(const s of t)try{s(...e)}catch(n){console.log(n)}}_fire(...e){if(!this.isDisposed())return this.execute(e,this.getListeners(e))||void 0}}function a(e,t=0){const n=new i;return n.addDisposable(e(n,t)),n.event}class r extends i{constructor(e){super(),this._filter=e}getListeners(e){return this._filter(...e)?super.getListeners(e):[]}}function c(e,t,n=0){const s=new r(t);return s.addDisposable(e(s,n)),s.event}function l(e,t=0,n=0){const s=new o;let i,a=0;return s.addDisposable(e(((...e)=>{i=e,a||(a=setTimeout((()=>{s.fire(...i),a=0}),t))}),n)),s.event}class d extends o{constructor(...e){super(...e),this._suspendCounter=0,this._wasFired=!1}proccessResult(){}execute([e],t){if(this._suspendCounter)this._wasFired=!0;else for(const s of t)try{s(e)}catch(n){console.log(n)}}suspend(){this._suspendCounter++}resume(){0===--this._suspendCounter&&(this._wasFired&&this.fire(),this._wasFired=!1)}}class u extends o{execute([e],t){for(const s of t)try{s(e)}catch(n){console.log(n)}}}class m extends o{async execute([e],t){const n=[];for(const s of t){const t=await s(e);n.push(t)}return n}}},7208:(e,t,n)=>{n.d(t,{U:()=>o,m:()=>a});var s=n(32083),i=n(33128);class o extends s.jG{constructor(e){super(),this._event=e,this._listener=void 0,this._disposeEvent=void 0}setListener(e){this._listener!==e&&(this._listener=e,this._disposeEvent&&this._disposeEvent(),this._disposeEvent=e?this._event(e):void 0)}dispose(){this._disposeEvent&&this._disposeEvent(),super.dispose()}}function a(e,t,n){const s=(0,i.P9)(e);return(e,i,o)=>{const a=s((async s=>{const i=t?t(s):s;o&&e.bind(o);const a=await e(i);return n?n(a):a}),i,o);return()=>a.dispose()}}},78454:(e,t,n)=>{n.d(t,{y:()=>s});const s=e=>{let t={current:Promise.resolve(),state:e,decorate:(e,n)=>(n&&(e=e.bind(n)),function(...n){const s=t.current.then((()=>e(...n)));return t.current=s.then((e=>{t.state=e}),(e=>{console.log(e)})),s})};return t}},72315:(e,t,n)=>{n.d(t,{Ay:()=>y,Ir:()=>p,RP:()=>u,_R:()=>v,bn:()=>f,jY:()=>h,me:()=>_,p5:()=>m,s0:()=>l,zg:()=>d});var s=n(6164),i=n(4701),o=n(9724);const a="configSlice",r=(0,o.ur)({config:{autosaveTimeout:1e4,theme:"",themes:{},mergeTags:void 0,styles:"",headerTitleVisible:!0,headerPreheaderVisible:!0,headerArrowBackVisible:!0,historyEnabled:!0,codeEnabled:!0,codeSideEnabled:!0,previewIconEnabled:!0,previewModeEnabled:!0,livePreviewEnabled:!0,sendTestEnabled:!0,sharePreviewEnabled:!0,emailDropdownMenuEnabled:!0,emailDropdownMenuClone:!0,emailDropdownMenuImport:!0,emailDropdownMenuLock:!0,emailDropdownMenuRemove:!0,emailExportEnabled:!0,nextButtonEnabled:!1,nextButtonText:"",saveButtonEnabled:!0,saveButtonText:"",commandButtonsEnabled:!0,emailIdShow:!1,sidePanelFloating:!0,desktopMobileSwitchRule:!0,desktopMobileSwitchPanel:!1,onlyCodeModeInMobile:!1,pathEnabled:!0,copyPasteEnabled:!0,saveBlockEnabled:!0,editImageControlEnabled:!0,menuDirection:"right",defaultBuildPanel:"",commentsEnabled:!0,optimizeEnabled:!0,settingsEnabled:!0,UTMEnabled:!0,subjectEnabled:!0,preheaderEnabled:!0,descriptionEnabled:!0,tagsEnabled:!0,switchDesktopMobilePropsEnabled:!0,stepToOtherElementEnabled:!0,deleteButtonEnabled:!0,toggleSidePanel:!0,formFieldImageTitleEnabled:!0,formFieldBorderEnabled:!0,formFieldBorderRadiusEnabled:!0,formFieldBoxShadowEnabled:!0,formFieldVisibilityEnabled:!0,formFieldExportAsPictureEnabled:!0,emailPaneDesktopSize:0,formButtonFieldInsertImageEnabled:!0,formButtonFieldVerticalAlignEnabled:!0,formButtonFieldTextAlignEnabled:!0,formButtonFieldBackgroundImageEnabled:!0,formButtonFieldPaddingsEnabled:!0,formCellFieldVerticalAlignEnabled:!0,formCellFieldBackgroundImageEnabled:!0,formCellFieldPaddingsEnabled:!0,formLinkFieldInsertImageEnabled:!0,formTableFieldBackgroundImageEnabled:!0,formDivFieldBackgroundImageEnabled:!0,formEmailFieldBackgroundImageEnabled:!0,elementImageEnabled:!0,elementTextEnabled:!0,elementHeaderEnabled:!0,elementButtonEnabled:!0,elementListULEnabled:!0,elementListOLEnabled:!0,elementDividerEnabled:!0,elementSpacerEnabled:!0,elementSocialEnabled:!0,elementTableEnabled:!0,elementCountdownEnabled:!0,elementVideoEnabled:!0,elementAIimageEnabled:!0,elementAItextEnabled:!0,elementCarouselEnabled:!0,elementFormEnabled:!0,preventSendDataToEM:!1,imageInfoToolUrl:"",imageCenterStockEnabled:!0,imageCenterGifEnabled:!0,imageCenterEditorEnabled:!0,compressMaxSize:.7,compressMaxWidthOrHeight:2e3},project:void 0,page:{isNew:!1,type:"email",project:0,id:""}}),c=(0,s.createSlice)({name:a,initialState:r,reducers:{setPage:(e,t)=>{e.page=t.payload},setConfig:(e,t)=>{e.config={...r.config,...t.payload}},setMergeTags:(e,t)=>{e.config.mergeTags=t.payload},updateConfig:(e,t)=>{e.config=(0,i.TJ)(e.config,t.payload)},setProject:(e,t)=>{e.project=t.payload}},extraReducers:e=>{}}),l=e=>e[a].page,d=e=>e[a].config,u=e=>e[a].config.themes,m=e=>e[a].config.styles,h=e=>e[a].project,{setPage:p,setConfig:g,updateConfig:v,setProject:f,setMergeTags:_}=c.actions,y=c},68372:(e,t,n)=>{n.d(t,{Ay:()=>P,B:()=>T,Bp:()=>C,CS:()=>D,Ct:()=>O,Fk:()=>g,Fv:()=>B,N6:()=>E,NQ:()=>k,Oo:()=>h,PM:()=>p,Tn:()=>L,Uf:()=>y,V$:()=>R,Wm:()=>M,cL:()=>j,mi:()=>v,qf:()=>m,sy:()=>I,vc:()=>f,vs:()=>_,wW:()=>b,wr:()=>w,yy:()=>A});var s=n(6164),i=n(28285),o=n(9724),a=n(38611);const r=window.localStorage.getItem(i.V0.em_code_mode_settings),c=r&&JSON.parse(r),l=(0,o.ur)({activeModal:"",lastActiveSettingsTab:i.Bv,activeSettingsTab:i.Bv,isPanelHistoryCollapsed:!0,monacoHeight:0,isCodeMode:(null===c||void 0===c?void 0:c.isCodeMode)||i.EW.isPlugin,codeModeDirection:(null===c||void 0===c?void 0:c.codeModeDirection)||"left",emailWidth:"100%",emailViewType:i.Vp,mobileViewActive:{shutdown:!0,styles:!0},emailMaxWidthSize:425,propertiesPanelKey:i.WU,parentBlocks:[]}),d="emailPageSlice",u=(0,s.createSlice)({name:d,initialState:l,reducers:{openModal:(e,t)=>{e.activeModal=t.payload},closeModal:e=>{e.activeModal=""},setActiveSettingsTab:(e,t)=>{e.activeSettingsTab=t.payload,t.payload!==i.yI&&t.payload!==i.Vv&&(e.lastActiveSettingsTab=t.payload),t.payload!==i.Vv&&(e.isPanelHistoryCollapsed=!0)},resetToLastActiveSettingsTab:e=>{e.activeSettingsTab=e.lastActiveSettingsTab,e.lastActiveSettingsTab!==i.Vv&&(e.isPanelHistoryCollapsed=!0)},switchIsPanelHistoryCollapsed:(e,t)=>{e.isPanelHistoryCollapsed=t.payload||!e.isPanelHistoryCollapsed,e.activeSettingsTab=e.lastActiveSettingsTab},setEmailWidth:(e,{payload:t})=>{e.emailWidth=t,e.emailViewType=t>e.emailMaxWidthSize||"100%"===t?i.Vp:i.ND,window.localStorage.setItem(i.V0.em_default_sizes,JSON.stringify(t))},setEmailMaxWidthSize:(e,{payload:t})=>{e.emailMaxWidthSize=t},setEmailViewType:(e,t)=>{e.emailViewType=t.payload},switchCodeMode:e=>{const t=!e.isCodeMode;e.isCodeMode=t,window.localStorage.setItem(i.V0.em_code_mode_settings,JSON.stringify({codeModeDirection:e.codeModeDirection,isCodeMode:t}))},setCodeMode:(e,t)=>{const n=t.payload;e.isCodeMode!==n&&(e.isCodeMode=n,window.localStorage.setItem(i.V0.em_code_mode_settings,JSON.stringify({codeModeDirection:e.codeModeDirection,isCodeMode:n})))},switchCodeModeDirection:(e,t)=>{e.codeModeDirection=t.payload,window.localStorage.setItem(i.V0.em_code_mode_settings,JSON.stringify({isCodeMode:e.isCodeMode,codeModeDirection:t.payload}))},setMobileViewActive:(e,t)=>{e.mobileViewActive=t.payload},setPropertiesPanelKey:(e,t)=>{e.propertiesPanelKey=t.payload},resetParentBlocks:e=>{e.parentBlocks=[]},setParentBlocks:(e,t)=>{e.parentBlocks=t.payload}},extraReducers:e=>{e.addMatcher(a.VM.endpoints.getParentEmailBlocks.matchFulfilled,((e,t)=>{e.parentBlocks=t.payload}))}}),{openModal:m,closeModal:h,setActiveSettingsTab:p,resetToLastActiveSettingsTab:g,switchIsPanelHistoryCollapsed:v,setEmailWidth:f,switchCodeMode:_,switchCodeModeDirection:y,setMobileViewActive:b,setEmailViewType:w,setCodeMode:E,setEmailMaxWidthSize:S,setPropertiesPanelKey:C,resetParentBlocks:I}=u.actions,j=e=>e[d].activeModal,T=e=>e[d].activeSettingsTab,M=e=>e[d].isPanelHistoryCollapsed,k=e=>e[d].emailWidth,O=e=>e[d].emailViewType,D=e=>e[d].mobileViewActive,A=e=>e[d].codeModeDirection,B=e=>e[d].isCodeMode,L=e=>e[d].propertiesPanelKey,R=e=>e[d].parentBlocks,P=u},66868:(e,t,n)=>{n.d(t,{Ay:()=>b,B:()=>v,C1:()=>f,Yl:()=>m,gV:()=>g,hZ:()=>y,ko:()=>h,ku:()=>u,ww:()=>l,yf:()=>_});var s=n(6164),i=n(89918),o=n(28285),a=n(32083);const r=(0,n(9724).ur)({currentUser:{},currentSchema:{},monacoOptions:o.rW,monacoDidMount:!1}),c="userSlice",l=(0,s.createAsyncThunk)("user/setMonacoOptions",(async(e,{getState:t})=>{const n=t()[c],s="string"===typeof e.font_family?`${e.font_family}, sans-serif`:void 0,i=void 0!==e.word_wrap?e.word_wrap?"on":"off":void 0;return s&&n.monacoOptions.fontFamily!==s&&await(0,a.iV)(e.font_family),{tabSize:e.tab_size,fontFamily:s,fontSize:e.font_size,wordWrap:i,insertSpaces:e.insert_spaces,minimap:{enabled:e.minimap}}})),d=(0,s.createSlice)({name:c,initialState:r,reducers:{setMonacoDidMount:(e,{payload:t})=>{e.monacoDidMount=t},setTheme:(e,{payload:t})=>{e.currentUser.theme=t},setUserLocale:(e,{payload:t})=>{e.currentUser.locale=t},setUserAutosaves:(e,{payload:t})=>{e.currentUser.autosaves=t},setUser:(e,{payload:t})=>{console.log("payload",t),e.currentUser={...e.currentUser,...t}}},extraReducers:e=>{e.addCase(l.fulfilled,((e,t)=>{const n=t.payload;e.monacoOptions=(0,a.i0)({...e.monacoOptions},n)})),e.addMatcher(i.Q2.endpoints.editMe.matchFulfilled,((e,t)=>{e.currentUser=t.payload})),e.addMatcher(i.Q2.endpoints.getMe.matchFulfilled,((e,t)=>{e.currentUser=t.payload})),e.addMatcher(i.Q2.endpoints.getSchema.matchFulfilled,((e,t)=>{e.currentSchema=t.payload.schema}))}}),{setMonacoDidMount:u,setTheme:m,setUserLocale:h,setUserAutosaves:p,setUser:g}=d.actions,v=e=>{var t;return null===(t=e[c].currentUser)||void 0===t?void 0:t.locale},f=e=>e[c].currentUser,_=e=>e[c].currentSchema,y=e=>e[c].monacoOptions,b=d},57964:()=>{}}]);
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! For license information please see 2959.37c71ed2.chunk.js.LICENSE.txt */
|
|
2
|
+
"use strict";(globalThis.webpackChunkemail_maker=globalThis.webpackChunkemail_maker||[]).push([[2959],{92959:(e,t,r)=>{r.r(t),r.d(t,{conf:()=>s,language:()=>n});var s={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\#%\^\&\*\(\)\=\$\-\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,comments:{blockComment:["###","###"],lineComment:"#"},folding:{markers:{start:new RegExp("^\\s*#region\\b"),end:new RegExp("^\\s*#endregion\\b")}}},n={defaultToken:"",ignoreCase:!1,tokenPostfix:".mips",regEx:/\/(?!\/\/)(?:[^\/\\]|\\.)*\/[igm]*/,keywords:[".data",".text","syscall","trap","add","addu","addi","addiu","and","andi","div","divu","mult","multu","nor","or","ori","sll","slv","sra","srav","srl","srlv","sub","subu","xor","xori","lhi","lho","lhi","llo","slt","slti","sltu","sltiu","beq","bgtz","blez","bne","j","jal","jalr","jr","lb","lbu","lh","lhu","lw","li","la","sb","sh","sw","mfhi","mflo","mthi","mtlo","move"],symbols:/[\.,\:]+/,escapes:/\\(?:[abfnrtv\\"'$]|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,tokenizer:{root:[[/\$[a-zA-Z_]\w*/,"variable.predefined"],[/[.a-zA-Z_]\w*/,{cases:{this:"variable.predefined","@keywords":{token:"keyword.$0"},"@default":""}}],[/[ \t\r\n]+/,""],[/#.*$/,"comment"],["///",{token:"regexp",next:"@hereregexp"}],[/^(\s*)(@regEx)/,["","regexp"]],[/(\,)(\s*)(@regEx)/,["delimiter","","regexp"]],[/(\:)(\s*)(@regEx)/,["delimiter","","regexp"]],[/@symbols/,"delimiter"],[/\d+[eE]([\-+]?\d+)?/,"number.float"],[/\d+\.\d+([eE][\-+]?\d+)?/,"number.float"],[/0[xX][0-9a-fA-F]+/,"number.hex"],[/0[0-7]+(?!\d)/,"number.octal"],[/\d+/,"number"],[/[,.]/,"delimiter"],[/"""/,"string",'@herestring."""'],[/'''/,"string","@herestring.'''"],[/"/,{cases:{"@eos":"string","@default":{token:"string",next:'@string."'}}}],[/'/,{cases:{"@eos":"string","@default":{token:"string",next:"@string.'"}}}]],string:[[/[^"'\#\\]+/,"string"],[/@escapes/,"string.escape"],[/\./,"string.escape.invalid"],[/\./,"string.escape.invalid"],[/#{/,{cases:{'$S2=="':{token:"string",next:"root.interpolatedstring"},"@default":"string"}}],[/["']/,{cases:{"$#==$S2":{token:"string",next:"@pop"},"@default":"string"}}],[/#/,"string"]],herestring:[[/("""|''')/,{cases:{"$1==$S2":{token:"string",next:"@pop"},"@default":"string"}}],[/[^#\\'"]+/,"string"],[/['"]+/,"string"],[/@escapes/,"string.escape"],[/\./,"string.escape.invalid"],[/#{/,{token:"string.quote",next:"root.interpolatedstring"}],[/#/,"string"]],comment:[[/[^#]+/,"comment"],[/#/,"comment"]],hereregexp:[[/[^\\\/#]+/,"regexp"],[/\\./,"regexp"],[/#.*$/,"comment"],["///[igm]*",{token:"regexp",next:"@pop"}],[/\//,"regexp"]]}}}}]);
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/*!-----------------------------------------------------------------------------
|
|
2
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
+
* Version: 0.34.0(dee69564fa27426c7ebb706c3d2ed3d1acccedfe)
|
|
4
|
+
* Released under the MIT license
|
|
5
|
+
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
|
6
|
+
*-----------------------------------------------------------------------------*/
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! For license information please see 3.cc80fb69.chunk.js.LICENSE.txt */
|
|
2
|
+
"use strict";(globalThis.webpackChunkemail_maker=globalThis.webpackChunkemail_maker||[]).push([[3],{60003:(e,n,t)=>{t.r(n),t.d(n,{conf:()=>m,language:()=>b});var r,o,l=t(79852),a=Object.defineProperty,i=Object.getOwnPropertyDescriptor,c=Object.getOwnPropertyNames,u=Object.prototype.hasOwnProperty,s=(e,n,t,r)=>{if(n&&"object"===typeof n||"function"===typeof n)for(let o of c(n))u.call(e,o)||o===t||a(e,o,{get:()=>n[o],enumerable:!(r=i(n,o))||r.enumerable});return e},d={};s(d,r=l,"default"),o&&s(o,r,"default");var m={comments:{lineComment:"#"},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],folding:{offSide:!0},onEnterRules:[{beforeText:/:\s*$/,action:{indentAction:d.languages.IndentAction.Indent}}]},b={tokenPostfix:".yaml",brackets:[{token:"delimiter.bracket",open:"{",close:"}"},{token:"delimiter.square",open:"[",close:"]"}],keywords:["true","True","TRUE","false","False","FALSE","null","Null","Null","~"],numberInteger:/(?:0|[+-]?[0-9]+)/,numberFloat:/(?:0|[+-]?[0-9]+)(?:\.[0-9]+)?(?:e[-+][1-9][0-9]*)?/,numberOctal:/0o[0-7]+/,numberHex:/0x[0-9a-fA-F]+/,numberInfinity:/[+-]?\.(?:inf|Inf|INF)/,numberNaN:/\.(?:nan|Nan|NAN)/,numberDate:/\d{4}-\d\d-\d\d([Tt ]\d\d:\d\d:\d\d(\.\d+)?(( ?[+-]\d\d?(:\d\d)?)|Z)?)?/,escapes:/\\(?:[btnfr\\"']|[0-7][0-7]?|[0-3][0-7]{2})/,tokenizer:{root:[{include:"@whitespace"},{include:"@comment"},[/%[^ ]+.*$/,"meta.directive"],[/---/,"operators.directivesEnd"],[/\.{3}/,"operators.documentEnd"],[/[-?:](?= )/,"operators"],{include:"@anchor"},{include:"@tagHandle"},{include:"@flowCollections"},{include:"@blockStyle"},[/@numberInteger(?![ \t]*\S+)/,"number"],[/@numberFloat(?![ \t]*\S+)/,"number.float"],[/@numberOctal(?![ \t]*\S+)/,"number.octal"],[/@numberHex(?![ \t]*\S+)/,"number.hex"],[/@numberInfinity(?![ \t]*\S+)/,"number.infinity"],[/@numberNaN(?![ \t]*\S+)/,"number.nan"],[/@numberDate(?![ \t]*\S+)/,"number.date"],[/(".*?"|'.*?'|.*?)([ \t]*)(:)( |$)/,["type","white","operators","white"]],{include:"@flowScalars"},[/[^#]+/,{cases:{"@keywords":"keyword","@default":"string"}}]],object:[{include:"@whitespace"},{include:"@comment"},[/\}/,"@brackets","@pop"],[/,/,"delimiter.comma"],[/:(?= )/,"operators"],[/(?:".*?"|'.*?'|[^,\{\[]+?)(?=: )/,"type"],{include:"@flowCollections"},{include:"@flowScalars"},{include:"@tagHandle"},{include:"@anchor"},{include:"@flowNumber"},[/[^\},]+/,{cases:{"@keywords":"keyword","@default":"string"}}]],array:[{include:"@whitespace"},{include:"@comment"},[/\]/,"@brackets","@pop"],[/,/,"delimiter.comma"],{include:"@flowCollections"},{include:"@flowScalars"},{include:"@tagHandle"},{include:"@anchor"},{include:"@flowNumber"},[/[^\],]+/,{cases:{"@keywords":"keyword","@default":"string"}}]],multiString:[[/^( +).+$/,"string","@multiStringContinued.$1"]],multiStringContinued:[[/^( *).+$/,{cases:{"$1==$S2":"string","@default":{token:"@rematch",next:"@popall"}}}]],whitespace:[[/[ \t\r\n]+/,"white"]],comment:[[/#.*$/,"comment"]],flowCollections:[[/\[/,"@brackets","@array"],[/\{/,"@brackets","@object"]],flowScalars:[[/"([^"\\]|\\.)*$/,"string.invalid"],[/'([^'\\]|\\.)*$/,"string.invalid"],[/'[^']*'/,"string"],[/"/,"string","@doubleQuotedString"]],doubleQuotedString:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,"string","@pop"]],blockStyle:[[/[>|][0-9]*[+-]?$/,"operators","@multiString"]],flowNumber:[[/@numberInteger(?=[ \t]*[,\]\}])/,"number"],[/@numberFloat(?=[ \t]*[,\]\}])/,"number.float"],[/@numberOctal(?=[ \t]*[,\]\}])/,"number.octal"],[/@numberHex(?=[ \t]*[,\]\}])/,"number.hex"],[/@numberInfinity(?=[ \t]*[,\]\}])/,"number.infinity"],[/@numberNaN(?=[ \t]*[,\]\}])/,"number.nan"],[/@numberDate(?=[ \t]*[,\]\}])/,"number.date"]],tagHandle:[[/\![^ ]*/,"tag"]],anchor:[[/[&*][^ ]+/,"namespace"]]}}}}]);
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/*!-----------------------------------------------------------------------------
|
|
2
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
+
* Version: 0.34.0(dee69564fa27426c7ebb706c3d2ed3d1acccedfe)
|
|
4
|
+
* Released under the MIT license
|
|
5
|
+
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
|
6
|
+
*-----------------------------------------------------------------------------*/
|