pi-webapp 0.1.56-alpha.2 → 0.1.56-alpha.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/extension.js +53 -53
- package/dist/hosted-recovery.js +2 -2
- package/dist/hosted-worker.js +2 -2
- package/package.json +11 -11
- package/web/dist/.vite/manifest.json +34 -34
- package/web/dist/assets/{MarkdownText-paPGy70d.js → MarkdownText-ByWGXKyu.js} +47 -47
- package/web/dist/assets/{app-DJSrK_Zp.js → app-VS_Rt2sQ.js} +5 -5
- package/web/dist/assets/app.js +4 -4
- package/web/dist/assets/{code-editor-B8TlHSZ2.js → code-editor-B2hrjg2H.js} +4 -4
- package/web/dist/assets/{dist-CbdvIpQm.js → dist-A02aWfvk.js} +2 -2
- package/web/dist/assets/{dist-Vw-Le9ug.js → dist-B9NgLDla.js} +2 -2
- package/web/dist/assets/{dist-CKAzjWVl.js → dist-BIvz7ID-.js} +2 -2
- package/web/dist/assets/{dist-ChpeI5sm.js → dist-BgwRbDVr.js} +2 -2
- package/web/dist/assets/{dist-BaIxDEhr.js → dist-BiKIKxkL.js} +2 -2
- package/web/dist/assets/{dist-C9IQx5Hu.js → dist-C1CWc7Pw.js} +2 -2
- package/web/dist/assets/{dist-DtXr2huq.js → dist-CIk6YveJ.js} +2 -2
- package/web/dist/assets/{dist-rBe9wuZZ.js → dist-CNc7dHyf.js} +2 -2
- package/web/dist/assets/{dist-DAt6qRRZ.js → dist-Dbs2J8Xz.js} +2 -2
- package/web/dist/assets/{dist-COZ-qI6c.js → dist-DhVRuU47.js} +2 -2
- package/web/dist/assets/{dist-DSjz0NBU.js → dist-_s5Upw74.js} +2 -2
- package/web/dist/assets/{graphql-BnPNCaAx.js → graphql-Do4-d0z4.js} +2 -2
- package/web/dist/assets/{http-BHenJU6v.js → http-D5hXrh1A.js} +2 -2
- package/web/dist/assets/{php-CSISLp2r.js → php-BPRnaCsX.js} +2 -2
- package/web/dist/assets/{plugin-Cf84Pl1e.js → plugin-BJqy-b2F.js} +2 -2
- package/web/dist/assets/{plugin-CbtUZ7SO.js → plugin-D5rVhMH6.js} +2 -2
- package/web/dist/assets/{plugin-BKKu8P5i.js → plugin-Dt0PX9ns.js} +3 -3
- package/web/dist/assets/{rst-DJndqjRb.js → rst-LEoyVqyH.js} +2 -2
- package/web/dist/assets/{ruby-CLM38Wvm.js → ruby-BSigC6ZK.js} +2 -2
- package/web/dist/assets/{svelte-B7f1JlvH.js → svelte-Co23wPjP.js} +2 -2
- package/web/dist/assets/{telemetry-client-BBuLBxwh.js → telemetry-client-xIu6sXGx.js} +4 -4
- package/web/dist/assets/{vue-Cv4DFyTm.js → vue-DkKg5bcv.js} +2 -2
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
(function(){try{var e=typeof globalThis<`u`?globalThis:typeof window<`u`?window:typeof global<`u`?global:typeof self<`u`?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]=`fade7a97-1eca-46a2-a08e-841b5df9e5c2`,e._sentryDebugIdIdentifier=`sentry-dbid-fade7a97-1eca-46a2-a08e-841b5df9e5c2`)}catch{}})();import{t as e}from"./javascript-qRALF4mN.js";import{i as t}from"./MarkdownText-paPGy70d.js";import{t as n}from"./css-TMM_5IvK.js";var r=[Object.freeze(JSON.parse(`{"displayName":"PostCSS","fileTypes":["pcss","postcss"],"foldingStartMarker":"/\\\\*|^#|^\\\\*|^\\\\b|^\\\\.","foldingStopMarker":"\\\\*/|^\\\\s*$","name":"postcss","patterns":[{"begin":"/\\\\*","end":"\\\\*/","name":"comment.block.postcss","patterns":[{"include":"#comment-tag"}]},{"include":"#double-slash"},{"include":"#double-quoted"},{"include":"#single-quoted"},{"include":"#interpolation"},{"include":"#placeholder-selector"},{"include":"#variable"},{"include":"#variable-root-css"},{"include":"#numeric"},{"include":"#unit"},{"include":"#flag"},{"include":"#dotdotdot"},{"begin":"@include","captures":{"0":{"name":"keyword.control.at-rule.css.postcss"}},"end":"(?=[\\\\n(;{])","name":"support.function.name.postcss.library"},{"begin":"@(?:mixin|function)","captures":{"0":{"name":"keyword.control.at-rule.css.postcss"}},"end":"$\\\\n?|(?=[({])","name":"support.function.name.postcss.no-completions","patterns":[{"match":"[-\\\\w]+","name":"entity.name.function"}]},{"match":"(?<=@import)\\\\s[-*./\\\\w]+","name":"string.quoted.double.css.postcss"},{"begin":"@","end":"$\\\\n?|\\\\s(?!(all|braille|embossed|handheld|print|projection|screen|speech|tty|tv|if|only|not)([,\\\\s]))|(?=;)","name":"keyword.control.at-rule.css.postcss"},{"begin":"#","end":"$\\\\n?|(?=[(),.;>\\\\[{\\\\s])","name":"entity.other.attribute-name.id.css.postcss","patterns":[{"include":"#interpolation"},{"include":"#pseudo-class"}]},{"begin":"\\\\.|(?<=&)([-_])","end":"$\\\\n?|(?=[(),;>\\\\[{\\\\s])","name":"entity.other.attribute-name.class.css.postcss","patterns":[{"include":"#interpolation"},{"include":"#pseudo-class"}]},{"begin":"\\\\[","end":"]","name":"entity.other.attribute-selector.postcss","patterns":[{"include":"#double-quoted"},{"include":"#single-quoted"},{"match":"[$*^~]","name":"keyword.other.regex.postcss"}]},{"match":"(?<=[])]|not\\\\(|[*>]|>\\\\s):[-:a-z]+|(:[-:])[-:a-z]+","name":"entity.other.attribute-name.pseudo-class.css.postcss"},{"begin":":","end":"$\\\\n?|(?=;|\\\\s\\\\(|and\\\\(|[{}]|\\\\),)","name":"meta.property-list.css.postcss","patterns":[{"include":"#double-slash"},{"include":"#double-quoted"},{"include":"#single-quoted"},{"include":"#interpolation"},{"include":"#variable"},{"include":"#rgb-value"},{"include":"#numeric"},{"include":"#unit"},{"include":"#flag"},{"include":"#function"},{"include":"#function-content"},{"include":"#function-content-var"},{"include":"#operator"},{"include":"#parent-selector"},{"include":"#property-value"}]},{"include":"#rgb-value"},{"include":"#function"},{"include":"#function-content"},{"begin":"(?<![-(])\\\\b(a|abbr|acronym|address|applet|area|article|aside|audio|b|base|big|blockquote|body|br|button|canvas|caption|cite|code|col|colgroup|datalist|dd|del|details|dfn|dialog|div|dl|dt|em|embed|eventsource|fieldset|figure|figcaption|footer|form|frame|frameset|(h[1-6])|head|header|hgroup|hr|html|i|iframe|img|input|ins|kbd|label|legend|li|link|map|mark|menu|meta|meter|nav|noframes|noscript|object|ol|optgroup|option|output|p|param|picture|pre|progress|q|samp|script|section|select|small|source|span|strike|strong|style|sub|summary|sup|table|tbody|td|textarea|tfoot|th|thead|time|title|tr|tt|ul|var|video|main|svg|rect|ruby|center|circle|ellipse|line|polyline|polygon|path|text|[ux])\\\\b(?![-)]|:\\\\s)|&","end":"(?=[-(),.;>\\\\[_{\\\\s])","name":"entity.name.tag.css.postcss.symbol","patterns":[{"include":"#interpolation"},{"include":"#pseudo-class"}]},{"include":"#operator"},{"match":"[-a-z]+((?=:|#\\\\{))","name":"support.type.property-name.css.postcss"},{"include":"#reserved-words"},{"include":"#property-value"}],"repository":{"comment-tag":{"begin":"\\\\{\\\\{","end":"}}","name":"comment.tags.postcss","patterns":[{"match":"[-\\\\w]+","name":"comment.tag.postcss"}]},"dotdotdot":{"match":"\\\\.{3}","name":"variable.other"},"double-quoted":{"begin":"\\"","end":"\\"","name":"string.quoted.double.css.postcss","patterns":[{"include":"#quoted-interpolation"}]},"double-slash":{"begin":"//","end":"$","name":"comment.line.postcss","patterns":[{"include":"#comment-tag"}]},"flag":{"match":"!(important|default|optional|global)","name":"keyword.other.important.css.postcss"},"function":{"match":"(?<=[(,:|\\\\s])(?!url|format|attr)[-\\\\w][-\\\\w]*(?=\\\\()","name":"support.function.name.postcss"},"function-content":{"match":"(?<=url\\\\(|format\\\\(|attr\\\\().+?(?=\\\\))","name":"string.quoted.double.css.postcss"},"function-content-var":{"match":"(?<=var\\\\()[-\\\\w]+(?=\\\\))","name":"variable.parameter.postcss"},"interpolation":{"begin":"#\\\\{","end":"}","name":"support.function.interpolation.postcss","patterns":[{"include":"#variable"},{"include":"#numeric"},{"include":"#operator"},{"include":"#unit"},{"include":"#double-quoted"},{"include":"#single-quoted"}]},"numeric":{"match":"([-.])?[0-9]+(\\\\.[0-9]+)?","name":"constant.numeric.css.postcss"},"operator":{"match":"\\\\+|\\\\s-\\\\s|\\\\s-(?=\\\\$)|(?<=\\\\()-(?=\\\\$)|\\\\s-(?=\\\\()|[!%*/<=>~]","name":"keyword.operator.postcss"},"parent-selector":{"match":"&","name":"entity.name.tag.css.postcss"},"placeholder-selector":{"begin":"(?<!\\\\d)%(?!\\\\d)","end":"$\\\\n?|\\\\s|(?=[;{])","name":"entity.other.attribute-name.placeholder-selector.postcss"},"property-value":{"match":"[-\\\\w]+","name":"meta.property-value.css.postcss, support.constant.property-value.css.postcss"},"pseudo-class":{"match":":[-:a-z]+","name":"entity.other.attribute-name.pseudo-class.css.postcss"},"quoted-interpolation":{"begin":"#\\\\{","end":"}","name":"support.function.interpolation.postcss","patterns":[{"include":"#variable"},{"include":"#numeric"},{"include":"#operator"},{"include":"#unit"}]},"reserved-words":{"match":"\\\\b(false|from|in|not|null|through|to|true)\\\\b","name":"support.type.property-name.css.postcss"},"rgb-value":{"match":"(#)(\\\\h{3}|\\\\h{6})\\\\b","name":"constant.other.color.rgb-value.css.postcss"},"single-quoted":{"begin":"'","end":"'","name":"string.quoted.single.css.postcss","patterns":[{"include":"#quoted-interpolation"}]},"unit":{"match":"(?<=[}\\\\d])(ch|cm|deg|dpcm|dpi|dppx|em|ex|grad|Hz|in|kHz|mm|ms|pc|pt|px|rad|rem|s|turn|vh|vmax|vmin|vw|%)","name":"keyword.other.unit.css.postcss"},"variable":{"match":"\\\\$[-\\\\w]+","name":"variable.parameter.postcss"},"variable-root-css":{"match":"(?<!&)--[-\\\\w]+","name":"variable.parameter.postcss"}},"scopeName":"source.css.postcss"}`))],i=Object.freeze(JSON.parse(`{"displayName":"Svelte","fileTypes":["svelte"],"injections":{"L:(meta.script.svelte | meta.style.svelte) (meta.lang.js | meta.lang.javascript) - (meta source)":{"patterns":[{"begin":"(?<=>)(?!</)","contentName":"source.js","end":"(?=</)","name":"meta.embedded.block.svelte","patterns":[{"include":"source.js"}]}]},"L:(meta.script.svelte | meta.style.svelte) (meta.lang.ts | meta.lang.typescript) - (meta source)":{"patterns":[{"begin":"(?<=>)(?=[^\\\\n]+</(s(?:cript|tyle))[>\\\\s])","contentName":"source.ts","end":"(?=</(s(?:cript|tyle))[>\\\\s])","name":"meta.embedded.block.svelte","patterns":[{"include":"source.ts"}]},{"begin":"(?<=>)(?!</)","contentName":"source.ts","name":"meta.embedded.block.svelte","patterns":[{"include":"source.ts"}],"while":"^(?!\\\\s*</(s(?:cript|tyle))[>\\\\s])"}]},"L:(meta.script.svelte | meta.style.svelte) meta.lang.coffee - (meta source)":{"patterns":[{"begin":"(?<=>)(?!</)","contentName":"source.coffee","end":"(?=</)","name":"meta.embedded.block.svelte","patterns":[{"include":"source.coffee"}]}]},"L:(source.ts, source.js, source.coffee)":{"patterns":[{"match":"(?<![\\"$'./_[:alnum:]])\\\\$(?=[_[:alpha:]][$_[:alnum:]]*)","name":"punctuation.definition.variable.svelte"},{"match":"(?<![\\"$'./_[:alnum:]])(\\\\$\\\\$)(?=props|restProps|slots)","name":"punctuation.definition.variable.svelte"}]},"L:meta.script.svelte - meta.lang - (meta source)":{"patterns":[{"begin":"(?<=>)(?!</)","contentName":"source.js","end":"(?=</)","name":"meta.embedded.block.svelte","patterns":[{"include":"source.js"}]}]},"L:meta.style.svelte - meta.lang - (meta source)":{"patterns":[{"begin":"(?<=>)(?!</)","contentName":"source.css","end":"(?=</)","name":"meta.embedded.block.svelte","patterns":[{"include":"source.css"}]}]},"L:meta.style.svelte meta.lang.css - (meta source)":{"patterns":[{"begin":"(?<=>)(?!</)","contentName":"source.css","end":"(?=</)","name":"meta.embedded.block.svelte","patterns":[{"include":"source.css"}]}]},"L:meta.style.svelte meta.lang.less - (meta source)":{"patterns":[{"begin":"(?<=>)(?!</)","contentName":"source.css.less","end":"(?=</)","name":"meta.embedded.block.svelte","patterns":[{"include":"source.css.less"}]}]},"L:meta.style.svelte meta.lang.postcss - (meta source)":{"patterns":[{"begin":"(?<=>)(?!</)","contentName":"source.css.postcss","end":"(?=</)","name":"meta.embedded.block.svelte","patterns":[{"include":"source.css.postcss"}]}]},"L:meta.style.svelte meta.lang.sass - (meta source)":{"patterns":[{"begin":"(?<=>)(?!</)","contentName":"source.sass","end":"(?=</)","name":"meta.embedded.block.svelte","patterns":[{"include":"source.sass"}]}]},"L:meta.style.svelte meta.lang.scss - (meta source)":{"patterns":[{"begin":"(?<=>)(?!</)","contentName":"source.css.scss","end":"(?=</)","name":"meta.embedded.block.svelte","patterns":[{"include":"source.css.scss"}]}]},"L:meta.style.svelte meta.lang.stylus - (meta source)":{"patterns":[{"begin":"(?<=>)(?!</)","contentName":"source.stylus","end":"(?=</)","name":"meta.embedded.block.svelte","patterns":[{"include":"source.stylus"}]}]},"L:meta.template.svelte - meta.lang - (meta source)":{"patterns":[{"begin":"(?<=>)\\\\s","end":"(?=</template)","patterns":[{"include":"#scope"}]}]},"L:meta.template.svelte meta.lang.pug - (meta source)":{"patterns":[{"begin":"(?<=>)(?!</)","contentName":"text.pug","end":"(?=</)","name":"meta.embedded.block.svelte","patterns":[{"include":"text.pug"}]}]}},"name":"svelte","patterns":[{"include":"#scope"}],"repository":{"attributes":{"patterns":[{"include":"#attributes-comments"},{"include":"#attributes-directives"},{"include":"#attributes-keyvalue"},{"include":"#attributes-attach"},{"include":"#attributes-interpolated"}]},"attributes-attach":{"begin":"(?<![:=])\\\\s*(\\\\{@attach\\\\s)","captures":{"1":{"name":"entity.other.attribute-name.svelte"}},"contentName":"meta.embedded.expression.svelte source.ts","end":"(})","patterns":[{"include":"source.ts"}]},"attributes-comments":{"patterns":[{"match":"//.*$","name":"comment.line.double-slash.svelte"},{"begin":"/\\\\*","end":"\\\\*/","name":"comment.block.svelte"}]},"attributes-directives":{"begin":"(?<!<)(on|use|bind|transition|in|out|animate|let|class|style)(:)(?:((?:--)?[$_[:alpha:]][-$_[:alnum:]]*(?=\\\\s*=))|((?:--)?[$_[:alpha:]][-$_[:alnum:]]*))((\\\\|\\\\w+)*)","beginCaptures":{"1":{"patterns":[{"include":"#attributes-directives-keywords"}]},"2":{"name":"punctuation.definition.keyword.svelte"},"3":{"patterns":[{"include":"#attributes-directives-types-assigned"}]},"4":{"patterns":[{"include":"#attributes-directives-types"}]},"5":{"patterns":[{"match":"\\\\w+","name":"support.function.svelte"},{"match":"\\\\|","name":"punctuation.separator.svelte"}]}},"end":"(?=\\\\s*+[^=\\\\s])","name":"meta.directive.$1.svelte","patterns":[{"begin":"=","beginCaptures":{"0":{"name":"punctuation.separator.key-value.svelte"}},"end":"(?<=[^=\\\\s])(?!\\\\s*=)|(?=/?>)","patterns":[{"include":"#attributes-value"}]}]},"attributes-directives-keywords":{"patterns":[{"match":"on|use|bind","name":"keyword.control.svelte"},{"match":"transition|in|out|animate","name":"keyword.other.animation.svelte"},{"match":"let","name":"storage.type.svelte"},{"match":"class|style","name":"entity.other.attribute-name.svelte"}]},"attributes-directives-types":{"patterns":[{"match":"(?<=(on):).*$","name":"entity.name.type.svelte"},{"match":"(?<=(bind):).*$","name":"variable.parameter.svelte"},{"match":"(?<=(use|transition|in|out|animate):).*$","name":"variable.function.svelte"},{"match":"(?<=(let|class|style):).*$","name":"variable.parameter.svelte"}]},"attributes-directives-types-assigned":{"patterns":[{"match":"(?<=(bind):)this$","name":"variable.language.svelte"},{"match":"(?<=(bind):).*$","name":"entity.name.type.svelte"},{"match":"(?<=(class):).*$","name":"entity.other.attribute-name.class.svelte"},{"match":"(?<=(style):).*$","name":"support.type.property-name.svelte"},{"include":"#attributes-directives-types"}]},"attributes-generics":{"begin":"(generics)(=)([\\"'])","beginCaptures":{"1":{"name":"entity.other.attribute-name.svelte"},"2":{"name":"punctuation.separator.key-value.svelte"},"3":{"name":"punctuation.definition.string.begin.svelte"}},"contentName":"meta.embedded.expression.svelte source.ts","end":"(\\\\3)","endCaptures":{"1":{"name":"punctuation.definition.string.end.svelte"}},"patterns":[{"include":"#type-parameters"}]},"attributes-interpolated":{"begin":"(?<![:=])\\\\s*(\\\\{)","captures":{"1":{"name":"entity.other.attribute-name.svelte"}},"contentName":"meta.embedded.expression.svelte source.ts","end":"(})","patterns":[{"include":"source.ts"}]},"attributes-keyvalue":{"begin":"((?:--)?[$_[:alpha:]][-$_[:alnum:]]*)","beginCaptures":{"0":{"patterns":[{"match":"--.*","name":"support.type.property-name.svelte"},{"match":".*","name":"entity.other.attribute-name.svelte"}]}},"end":"(?=\\\\s*+[^=\\\\s])","name":"meta.attribute.$1.svelte","patterns":[{"begin":"=","beginCaptures":{"0":{"name":"punctuation.separator.key-value.svelte"}},"end":"(?<=[^=\\\\s])(?!\\\\s*=)|(?=/?>)","patterns":[{"include":"#attributes-value"}]}]},"attributes-value":{"patterns":[{"include":"#interpolation"},{"captures":{"1":{"name":"punctuation.definition.string.begin.svelte"},"2":{"name":"constant.numeric.decimal.svelte"},"3":{"name":"punctuation.definition.string.end.svelte"},"4":{"name":"constant.numeric.decimal.svelte"}},"match":"([\\"'])([.0-9_]+[%\\\\w]{0,4})(\\\\1)|([.0-9_]+[%\\\\w]{0,4})(?=\\\\s|/?>)"},{"match":"([^\\"'/<=>\`\\\\s]|/(?!>))+","name":"string.unquoted.svelte","patterns":[{"include":"#interpolation"}]},{"begin":"([\\"'])","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.svelte"}},"end":"\\\\1","endCaptures":{"0":{"name":"punctuation.definition.string.end.svelte"}},"name":"string.quoted.svelte","patterns":[{"include":"#interpolation"}]}]},"comments":{"begin":"<!--","captures":{"0":{"name":"punctuation.definition.comment.svelte"}},"end":"-->","name":"comment.block.svelte","patterns":[{"begin":"(@)(component)","beginCaptures":{"1":{"name":"punctuation.definition.keyword.svelte"},"2":{"name":"storage.type.class.component.svelte keyword.declaration.class.component.svelte"}},"contentName":"comment.block.documentation.svelte","end":"(?=-->)","patterns":[{"captures":{"0":{"patterns":[{"include":"text.html.markdown"}]}},"match":".*?(?=-->)"},{"include":"text.html.markdown"}]},{"match":"\\\\G-?>|<!--(?!>)|<!-(?=-->)|--!>","name":"invalid.illegal.characters-not-allowed-here.svelte"}]},"destructuring":{"patterns":[{"begin":"(?=\\\\{)","end":"(?<=})","name":"meta.embedded.expression.svelte source.ts","patterns":[{"include":"source.ts#object-binding-pattern"}]},{"begin":"(?=\\\\[)","end":"(?<=])","name":"meta.embedded.expression.svelte source.ts","patterns":[{"include":"source.ts#array-binding-pattern"}]}]},"destructuring-const":{"patterns":[{"begin":"(?=\\\\{)","end":"(?<=})","name":"meta.embedded.expression.svelte source.ts","patterns":[{"include":"source.ts#object-binding-pattern-const"}]},{"begin":"(?=\\\\[)","end":"(?<=])","name":"meta.embedded.expression.svelte source.ts","patterns":[{"include":"source.ts#array-binding-pattern-const"}]}]},"interpolation":{"patterns":[{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.section.embedded.begin.svelte"}},"contentName":"meta.embedded.expression.svelte source.ts","end":"}","endCaptures":{"0":{"name":"punctuation.section.embedded.end.svelte"}},"patterns":[{"begin":"\\\\G\\\\s*(?=\\\\{)","end":"(?<=})","patterns":[{"include":"source.ts#object-literal"}]},{"include":"source.ts"}]}]},"scope":{"patterns":[{"include":"#comments"},{"include":"#special-tags"},{"include":"#tags"},{"include":"#interpolation"},{"begin":"(?<=[>}])","end":"(?=[<{])","name":"text.svelte"}]},"special-tags":{"patterns":[{"include":"#special-tags-void"},{"include":"#special-tags-block-begin"},{"include":"#special-tags-block-end"}]},"special-tags-block-begin":{"begin":"(\\\\{)\\\\s*(#([a-z]*))","beginCaptures":{"1":{"name":"punctuation.definition.block.begin.svelte"},"2":{"patterns":[{"include":"#special-tags-keywords"}]}},"end":"(})","endCaptures":{"0":{"name":"punctuation.definition.block.end.svelte"}},"name":"meta.special.$3.svelte meta.special.start.svelte","patterns":[{"include":"#special-tags-modes"}]},"special-tags-block-end":{"begin":"(\\\\{)\\\\s*(/(?![*/])([a-z]*))","beginCaptures":{"1":{"name":"punctuation.definition.block.begin.svelte"},"2":{"patterns":[{"include":"#special-tags-keywords"}]}},"end":"(})","endCaptures":{"1":{"name":"punctuation.definition.block.end.svelte"}},"name":"meta.special.$3.svelte meta.special.end.svelte"},"special-tags-keywords":{"captures":{"1":{"name":"punctuation.definition.keyword.svelte"},"2":{"patterns":[{"match":"if|else\\\\s+if|else","name":"keyword.control.conditional.svelte"},{"match":"each|key","name":"keyword.control.svelte"},{"match":"await|then|catch","name":"keyword.control.flow.svelte"},{"match":"snippet","name":"keyword.control.svelte"},{"match":"html","name":"keyword.other.svelte"},{"match":"render","name":"keyword.other.svelte"},{"match":"debug","name":"keyword.other.debugger.svelte"},{"match":"const","name":"storage.type.svelte"}]}},"match":"([#/:@])(else\\\\s+if|[a-z]*)"},"special-tags-modes":{"patterns":[{"begin":"(?<=(if|key|then|catch|html|render).*?)\\\\G","end":"(?=})","name":"meta.embedded.expression.svelte source.ts","patterns":[{"include":"source.ts"}]},{"begin":"(?<=snippet.*?)\\\\G","end":"(?=})","name":"meta.embedded.expression.svelte source.ts","patterns":[{"captures":{"1":{"name":"entity.name.function.ts"}},"match":"\\\\G\\\\s*([$_[:alpha:]][$_[:alnum:]]*)\\\\s*(?=<)"},{"begin":"(?<=<)","contentName":"meta.type.parameters.ts","end":"(?=>)","patterns":[{"include":"source.ts"}]},{"begin":"(?<=>\\\\s*\\\\()","end":"(?=})","name":"meta.embedded.expression.svelte source.ts","patterns":[{"include":"source.ts"}]},{"begin":"\\\\G","end":"(?=})","name":"meta.embedded.expression.svelte source.ts","patterns":[{"include":"source.ts"}]}]},{"begin":"(?<=const.*?)\\\\G","end":"(?=})","patterns":[{"include":"#destructuring-const"},{"begin":"\\\\G\\\\s*([$_[:alpha:]][$_[:alnum:]]+)\\\\s*","beginCaptures":{"1":{"name":"variable.other.constant.svelte"}},"end":"(?=[:=])"},{"begin":"(?=:)","end":"(?==)","name":"meta.type.annotation.svelte","patterns":[{"include":"source.ts"}]},{"begin":"(?==)","end":"(?=})","name":"meta.embedded.expression.svelte source.ts","patterns":[{"include":"source.ts"}]}]},{"begin":"(?<=each.*?)\\\\G","end":"(?=})","patterns":[{"begin":"\\\\G\\\\s*?(?=\\\\S)","contentName":"meta.embedded.expression.svelte source.ts","end":"(?=(?:^\\\\s*|\\\\s+)(as)|\\\\s*([,}]))","patterns":[{"include":"source.ts"}]},{"begin":"(as)|(?=[,}])","beginCaptures":{"1":{"name":"keyword.control.as.svelte"}},"end":"(?=})","patterns":[{"include":"#destructuring"},{"begin":"\\\\(","captures":{"0":{"name":"meta.brace.round.svelte"}},"contentName":"meta.embedded.expression.svelte source.ts","end":"\\\\)|(?=})","patterns":[{"include":"source.ts"}]},{"captures":{"1":{"name":"meta.embedded.expression.svelte source.ts","patterns":[{"include":"source.ts"}]}},"match":"(\\\\s*([$_[:alpha:]][$_[:alnum:]]*)\\\\s*)"},{"match":",","name":"punctuation.separator.svelte"}]}]},{"begin":"(?<=await.*?)\\\\G","end":"(?=})","patterns":[{"begin":"\\\\G\\\\s*?(?=\\\\S)","contentName":"meta.embedded.expression.svelte source.ts","end":"\\\\s+(then)|(?=})","endCaptures":{"1":{"name":"keyword.control.flow.svelte"}},"patterns":[{"include":"source.ts"}]},{"begin":"(?<=then\\\\b)","contentName":"meta.embedded.expression.svelte source.ts","end":"(?=})","patterns":[{"include":"source.ts"}]}]},{"begin":"(?<=debug.*?)\\\\G","end":"(?=})","patterns":[{"captures":{"0":{"name":"meta.embedded.expression.svelte source.ts","patterns":[{"include":"source.ts"}]}},"match":"[$_[:alpha:]][$_[:alnum:]]*"},{"match":",","name":"punctuation.separator.svelte"}]}]},"special-tags-void":{"begin":"(\\\\{)\\\\s*([:@](else\\\\s+if|[a-z]*))","beginCaptures":{"1":{"name":"punctuation.definition.block.begin.svelte"},"2":{"patterns":[{"include":"#special-tags-keywords"}]}},"end":"}","endCaptures":{"0":{"name":"punctuation.definition.block.end.svelte"}},"name":"meta.special.$3.svelte","patterns":[{"include":"#special-tags-modes"}]},"tags":{"patterns":[{"include":"#tags-lang"},{"include":"#tags-void"},{"include":"#tags-general-end"},{"include":"#tags-general-start"}]},"tags-end-node":{"captures":{"1":{"name":"meta.tag.end.svelte punctuation.definition.tag.begin.svelte"},"2":{"name":"meta.tag.end.svelte","patterns":[{"include":"#tags-name"}]},"3":{"name":"meta.tag.end.svelte punctuation.definition.tag.end.svelte"},"4":{"name":"meta.tag.start.svelte punctuation.definition.tag.end.svelte"}},"match":"(</)(.*?)\\\\s*(>)|(/>)"},"tags-general-end":{"begin":"(</)([^/>\\\\s]*)","beginCaptures":{"1":{"name":"meta.tag.end.svelte punctuation.definition.tag.begin.svelte"},"2":{"name":"meta.tag.end.svelte","patterns":[{"include":"#tags-name"}]}},"end":"(>)","endCaptures":{"1":{"name":"meta.tag.end.svelte punctuation.definition.tag.end.svelte"}},"name":"meta.scope.tag.$2.svelte"},"tags-general-start":{"begin":"(<)([^/>\\\\s]*)","beginCaptures":{"0":{"patterns":[{"include":"#tags-start-node"}]}},"end":"(/?>)","endCaptures":{"1":{"name":"meta.tag.start.svelte punctuation.definition.tag.end.svelte"}},"name":"meta.scope.tag.$2.svelte","patterns":[{"include":"#tags-start-attributes"}]},"tags-lang":{"begin":"<(script|style|template)","beginCaptures":{"0":{"patterns":[{"include":"#tags-start-node"}]}},"end":"</\\\\1\\\\s*>|/>","endCaptures":{"0":{"patterns":[{"include":"#tags-end-node"}]}},"name":"meta.$1.svelte","patterns":[{"begin":"\\\\G(?=\\\\s*[^>]*?(type|lang)\\\\s*=\\\\s*([\\"']?)(?:text/)?(\\\\w+)\\\\2)","end":"(?=</|/>)","name":"meta.lang.$3.svelte","patterns":[{"include":"#tags-lang-start-attributes"}]},{"include":"#tags-lang-start-attributes"}]},"tags-lang-start-attributes":{"begin":"\\\\G","end":"(?=/>)|>","endCaptures":{"0":{"name":"punctuation.definition.tag.end.svelte"}},"name":"meta.tag.start.svelte","patterns":[{"include":"#attributes-generics"},{"include":"#attributes"}]},"tags-name":{"patterns":[{"captures":{"1":{"name":"keyword.control.svelte"},"2":{"name":"punctuation.definition.keyword.svelte"},"3":{"name":"entity.name.tag.svelte"}},"match":"(svelte)(:)([a-z][-:\\\\w]*)"},{"match":"slot","name":"keyword.control.svelte"},{"captures":{"1":{"patterns":[{"match":"\\\\w+","name":"support.class.component.svelte"},{"match":"\\\\.","name":"punctuation.definition.keyword.svelte"}]},"2":{"name":"support.class.component.svelte"}},"match":"(\\\\w+(?:\\\\.\\\\w+)+)|([A-Z]\\\\w*)"},{"match":"[a-z][0-:\\\\w]*-[-0-:\\\\w]*","name":"meta.tag.custom.svelte entity.name.tag.svelte"},{"match":"[a-z][-0-:\\\\w]*","name":"entity.name.tag.svelte"}]},"tags-start-attributes":{"begin":"\\\\G","end":"(?=/?>)","name":"meta.tag.start.svelte","patterns":[{"include":"#attributes"}]},"tags-start-node":{"captures":{"1":{"name":"punctuation.definition.tag.begin.svelte"},"2":{"patterns":[{"include":"#tags-name"}]}},"match":"(<)([^/>\\\\s]*)","name":"meta.tag.start.svelte"},"tags-void":{"begin":"(<)(area|base|br|col|embed|hr|img|input|link|meta|param|source|track|wbr)(?=\\\\s|/?>)","beginCaptures":{"1":{"name":"punctuation.definition.tag.begin.svelte"},"2":{"name":"entity.name.tag.svelte"}},"end":"/?>","endCaptures":{"0":{"name":"punctuation.definition.tag.begin.svelte"}},"name":"meta.tag.void.svelte","patterns":[{"include":"#attributes"}]},"type-parameters":{"name":"meta.type.parameters.ts","patterns":[{"include":"source.ts#comment"},{"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(extends|in|out|const)(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))","name":"storage.modifier.ts"},{"include":"source.ts#type"},{"include":"source.ts#punctuation-comma"},{"match":"(=)(?!>)","name":"keyword.operator.assignment.ts"}]}},"scopeName":"source.svelte","embeddedLangs":["javascript","typescript","css","postcss"],"embeddedLangsLazy":["coffee","stylus","sass","scss","less","pug","markdown"]}`)),a=[...e,...t,...n,...r,i];export{a as default};
|
|
2
|
-
//# debugId=
|
|
1
|
+
(function(){try{var e=typeof globalThis<`u`?globalThis:typeof window<`u`?window:typeof global<`u`?global:typeof self<`u`?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]=`0d5db255-6974-46a6-9387-3c8784cb6f81`,e._sentryDebugIdIdentifier=`sentry-dbid-0d5db255-6974-46a6-9387-3c8784cb6f81`)}catch{}})();import{t as e}from"./javascript-qRALF4mN.js";import{i as t}from"./MarkdownText-ByWGXKyu.js";import{t as n}from"./css-TMM_5IvK.js";var r=[Object.freeze(JSON.parse(`{"displayName":"PostCSS","fileTypes":["pcss","postcss"],"foldingStartMarker":"/\\\\*|^#|^\\\\*|^\\\\b|^\\\\.","foldingStopMarker":"\\\\*/|^\\\\s*$","name":"postcss","patterns":[{"begin":"/\\\\*","end":"\\\\*/","name":"comment.block.postcss","patterns":[{"include":"#comment-tag"}]},{"include":"#double-slash"},{"include":"#double-quoted"},{"include":"#single-quoted"},{"include":"#interpolation"},{"include":"#placeholder-selector"},{"include":"#variable"},{"include":"#variable-root-css"},{"include":"#numeric"},{"include":"#unit"},{"include":"#flag"},{"include":"#dotdotdot"},{"begin":"@include","captures":{"0":{"name":"keyword.control.at-rule.css.postcss"}},"end":"(?=[\\\\n(;{])","name":"support.function.name.postcss.library"},{"begin":"@(?:mixin|function)","captures":{"0":{"name":"keyword.control.at-rule.css.postcss"}},"end":"$\\\\n?|(?=[({])","name":"support.function.name.postcss.no-completions","patterns":[{"match":"[-\\\\w]+","name":"entity.name.function"}]},{"match":"(?<=@import)\\\\s[-*./\\\\w]+","name":"string.quoted.double.css.postcss"},{"begin":"@","end":"$\\\\n?|\\\\s(?!(all|braille|embossed|handheld|print|projection|screen|speech|tty|tv|if|only|not)([,\\\\s]))|(?=;)","name":"keyword.control.at-rule.css.postcss"},{"begin":"#","end":"$\\\\n?|(?=[(),.;>\\\\[{\\\\s])","name":"entity.other.attribute-name.id.css.postcss","patterns":[{"include":"#interpolation"},{"include":"#pseudo-class"}]},{"begin":"\\\\.|(?<=&)([-_])","end":"$\\\\n?|(?=[(),;>\\\\[{\\\\s])","name":"entity.other.attribute-name.class.css.postcss","patterns":[{"include":"#interpolation"},{"include":"#pseudo-class"}]},{"begin":"\\\\[","end":"]","name":"entity.other.attribute-selector.postcss","patterns":[{"include":"#double-quoted"},{"include":"#single-quoted"},{"match":"[$*^~]","name":"keyword.other.regex.postcss"}]},{"match":"(?<=[])]|not\\\\(|[*>]|>\\\\s):[-:a-z]+|(:[-:])[-:a-z]+","name":"entity.other.attribute-name.pseudo-class.css.postcss"},{"begin":":","end":"$\\\\n?|(?=;|\\\\s\\\\(|and\\\\(|[{}]|\\\\),)","name":"meta.property-list.css.postcss","patterns":[{"include":"#double-slash"},{"include":"#double-quoted"},{"include":"#single-quoted"},{"include":"#interpolation"},{"include":"#variable"},{"include":"#rgb-value"},{"include":"#numeric"},{"include":"#unit"},{"include":"#flag"},{"include":"#function"},{"include":"#function-content"},{"include":"#function-content-var"},{"include":"#operator"},{"include":"#parent-selector"},{"include":"#property-value"}]},{"include":"#rgb-value"},{"include":"#function"},{"include":"#function-content"},{"begin":"(?<![-(])\\\\b(a|abbr|acronym|address|applet|area|article|aside|audio|b|base|big|blockquote|body|br|button|canvas|caption|cite|code|col|colgroup|datalist|dd|del|details|dfn|dialog|div|dl|dt|em|embed|eventsource|fieldset|figure|figcaption|footer|form|frame|frameset|(h[1-6])|head|header|hgroup|hr|html|i|iframe|img|input|ins|kbd|label|legend|li|link|map|mark|menu|meta|meter|nav|noframes|noscript|object|ol|optgroup|option|output|p|param|picture|pre|progress|q|samp|script|section|select|small|source|span|strike|strong|style|sub|summary|sup|table|tbody|td|textarea|tfoot|th|thead|time|title|tr|tt|ul|var|video|main|svg|rect|ruby|center|circle|ellipse|line|polyline|polygon|path|text|[ux])\\\\b(?![-)]|:\\\\s)|&","end":"(?=[-(),.;>\\\\[_{\\\\s])","name":"entity.name.tag.css.postcss.symbol","patterns":[{"include":"#interpolation"},{"include":"#pseudo-class"}]},{"include":"#operator"},{"match":"[-a-z]+((?=:|#\\\\{))","name":"support.type.property-name.css.postcss"},{"include":"#reserved-words"},{"include":"#property-value"}],"repository":{"comment-tag":{"begin":"\\\\{\\\\{","end":"}}","name":"comment.tags.postcss","patterns":[{"match":"[-\\\\w]+","name":"comment.tag.postcss"}]},"dotdotdot":{"match":"\\\\.{3}","name":"variable.other"},"double-quoted":{"begin":"\\"","end":"\\"","name":"string.quoted.double.css.postcss","patterns":[{"include":"#quoted-interpolation"}]},"double-slash":{"begin":"//","end":"$","name":"comment.line.postcss","patterns":[{"include":"#comment-tag"}]},"flag":{"match":"!(important|default|optional|global)","name":"keyword.other.important.css.postcss"},"function":{"match":"(?<=[(,:|\\\\s])(?!url|format|attr)[-\\\\w][-\\\\w]*(?=\\\\()","name":"support.function.name.postcss"},"function-content":{"match":"(?<=url\\\\(|format\\\\(|attr\\\\().+?(?=\\\\))","name":"string.quoted.double.css.postcss"},"function-content-var":{"match":"(?<=var\\\\()[-\\\\w]+(?=\\\\))","name":"variable.parameter.postcss"},"interpolation":{"begin":"#\\\\{","end":"}","name":"support.function.interpolation.postcss","patterns":[{"include":"#variable"},{"include":"#numeric"},{"include":"#operator"},{"include":"#unit"},{"include":"#double-quoted"},{"include":"#single-quoted"}]},"numeric":{"match":"([-.])?[0-9]+(\\\\.[0-9]+)?","name":"constant.numeric.css.postcss"},"operator":{"match":"\\\\+|\\\\s-\\\\s|\\\\s-(?=\\\\$)|(?<=\\\\()-(?=\\\\$)|\\\\s-(?=\\\\()|[!%*/<=>~]","name":"keyword.operator.postcss"},"parent-selector":{"match":"&","name":"entity.name.tag.css.postcss"},"placeholder-selector":{"begin":"(?<!\\\\d)%(?!\\\\d)","end":"$\\\\n?|\\\\s|(?=[;{])","name":"entity.other.attribute-name.placeholder-selector.postcss"},"property-value":{"match":"[-\\\\w]+","name":"meta.property-value.css.postcss, support.constant.property-value.css.postcss"},"pseudo-class":{"match":":[-:a-z]+","name":"entity.other.attribute-name.pseudo-class.css.postcss"},"quoted-interpolation":{"begin":"#\\\\{","end":"}","name":"support.function.interpolation.postcss","patterns":[{"include":"#variable"},{"include":"#numeric"},{"include":"#operator"},{"include":"#unit"}]},"reserved-words":{"match":"\\\\b(false|from|in|not|null|through|to|true)\\\\b","name":"support.type.property-name.css.postcss"},"rgb-value":{"match":"(#)(\\\\h{3}|\\\\h{6})\\\\b","name":"constant.other.color.rgb-value.css.postcss"},"single-quoted":{"begin":"'","end":"'","name":"string.quoted.single.css.postcss","patterns":[{"include":"#quoted-interpolation"}]},"unit":{"match":"(?<=[}\\\\d])(ch|cm|deg|dpcm|dpi|dppx|em|ex|grad|Hz|in|kHz|mm|ms|pc|pt|px|rad|rem|s|turn|vh|vmax|vmin|vw|%)","name":"keyword.other.unit.css.postcss"},"variable":{"match":"\\\\$[-\\\\w]+","name":"variable.parameter.postcss"},"variable-root-css":{"match":"(?<!&)--[-\\\\w]+","name":"variable.parameter.postcss"}},"scopeName":"source.css.postcss"}`))],i=Object.freeze(JSON.parse(`{"displayName":"Svelte","fileTypes":["svelte"],"injections":{"L:(meta.script.svelte | meta.style.svelte) (meta.lang.js | meta.lang.javascript) - (meta source)":{"patterns":[{"begin":"(?<=>)(?!</)","contentName":"source.js","end":"(?=</)","name":"meta.embedded.block.svelte","patterns":[{"include":"source.js"}]}]},"L:(meta.script.svelte | meta.style.svelte) (meta.lang.ts | meta.lang.typescript) - (meta source)":{"patterns":[{"begin":"(?<=>)(?=[^\\\\n]+</(s(?:cript|tyle))[>\\\\s])","contentName":"source.ts","end":"(?=</(s(?:cript|tyle))[>\\\\s])","name":"meta.embedded.block.svelte","patterns":[{"include":"source.ts"}]},{"begin":"(?<=>)(?!</)","contentName":"source.ts","name":"meta.embedded.block.svelte","patterns":[{"include":"source.ts"}],"while":"^(?!\\\\s*</(s(?:cript|tyle))[>\\\\s])"}]},"L:(meta.script.svelte | meta.style.svelte) meta.lang.coffee - (meta source)":{"patterns":[{"begin":"(?<=>)(?!</)","contentName":"source.coffee","end":"(?=</)","name":"meta.embedded.block.svelte","patterns":[{"include":"source.coffee"}]}]},"L:(source.ts, source.js, source.coffee)":{"patterns":[{"match":"(?<![\\"$'./_[:alnum:]])\\\\$(?=[_[:alpha:]][$_[:alnum:]]*)","name":"punctuation.definition.variable.svelte"},{"match":"(?<![\\"$'./_[:alnum:]])(\\\\$\\\\$)(?=props|restProps|slots)","name":"punctuation.definition.variable.svelte"}]},"L:meta.script.svelte - meta.lang - (meta source)":{"patterns":[{"begin":"(?<=>)(?!</)","contentName":"source.js","end":"(?=</)","name":"meta.embedded.block.svelte","patterns":[{"include":"source.js"}]}]},"L:meta.style.svelte - meta.lang - (meta source)":{"patterns":[{"begin":"(?<=>)(?!</)","contentName":"source.css","end":"(?=</)","name":"meta.embedded.block.svelte","patterns":[{"include":"source.css"}]}]},"L:meta.style.svelte meta.lang.css - (meta source)":{"patterns":[{"begin":"(?<=>)(?!</)","contentName":"source.css","end":"(?=</)","name":"meta.embedded.block.svelte","patterns":[{"include":"source.css"}]}]},"L:meta.style.svelte meta.lang.less - (meta source)":{"patterns":[{"begin":"(?<=>)(?!</)","contentName":"source.css.less","end":"(?=</)","name":"meta.embedded.block.svelte","patterns":[{"include":"source.css.less"}]}]},"L:meta.style.svelte meta.lang.postcss - (meta source)":{"patterns":[{"begin":"(?<=>)(?!</)","contentName":"source.css.postcss","end":"(?=</)","name":"meta.embedded.block.svelte","patterns":[{"include":"source.css.postcss"}]}]},"L:meta.style.svelte meta.lang.sass - (meta source)":{"patterns":[{"begin":"(?<=>)(?!</)","contentName":"source.sass","end":"(?=</)","name":"meta.embedded.block.svelte","patterns":[{"include":"source.sass"}]}]},"L:meta.style.svelte meta.lang.scss - (meta source)":{"patterns":[{"begin":"(?<=>)(?!</)","contentName":"source.css.scss","end":"(?=</)","name":"meta.embedded.block.svelte","patterns":[{"include":"source.css.scss"}]}]},"L:meta.style.svelte meta.lang.stylus - (meta source)":{"patterns":[{"begin":"(?<=>)(?!</)","contentName":"source.stylus","end":"(?=</)","name":"meta.embedded.block.svelte","patterns":[{"include":"source.stylus"}]}]},"L:meta.template.svelte - meta.lang - (meta source)":{"patterns":[{"begin":"(?<=>)\\\\s","end":"(?=</template)","patterns":[{"include":"#scope"}]}]},"L:meta.template.svelte meta.lang.pug - (meta source)":{"patterns":[{"begin":"(?<=>)(?!</)","contentName":"text.pug","end":"(?=</)","name":"meta.embedded.block.svelte","patterns":[{"include":"text.pug"}]}]}},"name":"svelte","patterns":[{"include":"#scope"}],"repository":{"attributes":{"patterns":[{"include":"#attributes-comments"},{"include":"#attributes-directives"},{"include":"#attributes-keyvalue"},{"include":"#attributes-attach"},{"include":"#attributes-interpolated"}]},"attributes-attach":{"begin":"(?<![:=])\\\\s*(\\\\{@attach\\\\s)","captures":{"1":{"name":"entity.other.attribute-name.svelte"}},"contentName":"meta.embedded.expression.svelte source.ts","end":"(})","patterns":[{"include":"source.ts"}]},"attributes-comments":{"patterns":[{"match":"//.*$","name":"comment.line.double-slash.svelte"},{"begin":"/\\\\*","end":"\\\\*/","name":"comment.block.svelte"}]},"attributes-directives":{"begin":"(?<!<)(on|use|bind|transition|in|out|animate|let|class|style)(:)(?:((?:--)?[$_[:alpha:]][-$_[:alnum:]]*(?=\\\\s*=))|((?:--)?[$_[:alpha:]][-$_[:alnum:]]*))((\\\\|\\\\w+)*)","beginCaptures":{"1":{"patterns":[{"include":"#attributes-directives-keywords"}]},"2":{"name":"punctuation.definition.keyword.svelte"},"3":{"patterns":[{"include":"#attributes-directives-types-assigned"}]},"4":{"patterns":[{"include":"#attributes-directives-types"}]},"5":{"patterns":[{"match":"\\\\w+","name":"support.function.svelte"},{"match":"\\\\|","name":"punctuation.separator.svelte"}]}},"end":"(?=\\\\s*+[^=\\\\s])","name":"meta.directive.$1.svelte","patterns":[{"begin":"=","beginCaptures":{"0":{"name":"punctuation.separator.key-value.svelte"}},"end":"(?<=[^=\\\\s])(?!\\\\s*=)|(?=/?>)","patterns":[{"include":"#attributes-value"}]}]},"attributes-directives-keywords":{"patterns":[{"match":"on|use|bind","name":"keyword.control.svelte"},{"match":"transition|in|out|animate","name":"keyword.other.animation.svelte"},{"match":"let","name":"storage.type.svelte"},{"match":"class|style","name":"entity.other.attribute-name.svelte"}]},"attributes-directives-types":{"patterns":[{"match":"(?<=(on):).*$","name":"entity.name.type.svelte"},{"match":"(?<=(bind):).*$","name":"variable.parameter.svelte"},{"match":"(?<=(use|transition|in|out|animate):).*$","name":"variable.function.svelte"},{"match":"(?<=(let|class|style):).*$","name":"variable.parameter.svelte"}]},"attributes-directives-types-assigned":{"patterns":[{"match":"(?<=(bind):)this$","name":"variable.language.svelte"},{"match":"(?<=(bind):).*$","name":"entity.name.type.svelte"},{"match":"(?<=(class):).*$","name":"entity.other.attribute-name.class.svelte"},{"match":"(?<=(style):).*$","name":"support.type.property-name.svelte"},{"include":"#attributes-directives-types"}]},"attributes-generics":{"begin":"(generics)(=)([\\"'])","beginCaptures":{"1":{"name":"entity.other.attribute-name.svelte"},"2":{"name":"punctuation.separator.key-value.svelte"},"3":{"name":"punctuation.definition.string.begin.svelte"}},"contentName":"meta.embedded.expression.svelte source.ts","end":"(\\\\3)","endCaptures":{"1":{"name":"punctuation.definition.string.end.svelte"}},"patterns":[{"include":"#type-parameters"}]},"attributes-interpolated":{"begin":"(?<![:=])\\\\s*(\\\\{)","captures":{"1":{"name":"entity.other.attribute-name.svelte"}},"contentName":"meta.embedded.expression.svelte source.ts","end":"(})","patterns":[{"include":"source.ts"}]},"attributes-keyvalue":{"begin":"((?:--)?[$_[:alpha:]][-$_[:alnum:]]*)","beginCaptures":{"0":{"patterns":[{"match":"--.*","name":"support.type.property-name.svelte"},{"match":".*","name":"entity.other.attribute-name.svelte"}]}},"end":"(?=\\\\s*+[^=\\\\s])","name":"meta.attribute.$1.svelte","patterns":[{"begin":"=","beginCaptures":{"0":{"name":"punctuation.separator.key-value.svelte"}},"end":"(?<=[^=\\\\s])(?!\\\\s*=)|(?=/?>)","patterns":[{"include":"#attributes-value"}]}]},"attributes-value":{"patterns":[{"include":"#interpolation"},{"captures":{"1":{"name":"punctuation.definition.string.begin.svelte"},"2":{"name":"constant.numeric.decimal.svelte"},"3":{"name":"punctuation.definition.string.end.svelte"},"4":{"name":"constant.numeric.decimal.svelte"}},"match":"([\\"'])([.0-9_]+[%\\\\w]{0,4})(\\\\1)|([.0-9_]+[%\\\\w]{0,4})(?=\\\\s|/?>)"},{"match":"([^\\"'/<=>\`\\\\s]|/(?!>))+","name":"string.unquoted.svelte","patterns":[{"include":"#interpolation"}]},{"begin":"([\\"'])","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.svelte"}},"end":"\\\\1","endCaptures":{"0":{"name":"punctuation.definition.string.end.svelte"}},"name":"string.quoted.svelte","patterns":[{"include":"#interpolation"}]}]},"comments":{"begin":"<!--","captures":{"0":{"name":"punctuation.definition.comment.svelte"}},"end":"-->","name":"comment.block.svelte","patterns":[{"begin":"(@)(component)","beginCaptures":{"1":{"name":"punctuation.definition.keyword.svelte"},"2":{"name":"storage.type.class.component.svelte keyword.declaration.class.component.svelte"}},"contentName":"comment.block.documentation.svelte","end":"(?=-->)","patterns":[{"captures":{"0":{"patterns":[{"include":"text.html.markdown"}]}},"match":".*?(?=-->)"},{"include":"text.html.markdown"}]},{"match":"\\\\G-?>|<!--(?!>)|<!-(?=-->)|--!>","name":"invalid.illegal.characters-not-allowed-here.svelte"}]},"destructuring":{"patterns":[{"begin":"(?=\\\\{)","end":"(?<=})","name":"meta.embedded.expression.svelte source.ts","patterns":[{"include":"source.ts#object-binding-pattern"}]},{"begin":"(?=\\\\[)","end":"(?<=])","name":"meta.embedded.expression.svelte source.ts","patterns":[{"include":"source.ts#array-binding-pattern"}]}]},"destructuring-const":{"patterns":[{"begin":"(?=\\\\{)","end":"(?<=})","name":"meta.embedded.expression.svelte source.ts","patterns":[{"include":"source.ts#object-binding-pattern-const"}]},{"begin":"(?=\\\\[)","end":"(?<=])","name":"meta.embedded.expression.svelte source.ts","patterns":[{"include":"source.ts#array-binding-pattern-const"}]}]},"interpolation":{"patterns":[{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.section.embedded.begin.svelte"}},"contentName":"meta.embedded.expression.svelte source.ts","end":"}","endCaptures":{"0":{"name":"punctuation.section.embedded.end.svelte"}},"patterns":[{"begin":"\\\\G\\\\s*(?=\\\\{)","end":"(?<=})","patterns":[{"include":"source.ts#object-literal"}]},{"include":"source.ts"}]}]},"scope":{"patterns":[{"include":"#comments"},{"include":"#special-tags"},{"include":"#tags"},{"include":"#interpolation"},{"begin":"(?<=[>}])","end":"(?=[<{])","name":"text.svelte"}]},"special-tags":{"patterns":[{"include":"#special-tags-void"},{"include":"#special-tags-block-begin"},{"include":"#special-tags-block-end"}]},"special-tags-block-begin":{"begin":"(\\\\{)\\\\s*(#([a-z]*))","beginCaptures":{"1":{"name":"punctuation.definition.block.begin.svelte"},"2":{"patterns":[{"include":"#special-tags-keywords"}]}},"end":"(})","endCaptures":{"0":{"name":"punctuation.definition.block.end.svelte"}},"name":"meta.special.$3.svelte meta.special.start.svelte","patterns":[{"include":"#special-tags-modes"}]},"special-tags-block-end":{"begin":"(\\\\{)\\\\s*(/(?![*/])([a-z]*))","beginCaptures":{"1":{"name":"punctuation.definition.block.begin.svelte"},"2":{"patterns":[{"include":"#special-tags-keywords"}]}},"end":"(})","endCaptures":{"1":{"name":"punctuation.definition.block.end.svelte"}},"name":"meta.special.$3.svelte meta.special.end.svelte"},"special-tags-keywords":{"captures":{"1":{"name":"punctuation.definition.keyword.svelte"},"2":{"patterns":[{"match":"if|else\\\\s+if|else","name":"keyword.control.conditional.svelte"},{"match":"each|key","name":"keyword.control.svelte"},{"match":"await|then|catch","name":"keyword.control.flow.svelte"},{"match":"snippet","name":"keyword.control.svelte"},{"match":"html","name":"keyword.other.svelte"},{"match":"render","name":"keyword.other.svelte"},{"match":"debug","name":"keyword.other.debugger.svelte"},{"match":"const","name":"storage.type.svelte"}]}},"match":"([#/:@])(else\\\\s+if|[a-z]*)"},"special-tags-modes":{"patterns":[{"begin":"(?<=(if|key|then|catch|html|render).*?)\\\\G","end":"(?=})","name":"meta.embedded.expression.svelte source.ts","patterns":[{"include":"source.ts"}]},{"begin":"(?<=snippet.*?)\\\\G","end":"(?=})","name":"meta.embedded.expression.svelte source.ts","patterns":[{"captures":{"1":{"name":"entity.name.function.ts"}},"match":"\\\\G\\\\s*([$_[:alpha:]][$_[:alnum:]]*)\\\\s*(?=<)"},{"begin":"(?<=<)","contentName":"meta.type.parameters.ts","end":"(?=>)","patterns":[{"include":"source.ts"}]},{"begin":"(?<=>\\\\s*\\\\()","end":"(?=})","name":"meta.embedded.expression.svelte source.ts","patterns":[{"include":"source.ts"}]},{"begin":"\\\\G","end":"(?=})","name":"meta.embedded.expression.svelte source.ts","patterns":[{"include":"source.ts"}]}]},{"begin":"(?<=const.*?)\\\\G","end":"(?=})","patterns":[{"include":"#destructuring-const"},{"begin":"\\\\G\\\\s*([$_[:alpha:]][$_[:alnum:]]+)\\\\s*","beginCaptures":{"1":{"name":"variable.other.constant.svelte"}},"end":"(?=[:=])"},{"begin":"(?=:)","end":"(?==)","name":"meta.type.annotation.svelte","patterns":[{"include":"source.ts"}]},{"begin":"(?==)","end":"(?=})","name":"meta.embedded.expression.svelte source.ts","patterns":[{"include":"source.ts"}]}]},{"begin":"(?<=each.*?)\\\\G","end":"(?=})","patterns":[{"begin":"\\\\G\\\\s*?(?=\\\\S)","contentName":"meta.embedded.expression.svelte source.ts","end":"(?=(?:^\\\\s*|\\\\s+)(as)|\\\\s*([,}]))","patterns":[{"include":"source.ts"}]},{"begin":"(as)|(?=[,}])","beginCaptures":{"1":{"name":"keyword.control.as.svelte"}},"end":"(?=})","patterns":[{"include":"#destructuring"},{"begin":"\\\\(","captures":{"0":{"name":"meta.brace.round.svelte"}},"contentName":"meta.embedded.expression.svelte source.ts","end":"\\\\)|(?=})","patterns":[{"include":"source.ts"}]},{"captures":{"1":{"name":"meta.embedded.expression.svelte source.ts","patterns":[{"include":"source.ts"}]}},"match":"(\\\\s*([$_[:alpha:]][$_[:alnum:]]*)\\\\s*)"},{"match":",","name":"punctuation.separator.svelte"}]}]},{"begin":"(?<=await.*?)\\\\G","end":"(?=})","patterns":[{"begin":"\\\\G\\\\s*?(?=\\\\S)","contentName":"meta.embedded.expression.svelte source.ts","end":"\\\\s+(then)|(?=})","endCaptures":{"1":{"name":"keyword.control.flow.svelte"}},"patterns":[{"include":"source.ts"}]},{"begin":"(?<=then\\\\b)","contentName":"meta.embedded.expression.svelte source.ts","end":"(?=})","patterns":[{"include":"source.ts"}]}]},{"begin":"(?<=debug.*?)\\\\G","end":"(?=})","patterns":[{"captures":{"0":{"name":"meta.embedded.expression.svelte source.ts","patterns":[{"include":"source.ts"}]}},"match":"[$_[:alpha:]][$_[:alnum:]]*"},{"match":",","name":"punctuation.separator.svelte"}]}]},"special-tags-void":{"begin":"(\\\\{)\\\\s*([:@](else\\\\s+if|[a-z]*))","beginCaptures":{"1":{"name":"punctuation.definition.block.begin.svelte"},"2":{"patterns":[{"include":"#special-tags-keywords"}]}},"end":"}","endCaptures":{"0":{"name":"punctuation.definition.block.end.svelte"}},"name":"meta.special.$3.svelte","patterns":[{"include":"#special-tags-modes"}]},"tags":{"patterns":[{"include":"#tags-lang"},{"include":"#tags-void"},{"include":"#tags-general-end"},{"include":"#tags-general-start"}]},"tags-end-node":{"captures":{"1":{"name":"meta.tag.end.svelte punctuation.definition.tag.begin.svelte"},"2":{"name":"meta.tag.end.svelte","patterns":[{"include":"#tags-name"}]},"3":{"name":"meta.tag.end.svelte punctuation.definition.tag.end.svelte"},"4":{"name":"meta.tag.start.svelte punctuation.definition.tag.end.svelte"}},"match":"(</)(.*?)\\\\s*(>)|(/>)"},"tags-general-end":{"begin":"(</)([^/>\\\\s]*)","beginCaptures":{"1":{"name":"meta.tag.end.svelte punctuation.definition.tag.begin.svelte"},"2":{"name":"meta.tag.end.svelte","patterns":[{"include":"#tags-name"}]}},"end":"(>)","endCaptures":{"1":{"name":"meta.tag.end.svelte punctuation.definition.tag.end.svelte"}},"name":"meta.scope.tag.$2.svelte"},"tags-general-start":{"begin":"(<)([^/>\\\\s]*)","beginCaptures":{"0":{"patterns":[{"include":"#tags-start-node"}]}},"end":"(/?>)","endCaptures":{"1":{"name":"meta.tag.start.svelte punctuation.definition.tag.end.svelte"}},"name":"meta.scope.tag.$2.svelte","patterns":[{"include":"#tags-start-attributes"}]},"tags-lang":{"begin":"<(script|style|template)","beginCaptures":{"0":{"patterns":[{"include":"#tags-start-node"}]}},"end":"</\\\\1\\\\s*>|/>","endCaptures":{"0":{"patterns":[{"include":"#tags-end-node"}]}},"name":"meta.$1.svelte","patterns":[{"begin":"\\\\G(?=\\\\s*[^>]*?(type|lang)\\\\s*=\\\\s*([\\"']?)(?:text/)?(\\\\w+)\\\\2)","end":"(?=</|/>)","name":"meta.lang.$3.svelte","patterns":[{"include":"#tags-lang-start-attributes"}]},{"include":"#tags-lang-start-attributes"}]},"tags-lang-start-attributes":{"begin":"\\\\G","end":"(?=/>)|>","endCaptures":{"0":{"name":"punctuation.definition.tag.end.svelte"}},"name":"meta.tag.start.svelte","patterns":[{"include":"#attributes-generics"},{"include":"#attributes"}]},"tags-name":{"patterns":[{"captures":{"1":{"name":"keyword.control.svelte"},"2":{"name":"punctuation.definition.keyword.svelte"},"3":{"name":"entity.name.tag.svelte"}},"match":"(svelte)(:)([a-z][-:\\\\w]*)"},{"match":"slot","name":"keyword.control.svelte"},{"captures":{"1":{"patterns":[{"match":"\\\\w+","name":"support.class.component.svelte"},{"match":"\\\\.","name":"punctuation.definition.keyword.svelte"}]},"2":{"name":"support.class.component.svelte"}},"match":"(\\\\w+(?:\\\\.\\\\w+)+)|([A-Z]\\\\w*)"},{"match":"[a-z][0-:\\\\w]*-[-0-:\\\\w]*","name":"meta.tag.custom.svelte entity.name.tag.svelte"},{"match":"[a-z][-0-:\\\\w]*","name":"entity.name.tag.svelte"}]},"tags-start-attributes":{"begin":"\\\\G","end":"(?=/?>)","name":"meta.tag.start.svelte","patterns":[{"include":"#attributes"}]},"tags-start-node":{"captures":{"1":{"name":"punctuation.definition.tag.begin.svelte"},"2":{"patterns":[{"include":"#tags-name"}]}},"match":"(<)([^/>\\\\s]*)","name":"meta.tag.start.svelte"},"tags-void":{"begin":"(<)(area|base|br|col|embed|hr|img|input|link|meta|param|source|track|wbr)(?=\\\\s|/?>)","beginCaptures":{"1":{"name":"punctuation.definition.tag.begin.svelte"},"2":{"name":"entity.name.tag.svelte"}},"end":"/?>","endCaptures":{"0":{"name":"punctuation.definition.tag.begin.svelte"}},"name":"meta.tag.void.svelte","patterns":[{"include":"#attributes"}]},"type-parameters":{"name":"meta.type.parameters.ts","patterns":[{"include":"source.ts#comment"},{"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(extends|in|out|const)(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))","name":"storage.modifier.ts"},{"include":"source.ts#type"},{"include":"source.ts#punctuation-comma"},{"match":"(=)(?!>)","name":"keyword.operator.assignment.ts"}]}},"scopeName":"source.svelte","embeddedLangs":["javascript","typescript","css","postcss"],"embeddedLangsLazy":["coffee","stylus","sass","scss","less","pug","markdown"]}`)),a=[...e,...t,...n,...r,i];export{a as default};
|
|
2
|
+
//# debugId=0d5db255-6974-46a6-9387-3c8784cb6f81
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
(function(){try{var e=typeof globalThis<`u`?globalThis:typeof window<`u`?window:typeof global<`u`?global:typeof self<`u`?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]=`
|
|
1
|
+
(function(){try{var e=typeof globalThis<`u`?globalThis:typeof window<`u`?window:typeof global<`u`?global:typeof self<`u`?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]=`eb09e18b-dfe7-405d-9c06-f7644d4e2bf9`,e._sentryDebugIdIdentifier=`sentry-dbid-eb09e18b-dfe7-405d-9c06-f7644d4e2bf9`)}catch{}})();import{c as e,f as t,l as n,p as r}from"./app.js";var i=typeof __SENTRY_DEBUG__>`u`||__SENTRY_DEBUG__,a=globalThis,o=`11.11.0`;function s(){return c(a),a}function c(e){let t=e.__SENTRY__=e.__SENTRY__||{};return t.version=t.version||`11.11.0`,t[o]=t[`11.11.0`]||{}}function l(e,t,n=a){let r=n.__SENTRY__=n.__SENTRY__||{},i=r[o]=r[`11.11.0`]||{};return i[e]||(i[e]=t())}var u=`Sentry Logger `,d={};function f(e){if(!(`console`in a))return e();let t=a.console,n={},r=Object.keys(d);r.forEach(e=>{let r=d[e];n[e]=t[e],t[e]=r});try{return e()}finally{r.forEach(e=>{t[e]=n[e]})}}function p(){ne().enabled=!0}function m(){ne().enabled=!1}function h(){return ne().enabled}function g(...e){te(`log`,...e)}function _(...e){te(`warn`,...e)}function ee(...e){te(`error`,...e)}function te(e,...t){i&&h()&&f(()=>{a.console[e](`${u}[${e}]:`,...t)})}function ne(){return i?l(`loggerSettings`,()=>({enabled:!1})):{enabled:!1}}var v={enable:p,disable:m,isEnabled:h,log:g,warn:_,error:ee},re=50,ie=/\(error: (.*)\)/,ae=/captureMessage|captureException/;function oe(...e){let t=e.sort((e,t)=>e[0]-t[0]).map(e=>e[1]);return(e,n=0,r=0)=>{let i=[],a=e.split(`
|
|
2
2
|
`);for(let e=n;e<a.length;e++){let n=a[e];n.length>1024&&(n=n.slice(0,1024));let o=ie.test(n)?n.replace(ie,`$1`):n;if(!o.includes(`Error: `)){for(let e of t){let t=e(o);if(t){i.push(t);break}}if(i.length>=re+r)break}}return se(i.slice(r))}}function se(e){if(!e.length)return[];let t=Array.from(e);return/sentryWrapped/.test(y(t).function||``)&&t.pop(),t.reverse(),ae.test(y(t).function||``)&&(t.pop(),ae.test(y(t).function||``)&&t.pop()),t.slice(0,re).map(e=>({...e,filename:e.filename||y(t).filename,function:e.function||`?`}))}function y(e){return e[e.length-1]||{}}var b=`<anonymous>`;function ce(e){try{return!e||typeof e!=`function`?b:e.name||b}catch{return b}}var le=Object.prototype.toString;function x(e){switch(le.call(e)){case`[object Error]`:case`[object Exception]`:case`[object DOMException]`:case`[object WebAssembly.Exception]`:return!0;default:return ye(e,Error)}}function S(e,t){return le.call(e)===`[object ${t}]`}function ue(e){return S(e,`ErrorEvent`)}function de(e){return S(e,`DOMError`)}function fe(e){return S(e,`DOMException`)}function pe(e){return S(e,`String`)}function me(e){return typeof e==`object`&&!!e&&`__sentry_template_string__`in e&&`__sentry_template_values__`in e}function he(e){return e===null||me(e)||typeof e!=`object`&&typeof e!=`function`}function ge(e){return S(e,`Object`)}function _e(e){return typeof e==`object`&&!!e}function C(e){return typeof Event<`u`&&ye(e,Event)}function ve(e){return S(e,`RegExp`)}function w(e){return!!(e?.then&&typeof e.then==`function`)}function ye(e,t){try{return e instanceof t}catch{return!1}}function be(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch{i&&v.log(`Failed to add non-enumerable property "${String(t)}" to object`,e)}}function xe(e){if(x(e))return{message:e.message,name:e.name,stack:e.stack,...Se(e)};if(C(e)){let{type:t,target:n,currentTarget:r,detail:i}=e;return{type:t,target:n,currentTarget:r,...i?{detail:i}:{},...Se(e)}}return e}function Se(e){return _e(e)?Object.fromEntries(Object.entries(e)):{}}function Ce(e){let t=Object.keys(xe(e));return t.sort(),t[0]?t.join(`, `):`[object has no keys]`}var T;function E(e){if(T!==void 0)return T?T(e):e();let t=Symbol.for(`__SENTRY_SAFE_RANDOM_ID_WRAPPER__`),n=a;return t in n&&typeof n[t]==`function`?(T=n[t],T(e)):(T=null,e())}function we(){return E(()=>Math.random())}function D(){return E(()=>Date.now())}var Te=Symbol.for(`sentry.skipNormalization`),Ee=Symbol.for(`sentry.overrideNormalizationDepth`);function De(e){return!!e[Te]}function Oe(e){let t=e[Ee];return typeof t==`number`?t:void 0}function O(e,t=100,n=1/0){try{return Ae(``,e,t,n)}catch(e){return{ERROR:`**non-serializable** (${e})`}}}function ke(e,t=3,n=102400){let r=O(e,t);return Pe(r)>n?ke(e,t-1,n):r}function Ae(e,t,n=1/0,r=1/0,i=Fe()){let[a,o]=i;if(t==null||[`boolean`,`string`].includes(typeof t)||typeof t==`number`&&Number.isFinite(t))return t;let s=je(e,t);if(!s.startsWith(`[object `))return s;if(De(t))return t;let c=Oe(t),l=c===void 0?n:c;if(l===0)return s.replace(`object `,``);if(a(t))return`[Circular ~]`;let u=t;if(u&&typeof u.toJSON==`function`)try{return Ae(``,u.toJSON(),l-1,r,i)}catch{}let d=Array.isArray(t)?[]:{},f=0,p=xe(t);for(let e in p){if(!Object.prototype.hasOwnProperty.call(p,e))continue;if(f>=r){d[e]=`[MaxProperties ~]`;break}let t=p[e];d[e]=Ae(e,t,l-1,r,i),f++}return o(t),d}function je(e,t){try{return typeof global<`u`&&t===global?`[Global]`:typeof t==`number`&&!Number.isFinite(t)?`[${t}]`:typeof t==`function`?`[Function: ${ce(t)}]`:typeof t==`symbol`?`[${String(t)}]`:typeof t==`bigint`?`[BigInt: ${String(t)}]`:`[object ${Me(t)}]`}catch(e){return`**non-serializable** (${e})`}}function Me(e){let t=Object.getPrototypeOf(e);return t?.constructor?t.constructor.name:`null prototype`}function Ne(e){return~-encodeURI(e).split(/%..|./).length}function Pe(e){return Ne(JSON.stringify(e))}function Fe(){let e=new WeakSet;function t(t){return e.has(t)?!0:(e.add(t),!1)}function n(t){e.delete(t)}return[t,n]}function Ie(e,t=0){return typeof e!=`string`||t===0||e.length<=t?e:`${e.slice(0,t)}...`}function k(e,t,n=!1){return pe(e)?ve(t)?t.test(e):pe(t)?n?e===t:e.includes(t):typeof t==`function`&&t(e):!1}function Le(){let e=a;return e.crypto||e.msCrypto}var Re;function ze(){return we()*16}function A(e=Le()){try{if(e?.randomUUID)return E(()=>e.randomUUID()).replace(/-/g,``)}catch{}return Re||=`10000000100040008000100000000000`,Re.replace(/[018]/g,e=>(e^(ze()&15)>>e/4).toString(16))}function Be(e){return e.exception?.values?.[0]}function Ve(e,t,n){let r=e.exception=e.exception||{},i=r.values=r.values||[],a=i[0]=i[0]||{};a.value||=t||``,a.type||=n||`Error`}function j(e,t){let n=Be(e);n&&Ue(n,t)}function He(e,t){let n=e.exception?.values,r=n?.find(e=>e.mechanism?.exception_id===0)??n?.[0];r&&Ue(r,t)}function Ue(e,t){let n={type:`generic`,handled:!0},r=e.mechanism;e.mechanism={...n,...r,...t},t&&`data`in t&&(e.mechanism.data={...r?.data,...t.data})}function We(e){if(Ge(e))return!0;try{be(e,`__sentry_captured__`,!0)}catch{}return!1}function Ge(e){try{return e.__sentry_captured__}catch{}}var Ke=1e3,qe=1e3,Je=100;function M(){return D()/Ke}var N=[];function Ye(){let{performance:e}=a;if(!e?.now||!e.timeOrigin)return e?.now&&(N=[{from:0,origin:D()-E(()=>e.now())}]),M;let t=e.timeOrigin;N=[{from:0,origin:t}];let n=!0,r=0;return()=>E(()=>{let i=e.now(),a=Date.now();return Math.abs(t+i-a)>qe&&(t=a-i,n?N=[{from:0,origin:t}]:(N.push({from:r,origin:t}),N.length>Je&&N.splice(1,1))),n=!1,r=i,(t+i)/Ke})}var Xe;function Ze(){return(Xe??=Ye())()}function Qe(e,t={}){if(t.user&&(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),!e.did&&!t.did&&(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||Ze(),t.abnormal_mechanism&&(e.abnormal_mechanism=t.abnormal_mechanism),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=t.sid.length===32?t.sid:A()),t.init!==void 0&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),typeof t.started==`number`&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if(typeof t.duration==`number`)e.duration=t.duration;else{let t=e.timestamp-e.started;e.duration=t>=0?t:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),typeof t.errors==`number`&&(e.errors=t.errors),t.status&&(e.status=t.status)}function P(e,t,n=2){if(!t||typeof t!=`object`||n<=0)return t;if(e&&Object.keys(t).length===0)return e;let r={...e};for(let e in t)Object.prototype.hasOwnProperty.call(t,e)&&(r[e]=P(r[e],t[e],n-1));return r}function $e(){return A()}function et(){return A().substring(16)}var tt=100,F=class e{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._attributes={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},be(this,`refs`,{}),this._propagationContext={traceId:$e(),sampleRand:we()}}clone(){let t=new e;return t._breadcrumbs=[...this._breadcrumbs],t._tags={...this._tags},t._attributes={...this._attributes},t._extra={...this._extra},t._contexts={...this._contexts},this._contexts.flags&&(t._contexts.flags={values:[...this._contexts.flags.values]}),t._user=this._user,t._level=this._level,t._session=this._session,t._transactionName=this._transactionName,t._fingerprint=this._fingerprint,t._eventProcessors=[...this._eventProcessors],t._attachments=[...this._attachments],t._sdkProcessingMetadata={...this._sdkProcessingMetadata},t._propagationContext={...this._propagationContext},t._client=this._client,t._lastEventId=this._lastEventId,t._conversationId=this._conversationId,t.refs={...this.refs},t}setClient(e){this._client=e}setLastEventId(e){this._lastEventId=e}getClient(){return this._client}lastEventId(){return this._lastEventId}addScopeListener(e){this._scopeListeners.push(e)}addEventProcessor(e){return this._eventProcessors.push(e),this}setUser(e){return this._user=e||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this._session&&Qe(this._session,{user:e}),this._notifyScopeListeners(),this}getUser(){return this._user}setConversationId(e){return this._conversationId=e||void 0,this._notifyScopeListeners(),this}setTags(e){return this._tags={...this._tags,...e},this._notifyScopeListeners(),this}setTag(e,t){return this.setTags({[e]:t})}setAttributes(e){return this._attributes={...this._attributes,...e},this._notifyScopeListeners(),this}setAttribute(e,t){return this.setAttributes({[e]:t})}removeAttribute(e){return e in this._attributes&&(delete this._attributes[e],this._notifyScopeListeners()),this}setExtras(e){return this._extra={...this._extra,...e},this._notifyScopeListeners(),this}setExtra(e,t){return this._extra={...this._extra,[e]:t},this._notifyScopeListeners(),this}setFingerprint(e){return this._fingerprint=e,this._notifyScopeListeners(),this}setLevel(e){return this._level=e,this._notifyScopeListeners(),this}setTransactionName(e){return this._transactionName=e,this._notifyScopeListeners(),this}setContext(e,t){return t===null?delete this._contexts[e]:this._contexts[e]=t,this._notifyScopeListeners(),this}setSession(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(t){if(!t)return this;let n=typeof t==`function`?t(this):t,{tags:r,attributes:i,extra:a,user:o,contexts:s,level:c,fingerprint:l=[],propagationContext:u,conversationId:d}=(n instanceof e?n.getScopeData():ge(n)?t:void 0)||{};return this._tags={...this._tags,...r},this._attributes={...this._attributes,...i},this._extra={...this._extra,...a},this._contexts={...this._contexts,...s},o&&Object.keys(o).length&&(this._user=o),c&&(this._level=c),l.length&&(this._fingerprint=l),u&&(this._propagationContext=u),d&&(this._conversationId=d),this}addBreadcrumb(e,t){let n=typeof t==`number`?t:tt;if(n<=0)return this;let r={timestamp:M(),...e,message:e.message?Ie(e.message,2048):e.message};return this._breadcrumbs.push(r),this._breadcrumbs.length>n&&(this._breadcrumbs=this._breadcrumbs.slice(-n)),this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(e){return this._attachments.push(e),this}clearAttachments(){return this._attachments=[],this}getScopeData(){return{breadcrumbs:this._breadcrumbs,attachments:this._attachments,contexts:this._contexts,tags:this._tags,attributes:this._attributes,extra:this._extra,user:this._user,level:this._level,fingerprint:this._fingerprint||[],eventProcessors:this._eventProcessors,propagationContext:this._propagationContext,sdkProcessingMetadata:this._sdkProcessingMetadata,transactionName:this._transactionName,conversationId:this._conversationId}}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata=P(this._sdkProcessingMetadata,e,2),this}setPropagationContext(e){return this._propagationContext=e,this}getPropagationContext(){return this._propagationContext}captureException(e,t){let n=t?.event_id||A();if(!this._client)return i&&v.warn(`No client configured on scope - will not capture exception!`),n;let r=Error(`Sentry syntheticException`);return this._client.captureException(e,{originalException:e,syntheticException:r,...t,event_id:n},this),n}captureMessage(e,t,n){let r=n?.event_id||A();if(!this._client)return i&&v.warn(`No client configured on scope - will not capture message!`),r;let a=n?.syntheticException??Error(e);return this._client.captureMessage(e,t,{originalException:e,syntheticException:a,...n,event_id:r},this),r}captureEvent(e,t){let n=e.event_id||t?.event_id||A();return this._client?(this._client.captureEvent(e,{...t,event_id:n},this),n):(i&&v.warn(`No client configured on scope - will not capture event!`),n)}_notifyScopeListeners(){this._notifyingListeners||=(this._notifyingListeners=!0,this._scopeListeners.forEach(e=>{e(this)}),!1)}};function nt(){return l(`defaultCurrentScope`,()=>new F)}function rt(){return l(`defaultIsolationScope`,()=>new F)}var it=`__SENTRY_SUPPRESS_TRACING__`,at=e=>e instanceof Promise&&!e[ot],ot=Symbol(`chained PromiseLike`),st=(e,t,n)=>{let r=e.then(e=>(t(e),e),e=>{throw n(e),e});return at(r)&&at(e)?r:ct(e,r)},ct=(e,t)=>{if(!t)return e;let n=!1;for(let r in e){if(r in t)continue;n=!0;let i=e[r];typeof i==`function`?Object.defineProperty(t,r,{value:(...t)=>i.apply(e,t),enumerable:!0,configurable:!0,writable:!0}):t[r]=i}return n&&Object.assign(t,{[ot]:!0}),t},lt=class{constructor(e,t){let n;n=e||new F;let r;r=t||new F,this._stack=[{scope:n}],this._isolationScope=r}withScope(e){let t=this._pushScope(),n;try{n=e(t)}catch(e){throw this._popScope(),e}return w(n)?st(n,()=>this._popScope(),()=>this._popScope()):(this._popScope(),n)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){let e=this.getScope().clone();return this._stack.push({client:this.getClient(),scope:e}),e}_popScope(){return this._stack.length<=1?!1:!!this._stack.pop()}};function I(){let e=c(s());return e.stack=e.stack||new lt(nt(),rt())}function ut(e){return I().withScope(e)}function dt(e,t){let n=I();return n.withScope(()=>(n.getStackTop().scope=e,t(e)))}function ft(e){return I().withScope(()=>e(I().getIsolationScope()))}function pt(){return{suppressTracing:mt,withIsolationScope:ft,withScope:ut,withSetScope:dt,withSetIsolationScope:(e,t)=>ft(t),getCurrentScope:()=>I().getScope(),getIsolationScope:()=>I().getIsolationScope()}}function mt(e){return ut(t=>{t.setSDKProcessingMetadata({[it]:!0});let n=e();return t.setSDKProcessingMetadata({[it]:void 0}),n})}function L(e){let t=c(e);return t.acs?t.acs:pt()}function ht(e){return typeof e==`object`&&!!e&&!Array.isArray(e)&&Object.keys(e).includes(`value`)}function gt(e,t){let{value:n,unit:r}=ht(e)?e:{value:e,unit:void 0},i=vt(n),a=r&&typeof r==`string`?{unit:r}:{};if(i)return{...i,...a};if(!t||t===`skip-undefined`&&n===void 0)return;let o=``;try{o=JSON.stringify(n)??``}catch{}return{value:o,type:`string`,...a}}function _t(e,t=!1){let n={};for(let[r,i]of Object.entries(e??{})){let e=gt(i,t);e&&(n[r]=e)}return n}function vt(e){if(Array.isArray(e))return{value:e,type:`array`};let t=typeof e==`string`?`string`:typeof e==`boolean`?`boolean`:typeof e==`number`&&!Number.isNaN(e)?Number.isInteger(e)?`integer`:`double`:null;if(t)return{value:e,type:t}}function yt(){return c(s()).externalPropagationContextProvider?.()}function R(){return L(s()).getCurrentScope()}function bt(){return L(s()).getIsolationScope()}function xt(){return l(`globalScope`,()=>new F)}function z(){return R().getClient()}function St(e){let t=yt();if(t)return{trace_id:t.traceId,span_id:t.spanId};let{traceId:n,parentSpanId:r,propagationSpanId:i}=e.getPropagationContext(),a={trace_id:n,span_id:i||et()};return r&&(a.parent_span_id=r),a}var Ct=`sentry.exclusive_time`,wt=`sentry.op`,Tt=`sentry.origin`,Et=`sentry.profile_id`,Dt=`sentry.segment.name.source`,Ot=[`ok`,`deadline_exceeded`,`unauthenticated`,`permission_denied`,`not_found`,`resource_exhausted`,`invalid_argument`,`unimplemented`,`unavailable`,`internal_error`,`unknown_error`,`cancelled`,`already_exists`,`failed_precondition`,`aborted`,`out_of_range`,`data_loss`];function kt(e){return e!==`ok`&&Ot.includes(e)}function At(e){if(e){if(typeof e==`object`&&`deref`in e&&typeof e.deref==`function`)try{return e.deref()}catch{return}return e}}var jt=`_sentryScope`,Mt=`_sentryIsolationScope`;function B(e){let t=e;return{scope:t[jt],isolationScope:At(t[Mt])}}function Nt(e){let t=Pt(e);if(!t)return;let n=Object.entries(t).reduce((e,[t,n])=>{if(t.startsWith(`sentry-`)){let r=t.slice(7);e[r]=n}return e},{});if(Object.keys(n).length>0)return n}function Pt(e){if(e&&(pe(e)||Array.isArray(e)))return Array.isArray(e)?e.reduce((e,t)=>{let n=Ft(t);return Object.entries(n).forEach(([t,n])=>{e[t]=n}),e},{}):Ft(e)}function Ft(e){return e.split(`,`).map(e=>{let t=e.indexOf(`=`);return t===-1?[]:[e.slice(0,t),e.slice(t+1)].map(e=>{try{return decodeURIComponent(e.trim())}catch{return}})}).reduce((e,[t,n])=>(t&&n&&(e[t]=n),e),{})}var It=/^o(\d+)\./,Lt=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)((?:\[[:.%\w]+\]|[\w.-]+))(?::(\d+))?\/(.+)/;function Rt(e){return e===`http`||e===`https`}function V(e,t=!1){let{host:n,path:r,pass:i,port:a,projectId:o,protocol:s,publicKey:c}=e;return`${s}://${c}${t&&i?`:${i}`:``}@${n}${a?`:${a}`:``}/${r&&`${r}/`}${o}`}function zt(e){let t=Lt.exec(e);if(!t){f(()=>{console.error(`Invalid Sentry Dsn: ${e}`)});return}let[n,r,i=``,a=``,o=``,s=``]=t.slice(1),c=``,l=s,u=l.split(`/`);if(u.length>1&&(c=u.slice(0,-1).join(`/`),l=u.pop()),l){let e=l.match(/^\d+/);e&&(l=e[0])}return Bt({host:a,pass:i,path:c,projectId:l,port:o,protocol:n,publicKey:r})}function Bt(e){return{protocol:e.protocol,publicKey:e.publicKey||``,pass:e.pass||``,host:e.host,port:e.port||``,path:e.path||``,projectId:e.projectId}}function Vt(e){if(!i)return!0;let{port:t,projectId:n,protocol:r}=e;return[`protocol`,`publicKey`,`host`,`projectId`].find(t=>!e[t]&&(v.error(`Invalid Sentry Dsn: ${t} missing`),!0))?!1:n.match(/^\d+$/)?Rt(r)?t&&isNaN(parseInt(t,10))?(v.error(`Invalid Sentry Dsn: Invalid port ${t}`),!1):!0:(v.error(`Invalid Sentry Dsn: Invalid protocol ${r}`),!1):(v.error(`Invalid Sentry Dsn: Invalid projectId ${n}`),!1)}function Ht(e){return e.match(It)?.[1]}function Ut(e){let t=e.getOptions(),{host:n}=e.getDsn()||{},r;return t.orgId?r=String(t.orgId):n&&(r=Ht(n)),r}function Wt(e){let t=typeof e==`string`?zt(e):Bt(e);if(t&&Vt(t))return t}function Gt(e){if(typeof e==`boolean`)return Number(e);let t=typeof e==`string`?parseFloat(e):e;if(!(typeof t!=`number`||isNaN(t)||t<0||t>1))return t}var Kt=`span`;function qt(e){return At(e.refs[Kt])}function Jt(e){let{spanId:t,traceId:n,isRemote:r}=e.spanContext(),i=r?t:H(e).parent_span_id,a=B(e).scope;return{parent_span_id:i,span_id:r?a?.getPropagationContext().propagationSpanId||et():t,trace_id:n}}function Yt(e){if(e&&e.length>0)return e.map(({context:{spanId:e,traceId:t,traceFlags:n,...r},attributes:i})=>({span_id:e,trace_id:t,sampled:n===1,attributes:i,...r}))}function Xt(e){return typeof e==`number`?Zt(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?Zt(e.getTime()):Ze()}function Zt(e){return e>9999999999?e/1e3:e}function H(e){if(tn(e))return e.getStaticSpanJSON();let{spanId:t,traceId:n}=e.spanContext();if(en(e)){let{attributes:r,startTime:i,name:a,endTime:o,status:s,links:c}=e;return{span_id:t,trace_id:n,data:r,description:a,parent_span_id:Qt(e),start_timestamp:Xt(i),timestamp:Xt(o)||void 0,status:rn(s),op:r[wt],origin:r[Tt],links:Yt(c)}}return{span_id:t,trace_id:n,start_timestamp:0,status:`ok`,data:{}}}function Qt(e){return`parentSpanId`in e?e.parentSpanId:`parentSpanContext`in e?e.parentSpanContext?.spanId:void 0}function $t(e){return{...e,end_timestamp:e.end_timestamp??e.start_timestamp,attributes:_t(e.attributes),links:e.links?.map(e=>({...e,attributes:_t(e.attributes)}))}}function en(e){let t=e;return!!t.attributes&&!!t.startTime&&!!t.name&&!!t.endTime&&!!t.status}function tn(e){return typeof e.getSpanJSON==`function`}function nn(e){let{traceFlags:t}=e.spanContext();return t===1}function rn(e){return!e||e.code===0||e.code===1?`ok`:e.message&&kt(e.message)?e.message:`internal_error`}var an=`_sentryRootSpan`,on=sn;function sn(e){return e[an]||e}function cn(e){let t=L(s());return t.getActiveSpan?t.getActiveSpan(e):qt(e||R())}function ln(e){if(typeof __SENTRY_TRACING__==`boolean`&&!__SENTRY_TRACING__)return!1;let t=e||z()?.getOptions();return!!t&&(t.tracesSampleRate!=null||!!t.tracesSampler)}function un(e){v.log(`Ignoring span ${e.op} - ${e.description} because it matches \`ignoreSpans\`.`)}function dn(e,t){if(!t?.length)return!1;for(let n of t){if(mn(n)){if(e.description&&k(e.description,n))return i&&un(e),!0;continue}let t=!!n.attributes&&Object.keys(n.attributes).length>0;if(!n.name&&!n.op&&!t)continue;let r=!n.name||e.description&&k(e.description,n.name),a=!n.op||e.op&&k(e.op,n.op),o=!n.attributes||Object.entries(n.attributes).every(([t,n])=>fn(e.attributes?.[t],n));if(r&&a&&o)return i&&un(e),!0}return!1}function fn(e,t){return typeof e==`string`&&(typeof t==`string`||t instanceof RegExp)?k(e,t):Array.isArray(e)&&Array.isArray(t)?e.length===t.length&&e.every((e,n)=>e===t[n]):e===t}function pn(e,t){let n=t.parent_span_id,r=t.span_id;if(n)for(let t of e)t.parent_span_id===r&&(t.parent_span_id=n)}function mn(e){return typeof e==`string`||e instanceof RegExp}var hn=[];function gn(e,t){let n={};return t.forEach(t=>{t?.beforeSetup&&t.beforeSetup(e)}),t.forEach(t=>{t&&vn(e,t,n)}),n}function _n(e,t){for(let n of t)n?.afterAllSetup&&n.afterAllSetup(e)}function vn(e,t,n){if(n[t.name])i&&v.log(`Integration skipped because it was already installed: ${t.name}`);else{if(n[t.name]=t,!hn.includes(t.name)&&typeof t.setupOnce==`function`&&(t.setupOnce(),hn.push(t.name)),t.setup&&typeof t.setup==`function`&&t.setup(e),typeof t.preprocessEvent==`function`){let n=t.preprocessEvent.bind(t);e.on(`preprocessEvent`,(t,r)=>n(t,r,e))}if(typeof t.processEvent==`function`){let n=t.processEvent.bind(t),r=Object.assign((t,r)=>n(t,r,e),{id:t.name});e.addEventProcessor(r)}[`processSpan`,`processSegmentSpan`].forEach(n=>{let r=t[n];typeof r==`function`&&e.on(n,n=>r.call(t,n,e))}),i&&v.log(`Integration installed: ${t.name}`)}}function yn(e){return e}var bn=`production`,xn=Symbol.for(`sentry.nonRecordingSpan`);function Sn(e){return!!e&&e[xn]===!0}var Cn=`_frozenDsc`;function wn(e,t){let n=t.getOptions(),{publicKey:r}=t.getDsn()||{},i={environment:n.environment||`production`,release:n.release,public_key:r,trace_id:e,org_id:Ut(t)};return t.emit(`createDsc`,i),i}function Tn(e,t){if(yt())return;let n=t.getPropagationContext();return n.dsc||wn(n.traceId,e)}function En(e){let t=z();if(!t)return{};let n=on(e),r=H(n),i=r.data,a=n.spanContext().traceState,o=a?.get(`sentry.sample_rate`)??i[`sentry.sample_rate`]??i[`sentry.previous_trace_sample_rate`];function s(e){return(typeof o==`number`||typeof o==`string`)&&(e.sample_rate=`${o}`),e}let c=n[Cn];if(c)return s(c);let l=Sn(n),u=l&&n.dropReason===`ignored`;if(l&&(!ln(t.getOptions())||u)){let e=B(n).scope,r=e&&Tn(t,e);if(r){let e={...r};return u&&(e.sampled=`false`),s(e)}}let d=a?.get(`sentry.dsc`),f=d&&Nt(d);if(f)return s(f);let p=wn(e.spanContext().traceId,t),m=i[Dt],h=r.description;return m!==`url`&&h&&(p.transaction=h),ln()&&(p.sampled=String(nn(n)),p.sample_rand=a?.get(`sentry.sample_rand`)??B(n).scope?.getPropagationContext().sampleRand.toString()),s(p),t.emit(`createDsc`,p,n),p}function Dn(e,t){let{fingerprint:n,breadcrumbs:r,sdkProcessingMetadata:i}=t;An(e,t),Pn(e,n),jn(e,r),Mn(e,i)}function On(e,t){let{extra:n,tags:r,attributes:i,user:a,contexts:o,level:s,sdkProcessingMetadata:c,breadcrumbs:l,fingerprint:u,eventProcessors:d,attachments:f,propagationContext:p,transactionName:m}=t;U(e,`extra`,n),U(e,`tags`,r),U(e,`attributes`,i),U(e,`user`,a),U(e,`contexts`,o),e.sdkProcessingMetadata=P(e.sdkProcessingMetadata,c,2),s&&(e.level=s),m&&(e.transactionName=m),l.length&&(e.breadcrumbs=[...e.breadcrumbs,...l]),u.length&&(e.fingerprint=[...e.fingerprint,...u]),d.length&&(e.eventProcessors=[...e.eventProcessors,...d]),f.length&&(e.attachments=[...e.attachments,...f]),e.propagationContext={...e.propagationContext,...p}}function U(e,t,n){e[t]=P(e[t],n,1)}function kn(e,t){let n=xt().getScopeData();return e&&On(n,e.getScopeData()),t&&On(n,t.getScopeData()),n}function An(e,t){let{extra:n,tags:r,user:i,contexts:a,level:o,transactionName:s}=t;Object.keys(n).length&&(e.extra={...n,...e.extra}),Object.keys(r).length&&(e.tags={...r,...e.tags}),Object.keys(i).length&&(e.user={...i,...e.user}),Object.keys(a).length&&(e.contexts={...a,...e.contexts}),o&&(e.level=o),s&&e.type!==`transaction`&&(e.transaction=s)}function jn(e,t){let n=[...e.breadcrumbs||[],...t];e.breadcrumbs=n.length?n:void 0}function Mn(e,t){e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...t}}function Nn(e,t){e.contexts={trace:Jt(t),...e.contexts},e.sdkProcessingMetadata={dynamicSamplingContext:En(t),...e.sdkProcessingMetadata};let n=H(on(t)).description;n&&!e.transaction&&e.type===`transaction`&&(e.transaction=n)}function Pn(e,t){e.fingerprint=e.fingerprint?Array.isArray(e.fingerprint)?e.fingerprint:[e.fingerprint]:[],t&&(e.fingerprint=e.fingerprint.concat(t)),e.fingerprint.length||delete e.fingerprint}function W(e,t,n){let r;try{r=t()}catch(t){return Fn(e,t,n)}return w(r)?r.then(void 0,t=>Fn(e,t,n)):r}function Fn(e,t,n){return i&&v.error(e,t),n(t)}function In(e){return!!e&&typeof e==`function`&&`_static`in e&&!!e._static}function Ln(e,t){return W(i?"The `beforeSendSpan` callback threw an error, sending the span unmodified:":``,()=>t(e),()=>e)||e}function Rn(e){return $t({trace_id:e.trace_id,span_id:e.span_id,parent_span_id:e.parent_span_id,name:e.description||``,start_timestamp:e.start_timestamp,end_timestamp:e.timestamp,status:!e.status||e.status===`ok`||e.status===`cancelled`?`ok`:`error`,is_segment:!1,attributes:{...e.data},links:e.links})}function zn(e){return e.getOptions().traceLifecycle===`stream`}function Bn(e){return typeof e==`object`&&typeof e.unref==`function`&&e.unref(),e}function G(e,t=[]){return[e,t]}function Vn(e,t){let[n,r]=e;return[n,[...r,t]]}function Hn(e,t){let n=e[1];for(let e of n){let n=e[0].type;if(t(e,n))return!0}return!1}function Un(e,t){return Hn(e,(e,n)=>t.includes(n))}function Wn(e){let t=c(a);return t.encodePolyfill?t.encodePolyfill(e):new TextEncoder().encode(e)}function Gn(e){let[t,n]=e,r=JSON.stringify(t);function i(e){typeof r==`string`?r=typeof e==`string`?r+e:[Wn(r),e]:r.push(typeof e==`string`?Wn(e):e)}for(let e of n){let[t,n]=e;if(i(`
|
|
3
3
|
${JSON.stringify(t)}
|
|
4
|
-
`),typeof n==`string`||n instanceof Uint8Array)i(n);else{let e;try{e=JSON.stringify(n)}catch{e=JSON.stringify(O(n))}i(e)}}return typeof r==`string`?r:Kn(r)}function Kn(e){let t=e.reduce((e,t)=>e+t.length,0),n=new Uint8Array(t),r=0;for(let t of e)n.set(t,r),r+=t.length;return n}function qn(e){let t=typeof e.data==`string`?Wn(e.data):e.data;return[{type:`attachment`,length:t.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType},t]}var Jn={sessions:`session`,event:`error`,client_report:`internal`,user_report:`default`,profile_chunk:`profile`,replay_event:`replay`,replay_recording:`replay`,check_in:`monitor`,raw_security:`security`,log:`log_item`,metric:`trace_metric`};function Yn(e){return e in Jn}function Xn(e){return Yn(e)?Jn[e]:e}function Zn(e){if(!e?.sdk)return;let{name:t,version:n}=e.sdk;return{name:t,version:n}}function Qn(e,t,n,r){let i=e.sdkProcessingMetadata?.dynamicSamplingContext;return{event_id:e.event_id,sent_at:new Date(D()).toISOString(),...t&&{sdk:t},...!!n&&r&&{dsn:V(r)},...i&&{trace:i}}}function $n(e){return e===`replay_event`?`replay`:e||`error`}function er(){return typeof __SENTRY_BROWSER_BUNDLE__<`u`&&!!__SENTRY_BROWSER_BUNDLE__}function tr(){return`npm`}function nr(){return!er()&&Object.prototype.toString.call(typeof process<`u`?process:0)===`[object process]`}function rr(){return typeof window<`u`&&(!nr()||ir())}function ir(){return a.process?.type===`renderer`}function ar(e,t){let n=t.getDataCollectionOptions().userInfo?`auto`:`never`;return[{type:`span`,item_count:e.length,content_type:`application/vnd.sentry.items.span.v2+json`},{version:2,ingest_settings:rr()?{infer_ip:n,infer_user_agent:n}:void 0,items:e}]}var or=new WeakMap;function sr(e){return he(e)?void 0:e}function cr(e,t,n){let r=sr(t.originalException),i=r&&or.get(r);if(!i)return;let a=e.contexts?.trace;(a?.trace_id??(n&&St(n).trace_id))===i.trace_id&&(e.contexts={...e.contexts,trace:{...a,...i}})}function lr(e,t){if(!t)return e;let n=e.sdk||{};return e.sdk={...n,name:n.name||t.name,version:n.version||t.version,integrations:[...e.sdk?.integrations||[],...t.integrations||[]],packages:[...e.sdk?.packages||[],...t.packages||[]],settings:e.sdk?.settings||t.settings?{...e.sdk?.settings,...t.settings}:void 0},e}function ur(e,t,n,r){let i=Zn(n);return G({sent_at:new Date(D()).toISOString(),...i&&{sdk:i},...!!r&&t&&{dsn:V(t)}},[`aggregates`in e?[{type:`sessions`},e]:[{type:`session`},e.toJSON()]])}function dr(e,t,n,r){let i=Zn(n),a=e.type&&e.type!==`replay_event`?e.type:`event`;lr(e,n?.sdk);let o=Qn(e,i,r,t);return delete e.sdkProcessingMetadata,G(o,[[{type:a},e]])}var fr=0,pr=1,mr=2;function K(e){return new gr(t=>{t(e)})}function hr(e){return new gr((t,n)=>{n(e)})}var gr=class e{constructor(e){this._state=fr,this._handlers=[],this._runExecutor(e)}then(t,n){return new e((e,r)=>{this._handlers.push([!1,n=>{if(!t)e(n);else try{e(t(n))}catch(e){r(e)}},t=>{if(!n)r(t);else try{e(n(t))}catch(e){r(e)}}]),this._executeHandlers()})}catch(e){return this.then(e=>e,e)}finally(t){return new e((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)})})}_executeHandlers(){if(this._state===fr)return;let e=this._handlers.slice();this._handlers=[],e.forEach(e=>{e[0]||=(this._state===pr&&e[1](this._value),this._state===mr&&e[2](this._value),!0)})}_runExecutor(e){let t=(e,t)=>{this._state===fr&&(w(t)?t.then(n,r):(this._state=e,this._value=t,this._executeHandlers()))},n=e=>{t(pr,e)},r=e=>{t(mr,e)};try{e(n,r)}catch(e){r(e)}}};function _r(e,t,n,r=0,i){try{let a=vr(t,n,e,r,i);return w(a)?a:K(a)}catch(e){return hr(e)}}function vr(e,t,n,r,a){let o=n[r];if(!e||!o)return e;let s=`Event processor "${o.id||`?`}"`,c=!1,l=W(i?`${s} threw an error, dropping event:`:``,()=>o({...e},t),()=>(c=!0,null));return i&&l===null&&v.log(`${s} dropped event`),w(l)?l.then(e=>e?vr(e,t,n,r+1,a):(a?.(c?`callback_error`:`event_processor`),null)):l?vr(l,t,n,r+1,a):(a?.(c?`callback_error`:`event_processor`),null)}var q,yr,br,J;function xr(e){let t=a._sentryDebugIds,n=a._debugIds;if(!t&&!n)return{};let r=t?Object.keys(t):[],i=n?Object.keys(n):[];if(J&&r.length===yr&&i.length===br)return J;yr=r.length,br=i.length,J={},q||={};let o=(t,n)=>{for(let r of t){let t=n[r],i=q?.[r];if(i&&J&&t)J[i[0]]=t,q&&(q[r]=[i[0],t]);else if(t){let n=e(r);for(let e=n.length-1;e>=0;e--){let i=n[e]?.filename;if(i&&J&&q){J[i]=t,q[r]=[i,t];break}}}}};return t&&o(r,t),n&&o(i,n),J}function Sr(e){return e.data?.__sentry__===!0}function Cr(e){let t=[];e.message&&t.push(e.message);try{let n=e.exception.values[e.exception.values.length-1];n?.value&&(t.push(n.value),n.type&&t.push(`${n.type}: ${n.value}`))}catch{}return t}function wr(e,t,n,r,i,a){let{normalizeDepth:o=3,normalizeMaxBreadth:s=1e3}=e,c={...t,event_id:t.event_id||n.event_id||A(),timestamp:t.timestamp||M()},l=n.integrations||e.integrations.map(e=>e.name);Tr(c,e),Or(c,l),i&&i.emit(`applyFrameMetadata`,t),t.type===void 0&&Er(c,e.stackParser);let u=Ar(r,n.captureContext);n.mechanism&&He(c,n.mechanism);let d=i?i.getEventProcessors():[],f=kn(a,u),p=[...n.attachments||[],...f.attachments];p.length&&(n.attachments=p),Dn(c,f);let m=cn(u);m&&Nn(c,m),cr(c,n,u);let h=[...d,...f.eventProcessors],g=t.type===`transaction`,_=t.spans?.length||0;return(Sr(n)?K(c):_r(h,c,n,0,e=>{i&&(i.recordDroppedEvent(e,$n(t.type)),g&&i.recordDroppedEvent(e,`span`,1+_))})).then(e=>{if(!e)return null;if(g&&i){let t=_-(e.spans?.length||0);t>0&&i.recordDroppedEvent(`event_processor`,`span`,t)}return Dr(e),typeof o==`number`&&o>0?kr(e,o,s):e})}function Tr(e,t){let{environment:n,release:r,dist:i,maxValueLength:a}=t;e.environment=e.environment||n||`production`,!e.release&&r&&(e.release=r),!e.dist&&i&&(e.dist=i);let o=e.request;o?.url&&a&&(o.url=Ie(o.url,a)),a&&e.exception?.values?.forEach(e=>{e.value&&=Ie(e.value,a)})}function Er(e,t){let n=xr(t);e.exception?.values?.forEach(e=>{e.stacktrace?.frames?.forEach(e=>{e.filename&&(e.debug_id=n[e.filename])})})}function Dr(e){let t={};if(e.exception?.values?.forEach(e=>{e.stacktrace?.frames?.forEach(e=>{e.debug_id&&(e.abs_path?t[e.abs_path]=e.debug_id:e.filename&&(t[e.filename]=e.debug_id),delete e.debug_id)})}),Object.keys(t).length===0)return;e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[];let n=e.debug_meta.images;Object.entries(t).forEach(([e,t])=>{n.push({type:`sourcemap`,code_file:e,debug_id:t})})}function Or(e,t){t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[...e.sdk.integrations||[],...t])}function kr(e,t,n){if(!e)return null;let r={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map(e=>({...e,...e.data&&{data:O(e.data,t,n)}}))},...e.user&&{user:O(e.user,t,n)},...e.contexts&&{contexts:O(e.contexts,t,n)},...e.extra&&{extra:O(e.extra,t,n)}};return e.contexts?.trace&&r.contexts&&(r.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(r.contexts.trace.data=O(e.contexts.trace.data,t,n))),e.spans&&(r.spans=e.spans.map(e=>({...e,...e.data&&{data:O(e.data,t,n)}}))),e.contexts?.flags&&r.contexts&&(r.contexts.flags=O(e.contexts.flags,3,n)),r}function Ar(e,t){if(!t)return e;let n=e?e.clone():new F;return n.update(t),n}function jr(e){let t=e.protocol?`${e.protocol}:`:``,n=e.port?`:${e.port}`:``;return`${t}//${e.host}${n}${e.path?`/${e.path}`:``}/api/`}function Mr(e){return`${jr(e)}${e.projectId}/envelope/`}function Nr(e,t){let n={sentry_version:`7`};return e.publicKey&&(n.sentry_key=e.publicKey),t&&(n.sentry_client=`${t.name}/${t.version}`),new URLSearchParams(n).toString()}function Pr(e,t,n){return t||`${Mr(e)}?${Nr(e,n)}`}function Fr(e,t){let n=t?`auto`:`never`;return[{type:`log`,item_count:e.length,content_type:`application/vnd.sentry.items.log+json`},{version:2,...rr()&&{ingest_settings:{infer_ip:n,infer_user_agent:n}},items:e}]}function Ir(e,t,n,r,i){let a={};return t?.sdk&&(a.sdk={name:t.sdk.name,version:t.sdk.version}),n&&r&&(a.dsn=V(r)),G(a,[Fr(e,i)])}function Lr(e,t){let n=t??Rr(e)??[];if(n.length===0)return;let r=e.getOptions(),i=Ir(n,r._metadata,r.tunnel,e.getDsn(),e.getDataCollectionOptions().userInfo);zr().set(e,[]),e.emit(`flushLogs`),e.sendEnvelope(i)}function Rr(e){return zr().get(e)}function zr(){return l(`clientToLogBufferMap`,()=>new WeakMap)}function Br(e,t){let n=t?`auto`:`never`;return[{type:`trace_metric`,item_count:e.length,content_type:`application/vnd.sentry.items.trace-metric+json`},{version:2,...rr()&&{ingest_settings:{infer_ip:n,infer_user_agent:n}},items:e}]}function Vr(e,t,n,r,i){let a={};return t?.sdk&&(a.sdk={name:t.sdk.name,version:t.sdk.version}),n&&r&&(a.dsn=V(r)),G(a,[Br(e,i)])}function Hr(e,t){let n=t??Ur(e)??[];if(n.length===0)return;let r=e.getOptions(),i=Vr(n,r._metadata,r.tunnel,e.getDsn(),e.getDataCollectionOptions().userInfo);Wr().set(e,[]),e.emit(`flushMetrics`),e.sendEnvelope(i)}function Ur(e){return Wr().get(e)}function Wr(){return l(`clientToMetricBufferMap`,()=>new WeakMap)}function Gr(e,t){if(e.type!==`transaction`||!e.spans?.length||!e.sdkProcessingMetadata?.hasGenAiSpans||zn(t))return;let n=[],r=[];for(let t of e.spans)t.op?.startsWith(`gen_ai.`)?n.push(Rn(t)):r.push(t);if(n.length!==0)return e.spans=r,ar(n,t)}var Kr=Symbol.for(`SentryBufferFullError`);function qr(e=100){let t=new Set;function n(){return t.size<e}function r(e){t.delete(e)}function i(e){if(!n())return hr(Kr);let i=e();return t.add(i),i.then(()=>r(i),()=>r(i)),i}function a(e){if(!t.size)return K(!0);let n=Promise.allSettled(Array.from(t)).then(()=>!0);if(!e)return n;let r=[n,new Promise(t=>Bn(setTimeout(()=>t(!1),e)))];return Promise.race(r)}return{get $(){return Array.from(t)},add:i,drain:a}}var Jr=6e4;function Yr(e,t=D()){let n=parseInt(`${e}`,10);if(!isNaN(n))return n*1e3;let r=Date.parse(`${e}`);return isNaN(r)?Jr:r-t}function Xr(e,t){return e[t]||e.all||0}function Zr(e,t,n=D()){return Xr(e,t)>n}function Qr(e,{statusCode:t,headers:n},r=D()){let i={...e},a=n?.[`x-sentry-rate-limits`],o=n?.[`retry-after`];if(a)for(let e of a.trim().split(`,`)){let[t,n,,,a]=e.split(`:`,5),o=parseInt(t,10),s=(isNaN(o)?60:o)*1e3;if(!n)i.all=r+s;else for(let e of n.split(`;`))e===`metric_bucket`?(!a||a.split(`;`).includes(`custom`))&&(i[e]=r+s):i[e]=r+s}else o?i.all=r+Yr(o,r):t===429&&(i.all=r+6e4);return i}function $r(e,t,n=qr(e.bufferSize||64)){let r={},a=e=>n.drain(e);function o(t,[n,r],i){let a=Xn(i);i===`transaction`&&e.recordDroppedEvent(t,`span`,(r.spans?.length??0)+1),e.recordDroppedEvent(t,a,typeof n.item_count==`number`?n.item_count:1)}function s(e){let a=[];if(Hn(e,(e,t)=>{Zr(r,Xn(t))?o(`ratelimit_backoff`,e,t):a.push(e)}),a.length===0)return Promise.resolve({});let s=G(e[0],a),c=e=>{Un(s,[`client_report`])?i&&v.warn(`Dropping client report. Will not send outcomes (reason: ${e}).`):Hn(s,(t,n)=>{o(e,t,n)})};return n.add(()=>t({body:Gn(s)}).then(e=>e.statusCode===413?(i&&v.error(`Sentry responded with status code 413. Envelope was discarded due to exceeding size limits.`),c(`send_error`),e):(i&&e.statusCode!==void 0&&(e.statusCode<200||e.statusCode>=300)&&v.warn(`Sentry responded with status code ${e.statusCode} to sent event.`),r=Qr(r,e),e),e=>{throw c(`network_error`),i&&v.error(`Encountered error running transport request:`,e),e})).then(e=>e,e=>{if(e===Kr)return i&&v.error(`Skipped sending event because buffer is full.`),c(`queue_overflow`),Promise.resolve({});throw e})}return{send:s,flush:a}}function ei(e,t,n){let r=[{type:`client_report`},{timestamp:n||M(),discarded_events:e}];return G(t?{dsn:t}:{},[r])}function ti(e){let{trace_id:t,parent_span_id:n,span_id:r,status:i,origin:a,data:o,op:s}=e.contexts?.trace??{};return{data:o??{},description:e.transaction,op:s,parent_span_id:n,span_id:r??``,start_timestamp:e.start_timestamp??0,status:i??`ok`,timestamp:e.timestamp,trace_id:t??``,origin:a,profile_id:o?.[Et],exclusive_time:o?.[Ct],measurements:e.measurements,is_segment:!0}}function ni(e){return{type:`transaction`,timestamp:e.timestamp,start_timestamp:e.start_timestamp,transaction:e.description,contexts:{trace:{trace_id:e.trace_id,span_id:e.span_id,parent_span_id:e.parent_span_id,op:e.op,status:e.status,origin:e.origin,data:{...e.data,...e.profile_id&&{"sentry.profile_id":e.profile_id},...e.exclusive_time&&{"sentry.exclusive_time":e.exclusive_time}}}},measurements:e.measurements}}function ri(e){e.traceLifecycle===`stream`&&(e.beforeSendTransaction||e.ignoreTransactions?.length)&&f(()=>{console.warn("[Sentry] `beforeSendTransaction` and `ignoreTransactions` are ignored with `traceLifecycle: 'stream'` (enabled by default). Use `beforeSendSpan` and `ignoreSpans` instead, or set `traceLifecycle: 'static'`.")})}var Y={userInfo:!0,cookies:!0,httpHeaders:{request:!0,response:!0},httpBodies:[`incomingRequest`,`outgoingRequest`,`incomingResponse`,`outgoingResponse`],urlQueryParams:!0,graphQL:{document:!0,variables:!0},genAI:{inputs:!0,outputs:!0},mcp:{inputs:!0,outputs:!0},databaseQueryData:!0,queues:!0,stackFrameVariables:!0,frameContextLines:5};function ii(e){return typeof e==`boolean`||`allow`in e||`deny`in e}function ai(e){return e===void 0?{...Y.httpHeaders}:ii(e)?{request:e,response:e}:{request:e.request??Y.httpHeaders.request,response:e.response??Y.httpHeaders.response}}function oi(e){let t=e.dataCollection??{};return{userInfo:t.userInfo??Y.userInfo,cookies:t.cookies??Y.cookies,httpHeaders:ai(t.httpHeaders),httpBodies:t.httpBodies??Y.httpBodies,urlQueryParams:t.urlQueryParams??Y.urlQueryParams,graphQL:{document:t.graphQL?.document??Y.graphQL.document,variables:t.graphQL?.variables??Y.graphQL.variables},genAI:{inputs:t.genAI?.inputs??Y.genAI.inputs,outputs:t.genAI?.outputs??Y.genAI.outputs},mcp:{inputs:t.mcp?.inputs??Y.mcp.inputs,outputs:t.mcp?.outputs??Y.mcp.outputs},databaseQueryData:t.databaseQueryData??Y.databaseQueryData,queues:t.queues??Y.queues,stackFrameVariables:t.stackFrameVariables??Y.stackFrameVariables,frameContextLines:t.frameContextLines??Y.frameContextLines}}var si=`Not capturing exception because it's already been captured.`,ci=`Discarded session because of missing or non-string release`,li=Symbol.for(`SentryInternalError`),ui=Symbol.for(`SentryDoNotSendEventError`),di=5e3,fi=Symbol.for(`SentryClosedClient`);function pi(e){return{message:e,[li]:!0}}function mi(e){return{message:e,[ui]:!0}}function hi(e){return mi(`Discarding event because it's not included in the random sample (sampling rate = ${e})`)}function gi(e){return _e(e)&&li in e}function _i(e){return _e(e)&&ui in e}function vi(e,t,n,r,i){let a=0,o,s=!1;e.on(n,()=>{a=0,clearTimeout(o),s=!1}),e.on(t,t=>{if(a+=r(t),a>=8e5)i(e);else if(!s){let t=e.getOptions()._flushInterval??di;t>0&&(s=!0,o=Bn(setTimeout(()=>{i(e)},t)))}}),e.on(`flush`,()=>{i(e)})}var yi=class{constructor(e){this._options={attachStacktrace:!0,...e,traceLifecycle:e.traceLifecycle===`static`?`static`:`stream`},this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],this._promiseBuffer=qr(e.transportOptions?.bufferSize??64),this._dataCollection=oi(e),this._unhandledSessionStatus=`crashed`,e.dsn?this._dsn=Wt(e.dsn):i&&v.warn(`No DSN provided, client will not send events.`);let{beforeSendSpan:t,traceLifecycle:n}=this._options;if(i&&t&&In(t)!==(n===`static`)&&f(()=>{console.warn(`Ignoring \`beforeSendSpan\`: ${n===`static`?`wrap it with`:`remove`} \`Sentry.withStaticSpan\` to use it with \`traceLifecycle: "${n}"\`.`)}),this._dsn){let t=Pr(this._dsn,e.tunnel,e._metadata?e._metadata.sdk:void 0);this._transport=e.transport({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...e.transportOptions,url:t})}vi(this,`afterCaptureLog`,`flushLogs`,wi,Lr),vi(this,`afterCaptureMetric`,`flushMetrics`,Ci,Hr)}captureException(e,t,n){let r=A();if(We(e))return i&&v.log(si),r;let a={event_id:r,...t};return this._process(()=>this.eventFromException(e,a).then(e=>this._captureEvent(e,a,n)).then(e=>e),`error`),a.event_id}captureMessage(e,t,n,r){let i={event_id:A(),...n},a=me(e)?e:String(e),o=he(e),s=o?this.eventFromMessage(a,t,i):this.eventFromException(e,i);return this._process(()=>s.then(e=>this._captureEvent(e,i,r)),o?`unknown`:`error`),i.event_id}captureEvent(e,t,n){let r=A();if(t?.originalException&&We(t.originalException))return i&&v.log(si),r;let a={event_id:r,...t},o=e.sdkProcessingMetadata||{},s=o.capturedSpanScope,c=o.capturedSpanIsolationScope,l=$n(e.type);return this._process(()=>this._captureEvent(e,a,s||n,c),l),a.event_id}captureSession(e){this.sendSession(e),Qe(e,{init:!1})}getDsn(){return this._dsn}getOptions(){return this._options}getDataCollectionOptions(){return this._dataCollection}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}async flush(e){let t=this._transport;if(this.emit(`flush`),!t)return!0;let n=await this._isClientDoneProcessing(e),r=await t.flush(e);return n&&r}async close(e){Object.defineProperty(this,fi,{value:!0});let t=await this.flush(e);return this.getOptions().enabled=!1,this.emit(`close`),t}getEventProcessors(){return this._eventProcessors}addEventProcessor(e){this._eventProcessors.push(e)}init(){(this._isEnabled()||this._options.integrations.some(({name:e})=>e.startsWith(`Spotlight`)))&&(this._setupIntegrations(),ri(this._options))}getIntegrationByName(e){return this._integrations[e]}getIntegrationNames(){return Object.keys(this._integrations)}addIntegration(e){let t=this._integrations[e.name];!t&&e.beforeSetup&&e.beforeSetup(this),vn(this,e,this._integrations),t||_n(this,[e])}sendEvent(e,t={}){this.emit(`beforeSendEvent`,e,t);let n=Gr(e,this),r=dr(e,this._dsn,this._options._metadata,this._options.tunnel);if(!Sr(t))for(let e of t.attachments||[])r=Vn(r,qn(e));n&&(r=Vn(r,n)),this.sendEnvelope(r).then(t=>this.emit(`afterSendEvent`,e,t))}sendSession(e){let{release:t,environment:n=bn}=this._options;if(`aggregates`in e){let r=e.attrs||{};if(!r.release&&!t){i&&v.warn(ci);return}r.release=r.release||t,r.environment=r.environment||n,e.attrs=r}else{if(!e.release&&!t){i&&v.warn(ci);return}e.release=e.release||t,e.environment=e.environment||n}this.emit(`beforeSendSession`,e);let r=ur(e,this._dsn,this._options._metadata,this._options.tunnel);this.sendEnvelope(r)}recordDroppedEvent(e,t,n=1){if(this._options.sendClientReports){let r=`${e}:${t}`;i&&v.log(`Recording outcome: "${r}"${n>1?` (${n} times)`:``}`),this._outcomes[r]=(this._outcomes[r]||0)+n}}on(e,t){let n=this._hooks[e]=this._hooks[e]||new Set,r=(...e)=>t(...e);return n.add(r),()=>{n.delete(r)}}emit(e,...t){let n=this._hooks[e];n&&n.forEach(e=>e(...t))}async sendEnvelope(e){if(this.emit(`beforeEnvelope`,e),this._isEnabled()&&this._transport)try{let t=await this._transport.send(e);return this.emit(`afterEnvelope`,e),t}catch(e){return i&&v.error(`Error while sending envelope:`,e),{}}return i&&v.error(`Transport disabled`),{}}registerCleanup(e){}dispose(){}_setupIntegrations(){let{integrations:e}=this._options;this._integrations=gn(this,e),_n(this,e)}_updateSessionFromEvent(e,t){let n=t.level===`fatal`,r=!1,i=t.exception?.values;if(i){r=!0,n=!1;for(let e of i)if(e.mechanism?.handled===!1){n=!0;break}}let a=e.status===`ok`;(a&&e.errors===0||a&&n)&&(Qe(e,{...n&&{status:this._unhandledSessionStatus},errors:e.errors||Number(r||n)}),this.captureSession(e))}async _isClientDoneProcessing(e){let t=0;for(;!e||t<e;){if(await new Promise(e=>setTimeout(e,1)),!this._numProcessing)return!0;t++}return!1}_isEnabled(){return this.getOptions().enabled!==!1&&this._transport!==void 0}_prepareEvent(e,t,n,r){let i=this.getOptions(),a=this.getIntegrationNames();return!t.integrations&&a.length&&(t.integrations=a),this.emit(`preprocessEvent`,e,t),e.type||r.setLastEventId(e.event_id||t.event_id),wr(i,e,t,n,this,r).then(e=>(e===null||(this.emit(`postprocessEvent`,e,t),e.contexts={trace:{...e.contexts?.trace,...St(n)},...e.contexts},e.sdkProcessingMetadata={dynamicSamplingContext:Tn(this,n),...e.sdkProcessingMetadata}),e))}_captureEvent(e,t={},n=R(),r=bt()){return i&&xi(e)&&v.log(`Captured error event \`${Cr(e)[0]||`<unknown>`}\``),this._processEvent(e,t,n,r).then(e=>e.event_id,e=>{i&&(_i(e)?v.log(e.message):gi(e)?v.warn(e.message):v.warn(e))})}_processEvent(e,t,n,r){let i=this.getOptions(),{sampleRate:a}=i,o=Si(e),s=xi(e),c=`before send for type \`${e.type||`error`}\``,l=`before_send`,u=0,d=a===void 0?void 0:Gt(a),f=s&&typeof d==`number`&&we()>d,p=$n(e.type),m=0,h=n.getSession()||r.getSession();return f&&h?.status!==`ok`?(this.recordDroppedEvent(`sample_rate`,`error`),hr(hi(a))):this._prepareEvent(e,t,n,r).then(e=>{if(e===null)throw mi("An event processor returned `null`, will not send event.");return m=e.spans?.length||0,Sr(t)?e:bi(i,e,t,e=>{l=e},e=>{u=e})}).then(n=>{if(u&&this.recordDroppedEvent(`ignored`,`span`,u),!ge(n)||n===null)throw this.recordDroppedEvent(l,p),o&&this.recordDroppedEvent(l,`span`,1+m-u),n===null?mi(`${l===`ignored`?"Transaction matched `ignoreSpans`":`${c} ${l===`callback_error`?`threw an error`:"returned `null`"}`}, will not send event.`):pi(`${c} must return \`null\` or a valid event.`);if(s&&h&&this._updateSessionFromEvent(h,n),f)throw this.recordDroppedEvent(`sample_rate`,`error`),hi(a);if(o){let e=m-u-(n.spans?.length||0);e>0&&this.recordDroppedEvent(`before_send`,`span`,e)}let r=n.transaction_info;return o&&r&&n.transaction!==e.transaction&&(n.transaction_info={...r,source:`custom`}),this.sendEvent(n,t),n}).then(null,e=>{throw _i(e)||gi(e)?e:(this.captureException(e,{mechanism:{handled:!1,type:`internal`},data:{__sentry__:!0},originalException:e}),pi(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.
|
|
5
|
-
Reason: ${e}`))})}_process(e,t){this._numProcessing++,this._promiseBuffer.add(e).then(e=>(this._numProcessing--,e),e=>(this._numProcessing--,e===Kr&&this.recordDroppedEvent(`queue_overflow`,t),e))}_clearOutcomes(){let e=this._outcomes;return this._outcomes={},Object.entries(e).map(([e,t])=>{let[n,r]=e.split(`:`);return{reason:n,category:r,quantity:t}})}_flushOutcomes(){i&&v.log(`Flushing outcomes...`);let e=this._clearOutcomes();if(e.length===0){i&&v.log(`No outcomes to send`);return}if(!this._dsn){i&&v.log(`No dsn provided, will not send outcomes`);return}i&&v.log(`Sending outcomes:`,e);let t=ei(e,this._options.tunnel&&V(this._dsn));this.sendEnvelope(t)}};function bi(e,t,n,r,a){let{beforeSend:o,ignoreSpans:s,beforeSendTransaction:c}=e,l=In(e.beforeSendSpan)&&e.beforeSendSpan,u=t;if(xi(u)&&o){let e=u;return W(i?"The `beforeSend` callback threw an error, dropping the event:":``,()=>o(e,n),()=>(r(`callback_error`),null))}if(Si(u)){if(l||s){let e=ti(u);if(s?.length&&dn({description:e.description,op:e.op,attributes:e.data},s))return r(`ignored`),null;if(l&&(u=P(t,ni(Ln(e,l)))),u.spans){let e=[],t=u.spans;for(let n of t)s?.length&&dn({description:n.description,op:n.op,attributes:n.data},s)?pn(t,n):l?e.push(Ln(n,l)):e.push(n);a(t.length-e.length),u.spans=e}}if(c)return W(i?"The `beforeSendTransaction` callback threw an error, dropping the event:":``,()=>c(u,n),()=>(r(`callback_error`),null))}return u}function xi(e){return e.type===void 0}function Si(e){return e.type===`transaction`}function Ci(e){let t=0;return e.name&&(t+=e.name.length*2),t+=8,t+Ti(e.attributes)}function wi(e){let t=0;return e.message&&(t+=e.message.length*2),t+Ti(e.attributes)}function Ti(e){if(!e)return 0;let t=0;return Object.values(e).forEach(e=>{Array.isArray(e)?t+=e.length*Ei(e[0]):he(e)?t+=Ei(e):t+=100}),t}function Ei(e){return typeof e==`string`?e.length*2:typeof e==`number`?8:typeof e==`boolean`?4:0}function Di(e){`aggregates`in e?e.attrs?.ip_address===void 0&&(e.attrs={...e.attrs,ip_address:`{{auto}}`}):e.ipAddress===void 0&&(e.ipAddress=`{{auto}}`)}function Oi(e,t,n=[t],r=`npm`){let i=(e._metadata=e._metadata||{}).sdk=e._metadata.sdk||{};i.name||(i.name=`sentry.javascript.${t}`,i.packages=n.map(e=>({name:`${r}:@sentry/${e}`,version:o})),i.version=o)}function ki(e,t,n,r,i,a){if(!i.exception?.values||!a||!x(a.originalException))return;let o=i.exception.values.length>0?i.exception.values[i.exception.values.length-1]:void 0;o&&(i.exception.values=X(e,t,r,a.originalException,n,i.exception.values,o,0))}function X(e,t,n,r,i,a,o,s){if(a.length>=n+1)return a;let c=[...a];if(x(r[i])){Z(o,s,r);let a=e(t,r[i]),l=c.length;Mi(a,i,l,s),c=X(e,t,n,r[i],i,[a,...c],a,l)}return Ai(r)&&r.errors.forEach((a,l)=>{if(x(a)){Z(o,s,r);let u=e(t,a),d=c.length;Mi(u,`errors[${l}]`,d,s),c=X(e,t,n,a,i,[u,...c],u,d)}}),ji(r)&&[`error`,`suppressed`].forEach(a=>{let l=r[a];if(x(l)){Z(o,s,r);let u=e(t,l),d=c.length;Mi(u,a,d,s),c=X(e,t,n,l,i,[u,...c],u,d)}}),c}function Ai(e){return Array.isArray(e.errors)}function ji(e){return`error`in e&&`suppressed`in e}function Z(e,t,n){e.mechanism={handled:!0,type:`auto.core.linked_errors`,...Ai(n)&&{is_exception_group:!0},...e.mechanism,exception_id:t}}function Mi(e,t,n,r){e.mechanism={handled:!0,...e.mechanism,type:`chained`,source:t,exception_id:n,parent_id:r}}function Ni(e){return x(e)&&`__sentry_fetch_url_host__`in e&&typeof e.__sentry_fetch_url_host__==`string`}function Pi(e){return Ni(e)?`${e.message} (${e.__sentry_fetch_url_host__})`:e.message}var Fi=typeof __SENTRY_DEBUG__>`u`||__SENTRY_DEBUG__,Ii=new WeakMap;function Li(e,t=z()){t?(Fi&&Ri(t)&&v.warn(`A route provider is already registered for this client and will be replaced. Routes only the previous provider knows about will no longer resolve.`),Ii.set(t,e)):Fi&&v.warn(`Cannot set a route provider without a client.`)}function Ri(e=z()){return e&&Ii.get(e)}var Q=a;function zi(e,t){let n=$(e,t),r={type:Ki(t),value:qi(t)};return n.length&&(r.stacktrace={frames:n}),r.type===void 0&&r.value===``&&(r.value=`Unrecoverable error caught`),r}function Bi(e,t,n,r){let i=z()?.getOptions().normalizeDepth,a=ea(t),o={__serialized__:ke(t,i)};if(a)return{exception:{values:[zi(e,a)]},extra:o};let s={exception:{values:[{type:C(t)?t.constructor.name:r?`UnhandledRejection`:`Error`,value:Qi(t,{isUnhandledRejection:r})}]},extra:o};if(n){let t=$(e,n);t.length&&(s.exception.values[0].stacktrace={frames:t})}return s}function Vi(e,t){return{exception:{values:[zi(e,t)]}}}function $(e,t){let n=t.stacktrace||t.stack||``,r=Ui(t),i=Wi(t);try{return e(n,r,i)}catch{}return[]}var Hi=/Minified React error #\d+;/i;function Ui(e){return e&&Hi.test(e.message)?1:0}function Wi(e){return typeof e.framesToPop==`number`?e.framesToPop:0}function Gi(e){return typeof WebAssembly<`u`&&WebAssembly.Exception!==void 0&&e instanceof WebAssembly.Exception}function Ki(e){let t=e?.name;return!t&&Gi(e)?e.message&&Array.isArray(e.message)&&e.message.length==2?e.message[0]:`WebAssembly.Exception`:t}function qi(e){let t=e?.message;return Gi(e)?Array.isArray(e.message)&&e.message.length==2?e.message[1]:`wasm exception`:t?t.error&&typeof t.error.message==`string`?Pi(t.error):Pi(e):`No error message`}function Ji(e,t,n,r){let i=Xi(e,t,n?.syntheticException||void 0,r);return j(i),i.level=`error`,n?.event_id&&(i.event_id=n.event_id),K(i)}function Yi(e,t,n=`info`,r,i){let a=Zi(e,t,r?.syntheticException||void 0,i);return a.level=n,r?.event_id&&(a.event_id=r.event_id),K(a)}function Xi(e,t,n,r,i){let a;if(ue(t)&&t.error)return Vi(e,t.error);if(de(t)||fe(t)){let i=t;if(`stack`in t){a=Vi(e,t);let i=a.exception?.values?.[0];if(r&&n&&i&&!i.stacktrace){let t=$(e,n);t.length&&(i.stacktrace={frames:t},j(a,{synthetic:!0}))}}else{let t=i.name||(de(i)?`DOMError`:`DOMException`),o=i.message?`${t}: ${i.message}`:t;a=Zi(e,o,n,r),Ve(a,o)}return a}if(x(t))return Vi(e,t);if(ge(t)||C(t))return a=Bi(e,t,n,i),j(a,{synthetic:!0}),a;let o=String(t);return a=Zi(e,o,n,r),Ve(a,o,void 0),j(a,{synthetic:!0}),a}function Zi(e,t,n,r){let i={};if(r&&n){let r=$(e,n);r.length&&(i.exception={values:[{value:t,stacktrace:{frames:r}}]}),j(i,{synthetic:!0})}if(me(t)){let{__sentry_template_string__:e,__sentry_template_values__:n}=t;return i.logentry={message:e,params:n},i}return i.message=t,i}function Qi(e,{isUnhandledRejection:t}){let n=Ce(e),r=t?`promise rejection`:`exception`;return ue(e)?`Event \`ErrorEvent\` captured as ${r} with message \`${e.message}\``:C(e)?`Event \`${$i(e)}\` (type=${e.type}) captured as ${r}`:`Object captured as ${r} with keys: ${n}`}function $i(e){try{let t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch{}}function ea(e){return Object.values(e).find(x)}var ta=class extends yi{constructor(e){let t=na(e);Oi(t,`browser`,[`browser`],Q.SENTRY_SDK_SOURCE||tr()),super(t),t.routeProvider&&Li(t.routeProvider,this),this._unhandledSessionStatus=`unhandled`;let{userInfo:n}=this.getDataCollectionOptions();t._metadata?.sdk&&(t._metadata.sdk.settings={infer_ip:n?`auto`:`never`,...t._metadata.sdk.settings});let{sendClientReports:r}=this._options,i=()=>{Ze()},a=[[Q.document,`visibilitychange`,()=>{i(),Q.document.visibilityState===`hidden`&&(r&&this._flushOutcomes(),queueMicrotask(()=>{this.flush()}))}],[Q.document,`freeze`,i],[Q.document,`resume`,i],[Q,`pagehide`,i],[Q,`pageshow`,i]];a.forEach(([e,t,n])=>e?.addEventListener?.(t,n)),this.on(`close`,()=>a.forEach(([e,t,n])=>e?.removeEventListener?.(t,n))),n&&this.on(`beforeSendSession`,Di)}eventFromException(e,t){return Ji(this._options.stackParser,e,t,this._options.attachStacktrace)}eventFromMessage(e,t=`info`,n){return Yi(this._options.stackParser,e,t,n,this._options.attachStacktrace)}_prepareEvent(e,t,n,r){return e.platform=e.platform||`javascript`,super._prepareEvent(e,t,n,r)}};function na(e){return{release:typeof __SENTRY_RELEASE__==`string`?__SENTRY_RELEASE__:Q.SENTRY_RELEASE?.id,sendClientReports:!0,parentSpanIsAlwaysRootSpan:!0,...e}}var ra=30,ia=50;function aa(e,t,n,r){let i={filename:e,function:t===`<anonymous>`?`?`:t,in_app:!0};return n!==void 0&&(i.lineno=n),r!==void 0&&(i.colno=r),i}var oa=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,sa=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,ca=/\((\S*)(?::(\d+))(?::(\d+))\)/,la=/at (.+?) ?\(data:(.+?),/,ua=[ra,e=>{let t=e.match(la);if(t)return{filename:`<data:${t[2]}>`,function:t[1]};let n=oa.exec(e);if(n){let[,e,t,r]=n;return aa(e,`?`,+t,+r)}let r=sa.exec(e);if(r){if(r[2]?.indexOf(`eval`)===0){let e=ca.exec(r[2]);e&&(r[2]=e[1],r[3]=e[2],r[4]=e[3])}let[e,t]=ma(r[1]||`?`,r[2]);return aa(t,e,r[3]?+r[3]:void 0,r[4]?+r[4]:void 0)}}],da=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,fa=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,pa=oe(ua,[ia,e=>{let t=da.exec(e);if(t){if(t[3]&&t[3].indexOf(` > eval`)>-1){let e=fa.exec(t[3]);e&&(t[1]=t[1]||`eval`,t[3]=e[1],t[4]=e[2],t[5]=``)}let e=t[3],n=t[1]||`?`;return[n,e]=ma(n,e),aa(e,n,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}}]),ma=(e,t)=>{let n=e.indexOf(`safari-extension`)!==-1,r=e.indexOf(`safari-web-extension`)!==-1;return n||r?[e.indexOf(`@`)===-1?`?`:e.split(`@`)[0],n?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]},ha=`cause`,ga=5,_a=`LinkedErrors`,va=yn(((e={})=>{let t=e.limit||ga,n=e.key||ha;return{name:_a,preprocessEvent(e,r,i){ki(zi,i.getOptions().stackParser,n,t,e,r)}}}));function ya(i){let a=new ta({...i,dist:i.buildId,integrations:[],stackParser:pa,transport:e=>n($r,e),beforeSend:t,sendClientReports:!1,dataCollection:{...r,httpBodies:[]},beforeSendLog:()=>null,beforeSendMetric:()=>null});return a.init(),new e(a,`browser`,i.buildId,{Scope:F,linkedErrorsIntegration:va})}export{ya as createBrowserReporter};
|
|
6
|
-
//# debugId=
|
|
4
|
+
`),typeof n==`string`||n instanceof Uint8Array)i(n);else{let e;try{e=JSON.stringify(n)}catch{e=JSON.stringify(O(n))}i(e)}}return typeof r==`string`?r:Kn(r)}function Kn(e){let t=e.reduce((e,t)=>e+t.length,0),n=new Uint8Array(t),r=0;for(let t of e)n.set(t,r),r+=t.length;return n}function qn(e){let t=typeof e.data==`string`?Wn(e.data):e.data;return[{type:`attachment`,length:t.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType},t]}var Jn={sessions:`session`,event:`error`,client_report:`internal`,user_report:`default`,profile_chunk:`profile`,replay_event:`replay`,replay_recording:`replay`,check_in:`monitor`,raw_security:`security`,log:`log_item`,metric:`trace_metric`};function Yn(e){return e in Jn}function Xn(e){return Yn(e)?Jn[e]:e}function Zn(e){if(!e?.sdk)return;let{name:t,version:n}=e.sdk;return{name:t,version:n}}function Qn(e,t,n,r){let i=e.sdkProcessingMetadata?.dynamicSamplingContext;return{event_id:e.event_id,sent_at:new Date(D()).toISOString(),...t&&{sdk:t},...!!n&&r&&{dsn:V(r)},...i&&{trace:i}}}function $n(e){return e===`replay_event`?`replay`:e||`error`}function er(){return typeof __SENTRY_BROWSER_BUNDLE__<`u`&&!!__SENTRY_BROWSER_BUNDLE__}function tr(){return`npm`}function nr(){return!er()&&Object.prototype.toString.call(typeof process<`u`?process:0)===`[object process]`}function rr(){return typeof window<`u`&&(!nr()||ir())}function ir(){return a.process?.type===`renderer`}function ar(e,t){let n=t.getDataCollectionOptions().userInfo?`auto`:`never`;return[{type:`span`,item_count:e.length,content_type:`application/vnd.sentry.items.span.v2+json`},{version:2,ingest_settings:rr()?{infer_ip:n,infer_user_agent:n}:void 0,items:e}]}var or=new WeakMap;function sr(e){return he(e)?void 0:e}function cr(e,t,n){let r=sr(t.originalException),i=r&&or.get(r);if(!i)return;let a=e.contexts?.trace;(a?.trace_id??(n&&St(n).trace_id))===i.trace_id&&(e.contexts={...e.contexts,trace:{...a,...i}})}function lr(e,t){if(!t)return e;let n=e.sdk||{};return e.sdk={...n,name:n.name||t.name,version:n.version||t.version,integrations:[...e.sdk?.integrations||[],...t.integrations||[]],packages:[...e.sdk?.packages||[],...t.packages||[]],settings:e.sdk?.settings||t.settings?{...e.sdk?.settings,...t.settings}:void 0},e}function ur(e,t,n,r){let i=Zn(n);return G({sent_at:new Date(D()).toISOString(),...i&&{sdk:i},...!!r&&t&&{dsn:V(t)}},[`aggregates`in e?[{type:`sessions`},e]:[{type:`session`},e.toJSON()]])}function dr(e,t,n,r){let i=Zn(n),a=e.type&&e.type!==`replay_event`?e.type:`event`;lr(e,n?.sdk);let o=Qn(e,i,r,t);return delete e.sdkProcessingMetadata,G(o,[[{type:a},e]])}var fr=0,pr=1,mr=2;function K(e){return new gr(t=>{t(e)})}function hr(e){return new gr((t,n)=>{n(e)})}var gr=class e{constructor(e){this._state=fr,this._handlers=[],this._runExecutor(e)}then(t,n){return new e((e,r)=>{this._handlers.push([!1,n=>{if(!t)e(n);else try{e(t(n))}catch(e){r(e)}},t=>{if(!n)r(t);else try{e(n(t))}catch(e){r(e)}}]),this._executeHandlers()})}catch(e){return this.then(e=>e,e)}finally(t){return new e((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)})})}_executeHandlers(){if(this._state===fr)return;let e=this._handlers.slice();this._handlers=[],e.forEach(e=>{e[0]||=(this._state===pr&&e[1](this._value),this._state===mr&&e[2](this._value),!0)})}_runExecutor(e){let t=(e,t)=>{this._state===fr&&(w(t)?t.then(n,r):(this._state=e,this._value=t,this._executeHandlers()))},n=e=>{t(pr,e)},r=e=>{t(mr,e)};try{e(n,r)}catch(e){r(e)}}};function _r(e,t,n,r=0,i){try{let a=vr(t,n,e,r,i);return w(a)?a:K(a)}catch(e){return hr(e)}}function vr(e,t,n,r,a){let o=n[r];if(!e||!o)return e;let s=`Event processor "${o.id||`?`}"`,c=!1,l=W(i?`${s} threw an error, dropping event:`:``,()=>o({...e},t),()=>(c=!0,null));return i&&l===null&&v.log(`${s} dropped event`),w(l)?l.then(e=>e?vr(e,t,n,r+1,a):(a?.(c?`callback_error`:`event_processor`),null)):l?vr(l,t,n,r+1,a):(a?.(c?`callback_error`:`event_processor`),null)}var q,yr,br,J;function xr(e){let t=a._sentryDebugIds,n=a._debugIds;if(!t&&!n)return{};let r=t?Object.keys(t):[],i=n?Object.keys(n):[];if(J&&r.length===yr&&i.length===br)return J;yr=r.length,br=i.length,J={},q||={};let o=(t,n)=>{for(let r of t){let t=n[r],i=q?.[r];if(i&&J&&t)J[i[0]]=t,q&&(q[r]=[i[0],t]);else if(t){let n=e(r);for(let e=n.length-1;e>=0;e--){let i=n[e]?.filename;if(i&&J&&q){J[i]=t,q[r]=[i,t];break}}}}};return t&&o(r,t),n&&o(i,n),J}function Sr(e){return e.data?.__sentry__===!0}function Cr(e){let t=[];e.message&&t.push(e.message);try{let n=e.exception.values[e.exception.values.length-1];n?.value&&(t.push(n.value),n.type&&t.push(`${n.type}: ${n.value}`))}catch{}return t}function wr(e,t,n,r,i,a){let{normalizeDepth:o=3,normalizeMaxBreadth:s=1e3}=e,c={...t,event_id:t.event_id||n.event_id||A(),timestamp:t.timestamp||M()},l=n.integrations||e.integrations.map(e=>e.name);Tr(c,e),Or(c,l),i&&i.emit(`applyFrameMetadata`,t),t.type===void 0&&Er(c,e.stackParser);let u=Ar(r,n.captureContext);n.mechanism&&He(c,n.mechanism);let d=i?i.getEventProcessors():[],f=kn(a,u),p=[...n.attachments||[],...f.attachments];p.length&&(n.attachments=p),Dn(c,f);let m=cn(u);m&&Nn(c,m),cr(c,n,u);let h=[...d,...f.eventProcessors],g=t.type===`transaction`,_=t.spans?.length||0;return(Sr(n)?K(c):_r(h,c,n,0,e=>{i&&(i.recordDroppedEvent(e,$n(t.type)),g&&i.recordDroppedEvent(e,`span`,1+_))})).then(e=>{if(!e)return null;if(g&&i){let t=_-(e.spans?.length||0);t>0&&i.recordDroppedEvent(`event_processor`,`span`,t)}return Dr(e),typeof o==`number`&&o>0?kr(e,o,s):e})}function Tr(e,t){let{environment:n,release:r,dist:i,maxValueLength:a}=t;e.environment=e.environment||n||`production`,!e.release&&r&&(e.release=r),!e.dist&&i&&(e.dist=i);let o=e.request;o?.url&&a&&(o.url=Ie(o.url,a)),a&&e.exception?.values?.forEach(e=>{e.value&&=Ie(e.value,a)})}function Er(e,t){let n=xr(t);e.exception?.values?.forEach(e=>{e.stacktrace?.frames?.forEach(e=>{e.filename&&(e.debug_id=n[e.filename])})})}function Dr(e){let t={};if(e.exception?.values?.forEach(e=>{e.stacktrace?.frames?.forEach(e=>{e.debug_id&&(e.abs_path?t[e.abs_path]=e.debug_id:e.filename&&(t[e.filename]=e.debug_id),delete e.debug_id)})}),Object.keys(t).length===0)return;e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[];let n=e.debug_meta.images;Object.entries(t).forEach(([e,t])=>{n.push({type:`sourcemap`,code_file:e,debug_id:t})})}function Or(e,t){t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[...e.sdk.integrations||[],...t])}function kr(e,t,n){if(!e)return null;let r={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map(e=>({...e,...e.data&&{data:O(e.data,t,n)}}))},...e.user&&{user:O(e.user,t,n)},...e.contexts&&{contexts:O(e.contexts,t,n)},...e.extra&&{extra:O(e.extra,t,n)}};return e.contexts?.trace&&r.contexts&&(r.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(r.contexts.trace.data=O(e.contexts.trace.data,t,n))),e.spans&&(r.spans=e.spans.map(e=>({...e,...e.data&&{data:O(e.data,t,n)}}))),e.contexts?.flags&&r.contexts&&(r.contexts.flags=O(e.contexts.flags,3,n)),r}function Ar(e,t){if(!t)return e;let n=e?e.clone():new F;return n.update(t),n}function jr(e){let t=e.protocol?`${e.protocol}:`:``,n=e.port?`:${e.port}`:``;return`${t}//${e.host}${n}${e.path?`/${e.path}`:``}/api/`}function Mr(e){return`${jr(e)}${e.projectId}/envelope/`}function Nr(e,t){let n={sentry_version:`7`};return e.publicKey&&(n.sentry_key=e.publicKey),t&&(n.sentry_client=`${t.name}/${t.version}`),new URLSearchParams(n).toString()}function Pr(e,t,n){return t||`${Mr(e)}?${Nr(e,n)}`}function Fr(e,t){let n=t?`auto`:`never`;return[{type:`log`,item_count:e.length,content_type:`application/vnd.sentry.items.log+json`},{version:2,...rr()&&{ingest_settings:{infer_ip:n,infer_user_agent:n}},items:e}]}function Ir(e,t,n,r,i){let a={};return t?.sdk&&(a.sdk={name:t.sdk.name,version:t.sdk.version}),n&&r&&(a.dsn=V(r)),G(a,[Fr(e,i)])}function Lr(e,t){let n=t??Rr(e)??[];if(n.length===0)return;let r=e.getOptions(),i=Ir(n,r._metadata,r.tunnel,e.getDsn(),e.getDataCollectionOptions().userInfo);zr().set(e,[]),e.emit(`flushLogs`),e.sendEnvelope(i)}function Rr(e){return zr().get(e)}function zr(){return l(`clientToLogBufferMap`,()=>new WeakMap)}function Br(e,t){let n=t?`auto`:`never`;return[{type:`trace_metric`,item_count:e.length,content_type:`application/vnd.sentry.items.trace-metric+json`},{version:2,...rr()&&{ingest_settings:{infer_ip:n,infer_user_agent:n}},items:e}]}function Vr(e,t,n,r,i){let a={};return t?.sdk&&(a.sdk={name:t.sdk.name,version:t.sdk.version}),n&&r&&(a.dsn=V(r)),G(a,[Br(e,i)])}function Hr(e,t){let n=t??Ur(e)??[];if(n.length===0)return;let r=e.getOptions(),i=Vr(n,r._metadata,r.tunnel,e.getDsn(),e.getDataCollectionOptions().userInfo);Wr().set(e,[]),e.emit(`flushMetrics`),e.sendEnvelope(i)}function Ur(e){return Wr().get(e)}function Wr(){return l(`clientToMetricBufferMap`,()=>new WeakMap)}function Gr(e,t){if(e.type!==`transaction`||!e.spans?.length||!e.sdkProcessingMetadata?.hasGenAiSpans||zn(t))return;let n=[],r=[];for(let t of e.spans)t.op?.startsWith(`gen_ai.`)?n.push(Rn(t)):r.push(t);if(n.length!==0)return e.spans=r,ar(n,t)}var Kr=Symbol.for(`SentryBufferFullError`);function qr(e=100){let t=new Set;function n(){return t.size<e}function r(e){t.delete(e)}function i(e){if(!n())return hr(Kr);let i=e();return t.add(i),i.then(()=>r(i),()=>r(i)),i}function a(e){if(!t.size)return K(!0);let n=Promise.allSettled(Array.from(t)).then(()=>!0);if(!e)return n;let r=[n,new Promise(t=>Bn(setTimeout(()=>t(!1),e)))];return Promise.race(r)}return{get $(){return Array.from(t)},add:i,drain:a}}var Jr=6e4;function Yr(e,t=D()){let n=parseInt(`${e}`,10);if(!isNaN(n))return n*1e3;let r=Date.parse(`${e}`);return isNaN(r)?Jr:r-t}function Xr(e,t){return e[t]||e.all||0}function Zr(e,t,n=D()){return Xr(e,t)>n}function Qr(e,{statusCode:t,headers:n},r=D()){let i={...e},a=n?.[`x-sentry-rate-limits`],o=n?.[`retry-after`];if(a)for(let e of a.trim().split(`,`)){let[t,n,,,a]=e.split(`:`,5),o=parseInt(t,10),s=(isNaN(o)?60:o)*1e3;if(!n)i.all=r+s;else for(let e of n.split(`;`))e===`metric_bucket`?(!a||a.split(`;`).includes(`custom`))&&(i[e]=r+s):i[e]=r+s}else o?i.all=r+Yr(o,r):t===429&&(i.all=r+6e4);return i}function $r(e,t,n=qr(e.bufferSize||64)){let r={},a=e=>n.drain(e);function o(t,[n,r],i){let a=Xn(i);i===`transaction`&&e.recordDroppedEvent(t,`span`,(r.spans?.length??0)+1),e.recordDroppedEvent(t,a,typeof n.item_count==`number`?n.item_count:1)}function s(e){let a=[];if(Hn(e,(e,t)=>{Zr(r,Xn(t))?o(`ratelimit_backoff`,e,t):a.push(e)}),a.length===0)return Promise.resolve({});let s=G(e[0],a),c=e=>{Un(s,[`client_report`])?i&&v.warn(`Dropping client report. Will not send outcomes (reason: ${e}).`):Hn(s,(t,n)=>{o(e,t,n)})};return n.add(()=>t({body:Gn(s)}).then(e=>e.statusCode===413?(i&&v.error(`Sentry responded with status code 413. Envelope was discarded due to exceeding size limits.`),c(`send_error`),e):(i&&e.statusCode!==void 0&&(e.statusCode<200||e.statusCode>=300)&&v.warn(`Sentry responded with status code ${e.statusCode} to sent event.`),r=Qr(r,e),e),e=>{throw c(`network_error`),i&&v.error(`Encountered error running transport request:`,e),e})).then(e=>e,e=>{if(e===Kr)return i&&v.error(`Skipped sending event because buffer is full.`),c(`queue_overflow`),Promise.resolve({});throw e})}return{send:s,flush:a}}function ei(e,t,n){let r=[{type:`client_report`},{timestamp:n||M(),discarded_events:e}];return G(t?{dsn:t}:{},[r])}function ti(e){let{trace_id:t,parent_span_id:n,span_id:r,status:i,origin:a,data:o,op:s,links:c}=e.contexts?.trace??{};return{data:o??{},description:e.transaction,op:s,parent_span_id:n,span_id:r??``,start_timestamp:e.start_timestamp??0,status:i??`ok`,timestamp:e.timestamp,trace_id:t??``,origin:a,links:c,profile_id:o?.[Et],exclusive_time:o?.[Ct],measurements:e.measurements,is_segment:!0}}function ni(e){return{type:`transaction`,timestamp:e.timestamp,start_timestamp:e.start_timestamp,transaction:e.description,contexts:{trace:{trace_id:e.trace_id,span_id:e.span_id,parent_span_id:e.parent_span_id,op:e.op,status:e.status,origin:e.origin,links:e.links,data:{...e.data,...e.profile_id&&{"sentry.profile_id":e.profile_id},...e.exclusive_time&&{"sentry.exclusive_time":e.exclusive_time}}}},measurements:e.measurements}}function ri(e){e.traceLifecycle===`stream`&&(e.beforeSendTransaction||e.ignoreTransactions?.length)&&f(()=>{console.warn("[Sentry] `beforeSendTransaction` and `ignoreTransactions` are ignored with `traceLifecycle: 'stream'` (enabled by default). Use `beforeSendSpan` and `ignoreSpans` instead, or set `traceLifecycle: 'static'`.")})}var Y={userInfo:!0,cookies:!0,httpHeaders:{request:!0,response:!0},httpBodies:[`incomingRequest`,`outgoingRequest`,`incomingResponse`,`outgoingResponse`],urlQueryParams:!0,graphQL:{document:!0,variables:!0},genAI:{inputs:!0,outputs:!0},mcp:{inputs:!0,outputs:!0},databaseQueryData:!0,queues:!0,stackFrameVariables:!0,frameContextLines:5};function ii(e){return typeof e==`boolean`||`allow`in e||`deny`in e}function ai(e){return e===void 0?{...Y.httpHeaders}:ii(e)?{request:e,response:e}:{request:e.request??Y.httpHeaders.request,response:e.response??Y.httpHeaders.response}}function oi(e){let t=e.dataCollection??{};return{userInfo:t.userInfo??Y.userInfo,cookies:t.cookies??Y.cookies,httpHeaders:ai(t.httpHeaders),httpBodies:t.httpBodies??Y.httpBodies,urlQueryParams:t.urlQueryParams??Y.urlQueryParams,graphQL:{document:t.graphQL?.document??Y.graphQL.document,variables:t.graphQL?.variables??Y.graphQL.variables},genAI:{inputs:t.genAI?.inputs??Y.genAI.inputs,outputs:t.genAI?.outputs??Y.genAI.outputs},mcp:{inputs:t.mcp?.inputs??Y.mcp.inputs,outputs:t.mcp?.outputs??Y.mcp.outputs},databaseQueryData:t.databaseQueryData??Y.databaseQueryData,queues:t.queues??Y.queues,stackFrameVariables:t.stackFrameVariables??Y.stackFrameVariables,frameContextLines:t.frameContextLines??Y.frameContextLines}}var si=`Not capturing exception because it's already been captured.`,ci=`Discarded session because of missing or non-string release`,li=Symbol.for(`SentryInternalError`),ui=Symbol.for(`SentryDoNotSendEventError`),di=5e3,fi=Symbol.for(`SentryClosedClient`);function pi(e){return{message:e,[li]:!0}}function mi(e){return{message:e,[ui]:!0}}function hi(e){return mi(`Discarding event because it's not included in the random sample (sampling rate = ${e})`)}function gi(e){return _e(e)&&li in e}function _i(e){return _e(e)&&ui in e}function vi(e,t,n,r,i){let a=0,o,s=!1;e.on(n,()=>{a=0,clearTimeout(o),s=!1}),e.on(t,t=>{if(a+=r(t),a>=8e5)i(e);else if(!s){let t=e.getOptions()._flushInterval??di;t>0&&(s=!0,o=Bn(setTimeout(()=>{i(e)},t)))}}),e.on(`flush`,()=>{i(e)})}var yi=class{constructor(e){this._options={attachStacktrace:!0,...e,traceLifecycle:e.traceLifecycle===`static`?`static`:`stream`},this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],this._promiseBuffer=qr(e.transportOptions?.bufferSize??64),this._dataCollection=oi(e),this._unhandledSessionStatus=`crashed`,this._attachStacktraceIsDefault=e.attachStacktrace===void 0,e.dsn?this._dsn=Wt(e.dsn):i&&v.warn(`No DSN provided, client will not send events.`);let{beforeSendSpan:t,traceLifecycle:n}=this._options;if(i&&t&&In(t)!==(n===`static`)&&f(()=>{console.warn(`Ignoring \`beforeSendSpan\`: ${n===`static`?`wrap it with`:`remove`} \`Sentry.withStaticSpan\` to use it with \`traceLifecycle: "${n}"\`.`)}),this._dsn){let t=Pr(this._dsn,e.tunnel,e._metadata?e._metadata.sdk:void 0);this._transport=e.transport({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...e.transportOptions,url:t})}vi(this,`afterCaptureLog`,`flushLogs`,wi,Lr),vi(this,`afterCaptureMetric`,`flushMetrics`,Ci,Hr)}captureException(e,t,n){let r=A();if(We(e))return i&&v.log(si),r;let a={event_id:r,...t};return this._process(()=>this.eventFromException(e,a).then(e=>this._captureEvent(e,a,n)).then(e=>e),`error`),a.event_id}captureMessage(e,t,n,r){let i={event_id:A(),...n},a=me(e)?e:String(e),o=he(e),s=o?this.eventFromMessage(a,t,i).then(e=>(e.exception&&this._attachStacktraceIsDefault&&(e.sdkProcessingMetadata={...e.sdkProcessingMetadata,hasDefaultSyntheticStacktrace:!0}),e)):this.eventFromException(e,i);return this._process(()=>s.then(e=>this._captureEvent(e,i,r)),o?`unknown`:`error`),i.event_id}captureEvent(e,t,n){let r=A();if(t?.originalException&&We(t.originalException))return i&&v.log(si),r;let a={event_id:r,...t},o=e.sdkProcessingMetadata||{},s=o.capturedSpanScope,c=o.capturedSpanIsolationScope,l=$n(e.type);return this._process(()=>this._captureEvent(e,a,s||n,c),l),a.event_id}captureSession(e){this.sendSession(e),Qe(e,{init:!1})}getDsn(){return this._dsn}getOptions(){return this._options}getDataCollectionOptions(){return this._dataCollection}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}async flush(e){let t=this._transport;if(this.emit(`flush`),!t)return!0;let n=await this._isClientDoneProcessing(e),r=await t.flush(e);return n&&r}async close(e){Object.defineProperty(this,fi,{value:!0});let t=await this.flush(e);return this.getOptions().enabled=!1,this.emit(`close`),t}getEventProcessors(){return this._eventProcessors}addEventProcessor(e){this._eventProcessors.push(e)}init(){(this._isEnabled()||this._options.integrations.some(({name:e})=>e.startsWith(`Spotlight`)))&&(this._setupIntegrations(),ri(this._options))}getIntegrationByName(e){return this._integrations[e]}getIntegrationNames(){return Object.keys(this._integrations)}addIntegration(e){let t=this._integrations[e.name];!t&&e.beforeSetup&&e.beforeSetup(this),vn(this,e,this._integrations),t||_n(this,[e])}sendEvent(e,t={}){this.emit(`beforeSendEvent`,e,t);let n=Gr(e,this),r=dr(e,this._dsn,this._options._metadata,this._options.tunnel);if(!Sr(t))for(let e of t.attachments||[])r=Vn(r,qn(e));n&&(r=Vn(r,n)),this.sendEnvelope(r).then(t=>this.emit(`afterSendEvent`,e,t))}sendSession(e){let{release:t,environment:n=bn}=this._options;if(`aggregates`in e){let r=e.attrs||{};if(!r.release&&!t){i&&v.warn(ci);return}r.release=r.release||t,r.environment=r.environment||n,e.attrs=r}else{if(!e.release&&!t){i&&v.warn(ci);return}e.release=e.release||t,e.environment=e.environment||n}this.emit(`beforeSendSession`,e);let r=ur(e,this._dsn,this._options._metadata,this._options.tunnel);this.sendEnvelope(r)}recordDroppedEvent(e,t,n=1){if(this._options.sendClientReports){let r=`${e}:${t}`;i&&v.log(`Recording outcome: "${r}"${n>1?` (${n} times)`:``}`),this._outcomes[r]=(this._outcomes[r]||0)+n}}on(e,t){let n=this._hooks[e]=this._hooks[e]||new Set,r=(...e)=>t(...e);return n.add(r),()=>{n.delete(r)}}emit(e,...t){let n=this._hooks[e];n&&n.forEach(e=>e(...t))}async sendEnvelope(e){if(this.emit(`beforeEnvelope`,e),this._isEnabled()&&this._transport)try{let t=await this._transport.send(e);return this.emit(`afterEnvelope`,e),t}catch(e){return i&&v.error(`Error while sending envelope:`,e),{}}return i&&v.error(`Transport disabled`),{}}registerCleanup(e){}dispose(){}_setupIntegrations(){let{integrations:e}=this._options;this._integrations=gn(this,e),_n(this,e)}_updateSessionFromEvent(e,t){let n=t.level===`fatal`,r=!1,i=t.exception?.values;if(i){r=!0,n=!1;for(let e of i)if(e.mechanism?.handled===!1){n=!0;break}}let a=e.status===`ok`;(a&&e.errors===0||a&&n)&&(Qe(e,{...n&&{status:this._unhandledSessionStatus},errors:e.errors||Number(r||n)}),this.captureSession(e))}async _isClientDoneProcessing(e){let t=0;for(;!e||t<e;){if(await new Promise(e=>setTimeout(e,1)),!this._numProcessing)return!0;t++}return!1}_isEnabled(){return this.getOptions().enabled!==!1&&this._transport!==void 0}_prepareEvent(e,t,n,r){let i=this.getOptions(),a=this.getIntegrationNames();return!t.integrations&&a.length&&(t.integrations=a),this.emit(`preprocessEvent`,e,t),e.type||r.setLastEventId(e.event_id||t.event_id),wr(i,e,t,n,this,r).then(e=>(e===null||(this.emit(`postprocessEvent`,e,t),e.contexts={trace:{...e.contexts?.trace,...St(n)},...e.contexts},e.sdkProcessingMetadata={dynamicSamplingContext:Tn(this,n),...e.sdkProcessingMetadata}),e))}_captureEvent(e,t={},n=R(),r=bt()){return i&&xi(e)&&v.log(`Captured error event \`${Cr(e)[0]||`<unknown>`}\``),this._processEvent(e,t,n,r).then(e=>e.event_id,e=>{i&&(_i(e)?v.log(e.message):gi(e)?v.warn(e.message):v.warn(e))})}_processEvent(e,t,n,r){let i=this.getOptions(),{sampleRate:a}=i,o=Si(e),s=xi(e),c=`before send for type \`${e.type||`error`}\``,l=`before_send`,u=0,d=a===void 0?void 0:Gt(a),f=s&&typeof d==`number`&&we()>d,p=$n(e.type),m=0,h=n.getSession()||r.getSession();return f&&h?.status!==`ok`?(this.recordDroppedEvent(`sample_rate`,`error`),hr(hi(a))):this._prepareEvent(e,t,n,r).then(e=>{if(e===null)throw mi("An event processor returned `null`, will not send event.");return m=e.spans?.length||0,Sr(t)?e:bi(i,e,t,e=>{l=e},e=>{u=e})}).then(n=>{if(u&&this.recordDroppedEvent(`ignored`,`span`,u),!ge(n)||n===null)throw this.recordDroppedEvent(l,p),o&&this.recordDroppedEvent(l,`span`,1+m-u),n===null?mi(`${l===`ignored`?"Transaction matched `ignoreSpans`":`${c} ${l===`callback_error`?`threw an error`:"returned `null`"}`}, will not send event.`):pi(`${c} must return \`null\` or a valid event.`);if(s&&h&&this._updateSessionFromEvent(h,n),f)throw this.recordDroppedEvent(`sample_rate`,`error`),hi(a);if(o){let e=m-u-(n.spans?.length||0);e>0&&this.recordDroppedEvent(`before_send`,`span`,e)}let r=n.transaction_info;return o&&r&&n.transaction!==e.transaction&&(n.transaction_info={...r,source:`custom`}),this.sendEvent(n,t),n}).then(null,e=>{throw _i(e)||gi(e)?e:(this.captureException(e,{mechanism:{handled:!1,type:`internal`},data:{__sentry__:!0},originalException:e}),pi(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.
|
|
5
|
+
Reason: ${e}`))})}_process(e,t){this._numProcessing++,this._promiseBuffer.add(e).then(e=>(this._numProcessing--,e),e=>(this._numProcessing--,e===Kr&&this.recordDroppedEvent(`queue_overflow`,t),e))}_clearOutcomes(){let e=this._outcomes;return this._outcomes={},Object.entries(e).map(([e,t])=>{let[n,r]=e.split(`:`);return{reason:n,category:r,quantity:t}})}_flushOutcomes(){i&&v.log(`Flushing outcomes...`);let e=this._clearOutcomes();if(e.length===0){i&&v.log(`No outcomes to send`);return}if(!this._dsn){i&&v.log(`No dsn provided, will not send outcomes`);return}i&&v.log(`Sending outcomes:`,e);let t=ei(e,this._options.tunnel&&V(this._dsn));this.sendEnvelope(t)}};function bi(e,t,n,r,a){let{beforeSend:o,ignoreSpans:s,beforeSendTransaction:c}=e,l=In(e.beforeSendSpan)&&e.beforeSendSpan,u=t;if(xi(u)&&o){let e=u;return W(i?"The `beforeSend` callback threw an error, dropping the event:":``,()=>o(e,n),()=>(r(`callback_error`),null))}if(Si(u)){if(l||s){let e=ti(u);if(s?.length&&dn({description:e.description,op:e.op,attributes:e.data},s))return r(`ignored`),null;if(l&&(u=P(t,ni(Ln(e,l)))),u.spans){let e=[],t=u.spans;for(let n of t)s?.length&&dn({description:n.description,op:n.op,attributes:n.data},s)?pn(t,n):l?e.push(Ln(n,l)):e.push(n);a(t.length-e.length),u.spans=e}}if(c)return W(i?"The `beforeSendTransaction` callback threw an error, dropping the event:":``,()=>c(u,n),()=>(r(`callback_error`),null))}return u}function xi(e){return e.type===void 0}function Si(e){return e.type===`transaction`}function Ci(e){let t=0;return e.name&&(t+=e.name.length*2),t+=8,t+Ti(e.attributes)}function wi(e){let t=0;return e.message&&(t+=e.message.length*2),t+Ti(e.attributes)}function Ti(e){if(!e)return 0;let t=0;return Object.values(e).forEach(e=>{Array.isArray(e)?t+=e.length*Ei(e[0]):he(e)?t+=Ei(e):t+=100}),t}function Ei(e){return typeof e==`string`?e.length*2:typeof e==`number`?8:typeof e==`boolean`?4:0}function Di(e){`aggregates`in e?e.attrs?.ip_address===void 0&&(e.attrs={...e.attrs,ip_address:`{{auto}}`}):e.ipAddress===void 0&&(e.ipAddress=`{{auto}}`)}function Oi(e,t,n=[t],r=`npm`){let i=(e._metadata=e._metadata||{}).sdk=e._metadata.sdk||{};i.name||(i.name=`sentry.javascript.${t}`,i.packages=n.map(e=>({name:`${r}:@sentry/${e}`,version:o})),i.version=o)}function ki(e,t,n,r,i,a){if(!i.exception?.values||!a||!x(a.originalException))return;let o=i.exception.values.length>0?i.exception.values[i.exception.values.length-1]:void 0;o&&(i.exception.values=X(e,t,r,a.originalException,n,i.exception.values,o,0))}function X(e,t,n,r,i,a,o,s){if(a.length>=n+1)return a;let c=[...a];if(x(r[i])){Z(o,s,r);let a=e(t,r[i]),l=c.length;Mi(a,i,l,s),c=X(e,t,n,r[i],i,[a,...c],a,l)}return Ai(r)&&r.errors.forEach((a,l)=>{if(c.length<n+1&&x(a)){Z(o,s,r);let u=e(t,a),d=c.length;Mi(u,`errors[${l}]`,d,s),c=X(e,t,n,a,i,[u,...c],u,d)}}),ji(r)&&[`error`,`suppressed`].forEach(a=>{let l=r[a];if(c.length<n+1&&x(l)){Z(o,s,r);let u=e(t,l),d=c.length;Mi(u,a,d,s),c=X(e,t,n,l,i,[u,...c],u,d)}}),c}function Ai(e){return Array.isArray(e.errors)}function ji(e){return`error`in e&&`suppressed`in e}function Z(e,t,n){e.mechanism={handled:!0,type:`auto.core.linked_errors`,...Ai(n)&&{is_exception_group:!0},...e.mechanism,exception_id:t}}function Mi(e,t,n,r){e.mechanism={handled:!0,...e.mechanism,type:`chained`,source:t,exception_id:n,parent_id:r}}function Ni(e){return x(e)&&`__sentry_fetch_url_host__`in e&&typeof e.__sentry_fetch_url_host__==`string`}function Pi(e){return Ni(e)?`${e.message} (${e.__sentry_fetch_url_host__})`:e.message}var Fi=typeof __SENTRY_DEBUG__>`u`||__SENTRY_DEBUG__,Ii=new WeakMap;function Li(e,t=z()){t?(Fi&&Ri(t)&&v.warn(`A route provider is already registered for this client and will be replaced. Routes only the previous provider knows about will no longer resolve.`),Ii.set(t,e)):Fi&&v.warn(`Cannot set a route provider without a client.`)}function Ri(e=z()){return e&&Ii.get(e)}var Q=a;function zi(e,t){let n=$(e,t),r={type:Ki(t),value:qi(t)};return n.length&&(r.stacktrace={frames:n}),r.type===void 0&&r.value===``&&(r.value=`Unrecoverable error caught`),r}function Bi(e,t,n,r){let i=z()?.getOptions().normalizeDepth,a=ea(t),o={__serialized__:ke(t,i)};if(a)return{exception:{values:[zi(e,a)]},extra:o};let s={exception:{values:[{type:C(t)?t.constructor.name:r?`UnhandledRejection`:`Error`,value:Qi(t,{isUnhandledRejection:r})}]},extra:o};if(n){let t=$(e,n);t.length&&(s.exception.values[0].stacktrace={frames:t})}return s}function Vi(e,t){return{exception:{values:[zi(e,t)]}}}function $(e,t){let n=t.stacktrace||t.stack||``,r=Ui(t),i=Wi(t);try{return e(n,r,i)}catch{}return[]}var Hi=/Minified React error #\d+;/i;function Ui(e){return e&&Hi.test(e.message)?1:0}function Wi(e){return typeof e.framesToPop==`number`?e.framesToPop:0}function Gi(e){return typeof WebAssembly<`u`&&WebAssembly.Exception!==void 0&&e instanceof WebAssembly.Exception}function Ki(e){let t=e?.name;return!t&&Gi(e)?e.message&&Array.isArray(e.message)&&e.message.length==2?e.message[0]:`WebAssembly.Exception`:t}function qi(e){let t=e?.message;return Gi(e)?Array.isArray(e.message)&&e.message.length==2?e.message[1]:`wasm exception`:t?t.error&&typeof t.error.message==`string`?Pi(t.error):Pi(e):`No error message`}function Ji(e,t,n,r){let i=Xi(e,t,n?.syntheticException||void 0,r);return j(i),i.level=`error`,n?.event_id&&(i.event_id=n.event_id),K(i)}function Yi(e,t,n=`info`,r,i){let a=Zi(e,t,r?.syntheticException||void 0,i);return a.level=n,r?.event_id&&(a.event_id=r.event_id),K(a)}function Xi(e,t,n,r,i){let a;if(ue(t)&&t.error)return Vi(e,t.error);if(de(t)||fe(t)){let i=t;if(`stack`in t){a=Vi(e,t);let i=a.exception?.values?.[0];if(r&&n&&i&&!i.stacktrace){let t=$(e,n);t.length&&(i.stacktrace={frames:t},j(a,{synthetic:!0}))}}else{let t=i.name||(de(i)?`DOMError`:`DOMException`),o=i.message?`${t}: ${i.message}`:t;a=Zi(e,o,n,r),Ve(a,o)}return a}if(x(t))return Vi(e,t);if(ge(t)||C(t))return a=Bi(e,t,n,i),j(a,{synthetic:!0}),a;let o=String(t);return a=Zi(e,o,n,r),Ve(a,o,void 0),j(a,{synthetic:!0}),a}function Zi(e,t,n,r){let i={};if(r&&n){let r=$(e,n);r.length&&(i.exception={values:[{value:t,stacktrace:{frames:r}}]}),j(i,{synthetic:!0})}if(me(t)){let{__sentry_template_string__:e,__sentry_template_values__:n}=t;return i.logentry={message:e,params:n},i}return i.message=t,i}function Qi(e,{isUnhandledRejection:t}){let n=Ce(e),r=t?`promise rejection`:`exception`;return ue(e)?`Event \`ErrorEvent\` captured as ${r} with message \`${e.message}\``:C(e)?`Event \`${$i(e)}\` (type=${e.type}) captured as ${r}`:`Object captured as ${r} with keys: ${n}`}function $i(e){try{let t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch{}}function ea(e){return Object.values(e).find(x)}var ta=class extends yi{constructor(e){let t=na(e);Oi(t,`browser`,[`browser`],Q.SENTRY_SDK_SOURCE||tr()),super(t),t.routeProvider&&Li(t.routeProvider,this),this._unhandledSessionStatus=`unhandled`;let{userInfo:n}=this.getDataCollectionOptions();t._metadata?.sdk&&(t._metadata.sdk.settings={infer_ip:n?`auto`:`never`,...t._metadata.sdk.settings});let{sendClientReports:r}=this._options,i=()=>{Ze()},a=[[Q.document,`visibilitychange`,()=>{i(),Q.document.visibilityState===`hidden`&&(r&&this._flushOutcomes(),queueMicrotask(()=>{this.flush()}))}],[Q.document,`freeze`,i],[Q.document,`resume`,i],[Q,`pagehide`,i],[Q,`pageshow`,i]];a.forEach(([e,t,n])=>e?.addEventListener?.(t,n)),this.on(`close`,()=>a.forEach(([e,t,n])=>e?.removeEventListener?.(t,n))),n&&this.on(`beforeSendSession`,Di)}eventFromException(e,t){return Ji(this._options.stackParser,e,t,this._options.attachStacktrace)}eventFromMessage(e,t=`info`,n){return Yi(this._options.stackParser,e,t,n,this._options.attachStacktrace)}_prepareEvent(e,t,n,r){return e.platform=e.platform||`javascript`,super._prepareEvent(e,t,n,r)}};function na(e){return{release:typeof __SENTRY_RELEASE__==`string`?__SENTRY_RELEASE__:Q.SENTRY_RELEASE?.id,sendClientReports:!0,parentSpanIsAlwaysRootSpan:!0,...e}}var ra=30,ia=50;function aa(e,t,n,r){let i={filename:e,function:t===`<anonymous>`?`?`:t,in_app:!0};return n!==void 0&&(i.lineno=n),r!==void 0&&(i.colno=r),i}var oa=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,sa=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,ca=/\((\S*)(?::(\d+))(?::(\d+))\)/,la=/at (.+?) ?\(data:(.+?),/,ua=[ra,e=>{let t=e.match(la);if(t)return{filename:`<data:${t[2]}>`,function:t[1]};let n=oa.exec(e);if(n){let[,e,t,r]=n;return aa(e,`?`,+t,+r)}let r=sa.exec(e);if(r){if(r[2]?.indexOf(`eval`)===0){let e=ca.exec(r[2]);e&&(r[2]=e[1],r[3]=e[2],r[4]=e[3])}let[e,t]=ma(r[1]||`?`,r[2]);return aa(t,e,r[3]?+r[3]:void 0,r[4]?+r[4]:void 0)}}],da=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,fa=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,pa=oe(ua,[ia,e=>{let t=da.exec(e);if(t){if(t[3]&&t[3].indexOf(` > eval`)>-1){let e=fa.exec(t[3]);e&&(t[1]=t[1]||`eval`,t[3]=e[1],t[4]=e[2],t[5]=``)}let e=t[3],n=t[1]||`?`;return[n,e]=ma(n,e),aa(e,n,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}}]),ma=(e,t)=>{let n=e.indexOf(`safari-extension`)!==-1,r=e.indexOf(`safari-web-extension`)!==-1;return n||r?[e.indexOf(`@`)===-1?`?`:e.split(`@`)[0],n?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]},ha=`cause`,ga=5,_a=`LinkedErrors`,va=yn(((e={})=>{let t=e.limit||ga,n=e.key||ha;return{name:_a,preprocessEvent(e,r,i){ki(zi,i.getOptions().stackParser,n,t,e,r)}}}));function ya(i){let a=new ta({...i,dist:i.buildId,integrations:[],stackParser:pa,transport:e=>n($r,e),beforeSend:t,sendClientReports:!1,dataCollection:{...r,httpBodies:[]},beforeSendLog:()=>null,beforeSendMetric:()=>null});return a.init(),new e(a,`browser`,i.buildId,{Scope:F,linkedErrorsIntegration:va})}export{ya as createBrowserReporter};
|
|
6
|
+
//# debugId=eb09e18b-dfe7-405d-9c06-f7644d4e2bf9
|