@icanbwell/composite 1.508.4 → 1.508.6

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/index.js CHANGED
@@ -3,7 +3,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
3
3
  display: ${Z?"none":"block"};
4
4
  height: ${Z?"0":"100%"};
5
5
  width: ${Z?"0":"100%"};
6
- `;class Q{constructor(P){p.add(this),g.set(this,void 0),S.set(this,void 0),A.set(this,new f),N.set(this,!1),j.set(this,void 0),(0,t.GG)(this,g,P.reduce((F,{name:$,defaultElement:_})=>{const D=document.createElement("div");D.style.cssText=J();const Y=document.createElement("slot");return Y.setAttribute("name",$),Y.appendChild(_),D.appendChild(Y),Object.assign(Object.assign({},F),{[$]:{container:D,slot:Y}})},{}),"f")}attachToShadowRoot(P){return Object.values((0,t.gn)(this,g,"f")).forEach(({container:F})=>P.appendChild(F)),(0,t.GG)(this,N,!0,"f"),this}hideSlot(P,{delay:F}={}){if((0,t.gn)(this,p,"m",X).call(this))return;(0,t.gn)(this,p,"m",K).call(this);const $=()=>{const{container:_}=(0,t.gn)(this,g,"f")[P];(0,t.gn)(this,A,"f").emit("visibilitychange",{visibility:"hidden",container:_,name:P}),_.style.cssText=J()};F?(0,t.GG)(this,S,setTimeout($,F),"f"):$()}showSlot(P){if((0,t.gn)(this,p,"m",X).call(this))return;const{container:F}=(0,t.gn)(this,g,"f")[P];(0,t.gn)(this,p,"m",K).call(this),clearTimeout((0,t.gn)(this,S,"f")),Object.keys((0,t.gn)(this,g,"f")).filter($=>$!==P).forEach($=>this.hideSlot($)),(0,t.gn)(this,A,"f").emit("visibilitychange",{visibility:"visible",container:F,name:P}),(0,t.gn)(this,g,"f")[P].container.style.cssText=J(!1)}showSlotLocked(P){if(!(0,t.gn)(this,p,"m",X).call(this))return this.showSlot(P),(0,t.GG)(this,j,P,"f"),()=>{(0,t.GG)(this,j,void 0,"f"),this.hideSlot(P)}}createElementFromSlot(P){(0,t.gn)(this,p,"m",K).call(this);const F=document.createElement("div");return F.style.height="100%",F.append(...(0,t.gn)(this,g,"f")[P].slot.assignedElements({flatten:!0}).map($=>$.cloneNode(!0))),F}addEventListener(P,F){(0,t.gn)(this,A,"f").addListener(P,F)}removeEventListener(P,F){(0,t.gn)(this,A,"f").removeListener(P,F)}}g=new WeakMap,S=new WeakMap,A=new WeakMap,N=new WeakMap,j=new WeakMap,p=new WeakSet,K=function(){if(!(0,t.gn)(this,N,"f"))throw new d.b("SlotManager must first attach to a shadow root before calling its instance methods.",{errorCode:m.ErrorCode.METHOD_CALLED_BEFORE_INITIALIZATION})},X=function(){return(0,t.gn)(this,j,"f")&&console.warn(`"${(0,t.gn)(this,j,"f")}" slot locked. Make sure to call the cleanup function to hide + unlock.`),!!(0,t.gn)(this,j,"f")};var H,W,V,b,y,h,w;class v{constructor(){H.add(this),W.set(this,void 0),V.set(this,void 0),b.set(this,[]),(0,t.gn)(this,H,"m",y).call(this)}get isInitialized(){return(0,t.gn)(this,V,"f")?(0,t.gn)(this,V,"f").isInitialized:!1}validateLoad(){return(0,t.sH)(this,void 0,void 0,function*(){yield(0,t.gn)(this,W,"f")})}init(...P){return(0,t.sH)(this,void 0,void 0,function*(){try{return yield(0,t.gn)(this,W,"f"),(0,t.gn)(this,H,"a",h).init(...P)}catch{}})}setUserToken(...P){return(0,t.gn)(this,H,"a",h).setUserToken(...P)}getUser(...P){return(0,t.gn)(this,H,"a",h).getUser(...P)}getToken(...P){return(0,t.gn)(this,H,"a",h).getToken(...P)}getUserId(...P){return(0,t.gn)(this,H,"a",h).getUserId(...P)}on(...P){(0,t.gn)(this,H,"m",w).call(this,()=>(0,t.gn)(this,H,"a",h).on(...P))}once(...P){(0,t.gn)(this,H,"m",w).call(this,()=>(0,t.gn)(this,H,"a",h).once(...P))}off(...P){(0,t.gn)(this,H,"m",w).call(this,()=>(0,t.gn)(this,H,"a",h).off(...P))}_registerEmbeddableContent(...P){return(0,t.gn)(this,H,"a",h)._registerEmbeddableContent(...P)}focusEmbeddableContent(...P){return(0,t.gn)(this,H,"a",h).focusEmbeddableContent(...P)}}W=new WeakMap,V=new WeakMap,b=new WeakMap,H=new WeakSet,y=function(){return(0,t.sH)(this,void 0,void 0,function*(){try{(0,t.GG)(this,W,Promise.all([e.e(218),e.e(311),e.e(138),e.e(692),e.e(973)]).then(e.bind(e,3138)),"f"),(0,t.GG)(this,V,new(yield(0,t.gn)(this,W,"f")).Bwell,"f"),(0,t.gn)(this,b,"f").forEach(P=>P())}catch(P){const F="There was an error loading core Bwell script. Please contact support.";(yield e.e(218).then(e.bind(e,9218))).default().fatal(P,F)}})},h=function(){if(!(0,t.gn)(this,V,"f"))throw new d.b("Bwell must be initialized.",{errorCode:m.ErrorCode.BWELL_INITIALIZATION});return(0,t.gn)(this,V,"f")},w=function(P){(0,t.gn)(this,V,"f")?P():(0,t.gn)(this,b,"f").push(P)};const E="bwell-em-dot-loader-component";class C extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){this.shadowRoot.innerHTML=`
6
+ `;class Q{constructor(P){p.add(this),g.set(this,void 0),S.set(this,void 0),A.set(this,new f),N.set(this,!1),j.set(this,void 0),(0,t.GG)(this,g,P.reduce((F,{name:$,defaultElement:_})=>{const D=document.createElement("div");D.style.cssText=J();const Y=document.createElement("slot");return Y.setAttribute("name",$),Y.appendChild(_),D.appendChild(Y),Object.assign(Object.assign({},F),{[$]:{container:D,slot:Y}})},{}),"f")}attachToShadowRoot(P){return Object.values((0,t.gn)(this,g,"f")).forEach(({container:F})=>P.appendChild(F)),(0,t.GG)(this,N,!0,"f"),this}hideSlot(P,{delay:F}={}){if((0,t.gn)(this,p,"m",X).call(this))return;(0,t.gn)(this,p,"m",K).call(this);const $=()=>{const{container:_}=(0,t.gn)(this,g,"f")[P];(0,t.gn)(this,A,"f").emit("visibilitychange",{visibility:"hidden",container:_,name:P}),_.style.cssText=J()};F?(0,t.GG)(this,S,setTimeout($,F),"f"):$()}showSlot(P){if((0,t.gn)(this,p,"m",X).call(this))return;const{container:F}=(0,t.gn)(this,g,"f")[P];(0,t.gn)(this,p,"m",K).call(this),clearTimeout((0,t.gn)(this,S,"f")),Object.keys((0,t.gn)(this,g,"f")).filter($=>$!==P).forEach($=>this.hideSlot($)),(0,t.gn)(this,A,"f").emit("visibilitychange",{visibility:"visible",container:F,name:P}),(0,t.gn)(this,g,"f")[P].container.style.cssText=J(!1)}showSlotLocked(P){if(!(0,t.gn)(this,p,"m",X).call(this))return this.showSlot(P),(0,t.GG)(this,j,P,"f"),()=>{(0,t.GG)(this,j,void 0,"f"),this.hideSlot(P)}}createElementFromSlot(P){(0,t.gn)(this,p,"m",K).call(this);const F=document.createElement("div");return F.style.height="100%",F.append(...(0,t.gn)(this,g,"f")[P].slot.assignedElements({flatten:!0}).map($=>$.cloneNode(!0))),F}addEventListener(P,F){(0,t.gn)(this,A,"f").addListener(P,F)}removeEventListener(P,F){(0,t.gn)(this,A,"f").removeListener(P,F)}}g=new WeakMap,S=new WeakMap,A=new WeakMap,N=new WeakMap,j=new WeakMap,p=new WeakSet,K=function(){if(!(0,t.gn)(this,N,"f"))throw new d.b("SlotManager must first attach to a shadow root before calling its instance methods.",{errorCode:m.ErrorCode.METHOD_CALLED_BEFORE_INITIALIZATION})},X=function(){return(0,t.gn)(this,j,"f")&&console.warn(`"${(0,t.gn)(this,j,"f")}" slot locked. Make sure to call the cleanup function to hide + unlock.`),!!(0,t.gn)(this,j,"f")};var H,W,V,b,y,h,w;class v{constructor(){H.add(this),W.set(this,void 0),V.set(this,void 0),b.set(this,[]),(0,t.gn)(this,H,"m",y).call(this)}get isInitialized(){return(0,t.gn)(this,V,"f")?(0,t.gn)(this,V,"f").isInitialized:!1}validateLoad(){return(0,t.sH)(this,void 0,void 0,function*(){yield(0,t.gn)(this,W,"f")})}init(...P){return(0,t.sH)(this,void 0,void 0,function*(){try{return yield(0,t.gn)(this,W,"f"),(0,t.gn)(this,H,"a",h).init(...P)}catch{}})}setUserToken(...P){return(0,t.gn)(this,H,"a",h).setUserToken(...P)}getUser(...P){return(0,t.gn)(this,H,"a",h).getUser(...P)}getToken(...P){return(0,t.gn)(this,H,"a",h).getToken(...P)}getUserId(...P){return(0,t.gn)(this,H,"a",h).getUserId(...P)}on(...P){(0,t.gn)(this,H,"m",w).call(this,()=>(0,t.gn)(this,H,"a",h).on(...P))}once(...P){(0,t.gn)(this,H,"m",w).call(this,()=>(0,t.gn)(this,H,"a",h).once(...P))}off(...P){(0,t.gn)(this,H,"m",w).call(this,()=>(0,t.gn)(this,H,"a",h).off(...P))}_registerEmbeddableContent(...P){return(0,t.gn)(this,H,"a",h)._registerEmbeddableContent(...P)}focusEmbeddableContent(...P){return(0,t.gn)(this,H,"a",h).focusEmbeddableContent(...P)}}W=new WeakMap,V=new WeakMap,b=new WeakMap,H=new WeakSet,y=function(){return(0,t.sH)(this,void 0,void 0,function*(){try{(0,t.GG)(this,W,Promise.all([e.e(689),e.e(311),e.e(138),e.e(692),e.e(973)]).then(e.bind(e,3138)),"f"),(0,t.GG)(this,V,new(yield(0,t.gn)(this,W,"f")).Bwell,"f"),(0,t.gn)(this,b,"f").forEach(P=>P())}catch(P){const F="There was an error loading core Bwell script. Please contact support.";(yield e.e(689).then(e.bind(e,6689))).default().fatal(P,F)}})},h=function(){if(!(0,t.gn)(this,V,"f"))throw new d.b("Bwell must be initialized.",{errorCode:m.ErrorCode.BWELL_INITIALIZATION});return(0,t.gn)(this,V,"f")},w=function(P){(0,t.gn)(this,V,"f")?P():(0,t.gn)(this,b,"f").push(P)};const E="bwell-em-dot-loader-component";class C extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){this.shadowRoot.innerHTML=`
7
7
  <style>
8
8
  :host {
9
9
  --size: 8px;
@@ -61,7 +61,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
61
61
  <span class="item"></span>
62
62
  </div>
63
63
  </div>
64
- `}}customElements.get(E)===void 0&&customElements.define(E,C);const R="bwell-em-error-component";class k extends HTMLElement{constructor(){super(),Promise.all([e.e(311),e.e(692),e.e(279)]).then(e.bind(e,3279)),this.attachShadow({mode:"open"})}connectedCallback(){this.shadowRoot.innerHTML=`
64
+ `}}customElements.get(E)===void 0&&customElements.define(E,C);const R="bwell-em-error-component";class k extends HTMLElement{constructor(){super(),Promise.all([e.e(311),e.e(692),e.e(964)]).then(e.bind(e,5964)),this.attachShadow({mode:"open"})}connectedCallback(){this.shadowRoot.innerHTML=`
65
65
  <style>
66
66
  .wrapper {
67
67
  height: 100%;
@@ -73,7 +73,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
73
73
  <div class="wrapper">
74
74
  <bwell-error-component />
75
75
  </div>
76
- `}}customElements.get(R)===void 0&&customElements.define(R,k);const z=[{name:"loader",defaultElement:document.createElement(E)},{name:"error",defaultElement:document.createElement(R)}],te=["error","loading"],q={error:"error",loading:"loader"},ie=({src:Z,elementNameSuffix:P})=>(0,t.sH)(void 0,void 0,void 0,function*(){var F,$,_,D,Y,ee,re,ce,fe,ue,ne,Oe,xe,ye,me;window.bwell||(window.bwell=new v);const he=`bwell-${P}`;if(customElements.get(he)!==void 0)return;class Se extends i{constructor(){super(),F.add(this),$.set(this,(0,l.Ak)()),_.set(this,void 0),D.set(this,document.createElement("feature-app-loader")),Y.set(this,new f.EventEmitter),ee.set(this,void 0),re.set(this,void 0),ce.set(this,void 0),fe.set(this,void 0),ue.set(this,void 0),ne.set(this,void 0),this.attachShadow({mode:"open"});const oe=new Q(z).attachToShadowRoot(this.shadowRoot);oe.addEventListener("visibilitychange",({visibility:de,container:Ee,name:we})=>{we==="error"&&de==="visible"&&window.bwell._registerEmbeddableContent(Ee),(0,t.gn)(this,D,"f").style.display=de==="hidden"?"unset":"hidden"}),(0,t.GG)(this,ne,{slots:oe,attributes:new U().bindTo(this),loaderEventEmitter:(0,t.gn)(this,Y,"f")},"f"),(0,t.GG)(this,ee,(0,t.gn)(this,F,"m",Oe).bind(this),"f"),(0,t.GG)(this,re,(0,t.gn)(this,F,"m",xe).bind(this),"f"),(0,t.GG)(this,ce,(0,t.gn)(this,F,"m",me).call(this,"error"),"f"),(0,t.GG)(this,fe,(0,t.gn)(this,F,"m",me).call(this,"loading"),"f")}connectedCallback(){return(0,t.sH)(this,void 0,void 0,function*(){(0,t.gn)(this,ce,"f").call(this,(0,t.gn)(this,ne,"f").attributes.get("error")),(0,t.gn)(this,fe,"f").call(this,(0,t.gn)(this,ne,"f").attributes.get("loading")),(0,t.gn)(this,ne,"f").slots.addEventListener("visibilitychange",(0,t.gn)(this,re,"f")),(0,t.gn)(this,ne,"f").attributes.addChangeListener("error",(0,t.gn)(this,ce,"f")),(0,t.gn)(this,ne,"f").attributes.addChangeListener("loading",(0,t.gn)(this,fe,"f")),(0,t.gn)(this,ne,"f").slots.showSlot("loader");try{yield window.bwell.validateLoad()}catch{(0,t.gn)(this,ne,"f").slots.showSlot("error")}(0,t.GG)(this,$,this.id||(0,t.gn)(this,$,"f"),"f"),(0,t.GG)(this,_,new c((0,t.gn)(this,$,"f")),"f"),(0,t.gn)(this,_,"f").registerDispatcher(oe=>this.dispatchEvent(oe)),window.bwell.isInitialized?(0,t.gn)(this,ee,"f").call(this):(window.bwell.once("initialized",(0,t.gn)(this,ee,"f")),window.bwell.once("error",()=>{(0,t.gn)(this,ne,"f").slots.showSlot("error")}))})}disconnectedCallback(){var oe;(0,t.gn)(this,Y,"f").emit("disconnect"),(0,t.gn)(this,ne,"f").slots.removeEventListener("visibilitychange",(0,t.gn)(this,re,"f")),(0,t.gn)(this,ne,"f").attributes.removeChangeListener("error",(0,t.gn)(this,ce,"f")),(0,t.gn)(this,ne,"f").attributes.removeChangeListener("loading",(0,t.gn)(this,fe,"f")),(oe=(0,t.gn)(this,_,"f"))===null||oe===void 0||oe.deregister(),(0,t.gn)(this,Y,"f").removeAllListeners()}}$=new WeakMap,_=new WeakMap,D=new WeakMap,Y=new WeakMap,ee=new WeakMap,re=new WeakMap,ce=new WeakMap,fe=new WeakMap,ue=new WeakMap,ne=new WeakMap,F=new WeakSet,Oe=function(){(0,t.gn)(this,D,"f").setAttribute("featureAppId",`bwell-embeddable:${he}`),(0,t.gn)(this,D,"f").setAttribute("src",Z),(0,t.gn)(this,D,"f").config={id:(0,t.gn)(this,$,"f"),name:P,elementName:he,utils:(0,t.gn)(this,ne,"f")},this.shadowRoot.appendChild((0,t.gn)(this,D,"f"))},xe=function({visibility:oe,name:de}){(0,t.gn)(this,D,"f").style.display=oe==="hidden"?"unset":"hidden"},ye=function(oe){(0,t.gn)(this,ue,"f")(),(0,t.GG)(this,ue,void 0,"f")},me=function(oe){return de=>{const Ee=te.findIndex(ve=>ve===oe);if(!te.slice(0,Ee).some(ve=>(0,t.gn)(this,ne,"f").attributes.get(ve)!==null)){if(de!==null)(0,t.gn)(this,ue,"f")&&(0,t.gn)(this,F,"m",ye).call(this,oe),(0,t.GG)(this,ue,(0,t.gn)(this,ne,"f").slots.showSlotLocked(q[oe]),"f");else if(de===null&&(0,t.gn)(this,ue,"f")){(0,t.gn)(this,F,"m",ye).call(this,oe);const ve=te.find(Te=>(0,t.gn)(this,ne,"f").attributes.get(Te)!==null);ve&&(0,t.GG)(this,ue,(0,t.gn)(this,ne,"f").slots.showSlotLocked(q[ve]),"f")}}}},customElements.define(he,Se)}),se={rE:"1.508.4"},ae="composite";var le=e(7321);ie({src:`https://embeddables.prod.icanbwell.com/${ae}/${se.rE}/scripts/embeddable.federated.js`,elementNameSuffix:ae})},992:(r,u,e)=>{"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.Broadcaster=void 0;var t=e(46),i=function(){function o(n,s){if(s===void 0&&(s=0),this.emitter=new t.EventEmitter,typeof n>"u"||n.length===0)throw new Error("Broadcaster must have a name");this._name=n,this.emitter.setMaxListeners(s)}return Object.defineProperty(o.prototype,"name",{get:function(){return this._name},enumerable:!1,configurable:!0}),o.prototype.emit=function(n){this.emitter.emit(this._name,n)},o.prototype.addListener=function(n){return this._addListener("addListener",n)},o.prototype.on=function(n){return this.addListener(n)},o.prototype.prependListener=function(n){return this._addListener("prependListener",n)},o.prototype.once=function(n){return this._addListener("once",n)},o.prototype.prependOnceListener=function(n){return this._addListener("prependOnceListener",n)},o.prototype.removeListener=function(n){this._proxyListener("removeListener",n)},o.prototype.off=function(n){this.removeListener(n)},o.prototype.removeAllListeners=function(){this.emitter.removeAllListeners(this._name)},o.prototype.getMaxListeners=function(){return this.emitter.getMaxListeners()},o.prototype.setMaxListeners=function(n){this.emitter.setMaxListeners(n)},o.prototype.getEventEmitter=function(){return this.emitter},o.prototype.listeners=function(){return this.emitter.listeners(this._name)},o.prototype.rawListeners=function(){return this.emitter.rawListeners(this._name)},o.prototype.listenerCount=function(){return this.emitter.listenerCount(this._name)},o.prototype._proxyListener=function(n,s){this.emitter[n](this._name,s)},o.prototype._createUnsubscribe=function(n){var s=this;return function(){s.emitter.removeListener(s._name,n)}},o.prototype._addListener=function(n,s){return this._proxyListener(n,s),this._createUnsubscribe(s)},o.prototype.destroy=function(){this.emitter.removeAllListeners()},o}();u.Broadcaster=i},9987:function(r,u,e){"use strict";var t=this&&this.__extends||function(){var s=function(a,c){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,d){l.__proto__=d}||function(l,d){for(var m in d)Object.prototype.hasOwnProperty.call(d,m)&&(l[m]=d[m])},s(a,c)};return function(a,c){if(typeof c!="function"&&c!==null)throw new TypeError("Class extends value "+String(c)+" is not a constructor or null");s(a,c);function l(){this.constructor=a}a.prototype=c===null?Object.create(c):(l.prototype=c.prototype,new l)}}();Object.defineProperty(u,"__esModule",{value:!0}),u.Channel=void 0;var i=e(992),o=e(1987),n=function(s){t(a,s);function a(c,l){l===void 0&&(l=0);var d=s.call(this,c,l)||this;return d.topics={},d._onTopicDestroyed=d._onTopicDestroyed.bind(d),d._onTopicEmit=d._onTopicEmit.bind(d),d}return a.prototype.emit=function(c){var l={channel:this.name,topic:"*",payload:c};s.prototype.emit.call(this,l)},a.prototype.topic=function(c){var l=this.topics[c];return typeof l>"u"&&(l=this.topics[c]=new o.Topic(c,this.name,this.getMaxListeners()),l.getEventEmitter().on("topic_destroyed",this._onTopicDestroyed),l.on(this._onTopicEmit)),l},a.prototype.hasTopic=function(c){return Boolean(this.topics[c])},a.prototype.removeTopic=function(c){var l=this.topics[c];return typeof l<"u"?(delete this.topics[c],l.destroy(),!0):!1},a.prototype.getAllTopics=function(){return Object.values(this.topics)},a.prototype._onTopicEmit=function(c){s.prototype.emit.call(this,c)},a.prototype._onTopicDestroyed=function(c){delete this.topics[c]},a.prototype.destroy=function(){for(var c in this.topics)this.removeTopic(c);this.emitter.emit("channel_destroyed",this.name),s.prototype.destroy.call(this)},a}(i.Broadcaster);u.Channel=n},5447:(r,u,e)=>{"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.EventBus=void 0;var t=e(9987),i=function(){function o(n){this.channels={},n=typeof n>"u"?{}:n,this._maxListeners=n.maxListeners===void 0?0:n.maxListeners,this.onChannelDestroyed=this.onChannelDestroyed.bind(this),this.createMainChannel(),this.onChannelEmit=this.onChannelEmit.bind(this)}return o.prototype.createMainChannel=function(){var n=this;this.defaultChannel=new t.Channel("*",this._maxListeners),this.channels["*"]=this.defaultChannel,this.defaultChannel.getEventEmitter().on("channel_destroyed",function(){n.createMainChannel()})},o.prototype.mainChannel=function(){return this.defaultChannel},o.prototype.allChannels=function(){return this.mainChannel()},o.prototype.channel=function(n){var s=this.channels[n];return typeof s>"u"&&(s=this.channels[n]=new t.Channel(n,this._maxListeners),s.on(this.onChannelEmit),s.getEventEmitter().on("channel_destroyed",this.onChannelDestroyed)),s},o.prototype.hasChannel=function(n){return Boolean(this.channels[n])},o.prototype.removeChannel=function(n){if(n==="*")throw new Error("Can't remove default channel");var s=this.channels[n];return typeof s<"u"?(s.destroy(),!0):!1},o.prototype.onChannelEmit=function(n){var s=n.topic;if(this.defaultChannel.hasTopic(s)){var a={topic:n.topic,channel:n.channel,payload:n.payload};this.defaultChannel.topic(s).getEventEmitter().emit(s,a)}this.defaultChannel.getEventEmitter().emit(this.defaultChannel.name,n)},o.prototype.onChannelDestroyed=function(n){delete this.channels[n]},o.prototype.getAllChannels=function(){return Object.values(this.channels)},o.prototype.destroy=function(){for(var n in this.channels)this.channels[n].destroy()},o}();u.EventBus=i},4032:function(r,u,e){"use strict";var t=this&&this.__createBinding||(Object.create?function(o,n,s,a){a===void 0&&(a=s),Object.defineProperty(o,a,{enumerable:!0,get:function(){return n[s]}})}:function(o,n,s,a){a===void 0&&(a=s),o[a]=n[s]}),i=this&&this.__exportStar||function(o,n){for(var s in o)s!=="default"&&!Object.prototype.hasOwnProperty.call(n,s)&&t(n,o,s)};Object.defineProperty(u,"__esModule",{value:!0}),i(e(992),u),i(e(5447),u),i(e(9987),u),i(e(1987),u)},1987:function(r,u,e){"use strict";var t=this&&this.__extends||function(){var n=function(s,a){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,l){c.__proto__=l}||function(c,l){for(var d in l)Object.prototype.hasOwnProperty.call(l,d)&&(c[d]=l[d])},n(s,a)};return function(s,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");n(s,a);function c(){this.constructor=s}s.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}();Object.defineProperty(u,"__esModule",{value:!0}),u.Topic=void 0;var i=e(992),o=function(n){t(s,n);function s(a,c,l){l===void 0&&(l=0);var d=n.call(this,a,l)||this;return d.channel=c,d}return s.prototype.emit=function(a){var c={channel:this.channel,topic:this.name,payload:a};n.prototype.emit.call(this,c)},s.prototype.destroy=function(){this.emitter.emit("topic_destroyed",this.name),n.prototype.destroy.call(this)},s}(i.Broadcaster);u.Topic=o},46:r=>{"use strict";var u=typeof Reflect=="object"?Reflect:null,e=u&&typeof u.apply=="function"?u.apply:function(p,g,S){return Function.prototype.apply.call(p,g,S)},t;u&&typeof u.ownKeys=="function"?t=u.ownKeys:Object.getOwnPropertySymbols?t=function(p){return Object.getOwnPropertyNames(p).concat(Object.getOwnPropertySymbols(p))}:t=function(p){return Object.getOwnPropertyNames(p)};function i(f){console&&console.warn&&console.warn(f)}var o=Number.isNaN||function(p){return p!==p};function n(){n.init.call(this)}r.exports=n,r.exports.once=B,n.EventEmitter=n,n.prototype._events=void 0,n.prototype._eventsCount=0,n.prototype._maxListeners=void 0;var s=10;function a(f){if(typeof f!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof f)}Object.defineProperty(n,"defaultMaxListeners",{enumerable:!0,get:function(){return s},set:function(f){if(typeof f!="number"||f<0||o(f))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+f+".");s=f}}),n.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},n.prototype.setMaxListeners=function(p){if(typeof p!="number"||p<0||o(p))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+p+".");return this._maxListeners=p,this};function c(f){return f._maxListeners===void 0?n.defaultMaxListeners:f._maxListeners}n.prototype.getMaxListeners=function(){return c(this)},n.prototype.emit=function(p){for(var g=[],S=1;S<arguments.length;S++)g.push(arguments[S]);var A=p==="error",N=this._events;if(N!==void 0)A=A&&N.error===void 0;else if(!A)return!1;if(A){var j;if(g.length>0&&(j=g[0]),j instanceof Error)throw j;var K=new Error("Unhandled error."+(j?" ("+j.message+")":""));throw K.context=j,K}var X=N[p];if(X===void 0)return!1;if(typeof X=="function")e(X,this,g);else for(var J=X.length,Q=T(X,J),S=0;S<J;++S)e(Q[S],this,g);return!0};function l(f,p,g,S){var A,N,j;if(a(g),N=f._events,N===void 0?(N=f._events=Object.create(null),f._eventsCount=0):(N.newListener!==void 0&&(f.emit("newListener",p,g.listener?g.listener:g),N=f._events),j=N[p]),j===void 0)j=N[p]=g,++f._eventsCount;else if(typeof j=="function"?j=N[p]=S?[g,j]:[j,g]:S?j.unshift(g):j.push(g),A=c(f),A>0&&j.length>A&&!j.warned){j.warned=!0;var K=new Error("Possible EventEmitter memory leak detected. "+j.length+" "+String(p)+" listeners added. Use emitter.setMaxListeners() to increase limit");K.name="MaxListenersExceededWarning",K.emitter=f,K.type=p,K.count=j.length,i(K)}return f}n.prototype.addListener=function(p,g){return l(this,p,g,!1)},n.prototype.on=n.prototype.addListener,n.prototype.prependListener=function(p,g){return l(this,p,g,!0)};function d(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function m(f,p,g){var S={fired:!1,wrapFn:void 0,target:f,type:p,listener:g},A=d.bind(S);return A.listener=g,S.wrapFn=A,A}n.prototype.once=function(p,g){return a(g),this.on(p,m(this,p,g)),this},n.prototype.prependOnceListener=function(p,g){return a(g),this.prependListener(p,m(this,p,g)),this},n.prototype.removeListener=function(p,g){var S,A,N,j,K;if(a(g),A=this._events,A===void 0)return this;if(S=A[p],S===void 0)return this;if(S===g||S.listener===g)--this._eventsCount===0?this._events=Object.create(null):(delete A[p],A.removeListener&&this.emit("removeListener",p,S.listener||g));else if(typeof S!="function"){for(N=-1,j=S.length-1;j>=0;j--)if(S[j]===g||S[j].listener===g){K=S[j].listener,N=j;break}if(N<0)return this;N===0?S.shift():L(S,N),S.length===1&&(A[p]=S[0]),A.removeListener!==void 0&&this.emit("removeListener",p,K||g)}return this},n.prototype.off=n.prototype.removeListener,n.prototype.removeAllListeners=function(p){var g,S,A;if(S=this._events,S===void 0)return this;if(S.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):S[p]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete S[p]),this;if(arguments.length===0){var N=Object.keys(S),j;for(A=0;A<N.length;++A)j=N[A],j!=="removeListener"&&this.removeAllListeners(j);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(g=S[p],typeof g=="function")this.removeListener(p,g);else if(g!==void 0)for(A=g.length-1;A>=0;A--)this.removeListener(p,g[A]);return this};function O(f,p,g){var S=f._events;if(S===void 0)return[];var A=S[p];return A===void 0?[]:typeof A=="function"?g?[A.listener||A]:[A]:g?I(A):T(A,A.length)}n.prototype.listeners=function(p){return O(this,p,!0)},n.prototype.rawListeners=function(p){return O(this,p,!1)},n.listenerCount=function(f,p){return typeof f.listenerCount=="function"?f.listenerCount(p):x.call(f,p)},n.prototype.listenerCount=x;function x(f){var p=this._events;if(p!==void 0){var g=p[f];if(typeof g=="function")return 1;if(g!==void 0)return g.length}return 0}n.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]};function T(f,p){for(var g=new Array(p),S=0;S<p;++S)g[S]=f[S];return g}function L(f,p){for(;p+1<f.length;p++)f[p]=f[p+1];f.pop()}function I(f){for(var p=new Array(f.length),g=0;g<p.length;++g)p[g]=f[g].listener||f[g];return p}function B(f,p){return new Promise(function(g,S){function A(j){f.removeListener(p,N),S(j)}function N(){typeof f.removeListener=="function"&&f.removeListener("error",A),g([].slice.call(arguments))}U(f,p,N,{once:!0}),p!=="error"&&G(f,A,{once:!0})})}function G(f,p,g){typeof f.on=="function"&&U(f,"error",p,g)}function U(f,p,g,S){if(typeof f.on=="function")S.once?f.once(p,g):f.on(p,g);else if(typeof f.addEventListener=="function")f.addEventListener(p,function A(N){S.once&&f.removeEventListener(p,A),g(N)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof f)}},7321:(r,u,e)=>{"use strict";var t=e(3030);r.exports=t},9283:(r,u,e)=>{"use strict";e(8376),e(4293),e(8715);var t=e(2564);r.exports=t("String","replaceAll")},4977:(r,u,e)=>{"use strict";var t=e(4188),i=e(3174),o=TypeError;r.exports=function(n){if(t(n))return n;throw new o(i(n)+" is not a function")}},154:(r,u,e)=>{"use strict";var t=e(4212).charAt;r.exports=function(i,o,n){return o+(n?t(i,o).length:1)}},3770:(r,u,e)=>{"use strict";var t=e(831),i=String,o=TypeError;r.exports=function(n){if(t(n))return n;throw new o(i(n)+" is not an object")}},1458:(r,u,e)=>{"use strict";var t=e(380),i=e(675),o=e(9389),n=function(s){return function(a,c,l){var d=t(a),m=o(d);if(m===0)return!s&&-1;var O=i(l,m),x;if(s&&c!==c){for(;m>O;)if(x=d[O++],x!==x)return!0}else for(;m>O;O++)if((s||O in d)&&d[O]===c)return s||O||0;return!s&&-1}};r.exports={includes:n(!0),indexOf:n(!1)}},8689:(r,u,e)=>{"use strict";var t=e(6881),i=t({}.toString),o=t("".slice);r.exports=function(n){return o(i(n),8,-1)}},5438:(r,u,e)=>{"use strict";var t=e(9345),i=e(4188),o=e(8689),n=e(4282),s=n("toStringTag"),a=Object,c=o(function(){return arguments}())==="Arguments",l=function(d,m){try{return d[m]}catch{}};r.exports=t?o:function(d){var m,O,x;return d===void 0?"Undefined":d===null?"Null":typeof(O=l(m=a(d),s))=="string"?O:c?o(m):(x=o(m))==="Object"&&i(m.callee)?"Arguments":x}},8657:(r,u,e)=>{"use strict";var t=e(4418),i=e(3168),o=e(9304),n=e(4466);r.exports=function(s,a,c){for(var l=i(a),d=n.f,m=o.f,O=0;O<l.length;O++){var x=l[O];!t(s,x)&&!(c&&t(c,x))&&d(s,x,m(a,x))}}},8088:(r,u,e)=>{"use strict";var t=e(6893),i=e(4466),o=e(9123);r.exports=t?function(n,s,a){return i.f(n,s,o(1,a))}:function(n,s,a){return n[s]=a,n}},9123:r=>{"use strict";r.exports=function(u,e){return{enumerable:!(u&1),configurable:!(u&2),writable:!(u&4),value:e}}},7509:(r,u,e)=>{"use strict";var t=e(4188),i=e(4466),o=e(4530),n=e(4798);r.exports=function(s,a,c,l){l||(l={});var d=l.enumerable,m=l.name!==void 0?l.name:a;if(t(c)&&o(c,m,l),l.global)d?s[a]=c:n(a,c);else{try{l.unsafe?s[a]&&(d=!0):delete s[a]}catch{}d?s[a]=c:i.f(s,a,{value:c,enumerable:!1,configurable:!l.nonConfigurable,writable:!l.nonWritable})}return s}},4798:(r,u,e)=>{"use strict";var t=e(1488),i=Object.defineProperty;r.exports=function(o,n){try{i(t,o,{value:n,configurable:!0,writable:!0})}catch{t[o]=n}return n}},6893:(r,u,e)=>{"use strict";var t=e(5234);r.exports=!t(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7})},5926:(r,u,e)=>{"use strict";var t=e(1488),i=e(831),o=t.document,n=i(o)&&i(o.createElement);r.exports=function(s){return n?o.createElement(s):{}}},4109:r=>{"use strict";r.exports=typeof navigator<"u"&&String(navigator.userAgent)||""},3749:(r,u,e)=>{"use strict";var t=e(1488),i=e(4109),o=t.process,n=t.Deno,s=o&&o.versions||n&&n.version,a=s&&s.v8,c,l;a&&(c=a.split("."),l=c[0]>0&&c[0]<4?1:+(c[0]+c[1])),!l&&i&&(c=i.match(/Edge\/(\d+)/),(!c||c[1]>=74)&&(c=i.match(/Chrome\/(\d+)/),c&&(l=+c[1]))),r.exports=l},2564:(r,u,e)=>{"use strict";var t=e(1488),i=e(6881);r.exports=function(o,n){return i(t[o].prototype[n])}},1274:r=>{"use strict";r.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},5613:(r,u,e)=>{"use strict";var t=e(1488),i=e(9304).f,o=e(8088),n=e(7509),s=e(4798),a=e(8657),c=e(8489);r.exports=function(l,d){var m=l.target,O=l.global,x=l.stat,T,L,I,B,G,U;if(O?L=t:x?L=t[m]||s(m,{}):L=t[m]&&t[m].prototype,L)for(I in d){if(G=d[I],l.dontCallGetSet?(U=i(L,I),B=U&&U.value):B=L[I],T=c(O?I:m+(x?".":"#")+I,l.forced),!T&&B!==void 0){if(typeof G==typeof B)continue;a(G,B)}(l.sham||B&&B.sham)&&o(G,"sham",!0),n(L,I,G,l)}}},5234:r=>{"use strict";r.exports=function(u){try{return!!u()}catch{return!0}}},467:(r,u,e)=>{"use strict";e(8376);var t=e(9944),i=e(7509),o=e(9342),n=e(5234),s=e(4282),a=e(8088),c=s("species"),l=RegExp.prototype;r.exports=function(d,m,O,x){var T=s(d),L=!n(function(){var U={};return U[T]=function(){return 7},""[d](U)!==7}),I=L&&!n(function(){var U=!1,f=/a/;return d==="split"&&(f={},f.constructor={},f.constructor[c]=function(){return f},f.flags="",f[T]=/./[T]),f.exec=function(){return U=!0,null},f[T](""),!U});if(!L||!I||O){var B=/./[T],G=m(T,""[d],function(U,f,p,g,S){var A=f.exec;return A===o||A===l.exec?L&&!S?{done:!0,value:t(B,f,p,g)}:{done:!0,value:t(U,p,f,g)}:{done:!1}});i(String.prototype,d,G[0]),i(l,T,G[1])}x&&a(l[T],"sham",!0)}},646:(r,u,e)=>{"use strict";var t=e(9055),i=Function.prototype,o=i.apply,n=i.call;r.exports=typeof Reflect=="object"&&Reflect.apply||(t?n.bind(o):function(){return n.apply(o,arguments)})},9055:(r,u,e)=>{"use strict";var t=e(5234);r.exports=!t(function(){var i=function(){}.bind();return typeof i!="function"||i.hasOwnProperty("prototype")})},9944:(r,u,e)=>{"use strict";var t=e(9055),i=Function.prototype.call;r.exports=t?i.bind(i):function(){return i.apply(i,arguments)}},2735:(r,u,e)=>{"use strict";var t=e(6893),i=e(4418),o=Function.prototype,n=t&&Object.getOwnPropertyDescriptor,s=i(o,"name"),a=s&&function(){}.name==="something",c=s&&(!t||t&&n(o,"name").configurable);r.exports={EXISTS:s,PROPER:a,CONFIGURABLE:c}},6881:(r,u,e)=>{"use strict";var t=e(9055),i=Function.prototype,o=i.call,n=t&&i.bind.bind(o,o);r.exports=t?n:function(s){return function(){return o.apply(s,arguments)}}},5604:(r,u,e)=>{"use strict";var t=e(1488),i=e(4188),o=function(n){return i(n)?n:void 0};r.exports=function(n,s){return arguments.length<2?o(t[n]):t[n]&&t[n][s]}},2913:(r,u,e)=>{"use strict";var t=e(4977),i=e(4318);r.exports=function(o,n){var s=o[n];return i(s)?void 0:t(s)}},1113:(r,u,e)=>{"use strict";var t=e(6881),i=e(3628),o=Math.floor,n=t("".charAt),s=t("".replace),a=t("".slice),c=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,l=/\$([$&'`]|\d{1,2})/g;r.exports=function(d,m,O,x,T,L){var I=O+d.length,B=x.length,G=l;return T!==void 0&&(T=i(T),G=c),s(L,G,function(U,f){var p;switch(n(f,0)){case"$":return"$";case"&":return d;case"`":return a(m,0,O);case"'":return a(m,I);case"<":p=T[a(f,1,-1)];break;default:var g=+f;if(g===0)return U;if(g>B){var S=o(g/10);return S===0?U:S<=B?x[S-1]===void 0?n(f,1):x[S-1]+n(f,1):U}p=x[g-1]}return p===void 0?"":p})}},1488:function(r,u,e){"use strict";var t=function(i){return i&&i.Math===Math&&i};r.exports=t(typeof globalThis=="object"&&globalThis)||t(typeof window=="object"&&window)||t(typeof self=="object"&&self)||t(typeof e.g=="object"&&e.g)||t(typeof this=="object"&&this)||function(){return this}()||Function("return this")()},4418:(r,u,e)=>{"use strict";var t=e(6881),i=e(3628),o=t({}.hasOwnProperty);r.exports=Object.hasOwn||function(s,a){return o(i(s),a)}},7588:r=>{"use strict";r.exports={}},7458:(r,u,e)=>{"use strict";var t=e(5604);r.exports=t("document","documentElement")},9622:(r,u,e)=>{"use strict";var t=e(6893),i=e(5234),o=e(5926);r.exports=!t&&!i(function(){return Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a!==7})},7568:(r,u,e)=>{"use strict";var t=e(6881),i=e(5234),o=e(8689),n=Object,s=t("".split);r.exports=i(function(){return!n("z").propertyIsEnumerable(0)})?function(a){return o(a)==="String"?s(a,""):n(a)}:n},3029:(r,u,e)=>{"use strict";var t=e(6881),i=e(4188),o=e(2694),n=t(Function.toString);i(o.inspectSource)||(o.inspectSource=function(s){return n(s)}),r.exports=o.inspectSource},3086:(r,u,e)=>{"use strict";var t=e(5945),i=e(1488),o=e(831),n=e(8088),s=e(4418),a=e(2694),c=e(168),l=e(7588),d="Object already initialized",m=i.TypeError,O=i.WeakMap,x,T,L,I=function(f){return L(f)?T(f):x(f,{})},B=function(f){return function(p){var g;if(!o(p)||(g=T(p)).type!==f)throw new m("Incompatible receiver, "+f+" required");return g}};if(t||a.state){var G=a.state||(a.state=new O);G.get=G.get,G.has=G.has,G.set=G.set,x=function(f,p){if(G.has(f))throw new m(d);return p.facade=f,G.set(f,p),p},T=function(f){return G.get(f)||{}},L=function(f){return G.has(f)}}else{var U=c("state");l[U]=!0,x=function(f,p){if(s(f,U))throw new m(d);return p.facade=f,n(f,U,p),p},T=function(f){return s(f,U)?f[U]:{}},L=function(f){return s(f,U)}}r.exports={set:x,get:T,has:L,enforce:I,getterFor:B}},4188:r=>{"use strict";var u=typeof document=="object"&&document.all;r.exports=typeof u>"u"&&u!==void 0?function(e){return typeof e=="function"||e===u}:function(e){return typeof e=="function"}},8489:(r,u,e)=>{"use strict";var t=e(5234),i=e(4188),o=/#|\.prototype\./,n=function(d,m){var O=a[s(d)];return O===l?!0:O===c?!1:i(m)?t(m):!!m},s=n.normalize=function(d){return String(d).replace(o,".").toLowerCase()},a=n.data={},c=n.NATIVE="N",l=n.POLYFILL="P";r.exports=n},4318:r=>{"use strict";r.exports=function(u){return u==null}},831:(r,u,e)=>{"use strict";var t=e(4188);r.exports=function(i){return typeof i=="object"?i!==null:t(i)}},1942:r=>{"use strict";r.exports=!1},473:(r,u,e)=>{"use strict";var t=e(831),i=e(8689),o=e(4282),n=o("match");r.exports=function(s){var a;return t(s)&&((a=s[n])!==void 0?!!a:i(s)==="RegExp")}},6032:(r,u,e)=>{"use strict";var t=e(5604),i=e(4188),o=e(4578),n=e(9809),s=Object;r.exports=n?function(a){return typeof a=="symbol"}:function(a){var c=t("Symbol");return i(c)&&o(c.prototype,s(a))}},9389:(r,u,e)=>{"use strict";var t=e(7611);r.exports=function(i){return t(i.length)}},4530:(r,u,e)=>{"use strict";var t=e(6881),i=e(5234),o=e(4188),n=e(4418),s=e(6893),a=e(2735).CONFIGURABLE,c=e(3029),l=e(3086),d=l.enforce,m=l.get,O=String,x=Object.defineProperty,T=t("".slice),L=t("".replace),I=t([].join),B=s&&!i(function(){return x(function(){},"length",{value:8}).length!==8}),G=String(String).split("String"),U=r.exports=function(f,p,g){T(O(p),0,7)==="Symbol("&&(p="["+L(O(p),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),g&&g.getter&&(p="get "+p),g&&g.setter&&(p="set "+p),(!n(f,"name")||a&&f.name!==p)&&(s?x(f,"name",{value:p,configurable:!0}):f.name=p),B&&g&&n(g,"arity")&&f.length!==g.arity&&x(f,"length",{value:g.arity});try{g&&n(g,"constructor")&&g.constructor?s&&x(f,"prototype",{writable:!1}):f.prototype&&(f.prototype=void 0)}catch{}var S=d(f);return n(S,"source")||(S.source=I(G,typeof p=="string"?p:"")),f};Function.prototype.toString=U(function(){return o(this)&&m(this).source||c(this)},"toString")},142:r=>{"use strict";var u=Math.ceil,e=Math.floor;r.exports=Math.trunc||function(i){var o=+i;return(o>0?e:u)(o)}},7065:(r,u,e)=>{"use strict";var t=e(3770),i=e(30),o=e(1274),n=e(7588),s=e(7458),a=e(5926),c=e(168),l=">",d="<",m="prototype",O="script",x=c("IE_PROTO"),T=function(){},L=function(f){return d+O+l+f+d+"/"+O+l},I=function(f){f.write(L("")),f.close();var p=f.parentWindow.Object;return f=null,p},B=function(){var f=a("iframe"),p="java"+O+":",g;return f.style.display="none",s.appendChild(f),f.src=String(p),g=f.contentWindow.document,g.open(),g.write(L("document.F=Object")),g.close(),g.F},G,U=function(){try{G=new ActiveXObject("htmlfile")}catch{}U=typeof document<"u"?document.domain&&G?I(G):B():I(G);for(var f=o.length;f--;)delete U[m][o[f]];return U()};n[x]=!0,r.exports=Object.create||function(p,g){var S;return p!==null?(T[m]=t(p),S=new T,T[m]=null,S[x]=p):S=U(),g===void 0?S:i.f(S,g)}},30:(r,u,e)=>{"use strict";var t=e(6893),i=e(3315),o=e(4466),n=e(3770),s=e(380),a=e(7137);u.f=t&&!i?Object.defineProperties:function(l,d){n(l);for(var m=s(d),O=a(d),x=O.length,T=0,L;x>T;)o.f(l,L=O[T++],m[L]);return l}},4466:(r,u,e)=>{"use strict";var t=e(6893),i=e(9622),o=e(3315),n=e(3770),s=e(2344),a=TypeError,c=Object.defineProperty,l=Object.getOwnPropertyDescriptor,d="enumerable",m="configurable",O="writable";u.f=t?o?function(T,L,I){if(n(T),L=s(L),n(I),typeof T=="function"&&L==="prototype"&&"value"in I&&O in I&&!I[O]){var B=l(T,L);B&&B[O]&&(T[L]=I.value,I={configurable:m in I?I[m]:B[m],enumerable:d in I?I[d]:B[d],writable:!1})}return c(T,L,I)}:c:function(T,L,I){if(n(T),L=s(L),n(I),i)try{return c(T,L,I)}catch{}if("get"in I||"set"in I)throw new a("Accessors not supported");return"value"in I&&(T[L]=I.value),T}},9304:(r,u,e)=>{"use strict";var t=e(6893),i=e(9944),o=e(4416),n=e(9123),s=e(380),a=e(2344),c=e(4418),l=e(9622),d=Object.getOwnPropertyDescriptor;u.f=t?d:function(O,x){if(O=s(O),x=a(x),l)try{return d(O,x)}catch{}if(c(O,x))return n(!i(o.f,O,x),O[x])}},5629:(r,u,e)=>{"use strict";var t=e(1843),i=e(1274),o=i.concat("length","prototype");u.f=Object.getOwnPropertyNames||function(s){return t(s,o)}},156:(r,u)=>{"use strict";u.f=Object.getOwnPropertySymbols},4578:(r,u,e)=>{"use strict";var t=e(6881);r.exports=t({}.isPrototypeOf)},1843:(r,u,e)=>{"use strict";var t=e(6881),i=e(4418),o=e(380),n=e(1458).indexOf,s=e(7588),a=t([].push);r.exports=function(c,l){var d=o(c),m=0,O=[],x;for(x in d)!i(s,x)&&i(d,x)&&a(O,x);for(;l.length>m;)i(d,x=l[m++])&&(~n(O,x)||a(O,x));return O}},7137:(r,u,e)=>{"use strict";var t=e(1843),i=e(1274);r.exports=Object.keys||function(n){return t(n,i)}},4416:(r,u)=>{"use strict";var e={}.propertyIsEnumerable,t=Object.getOwnPropertyDescriptor,i=t&&!e.call({1:2},1);u.f=i?function(n){var s=t(this,n);return!!s&&s.enumerable}:e},2287:(r,u,e)=>{"use strict";var t=e(9944),i=e(4188),o=e(831),n=TypeError;r.exports=function(s,a){var c,l;if(a==="string"&&i(c=s.toString)&&!o(l=t(c,s))||i(c=s.valueOf)&&!o(l=t(c,s))||a!=="string"&&i(c=s.toString)&&!o(l=t(c,s)))return l;throw new n("Can't convert object to primitive value")}},3168:(r,u,e)=>{"use strict";var t=e(5604),i=e(6881),o=e(5629),n=e(156),s=e(3770),a=i([].concat);r.exports=t("Reflect","ownKeys")||function(l){var d=o.f(s(l)),m=n.f;return m?a(d,m(l)):d}},4721:(r,u,e)=>{"use strict";var t=e(9944),i=e(3770),o=e(4188),n=e(8689),s=e(9342),a=TypeError;r.exports=function(c,l){var d=c.exec;if(o(d)){var m=t(d,c,l);return m!==null&&i(m),m}if(n(c)==="RegExp")return t(s,c,l);throw new a("RegExp#exec called on incompatible receiver")}},9342:(r,u,e)=>{"use strict";var t=e(9944),i=e(6881),o=e(2618),n=e(4932),s=e(5976),a=e(746),c=e(7065),l=e(3086).get,d=e(6676),m=e(4609),O=a("native-string-replace",String.prototype.replace),x=RegExp.prototype.exec,T=x,L=i("".charAt),I=i("".indexOf),B=i("".replace),G=i("".slice),U=function(){var S=/a/,A=/b*/g;return t(x,S,"a"),t(x,A,"a"),S.lastIndex!==0||A.lastIndex!==0}(),f=s.BROKEN_CARET,p=/()??/.exec("")[1]!==void 0,g=U||p||f||d||m;g&&(T=function(A){var N=this,j=l(N),K=o(A),X=j.raw,J,Q,H,W,V,b,y;if(X)return X.lastIndex=N.lastIndex,J=t(T,X,K),N.lastIndex=X.lastIndex,J;var h=j.groups,w=f&&N.sticky,v=t(n,N),E=N.source,C=0,R=K;if(w&&(v=B(v,"y",""),I(v,"g")===-1&&(v+="g"),R=G(K,N.lastIndex),N.lastIndex>0&&(!N.multiline||N.multiline&&L(K,N.lastIndex-1)!==`
76
+ `}}customElements.get(R)===void 0&&customElements.define(R,k);const z=[{name:"loader",defaultElement:document.createElement(E)},{name:"error",defaultElement:document.createElement(R)}],te=["error","loading"],q={error:"error",loading:"loader"},ie=({src:Z,elementNameSuffix:P})=>(0,t.sH)(void 0,void 0,void 0,function*(){var F,$,_,D,Y,ee,re,ce,fe,ue,ne,Oe,xe,ye,me;window.bwell||(window.bwell=new v);const he=`bwell-${P}`;if(customElements.get(he)!==void 0)return;class Se extends i{constructor(){super(),F.add(this),$.set(this,(0,l.Ak)()),_.set(this,void 0),D.set(this,document.createElement("feature-app-loader")),Y.set(this,new f.EventEmitter),ee.set(this,void 0),re.set(this,void 0),ce.set(this,void 0),fe.set(this,void 0),ue.set(this,void 0),ne.set(this,void 0),this.attachShadow({mode:"open"});const oe=new Q(z).attachToShadowRoot(this.shadowRoot);oe.addEventListener("visibilitychange",({visibility:de,container:Ee,name:we})=>{we==="error"&&de==="visible"&&window.bwell._registerEmbeddableContent(Ee),(0,t.gn)(this,D,"f").style.display=de==="hidden"?"unset":"hidden"}),(0,t.GG)(this,ne,{slots:oe,attributes:new U().bindTo(this),loaderEventEmitter:(0,t.gn)(this,Y,"f")},"f"),(0,t.GG)(this,ee,(0,t.gn)(this,F,"m",Oe).bind(this),"f"),(0,t.GG)(this,re,(0,t.gn)(this,F,"m",xe).bind(this),"f"),(0,t.GG)(this,ce,(0,t.gn)(this,F,"m",me).call(this,"error"),"f"),(0,t.GG)(this,fe,(0,t.gn)(this,F,"m",me).call(this,"loading"),"f")}connectedCallback(){return(0,t.sH)(this,void 0,void 0,function*(){(0,t.gn)(this,ce,"f").call(this,(0,t.gn)(this,ne,"f").attributes.get("error")),(0,t.gn)(this,fe,"f").call(this,(0,t.gn)(this,ne,"f").attributes.get("loading")),(0,t.gn)(this,ne,"f").slots.addEventListener("visibilitychange",(0,t.gn)(this,re,"f")),(0,t.gn)(this,ne,"f").attributes.addChangeListener("error",(0,t.gn)(this,ce,"f")),(0,t.gn)(this,ne,"f").attributes.addChangeListener("loading",(0,t.gn)(this,fe,"f")),(0,t.gn)(this,ne,"f").slots.showSlot("loader");try{yield window.bwell.validateLoad()}catch{(0,t.gn)(this,ne,"f").slots.showSlot("error")}(0,t.GG)(this,$,this.id||(0,t.gn)(this,$,"f"),"f"),(0,t.GG)(this,_,new c((0,t.gn)(this,$,"f")),"f"),(0,t.gn)(this,_,"f").registerDispatcher(oe=>this.dispatchEvent(oe)),window.bwell.isInitialized?(0,t.gn)(this,ee,"f").call(this):(window.bwell.once("initialized",(0,t.gn)(this,ee,"f")),window.bwell.once("error",()=>{(0,t.gn)(this,ne,"f").slots.showSlot("error")}))})}disconnectedCallback(){var oe;(0,t.gn)(this,Y,"f").emit("disconnect"),(0,t.gn)(this,ne,"f").slots.removeEventListener("visibilitychange",(0,t.gn)(this,re,"f")),(0,t.gn)(this,ne,"f").attributes.removeChangeListener("error",(0,t.gn)(this,ce,"f")),(0,t.gn)(this,ne,"f").attributes.removeChangeListener("loading",(0,t.gn)(this,fe,"f")),(oe=(0,t.gn)(this,_,"f"))===null||oe===void 0||oe.deregister(),(0,t.gn)(this,Y,"f").removeAllListeners()}}$=new WeakMap,_=new WeakMap,D=new WeakMap,Y=new WeakMap,ee=new WeakMap,re=new WeakMap,ce=new WeakMap,fe=new WeakMap,ue=new WeakMap,ne=new WeakMap,F=new WeakSet,Oe=function(){(0,t.gn)(this,D,"f").setAttribute("featureAppId",`bwell-embeddable:${he}`),(0,t.gn)(this,D,"f").setAttribute("src",Z),(0,t.gn)(this,D,"f").config={id:(0,t.gn)(this,$,"f"),name:P,elementName:he,utils:(0,t.gn)(this,ne,"f")},this.shadowRoot.appendChild((0,t.gn)(this,D,"f"))},xe=function({visibility:oe,name:de}){(0,t.gn)(this,D,"f").style.display=oe==="hidden"?"unset":"hidden"},ye=function(oe){(0,t.gn)(this,ue,"f")(),(0,t.GG)(this,ue,void 0,"f")},me=function(oe){return de=>{const Ee=te.findIndex(ve=>ve===oe);if(!te.slice(0,Ee).some(ve=>(0,t.gn)(this,ne,"f").attributes.get(ve)!==null)){if(de!==null)(0,t.gn)(this,ue,"f")&&(0,t.gn)(this,F,"m",ye).call(this,oe),(0,t.GG)(this,ue,(0,t.gn)(this,ne,"f").slots.showSlotLocked(q[oe]),"f");else if(de===null&&(0,t.gn)(this,ue,"f")){(0,t.gn)(this,F,"m",ye).call(this,oe);const ve=te.find(Te=>(0,t.gn)(this,ne,"f").attributes.get(Te)!==null);ve&&(0,t.GG)(this,ue,(0,t.gn)(this,ne,"f").slots.showSlotLocked(q[ve]),"f")}}}},customElements.define(he,Se)}),se={rE:"1.508.6"},ae="composite";var le=e(7321);ie({src:`https://embeddables.prod.icanbwell.com/${ae}/${se.rE}/scripts/embeddable.federated.js`,elementNameSuffix:ae})},992:(r,u,e)=>{"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.Broadcaster=void 0;var t=e(46),i=function(){function o(n,s){if(s===void 0&&(s=0),this.emitter=new t.EventEmitter,typeof n>"u"||n.length===0)throw new Error("Broadcaster must have a name");this._name=n,this.emitter.setMaxListeners(s)}return Object.defineProperty(o.prototype,"name",{get:function(){return this._name},enumerable:!1,configurable:!0}),o.prototype.emit=function(n){this.emitter.emit(this._name,n)},o.prototype.addListener=function(n){return this._addListener("addListener",n)},o.prototype.on=function(n){return this.addListener(n)},o.prototype.prependListener=function(n){return this._addListener("prependListener",n)},o.prototype.once=function(n){return this._addListener("once",n)},o.prototype.prependOnceListener=function(n){return this._addListener("prependOnceListener",n)},o.prototype.removeListener=function(n){this._proxyListener("removeListener",n)},o.prototype.off=function(n){this.removeListener(n)},o.prototype.removeAllListeners=function(){this.emitter.removeAllListeners(this._name)},o.prototype.getMaxListeners=function(){return this.emitter.getMaxListeners()},o.prototype.setMaxListeners=function(n){this.emitter.setMaxListeners(n)},o.prototype.getEventEmitter=function(){return this.emitter},o.prototype.listeners=function(){return this.emitter.listeners(this._name)},o.prototype.rawListeners=function(){return this.emitter.rawListeners(this._name)},o.prototype.listenerCount=function(){return this.emitter.listenerCount(this._name)},o.prototype._proxyListener=function(n,s){this.emitter[n](this._name,s)},o.prototype._createUnsubscribe=function(n){var s=this;return function(){s.emitter.removeListener(s._name,n)}},o.prototype._addListener=function(n,s){return this._proxyListener(n,s),this._createUnsubscribe(s)},o.prototype.destroy=function(){this.emitter.removeAllListeners()},o}();u.Broadcaster=i},9987:function(r,u,e){"use strict";var t=this&&this.__extends||function(){var s=function(a,c){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,d){l.__proto__=d}||function(l,d){for(var m in d)Object.prototype.hasOwnProperty.call(d,m)&&(l[m]=d[m])},s(a,c)};return function(a,c){if(typeof c!="function"&&c!==null)throw new TypeError("Class extends value "+String(c)+" is not a constructor or null");s(a,c);function l(){this.constructor=a}a.prototype=c===null?Object.create(c):(l.prototype=c.prototype,new l)}}();Object.defineProperty(u,"__esModule",{value:!0}),u.Channel=void 0;var i=e(992),o=e(1987),n=function(s){t(a,s);function a(c,l){l===void 0&&(l=0);var d=s.call(this,c,l)||this;return d.topics={},d._onTopicDestroyed=d._onTopicDestroyed.bind(d),d._onTopicEmit=d._onTopicEmit.bind(d),d}return a.prototype.emit=function(c){var l={channel:this.name,topic:"*",payload:c};s.prototype.emit.call(this,l)},a.prototype.topic=function(c){var l=this.topics[c];return typeof l>"u"&&(l=this.topics[c]=new o.Topic(c,this.name,this.getMaxListeners()),l.getEventEmitter().on("topic_destroyed",this._onTopicDestroyed),l.on(this._onTopicEmit)),l},a.prototype.hasTopic=function(c){return Boolean(this.topics[c])},a.prototype.removeTopic=function(c){var l=this.topics[c];return typeof l<"u"?(delete this.topics[c],l.destroy(),!0):!1},a.prototype.getAllTopics=function(){return Object.values(this.topics)},a.prototype._onTopicEmit=function(c){s.prototype.emit.call(this,c)},a.prototype._onTopicDestroyed=function(c){delete this.topics[c]},a.prototype.destroy=function(){for(var c in this.topics)this.removeTopic(c);this.emitter.emit("channel_destroyed",this.name),s.prototype.destroy.call(this)},a}(i.Broadcaster);u.Channel=n},5447:(r,u,e)=>{"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.EventBus=void 0;var t=e(9987),i=function(){function o(n){this.channels={},n=typeof n>"u"?{}:n,this._maxListeners=n.maxListeners===void 0?0:n.maxListeners,this.onChannelDestroyed=this.onChannelDestroyed.bind(this),this.createMainChannel(),this.onChannelEmit=this.onChannelEmit.bind(this)}return o.prototype.createMainChannel=function(){var n=this;this.defaultChannel=new t.Channel("*",this._maxListeners),this.channels["*"]=this.defaultChannel,this.defaultChannel.getEventEmitter().on("channel_destroyed",function(){n.createMainChannel()})},o.prototype.mainChannel=function(){return this.defaultChannel},o.prototype.allChannels=function(){return this.mainChannel()},o.prototype.channel=function(n){var s=this.channels[n];return typeof s>"u"&&(s=this.channels[n]=new t.Channel(n,this._maxListeners),s.on(this.onChannelEmit),s.getEventEmitter().on("channel_destroyed",this.onChannelDestroyed)),s},o.prototype.hasChannel=function(n){return Boolean(this.channels[n])},o.prototype.removeChannel=function(n){if(n==="*")throw new Error("Can't remove default channel");var s=this.channels[n];return typeof s<"u"?(s.destroy(),!0):!1},o.prototype.onChannelEmit=function(n){var s=n.topic;if(this.defaultChannel.hasTopic(s)){var a={topic:n.topic,channel:n.channel,payload:n.payload};this.defaultChannel.topic(s).getEventEmitter().emit(s,a)}this.defaultChannel.getEventEmitter().emit(this.defaultChannel.name,n)},o.prototype.onChannelDestroyed=function(n){delete this.channels[n]},o.prototype.getAllChannels=function(){return Object.values(this.channels)},o.prototype.destroy=function(){for(var n in this.channels)this.channels[n].destroy()},o}();u.EventBus=i},4032:function(r,u,e){"use strict";var t=this&&this.__createBinding||(Object.create?function(o,n,s,a){a===void 0&&(a=s),Object.defineProperty(o,a,{enumerable:!0,get:function(){return n[s]}})}:function(o,n,s,a){a===void 0&&(a=s),o[a]=n[s]}),i=this&&this.__exportStar||function(o,n){for(var s in o)s!=="default"&&!Object.prototype.hasOwnProperty.call(n,s)&&t(n,o,s)};Object.defineProperty(u,"__esModule",{value:!0}),i(e(992),u),i(e(5447),u),i(e(9987),u),i(e(1987),u)},1987:function(r,u,e){"use strict";var t=this&&this.__extends||function(){var n=function(s,a){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,l){c.__proto__=l}||function(c,l){for(var d in l)Object.prototype.hasOwnProperty.call(l,d)&&(c[d]=l[d])},n(s,a)};return function(s,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");n(s,a);function c(){this.constructor=s}s.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}();Object.defineProperty(u,"__esModule",{value:!0}),u.Topic=void 0;var i=e(992),o=function(n){t(s,n);function s(a,c,l){l===void 0&&(l=0);var d=n.call(this,a,l)||this;return d.channel=c,d}return s.prototype.emit=function(a){var c={channel:this.channel,topic:this.name,payload:a};n.prototype.emit.call(this,c)},s.prototype.destroy=function(){this.emitter.emit("topic_destroyed",this.name),n.prototype.destroy.call(this)},s}(i.Broadcaster);u.Topic=o},46:r=>{"use strict";var u=typeof Reflect=="object"?Reflect:null,e=u&&typeof u.apply=="function"?u.apply:function(p,g,S){return Function.prototype.apply.call(p,g,S)},t;u&&typeof u.ownKeys=="function"?t=u.ownKeys:Object.getOwnPropertySymbols?t=function(p){return Object.getOwnPropertyNames(p).concat(Object.getOwnPropertySymbols(p))}:t=function(p){return Object.getOwnPropertyNames(p)};function i(f){console&&console.warn&&console.warn(f)}var o=Number.isNaN||function(p){return p!==p};function n(){n.init.call(this)}r.exports=n,r.exports.once=B,n.EventEmitter=n,n.prototype._events=void 0,n.prototype._eventsCount=0,n.prototype._maxListeners=void 0;var s=10;function a(f){if(typeof f!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof f)}Object.defineProperty(n,"defaultMaxListeners",{enumerable:!0,get:function(){return s},set:function(f){if(typeof f!="number"||f<0||o(f))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+f+".");s=f}}),n.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},n.prototype.setMaxListeners=function(p){if(typeof p!="number"||p<0||o(p))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+p+".");return this._maxListeners=p,this};function c(f){return f._maxListeners===void 0?n.defaultMaxListeners:f._maxListeners}n.prototype.getMaxListeners=function(){return c(this)},n.prototype.emit=function(p){for(var g=[],S=1;S<arguments.length;S++)g.push(arguments[S]);var A=p==="error",N=this._events;if(N!==void 0)A=A&&N.error===void 0;else if(!A)return!1;if(A){var j;if(g.length>0&&(j=g[0]),j instanceof Error)throw j;var K=new Error("Unhandled error."+(j?" ("+j.message+")":""));throw K.context=j,K}var X=N[p];if(X===void 0)return!1;if(typeof X=="function")e(X,this,g);else for(var J=X.length,Q=T(X,J),S=0;S<J;++S)e(Q[S],this,g);return!0};function l(f,p,g,S){var A,N,j;if(a(g),N=f._events,N===void 0?(N=f._events=Object.create(null),f._eventsCount=0):(N.newListener!==void 0&&(f.emit("newListener",p,g.listener?g.listener:g),N=f._events),j=N[p]),j===void 0)j=N[p]=g,++f._eventsCount;else if(typeof j=="function"?j=N[p]=S?[g,j]:[j,g]:S?j.unshift(g):j.push(g),A=c(f),A>0&&j.length>A&&!j.warned){j.warned=!0;var K=new Error("Possible EventEmitter memory leak detected. "+j.length+" "+String(p)+" listeners added. Use emitter.setMaxListeners() to increase limit");K.name="MaxListenersExceededWarning",K.emitter=f,K.type=p,K.count=j.length,i(K)}return f}n.prototype.addListener=function(p,g){return l(this,p,g,!1)},n.prototype.on=n.prototype.addListener,n.prototype.prependListener=function(p,g){return l(this,p,g,!0)};function d(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function m(f,p,g){var S={fired:!1,wrapFn:void 0,target:f,type:p,listener:g},A=d.bind(S);return A.listener=g,S.wrapFn=A,A}n.prototype.once=function(p,g){return a(g),this.on(p,m(this,p,g)),this},n.prototype.prependOnceListener=function(p,g){return a(g),this.prependListener(p,m(this,p,g)),this},n.prototype.removeListener=function(p,g){var S,A,N,j,K;if(a(g),A=this._events,A===void 0)return this;if(S=A[p],S===void 0)return this;if(S===g||S.listener===g)--this._eventsCount===0?this._events=Object.create(null):(delete A[p],A.removeListener&&this.emit("removeListener",p,S.listener||g));else if(typeof S!="function"){for(N=-1,j=S.length-1;j>=0;j--)if(S[j]===g||S[j].listener===g){K=S[j].listener,N=j;break}if(N<0)return this;N===0?S.shift():L(S,N),S.length===1&&(A[p]=S[0]),A.removeListener!==void 0&&this.emit("removeListener",p,K||g)}return this},n.prototype.off=n.prototype.removeListener,n.prototype.removeAllListeners=function(p){var g,S,A;if(S=this._events,S===void 0)return this;if(S.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):S[p]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete S[p]),this;if(arguments.length===0){var N=Object.keys(S),j;for(A=0;A<N.length;++A)j=N[A],j!=="removeListener"&&this.removeAllListeners(j);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(g=S[p],typeof g=="function")this.removeListener(p,g);else if(g!==void 0)for(A=g.length-1;A>=0;A--)this.removeListener(p,g[A]);return this};function O(f,p,g){var S=f._events;if(S===void 0)return[];var A=S[p];return A===void 0?[]:typeof A=="function"?g?[A.listener||A]:[A]:g?I(A):T(A,A.length)}n.prototype.listeners=function(p){return O(this,p,!0)},n.prototype.rawListeners=function(p){return O(this,p,!1)},n.listenerCount=function(f,p){return typeof f.listenerCount=="function"?f.listenerCount(p):x.call(f,p)},n.prototype.listenerCount=x;function x(f){var p=this._events;if(p!==void 0){var g=p[f];if(typeof g=="function")return 1;if(g!==void 0)return g.length}return 0}n.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]};function T(f,p){for(var g=new Array(p),S=0;S<p;++S)g[S]=f[S];return g}function L(f,p){for(;p+1<f.length;p++)f[p]=f[p+1];f.pop()}function I(f){for(var p=new Array(f.length),g=0;g<p.length;++g)p[g]=f[g].listener||f[g];return p}function B(f,p){return new Promise(function(g,S){function A(j){f.removeListener(p,N),S(j)}function N(){typeof f.removeListener=="function"&&f.removeListener("error",A),g([].slice.call(arguments))}U(f,p,N,{once:!0}),p!=="error"&&G(f,A,{once:!0})})}function G(f,p,g){typeof f.on=="function"&&U(f,"error",p,g)}function U(f,p,g,S){if(typeof f.on=="function")S.once?f.once(p,g):f.on(p,g);else if(typeof f.addEventListener=="function")f.addEventListener(p,function A(N){S.once&&f.removeEventListener(p,A),g(N)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof f)}},7321:(r,u,e)=>{"use strict";var t=e(3030);r.exports=t},9283:(r,u,e)=>{"use strict";e(8376),e(4293),e(8715);var t=e(2564);r.exports=t("String","replaceAll")},4977:(r,u,e)=>{"use strict";var t=e(4188),i=e(3174),o=TypeError;r.exports=function(n){if(t(n))return n;throw new o(i(n)+" is not a function")}},154:(r,u,e)=>{"use strict";var t=e(4212).charAt;r.exports=function(i,o,n){return o+(n?t(i,o).length:1)}},3770:(r,u,e)=>{"use strict";var t=e(831),i=String,o=TypeError;r.exports=function(n){if(t(n))return n;throw new o(i(n)+" is not an object")}},1458:(r,u,e)=>{"use strict";var t=e(380),i=e(675),o=e(9389),n=function(s){return function(a,c,l){var d=t(a),m=o(d);if(m===0)return!s&&-1;var O=i(l,m),x;if(s&&c!==c){for(;m>O;)if(x=d[O++],x!==x)return!0}else for(;m>O;O++)if((s||O in d)&&d[O]===c)return s||O||0;return!s&&-1}};r.exports={includes:n(!0),indexOf:n(!1)}},8689:(r,u,e)=>{"use strict";var t=e(6881),i=t({}.toString),o=t("".slice);r.exports=function(n){return o(i(n),8,-1)}},5438:(r,u,e)=>{"use strict";var t=e(9345),i=e(4188),o=e(8689),n=e(4282),s=n("toStringTag"),a=Object,c=o(function(){return arguments}())==="Arguments",l=function(d,m){try{return d[m]}catch{}};r.exports=t?o:function(d){var m,O,x;return d===void 0?"Undefined":d===null?"Null":typeof(O=l(m=a(d),s))=="string"?O:c?o(m):(x=o(m))==="Object"&&i(m.callee)?"Arguments":x}},8657:(r,u,e)=>{"use strict";var t=e(4418),i=e(3168),o=e(9304),n=e(4466);r.exports=function(s,a,c){for(var l=i(a),d=n.f,m=o.f,O=0;O<l.length;O++){var x=l[O];!t(s,x)&&!(c&&t(c,x))&&d(s,x,m(a,x))}}},8088:(r,u,e)=>{"use strict";var t=e(6893),i=e(4466),o=e(9123);r.exports=t?function(n,s,a){return i.f(n,s,o(1,a))}:function(n,s,a){return n[s]=a,n}},9123:r=>{"use strict";r.exports=function(u,e){return{enumerable:!(u&1),configurable:!(u&2),writable:!(u&4),value:e}}},7509:(r,u,e)=>{"use strict";var t=e(4188),i=e(4466),o=e(4530),n=e(4798);r.exports=function(s,a,c,l){l||(l={});var d=l.enumerable,m=l.name!==void 0?l.name:a;if(t(c)&&o(c,m,l),l.global)d?s[a]=c:n(a,c);else{try{l.unsafe?s[a]&&(d=!0):delete s[a]}catch{}d?s[a]=c:i.f(s,a,{value:c,enumerable:!1,configurable:!l.nonConfigurable,writable:!l.nonWritable})}return s}},4798:(r,u,e)=>{"use strict";var t=e(1488),i=Object.defineProperty;r.exports=function(o,n){try{i(t,o,{value:n,configurable:!0,writable:!0})}catch{t[o]=n}return n}},6893:(r,u,e)=>{"use strict";var t=e(5234);r.exports=!t(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7})},5926:(r,u,e)=>{"use strict";var t=e(1488),i=e(831),o=t.document,n=i(o)&&i(o.createElement);r.exports=function(s){return n?o.createElement(s):{}}},4109:r=>{"use strict";r.exports=typeof navigator<"u"&&String(navigator.userAgent)||""},3749:(r,u,e)=>{"use strict";var t=e(1488),i=e(4109),o=t.process,n=t.Deno,s=o&&o.versions||n&&n.version,a=s&&s.v8,c,l;a&&(c=a.split("."),l=c[0]>0&&c[0]<4?1:+(c[0]+c[1])),!l&&i&&(c=i.match(/Edge\/(\d+)/),(!c||c[1]>=74)&&(c=i.match(/Chrome\/(\d+)/),c&&(l=+c[1]))),r.exports=l},2564:(r,u,e)=>{"use strict";var t=e(1488),i=e(6881);r.exports=function(o,n){return i(t[o].prototype[n])}},1274:r=>{"use strict";r.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},5613:(r,u,e)=>{"use strict";var t=e(1488),i=e(9304).f,o=e(8088),n=e(7509),s=e(4798),a=e(8657),c=e(8489);r.exports=function(l,d){var m=l.target,O=l.global,x=l.stat,T,L,I,B,G,U;if(O?L=t:x?L=t[m]||s(m,{}):L=t[m]&&t[m].prototype,L)for(I in d){if(G=d[I],l.dontCallGetSet?(U=i(L,I),B=U&&U.value):B=L[I],T=c(O?I:m+(x?".":"#")+I,l.forced),!T&&B!==void 0){if(typeof G==typeof B)continue;a(G,B)}(l.sham||B&&B.sham)&&o(G,"sham",!0),n(L,I,G,l)}}},5234:r=>{"use strict";r.exports=function(u){try{return!!u()}catch{return!0}}},467:(r,u,e)=>{"use strict";e(8376);var t=e(9944),i=e(7509),o=e(9342),n=e(5234),s=e(4282),a=e(8088),c=s("species"),l=RegExp.prototype;r.exports=function(d,m,O,x){var T=s(d),L=!n(function(){var U={};return U[T]=function(){return 7},""[d](U)!==7}),I=L&&!n(function(){var U=!1,f=/a/;return d==="split"&&(f={},f.constructor={},f.constructor[c]=function(){return f},f.flags="",f[T]=/./[T]),f.exec=function(){return U=!0,null},f[T](""),!U});if(!L||!I||O){var B=/./[T],G=m(T,""[d],function(U,f,p,g,S){var A=f.exec;return A===o||A===l.exec?L&&!S?{done:!0,value:t(B,f,p,g)}:{done:!0,value:t(U,p,f,g)}:{done:!1}});i(String.prototype,d,G[0]),i(l,T,G[1])}x&&a(l[T],"sham",!0)}},646:(r,u,e)=>{"use strict";var t=e(9055),i=Function.prototype,o=i.apply,n=i.call;r.exports=typeof Reflect=="object"&&Reflect.apply||(t?n.bind(o):function(){return n.apply(o,arguments)})},9055:(r,u,e)=>{"use strict";var t=e(5234);r.exports=!t(function(){var i=function(){}.bind();return typeof i!="function"||i.hasOwnProperty("prototype")})},9944:(r,u,e)=>{"use strict";var t=e(9055),i=Function.prototype.call;r.exports=t?i.bind(i):function(){return i.apply(i,arguments)}},2735:(r,u,e)=>{"use strict";var t=e(6893),i=e(4418),o=Function.prototype,n=t&&Object.getOwnPropertyDescriptor,s=i(o,"name"),a=s&&function(){}.name==="something",c=s&&(!t||t&&n(o,"name").configurable);r.exports={EXISTS:s,PROPER:a,CONFIGURABLE:c}},6881:(r,u,e)=>{"use strict";var t=e(9055),i=Function.prototype,o=i.call,n=t&&i.bind.bind(o,o);r.exports=t?n:function(s){return function(){return o.apply(s,arguments)}}},5604:(r,u,e)=>{"use strict";var t=e(1488),i=e(4188),o=function(n){return i(n)?n:void 0};r.exports=function(n,s){return arguments.length<2?o(t[n]):t[n]&&t[n][s]}},2913:(r,u,e)=>{"use strict";var t=e(4977),i=e(4318);r.exports=function(o,n){var s=o[n];return i(s)?void 0:t(s)}},1113:(r,u,e)=>{"use strict";var t=e(6881),i=e(3628),o=Math.floor,n=t("".charAt),s=t("".replace),a=t("".slice),c=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,l=/\$([$&'`]|\d{1,2})/g;r.exports=function(d,m,O,x,T,L){var I=O+d.length,B=x.length,G=l;return T!==void 0&&(T=i(T),G=c),s(L,G,function(U,f){var p;switch(n(f,0)){case"$":return"$";case"&":return d;case"`":return a(m,0,O);case"'":return a(m,I);case"<":p=T[a(f,1,-1)];break;default:var g=+f;if(g===0)return U;if(g>B){var S=o(g/10);return S===0?U:S<=B?x[S-1]===void 0?n(f,1):x[S-1]+n(f,1):U}p=x[g-1]}return p===void 0?"":p})}},1488:function(r,u,e){"use strict";var t=function(i){return i&&i.Math===Math&&i};r.exports=t(typeof globalThis=="object"&&globalThis)||t(typeof window=="object"&&window)||t(typeof self=="object"&&self)||t(typeof e.g=="object"&&e.g)||t(typeof this=="object"&&this)||function(){return this}()||Function("return this")()},4418:(r,u,e)=>{"use strict";var t=e(6881),i=e(3628),o=t({}.hasOwnProperty);r.exports=Object.hasOwn||function(s,a){return o(i(s),a)}},7588:r=>{"use strict";r.exports={}},7458:(r,u,e)=>{"use strict";var t=e(5604);r.exports=t("document","documentElement")},9622:(r,u,e)=>{"use strict";var t=e(6893),i=e(5234),o=e(5926);r.exports=!t&&!i(function(){return Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a!==7})},7568:(r,u,e)=>{"use strict";var t=e(6881),i=e(5234),o=e(8689),n=Object,s=t("".split);r.exports=i(function(){return!n("z").propertyIsEnumerable(0)})?function(a){return o(a)==="String"?s(a,""):n(a)}:n},3029:(r,u,e)=>{"use strict";var t=e(6881),i=e(4188),o=e(2694),n=t(Function.toString);i(o.inspectSource)||(o.inspectSource=function(s){return n(s)}),r.exports=o.inspectSource},3086:(r,u,e)=>{"use strict";var t=e(5945),i=e(1488),o=e(831),n=e(8088),s=e(4418),a=e(2694),c=e(168),l=e(7588),d="Object already initialized",m=i.TypeError,O=i.WeakMap,x,T,L,I=function(f){return L(f)?T(f):x(f,{})},B=function(f){return function(p){var g;if(!o(p)||(g=T(p)).type!==f)throw new m("Incompatible receiver, "+f+" required");return g}};if(t||a.state){var G=a.state||(a.state=new O);G.get=G.get,G.has=G.has,G.set=G.set,x=function(f,p){if(G.has(f))throw new m(d);return p.facade=f,G.set(f,p),p},T=function(f){return G.get(f)||{}},L=function(f){return G.has(f)}}else{var U=c("state");l[U]=!0,x=function(f,p){if(s(f,U))throw new m(d);return p.facade=f,n(f,U,p),p},T=function(f){return s(f,U)?f[U]:{}},L=function(f){return s(f,U)}}r.exports={set:x,get:T,has:L,enforce:I,getterFor:B}},4188:r=>{"use strict";var u=typeof document=="object"&&document.all;r.exports=typeof u>"u"&&u!==void 0?function(e){return typeof e=="function"||e===u}:function(e){return typeof e=="function"}},8489:(r,u,e)=>{"use strict";var t=e(5234),i=e(4188),o=/#|\.prototype\./,n=function(d,m){var O=a[s(d)];return O===l?!0:O===c?!1:i(m)?t(m):!!m},s=n.normalize=function(d){return String(d).replace(o,".").toLowerCase()},a=n.data={},c=n.NATIVE="N",l=n.POLYFILL="P";r.exports=n},4318:r=>{"use strict";r.exports=function(u){return u==null}},831:(r,u,e)=>{"use strict";var t=e(4188);r.exports=function(i){return typeof i=="object"?i!==null:t(i)}},1942:r=>{"use strict";r.exports=!1},473:(r,u,e)=>{"use strict";var t=e(831),i=e(8689),o=e(4282),n=o("match");r.exports=function(s){var a;return t(s)&&((a=s[n])!==void 0?!!a:i(s)==="RegExp")}},6032:(r,u,e)=>{"use strict";var t=e(5604),i=e(4188),o=e(4578),n=e(9809),s=Object;r.exports=n?function(a){return typeof a=="symbol"}:function(a){var c=t("Symbol");return i(c)&&o(c.prototype,s(a))}},9389:(r,u,e)=>{"use strict";var t=e(7611);r.exports=function(i){return t(i.length)}},4530:(r,u,e)=>{"use strict";var t=e(6881),i=e(5234),o=e(4188),n=e(4418),s=e(6893),a=e(2735).CONFIGURABLE,c=e(3029),l=e(3086),d=l.enforce,m=l.get,O=String,x=Object.defineProperty,T=t("".slice),L=t("".replace),I=t([].join),B=s&&!i(function(){return x(function(){},"length",{value:8}).length!==8}),G=String(String).split("String"),U=r.exports=function(f,p,g){T(O(p),0,7)==="Symbol("&&(p="["+L(O(p),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),g&&g.getter&&(p="get "+p),g&&g.setter&&(p="set "+p),(!n(f,"name")||a&&f.name!==p)&&(s?x(f,"name",{value:p,configurable:!0}):f.name=p),B&&g&&n(g,"arity")&&f.length!==g.arity&&x(f,"length",{value:g.arity});try{g&&n(g,"constructor")&&g.constructor?s&&x(f,"prototype",{writable:!1}):f.prototype&&(f.prototype=void 0)}catch{}var S=d(f);return n(S,"source")||(S.source=I(G,typeof p=="string"?p:"")),f};Function.prototype.toString=U(function(){return o(this)&&m(this).source||c(this)},"toString")},142:r=>{"use strict";var u=Math.ceil,e=Math.floor;r.exports=Math.trunc||function(i){var o=+i;return(o>0?e:u)(o)}},7065:(r,u,e)=>{"use strict";var t=e(3770),i=e(30),o=e(1274),n=e(7588),s=e(7458),a=e(5926),c=e(168),l=">",d="<",m="prototype",O="script",x=c("IE_PROTO"),T=function(){},L=function(f){return d+O+l+f+d+"/"+O+l},I=function(f){f.write(L("")),f.close();var p=f.parentWindow.Object;return f=null,p},B=function(){var f=a("iframe"),p="java"+O+":",g;return f.style.display="none",s.appendChild(f),f.src=String(p),g=f.contentWindow.document,g.open(),g.write(L("document.F=Object")),g.close(),g.F},G,U=function(){try{G=new ActiveXObject("htmlfile")}catch{}U=typeof document<"u"?document.domain&&G?I(G):B():I(G);for(var f=o.length;f--;)delete U[m][o[f]];return U()};n[x]=!0,r.exports=Object.create||function(p,g){var S;return p!==null?(T[m]=t(p),S=new T,T[m]=null,S[x]=p):S=U(),g===void 0?S:i.f(S,g)}},30:(r,u,e)=>{"use strict";var t=e(6893),i=e(3315),o=e(4466),n=e(3770),s=e(380),a=e(7137);u.f=t&&!i?Object.defineProperties:function(l,d){n(l);for(var m=s(d),O=a(d),x=O.length,T=0,L;x>T;)o.f(l,L=O[T++],m[L]);return l}},4466:(r,u,e)=>{"use strict";var t=e(6893),i=e(9622),o=e(3315),n=e(3770),s=e(2344),a=TypeError,c=Object.defineProperty,l=Object.getOwnPropertyDescriptor,d="enumerable",m="configurable",O="writable";u.f=t?o?function(T,L,I){if(n(T),L=s(L),n(I),typeof T=="function"&&L==="prototype"&&"value"in I&&O in I&&!I[O]){var B=l(T,L);B&&B[O]&&(T[L]=I.value,I={configurable:m in I?I[m]:B[m],enumerable:d in I?I[d]:B[d],writable:!1})}return c(T,L,I)}:c:function(T,L,I){if(n(T),L=s(L),n(I),i)try{return c(T,L,I)}catch{}if("get"in I||"set"in I)throw new a("Accessors not supported");return"value"in I&&(T[L]=I.value),T}},9304:(r,u,e)=>{"use strict";var t=e(6893),i=e(9944),o=e(4416),n=e(9123),s=e(380),a=e(2344),c=e(4418),l=e(9622),d=Object.getOwnPropertyDescriptor;u.f=t?d:function(O,x){if(O=s(O),x=a(x),l)try{return d(O,x)}catch{}if(c(O,x))return n(!i(o.f,O,x),O[x])}},5629:(r,u,e)=>{"use strict";var t=e(1843),i=e(1274),o=i.concat("length","prototype");u.f=Object.getOwnPropertyNames||function(s){return t(s,o)}},156:(r,u)=>{"use strict";u.f=Object.getOwnPropertySymbols},4578:(r,u,e)=>{"use strict";var t=e(6881);r.exports=t({}.isPrototypeOf)},1843:(r,u,e)=>{"use strict";var t=e(6881),i=e(4418),o=e(380),n=e(1458).indexOf,s=e(7588),a=t([].push);r.exports=function(c,l){var d=o(c),m=0,O=[],x;for(x in d)!i(s,x)&&i(d,x)&&a(O,x);for(;l.length>m;)i(d,x=l[m++])&&(~n(O,x)||a(O,x));return O}},7137:(r,u,e)=>{"use strict";var t=e(1843),i=e(1274);r.exports=Object.keys||function(n){return t(n,i)}},4416:(r,u)=>{"use strict";var e={}.propertyIsEnumerable,t=Object.getOwnPropertyDescriptor,i=t&&!e.call({1:2},1);u.f=i?function(n){var s=t(this,n);return!!s&&s.enumerable}:e},2287:(r,u,e)=>{"use strict";var t=e(9944),i=e(4188),o=e(831),n=TypeError;r.exports=function(s,a){var c,l;if(a==="string"&&i(c=s.toString)&&!o(l=t(c,s))||i(c=s.valueOf)&&!o(l=t(c,s))||a!=="string"&&i(c=s.toString)&&!o(l=t(c,s)))return l;throw new n("Can't convert object to primitive value")}},3168:(r,u,e)=>{"use strict";var t=e(5604),i=e(6881),o=e(5629),n=e(156),s=e(3770),a=i([].concat);r.exports=t("Reflect","ownKeys")||function(l){var d=o.f(s(l)),m=n.f;return m?a(d,m(l)):d}},4721:(r,u,e)=>{"use strict";var t=e(9944),i=e(3770),o=e(4188),n=e(8689),s=e(9342),a=TypeError;r.exports=function(c,l){var d=c.exec;if(o(d)){var m=t(d,c,l);return m!==null&&i(m),m}if(n(c)==="RegExp")return t(s,c,l);throw new a("RegExp#exec called on incompatible receiver")}},9342:(r,u,e)=>{"use strict";var t=e(9944),i=e(6881),o=e(2618),n=e(4932),s=e(5976),a=e(746),c=e(7065),l=e(3086).get,d=e(6676),m=e(4609),O=a("native-string-replace",String.prototype.replace),x=RegExp.prototype.exec,T=x,L=i("".charAt),I=i("".indexOf),B=i("".replace),G=i("".slice),U=function(){var S=/a/,A=/b*/g;return t(x,S,"a"),t(x,A,"a"),S.lastIndex!==0||A.lastIndex!==0}(),f=s.BROKEN_CARET,p=/()??/.exec("")[1]!==void 0,g=U||p||f||d||m;g&&(T=function(A){var N=this,j=l(N),K=o(A),X=j.raw,J,Q,H,W,V,b,y;if(X)return X.lastIndex=N.lastIndex,J=t(T,X,K),N.lastIndex=X.lastIndex,J;var h=j.groups,w=f&&N.sticky,v=t(n,N),E=N.source,C=0,R=K;if(w&&(v=B(v,"y",""),I(v,"g")===-1&&(v+="g"),R=G(K,N.lastIndex),N.lastIndex>0&&(!N.multiline||N.multiline&&L(K,N.lastIndex-1)!==`
77
77
  `)&&(E="(?: "+E+")",R=" "+R,C++),Q=new RegExp("^(?:"+E+")",v)),p&&(Q=new RegExp("^"+E+"$(?!\\s)",v)),U&&(H=N.lastIndex),W=t(x,w?Q:N,R),w?W?(W.input=G(W.input,C),W[0]=G(W[0],C),W.index=N.lastIndex,N.lastIndex+=W[0].length):N.lastIndex=0:U&&W&&(N.lastIndex=N.global?W.index+W[0].length:H),p&&W&&W.length>1&&t(O,W[0],Q,function(){for(V=1;V<arguments.length-2;V++)arguments[V]===void 0&&(W[V]=void 0)}),W&&h)for(W.groups=b=c(null),V=0;V<h.length;V++)y=h[V],b[y[0]]=W[y[1]];return W}),r.exports=T},4932:(r,u,e)=>{"use strict";var t=e(3770);r.exports=function(){var i=t(this),o="";return i.hasIndices&&(o+="d"),i.global&&(o+="g"),i.ignoreCase&&(o+="i"),i.multiline&&(o+="m"),i.dotAll&&(o+="s"),i.unicode&&(o+="u"),i.unicodeSets&&(o+="v"),i.sticky&&(o+="y"),o}},3113:(r,u,e)=>{"use strict";var t=e(9944),i=e(4418),o=e(4578),n=e(4932),s=RegExp.prototype;r.exports=function(a){var c=a.flags;return c===void 0&&!("flags"in s)&&!i(a,"flags")&&o(s,a)?t(n,a):c}},5976:(r,u,e)=>{"use strict";var t=e(5234),i=e(1488),o=i.RegExp,n=t(function(){var c=o("a","y");return c.lastIndex=2,c.exec("abcd")!==null}),s=n||t(function(){return!o("a","y").sticky}),a=n||t(function(){var c=o("^r","gy");return c.lastIndex=2,c.exec("str")!==null});r.exports={BROKEN_CARET:a,MISSED_STICKY:s,UNSUPPORTED_Y:n}},6676:(r,u,e)=>{"use strict";var t=e(5234),i=e(1488),o=i.RegExp;r.exports=t(function(){var n=o(".","s");return!(n.dotAll&&n.test(`
78
78
  `)&&n.flags==="s")})},4609:(r,u,e)=>{"use strict";var t=e(5234),i=e(1488),o=i.RegExp;r.exports=t(function(){var n=o("(?<a>b)","g");return n.exec("b").groups.a!=="b"||"b".replace(n,"$<a>c")!=="bc"})},9509:(r,u,e)=>{"use strict";var t=e(4318),i=TypeError;r.exports=function(o){if(t(o))throw new i("Can't call method on "+o);return o}},168:(r,u,e)=>{"use strict";var t=e(746),i=e(6209),o=t("keys");r.exports=function(n){return o[n]||(o[n]=i(n))}},2694:(r,u,e)=>{"use strict";var t=e(1942),i=e(1488),o=e(4798),n="__core-js_shared__",s=r.exports=i[n]||o(n,{});(s.versions||(s.versions=[])).push({version:"3.37.1",mode:t?"pure":"global",copyright:"\xA9 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.37.1/LICENSE",source:"https://github.com/zloirock/core-js"})},746:(r,u,e)=>{"use strict";var t=e(2694);r.exports=function(i,o){return t[i]||(t[i]=o||{})}},4212:(r,u,e)=>{"use strict";var t=e(6881),i=e(6744),o=e(2618),n=e(9509),s=t("".charAt),a=t("".charCodeAt),c=t("".slice),l=function(d){return function(m,O){var x=o(n(m)),T=i(O),L=x.length,I,B;return T<0||T>=L?d?"":void 0:(I=a(x,T),I<55296||I>56319||T+1===L||(B=a(x,T+1))<56320||B>57343?d?s(x,T):I:d?c(x,T,T+2):(I-55296<<10)+(B-56320)+65536)}};r.exports={codeAt:l(!1),charAt:l(!0)}},8944:(r,u,e)=>{"use strict";var t=e(3749),i=e(5234),o=e(1488),n=o.String;r.exports=!!Object.getOwnPropertySymbols&&!i(function(){var s=Symbol("symbol detection");return!n(s)||!(Object(s)instanceof Symbol)||!Symbol.sham&&t&&t<41})},675:(r,u,e)=>{"use strict";var t=e(6744),i=Math.max,o=Math.min;r.exports=function(n,s){var a=t(n);return a<0?i(a+s,0):o(a,s)}},380:(r,u,e)=>{"use strict";var t=e(7568),i=e(9509);r.exports=function(o){return t(i(o))}},6744:(r,u,e)=>{"use strict";var t=e(142);r.exports=function(i){var o=+i;return o!==o||o===0?0:t(o)}},7611:(r,u,e)=>{"use strict";var t=e(6744),i=Math.min;r.exports=function(o){var n=t(o);return n>0?i(n,9007199254740991):0}},3628:(r,u,e)=>{"use strict";var t=e(9509),i=Object;r.exports=function(o){return i(t(o))}},290:(r,u,e)=>{"use strict";var t=e(9944),i=e(831),o=e(6032),n=e(2913),s=e(2287),a=e(4282),c=TypeError,l=a("toPrimitive");r.exports=function(d,m){if(!i(d)||o(d))return d;var O=n(d,l),x;if(O){if(m===void 0&&(m="default"),x=t(O,d,m),!i(x)||o(x))return x;throw new c("Can't convert object to primitive value")}return m===void 0&&(m="number"),s(d,m)}},2344:(r,u,e)=>{"use strict";var t=e(290),i=e(6032);r.exports=function(o){var n=t(o,"string");return i(n)?n:n+""}},9345:(r,u,e)=>{"use strict";var t=e(4282),i=t("toStringTag"),o={};o[i]="z",r.exports=String(o)==="[object z]"},2618:(r,u,e)=>{"use strict";var t=e(5438),i=String;r.exports=function(o){if(t(o)==="Symbol")throw new TypeError("Cannot convert a Symbol value to a string");return i(o)}},3174:r=>{"use strict";var u=String;r.exports=function(e){try{return u(e)}catch{return"Object"}}},6209:(r,u,e)=>{"use strict";var t=e(6881),i=0,o=Math.random(),n=t(1 .toString);r.exports=function(s){return"Symbol("+(s===void 0?"":s)+")_"+n(++i+o,36)}},9809:(r,u,e)=>{"use strict";var t=e(8944);r.exports=t&&!Symbol.sham&&typeof Symbol.iterator=="symbol"},3315:(r,u,e)=>{"use strict";var t=e(6893),i=e(5234);r.exports=t&&i(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42})},5945:(r,u,e)=>{"use strict";var t=e(1488),i=e(4188),o=t.WeakMap;r.exports=i(o)&&/native code/.test(String(o))},4282:(r,u,e)=>{"use strict";var t=e(1488),i=e(746),o=e(4418),n=e(6209),s=e(8944),a=e(9809),c=t.Symbol,l=i("wks"),d=a?c.for||c:c&&c.withoutSetter||n;r.exports=function(m){return o(l,m)||(l[m]=s&&o(c,m)?c[m]:d("Symbol."+m)),l[m]}},8376:(r,u,e)=>{"use strict";var t=e(5613),i=e(9342);t({target:"RegExp",proto:!0,forced:/./.exec!==i},{exec:i})},8715:(r,u,e)=>{"use strict";var t=e(5613),i=e(9944),o=e(6881),n=e(9509),s=e(4188),a=e(4318),c=e(473),l=e(2618),d=e(2913),m=e(3113),O=e(1113),x=e(4282),T=e(1942),L=x("replace"),I=TypeError,B=o("".indexOf),G=o("".replace),U=o("".slice),f=Math.max;t({target:"String",proto:!0},{replaceAll:function(g,S){var A=n(this),N,j,K,X,J,Q,H,W,V,b=0,y=0,h="";if(!a(g)){if(N=c(g),N&&(j=l(n(m(g))),!~B(j,"g")))throw new I("`.replaceAll` does not allow non-global regexes");if(K=d(g,L),K)return i(K,g,A,S);if(T&&N)return G(l(A),g,S)}for(X=l(A),J=l(g),Q=s(S),Q||(S=l(S)),H=J.length,W=f(1,H),b=B(X,J);b!==-1;)V=Q?l(S(J,b,X)):O(J,X,b,[],void 0,S),h+=U(X,y,b)+V,y=b+H,b=b+W>X.length?-1:B(X,J,b+W);return y<X.length&&(h+=U(X,y)),h}})},4293:(r,u,e)=>{"use strict";var t=e(646),i=e(9944),o=e(6881),n=e(467),s=e(5234),a=e(3770),c=e(4188),l=e(4318),d=e(6744),m=e(7611),O=e(2618),x=e(9509),T=e(154),L=e(2913),I=e(1113),B=e(4721),G=e(4282),U=G("replace"),f=Math.max,p=Math.min,g=o([].concat),S=o([].push),A=o("".indexOf),N=o("".slice),j=function(Q){return Q===void 0?Q:String(Q)},K=function(){return"a".replace(/./,"$0")==="$0"}(),X=function(){return/./[U]?/./[U]("a","$0")==="":!1}(),J=!s(function(){var Q=/./;return Q.exec=function(){var H=[];return H.groups={a:"7"},H},"".replace(Q,"$<a>")!=="7"});n("replace",function(Q,H,W){var V=X?"$":"$0";return[function(y,h){var w=x(this),v=l(y)?void 0:L(y,U);return v?i(v,y,w,h):i(H,O(w),y,h)},function(b,y){var h=a(this),w=O(b);if(typeof y=="string"&&A(y,V)===-1&&A(y,"$<")===-1){var v=W(H,h,w,y);if(v.done)return v.value}var E=c(y);E||(y=O(y));var C=h.global,R;C&&(R=h.unicode,h.lastIndex=0);for(var k=[],z;z=B(h,w),!(z===null||(S(k,z),!C));){var te=O(z[0]);te===""&&(h.lastIndex=T(w,m(h.lastIndex),R))}for(var q="",ie=0,se=0;se<k.length;se++){z=k[se];for(var ae=O(z[0]),le=f(p(d(z.index),w.length),0),Z=[],P,F=1;F<z.length;F++)S(Z,j(z[F]));var $=z.groups;if(E){var _=g([ae],Z,le,w);$!==void 0&&S(_,$),P=O(t(y,void 0,_))}else P=I(ae,w,le,Z,$,y);le>=ie&&(q+=N(w,ie,le)+P,ie=le+ae.length)}return q+N(w,ie)}]},!J||!K||X)},3030:(r,u,e)=>{"use strict";var t=e(9283);r.exports=t},6152:(r,u,e)=>{"use strict";e.d(u,{GG:()=>n,Tt:()=>t,gn:()=>o,sH:()=>i});function t(s,a){var c={};for(var l in s)Object.prototype.hasOwnProperty.call(s,l)&&a.indexOf(l)<0&&(c[l]=s[l]);if(s!=null&&typeof Object.getOwnPropertySymbols=="function")for(var d=0,l=Object.getOwnPropertySymbols(s);d<l.length;d++)a.indexOf(l[d])<0&&Object.prototype.propertyIsEnumerable.call(s,l[d])&&(c[l[d]]=s[l[d]]);return c}function i(s,a,c,l){function d(m){return m instanceof c?m:new c(function(O){O(m)})}return new(c||(c=Promise))(function(m,O){function x(I){try{L(l.next(I))}catch(B){O(B)}}function T(I){try{L(l.throw(I))}catch(B){O(B)}}function L(I){I.done?m(I.value):d(I.value).then(x,T)}L((l=l.apply(s,a||[])).next())})}function o(s,a,c,l){if(c==="a"&&!l)throw new TypeError("Private accessor was defined without a getter");if(typeof a=="function"?s!==a||!l:!a.has(s))throw new TypeError("Cannot read private member from an object whose class did not declare it");return c==="m"?l:c==="a"?l.call(s):l?l.value:a.get(s)}function n(s,a,c,l,d){if(l==="m")throw new TypeError("Private method is not writable");if(l==="a"&&!d)throw new TypeError("Private accessor was defined without a setter");if(typeof a=="function"?s!==a||!d:!a.has(s))throw new TypeError("Cannot write private member to an object whose class did not declare it");return l==="a"?d.call(s,c):d?d.value=c:a.set(s,c),c}},3059:(r,u,e)=>{"use strict";e.d(u,{C:()=>o,mO:()=>t});const t="embeddable-event-bus-key",i=1e5,o={rest:{endpoints:{big:"https://api-gateway.prod.icanbwell.com/identity"}}},n="healthCircle",s=""},5848:(r,u,e)=>{"use strict";e.r(u),e.d(u,{EventBus:()=>a});var t=e(4032);function i(c,l,d,m){if(d==="a"&&!m)throw new TypeError("Private accessor was defined without a getter");if(typeof l=="function"?c!==l||!m:!l.has(c))throw new TypeError("Cannot read private member from an object whose class did not declare it");return d==="m"?m:d==="a"?m.call(c):m?m.value:l.get(c)}var o,n;const s="default";class a{static getInstance(l){let d=l?i(this,o,"f",n)[l]:i(this,o,"f",n)[s];return d||(d=i(this,o,"f",n)[l||s]=new t.EventBus),d}}o=a,n={value:{}}},934:(r,u,e)=>{"use strict";e.d(u,{b:()=>i});var t=e(9226);class i extends Error{constructor(n,s){super(n,s),this.cause=s.cause,this.errorCode=s.errorCode}toJSON(){const{name:n,message:s,errorCode:a}=this;return{name:n,message:s,errorCode:a}}emitToNativeComponent(){return[t.ErrorCode.CLIENT_UNKNOWN,t.ErrorCode.TOKEN_EXCHANGE].includes(this.errorCode)}}},3758:(r,u,e)=>{"use strict";e.d(u,{O:()=>t});var t;(function(i){i.CLIENT_UNKNOWN="CLIENT_UNKNOWN",i.INSUFFICIENT_SERVICES="INSUFFICIENT_SERVICES",i.METHOD_CALLED_BEFORE_INITIALIZATION="METHOD_CALLED_BEFORE_INITIALIZATION",i.BWELL_INITIALIZATION="BWELL_INITIALIZATION",i.TOKEN_EXCHANGE="TOKEN_EXCHANGE",i.ROUTE_ACTION="ROUTE_ACTION",i.ROUTE_NAVIGATION_DELEGATE="ROUTE_NAVIGATION_DELEGATE",i.ROUTE_UNKNOWN="ROUTE_UNKNOWN",i.ROUTE_ELEMENT_UNKNOWN="ROUTE_ELEMENT_UNKNOWN",i.PROVIDER_UNDEFINED="PROVIDER_UNDEFINED",i.INSUFFICIENT_PERMISSIONS="INSUFFICIENT_PERMISSIONS",i.CONFIGURATION_ERROR="CONFIGURATION_ERROR",i.NETWORK="NETWORK",i.UNKNOWN="UNKNOWN"})(t||(t={}))},9226:(r,u,e)=>{"use strict";e.d(u,{ErrorCode:()=>t.O});var t=e(3758);const i="pagetransition"},9742:(r,u,e)=>{"use strict";e.d(u,{Ak:()=>n});let t=s=>crypto.getRandomValues(new Uint8Array(s)),i=(s,a,c)=>{let l=(2<<Math.log(s.length-1)/Math.LN2)-1,d=-~(1.6*l*a/s.length);return(m=a)=>{let O="";for(;;){let x=c(d),T=d;for(;T--;)if(O+=s[x[T]&l]||"",O.length===m)return O}}},o=(s,a=21)=>i(s,a,t),n=(s=21)=>crypto.getRandomValues(new Uint8Array(s)).reduce((a,c)=>(c&=63,c<36?a+=c.toString(36):c<62?a+=(c-26).toString(36).toUpperCase():c>62?a+="-":a+="_",a),"")}},ge={};function M(r){var u=ge[r];if(u!==void 0)return u.exports;var e=ge[r]={id:r,loaded:!1,exports:{}};return be[r].call(e.exports,e,e.exports,M),e.loaded=!0,e.exports}M.m=be,M.c=ge,M.n=r=>{var u=r&&r.__esModule?()=>r.default:()=>r;return M.d(u,{a:u}),u},(()=>{var r=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,u;M.t=function(e,t){if(t&1&&(e=this(e)),t&8||typeof e=="object"&&e&&(t&4&&e.__esModule||t&16&&typeof e.then=="function"))return e;var i=Object.create(null);M.r(i);var o={};u=u||[null,r({}),r([]),r(r)];for(var n=t&2&&e;typeof n=="object"&&!~u.indexOf(n);n=r(n))Object.getOwnPropertyNames(n).forEach(s=>o[s]=()=>e[s]);return o.default=()=>e,M.d(i,o),i}})(),M.d=(r,u)=>{for(var e in u)M.o(u,e)&&!M.o(r,e)&&Object.defineProperty(r,e,{enumerable:!0,get:u[e]})},M.f={},M.e=r=>Promise.all(Object.keys(M.f).reduce((u,e)=>(M.f[e](r,u),u),[])),M.u=r=>""+r+".index.js",M.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch{if(typeof window=="object")return window}}(),M.o=(r,u)=>Object.prototype.hasOwnProperty.call(r,u),(()=>{var r={},u="@icanbwell/composite:";M.l=(e,t,i,o)=>{if(r[e]){r[e].push(t);return}var n,s;if(i!==void 0)for(var a=document.getElementsByTagName("script"),c=0;c<a.length;c++){var l=a[c];if(l.getAttribute("src")==e||l.getAttribute("data-webpack")==u+i){n=l;break}}n||(s=!0,n=document.createElement("script"),n.charset="utf-8",n.timeout=120,M.nc&&n.setAttribute("nonce",M.nc),n.setAttribute("data-webpack",u+i),n.src=e),r[e]=[t];var d=(O,x)=>{n.onerror=n.onload=null,clearTimeout(m);var T=r[e];if(delete r[e],n.parentNode&&n.parentNode.removeChild(n),T&&T.forEach(L=>L(x)),O)return O(x)},m=setTimeout(d.bind(null,void 0,{type:"timeout",target:n}),12e4);n.onerror=d.bind(null,n.onerror),n.onload=d.bind(null,n.onload),s&&document.head.appendChild(n)}})(),M.r=r=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(r,"__esModule",{value:!0})},M.nmd=r=>(r.paths=[],r.children||(r.children=[]),r),(()=>{M.S={};var r={},u={};M.I=(e,t)=>{t||(t=[]);var i=u[e];if(i||(i=u[e]={}),!(t.indexOf(i)>=0)){if(t.push(i),r[e])return r[e];M.o(M.S,e)||(M.S[e]={});var o=M.S[e],n=d=>{typeof console<"u"&&console.warn&&console.warn(d)},s="@icanbwell/composite",a=(d,m,O,x)=>{var T=o[d]=o[d]||{},L=T[m];(!L||!L.loaded&&(!x!=!L.eager?x:s>L.from))&&(T[m]={get:O,from:s,eager:!!x})},c=d=>{var m=L=>n("Initialization of sharing external failed: "+L);try{var O=M(d);if(!O)return;var x=L=>L&&L.init&&L.init(M.S[e],t);if(O.then)return l.push(O.then(x,m));var T=x(O);if(T&&T.then)return l.push(T.catch(m))}catch(L){m(L)}},l=[];switch(e){case"default":a("@icanbwell/events","2.10.1",()=>()=>M(5848),1),a("@icanbwell/react-native-webview-invoke/browser","0.6.4",()=>()=>M(7800),1);break}return l.length?r[e]=Promise.all(l).then(()=>r[e]=1):r[e]=1}}})(),(()=>{var r;M.g.importScripts&&(r=M.g.location+"");var u=M.g.document;if(!r&&u&&(u.currentScript&&(r=u.currentScript.src),!r)){var e=u.getElementsByTagName("script");if(e.length)for(var t=e.length-1;t>-1&&(!r||!/^http(s?):/.test(r));)r=e[t--].src}if(!r)throw new Error("Automatic publicPath is not supported in this browser");r=r.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),M.p=r})(),(()=>{var r=b=>{var y=v=>v.split(".").map(E=>+E==E?+E:E),h=/^([^-+]+)?(?:-([^+]+))?(?:\+(.+))?$/.exec(b),w=h[1]?y(h[1]):[];return h[2]&&(w.length++,w.push.apply(w,y(h[2]))),h[3]&&(w.push([]),w.push.apply(w,y(h[3]))),w},u=(b,y)=>{b=r(b),y=r(y);for(var h=0;;){if(h>=b.length)return h<y.length&&(typeof y[h])[0]!="u";var w=b[h],v=(typeof w)[0];if(h>=y.length)return v=="u";var E=y[h],C=(typeof E)[0];if(v!=C)return v=="o"&&C=="n"||C=="s"||v=="u";if(v!="o"&&v!="u"&&w!=E)return w<E;h++}},e=b=>{var y=b[0],h="";if(b.length===1)return"*";if(y+.5){h+=y==0?">=":y==-1?"<":y==1?"^":y==2?"~":y>0?"=":"!=";for(var w=1,v=1;v<b.length;v++)w--,h+=(typeof(C=b[v]))[0]=="u"?"-":(w>0?".":"")+(w=2,C);return h}var E=[];for(v=1;v<b.length;v++){var C=b[v];E.push(C===0?"not("+R()+")":C===1?"("+R()+" || "+R()+")":C===2?E.pop()+" "+E.pop():e(C))}return R();function R(){return E.pop().replace(/^\((.+)\)$/,"$1")}},t=(b,y)=>{if(0 in b){y=r(y);var h=b[0],w=h<0;w&&(h=-h-1);for(var v=0,E=1,C=!0;;E++,v++){var R,k,z=E<b.length?(typeof b[E])[0]:"";if(v>=y.length||(k=(typeof(R=y[v]))[0])=="o")return!C||(z=="u"?E>h&&!w:z==""!=w);if(k=="u"){if(!C||z!="u")return!1}else if(C)if(z==k)if(E<=h){if(R!=b[E])return!1}else{if(w?R>b[E]:R<b[E])return!1;R!=b[E]&&(C=!1)}else if(z!="s"&&z!="n"){if(w||E<=h)return!1;C=!1,E--}else{if(E<=h||k<z!=w)return!1;C=!1}else z!="s"&&z!="n"&&(C=!1,E--)}}var te=[],q=te.pop.bind(te);for(v=1;v<b.length;v++){var ie=b[v];te.push(ie==1?q()|q():ie==2?q()&q():ie?t(ie,y):!q())}return!!q()},i=(b,y)=>{var h=M.S[b];if(!h||!M.o(h,y))throw new Error("Shared module "+y+" doesn't exist in shared scope "+b);return h},o=(b,w)=>{var h=b[w],w=Object.keys(h).reduce((v,E)=>!v||u(v,E)?E:v,0);return w&&h[w]},n=(b,y)=>{var h=b[y];return Object.keys(h).reduce((w,v)=>!w||!h[w].loaded&&u(w,v)?v:w,0)},s=(b,y,h,w)=>"Unsatisfied version "+h+" from "+(h&&b[y][h].from)+" of shared singleton module "+y+" (required "+e(w)+")",a=(b,y,h,w)=>{var v=n(b,h);return L(b[h][v])},c=(b,y,h,w)=>{var v=n(b,h);return t(w,v)||x(s(b,h,v,w)),L(b[h][v])},l=(b,y,h,w)=>{var v=n(b,h);if(!t(w,v))throw new Error(s(b,h,v,w));return L(b[h][v])},d=(b,v,h)=>{var w=b[v],v=Object.keys(w).reduce((E,C)=>t(h,C)&&(!E||u(E,C))?C:E,0);return v&&w[v]},m=(b,y,h,w)=>{var v=b[h];return"No satisfying version ("+e(w)+") of shared module "+h+" found in shared scope "+y+`.
79
79
  Available versions: `+Object.keys(v).map(E=>E+" from "+v[E].from).join(", ")},O=(b,y,h,w)=>{var v=d(b,h,w);if(v)return L(v);throw new Error(m(b,y,h,w))},x=b=>{typeof console<"u"&&console.warn&&console.warn(b)},T=(b,y,h,w)=>{x(m(b,y,h,w))},L=b=>(b.loaded=1,b.get()),I=b=>function(y,h,w,v){var E=M.I(y);return E&&E.then?E.then(b.bind(b,y,M.S[y],h,w,v)):b(y,M.S[y],h,w,v)},B=I((b,y,h)=>(i(b,h),L(o(y,h)))),G=I((b,y,h,w)=>y&&M.o(y,h)?L(o(y,h)):w()),U=I((b,y,h,w)=>(i(b,h),L(d(y,h,w)||T(y,b,h,w)||o(y,h)))),f=I((b,y,h)=>(i(b,h),a(y,b,h))),p=I((b,y,h,w)=>(i(b,h),c(y,b,h,w))),g=I((b,y,h,w)=>(i(b,h),O(y,b,h,w))),S=I((b,y,h,w)=>(i(b,h),l(y,b,h,w))),A=I((b,y,h,w,v)=>!y||!M.o(y,h)?v():L(d(y,h,w)||T(y,b,h,w)||o(y,h))),N=I((b,y,h,w)=>!y||!M.o(y,h)?w():a(y,b,h)),j=I((b,y,h,w,v)=>!y||!M.o(y,h)?v():c(y,b,h,w)),K=I((b,y,h,w,v)=>{var E=y&&M.o(y,h)&&d(y,h,w);return E?L(E):v()}),X=I((b,y,h,w,v)=>!y||!M.o(y,h)?v():l(y,b,h,w)),J={},Q={692:()=>j("default","@icanbwell/react-native-webview-invoke/browser",[2,0,6,2],()=>()=>M(7800)),8561:()=>j("default","@icanbwell/events",[3,0,0,1],()=>()=>M(5848))},H=[8561];H.forEach(b=>{M.m[b]=y=>{J[b]=0,delete M.c[b];var h=Q[b]();if(typeof h!="function")throw new Error("Shared module is not available for eager consumption: "+b);y.exports=h()}});var W={692:[692]},V={};M.f.consumes=(b,y)=>{M.o(W,b)&&W[b].forEach(h=>{if(M.o(J,h))return y.push(J[h]);if(!V[h]){var w=C=>{J[h]=0,M.m[h]=R=>{delete M.c[h],R.exports=C()}};V[h]=!0;var v=C=>{delete J[h],M.m[h]=R=>{throw delete M.c[h],C}};try{var E=Q[h]();E.then?y.push(J[h]=E.then(w).catch(v)):w(E)}catch(C){v(C)}}})}})(),(()=>{var r={792:0};M.f.j=(t,i)=>{var o=M.o(r,t)?r[t]:void 0;if(o!==0)if(o)i.push(o[2]);else if(t!=692){var n=new Promise((l,d)=>o=r[t]=[l,d]);i.push(o[2]=n);var s=M.p+M.u(t),a=new Error,c=l=>{if(M.o(r,t)&&(o=r[t],o!==0&&(r[t]=void 0),o)){var d=l&&(l.type==="load"?"missing":l.type),m=l&&l.target&&l.target.src;a.message="Loading chunk "+t+` failed.
package/native.js CHANGED
@@ -1 +1 @@
1
- import{jsx as a}from"react/jsx-runtime";import{ComponentView as o}from"@icanbwell/native-components";var s="@icanbwell/composite",p="1.508.4",c="icanbwell",v="module",l="index.js",m="types/index.d.ts",b="UNLICENSED",d={url:"https://github.com/icanbwell/ui-platform.git"},y={"*":{native:["types/native.d.ts"]}},u={lint:"eslint .","lint:eslint":"npm run lint"},w={"@icanbwell/native-components":"^3.2.0"},f={react:"^17.0.0 || ^18.0.0","react-dom":"^17.0.0 || ^18.0.0","react-native":"^0.71.2","react-native-webview":"^11.4.2"},O={"react-native":{optional:!0},react:{optional:!0},"react-dom":{optional:!0},"react-native-webview":{optional:!0}},j="0.700.3",D="@icanbwell/composite. repo version: 0.700.3",V={name:s,version:p,author:c,type:v,main:l,types:m,license:b,repository:d,typesVersions:y,scripts:u,dependencies:w,peerDependencies:f,peerDependenciesMeta:O,repoVersion:j,description:D};const g="composite";var h=Object.defineProperty,P=Object.defineProperties,x=Object.getOwnPropertyDescriptors,n=Object.getOwnPropertySymbols,C=Object.prototype.hasOwnProperty,E=Object.prototype.propertyIsEnumerable,i=(r,e,t)=>e in r?h(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,M=(r,e)=>{for(var t in e||(e={}))C.call(e,t)&&i(r,t,e[t]);if(n)for(var t of n(e))E.call(e,t)&&i(r,t,e[t]);return r},N=(r,e)=>P(r,x(e));const I=r=>a(o,N(M({},r),{version:V.version,name:g}));export{I as Composite};
1
+ import{jsx as a}from"react/jsx-runtime";import{ComponentView as o}from"@icanbwell/native-components";var s="@icanbwell/composite",p="1.508.6",c="icanbwell",v="module",l="index.js",m="types/index.d.ts",b="UNLICENSED",d={url:"https://github.com/icanbwell/ui-platform.git"},y={"*":{native:["types/native.d.ts"]}},u={lint:"eslint .","lint:eslint":"npm run lint"},w={"@icanbwell/native-components":"^3.2.0"},f={react:"^17.0.0 || ^18.0.0","react-dom":"^17.0.0 || ^18.0.0","react-native":"^0.71.2","react-native-webview":"^11.4.2"},O={"react-native":{optional:!0},react:{optional:!0},"react-dom":{optional:!0},"react-native-webview":{optional:!0}},j="0.700.3",D="@icanbwell/composite. repo version: 0.700.3",V={name:s,version:p,author:c,type:v,main:l,types:m,license:b,repository:d,typesVersions:y,scripts:u,dependencies:w,peerDependencies:f,peerDependenciesMeta:O,repoVersion:j,description:D};const g="composite";var h=Object.defineProperty,P=Object.defineProperties,x=Object.getOwnPropertyDescriptors,n=Object.getOwnPropertySymbols,C=Object.prototype.hasOwnProperty,E=Object.prototype.propertyIsEnumerable,i=(r,e,t)=>e in r?h(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,M=(r,e)=>{for(var t in e||(e={}))C.call(e,t)&&i(r,t,e[t]);if(n)for(var t of n(e))E.call(e,t)&&i(r,t,e[t]);return r},N=(r,e)=>P(r,x(e));const I=r=>a(o,N(M({},r),{version:V.version,name:g}));export{I as Composite};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@icanbwell/composite",
3
- "version": "1.508.4",
3
+ "version": "1.508.6",
4
4
  "author": "icanbwell",
5
5
  "type": "module",
6
6
  "main": "index.js",
package/218.index.js DELETED
@@ -1,31 +0,0 @@
1
- "use strict";(globalThis.webpackChunk_icanbwell_composite=globalThis.webpackChunk_icanbwell_composite||[]).push([[218],{9218:(wc,Yt,qt)=>{qt.r(Yt),qt.d(Yt,{default:()=>Ic});var Ur=10,$r=20,Kt=30,Fr=40,Ke=50,Jt=60,Je={trace:10,debug:20,info:30,warn:40,error:50,fatal:60},Xt={};function Oc(e){return typeof e=="string"?Je[e.toLowerCase()]:e}Object.keys(Je).forEach(function(e){Xt[Je[e]]=e});var Vt={levels:{trace:"color: DeepPink",debug:"color: GoldenRod",info:"color: DarkTurquoise",warn:"color: Purple",error:"color: Crimson",fatal:"color: Black"},def:"color: DimGray",msg:"color: SteelBlue",src:"color: DimGray; font-style: italic; font-size: 0.9em"},Br=function(){function e(t){var n=t===void 0?{}:t,r=n.logByLevel,s=n.css,o=s===void 0?Vt:s;this.logByLevel=r!==void 0&&r,this.css=o}return e.prototype.write=function(t){var n,r,s=this.css.def,o=this.css.msg,i=this.css.src,a=t.childName?t.name+"/"+t.childName:t.name,c=Xt[t.level],u=(Array(6-c.length).join(" ")+c).toUpperCase();this.logByLevel?(t.level===Ur?c="debug":t.level===Jt&&(c="error"),r=typeof console[c]=="function"?console[c]:console.log):r=console.log,n=t.level<$r?this.css.levels.trace:t.level<Kt?this.css.levels.debug:t.level<Fr?this.css.levels.info:t.level<Ke?this.css.levels.warn:t.level<Jt?this.css.levels.error:this.css.levels.fatal;var f=function(d,p){return Array(p+1-(d+"").length).join("0")+d},l=[];l.push("[%s:%s:%s:%s] %c%s%c: %s: %c%s "+(t.src?"%c%s":"")),l.push(f(t.time.getHours(),2)),l.push(f(t.time.getMinutes(),2)),l.push(f(t.time.getSeconds(),2)),l.push(f(t.time.getMilliseconds(),4)),l.push(n),l.push(u),l.push(s),l.push(a),l.push(o),l.push(t.msg),t.src&&(l.push(i),l.push(t.src)),t.obj&&(l.push(`
2
- `),l.push(t.obj)),t.err&&t.err.stack&&(l.push(`
3
- `),l.push(t.err.stack)),r.apply(console,l)},e.getDefaultCss=function(){return Vt},e}();const j="8.37.0",m=globalThis;function Se(e,t,n){const r=n||m,s=r.__SENTRY__=r.__SENTRY__||{},o=s[j]=s[j]||{};return o[e]||(o[e]=t())}const Xe="production";function be(){return Ve(m),m}function Ve(e){const t=e.__SENTRY__=e.__SENTRY__||{};return t.version=t.version||j,t[j]=t[j]||{}}const Zt=Object.prototype.toString;function Ze(e){switch(Zt.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":case"[object WebAssembly.Exception]":return!0;default:return U(e,Error)}}function Y(e,t){return Zt.call(e)===`[object ${t}]`}function Qt(e){return Y(e,"ErrorEvent")}function en(e){return Y(e,"DOMError")}function Hr(e){return Y(e,"DOMException")}function ce(e){return Y(e,"String")}function Qe(e){return typeof e=="object"&&e!==null&&"__sentry_template_string__"in e&&"__sentry_template_values__"in e}function et(e){return e===null||Qe(e)||typeof e!="object"&&typeof e!="function"}function q(e){return Y(e,"Object")}function ve(e){return typeof Event<"u"&&U(e,Event)}function Gr(e){return typeof Element<"u"&&U(e,Element)}function zr(e){return Y(e,"RegExp")}function Te(e){return Boolean(e&&e.then&&typeof e.then=="function")}function Wr(e){return q(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e}function U(e,t){try{return e instanceof t}catch{return!1}}function tn(e){return!!(typeof e=="object"&&e!==null&&(e.__isVue||e._isVue))}const K=m,Yr=80;function nn(e,t={}){if(!e)return"<unknown>";try{let n=e;const r=5,s=[];let o=0,i=0;const a=" > ",c=a.length;let u;const f=Array.isArray(t)?t:t.keyAttrs,l=!Array.isArray(t)&&t.maxStringLength||Yr;for(;n&&o++<r&&(u=qr(n,f),!(u==="html"||o>1&&i+s.length*c+u.length>=l));)s.push(u),i+=u.length,n=n.parentNode;return s.reverse().join(a)}catch{return"<unknown>"}}function qr(e,t){const n=e,r=[];if(!n||!n.tagName)return"";if(K.HTMLElement&&n instanceof HTMLElement&&n.dataset){if(n.dataset.sentryComponent)return n.dataset.sentryComponent;if(n.dataset.sentryElement)return n.dataset.sentryElement}r.push(n.tagName.toLowerCase());const s=t&&t.length?t.filter(i=>n.getAttribute(i)).map(i=>[i,n.getAttribute(i)]):null;if(s&&s.length)s.forEach(i=>{r.push(`[${i[0]}="${i[1]}"]`)});else{n.id&&r.push(`#${n.id}`);const i=n.className;if(i&&ce(i)){const a=i.split(/\s+/);for(const c of a)r.push(`.${c}`)}}const o=["aria-label","type","name","title","alt"];for(const i of o){const a=n.getAttribute(i);a&&r.push(`[${i}="${a}"]`)}return r.join("")}function Kr(){try{return K.document.location.href}catch{return""}}function kc(e){return K.document&&K.document.querySelector?K.document.querySelector(e):null}function Jr(e){if(!K.HTMLElement)return null;let t=e;const n=5;for(let r=0;r<n;r++){if(!t)return null;if(t instanceof HTMLElement){if(t.dataset.sentryComponent)return t.dataset.sentryComponent;if(t.dataset.sentryElement)return t.dataset.sentryElement}t=t.parentNode}return null}const J=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,Xr="Sentry Logger ",tt=["debug","info","warn","error","log","assert","trace"],Ie={};function ue(e){if(!("console"in m))return e();const t=m.console,n={},r=Object.keys(Ie);r.forEach(s=>{const o=Ie[s];n[s]=t[s],t[s]=o});try{return e()}finally{r.forEach(s=>{t[s]=n[s]})}}function Vr(){let e=!1;const t={enable:()=>{e=!0},disable:()=>{e=!1},isEnabled:()=>e};return J?tt.forEach(n=>{t[n]=(...r)=>{e&&ue(()=>{m.console[n](`${Xr}[${n}]:`,...r)})}}):tt.forEach(n=>{t[n]=()=>{}}),t}const h=Se("logger",Vr);function X(e,t=0){return typeof e!="string"||t===0||e.length<=t?e:`${e.slice(0,t)}...`}function Nc(e,t){let n=e;const r=n.length;if(r<=150)return n;t>r&&(t=r);let s=Math.max(t-60,0);s<5&&(s=0);let o=Math.min(s+140,r);return o>r-5&&(o=r),o===r&&(s=Math.max(o-140,0)),n=n.slice(s,o),s>0&&(n=`'{snip} ${n}`),o<r&&(n+=" {snip}"),n}function rn(e,t){if(!Array.isArray(e))return"";const n=[];for(let r=0;r<e.length;r++){const s=e[r];try{tn(s)?n.push("[VueViewModel]"):n.push(String(s))}catch{n.push("[value cannot be serialized]")}}return n.join(t)}function Zr(e,t,n=!1){return ce(e)?zr(t)?t.test(e):ce(t)?n?e===t:e.includes(t):!1:!1}function we(e,t=[],n=!1){return t.some(r=>Zr(e,r,n))}function N(e,t,n){if(!(t in e))return;const r=e[t],s=n(r);typeof s=="function"&&sn(s,r),e[t]=s}function le(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch{J&&h.log(`Failed to add non-enumerable property "${t}" to object`,e)}}function sn(e,t){try{const n=t.prototype||{};e.prototype=t.prototype=n,le(e,"__sentry_original__",t)}catch{}}function nt(e){return e.__sentry_original__}function Qr(e){return Object.keys(e).map(t=>`${encodeURIComponent(t)}=${encodeURIComponent(e[t])}`).join("&")}function on(e){if(Ze(e))return{message:e.message,name:e.name,stack:e.stack,...cn(e)};if(ve(e)){const t={type:e.type,target:an(e.target),currentTarget:an(e.currentTarget),...cn(e)};return typeof CustomEvent<"u"&&U(e,CustomEvent)&&(t.detail=e.detail),t}else return e}function an(e){try{return Gr(e)?nn(e):Object.prototype.toString.call(e)}catch{return"<unknown>"}}function cn(e){if(typeof e=="object"&&e!==null){const t={};for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}else return{}}function es(e,t=40){const n=Object.keys(on(e));n.sort();const r=n[0];if(!r)return"[object has no keys]";if(r.length>=t)return X(r,t);for(let s=n.length;s>0;s--){const o=n.slice(0,s).join(", ");if(!(o.length>t))return s===n.length?o:X(o,t)}return""}function T(e){return rt(e,new Map)}function rt(e,t){if(ts(e)){const n=t.get(e);if(n!==void 0)return n;const r={};t.set(e,r);for(const s of Object.getOwnPropertyNames(e))typeof e[s]<"u"&&(r[s]=rt(e[s],t));return r}if(Array.isArray(e)){const n=t.get(e);if(n!==void 0)return n;const r=[];return t.set(e,r),e.forEach(s=>{r.push(rt(s,t))}),r}return e}function ts(e){if(!q(e))return!1;try{const t=Object.getPrototypeOf(e).constructor.name;return!t||t==="Object"}catch{return!0}}function Rc(e){let t;switch(!0){case e==null:t=new String(e);break;case(typeof e=="symbol"||typeof e=="bigint"):t=Object(e);break;case isPrimitive(e):t=new e.constructor(e);break;default:t=e;break}return t}function w(){const e=m,t=e.crypto||e.msCrypto;let n=()=>Math.random()*16;try{if(t&&t.randomUUID)return t.randomUUID().replace(/-/g,"");t&&t.getRandomValues&&(n=()=>{const r=new Uint8Array(1);return t.getRandomValues(r),r[0]})}catch{}return([1e7]+1e3+4e3+8e3+1e11).replace(/[018]/g,r=>(r^(n()&15)>>r/4).toString(16))}function un(e){return e.exception&&e.exception.values?e.exception.values[0]:void 0}function C(e){const{message:t,event_id:n}=e;if(t)return t;const r=un(e);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||n||"<unknown>":n||"<unknown>"}function st(e,t,n){const r=e.exception=e.exception||{},s=r.values=r.values||[],o=s[0]=s[0]||{};o.value||(o.value=t||""),o.type||(o.type=n||"Error")}function fe(e,t){const n=un(e);if(!n)return;const r={type:"generic",handled:!0},s=n.mechanism;if(n.mechanism={...r,...s,...t},t&&"data"in t){const o={...s&&s.data,...t.data};n.mechanism.data=o}}const ns=/^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$/;function ot(e){return parseInt(e||"",10)}function xc(e){const t=e.match(ns)||[],n=ot(t[1]),r=ot(t[2]),s=ot(t[3]);return{buildmetadata:t[5],major:isNaN(n)?void 0:n,minor:isNaN(r)?void 0:r,patch:isNaN(s)?void 0:s,prerelease:t[4]}}function Dc(e,t,n=5){if(t.lineno===void 0)return;const r=e.length,s=Math.max(Math.min(r-1,t.lineno-1),0);t.pre_context=e.slice(Math.max(0,s-n),s).map(i=>snipLine(i,0));const o=Math.min(r-1,s);t.context_line=snipLine(e[o],t.colno||0),t.post_context=e.slice(Math.min(s+1,r),s+1+n).map(i=>snipLine(i,0))}function ln(e){if(e&&e.__sentry_captured__)return!0;try{le(e,"__sentry_captured__",!0)}catch{}return!1}function fn(e){return Array.isArray(e)?e:[e]}function dn(){return{traceId:w(),spanId:w().substring(16)}}const pn=1e3;function de(){return Date.now()/pn}function rs(){const{performance:e}=m;if(!e||!e.now)return de;const t=Date.now()-e.now(),n=e.timeOrigin==null?t:e.timeOrigin;return()=>(n+e.now())/pn}const V=rs();let Oe;const Cc=(()=>{const{performance:e}=m;if(!e||!e.now){Oe="none";return}const t=3600*1e3,n=e.now(),r=Date.now(),s=e.timeOrigin?Math.abs(e.timeOrigin+n-r):t,o=s<t,i=e.timing&&e.timing.navigationStart,c=typeof i=="number"?Math.abs(i+n-r):t,u=c<t;return o||u?s<=c?(Oe="timeOrigin",e.timeOrigin):(Oe="navigationStart",i):(Oe="dateNow",r)})();function ss(e){const t=V(),n={sid:w(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>is(n)};return e&&Z(n,e),n}function Z(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||V(),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:w()),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{const n=e.timestamp-e.started;e.duration=n>=0?n: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 os(e,t){let n={};t?n={status:t}:e.status==="ok"&&(n={status:"exited"}),Z(e,n)}function is(e){return T({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}})}const it="_sentrySpan";function hn(e,t){t?le(e,it,t):delete e[it]}function _n(e){return e[it]}const as=100;class at{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext=dn()}clone(){const t=new at;return t._breadcrumbs=[...this._breadcrumbs],t._tags={...this._tags},t._extra={...this._extra},t._contexts={...this._contexts},t._user=this._user,t._level=this._level,t._session=this._session,t._transactionName=this._transactionName,t._fingerprint=this._fingerprint,t._eventProcessors=[...this._eventProcessors],t._requestSession=this._requestSession,t._attachments=[...this._attachments],t._sdkProcessingMetadata={...this._sdkProcessingMetadata},t._propagationContext={...this._propagationContext},t._client=this._client,t._lastEventId=this._lastEventId,hn(t,_n(this)),t}setClient(t){this._client=t}setLastEventId(t){this._lastEventId=t}getClient(){return this._client}lastEventId(){return this._lastEventId}addScopeListener(t){this._scopeListeners.push(t)}addEventProcessor(t){return this._eventProcessors.push(t),this}setUser(t){return this._user=t||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this._session&&Z(this._session,{user:t}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(t){return this._requestSession=t,this}setTags(t){return this._tags={...this._tags,...t},this._notifyScopeListeners(),this}setTag(t,n){return this._tags={...this._tags,[t]:n},this._notifyScopeListeners(),this}setExtras(t){return this._extra={...this._extra,...t},this._notifyScopeListeners(),this}setExtra(t,n){return this._extra={...this._extra,[t]:n},this._notifyScopeListeners(),this}setFingerprint(t){return this._fingerprint=t,this._notifyScopeListeners(),this}setLevel(t){return this._level=t,this._notifyScopeListeners(),this}setTransactionName(t){return this._transactionName=t,this._notifyScopeListeners(),this}setContext(t,n){return n===null?delete this._contexts[t]:this._contexts[t]=n,this._notifyScopeListeners(),this}setSession(t){return t?this._session=t:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(t){if(!t)return this;const n=typeof t=="function"?t(this):t,[r,s]=n instanceof A?[n.getScopeData(),n.getRequestSession()]:q(n)?[t,t.requestSession]:[],{tags:o,extra:i,user:a,contexts:c,level:u,fingerprint:f=[],propagationContext:l}=r||{};return this._tags={...this._tags,...o},this._extra={...this._extra,...i},this._contexts={...this._contexts,...c},a&&Object.keys(a).length&&(this._user=a),u&&(this._level=u),f.length&&(this._fingerprint=f),l&&(this._propagationContext=l),s&&(this._requestSession=s),this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._session=void 0,hn(this,void 0),this._attachments=[],this._propagationContext=dn(),this._notifyScopeListeners(),this}addBreadcrumb(t,n){const r=typeof n=="number"?n:as;if(r<=0)return this;const s={timestamp:de(),...t},o=this._breadcrumbs;return o.push(s),this._breadcrumbs=o.length>r?o.slice(-r):o,this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(t){return this._attachments.push(t),this}clearAttachments(){return this._attachments=[],this}getScopeData(){return{breadcrumbs:this._breadcrumbs,attachments:this._attachments,contexts:this._contexts,tags:this._tags,extra:this._extra,user:this._user,level:this._level,fingerprint:this._fingerprint||[],eventProcessors:this._eventProcessors,propagationContext:this._propagationContext,sdkProcessingMetadata:this._sdkProcessingMetadata,transactionName:this._transactionName,span:_n(this)}}setSDKProcessingMetadata(t){return this._sdkProcessingMetadata={...this._sdkProcessingMetadata,...t},this}setPropagationContext(t){return this._propagationContext=t,this}getPropagationContext(){return this._propagationContext}captureException(t,n){const r=n&&n.event_id?n.event_id:w();if(!this._client)return h.warn("No client configured on scope - will not capture exception!"),r;const s=new Error("Sentry syntheticException");return this._client.captureException(t,{originalException:t,syntheticException:s,...n,event_id:r},this),r}captureMessage(t,n,r){const s=r&&r.event_id?r.event_id:w();if(!this._client)return h.warn("No client configured on scope - will not capture message!"),s;const o=new Error(t);return this._client.captureMessage(t,n,{originalException:t,syntheticException:o,...r,event_id:s},this),s}captureEvent(t,n){const r=n&&n.event_id?n.event_id:w();return this._client?(this._client.captureEvent(t,{...n,event_id:r},this),r):(h.warn("No client configured on scope - will not capture event!"),r)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(t=>{t(this)}),this._notifyingListeners=!1)}}const A=at;function cs(){return Se("defaultCurrentScope",()=>new A)}function us(){return Se("defaultIsolationScope",()=>new A)}class ls{constructor(t,n){let r;t?r=t:r=new A;let s;n?s=n:s=new A,this._stack=[{scope:r}],this._isolationScope=s}withScope(t){const n=this._pushScope();let r;try{r=t(n)}catch(s){throw this._popScope(),s}return Te(r)?r.then(s=>(this._popScope(),s),s=>{throw this._popScope(),s}):(this._popScope(),r)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){const t=this.getScope().clone();return this._stack.push({client:this.getClient(),scope:t}),t}_popScope(){return this._stack.length<=1?!1:!!this._stack.pop()}}function Q(){const e=be(),t=Ve(e);return t.stack=t.stack||new ls(cs(),us())}function fs(e){return Q().withScope(e)}function ds(e,t){const n=Q();return n.withScope(()=>(n.getStackTop().scope=e,t(e)))}function mn(e){return Q().withScope(()=>e(Q().getIsolationScope()))}function ps(){return{withIsolationScope:mn,withScope:fs,withSetScope:ds,withSetIsolationScope:(e,t)=>mn(t),getCurrentScope:()=>Q().getScope(),getIsolationScope:()=>Q().getIsolationScope()}}function Ac(e){const t=getMainCarrier(),n=getSentryCarrier(t);n.acs=e}function ct(e){const t=Ve(e);return t.acs?t.acs:ps()}function R(){const e=be();return ct(e).getCurrentScope()}function pe(){const e=be();return ct(e).getIsolationScope()}function gn(){return Se("globalScope",()=>new A)}function hs(...e){const t=be(),n=ct(t);if(e.length===2){const[r,s]=e;return r?n.withSetScope(r,s):n.withScope(s)}return n.withScope(e[0])}function Pc(...e){const t=getMainCarrier(),n=getAsyncContextStrategy(t);if(e.length===2){const[r,s]=e;return r?n.withSetIsolationScope(r,s):n.withIsolationScope(s)}return n.withIsolationScope(e[0])}function E(){return R().getClient()}function _s(){const e=typeof WeakSet=="function",t=e?new WeakSet:[];function n(s){if(e)return t.has(s)?!0:(t.add(s),!1);for(let o=0;o<t.length;o++)if(t[o]===s)return!0;return t.push(s),!1}function r(s){if(e)t.delete(s);else for(let o=0;o<t.length;o++)if(t[o]===s){t.splice(o,1);break}}return[n,r]}const yn=50,O="?",En=/\(error: (.*)\)/,Sn=/captureMessage|captureException/;function bn(...e){const t=e.sort((n,r)=>n[0]-r[0]).map(n=>n[1]);return(n,r=0,s=0)=>{const o=[],i=n.split(`
4
- `);for(let a=r;a<i.length;a++){const c=i[a];if(c.length>1024)continue;const u=En.test(c)?c.replace(En,"$1"):c;if(!u.match(/\S*Error: /)){for(const f of t){const l=f(u);if(l){o.push(l);break}}if(o.length>=yn+s)break}}return gs(o.slice(s))}}function ms(e){return Array.isArray(e)?bn(...e):e}function gs(e){if(!e.length)return[];const t=Array.from(e);return/sentryWrapped/.test(ke(t).function||"")&&t.pop(),t.reverse(),Sn.test(ke(t).function||"")&&(t.pop(),Sn.test(ke(t).function||"")&&t.pop()),t.slice(0,yn).map(n=>({...n,filename:n.filename||ke(t).filename,function:n.function||O}))}function ke(e){return e[e.length-1]||{}}const ut="<anonymous>";function P(e){try{return!e||typeof e!="function"?ut:e.name||ut}catch{return ut}}function vn(e){const t=e.exception;if(t){const n=[];try{return t.values.forEach(r=>{r.stacktrace.frames&&n.push(...r.stacktrace.frames)}),n}catch{return}}}function M(e,t=100,n=1/0){try{return lt("",e,t,n)}catch(r){return{ERROR:`**non-serializable** (${r})`}}}function Tn(e,t=3,n=100*1024){const r=M(e,t);return bs(r)>n?Tn(e,t-1,n):r}function lt(e,t,n=1/0,r=1/0,s=_s()){const[o,i]=s;if(t==null||["boolean","string"].includes(typeof t)||typeof t=="number"&&Number.isFinite(t))return t;const a=ys(e,t);if(!a.startsWith("[object "))return a;if(t.__sentry_skip_normalization__)return t;const c=typeof t.__sentry_override_normalization_depth__=="number"?t.__sentry_override_normalization_depth__:n;if(c===0)return a.replace("object ","");if(o(t))return"[Circular ~]";const u=t;if(u&&typeof u.toJSON=="function")try{const p=u.toJSON();return lt("",p,c-1,r,s)}catch{}const f=Array.isArray(t)?[]:{};let l=0;const d=on(t);for(const p in d){if(!Object.prototype.hasOwnProperty.call(d,p))continue;if(l>=r){f[p]="[MaxProperties ~]";break}const _=d[p];f[p]=lt(p,_,c-1,r,s),l++}return i(t),f}function ys(e,t){try{if(e==="domain"&&t&&typeof t=="object"&&t._events)return"[Domain]";if(e==="domainEmitter")return"[DomainEmitter]";if(typeof global<"u"&&t===global)return"[Global]";if(typeof window<"u"&&t===window)return"[Window]";if(typeof document<"u"&&t===document)return"[Document]";if(tn(t))return"[VueViewModel]";if(Wr(t))return"[SyntheticEvent]";if(typeof t=="number"&&!Number.isFinite(t))return`[${t}]`;if(typeof t=="function")return`[Function: ${P(t)}]`;if(typeof t=="symbol")return`[${String(t)}]`;if(typeof t=="bigint")return`[BigInt: ${String(t)}]`;const n=Es(t);return/^HTML(\w*)Element$/.test(n)?`[HTMLElement: ${n}]`:`[object ${n}]`}catch(n){return`**non-serializable** (${n})`}}function Es(e){const t=Object.getPrototypeOf(e);return t?t.constructor.name:"null prototype"}function Ss(e){return~-encodeURI(e).split(/%..|./).length}function bs(e){return Ss(JSON.stringify(e))}function Mc(e,t){const n=t.replace(/\\/g,"/").replace(/[|\\{}()[\]^$+*?.]/g,"\\$&");let r=e;try{r=decodeURI(e)}catch{}return r.replace(/\\/g,"/").replace(/webpack:\/?/g,"").replace(new RegExp(`(file://)?/*${n}/*`,"ig"),"app:///")}var x;(function(e){e[e.PENDING=0]="PENDING";const n=1;e[e.RESOLVED=n]="RESOLVED";const r=2;e[e.REJECTED=r]="REJECTED"})(x||(x={}));function $(e){return new I(t=>{t(e)})}function Ne(e){return new I((t,n)=>{n(e)})}class I{constructor(t){I.prototype.__init.call(this),I.prototype.__init2.call(this),I.prototype.__init3.call(this),I.prototype.__init4.call(this),this._state=x.PENDING,this._handlers=[];try{t(this._resolve,this._reject)}catch(n){this._reject(n)}}then(t,n){return new I((r,s)=>{this._handlers.push([!1,o=>{if(!t)r(o);else try{r(t(o))}catch(i){s(i)}},o=>{if(!n)s(o);else try{r(n(o))}catch(i){s(i)}}]),this._executeHandlers()})}catch(t){return this.then(n=>n,t)}finally(t){return new I((n,r)=>{let s,o;return this.then(i=>{o=!1,s=i,t&&t()},i=>{o=!0,s=i,t&&t()}).then(()=>{if(o){r(s);return}n(s)})})}__init(){this._resolve=t=>{this._setResult(x.RESOLVED,t)}}__init2(){this._reject=t=>{this._setResult(x.REJECTED,t)}}__init3(){this._setResult=(t,n)=>{if(this._state===x.PENDING){if(Te(n)){n.then(this._resolve,this._reject);return}this._state=t,this._value=n,this._executeHandlers()}}}__init4(){this._executeHandlers=()=>{if(this._state===x.PENDING)return;const t=this._handlers.slice();this._handlers=[],t.forEach(n=>{n[0]||(this._state===x.RESOLVED&&n[1](this._value),this._state===x.REJECTED&&n[2](this._value),n[0]=!0)})}}}const g=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;function ft(e,t,n,r=0){return new I((s,o)=>{const i=e[r];if(t===null||typeof i!="function")s(t);else{const a=i({...t},n);g&&i.id&&a===null&&h.log(`Event processor "${i.id}" dropped event`),Te(a)?a.then(c=>ft(e,c,n,r+1).then(s)).then(null,o):ft(e,a,n,r+1).then(s).then(null,o)}})}const Lc="baggage",In="sentry-",vs=/^sentry-/,Ts=8192;function Is(e){const t=ws(e);if(!t)return;const n=Object.entries(t).reduce((r,[s,o])=>{if(s.match(vs)){const i=s.slice(In.length);r[i]=o}return r},{});if(Object.keys(n).length>0)return n}function jc(e){if(!e)return;const t=Object.entries(e).reduce((n,[r,s])=>(s&&(n[`${In}${r}`]=s),n),{});return Os(t)}function ws(e){if(!(!e||!ce(e)&&!Array.isArray(e)))return Array.isArray(e)?e.reduce((t,n)=>{const r=wn(n);return Object.entries(r).forEach(([s,o])=>{t[s]=o}),t},{}):wn(e)}function wn(e){return e.split(",").map(t=>t.split("=").map(n=>decodeURIComponent(n.trim()))).reduce((t,[n,r])=>(n&&r&&(t[n]=r),t),{})}function Os(e){if(Object.keys(e).length!==0)return Object.entries(e).reduce((t,[n,r],s)=>{const o=`${encodeURIComponent(n)}=${encodeURIComponent(r)}`,i=s===0?o:`${t},${o}`;return i.length>Ts?(DEBUG_BUILD&&logger.warn(`Not adding key: ${n} with val: ${r} to baggage header due to exceeding baggage size limits.`),t):i},"")}const ks="sentry.source",Ns="sentry.sample_rate",Rs="sentry.op",xs="sentry.origin",Uc="sentry.idle_span_finish_reason",$c="sentry.measurement_unit",Fc="sentry.measurement_value",Bc="sentry.profile_id",Hc="sentry.exclusive_time",Gc="cache.hit",zc="cache.key",Wc="cache.item_size",Yc="http.request.method",qc="url.full";function Ds(e){if(typeof __SENTRY_TRACING__=="boolean"&&!__SENTRY_TRACING__)return!1;const t=E(),n=e||t&&t.getOptions();return!!n&&(n.enableTracing||"tracesSampleRate"in n||"tracesSampler"in n)}const dt="_sentryMetrics";function Cs(e){const t=e[dt];if(!t)return;const n={};for(const[,[r,s]]of t)(n[r]||(n[r]=[])).push(T(s));return n}function Kc(e,t,n,r,s,o,i){const c=e[dt]||(e[dt]=new Map),u=`${t}:${n}@${s}`,f=c.get(i);if(f){const[,l]=f;c.set(i,[u,{min:Math.min(l.min,r),max:Math.max(l.max,r),count:l.count+=1,sum:l.sum+=r,tags:l.tags}])}else c.set(i,[u,{min:r,max:r,count:1,sum:r,tags:o}])}const As=0,On=1,v=2;function Ps(e){if(e<400&&e>=100)return{code:On};if(e>=400&&e<500)switch(e){case 401:return{code:v,message:"unauthenticated"};case 403:return{code:v,message:"permission_denied"};case 404:return{code:v,message:"not_found"};case 409:return{code:v,message:"already_exists"};case 413:return{code:v,message:"failed_precondition"};case 429:return{code:v,message:"resource_exhausted"};case 499:return{code:v,message:"cancelled"};default:return{code:v,message:"invalid_argument"}}if(e>=500&&e<600)switch(e){case 501:return{code:v,message:"unimplemented"};case 503:return{code:v,message:"unavailable"};case 504:return{code:v,message:"deadline_exceeded"};default:return{code:v,message:"internal_error"}}return{code:v,message:"unknown_error"}}function Jc(e,t){e.setAttribute("http.response.status_code",t);const n=Ps(t);n.message!=="unknown_error"&&e.setStatus(n)}const Xc=0,Ms=1;function Vc(e){const{spanId:t,traceId:n}=e.spanContext(),{data:r,op:s,parent_span_id:o,status:i,origin:a}=he(e);return dropUndefinedKeys({parent_span_id:o,span_id:t,trace_id:n,data:r,op:s,status:i,origin:a})}function Ls(e){const{spanId:t,traceId:n}=e.spanContext(),{parent_span_id:r}=he(e);return T({parent_span_id:r,span_id:t,trace_id:n})}function Zc(e){const{traceId:t,spanId:n}=e.spanContext(),r=pt(e);return generateSentryTraceHeader(t,n,r)}function kn(e){return typeof e=="number"?Nn(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?Nn(e.getTime()):V()}function Nn(e){return e>9999999999?e/1e3:e}function he(e){if(Us(e))return e.getSpanJSON();try{const{spanId:t,traceId:n}=e.spanContext();if(js(e)){const{attributes:r,startTime:s,name:o,endTime:i,parentSpanId:a,status:c}=e;return T({span_id:t,trace_id:n,data:r,description:o,parent_span_id:a,start_timestamp:kn(s),timestamp:kn(i)||void 0,status:$s(c),op:r[Rs],origin:r[xs],_metrics_summary:Cs(e)})}return{span_id:t,trace_id:n}}catch{return{}}}function js(e){const t=e;return!!t.attributes&&!!t.startTime&&!!t.name&&!!t.endTime&&!!t.status}function Us(e){return typeof e.getSpanJSON=="function"}function pt(e){const{traceFlags:t}=e.spanContext();return t===Ms}function $s(e){if(!(!e||e.code===As))return e.code===On?"ok":e.message||"unknown_error"}const F="_sentryChildSpans",ht="_sentryRootSpan";function Qc(e,t){const n=e[ht]||e;addNonEnumerableProperty(t,ht,n),e[F]?e[F].add(t):addNonEnumerableProperty(e,F,new Set([t]))}function eu(e,t){e[F]&&e[F].delete(t)}function tu(e){const t=new Set;function n(r){if(!t.has(r)&&pt(r)){t.add(r);const s=r[F]?Array.from(r[F]):[];for(const o of s)n(o)}}return n(e),Array.from(t)}function Rn(e){return e[ht]||e}function Fs(){const e=getMainCarrier(),t=getAsyncContextStrategy(e);return t.getActiveSpan?t.getActiveSpan():_getSpanForScope(getCurrentScope())}function nu(e,t,n,r,s,o){const i=Fs();i&&updateMetricSummaryOnSpan(i,e,t,n,r,s,o)}const xn="_frozenDsc";function ru(e,t){const n=e;addNonEnumerableProperty(n,xn,t)}function Dn(e,t){const n=t.getOptions(),{publicKey:r}=t.getDsn()||{},s=T({environment:n.environment||Xe,release:n.release,public_key:r,trace_id:e});return t.emit("createDsc",s),s}function Cn(e){const t=E();if(!t)return{};const n=Dn(he(e).trace_id||"",t),r=Rn(e),s=r[xn];if(s)return s;const o=r.spanContext().traceState,i=o&&o.get("sentry.dsc"),a=i&&Is(i);if(a)return a;const c=he(r),u=c.data||{},f=u[Ns];f!=null&&(n.sample_rate=`${f}`);const l=u[ks],d=c.description;return l!=="url"&&d&&(n.transaction=d),Ds()&&(n.sampled=String(pt(r))),t.emit("createDsc",n,r),n}function su(e){const t=Cn(e);return dynamicSamplingContextToSentryBaggageHeader(t)}function Bs(e,t){const{fingerprint:n,span:r,breadcrumbs:s,sdkProcessingMetadata:o}=t;Hs(e,t),r&&Ws(e,r),Ys(e,n),Gs(e,s),zs(e,o)}function An(e,t){const{extra:n,tags:r,user:s,contexts:o,level:i,sdkProcessingMetadata:a,breadcrumbs:c,fingerprint:u,eventProcessors:f,attachments:l,propagationContext:d,transactionName:p,span:_}=t;_e(e,"extra",n),_e(e,"tags",r),_e(e,"user",s),_e(e,"contexts",o),_e(e,"sdkProcessingMetadata",a),i&&(e.level=i),p&&(e.transactionName=p),_&&(e.span=_),c.length&&(e.breadcrumbs=[...e.breadcrumbs,...c]),u.length&&(e.fingerprint=[...e.fingerprint,...u]),f.length&&(e.eventProcessors=[...e.eventProcessors,...f]),l.length&&(e.attachments=[...e.attachments,...l]),e.propagationContext={...e.propagationContext,...d}}function _e(e,t,n){if(n&&Object.keys(n).length){e[t]={...e[t]};for(const r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[t][r]=n[r])}}function Hs(e,t){const{extra:n,tags:r,user:s,contexts:o,level:i,transactionName:a}=t,c=T(n);c&&Object.keys(c).length&&(e.extra={...c,...e.extra});const u=T(r);u&&Object.keys(u).length&&(e.tags={...u,...e.tags});const f=T(s);f&&Object.keys(f).length&&(e.user={...f,...e.user});const l=T(o);l&&Object.keys(l).length&&(e.contexts={...l,...e.contexts}),i&&(e.level=i),a&&e.type!=="transaction"&&(e.transaction=a)}function Gs(e,t){const n=[...e.breadcrumbs||[],...t];e.breadcrumbs=n.length?n:void 0}function zs(e,t){e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...t}}function Ws(e,t){e.contexts={trace:Ls(t),...e.contexts},e.sdkProcessingMetadata={dynamicSamplingContext:Cn(t),...e.sdkProcessingMetadata};const n=Rn(t),r=he(n).description;r&&!e.transaction&&e.type==="transaction"&&(e.transaction=r)}function Ys(e,t){e.fingerprint=e.fingerprint?fn(e.fingerprint):[],t&&(e.fingerprint=e.fingerprint.concat(t)),e.fingerprint&&!e.fingerprint.length&&delete e.fingerprint}function qs(e,t,n,r,s,o){const{normalizeDepth:i=3,normalizeMaxBreadth:a=1e3}=e,c={...t,event_id:t.event_id||n.event_id||w(),timestamp:t.timestamp||de()},u=n.integrations||e.integrations.map(S=>S.name);Ks(c,e),Vs(c,u),s&&s.emit("applyFrameMetadata",t),t.type===void 0&&Js(c,e.stackParser);const f=Qs(r,n.captureContext);n.mechanism&&fe(c,n.mechanism);const l=s?s.getEventProcessors():[],d=gn().getScopeData();if(o){const S=o.getScopeData();An(d,S)}if(f){const S=f.getScopeData();An(d,S)}const p=[...n.attachments||[],...d.attachments];p.length&&(n.attachments=p),Bs(c,d);const _=[...l,...d.eventProcessors];return ft(_,c,n).then(S=>(S&&Xs(S),typeof i=="number"&&i>0?Zs(S,i,a):S))}function Ks(e,t){const{environment:n,release:r,dist:s,maxValueLength:o=250}=t;"environment"in e||(e.environment="environment"in t?n:Xe),e.release===void 0&&r!==void 0&&(e.release=r),e.dist===void 0&&s!==void 0&&(e.dist=s),e.message&&(e.message=X(e.message,o));const i=e.exception&&e.exception.values&&e.exception.values[0];i&&i.value&&(i.value=X(i.value,o));const a=e.request;a&&a.url&&(a.url=X(a.url,o))}const Pn=new WeakMap;function Js(e,t){const n=m._sentryDebugIds;if(!n)return;let r;const s=Pn.get(t);s?r=s:(r=new Map,Pn.set(t,r));const o=Object.entries(n).reduce((i,[a,c])=>{let u;const f=r.get(a);f?u=f:(u=t(a),r.set(a,u));for(let l=u.length-1;l>=0;l--){const d=u[l];if(d.filename){i[d.filename]=c;break}}return i},{});try{e.exception.values.forEach(i=>{i.stacktrace.frames.forEach(a=>{a.filename&&(a.debug_id=o[a.filename])})})}catch{}}function Xs(e){const t={};try{e.exception.values.forEach(r=>{r.stacktrace.frames.forEach(s=>{s.debug_id&&(s.abs_path?t[s.abs_path]=s.debug_id:s.filename&&(t[s.filename]=s.debug_id),delete s.debug_id)})})}catch{}if(Object.keys(t).length===0)return;e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[];const n=e.debug_meta.images;Object.entries(t).forEach(([r,s])=>{n.push({type:"sourcemap",code_file:r,debug_id:s})})}function Vs(e,t){t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[...e.sdk.integrations||[],...t])}function Zs(e,t,n){if(!e)return null;const r={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map(s=>({...s,...s.data&&{data:M(s.data,t,n)}}))},...e.user&&{user:M(e.user,t,n)},...e.contexts&&{contexts:M(e.contexts,t,n)},...e.extra&&{extra:M(e.extra,t,n)}};return e.contexts&&e.contexts.trace&&r.contexts&&(r.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(r.contexts.trace.data=M(e.contexts.trace.data,t,n))),e.spans&&(r.spans=e.spans.map(s=>({...s,...s.data&&{data:M(s.data,t,n)}}))),r}function Qs(e,t){if(!t)return e;const n=e?e.clone():new A;return n.update(t),n}function eo(e){if(!!e)return to(e)?{captureContext:e}:ro(e)?{captureContext:e}:e}function to(e){return e instanceof A||typeof e=="function"}const no=["user","level","extra","contexts","tags","fingerprint","requestSession","propagationContext"];function ro(e){return Object.keys(e).some(t=>no.includes(t))}function Mn(e,t){return R().captureException(e,eo(t))}function so(e,t){const n=typeof t=="string"?t:void 0,r=typeof t!="string"?{captureContext:t}:void 0;return R().captureMessage(e,n,r)}function Ln(e,t){return R().captureEvent(e,t)}function ou(e,t){getIsolationScope().setContext(e,t)}function iu(e){getIsolationScope().setExtras(e)}function au(e,t){getIsolationScope().setExtra(e,t)}function cu(e){getIsolationScope().setTags(e)}function uu(e,t){getIsolationScope().setTag(e,t)}function lu(e){getIsolationScope().setUser(e)}function fu(){return getIsolationScope().lastEventId()}function jn(e,t){const n=getCurrentScope(),r=getClient();if(!r)DEBUG_BUILD&&logger.warn("Cannot capture check-in. No client defined.");else if(!r.captureCheckIn)DEBUG_BUILD&&logger.warn("Cannot capture check-in. Client does not support sending check-ins.");else return r.captureCheckIn(e,t,n);return uuid4()}function du(e,t,n){const r=jn({monitorSlug:e,status:"in_progress"},n),s=timestampInSeconds();function o(i){jn({monitorSlug:e,status:i,checkInId:r,duration:timestampInSeconds()-s})}return withIsolationScope(()=>{let i;try{i=t()}catch(a){throw o("error"),a}return isThenable(i)?Promise.resolve(i).then(()=>{o("ok")},a=>{throw o("error"),a}):o("ok"),i})}async function pu(e){const t=getClient();return t?t.flush(e):(DEBUG_BUILD&&logger.warn("Cannot flush events. No client defined."),Promise.resolve(!1))}async function hu(e){const t=getClient();return t?t.close(e):(DEBUG_BUILD&&logger.warn("Cannot flush events and disable SDK. No client defined."),Promise.resolve(!1))}function oo(){return!!E()}function _u(){const e=getClient();return!!e&&e.getOptions().enabled!==!1&&!!e.getTransport()}function mu(e){getIsolationScope().addEventProcessor(e)}function Un(e){const t=E(),n=pe(),r=R(),{release:s,environment:o=Xe}=t&&t.getOptions()||{},{userAgent:i}=m.navigator||{},a=ss({release:s,environment:o,user:r.getUser()||n.getUser(),...i&&{userAgent:i},...e}),c=n.getSession();return c&&c.status==="ok"&&Z(c,{status:"exited"}),$n(),n.setSession(a),r.setSession(a),a}function $n(){const e=pe(),t=R(),n=t.getSession()||e.getSession();n&&os(n),Fn(),e.setSession(),t.setSession()}function Fn(){const e=pe(),t=R(),n=E(),r=t.getSession()||e.getSession();r&&n&&n.captureSession(r)}function Bn(e=!1){if(e){$n();return}Fn()}const Hn=[];function io(e){const t={};return e.forEach(n=>{const{name:r}=n,s=t[r];s&&!s.isDefaultInstance&&n.isDefaultInstance||(t[r]=n)}),Object.values(t)}function ao(e){const t=e.defaultIntegrations||[],n=e.integrations;t.forEach(i=>{i.isDefaultInstance=!0});let r;Array.isArray(n)?r=[...t,...n]:typeof n=="function"?r=fn(n(t)):r=t;const s=io(r),o=s.findIndex(i=>i.name==="Debug");if(o>-1){const[i]=s.splice(o,1);s.push(i)}return s}function co(e,t){const n={};return t.forEach(r=>{r&&zn(e,r,n)}),n}function Gn(e,t){for(const n of t)n&&n.afterAllSetup&&n.afterAllSetup(e)}function zn(e,t,n){if(n[t.name]){g&&h.log(`Integration skipped because it was already installed: ${t.name}`);return}if(n[t.name]=t,Hn.indexOf(t.name)===-1&&typeof t.setupOnce=="function"&&(t.setupOnce(),Hn.push(t.name)),t.setup&&typeof t.setup=="function"&&t.setup(e),typeof t.preprocessEvent=="function"){const r=t.preprocessEvent.bind(t);e.on("preprocessEvent",(s,o)=>r(s,o,e))}if(typeof t.processEvent=="function"){const r=t.processEvent.bind(t),s=Object.assign((o,i)=>r(o,i,e),{id:t.name});e.addEventProcessor(s)}g&&h.log(`Integration installed: ${t.name}`)}function gu(e){const t=getClient();if(!t){DEBUG_BUILD&&logger.warn(`Cannot add integration "${e.name}" because no SDK Client is available.`);return}t.addIntegration(e)}function yu(e){return e}const uo=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/,"undefined is not an object (evaluating 'a.L')",`can't redefine non-configurable property "solana"`,"vv().getRestrictions is not a function. (In 'vv().getRestrictions(1,a)', 'vv().getRestrictions' is undefined)","Can't find variable: _AutofillCallbackHandler"],lo="InboundFilters",fo=(e={})=>({name:lo,processEvent(t,n,r){const s=r.getOptions(),o=po(e,s);return ho(t,o)?null:t}});function po(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:uo],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[]],ignoreInternal:e.ignoreInternal!==void 0?e.ignoreInternal:!0}}function ho(e,t){return t.ignoreInternal&&So(e)?(g&&h.warn(`Event dropped due to being internal Sentry Error.
5
- Event: ${C(e)}`),!0):_o(e,t.ignoreErrors)?(g&&h.warn(`Event dropped due to being matched by \`ignoreErrors\` option.
6
- Event: ${C(e)}`),!0):vo(e)?(g&&h.warn(`Event dropped due to not having an error message, error type or stacktrace.
7
- Event: ${C(e)}`),!0):mo(e,t.ignoreTransactions)?(g&&h.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.
8
- Event: ${C(e)}`),!0):go(e,t.denyUrls)?(g&&h.warn(`Event dropped due to being matched by \`denyUrls\` option.
9
- Event: ${C(e)}.
10
- Url: ${Re(e)}`),!0):yo(e,t.allowUrls)?!1:(g&&h.warn(`Event dropped due to not being matched by \`allowUrls\` option.
11
- Event: ${C(e)}.
12
- Url: ${Re(e)}`),!0)}function _o(e,t){return e.type||!t||!t.length?!1:Eo(e).some(n=>we(n,t))}function mo(e,t){if(e.type!=="transaction"||!t||!t.length)return!1;const n=e.transaction;return n?we(n,t):!1}function go(e,t){if(!t||!t.length)return!1;const n=Re(e);return n?we(n,t):!1}function yo(e,t){if(!t||!t.length)return!0;const n=Re(e);return n?we(n,t):!0}function Eo(e){const t=[];e.message&&t.push(e.message);let n;try{n=e.exception.values[e.exception.values.length-1]}catch{}return n&&n.value&&(t.push(n.value),n.type&&t.push(`${n.type}: ${n.value}`)),t}function So(e){try{return e.exception.values[0].type==="SentryError"}catch{}return!1}function bo(e=[]){for(let t=e.length-1;t>=0;t--){const n=e[t];if(n&&n.filename!=="<anonymous>"&&n.filename!=="[native code]")return n.filename||null}return null}function Re(e){try{let t;try{t=e.exception.values[0].stacktrace.frames}catch{}return t?bo(t):null}catch{return g&&h.error(`Cannot extract url for event ${C(e)}`),null}}function vo(e){return e.type||!e.exception||!e.exception.values||e.exception.values.length===0?!1:!e.message&&!e.exception.values.some(t=>t.stacktrace||t.type&&t.type!=="Error"||t.value)}let Wn;const To="FunctionToString",Yn=new WeakMap,Io=()=>({name:To,setupOnce(){Wn=Function.prototype.toString;try{Function.prototype.toString=function(...e){const t=nt(this),n=Yn.has(E())&&t!==void 0?t:this;return Wn.apply(n,e)}}catch{}},setup(e){Yn.set(e,!0)}}),wo="Dedupe",Oo=()=>{let e;return{name:wo,processEvent(t){if(t.type)return t;try{if(ko(t,e))return g&&h.warn("Event dropped due to being a duplicate of previously captured event."),null}catch{}return e=t}}};function ko(e,t){return t?!!(No(e,t)||Ro(e,t)):!1}function No(e,t){const n=e.message,r=t.message;return!(!n&&!r||n&&!r||!n&&r||n!==r||!Kn(e,t)||!qn(e,t))}function Ro(e,t){const n=Jn(t),r=Jn(e);return!(!n||!r||n.type!==r.type||n.value!==r.value||!Kn(e,t)||!qn(e,t))}function qn(e,t){let n=vn(e),r=vn(t);if(!n&&!r)return!0;if(n&&!r||!n&&r||(n=n,r=r,r.length!==n.length))return!1;for(let s=0;s<r.length;s++){const o=r[s],i=n[s];if(o.filename!==i.filename||o.lineno!==i.lineno||o.colno!==i.colno||o.function!==i.function)return!1}return!0}function Kn(e,t){let n=e.fingerprint,r=t.fingerprint;if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;n=n,r=r;try{return n.join("")===r.join("")}catch{return!1}}function Jn(e){return e.exception&&e.exception.values&&e.exception.values[0]}function xo(e,t){t.debug===!0&&(g?h.enable():ue(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")})),R().update(t.initialScope);const r=new e(t);return Do(r),r.init(),r}function Do(e){R().setClient(e)}const xe=m;function vu(){try{return new ErrorEvent(""),!0}catch{return!1}}function Tu(){try{return new DOMError(""),!0}catch{return!1}}function Iu(){try{return new DOMException(""),!0}catch{return!1}}function _t(){if(!("fetch"in xe))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch{return!1}}function Xn(e){return e&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function Co(){if(typeof EdgeRuntime=="string")return!0;if(!_t())return!1;if(Xn(xe.fetch))return!0;let e=!1;const t=xe.document;if(t&&typeof t.createElement=="function")try{const n=t.createElement("iframe");n.hidden=!0,t.head.appendChild(n),n.contentWindow&&n.contentWindow.fetch&&(e=Xn(n.contentWindow.fetch)),t.head.removeChild(n)}catch(n){J&&h.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",n)}return e}function wu(){return"ReportingObserver"in xe}function Ou(){if(!_t())return!1;try{return new Request("_",{referrerPolicy:"origin"}),!0}catch{return!1}}const De=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,Vn="8.37.0",D=globalThis;function Ao(e,t,n){const r=n||D,s=r.__SENTRY__=r.__SENTRY__||{},o=s[Vn]=s[Vn]||{};return o[e]||(o[e]=t())}const Po="Sentry Logger ",Zn=["debug","info","warn","error","log","assert","trace"],Qn={};function Mo(e){if(!("console"in D))return e();const t=D.console,n={},r=Object.keys(Qn);r.forEach(s=>{const o=Qn[s];n[s]=t[s],t[s]=o});try{return e()}finally{r.forEach(s=>{t[s]=n[s]})}}function Lo(){let e=!1;const t={enable:()=>{e=!0},disable:()=>{e=!1},isEnabled:()=>e};return De?Zn.forEach(n=>{t[n]=(...r)=>{e&&Mo(()=>{D.console[n](`${Po}[${n}]:`,...r)})}}):Zn.forEach(n=>{t[n]=()=>{}}),t}const Ce=Ao("logger",Lo),er=50,jo="?",tr=/\(error: (.*)\)/,nr=/captureMessage|captureException/;function Uo(...e){const t=e.sort((n,r)=>n[0]-r[0]).map(n=>n[1]);return(n,r=0,s=0)=>{const o=[],i=n.split(`
13
- `);for(let a=r;a<i.length;a++){const c=i[a];if(c.length>1024)continue;const u=tr.test(c)?c.replace(tr,"$1"):c;if(!u.match(/\S*Error: /)){for(const f of t){const l=f(u);if(l){o.push(l);break}}if(o.length>=er+s)break}}return $o(o.slice(s))}}function ku(e){return Array.isArray(e)?Uo(...e):e}function $o(e){if(!e.length)return[];const t=Array.from(e);return/sentryWrapped/.test(Ae(t).function||"")&&t.pop(),t.reverse(),nr.test(Ae(t).function||"")&&(t.pop(),nr.test(Ae(t).function||"")&&t.pop()),t.slice(0,er).map(n=>({...n,filename:n.filename||Ae(t).filename,function:n.function||jo}))}function Ae(e){return e[e.length-1]||{}}const mt="<anonymous>";function Fo(e){try{return!e||typeof e!="function"?mt:e.name||mt}catch{return mt}}function Nu(e){const t=e.exception;if(t){const n=[];try{return t.values.forEach(r=>{r.stacktrace.frames&&n.push(...r.stacktrace.frames)}),n}catch{return}}}const ee={},rr={};function gt(e,t){ee[e]=ee[e]||[],ee[e].push(t)}function Ru(){Object.keys(ee).forEach(e=>{ee[e]=void 0})}function yt(e,t){if(!rr[e]){rr[e]=!0;try{t()}catch(n){De&&Ce.error(`Error while instrumenting ${e}`,n)}}}function me(e,t){const n=e&&ee[e];if(!!n)for(const r of n)try{r(t)}catch(s){De&&Ce.error(`Error while triggering instrumentation handler.
14
- Type: ${e}
15
- Name: ${Fo(r)}
16
- Error:`,s)}}const Pe=D;function Bo(){const e=Pe.chrome,t=e&&e.app&&e.app.runtime,n="history"in Pe&&!!Pe.history.pushState&&!!Pe.history.replaceState;return!t&&n}function Me(e,t,n){if(!(t in e))return;const r=e[t],s=n(r);typeof s=="function"&&Ho(s,r),e[t]=s}function Et(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch{De&&Ce.log(`Failed to add non-enumerable property "${t}" to object`,e)}}function Ho(e,t){try{const n=t.prototype||{};e.prototype=t.prototype=n,Et(e,"__sentry_original__",t)}catch{}}function xu(e){return e.__sentry_original__}function Du(e){return Object.keys(e).map(t=>`${encodeURIComponent(t)}=${encodeURIComponent(e[t])}`).join("&")}function Go(e){if(isError(e))return{message:e.message,name:e.name,stack:e.stack,...or(e)};if(isEvent(e)){const t={type:e.type,target:sr(e.target),currentTarget:sr(e.currentTarget),...or(e)};return typeof CustomEvent<"u"&&isInstanceOf(e,CustomEvent)&&(t.detail=e.detail),t}else return e}function sr(e){try{return isElement(e)?htmlTreeAsString(e):Object.prototype.toString.call(e)}catch{return"<unknown>"}}function or(e){if(typeof e=="object"&&e!==null){const t={};for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}else return{}}function Cu(e,t=40){const n=Object.keys(Go(e));n.sort();const r=n[0];if(!r)return"[object has no keys]";if(r.length>=t)return truncate(r,t);for(let s=n.length;s>0;s--){const o=n.slice(0,s).join(", ");if(!(o.length>t))return s===n.length?o:truncate(o,t)}return""}function Au(e){return St(e,new Map)}function St(e,t){if(zo(e)){const n=t.get(e);if(n!==void 0)return n;const r={};t.set(e,r);for(const s of Object.getOwnPropertyNames(e))typeof e[s]<"u"&&(r[s]=St(e[s],t));return r}if(Array.isArray(e)){const n=t.get(e);if(n!==void 0)return n;const r=[];return t.set(e,r),e.forEach(s=>{r.push(St(s,t))}),r}return e}function zo(e){if(!isPlainObject(e))return!1;try{const t=Object.getPrototypeOf(e).constructor.name;return!t||t==="Object"}catch{return!0}}function Pu(e){let t;switch(!0){case e==null:t=new String(e);break;case(typeof e=="symbol"||typeof e=="bigint"):t=Object(e);break;case isPrimitive(e):t=new e.constructor(e);break;default:t=e;break}return t}const b=D;let Le;function ir(e){const t="history";gt(t,e),yt(t,Wo)}function Wo(){if(!Bo())return;const e=b.onpopstate;b.onpopstate=function(...n){const r=b.location.href,s=Le;if(Le=r,me("history",{from:s,to:r}),e)try{return e.apply(this,n)}catch{}};function t(n){return function(...r){const s=r.length>2?r[2]:void 0;if(s){const o=Le,i=String(s);Le=i,me("history",{from:o,to:i})}return n.apply(this,r)}}Me(b.history,"pushState",t),Me(b.history,"replaceState",t)}const Yo=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function qo(e){return e==="http"||e==="https"}function je(e,t=!1){const{host:n,path:r,pass:s,port:o,projectId:i,protocol:a,publicKey:c}=e;return`${a}://${c}${t&&s?`:${s}`:""}@${n}${o?`:${o}`:""}/${r&&`${r}/`}${i}`}function Ko(e){const t=Yo.exec(e);if(!t){ue(()=>{console.error(`Invalid Sentry Dsn: ${e}`)});return}const[n,r,s="",o="",i="",a=""]=t.slice(1);let c="",u=a;const f=u.split("/");if(f.length>1&&(c=f.slice(0,-1).join("/"),u=f.pop()),u){const l=u.match(/^\d+/);l&&(u=l[0])}return ar({host:o,pass:s,path:c,projectId:u,port:i,protocol:n,publicKey:r})}function ar(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function Jo(e){if(!J)return!0;const{port:t,projectId:n,protocol:r}=e;return["protocol","publicKey","host","projectId"].find(i=>e[i]?!1:(h.error(`Invalid Sentry Dsn: ${i} missing`),!0))?!1:n.match(/^\d+$/)?qo(r)?t&&isNaN(parseInt(t,10))?(h.error(`Invalid Sentry Dsn: Invalid port ${t}`),!1):!0:(h.error(`Invalid Sentry Dsn: Invalid protocol ${r}`),!1):(h.error(`Invalid Sentry Dsn: Invalid projectId ${n}`),!1)}function Xo(e){const t=typeof e=="string"?Ko(e):ar(e);if(!(!t||!Jo(t)))return t}function ge(e,t=[]){return[e,t]}function Vo(e,t){const[n,r]=e;return[n,[...r,t]]}function bt(e,t){const n=e[1];for(const r of n){const s=r[0].type;if(t(r,s))return!0}return!1}function Mu(e,t){return bt(e,(n,r)=>t.includes(r))}function Ue(e){return m.__SENTRY__&&m.__SENTRY__.encodePolyfill?m.__SENTRY__.encodePolyfill(e):new TextEncoder().encode(e)}function Zo(e){return GLOBAL_OBJ.__SENTRY__&&GLOBAL_OBJ.__SENTRY__.decodePolyfill?GLOBAL_OBJ.__SENTRY__.decodePolyfill(e):new TextDecoder().decode(e)}function Qo(e){const[t,n]=e;let r=JSON.stringify(t);function s(o){typeof r=="string"?r=typeof o=="string"?r+o:[Ue(r),o]:r.push(typeof o=="string"?Ue(o):o)}for(const o of n){const[i,a]=o;if(s(`
17
- ${JSON.stringify(i)}
18
- `),typeof a=="string"||a instanceof Uint8Array)s(a);else{let c;try{c=JSON.stringify(a)}catch{c=JSON.stringify(M(a))}s(c)}}return typeof r=="string"?r:ei(r)}function ei(e){const t=e.reduce((s,o)=>s+o.length,0),n=new Uint8Array(t);let r=0;for(const s of e)n.set(s,r),r+=s.length;return n}function Lu(e){let t=typeof e=="string"?Ue(e):e;function n(i){const a=t.subarray(0,i);return t=t.subarray(i+1),a}function r(){let i=t.indexOf(10);return i<0&&(i=t.length),JSON.parse(Zo(n(i)))}const s=r(),o=[];for(;t.length;){const i=r(),a=typeof i.length=="number"?i.length:void 0;o.push([i,a?n(a):r()])}return[s,o]}function ju(e){return[{type:"span"},e]}function ti(e){const t=typeof e.data=="string"?Ue(e.data):e.data;return[T({type:"attachment",length:t.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType}),t]}const ni={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",profile_chunk:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",feedback:"feedback",span:"span",statsd:"metric_bucket"};function cr(e){return ni[e]}function ur(e){if(!e||!e.sdk)return;const{name:t,version:n}=e.sdk;return{name:t,version:n}}function ri(e,t,n,r){const s=e.sdkProcessingMetadata&&e.sdkProcessingMetadata.dynamicSamplingContext;return{event_id:e.event_id,sent_at:new Date().toISOString(),...t&&{sdk:t},...!!n&&r&&{dsn:je(r)},...s&&{trace:T({...s})}}}class k extends Error{constructor(t,n="warn"){super(t),this.message=t,this.name=new.target.prototype.constructor.name,Object.setPrototypeOf(this,new.target.prototype),this.logLevel=n}}function si(e,t,n){const r=[{type:"client_report"},{timestamp:n||de(),discarded_events:e}];return ge(t?{dsn:t}:{},[r])}const oi="7";function lr(e){const t=e.protocol?`${e.protocol}:`:"",n=e.port?`:${e.port}`:"";return`${t}//${e.host}${n}${e.path?`/${e.path}`:""}/api/`}function ii(e){return`${lr(e)}${e.projectId}/envelope/`}function ai(e,t){return Qr({sentry_key:e.publicKey,sentry_version:oi,...t&&{sentry_client:`${t.name}/${t.version}`}})}function ci(e,t,n){return t||`${ii(e)}?${ai(e,n)}`}function Uu(e,t){const n=makeDsn(e);if(!n)return"";const r=`${lr(n)}embed/error-page/`;let s=`dsn=${dsnToString(n)}`;for(const o in t)if(o!=="dsn"&&o!=="onClose")if(o==="user"){const i=t.user;if(!i)continue;i.name&&(s+=`&name=${encodeURIComponent(i.name)}`),i.email&&(s+=`&email=${encodeURIComponent(i.email)}`)}else s+=`&${encodeURIComponent(o)}=${encodeURIComponent(t[o])}`;return`${r}?${s}`}function ui(e,t){return t&&(e.sdk=e.sdk||{},e.sdk.name=e.sdk.name||t.name,e.sdk.version=e.sdk.version||t.version,e.sdk.integrations=[...e.sdk.integrations||[],...t.integrations||[]],e.sdk.packages=[...e.sdk.packages||[],...t.packages||[]]),e}function li(e,t,n,r){const s=ur(n),o={sent_at:new Date().toISOString(),...s&&{sdk:s},...!!r&&t&&{dsn:je(t)}},i="aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e.toJSON()];return ge(o,[i])}function fi(e,t,n,r){const s=ur(n),o=e.type&&e.type!=="replay_event"?e.type:"event";ui(e,n&&n.sdk);const i=ri(e,s,r,t);return delete e.sdkProcessingMetadata,ge(i,[[{type:o},e]])}function $u(e,t){function n(f){return!!f.trace_id&&!!f.public_key}const r=getDynamicSamplingContextFromSpan(e[0]),s=t&&t.getDsn(),o=t&&t.getOptions().tunnel,i={sent_at:new Date().toISOString(),...n(r)&&{trace:r},...!!o&&s&&{dsn:dsnToString(s)}},a=t&&t.getOptions().beforeSendSpan,c=a?f=>a(spanToJSON(f)):f=>spanToJSON(f),u=[];for(const f of e){const l=c(f);l&&u.push(createSpanEnvelopeItem(l))}return createEnvelope(i,u)}function di(e){if(typeof e=="boolean")return Number(e);const t=typeof e=="string"?parseFloat(e):e;if(typeof t!="number"||isNaN(t)||t<0||t>1){g&&h.warn(`[Tracing] Given sample rate is invalid. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(e)} of type ${JSON.stringify(typeof e)}.`);return}return t}const fr="Not capturing exception because it's already been captured.";class pi{constructor(t){if(this._options=t,this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],t.dsn?this._dsn=Xo(t.dsn):g&&h.warn("No DSN provided, client will not send events."),this._dsn){const n=ci(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:n})}}captureException(t,n,r){const s=w();if(ln(t))return g&&h.log(fr),s;const o={event_id:s,...n};return this._process(this.eventFromException(t,o).then(i=>this._captureEvent(i,o,r))),o.event_id}captureMessage(t,n,r,s){const o={event_id:w(),...r},i=Qe(t)?t:String(t),a=et(t)?this.eventFromMessage(i,n,o):this.eventFromException(t,o);return this._process(a.then(c=>this._captureEvent(c,o,s))),o.event_id}captureEvent(t,n,r){const s=w();if(n&&n.originalException&&ln(n.originalException))return g&&h.log(fr),s;const o={event_id:s,...n},a=(t.sdkProcessingMetadata||{}).capturedSpanScope;return this._process(this._captureEvent(t,o,a||r)),o.event_id}captureSession(t){typeof t.release!="string"?g&&h.warn("Discarded session because of missing or non-string release"):(this.sendSession(t),Z(t,{init:!1}))}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}flush(t){const n=this._transport;return n?(this.emit("flush"),this._isClientDoneProcessing(t).then(r=>n.flush(t).then(s=>r&&s))):$(!0)}close(t){return this.flush(t).then(n=>(this.getOptions().enabled=!1,this.emit("close"),n))}getEventProcessors(){return this._eventProcessors}addEventProcessor(t){this._eventProcessors.push(t)}init(){(this._isEnabled()||this._options.integrations.some(({name:t})=>t.startsWith("Spotlight")))&&this._setupIntegrations()}getIntegrationByName(t){return this._integrations[t]}addIntegration(t){const n=this._integrations[t.name];zn(this,t,this._integrations),n||Gn(this,[t])}sendEvent(t,n={}){this.emit("beforeSendEvent",t,n);let r=fi(t,this._dsn,this._options._metadata,this._options.tunnel);for(const o of n.attachments||[])r=Vo(r,ti(o));const s=this.sendEnvelope(r);s&&s.then(o=>this.emit("afterSendEvent",t,o),null)}sendSession(t){const n=li(t,this._dsn,this._options._metadata,this._options.tunnel);this.sendEnvelope(n)}recordDroppedEvent(t,n,r){if(this._options.sendClientReports){const s=typeof r=="number"?r:1,o=`${t}:${n}`;g&&h.log(`Recording outcome: "${o}"${s>1?` (${s} times)`:""}`),this._outcomes[o]=(this._outcomes[o]||0)+s}}on(t,n){const r=this._hooks[t]=this._hooks[t]||[];return r.push(n),()=>{const s=r.indexOf(n);s>-1&&r.splice(s,1)}}emit(t,...n){const r=this._hooks[t];r&&r.forEach(s=>s(...n))}sendEnvelope(t){return this.emit("beforeEnvelope",t),this._isEnabled()&&this._transport?this._transport.send(t).then(null,n=>(g&&h.error("Error while sending envelope:",n),n)):(g&&h.error("Transport disabled"),$({}))}_setupIntegrations(){const{integrations:t}=this._options;this._integrations=co(this,t),Gn(this,t)}_updateSessionFromEvent(t,n){let r=!1,s=!1;const o=n.exception&&n.exception.values;if(o){s=!0;for(const c of o){const u=c.mechanism;if(u&&u.handled===!1){r=!0;break}}}const i=t.status==="ok";(i&&t.errors===0||i&&r)&&(Z(t,{...r&&{status:"crashed"},errors:t.errors||Number(s||r)}),this.captureSession(t))}_isClientDoneProcessing(t){return new I(n=>{let r=0;const s=1,o=setInterval(()=>{this._numProcessing==0?(clearInterval(o),n(!0)):(r+=s,t&&r>=t&&(clearInterval(o),n(!1)))},s)})}_isEnabled(){return this.getOptions().enabled!==!1&&this._transport!==void 0}_prepareEvent(t,n,r,s=pe()){const o=this.getOptions(),i=Object.keys(this._integrations);return!n.integrations&&i.length>0&&(n.integrations=i),this.emit("preprocessEvent",t,n),t.type||s.setLastEventId(t.event_id||n.event_id),qs(o,t,n,r,this,s).then(a=>{if(a===null)return a;const c={...s.getPropagationContext(),...r?r.getPropagationContext():void 0};if(!(a.contexts&&a.contexts.trace)&&c){const{traceId:f,spanId:l,parentSpanId:d,dsc:p}=c;a.contexts={trace:T({trace_id:f,span_id:l,parent_span_id:d}),...a.contexts};const _=p||Dn(f,this);a.sdkProcessingMetadata={dynamicSamplingContext:_,...a.sdkProcessingMetadata}}return a})}_captureEvent(t,n={},r){return this._processEvent(t,n,r).then(s=>s.event_id,s=>{if(g){const o=s;o.logLevel==="log"?h.log(o.message):h.warn(o)}})}_processEvent(t,n,r){const s=this.getOptions(),{sampleRate:o}=s,i=pr(t),a=dr(t),c=t.type||"error",u=`before send for type \`${c}\``,f=typeof o>"u"?void 0:di(o);if(a&&typeof f=="number"&&Math.random()>f)return this.recordDroppedEvent("sample_rate","error",t),Ne(new k(`Discarding event because it's not included in the random sample (sampling rate = ${o})`,"log"));const l=c==="replay_event"?"replay":c,p=(t.sdkProcessingMetadata||{}).capturedSpanIsolationScope;return this._prepareEvent(t,n,r,p).then(_=>{if(_===null)throw this.recordDroppedEvent("event_processor",l,t),new k("An event processor returned `null`, will not send event.","log");if(n.data&&n.data.__sentry__===!0)return _;const S=_i(this,s,_,n);return hi(S,u)}).then(_=>{if(_===null){if(this.recordDroppedEvent("before_send",l,t),i){const L=t.spans||[],ae=1+L.length;this.recordDroppedEvent("before_send","span",ae)}throw new k(`${u} returned \`null\`, will not send event.`,"log")}const W=r&&r.getSession();if(!i&&W&&this._updateSessionFromEvent(W,_),i){const L=_.sdkProcessingMetadata&&_.sdkProcessingMetadata.spanCountBeforeProcessing||0,ae=_.spans?_.spans.length:0,jr=L-ae;jr>0&&this.recordDroppedEvent("before_send","span",jr)}const S=_.transaction_info;if(i&&S&&_.transaction!==t.transaction){const L="custom";_.transaction_info={...S,source:L}}return this.sendEvent(_,n),_}).then(null,_=>{throw _ instanceof k?_:(this.captureException(_,{data:{__sentry__:!0},originalException:_}),new k(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.
19
- Reason: ${_}`))})}_process(t){this._numProcessing++,t.then(n=>(this._numProcessing--,n),n=>(this._numProcessing--,n))}_clearOutcomes(){const t=this._outcomes;return this._outcomes={},Object.entries(t).map(([n,r])=>{const[s,o]=n.split(":");return{reason:s,category:o,quantity:r}})}_flushOutcomes(){g&&h.log("Flushing outcomes...");const t=this._clearOutcomes();if(t.length===0){g&&h.log("No outcomes to send");return}if(!this._dsn){g&&h.log("No dsn provided, will not send outcomes");return}g&&h.log("Sending outcomes:",t);const n=si(t,this._options.tunnel&&je(this._dsn));this.sendEnvelope(n)}}function hi(e,t){const n=`${t} must return \`null\` or a valid event.`;if(Te(e))return e.then(r=>{if(!q(r)&&r!==null)throw new k(n);return r},r=>{throw new k(`${t} rejected with ${r}`)});if(!q(e)&&e!==null)throw new k(n);return e}function _i(e,t,n,r){const{beforeSend:s,beforeSendTransaction:o,beforeSendSpan:i}=t;if(dr(n)&&s)return s(n,r);if(pr(n)){if(n.spans&&i){const a=[];for(const c of n.spans){const u=i(c);u?a.push(u):e.recordDroppedEvent("before_send","span")}n.spans=a}if(o){if(n.spans){const a=n.spans.length;n.sdkProcessingMetadata={...n.sdkProcessingMetadata,spanCountBeforeProcessing:a}}return o(n,r)}}return n}function dr(e){return e.type===void 0}function pr(e){return e.type==="transaction"}function mi(e,t,n=[t],r="npm"){const s=e._metadata||{};s.sdk||(s.sdk={name:`sentry.javascript.${t}`,packages:n.map(o=>({name:`${r}:@sentry/${o}`,version:j})),version:j}),e._metadata=s}function Fu(){return typeof __SENTRY_BROWSER_BUNDLE__<"u"&&!!__SENTRY_BROWSER_BUNDLE__}function gi(){return"npm"}const ye=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;function vt(e,t){const n=It(e,t),r={type:vi(t),value:Ti(t)};return n.length&&(r.stacktrace={frames:n}),r.type===void 0&&r.value===""&&(r.value="Unrecoverable error caught"),r}function yi(e,t,n,r){const s=E(),o=s&&s.getOptions().normalizeDepth,i=Ni(t),a={__serialized__:Tn(t,o)};if(i)return{exception:{values:[vt(e,i)]},extra:a};const c={exception:{values:[{type:ve(t)?t.constructor.name:r?"UnhandledRejection":"Error",value:Oi(t,{isUnhandledRejection:r})}]},extra:a};if(n){const u=It(e,n);u.length&&(c.exception.values[0].stacktrace={frames:u})}return c}function Tt(e,t){return{exception:{values:[vt(e,t)]}}}function It(e,t){const n=t.stacktrace||t.stack||"",r=Si(t),s=bi(t);try{return e(n,r,s)}catch{}return[]}const Ei=/Minified React error #\d+;/i;function Si(e){return e&&Ei.test(e.message)?1:0}function bi(e){return typeof e.framesToPop=="number"?e.framesToPop:0}function hr(e){return typeof WebAssembly<"u"&&typeof WebAssembly.Exception<"u"?e instanceof WebAssembly.Exception:!1}function vi(e){const t=e&&e.name;return!t&&hr(e)?e.message&&Array.isArray(e.message)&&e.message.length==2?e.message[0]:"WebAssembly.Exception":t}function Ti(e){const t=e&&e.message;return t?t.error&&typeof t.error.message=="string"?t.error.message:hr(e)&&Array.isArray(e.message)&&e.message.length==2?e.message[1]:t:"No error message"}function Ii(e,t,n,r){const s=n&&n.syntheticException||void 0,o=wt(e,t,s,r);return fe(o),o.level="error",n&&n.event_id&&(o.event_id=n.event_id),$(o)}function wi(e,t,n="info",r,s){const o=r&&r.syntheticException||void 0,i=Ot(e,t,o,s);return i.level=n,r&&r.event_id&&(i.event_id=r.event_id),$(i)}function wt(e,t,n,r,s){let o;if(Qt(t)&&t.error)return Tt(e,t.error);if(en(t)||Hr(t)){const i=t;if("stack"in t)o=Tt(e,t);else{const a=i.name||(en(i)?"DOMError":"DOMException"),c=i.message?`${a}: ${i.message}`:a;o=Ot(e,c,n,r),st(o,c)}return"code"in i&&(o.tags={...o.tags,"DOMException.code":`${i.code}`}),o}return Ze(t)?Tt(e,t):q(t)||ve(t)?(o=yi(e,t,n,s),fe(o,{synthetic:!0}),o):(o=Ot(e,t,n,r),st(o,`${t}`,void 0),fe(o,{synthetic:!0}),o)}function Ot(e,t,n,r){const s={};if(r&&n){const o=It(e,n);o.length&&(s.exception={values:[{value:t,stacktrace:{frames:o}}]})}if(Qe(t)){const{__sentry_template_string__:o,__sentry_template_values__:i}=t;return s.logentry={message:o,params:i},s}return s.message=t,s}function Oi(e,{isUnhandledRejection:t}){const n=es(e),r=t?"promise rejection":"exception";return Qt(e)?`Event \`ErrorEvent\` captured as ${r} with message \`${e.message}\``:ve(e)?`Event \`${ki(e)}\` (type=${e.type}) captured as ${r}`:`Object captured as ${r} with keys: ${n}`}function ki(e){try{const t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch{}}function Ni(e){for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t)){const n=e[t];if(n instanceof Error)return n}}const y=m;let kt=0;function _r(){return kt>0}function Ri(){kt++,setTimeout(()=>{kt--})}function te(e,t={},n){if(typeof e!="function")return e;try{const s=e.__sentry_wrapped__;if(s)return typeof s=="function"?s:e;if(nt(e))return e}catch{return e}const r=function(){const s=Array.prototype.slice.call(arguments);try{const o=s.map(i=>te(i,t));return e.apply(this,o)}catch(o){throw Ri(),hs(i=>{i.addEventProcessor(a=>(t.mechanism&&(st(a,void 0,void 0),fe(a,t.mechanism)),a.extra={...a.extra,arguments:s},a)),Mn(o)}),o}};try{for(const s in e)Object.prototype.hasOwnProperty.call(e,s)&&(r[s]=e[s])}catch{}sn(r,e),le(e,"__sentry_wrapped__",r);try{Object.getOwnPropertyDescriptor(r,"name").configurable&&Object.defineProperty(r,"name",{get(){return e.name}})}catch{}return r}function xi(e,{metadata:t,tunnel:n,dsn:r}){const s={event_id:e.event_id,sent_at:new Date().toISOString(),...t&&t.sdk&&{sdk:{name:t.sdk.name,version:t.sdk.version}},...!!n&&!!r&&{dsn:je(r)}},o=Di(e);return ge(s,[o])}function Di(e){return[{type:"user_report"},e]}class Ci extends pi{constructor(t){const n={parentSpanIsAlwaysRootSpan:!0,...t},r=y.SENTRY_SDK_SOURCE||gi();mi(n,"browser",["browser"],r),super(n),n.sendClientReports&&y.document&&y.document.addEventListener("visibilitychange",()=>{y.document.visibilityState==="hidden"&&this._flushOutcomes()})}eventFromException(t,n){return Ii(this._options.stackParser,t,n,this._options.attachStacktrace)}eventFromMessage(t,n="info",r){return wi(this._options.stackParser,t,n,r,this._options.attachStacktrace)}captureUserFeedback(t){if(!this._isEnabled()){ye&&h.warn("SDK not enabled, will not capture user feedback.");return}const n=xi(t,{metadata:this.getSdkMetadata(),dsn:this.getDsn(),tunnel:this.getOptions().tunnel});this.sendEnvelope(n)}_prepareEvent(t,n,r){return t.platform=t.platform||"javascript",super._prepareEvent(t,n,r)}}function Ai(){const e=D,t=e.crypto||e.msCrypto;let n=()=>Math.random()*16;try{if(t&&t.randomUUID)return t.randomUUID().replace(/-/g,"");t&&t.getRandomValues&&(n=()=>{const r=new Uint8Array(1);return t.getRandomValues(r),r[0]})}catch{}return([1e7]+1e3+4e3+8e3+1e11).replace(/[018]/g,r=>(r^(n()&15)>>r/4).toString(16))}function mr(e){return e.exception&&e.exception.values?e.exception.values[0]:void 0}function Bu(e){const{message:t,event_id:n}=e;if(t)return t;const r=mr(e);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||n||"<unknown>":n||"<unknown>"}function Hu(e,t,n){const r=e.exception=e.exception||{},s=r.values=r.values||[],o=s[0]=s[0]||{};o.value||(o.value=t||""),o.type||(o.type=n||"Error")}function Gu(e,t){const n=mr(e);if(!n)return;const r={type:"generic",handled:!0},s=n.mechanism;if(n.mechanism={...r,...s,...t},t&&"data"in t){const o={...s&&s.data,...t.data};n.mechanism.data=o}}const Pi=/^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$/;function Nt(e){return parseInt(e||"",10)}function zu(e){const t=e.match(Pi)||[],n=Nt(t[1]),r=Nt(t[2]),s=Nt(t[3]);return{buildmetadata:t[5],major:isNaN(n)?void 0:n,minor:isNaN(r)?void 0:r,patch:isNaN(s)?void 0:s,prerelease:t[4]}}function Wu(e,t,n=5){if(t.lineno===void 0)return;const r=e.length,s=Math.max(Math.min(r-1,t.lineno-1),0);t.pre_context=e.slice(Math.max(0,s-n),s).map(i=>snipLine(i,0));const o=Math.min(r-1,s);t.context_line=snipLine(e[o],t.colno||0),t.post_context=e.slice(Math.min(s+1,r),s+1+n).map(i=>snipLine(i,0))}function Yu(e){if(e&&e.__sentry_captured__)return!0;try{addNonEnumerableProperty(e,"__sentry_captured__",!0)}catch{}return!1}function qu(e){return Array.isArray(e)?e:[e]}const Mi=1e3;let gr,Rt,xt;function Li(e){const t="dom";gt(t,e),yt(t,ji)}function ji(){if(!b.document)return;const e=me.bind(null,"dom"),t=yr(e,!0);b.document.addEventListener("click",t,!1),b.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach(n=>{const r=b[n]&&b[n].prototype;!r||!r.hasOwnProperty||!r.hasOwnProperty("addEventListener")||(Me(r,"addEventListener",function(s){return function(o,i,a){if(o==="click"||o=="keypress")try{const c=this,u=c.__sentry_instrumentation_handlers__=c.__sentry_instrumentation_handlers__||{},f=u[o]=u[o]||{refCount:0};if(!f.handler){const l=yr(e);f.handler=l,s.call(this,o,l,a)}f.refCount++}catch{}return s.call(this,o,i,a)}}),Me(r,"removeEventListener",function(s){return function(o,i,a){if(o==="click"||o=="keypress")try{const c=this,u=c.__sentry_instrumentation_handlers__||{},f=u[o];f&&(f.refCount--,f.refCount<=0&&(s.call(this,o,f.handler,a),f.handler=void 0,delete u[o]),Object.keys(u).length===0&&delete c.__sentry_instrumentation_handlers__)}catch{}return s.call(this,o,i,a)}}))})}function Ui(e){if(e.type!==Rt)return!1;try{if(!e.target||e.target._sentryId!==xt)return!1}catch{}return!0}function $i(e,t){return e!=="keypress"?!1:!t||!t.tagName?!0:!(t.tagName==="INPUT"||t.tagName==="TEXTAREA"||t.isContentEditable)}function yr(e,t=!1){return n=>{if(!n||n._sentryCaptured)return;const r=Fi(n);if($i(n.type,r))return;Et(n,"_sentryCaptured",!0),r&&!r._sentryId&&Et(r,"_sentryId",Ai());const s=n.type==="keypress"?"input":n.type;Ui(n)||(e({event:n,name:s,global:t}),Rt=n.type,xt=r?r._sentryId:void 0),clearTimeout(gr),gr=b.setTimeout(()=>{xt=void 0,Rt=void 0},Mi)}}function Fi(e){try{return e.target}catch{return null}}const Er=1e3;function Bi(){return Date.now()/Er}function Hi(){const{performance:e}=D;if(!e||!e.now)return Bi;const t=Date.now()-e.now(),n=e.timeOrigin==null?t:e.timeOrigin;return()=>(n+e.now())/Er}const Dt=Hi();let $e;const Ku=(()=>{const{performance:e}=D;if(!e||!e.now){$e="none";return}const t=3600*1e3,n=e.now(),r=Date.now(),s=e.timeOrigin?Math.abs(e.timeOrigin+n-r):t,o=s<t,i=e.timing&&e.timing.navigationStart,c=typeof i=="number"?Math.abs(i+n-r):t,u=c<t;return o||u?s<=c?($e="timeOrigin",e.timeOrigin):($e="navigationStart",i):($e="dateNow",r)})(),Sr=Object.prototype.toString;function Ju(e){switch(Sr.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":case"[object WebAssembly.Exception]":return!0;default:return Ct(e,Error)}}function ne(e,t){return Sr.call(e)===`[object ${t}]`}function Xu(e){return ne(e,"ErrorEvent")}function Vu(e){return ne(e,"DOMError")}function Zu(e){return ne(e,"DOMException")}function Fe(e){return ne(e,"String")}function Gi(e){return typeof e=="object"&&e!==null&&"__sentry_template_string__"in e&&"__sentry_template_values__"in e}function Qu(e){return e===null||Gi(e)||typeof e!="object"&&typeof e!="function"}function zi(e){return ne(e,"Object")}function el(e){return typeof Event<"u"&&Ct(e,Event)}function tl(e){return typeof Element<"u"&&Ct(e,Element)}function nl(e){return ne(e,"RegExp")}function rl(e){return Boolean(e&&e.then&&typeof e.then=="function")}function sl(e){return zi(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e}function Ct(e,t){try{return e instanceof t}catch{return!1}}function ol(e){return!!(typeof e=="object"&&e!==null&&(e.__isVue||e._isVue))}const Ee="__sentry_xhr_v3__";function Wi(e){const t="xhr";gt(t,e),yt(t,Yi)}function Yi(){if(!b.XMLHttpRequest)return;const e=XMLHttpRequest.prototype;e.open=new Proxy(e.open,{apply(t,n,r){const s=Dt()*1e3,o=Fe(r[0])?r[0].toUpperCase():void 0,i=qi(r[1]);if(!o||!i)return t.apply(n,r);n[Ee]={method:o,url:i,request_headers:{}},o==="POST"&&i.match(/sentry_key/)&&(n.__sentry_own_request__=!0);const a=()=>{const c=n[Ee];if(!!c&&n.readyState===4){try{c.status_code=n.status}catch{}const u={endTimestamp:Dt()*1e3,startTimestamp:s,xhr:n};me("xhr",u)}};return"onreadystatechange"in n&&typeof n.onreadystatechange=="function"?n.onreadystatechange=new Proxy(n.onreadystatechange,{apply(c,u,f){return a(),c.apply(u,f)}}):n.addEventListener("readystatechange",a),n.setRequestHeader=new Proxy(n.setRequestHeader,{apply(c,u,f){const[l,d]=f,p=u[Ee];return p&&Fe(l)&&Fe(d)&&(p.request_headers[l.toLowerCase()]=d),c.apply(u,f)}}),t.apply(n,r)}}),e.send=new Proxy(e.send,{apply(t,n,r){const s=n[Ee];if(!s)return t.apply(n,r);r[0]!==void 0&&(s.body=r[0]);const o={startTimestamp:Dt()*1e3,xhr:n};return me("xhr",o),t.apply(n,r)}})}function qi(e){if(Fe(e))return e;try{return e.toString()}catch{}}const Ki=100;function B(e,t){const n=E(),r=pe();if(!n)return;const{beforeBreadcrumb:s=null,maxBreadcrumbs:o=Ki}=n.getOptions();if(o<=0)return;const a={timestamp:de(),...e},c=s?ue(()=>s(a,t)):a;c!==null&&(n.emit&&n.emit("beforeAddBreadcrumb",c,t),r.addBreadcrumb(c,o))}const re={},br={};function Be(e,t){re[e]=re[e]||[],re[e].push(t)}function il(){Object.keys(re).forEach(e=>{re[e]=void 0})}function He(e,t){if(!br[e]){br[e]=!0;try{t()}catch(n){J&&h.error(`Error while instrumenting ${e}`,n)}}}function se(e,t){const n=e&&re[e];if(!!n)for(const r of n)try{r(t)}catch(s){J&&h.error(`Error while triggering instrumentation handler.
20
- Type: ${e}
21
- Name: ${P(r)}
22
- Error:`,s)}}function Ji(e){const t="console";Be(t,e),He(t,Xi)}function Xi(){"console"in m&&tt.forEach(function(e){e in m.console&&N(m.console,e,function(t){return Ie[e]=t,function(...n){se("console",{args:n,level:e});const s=Ie[e];s&&s.apply(m.console,n)}})})}function Vi(e,t){const n="fetch";Be(n,e),He(n,()=>vr(void 0,t))}function al(e){const t="fetch-body-resolved";addHandler(t,e),maybeInstrument(t,()=>vr(Qi))}function vr(e,t=!1){t&&!Co()||N(m,"fetch",function(n){return function(...r){const{method:s,url:o}=ea(r),i={args:r,fetchData:{method:s,url:o},startTimestamp:V()*1e3};e||se("fetch",{...i});const a=new Error().stack;return n.apply(m,r).then(async c=>(e?e(c):se("fetch",{...i,endTimestamp:V()*1e3,response:c}),c),c=>{throw se("fetch",{...i,endTimestamp:V()*1e3,error:c}),Ze(c)&&c.stack===void 0&&(c.stack=a,le(c,"framesToPop",1)),c})}})}async function Zi(e,t){if(e&&e.body){const n=e.body,r=n.getReader(),s=setTimeout(()=>{n.cancel().then(null,()=>{})},90*1e3);let o=!0;for(;o;){let i;try{i=setTimeout(()=>{n.cancel().then(null,()=>{})},5e3);const{done:a}=await r.read();clearTimeout(i),a&&(t(),o=!1)}catch{o=!1}finally{clearTimeout(i)}}clearTimeout(s),r.releaseLock(),n.cancel().then(null,()=>{})}}function Qi(e){let t;try{t=e.clone()}catch{return}Zi(t,()=>{triggerHandlers("fetch-body-resolved",{endTimestamp:timestampInSeconds()*1e3,response:e})})}function At(e,t){return!!e&&typeof e=="object"&&!!e[t]}function Tr(e){return typeof e=="string"?e:e?At(e,"url")?e.url:e.toString?e.toString():"":""}function ea(e){if(e.length===0)return{method:"GET",url:""};if(e.length===2){const[n,r]=e;return{url:Tr(n),method:At(r,"method")?String(r.method).toUpperCase():"GET"}}const t=e[0];return{url:Tr(t),method:At(t,"method")?String(t.method).toUpperCase():"GET"}}const ta=["fatal","error","warning","log","info","debug"];function na(e){return e==="warn"?"warning":ta.includes(e)?e:"log"}function Ir(e){if(e!==void 0)return e>=400&&e<500?"warning":e>=500?"error":void 0}function Pt(e){if(!e)return{};const t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};const 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 cl(e){return e.split(/[?#]/,1)[0]}function ul(e){return e.split(/\\?\//).filter(t=>t.length>0&&t!==",").length}function ll(e){const{protocol:t,host:n,path:r}=e,s=n&&n.replace(/^.*@/,"[filtered]:[filtered]@").replace(/(:80)$/,"").replace(/(:443)$/,"")||"";return`${t?`${t}://`:""}${s}${r}`}const Ge=1024,ra="Breadcrumbs",sa=(e={})=>{const t={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e};return{name:ra,setup(n){t.console&&Ji(aa(n)),t.dom&&Li(ia(n,t.dom)),t.xhr&&Wi(ca(n)),t.fetch&&Vi(ua(n)),t.history&&ir(la(n)),t.sentry&&n.on("beforeSendEvent",oa(n))}}};function oa(e){return function(n){E()===e&&B({category:`sentry.${n.type==="transaction"?"transaction":"event"}`,event_id:n.event_id,level:n.level,message:C(n)},{event:n})}}function ia(e,t){return function(r){if(E()!==e)return;let s,o,i=typeof t=="object"?t.serializeAttribute:void 0,a=typeof t=="object"&&typeof t.maxStringLength=="number"?t.maxStringLength:void 0;a&&a>Ge&&(ye&&h.warn(`\`dom.maxStringLength\` cannot exceed ${Ge}, but a value of ${a} was configured. Sentry will use ${Ge} instead.`),a=Ge),typeof i=="string"&&(i=[i]);try{const u=r.event,f=fa(u)?u.target:u;s=nn(f,{keyAttrs:i,maxStringLength:a}),o=Jr(f)}catch{s="<unknown>"}if(s.length===0)return;const c={category:`ui.${r.name}`,message:s};o&&(c.data={"ui.component_name":o}),B(c,{event:r.event,name:r.name,global:r.global})}}function aa(e){return function(n){if(E()!==e)return;const r={category:"console",data:{arguments:n.args,logger:"console"},level:na(n.level),message:rn(n.args," ")};if(n.level==="assert")if(n.args[0]===!1)r.message=`Assertion failed: ${rn(n.args.slice(1)," ")||"console.assert"}`,r.data.arguments=n.args.slice(1);else return;B(r,{input:n.args,level:n.level})}}function ca(e){return function(n){if(E()!==e)return;const{startTimestamp:r,endTimestamp:s}=n,o=n.xhr[Ee];if(!r||!s||!o)return;const{method:i,url:a,status_code:c,body:u}=o,f={method:i,url:a,status_code:c},l={xhr:n.xhr,input:u,startTimestamp:r,endTimestamp:s},d=Ir(c);B({category:"xhr",data:f,type:"http",level:d},l)}}function ua(e){return function(n){if(E()!==e)return;const{startTimestamp:r,endTimestamp:s}=n;if(!!s&&!(n.fetchData.url.match(/sentry_key/)&&n.fetchData.method==="POST"))if(n.error){const o=n.fetchData,i={data:n.error,input:n.args,startTimestamp:r,endTimestamp:s};B({category:"fetch",data:o,level:"error",type:"http"},i)}else{const o=n.response,i={...n.fetchData,status_code:o&&o.status},a={input:n.args,response:o,startTimestamp:r,endTimestamp:s},c=Ir(i.status_code);B({category:"fetch",data:i,type:"http",level:c},a)}}}function la(e){return function(n){if(E()!==e)return;let r=n.from,s=n.to;const o=Pt(y.location.href);let i=r?Pt(r):void 0;const a=Pt(s);(!i||!i.path)&&(i=o),o.protocol===a.protocol&&o.host===a.host&&(s=a.relative),o.protocol===i.protocol&&o.host===i.host&&(r=i.relative),B({category:"navigation",data:{from:r,to:s}})}}function fa(e){return!!e&&!!e.target}const da=["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"],pa="BrowserApiErrors",ha=(e={})=>{const t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...e};return{name:pa,setupOnce(){t.setTimeout&&N(y,"setTimeout",wr),t.setInterval&&N(y,"setInterval",wr),t.requestAnimationFrame&&N(y,"requestAnimationFrame",_a),t.XMLHttpRequest&&"XMLHttpRequest"in y&&N(XMLHttpRequest.prototype,"send",ma);const n=t.eventTarget;n&&(Array.isArray(n)?n:da).forEach(ga)}}};function wr(e){return function(...t){const n=t[0];return t[0]=te(n,{mechanism:{data:{function:P(e)},handled:!1,type:"instrument"}}),e.apply(this,t)}}function _a(e){return function(t){return e.apply(this,[te(t,{mechanism:{data:{function:"requestAnimationFrame",handler:P(e)},handled:!1,type:"instrument"}})])}}function ma(e){return function(...t){const n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(s=>{s in n&&typeof n[s]=="function"&&N(n,s,function(o){const i={mechanism:{data:{function:s,handler:P(o)},handled:!1,type:"instrument"}},a=nt(o);return a&&(i.mechanism.data.handler=P(a)),te(o,i)})}),e.apply(this,t)}}function ga(e){const t=y,n=t[e]&&t[e].prototype;!n||!n.hasOwnProperty||!n.hasOwnProperty("addEventListener")||(N(n,"addEventListener",function(r){return function(s,o,i){try{typeof o.handleEvent=="function"&&(o.handleEvent=te(o.handleEvent,{mechanism:{data:{function:"handleEvent",handler:P(o),target:e},handled:!1,type:"instrument"}}))}catch{}return r.apply(this,[s,te(o,{mechanism:{data:{function:"addEventListener",handler:P(o),target:e},handled:!1,type:"instrument"}}),i])}}),N(n,"removeEventListener",function(r){return function(s,o,i){const a=o;try{const c=a&&a.__sentry_wrapped__;c&&r.call(this,s,c,i)}catch{}return r.call(this,s,a,i)}}))}let ze=null;function ya(e){const t="error";Be(t,e),He(t,Ea)}function Ea(){ze=m.onerror,m.onerror=function(e,t,n,r,s){return se("error",{column:r,error:s,line:n,msg:e,url:t}),ze&&!ze.__SENTRY_LOADER__?ze.apply(this,arguments):!1},m.onerror.__SENTRY_INSTRUMENTED__=!0}let We=null;function Sa(e){const t="unhandledrejection";Be(t,e),He(t,ba)}function ba(){We=m.onunhandledrejection,m.onunhandledrejection=function(e){return se("unhandledrejection",e),We&&!We.__SENTRY_LOADER__?We.apply(this,arguments):!0},m.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}const va="GlobalHandlers",Ta=(e={})=>{const t={onerror:!0,onunhandledrejection:!0,...e};return{name:va,setupOnce(){Error.stackTraceLimit=50},setup(n){t.onerror&&(Ia(n),Or("onerror")),t.onunhandledrejection&&(wa(n),Or("onunhandledrejection"))}}};function Ia(e){ya(t=>{const{stackParser:n,attachStacktrace:r}=kr();if(E()!==e||_r())return;const{msg:s,url:o,line:i,column:a,error:c}=t,u=Na(wt(n,c||s,void 0,r,!1),o,i,a);u.level="error",Ln(u,{originalException:c,mechanism:{handled:!1,type:"onerror"}})})}function wa(e){Sa(t=>{const{stackParser:n,attachStacktrace:r}=kr();if(E()!==e||_r())return;const s=Oa(t),o=et(s)?ka(s):wt(n,s,void 0,r,!0);o.level="error",Ln(o,{originalException:s,mechanism:{handled:!1,type:"onunhandledrejection"}})})}function Oa(e){if(et(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 ka(e){return{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(e)}`}]}}}function Na(e,t,n,r){const s=e.exception=e.exception||{},o=s.values=s.values||[],i=o[0]=o[0]||{},a=i.stacktrace=i.stacktrace||{},c=a.frames=a.frames||[],u=isNaN(parseInt(r,10))?void 0:r,f=isNaN(parseInt(n,10))?void 0:n,l=ce(t)&&t.length>0?t:Kr();return c.length===0&&c.push({colno:u,filename:l,function:O,in_app:!0,lineno:f}),e}function Or(e){ye&&h.log(`Global Handler attached: ${e}`)}function kr(){const e=E();return e&&e.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}const Ra=()=>({name:"HttpContext",preprocessEvent(e){if(!y.navigator&&!y.location&&!y.document)return;const t=e.request&&e.request.url||y.location&&y.location.href,{referrer:n}=y.document||{},{userAgent:r}=y.navigator||{},s={...e.request&&e.request.headers,...n&&{Referer:n},...r&&{"User-Agent":r}},o={...e.request,...t&&{url:t},headers:s};e.request=o}});function xa(e,t,n=250,r,s,o,i){if(!o.exception||!o.exception.values||!i||!U(i.originalException,Error))return;const a=o.exception.values.length>0?o.exception.values[o.exception.values.length-1]:void 0;a&&(o.exception.values=Da(Mt(e,t,s,i.originalException,r,o.exception.values,a,0),n))}function Mt(e,t,n,r,s,o,i,a){if(o.length>=n+1)return o;let c=[...o];if(U(r[s],Error)){Nr(i,a);const u=e(t,r[s]),f=c.length;Rr(u,s,f,a),c=Mt(e,t,n,r[s],s,[u,...c],u,f)}return Array.isArray(r.errors)&&r.errors.forEach((u,f)=>{if(U(u,Error)){Nr(i,a);const l=e(t,u),d=c.length;Rr(l,`errors[${f}]`,d,a),c=Mt(e,t,n,u,s,[l,...c],l,d)}}),c}function Nr(e,t){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,...e.type==="AggregateError"&&{is_exception_group:!0},exception_id:t}}function Rr(e,t,n,r){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,type:"chained",source:t,exception_id:n,parent_id:r}}function Da(e,t){return e.map(n=>(n.value&&(n.value=X(n.value,t)),n))}const Ca="cause",Aa=5,Pa="LinkedErrors",Ma=(e={})=>{const t=e.limit||Aa,n=e.key||Ca;return{name:Pa,preprocessEvent(r,s,o){const i=o.getOptions();xa(vt,i.stackParser,i.maxValueLength,n,t,r,s)}}},La=10,ja=20,Ua=30,$a=40,Fa=50;function oe(e,t,n,r){const s={filename:e,function:t==="<anonymous>"?O:t,in_app:!0};return n!==void 0&&(s.lineno=n),r!==void 0&&(s.colno=r),s}const Ba=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,Ha=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,Ga=/\((\S*)(?::(\d+))(?::(\d+))\)/,za=[Ua,e=>{const t=Ba.exec(e);if(t){const[,r,s,o]=t;return oe(r,O,+s,+o)}const n=Ha.exec(e);if(n){if(n[2]&&n[2].indexOf("eval")===0){const i=Ga.exec(n[2]);i&&(n[2]=i[1],n[3]=i[2],n[4]=i[3])}const[s,o]=xr(n[1]||O,n[2]);return oe(o,s,n[3]?+n[3]:void 0,n[4]?+n[4]:void 0)}}],Wa=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,Ya=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,qa=[Fa,e=>{const t=Wa.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){const o=Ya.exec(t[3]);o&&(t[1]=t[1]||"eval",t[3]=o[1],t[4]=o[2],t[5]="")}let r=t[3],s=t[1]||O;return[s,r]=xr(s,r),oe(r,s,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}}],Ka=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:[-a-z]+):.*?):(\d+)(?::(\d+))?\)?\s*$/i,yl=[$a,e=>{const t=Ka.exec(e);return t?oe(t[2],t[1]||O,+t[3],t[4]?+t[4]:void 0):void 0}],Ja=/ line (\d+).*script (?:in )?(\S+)(?:: in function (\S+))?$/i,Sl=[La,e=>{const t=Ja.exec(e);return t?oe(t[2],t[3]||O,+t[1]):void 0}],Xa=/ line (\d+), column (\d+)\s*(?:in (?:<anonymous function: ([^>]+)>|([^)]+))\(.*\))? in (.*):\s*$/i,vl=[ja,e=>{const t=Xa.exec(e);return t?oe(t[5],t[3]||t[4]||O,+t[1],+t[2]):void 0}],Va=bn(...[za,qa]),xr=(e,t)=>{const n=e.indexOf("safari-extension")!==-1,r=e.indexOf("safari-web-extension")!==-1;return n||r?[e.indexOf("@")!==-1?e.split("@")[0]:O,n?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]},Ye=null;function Il(){try{return new ErrorEvent(""),!0}catch{return!1}}function wl(){try{return new DOMError(""),!0}catch{return!1}}function Ol(){try{return new DOMException(""),!0}catch{return!1}}function Dr(){if(!("fetch"in Ye))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch{return!1}}function Lt(e){return e&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function kl(){if(typeof EdgeRuntime=="string")return!0;if(!Dr())return!1;if(Lt(Ye.fetch))return!0;let e=!1;const t=Ye.document;if(t&&typeof t.createElement=="function")try{const n=t.createElement("iframe");n.hidden=!0,t.head.appendChild(n),n.contentWindow&&n.contentWindow.fetch&&(e=Lt(n.contentWindow.fetch)),t.head.removeChild(n)}catch(n){DEBUG_BUILD&&logger.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",n)}return e}function Nl(){return"ReportingObserver"in Ye}function Rl(){if(!Dr())return!1;try{return new Request("_",{referrerPolicy:"origin"}),!0}catch{return!1}}const Za=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,qe={};function jt(e){const t=qe[e];if(t)return t;let n=b[e];if(Lt(n))return qe[e]=n.bind(b);const r=b.document;if(r&&typeof r.createElement=="function")try{const s=r.createElement("iframe");s.hidden=!0,r.head.appendChild(s);const o=s.contentWindow;o&&o[e]&&(n=o[e]),r.head.removeChild(s)}catch(s){Za&&Ce.warn(`Could not create sandbox iframe for ${e} check, bailing to window.${e}: `,s)}return n&&(qe[e]=n.bind(b))}function Cr(e){qe[e]=void 0}function xl(...e){return jt("fetch")(...e)}function Dl(...e){return jt("setTimeout")(...e)}function Qa(e){const t=[];function n(){return e===void 0||t.length<e}function r(i){return t.splice(t.indexOf(i),1)[0]||Promise.resolve(void 0)}function s(i){if(!n())return Ne(new k("Not adding Promise because buffer limit was reached."));const a=i();return t.indexOf(a)===-1&&t.push(a),a.then(()=>r(a)).then(null,()=>r(a).then(null,()=>{})),a}function o(i){return new I((a,c)=>{let u=t.length;if(!u)return a(!0);const f=setTimeout(()=>{i&&i>0&&a(!1)},i);t.forEach(l=>{$(l).then(()=>{--u||(clearTimeout(f),a(!0))},c)})})}return{$:t,add:s,drain:o}}const ec=60*1e3;function tc(e,t=Date.now()){const n=parseInt(`${e}`,10);if(!isNaN(n))return n*1e3;const r=Date.parse(`${e}`);return isNaN(r)?ec:r-t}function nc(e,t){return e[t]||e.all||0}function rc(e,t,n=Date.now()){return nc(e,t)>n}function sc(e,{statusCode:t,headers:n},r=Date.now()){const s={...e},o=n&&n["x-sentry-rate-limits"],i=n&&n["retry-after"];if(o)for(const a of o.trim().split(",")){const[c,u,,,f]=a.split(":",5),l=parseInt(c,10),d=(isNaN(l)?60:l)*1e3;if(!u)s.all=r+d;else for(const p of u.split(";"))p==="metric_bucket"?(!f||f.split(";").includes("custom"))&&(s[p]=r+d):s[p]=r+d}else i?s.all=r+tc(i,r):t===429&&(s.all=r+60*1e3);return s}const oc=64;function ic(e,t,n=Qa(e.bufferSize||oc)){let r={};const s=i=>n.drain(i);function o(i){const a=[];if(bt(i,(l,d)=>{const p=cr(d);if(rc(r,p)){const _=Ar(l,d);e.recordDroppedEvent("ratelimit_backoff",p,_)}else a.push(l)}),a.length===0)return $({});const c=ge(i[0],a),u=l=>{bt(c,(d,p)=>{const _=Ar(d,p);e.recordDroppedEvent(l,cr(p),_)})},f=()=>t({body:Qo(c)}).then(l=>(l.statusCode!==void 0&&(l.statusCode<200||l.statusCode>=300)&&g&&h.warn(`Sentry responded with status code ${l.statusCode} to sent event.`),r=sc(r,l),l),l=>{throw u("network_error"),l});return n.add(f).then(l=>l,l=>{if(l instanceof k)return g&&h.error("Skipped sending event because buffer is full."),u("queue_overflow"),$({});throw l})}return{send:o,flush:s}}function Ar(e,t){if(!(t!=="event"&&t!=="transaction"))return Array.isArray(e)?e[1]:void 0}function ac(e,t=jt("fetch")){let n=0,r=0;function s(o){const i=o.body.length;n+=i,r++;const a={body:o.body,method:"POST",referrerPolicy:"origin",headers:e.headers,keepalive:n<=6e4&&r<15,...e.fetchOptions};if(!t)return Cr("fetch"),Ne("No fetch implementation available");try{return t(e.url,a).then(c=>(n-=i,r--,{statusCode:c.status,headers:{"x-sentry-rate-limits":c.headers.get("X-Sentry-Rate-Limits"),"retry-after":c.headers.get("Retry-After")}}))}catch(c){return Cr("fetch"),n-=i,r--,Ne(c)}}return ic(e,s)}function cc(e){return[fo(),Io(),ha(),sa(),Ta(),Ma(),Oo(),Ra()]}function uc(e={}){const t={defaultIntegrations:cc(),release:typeof __SENTRY_RELEASE__=="string"?__SENTRY_RELEASE__:y.SENTRY_RELEASE&&y.SENTRY_RELEASE.id?y.SENTRY_RELEASE.id:void 0,autoSessionTracking:!0,sendClientReports:!0};return e.defaultIntegrations==null&&delete e.defaultIntegrations,{...t,...e}}function lc(){const e=typeof y.window<"u"&&y;if(!e)return!1;const t=e.chrome?"chrome":"browser",n=e[t],r=n&&n.runtime&&n.runtime.id,s=y.location&&y.location.href||"",o=["chrome-extension:","moz-extension:","ms-browser-extension:","safari-web-extension:"],i=!!r&&y===y.top&&o.some(c=>s.startsWith(`${c}//`)),a=typeof e.nw<"u";return!!r&&!i&&!a}function fc(e={}){const t=uc(e);if(!t.skipBrowserExtensionCheck&&lc()){ue(()=>{console.error("[Sentry] You cannot run Sentry this way in a browser extension, check: https://docs.sentry.io/platforms/javascript/best-practices/browser-extensions/")});return}ye&&(_t()||h.warn("No Fetch API detected. The Sentry SDK requires a Fetch API compatible environment to send events. Please add a Fetch API polyfill."));const n={...t,stackParser:ms(t.stackParser||Va),integrations:ao(t),transport:t.transport||ac},r=xo(Ci,n);return t.autoSessionTracking&&dc(),r}function Cl(e={}){if(!WINDOW.document){DEBUG_BUILD&&logger.error("Global document not defined in showReportDialog call");return}const t=getCurrentScope(),n=t.getClient(),r=n&&n.getDsn();if(!r){DEBUG_BUILD&&logger.error("DSN not configured for showReportDialog call");return}if(t&&(e.user={...t.getUser(),...e.user}),!e.eventId){const a=lastEventId();a&&(e.eventId=a)}const s=WINDOW.document.createElement("script");s.async=!0,s.crossOrigin="anonymous",s.src=getReportDialogEndpoint(r,e),e.onLoad&&(s.onload=e.onLoad);const{onClose:o}=e;if(o){const a=c=>{if(c.data==="__sentry_reportdialog_closed__")try{o()}finally{WINDOW.removeEventListener("message",a)}};WINDOW.addEventListener("message",a)}const i=WINDOW.document.head||WINDOW.document.body;i?i.appendChild(s):DEBUG_BUILD&&logger.error("Not injecting report dialog. No injection point found in HTML")}function Al(){}function Pl(e){e()}function dc(){if(typeof y.document>"u"){ye&&h.warn("Session tracking in non-browser environment with @sentry/browser is not supported.");return}Un({ignoreDuration:!0}),Bn(),ir(({from:e,to:t})=>{e!==void 0&&e!==t&&(Un({ignoreDuration:!0}),Bn())})}function Ml(e){const t=getClient();t&&t.captureUserFeedback(e)}class pc{constructor(t){if(!oo())fc({environment:t.environment,dsn:t.dsn,beforeSend(n){var r;return!((r=n.extra)===null||r===void 0)&&r.log?n:null}});else if(t.clientSlug!==void 0&&t.environment!==void 0){const n=gn();n.clear(),n.setTag("client.slug",t.clientSlug),n.addEventProcessor(r=>new Promise(s=>s(Object.assign(Object.assign({},r),{environment:t.environment}))))}}write(t){t.err?Mn(t.err,{extra:{log:!0}}):t.msg&&so(t.msg,{extra:{log:!0}})}}function Ut(){return Ut=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ut.apply(this,arguments)}var Pr=typeof window<"u"?window.navigator.userAgent:"no-window",hc=/bot|crawler|spider|crawling/i.test(Pr),_c={"Content-Type":"application/json"},mc=function(){function e(n){var r=this;n===void 0&&(n={});var s=n.method,o=s===void 0?"PUT":s,i=n.url,a=i===void 0?"/log":i,c=n.headers,u=c===void 0?{}:c,f=n.throttleInterval,l=f===void 0?3e3:f,d=n.withCredentials,p=d!==void 0&&d,_=n.onError,W=n.flushOnClose,S=W!==void 0&&W,L=n.writeCondition;this.writeCondition=L===void 0?e.defaultWriteCondition:L,this.records={},this.headers=Ut({},_c,u),this.start({method:o,url:a,throttleInterval:l,withCredentials:p,onError:_}),S&&window.fetch!==void 0&&window.addEventListener("beforeunload",function(){r.currentThrottleTimeout&&window.clearTimeout(r.currentThrottleTimeout);var ae=r.recordsAsArray();ae.length&&window.fetch(a,{method:o,body:JSON.stringify(ae),headers:r.headers,credentials:p?"include":"same-origin",mode:"cors",keepalive:!0})},!1)}var t=e.prototype;return t.start=function(n){var r=this,s=n.method,o=n.url,i=n.throttleInterval,a=n.withCredentials,c=n.onError;(function u(){r.currentThrottleTimeout=setTimeout(function(){var f=r.recordsAsArray();if(f.length){var l=new XMLHttpRequest;l.onreadystatechange=function(){l.readyState===XMLHttpRequest.DONE&&(l.status>=400&&(typeof c=="function"?c.call(r,f,l):console.warn("Browser Bunyan: A server log write failed")),r.records={},u())},l.open(s,o);for(var d=0,p=Object.entries(r.headers);d<p.length;d++){var _=p[d];l.setRequestHeader(_[0],_[1])}l.withCredentials=a,l.send(JSON.stringify(f))}else u()},i)})()},t.stop=function(){var n=this;setTimeout(function(){n.currentThrottleTimeout&&(clearTimeout(n.currentThrottleTimeout),n.currentThrottleTimeout=null)},1)},t.write=function(n){n.url=typeof window<"u"&&window.location.href,n.userAgent=Pr,this.currentThrottleTimeout&&this.writeCondition(n)&&(this.records[n.msg]?this.records[n.msg].count++:(n.count=1,this.records[n.msg]=n))},t.recordsAsArray=function(){var n=this;return Object.keys(this.records).map(function(r){return n.records[r]})},e.defaultWriteCondition=function(){return window.navigator.onLine&&!hc},e}(),Ll=10,jl=20,Ul=30,$l=40,Fl=50,Bl=60,$t={trace:10,debug:20,info:30,warn:40,error:50,fatal:60},Mr={};function Ft(e){return typeof e=="string"?$t[e.toLowerCase()]:e}function Bt(e,t){return Bt=Object.setPrototypeOf||function(n,r){return n.__proto__=r,n},Bt(e,t)}function gc(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Ht(e,t,n){return Ht=gc()?Reflect.construct:function(r,s,o){var i=[null];i.push.apply(i,s);var a=new(Function.bind.apply(r,i));return o&&Bt(a,o.prototype),a},Ht.apply(null,arguments)}function H(e){if(e==null)return e;if(Array.isArray(e))return e.slice();if(typeof e=="object"){var t={};return Object.keys(e).forEach(function(n){t[n]=e[n]}),t}return e}function Gt(e){return e===void 0?"undefined":e===null?"null":Array.isArray(e)?"[ "+e.map(function(t){return Gt(t)}).join(", ")+" ]":typeof e=="object"?JSON.stringify(e):typeof e=="function"?"[Function: "+e.name+"]":typeof e=="boolean"||typeof e=="number"?e:"'"+e.toString()+"'"}function G(e){if(typeof e!="string"){for(var t=new Array(arguments.length),n=0;n<arguments.length;n++)t[n]=Gt(arguments[n]);return t.join(" ")}for(var r=/%[sdj%]/g,s=1,o=arguments,i=o.length,a=String(e).replace(r,function(u){if(u==="%%")return"%";if(s>=i)return u;switch(u){case"%s":return String(o[s++]);case"%d":return Number(o[s++]);case"%j":try{return JSON.stringify(o[s++])}catch{return"[Circular]"}default:return u}}),c=o[s];s<i;c=o[++s])a+=c===null||typeof c!="object"?" "+c:" "+Gt(c);return a}function yc(e,t){var n=e.split(`
23
- `);n[0]&&n[0].indexOf("call-stack-error")>=0&&n.shift();var r=n[t],s=null;if(r){var o=/^\s*(at|.*@)\s*(.+)?$/.exec(r);s=Array.isArray(o)&&o[2]?o[2]:r}return s}Object.keys($t).forEach(function(e){Mr[$t[e]]=e});var zt={};function Wt(e,t){if(t){if(zt[t])return;zt[t]=!0}console.error(e+`
24
- `)}function Ec(e){return zt[e]}function Sc(){var e=[];return function(t,n){return n&&typeof n=="object"?e.indexOf(n)!==-1?"[Circular]":(e.push(n),n):n}}var bc=function(){function e(){}return e.prototype.write=function(t){t.level<30?console.log(t):t.level<40?console.info(t):t.level<50?console.warn(t):console.error(t),t.err&&t.err.stack&&console.error(t.err.stack),t.obj&&console.log(t.obj)},e}(),z=function(){function e(n,r,s){var o,i,a,c,u=this;if(!(this instanceof e))return new e(n,r);if(r!==void 0&&(o=n,n=r,!(o instanceof e)))throw new TypeError("invalid Logger creation: do not pass a second arg");if(!n)throw new TypeError("options (object) is required");if(o){if(n.name)throw new TypeError("invalid options.name: child cannot set logger name")}else if(!n.name)throw new TypeError("options.name (string) is required");if(n.stream&&n.streams)throw new TypeError('cannot mix "streams" and "stream" options');if(n.streams&&!Array.isArray(n.streams))throw new TypeError("invalid options.streams: must be an array");if(n.serializers&&(typeof n.serializers!="object"||Array.isArray(n.serializers)))throw new TypeError("invalid options.serializers: must be an object");if(o&&s){this._level=o._level,this.streams=o.streams,this.serializers=o.serializers,this.src=o.src,i=this.fields={};var f=Object.keys(o.fields);for(c=0;c<f.length;c++)i[a=f[c]]=o.fields[a];var l=Object.keys(n);for(c=0;c<l.length;c++)i[a=l[c]]=n[a]}else{if(o){for(this._level=o._level,this.streams=[],c=0;c<o.streams.length;c++){var d=H(o.streams[c]);this.streams.push(d)}this.serializers=H(o.serializers),this.src=o.src,this.fields=H(o.fields),n.level&&this.level(n.level)}else this._level=Number.POSITIVE_INFINITY,this.streams=[],this.serializers=null,this.src=!1,this.fields={};n.stream?this.addStream({type:"stream",stream:n.stream,level:n.level}):n.streams?n.streams.forEach(function(p){u.addStream(p,n.level)}):o&&n.level?this.level(n.level):o||this.addStream({type:"raw",stream:new bc,level:n.level}),n.serializers&&this.addSerializers(n.serializers),n.src&&(this.src=!0),delete(i=H(n)).stream,delete i.level,delete i.streams,delete i.serializers,delete i.src,this.serializers&&this._applySerializers(i),Object.keys(i).forEach(function(p){u.fields[p]=i[p]})}}var t=e.prototype;return t.addStream=function(n,r){r===void 0&&(r=30),(n=H(n)).type="raw",n.level=Ft(n.level||r),n.level<this._level&&(this._level=n.level),this.streams.push(n),delete this.haveNonRawStreams},t.addSerializers=function(n){var r=this;this.serializers||(this.serializers={}),Object.keys(n).forEach(function(s){var o=n[s];if(typeof o!="function")throw new TypeError(G('invalid serializer for "%s" field: must be a function',s));r.serializers[s]=o})},t.child=function(n,r){return new this.constructor(this,n||{},r)},t.level=function(n){if(n===void 0)return this._level;for(var r=Ft(n),s=this.streams.length,o=0;o<s;o++)this.streams[o].level=r;this._level=r},t.levels=function(n,r){if(n===void 0)return this.streams.map(function(u){return u.level});var s;if(typeof n=="number"){if((s=this.streams[n])===void 0)throw new Error("invalid stream index: "+n)}else{for(var o=this.streams.length,i=0;i<o;i++){var a=this.streams[i];if(a.name===n){s=a;break}}if(!s)throw new Error(G('no stream with name "%s"',n))}if(r===void 0)return s.level;var c=Ft(r);s.level=c,c<this._level&&(this._level=c)},t._applySerializers=function(n,r){var s=this;Object.keys(this.serializers).forEach(function(o){if(!(n[o]===void 0||r&&r[o]))try{n[o]=s.serializers[o](n[o])}catch(i){Wt(G(`bunyan: ERROR: Exception thrown from the "%s" Bunyan serializer. This should never happen. This is a bugin that serializer function.
25
- %s`,o,i.stack||i)),n[o]=G('(Error in Bunyan log "%s" serializer broke field. See stderr for details.)',o)}})},t._emit=function(n,r){var s,o;if(this.haveNonRawStreams===void 0){for(this.haveNonRawStreams=!1,s=0;s<this.streams.length;s++)if(!this.streams[s].raw){this.haveNonRawStreams=!0;break}}if(r||this.haveNonRawStreams)try{o=JSON.stringify(n,Sc())+`
26
- `}catch(u){var i=u.stack.split(/\n/g,2).join(`
27
- `);Wt('bunyan: ERROR: Exception in `JSON.stringify(rec)`. You can install the "safe-json-stringify" module to have Bunyan fallback to safer stringification. Record:\n'+function(f,l){return l||(l=" "),l+f.split(/\r?\n/g).join(`
28
- `+l)}(G(`%s
29
- %s`,n,u.stack)),i),o=G(`(Exception in JSON.stringify(rec): %j. See stderr for details.)
30
- `,u.message)}if(r)return o;var a=n.level;for(s=0;s<this.streams.length;s++){var c=this.streams[s];c.level<=a&&c.stream.write(n)}return o},e}();function ie(e){return function(){var t=this;function n(i){var a;i[0]instanceof Error?(r={err:t.serializers&&t.serializers.err?t.serializers.err(i[0]):vc.err(i[0])},a={err:!0},s=i.length===1?[r.err.message]:Array.prototype.slice.call(i,1)):typeof i[0]!="object"&&i[0]!==null||Array.isArray(i[0])?(r=null,s=Array.prototype.slice.call(i)):(r=i[0],s=i.length===1&&r.err&&r.err instanceof Error?[r.err.message]:Array.prototype.slice.call(i,1));var c=H(t.fields);c.level=e;var u=r?H(r):null;if(u&&(t.serializers&&t._applySerializers(u,a),Object.keys(u).forEach(function(l){c[l]=u[l]})),c.levelName=Mr[e],c.msg=s.length?G.apply(t,s):"",c.time||(c.time=new Date),t.src&&!c.src)try{throw new Error("call-stack-error")}catch(l){var f=l.stack?yc(l.stack,2):"";f||Ec("src")||Wt("Unable to determine src line info","src"),c.src=f||""}return c.v=1,c}var r=null,s=arguments,o=null;if(arguments.length===0)return this._level<=e;this._level>e||(o=n(s),this._emit(o))}}function Lr(e){var t=e.stack||e.toString();if(e.cause&&typeof e.cause=="function"){var n=e.cause();n&&(t+=`
31
- Caused by: `+Lr(n))}return t}z.prototype.trace=ie(10),z.prototype.debug=ie(20),z.prototype.info=ie(30),z.prototype.warn=ie(40),z.prototype.error=ie(50),z.prototype.fatal=ie(60);var vc={err:function(e){return e&&e.stack?{message:e.message,name:e.name,stack:Lr(e),code:e.code,signal:e.signal}:e}};function Tc(){return Ht(z,[].slice.call(arguments))}var Hl={levels:{trace:"color: DeepPink",debug:"color: GoldenRod",info:"color: DarkTurquoise",warn:"color: Purple",error:"color: Crimson",fatal:"color: Black"},def:"color: DimGray",msg:"color: SteelBlue",src:"color: DimGray; font-style: italic; font-size: 0.9em"},Gl=null,zl=null;function Ic({environment:e,clientSlug:t,url:n,telemetry:r}={}){const{logging:s}=Object.assign({},r),o=[{level:Kt,stream:new Br({logByLevel:!0})}];return s&&o.push({level:Ke,stream:new pc({dsn:"https://509e6f450227e178643e414fe50bd969@o4507853291716608.ingest.us.sentry.io/4508132363141120",environment:e,clientSlug:t})}),n&&o.push({level:Ke,stream:new mc({url:n,method:"POST",throttleInterval:5e3,flushOnClose:!0})}),Tc({name:"embeddable-logger",streams:o,environment:e,clientSlug:t})}}}]);