iobroker.vis2-materialdesign 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +22 -0
- package/README.md +198 -0
- package/admin/admin.d.ts +93 -0
- package/admin/i18n/de.json +985 -0
- package/admin/i18n/en.json +985 -0
- package/admin/i18n/es.json +985 -0
- package/admin/i18n/fr.json +985 -0
- package/admin/i18n/it.json +985 -0
- package/admin/i18n/nl.json +985 -0
- package/admin/i18n/pl.json +985 -0
- package/admin/i18n/pt.json +985 -0
- package/admin/i18n/ru.json +985 -0
- package/admin/i18n/uk.json +985 -0
- package/admin/i18n/zh-cn.json +985 -0
- package/admin/img/info-big.png +0 -0
- package/admin/index_m.html +456 -0
- package/admin/index_m.js +1018 -0
- package/admin/lib/clipboard-polyfill.promise.js +16 -0
- package/admin/lib/colors.json +1304 -0
- package/admin/lib/colorsDark.json +1304 -0
- package/admin/lib/defaultcolors.json +22 -0
- package/admin/lib/defaultcolorsDark.json +22 -0
- package/admin/lib/defaultfontSizes.json +14 -0
- package/admin/lib/defaultfonts.json +14 -0
- package/admin/lib/fontSizes.json +380 -0
- package/admin/lib/fonts.json +386 -0
- package/admin/lib/monolith.min.css +1 -0
- package/admin/lib/pickr.min.js +5 -0
- package/admin/materialdesign-widgets-click-sound.mp3 +0 -0
- package/admin/style.css +31 -0
- package/admin/tsconfig.json +9 -0
- package/admin/vis-materialdesign.png +0 -0
- package/admin/vis-materialdesign_16_9.png +0 -0
- package/admin/words.js +11949 -0
- package/io-package.json +184 -0
- package/package.json +71 -0
- package/widgets/materialdesign/css/widgets.css +7174 -0
- package/widgets/materialdesign/css/widgets.min.css +1 -0
- package/widgets/materialdesign/img/IoBroker_Logo.png +0 -0
- package/widgets/materialdesign/img/bar_chart.png +0 -0
- package/widgets/materialdesign/img/calendar.png +0 -0
- package/widgets/materialdesign/img/pie_chart.png +0 -0
- package/widgets/materialdesign/img/prev_alerts.png +0 -0
- package/widgets/materialdesign/img/prev_autocomplete.png +0 -0
- package/widgets/materialdesign/img/prev_color_schemes.png +0 -0
- package/widgets/materialdesign/img/prev_dialog_view.png +0 -0
- package/widgets/materialdesign/img/prev_grid_views.png +0 -0
- package/widgets/materialdesign/img/prev_icon.png +0 -0
- package/widgets/materialdesign/img/prev_iconlist.png +0 -0
- package/widgets/materialdesign/img/prev_input.png +0 -0
- package/widgets/materialdesign/img/prev_json_chart.png +0 -0
- package/widgets/materialdesign/img/prev_line_history_chart.png +0 -0
- package/widgets/materialdesign/img/prev_list.png +0 -0
- package/widgets/materialdesign/img/prev_masonry_views.png +0 -0
- package/widgets/materialdesign/img/prev_select_bool.png +0 -0
- package/widgets/materialdesign/img/prev_select_value.png +0 -0
- package/widgets/materialdesign/img/prev_table.png +0 -0
- package/widgets/materialdesign/img/prev_top_app_bar_nav_drawer.png +0 -0
- package/widgets/materialdesign/img/prev_version.png +0 -0
- package/widgets/materialdesign/img/preview.jpg +0 -0
- package/widgets/materialdesign/js/materialdesign.js +56 -0
- package/widgets/materialdesign/js/widgets/materialdesign.00.helper.js +1229 -0
- package/widgets/materialdesign/js/widgets/materialdesign.00.vue.helper.js +710 -0
- package/widgets/materialdesign/js/widgets/materialdesign.alerts.js +177 -0
- package/widgets/materialdesign/js/widgets/materialdesign.autocomplete.js +263 -0
- package/widgets/materialdesign/js/widgets/materialdesign.button.js +1617 -0
- package/widgets/materialdesign/js/widgets/materialdesign.calendar.js +472 -0
- package/widgets/materialdesign/js/widgets/materialdesign.card.js +276 -0
- package/widgets/materialdesign/js/widgets/materialdesign.chart.bar.js +389 -0
- package/widgets/materialdesign/js/widgets/materialdesign.chart.helper.js +494 -0
- package/widgets/materialdesign/js/widgets/materialdesign.chart.json.js +621 -0
- package/widgets/materialdesign/js/widgets/materialdesign.chart.line.js +552 -0
- package/widgets/materialdesign/js/widgets/materialdesign.chart.pie.js +380 -0
- package/widgets/materialdesign/js/widgets/materialdesign.checkbox.js +281 -0
- package/widgets/materialdesign/js/widgets/materialdesign.colorschemes.js +129 -0
- package/widgets/materialdesign/js/widgets/materialdesign.dialog.js +384 -0
- package/widgets/materialdesign/js/widgets/materialdesign.iconList.js +873 -0
- package/widgets/materialdesign/js/widgets/materialdesign.list.js +503 -0
- package/widgets/materialdesign/js/widgets/materialdesign.materialdesignicons.js +7055 -0
- package/widgets/materialdesign/js/widgets/materialdesign.progress.js +413 -0
- package/widgets/materialdesign/js/widgets/materialdesign.roundslider.js +267 -0
- package/widgets/materialdesign/js/widgets/materialdesign.select.js +243 -0
- package/widgets/materialdesign/js/widgets/materialdesign.slider.js +363 -0
- package/widgets/materialdesign/js/widgets/materialdesign.switch.js +284 -0
- package/widgets/materialdesign/js/widgets/materialdesign.table.js +688 -0
- package/widgets/materialdesign/js/widgets/materialdesign.textfield.js +260 -0
- package/widgets/materialdesign/js/widgets/materialdesign.topappbarnav.js +747 -0
- package/widgets/materialdesign/js/widgets/materialdesign.value.js +369 -0
- package/widgets/materialdesign/js/widgets/materialdesign.views.js +827 -0
- package/widgets/materialdesign/js/widgets/materialdesign.viseditor.js +1088 -0
- package/widgets/materialdesign/js/widgets.min.js +1 -0
- package/widgets/materialdesign/lib/Chart.css +47 -0
- package/widgets/materialdesign/lib/Chart.js +16151 -0
- package/widgets/materialdesign/lib/VueTheMask.umd.js +556 -0
- package/widgets/materialdesign/lib/chartjs-plugin-datalabels.js +1385 -0
- package/widgets/materialdesign/lib/chroma.js +3225 -0
- package/widgets/materialdesign/lib/fonts/material-design-icons/materialdesignicons-webfont.ttf +0 -0
- package/widgets/materialdesign/lib/fonts/material-design-icons/materialdesignicons.css +27457 -0
- package/widgets/materialdesign/lib/fonts/material-design-icons/materialdesignicons.min.css +1 -0
- package/widgets/materialdesign/lib/fonts/material-icons/MaterialIcons-Regular.ttf +0 -0
- package/widgets/materialdesign/lib/fonts/material-icons/material-icons.css +31 -0
- package/widgets/materialdesign/lib/he.js +345 -0
- package/widgets/materialdesign/lib/jquery.initialize.js +156 -0
- package/widgets/materialdesign/lib/jquery.knob.js +820 -0
- package/widgets/materialdesign/lib/jquery.mobile-events.js +940 -0
- package/widgets/materialdesign/lib/material-components-web.css +10011 -0
- package/widgets/materialdesign/lib/material-components-web.js +22651 -0
- package/widgets/materialdesign/lib/math.js +41 -0
- package/widgets/materialdesign/lib/moment-duration-format.js +1737 -0
- package/widgets/materialdesign/lib/myUnderscore.js +1695 -0
- package/widgets/materialdesign/lib/raw/moment-with-locales.min.js +28 -0
- package/widgets/materialdesign/lib/raw/round-slider.js +271 -0
- package/widgets/materialdesign/lib/raw/sentry/bundle.min.js +3 -0
- package/widgets/materialdesign/lib/raw/sentry/captureconsole.min.js +2 -0
- package/widgets/materialdesign/lib/raw/sentry/dedupe.min.js +2 -0
- package/widgets/materialdesign/lib/svg-inject.js +697 -0
- package/widgets/materialdesign/lib/vue.js +11965 -0
- package/widgets/materialdesign/lib/vuetify.js +43729 -0
- package/widgets/materialdesign/lib.min.css +1 -0
- package/widgets/materialdesign/lib.min.js +6285 -0
- package/widgets/materialdesign.html +1063 -0
- package/widgets/vis2-materialdesign/assets/MaterialDesignButtonAdition-BOasvewn.js +1 -0
- package/widgets/vis2-materialdesign/assets/MaterialDesignButtonAditionVertical-CfxLrjtz.js +1 -0
- package/widgets/vis2-materialdesign/assets/MaterialDesignButtonLink-DFOHalVe.js +1 -0
- package/widgets/vis2-materialdesign/assets/MaterialDesignButtonLinkVertical-bLBc2Zj6.js +1 -0
- package/widgets/vis2-materialdesign/assets/MaterialDesignButtonNavigation-loocTeHA.js +1 -0
- package/widgets/vis2-materialdesign/assets/MaterialDesignButtonNavigationVertical-wKivh3mz.js +1 -0
- package/widgets/vis2-materialdesign/assets/MaterialDesignButtonState-DyuzNIZY.js +1 -0
- package/widgets/vis2-materialdesign/assets/MaterialDesignButtonStateMulti-D9YVumU3.js +1 -0
- package/widgets/vis2-materialdesign/assets/MaterialDesignButtonStateMultiVertical-J7SUuXNA.js +1 -0
- package/widgets/vis2-materialdesign/assets/MaterialDesignButtonStateVertical-EhVri-Bj.js +1 -0
- package/widgets/vis2-materialdesign/assets/MaterialDesignButtonToggle-CLxaT9SA.js +1 -0
- package/widgets/vis2-materialdesign/assets/MaterialDesignButtonToggleVertical-4zI4T-cI.js +1 -0
- package/widgets/vis2-materialdesign/assets/MaterialDesignButtons-BHDA55zY.js +1 -0
- package/widgets/vis2-materialdesign/assets/MaterialDesignCheckbox-Dwl43BB6.js +1 -0
- package/widgets/vis2-materialdesign/assets/MaterialDesignIcon-07Jl1QSv.js +1 -0
- package/widgets/vis2-materialdesign/assets/MaterialDesignIconButtonAdition-DkyLUAuu.js +1 -0
- package/widgets/vis2-materialdesign/assets/MaterialDesignIconButtonLink-CFh_41FT.js +1 -0
- package/widgets/vis2-materialdesign/assets/MaterialDesignIconButtonNavigation-CLvhcORZ.js +1 -0
- package/widgets/vis2-materialdesign/assets/MaterialDesignIconButtonSlider-TfUJKNib.js +1 -0
- package/widgets/vis2-materialdesign/assets/MaterialDesignIconButtonState-Con_l2iN.js +1 -0
- package/widgets/vis2-materialdesign/assets/MaterialDesignIconButtonStateMulti-DuakGd7h.js +1 -0
- package/widgets/vis2-materialdesign/assets/MaterialDesignIconButtonToggle-B3Yxo-Ii.js +1 -0
- package/widgets/vis2-materialdesign/assets/MaterialDesignSwitch-BPSYRrDe.js +1 -0
- package/widgets/vis2-materialdesign/assets/MaterialDesignValue-D5sJ-iyi.js +1 -0
- package/widgets/vis2-materialdesign/assets/_virtual_mf-localSharedImportMap___mfe_internal__vis2MaterialDesignWidgets-BFI0756z.js +1 -0
- package/widgets/vis2-materialdesign/assets/_virtual_mf___mfe_internal__vis2MaterialDesignWidgets__loadShare__react__loadShare__.js-4V-ZaKyJ.js +1 -0
- package/widgets/vis2-materialdesign/assets/_virtual_mf___mfe_internal__vis2MaterialDesignWidgets__loadShare__react_mf_1_jsx_mf_2_runtime__loadShare__.js-Eu2aWCKd.js +1 -0
- package/widgets/vis2-materialdesign/assets/_virtual_mf___mfe_internal__vis2MaterialDesignWidgets__loadShare__react_mf_2_dom__loadShare__.js-D3wyrTEe.js +8 -0
- package/widgets/vis2-materialdesign/assets/hostInit-CP4jqDxy.js +1 -0
- package/widgets/vis2-materialdesign/assets/index-jMDUG1V1.js +1 -0
- package/widgets/vis2-materialdesign/assets/mf-entry-bootstrap-0-5bdbe7bd.js +35 -0
- package/widgets/vis2-materialdesign/assets/rolldown-runtime-CNC7AqOf.js +1 -0
- package/widgets/vis2-materialdesign/assets/translations-CYT3A7CQ.js +1 -0
- package/widgets/vis2-materialdesign/assets/virtualExposes-BFTZrXtp.js +1 -0
- package/widgets/vis2-materialdesign/assets/virtual_mf-REMOTE_ENTRY_ID___mfe_internal__vis2MaterialDesignWidgets__customWidgets_js-BOvf1QCd.js +4 -0
- package/widgets/vis2-materialdesign/assets/virtual_mf-exposes-ssr___mfe_internal__vis2MaterialDesignWidgets__customWidgets_js-vY7qHvFF.js +2 -0
- package/widgets/vis2-materialdesign/assets/virtual_mf-exposes___mfe_internal__vis2MaterialDesignWidgets__customWidgets_js-C28iDRsy.js +2 -0
- package/widgets/vis2-materialdesign/assets/vite-preload-helper-DuG8C5Si.js +1 -0
- package/widgets/vis2-materialdesign/assets/widgetUtils-D_-xivaB.js +1 -0
- package/widgets/vis2-materialdesign/customWidgets.js +1 -0
- package/widgets/vis2-materialdesign/customWidgets.ssr.js +1 -0
- package/widgets/vis2-materialdesign/materialdesign-widgets-click-sound.mp3 +0 -0
- package/widgets/vis2-materialdesign/mf-stats.json +1 -0
|
@@ -0,0 +1,271 @@
|
|
|
1
|
+
!function(){"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* @license
|
|
4
|
+
* Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
5
|
+
* This code may only be used under the BSD style license found at
|
|
6
|
+
* http://polymer.github.io/LICENSE.txt
|
|
7
|
+
* The complete set of authors may be found at
|
|
8
|
+
* http://polymer.github.io/AUTHORS.txt
|
|
9
|
+
* The complete set of contributors may be found at
|
|
10
|
+
* http://polymer.github.io/CONTRIBUTORS.txt
|
|
11
|
+
* Code distributed by Google as part of the polymer project is also
|
|
12
|
+
* subject to an additional IP rights grant found at
|
|
13
|
+
* http://polymer.github.io/PATENTS.txt
|
|
14
|
+
*/const t="undefined"!=typeof window&&null!=window.customElements&&void 0!==window.customElements.polyfillWrapFlushCallback,e=(t,e,s=null)=>{for(;e!==s;){const s=e.nextSibling;t.removeChild(e),e=s}},s=`{{lit-${String(Math.random()).slice(2)}}}`,i=`\x3c!--${s}--\x3e`,n=new RegExp(`${s}|${i}`);class r{constructor(t,e){this.parts=[],this.element=e;const i=[],r=[],a=document.createTreeWalker(e.content,133,null,!1);let d=0,c=-1,u=0;const{strings:p,values:{length:_}}=t;for(;u<_;){const t=a.nextNode();if(null!==t){if(c++,1===t.nodeType){if(t.hasAttributes()){const e=t.attributes,{length:s}=e;let i=0;for(let t=0;t<s;t++)o(e[t].name,"$lit$")&&i++;for(;i-- >0;){const e=p[u],s=l.exec(e)[2],i=s.toLowerCase()+"$lit$",r=t.getAttribute(i);t.removeAttribute(i);const o=r.split(n);this.parts.push({type:"attribute",index:c,name:s,strings:o}),u+=o.length-1}}"TEMPLATE"===t.tagName&&(r.push(t),a.currentNode=t.content)}else if(3===t.nodeType){const e=t.data;if(e.indexOf(s)>=0){const s=t.parentNode,r=e.split(n),a=r.length-1;for(let e=0;e<a;e++){let i,n=r[e];if(""===n)i=h();else{const t=l.exec(n);null!==t&&o(t[2],"$lit$")&&(n=n.slice(0,t.index)+t[1]+t[2].slice(0,-"$lit$".length)+t[3]),i=document.createTextNode(n)}s.insertBefore(i,t),this.parts.push({type:"node",index:++c})}""===r[a]?(s.insertBefore(h(),t),i.push(t)):t.data=r[a],u+=a}}else if(8===t.nodeType)if(t.data===s){const e=t.parentNode;null!==t.previousSibling&&c!==d||(c++,e.insertBefore(h(),t)),d=c,this.parts.push({type:"node",index:c}),null===t.nextSibling?t.data="":(i.push(t),c--),u++}else{let e=-1;for(;-1!==(e=t.data.indexOf(s,e+1));)this.parts.push({type:"node",index:-1}),u++}}else a.currentNode=r.pop()}for(const t of i)t.parentNode.removeChild(t)}}const o=(t,e)=>{const s=t.length-e.length;return s>=0&&t.slice(s)===e},a=t=>-1!==t.index,h=()=>document.createComment(""),l=/([ \x09\x0a\x0c\x0d])([^\0-\x1F\x7F-\x9F "'>=/]+)([ \x09\x0a\x0c\x0d]*=[ \x09\x0a\x0c\x0d]*(?:[^ \x09\x0a\x0c\x0d"'`<>=]*|"[^"]*|'[^']*))$/;function d(t,e){const{element:{content:s},parts:i}=t,n=document.createTreeWalker(s,133,null,!1);let r=u(i),o=i[r],a=-1,h=0;const l=[];let d=null;for(;n.nextNode();){a++;const t=n.currentNode;for(t.previousSibling===d&&(d=null),e.has(t)&&(l.push(t),null===d&&(d=t)),null!==d&&h++;void 0!==o&&o.index===a;)o.index=null!==d?-1:o.index-h,r=u(i,r),o=i[r]}l.forEach(t=>t.parentNode.removeChild(t))}const c=t=>{let e=11===t.nodeType?0:1;const s=document.createTreeWalker(t,133,null,!1);for(;s.nextNode();)e++;return e},u=(t,e=-1)=>{for(let s=e+1;s<t.length;s++){const e=t[s];if(a(e))return s}return-1};
|
|
15
|
+
/**
|
|
16
|
+
* @license
|
|
17
|
+
* Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
18
|
+
* This code may only be used under the BSD style license found at
|
|
19
|
+
* http://polymer.github.io/LICENSE.txt
|
|
20
|
+
* The complete set of authors may be found at
|
|
21
|
+
* http://polymer.github.io/AUTHORS.txt
|
|
22
|
+
* The complete set of contributors may be found at
|
|
23
|
+
* http://polymer.github.io/CONTRIBUTORS.txt
|
|
24
|
+
* Code distributed by Google as part of the polymer project is also
|
|
25
|
+
* subject to an additional IP rights grant found at
|
|
26
|
+
* http://polymer.github.io/PATENTS.txt
|
|
27
|
+
*/
|
|
28
|
+
const p=new WeakMap,_=t=>"function"==typeof t&&p.has(t),g={},m={};
|
|
29
|
+
/**
|
|
30
|
+
* @license
|
|
31
|
+
* Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
32
|
+
* This code may only be used under the BSD style license found at
|
|
33
|
+
* http://polymer.github.io/LICENSE.txt
|
|
34
|
+
* The complete set of authors may be found at
|
|
35
|
+
* http://polymer.github.io/AUTHORS.txt
|
|
36
|
+
* The complete set of contributors may be found at
|
|
37
|
+
* http://polymer.github.io/CONTRIBUTORS.txt
|
|
38
|
+
* Code distributed by Google as part of the polymer project is also
|
|
39
|
+
* subject to an additional IP rights grant found at
|
|
40
|
+
* http://polymer.github.io/PATENTS.txt
|
|
41
|
+
*/
|
|
42
|
+
class y{constructor(t,e,s){this.__parts=[],this.template=t,this.processor=e,this.options=s}update(t){let e=0;for(const s of this.__parts)void 0!==s&&s.setValue(t[e]),e++;for(const t of this.__parts)void 0!==t&&t.commit()}_clone(){const e=t?this.template.element.content.cloneNode(!0):document.importNode(this.template.element.content,!0),s=[],i=this.template.parts,n=document.createTreeWalker(e,133,null,!1);let r,o=0,h=0,l=n.nextNode();for(;o<i.length;)if(r=i[o],a(r)){for(;h<r.index;)h++,"TEMPLATE"===l.nodeName&&(s.push(l),n.currentNode=l.content),null===(l=n.nextNode())&&(n.currentNode=s.pop(),l=n.nextNode());if("node"===r.type){const t=this.processor.handleTextExpression(this.options);t.insertAfterNode(l.previousSibling),this.__parts.push(t)}else this.__parts.push(...this.processor.handleAttributeExpressions(l,r.name,r.strings,this.options));o++}else this.__parts.push(void 0),o++;return t&&(document.adoptNode(e),customElements.upgrade(e)),e}}
|
|
43
|
+
/**
|
|
44
|
+
* @license
|
|
45
|
+
* Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
46
|
+
* This code may only be used under the BSD style license found at
|
|
47
|
+
* http://polymer.github.io/LICENSE.txt
|
|
48
|
+
* The complete set of authors may be found at
|
|
49
|
+
* http://polymer.github.io/AUTHORS.txt
|
|
50
|
+
* The complete set of contributors may be found at
|
|
51
|
+
* http://polymer.github.io/CONTRIBUTORS.txt
|
|
52
|
+
* Code distributed by Google as part of the polymer project is also
|
|
53
|
+
* subject to an additional IP rights grant found at
|
|
54
|
+
* http://polymer.github.io/PATENTS.txt
|
|
55
|
+
*/const f=` ${s} `;class v{constructor(t,e,s,i){this.strings=t,this.values=e,this.type=s,this.processor=i}getHTML(){const t=this.strings.length-1;let e="",n=!1;for(let r=0;r<t;r++){const t=this.strings[r],o=t.lastIndexOf("\x3c!--");n=(o>-1||n)&&-1===t.indexOf("--\x3e",o+1);const a=l.exec(t);e+=null===a?t+(n?f:i):t.substr(0,a.index)+a[1]+a[2]+"$lit$"+a[3]+s}return e+=this.strings[t],e}getTemplateElement(){const t=document.createElement("template");return t.innerHTML=this.getHTML(),t}}class w extends v{getHTML(){return`<svg>${super.getHTML()}</svg>`}getTemplateElement(){const t=super.getTemplateElement(),e=t.content,s=e.firstChild;return e.removeChild(s),((t,e,s=null,i=null)=>{for(;e!==s;){const s=e.nextSibling;t.insertBefore(e,i),e=s}})(e,s.firstChild),t}}
|
|
56
|
+
/**
|
|
57
|
+
* @license
|
|
58
|
+
* Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
59
|
+
* This code may only be used under the BSD style license found at
|
|
60
|
+
* http://polymer.github.io/LICENSE.txt
|
|
61
|
+
* The complete set of authors may be found at
|
|
62
|
+
* http://polymer.github.io/AUTHORS.txt
|
|
63
|
+
* The complete set of contributors may be found at
|
|
64
|
+
* http://polymer.github.io/CONTRIBUTORS.txt
|
|
65
|
+
* Code distributed by Google as part of the polymer project is also
|
|
66
|
+
* subject to an additional IP rights grant found at
|
|
67
|
+
* http://polymer.github.io/PATENTS.txt
|
|
68
|
+
*/const S=t=>null===t||!("object"==typeof t||"function"==typeof t),b=t=>Array.isArray(t)||!(!t||!t[Symbol.iterator]);class x{constructor(t,e,s){this.dirty=!0,this.element=t,this.name=e,this.strings=s,this.parts=[];for(let t=0;t<s.length-1;t++)this.parts[t]=this._createPart()}_createPart(){return new P(this)}_getValue(){const t=this.strings,e=t.length-1;let s="";for(let i=0;i<e;i++){s+=t[i];const e=this.parts[i];if(void 0!==e){const t=e.value;if(S(t)||!b(t))s+="string"==typeof t?t:String(t);else for(const e of t)s+="string"==typeof e?e:String(e)}}return s+=t[e],s}commit(){this.dirty&&(this.dirty=!1,this.element.setAttribute(this.name,this._getValue()))}}class P{constructor(t){this.value=void 0,this.committer=t}setValue(t){t===g||S(t)&&t===this.value||(this.value=t,_(t)||(this.committer.dirty=!0))}commit(){for(;_(this.value);){const t=this.value;this.value=g,t(this)}this.value!==g&&this.committer.commit()}}class N{constructor(t){this.value=void 0,this.__pendingValue=void 0,this.options=t}appendInto(t){this.startNode=t.appendChild(h()),this.endNode=t.appendChild(h())}insertAfterNode(t){this.startNode=t,this.endNode=t.nextSibling}appendIntoPart(t){t.__insert(this.startNode=h()),t.__insert(this.endNode=h())}insertAfterPart(t){t.__insert(this.startNode=h()),this.endNode=t.endNode,t.endNode=this.startNode}setValue(t){this.__pendingValue=t}commit(){if(null===this.startNode.parentNode)return;for(;_(this.__pendingValue);){const t=this.__pendingValue;this.__pendingValue=g,t(this)}const t=this.__pendingValue;t!==g&&(S(t)?t!==this.value&&this.__commitText(t):t instanceof v?this.__commitTemplateResult(t):t instanceof Node?this.__commitNode(t):b(t)?this.__commitIterable(t):t===m?(this.value=m,this.clear()):this.__commitText(t))}__insert(t){this.endNode.parentNode.insertBefore(t,this.endNode)}__commitNode(t){this.value!==t&&(this.clear(),this.__insert(t),this.value=t)}__commitText(t){const e=this.startNode.nextSibling,s="string"==typeof(t=null==t?"":t)?t:String(t);e===this.endNode.previousSibling&&3===e.nodeType?e.data=s:this.__commitNode(document.createTextNode(s)),this.value=t}__commitTemplateResult(t){const e=this.options.templateFactory(t);if(this.value instanceof y&&this.value.template===e)this.value.update(t.values);else{const s=new y(e,t.processor,this.options),i=s._clone();s.update(t.values),this.__commitNode(i),this.value=s}}__commitIterable(t){Array.isArray(this.value)||(this.value=[],this.clear());const e=this.value;let s,i=0;for(const n of t)s=e[i],void 0===s&&(s=new N(this.options),e.push(s),0===i?s.appendIntoPart(this):s.insertAfterPart(e[i-1])),s.setValue(n),s.commit(),i++;i<e.length&&(e.length=i,this.clear(s&&s.endNode))}clear(t=this.startNode){e(this.startNode.parentNode,t.nextSibling,this.endNode)}}class C{constructor(t,e,s){if(this.value=void 0,this.__pendingValue=void 0,2!==s.length||""!==s[0]||""!==s[1])throw new Error("Boolean attributes can only contain a single expression");this.element=t,this.name=e,this.strings=s}setValue(t){this.__pendingValue=t}commit(){for(;_(this.__pendingValue);){const t=this.__pendingValue;this.__pendingValue=g,t(this)}if(this.__pendingValue===g)return;const t=!!this.__pendingValue;this.value!==t&&(t?this.element.setAttribute(this.name,""):this.element.removeAttribute(this.name),this.value=t),this.__pendingValue=g}}class k extends x{constructor(t,e,s){super(t,e,s),this.single=2===s.length&&""===s[0]&&""===s[1]}_createPart(){return new A(this)}_getValue(){return this.single?this.parts[0].value:super._getValue()}commit(){this.dirty&&(this.dirty=!1,this.element[this.name]=this._getValue())}}class A extends P{}let E=!1;(()=>{try{const t={get capture(){return E=!0,!1}};window.addEventListener("test",t,t),window.removeEventListener("test",t,t)}catch(t){}})();class ${constructor(t,e,s){this.value=void 0,this.__pendingValue=void 0,this.element=t,this.eventName=e,this.eventContext=s,this.__boundHandleEvent=t=>this.handleEvent(t)}setValue(t){this.__pendingValue=t}commit(){for(;_(this.__pendingValue);){const t=this.__pendingValue;this.__pendingValue=g,t(this)}if(this.__pendingValue===g)return;const t=this.__pendingValue,e=this.value,s=null==t||null!=e&&(t.capture!==e.capture||t.once!==e.once||t.passive!==e.passive),i=null!=t&&(null==e||s);s&&this.element.removeEventListener(this.eventName,this.__boundHandleEvent,this.__options),i&&(this.__options=T(t),this.element.addEventListener(this.eventName,this.__boundHandleEvent,this.__options)),this.value=t,this.__pendingValue=g}handleEvent(t){"function"==typeof this.value?this.value.call(this.eventContext||this.element,t):this.value.handleEvent(t)}}const T=t=>t&&(E?{capture:t.capture,passive:t.passive,once:t.once}:t.capture)
|
|
69
|
+
/**
|
|
70
|
+
* @license
|
|
71
|
+
* Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
72
|
+
* This code may only be used under the BSD style license found at
|
|
73
|
+
* http://polymer.github.io/LICENSE.txt
|
|
74
|
+
* The complete set of authors may be found at
|
|
75
|
+
* http://polymer.github.io/AUTHORS.txt
|
|
76
|
+
* The complete set of contributors may be found at
|
|
77
|
+
* http://polymer.github.io/CONTRIBUTORS.txt
|
|
78
|
+
* Code distributed by Google as part of the polymer project is also
|
|
79
|
+
* subject to an additional IP rights grant found at
|
|
80
|
+
* http://polymer.github.io/PATENTS.txt
|
|
81
|
+
*/;function M(t){let e=V.get(t.type);void 0===e&&(e={stringsArray:new WeakMap,keyString:new Map},V.set(t.type,e));let i=e.stringsArray.get(t.strings);if(void 0!==i)return i;const n=t.strings.join(s);return i=e.keyString.get(n),void 0===i&&(i=new r(t,t.getTemplateElement()),e.keyString.set(n,i)),e.stringsArray.set(t.strings,i),i}const V=new Map,R=new WeakMap;
|
|
82
|
+
/**
|
|
83
|
+
* @license
|
|
84
|
+
* Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
85
|
+
* This code may only be used under the BSD style license found at
|
|
86
|
+
* http://polymer.github.io/LICENSE.txt
|
|
87
|
+
* The complete set of authors may be found at
|
|
88
|
+
* http://polymer.github.io/AUTHORS.txt
|
|
89
|
+
* The complete set of contributors may be found at
|
|
90
|
+
* http://polymer.github.io/CONTRIBUTORS.txt
|
|
91
|
+
* Code distributed by Google as part of the polymer project is also
|
|
92
|
+
* subject to an additional IP rights grant found at
|
|
93
|
+
* http://polymer.github.io/PATENTS.txt
|
|
94
|
+
*/const L=new
|
|
95
|
+
/**
|
|
96
|
+
* @license
|
|
97
|
+
* Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
98
|
+
* This code may only be used under the BSD style license found at
|
|
99
|
+
* http://polymer.github.io/LICENSE.txt
|
|
100
|
+
* The complete set of authors may be found at
|
|
101
|
+
* http://polymer.github.io/AUTHORS.txt
|
|
102
|
+
* The complete set of contributors may be found at
|
|
103
|
+
* http://polymer.github.io/CONTRIBUTORS.txt
|
|
104
|
+
* Code distributed by Google as part of the polymer project is also
|
|
105
|
+
* subject to an additional IP rights grant found at
|
|
106
|
+
* http://polymer.github.io/PATENTS.txt
|
|
107
|
+
*/
|
|
108
|
+
class{handleAttributeExpressions(t,e,s,i){const n=e[0];if("."===n){return new k(t,e.slice(1),s).parts}if("@"===n)return[new $(t,e.slice(1),i.eventContext)];if("?"===n)return[new C(t,e.slice(1),s)];return new x(t,e,s).parts}handleTextExpression(t){return new N(t)}};
|
|
109
|
+
/**
|
|
110
|
+
* @license
|
|
111
|
+
* Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
112
|
+
* This code may only be used under the BSD style license found at
|
|
113
|
+
* http://polymer.github.io/LICENSE.txt
|
|
114
|
+
* The complete set of authors may be found at
|
|
115
|
+
* http://polymer.github.io/AUTHORS.txt
|
|
116
|
+
* The complete set of contributors may be found at
|
|
117
|
+
* http://polymer.github.io/CONTRIBUTORS.txt
|
|
118
|
+
* Code distributed by Google as part of the polymer project is also
|
|
119
|
+
* subject to an additional IP rights grant found at
|
|
120
|
+
* http://polymer.github.io/PATENTS.txt
|
|
121
|
+
*/"undefined"!=typeof window&&(window.litHtmlVersions||(window.litHtmlVersions=[])).push("1.2.1");const U=(t,...e)=>new v(t,e,"html",L),O=(t,...e)=>new w(t,e,"svg",L)
|
|
122
|
+
/**
|
|
123
|
+
* @license
|
|
124
|
+
* Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
125
|
+
* This code may only be used under the BSD style license found at
|
|
126
|
+
* http://polymer.github.io/LICENSE.txt
|
|
127
|
+
* The complete set of authors may be found at
|
|
128
|
+
* http://polymer.github.io/AUTHORS.txt
|
|
129
|
+
* The complete set of contributors may be found at
|
|
130
|
+
* http://polymer.github.io/CONTRIBUTORS.txt
|
|
131
|
+
* Code distributed by Google as part of the polymer project is also
|
|
132
|
+
* subject to an additional IP rights grant found at
|
|
133
|
+
* http://polymer.github.io/PATENTS.txt
|
|
134
|
+
*/,q=(t,e)=>`${t}--${e}`;let H=!0;void 0===window.ShadyCSS?H=!1:void 0===window.ShadyCSS.prepareTemplateDom&&(console.warn("Incompatible ShadyCSS version detected. Please update to at least @webcomponents/webcomponentsjs@2.0.2 and @webcomponents/shadycss@1.3.1."),H=!1);const I=t=>e=>{const i=q(e.type,t);let n=V.get(i);void 0===n&&(n={stringsArray:new WeakMap,keyString:new Map},V.set(i,n));let o=n.stringsArray.get(e.strings);if(void 0!==o)return o;const a=e.strings.join(s);if(o=n.keyString.get(a),void 0===o){const s=e.getTemplateElement();H&&window.ShadyCSS.prepareTemplateDom(s,t),o=new r(e,s),n.keyString.set(a,o)}return n.stringsArray.set(e.strings,o),o},z=["html","svg"],B=new Set,j=(t,e,s)=>{B.add(t);const i=s?s.element:document.createElement("template"),n=e.querySelectorAll("style"),{length:r}=n;if(0===r)return void window.ShadyCSS.prepareTemplateStyles(i,t);const o=document.createElement("style");for(let t=0;t<r;t++){const e=n[t];e.parentNode.removeChild(e),o.textContent+=e.textContent}(t=>{z.forEach(e=>{const s=V.get(q(e,t));void 0!==s&&s.keyString.forEach(t=>{const{element:{content:e}}=t,s=new Set;Array.from(e.querySelectorAll("style")).forEach(t=>{s.add(t)}),d(t,s)})})})(t);const a=i.content;s?function(t,e,s=null){const{element:{content:i},parts:n}=t;if(null==s)return void i.appendChild(e);const r=document.createTreeWalker(i,133,null,!1);let o=u(n),a=0,h=-1;for(;r.nextNode();){h++;for(r.currentNode===s&&(a=c(e),s.parentNode.insertBefore(e,s));-1!==o&&n[o].index===h;){if(a>0){for(;-1!==o;)n[o].index+=a,o=u(n,o);return}o=u(n,o)}}}(s,o,a.firstChild):a.insertBefore(o,a.firstChild),window.ShadyCSS.prepareTemplateStyles(i,t);const h=a.querySelector("style");if(window.ShadyCSS.nativeShadow&&null!==h)e.insertBefore(h.cloneNode(!0),e.firstChild);else if(s){a.insertBefore(o,a.firstChild);const t=new Set;t.add(o),d(s,t)}};window.JSCompiler_renameProperty=(t,e)=>t;const F={toAttribute(t,e){switch(e){case Boolean:return t?"":null;case Object:case Array:return null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){switch(e){case Boolean:return null!==t;case Number:return null===t?null:Number(t);case Object:case Array:return JSON.parse(t)}return t}},W=(t,e)=>e!==t&&(e==e||t==t),D={attribute:!0,type:String,converter:F,reflect:!1,hasChanged:W};class J extends HTMLElement{constructor(){super(),this._updateState=0,this._instanceProperties=void 0,this._updatePromise=new Promise(t=>this._enableUpdatingResolver=t),this._changedProperties=new Map,this._reflectingProperties=void 0,this.initialize()}static get observedAttributes(){this.finalize();const t=[];return this._classProperties.forEach((e,s)=>{const i=this._attributeNameForProperty(s,e);void 0!==i&&(this._attributeToPropertyMap.set(i,s),t.push(i))}),t}static _ensureClassProperties(){if(!this.hasOwnProperty(JSCompiler_renameProperty("_classProperties",this))){this._classProperties=new Map;const t=Object.getPrototypeOf(this)._classProperties;void 0!==t&&t.forEach((t,e)=>this._classProperties.set(e,t))}}static createProperty(t,e=D){if(this._ensureClassProperties(),this._classProperties.set(t,e),e.noAccessor||this.prototype.hasOwnProperty(t))return;const s="symbol"==typeof t?Symbol():"__"+t,i=this.getPropertyDescriptor(t,s,e);void 0!==i&&Object.defineProperty(this.prototype,t,i)}static getPropertyDescriptor(t,e,s){return{get(){return this[e]},set(s){const i=this[t];this[e]=s,this._requestUpdate(t,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this._classProperties&&this._classProperties.get(t)||D}static finalize(){const t=Object.getPrototypeOf(this);if(t.hasOwnProperty("finalized")||t.finalize(),this.finalized=!0,this._ensureClassProperties(),this._attributeToPropertyMap=new Map,this.hasOwnProperty(JSCompiler_renameProperty("properties",this))){const t=this.properties,e=[...Object.getOwnPropertyNames(t),..."function"==typeof Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t):[]];for(const s of e)this.createProperty(s,t[s])}}static _attributeNameForProperty(t,e){const s=e.attribute;return!1===s?void 0:"string"==typeof s?s:"string"==typeof t?t.toLowerCase():void 0}static _valueHasChanged(t,e,s=W){return s(t,e)}static _propertyValueFromAttribute(t,e){const s=e.type,i=e.converter||F,n="function"==typeof i?i:i.fromAttribute;return n?n(t,s):t}static _propertyValueToAttribute(t,e){if(void 0===e.reflect)return;const s=e.type,i=e.converter;return(i&&i.toAttribute||F.toAttribute)(t,s)}initialize(){this._saveInstanceProperties(),this._requestUpdate()}_saveInstanceProperties(){this.constructor._classProperties.forEach((t,e)=>{if(this.hasOwnProperty(e)){const t=this[e];delete this[e],this._instanceProperties||(this._instanceProperties=new Map),this._instanceProperties.set(e,t)}})}_applyInstanceProperties(){this._instanceProperties.forEach((t,e)=>this[e]=t),this._instanceProperties=void 0}connectedCallback(){this.enableUpdating()}enableUpdating(){void 0!==this._enableUpdatingResolver&&(this._enableUpdatingResolver(),this._enableUpdatingResolver=void 0)}disconnectedCallback(){}attributeChangedCallback(t,e,s){e!==s&&this._attributeToProperty(t,s)}_propertyToAttribute(t,e,s=D){const i=this.constructor,n=i._attributeNameForProperty(t,s);if(void 0!==n){const t=i._propertyValueToAttribute(e,s);if(void 0===t)return;this._updateState=8|this._updateState,null==t?this.removeAttribute(n):this.setAttribute(n,t),this._updateState=-9&this._updateState}}_attributeToProperty(t,e){if(8&this._updateState)return;const s=this.constructor,i=s._attributeToPropertyMap.get(t);if(void 0!==i){const t=s.getPropertyOptions(i);this._updateState=16|this._updateState,this[i]=s._propertyValueFromAttribute(e,t),this._updateState=-17&this._updateState}}_requestUpdate(t,e){let s=!0;if(void 0!==t){const i=this.constructor,n=i.getPropertyOptions(t);i._valueHasChanged(this[t],e,n.hasChanged)?(this._changedProperties.has(t)||this._changedProperties.set(t,e),!0!==n.reflect||16&this._updateState||(void 0===this._reflectingProperties&&(this._reflectingProperties=new Map),this._reflectingProperties.set(t,n))):s=!1}!this._hasRequestedUpdate&&s&&(this._updatePromise=this._enqueueUpdate())}requestUpdate(t,e){return this._requestUpdate(t,e),this.updateComplete}async _enqueueUpdate(){this._updateState=4|this._updateState;try{await this._updatePromise}catch(t){}const t=this.performUpdate();return null!=t&&await t,!this._hasRequestedUpdate}get _hasRequestedUpdate(){return 4&this._updateState}get hasUpdated(){return 1&this._updateState}performUpdate(){this._instanceProperties&&this._applyInstanceProperties();let t=!1;const e=this._changedProperties;try{t=this.shouldUpdate(e),t?this.update(e):this._markUpdated()}catch(e){throw t=!1,this._markUpdated(),e}t&&(1&this._updateState||(this._updateState=1|this._updateState,this.firstUpdated(e)),this.updated(e))}_markUpdated(){this._changedProperties=new Map,this._updateState=-5&this._updateState}get updateComplete(){return this._getUpdateComplete()}_getUpdateComplete(){return this._updatePromise}shouldUpdate(t){return!0}update(t){void 0!==this._reflectingProperties&&this._reflectingProperties.size>0&&(this._reflectingProperties.forEach((t,e)=>this._propertyToAttribute(e,this[e],t)),this._reflectingProperties=void 0),this._markUpdated()}updated(t){}firstUpdated(t){}}J.finalized=!0;
|
|
135
|
+
/**
|
|
136
|
+
@license
|
|
137
|
+
Copyright (c) 2019 The Polymer Project Authors. All rights reserved.
|
|
138
|
+
This code may only be used under the BSD style license found at
|
|
139
|
+
http://polymer.github.io/LICENSE.txt The complete set of authors may be found at
|
|
140
|
+
http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
|
|
141
|
+
found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
|
|
142
|
+
part of the polymer project is also subject to an additional IP rights grant
|
|
143
|
+
found at http://polymer.github.io/PATENTS.txt
|
|
144
|
+
*/
|
|
145
|
+
const Z="adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,X=Symbol();class Y{constructor(t,e){if(e!==X)throw new Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t}get styleSheet(){return void 0===this._styleSheet&&(Z?(this._styleSheet=new CSSStyleSheet,this._styleSheet.replaceSync(this.cssText)):this._styleSheet=null),this._styleSheet}toString(){return this.cssText}}const G=(t,...e)=>{const s=e.reduce((e,s,i)=>e+(t=>{if(t instanceof Y)return t.cssText;if("number"==typeof t)return t;throw new Error(`Value passed to 'css' function must be a 'css' function result: ${t}. Use 'unsafeCSS' to pass non-literal values, but\n take care to ensure page security.`)})(s)+t[i+1],t[0]);return new Y(s,X)};
|
|
146
|
+
/**
|
|
147
|
+
* @license
|
|
148
|
+
* Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
149
|
+
* This code may only be used under the BSD style license found at
|
|
150
|
+
* http://polymer.github.io/LICENSE.txt
|
|
151
|
+
* The complete set of authors may be found at
|
|
152
|
+
* http://polymer.github.io/AUTHORS.txt
|
|
153
|
+
* The complete set of contributors may be found at
|
|
154
|
+
* http://polymer.github.io/CONTRIBUTORS.txt
|
|
155
|
+
* Code distributed by Google as part of the polymer project is also
|
|
156
|
+
* subject to an additional IP rights grant found at
|
|
157
|
+
* http://polymer.github.io/PATENTS.txt
|
|
158
|
+
*/
|
|
159
|
+
(window.litElementVersions||(window.litElementVersions=[])).push("2.3.1");const K={};class Q extends J{static getStyles(){return this.styles}static _getUniqueStyles(){if(this.hasOwnProperty(JSCompiler_renameProperty("_styles",this)))return;const t=this.getStyles();if(void 0===t)this._styles=[];else if(Array.isArray(t)){const e=(t,s)=>t.reduceRight((t,s)=>Array.isArray(s)?e(s,t):(t.add(s),t),s),s=e(t,new Set),i=[];s.forEach(t=>i.unshift(t)),this._styles=i}else this._styles=[t]}initialize(){super.initialize(),this.constructor._getUniqueStyles(),this.renderRoot=this.createRenderRoot(),window.ShadowRoot&&this.renderRoot instanceof window.ShadowRoot&&this.adoptStyles()}createRenderRoot(){return this.attachShadow({mode:"open"})}adoptStyles(){const t=this.constructor._styles;0!==t.length&&(void 0===window.ShadyCSS||window.ShadyCSS.nativeShadow?Z?this.renderRoot.adoptedStyleSheets=t.map(t=>t.styleSheet):this._needsShimAdoptedStyleSheets=!0:window.ShadyCSS.ScopingShim.prepareAdoptedCssText(t.map(t=>t.cssText),this.localName))}connectedCallback(){super.connectedCallback(),this.hasUpdated&&void 0!==window.ShadyCSS&&window.ShadyCSS.styleElement(this)}update(t){const e=this.render();super.update(t),e!==K&&this.constructor.render(e,this.renderRoot,{scopeName:this.localName,eventContext:this}),this._needsShimAdoptedStyleSheets&&(this._needsShimAdoptedStyleSheets=!1,this.constructor._styles.forEach(t=>{const e=document.createElement("style");e.textContent=t.cssText,this.renderRoot.appendChild(e)}))}render(){return K}}Q.finalized=!0,Q.render=(t,s,i)=>{if(!i||"object"!=typeof i||!i.scopeName)throw new Error("The `scopeName` option is required.");const n=i.scopeName,r=R.has(s),o=H&&11===s.nodeType&&!!s.host,a=o&&!B.has(n),h=a?document.createDocumentFragment():s;if(((t,s,i)=>{let n=R.get(s);void 0===n&&(e(s,s.firstChild),R.set(s,n=new N(Object.assign({templateFactory:M},i))),n.appendInto(s)),n.setValue(t),n.commit()})(t,h,Object.assign({templateFactory:I(n)},i)),a){const t=R.get(h);R.delete(h);const i=t.value instanceof y?t.value.template:void 0;j(n,h,i),e(s,s.firstChild),s.appendChild(h),R.set(s,t)}!r&&o&&window.ShadyCSS.styleElement(s.host)};customElements.define("round-slider",class extends Q{static get properties(){return{value:{type:Number},high:{type:Number},low:{type:Number},min:{type:Number},max:{type:Number},step:{type:Number},startAngle:{type:Number},arcLength:{type:Number},handleSize:{type:Number},handleZoom:{type:Number},readonly:{type:Boolean},disabled:{type:Boolean},dragging:{type:Boolean,reflect:!0},rtl:{type:Boolean},_scale:{type:Number},valueLabel:{type:String},lowLabel:{type:String},highLabel:{type:String}}}constructor(){super(),this.min=0,this.max=100,this.step=1,this.startAngle=135,this.arcLength=270,this.handleSize=6,this.handleZoom=1.5,this.readonly=!1,this.disabled=!1,this.dragging=!1,this.rtl=!1,this._scale=1,this.attachedListeners=!1}get _start(){return this.startAngle*Math.PI/180}get _len(){return Math.min(this.arcLength*Math.PI/180,2*Math.PI-.01)}get _end(){return this._start+this._len}get _showHandle(){return!this.readonly&&(null!=this.value||null!=this.high&&null!=this.low)}_angleInside(t){let e=(this.startAngle+this.arcLength/2-t+180+360)%360-180;return e<this.arcLength/2&&e>-this.arcLength/2}_angle2xy(t){return this.rtl?{x:-Math.cos(t),y:Math.sin(t)}:{x:Math.cos(t),y:Math.sin(t)}}_xy2angle(t,e){return this.rtl&&(t=-t),(Math.atan2(e,t)-this._start+2*Math.PI)%(2*Math.PI)}_value2angle(t){const e=((t=Math.min(this.max,Math.max(this.min,t)))-this.min)/(this.max-this.min);return this._start+e*this._len}_angle2value(t){return Math.round((t/this._len*(this.max-this.min)+this.min)/this.step)*this.step}get _boundaries(){const t=this._angle2xy(this._start),e=this._angle2xy(this._end);let s=1;this._angleInside(270)||(s=Math.max(-t.y,-e.y));let i=1;this._angleInside(90)||(i=Math.max(t.y,e.y));let n=1;this._angleInside(180)||(n=Math.max(-t.x,-e.x));let r=1;return this._angleInside(0)||(r=Math.max(t.x,e.x)),{up:s,down:i,left:n,right:r,height:s+i,width:n+r}}_mouse2value(t){const e=t.type.startsWith("touch")?t.touches[0].clientX:t.clientX,s=t.type.startsWith("touch")?t.touches[0].clientY:t.clientY,i=this.shadowRoot.querySelector("svg").getBoundingClientRect(),n=this._boundaries,r=e-(i.left+n.left*i.width/n.width),o=s-(i.top+n.up*i.height/n.height),a=this._xy2angle(r,o);return this._angle2value(a)}dragStart(t){if(!this._showHandle||this.disabled)return;let e=t.target,s=void 0;if(this._rotation&&"focus"!==this._rotation.type)return;if(e.classList.contains("shadowpath"))if("touchstart"===t.type&&(s=window.setTimeout(()=>{this._rotation&&(this._rotation.cooldown=void 0)},200)),null==this.low)e=this.shadowRoot.querySelector("#value");else{const s=this._mouse2value(t);e=Math.abs(s-this.low)<Math.abs(s-this.high)?this.shadowRoot.querySelector("#low"):this.shadowRoot.querySelector("#high")}if(e.classList.contains("overflow")&&(e=e.nextElementSibling),!e.classList.contains("handle"))return;e.setAttribute("stroke-width",2*this.handleSize*this.handleZoom*this._scale);const i="high"===e.id?this.low:this.min,n="low"===e.id?this.high:this.max;this._rotation={handle:e,min:i,max:n,start:this[e.id],type:t.type,cooldown:s},this.dragging=!0}_cleanupRotation(){const t=this._rotation.handle;t.setAttribute("stroke-width",2*this.handleSize*this._scale),this._rotation=!1,this.dragging=!1,t.blur()}dragEnd(t){if(!this._showHandle||this.disabled)return;if(!this._rotation)return;const e=this._rotation.handle;this._cleanupRotation();let s=new CustomEvent("value-changed",{detail:{[e.id]:this[e.id]},bubbles:!0,composed:!0});this.dispatchEvent(s),this.low&&this.low>=.99*this.max?this._reverseOrder=!0:this._reverseOrder=!1}drag(t){if(!this._showHandle||this.disabled)return;if(!this._rotation)return;if(this._rotation.cooldown)return window.clearTimeout(this._rotation.coldown),void this._cleanupRotation();if("focus"===this._rotation.type)return;t.preventDefault();const e=this._mouse2value(t);this._dragpos(e)}_dragpos(t){if(t<this._rotation.min||t>this._rotation.max)return;const e=this._rotation.handle;this[e.id]=t;let s=new CustomEvent("value-changing",{detail:{[e.id]:t},bubbles:!0,composed:!0});this.dispatchEvent(s)}_keyStep(t){if(!this._showHandle||this.disabled)return;if(!this._rotation)return;const e=this._rotation.handle;"ArrowLeft"!==t.key&&"ArrowDown"!==t.key||(t.preventDefault(),this.rtl?this._dragpos(this[e.id]+this.step):this._dragpos(this[e.id]-this.step)),"ArrowRight"!==t.key&&"ArrowUp"!==t.key||(t.preventDefault(),this.rtl?this._dragpos(this[e.id]-this.step):this._dragpos(this[e.id]+this.step)),"Home"===t.key&&(t.preventDefault(),this._dragpos(this.min)),"End"===t.key&&(t.preventDefault(),this._dragpos(this.max))}firstUpdated(){document.addEventListener("mouseup",this.dragEnd.bind(this)),document.addEventListener("touchend",this.dragEnd.bind(this),{passive:!1}),document.addEventListener("mousemove",this.drag.bind(this)),document.addEventListener("touchmove",this.drag.bind(this),{passive:!1}),document.addEventListener("keydown",this._keyStep.bind(this))}updated(t){if(this.shadowRoot.querySelector(".slider")){const t=window.getComputedStyle(this.shadowRoot.querySelector(".slider"));if(t&&t.strokeWidth){const e=parseFloat(t.strokeWidth);if(e>this.handleSize*this.handleZoom){const t=this._boundaries,s=`\n ${e/2*Math.abs(t.up)}px\n ${e/2*Math.abs(t.right)}px\n ${e/2*Math.abs(t.down)}px\n ${e/2*Math.abs(t.left)}px`;this.shadowRoot.querySelector("svg").style.margin=s}}}if(this.shadowRoot.querySelector("svg")&&void 0===this.shadowRoot.querySelector("svg").style.vectorEffect){t.has("_scale")&&1!=this._scale&&this.shadowRoot.querySelector("svg").querySelectorAll("path").forEach(t=>{if(t.getAttribute("stroke-width"))return;const e=parseFloat(getComputedStyle(t).getPropertyValue("stroke-width"));t.style.strokeWidth=e*this._scale+"px"});const e=this.shadowRoot.querySelector("svg").getBoundingClientRect(),s=Math.max(e.width,e.height);this._scale=2/s}}_renderArc(t,e){const s=e-t;return t=this._angle2xy(t),e=this._angle2xy(e+.001),`\n M ${t.x} ${t.y}\n A 1 1,\n 0,\n ${s>Math.PI?"1":"0"} ${this.rtl?"0":"1"},\n ${e.x} ${e.y}\n `}_renderHandle(t){const e=this._value2angle(this[t]),s=this._angle2xy(e),i={value:this.valueLabel,low:this.lowLabel,high:this.highLabel}[t]||"";return O`
|
|
160
|
+
<g class="${t} handle">
|
|
161
|
+
<path
|
|
162
|
+
id=${t}
|
|
163
|
+
class="overflow"
|
|
164
|
+
d="
|
|
165
|
+
M ${s.x} ${s.y}
|
|
166
|
+
L ${s.x+.001} ${s.y+.001}
|
|
167
|
+
"
|
|
168
|
+
vector-effect="non-scaling-stroke"
|
|
169
|
+
stroke="rgba(0,0,0,0)"
|
|
170
|
+
stroke-width="${4*this.handleSize*this._scale}"
|
|
171
|
+
/>
|
|
172
|
+
<path
|
|
173
|
+
id=${t}
|
|
174
|
+
class="handle"
|
|
175
|
+
d="
|
|
176
|
+
M ${s.x} ${s.y}
|
|
177
|
+
L ${s.x+.001} ${s.y+.001}
|
|
178
|
+
"
|
|
179
|
+
vector-effect="non-scaling-stroke"
|
|
180
|
+
stroke-width="${2*this.handleSize*this._scale}"
|
|
181
|
+
tabindex="0"
|
|
182
|
+
@focus=${this.dragStart}
|
|
183
|
+
@blur=${this.dragEnd}
|
|
184
|
+
role="slider"
|
|
185
|
+
aria-valuemin=${this.min}
|
|
186
|
+
aria-valuemax=${this.max}
|
|
187
|
+
aria-valuenow=${this[t]}
|
|
188
|
+
aria-disabled=${this.disabled}
|
|
189
|
+
aria-label=${i||""}
|
|
190
|
+
/>
|
|
191
|
+
</g>
|
|
192
|
+
`}render(){const t=this._boundaries;return U`
|
|
193
|
+
<svg
|
|
194
|
+
@mousedown=${this.dragStart}
|
|
195
|
+
@touchstart=${this.dragStart}
|
|
196
|
+
xmln="http://www.w3.org/2000/svg"
|
|
197
|
+
viewBox="${-t.left} ${-t.up} ${t.width} ${t.height}"
|
|
198
|
+
style="margin: ${this.handleSize*this.handleZoom}px;"
|
|
199
|
+
?disabled=${this.disabled}
|
|
200
|
+
focusable="false"
|
|
201
|
+
>
|
|
202
|
+
<g class="slider">
|
|
203
|
+
<path
|
|
204
|
+
class="path"
|
|
205
|
+
d=${this._renderArc(this._start,this._end)}
|
|
206
|
+
vector-effect="non-scaling-stroke"
|
|
207
|
+
/>
|
|
208
|
+
<path
|
|
209
|
+
class="bar"
|
|
210
|
+
vector-effect="non-scaling-stroke"
|
|
211
|
+
d=${this._renderArc(this._value2angle(null!=this.low?this.low:this.min),this._value2angle(null!=this.high?this.high:this.value))}
|
|
212
|
+
/>
|
|
213
|
+
<path
|
|
214
|
+
class="shadowpath"
|
|
215
|
+
d=${this._renderArc(this._start,this._end)}
|
|
216
|
+
vector-effect="non-scaling-stroke"
|
|
217
|
+
stroke="rgba(0,0,0,0)"
|
|
218
|
+
stroke-width="${3*this.handleSize*this._scale}"
|
|
219
|
+
stroke-linecap="butt"
|
|
220
|
+
/>
|
|
221
|
+
|
|
222
|
+
</g>
|
|
223
|
+
|
|
224
|
+
<g class="handles">
|
|
225
|
+
${this._showHandle?null!=this.low?this._reverseOrder?U`${this._renderHandle("high")} ${this._renderHandle("low")}`:U`${this._renderHandle("low")} ${this._renderHandle("high")}`:U`${this._renderHandle("value")}`:""}
|
|
226
|
+
</g>
|
|
227
|
+
</svg>
|
|
228
|
+
`}static get styles(){return G`
|
|
229
|
+
:host {
|
|
230
|
+
display: inline-block;
|
|
231
|
+
width: 100%;
|
|
232
|
+
}
|
|
233
|
+
svg {
|
|
234
|
+
overflow: visible;
|
|
235
|
+
display: block;
|
|
236
|
+
}
|
|
237
|
+
path {
|
|
238
|
+
transition: stroke 1s ease-out, stroke-width 200ms ease-out;
|
|
239
|
+
}
|
|
240
|
+
.slider {
|
|
241
|
+
fill: none;
|
|
242
|
+
stroke-width: var(--round-slider-path-width, 3);
|
|
243
|
+
stroke-linecap: var(--round-slider-linecap, round);
|
|
244
|
+
}
|
|
245
|
+
.path {
|
|
246
|
+
stroke: var(--round-slider-path-color, lightgray);
|
|
247
|
+
}
|
|
248
|
+
.bar {
|
|
249
|
+
stroke: var(--round-slider-bar-color, deepskyblue);
|
|
250
|
+
}
|
|
251
|
+
svg[disabled] .bar {
|
|
252
|
+
stroke: var(--round-slider-disabled-bar-color, darkgray);
|
|
253
|
+
}
|
|
254
|
+
g.handles {
|
|
255
|
+
stroke: var(--round-slider-handle-color, var(--round-slider-bar-color, deepskyblue));
|
|
256
|
+
stroke-linecap: round;
|
|
257
|
+
cursor: var(--round-slider-handle-cursor, pointer);
|
|
258
|
+
}
|
|
259
|
+
g.low.handle {
|
|
260
|
+
stroke: var(--round-slider-low-handle-color);
|
|
261
|
+
}
|
|
262
|
+
g.high.handle {
|
|
263
|
+
stroke: var(--round-slider-high-handle-color);
|
|
264
|
+
}
|
|
265
|
+
svg[disabled] g.handles {
|
|
266
|
+
stroke: var(--round-slider-disabled-bar-color, darkgray);
|
|
267
|
+
}
|
|
268
|
+
.handle:focus {
|
|
269
|
+
outline: unset;
|
|
270
|
+
}
|
|
271
|
+
`}})}();
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
/*! @sentry/browser 6.2.2 (547a01e) | https://github.com/getsentry/sentry-javascript */
|
|
2
|
+
var Sentry=function(t){var n=function(t,r){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var r in n)n.hasOwnProperty(r)&&(t[r]=n[r])})(t,r)};function r(t,r){function i(){this.constructor=t}n(t,r),t.prototype=null===r?Object.create(r):(i.prototype=r.prototype,new i)}var i,e,o,u,s,c=function(){return(c=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++)for(var e in n=arguments[r])Object.prototype.hasOwnProperty.call(n,e)&&(t[e]=n[e]);return t}).apply(this,arguments)};function a(t){var n="function"==typeof Symbol&&t[Symbol.iterator],r=0;return n?n.call(t):{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}}}function f(t,n){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var i,e,o=r.call(t),u=[];try{for(;(void 0===n||n-- >0)&&!(i=o.next()).done;)u.push(i.value)}catch(t){e={error:t}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(e)throw e.error}}return u}function h(){for(var t=[],n=0;n<arguments.length;n++)t=t.concat(f(arguments[n]));return t}function v(t){switch(Object.prototype.toString.call(t)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return E(t,Error)}}function l(t){return"[object ErrorEvent]"===Object.prototype.toString.call(t)}function d(t){return"[object DOMError]"===Object.prototype.toString.call(t)}function p(t){return"[object String]"===Object.prototype.toString.call(t)}function y(t){return null===t||"object"!=typeof t&&"function"!=typeof t}function m(t){return"[object Object]"===Object.prototype.toString.call(t)}function b(t){return"undefined"!=typeof Event&&E(t,Event)}function w(t){return"undefined"!=typeof Element&&E(t,Element)}function g(t){return Boolean(t&&t.then&&"function"==typeof t.then)}function E(t,n){try{return t instanceof n}catch(t){return!1}}function x(t){try{for(var n=t,r=[],i=0,e=0,o=" > ".length,u=void 0;n&&i++<5&&!("html"===(u=j(n))||i>1&&e+r.length*o+u.length>=80);)r.push(u),e+=u.length,n=n.parentNode;return r.reverse().join(" > ")}catch(t){return"<unknown>"}}function j(t){var n,r,i,e,o,u=t,s=[];if(!u||!u.tagName)return"";if(s.push(u.tagName.toLowerCase()),u.id&&s.push("#"+u.id),(n=u.className)&&p(n))for(r=n.split(/\s+/),o=0;o<r.length;o++)s.push("."+r[o]);var c=["type","name","title","alt"];for(o=0;o<c.length;o++)i=c[o],(e=u.getAttribute(i))&&s.push("["+i+'="'+e+'"]');return s.join("")}!function(t){t[t.None=0]="None",t[t.Error=1]="Error",t[t.Debug=2]="Debug",t[t.Verbose=3]="Verbose"}(i||(i={})),function(t){t.Ok="ok",t.Exited="exited",t.Crashed="crashed",t.Abnormal="abnormal"}(e||(e={})),(o=t.Severity||(t.Severity={})).Fatal="fatal",o.Error="error",o.Warning="warning",o.Log="log",o.Info="info",o.Debug="debug",o.Critical="critical",function(t){t.fromString=function(n){switch(n){case"debug":return t.Debug;case"info":return t.Info;case"warn":case"warning":return t.Warning;case"error":return t.Error;case"fatal":return t.Fatal;case"critical":return t.Critical;case"log":default:return t.Log}}}(t.Severity||(t.Severity={})),(u=t.Status||(t.Status={})).Unknown="unknown",u.Skipped="skipped",u.Success="success",u.RateLimit="rate_limit",u.Invalid="invalid",u.Failed="failed",function(t){t.fromHttpCode=function(n){return n>=200&&n<300?t.Success:429===n?t.RateLimit:n>=400&&n<500?t.Invalid:n>=500?t.Failed:t.Unknown}}(t.Status||(t.Status={})),function(t){t.Explicit="explicitly_set",t.Sampler="client_sampler",t.Rate="client_rate",t.Inheritance="inheritance"}(s||(s={}));var k=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,n){return t.__proto__=n,t}:function(t,n){for(var r in n)t.hasOwnProperty(r)||(t[r]=n[r]);return t});var S=function(t){function n(n){var r=this.constructor,i=t.call(this,n)||this;return i.message=n,i.name=r.prototype.constructor.name,k(i,r.prototype),i}return r(n,t),n}(Error),_=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+))?@)([\w.-]+)(?::(\d+))?\/(.+)/,O=function(){function t(t){"string"==typeof t?this.t(t):this.i(t),this.o()}return t.prototype.toString=function(t){void 0===t&&(t=!1);var n=this,r=n.host,i=n.path,e=n.pass,o=n.port,u=n.projectId;return n.protocol+"://"+n.publicKey+(t&&e?":"+e:"")+"@"+r+(o?":"+o:"")+"/"+(i?i+"/":i)+u},t.prototype.t=function(t){var n=_.exec(t);if(!n)throw new S("Invalid Dsn");var r=f(n.slice(1),6),i=r[0],e=r[1],o=r[2],u=void 0===o?"":o,s=r[3],c=r[4],a=void 0===c?"":c,h="",v=r[5],l=v.split("/");if(l.length>1&&(h=l.slice(0,-1).join("/"),v=l.pop()),v){var d=v.match(/^\d+/);d&&(v=d[0])}this.i({host:s,pass:u,path:h,projectId:v,port:a,protocol:i,publicKey:e})},t.prototype.i=function(t){"user"in t&&!("publicKey"in t)&&(t.publicKey=t.user),this.user=t.publicKey||"",this.protocol=t.protocol,this.publicKey=t.publicKey||"",this.pass=t.pass||"",this.host=t.host,this.port=t.port||"",this.path=t.path||"",this.projectId=t.projectId},t.prototype.o=function(){var t=this;if(["protocol","publicKey","host","projectId"].forEach(function(n){if(!t[n])throw new S("Invalid Dsn: "+n+" missing")}),!this.projectId.match(/^\d+$/))throw new S("Invalid Dsn: Invalid projectId "+this.projectId);if("http"!==this.protocol&&"https"!==this.protocol)throw new S("Invalid Dsn: Invalid protocol "+this.protocol);if(this.port&&isNaN(parseInt(this.port,10)))throw new S("Invalid Dsn: Invalid port "+this.port)},t}();function D(){return"[object process]"===Object.prototype.toString.call("undefined"!=typeof process?process:0)}function T(t,n){return void 0===n&&(n=0),"string"!=typeof t||0===n?t:t.length<=n?t:t.substr(0,n)+"..."}function R(t,n){if(!Array.isArray(t))return"";for(var r=[],i=0;i<t.length;i++){var e=t[i];try{r.push(String(e))}catch(t){r.push("[value cannot be serialized]")}}return r.join(n)}function I(t,n){return!!p(t)&&(r=n,"[object RegExp]"===Object.prototype.toString.call(r)?n.test(t):"string"==typeof n&&-1!==t.indexOf(n));var r}var N={};function C(){return D()?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:N}function A(){var t=C(),n=t.crypto||t.msCrypto;if(void 0!==n&&n.getRandomValues){var r=new Uint16Array(8);n.getRandomValues(r),r[3]=4095&r[3]|16384,r[4]=16383&r[4]|32768;var i=function(t){for(var n=t.toString(16);n.length<4;)n="0"+n;return n};return i(r[0])+i(r[1])+i(r[2])+i(r[3])+i(r[4])+i(r[5])+i(r[6])+i(r[7])}return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,function(t){var n=16*Math.random()|0;return("x"===t?n:3&n|8).toString(16)})}function M(t){if(!t)return{};var n=t.match(/^(([^:\/?#]+):)?(\/\/([^\/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!n)return{};var r=n[6]||"",i=n[8]||"";return{host:n[4],path:n[5],protocol:n[2],relative:n[5]+r+i}}function q(t){if(t.message)return t.message;if(t.exception&&t.exception.values&&t.exception.values[0]){var n=t.exception.values[0];return n.type&&n.value?n.type+": "+n.value:n.type||n.value||t.event_id||"<unknown>"}return t.event_id||"<unknown>"}function L(t){var n=C();if(!("console"in n))return t();var r=n.console,i={};["debug","info","warn","error","log","assert"].forEach(function(t){t in n.console&&r[t].__sentry_original__&&(i[t]=r[t],r[t]=r[t].__sentry_original__)});var e=t();return Object.keys(i).forEach(function(t){r[t]=i[t]}),e}function U(t,n,r){t.exception=t.exception||{},t.exception.values=t.exception.values||[],t.exception.values[0]=t.exception.values[0]||{},t.exception.values[0].value=t.exception.values[0].value||n||"",t.exception.values[0].type=t.exception.values[0].type||r||"Error"}function H(t,n){void 0===n&&(n={});try{t.exception.values[0].mechanism=t.exception.values[0].mechanism||{},Object.keys(n).forEach(function(r){t.exception.values[0].mechanism[r]=n[r]})}catch(t){}}var F=6e4;var P=C(),X="Sentry Logger ",B=function(){function t(){this.u=!1}return t.prototype.disable=function(){this.u=!1},t.prototype.enable=function(){this.u=!0},t.prototype.log=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];this.u&&L(function(){P.console.log(X+"[Log]: "+t.join(" "))})},t.prototype.warn=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];this.u&&L(function(){P.console.warn(X+"[Warn]: "+t.join(" "))})},t.prototype.error=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];this.u&&L(function(){P.console.error(X+"[Error]: "+t.join(" "))})},t}();P.__SENTRY__=P.__SENTRY__||{};var J=P.__SENTRY__.logger||(P.__SENTRY__.logger=new B),W=function(){function t(){this.s="function"==typeof WeakSet,this.h=this.s?new WeakSet:[]}return t.prototype.memoize=function(t){if(this.s)return!!this.h.has(t)||(this.h.add(t),!1);for(var n=0;n<this.h.length;n++){if(this.h[n]===t)return!0}return this.h.push(t),!1},t.prototype.unmemoize=function(t){if(this.s)this.h.delete(t);else for(var n=0;n<this.h.length;n++)if(this.h[n]===t){this.h.splice(n,1);break}},t}(),$="<anonymous>";function G(t){try{return t&&"function"==typeof t&&t.name||$}catch(t){return $}}function z(t,n,r){if(n in t){var i=t[n],e=r(i);if("function"==typeof e)try{e.prototype=e.prototype||{},Object.defineProperties(e,{__sentry_original__:{enumerable:!1,value:i}})}catch(t){}t[n]=e}}function K(t){if(v(t)){var n=t,r={message:n.message,name:n.name,stack:n.stack};for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i]);return r}if(b(t)){var e=t,o={};o.type=e.type;try{o.target=w(e.target)?x(e.target):Object.prototype.toString.call(e.target)}catch(t){o.target="<unknown>"}try{o.currentTarget=w(e.currentTarget)?x(e.currentTarget):Object.prototype.toString.call(e.currentTarget)}catch(t){o.currentTarget="<unknown>"}for(var i in"undefined"!=typeof CustomEvent&&E(t,CustomEvent)&&(o.detail=e.detail),e)Object.prototype.hasOwnProperty.call(e,i)&&(o[i]=e);return o}return t}function V(t){return function(t){return~-encodeURI(t).split(/%..|./).length}(JSON.stringify(t))}function Q(t,n,r){void 0===n&&(n=3),void 0===r&&(r=102400);var i=tt(t,n);return V(i)>r?Q(t,n-1,r):i}function Y(t,n){return"domain"===n&&t&&"object"==typeof t&&t.v?"[Domain]":"domainEmitter"===n?"[DomainEmitter]":"undefined"!=typeof global&&t===global?"[Global]":"undefined"!=typeof window&&t===window?"[Window]":"undefined"!=typeof document&&t===document?"[Document]":m(r=t)&&"nativeEvent"in r&&"preventDefault"in r&&"stopPropagation"in r?"[SyntheticEvent]":"number"==typeof t&&t!=t?"[NaN]":void 0===t?"[undefined]":"function"==typeof t?"[Function: "+G(t)+"]":"symbol"==typeof t?"["+String(t)+"]":"bigint"==typeof t?"[BigInt: "+String(t)+"]":t;var r}function Z(t,n,r,i){if(void 0===r&&(r=1/0),void 0===i&&(i=new W),0===r)return function(t){var n=Object.prototype.toString.call(t);if("string"==typeof t)return t;if("[object Object]"===n)return"[Object]";if("[object Array]"===n)return"[Array]";var r=Y(t);return y(r)?r:n}(n);if(null!=n&&"function"==typeof n.toJSON)return n.toJSON();var e=Y(n,t);if(y(e))return e;var o=K(n),u=Array.isArray(n)?[]:{};if(i.memoize(n))return"[Circular ~]";for(var s in o)Object.prototype.hasOwnProperty.call(o,s)&&(u[s]=Z(s,o[s],r-1,i));return i.unmemoize(n),u}function tt(t,n){try{return JSON.parse(JSON.stringify(t,function(t,r){return Z(t,r,n)}))}catch(t){return"**non-serializable**"}}function nt(t,n){void 0===n&&(n=40);var r=Object.keys(K(t));if(r.sort(),!r.length)return"[object has no keys]";if(r[0].length>=n)return T(r[0],n);for(var i=r.length;i>0;i--){var e=r.slice(0,i).join(", ");if(!(e.length>n))return i===r.length?e:T(e,n)}return""}function rt(t){var n,r;if(m(t)){var i=t,e={};try{for(var o=a(Object.keys(i)),u=o.next();!u.done;u=o.next()){var s=u.value;void 0!==i[s]&&(e[s]=rt(i[s]))}}catch(t){n={error:t}}finally{try{u&&!u.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}return e}return Array.isArray(t)?t.map(rt):t}function it(){if(!("fetch"in C()))return!1;try{return new Headers,new Request(""),new Response,!0}catch(t){return!1}}function et(t){return t&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(t.toString())}function ot(){if(!it())return!1;try{return new Request("_",{referrerPolicy:"origin"}),!0}catch(t){return!1}}var ut,st=C(),ct={},at={};function ft(t){if(!at[t])switch(at[t]=!0,t){case"console":!function(){if(!("console"in st))return;["debug","info","warn","error","log","assert"].forEach(function(t){t in st.console&&z(st.console,t,function(n){return function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];vt("console",{args:r,level:t}),n&&Function.prototype.apply.call(n,st.console,r)}})})}();break;case"dom":!function(){if(!("document"in st))return;var t=vt.bind(null,"dom"),n=bt(t,!0);st.document.addEventListener("click",n,!1),st.document.addEventListener("keypress",n,!1),["EventTarget","Node"].forEach(function(n){var r=st[n]&&st[n].prototype;r&&r.hasOwnProperty&&r.hasOwnProperty("addEventListener")&&(z(r,"addEventListener",function(n){return function(r,i,e){if("click"===r||"keypress"==r)try{var o=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},u=o[r]=o[r]||{refCount:0};if(!u.handler){var s=bt(t);u.handler=s,n.call(this,r,s,e)}u.refCount+=1}catch(t){}return n.call(this,r,i,e)}}),z(r,"removeEventListener",function(t){return function(n,r,i){if("click"===n||"keypress"==n)try{var e=this.__sentry_instrumentation_handlers__||{},o=e[n];o&&(o.refCount-=1,o.refCount<=0&&(t.call(this,n,o.handler,i),o.handler=void 0,delete e[n]),0===Object.keys(e).length&&delete this.__sentry_instrumentation_handlers__)}catch(t){}return t.call(this,n,r,i)}}))})}();break;case"xhr":!function(){if(!("XMLHttpRequest"in st))return;var t=[],n=[],r=XMLHttpRequest.prototype;z(r,"open",function(r){return function(){for(var i=[],e=0;e<arguments.length;e++)i[e]=arguments[e];var o=this,u=i[1];o.__sentry_xhr__={method:p(i[0])?i[0].toUpperCase():i[0],url:i[1]},p(u)&&"POST"===o.__sentry_xhr__.method&&u.match(/sentry_key/)&&(o.__sentry_own_request__=!0);var s=function(){if(4===o.readyState){try{o.__sentry_xhr__&&(o.__sentry_xhr__.status_code=o.status)}catch(t){}try{var r=t.indexOf(o);if(-1!==r){t.splice(r);var e=n.splice(r)[0];o.__sentry_xhr__&&void 0!==e[0]&&(o.__sentry_xhr__.body=e[0])}}catch(t){}vt("xhr",{args:i,endTimestamp:Date.now(),startTimestamp:Date.now(),xhr:o})}};return"onreadystatechange"in o&&"function"==typeof o.onreadystatechange?z(o,"onreadystatechange",function(t){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return s(),t.apply(o,n)}}):o.addEventListener("readystatechange",s),r.apply(o,i)}}),z(r,"send",function(r){return function(){for(var i=[],e=0;e<arguments.length;e++)i[e]=arguments[e];return t.push(this),n.push(i),vt("xhr",{args:i,startTimestamp:Date.now(),xhr:this}),r.apply(this,i)}})}();break;case"fetch":!function(){if(!function(){if(!it())return!1;var t=C();if(et(t.fetch))return!0;var n=!1,r=t.document;if(r&&"function"==typeof r.createElement)try{var i=r.createElement("iframe");i.hidden=!0,r.head.appendChild(i),i.contentWindow&&i.contentWindow.fetch&&(n=et(i.contentWindow.fetch)),r.head.removeChild(i)}catch(t){J.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",t)}return n}())return;z(st,"fetch",function(t){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var i={args:n,fetchData:{method:lt(n),url:dt(n)},startTimestamp:Date.now()};return vt("fetch",c({},i)),t.apply(st,n).then(function(t){return vt("fetch",c(c({},i),{endTimestamp:Date.now(),response:t})),t},function(t){throw vt("fetch",c(c({},i),{endTimestamp:Date.now(),error:t})),t})}})}();break;case"history":!function(){if(t=C(),n=t.chrome,r=n&&n.app&&n.app.runtime,i="history"in t&&!!t.history.pushState&&!!t.history.replaceState,r||!i)return;var t,n,r,i;var e=st.onpopstate;function o(t){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var i=n.length>2?n[2]:void 0;if(i){var e=ut,o=String(i);ut=o,vt("history",{from:e,to:o})}return t.apply(this,n)}}st.onpopstate=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=st.location.href,i=ut;if(ut=r,vt("history",{from:i,to:r}),e)return e.apply(this,t)},z(st.history,"pushState",o),z(st.history,"replaceState",o)}();break;case"error":wt=st.onerror,st.onerror=function(t,n,r,i,e){return vt("error",{column:i,error:e,line:r,msg:t,url:n}),!!wt&&wt.apply(this,arguments)};break;case"unhandledrejection":Et=st.onunhandledrejection,st.onunhandledrejection=function(t){return vt("unhandledrejection",t),!Et||Et.apply(this,arguments)};break;default:J.warn("unknown instrumentation type:",t)}}function ht(t){t&&"string"==typeof t.type&&"function"==typeof t.callback&&(ct[t.type]=ct[t.type]||[],ct[t.type].push(t.callback),ft(t.type))}function vt(t,n){var r,i;if(t&&ct[t])try{for(var e=a(ct[t]||[]),o=e.next();!o.done;o=e.next()){var u=o.value;try{u(n)}catch(n){J.error("Error while triggering instrumentation handler.\nType: "+t+"\nName: "+G(u)+"\nError: "+n)}}}catch(t){r={error:t}}finally{try{o&&!o.done&&(i=e.return)&&i.call(e)}finally{if(r)throw r.error}}}function lt(t){return void 0===t&&(t=[]),"Request"in st&&E(t[0],Request)&&t[0].method?String(t[0].method).toUpperCase():t[1]&&t[1].method?String(t[1].method).toUpperCase():"GET"}function dt(t){return void 0===t&&(t=[]),"string"==typeof t[0]?t[0]:"Request"in st&&E(t[0],Request)?t[0].url:String(t[0])}var pt,yt,mt=1e3;function bt(t,n){return void 0===n&&(n=!1),function(r){if(r&&yt!==r&&!function(t){if("keypress"!==t.type)return!1;try{var n=t.target;if(!n||!n.tagName)return!0;if("INPUT"===n.tagName||"TEXTAREA"===n.tagName||n.isContentEditable)return!1}catch(t){}return!0}(r)){var i="keypress"===r.type?"input":r.type;void 0===pt?(t({event:r,name:i,global:n}),yt=r):function(t,n){if(!t)return!0;if(t.type!==n.type)return!0;try{if(t.target!==n.target)return!0}catch(t){}return!1}(yt,r)&&(t({event:r,name:i,global:n}),yt=r),clearTimeout(pt),pt=st.setTimeout(function(){pt=void 0},mt)}}}var wt=null;var gt,Et=null;!function(t){t.PENDING="PENDING",t.RESOLVED="RESOLVED",t.REJECTED="REJECTED"}(gt||(gt={}));var xt=function(){function t(t){var n=this;this.l=gt.PENDING,this.p=[],this.m=function(t){n.g(gt.RESOLVED,t)},this.j=function(t){n.g(gt.REJECTED,t)},this.g=function(t,r){n.l===gt.PENDING&&(g(r)?r.then(n.m,n.j):(n.l=t,n.k=r,n.S()))},this._=function(t){n.p=n.p.concat(t),n.S()},this.S=function(){if(n.l!==gt.PENDING){var t=n.p.slice();n.p=[],t.forEach(function(t){t.done||(n.l===gt.RESOLVED&&t.onfulfilled&&t.onfulfilled(n.k),n.l===gt.REJECTED&&t.onrejected&&t.onrejected(n.k),t.done=!0)})}};try{t(this.m,this.j)}catch(t){this.j(t)}}return t.resolve=function(n){return new t(function(t){t(n)})},t.reject=function(n){return new t(function(t,r){r(n)})},t.all=function(n){return new t(function(r,i){if(Array.isArray(n))if(0!==n.length){var e=n.length,o=[];n.forEach(function(n,u){t.resolve(n).then(function(t){o[u]=t,0===(e-=1)&&r(o)}).then(null,i)})}else r([]);else i(new TypeError("Promise.all requires an array as input."))})},t.prototype.then=function(n,r){var i=this;return new t(function(t,e){i._({done:!1,onfulfilled:function(r){if(n)try{return void t(n(r))}catch(t){return void e(t)}else t(r)},onrejected:function(n){if(r)try{return void t(r(n))}catch(t){return void e(t)}else e(n)}})})},t.prototype.catch=function(t){return this.then(function(t){return t},t)},t.prototype.finally=function(n){var r=this;return new t(function(t,i){var e,o;return r.then(function(t){o=!1,e=t,n&&n()},function(t){o=!0,e=t,n&&n()}).then(function(){o?i(e):t(e)})})},t.prototype.toString=function(){return"[object SyncPromise]"},t}(),jt=function(){function t(t){this.O=t,this.D=[]}return t.prototype.isReady=function(){return void 0===this.O||this.length()<this.O},t.prototype.add=function(t){var n=this;return this.isReady()?(-1===this.D.indexOf(t)&&this.D.push(t),t.then(function(){return n.remove(t)}).then(null,function(){return n.remove(t).then(null,function(){})}),t):xt.reject(new S("Not adding Promise due to buffer limit reached."))},t.prototype.remove=function(t){return this.D.splice(this.D.indexOf(t),1)[0]},t.prototype.length=function(){return this.D.length},t.prototype.drain=function(t){var n=this;return new xt(function(r){var i=setTimeout(function(){t&&t>0&&r(!1)},t);xt.all(n.D).then(function(){clearTimeout(i),r(!0)}).then(null,function(){r(!0)})})},t}(),kt={nowSeconds:function(){return Date.now()/1e3}};var St=D()?function(){try{return(t=module,n="perf_hooks",t.require(n)).performance}catch(t){return}var t,n}():function(){var t=C().performance;if(t&&t.now)return{now:function(){return t.now()},timeOrigin:Date.now()-t.now()}}(),_t=void 0===St?kt:{nowSeconds:function(){return(St.timeOrigin+St.now())/1e3}},Ot=kt.nowSeconds.bind(kt),Dt=(_t.nowSeconds.bind(_t),function(){var t=C().performance;if(t)t.timeOrigin?t.timeOrigin:t.timing&&t.timing.navigationStart||Date.now()}(),function(){function t(){this.T=!1,this.R=[],this.I=[],this.N=[],this.C={},this.A={},this.M={},this.q={}}return t.clone=function(n){var r=new t;return n&&(r.N=h(n.N),r.A=c({},n.A),r.M=c({},n.M),r.q=c({},n.q),r.C=n.C,r.L=n.L,r.U=n.U,r.H=n.H,r.F=n.F,r.P=n.P,r.I=h(n.I)),r},t.prototype.addScopeListener=function(t){this.R.push(t)},t.prototype.addEventProcessor=function(t){return this.I.push(t),this},t.prototype.setUser=function(t){return this.C=t||{},this.H&&this.H.update({user:t}),this.X(),this},t.prototype.getUser=function(){return this.C},t.prototype.setTags=function(t){return this.A=c(c({},this.A),t),this.X(),this},t.prototype.setTag=function(t,n){var r;return this.A=c(c({},this.A),((r={})[t]=n,r)),this.X(),this},t.prototype.setExtras=function(t){return this.M=c(c({},this.M),t),this.X(),this},t.prototype.setExtra=function(t,n){var r;return this.M=c(c({},this.M),((r={})[t]=n,r)),this.X(),this},t.prototype.setFingerprint=function(t){return this.P=t,this.X(),this},t.prototype.setLevel=function(t){return this.L=t,this.X(),this},t.prototype.setTransactionName=function(t){return this.F=t,this.X(),this},t.prototype.setTransaction=function(t){return this.setTransactionName(t)},t.prototype.setContext=function(t,n){var r;return null===n?delete this.q[t]:this.q=c(c({},this.q),((r={})[t]=n,r)),this.X(),this},t.prototype.setSpan=function(t){return this.U=t,this.X(),this},t.prototype.getSpan=function(){return this.U},t.prototype.getTransaction=function(){var t,n,r,i,e=this.getSpan();return(null===(t=e)||void 0===t?void 0:t.transaction)?null===(n=e)||void 0===n?void 0:n.transaction:(null===(i=null===(r=e)||void 0===r?void 0:r.spanRecorder)||void 0===i?void 0:i.spans[0])?e.spanRecorder.spans[0]:void 0},t.prototype.setSession=function(t){return t?this.H=t:delete this.H,this.X(),this},t.prototype.getSession=function(){return this.H},t.prototype.update=function(n){if(!n)return this;if("function"==typeof n){var r=n(this);return r instanceof t?r:this}return n instanceof t?(this.A=c(c({},this.A),n.A),this.M=c(c({},this.M),n.M),this.q=c(c({},this.q),n.q),n.C&&Object.keys(n.C).length&&(this.C=n.C),n.L&&(this.L=n.L),n.P&&(this.P=n.P)):m(n)&&(n=n,this.A=c(c({},this.A),n.tags),this.M=c(c({},this.M),n.extra),this.q=c(c({},this.q),n.contexts),n.user&&(this.C=n.user),n.level&&(this.L=n.level),n.fingerprint&&(this.P=n.fingerprint)),this},t.prototype.clear=function(){return this.N=[],this.A={},this.M={},this.C={},this.q={},this.L=void 0,this.F=void 0,this.P=void 0,this.U=void 0,this.H=void 0,this.X(),this},t.prototype.addBreadcrumb=function(t,n){var r=c({timestamp:Ot()},t);return this.N=void 0!==n&&n>=0?h(this.N,[r]).slice(-n):h(this.N,[r]),this.X(),this},t.prototype.clearBreadcrumbs=function(){return this.N=[],this.X(),this},t.prototype.applyToEvent=function(t,n){var r;if(this.M&&Object.keys(this.M).length&&(t.extra=c(c({},this.M),t.extra)),this.A&&Object.keys(this.A).length&&(t.tags=c(c({},this.A),t.tags)),this.C&&Object.keys(this.C).length&&(t.user=c(c({},this.C),t.user)),this.q&&Object.keys(this.q).length&&(t.contexts=c(c({},this.q),t.contexts)),this.L&&(t.level=this.L),this.F&&(t.transaction=this.F),this.U){t.contexts=c({trace:this.U.getTraceContext()},t.contexts);var i=null===(r=this.U.transaction)||void 0===r?void 0:r.name;i&&(t.tags=c({transaction:i},t.tags))}return this.B(t),t.breadcrumbs=h(t.breadcrumbs||[],this.N),t.breadcrumbs=t.breadcrumbs.length>0?t.breadcrumbs:void 0,this.J(h(Tt(),this.I),t,n)},t.prototype.J=function(t,n,r,i){var e=this;return void 0===i&&(i=0),new xt(function(o,u){var s=t[i];if(null===n||"function"!=typeof s)o(n);else{var a=s(c({},n),r);g(a)?a.then(function(n){return e.J(t,n,r,i+1).then(o)}).then(null,u):e.J(t,a,r,i+1).then(o).then(null,u)}})},t.prototype.X=function(){var t=this;this.T||(this.T=!0,this.R.forEach(function(n){n(t)}),this.T=!1)},t.prototype.B=function(t){t.fingerprint=t.fingerprint?Array.isArray(t.fingerprint)?t.fingerprint:[t.fingerprint]:[],this.P&&(t.fingerprint=t.fingerprint.concat(this.P)),t.fingerprint&&!t.fingerprint.length&&delete t.fingerprint},t}());function Tt(){var t=C();return t.__SENTRY__=t.__SENTRY__||{},t.__SENTRY__.globalEventProcessors=t.__SENTRY__.globalEventProcessors||[],t.__SENTRY__.globalEventProcessors}function Rt(t){Tt().push(t)}var It=function(){function t(t){this.errors=0,this.sid=A(),this.timestamp=Date.now(),this.started=Date.now(),this.duration=0,this.status=e.Ok,this.init=!0,t&&this.update(t)}return t.prototype.update=function(t){void 0===t&&(t={}),t.user&&(t.user.ip_address&&(this.ipAddress=t.user.ip_address),t.did||(this.did=t.user.id||t.user.email||t.user.username)),this.timestamp=t.timestamp||Date.now(),t.sid&&(this.sid=32===t.sid.length?t.sid:A()),void 0!==t.init&&(this.init=t.init),t.did&&(this.did=""+t.did),"number"==typeof t.started&&(this.started=t.started),"number"==typeof t.duration?this.duration=t.duration:this.duration=this.timestamp-this.started,t.release&&(this.release=t.release),t.environment&&(this.environment=t.environment),t.ipAddress&&(this.ipAddress=t.ipAddress),t.userAgent&&(this.userAgent=t.userAgent),"number"==typeof t.errors&&(this.errors=t.errors),t.status&&(this.status=t.status)},t.prototype.close=function(t){t?this.update({status:t}):this.status===e.Ok?this.update({status:e.Exited}):this.update()},t.prototype.toJSON=function(){return rt({sid:""+this.sid,init:this.init,started:new Date(this.started).toISOString(),timestamp:new Date(this.timestamp).toISOString(),status:this.status,errors:this.errors,did:"number"==typeof this.did||"string"==typeof this.did?""+this.did:void 0,duration:this.duration,attrs:rt({release:this.release,environment:this.environment,ip_address:this.ipAddress,user_agent:this.userAgent})})},t}(),Nt=3,Ct=function(){function t(t,n,r){void 0===n&&(n=new Dt),void 0===r&&(r=Nt),this.W=r,this.$=[{}],this.getStackTop().scope=n,this.bindClient(t)}return t.prototype.isOlderThan=function(t){return this.W<t},t.prototype.bindClient=function(t){this.getStackTop().client=t,t&&t.setupIntegrations&&t.setupIntegrations()},t.prototype.pushScope=function(){var t=Dt.clone(this.getScope());return this.getStack().push({client:this.getClient(),scope:t}),t},t.prototype.popScope=function(){return!(this.getStack().length<=1)&&!!this.getStack().pop()},t.prototype.withScope=function(t){var n=this.pushScope();try{t(n)}finally{this.popScope()}},t.prototype.getClient=function(){return this.getStackTop().client},t.prototype.getScope=function(){return this.getStackTop().scope},t.prototype.getStack=function(){return this.$},t.prototype.getStackTop=function(){return this.$[this.$.length-1]},t.prototype.captureException=function(t,n){var r=this.G=A(),i=n;if(!n){var e=void 0;try{throw new Error("Sentry syntheticException")}catch(t){e=t}i={originalException:t,syntheticException:e}}return this.K("captureException",t,c(c({},i),{event_id:r})),r},t.prototype.captureMessage=function(t,n,r){var i=this.G=A(),e=r;if(!r){var o=void 0;try{throw new Error(t)}catch(t){o=t}e={originalException:t,syntheticException:o}}return this.K("captureMessage",t,n,c(c({},e),{event_id:i})),i},t.prototype.captureEvent=function(t,n){var r=this.G=A();return this.K("captureEvent",t,c(c({},n),{event_id:r})),r},t.prototype.lastEventId=function(){return this.G},t.prototype.addBreadcrumb=function(t,n){var r=this.getStackTop(),i=r.scope,e=r.client;if(i&&e){var o=e.getOptions&&e.getOptions()||{},u=o.beforeBreadcrumb,s=void 0===u?null:u,a=o.maxBreadcrumbs,f=void 0===a?100:a;if(!(f<=0)){var h=Ot(),v=c({timestamp:h},t),l=s?L(function(){return s(v,n)}):v;null!==l&&i.addBreadcrumb(l,Math.min(f,100))}}},t.prototype.setUser=function(t){var n=this.getScope();n&&n.setUser(t)},t.prototype.setTags=function(t){var n=this.getScope();n&&n.setTags(t)},t.prototype.setExtras=function(t){var n=this.getScope();n&&n.setExtras(t)},t.prototype.setTag=function(t,n){var r=this.getScope();r&&r.setTag(t,n)},t.prototype.setExtra=function(t,n){var r=this.getScope();r&&r.setExtra(t,n)},t.prototype.setContext=function(t,n){var r=this.getScope();r&&r.setContext(t,n)},t.prototype.configureScope=function(t){var n=this.getStackTop(),r=n.scope,i=n.client;r&&i&&t(r)},t.prototype.run=function(t){var n=Mt(this);try{t(this)}finally{Mt(n)}},t.prototype.getIntegration=function(t){var n=this.getClient();if(!n)return null;try{return n.getIntegration(t)}catch(n){return J.warn("Cannot retrieve integration "+t.id+" from the current Hub"),null}},t.prototype.startSpan=function(t){return this.V("startSpan",t)},t.prototype.startTransaction=function(t,n){return this.V("startTransaction",t,n)},t.prototype.traceHeaders=function(){return this.V("traceHeaders")},t.prototype.captureSession=function(t){if(void 0===t&&(t=!1),t)return this.endSession();this.Y()},t.prototype.endSession=function(){var t,n,r,i,e;null===(r=null===(n=null===(t=this.getStackTop())||void 0===t?void 0:t.scope)||void 0===n?void 0:n.getSession())||void 0===r||r.close(),this.Y(),null===(e=null===(i=this.getStackTop())||void 0===i?void 0:i.scope)||void 0===e||e.setSession()},t.prototype.startSession=function(t){var n=this.getStackTop(),r=n.scope,i=n.client,o=i&&i.getOptions()||{},u=o.release,s=o.environment,a=new It(c(c({release:u,environment:s},r&&{user:r.getUser()}),t));if(r){var f=r.getSession&&r.getSession();f&&f.status===e.Ok&&f.update({status:e.Exited}),this.endSession(),r.setSession(a)}return a},t.prototype.Y=function(){var t=this.getStackTop(),n=t.scope,r=t.client;if(n){var i=n.getSession&&n.getSession();i&&r&&r.captureSession&&r.captureSession(i)}},t.prototype.K=function(t){for(var n,r=[],i=1;i<arguments.length;i++)r[i-1]=arguments[i];var e=this.getStackTop(),o=e.scope,u=e.client;u&&u[t]&&(n=u)[t].apply(n,h(r,[o]))},t.prototype.V=function(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];var i=At().__SENTRY__;if(i&&i.extensions&&"function"==typeof i.extensions[t])return i.extensions[t].apply(this,n);J.warn("Extension method "+t+" couldn't be found, doing nothing.")},t}();function At(){var t=C();return t.__SENTRY__=t.__SENTRY__||{extensions:{},hub:void 0},t}function Mt(t){var n=At(),r=Ut(n);return Ht(n,t),r}function qt(){var t=At();return Lt(t)&&!Ut(t).isOlderThan(Nt)||Ht(t,new Ct),D()?function(t){var n,r,i;try{var e=null===(i=null===(r=null===(n=At().__SENTRY__)||void 0===n?void 0:n.extensions)||void 0===r?void 0:r.domain)||void 0===i?void 0:i.active;if(!e)return Ut(t);if(!Lt(e)||Ut(e).isOlderThan(Nt)){var o=Ut(t).getStackTop();Ht(e,new Ct(o.client,Dt.clone(o.scope)))}return Ut(e)}catch(n){return Ut(t)}}(t):Ut(t)}function Lt(t){return!!(t&&t.__SENTRY__&&t.__SENTRY__.hub)}function Ut(t){return t&&t.__SENTRY__&&t.__SENTRY__.hub?t.__SENTRY__.hub:(t.__SENTRY__=t.__SENTRY__||{},t.__SENTRY__.hub=new Ct,t.__SENTRY__.hub)}function Ht(t,n){return!!t&&(t.__SENTRY__=t.__SENTRY__||{},t.__SENTRY__.hub=n,!0)}function Ft(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];var i=qt();if(i&&i[t])return i[t].apply(i,h(n));throw new Error("No hub defined or "+t+" was not found on the hub, please open a bug report.")}function captureException(t,n){var r;try{throw new Error("Sentry syntheticException")}catch(t){r=t}return Ft("captureException",t,{captureContext:n,originalException:t,syntheticException:r})}function Pt(t){Ft("withScope",t)}var Xt=function(){function t(t,n){void 0===n&&(n={}),this.dsn=t,this.Z=new O(t),this.metadata=n}return t.prototype.getDsn=function(){return this.Z},t.prototype.getBaseApiEndpoint=function(){var t=this.Z,n=t.protocol?t.protocol+":":"",r=t.port?":"+t.port:"";return n+"//"+t.host+r+(t.path?"/"+t.path:"")+"/api/"},t.prototype.getStoreEndpoint=function(){return this.tt("store")},t.prototype.getStoreEndpointWithUrlEncodedAuth=function(){return this.getStoreEndpoint()+"?"+this.nt()},t.prototype.getEnvelopeEndpointWithUrlEncodedAuth=function(){return this.rt()+"?"+this.nt()},t.prototype.getStoreEndpointPath=function(){var t=this.Z;return(t.path?"/"+t.path:"")+"/api/"+t.projectId+"/store/"},t.prototype.getRequestHeaders=function(t,n){var r=this.Z,i=["Sentry sentry_version=7"];return i.push("sentry_client="+t+"/"+n),i.push("sentry_key="+r.publicKey),r.pass&&i.push("sentry_secret="+r.pass),{"Content-Type":"application/json","X-Sentry-Auth":i.join(", ")}},t.prototype.getReportDialogEndpoint=function(t){void 0===t&&(t={});var n=this.Z,r=this.getBaseApiEndpoint()+"embed/error-page/",i=[];for(var e in i.push("dsn="+n.toString()),t)if("dsn"!==e)if("user"===e){if(!t.user)continue;t.user.name&&i.push("name="+encodeURIComponent(t.user.name)),t.user.email&&i.push("email="+encodeURIComponent(t.user.email))}else i.push(encodeURIComponent(e)+"="+encodeURIComponent(t[e]));return i.length?r+"?"+i.join("&"):r},t.prototype.rt=function(){return this.tt("envelope")},t.prototype.tt=function(t){return""+this.getBaseApiEndpoint()+this.Z.projectId+"/"+t+"/"},t.prototype.nt=function(){var t,n={sentry_key:this.Z.publicKey,sentry_version:"7"};return t=n,Object.keys(t).map(function(n){return encodeURIComponent(n)+"="+encodeURIComponent(t[n])}).join("&")},t}(),Bt=[];function Jt(t){var n={};return function(t){var n=t.defaultIntegrations&&h(t.defaultIntegrations)||[],r=t.integrations,i=[];if(Array.isArray(r)){var e=r.map(function(t){return t.name}),o=[];n.forEach(function(t){-1===e.indexOf(t.name)&&-1===o.indexOf(t.name)&&(i.push(t),o.push(t.name))}),r.forEach(function(t){-1===o.indexOf(t.name)&&(i.push(t),o.push(t.name))})}else"function"==typeof r?(i=r(n),i=Array.isArray(i)?i:[i]):i=h(n);var u=i.map(function(t){return t.name});return-1!==u.indexOf("Debug")&&i.push.apply(i,h(i.splice(u.indexOf("Debug"),1))),i}(t).forEach(function(t){n[t.name]=t,function(t){-1===Bt.indexOf(t.name)&&(t.setupOnce(Rt,qt),Bt.push(t.name),J.log("Integration installed: "+t.name))}(t)}),n}var Wt=function(){function t(t,n){this.it={},this.et=0,this.ot=new t(n),this.ut=n,n.dsn&&(this.st=new O(n.dsn))}return t.prototype.captureException=function(t,n,r){var i=this,e=n&&n.event_id;return this.ct(this.at().eventFromException(t,n).then(function(t){return i.ft(t,n,r)}).then(function(t){e=t})),e},t.prototype.captureMessage=function(t,n,r,i){var e=this,o=r&&r.event_id,u=y(t)?this.at().eventFromMessage(String(t),n,r):this.at().eventFromException(t,r);return this.ct(u.then(function(t){return e.ft(t,r,i)}).then(function(t){o=t})),o},t.prototype.captureEvent=function(t,n,r){var i=n&&n.event_id;return this.ct(this.ft(t,n,r).then(function(t){i=t})),i},t.prototype.captureSession=function(t){t.release?(this.ht(t),t.update({init:!1})):J.warn("Discarded session because of missing release")},t.prototype.getDsn=function(){return this.st},t.prototype.getOptions=function(){return this.ut},t.prototype.flush=function(t){var n=this;return this.vt(t).then(function(r){return n.at().getTransport().close(t).then(function(t){return r&&t})})},t.prototype.close=function(t){var n=this;return this.flush(t).then(function(t){return n.getOptions().enabled=!1,t})},t.prototype.setupIntegrations=function(){this.lt()&&(this.it=Jt(this.ut))},t.prototype.getIntegration=function(t){try{return this.it[t.id]||null}catch(n){return J.warn("Cannot retrieve integration "+t.id+" from the current Client"),null}},t.prototype.dt=function(t,n){var r,i,o,u=!1,s=!1,f=n.exception&&n.exception.values;if(f){s=!0;try{for(var h=a(f),v=h.next();!v.done;v=h.next()){var l=v.value.mechanism;if(l&&!1===l.handled){u=!0;break}}}catch(t){r={error:t}}finally{try{v&&!v.done&&(i=h.return)&&i.call(h)}finally{if(r)throw r.error}}}var d=n.user;if(!t.userAgent){var p=n.request?n.request.headers:{};for(var y in p)if("user-agent"===y.toLowerCase()){o=p[y];break}}t.update(c(c({},u&&{status:e.Crashed}),{user:d,userAgent:o,errors:t.errors+Number(s||u)})),this.captureSession(t)},t.prototype.ht=function(t){this.at().sendSession(t)},t.prototype.vt=function(t){var n=this;return new xt(function(r){var i=0,e=setInterval(function(){0==n.et?(clearInterval(e),r(!0)):(i+=1,t&&i>=t&&(clearInterval(e),r(!1)))},1)})},t.prototype.at=function(){return this.ot},t.prototype.lt=function(){return!1!==this.getOptions().enabled&&void 0!==this.st},t.prototype.pt=function(t,n,r){var i=this,e=this.getOptions().normalizeDepth,o=void 0===e?3:e,u=c(c({},t),{event_id:t.event_id||(r&&r.event_id?r.event_id:A()),timestamp:t.timestamp||Ot()});this.yt(u),this.bt(u);var s=n;r&&r.captureContext&&(s=Dt.clone(s).update(r.captureContext));var a=xt.resolve(u);return s&&(a=s.applyToEvent(u,r)),a.then(function(t){return"number"==typeof o&&o>0?i.wt(t,o):t})},t.prototype.wt=function(t,n){if(!t)return null;var r=c(c(c(c(c({},t),t.breadcrumbs&&{breadcrumbs:t.breadcrumbs.map(function(t){return c(c({},t),t.data&&{data:tt(t.data,n)})})}),t.user&&{user:tt(t.user,n)}),t.contexts&&{contexts:tt(t.contexts,n)}),t.extra&&{extra:tt(t.extra,n)});return t.contexts&&t.contexts.trace&&(r.contexts.trace=t.contexts.trace),r},t.prototype.yt=function(t){var n=this.getOptions(),r=n.environment,i=n.release,e=n.dist,o=n.maxValueLength,u=void 0===o?250:o;"environment"in t||(t.environment="environment"in n?r:"production"),void 0===t.release&&void 0!==i&&(t.release=i),void 0===t.dist&&void 0!==e&&(t.dist=e),t.message&&(t.message=T(t.message,u));var s=t.exception&&t.exception.values&&t.exception.values[0];s&&s.value&&(s.value=T(s.value,u));var c=t.request;c&&c.url&&(c.url=T(c.url,u))},t.prototype.bt=function(t){var n=t.sdk,r=Object.keys(this.it);n&&r.length>0&&(n.integrations=r)},t.prototype.gt=function(t){this.at().sendEvent(t)},t.prototype.ft=function(t,n,r){return this.Et(t,n,r).then(function(t){return t.event_id},function(t){J.error(t)})},t.prototype.Et=function(t,n,r){var i=this,e=this.getOptions(),o=e.beforeSend,u=e.sampleRate;if(!this.lt())return xt.reject(new S("SDK not enabled, will not send event."));var s="transaction"===t.type;return!s&&"number"==typeof u&&Math.random()>u?xt.reject(new S("Discarding event because it's not included in the random sample (sampling rate = "+u+")")):this.pt(t,r,n).then(function(t){if(null===t)throw new S("An event processor returned null, will not send event.");if(n&&n.data&&!0===n.data.__sentry__||s||!o)return t;var r=o(t,n);if(void 0===r)throw new S("`beforeSend` method has to return `null` or a valid event.");return g(r)?r.then(function(t){return t},function(t){throw new S("beforeSend rejected with "+t)}):r}).then(function(t){if(null===t)throw new S("`beforeSend` returned `null`, will not send event.");var n=r&&r.getSession&&r.getSession();return!s&&n&&i.dt(n,t),i.gt(t),t}).then(null,function(t){if(t instanceof S)throw t;throw i.captureException(t,{data:{__sentry__:!0},originalException:t}),new S("Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: "+t)})},t.prototype.ct=function(t){var n=this;this.et+=1,t.then(function(t){return n.et-=1,t},function(t){return n.et-=1,t})},t}(),$t=function(){function n(){}return n.prototype.sendEvent=function(n){return xt.resolve({reason:"NoopTransport: Event has been skipped because no Dsn is configured.",status:t.Status.Skipped})},n.prototype.close=function(t){return xt.resolve(!0)},n}(),Gt=function(){function t(t){this.ut=t,this.ut.dsn||J.warn("No DSN provided, backend will not do anything."),this.xt=this.jt()}return t.prototype.eventFromException=function(t,n){throw new S("Backend has to implement `eventFromException` method")},t.prototype.eventFromMessage=function(t,n,r){throw new S("Backend has to implement `eventFromMessage` method")},t.prototype.sendEvent=function(t){this.xt.sendEvent(t).then(null,function(t){J.error("Error while sending event: "+t)})},t.prototype.sendSession=function(t){this.xt.sendSession?this.xt.sendSession(t).then(null,function(t){J.error("Error while sending session: "+t)}):J.warn("Dropping session because custom transport doesn't implement sendSession")},t.prototype.getTransport=function(){return this.xt},t.prototype.jt=function(){return new $t},t}();function zt(t){if(t.metadata&&t.metadata.sdk){var n=t.metadata.sdk;return{name:n.name,version:n.version}}}function Kt(t,n){return n?(t.sdk=t.sdk||{name:n.name,version:n.version},t.sdk.name=t.sdk.name||n.name,t.sdk.version=t.sdk.version||n.version,t.sdk.integrations=h(t.sdk.integrations||[],n.integrations||[]),t.sdk.packages=h(t.sdk.packages||[],n.packages||[]),t):t}function Vt(t,n){var r=zt(n);return{body:JSON.stringify(c({sent_at:(new Date).toISOString()},r&&{sdk:r}))+"\n"+JSON.stringify({type:"session"})+"\n"+JSON.stringify(t),type:"session",url:n.getEnvelopeEndpointWithUrlEncodedAuth()}}function Qt(t,n){var r=zt(n),i=t.type||"event",e="transaction"===i,o=t.debug_meta||{},u=o.transactionSampling,s=function(t,n){var r={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&n.indexOf(i)<0&&(r[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var e=0;for(i=Object.getOwnPropertySymbols(t);e<i.length;e++)n.indexOf(i[e])<0&&(r[i[e]]=t[i[e]])}return r}(o,["transactionSampling"]),a=u||{},f=a.method,h=a.rate;0===Object.keys(s).length?delete t.debug_meta:t.debug_meta=s;var v={body:JSON.stringify(r?Kt(t,n.metadata.sdk):t),type:i,url:e?n.getEnvelopeEndpointWithUrlEncodedAuth():n.getStoreEndpointWithUrlEncodedAuth()};if(e){var l=JSON.stringify(c({event_id:t.event_id,sent_at:(new Date).toISOString()},r&&{sdk:r}))+"\n"+JSON.stringify({type:t.type,sample_rates:[{id:f,rate:h}]})+"\n"+v.body;v.body=l}return v}var Yt,Zt="6.2.2",tn=function(){function t(){this.name=t.id}return t.prototype.setupOnce=function(){Yt=Function.prototype.toString,Function.prototype.toString=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=this.__sentry_original__||this;return Yt.apply(r,t)}},t.id="FunctionToString",t}(),nn=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/],rn=function(){function t(n){void 0===n&&(n={}),this.ut=n,this.name=t.id}return t.prototype.setupOnce=function(){Rt(function(n){var r=qt();if(!r)return n;var i=r.getIntegration(t);if(i){var e=r.getClient(),o=e?e.getOptions():{},u=i.kt(o);if(i.St(n,u))return null}return n})},t.prototype.St=function(t,n){return this._t(t,n)?(J.warn("Event dropped due to being internal Sentry Error.\nEvent: "+q(t)),!0):this.Ot(t,n)?(J.warn("Event dropped due to being matched by `ignoreErrors` option.\nEvent: "+q(t)),!0):this.Dt(t,n)?(J.warn("Event dropped due to being matched by `denyUrls` option.\nEvent: "+q(t)+".\nUrl: "+this.Tt(t)),!0):!this.Rt(t,n)&&(J.warn("Event dropped due to not being matched by `allowUrls` option.\nEvent: "+q(t)+".\nUrl: "+this.Tt(t)),!0)},t.prototype._t=function(t,n){if(!n.ignoreInternal)return!1;try{return t&&t.exception&&t.exception.values&&t.exception.values[0]&&"SentryError"===t.exception.values[0].type||!1}catch(t){return!1}},t.prototype.Ot=function(t,n){return!(!n.ignoreErrors||!n.ignoreErrors.length)&&this.It(t).some(function(t){return n.ignoreErrors.some(function(n){return I(t,n)})})},t.prototype.Dt=function(t,n){if(!n.denyUrls||!n.denyUrls.length)return!1;var r=this.Tt(t);return!!r&&n.denyUrls.some(function(t){return I(r,t)})},t.prototype.Rt=function(t,n){if(!n.allowUrls||!n.allowUrls.length)return!0;var r=this.Tt(t);return!r||n.allowUrls.some(function(t){return I(r,t)})},t.prototype.kt=function(t){return void 0===t&&(t={}),{allowUrls:h(this.ut.whitelistUrls||[],this.ut.allowUrls||[],t.whitelistUrls||[],t.allowUrls||[]),denyUrls:h(this.ut.blacklistUrls||[],this.ut.denyUrls||[],t.blacklistUrls||[],t.denyUrls||[]),ignoreErrors:h(this.ut.ignoreErrors||[],t.ignoreErrors||[],nn),ignoreInternal:void 0===this.ut.ignoreInternal||this.ut.ignoreInternal}},t.prototype.It=function(t){if(t.message)return[t.message];if(t.exception)try{var n=t.exception.values&&t.exception.values[0]||{},r=n.type,i=void 0===r?"":r,e=n.value,o=void 0===e?"":e;return[""+o,i+": "+o]}catch(n){return J.error("Cannot extract message for event "+q(t)),[]}return[]},t.prototype.Tt=function(t){try{if(t.stacktrace){var n=t.stacktrace.frames;return n&&n[n.length-1].filename||null}if(t.exception){var r=t.exception.values&&t.exception.values[0].stacktrace&&t.exception.values[0].stacktrace.frames;return r&&r[r.length-1].filename||null}return null}catch(n){return J.error("Cannot extract url for event "+q(t)),null}},t.id="InboundFilters",t}(),en=Object.freeze({__proto__:null,FunctionToString:tn,InboundFilters:rn}),on="?",un=/^\s*at (?:(.*?) ?\()?((?:file|https?|blob|chrome-extension|address|native|eval|webpack|<anonymous>|[-a-z]+:|.*bundle|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,sn=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension|capacitor).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. \/=]+)(?::(\d+))?(?::(\d+))?\s*$/i,cn=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,an=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,fn=/\((\S*)(?::(\d+))(?::(\d+))\)/,hn=/Minified React error #\d+;/i;function vn(t){var n=null,r=0;t&&("number"==typeof t.framesToPop?r=t.framesToPop:hn.test(t.message)&&(r=1));try{if(n=function(t){if(!t||!t.stacktrace)return null;for(var n,r=t.stacktrace,i=/ line (\d+).*script (?:in )?(\S+)(?:: in function (\S+))?$/i,e=/ line (\d+), column (\d+)\s*(?:in (?:<anonymous function: ([^>]+)>|([^)]+))\((.*)\))? in (.*):\s*$/i,o=r.split("\n"),u=[],s=0;s<o.length;s+=2){var c=null;(n=i.exec(o[s]))?c={url:n[2],func:n[3],args:[],line:+n[1],column:null}:(n=e.exec(o[s]))&&(c={url:n[6],func:n[3]||n[4],args:n[5]?n[5].split(","):[],line:+n[1],column:+n[2]}),c&&(!c.func&&c.line&&(c.func=on),u.push(c))}if(!u.length)return null;return{message:dn(t),name:t.name,stack:u}}(t))return ln(n,r)}catch(t){}try{if(n=function(t){if(!t||!t.stack)return null;for(var n,r,i,e=[],o=t.stack.split("\n"),u=0;u<o.length;++u){if(r=un.exec(o[u])){var s=r[2]&&0===r[2].indexOf("native");r[2]&&0===r[2].indexOf("eval")&&(n=fn.exec(r[2]))&&(r[2]=n[1],r[3]=n[2],r[4]=n[3]),i={url:r[2]&&0===r[2].indexOf("address at ")?r[2].substr("address at ".length):r[2],func:r[1]||on,args:s?[r[2]]:[],line:r[3]?+r[3]:null,column:r[4]?+r[4]:null}}else if(r=cn.exec(o[u]))i={url:r[2],func:r[1]||on,args:[],line:+r[3],column:r[4]?+r[4]:null};else{if(!(r=sn.exec(o[u])))continue;r[3]&&r[3].indexOf(" > eval")>-1&&(n=an.exec(r[3]))?(r[1]=r[1]||"eval",r[3]=n[1],r[4]=n[2],r[5]=""):0!==u||r[5]||void 0===t.columnNumber||(e[0].column=t.columnNumber+1),i={url:r[3],func:r[1]||on,args:r[2]?r[2].split(","):[],line:r[4]?+r[4]:null,column:r[5]?+r[5]:null}}!i.func&&i.line&&(i.func=on),e.push(i)}if(!e.length)return null;return{message:dn(t),name:t.name,stack:e}}(t))return ln(n,r)}catch(t){}return{message:dn(t),name:t&&t.name,stack:[],failed:!0}}function ln(t,n){try{return c(c({},t),{stack:t.stack.slice(n)})}catch(n){return t}}function dn(t){var n=t&&t.message;return n?n.error&&"string"==typeof n.error.message?n.error.message:n:"No error message"}var pn=50;function yn(t){var n=bn(t.stack),r={type:t.name,value:t.message};return n&&n.length&&(r.stacktrace={frames:n}),void 0===r.type&&""===r.value&&(r.value="Unrecoverable error caught"),r}function mn(t){return{exception:{values:[yn(t)]}}}function bn(t){if(!t||!t.length)return[];var n=t,r=n[0].func||"",i=n[n.length-1].func||"";return-1===r.indexOf("captureMessage")&&-1===r.indexOf("captureException")||(n=n.slice(1)),-1!==i.indexOf("sentryWrapped")&&(n=n.slice(0,-1)),n.slice(0,pn).map(function(t){return{colno:null===t.column?void 0:t.column,filename:t.url||n[0].url,function:t.func||"?",in_app:!0,lineno:null===t.line?void 0:t.line}}).reverse()}function wn(n,r,i){var e=En(r,i&&i.syntheticException||void 0,{attachStacktrace:n.attachStacktrace});return H(e,{handled:!0,type:"generic"}),e.level=t.Severity.Error,i&&i.event_id&&(e.event_id=i.event_id),xt.resolve(e)}function gn(n,r,i,e){void 0===i&&(i=t.Severity.Info);var o=xn(r,e&&e.syntheticException||void 0,{attachStacktrace:n.attachStacktrace});return o.level=i,e&&e.event_id&&(o.event_id=e.event_id),xt.resolve(o)}function En(t,n,r){var i,e;if(void 0===r&&(r={}),l(t)&&t.error)return i=mn(vn(t=t.error));if(d(t)||(e=t,"[object DOMException]"===Object.prototype.toString.call(e))){var o=t,u=o.name||(d(o)?"DOMError":"DOMException"),s=o.message?u+": "+o.message:u;return U(i=xn(s,n,r),s),"code"in o&&(i.tags=c(c({},i.tags),{"DOMException.code":""+o.code})),i}return v(t)?i=mn(vn(t)):m(t)||b(t)?(H(i=function(t,n,r){var i={exception:{values:[{type:b(t)?t.constructor.name:r?"UnhandledRejection":"Error",value:"Non-Error "+(r?"promise rejection":"exception")+" captured with keys: "+nt(t)}]},extra:{__serialized__:Q(t)}};if(n){var e=bn(vn(n).stack);i.stacktrace={frames:e}}return i}(t,n,r.rejection),{synthetic:!0}),i):(U(i=xn(t,n,r),""+t,void 0),H(i,{synthetic:!0}),i)}function xn(t,n,r){void 0===r&&(r={});var i={message:t};if(r.attachStacktrace&&n){var e=bn(vn(n).stack);i.stacktrace={frames:e}}return i}var jn=function(){function n(t){this.options=t,this.D=new jt(30),this.Nt={},this.Ct=new Xt(t.dsn,t.At),this.url=this.Ct.getStoreEndpointWithUrlEncodedAuth()}return n.prototype.sendEvent=function(t){throw new S("Transport Class has to implement `sendEvent` method")},n.prototype.close=function(t){return this.D.drain(t)},n.prototype.Mt=function(n){var r=n.requestType,i=n.response,e=n.headers,o=n.resolve,u=n.reject,s=t.Status.fromHttpCode(i.status);this.qt(e)&&J.warn("Too many requests, backing off until: "+this.Lt(r)),s!==t.Status.Success?u(i):o({status:s})},n.prototype.Lt=function(t){return this.Nt[t]||this.Nt.all},n.prototype.Ut=function(t){return this.Lt(t)>new Date(Date.now())},n.prototype.qt=function(t){var n,r,i,e,o=Date.now(),u=t["x-sentry-rate-limits"],s=t["retry-after"];if(u){try{for(var c=a(u.trim().split(",")),f=c.next();!f.done;f=c.next()){var h=f.value.split(":",2),v=parseInt(h[0],10),l=1e3*(isNaN(v)?60:v);try{for(var d=(i=void 0,a(h[1].split(";"))),p=d.next();!p.done;p=d.next()){var y=p.value;this.Nt[y||"all"]=new Date(o+l)}}catch(t){i={error:t}}finally{try{p&&!p.done&&(e=d.return)&&e.call(d)}finally{if(i)throw i.error}}}}catch(t){n={error:t}}finally{try{f&&!f.done&&(r=c.return)&&r.call(c)}finally{if(n)throw n.error}}return!0}return!!s&&(this.Nt.all=new Date(o+function(t,n){if(!n)return F;var r=parseInt(""+n,10);if(!isNaN(r))return 1e3*r;var i=Date.parse(""+n);return isNaN(i)?F:i-t}(o,s)),!0)},n}();var kn=function(t){function n(n,r){void 0===r&&(r=function(){var t,n,r=C(),i=r.document;if("function"==typeof(null===(t=i)||void 0===t?void 0:t.createElement))try{var e=i.createElement("iframe");if(e.hidden=!0,i.head.appendChild(e),null===(n=e.contentWindow)||void 0===n?void 0:n.fetch)return e.contentWindow.fetch.bind(r);i.head.removeChild(e)}catch(t){J.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",t)}return r.fetch.bind(r)}());var i=t.call(this,n)||this;return i.Ht=r,i}return r(n,t),n.prototype.sendEvent=function(t){return this.Ft(Qt(t,this.Ct),t)},n.prototype.sendSession=function(t){return this.Ft(Vt(t,this.Ct),t)},n.prototype.Ft=function(t,n){var r=this;if(this.Ut(t.type))return Promise.reject({event:n,type:t.type,reason:"Transport locked till "+this.Lt(t.type)+" due to too many requests.",status:429});var i={body:t.body,method:"POST",referrerPolicy:ot()?"origin":""};return void 0!==this.options.fetchParameters&&Object.assign(i,this.options.fetchParameters),void 0!==this.options.headers&&(i.headers=this.options.headers),this.D.add(new xt(function(n,e){r.Ht(t.url,i).then(function(i){var o={"x-sentry-rate-limits":i.headers.get("X-Sentry-Rate-Limits"),"retry-after":i.headers.get("Retry-After")};r.Mt({requestType:t.type,response:i,headers:o,resolve:n,reject:e})}).catch(e)}))},n}(jn),Sn=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return r(n,t),n.prototype.sendEvent=function(t){return this.Ft(Qt(t,this.Ct),t)},n.prototype.sendSession=function(t){return this.Ft(Vt(t,this.Ct),t)},n.prototype.Ft=function(t,n){var r=this;return this.Ut(t.type)?Promise.reject({event:n,type:t.type,reason:"Transport locked till "+this.Lt(t.type)+" due to too many requests.",status:429}):this.D.add(new xt(function(n,i){var e=new XMLHttpRequest;for(var o in e.onreadystatechange=function(){if(4===e.readyState){var o={"x-sentry-rate-limits":e.getResponseHeader("X-Sentry-Rate-Limits"),"retry-after":e.getResponseHeader("Retry-After")};r.Mt({requestType:t.type,response:e,headers:o,resolve:n,reject:i})}},e.open("POST",t.url),r.options.headers)r.options.headers.hasOwnProperty(o)&&e.setRequestHeader(o,r.options.headers[o]);e.send(t.body)}))},n}(jn),_n=Object.freeze({__proto__:null,BaseTransport:jn,FetchTransport:kn,XHRTransport:Sn}),On=function(n){function i(){return null!==n&&n.apply(this,arguments)||this}return r(i,n),i.prototype.eventFromException=function(t,n){return wn(this.ut,t,n)},i.prototype.eventFromMessage=function(n,r,i){return void 0===r&&(r=t.Severity.Info),gn(this.ut,n,r,i)},i.prototype.jt=function(){if(!this.ut.dsn)return n.prototype.jt.call(this);var t=c(c({},this.ut.transportOptions),{dsn:this.ut.dsn,At:this.ut.At});return this.ut.transport?new this.ut.transport(t):it()?new kn(t):new Sn(t)},i}(Gt),Dn=0;function Tn(){return Dn>0}function Rn(t,n,r){if(void 0===n&&(n={}),"function"!=typeof t)return t;try{if(t.__sentry__)return t;if(t.__sentry_wrapped__)return t.__sentry_wrapped__}catch(n){return t}var sentryWrapped=function(){var i=Array.prototype.slice.call(arguments);try{r&&"function"==typeof r&&r.apply(this,arguments);var e=i.map(function(t){return Rn(t,n)});return t.handleEvent?t.handleEvent.apply(this,e):t.apply(this,e)}catch(t){throw Dn+=1,setTimeout(function(){Dn-=1}),Pt(function(r){r.addEventProcessor(function(t){var r=c({},t);return n.mechanism&&(U(r,void 0,void 0),H(r,n.mechanism)),r.extra=c(c({},r.extra),{arguments:i}),r}),captureException(t)}),t}};try{for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(sentryWrapped[i]=t[i])}catch(t){}t.prototype=t.prototype||{},sentryWrapped.prototype=t.prototype,Object.defineProperty(t,"__sentry_wrapped__",{enumerable:!1,value:sentryWrapped}),Object.defineProperties(sentryWrapped,{__sentry__:{enumerable:!1,value:!0},__sentry_original__:{enumerable:!1,value:t}});try{Object.getOwnPropertyDescriptor(sentryWrapped,"name").configurable&&Object.defineProperty(sentryWrapped,"name",{get:function(){return t.name}})}catch(t){}return sentryWrapped}function In(t){if(void 0===t&&(t={}),t.eventId)if(t.dsn){var n=document.createElement("script");n.async=!0,n.src=new Xt(t.dsn).getReportDialogEndpoint(t),t.onLoad&&(n.onload=t.onLoad),(document.head||document.body).appendChild(n)}else J.error("Missing dsn option in showReportDialog call");else J.error("Missing eventId option in showReportDialog call")}var Nn=function(){function n(t){this.name=n.id,this.Pt=!1,this.Xt=!1,this.ut=c({onerror:!0,onunhandledrejection:!0},t)}return n.prototype.setupOnce=function(){Error.stackTraceLimit=50,this.ut.onerror&&(J.log("Global Handler attached: onerror"),this.Bt()),this.ut.onunhandledrejection&&(J.log("Global Handler attached: onunhandledrejection"),this.Jt())},n.prototype.Bt=function(){var t=this;this.Pt||(ht({callback:function(r){var i=r.error,e=qt(),o=e.getIntegration(n),u=i&&!0===i.__sentry_own_request__;if(o&&!Tn()&&!u){var s=e.getClient(),c=y(i)?t.Wt(r.msg,r.url,r.line,r.column):t.$t(En(i,void 0,{attachStacktrace:s&&s.getOptions().attachStacktrace,rejection:!1}),r.url,r.line,r.column);H(c,{handled:!1,type:"onerror"}),e.captureEvent(c,{originalException:i})}},type:"error"}),this.Pt=!0)},n.prototype.Jt=function(){var r=this;this.Xt||(ht({callback:function(i){var e=i;try{"reason"in i?e=i.reason:"detail"in i&&"reason"in i.detail&&(e=i.detail.reason)}catch(t){}var o=qt(),u=o.getIntegration(n),s=e&&!0===e.__sentry_own_request__;if(!u||Tn()||s)return!0;var c=o.getClient(),a=y(e)?r.Gt(e):En(e,void 0,{attachStacktrace:c&&c.getOptions().attachStacktrace,rejection:!0});a.level=t.Severity.Error,H(a,{handled:!1,type:"onunhandledrejection"}),o.captureEvent(a,{originalException:e})},type:"unhandledrejection"}),this.Xt=!0)},n.prototype.Wt=function(t,n,r,i){var e,o=l(t)?t.message:t;if(p(o)){var u=o.match(/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i);u&&(e=u[1],o=u[2])}var s={exception:{values:[{type:e||"Error",value:o}]}};return this.$t(s,n,r,i)},n.prototype.Gt=function(t){return{exception:{values:[{type:"UnhandledRejection",value:"Non-Error promise rejection captured with value: "+String(t)}]}}},n.prototype.$t=function(t,n,r,i){t.exception=t.exception||{},t.exception.values=t.exception.values||[],t.exception.values[0]=t.exception.values[0]||{},t.exception.values[0].stacktrace=t.exception.values[0].stacktrace||{},t.exception.values[0].stacktrace.frames=t.exception.values[0].stacktrace.frames||[];var e=isNaN(parseInt(i,10))?void 0:i,o=isNaN(parseInt(r,10))?void 0:r,u=p(n)&&n.length>0?n:function(){try{return document.location.href}catch(t){return""}}();return 0===t.exception.values[0].stacktrace.frames.length&&t.exception.values[0].stacktrace.frames.push({colno:e,filename:u,function:"?",in_app:!0,lineno:o}),t},n.id="GlobalHandlers",n}(),Cn=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"],An=function(){function t(n){this.name=t.id,this.ut=c({XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0},n)}return t.prototype.setupOnce=function(){var t=C();(this.ut.setTimeout&&z(t,"setTimeout",this.zt.bind(this)),this.ut.setInterval&&z(t,"setInterval",this.zt.bind(this)),this.ut.requestAnimationFrame&&z(t,"requestAnimationFrame",this.Kt.bind(this)),this.ut.XMLHttpRequest&&"XMLHttpRequest"in t&&z(XMLHttpRequest.prototype,"send",this.Vt.bind(this)),this.ut.eventTarget)&&(Array.isArray(this.ut.eventTarget)?this.ut.eventTarget:Cn).forEach(this.Qt.bind(this))},t.prototype.zt=function(t){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var i=n[0];return n[0]=Rn(i,{mechanism:{data:{function:G(t)},handled:!0,type:"instrument"}}),t.apply(this,n)}},t.prototype.Kt=function(t){return function(n){return t.call(this,Rn(n,{mechanism:{data:{function:"requestAnimationFrame",handler:G(t)},handled:!0,type:"instrument"}}))}},t.prototype.Qt=function(t){var n=C(),r=n[t]&&n[t].prototype;r&&r.hasOwnProperty&&r.hasOwnProperty("addEventListener")&&(z(r,"addEventListener",function(n){return function(r,i,e){try{"function"==typeof i.handleEvent&&(i.handleEvent=Rn(i.handleEvent.bind(i),{mechanism:{data:{function:"handleEvent",handler:G(i),target:t},handled:!0,type:"instrument"}}))}catch(t){}return n.call(this,r,Rn(i,{mechanism:{data:{function:"addEventListener",handler:G(i),target:t},handled:!0,type:"instrument"}}),e)}}),z(r,"removeEventListener",function(t){return function(n,r,i){var e,o=r;try{var u=null===(e=o)||void 0===e?void 0:e.__sentry_wrapped__;u&&t.call(this,n,u,i)}catch(t){}return t.call(this,n,o,i)}}))},t.prototype.Vt=function(t){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var i=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(function(t){t in i&&"function"==typeof i[t]&&z(i,t,function(n){var r={mechanism:{data:{function:t,handler:G(n)},handled:!0,type:"instrument"}};return n.__sentry_original__&&(r.mechanism.data.handler=G(n.__sentry_original__)),Rn(n,r)})}),t.apply(this,n)}},t.id="TryCatch",t}(),Mn=function(){function n(t){this.name=n.id,this.ut=c({console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0},t)}return n.prototype.addSentryBreadcrumb=function(t){this.ut.sentry&&qt().addBreadcrumb({category:"sentry."+("transaction"===t.type?"transaction":"event"),event_id:t.event_id,level:t.level,message:q(t)},{event:t})},n.prototype.setupOnce=function(){var t=this;this.ut.console&&ht({callback:function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];t.Yt.apply(t,h(n))},type:"console"}),this.ut.dom&&ht({callback:function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];t.Zt.apply(t,h(n))},type:"dom"}),this.ut.xhr&&ht({callback:function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];t.tn.apply(t,h(n))},type:"xhr"}),this.ut.fetch&&ht({callback:function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];t.nn.apply(t,h(n))},type:"fetch"}),this.ut.history&&ht({callback:function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];t.rn.apply(t,h(n))},type:"history"})},n.prototype.Yt=function(n){var r={category:"console",data:{arguments:n.args,logger:"console"},level:t.Severity.fromString(n.level),message:R(n.args," ")};if("assert"===n.level){if(!1!==n.args[0])return;r.message="Assertion failed: "+(R(n.args.slice(1)," ")||"console.assert"),r.data.arguments=n.args.slice(1)}qt().addBreadcrumb(r,{input:n.args,level:n.level})},n.prototype.Zt=function(t){var n;try{n=t.event.target?x(t.event.target):x(t.event)}catch(t){n="<unknown>"}0!==n.length&&qt().addBreadcrumb({category:"ui."+t.name,message:n},{event:t.event,name:t.name,global:t.global})},n.prototype.tn=function(t){if(t.endTimestamp){if(t.xhr.__sentry_own_request__)return;var n=t.xhr.__sentry_xhr__||{},r=n.method,i=n.url,e=n.status_code,o=n.body;qt().addBreadcrumb({category:"xhr",data:{method:r,url:i,status_code:e},type:"http"},{xhr:t.xhr,input:o})}else;},n.prototype.nn=function(n){n.endTimestamp&&(n.fetchData.url.match(/sentry_key/)&&"POST"===n.fetchData.method||(n.error?qt().addBreadcrumb({category:"fetch",data:n.fetchData,level:t.Severity.Error,type:"http"},{data:n.error,input:n.args}):qt().addBreadcrumb({category:"fetch",data:c(c({},n.fetchData),{status_code:n.response.status}),type:"http"},{input:n.args,response:n.response})))},n.prototype.rn=function(t){var n=C(),r=t.from,i=t.to,e=M(n.location.href),o=M(r),u=M(i);o.path||(o=e),e.protocol===u.protocol&&e.host===u.host&&(i=u.relative),e.protocol===o.protocol&&e.host===o.host&&(r=o.relative),qt().addBreadcrumb({category:"navigation",data:{from:r,to:i}})},n.id="Breadcrumbs",n}(),qn="cause",Ln=5,Un=function(){function t(n){void 0===n&&(n={}),this.name=t.id,this.in=n.key||qn,this.O=n.limit||Ln}return t.prototype.setupOnce=function(){Rt(function(n,r){var i=qt().getIntegration(t);return i?i.en(n,r):n})},t.prototype.en=function(t,n){if(!(t.exception&&t.exception.values&&n&&E(n.originalException,Error)))return t;var r=this.on(n.originalException,this.in);return t.exception.values=h(r,t.exception.values),t},t.prototype.on=function(t,n,r){if(void 0===r&&(r=[]),!E(t[n],Error)||r.length+1>=this.O)return r;var i=yn(vn(t[n]));return this.on(t[n],n,h([i],r))},t.id="LinkedErrors",t}(),Hn=C(),Fn=function(){function t(){this.name=t.id}return t.prototype.setupOnce=function(){Rt(function(n){var r,i,e;if(qt().getIntegration(t)){if(!Hn.navigator&&!Hn.location&&!Hn.document)return n;var o=(null===(r=n.request)||void 0===r?void 0:r.url)||(null===(i=Hn.location)||void 0===i?void 0:i.href),u=(Hn.document||{}).referrer,s=(Hn.navigator||{}).userAgent,a=c(c(c({},null===(e=n.request)||void 0===e?void 0:e.headers),u&&{Referer:u}),s&&{"User-Agent":s}),f=c(c({},o&&{url:o}),{headers:a});return c(c({},n),{request:f})}return n})},t.id="UserAgent",t}(),Pn=Object.freeze({__proto__:null,GlobalHandlers:Nn,TryCatch:An,Breadcrumbs:Mn,LinkedErrors:Un,UserAgent:Fn}),Xn=function(t){function n(n){void 0===n&&(n={});return n.At=n.At||{},n.At.sdk=n.At.sdk||{name:"sentry.javascript.browser",packages:[{name:"npm:@sentry/browser",version:Zt}],version:Zt},t.call(this,On,n)||this}return r(n,t),n.prototype.showReportDialog=function(t){void 0===t&&(t={}),C().document&&(this.lt()?In(c(c({},t),{dsn:t.dsn||this.getDsn()})):J.error("Trying to call showReportDialog with Sentry Client disabled"))},n.prototype.pt=function(n,r,i){return n.platform=n.platform||"javascript",t.prototype.pt.call(this,n,r,i)},n.prototype.gt=function(n){var r=this.getIntegration(Mn);r&&r.addSentryBreadcrumb(n),t.prototype.gt.call(this,n)},n}(Wt),Bn=[new rn,new tn,new An,new Mn,new Nn,new Un,new Fn];var Jn={},Wn=C();Wn.Sentry&&Wn.Sentry.Integrations&&(Jn=Wn.Sentry.Integrations);var $n=c(c(c({},Jn),en),Pn);return t.BrowserClient=Xn,t.Hub=Ct,t.Integrations=$n,t.SDK_NAME="sentry.javascript.browser",t.SDK_VERSION=Zt,t.Scope=Dt,t.Transports=_n,t.addBreadcrumb=function(t){Ft("addBreadcrumb",t)},t.addGlobalEventProcessor=Rt,t.captureEvent=function(t){return Ft("captureEvent",t)},t.captureException=captureException,t.captureMessage=function(t,n){var r;try{throw new Error(t)}catch(t){r=t}return Ft("captureMessage",t,"string"==typeof n?n:void 0,c({originalException:t,syntheticException:r},"string"!=typeof n?{captureContext:n}:void 0))},t.close=function(t){var n=qt().getClient();return n?n.close(t):xt.reject(!1)},t.configureScope=function(t){Ft("configureScope",t)},t.defaultIntegrations=Bn,t.eventFromException=wn,t.eventFromMessage=gn,t.flush=function(t){var n=qt().getClient();return n?n.flush(t):xt.reject(!1)},t.forceLoad=function(){},t.getCurrentHub=qt,t.getHubFromCarrier=Ut,t.init=function(t){if(void 0===t&&(t={}),void 0===t.defaultIntegrations&&(t.defaultIntegrations=Bn),void 0===t.release){var n=C();n.SENTRY_RELEASE&&n.SENTRY_RELEASE.id&&(t.release=n.SENTRY_RELEASE.id)}void 0===t.autoSessionTracking&&(t.autoSessionTracking=!0),function(t,n){!0===n.debug&&J.enable();var r=qt(),i=new t(n);r.bindClient(i)}(Xn,t),t.autoSessionTracking&&function(){if(void 0!==C().document){var t=qt();"startSession"in t&&(t.startSession(),t.captureSession(),ht({callback:function(){t.startSession(),t.captureSession()},type:"history"}))}else J.warn("Session tracking in non-browser environment with @sentry/browser is not supported.")}()},t.injectReportDialog=In,t.lastEventId=function(){return qt().lastEventId()},t.makeMain=Mt,t.onLoad=function(t){t()},t.setContext=function(t,n){Ft("setContext",t,n)},t.setExtra=function(t,n){Ft("setExtra",t,n)},t.setExtras=function(t){Ft("setExtras",t)},t.setTag=function(t,n){Ft("setTag",t,n)},t.setTags=function(t){Ft("setTags",t)},t.setUser=function(t){Ft("setUser",t)},t.showReportDialog=function(t){void 0===t&&(t={}),t.eventId||(t.eventId=qt().lastEventId());var n=qt().getClient();n&&n.showReportDialog(t)},t.startTransaction=function(t,n){return Ft("startTransaction",c({},t),n)},t.withScope=Pt,t.wrap=function(t){return Rn(t)()},t}({});
|
|
3
|
+
//# sourceMappingURL=bundle.min.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
!function(n){var e,t,r,o,i,c={};Object.defineProperty(c,"__esModule",{value:!0}),function(n){n[n.None=0]="None",n[n.Error=1]="Error",n[n.Debug=2]="Debug",n[n.Verbose=3]="Verbose"}(e||(e={})),function(n){n.Ok="ok",n.Exited="exited",n.Crashed="crashed",n.Abnormal="abnormal"}(t||(t={})),function(n){n.Fatal="fatal",n.Error="error",n.Warning="warning",n.Log="log",n.Info="info",n.Debug="debug",n.Critical="critical"}(r||(r={})),function(n){n.fromString=function(e){switch(e){case"debug":return n.Debug;case"info":return n.Info;case"warn":case"warning":return n.Warning;case"error":return n.Error;case"fatal":return n.Fatal;case"critical":return n.Critical;case"log":default:return n.Log}}}(r||(r={})),function(n){n.Unknown="unknown",n.Skipped="skipped",n.Success="success",n.RateLimit="rate_limit",n.Invalid="invalid",n.Failed="failed"}(o||(o={})),function(n){n.fromHttpCode=function(e){return e>=200&&e<300?n.Success:429===e?n.RateLimit:e>=400&&e<500?n.Invalid:e>=500?n.Failed:n.Unknown}}(o||(o={})),function(n){n.Explicit="explicitly_set",n.Sampler="client_sampler",n.Rate="client_rate",n.Inheritance="inheritance"}(i||(i={}));var a=function(n,e){return(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,e){n.__proto__=e}||function(n,e){for(var t in e)e.hasOwnProperty(t)&&(n[t]=e[t])})(n,e)};var u=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(n,e){return n.__proto__=e,n}:function(n,e){for(var t in e)n.hasOwnProperty(t)||(n[t]=e[t]);return n});!function(n){function e(e){var t=this.constructor,r=n.call(this,e)||this;return r.message=e,r.name=t.prototype.constructor.name,u(r,t.prototype),r}(function(n,e){function t(){this.constructor=n}a(n,e),n.prototype=null===e?Object.create(e):(t.prototype=e.prototype,new t)})(e,n)}(Error);function s(){return"[object process]"===Object.prototype.toString.call("undefined"!=typeof process?process:0)}function f(n,e){if(!Array.isArray(n))return"";for(var t=[],r=0;r<n.length;r++){var o=n[r];try{t.push(String(o))}catch(n){t.push("[value cannot be serialized]")}}return t.join(e)}var l={};function _(){return s()?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:l}function p(n){var e=_();if(!("console"in e))return n();var t=e.console,r={};["debug","info","warn","error","log","assert"].forEach(function(n){n in e.console&&t[n].__sentry_original__&&(r[n]=t[n],t[n]=t[n].__sentry_original__)});var o=n();return Object.keys(r).forEach(function(n){t[n]=r[n]}),o}var d=_(),h="Sentry Logger ",g=function(){function n(){this._enabled=!1}return n.prototype.disable=function(){this._enabled=!1},n.prototype.enable=function(){this._enabled=!0},n.prototype.log=function(){for(var n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];this._enabled&&p(function(){d.console.log(h+"[Log]: "+n.join(" "))})},n.prototype.warn=function(){for(var n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];this._enabled&&p(function(){d.console.warn(h+"[Warn]: "+n.join(" "))})},n.prototype.error=function(){for(var n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];this._enabled&&p(function(){d.console.error(h+"[Error]: "+n.join(" "))})},n}();d.__SENTRY__=d.__SENTRY__||{};d.__SENTRY__.logger||(d.__SENTRY__.logger=new g);var v;_();!function(n){n.PENDING="PENDING",n.RESOLVED="RESOLVED",n.REJECTED="REJECTED"}(v||(v={}));!function(){function n(n){var e=this;this._state=v.PENDING,this._handlers=[],this._resolve=function(n){e._setResult(v.RESOLVED,n)},this._reject=function(n){e._setResult(v.REJECTED,n)},this._setResult=function(n,t){var r;e._state===v.PENDING&&(r=t,Boolean(r&&r.then&&"function"==typeof r.then)?t.then(e._resolve,e._reject):(e._state=n,e._value=t,e._executeHandlers()))},this._attachHandler=function(n){e._handlers=e._handlers.concat(n),e._executeHandlers()},this._executeHandlers=function(){if(e._state!==v.PENDING){var n=e._handlers.slice();e._handlers=[],n.forEach(function(n){n.done||(e._state===v.RESOLVED&&n.onfulfilled&&n.onfulfilled(e._value),e._state===v.REJECTED&&n.onrejected&&n.onrejected(e._value),n.done=!0)})}};try{n(this._resolve,this._reject)}catch(n){this._reject(n)}}n.resolve=function(e){return new n(function(n){n(e)})},n.reject=function(e){return new n(function(n,t){t(e)})},n.all=function(e){return new n(function(t,r){if(Array.isArray(e))if(0!==e.length){var o=e.length,i=[];e.forEach(function(e,c){n.resolve(e).then(function(n){i[c]=n,0===(o-=1)&&t(i)}).then(null,r)})}else t([]);else r(new TypeError("Promise.all requires an array as input."))})},n.prototype.then=function(e,t){var r=this;return new n(function(n,o){r._attachHandler({done:!1,onfulfilled:function(t){if(e)try{return void n(e(t))}catch(n){return void o(n)}else n(t)},onrejected:function(e){if(t)try{return void n(t(e))}catch(n){return void o(n)}else o(e)}})})},n.prototype.catch=function(n){return this.then(function(n){return n},n)},n.prototype.finally=function(e){var t=this;return new n(function(n,r){var o,i;return t.then(function(n){i=!1,o=n,e&&e()},function(n){i=!0,o=n,e&&e()}).then(function(){i?r(o):n(o)})})},n.prototype.toString=function(){return"[object SyncPromise]"}}();var y={nowSeconds:function(){return Date.now()/1e3}};var E=s()?function(){try{return(n=module,e="perf_hooks",n.require(e)).performance}catch(n){return}var n,e}():function(){var n=_().performance;if(n&&n.now)return{now:function(){return n.now()},timeOrigin:Date.now()-n.now()}}(),w=void 0===E?y:{nowSeconds:function(){return(E.timeOrigin+E.now())/1e3}},b=(y.nowSeconds.bind(y),w.nowSeconds.bind(w),function(){var n=_().performance;if(n)n.timeOrigin?n.timeOrigin:n.timing&&n.timing.navigationStart||Date.now()}(),_()),S=function(){function n(e){void 0===e&&(e={}),this.name=n.id,this._levels=["log","info","warn","error","debug","assert"],e.levels&&(this._levels=e.levels)}return n.prototype.setupOnce=function(e,t){"console"in b&&this._levels.forEach(function(e){e in b.console&&function(n,e,t){if(e in n){var r=n[e],o=t(r);if("function"==typeof o)try{o.prototype=o.prototype||{},Object.defineProperties(o,{__sentry_original__:{enumerable:!1,value:r}})}catch(n){}n[e]=o}}(b.console,e,function(o){return function(){for(var i=[],c=0;c<arguments.length;c++)i[c]=arguments[c];var a=t();a.getIntegration(n)&&a.withScope(function(n){n.setLevel(r.fromString(e)),n.setExtra("arguments",i),n.addEventProcessor(function(n){return n.logger="console",n});var t=f(i," ");"assert"===e?!1===i[0]&&(t="Assertion failed: "+(f(i.slice(1)," ")||"console.assert"),n.setExtra("arguments",i.slice(1)),a.captureMessage(t)):a.captureMessage(t)}),o&&Function.prototype.apply.call(o,b.console,i)}})})},n.id="CaptureConsole",n}();for(var m in c.CaptureConsole=S,n.Sentry=n.Sentry||{},n.Sentry.Integrations=n.Sentry.Integrations||{},c)Object.prototype.hasOwnProperty.call(c,m)&&(n.Sentry.Integrations[m]=c[m])}(window);
|
|
2
|
+
//# sourceMappingURL=captureconsole.min.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
!function(e){var t={};Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(){this.name=e.id}return e.prototype.setupOnce=function(t,n){t(function(t){var r=n().getIntegration(e);if(r){try{if(r._shouldDropEvent(t,r._previousEvent))return null}catch(e){return r._previousEvent=t}return r._previousEvent=t}return t})},e.prototype._shouldDropEvent=function(e,t){return!!t&&(!!this._isSameMessageEvent(e,t)||!!this._isSameExceptionEvent(e,t))},e.prototype._isSameMessageEvent=function(e,t){var n=e.message,r=t.message;return!(!n&&!r)&&(!(n&&!r||!n&&r)&&(n===r&&(!!this._isSameFingerprint(e,t)&&!!this._isSameStacktrace(e,t))))},e.prototype._getFramesFromEvent=function(e){var t=e.exception;if(t)try{return t.values[0].stacktrace.frames}catch(e){return}else if(e.stacktrace)return e.stacktrace.frames},e.prototype._isSameStacktrace=function(e,t){var n=this._getFramesFromEvent(e),r=this._getFramesFromEvent(t);if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;if(n=n,(r=r).length!==n.length)return!1;for(var i=0;i<r.length;i++){var o=r[i],a=n[i];if(o.filename!==a.filename||o.lineno!==a.lineno||o.colno!==a.colno||o.function!==a.function)return!1}return!0},e.prototype._getExceptionFromEvent=function(e){return e.exception&&e.exception.values&&e.exception.values[0]},e.prototype._isSameExceptionEvent=function(e,t){var n=this._getExceptionFromEvent(t),r=this._getExceptionFromEvent(e);return!(!n||!r)&&(n.type===r.type&&n.value===r.value&&(!!this._isSameFingerprint(e,t)&&!!this._isSameStacktrace(e,t)))},e.prototype._isSameFingerprint=function(e,t){var n=e.fingerprint,r=t.fingerprint;if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;n=n,r=r;try{return!(n.join("")!==r.join(""))}catch(e){return!1}},e.id="Dedupe",e}();for(var r in t.Dedupe=n,e.Sentry=e.Sentry||{},e.Sentry.Integrations=e.Sentry.Integrations||{},t)Object.prototype.hasOwnProperty.call(t,r)&&(e.Sentry.Integrations[r]=t[r])}(window);
|
|
2
|
+
//# sourceMappingURL=dedupe.min.js.map
|