ghost 5.12.2 → 5.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/{tryghost-adapter-manager-5.12.2.tgz → tryghost-adapter-manager-5.13.0.tgz} +0 -0
- package/components/{tryghost-api-framework-5.12.2.tgz → tryghost-api-framework-5.13.0.tgz} +0 -0
- package/components/tryghost-api-version-compatibility-service-5.13.0.tgz +0 -0
- package/components/tryghost-bootstrap-socket-5.13.0.tgz +0 -0
- package/components/tryghost-constants-5.13.0.tgz +0 -0
- package/components/{tryghost-custom-theme-settings-service-5.12.2.tgz → tryghost-custom-theme-settings-service-5.13.0.tgz} +0 -0
- package/components/tryghost-domain-events-5.13.0.tgz +0 -0
- package/components/tryghost-email-analytics-provider-mailgun-5.13.0.tgz +0 -0
- package/components/tryghost-email-analytics-service-5.13.0.tgz +0 -0
- package/components/tryghost-email-content-generator-5.13.0.tgz +0 -0
- package/components/tryghost-express-dynamic-redirects-5.13.0.tgz +0 -0
- package/components/tryghost-extract-api-key-5.13.0.tgz +0 -0
- package/components/tryghost-html-to-plaintext-5.13.0.tgz +0 -0
- package/components/{tryghost-job-manager-5.12.2.tgz → tryghost-job-manager-5.13.0.tgz} +0 -0
- package/components/{tryghost-magic-link-5.12.2.tgz → tryghost-magic-link-5.13.0.tgz} +0 -0
- package/components/{tryghost-mailgun-client-5.12.2.tgz → tryghost-mailgun-client-5.13.0.tgz} +0 -0
- package/components/tryghost-member-analytics-service-5.13.0.tgz +0 -0
- package/components/{tryghost-member-attribution-5.12.2.tgz → tryghost-member-attribution-5.13.0.tgz} +0 -0
- package/components/tryghost-member-events-5.13.0.tgz +0 -0
- package/components/tryghost-members-analytics-ingress-5.13.0.tgz +0 -0
- package/components/tryghost-members-api-5.13.0.tgz +0 -0
- package/components/{tryghost-members-csv-5.12.2.tgz → tryghost-members-csv-5.13.0.tgz} +0 -0
- package/components/tryghost-members-events-service-5.13.0.tgz +0 -0
- package/components/{tryghost-members-importer-5.12.2.tgz → tryghost-members-importer-5.13.0.tgz} +0 -0
- package/components/{tryghost-members-offers-5.12.2.tgz → tryghost-members-offers-5.13.0.tgz} +0 -0
- package/components/tryghost-members-payments-5.13.0.tgz +0 -0
- package/components/{tryghost-members-ssr-5.12.2.tgz → tryghost-members-ssr-5.13.0.tgz} +0 -0
- package/components/{tryghost-members-stripe-service-5.12.2.tgz → tryghost-members-stripe-service-5.13.0.tgz} +0 -0
- package/components/tryghost-minifier-5.13.0.tgz +0 -0
- package/components/tryghost-mw-api-version-mismatch-5.13.0.tgz +0 -0
- package/components/tryghost-mw-cache-control-5.13.0.tgz +0 -0
- package/components/{tryghost-mw-error-handler-5.12.2.tgz → tryghost-mw-error-handler-5.13.0.tgz} +0 -0
- package/components/tryghost-mw-session-from-token-5.13.0.tgz +0 -0
- package/components/tryghost-mw-update-user-last-seen-5.13.0.tgz +0 -0
- package/components/tryghost-mw-vhost-5.13.0.tgz +0 -0
- package/components/tryghost-oembed-service-5.13.0.tgz +0 -0
- package/components/{tryghost-package-json-5.12.2.tgz → tryghost-package-json-5.13.0.tgz} +0 -0
- package/components/{tryghost-security-5.12.2.tgz → tryghost-security-5.13.0.tgz} +0 -0
- package/components/{tryghost-session-service-5.12.2.tgz → tryghost-session-service-5.13.0.tgz} +0 -0
- package/components/tryghost-settings-path-manager-5.13.0.tgz +0 -0
- package/components/tryghost-staff-service-5.13.0.tgz +0 -0
- package/components/{tryghost-update-check-service-5.12.2.tgz → tryghost-update-check-service-5.13.0.tgz} +0 -0
- package/components/{tryghost-verification-trigger-5.12.2.tgz → tryghost-verification-trigger-5.13.0.tgz} +0 -0
- package/components/{tryghost-version-notifications-data-service-5.12.2.tgz → tryghost-version-notifications-data-service-5.13.0.tgz} +0 -0
- package/core/built/admin/assets/{chunk.143.b51e90c24c7efd3fbc00.js → chunk.143.e96aad00fdf7196692c7.js} +6 -6
- package/core/built/admin/assets/{chunk.174.ae492405065373dbe102.js → chunk.174.8b8a64726921ecfda41b.js} +157 -155
- package/core/built/admin/assets/{chunk.178.3bb279f23ad0f1204216.js → chunk.178.1188f8d61af173f8c246.js} +4 -4
- package/core/built/admin/assets/{chunk.579.65e09dd89eec70d059a0.js → chunk.763.9a285d7351e1f4415f8d.js} +122 -114
- package/core/built/admin/assets/{chunk.579.65e09dd89eec70d059a0.js.LICENSE.txt → chunk.763.9a285d7351e1f4415f8d.js.LICENSE.txt} +0 -0
- package/core/built/admin/assets/{ghost-0526c96b20843697927c1d06a9010197.js → ghost-3203510c519d3195f1e71a34e9eecc59.js} +216 -278
- package/core/built/admin/assets/ghost-647c9a79282265a4d29bf273c44f72c0.css +1 -0
- package/core/built/admin/assets/ghost-dark-d84a2701166840b73bbbbe657879b65e.css +1 -0
- package/core/built/admin/assets/img/amp.svg +4 -1
- package/core/built/admin/assets/img/disqus.svg +4 -1
- package/core/built/admin/assets/img/github.svg +4 -1
- package/core/built/admin/assets/img/google-docs.svg +6 -17
- package/core/built/admin/assets/img/mailchimp.svg +7 -8
- package/core/built/admin/assets/img/patreon.svg +7 -1
- package/core/built/admin/assets/img/paypal.svg +8 -1
- package/core/built/admin/assets/img/twitter.svg +1 -0
- package/core/built/admin/assets/img/typeform.svg +1 -0
- package/core/built/admin/assets/img/unsplash.svg +4 -0
- package/core/built/admin/assets/img/zapier-logo.svg +4 -1
- package/core/built/admin/assets/img/zapier.svg +4 -1
- package/core/built/admin/assets/{vendor-bc9d2c9e5c8a33f0c92e81189d48e04c.css → vendor-733135cd6cbca8126c6fa223d63a5bf3.css} +0 -29
- package/core/built/admin/assets/{vendor-52613f40d62355e9ac64cbfa211169bb.js → vendor-ab4b5dfdf8b86f24d726115ac7de0980.js} +5990 -6203
- package/core/built/admin/index.html +7 -7
- package/core/server/lib/common/events.js +12 -0
- package/core/server/services/comments/emails.js +3 -19
- package/core/server/services/comments/index.js +2 -0
- package/core/server/services/comments/service.js +2 -1
- package/core/server/services/mega/post-email-serializer.js +8 -1
- package/core/server/services/mega/template.js +2 -1
- package/core/server/services/members/config.js +11 -72
- package/core/server/services/members/middleware.js +2 -0
- package/core/server/services/members/service.js +2 -1
- package/core/server/services/settings/settings-service.js +5 -72
- package/core/server/services/settings-helpers/index.js +6 -0
- package/core/server/services/settings-helpers/settings-helpers.js +99 -0
- package/core/server/services/staff/index.js +2 -4
- package/core/server/services/stripe/config.js +2 -38
- package/core/server/services/stripe/service.js +2 -1
- package/core/server/services/url/Resources.js +48 -59
- package/core/server/services/url/UrlService.js +2 -2
- package/core/server/services/webhooks/listen.js +10 -1
- package/core/server/web/shared/middleware/api/spam-prevention.js +32 -0
- package/core/server/web/shared/middleware/brute.js +3 -16
- package/core/shared/config/defaults.json +1 -0
- package/package.json +92 -92
- package/yarn.lock +332 -137
- package/components/tryghost-api-version-compatibility-service-5.12.2.tgz +0 -0
- package/components/tryghost-bootstrap-socket-5.12.2.tgz +0 -0
- package/components/tryghost-constants-5.12.2.tgz +0 -0
- package/components/tryghost-domain-events-5.12.2.tgz +0 -0
- package/components/tryghost-email-analytics-provider-mailgun-5.12.2.tgz +0 -0
- package/components/tryghost-email-analytics-service-5.12.2.tgz +0 -0
- package/components/tryghost-email-content-generator-5.12.2.tgz +0 -0
- package/components/tryghost-express-dynamic-redirects-5.12.2.tgz +0 -0
- package/components/tryghost-extract-api-key-5.12.2.tgz +0 -0
- package/components/tryghost-html-to-plaintext-5.12.2.tgz +0 -0
- package/components/tryghost-member-analytics-service-5.12.2.tgz +0 -0
- package/components/tryghost-member-events-5.12.2.tgz +0 -0
- package/components/tryghost-members-analytics-ingress-5.12.2.tgz +0 -0
- package/components/tryghost-members-api-5.12.2.tgz +0 -0
- package/components/tryghost-members-events-service-5.12.2.tgz +0 -0
- package/components/tryghost-members-payments-5.12.2.tgz +0 -0
- package/components/tryghost-minifier-5.12.2.tgz +0 -0
- package/components/tryghost-mw-api-version-mismatch-5.12.2.tgz +0 -0
- package/components/tryghost-mw-cache-control-5.12.2.tgz +0 -0
- package/components/tryghost-mw-session-from-token-5.12.2.tgz +0 -0
- package/components/tryghost-mw-update-user-last-seen-5.12.2.tgz +0 -0
- package/components/tryghost-mw-vhost-5.12.2.tgz +0 -0
- package/components/tryghost-oembed-service-5.12.2.tgz +0 -0
- package/components/tryghost-settings-path-manager-5.12.2.tgz +0 -0
- package/components/tryghost-staff-service-5.12.2.tgz +0 -0
- package/content/themes/casper/yarn.lock +0 -5385
- package/core/built/admin/assets/ghost-0bbbef127e5dc0c0651fc442c4fdba8e.css +0 -1
- package/core/built/admin/assets/ghost-dark-27e002e66fbfdfaf3efcde63d5429c38.css +0 -1
- package/core/built/admin/assets/icons/account-group.svg +0 -1
- package/core/built/admin/assets/icons/activity-placeholder.svg +0 -3
- package/core/built/admin/assets/icons/add-stroke.svg +0 -1
- package/core/built/admin/assets/icons/add-view.svg +0 -1
- package/core/built/admin/assets/icons/add.svg +0 -3
- package/core/built/admin/assets/icons/align-center.svg +0 -3
- package/core/built/admin/assets/icons/align-left.svg +0 -3
- package/core/built/admin/assets/icons/ambulance.svg +0 -1
- package/core/built/admin/assets/icons/analytics.svg +0 -14
- package/core/built/admin/assets/icons/arrow-down-small.svg +0 -12
- package/core/built/admin/assets/icons/arrow-down-stroke.svg +0 -1
- package/core/built/admin/assets/icons/arrow-down.svg +0 -3
- package/core/built/admin/assets/icons/arrow-left-small.svg +0 -8
- package/core/built/admin/assets/icons/arrow-left-stroke.svg +0 -1
- package/core/built/admin/assets/icons/arrow-left-tail.svg +0 -4
- package/core/built/admin/assets/icons/arrow-left.svg +0 -3
- package/core/built/admin/assets/icons/arrow-right-small.svg +0 -12
- package/core/built/admin/assets/icons/arrow-right-stroke.svg +0 -1
- package/core/built/admin/assets/icons/arrow-right-tail.svg +0 -4
- package/core/built/admin/assets/icons/arrow-right.svg +0 -3
- package/core/built/admin/assets/icons/arrow-up-small.svg +0 -12
- package/core/built/admin/assets/icons/arrow-up-stroke.svg +0 -1
- package/core/built/admin/assets/icons/arrow-up.svg +0 -9
- package/core/built/admin/assets/icons/arrow2-down.svg +0 -1
- package/core/built/admin/assets/icons/arrow2-right.svg +0 -11
- package/core/built/admin/assets/icons/audio-file.svg +0 -5
- package/core/built/admin/assets/icons/audio-upload.svg +0 -8
- package/core/built/admin/assets/icons/book-open.svg +0 -1
- package/core/built/admin/assets/icons/bookmark-article.svg +0 -1
- package/core/built/admin/assets/icons/box-hands.svg +0 -1
- package/core/built/admin/assets/icons/box.svg +0 -3
- package/core/built/admin/assets/icons/boxes.svg +0 -1
- package/core/built/admin/assets/icons/brackets.svg +0 -1
- package/core/built/admin/assets/icons/button.svg +0 -4
- package/core/built/admin/assets/icons/calendar-stroke.svg +0 -1
- package/core/built/admin/assets/icons/calendar.svg +0 -4
- package/core/built/admin/assets/icons/cash.svg +0 -1
- package/core/built/admin/assets/icons/chat-double-bubble.svg +0 -1
- package/core/built/admin/assets/icons/check-2.svg +0 -1
- package/core/built/admin/assets/icons/check-circle-stroke.svg +0 -1
- package/core/built/admin/assets/icons/check-circle.svg +0 -5
- package/core/built/admin/assets/icons/check.svg +0 -1
- package/core/built/admin/assets/icons/cheeseburger.svg +0 -1
- package/core/built/admin/assets/icons/circle-ellipsis.svg +0 -1
- package/core/built/admin/assets/icons/clock.svg +0 -1
- package/core/built/admin/assets/icons/clockface.svg +0 -1
- package/core/built/admin/assets/icons/close-stroke.svg +0 -1
- package/core/built/admin/assets/icons/close.svg +0 -1
- package/core/built/admin/assets/icons/cloud.svg +0 -1
- package/core/built/admin/assets/icons/compass-2.svg +0 -1
- package/core/built/admin/assets/icons/compass.svg +0 -3
- package/core/built/admin/assets/icons/computer.svg +0 -1
- package/core/built/admin/assets/icons/confetti.svg +0 -1
- package/core/built/admin/assets/icons/content-bold.svg +0 -1
- package/core/built/admin/assets/icons/content.svg +0 -1
- package/core/built/admin/assets/icons/copy.svg +0 -1
- package/core/built/admin/assets/icons/credit-card.svg +0 -1
- package/core/built/admin/assets/icons/cross-circle.svg +0 -1
- package/core/built/admin/assets/icons/cycle.svg +0 -1
- package/core/built/admin/assets/icons/default-favicon.svg +0 -12
- package/core/built/admin/assets/icons/desert.svg +0 -59
- package/core/built/admin/assets/icons/desktop.svg +0 -5
- package/core/built/admin/assets/icons/diamond.svg +0 -1
- package/core/built/admin/assets/icons/discount-bubble.svg +0 -1
- package/core/built/admin/assets/icons/dividers.svg +0 -4
- package/core/built/admin/assets/icons/dotdotdot.svg +0 -1
- package/core/built/admin/assets/icons/download-circle.svg +0 -1
- package/core/built/admin/assets/icons/download.svg +0 -3
- package/core/built/admin/assets/icons/eco-globe.svg +0 -1
- package/core/built/admin/assets/icons/eco-lightbulb.svg +0 -1
- package/core/built/admin/assets/icons/edit-view.svg +0 -1
- package/core/built/admin/assets/icons/ellipsis.svg +0 -1
- package/core/built/admin/assets/icons/email-at.svg +0 -1
- package/core/built/admin/assets/icons/email-body.svg +0 -1
- package/core/built/admin/assets/icons/email-footer.svg +0 -1
- package/core/built/admin/assets/icons/email-header.svg +0 -1
- package/core/built/admin/assets/icons/email-love-letter.svg +0 -1
- package/core/built/admin/assets/icons/email-member.svg +0 -1
- package/core/built/admin/assets/icons/email-name.svg +0 -1
- package/core/built/admin/assets/icons/email-send.svg +0 -1
- package/core/built/admin/assets/icons/email-stroke.svg +0 -4
- package/core/built/admin/assets/icons/email-unread.svg +0 -4
- package/core/built/admin/assets/icons/email.svg +0 -1
- package/core/built/admin/assets/icons/event-canceled-subscription--feature-attribution.svg +0 -6
- package/core/built/admin/assets/icons/event-canceled-subscription.svg +0 -6
- package/core/built/admin/assets/icons/event-comment--feature-attribution.svg +0 -3
- package/core/built/admin/assets/icons/event-comment.svg +0 -3
- package/core/built/admin/assets/icons/event-email-delivery-failed--feature-attribution.svg +0 -6
- package/core/built/admin/assets/icons/event-email-delivery-failed.svg +0 -6
- package/core/built/admin/assets/icons/event-logged-in--feature-attribution.svg +0 -5
- package/core/built/admin/assets/icons/event-logged-in.svg +0 -5
- package/core/built/admin/assets/icons/event-made-a-payment--feature-attribution.svg +0 -7
- package/core/built/admin/assets/icons/event-made-a-payment.svg +0 -7
- package/core/built/admin/assets/icons/event-opened-email--feature-attribution.svg +0 -6
- package/core/built/admin/assets/icons/event-opened-email.svg +0 -6
- package/core/built/admin/assets/icons/event-received-email--feature-attribution.svg +0 -5
- package/core/built/admin/assets/icons/event-received-email.svg +0 -5
- package/core/built/admin/assets/icons/event-signed-up--feature-attribution.svg +0 -6
- package/core/built/admin/assets/icons/event-signed-up.svg +0 -6
- package/core/built/admin/assets/icons/event-started-subscription--feature-attribution.svg +0 -6
- package/core/built/admin/assets/icons/event-subscribed-to-email--feature-attribution.svg +0 -8
- package/core/built/admin/assets/icons/event-subscribed-to-email.svg +0 -8
- package/core/built/admin/assets/icons/event-subscriptions--feature-attribution.svg +0 -5
- package/core/built/admin/assets/icons/event-subscriptions.svg +0 -5
- package/core/built/admin/assets/icons/event-unsubscribed-from-email--feature-attribution.svg +0 -5
- package/core/built/admin/assets/icons/event-unsubscribed-from-email.svg +0 -5
- package/core/built/admin/assets/icons/expand.svg +0 -1
- package/core/built/admin/assets/icons/external.svg +0 -4
- package/core/built/admin/assets/icons/eye.svg +0 -4
- package/core/built/admin/assets/icons/facebook-heart.svg +0 -5
- package/core/built/admin/assets/icons/facebook-like.svg +0 -5
- package/core/built/admin/assets/icons/facebook.svg +0 -6
- package/core/built/admin/assets/icons/feature-image.svg +0 -4
- package/core/built/admin/assets/icons/file-download.svg +0 -1
- package/core/built/admin/assets/icons/file-tabular-data.svg +0 -1
- package/core/built/admin/assets/icons/file-text-document.svg +0 -1
- package/core/built/admin/assets/icons/file-upload.svg +0 -1
- package/core/built/admin/assets/icons/film-camera.svg +0 -4
- package/core/built/admin/assets/icons/filter.svg +0 -5
- package/core/built/admin/assets/icons/firstpromoter-ce8b5219e5b5ebda463bd60396c6ab81.png +0 -0
- package/core/built/admin/assets/icons/folder.svg +0 -4
- package/core/built/admin/assets/icons/gallery-placeholder.svg +0 -14
- package/core/built/admin/assets/icons/get-started-import.svg +0 -13
- package/core/built/admin/assets/icons/get-started-members.svg +0 -6
- package/core/built/admin/assets/icons/get-started-migrations.svg +0 -6
- package/core/built/admin/assets/icons/get-started.svg +0 -3
- package/core/built/admin/assets/icons/ghost-logo-orb.svg +0 -10
- package/core/built/admin/assets/icons/ghost-logo.svg +0 -1
- package/core/built/admin/assets/icons/ghost-orb-pink.svg +0 -10
- package/core/built/admin/assets/icons/ghost-orb.svg +0 -10
- package/core/built/admin/assets/icons/ghost-squircle.svg +0 -7
- package/core/built/admin/assets/icons/gift.svg +0 -1
- package/core/built/admin/assets/icons/github-outline.svg +0 -1
- package/core/built/admin/assets/icons/github-star.svg +0 -8
- package/core/built/admin/assets/icons/github.svg +0 -6
- package/core/built/admin/assets/icons/globe.svg +0 -1
- package/core/built/admin/assets/icons/google-favicon.svg +0 -6
- package/core/built/admin/assets/icons/google-search.svg +0 -3
- package/core/built/admin/assets/icons/google.svg +0 -8
- package/core/built/admin/assets/icons/grab.svg +0 -4
- package/core/built/admin/assets/icons/graph-line.svg +0 -1
- package/core/built/admin/assets/icons/heart-beat.svg +0 -1
- package/core/built/admin/assets/icons/heart-circle.svg +0 -1
- package/core/built/admin/assets/icons/heart.svg +0 -1
- package/core/built/admin/assets/icons/help.svg +0 -6
- package/core/built/admin/assets/icons/hotspot.svg +0 -4
- package/core/built/admin/assets/icons/house-bold.svg +0 -1
- package/core/built/admin/assets/icons/house.svg +0 -1
- package/core/built/admin/assets/icons/icon.svg +0 -1
- package/core/built/admin/assets/icons/id-card.svg +0 -1
- package/core/built/admin/assets/icons/idea.svg +0 -1
- package/core/built/admin/assets/icons/info.svg +0 -1
- package/core/built/admin/assets/icons/instagram.svg +0 -8
- package/core/built/admin/assets/icons/integration.svg +0 -1
- package/core/built/admin/assets/icons/labs.svg +0 -1
- package/core/built/admin/assets/icons/laptop.svg +0 -1
- package/core/built/admin/assets/icons/line.svg +0 -10
- package/core/built/admin/assets/icons/link.svg +0 -1
- package/core/built/admin/assets/icons/list-bullet.svg +0 -1
- package/core/built/admin/assets/icons/list-number.svg +0 -1
- package/core/built/admin/assets/icons/lock.svg +0 -1
- package/core/built/admin/assets/icons/lock2.svg +0 -10
- package/core/built/admin/assets/icons/loop-infinite.svg +0 -13
- package/core/built/admin/assets/icons/lotus.svg +0 -1
- package/core/built/admin/assets/icons/markdown.svg +0 -12
- package/core/built/admin/assets/icons/member-add.svg +0 -3
- package/core/built/admin/assets/icons/member.svg +0 -1
- package/core/built/admin/assets/icons/members-all.svg +0 -5
- package/core/built/admin/assets/icons/members-bold.svg +0 -1
- package/core/built/admin/assets/icons/members-outline.svg +0 -5
- package/core/built/admin/assets/icons/members-paid.svg +0 -4
- package/core/built/admin/assets/icons/members-placeholder.svg +0 -5
- package/core/built/admin/assets/icons/members-post.svg +0 -5
- package/core/built/admin/assets/icons/members-segment.svg +0 -21
- package/core/built/admin/assets/icons/members.svg +0 -1
- package/core/built/admin/assets/icons/mobile-phone-heart.svg +0 -1
- package/core/built/admin/assets/icons/mobile-phone.svg +0 -4
- package/core/built/admin/assets/icons/module.svg +0 -1
- package/core/built/admin/assets/icons/modules.svg +0 -1
- package/core/built/admin/assets/icons/monitor-labs.svg +0 -1
- package/core/built/admin/assets/icons/moon.svg +0 -1
- package/core/built/admin/assets/icons/mountains.svg +0 -1
- package/core/built/admin/assets/icons/mute.svg +0 -3
- package/core/built/admin/assets/icons/navigation.svg +0 -1
- package/core/built/admin/assets/icons/network.svg +0 -1
- package/core/built/admin/assets/icons/news-article.svg +0 -1
- package/core/built/admin/assets/icons/nightshift.svg +0 -1
- package/core/built/admin/assets/icons/no-data-line-chart.svg +0 -1
- package/core/built/admin/assets/icons/no-data-list.svg +0 -9
- package/core/built/admin/assets/icons/no-data-subscription.svg +0 -1
- package/core/built/admin/assets/icons/no-email.svg +0 -5
- package/core/built/admin/assets/icons/no-members.svg +0 -3
- package/core/built/admin/assets/icons/offer.svg +0 -4
- package/core/built/admin/assets/icons/page-bold.svg +0 -1
- package/core/built/admin/assets/icons/page.svg +0 -1
- package/core/built/admin/assets/icons/pages-placeholder.svg +0 -3
- package/core/built/admin/assets/icons/paint-palette.svg +0 -1
- package/core/built/admin/assets/icons/paintbrush.svg +0 -10
- package/core/built/admin/assets/icons/pause.svg +0 -4
- package/core/built/admin/assets/icons/pen-stroke.svg +0 -1
- package/core/built/admin/assets/icons/pen.svg +0 -1
- package/core/built/admin/assets/icons/pencil-circle.svg +0 -1
- package/core/built/admin/assets/icons/pencil.svg +0 -1
- package/core/built/admin/assets/icons/percentage.svg +0 -1
- package/core/built/admin/assets/icons/photos-people.svg +0 -1
- package/core/built/admin/assets/icons/photos.svg +0 -1
- package/core/built/admin/assets/icons/piggy-bank.svg +0 -1
- package/core/built/admin/assets/icons/pin.svg +0 -4
- package/core/built/admin/assets/icons/plane.svg +0 -1
- package/core/built/admin/assets/icons/play.svg +0 -3
- package/core/built/admin/assets/icons/plus.svg +0 -1
- package/core/built/admin/assets/icons/portal-icon-1.svg +0 -1
- package/core/built/admin/assets/icons/portal-icon-2.svg +0 -1
- package/core/built/admin/assets/icons/portal-icon-3.svg +0 -1
- package/core/built/admin/assets/icons/portal-icon-4.svg +0 -1
- package/core/built/admin/assets/icons/portal-icon-5.svg +0 -1
- package/core/built/admin/assets/icons/portal-logo-stroke.svg +0 -15
- package/core/built/admin/assets/icons/portal-logo.svg +0 -1
- package/core/built/admin/assets/icons/post.svg +0 -3
- package/core/built/admin/assets/icons/posts-placeholder.svg +0 -4
- package/core/built/admin/assets/icons/posts.svg +0 -1
- package/core/built/admin/assets/icons/powered-by-stripe.svg +0 -14
- package/core/built/admin/assets/icons/powered-by-tenor.svg +0 -35
- package/core/built/admin/assets/icons/presentation-code.svg +0 -1
- package/core/built/admin/assets/icons/published-post.svg +0 -1
- package/core/built/admin/assets/icons/recycle.svg +0 -1
- package/core/built/admin/assets/icons/reload.svg +0 -1
- package/core/built/admin/assets/icons/repo.svg +0 -1
- package/core/built/admin/assets/icons/retry.svg +0 -6
- package/core/built/admin/assets/icons/satellite.svg +0 -1
- package/core/built/admin/assets/icons/search.svg +0 -1
- package/core/built/admin/assets/icons/send-email.svg +0 -1
- package/core/built/admin/assets/icons/server.svg +0 -1
- package/core/built/admin/assets/icons/settings.svg +0 -1
- package/core/built/admin/assets/icons/shield-lock.svg +0 -1
- package/core/built/admin/assets/icons/shield.svg +0 -1
- package/core/built/admin/assets/icons/sidemenu-open.svg +0 -4
- package/core/built/admin/assets/icons/sidemenu.svg +0 -3
- package/core/built/admin/assets/icons/signal-tower.svg +0 -1
- package/core/built/admin/assets/icons/signout.svg +0 -1
- package/core/built/admin/assets/icons/smiley.svg +0 -1
- package/core/built/admin/assets/icons/social-facebook.svg +0 -7
- package/core/built/admin/assets/icons/social-share.svg +0 -4
- package/core/built/admin/assets/icons/social-twitter.svg +0 -4
- package/core/built/admin/assets/icons/spinner.svg +0 -1
- package/core/built/admin/assets/icons/staff.svg +0 -1
- package/core/built/admin/assets/icons/star-filled.svg +0 -1
- package/core/built/admin/assets/icons/store.svg +0 -1
- package/core/built/admin/assets/icons/stripe-verified-partner-badge.svg +0 -1
- package/core/built/admin/assets/icons/summer.svg +0 -1
- package/core/built/admin/assets/icons/sun.svg +0 -1
- package/core/built/admin/assets/icons/support.svg +0 -1
- package/core/built/admin/assets/icons/sync.svg +0 -3
- package/core/built/admin/assets/icons/tag.svg +0 -1
- package/core/built/admin/assets/icons/tags-placeholder.svg +0 -5
- package/core/built/admin/assets/icons/tenor.svg +0 -7
- package/core/built/admin/assets/icons/terminal.svg +0 -1
- package/core/built/admin/assets/icons/text-vector.svg +0 -1
- package/core/built/admin/assets/icons/text.svg +0 -1
- package/core/built/admin/assets/icons/theme.svg +0 -1
- package/core/built/admin/assets/icons/ticket.svg +0 -1
- package/core/built/admin/assets/icons/trash.svg +0 -3
- package/core/built/admin/assets/icons/trophy.svg +0 -1
- package/core/built/admin/assets/icons/tumbleweed.svg +0 -10
- package/core/built/admin/assets/icons/twitter-comment.svg +0 -5
- package/core/built/admin/assets/icons/twitter-like.svg +0 -5
- package/core/built/admin/assets/icons/twitter-link.svg +0 -6
- package/core/built/admin/assets/icons/twitter-logo.svg +0 -3
- package/core/built/admin/assets/icons/twitter-retweet.svg +0 -5
- package/core/built/admin/assets/icons/twitter-share.svg +0 -6
- package/core/built/admin/assets/icons/twitter.svg +0 -1
- package/core/built/admin/assets/icons/ufo-attack.svg +0 -1
- package/core/built/admin/assets/icons/unmute.svg +0 -3
- package/core/built/admin/assets/icons/unsplash-heart.svg +0 -1
- package/core/built/admin/assets/icons/unsplash.svg +0 -1
- package/core/built/admin/assets/icons/unsubscribed.svg +0 -1
- package/core/built/admin/assets/icons/upload-fill.svg +0 -15
- package/core/built/admin/assets/icons/upload.svg +0 -1
- package/core/built/admin/assets/icons/user-circle.svg +0 -1
- package/core/built/admin/assets/icons/user-group.svg +0 -1
- package/core/built/admin/assets/icons/user-group2.svg +0 -1
- package/core/built/admin/assets/icons/v-ellipsis.svg +0 -1
- package/core/built/admin/assets/icons/view-site.svg +0 -1
- package/core/built/admin/assets/icons/warning-stroke.svg +0 -1
- package/core/built/admin/assets/icons/warning.svg +0 -1
- package/core/built/admin/assets/icons/window-app.svg +0 -1
- package/core/built/admin/assets/icons/window-pulse.svg +0 -1
- package/core/built/admin/assets/icons/wrench-double.svg +0 -1
- package/core/built/admin/assets/icons/zap.svg +0 -1
- package/core/built/admin/assets/img/abstract-2-2937e2902b64360d0cbe4cec8bd8479b.jpg +0 -0
- package/core/built/admin/assets/img/abstract-c52b2f4208e7fd2e7b8abd8b1eec4f7b.jpg +0 -0
- package/core/built/admin/assets/img/community-be8c1dcecfb157f2bfba5cababc8e686.jpg +0 -0
- package/core/built/admin/assets/img/dashboard/bp1-03a13253453b372d0bbd5e6a19b20fca.jpg +0 -0
- package/core/built/admin/assets/img/dashboard/bp2-ed14f9f48c56d5d6fe997dc637a8b1ad.jpg +0 -0
- package/core/built/admin/assets/img/dashboard/join-community-bb5478f7dca6c04a2d0baf2b02f880fb.jpg +0 -0
- package/core/built/admin/assets/img/dashboard-feature-image-8949197550decb94a8f1dea57ad47819.jpeg +0 -0
- package/core/built/admin/assets/img/get-started-995c36b9ede90bb3777c83751e798ef7.jpg +0 -0
- package/core/built/admin/assets/img/install-welcome-ff3912d18bf8949df89c83b1c3b8bb66.png +0 -0
- package/core/built/admin/assets/img/invite-placeholder-4b3731d47c6c8f6cb3aaa6bc4d870c9f.png +0 -0
- package/core/built/admin/assets/img/launch-wizard-bg-13b995b1f02bce34b269db3190897384.png +0 -0
- package/core/built/admin/assets/img/more-fe5480ab76c7be7aec28bcfe844f41c1.png +0 -0
- package/core/built/admin/assets/img/newsletter-1-197ae8063dfb2e22278d355198029c9e.jpg +0 -0
- package/core/built/admin/assets/img/newsletter-2-5a2c7693ea9380d4282061302c01267a.jpg +0 -0
- package/core/built/admin/assets/img/themes/Alto-a5172a42994782321d8c9f268928d987.jpg +0 -0
- package/core/built/admin/assets/img/themes/Alto-cut-c667d9d6457c5e981aa7bdc8946b215a.jpg +0 -0
- package/core/built/admin/assets/img/themes/Ease-7cfb8f06f9b66b1aa04b92493a471fef.jpg +0 -0
- package/core/built/admin/assets/img/themes/Ease-cut-78d5aa00682bee6a4cf22155f09e49e8.jpg +0 -0
- package/core/built/admin/assets/img/themes/Edition-b94372eb5c88fce0f4befba39148ff28.jpg +0 -0
- package/core/built/admin/assets/img/themes/Edition-cut-e6545bab2768aafa1996100774f310ff.jpg +0 -0
- package/core/built/admin/assets/img/themes/London-cut-599cba221f81a15ad37fe395cf4e572c.jpg +0 -0
- package/core/built/admin/assets/img/users-33427addfe0f11c78b42cccaf83be073.png +0 -0
- package/core/built/admin/assets/img/whats-new-header-bg.svg +0 -1
|
@@ -1,209 +1,211 @@
|
|
|
1
|
-
"use strict";(globalThis.webpackChunk_ember_auto_import_=globalThis.webpackChunk_ember_auto_import_||[]).push([[174],{38285:(t,e,
|
|
2
|
-
var i
|
|
1
|
+
"use strict";(globalThis.webpackChunk_ember_auto_import_=globalThis.webpackChunk_ember_auto_import_||[]).push([[174],{38285:(t,e,i)=>{i.d(e,{ro:()=>g,lb:()=>m})
|
|
2
|
+
var n=i(33867),a=i(88521),s=i(16140),r=i(30180),o=i(8142),c=i(48206)
|
|
3
3
|
function _(){var t=(0,c.x1)()
|
|
4
|
-
if(t){var e="internal_error";("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&a.kg.log(`[Tracing] Transaction: ${e} -> Global error occured`),t.setStatus(e)}}var d=
|
|
4
|
+
if(t){var e="internal_error";("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&a.kg.log(`[Tracing] Transaction: ${e} -> Global error occured`),t.setStatus(e)}}var d=i(27448),p=i(21535)
|
|
5
5
|
function l(){var t=this.getScope()
|
|
6
6
|
if(t){var e=t.getSpan()
|
|
7
|
-
if(e)return{"sentry-trace":e.toTraceparent()}}return{}}function u(t,e,
|
|
7
|
+
if(e)return{"sentry-trace":e.toTraceparent()}}return{}}function u(t,e,i){if(!(0,c.zu)(e))return t.sampled=!1,t
|
|
8
8
|
if(void 0!==t.sampled)return t.setMetadata({transactionSampling:{method:"explicitly_set"}}),t
|
|
9
|
-
let
|
|
10
|
-
return"function"==typeof e.tracesSampler?(
|
|
11
|
-
var r}function h(t,e){var
|
|
9
|
+
let n
|
|
10
|
+
return"function"==typeof e.tracesSampler?(n=e.tracesSampler(i),t.setMetadata({transactionSampling:{method:"client_sampler",rate:Number(n)}})):void 0!==i.parentSampled?(n=i.parentSampled,t.setMetadata({transactionSampling:{method:"inheritance"}})):(n=e.tracesSampleRate,t.setMetadata({transactionSampling:{method:"client_rate",rate:Number(n)}})),r=n,((0,s.i2)(r)||"number"!=typeof r&&"boolean"!=typeof r?(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&a.kg.warn(`[Tracing] Given sample rate is invalid. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(r)} of type ${JSON.stringify(typeof r)}.`),0):!(r<0||r>1)||(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&a.kg.warn(`[Tracing] Given sample rate is invalid. Sample rate must be between 0 and 1. Got ${r}.`),0))?n?(t.sampled=Math.random()<n,t.sampled?(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&a.kg.log(`[Tracing] starting ${t.op} transaction - ${t.name}`),t):(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&a.kg.log(`[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = ${Number(n)})`),t)):(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&a.kg.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__)&&a.kg.warn("[Tracing] Discarding transaction because of invalid sample rate."),t.sampled=!1,t)
|
|
11
|
+
var r}function h(t,e){var i=this.getClient(),n=i&&i.getOptions()||{}
|
|
12
12
|
let a=new p.Y(t,this)
|
|
13
|
-
return a=u(a,
|
|
14
|
-
let c=new d.io(e,t,n,
|
|
15
|
-
return c=u(c,o,{parentSampled:e.parentSampled,transactionContext:e,...s}),c.sampled&&c.initSpanRecorder(o._experiments&&o._experiments.maxSpans),c}function g(){var e;(e=(0,
|
|
16
|
-
if(e.__SENTRY__){var
|
|
17
|
-
a.length>0&&(e.__SENTRY__.integrations=[...e.__SENTRY__.integrations||[],...a])}}(),(0,o.o)("error",_),(0,o.o)("unhandledrejection",_)}t=
|
|
18
|
-
var i
|
|
19
|
-
class _ extends s.gB{constructor(t,e,n
|
|
20
|
-
super(t,e),this._idleHub=e,this._idleTimeout=
|
|
13
|
+
return a=u(a,n,{parentSampled:t.parentSampled,transactionContext:t,...e}),a.sampled&&a.initSpanRecorder(n._experiments&&n._experiments.maxSpans),a}function m(t,e,i,n,a,s){var r=t.getClient(),o=r&&r.getOptions()||{}
|
|
14
|
+
let c=new d.io(e,t,i,n,a)
|
|
15
|
+
return c=u(c,o,{parentSampled:e.parentSampled,transactionContext:e,...s}),c.sampled&&c.initSpanRecorder(o._experiments&&o._experiments.maxSpans),c}function g(){var e;(e=(0,n.cu)()).__SENTRY__&&(e.__SENTRY__.extensions=e.__SENTRY__.extensions||{},e.__SENTRY__.extensions.startTransaction||(e.__SENTRY__.extensions.startTransaction=h),e.__SENTRY__.extensions.traceHeaders||(e.__SENTRY__.extensions.traceHeaders=l)),(0,r.KV)()&&function(){var e=(0,n.cu)()
|
|
16
|
+
if(e.__SENTRY__){var i={mongodb:()=>new((0,r.l$)(t,"./integrations/node/mongo").Mongo),mongoose:()=>new((0,r.l$)(t,"./integrations/node/mongo").Mongo)({mongoose:!0}),mysql:()=>new((0,r.l$)(t,"./integrations/node/mysql").Mysql),pg:()=>new((0,r.l$)(t,"./integrations/node/postgres").Postgres)},a=Object.keys(i).filter((t=>!!(0,r.$y)(t))).map((t=>{try{return i[t]()}catch(t){return}})).filter((t=>t))
|
|
17
|
+
a.length>0&&(e.__SENTRY__.integrations=[...e.__SENTRY__.integrations||[],...a])}}(),(0,o.o)("error",_),(0,o.o)("unhandledrejection",_)}t=i.hmd(t)},27448:(t,e,i)=>{i.d(e,{io:()=>d,mg:()=>c,nT:()=>o})
|
|
18
|
+
var n=i(88468),a=i(88521),s=i(20484),r=i(21535),o=1e3,c=3e4
|
|
19
|
+
class _ extends s.gB{constructor(t,e,i,n){super(n),this._pushActivity=t,this._popActivity=e,this.transactionSpanId=i}add(t){t.spanId!==this.transactionSpanId&&(t.finish=e=>{t.endTimestamp="number"==typeof e?e:(0,n._I)(),this._popActivity(t.spanId)},void 0===t.endTimestamp&&this._pushActivity(t.spanId)),super.add(t)}}class d extends r.Y{__init(){this.activities={}}__init2(){this._heartbeatCounter=0}__init3(){this._finished=!1}__init4(){this._beforeFinishCallbacks=[]}constructor(t,e){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:o,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:c,s=arguments.length>4&&void 0!==arguments[4]&&arguments[4]
|
|
20
|
+
super(t,e),this._idleHub=e,this._idleTimeout=i,this._finalTimeout=n,this._onScope=s,d.prototype.__init.call(this),d.prototype.__init2.call(this),d.prototype.__init3.call(this),d.prototype.__init4.call(this),s&&(p(e),("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&a.kg.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(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:(0,n._I)()
|
|
21
21
|
if(this._finished=!0,this.activities={},this.spanRecorder){for(var e of(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&a.kg.log("[Tracing] finishing IdleTransaction",new Date(1e3*t).toISOString(),this.op),this._beforeFinishCallbacks))e(this,t)
|
|
22
22
|
this.spanRecorder.spans=this.spanRecorder.spans.filter((e=>{if(e.spanId===this.spanId)return!0
|
|
23
23
|
e.endTimestamp||(e.endTimestamp=t,e.setStatus("cancelled"),("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&a.kg.log("[Tracing] cancelling span since transaction ended early",JSON.stringify(e,void 0,2)))
|
|
24
|
-
var
|
|
25
|
-
return
|
|
26
|
-
return this._onScope&&p(this._idleHub),super.finish(t)}registerBeforeFinishCallback(t){this._beforeFinishCallbacks.push(t)}initSpanRecorder(t){this.spanRecorder||(this.spanRecorder=new _((t=>{this._finished||this._pushActivity(t)}),(t=>{this._finished||this._popActivity(t)}),this.spanId,t),("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&a.kg.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__)&&a.kg.log(`[Tracing] pushActivity: ${t}`),this.activities[t]=!0,("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&a.kg.log("[Tracing] new activities count",Object.keys(this.activities).length)}_popActivity(t){if(this.activities[t]&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&a.kg.log(`[Tracing] popActivity ${t}`),delete this.activities[t],("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&a.kg.log("[Tracing] new activities count",Object.keys(this.activities).length)),0===Object.keys(this.activities).length){var e=(0,
|
|
24
|
+
var i=e.startTimestamp<t
|
|
25
|
+
return i||("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&a.kg.log("[Tracing] discarding Span since it happened after Transaction was finished",JSON.stringify(e,void 0,2)),i})),("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&a.kg.log("[Tracing] flushing IdleTransaction")}else("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&a.kg.log("[Tracing] No active IdleTransaction")
|
|
26
|
+
return this._onScope&&p(this._idleHub),super.finish(t)}registerBeforeFinishCallback(t){this._beforeFinishCallbacks.push(t)}initSpanRecorder(t){this.spanRecorder||(this.spanRecorder=new _((t=>{this._finished||this._pushActivity(t)}),(t=>{this._finished||this._popActivity(t)}),this.spanId,t),("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&a.kg.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__)&&a.kg.log(`[Tracing] pushActivity: ${t}`),this.activities[t]=!0,("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&a.kg.log("[Tracing] new activities count",Object.keys(this.activities).length)}_popActivity(t){if(this.activities[t]&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&a.kg.log(`[Tracing] popActivity ${t}`),delete this.activities[t],("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&a.kg.log("[Tracing] new activities count",Object.keys(this.activities).length)),0===Object.keys(this.activities).length){var e=(0,n._I)()+this._idleTimeout/1e3
|
|
27
27
|
this._startIdleTimeout(e)}}_beat(){if(!this._finished){var t=Object.keys(this.activities).join("")
|
|
28
28
|
t===this._prevHeartbeatString?this._heartbeatCounter+=1:this._heartbeatCounter=1,this._prevHeartbeatString=t,this._heartbeatCounter>=3?(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&a.kg.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__)&&a.kg.log(`pinging Heartbeat -> current counter: ${this._heartbeatCounter}`),setTimeout((()=>{this._beat()}),5e3)}}function p(t){var e=t.getScope()
|
|
29
|
-
e&&e.getTransaction()&&e.setSpan(void 0)}},43174:(t,e,
|
|
30
|
-
var
|
|
31
|
-
|
|
32
|
-
var a=
|
|
29
|
+
e&&e.getTransaction()&&e.setSpan(void 0)}},43174:(t,e,i)=>{i.r(e),i.d(e,{BROWSER_TRACING_INTEGRATION_ID:()=>at,BrowserTracing:()=>rt,IdleTransaction:()=>k.io,Integrations:()=>n,Span:()=>_t.Dr,SpanStatus:()=>ct,TRACEPARENT_REGEXP:()=>x.K,Transaction:()=>dt.Y,addExtensionMethods:()=>a.ro,defaultRequestInstrumentationOptions:()=>et,extractTraceparentData:()=>x.q,getActiveTransaction:()=>G.x1,hasTracingEnabled:()=>G.zu,instrumentOutgoingRequests:()=>it,spanStatusfromHttpCode:()=>_t.Zd,startIdleTransaction:()=>a.lb,stripUrlQueryAndFragment:()=>o.rt})
|
|
30
|
+
var n={}
|
|
31
|
+
i.r(n),i.d(n,{Apollo:()=>b,BrowserTracing:()=>rt,Express:()=>d,GraphQL:()=>R,Mongo:()=>S,Mysql:()=>T,Postgres:()=>f,Prisma:()=>y})
|
|
32
|
+
var a=i(38285),s=i(2796),r=i(88521),o=i(72702),c=i(14205),_=i(16140)
|
|
33
33
|
class d{static __initStatic(){this.id="Express"}__init(){this.name=d.id}constructor(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}
|
|
34
34
|
d.prototype.__init.call(this),this._router=t.router||t.app,this._methods=(Array.isArray(t.methods)?t.methods:[]).concat("use")}setupOnce(){this._router?(function(t){(arguments.length>1&&void 0!==arguments[1]?arguments[1]:[]).forEach((e=>u(t,e)))}(this._router,this._methods),function(t){var e="settings"in t
|
|
35
35
|
e&&void 0===t._router&&t.lazyrouter&&t.lazyrouter()
|
|
36
|
-
var
|
|
37
|
-
if(!
|
|
38
|
-
var
|
|
39
|
-
|
|
40
|
-
const{layerRoutePath:d,isRegex:p,isArray:l,numExtraSegments:u}=function(t){var e=(0,s.x)([t,"access",t=>t.route,"optionalAccess",t=>t.path]),
|
|
41
|
-
if(!e)return{isRegex:
|
|
42
|
-
var a=
|
|
43
|
-
return{layerRoutePath:h(
|
|
36
|
+
var i=e?t._router:t
|
|
37
|
+
if(!i)return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.kg.debug("Cannot instrument router for URL Parameterization (did not find a valid router)."),void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.kg.debug("Routing instrumentation is currently only supported in Express 4."))
|
|
38
|
+
var n=Object.getPrototypeOf(i),a=n.process_params
|
|
39
|
+
n.process_params=function(t,e,i,n,r){i._reconstructedRoute||(i._reconstructedRoute="")
|
|
40
|
+
const{layerRoutePath:d,isRegex:p,isArray:l,numExtraSegments:u}=function(t){var e=(0,s.x)([t,"access",t=>t.route,"optionalAccess",t=>t.path]),i=(0,_.Kj)(e),n=Array.isArray(e)
|
|
41
|
+
if(!e)return{isRegex:i,isArray:n,numExtraSegments:0}
|
|
42
|
+
var a=n?Math.max(e.reduce(((t,e)=>t+(0,o.$A)(e.toString())),0)-(0,o.$A)(t.path||""),0):0
|
|
43
|
+
return{layerRoutePath:h(n,e),isRegex:i,isArray:n,numExtraSegments:a}}(t)
|
|
44
44
|
var m=(d||t.path||"").split("/").filter((t=>t.length>0&&(p||l||!t.includes("*")))).join("/")
|
|
45
|
-
if(m&&m.length>0&&(
|
|
46
|
-
if(g&&"custom"!==g.metadata.source){var f=
|
|
47
|
-
g.setName(...(0,c.oA)(
|
|
48
|
-
switch(
|
|
45
|
+
if(m&&m.length>0&&(i._reconstructedRoute+=`/${m}${p?"/":""}`),(0,o.$A)(i.originalUrl||"")+u===(0,o.$A)(i._reconstructedRoute)){var g=n.__sentry_transaction
|
|
46
|
+
if(g&&"custom"!==g.metadata.source){var f=i._reconstructedRoute||"/"
|
|
47
|
+
g.setName(...(0,c.oA)(i,{path:!0,method:!0,customRoute:f}))}}return a.call(this,t,e,i,n,r)}}(this._router)):("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.kg.error("ExpressIntegration is missing an Express instance")}}function p(t,e){var i=t.length
|
|
48
|
+
switch(i){case 2:return function(i,n){var a=n.__sentry_transaction
|
|
49
49
|
if(a){var s=a.startChild({description:t.name,op:`express.middleware.${e}`})
|
|
50
|
-
|
|
51
|
-
case 3:return function(n,
|
|
52
|
-
t.call(this,n,
|
|
53
|
-
for(var t=arguments.length,e=new Array(t),
|
|
50
|
+
n.once("finish",(()=>{s.finish()}))}return t.call(this,i,n)}
|
|
51
|
+
case 3:return function(i,n,a){var r=n.__sentry_transaction,o=(0,s.x)([r,"optionalAccess",t=>t.startChild,"call",i=>i({description:t.name,op:`express.middleware.${e}`})])
|
|
52
|
+
t.call(this,i,n,(function(){(0,s.x)([o,"optionalAccess",t=>t.finish,"call",t=>t()])
|
|
53
|
+
for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i]
|
|
54
54
|
a.call(this,...e)}))}
|
|
55
|
-
case 4:return function(n,
|
|
56
|
-
t.call(this,n,
|
|
57
|
-
for(var t=arguments.length,e=new Array(t),
|
|
55
|
+
case 4:return function(i,n,a,r){var o=a.__sentry_transaction,c=(0,s.x)([o,"optionalAccess",t=>t.startChild,"call",i=>i({description:t.name,op:`express.middleware.${e}`})])
|
|
56
|
+
t.call(this,i,n,a,(function(){(0,s.x)([c,"optionalAccess",t=>t.finish,"call",t=>t()])
|
|
57
|
+
for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i]
|
|
58
58
|
r.call(this,...e)}))}
|
|
59
|
-
default:throw new Error(`Express middleware takes 2-4 arguments. Got: ${
|
|
60
|
-
return t[e]=function(){for(var t=arguments.length,
|
|
61
|
-
return
|
|
62
|
-
var m=
|
|
59
|
+
default:throw new Error(`Express middleware takes 2-4 arguments. Got: ${i}`)}}function l(t,e){return t.map((t=>"function"==typeof t?p(t,e):Array.isArray(t)?t.map((t=>"function"==typeof t?p(t,e):t)):t))}function u(t,e){var i=t[e]
|
|
60
|
+
return t[e]=function(){for(var t=arguments.length,n=new Array(t),a=0;a<t;a++)n[a]=arguments[a]
|
|
61
|
+
return i.call(this,...l(n,e))},t}function h(t,e){return t?e.map((t=>t.toString())).join(","):e&&e.toString()}d.__initStatic()
|
|
62
|
+
var m=i(30180),g=i(15834)
|
|
63
63
|
class f{static __initStatic(){this.id="Postgres"}__init(){this.name=f.id}constructor(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}
|
|
64
|
-
f.prototype.__init.call(this),this._usePgNative=!!t.usePgNative}setupOnce(t,e){var
|
|
65
|
-
if(!
|
|
66
|
-
if(this._usePgNative&&!(0,s.x)([
|
|
67
|
-
const{Client:
|
|
68
|
-
if("function"==typeof a)return t.call(this,n,
|
|
69
|
-
if("function"==typeof
|
|
70
|
-
var d=void 0!==
|
|
64
|
+
f.prototype.__init.call(this),this._usePgNative=!!t.usePgNative}setupOnce(t,e){var i=(0,m.$y)("pg")
|
|
65
|
+
if(!i)return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.kg.error("Postgres Integration was unable to require `pg` package."))
|
|
66
|
+
if(this._usePgNative&&!(0,s.x)([i,"access",t=>t.native,"optionalAccess",t=>t.Client]))return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.kg.error("Postgres Integration was unable to access 'pg-native' bindings."))
|
|
67
|
+
const{Client:n}=this._usePgNative?i.native:i;(0,g.hl)(n.prototype,"query",(function(t){return function(i,n,a){var r=e().getScope(),o=(0,s.x)([r,"optionalAccess",t=>t.getSpan,"call",t=>t()]),c=(0,s.x)([o,"optionalAccess",t=>t.startChild,"call",t=>t({description:"string"==typeof i?i:i.text,op:"db"})])
|
|
68
|
+
if("function"==typeof a)return t.call(this,i,n,(function(t,e){(0,s.x)([c,"optionalAccess",t=>t.finish,"call",t=>t()]),a(t,e)}))
|
|
69
|
+
if("function"==typeof n)return t.call(this,i,(function(t,e){(0,s.x)([c,"optionalAccess",t=>t.finish,"call",t=>t()]),n(t,e)}))
|
|
70
|
+
var d=void 0!==n?t.call(this,i,n):t.call(this,i)
|
|
71
71
|
return(0,_.J8)(d)?d.then((t=>((0,s.x)([c,"optionalAccess",t=>t.finish,"call",t=>t()]),t))):((0,s.x)([c,"optionalAccess",t=>t.finish,"call",t=>t()]),d)}}))}}f.__initStatic()
|
|
72
|
-
class T{constructor(){T.prototype.__init.call(this)}static __initStatic(){this.id="Mysql"}__init(){this.name=T.id}setupOnce(t,e){var
|
|
73
|
-
|
|
74
|
-
return"function"==typeof a?t.call(this,n,
|
|
72
|
+
class T{constructor(){T.prototype.__init.call(this)}static __initStatic(){this.id="Mysql"}__init(){this.name=T.id}setupOnce(t,e){var i=(0,m.$y)("mysql/lib/Connection.js")
|
|
73
|
+
i?(0,g.hl)(i,"createQuery",(function(t){return function(i,n,a){var r=e().getScope(),o=(0,s.x)([r,"optionalAccess",t=>t.getSpan,"call",t=>t()]),c=(0,s.x)([o,"optionalAccess",t=>t.startChild,"call",t=>t({description:"string"==typeof i?i:i.sql,op:"db"})])
|
|
74
|
+
return"function"==typeof a?t.call(this,i,n,(function(t,e,i){(0,s.x)([c,"optionalAccess",t=>t.finish,"call",t=>t()]),a(t,e,i)})):"function"==typeof n?t.call(this,i,(function(t,e,i){(0,s.x)([c,"optionalAccess",t=>t.finish,"call",t=>t()]),n(t,e,i)})):t.call(this,i,n,a)}})):("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.kg.error("Mysql Integration was unable to require `mysql` package.")}}T.__initStatic()
|
|
75
75
|
var v=["aggregate","bulkWrite","countDocuments","createIndex","createIndexes","deleteMany","deleteOne","distinct","drop","dropIndex","dropIndexes","estimatedDocumentCount","find","findOne","findOneAndDelete","findOneAndReplace","findOneAndUpdate","indexes","indexExists","indexInformation","initializeOrderedBulkOp","insertMany","insertOne","isCapped","mapReduce","options","parallelCollectionScan","rename","replaceOne","stats","updateMany","updateOne"],E={bulkWrite:["operations"],countDocuments:["query"],createIndex:["fieldOrSpec"],createIndexes:["indexSpecs"],deleteMany:["filter"],deleteOne:["filter"],distinct:["key","query"],dropIndex:["indexName"],find:["query"],findOne:["query"],findOneAndDelete:["filter"],findOneAndReplace:["filter","replacement"],findOneAndUpdate:["filter","update"],indexExists:["indexes"],insertMany:["docs"],insertOne:["doc"],mapReduce:["map","reduce"],rename:["newName"],replaceOne:["filter","doc"],updateMany:["filter","update"],updateOne:["filter","update"]}
|
|
76
76
|
class S{static __initStatic(){this.id="Mongo"}__init(){this.name=S.id}constructor(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}
|
|
77
|
-
S.prototype.__init.call(this),this._operations=Array.isArray(t.operations)?t.operations:v,this._describeOperations=!("describeOperations"in t)||t.describeOperations,this._useMongoose=!!t.useMongoose}setupOnce(t,e){var
|
|
78
|
-
|
|
79
|
-
var c=r[r.length-1],d=
|
|
80
|
-
if("function"!=typeof c||"mapReduce"===e&&2===r.length){var l=(0,s.x)([p,"optionalAccess",t=>t.startChild,"call",t=>t(
|
|
81
|
-
return(0,_.J8)(u)?u.then((t=>((0,s.x)([l,"optionalAccess",t=>t.finish,"call",t=>t()]),t))):((0,s.x)([l,"optionalAccess",t=>t.finish,"call",t=>t()]),u)}return l=(0,s.x)([p,"optionalAccess",t=>t.startChild,"call",t=>t(
|
|
77
|
+
S.prototype.__init.call(this),this._operations=Array.isArray(t.operations)?t.operations:v,this._describeOperations=!("describeOperations"in t)||t.describeOperations,this._useMongoose=!!t.useMongoose}setupOnce(t,e){var i=this._useMongoose?"mongoose":"mongodb",n=(0,m.$y)(i)
|
|
78
|
+
n?this._instrumentOperations(n.Collection,this._operations,e):("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.kg.error(`Mongo Integration was unable to require \`${i}\` package.`)}_instrumentOperations(t,e,i){e.forEach((e=>this._patchOperation(t,e,i)))}_patchOperation(t,e,i){if(e in t.prototype){var n=this._getSpanContextFromOperationArguments.bind(this);(0,g.hl)(t.prototype,e,(function(t){return function(){for(var a=arguments.length,r=new Array(a),o=0;o<a;o++)r[o]=arguments[o]
|
|
79
|
+
var c=r[r.length-1],d=i().getScope(),p=(0,s.x)([d,"optionalAccess",t=>t.getSpan,"call",t=>t()])
|
|
80
|
+
if("function"!=typeof c||"mapReduce"===e&&2===r.length){var l=(0,s.x)([p,"optionalAccess",t=>t.startChild,"call",t=>t(n(this,e,r))]),u=t.call(this,...r)
|
|
81
|
+
return(0,_.J8)(u)?u.then((t=>((0,s.x)([l,"optionalAccess",t=>t.finish,"call",t=>t()]),t))):((0,s.x)([l,"optionalAccess",t=>t.finish,"call",t=>t()]),u)}return l=(0,s.x)([p,"optionalAccess",t=>t.startChild,"call",t=>t(n(this,e,r.slice(0,-1)))]),t.call(this,...r.slice(0,-1),(function(t,e){(0,s.x)([l,"optionalAccess",t=>t.finish,"call",t=>t()]),c(t,e)}))}}))}}_getSpanContextFromOperationArguments(t,e,i){var n={collectionName:t.collectionName,dbName:t.dbName,namespace:t.namespace},a={op:"db",description:e,data:n},s=E[e],r=Array.isArray(this._describeOperations)?this._describeOperations.includes(e):this._describeOperations
|
|
82
82
|
if(!s||!r)return a
|
|
83
|
-
try{if("mapReduce"===e){const[t,e]=
|
|
84
|
-
|
|
83
|
+
try{if("mapReduce"===e){const[t,e]=i
|
|
84
|
+
n[s[0]]="string"==typeof t?t:t.name||"<anonymous>",n[s[1]]="string"==typeof e?e:e.name||"<anonymous>"}else for(let t=0;t<s.length;t++)n[s[t]]=JSON.stringify(i[t])}catch(t){}return a}}S.__initStatic()
|
|
85
85
|
class y{static __initStatic(){this.id="Prisma"}__init(){this.name=y.id}constructor(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}
|
|
86
86
|
var e
|
|
87
|
-
y.prototype.__init.call(this),(e=t.client)&&e.$use?this._client=t.client:("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.kg.warn(`Unsupported Prisma client provided to PrismaIntegration. Provided client: ${JSON.stringify(t.client)}`)}setupOnce(t,e){this._client?this._client.$use(((t,
|
|
87
|
+
y.prototype.__init.call(this),(e=t.client)&&e.$use?this._client=t.client:("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.kg.warn(`Unsupported Prisma client provided to PrismaIntegration. Provided client: ${JSON.stringify(t.client)}`)}setupOnce(t,e){this._client?this._client.$use(((t,i)=>{var n=e().getScope(),a=(0,s.x)([n,"optionalAccess",t=>t.getSpan,"call",t=>t()]),r=t.action,o=t.model,c=(0,s.x)([a,"optionalAccess",t=>t.startChild,"call",t=>t({description:o?`${o} ${r}`:r,op:"db.prisma"})]),d=i(t)
|
|
88
88
|
return(0,_.J8)(d)?d.then((t=>((0,s.x)([c,"optionalAccess",t=>t.finish,"call",t=>t()]),t))):((0,s.x)([c,"optionalAccess",t=>t.finish,"call",t=>t()]),d)})):("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.kg.error("PrismaIntegration is missing a Prisma Client Instance")}}y.__initStatic()
|
|
89
|
-
class R{constructor(){R.prototype.__init.call(this)}static __initStatic(){this.id="GraphQL"}__init(){this.name=R.id}setupOnce(t,e){var
|
|
90
|
-
|
|
89
|
+
class R{constructor(){R.prototype.__init.call(this)}static __initStatic(){this.id="GraphQL"}__init(){this.name=R.id}setupOnce(t,e){var i=(0,m.$y)("graphql/execution/execute.js")
|
|
90
|
+
i?(0,g.hl)(i,"execute",(function(t){return function(){var i=e().getScope(),n=(0,s.x)([i,"optionalAccess",t=>t.getSpan,"call",t=>t()]),a=(0,s.x)([n,"optionalAccess",t=>t.startChild,"call",t=>t({description:"execute",op:"db.graphql"})]);(0,s.x)([i,"optionalAccess",t=>t.setSpan,"call",t=>t(a)])
|
|
91
91
|
for(var r=arguments.length,o=new Array(r),c=0;c<r;c++)o[c]=arguments[c]
|
|
92
92
|
var d=t.call(this,...o)
|
|
93
|
-
return(0,_.J8)(d)?d.then((t=>((0,s.x)([a,"optionalAccess",t=>t.finish,"call",t=>t()]),(0,s.x)([
|
|
94
|
-
class b{constructor(){b.prototype.__init.call(this)}static __initStatic(){this.id="Apollo"}__init(){this.name=b.id}setupOnce(t,e){var
|
|
95
|
-
|
|
96
|
-
return this.config.resolvers=
|
|
93
|
+
return(0,_.J8)(d)?d.then((t=>((0,s.x)([a,"optionalAccess",t=>t.finish,"call",t=>t()]),(0,s.x)([i,"optionalAccess",t=>t.setSpan,"call",t=>t(n)]),t))):((0,s.x)([a,"optionalAccess",t=>t.finish,"call",t=>t()]),(0,s.x)([i,"optionalAccess",t=>t.setSpan,"call",t=>t(n)]),d)}})):r.kg.error("GraphQL Integration was unable to require graphql/execution package.")}}R.__initStatic()
|
|
94
|
+
class b{constructor(){b.prototype.__init.call(this)}static __initStatic(){this.id="Apollo"}__init(){this.name=b.id}setupOnce(t,e){var i=(0,m.$y)("apollo-server-core")
|
|
95
|
+
i?(0,g.hl)(i.ApolloServerBase.prototype,"constructSchema",(function(t){return function(){var i=Array.isArray(this.config.resolvers)?this.config.resolvers:[this.config.resolvers]
|
|
96
|
+
return this.config.resolvers=i.map((t=>(Object.keys(t).forEach((i=>{Object.keys(t[i]).forEach((n=>{"function"==typeof t[i][n]&&function(t,e,i,n){(0,g.hl)(t[e],i,(function(t){return function(){for(var a=n().getScope(),r=(0,s.x)([a,"optionalAccess",t=>t.getSpan,"call",t=>t()]),o=(0,s.x)([r,"optionalAccess",t=>t.startChild,"call",t=>t({description:`${e}.${i}`,op:"db.graphql.apollo"})]),c=arguments.length,d=new Array(c),p=0;p<c;p++)d[p]=arguments[p]
|
|
97
97
|
var l=t.call(this,...d)
|
|
98
|
-
return(0,_.J8)(l)?l.then((t=>((0,s.x)([o,"optionalAccess",t=>t.finish,"call",t=>t()]),t))):((0,s.x)([o,"optionalAccess",t=>t.finish,"call",t=>t()]),l)}}))}(t,n,
|
|
99
|
-
var N=
|
|
100
|
-
return a=>{e.value>=0&&(a||
|
|
101
|
-
var
|
|
102
|
-
return
|
|
103
|
-
addEventListener("visibilitychange",
|
|
98
|
+
return(0,_.J8)(l)?l.then((t=>((0,s.x)([o,"optionalAccess",t=>t.finish,"call",t=>t()]),t))):((0,s.x)([o,"optionalAccess",t=>t.finish,"call",t=>t()]),l)}}))}(t,i,n,e)}))})),t))),t.call(this)}})):r.kg.error("Apollo Integration was unable to require apollo-server-core package.")}}b.__initStatic()
|
|
99
|
+
var N=i(66627),x=i(75492),D=i(22850),B=i(68256),k=i(27448),G=i(48206),U=(0,N.R)(),Y=i(4549),A=i(88468),I=(t,e,i)=>{let n
|
|
100
|
+
return a=>{e.value>=0&&(a||i)&&(e.delta=e.value-(n||0),(e.delta||void 0===n)&&(n=e.value,t(e)))}},O=(t,e)=>({name:t,value:(0,Y.h)(e,(()=>-1)),delta:0,entries:[],id:`v2-${Date.now()}-${Math.floor(8999999999999*Math.random())+1e12}`}),C=(t,e)=>{try{if(PerformanceObserver.supportedEntryTypes.includes(t)){if("first-input"===t&&!("PerformanceEventTiming"in self))return
|
|
101
|
+
var i=new PerformanceObserver((t=>t.getEntries().map(e)))
|
|
102
|
+
return i.observe({type:t,buffered:!0}),i}}catch(t){}},w=(t,e)=>{var i=n=>{"pagehide"!==n.type&&"hidden"!==(0,N.R)().document.visibilityState||(t(n),e&&(removeEventListener("visibilitychange",i,!0),removeEventListener("pagehide",i,!0)))}
|
|
103
|
+
addEventListener("visibilitychange",i,!0),addEventListener("pagehide",i,!0)}
|
|
104
104
|
let $=-1
|
|
105
105
|
var M=()=>($<0&&($="hidden"===(0,N.R)().document.visibilityState?0:1/0,w((t=>{let{timeStamp:e}=t
|
|
106
106
|
$=e}),!0)),{get firstHiddenTime(){return $}}),L={}
|
|
107
|
-
function q(t){return"number"==typeof t&&isFinite(t)}function P(t,e){let{startTimestamp:n
|
|
108
|
-
return
|
|
109
|
-
function F(){return H&&H.addEventListener&&H.performance}let
|
|
110
|
-
function W(){((t,e)=>{var
|
|
111
|
-
let
|
|
107
|
+
function q(t){return"number"==typeof t&&isFinite(t)}function P(t,e){let{startTimestamp:i,...n}=e
|
|
108
|
+
return i&&t.startTimestamp>i&&(t.startTimestamp=i),t.startChild({startTimestamp:i,...n})}var H=(0,N.R)()
|
|
109
|
+
function F(){return H&&H.addEventListener&&H.performance}let z,j,J=0,X={}
|
|
110
|
+
function W(){((t,e)=>{var i=O("CLS",0)
|
|
111
|
+
let n,a=0,s=[]
|
|
112
112
|
var o=t=>{if(t&&!t.hadRecentInput){var e=s[0],r=s[s.length-1]
|
|
113
|
-
a&&0!==s.length&&t.startTime-r.startTime<1e3&&t.startTime-e.startTime<5e3?(a+=t.value,s.push(t)):(a=t.value,s=[t]),a>
|
|
114
|
-
c&&(
|
|
115
|
-
e&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.kg.log("[Measurements] Adding CLS"),
|
|
113
|
+
a&&0!==s.length&&t.startTime-r.startTime<1e3&&t.startTime-e.startTime<5e3?(a+=t.value,s.push(t)):(a=t.value,s=[t]),a>i.value&&(i.value=a,i.entries=s,n&&n())}},c=C("layout-shift",o)
|
|
114
|
+
c&&(n=I((t=>{var e=t.entries.pop()
|
|
115
|
+
e&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.kg.log("[Measurements] Adding CLS"),X.cls={value:t.value,unit:""},j=e)}),i,void 0),w((()=>{c.takeRecords().map(o),n(!0)})))})()}function Z(t){((t,e)=>{var i=M(),n=O("LCP")
|
|
116
116
|
let a
|
|
117
117
|
var s=t=>{var e=t.startTime
|
|
118
|
-
e<
|
|
118
|
+
e<i.firstHiddenTime&&(n.value=e,n.entries.push(t)),a&&a()},o=C("largest-contentful-paint",s)
|
|
119
119
|
if(o){a=I((t=>{var e=t.entries.pop()
|
|
120
|
-
|
|
121
|
-
var c=()=>{L[
|
|
120
|
+
e&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.kg.log("[Measurements] Adding LCP"),X.lcp={value:t.value,unit:"millisecond"},z=e)}),n,e)
|
|
121
|
+
var c=()=>{L[n.id]||(o.takeRecords().map(s),o.disconnect(),L[n.id]=!0,a(!0))};["keydown","click"].forEach((t=>{addEventListener(t,c,{once:!0,capture:!0})})),w(c,!0)}})(0,t)}function Q(){((t,e)=>{var i=M(),n=O("FID")
|
|
122
122
|
let a
|
|
123
|
-
var s=t=>{a&&t.startTime<
|
|
123
|
+
var s=t=>{a&&t.startTime<i.firstHiddenTime&&(n.value=t.processingStart-t.startTime,n.entries.push(t),a(!0))},o=C("first-input",s)
|
|
124
124
|
o&&(a=I((t=>{var e=t.entries.pop()
|
|
125
|
-
if(e){var
|
|
126
|
-
o&&r&&P(t,{op:"browser",description:(0,
|
|
127
|
-
function
|
|
125
|
+
if(e){var i=(0,G.XL)(A.Z1),n=(0,G.XL)(e.startTime);("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.kg.log("[Measurements] Adding FID"),X.fid={value:t.value,unit:"millisecond"},X["mark.fid"]={value:i+n,unit:"second"}}}),n,void 0),w((()=>{o.takeRecords().map(s),o.disconnect()}),!0))})()}function K(t,e,i,n,a,s){var r=s?e[s]:e[`${i}End`],o=e[`${i}Start`]
|
|
126
|
+
o&&r&&P(t,{op:"browser",description:(0,Y.h)(a,(()=>i)),startTimestamp:n+(0,G.XL)(o),endTimestamp:n+(0,G.XL)(r)})}var V=i(98902),tt=i(8142),et={traceFetch:!0,traceXHR:!0,tracingOrigins:["localhost",/^\//]}
|
|
127
|
+
function it(t){const{traceFetch:e,traceXHR:i,tracingOrigins:n,shouldCreateSpanForRequest:a}={...et,...t}
|
|
128
128
|
var s={},r=t=>{if(s[t])return s[t]
|
|
129
|
-
var e=
|
|
129
|
+
var e=n
|
|
130
130
|
return s[t]=e.some((e=>(0,V.zC)(t,e)))&&!(0,V.zC)(t,"sentry_key"),s[t]}
|
|
131
131
|
let o=r
|
|
132
132
|
"function"==typeof a&&(o=t=>r(t)&&a(t))
|
|
133
133
|
var c={}
|
|
134
|
-
e&&(0,tt.o)("fetch",(t=>{!function(t,e,
|
|
135
|
-
if(!
|
|
134
|
+
e&&(0,tt.o)("fetch",(t=>{!function(t,e,i){if((0,G.zu)()&&t.fetchData&&e(t.fetchData.url))if(t.endTimestamp){var n=t.fetchData.__span
|
|
135
|
+
if(!n)return;(s=i[n])&&(t.response?s.setHttpStatus(t.response.status):t.error&&s.setStatus("internal_error"),s.finish(),delete i[n])}else{var a=(0,G.x1)()
|
|
136
136
|
if(a){var s=a.startChild({data:{...t.fetchData,type:"fetch"},description:`${t.fetchData.method} ${t.fetchData.url}`,op:"http.client"})
|
|
137
|
-
t.fetchData.__span=s.spanId,
|
|
137
|
+
t.fetchData.__span=s.spanId,i[s.spanId]=s
|
|
138
138
|
var r=t.args[0]=t.args[0],o=t.args[1]=t.args[1]||{}
|
|
139
|
-
o.headers=function(t,e,n
|
|
140
|
-
if((0,_.V9)(t,Request)&&(a=t.headers),a)if("function"==typeof a.append)a.append("sentry-trace",
|
|
141
|
-
else if(Array.isArray(a)){const[,t]=a.find((t=>{let[e,
|
|
139
|
+
o.headers=function(t,e,i,n){let a=n.headers
|
|
140
|
+
if((0,_.V9)(t,Request)&&(a=t.headers),a)if("function"==typeof a.append)a.append("sentry-trace",i.toTraceparent()),a.append(D.bU,(0,D.J8)(e,a.get(D.bU)))
|
|
141
|
+
else if(Array.isArray(a)){const[,t]=a.find((t=>{let[e,i]=t
|
|
142
142
|
return e===D.bU}))
|
|
143
|
-
a=[...a,["sentry-trace",
|
|
144
|
-
else a={"sentry-trace":
|
|
145
|
-
return a}(r,a.getBaggage(),s,o)}}}(t,o,c)})),
|
|
143
|
+
a=[...a,["sentry-trace",i.toTraceparent()],[D.bU,(0,D.J8)(e,t)]]}else a={...a,"sentry-trace":i.toTraceparent(),baggage:(0,D.J8)(e,a.baggage)}
|
|
144
|
+
else a={"sentry-trace":i.toTraceparent(),baggage:(0,D.J8)(e)}
|
|
145
|
+
return a}(r,a.getBaggage(),s,o)}}}(t,o,c)})),i&&(0,tt.o)("xhr",(t=>{!function(t,e,i){if(!(!(0,G.zu)()||t.xhr&&t.xhr.__sentry_own_request__)&&t.xhr&&t.xhr.__sentry_xhr__&&e(t.xhr.__sentry_xhr__.url)){var n=t.xhr.__sentry_xhr__
|
|
146
146
|
if(t.endTimestamp){var a=t.xhr.__sentry_xhr_span_id__
|
|
147
|
-
if(!a)return;(r=
|
|
148
|
-
if(s){var r=s.startChild({data:{...
|
|
149
|
-
if(t.xhr.__sentry_xhr_span_id__=r.spanId,
|
|
147
|
+
if(!a)return;(r=i[a])&&(r.setHttpStatus(n.status_code),r.finish(),delete i[a])}else{var s=(0,G.x1)()
|
|
148
|
+
if(s){var r=s.startChild({data:{...n.data,type:"xhr",method:n.method,url:n.url},description:`${n.method} ${n.url}`,op:"http.client"})
|
|
149
|
+
if(t.xhr.__sentry_xhr_span_id__=r.spanId,i[t.xhr.__sentry_xhr_span_id__]=r,t.xhr.setRequestHeader)try{t.xhr.setRequestHeader("sentry-trace",r.toTraceparent())
|
|
150
150
|
var o=t.xhr.getRequestHeader&&t.xhr.getRequestHeader(D.bU)
|
|
151
|
-
t.xhr.setRequestHeader(D.bU,(0,D.J8)(s.getBaggage(),o))}catch(t){}}}}}(t,o,c)}))}var
|
|
152
|
-
if(!
|
|
153
|
-
let
|
|
154
|
-
e&&(
|
|
155
|
-
void 0===s&&a&&-1!==a.indexOf(
|
|
151
|
+
t.xhr.setRequestHeader(D.bU,(0,D.J8)(s.getBaggage(),o))}catch(t){}}}}}(t,o,c)}))}var nt=(0,N.R)(),at="BrowserTracing",st={idleTimeout:k.nT,finalTimeout:k.mg,markBackgroundTransactions:!0,routingInstrumentation:function(t){let e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2]
|
|
152
|
+
if(!nt||!nt.location)return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.kg.warn("Could not initialize routing instrumentation due to invalid location"))
|
|
153
|
+
let n,a=nt.location.href
|
|
154
|
+
e&&(n=t({name:nt.location.pathname,op:"pageload",metadata:{source:"url"}})),i&&(0,tt.o)("history",(e=>{let{to:i,from:s}=e
|
|
155
|
+
void 0===s&&a&&-1!==a.indexOf(i)?a=void 0:s!==i&&(a=void 0,n&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.kg.log(`[Tracing] Finishing current transaction with op: ${n.op}`),n.finish()),n=t({name:nt.location.pathname,op:"navigation",metadata:{source:"url"}}))}))},startTransactionOnLocationChange:!0,startTransactionOnPageLoad:!0,_experiments:{enableLongTask:!0},...et}
|
|
156
156
|
class rt{__init(){this.name=at}constructor(t){rt.prototype.__init.call(this)
|
|
157
157
|
let e=et.tracingOrigins
|
|
158
158
|
t&&(t.tracingOrigins&&Array.isArray(t.tracingOrigins)?e=t.tracingOrigins:("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&(this._emitOptionsWarning=!0)),this.options={...st,...t,tracingOrigins:e}
|
|
159
|
-
const{_metricOptions:
|
|
159
|
+
const{_metricOptions:i}=this.options
|
|
160
160
|
!function(){let t=arguments.length>0&&void 0!==arguments[0]&&arguments[0]
|
|
161
161
|
var e=F()
|
|
162
|
-
e&&
|
|
163
|
-
if(e){var
|
|
164
|
-
e.startChild({description:"
|
|
165
|
-
const{routingInstrumentation:
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
const{beforeNavigate:e,idleTimeout:
|
|
169
|
-
var s="pageload"===t.op?function(){var t=ot("sentry-trace"),e=ot("baggage"),
|
|
170
|
-
if(n
|
|
162
|
+
e&&A.Z1&&(e.mark&&H.performance.mark("sentry-tracing-init"),W(),Z(t),Q())}(i&&i._reportAllChanges),(0,s.x)([this,"access",t=>t.options,"access",t=>t._experiments,"optionalAccess",t=>t.enableLongTask])&&C("longtask",(t=>{var e=(0,G.x1)()
|
|
163
|
+
if(e){var i=(0,G.XL)(A.Z1+t.startTime),n=(0,G.XL)(t.duration)
|
|
164
|
+
e.startChild({description:"Main UI thread blocked",op:"ui.long-task",startTimestamp:i,endTimestamp:i+n})}}))}setupOnce(t,e){this._getCurrentHub=e,this._emitOptionsWarning&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.kg.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__)&&r.kg.warn(`[Tracing] We added a reasonable default for you: ${et.tracingOrigins}`))
|
|
165
|
+
const{routingInstrumentation:i,startTransactionOnLocationChange:n,startTransactionOnPageLoad:a,markBackgroundTransactions:s,traceFetch:o,traceXHR:c,tracingOrigins:_,shouldCreateSpanForRequest:d}=this.options
|
|
166
|
+
i((t=>this._createRouteTransaction(t)),a,n),s&&(U&&U.document?U.document.addEventListener("visibilitychange",(()=>{var t=(0,G.x1)()
|
|
167
|
+
U.document.hidden&&t&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.kg.log(`[Tracing] Transaction: cancelled -> since tab moved to the background, op: ${t.op}`),t.status||t.setStatus("cancelled"),t.setTag("visibilitychange","document.hidden"),t.finish())})):("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.kg.warn("[Tracing] Could not set up background tab detection due to lack of global document")),it({traceFetch:o,traceXHR:c,tracingOrigins:_,shouldCreateSpanForRequest:d})}_createRouteTransaction(t){if(!this._getCurrentHub)return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.kg.warn(`[Tracing] Did not create ${t.op} transaction because _getCurrentHub is invalid.`))
|
|
168
|
+
const{beforeNavigate:e,idleTimeout:i,finalTimeout:n}=this.options
|
|
169
|
+
var s="pageload"===t.op?function(){var t=ot("sentry-trace"),e=ot("baggage"),i=t?(0,x.q)(t):void 0,n=(0,D.rg)(e,t)
|
|
170
|
+
if(i||n)return{...i&&i,...n&&{metadata:{baggage:n}}}}():void 0,o={...t,...s,...s&&{metadata:{...t.metadata,...s.metadata}},trimEnd:!0},c="function"==typeof e?e(o):o,_=void 0===c?{...o,sampled:!1}:c
|
|
171
171
|
_.metadata=_.name!==o.name?{..._.metadata,source:"custom"}:_.metadata,!1===_.sampled&&("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.kg.log(`[Tracing] Will not send ${_.op} transaction because of beforeNavigate.`),("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.kg.log(`[Tracing] Starting ${_.op} transaction on scope`)
|
|
172
172
|
var d=this._getCurrentHub()
|
|
173
173
|
const{location:p}=(0,N.R)()
|
|
174
|
-
var l=(0,a.lb)(d,_,n
|
|
174
|
+
var l=(0,a.lb)(d,_,i,n,!0,{location:p})
|
|
175
175
|
return l.registerBeforeFinishCallback((t=>{(function(t){var e=F()
|
|
176
|
-
if(!e||!H.performance.getEntries||!
|
|
177
|
-
var
|
|
176
|
+
if(!e||!H.performance.getEntries||!A.Z1)return;("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.kg.log("[Tracing] Adding & adjusting spans using Performance API")
|
|
177
|
+
var i=(0,G.XL)(A.Z1),n=e.getEntries()
|
|
178
178
|
let a,s
|
|
179
|
-
|
|
180
|
-
if(!("navigation"===t.op&&n
|
|
179
|
+
if(n.slice(J).forEach((e=>{var n=(0,G.XL)(e.startTime),o=(0,G.XL)(e.duration)
|
|
180
|
+
if(!("navigation"===t.op&&i+n<t.startTimestamp))switch(e.entryType){case"navigation":!function(t,e,i){["unloadEvent","redirect","domContentLoadedEvent","loadEvent","connect"].forEach((n=>{K(t,e,n,i)})),K(t,e,"secureConnection",i,"TLS/SSL","connectEnd"),K(t,e,"fetch",i,"cache","domainLookupStart"),K(t,e,"domainLookup",i,"DNS"),function(t,e,i){P(t,{op:"browser",description:"request",startTimestamp:i+(0,G.XL)(e.requestStart),endTimestamp:i+(0,G.XL)(e.responseEnd)}),P(t,{op:"browser",description:"response",startTimestamp:i+(0,G.XL)(e.responseStart),endTimestamp:i+(0,G.XL)(e.responseEnd)})}(t,e,i)}(t,e,i),a=i+(0,G.XL)(e.responseStart),s=i+(0,G.XL)(e.requestStart)
|
|
181
181
|
break
|
|
182
|
-
case"mark":case"paint":case"measure"
|
|
183
|
-
|
|
184
|
-
|
|
182
|
+
case"mark":case"paint":case"measure":!function(t,e,i,n,a){var s=a+i,r=s+n
|
|
183
|
+
P(t,{description:e.name,endTimestamp:r,op:e.entryType,startTimestamp:s})}(t,e,n,o,i)
|
|
184
|
+
var c=M(),_=e.startTime<c.firstHiddenTime
|
|
185
|
+
"first-paint"===e.name&&_&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.kg.log("[Measurements] Adding FP"),X.fp={value:e.startTime,unit:"millisecond"}),"first-contentful-paint"===e.name&&_&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.kg.log("[Measurements] Adding FCP"),X.fcp={value:e.startTime,unit:"millisecond"})
|
|
185
186
|
break
|
|
186
|
-
case"resource":var
|
|
187
|
-
!function(t,e,n,
|
|
187
|
+
case"resource":var d=e.name.replace(H.location.origin,"")
|
|
188
|
+
!function(t,e,i,n,a,s){if("xmlhttprequest"!==e.initiatorType&&"fetch"!==e.initiatorType){var r={}
|
|
188
189
|
"transferSize"in e&&(r["Transfer Size"]=e.transferSize),"encodedBodySize"in e&&(r["Encoded Body Size"]=e.encodedBodySize),"decodedBodySize"in e&&(r["Decoded Body Size"]=e.decodedBodySize)
|
|
189
|
-
var o=s+
|
|
190
|
-
P(t,{description:
|
|
191
|
-
if(e){var
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
190
|
+
var o=s+n
|
|
191
|
+
P(t,{description:i,endTimestamp:o+a,op:e.initiatorType?`resource.${e.initiatorType}`:"resource",startTimestamp:o,data:r})}}(t,e,d,n,o,i)}})),J=Math.max(n.length-1,0),function(t){var e=H.navigator
|
|
192
|
+
if(e){var i=e.connection
|
|
193
|
+
i&&(i.effectiveType&&t.setTag("effectiveConnectionType",i.effectiveType),i.type&&t.setTag("connectionType",i.type),q(i.rtt)&&(X["connection.rtt"]={value:i.rtt,unit:"millisecond"}),q(i.downlink)&&(X["connection.downlink"]={value:i.downlink,unit:""})),q(e.deviceMemory)&&t.setTag("deviceMemory",`${e.deviceMemory} GB`),q(e.hardwareConcurrency)&&t.setTag("hardwareConcurrency",String(e.hardwareConcurrency))}}(t),"pageload"===t.op){"number"==typeof a&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.kg.log("[Measurements] Adding TTFB"),X.ttfb={value:1e3*(a-t.startTimestamp),unit:"millisecond"},"number"==typeof s&&s<=a&&(X["ttfb.requestTime"]={value:1e3*(a-s),unit:"millisecond"})),["fcp","fp","lcp"].forEach((e=>{if(X[e]&&!(i>=t.startTimestamp)){var n=X[e].value,a=i+(0,G.XL)(n),s=Math.abs(1e3*(a-t.startTimestamp)),o=s-n;("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.kg.log(`[Measurements] Normalized ${e} from ${n} to ${s} (${o})`),X[e].value=s}}))
|
|
194
|
+
var o=X["mark.fid"]
|
|
195
|
+
o&&X.fid&&(P(t,{description:"first input delay",endTimestamp:o.value+(0,G.XL)(X.fid.value),op:"web.vitals",startTimestamp:o.value}),delete X["mark.fid"]),"fcp"in X||delete X.cls,Object.keys(X).forEach((e=>{t.setMeasurement(e,X[e].value,X[e].unit)})),function(t){z&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.kg.log("[Measurements] Adding LCP Data"),z.element&&t.setTag("lcp.element",(0,B.Rt)(z.element)),z.id&&t.setTag("lcp.id",z.id),z.url&&t.setTag("lcp.url",z.url.trim().slice(0,200)),t.setTag("lcp.size",z.size)),j&&j.sources&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.kg.log("[Measurements] Adding CLS Data"),j.sources.forEach(((e,i)=>t.setTag(`cls.source.${i+1}`,(0,B.Rt)(e.node)))))}(t)}z=void 0,j=void 0,X={}})(t),t.setTag("sentry_reportAllChanges",Boolean(this.options._metricOptions&&this.options._metricOptions._reportAllChanges))})),l}}function ot(t){var e=(0,B.qT)(`meta[name=${t}]`)
|
|
196
|
+
return e?e.getAttribute("content"):null}var ct,_t=i(20484)
|
|
195
197
|
!function(t){t.Ok="ok",t.DeadlineExceeded="deadline_exceeded",t.Unauthenticated="unauthenticated",t.PermissionDenied="permission_denied",t.NotFound="not_found",t.ResourceExhausted="resource_exhausted",t.InvalidArgument="invalid_argument",t.Unimplemented="unimplemented",t.Unavailable="unavailable",t.InternalError="internal_error",t.UnknownError="unknown_error",t.Cancelled="cancelled",t.AlreadyExists="already_exists",t.FailedPrecondition="failed_precondition",t.Aborted="aborted",t.OutOfRange="out_of_range",t.DataLoss="data_loss"}(ct||(ct={}))
|
|
196
|
-
var dt=
|
|
197
|
-
var i
|
|
198
|
+
var dt=i(21535);("undefined"==typeof __SENTRY_TRACING__||__SENTRY_TRACING__)&&(0,a.ro)()},20484:(t,e,i)=>{i.d(e,{Dr:()=>_,Zd:()=>d,gB:()=>c})
|
|
199
|
+
var n=i(4549),a=i(7209),s=i(88468),r=i(88521),o=i(15834)
|
|
198
200
|
class c{__init(){this.spans=[]}constructor(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1e3
|
|
199
201
|
c.prototype.__init.call(this),this._maxlen=t}add(t){this.spans.length>this._maxlen?t.spanRecorder=void 0:this.spans.push(t)}}class _{__init2(){this.traceId=(0,a.DM)()}__init3(){this.spanId=(0,a.DM)().substring(16)}__init4(){this.startTimestamp=(0,s._I)()}__init5(){this.tags={}}__init6(){this.data={}}constructor(t){if(_.prototype.__init2.call(this),_.prototype.__init3.call(this),_.prototype.__init4.call(this),_.prototype.__init5.call(this),_.prototype.__init6.call(this),!t)return this
|
|
200
202
|
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 _({...t,parentSpanId:this.spanId,sampled:this.sampled,traceId:this.traceId})
|
|
201
|
-
if(e.spanRecorder=this.spanRecorder,e.spanRecorder&&e.spanRecorder.add(e),e.transaction=this.transaction,("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&e.transaction){var
|
|
202
|
-
e.transaction.metadata.spanMetadata[e.spanId]={logMessage:
|
|
203
|
+
if(e.spanRecorder=this.spanRecorder,e.spanRecorder&&e.spanRecorder.add(e),e.transaction=this.transaction,("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&e.transaction){var i=`[Tracing] Starting '${t&&t.op||"< unknown op >"}' span on transaction '${e.transaction.name||"< unknown name >"}' (${e.transaction.spanId}).`
|
|
204
|
+
e.transaction.metadata.spanMetadata[e.spanId]={logMessage:i},r.kg.log(i)}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))
|
|
203
205
|
var e=d(t)
|
|
204
206
|
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]
|
|
205
207
|
t&&r.kg.log(t.replace("Starting","Finishing"))}this.endTimestamp="number"==typeof t?t:(0,s._I)()}toTraceparent(){let t=""
|
|
206
|
-
return void 0!==this.sampled&&(t=this.sampled?"-1":"-0"),`${this.traceId}-${this.spanId}${t}`}toContext(){return(0,o.Jr)({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,
|
|
208
|
+
return void 0!==this.sampled&&(t=this.sampled?"-1":"-0"),`${this.traceId}-${this.spanId}${t}`}toContext(){return(0,o.Jr)({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,n.h)(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,n.h)(t.spanId,(()=>this.spanId)),this.startTimestamp=(0,n.h)(t.startTimestamp,(()=>this.startTimestamp)),this.status=t.status,this.tags=(0,n.h)(t.tags,(()=>({}))),this.traceId=(0,n.h)(t.traceId,(()=>this.traceId)),this}getTraceContext(){return(0,o.Jr)({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.Jr)({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})}}function d(t){if(t<400&&t>=100)return"ok"
|
|
207
209
|
if(t>=400&&t<500)switch(t){case 401:return"unauthenticated"
|
|
208
210
|
case 403:return"permission_denied"
|
|
209
211
|
case 404:return"not_found"
|
|
@@ -213,29 +215,29 @@ case 429:return"resource_exhausted"
|
|
|
213
215
|
default:return"invalid_argument"}if(t>=500&&t<600)switch(t){case 501:return"unimplemented"
|
|
214
216
|
case 503:return"unavailable"
|
|
215
217
|
case 504:return"deadline_exceeded"
|
|
216
|
-
default:return"internal_error"}return"unknown_error"}},21535:(t,e,
|
|
217
|
-
var i
|
|
218
|
+
default:return"internal_error"}return"unknown_error"}},21535:(t,e,i)=>{i.d(e,{Y:()=>_})
|
|
219
|
+
var n=i(4549),a=i(33867),s=i(88521),r=i(15834),o=i(22850),c=i(20484)
|
|
218
220
|
class _ extends c.Dr{__init(){this._measurements={}}constructor(t,e){super(t),_.prototype.__init.call(this),this._hub=e||(0,a.Gd)(),this._name=t.name||"",this.metadata={...t.metadata,spanMetadata:{}},this._trimEnd=t.trimEnd,this.transaction=this}get name(){return this._name}set name(t){this._name=t,this.metadata.source="custom"}setName(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"custom"
|
|
219
221
|
this.name=t,this.metadata.source=e}initSpanRecorder(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1e3
|
|
220
|
-
this.spanRecorder||(this.spanRecorder=new c.gB(t)),this.spanRecorder.add(this)}setMeasurement(t,e){let
|
|
221
|
-
this._measurements[t]={value:e,unit:
|
|
222
|
+
this.spanRecorder||(this.spanRecorder=new c.gB(t)),this.spanRecorder.add(this)}setMeasurement(t,e){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:""
|
|
223
|
+
this._measurements[t]={value:e,unit:i}}setMetadata(t){this.metadata={...this.metadata,...t}}finish(t){if(void 0===this.endTimestamp){if(this.name||(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&s.kg.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)):[]
|
|
222
224
|
this._trimEnd&&e.length>0&&(this.endTimestamp=e.reduce(((t,e)=>t.endTimestamp&&e.endTimestamp?t.endTimestamp>e.endTimestamp?t:e:t)).endTimestamp)
|
|
223
|
-
var
|
|
224
|
-
return Object.keys(this._measurements).length>0&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&s.kg.log("[Measurements] Adding measurements to transaction",JSON.stringify(this._measurements,void 0,2)),
|
|
225
|
+
var i=this.metadata,n={contexts:{trace:this.getTraceContext()},spans:e,start_timestamp:this.startTimestamp,tags:this.tags,timestamp:this.endTimestamp,transaction:this.name,type:"transaction",sdkProcessingMetadata:{...i,baggage:this.getBaggage()},...i.source&&{transaction_info:{source:i.source}}}
|
|
226
|
+
return Object.keys(this._measurements).length>0&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&s.kg.log("[Measurements] Adding measurements to transaction",JSON.stringify(this._measurements,void 0,2)),n.measurements=this._measurements),("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&s.kg.log(`[Tracing] Finishing ${this.op} transaction: ${this.name}.`),this._hub.captureEvent(n)}("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&s.kg.log("[Tracing] Discarding transaction because its trace was not chosen to be sampled.")
|
|
225
227
|
var a=this._hub.getClient()
|
|
226
228
|
a&&a.recordDroppedEvent("sample_rate","transaction")}}toContext(){var t=super.toContext()
|
|
227
|
-
return(0,r.Jr)({...t,name:this.name,trimEnd:this._trimEnd})}updateWithContext(t){return super.updateWithContext(t),this.name=(0,
|
|
229
|
+
return(0,r.Jr)({...t,name:this.name,trimEnd:this._trimEnd})}updateWithContext(t){return super.updateWithContext(t),this.name=(0,n.h)(t.name,(()=>"")),this._trimEnd=t.trimEnd,this}getBaggage(){var t=this.metadata.baggage,e=!t||(0,o.Gp)(t)?this._populateBaggageWithSentryValues(t):t
|
|
228
230
|
return this.metadata.baggage=e,e}_populateBaggageWithSentryValues(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:(0,o.Hn)({})
|
|
229
|
-
var e=this._hub||(0,a.Gd)(),
|
|
230
|
-
if(!
|
|
231
|
-
const{environment:
|
|
231
|
+
var e=this._hub||(0,a.Gd)(),i=e&&e.getClient()
|
|
232
|
+
if(!i)return t
|
|
233
|
+
const{environment:n,release:s}=i.getOptions()||{},{publicKey:c}=i.getDsn()||{}
|
|
232
234
|
var _=this.metadata&&this.metadata.transactionSampling&&this.metadata.transactionSampling.rate&&this.metadata.transactionSampling.rate.toString(),d=e.getScope()
|
|
233
235
|
const{segment:p}=d&&d.getUser()||{}
|
|
234
236
|
var l=this.metadata.source,u=l&&"url"!==l?this.name:void 0
|
|
235
|
-
return(0,o.Hn)((0,r.Jr)({environment:
|
|
236
|
-
var i
|
|
237
|
-
function a(t){var e=(0,
|
|
238
|
-
return!!
|
|
239
|
-
return e&&e.getTransaction()}function r(t){return t/1e3}},4549:(t,e,
|
|
237
|
+
return(0,o.Hn)((0,r.Jr)({environment:n,release:s,transaction:u,user_segment:p,public_key:c,trace_id:this.traceId,sample_rate:_,...(0,o.Hk)(t)}),"",!1)}}},48206:(t,e,i)=>{i.d(e,{XL:()=>r,x1:()=>s,zu:()=>a})
|
|
238
|
+
var n=i(33867)
|
|
239
|
+
function a(t){var e=(0,n.Gd)().getClient(),i=t||e&&e.getOptions()
|
|
240
|
+
return!!i&&("tracesSampleRate"in i||"tracesSampler"in i)}function s(t){var e=(t||(0,n.Gd)()).getScope()
|
|
241
|
+
return e&&e.getTransaction()}function r(t){return t/1e3}},4549:(t,e,i)=>{function n(t,e){return null!=t?t:e()}i.d(e,{h:()=>n})}}])
|
|
240
242
|
|
|
241
|
-
//# sourceMappingURL=chunk.174.
|
|
243
|
+
//# sourceMappingURL=chunk.174.8b8a64726921ecfda41b.map
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
var __ember_auto_import__;(()=>{var r={
|
|
1
|
+
var __ember_auto_import__;(()=>{var r={93123:function(r,e){window._eai_r=require,window._eai_d=define},57740:r=>{r.exports=function(){_eai_d
|
|
2
2
|
var r=_eai_r
|
|
3
3
|
window.emberAutoImportDynamic=function(e){return 1===arguments.length?r("_eai_dyn_"+e):r("_eai_dynt_"+e)(Array.prototype.slice.call(arguments,1))},window.emberAutoImportSync=function(e){return r("_eai_sync_"+e)(Array.prototype.slice.call(arguments,1))}}()}},e={}
|
|
4
4
|
function t(_){var o=e[_]
|
|
5
5
|
if(void 0!==o)return o.exports
|
|
6
6
|
var i=e[_]={exports:{}}
|
|
7
|
-
return r[_].call(i.exports,i,i.exports,t),i.exports}t(
|
|
8
|
-
var _=t(
|
|
7
|
+
return r[_].call(i.exports,i,i.exports,t),i.exports}t(93123)
|
|
8
|
+
var _=t(57740)
|
|
9
9
|
__ember_auto_import__=_})()
|
|
10
10
|
|
|
11
|
-
//# sourceMappingURL=chunk.178.
|
|
11
|
+
//# sourceMappingURL=chunk.178.1188f8d61af173f8c246.map
|