iobroker.assistant 1.0.2 → 1.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -0
- package/admin/custom/.vite/manifest.json +91 -87
- package/admin/custom/assets/Components-C6qcpaRC.js +1 -0
- package/admin/custom/assets/{_virtual_mf-localSharedImportMap___mfe_internal__ConfigCustomAssistant__mf_owner__1-DcAGnE2z.js → _virtual_mf-localSharedImportMap___mfe_internal__ConfigCustomAssistant__mf_owner__1-A4gakomR.js} +1 -1
- package/admin/custom/assets/{_virtual_mf___mfe_internal__ConfigCustomAssistant__mf_owner__198531368674860__loadShare___mf_0_emotion_mf_1_react__loadShare__.js-CzBMxGFr.js → _virtual_mf___mfe_internal__ConfigCustomAssistant__mf_owner__201375093093590__loadShare___mf_0_emotion_mf_1_react__loadShare__.js-BkH7fzDw.js} +1 -1
- package/admin/custom/assets/{_virtual_mf___mfe_internal__ConfigCustomAssistant__mf_owner__198531368674860__loadShare___mf_0_emotion_mf_1_styled__loadShare__.js-1XsLCK2M.js → _virtual_mf___mfe_internal__ConfigCustomAssistant__mf_owner__201375093093590__loadShare___mf_0_emotion_mf_1_styled__loadShare__.js-CwqmfMvn.js} +1 -1
- package/admin/custom/assets/{_virtual_mf___mfe_internal__ConfigCustomAssistant__mf_owner__198531368674860__loadShare___mf_0_iobroker_mf_1_gui_mf_2_components__loadShare__.js-CMv8bcyA.js → _virtual_mf___mfe_internal__ConfigCustomAssistant__mf_owner__201375093093590__loadShare___mf_0_iobroker_mf_1_gui_mf_2_components__loadShare__.js-BMuLYe6f.js} +80 -97
- package/admin/custom/assets/{_virtual_mf___mfe_internal__ConfigCustomAssistant__mf_owner__198531368674860__loadShare__shared-3mzaJWDF.js → _virtual_mf___mfe_internal__ConfigCustomAssistant__mf_owner__201375093093590__loadShare__shared-BxjZmnpc.js} +2 -2
- package/admin/custom/assets/_virtual_mf___mfe_internal__ConfigCustomAssistant__mf_owner__201375093093590__prebuild___mf_0_iobroker_mf_1_json_mf_2_config__prebuild__-TM4l0OYm.js +122 -0
- package/admin/custom/assets/{_virtual_mf___mfe_internal__ConfigCustomAssistant__mf_owner__198531368674860__prebuild__react_mf_1_jsx_mf_2_runtime__prebuild__-B_v57Qfr.js → _virtual_mf___mfe_internal__ConfigCustomAssistant__mf_owner__201375093093590__prebuild__react_mf_1_jsx_mf_2_runtime__prebuild__-M61rjtmp.js} +1 -1
- package/admin/custom/assets/{dist-DiU1y0R9.js → dist-B3E7IYuQ.js} +1 -1
- package/admin/custom/assets/helpers-DE61bb74.js +1 -0
- package/admin/custom/assets/{hostInit-MshDicd1.js → hostInit-4roC4hEj.js} +1 -1
- package/admin/custom/assets/{lib-DjwHKtRi.js → lib-CchzgTUs.js} +1 -1
- package/admin/custom/assets/{mf-entry-bootstrap-0-7c1ddf47.js → mf-entry-bootstrap-0-4806bbe4.js} +2 -2
- package/admin/custom/assets/{pendingShares-CaJDCKLB.js → pendingShares-DLlv8yFY.js} +2 -2
- package/admin/custom/assets/prod-ChPGnyiA.js +15 -0
- package/admin/custom/assets/rolldown-runtime-COiEfhsA.js +1 -0
- package/admin/custom/assets/utils-Bi7ATSfV.js +4 -0
- package/admin/custom/customComponents.js +2 -2
- package/admin/custom/i18n/de.json +25 -0
- package/admin/custom/i18n/en.json +25 -0
- package/admin/custom/i18n/es.json +25 -0
- package/admin/custom/i18n/fr.json +25 -0
- package/admin/custom/i18n/it.json +25 -0
- package/admin/custom/i18n/nl.json +25 -0
- package/admin/custom/i18n/pl.json +25 -0
- package/admin/custom/i18n/pt.json +25 -0
- package/admin/custom/i18n/ru.json +25 -0
- package/admin/custom/i18n/uk.json +25 -0
- package/admin/custom/i18n/zh-cn.json +25 -0
- package/admin/custom/index.html +2 -2
- package/admin/custom/mf-manifest.json +1 -1
- package/admin/custom/mf-stats.json +1 -1
- package/admin/i18n/de.json +3 -1
- package/admin/i18n/en.json +3 -1
- package/admin/i18n/es.json +3 -1
- package/admin/i18n/fr.json +3 -1
- package/admin/i18n/it.json +3 -1
- package/admin/i18n/nl.json +3 -1
- package/admin/i18n/pl.json +3 -1
- package/admin/i18n/pt.json +3 -1
- package/admin/i18n/ru.json +3 -1
- package/admin/i18n/uk.json +3 -1
- package/admin/i18n/zh-cn.json +3 -1
- package/admin/jsonConfig.json +13 -0
- package/build/lib/journal.js +273 -0
- package/build/lib/journal.js.map +1 -0
- package/build/lib/voice/esphome.js +9 -1
- package/build/lib/voice/esphome.js.map +1 -1
- package/build/lib/voice/voiceServer.js +3 -1
- package/build/lib/voice/voiceServer.js.map +1 -1
- package/build/lib/voice/wyoming.js +3 -1
- package/build/lib/voice/wyoming.js.map +1 -1
- package/build/main.js +146 -12
- package/build/main.js.map +1 -1
- package/io-package.json +36 -1
- package/package.json +7 -7
- package/admin/custom/assets/Components-7BDDNrGP.js +0 -1
- package/admin/custom/assets/_virtual_mf___mfe_internal__ConfigCustomAssistant__mf_owner__198531368674860__prebuild___mf_0_iobroker_mf_1_json_mf_2_config__prebuild__-DS8oaQQt.js +0 -122
- package/admin/custom/assets/helpers-Dot7vgQQ.js +0 -1
- package/admin/custom/assets/rolldown-runtime-Dd_uD5pT.js +0 -1
- package/admin/custom/assets/utils-towTPKqG.js +0 -4
|
@@ -1 +1 @@
|
|
|
1
|
-
import{i as e,t}from"./rolldown-runtime-
|
|
1
|
+
import{i as e,t}from"./rolldown-runtime-COiEfhsA.js";var n=t((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.fragment`);function r(e,n,r){var i=null;if(r!==void 0&&(i=``+r),n.key!==void 0&&(i=``+n.key),`key`in n)for(var a in r={},n)a!==`key`&&(r[a]=n[a]);else r=n;return n=r.ref,{$$typeof:t,type:e,key:i,ref:n===void 0?null:n,props:r}}e.Fragment=n,e.jsx=r,e.jsxs=r})),r=e(t(((e,t)=>{t.exports=n()}))()),i=r.default??r,a=i.Fragment,o=i.jsx,s=i.jsxs;export{a as Fragment,i as default,o as jsx,s as jsxs};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as e,c as t,i as n,l as r,o as i,r as a,s as o,t as s}from"./utils-
|
|
1
|
+
import{a as e,c as t,i as n,l as r,o as i,r as a,s as o,t as s}from"./utils-Bi7ATSfV.js";function c(e){let n=new((i())||a)({id:`${e.name}@${e.version||Date.now()}`,...e});return t(n),n}var l=null;function u(e){let t=s(e.name,e.version),n={...e,id:e.id||``};return t?(t.initOptions(n),l||=t,t):(l=c(n),l)}function d(...t){return r(l,e,n),l.loadRemote.apply(l,t)}function f(...t){return r(l,e,n),l.registerRemotes.apply(l,t)}o(a);export{d as n,f as r,u as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{n as e}from"./utils-Bi7ATSfV.js";({...e.global});var t=e.share;e.utils;export{t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as e}from"./vite-preload-helper-BbbETgeG.js";import{t}from"./helpers-
|
|
1
|
+
import{t as e}from"./vite-preload-helper-BbbETgeG.js";import{t}from"./helpers-DE61bb74.js";var n=`__mf_module_cache__`;globalThis[n]||={share:{},remote:{}},globalThis[n].share||={},globalThis[n].remote||={};var r=globalThis[n];for(let e of Object.keys(r.share))if(e.startsWith(`default:`)){let t=e.slice(8);r.share[t]===void 0&&(r.share[t]=r.share[e])}else if(!e.includes(`:`)){let t=`default:`+e;r.share[t]===void 0&&(r.share[t]=r.share[e])}var i;async function a(){return i||=(async()=>{let n=(e,t,n,r)=>{let i=(Array.isArray(r)?r[0]:r)||`default`,a=t||!n?e:e+`@`+n,o={canonical:i+`:`+a};return i==="default"&&(o.aliases=[a]),o},i=(e,t)=>{let n=e[t.canonical];if(n!==void 0)return n;let r=t.aliases||[];for(let n of r){if(!Object.prototype.hasOwnProperty.call(e,n))continue;let r=e[n];if(r!==void 0)return e[t.canonical]=r,r}},a=Symbol.for(`module-federation.shared-cache-listeners`),o=Symbol.for(`module-federation.shared-cache-owners`),s=e=>{let t=e[o];return t===void 0&&(t=Object.create(null),Object.defineProperty(e,o,{value:t,enumerable:!1,configurable:!1,writable:!1})),t},c=(e,t)=>{var n;return(n=e[o])==null?void 0:n[t.canonical]},l=e=>{let t=[e,e==null?void 0:e.default];for(let e of t)if(e&&typeof e==`object`){for(let t of[`__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE`,`__TEST_INTERNALS`,`__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED`]){let n=e[t];if(n&&typeof n==`object`)return{internals:n}}if(typeof e.useState==`function`)return{hook:e.useState}}},u=(e,t)=>{if(e===t)return!0;let n=l(e),r=l(t);if(!n||!r)return!1;let i=n.internals,a=r.internals;return i!==void 0||a!==void 0?i!==void 0&&i===a:typeof n.hook==`function`&&n.hook===r.hook},d=(e,t,n,r)=>{var c;let l=i(e,t);if(l!==void 0&&u(l,n))return n;e[t.canonical]=n;let d=t.aliases||[];for(let t of d)Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0});let f=e[o];r===void 0?f&&delete f[t.canonical]:s(e)[t.canonical]=r;let p=(c=e[a])==null?void 0:c[t.canonical];if(p)for(let e of p)e(n);return n},f=await(await e(()=>import(`../customComponents.js`),[],import.meta.url)).init(),{usedShared:p}=await e(async()=>{let{usedShared:e}=await import(`./_virtual_mf-localSharedImportMap___mfe_internal__ConfigCustomAssistant__mf_owner__1-A4gakomR.js`);return{usedShared:e}},[],import.meta.url),m=e=>{let t=e;for(let e=0;e<5;e++){let e=t==null?void 0:t.default;if(!e||typeof e!=`object`||Object.keys(e).length===0)break;let n=Object.getPrototypeOf(e);if(n!==null&&n!==Object.prototype)break;let r=Object.keys(t).filter(e=>e!=="default").map(e=>t[e]);if(r.length>0&&r.some(e=>e!==void 0))break;t=e}return t},h=(e,t)=>y(t).some(n=>{var r;return Object.keys(((r=f.shareScopeMap)==null||(r=r[n])==null?void 0:r[e])||{}).some(e=>e!==t.version)}),g=[[`react`],[`react-dom`,`@emotion/react`],[`@emotion/styled`],[`@mui/material`],[`@mui/icons-material`],[`@iobroker/gui-components`],[`@iobroker/json-config`]],_=Symbol(`mf.originalSharedProvider`),v={emit:e=>e},y=e=>Array.isArray(e.scope)?e.scope:[e.scope||`default`],b=(e,t)=>{if(t!==`version-first`)return e;let n={};for(let[t,r]of Object.entries(e))n[t]=Object.assign({},r,{[_]:r});return n},x=(e,n,r,i)=>{var a;if(!e||!r)return;let o=Object.fromEntries(Object.entries(e).filter(([,e])=>{var t;return(e==null||(t=e.shareConfig)==null?void 0:t.import)!==!1}));if(Object.keys(o).length===0)return;let s=y(r),c=b(o,i),l={};for(let e of s)l[e||`default`]={[n]:c};let u=(a=t.getRegisteredShare(l,n,{...r,scope:s,strategy:i},v))==null?void 0:a.shared;return(u==null?void 0:u[_])||u},S=(e,t,n,r)=>{var i;return(i=n.shareConfig)!=null&&i.singleton?Object.values(e||{}).some(e=>{var t;return(e==null||(t=e.shareConfig)==null?void 0:t.import)!==!1}):!!x(e,t,{...n,scope:[r]},`version-first`)};for(let e of g)await Promise.all(e.map(async e=>{var t,a,o,s;let l=p[e];if(!l||l.materialize===!1&&!l.lazy||l.treeShaking)return;let u=n(e,(t=l.shareConfig)==null?void 0:t.singleton,l.version,l.scope);if(!(i(r.share,u)!==void 0&&(!((a=l.shareConfig)!=null&&a.singleton)&&c(r.share,u)===`ConfigCustomAssistant`||(o=l.shareConfig)!=null&&o.singleton&&!h(e,l)))){if(((s=l.shareConfig)==null?void 0:s.import)===!1){let t=y(l),n=t=>{var n;return!S((n=f.shareScopeMap)==null||(n=n[t])==null?void 0:n[e],e,l,t)};if(t.some(n)){var g;if(!f.__mfKeepAdoptedProviders){var _,v;f.__mfKeepAdoptedProviders=!0,(_=f.sharedHandler)==null||(_=_.hooks)==null||(_=_.lifecycle)==null||(_=_.afterRegisterShare)==null||(v=_.on)==null||v.call(_,e=>{var t,n,r;let{shared:i,previousShared:a,registeredShared:o}=e||{},s=(t=f.shareScopeMap)==null||(t=t[e.scope])==null?void 0:t[e.pkgName];if(i&&s){if(((n=i.shareConfig)==null?void 0:n.import)!==!1){var c;o!==i&&(o==null||(c=o.shareConfig)==null?void 0:c.import)===!1&&!o.loaded&&s[i.version]===o&&(s[i.version]=i)}else o===i&&a&&((r=a.shareConfig)==null?void 0:r.import)!==!1&&s[i.version]===i&&(s[i.version]=a)}})}for(let r of((g=globalThis.__FEDERATION__)==null?void 0:g.__INSTANCES__)||[])for(let i of t){var b;let t=r==null||(b=r.shareScopeMap)==null||(b=b[i])==null?void 0:b[e];if(!S(t,e,l,i)||!n(i))continue;let a=(f.shareScopeMap[i]||={})[e]||={};for(let[e,n]of Object.entries(t)){var x,C;(n==null||(x=n.shareConfig)==null?void 0:x.import)!==!1&&(a[e]&&((C=a[e].shareConfig)==null?void 0:C.import)!==!1||(a[e]=n))}}}if(t.every(n))return}await f.loadShare(e,{customShareInfo:{shareConfig:l.shareConfig}}).then(async e=>{if(e===!1)return;let t=typeof e==`function`?e():e,n=m(await Promise.resolve(t));d(r.share,u,n,`ConfigCustomAssistant`)})}}));for(let[e,t]of Object.entries(p)){var C,w;if(!t.lib||t.treeShaking||((C=t.shareConfig)==null?void 0:C.import)===!1)continue;let i=n(e,(w=t.shareConfig)==null?void 0:w.singleton,t.version,t.scope);if(c(r.share,i)===`ConfigCustomAssistant`)for(let n of Array.isArray(t.scope)?t.scope:[t.scope||`default`]){var T;let r=(T=f.shareScopeMap)==null||(T=T[n])==null?void 0:T[e],i=r==null?void 0:r[t.version];i&&i.get===t.get&&!i.lib&&(Object.values(r).some(e=>e!==i&&((e==null?void 0:e.lib)||(e==null?void 0:e.loaded)))||(i.lib=t.lib,i.loaded=!0))}}return f})(),i}i=a();export{i as hostInitPromise,a as initHost};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import{i as e}from"./rolldown-runtime-
|
|
1
|
+
import{i as e}from"./rolldown-runtime-COiEfhsA.js";import{v as t,w as n}from"./_virtual_mf___mfe_internal__ConfigCustomAssistant__mf_owner__201375093093590__loadShare___mf_0_emotion_mf_1_react__loadShare__.js-BkH7fzDw.js";import{ei as r}from"./_virtual_mf___mfe_internal__ConfigCustomAssistant__mf_owner__201375093093590__loadShare___mf_0_iobroker_mf_1_gui_mf_2_components__loadShare__.js-BMuLYe6f.js";var i=e(r(),1),a=function(e,t){let n=e,r=s[t],i=null,a=0,o=null,c=[],u={},v=function(e,t){a=n*4+17,i=function(e){let t=Array(e);for(let n=0;n<e;n+=1){t[n]=Array(e);for(let r=0;r<e;r+=1)t[n][r]=null}return t}(a),y(0,0),y(a-7,0),y(0,a-7),C(),x(),T(e,t),n>=7&&w(e),o??=O(n,r,c),E(o,t)},y=function(e,t){for(let n=-1;n<=7;n+=1)if(!(e+n<=-1||a<=e+n))for(let r=-1;r<=7;r+=1)t+r<=-1||a<=t+r||(0<=n&&n<=6&&(r==0||r==6)||0<=r&&r<=6&&(n==0||n==6)||2<=n&&n<=4&&2<=r&&r<=4?i[e+n][t+r]=!0:i[e+n][t+r]=!1)},b=function(){let e=0,t=0;for(let n=0;n<8;n+=1){v(!0,n);let r=l.getLostPoint(u);(n==0||e>r)&&(e=r,t=n)}return t},x=function(){for(let e=8;e<a-8;e+=1)i[e][6]??(i[e][6]=e%2==0);for(let e=8;e<a-8;e+=1)i[6][e]??(i[6][e]=e%2==0)},C=function(){let e=l.getPatternPosition(n);for(let t=0;t<e.length;t+=1)for(let n=0;n<e.length;n+=1){let r=e[t],a=e[n];if(i[r][a]==null)for(let e=-2;e<=2;e+=1)for(let t=-2;t<=2;t+=1)e==-2||e==2||t==-2||t==2||e==0&&t==0?i[r+e][a+t]=!0:i[r+e][a+t]=!1}},w=function(e){let t=l.getBCHTypeNumber(n);for(let n=0;n<18;n+=1){let r=!e&&(t>>n&1)==1;i[Math.floor(n/3)][n%3+a-8-3]=r}for(let n=0;n<18;n+=1){let r=!e&&(t>>n&1)==1;i[n%3+a-8-3][Math.floor(n/3)]=r}},T=function(e,t){let n=r<<3|t,o=l.getBCHTypeInfo(n);for(let t=0;t<15;t+=1){let n=!e&&(o>>t&1)==1;t<6?i[t][8]=n:t<8?i[t+1][8]=n:i[a-15+t][8]=n}for(let t=0;t<15;t+=1){let n=!e&&(o>>t&1)==1;t<8?i[8][a-t-1]=n:t<9?i[8][15-t-1+1]=n:i[8][15-t-1]=n}i[a-8][8]=!e},E=function(e,t){let n=-1,r=a-1,o=7,s=0,c=l.getMaskFunction(t);for(let t=a-1;t>0;t-=2)for(t==6&&--t;;){for(let n=0;n<2;n+=1)if(i[r][t-n]==null){let a=!1;s<e.length&&(a=(e[s]>>>o&1)==1),c(r,t-n)&&(a=!a),i[r][t-n]=a,--o,o==-1&&(s+=1,o=7)}if(r+=n,r<0||a<=r){r-=n,n=-n;break}}},D=function(e,t){let n=0,r=0,i=0,a=Array(t.length),o=Array(t.length);for(let s=0;s<t.length;s+=1){let c=t[s].dataCount,u=t[s].totalCount-c;r=Math.max(r,c),i=Math.max(i,u),a[s]=Array(c);for(let t=0;t<a[s].length;t+=1)a[s][t]=255&e.getBuffer()[t+n];n+=c;let f=l.getErrorCorrectPolynomial(u),p=d(a[s],f.getLength()-1).mod(f);o[s]=Array(f.getLength()-1);for(let e=0;e<o[s].length;e+=1){let t=e+p.getLength()-o[s].length;o[s][e]=t>=0?p.getAt(t):0}}let s=0;for(let e=0;e<t.length;e+=1)s+=t[e].totalCount;let c=Array(s),u=0;for(let e=0;e<r;e+=1)for(let n=0;n<t.length;n+=1)e<a[n].length&&(c[u]=a[n][e],u+=1);for(let e=0;e<i;e+=1)for(let n=0;n<t.length;n+=1)e<o[n].length&&(c[u]=o[n][e],u+=1);return c},O=function(e,t,n){let r=f.getRSBlocks(e,t),i=p();for(let t=0;t<n.length;t+=1){let r=n[t];i.put(r.getMode(),4),i.put(r.getLength(),l.getLengthInBits(r.getMode(),e)),r.write(i)}let a=0;for(let e=0;e<r.length;e+=1)a+=r[e].dataCount;if(i.getLengthInBits()>a*8)throw`code length overflow. (`+i.getLengthInBits()+`>`+a*8+`)`;for(i.getLengthInBits()+4<=a*8&&i.put(0,4);i.getLengthInBits()%8!=0;)i.putBit(!1);for(;!(i.getLengthInBits()>=a*8||(i.put(236,8),i.getLengthInBits()>=a*8));)i.put(17,8);return D(i,r)};u.addData=function(e,t){t||=`Byte`;let n=null;switch(t){case`Numeric`:n=m(e);break;case`Alphanumeric`:n=h(e);break;case`Byte`:n=g(e);break;case`Kanji`:n=_(e);break;default:throw`mode:`+t}c.push(n),o=null},u.isDark=function(e,t){if(e<0||a<=e||t<0||a<=t)throw e+`,`+t;return i[e][t]},u.getModuleCount=function(){return a},u.make=function(){if(n<1){let e=1;for(;e<40;e++){let t=f.getRSBlocks(e,r),n=p();for(let t=0;t<c.length;t++){let r=c[t];n.put(r.getMode(),4),n.put(r.getLength(),l.getLengthInBits(r.getMode(),e)),r.write(n)}let i=0;for(let e=0;e<t.length;e++)i+=t[e].dataCount;if(n.getLengthInBits()<=i*8)break}n=e}v(!1,b())},u.createTableTag=function(e,t){e||=2,t=t===void 0?e*4:t;let n=``;n+=`<table style="`,n+=` border-width: 0px; border-style: none;`,n+=` border-collapse: collapse;`,n+=` padding: 0px; margin: `+t+`px;`,n+=`">`,n+=`<tbody>`;for(let t=0;t<u.getModuleCount();t+=1){n+=`<tr>`;for(let r=0;r<u.getModuleCount();r+=1)n+=`<td style="`,n+=` border-width: 0px; border-style: none;`,n+=` border-collapse: collapse;`,n+=` padding: 0px; margin: 0px;`,n+=` width: `+e+`px;`,n+=` height: `+e+`px;`,n+=` background-color: `,n+=u.isDark(t,r)?`#000000`:`#ffffff`,n+=`;`,n+=`"/>`;n+=`</tr>`}return n+=`</tbody>`,n+=`</table>`,n},u.createSvgTag=function(e,t,n,r){let i={};typeof arguments[0]==`object`&&(i=arguments[0],e=i.cellSize,t=i.margin,n=i.alt,r=i.title),e||=2,t=t===void 0?e*4:t,n=typeof n==`string`?{text:n}:n||{},n.text=n.text||null,n.id=n.text?n.id||`qrcode-description`:null,r=typeof r==`string`?{text:r}:r||{},r.text=r.text||null,r.id=r.text?r.id||`qrcode-title`:null;let a=u.getModuleCount()*e+t*2,o,s,c,l,d=``,f;for(f=`l`+e+`,0 0,`+e+` -`+e+`,0 0,-`+e+`z `,d+=`<svg version="1.1" xmlns="http://www.w3.org/2000/svg"`,d+=i.scalable?``:` width="`+a+`px" height="`+a+`px"`,d+=` viewBox="0 0 `+a+` `+a+`" `,d+=` preserveAspectRatio="xMinYMin meet"`,d+=r.text||n.text?` role="img" aria-labelledby="`+k([r.id,n.id].join(` `).trim())+`"`:``,d+=`>`,d+=r.text?`<title id="`+k(r.id)+`">`+k(r.text)+`</title>`:``,d+=n.text?`<description id="`+k(n.id)+`">`+k(n.text)+`</description>`:``,d+=`<rect width="100%" height="100%" fill="white" cx="0" cy="0"/>`,d+=`<path d="`,c=0;c<u.getModuleCount();c+=1)for(l=c*e+t,o=0;o<u.getModuleCount();o+=1)u.isDark(c,o)&&(s=o*e+t,d+=`M`+s+`,`+l+f);return d+=`" stroke="transparent" fill="black"/>`,d+=`</svg>`,d},u.createDataURL=function(e,t){e||=2,t=t===void 0?e*4:t;let n=u.getModuleCount()*e+t*2,r=t,i=n-t;return S(n,n,function(t,n){if(r<=t&&t<i&&r<=n&&n<i){let i=Math.floor((t-r)/e),a=Math.floor((n-r)/e);return+!u.isDark(a,i)}return 1})},u.createImgTag=function(e,t,n){e||=2,t=t===void 0?e*4:t;let r=u.getModuleCount()*e+t*2,i=``;return i+=`<img`,i+=` src="`,i+=u.createDataURL(e,t),i+=`"`,i+=` width="`,i+=r,i+=`"`,i+=` height="`,i+=r,i+=`"`,n&&(i+=` alt="`,i+=k(n),i+=`"`),i+=`/>`,i};let k=function(e){let t=``;for(let n=0;n<e.length;n+=1){let r=e.charAt(n);switch(r){case`<`:t+=`<`;break;case`>`:t+=`>`;break;case`&`:t+=`&`;break;case`"`:t+=`"`;break;default:t+=r}}return t},A=function(e){e=e===void 0?2:e;let t=u.getModuleCount()*1+e*2,n=e,r=t-e,i,a,o,s,c,l={"██":`█`,"█ ":`▀`," █":`▄`," ":` `},d={"██":`▀`,"█ ":`▀`," █":` `," ":` `},f=``;for(i=0;i<t;i+=2){for(o=Math.floor((i-n)/1),s=Math.floor((i+1-n)/1),a=0;a<t;a+=1)c=`█`,n<=a&&a<r&&n<=i&&i<r&&u.isDark(o,Math.floor((a-n)/1))&&(c=` `),n<=a&&a<r&&n<=i+1&&i+1<r&&u.isDark(s,Math.floor((a-n)/1))?c+=` `:c+=`█`,f+=e<1&&i+1>=r?d[c]:l[c];f+=`
|
|
2
2
|
`}return t%2&&e>0?f.substring(0,f.length-t-1)+Array(t+1).join(`▀`):f.substring(0,f.length-1)};return u.createASCII=function(e,t){if(e||=1,e<2)return A(t);--e,t=t===void 0?e*2:t;let n=u.getModuleCount()*e+t*2,r=t,i=n-t,a,o,s,c,l=Array(e+1).join(`██`),d=Array(e+1).join(` `),f=``,p=``;for(a=0;a<n;a+=1){for(s=Math.floor((a-r)/e),p=``,o=0;o<n;o+=1)c=1,r<=o&&o<i&&r<=a&&a<i&&u.isDark(s,Math.floor((o-r)/e))&&(c=0),p+=c?l:d;for(s=0;s<e;s+=1)f+=p+`
|
|
3
3
|
`}return f.substring(0,f.length-1)},u.renderTo2dContext=function(e,t){t||=2;let n=u.getModuleCount();for(let r=0;r<n;r++)for(let i=0;i<n;i++)e.fillStyle=u.isDark(r,i)?`black`:`white`,e.fillRect(i*t,r*t,t,t)},u};a.stringToBytes=function(e){let t=[];for(let n=0;n<e.length;n+=1){let r=e.charCodeAt(n);t.push(r&255)}return t},a.createStringToBytes=function(e,t){let n=function(){let n=b(e),r=function(){let e=n.read();if(e==-1)throw`eof`;return e},i=0,a={};for(;;){let e=n.read();if(e==-1)break;let t=r(),o=r(),s=r(),c=String.fromCharCode(e<<8|t);a[c]=o<<8|s,i+=1}if(i!=t)throw i+` != `+t;return a}();return function(e){let t=[];for(let r=0;r<e.length;r+=1){let i=e.charCodeAt(r);if(i<128)t.push(i);else{let i=n[e.charAt(r)];typeof i==`number`?(i&255)==i?t.push(i):(t.push(i>>>8),t.push(i&255)):t.push(63)}}return t}};var o={MODE_NUMBER:1,MODE_ALPHA_NUM:2,MODE_8BIT_BYTE:4,MODE_KANJI:8},s={L:1,M:0,Q:3,H:2},c={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7},l=function(){let e=[[],[6,18],[6,22],[6,26],[6,30],[6,34],[6,22,38],[6,24,42],[6,26,46],[6,28,50],[6,30,54],[6,32,58],[6,34,62],[6,26,46,66],[6,26,48,70],[6,26,50,74],[6,30,54,78],[6,30,56,82],[6,30,58,86],[6,34,62,90],[6,28,50,72,94],[6,26,50,74,98],[6,30,54,78,102],[6,28,54,80,106],[6,32,58,84,110],[6,30,58,86,114],[6,34,62,90,118],[6,26,50,74,98,122],[6,30,54,78,102,126],[6,26,52,78,104,130],[6,30,56,82,108,134],[6,34,60,86,112,138],[6,30,58,86,114,142],[6,34,62,90,118,146],[6,30,54,78,102,126,150],[6,24,50,76,102,128,154],[6,28,54,80,106,132,158],[6,32,58,84,110,136,162],[6,26,54,82,110,138,166],[6,30,58,86,114,142,170]],t=1335,n=7973,r={},i=function(e){let t=0;for(;e!=0;)t+=1,e>>>=1;return t};return r.getBCHTypeInfo=function(e){let n=e<<10;for(;i(n)-i(t)>=0;)n^=t<<i(n)-i(t);return(e<<10|n)^21522},r.getBCHTypeNumber=function(e){let t=e<<12;for(;i(t)-i(n)>=0;)t^=n<<i(t)-i(n);return e<<12|t},r.getPatternPosition=function(t){return e[t-1]},r.getMaskFunction=function(e){switch(e){case c.PATTERN000:return function(e,t){return(e+t)%2==0};case c.PATTERN001:return function(e,t){return e%2==0};case c.PATTERN010:return function(e,t){return t%3==0};case c.PATTERN011:return function(e,t){return(e+t)%3==0};case c.PATTERN100:return function(e,t){return(Math.floor(e/2)+Math.floor(t/3))%2==0};case c.PATTERN101:return function(e,t){return e*t%2+e*t%3==0};case c.PATTERN110:return function(e,t){return(e*t%2+e*t%3)%2==0};case c.PATTERN111:return function(e,t){return(e*t%3+(e+t)%2)%2==0};default:throw`bad maskPattern:`+e}},r.getErrorCorrectPolynomial=function(e){let t=d([1],0);for(let n=0;n<e;n+=1)t=t.multiply(d([1,u.gexp(n)],0));return t},r.getLengthInBits=function(e,t){if(1<=t&&t<10)switch(e){case o.MODE_NUMBER:return 10;case o.MODE_ALPHA_NUM:return 9;case o.MODE_8BIT_BYTE:return 8;case o.MODE_KANJI:return 8;default:throw`mode:`+e}else if(t<27)switch(e){case o.MODE_NUMBER:return 12;case o.MODE_ALPHA_NUM:return 11;case o.MODE_8BIT_BYTE:return 16;case o.MODE_KANJI:return 10;default:throw`mode:`+e}else if(t<41)switch(e){case o.MODE_NUMBER:return 14;case o.MODE_ALPHA_NUM:return 13;case o.MODE_8BIT_BYTE:return 16;case o.MODE_KANJI:return 12;default:throw`mode:`+e}else throw`type:`+t},r.getLostPoint=function(e){let t=e.getModuleCount(),n=0;for(let r=0;r<t;r+=1)for(let i=0;i<t;i+=1){let a=0,o=e.isDark(r,i);for(let n=-1;n<=1;n+=1)if(!(r+n<0||t<=r+n))for(let s=-1;s<=1;s+=1)i+s<0||t<=i+s||(n!=0||s!=0)&&o==e.isDark(r+n,i+s)&&(a+=1);a>5&&(n+=3+a-5)}for(let r=0;r<t-1;r+=1)for(let i=0;i<t-1;i+=1){let t=0;e.isDark(r,i)&&(t+=1),e.isDark(r+1,i)&&(t+=1),e.isDark(r,i+1)&&(t+=1),e.isDark(r+1,i+1)&&(t+=1),(t==0||t==4)&&(n+=3)}for(let r=0;r<t;r+=1)for(let i=0;i<t-6;i+=1)e.isDark(r,i)&&!e.isDark(r,i+1)&&e.isDark(r,i+2)&&e.isDark(r,i+3)&&e.isDark(r,i+4)&&!e.isDark(r,i+5)&&e.isDark(r,i+6)&&(n+=40);for(let r=0;r<t;r+=1)for(let i=0;i<t-6;i+=1)e.isDark(i,r)&&!e.isDark(i+1,r)&&e.isDark(i+2,r)&&e.isDark(i+3,r)&&e.isDark(i+4,r)&&!e.isDark(i+5,r)&&e.isDark(i+6,r)&&(n+=40);let r=0;for(let n=0;n<t;n+=1)for(let i=0;i<t;i+=1)e.isDark(i,n)&&(r+=1);let i=Math.abs(100*r/t/t-50)/5;return n+=i*10,n},r}(),u=function(){let e=Array(256),t=Array(256);for(let t=0;t<8;t+=1)e[t]=1<<t;for(let t=8;t<256;t+=1)e[t]=e[t-4]^e[t-5]^e[t-6]^e[t-8];for(let n=0;n<255;n+=1)t[e[n]]=n;let n={};return n.glog=function(e){if(e<1)throw`glog(`+e+`)`;return t[e]},n.gexp=function(t){for(;t<0;)t+=255;for(;t>=256;)t-=255;return e[t]},n}(),d=function(e,t){if(e.length===void 0)throw e.length+`/`+t;let n=function(){let n=0;for(;n<e.length&&e[n]==0;)n+=1;let r=Array(e.length-n+t);for(let t=0;t<e.length-n;t+=1)r[t]=e[t+n];return r}(),r={};return r.getAt=function(e){return n[e]},r.getLength=function(){return n.length},r.multiply=function(e){let t=Array(r.getLength()+e.getLength()-1);for(let n=0;n<r.getLength();n+=1)for(let i=0;i<e.getLength();i+=1)t[n+i]^=u.gexp(u.glog(r.getAt(n))+u.glog(e.getAt(i)));return d(t,0)},r.mod=function(e){if(r.getLength()-e.getLength()<0)return r;let t=u.glog(r.getAt(0))-u.glog(e.getAt(0)),n=Array(r.getLength());for(let e=0;e<r.getLength();e+=1)n[e]=r.getAt(e);for(let r=0;r<e.getLength();r+=1)n[r]^=u.gexp(u.glog(e.getAt(r))+t);return d(n,0).mod(e)},r},f=function(){let e=[[1,26,19],[1,26,16],[1,26,13],[1,26,9],[1,44,34],[1,44,28],[1,44,22],[1,44,16],[1,70,55],[1,70,44],[2,35,17],[2,35,13],[1,100,80],[2,50,32],[2,50,24],[4,25,9],[1,134,108],[2,67,43],[2,33,15,2,34,16],[2,33,11,2,34,12],[2,86,68],[4,43,27],[4,43,19],[4,43,15],[2,98,78],[4,49,31],[2,32,14,4,33,15],[4,39,13,1,40,14],[2,121,97],[2,60,38,2,61,39],[4,40,18,2,41,19],[4,40,14,2,41,15],[2,146,116],[3,58,36,2,59,37],[4,36,16,4,37,17],[4,36,12,4,37,13],[2,86,68,2,87,69],[4,69,43,1,70,44],[6,43,19,2,44,20],[6,43,15,2,44,16],[4,101,81],[1,80,50,4,81,51],[4,50,22,4,51,23],[3,36,12,8,37,13],[2,116,92,2,117,93],[6,58,36,2,59,37],[4,46,20,6,47,21],[7,42,14,4,43,15],[4,133,107],[8,59,37,1,60,38],[8,44,20,4,45,21],[12,33,11,4,34,12],[3,145,115,1,146,116],[4,64,40,5,65,41],[11,36,16,5,37,17],[11,36,12,5,37,13],[5,109,87,1,110,88],[5,65,41,5,66,42],[5,54,24,7,55,25],[11,36,12,7,37,13],[5,122,98,1,123,99],[7,73,45,3,74,46],[15,43,19,2,44,20],[3,45,15,13,46,16],[1,135,107,5,136,108],[10,74,46,1,75,47],[1,50,22,15,51,23],[2,42,14,17,43,15],[5,150,120,1,151,121],[9,69,43,4,70,44],[17,50,22,1,51,23],[2,42,14,19,43,15],[3,141,113,4,142,114],[3,70,44,11,71,45],[17,47,21,4,48,22],[9,39,13,16,40,14],[3,135,107,5,136,108],[3,67,41,13,68,42],[15,54,24,5,55,25],[15,43,15,10,44,16],[4,144,116,4,145,117],[17,68,42],[17,50,22,6,51,23],[19,46,16,6,47,17],[2,139,111,7,140,112],[17,74,46],[7,54,24,16,55,25],[34,37,13],[4,151,121,5,152,122],[4,75,47,14,76,48],[11,54,24,14,55,25],[16,45,15,14,46,16],[6,147,117,4,148,118],[6,73,45,14,74,46],[11,54,24,16,55,25],[30,46,16,2,47,17],[8,132,106,4,133,107],[8,75,47,13,76,48],[7,54,24,22,55,25],[22,45,15,13,46,16],[10,142,114,2,143,115],[19,74,46,4,75,47],[28,50,22,6,51,23],[33,46,16,4,47,17],[8,152,122,4,153,123],[22,73,45,3,74,46],[8,53,23,26,54,24],[12,45,15,28,46,16],[3,147,117,10,148,118],[3,73,45,23,74,46],[4,54,24,31,55,25],[11,45,15,31,46,16],[7,146,116,7,147,117],[21,73,45,7,74,46],[1,53,23,37,54,24],[19,45,15,26,46,16],[5,145,115,10,146,116],[19,75,47,10,76,48],[15,54,24,25,55,25],[23,45,15,25,46,16],[13,145,115,3,146,116],[2,74,46,29,75,47],[42,54,24,1,55,25],[23,45,15,28,46,16],[17,145,115],[10,74,46,23,75,47],[10,54,24,35,55,25],[19,45,15,35,46,16],[17,145,115,1,146,116],[14,74,46,21,75,47],[29,54,24,19,55,25],[11,45,15,46,46,16],[13,145,115,6,146,116],[14,74,46,23,75,47],[44,54,24,7,55,25],[59,46,16,1,47,17],[12,151,121,7,152,122],[12,75,47,26,76,48],[39,54,24,14,55,25],[22,45,15,41,46,16],[6,151,121,14,152,122],[6,75,47,34,76,48],[46,54,24,10,55,25],[2,45,15,64,46,16],[17,152,122,4,153,123],[29,74,46,14,75,47],[49,54,24,10,55,25],[24,45,15,46,46,16],[4,152,122,18,153,123],[13,74,46,32,75,47],[48,54,24,14,55,25],[42,45,15,32,46,16],[20,147,117,4,148,118],[40,75,47,7,76,48],[43,54,24,22,55,25],[10,45,15,67,46,16],[19,148,118,6,149,119],[18,75,47,31,76,48],[34,54,24,34,55,25],[20,45,15,61,46,16]],t=function(e,t){let n={};return n.totalCount=e,n.dataCount=t,n},n={},r=function(t,n){switch(n){case s.L:return e[(t-1)*4+0];case s.M:return e[(t-1)*4+1];case s.Q:return e[(t-1)*4+2];case s.H:return e[(t-1)*4+3];default:return}};return n.getRSBlocks=function(e,n){let i=r(e,n);if(i===void 0)throw`bad rs block @ typeNumber:`+e+`/errorCorrectionLevel:`+n;let a=i.length/3,o=[];for(let e=0;e<a;e+=1){let n=i[e*3+0],r=i[e*3+1],a=i[e*3+2];for(let e=0;e<n;e+=1)o.push(t(r,a))}return o},n}(),p=function(){let e=[],t=0,n={};return n.getBuffer=function(){return e},n.getAt=function(t){let n=Math.floor(t/8);return(e[n]>>>7-t%8&1)==1},n.put=function(e,t){for(let r=0;r<t;r+=1)n.putBit((e>>>t-r-1&1)==1)},n.getLengthInBits=function(){return t},n.putBit=function(n){let r=Math.floor(t/8);e.length<=r&&e.push(0),n&&(e[r]|=128>>>t%8),t+=1},n},m=function(e){let t=o.MODE_NUMBER,n=e,r={};r.getMode=function(){return t},r.getLength=function(e){return n.length},r.write=function(e){let t=n,r=0;for(;r+2<t.length;)e.put(i(t.substring(r,r+3)),10),r+=3;r<t.length&&(t.length-r==1?e.put(i(t.substring(r,r+1)),4):t.length-r==2&&e.put(i(t.substring(r,r+2)),7))};let i=function(e){let t=0;for(let n=0;n<e.length;n+=1)t=t*10+a(e.charAt(n));return t},a=function(e){if(`0`<=e&&e<=`9`)return e.charCodeAt(0)-48;throw`illegal char :`+e};return r},h=function(e){let t=o.MODE_ALPHA_NUM,n=e,r={};r.getMode=function(){return t},r.getLength=function(e){return n.length},r.write=function(e){let t=n,r=0;for(;r+1<t.length;)e.put(i(t.charAt(r))*45+i(t.charAt(r+1)),11),r+=2;r<t.length&&e.put(i(t.charAt(r)),6)};let i=function(e){if(`0`<=e&&e<=`9`)return e.charCodeAt(0)-48;if(`A`<=e&&e<=`Z`)return e.charCodeAt(0)-65+10;switch(e){case` `:return 36;case`$`:return 37;case`%`:return 38;case`*`:return 39;case`+`:return 40;case`-`:return 41;case`.`:return 42;case`/`:return 43;case`:`:return 44;default:throw`illegal char :`+e}};return r},g=function(e){let t=o.MODE_8BIT_BYTE,n=a.stringToBytes(e),r={};return r.getMode=function(){return t},r.getLength=function(e){return n.length},r.write=function(e){for(let t=0;t<n.length;t+=1)e.put(n[t],8)},r},_=function(e){let t=o.MODE_KANJI,n=a.stringToBytes;(function(e,t){let r=n(e);if(r.length!=2||(r[0]<<8|r[1])!=t)throw`sjis not supported.`})(`友`,38726);let r=n(e),i={};return i.getMode=function(){return t},i.getLength=function(e){return~~(r.length/2)},i.write=function(e){let t=r,n=0;for(;n+1<t.length;){let r=(255&t[n])<<8|255&t[n+1];if(33088<=r&&r<=40956)r-=33088;else if(57408<=r&&r<=60351)r-=49472;else throw`illegal char at `+(n+1)+`/`+r;r=(r>>>8&255)*192+(r&255),e.put(r,13),n+=2}if(n<t.length)throw`illegal char at `+(n+1)},i},v=function(){let e=[],t={};return t.writeByte=function(t){e.push(t&255)},t.writeShort=function(e){t.writeByte(e),t.writeByte(e>>>8)},t.writeBytes=function(e,n,r){n||=0,r||=e.length;for(let i=0;i<r;i+=1)t.writeByte(e[i+n])},t.writeString=function(e){for(let n=0;n<e.length;n+=1)t.writeByte(e.charCodeAt(n))},t.toByteArray=function(){return e},t.toString=function(){let t=``;t+=`[`;for(let n=0;n<e.length;n+=1)n>0&&(t+=`,`),t+=e[n];return t+=`]`,t},t},y=function(){let e=0,t=0,n=0,r=``,i={},a=function(e){r+=String.fromCharCode(o(e&63))},o=function(e){if(e<0)throw`n:`+e;if(e<26)return 65+e;if(e<52)return 97+(e-26);if(e<62)return 48+(e-52);if(e==62)return 43;if(e==63)return 47;throw`n:`+e};return i.writeByte=function(r){for(e=e<<8|r&255,t+=8,n+=1;t>=6;)a(e>>>t-6),t-=6},i.flush=function(){if(t>0&&(a(e<<6-t),e=0,t=0),n%3!=0){let e=3-n%3;for(let t=0;t<e;t+=1)r+=`=`}},i.toString=function(){return r},i},b=function(e){let t=e,n=0,r=0,i=0,a={};a.read=function(){for(;i<8;){if(n>=t.length){if(i==0)return-1;throw`unexpected end of file./`+i}let e=t.charAt(n);if(n+=1,e==`=`)return i=0,-1;e.match(/^\s$/)||(r=r<<6|o(e.charCodeAt(0)),i+=6)}let e=r>>>i-8&255;return i-=8,e};let o=function(e){if(65<=e&&e<=90)return e-65;if(97<=e&&e<=122)return e-97+26;if(48<=e&&e<=57)return e-48+52;if(e==43)return 62;if(e==47)return 63;throw`c:`+e};return a},x=function(e,t){let n=e,r=t,i=Array(e*t),a={};a.setPixel=function(e,t,r){i[t*n+e]=r},a.write=function(e){e.writeString(`GIF87a`),e.writeShort(n),e.writeShort(r),e.writeByte(128),e.writeByte(0),e.writeByte(0),e.writeByte(0),e.writeByte(0),e.writeByte(0),e.writeByte(255),e.writeByte(255),e.writeByte(255),e.writeString(`,`),e.writeShort(0),e.writeShort(0),e.writeShort(n),e.writeShort(r),e.writeByte(0);let t=s(2);e.writeByte(2);let i=0;for(;t.length-i>255;)e.writeByte(255),e.writeBytes(t,i,255),i+=255;e.writeByte(t.length-i),e.writeBytes(t,i,t.length-i),e.writeByte(0),e.writeString(`;`)};let o=function(e){let t=e,n=0,r=0,i={};return i.write=function(e,i){if(e>>>i)throw`length over`;for(;n+i>=8;)t.writeByte(255&(e<<n|r)),i-=8-n,e>>>=8-n,r=0,n=0;r=e<<n|r,n+=i},i.flush=function(){n>0&&t.writeByte(r)},i},s=function(e){let t=1<<e,n=(1<<e)+1,r=e+1,a=c();for(let e=0;e<t;e+=1)a.add(String.fromCharCode(e));a.add(String.fromCharCode(t)),a.add(String.fromCharCode(n));let s=v(),l=o(s);l.write(t,r);let u=0,d=String.fromCharCode(i[u]);for(u+=1;u<i.length;){let e=String.fromCharCode(i[u]);u+=1,a.contains(d+e)?d+=e:(l.write(a.indexOf(d),r),a.size()<4095&&(a.size()==1<<r&&(r+=1),a.add(d+e)),d=e)}return l.write(a.indexOf(d),r),l.write(n,r),l.flush(),s.toByteArray()},c=function(){let e={},t=0,n={};return n.add=function(r){if(n.contains(r))throw`dup key:`+r;e[r]=t,t+=1},n.size=function(){return t},n.indexOf=function(t){return e[t]},n.contains=function(t){return e[t]!==void 0},n};return a},S=function(e,t,n){let r=x(e,t);for(let i=0;i<t;i+=1)for(let t=0;t<e;t+=1)r.setPixel(t,i,n(t,i));let i=v();r.write(i);let a=y(),o=i.toByteArray();for(let e=0;e<o.length;e+=1)a.writeByte(o[e]);return a.flush(),`data:image/gif;base64,`+a};a.stringToBytes;function C(){return C=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},C.apply(null,arguments)}function w(e,t){if(e==null)return{};var n,r,i=T(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function T(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var E=[`bgColor`,`bgD`,`fgD`,`fgColor`,`size`,`title`,`viewBoxSize`,`xmlns`],D={bgColor:i.default.oneOfType([i.default.object,i.default.string]).isRequired,bgD:i.default.string.isRequired,fgColor:i.default.oneOfType([i.default.object,i.default.string]).isRequired,fgD:i.default.string.isRequired,size:i.default.number.isRequired,title:i.default.string,viewBoxSize:i.default.number.isRequired,xmlns:i.default.string},O=n(function(e,n){var r=e.bgColor,i=e.bgD,a=e.fgD,o=e.fgColor,s=e.size,c=e.title,l=e.viewBoxSize,u=e.xmlns,d=u===void 0?`http://www.w3.org/2000/svg`:u,f=w(e,E);return t.createElement(`svg`,C({},f,{height:s,ref:n,viewBox:`0 0 ${l} ${l}`,width:s,xmlns:d}),c?t.createElement(`title`,null,c):null,t.createElement(`path`,{d:i,fill:r}),t.createElement(`path`,{d:a,fill:o}))});O.displayName=`QRCodeSvg`,O.propTypes=D;var k=[`bgColor`,`fgColor`,`level`,`size`,`value`];a.stringToBytes=function(e){return Array.from(new TextEncoder().encode(e))};var A={bgColor:i.default.oneOfType([i.default.object,i.default.string]),fgColor:i.default.oneOfType([i.default.object,i.default.string]),level:i.default.string,size:i.default.number,value:i.default.string.isRequired},j=n(function(e,n){var r=e.bgColor,i=r===void 0?`#FFFFFF`:r,o=e.fgColor,s=o===void 0?`#000000`:o,c=e.level,l=c===void 0?`L`:c,u=e.size,d=u===void 0?256:u,f=e.value,p=w(e,k),m=a(0,l);m.addData(f),m.make();var h=m.getModuleCount(),g=Array.from({length:h},function(e,t){return Array.from({length:h},function(e,n){return m.isDark(t,n)})});return t.createElement(O,C({},p,{bgColor:i,bgD:g.map(function(e,t){return e.map(function(e,n){return e?``:`M ${n} ${t} l 1 0 0 1 -1 0 Z`}).join(` `)}).join(` `),fgColor:s,fgD:g.map(function(e,t){return e.map(function(e,n){return e?`M ${n} ${t} l 1 0 0 1 -1 0 Z`:``}).join(` `)}).join(` `),ref:n,size:d,viewBoxSize:h}))});j.displayName=`QRCode`,j.propTypes=A;export{j as QRCode,j as default};
|
package/admin/custom/assets/{mf-entry-bootstrap-0-7c1ddf47.js → mf-entry-bootstrap-0-4806bbe4.js}
RENAMED
|
@@ -37,11 +37,11 @@ const __mfImport = (src) =>
|
|
|
37
37
|
|
|
38
38
|
|
|
39
39
|
(async () => {
|
|
40
|
-
const __mfHostInit = await __mfImport("./hostInit-
|
|
40
|
+
const __mfHostInit = await __mfImport("./hostInit-4roC4hEj.js");
|
|
41
41
|
await __mfHostInit.__tla;
|
|
42
42
|
const { initHost } = __mfHostInit;
|
|
43
43
|
await initHost();
|
|
44
|
-
const __mfPendingShares = await __mfImport("./pendingShares-
|
|
44
|
+
const __mfPendingShares = await __mfImport("./pendingShares-DLlv8yFY.js").catch(() => undefined);
|
|
45
45
|
if (__mfPendingShares && typeof __mfPendingShares.preloadPendingShares === "function") await __mfPendingShares.preloadPendingShares();
|
|
46
46
|
if (__mfModuleCache.pendingShareLoads) {
|
|
47
47
|
await Promise.all(__mfModuleCache.pendingShareLoads);
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./utils-
|
|
2
|
-
import{t as e}from"./vite-preload-helper-BbbETgeG.js";var t=`__mf_module_cache__`;globalThis[t]||={share:{},remote:{}},globalThis[t].share||={},globalThis[t].remote||={};var n=globalThis[t];for(let e of Object.keys(n.share))if(e.startsWith(`default:`)){let t=e.slice(8);n.share[t]===void 0&&(n.share[t]=n.share[e])}else if(!e.includes(`:`)){let t=`default:`+e;n.share[t]===void 0&&(n.share[t]=n.share[e])}var r=(e,t,n,r)=>{let i=(Array.isArray(r)?r[0]:r)||`default`,a=t||!n?e:e+`@`+n,o={canonical:i+`:`+a};return i==="default"&&(o.aliases=[a]),o},i=(e,t)=>{let n=e[t.canonical];if(n!==void 0)return n;let r=t.aliases||[];for(let n of r){if(!Object.prototype.hasOwnProperty.call(e,n))continue;let r=e[n];if(r!==void 0)return e[t.canonical]=r,r}},a=[[`react`,()=>e(()=>import(`./
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./utils-Bi7ATSfV.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{t as e}from"./vite-preload-helper-BbbETgeG.js";var t=`__mf_module_cache__`;globalThis[t]||={share:{},remote:{}},globalThis[t].share||={},globalThis[t].remote||={};var n=globalThis[t];for(let e of Object.keys(n.share))if(e.startsWith(`default:`)){let t=e.slice(8);n.share[t]===void 0&&(n.share[t]=n.share[e])}else if(!e.includes(`:`)){let t=`default:`+e;n.share[t]===void 0&&(n.share[t]=n.share[e])}var r=(e,t,n,r)=>{let i=(Array.isArray(r)?r[0]:r)||`default`,a=t||!n?e:e+`@`+n,o={canonical:i+`:`+a};return i==="default"&&(o.aliases=[a]),o},i=(e,t)=>{let n=e[t.canonical];if(n!==void 0)return n;let r=t.aliases||[];for(let n of r){if(!Object.prototype.hasOwnProperty.call(e,n))continue;let r=e[n];if(r!==void 0)return e[t.canonical]=r,r}},a=[[`react`,()=>e(()=>import(`./_virtual_mf___mfe_internal__ConfigCustomAssistant__mf_owner__201375093093590__loadShare___mf_0_emotion_mf_1_react__loadShare__.js-BkH7fzDw.js`).then(e=>e.z),[],import.meta.url)],[`react-dom`,()=>e(()=>import(`./_virtual_mf___mfe_internal__ConfigCustomAssistant__mf_owner__201375093093590__loadShare___mf_0_iobroker_mf_1_gui_mf_2_components__loadShare__.js-BMuLYe6f.js`).then(e=>e.yr),[],import.meta.url)],[`@emotion/react`,()=>e(()=>import(`./_virtual_mf___mfe_internal__ConfigCustomAssistant__mf_owner__201375093093590__loadShare___mf_0_emotion_mf_1_react__loadShare__.js-BkH7fzDw.js`).then(e=>e.s),[],import.meta.url)],[`@emotion/styled`,()=>e(()=>import(`./_virtual_mf___mfe_internal__ConfigCustomAssistant__mf_owner__201375093093590__loadShare___mf_0_emotion_mf_1_styled__loadShare__.js-CwqmfMvn.js`).then(e=>e.n),[],import.meta.url)],[`@mui/material`,()=>e(()=>import(`./_virtual_mf___mfe_internal__ConfigCustomAssistant__mf_owner__201375093093590__loadShare___mf_0_iobroker_mf_1_gui_mf_2_components__loadShare__.js-BMuLYe6f.js`).then(e=>e.Yn),[],import.meta.url)],[`@mui/icons-material`,()=>e(()=>import(`./_virtual_mf___mfe_internal__ConfigCustomAssistant__mf_owner__201375093093590__loadShare___mf_0_iobroker_mf_1_gui_mf_2_components__loadShare__.js-BMuLYe6f.js`).then(e=>e.Ut),[],import.meta.url)],[`@iobroker/gui-components`,()=>e(()=>import(`./_virtual_mf___mfe_internal__ConfigCustomAssistant__mf_owner__201375093093590__loadShare___mf_0_iobroker_mf_1_gui_mf_2_components__loadShare__.js-BMuLYe6f.js`).then(e=>e.x),[],import.meta.url)],[`@iobroker/json-config`,()=>e(()=>import(`./_virtual_mf___mfe_internal__ConfigCustomAssistant__mf_owner__201375093093590__loadShare__shared-BxjZmnpc.js`).then(e=>e.n),[],import.meta.url)]];async function o(){if(a.length===0)return;let t=`react-dom/client`,{usedShared:o}=await e(async()=>{let{usedShared:e}=await import(`./_virtual_mf-localSharedImportMap___mfe_internal__ConfigCustomAssistant__mf_owner__1-A4gakomR.js`);return{usedShared:e}},__vite__mapDeps([0]),import.meta.url);await Promise.all(a.map(async([e,a])=>{var s,c;let l=o[e],u=l??(e===t?o[`react-dom`]:void 0);if(!u||u.treeShaking||((s=u.shareConfig)==null?void 0:s.import)===!1||l&&l.materialize===!1&&e!==t)return;let d=r(e,(c=u.shareConfig)==null?void 0:c.singleton,u.version,u.scope);i(n.share,d)===void 0&&await a().catch(t=>console.warn(`[module-federation] shared preload failed:`,e,t))}))}export{o as preloadPendingShares};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
var e=typeof __SENTRY_DEBUG__>`u`||__SENTRY_DEBUG__,t=globalThis,n=`11.9.0`;function r(){return i(t),t}function i(e){let t=e.__SENTRY__=e.__SENTRY__||{};return t.version=t.version||`11.9.0`,t[n]=t[`11.9.0`]||{}}function a(e,r,i=t){let a=i.__SENTRY__=i.__SENTRY__||{},o=a[n]=a[`11.9.0`]||{};return o[e]||(o[e]=r())}var o=[`debug`,`info`,`warn`,`error`,`log`,`assert`,`trace`],s=`Sentry Logger `,c={};function l(e){if(!(`console`in t))return e();let n=t.console,r={},i=Object.keys(c);i.forEach(e=>{let t=c[e];r[e]=n[e],n[e]=t});try{return e()}finally{i.forEach(e=>{n[e]=r[e]})}}function u(){ee().enabled=!0}function d(){ee().enabled=!1}function f(){return ee().enabled}function p(...e){g(`log`,...e)}function m(...e){g(`warn`,...e)}function h(...e){g(`error`,...e)}function g(n,...r){e&&f()&&l(()=>{t.console[n](`${s}[${n}]:`,...r)})}function ee(){return e?a(`loggerSettings`,()=>({enabled:!1})):{enabled:!1}}var _={enable:u,disable:d,isEnabled:f,log:p,warn:m,error:h},te=50,ne=/\(error: (.*)\)/,re=/captureMessage|captureException/;function ie(...e){let t=e.sort((e,t)=>e[0]-t[0]).map(e=>e[1]);return(e,n=0,r=0)=>{let i=[],a=e.split(`
|
|
2
|
+
`);for(let e=n;e<a.length;e++){let n=a[e];n.length>1024&&(n=n.slice(0,1024));let o=ne.test(n)?n.replace(ne,`$1`):n;if(!o.includes(`Error: `)){for(let e of t){let t=e(o);if(t){i.push(t);break}}if(i.length>=te+r)break}}return oe(i.slice(r))}}function ae(e){return Array.isArray(e)?ie(...e):e}function oe(e){if(!e.length)return[];let t=Array.from(e);return/sentryWrapped/.test(se(t).function||``)&&t.pop(),t.reverse(),re.test(se(t).function||``)&&(t.pop(),re.test(se(t).function||``)&&t.pop()),t.slice(0,te).map(e=>({...e,filename:e.filename||se(t).filename,function:e.function||`?`}))}function se(e){return e[e.length-1]||{}}var ce=`<anonymous>`;function v(e){try{return!e||typeof e!=`function`?ce:e.name||ce}catch{return ce}}function le(e){let t=e.exception;if(t){let e=[];try{return t.values.forEach(t=>{t.stacktrace.frames&&e.push(...t.stacktrace.frames)}),e}catch{return}}}var ue={},de={};function y(e,t){return ue[e]=ue[e]||[],ue[e].push(t),()=>{let n=ue[e];if(n){let e=n.indexOf(t);e!==-1&&n.splice(e,1)}}}function b(t,n){if(!de[t]){de[t]=!0;try{n()}catch(n){e&&_.error(`Error while instrumenting ${t}`,n)}}}function x(t,n){let r=t&&ue[t];if(r)for(let i of r)try{i(n)}catch(n){e&&_.error(`Error while triggering instrumentation handler.
|
|
3
|
+
Type: ${t}
|
|
4
|
+
Name: ${v(i)}
|
|
5
|
+
Error:`,n)}}var fe=null;function pe(e){let t=`error`;y(t,e),b(t,me)}function me(){fe=t.onerror,t.onerror=function(e,t,n,r,i){return x(`error`,{column:r,error:i,line:n,msg:e,url:t}),fe?fe.apply(this,arguments):!1},t.onerror.__SENTRY_INSTRUMENTED__=!0}var he=null;function ge(e){let t=`unhandledrejection`;y(t,e),b(t,_e)}function _e(){he=t.onunhandledrejection,t.onunhandledrejection=function(e){return x(`unhandledrejection`,e),!he||he.apply(this,arguments)},t.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}var ve=Object.prototype.toString;function S(e){switch(ve.call(e)){case`[object Error]`:case`[object Exception]`:case`[object DOMException]`:case`[object WebAssembly.Exception]`:return!0;default:return Oe(e,Error)}}function C(e,t){return ve.call(e)===`[object ${t}]`}function ye(e){return C(e,`ErrorEvent`)}function be(e){return C(e,`DOMError`)}function xe(e){return C(e,`DOMException`)}function w(e){return C(e,`String`)}function Se(e){return typeof e==`object`&&!!e&&`__sentry_template_string__`in e&&`__sentry_template_values__`in e}function T(e){return e===null||Se(e)||typeof e!=`object`&&typeof e!=`function`}function Ce(e){return C(e,`Object`)}function we(e){return typeof e==`object`&&!!e}function Te(e){return typeof Event<`u`&&Oe(e,Event)}function Ee(e){return C(e,`RegExp`)}function De(e){return!!(e!=null&&e.then&&typeof e.then==`function`)}function Oe(e,t){try{return e instanceof t}catch{return!1}}function ke(e){return typeof Request<`u`&&Oe(e,Request)}function E(t,n,r){if(!(n in t))return;let i=t[n];if(typeof i!=`function`)return;let a=r(i);typeof a==`function`&&Ae(a,i);try{t[n]=a}catch{e&&_.log(`Failed to replace method "${n}" in object`,t)}}function D(t,n,r){try{Object.defineProperty(t,n,{value:r,writable:!0,configurable:!0})}catch{e&&_.log(`Failed to add non-enumerable property "${String(n)}" to object`,t)}}function Ae(e,t){try{e.prototype=t.prototype=t.prototype||{},D(e,`__sentry_original__`,t)}catch{}}function je(e){return e.__sentry_original__}function Me(e){if(S(e))return{message:e.message,name:e.name,stack:e.stack,...Ne(e)};if(Te(e)){let{type:t,target:n,currentTarget:r,detail:i}=e;return{type:t,target:n,currentTarget:r,...i?{detail:i}:{},...Ne(e)}}return e}function Ne(e){return we(e)?Object.fromEntries(Object.entries(e)):{}}function Pe(e){let t=Object.keys(Me(e));return t.sort(),t[0]?t.join(`, `):`[object has no keys]`}var O;function Fe(e){if(O!==void 0)return O?O(e):e();let n=Symbol.for(`__SENTRY_SAFE_RANDOM_ID_WRAPPER__`),r=t;return n in r&&typeof r[n]==`function`?(O=r[n],O(e)):(O=null,e())}function Ie(){return Fe(()=>Math.random())}function k(){return Fe(()=>Date.now())}var Le=Symbol.for(`sentry.skipNormalization`),Re=Symbol.for(`sentry.overrideNormalizationDepth`);function ze(e){return!!e[Le]}function Be(e){let t=e[Re];return typeof t==`number`?t:void 0}var Ve;function He(e){Ve=e}function A(e,t=100,n=1/0){try{return We(``,e,t,n)}catch(e){return{ERROR:`**non-serializable** (${e})`}}}function Ue(e,t=3,n=102400){let r=A(e,t);return Je(r)>n?Ue(e,t-1,n):r}function We(e,t,n=1/0,r=1/0,i=Ye()){let[a,o]=i;if(t==null||[`boolean`,`string`].includes(typeof t)||typeof t==`number`&&Number.isFinite(t))return t;let s=Ge(e,t);if(!s.startsWith(`[object `))return s;if(ze(t))return t;let c=Be(t),l=c===void 0?n:c;if(l===0)return s.replace(`object `,``);if(a(t))return`[Circular ~]`;let u=t;if(u&&typeof u.toJSON==`function`)try{return We(``,u.toJSON(),l-1,r,i)}catch{}let d=Array.isArray(t)?[]:{},f=0,p=Me(t);for(let e in p){if(!Object.prototype.hasOwnProperty.call(p,e))continue;if(f>=r){d[e]=`[MaxProperties ~]`;break}let t=p[e];d[e]=We(e,t,l-1,r,i),f++}return o(t),d}function Ge(e,t){try{if(Ve){let e=Ve(t);if(e)return e}return typeof global<`u`&&t===global?`[Global]`:typeof t==`number`&&!Number.isFinite(t)?`[${t}]`:typeof t==`function`?`[Function: ${v(t)}]`:typeof t==`symbol`?`[${String(t)}]`:typeof t==`bigint`?`[BigInt: ${String(t)}]`:`[object ${Ke(t)}]`}catch(e){return`**non-serializable** (${e})`}}function Ke(e){let t=Object.getPrototypeOf(e);return t!=null&&t.constructor?t.constructor.name:`null prototype`}function qe(e){return~-encodeURI(e).split(/%..|./).length}function Je(e){return qe(JSON.stringify(e))}function Ye(){let e=new WeakSet;function t(t){return e.has(t)?!0:(e.add(t),!1)}function n(t){e.delete(t)}return[t,n]}function Xe(e,t=0){return typeof e!=`string`||t===0||e.length<=t?e:`${e.slice(0,t)}...`}function Ze(e,t){if(!Array.isArray(e))return``;let n=[];for(let t=0;t<e.length;t++){let r=e[t];T(r)?n.push(String(r)):r instanceof Error?n.push(r.message?`${r.name}: ${r.message}`:r.name):n.push(Ge(void 0,r))}return n.join(t)}function Qe(e,t,n=!1){return w(e)?Ee(t)?t.test(e):w(t)?n?e===t:e.includes(t):typeof t==`function`&&t(e):!1}function $e(e,t=[],n=!1){for(let r of t)if(Qe(e,r,n))return!0;return!1}function et(){let e=t;return e.crypto||e.msCrypto}var tt;function nt(){return Ie()*16}function j(e=et()){try{if(e!=null&&e.randomUUID)return Fe(()=>e.randomUUID()).replace(/-/g,``)}catch{}return tt||=`10000000100040008000100000000000`,tt.replace(/[018]/g,e=>(e^(nt()&15)>>e/4).toString(16))}function rt(e){var t;return(t=e.exception)==null||(t=t.values)==null?void 0:t[0]}function M(e){let{message:t,event_id:n}=e;if(t)return t;let r=rt(e);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||n||`<unknown>`:n||`<unknown>`}function it(e,t,n){let r=e.exception=e.exception||{},i=r.values=r.values||[],a=i[0]=i[0]||{};a.value||=t||``,a.type||=n||`Error`}function N(e,t){let n=rt(e);n&&ot(n,t)}function at(e,t){var n;let r=(n=e.exception)==null?void 0:n.values,i=(r==null?void 0:r.find(e=>{var t;return((t=e.mechanism)==null?void 0:t.exception_id)===0}))??(r==null?void 0:r[0]);i&&ot(i,t)}function ot(e,t){let n={type:`generic`,handled:!0},r=e.mechanism;e.mechanism={...n,...r,...t},t&&`data`in t&&(e.mechanism.data={...r==null?void 0:r.data,...t.data})}function st(e){if(ct(e))return!0;try{D(e,`__sentry_captured__`,!0)}catch{}return!1}function ct(e){try{return e.__sentry_captured__}catch{}}var lt=1e3,ut=1e3,dt=100;function ft(){return k()/lt}var P=[];function pt(){let{performance:e}=t;if(!(e!=null&&e.now)||!e.timeOrigin)return e!=null&&e.now&&(P=[{from:0,origin:k()-Fe(()=>e.now())}]),ft;let n=e.timeOrigin;P=[{from:0,origin:n}];let r=!0,i=0;return()=>Fe(()=>{let t=e.now(),a=Date.now();return Math.abs(n+t-a)>ut&&(n=a-t,r?P=[{from:0,origin:n}]:(P.push({from:i,origin:n}),P.length>dt&&P.splice(1,1))),r=!1,i=t,(n+t)/lt})}var mt;function F(){return(mt??=pt())()}function ht(e){let t=F(),n={sid:j(),init:!0,timestamp:t,started:t,duration:0,status:`ok`,errors:0,ignoreDuration:!1,toJSON:()=>_t(n)};return e&&I(n,e),n}function I(e,t={}){if(t.user&&(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),!e.did&&!t.did&&(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||F(),t.abnormal_mechanism&&(e.abnormal_mechanism=t.abnormal_mechanism),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=t.sid.length===32?t.sid:j()),t.init!==void 0&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),typeof t.started==`number`&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if(typeof t.duration==`number`)e.duration=t.duration;else{let t=e.timestamp-e.started;e.duration=t>=0?t:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),typeof t.errors==`number`&&(e.errors=t.errors),t.status&&(e.status=t.status)}function gt(e,t){let n={};t?n={status:t}:e.status===`ok`&&(n={status:`exited`}),I(e,n)}function _t(e){return{sid:`${e.sid}`,init:e.init,started:new Date(e.started*1e3).toISOString(),timestamp:new Date(e.timestamp*1e3).toISOString(),status:e.status,errors:e.errors,did:typeof e.did==`number`||typeof e.did==`string`?`${e.did}`:void 0,duration:e.duration,abnormal_mechanism:e.abnormal_mechanism,attrs:{release:e.release,environment:e.environment,ip_address:e.ipAddress,user_agent:e.userAgent}}}function vt(e,t,n=2){if(!t||typeof t!=`object`||n<=0)return t;if(e&&Object.keys(t).length===0)return e;let r={...e};for(let e in t)Object.prototype.hasOwnProperty.call(t,e)&&(r[e]=vt(r[e],t[e],n-1));return r}function yt(){return j()}function bt(){return j().substring(16)}var xt=100,L=class t{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._attributes={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},D(this,`refs`,{}),this._propagationContext={traceId:yt(),sampleRand:Ie()}}clone(){let e=new t;return e._breadcrumbs=[...this._breadcrumbs],e._tags={...this._tags},e._attributes={...this._attributes},e._extra={...this._extra},e._contexts={...this._contexts},this._contexts.flags&&(e._contexts.flags={values:[...this._contexts.flags.values]}),e._user=this._user,e._level=this._level,e._session=this._session,e._transactionName=this._transactionName,e._fingerprint=this._fingerprint,e._eventProcessors=[...this._eventProcessors],e._attachments=[...this._attachments],e._sdkProcessingMetadata={...this._sdkProcessingMetadata},e._propagationContext={...this._propagationContext},e._client=this._client,e._lastEventId=this._lastEventId,e._conversationId=this._conversationId,e.refs={...this.refs},e}setClient(e){this._client=e}setLastEventId(e){this._lastEventId=e}getClient(){return this._client}lastEventId(){return this._lastEventId}addScopeListener(e){this._scopeListeners.push(e)}addEventProcessor(e){return this._eventProcessors.push(e),this}setUser(e){return this._user=e||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this._session&&I(this._session,{user:e}),this._notifyScopeListeners(),this}getUser(){return this._user}setConversationId(e){return this._conversationId=e||void 0,this._notifyScopeListeners(),this}setTags(e){return this._tags={...this._tags,...e},this._notifyScopeListeners(),this}setTag(e,t){return this.setTags({[e]:t})}setAttributes(e){return this._attributes={...this._attributes,...e},this._notifyScopeListeners(),this}setAttribute(e,t){return this.setAttributes({[e]:t})}removeAttribute(e){return e in this._attributes&&(delete this._attributes[e],this._notifyScopeListeners()),this}setExtras(e){return this._extra={...this._extra,...e},this._notifyScopeListeners(),this}setExtra(e,t){return this._extra={...this._extra,[e]:t},this._notifyScopeListeners(),this}setFingerprint(e){return this._fingerprint=e,this._notifyScopeListeners(),this}setLevel(e){return this._level=e,this._notifyScopeListeners(),this}setTransactionName(e){return this._transactionName=e,this._notifyScopeListeners(),this}setContext(e,t){return t===null?delete this._contexts[e]:this._contexts[e]=t,this._notifyScopeListeners(),this}setSession(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(e){if(!e)return this;let n=typeof e==`function`?e(this):e,{tags:r,attributes:i,extra:a,user:o,contexts:s,level:c,fingerprint:l=[],propagationContext:u,conversationId:d}=(n instanceof t?n.getScopeData():Ce(n)?e:void 0)||{};return this._tags={...this._tags,...r},this._attributes={...this._attributes,...i},this._extra={...this._extra,...a},this._contexts={...this._contexts,...s},o&&Object.keys(o).length&&(this._user=o),c&&(this._level=c),l.length&&(this._fingerprint=l),u&&(this._propagationContext=u),d&&(this._conversationId=d),this}addBreadcrumb(e,t){let n=typeof t==`number`?t:xt;if(n<=0)return this;let r={timestamp:ft(),...e,message:e.message?Xe(e.message,2048):e.message};return this._breadcrumbs.push(r),this._breadcrumbs.length>n&&(this._breadcrumbs=this._breadcrumbs.slice(-n)),this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(e){return this._attachments.push(e),this}clearAttachments(){return this._attachments=[],this}getScopeData(){return{breadcrumbs:this._breadcrumbs,attachments:this._attachments,contexts:this._contexts,tags:this._tags,attributes:this._attributes,extra:this._extra,user:this._user,level:this._level,fingerprint:this._fingerprint||[],eventProcessors:this._eventProcessors,propagationContext:this._propagationContext,sdkProcessingMetadata:this._sdkProcessingMetadata,transactionName:this._transactionName,conversationId:this._conversationId}}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata=vt(this._sdkProcessingMetadata,e,2),this}setPropagationContext(e){return this._propagationContext=e,this}getPropagationContext(){return this._propagationContext}captureException(t,n){let r=(n==null?void 0:n.event_id)||j();if(!this._client)return e&&_.warn(`No client configured on scope - will not capture exception!`),r;let i=Error(`Sentry syntheticException`);return this._client.captureException(t,{originalException:t,syntheticException:i,...n,event_id:r},this),r}captureMessage(t,n,r){let i=(r==null?void 0:r.event_id)||j();if(!this._client)return e&&_.warn(`No client configured on scope - will not capture message!`),i;let a=(r==null?void 0:r.syntheticException)??Error(t);return this._client.captureMessage(t,n,{originalException:t,syntheticException:a,...r,event_id:i},this),i}captureEvent(t,n){let r=t.event_id||(n==null?void 0:n.event_id)||j();return this._client?(this._client.captureEvent(t,{...n,event_id:r},this),r):(e&&_.warn(`No client configured on scope - will not capture event!`),r)}_notifyScopeListeners(){this._notifyingListeners||=(this._notifyingListeners=!0,this._scopeListeners.forEach(e=>{e(this)}),!1)}};function St(){return a(`defaultCurrentScope`,()=>new L)}function Ct(){return a(`defaultIsolationScope`,()=>new L)}var wt=`__SENTRY_SUPPRESS_TRACING__`,Tt=e=>e instanceof Promise&&!e[Et],Et=Symbol(`chained PromiseLike`),Dt=(e,t,n)=>{let r=e.then(e=>(t(e),e),e=>{throw n(e),e});return Tt(r)&&Tt(e)?r:Ot(e,r)},Ot=(e,t)=>{if(!t)return e;let n=!1;for(let r in e){if(r in t)continue;n=!0;let i=e[r];typeof i==`function`?Object.defineProperty(t,r,{value:(...t)=>i.apply(e,t),enumerable:!0,configurable:!0,writable:!0}):t[r]=i}return n&&Object.assign(t,{[Et]:!0}),t},kt=class{constructor(e,t){let n;n=e||new L;let r;r=t||new L,this._stack=[{scope:n}],this._isolationScope=r}withScope(e){let t=this._pushScope(),n;try{n=e(t)}catch(e){throw this._popScope(),e}return De(n)?Dt(n,()=>this._popScope(),()=>this._popScope()):(this._popScope(),n)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){let e=this.getScope().clone();return this._stack.push({client:this.getClient(),scope:e}),e}_popScope(){return this._stack.length<=1?!1:!!this._stack.pop()}};function R(){let e=i(r());return e.stack=e.stack||new kt(St(),Ct())}function At(e){return R().withScope(e)}function jt(e,t){let n=R();return n.withScope(()=>(n.getStackTop().scope=e,t(e)))}function Mt(e){return R().withScope(()=>e(R().getIsolationScope()))}function Nt(){return{suppressTracing:Pt,withIsolationScope:Mt,withScope:At,withSetScope:jt,withSetIsolationScope:(e,t)=>Mt(t),getCurrentScope:()=>R().getScope(),getIsolationScope:()=>R().getIsolationScope()}}function Pt(e){return At(t=>{t.setSDKProcessingMetadata({[wt]:!0});let n=e();return t.setSDKProcessingMetadata({[wt]:void 0}),n})}function Ft(e){let t=i(e);return t.acs?t.acs:Nt()}function It(e){return typeof e==`object`&&!!e&&!Array.isArray(e)&&Object.keys(e).includes(`value`)}function Lt(e,t){let{value:n,unit:r}=It(e)?e:{value:e,unit:void 0},i=zt(n),a=r&&typeof r==`string`?{unit:r}:{};if(i)return{...i,...a};if(!t||t===`skip-undefined`&&n===void 0)return;let o=``;try{o=JSON.stringify(n)??``}catch{}return{value:o,type:`string`,...a}}function Rt(e,t=!1){let n={};for(let[r,i]of Object.entries(e??{})){let e=Lt(i,t);e&&(n[r]=e)}return n}function zt(e){if(Array.isArray(e))return{value:e,type:`array`};let t=typeof e==`string`?`string`:typeof e==`boolean`?`boolean`:typeof e==`number`&&!Number.isNaN(e)?Number.isInteger(e)?`integer`:`double`:null;if(t)return{value:e,type:t}}function Bt(){var e,t;return(e=(t=i(r())).externalPropagationContextProvider)==null?void 0:e.call(t)}function z(){return Ft(r()).getCurrentScope()}function B(){return Ft(r()).getIsolationScope()}function Vt(){return a(`globalScope`,()=>new L)}function Ht(...e){let t=Ft(r());if(e.length===2){let[n,r]=e;return n?t.withSetScope(n,r):t.withScope(r)}return t.withScope(e[0])}function V(){return z().getClient()}function Ut(e){let t=Bt();if(t)return{trace_id:t.traceId,span_id:t.spanId};let{traceId:n,parentSpanId:r,propagationSpanId:i}=e.getPropagationContext(),a={trace_id:n,span_id:i||bt()};return r&&(a.parent_span_id=r),a}var Wt=`gen_ai.conversation.id`,Gt=`sentry.exclusive_time`,Kt=`sentry.is_localhost`,qt=`sentry.op`,Jt=`sentry.origin`,Yt=`sentry.profile_id`,Xt=`sentry.segment.name.source`,Zt=`user_agent.original`,Qt=[`ok`,`deadline_exceeded`,`unauthenticated`,`permission_denied`,`not_found`,`resource_exhausted`,`invalid_argument`,`unimplemented`,`unavailable`,`internal_error`,`unknown_error`,`cancelled`,`already_exists`,`failed_precondition`,`aborted`,`out_of_range`,`data_loss`];function $t(e){return e!==`ok`&&Qt.includes(e)}function en(e){if(e){if(typeof e==`object`&&`deref`in e&&typeof e.deref==`function`)try{return e.deref()}catch{return}return e}}var tn=`_sentryScope`,nn=`_sentryIsolationScope`;function rn(e){let t=e;return{scope:t[tn],isolationScope:en(t[nn])}}function an(e){let t=on(e);if(!t)return;let n=Object.entries(t).reduce((e,[t,n])=>{if(t.startsWith(`sentry-`)){let r=t.slice(7);e[r]=n}return e},{});if(Object.keys(n).length>0)return n}function on(e){if(e&&(w(e)||Array.isArray(e)))return Array.isArray(e)?e.reduce((e,t)=>{let n=sn(t);return Object.entries(n).forEach(([t,n])=>{e[t]=n}),e},{}):sn(e)}function sn(e){return e.split(`,`).map(e=>{let t=e.indexOf(`=`);return t===-1?[]:[e.slice(0,t),e.slice(t+1)].map(e=>{try{return decodeURIComponent(e.trim())}catch{return}})}).reduce((e,[t,n])=>(t&&n&&(e[t]=n),e),{})}var cn=/^o(\d+)\./,ln=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)((?:\[[:.%\w]+\]|[\w.-]+))(?::(\d+))?\/(.+)/;function un(e){return e===`http`||e===`https`}function dn(e,t=!1){let{host:n,path:r,pass:i,port:a,projectId:o,protocol:s,publicKey:c}=e;return`${s}://${c}${t&&i?`:${i}`:``}@${n}${a?`:${a}`:``}/${r&&`${r}/`}${o}`}function fn(e){let t=ln.exec(e);if(!t){l(()=>{console.error(`Invalid Sentry Dsn: ${e}`)});return}let[n,r,i=``,a=``,o=``,s=``]=t.slice(1),c=``,u=s,d=u.split(`/`);if(d.length>1&&(c=d.slice(0,-1).join(`/`),u=d.pop()),u){let e=u.match(/^\d+/);e&&(u=e[0])}return pn({host:a,pass:i,path:c,projectId:u,port:o,protocol:n,publicKey:r})}function pn(e){return{protocol:e.protocol,publicKey:e.publicKey||``,pass:e.pass||``,host:e.host,port:e.port||``,path:e.path||``,projectId:e.projectId}}function mn(t){if(!e)return!0;let{port:n,projectId:r,protocol:i}=t;return[`protocol`,`publicKey`,`host`,`projectId`].find(e=>!t[e]&&(_.error(`Invalid Sentry Dsn: ${e} missing`),!0))?!1:r.match(/^\d+$/)?un(i)?n&&isNaN(parseInt(n,10))?(_.error(`Invalid Sentry Dsn: Invalid port ${n}`),!1):!0:(_.error(`Invalid Sentry Dsn: Invalid protocol ${i}`),!1):(_.error(`Invalid Sentry Dsn: Invalid projectId ${r}`),!1)}function hn(e){let t=e.match(cn);return t==null?void 0:t[1]}function gn(e){let t=e.getOptions(),{host:n}=e.getDsn()||{},r;return t.orgId?r=String(t.orgId):n&&(r=hn(n)),r}function _n(e){let t=typeof e==`string`?fn(e):pn(e);if(t&&mn(t))return t}function vn(e){if(typeof e==`boolean`)return Number(e);let t=typeof e==`string`?parseFloat(e):e;if(!(typeof t!=`number`||isNaN(t)||t<0||t>1))return t}var yn=`span`;function bn(e){return en(e.refs[yn])}function xn(e){let{spanId:t,traceId:n,isRemote:r}=e.spanContext(),i=r?t:Tn(e).parent_span_id,a=rn(e).scope;return{parent_span_id:i,span_id:r?(a==null?void 0:a.getPropagationContext().propagationSpanId)||bt():t,trace_id:n}}function Sn(e){if(e&&e.length>0)return e.map(({context:{spanId:e,traceId:t,traceFlags:n,...r},attributes:i})=>({span_id:e,trace_id:t,sampled:n===1,attributes:i,...r}))}function Cn(e){return typeof e==`number`?wn(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?wn(e.getTime()):F()}function wn(e){return e>9999999999?e/1e3:e}function Tn(e){if(kn(e))return e.getStaticSpanJSON();let{spanId:t,traceId:n}=e.spanContext();if(On(e)){let{attributes:r,startTime:i,name:a,endTime:o,status:s,links:c}=e;return{span_id:t,trace_id:n,data:r,description:a,parent_span_id:En(e),start_timestamp:Cn(i),timestamp:Cn(o)||void 0,status:jn(s),op:r[qt],origin:r[Jt],links:Sn(c)}}return{span_id:t,trace_id:n,start_timestamp:0,status:`ok`,data:{}}}function En(e){var t;return`parentSpanId`in e?e.parentSpanId:`parentSpanContext`in e?(t=e.parentSpanContext)==null?void 0:t.spanId:void 0}function Dn(e){var t;return{...e,end_timestamp:e.end_timestamp??e.start_timestamp,attributes:Rt(e.attributes),links:(t=e.links)==null?void 0:t.map(e=>({...e,attributes:Rt(e.attributes)}))}}function On(e){let t=e;return!!t.attributes&&!!t.startTime&&!!t.name&&!!t.endTime&&!!t.status}function kn(e){return typeof e.getSpanJSON==`function`}function An(e){let{traceFlags:t}=e.spanContext();return t===1}function jn(e){return!e||e.code===0||e.code===1?`ok`:e.message&&$t(e.message)?e.message:`internal_error`}var Mn=`_sentryRootSpan`,Nn=Pn;function Pn(e){return e[Mn]||e}function Fn(e){let t=Ft(r());return t.getActiveSpan?t.getActiveSpan(e):bn(e||z())}function In(e){var t;if(typeof __SENTRY_TRACING__==`boolean`&&!__SENTRY_TRACING__)return!1;let n=e||((t=V())==null?void 0:t.getOptions());return!!n&&(n.tracesSampleRate!=null||!!n.tracesSampler)}function Ln(e){_.log(`Ignoring span ${e.op} - ${e.description} because it matches \`ignoreSpans\`.`)}function Rn(t,n){if(!(n!=null&&n.length))return!1;for(let r of n){if(Vn(r)){if(t.description&&Qe(t.description,r))return e&&Ln(t),!0;continue}let n=!!r.attributes&&Object.keys(r.attributes).length>0;if(!r.name&&!r.op&&!n)continue;let i=!r.name||t.description&&Qe(t.description,r.name),a=!r.op||t.op&&Qe(t.op,r.op),o=!r.attributes||Object.entries(r.attributes).every(([e,n])=>{var r;return zn((r=t.attributes)==null?void 0:r[e],n)});if(i&&a&&o)return e&&Ln(t),!0}return!1}function zn(e,t){return typeof e==`string`&&(typeof t==`string`||t instanceof RegExp)?Qe(e,t):Array.isArray(e)&&Array.isArray(t)?e.length===t.length&&e.every((e,n)=>e===t[n]):e===t}function Bn(e,t){let n=t.parent_span_id,r=t.span_id;if(n)for(let t of e)t.parent_span_id===r&&(t.parent_span_id=n)}function Vn(e){return typeof e==`string`||e instanceof RegExp}var Hn=[];function Un(e){let t={};return e.forEach(e=>{let{name:n}=e,r=t[n];r&&!r.isDefaultInstance&&e.isDefaultInstance||(t[n]=e)}),Object.values(t)}function Wn(e){let t=e.defaultIntegrations||[],n=e.integrations;t.forEach(e=>{e.isDefaultInstance=!0});let r;if(Array.isArray(n))r=[...t,...n];else if(typeof n==`function`){let e=n(t);r=Array.isArray(e)?e:[e]}else r=t;return Un(r)}function Gn(e,t){let n={};return t.forEach(t=>{t!=null&&t.beforeSetup&&t.beforeSetup(e)}),t.forEach(t=>{t&&qn(e,t,n)}),n}function Kn(e,t){for(let n of t)n!=null&&n.afterAllSetup&&n.afterAllSetup(e)}function qn(t,n,r){if(r[n.name])e&&_.log(`Integration skipped because it was already installed: ${n.name}`);else{if(r[n.name]=n,!Hn.includes(n.name)&&typeof n.setupOnce==`function`&&(n.setupOnce(),Hn.push(n.name)),n.setup&&typeof n.setup==`function`&&n.setup(t),typeof n.preprocessEvent==`function`){let e=n.preprocessEvent.bind(n);t.on(`preprocessEvent`,(n,r)=>e(n,r,t))}if(typeof n.processEvent==`function`){let e=n.processEvent.bind(n),r=Object.assign((n,r)=>e(n,r,t),{id:n.name});t.addEventProcessor(r)}[`processSpan`,`processSegmentSpan`].forEach(e=>{let r=n[e];typeof r==`function`&&t.on(e,e=>r.call(n,e,t))}),e&&_.log(`Integration installed: ${n.name}`)}}function H(e){return e}var Jn=`production`,Yn=Symbol.for(`sentry.nonRecordingSpan`);function Xn(e){return!!e&&e[Yn]===!0}var Zn=`_frozenDsc`;function Qn(e,t){let n=t.getOptions(),{publicKey:r}=t.getDsn()||{},i={environment:n.environment||`production`,release:n.release,public_key:r,trace_id:e,org_id:gn(t)};return t.emit(`createDsc`,i),i}function $n(e,t){if(Bt())return;let n=t.getPropagationContext();return n.dsc||Qn(n.traceId,e)}function er(e){let t=V();if(!t)return{};let n=Nn(e),r=Tn(n),i=r.data,a=n.spanContext().traceState,o=(a==null?void 0:a.get(`sentry.sample_rate`))??i[`sentry.sample_rate`]??i[`sentry.previous_trace_sample_rate`];function s(e){return(typeof o==`number`||typeof o==`string`)&&(e.sample_rate=`${o}`),e}let c=n[Zn];if(c)return s(c);let l=Xn(n),u=l&&n.dropReason===`ignored`;if(l&&(!In(t.getOptions())||u)){let e=rn(n).scope,r=e&&$n(t,e);if(r){let e={...r};return u&&(e.sampled=`false`),s(e)}}let d=a==null?void 0:a.get(`sentry.dsc`),f=d&&an(d);if(f)return s(f);let p=Qn(e.spanContext().traceId,t),m=i[Xt],h=r.description;if(m!==`url`&&h&&(p.transaction=h),In()){var g;p.sampled=String(An(n)),p.sample_rand=(a==null?void 0:a.get(`sentry.sample_rand`))??((g=rn(n).scope)==null?void 0:g.getPropagationContext().sampleRand.toString())}return s(p),t.emit(`createDsc`,p,n),p}function tr(e,t){let{fingerprint:n,breadcrumbs:r,sdkProcessingMetadata:i}=t;ar(e,t),lr(e,n),or(e,r),sr(e,i)}function nr(e,t){let{extra:n,tags:r,attributes:i,user:a,contexts:o,level:s,sdkProcessingMetadata:c,breadcrumbs:l,fingerprint:u,eventProcessors:d,attachments:f,propagationContext:p,transactionName:m}=t;rr(e,`extra`,n),rr(e,`tags`,r),rr(e,`attributes`,i),rr(e,`user`,a),rr(e,`contexts`,o),e.sdkProcessingMetadata=vt(e.sdkProcessingMetadata,c,2),s&&(e.level=s),m&&(e.transactionName=m),l.length&&(e.breadcrumbs=[...e.breadcrumbs,...l]),u.length&&(e.fingerprint=[...e.fingerprint,...u]),d.length&&(e.eventProcessors=[...e.eventProcessors,...d]),f.length&&(e.attachments=[...e.attachments,...f]),e.propagationContext={...e.propagationContext,...p}}function rr(e,t,n){e[t]=vt(e[t],n,1)}function ir(e,t){let n=Vt().getScopeData();return e&&nr(n,e.getScopeData()),t&&nr(n,t.getScopeData()),n}function ar(e,t){let{extra:n,tags:r,user:i,contexts:a,level:o,transactionName:s}=t;Object.keys(n).length&&(e.extra={...n,...e.extra}),Object.keys(r).length&&(e.tags={...r,...e.tags}),Object.keys(i).length&&(e.user={...i,...e.user}),Object.keys(a).length&&(e.contexts={...a,...e.contexts}),o&&(e.level=o),s&&e.type!==`transaction`&&(e.transaction=s)}function or(e,t){let n=[...e.breadcrumbs||[],...t];e.breadcrumbs=n.length?n:void 0}function sr(e,t){e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...t}}function cr(e,t){e.contexts={trace:xn(t),...e.contexts},e.sdkProcessingMetadata={dynamicSamplingContext:er(t),...e.sdkProcessingMetadata};let n=Tn(Nn(t)).description;n&&!e.transaction&&e.type===`transaction`&&(e.transaction=n)}function lr(e,t){e.fingerprint=e.fingerprint?Array.isArray(e.fingerprint)?e.fingerprint:[e.fingerprint]:[],t&&(e.fingerprint=e.fingerprint.concat(t)),e.fingerprint.length||delete e.fingerprint}function ur(e,t,n){let r;try{r=t()}catch(t){return dr(e,t,n)}return De(r)?r.then(void 0,t=>dr(e,t,n)):r}function dr(t,n,r){return e&&_.error(t,n),r(n)}function fr(e){return!!e&&typeof e==`function`&&`_static`in e&&!!e._static}function pr(t,n){return ur(e?"The `beforeSendSpan` callback threw an error, sending the span unmodified:":``,()=>n(t),()=>t)||t}function mr(e){return Dn({trace_id:e.trace_id,span_id:e.span_id,parent_span_id:e.parent_span_id,name:e.description||``,start_timestamp:e.start_timestamp,end_timestamp:e.timestamp,status:!e.status||e.status===`ok`||e.status===`cancelled`?`ok`:`error`,is_segment:!1,attributes:{...e.data},links:e.links})}function hr(e,t){let n=e.attributes??={};Object.entries(t).forEach(([e,t])=>{t!=null&&!(e in n)&&(n[e]=t)})}function gr(e){return e.getOptions().traceLifecycle===`stream`}function _r(e){return typeof e==`object`&&typeof e.unref==`function`&&e.unref(),e}function U(e,t=[]){return[e,t]}function vr(e,t){let[n,r]=e;return[n,[...r,t]]}function yr(e,t){let n=e[1];for(let e of n){let n=e[0].type;if(t(e,n))return!0}return!1}function br(e,t){return yr(e,(e,n)=>t.includes(n))}function xr(e){let n=i(t);return n.encodePolyfill?n.encodePolyfill(e):new TextEncoder().encode(e)}function Sr(e){let[t,n]=e,r=JSON.stringify(t);function i(e){typeof r==`string`?r=typeof e==`string`?r+e:[xr(r),e]:r.push(typeof e==`string`?xr(e):e)}for(let e of n){let[t,n]=e;if(i(`
|
|
6
|
+
${JSON.stringify(t)}
|
|
7
|
+
`),typeof n==`string`||n instanceof Uint8Array)i(n);else{let e;try{e=JSON.stringify(n)}catch{e=JSON.stringify(A(n))}i(e)}}return typeof r==`string`?r:Cr(r)}function Cr(e){let t=e.reduce((e,t)=>e+t.length,0),n=new Uint8Array(t),r=0;for(let t of e)n.set(t,r),r+=t.length;return n}function wr(e){let t=typeof e.data==`string`?xr(e.data):e.data;return[{type:`attachment`,length:t.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType},t]}var Tr={sessions:`session`,event:`error`,client_report:`internal`,user_report:`default`,profile_chunk:`profile`,replay_event:`replay`,replay_recording:`replay`,check_in:`monitor`,raw_security:`security`,log:`log_item`,metric:`trace_metric`};function Er(e){return e in Tr}function Dr(e){return Er(e)?Tr[e]:e}function Or(e){if(!(e!=null&&e.sdk))return;let{name:t,version:n}=e.sdk;return{name:t,version:n}}function kr(e,t,n,r){var i;let a=(i=e.sdkProcessingMetadata)==null?void 0:i.dynamicSamplingContext;return{event_id:e.event_id,sent_at:new Date(k()).toISOString(),...t&&{sdk:t},...!!n&&r&&{dsn:dn(r)},...a&&{trace:a}}}function Ar(e){return e===`replay_event`?`replay`:e||`error`}function jr(){return typeof __SENTRY_BROWSER_BUNDLE__<`u`&&!!__SENTRY_BROWSER_BUNDLE__}function Mr(){return`npm`}function Nr(){return!jr()&&Object.prototype.toString.call(typeof process<`u`?process:0)===`[object process]`}function Pr(){return typeof window<`u`&&(!Nr()||Fr())}function Fr(){let e=t.process;return(e==null?void 0:e.type)===`renderer`}function Ir(e,t){let n=t.getDataCollectionOptions().userInfo?`auto`:`never`;return[{type:`span`,item_count:e.length,content_type:`application/vnd.sentry.items.span.v2+json`},{version:2,ingest_settings:Pr()?{infer_ip:n,infer_user_agent:n}:void 0,items:e}]}var Lr=new WeakMap;function Rr(e){return T(e)?void 0:e}function zr(e,t,n){var r;let i=Rr(t.originalException),a=i&&Lr.get(i);if(!a)return;let o=(r=e.contexts)==null?void 0:r.trace;((o==null?void 0:o.trace_id)??(n&&Ut(n).trace_id))===a.trace_id&&(e.contexts={...e.contexts,trace:{...o,...a}})}function Br(e,t){var n,r,i,a;if(!t)return e;let o=e.sdk||{};return e.sdk={...o,name:o.name||t.name,version:o.version||t.version,integrations:[...((n=e.sdk)==null?void 0:n.integrations)||[],...t.integrations||[]],packages:[...((r=e.sdk)==null?void 0:r.packages)||[],...t.packages||[]],settings:(i=e.sdk)!=null&&i.settings||t.settings?{...(a=e.sdk)==null?void 0:a.settings,...t.settings}:void 0},e}function Vr(e,t,n,r){let i=Or(n);return U({sent_at:new Date(k()).toISOString(),...i&&{sdk:i},...!!r&&t&&{dsn:dn(t)}},[`aggregates`in e?[{type:`sessions`},e]:[{type:`session`},e.toJSON()]])}function Hr(e,t,n,r){let i=Or(n),a=e.type&&e.type!==`replay_event`?e.type:`event`;Br(e,n==null?void 0:n.sdk);let o=kr(e,i,r,t);return delete e.sdkProcessingMetadata,U(o,[[{type:a},e]])}var Ur=0,Wr=1,Gr=2;function Kr(e){return new Jr(t=>{t(e)})}function qr(e){return new Jr((t,n)=>{n(e)})}var Jr=class e{constructor(e){this._state=Ur,this._handlers=[],this._runExecutor(e)}then(t,n){return new e((e,r)=>{this._handlers.push([!1,n=>{if(!t)e(n);else try{e(t(n))}catch(e){r(e)}},t=>{if(!n)r(t);else try{e(n(t))}catch(e){r(e)}}]),this._executeHandlers()})}catch(e){return this.then(e=>e,e)}finally(t){return new e((e,n)=>{let r,i;return this.then(e=>{i=!1,r=e,t&&t()},e=>{i=!0,r=e,t&&t()}).then(()=>{i?n(r):e(r)})})}_executeHandlers(){if(this._state===Ur)return;let e=this._handlers.slice();this._handlers=[],e.forEach(e=>{e[0]||=(this._state===Wr&&e[1](this._value),this._state===Gr&&e[2](this._value),!0)})}_runExecutor(e){let t=(e,t)=>{this._state===Ur&&(De(t)?t.then(n,r):(this._state=e,this._value=t,this._executeHandlers()))},n=e=>{t(Wr,e)},r=e=>{t(Gr,e)};try{e(n,r)}catch(e){r(e)}}};function Yr(e,t,n,r=0,i){try{let a=Xr(t,n,e,r,i);return De(a)?a:Kr(a)}catch(e){return qr(e)}}function Xr(t,n,r,i,a){let o=r[i];if(!t||!o)return t;let s=`Event processor "${o.id||`?`}"`,c=!1,l=ur(e?`${s} threw an error, dropping event:`:``,()=>o({...t},n),()=>(c=!0,null));return e&&l===null&&_.log(`${s} dropped event`),De(l)?l.then(e=>e?Xr(e,n,r,i+1,a):(a==null||a(c?`callback_error`:`event_processor`),null)):l?Xr(l,n,r,i+1,a):(a==null||a(c?`callback_error`:`event_processor`),null)}var W,Zr,Qr,G;function $r(e){let n=t._sentryDebugIds,r=t._debugIds;if(!n&&!r)return{};let i=n?Object.keys(n):[],a=r?Object.keys(r):[];if(G&&i.length===Zr&&a.length===Qr)return G;Zr=i.length,Qr=a.length,G={},W||={};let o=(t,n)=>{for(let r of t){let t=n[r],i=W==null?void 0:W[r];if(i&&G&&t)G[i[0]]=t,W&&(W[r]=[i[0],t]);else if(t){let n=e(r);for(let e=n.length-1;e>=0;e--){let i=n[e],a=i==null?void 0:i.filename;if(a&&G&&W){G[a]=t,W[r]=[a,t];break}}}}};return n&&o(i,n),r&&o(a,r),G}function ei(e){var t;return((t=e.data)==null?void 0:t.__sentry__)===!0}function ti(e){let t=[];e.message&&t.push(e.message);try{let n=e.exception.values[e.exception.values.length-1];n!=null&&n.value&&(t.push(n.value),n.type&&t.push(`${n.type}: ${n.value}`))}catch{}return t}function ni(e,t,n,r,i,a){var o;let{normalizeDepth:s=3,normalizeMaxBreadth:c=1e3}=e,l={...t,event_id:t.event_id||n.event_id||j(),timestamp:t.timestamp||ft()},u=n.integrations||e.integrations.map(e=>e.name);ri(l,e),oi(l,u),i&&i.emit(`applyFrameMetadata`,t),t.type===void 0&&ii(l,e.stackParser);let d=ci(r,n.captureContext);n.mechanism&&at(l,n.mechanism);let f=i?i.getEventProcessors():[],p=ir(a,d),m=[...n.attachments||[],...p.attachments];m.length&&(n.attachments=m),tr(l,p);let h=Fn(d);h&&cr(l,h),zr(l,n,d);let g=[...f,...p.eventProcessors],ee=t.type===`transaction`,_=((o=t.spans)==null?void 0:o.length)||0;return(ei(n)?Kr(l):Yr(g,l,n,0,e=>{i&&(i.recordDroppedEvent(e,Ar(t.type)),ee&&i.recordDroppedEvent(e,`span`,1+_))})).then(e=>{if(!e)return null;if(ee&&i){var t;let n=_-(((t=e.spans)==null?void 0:t.length)||0);n>0&&i.recordDroppedEvent(`event_processor`,`span`,n)}return ai(e),typeof s==`number`&&s>0?si(e,s,c):e})}function ri(e,t){let{environment:n,release:r,dist:i,maxValueLength:a}=t;e.environment=e.environment||n||`production`,!e.release&&r&&(e.release=r),!e.dist&&i&&(e.dist=i);let o=e.request;if(o!=null&&o.url&&a&&(o.url=Xe(o.url,a)),a){var s;(s=e.exception)==null||(s=s.values)==null||s.forEach(e=>{e.value&&=Xe(e.value,a)})}}function ii(e,t){var n;let r=$r(t);(n=e.exception)==null||(n=n.values)==null||n.forEach(e=>{var t;(t=e.stacktrace)==null||(t=t.frames)==null||t.forEach(e=>{e.filename&&(e.debug_id=r[e.filename])})})}function ai(e){var t;let n={};if((t=e.exception)==null||(t=t.values)==null||t.forEach(e=>{var t;(t=e.stacktrace)==null||(t=t.frames)==null||t.forEach(e=>{e.debug_id&&(e.abs_path?n[e.abs_path]=e.debug_id:e.filename&&(n[e.filename]=e.debug_id),delete e.debug_id)})}),Object.keys(n).length===0)return;e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[];let r=e.debug_meta.images;Object.entries(n).forEach(([e,t])=>{r.push({type:`sourcemap`,code_file:e,debug_id:t})})}function oi(e,t){t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[...e.sdk.integrations||[],...t])}function si(e,t,n){var r,i;if(!e)return null;let a={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map(e=>({...e,...e.data&&{data:A(e.data,t,n)}}))},...e.user&&{user:A(e.user,t,n)},...e.contexts&&{contexts:A(e.contexts,t,n)},...e.extra&&{extra:A(e.extra,t,n)}};return(r=e.contexts)!=null&&r.trace&&a.contexts&&(a.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(a.contexts.trace.data=A(e.contexts.trace.data,t,n))),e.spans&&(a.spans=e.spans.map(e=>({...e,...e.data&&{data:A(e.data,t,n)}}))),(i=e.contexts)!=null&&i.flags&&a.contexts&&(a.contexts.flags=A(e.contexts.flags,3,n)),a}function ci(e,t){if(!t)return e;let n=e?e.clone():new L;return n.update(t),n}function li(e){if(e)return ui(e)||fi(e)?{captureContext:e}:e}function ui(e){return e instanceof L||typeof e==`function`}var di=[`user`,`level`,`extra`,`contexts`,`tags`,`fingerprint`,`propagationContext`];function fi(e){return Object.keys(e).some(e=>di.includes(e))}function pi(e,t){return z().captureException(e,li(t))}function mi(e,t){return z().captureEvent(e,t)}function hi(e){let n=B(),{user:r}=ir(n,z()),{userAgent:i}=t.navigator||{},a=ht({user:r,...i&&{userAgent:i},...e}),o=n.getSession();return(o==null?void 0:o.status)===`ok`&&I(o,{status:`exited`}),gi(),n.setSession(a),a}function gi(){let e=B(),t=z().getSession()||e.getSession();t&>(t),_i(),e.setSession()}function _i(){let e=B(),t=V(),n=e.getSession();n&&t&&t.captureSession(n)}function vi(e=!1){e?gi():_i()}function yi(e){let t=e.protocol?`${e.protocol}:`:``,n=e.port?`:${e.port}`:``;return`${t}//${e.host}${n}${e.path?`/${e.path}`:``}/api/`}function bi(e){return`${yi(e)}${e.projectId}/envelope/`}function xi(e,t){let n={sentry_version:`7`};return e.publicKey&&(n.sentry_key=e.publicKey),t&&(n.sentry_client=`${t.name}/${t.version}`),new URLSearchParams(n).toString()}function Si(e,t,n){return t||`${bi(e)}?${xi(e,n)}`}function Ci(e,t){let n=t?`auto`:`never`;return[{type:`log`,item_count:e.length,content_type:`application/vnd.sentry.items.log+json`},{version:2,...Pr()&&{ingest_settings:{infer_ip:n,infer_user_agent:n}},items:e}]}function wi(e,t,n,r,i){let a={};return t!=null&&t.sdk&&(a.sdk={name:t.sdk.name,version:t.sdk.version}),n&&r&&(a.dsn=dn(r)),U(a,[Ci(e,i)])}function Ti(e,t){let n=t??Ei(e)??[];if(n.length===0)return;let r=e.getOptions(),i=wi(n,r._metadata,r.tunnel,e.getDsn(),e.getDataCollectionOptions().userInfo);Di().set(e,[]),e.emit(`flushLogs`),e.sendEnvelope(i)}function Ei(e){return Di().get(e)}function Di(){return a(`clientToLogBufferMap`,()=>new WeakMap)}function Oi(e,t){let n=t?`auto`:`never`;return[{type:`trace_metric`,item_count:e.length,content_type:`application/vnd.sentry.items.trace-metric+json`},{version:2,...Pr()&&{ingest_settings:{infer_ip:n,infer_user_agent:n}},items:e}]}function ki(e,t,n,r,i){let a={};return t!=null&&t.sdk&&(a.sdk={name:t.sdk.name,version:t.sdk.version}),n&&r&&(a.dsn=dn(r)),U(a,[Oi(e,i)])}function Ai(e,t){let n=t??ji(e)??[];if(n.length===0)return;let r=e.getOptions(),i=ki(n,r._metadata,r.tunnel,e.getDsn(),e.getDataCollectionOptions().userInfo);Mi().set(e,[]),e.emit(`flushMetrics`),e.sendEnvelope(i)}function ji(e){return Mi().get(e)}function Mi(){return a(`clientToMetricBufferMap`,()=>new WeakMap)}function Ni(e,t){var n,r;if(e.type!==`transaction`||!((n=e.spans)!=null&&n.length)||!((r=e.sdkProcessingMetadata)!=null&&r.hasGenAiSpans)||gr(t))return;let i=[],a=[];for(let t of e.spans){var o;(o=t.op)!=null&&o.startsWith(`gen_ai.`)?i.push(mr(t)):a.push(t)}if(i.length!==0)return e.spans=a,Ir(i,t)}var Pi=Symbol.for(`SentryBufferFullError`);function Fi(e=100){let t=new Set;function n(){return t.size<e}function r(e){t.delete(e)}function i(e){if(!n())return qr(Pi);let i=e();return t.add(i),i.then(()=>r(i),()=>r(i)),i}function a(e){if(!t.size)return Kr(!0);let n=Promise.allSettled(Array.from(t)).then(()=>!0);if(!e)return n;let r=[n,new Promise(t=>_r(setTimeout(()=>t(!1),e)))];return Promise.race(r)}return{get $(){return Array.from(t)},add:i,drain:a}}var Ii=6e4;function Li(e,t=k()){let n=parseInt(`${e}`,10);if(!isNaN(n))return n*1e3;let r=Date.parse(`${e}`);return isNaN(r)?Ii:r-t}function Ri(e,t){return e[t]||e.all||0}function zi(e,t,n=k()){return Ri(e,t)>n}function Bi(e,{statusCode:t,headers:n},r=k()){let i={...e},a=n==null?void 0:n[`x-sentry-rate-limits`],o=n==null?void 0:n[`retry-after`];if(a)for(let e of a.trim().split(`,`)){let[t,n,,,a]=e.split(`:`,5),o=parseInt(t,10),s=(isNaN(o)?60:o)*1e3;if(!n)i.all=r+s;else for(let e of n.split(`;`))e===`metric_bucket`?(!a||a.split(`;`).includes(`custom`))&&(i[e]=r+s):i[e]=r+s}else o?i.all=r+Li(o,r):t===429&&(i.all=r+6e4);return i}function Vi(t,n,r=Fi(t.bufferSize||64)){let i={},a=e=>r.drain(e);function o(e,[n,r],i){let a=Dr(i);if(i===`transaction`){var o;t.recordDroppedEvent(e,`span`,(((o=r.spans)==null?void 0:o.length)??0)+1)}t.recordDroppedEvent(e,a,typeof n.item_count==`number`?n.item_count:1)}function s(t){let a=[];if(yr(t,(e,t)=>{zi(i,Dr(t))?o(`ratelimit_backoff`,e,t):a.push(e)}),a.length===0)return Promise.resolve({});let s=U(t[0],a),c=t=>{br(s,[`client_report`])?e&&_.warn(`Dropping client report. Will not send outcomes (reason: ${t}).`):yr(s,(e,n)=>{o(t,e,n)})};return r.add(()=>n({body:Sr(s)}).then(t=>t.statusCode===413?(e&&_.error(`Sentry responded with status code 413. Envelope was discarded due to exceeding size limits.`),c(`send_error`),t):(e&&t.statusCode!==void 0&&(t.statusCode<200||t.statusCode>=300)&&_.warn(`Sentry responded with status code ${t.statusCode} to sent event.`),i=Bi(i,t),t),t=>{throw c(`network_error`),e&&_.error(`Encountered error running transport request:`,t),t})).then(e=>e,t=>{if(t===Pi)return e&&_.error(`Skipped sending event because buffer is full.`),c(`queue_overflow`),Promise.resolve({});throw t})}return{send:s,flush:a}}function Hi(e,t,n){let r=[{type:`client_report`},{timestamp:n||ft(),discarded_events:e}];return U(t?{dsn:t}:{},[r])}function Ui(e){var t;let{trace_id:n,parent_span_id:r,span_id:i,status:a,origin:o,data:s,op:c}=((t=e.contexts)==null?void 0:t.trace)??{};return{data:s??{},description:e.transaction,op:c,parent_span_id:r,span_id:i??``,start_timestamp:e.start_timestamp??0,status:a??`ok`,timestamp:e.timestamp,trace_id:n??``,origin:o,profile_id:s==null?void 0:s[Yt],exclusive_time:s==null?void 0:s[Gt],measurements:e.measurements,is_segment:!0}}function Wi(e){return{type:`transaction`,timestamp:e.timestamp,start_timestamp:e.start_timestamp,transaction:e.description,contexts:{trace:{trace_id:e.trace_id,span_id:e.span_id,parent_span_id:e.parent_span_id,op:e.op,status:e.status,origin:e.origin,data:{...e.data,...e.profile_id&&{"sentry.profile_id":e.profile_id},...e.exclusive_time&&{"sentry.exclusive_time":e.exclusive_time}}}},measurements:e.measurements}}function Gi(e){var t;e.traceLifecycle===`stream`&&(e.beforeSendTransaction||(t=e.ignoreTransactions)!=null&&t.length)&&l(()=>{console.warn("[Sentry] `beforeSendTransaction` and `ignoreTransactions` are ignored with `traceLifecycle: 'stream'` (enabled by default). Use `beforeSendSpan` and `ignoreSpans` instead, or set `traceLifecycle: 'static'`.")})}var K={userInfo:!0,cookies:!0,httpHeaders:{request:!0,response:!0},httpBodies:[`incomingRequest`,`outgoingRequest`,`incomingResponse`,`outgoingResponse`],urlQueryParams:!0,graphQL:{document:!0,variables:!0},genAI:{inputs:!0,outputs:!0},mcp:{inputs:!0,outputs:!0},databaseQueryData:!0,queues:!0,stackFrameVariables:!0,frameContextLines:5};function Ki(e){return typeof e==`boolean`||`allow`in e||`deny`in e}function qi(e){return e===void 0?{...K.httpHeaders}:Ki(e)?{request:e,response:e}:{request:e.request??K.httpHeaders.request,response:e.response??K.httpHeaders.response}}function Ji(e){var t,n,r,i,a,o;let s=e.dataCollection??{};return{userInfo:s.userInfo??K.userInfo,cookies:s.cookies??K.cookies,httpHeaders:qi(s.httpHeaders),httpBodies:s.httpBodies??K.httpBodies,urlQueryParams:s.urlQueryParams??K.urlQueryParams,graphQL:{document:((t=s.graphQL)==null?void 0:t.document)??K.graphQL.document,variables:((n=s.graphQL)==null?void 0:n.variables)??K.graphQL.variables},genAI:{inputs:((r=s.genAI)==null?void 0:r.inputs)??K.genAI.inputs,outputs:((i=s.genAI)==null?void 0:i.outputs)??K.genAI.outputs},mcp:{inputs:((a=s.mcp)==null?void 0:a.inputs)??K.mcp.inputs,outputs:((o=s.mcp)==null?void 0:o.outputs)??K.mcp.outputs},databaseQueryData:s.databaseQueryData??K.databaseQueryData,queues:s.queues??K.queues,stackFrameVariables:s.stackFrameVariables??K.stackFrameVariables,frameContextLines:s.frameContextLines??K.frameContextLines}}var Yi=`Not capturing exception because it's already been captured.`,Xi=`Discarded session because of missing or non-string release`,Zi=Symbol.for(`SentryInternalError`),Qi=Symbol.for(`SentryDoNotSendEventError`),$i=5e3,ea=Symbol.for(`SentryClosedClient`);function ta(e){return ea in e}function na(e){return{message:e,[Zi]:!0}}function ra(e){return{message:e,[Qi]:!0}}function ia(e){return we(e)&&Zi in e}function aa(e){return we(e)&&Qi in e}function oa(e,t,n,r,i){let a=0,o,s=!1;e.on(n,()=>{a=0,clearTimeout(o),s=!1}),e.on(t,t=>{if(a+=r(t),a>=8e5)i(e);else if(!s){let t=e.getOptions()._flushInterval??$i;t>0&&(s=!0,o=_r(setTimeout(()=>{i(e)},t)))}}),e.on(`flush`,()=>{i(e)})}var sa=class{constructor(t){var n;this._options={attachStacktrace:!0,...t,traceLifecycle:t.traceLifecycle===`static`?`static`:`stream`},this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],this._promiseBuffer=Fi(((n=t.transportOptions)==null?void 0:n.bufferSize)??64),this._dataCollection=Ji(t),this._unhandledSessionStatus=`crashed`,t.dsn?this._dsn=_n(t.dsn):e&&_.warn(`No DSN provided, client will not send events.`);let{beforeSendSpan:r,traceLifecycle:i}=this._options;if(e&&r&&fr(r)!==(i===`static`)&&l(()=>{console.warn(`Ignoring \`beforeSendSpan\`: ${i===`static`?`wrap it with`:`remove`} \`Sentry.withStaticSpan\` to use it with \`traceLifecycle: "${i}"\`.`)}),this._dsn){let e=Si(this._dsn,t.tunnel,t._metadata?t._metadata.sdk:void 0);this._transport=t.transport({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...t.transportOptions,url:e})}oa(this,`afterCaptureLog`,`flushLogs`,fa,Ti),oa(this,`afterCaptureMetric`,`flushMetrics`,da,Ai)}captureException(t,n,r){let i=j();if(st(t))return e&&_.log(Yi),i;let a={event_id:i,...n};return this._process(()=>this.eventFromException(t,a).then(e=>this._captureEvent(e,a,r)).then(e=>e),`error`),a.event_id}captureMessage(e,t,n,r){let i={event_id:j(),...n},a=Se(e)?e:String(e),o=T(e),s=o?this.eventFromMessage(a,t,i):this.eventFromException(e,i);return this._process(()=>s.then(e=>this._captureEvent(e,i,r)),o?`unknown`:`error`),i.event_id}captureEvent(t,n,r){let i=j();if(n!=null&&n.originalException&&st(n.originalException))return e&&_.log(Yi),i;let a={event_id:i,...n},o=t.sdkProcessingMetadata||{},s=o.capturedSpanScope,c=o.capturedSpanIsolationScope,l=Ar(t.type);return this._process(()=>this._captureEvent(t,a,s||r,c),l),a.event_id}captureSession(e){this.sendSession(e),I(e,{init:!1})}getDsn(){return this._dsn}getOptions(){return this._options}getDataCollectionOptions(){return this._dataCollection}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}async flush(e){let t=this._transport;if(this.emit(`flush`),!t)return!0;let n=await this._isClientDoneProcessing(e),r=await t.flush(e);return n&&r}async close(e){Object.defineProperty(this,ea,{value:!0});let t=await this.flush(e);return this.getOptions().enabled=!1,this.emit(`close`),t}getEventProcessors(){return this._eventProcessors}addEventProcessor(e){this._eventProcessors.push(e)}init(){(this._isEnabled()||this._options.integrations.some(({name:e})=>e.startsWith(`Spotlight`)))&&(this._setupIntegrations(),Gi(this._options))}getIntegrationByName(e){return this._integrations[e]}getIntegrationNames(){return Object.keys(this._integrations)}addIntegration(e){let t=this._integrations[e.name];!t&&e.beforeSetup&&e.beforeSetup(this),qn(this,e,this._integrations),t||Kn(this,[e])}sendEvent(e,t={}){this.emit(`beforeSendEvent`,e,t);let n=Ni(e,this),r=Hr(e,this._dsn,this._options._metadata,this._options.tunnel);if(!ei(t))for(let e of t.attachments||[])r=vr(r,wr(e));n&&(r=vr(r,n)),this.sendEnvelope(r).then(t=>this.emit(`afterSendEvent`,e,t))}sendSession(t){let{release:n,environment:r=Jn}=this._options;if(`aggregates`in t){let i=t.attrs||{};if(!i.release&&!n){e&&_.warn(Xi);return}i.release=i.release||n,i.environment=i.environment||r,t.attrs=i}else{if(!t.release&&!n){e&&_.warn(Xi);return}t.release=t.release||n,t.environment=t.environment||r}this.emit(`beforeSendSession`,t);let i=Vr(t,this._dsn,this._options._metadata,this._options.tunnel);this.sendEnvelope(i)}recordDroppedEvent(t,n,r=1){if(this._options.sendClientReports){let i=`${t}:${n}`;e&&_.log(`Recording outcome: "${i}"${r>1?` (${r} times)`:``}`),this._outcomes[i]=(this._outcomes[i]||0)+r}}on(e,t){let n=this._hooks[e]=this._hooks[e]||new Set,r=(...e)=>t(...e);return n.add(r),()=>{n.delete(r)}}emit(e,...t){let n=this._hooks[e];n&&n.forEach(e=>e(...t))}async sendEnvelope(t){if(this.emit(`beforeEnvelope`,t),this._isEnabled()&&this._transport)try{let e=await this._transport.send(t);return this.emit(`afterEnvelope`,t),e}catch(t){return e&&_.error(`Error while sending envelope:`,t),{}}return e&&_.error(`Transport disabled`),{}}registerCleanup(e){}dispose(){}_setupIntegrations(){let{integrations:e}=this._options;this._integrations=Gn(this,e),Kn(this,e)}_updateSessionFromEvent(e,t){var n;let r=t.level===`fatal`,i=!1,a=(n=t.exception)==null?void 0:n.values;if(a){i=!0,r=!1;for(let e of a){var o;if(((o=e.mechanism)==null?void 0:o.handled)===!1){r=!0;break}}}let s=e.status===`ok`;(s&&e.errors===0||s&&r)&&(I(e,{...r&&{status:this._unhandledSessionStatus},errors:e.errors||Number(i||r)}),this.captureSession(e))}async _isClientDoneProcessing(e){let t=0;for(;!e||t<e;){if(await new Promise(e=>setTimeout(e,1)),!this._numProcessing)return!0;t++}return!1}_isEnabled(){return this.getOptions().enabled!==!1&&this._transport!==void 0}_prepareEvent(e,t,n,r){let i=this.getOptions(),a=this.getIntegrationNames();return!t.integrations&&a.length&&(t.integrations=a),this.emit(`preprocessEvent`,e,t),e.type||r.setLastEventId(e.event_id||t.event_id),ni(i,e,t,n,this,r).then(e=>{var r;return e===null||(this.emit(`postprocessEvent`,e,t),e.contexts={trace:{...(r=e.contexts)==null?void 0:r.trace,...Ut(n)},...e.contexts},e.sdkProcessingMetadata={dynamicSamplingContext:$n(this,n),...e.sdkProcessingMetadata}),e})}_captureEvent(t,n={},r=z(),i=B()){return e&&la(t)&&_.log(`Captured error event \`${ti(t)[0]||`<unknown>`}\``),this._processEvent(t,n,r,i).then(e=>e.event_id,t=>{e&&(aa(t)?_.log(t.message):ia(t)?_.warn(t.message):_.warn(t))})}_processEvent(e,t,n,r){let i=this.getOptions(),{sampleRate:a}=i,o=ua(e),s=la(e),c=`before send for type \`${e.type||`error`}\``,l=`before_send`,u=0,d=a===void 0?void 0:vn(a),f=Ar(e.type),p=0;return this._prepareEvent(e,t,n,r).then(e=>{var n;if(e===null)throw ra("An event processor returned `null`, will not send event.");return p=((n=e.spans)==null?void 0:n.length)||0,ei(t)?e:ca(i,e,t,e=>{l=e},e=>{u=e})}).then(i=>{if(u&&this.recordDroppedEvent(`ignored`,`span`,u),!Ce(i)||i===null)throw this.recordDroppedEvent(l,f),o&&this.recordDroppedEvent(l,`span`,1+p-u),i===null?ra(`${l===`ignored`?"Transaction matched `ignoreSpans`":`${c} ${l===`callback_error`?`threw an error`:"returned `null`"}`}, will not send event.`):na(`${c} must return \`null\` or a valid event.`);let m=n.getSession()||r.getSession();if(s&&m&&this._updateSessionFromEvent(m,i),s&&typeof d==`number`&&Ie()>d)throw this.recordDroppedEvent(`sample_rate`,`error`),ra(`Discarding event because it's not included in the random sample (sampling rate = ${a})`);if(o){var h;let e=p-u-(((h=i.spans)==null?void 0:h.length)||0);e>0&&this.recordDroppedEvent(`before_send`,`span`,e)}let g=i.transaction_info;return o&&g&&i.transaction!==e.transaction&&(i.transaction_info={...g,source:`custom`}),this.sendEvent(i,t),i}).then(null,e=>{throw aa(e)||ia(e)?e:(this.captureException(e,{mechanism:{handled:!1,type:`internal`},data:{__sentry__:!0},originalException:e}),na(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.
|
|
8
|
+
Reason: ${e}`))})}_process(e,t){this._numProcessing++,this._promiseBuffer.add(e).then(e=>(this._numProcessing--,e),e=>(this._numProcessing--,e===Pi&&this.recordDroppedEvent(`queue_overflow`,t),e))}_clearOutcomes(){let e=this._outcomes;return this._outcomes={},Object.entries(e).map(([e,t])=>{let[n,r]=e.split(`:`);return{reason:n,category:r,quantity:t}})}_flushOutcomes(){e&&_.log(`Flushing outcomes...`);let t=this._clearOutcomes();if(t.length===0){e&&_.log(`No outcomes to send`);return}if(!this._dsn){e&&_.log(`No dsn provided, will not send outcomes`);return}e&&_.log(`Sending outcomes:`,t);let n=Hi(t,this._options.tunnel&&dn(this._dsn));this.sendEnvelope(n)}};function ca(t,n,r,i,a){let{beforeSend:o,ignoreSpans:s,beforeSendTransaction:c}=t,l=fr(t.beforeSendSpan)&&t.beforeSendSpan,u=n;if(la(u)&&o){let t=u;return ur(e?"The `beforeSend` callback threw an error, dropping the event:":``,()=>o(t,r),()=>(i(`callback_error`),null))}if(ua(u)){if(l||s){let e=Ui(u);if(s!=null&&s.length&&Rn({description:e.description,op:e.op,attributes:e.data},s))return i(`ignored`),null;if(l&&(u=vt(n,Wi(pr(e,l)))),u.spans){let e=[],t=u.spans;for(let n of t)s!=null&&s.length&&Rn({description:n.description,op:n.op,attributes:n.data},s)?Bn(t,n):l?e.push(pr(n,l)):e.push(n);a(t.length-e.length),u.spans=e}}if(c)return ur(e?"The `beforeSendTransaction` callback threw an error, dropping the event:":``,()=>c(u,r),()=>(i(`callback_error`),null))}return u}function la(e){return e.type===void 0}function ua(e){return e.type===`transaction`}function da(e){let t=0;return e.name&&(t+=e.name.length*2),t+=8,t+pa(e.attributes)}function fa(e){let t=0;return e.message&&(t+=e.message.length*2),t+pa(e.attributes)}function pa(e){if(!e)return 0;let t=0;return Object.values(e).forEach(e=>{Array.isArray(e)?t+=e.length*ma(e[0]):T(e)?t+=ma(e):t+=100}),t}function ma(e){return typeof e==`string`?e.length*2:typeof e==`number`?8:typeof e==`boolean`?4:0}function ha(t,n){n.debug===!0&&(e?_.enable():l(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")})),_a(),z().update(n.initialScope);let r=new t(n);return va(r),r.init(),r}function ga(){let e=V();return e&&!ta(e)?e:void 0}function _a(){ga()&&l(()=>{console.warn("[Sentry] `Sentry.init()` was called more than once. The new client replaces the active client, but the active client is not closed, so state from both can mix. Call `Sentry.init()` only once, or call `await Sentry.close()` before you call it again.")})}function va(e){z().setClient(e)}var ya=`[Filtered]`,ba=[`auth`,`token`,`secret`,`session`,`password`,`passwd`,`pwd`,`key`,`jwt`,`bearer`,`sso`,`saml`,`csrf`,`xsrf`,`credentials`,`sid`,`identity`,`set-cookie`,`cookie`];function xa(e,t){return t.some(t=>e.includes(t))}function Sa(e,t,n){if(t===!1)return!0;let r=e.toLowerCase();if(xa(r,n==null?ba:[...ba,...n]))return!0;if(t===!0)return!1;let i=(`deny`in t?t.deny:t.allow).some(e=>r.includes(e.toLowerCase()));return`deny`in t?i:!i}function Ca(e,t,n){if(t===!1)return{};let r={};for(let i of Object.keys(e))r[i]=Sa(i,t,n)?ya:e[i];return r}function wa(e,t){if(e&&t!==!1)return e.split(`&`).map(e=>{let n=e.indexOf(`=`),r=n===-1?e:e.slice(0,n),i=new URLSearchParams(`${r}=`).keys().next().value;return i!==void 0&&Sa(i,t)?`${r}=${ya}`:e}).join(`&`)}function Ta(e,t){let n=e.indexOf(`#`),r=n===-1?e.length:n,i=e.indexOf(`?`);if(i===-1||i>r)return e;let a=e.slice(0,i),o=e.slice(i+1,r),s=e.slice(r),c=wa(o,t);return c?`${a}?${c}${s}`:`${a}${s}`}function Ea(e){var t;return((t=e??V())==null?void 0:t.getDataCollectionOptions().urlQueryParams)??!0}function q(e,t){return e===void 0?void 0:Ta(e,Ea(t))}function Da(e){if(!e)return{};let t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};let n=t[6]||``,r=t[8]||``;return{host:t[4],path:t[5],protocol:t[2],search:n,hash:r,relative:t[5]+n+r}}function Oa(e,t=!0){if(e.startsWith(`data:`)){let n=e.match(/^data:([^;,]+)/),r=n?n[1]:`text/plain`,i=e.includes(`;base64,`),a=e.indexOf(`,`),o=``;if(t&&a!==-1){let t=e.slice(a+1);o=t.length>10?`${t.slice(0,10)}... [truncated]`:t}return`data:${r}${i?`,base64`:``}${o?`,${o}`:``}`}return e}function ka(e){if(`aggregates`in e){var t;((t=e.attrs)==null?void 0:t.ip_address)===void 0&&(e.attrs={...e.attrs,ip_address:`{{auto}}`})}else e.ipAddress===void 0&&(e.ipAddress=`{{auto}}`)}function Aa(e,t,r=[t],i=`npm`){let a=(e._metadata=e._metadata||{}).sdk=e._metadata.sdk||{};a.name||(a.name=`sentry.javascript.${t}`,a.packages=r.map(e=>({name:`${i}:@sentry/${e}`,version:n})),a.version=n)}var ja=100;function J(t,n){let r=V(),i=B();if(!r)return;let{beforeBreadcrumb:a=null,maxBreadcrumbs:o=ja}=r.getOptions();if(o<=0)return;let s={timestamp:ft(),...t},c=a?ur(e?"The `beforeBreadcrumb` callback threw an error, dropping the breadcrumb:":``,()=>l(()=>a(s,n)),()=>null):s;c!==null&&(r.emit&&r.emit(`beforeAddBreadcrumb`,c,n),i.addBreadcrumb(c,o))}var Ma=`FunctionToString`,Na=new WeakMap,Pa=H((()=>({name:Ma,setupOnce(){let e=Function.prototype.toString;try{Function.prototype.toString=function(...t){let n=je(this),r;try{Na.has(V())&&n!==void 0&&(r=n)}catch{}return e.apply(r??this,t)}}catch{}},setup(e){Na.set(e,!0)}}))),Fa=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/,/^Can't find variable: gmo$/,/^undefined is not an object \(evaluating 'a\.[A-Z]'\)$/,/can't redefine non-configurable property "solana"/,/vv\(\)\.getRestrictions is not a function/,/Can't find variable: _AutofillCallbackHandler/,/Object Not Found Matching Id:\d+, MethodName:simulateEvent/,/Java exception was raised during method invocation$/,/Java object is gone$/],Ia=`EventFilters`,La=H((e={})=>{let t;return{name:Ia,setup(n){t=Ra(e,n.getOptions())},processEvent(n,r,i){return t||=Ra(e,i.getOptions()),za(n,t)?null:n}}});function Ra(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:Fa],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[]]}}function za(t,n){if(!t.type){if(Ba(t,n.ignoreErrors))return e&&_.warn(`Event dropped due to being matched by \`ignoreErrors\` option.
|
|
9
|
+
Event: ${M(t)}`),!0;if(Ka(t))return e&&_.warn(`Event dropped due to not having an error message, error type or stacktrace.
|
|
10
|
+
Event: ${M(t)}`),!0;if(Ha(t,n.denyUrls))return e&&_.warn(`Event dropped due to being matched by \`denyUrls\` option.
|
|
11
|
+
Event: ${M(t)}.
|
|
12
|
+
Url: ${Ga(t)}`),!0;if(!Ua(t,n.allowUrls))return e&&_.warn(`Event dropped due to not being matched by \`allowUrls\` option.
|
|
13
|
+
Event: ${M(t)}.
|
|
14
|
+
Url: ${Ga(t)}`),!0}else if(t.type===`transaction`&&Va(t,n.ignoreTransactions))return e&&_.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.
|
|
15
|
+
Event: ${M(t)}`),!0;return!1}function Ba(e,t){return t!=null&&t.length?ti(e).some(e=>$e(e,t)):!1}function Va(e,t){if(!(t!=null&&t.length))return!1;let n=e.transaction;return n?$e(n,t):!1}function Ha(e,t){if(!(t!=null&&t.length))return!1;let n=Ga(e);return n?$e(n,t):!1}function Ua(e,t){if(!(t!=null&&t.length))return!0;let n=Ga(e);return!n||$e(n,t)}function Wa(e=[]){for(let t=e.length-1;t>=0;t--){let n=e[t];if(n&&n.filename!==`<anonymous>`&&n.filename!==`[native code]`)return n.filename||null}return null}function Ga(t){try{var n,r;let e=[...((n=t.exception)==null?void 0:n.values)??[]].reverse().find(e=>{var t,n;return((t=e.mechanism)==null?void 0:t.parent_id)===void 0&&((n=e.stacktrace)==null||(n=n.frames)==null?void 0:n.length)}),i=e==null||(r=e.stacktrace)==null?void 0:r.frames;return i?Wa(i):null}catch{return e&&_.error(`Cannot extract url for event ${M(t)}`),null}}function Ka(e){var t;return(t=e.exception)!=null&&(t=t.values)!=null&&t.length?!e.message&&!e.exception.values.some(e=>e.stacktrace||e.type&&e.type!==`Error`||e.value):!1}function qa(e,t,n,r,i,a){var o;if(!((o=i.exception)!=null&&o.values)||!a||!S(a.originalException))return;let s=i.exception.values.length>0?i.exception.values[i.exception.values.length-1]:void 0;s&&(i.exception.values=Ja(e,t,r,a.originalException,n,i.exception.values,s,0))}function Ja(e,t,n,r,i,a,o,s){if(a.length>=n+1)return a;let c=[...a];if(S(r[i])){Za(o,s,r);let a=e(t,r[i]),l=c.length;Qa(a,i,l,s),c=Ja(e,t,n,r[i],i,[a,...c],a,l)}return Ya(r)&&r.errors.forEach((a,l)=>{if(S(a)){Za(o,s,r);let u=e(t,a),d=c.length;Qa(u,`errors[${l}]`,d,s),c=Ja(e,t,n,a,i,[u,...c],u,d)}}),Xa(r)&&[`error`,`suppressed`].forEach(a=>{let l=r[a];if(S(l)){Za(o,s,r);let u=e(t,l),d=c.length;Qa(u,a,d,s),c=Ja(e,t,n,l,i,[u,...c],u,d)}}),c}function Ya(e){return Array.isArray(e.errors)}function Xa(e){return`error`in e&&`suppressed`in e}function Za(e,t,n){e.mechanism={handled:!0,type:`auto.core.linked_errors`,...Ya(n)&&{is_exception_group:!0},...e.mechanism,exception_id:t}}function Qa(e,t,n,r){e.mechanism={handled:!0,...e.mechanism,type:`chained`,source:t,exception_id:n,parent_id:r}}function $a(e){return S(e)&&`__sentry_fetch_url_host__`in e&&typeof e.__sentry_fetch_url_host__==`string`}function eo(e){return $a(e)?`${e.message} (${e.__sentry_fetch_url_host__})`:e.message}var to=new Set([]);function no(e){let t=`console`,n=y(t,e);return b(t,ao),n}function ro(e){for(let t of e)to.add(t);return()=>{for(let t of e)to.delete(t)}}var io=new Set;function ao(){`console`in t&&o.forEach(function(n){!io.has(n)&&n in t.console&&(io.add(n),E(t.console,n,function(r){return c[n]=r,function(...r){let i=r[0],a=c[n],o=to.size&&typeof i==`string`&&$e(i,to);o||x(`console`,{args:r,level:n}),(!o||e&&_.isEnabled())&&(a==null||a.apply(t.console,r))}}))})}function oo(e){return e===`warn`?`warning`:[`fatal`,`error`,`warning`,`log`,`info`,`debug`].includes(e)?e:`log`}var so=`Dedupe`,co=H((()=>{let t;return{name:so,processEvent(n){if(n.type)return n;try{if(lo(n,t))return e&&_.warn(`Event dropped due to being a duplicate of previously captured event.`),null}catch{}return t=n}}}));function lo(e,t){return t?!!(uo(e,t)||fo(e,t)):!1}function uo(e,t){let n=e.message,r=t.message;return!(!n&&!r||n&&!r||!n&&r||n!==r||!mo(e,t)||!po(e,t))}function fo(e,t){let n=ho(t),r=ho(e);return!(!n||!r||n.type!==r.type||n.value!==r.value||!mo(e,t)||!po(e,t))}function po(e,t){let n=le(e),r=le(t);if(!n||!r)return!n&&!r;if(r.length!==n.length)return!1;for(let e=0;e<r.length;e++){let t=r[e],i=n[e];if(t.filename!==i.filename||t.lineno!==i.lineno||t.colno!==i.colno||t.function!==i.function)return!1}return!0}function mo(e,t){let n=e.fingerprint,r=t.fingerprint;if(!n||!r)return!n&&!r;try{return n.join(``)===r.join(``)}catch{return!1}}function ho(e){var t;return(t=e.exception)==null||(t=t.values)==null?void 0:t[0]}var go=`Console`,_o=H((e={})=>{let t=new Set(e.levels||o);return{name:go,setup(n){let r=no(({args:e,level:r})=>{V()===n&&t.has(r)&&vo(r,e)});if(n.registerCleanup(r),e.filter){let t=ro(e.filter);n.registerCleanup(t)}}}});function vo(e,t){let n={category:`console`,data:{arguments:t,logger:`console`},level:oo(e),message:yo(t)};if(e===`assert`){if(t[0]===!1){let e=t.slice(1);n.message=e.length>0?`Assertion failed: ${yo(e)}`:`Assertion failed`,n.data.arguments=e}else return}J(n,{input:t,level:e})}function yo(e){return`util`in t&&typeof t.util.format==`function`?t.util.format(...e):Ze(e,` `)}var bo=`ConversationId`,xo=H((()=>({name:bo,setup(e){e.on(`spanStart`,e=>{let t=z().getScopeData(),n=B().getScopeData(),r=t.conversationId||n.conversationId;if(r){let{op:t,data:n,description:i}=Tn(e);if(!(t!=null&&t.startsWith(`gen_ai.`))&&!n[`ai.operationId`]&&!(i!=null&&i.startsWith(`ai.`)))return;e.setAttribute(Wt,r)}})}}))),So=t;function Co(){if(!(`fetch`in So))return!1;try{return new Headers,new Request(`data:,`),new Response,!0}catch{return!1}}function wo(e){return e&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function To(){if(typeof EdgeRuntime==`string`)return!0;if(!Co())return!1;if(wo(So.fetch))return!0;let t=!1,n=So.document;if(n&&typeof n.createElement==`function`)try{var r;let e=n.createElement(`iframe`);e.hidden=!0,n.head.appendChild(e),(r=e.contentWindow)!=null&&r.fetch&&(t=wo(e.contentWindow.fetch)),n.head.removeChild(e)}catch(t){e&&_.warn(`Could not create sandbox iframe for pure fetch check, bailing to window.fetch: `,t)}return t}function Eo(e){let t=`fetch`,n=y(t,e);return b(t,()=>Do()),n}function Do(e){(!Pr()||To())&&E(t,`fetch`,function(n){return new Proxy(n,{apply(n,r,i){let a=Error(),{method:o,url:s}=Ao(i),c={args:i,fetchData:{method:o,url:s},startTimestamp:F()*1e3,virtualError:a,headers:jo(i)};return e||x(`fetch`,{...c}),Reflect.apply(n,t,i).then(async t=>(e?e(t):x(`fetch`,{...c,endTimestamp:F()*1e3,response:t}),t),e=>{x(`fetch`,{...c,endTimestamp:F()*1e3,error:e}),S(e)&&e.stack===void 0&&(e.stack=a.stack,D(e,`framesToPop`,1));let t=V(),n=(t==null?void 0:t.getOptions().enhanceFetchErrorMessages)??`always`;if(n!==!1&&S(e)&&e.name===`TypeError`&&(e.message===`Failed to fetch`||e.message===`Load failed`||e.message===`NetworkError when attempting to fetch resource.`))try{let t=new URL(c.fetchData.url).host;n===`always`?e.message=`${e.message} (${t})`:D(e,`__sentry_fetch_url_host__`,t)}catch{}throw e})}})})}function Oo(e,t){return we(e)&&!!e[t]}function ko(e){return typeof e==`string`?e:e?Oo(e,`url`)?e.url:e.toString?e.toString():``:``}function Ao(e){if(e.length===0)return{method:`GET`,url:``};if(e.length===2){let[t,n]=e;return{url:ko(t),method:Oo(n,`method`)?String(n.method).toUpperCase():ke(t)&&Oo(t,`method`)?String(t.method).toUpperCase():`GET`}}let t=e[0];return{url:ko(t),method:Oo(t,`method`)?String(t.method).toUpperCase():`GET`}}function jo(e){let[t,n]=e;try{if(typeof n==`object`&&n&&`headers`in n&&n.headers)return new Headers(n.headers);if(ke(t))return new Headers(t.headers)}catch{}}function Mo(e){if(e!==void 0){if(e>=400&&e<500)return`warning`;if(e>=500)return`error`}}var No=typeof __SENTRY_DEBUG__>`u`||__SENTRY_DEBUG__,Y=t,Po=80,X={};try{typeof Node<`u`&&(X.parentNode=Object.getOwnPropertyDescriptor(Node.prototype,`parentNode`).get),typeof Element<`u`&&(X.tagName=Object.getOwnPropertyDescriptor(Element.prototype,`tagName`).get,X.id=Object.getOwnPropertyDescriptor(Element.prototype,`id`).get,X.className=Object.getOwnPropertyDescriptor(Element.prototype,`className`).get,X.getAttribute=Element.prototype.getAttribute),typeof HTMLElement<`u`&&(X.dataset=Object.getOwnPropertyDescriptor(HTMLElement.prototype,`dataset`).get)}catch{}function Z(e,t,n){let r=X[t];if(r)try{return r.call(e,n)}catch{}let i=e[t];return typeof i==`function`?i.call(e,n):i}function Fo(e,t={}){if(!e)return`<unknown>`;try{let n=e,r=[],i=0,a=0,o,s=Array.isArray(t)?t:t.keyAttrs,c=!Array.isArray(t)&&t.maxStringLength||Po;for(;n&&i++<5&&(o=Io(n,s),!(o===`html`||i>1&&a+r.length*3+o.length>=c));)r.push(o),a+=o.length,n=Z(n,`parentNode`);return r.reverse().join(` > `)}catch{return`<unknown>`}}function Io(e,t){let n=[],r=Z(e,`tagName`);if(!r)return``;if(typeof HTMLElement<`u`&&e instanceof HTMLElement){let t=Z(e,`dataset`);if(t){if(t.sentryComponent)return t.sentryComponent;if(t.sentryElement)return t.sentryElement}}n.push(r.toLowerCase());let i=t!=null&&t.length?t.filter(t=>Z(e,`getAttribute`,t)).map(t=>[t,Z(e,`getAttribute`,t)]):null;if(i!=null&&i.length)i.forEach(e=>{n.push(`[${e[0]}="${e[1]}"]`)});else{let t=Z(e,`id`);t&&n.push(`#${t}`);let r=Z(e,`className`);if(r&&w(r)){let e=r.split(/\s+/);for(let t of e)n.push(`.${t}`)}}for(let t of[`aria-label`,`type`,`name`,`title`,`alt`]){let r=Z(e,`getAttribute`,t);r&&n.push(`[${t}="${r}"]`)}return n.join(``)}function Lo(e,t,n){Y.document&&Y.addEventListener(e,t,n)}function Ro(e,t,n){Y.document&&Y.removeEventListener(e,t,n)}var zo=e=>{var t;let n=Y.requestIdleCallback||Y.setTimeout;if(((t=Y.document)==null?void 0:t.visibilityState)===`hidden`)e();else{let t=!1,r=()=>{t||=(e(),!0)};Lo(`visibilitychange`,r,{once:!0,capture:!0}),n(()=>{r(),Ro(`visibilitychange`,r,{capture:!0})})}};function Bo(e,n=5){if(!t.HTMLElement)return null;let r=e;for(let e=0;e<n;e++){if(!r)return null;if(r instanceof HTMLElement){if(r.dataset.sentryComponent)return r.dataset.sentryComponent;if(r.dataset.sentryElement)return r.dataset.sentryElement}r=r.parentNode}return null}function Vo(){try{var e;return((e=Y.document)==null?void 0:e.location.href)??``}catch{return``}}var Ho=new WeakMap;function Uo(e,t=V()){t?(No&&Wo(t)&&_.warn(`A route provider is already registered for this client and will be replaced. Routes only the previous provider knows about will no longer resolve.`),Ho.set(t,e)):No&&_.warn(`Cannot set a route provider without a client.`)}function Wo(e=V()){return e&&Ho.get(e)}var Go=1e3,Ko,qo,Jo;function Yo(e){return typeof e==`boolean`?e:!!(e!=null&&e.capture)}function Xo(e){y(`dom`,e),b(`dom`,Zo)}function Zo(){if(!Y.document)return;let e=x.bind(null,`dom`),t=es(e,!0);Y.document.addEventListener(`click`,t,!1),Y.document.addEventListener(`keypress`,t,!1),[`EventTarget`,`Node`].forEach(t=>{var n,r;let i=(n=Y[t])==null?void 0:n.prototype;i!=null&&(r=i.hasOwnProperty)!=null&&r.call(i,`addEventListener`)&&(E(i,`addEventListener`,function(t){return function(n,r,i){if((n===`click`||n==`keypress`)&&r)try{let a=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},o=a[n]=a[n]||{captureListeners:new WeakSet,bubbleListeners:new WeakSet,listenerCount:0},s=Yo(i);if(!o.handler){let r=es(e);o.handler=r,o.capture=s,t.call(this,n,r,o.capture)}let c=o[s?`captureListeners`:`bubbleListeners`];c.has(r)||(typeof i==`object`&&(i!=null&&i.once||i!=null&&i.signal)?o.sticky=!0:(c.add(r),o.listenerCount++))}catch{}return t.call(this,n,r,i)}}),E(i,`removeEventListener`,function(e){return function(t,n,r){if((t===`click`||t==`keypress`)&&n)try{let i=this.__sentry_instrumentation_handlers__||{},a=i[t];a!=null&&a[Yo(r)?`captureListeners`:`bubbleListeners`].delete(n)&&(!--a.listenerCount&&!a.sticky&&(e.call(this,t,a.handler,a.capture),a.handler=void 0,delete i[t]),Object.keys(i).length===0&&delete this.__sentry_instrumentation_handlers__)}catch{}return e.call(this,t,n,r)}}))})}function Qo(e){if(e.type!==qo)return!1;try{if(!e.target||e.target._sentryId!==Jo)return!1}catch{}return!0}function $o(e,t){return e===`keypress`?t!=null&&t.tagName?!(t.tagName===`INPUT`||t.tagName===`TEXTAREA`||t.isContentEditable):!0:!1}function es(e,t=!1){return n=>{if(!n||n._sentryCaptured)return;let r=ts(n);if($o(n.type,r))return;D(n,`_sentryCaptured`,!0),r&&!r._sentryId&&D(r,`_sentryId`,j());let i=n.type===`keypress`?`input`:n.type;Qo(n)||(e({event:n,name:i,global:t}),qo=n.type,Jo=r?r._sentryId:void 0),clearTimeout(Ko),Ko=Y.setTimeout(()=>{Jo=void 0,qo=void 0},Go)}}function ts(e){try{return e.target}catch{return null}}var ns;function rs(){return`history`in Y&&!!Y.history}function is(e){let t=`history`;y(t,e),b(t,as)}function as(){if(Y.addEventListener(`popstate`,()=>{let e=Y.location.href,t=ns;ns=e,t!==e&&x(`history`,{from:t,to:e})}),!rs())return;function e(e){return function(...t){let n=t.length>2?t[2]:void 0;if(n){let r=ns,i=os(String(n));if(ns=i,r===i)return e.apply(this,t);x(`history`,{from:r,to:i})}return e.apply(this,t)}}E(Y.history,`pushState`,e),E(Y.history,`replaceState`,e)}function os(e){try{return new URL(e,Y.location.origin).toString()}catch{return e}}var ss={};function cs(e){let t=ss[e];if(t)return t;let n=Y[e];if(wo(n))return ss[e]=n.bind(Y);let r=Y.document;if(r&&typeof r.createElement==`function`)try{let t=r.createElement(`iframe`);t.hidden=!0,r.head.appendChild(t);let i=t.contentWindow;i!=null&&i[e]&&(n=i[e]),r.head.removeChild(t)}catch(t){No&&_.warn(`Could not create sandbox iframe for ${e} check, bailing to window.${e}: `,t)}return n&&(ss[e]=n.bind(Y))}function ls(e){ss[e]=void 0}var us=`__sentry_xhr_v3__`;function ds(e){y(`xhr`,e),b(`xhr`,fs)}function fs(){if(!Y.XMLHttpRequest)return;let e=XMLHttpRequest.prototype;e.open=new Proxy(e.open,{apply(e,t,n){let r=Error(),i=F()*1e3,a=w(n[0])?n[0].toUpperCase():void 0,o=ps(n[1]);if(!a||!o)return e.apply(t,n);t[us]={method:a,url:o,request_headers:{}},a===`POST`&&o.match(/sentry_key/)&&(t.__sentry_own_request__=!0);let s=()=>{let e=t[us];if(e&&t.readyState===4){try{e.status_code=t.status}catch{}x(`xhr`,{endTimestamp:F()*1e3,startTimestamp:i,xhr:t,virtualError:r}),r=void 0,t.removeEventListener(`readystatechange`,s)}};return`onreadystatechange`in t&&typeof t.onreadystatechange==`function`?t.onreadystatechange=new Proxy(t.onreadystatechange,{apply(e,t,n){return s(),e.apply(t,n)}}):t.addEventListener(`readystatechange`,s),t.setRequestHeader=new Proxy(t.setRequestHeader,{apply(e,t,n){let[r,i]=n,a=t[us];return a&&w(r)&&w(i)&&(a.request_headers[r.toLowerCase()]=i),e.apply(t,n)}}),e.apply(t,n)}}),e.send=new Proxy(e.send,{apply(e,t,n){let r=t[us];return r&&(n[0]!==void 0&&(r.body=n[0]),x(`xhr`,{startTimestamp:F()*1e3,xhr:t})),e.apply(t,n)}})}function ps(e){if(w(e))return e;try{return e.toString()}catch{}}function ms(e){if(typeof Element>`u`)return!1;try{return e instanceof Element}catch{return!1}}var Q=t,hs=0,gs=[];function _s(e){if(hs>0)return!0;let t=e?gs.findIndex(t=>vs(t,e)):-1;return t!==-1&&(gs.splice(t,1),!0)}function vs(e,t){return e.msg===t.msg&&e.url===t.url&&e.line===t.line&&e.column===t.column}function ys(){hs++,setTimeout(()=>{hs--})}function $(e,n={}){function r(e){return typeof e==`function`}if(!r(e))return e;try{if(Object.prototype.hasOwnProperty.call(e,`__sentry_wrapped__`)){let t=e.__sentry_wrapped__;return typeof t==`function`?t:e}if(je(e))return e}catch{return e}let i=function(...r){t._sentryWrappedDepth=(t._sentryWrappedDepth||0)+1;try{let t=r.map(e=>$(e,n));return e.apply(this,t)}catch(e){throw ys(),Ht(t=>{t.addEventProcessor(e=>(n.mechanism&&(it(e,void 0,void 0),N(e,n.mechanism)),e.extra={...e.extra,arguments:r},e)),pi(e)}),e}finally{t._sentryWrappedDepth=(t._sentryWrappedDepth||0)-1}};try{for(let t in e)Object.prototype.hasOwnProperty.call(e,t)&&(i[t]=e[t])}catch{}Ae(i,e),D(e,`__sentry_wrapped__`,i);try{Object.getOwnPropertyDescriptor(i,`name`).configurable&&Object.defineProperty(i,"name",{get(){return e.name}})}catch{}return i}function bs(e){let t=Vo(),{referrer:n}=Q.document||{},{userAgent:r}=Q.navigator||{};return{url:t,headers:{...n&&{Referer:q(n,e)},...r&&{"User-Agent":r}}}}function xs(e,t){let n=ws(e,t),r={type:ks(t),value:As(t)};return n.length&&(r.stacktrace={frames:n}),r.type===void 0&&r.value===``&&(r.value=`Unrecoverable error caught`),r}function Ss(e,t,n,r){let i=V(),a=i==null?void 0:i.getOptions().normalizeDepth,o=Ls(t),s={__serialized__:Ue(t,a)};if(o)return{exception:{values:[xs(e,o)]},extra:s};let c={exception:{values:[{type:Te(t)?t.constructor.name:r?`UnhandledRejection`:`Error`,value:Fs(t,{isUnhandledRejection:r})}]},extra:s};if(n){let t=ws(e,n);t.length&&(c.exception.values[0].stacktrace={frames:t})}return c}function Cs(e,t){return{exception:{values:[xs(e,t)]}}}function ws(e,t){let n=t.stacktrace||t.stack||``,r=Es(t),i=Ds(t);try{return e(n,r,i)}catch{}return[]}var Ts=/Minified React error #\d+;/i;function Es(e){return e&&Ts.test(e.message)?1:0}function Ds(e){return typeof e.framesToPop==`number`?e.framesToPop:0}function Os(e){return typeof WebAssembly<`u`&&WebAssembly.Exception!==void 0&&e instanceof WebAssembly.Exception}function ks(e){let t=e==null?void 0:e.name;return!t&&Os(e)?e.message&&Array.isArray(e.message)&&e.message.length==2?e.message[0]:`WebAssembly.Exception`:t}function As(e){let t=e==null?void 0:e.message;return Os(e)?Array.isArray(e.message)&&e.message.length==2?e.message[1]:`wasm exception`:t?t.error&&typeof t.error.message==`string`?eo(t.error):eo(e):`No error message`}function js(e,t,n,r){let i=Ns(e,t,(n==null?void 0:n.syntheticException)||void 0,r);return N(i),i.level=`error`,n!=null&&n.event_id&&(i.event_id=n.event_id),Kr(i)}function Ms(e,t,n=`info`,r,i){let a=Ps(e,t,(r==null?void 0:r.syntheticException)||void 0,i);return a.level=n,r!=null&&r.event_id&&(a.event_id=r.event_id),Kr(a)}function Ns(e,t,n,r,i){let a;if(ye(t)&&t.error)return Cs(e,t.error);if(be(t)||xe(t)){let i=t;if(`stack`in t){var o;a=Cs(e,t);let i=(o=a.exception)==null||(o=o.values)==null?void 0:o[0];if(r&&n&&i&&!i.stacktrace){let t=ws(e,n);t.length&&(i.stacktrace={frames:t},N(a,{synthetic:!0}))}}else{let t=i.name||(be(i)?`DOMError`:`DOMException`),o=i.message?`${t}: ${i.message}`:t;a=Ps(e,o,n,r),it(a,o)}return a}if(S(t))return Cs(e,t);if(Ce(t)||Te(t))return a=Ss(e,t,n,i),N(a,{synthetic:!0}),a;let s=String(t);return a=Ps(e,s,n,r),it(a,s,void 0),N(a,{synthetic:!0}),a}function Ps(e,t,n,r){let i={};if(r&&n){let r=ws(e,n);r.length&&(i.exception={values:[{value:t,stacktrace:{frames:r}}]}),N(i,{synthetic:!0})}if(Se(t)){let{__sentry_template_string__:e,__sentry_template_values__:n}=t;return i.logentry={message:e,params:n},i}return i.message=t,i}function Fs(e,{isUnhandledRejection:t}){let n=Pe(e),r=t?`promise rejection`:`exception`;return ye(e)?`Event \`ErrorEvent\` captured as ${r} with message \`${e.message}\``:Te(e)?`Event \`${Is(e)}\` (type=${e.type}) captured as ${r}`:`Object captured as ${r} with keys: ${n}`}function Is(e){try{let t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch{}}function Ls(e){return Object.values(e).find(S)}var Rs=class extends sa{constructor(e){var t;let n=zs(e);Aa(n,`browser`,[`browser`],Q.SENTRY_SDK_SOURCE||Mr()),super(n),n.routeProvider&&Uo(n.routeProvider,this),this._unhandledSessionStatus=`unhandled`;let{userInfo:r}=this.getDataCollectionOptions();(t=n._metadata)!=null&&t.sdk&&(n._metadata.sdk.settings={infer_ip:r?`auto`:`never`,...n._metadata.sdk.settings});let{sendClientReports:i}=this._options,a=()=>{F()},o=[[Q.document,`visibilitychange`,()=>{a(),Q.document.visibilityState===`hidden`&&(i&&this._flushOutcomes(),queueMicrotask(()=>{this.flush()}))}],[Q.document,`freeze`,a],[Q.document,`resume`,a],[Q,`pagehide`,a],[Q,`pageshow`,a]];o.forEach(([e,t,n])=>{var r;return e==null||(r=e.addEventListener)==null?void 0:r.call(e,t,n)}),this.on(`close`,()=>o.forEach(([e,t,n])=>{var r;return e==null||(r=e.removeEventListener)==null?void 0:r.call(e,t,n)})),r&&this.on(`beforeSendSession`,ka)}eventFromException(e,t){return js(this._options.stackParser,e,t,this._options.attachStacktrace)}eventFromMessage(e,t=`info`,n){return Ms(this._options.stackParser,e,t,n,this._options.attachStacktrace)}_prepareEvent(e,t,n,r){return e.platform=e.platform||`javascript`,super._prepareEvent(e,t,n,r)}};function zs(e){var t;return{release:typeof __SENTRY_RELEASE__==`string`?__SENTRY_RELEASE__:(t=Q.SENTRY_RELEASE)==null?void 0:t.id,sendClientReports:!0,parentSpanIsAlwaysRootSpan:!0,...e}}var Bs=40;function Vs(e,t=cs(`fetch`)){let n=0,r=0;async function i(i){let a=i.body.length;n+=a,r++;let o={body:i.body,method:`POST`,referrerPolicy:`strict-origin`,headers:e.headers,keepalive:n<=6e4&&r<15,...e.fetchOptions};try{let n=await t(e.url,o);return{statusCode:n.status,headers:{"x-sentry-rate-limits":n.headers.get(`X-Sentry-Rate-Limits`),"retry-after":n.headers.get(`Retry-After`)}}}catch(e){throw ls(`fetch`),e}finally{n-=a,r--}}return Vi(e,i,Fi(e.bufferSize||Bs))}var Hs=typeof __SENTRY_DEBUG__>`u`||__SENTRY_DEBUG__,Us=30,Ws=50;function Gs(e,t,n,r){let i={filename:e,function:t===`<anonymous>`?`?`:t,in_app:!0};return n!==void 0&&(i.lineno=n),r!==void 0&&(i.colno=r),i}var Ks=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,qs=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,Js=/\((\S*)(?::(\d+))(?::(\d+))\)/,Ys=/at (.+?) ?\(data:(.+?),/,Xs=[Us,e=>{let t=e.match(Ys);if(t)return{filename:`<data:${t[2]}>`,function:t[1]};let n=Ks.exec(e);if(n){let[,e,t,r]=n;return Gs(e,`?`,+t,+r)}let r=qs.exec(e);if(r){var i;if(((i=r[2])==null?void 0:i.indexOf(`eval`))===0){let e=Js.exec(r[2]);e&&(r[2]=e[1],r[3]=e[2],r[4]=e[3])}let[e,t]=ec(r[1]||`?`,r[2]);return Gs(t,e,r[3]?+r[3]:void 0,r[4]?+r[4]:void 0)}}],Zs=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,Qs=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,$s=ie(Xs,[Ws,e=>{let t=Zs.exec(e);if(t){if(t[3]&&t[3].indexOf(` > eval`)>-1){let e=Qs.exec(t[3]);e&&(t[1]=t[1]||`eval`,t[3]=e[1],t[4]=e[2],t[5]=``)}let e=t[3],n=t[1]||`?`;return[n,e]=ec(n,e),Gs(e,n,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}}]),ec=(e,t)=>{let n=e.indexOf(`safari-extension`)!==-1,r=e.indexOf(`safari-web-extension`)!==-1;return n||r?[e.indexOf(`@`)===-1?`?`:e.split(`@`)[0],n?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]},tc=1024,nc=`Breadcrumbs`,rc=H(((e={})=>{let t={dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e};return{name:nc,setup(e){t.dom&&Xo(ac(e,t.dom)),t.xhr&&ds(oc(e)),t.fetch&&Eo(sc(e)),t.history&&is(cc(e)),t.sentry&&e.on(`beforeSendEvent`,ic(e))}}}));function ic(e){return function(t){V()===e&&J({category:`sentry.${t.type===`transaction`?`transaction`:`event`}`,event_id:t.event_id,level:t.level,message:M(t)},{event:t})}}function ac(e,t){return function(n){if(V()!==e)return;let r,i,a=typeof t==`object`?t.serializeAttribute:void 0,o=typeof t==`object`&&typeof t.maxStringLength==`number`?t.maxStringLength:void 0;o&&o>tc&&(Hs&&_.warn(`\`dom.maxStringLength\` cannot exceed ${tc}, but a value of ${o} was configured. Sentry will use ${tc} instead.`),o=tc),typeof a==`string`&&(a=[a]);try{let e=n.event,t=lc(e)?e.target:e;r=Fo(t,{keyAttrs:a,maxStringLength:o}),i=Bo(t)}catch{r=`<unknown>`}if(r.length===0)return;let s={category:`ui.${n.name}`,message:r};i&&(s.data={"ui.component_name":i}),J(s,{event:n.event,name:n.name,global:n.global})}}function oc(e){return function(t){if(V()!==e)return;let{startTimestamp:n,endTimestamp:r}=t,i=t.xhr[us];if(!n||!r||!i)return;let{method:a,url:o,status_code:s,body:c}=i,l={method:a,url:q(o),status_code:s},u={xhr:t.xhr,input:c,startTimestamp:n,endTimestamp:r},d={category:`xhr`,data:l,type:`http`,level:Mo(s)};e.emit(`beforeOutgoingRequestBreadcrumb`,d,u),J(d,u)}}function sc(e){return function(t){if(V()!==e)return;let{startTimestamp:n,endTimestamp:r}=t;if(r&&!(t.fetchData.url.match(/sentry_key/)&&t.fetchData.method===`POST`)){if(t.error){let i={data:t.error,input:t.args,startTimestamp:n,endTimestamp:r},a={category:`fetch`,data:{...t.fetchData,url:q(t.fetchData.url)},level:`error`,type:`http`};e.emit(`beforeOutgoingRequestBreadcrumb`,a,i),J(a,i)}else{let i=t.response,a={...t.fetchData,url:q(t.fetchData.url),status_code:i==null?void 0:i.status},o={input:t.args,response:i,startTimestamp:n,endTimestamp:r},s={category:`fetch`,data:a,type:`http`,level:Mo(a.status_code)};e.emit(`beforeOutgoingRequestBreadcrumb`,s,o),J(s,o)}}}}function cc(e){return function(t){if(V()!==e)return;let n=t.from,r=t.to,i=Da(Q.location.href),a=n?Da(n):void 0,o=Da(r);a!=null&&a.path||(a=i),i.protocol===o.protocol&&i.host===o.host&&(r=o.relative),i.protocol===a.protocol&&i.host===a.host&&(n=a.relative),J({category:`navigation`,data:{from:q(n),to:q(r)}})}}function lc(e){return!!e&&!!e.target}var uc=`EventTarget,Window,Node,ApplicationCache,AudioTrackList,BroadcastChannel,ChannelMergerNode,CryptoOperation,EventSource,FileReader,HTMLUnknownElement,IDBDatabase,IDBRequest,IDBTransaction,KeyOperation,MediaController,MessagePort,ModalWindow,Notification,SVGElementInstance,Screen,SharedWorker,TextTrack,TextTrackCue,TextTrackList,WebSocket,WebSocketWorker,Worker,XMLHttpRequest,XMLHttpRequestEventTarget,XMLHttpRequestUpload`.split(`,`),dc=`BrowserApiErrors`,fc=H(((e={})=>{let t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,unregisterOriginalCallbacks:!1,...e};return{name:dc,setupOnce(){t.setTimeout&&E(Q,`setTimeout`,pc),t.setInterval&&E(Q,`setInterval`,pc),t.requestAnimationFrame&&E(Q,`requestAnimationFrame`,mc),t.XMLHttpRequest&&`XMLHttpRequest`in Q&&E(XMLHttpRequest.prototype,`send`,hc);let e=t.eventTarget;e&&(Array.isArray(e)?e:uc).forEach(e=>gc(e,t))}}}));function pc(e){return function(...t){let n=t[0];return t[0]=$(n,{mechanism:{handled:!1,type:`auto.browser.browserapierrors.${v(e)}`}}),e.apply(this,t)}}function mc(e){return function(t){return e.apply(this,[$(t,{mechanism:{data:{handler:v(e)},handled:!1,type:`auto.browser.browserapierrors.requestAnimationFrame`}})])}}function hc(e){return function(...t){let n=this;return[`onload`,`onerror`,`onprogress`,`onreadystatechange`].forEach(e=>{e in n&&typeof n[e]==`function`&&E(n,e,function(t){let n={mechanism:{data:{handler:v(t)},handled:!1,type:`auto.browser.browserapierrors.xhr.${e}`}},r=je(t);return r&&(n.mechanism.data.handler=v(r)),$(t,n)})}),e.apply(this,t)}}function gc(e,t){var n,r;let i=(n=Q[e])==null?void 0:n.prototype;i!=null&&(r=i.hasOwnProperty)!=null&&r.call(i,`addEventListener`)&&(E(i,`addEventListener`,function(n){return function(r,i,a){try{_c(i)&&(i.handleEvent=$(i.handleEvent,{mechanism:{data:{handler:v(i),target:e},handled:!1,type:`auto.browser.browserapierrors.handleEvent`}}))}catch{}return t.unregisterOriginalCallbacks&&vc(this,r,i),n.apply(this,[r,$(i,{mechanism:{data:{handler:v(i),target:e},handled:!1,type:`auto.browser.browserapierrors.addEventListener`}}),a])}}),E(i,`removeEventListener`,function(e){return function(t,n,r){try{if(Object.prototype.hasOwnProperty.call(n,`__sentry_wrapped__`)){let i=n.__sentry_wrapped__;i&&e.call(this,t,i,r)}}catch{}return e.call(this,t,n,r)}}))}function _c(e){return typeof e.handleEvent==`function`}function vc(e,t,n){e&&typeof e==`object`&&`removeEventListener`in e&&typeof e.removeEventListener==`function`&&e.removeEventListener(t,n)}var yc=H((e={})=>{let t=e.lifecycle??`page`;return{name:`BrowserSession`,setupOnce(){if(Q.document===void 0){Hs&&_.warn("Using the `browserSessionIntegration` in non-browser environments is not supported.");return}hi({ignoreDuration:!0});let e=!1;zo(()=>{e||=(vi(),!0)});let n=B(),r=n.getUser();n.addScopeListener(t=>{let n=t.getUser();((r==null?void 0:r.id)!==(n==null?void 0:n.id)||(r==null?void 0:r.ip_address)!==(n==null?void 0:n.ip_address))&&(r=n,e&&vi())}),t===`route`&&is(({from:t,to:n})=>{t!==n&&(hi({ignoreDuration:!0}),vi(),e=!0)})}}}),bc=`CultureContext`,xc=H((()=>({name:bc,preprocessEvent(e){let t=Sc();if(t){var n;e.contexts={...e.contexts,culture:{...t,...(n=e.contexts)==null?void 0:n.culture}}}},processSegmentSpan(e){let t=Sc();t&&hr(e,{"culture.locale":t.locale,"culture.timezone":t.timezone,"culture.calendar":t.calendar})}})));function Sc(){try{let e=Q.Intl;if(!e)return;let t=e.DateTimeFormat().resolvedOptions();return{locale:t.locale,timezone:t.timeZone,calendar:t.calendar}}catch{return}}var Cc=`GlobalHandlers`,wc=H(((e={})=>{let t={onerror:!0,onunhandledrejection:!0,...e};return{name:Cc,setupOnce(){Error.stackTraceLimit=50},setup(e){t.onerror&&(Tc(e),Ac(`onerror`)),t.onunhandledrejection&&(Ec(e),Ac(`onunhandledrejection`))}}}));function Tc(e){pe(t=>{let{stackParser:n,attachStacktrace:r}=jc();if(V()!==e||_s(t))return;let{msg:i,url:a,line:o,column:s,error:c}=t,l=kc(Ns(n,c||i,void 0,r,!1),a,o,s);l.level=`error`,mi(l,{originalException:c,mechanism:{handled:!1,type:`auto.browser.global_handlers.onerror`}})})}function Ec(e){ge(t=>{let{stackParser:n,attachStacktrace:r}=jc();if(V()!==e||_s())return;let i=Dc(t),a=T(i)?Oc(i):Ns(n,i,void 0,r,!0);a.level=`error`,mi(a,{originalException:i,mechanism:{handled:!1,type:`auto.browser.global_handlers.onunhandledrejection`}})})}function Dc(e){if(T(e))return e;try{if(`reason`in e)return e.reason;if(`detail`in e&&`reason`in e.detail)return e.detail.reason}catch{}return e}function Oc(e){return{exception:{values:[{type:`UnhandledRejection`,value:`Non-Error promise rejection captured with value: ${String(e)}`}]}}}function kc(e,t,n,r){let i=e.exception=e.exception||{},a=i.values=i.values||[],o=a[0]=a[0]||{},s=o.stacktrace=o.stacktrace||{},c=s.frames=s.frames||[];return c.length===0&&c.push({colno:r,lineno:n,filename:Mc(t)??Vo(),function:`?`,in_app:!0}),e}function Ac(e){Hs&&_.log(`Global Handler attached: ${e}`)}function jc(){let e=V();return(e==null?void 0:e.getOptions())||{stackParser:()=>[],attachStacktrace:!1}}function Mc(e){if(w(e)&&e.length!==0)return e.startsWith(`data:`)?`<${Oa(e,!1)}>`:e}var Nc=H(()=>({name:`HttpContext`,preprocessEvent(e,t,n){var r;if(!Q.navigator&&!Q.location&&!Q.document)return;let{url:i,headers:a}=bs(n),o=n.getDataCollectionOptions().httpHeaders.request,s=Object.entries(((r=e.request)==null?void 0:r.headers)??{}).filter(([e])=>!(e in a)),c={...Ca(a,o),...Object.fromEntries(s)};e.request={url:q(i,n),...e.request,...Object.keys(c).length>0?{headers:c}:{headers:void 0}}},processSpan(e,t){var n;if(!Q.navigator&&!Q.location&&!Q.document)return;let r=bs(t),i=Ca(r.headers,t.getDataCollectionOptions().httpHeaders.request),a=i.Referer,{hostname:o,protocol:s}=Q.location||{};hr(e,{[Zt]:i[`User-Agent`],[Kt]:s===`file:`||o===`localhost`||o===`127.0.0.1`||o===`[::1]`||!!(o!=null&&o.endsWith(`.localhost`)),...e.is_segment&&{"url.full":((n=e.attributes)==null?void 0:n[`sentry.op`])===`http.client`?void 0:q(r.url),"http.request.header.referer":a?[a]:void 0}})}})),Pc=`cause`,Fc=5,Ic=`LinkedErrors`,Lc=H(((e={})=>{let t=e.limit||Fc,n=e.key||Pc;return{name:Ic,preprocessEvent(e,r,i){qa(xs,i.getOptions().stackParser,n,t,e,r)}}})),Rc=/^HTML(\w*)Element$/;function zc(e){if(typeof window<`u`&&e===window)return`[Window]`;if(typeof document<`u`&&e===document)return`[Document]`;if(ms(e)){let t=Bc(e);if(Rc.test(t))return`[HTMLElement: ${Fo(e)}]`}}function Bc(e){let t=Object.getPrototypeOf(e);return t!=null&&t.constructor?t.constructor.name:`null prototype`}function Vc(){return Hc()?(Hs&&l(()=>{console.error(`[Sentry] You cannot use Sentry.init() in a browser extension, see: https://docs.sentry.io/platforms/javascript/best-practices/browser-extensions/`)}),!0):!1}function Hc(){var e;if(Q.window===void 0)return!1;let t=Q;if(t.nw)return!1;let n=t.chrome||t.browser;if(!(n!=null&&(e=n.runtime)!=null&&e.id))return!1;let r=Vo();return!(Q===Q.top&&/^(?:chrome-extension|moz-extension|ms-browser-extension|safari-web-extension):\/\//.test(r))}function Uc(e){return[La(),Pa(),xo(),fc(),rc(),_o(),wc(),Lc(),co(),Nc(),xc(),yc()]}function Wc(e={}){let t=!e.skipBrowserExtensionCheck&&Vc(),n=e.defaultIntegrations==null?Uc():e.defaultIntegrations,r=Wn({integrations:e.integrations,defaultIntegrations:n}),i={...e,enabled:!t&&e.enabled,stackParser:ae(e.stackParser||$s),integrations:r,transport:e.transport||Vs};return He(zc),ha(Rs,i)}export{co as dedupeIntegration,z as getCurrentScope,Wc as init};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t,t.exports),e=null),t.exports),s=(e,n)=>{let r={};for(var i in e)t(r,i,{get:e[i],enumerable:!0});return n||t(r,Symbol.toStringTag,{value:`Module`}),r},c=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;l<u;l++)d=c[l],!a.call(e,d)&&d!==o&&t(e,d,{get:(e=>i[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},l=(n,r,o)=>(o=n==null?{}:e(i(n)),c(r||!n||!n.__esModule||!a.call(n,`default`)?t(o,`default`,{value:n,enumerable:!0}):o,n)),u=(e=>typeof require<`u`?require:typeof Proxy<`u`?new Proxy(e,{get:(e,t)=>(typeof require<`u`?require:e)[t]}):e)(function(e){if(typeof require<`u`)return require.apply(this,arguments);throw Error('Calling `require` for "'+e+"\" in an environment that doesn't expose the `require` function. See https://rolldown.rs/in-depth/bundling-cjs#require-external-modules for more details.")});export{l as i,s as n,u as r,o as t};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
var e={AT:`@`,HYPHEN:`-`,SLASH:`/`},t={[e.AT]:`scope_`,[e.HYPHEN]:`_`,[e.SLASH]:`__`};t[e.AT],e.AT,t[e.HYPHEN],e.HYPHEN,t[e.SLASH],e.SLASH;var n=function(e){return e[e.UNKNOWN=1]=`UNKNOWN`,e[e.CALCULATED=2]=`CALCULATED`,e[e.NO_USE=0]=`NO_USE`,e}({});function r(){return!0}function i(){var e;return typeof navigator<`u`&&((e=navigator)==null?void 0:e.product)===`ReactNative`}function a(){try{if(r()&&window.localStorage)return!!localStorage.getItem(`FEDERATION_DEBUG`)}catch{return!1}return!1}function o(){return typeof process<`u`&&{}.FEDERATION_DEBUG?!!{}.FEDERATION_DEBUG:typeof FEDERATION_DEBUG<`u`&&FEDERATION_DEBUG?!0:a()}var s=`[ Federation Runtime ]`,c=function(...e){return e.length?e.reduce((e,t)=>t?e?`${e}:${t}`:t:e,``):``};function l(e,t){if(`getPublicPath`in e){let n;return n=e.getPublicPath.startsWith(`function`)?Function(`return `+e.getPublicPath)()():Function(e.getPublicPath)(),`${n}${t}`}return`publicPath`in e?!r()&&!i()&&`ssrPublicPath`in e&&typeof e.ssrPublicPath==`string`?`${e.ssrPublicPath}${t}`:`${e.publicPath}${t}`:(console.warn(`Cannot get resource URL. If in debug mode, please ignore.`,e,t),``)}var u=e=>{console.warn(`${s}: ${e}`)};function d(e){try{return JSON.stringify(e,null,2)}catch{return``}}var f=(e,t)=>{if(!e)return t;let n=(e=>{if(e===`.`)return``;if(e.startsWith(`./`))return e.replace(`./`,``);if(e.startsWith(`/`)){let t=e.slice(1);return t.endsWith(`/`)?t.slice(0,-1):t}return e})(e);return n?n.endsWith(`/`)?`${n}${t}`:`${n}/${t}`:t};function p(e){return e.replace(/#.*$/,``).replace(/\?.*$/,``).replace(/\/[^\/]+$/,`/`)}function m(e,t={}){var n;let{remotes:r={},overrides:i={},version:a}=t,o,s=()=>`publicPath`in e.metaData?(e.metaData.publicPath===`auto`||e.metaData.publicPath===``)&&a?p(a):e.metaData.publicPath:e.metaData.getPublicPath,c=Object.keys(i),l={};Object.keys(r).length||(l=((n=e.remotes)==null?void 0:n.reduce((e,t)=>{let n,r=t.federationContainerName;return n=c.includes(r)?i[r]:`version`in t?t.version:t.entry,e[r]={matchedVersion:n},e},{}))||{}),Object.keys(r).forEach(e=>l[e]={matchedVersion:c.includes(e)?i[e]:r[e]});let{remoteEntry:{path:u,name:d,type:m},types:h={path:``,name:``,zip:``,api:``},buildInfo:{buildVersion:g},globalName:_,ssrRemoteEntry:v}=e.metaData,{exposes:ee}=e,te={version:a||``,buildVersion:g,globalName:_,remoteEntry:f(u,d),remoteEntryType:m,remoteTypes:f(h.path,h.name),remoteTypesZip:h.zip||``,remoteTypesAPI:h.api||``,remotesInfo:l,shared:e==null?void 0:e.shared.map(e=>({assets:e.assets,sharedName:e.name,version:e.version,usedExports:e.referenceExports||[]})),modules:ee==null?void 0:ee.map(e=>({moduleName:e.name,modulePath:e.path,assets:e.assets}))};if(`publicPath`in e.metaData?(o={...te,publicPath:s()},typeof e.metaData.ssrPublicPath==`string`&&(o.ssrPublicPath=e.metaData.ssrPublicPath)):o={...te,getPublicPath:s()},v){let e=f(v.path,v.name);o.ssrRemoteEntry=e,o.ssrRemoteEntryType=v.type||`commonjs-module`}return o}function h(e){return!!(`remoteEntry`in e&&e.remoteEntry.includes(`.json`))}var g=`[ Module Federation ]`,_=console,v=[`logger.ts`,`logger.js`,`captureStackTrace`,`Logger.emit`,`Logger.log`,`Logger.info`,`Logger.warn`,`Logger.error`,`Logger.debug`];function ee(){try{let e=Error().stack;if(!e)return;let[,...t]=e.split(`
|
|
2
|
+
`),n=t.filter(e=>!v.some(t=>e.includes(t)));return n.length?`Stack trace:\n${n.slice(0,5).join(`
|
|
3
|
+
`)}`:void 0}catch{return}}var te=class{constructor(e,t=_){this.prefix=e,this.delegate=t??_}setPrefix(e){this.prefix=e}setDelegate(e){this.delegate=e??_}emit(e,t){let n=this.delegate,r=o()?ee():void 0,i=r?[...t,r]:t,a=(()=>{switch(e){case`log`:return[`log`,`info`];case`info`:return[`info`,`log`];case`warn`:return[`warn`,`info`,`log`];case`error`:return[`error`,`warn`,`log`];default:return[`debug`,`log`]}})();for(let e of a){let t=n[e];if(typeof t==`function`){t.call(n,this.prefix,...i);return}}for(let e of a){let t=_[e];if(typeof t==`function`){t.call(_,this.prefix,...i);return}}}log(...e){this.emit(`log`,e)}warn(...e){this.emit(`warn`,e)}error(...e){this.emit(`error`,e)}success(...e){this.emit(`info`,e)}info(...e){this.emit(`info`,e)}ready(...e){this.emit(`info`,e)}debug(...e){o()&&this.emit(`debug`,e)}};function ne(e){return new te(e)}function re(e){let t=new te(e);return Object.defineProperty(t,"__mf_infrastructure_logger__",{value:!0,enumerable:!1,configurable:!1}),t}ne(g),re(g);async function ie(e,t){try{return await e()}catch(e){!t&&u(e);return}}function ae(e,t){let n=/^(https?:)?\/\//i;return e.replace(n,``).replace(/\/$/,``)===t.replace(n,``).replace(/\/$/,``)}function oe(e){let t=null,n=!0,r=2e4,i,a=document.getElementsByTagName(`script`);for(let r=0;r<a.length;r++){let i=a[r],o=i.getAttribute(`src`);if(o&&ae(o,e.url)){t=i,n=!1;break}}if(!t){let n=e.attrs;t=document.createElement(`script`),t.type=(n==null?void 0:n.type)===`module`?`module`:`text/javascript`;let i;e.createScriptHook&&(i=e.createScriptHook(e.url,e.attrs),i instanceof HTMLScriptElement?t=i:typeof i==`object`&&(`script`in i&&i.script&&(t=i.script),`timeout`in i&&i.timeout&&(r=i.timeout))),t.src||(t.src=e.url),n&&!i&&Object.keys(n).forEach(e=>{t&&(e===`async`||e===`defer`?t[e]=n[e]:t.getAttribute(e)||t.setAttribute(e,n[e]))})}let o=null,s=typeof window<`u`?t=>{if(t.filename&&ae(t.filename,e.url)){let n=Error(`ScriptExecutionError: Script "${e.url}" loaded but threw a runtime error during execution: ${t.message} (${t.filename}:${t.lineno}:${t.colno})`);n.name=`ScriptExecutionError`,o=n}}:null;s&&window.addEventListener(`error`,s);let c=async(n,r)=>{clearTimeout(i),s&&window.removeEventListener(`error`,s);let a=()=>{if((r==null?void 0:r.type)===`error`){let t=Error(r!=null&&r.isTimeout?`ScriptNetworkError: Script "${e.url}" timed out.`:`ScriptNetworkError: Failed to load script "${e.url}" - the script URL is unreachable or the server returned an error (network failure, 404, CORS, etc.)`);t.name=`ScriptNetworkError`,e!=null&&e.onErrorCallback&&(e==null||e.onErrorCallback(t))}else o?e!=null&&e.onErrorCallback&&(e==null||e.onErrorCallback(o)):e!=null&&e.cb&&(e==null||e.cb())};if(t&&(t.onerror=null,t.onload=null,ie(()=>{let{needDeleteScript:n=!0}=e;n&&t!=null&&t.parentNode&&t.parentNode.removeChild(t)}),n&&typeof n==`function`)){let e=n(r);if(e instanceof Promise){let t=await e;return a(),t}return a(),e}a()};return t.onerror=c.bind(null,t.onerror),t.onload=c.bind(null,t.onload),i=setTimeout(()=>{c(null,{type:`error`,isTimeout:!0})},r),{script:t,needAttach:n}}function se(e){let t=null,n=!0,r=2e4,i,a=document.getElementsByTagName(`link`);for(let r=0;r<a.length;r++){let i=a[r],o=i.getAttribute(`href`),s=i.getAttribute(`rel`);if(o&&ae(o,e.url)&&s===e.attrs.rel){t=i,n=!1;break}}if(!t){t=document.createElement(`link`),t.setAttribute(`href`,e.url);let n,i=!0,a=e.attrs;e.createLinkHook&&(n=e.createLinkHook(e.url,a),n instanceof HTMLLinkElement?(t=n,i=!1):typeof n==`object`&&(`link`in n&&n.link&&(t=n.link,i=!1),`timeout`in n&&n.timeout&&(r=n.timeout))),a&&i&&Object.keys(a).forEach(e=>{t&&!t.getAttribute(e)&&t.setAttribute(e,a[e])})}if(!n)return Promise.resolve().then(()=>{e!=null&&e.cb&&(e==null||e.cb())}),{link:t,needAttach:n};let o=(n,r)=>{i&&clearTimeout(i);let a=()=>{if((r==null?void 0:r.type)===`error`){let t=Error(r!=null&&r.isTimeout?`LinkNetworkError: Link "${e.url}" timed out.`:`LinkNetworkError: Failed to load link "${e.url}" - the URL is unreachable or the server returned an error.`);t.name=`LinkNetworkError`,e!=null&&e.onErrorCallback&&(e==null||e.onErrorCallback(t))}else e!=null&&e.cb&&(e==null||e.cb())};if(t&&(t.onerror=null,t.onload=null,ie(()=>{let{needDeleteLink:n=!0}=e;n&&t!=null&&t.parentNode&&t.parentNode.removeChild(t)}),n)){let e=n(r);return a(),e}a()};return t.onerror=o.bind(null,t.onerror),t.onload=o.bind(null,t.onload),i=setTimeout(()=>{o(null,{type:`error`,isTimeout:!0})},r),{link:t,needAttach:n}}function ce(e,t){let{attrs:n={},createScriptHook:r}=t;return new Promise((t,i)=>{let{script:a,needAttach:o}=oe({url:e,cb:t,onErrorCallback:i,attrs:{fetchpriority:`high`,...n},createScriptHook:r,needDeleteScript:!0});o&&document.head.appendChild(a)})}var le=e=>`View the docs to see how to solve: https://module-federation.io/guide/troubleshooting/${e.split(`-`)[0].toLowerCase()}#${e.toLowerCase()}`,ue=(e,t,n,r)=>{let i=[`${[t[e]]} #${e}`];return n&&i.push(`args: ${JSON.stringify(n)}`),i.push(le(e)),r&&i.push(`Original Error Message:\n ${r}`),i.join(`
|
|
4
|
+
`)};function de(e,t,n,r,i,a){return r(ue(e,t,n,i))}var y=`[ Federation Runtime ]`,fe=ne(y);function b(e,t,n,r,i){e||(n===void 0?x(t):x(t,n,r,void 0,i))}function x(e,t,n,r,i){if(t!==void 0)return de(e,t,n??{},e=>{throw Error(`${y}: ${e}`)},r,i);let a=e;throw a instanceof Error?(a.message.startsWith(y)||(a.message=`${y}: ${a.message}`),a):Error(`${y}: ${a}`)}function S(e){e instanceof Error&&(e.message.startsWith(y)||(e.message=`${y}: ${e.message}`)),fe.warn(e)}function pe(e,t){return e.findIndex(e=>e===t)===-1&&e.push(t),e}function C(e){return`version`in e&&e.version?`${e.name}:${e.version}`:`entry`in e&&e.entry?`${e.name}:${e.entry}`:`${e.name}`}function me(e){return e.entry!==void 0}function he(e){return!e.entry.includes(`.json`)}function ge(e){return e&&typeof e==`object`}var _e=Object.prototype.toString;function ve(e){return _e.call(e)===`[object Object]`}function ye(e){return Array.isArray(e)?e:[e]}function be(e){return`remoteEntry`in e?{url:e.remoteEntry,type:e.remoteEntryType,globalName:e.globalName}:{url:``,type:`global`,globalName:``}}var xe=(e,t)=>{let n;return n=e.endsWith(`/`)?e.slice(0,-1):e,t.startsWith(`.`)&&(t=t.slice(1)),n+=t,n},Se=2e3,w=typeof globalThis==`object`?globalThis:window,T=(()=>{try{return document.defaultView}catch{return w}})(),E=T;function Ce(e,t,n){Object.defineProperty(e,t,{value:n,configurable:!1,writable:!0})}function D(e,t){return Object.hasOwnProperty.call(e,t)}D(w,`__GLOBAL_LOADING_REMOTE_ENTRY__`)||Ce(w,`__GLOBAL_LOADING_REMOTE_ENTRY__`,{});var O=w.__GLOBAL_LOADING_REMOTE_ENTRY__;function we(e){D(e,`__VMOK__`)&&!D(e,`__FEDERATION__`)&&Ce(e,`__FEDERATION__`,e.__VMOK__),D(e,`__FEDERATION__`)||(Ce(e,`__FEDERATION__`,{__GLOBAL_PLUGIN__:[],__INSTANCES__:[],moduleInfo:{},__SHARE__:{},__MANIFEST_LOADING__:{},__PRELOADED_MAP__:new Map,__PRELOADED_ASSETS__:new Set}),Ce(e,`__VMOK__`,e.__FEDERATION__)),e.__FEDERATION__.__GLOBAL_PLUGIN__??=[],e.__FEDERATION__.__INSTANCES__??=[],e.__FEDERATION__.moduleInfo??={},e.__FEDERATION__.__SHARE__??={},e.__FEDERATION__.__MANIFEST_LOADING__??={},e.__FEDERATION__.__PRELOADED_MAP__??=new Map,e.__FEDERATION__.__PRELOADED_ASSETS__??=new Set}we(w),we(T);function Te(){w.__FEDERATION__.__GLOBAL_PLUGIN__=[],w.__FEDERATION__.__INSTANCES__=[],w.__FEDERATION__.moduleInfo={},w.__FEDERATION__.__SHARE__={},w.__FEDERATION__.__MANIFEST_LOADING__={},w.__FEDERATION__.__PRELOADED_ASSETS__.clear(),Object.keys(O).forEach(e=>{delete O[e]})}function Ee(e){w.__FEDERATION__.__INSTANCES__.push(e)}function De(){return w.__FEDERATION__.__DEBUG_CONSTRUCTOR__}function Oe(e,t=o()){t&&(w.__FEDERATION__.__DEBUG_CONSTRUCTOR__=e,w.__FEDERATION__.__DEBUG_CONSTRUCTOR_VERSION__=`2.9.2`)}function k(e,t){if(typeof t==`string`){if(e[t])return{value:e[t],key:t};{let n=Object.keys(e);for(let r of n){let[n,i]=r.split(`:`),a=`${n}:${t}`,o=e[a];if(o)return{value:o,key:a}}return{value:void 0,key:t}}}x(`getInfoWithoutType: "key" must be a string, got ${typeof t} (${JSON.stringify(t)}).`)}var ke=()=>T.__FEDERATION__.moduleInfo,Ae=(e,t)=>{let n=k(t,C(e)).value;if(n&&!n.version&&`version`in e&&e.version&&(n.version=e.version),n)return n;if(`version`in e&&e.version){let{version:t,...n}=e,r=C(n),i=k(T.__FEDERATION__.moduleInfo,r).value;if((i==null?void 0:i.version)===t)return i}},A=e=>Ae(e,T.__FEDERATION__.moduleInfo),je=(e,t)=>{let n=C(e);return T.__FEDERATION__.moduleInfo[n]=t,T.__FEDERATION__.moduleInfo},Me=e=>(T.__FEDERATION__.moduleInfo={...T.__FEDERATION__.moduleInfo,...e},()=>{let t=Object.keys(e);for(let e of t)delete T.__FEDERATION__.moduleInfo[e]}),Ne=(e,t)=>{let n=t||`__FEDERATION_${e}:custom__`;return{remoteEntryKey:n,entryExports:w[n]}},Pe=e=>{let{__GLOBAL_PLUGIN__:t}=T.__FEDERATION__;e.forEach(e=>{t.findIndex(t=>t.name===e.name)===-1?t.push(e):S(`The plugin ${e.name} has been registered.`)})},Fe=()=>T.__FEDERATION__.__GLOBAL_PLUGIN__,Ie=e=>w.__FEDERATION__.__PRELOADED_MAP__.get(e),Le=e=>w.__FEDERATION__.__PRELOADED_MAP__.set(e,!0),Re=e=>w.__FEDERATION__.__PRELOADED_ASSETS__.has(e),ze=e=>{let t=w.__FEDERATION__.__PRELOADED_ASSETS__;if(t.add(e),t.size>Se){let e=t.values().next().value;e!==void 0&&t.delete(e)}},Be=`[0-9A-Za-z-]+`,Ve=`(?:\\+(${Be}(?:\\.${Be})*))`,j=`0|[1-9]\\d*`,M=`[0-9]+`,He=`\\d*[a-zA-Z-][a-zA-Z0-9-]*`,Ue=`(?:${M}|${He})`,We=`(?:-?(${Ue}(?:\\.${Ue})*))`,Ge=`(?:${j}|${He})`,Ke=`(?:-(${Ge}(?:\\.${Ge})*))`,qe=`${j}|x|X|\\*`,N=`[v=\\s]*(${qe})(?:\\.(${qe})(?:\\.(${qe})(?:${Ke})?${Ve}?)?)?`,Je=`^\\s*(${N})\\s+-\\s+(${N})\\s*$`,Ye=`[v=\\s]*${`(${M})\\.(${M})\\.(${M})`}${We}?${Ve}?`,Xe=`((?:<|>)?=?)`,Ze=`(\\s*)${Xe}\\s*(${Ye}|${N})`,Qe=`(?:~>?)`,$e=`(\\s*)${Qe}\\s+`,et=`(?:\\^)`,tt=`(\\s*)${et}\\s+`,nt=`(<|>)?=?\\s*\\*`,rt=`^${et}${N}$`,it=`v?${`(${j})\\.(${j})\\.(${j})`}${Ke}?${Ve}?`,at=`^${Qe}${N}$`,ot=`^${Xe}\\s*${N}$`,st=`^${Xe}\\s*(${it})$|^$`,ct=`^\\s*>=\\s*0.0.0\\s*$`;function P(e){return new RegExp(e)}function F(e){return!e||e.toLowerCase()===`x`||e===`*`}function lt(...e){return t=>e.reduce((e,t)=>t(e),t)}function ut(e){return e.match(P(st))}function dt(e,t,n,r){let i=`${e}.${t}.${n}`;return r?`${i}-${r}`:i}function ft(e){return e.replace(P(Je),(e,t,n,r,i,a,o,s,c,l,u,d)=>(t=F(n)?``:F(r)?`>=${n}.0.0`:F(i)?`>=${n}.${r}.0`:`>=${t}`,s=F(c)?``:F(l)?`<${Number(c)+1}.0.0-0`:F(u)?`<${c}.${Number(l)+1}.0-0`:d?`<=${c}.${l}.${u}-${d}`:`<=${s}`,`${t} ${s}`.trim()))}function pt(e){return e.replace(P(Ze),`$1$2$3`)}function mt(e){return e.replace(P($e),`$1~`)}function ht(e){return e.replace(P(tt),`$1^`)}function gt(e){return e.trim().split(/\s+/).map(e=>e.replace(P(rt),(e,t,n,r,i)=>F(t)?``:F(n)?`>=${t}.0.0 <${Number(t)+1}.0.0-0`:F(r)?t===`0`?`>=${t}.${n}.0 <${t}.${Number(n)+1}.0-0`:`>=${t}.${n}.0 <${Number(t)+1}.0.0-0`:i?t===`0`?n===`0`?`>=${t}.${n}.${r}-${i} <${t}.${n}.${Number(r)+1}-0`:`>=${t}.${n}.${r}-${i} <${t}.${Number(n)+1}.0-0`:`>=${t}.${n}.${r}-${i} <${Number(t)+1}.0.0-0`:t===`0`?n===`0`?`>=${t}.${n}.${r} <${t}.${n}.${Number(r)+1}-0`:`>=${t}.${n}.${r} <${t}.${Number(n)+1}.0-0`:`>=${t}.${n}.${r} <${Number(t)+1}.0.0-0`)).join(` `)}function _t(e){return e.trim().split(/\s+/).map(e=>e.replace(P(at),(e,t,n,r,i)=>F(t)?``:F(n)?`>=${t}.0.0 <${Number(t)+1}.0.0-0`:F(r)?`>=${t}.${n}.0 <${t}.${Number(n)+1}.0-0`:i?`>=${t}.${n}.${r}-${i} <${t}.${Number(n)+1}.0-0`:`>=${t}.${n}.${r} <${t}.${Number(n)+1}.0-0`)).join(` `)}function vt(e){return e.split(/\s+/).map(e=>e.trim().replace(P(ot),(e,t,n,r,i,a)=>{let o=F(n),s=o||F(r),c=s||F(i);return t===`=`&&c&&(t=``),a=``,o?t===`>`||t===`<`?`<0.0.0-0`:`*`:t&&c?(s&&(r=0),i=0,t===`>`?(t=`>=`,s?(n=Number(n)+1,r=0,i=0):(r=Number(r)+1,i=0)):t===`<=`&&(t=`<`,s?n=Number(n)+1:r=Number(r)+1),t===`<`&&(a=`-0`),`${t+n}.${r}.${i}${a}`):s?`>=${n}.0.0${a} <${Number(n)+1}.0.0-0`:c?`>=${n}.${r}.0${a} <${n}.${Number(r)+1}.0-0`:e})).join(` `)}function yt(e){return e.trim().replace(P(nt),``)}function bt(e){return e.trim().replace(P(ct),``)}function xt(e,t){return e=Number(e)||e,t=Number(t)||t,e>t?1:e===t?0:-1}function St(e,t){let{preRelease:n}=e,{preRelease:r}=t;if(n===void 0&&r)return 1;if(n&&r===void 0)return-1;if(n===void 0&&r===void 0)return 0;for(let e=0,t=n.length;e<=t;e++){let t=n[e],i=r[e];if(t!==i)return t===void 0&&i===void 0?0:t?i?xt(t,i):-1:1}return 0}function Ct(e,t){return xt(e.major,t.major)||xt(e.minor,t.minor)||xt(e.patch,t.patch)||St(e,t)}function wt(e,t){return e.version===t.version}function Tt(e,t){switch(e.operator){case``:case`=`:return wt(e,t);case`>`:return Ct(e,t)<0;case`>=`:return wt(e,t)||Ct(e,t)<0;case`<`:return Ct(e,t)>0;case`<=`:return wt(e,t)||Ct(e,t)>0;case void 0:return!0;default:return!1}}function Et(e){return lt(gt,_t,vt,yt)(e)}function Dt(e){return lt(ft,pt,mt,ht)(e.trim()).split(/\s+/).join(` `)}function I(e,t){if(!e)return!1;let n=ut(e);if(!n)return!1;let[,r,,i,a,o,s]=n,c={operator:r,version:dt(i,a,o,s),major:i,minor:a,patch:o,preRelease:s==null?void 0:s.split(`.`)},l=t.split(`||`);for(let e of l){let t=e.trim();if(!t||t===`*`||t===`x`)return!0;try{let e=Dt(t);if(!e.trim())return!0;let n=e.split(` `).map(e=>Et(e)).join(` `);if(!n.trim())return!0;let r=n.split(/\s+/).map(e=>bt(e)).filter(Boolean);if(r.length===0)continue;let i=!0;for(let e of r){let t=ut(e);if(!t){i=!1;break}let[,n,,r,a,o,s]=t;if(!Tt({operator:n,version:dt(r,a,o,s),major:r,minor:a,patch:o,preRelease:s==null?void 0:s.split(`.`)},c)){i=!1;break}}if(i)return!0}catch(e){console.error(`[semver] Error processing range part "${t}":`,e);continue}}return!1}var Ot=`default`,kt=`global`;function At(e,t,r,i){var a,o;let s;return s=`get`in e?e.get:`lib`in e?()=>Promise.resolve(e.lib):()=>Promise.resolve(()=>{x(`Cannot get shared "${r}" from "${t}": neither "get" nor "lib" is provided in the share config.`)}),(a=e.shareConfig)!=null&&a.eager&&(o=e.treeShaking)!=null&&o.mode&&x(`Invalid shared config for "${r}" from "${t}": cannot use both "eager: true" and "treeShaking.mode" simultaneously. Choose one strategy.`),{deps:[],useIn:[],from:t,loading:null,...e,shareConfig:{requiredVersion:`^${e.version}`,singleton:!1,eager:!1,strictVersion:!1,...e.shareConfig},get:s,loaded:e!=null&&e.loaded||`lib`in e?!0:void 0,version:e.version??`0`,scope:Array.isArray(e.scope)?e.scope:[e.scope??`default`],strategy:(e.strategy??i)||`version-first`,treeShaking:e.treeShaking?{...e.treeShaking,mode:e.treeShaking.mode??`server-calc`,status:e.treeShaking.status??n.UNKNOWN,useIn:[]}:void 0}}function jt(e,t){let n=t.shared||{},r=t.name,i=Object.keys(n).reduce((e,i)=>{let a=ye(n[i]);return e[i]=e[i]||[],a.forEach(n=>{e[i].push(At(n,r,i,t.shareStrategy))}),e},{}),a={...e.shared};return Object.keys(i).forEach(e=>{a[e]?i[e].forEach(t=>{a[e].find(e=>e.version===t.version)||a[e].push(t)}):a[e]=i[e]}),{allShareInfos:a,newShareInfos:i}}function L(e,t){if(!e)return!1;let{status:r,mode:i}=e;return r===n.NO_USE?!1:r===n.CALCULATED?!0:i===`runtime-infer`?!t||Pt(e,t):!1}function R(e,t){let n=e=>{if(!Number.isNaN(Number(e))){let t=e.split(`.`),n=e;for(let e=0;e<3-t.length;e++)n+=`.0`;return n}return e};return!!I(n(e),`<=${n(t)}`)}var z=(e,t)=>{let n=t||function(e,t){return R(e,t)};return Object.keys(e).reduce((e,t)=>!e||n(e,t)||e===`0`?t:e,0)},Mt=e=>!!e.loaded||typeof e.lib==`function`,Nt=e=>!!e.loading,Pt=(e,t)=>{if(!e||!t)return!1;let{usedExports:n}=e;return n?!!t.every(e=>n.includes(e)):!1};function Ft(e,t,n,r){let i=e[t][n],a=``,o=L(r),s=function(e,t){return o?i[e].treeShaking?i[t].treeShaking?!Mt(i[e].treeShaking)&&R(e,t):!1:!0:!Mt(i[e])&&R(e,t)};if(o){if(a=z(e[t][n],s),a)return{version:a,useTreesShaking:o};o=!1}return{version:z(e[t][n],s),useTreesShaking:o}}var B=e=>Mt(e)||Nt(e);function It(e,t,n,r){let i=e[t][n],a=``,o=L(r),s=function(e,t){if(o){if(!i[e].treeShaking)return!0;if(!i[t].treeShaking)return!1;if(B(i[t].treeShaking))return!B(i[e].treeShaking)||!!R(e,t);if(B(i[e].treeShaking))return!1}return B(i[t])?!B(i[e])||!!R(e,t):!B(i[e])&&R(e,t)};if(o){if(a=z(e[t][n],s),a)return{version:a,useTreesShaking:o};o=!1}return{version:z(e[t][n],s),useTreesShaking:o}}function Lt(e){return e===`loaded-first`?It:Ft}function V(e,t,n,r,i){if(!e)return;let{shareConfig:a,scope:o=Ot,strategy:s,treeShaking:c}=n,l=Array.isArray(o)?o:[o];for(let o of l)if(a&&e[o]&&e[o][t]){let{requiredVersion:l}=a,{version:u,useTreesShaking:d}=Lt(s)(e,o,t,c),f={shareScopeMap:e,scope:o,pkgName:t,version:u,GlobalFederation:E.__FEDERATION__,shareInfo:n,resolver:()=>{let r=e[o][t][u];if(a.singleton){if(typeof l==`string`&&!I(u,l)){let e=`Version ${u} from ${u&&r.from} of shared singleton module ${t} does not satisfy the requirement of ${n.from} which needs ${l})`;a.strictVersion?x(e):S(e)}return{shared:r,useTreesShaking:d}}{if(l===!1||l===`*`||I(u,l))return{shared:r,useTreesShaking:d};let n=L(c);if(n){for(let[r,i]of Object.entries(e[o][t]))if(L(i.treeShaking,c==null?void 0:c.usedExports)&&I(r,l))return{shared:i,useTreesShaking:n}}for(let[n,r]of Object.entries(e[o][t]))if(I(n,l))return{shared:r,useTreesShaking:!1}}},loadContext:i};return(r.emit(f)||f).resolver()}}function Rt(){return E.__FEDERATION__.__SHARE__}function zt(e){let{pkgName:t,extraOptions:n,shareInfos:r}=e,i=(n==null?void 0:n.resolver)??(e=>{if(!e)return;let t={};return e.forEach(e=>{t[e.version]=e}),t[z(t,function(e,n){return!Mt(t[e])&&R(e,n)})]}),a=e=>typeof e==`object`&&!!e&&!Array.isArray(e),o=(...e)=>{let t={};for(let n of e)if(n)for(let[e,r]of Object.entries(n)){let n=t[e];a(n)&&a(r)?t[e]=o(n,r):r!==void 0&&(t[e]=r)}return t};return o(i(r[t]),n==null?void 0:n.customShareInfo)}var H=(e,t)=>{e.useIn||=[],pe(e.useIn,t)};function Bt(e,t){return t&&e.treeShaking?e.treeShaking:e}function Vt(e,t){return!t||t===`.`?e:`${e}/${t.replace(/^\.\//,``)}`}function Ht(e,t){for(let n of e){let e=t.startsWith(n.name),r=t.replace(n.name,``);if(e){if(r.startsWith(`/`)){let e=n.name;return r=`.${r}`,{pkgNameOrAlias:e,expose:r,remote:n}}if(r===``)return{pkgNameOrAlias:n.name,expose:`.`,remote:n}}let i=n.alias&&t.startsWith(n.alias),a=n.alias&&t.replace(n.alias,``);if(n.alias&&i){if(a&&a.startsWith(`/`)){let e=n.alias;return a=`.${a}`,{pkgNameOrAlias:e,expose:a,remote:n}}if(a===``)return{pkgNameOrAlias:n.alias,expose:`.`,remote:n}}}}function Ut(e,t){for(let n of e)if(t===n.name||n.alias&&t===n.alias)return n}var Wt=`RUNTIME-001`,Gt=`RUNTIME-002`,Kt=`RUNTIME-003`,qt=`RUNTIME-004`,Jt=`RUNTIME-005`,Yt=`RUNTIME-006`,Xt=`RUNTIME-007`,Zt=`RUNTIME-008`,Qt=`RUNTIME-009`,$t=`RUNTIME-010`,en=`RUNTIME-011`,tn=`RUNTIME-012`,nn=`RUNTIME-013`,rn=`RUNTIME-014`,an=`RUNTIME-015`,on=`TYPE-001`,sn=`BUILD-001`,cn=`BUILD-002`,U={[Wt]:`Failed to get remoteEntry exports.`,[Gt]:`The remote entry interface does not contain "init"`,[Kt]:`Failed to get manifest.`,[qt]:`Failed to locate remote.`,[Jt]:`Invalid loadShareSync function call from bundler runtime`,[Yt]:`Invalid loadShareSync function call from runtime`,[Xt]:`Failed to get remote snapshot.`,[Zt]:`Failed to load script resources.`,[Qt]:`Please call createInstance first.`,[$t]:`The name option cannot be changed after initialization. If you want to create a new instance with a different name, please use "createInstance" api.`,[en]:`The remoteEntry URL is missing from the remote snapshot.`,[tn]:`The getter for the shared module is not a function. This may be caused by setting "shared.import: false" without the host providing the corresponding lib.`,[nn]:`The manifest is not a valid Module Federation manifest.`,[rn]:`The remote does not expose the requested module.`,[an]:`Remote container initialization failed.`},ln={[on]:`Failed to generate type declaration. Execute the below cmd to reproduce and fix the error.`},un={[sn]:`Failed to find expose module.`,[cn]:`PublicPath is required in prod mode.`};({...U,...ln,...un});var dn=`.then(callbacks[0]).catch(callbacks[1])`,fn=new WeakMap,pn=[`Failed to fetch dynamically imported module`,`Importing a module script failed`,`error loading dynamically imported module`];function mn(e){return e instanceof TypeError&&pn.some(t=>e.message.includes(t))}function hn(e){return e===`esm`||e===`module`}async function gn({entry:e,remoteEntryExports:t,name:n,getEntryUrl:r}){return new Promise((i,a)=>{let o=e=>{if(mn(e)){let t=e instanceof Error?e.message:String(e);try{x(Zt,U,{remoteName:n,resourceUrl:s},t)}catch(e){a(e);return}}a(e)},s=r?r(e):e;try{t?i(t):typeof FEDERATION_ALLOW_NEW_FUNCTION<`u`?Function(`callbacks`,`import("${s}")${dn}`)([i,o]):import(s).then(i).catch(o)}catch(e){x(`Failed to load ESM entry from "${s}". ${e instanceof Error?e.message:String(e)}`)}})}async function _n({entry:e,remoteEntryExports:t}){return new Promise((n,r)=>{try{t?n(t):typeof __system_context__>`u`?System.import(e).then(n).catch(r):Function(`callbacks`,`System.import("${e}")${dn}`)([n,r])}catch(t){x(`Failed to load SystemJS entry from "${e}". ${t instanceof Error?t.message:String(t)}`)}})}function vn(e,t,n){let{remoteEntryKey:r,entryExports:i}=Ne(e,t);return i||x(Wt,U,{remoteName:e,remoteEntryUrl:n,remoteEntryKey:r}),i}async function yn({name:e,globalName:t,entry:n,remoteInfo:r,loaderHook:i,getEntryUrl:a,resourceContext:o}){let{entryExports:s}=Ne(e,t);if(s)return s;let c=a?a(n):n;return ce(c,{attrs:{},createScriptHook:(e,t)=>{let n=i.lifecycle.createScript.emit({url:e,attrs:t,remoteInfo:r,resourceContext:o?{...o,url:e}:void 0});if(n&&(n instanceof HTMLScriptElement||`script`in n||`timeout`in n))return n}}).then(()=>vn(e,t,n),t=>{let n=t instanceof Error?t.message:String(t);x(Zt,U,{remoteName:e,resourceUrl:c},n)})}async function bn({remoteInfo:e,remoteEntryExports:t,loaderHook:n,getEntryUrl:r,resourceContext:i}){let{entry:a,entryGlobalName:o,name:s,type:c}=e;return hn(c)?gn({entry:a,remoteEntryExports:t,name:s,getEntryUrl:r}):c===`system`?_n({entry:a,remoteEntryExports:t}):yn({entry:a,globalName:o,name:s,remoteInfo:e,loaderHook:n,getEntryUrl:r,resourceContext:i})}function xn(e){let{entry:t,name:n}=e;return c(n,t)}async function Sn(e){let{origin:t,remoteEntryExports:n,remoteInfo:r,getEntryUrl:i,resourceContext:a,_inErrorHandling:o=!1}=e,s=xn(r);if(n)return await t.loaderHook.lifecycle.afterLoadEntry.emit({origin:t,remoteInfo:r,remoteEntryExports:n,resourceContext:a,cached:!0}),n;if(!O[s]){let e=t.remoteHandler.hooks.lifecycle.loadEntry,c=t.loaderHook,l=e.emit({origin:t,loaderHook:c,remoteInfo:r,remoteEntryExports:n,resourceContext:a}).then(e=>e||bn({remoteInfo:r,remoteEntryExports:n,loaderHook:c,getEntryUrl:i,resourceContext:a})).then(async e=>(await t.loaderHook.lifecycle.afterLoadEntry.emit({origin:t,remoteInfo:r,remoteEntryExports:e,resourceContext:a}),e)).catch(async e=>{let i=e instanceof Error&&e.message.includes(`ScriptExecutionError`);if(e instanceof Error&&e.message.includes(`RUNTIME-008`)&&!i&&!o){let i=await t.loaderHook.lifecycle.loadEntryError.emit({getRemoteEntry:e=>Sn({...e,_inErrorHandling:!0}),origin:t,remoteInfo:r,remoteEntryExports:n,globalLoading:O,uniqueKey:s});if(i)return await t.loaderHook.lifecycle.afterLoadEntry.emit({origin:t,remoteInfo:r,remoteEntryExports:i,resourceContext:a,error:e,recovered:!0}),i}throw await t.loaderHook.lifecycle.afterLoadEntry.emit({origin:t,remoteInfo:r,resourceContext:a,error:e}),e});O[s]=l,l.then(void 0,()=>{O[s]===l&&delete O[s]}),fn.set(l,t)}let c=O[s];if(fn.get(c)!==t)try{let e=await c;return await t.loaderHook.lifecycle.afterLoadEntry.emit({origin:t,remoteInfo:r,remoteEntryExports:e,resourceContext:a}),e}catch(e){throw await t.loaderHook.lifecycle.afterLoadEntry.emit({origin:t,remoteInfo:r,resourceContext:a,error:e}),e}return c}function W(e){return{...e,entry:`entry`in e?e.entry:``,type:e.type||`global`,entryGlobalName:e.entryGlobalName||e.name,shareScope:e.shareScope||`default`}}function Cn(){return typeof FEDERATION_BUILD_IDENTIFIER<`u`?FEDERATION_BUILD_IDENTIFIER:``}function wn(e){let t=new Map;return[...e||[],...Fe()].forEach(e=>{e&&(b(ve(e),`Plugin configuration is invalid.`),b(e.name,`A name must be provided by the plugin.`),t.has(e.name)||t.set(e.name,e))}),Array.from(t.values())}function Tn(e,t){return t===void 0?e:{...t,name:e.name,version:e.version}}function En(e,t){let n=new Map;t.options.plugins.forEach(e=>{e&&n.set(e.name,e)});let r=[t.hooks,t.remoteHandler.hooks,t.sharedHandler.hooks,t.snapshotHandler.hooks,t.loaderHook,t.bridgeHook];return wn(e).forEach(e=>{var i;if(n.set(e.name,e),t.hooks.registerPlugins[e.name])return;let a=Tn(e,(i=e.apply)==null?void 0:i.call(e,t));r.forEach(e=>{e.applyPlugin(a)})}),Array.from(n.values())}function Dn(e){return{name:e.name,alias:e.alias,entry:`entry`in e?e.entry:void 0,version:`version`in e?e.version:void 0,type:e.type,entryGlobalName:e.entryGlobalName,shareScope:e.shareScope}}function G(e){var t,n;let r={};for(let[t,n]of Object.entries(e.shared)){var i,a,o,s;let e=n[0];e&&(r[t]={version:e.version,singleton:(i=e.shareConfig)==null?void 0:i.singleton,requiredVersion:((a=e.shareConfig)==null?void 0:a.requiredVersion)===!1?!1:(o=e.shareConfig)==null?void 0:o.requiredVersion,eager:e.eager,strictVersion:(s=e.shareConfig)==null?void 0:s.strictVersion})}return{project:{name:e.name,mfRole:((t=e.remotes)==null?void 0:t.length)>0?`host`:`unknown`},mfConfig:{name:e.name,remotes:((n=e.remotes)==null?void 0:n.map(Dn))??[],shared:r}}}function On(e){return{resourceCategory:`sync`,share:!0,depsRemote:!0,recordPreloadedAssets:!0,...e}}function kn(e,t){return t.map(t=>{let n=Ut(e,t.nameOrAlias);return b(n,`Unable to preload ${t.nameOrAlias} as it is not included in ${!n&&d({remoteInfo:n,remotes:e})}`),{remote:n,preloadConfig:On(t)}})}function An(e){return e?e.map(e=>e===`.`?e:e.startsWith(`./`)?e.replace(`./`,``):e):[]}function jn(e){return e instanceof Error?e.message.includes(`timed out`)||e.name.includes(`Timeout`):!1}function K(e,t,n,r){return{url:t,status:n,resourceType:e.resourceType,initiator:e.initiator,id:e.id,error:r}}function Mn(e,t,n,r){return n?Re(t)?Promise.resolve(K(e,t,`cached`)):(ze(t),r()):r()}async function Nn(e,t,n,r){let i=e.moduleCache.get(n.name),a=n.entry;if(i!=null&&i.remoteEntryExports)return K(r,a,`cached`);try{if(!await Sn({origin:e,remoteInfo:n,remoteEntryExports:i==null?void 0:i.remoteEntryExports,resourceContext:{...r,url:a}}))throw Error(`Failed to load remoteEntry "${a}".`);return K(r,a,`success`)}catch(e){return K(r,a,jn(e)?`timeout`:`error`,e)}}function Pn({host:e,remoteInfo:t,url:n,attrs:r,context:i,needDeleteLink:a}){return new Promise(o=>{let{link:s,needAttach:c}=se({url:n,cb:()=>{o(K(i,n,c?`success`:`cached`))},onErrorCallback:e=>{o(K(i,n,jn(e)?`timeout`:`error`,e))},attrs:r,createLinkHook:(n,r)=>{let a=e.loaderHook.lifecycle.createLink.emit({url:n,attrs:r,remoteInfo:t,resourceContext:{...i,url:n}});return a instanceof HTMLLinkElement,a},needDeleteLink:a});c&&document.head.appendChild(s)})}function Fn({host:e,remoteInfo:t,url:n,attrs:r,context:i}){return new Promise(a=>{let{script:o,needAttach:s}=oe({url:n,cb:()=>{a(K(i,n,s?`success`:`cached`))},onErrorCallback:e=>{a(K(i,n,jn(e)?`timeout`:`error`,e))},attrs:r,createScriptHook:(n,r)=>{let a=e.loaderHook.lifecycle.createScript.emit({url:n,attrs:r,remoteInfo:t,resourceContext:{...i,url:n}});return a instanceof HTMLScriptElement,a},needDeleteScript:!0});s&&document.head.appendChild(o)})}function q(e,t){return{...e,resourceType:t}}function In(e,t,n,r=!0,i={initiator:`preloadRemote`,id:e.name},a=!0){let{cssAssets:o,jsAssetsWithoutEntry:s,entryAssets:c}=n,l=[];if(t.options.inBrowser){if(c.forEach(n=>{let{moduleInfo:r}=n;l.push(Nn(t,e,r,q(i,`remoteEntry`)))}),r){let n={rel:`preload`,as:`style`};o.forEach(r=>{let o=q(i,`css`);l.push(Mn(o,r,a,()=>Pn({host:t,remoteInfo:e,url:r,attrs:n,context:o})))})}else{let n={rel:`stylesheet`,type:`text/css`};o.forEach(r=>{let o=q(i,`css`);l.push(Mn(o,r,a,()=>Pn({host:t,remoteInfo:e,url:r,attrs:n,needDeleteLink:!1,context:o})))})}let n=Fn,u={fetchpriority:`high`,type:`text/javascript`};r?(n=Pn,u={rel:`preload`,as:`script`}):hn(e.type)&&(n=Pn,u={rel:`modulepreload`,fetchpriority:`high`}),s.forEach(r=>{let o=q(i,`js`);l.push(Mn(o,r,a,()=>n({host:t,remoteInfo:e,url:r,attrs:u,context:o})))})}return Promise.all(l)}var Ln={global:{Global:E,nativeGlobal:T,resetFederationGlobalInfo:Te,setGlobalFederationInstance:Ee,getGlobalFederationConstructor:De,setGlobalFederationConstructor:Oe,getInfoWithoutType:k,getGlobalSnapshot:ke,getTargetSnapshotInfoByModuleInfo:Ae,getGlobalSnapshotInfoByModuleInfo:A,setGlobalSnapshotInfoByModuleInfo:je,addGlobalSnapshot:Me,getRemoteEntryExports:Ne,registerGlobalPlugins:Pe,getGlobalHostPlugins:Fe,getPreloaded:Ie,setPreloaded:Le},share:{getRegisteredShare:V,getGlobalShareScope:Rt},utils:{matchRemoteWithNameAndExpose:Ht,preloadAssets:In,getRemoteInfo:W}};function Rn(e){if(!e||!(`modules`in e)||!Array.isArray(e.modules))return;let t=e.modules.map(e=>e.moduleName).filter(Boolean);return t.length?t.join(`,`):void 0}function zn(e,t,n){let r=t,i=Array.isArray(e.shareScope)?e.shareScope:[e.shareScope];i.length||i.push(`default`),i.forEach(e=>{r[e]||(r[e]={})});let a={version:e.version||``,shareScopeKeys:Array.isArray(e.shareScope)?i:e.shareScope||`default`};return Object.defineProperty(a,"shareScopeMap",{value:r,enumerable:!1}),{remoteEntryInitOptions:a,shareScope:r[i[0]],initScope:n??[]}}var Bn=class{constructor({remoteInfo:e,host:t}){this.inited=!1,this.initing=!1,this.lib=void 0,this.remoteInfo=e,this.host=t}async getEntry(e,t){let n=t||{initiator:`loadRemote`,id:Vt(this.remoteInfo.name,e),resourceType:`remoteEntry`,url:this.remoteInfo.entry,expose:e},r=await Sn({origin:this.host,remoteInfo:this.remoteInfo,remoteEntryExports:this.remoteEntryExports,resourceContext:n});return b(r,`remoteEntryExports is undefined \n ${d(this.remoteInfo)}`),this.remoteEntryExports=r,this.remoteEntryExports}async init(e,t,n,r,i){let a=await this.getEntry(r,i);if(this.inited)return await this.host.loaderHook.lifecycle.afterInitRemote.emit({id:e,remoteInfo:this.remoteInfo,remoteSnapshot:t,remoteEntryExports:a,cached:!0,origin:this.host}),a;if(this.initPromise){try{await this.initPromise,await this.host.loaderHook.lifecycle.afterInitRemote.emit({id:e,remoteInfo:this.remoteInfo,remoteSnapshot:t,remoteEntryExports:a,cached:!0,origin:this.host})}catch(n){throw await this.host.loaderHook.lifecycle.afterInitRemote.emit({id:e,remoteInfo:this.remoteInfo,remoteSnapshot:t,remoteEntryExports:a,error:n,cached:!0,origin:this.host}),n}return a}this.initing=!0,this.initPromise=(async()=>{await this.host.loaderHook.lifecycle.beforeInitRemote.emit({id:e,remoteInfo:this.remoteInfo,remoteSnapshot:t,origin:this.host});let{remoteEntryInitOptions:r,shareScope:i,initScope:o}=zn(this.remoteInfo,this.host.shareScopeMap,n),s=await this.host.hooks.lifecycle.beforeInitContainer.emit({shareScope:i,remoteEntryInitOptions:r,initScope:o,remoteInfo:this.remoteInfo,origin:this.host});(a==null?void 0:a.init)===void 0&&x(Gt,U,{hostName:this.host.name,remoteName:this.remoteInfo.name,remoteEntryUrl:this.remoteInfo.entry,remoteEntryKey:this.remoteInfo.entryGlobalName},void 0,G(this.host.options));try{await a.init(s.shareScope,s.initScope,s.remoteEntryInitOptions)}catch(e){x(an,U,{hostName:this.host.name,remoteName:this.remoteInfo.name,remoteEntryUrl:this.remoteInfo.entry,remoteEntryKey:this.remoteInfo.entryGlobalName,shareScope:this.remoteInfo.shareScope},`${e}`,G(this.host.options))}await this.host.hooks.lifecycle.initContainer.emit({...s,id:e,remoteSnapshot:t,remoteEntryExports:a}),this.inited=!0})();try{await this.initPromise,await this.host.loaderHook.lifecycle.afterInitRemote.emit({id:e,remoteInfo:this.remoteInfo,remoteSnapshot:t,remoteEntryExports:a,origin:this.host})}catch(n){throw await this.host.loaderHook.lifecycle.afterInitRemote.emit({id:e,remoteInfo:this.remoteInfo,remoteSnapshot:t,remoteEntryExports:a,error:n,origin:this.host}),n}finally{this.initing=!1,this.initPromise=void 0}return a}async get(e,t,n,r){let{loadFactory:i=!0}=n||{loadFactory:!0},a=await this.init(e,r,void 0,t);this.lib=a,await this.host.loaderHook.lifecycle.beforeGetExpose.emit({id:e,expose:t,moduleInfo:this.remoteInfo,remoteEntryExports:a,origin:this.host});let o;try{let n=await this.host.loaderHook.lifecycle.getModuleFactory.emit({remoteEntryExports:a,expose:t,moduleInfo:this.remoteInfo});o=typeof n==`function`?n:void 0,o||=await a.get(t),o||x(rn,U,{hostName:this.host.name,remoteName:this.remoteInfo.name,remoteEntryUrl:this.remoteInfo.entry,expose:t,requestId:e,availableExposes:Rn(r)},void 0,G(this.host.options)),await this.host.loaderHook.lifecycle.afterGetExpose.emit({id:e,expose:t,moduleInfo:this.remoteInfo,remoteEntryExports:a,moduleFactory:o,origin:this.host})}catch(n){throw await this.host.loaderHook.lifecycle.afterGetExpose.emit({id:e,expose:t,moduleInfo:this.remoteInfo,remoteEntryExports:a,error:n,origin:this.host}),n}let s=xe(this.remoteInfo.name,t),c=this.wraperFactory(o,s);if(!i)return c;await this.host.loaderHook.lifecycle.beforeExecuteFactory.emit({id:e,expose:t,moduleInfo:this.remoteInfo,loadFactory:i,origin:this.host});try{let n=await c();return await this.host.loaderHook.lifecycle.afterExecuteFactory.emit({id:e,expose:t,moduleInfo:this.remoteInfo,loadFactory:i,exposeModule:n,origin:this.host}),n}catch(n){throw await this.host.loaderHook.lifecycle.afterExecuteFactory.emit({id:e,expose:t,moduleInfo:this.remoteInfo,loadFactory:i,error:n,origin:this.host}),n}}wraperFactory(e,t){function n(e,t){e&&typeof e==`object`&&Object.isExtensible(e)&&!Object.getOwnPropertyDescriptor(e,Symbol.for(`mf_module_id`))&&Object.defineProperty(e,Symbol.for(`mf_module_id`),{value:t,enumerable:!1})}return()=>{let r=e();return r instanceof Promise?r.then(e=>(n(e,t),e)):(n(r,t),r)}}},J=class{constructor(e){this.registerPlugins={},this.lifecycle=e,this.lifecycleKeys=Object.keys(e)}applyPlugin(e){b(ve(e),`Plugin configuration is invalid.`);let t=e.name;b(t,`A name must be provided by the plugin.`),this.registerPlugins[t]||(this.registerPlugins[t]=e,this.lifecycleKeys.forEach(t=>{let n=e[t];n&&this.lifecycle[t].on(n)}))}removePlugin(e){b(e,`A name is required.`);let t=this.registerPlugins[e];b(t,`The plugin "${e}" is not registered.`),this.lifecycleKeys.forEach(e=>{let n=t[e];n&&this.lifecycle[e].remove(n)}),delete this.registerPlugins[e]}},Y=class{constructor(e){this.type=``,this.listeners=new Set,e&&(this.type=e)}on(e){typeof e==`function`&&this.listeners.add(e)}once(e){let t=this;this.on(function n(...r){return t.remove(n),e.apply(null,r)})}emit(...e){let t;return this.listeners.size>0&&this.listeners.forEach(n=>{let r=n(...e);r!==void 0&&(t=r)}),t}remove(e){this.listeners.delete(e)}removeAll(){this.listeners.clear()}},X=class extends Y{emit(...e){let t,n=Array.from(this.listeners);if(n.length>0){let r=0,i=t=>t===!1?!1:r<n.length?Promise.resolve(n[r++].apply(null,e)).then(n=>n===void 0||e.length===1&&n===e[0]?i(t):i(n)):t;t=i()}return Promise.resolve(t)}};function Vn(e,t){if(!ge(t))return!1;if(e!==t){for(let n in e)if(!(n in t))return!1}return!0}var Z=class extends Y{constructor(e){super(),this.onerror=x,this.type=e}emit(e){ge(e)||x(`The data for the "${this.type}" hook should be an object.`);for(let t of this.listeners)try{let n=t(e);if(n===void 0)continue;if(Vn(e,n))e=n;else{this.onerror(`A plugin returned an unacceptable value for the "${this.type}" type.`);break}}catch(e){S(e),this.onerror(e)}return e}},Q=class extends Y{constructor(e){super(),this.onerror=x,this.type=e}emit(e){ge(e)||x(`The response data for the "${this.type}" hook must be an object.`);let t=Array.from(this.listeners);if(t.length>0){let n=0,r=t=>(S(t),this.onerror(t),e),i=a=>{if(a!==void 0&&Vn(e,a))e=a;else if(a!==void 0)return this.onerror(`A plugin returned an incorrect value for the "${this.type}" type.`),e;if(n<t.length)try{return Promise.resolve(t[n++](e)).then(i,r)}catch(e){return r(e)}return e};return Promise.resolve(i(e))}return Promise.resolve(e)}},$=`Remote loading is disabled by experiments.optimization.disableRemote.`,Hn=class{constructor(){this.hooks=new J({})}formatAndRegisterRemote(){return[]}loadRemote(){throw Error($)}preloadRemote(){throw Error($)}registerRemotes(){throw Error($)}getRemoteModuleAndOptions(){throw Error($)}initRawContainer(){throw Error($)}};function Un(e,t){let n=be(t);n.url||x(en,U,{remoteName:e.name});let r=l(t,n.url);e.type=n.type,e.entryGlobalName=n.globalName,e.entry=r,e.version=t.version,e.buildVersion=t.buildVersion}function Wn(){return{name:`snapshot-plugin`,async afterResolve(e){let{remote:t,pkgNameOrAlias:n,expose:r,origin:i,remoteInfo:a,id:o}=e;if(!me(t)||!he(t)){let{remoteSnapshot:s,globalSnapshot:c}=await i.snapshotHandler.loadRemoteSnapshotInfo({moduleInfo:t,id:Vt(t.name,r)});Un(a,s);let l=[{nameOrAlias:n,exposes:[r],resourceCategory:`sync`,share:!1,depsRemote:!1,recordPreloadedAssets:!0}];await i.remoteHandler.hooks.lifecycle.beforePreloadRemote.emit({preloadOps:l,options:i.options,origin:i});let[u]=l;if(u){let e={remote:t,preloadConfig:u},n=await i.remoteHandler.hooks.lifecycle.generatePreloadAssets.emit({origin:i,preloadOptions:e,remoteInfo:a,remote:t,remoteSnapshot:s,globalSnapshot:c});n&&In(a,i,n,!1,{initiator:`loadRemote`,id:o},u.recordPreloadedAssets).catch(()=>void 0)}return{...e,remoteSnapshot:s}}return e}}}function Gn(e){let t=e.split(`:`);return t.length===1?{name:t[0],version:void 0}:t.length===2?{name:t[0],version:t[1]}:{name:t[1],version:t[2]}}function Kn(e,t,n,r,i={},a){let{value:o}=k(e,C(t)),s=a||o;if(s&&!h(s)&&(n(s,t,r),s.remotesInfo)){let t=Object.keys(s.remotesInfo);for(let r of t){if(i[r])continue;i[r]=!0;let t=Gn(r),a=s.remotesInfo[r];Kn(e,{name:t.name,version:a.matchedVersion},n,!1,i,void 0)}}}var qn=(e,t)=>document.querySelector(`${e}[${e===`link`?`href`:`src`}="${t}"]`);function Jn(e,t,n,r,i){let a=[],o=[],s=[],c=new Set,u=new Set,{options:d}=e,{preloadConfig:f}=t,{depsRemote:p}=f;if(Kn(r,n,(t,n,r)=>{var i;let c;if(r)c=f;else if(Array.isArray(p)){let e=p.find(e=>e.nameOrAlias===n.name||e.nameOrAlias===n.alias);if(!e)return;c=On(e)}else if(p===!0)c=f;else return;let u=l(t,be(t).url);u&&s.push({name:n.name,moduleInfo:{name:n.name,entry:u,type:`remoteEntryType`in t?t.remoteEntryType:`global`,entryGlobalName:`globalName`in t?t.globalName:n.name,shareScope:``,version:`version`in t?t.version:void 0},url:u});let d=`modules`in t?t.modules:[],m=An(c.exposes);m.length&&`modules`in t&&(d=t==null||(i=t.modules)==null?void 0:i.reduce((e,t)=>((m==null?void 0:m.indexOf(t.moduleName))!==-1&&e.push(t),e),[]));function h(e){let n=e.map(e=>l(t,e));return c.filter?n.filter(c.filter):n}if(d){let r=d.length;for(let i=0;i<r;i++){let r=d[i],s=`${n.name}/${r.moduleName}`;e.remoteHandler.hooks.lifecycle.handlePreloadModule.emit({id:r.moduleName===`.`?n.name:s,name:n.name,remoteSnapshot:t,preloadConfig:c,remote:n,origin:e}),!Ie(s)&&(c.resourceCategory===`all`?(a.push(...h(r.assets.css.async)),a.push(...h(r.assets.css.sync)),o.push(...h(r.assets.js.async)),o.push(...h(r.assets.js.sync))):c.resourceCategory===`sync`&&(a.push(...h(r.assets.css.sync)),o.push(...h(r.assets.js.sync))),Le(s))}}},!0,{},i),i.shared&&i.shared.length>0){let t=(t,n)=>{let{shared:r}=V(e.shareScopeMap,n.sharedName,t,e.sharedHandler.hooks.lifecycle.resolveShare)||{};r&&typeof r.lib==`function`&&(n.assets.js.sync.forEach(e=>{c.add(e)}),n.assets.css.sync.forEach(e=>{u.add(e)}))};i.shared.forEach(e=>{var n;let r=(n=d.shared)==null?void 0:n[e.sharedName];if(!r)return;let i=e.version?r.find(t=>t.version===e.version):r;i&&ye(i).forEach(n=>{t(n,e)})})}let m=o.filter(e=>!c.has(e)&&!qn(`script`,e));return{cssAssets:a.filter(e=>!u.has(e)&&!qn(`link`,e)),jsAssetsWithoutEntry:m,entryAssets:s.filter(e=>!qn(`script`,e.url))}}var Yn=function(){return{name:`generate-preload-assets-plugin`,async generatePreloadAssets(e){let{origin:t,preloadOptions:n,remoteInfo:r,remote:i,globalSnapshot:a,remoteSnapshot:o}=e;return me(i)&&he(i)?{cssAssets:[],jsAssetsWithoutEntry:[],entryAssets:[{name:i.name,url:i.entry,moduleInfo:{name:r.name,entry:i.entry,type:r.type||`global`,entryGlobalName:``,shareScope:``}}]}:(Un(r,o),Jn(t,n,r,a,o))}}};function Xn(e,t){let n=A({name:t.name,version:t.options.version}),r=n&&`remotesInfo`in n&&n.remotesInfo&&k(n.remotesInfo,e.name).value;return r&&r.matchedVersion?{hostGlobalSnapshot:n,globalSnapshot:ke(),remoteSnapshot:A({name:e.name,version:r.matchedVersion})}:{hostGlobalSnapshot:void 0,globalSnapshot:ke(),remoteSnapshot:A({name:e.name,version:`version`in e?e.version:void 0})}}var Zn=class{constructor(e){this.loadingHostSnapshot=null,this.manifestCache=new Map,this.hooks=new J({beforeLoadRemoteSnapshot:new X(`beforeLoadRemoteSnapshot`),loadSnapshot:new Q(`loadGlobalSnapshot`),loadRemoteSnapshot:new Q(`loadRemoteSnapshot`),afterLoadSnapshot:new Q(`afterLoadSnapshot`),beforeLoadManifest:new X(`beforeLoadManifest`),afterLoadManifest:new X(`afterLoadManifest`)}),this.manifestLoading=E.__FEDERATION__.__MANIFEST_LOADING__,this.HostInstance=e,this.loaderHook=e.loaderHook}async loadRemoteSnapshotInfo({moduleInfo:e,id:t,initiator:n=`loadRemote`}){let{options:r}=this.HostInstance;await this.hooks.lifecycle.beforeLoadRemoteSnapshot.emit({options:r,moduleInfo:e,origin:this.HostInstance});let i=A({name:this.HostInstance.options.name,version:this.HostInstance.options.version});i||(i={version:this.HostInstance.options.version||``,remoteEntry:``,remotesInfo:{}},Me({[this.HostInstance.options.name]:i})),i&&`remotesInfo`in i&&!k(i.remotesInfo,e.name).value&&(`version`in e||`entry`in e)&&(i.remotesInfo={...i==null?void 0:i.remotesInfo,[e.name]:{matchedVersion:`version`in e?e.version:e.entry}});let{hostGlobalSnapshot:a,remoteSnapshot:o,globalSnapshot:s}=this.getGlobalRemoteInfo(e),{remoteSnapshot:c,globalSnapshot:l}=await this.hooks.lifecycle.loadSnapshot.emit({options:r,moduleInfo:e,hostGlobalSnapshot:a,remoteSnapshot:o,globalSnapshot:s}),u,d;if(c){if(h(c)){let r=c.remoteEntry,i=await this.loadManifestSnapshot(r,e,{},{initiator:n,id:t||e.name}),a=je({...e,entry:r},i);u=i,d=a}else{let{remoteSnapshot:t}=await this.hooks.lifecycle.loadRemoteSnapshot.emit({options:this.HostInstance.options,moduleInfo:e,remoteSnapshot:c,from:`global`});u=t,d=l}}else if(me(e)){let r=await this.loadManifestSnapshot(e.entry,e,{},{initiator:n,id:t||e.name}),i=je(e,r);u=r,d=i}else x(Xt,U,{remoteName:e.name,remoteVersion:e.version,hostName:this.HostInstance.options.name,globalSnapshot:JSON.stringify(l)},void 0,G(this.HostInstance.options));return await this.hooks.lifecycle.afterLoadSnapshot.emit({id:t,host:this.HostInstance,options:r,moduleInfo:e,remoteSnapshot:u}),{remoteSnapshot:u,globalSnapshot:d}}getGlobalRemoteInfo(e){return Xn(e,this.HostInstance)}async getManifestJson(e,t,n,r){return(async()=>{let n=W(t),i=this.manifestCache.get(e);if(i)return await this.hooks.lifecycle.afterLoadManifest.emit({manifestUrl:e,moduleInfo:t,resourceOptions:r,manifestJson:i,cached:!0,origin:this.HostInstance}),i;await this.hooks.lifecycle.beforeLoadManifest.emit({manifestUrl:e,moduleInfo:t,resourceOptions:r,origin:this.HostInstance});let a,o,s=!1;try{let t=await this.loaderHook.lifecycle.fetch.emit(e,{},n,r?{...r,url:e,resourceType:`manifest`}:void 0);t&&t instanceof Response||(t=await fetch(e,{})),a=t,i=await t.json()}catch(c){o=c,i=await this.HostInstance.remoteHandler.hooks.lifecycle.errorLoadRemote.emit({id:e,error:c,from:`runtime`,lifecycle:`afterResolve`,remote:n,origin:this.HostInstance}),i||(delete this.manifestLoading[e],await this.hooks.lifecycle.afterLoadManifest.emit({manifestUrl:e,moduleInfo:t,resourceOptions:r,response:a,error:c,origin:this.HostInstance}),x(Kt,U,{manifestUrl:e,moduleName:t.name,hostName:this.HostInstance.options.name},`${c}`,G(this.HostInstance.options))),s=!0}let c=[!i.metaData&&`metaData`,!i.exposes&&`exposes`,!i.shared&&`shared`].filter(Boolean),l=c.length>0?Error(`"${e}" is not a valid federation manifest for remote "${t.name}". Missing required fields: ${c.join(`, `)}.`):void 0;return l&&await this.HostInstance.remoteHandler.hooks.lifecycle.errorLoadRemote.emit({id:e,error:l,from:`runtime`,lifecycle:`afterResolve`,remote:n,origin:this.HostInstance}),await this.hooks.lifecycle.afterLoadManifest.emit({manifestUrl:e,moduleInfo:t,resourceOptions:r,manifestJson:i,response:a,error:l||o,recovered:l?void 0:s||void 0,origin:this.HostInstance}),l&&x(nn,U,{manifestUrl:e,moduleName:t.name,hostName:this.HostInstance.options.name,missingFields:c.join(`,`)},void 0,G(this.HostInstance.options)),this.manifestCache.set(e,i),i})()}async loadManifestSnapshot(e,t,n,r){let i=async()=>{let i=await this.getManifestJson(e,t,n,r),a=m(i,{version:e}),{remoteSnapshot:o}=await this.hooks.lifecycle.loadRemoteSnapshot.emit({options:this.HostInstance.options,moduleInfo:t,manifestJson:i,remoteSnapshot:a,manifestUrl:e,from:`manifest`});return o};return this.manifestLoading[e]||(this.manifestLoading[e]=i().then(e=>e)),this.manifestLoading[e]}},Qn=class{constructor(){this.hooks=new J({})}},$n=class{constructor(e){this.hooks=new J({beforeRegisterShare:new Z(`beforeRegisterShare`),afterRegisterShare:new Y(`afterRegisterShare`),afterResolve:new Q(`afterResolve`),beforeLoadShare:new Q(`beforeLoadShare`),loadShare:new X,afterLoadShare:new Y(`afterLoadShare`),errorLoadShare:new Y(`errorLoadShare`),resolveShare:new Z(`resolveShare`),initContainerShareScopeMap:new Z(`initContainerShareScopeMap`)}),this.host=e,this.shareScopeMap={},this.initTokens={},this._setGlobalShareScopeMap(e.options)}emitAfterRegisterShare(e,t){this.hooks.lifecycle.afterRegisterShare.emit({pkgName:e,...t,shareScopeMap:this.shareScopeMap,origin:this.host})}emitAfterLoadShare({lifecycle:e,pkgName:t,shareInfo:n,selectedShared:r,loadContext:i}){try{this.hooks.lifecycle.afterLoadShare.emit({pkgName:t,shareInfo:n,selectedShared:r,shared:this.host.options.shared,shareScopeMap:this.shareScopeMap,lifecycle:e,loadContext:i,origin:this.host})}catch(e){S(e)}}emitErrorLoadShare({lifecycle:e,pkgName:t,shareInfo:n,error:r,recovered:i,loadContext:a}){try{this.hooks.lifecycle.errorLoadShare.emit({pkgName:t,shareInfo:n,shared:this.host.options.shared,shareScopeMap:this.shareScopeMap,lifecycle:e,origin:this.host,error:r,recovered:i,loadContext:a})}catch(e){S(e)}}registerShared(e,t){let{newShareInfos:n,allShareInfos:r}=jt(e,t);return Object.keys(n).forEach(e=>{n[e].forEach(n=>{n.scope.forEach(r=>{var i,a;this.hooks.lifecycle.beforeRegisterShare.emit({origin:this.host,pkgName:e,shared:n});let o=(i=this.shareScopeMap[r])==null?void 0:i[e],s=o==null?void 0:o[n.version];o||this.setShared({pkgName:e,lib:n.lib,get:n.get,loaded:n.loaded||!!n.lib,shared:n,from:t.name}),this.emitAfterRegisterShare(e,{scope:r,shared:n,previousShared:s,registeredShared:(a=this.shareScopeMap[r])==null||(a=a[e])==null?void 0:a[n.version],trigger:`runtime`})})})}),{newShareInfos:n,allShareInfos:r}}async loadShare(e,t){let{host:n}=this,r=t==null?void 0:t.context,i=zt({pkgName:e,extraOptions:t,shareInfos:n.options.shared}),a=i;try{i!=null&&i.scope&&await Promise.all(i.scope.map(async e=>{await Promise.all(this.initializeSharing(e,{strategy:i.strategy,context:r}))}));let o=await this.hooks.lifecycle.beforeLoadShare.emit({pkgName:e,shareInfo:i,shared:n.options.shared,origin:n,loadContext:r});a=o.shareInfo,r=o.loadContext||r,b(a,`Cannot find shared "${e}" in host "${n.options.name}". Ensure the shared config for "${e}" is declared in the federation plugin options and the host has been initialized before loading shares.`);let s=a,{shared:c,useTreesShaking:l}=V(this.shareScopeMap,e,a,this.hooks.lifecycle.resolveShare,r)||{};if(c){let t=Bt(c,l);if(t.lib)return H(t,n.options.name),this.emitAfterLoadShare({lifecycle:`loadShare`,pkgName:e,shareInfo:s,selectedShared:c,loadContext:r}),t.lib;if(t.loading&&!t.loaded){let i=await t.loading;return t.loaded=!0,t.lib||=i,H(t,n.options.name),this.emitAfterLoadShare({lifecycle:`loadShare`,pkgName:e,shareInfo:s,selectedShared:c,loadContext:r}),i}{let i=(async()=>{let e=await t.get();return H(t,n.options.name),t.loaded=!0,t.lib=e,e})();this.setShared({pkgName:e,loaded:!1,shared:c,from:n.options.name,lib:null,loading:i,treeShaking:l?t:void 0});let a=await i;return this.emitAfterLoadShare({lifecycle:`loadShare`,pkgName:e,shareInfo:s,selectedShared:c,loadContext:r}),a}}{if(t!=null&&t.customShareInfo)return this.emitErrorLoadShare({lifecycle:`loadShare`,pkgName:e,shareInfo:s,recovered:!0,loadContext:r}),!1;let i=L(s.treeShaking),a=Bt(s,i),o=(async()=>{let t=await a.get();a.lib=t,a.loaded=!0,H(a,n.options.name);let{shared:i,useTreesShaking:o}=V(this.shareScopeMap,e,s,this.hooks.lifecycle.resolveShare,r)||{};if(i){let e=Bt(i,o);e.lib=t,e.loaded=!0,i.from=s.from}return t})();this.setShared({pkgName:e,loaded:!1,shared:s,from:n.options.name,lib:null,loading:o,treeShaking:i?a:void 0});let c=await o;return this.emitAfterLoadShare({lifecycle:`loadShare`,pkgName:e,shareInfo:s,selectedShared:s,loadContext:r}),c}}catch(t){throw this.emitErrorLoadShare({lifecycle:`loadShare`,pkgName:e,shareInfo:a,error:t,loadContext:r}),t}}initializeSharing(e=Ot,t){var n;let{host:r}=this,i=t==null?void 0:t.from,a=t==null?void 0:t.strategy,o=(t==null||(n=t.context)==null?void 0:n.trigger)||i||`runtime`,s=t==null?void 0:t.initScope,c=[];if(i!==`build`){let{initTokens:t}=this;s||=[];let n=t[e];if(n||=t[e]={from:this.host.name},s.indexOf(n)>=0)return c;s.push(n)}let l=this.shareScopeMap,u=r.options.name;l[e]||(l[e]={});let d=l[e],f=(t,n)=>{var r;let{version:i,eager:a}=n;d[t]=d[t]||{};let s=d[t],c=s[i],l=c&&Bt(c),f=!!(l&&(`eager`in l&&l.eager||`shareConfig`in l&&(r=l.shareConfig)!=null&&r.eager));(!l||l.strategy!==`loaded-first`&&!l.loaded&&(!a==!f?u>s[i].from:a))&&(s[i]=n),this.emitAfterRegisterShare(t,{scope:e,shared:n,previousShared:c,registeredShared:s[i],trigger:o})},p=async e=>{let{module:t}=await r.remoteHandler.getRemoteModuleAndOptions({id:e}),n,i={initiator:`loadShare`,id:e,resourceType:`remoteEntry`,url:t.remoteInfo.entry};try{n=await t.getEntry(void 0,i)}catch(i){if(n=await r.remoteHandler.hooks.lifecycle.errorLoadRemote.emit({id:e,error:i,from:`runtime`,lifecycle:`beforeLoadShare`,remote:t.remoteInfo,origin:r}),!n)return}finally{n!=null&&n.init&&!t.initing&&(t.remoteEntryExports=n,await t.init(void 0,void 0,s,void 0,i))}};return Object.keys(r.options.shared).forEach(t=>{r.options.shared[t].forEach(n=>{n.scope.includes(e)&&f(t,n)})}),(r.options.shareStrategy===`version-first`||a===`version-first`)&&r.options.remotes.forEach(t=>{t.shareScope===e&&c.push(p(t.name))}),c}loadShareSync(e,t){let{host:n}=this,r=t==null?void 0:t.context,i=zt({pkgName:e,extraOptions:t,shareInfos:n.options.shared});try{i!=null&&i.scope&&i.scope.forEach(e=>{this.initializeSharing(e,{strategy:i.strategy,from:t==null?void 0:t.from,context:r})});let{shared:a}=V(this.shareScopeMap,e,i,this.hooks.lifecycle.resolveShare,r)||{};if(a){if(typeof a.lib==`function`)return H(a,n.options.name),a.loaded||(a.loaded=!0,a.from===n.options.name&&(i.loaded=!0)),this.emitAfterLoadShare({lifecycle:`loadShareSync`,pkgName:e,shareInfo:i,selectedShared:a,loadContext:r}),a.lib;if(typeof a.get==`function`){let t=a.get();if(!(t instanceof Promise))return H(a,n.options.name),this.setShared({pkgName:e,loaded:!0,from:n.options.name,lib:t,shared:a}),this.emitAfterLoadShare({lifecycle:`loadShareSync`,pkgName:e,shareInfo:i,selectedShared:a,loadContext:r}),t}}if(i.lib)return i.loaded||=!0,this.emitAfterLoadShare({lifecycle:`loadShareSync`,pkgName:e,shareInfo:i,selectedShared:i,loadContext:r}),i.lib;if(i.get){let a=i.get();return a instanceof Promise&&x((t==null?void 0:t.from)===`build`?Jt:Yt,U,{hostName:n.options.name,sharedPkgName:e},void 0,G(n.options)),i.lib=a,this.setShared({pkgName:e,loaded:!0,from:n.options.name,lib:i.lib,shared:i}),this.emitAfterLoadShare({lifecycle:`loadShareSync`,pkgName:e,shareInfo:i,selectedShared:i,loadContext:r}),i.lib}x(Yt,U,{hostName:n.options.name,sharedPkgName:e},void 0,G(n.options))}catch(t){throw this.emitErrorLoadShare({lifecycle:`loadShareSync`,pkgName:e,shareInfo:i,error:t,loadContext:r}),t}}initShareScopeMap(e,t,n={}){let{host:r}=this;this.shareScopeMap[e]=t,this.hooks.lifecycle.initContainerShareScopeMap.emit({shareScope:t,options:r.options,origin:r,scopeName:e,hostShareScopeMap:n.hostShareScopeMap})}setShared({pkgName:e,shared:t,from:n,lib:r,loading:i,loaded:a,get:o,treeShaking:s}){let{version:c,scope:l=`default`,...u}=t,d=Array.isArray(l)?l:[l],f=e=>{let t=(e,t,n)=>{n&&!e[t]&&(e[t]=n)},n=s?e.treeShaking:e;t(n,`loaded`,a),t(n,`loading`,i),t(n,`get`,o),t(n,`lib`,r)};d.forEach(t=>{this.shareScopeMap[t]||(this.shareScopeMap[t]={}),this.shareScopeMap[t][e]||(this.shareScopeMap[t][e]={}),this.shareScopeMap[t][e][c]||(this.shareScopeMap[t][e][c]={version:c,scope:[t],...u,lib:r});let i=this.shareScopeMap[t][e][c];f(i),n&&i.from!==n&&(i.from=n)})}_setGlobalShareScopeMap(e){let t=Rt(),n=e.id||e.name;n&&!t[n]&&(t[n]=this.shareScopeMap)}},er=class{constructor(){this.shareScopeMap={},this.hooks=new J({afterResolve:new Q(`afterResolve`)})}registerShared(){return{newShareInfos:{},allShareInfos:{}}}loadShare(){throw Error(`Shared dependency loading is disabled by experiments.optimization.disableShared.`)}loadShareSync(){throw Error(`Shared dependency loading is disabled by experiments.optimization.disableShared.`)}initializeSharing(){return[]}initShareScopeMap(e,t){this.shareScopeMap[e]=t}},tr=class{constructor(e){this.hooks=new J({beforeRegisterRemote:new Z(`beforeRegisterRemote`),registerRemote:new Z(`registerRemote`),beforeRequest:new Q(`beforeRequest`),afterMatchRemote:new X(`afterMatchRemote`),onLoad:new X(`onLoad`),afterLoadRemote:new X(`afterLoadRemote`),handlePreloadModule:new Y(`handlePreloadModule`),errorLoadRemote:new X(`errorLoadRemote`),beforePreloadRemote:new X(`beforePreloadRemote`),generatePreloadAssets:new X(`generatePreloadAssets`),afterPreloadRemote:new X(`afterPreloadRemote`),loadEntry:new X}),this.host=e,this.idToRemoteMap={}}formatAndRegisterRemote(e,t){return(t.remotes||[]).reduce((e,t)=>(this.registerRemote(t,e,{force:!1}),e),e.remotes)}setIdToRemoteMap(e,t){let{remote:n,expose:r}=t,{name:i,alias:a}=n;if(this.idToRemoteMap[e]={name:n.name,expose:r},a&&e.startsWith(i)){let t=e.replace(i,a);this.idToRemoteMap[t]={name:n.name,expose:r}}else if(a&&e.startsWith(a)){let t=e.replace(a,i);this.idToRemoteMap[t]={name:n.name,expose:r}}}async loadRemote(e,t){let{host:n}=this,r=Ht(n.options.remotes,e),i=e,a=r==null?void 0:r.expose,o=r?W(r.remote):void 0,s;try{let{loadFactory:r=!0}=t||{loadFactory:!0},{module:c,moduleOptions:l,remoteMatchInfo:u}=await this.getRemoteModuleAndOptions({id:e}),{pkgNameOrAlias:d,remote:f,expose:p,id:m,remoteSnapshot:h}=u;i=m,a=p,o=W(f);let g=await c.get(m,p,t,h),_=await this.hooks.lifecycle.onLoad.emit({id:m,pkgNameOrAlias:d,expose:p,exposeModule:r?g:void 0,exposeModuleFactory:r?void 0:g,remote:f,options:l,moduleInstance:c,origin:n});return this.setIdToRemoteMap(e,u),s={id:i,expose:a,remote:o,options:t,origin:n},typeof _==`function`?_:g}catch(r){let{from:c=`runtime`}=t||{from:`runtime`},l;try{l=await this.hooks.lifecycle.errorLoadRemote.emit({id:e,error:r,from:c,lifecycle:`onLoad`,expose:a,remote:o,origin:n})}catch(e){throw s={id:i,expose:a,remote:o,options:t,error:e,origin:n},e}if(!l)throw s={id:i,expose:a,remote:o,options:t,error:r,origin:n},r;return s={id:i,expose:a,remote:o,options:t,error:r,origin:n,recovered:!0},l}finally{s&&await this.hooks.lifecycle.afterLoadRemote.emit(s)}}async preloadRemote(e){let{host:t}=this,n=[];await this.hooks.lifecycle.beforePreloadRemote.emit({preloadOps:e,options:t.options,origin:t});let r=kn(t.options.remotes,e),i=e=>{let{preloadConfig:t,remote:n}=e,r=t.exposes||[];return r.length?r.map(r=>({ops:{...e,preloadConfig:{...t,exposes:[r]}},id:Vt(n.name,r)})):[{ops:e,id:`${n.name}/*`}]},a;await Promise.all(r.flatMap(i).map(async e=>{let{ops:r,id:i}=e,{remote:a,preloadConfig:o}=r,s=W(a);try{let{globalSnapshot:e,remoteSnapshot:c}=await t.snapshotHandler.loadRemoteSnapshotInfo({moduleInfo:a,id:i,initiator:`preloadRemote`}),l=await this.hooks.lifecycle.generatePreloadAssets.emit({origin:t,preloadOptions:r,remote:a,remoteInfo:s,globalSnapshot:e,remoteSnapshot:c});if(!l)return;let u=await In(s,t,l,!0,{initiator:`preloadRemote`,id:i},o.recordPreloadedAssets);n.push({remote:a,remoteInfo:s,preloadConfig:o,id:i,results:u})}catch(e){n.push({remote:a,remoteInfo:s,preloadConfig:o,id:i,results:[{url:s.entry,status:`error`,resourceType:/\.json(?:$|[?#])/i.test(s.entry)?`manifest`:`remoteEntry`,initiator:`preloadRemote`,id:i,error:e}]})}}));let o=n.flatMap(e=>e.results.filter(e=>e.status===`error`||e.status===`timeout`));if(o.length>0&&(a=Error(`preloadRemote failed to load ${o.length} resource(s).`),Object.assign(a,{results:n,failedResults:o})),await this.hooks.lifecycle.afterPreloadRemote.emit({preloadOps:e,options:t.options,origin:t,results:n,error:a}),a)throw a}registerRemotes(e,t){let{host:n}=this;e.forEach(e=>{this.registerRemote(e,n.options.remotes,{force:t==null?void 0:t.force})})}initRawContainer(e,t,n){let{host:r}=this,i=new Bn({host:r,remoteInfo:W({name:e,entry:t})});return i.remoteEntryExports=n,r.moduleCache.set(e,i),i}async getRemoteModuleAndOptions(e){let{host:t}=this,{id:n}=e,r;try{r=await this.hooks.lifecycle.beforeRequest.emit({id:n,options:t.options,origin:t})}catch(e){if(r=await this.hooks.lifecycle.errorLoadRemote.emit({id:n,options:t.options,origin:t,from:`runtime`,error:e,lifecycle:`beforeRequest`}),!r)throw e}let{id:i}=r,a=Ht(t.options.remotes,i);if(!a)try{x(qt,U,{hostName:t.options.name,requestId:i},void 0,G(t.options))}catch(e){throw await this.hooks.lifecycle.afterMatchRemote.emit({id:i,options:t.options,error:e,origin:t}),e}let{remote:o}=a,s=W(o);await this.hooks.lifecycle.afterMatchRemote.emit({id:i,...a,options:t.options,remoteInfo:s,origin:t});let c=await t.sharedHandler.hooks.lifecycle.afterResolve.emit({id:i,...a,options:t.options,origin:t,remoteInfo:s}),{remote:l,expose:u}=c;b(l&&u,`The 'beforeRequest' hook was executed, but it failed to return the correct 'remote' and 'expose' values while loading ${i}.`);let d=t.moduleCache.get(l.name),f={host:t,remoteInfo:s};return d||(d=new Bn(f),t.moduleCache.set(l.name,d)),{module:d,moduleOptions:f,remoteMatchInfo:c}}registerRemote(e,t,n){let{host:r}=this,i=()=>{if(e.alias){let n=t.find(t=>{var n;return e.alias&&(t.name.startsWith(e.alias)||((n=t.alias)==null?void 0:n.startsWith(e.alias)))});b(!n,`The alias ${e.alias} of remote ${e.name} is not allowed to be the prefix of ${n&&n.name} name or alias`)}`entry`in e&&typeof window<`u`&&!e.entry.startsWith(`http`)&&(e.entry=new URL(e.entry,window.location.origin).href),e.shareScope||=Ot,e.type||=kt};this.hooks.lifecycle.beforeRegisterRemote.emit({remote:e,origin:r});let a=t.find(t=>t.name===e.name);if(!a)i(),t.push(e),this.hooks.lifecycle.registerRemote.emit({remote:e,origin:r});else{let o=[`The remote "${e.name}" is already registered.`,`Please note that overriding it may cause unexpected errors.`];n!=null&&n.force&&(this.removeRemote(a),i(),t.push(e),this.hooks.lifecycle.registerRemote.emit({remote:e,origin:r}),u(o.join(` `)))}}removeRemote(e){try{let{host:n}=this,{name:r}=e,i=n.options.remotes.findIndex(e=>e.name===r);i!==-1&&n.options.remotes.splice(i,1);let a=k(w.__FEDERATION__.moduleInfo,C(e)).key;delete w.__FEDERATION__.moduleInfo[a],`entry`in e&&(n.snapshotHandler.manifestCache.delete(e.entry),delete E.__FEDERATION__.__MANIFEST_LOADING__[e.entry]);let{hostGlobalSnapshot:o}=Xn(e,n);if(o){let t=o&&`remotesInfo`in o&&o.remotesInfo&&k(o.remotesInfo,e.name).key;t&&delete o.remotesInfo[t]}let s=n.moduleCache.get(e.name);if(s){var t;let r=s.remoteInfo,i=r.entryGlobalName;w[i]&&((t=Object.getOwnPropertyDescriptor(w,i))!=null&&t.configurable?delete w[i]:w[i]=void 0);let a=xn(s.remoteInfo);O[a]&&delete O[a];let o=r.buildVersion?c(r.name,r.buildVersion):r.name,l=w.__FEDERATION__.__INSTANCES__.findIndex(e=>r.buildVersion?e.options.id===o:e.name===o);if(l!==-1){let e=w.__FEDERATION__.__INSTANCES__[l];o=e.options.id||o;let t=Rt(),n=!0,i=[];Object.keys(t).forEach(e=>{let a=t[e];a&&Object.keys(a).forEach(t=>{let o=a[t];o&&Object.keys(o).forEach(a=>{let s=o[a];s&&Object.keys(s).forEach(o=>{let c=s[o];c&&typeof c==`object`&&c.from===r.name&&(c.loaded||c.loading?(c.useIn=c.useIn.filter(e=>e!==r.name),c.useIn.length?n=!1:i.push([e,t,a,o])):i.push([e,t,a,o]))})})})}),n&&(e.shareScopeMap={},delete t[o]),i.forEach(([e,n,r,i])=>{var a;(a=t[e])==null||(a=a[n])==null||(a=a[r])==null||delete a[i]}),w.__FEDERATION__.__INSTANCES__.splice(l,1)}n.moduleCache.delete(e.name)}}catch(e){fe.error(`removeRemote failed: ${e instanceof Error?e.message:String(e)}`)}}},nr=typeof FEDERATION_OPTIMIZE_NO_SNAPSHOT_PLUGIN!=`boolean`||!FEDERATION_OPTIMIZE_NO_SNAPSHOT_PLUGIN,rr=typeof FEDERATION_OPTIMIZE_NO_REMOTE!=`boolean`||!FEDERATION_OPTIMIZE_NO_REMOTE,ir=typeof FEDERATION_OPTIMIZE_NO_SHARED!=`boolean`||!FEDERATION_OPTIMIZE_NO_SHARED,ar=class{constructor(e){this.hooks=new J({beforeInit:new Z(`beforeInit`),init:new Y,beforeInitContainer:new Q(`beforeInitContainer`),initContainer:new Q(`initContainer`)}),this.version=`2.9.2`,this.moduleCache=new Map,this.loaderHook=new J({getModuleInfo:new Y,createScript:new Y,createLink:new Y,fetch:new X,loadEntryError:new X,afterLoadEntry:new X(`afterLoadEntry`),beforeInitRemote:new X(`beforeInitRemote`),afterInitRemote:new X(`afterInitRemote`),beforeGetExpose:new X(`beforeGetExpose`),afterGetExpose:new X(`afterGetExpose`),beforeExecuteFactory:new X(`beforeExecuteFactory`),afterExecuteFactory:new X(`afterExecuteFactory`),getModuleFactory:new X}),this.bridgeHook=new J({beforeBridgeRender:new Y,afterBridgeRender:new Y,beforeBridgeDestroy:new Y,afterBridgeDestroy:new Y,afterBridgeRouteSync:new Y});let t=rr&&nr?[Wn(),Yn()]:[],n={id:Cn(),name:e.name,plugins:t,remotes:[],shared:{},inBrowser:!0};this.name=e.name,this.options=n,this.snapshotHandler=rr?new Zn(this):new Qn,this.sharedHandler=ir?new $n(this):new er,this.remoteHandler=rr?new tr(this):new Hn,this.shareScopeMap=this.sharedHandler.shareScopeMap,this.registerPlugins([...n.plugins,...e.plugins||[]]),this.options=this.formatOptions(n,e)}initOptions(e){e.name&&e.name!==this.options.name&&x(ue($t,U)),this.registerPlugins(e.plugins);let t=this.formatOptions(this.options,e);return this.options=t,t}async loadShare(e,t){return this.sharedHandler.loadShare(e,t)}loadShareSync(e,t){return this.sharedHandler.loadShareSync(e,t)}initializeSharing(e=Ot,t){return this.sharedHandler.initializeSharing(e,t)}initRawContainer(e,t,n){return this.remoteHandler.initRawContainer(e,t,n)}async loadRemote(e,t){return this.remoteHandler.loadRemote(e,t)}async preloadRemote(e){return this.remoteHandler.preloadRemote(e)}initShareScopeMap(e,t,n={}){this.sharedHandler.initShareScopeMap(e,t,n)}formatOptions(e,t){let n=ir?jt(e,t).allShareInfos:{},{userOptions:r,options:i}=this.hooks.lifecycle.beforeInit.emit({origin:this,userOptions:t,options:e,shareInfo:n}),a=this.remoteHandler.formatAndRegisterRemote(i,r),{allShareInfos:o}=this.sharedHandler.registerShared(i,r),s=[...i.plugins];r.plugins&&r.plugins.forEach(e=>{s.includes(e)||s.push(e)});let c={...e,...t,plugins:s,remotes:a,shared:o,id:r.id||e.id};return this.hooks.lifecycle.init.emit({origin:this,options:c}),c}registerPlugins(e){this.options.plugins=En(e,this)}registerRemotes(e,t){return this.remoteHandler.registerRemotes(e,t)}registerShared(e){this.sharedHandler.registerShared(this.options,{...this.options,shared:e})}},or=Ln;function sr(){return typeof FEDERATION_BUILD_IDENTIFIER<`u`?FEDERATION_BUILD_IDENTIFIER:``}function cr(e,t){let n=sr();return w.__FEDERATION__.__INSTANCES__.find(r=>!!(n&&r.options.id===n||r.options.name===e&&!r.options.version&&!t||r.options.name===e&&t&&r.options.version===t))}export{Qt as a,Ee as c,U as i,b as l,or as n,De as o,ar as r,Oe as s,cr as t};
|