@leatcom/portal-sessions 0.0.78 → 0.0.79

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.
@@ -1,4 +1,4 @@
1
- (function(Jt,I){typeof exports=="object"&&typeof module<"u"?I(exports,require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","react-dom"],I):(Jt=typeof globalThis<"u"?globalThis:Jt||self,I(Jt.PortalSessions={},Jt.React,Jt.ReactDOM))})(this,function(Jt,I,Vi){"use strict";var _9=Object.defineProperty;var A9=(Jt,I,Vi)=>I in Jt?_9(Jt,I,{enumerable:!0,configurable:!0,writable:!0,value:Vi}):Jt[I]=Vi;var Rn=(Jt,I,Vi)=>A9(Jt,typeof I!="symbol"?I+"":I,Vi);function Ub(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}function Vb(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const i in r)if(i!=="default"&&!(i in e)){const s=Object.getOwnPropertyDescriptor(r,i);s&&Object.defineProperty(e,i,s.get?s:{enumerable:!0,get:()=>r[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}const se=Ub(I);var qi=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Iu(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ku={exports:{}},Bs={};/**
1
+ (function(Zt,I){typeof exports=="object"&&typeof module<"u"?I(exports,require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","react-dom"],I):(Zt=typeof globalThis<"u"?globalThis:Zt||self,I(Zt.PortalSessions={},Zt.React,Zt.ReactDOM))})(this,function(Zt,I,Vi){"use strict";var A9=Object.defineProperty;var T9=(Zt,I,Vi)=>I in Zt?A9(Zt,I,{enumerable:!0,configurable:!0,writable:!0,value:Vi}):Zt[I]=Vi;var Nn=(Zt,I,Vi)=>T9(Zt,typeof I!="symbol"?I+"":I,Vi);function Ub(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}function Vb(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const i in r)if(i!=="default"&&!(i in e)){const s=Object.getOwnPropertyDescriptor(r,i);s&&Object.defineProperty(e,i,s.get?s:{enumerable:!0,get:()=>r[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}const se=Ub(I);var qi=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Iu(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ku={exports:{}},Bs={};/**
2
2
  * @license React
3
3
  * react-jsx-runtime.production.min.js
4
4
  *
@@ -14,20 +14,20 @@
14
14
  *
15
15
  * This source code is licensed under the MIT license found in the
16
16
  * LICENSE file in the root directory of this source tree.
17
- */var sh;function $b(){return sh||(sh=1,process.env.NODE_ENV!=="production"&&function(){var e=I,t=Symbol.for("react.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),o=Symbol.for("react.provider"),c=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),l=Symbol.for("react.lazy"),v=Symbol.for("react.offscreen"),a=Symbol.iterator,h="@@iterator";function y(H){if(H===null||typeof H!="object")return null;var ve=a&&H[a]||H[h];return typeof ve=="function"?ve:null}var g=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function b(H){{for(var ve=arguments.length,Te=new Array(ve>1?ve-1:0),Re=1;Re<ve;Re++)Te[Re-1]=arguments[Re];w("error",H,Te)}}function w(H,ve,Te){{var Re=g.ReactDebugCurrentFrame,et=Re.getStackAddendum();et!==""&&(ve+="%s",Te=Te.concat([et]));var gt=Te.map(function(tt){return String(tt)});gt.unshift("Warning: "+ve),Function.prototype.apply.call(console[H],console,gt)}}var E=!1,S=!1,A=!1,T=!1,O=!1,M;M=Symbol.for("react.module.reference");function D(H){return!!(typeof H=="string"||typeof H=="function"||H===r||H===s||O||H===i||H===d||H===f||T||H===v||E||S||A||typeof H=="object"&&H!==null&&(H.$$typeof===l||H.$$typeof===p||H.$$typeof===o||H.$$typeof===c||H.$$typeof===u||H.$$typeof===M||H.getModuleId!==void 0))}function F(H,ve,Te){var Re=H.displayName;if(Re)return Re;var et=ve.displayName||ve.name||"";return et!==""?Te+"("+et+")":Te}function V(H){return H.displayName||"Context"}function G(H){if(H==null)return null;if(typeof H.tag=="number"&&b("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof H=="function")return H.displayName||H.name||null;if(typeof H=="string")return H;switch(H){case r:return"Fragment";case n:return"Portal";case s:return"Profiler";case i:return"StrictMode";case d:return"Suspense";case f:return"SuspenseList"}if(typeof H=="object")switch(H.$$typeof){case c:var ve=H;return V(ve)+".Consumer";case o:var Te=H;return V(Te._context)+".Provider";case u:return F(H,H.render,"ForwardRef");case p:var Re=H.displayName||null;return Re!==null?Re:G(H.type)||"Memo";case l:{var et=H,gt=et._payload,tt=et._init;try{return G(tt(gt))}catch{return null}}}return null}var U=Object.assign,N=0,L,Y,z,ee,te,re,he;function ue(){}ue.__reactDisabledLog=!0;function ye(){{if(N===0){L=console.log,Y=console.info,z=console.warn,ee=console.error,te=console.group,re=console.groupCollapsed,he=console.groupEnd;var H={configurable:!0,enumerable:!0,value:ue,writable:!0};Object.defineProperties(console,{info:H,log:H,warn:H,error:H,group:H,groupCollapsed:H,groupEnd:H})}N++}}function pe(){{if(N--,N===0){var H={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:U({},H,{value:L}),info:U({},H,{value:Y}),warn:U({},H,{value:z}),error:U({},H,{value:ee}),group:U({},H,{value:te}),groupCollapsed:U({},H,{value:re}),groupEnd:U({},H,{value:he})})}N<0&&b("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var q=g.ReactCurrentDispatcher,$;function Q(H,ve,Te){{if($===void 0)try{throw Error()}catch(et){var Re=et.stack.trim().match(/\n( *(at )?)/);$=Re&&Re[1]||""}return`
18
- `+$+H}}var _=!1,j;{var B=typeof WeakMap=="function"?WeakMap:Map;j=new B}function R(H,ve){if(!H||_)return"";{var Te=j.get(H);if(Te!==void 0)return Te}var Re;_=!0;var et=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var gt;gt=q.current,q.current=null,ye();try{if(ve){var tt=function(){throw Error()};if(Object.defineProperty(tt.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(tt,[])}catch(zt){Re=zt}Reflect.construct(H,[],tt)}else{try{tt.call()}catch(zt){Re=zt}H.call(tt.prototype)}}else{try{throw Error()}catch(zt){Re=zt}H()}}catch(zt){if(zt&&Re&&typeof zt.stack=="string"){for(var We=zt.stack.split(`
19
- `),cn=Re.stack.split(`
20
- `),It=We.length-1,Et=cn.length-1;It>=1&&Et>=0&&We[It]!==cn[Et];)Et--;for(;It>=1&&Et>=0;It--,Et--)if(We[It]!==cn[Et]){if(It!==1||Et!==1)do if(It--,Et--,Et<0||We[It]!==cn[Et]){var Nn=`
21
- `+We[It].replace(" at new "," at ");return H.displayName&&Nn.includes("<anonymous>")&&(Nn=Nn.replace("<anonymous>",H.displayName)),typeof H=="function"&&j.set(H,Nn),Nn}while(It>=1&&Et>=0);break}}}finally{_=!1,q.current=gt,pe(),Error.prepareStackTrace=et}var er=H?H.displayName||H.name:"",Fr=er?Q(er):"";return typeof H=="function"&&j.set(H,Fr),Fr}function X(H,ve,Te){return R(H,!1)}function J(H){var ve=H.prototype;return!!(ve&&ve.isReactComponent)}function Z(H,ve,Te){if(H==null)return"";if(typeof H=="function")return R(H,J(H));if(typeof H=="string")return Q(H);switch(H){case d:return Q("Suspense");case f:return Q("SuspenseList")}if(typeof H=="object")switch(H.$$typeof){case u:return X(H.render);case p:return Z(H.type,ve,Te);case l:{var Re=H,et=Re._payload,gt=Re._init;try{return Z(gt(et),ve,Te)}catch{}}}return""}var W=Object.prototype.hasOwnProperty,fe={},ge=g.ReactDebugCurrentFrame;function le(H){if(H){var ve=H._owner,Te=Z(H.type,H._source,ve?ve.type:null);ge.setExtraStackFrame(Te)}else ge.setExtraStackFrame(null)}function ie(H,ve,Te,Re,et){{var gt=Function.call.bind(W);for(var tt in H)if(gt(H,tt)){var We=void 0;try{if(typeof H[tt]!="function"){var cn=Error((Re||"React class")+": "+Te+" type `"+tt+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof H[tt]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw cn.name="Invariant Violation",cn}We=H[tt](ve,tt,Re,Te,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(It){We=It}We&&!(We instanceof Error)&&(le(et),b("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",Re||"React class",Te,tt,typeof We),le(null)),We instanceof Error&&!(We.message in fe)&&(fe[We.message]=!0,le(et),b("Failed %s type: %s",Te,We.message),le(null))}}}var be=Array.isArray;function ae(H){return be(H)}function Ce(H){{var ve=typeof Symbol=="function"&&Symbol.toStringTag,Te=ve&&H[Symbol.toStringTag]||H.constructor.name||"Object";return Te}}function _e(H){try{return ze(H),!1}catch{return!0}}function ze(H){return""+H}function it(H){if(_e(H))return b("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Ce(H)),ze(H)}var yt=g.ReactCurrentOwner,ht={key:!0,ref:!0,__self:!0,__source:!0},Zn,lt,Xt;Xt={};function pt(H){if(W.call(H,"ref")){var ve=Object.getOwnPropertyDescriptor(H,"ref").get;if(ve&&ve.isReactWarning)return!1}return H.ref!==void 0}function Oe(H){if(W.call(H,"key")){var ve=Object.getOwnPropertyDescriptor(H,"key").get;if(ve&&ve.isReactWarning)return!1}return H.key!==void 0}function an(H,ve){if(typeof H.ref=="string"&&yt.current&&ve&&yt.current.stateNode!==ve){var Te=G(yt.current.type);Xt[Te]||(b('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',G(yt.current.type),H.ref),Xt[Te]=!0)}}function Mt(H,ve){{var Te=function(){Zn||(Zn=!0,b("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",ve))};Te.isReactWarning=!0,Object.defineProperty(H,"key",{get:Te,configurable:!0})}}function dn(H,ve){{var Te=function(){lt||(lt=!0,b("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",ve))};Te.isReactWarning=!0,Object.defineProperty(H,"ref",{get:Te,configurable:!0})}}var en=function(H,ve,Te,Re,et,gt,tt){var We={$$typeof:t,type:H,key:ve,ref:Te,props:tt,_owner:gt};return We._store={},Object.defineProperty(We._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(We,"_self",{configurable:!1,enumerable:!1,writable:!1,value:Re}),Object.defineProperty(We,"_source",{configurable:!1,enumerable:!1,writable:!1,value:et}),Object.freeze&&(Object.freeze(We.props),Object.freeze(We)),We};function fn(H,ve,Te,Re,et){{var gt,tt={},We=null,cn=null;Te!==void 0&&(it(Te),We=""+Te),Oe(ve)&&(it(ve.key),We=""+ve.key),pt(ve)&&(cn=ve.ref,an(ve,et));for(gt in ve)W.call(ve,gt)&&!ht.hasOwnProperty(gt)&&(tt[gt]=ve[gt]);if(H&&H.defaultProps){var It=H.defaultProps;for(gt in It)tt[gt]===void 0&&(tt[gt]=It[gt])}if(We||cn){var Et=typeof H=="function"?H.displayName||H.name||"Unknown":H;We&&Mt(tt,Et),cn&&dn(tt,Et)}return en(H,We,cn,et,Re,yt.current,tt)}}var On=g.ReactCurrentOwner,qn=g.ReactDebugCurrentFrame;function Sn(H){if(H){var ve=H._owner,Te=Z(H.type,H._source,ve?ve.type:null);qn.setExtraStackFrame(Te)}else qn.setExtraStackFrame(null)}var hn;hn=!1;function xt(H){return typeof H=="object"&&H!==null&&H.$$typeof===t}function Xn(){{if(On.current){var H=G(On.current.type);if(H)return`
17
+ */var sh;function $b(){return sh||(sh=1,process.env.NODE_ENV!=="production"&&function(){var e=I,t=Symbol.for("react.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),o=Symbol.for("react.provider"),c=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),l=Symbol.for("react.lazy"),v=Symbol.for("react.offscreen"),a=Symbol.iterator,h="@@iterator";function y(H){if(H===null||typeof H!="object")return null;var ve=a&&H[a]||H[h];return typeof ve=="function"?ve:null}var g=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function b(H){{for(var ve=arguments.length,Te=new Array(ve>1?ve-1:0),Ne=1;Ne<ve;Ne++)Te[Ne-1]=arguments[Ne];w("error",H,Te)}}function w(H,ve,Te){{var Ne=g.ReactDebugCurrentFrame,et=Ne.getStackAddendum();et!==""&&(ve+="%s",Te=Te.concat([et]));var gt=Te.map(function(tt){return String(tt)});gt.unshift("Warning: "+ve),Function.prototype.apply.call(console[H],console,gt)}}var E=!1,S=!1,A=!1,T=!1,O=!1,M;M=Symbol.for("react.module.reference");function D(H){return!!(typeof H=="string"||typeof H=="function"||H===r||H===s||O||H===i||H===d||H===f||T||H===v||E||S||A||typeof H=="object"&&H!==null&&(H.$$typeof===l||H.$$typeof===p||H.$$typeof===o||H.$$typeof===c||H.$$typeof===u||H.$$typeof===M||H.getModuleId!==void 0))}function F(H,ve,Te){var Ne=H.displayName;if(Ne)return Ne;var et=ve.displayName||ve.name||"";return et!==""?Te+"("+et+")":Te}function V(H){return H.displayName||"Context"}function G(H){if(H==null)return null;if(typeof H.tag=="number"&&b("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof H=="function")return H.displayName||H.name||null;if(typeof H=="string")return H;switch(H){case r:return"Fragment";case n:return"Portal";case s:return"Profiler";case i:return"StrictMode";case d:return"Suspense";case f:return"SuspenseList"}if(typeof H=="object")switch(H.$$typeof){case c:var ve=H;return V(ve)+".Consumer";case o:var Te=H;return V(Te._context)+".Provider";case u:return F(H,H.render,"ForwardRef");case p:var Ne=H.displayName||null;return Ne!==null?Ne:G(H.type)||"Memo";case l:{var et=H,gt=et._payload,tt=et._init;try{return G(tt(gt))}catch{return null}}}return null}var U=Object.assign,R=0,L,Y,z,ee,te,re,he;function ue(){}ue.__reactDisabledLog=!0;function ye(){{if(R===0){L=console.log,Y=console.info,z=console.warn,ee=console.error,te=console.group,re=console.groupCollapsed,he=console.groupEnd;var H={configurable:!0,enumerable:!0,value:ue,writable:!0};Object.defineProperties(console,{info:H,log:H,warn:H,error:H,group:H,groupCollapsed:H,groupEnd:H})}R++}}function pe(){{if(R--,R===0){var H={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:U({},H,{value:L}),info:U({},H,{value:Y}),warn:U({},H,{value:z}),error:U({},H,{value:ee}),group:U({},H,{value:te}),groupCollapsed:U({},H,{value:re}),groupEnd:U({},H,{value:he})})}R<0&&b("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var q=g.ReactCurrentDispatcher,$;function Q(H,ve,Te){{if($===void 0)try{throw Error()}catch(et){var Ne=et.stack.trim().match(/\n( *(at )?)/);$=Ne&&Ne[1]||""}return`
18
+ `+$+H}}var _=!1,j;{var B=typeof WeakMap=="function"?WeakMap:Map;j=new B}function N(H,ve){if(!H||_)return"";{var Te=j.get(H);if(Te!==void 0)return Te}var Ne;_=!0;var et=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var gt;gt=q.current,q.current=null,ye();try{if(ve){var tt=function(){throw Error()};if(Object.defineProperty(tt.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(tt,[])}catch(Qt){Ne=Qt}Reflect.construct(H,[],tt)}else{try{tt.call()}catch(Qt){Ne=Qt}H.call(tt.prototype)}}else{try{throw Error()}catch(Qt){Ne=Qt}H()}}catch(Qt){if(Qt&&Ne&&typeof Qt.stack=="string"){for(var We=Qt.stack.split(`
19
+ `),un=Ne.stack.split(`
20
+ `),kt=We.length-1,Et=un.length-1;kt>=1&&Et>=0&&We[kt]!==un[Et];)Et--;for(;kt>=1&&Et>=0;kt--,Et--)if(We[kt]!==un[Et]){if(kt!==1||Et!==1)do if(kt--,Et--,Et<0||We[kt]!==un[Et]){var Rn=`
21
+ `+We[kt].replace(" at new "," at ");return H.displayName&&Rn.includes("<anonymous>")&&(Rn=Rn.replace("<anonymous>",H.displayName)),typeof H=="function"&&j.set(H,Rn),Rn}while(kt>=1&&Et>=0);break}}}finally{_=!1,q.current=gt,pe(),Error.prepareStackTrace=et}var tr=H?H.displayName||H.name:"",Fr=tr?Q(tr):"";return typeof H=="function"&&j.set(H,Fr),Fr}function X(H,ve,Te){return N(H,!1)}function J(H){var ve=H.prototype;return!!(ve&&ve.isReactComponent)}function Z(H,ve,Te){if(H==null)return"";if(typeof H=="function")return N(H,J(H));if(typeof H=="string")return Q(H);switch(H){case d:return Q("Suspense");case f:return Q("SuspenseList")}if(typeof H=="object")switch(H.$$typeof){case u:return X(H.render);case p:return Z(H.type,ve,Te);case l:{var Ne=H,et=Ne._payload,gt=Ne._init;try{return Z(gt(et),ve,Te)}catch{}}}return""}var W=Object.prototype.hasOwnProperty,fe={},ge=g.ReactDebugCurrentFrame;function le(H){if(H){var ve=H._owner,Te=Z(H.type,H._source,ve?ve.type:null);ge.setExtraStackFrame(Te)}else ge.setExtraStackFrame(null)}function ie(H,ve,Te,Ne,et){{var gt=Function.call.bind(W);for(var tt in H)if(gt(H,tt)){var We=void 0;try{if(typeof H[tt]!="function"){var un=Error((Ne||"React class")+": "+Te+" type `"+tt+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof H[tt]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw un.name="Invariant Violation",un}We=H[tt](ve,tt,Ne,Te,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(kt){We=kt}We&&!(We instanceof Error)&&(le(et),b("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",Ne||"React class",Te,tt,typeof We),le(null)),We instanceof Error&&!(We.message in fe)&&(fe[We.message]=!0,le(et),b("Failed %s type: %s",Te,We.message),le(null))}}}var be=Array.isArray;function ae(H){return be(H)}function Ce(H){{var ve=typeof Symbol=="function"&&Symbol.toStringTag,Te=ve&&H[Symbol.toStringTag]||H.constructor.name||"Object";return Te}}function _e(H){try{return ze(H),!1}catch{return!0}}function ze(H){return""+H}function it(H){if(_e(H))return b("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Ce(H)),ze(H)}var yt=g.ReactCurrentOwner,ht={key:!0,ref:!0,__self:!0,__source:!0},Xn,lt,en;en={};function pt(H){if(W.call(H,"ref")){var ve=Object.getOwnPropertyDescriptor(H,"ref").get;if(ve&&ve.isReactWarning)return!1}return H.ref!==void 0}function Oe(H){if(W.call(H,"key")){var ve=Object.getOwnPropertyDescriptor(H,"key").get;if(ve&&ve.isReactWarning)return!1}return H.key!==void 0}function cn(H,ve){if(typeof H.ref=="string"&&yt.current&&ve&&yt.current.stateNode!==ve){var Te=G(yt.current.type);en[Te]||(b('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',G(yt.current.type),H.ref),en[Te]=!0)}}function Mt(H,ve){{var Te=function(){Xn||(Xn=!0,b("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",ve))};Te.isReactWarning=!0,Object.defineProperty(H,"key",{get:Te,configurable:!0})}}function hn(H,ve){{var Te=function(){lt||(lt=!0,b("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",ve))};Te.isReactWarning=!0,Object.defineProperty(H,"ref",{get:Te,configurable:!0})}}var tn=function(H,ve,Te,Ne,et,gt,tt){var We={$$typeof:t,type:H,key:ve,ref:Te,props:tt,_owner:gt};return We._store={},Object.defineProperty(We._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(We,"_self",{configurable:!1,enumerable:!1,writable:!1,value:Ne}),Object.defineProperty(We,"_source",{configurable:!1,enumerable:!1,writable:!1,value:et}),Object.freeze&&(Object.freeze(We.props),Object.freeze(We)),We};function pn(H,ve,Te,Ne,et){{var gt,tt={},We=null,un=null;Te!==void 0&&(it(Te),We=""+Te),Oe(ve)&&(it(ve.key),We=""+ve.key),pt(ve)&&(un=ve.ref,cn(ve,et));for(gt in ve)W.call(ve,gt)&&!ht.hasOwnProperty(gt)&&(tt[gt]=ve[gt]);if(H&&H.defaultProps){var kt=H.defaultProps;for(gt in kt)tt[gt]===void 0&&(tt[gt]=kt[gt])}if(We||un){var Et=typeof H=="function"?H.displayName||H.name||"Unknown":H;We&&Mt(tt,Et),un&&hn(tt,Et)}return tn(H,We,un,et,Ne,yt.current,tt)}}var On=g.ReactCurrentOwner,qn=g.ReactDebugCurrentFrame;function xn(H){if(H){var ve=H._owner,Te=Z(H.type,H._source,ve?ve.type:null);qn.setExtraStackFrame(Te)}else qn.setExtraStackFrame(null)}var mn;mn=!1;function _t(H){return typeof H=="object"&&H!==null&&H.$$typeof===t}function er(){{if(On.current){var H=G(On.current.type);if(H)return`
22
22
 
23
- Check the render method of \``+H+"`."}return""}}function Ae(H){return""}var Qe={};function De(H){{var ve=Xn();if(!ve){var Te=typeof H=="string"?H:H.displayName||H.name;Te&&(ve=`
23
+ Check the render method of \``+H+"`."}return""}}function Ae(H){return""}var Qe={};function De(H){{var ve=er();if(!ve){var Te=typeof H=="string"?H:H.displayName||H.name;Te&&(ve=`
24
24
 
25
- Check the top-level render call using <`+Te+">.")}return ve}}function Ye(H,ve){{if(!H._store||H._store.validated||H.key!=null)return;H._store.validated=!0;var Te=De(ve);if(Qe[Te])return;Qe[Te]=!0;var Re="";H&&H._owner&&H._owner!==On.current&&(Re=" It was passed a child from "+G(H._owner.type)+"."),Sn(H),b('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',Te,Re),Sn(null)}}function Tt(H,ve){{if(typeof H!="object")return;if(ae(H))for(var Te=0;Te<H.length;Te++){var Re=H[Te];xt(Re)&&Ye(Re,ve)}else if(xt(H))H._store&&(H._store.validated=!0);else if(H){var et=y(H);if(typeof et=="function"&&et!==H.entries)for(var gt=et.call(H),tt;!(tt=gt.next()).done;)xt(tt.value)&&Ye(tt.value,ve)}}}function Ps(H){{var ve=H.type;if(ve==null||typeof ve=="string")return;var Te;if(typeof ve=="function")Te=ve.propTypes;else if(typeof ve=="object"&&(ve.$$typeof===u||ve.$$typeof===p))Te=ve.propTypes;else return;if(Te){var Re=G(ve);ie(Te,H.props,"prop",Re,H)}else if(ve.PropTypes!==void 0&&!hn){hn=!0;var et=G(ve);b("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",et||"Unknown")}typeof ve.getDefaultProps=="function"&&!ve.getDefaultProps.isReactClassApproved&&b("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function wi(H){{for(var ve=Object.keys(H.props),Te=0;Te<ve.length;Te++){var Re=ve[Te];if(Re!=="children"&&Re!=="key"){Sn(H),b("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",Re),Sn(null);break}}H.ref!==null&&(Sn(H),b("Invalid attribute `ref` supplied to `React.Fragment`."),Sn(null))}}var js={};function sa(H,ve,Te,Re,et,gt){{var tt=D(H);if(!tt){var We="";(H===void 0||typeof H=="object"&&H!==null&&Object.keys(H).length===0)&&(We+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var cn=Ae();cn?We+=cn:We+=Xn();var It;H===null?It="null":ae(H)?It="array":H!==void 0&&H.$$typeof===t?(It="<"+(G(H.type)||"Unknown")+" />",We=" Did you accidentally export a JSX literal instead of a component?"):It=typeof H,b("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",It,We)}var Et=fn(H,ve,Te,et,gt);if(Et==null)return Et;if(tt){var Nn=ve.children;if(Nn!==void 0)if(Re)if(ae(Nn)){for(var er=0;er<Nn.length;er++)Tt(Nn[er],H);Object.freeze&&Object.freeze(Nn)}else b("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else Tt(Nn,H)}if(W.call(ve,"key")){var Fr=G(H),zt=Object.keys(ve).filter(function(oa){return oa!=="key"}),Ur=zt.length>0?"{key: someKey, "+zt.join(": ..., ")+": ...}":"{key: someKey}";if(!js[Fr+Ur]){var bu=zt.length>0?"{"+zt.join(": ..., ")+": ...}":"{}";b(`A props object containing a "key" prop is being spread into JSX:
25
+ Check the top-level render call using <`+Te+">.")}return ve}}function Ye(H,ve){{if(!H._store||H._store.validated||H.key!=null)return;H._store.validated=!0;var Te=De(ve);if(Qe[Te])return;Qe[Te]=!0;var Ne="";H&&H._owner&&H._owner!==On.current&&(Ne=" It was passed a child from "+G(H._owner.type)+"."),xn(H),b('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',Te,Ne),xn(null)}}function It(H,ve){{if(typeof H!="object")return;if(ae(H))for(var Te=0;Te<H.length;Te++){var Ne=H[Te];_t(Ne)&&Ye(Ne,ve)}else if(_t(H))H._store&&(H._store.validated=!0);else if(H){var et=y(H);if(typeof et=="function"&&et!==H.entries)for(var gt=et.call(H),tt;!(tt=gt.next()).done;)_t(tt.value)&&Ye(tt.value,ve)}}}function Ps(H){{var ve=H.type;if(ve==null||typeof ve=="string")return;var Te;if(typeof ve=="function")Te=ve.propTypes;else if(typeof ve=="object"&&(ve.$$typeof===u||ve.$$typeof===p))Te=ve.propTypes;else return;if(Te){var Ne=G(ve);ie(Te,H.props,"prop",Ne,H)}else if(ve.PropTypes!==void 0&&!mn){mn=!0;var et=G(ve);b("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",et||"Unknown")}typeof ve.getDefaultProps=="function"&&!ve.getDefaultProps.isReactClassApproved&&b("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function wi(H){{for(var ve=Object.keys(H.props),Te=0;Te<ve.length;Te++){var Ne=ve[Te];if(Ne!=="children"&&Ne!=="key"){xn(H),b("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",Ne),xn(null);break}}H.ref!==null&&(xn(H),b("Invalid attribute `ref` supplied to `React.Fragment`."),xn(null))}}var js={};function sa(H,ve,Te,Ne,et,gt){{var tt=D(H);if(!tt){var We="";(H===void 0||typeof H=="object"&&H!==null&&Object.keys(H).length===0)&&(We+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var un=Ae();un?We+=un:We+=er();var kt;H===null?kt="null":ae(H)?kt="array":H!==void 0&&H.$$typeof===t?(kt="<"+(G(H.type)||"Unknown")+" />",We=" Did you accidentally export a JSX literal instead of a component?"):kt=typeof H,b("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",kt,We)}var Et=pn(H,ve,Te,et,gt);if(Et==null)return Et;if(tt){var Rn=ve.children;if(Rn!==void 0)if(Ne)if(ae(Rn)){for(var tr=0;tr<Rn.length;tr++)It(Rn[tr],H);Object.freeze&&Object.freeze(Rn)}else b("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else It(Rn,H)}if(W.call(ve,"key")){var Fr=G(H),Qt=Object.keys(ve).filter(function(oa){return oa!=="key"}),Ur=Qt.length>0?"{key: someKey, "+Qt.join(": ..., ")+": ...}":"{key: someKey}";if(!js[Fr+Ur]){var bu=Qt.length>0?"{"+Qt.join(": ..., ")+": ...}":"{}";b(`A props object containing a "key" prop is being spread into JSX:
26
26
  let props = %s;
27
27
  <%s {...props} />
28
28
  React keys must be passed directly to JSX without using spread:
29
29
  let props = %s;
30
- <%s key={someKey} {...props} />`,Ur,Fr,bu,Fr),js[Fr+Ur]=!0}}return H===r?wi(Et):Ps(Et),Et}}function Yf(H,ve,Te){return sa(H,ve,Te,!0)}function gu(H,ve,Te){return sa(H,ve,Te,!1)}var yu=gu,vu=Yf;Fs.Fragment=r,Fs.jsx=yu,Fs.jsxs=vu}()),Fs}process.env.NODE_ENV==="production"?ku.exports=qb():ku.exports=$b();var m=ku.exports;const Ou=I.createContext({});let ua=class{constructor(){Rn(this,"type");Rn(this,"uuid");Rn(this,"contact");Rn(this,"inputData");Rn(this,"results");Rn(this,"events");Rn(this,"currency");Rn(this,"loyaltyProgram")}};const oh=I.createContext({portalSession:new ua,mutate:async()=>{}});var Nu={exports:{}},Ru={};/**
30
+ <%s key={someKey} {...props} />`,Ur,Fr,bu,Fr),js[Fr+Ur]=!0}}return H===r?wi(Et):Ps(Et),Et}}function Yf(H,ve,Te){return sa(H,ve,Te,!0)}function gu(H,ve,Te){return sa(H,ve,Te,!1)}var yu=gu,vu=Yf;Fs.Fragment=r,Fs.jsx=yu,Fs.jsxs=vu}()),Fs}process.env.NODE_ENV==="production"?ku.exports=qb():ku.exports=$b();var m=ku.exports;const Ou=I.createContext({});let ua=class{constructor(){Nn(this,"type");Nn(this,"uuid");Nn(this,"contact");Nn(this,"inputData");Nn(this,"results");Nn(this,"events");Nn(this,"currency");Nn(this,"loyaltyProgram")}};const oh=I.createContext({portalSession:new ua,mutate:async()=>{}});var Ru={exports:{}},Nu={};/**
31
31
  * @license React
32
32
  * use-sync-external-store-shim.production.min.js
33
33
  *
@@ -35,7 +35,7 @@ React keys must be passed directly to JSX without using spread:
35
35
  *
36
36
  * This source code is licensed under the MIT license found in the
37
37
  * LICENSE file in the root directory of this source tree.
38
- */var ah;function Gb(){if(ah)return Ru;ah=1;var e=I;function t(p,l){return p===l&&(p!==0||1/p===1/l)||p!==p&&l!==l}var n=typeof Object.is=="function"?Object.is:t,r=e.useState,i=e.useEffect,s=e.useLayoutEffect,o=e.useDebugValue;function c(p,l){var v=l(),a=r({inst:{value:v,getSnapshot:l}}),h=a[0].inst,y=a[1];return s(function(){h.value=v,h.getSnapshot=l,u(h)&&y({inst:h})},[p,v,l]),i(function(){return u(h)&&y({inst:h}),p(function(){u(h)&&y({inst:h})})},[p]),o(v),v}function u(p){var l=p.getSnapshot;p=p.value;try{var v=l();return!n(p,v)}catch{return!0}}function d(p,l){return l()}var f=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?d:c;return Ru.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:f,Ru}var Mu={};/**
38
+ */var ah;function Gb(){if(ah)return Nu;ah=1;var e=I;function t(p,l){return p===l&&(p!==0||1/p===1/l)||p!==p&&l!==l}var n=typeof Object.is=="function"?Object.is:t,r=e.useState,i=e.useEffect,s=e.useLayoutEffect,o=e.useDebugValue;function c(p,l){var v=l(),a=r({inst:{value:v,getSnapshot:l}}),h=a[0].inst,y=a[1];return s(function(){h.value=v,h.getSnapshot=l,u(h)&&y({inst:h})},[p,v,l]),i(function(){return u(h)&&y({inst:h}),p(function(){u(h)&&y({inst:h})})},[p]),o(v),v}function u(p){var l=p.getSnapshot;p=p.value;try{var v=l();return!n(p,v)}catch{return!0}}function d(p,l){return l()}var f=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?d:c;return Nu.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:f,Nu}var Mu={};/**
39
39
  * @license React
40
40
  * use-sync-external-store-shim.development.js
41
41
  *
@@ -43,40 +43,40 @@ React keys must be passed directly to JSX without using spread:
43
43
  *
44
44
  * This source code is licensed under the MIT license found in the
45
45
  * LICENSE file in the root directory of this source tree.
46
- */var ch;function Hb(){return ch||(ch=1,process.env.NODE_ENV!=="production"&&function(){typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var e=I,t=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function n(w){{for(var E=arguments.length,S=new Array(E>1?E-1:0),A=1;A<E;A++)S[A-1]=arguments[A];r("error",w,S)}}function r(w,E,S){{var A=t.ReactDebugCurrentFrame,T=A.getStackAddendum();T!==""&&(E+="%s",S=S.concat([T]));var O=S.map(function(M){return String(M)});O.unshift("Warning: "+E),Function.prototype.apply.call(console[w],console,O)}}function i(w,E){return w===E&&(w!==0||1/w===1/E)||w!==w&&E!==E}var s=typeof Object.is=="function"?Object.is:i,o=e.useState,c=e.useEffect,u=e.useLayoutEffect,d=e.useDebugValue,f=!1,p=!1;function l(w,E,S){f||e.startTransition!==void 0&&(f=!0,n("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var A=E();if(!p){var T=E();s(A,T)||(n("The result of getSnapshot should be cached to avoid an infinite loop"),p=!0)}var O=o({inst:{value:A,getSnapshot:E}}),M=O[0].inst,D=O[1];return u(function(){M.value=A,M.getSnapshot=E,v(M)&&D({inst:M})},[w,A,E]),c(function(){v(M)&&D({inst:M});var F=function(){v(M)&&D({inst:M})};return w(F)},[w]),d(A),A}function v(w){var E=w.getSnapshot,S=w.value;try{var A=E();return!s(S,A)}catch{return!0}}function a(w,E,S){return E()}var h=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",y=!h,g=y?a:l,b=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:g;Mu.useSyncExternalStore=b,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}()),Mu}process.env.NODE_ENV==="production"?Nu.exports=Gb():Nu.exports=Hb();var Yb=Nu.exports;const Gr=()=>{},xn=Gr(),Du=Object,ct=e=>e===xn,fr=e=>typeof e=="function",Hr=(e,t)=>({...e,...t}),Wb=e=>fr(e.then),la=new WeakMap;let Kb=0;const Us=e=>{const t=typeof e,n=e&&e.constructor,r=n==Date;let i,s;if(Du(e)===e&&!r&&n!=RegExp){if(i=la.get(e),i)return i;if(i=++Kb+"~",la.set(e,i),n==Array){for(i="@",s=0;s<e.length;s++)i+=Us(e[s])+",";la.set(e,i)}if(n==Du){i="#";const o=Du.keys(e).sort();for(;!ct(s=o.pop());)ct(e[s])||(i+=s+":"+Us(e[s])+",");la.set(e,i)}}else i=r?e.toJSON():t=="symbol"?e.toString():t=="string"?JSON.stringify(e):""+e;return i},xr=new WeakMap,Pu={},da={},ju="undefined",fa=typeof window!=ju,Lu=typeof document!=ju,zb=()=>fa&&typeof window.requestAnimationFrame!=ju,uh=(e,t)=>{const n=xr.get(e);return[()=>!ct(t)&&e.get(t)||Pu,r=>{if(!ct(t)){const i=e.get(t);t in da||(da[t]=i),n[5](t,Hr(i,r),i||Pu)}},n[6],()=>!ct(t)&&t in da?da[t]:!ct(t)&&e.get(t)||Pu]};let Bu=!0;const Qb=()=>Bu,[Fu,Uu]=fa&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[Gr,Gr],Jb=()=>{const e=Lu&&document.visibilityState;return ct(e)||e!=="hidden"},Zb=e=>(Lu&&document.addEventListener("visibilitychange",e),Fu("focus",e),()=>{Lu&&document.removeEventListener("visibilitychange",e),Uu("focus",e)}),Xb=e=>{const t=()=>{Bu=!0,e()},n=()=>{Bu=!1};return Fu("online",t),Fu("offline",n),()=>{Uu("online",t),Uu("offline",n)}},ew={isOnline:Qb,isVisible:Jb},tw={initFocus:Zb,initReconnect:Xb},lh=!I.useId,Vs=!fa||"Deno"in window,nw=e=>zb()?window.requestAnimationFrame(e):setTimeout(e,1),Vu=Vs?I.useEffect:I.useLayoutEffect,qu=typeof navigator<"u"&&navigator.connection,dh=!Vs&&qu&&(["slow-2g","2g"].includes(qu.effectiveType)||qu.saveData),$u=e=>{if(fr(e))try{e=e()}catch{e=""}const t=e;return e=typeof e=="string"?e:(Array.isArray(e)?e.length:e)?Us(e):"",[e,t]};let rw=0;const Gu=()=>++rw,fh=0,hh=1,ph=2;var qs={__proto__:null,ERROR_REVALIDATE_EVENT:3,FOCUS_EVENT:fh,MUTATE_EVENT:ph,RECONNECT_EVENT:hh};async function mh(...e){const[t,n,r,i]=e,s=Hr({populateCache:!0,throwOnError:!0},typeof i=="boolean"?{revalidate:i}:i||{});let o=s.populateCache;const c=s.rollbackOnError;let u=s.optimisticData;const d=l=>typeof c=="function"?c(l):c!==!1,f=s.throwOnError;if(fr(n)){const l=n,v=[],a=t.keys();for(const h of a)!/^\$(inf|sub)\$/.test(h)&&l(t.get(h)._k)&&v.push(h);return Promise.all(v.map(p))}return p(n);async function p(l){const[v]=$u(l);if(!v)return;const[a,h]=uh(t,v),[y,g,b,w]=xr.get(t),E=()=>{const G=y[v];return(fr(s.revalidate)?s.revalidate(a().data,l):s.revalidate!==!1)&&(delete b[v],delete w[v],G&&G[0])?G[0](ph).then(()=>a().data):a().data};if(e.length<3)return E();let S=r,A;const T=Gu();g[v]=[T,0];const O=!ct(u),M=a(),D=M.data,F=M._c,V=ct(F)?D:F;if(O&&(u=fr(u)?u(V,D):u,h({data:u,_c:V})),fr(S))try{S=S(V)}catch(G){A=G}if(S&&Wb(S))if(S=await S.catch(G=>{A=G}),T!==g[v][0]){if(A)throw A;return S}else A&&O&&d(A)&&(o=!0,h({data:V,_c:xn}));if(o&&!A)if(fr(o)){const G=o(S,V);h({data:G,error:xn,_c:xn})}else h({data:S,error:xn,_c:xn});if(g[v][1]=Gu(),Promise.resolve(E()).then(()=>{h({_c:xn})}),A){if(f)throw A;return}return S}}const gh=(e,t)=>{for(const n in e)e[n][0]&&e[n][0](t)},iw=(e,t)=>{if(!xr.has(e)){const n=Hr(tw,t),r={},i=mh.bind(xn,e);let s=Gr;const o={},c=(f,p)=>{const l=o[f]||[];return o[f]=l,l.push(p),()=>l.splice(l.indexOf(p),1)},u=(f,p,l)=>{e.set(f,p);const v=o[f];if(v)for(const a of v)a(p,l)},d=()=>{if(!xr.has(e)&&(xr.set(e,[r,{},{},{},i,u,c]),!Vs)){const f=n.initFocus(setTimeout.bind(xn,gh.bind(xn,r,fh))),p=n.initReconnect(setTimeout.bind(xn,gh.bind(xn,r,hh)));s=()=>{f&&f(),p&&p(),xr.delete(e)}}};return d(),[e,i,d,s]}return[e,xr.get(e)[4]]},sw=(e,t,n,r,i)=>{const s=n.errorRetryCount,o=i.retryCount,c=~~((Math.random()+.5)*(1<<(o<8?o:8)))*n.errorRetryInterval;!ct(s)&&o>s||setTimeout(r,c,i)},ow=(e,t)=>Us(e)==Us(t),[yh,aw]=iw(new Map),cw=Hr({onLoadingSlow:Gr,onSuccess:Gr,onError:Gr,onErrorRetry:sw,onDiscarded:Gr,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:dh?1e4:5e3,focusThrottleInterval:5*1e3,dedupingInterval:2*1e3,loadingTimeout:dh?5e3:3e3,compare:ow,isPaused:()=>!1,cache:yh,mutate:aw,fallback:{}},ew),uw=(e,t)=>{const n=Hr(e,t);if(t){const{use:r,fallback:i}=e,{use:s,fallback:o}=t;r&&s&&(n.use=r.concat(s)),i&&o&&(n.fallback=Hr(i,o))}return n},lw=I.createContext({}),dw="$inf$",vh=fa&&window.__SWR_DEVTOOLS_USE__,fw=vh?window.__SWR_DEVTOOLS_USE__:[],hw=()=>{vh&&(window.__SWR_DEVTOOLS_REACT__=I)},pw=e=>fr(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(e[1]===null?e[2]:e[1])||{}],mw=()=>Hr(cw,I.useContext(lw)),gw=e=>(t,n,r)=>e(t,n&&((...s)=>{const[o]=$u(t),[,,,c]=xr.get(yh);if(o.startsWith(dw))return n(...s);const u=c[o];return ct(u)?n(...s):(delete c[o],u)}),r),yw=fw.concat(gw),vw=e=>function(...n){const r=mw(),[i,s,o]=pw(n),c=uw(r,o);let u=e;const{use:d}=c,f=(d||[]).concat(yw);for(let p=f.length;p--;)u=f[p](u);return u(i,s||c.fetcher||null,c)},bw=(e,t,n)=>{const r=t[e]||(t[e]=[]);return r.push(n),()=>{const i=r.indexOf(n);i>=0&&(r[i]=r[r.length-1],r.pop())}};hw();const bh=I.use||(e=>{if(e.status==="pending")throw e;if(e.status==="fulfilled")return e.value;throw e.status==="rejected"?e.reason:(e.status="pending",e.then(t=>{e.status="fulfilled",e.value=t},t=>{e.status="rejected",e.reason=t}),e)}),Hu={dedupe:!0},ww=vw((e,t,n)=>{const{cache:r,compare:i,suspense:s,fallbackData:o,revalidateOnMount:c,revalidateIfStale:u,refreshInterval:d,refreshWhenHidden:f,refreshWhenOffline:p,keepPreviousData:l}=n,[v,a,h,y]=xr.get(r),[g,b]=$u(e),w=I.useRef(!1),E=I.useRef(!1),S=I.useRef(g),A=I.useRef(t),T=I.useRef(n),O=()=>T.current,M=()=>O().isVisible()&&O().isOnline(),[D,F,V,G]=uh(r,g),U=I.useRef({}).current,N=ct(o)?n.fallback[g]:o,L=(R,X)=>{for(const J in U){const Z=J;if(Z==="data"){if(!i(R[Z],X[Z])&&(!ct(R[Z])||!i(pe,X[Z])))return!1}else if(X[Z]!==R[Z])return!1}return!0},Y=I.useMemo(()=>{const R=!g||!t?!1:ct(c)?O().isPaused()||s?!1:ct(u)?!0:u:c,X=le=>{const ie=Hr(le);return delete ie._k,R?{isValidating:!0,isLoading:!0,...ie}:ie},J=D(),Z=G(),W=X(J),fe=J===Z?W:X(Z);let ge=W;return[()=>{const le=X(D());return L(le,ge)?(ge.data=le.data,ge.isLoading=le.isLoading,ge.isValidating=le.isValidating,ge.error=le.error,ge):(ge=le,le)},()=>fe]},[r,g]),z=Yb.useSyncExternalStore(I.useCallback(R=>V(g,(X,J)=>{L(J,X)||R()}),[r,g]),Y[0],Y[1]),ee=!w.current,te=v[g]&&v[g].length>0,re=z.data,he=ct(re)?N:re,ue=z.error,ye=I.useRef(he),pe=l?ct(re)?ye.current:re:he,q=te&&!ct(ue)?!1:ee&&!ct(c)?c:O().isPaused()?!1:s?ct(he)?!1:u:ct(he)||u,$=!!(g&&t&&ee&&q),Q=ct(z.isValidating)?$:z.isValidating,_=ct(z.isLoading)?$:z.isLoading,j=I.useCallback(async R=>{const X=A.current;if(!g||!X||E.current||O().isPaused())return!1;let J,Z,W=!0;const fe=R||{},ge=!h[g]||!fe.dedupe,le=()=>lh?!E.current&&g===S.current&&w.current:g===S.current,ie={isValidating:!1,isLoading:!1},be=()=>{F(ie)},ae=()=>{const _e=h[g];_e&&_e[1]===Z&&delete h[g]},Ce={isValidating:!0};ct(D().data)&&(Ce.isLoading=!0);try{if(ge&&(F(Ce),n.loadingTimeout&&ct(D().data)&&setTimeout(()=>{W&&le()&&O().onLoadingSlow(g,n)},n.loadingTimeout),h[g]=[X(b),Gu()]),[J,Z]=h[g],J=await J,ge&&setTimeout(ae,n.dedupingInterval),!h[g]||h[g][1]!==Z)return ge&&le()&&O().onDiscarded(g),!1;ie.error=xn;const _e=a[g];if(!ct(_e)&&(Z<=_e[0]||Z<=_e[1]||_e[1]===0))return be(),ge&&le()&&O().onDiscarded(g),!1;const ze=D().data;ie.data=i(ze,J)?ze:J,ge&&le()&&O().onSuccess(J,g,n)}catch(_e){ae();const ze=O(),{shouldRetryOnError:it}=ze;ze.isPaused()||(ie.error=_e,ge&&le()&&(ze.onError(_e,g,ze),(it===!0||fr(it)&&it(_e))&&(!O().revalidateOnFocus||!O().revalidateOnReconnect||M())&&ze.onErrorRetry(_e,g,ze,yt=>{const ht=v[g];ht&&ht[0]&&ht[0](qs.ERROR_REVALIDATE_EVENT,yt)},{retryCount:(fe.retryCount||0)+1,dedupe:!0})))}return W=!1,be(),!0},[g,r]),B=I.useCallback((...R)=>mh(r,S.current,...R),[]);if(Vu(()=>{A.current=t,T.current=n,ct(re)||(ye.current=re)}),Vu(()=>{if(!g)return;const R=j.bind(xn,Hu);let X=0;const Z=bw(g,v,(W,fe={})=>{if(W==qs.FOCUS_EVENT){const ge=Date.now();O().revalidateOnFocus&&ge>X&&M()&&(X=ge+O().focusThrottleInterval,R())}else if(W==qs.RECONNECT_EVENT)O().revalidateOnReconnect&&M()&&R();else{if(W==qs.MUTATE_EVENT)return j();if(W==qs.ERROR_REVALIDATE_EVENT)return j(fe)}});return E.current=!1,S.current=g,w.current=!0,F({_k:b}),q&&(ct(he)||Vs?R():nw(R)),()=>{E.current=!0,Z()}},[g]),Vu(()=>{let R;function X(){const Z=fr(d)?d(D().data):d;Z&&R!==-1&&(R=setTimeout(J,Z))}function J(){!D().error&&(f||O().isVisible())&&(p||O().isOnline())?j(Hu).then(X):X()}return X(),()=>{R&&(clearTimeout(R),R=-1)}},[d,f,p,g]),I.useDebugValue(pe),s&&ct(he)&&g){if(!lh&&Vs)throw new Error("Fallback data is required when using suspense in SSR.");A.current=t,T.current=n,E.current=!1;const R=y[g];if(!ct(R)){const X=B(R);bh(X)}if(ct(ue)){const X=j(Hu);ct(pe)||(X.status="fulfilled",X.value=!0),bh(X)}else throw ue}return{mutate:B,get data(){return U.data=!0,pe},get error(){return U.error=!0,ue},get isValidating(){return U.isValidating=!0,Q},get isLoading(){return U.isLoading=!0,_}}});function wh(e,t){return function(){return e.apply(t,arguments)}}const{toString:Ew}=Object.prototype,{getPrototypeOf:Yu}=Object,ha=(e=>t=>{const n=Ew.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),tr=e=>(e=e.toLowerCase(),t=>ha(t)===e),pa=e=>t=>typeof t===e,{isArray:$i}=Array,$s=pa("undefined");function Sw(e){return e!==null&&!$s(e)&&e.constructor!==null&&!$s(e.constructor)&&Mn(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Eh=tr("ArrayBuffer");function xw(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Eh(e.buffer),t}const Cw=pa("string"),Mn=pa("function"),Sh=pa("number"),ma=e=>e!==null&&typeof e=="object",_w=e=>e===!0||e===!1,ga=e=>{if(ha(e)!=="object")return!1;const t=Yu(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},Aw=tr("Date"),Tw=tr("File"),Iw=tr("Blob"),kw=tr("FileList"),Ow=e=>ma(e)&&Mn(e.pipe),Nw=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Mn(e.append)&&((t=ha(e))==="formdata"||t==="object"&&Mn(e.toString)&&e.toString()==="[object FormData]"))},Rw=tr("URLSearchParams"),[Mw,Dw,Pw,jw]=["ReadableStream","Request","Response","Headers"].map(tr),Lw=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Gs(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,i;if(typeof e!="object"&&(e=[e]),$i(e))for(r=0,i=e.length;r<i;r++)t.call(null,e[r],r,e);else{const s=n?Object.getOwnPropertyNames(e):Object.keys(e),o=s.length;let c;for(r=0;r<o;r++)c=s[r],t.call(null,e[c],c,e)}}function xh(e,t){t=t.toLowerCase();const n=Object.keys(e);let r=n.length,i;for(;r-- >0;)if(i=n[r],t===i.toLowerCase())return i;return null}const Ei=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Ch=e=>!$s(e)&&e!==Ei;function Wu(){const{caseless:e}=Ch(this)&&this||{},t={},n=(r,i)=>{const s=e&&xh(t,i)||i;ga(t[s])&&ga(r)?t[s]=Wu(t[s],r):ga(r)?t[s]=Wu({},r):$i(r)?t[s]=r.slice():t[s]=r};for(let r=0,i=arguments.length;r<i;r++)arguments[r]&&Gs(arguments[r],n);return t}const Bw=(e,t,n,{allOwnKeys:r}={})=>(Gs(t,(i,s)=>{n&&Mn(i)?e[s]=wh(i,n):e[s]=i},{allOwnKeys:r}),e),Fw=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Uw=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},Vw=(e,t,n,r)=>{let i,s,o;const c={};if(t=t||{},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),s=i.length;s-- >0;)o=i[s],(!r||r(o,e,t))&&!c[o]&&(t[o]=e[o],c[o]=!0);e=n!==!1&&Yu(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},qw=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},$w=e=>{if(!e)return null;if($i(e))return e;let t=e.length;if(!Sh(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},Gw=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Yu(Uint8Array)),Hw=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let i;for(;(i=r.next())&&!i.done;){const s=i.value;t.call(e,s[0],s[1])}},Yw=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},Ww=tr("HTMLFormElement"),Kw=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,i){return r.toUpperCase()+i}),_h=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),zw=tr("RegExp"),Ah=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Gs(n,(i,s)=>{let o;(o=t(i,s,e))!==!1&&(r[s]=o||i)}),Object.defineProperties(e,r)},Qw=e=>{Ah(e,(t,n)=>{if(Mn(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(Mn(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},Jw=(e,t)=>{const n={},r=i=>{i.forEach(s=>{n[s]=!0})};return $i(e)?r(e):r(String(e).split(t)),n},Zw=()=>{},Xw=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,Ku="abcdefghijklmnopqrstuvwxyz",Th="0123456789",Ih={DIGIT:Th,ALPHA:Ku,ALPHA_DIGIT:Ku+Ku.toUpperCase()+Th},eE=(e=16,t=Ih.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function tE(e){return!!(e&&Mn(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const nE=e=>{const t=new Array(10),n=(r,i)=>{if(ma(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[i]=r;const s=$i(r)?[]:{};return Gs(r,(o,c)=>{const u=n(o,i+1);!$s(u)&&(s[c]=u)}),t[i]=void 0,s}}return r};return n(e,0)},rE=tr("AsyncFunction"),iE=e=>e&&(ma(e)||Mn(e))&&Mn(e.then)&&Mn(e.catch),kh=((e,t)=>e?setImmediate:t?((n,r)=>(Ei.addEventListener("message",({source:i,data:s})=>{i===Ei&&s===n&&r.length&&r.shift()()},!1),i=>{r.push(i),Ei.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",Mn(Ei.postMessage)),sE=typeof queueMicrotask<"u"?queueMicrotask.bind(Ei):typeof process<"u"&&process.nextTick||kh,de={isArray:$i,isArrayBuffer:Eh,isBuffer:Sw,isFormData:Nw,isArrayBufferView:xw,isString:Cw,isNumber:Sh,isBoolean:_w,isObject:ma,isPlainObject:ga,isReadableStream:Mw,isRequest:Dw,isResponse:Pw,isHeaders:jw,isUndefined:$s,isDate:Aw,isFile:Tw,isBlob:Iw,isRegExp:zw,isFunction:Mn,isStream:Ow,isURLSearchParams:Rw,isTypedArray:Gw,isFileList:kw,forEach:Gs,merge:Wu,extend:Bw,trim:Lw,stripBOM:Fw,inherits:Uw,toFlatObject:Vw,kindOf:ha,kindOfTest:tr,endsWith:qw,toArray:$w,forEachEntry:Hw,matchAll:Yw,isHTMLForm:Ww,hasOwnProperty:_h,hasOwnProp:_h,reduceDescriptors:Ah,freezeMethods:Qw,toObjectSet:Jw,toCamelCase:Kw,noop:Zw,toFiniteNumber:Xw,findKey:xh,global:Ei,isContextDefined:Ch,ALPHABET:Ih,generateString:eE,isSpecCompliantForm:tE,toJSONObject:nE,isAsyncFn:rE,isThenable:iE,setImmediate:kh,asap:sE};function $e(e,t,n,r,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i)}de.inherits($e,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:de.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const Oh=$e.prototype,Nh={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{Nh[e]={value:e}}),Object.defineProperties($e,Nh),Object.defineProperty(Oh,"isAxiosError",{value:!0}),$e.from=(e,t,n,r,i,s)=>{const o=Object.create(Oh);return de.toFlatObject(e,o,function(u){return u!==Error.prototype},c=>c!=="isAxiosError"),$e.call(o,e.message,t,n,r,i),o.cause=e,o.name=e.name,s&&Object.assign(o,s),o};const oE=null;function zu(e){return de.isPlainObject(e)||de.isArray(e)}function Rh(e){return de.endsWith(e,"[]")?e.slice(0,-2):e}function Mh(e,t,n){return e?e.concat(t).map(function(i,s){return i=Rh(i),!n&&s?"["+i+"]":i}).join(n?".":""):t}function aE(e){return de.isArray(e)&&!e.some(zu)}const cE=de.toFlatObject(de,{},null,function(t){return/^is[A-Z]/.test(t)});function ya(e,t,n){if(!de.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=de.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(h,y){return!de.isUndefined(y[h])});const r=n.metaTokens,i=n.visitor||f,s=n.dots,o=n.indexes,u=(n.Blob||typeof Blob<"u"&&Blob)&&de.isSpecCompliantForm(t);if(!de.isFunction(i))throw new TypeError("visitor must be a function");function d(a){if(a===null)return"";if(de.isDate(a))return a.toISOString();if(!u&&de.isBlob(a))throw new $e("Blob is not supported. Use a Buffer instead.");return de.isArrayBuffer(a)||de.isTypedArray(a)?u&&typeof Blob=="function"?new Blob([a]):Buffer.from(a):a}function f(a,h,y){let g=a;if(a&&!y&&typeof a=="object"){if(de.endsWith(h,"{}"))h=r?h:h.slice(0,-2),a=JSON.stringify(a);else if(de.isArray(a)&&aE(a)||(de.isFileList(a)||de.endsWith(h,"[]"))&&(g=de.toArray(a)))return h=Rh(h),g.forEach(function(w,E){!(de.isUndefined(w)||w===null)&&t.append(o===!0?Mh([h],E,s):o===null?h:h+"[]",d(w))}),!1}return zu(a)?!0:(t.append(Mh(y,h,s),d(a)),!1)}const p=[],l=Object.assign(cE,{defaultVisitor:f,convertValue:d,isVisitable:zu});function v(a,h){if(!de.isUndefined(a)){if(p.indexOf(a)!==-1)throw Error("Circular reference detected in "+h.join("."));p.push(a),de.forEach(a,function(g,b){(!(de.isUndefined(g)||g===null)&&i.call(t,g,de.isString(b)?b.trim():b,h,l))===!0&&v(g,h?h.concat(b):[b])}),p.pop()}}if(!de.isObject(e))throw new TypeError("data must be an object");return v(e),t}function Dh(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function Qu(e,t){this._pairs=[],e&&ya(e,this,t)}const Ph=Qu.prototype;Ph.append=function(t,n){this._pairs.push([t,n])},Ph.toString=function(t){const n=t?function(r){return t.call(this,r,Dh)}:Dh;return this._pairs.map(function(i){return n(i[0])+"="+n(i[1])},"").join("&")};function uE(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function jh(e,t,n){if(!t)return e;const r=n&&n.encode||uE,i=n&&n.serialize;let s;if(i?s=i(t,n):s=de.isURLSearchParams(t)?t.toString():new Qu(t,n).toString(r),s){const o=e.indexOf("#");o!==-1&&(e=e.slice(0,o)),e+=(e.indexOf("?")===-1?"?":"&")+s}return e}class Lh{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){de.forEach(this.handlers,function(r){r!==null&&t(r)})}}const Bh={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},lE={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:Qu,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},Ju=typeof window<"u"&&typeof document<"u",dE=(e=>Ju&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),fE=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",hE=Ju&&window.location.href||"http://localhost",nr={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Ju,hasStandardBrowserEnv:dE,hasStandardBrowserWebWorkerEnv:fE,origin:hE},Symbol.toStringTag,{value:"Module"})),...lE};function pE(e,t){return ya(e,new nr.classes.URLSearchParams,Object.assign({visitor:function(n,r,i,s){return nr.isNode&&de.isBuffer(n)?(this.append(r,n.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)}},t))}function mE(e){return de.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function gE(e){const t={},n=Object.keys(e);let r;const i=n.length;let s;for(r=0;r<i;r++)s=n[r],t[s]=e[s];return t}function Fh(e){function t(n,r,i,s){let o=n[s++];if(o==="__proto__")return!0;const c=Number.isFinite(+o),u=s>=n.length;return o=!o&&de.isArray(i)?i.length:o,u?(de.hasOwnProp(i,o)?i[o]=[i[o],r]:i[o]=r,!c):((!i[o]||!de.isObject(i[o]))&&(i[o]=[]),t(n,r,i[o],s)&&de.isArray(i[o])&&(i[o]=gE(i[o])),!c)}if(de.isFormData(e)&&de.isFunction(e.entries)){const n={};return de.forEachEntry(e,(r,i)=>{t(mE(r),i,n,0)}),n}return null}function yE(e,t,n){if(de.isString(e))try{return(t||JSON.parse)(e),de.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(0,JSON.stringify)(e)}const Hs={transitional:Bh,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",i=r.indexOf("application/json")>-1,s=de.isObject(t);if(s&&de.isHTMLForm(t)&&(t=new FormData(t)),de.isFormData(t))return i?JSON.stringify(Fh(t)):t;if(de.isArrayBuffer(t)||de.isBuffer(t)||de.isStream(t)||de.isFile(t)||de.isBlob(t)||de.isReadableStream(t))return t;if(de.isArrayBufferView(t))return t.buffer;if(de.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let c;if(s){if(r.indexOf("application/x-www-form-urlencoded")>-1)return pE(t,this.formSerializer).toString();if((c=de.isFileList(t))||r.indexOf("multipart/form-data")>-1){const u=this.env&&this.env.FormData;return ya(c?{"files[]":t}:t,u&&new u,this.formSerializer)}}return s||i?(n.setContentType("application/json",!1),yE(t)):t}],transformResponse:[function(t){const n=this.transitional||Hs.transitional,r=n&&n.forcedJSONParsing,i=this.responseType==="json";if(de.isResponse(t)||de.isReadableStream(t))return t;if(t&&de.isString(t)&&(r&&!this.responseType||i)){const o=!(n&&n.silentJSONParsing)&&i;try{return JSON.parse(t)}catch(c){if(o)throw c.name==="SyntaxError"?$e.from(c,$e.ERR_BAD_RESPONSE,this,null,this.response):c}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:nr.classes.FormData,Blob:nr.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};de.forEach(["delete","get","head","post","put","patch"],e=>{Hs.headers[e]={}});const vE=de.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),bE=e=>{const t={};let n,r,i;return e&&e.split(`
47
- `).forEach(function(o){i=o.indexOf(":"),n=o.substring(0,i).trim().toLowerCase(),r=o.substring(i+1).trim(),!(!n||t[n]&&vE[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},Uh=Symbol("internals");function Ys(e){return e&&String(e).trim().toLowerCase()}function va(e){return e===!1||e==null?e:de.isArray(e)?e.map(va):String(e)}function wE(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const EE=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Zu(e,t,n,r,i){if(de.isFunction(r))return r.call(this,t,n);if(i&&(t=n),!!de.isString(t)){if(de.isString(r))return t.indexOf(r)!==-1;if(de.isRegExp(r))return r.test(t)}}function SE(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function xE(e,t){const n=de.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(i,s,o){return this[r].call(this,t,i,s,o)},configurable:!0})})}class Cn{constructor(t){t&&this.set(t)}set(t,n,r){const i=this;function s(c,u,d){const f=Ys(u);if(!f)throw new Error("header name must be a non-empty string");const p=de.findKey(i,f);(!p||i[p]===void 0||d===!0||d===void 0&&i[p]!==!1)&&(i[p||u]=va(c))}const o=(c,u)=>de.forEach(c,(d,f)=>s(d,f,u));if(de.isPlainObject(t)||t instanceof this.constructor)o(t,n);else if(de.isString(t)&&(t=t.trim())&&!EE(t))o(bE(t),n);else if(de.isHeaders(t))for(const[c,u]of t.entries())s(u,c,r);else t!=null&&s(n,t,r);return this}get(t,n){if(t=Ys(t),t){const r=de.findKey(this,t);if(r){const i=this[r];if(!n)return i;if(n===!0)return wE(i);if(de.isFunction(n))return n.call(this,i,r);if(de.isRegExp(n))return n.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Ys(t),t){const r=de.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||Zu(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let i=!1;function s(o){if(o=Ys(o),o){const c=de.findKey(r,o);c&&(!n||Zu(r,r[c],c,n))&&(delete r[c],i=!0)}}return de.isArray(t)?t.forEach(s):s(t),i}clear(t){const n=Object.keys(this);let r=n.length,i=!1;for(;r--;){const s=n[r];(!t||Zu(this,this[s],s,t,!0))&&(delete this[s],i=!0)}return i}normalize(t){const n=this,r={};return de.forEach(this,(i,s)=>{const o=de.findKey(r,s);if(o){n[o]=va(i),delete n[s];return}const c=t?SE(s):String(s).trim();c!==s&&delete n[s],n[c]=va(i),r[c]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return de.forEach(this,(r,i)=>{r!=null&&r!==!1&&(n[i]=t&&de.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
48
- `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(i=>r.set(i)),r}static accessor(t){const r=(this[Uh]=this[Uh]={accessors:{}}).accessors,i=this.prototype;function s(o){const c=Ys(o);r[c]||(xE(i,o),r[c]=!0)}return de.isArray(t)?t.forEach(s):s(t),this}}Cn.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),de.reduceDescriptors(Cn.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}}),de.freezeMethods(Cn);function Xu(e,t){const n=this||Hs,r=t||n,i=Cn.from(r.headers);let s=r.data;return de.forEach(e,function(c){s=c.call(n,s,i.normalize(),t?t.status:void 0)}),i.normalize(),s}function Vh(e){return!!(e&&e.__CANCEL__)}function Gi(e,t,n){$e.call(this,e??"canceled",$e.ERR_CANCELED,t,n),this.name="CanceledError"}de.inherits(Gi,$e,{__CANCEL__:!0});function qh(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new $e("Request failed with status code "+n.status,[$e.ERR_BAD_REQUEST,$e.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function CE(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function _E(e,t){e=e||10;const n=new Array(e),r=new Array(e);let i=0,s=0,o;return t=t!==void 0?t:1e3,function(u){const d=Date.now(),f=r[s];o||(o=d),n[i]=u,r[i]=d;let p=s,l=0;for(;p!==i;)l+=n[p++],p=p%e;if(i=(i+1)%e,i===s&&(s=(s+1)%e),d-o<t)return;const v=f&&d-f;return v?Math.round(l*1e3/v):void 0}}function AE(e,t){let n=0,r=1e3/t,i,s;const o=(d,f=Date.now())=>{n=f,i=null,s&&(clearTimeout(s),s=null),e.apply(null,d)};return[(...d)=>{const f=Date.now(),p=f-n;p>=r?o(d,f):(i=d,s||(s=setTimeout(()=>{s=null,o(i)},r-p)))},()=>i&&o(i)]}const ba=(e,t,n=3)=>{let r=0;const i=_E(50,250);return AE(s=>{const o=s.loaded,c=s.lengthComputable?s.total:void 0,u=o-r,d=i(u),f=o<=c;r=o;const p={loaded:o,total:c,progress:c?o/c:void 0,bytes:u,rate:d||void 0,estimated:d&&c&&f?(c-o)/d:void 0,event:s,lengthComputable:c!=null,[t?"download":"upload"]:!0};e(p)},n)},$h=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},Gh=e=>(...t)=>de.asap(()=>e(...t)),TE=nr.hasStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let r;function i(s){let o=s;return t&&(n.setAttribute("href",o),o=n.href),n.setAttribute("href",o),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=i(window.location.href),function(o){const c=de.isString(o)?i(o):o;return c.protocol===r.protocol&&c.host===r.host}}():function(){return function(){return!0}}(),IE=nr.hasStandardBrowserEnv?{write(e,t,n,r,i,s){const o=[e+"="+encodeURIComponent(t)];de.isNumber(n)&&o.push("expires="+new Date(n).toGMTString()),de.isString(r)&&o.push("path="+r),de.isString(i)&&o.push("domain="+i),s===!0&&o.push("secure"),document.cookie=o.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function kE(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function OE(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Hh(e,t){return e&&!kE(t)?OE(e,t):t}const Yh=e=>e instanceof Cn?{...e}:e;function Si(e,t){t=t||{};const n={};function r(d,f,p){return de.isPlainObject(d)&&de.isPlainObject(f)?de.merge.call({caseless:p},d,f):de.isPlainObject(f)?de.merge({},f):de.isArray(f)?f.slice():f}function i(d,f,p){if(de.isUndefined(f)){if(!de.isUndefined(d))return r(void 0,d,p)}else return r(d,f,p)}function s(d,f){if(!de.isUndefined(f))return r(void 0,f)}function o(d,f){if(de.isUndefined(f)){if(!de.isUndefined(d))return r(void 0,d)}else return r(void 0,f)}function c(d,f,p){if(p in t)return r(d,f);if(p in e)return r(void 0,d)}const u={url:s,method:s,data:s,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:c,headers:(d,f)=>i(Yh(d),Yh(f),!0)};return de.forEach(Object.keys(Object.assign({},e,t)),function(f){const p=u[f]||i,l=p(e[f],t[f],f);de.isUndefined(l)&&p!==c||(n[f]=l)}),n}const Wh=e=>{const t=Si({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:i,xsrfCookieName:s,headers:o,auth:c}=t;t.headers=o=Cn.from(o),t.url=jh(Hh(t.baseURL,t.url),e.params,e.paramsSerializer),c&&o.set("Authorization","Basic "+btoa((c.username||"")+":"+(c.password?unescape(encodeURIComponent(c.password)):"")));let u;if(de.isFormData(n)){if(nr.hasStandardBrowserEnv||nr.hasStandardBrowserWebWorkerEnv)o.setContentType(void 0);else if((u=o.getContentType())!==!1){const[d,...f]=u?u.split(";").map(p=>p.trim()).filter(Boolean):[];o.setContentType([d||"multipart/form-data",...f].join("; "))}}if(nr.hasStandardBrowserEnv&&(r&&de.isFunction(r)&&(r=r(t)),r||r!==!1&&TE(t.url))){const d=i&&s&&IE.read(s);d&&o.set(i,d)}return t},NE=typeof XMLHttpRequest<"u"&&function(e){return new Promise(function(n,r){const i=Wh(e);let s=i.data;const o=Cn.from(i.headers).normalize();let{responseType:c,onUploadProgress:u,onDownloadProgress:d}=i,f,p,l,v,a;function h(){v&&v(),a&&a(),i.cancelToken&&i.cancelToken.unsubscribe(f),i.signal&&i.signal.removeEventListener("abort",f)}let y=new XMLHttpRequest;y.open(i.method.toUpperCase(),i.url,!0),y.timeout=i.timeout;function g(){if(!y)return;const w=Cn.from("getAllResponseHeaders"in y&&y.getAllResponseHeaders()),S={data:!c||c==="text"||c==="json"?y.responseText:y.response,status:y.status,statusText:y.statusText,headers:w,config:e,request:y};qh(function(T){n(T),h()},function(T){r(T),h()},S),y=null}"onloadend"in y?y.onloadend=g:y.onreadystatechange=function(){!y||y.readyState!==4||y.status===0&&!(y.responseURL&&y.responseURL.indexOf("file:")===0)||setTimeout(g)},y.onabort=function(){y&&(r(new $e("Request aborted",$e.ECONNABORTED,e,y)),y=null)},y.onerror=function(){r(new $e("Network Error",$e.ERR_NETWORK,e,y)),y=null},y.ontimeout=function(){let E=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const S=i.transitional||Bh;i.timeoutErrorMessage&&(E=i.timeoutErrorMessage),r(new $e(E,S.clarifyTimeoutError?$e.ETIMEDOUT:$e.ECONNABORTED,e,y)),y=null},s===void 0&&o.setContentType(null),"setRequestHeader"in y&&de.forEach(o.toJSON(),function(E,S){y.setRequestHeader(S,E)}),de.isUndefined(i.withCredentials)||(y.withCredentials=!!i.withCredentials),c&&c!=="json"&&(y.responseType=i.responseType),d&&([l,a]=ba(d,!0),y.addEventListener("progress",l)),u&&y.upload&&([p,v]=ba(u),y.upload.addEventListener("progress",p),y.upload.addEventListener("loadend",v)),(i.cancelToken||i.signal)&&(f=w=>{y&&(r(!w||w.type?new Gi(null,e,y):w),y.abort(),y=null)},i.cancelToken&&i.cancelToken.subscribe(f),i.signal&&(i.signal.aborted?f():i.signal.addEventListener("abort",f)));const b=CE(i.url);if(b&&nr.protocols.indexOf(b)===-1){r(new $e("Unsupported protocol "+b+":",$e.ERR_BAD_REQUEST,e));return}y.send(s||null)})},RE=(e,t)=>{let n=new AbortController,r;const i=function(u){if(!r){r=!0,o();const d=u instanceof Error?u:this.reason;n.abort(d instanceof $e?d:new Gi(d instanceof Error?d.message:d))}};let s=t&&setTimeout(()=>{i(new $e(`timeout ${t} of ms exceeded`,$e.ETIMEDOUT))},t);const o=()=>{e&&(s&&clearTimeout(s),s=null,e.forEach(u=>{u&&(u.removeEventListener?u.removeEventListener("abort",i):u.unsubscribe(i))}),e=null)};e.forEach(u=>u&&u.addEventListener&&u.addEventListener("abort",i));const{signal:c}=n;return c.unsubscribe=o,[c,()=>{s&&clearTimeout(s),s=null}]},ME=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let r=0,i;for(;r<n;)i=r+t,yield e.slice(r,i),r=i},DE=async function*(e,t,n){for await(const r of e)yield*ME(ArrayBuffer.isView(r)?r:await n(String(r)),t)},Kh=(e,t,n,r,i)=>{const s=DE(e,t,i);let o=0,c,u=d=>{c||(c=!0,r&&r(d))};return new ReadableStream({async pull(d){try{const{done:f,value:p}=await s.next();if(f){u(),d.close();return}let l=p.byteLength;if(n){let v=o+=l;n(v)}d.enqueue(new Uint8Array(p))}catch(f){throw u(f),f}},cancel(d){return u(d),s.return()}},{highWaterMark:2})},wa=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",zh=wa&&typeof ReadableStream=="function",el=wa&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),Qh=(e,...t)=>{try{return!!e(...t)}catch{return!1}},PE=zh&&Qh(()=>{let e=!1;const t=new Request(nr.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),Jh=64*1024,tl=zh&&Qh(()=>de.isReadableStream(new Response("").body)),Ea={stream:tl&&(e=>e.body)};wa&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!Ea[t]&&(Ea[t]=de.isFunction(e[t])?n=>n[t]():(n,r)=>{throw new $e(`Response type '${t}' is not supported`,$e.ERR_NOT_SUPPORT,r)})})})(new Response);const jE=async e=>{if(e==null)return 0;if(de.isBlob(e))return e.size;if(de.isSpecCompliantForm(e))return(await new Request(e).arrayBuffer()).byteLength;if(de.isArrayBufferView(e)||de.isArrayBuffer(e))return e.byteLength;if(de.isURLSearchParams(e)&&(e=e+""),de.isString(e))return(await el(e)).byteLength},LE=async(e,t)=>{const n=de.toFiniteNumber(e.getContentLength());return n??jE(t)},nl={http:oE,xhr:NE,fetch:wa&&(async e=>{let{url:t,method:n,data:r,signal:i,cancelToken:s,timeout:o,onDownloadProgress:c,onUploadProgress:u,responseType:d,headers:f,withCredentials:p="same-origin",fetchOptions:l}=Wh(e);d=d?(d+"").toLowerCase():"text";let[v,a]=i||s||o?RE([i,s],o):[],h,y;const g=()=>{!h&&setTimeout(()=>{v&&v.unsubscribe()}),h=!0};let b;try{if(u&&PE&&n!=="get"&&n!=="head"&&(b=await LE(f,r))!==0){let A=new Request(t,{method:"POST",body:r,duplex:"half"}),T;if(de.isFormData(r)&&(T=A.headers.get("content-type"))&&f.setContentType(T),A.body){const[O,M]=$h(b,ba(Gh(u)));r=Kh(A.body,Jh,O,M,el)}}de.isString(p)||(p=p?"include":"omit"),y=new Request(t,{...l,signal:v,method:n.toUpperCase(),headers:f.normalize().toJSON(),body:r,duplex:"half",credentials:p});let w=await fetch(y);const E=tl&&(d==="stream"||d==="response");if(tl&&(c||E)){const A={};["status","statusText","headers"].forEach(D=>{A[D]=w[D]});const T=de.toFiniteNumber(w.headers.get("content-length")),[O,M]=c&&$h(T,ba(Gh(c),!0))||[];w=new Response(Kh(w.body,Jh,O,()=>{M&&M(),E&&g()},el),A)}d=d||"text";let S=await Ea[de.findKey(Ea,d)||"text"](w,e);return!E&&g(),a&&a(),await new Promise((A,T)=>{qh(A,T,{data:S,headers:Cn.from(w.headers),status:w.status,statusText:w.statusText,config:e,request:y})})}catch(w){throw g(),w&&w.name==="TypeError"&&/fetch/i.test(w.message)?Object.assign(new $e("Network Error",$e.ERR_NETWORK,e,y),{cause:w.cause||w}):$e.from(w,w&&w.code,e,y)}})};de.forEach(nl,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Zh=e=>`- ${e}`,BE=e=>de.isFunction(e)||e===null||e===!1,Xh={getAdapter:e=>{e=de.isArray(e)?e:[e];const{length:t}=e;let n,r;const i={};for(let s=0;s<t;s++){n=e[s];let o;if(r=n,!BE(n)&&(r=nl[(o=String(n)).toLowerCase()],r===void 0))throw new $e(`Unknown adapter '${o}'`);if(r)break;i[o||"#"+s]=r}if(!r){const s=Object.entries(i).map(([c,u])=>`adapter ${c} `+(u===!1?"is not supported by the environment":"is not available in the build"));let o=t?s.length>1?`since :
46
+ */var ch;function Hb(){return ch||(ch=1,process.env.NODE_ENV!=="production"&&function(){typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var e=I,t=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function n(w){{for(var E=arguments.length,S=new Array(E>1?E-1:0),A=1;A<E;A++)S[A-1]=arguments[A];r("error",w,S)}}function r(w,E,S){{var A=t.ReactDebugCurrentFrame,T=A.getStackAddendum();T!==""&&(E+="%s",S=S.concat([T]));var O=S.map(function(M){return String(M)});O.unshift("Warning: "+E),Function.prototype.apply.call(console[w],console,O)}}function i(w,E){return w===E&&(w!==0||1/w===1/E)||w!==w&&E!==E}var s=typeof Object.is=="function"?Object.is:i,o=e.useState,c=e.useEffect,u=e.useLayoutEffect,d=e.useDebugValue,f=!1,p=!1;function l(w,E,S){f||e.startTransition!==void 0&&(f=!0,n("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var A=E();if(!p){var T=E();s(A,T)||(n("The result of getSnapshot should be cached to avoid an infinite loop"),p=!0)}var O=o({inst:{value:A,getSnapshot:E}}),M=O[0].inst,D=O[1];return u(function(){M.value=A,M.getSnapshot=E,v(M)&&D({inst:M})},[w,A,E]),c(function(){v(M)&&D({inst:M});var F=function(){v(M)&&D({inst:M})};return w(F)},[w]),d(A),A}function v(w){var E=w.getSnapshot,S=w.value;try{var A=E();return!s(S,A)}catch{return!0}}function a(w,E,S){return E()}var h=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",y=!h,g=y?a:l,b=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:g;Mu.useSyncExternalStore=b,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}()),Mu}process.env.NODE_ENV==="production"?Ru.exports=Gb():Ru.exports=Hb();var Yb=Ru.exports;const Gr=()=>{},Cn=Gr(),Du=Object,ut=e=>e===Cn,fr=e=>typeof e=="function",Hr=(e,t)=>({...e,...t}),Wb=e=>fr(e.then),la=new WeakMap;let Kb=0;const Us=e=>{const t=typeof e,n=e&&e.constructor,r=n==Date;let i,s;if(Du(e)===e&&!r&&n!=RegExp){if(i=la.get(e),i)return i;if(i=++Kb+"~",la.set(e,i),n==Array){for(i="@",s=0;s<e.length;s++)i+=Us(e[s])+",";la.set(e,i)}if(n==Du){i="#";const o=Du.keys(e).sort();for(;!ut(s=o.pop());)ut(e[s])||(i+=s+":"+Us(e[s])+",");la.set(e,i)}}else i=r?e.toJSON():t=="symbol"?e.toString():t=="string"?JSON.stringify(e):""+e;return i},xr=new WeakMap,Pu={},da={},ju="undefined",fa=typeof window!=ju,Lu=typeof document!=ju,zb=()=>fa&&typeof window.requestAnimationFrame!=ju,uh=(e,t)=>{const n=xr.get(e);return[()=>!ut(t)&&e.get(t)||Pu,r=>{if(!ut(t)){const i=e.get(t);t in da||(da[t]=i),n[5](t,Hr(i,r),i||Pu)}},n[6],()=>!ut(t)&&t in da?da[t]:!ut(t)&&e.get(t)||Pu]};let Bu=!0;const Qb=()=>Bu,[Fu,Uu]=fa&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[Gr,Gr],Jb=()=>{const e=Lu&&document.visibilityState;return ut(e)||e!=="hidden"},Zb=e=>(Lu&&document.addEventListener("visibilitychange",e),Fu("focus",e),()=>{Lu&&document.removeEventListener("visibilitychange",e),Uu("focus",e)}),Xb=e=>{const t=()=>{Bu=!0,e()},n=()=>{Bu=!1};return Fu("online",t),Fu("offline",n),()=>{Uu("online",t),Uu("offline",n)}},ew={isOnline:Qb,isVisible:Jb},tw={initFocus:Zb,initReconnect:Xb},lh=!I.useId,Vs=!fa||"Deno"in window,nw=e=>zb()?window.requestAnimationFrame(e):setTimeout(e,1),Vu=Vs?I.useEffect:I.useLayoutEffect,qu=typeof navigator<"u"&&navigator.connection,dh=!Vs&&qu&&(["slow-2g","2g"].includes(qu.effectiveType)||qu.saveData),$u=e=>{if(fr(e))try{e=e()}catch{e=""}const t=e;return e=typeof e=="string"?e:(Array.isArray(e)?e.length:e)?Us(e):"",[e,t]};let rw=0;const Gu=()=>++rw,fh=0,hh=1,ph=2;var qs={__proto__:null,ERROR_REVALIDATE_EVENT:3,FOCUS_EVENT:fh,MUTATE_EVENT:ph,RECONNECT_EVENT:hh};async function mh(...e){const[t,n,r,i]=e,s=Hr({populateCache:!0,throwOnError:!0},typeof i=="boolean"?{revalidate:i}:i||{});let o=s.populateCache;const c=s.rollbackOnError;let u=s.optimisticData;const d=l=>typeof c=="function"?c(l):c!==!1,f=s.throwOnError;if(fr(n)){const l=n,v=[],a=t.keys();for(const h of a)!/^\$(inf|sub)\$/.test(h)&&l(t.get(h)._k)&&v.push(h);return Promise.all(v.map(p))}return p(n);async function p(l){const[v]=$u(l);if(!v)return;const[a,h]=uh(t,v),[y,g,b,w]=xr.get(t),E=()=>{const G=y[v];return(fr(s.revalidate)?s.revalidate(a().data,l):s.revalidate!==!1)&&(delete b[v],delete w[v],G&&G[0])?G[0](ph).then(()=>a().data):a().data};if(e.length<3)return E();let S=r,A;const T=Gu();g[v]=[T,0];const O=!ut(u),M=a(),D=M.data,F=M._c,V=ut(F)?D:F;if(O&&(u=fr(u)?u(V,D):u,h({data:u,_c:V})),fr(S))try{S=S(V)}catch(G){A=G}if(S&&Wb(S))if(S=await S.catch(G=>{A=G}),T!==g[v][0]){if(A)throw A;return S}else A&&O&&d(A)&&(o=!0,h({data:V,_c:Cn}));if(o&&!A)if(fr(o)){const G=o(S,V);h({data:G,error:Cn,_c:Cn})}else h({data:S,error:Cn,_c:Cn});if(g[v][1]=Gu(),Promise.resolve(E()).then(()=>{h({_c:Cn})}),A){if(f)throw A;return}return S}}const gh=(e,t)=>{for(const n in e)e[n][0]&&e[n][0](t)},iw=(e,t)=>{if(!xr.has(e)){const n=Hr(tw,t),r={},i=mh.bind(Cn,e);let s=Gr;const o={},c=(f,p)=>{const l=o[f]||[];return o[f]=l,l.push(p),()=>l.splice(l.indexOf(p),1)},u=(f,p,l)=>{e.set(f,p);const v=o[f];if(v)for(const a of v)a(p,l)},d=()=>{if(!xr.has(e)&&(xr.set(e,[r,{},{},{},i,u,c]),!Vs)){const f=n.initFocus(setTimeout.bind(Cn,gh.bind(Cn,r,fh))),p=n.initReconnect(setTimeout.bind(Cn,gh.bind(Cn,r,hh)));s=()=>{f&&f(),p&&p(),xr.delete(e)}}};return d(),[e,i,d,s]}return[e,xr.get(e)[4]]},sw=(e,t,n,r,i)=>{const s=n.errorRetryCount,o=i.retryCount,c=~~((Math.random()+.5)*(1<<(o<8?o:8)))*n.errorRetryInterval;!ut(s)&&o>s||setTimeout(r,c,i)},ow=(e,t)=>Us(e)==Us(t),[yh,aw]=iw(new Map),cw=Hr({onLoadingSlow:Gr,onSuccess:Gr,onError:Gr,onErrorRetry:sw,onDiscarded:Gr,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:dh?1e4:5e3,focusThrottleInterval:5*1e3,dedupingInterval:2*1e3,loadingTimeout:dh?5e3:3e3,compare:ow,isPaused:()=>!1,cache:yh,mutate:aw,fallback:{}},ew),uw=(e,t)=>{const n=Hr(e,t);if(t){const{use:r,fallback:i}=e,{use:s,fallback:o}=t;r&&s&&(n.use=r.concat(s)),i&&o&&(n.fallback=Hr(i,o))}return n},lw=I.createContext({}),dw="$inf$",vh=fa&&window.__SWR_DEVTOOLS_USE__,fw=vh?window.__SWR_DEVTOOLS_USE__:[],hw=()=>{vh&&(window.__SWR_DEVTOOLS_REACT__=I)},pw=e=>fr(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(e[1]===null?e[2]:e[1])||{}],mw=()=>Hr(cw,I.useContext(lw)),gw=e=>(t,n,r)=>e(t,n&&((...s)=>{const[o]=$u(t),[,,,c]=xr.get(yh);if(o.startsWith(dw))return n(...s);const u=c[o];return ut(u)?n(...s):(delete c[o],u)}),r),yw=fw.concat(gw),vw=e=>function(...n){const r=mw(),[i,s,o]=pw(n),c=uw(r,o);let u=e;const{use:d}=c,f=(d||[]).concat(yw);for(let p=f.length;p--;)u=f[p](u);return u(i,s||c.fetcher||null,c)},bw=(e,t,n)=>{const r=t[e]||(t[e]=[]);return r.push(n),()=>{const i=r.indexOf(n);i>=0&&(r[i]=r[r.length-1],r.pop())}};hw();const bh=I.use||(e=>{if(e.status==="pending")throw e;if(e.status==="fulfilled")return e.value;throw e.status==="rejected"?e.reason:(e.status="pending",e.then(t=>{e.status="fulfilled",e.value=t},t=>{e.status="rejected",e.reason=t}),e)}),Hu={dedupe:!0},ww=vw((e,t,n)=>{const{cache:r,compare:i,suspense:s,fallbackData:o,revalidateOnMount:c,revalidateIfStale:u,refreshInterval:d,refreshWhenHidden:f,refreshWhenOffline:p,keepPreviousData:l}=n,[v,a,h,y]=xr.get(r),[g,b]=$u(e),w=I.useRef(!1),E=I.useRef(!1),S=I.useRef(g),A=I.useRef(t),T=I.useRef(n),O=()=>T.current,M=()=>O().isVisible()&&O().isOnline(),[D,F,V,G]=uh(r,g),U=I.useRef({}).current,R=ut(o)?n.fallback[g]:o,L=(N,X)=>{for(const J in U){const Z=J;if(Z==="data"){if(!i(N[Z],X[Z])&&(!ut(N[Z])||!i(pe,X[Z])))return!1}else if(X[Z]!==N[Z])return!1}return!0},Y=I.useMemo(()=>{const N=!g||!t?!1:ut(c)?O().isPaused()||s?!1:ut(u)?!0:u:c,X=le=>{const ie=Hr(le);return delete ie._k,N?{isValidating:!0,isLoading:!0,...ie}:ie},J=D(),Z=G(),W=X(J),fe=J===Z?W:X(Z);let ge=W;return[()=>{const le=X(D());return L(le,ge)?(ge.data=le.data,ge.isLoading=le.isLoading,ge.isValidating=le.isValidating,ge.error=le.error,ge):(ge=le,le)},()=>fe]},[r,g]),z=Yb.useSyncExternalStore(I.useCallback(N=>V(g,(X,J)=>{L(J,X)||N()}),[r,g]),Y[0],Y[1]),ee=!w.current,te=v[g]&&v[g].length>0,re=z.data,he=ut(re)?R:re,ue=z.error,ye=I.useRef(he),pe=l?ut(re)?ye.current:re:he,q=te&&!ut(ue)?!1:ee&&!ut(c)?c:O().isPaused()?!1:s?ut(he)?!1:u:ut(he)||u,$=!!(g&&t&&ee&&q),Q=ut(z.isValidating)?$:z.isValidating,_=ut(z.isLoading)?$:z.isLoading,j=I.useCallback(async N=>{const X=A.current;if(!g||!X||E.current||O().isPaused())return!1;let J,Z,W=!0;const fe=N||{},ge=!h[g]||!fe.dedupe,le=()=>lh?!E.current&&g===S.current&&w.current:g===S.current,ie={isValidating:!1,isLoading:!1},be=()=>{F(ie)},ae=()=>{const _e=h[g];_e&&_e[1]===Z&&delete h[g]},Ce={isValidating:!0};ut(D().data)&&(Ce.isLoading=!0);try{if(ge&&(F(Ce),n.loadingTimeout&&ut(D().data)&&setTimeout(()=>{W&&le()&&O().onLoadingSlow(g,n)},n.loadingTimeout),h[g]=[X(b),Gu()]),[J,Z]=h[g],J=await J,ge&&setTimeout(ae,n.dedupingInterval),!h[g]||h[g][1]!==Z)return ge&&le()&&O().onDiscarded(g),!1;ie.error=Cn;const _e=a[g];if(!ut(_e)&&(Z<=_e[0]||Z<=_e[1]||_e[1]===0))return be(),ge&&le()&&O().onDiscarded(g),!1;const ze=D().data;ie.data=i(ze,J)?ze:J,ge&&le()&&O().onSuccess(J,g,n)}catch(_e){ae();const ze=O(),{shouldRetryOnError:it}=ze;ze.isPaused()||(ie.error=_e,ge&&le()&&(ze.onError(_e,g,ze),(it===!0||fr(it)&&it(_e))&&(!O().revalidateOnFocus||!O().revalidateOnReconnect||M())&&ze.onErrorRetry(_e,g,ze,yt=>{const ht=v[g];ht&&ht[0]&&ht[0](qs.ERROR_REVALIDATE_EVENT,yt)},{retryCount:(fe.retryCount||0)+1,dedupe:!0})))}return W=!1,be(),!0},[g,r]),B=I.useCallback((...N)=>mh(r,S.current,...N),[]);if(Vu(()=>{A.current=t,T.current=n,ut(re)||(ye.current=re)}),Vu(()=>{if(!g)return;const N=j.bind(Cn,Hu);let X=0;const Z=bw(g,v,(W,fe={})=>{if(W==qs.FOCUS_EVENT){const ge=Date.now();O().revalidateOnFocus&&ge>X&&M()&&(X=ge+O().focusThrottleInterval,N())}else if(W==qs.RECONNECT_EVENT)O().revalidateOnReconnect&&M()&&N();else{if(W==qs.MUTATE_EVENT)return j();if(W==qs.ERROR_REVALIDATE_EVENT)return j(fe)}});return E.current=!1,S.current=g,w.current=!0,F({_k:b}),q&&(ut(he)||Vs?N():nw(N)),()=>{E.current=!0,Z()}},[g]),Vu(()=>{let N;function X(){const Z=fr(d)?d(D().data):d;Z&&N!==-1&&(N=setTimeout(J,Z))}function J(){!D().error&&(f||O().isVisible())&&(p||O().isOnline())?j(Hu).then(X):X()}return X(),()=>{N&&(clearTimeout(N),N=-1)}},[d,f,p,g]),I.useDebugValue(pe),s&&ut(he)&&g){if(!lh&&Vs)throw new Error("Fallback data is required when using suspense in SSR.");A.current=t,T.current=n,E.current=!1;const N=y[g];if(!ut(N)){const X=B(N);bh(X)}if(ut(ue)){const X=j(Hu);ut(pe)||(X.status="fulfilled",X.value=!0),bh(X)}else throw ue}return{mutate:B,get data(){return U.data=!0,pe},get error(){return U.error=!0,ue},get isValidating(){return U.isValidating=!0,Q},get isLoading(){return U.isLoading=!0,_}}});function wh(e,t){return function(){return e.apply(t,arguments)}}const{toString:Ew}=Object.prototype,{getPrototypeOf:Yu}=Object,ha=(e=>t=>{const n=Ew.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),nr=e=>(e=e.toLowerCase(),t=>ha(t)===e),pa=e=>t=>typeof t===e,{isArray:$i}=Array,$s=pa("undefined");function Sw(e){return e!==null&&!$s(e)&&e.constructor!==null&&!$s(e.constructor)&&Mn(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Eh=nr("ArrayBuffer");function xw(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Eh(e.buffer),t}const Cw=pa("string"),Mn=pa("function"),Sh=pa("number"),ma=e=>e!==null&&typeof e=="object",_w=e=>e===!0||e===!1,ga=e=>{if(ha(e)!=="object")return!1;const t=Yu(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},Aw=nr("Date"),Tw=nr("File"),Iw=nr("Blob"),kw=nr("FileList"),Ow=e=>ma(e)&&Mn(e.pipe),Rw=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Mn(e.append)&&((t=ha(e))==="formdata"||t==="object"&&Mn(e.toString)&&e.toString()==="[object FormData]"))},Nw=nr("URLSearchParams"),[Mw,Dw,Pw,jw]=["ReadableStream","Request","Response","Headers"].map(nr),Lw=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Gs(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,i;if(typeof e!="object"&&(e=[e]),$i(e))for(r=0,i=e.length;r<i;r++)t.call(null,e[r],r,e);else{const s=n?Object.getOwnPropertyNames(e):Object.keys(e),o=s.length;let c;for(r=0;r<o;r++)c=s[r],t.call(null,e[c],c,e)}}function xh(e,t){t=t.toLowerCase();const n=Object.keys(e);let r=n.length,i;for(;r-- >0;)if(i=n[r],t===i.toLowerCase())return i;return null}const Ei=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Ch=e=>!$s(e)&&e!==Ei;function Wu(){const{caseless:e}=Ch(this)&&this||{},t={},n=(r,i)=>{const s=e&&xh(t,i)||i;ga(t[s])&&ga(r)?t[s]=Wu(t[s],r):ga(r)?t[s]=Wu({},r):$i(r)?t[s]=r.slice():t[s]=r};for(let r=0,i=arguments.length;r<i;r++)arguments[r]&&Gs(arguments[r],n);return t}const Bw=(e,t,n,{allOwnKeys:r}={})=>(Gs(t,(i,s)=>{n&&Mn(i)?e[s]=wh(i,n):e[s]=i},{allOwnKeys:r}),e),Fw=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Uw=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},Vw=(e,t,n,r)=>{let i,s,o;const c={};if(t=t||{},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),s=i.length;s-- >0;)o=i[s],(!r||r(o,e,t))&&!c[o]&&(t[o]=e[o],c[o]=!0);e=n!==!1&&Yu(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},qw=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},$w=e=>{if(!e)return null;if($i(e))return e;let t=e.length;if(!Sh(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},Gw=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Yu(Uint8Array)),Hw=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let i;for(;(i=r.next())&&!i.done;){const s=i.value;t.call(e,s[0],s[1])}},Yw=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},Ww=nr("HTMLFormElement"),Kw=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,i){return r.toUpperCase()+i}),_h=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),zw=nr("RegExp"),Ah=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Gs(n,(i,s)=>{let o;(o=t(i,s,e))!==!1&&(r[s]=o||i)}),Object.defineProperties(e,r)},Qw=e=>{Ah(e,(t,n)=>{if(Mn(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(Mn(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},Jw=(e,t)=>{const n={},r=i=>{i.forEach(s=>{n[s]=!0})};return $i(e)?r(e):r(String(e).split(t)),n},Zw=()=>{},Xw=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,Ku="abcdefghijklmnopqrstuvwxyz",Th="0123456789",Ih={DIGIT:Th,ALPHA:Ku,ALPHA_DIGIT:Ku+Ku.toUpperCase()+Th},eE=(e=16,t=Ih.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function tE(e){return!!(e&&Mn(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const nE=e=>{const t=new Array(10),n=(r,i)=>{if(ma(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[i]=r;const s=$i(r)?[]:{};return Gs(r,(o,c)=>{const u=n(o,i+1);!$s(u)&&(s[c]=u)}),t[i]=void 0,s}}return r};return n(e,0)},rE=nr("AsyncFunction"),iE=e=>e&&(ma(e)||Mn(e))&&Mn(e.then)&&Mn(e.catch),kh=((e,t)=>e?setImmediate:t?((n,r)=>(Ei.addEventListener("message",({source:i,data:s})=>{i===Ei&&s===n&&r.length&&r.shift()()},!1),i=>{r.push(i),Ei.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",Mn(Ei.postMessage)),sE=typeof queueMicrotask<"u"?queueMicrotask.bind(Ei):typeof process<"u"&&process.nextTick||kh,de={isArray:$i,isArrayBuffer:Eh,isBuffer:Sw,isFormData:Rw,isArrayBufferView:xw,isString:Cw,isNumber:Sh,isBoolean:_w,isObject:ma,isPlainObject:ga,isReadableStream:Mw,isRequest:Dw,isResponse:Pw,isHeaders:jw,isUndefined:$s,isDate:Aw,isFile:Tw,isBlob:Iw,isRegExp:zw,isFunction:Mn,isStream:Ow,isURLSearchParams:Nw,isTypedArray:Gw,isFileList:kw,forEach:Gs,merge:Wu,extend:Bw,trim:Lw,stripBOM:Fw,inherits:Uw,toFlatObject:Vw,kindOf:ha,kindOfTest:nr,endsWith:qw,toArray:$w,forEachEntry:Hw,matchAll:Yw,isHTMLForm:Ww,hasOwnProperty:_h,hasOwnProp:_h,reduceDescriptors:Ah,freezeMethods:Qw,toObjectSet:Jw,toCamelCase:Kw,noop:Zw,toFiniteNumber:Xw,findKey:xh,global:Ei,isContextDefined:Ch,ALPHABET:Ih,generateString:eE,isSpecCompliantForm:tE,toJSONObject:nE,isAsyncFn:rE,isThenable:iE,setImmediate:kh,asap:sE};function $e(e,t,n,r,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i)}de.inherits($e,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:de.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const Oh=$e.prototype,Rh={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{Rh[e]={value:e}}),Object.defineProperties($e,Rh),Object.defineProperty(Oh,"isAxiosError",{value:!0}),$e.from=(e,t,n,r,i,s)=>{const o=Object.create(Oh);return de.toFlatObject(e,o,function(u){return u!==Error.prototype},c=>c!=="isAxiosError"),$e.call(o,e.message,t,n,r,i),o.cause=e,o.name=e.name,s&&Object.assign(o,s),o};const oE=null;function zu(e){return de.isPlainObject(e)||de.isArray(e)}function Nh(e){return de.endsWith(e,"[]")?e.slice(0,-2):e}function Mh(e,t,n){return e?e.concat(t).map(function(i,s){return i=Nh(i),!n&&s?"["+i+"]":i}).join(n?".":""):t}function aE(e){return de.isArray(e)&&!e.some(zu)}const cE=de.toFlatObject(de,{},null,function(t){return/^is[A-Z]/.test(t)});function ya(e,t,n){if(!de.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=de.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(h,y){return!de.isUndefined(y[h])});const r=n.metaTokens,i=n.visitor||f,s=n.dots,o=n.indexes,u=(n.Blob||typeof Blob<"u"&&Blob)&&de.isSpecCompliantForm(t);if(!de.isFunction(i))throw new TypeError("visitor must be a function");function d(a){if(a===null)return"";if(de.isDate(a))return a.toISOString();if(!u&&de.isBlob(a))throw new $e("Blob is not supported. Use a Buffer instead.");return de.isArrayBuffer(a)||de.isTypedArray(a)?u&&typeof Blob=="function"?new Blob([a]):Buffer.from(a):a}function f(a,h,y){let g=a;if(a&&!y&&typeof a=="object"){if(de.endsWith(h,"{}"))h=r?h:h.slice(0,-2),a=JSON.stringify(a);else if(de.isArray(a)&&aE(a)||(de.isFileList(a)||de.endsWith(h,"[]"))&&(g=de.toArray(a)))return h=Nh(h),g.forEach(function(w,E){!(de.isUndefined(w)||w===null)&&t.append(o===!0?Mh([h],E,s):o===null?h:h+"[]",d(w))}),!1}return zu(a)?!0:(t.append(Mh(y,h,s),d(a)),!1)}const p=[],l=Object.assign(cE,{defaultVisitor:f,convertValue:d,isVisitable:zu});function v(a,h){if(!de.isUndefined(a)){if(p.indexOf(a)!==-1)throw Error("Circular reference detected in "+h.join("."));p.push(a),de.forEach(a,function(g,b){(!(de.isUndefined(g)||g===null)&&i.call(t,g,de.isString(b)?b.trim():b,h,l))===!0&&v(g,h?h.concat(b):[b])}),p.pop()}}if(!de.isObject(e))throw new TypeError("data must be an object");return v(e),t}function Dh(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function Qu(e,t){this._pairs=[],e&&ya(e,this,t)}const Ph=Qu.prototype;Ph.append=function(t,n){this._pairs.push([t,n])},Ph.toString=function(t){const n=t?function(r){return t.call(this,r,Dh)}:Dh;return this._pairs.map(function(i){return n(i[0])+"="+n(i[1])},"").join("&")};function uE(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function jh(e,t,n){if(!t)return e;const r=n&&n.encode||uE,i=n&&n.serialize;let s;if(i?s=i(t,n):s=de.isURLSearchParams(t)?t.toString():new Qu(t,n).toString(r),s){const o=e.indexOf("#");o!==-1&&(e=e.slice(0,o)),e+=(e.indexOf("?")===-1?"?":"&")+s}return e}class Lh{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){de.forEach(this.handlers,function(r){r!==null&&t(r)})}}const Bh={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},lE={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:Qu,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},Ju=typeof window<"u"&&typeof document<"u",dE=(e=>Ju&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),fE=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",hE=Ju&&window.location.href||"http://localhost",rr={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Ju,hasStandardBrowserEnv:dE,hasStandardBrowserWebWorkerEnv:fE,origin:hE},Symbol.toStringTag,{value:"Module"})),...lE};function pE(e,t){return ya(e,new rr.classes.URLSearchParams,Object.assign({visitor:function(n,r,i,s){return rr.isNode&&de.isBuffer(n)?(this.append(r,n.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)}},t))}function mE(e){return de.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function gE(e){const t={},n=Object.keys(e);let r;const i=n.length;let s;for(r=0;r<i;r++)s=n[r],t[s]=e[s];return t}function Fh(e){function t(n,r,i,s){let o=n[s++];if(o==="__proto__")return!0;const c=Number.isFinite(+o),u=s>=n.length;return o=!o&&de.isArray(i)?i.length:o,u?(de.hasOwnProp(i,o)?i[o]=[i[o],r]:i[o]=r,!c):((!i[o]||!de.isObject(i[o]))&&(i[o]=[]),t(n,r,i[o],s)&&de.isArray(i[o])&&(i[o]=gE(i[o])),!c)}if(de.isFormData(e)&&de.isFunction(e.entries)){const n={};return de.forEachEntry(e,(r,i)=>{t(mE(r),i,n,0)}),n}return null}function yE(e,t,n){if(de.isString(e))try{return(t||JSON.parse)(e),de.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(0,JSON.stringify)(e)}const Hs={transitional:Bh,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",i=r.indexOf("application/json")>-1,s=de.isObject(t);if(s&&de.isHTMLForm(t)&&(t=new FormData(t)),de.isFormData(t))return i?JSON.stringify(Fh(t)):t;if(de.isArrayBuffer(t)||de.isBuffer(t)||de.isStream(t)||de.isFile(t)||de.isBlob(t)||de.isReadableStream(t))return t;if(de.isArrayBufferView(t))return t.buffer;if(de.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let c;if(s){if(r.indexOf("application/x-www-form-urlencoded")>-1)return pE(t,this.formSerializer).toString();if((c=de.isFileList(t))||r.indexOf("multipart/form-data")>-1){const u=this.env&&this.env.FormData;return ya(c?{"files[]":t}:t,u&&new u,this.formSerializer)}}return s||i?(n.setContentType("application/json",!1),yE(t)):t}],transformResponse:[function(t){const n=this.transitional||Hs.transitional,r=n&&n.forcedJSONParsing,i=this.responseType==="json";if(de.isResponse(t)||de.isReadableStream(t))return t;if(t&&de.isString(t)&&(r&&!this.responseType||i)){const o=!(n&&n.silentJSONParsing)&&i;try{return JSON.parse(t)}catch(c){if(o)throw c.name==="SyntaxError"?$e.from(c,$e.ERR_BAD_RESPONSE,this,null,this.response):c}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:rr.classes.FormData,Blob:rr.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};de.forEach(["delete","get","head","post","put","patch"],e=>{Hs.headers[e]={}});const vE=de.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),bE=e=>{const t={};let n,r,i;return e&&e.split(`
47
+ `).forEach(function(o){i=o.indexOf(":"),n=o.substring(0,i).trim().toLowerCase(),r=o.substring(i+1).trim(),!(!n||t[n]&&vE[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},Uh=Symbol("internals");function Ys(e){return e&&String(e).trim().toLowerCase()}function va(e){return e===!1||e==null?e:de.isArray(e)?e.map(va):String(e)}function wE(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const EE=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Zu(e,t,n,r,i){if(de.isFunction(r))return r.call(this,t,n);if(i&&(t=n),!!de.isString(t)){if(de.isString(r))return t.indexOf(r)!==-1;if(de.isRegExp(r))return r.test(t)}}function SE(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function xE(e,t){const n=de.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(i,s,o){return this[r].call(this,t,i,s,o)},configurable:!0})})}class _n{constructor(t){t&&this.set(t)}set(t,n,r){const i=this;function s(c,u,d){const f=Ys(u);if(!f)throw new Error("header name must be a non-empty string");const p=de.findKey(i,f);(!p||i[p]===void 0||d===!0||d===void 0&&i[p]!==!1)&&(i[p||u]=va(c))}const o=(c,u)=>de.forEach(c,(d,f)=>s(d,f,u));if(de.isPlainObject(t)||t instanceof this.constructor)o(t,n);else if(de.isString(t)&&(t=t.trim())&&!EE(t))o(bE(t),n);else if(de.isHeaders(t))for(const[c,u]of t.entries())s(u,c,r);else t!=null&&s(n,t,r);return this}get(t,n){if(t=Ys(t),t){const r=de.findKey(this,t);if(r){const i=this[r];if(!n)return i;if(n===!0)return wE(i);if(de.isFunction(n))return n.call(this,i,r);if(de.isRegExp(n))return n.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Ys(t),t){const r=de.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||Zu(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let i=!1;function s(o){if(o=Ys(o),o){const c=de.findKey(r,o);c&&(!n||Zu(r,r[c],c,n))&&(delete r[c],i=!0)}}return de.isArray(t)?t.forEach(s):s(t),i}clear(t){const n=Object.keys(this);let r=n.length,i=!1;for(;r--;){const s=n[r];(!t||Zu(this,this[s],s,t,!0))&&(delete this[s],i=!0)}return i}normalize(t){const n=this,r={};return de.forEach(this,(i,s)=>{const o=de.findKey(r,s);if(o){n[o]=va(i),delete n[s];return}const c=t?SE(s):String(s).trim();c!==s&&delete n[s],n[c]=va(i),r[c]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return de.forEach(this,(r,i)=>{r!=null&&r!==!1&&(n[i]=t&&de.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
48
+ `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(i=>r.set(i)),r}static accessor(t){const r=(this[Uh]=this[Uh]={accessors:{}}).accessors,i=this.prototype;function s(o){const c=Ys(o);r[c]||(xE(i,o),r[c]=!0)}return de.isArray(t)?t.forEach(s):s(t),this}}_n.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),de.reduceDescriptors(_n.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}}),de.freezeMethods(_n);function Xu(e,t){const n=this||Hs,r=t||n,i=_n.from(r.headers);let s=r.data;return de.forEach(e,function(c){s=c.call(n,s,i.normalize(),t?t.status:void 0)}),i.normalize(),s}function Vh(e){return!!(e&&e.__CANCEL__)}function Gi(e,t,n){$e.call(this,e??"canceled",$e.ERR_CANCELED,t,n),this.name="CanceledError"}de.inherits(Gi,$e,{__CANCEL__:!0});function qh(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new $e("Request failed with status code "+n.status,[$e.ERR_BAD_REQUEST,$e.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function CE(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function _E(e,t){e=e||10;const n=new Array(e),r=new Array(e);let i=0,s=0,o;return t=t!==void 0?t:1e3,function(u){const d=Date.now(),f=r[s];o||(o=d),n[i]=u,r[i]=d;let p=s,l=0;for(;p!==i;)l+=n[p++],p=p%e;if(i=(i+1)%e,i===s&&(s=(s+1)%e),d-o<t)return;const v=f&&d-f;return v?Math.round(l*1e3/v):void 0}}function AE(e,t){let n=0,r=1e3/t,i,s;const o=(d,f=Date.now())=>{n=f,i=null,s&&(clearTimeout(s),s=null),e.apply(null,d)};return[(...d)=>{const f=Date.now(),p=f-n;p>=r?o(d,f):(i=d,s||(s=setTimeout(()=>{s=null,o(i)},r-p)))},()=>i&&o(i)]}const ba=(e,t,n=3)=>{let r=0;const i=_E(50,250);return AE(s=>{const o=s.loaded,c=s.lengthComputable?s.total:void 0,u=o-r,d=i(u),f=o<=c;r=o;const p={loaded:o,total:c,progress:c?o/c:void 0,bytes:u,rate:d||void 0,estimated:d&&c&&f?(c-o)/d:void 0,event:s,lengthComputable:c!=null,[t?"download":"upload"]:!0};e(p)},n)},$h=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},Gh=e=>(...t)=>de.asap(()=>e(...t)),TE=rr.hasStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let r;function i(s){let o=s;return t&&(n.setAttribute("href",o),o=n.href),n.setAttribute("href",o),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=i(window.location.href),function(o){const c=de.isString(o)?i(o):o;return c.protocol===r.protocol&&c.host===r.host}}():function(){return function(){return!0}}(),IE=rr.hasStandardBrowserEnv?{write(e,t,n,r,i,s){const o=[e+"="+encodeURIComponent(t)];de.isNumber(n)&&o.push("expires="+new Date(n).toGMTString()),de.isString(r)&&o.push("path="+r),de.isString(i)&&o.push("domain="+i),s===!0&&o.push("secure"),document.cookie=o.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function kE(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function OE(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Hh(e,t){return e&&!kE(t)?OE(e,t):t}const Yh=e=>e instanceof _n?{...e}:e;function Si(e,t){t=t||{};const n={};function r(d,f,p){return de.isPlainObject(d)&&de.isPlainObject(f)?de.merge.call({caseless:p},d,f):de.isPlainObject(f)?de.merge({},f):de.isArray(f)?f.slice():f}function i(d,f,p){if(de.isUndefined(f)){if(!de.isUndefined(d))return r(void 0,d,p)}else return r(d,f,p)}function s(d,f){if(!de.isUndefined(f))return r(void 0,f)}function o(d,f){if(de.isUndefined(f)){if(!de.isUndefined(d))return r(void 0,d)}else return r(void 0,f)}function c(d,f,p){if(p in t)return r(d,f);if(p in e)return r(void 0,d)}const u={url:s,method:s,data:s,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:c,headers:(d,f)=>i(Yh(d),Yh(f),!0)};return de.forEach(Object.keys(Object.assign({},e,t)),function(f){const p=u[f]||i,l=p(e[f],t[f],f);de.isUndefined(l)&&p!==c||(n[f]=l)}),n}const Wh=e=>{const t=Si({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:i,xsrfCookieName:s,headers:o,auth:c}=t;t.headers=o=_n.from(o),t.url=jh(Hh(t.baseURL,t.url),e.params,e.paramsSerializer),c&&o.set("Authorization","Basic "+btoa((c.username||"")+":"+(c.password?unescape(encodeURIComponent(c.password)):"")));let u;if(de.isFormData(n)){if(rr.hasStandardBrowserEnv||rr.hasStandardBrowserWebWorkerEnv)o.setContentType(void 0);else if((u=o.getContentType())!==!1){const[d,...f]=u?u.split(";").map(p=>p.trim()).filter(Boolean):[];o.setContentType([d||"multipart/form-data",...f].join("; "))}}if(rr.hasStandardBrowserEnv&&(r&&de.isFunction(r)&&(r=r(t)),r||r!==!1&&TE(t.url))){const d=i&&s&&IE.read(s);d&&o.set(i,d)}return t},RE=typeof XMLHttpRequest<"u"&&function(e){return new Promise(function(n,r){const i=Wh(e);let s=i.data;const o=_n.from(i.headers).normalize();let{responseType:c,onUploadProgress:u,onDownloadProgress:d}=i,f,p,l,v,a;function h(){v&&v(),a&&a(),i.cancelToken&&i.cancelToken.unsubscribe(f),i.signal&&i.signal.removeEventListener("abort",f)}let y=new XMLHttpRequest;y.open(i.method.toUpperCase(),i.url,!0),y.timeout=i.timeout;function g(){if(!y)return;const w=_n.from("getAllResponseHeaders"in y&&y.getAllResponseHeaders()),S={data:!c||c==="text"||c==="json"?y.responseText:y.response,status:y.status,statusText:y.statusText,headers:w,config:e,request:y};qh(function(T){n(T),h()},function(T){r(T),h()},S),y=null}"onloadend"in y?y.onloadend=g:y.onreadystatechange=function(){!y||y.readyState!==4||y.status===0&&!(y.responseURL&&y.responseURL.indexOf("file:")===0)||setTimeout(g)},y.onabort=function(){y&&(r(new $e("Request aborted",$e.ECONNABORTED,e,y)),y=null)},y.onerror=function(){r(new $e("Network Error",$e.ERR_NETWORK,e,y)),y=null},y.ontimeout=function(){let E=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const S=i.transitional||Bh;i.timeoutErrorMessage&&(E=i.timeoutErrorMessage),r(new $e(E,S.clarifyTimeoutError?$e.ETIMEDOUT:$e.ECONNABORTED,e,y)),y=null},s===void 0&&o.setContentType(null),"setRequestHeader"in y&&de.forEach(o.toJSON(),function(E,S){y.setRequestHeader(S,E)}),de.isUndefined(i.withCredentials)||(y.withCredentials=!!i.withCredentials),c&&c!=="json"&&(y.responseType=i.responseType),d&&([l,a]=ba(d,!0),y.addEventListener("progress",l)),u&&y.upload&&([p,v]=ba(u),y.upload.addEventListener("progress",p),y.upload.addEventListener("loadend",v)),(i.cancelToken||i.signal)&&(f=w=>{y&&(r(!w||w.type?new Gi(null,e,y):w),y.abort(),y=null)},i.cancelToken&&i.cancelToken.subscribe(f),i.signal&&(i.signal.aborted?f():i.signal.addEventListener("abort",f)));const b=CE(i.url);if(b&&rr.protocols.indexOf(b)===-1){r(new $e("Unsupported protocol "+b+":",$e.ERR_BAD_REQUEST,e));return}y.send(s||null)})},NE=(e,t)=>{let n=new AbortController,r;const i=function(u){if(!r){r=!0,o();const d=u instanceof Error?u:this.reason;n.abort(d instanceof $e?d:new Gi(d instanceof Error?d.message:d))}};let s=t&&setTimeout(()=>{i(new $e(`timeout ${t} of ms exceeded`,$e.ETIMEDOUT))},t);const o=()=>{e&&(s&&clearTimeout(s),s=null,e.forEach(u=>{u&&(u.removeEventListener?u.removeEventListener("abort",i):u.unsubscribe(i))}),e=null)};e.forEach(u=>u&&u.addEventListener&&u.addEventListener("abort",i));const{signal:c}=n;return c.unsubscribe=o,[c,()=>{s&&clearTimeout(s),s=null}]},ME=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let r=0,i;for(;r<n;)i=r+t,yield e.slice(r,i),r=i},DE=async function*(e,t,n){for await(const r of e)yield*ME(ArrayBuffer.isView(r)?r:await n(String(r)),t)},Kh=(e,t,n,r,i)=>{const s=DE(e,t,i);let o=0,c,u=d=>{c||(c=!0,r&&r(d))};return new ReadableStream({async pull(d){try{const{done:f,value:p}=await s.next();if(f){u(),d.close();return}let l=p.byteLength;if(n){let v=o+=l;n(v)}d.enqueue(new Uint8Array(p))}catch(f){throw u(f),f}},cancel(d){return u(d),s.return()}},{highWaterMark:2})},wa=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",zh=wa&&typeof ReadableStream=="function",el=wa&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),Qh=(e,...t)=>{try{return!!e(...t)}catch{return!1}},PE=zh&&Qh(()=>{let e=!1;const t=new Request(rr.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),Jh=64*1024,tl=zh&&Qh(()=>de.isReadableStream(new Response("").body)),Ea={stream:tl&&(e=>e.body)};wa&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!Ea[t]&&(Ea[t]=de.isFunction(e[t])?n=>n[t]():(n,r)=>{throw new $e(`Response type '${t}' is not supported`,$e.ERR_NOT_SUPPORT,r)})})})(new Response);const jE=async e=>{if(e==null)return 0;if(de.isBlob(e))return e.size;if(de.isSpecCompliantForm(e))return(await new Request(e).arrayBuffer()).byteLength;if(de.isArrayBufferView(e)||de.isArrayBuffer(e))return e.byteLength;if(de.isURLSearchParams(e)&&(e=e+""),de.isString(e))return(await el(e)).byteLength},LE=async(e,t)=>{const n=de.toFiniteNumber(e.getContentLength());return n??jE(t)},nl={http:oE,xhr:RE,fetch:wa&&(async e=>{let{url:t,method:n,data:r,signal:i,cancelToken:s,timeout:o,onDownloadProgress:c,onUploadProgress:u,responseType:d,headers:f,withCredentials:p="same-origin",fetchOptions:l}=Wh(e);d=d?(d+"").toLowerCase():"text";let[v,a]=i||s||o?NE([i,s],o):[],h,y;const g=()=>{!h&&setTimeout(()=>{v&&v.unsubscribe()}),h=!0};let b;try{if(u&&PE&&n!=="get"&&n!=="head"&&(b=await LE(f,r))!==0){let A=new Request(t,{method:"POST",body:r,duplex:"half"}),T;if(de.isFormData(r)&&(T=A.headers.get("content-type"))&&f.setContentType(T),A.body){const[O,M]=$h(b,ba(Gh(u)));r=Kh(A.body,Jh,O,M,el)}}de.isString(p)||(p=p?"include":"omit"),y=new Request(t,{...l,signal:v,method:n.toUpperCase(),headers:f.normalize().toJSON(),body:r,duplex:"half",credentials:p});let w=await fetch(y);const E=tl&&(d==="stream"||d==="response");if(tl&&(c||E)){const A={};["status","statusText","headers"].forEach(D=>{A[D]=w[D]});const T=de.toFiniteNumber(w.headers.get("content-length")),[O,M]=c&&$h(T,ba(Gh(c),!0))||[];w=new Response(Kh(w.body,Jh,O,()=>{M&&M(),E&&g()},el),A)}d=d||"text";let S=await Ea[de.findKey(Ea,d)||"text"](w,e);return!E&&g(),a&&a(),await new Promise((A,T)=>{qh(A,T,{data:S,headers:_n.from(w.headers),status:w.status,statusText:w.statusText,config:e,request:y})})}catch(w){throw g(),w&&w.name==="TypeError"&&/fetch/i.test(w.message)?Object.assign(new $e("Network Error",$e.ERR_NETWORK,e,y),{cause:w.cause||w}):$e.from(w,w&&w.code,e,y)}})};de.forEach(nl,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Zh=e=>`- ${e}`,BE=e=>de.isFunction(e)||e===null||e===!1,Xh={getAdapter:e=>{e=de.isArray(e)?e:[e];const{length:t}=e;let n,r;const i={};for(let s=0;s<t;s++){n=e[s];let o;if(r=n,!BE(n)&&(r=nl[(o=String(n)).toLowerCase()],r===void 0))throw new $e(`Unknown adapter '${o}'`);if(r)break;i[o||"#"+s]=r}if(!r){const s=Object.entries(i).map(([c,u])=>`adapter ${c} `+(u===!1?"is not supported by the environment":"is not available in the build"));let o=t?s.length>1?`since :
49
49
  `+s.map(Zh).join(`
50
- `):" "+Zh(s[0]):"as no adapter specified";throw new $e("There is no suitable adapter to dispatch the request "+o,"ERR_NOT_SUPPORT")}return r},adapters:nl};function rl(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Gi(null,e)}function ep(e){return rl(e),e.headers=Cn.from(e.headers),e.data=Xu.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Xh.getAdapter(e.adapter||Hs.adapter)(e).then(function(r){return rl(e),r.data=Xu.call(e,e.transformResponse,r),r.headers=Cn.from(r.headers),r},function(r){return Vh(r)||(rl(e),r&&r.response&&(r.response.data=Xu.call(e,e.transformResponse,r.response),r.response.headers=Cn.from(r.response.headers))),Promise.reject(r)})}const tp="1.7.4",il={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{il[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const np={};il.transitional=function(t,n,r){function i(s,o){return"[Axios v"+tp+"] Transitional option '"+s+"'"+o+(r?". "+r:"")}return(s,o,c)=>{if(t===!1)throw new $e(i(o," has been removed"+(n?" in "+n:"")),$e.ERR_DEPRECATED);return n&&!np[o]&&(np[o]=!0,console.warn(i(o," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(s,o,c):!0}};function FE(e,t,n){if(typeof e!="object")throw new $e("options must be an object",$e.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let i=r.length;for(;i-- >0;){const s=r[i],o=t[s];if(o){const c=e[s],u=c===void 0||o(c,s,e);if(u!==!0)throw new $e("option "+s+" must be "+u,$e.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new $e("Unknown option "+s,$e.ERR_BAD_OPTION)}}const sl={assertOptions:FE,validators:il},Yr=sl.validators;class xi{constructor(t){this.defaults=t,this.interceptors={request:new Lh,response:new Lh}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let i;Error.captureStackTrace?Error.captureStackTrace(i={}):i=new Error;const s=i.stack?i.stack.replace(/^.+\n/,""):"";try{r.stack?s&&!String(r.stack).endsWith(s.replace(/^.+\n.+\n/,""))&&(r.stack+=`
51
- `+s):r.stack=s}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Si(this.defaults,n);const{transitional:r,paramsSerializer:i,headers:s}=n;r!==void 0&&sl.assertOptions(r,{silentJSONParsing:Yr.transitional(Yr.boolean),forcedJSONParsing:Yr.transitional(Yr.boolean),clarifyTimeoutError:Yr.transitional(Yr.boolean)},!1),i!=null&&(de.isFunction(i)?n.paramsSerializer={serialize:i}:sl.assertOptions(i,{encode:Yr.function,serialize:Yr.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let o=s&&de.merge(s.common,s[n.method]);s&&de.forEach(["delete","get","head","post","put","patch","common"],a=>{delete s[a]}),n.headers=Cn.concat(o,s);const c=[];let u=!0;this.interceptors.request.forEach(function(h){typeof h.runWhen=="function"&&h.runWhen(n)===!1||(u=u&&h.synchronous,c.unshift(h.fulfilled,h.rejected))});const d=[];this.interceptors.response.forEach(function(h){d.push(h.fulfilled,h.rejected)});let f,p=0,l;if(!u){const a=[ep.bind(this),void 0];for(a.unshift.apply(a,c),a.push.apply(a,d),l=a.length,f=Promise.resolve(n);p<l;)f=f.then(a[p++],a[p++]);return f}l=c.length;let v=n;for(p=0;p<l;){const a=c[p++],h=c[p++];try{v=a(v)}catch(y){h.call(this,y);break}}try{f=ep.call(this,v)}catch(a){return Promise.reject(a)}for(p=0,l=d.length;p<l;)f=f.then(d[p++],d[p++]);return f}getUri(t){t=Si(this.defaults,t);const n=Hh(t.baseURL,t.url);return jh(n,t.params,t.paramsSerializer)}}de.forEach(["delete","get","head","options"],function(t){xi.prototype[t]=function(n,r){return this.request(Si(r||{},{method:t,url:n,data:(r||{}).data}))}}),de.forEach(["post","put","patch"],function(t){function n(r){return function(s,o,c){return this.request(Si(c||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:s,data:o}))}}xi.prototype[t]=n(),xi.prototype[t+"Form"]=n(!0)});class ol{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(s){n=s});const r=this;this.promise.then(i=>{if(!r._listeners)return;let s=r._listeners.length;for(;s-- >0;)r._listeners[s](i);r._listeners=null}),this.promise.then=i=>{let s;const o=new Promise(c=>{r.subscribe(c),s=c}).then(i);return o.cancel=function(){r.unsubscribe(s)},o},t(function(s,o,c){r.reason||(r.reason=new Gi(s,o,c),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}static source(){let t;return{token:new ol(function(i){t=i}),cancel:t}}}function UE(e){return function(n){return e.apply(null,n)}}function VE(e){return de.isObject(e)&&e.isAxiosError===!0}const al={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(al).forEach(([e,t])=>{al[t]=e});function rp(e){const t=new xi(e),n=wh(xi.prototype.request,t);return de.extend(n,xi.prototype,t,{allOwnKeys:!0}),de.extend(n,t,null,{allOwnKeys:!0}),n.create=function(i){return rp(Si(e,i))},n}const Vt=rp(Hs);Vt.Axios=xi,Vt.CanceledError=Gi,Vt.CancelToken=ol,Vt.isCancel=Vh,Vt.VERSION=tp,Vt.toFormData=ya,Vt.AxiosError=$e,Vt.Cancel=Vt.CanceledError,Vt.all=function(t){return Promise.all(t)},Vt.spread=UE,Vt.isAxiosError=VE,Vt.mergeConfig=Si,Vt.AxiosHeaders=Cn,Vt.formToJSON=e=>Fh(de.isHTMLForm(e)?new FormData(e):e),Vt.getAdapter=Xh.getAdapter,Vt.HttpStatusCode=al,Vt.default=Vt;const qE={UNAUTHORIZED:401,MAINTENANCE_MODE:503},$E=e=>{var n,r;const t=(n=e.response)==null?void 0:n.status;if(t&&t!==qE.UNAUTHORIZED){const i=(r=e.response)==null?void 0:r.data;console.table(i)}return Promise.reject(e)};function GE(){const e=I.useContext(Ou);if(!e)throw new Error("Only use 'useApiContext' within a ApiContext Provider");return e}function Ct(){const{apiKey:e,host:t}=GE(),n=(c,u={},d={})=>o("GET",c,u,d),r=(c,u={},d={})=>o("POST",c,u,d),i=(c,u={},d={})=>o("PUT",c,u,d),s=(c,u={})=>o("DELETE",c,u),o=(c,u,d={},f={})=>{const p=Vt.create({baseURL:`${t??"https://api.piggy.eu"}/api/v1/portal-sessions`,headers:{Authorization:`Bearer ${e}`},...f});return p.interceptors.response.use(void 0,$E),p.request({method:c,url:u,params:c=="GET"?d:{},data:d})};return{get:n,post:r,put:i,destroy:s}}function ip(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=ip(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Wr(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=ip(e))&&(r&&(r+=" "),r+=t);return r}const Ws=e=>typeof e=="number"&&!isNaN(e),Ci=e=>typeof e=="string",Dn=e=>typeof e=="function",Sa=e=>Ci(e)||Dn(e)?e:null,cl=e=>I.isValidElement(e)||Ci(e)||Dn(e)||Ws(e);function HE(e,t,n){n===void 0&&(n=300);const{scrollHeight:r,style:i}=e;requestAnimationFrame(()=>{i.minHeight="initial",i.height=r+"px",i.transition=`all ${n}ms`,requestAnimationFrame(()=>{i.height="0",i.padding="0",i.margin="0",setTimeout(t,n)})})}function xa(e){let{enter:t,exit:n,appendPosition:r=!1,collapse:i=!0,collapseDuration:s=300}=e;return function(o){let{children:c,position:u,preventExitTransition:d,done:f,nodeRef:p,isIn:l,playToast:v}=o;const a=r?`${t}--${u}`:t,h=r?`${n}--${u}`:n,y=I.useRef(0);return I.useLayoutEffect(()=>{const g=p.current,b=a.split(" "),w=E=>{E.target===p.current&&(v(),g.removeEventListener("animationend",w),g.removeEventListener("animationcancel",w),y.current===0&&E.type!=="animationcancel"&&g.classList.remove(...b))};g.classList.add(...b),g.addEventListener("animationend",w),g.addEventListener("animationcancel",w)},[]),I.useEffect(()=>{const g=p.current,b=()=>{g.removeEventListener("animationend",b),i?HE(g,f,s):f()};l||(d?b():(y.current=1,g.className+=` ${h}`,g.addEventListener("animationend",b)))},[l]),I.createElement(I.Fragment,null,c)}}function sp(e,t){return e!=null?{content:e.content,containerId:e.props.containerId,id:e.props.toastId,theme:e.props.theme,type:e.props.type,data:e.props.data||{},isLoading:e.props.isLoading,icon:e.props.icon,status:t}:{}}const mn=new Map;let Ks=[];const ul=new Set,YE=e=>ul.forEach(t=>t(e)),op=()=>mn.size>0;function ap(e,t){var n;if(t)return!((n=mn.get(t))==null||!n.isToastActive(e));let r=!1;return mn.forEach(i=>{i.isToastActive(e)&&(r=!0)}),r}function cp(e,t){cl(e)&&(op()||Ks.push({content:e,options:t}),mn.forEach(n=>{n.buildToast(e,t)}))}function up(e,t){mn.forEach(n=>{t!=null&&t!=null&&t.containerId?(t==null?void 0:t.containerId)===n.id&&n.toggle(e,t==null?void 0:t.id):n.toggle(e,t==null?void 0:t.id)})}function WE(e){const{subscribe:t,getSnapshot:n,setProps:r}=I.useRef(function(s){const o=s.containerId||1;return{subscribe(c){const u=function(f,p,l){let v=1,a=0,h=[],y=[],g=[],b=p;const w=new Map,E=new Set,S=()=>{g=Array.from(w.values()),E.forEach(O=>O())},A=O=>{y=O==null?[]:y.filter(M=>M!==O),S()},T=O=>{const{toastId:M,onOpen:D,updateId:F,children:V}=O.props,G=F==null;O.staleId&&w.delete(O.staleId),w.set(M,O),y=[...y,O.props.toastId].filter(U=>U!==O.staleId),S(),l(sp(O,G?"added":"updated")),G&&Dn(D)&&D(I.isValidElement(V)&&V.props)};return{id:f,props:b,observe:O=>(E.add(O),()=>E.delete(O)),toggle:(O,M)=>{w.forEach(D=>{M!=null&&M!==D.props.toastId||Dn(D.toggle)&&D.toggle(O)})},removeToast:A,toasts:w,clearQueue:()=>{a-=h.length,h=[]},buildToast:(O,M)=>{if((he=>{let{containerId:ue,toastId:ye,updateId:pe}=he;const q=ue?ue!==f:f!==1,$=w.has(ye)&&pe==null;return q||$})(M))return;const{toastId:D,updateId:F,data:V,staleId:G,delay:U}=M,N=()=>{A(D)},L=F==null;L&&a++;const Y={...b,style:b.toastStyle,key:v++,...Object.fromEntries(Object.entries(M).filter(he=>{let[ue,ye]=he;return ye!=null})),toastId:D,updateId:F,data:V,closeToast:N,isIn:!1,className:Sa(M.className||b.toastClassName),bodyClassName:Sa(M.bodyClassName||b.bodyClassName),progressClassName:Sa(M.progressClassName||b.progressClassName),autoClose:!M.isLoading&&(z=M.autoClose,ee=b.autoClose,z===!1||Ws(z)&&z>0?z:ee),deleteToast(){const he=w.get(D),{onClose:ue,children:ye}=he.props;Dn(ue)&&ue(I.isValidElement(ye)&&ye.props),l(sp(he,"removed")),w.delete(D),a--,a<0&&(a=0),h.length>0?T(h.shift()):S()}};var z,ee;Y.closeButton=b.closeButton,M.closeButton===!1||cl(M.closeButton)?Y.closeButton=M.closeButton:M.closeButton===!0&&(Y.closeButton=!cl(b.closeButton)||b.closeButton);let te=O;I.isValidElement(O)&&!Ci(O.type)?te=I.cloneElement(O,{closeToast:N,toastProps:Y,data:V}):Dn(O)&&(te=O({closeToast:N,toastProps:Y,data:V}));const re={content:te,props:Y,staleId:G};b.limit&&b.limit>0&&a>b.limit&&L?h.push(re):Ws(U)?setTimeout(()=>{T(re)},U):T(re)},setProps(O){b=O},setToggle:(O,M)=>{w.get(O).toggle=M},isToastActive:O=>y.some(M=>M===O),getSnapshot:()=>b.newestOnTop?g.reverse():g}}(o,s,YE);mn.set(o,u);const d=u.observe(c);return Ks.forEach(f=>cp(f.content,f.options)),Ks=[],()=>{d(),mn.delete(o)}},setProps(c){var u;(u=mn.get(o))==null||u.setProps(c)},getSnapshot(){var c;return(c=mn.get(o))==null?void 0:c.getSnapshot()}}}(e)).current;r(e);const i=I.useSyncExternalStore(t,n,n);return{getToastToRender:function(s){if(!i)return[];const o=new Map;return i.forEach(c=>{const{position:u}=c.props;o.has(u)||o.set(u,[]),o.get(u).push(c)}),Array.from(o,c=>s(c[0],c[1]))},isToastActive:ap,count:i==null?void 0:i.length}}function KE(e){const[t,n]=I.useState(!1),[r,i]=I.useState(!1),s=I.useRef(null),o=I.useRef({start:0,delta:0,removalDistance:0,canCloseOnClick:!0,canDrag:!1,didMove:!1}).current,{autoClose:c,pauseOnHover:u,closeToast:d,onClick:f,closeOnClick:p}=e;var l,v;function a(){n(!0)}function h(){n(!1)}function y(w){const E=s.current;o.canDrag&&E&&(o.didMove=!0,t&&h(),o.delta=e.draggableDirection==="x"?w.clientX-o.start:w.clientY-o.start,o.start!==w.clientX&&(o.canCloseOnClick=!1),E.style.transform=`translate3d(${e.draggableDirection==="x"?`${o.delta}px, var(--y)`:`0, calc(${o.delta}px + var(--y))`},0)`,E.style.opacity=""+(1-Math.abs(o.delta/o.removalDistance)))}function g(){document.removeEventListener("pointermove",y),document.removeEventListener("pointerup",g);const w=s.current;if(o.canDrag&&o.didMove&&w){if(o.canDrag=!1,Math.abs(o.delta)>o.removalDistance)return i(!0),e.closeToast(),void e.collapseAll();w.style.transition="transform 0.2s, opacity 0.2s",w.style.removeProperty("transform"),w.style.removeProperty("opacity")}}(v=mn.get((l={id:e.toastId,containerId:e.containerId,fn:n}).containerId||1))==null||v.setToggle(l.id,l.fn),I.useEffect(()=>{if(e.pauseOnFocusLoss)return document.hasFocus()||h(),window.addEventListener("focus",a),window.addEventListener("blur",h),()=>{window.removeEventListener("focus",a),window.removeEventListener("blur",h)}},[e.pauseOnFocusLoss]);const b={onPointerDown:function(w){if(e.draggable===!0||e.draggable===w.pointerType){o.didMove=!1,document.addEventListener("pointermove",y),document.addEventListener("pointerup",g);const E=s.current;o.canCloseOnClick=!0,o.canDrag=!0,E.style.transition="none",e.draggableDirection==="x"?(o.start=w.clientX,o.removalDistance=E.offsetWidth*(e.draggablePercent/100)):(o.start=w.clientY,o.removalDistance=E.offsetHeight*(e.draggablePercent===80?1.5*e.draggablePercent:e.draggablePercent)/100)}},onPointerUp:function(w){const{top:E,bottom:S,left:A,right:T}=s.current.getBoundingClientRect();w.nativeEvent.type!=="touchend"&&e.pauseOnHover&&w.clientX>=A&&w.clientX<=T&&w.clientY>=E&&w.clientY<=S?h():a()}};return c&&u&&(b.onMouseEnter=h,e.stacked||(b.onMouseLeave=a)),p&&(b.onClick=w=>{f&&f(w),o.canCloseOnClick&&d()}),{playToast:a,pauseToast:h,isRunning:t,preventExitTransition:r,toastRef:s,eventHandlers:b}}function zE(e){let{delay:t,isRunning:n,closeToast:r,type:i="default",hide:s,className:o,style:c,controlledProgress:u,progress:d,rtl:f,isIn:p,theme:l}=e;const v=s||u&&d===0,a={...c,animationDuration:`${t}ms`,animationPlayState:n?"running":"paused"};u&&(a.transform=`scaleX(${d})`);const h=Wr("Toastify__progress-bar",u?"Toastify__progress-bar--controlled":"Toastify__progress-bar--animated",`Toastify__progress-bar-theme--${l}`,`Toastify__progress-bar--${i}`,{"Toastify__progress-bar--rtl":f}),y=Dn(o)?o({rtl:f,type:i,defaultClassName:h}):Wr(h,o),g={[u&&d>=1?"onTransitionEnd":"onAnimationEnd"]:u&&d<1?null:()=>{p&&r()}};return I.createElement("div",{className:"Toastify__progress-bar--wrp","data-hidden":v},I.createElement("div",{className:`Toastify__progress-bar--bg Toastify__progress-bar-theme--${l} Toastify__progress-bar--${i}`}),I.createElement("div",{role:"progressbar","aria-hidden":v?"true":"false","aria-label":"notification timer",className:y,style:a,...g}))}let QE=1;const lp=()=>""+QE++;function JE(e){return e&&(Ci(e.toastId)||Ws(e.toastId))?e.toastId:lp()}function zs(e,t){return cp(e,t),t.toastId}function Ca(e,t){return{...t,type:t&&t.type||e,toastId:JE(t)}}function _a(e){return(t,n)=>zs(t,Ca(e,n))}function mt(e,t){return zs(e,Ca("default",t))}mt.loading=(e,t)=>zs(e,Ca("default",{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1,...t})),mt.promise=function(e,t,n){let r,{pending:i,error:s,success:o}=t;i&&(r=Ci(i)?mt.loading(i,n):mt.loading(i.render,{...n,...i}));const c={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null},u=(f,p,l)=>{if(p==null)return void mt.dismiss(r);const v={type:f,...c,...n,data:l},a=Ci(p)?{render:p}:p;return r?mt.update(r,{...v,...a}):mt(a.render,{...v,...a}),l},d=Dn(e)?e():e;return d.then(f=>u("success",o,f)).catch(f=>u("error",s,f)),d},mt.success=_a("success"),mt.info=_a("info"),mt.error=_a("error"),mt.warning=_a("warning"),mt.warn=mt.warning,mt.dark=(e,t)=>zs(e,Ca("default",{theme:"dark",...t})),mt.dismiss=function(e){(function(t){var n;if(op()){if(t==null||Ci(n=t)||Ws(n))mn.forEach(r=>{r.removeToast(t)});else if(t&&("containerId"in t||"id"in t)){const r=mn.get(t.containerId);r?r.removeToast(t.id):mn.forEach(i=>{i.removeToast(t.id)})}}else Ks=Ks.filter(r=>t!=null&&r.options.toastId!==t)})(e)},mt.clearWaitingQueue=function(e){e===void 0&&(e={}),mn.forEach(t=>{!t.props.limit||e.containerId&&t.id!==e.containerId||t.clearQueue()})},mt.isActive=ap,mt.update=function(e,t){t===void 0&&(t={});const n=((r,i)=>{var s;let{containerId:o}=i;return(s=mn.get(o||1))==null?void 0:s.toasts.get(r)})(e,t);if(n){const{props:r,content:i}=n,s={delay:100,...r,...t,toastId:t.toastId||e,updateId:lp()};s.toastId!==e&&(s.staleId=e);const o=s.render||i;delete s.render,zs(o,s)}},mt.done=e=>{mt.update(e,{progress:1})},mt.onChange=function(e){return ul.add(e),()=>{ul.delete(e)}},mt.play=e=>up(!0,e),mt.pause=e=>up(!1,e);const ZE=typeof window<"u"?I.useLayoutEffect:I.useEffect,Aa=e=>{let{theme:t,type:n,isLoading:r,...i}=e;return I.createElement("svg",{viewBox:"0 0 24 24",width:"100%",height:"100%",fill:t==="colored"?"currentColor":`var(--toastify-icon-color-${n})`,...i})},ll={info:function(e){return I.createElement(Aa,{...e},I.createElement("path",{d:"M12 0a12 12 0 1012 12A12.013 12.013 0 0012 0zm.25 5a1.5 1.5 0 11-1.5 1.5 1.5 1.5 0 011.5-1.5zm2.25 13.5h-4a1 1 0 010-2h.75a.25.25 0 00.25-.25v-4.5a.25.25 0 00-.25-.25h-.75a1 1 0 010-2h1a2 2 0 012 2v4.75a.25.25 0 00.25.25h.75a1 1 0 110 2z"}))},warning:function(e){return I.createElement(Aa,{...e},I.createElement("path",{d:"M23.32 17.191L15.438 2.184C14.728.833 13.416 0 11.996 0c-1.42 0-2.733.833-3.443 2.184L.533 17.448a4.744 4.744 0 000 4.368C1.243 23.167 2.555 24 3.975 24h16.05C22.22 24 24 22.044 24 19.632c0-.904-.251-1.746-.68-2.44zm-9.622 1.46c0 1.033-.724 1.823-1.698 1.823s-1.698-.79-1.698-1.822v-.043c0-1.028.724-1.822 1.698-1.822s1.698.79 1.698 1.822v.043zm.039-12.285l-.84 8.06c-.057.581-.408.943-.897.943-.49 0-.84-.367-.896-.942l-.84-8.065c-.057-.624.25-1.095.779-1.095h1.91c.528.005.84.476.784 1.1z"}))},success:function(e){return I.createElement(Aa,{...e},I.createElement("path",{d:"M12 0a12 12 0 1012 12A12.014 12.014 0 0012 0zm6.927 8.2l-6.845 9.289a1.011 1.011 0 01-1.43.188l-4.888-3.908a1 1 0 111.25-1.562l4.076 3.261 6.227-8.451a1 1 0 111.61 1.183z"}))},error:function(e){return I.createElement(Aa,{...e},I.createElement("path",{d:"M11.983 0a12.206 12.206 0 00-8.51 3.653A11.8 11.8 0 000 12.207 11.779 11.779 0 0011.8 24h.214A12.111 12.111 0 0024 11.791 11.766 11.766 0 0011.983 0zM10.5 16.542a1.476 1.476 0 011.449-1.53h.027a1.527 1.527 0 011.523 1.47 1.475 1.475 0 01-1.449 1.53h-.027a1.529 1.529 0 01-1.523-1.47zM11 12.5v-6a1 1 0 012 0v6a1 1 0 11-2 0z"}))},spinner:function(){return I.createElement("div",{className:"Toastify__spinner"})}},XE=e=>{const{isRunning:t,preventExitTransition:n,toastRef:r,eventHandlers:i,playToast:s}=KE(e),{closeButton:o,children:c,autoClose:u,onClick:d,type:f,hideProgressBar:p,closeToast:l,transition:v,position:a,className:h,style:y,bodyClassName:g,bodyStyle:b,progressClassName:w,progressStyle:E,updateId:S,role:A,progress:T,rtl:O,toastId:M,deleteToast:D,isIn:F,isLoading:V,closeOnClick:G,theme:U}=e,N=Wr("Toastify__toast",`Toastify__toast-theme--${U}`,`Toastify__toast--${f}`,{"Toastify__toast--rtl":O},{"Toastify__toast--close-on-click":G}),L=Dn(h)?h({rtl:O,position:a,type:f,defaultClassName:N}):Wr(N,h),Y=function(re){let{theme:he,type:ue,isLoading:ye,icon:pe}=re,q=null;const $={theme:he,type:ue};return pe===!1||(Dn(pe)?q=pe({...$,isLoading:ye}):I.isValidElement(pe)?q=I.cloneElement(pe,$):ye?q=ll.spinner():(Q=>Q in ll)(ue)&&(q=ll[ue]($))),q}(e),z=!!T||!u,ee={closeToast:l,type:f,theme:U};let te=null;return o===!1||(te=Dn(o)?o(ee):I.isValidElement(o)?I.cloneElement(o,ee):function(re){let{closeToast:he,theme:ue,ariaLabel:ye="close"}=re;return I.createElement("button",{className:`Toastify__close-button Toastify__close-button--${ue}`,type:"button",onClick:pe=>{pe.stopPropagation(),he(pe)},"aria-label":ye},I.createElement("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},I.createElement("path",{fillRule:"evenodd",d:"M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z"})))}(ee)),I.createElement(v,{isIn:F,done:D,position:a,preventExitTransition:n,nodeRef:r,playToast:s},I.createElement("div",{id:M,onClick:d,"data-in":F,className:L,...i,style:y,ref:r},I.createElement("div",{...F&&{role:A},className:Dn(g)?g({type:f}):Wr("Toastify__toast-body",g),style:b},Y!=null&&I.createElement("div",{className:Wr("Toastify__toast-icon",{"Toastify--animate-icon Toastify__zoom-enter":!V})},Y),I.createElement("div",null,c)),te,I.createElement(zE,{...S&&!z?{key:`pb-${S}`}:{},rtl:O,theme:U,delay:u,isRunning:t,isIn:F,closeToast:l,hide:p,type:f,style:E,className:w,controlledProgress:z,progress:T||0})))},Ta=function(e,t){return t===void 0&&(t=!1),{enter:`Toastify--animate Toastify__${e}-enter`,exit:`Toastify--animate Toastify__${e}-exit`,appendPosition:t}},eS=xa(Ta("bounce",!0));xa(Ta("slide",!0)),xa(Ta("zoom")),xa(Ta("flip"));const tS={position:"top-right",transition:eS,autoClose:5e3,closeButton:!0,pauseOnHover:!0,pauseOnFocusLoss:!0,draggable:"touch",draggablePercent:80,draggableDirection:"x",role:"alert",theme:"light"};function nS(e){let t={...tS,...e};const n=e.stacked,[r,i]=I.useState(!0),s=I.useRef(null),{getToastToRender:o,isToastActive:c,count:u}=WE(t),{className:d,style:f,rtl:p,containerId:l}=t;function v(h){const y=Wr("Toastify__toast-container",`Toastify__toast-container--${h}`,{"Toastify__toast-container--rtl":p});return Dn(d)?d({position:h,rtl:p,defaultClassName:y}):Wr(y,Sa(d))}function a(){n&&(i(!0),mt.play())}return ZE(()=>{if(n){var h;const y=s.current.querySelectorAll('[data-in="true"]'),g=12,b=(h=t.position)==null?void 0:h.includes("top");let w=0,E=0;Array.from(y).reverse().forEach((S,A)=>{const T=S;T.classList.add("Toastify__toast--stacked"),A>0&&(T.dataset.collapsed=`${r}`),T.dataset.pos||(T.dataset.pos=b?"top":"bot");const O=w*(r?.2:1)+(r?0:g*A);T.style.setProperty("--y",`${b?O:-1*O}px`),T.style.setProperty("--g",`${g}`),T.style.setProperty("--s",""+(1-(r?E:0))),w+=T.offsetHeight,E+=.025})}},[r,u,n]),I.createElement("div",{ref:s,className:"Toastify",id:l,onMouseEnter:()=>{n&&(i(!1),mt.pause())},onMouseLeave:a},o((h,y)=>{const g=y.length?{...f}:{...f,pointerEvents:"none"};return I.createElement("div",{className:v(h),style:g,key:`container-${h}`},y.map(b=>{let{content:w,props:E}=b;return I.createElement(XE,{...E,stacked:n,collapseAll:a,isIn:c(E.toastId,E.containerId),style:E.style,key:`toast-${E.key}`},w)}))}))}const rS="data:image/svg+xml,%3csvg%20width='32'%20height='32'%20viewBox='0%200%2032%2032'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_15_20)'%3e%3crect%20width='32'%20height='32'%20rx='4'%20fill='%23E7FBF4'/%3e%3cpath%20d='M10.6668%2017.3333L14.6668%2020L21.3335%2012'%20stroke='%23039855'%20stroke-width='1.6875'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_15_20'%3e%3cpath%20d='M0%2016C0%207.16344%207.16344%200%2016%200V0C24.8366%200%2032%207.16344%2032%2016V16C32%2024.8366%2024.8366%2032%2016%2032V32C7.16344%2032%200%2024.8366%200%2016V16Z'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",iS="data:image/svg+xml,%3csvg%20width='32'%20height='32'%20viewBox='0%200%2032%2032'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_17_95)'%3e%3crect%20width='32'%20height='32'%20rx='4'%20fill='%23FEF3F2'/%3e%3cpath%20d='M12.0003%2012L20.0003%2020M12.0003%2020L20.0003%2012'%20stroke='%23E02731'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_17_95'%3e%3cpath%20d='M0%2016C0%207.16344%207.16344%200%2016%200V0C24.8366%200%2032%207.16344%2032%2016V16C32%2024.8366%2024.8366%2032%2016%2032V32C7.16344%2032%200%2024.8366%200%2016V16Z'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",sS="data:image/svg+xml,%3csvg%20width='32'%20height='32'%20viewBox='0%200%2032%2032'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_17_99)'%3e%3crect%20width='32'%20height='32'%20rx='4'%20fill='%23FFFAEB'/%3e%3cpath%20d='M16.0002%2017.3333V13.3333M16.0002%2020V20.0067M23.0353%2019.3333L17.942%2010.456C17.0833%208.95867%2014.9167%208.95867%2014.058%2010.456L8.96533%2019.3333C8.11266%2020.8187%209.18933%2022.6667%2010.9073%2022.6667H21.0933C22.8107%2022.6667%2023.8873%2020.8187%2023.0353%2019.3333Z'%20stroke='%23CFAA25'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_17_99'%3e%3cpath%20d='M0%2016C0%207.16344%207.16344%200%2016%200C24.8366%200%2032%207.16344%2032%2016C32%2024.8366%2024.8366%2032%2016%2032C7.16344%2032%200%2024.8366%200%2016Z'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e";function oS(){if(console&&console.warn){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];typeof t[0]=="string"&&(t[0]=`react-i18next:: ${t[0]}`),console.warn(...t)}}const dp={};function dl(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];typeof t[0]=="string"&&dp[t[0]]||(typeof t[0]=="string"&&(dp[t[0]]=new Date),oS(...t))}const fp=(e,t)=>()=>{if(e.isInitialized)t();else{const n=()=>{setTimeout(()=>{e.off("initialized",n)},0),t()};e.on("initialized",n)}};function hp(e,t,n){e.loadNamespaces(t,fp(e,n))}function pp(e,t,n,r){typeof n=="string"&&(n=[n]),n.forEach(i=>{e.options.ns.indexOf(i)<0&&e.options.ns.push(i)}),e.loadLanguages(t,fp(e,r))}function aS(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const r=t.languages[0],i=t.options?t.options.fallbackLng:!1,s=t.languages[t.languages.length-1];if(r.toLowerCase()==="cimode")return!0;const o=(c,u)=>{const d=t.services.backendConnector.state[`${c}|${u}`];return d===-1||d===2};return n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!o(t.isLanguageChangingTo,e)?!1:!!(t.hasResourceBundle(r,e)||!t.services.backendConnector.backend||t.options.resources&&!t.options.partialBundledLanguages||o(r,e)&&(!i||o(s,e)))}function cS(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return!t.languages||!t.languages.length?(dl("i18n.languages were undefined or empty",t.languages),!0):t.options.ignoreJSONStructure!==void 0?t.hasLoadedNamespace(e,{lng:n.lng,precheck:(i,s)=>{if(n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&i.services.backendConnector.backend&&i.isLanguageChangingTo&&!s(i.isLanguageChangingTo,e))return!1}}):aS(e,t,n)}const uS=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,lS={"&amp;":"&","&#38;":"&","&lt;":"<","&#60;":"<","&gt;":">","&#62;":">","&apos;":"'","&#39;":"'","&quot;":'"',"&#34;":'"',"&nbsp;":" ","&#160;":" ","&copy;":"©","&#169;":"©","&reg;":"®","&#174;":"®","&hellip;":"…","&#8230;":"…","&#x2F;":"/","&#47;":"/"},dS=e=>lS[e];let fl={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:e=>e.replace(uS,dS)};function fS(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};fl={...fl,...e}}function hS(){return fl}let mp;function pS(e){mp=e}function mS(){return mp}const gS={type:"3rdParty",init(e){fS(e.options.react),pS(e)}},yS=I.createContext();class vS{constructor(){this.usedNamespaces={}}addUsedNamespaces(t){t.forEach(n=>{this.usedNamespaces[n]||(this.usedNamespaces[n]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}const bS=(e,t)=>{const n=I.useRef();return I.useEffect(()=>{n.current=e},[e,t]),n.current};function gp(e,t,n,r){return e.getFixedT(t,n,r)}function wS(e,t,n,r){return I.useCallback(gp(e,t,n,r),[e,t,n,r])}function Ve(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{i18n:n}=t,{i18n:r,defaultNS:i}=I.useContext(yS)||{},s=n||r||mS();if(s&&!s.reportNamespaces&&(s.reportNamespaces=new vS),!s){dl("You will need to pass in an i18next instance by using initReactI18next");const E=(A,T)=>typeof T=="string"?T:T&&typeof T=="object"&&typeof T.defaultValue=="string"?T.defaultValue:Array.isArray(A)?A[A.length-1]:A,S=[E,{},!1];return S.t=E,S.i18n={},S.ready=!1,S}s.options.react&&s.options.react.wait!==void 0&&dl("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");const o={...hS(),...s.options.react,...t},{useSuspense:c,keyPrefix:u}=o;let d=i||s.options&&s.options.defaultNS;d=typeof d=="string"?[d]:d||["translation"],s.reportNamespaces.addUsedNamespaces&&s.reportNamespaces.addUsedNamespaces(d);const f=(s.isInitialized||s.initializedStoreOnce)&&d.every(E=>cS(E,s,o)),p=wS(s,t.lng||null,o.nsMode==="fallback"?d:d[0],u),l=()=>p,v=()=>gp(s,t.lng||null,o.nsMode==="fallback"?d:d[0],u),[a,h]=I.useState(l);let y=d.join();t.lng&&(y=`${t.lng}${y}`);const g=bS(y),b=I.useRef(!0);I.useEffect(()=>{const{bindI18n:E,bindI18nStore:S}=o;b.current=!0,!f&&!c&&(t.lng?pp(s,t.lng,d,()=>{b.current&&h(v)}):hp(s,d,()=>{b.current&&h(v)})),f&&g&&g!==y&&b.current&&h(v);function A(){b.current&&h(v)}return E&&s&&s.on(E,A),S&&s&&s.store.on(S,A),()=>{b.current=!1,E&&s&&E.split(" ").forEach(T=>s.off(T,A)),S&&s&&S.split(" ").forEach(T=>s.store.off(T,A))}},[s,y]),I.useEffect(()=>{b.current&&f&&h(l)},[s,u,f]);const w=[a,s,f];if(w.t=a,w.i18n=s,w.ready=f,f||!f&&!c)return w;throw new Promise(E=>{t.lng?pp(s,t.lng,d,()=>E()):hp(s,d,()=>E())})}function qt(){const{t:e}=Ve(),n={closeButton:!1,icon:c=>c.type==="success"?m.jsx("img",{src:rS,alt:"success"}):c.type==="error"?m.jsx("img",{src:iS,alt:"error"}):m.jsx("img",{src:sS,alt:"warning"})},r=(c,u)=>{if(c==="success")return i(u);o(u)},i=(c=e("success"),u={})=>{mt.success(c,{...n,...u})},s=(c=e("warning"))=>{mt.warning(c,n)},o=(c=e("somethingWentWrong"))=>{var f,p;const u=(f=c.response)==null?void 0:f.data.errors,d=m.jsxs("div",{children:[m.jsx("p",{children:(p=c.response)==null?void 0:p.data.message}),u&&Object.keys(u).map(l=>u[l].map(v=>m.jsx("li",{children:v},v)))]});mt.error(d,n)};return{toast:r,successToast:i,warningToast:s,errorToast:o}}const $n=e=>{const t=Ct(),{errorToast:n}=qt(),r=d=>t.get(d,e.params),{data:i,error:s,isLoading:o,isValidating:c,mutate:u}=ww(e.url,r,{shouldRetryOnError:!1,revalidateIfStale:!1});return I.useEffect(()=>{i&&e.onData&&e.onData(i==null?void 0:i.data.data,i==null?void 0:i.data.meta)},[i]),I.useEffect(()=>{s&&n(s)},[s]),{data:i,pending:c,error:s,isLoading:o,isValidating:c,mutate:u}};var yp=(e=>(e[e.CREDIT_RECEPTION=1]="CREDIT_RECEPTION",e[e.PHYSICAL_REWARD_RECEPTION=2]="PHYSICAL_REWARD_RECEPTION",e[e.DIGITAL_REWARD_RECEPTION=3]="DIGITAL_REWARD_RECEPTION",e))(yp||{}),Qs=(e=>(e.IDENTIFIER="identifier",e.EMAIL="email",e))(Qs||{}),vp=(e=>(e.OPT_OUT="OPT_OUT",e.OPT_IN="OPT_IN",e.DOUBLE_OPT_IN="DOUBLE_OPT_IN",e.FUNCTIONAL="FUNCTIONAL",e))(vp||{}),Js=(e=>(e.INACTIVE="INACTIVE",e.ACTIVE="ACTIVE",e.EXPIRED="EXPIRED",e.LOCKED="LOCKED",e.REDEEMED="REDEEMED",e.DEACTIVATED="DEACTIVATED",e))(Js||{});function bp({uuid:e,children:t}){const[n,r]=I.useState(new ua),{mutate:i,error:s}=$n({url:e,onData:c=>{const u=new ua;u.type=c.type,u.uuid=c.uuid,u.contact=c.contact,u.currency=c.currency,u.events=c.events,u.inputData=c.input_data,u.loyaltyProgram=c.loyalty_program,u.results=c.results,r(u)}}),o=I.useMemo(()=>({uuid:e,portalSession:n,mutate:i,error:s}),[n,i,s]);return m.jsx(oh.Provider,{value:o,children:t})}var un=(e=>(e.GENERIC="GENERIC",e.GIFTCARD="GIFTCARD",e.REDEEM_GIFTCARD="REDEEM_GIFTCARD",e.TOP_UP_GIFTCARD="TOP_UP_GIFTCARD",e.PORTAL="PORTAL",e.PAY_PREPAID="PAY_PREPAID",e.TOP_UP_PREPAID="TOP_UP_PREPAID",e.POINTS_TRANSACTION="POINTS_TRANSACTION",e.VOUCHER="VOUCHER",e))(un||{}),Fe=(e=>(e.GENERIC="/generic",e.GIFTCARD="/giftcard",e.PORTAL="/portal",e.PREPAID="/prepaid",e.PAY_PREPAID="/pay-prepaid",e.TOP_UP_PREPAID="/top-up-prepaid",e.POINTS_TRANSACTION="/points-transaction",e.VOUCHER="/voucher",e))(Fe||{}),Kr=(e=>(e.CREDIT_RECEPTION="credit_reception",e.GIFTCARD_TRANSACTION="giftcard_transaction",e.VOUCHER_REDEEMED="voucher_redeemed",e.REWARD_RECEPTION="reward_reception",e.PREPAID_TRANSACTION="prepaid_transaction",e))(Kr||{}),Ia=(e=>(e[e.INPUT_INVALID=1003]="INPUT_INVALID",e[e.CONTACT_NOT_FOUND=55031]="CONTACT_NOT_FOUND",e))(Ia||{}),Hi=(e=>(e.USER="user",e.ENVIRONMENT="environment",e))(Hi||{});const ES={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){console&&console[e]&&console[e].apply(console,t)}};class ka{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.init(t,n)}init(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=n.prefix||"i18next:",this.logger=t||ES,this.options=n,this.debug=n.debug}log(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"log","",!0)}warn(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"warn","",!0)}error(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"error","")}deprecate(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"warn","WARNING DEPRECATED: ",!0)}forward(t,n,r,i){return i&&!this.debug?null:(typeof t[0]=="string"&&(t[0]=`${r}${this.prefix} ${t[0]}`),this.logger[n](t))}create(t){return new ka(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t=t||this.options,t.prefix=t.prefix||this.prefix,new ka(this.logger,t)}}var hr=new ka;class Oa{constructor(){this.observers={}}on(t,n){return t.split(" ").forEach(r=>{this.observers[r]||(this.observers[r]=new Map);const i=this.observers[r].get(n)||0;this.observers[r].set(n,i+1)}),this}off(t,n){if(this.observers[t]){if(!n){delete this.observers[t];return}this.observers[t].delete(n)}}emit(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];this.observers[t]&&Array.from(this.observers[t].entries()).forEach(o=>{let[c,u]=o;for(let d=0;d<u;d++)c(...r)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(o=>{let[c,u]=o;for(let d=0;d<u;d++)c.apply(c,[t,...r])})}}function Zs(){let e,t;const n=new Promise((r,i)=>{e=r,t=i});return n.resolve=e,n.reject=t,n}function wp(e){return e==null?"":""+e}function SS(e,t,n){e.forEach(r=>{t[r]&&(n[r]=t[r])})}const xS=/###/g;function Xs(e,t,n){function r(c){return c&&c.indexOf("###")>-1?c.replace(xS,"."):c}function i(){return!e||typeof e=="string"}const s=typeof t!="string"?t:t.split(".");let o=0;for(;o<s.length-1;){if(i())return{};const c=r(s[o]);!e[c]&&n&&(e[c]=new n),Object.prototype.hasOwnProperty.call(e,c)?e=e[c]:e={},++o}return i()?{}:{obj:e,k:r(s[o])}}function Ep(e,t,n){const{obj:r,k:i}=Xs(e,t,Object);if(r!==void 0||t.length===1){r[i]=n;return}let s=t[t.length-1],o=t.slice(0,t.length-1),c=Xs(e,o,Object);for(;c.obj===void 0&&o.length;)s=`${o[o.length-1]}.${s}`,o=o.slice(0,o.length-1),c=Xs(e,o,Object),c&&c.obj&&typeof c.obj[`${c.k}.${s}`]<"u"&&(c.obj=void 0);c.obj[`${c.k}.${s}`]=n}function CS(e,t,n,r){const{obj:i,k:s}=Xs(e,t,Object);i[s]=i[s]||[],i[s].push(n)}function Na(e,t){const{obj:n,k:r}=Xs(e,t);if(n)return n[r]}function _S(e,t,n){const r=Na(e,n);return r!==void 0?r:Na(t,n)}function Sp(e,t,n){for(const r in t)r!=="__proto__"&&r!=="constructor"&&(r in e?typeof e[r]=="string"||e[r]instanceof String||typeof t[r]=="string"||t[r]instanceof String?n&&(e[r]=t[r]):Sp(e[r],t[r],n):e[r]=t[r]);return e}function Yi(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var AS={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};function TS(e){return typeof e=="string"?e.replace(/[&<>"'\/]/g,t=>AS[t]):e}class IS{constructor(t){this.capacity=t,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(t){const n=this.regExpMap.get(t);if(n!==void 0)return n;const r=new RegExp(t);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(t,r),this.regExpQueue.push(t),r}}const kS=[" ",",","?","!",";"],OS=new IS(20);function NS(e,t,n){t=t||"",n=n||"";const r=kS.filter(o=>t.indexOf(o)<0&&n.indexOf(o)<0);if(r.length===0)return!0;const i=OS.getRegExp(`(${r.map(o=>o==="?"?"\\?":o).join("|")})`);let s=!i.test(e);if(!s){const o=e.indexOf(n);o>0&&!i.test(e.substring(0,o))&&(s=!0)}return s}function hl(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!e)return;if(e[t])return e[t];const r=t.split(n);let i=e;for(let s=0;s<r.length;){if(!i||typeof i!="object")return;let o,c="";for(let u=s;u<r.length;++u)if(u!==s&&(c+=n),c+=r[u],o=i[c],o!==void 0){if(["string","number","boolean"].indexOf(typeof o)>-1&&u<r.length-1)continue;s+=u-s+1;break}i=o}return i}function Ra(e){return e&&e.indexOf("_")>0?e.replace("_","-"):e}class xp extends Oa{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=t||{},this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(t){this.options.ns.indexOf(t)<0&&this.options.ns.push(t)}removeNamespaces(t){const n=this.options.ns.indexOf(t);n>-1&&this.options.ns.splice(n,1)}getResource(t,n,r){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const s=i.keySeparator!==void 0?i.keySeparator:this.options.keySeparator,o=i.ignoreJSONStructure!==void 0?i.ignoreJSONStructure:this.options.ignoreJSONStructure;let c;t.indexOf(".")>-1?c=t.split("."):(c=[t,n],r&&(Array.isArray(r)?c.push(...r):typeof r=="string"&&s?c.push(...r.split(s)):c.push(r)));const u=Na(this.data,c);return!u&&!n&&!r&&t.indexOf(".")>-1&&(t=c[0],n=c[1],r=c.slice(2).join(".")),u||!o||typeof r!="string"?u:hl(this.data&&this.data[t]&&this.data[t][n],r,s)}addResource(t,n,r,i){let s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1};const o=s.keySeparator!==void 0?s.keySeparator:this.options.keySeparator;let c=[t,n];r&&(c=c.concat(o?r.split(o):r)),t.indexOf(".")>-1&&(c=t.split("."),i=n,n=c[1]),this.addNamespaces(n),Ep(this.data,c,i),s.silent||this.emit("added",t,n,r,i)}addResources(t,n,r){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(const s in r)(typeof r[s]=="string"||Array.isArray(r[s]))&&this.addResource(t,n,s,r[s],{silent:!0});i.silent||this.emit("added",t,n,r)}addResourceBundle(t,n,r,i,s){let o=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1,skipCopy:!1},c=[t,n];t.indexOf(".")>-1&&(c=t.split("."),i=r,r=n,n=c[1]),this.addNamespaces(n);let u=Na(this.data,c)||{};o.skipCopy||(r=JSON.parse(JSON.stringify(r))),i?Sp(u,r,s):u={...u,...r},Ep(this.data,c,u),o.silent||this.emit("added",t,n,r)}removeResourceBundle(t,n){this.hasResourceBundle(t,n)&&delete this.data[t][n],this.removeNamespaces(n),this.emit("removed",t,n)}hasResourceBundle(t,n){return this.getResource(t,n)!==void 0}getResourceBundle(t,n){return n||(n=this.options.defaultNS),this.options.compatibilityAPI==="v1"?{...this.getResource(t,n)}:this.getResource(t,n)}getDataByLanguage(t){return this.data[t]}hasLanguageSomeTranslations(t){const n=this.getDataByLanguage(t);return!!(n&&Object.keys(n)||[]).find(i=>n[i]&&Object.keys(n[i]).length>0)}toJSON(){return this.data}}var Cp={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,r,i){return e.forEach(s=>{this.processors[s]&&(t=this.processors[s].process(t,n,r,i))}),t}};const _p={};class Ma extends Oa{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),SS(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],t,this),this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=hr.create("translator")}changeLanguage(t){t&&(this.language=t)}exists(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(t==null)return!1;const r=this.resolve(t,n);return r&&r.res!==void 0}extractFromKey(t,n){let r=n.nsSeparator!==void 0?n.nsSeparator:this.options.nsSeparator;r===void 0&&(r=":");const i=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator;let s=n.ns||this.options.defaultNS||[];const o=r&&t.indexOf(r)>-1,c=!this.options.userDefinedKeySeparator&&!n.keySeparator&&!this.options.userDefinedNsSeparator&&!n.nsSeparator&&!NS(t,r,i);if(o&&!c){const u=t.match(this.interpolator.nestingRegexp);if(u&&u.length>0)return{key:t,namespaces:s};const d=t.split(r);(r!==i||r===i&&this.options.ns.indexOf(d[0])>-1)&&(s=d.shift()),t=d.join(i)}return typeof s=="string"&&(s=[s]),{key:t,namespaces:s}}translate(t,n,r){if(typeof n!="object"&&this.options.overloadTranslationOptionHandler&&(n=this.options.overloadTranslationOptionHandler(arguments)),typeof n=="object"&&(n={...n}),n||(n={}),t==null)return"";Array.isArray(t)||(t=[String(t)]);const i=n.returnDetails!==void 0?n.returnDetails:this.options.returnDetails,s=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator,{key:o,namespaces:c}=this.extractFromKey(t[t.length-1],n),u=c[c.length-1],d=n.lng||this.language,f=n.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(d&&d.toLowerCase()==="cimode"){if(f){const E=n.nsSeparator||this.options.nsSeparator;return i?{res:`${u}${E}${o}`,usedKey:o,exactUsedKey:o,usedLng:d,usedNS:u,usedParams:this.getUsedParamsDetails(n)}:`${u}${E}${o}`}return i?{res:o,usedKey:o,exactUsedKey:o,usedLng:d,usedNS:u,usedParams:this.getUsedParamsDetails(n)}:o}const p=this.resolve(t,n);let l=p&&p.res;const v=p&&p.usedKey||o,a=p&&p.exactUsedKey||o,h=Object.prototype.toString.apply(l),y=["[object Number]","[object Function]","[object RegExp]"],g=n.joinArrays!==void 0?n.joinArrays:this.options.joinArrays,b=!this.i18nFormat||this.i18nFormat.handleAsObject;if(b&&l&&(typeof l!="string"&&typeof l!="boolean"&&typeof l!="number")&&y.indexOf(h)<0&&!(typeof g=="string"&&Array.isArray(l))){if(!n.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const E=this.options.returnedObjectHandler?this.options.returnedObjectHandler(v,l,{...n,ns:c}):`key '${o} (${this.language})' returned an object instead of string.`;return i?(p.res=E,p.usedParams=this.getUsedParamsDetails(n),p):E}if(s){const E=Array.isArray(l),S=E?[]:{},A=E?a:v;for(const T in l)if(Object.prototype.hasOwnProperty.call(l,T)){const O=`${A}${s}${T}`;S[T]=this.translate(O,{...n,joinArrays:!1,ns:c}),S[T]===O&&(S[T]=l[T])}l=S}}else if(b&&typeof g=="string"&&Array.isArray(l))l=l.join(g),l&&(l=this.extendTranslation(l,t,n,r));else{let E=!1,S=!1;const A=n.count!==void 0&&typeof n.count!="string",T=Ma.hasDefaultValue(n),O=A?this.pluralResolver.getSuffix(d,n.count,n):"",M=n.ordinal&&A?this.pluralResolver.getSuffix(d,n.count,{ordinal:!1}):"",D=A&&!n.ordinal&&n.count===0&&this.pluralResolver.shouldUseIntlApi(),F=D&&n[`defaultValue${this.options.pluralSeparator}zero`]||n[`defaultValue${O}`]||n[`defaultValue${M}`]||n.defaultValue;!this.isValidLookup(l)&&T&&(E=!0,l=F),this.isValidLookup(l)||(S=!0,l=o);const G=(n.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&S?void 0:l,U=T&&F!==l&&this.options.updateMissing;if(S||E||U){if(this.logger.log(U?"updateKey":"missingKey",d,u,o,U?F:l),s){const z=this.resolve(o,{...n,keySeparator:!1});z&&z.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let N=[];const L=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if(this.options.saveMissingTo==="fallback"&&L&&L[0])for(let z=0;z<L.length;z++)N.push(L[z]);else this.options.saveMissingTo==="all"?N=this.languageUtils.toResolveHierarchy(n.lng||this.language):N.push(n.lng||this.language);const Y=(z,ee,te)=>{const re=T&&te!==l?te:G;this.options.missingKeyHandler?this.options.missingKeyHandler(z,u,ee,re,U,n):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(z,u,ee,re,U,n),this.emit("missingKey",z,u,ee,l)};this.options.saveMissing&&(this.options.saveMissingPlurals&&A?N.forEach(z=>{const ee=this.pluralResolver.getSuffixes(z,n);D&&n[`defaultValue${this.options.pluralSeparator}zero`]&&ee.indexOf(`${this.options.pluralSeparator}zero`)<0&&ee.push(`${this.options.pluralSeparator}zero`),ee.forEach(te=>{Y([z],o+te,n[`defaultValue${te}`]||F)})}):Y(N,o,F))}l=this.extendTranslation(l,t,n,p,r),S&&l===o&&this.options.appendNamespaceToMissingKey&&(l=`${u}:${o}`),(S||E)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?l=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${u}:${o}`:o,E?l:void 0):l=this.options.parseMissingKeyHandler(l))}return i?(p.res=l,p.usedParams=this.getUsedParamsDetails(n),p):l}extendTranslation(t,n,r,i,s){var o=this;if(this.i18nFormat&&this.i18nFormat.parse)t=this.i18nFormat.parse(t,{...this.options.interpolation.defaultVariables,...r},r.lng||this.language||i.usedLng,i.usedNS,i.usedKey,{resolved:i});else if(!r.skipInterpolation){r.interpolation&&this.interpolator.init({...r,interpolation:{...this.options.interpolation,...r.interpolation}});const d=typeof t=="string"&&(r&&r.interpolation&&r.interpolation.skipOnVariables!==void 0?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let f;if(d){const l=t.match(this.interpolator.nestingRegexp);f=l&&l.length}let p=r.replace&&typeof r.replace!="string"?r.replace:r;if(this.options.interpolation.defaultVariables&&(p={...this.options.interpolation.defaultVariables,...p}),t=this.interpolator.interpolate(t,p,r.lng||this.language,r),d){const l=t.match(this.interpolator.nestingRegexp),v=l&&l.length;f<v&&(r.nest=!1)}!r.lng&&this.options.compatibilityAPI!=="v1"&&i&&i.res&&(r.lng=i.usedLng),r.nest!==!1&&(t=this.interpolator.nest(t,function(){for(var l=arguments.length,v=new Array(l),a=0;a<l;a++)v[a]=arguments[a];return s&&s[0]===v[0]&&!r.context?(o.logger.warn(`It seems you are nesting recursively key: ${v[0]} in key: ${n[0]}`),null):o.translate(...v,n)},r)),r.interpolation&&this.interpolator.reset()}const c=r.postProcess||this.options.postProcess,u=typeof c=="string"?[c]:c;return t!=null&&u&&u.length&&r.applyPostProcessor!==!1&&(t=Cp.handle(u,t,n,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...i,usedParams:this.getUsedParamsDetails(r)},...r}:r,this)),t}resolve(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r,i,s,o,c;return typeof t=="string"&&(t=[t]),t.forEach(u=>{if(this.isValidLookup(r))return;const d=this.extractFromKey(u,n),f=d.key;i=f;let p=d.namespaces;this.options.fallbackNS&&(p=p.concat(this.options.fallbackNS));const l=n.count!==void 0&&typeof n.count!="string",v=l&&!n.ordinal&&n.count===0&&this.pluralResolver.shouldUseIntlApi(),a=n.context!==void 0&&(typeof n.context=="string"||typeof n.context=="number")&&n.context!=="",h=n.lngs?n.lngs:this.languageUtils.toResolveHierarchy(n.lng||this.language,n.fallbackLng);p.forEach(y=>{this.isValidLookup(r)||(c=y,!_p[`${h[0]}-${y}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(c)&&(_p[`${h[0]}-${y}`]=!0,this.logger.warn(`key "${i}" for languages "${h.join(", ")}" won't get resolved as namespace "${c}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),h.forEach(g=>{if(this.isValidLookup(r))return;o=g;const b=[f];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(b,f,g,y,n);else{let E;l&&(E=this.pluralResolver.getSuffix(g,n.count,n));const S=`${this.options.pluralSeparator}zero`,A=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(l&&(b.push(f+E),n.ordinal&&E.indexOf(A)===0&&b.push(f+E.replace(A,this.options.pluralSeparator)),v&&b.push(f+S)),a){const T=`${f}${this.options.contextSeparator}${n.context}`;b.push(T),l&&(b.push(T+E),n.ordinal&&E.indexOf(A)===0&&b.push(T+E.replace(A,this.options.pluralSeparator)),v&&b.push(T+S))}}let w;for(;w=b.pop();)this.isValidLookup(r)||(s=w,r=this.getResource(g,y,w,n))}))})}),{res:r,usedKey:i,exactUsedKey:s,usedLng:o,usedNS:c}}isValidLookup(t){return t!==void 0&&!(!this.options.returnNull&&t===null)&&!(!this.options.returnEmptyString&&t==="")}getResource(t,n,r){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(t,n,r,i):this.resourceStore.getResource(t,n,r,i)}getUsedParamsDetails(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const n=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],r=t.replace&&typeof t.replace!="string";let i=r?t.replace:t;if(r&&typeof t.count<"u"&&(i.count=t.count),this.options.interpolation.defaultVariables&&(i={...this.options.interpolation.defaultVariables,...i}),!r){i={...i};for(const s of n)delete i[s]}return i}static hasDefaultValue(t){const n="defaultValue";for(const r in t)if(Object.prototype.hasOwnProperty.call(t,r)&&n===r.substring(0,n.length)&&t[r]!==void 0)return!0;return!1}}function pl(e){return e.charAt(0).toUpperCase()+e.slice(1)}class Ap{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=hr.create("languageUtils")}getScriptPartFromCode(t){if(t=Ra(t),!t||t.indexOf("-")<0)return null;const n=t.split("-");return n.length===2||(n.pop(),n[n.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(n.join("-"))}getLanguagePartFromCode(t){if(t=Ra(t),!t||t.indexOf("-")<0)return t;const n=t.split("-");return this.formatLanguageCode(n[0])}formatLanguageCode(t){if(typeof t=="string"&&t.indexOf("-")>-1){const n=["hans","hant","latn","cyrl","cans","mong","arab"];let r=t.split("-");return this.options.lowerCaseLng?r=r.map(i=>i.toLowerCase()):r.length===2?(r[0]=r[0].toLowerCase(),r[1]=r[1].toUpperCase(),n.indexOf(r[1].toLowerCase())>-1&&(r[1]=pl(r[1].toLowerCase()))):r.length===3&&(r[0]=r[0].toLowerCase(),r[1].length===2&&(r[1]=r[1].toUpperCase()),r[0]!=="sgn"&&r[2].length===2&&(r[2]=r[2].toUpperCase()),n.indexOf(r[1].toLowerCase())>-1&&(r[1]=pl(r[1].toLowerCase())),n.indexOf(r[2].toLowerCase())>-1&&(r[2]=pl(r[2].toLowerCase()))),r.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?t.toLowerCase():t}isSupportedCode(t){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(t=this.getLanguagePartFromCode(t)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(t)>-1}getBestMatchFromCodes(t){if(!t)return null;let n;return t.forEach(r=>{if(n)return;const i=this.formatLanguageCode(r);(!this.options.supportedLngs||this.isSupportedCode(i))&&(n=i)}),!n&&this.options.supportedLngs&&t.forEach(r=>{if(n)return;const i=this.getLanguagePartFromCode(r);if(this.isSupportedCode(i))return n=i;n=this.options.supportedLngs.find(s=>{if(s===i)return s;if(!(s.indexOf("-")<0&&i.indexOf("-")<0)&&(s.indexOf("-")>0&&i.indexOf("-")<0&&s.substring(0,s.indexOf("-"))===i||s.indexOf(i)===0&&i.length>1))return s})}),n||(n=this.getFallbackCodes(this.options.fallbackLng)[0]),n}getFallbackCodes(t,n){if(!t)return[];if(typeof t=="function"&&(t=t(n)),typeof t=="string"&&(t=[t]),Array.isArray(t))return t;if(!n)return t.default||[];let r=t[n];return r||(r=t[this.getScriptPartFromCode(n)]),r||(r=t[this.formatLanguageCode(n)]),r||(r=t[this.getLanguagePartFromCode(n)]),r||(r=t.default),r||[]}toResolveHierarchy(t,n){const r=this.getFallbackCodes(n||this.options.fallbackLng||[],t),i=[],s=o=>{o&&(this.isSupportedCode(o)?i.push(o):this.logger.warn(`rejecting language code not found in supportedLngs: ${o}`))};return typeof t=="string"&&(t.indexOf("-")>-1||t.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&s(this.formatLanguageCode(t)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&s(this.getScriptPartFromCode(t)),this.options.load!=="currentOnly"&&s(this.getLanguagePartFromCode(t))):typeof t=="string"&&s(this.formatLanguageCode(t)),r.forEach(o=>{i.indexOf(o)<0&&s(this.formatLanguageCode(o))}),i}}let RS=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],MS={1:function(e){return+(e>1)},2:function(e){return+(e!=1)},3:function(e){return 0},4:function(e){return e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2},5:function(e){return e==0?0:e==1?1:e==2?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5},6:function(e){return e==1?0:e>=2&&e<=4?1:2},7:function(e){return e==1?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2},8:function(e){return e==1?0:e==2?1:e!=8&&e!=11?2:3},9:function(e){return+(e>=2)},10:function(e){return e==1?0:e==2?1:e<7?2:e<11?3:4},11:function(e){return e==1||e==11?0:e==2||e==12?1:e>2&&e<20?2:3},12:function(e){return+(e%10!=1||e%100==11)},13:function(e){return+(e!==0)},14:function(e){return e==1?0:e==2?1:e==3?2:3},15:function(e){return e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2},16:function(e){return e%10==1&&e%100!=11?0:e!==0?1:2},17:function(e){return e==1||e%10==1&&e%100!=11?0:1},18:function(e){return e==0?0:e==1?1:2},19:function(e){return e==1?0:e==0||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3},20:function(e){return e==1?0:e==0||e%100>0&&e%100<20?1:2},21:function(e){return e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0},22:function(e){return e==1?0:e==2?1:(e<0||e>10)&&e%10==0?2:3}};const DS=["v1","v2","v3"],PS=["v4"],Tp={zero:0,one:1,two:2,few:3,many:4,other:5};function jS(){const e={};return RS.forEach(t=>{t.lngs.forEach(n=>{e[n]={numbers:t.nr,plurals:MS[t.fc]}})}),e}class LS{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=t,this.options=n,this.logger=hr.create("pluralResolver"),(!this.options.compatibilityJSON||PS.includes(this.options.compatibilityJSON))&&(typeof Intl>"u"||!Intl.PluralRules)&&(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=jS()}addRule(t,n){this.rules[t]=n}getRule(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(Ra(t==="dev"?"en":t),{type:n.ordinal?"ordinal":"cardinal"})}catch{return}return this.rules[t]||this.rules[this.languageUtils.getLanguagePartFromCode(t)]}needsPlural(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const r=this.getRule(t,n);return this.shouldUseIntlApi()?r&&r.resolvedOptions().pluralCategories.length>1:r&&r.numbers.length>1}getPluralFormsOfKey(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(t,r).map(i=>`${n}${i}`)}getSuffixes(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const r=this.getRule(t,n);return r?this.shouldUseIntlApi()?r.resolvedOptions().pluralCategories.sort((i,s)=>Tp[i]-Tp[s]).map(i=>`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${i}`):r.numbers.map(i=>this.getSuffix(t,i,n)):[]}getSuffix(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const i=this.getRule(t,r);return i?this.shouldUseIntlApi()?`${this.options.prepend}${r.ordinal?`ordinal${this.options.prepend}`:""}${i.select(n)}`:this.getSuffixRetroCompatible(i,n):(this.logger.warn(`no plural rule found for: ${t}`),"")}getSuffixRetroCompatible(t,n){const r=t.noAbs?t.plurals(n):t.plurals(Math.abs(n));let i=t.numbers[r];this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1&&(i===2?i="plural":i===1&&(i=""));const s=()=>this.options.prepend&&i.toString()?this.options.prepend+i.toString():i.toString();return this.options.compatibilityJSON==="v1"?i===1?"":typeof i=="number"?`_plural_${i.toString()}`:s():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1?s():this.options.prepend&&r.toString()?this.options.prepend+r.toString():r.toString()}shouldUseIntlApi(){return!DS.includes(this.options.compatibilityJSON)}}function Ip(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,s=_S(e,t,n);return!s&&i&&typeof n=="string"&&(s=hl(e,n,r),s===void 0&&(s=hl(t,n,r))),s}class BS{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=hr.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||(n=>n),this.init(t)}init(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};t.interpolation||(t.interpolation={escapeValue:!0});const{escape:n,escapeValue:r,useRawValueToEscape:i,prefix:s,prefixEscaped:o,suffix:c,suffixEscaped:u,formatSeparator:d,unescapeSuffix:f,unescapePrefix:p,nestingPrefix:l,nestingPrefixEscaped:v,nestingSuffix:a,nestingSuffixEscaped:h,nestingOptionsSeparator:y,maxReplaces:g,alwaysFormat:b}=t.interpolation;this.escape=n!==void 0?n:TS,this.escapeValue=r!==void 0?r:!0,this.useRawValueToEscape=i!==void 0?i:!1,this.prefix=s?Yi(s):o||"{{",this.suffix=c?Yi(c):u||"}}",this.formatSeparator=d||",",this.unescapePrefix=f?"":p||"-",this.unescapeSuffix=this.unescapePrefix?"":f||"",this.nestingPrefix=l?Yi(l):v||Yi("$t("),this.nestingSuffix=a?Yi(a):h||Yi(")"),this.nestingOptionsSeparator=y||",",this.maxReplaces=g||1e3,this.alwaysFormat=b!==void 0?b:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const t=(n,r)=>n&&n.source===r?(n.lastIndex=0,n):new RegExp(r,"g");this.regexp=t(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=t(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=t(this.nestingRegexp,`${this.nestingPrefix}(.+?)${this.nestingSuffix}`)}interpolate(t,n,r,i){let s,o,c;const u=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function d(a){return a.replace(/\$/g,"$$$$")}const f=a=>{if(a.indexOf(this.formatSeparator)<0){const b=Ip(n,u,a,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(b,void 0,r,{...i,...n,interpolationkey:a}):b}const h=a.split(this.formatSeparator),y=h.shift().trim(),g=h.join(this.formatSeparator).trim();return this.format(Ip(n,u,y,this.options.keySeparator,this.options.ignoreJSONStructure),g,r,{...i,...n,interpolationkey:y})};this.resetRegExp();const p=i&&i.missingInterpolationHandler||this.options.missingInterpolationHandler,l=i&&i.interpolation&&i.interpolation.skipOnVariables!==void 0?i.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:a=>d(a)},{regex:this.regexp,safeValue:a=>this.escapeValue?d(this.escape(a)):d(a)}].forEach(a=>{for(c=0;s=a.regex.exec(t);){const h=s[1].trim();if(o=f(h),o===void 0)if(typeof p=="function"){const g=p(t,s,i);o=typeof g=="string"?g:""}else if(i&&Object.prototype.hasOwnProperty.call(i,h))o="";else if(l){o=s[0];continue}else this.logger.warn(`missed to pass in variable ${h} for interpolating ${t}`),o="";else typeof o!="string"&&!this.useRawValueToEscape&&(o=wp(o));const y=a.safeValue(o);if(t=t.replace(s[0],y),l?(a.regex.lastIndex+=o.length,a.regex.lastIndex-=s[0].length):a.regex.lastIndex=0,c++,c>=this.maxReplaces)break}}),t}nest(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i,s,o;function c(u,d){const f=this.nestingOptionsSeparator;if(u.indexOf(f)<0)return u;const p=u.split(new RegExp(`${f}[ ]*{`));let l=`{${p[1]}`;u=p[0],l=this.interpolate(l,o);const v=l.match(/'/g),a=l.match(/"/g);(v&&v.length%2===0&&!a||a.length%2!==0)&&(l=l.replace(/'/g,'"'));try{o=JSON.parse(l),d&&(o={...d,...o})}catch(h){return this.logger.warn(`failed parsing options string in nesting for key ${u}`,h),`${u}${f}${l}`}return o.defaultValue&&o.defaultValue.indexOf(this.prefix)>-1&&delete o.defaultValue,u}for(;i=this.nestingRegexp.exec(t);){let u=[];o={...r},o=o.replace&&typeof o.replace!="string"?o.replace:o,o.applyPostProcessor=!1,delete o.defaultValue;let d=!1;if(i[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(i[1])){const f=i[1].split(this.formatSeparator).map(p=>p.trim());i[1]=f.shift(),u=f,d=!0}if(s=n(c.call(this,i[1].trim(),o),o),s&&i[0]===t&&typeof s!="string")return s;typeof s!="string"&&(s=wp(s)),s||(this.logger.warn(`missed to resolve ${i[1]} for nesting ${t}`),s=""),d&&(s=u.reduce((f,p)=>this.format(f,p,r.lng,{...r,interpolationkey:i[1].trim()}),s.trim())),t=t.replace(i[0],s),this.regexp.lastIndex=0}return t}}function FS(e){let t=e.toLowerCase().trim();const n={};if(e.indexOf("(")>-1){const r=e.split("(");t=r[0].toLowerCase().trim();const i=r[1].substring(0,r[1].length-1);t==="currency"&&i.indexOf(":")<0?n.currency||(n.currency=i.trim()):t==="relativetime"&&i.indexOf(":")<0?n.range||(n.range=i.trim()):i.split(";").forEach(o=>{if(o){const[c,...u]=o.split(":"),d=u.join(":").trim().replace(/^'+|'+$/g,""),f=c.trim();n[f]||(n[f]=d),d==="false"&&(n[f]=!1),d==="true"&&(n[f]=!0),isNaN(d)||(n[f]=parseInt(d,10))}})}return{formatName:t,formatOptions:n}}function Wi(e){const t={};return function(r,i,s){const o=i+JSON.stringify(s);let c=t[o];return c||(c=e(Ra(i),s),t[o]=c),c(r)}}class US{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=hr.create("formatter"),this.options=t,this.formats={number:Wi((n,r)=>{const i=new Intl.NumberFormat(n,{...r});return s=>i.format(s)}),currency:Wi((n,r)=>{const i=new Intl.NumberFormat(n,{...r,style:"currency"});return s=>i.format(s)}),datetime:Wi((n,r)=>{const i=new Intl.DateTimeFormat(n,{...r});return s=>i.format(s)}),relativetime:Wi((n,r)=>{const i=new Intl.RelativeTimeFormat(n,{...r});return s=>i.format(s,r.range||"day")}),list:Wi((n,r)=>{const i=new Intl.ListFormat(n,{...r});return s=>i.format(s)})},this.init(t)}init(t){const r=(arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}}).interpolation;this.formatSeparator=r.formatSeparator?r.formatSeparator:r.formatSeparator||","}add(t,n){this.formats[t.toLowerCase().trim()]=n}addCached(t,n){this.formats[t.toLowerCase().trim()]=Wi(n)}format(t,n,r){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return n.split(this.formatSeparator).reduce((c,u)=>{const{formatName:d,formatOptions:f}=FS(u);if(this.formats[d]){let p=c;try{const l=i&&i.formatParams&&i.formatParams[i.interpolationkey]||{},v=l.locale||l.lng||i.locale||i.lng||r;p=this.formats[d](c,v,{...f,...i,...l})}catch(l){this.logger.warn(l)}return p}else this.logger.warn(`there was no format function for ${d}`);return c},t)}}function VS(e,t){e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)}class qS extends Oa{constructor(t,n,r){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};super(),this.backend=t,this.store=n,this.services=r,this.languageUtils=r.languageUtils,this.options=i,this.logger=hr.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=i.maxParallelReads||10,this.readingCalls=0,this.maxRetries=i.maxRetries>=0?i.maxRetries:5,this.retryTimeout=i.retryTimeout>=1?i.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(r,i.backend,i)}queueLoad(t,n,r,i){const s={},o={},c={},u={};return t.forEach(d=>{let f=!0;n.forEach(p=>{const l=`${d}|${p}`;!r.reload&&this.store.hasResourceBundle(d,p)?this.state[l]=2:this.state[l]<0||(this.state[l]===1?o[l]===void 0&&(o[l]=!0):(this.state[l]=1,f=!1,o[l]===void 0&&(o[l]=!0),s[l]===void 0&&(s[l]=!0),u[p]===void 0&&(u[p]=!0)))}),f||(c[d]=!0)}),(Object.keys(s).length||Object.keys(o).length)&&this.queue.push({pending:o,pendingCount:Object.keys(o).length,loaded:{},errors:[],callback:i}),{toLoad:Object.keys(s),pending:Object.keys(o),toLoadLanguages:Object.keys(c),toLoadNamespaces:Object.keys(u)}}loaded(t,n,r){const i=t.split("|"),s=i[0],o=i[1];n&&this.emit("failedLoading",s,o,n),r&&this.store.addResourceBundle(s,o,r,void 0,void 0,{skipCopy:!0}),this.state[t]=n?-1:2;const c={};this.queue.forEach(u=>{CS(u.loaded,[s],o),VS(u,t),n&&u.errors.push(n),u.pendingCount===0&&!u.done&&(Object.keys(u.loaded).forEach(d=>{c[d]||(c[d]={});const f=u.loaded[d];f.length&&f.forEach(p=>{c[d][p]===void 0&&(c[d][p]=!0)})}),u.done=!0,u.errors.length?u.callback(u.errors):u.callback())}),this.emit("loaded",c),this.queue=this.queue.filter(u=>!u.done)}read(t,n,r){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,o=arguments.length>5?arguments[5]:void 0;if(!t.length)return o(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:t,ns:n,fcName:r,tried:i,wait:s,callback:o});return}this.readingCalls++;const c=(d,f)=>{if(this.readingCalls--,this.waitingReads.length>0){const p=this.waitingReads.shift();this.read(p.lng,p.ns,p.fcName,p.tried,p.wait,p.callback)}if(d&&f&&i<this.maxRetries){setTimeout(()=>{this.read.call(this,t,n,r,i+1,s*2,o)},s);return}o(d,f)},u=this.backend[r].bind(this.backend);if(u.length===2){try{const d=u(t,n);d&&typeof d.then=="function"?d.then(f=>c(null,f)).catch(c):c(null,d)}catch(d){c(d)}return}return u(t,n,c)}prepareLoading(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),i&&i();typeof t=="string"&&(t=this.languageUtils.toResolveHierarchy(t)),typeof n=="string"&&(n=[n]);const s=this.queueLoad(t,n,r,i);if(!s.toLoad.length)return s.pending.length||i(),null;s.toLoad.forEach(o=>{this.loadOne(o)})}load(t,n,r){this.prepareLoading(t,n,{},r)}reload(t,n,r){this.prepareLoading(t,n,{reload:!0},r)}loadOne(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const r=t.split("|"),i=r[0],s=r[1];this.read(i,s,"read",void 0,void 0,(o,c)=>{o&&this.logger.warn(`${n}loading namespace ${s} for language ${i} failed`,o),!o&&c&&this.logger.log(`${n}loaded namespace ${s} for language ${i}`,c),this.loaded(t,o,c)})}saveMissing(t,n,r,i,s){let o=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},c=arguments.length>6&&arguments[6]!==void 0?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(n)){this.logger.warn(`did not save key "${r}" as the namespace "${n}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(r==null||r==="")){if(this.backend&&this.backend.create){const u={...o,isUpdate:s},d=this.backend.create.bind(this.backend);if(d.length<6)try{let f;d.length===5?f=d(t,n,r,i,u):f=d(t,n,r,i),f&&typeof f.then=="function"?f.then(p=>c(null,p)).catch(c):c(null,f)}catch(f){c(f)}else d(t,n,r,i,c,u)}!t||!t[0]||this.store.addResource(t[0],n,r,i)}}}function kp(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(t){let n={};if(typeof t[1]=="object"&&(n=t[1]),typeof t[1]=="string"&&(n.defaultValue=t[1]),typeof t[2]=="string"&&(n.tDescription=t[2]),typeof t[2]=="object"||typeof t[3]=="object"){const r=t[3]||t[2];Object.keys(r).forEach(i=>{n[i]=r[i]})}return n},interpolation:{escapeValue:!0,format:e=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function Op(e){return typeof e.ns=="string"&&(e.ns=[e.ns]),typeof e.fallbackLng=="string"&&(e.fallbackLng=[e.fallbackLng]),typeof e.fallbackNS=="string"&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function Da(){}function $S(e){Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(n=>{typeof e[n]=="function"&&(e[n]=e[n].bind(e))})}class eo extends Oa{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;if(super(),this.options=Op(t),this.services={},this.logger=hr,this.modules={external:[]},$S(this),n&&!this.isInitialized&&!t.isClone){if(!this.options.initImmediate)return this.init(t,n),this;setTimeout(()=>{this.init(t,n)},0)}}init(){var t=this;let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,typeof n=="function"&&(r=n,n={}),!n.defaultNS&&n.defaultNS!==!1&&n.ns&&(typeof n.ns=="string"?n.defaultNS=n.ns:n.ns.indexOf("translation")<0&&(n.defaultNS=n.ns[0]));const i=kp();this.options={...i,...this.options,...Op(n)},this.options.compatibilityAPI!=="v1"&&(this.options.interpolation={...i.interpolation,...this.options.interpolation}),n.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=n.keySeparator),n.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=n.nsSeparator);function s(f){return f?typeof f=="function"?new f:f:null}if(!this.options.isClone){this.modules.logger?hr.init(s(this.modules.logger),this.options):hr.init(null,this.options);let f;this.modules.formatter?f=this.modules.formatter:typeof Intl<"u"&&(f=US);const p=new Ap(this.options);this.store=new xp(this.options.resources,this.options);const l=this.services;l.logger=hr,l.resourceStore=this.store,l.languageUtils=p,l.pluralResolver=new LS(p,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),f&&(!this.options.interpolation.format||this.options.interpolation.format===i.interpolation.format)&&(l.formatter=s(f),l.formatter.init(l,this.options),this.options.interpolation.format=l.formatter.format.bind(l.formatter)),l.interpolator=new BS(this.options),l.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},l.backendConnector=new qS(s(this.modules.backend),l.resourceStore,l,this.options),l.backendConnector.on("*",function(v){for(var a=arguments.length,h=new Array(a>1?a-1:0),y=1;y<a;y++)h[y-1]=arguments[y];t.emit(v,...h)}),this.modules.languageDetector&&(l.languageDetector=s(this.modules.languageDetector),l.languageDetector.init&&l.languageDetector.init(l,this.options.detection,this.options)),this.modules.i18nFormat&&(l.i18nFormat=s(this.modules.i18nFormat),l.i18nFormat.init&&l.i18nFormat.init(this)),this.translator=new Ma(this.services,this.options),this.translator.on("*",function(v){for(var a=arguments.length,h=new Array(a>1?a-1:0),y=1;y<a;y++)h[y-1]=arguments[y];t.emit(v,...h)}),this.modules.external.forEach(v=>{v.init&&v.init(this)})}if(this.format=this.options.interpolation.format,r||(r=Da),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const f=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);f.length>0&&f[0]!=="dev"&&(this.options.lng=f[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(f=>{this[f]=function(){return t.store[f](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(f=>{this[f]=function(){return t.store[f](...arguments),t}});const u=Zs(),d=()=>{const f=(p,l)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),u.resolve(l),r(p,l)};if(this.languages&&this.options.compatibilityAPI!=="v1"&&!this.isInitialized)return f(null,this.t.bind(this));this.changeLanguage(this.options.lng,f)};return this.options.resources||!this.options.initImmediate?d():setTimeout(d,0),u}loadResources(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Da;const i=typeof t=="string"?t:this.language;if(typeof t=="function"&&(r=t),!this.options.resources||this.options.partialBundledLanguages){if(i&&i.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return r();const s=[],o=c=>{if(!c||c==="cimode")return;this.services.languageUtils.toResolveHierarchy(c).forEach(d=>{d!=="cimode"&&s.indexOf(d)<0&&s.push(d)})};i?o(i):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(u=>o(u)),this.options.preload&&this.options.preload.forEach(c=>o(c)),this.services.backendConnector.load(s,this.options.ns,c=>{!c&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),r(c)})}else r(null)}reloadResources(t,n,r){const i=Zs();return t||(t=this.languages),n||(n=this.options.ns),r||(r=Da),this.services.backendConnector.reload(t,n,s=>{i.resolve(),r(s)}),i}use(t){if(!t)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!t.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return t.type==="backend"&&(this.modules.backend=t),(t.type==="logger"||t.log&&t.warn&&t.error)&&(this.modules.logger=t),t.type==="languageDetector"&&(this.modules.languageDetector=t),t.type==="i18nFormat"&&(this.modules.i18nFormat=t),t.type==="postProcessor"&&Cp.addPostProcessor(t),t.type==="formatter"&&(this.modules.formatter=t),t.type==="3rdParty"&&this.modules.external.push(t),this}setResolvedLanguage(t){if(!(!t||!this.languages)&&!(["cimode","dev"].indexOf(t)>-1))for(let n=0;n<this.languages.length;n++){const r=this.languages[n];if(!(["cimode","dev"].indexOf(r)>-1)&&this.store.hasLanguageSomeTranslations(r)){this.resolvedLanguage=r;break}}}changeLanguage(t,n){var r=this;this.isLanguageChangingTo=t;const i=Zs();this.emit("languageChanging",t);const s=u=>{this.language=u,this.languages=this.services.languageUtils.toResolveHierarchy(u),this.resolvedLanguage=void 0,this.setResolvedLanguage(u)},o=(u,d)=>{d?(s(d),this.translator.changeLanguage(d),this.isLanguageChangingTo=void 0,this.emit("languageChanged",d),this.logger.log("languageChanged",d)):this.isLanguageChangingTo=void 0,i.resolve(function(){return r.t(...arguments)}),n&&n(u,function(){return r.t(...arguments)})},c=u=>{!t&&!u&&this.services.languageDetector&&(u=[]);const d=typeof u=="string"?u:this.services.languageUtils.getBestMatchFromCodes(u);d&&(this.language||s(d),this.translator.language||this.translator.changeLanguage(d),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(d)),this.loadResources(d,f=>{o(f,d)})};return!t&&this.services.languageDetector&&!this.services.languageDetector.async?c(this.services.languageDetector.detect()):!t&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(c):this.services.languageDetector.detect(c):c(t),i}getFixedT(t,n,r){var i=this;const s=function(o,c){let u;if(typeof c!="object"){for(var d=arguments.length,f=new Array(d>2?d-2:0),p=2;p<d;p++)f[p-2]=arguments[p];u=i.options.overloadTranslationOptionHandler([o,c].concat(f))}else u={...c};u.lng=u.lng||s.lng,u.lngs=u.lngs||s.lngs,u.ns=u.ns||s.ns,u.keyPrefix=u.keyPrefix||r||s.keyPrefix;const l=i.options.keySeparator||".";let v;return u.keyPrefix&&Array.isArray(o)?v=o.map(a=>`${u.keyPrefix}${l}${a}`):v=u.keyPrefix?`${u.keyPrefix}${l}${o}`:o,i.t(v,u)};return typeof t=="string"?s.lng=t:s.lngs=t,s.ns=n,s.keyPrefix=r,s}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(t){this.options.defaultNS=t}hasLoadedNamespace(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const r=n.lng||this.resolvedLanguage||this.languages[0],i=this.options?this.options.fallbackLng:!1,s=this.languages[this.languages.length-1];if(r.toLowerCase()==="cimode")return!0;const o=(c,u)=>{const d=this.services.backendConnector.state[`${c}|${u}`];return d===-1||d===2};if(n.precheck){const c=n.precheck(this,o);if(c!==void 0)return c}return!!(this.hasResourceBundle(r,t)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||o(r,t)&&(!i||o(s,t)))}loadNamespaces(t,n){const r=Zs();return this.options.ns?(typeof t=="string"&&(t=[t]),t.forEach(i=>{this.options.ns.indexOf(i)<0&&this.options.ns.push(i)}),this.loadResources(i=>{r.resolve(),n&&n(i)}),r):(n&&n(),Promise.resolve())}loadLanguages(t,n){const r=Zs();typeof t=="string"&&(t=[t]);const i=this.options.preload||[],s=t.filter(o=>i.indexOf(o)<0&&this.services.languageUtils.isSupportedCode(o));return s.length?(this.options.preload=i.concat(s),this.loadResources(o=>{r.resolve(),n&&n(o)}),r):(n&&n(),Promise.resolve())}dir(t){if(t||(t=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!t)return"rtl";const n=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],r=this.services&&this.services.languageUtils||new Ap(kp());return n.indexOf(r.getLanguagePartFromCode(t))>-1||t.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;return new eo(t,n)}cloneInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Da;const r=t.forkResourceStore;r&&delete t.forkResourceStore;const i={...this.options,...t,isClone:!0},s=new eo(i);return(t.debug!==void 0||t.prefix!==void 0)&&(s.logger=s.logger.clone(t)),["store","services","language"].forEach(c=>{s[c]=this[c]}),s.services={...this.services},s.services.utils={hasLoadedNamespace:s.hasLoadedNamespace.bind(s)},r&&(s.store=new xp(this.store.data,i),s.services.resourceStore=s.store),s.translator=new Ma(s.services,i),s.translator.on("*",function(c){for(var u=arguments.length,d=new Array(u>1?u-1:0),f=1;f<u;f++)d[f-1]=arguments[f];s.emit(c,...d)}),s.init(i,n),s.translator.options=i,s.translator.backendConnector.services.utils={hasLoadedNamespace:s.hasLoadedNamespace.bind(s)},s}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const Gt=eo.createInstance();Gt.createInstance=eo.createInstance,Gt.createInstance,Gt.dir,Gt.init,Gt.loadResources,Gt.reloadResources,Gt.use,Gt.changeLanguage,Gt.getFixedT,Gt.t,Gt.exists,Gt.setDefaultNamespace,Gt.hasLoadedNamespace,Gt.loadNamespaces,Gt.loadLanguages;const Ki=(e,t="EUR")=>new Intl.NumberFormat(Gt.language,{style:"currency",currency:t??"EUR"}).format(e/100),GS=e=>0 .toLocaleString(Gt.language,{style:"currency",currency:e??"EUR",minimumFractionDigits:0,maximumFractionDigits:0}).replace(/\d/g,"").trim(),HS=e=>{window.parent.postMessage(e,"*")},Np=(e,t)=>Math.abs(Math.round((t.getTime()-e.getTime())/(1e3*3600*24))),Rp=(e,t)=>Math.abs(Math.round((t.getTime()-e.getTime())/(1e3*3600*24*7))),Mp=(e,t)=>Math.abs(Math.round((t.getTime()-e.getTime())/(1e3*3600*24*365.25)));function YS(e){const{errorToast:t}=qt(),[n,r]=I.useState(),i=Ct(),s=()=>{const c={type:e.type??un.PORTAL,api_key:e.apiKey,shop_uuid:e.shopUuid,contact_uuid:e.contactUuid};return e.cameraFacingMode&&(c.camera_facing_mode=e.cameraFacingMode),e.amountInCents&&(c.amount_in_cents=e.amountInCents),e.allowMultipleGiftcards&&(c.allow_multiple_giftcards=e.allowMultipleGiftcards),e.enableRegistration&&(c.enable_registration=e.enableRegistration),e.enableEmailIdentification&&(c.enable_email_identification=e.enableEmailIdentification),e.enableOnScreenKeyboard&&(c.enable_on_screen_keyboard=e.enableOnScreenKeyboard),e.primaryIdentificationMethod&&(c.primary_identification_method=e.primaryIdentificationMethod),c},o=()=>{i.post("/",s(),{baseURL:`${e.host}/api/v1/portal-sessions`,headers:{Authorization:`Bearer ${e.apiKey}`}}).then(c=>{const u=new ua;u.type=c.data.data.type,u.uuid=c.data.data.uuid,u.contact=c.data.data.contact,u.currency=c.data.data.currency,u.events=c.data.data.events,u.inputData=c.data.data.input_data,u.loyaltyProgram=c.data.data.loyalty_program,u.results=c.data.data.results,r(u)}).catch(t)};return I.useEffect(()=>o(),[]),{portalSession:n}}var Dp={exports:{}};/*!
50
+ `):" "+Zh(s[0]):"as no adapter specified";throw new $e("There is no suitable adapter to dispatch the request "+o,"ERR_NOT_SUPPORT")}return r},adapters:nl};function rl(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Gi(null,e)}function ep(e){return rl(e),e.headers=_n.from(e.headers),e.data=Xu.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Xh.getAdapter(e.adapter||Hs.adapter)(e).then(function(r){return rl(e),r.data=Xu.call(e,e.transformResponse,r),r.headers=_n.from(r.headers),r},function(r){return Vh(r)||(rl(e),r&&r.response&&(r.response.data=Xu.call(e,e.transformResponse,r.response),r.response.headers=_n.from(r.response.headers))),Promise.reject(r)})}const tp="1.7.4",il={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{il[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const np={};il.transitional=function(t,n,r){function i(s,o){return"[Axios v"+tp+"] Transitional option '"+s+"'"+o+(r?". "+r:"")}return(s,o,c)=>{if(t===!1)throw new $e(i(o," has been removed"+(n?" in "+n:"")),$e.ERR_DEPRECATED);return n&&!np[o]&&(np[o]=!0,console.warn(i(o," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(s,o,c):!0}};function FE(e,t,n){if(typeof e!="object")throw new $e("options must be an object",$e.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let i=r.length;for(;i-- >0;){const s=r[i],o=t[s];if(o){const c=e[s],u=c===void 0||o(c,s,e);if(u!==!0)throw new $e("option "+s+" must be "+u,$e.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new $e("Unknown option "+s,$e.ERR_BAD_OPTION)}}const sl={assertOptions:FE,validators:il},Yr=sl.validators;class xi{constructor(t){this.defaults=t,this.interceptors={request:new Lh,response:new Lh}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let i;Error.captureStackTrace?Error.captureStackTrace(i={}):i=new Error;const s=i.stack?i.stack.replace(/^.+\n/,""):"";try{r.stack?s&&!String(r.stack).endsWith(s.replace(/^.+\n.+\n/,""))&&(r.stack+=`
51
+ `+s):r.stack=s}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Si(this.defaults,n);const{transitional:r,paramsSerializer:i,headers:s}=n;r!==void 0&&sl.assertOptions(r,{silentJSONParsing:Yr.transitional(Yr.boolean),forcedJSONParsing:Yr.transitional(Yr.boolean),clarifyTimeoutError:Yr.transitional(Yr.boolean)},!1),i!=null&&(de.isFunction(i)?n.paramsSerializer={serialize:i}:sl.assertOptions(i,{encode:Yr.function,serialize:Yr.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let o=s&&de.merge(s.common,s[n.method]);s&&de.forEach(["delete","get","head","post","put","patch","common"],a=>{delete s[a]}),n.headers=_n.concat(o,s);const c=[];let u=!0;this.interceptors.request.forEach(function(h){typeof h.runWhen=="function"&&h.runWhen(n)===!1||(u=u&&h.synchronous,c.unshift(h.fulfilled,h.rejected))});const d=[];this.interceptors.response.forEach(function(h){d.push(h.fulfilled,h.rejected)});let f,p=0,l;if(!u){const a=[ep.bind(this),void 0];for(a.unshift.apply(a,c),a.push.apply(a,d),l=a.length,f=Promise.resolve(n);p<l;)f=f.then(a[p++],a[p++]);return f}l=c.length;let v=n;for(p=0;p<l;){const a=c[p++],h=c[p++];try{v=a(v)}catch(y){h.call(this,y);break}}try{f=ep.call(this,v)}catch(a){return Promise.reject(a)}for(p=0,l=d.length;p<l;)f=f.then(d[p++],d[p++]);return f}getUri(t){t=Si(this.defaults,t);const n=Hh(t.baseURL,t.url);return jh(n,t.params,t.paramsSerializer)}}de.forEach(["delete","get","head","options"],function(t){xi.prototype[t]=function(n,r){return this.request(Si(r||{},{method:t,url:n,data:(r||{}).data}))}}),de.forEach(["post","put","patch"],function(t){function n(r){return function(s,o,c){return this.request(Si(c||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:s,data:o}))}}xi.prototype[t]=n(),xi.prototype[t+"Form"]=n(!0)});class ol{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(s){n=s});const r=this;this.promise.then(i=>{if(!r._listeners)return;let s=r._listeners.length;for(;s-- >0;)r._listeners[s](i);r._listeners=null}),this.promise.then=i=>{let s;const o=new Promise(c=>{r.subscribe(c),s=c}).then(i);return o.cancel=function(){r.unsubscribe(s)},o},t(function(s,o,c){r.reason||(r.reason=new Gi(s,o,c),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}static source(){let t;return{token:new ol(function(i){t=i}),cancel:t}}}function UE(e){return function(n){return e.apply(null,n)}}function VE(e){return de.isObject(e)&&e.isAxiosError===!0}const al={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(al).forEach(([e,t])=>{al[t]=e});function rp(e){const t=new xi(e),n=wh(xi.prototype.request,t);return de.extend(n,xi.prototype,t,{allOwnKeys:!0}),de.extend(n,t,null,{allOwnKeys:!0}),n.create=function(i){return rp(Si(e,i))},n}const Vt=rp(Hs);Vt.Axios=xi,Vt.CanceledError=Gi,Vt.CancelToken=ol,Vt.isCancel=Vh,Vt.VERSION=tp,Vt.toFormData=ya,Vt.AxiosError=$e,Vt.Cancel=Vt.CanceledError,Vt.all=function(t){return Promise.all(t)},Vt.spread=UE,Vt.isAxiosError=VE,Vt.mergeConfig=Si,Vt.AxiosHeaders=_n,Vt.formToJSON=e=>Fh(de.isHTMLForm(e)?new FormData(e):e),Vt.getAdapter=Xh.getAdapter,Vt.HttpStatusCode=al,Vt.default=Vt;const qE={UNAUTHORIZED:401,MAINTENANCE_MODE:503},$E=e=>{var n,r;const t=(n=e.response)==null?void 0:n.status;if(t&&t!==qE.UNAUTHORIZED){const i=(r=e.response)==null?void 0:r.data;console.table(i)}return Promise.reject(e)};function GE(){const e=I.useContext(Ou);if(!e)throw new Error("Only use 'useApiContext' within a ApiContext Provider");return e}function At(){const{apiKey:e,host:t}=GE(),n=(c,u={},d={})=>o("GET",c,u,d),r=(c,u={},d={})=>o("POST",c,u,d),i=(c,u={},d={})=>o("PUT",c,u,d),s=(c,u={})=>o("DELETE",c,u),o=(c,u,d={},f={})=>{const p=Vt.create({baseURL:`${t??"https://api.piggy.eu"}/api/v1/portal-sessions`,headers:{Authorization:`Bearer ${e}`},...f});return p.interceptors.response.use(void 0,$E),p.request({method:c,url:u,params:c=="GET"?d:{},data:d})};return{get:n,post:r,put:i,destroy:s}}function ip(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=ip(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Wr(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=ip(e))&&(r&&(r+=" "),r+=t);return r}const Ws=e=>typeof e=="number"&&!isNaN(e),Ci=e=>typeof e=="string",Dn=e=>typeof e=="function",Sa=e=>Ci(e)||Dn(e)?e:null,cl=e=>I.isValidElement(e)||Ci(e)||Dn(e)||Ws(e);function HE(e,t,n){n===void 0&&(n=300);const{scrollHeight:r,style:i}=e;requestAnimationFrame(()=>{i.minHeight="initial",i.height=r+"px",i.transition=`all ${n}ms`,requestAnimationFrame(()=>{i.height="0",i.padding="0",i.margin="0",setTimeout(t,n)})})}function xa(e){let{enter:t,exit:n,appendPosition:r=!1,collapse:i=!0,collapseDuration:s=300}=e;return function(o){let{children:c,position:u,preventExitTransition:d,done:f,nodeRef:p,isIn:l,playToast:v}=o;const a=r?`${t}--${u}`:t,h=r?`${n}--${u}`:n,y=I.useRef(0);return I.useLayoutEffect(()=>{const g=p.current,b=a.split(" "),w=E=>{E.target===p.current&&(v(),g.removeEventListener("animationend",w),g.removeEventListener("animationcancel",w),y.current===0&&E.type!=="animationcancel"&&g.classList.remove(...b))};g.classList.add(...b),g.addEventListener("animationend",w),g.addEventListener("animationcancel",w)},[]),I.useEffect(()=>{const g=p.current,b=()=>{g.removeEventListener("animationend",b),i?HE(g,f,s):f()};l||(d?b():(y.current=1,g.className+=` ${h}`,g.addEventListener("animationend",b)))},[l]),I.createElement(I.Fragment,null,c)}}function sp(e,t){return e!=null?{content:e.content,containerId:e.props.containerId,id:e.props.toastId,theme:e.props.theme,type:e.props.type,data:e.props.data||{},isLoading:e.props.isLoading,icon:e.props.icon,status:t}:{}}const yn=new Map;let Ks=[];const ul=new Set,YE=e=>ul.forEach(t=>t(e)),op=()=>yn.size>0;function ap(e,t){var n;if(t)return!((n=yn.get(t))==null||!n.isToastActive(e));let r=!1;return yn.forEach(i=>{i.isToastActive(e)&&(r=!0)}),r}function cp(e,t){cl(e)&&(op()||Ks.push({content:e,options:t}),yn.forEach(n=>{n.buildToast(e,t)}))}function up(e,t){yn.forEach(n=>{t!=null&&t!=null&&t.containerId?(t==null?void 0:t.containerId)===n.id&&n.toggle(e,t==null?void 0:t.id):n.toggle(e,t==null?void 0:t.id)})}function WE(e){const{subscribe:t,getSnapshot:n,setProps:r}=I.useRef(function(s){const o=s.containerId||1;return{subscribe(c){const u=function(f,p,l){let v=1,a=0,h=[],y=[],g=[],b=p;const w=new Map,E=new Set,S=()=>{g=Array.from(w.values()),E.forEach(O=>O())},A=O=>{y=O==null?[]:y.filter(M=>M!==O),S()},T=O=>{const{toastId:M,onOpen:D,updateId:F,children:V}=O.props,G=F==null;O.staleId&&w.delete(O.staleId),w.set(M,O),y=[...y,O.props.toastId].filter(U=>U!==O.staleId),S(),l(sp(O,G?"added":"updated")),G&&Dn(D)&&D(I.isValidElement(V)&&V.props)};return{id:f,props:b,observe:O=>(E.add(O),()=>E.delete(O)),toggle:(O,M)=>{w.forEach(D=>{M!=null&&M!==D.props.toastId||Dn(D.toggle)&&D.toggle(O)})},removeToast:A,toasts:w,clearQueue:()=>{a-=h.length,h=[]},buildToast:(O,M)=>{if((he=>{let{containerId:ue,toastId:ye,updateId:pe}=he;const q=ue?ue!==f:f!==1,$=w.has(ye)&&pe==null;return q||$})(M))return;const{toastId:D,updateId:F,data:V,staleId:G,delay:U}=M,R=()=>{A(D)},L=F==null;L&&a++;const Y={...b,style:b.toastStyle,key:v++,...Object.fromEntries(Object.entries(M).filter(he=>{let[ue,ye]=he;return ye!=null})),toastId:D,updateId:F,data:V,closeToast:R,isIn:!1,className:Sa(M.className||b.toastClassName),bodyClassName:Sa(M.bodyClassName||b.bodyClassName),progressClassName:Sa(M.progressClassName||b.progressClassName),autoClose:!M.isLoading&&(z=M.autoClose,ee=b.autoClose,z===!1||Ws(z)&&z>0?z:ee),deleteToast(){const he=w.get(D),{onClose:ue,children:ye}=he.props;Dn(ue)&&ue(I.isValidElement(ye)&&ye.props),l(sp(he,"removed")),w.delete(D),a--,a<0&&(a=0),h.length>0?T(h.shift()):S()}};var z,ee;Y.closeButton=b.closeButton,M.closeButton===!1||cl(M.closeButton)?Y.closeButton=M.closeButton:M.closeButton===!0&&(Y.closeButton=!cl(b.closeButton)||b.closeButton);let te=O;I.isValidElement(O)&&!Ci(O.type)?te=I.cloneElement(O,{closeToast:R,toastProps:Y,data:V}):Dn(O)&&(te=O({closeToast:R,toastProps:Y,data:V}));const re={content:te,props:Y,staleId:G};b.limit&&b.limit>0&&a>b.limit&&L?h.push(re):Ws(U)?setTimeout(()=>{T(re)},U):T(re)},setProps(O){b=O},setToggle:(O,M)=>{w.get(O).toggle=M},isToastActive:O=>y.some(M=>M===O),getSnapshot:()=>b.newestOnTop?g.reverse():g}}(o,s,YE);yn.set(o,u);const d=u.observe(c);return Ks.forEach(f=>cp(f.content,f.options)),Ks=[],()=>{d(),yn.delete(o)}},setProps(c){var u;(u=yn.get(o))==null||u.setProps(c)},getSnapshot(){var c;return(c=yn.get(o))==null?void 0:c.getSnapshot()}}}(e)).current;r(e);const i=I.useSyncExternalStore(t,n,n);return{getToastToRender:function(s){if(!i)return[];const o=new Map;return i.forEach(c=>{const{position:u}=c.props;o.has(u)||o.set(u,[]),o.get(u).push(c)}),Array.from(o,c=>s(c[0],c[1]))},isToastActive:ap,count:i==null?void 0:i.length}}function KE(e){const[t,n]=I.useState(!1),[r,i]=I.useState(!1),s=I.useRef(null),o=I.useRef({start:0,delta:0,removalDistance:0,canCloseOnClick:!0,canDrag:!1,didMove:!1}).current,{autoClose:c,pauseOnHover:u,closeToast:d,onClick:f,closeOnClick:p}=e;var l,v;function a(){n(!0)}function h(){n(!1)}function y(w){const E=s.current;o.canDrag&&E&&(o.didMove=!0,t&&h(),o.delta=e.draggableDirection==="x"?w.clientX-o.start:w.clientY-o.start,o.start!==w.clientX&&(o.canCloseOnClick=!1),E.style.transform=`translate3d(${e.draggableDirection==="x"?`${o.delta}px, var(--y)`:`0, calc(${o.delta}px + var(--y))`},0)`,E.style.opacity=""+(1-Math.abs(o.delta/o.removalDistance)))}function g(){document.removeEventListener("pointermove",y),document.removeEventListener("pointerup",g);const w=s.current;if(o.canDrag&&o.didMove&&w){if(o.canDrag=!1,Math.abs(o.delta)>o.removalDistance)return i(!0),e.closeToast(),void e.collapseAll();w.style.transition="transform 0.2s, opacity 0.2s",w.style.removeProperty("transform"),w.style.removeProperty("opacity")}}(v=yn.get((l={id:e.toastId,containerId:e.containerId,fn:n}).containerId||1))==null||v.setToggle(l.id,l.fn),I.useEffect(()=>{if(e.pauseOnFocusLoss)return document.hasFocus()||h(),window.addEventListener("focus",a),window.addEventListener("blur",h),()=>{window.removeEventListener("focus",a),window.removeEventListener("blur",h)}},[e.pauseOnFocusLoss]);const b={onPointerDown:function(w){if(e.draggable===!0||e.draggable===w.pointerType){o.didMove=!1,document.addEventListener("pointermove",y),document.addEventListener("pointerup",g);const E=s.current;o.canCloseOnClick=!0,o.canDrag=!0,E.style.transition="none",e.draggableDirection==="x"?(o.start=w.clientX,o.removalDistance=E.offsetWidth*(e.draggablePercent/100)):(o.start=w.clientY,o.removalDistance=E.offsetHeight*(e.draggablePercent===80?1.5*e.draggablePercent:e.draggablePercent)/100)}},onPointerUp:function(w){const{top:E,bottom:S,left:A,right:T}=s.current.getBoundingClientRect();w.nativeEvent.type!=="touchend"&&e.pauseOnHover&&w.clientX>=A&&w.clientX<=T&&w.clientY>=E&&w.clientY<=S?h():a()}};return c&&u&&(b.onMouseEnter=h,e.stacked||(b.onMouseLeave=a)),p&&(b.onClick=w=>{f&&f(w),o.canCloseOnClick&&d()}),{playToast:a,pauseToast:h,isRunning:t,preventExitTransition:r,toastRef:s,eventHandlers:b}}function zE(e){let{delay:t,isRunning:n,closeToast:r,type:i="default",hide:s,className:o,style:c,controlledProgress:u,progress:d,rtl:f,isIn:p,theme:l}=e;const v=s||u&&d===0,a={...c,animationDuration:`${t}ms`,animationPlayState:n?"running":"paused"};u&&(a.transform=`scaleX(${d})`);const h=Wr("Toastify__progress-bar",u?"Toastify__progress-bar--controlled":"Toastify__progress-bar--animated",`Toastify__progress-bar-theme--${l}`,`Toastify__progress-bar--${i}`,{"Toastify__progress-bar--rtl":f}),y=Dn(o)?o({rtl:f,type:i,defaultClassName:h}):Wr(h,o),g={[u&&d>=1?"onTransitionEnd":"onAnimationEnd"]:u&&d<1?null:()=>{p&&r()}};return I.createElement("div",{className:"Toastify__progress-bar--wrp","data-hidden":v},I.createElement("div",{className:`Toastify__progress-bar--bg Toastify__progress-bar-theme--${l} Toastify__progress-bar--${i}`}),I.createElement("div",{role:"progressbar","aria-hidden":v?"true":"false","aria-label":"notification timer",className:y,style:a,...g}))}let QE=1;const lp=()=>""+QE++;function JE(e){return e&&(Ci(e.toastId)||Ws(e.toastId))?e.toastId:lp()}function zs(e,t){return cp(e,t),t.toastId}function Ca(e,t){return{...t,type:t&&t.type||e,toastId:JE(t)}}function _a(e){return(t,n)=>zs(t,Ca(e,n))}function mt(e,t){return zs(e,Ca("default",t))}mt.loading=(e,t)=>zs(e,Ca("default",{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1,...t})),mt.promise=function(e,t,n){let r,{pending:i,error:s,success:o}=t;i&&(r=Ci(i)?mt.loading(i,n):mt.loading(i.render,{...n,...i}));const c={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null},u=(f,p,l)=>{if(p==null)return void mt.dismiss(r);const v={type:f,...c,...n,data:l},a=Ci(p)?{render:p}:p;return r?mt.update(r,{...v,...a}):mt(a.render,{...v,...a}),l},d=Dn(e)?e():e;return d.then(f=>u("success",o,f)).catch(f=>u("error",s,f)),d},mt.success=_a("success"),mt.info=_a("info"),mt.error=_a("error"),mt.warning=_a("warning"),mt.warn=mt.warning,mt.dark=(e,t)=>zs(e,Ca("default",{theme:"dark",...t})),mt.dismiss=function(e){(function(t){var n;if(op()){if(t==null||Ci(n=t)||Ws(n))yn.forEach(r=>{r.removeToast(t)});else if(t&&("containerId"in t||"id"in t)){const r=yn.get(t.containerId);r?r.removeToast(t.id):yn.forEach(i=>{i.removeToast(t.id)})}}else Ks=Ks.filter(r=>t!=null&&r.options.toastId!==t)})(e)},mt.clearWaitingQueue=function(e){e===void 0&&(e={}),yn.forEach(t=>{!t.props.limit||e.containerId&&t.id!==e.containerId||t.clearQueue()})},mt.isActive=ap,mt.update=function(e,t){t===void 0&&(t={});const n=((r,i)=>{var s;let{containerId:o}=i;return(s=yn.get(o||1))==null?void 0:s.toasts.get(r)})(e,t);if(n){const{props:r,content:i}=n,s={delay:100,...r,...t,toastId:t.toastId||e,updateId:lp()};s.toastId!==e&&(s.staleId=e);const o=s.render||i;delete s.render,zs(o,s)}},mt.done=e=>{mt.update(e,{progress:1})},mt.onChange=function(e){return ul.add(e),()=>{ul.delete(e)}},mt.play=e=>up(!0,e),mt.pause=e=>up(!1,e);const ZE=typeof window<"u"?I.useLayoutEffect:I.useEffect,Aa=e=>{let{theme:t,type:n,isLoading:r,...i}=e;return I.createElement("svg",{viewBox:"0 0 24 24",width:"100%",height:"100%",fill:t==="colored"?"currentColor":`var(--toastify-icon-color-${n})`,...i})},ll={info:function(e){return I.createElement(Aa,{...e},I.createElement("path",{d:"M12 0a12 12 0 1012 12A12.013 12.013 0 0012 0zm.25 5a1.5 1.5 0 11-1.5 1.5 1.5 1.5 0 011.5-1.5zm2.25 13.5h-4a1 1 0 010-2h.75a.25.25 0 00.25-.25v-4.5a.25.25 0 00-.25-.25h-.75a1 1 0 010-2h1a2 2 0 012 2v4.75a.25.25 0 00.25.25h.75a1 1 0 110 2z"}))},warning:function(e){return I.createElement(Aa,{...e},I.createElement("path",{d:"M23.32 17.191L15.438 2.184C14.728.833 13.416 0 11.996 0c-1.42 0-2.733.833-3.443 2.184L.533 17.448a4.744 4.744 0 000 4.368C1.243 23.167 2.555 24 3.975 24h16.05C22.22 24 24 22.044 24 19.632c0-.904-.251-1.746-.68-2.44zm-9.622 1.46c0 1.033-.724 1.823-1.698 1.823s-1.698-.79-1.698-1.822v-.043c0-1.028.724-1.822 1.698-1.822s1.698.79 1.698 1.822v.043zm.039-12.285l-.84 8.06c-.057.581-.408.943-.897.943-.49 0-.84-.367-.896-.942l-.84-8.065c-.057-.624.25-1.095.779-1.095h1.91c.528.005.84.476.784 1.1z"}))},success:function(e){return I.createElement(Aa,{...e},I.createElement("path",{d:"M12 0a12 12 0 1012 12A12.014 12.014 0 0012 0zm6.927 8.2l-6.845 9.289a1.011 1.011 0 01-1.43.188l-4.888-3.908a1 1 0 111.25-1.562l4.076 3.261 6.227-8.451a1 1 0 111.61 1.183z"}))},error:function(e){return I.createElement(Aa,{...e},I.createElement("path",{d:"M11.983 0a12.206 12.206 0 00-8.51 3.653A11.8 11.8 0 000 12.207 11.779 11.779 0 0011.8 24h.214A12.111 12.111 0 0024 11.791 11.766 11.766 0 0011.983 0zM10.5 16.542a1.476 1.476 0 011.449-1.53h.027a1.527 1.527 0 011.523 1.47 1.475 1.475 0 01-1.449 1.53h-.027a1.529 1.529 0 01-1.523-1.47zM11 12.5v-6a1 1 0 012 0v6a1 1 0 11-2 0z"}))},spinner:function(){return I.createElement("div",{className:"Toastify__spinner"})}},XE=e=>{const{isRunning:t,preventExitTransition:n,toastRef:r,eventHandlers:i,playToast:s}=KE(e),{closeButton:o,children:c,autoClose:u,onClick:d,type:f,hideProgressBar:p,closeToast:l,transition:v,position:a,className:h,style:y,bodyClassName:g,bodyStyle:b,progressClassName:w,progressStyle:E,updateId:S,role:A,progress:T,rtl:O,toastId:M,deleteToast:D,isIn:F,isLoading:V,closeOnClick:G,theme:U}=e,R=Wr("Toastify__toast",`Toastify__toast-theme--${U}`,`Toastify__toast--${f}`,{"Toastify__toast--rtl":O},{"Toastify__toast--close-on-click":G}),L=Dn(h)?h({rtl:O,position:a,type:f,defaultClassName:R}):Wr(R,h),Y=function(re){let{theme:he,type:ue,isLoading:ye,icon:pe}=re,q=null;const $={theme:he,type:ue};return pe===!1||(Dn(pe)?q=pe({...$,isLoading:ye}):I.isValidElement(pe)?q=I.cloneElement(pe,$):ye?q=ll.spinner():(Q=>Q in ll)(ue)&&(q=ll[ue]($))),q}(e),z=!!T||!u,ee={closeToast:l,type:f,theme:U};let te=null;return o===!1||(te=Dn(o)?o(ee):I.isValidElement(o)?I.cloneElement(o,ee):function(re){let{closeToast:he,theme:ue,ariaLabel:ye="close"}=re;return I.createElement("button",{className:`Toastify__close-button Toastify__close-button--${ue}`,type:"button",onClick:pe=>{pe.stopPropagation(),he(pe)},"aria-label":ye},I.createElement("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},I.createElement("path",{fillRule:"evenodd",d:"M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z"})))}(ee)),I.createElement(v,{isIn:F,done:D,position:a,preventExitTransition:n,nodeRef:r,playToast:s},I.createElement("div",{id:M,onClick:d,"data-in":F,className:L,...i,style:y,ref:r},I.createElement("div",{...F&&{role:A},className:Dn(g)?g({type:f}):Wr("Toastify__toast-body",g),style:b},Y!=null&&I.createElement("div",{className:Wr("Toastify__toast-icon",{"Toastify--animate-icon Toastify__zoom-enter":!V})},Y),I.createElement("div",null,c)),te,I.createElement(zE,{...S&&!z?{key:`pb-${S}`}:{},rtl:O,theme:U,delay:u,isRunning:t,isIn:F,closeToast:l,hide:p,type:f,style:E,className:w,controlledProgress:z,progress:T||0})))},Ta=function(e,t){return t===void 0&&(t=!1),{enter:`Toastify--animate Toastify__${e}-enter`,exit:`Toastify--animate Toastify__${e}-exit`,appendPosition:t}},eS=xa(Ta("bounce",!0));xa(Ta("slide",!0)),xa(Ta("zoom")),xa(Ta("flip"));const tS={position:"top-right",transition:eS,autoClose:5e3,closeButton:!0,pauseOnHover:!0,pauseOnFocusLoss:!0,draggable:"touch",draggablePercent:80,draggableDirection:"x",role:"alert",theme:"light"};function nS(e){let t={...tS,...e};const n=e.stacked,[r,i]=I.useState(!0),s=I.useRef(null),{getToastToRender:o,isToastActive:c,count:u}=WE(t),{className:d,style:f,rtl:p,containerId:l}=t;function v(h){const y=Wr("Toastify__toast-container",`Toastify__toast-container--${h}`,{"Toastify__toast-container--rtl":p});return Dn(d)?d({position:h,rtl:p,defaultClassName:y}):Wr(y,Sa(d))}function a(){n&&(i(!0),mt.play())}return ZE(()=>{if(n){var h;const y=s.current.querySelectorAll('[data-in="true"]'),g=12,b=(h=t.position)==null?void 0:h.includes("top");let w=0,E=0;Array.from(y).reverse().forEach((S,A)=>{const T=S;T.classList.add("Toastify__toast--stacked"),A>0&&(T.dataset.collapsed=`${r}`),T.dataset.pos||(T.dataset.pos=b?"top":"bot");const O=w*(r?.2:1)+(r?0:g*A);T.style.setProperty("--y",`${b?O:-1*O}px`),T.style.setProperty("--g",`${g}`),T.style.setProperty("--s",""+(1-(r?E:0))),w+=T.offsetHeight,E+=.025})}},[r,u,n]),I.createElement("div",{ref:s,className:"Toastify",id:l,onMouseEnter:()=>{n&&(i(!1),mt.pause())},onMouseLeave:a},o((h,y)=>{const g=y.length?{...f}:{...f,pointerEvents:"none"};return I.createElement("div",{className:v(h),style:g,key:`container-${h}`},y.map(b=>{let{content:w,props:E}=b;return I.createElement(XE,{...E,stacked:n,collapseAll:a,isIn:c(E.toastId,E.containerId),style:E.style,key:`toast-${E.key}`},w)}))}))}const rS="data:image/svg+xml,%3csvg%20width='32'%20height='32'%20viewBox='0%200%2032%2032'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_15_20)'%3e%3crect%20width='32'%20height='32'%20rx='4'%20fill='%23E7FBF4'/%3e%3cpath%20d='M10.6668%2017.3333L14.6668%2020L21.3335%2012'%20stroke='%23039855'%20stroke-width='1.6875'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_15_20'%3e%3cpath%20d='M0%2016C0%207.16344%207.16344%200%2016%200V0C24.8366%200%2032%207.16344%2032%2016V16C32%2024.8366%2024.8366%2032%2016%2032V32C7.16344%2032%200%2024.8366%200%2016V16Z'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",iS="data:image/svg+xml,%3csvg%20width='32'%20height='32'%20viewBox='0%200%2032%2032'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_17_95)'%3e%3crect%20width='32'%20height='32'%20rx='4'%20fill='%23FEF3F2'/%3e%3cpath%20d='M12.0003%2012L20.0003%2020M12.0003%2020L20.0003%2012'%20stroke='%23E02731'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_17_95'%3e%3cpath%20d='M0%2016C0%207.16344%207.16344%200%2016%200V0C24.8366%200%2032%207.16344%2032%2016V16C32%2024.8366%2024.8366%2032%2016%2032V32C7.16344%2032%200%2024.8366%200%2016V16Z'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",sS="data:image/svg+xml,%3csvg%20width='32'%20height='32'%20viewBox='0%200%2032%2032'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_17_99)'%3e%3crect%20width='32'%20height='32'%20rx='4'%20fill='%23FFFAEB'/%3e%3cpath%20d='M16.0002%2017.3333V13.3333M16.0002%2020V20.0067M23.0353%2019.3333L17.942%2010.456C17.0833%208.95867%2014.9167%208.95867%2014.058%2010.456L8.96533%2019.3333C8.11266%2020.8187%209.18933%2022.6667%2010.9073%2022.6667H21.0933C22.8107%2022.6667%2023.8873%2020.8187%2023.0353%2019.3333Z'%20stroke='%23CFAA25'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_17_99'%3e%3cpath%20d='M0%2016C0%207.16344%207.16344%200%2016%200C24.8366%200%2032%207.16344%2032%2016C32%2024.8366%2024.8366%2032%2016%2032C7.16344%2032%200%2024.8366%200%2016Z'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e";function oS(){if(console&&console.warn){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];typeof t[0]=="string"&&(t[0]=`react-i18next:: ${t[0]}`),console.warn(...t)}}const dp={};function dl(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];typeof t[0]=="string"&&dp[t[0]]||(typeof t[0]=="string"&&(dp[t[0]]=new Date),oS(...t))}const fp=(e,t)=>()=>{if(e.isInitialized)t();else{const n=()=>{setTimeout(()=>{e.off("initialized",n)},0),t()};e.on("initialized",n)}};function hp(e,t,n){e.loadNamespaces(t,fp(e,n))}function pp(e,t,n,r){typeof n=="string"&&(n=[n]),n.forEach(i=>{e.options.ns.indexOf(i)<0&&e.options.ns.push(i)}),e.loadLanguages(t,fp(e,r))}function aS(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const r=t.languages[0],i=t.options?t.options.fallbackLng:!1,s=t.languages[t.languages.length-1];if(r.toLowerCase()==="cimode")return!0;const o=(c,u)=>{const d=t.services.backendConnector.state[`${c}|${u}`];return d===-1||d===2};return n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!o(t.isLanguageChangingTo,e)?!1:!!(t.hasResourceBundle(r,e)||!t.services.backendConnector.backend||t.options.resources&&!t.options.partialBundledLanguages||o(r,e)&&(!i||o(s,e)))}function cS(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return!t.languages||!t.languages.length?(dl("i18n.languages were undefined or empty",t.languages),!0):t.options.ignoreJSONStructure!==void 0?t.hasLoadedNamespace(e,{lng:n.lng,precheck:(i,s)=>{if(n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&i.services.backendConnector.backend&&i.isLanguageChangingTo&&!s(i.isLanguageChangingTo,e))return!1}}):aS(e,t,n)}const uS=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,lS={"&amp;":"&","&#38;":"&","&lt;":"<","&#60;":"<","&gt;":">","&#62;":">","&apos;":"'","&#39;":"'","&quot;":'"',"&#34;":'"',"&nbsp;":" ","&#160;":" ","&copy;":"©","&#169;":"©","&reg;":"®","&#174;":"®","&hellip;":"…","&#8230;":"…","&#x2F;":"/","&#47;":"/"},dS=e=>lS[e];let fl={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:e=>e.replace(uS,dS)};function fS(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};fl={...fl,...e}}function hS(){return fl}let mp;function pS(e){mp=e}function mS(){return mp}const gS={type:"3rdParty",init(e){fS(e.options.react),pS(e)}},yS=I.createContext();class vS{constructor(){this.usedNamespaces={}}addUsedNamespaces(t){t.forEach(n=>{this.usedNamespaces[n]||(this.usedNamespaces[n]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}const bS=(e,t)=>{const n=I.useRef();return I.useEffect(()=>{n.current=e},[e,t]),n.current};function gp(e,t,n,r){return e.getFixedT(t,n,r)}function wS(e,t,n,r){return I.useCallback(gp(e,t,n,r),[e,t,n,r])}function Ve(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{i18n:n}=t,{i18n:r,defaultNS:i}=I.useContext(yS)||{},s=n||r||mS();if(s&&!s.reportNamespaces&&(s.reportNamespaces=new vS),!s){dl("You will need to pass in an i18next instance by using initReactI18next");const E=(A,T)=>typeof T=="string"?T:T&&typeof T=="object"&&typeof T.defaultValue=="string"?T.defaultValue:Array.isArray(A)?A[A.length-1]:A,S=[E,{},!1];return S.t=E,S.i18n={},S.ready=!1,S}s.options.react&&s.options.react.wait!==void 0&&dl("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");const o={...hS(),...s.options.react,...t},{useSuspense:c,keyPrefix:u}=o;let d=i||s.options&&s.options.defaultNS;d=typeof d=="string"?[d]:d||["translation"],s.reportNamespaces.addUsedNamespaces&&s.reportNamespaces.addUsedNamespaces(d);const f=(s.isInitialized||s.initializedStoreOnce)&&d.every(E=>cS(E,s,o)),p=wS(s,t.lng||null,o.nsMode==="fallback"?d:d[0],u),l=()=>p,v=()=>gp(s,t.lng||null,o.nsMode==="fallback"?d:d[0],u),[a,h]=I.useState(l);let y=d.join();t.lng&&(y=`${t.lng}${y}`);const g=bS(y),b=I.useRef(!0);I.useEffect(()=>{const{bindI18n:E,bindI18nStore:S}=o;b.current=!0,!f&&!c&&(t.lng?pp(s,t.lng,d,()=>{b.current&&h(v)}):hp(s,d,()=>{b.current&&h(v)})),f&&g&&g!==y&&b.current&&h(v);function A(){b.current&&h(v)}return E&&s&&s.on(E,A),S&&s&&s.store.on(S,A),()=>{b.current=!1,E&&s&&E.split(" ").forEach(T=>s.off(T,A)),S&&s&&S.split(" ").forEach(T=>s.store.off(T,A))}},[s,y]),I.useEffect(()=>{b.current&&f&&h(l)},[s,u,f]);const w=[a,s,f];if(w.t=a,w.i18n=s,w.ready=f,f||!f&&!c)return w;throw new Promise(E=>{t.lng?pp(s,t.lng,d,()=>E()):hp(s,d,()=>E())})}function qt(){const{t:e}=Ve(),n={closeButton:!1,icon:c=>c.type==="success"?m.jsx("img",{src:rS,alt:"success"}):c.type==="error"?m.jsx("img",{src:iS,alt:"error"}):m.jsx("img",{src:sS,alt:"warning"})},r=(c,u)=>{if(c==="success")return i(u);o(u)},i=(c=e("success"),u={})=>{mt.success(c,{...n,...u})},s=(c=e("warning"))=>{mt.warning(c,n)},o=(c=e("somethingWentWrong"))=>{var f,p;const u=(f=c.response)==null?void 0:f.data.errors,d=m.jsxs("div",{children:[m.jsx("p",{children:(p=c.response)==null?void 0:p.data.message}),u&&Object.keys(u).map(l=>u[l].map(v=>m.jsx("li",{children:v},v)))]});mt.error(d,n)};return{toast:r,successToast:i,warningToast:s,errorToast:o}}const $n=e=>{const t=At(),{errorToast:n}=qt(),r=d=>t.get(d,e.params),{data:i,error:s,isLoading:o,isValidating:c,mutate:u}=ww(e.url,r,{shouldRetryOnError:!1,revalidateIfStale:!1});return I.useEffect(()=>{i&&e.onData&&e.onData(i==null?void 0:i.data.data,i==null?void 0:i.data.meta)},[i]),I.useEffect(()=>{s&&n(s)},[s]),{data:i,pending:c,error:s,isLoading:o,isValidating:c,mutate:u}};var yp=(e=>(e[e.CREDIT_RECEPTION=1]="CREDIT_RECEPTION",e[e.PHYSICAL_REWARD_RECEPTION=2]="PHYSICAL_REWARD_RECEPTION",e[e.DIGITAL_REWARD_RECEPTION=3]="DIGITAL_REWARD_RECEPTION",e))(yp||{}),Qs=(e=>(e.IDENTIFIER="identifier",e.EMAIL="email",e))(Qs||{}),vp=(e=>(e.OPT_OUT="OPT_OUT",e.OPT_IN="OPT_IN",e.DOUBLE_OPT_IN="DOUBLE_OPT_IN",e.FUNCTIONAL="FUNCTIONAL",e))(vp||{}),Js=(e=>(e.INACTIVE="INACTIVE",e.ACTIVE="ACTIVE",e.EXPIRED="EXPIRED",e.LOCKED="LOCKED",e.REDEEMED="REDEEMED",e.DEACTIVATED="DEACTIVATED",e))(Js||{});function bp({uuid:e,children:t}){const[n,r]=I.useState(new ua),{mutate:i,error:s}=$n({url:e,onData:c=>{const u=new ua;u.type=c.type,u.uuid=c.uuid,u.contact=c.contact,u.currency=c.currency,u.events=c.events,u.inputData=c.input_data,u.loyaltyProgram=c.loyalty_program,u.results=c.results,r(u)}}),o=I.useMemo(()=>({uuid:e,portalSession:n,mutate:i,error:s}),[n,i,s]);return m.jsx(oh.Provider,{value:o,children:t})}var $t=(e=>(e.GENERIC="GENERIC",e.GIFTCARD="GIFTCARD",e.REDEEM_GIFTCARD="REDEEM_GIFTCARD",e.TOP_UP_GIFTCARD="TOP_UP_GIFTCARD",e.PORTAL="PORTAL",e.PREPAID="PREPAID",e.PAY_PREPAID="PAY_PREPAID",e.TOP_UP_PREPAID="TOP_UP_PREPAID",e.POINTS_TRANSACTION="POINTS_TRANSACTION",e.VOUCHER="VOUCHER",e))($t||{}),Pe=(e=>(e.GENERIC="/generic",e.GIFTCARD="/giftcard",e.PORTAL="/portal",e.PREPAID="/prepaid",e.PAY_PREPAID="/pay-prepaid",e.TOP_UP_PREPAID="/top-up-prepaid",e.POINTS_TRANSACTION="/points-transaction",e.VOUCHER="/voucher",e))(Pe||{}),Kr=(e=>(e.CREDIT_RECEPTION="credit_reception",e.GIFTCARD_TRANSACTION="giftcard_transaction",e.VOUCHER_REDEEMED="voucher_redeemed",e.REWARD_RECEPTION="reward_reception",e.PREPAID_TRANSACTION="prepaid_transaction",e))(Kr||{}),Ia=(e=>(e[e.INPUT_INVALID=1003]="INPUT_INVALID",e[e.CONTACT_NOT_FOUND=55031]="CONTACT_NOT_FOUND",e))(Ia||{}),Hi=(e=>(e.USER="user",e.ENVIRONMENT="environment",e))(Hi||{});const ES={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){console&&console[e]&&console[e].apply(console,t)}};class ka{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.init(t,n)}init(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=n.prefix||"i18next:",this.logger=t||ES,this.options=n,this.debug=n.debug}log(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"log","",!0)}warn(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"warn","",!0)}error(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"error","")}deprecate(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"warn","WARNING DEPRECATED: ",!0)}forward(t,n,r,i){return i&&!this.debug?null:(typeof t[0]=="string"&&(t[0]=`${r}${this.prefix} ${t[0]}`),this.logger[n](t))}create(t){return new ka(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t=t||this.options,t.prefix=t.prefix||this.prefix,new ka(this.logger,t)}}var hr=new ka;class Oa{constructor(){this.observers={}}on(t,n){return t.split(" ").forEach(r=>{this.observers[r]||(this.observers[r]=new Map);const i=this.observers[r].get(n)||0;this.observers[r].set(n,i+1)}),this}off(t,n){if(this.observers[t]){if(!n){delete this.observers[t];return}this.observers[t].delete(n)}}emit(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];this.observers[t]&&Array.from(this.observers[t].entries()).forEach(o=>{let[c,u]=o;for(let d=0;d<u;d++)c(...r)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(o=>{let[c,u]=o;for(let d=0;d<u;d++)c.apply(c,[t,...r])})}}function Zs(){let e,t;const n=new Promise((r,i)=>{e=r,t=i});return n.resolve=e,n.reject=t,n}function wp(e){return e==null?"":""+e}function SS(e,t,n){e.forEach(r=>{t[r]&&(n[r]=t[r])})}const xS=/###/g;function Xs(e,t,n){function r(c){return c&&c.indexOf("###")>-1?c.replace(xS,"."):c}function i(){return!e||typeof e=="string"}const s=typeof t!="string"?t:t.split(".");let o=0;for(;o<s.length-1;){if(i())return{};const c=r(s[o]);!e[c]&&n&&(e[c]=new n),Object.prototype.hasOwnProperty.call(e,c)?e=e[c]:e={},++o}return i()?{}:{obj:e,k:r(s[o])}}function Ep(e,t,n){const{obj:r,k:i}=Xs(e,t,Object);if(r!==void 0||t.length===1){r[i]=n;return}let s=t[t.length-1],o=t.slice(0,t.length-1),c=Xs(e,o,Object);for(;c.obj===void 0&&o.length;)s=`${o[o.length-1]}.${s}`,o=o.slice(0,o.length-1),c=Xs(e,o,Object),c&&c.obj&&typeof c.obj[`${c.k}.${s}`]<"u"&&(c.obj=void 0);c.obj[`${c.k}.${s}`]=n}function CS(e,t,n,r){const{obj:i,k:s}=Xs(e,t,Object);i[s]=i[s]||[],i[s].push(n)}function Ra(e,t){const{obj:n,k:r}=Xs(e,t);if(n)return n[r]}function _S(e,t,n){const r=Ra(e,n);return r!==void 0?r:Ra(t,n)}function Sp(e,t,n){for(const r in t)r!=="__proto__"&&r!=="constructor"&&(r in e?typeof e[r]=="string"||e[r]instanceof String||typeof t[r]=="string"||t[r]instanceof String?n&&(e[r]=t[r]):Sp(e[r],t[r],n):e[r]=t[r]);return e}function Yi(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var AS={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};function TS(e){return typeof e=="string"?e.replace(/[&<>"'\/]/g,t=>AS[t]):e}class IS{constructor(t){this.capacity=t,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(t){const n=this.regExpMap.get(t);if(n!==void 0)return n;const r=new RegExp(t);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(t,r),this.regExpQueue.push(t),r}}const kS=[" ",",","?","!",";"],OS=new IS(20);function RS(e,t,n){t=t||"",n=n||"";const r=kS.filter(o=>t.indexOf(o)<0&&n.indexOf(o)<0);if(r.length===0)return!0;const i=OS.getRegExp(`(${r.map(o=>o==="?"?"\\?":o).join("|")})`);let s=!i.test(e);if(!s){const o=e.indexOf(n);o>0&&!i.test(e.substring(0,o))&&(s=!0)}return s}function hl(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!e)return;if(e[t])return e[t];const r=t.split(n);let i=e;for(let s=0;s<r.length;){if(!i||typeof i!="object")return;let o,c="";for(let u=s;u<r.length;++u)if(u!==s&&(c+=n),c+=r[u],o=i[c],o!==void 0){if(["string","number","boolean"].indexOf(typeof o)>-1&&u<r.length-1)continue;s+=u-s+1;break}i=o}return i}function Na(e){return e&&e.indexOf("_")>0?e.replace("_","-"):e}class xp extends Oa{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=t||{},this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(t){this.options.ns.indexOf(t)<0&&this.options.ns.push(t)}removeNamespaces(t){const n=this.options.ns.indexOf(t);n>-1&&this.options.ns.splice(n,1)}getResource(t,n,r){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const s=i.keySeparator!==void 0?i.keySeparator:this.options.keySeparator,o=i.ignoreJSONStructure!==void 0?i.ignoreJSONStructure:this.options.ignoreJSONStructure;let c;t.indexOf(".")>-1?c=t.split("."):(c=[t,n],r&&(Array.isArray(r)?c.push(...r):typeof r=="string"&&s?c.push(...r.split(s)):c.push(r)));const u=Ra(this.data,c);return!u&&!n&&!r&&t.indexOf(".")>-1&&(t=c[0],n=c[1],r=c.slice(2).join(".")),u||!o||typeof r!="string"?u:hl(this.data&&this.data[t]&&this.data[t][n],r,s)}addResource(t,n,r,i){let s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1};const o=s.keySeparator!==void 0?s.keySeparator:this.options.keySeparator;let c=[t,n];r&&(c=c.concat(o?r.split(o):r)),t.indexOf(".")>-1&&(c=t.split("."),i=n,n=c[1]),this.addNamespaces(n),Ep(this.data,c,i),s.silent||this.emit("added",t,n,r,i)}addResources(t,n,r){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(const s in r)(typeof r[s]=="string"||Array.isArray(r[s]))&&this.addResource(t,n,s,r[s],{silent:!0});i.silent||this.emit("added",t,n,r)}addResourceBundle(t,n,r,i,s){let o=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1,skipCopy:!1},c=[t,n];t.indexOf(".")>-1&&(c=t.split("."),i=r,r=n,n=c[1]),this.addNamespaces(n);let u=Ra(this.data,c)||{};o.skipCopy||(r=JSON.parse(JSON.stringify(r))),i?Sp(u,r,s):u={...u,...r},Ep(this.data,c,u),o.silent||this.emit("added",t,n,r)}removeResourceBundle(t,n){this.hasResourceBundle(t,n)&&delete this.data[t][n],this.removeNamespaces(n),this.emit("removed",t,n)}hasResourceBundle(t,n){return this.getResource(t,n)!==void 0}getResourceBundle(t,n){return n||(n=this.options.defaultNS),this.options.compatibilityAPI==="v1"?{...this.getResource(t,n)}:this.getResource(t,n)}getDataByLanguage(t){return this.data[t]}hasLanguageSomeTranslations(t){const n=this.getDataByLanguage(t);return!!(n&&Object.keys(n)||[]).find(i=>n[i]&&Object.keys(n[i]).length>0)}toJSON(){return this.data}}var Cp={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,r,i){return e.forEach(s=>{this.processors[s]&&(t=this.processors[s].process(t,n,r,i))}),t}};const _p={};class Ma extends Oa{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),SS(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],t,this),this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=hr.create("translator")}changeLanguage(t){t&&(this.language=t)}exists(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(t==null)return!1;const r=this.resolve(t,n);return r&&r.res!==void 0}extractFromKey(t,n){let r=n.nsSeparator!==void 0?n.nsSeparator:this.options.nsSeparator;r===void 0&&(r=":");const i=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator;let s=n.ns||this.options.defaultNS||[];const o=r&&t.indexOf(r)>-1,c=!this.options.userDefinedKeySeparator&&!n.keySeparator&&!this.options.userDefinedNsSeparator&&!n.nsSeparator&&!RS(t,r,i);if(o&&!c){const u=t.match(this.interpolator.nestingRegexp);if(u&&u.length>0)return{key:t,namespaces:s};const d=t.split(r);(r!==i||r===i&&this.options.ns.indexOf(d[0])>-1)&&(s=d.shift()),t=d.join(i)}return typeof s=="string"&&(s=[s]),{key:t,namespaces:s}}translate(t,n,r){if(typeof n!="object"&&this.options.overloadTranslationOptionHandler&&(n=this.options.overloadTranslationOptionHandler(arguments)),typeof n=="object"&&(n={...n}),n||(n={}),t==null)return"";Array.isArray(t)||(t=[String(t)]);const i=n.returnDetails!==void 0?n.returnDetails:this.options.returnDetails,s=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator,{key:o,namespaces:c}=this.extractFromKey(t[t.length-1],n),u=c[c.length-1],d=n.lng||this.language,f=n.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(d&&d.toLowerCase()==="cimode"){if(f){const E=n.nsSeparator||this.options.nsSeparator;return i?{res:`${u}${E}${o}`,usedKey:o,exactUsedKey:o,usedLng:d,usedNS:u,usedParams:this.getUsedParamsDetails(n)}:`${u}${E}${o}`}return i?{res:o,usedKey:o,exactUsedKey:o,usedLng:d,usedNS:u,usedParams:this.getUsedParamsDetails(n)}:o}const p=this.resolve(t,n);let l=p&&p.res;const v=p&&p.usedKey||o,a=p&&p.exactUsedKey||o,h=Object.prototype.toString.apply(l),y=["[object Number]","[object Function]","[object RegExp]"],g=n.joinArrays!==void 0?n.joinArrays:this.options.joinArrays,b=!this.i18nFormat||this.i18nFormat.handleAsObject;if(b&&l&&(typeof l!="string"&&typeof l!="boolean"&&typeof l!="number")&&y.indexOf(h)<0&&!(typeof g=="string"&&Array.isArray(l))){if(!n.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const E=this.options.returnedObjectHandler?this.options.returnedObjectHandler(v,l,{...n,ns:c}):`key '${o} (${this.language})' returned an object instead of string.`;return i?(p.res=E,p.usedParams=this.getUsedParamsDetails(n),p):E}if(s){const E=Array.isArray(l),S=E?[]:{},A=E?a:v;for(const T in l)if(Object.prototype.hasOwnProperty.call(l,T)){const O=`${A}${s}${T}`;S[T]=this.translate(O,{...n,joinArrays:!1,ns:c}),S[T]===O&&(S[T]=l[T])}l=S}}else if(b&&typeof g=="string"&&Array.isArray(l))l=l.join(g),l&&(l=this.extendTranslation(l,t,n,r));else{let E=!1,S=!1;const A=n.count!==void 0&&typeof n.count!="string",T=Ma.hasDefaultValue(n),O=A?this.pluralResolver.getSuffix(d,n.count,n):"",M=n.ordinal&&A?this.pluralResolver.getSuffix(d,n.count,{ordinal:!1}):"",D=A&&!n.ordinal&&n.count===0&&this.pluralResolver.shouldUseIntlApi(),F=D&&n[`defaultValue${this.options.pluralSeparator}zero`]||n[`defaultValue${O}`]||n[`defaultValue${M}`]||n.defaultValue;!this.isValidLookup(l)&&T&&(E=!0,l=F),this.isValidLookup(l)||(S=!0,l=o);const G=(n.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&S?void 0:l,U=T&&F!==l&&this.options.updateMissing;if(S||E||U){if(this.logger.log(U?"updateKey":"missingKey",d,u,o,U?F:l),s){const z=this.resolve(o,{...n,keySeparator:!1});z&&z.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let R=[];const L=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if(this.options.saveMissingTo==="fallback"&&L&&L[0])for(let z=0;z<L.length;z++)R.push(L[z]);else this.options.saveMissingTo==="all"?R=this.languageUtils.toResolveHierarchy(n.lng||this.language):R.push(n.lng||this.language);const Y=(z,ee,te)=>{const re=T&&te!==l?te:G;this.options.missingKeyHandler?this.options.missingKeyHandler(z,u,ee,re,U,n):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(z,u,ee,re,U,n),this.emit("missingKey",z,u,ee,l)};this.options.saveMissing&&(this.options.saveMissingPlurals&&A?R.forEach(z=>{const ee=this.pluralResolver.getSuffixes(z,n);D&&n[`defaultValue${this.options.pluralSeparator}zero`]&&ee.indexOf(`${this.options.pluralSeparator}zero`)<0&&ee.push(`${this.options.pluralSeparator}zero`),ee.forEach(te=>{Y([z],o+te,n[`defaultValue${te}`]||F)})}):Y(R,o,F))}l=this.extendTranslation(l,t,n,p,r),S&&l===o&&this.options.appendNamespaceToMissingKey&&(l=`${u}:${o}`),(S||E)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?l=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${u}:${o}`:o,E?l:void 0):l=this.options.parseMissingKeyHandler(l))}return i?(p.res=l,p.usedParams=this.getUsedParamsDetails(n),p):l}extendTranslation(t,n,r,i,s){var o=this;if(this.i18nFormat&&this.i18nFormat.parse)t=this.i18nFormat.parse(t,{...this.options.interpolation.defaultVariables,...r},r.lng||this.language||i.usedLng,i.usedNS,i.usedKey,{resolved:i});else if(!r.skipInterpolation){r.interpolation&&this.interpolator.init({...r,interpolation:{...this.options.interpolation,...r.interpolation}});const d=typeof t=="string"&&(r&&r.interpolation&&r.interpolation.skipOnVariables!==void 0?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let f;if(d){const l=t.match(this.interpolator.nestingRegexp);f=l&&l.length}let p=r.replace&&typeof r.replace!="string"?r.replace:r;if(this.options.interpolation.defaultVariables&&(p={...this.options.interpolation.defaultVariables,...p}),t=this.interpolator.interpolate(t,p,r.lng||this.language,r),d){const l=t.match(this.interpolator.nestingRegexp),v=l&&l.length;f<v&&(r.nest=!1)}!r.lng&&this.options.compatibilityAPI!=="v1"&&i&&i.res&&(r.lng=i.usedLng),r.nest!==!1&&(t=this.interpolator.nest(t,function(){for(var l=arguments.length,v=new Array(l),a=0;a<l;a++)v[a]=arguments[a];return s&&s[0]===v[0]&&!r.context?(o.logger.warn(`It seems you are nesting recursively key: ${v[0]} in key: ${n[0]}`),null):o.translate(...v,n)},r)),r.interpolation&&this.interpolator.reset()}const c=r.postProcess||this.options.postProcess,u=typeof c=="string"?[c]:c;return t!=null&&u&&u.length&&r.applyPostProcessor!==!1&&(t=Cp.handle(u,t,n,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...i,usedParams:this.getUsedParamsDetails(r)},...r}:r,this)),t}resolve(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r,i,s,o,c;return typeof t=="string"&&(t=[t]),t.forEach(u=>{if(this.isValidLookup(r))return;const d=this.extractFromKey(u,n),f=d.key;i=f;let p=d.namespaces;this.options.fallbackNS&&(p=p.concat(this.options.fallbackNS));const l=n.count!==void 0&&typeof n.count!="string",v=l&&!n.ordinal&&n.count===0&&this.pluralResolver.shouldUseIntlApi(),a=n.context!==void 0&&(typeof n.context=="string"||typeof n.context=="number")&&n.context!=="",h=n.lngs?n.lngs:this.languageUtils.toResolveHierarchy(n.lng||this.language,n.fallbackLng);p.forEach(y=>{this.isValidLookup(r)||(c=y,!_p[`${h[0]}-${y}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(c)&&(_p[`${h[0]}-${y}`]=!0,this.logger.warn(`key "${i}" for languages "${h.join(", ")}" won't get resolved as namespace "${c}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),h.forEach(g=>{if(this.isValidLookup(r))return;o=g;const b=[f];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(b,f,g,y,n);else{let E;l&&(E=this.pluralResolver.getSuffix(g,n.count,n));const S=`${this.options.pluralSeparator}zero`,A=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(l&&(b.push(f+E),n.ordinal&&E.indexOf(A)===0&&b.push(f+E.replace(A,this.options.pluralSeparator)),v&&b.push(f+S)),a){const T=`${f}${this.options.contextSeparator}${n.context}`;b.push(T),l&&(b.push(T+E),n.ordinal&&E.indexOf(A)===0&&b.push(T+E.replace(A,this.options.pluralSeparator)),v&&b.push(T+S))}}let w;for(;w=b.pop();)this.isValidLookup(r)||(s=w,r=this.getResource(g,y,w,n))}))})}),{res:r,usedKey:i,exactUsedKey:s,usedLng:o,usedNS:c}}isValidLookup(t){return t!==void 0&&!(!this.options.returnNull&&t===null)&&!(!this.options.returnEmptyString&&t==="")}getResource(t,n,r){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(t,n,r,i):this.resourceStore.getResource(t,n,r,i)}getUsedParamsDetails(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const n=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],r=t.replace&&typeof t.replace!="string";let i=r?t.replace:t;if(r&&typeof t.count<"u"&&(i.count=t.count),this.options.interpolation.defaultVariables&&(i={...this.options.interpolation.defaultVariables,...i}),!r){i={...i};for(const s of n)delete i[s]}return i}static hasDefaultValue(t){const n="defaultValue";for(const r in t)if(Object.prototype.hasOwnProperty.call(t,r)&&n===r.substring(0,n.length)&&t[r]!==void 0)return!0;return!1}}function pl(e){return e.charAt(0).toUpperCase()+e.slice(1)}class Ap{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=hr.create("languageUtils")}getScriptPartFromCode(t){if(t=Na(t),!t||t.indexOf("-")<0)return null;const n=t.split("-");return n.length===2||(n.pop(),n[n.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(n.join("-"))}getLanguagePartFromCode(t){if(t=Na(t),!t||t.indexOf("-")<0)return t;const n=t.split("-");return this.formatLanguageCode(n[0])}formatLanguageCode(t){if(typeof t=="string"&&t.indexOf("-")>-1){const n=["hans","hant","latn","cyrl","cans","mong","arab"];let r=t.split("-");return this.options.lowerCaseLng?r=r.map(i=>i.toLowerCase()):r.length===2?(r[0]=r[0].toLowerCase(),r[1]=r[1].toUpperCase(),n.indexOf(r[1].toLowerCase())>-1&&(r[1]=pl(r[1].toLowerCase()))):r.length===3&&(r[0]=r[0].toLowerCase(),r[1].length===2&&(r[1]=r[1].toUpperCase()),r[0]!=="sgn"&&r[2].length===2&&(r[2]=r[2].toUpperCase()),n.indexOf(r[1].toLowerCase())>-1&&(r[1]=pl(r[1].toLowerCase())),n.indexOf(r[2].toLowerCase())>-1&&(r[2]=pl(r[2].toLowerCase()))),r.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?t.toLowerCase():t}isSupportedCode(t){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(t=this.getLanguagePartFromCode(t)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(t)>-1}getBestMatchFromCodes(t){if(!t)return null;let n;return t.forEach(r=>{if(n)return;const i=this.formatLanguageCode(r);(!this.options.supportedLngs||this.isSupportedCode(i))&&(n=i)}),!n&&this.options.supportedLngs&&t.forEach(r=>{if(n)return;const i=this.getLanguagePartFromCode(r);if(this.isSupportedCode(i))return n=i;n=this.options.supportedLngs.find(s=>{if(s===i)return s;if(!(s.indexOf("-")<0&&i.indexOf("-")<0)&&(s.indexOf("-")>0&&i.indexOf("-")<0&&s.substring(0,s.indexOf("-"))===i||s.indexOf(i)===0&&i.length>1))return s})}),n||(n=this.getFallbackCodes(this.options.fallbackLng)[0]),n}getFallbackCodes(t,n){if(!t)return[];if(typeof t=="function"&&(t=t(n)),typeof t=="string"&&(t=[t]),Array.isArray(t))return t;if(!n)return t.default||[];let r=t[n];return r||(r=t[this.getScriptPartFromCode(n)]),r||(r=t[this.formatLanguageCode(n)]),r||(r=t[this.getLanguagePartFromCode(n)]),r||(r=t.default),r||[]}toResolveHierarchy(t,n){const r=this.getFallbackCodes(n||this.options.fallbackLng||[],t),i=[],s=o=>{o&&(this.isSupportedCode(o)?i.push(o):this.logger.warn(`rejecting language code not found in supportedLngs: ${o}`))};return typeof t=="string"&&(t.indexOf("-")>-1||t.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&s(this.formatLanguageCode(t)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&s(this.getScriptPartFromCode(t)),this.options.load!=="currentOnly"&&s(this.getLanguagePartFromCode(t))):typeof t=="string"&&s(this.formatLanguageCode(t)),r.forEach(o=>{i.indexOf(o)<0&&s(this.formatLanguageCode(o))}),i}}let NS=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],MS={1:function(e){return+(e>1)},2:function(e){return+(e!=1)},3:function(e){return 0},4:function(e){return e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2},5:function(e){return e==0?0:e==1?1:e==2?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5},6:function(e){return e==1?0:e>=2&&e<=4?1:2},7:function(e){return e==1?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2},8:function(e){return e==1?0:e==2?1:e!=8&&e!=11?2:3},9:function(e){return+(e>=2)},10:function(e){return e==1?0:e==2?1:e<7?2:e<11?3:4},11:function(e){return e==1||e==11?0:e==2||e==12?1:e>2&&e<20?2:3},12:function(e){return+(e%10!=1||e%100==11)},13:function(e){return+(e!==0)},14:function(e){return e==1?0:e==2?1:e==3?2:3},15:function(e){return e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2},16:function(e){return e%10==1&&e%100!=11?0:e!==0?1:2},17:function(e){return e==1||e%10==1&&e%100!=11?0:1},18:function(e){return e==0?0:e==1?1:2},19:function(e){return e==1?0:e==0||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3},20:function(e){return e==1?0:e==0||e%100>0&&e%100<20?1:2},21:function(e){return e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0},22:function(e){return e==1?0:e==2?1:(e<0||e>10)&&e%10==0?2:3}};const DS=["v1","v2","v3"],PS=["v4"],Tp={zero:0,one:1,two:2,few:3,many:4,other:5};function jS(){const e={};return NS.forEach(t=>{t.lngs.forEach(n=>{e[n]={numbers:t.nr,plurals:MS[t.fc]}})}),e}class LS{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=t,this.options=n,this.logger=hr.create("pluralResolver"),(!this.options.compatibilityJSON||PS.includes(this.options.compatibilityJSON))&&(typeof Intl>"u"||!Intl.PluralRules)&&(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=jS()}addRule(t,n){this.rules[t]=n}getRule(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(Na(t==="dev"?"en":t),{type:n.ordinal?"ordinal":"cardinal"})}catch{return}return this.rules[t]||this.rules[this.languageUtils.getLanguagePartFromCode(t)]}needsPlural(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const r=this.getRule(t,n);return this.shouldUseIntlApi()?r&&r.resolvedOptions().pluralCategories.length>1:r&&r.numbers.length>1}getPluralFormsOfKey(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(t,r).map(i=>`${n}${i}`)}getSuffixes(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const r=this.getRule(t,n);return r?this.shouldUseIntlApi()?r.resolvedOptions().pluralCategories.sort((i,s)=>Tp[i]-Tp[s]).map(i=>`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${i}`):r.numbers.map(i=>this.getSuffix(t,i,n)):[]}getSuffix(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const i=this.getRule(t,r);return i?this.shouldUseIntlApi()?`${this.options.prepend}${r.ordinal?`ordinal${this.options.prepend}`:""}${i.select(n)}`:this.getSuffixRetroCompatible(i,n):(this.logger.warn(`no plural rule found for: ${t}`),"")}getSuffixRetroCompatible(t,n){const r=t.noAbs?t.plurals(n):t.plurals(Math.abs(n));let i=t.numbers[r];this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1&&(i===2?i="plural":i===1&&(i=""));const s=()=>this.options.prepend&&i.toString()?this.options.prepend+i.toString():i.toString();return this.options.compatibilityJSON==="v1"?i===1?"":typeof i=="number"?`_plural_${i.toString()}`:s():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1?s():this.options.prepend&&r.toString()?this.options.prepend+r.toString():r.toString()}shouldUseIntlApi(){return!DS.includes(this.options.compatibilityJSON)}}function Ip(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,s=_S(e,t,n);return!s&&i&&typeof n=="string"&&(s=hl(e,n,r),s===void 0&&(s=hl(t,n,r))),s}class BS{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=hr.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||(n=>n),this.init(t)}init(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};t.interpolation||(t.interpolation={escapeValue:!0});const{escape:n,escapeValue:r,useRawValueToEscape:i,prefix:s,prefixEscaped:o,suffix:c,suffixEscaped:u,formatSeparator:d,unescapeSuffix:f,unescapePrefix:p,nestingPrefix:l,nestingPrefixEscaped:v,nestingSuffix:a,nestingSuffixEscaped:h,nestingOptionsSeparator:y,maxReplaces:g,alwaysFormat:b}=t.interpolation;this.escape=n!==void 0?n:TS,this.escapeValue=r!==void 0?r:!0,this.useRawValueToEscape=i!==void 0?i:!1,this.prefix=s?Yi(s):o||"{{",this.suffix=c?Yi(c):u||"}}",this.formatSeparator=d||",",this.unescapePrefix=f?"":p||"-",this.unescapeSuffix=this.unescapePrefix?"":f||"",this.nestingPrefix=l?Yi(l):v||Yi("$t("),this.nestingSuffix=a?Yi(a):h||Yi(")"),this.nestingOptionsSeparator=y||",",this.maxReplaces=g||1e3,this.alwaysFormat=b!==void 0?b:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const t=(n,r)=>n&&n.source===r?(n.lastIndex=0,n):new RegExp(r,"g");this.regexp=t(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=t(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=t(this.nestingRegexp,`${this.nestingPrefix}(.+?)${this.nestingSuffix}`)}interpolate(t,n,r,i){let s,o,c;const u=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function d(a){return a.replace(/\$/g,"$$$$")}const f=a=>{if(a.indexOf(this.formatSeparator)<0){const b=Ip(n,u,a,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(b,void 0,r,{...i,...n,interpolationkey:a}):b}const h=a.split(this.formatSeparator),y=h.shift().trim(),g=h.join(this.formatSeparator).trim();return this.format(Ip(n,u,y,this.options.keySeparator,this.options.ignoreJSONStructure),g,r,{...i,...n,interpolationkey:y})};this.resetRegExp();const p=i&&i.missingInterpolationHandler||this.options.missingInterpolationHandler,l=i&&i.interpolation&&i.interpolation.skipOnVariables!==void 0?i.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:a=>d(a)},{regex:this.regexp,safeValue:a=>this.escapeValue?d(this.escape(a)):d(a)}].forEach(a=>{for(c=0;s=a.regex.exec(t);){const h=s[1].trim();if(o=f(h),o===void 0)if(typeof p=="function"){const g=p(t,s,i);o=typeof g=="string"?g:""}else if(i&&Object.prototype.hasOwnProperty.call(i,h))o="";else if(l){o=s[0];continue}else this.logger.warn(`missed to pass in variable ${h} for interpolating ${t}`),o="";else typeof o!="string"&&!this.useRawValueToEscape&&(o=wp(o));const y=a.safeValue(o);if(t=t.replace(s[0],y),l?(a.regex.lastIndex+=o.length,a.regex.lastIndex-=s[0].length):a.regex.lastIndex=0,c++,c>=this.maxReplaces)break}}),t}nest(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i,s,o;function c(u,d){const f=this.nestingOptionsSeparator;if(u.indexOf(f)<0)return u;const p=u.split(new RegExp(`${f}[ ]*{`));let l=`{${p[1]}`;u=p[0],l=this.interpolate(l,o);const v=l.match(/'/g),a=l.match(/"/g);(v&&v.length%2===0&&!a||a.length%2!==0)&&(l=l.replace(/'/g,'"'));try{o=JSON.parse(l),d&&(o={...d,...o})}catch(h){return this.logger.warn(`failed parsing options string in nesting for key ${u}`,h),`${u}${f}${l}`}return o.defaultValue&&o.defaultValue.indexOf(this.prefix)>-1&&delete o.defaultValue,u}for(;i=this.nestingRegexp.exec(t);){let u=[];o={...r},o=o.replace&&typeof o.replace!="string"?o.replace:o,o.applyPostProcessor=!1,delete o.defaultValue;let d=!1;if(i[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(i[1])){const f=i[1].split(this.formatSeparator).map(p=>p.trim());i[1]=f.shift(),u=f,d=!0}if(s=n(c.call(this,i[1].trim(),o),o),s&&i[0]===t&&typeof s!="string")return s;typeof s!="string"&&(s=wp(s)),s||(this.logger.warn(`missed to resolve ${i[1]} for nesting ${t}`),s=""),d&&(s=u.reduce((f,p)=>this.format(f,p,r.lng,{...r,interpolationkey:i[1].trim()}),s.trim())),t=t.replace(i[0],s),this.regexp.lastIndex=0}return t}}function FS(e){let t=e.toLowerCase().trim();const n={};if(e.indexOf("(")>-1){const r=e.split("(");t=r[0].toLowerCase().trim();const i=r[1].substring(0,r[1].length-1);t==="currency"&&i.indexOf(":")<0?n.currency||(n.currency=i.trim()):t==="relativetime"&&i.indexOf(":")<0?n.range||(n.range=i.trim()):i.split(";").forEach(o=>{if(o){const[c,...u]=o.split(":"),d=u.join(":").trim().replace(/^'+|'+$/g,""),f=c.trim();n[f]||(n[f]=d),d==="false"&&(n[f]=!1),d==="true"&&(n[f]=!0),isNaN(d)||(n[f]=parseInt(d,10))}})}return{formatName:t,formatOptions:n}}function Wi(e){const t={};return function(r,i,s){const o=i+JSON.stringify(s);let c=t[o];return c||(c=e(Na(i),s),t[o]=c),c(r)}}class US{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=hr.create("formatter"),this.options=t,this.formats={number:Wi((n,r)=>{const i=new Intl.NumberFormat(n,{...r});return s=>i.format(s)}),currency:Wi((n,r)=>{const i=new Intl.NumberFormat(n,{...r,style:"currency"});return s=>i.format(s)}),datetime:Wi((n,r)=>{const i=new Intl.DateTimeFormat(n,{...r});return s=>i.format(s)}),relativetime:Wi((n,r)=>{const i=new Intl.RelativeTimeFormat(n,{...r});return s=>i.format(s,r.range||"day")}),list:Wi((n,r)=>{const i=new Intl.ListFormat(n,{...r});return s=>i.format(s)})},this.init(t)}init(t){const r=(arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}}).interpolation;this.formatSeparator=r.formatSeparator?r.formatSeparator:r.formatSeparator||","}add(t,n){this.formats[t.toLowerCase().trim()]=n}addCached(t,n){this.formats[t.toLowerCase().trim()]=Wi(n)}format(t,n,r){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return n.split(this.formatSeparator).reduce((c,u)=>{const{formatName:d,formatOptions:f}=FS(u);if(this.formats[d]){let p=c;try{const l=i&&i.formatParams&&i.formatParams[i.interpolationkey]||{},v=l.locale||l.lng||i.locale||i.lng||r;p=this.formats[d](c,v,{...f,...i,...l})}catch(l){this.logger.warn(l)}return p}else this.logger.warn(`there was no format function for ${d}`);return c},t)}}function VS(e,t){e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)}class qS extends Oa{constructor(t,n,r){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};super(),this.backend=t,this.store=n,this.services=r,this.languageUtils=r.languageUtils,this.options=i,this.logger=hr.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=i.maxParallelReads||10,this.readingCalls=0,this.maxRetries=i.maxRetries>=0?i.maxRetries:5,this.retryTimeout=i.retryTimeout>=1?i.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(r,i.backend,i)}queueLoad(t,n,r,i){const s={},o={},c={},u={};return t.forEach(d=>{let f=!0;n.forEach(p=>{const l=`${d}|${p}`;!r.reload&&this.store.hasResourceBundle(d,p)?this.state[l]=2:this.state[l]<0||(this.state[l]===1?o[l]===void 0&&(o[l]=!0):(this.state[l]=1,f=!1,o[l]===void 0&&(o[l]=!0),s[l]===void 0&&(s[l]=!0),u[p]===void 0&&(u[p]=!0)))}),f||(c[d]=!0)}),(Object.keys(s).length||Object.keys(o).length)&&this.queue.push({pending:o,pendingCount:Object.keys(o).length,loaded:{},errors:[],callback:i}),{toLoad:Object.keys(s),pending:Object.keys(o),toLoadLanguages:Object.keys(c),toLoadNamespaces:Object.keys(u)}}loaded(t,n,r){const i=t.split("|"),s=i[0],o=i[1];n&&this.emit("failedLoading",s,o,n),r&&this.store.addResourceBundle(s,o,r,void 0,void 0,{skipCopy:!0}),this.state[t]=n?-1:2;const c={};this.queue.forEach(u=>{CS(u.loaded,[s],o),VS(u,t),n&&u.errors.push(n),u.pendingCount===0&&!u.done&&(Object.keys(u.loaded).forEach(d=>{c[d]||(c[d]={});const f=u.loaded[d];f.length&&f.forEach(p=>{c[d][p]===void 0&&(c[d][p]=!0)})}),u.done=!0,u.errors.length?u.callback(u.errors):u.callback())}),this.emit("loaded",c),this.queue=this.queue.filter(u=>!u.done)}read(t,n,r){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,o=arguments.length>5?arguments[5]:void 0;if(!t.length)return o(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:t,ns:n,fcName:r,tried:i,wait:s,callback:o});return}this.readingCalls++;const c=(d,f)=>{if(this.readingCalls--,this.waitingReads.length>0){const p=this.waitingReads.shift();this.read(p.lng,p.ns,p.fcName,p.tried,p.wait,p.callback)}if(d&&f&&i<this.maxRetries){setTimeout(()=>{this.read.call(this,t,n,r,i+1,s*2,o)},s);return}o(d,f)},u=this.backend[r].bind(this.backend);if(u.length===2){try{const d=u(t,n);d&&typeof d.then=="function"?d.then(f=>c(null,f)).catch(c):c(null,d)}catch(d){c(d)}return}return u(t,n,c)}prepareLoading(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),i&&i();typeof t=="string"&&(t=this.languageUtils.toResolveHierarchy(t)),typeof n=="string"&&(n=[n]);const s=this.queueLoad(t,n,r,i);if(!s.toLoad.length)return s.pending.length||i(),null;s.toLoad.forEach(o=>{this.loadOne(o)})}load(t,n,r){this.prepareLoading(t,n,{},r)}reload(t,n,r){this.prepareLoading(t,n,{reload:!0},r)}loadOne(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const r=t.split("|"),i=r[0],s=r[1];this.read(i,s,"read",void 0,void 0,(o,c)=>{o&&this.logger.warn(`${n}loading namespace ${s} for language ${i} failed`,o),!o&&c&&this.logger.log(`${n}loaded namespace ${s} for language ${i}`,c),this.loaded(t,o,c)})}saveMissing(t,n,r,i,s){let o=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},c=arguments.length>6&&arguments[6]!==void 0?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(n)){this.logger.warn(`did not save key "${r}" as the namespace "${n}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(r==null||r==="")){if(this.backend&&this.backend.create){const u={...o,isUpdate:s},d=this.backend.create.bind(this.backend);if(d.length<6)try{let f;d.length===5?f=d(t,n,r,i,u):f=d(t,n,r,i),f&&typeof f.then=="function"?f.then(p=>c(null,p)).catch(c):c(null,f)}catch(f){c(f)}else d(t,n,r,i,c,u)}!t||!t[0]||this.store.addResource(t[0],n,r,i)}}}function kp(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(t){let n={};if(typeof t[1]=="object"&&(n=t[1]),typeof t[1]=="string"&&(n.defaultValue=t[1]),typeof t[2]=="string"&&(n.tDescription=t[2]),typeof t[2]=="object"||typeof t[3]=="object"){const r=t[3]||t[2];Object.keys(r).forEach(i=>{n[i]=r[i]})}return n},interpolation:{escapeValue:!0,format:e=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function Op(e){return typeof e.ns=="string"&&(e.ns=[e.ns]),typeof e.fallbackLng=="string"&&(e.fallbackLng=[e.fallbackLng]),typeof e.fallbackNS=="string"&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function Da(){}function $S(e){Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(n=>{typeof e[n]=="function"&&(e[n]=e[n].bind(e))})}class eo extends Oa{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;if(super(),this.options=Op(t),this.services={},this.logger=hr,this.modules={external:[]},$S(this),n&&!this.isInitialized&&!t.isClone){if(!this.options.initImmediate)return this.init(t,n),this;setTimeout(()=>{this.init(t,n)},0)}}init(){var t=this;let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,typeof n=="function"&&(r=n,n={}),!n.defaultNS&&n.defaultNS!==!1&&n.ns&&(typeof n.ns=="string"?n.defaultNS=n.ns:n.ns.indexOf("translation")<0&&(n.defaultNS=n.ns[0]));const i=kp();this.options={...i,...this.options,...Op(n)},this.options.compatibilityAPI!=="v1"&&(this.options.interpolation={...i.interpolation,...this.options.interpolation}),n.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=n.keySeparator),n.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=n.nsSeparator);function s(f){return f?typeof f=="function"?new f:f:null}if(!this.options.isClone){this.modules.logger?hr.init(s(this.modules.logger),this.options):hr.init(null,this.options);let f;this.modules.formatter?f=this.modules.formatter:typeof Intl<"u"&&(f=US);const p=new Ap(this.options);this.store=new xp(this.options.resources,this.options);const l=this.services;l.logger=hr,l.resourceStore=this.store,l.languageUtils=p,l.pluralResolver=new LS(p,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),f&&(!this.options.interpolation.format||this.options.interpolation.format===i.interpolation.format)&&(l.formatter=s(f),l.formatter.init(l,this.options),this.options.interpolation.format=l.formatter.format.bind(l.formatter)),l.interpolator=new BS(this.options),l.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},l.backendConnector=new qS(s(this.modules.backend),l.resourceStore,l,this.options),l.backendConnector.on("*",function(v){for(var a=arguments.length,h=new Array(a>1?a-1:0),y=1;y<a;y++)h[y-1]=arguments[y];t.emit(v,...h)}),this.modules.languageDetector&&(l.languageDetector=s(this.modules.languageDetector),l.languageDetector.init&&l.languageDetector.init(l,this.options.detection,this.options)),this.modules.i18nFormat&&(l.i18nFormat=s(this.modules.i18nFormat),l.i18nFormat.init&&l.i18nFormat.init(this)),this.translator=new Ma(this.services,this.options),this.translator.on("*",function(v){for(var a=arguments.length,h=new Array(a>1?a-1:0),y=1;y<a;y++)h[y-1]=arguments[y];t.emit(v,...h)}),this.modules.external.forEach(v=>{v.init&&v.init(this)})}if(this.format=this.options.interpolation.format,r||(r=Da),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const f=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);f.length>0&&f[0]!=="dev"&&(this.options.lng=f[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(f=>{this[f]=function(){return t.store[f](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(f=>{this[f]=function(){return t.store[f](...arguments),t}});const u=Zs(),d=()=>{const f=(p,l)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),u.resolve(l),r(p,l)};if(this.languages&&this.options.compatibilityAPI!=="v1"&&!this.isInitialized)return f(null,this.t.bind(this));this.changeLanguage(this.options.lng,f)};return this.options.resources||!this.options.initImmediate?d():setTimeout(d,0),u}loadResources(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Da;const i=typeof t=="string"?t:this.language;if(typeof t=="function"&&(r=t),!this.options.resources||this.options.partialBundledLanguages){if(i&&i.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return r();const s=[],o=c=>{if(!c||c==="cimode")return;this.services.languageUtils.toResolveHierarchy(c).forEach(d=>{d!=="cimode"&&s.indexOf(d)<0&&s.push(d)})};i?o(i):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(u=>o(u)),this.options.preload&&this.options.preload.forEach(c=>o(c)),this.services.backendConnector.load(s,this.options.ns,c=>{!c&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),r(c)})}else r(null)}reloadResources(t,n,r){const i=Zs();return t||(t=this.languages),n||(n=this.options.ns),r||(r=Da),this.services.backendConnector.reload(t,n,s=>{i.resolve(),r(s)}),i}use(t){if(!t)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!t.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return t.type==="backend"&&(this.modules.backend=t),(t.type==="logger"||t.log&&t.warn&&t.error)&&(this.modules.logger=t),t.type==="languageDetector"&&(this.modules.languageDetector=t),t.type==="i18nFormat"&&(this.modules.i18nFormat=t),t.type==="postProcessor"&&Cp.addPostProcessor(t),t.type==="formatter"&&(this.modules.formatter=t),t.type==="3rdParty"&&this.modules.external.push(t),this}setResolvedLanguage(t){if(!(!t||!this.languages)&&!(["cimode","dev"].indexOf(t)>-1))for(let n=0;n<this.languages.length;n++){const r=this.languages[n];if(!(["cimode","dev"].indexOf(r)>-1)&&this.store.hasLanguageSomeTranslations(r)){this.resolvedLanguage=r;break}}}changeLanguage(t,n){var r=this;this.isLanguageChangingTo=t;const i=Zs();this.emit("languageChanging",t);const s=u=>{this.language=u,this.languages=this.services.languageUtils.toResolveHierarchy(u),this.resolvedLanguage=void 0,this.setResolvedLanguage(u)},o=(u,d)=>{d?(s(d),this.translator.changeLanguage(d),this.isLanguageChangingTo=void 0,this.emit("languageChanged",d),this.logger.log("languageChanged",d)):this.isLanguageChangingTo=void 0,i.resolve(function(){return r.t(...arguments)}),n&&n(u,function(){return r.t(...arguments)})},c=u=>{!t&&!u&&this.services.languageDetector&&(u=[]);const d=typeof u=="string"?u:this.services.languageUtils.getBestMatchFromCodes(u);d&&(this.language||s(d),this.translator.language||this.translator.changeLanguage(d),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(d)),this.loadResources(d,f=>{o(f,d)})};return!t&&this.services.languageDetector&&!this.services.languageDetector.async?c(this.services.languageDetector.detect()):!t&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(c):this.services.languageDetector.detect(c):c(t),i}getFixedT(t,n,r){var i=this;const s=function(o,c){let u;if(typeof c!="object"){for(var d=arguments.length,f=new Array(d>2?d-2:0),p=2;p<d;p++)f[p-2]=arguments[p];u=i.options.overloadTranslationOptionHandler([o,c].concat(f))}else u={...c};u.lng=u.lng||s.lng,u.lngs=u.lngs||s.lngs,u.ns=u.ns||s.ns,u.keyPrefix=u.keyPrefix||r||s.keyPrefix;const l=i.options.keySeparator||".";let v;return u.keyPrefix&&Array.isArray(o)?v=o.map(a=>`${u.keyPrefix}${l}${a}`):v=u.keyPrefix?`${u.keyPrefix}${l}${o}`:o,i.t(v,u)};return typeof t=="string"?s.lng=t:s.lngs=t,s.ns=n,s.keyPrefix=r,s}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(t){this.options.defaultNS=t}hasLoadedNamespace(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const r=n.lng||this.resolvedLanguage||this.languages[0],i=this.options?this.options.fallbackLng:!1,s=this.languages[this.languages.length-1];if(r.toLowerCase()==="cimode")return!0;const o=(c,u)=>{const d=this.services.backendConnector.state[`${c}|${u}`];return d===-1||d===2};if(n.precheck){const c=n.precheck(this,o);if(c!==void 0)return c}return!!(this.hasResourceBundle(r,t)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||o(r,t)&&(!i||o(s,t)))}loadNamespaces(t,n){const r=Zs();return this.options.ns?(typeof t=="string"&&(t=[t]),t.forEach(i=>{this.options.ns.indexOf(i)<0&&this.options.ns.push(i)}),this.loadResources(i=>{r.resolve(),n&&n(i)}),r):(n&&n(),Promise.resolve())}loadLanguages(t,n){const r=Zs();typeof t=="string"&&(t=[t]);const i=this.options.preload||[],s=t.filter(o=>i.indexOf(o)<0&&this.services.languageUtils.isSupportedCode(o));return s.length?(this.options.preload=i.concat(s),this.loadResources(o=>{r.resolve(),n&&n(o)}),r):(n&&n(),Promise.resolve())}dir(t){if(t||(t=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!t)return"rtl";const n=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],r=this.services&&this.services.languageUtils||new Ap(kp());return n.indexOf(r.getLanguagePartFromCode(t))>-1||t.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;return new eo(t,n)}cloneInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Da;const r=t.forkResourceStore;r&&delete t.forkResourceStore;const i={...this.options,...t,isClone:!0},s=new eo(i);return(t.debug!==void 0||t.prefix!==void 0)&&(s.logger=s.logger.clone(t)),["store","services","language"].forEach(c=>{s[c]=this[c]}),s.services={...this.services},s.services.utils={hasLoadedNamespace:s.hasLoadedNamespace.bind(s)},r&&(s.store=new xp(this.store.data,i),s.services.resourceStore=s.store),s.translator=new Ma(s.services,i),s.translator.on("*",function(c){for(var u=arguments.length,d=new Array(u>1?u-1:0),f=1;f<u;f++)d[f-1]=arguments[f];s.emit(c,...d)}),s.init(i,n),s.translator.options=i,s.translator.backendConnector.services.utils={hasLoadedNamespace:s.hasLoadedNamespace.bind(s)},s}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const Ht=eo.createInstance();Ht.createInstance=eo.createInstance,Ht.createInstance,Ht.dir,Ht.init,Ht.loadResources,Ht.reloadResources,Ht.use,Ht.changeLanguage,Ht.getFixedT,Ht.t,Ht.exists,Ht.setDefaultNamespace,Ht.hasLoadedNamespace,Ht.loadNamespaces,Ht.loadLanguages;const Ki=(e,t="EUR")=>new Intl.NumberFormat(Ht.language,{style:"currency",currency:t??"EUR"}).format(e/100),GS=e=>0 .toLocaleString(Ht.language,{style:"currency",currency:e??"EUR",minimumFractionDigits:0,maximumFractionDigits:0}).replace(/\d/g,"").trim(),HS=e=>{window.parent.postMessage(e,"*")},Rp=(e,t)=>Math.abs(Math.round((t.getTime()-e.getTime())/(1e3*3600*24))),Np=(e,t)=>Math.abs(Math.round((t.getTime()-e.getTime())/(1e3*3600*24*7))),Mp=(e,t)=>Math.abs(Math.round((t.getTime()-e.getTime())/(1e3*3600*24*365.25)));function YS(e){const{errorToast:t}=qt(),[n,r]=I.useState(),i=At(),s=()=>{const c={type:e.type??$t.PORTAL,api_key:e.apiKey,shop_uuid:e.shopUuid,contact_uuid:e.contactUuid};return e.cameraFacingMode&&(c.camera_facing_mode=e.cameraFacingMode),e.amountInCents&&(c.amount_in_cents=e.amountInCents),e.allowMultipleGiftcards&&(c.allow_multiple_giftcards=e.allowMultipleGiftcards),e.enableRegistration&&(c.enable_registration=e.enableRegistration),e.enableEmailIdentification&&(c.enable_email_identification=e.enableEmailIdentification),e.enableOnScreenKeyboard&&(c.enable_on_screen_keyboard=e.enableOnScreenKeyboard),e.primaryIdentificationMethod&&(c.primary_identification_method=e.primaryIdentificationMethod),c},o=()=>{i.post("/",s(),{baseURL:`${e.host}/api/v1/portal-sessions`,headers:{Authorization:`Bearer ${e.apiKey}`}}).then(c=>{const u=new ua;u.type=c.data.data.type,u.uuid=c.data.data.uuid,u.contact=c.data.data.contact,u.currency=c.data.data.currency,u.events=c.data.data.events,u.inputData=c.data.data.input_data,u.loyaltyProgram=c.data.data.loyalty_program,u.results=c.data.data.results,r(u)}).catch(t)};return I.useEffect(()=>o(),[]),{portalSession:n}}var Dp={exports:{}};/*!
52
52
  Copyright (c) 2018 Jed Watson.
53
53
  Licensed under the MIT License (MIT), see
54
54
  http://jedwatson.github.io/classnames
55
- */(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var s="",o=0;o<arguments.length;o++){var c=arguments[o];c&&(s=i(s,r(c)))}return s}function r(s){if(typeof s=="string"||typeof s=="number")return s;if(typeof s!="object")return"";if(Array.isArray(s))return n.apply(null,s);if(s.toString!==Object.prototype.toString&&!s.toString.toString().includes("[native code]"))return s.toString();var o="";for(var c in s)t.call(s,c)&&s[c]&&(o=i(o,c));return o}function i(s,o){return o?s?s+" "+o:s+o:s}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(Dp);var WS=Dp.exports;const ln=Iu(WS);function ml(e){return m.jsxs("svg",{...e,"aria-hidden":"true",role:"status",className:ln("inline h-5 w-5 animate-spin fill-[#E5E7EB]",e.className),viewBox:"0 0 100 101",fill:"red",xmlns:"http://www.w3.org/2000/svg",children:[m.jsx("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentFill"}),m.jsx("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentColor"})]})}function rr({message:e=""}){return m.jsxs("div",{className:"flex h-screen w-full items-center justify-center gap-4 text-core-gray-500",children:[m.jsx(ml,{className:"h-[48px] w-[48px]"}),e&&m.jsx("p",{className:"text-xl",children:e})]})}const Pp=Object.prototype.toString;function Pa(e){switch(Pp.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":case"[object WebAssembly.Exception]":return!0;default:return _r(e,Error)}}function zi(e,t){return Pp.call(e)===`[object ${t}]`}function jp(e){return zi(e,"ErrorEvent")}function Lp(e){return zi(e,"DOMError")}function KS(e){return zi(e,"DOMException")}function Cr(e){return zi(e,"String")}function gl(e){return typeof e=="object"&&e!==null&&"__sentry_template_string__"in e&&"__sentry_template_values__"in e}function yl(e){return e===null||gl(e)||typeof e!="object"&&typeof e!="function"}function Qi(e){return zi(e,"Object")}function ja(e){return typeof Event<"u"&&_r(e,Event)}function zS(e){return typeof Element<"u"&&_r(e,Element)}function QS(e){return zi(e,"RegExp")}function La(e){return!!(e&&e.then&&typeof e.then=="function")}function JS(e){return Qi(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e}function _r(e,t){try{return e instanceof t}catch{return!1}}function Bp(e){return!!(typeof e=="object"&&e!==null&&(e.__isVue||e._isVue))}function Ji(e,t=0){return typeof e!="string"||t===0||e.length<=t?e:`${e.slice(0,t)}...`}function Fp(e,t){if(!Array.isArray(e))return"";const n=[];for(let r=0;r<e.length;r++){const i=e[r];try{Bp(i)?n.push("[VueViewModel]"):n.push(String(i))}catch{n.push("[value cannot be serialized]")}}return n.join(t)}function ZS(e,t,n=!1){return Cr(e)?QS(t)?t.test(e):Cr(t)?n?e===t:e.includes(t):!1:!1}function zr(e,t=[],n=!1){return t.some(r=>ZS(e,r,n))}function XS(e,t,n=250,r,i,s,o){if(!s.exception||!s.exception.values||!o||!_r(o.originalException,Error))return;const c=s.exception.values.length>0?s.exception.values[s.exception.values.length-1]:void 0;c&&(s.exception.values=ex(vl(e,t,i,o.originalException,r,s.exception.values,c,0),n))}function vl(e,t,n,r,i,s,o,c){if(s.length>=n+1)return s;let u=[...s];if(_r(r[i],Error)){Up(o,c);const d=e(t,r[i]),f=u.length;Vp(d,i,f,c),u=vl(e,t,n,r[i],i,[d,...u],d,f)}return Array.isArray(r.errors)&&r.errors.forEach((d,f)=>{if(_r(d,Error)){Up(o,c);const p=e(t,d),l=u.length;Vp(p,`errors[${f}]`,l,c),u=vl(e,t,n,d,i,[p,...u],p,l)}}),u}function Up(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 Vp(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 ex(e,t){return e.map(n=>(n.value&&(n.value=Ji(n.value,t)),n))}function qp(e){if(e!==void 0)return e>=400&&e<500?"warning":e>=500?"error":void 0}const _i="8.34.0",nt=globalThis;function Ba(e,t,n){const r=nt,i=r.__SENTRY__=r.__SENTRY__||{},s=i[_i]=i[_i]||{};return s[e]||(s[e]=t())}const Zi=nt,tx=80;function Ar(e,t={}){if(!e)return"<unknown>";try{let n=e;const r=5,i=[];let s=0,o=0;const c=" > ",u=c.length;let d;const f=Array.isArray(t)?t:t.keyAttrs,p=!Array.isArray(t)&&t.maxStringLength||tx;for(;n&&s++<r&&(d=nx(n,f),!(d==="html"||s>1&&o+i.length*u+d.length>=p));)i.push(d),o+=d.length,n=n.parentNode;return i.reverse().join(c)}catch{return"<unknown>"}}function nx(e,t){const n=e,r=[];if(!n||!n.tagName)return"";if(Zi.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 i=t&&t.length?t.filter(o=>n.getAttribute(o)).map(o=>[o,n.getAttribute(o)]):null;if(i&&i.length)i.forEach(o=>{r.push(`[${o[0]}="${o[1]}"]`)});else{n.id&&r.push(`#${n.id}`);const o=n.className;if(o&&Cr(o)){const c=o.split(/\s+/);for(const u of c)r.push(`.${u}`)}}const s=["aria-label","type","name","title","alt"];for(const o of s){const c=n.getAttribute(o);c&&r.push(`[${o}="${c}"]`)}return r.join("")}function $p(){try{return Zi.document.location.href}catch{return""}}function rx(e){return Zi.document&&Zi.document.querySelector?Zi.document.querySelector(e):null}function Gp(e){if(!Zi.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 Xi=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,ix="Sentry Logger ",bl=["debug","info","warn","error","log","assert","trace"],Fa={};function es(e){if(!("console"in nt))return e();const t=nt.console,n={},r=Object.keys(Fa);r.forEach(i=>{const s=Fa[i];n[i]=t[i],t[i]=s});try{return e()}finally{r.forEach(i=>{t[i]=n[i]})}}function sx(){let e=!1;const t={enable:()=>{e=!0},disable:()=>{e=!1},isEnabled:()=>e};return Xi?bl.forEach(n=>{t[n]=(...r)=>{e&&es(()=>{nt.console[n](`${ix}[${n}]:`,...r)})}}):bl.forEach(n=>{t[n]=()=>{}}),t}const Se=Ba("logger",sx),ox=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function ax(e){return e==="http"||e==="https"}function ts(e,t=!1){const{host:n,path:r,pass:i,port:s,projectId:o,protocol:c,publicKey:u}=e;return`${c}://${u}${t&&i?`:${i}`:""}@${n}${s?`:${s}`:""}/${r&&`${r}/`}${o}`}function cx(e){const t=ox.exec(e);if(!t){es(()=>{console.error(`Invalid Sentry Dsn: ${e}`)});return}const[n,r,i="",s="",o="",c=""]=t.slice(1);let u="",d=c;const f=d.split("/");if(f.length>1&&(u=f.slice(0,-1).join("/"),d=f.pop()),d){const p=d.match(/^\d+/);p&&(d=p[0])}return Hp({host:s,pass:i,path:u,projectId:d,port:o,protocol:n,publicKey:r})}function Hp(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function ux(e){if(!Xi)return!0;const{port:t,projectId:n,protocol:r}=e;return["protocol","publicKey","host","projectId"].find(o=>e[o]?!1:(Se.error(`Invalid Sentry Dsn: ${o} missing`),!0))?!1:n.match(/^\d+$/)?ax(r)?t&&isNaN(parseInt(t,10))?(Se.error(`Invalid Sentry Dsn: Invalid port ${t}`),!1):!0:(Se.error(`Invalid Sentry Dsn: Invalid protocol ${r}`),!1):(Se.error(`Invalid Sentry Dsn: Invalid projectId ${n}`),!1)}function Yp(e){const t=typeof e=="string"?cx(e):Hp(e);if(!(!t||!ux(t)))return t}class pr 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 _n(e,t,n){if(!(t in e))return;const r=e[t],i=n(r);typeof i=="function"&&Wp(i,r),e[t]=i}function Gn(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch{Xi&&Se.log(`Failed to add non-enumerable property "${t}" to object`,e)}}function Wp(e,t){try{const n=t.prototype||{};e.prototype=t.prototype=n,Gn(e,"__sentry_original__",t)}catch{}}function wl(e){return e.__sentry_original__}function lx(e){return Object.keys(e).map(t=>`${encodeURIComponent(t)}=${encodeURIComponent(e[t])}`).join("&")}function Kp(e){if(Pa(e))return{message:e.message,name:e.name,stack:e.stack,...Qp(e)};if(ja(e)){const t={type:e.type,target:zp(e.target),currentTarget:zp(e.currentTarget),...Qp(e)};return typeof CustomEvent<"u"&&_r(e,CustomEvent)&&(t.detail=e.detail),t}else return e}function zp(e){try{return zS(e)?Ar(e):Object.prototype.toString.call(e)}catch{return"<unknown>"}}function Qp(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 dx(e,t=40){const n=Object.keys(Kp(e));n.sort();const r=n[0];if(!r)return"[object has no keys]";if(r.length>=t)return Ji(r,t);for(let i=n.length;i>0;i--){const s=n.slice(0,i).join(", ");if(!(s.length>t))return i===n.length?s:Ji(s,t)}return""}function Ht(e){return El(e,new Map)}function El(e,t){if(fx(e)){const n=t.get(e);if(n!==void 0)return n;const r={};t.set(e,r);for(const i of Object.getOwnPropertyNames(e))typeof e[i]<"u"&&(r[i]=El(e[i],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(i=>{r.push(El(i,t))}),r}return e}function fx(e){if(!Qi(e))return!1;try{const t=Object.getPrototypeOf(e).constructor.name;return!t||t==="Object"}catch{return!0}}const Jp=50,Ai="?",Zp=/\(error: (.*)\)/,Xp=/captureMessage|captureException/;function em(...e){const t=e.sort((n,r)=>n[0]-r[0]).map(n=>n[1]);return(n,r=0,i=0)=>{const s=[],o=n.split(`
55
+ */(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var s="",o=0;o<arguments.length;o++){var c=arguments[o];c&&(s=i(s,r(c)))}return s}function r(s){if(typeof s=="string"||typeof s=="number")return s;if(typeof s!="object")return"";if(Array.isArray(s))return n.apply(null,s);if(s.toString!==Object.prototype.toString&&!s.toString.toString().includes("[native code]"))return s.toString();var o="";for(var c in s)t.call(s,c)&&s[c]&&(o=i(o,c));return o}function i(s,o){return o?s?s+" "+o:s+o:s}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(Dp);var WS=Dp.exports;const ln=Iu(WS);function ml(e){return m.jsxs("svg",{...e,"aria-hidden":"true",role:"status",className:ln("inline h-5 w-5 animate-spin fill-[#E5E7EB]",e.className),viewBox:"0 0 100 101",fill:"red",xmlns:"http://www.w3.org/2000/svg",children:[m.jsx("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentFill"}),m.jsx("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentColor"})]})}function ir({message:e=""}){return m.jsxs("div",{className:"flex h-screen w-full items-center justify-center gap-4 text-core-gray-500",children:[m.jsx(ml,{className:"h-[48px] w-[48px]"}),e&&m.jsx("p",{className:"text-xl",children:e})]})}const Pp=Object.prototype.toString;function Pa(e){switch(Pp.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":case"[object WebAssembly.Exception]":return!0;default:return _r(e,Error)}}function zi(e,t){return Pp.call(e)===`[object ${t}]`}function jp(e){return zi(e,"ErrorEvent")}function Lp(e){return zi(e,"DOMError")}function KS(e){return zi(e,"DOMException")}function Cr(e){return zi(e,"String")}function gl(e){return typeof e=="object"&&e!==null&&"__sentry_template_string__"in e&&"__sentry_template_values__"in e}function yl(e){return e===null||gl(e)||typeof e!="object"&&typeof e!="function"}function Qi(e){return zi(e,"Object")}function ja(e){return typeof Event<"u"&&_r(e,Event)}function zS(e){return typeof Element<"u"&&_r(e,Element)}function QS(e){return zi(e,"RegExp")}function La(e){return!!(e&&e.then&&typeof e.then=="function")}function JS(e){return Qi(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e}function _r(e,t){try{return e instanceof t}catch{return!1}}function Bp(e){return!!(typeof e=="object"&&e!==null&&(e.__isVue||e._isVue))}function Ji(e,t=0){return typeof e!="string"||t===0||e.length<=t?e:`${e.slice(0,t)}...`}function Fp(e,t){if(!Array.isArray(e))return"";const n=[];for(let r=0;r<e.length;r++){const i=e[r];try{Bp(i)?n.push("[VueViewModel]"):n.push(String(i))}catch{n.push("[value cannot be serialized]")}}return n.join(t)}function ZS(e,t,n=!1){return Cr(e)?QS(t)?t.test(e):Cr(t)?n?e===t:e.includes(t):!1:!1}function zr(e,t=[],n=!1){return t.some(r=>ZS(e,r,n))}function XS(e,t,n=250,r,i,s,o){if(!s.exception||!s.exception.values||!o||!_r(o.originalException,Error))return;const c=s.exception.values.length>0?s.exception.values[s.exception.values.length-1]:void 0;c&&(s.exception.values=ex(vl(e,t,i,o.originalException,r,s.exception.values,c,0),n))}function vl(e,t,n,r,i,s,o,c){if(s.length>=n+1)return s;let u=[...s];if(_r(r[i],Error)){Up(o,c);const d=e(t,r[i]),f=u.length;Vp(d,i,f,c),u=vl(e,t,n,r[i],i,[d,...u],d,f)}return Array.isArray(r.errors)&&r.errors.forEach((d,f)=>{if(_r(d,Error)){Up(o,c);const p=e(t,d),l=u.length;Vp(p,`errors[${f}]`,l,c),u=vl(e,t,n,d,i,[p,...u],p,l)}}),u}function Up(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 Vp(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 ex(e,t){return e.map(n=>(n.value&&(n.value=Ji(n.value,t)),n))}function qp(e){if(e!==void 0)return e>=400&&e<500?"warning":e>=500?"error":void 0}const _i="8.34.0",nt=globalThis;function Ba(e,t,n){const r=nt,i=r.__SENTRY__=r.__SENTRY__||{},s=i[_i]=i[_i]||{};return s[e]||(s[e]=t())}const Zi=nt,tx=80;function Ar(e,t={}){if(!e)return"<unknown>";try{let n=e;const r=5,i=[];let s=0,o=0;const c=" > ",u=c.length;let d;const f=Array.isArray(t)?t:t.keyAttrs,p=!Array.isArray(t)&&t.maxStringLength||tx;for(;n&&s++<r&&(d=nx(n,f),!(d==="html"||s>1&&o+i.length*u+d.length>=p));)i.push(d),o+=d.length,n=n.parentNode;return i.reverse().join(c)}catch{return"<unknown>"}}function nx(e,t){const n=e,r=[];if(!n||!n.tagName)return"";if(Zi.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 i=t&&t.length?t.filter(o=>n.getAttribute(o)).map(o=>[o,n.getAttribute(o)]):null;if(i&&i.length)i.forEach(o=>{r.push(`[${o[0]}="${o[1]}"]`)});else{n.id&&r.push(`#${n.id}`);const o=n.className;if(o&&Cr(o)){const c=o.split(/\s+/);for(const u of c)r.push(`.${u}`)}}const s=["aria-label","type","name","title","alt"];for(const o of s){const c=n.getAttribute(o);c&&r.push(`[${o}="${c}"]`)}return r.join("")}function $p(){try{return Zi.document.location.href}catch{return""}}function rx(e){return Zi.document&&Zi.document.querySelector?Zi.document.querySelector(e):null}function Gp(e){if(!Zi.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 Xi=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,ix="Sentry Logger ",bl=["debug","info","warn","error","log","assert","trace"],Fa={};function es(e){if(!("console"in nt))return e();const t=nt.console,n={},r=Object.keys(Fa);r.forEach(i=>{const s=Fa[i];n[i]=t[i],t[i]=s});try{return e()}finally{r.forEach(i=>{t[i]=n[i]})}}function sx(){let e=!1;const t={enable:()=>{e=!0},disable:()=>{e=!1},isEnabled:()=>e};return Xi?bl.forEach(n=>{t[n]=(...r)=>{e&&es(()=>{nt.console[n](`${ix}[${n}]:`,...r)})}}):bl.forEach(n=>{t[n]=()=>{}}),t}const Se=Ba("logger",sx),ox=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function ax(e){return e==="http"||e==="https"}function ts(e,t=!1){const{host:n,path:r,pass:i,port:s,projectId:o,protocol:c,publicKey:u}=e;return`${c}://${u}${t&&i?`:${i}`:""}@${n}${s?`:${s}`:""}/${r&&`${r}/`}${o}`}function cx(e){const t=ox.exec(e);if(!t){es(()=>{console.error(`Invalid Sentry Dsn: ${e}`)});return}const[n,r,i="",s="",o="",c=""]=t.slice(1);let u="",d=c;const f=d.split("/");if(f.length>1&&(u=f.slice(0,-1).join("/"),d=f.pop()),d){const p=d.match(/^\d+/);p&&(d=p[0])}return Hp({host:s,pass:i,path:u,projectId:d,port:o,protocol:n,publicKey:r})}function Hp(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function ux(e){if(!Xi)return!0;const{port:t,projectId:n,protocol:r}=e;return["protocol","publicKey","host","projectId"].find(o=>e[o]?!1:(Se.error(`Invalid Sentry Dsn: ${o} missing`),!0))?!1:n.match(/^\d+$/)?ax(r)?t&&isNaN(parseInt(t,10))?(Se.error(`Invalid Sentry Dsn: Invalid port ${t}`),!1):!0:(Se.error(`Invalid Sentry Dsn: Invalid protocol ${r}`),!1):(Se.error(`Invalid Sentry Dsn: Invalid projectId ${n}`),!1)}function Yp(e){const t=typeof e=="string"?cx(e):Hp(e);if(!(!t||!ux(t)))return t}class pr 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 An(e,t,n){if(!(t in e))return;const r=e[t],i=n(r);typeof i=="function"&&Wp(i,r),e[t]=i}function Gn(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch{Xi&&Se.log(`Failed to add non-enumerable property "${t}" to object`,e)}}function Wp(e,t){try{const n=t.prototype||{};e.prototype=t.prototype=n,Gn(e,"__sentry_original__",t)}catch{}}function wl(e){return e.__sentry_original__}function lx(e){return Object.keys(e).map(t=>`${encodeURIComponent(t)}=${encodeURIComponent(e[t])}`).join("&")}function Kp(e){if(Pa(e))return{message:e.message,name:e.name,stack:e.stack,...Qp(e)};if(ja(e)){const t={type:e.type,target:zp(e.target),currentTarget:zp(e.currentTarget),...Qp(e)};return typeof CustomEvent<"u"&&_r(e,CustomEvent)&&(t.detail=e.detail),t}else return e}function zp(e){try{return zS(e)?Ar(e):Object.prototype.toString.call(e)}catch{return"<unknown>"}}function Qp(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 dx(e,t=40){const n=Object.keys(Kp(e));n.sort();const r=n[0];if(!r)return"[object has no keys]";if(r.length>=t)return Ji(r,t);for(let i=n.length;i>0;i--){const s=n.slice(0,i).join(", ");if(!(s.length>t))return i===n.length?s:Ji(s,t)}return""}function Yt(e){return El(e,new Map)}function El(e,t){if(fx(e)){const n=t.get(e);if(n!==void 0)return n;const r={};t.set(e,r);for(const i of Object.getOwnPropertyNames(e))typeof e[i]<"u"&&(r[i]=El(e[i],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(i=>{r.push(El(i,t))}),r}return e}function fx(e){if(!Qi(e))return!1;try{const t=Object.getPrototypeOf(e).constructor.name;return!t||t==="Object"}catch{return!0}}const Jp=50,Ai="?",Zp=/\(error: (.*)\)/,Xp=/captureMessage|captureException/;function em(...e){const t=e.sort((n,r)=>n[0]-r[0]).map(n=>n[1]);return(n,r=0,i=0)=>{const s=[],o=n.split(`
56
56
  `);for(let c=r;c<o.length;c++){const u=o[c];if(u.length>1024)continue;const d=Zp.test(u)?u.replace(Zp,"$1"):u;if(!d.match(/\S*Error: /)){for(const f of t){const p=f(d);if(p){s.push(p);break}}if(s.length>=Jp+i)break}}return px(s.slice(i))}}function hx(e){return Array.isArray(e)?em(...e):e}function px(e){if(!e.length)return[];const t=Array.from(e);return/sentryWrapped/.test(Ua(t).function||"")&&t.pop(),t.reverse(),Xp.test(Ua(t).function||"")&&(t.pop(),Xp.test(Ua(t).function||"")&&t.pop()),t.slice(0,Jp).map(n=>({...n,filename:n.filename||Ua(t).filename,function:n.function||Ai}))}function Ua(e){return e[e.length-1]||{}}const Sl="<anonymous>";function Tr(e){try{return!e||typeof e!="function"?Sl:e.name||Sl}catch{return Sl}}function tm(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 Va={},nm={};function Qr(e,t){Va[e]=Va[e]||[],Va[e].push(t)}function Jr(e,t){nm[e]||(t(),nm[e]=!0)}function Hn(e,t){const n=e&&Va[e];if(n)for(const r of n)try{r(t)}catch(i){Xi&&Se.error(`Error while triggering instrumentation handler.
57
57
  Type: ${e}
58
58
  Name: ${Tr(r)}
59
- Error:`,i)}}function mx(e){const t="console";Qr(t,e),Jr(t,gx)}function gx(){"console"in nt&&bl.forEach(function(e){e in nt.console&&_n(nt.console,e,function(t){return Fa[e]=t,function(...n){Hn("console",{args:n,level:e});const i=Fa[e];i&&i.apply(nt.console,n)}})})}const xl=nt;function rm(){if(!("fetch"in xl))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch{return!1}}function Cl(e){return e&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function yx(){if(typeof EdgeRuntime=="string")return!0;if(!rm())return!1;if(Cl(xl.fetch))return!0;let e=!1;const t=xl.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=Cl(n.contentWindow.fetch)),t.head.removeChild(n)}catch(n){Xi&&Se.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",n)}return e}const im=1e3;function to(){return Date.now()/im}function vx(){const{performance:e}=nt;if(!e||!e.now)return to;const t=Date.now()-e.now(),n=e.timeOrigin==null?t:e.timeOrigin;return()=>(n+e.now())/im}const gn=vx(),yn=(()=>{const{performance:e}=nt;if(!e||!e.now)return;const t=3600*1e3,n=e.now(),r=Date.now(),i=e.timeOrigin?Math.abs(e.timeOrigin+n-r):t,s=i<t,o=e.timing&&e.timing.navigationStart,u=typeof o=="number"?Math.abs(o+n-r):t,d=u<t;return s||d?i<=u?e.timeOrigin:o:r})();function sm(e,t){const n="fetch";Qr(n,e),Jr(n,()=>om(void 0,t))}function bx(e){const t="fetch-body-resolved";Qr(t,e),Jr(t,()=>om(Ex))}function om(e,t=!1){t&&!yx()||_n(nt,"fetch",function(n){return function(...r){const{method:i,url:s}=Sx(r),o={args:r,fetchData:{method:i,url:s},startTimestamp:gn()*1e3};e||Hn("fetch",{...o});const c=new Error().stack;return n.apply(nt,r).then(async u=>(e?e(u):Hn("fetch",{...o,endTimestamp:gn()*1e3,response:u}),u),u=>{throw Hn("fetch",{...o,endTimestamp:gn()*1e3,error:u}),Pa(u)&&u.stack===void 0&&(u.stack=c,Gn(u,"framesToPop",1)),u})}})}async function wx(e,t){if(e&&e.body){const n=e.body,r=n.getReader(),i=setTimeout(()=>{n.cancel().then(null,()=>{})},90*1e3);let s=!0;for(;s;){let o;try{o=setTimeout(()=>{n.cancel().then(null,()=>{})},5e3);const{done:c}=await r.read();clearTimeout(o),c&&(t(),s=!1)}catch{s=!1}finally{clearTimeout(o)}}clearTimeout(i),r.releaseLock(),n.cancel().then(null,()=>{})}}function Ex(e){let t;try{t=e.clone()}catch{return}wx(t,()=>{Hn("fetch-body-resolved",{endTimestamp:gn()*1e3,response:e})})}function _l(e,t){return!!e&&typeof e=="object"&&!!e[t]}function am(e){return typeof e=="string"?e:e?_l(e,"url")?e.url:e.toString?e.toString():"":""}function Sx(e){if(e.length===0)return{method:"GET",url:""};if(e.length===2){const[n,r]=e;return{url:am(n),method:_l(r,"method")?String(r.method).toUpperCase():"GET"}}const t=e[0];return{url:am(t),method:_l(t,"method")?String(t.method).toUpperCase():"GET"}}let qa=null;function cm(e){const t="error";Qr(t,e),Jr(t,xx)}function xx(){qa=nt.onerror,nt.onerror=function(e,t,n,r,i){return Hn("error",{column:r,error:i,line:n,msg:e,url:t}),qa&&!qa.__SENTRY_LOADER__?qa.apply(this,arguments):!1},nt.onerror.__SENTRY_INSTRUMENTED__=!0}let $a=null;function um(e){const t="unhandledrejection";Qr(t,e),Jr(t,Cx)}function Cx(){$a=nt.onunhandledrejection,nt.onunhandledrejection=function(e){return Hn("unhandledrejection",e),$a&&!$a.__SENTRY_LOADER__?$a.apply(this,arguments):!0},nt.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}function _x(){return typeof __SENTRY_BROWSER_BUNDLE__<"u"&&!!__SENTRY_BROWSER_BUNDLE__}function Ax(){return"npm"}function Tx(){return!_x()&&Object.prototype.toString.call(typeof process<"u"?process:0)==="[object process]"}function lm(){return typeof window<"u"&&(!Tx()||Ix())}function Ix(){return nt.process!==void 0&&nt.process.type==="renderer"}function kx(){const e=typeof WeakSet=="function",t=e?new WeakSet:[];function n(i){if(e)return t.has(i)?!0:(t.add(i),!1);for(let s=0;s<t.length;s++)if(t[s]===i)return!0;return t.push(i),!1}function r(i){if(e)t.delete(i);else for(let s=0;s<t.length;s++)if(t[s]===i){t.splice(s,1);break}}return[n,r]}function St(){const e=nt,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("10000000100040008000"+1e11).replace(/[018]/g,r=>(r^(n()&15)>>r/4).toString(16))}function dm(e){return e.exception&&e.exception.values?e.exception.values[0]:void 0}function Zr(e){const{message:t,event_id:n}=e;if(t)return t;const r=dm(e);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||n||"<unknown>":n||"<unknown>"}function Al(e,t,n){const r=e.exception=e.exception||{},i=r.values=r.values||[],s=i[0]=i[0]||{};s.value||(s.value=t||""),s.type||(s.type="Error")}function no(e,t){const n=dm(e);if(!n)return;const r={type:"generic",handled:!0},i=n.mechanism;if(n.mechanism={...r,...i,...t},t&&"data"in t){const s={...i&&i.data,...t.data};n.mechanism.data=s}}function fm(e){if(e&&e.__sentry_captured__)return!0;try{Gn(e,"__sentry_captured__",!0)}catch{}return!1}function hm(e){return Array.isArray(e)?e:[e]}function mr(e,t=100,n=1/0){try{return Tl("",e,t,n)}catch(r){return{ERROR:`**non-serializable** (${r})`}}}function pm(e,t=3,n=100*1024){const r=mr(e,t);return Mx(r)>n?pm(e,t-1,n):r}function Tl(e,t,n=1/0,r=1/0,i=kx()){const[s,o]=i;if(t==null||["boolean","string"].includes(typeof t)||typeof t=="number"&&Number.isFinite(t))return t;const c=Ox(e,t);if(!c.startsWith("[object "))return c;if(t.__sentry_skip_normalization__)return t;const u=typeof t.__sentry_override_normalization_depth__=="number"?t.__sentry_override_normalization_depth__:n;if(u===0)return c.replace("object ","");if(s(t))return"[Circular ~]";const d=t;if(d&&typeof d.toJSON=="function")try{const v=d.toJSON();return Tl("",v,u-1,r,i)}catch{}const f=Array.isArray(t)?[]:{};let p=0;const l=Kp(t);for(const v in l){if(!Object.prototype.hasOwnProperty.call(l,v))continue;if(p>=r){f[v]="[MaxProperties ~]";break}const a=l[v];f[v]=Tl(v,a,u-1,r,i),p++}return o(t),f}function Ox(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(Bp(t))return"[VueViewModel]";if(JS(t))return"[SyntheticEvent]";if(typeof t=="number"&&!Number.isFinite(t))return`[${t}]`;if(typeof t=="function")return`[Function: ${Tr(t)}]`;if(typeof t=="symbol")return`[${String(t)}]`;if(typeof t=="bigint")return`[BigInt: ${String(t)}]`;const n=Nx(t);return/^HTML(\w*)Element$/.test(n)?`[HTMLElement: ${n}]`:`[object ${n}]`}catch(n){return`**non-serializable** (${n})`}}function Nx(e){const t=Object.getPrototypeOf(e);return t?t.constructor.name:"null prototype"}function Rx(e){return~-encodeURI(e).split(/%..|./).length}function Mx(e){return Rx(JSON.stringify(e))}var Ir;(function(e){e[e.PENDING=0]="PENDING";const n=1;e[e.RESOLVED=n]="RESOLVED";const r=2;e[e.REJECTED=r]="REJECTED"})(Ir||(Ir={}));function kr(e){return new Yn(t=>{t(e)})}function Ga(e){return new Yn((t,n)=>{n(e)})}class Yn{constructor(t){Yn.prototype.__init.call(this),Yn.prototype.__init2.call(this),Yn.prototype.__init3.call(this),Yn.prototype.__init4.call(this),this._state=Ir.PENDING,this._handlers=[];try{t(this._resolve,this._reject)}catch(n){this._reject(n)}}then(t,n){return new Yn((r,i)=>{this._handlers.push([!1,s=>{if(!t)r(s);else try{r(t(s))}catch(o){i(o)}},s=>{if(!n)i(s);else try{r(n(s))}catch(o){i(o)}}]),this._executeHandlers()})}catch(t){return this.then(n=>n,t)}finally(t){return new Yn((n,r)=>{let i,s;return this.then(o=>{s=!1,i=o,t&&t()},o=>{s=!0,i=o,t&&t()}).then(()=>{if(s){r(i);return}n(i)})})}__init(){this._resolve=t=>{this._setResult(Ir.RESOLVED,t)}}__init2(){this._reject=t=>{this._setResult(Ir.REJECTED,t)}}__init3(){this._setResult=(t,n)=>{if(this._state===Ir.PENDING){if(La(n)){n.then(this._resolve,this._reject);return}this._state=t,this._value=n,this._executeHandlers()}}}__init4(){this._executeHandlers=()=>{if(this._state===Ir.PENDING)return;const t=this._handlers.slice();this._handlers=[],t.forEach(n=>{n[0]||(this._state===Ir.RESOLVED&&n[1](this._value),this._state===Ir.REJECTED&&n[2](this._value),n[0]=!0)})}}}function Dx(e){const t=[];function n(){return e===void 0||t.length<e}function r(o){return t.splice(t.indexOf(o),1)[0]||Promise.resolve(void 0)}function i(o){if(!n())return Ga(new pr("Not adding Promise because buffer limit was reached."));const c=o();return t.indexOf(c)===-1&&t.push(c),c.then(()=>r(c)).then(null,()=>r(c).then(null,()=>{})),c}function s(o){return new Yn((c,u)=>{let d=t.length;if(!d)return c(!0);const f=setTimeout(()=>{o&&o>0&&c(!1)},o);t.forEach(p=>{kr(p).then(()=>{--d||(clearTimeout(f),c(!0))},u)})})}return{$:t,add:i,drain:s}}function Ti(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}}const Px=["fatal","error","warning","log","info","debug"];function mm(e){return e==="warn"?"warning":Px.includes(e)?e:"log"}const Il="baggage",gm="sentry-",jx=/^sentry-/,Lx=8192;function ym(e){const t=Bx(e);if(!t)return;const n=Object.entries(t).reduce((r,[i,s])=>{if(i.match(jx)){const o=i.slice(gm.length);r[o]=s}return r},{});if(Object.keys(n).length>0)return n}function vm(e){if(!e)return;const t=Object.entries(e).reduce((n,[r,i])=>(i&&(n[`${gm}${r}`]=i),n),{});return Fx(t)}function Bx(e){if(!(!e||!Cr(e)&&!Array.isArray(e)))return Array.isArray(e)?e.reduce((t,n)=>{const r=bm(n);return Object.entries(r).forEach(([i,s])=>{t[i]=s}),t},{}):bm(e)}function bm(e){return e.split(",").map(t=>t.split("=").map(n=>decodeURIComponent(n.trim()))).reduce((t,[n,r])=>(n&&r&&(t[n]=r),t),{})}function Fx(e){if(Object.keys(e).length!==0)return Object.entries(e).reduce((t,[n,r],i)=>{const s=`${encodeURIComponent(n)}=${encodeURIComponent(r)}`,o=i===0?s:`${t},${s}`;return o.length>Lx?(Xi&&Se.warn(`Not adding key: ${n} with val: ${r} to baggage header due to exceeding baggage size limits.`),t):o},"")}const Ux=new RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function Vx(e){if(!e)return;const t=e.match(Ux);if(!t)return;let n;return t[3]==="1"?n=!0:t[3]==="0"&&(n=!1),{traceId:t[1],parentSampled:n,parentSpanId:t[2]}}function qx(e,t){const n=Vx(e),r=ym(t),{traceId:i,parentSpanId:s,parentSampled:o}=n||{};return n?{traceId:i||St(),parentSpanId:s||St().substring(16),spanId:St().substring(16),sampled:o,dsc:r||{}}:{traceId:i||St(),spanId:St().substring(16)}}function kl(e=St(),t=St().substring(16),n){let r="";return n!==void 0&&(r=n?"-1":"-0"),`${e}-${t}${r}`}function Ii(e,t=[]){return[e,t]}function $x(e,t){const[n,r]=e;return[n,[...r,t]]}function wm(e,t){const n=e[1];for(const r of n){const i=r[0].type;if(t(r,i))return!0}return!1}function Ol(e){return nt.__SENTRY__&&nt.__SENTRY__.encodePolyfill?nt.__SENTRY__.encodePolyfill(e):new TextEncoder().encode(e)}function Gx(e){const[t,n]=e;let r=JSON.stringify(t);function i(s){typeof r=="string"?r=typeof s=="string"?r+s:[Ol(r),s]:r.push(typeof s=="string"?Ol(s):s)}for(const s of n){const[o,c]=s;if(i(`
59
+ Error:`,i)}}function mx(e){const t="console";Qr(t,e),Jr(t,gx)}function gx(){"console"in nt&&bl.forEach(function(e){e in nt.console&&An(nt.console,e,function(t){return Fa[e]=t,function(...n){Hn("console",{args:n,level:e});const i=Fa[e];i&&i.apply(nt.console,n)}})})}const xl=nt;function rm(){if(!("fetch"in xl))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch{return!1}}function Cl(e){return e&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function yx(){if(typeof EdgeRuntime=="string")return!0;if(!rm())return!1;if(Cl(xl.fetch))return!0;let e=!1;const t=xl.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=Cl(n.contentWindow.fetch)),t.head.removeChild(n)}catch(n){Xi&&Se.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",n)}return e}const im=1e3;function to(){return Date.now()/im}function vx(){const{performance:e}=nt;if(!e||!e.now)return to;const t=Date.now()-e.now(),n=e.timeOrigin==null?t:e.timeOrigin;return()=>(n+e.now())/im}const vn=vx(),bn=(()=>{const{performance:e}=nt;if(!e||!e.now)return;const t=3600*1e3,n=e.now(),r=Date.now(),i=e.timeOrigin?Math.abs(e.timeOrigin+n-r):t,s=i<t,o=e.timing&&e.timing.navigationStart,u=typeof o=="number"?Math.abs(o+n-r):t,d=u<t;return s||d?i<=u?e.timeOrigin:o:r})();function sm(e,t){const n="fetch";Qr(n,e),Jr(n,()=>om(void 0,t))}function bx(e){const t="fetch-body-resolved";Qr(t,e),Jr(t,()=>om(Ex))}function om(e,t=!1){t&&!yx()||An(nt,"fetch",function(n){return function(...r){const{method:i,url:s}=Sx(r),o={args:r,fetchData:{method:i,url:s},startTimestamp:vn()*1e3};e||Hn("fetch",{...o});const c=new Error().stack;return n.apply(nt,r).then(async u=>(e?e(u):Hn("fetch",{...o,endTimestamp:vn()*1e3,response:u}),u),u=>{throw Hn("fetch",{...o,endTimestamp:vn()*1e3,error:u}),Pa(u)&&u.stack===void 0&&(u.stack=c,Gn(u,"framesToPop",1)),u})}})}async function wx(e,t){if(e&&e.body){const n=e.body,r=n.getReader(),i=setTimeout(()=>{n.cancel().then(null,()=>{})},90*1e3);let s=!0;for(;s;){let o;try{o=setTimeout(()=>{n.cancel().then(null,()=>{})},5e3);const{done:c}=await r.read();clearTimeout(o),c&&(t(),s=!1)}catch{s=!1}finally{clearTimeout(o)}}clearTimeout(i),r.releaseLock(),n.cancel().then(null,()=>{})}}function Ex(e){let t;try{t=e.clone()}catch{return}wx(t,()=>{Hn("fetch-body-resolved",{endTimestamp:vn()*1e3,response:e})})}function _l(e,t){return!!e&&typeof e=="object"&&!!e[t]}function am(e){return typeof e=="string"?e:e?_l(e,"url")?e.url:e.toString?e.toString():"":""}function Sx(e){if(e.length===0)return{method:"GET",url:""};if(e.length===2){const[n,r]=e;return{url:am(n),method:_l(r,"method")?String(r.method).toUpperCase():"GET"}}const t=e[0];return{url:am(t),method:_l(t,"method")?String(t.method).toUpperCase():"GET"}}let qa=null;function cm(e){const t="error";Qr(t,e),Jr(t,xx)}function xx(){qa=nt.onerror,nt.onerror=function(e,t,n,r,i){return Hn("error",{column:r,error:i,line:n,msg:e,url:t}),qa&&!qa.__SENTRY_LOADER__?qa.apply(this,arguments):!1},nt.onerror.__SENTRY_INSTRUMENTED__=!0}let $a=null;function um(e){const t="unhandledrejection";Qr(t,e),Jr(t,Cx)}function Cx(){$a=nt.onunhandledrejection,nt.onunhandledrejection=function(e){return Hn("unhandledrejection",e),$a&&!$a.__SENTRY_LOADER__?$a.apply(this,arguments):!0},nt.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}function _x(){return typeof __SENTRY_BROWSER_BUNDLE__<"u"&&!!__SENTRY_BROWSER_BUNDLE__}function Ax(){return"npm"}function Tx(){return!_x()&&Object.prototype.toString.call(typeof process<"u"?process:0)==="[object process]"}function lm(){return typeof window<"u"&&(!Tx()||Ix())}function Ix(){return nt.process!==void 0&&nt.process.type==="renderer"}function kx(){const e=typeof WeakSet=="function",t=e?new WeakSet:[];function n(i){if(e)return t.has(i)?!0:(t.add(i),!1);for(let s=0;s<t.length;s++)if(t[s]===i)return!0;return t.push(i),!1}function r(i){if(e)t.delete(i);else for(let s=0;s<t.length;s++)if(t[s]===i){t.splice(s,1);break}}return[n,r]}function St(){const e=nt,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("10000000100040008000"+1e11).replace(/[018]/g,r=>(r^(n()&15)>>r/4).toString(16))}function dm(e){return e.exception&&e.exception.values?e.exception.values[0]:void 0}function Zr(e){const{message:t,event_id:n}=e;if(t)return t;const r=dm(e);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||n||"<unknown>":n||"<unknown>"}function Al(e,t,n){const r=e.exception=e.exception||{},i=r.values=r.values||[],s=i[0]=i[0]||{};s.value||(s.value=t||""),s.type||(s.type="Error")}function no(e,t){const n=dm(e);if(!n)return;const r={type:"generic",handled:!0},i=n.mechanism;if(n.mechanism={...r,...i,...t},t&&"data"in t){const s={...i&&i.data,...t.data};n.mechanism.data=s}}function fm(e){if(e&&e.__sentry_captured__)return!0;try{Gn(e,"__sentry_captured__",!0)}catch{}return!1}function hm(e){return Array.isArray(e)?e:[e]}function mr(e,t=100,n=1/0){try{return Tl("",e,t,n)}catch(r){return{ERROR:`**non-serializable** (${r})`}}}function pm(e,t=3,n=100*1024){const r=mr(e,t);return Mx(r)>n?pm(e,t-1,n):r}function Tl(e,t,n=1/0,r=1/0,i=kx()){const[s,o]=i;if(t==null||["boolean","string"].includes(typeof t)||typeof t=="number"&&Number.isFinite(t))return t;const c=Ox(e,t);if(!c.startsWith("[object "))return c;if(t.__sentry_skip_normalization__)return t;const u=typeof t.__sentry_override_normalization_depth__=="number"?t.__sentry_override_normalization_depth__:n;if(u===0)return c.replace("object ","");if(s(t))return"[Circular ~]";const d=t;if(d&&typeof d.toJSON=="function")try{const v=d.toJSON();return Tl("",v,u-1,r,i)}catch{}const f=Array.isArray(t)?[]:{};let p=0;const l=Kp(t);for(const v in l){if(!Object.prototype.hasOwnProperty.call(l,v))continue;if(p>=r){f[v]="[MaxProperties ~]";break}const a=l[v];f[v]=Tl(v,a,u-1,r,i),p++}return o(t),f}function Ox(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(Bp(t))return"[VueViewModel]";if(JS(t))return"[SyntheticEvent]";if(typeof t=="number"&&!Number.isFinite(t))return`[${t}]`;if(typeof t=="function")return`[Function: ${Tr(t)}]`;if(typeof t=="symbol")return`[${String(t)}]`;if(typeof t=="bigint")return`[BigInt: ${String(t)}]`;const n=Rx(t);return/^HTML(\w*)Element$/.test(n)?`[HTMLElement: ${n}]`:`[object ${n}]`}catch(n){return`**non-serializable** (${n})`}}function Rx(e){const t=Object.getPrototypeOf(e);return t?t.constructor.name:"null prototype"}function Nx(e){return~-encodeURI(e).split(/%..|./).length}function Mx(e){return Nx(JSON.stringify(e))}var Ir;(function(e){e[e.PENDING=0]="PENDING";const n=1;e[e.RESOLVED=n]="RESOLVED";const r=2;e[e.REJECTED=r]="REJECTED"})(Ir||(Ir={}));function kr(e){return new Yn(t=>{t(e)})}function Ga(e){return new Yn((t,n)=>{n(e)})}class Yn{constructor(t){Yn.prototype.__init.call(this),Yn.prototype.__init2.call(this),Yn.prototype.__init3.call(this),Yn.prototype.__init4.call(this),this._state=Ir.PENDING,this._handlers=[];try{t(this._resolve,this._reject)}catch(n){this._reject(n)}}then(t,n){return new Yn((r,i)=>{this._handlers.push([!1,s=>{if(!t)r(s);else try{r(t(s))}catch(o){i(o)}},s=>{if(!n)i(s);else try{r(n(s))}catch(o){i(o)}}]),this._executeHandlers()})}catch(t){return this.then(n=>n,t)}finally(t){return new Yn((n,r)=>{let i,s;return this.then(o=>{s=!1,i=o,t&&t()},o=>{s=!0,i=o,t&&t()}).then(()=>{if(s){r(i);return}n(i)})})}__init(){this._resolve=t=>{this._setResult(Ir.RESOLVED,t)}}__init2(){this._reject=t=>{this._setResult(Ir.REJECTED,t)}}__init3(){this._setResult=(t,n)=>{if(this._state===Ir.PENDING){if(La(n)){n.then(this._resolve,this._reject);return}this._state=t,this._value=n,this._executeHandlers()}}}__init4(){this._executeHandlers=()=>{if(this._state===Ir.PENDING)return;const t=this._handlers.slice();this._handlers=[],t.forEach(n=>{n[0]||(this._state===Ir.RESOLVED&&n[1](this._value),this._state===Ir.REJECTED&&n[2](this._value),n[0]=!0)})}}}function Dx(e){const t=[];function n(){return e===void 0||t.length<e}function r(o){return t.splice(t.indexOf(o),1)[0]||Promise.resolve(void 0)}function i(o){if(!n())return Ga(new pr("Not adding Promise because buffer limit was reached."));const c=o();return t.indexOf(c)===-1&&t.push(c),c.then(()=>r(c)).then(null,()=>r(c).then(null,()=>{})),c}function s(o){return new Yn((c,u)=>{let d=t.length;if(!d)return c(!0);const f=setTimeout(()=>{o&&o>0&&c(!1)},o);t.forEach(p=>{kr(p).then(()=>{--d||(clearTimeout(f),c(!0))},u)})})}return{$:t,add:i,drain:s}}function Ti(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}}const Px=["fatal","error","warning","log","info","debug"];function mm(e){return e==="warn"?"warning":Px.includes(e)?e:"log"}const Il="baggage",gm="sentry-",jx=/^sentry-/,Lx=8192;function ym(e){const t=Bx(e);if(!t)return;const n=Object.entries(t).reduce((r,[i,s])=>{if(i.match(jx)){const o=i.slice(gm.length);r[o]=s}return r},{});if(Object.keys(n).length>0)return n}function vm(e){if(!e)return;const t=Object.entries(e).reduce((n,[r,i])=>(i&&(n[`${gm}${r}`]=i),n),{});return Fx(t)}function Bx(e){if(!(!e||!Cr(e)&&!Array.isArray(e)))return Array.isArray(e)?e.reduce((t,n)=>{const r=bm(n);return Object.entries(r).forEach(([i,s])=>{t[i]=s}),t},{}):bm(e)}function bm(e){return e.split(",").map(t=>t.split("=").map(n=>decodeURIComponent(n.trim()))).reduce((t,[n,r])=>(n&&r&&(t[n]=r),t),{})}function Fx(e){if(Object.keys(e).length!==0)return Object.entries(e).reduce((t,[n,r],i)=>{const s=`${encodeURIComponent(n)}=${encodeURIComponent(r)}`,o=i===0?s:`${t},${s}`;return o.length>Lx?(Xi&&Se.warn(`Not adding key: ${n} with val: ${r} to baggage header due to exceeding baggage size limits.`),t):o},"")}const Ux=new RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function Vx(e){if(!e)return;const t=e.match(Ux);if(!t)return;let n;return t[3]==="1"?n=!0:t[3]==="0"&&(n=!1),{traceId:t[1],parentSampled:n,parentSpanId:t[2]}}function qx(e,t){const n=Vx(e),r=ym(t),{traceId:i,parentSpanId:s,parentSampled:o}=n||{};return n?{traceId:i||St(),parentSpanId:s||St().substring(16),spanId:St().substring(16),sampled:o,dsc:r||{}}:{traceId:i||St(),spanId:St().substring(16)}}function kl(e=St(),t=St().substring(16),n){let r="";return n!==void 0&&(r=n?"-1":"-0"),`${e}-${t}${r}`}function Ii(e,t=[]){return[e,t]}function $x(e,t){const[n,r]=e;return[n,[...r,t]]}function wm(e,t){const n=e[1];for(const r of n){const i=r[0].type;if(t(r,i))return!0}return!1}function Ol(e){return nt.__SENTRY__&&nt.__SENTRY__.encodePolyfill?nt.__SENTRY__.encodePolyfill(e):new TextEncoder().encode(e)}function Gx(e){const[t,n]=e;let r=JSON.stringify(t);function i(s){typeof r=="string"?r=typeof s=="string"?r+s:[Ol(r),s]:r.push(typeof s=="string"?Ol(s):s)}for(const s of n){const[o,c]=s;if(i(`
60
60
  ${JSON.stringify(o)}
61
- `),typeof c=="string"||c instanceof Uint8Array)i(c);else{let u;try{u=JSON.stringify(c)}catch{u=JSON.stringify(mr(c))}i(u)}}return typeof r=="string"?r:Hx(r)}function Hx(e){const t=e.reduce((i,s)=>i+s.length,0),n=new Uint8Array(t);let r=0;for(const i of e)n.set(i,r),r+=i.length;return n}function Yx(e){return[{type:"span"},e]}function Wx(e){const t=typeof e.data=="string"?Ol(e.data):e.data;return[Ht({type:"attachment",length:t.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType}),t]}const Kx={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 Em(e){return Kx[e]}function Nl(e){if(!e||!e.sdk)return;const{name:t,version:n}=e.sdk;return{name:t,version:n}}function Sm(e,t,n,r){const i=e.sdkProcessingMetadata&&e.sdkProcessingMetadata.dynamicSamplingContext;return{event_id:e.event_id,sent_at:new Date().toISOString(),...t&&{sdk:t},...!!n&&r&&{dsn:ts(r)},...i&&{trace:Ht({...i})}}}function zx(e,t,n){const r=[{type:"client_report"},{timestamp:to(),discarded_events:e}];return Ii(t?{dsn:t}:{},[r])}const Qx=60*1e3;function Jx(e,t=Date.now()){const n=parseInt(`${e}`,10);if(!isNaN(n))return n*1e3;const r=Date.parse(`${e}`);return isNaN(r)?Qx:r-t}function Zx(e,t){return e[t]||e.all||0}function xm(e,t,n=Date.now()){return Zx(e,t)>n}function Cm(e,{statusCode:t,headers:n},r=Date.now()){const i={...e},s=n&&n["x-sentry-rate-limits"],o=n&&n["retry-after"];if(s)for(const c of s.trim().split(",")){const[u,d,,,f]=c.split(":",5),p=parseInt(u,10),l=(isNaN(p)?60:p)*1e3;if(!d)i.all=r+l;else for(const v of d.split(";"))v==="metric_bucket"?(!f||f.split(";").includes("custom"))&&(i[v]=r+l):i[v]=r+l}else o?i.all=r+Jx(o,r):t===429&&(i.all=r+60*1e3);return i}function Xx(e,t){return e??t()}function Pn(e){let t,n=e[0],r=1;for(;r<e.length;){const i=e[r],s=e[r+1];if(r+=2,(i==="optionalAccess"||i==="optionalCall")&&n==null)return;i==="access"||i==="optionalAccess"?(t=n,n=s(n)):(i==="call"||i==="optionalCall")&&(n=s((...o)=>n.call(t,...o)),t=void 0)}return n}function Ha(){return{traceId:St(),spanId:St().substring(16)}}const Ya=nt;function e2(){const e=Ya.chrome,t=e&&e.app&&e.app.runtime,n="history"in Ya&&!!Ya.history.pushState&&!!Ya.history.replaceState;return!t&&n}const Ge=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;function ns(){return Rl(nt),nt}function Rl(e){const t=e.__SENTRY__=e.__SENTRY__||{};return t.version=t.version||_i,t[_i]=t[_i]||{}}function t2(e){const t=gn(),n={sid:St(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>r2(n)};return e&&rs(n,e),n}function rs(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||gn(),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:St()),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 n2(e,t){let n={};e.status==="ok"&&(n={status:"exited"}),rs(e,n)}function r2(e){return Ht({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 Ml="_sentrySpan";function ro(e,t){t?Gn(e,Ml,t):delete e[Ml]}function Wa(e){return e[Ml]}const i2=100;class Dl{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext=Ha()}clone(){const t=new Dl;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,ro(t,Wa(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&&rs(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,i]=n instanceof Xr?[n.getScopeData(),n.getRequestSession()]:Qi(n)?[t,t.requestSession]:[],{tags:s,extra:o,user:c,contexts:u,level:d,fingerprint:f=[],propagationContext:p}=r||{};return this._tags={...this._tags,...s},this._extra={...this._extra,...o},this._contexts={...this._contexts,...u},c&&Object.keys(c).length&&(this._user=c),d&&(this._level=d),f.length&&(this._fingerprint=f),p&&(this._propagationContext=p),i&&(this._requestSession=i),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,ro(this,void 0),this._attachments=[],this._propagationContext=Ha(),this._notifyScopeListeners(),this}addBreadcrumb(t,n){const r=typeof n=="number"?n:i2;if(r<=0)return this;const i={timestamp:to(),...t},s=this._breadcrumbs;return s.push(i),this._breadcrumbs=s.length>r?s.slice(-r):s,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:Wa(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:St();if(!this._client)return Se.warn("No client configured on scope - will not capture exception!"),r;const i=new Error("Sentry syntheticException");return this._client.captureException(t,{originalException:t,syntheticException:i,...n,event_id:r},this),r}captureMessage(t,n,r){const i=r&&r.event_id?r.event_id:St();if(!this._client)return Se.warn("No client configured on scope - will not capture message!"),i;const s=new Error(t);return this._client.captureMessage(t,n,{originalException:t,syntheticException:s,...r,event_id:i},this),i}captureEvent(t,n){const r=n&&n.event_id?n.event_id:St();return this._client?(this._client.captureEvent(t,{...n,event_id:r},this),r):(Se.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 Xr=Dl;function s2(){return Ba("defaultCurrentScope",()=>new Xr)}function o2(){return Ba("defaultIsolationScope",()=>new Xr)}class a2{constructor(t,n){let r;t?r=t:r=new Xr;let i;n?i=n:i=new Xr,this._stack=[{scope:r}],this._isolationScope=i}withScope(t){const n=this._pushScope();let r;try{r=t(n)}catch(i){throw this._popScope(),i}return La(r)?r.then(i=>(this._popScope(),i),i=>{throw this._popScope(),i}):(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 is(){const e=ns(),t=Rl(e);return t.stack=t.stack||new a2(s2(),o2())}function c2(e){return is().withScope(e)}function u2(e,t){const n=is();return n.withScope(()=>(n.getStackTop().scope=e,t(e)))}function _m(e){return is().withScope(()=>e(is().getIsolationScope()))}function l2(){return{withIsolationScope:_m,withScope:c2,withSetScope:u2,withSetIsolationScope:(e,t)=>_m(t),getCurrentScope:()=>is().getScope(),getIsolationScope:()=>is().getIsolationScope()}}function io(e){const t=Rl(e);return t.acs?t.acs:l2()}function vt(){const e=ns();return io(e).getCurrentScope()}function jn(){const e=ns();return io(e).getIsolationScope()}function d2(){return Ba("globalScope",()=>new Xr)}function Ka(...e){const t=ns(),n=io(t);if(e.length===2){const[r,i]=e;return r?n.withSetScope(r,i):n.withScope(i)}return n.withScope(e[0])}function Xe(){return vt().getClient()}const f2="_sentryMetrics";function Pl(e){const t=e[f2];if(!t)return;const n={};for(const[,[r,i]]of t)(n[r]||(n[r]=[])).push(Ht(i));return n}const gr="sentry.source",Am="sentry.sample_rate",ei="sentry.op",Yt="sentry.origin",jl="sentry.idle_span_finish_reason",za="sentry.measurement_unit",Qa="sentry.measurement_value",h2="sentry.profile_id",Ll="sentry.exclusive_time",p2=0,Tm=1,Zt=2;function m2(e){if(e<400&&e>=100)return{code:Tm};if(e>=400&&e<500)switch(e){case 401:return{code:Zt,message:"unauthenticated"};case 403:return{code:Zt,message:"permission_denied"};case 404:return{code:Zt,message:"not_found"};case 409:return{code:Zt,message:"already_exists"};case 413:return{code:Zt,message:"failed_precondition"};case 429:return{code:Zt,message:"resource_exhausted"};case 499:return{code:Zt,message:"cancelled"};default:return{code:Zt,message:"invalid_argument"}}if(e>=500&&e<600)switch(e){case 501:return{code:Zt,message:"unimplemented"};case 503:return{code:Zt,message:"unavailable"};case 504:return{code:Zt,message:"deadline_exceeded"};default:return{code:Zt,message:"internal_error"}}return{code:Zt,message:"unknown_error"}}function Im(e,t){e.setAttribute("http.response.status_code",t);const n=m2(t);n.message!=="unknown_error"&&e.setStatus(n)}const km=0,Om=1;function g2(e){const{spanId:t,traceId:n}=e.spanContext(),{data:r,op:i,parent_span_id:s,status:o,origin:c}=at(e);return Ht({parent_span_id:s,span_id:t,trace_id:n,data:r,op:i,status:o,origin:c})}function y2(e){const{spanId:t,traceId:n}=e.spanContext(),{parent_span_id:r}=at(e);return Ht({parent_span_id:r,span_id:t,trace_id:n})}function Nm(e){const{traceId:t,spanId:n}=e.spanContext(),r=Oi(e);return kl(t,n,r)}function ki(e){return typeof e=="number"?Rm(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?Rm(e.getTime()):gn()}function Rm(e){return e>9999999999?e/1e3:e}function at(e){if(b2(e))return e.getSpanJSON();try{const{spanId:t,traceId:n}=e.spanContext();if(v2(e)){const{attributes:r,startTime:i,name:s,endTime:o,parentSpanId:c,status:u}=e;return Ht({span_id:t,trace_id:n,data:r,description:s,parent_span_id:c,start_timestamp:ki(i),timestamp:ki(o)||void 0,status:Mm(u),op:r[ei],origin:r[Yt],_metrics_summary:Pl(e)})}return{span_id:t,trace_id:n}}catch{return{}}}function v2(e){const t=e;return!!t.attributes&&!!t.startTime&&!!t.name&&!!t.endTime&&!!t.status}function b2(e){return typeof e.getSpanJSON=="function"}function Oi(e){const{traceFlags:t}=e.spanContext();return t===Om}function Mm(e){if(!(!e||e.code===p2))return e.code===Tm?"ok":e.message||"unknown_error"}const Ni="_sentryChildSpans",Bl="_sentryRootSpan";function Dm(e,t){const n=e[Bl]||e;Gn(t,Bl,n),e[Ni]?e[Ni].add(t):Gn(e,Ni,new Set([t]))}function w2(e,t){e[Ni]&&e[Ni].delete(t)}function Ja(e){const t=new Set;function n(r){if(!t.has(r)&&Oi(r)){t.add(r);const i=r[Ni]?Array.from(r[Ni]):[];for(const s of i)n(s)}}return n(e),Array.from(t)}function nn(e){return e[Bl]||e}function rn(){const e=ns(),t=io(e);return t.getActiveSpan?t.getActiveSpan():Wa(vt())}let Pm=!1;function E2(){Pm||(Pm=!0,cm(Fl),um(Fl))}function Fl(){const e=rn(),t=e&&nn(e);if(t){const n="internal_error";Ge&&Se.log(`[Tracing] Root span: ${n} -> Global error occured`),t.setStatus({code:Zt,message:n})}}Fl.tag="sentry_tracingErrorCallback";const jm="_sentryScope",Lm="_sentryIsolationScope";function S2(e,t,n){e&&(Gn(e,Lm,n),Gn(e,jm,t))}function Bm(e){return{scope:e[jm],isolationScope:e[Lm]}}function Or(e){if(typeof __SENTRY_TRACING__=="boolean"&&!__SENTRY_TRACING__)return!1;const t=Xe(),n=e||t&&t.getOptions();return!!n&&(n.enableTracing||"tracesSampleRate"in n||"tracesSampler"in n)}class ss{constructor(t={}){this._traceId=t.traceId||St(),this._spanId=t.spanId||St().substring(16)}spanContext(){return{spanId:this._spanId,traceId:this._traceId,traceFlags:km}}end(t){}setAttribute(t,n){return this}setAttributes(t){return this}setStatus(t){return this}updateName(t){return this}isRecording(){return!1}addEvent(t,n,r){return this}addLink(t){return this}addLinks(t){return this}recordException(t,n){}}const Ul="production",Fm="_frozenDsc";function Um(e,t){Gn(e,Fm,t)}function Za(e,t){const n=t.getOptions(),{publicKey:r}=t.getDsn()||{},i=Ht({environment:n.environment||Ul,release:n.release,public_key:r,trace_id:e});return t.emit("createDsc",i),i}function ti(e){const t=Xe();if(!t)return{};const n=Za(at(e).trace_id||"",t),r=nn(e),i=r[Fm];if(i)return i;const s=r.spanContext().traceState,o=s&&s.get("sentry.dsc"),c=o&&ym(o);if(c)return c;const u=at(r),d=u.data||{},f=d[Am];f!=null&&(n.sample_rate=`${f}`);const p=d[gr],l=u.description;return p!=="url"&&l&&(n.transaction=l),Or()&&(n.sampled=String(Oi(r))),t.emit("createDsc",n,r),n}function x2(e){if(!Ge)return;const{description:t="< unknown name >",op:n="< unknown op >",parent_span_id:r}=at(e),{spanId:i}=e.spanContext(),s=Oi(e),o=nn(e),c=o===e,u=`[Tracing] Starting ${s?"sampled":"unsampled"} ${c?"root ":""}span`,d=[`op: ${n}`,`name: ${t}`,`ID: ${i}`];if(r&&d.push(`parent ID: ${r}`),!c){const{op:f,description:p}=at(o);d.push(`root ID: ${o.spanContext().spanId}`),f&&d.push(`root op: ${f}`),p&&d.push(`root description: ${p}`)}Se.log(`${u}
61
+ `),typeof c=="string"||c instanceof Uint8Array)i(c);else{let u;try{u=JSON.stringify(c)}catch{u=JSON.stringify(mr(c))}i(u)}}return typeof r=="string"?r:Hx(r)}function Hx(e){const t=e.reduce((i,s)=>i+s.length,0),n=new Uint8Array(t);let r=0;for(const i of e)n.set(i,r),r+=i.length;return n}function Yx(e){return[{type:"span"},e]}function Wx(e){const t=typeof e.data=="string"?Ol(e.data):e.data;return[Yt({type:"attachment",length:t.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType}),t]}const Kx={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 Em(e){return Kx[e]}function Rl(e){if(!e||!e.sdk)return;const{name:t,version:n}=e.sdk;return{name:t,version:n}}function Sm(e,t,n,r){const i=e.sdkProcessingMetadata&&e.sdkProcessingMetadata.dynamicSamplingContext;return{event_id:e.event_id,sent_at:new Date().toISOString(),...t&&{sdk:t},...!!n&&r&&{dsn:ts(r)},...i&&{trace:Yt({...i})}}}function zx(e,t,n){const r=[{type:"client_report"},{timestamp:to(),discarded_events:e}];return Ii(t?{dsn:t}:{},[r])}const Qx=60*1e3;function Jx(e,t=Date.now()){const n=parseInt(`${e}`,10);if(!isNaN(n))return n*1e3;const r=Date.parse(`${e}`);return isNaN(r)?Qx:r-t}function Zx(e,t){return e[t]||e.all||0}function xm(e,t,n=Date.now()){return Zx(e,t)>n}function Cm(e,{statusCode:t,headers:n},r=Date.now()){const i={...e},s=n&&n["x-sentry-rate-limits"],o=n&&n["retry-after"];if(s)for(const c of s.trim().split(",")){const[u,d,,,f]=c.split(":",5),p=parseInt(u,10),l=(isNaN(p)?60:p)*1e3;if(!d)i.all=r+l;else for(const v of d.split(";"))v==="metric_bucket"?(!f||f.split(";").includes("custom"))&&(i[v]=r+l):i[v]=r+l}else o?i.all=r+Jx(o,r):t===429&&(i.all=r+60*1e3);return i}function Xx(e,t){return e??t()}function Pn(e){let t,n=e[0],r=1;for(;r<e.length;){const i=e[r],s=e[r+1];if(r+=2,(i==="optionalAccess"||i==="optionalCall")&&n==null)return;i==="access"||i==="optionalAccess"?(t=n,n=s(n)):(i==="call"||i==="optionalCall")&&(n=s((...o)=>n.call(t,...o)),t=void 0)}return n}function Ha(){return{traceId:St(),spanId:St().substring(16)}}const Ya=nt;function e2(){const e=Ya.chrome,t=e&&e.app&&e.app.runtime,n="history"in Ya&&!!Ya.history.pushState&&!!Ya.history.replaceState;return!t&&n}const Ge=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;function ns(){return Nl(nt),nt}function Nl(e){const t=e.__SENTRY__=e.__SENTRY__||{};return t.version=t.version||_i,t[_i]=t[_i]||{}}function t2(e){const t=vn(),n={sid:St(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>r2(n)};return e&&rs(n,e),n}function rs(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||vn(),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:St()),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 n2(e,t){let n={};e.status==="ok"&&(n={status:"exited"}),rs(e,n)}function r2(e){return Yt({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 Ml="_sentrySpan";function ro(e,t){t?Gn(e,Ml,t):delete e[Ml]}function Wa(e){return e[Ml]}const i2=100;class Dl{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext=Ha()}clone(){const t=new Dl;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,ro(t,Wa(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&&rs(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,i]=n instanceof Xr?[n.getScopeData(),n.getRequestSession()]:Qi(n)?[t,t.requestSession]:[],{tags:s,extra:o,user:c,contexts:u,level:d,fingerprint:f=[],propagationContext:p}=r||{};return this._tags={...this._tags,...s},this._extra={...this._extra,...o},this._contexts={...this._contexts,...u},c&&Object.keys(c).length&&(this._user=c),d&&(this._level=d),f.length&&(this._fingerprint=f),p&&(this._propagationContext=p),i&&(this._requestSession=i),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,ro(this,void 0),this._attachments=[],this._propagationContext=Ha(),this._notifyScopeListeners(),this}addBreadcrumb(t,n){const r=typeof n=="number"?n:i2;if(r<=0)return this;const i={timestamp:to(),...t},s=this._breadcrumbs;return s.push(i),this._breadcrumbs=s.length>r?s.slice(-r):s,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:Wa(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:St();if(!this._client)return Se.warn("No client configured on scope - will not capture exception!"),r;const i=new Error("Sentry syntheticException");return this._client.captureException(t,{originalException:t,syntheticException:i,...n,event_id:r},this),r}captureMessage(t,n,r){const i=r&&r.event_id?r.event_id:St();if(!this._client)return Se.warn("No client configured on scope - will not capture message!"),i;const s=new Error(t);return this._client.captureMessage(t,n,{originalException:t,syntheticException:s,...r,event_id:i},this),i}captureEvent(t,n){const r=n&&n.event_id?n.event_id:St();return this._client?(this._client.captureEvent(t,{...n,event_id:r},this),r):(Se.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 Xr=Dl;function s2(){return Ba("defaultCurrentScope",()=>new Xr)}function o2(){return Ba("defaultIsolationScope",()=>new Xr)}class a2{constructor(t,n){let r;t?r=t:r=new Xr;let i;n?i=n:i=new Xr,this._stack=[{scope:r}],this._isolationScope=i}withScope(t){const n=this._pushScope();let r;try{r=t(n)}catch(i){throw this._popScope(),i}return La(r)?r.then(i=>(this._popScope(),i),i=>{throw this._popScope(),i}):(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 is(){const e=ns(),t=Nl(e);return t.stack=t.stack||new a2(s2(),o2())}function c2(e){return is().withScope(e)}function u2(e,t){const n=is();return n.withScope(()=>(n.getStackTop().scope=e,t(e)))}function _m(e){return is().withScope(()=>e(is().getIsolationScope()))}function l2(){return{withIsolationScope:_m,withScope:c2,withSetScope:u2,withSetIsolationScope:(e,t)=>_m(t),getCurrentScope:()=>is().getScope(),getIsolationScope:()=>is().getIsolationScope()}}function io(e){const t=Nl(e);return t.acs?t.acs:l2()}function vt(){const e=ns();return io(e).getCurrentScope()}function jn(){const e=ns();return io(e).getIsolationScope()}function d2(){return Ba("globalScope",()=>new Xr)}function Ka(...e){const t=ns(),n=io(t);if(e.length===2){const[r,i]=e;return r?n.withSetScope(r,i):n.withScope(i)}return n.withScope(e[0])}function Xe(){return vt().getClient()}const f2="_sentryMetrics";function Pl(e){const t=e[f2];if(!t)return;const n={};for(const[,[r,i]]of t)(n[r]||(n[r]=[])).push(Yt(i));return n}const gr="sentry.source",Am="sentry.sample_rate",ei="sentry.op",Wt="sentry.origin",jl="sentry.idle_span_finish_reason",za="sentry.measurement_unit",Qa="sentry.measurement_value",h2="sentry.profile_id",Ll="sentry.exclusive_time",p2=0,Tm=1,Xt=2;function m2(e){if(e<400&&e>=100)return{code:Tm};if(e>=400&&e<500)switch(e){case 401:return{code:Xt,message:"unauthenticated"};case 403:return{code:Xt,message:"permission_denied"};case 404:return{code:Xt,message:"not_found"};case 409:return{code:Xt,message:"already_exists"};case 413:return{code:Xt,message:"failed_precondition"};case 429:return{code:Xt,message:"resource_exhausted"};case 499:return{code:Xt,message:"cancelled"};default:return{code:Xt,message:"invalid_argument"}}if(e>=500&&e<600)switch(e){case 501:return{code:Xt,message:"unimplemented"};case 503:return{code:Xt,message:"unavailable"};case 504:return{code:Xt,message:"deadline_exceeded"};default:return{code:Xt,message:"internal_error"}}return{code:Xt,message:"unknown_error"}}function Im(e,t){e.setAttribute("http.response.status_code",t);const n=m2(t);n.message!=="unknown_error"&&e.setStatus(n)}const km=0,Om=1;function g2(e){const{spanId:t,traceId:n}=e.spanContext(),{data:r,op:i,parent_span_id:s,status:o,origin:c}=ct(e);return Yt({parent_span_id:s,span_id:t,trace_id:n,data:r,op:i,status:o,origin:c})}function y2(e){const{spanId:t,traceId:n}=e.spanContext(),{parent_span_id:r}=ct(e);return Yt({parent_span_id:r,span_id:t,trace_id:n})}function Rm(e){const{traceId:t,spanId:n}=e.spanContext(),r=Oi(e);return kl(t,n,r)}function ki(e){return typeof e=="number"?Nm(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?Nm(e.getTime()):vn()}function Nm(e){return e>9999999999?e/1e3:e}function ct(e){if(b2(e))return e.getSpanJSON();try{const{spanId:t,traceId:n}=e.spanContext();if(v2(e)){const{attributes:r,startTime:i,name:s,endTime:o,parentSpanId:c,status:u}=e;return Yt({span_id:t,trace_id:n,data:r,description:s,parent_span_id:c,start_timestamp:ki(i),timestamp:ki(o)||void 0,status:Mm(u),op:r[ei],origin:r[Wt],_metrics_summary:Pl(e)})}return{span_id:t,trace_id:n}}catch{return{}}}function v2(e){const t=e;return!!t.attributes&&!!t.startTime&&!!t.name&&!!t.endTime&&!!t.status}function b2(e){return typeof e.getSpanJSON=="function"}function Oi(e){const{traceFlags:t}=e.spanContext();return t===Om}function Mm(e){if(!(!e||e.code===p2))return e.code===Tm?"ok":e.message||"unknown_error"}const Ri="_sentryChildSpans",Bl="_sentryRootSpan";function Dm(e,t){const n=e[Bl]||e;Gn(t,Bl,n),e[Ri]?e[Ri].add(t):Gn(e,Ri,new Set([t]))}function w2(e,t){e[Ri]&&e[Ri].delete(t)}function Ja(e){const t=new Set;function n(r){if(!t.has(r)&&Oi(r)){t.add(r);const i=r[Ri]?Array.from(r[Ri]):[];for(const s of i)n(s)}}return n(e),Array.from(t)}function rn(e){return e[Bl]||e}function sn(){const e=ns(),t=io(e);return t.getActiveSpan?t.getActiveSpan():Wa(vt())}let Pm=!1;function E2(){Pm||(Pm=!0,cm(Fl),um(Fl))}function Fl(){const e=sn(),t=e&&rn(e);if(t){const n="internal_error";Ge&&Se.log(`[Tracing] Root span: ${n} -> Global error occured`),t.setStatus({code:Xt,message:n})}}Fl.tag="sentry_tracingErrorCallback";const jm="_sentryScope",Lm="_sentryIsolationScope";function S2(e,t,n){e&&(Gn(e,Lm,n),Gn(e,jm,t))}function Bm(e){return{scope:e[jm],isolationScope:e[Lm]}}function Or(e){if(typeof __SENTRY_TRACING__=="boolean"&&!__SENTRY_TRACING__)return!1;const t=Xe(),n=e||t&&t.getOptions();return!!n&&(n.enableTracing||"tracesSampleRate"in n||"tracesSampler"in n)}class ss{constructor(t={}){this._traceId=t.traceId||St(),this._spanId=t.spanId||St().substring(16)}spanContext(){return{spanId:this._spanId,traceId:this._traceId,traceFlags:km}}end(t){}setAttribute(t,n){return this}setAttributes(t){return this}setStatus(t){return this}updateName(t){return this}isRecording(){return!1}addEvent(t,n,r){return this}addLink(t){return this}addLinks(t){return this}recordException(t,n){}}const Ul="production",Fm="_frozenDsc";function Um(e,t){Gn(e,Fm,t)}function Za(e,t){const n=t.getOptions(),{publicKey:r}=t.getDsn()||{},i=Yt({environment:n.environment||Ul,release:n.release,public_key:r,trace_id:e});return t.emit("createDsc",i),i}function ti(e){const t=Xe();if(!t)return{};const n=Za(ct(e).trace_id||"",t),r=rn(e),i=r[Fm];if(i)return i;const s=r.spanContext().traceState,o=s&&s.get("sentry.dsc"),c=o&&ym(o);if(c)return c;const u=ct(r),d=u.data||{},f=d[Am];f!=null&&(n.sample_rate=`${f}`);const p=d[gr],l=u.description;return p!=="url"&&l&&(n.transaction=l),Or()&&(n.sampled=String(Oi(r))),t.emit("createDsc",n,r),n}function x2(e){if(!Ge)return;const{description:t="< unknown name >",op:n="< unknown op >",parent_span_id:r}=ct(e),{spanId:i}=e.spanContext(),s=Oi(e),o=rn(e),c=o===e,u=`[Tracing] Starting ${s?"sampled":"unsampled"} ${c?"root ":""}span`,d=[`op: ${n}`,`name: ${t}`,`ID: ${i}`];if(r&&d.push(`parent ID: ${r}`),!c){const{op:f,description:p}=ct(o);d.push(`root ID: ${o.spanContext().spanId}`),f&&d.push(`root op: ${f}`),p&&d.push(`root description: ${p}`)}Se.log(`${u}
62
62
  ${d.join(`
63
- `)}`)}function C2(e){if(!Ge)return;const{description:t="< unknown name >",op:n="< unknown op >"}=at(e),{spanId:r}=e.spanContext(),s=nn(e)===e,o=`[Tracing] Finishing "${n}" ${s?"root ":""}span "${t}" with ID ${r}`;Se.log(o)}function Xa(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){Ge&&Se.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}function _2(e,t){if(!Or(e))return[!1];let n;typeof e.tracesSampler=="function"?n=e.tracesSampler(t):t.parentSampled!==void 0?n=t.parentSampled:typeof e.tracesSampleRate<"u"?n=e.tracesSampleRate:n=1;const r=Xa(n);return r===void 0?(Ge&&Se.warn("[Tracing] Discarding transaction because of invalid sample rate."),[!1]):r?Math.random()<r?[!0,r]:(Ge&&Se.log(`[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = ${Number(n)})`),[!1,r]):(Ge&&Se.log(`[Tracing] Discarding transaction because ${typeof e.tracesSampler=="function"?"tracesSampler returned 0 or false":"a negative sampling decision was inherited or tracesSampleRate is set to 0"}`),[!1,r])}function A2(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 T2(e,t,n,r){const i=Nl(n),s={sent_at:new Date().toISOString(),...i&&{sdk:i},...!!r&&t&&{dsn:ts(t)}},o="aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e.toJSON()];return Ii(s,[o])}function I2(e,t,n,r){const i=Nl(n),s=e.type&&e.type!=="replay_event"?e.type:"event";A2(e,n&&n.sdk);const o=Sm(e,i,r,t);return delete e.sdkProcessingMetadata,Ii(o,[[{type:s},e]])}function k2(e,t){function n(f){return!!f.trace_id&&!!f.public_key}const r=ti(e[0]),i=t&&t.getDsn(),s=t&&t.getOptions().tunnel,o={sent_at:new Date().toISOString(),...n(r)&&{trace:r},...!!s&&i&&{dsn:ts(i)}},c=t&&t.getOptions().beforeSendSpan,u=c?f=>c(at(f)):f=>at(f),d=[];for(const f of e){const p=u(f);p&&d.push(Yx(p))}return Ii(o,d)}function O2(e,t,n,r=rn()){const i=r&&nn(r);i&&i.addEvent(e,{[Qa]:t,[za]:n})}function Vm(e){if(!e||e.length===0)return;const t={};return e.forEach(n=>{const r=n.attributes||{},i=r[za],s=r[Qa];typeof i=="string"&&typeof s=="number"&&(t[n.name]={value:s,unit:i})}),t}const qm=1e3;class Vl{constructor(t={}){this._traceId=t.traceId||St(),this._spanId=t.spanId||St().substring(16),this._startTime=t.startTimestamp||gn(),this._attributes={},this.setAttributes({[Yt]:"manual",[ei]:t.op,...t.attributes}),this._name=t.name,t.parentSpanId&&(this._parentSpanId=t.parentSpanId),"sampled"in t&&(this._sampled=t.sampled),t.endTimestamp&&(this._endTime=t.endTimestamp),this._events=[],this._isStandaloneSpan=t.isStandalone,this._endTime&&this._onSpanEnded()}addLink(t){return this}addLinks(t){return this}recordException(t,n){}spanContext(){const{_spanId:t,_traceId:n,_sampled:r}=this;return{spanId:t,traceId:n,traceFlags:r?Om:km}}setAttribute(t,n){return n===void 0?delete this._attributes[t]:this._attributes[t]=n,this}setAttributes(t){return Object.keys(t).forEach(n=>this.setAttribute(n,t[n])),this}updateStartTime(t){this._startTime=ki(t)}setStatus(t){return this._status=t,this}updateName(t){return this._name=t,this}end(t){this._endTime||(this._endTime=ki(t),C2(this),this._onSpanEnded())}getSpanJSON(){return Ht({data:this._attributes,description:this._name,op:this._attributes[ei],parent_span_id:this._parentSpanId,span_id:this._spanId,start_timestamp:this._startTime,status:Mm(this._status),timestamp:this._endTime,trace_id:this._traceId,origin:this._attributes[Yt],_metrics_summary:Pl(this),profile_id:this._attributes[h2],exclusive_time:this._attributes[Ll],measurements:Vm(this._events),is_segment:this._isStandaloneSpan&&nn(this)===this||void 0,segment_id:this._isStandaloneSpan?nn(this).spanContext().spanId:void 0})}isRecording(){return!this._endTime&&!!this._sampled}addEvent(t,n,r){Ge&&Se.log("[Tracing] Adding an event to span:",t);const i=$m(n)?n:r||gn(),s=$m(n)?{}:n||{},o={name:t,time:ki(i),attributes:s};return this._events.push(o),this}isStandaloneSpan(){return!!this._isStandaloneSpan}_onSpanEnded(){const t=Xe();if(t&&t.emit("spanEnd",this),!(this._isStandaloneSpan||this===nn(this)))return;if(this._isStandaloneSpan){this._sampled?R2(k2([this],t)):(Ge&&Se.log("[Tracing] Discarding standalone span because its trace was not chosen to be sampled."),t&&t.recordDroppedEvent("sample_rate","span"));return}const r=this._convertSpanToTransaction();r&&(Bm(this).scope||vt()).captureEvent(r)}_convertSpanToTransaction(){if(!Gm(at(this)))return;this._name||(Ge&&Se.warn("Transaction has no name, falling back to `<unlabeled transaction>`."),this._name="<unlabeled transaction>");const{scope:t,isolationScope:n}=Bm(this),i=(t||vt()).getClient()||Xe();if(this._sampled!==!0){Ge&&Se.log("[Tracing] Discarding transaction because its trace was not chosen to be sampled."),i&&i.recordDroppedEvent("sample_rate","transaction");return}const o=Ja(this).filter(p=>p!==this&&!N2(p)).map(p=>at(p)).filter(Gm),c=this._attributes[gr],u={contexts:{trace:g2(this)},spans:o.length>qm?o.sort((p,l)=>p.start_timestamp-l.start_timestamp).slice(0,qm):o,start_timestamp:this._startTime,timestamp:this._endTime,transaction:this._name,type:"transaction",sdkProcessingMetadata:{capturedSpanScope:t,capturedSpanIsolationScope:n,...Ht({dynamicSamplingContext:ti(this)})},_metrics_summary:Pl(this),...c&&{transaction_info:{source:c}}},d=Vm(this._events);return d&&Object.keys(d).length&&(Ge&&Se.log("[Measurements] Adding measurements to transaction event",JSON.stringify(d,void 0,2)),u.measurements=d),u}}function $m(e){return e&&typeof e=="number"||e instanceof Date||Array.isArray(e)}function Gm(e){return!!e.start_timestamp&&!!e.timestamp&&!!e.span_id&&!!e.trace_id}function N2(e){return e instanceof Vl&&e.isStandaloneSpan()}function R2(e){const t=Xe();if(!t)return;const n=e[1];if(!n||n.length===0){t.recordDroppedEvent("before_send","span");return}const r=t.getTransport();r&&r.send(e).then(null,i=>{Ge&&Se.error("Error while sending span:",i)})}const Hm="__SENTRY_SUPPRESS_TRACING__";function ni(e){const t=Wm();if(t.startInactiveSpan)return t.startInactiveSpan(e);const n=D2(e),{forceTransaction:r,parentSpan:i}=e;return(e.scope?o=>Ka(e.scope,o):i!==void 0?o=>Ym(i,o):o=>o())(()=>{const o=vt(),c=j2(o);return e.onlyIfParent&&!c?new ss:M2({parentSpan:c,spanArguments:n,forceTransaction:r,scope:o})})}function Ym(e,t){const n=Wm();return n.withActiveSpan?n.withActiveSpan(e,t):Ka(r=>(ro(r,e||void 0),t(r)))}function M2({parentSpan:e,spanArguments:t,forceTransaction:n,scope:r}){if(!Or())return new ss;const i=jn();let s;if(e&&!n)s=P2(e,r,t),Dm(e,s);else if(e){const o=ti(e),{traceId:c,spanId:u}=e.spanContext(),d=Oi(e);s=Km({traceId:c,parentSpanId:u,...t},r,d),Um(s,o)}else{const{traceId:o,dsc:c,parentSpanId:u,sampled:d}={...i.getPropagationContext(),...r.getPropagationContext()};s=Km({traceId:o,parentSpanId:u,...t},r,d),c&&Um(s,c)}return x2(s),S2(s,r,i),s}function D2(e){const n={isStandalone:(e.experimental||{}).standalone,...e};if(e.startTime){const r={...n};return r.startTimestamp=ki(e.startTime),delete r.startTime,r}return n}function Wm(){const e=ns();return io(e)}function Km(e,t,n){const r=Xe(),i=r&&r.getOptions()||{},{name:s="",attributes:o}=e,[c,u]=t.getScopeData().sdkProcessingMetadata[Hm]?[!1]:_2(i,{name:s,parentSampled:n,attributes:o,transactionContext:{name:s,parentSampled:n}}),d=new Vl({...e,attributes:{[gr]:"custom",...e.attributes},sampled:c});return u!==void 0&&d.setAttribute(Am,u),r&&r.emit("spanStart",d),d}function P2(e,t,n){const{spanId:r,traceId:i}=e.spanContext(),s=t.getScopeData().sdkProcessingMetadata[Hm]?!1:Oi(e),o=s?new Vl({...n,parentSpanId:r,traceId:i,sampled:s}):new ss({traceId:i});Dm(e,o);const c=Xe();return c&&(c.emit("spanStart",o),n.endTimestamp&&c.emit("spanEnd",o)),o}function j2(e){const t=Wa(e);if(!t)return;const n=Xe();return(n?n.getOptions():{}).parentSpanIsAlwaysRootSpan?nn(t):t}const ec={idleTimeout:1e3,finalTimeout:3e4,childSpanTimeout:15e3},L2="heartbeatFailed",B2="idleTimeout",F2="finalTimeout",U2="externalFinish";function zm(e,t={}){const n=new Map;let r=!1,i,s=U2,o=!t.disableAutoFinish;const c=[],{idleTimeout:u=ec.idleTimeout,finalTimeout:d=ec.finalTimeout,childSpanTimeout:f=ec.childSpanTimeout,beforeSpanEnd:p}=t,l=Xe();if(!l||!Or())return new ss;const v=vt(),a=rn(),h=V2(e);h.end=new Proxy(h.end,{apply(A,T,O){p&&p(h);const[M,...D]=O,F=M||gn(),V=ki(F),G=Ja(h).filter(z=>z!==h);if(!G.length)return S(V),Reflect.apply(A,T,[V,...D]);const U=G.map(z=>at(z).timestamp).filter(z=>!!z),N=U.length?Math.max(...U):void 0,L=at(h).start_timestamp,Y=Math.min(L?L+d/1e3:1/0,Math.max(L||-1/0,Math.min(V,N||1/0)));return S(Y),Reflect.apply(A,T,[Y,...D])}});function y(){i&&(clearTimeout(i),i=void 0)}function g(A){y(),i=setTimeout(()=>{!r&&n.size===0&&o&&(s=B2,h.end(A))},u)}function b(A){i=setTimeout(()=>{!r&&o&&(s=L2,h.end(A))},f)}function w(A){y(),n.set(A,!0);const T=gn();b(T+f/1e3)}function E(A){if(n.has(A)&&n.delete(A),n.size===0){const T=gn();g(T+u/1e3)}}function S(A){r=!0,n.clear(),c.forEach(V=>V()),ro(v,a);const T=at(h),{start_timestamp:O}=T;if(!O)return;(T.data||{})[jl]||h.setAttribute(jl,s),Se.log(`[Tracing] Idle span "${T.op}" finished`);const D=Ja(h).filter(V=>V!==h);let F=0;D.forEach(V=>{V.isRecording()&&(V.setStatus({code:Zt,message:"cancelled"}),V.end(A),Ge&&Se.log("[Tracing] Cancelling span since span ended early",JSON.stringify(V,void 0,2)));const G=at(V),{timestamp:U=0,start_timestamp:N=0}=G,L=N<=A,Y=(d+u)/1e3,z=U-N<=Y;if(Ge){const ee=JSON.stringify(V,void 0,2);L?z||Se.log("[Tracing] Discarding span since it finished after idle span final timeout",ee):Se.log("[Tracing] Discarding span since it happened after idle span was finished",ee)}(!z||!L)&&(w2(h,V),F++)}),F>0&&h.setAttribute("sentry.idle_span_discarded_spans",F)}return c.push(l.on("spanStart",A=>{if(r||A===h||at(A).timestamp)return;Ja(h).includes(A)&&w(A.spanContext().spanId)})),c.push(l.on("spanEnd",A=>{r||E(A.spanContext().spanId)})),c.push(l.on("idleSpanEnableAutoFinish",A=>{A===h&&(o=!0,g(),n.size&&b())})),t.disableAutoFinish||g(),setTimeout(()=>{r||(h.setStatus({code:Zt,message:"deadline_exceeded"}),s=F2,h.end())},d),h}function V2(e){const t=ni(e);return ro(vt(),t),Ge&&Se.log("[Tracing] Started span is an idle span"),t}function ql(e,t,n,r=0){return new Yn((i,s)=>{const o=e[r];if(t===null||typeof o!="function")i(t);else{const c=o({...t},n);Ge&&o.id&&c===null&&Se.log(`Event processor "${o.id}" dropped event`),La(c)?c.then(u=>ql(e,u,n,r+1).then(i)).then(null,s):ql(e,c,n,r+1).then(i).then(null,s)}})}function q2(e,t){const{fingerprint:n,span:r,breadcrumbs:i,sdkProcessingMetadata:s}=t;$2(e,t),r&&Y2(e,r),W2(e,n),G2(e,i),H2(e,s)}function Qm(e,t){const{extra:n,tags:r,user:i,contexts:s,level:o,sdkProcessingMetadata:c,breadcrumbs:u,fingerprint:d,eventProcessors:f,attachments:p,propagationContext:l,transactionName:v,span:a}=t;so(e,"extra",n),so(e,"tags",r),so(e,"user",i),so(e,"contexts",s),so(e,"sdkProcessingMetadata",c),o&&(e.level=o),v&&(e.transactionName=v),a&&(e.span=a),u.length&&(e.breadcrumbs=[...e.breadcrumbs,...u]),d.length&&(e.fingerprint=[...e.fingerprint,...d]),f.length&&(e.eventProcessors=[...e.eventProcessors,...f]),p.length&&(e.attachments=[...e.attachments,...p]),e.propagationContext={...e.propagationContext,...l}}function so(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 $2(e,t){const{extra:n,tags:r,user:i,contexts:s,level:o,transactionName:c}=t,u=Ht(n);u&&Object.keys(u).length&&(e.extra={...u,...e.extra});const d=Ht(r);d&&Object.keys(d).length&&(e.tags={...d,...e.tags});const f=Ht(i);f&&Object.keys(f).length&&(e.user={...f,...e.user});const p=Ht(s);p&&Object.keys(p).length&&(e.contexts={...p,...e.contexts}),o&&(e.level=o),c&&e.type!=="transaction"&&(e.transaction=c)}function G2(e,t){const n=[...e.breadcrumbs||[],...t];e.breadcrumbs=n.length?n:void 0}function H2(e,t){e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...t}}function Y2(e,t){e.contexts={trace:y2(t),...e.contexts},e.sdkProcessingMetadata={dynamicSamplingContext:ti(t),...e.sdkProcessingMetadata};const n=nn(t),r=at(n).description;r&&!e.transaction&&e.type==="transaction"&&(e.transaction=r)}function W2(e,t){e.fingerprint=e.fingerprint?hm(e.fingerprint):[],t&&(e.fingerprint=e.fingerprint.concat(t)),e.fingerprint&&!e.fingerprint.length&&delete e.fingerprint}function Jm(e,t,n,r,i,s){const{normalizeDepth:o=3,normalizeMaxBreadth:c=1e3}=e,u={...t,event_id:t.event_id||n.event_id||St(),timestamp:t.timestamp||to()},d=n.integrations||e.integrations.map(y=>y.name);K2(u,e),J2(u,d),i&&i.emit("applyFrameMetadata",t),t.type===void 0&&z2(u,e.stackParser);const f=X2(r,n.captureContext);n.mechanism&&no(u,n.mechanism);const p=i?i.getEventProcessors():[],l=d2().getScopeData();if(s){const y=s.getScopeData();Qm(l,y)}if(f){const y=f.getScopeData();Qm(l,y)}const v=[...n.attachments||[],...l.attachments];v.length&&(n.attachments=v),q2(u,l);const a=[...p,...l.eventProcessors];return ql(a,u,n).then(y=>(y&&Q2(y),typeof o=="number"&&o>0?Z2(y,o,c):y))}function K2(e,t){const{environment:n,release:r,dist:i,maxValueLength:s=250}=t;"environment"in e||(e.environment="environment"in t?n:Ul),e.release===void 0&&r!==void 0&&(e.release=r),e.dist===void 0&&i!==void 0&&(e.dist=i),e.message&&(e.message=Ji(e.message,s));const o=e.exception&&e.exception.values&&e.exception.values[0];o&&o.value&&(o.value=Ji(o.value,s));const c=e.request;c&&c.url&&(c.url=Ji(c.url,s))}const Zm=new WeakMap;function z2(e,t){const n=nt._sentryDebugIds;if(!n)return;let r;const i=Zm.get(t);i?r=i:(r=new Map,Zm.set(t,r));const s=Object.entries(n).reduce((o,[c,u])=>{let d;const f=r.get(c);f?d=f:(d=t(c),r.set(c,d));for(let p=d.length-1;p>=0;p--){const l=d[p];if(l.filename){o[l.filename]=u;break}}return o},{});try{e.exception.values.forEach(o=>{o.stacktrace.frames.forEach(c=>{c.filename&&(c.debug_id=s[c.filename])})})}catch{}}function Q2(e){const t={};try{e.exception.values.forEach(r=>{r.stacktrace.frames.forEach(i=>{i.debug_id&&(i.abs_path?t[i.abs_path]=i.debug_id:i.filename&&(t[i.filename]=i.debug_id),delete i.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,i])=>{n.push({type:"sourcemap",code_file:r,debug_id:i})})}function J2(e,t){t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[...e.sdk.integrations||[],...t])}function Z2(e,t,n){if(!e)return null;const r={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map(i=>({...i,...i.data&&{data:mr(i.data,t,n)}}))},...e.user&&{user:mr(e.user,t,n)},...e.contexts&&{contexts:mr(e.contexts,t,n)},...e.extra&&{extra:mr(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=mr(e.contexts.trace.data,t,n))),e.spans&&(r.spans=e.spans.map(i=>({...i,...i.data&&{data:mr(i.data,t,n)}}))),r}function X2(e,t){if(!t)return e;const n=e?e.clone():new Xr;return n.update(t),n}function eC(e){if(e)return tC(e)?{captureContext:e}:rC(e)?{captureContext:e}:e}function tC(e){return e instanceof Xr||typeof e=="function"}const nC=["user","level","extra","contexts","tags","fingerprint","requestSession","propagationContext"];function rC(e){return Object.keys(e).some(t=>nC.includes(t))}function tc(e,t){return vt().captureException(e,eC(t))}function Xm(e,t){return vt().captureEvent(e,t)}function eg(e,t){jn().setContext(e,t)}function iC(){return jn().lastEventId()}function sC(e){jn().addEventProcessor(e)}function tg(e){const t=Xe(),n=jn(),r=vt(),{release:i,environment:s=Ul}=t&&t.getOptions()||{},{userAgent:o}=nt.navigator||{},c=t2({release:i,environment:s,user:r.getUser()||n.getUser(),...o&&{userAgent:o},...e}),u=n.getSession();return u&&u.status==="ok"&&rs(u,{status:"exited"}),ng(),n.setSession(c),r.setSession(c),c}function ng(){const e=jn(),t=vt(),n=t.getSession()||e.getSession();n&&n2(n),rg(),e.setSession(),t.setSession()}function rg(){const e=jn(),t=vt(),n=Xe(),r=t.getSession()||e.getSession();r&&n&&n.captureSession(r)}function ig(e=!1){if(e){ng();return}rg()}const oC="7";function sg(e){const t=e.protocol?`${e.protocol}:`:"",n=e.port?`:${e.port}`:"";return`${t}//${e.host}${n}${e.path?`/${e.path}`:""}/api/`}function aC(e){return`${sg(e)}${e.projectId}/envelope/`}function cC(e,t){return lx({sentry_key:e.publicKey,sentry_version:oC,...t&&{sentry_client:`${t.name}/${t.version}`}})}function uC(e,t,n){return t||`${aC(e)}?${cC(e,n)}`}function lC(e,t){const n=Yp(e);if(!n)return"";const r=`${sg(n)}embed/error-page/`;let i=`dsn=${ts(n)}`;for(const s in t)if(s!=="dsn"&&s!=="onClose")if(s==="user"){const o=t.user;if(!o)continue;o.name&&(i+=`&name=${encodeURIComponent(o.name)}`),o.email&&(i+=`&email=${encodeURIComponent(o.email)}`)}else i+=`&${encodeURIComponent(s)}=${encodeURIComponent(t[s])}`;return`${r}?${i}`}const og=[];function dC(e){const t={};return e.forEach(n=>{const{name:r}=n,i=t[r];i&&!i.isDefaultInstance&&n.isDefaultInstance||(t[r]=n)}),Object.values(t)}function fC(e){const t=e.defaultIntegrations||[],n=e.integrations;t.forEach(o=>{o.isDefaultInstance=!0});let r;Array.isArray(n)?r=[...t,...n]:typeof n=="function"?r=hm(n(t)):r=t;const i=dC(r),s=i.findIndex(o=>o.name==="Debug");if(s>-1){const[o]=i.splice(s,1);i.push(o)}return i}function hC(e,t){const n={};return t.forEach(r=>{r&&cg(e,r,n)}),n}function ag(e,t){for(const n of t)n&&n.afterAllSetup&&n.afterAllSetup(e)}function cg(e,t,n){if(n[t.name]){Ge&&Se.log(`Integration skipped because it was already installed: ${t.name}`);return}if(n[t.name]=t,og.indexOf(t.name)===-1&&typeof t.setupOnce=="function"&&(t.setupOnce(),og.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",(i,s)=>r(i,s,e))}if(typeof t.processEvent=="function"){const r=t.processEvent.bind(t),i=Object.assign((s,o)=>r(s,o,e),{id:t.name});e.addEventProcessor(i)}Ge&&Se.log(`Integration installed: ${t.name}`)}function j9(e){return e}const ug="Not capturing exception because it's already been captured.";class pC{constructor(t){if(this._options=t,this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],t.dsn?this._dsn=Yp(t.dsn):Ge&&Se.warn("No DSN provided, client will not send events."),this._dsn){const n=uC(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 i=St();if(fm(t))return Ge&&Se.log(ug),i;const s={event_id:i,...n};return this._process(this.eventFromException(t,s).then(o=>this._captureEvent(o,s,r))),s.event_id}captureMessage(t,n,r,i){const s={event_id:St(),...r},o=gl(t)?t:String(t),c=yl(t)?this.eventFromMessage(o,n,s):this.eventFromException(t,s);return this._process(c.then(u=>this._captureEvent(u,s,i))),s.event_id}captureEvent(t,n,r){const i=St();if(n&&n.originalException&&fm(n.originalException))return Ge&&Se.log(ug),i;const s={event_id:i,...n},c=(t.sdkProcessingMetadata||{}).capturedSpanScope;return this._process(this._captureEvent(t,s,c||r)),s.event_id}captureSession(t){typeof t.release!="string"?Ge&&Se.warn("Discarded session because of missing or non-string release"):(this.sendSession(t),rs(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(i=>r&&i))):kr(!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];cg(this,t,this._integrations),n||ag(this,[t])}sendEvent(t,n={}){this.emit("beforeSendEvent",t,n);let r=I2(t,this._dsn,this._options._metadata,this._options.tunnel);for(const s of n.attachments||[])r=$x(r,Wx(s));const i=this.sendEnvelope(r);i&&i.then(s=>this.emit("afterSendEvent",t,s),null)}sendSession(t){const n=T2(t,this._dsn,this._options._metadata,this._options.tunnel);this.sendEnvelope(n)}recordDroppedEvent(t,n,r){if(this._options.sendClientReports){const i=typeof r=="number"?r:1,s=`${t}:${n}`;Ge&&Se.log(`Recording outcome: "${s}"${i>1?` (${i} times)`:""}`),this._outcomes[s]=(this._outcomes[s]||0)+i}}on(t,n){const r=this._hooks[t]=this._hooks[t]||[];return r.push(n),()=>{const i=r.indexOf(n);i>-1&&r.splice(i,1)}}emit(t,...n){const r=this._hooks[t];r&&r.forEach(i=>i(...n))}sendEnvelope(t){return this.emit("beforeEnvelope",t),this._isEnabled()&&this._transport?this._transport.send(t).then(null,n=>(Ge&&Se.error("Error while sending event:",n),n)):(Ge&&Se.error("Transport disabled"),kr({}))}_setupIntegrations(){const{integrations:t}=this._options;this._integrations=hC(this,t),ag(this,t)}_updateSessionFromEvent(t,n){let r=!1,i=!1;const s=n.exception&&n.exception.values;if(s){i=!0;for(const u of s){const d=u.mechanism;if(d&&d.handled===!1){r=!0;break}}}const o=t.status==="ok";(o&&t.errors===0||o&&r)&&(rs(t,{...r&&{status:"crashed"},errors:t.errors||Number(i||r)}),this.captureSession(t))}_isClientDoneProcessing(t){return new Yn(n=>{let r=0;const i=1,s=setInterval(()=>{this._numProcessing==0?(clearInterval(s),n(!0)):(r+=i,t&&r>=t&&(clearInterval(s),n(!1)))},i)})}_isEnabled(){return this.getOptions().enabled!==!1&&this._transport!==void 0}_prepareEvent(t,n,r,i=jn()){const s=this.getOptions(),o=Object.keys(this._integrations);return!n.integrations&&o.length>0&&(n.integrations=o),this.emit("preprocessEvent",t,n),t.type||i.setLastEventId(t.event_id||n.event_id),Jm(s,t,n,r,this,i).then(c=>{if(c===null)return c;const u={...i.getPropagationContext(),...r?r.getPropagationContext():void 0};if(!(c.contexts&&c.contexts.trace)&&u){const{traceId:f,spanId:p,parentSpanId:l,dsc:v}=u;c.contexts={trace:Ht({trace_id:f,span_id:p,parent_span_id:l}),...c.contexts};const a=v||Za(f,this);c.sdkProcessingMetadata={dynamicSamplingContext:a,...c.sdkProcessingMetadata}}return c})}_captureEvent(t,n={},r){return this._processEvent(t,n,r).then(i=>i.event_id,i=>{if(Ge){const s=i;s.logLevel==="log"?Se.log(s.message):Se.warn(s)}})}_processEvent(t,n,r){const i=this.getOptions(),{sampleRate:s}=i,o=dg(t),c=lg(t),u=t.type||"error",d=`before send for type \`${u}\``,f=typeof s>"u"?void 0:Xa(s);if(c&&typeof f=="number"&&Math.random()>f)return this.recordDroppedEvent("sample_rate","error",t),Ga(new pr(`Discarding event because it's not included in the random sample (sampling rate = ${s})`,"log"));const p=u==="replay_event"?"replay":u,v=(t.sdkProcessingMetadata||{}).capturedSpanIsolationScope;return this._prepareEvent(t,n,r,v).then(a=>{if(a===null)throw this.recordDroppedEvent("event_processor",p,t),new pr("An event processor returned `null`, will not send event.","log");if(n.data&&n.data.__sentry__===!0)return a;const y=gC(this,i,a,n);return mC(y,d)}).then(a=>{if(a===null){if(this.recordDroppedEvent("before_send",p,t),o){const b=1+(t.spans||[]).length;this.recordDroppedEvent("before_send","span",b)}throw new pr(`${d} returned \`null\`, will not send event.`,"log")}const h=r&&r.getSession();if(!o&&h&&this._updateSessionFromEvent(h,a),o){const g=a.sdkProcessingMetadata&&a.sdkProcessingMetadata.spanCountBeforeProcessing||0,b=a.spans?a.spans.length:0,w=g-b;w>0&&this.recordDroppedEvent("before_send","span",w)}const y=a.transaction_info;if(o&&y&&a.transaction!==t.transaction){const g="custom";a.transaction_info={...y,source:g}}return this.sendEvent(a,n),a}).then(null,a=>{throw a instanceof pr?a:(this.captureException(a,{data:{__sentry__:!0},originalException:a}),new pr(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.
64
- Reason: ${a}`))})}_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[i,s]=n.split(":");return{reason:i,category:s,quantity:r}})}_flushOutcomes(){Ge&&Se.log("Flushing outcomes...");const t=this._clearOutcomes();if(t.length===0){Ge&&Se.log("No outcomes to send");return}if(!this._dsn){Ge&&Se.log("No dsn provided, will not send outcomes");return}Ge&&Se.log("Sending outcomes:",t);const n=zx(t,this._options.tunnel&&ts(this._dsn));this.sendEnvelope(n)}}function mC(e,t){const n=`${t} must return \`null\` or a valid event.`;if(La(e))return e.then(r=>{if(!Qi(r)&&r!==null)throw new pr(n);return r},r=>{throw new pr(`${t} rejected with ${r}`)});if(!Qi(e)&&e!==null)throw new pr(n);return e}function gC(e,t,n,r){const{beforeSend:i,beforeSendTransaction:s,beforeSendSpan:o}=t;if(lg(n)&&i)return i(n,r);if(dg(n)){if(n.spans&&o){const c=[];for(const u of n.spans){const d=o(u);d?c.push(d):e.recordDroppedEvent("before_send","span")}n.spans=c}if(s){if(n.spans){const c=n.spans.length;n.sdkProcessingMetadata={...n.sdkProcessingMetadata,spanCountBeforeProcessing:c}}return s(n,r)}}return n}function lg(e){return e.type===void 0}function dg(e){return e.type==="transaction"}function yC(e,t){t.debug===!0&&(Ge?Se.enable():es(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")})),vt().update(t.initialScope);const r=new e(t);return vC(r),r.init(),r}function vC(e){vt().setClient(e)}const bC=64;function wC(e,t,n=Dx(e.bufferSize||bC)){let r={};const i=o=>n.drain(o);function s(o){const c=[];if(wm(o,(p,l)=>{const v=Em(l);if(xm(r,v)){const a=fg(p,l);e.recordDroppedEvent("ratelimit_backoff",v,a)}else c.push(p)}),c.length===0)return kr({});const u=Ii(o[0],c),d=p=>{wm(u,(l,v)=>{const a=fg(l,v);e.recordDroppedEvent(p,Em(v),a)})},f=()=>t({body:Gx(u)}).then(p=>(p.statusCode!==void 0&&(p.statusCode<200||p.statusCode>=300)&&Ge&&Se.warn(`Sentry responded with status code ${p.statusCode} to sent event.`),r=Cm(r,p),p),p=>{throw d("network_error"),p});return n.add(f).then(p=>p,p=>{if(p instanceof pr)return Ge&&Se.error("Skipped sending event because buffer is full."),d("queue_overflow"),kr({});throw p})}return{send:s,flush:i}}function fg(e,t){if(!(t!=="event"&&t!=="transaction"))return Array.isArray(e)?e[1]:void 0}function EC(e,t){const n=t&&t.getDsn(),r=t&&t.getOptions().tunnel;return xC(e,n)||SC(e,r)}function SC(e,t){return t?hg(e)===hg(t):!1}function xC(e,t){return t?e.includes(t.host):!1}function hg(e){return e[e.length-1]==="/"?e.slice(0,-1):e}function pg(e,t,n=[t],r="npm"){const i=e._metadata||{};i.sdk||(i.sdk={name:`sentry.javascript.${t}`,packages:n.map(s=>({name:`${r}:@sentry/${s}`,version:_i})),version:_i}),e._metadata=i}const CC=100;function ri(e,t){const n=Xe(),r=jn();if(!n)return;const{beforeBreadcrumb:i=null,maxBreadcrumbs:s=CC}=n.getOptions();if(s<=0)return;const c={timestamp:to(),...e},u=i?es(()=>i(c,t)):c;u!==null&&(n.emit&&n.emit("beforeAddBreadcrumb",u,t),r.addBreadcrumb(u,s))}let mg;const _C="FunctionToString",gg=new WeakMap,AC=()=>({name:_C,setupOnce(){mg=Function.prototype.toString;try{Function.prototype.toString=function(...e){const t=wl(this),n=gg.has(Xe())&&t!==void 0?t:this;return mg.apply(n,e)}}catch{}},setup(e){gg.set(e,!0)}}),TC=[/^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"],IC="InboundFilters",kC=(e={})=>({name:IC,processEvent(t,n,r){const i=r.getOptions(),s=OC(e,i);return NC(t,s)?null:t}});function OC(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:TC],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[]],ignoreInternal:e.ignoreInternal!==void 0?e.ignoreInternal:!0}}function NC(e,t){return t.ignoreInternal&&LC(e)?(Ge&&Se.warn(`Event dropped due to being internal Sentry Error.
65
- Event: ${Zr(e)}`),!0):RC(e,t.ignoreErrors)?(Ge&&Se.warn(`Event dropped due to being matched by \`ignoreErrors\` option.
63
+ `)}`)}function C2(e){if(!Ge)return;const{description:t="< unknown name >",op:n="< unknown op >"}=ct(e),{spanId:r}=e.spanContext(),s=rn(e)===e,o=`[Tracing] Finishing "${n}" ${s?"root ":""}span "${t}" with ID ${r}`;Se.log(o)}function Xa(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){Ge&&Se.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}function _2(e,t){if(!Or(e))return[!1];let n;typeof e.tracesSampler=="function"?n=e.tracesSampler(t):t.parentSampled!==void 0?n=t.parentSampled:typeof e.tracesSampleRate<"u"?n=e.tracesSampleRate:n=1;const r=Xa(n);return r===void 0?(Ge&&Se.warn("[Tracing] Discarding transaction because of invalid sample rate."),[!1]):r?Math.random()<r?[!0,r]:(Ge&&Se.log(`[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = ${Number(n)})`),[!1,r]):(Ge&&Se.log(`[Tracing] Discarding transaction because ${typeof e.tracesSampler=="function"?"tracesSampler returned 0 or false":"a negative sampling decision was inherited or tracesSampleRate is set to 0"}`),[!1,r])}function A2(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 T2(e,t,n,r){const i=Rl(n),s={sent_at:new Date().toISOString(),...i&&{sdk:i},...!!r&&t&&{dsn:ts(t)}},o="aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e.toJSON()];return Ii(s,[o])}function I2(e,t,n,r){const i=Rl(n),s=e.type&&e.type!=="replay_event"?e.type:"event";A2(e,n&&n.sdk);const o=Sm(e,i,r,t);return delete e.sdkProcessingMetadata,Ii(o,[[{type:s},e]])}function k2(e,t){function n(f){return!!f.trace_id&&!!f.public_key}const r=ti(e[0]),i=t&&t.getDsn(),s=t&&t.getOptions().tunnel,o={sent_at:new Date().toISOString(),...n(r)&&{trace:r},...!!s&&i&&{dsn:ts(i)}},c=t&&t.getOptions().beforeSendSpan,u=c?f=>c(ct(f)):f=>ct(f),d=[];for(const f of e){const p=u(f);p&&d.push(Yx(p))}return Ii(o,d)}function O2(e,t,n,r=sn()){const i=r&&rn(r);i&&i.addEvent(e,{[Qa]:t,[za]:n})}function Vm(e){if(!e||e.length===0)return;const t={};return e.forEach(n=>{const r=n.attributes||{},i=r[za],s=r[Qa];typeof i=="string"&&typeof s=="number"&&(t[n.name]={value:s,unit:i})}),t}const qm=1e3;class Vl{constructor(t={}){this._traceId=t.traceId||St(),this._spanId=t.spanId||St().substring(16),this._startTime=t.startTimestamp||vn(),this._attributes={},this.setAttributes({[Wt]:"manual",[ei]:t.op,...t.attributes}),this._name=t.name,t.parentSpanId&&(this._parentSpanId=t.parentSpanId),"sampled"in t&&(this._sampled=t.sampled),t.endTimestamp&&(this._endTime=t.endTimestamp),this._events=[],this._isStandaloneSpan=t.isStandalone,this._endTime&&this._onSpanEnded()}addLink(t){return this}addLinks(t){return this}recordException(t,n){}spanContext(){const{_spanId:t,_traceId:n,_sampled:r}=this;return{spanId:t,traceId:n,traceFlags:r?Om:km}}setAttribute(t,n){return n===void 0?delete this._attributes[t]:this._attributes[t]=n,this}setAttributes(t){return Object.keys(t).forEach(n=>this.setAttribute(n,t[n])),this}updateStartTime(t){this._startTime=ki(t)}setStatus(t){return this._status=t,this}updateName(t){return this._name=t,this}end(t){this._endTime||(this._endTime=ki(t),C2(this),this._onSpanEnded())}getSpanJSON(){return Yt({data:this._attributes,description:this._name,op:this._attributes[ei],parent_span_id:this._parentSpanId,span_id:this._spanId,start_timestamp:this._startTime,status:Mm(this._status),timestamp:this._endTime,trace_id:this._traceId,origin:this._attributes[Wt],_metrics_summary:Pl(this),profile_id:this._attributes[h2],exclusive_time:this._attributes[Ll],measurements:Vm(this._events),is_segment:this._isStandaloneSpan&&rn(this)===this||void 0,segment_id:this._isStandaloneSpan?rn(this).spanContext().spanId:void 0})}isRecording(){return!this._endTime&&!!this._sampled}addEvent(t,n,r){Ge&&Se.log("[Tracing] Adding an event to span:",t);const i=$m(n)?n:r||vn(),s=$m(n)?{}:n||{},o={name:t,time:ki(i),attributes:s};return this._events.push(o),this}isStandaloneSpan(){return!!this._isStandaloneSpan}_onSpanEnded(){const t=Xe();if(t&&t.emit("spanEnd",this),!(this._isStandaloneSpan||this===rn(this)))return;if(this._isStandaloneSpan){this._sampled?N2(k2([this],t)):(Ge&&Se.log("[Tracing] Discarding standalone span because its trace was not chosen to be sampled."),t&&t.recordDroppedEvent("sample_rate","span"));return}const r=this._convertSpanToTransaction();r&&(Bm(this).scope||vt()).captureEvent(r)}_convertSpanToTransaction(){if(!Gm(ct(this)))return;this._name||(Ge&&Se.warn("Transaction has no name, falling back to `<unlabeled transaction>`."),this._name="<unlabeled transaction>");const{scope:t,isolationScope:n}=Bm(this),i=(t||vt()).getClient()||Xe();if(this._sampled!==!0){Ge&&Se.log("[Tracing] Discarding transaction because its trace was not chosen to be sampled."),i&&i.recordDroppedEvent("sample_rate","transaction");return}const o=Ja(this).filter(p=>p!==this&&!R2(p)).map(p=>ct(p)).filter(Gm),c=this._attributes[gr],u={contexts:{trace:g2(this)},spans:o.length>qm?o.sort((p,l)=>p.start_timestamp-l.start_timestamp).slice(0,qm):o,start_timestamp:this._startTime,timestamp:this._endTime,transaction:this._name,type:"transaction",sdkProcessingMetadata:{capturedSpanScope:t,capturedSpanIsolationScope:n,...Yt({dynamicSamplingContext:ti(this)})},_metrics_summary:Pl(this),...c&&{transaction_info:{source:c}}},d=Vm(this._events);return d&&Object.keys(d).length&&(Ge&&Se.log("[Measurements] Adding measurements to transaction event",JSON.stringify(d,void 0,2)),u.measurements=d),u}}function $m(e){return e&&typeof e=="number"||e instanceof Date||Array.isArray(e)}function Gm(e){return!!e.start_timestamp&&!!e.timestamp&&!!e.span_id&&!!e.trace_id}function R2(e){return e instanceof Vl&&e.isStandaloneSpan()}function N2(e){const t=Xe();if(!t)return;const n=e[1];if(!n||n.length===0){t.recordDroppedEvent("before_send","span");return}const r=t.getTransport();r&&r.send(e).then(null,i=>{Ge&&Se.error("Error while sending span:",i)})}const Hm="__SENTRY_SUPPRESS_TRACING__";function ni(e){const t=Wm();if(t.startInactiveSpan)return t.startInactiveSpan(e);const n=D2(e),{forceTransaction:r,parentSpan:i}=e;return(e.scope?o=>Ka(e.scope,o):i!==void 0?o=>Ym(i,o):o=>o())(()=>{const o=vt(),c=j2(o);return e.onlyIfParent&&!c?new ss:M2({parentSpan:c,spanArguments:n,forceTransaction:r,scope:o})})}function Ym(e,t){const n=Wm();return n.withActiveSpan?n.withActiveSpan(e,t):Ka(r=>(ro(r,e||void 0),t(r)))}function M2({parentSpan:e,spanArguments:t,forceTransaction:n,scope:r}){if(!Or())return new ss;const i=jn();let s;if(e&&!n)s=P2(e,r,t),Dm(e,s);else if(e){const o=ti(e),{traceId:c,spanId:u}=e.spanContext(),d=Oi(e);s=Km({traceId:c,parentSpanId:u,...t},r,d),Um(s,o)}else{const{traceId:o,dsc:c,parentSpanId:u,sampled:d}={...i.getPropagationContext(),...r.getPropagationContext()};s=Km({traceId:o,parentSpanId:u,...t},r,d),c&&Um(s,c)}return x2(s),S2(s,r,i),s}function D2(e){const n={isStandalone:(e.experimental||{}).standalone,...e};if(e.startTime){const r={...n};return r.startTimestamp=ki(e.startTime),delete r.startTime,r}return n}function Wm(){const e=ns();return io(e)}function Km(e,t,n){const r=Xe(),i=r&&r.getOptions()||{},{name:s="",attributes:o}=e,[c,u]=t.getScopeData().sdkProcessingMetadata[Hm]?[!1]:_2(i,{name:s,parentSampled:n,attributes:o,transactionContext:{name:s,parentSampled:n}}),d=new Vl({...e,attributes:{[gr]:"custom",...e.attributes},sampled:c});return u!==void 0&&d.setAttribute(Am,u),r&&r.emit("spanStart",d),d}function P2(e,t,n){const{spanId:r,traceId:i}=e.spanContext(),s=t.getScopeData().sdkProcessingMetadata[Hm]?!1:Oi(e),o=s?new Vl({...n,parentSpanId:r,traceId:i,sampled:s}):new ss({traceId:i});Dm(e,o);const c=Xe();return c&&(c.emit("spanStart",o),n.endTimestamp&&c.emit("spanEnd",o)),o}function j2(e){const t=Wa(e);if(!t)return;const n=Xe();return(n?n.getOptions():{}).parentSpanIsAlwaysRootSpan?rn(t):t}const ec={idleTimeout:1e3,finalTimeout:3e4,childSpanTimeout:15e3},L2="heartbeatFailed",B2="idleTimeout",F2="finalTimeout",U2="externalFinish";function zm(e,t={}){const n=new Map;let r=!1,i,s=U2,o=!t.disableAutoFinish;const c=[],{idleTimeout:u=ec.idleTimeout,finalTimeout:d=ec.finalTimeout,childSpanTimeout:f=ec.childSpanTimeout,beforeSpanEnd:p}=t,l=Xe();if(!l||!Or())return new ss;const v=vt(),a=sn(),h=V2(e);h.end=new Proxy(h.end,{apply(A,T,O){p&&p(h);const[M,...D]=O,F=M||vn(),V=ki(F),G=Ja(h).filter(z=>z!==h);if(!G.length)return S(V),Reflect.apply(A,T,[V,...D]);const U=G.map(z=>ct(z).timestamp).filter(z=>!!z),R=U.length?Math.max(...U):void 0,L=ct(h).start_timestamp,Y=Math.min(L?L+d/1e3:1/0,Math.max(L||-1/0,Math.min(V,R||1/0)));return S(Y),Reflect.apply(A,T,[Y,...D])}});function y(){i&&(clearTimeout(i),i=void 0)}function g(A){y(),i=setTimeout(()=>{!r&&n.size===0&&o&&(s=B2,h.end(A))},u)}function b(A){i=setTimeout(()=>{!r&&o&&(s=L2,h.end(A))},f)}function w(A){y(),n.set(A,!0);const T=vn();b(T+f/1e3)}function E(A){if(n.has(A)&&n.delete(A),n.size===0){const T=vn();g(T+u/1e3)}}function S(A){r=!0,n.clear(),c.forEach(V=>V()),ro(v,a);const T=ct(h),{start_timestamp:O}=T;if(!O)return;(T.data||{})[jl]||h.setAttribute(jl,s),Se.log(`[Tracing] Idle span "${T.op}" finished`);const D=Ja(h).filter(V=>V!==h);let F=0;D.forEach(V=>{V.isRecording()&&(V.setStatus({code:Xt,message:"cancelled"}),V.end(A),Ge&&Se.log("[Tracing] Cancelling span since span ended early",JSON.stringify(V,void 0,2)));const G=ct(V),{timestamp:U=0,start_timestamp:R=0}=G,L=R<=A,Y=(d+u)/1e3,z=U-R<=Y;if(Ge){const ee=JSON.stringify(V,void 0,2);L?z||Se.log("[Tracing] Discarding span since it finished after idle span final timeout",ee):Se.log("[Tracing] Discarding span since it happened after idle span was finished",ee)}(!z||!L)&&(w2(h,V),F++)}),F>0&&h.setAttribute("sentry.idle_span_discarded_spans",F)}return c.push(l.on("spanStart",A=>{if(r||A===h||ct(A).timestamp)return;Ja(h).includes(A)&&w(A.spanContext().spanId)})),c.push(l.on("spanEnd",A=>{r||E(A.spanContext().spanId)})),c.push(l.on("idleSpanEnableAutoFinish",A=>{A===h&&(o=!0,g(),n.size&&b())})),t.disableAutoFinish||g(),setTimeout(()=>{r||(h.setStatus({code:Xt,message:"deadline_exceeded"}),s=F2,h.end())},d),h}function V2(e){const t=ni(e);return ro(vt(),t),Ge&&Se.log("[Tracing] Started span is an idle span"),t}function ql(e,t,n,r=0){return new Yn((i,s)=>{const o=e[r];if(t===null||typeof o!="function")i(t);else{const c=o({...t},n);Ge&&o.id&&c===null&&Se.log(`Event processor "${o.id}" dropped event`),La(c)?c.then(u=>ql(e,u,n,r+1).then(i)).then(null,s):ql(e,c,n,r+1).then(i).then(null,s)}})}function q2(e,t){const{fingerprint:n,span:r,breadcrumbs:i,sdkProcessingMetadata:s}=t;$2(e,t),r&&Y2(e,r),W2(e,n),G2(e,i),H2(e,s)}function Qm(e,t){const{extra:n,tags:r,user:i,contexts:s,level:o,sdkProcessingMetadata:c,breadcrumbs:u,fingerprint:d,eventProcessors:f,attachments:p,propagationContext:l,transactionName:v,span:a}=t;so(e,"extra",n),so(e,"tags",r),so(e,"user",i),so(e,"contexts",s),so(e,"sdkProcessingMetadata",c),o&&(e.level=o),v&&(e.transactionName=v),a&&(e.span=a),u.length&&(e.breadcrumbs=[...e.breadcrumbs,...u]),d.length&&(e.fingerprint=[...e.fingerprint,...d]),f.length&&(e.eventProcessors=[...e.eventProcessors,...f]),p.length&&(e.attachments=[...e.attachments,...p]),e.propagationContext={...e.propagationContext,...l}}function so(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 $2(e,t){const{extra:n,tags:r,user:i,contexts:s,level:o,transactionName:c}=t,u=Yt(n);u&&Object.keys(u).length&&(e.extra={...u,...e.extra});const d=Yt(r);d&&Object.keys(d).length&&(e.tags={...d,...e.tags});const f=Yt(i);f&&Object.keys(f).length&&(e.user={...f,...e.user});const p=Yt(s);p&&Object.keys(p).length&&(e.contexts={...p,...e.contexts}),o&&(e.level=o),c&&e.type!=="transaction"&&(e.transaction=c)}function G2(e,t){const n=[...e.breadcrumbs||[],...t];e.breadcrumbs=n.length?n:void 0}function H2(e,t){e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...t}}function Y2(e,t){e.contexts={trace:y2(t),...e.contexts},e.sdkProcessingMetadata={dynamicSamplingContext:ti(t),...e.sdkProcessingMetadata};const n=rn(t),r=ct(n).description;r&&!e.transaction&&e.type==="transaction"&&(e.transaction=r)}function W2(e,t){e.fingerprint=e.fingerprint?hm(e.fingerprint):[],t&&(e.fingerprint=e.fingerprint.concat(t)),e.fingerprint&&!e.fingerprint.length&&delete e.fingerprint}function Jm(e,t,n,r,i,s){const{normalizeDepth:o=3,normalizeMaxBreadth:c=1e3}=e,u={...t,event_id:t.event_id||n.event_id||St(),timestamp:t.timestamp||to()},d=n.integrations||e.integrations.map(y=>y.name);K2(u,e),J2(u,d),i&&i.emit("applyFrameMetadata",t),t.type===void 0&&z2(u,e.stackParser);const f=X2(r,n.captureContext);n.mechanism&&no(u,n.mechanism);const p=i?i.getEventProcessors():[],l=d2().getScopeData();if(s){const y=s.getScopeData();Qm(l,y)}if(f){const y=f.getScopeData();Qm(l,y)}const v=[...n.attachments||[],...l.attachments];v.length&&(n.attachments=v),q2(u,l);const a=[...p,...l.eventProcessors];return ql(a,u,n).then(y=>(y&&Q2(y),typeof o=="number"&&o>0?Z2(y,o,c):y))}function K2(e,t){const{environment:n,release:r,dist:i,maxValueLength:s=250}=t;"environment"in e||(e.environment="environment"in t?n:Ul),e.release===void 0&&r!==void 0&&(e.release=r),e.dist===void 0&&i!==void 0&&(e.dist=i),e.message&&(e.message=Ji(e.message,s));const o=e.exception&&e.exception.values&&e.exception.values[0];o&&o.value&&(o.value=Ji(o.value,s));const c=e.request;c&&c.url&&(c.url=Ji(c.url,s))}const Zm=new WeakMap;function z2(e,t){const n=nt._sentryDebugIds;if(!n)return;let r;const i=Zm.get(t);i?r=i:(r=new Map,Zm.set(t,r));const s=Object.entries(n).reduce((o,[c,u])=>{let d;const f=r.get(c);f?d=f:(d=t(c),r.set(c,d));for(let p=d.length-1;p>=0;p--){const l=d[p];if(l.filename){o[l.filename]=u;break}}return o},{});try{e.exception.values.forEach(o=>{o.stacktrace.frames.forEach(c=>{c.filename&&(c.debug_id=s[c.filename])})})}catch{}}function Q2(e){const t={};try{e.exception.values.forEach(r=>{r.stacktrace.frames.forEach(i=>{i.debug_id&&(i.abs_path?t[i.abs_path]=i.debug_id:i.filename&&(t[i.filename]=i.debug_id),delete i.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,i])=>{n.push({type:"sourcemap",code_file:r,debug_id:i})})}function J2(e,t){t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[...e.sdk.integrations||[],...t])}function Z2(e,t,n){if(!e)return null;const r={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map(i=>({...i,...i.data&&{data:mr(i.data,t,n)}}))},...e.user&&{user:mr(e.user,t,n)},...e.contexts&&{contexts:mr(e.contexts,t,n)},...e.extra&&{extra:mr(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=mr(e.contexts.trace.data,t,n))),e.spans&&(r.spans=e.spans.map(i=>({...i,...i.data&&{data:mr(i.data,t,n)}}))),r}function X2(e,t){if(!t)return e;const n=e?e.clone():new Xr;return n.update(t),n}function eC(e){if(e)return tC(e)?{captureContext:e}:rC(e)?{captureContext:e}:e}function tC(e){return e instanceof Xr||typeof e=="function"}const nC=["user","level","extra","contexts","tags","fingerprint","requestSession","propagationContext"];function rC(e){return Object.keys(e).some(t=>nC.includes(t))}function tc(e,t){return vt().captureException(e,eC(t))}function Xm(e,t){return vt().captureEvent(e,t)}function eg(e,t){jn().setContext(e,t)}function iC(){return jn().lastEventId()}function sC(e){jn().addEventProcessor(e)}function tg(e){const t=Xe(),n=jn(),r=vt(),{release:i,environment:s=Ul}=t&&t.getOptions()||{},{userAgent:o}=nt.navigator||{},c=t2({release:i,environment:s,user:r.getUser()||n.getUser(),...o&&{userAgent:o},...e}),u=n.getSession();return u&&u.status==="ok"&&rs(u,{status:"exited"}),ng(),n.setSession(c),r.setSession(c),c}function ng(){const e=jn(),t=vt(),n=t.getSession()||e.getSession();n&&n2(n),rg(),e.setSession(),t.setSession()}function rg(){const e=jn(),t=vt(),n=Xe(),r=t.getSession()||e.getSession();r&&n&&n.captureSession(r)}function ig(e=!1){if(e){ng();return}rg()}const oC="7";function sg(e){const t=e.protocol?`${e.protocol}:`:"",n=e.port?`:${e.port}`:"";return`${t}//${e.host}${n}${e.path?`/${e.path}`:""}/api/`}function aC(e){return`${sg(e)}${e.projectId}/envelope/`}function cC(e,t){return lx({sentry_key:e.publicKey,sentry_version:oC,...t&&{sentry_client:`${t.name}/${t.version}`}})}function uC(e,t,n){return t||`${aC(e)}?${cC(e,n)}`}function lC(e,t){const n=Yp(e);if(!n)return"";const r=`${sg(n)}embed/error-page/`;let i=`dsn=${ts(n)}`;for(const s in t)if(s!=="dsn"&&s!=="onClose")if(s==="user"){const o=t.user;if(!o)continue;o.name&&(i+=`&name=${encodeURIComponent(o.name)}`),o.email&&(i+=`&email=${encodeURIComponent(o.email)}`)}else i+=`&${encodeURIComponent(s)}=${encodeURIComponent(t[s])}`;return`${r}?${i}`}const og=[];function dC(e){const t={};return e.forEach(n=>{const{name:r}=n,i=t[r];i&&!i.isDefaultInstance&&n.isDefaultInstance||(t[r]=n)}),Object.values(t)}function fC(e){const t=e.defaultIntegrations||[],n=e.integrations;t.forEach(o=>{o.isDefaultInstance=!0});let r;Array.isArray(n)?r=[...t,...n]:typeof n=="function"?r=hm(n(t)):r=t;const i=dC(r),s=i.findIndex(o=>o.name==="Debug");if(s>-1){const[o]=i.splice(s,1);i.push(o)}return i}function hC(e,t){const n={};return t.forEach(r=>{r&&cg(e,r,n)}),n}function ag(e,t){for(const n of t)n&&n.afterAllSetup&&n.afterAllSetup(e)}function cg(e,t,n){if(n[t.name]){Ge&&Se.log(`Integration skipped because it was already installed: ${t.name}`);return}if(n[t.name]=t,og.indexOf(t.name)===-1&&typeof t.setupOnce=="function"&&(t.setupOnce(),og.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",(i,s)=>r(i,s,e))}if(typeof t.processEvent=="function"){const r=t.processEvent.bind(t),i=Object.assign((s,o)=>r(s,o,e),{id:t.name});e.addEventProcessor(i)}Ge&&Se.log(`Integration installed: ${t.name}`)}function L9(e){return e}const ug="Not capturing exception because it's already been captured.";class pC{constructor(t){if(this._options=t,this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],t.dsn?this._dsn=Yp(t.dsn):Ge&&Se.warn("No DSN provided, client will not send events."),this._dsn){const n=uC(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 i=St();if(fm(t))return Ge&&Se.log(ug),i;const s={event_id:i,...n};return this._process(this.eventFromException(t,s).then(o=>this._captureEvent(o,s,r))),s.event_id}captureMessage(t,n,r,i){const s={event_id:St(),...r},o=gl(t)?t:String(t),c=yl(t)?this.eventFromMessage(o,n,s):this.eventFromException(t,s);return this._process(c.then(u=>this._captureEvent(u,s,i))),s.event_id}captureEvent(t,n,r){const i=St();if(n&&n.originalException&&fm(n.originalException))return Ge&&Se.log(ug),i;const s={event_id:i,...n},c=(t.sdkProcessingMetadata||{}).capturedSpanScope;return this._process(this._captureEvent(t,s,c||r)),s.event_id}captureSession(t){typeof t.release!="string"?Ge&&Se.warn("Discarded session because of missing or non-string release"):(this.sendSession(t),rs(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(i=>r&&i))):kr(!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];cg(this,t,this._integrations),n||ag(this,[t])}sendEvent(t,n={}){this.emit("beforeSendEvent",t,n);let r=I2(t,this._dsn,this._options._metadata,this._options.tunnel);for(const s of n.attachments||[])r=$x(r,Wx(s));const i=this.sendEnvelope(r);i&&i.then(s=>this.emit("afterSendEvent",t,s),null)}sendSession(t){const n=T2(t,this._dsn,this._options._metadata,this._options.tunnel);this.sendEnvelope(n)}recordDroppedEvent(t,n,r){if(this._options.sendClientReports){const i=typeof r=="number"?r:1,s=`${t}:${n}`;Ge&&Se.log(`Recording outcome: "${s}"${i>1?` (${i} times)`:""}`),this._outcomes[s]=(this._outcomes[s]||0)+i}}on(t,n){const r=this._hooks[t]=this._hooks[t]||[];return r.push(n),()=>{const i=r.indexOf(n);i>-1&&r.splice(i,1)}}emit(t,...n){const r=this._hooks[t];r&&r.forEach(i=>i(...n))}sendEnvelope(t){return this.emit("beforeEnvelope",t),this._isEnabled()&&this._transport?this._transport.send(t).then(null,n=>(Ge&&Se.error("Error while sending event:",n),n)):(Ge&&Se.error("Transport disabled"),kr({}))}_setupIntegrations(){const{integrations:t}=this._options;this._integrations=hC(this,t),ag(this,t)}_updateSessionFromEvent(t,n){let r=!1,i=!1;const s=n.exception&&n.exception.values;if(s){i=!0;for(const u of s){const d=u.mechanism;if(d&&d.handled===!1){r=!0;break}}}const o=t.status==="ok";(o&&t.errors===0||o&&r)&&(rs(t,{...r&&{status:"crashed"},errors:t.errors||Number(i||r)}),this.captureSession(t))}_isClientDoneProcessing(t){return new Yn(n=>{let r=0;const i=1,s=setInterval(()=>{this._numProcessing==0?(clearInterval(s),n(!0)):(r+=i,t&&r>=t&&(clearInterval(s),n(!1)))},i)})}_isEnabled(){return this.getOptions().enabled!==!1&&this._transport!==void 0}_prepareEvent(t,n,r,i=jn()){const s=this.getOptions(),o=Object.keys(this._integrations);return!n.integrations&&o.length>0&&(n.integrations=o),this.emit("preprocessEvent",t,n),t.type||i.setLastEventId(t.event_id||n.event_id),Jm(s,t,n,r,this,i).then(c=>{if(c===null)return c;const u={...i.getPropagationContext(),...r?r.getPropagationContext():void 0};if(!(c.contexts&&c.contexts.trace)&&u){const{traceId:f,spanId:p,parentSpanId:l,dsc:v}=u;c.contexts={trace:Yt({trace_id:f,span_id:p,parent_span_id:l}),...c.contexts};const a=v||Za(f,this);c.sdkProcessingMetadata={dynamicSamplingContext:a,...c.sdkProcessingMetadata}}return c})}_captureEvent(t,n={},r){return this._processEvent(t,n,r).then(i=>i.event_id,i=>{if(Ge){const s=i;s.logLevel==="log"?Se.log(s.message):Se.warn(s)}})}_processEvent(t,n,r){const i=this.getOptions(),{sampleRate:s}=i,o=dg(t),c=lg(t),u=t.type||"error",d=`before send for type \`${u}\``,f=typeof s>"u"?void 0:Xa(s);if(c&&typeof f=="number"&&Math.random()>f)return this.recordDroppedEvent("sample_rate","error",t),Ga(new pr(`Discarding event because it's not included in the random sample (sampling rate = ${s})`,"log"));const p=u==="replay_event"?"replay":u,v=(t.sdkProcessingMetadata||{}).capturedSpanIsolationScope;return this._prepareEvent(t,n,r,v).then(a=>{if(a===null)throw this.recordDroppedEvent("event_processor",p,t),new pr("An event processor returned `null`, will not send event.","log");if(n.data&&n.data.__sentry__===!0)return a;const y=gC(this,i,a,n);return mC(y,d)}).then(a=>{if(a===null){if(this.recordDroppedEvent("before_send",p,t),o){const b=1+(t.spans||[]).length;this.recordDroppedEvent("before_send","span",b)}throw new pr(`${d} returned \`null\`, will not send event.`,"log")}const h=r&&r.getSession();if(!o&&h&&this._updateSessionFromEvent(h,a),o){const g=a.sdkProcessingMetadata&&a.sdkProcessingMetadata.spanCountBeforeProcessing||0,b=a.spans?a.spans.length:0,w=g-b;w>0&&this.recordDroppedEvent("before_send","span",w)}const y=a.transaction_info;if(o&&y&&a.transaction!==t.transaction){const g="custom";a.transaction_info={...y,source:g}}return this.sendEvent(a,n),a}).then(null,a=>{throw a instanceof pr?a:(this.captureException(a,{data:{__sentry__:!0},originalException:a}),new pr(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.
64
+ Reason: ${a}`))})}_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[i,s]=n.split(":");return{reason:i,category:s,quantity:r}})}_flushOutcomes(){Ge&&Se.log("Flushing outcomes...");const t=this._clearOutcomes();if(t.length===0){Ge&&Se.log("No outcomes to send");return}if(!this._dsn){Ge&&Se.log("No dsn provided, will not send outcomes");return}Ge&&Se.log("Sending outcomes:",t);const n=zx(t,this._options.tunnel&&ts(this._dsn));this.sendEnvelope(n)}}function mC(e,t){const n=`${t} must return \`null\` or a valid event.`;if(La(e))return e.then(r=>{if(!Qi(r)&&r!==null)throw new pr(n);return r},r=>{throw new pr(`${t} rejected with ${r}`)});if(!Qi(e)&&e!==null)throw new pr(n);return e}function gC(e,t,n,r){const{beforeSend:i,beforeSendTransaction:s,beforeSendSpan:o}=t;if(lg(n)&&i)return i(n,r);if(dg(n)){if(n.spans&&o){const c=[];for(const u of n.spans){const d=o(u);d?c.push(d):e.recordDroppedEvent("before_send","span")}n.spans=c}if(s){if(n.spans){const c=n.spans.length;n.sdkProcessingMetadata={...n.sdkProcessingMetadata,spanCountBeforeProcessing:c}}return s(n,r)}}return n}function lg(e){return e.type===void 0}function dg(e){return e.type==="transaction"}function yC(e,t){t.debug===!0&&(Ge?Se.enable():es(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")})),vt().update(t.initialScope);const r=new e(t);return vC(r),r.init(),r}function vC(e){vt().setClient(e)}const bC=64;function wC(e,t,n=Dx(e.bufferSize||bC)){let r={};const i=o=>n.drain(o);function s(o){const c=[];if(wm(o,(p,l)=>{const v=Em(l);if(xm(r,v)){const a=fg(p,l);e.recordDroppedEvent("ratelimit_backoff",v,a)}else c.push(p)}),c.length===0)return kr({});const u=Ii(o[0],c),d=p=>{wm(u,(l,v)=>{const a=fg(l,v);e.recordDroppedEvent(p,Em(v),a)})},f=()=>t({body:Gx(u)}).then(p=>(p.statusCode!==void 0&&(p.statusCode<200||p.statusCode>=300)&&Ge&&Se.warn(`Sentry responded with status code ${p.statusCode} to sent event.`),r=Cm(r,p),p),p=>{throw d("network_error"),p});return n.add(f).then(p=>p,p=>{if(p instanceof pr)return Ge&&Se.error("Skipped sending event because buffer is full."),d("queue_overflow"),kr({});throw p})}return{send:s,flush:i}}function fg(e,t){if(!(t!=="event"&&t!=="transaction"))return Array.isArray(e)?e[1]:void 0}function EC(e,t){const n=t&&t.getDsn(),r=t&&t.getOptions().tunnel;return xC(e,n)||SC(e,r)}function SC(e,t){return t?hg(e)===hg(t):!1}function xC(e,t){return t?e.includes(t.host):!1}function hg(e){return e[e.length-1]==="/"?e.slice(0,-1):e}function pg(e,t,n=[t],r="npm"){const i=e._metadata||{};i.sdk||(i.sdk={name:`sentry.javascript.${t}`,packages:n.map(s=>({name:`${r}:@sentry/${s}`,version:_i})),version:_i}),e._metadata=i}const CC=100;function ri(e,t){const n=Xe(),r=jn();if(!n)return;const{beforeBreadcrumb:i=null,maxBreadcrumbs:s=CC}=n.getOptions();if(s<=0)return;const c={timestamp:to(),...e},u=i?es(()=>i(c,t)):c;u!==null&&(n.emit&&n.emit("beforeAddBreadcrumb",u,t),r.addBreadcrumb(u,s))}let mg;const _C="FunctionToString",gg=new WeakMap,AC=()=>({name:_C,setupOnce(){mg=Function.prototype.toString;try{Function.prototype.toString=function(...e){const t=wl(this),n=gg.has(Xe())&&t!==void 0?t:this;return mg.apply(n,e)}}catch{}},setup(e){gg.set(e,!0)}}),TC=[/^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"],IC="InboundFilters",kC=(e={})=>({name:IC,processEvent(t,n,r){const i=r.getOptions(),s=OC(e,i);return RC(t,s)?null:t}});function OC(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:TC],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[]],ignoreInternal:e.ignoreInternal!==void 0?e.ignoreInternal:!0}}function RC(e,t){return t.ignoreInternal&&LC(e)?(Ge&&Se.warn(`Event dropped due to being internal Sentry Error.
65
+ Event: ${Zr(e)}`),!0):NC(e,t.ignoreErrors)?(Ge&&Se.warn(`Event dropped due to being matched by \`ignoreErrors\` option.
66
66
  Event: ${Zr(e)}`),!0):FC(e)?(Ge&&Se.warn(`Event dropped due to not having an error message, error type or stacktrace.
67
67
  Event: ${Zr(e)}`),!0):MC(e,t.ignoreTransactions)?(Ge&&Se.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.
68
68
  Event: ${Zr(e)}`),!0):DC(e,t.denyUrls)?(Ge&&Se.warn(`Event dropped due to being matched by \`denyUrls\` option.
69
69
  Event: ${Zr(e)}.
70
70
  Url: ${nc(e)}`),!0):PC(e,t.allowUrls)?!1:(Ge&&Se.warn(`Event dropped due to not being matched by \`allowUrls\` option.
71
71
  Event: ${Zr(e)}.
72
- Url: ${nc(e)}`),!0)}function RC(e,t){return e.type||!t||!t.length?!1:jC(e).some(n=>zr(n,t))}function MC(e,t){if(e.type!=="transaction"||!t||!t.length)return!1;const n=e.transaction;return n?zr(n,t):!1}function DC(e,t){if(!t||!t.length)return!1;const n=nc(e);return n?zr(n,t):!1}function PC(e,t){if(!t||!t.length)return!0;const n=nc(e);return n?zr(n,t):!0}function jC(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 LC(e){try{return e.exception.values[0].type==="SentryError"}catch{}return!1}function BC(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 nc(e){try{let t;try{t=e.exception.values[0].stacktrace.frames}catch{}return t?BC(t):null}catch{return Ge&&Se.error(`Cannot extract url for event ${Zr(e)}`),null}}function FC(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)}const UC="Dedupe",VC=()=>{let e;return{name:UC,processEvent(t){if(t.type)return t;try{if(qC(t,e))return Ge&&Se.warn("Event dropped due to being a duplicate of previously captured event."),null}catch{}return e=t}}};function qC(e,t){return t?!!($C(e,t)||GC(e,t)):!1}function $C(e,t){const n=e.message,r=t.message;return!(!n&&!r||n&&!r||!n&&r||n!==r||!vg(e,t)||!yg(e,t))}function GC(e,t){const n=bg(t),r=bg(e);return!(!n||!r||n.type!==r.type||n.value!==r.value||!vg(e,t)||!yg(e,t))}function yg(e,t){let n=tm(e),r=tm(t);if(!n&&!r)return!0;if(n&&!r||!n&&r||(n=n,r=r,r.length!==n.length))return!1;for(let i=0;i<r.length;i++){const s=r[i],o=n[i];if(s.filename!==o.filename||s.lineno!==o.lineno||s.colno!==o.colno||s.function!==o.function)return!1}return!0}function vg(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 bg(e){return e.exception&&e.exception.values&&e.exception.values[0]}function HC(e,t,n,r,i="auto.http.browser"){if(!e.fetchData)return;const s=Or()&&t(e.fetchData.url);if(e.endTimestamp&&s){const a=e.fetchData.__span;if(!a)return;const h=r[a];h&&(KC(h,e),delete r[a]);return}const o=vt(),c=Xe(),{method:u,url:d}=e.fetchData,f=WC(d),p=f?Ti(f).host:void 0,l=!!rn(),v=s&&l?ni({name:`${u} ${d}`,attributes:{url:d,type:"fetch","http.method":u,"http.url":f,"server.address":p,[Yt]:i,[ei]:"http.client"}}):new ss;if(e.fetchData.__span=v.spanContext().spanId,r[v.spanContext().spanId]=v,n(e.fetchData.url)&&c){const a=e.args[0];e.args[1]=e.args[1]||{};const h=e.args[1];h.headers=YC(a,c,o,h,Or()&&l?v:void 0)}return v}function YC(e,t,n,r,i){const s=jn(),{traceId:o,spanId:c,sampled:u,dsc:d}={...s.getPropagationContext(),...n.getPropagationContext()},f=i?Nm(i):kl(o,c,u),p=vm(d||(i?ti(i):Za(o,t))),l=r.headers||(typeof Request<"u"&&_r(e,Request)?e.headers:void 0);if(l)if(typeof Headers<"u"&&_r(l,Headers)){const v=new Headers(l);return v.append("sentry-trace",f),p&&v.append(Il,p),v}else if(Array.isArray(l)){const v=[...l,["sentry-trace",f]];return p&&v.push([Il,p]),v}else{const v="baggage"in l?l.baggage:void 0,a=[];return Array.isArray(v)?a.push(...v):v&&a.push(v),p&&a.push(p),{...l,"sentry-trace":f,baggage:a.length>0?a.join(","):void 0}}else return{"sentry-trace":f,baggage:p}}function WC(e){try{return new URL(e).href}catch{return}}function KC(e,t){if(t.response){Im(e,t.response.status);const n=t.response&&t.response.headers&&t.response.headers.get("content-length");if(n){const r=parseInt(n);r>0&&e.setAttribute("http.response_content_length",r)}}else t.error&&e.setStatus({code:Zt,message:"internal_error"});e.end()}const Ne=nt;let $l=0;function wg(){return $l>0}function zC(){$l++,setTimeout(()=>{$l--})}function os(e,t={},n){if(typeof e!="function")return e;try{const i=e.__sentry_wrapped__;if(i)return typeof i=="function"?i:e;if(wl(e))return e}catch{return e}const r=function(){const i=Array.prototype.slice.call(arguments);try{const s=i.map(o=>os(o,t));return e.apply(this,s)}catch(s){throw zC(),Ka(o=>{o.addEventProcessor(c=>(t.mechanism&&(Al(c,void 0),no(c,t.mechanism)),c.extra={...c.extra,arguments:i},c)),tc(s)}),s}};try{for(const i in e)Object.prototype.hasOwnProperty.call(e,i)&&(r[i]=e[i])}catch{}Wp(r,e),Gn(e,"__sentry_wrapped__",r);try{Object.getOwnPropertyDescriptor(r,"name").configurable&&Object.defineProperty(r,"name",{get(){return e.name}})}catch{}return r}const An=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;function Gl(e,t){const n=Yl(e,t),r={type:e_(t),value:t_(t)};return n.length&&(r.stacktrace={frames:n}),r.type===void 0&&r.value===""&&(r.value="Unrecoverable error caught"),r}function QC(e,t,n,r){const i=Xe(),s=i&&i.getOptions().normalizeDepth,o=o_(t),c={__serialized__:pm(t,s)};if(o)return{exception:{values:[Gl(e,o)]},extra:c};const u={exception:{values:[{type:ja(t)?t.constructor.name:r?"UnhandledRejection":"Error",value:i_(t,{isUnhandledRejection:r})}]},extra:c};if(n){const d=Yl(e,n);d.length&&(u.exception.values[0].stacktrace={frames:d})}return u}function Hl(e,t){return{exception:{values:[Gl(e,t)]}}}function Yl(e,t){const n=t.stacktrace||t.stack||"",r=ZC(t),i=XC(t);try{return e(n,r,i)}catch{}return[]}const JC=/Minified React error #\d+;/i;function ZC(e){return e&&JC.test(e.message)?1:0}function XC(e){return typeof e.framesToPop=="number"?e.framesToPop:0}function Eg(e){return typeof WebAssembly<"u"&&typeof WebAssembly.Exception<"u"?e instanceof WebAssembly.Exception:!1}function e_(e){const t=e&&e.name;return!t&&Eg(e)?e.message&&Array.isArray(e.message)&&e.message.length==2?e.message[0]:"WebAssembly.Exception":t}function t_(e){const t=e&&e.message;return t?t.error&&typeof t.error.message=="string"?t.error.message:Eg(e)&&Array.isArray(e.message)&&e.message.length==2?e.message[1]:t:"No error message"}function n_(e,t,n,r){const i=n&&n.syntheticException||void 0,s=Wl(e,t,i,r);return no(s),s.level="error",n&&n.event_id&&(s.event_id=n.event_id),kr(s)}function r_(e,t,n="info",r,i){const s=r&&r.syntheticException||void 0,o=Kl(e,t,s,i);return o.level=n,r&&r.event_id&&(o.event_id=r.event_id),kr(o)}function Wl(e,t,n,r,i){let s;if(jp(t)&&t.error)return Hl(e,t.error);if(Lp(t)||KS(t)){const o=t;if("stack"in t)s=Hl(e,t);else{const c=o.name||(Lp(o)?"DOMError":"DOMException"),u=o.message?`${c}: ${o.message}`:c;s=Kl(e,u,n,r),Al(s,u)}return"code"in o&&(s.tags={...s.tags,"DOMException.code":`${o.code}`}),s}return Pa(t)?Hl(e,t):Qi(t)||ja(t)?(s=QC(e,t,n,i),no(s,{synthetic:!0}),s):(s=Kl(e,t,n,r),Al(s,`${t}`),no(s,{synthetic:!0}),s)}function Kl(e,t,n,r){const i={};if(r&&n){const s=Yl(e,n);s.length&&(i.exception={values:[{value:t,stacktrace:{frames:s}}]})}if(gl(t)){const{__sentry_template_string__:s,__sentry_template_values__:o}=t;return i.logentry={message:s,params:o},i}return i.message=t,i}function i_(e,{isUnhandledRejection:t}){const n=dx(e),r=t?"promise rejection":"exception";return jp(e)?`Event \`ErrorEvent\` captured as ${r} with message \`${e.message}\``:ja(e)?`Event \`${s_(e)}\` (type=${e.type}) captured as ${r}`:`Object captured as ${r} with keys: ${n}`}function s_(e){try{const t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch{}}function o_(e){for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t)){const n=e[t];if(n instanceof Error)return n}}function a_(e,{metadata:t,tunnel:n,dsn:r}){const i={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:ts(r)}},s=c_(e);return Ii(i,[s])}function c_(e){return[{type:"user_report"},e]}class u_ extends pC{constructor(t){const n={parentSpanIsAlwaysRootSpan:!0,...t},r=Ne.SENTRY_SDK_SOURCE||Ax();pg(n,"browser",["browser"],r),super(n),n.sendClientReports&&Ne.document&&Ne.document.addEventListener("visibilitychange",()=>{Ne.document.visibilityState==="hidden"&&this._flushOutcomes()})}eventFromException(t,n){return n_(this._options.stackParser,t,n,this._options.attachStacktrace)}eventFromMessage(t,n="info",r){return r_(this._options.stackParser,t,n,r,this._options.attachStacktrace)}captureUserFeedback(t){if(!this._isEnabled()){An&&Se.warn("SDK not enabled, will not capture user feedback.");return}const n=a_(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)}}const Ln=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,l_=(e,t)=>e>t[1]?"poor":e>t[0]?"needs-improvement":"good",as=(e,t,n,r)=>{let i,s;return o=>{t.value>=0&&(o||r)&&(s=t.value-(i||0),(s||i===void 0)&&(i=t.value,t.delta=s,t.rating=l_(t.value,n),e(t)))}},Pe=nt,d_=()=>`v3-${Date.now()}-${Math.floor(Math.random()*(9e12-1))+1e12}`,oo=()=>Pe.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0],ao=()=>{const e=oo();return e&&e.activationStart||0},cs=(e,t)=>{const n=oo();let r="navigate";return n&&(Pe.document&&Pe.document.prerendering||ao()>0?r="prerender":Pe.document&&Pe.document.wasDiscarded?r="restore":n.type&&(r=n.type.replace(/_/g,"-"))),{name:e,value:typeof t>"u"?-1:t,rating:"good",delta:0,entries:[],id:d_(),navigationType:r}},Ri=(e,t,n)=>{try{if(PerformanceObserver.supportedEntryTypes.includes(e)){const r=new PerformanceObserver(i=>{Promise.resolve().then(()=>{t(i.getEntries())})});return r.observe(Object.assign({type:e,buffered:!0},n||{})),r}}catch{}},co=e=>{const t=n=>{(n.type==="pagehide"||Pe.document&&Pe.document.visibilityState==="hidden")&&e(n)};Pe.document&&(addEventListener("visibilitychange",t,!0),addEventListener("pagehide",t,!0))},zl=e=>{let t=!1;return n=>{t||(e(n),t=!0)}};let uo=-1;const f_=()=>{uo=Pe.document.visibilityState==="hidden"&&!Pe.document.prerendering?0:1/0},rc=e=>{Pe.document.visibilityState==="hidden"&&uo>-1&&(uo=e.type==="visibilitychange"?e.timeStamp:0,removeEventListener("visibilitychange",rc,!0),removeEventListener("prerenderingchange",rc,!0))},h_=()=>{addEventListener("visibilitychange",rc,!0),addEventListener("prerenderingchange",rc,!0)},ic=()=>(Pe.document&&uo<0&&(f_(),h_()),{get firstHiddenTime(){return uo}}),lo=e=>{Pe.document&&Pe.document.prerendering?addEventListener("prerenderingchange",()=>e(),!0):e()},p_=[1800,3e3],m_=(e,t={})=>{lo(()=>{const n=ic(),r=cs("FCP");let i;const o=Ri("paint",c=>{c.forEach(u=>{u.name==="first-contentful-paint"&&(o.disconnect(),u.startTime<n.firstHiddenTime&&(r.value=Math.max(u.startTime-ao(),0),r.entries.push(u),i(!0)))})});o&&(i=as(e,r,p_,t.reportAllChanges))})},g_=[.1,.25],y_=(e,t={})=>{m_(zl(()=>{const n=cs("CLS",0);let r,i=0,s=[];const o=u=>{u.forEach(d=>{if(!d.hadRecentInput){const f=s[0],p=s[s.length-1];i&&f&&p&&d.startTime-p.startTime<1e3&&d.startTime-f.startTime<5e3?(i+=d.value,s.push(d)):(i=d.value,s=[d])}}),i>n.value&&(n.value=i,n.entries=s,r())},c=Ri("layout-shift",o);c&&(r=as(e,n,g_,t.reportAllChanges),co(()=>{o(c.takeRecords()),r(!0)}),setTimeout(r,0))}))},v_=[100,300],b_=(e,t={})=>{lo(()=>{const n=ic(),r=cs("FID");let i;const s=u=>{u.startTime<n.firstHiddenTime&&(r.value=u.processingStart-u.startTime,r.entries.push(u),i(!0))},o=u=>{u.forEach(s)},c=Ri("first-input",o);i=as(e,r,v_,t.reportAllChanges),c&&co(zl(()=>{o(c.takeRecords()),c.disconnect()}))})};let Sg=0,Ql=1/0,sc=0;const w_=e=>{e.forEach(t=>{t.interactionId&&(Ql=Math.min(Ql,t.interactionId),sc=Math.max(sc,t.interactionId),Sg=sc?(sc-Ql)/7+1:0)})};let Jl;const E_=()=>Jl?Sg:performance.interactionCount||0,S_=()=>{"interactionCount"in performance||Jl||(Jl=Ri("event",w_,{type:"event",buffered:!0,durationThreshold:0}))},x_=[200,500],C_=0,xg=()=>E_()-C_,Cg=10,Nr=[],Zl={},_g=e=>{const t=Nr[Nr.length-1],n=Zl[e.interactionId];if(n||Nr.length<Cg||t&&e.duration>t.latency){if(n)n.entries.push(e),n.latency=Math.max(n.latency,e.duration);else{const r={id:e.interactionId,latency:e.duration,entries:[e]};Zl[r.id]=r,Nr.push(r)}Nr.sort((r,i)=>i.latency-r.latency),Nr.splice(Cg).forEach(r=>{delete Zl[r.id]})}},__=()=>{const e=Math.min(Nr.length-1,Math.floor(xg()/50));return Nr[e]},A_=(e,t={})=>{lo(()=>{S_();const n=cs("INP");let r;const i=o=>{o.forEach(u=>{u.interactionId&&_g(u),u.entryType==="first-input"&&!Nr.some(f=>f.entries.some(p=>u.duration===p.duration&&u.startTime===p.startTime))&&_g(u)});const c=__();c&&c.latency!==n.value&&(n.value=c.latency,n.entries=c.entries,r())},s=Ri("event",i,{durationThreshold:t.durationThreshold!=null?t.durationThreshold:40});r=as(e,n,x_,t.reportAllChanges),s&&("PerformanceEventTiming"in Pe&&"interactionId"in PerformanceEventTiming.prototype&&s.observe({type:"first-input",buffered:!0}),co(()=>{i(s.takeRecords()),n.value<0&&xg()>0&&(n.value=0,n.entries=[]),r(!0)}))})},T_=[2500,4e3],Ag={},I_=(e,t={})=>{lo(()=>{const n=ic(),r=cs("LCP");let i;const s=c=>{const u=c[c.length-1];u&&u.startTime<n.firstHiddenTime&&(r.value=Math.max(u.startTime-ao(),0),r.entries=[u],i())},o=Ri("largest-contentful-paint",s);if(o){i=as(e,r,T_,t.reportAllChanges);const c=zl(()=>{Ag[r.id]||(s(o.takeRecords()),o.disconnect(),Ag[r.id]=!0,i(!0))});["keydown","click"].forEach(u=>{Pe.document&&addEventListener(u,()=>setTimeout(c,0),!0)}),co(c)}})},k_=[800,1800],Xl=e=>{Pe.document&&Pe.document.prerendering?lo(()=>Xl(e)):Pe.document&&Pe.document.readyState!=="complete"?addEventListener("load",()=>Xl(e),!0):setTimeout(e,0)},O_=(e,t={})=>{const n=cs("TTFB"),r=as(e,n,k_,t.reportAllChanges);Xl(()=>{const i=oo();if(i){const s=i.responseStart;if(s<=0||s>performance.now())return;n.value=Math.max(s-ao(),0),n.entries=[i],r(!0)}})},fo={},oc={};let Tg,Ig,kg,Og,Ng;function ed(e,t=!1){return ho("cls",e,R_,Tg,t)}function Rg(e,t=!1){return ho("lcp",e,D_,kg,t)}function Mg(e){return ho("fid",e,M_,Ig)}function N_(e){return ho("ttfb",e,P_,Og)}function Dg(e){return ho("inp",e,j_,Ng)}function us(e,t){return Pg(e,t),oc[e]||(L_(e),oc[e]=!0),jg(e,t)}function ls(e,t){const n=fo[e];if(!(!n||!n.length))for(const r of n)try{r(t)}catch(i){Ln&&Se.error(`Error while triggering instrumentation handler.
72
+ Url: ${nc(e)}`),!0)}function NC(e,t){return e.type||!t||!t.length?!1:jC(e).some(n=>zr(n,t))}function MC(e,t){if(e.type!=="transaction"||!t||!t.length)return!1;const n=e.transaction;return n?zr(n,t):!1}function DC(e,t){if(!t||!t.length)return!1;const n=nc(e);return n?zr(n,t):!1}function PC(e,t){if(!t||!t.length)return!0;const n=nc(e);return n?zr(n,t):!0}function jC(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 LC(e){try{return e.exception.values[0].type==="SentryError"}catch{}return!1}function BC(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 nc(e){try{let t;try{t=e.exception.values[0].stacktrace.frames}catch{}return t?BC(t):null}catch{return Ge&&Se.error(`Cannot extract url for event ${Zr(e)}`),null}}function FC(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)}const UC="Dedupe",VC=()=>{let e;return{name:UC,processEvent(t){if(t.type)return t;try{if(qC(t,e))return Ge&&Se.warn("Event dropped due to being a duplicate of previously captured event."),null}catch{}return e=t}}};function qC(e,t){return t?!!($C(e,t)||GC(e,t)):!1}function $C(e,t){const n=e.message,r=t.message;return!(!n&&!r||n&&!r||!n&&r||n!==r||!vg(e,t)||!yg(e,t))}function GC(e,t){const n=bg(t),r=bg(e);return!(!n||!r||n.type!==r.type||n.value!==r.value||!vg(e,t)||!yg(e,t))}function yg(e,t){let n=tm(e),r=tm(t);if(!n&&!r)return!0;if(n&&!r||!n&&r||(n=n,r=r,r.length!==n.length))return!1;for(let i=0;i<r.length;i++){const s=r[i],o=n[i];if(s.filename!==o.filename||s.lineno!==o.lineno||s.colno!==o.colno||s.function!==o.function)return!1}return!0}function vg(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 bg(e){return e.exception&&e.exception.values&&e.exception.values[0]}function HC(e,t,n,r,i="auto.http.browser"){if(!e.fetchData)return;const s=Or()&&t(e.fetchData.url);if(e.endTimestamp&&s){const a=e.fetchData.__span;if(!a)return;const h=r[a];h&&(KC(h,e),delete r[a]);return}const o=vt(),c=Xe(),{method:u,url:d}=e.fetchData,f=WC(d),p=f?Ti(f).host:void 0,l=!!sn(),v=s&&l?ni({name:`${u} ${d}`,attributes:{url:d,type:"fetch","http.method":u,"http.url":f,"server.address":p,[Wt]:i,[ei]:"http.client"}}):new ss;if(e.fetchData.__span=v.spanContext().spanId,r[v.spanContext().spanId]=v,n(e.fetchData.url)&&c){const a=e.args[0];e.args[1]=e.args[1]||{};const h=e.args[1];h.headers=YC(a,c,o,h,Or()&&l?v:void 0)}return v}function YC(e,t,n,r,i){const s=jn(),{traceId:o,spanId:c,sampled:u,dsc:d}={...s.getPropagationContext(),...n.getPropagationContext()},f=i?Rm(i):kl(o,c,u),p=vm(d||(i?ti(i):Za(o,t))),l=r.headers||(typeof Request<"u"&&_r(e,Request)?e.headers:void 0);if(l)if(typeof Headers<"u"&&_r(l,Headers)){const v=new Headers(l);return v.append("sentry-trace",f),p&&v.append(Il,p),v}else if(Array.isArray(l)){const v=[...l,["sentry-trace",f]];return p&&v.push([Il,p]),v}else{const v="baggage"in l?l.baggage:void 0,a=[];return Array.isArray(v)?a.push(...v):v&&a.push(v),p&&a.push(p),{...l,"sentry-trace":f,baggage:a.length>0?a.join(","):void 0}}else return{"sentry-trace":f,baggage:p}}function WC(e){try{return new URL(e).href}catch{return}}function KC(e,t){if(t.response){Im(e,t.response.status);const n=t.response&&t.response.headers&&t.response.headers.get("content-length");if(n){const r=parseInt(n);r>0&&e.setAttribute("http.response_content_length",r)}}else t.error&&e.setStatus({code:Xt,message:"internal_error"});e.end()}const Re=nt;let $l=0;function wg(){return $l>0}function zC(){$l++,setTimeout(()=>{$l--})}function os(e,t={},n){if(typeof e!="function")return e;try{const i=e.__sentry_wrapped__;if(i)return typeof i=="function"?i:e;if(wl(e))return e}catch{return e}const r=function(){const i=Array.prototype.slice.call(arguments);try{const s=i.map(o=>os(o,t));return e.apply(this,s)}catch(s){throw zC(),Ka(o=>{o.addEventProcessor(c=>(t.mechanism&&(Al(c,void 0),no(c,t.mechanism)),c.extra={...c.extra,arguments:i},c)),tc(s)}),s}};try{for(const i in e)Object.prototype.hasOwnProperty.call(e,i)&&(r[i]=e[i])}catch{}Wp(r,e),Gn(e,"__sentry_wrapped__",r);try{Object.getOwnPropertyDescriptor(r,"name").configurable&&Object.defineProperty(r,"name",{get(){return e.name}})}catch{}return r}const Tn=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;function Gl(e,t){const n=Yl(e,t),r={type:e_(t),value:t_(t)};return n.length&&(r.stacktrace={frames:n}),r.type===void 0&&r.value===""&&(r.value="Unrecoverable error caught"),r}function QC(e,t,n,r){const i=Xe(),s=i&&i.getOptions().normalizeDepth,o=o_(t),c={__serialized__:pm(t,s)};if(o)return{exception:{values:[Gl(e,o)]},extra:c};const u={exception:{values:[{type:ja(t)?t.constructor.name:r?"UnhandledRejection":"Error",value:i_(t,{isUnhandledRejection:r})}]},extra:c};if(n){const d=Yl(e,n);d.length&&(u.exception.values[0].stacktrace={frames:d})}return u}function Hl(e,t){return{exception:{values:[Gl(e,t)]}}}function Yl(e,t){const n=t.stacktrace||t.stack||"",r=ZC(t),i=XC(t);try{return e(n,r,i)}catch{}return[]}const JC=/Minified React error #\d+;/i;function ZC(e){return e&&JC.test(e.message)?1:0}function XC(e){return typeof e.framesToPop=="number"?e.framesToPop:0}function Eg(e){return typeof WebAssembly<"u"&&typeof WebAssembly.Exception<"u"?e instanceof WebAssembly.Exception:!1}function e_(e){const t=e&&e.name;return!t&&Eg(e)?e.message&&Array.isArray(e.message)&&e.message.length==2?e.message[0]:"WebAssembly.Exception":t}function t_(e){const t=e&&e.message;return t?t.error&&typeof t.error.message=="string"?t.error.message:Eg(e)&&Array.isArray(e.message)&&e.message.length==2?e.message[1]:t:"No error message"}function n_(e,t,n,r){const i=n&&n.syntheticException||void 0,s=Wl(e,t,i,r);return no(s),s.level="error",n&&n.event_id&&(s.event_id=n.event_id),kr(s)}function r_(e,t,n="info",r,i){const s=r&&r.syntheticException||void 0,o=Kl(e,t,s,i);return o.level=n,r&&r.event_id&&(o.event_id=r.event_id),kr(o)}function Wl(e,t,n,r,i){let s;if(jp(t)&&t.error)return Hl(e,t.error);if(Lp(t)||KS(t)){const o=t;if("stack"in t)s=Hl(e,t);else{const c=o.name||(Lp(o)?"DOMError":"DOMException"),u=o.message?`${c}: ${o.message}`:c;s=Kl(e,u,n,r),Al(s,u)}return"code"in o&&(s.tags={...s.tags,"DOMException.code":`${o.code}`}),s}return Pa(t)?Hl(e,t):Qi(t)||ja(t)?(s=QC(e,t,n,i),no(s,{synthetic:!0}),s):(s=Kl(e,t,n,r),Al(s,`${t}`),no(s,{synthetic:!0}),s)}function Kl(e,t,n,r){const i={};if(r&&n){const s=Yl(e,n);s.length&&(i.exception={values:[{value:t,stacktrace:{frames:s}}]})}if(gl(t)){const{__sentry_template_string__:s,__sentry_template_values__:o}=t;return i.logentry={message:s,params:o},i}return i.message=t,i}function i_(e,{isUnhandledRejection:t}){const n=dx(e),r=t?"promise rejection":"exception";return jp(e)?`Event \`ErrorEvent\` captured as ${r} with message \`${e.message}\``:ja(e)?`Event \`${s_(e)}\` (type=${e.type}) captured as ${r}`:`Object captured as ${r} with keys: ${n}`}function s_(e){try{const t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch{}}function o_(e){for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t)){const n=e[t];if(n instanceof Error)return n}}function a_(e,{metadata:t,tunnel:n,dsn:r}){const i={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:ts(r)}},s=c_(e);return Ii(i,[s])}function c_(e){return[{type:"user_report"},e]}class u_ extends pC{constructor(t){const n={parentSpanIsAlwaysRootSpan:!0,...t},r=Re.SENTRY_SDK_SOURCE||Ax();pg(n,"browser",["browser"],r),super(n),n.sendClientReports&&Re.document&&Re.document.addEventListener("visibilitychange",()=>{Re.document.visibilityState==="hidden"&&this._flushOutcomes()})}eventFromException(t,n){return n_(this._options.stackParser,t,n,this._options.attachStacktrace)}eventFromMessage(t,n="info",r){return r_(this._options.stackParser,t,n,r,this._options.attachStacktrace)}captureUserFeedback(t){if(!this._isEnabled()){Tn&&Se.warn("SDK not enabled, will not capture user feedback.");return}const n=a_(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)}}const Ln=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,l_=(e,t)=>e>t[1]?"poor":e>t[0]?"needs-improvement":"good",as=(e,t,n,r)=>{let i,s;return o=>{t.value>=0&&(o||r)&&(s=t.value-(i||0),(s||i===void 0)&&(i=t.value,t.delta=s,t.rating=l_(t.value,n),e(t)))}},je=nt,d_=()=>`v3-${Date.now()}-${Math.floor(Math.random()*(9e12-1))+1e12}`,oo=()=>je.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0],ao=()=>{const e=oo();return e&&e.activationStart||0},cs=(e,t)=>{const n=oo();let r="navigate";return n&&(je.document&&je.document.prerendering||ao()>0?r="prerender":je.document&&je.document.wasDiscarded?r="restore":n.type&&(r=n.type.replace(/_/g,"-"))),{name:e,value:typeof t>"u"?-1:t,rating:"good",delta:0,entries:[],id:d_(),navigationType:r}},Ni=(e,t,n)=>{try{if(PerformanceObserver.supportedEntryTypes.includes(e)){const r=new PerformanceObserver(i=>{Promise.resolve().then(()=>{t(i.getEntries())})});return r.observe(Object.assign({type:e,buffered:!0},n||{})),r}}catch{}},co=e=>{const t=n=>{(n.type==="pagehide"||je.document&&je.document.visibilityState==="hidden")&&e(n)};je.document&&(addEventListener("visibilitychange",t,!0),addEventListener("pagehide",t,!0))},zl=e=>{let t=!1;return n=>{t||(e(n),t=!0)}};let uo=-1;const f_=()=>{uo=je.document.visibilityState==="hidden"&&!je.document.prerendering?0:1/0},rc=e=>{je.document.visibilityState==="hidden"&&uo>-1&&(uo=e.type==="visibilitychange"?e.timeStamp:0,removeEventListener("visibilitychange",rc,!0),removeEventListener("prerenderingchange",rc,!0))},h_=()=>{addEventListener("visibilitychange",rc,!0),addEventListener("prerenderingchange",rc,!0)},ic=()=>(je.document&&uo<0&&(f_(),h_()),{get firstHiddenTime(){return uo}}),lo=e=>{je.document&&je.document.prerendering?addEventListener("prerenderingchange",()=>e(),!0):e()},p_=[1800,3e3],m_=(e,t={})=>{lo(()=>{const n=ic(),r=cs("FCP");let i;const o=Ni("paint",c=>{c.forEach(u=>{u.name==="first-contentful-paint"&&(o.disconnect(),u.startTime<n.firstHiddenTime&&(r.value=Math.max(u.startTime-ao(),0),r.entries.push(u),i(!0)))})});o&&(i=as(e,r,p_,t.reportAllChanges))})},g_=[.1,.25],y_=(e,t={})=>{m_(zl(()=>{const n=cs("CLS",0);let r,i=0,s=[];const o=u=>{u.forEach(d=>{if(!d.hadRecentInput){const f=s[0],p=s[s.length-1];i&&f&&p&&d.startTime-p.startTime<1e3&&d.startTime-f.startTime<5e3?(i+=d.value,s.push(d)):(i=d.value,s=[d])}}),i>n.value&&(n.value=i,n.entries=s,r())},c=Ni("layout-shift",o);c&&(r=as(e,n,g_,t.reportAllChanges),co(()=>{o(c.takeRecords()),r(!0)}),setTimeout(r,0))}))},v_=[100,300],b_=(e,t={})=>{lo(()=>{const n=ic(),r=cs("FID");let i;const s=u=>{u.startTime<n.firstHiddenTime&&(r.value=u.processingStart-u.startTime,r.entries.push(u),i(!0))},o=u=>{u.forEach(s)},c=Ni("first-input",o);i=as(e,r,v_,t.reportAllChanges),c&&co(zl(()=>{o(c.takeRecords()),c.disconnect()}))})};let Sg=0,Ql=1/0,sc=0;const w_=e=>{e.forEach(t=>{t.interactionId&&(Ql=Math.min(Ql,t.interactionId),sc=Math.max(sc,t.interactionId),Sg=sc?(sc-Ql)/7+1:0)})};let Jl;const E_=()=>Jl?Sg:performance.interactionCount||0,S_=()=>{"interactionCount"in performance||Jl||(Jl=Ni("event",w_,{type:"event",buffered:!0,durationThreshold:0}))},x_=[200,500],C_=0,xg=()=>E_()-C_,Cg=10,Rr=[],Zl={},_g=e=>{const t=Rr[Rr.length-1],n=Zl[e.interactionId];if(n||Rr.length<Cg||t&&e.duration>t.latency){if(n)n.entries.push(e),n.latency=Math.max(n.latency,e.duration);else{const r={id:e.interactionId,latency:e.duration,entries:[e]};Zl[r.id]=r,Rr.push(r)}Rr.sort((r,i)=>i.latency-r.latency),Rr.splice(Cg).forEach(r=>{delete Zl[r.id]})}},__=()=>{const e=Math.min(Rr.length-1,Math.floor(xg()/50));return Rr[e]},A_=(e,t={})=>{lo(()=>{S_();const n=cs("INP");let r;const i=o=>{o.forEach(u=>{u.interactionId&&_g(u),u.entryType==="first-input"&&!Rr.some(f=>f.entries.some(p=>u.duration===p.duration&&u.startTime===p.startTime))&&_g(u)});const c=__();c&&c.latency!==n.value&&(n.value=c.latency,n.entries=c.entries,r())},s=Ni("event",i,{durationThreshold:t.durationThreshold!=null?t.durationThreshold:40});r=as(e,n,x_,t.reportAllChanges),s&&("PerformanceEventTiming"in je&&"interactionId"in PerformanceEventTiming.prototype&&s.observe({type:"first-input",buffered:!0}),co(()=>{i(s.takeRecords()),n.value<0&&xg()>0&&(n.value=0,n.entries=[]),r(!0)}))})},T_=[2500,4e3],Ag={},I_=(e,t={})=>{lo(()=>{const n=ic(),r=cs("LCP");let i;const s=c=>{const u=c[c.length-1];u&&u.startTime<n.firstHiddenTime&&(r.value=Math.max(u.startTime-ao(),0),r.entries=[u],i())},o=Ni("largest-contentful-paint",s);if(o){i=as(e,r,T_,t.reportAllChanges);const c=zl(()=>{Ag[r.id]||(s(o.takeRecords()),o.disconnect(),Ag[r.id]=!0,i(!0))});["keydown","click"].forEach(u=>{je.document&&addEventListener(u,()=>setTimeout(c,0),!0)}),co(c)}})},k_=[800,1800],Xl=e=>{je.document&&je.document.prerendering?lo(()=>Xl(e)):je.document&&je.document.readyState!=="complete"?addEventListener("load",()=>Xl(e),!0):setTimeout(e,0)},O_=(e,t={})=>{const n=cs("TTFB"),r=as(e,n,k_,t.reportAllChanges);Xl(()=>{const i=oo();if(i){const s=i.responseStart;if(s<=0||s>performance.now())return;n.value=Math.max(s-ao(),0),n.entries=[i],r(!0)}})},fo={},oc={};let Tg,Ig,kg,Og,Rg;function ed(e,t=!1){return ho("cls",e,N_,Tg,t)}function Ng(e,t=!1){return ho("lcp",e,D_,kg,t)}function Mg(e){return ho("fid",e,M_,Ig)}function R_(e){return ho("ttfb",e,P_,Og)}function Dg(e){return ho("inp",e,j_,Rg)}function us(e,t){return Pg(e,t),oc[e]||(L_(e),oc[e]=!0),jg(e,t)}function ls(e,t){const n=fo[e];if(!(!n||!n.length))for(const r of n)try{r(t)}catch(i){Ln&&Se.error(`Error while triggering instrumentation handler.
73
73
  Type: ${e}
74
74
  Name: ${Tr(r)}
75
- Error:`,i)}}function R_(){return y_(e=>{ls("cls",{metric:e}),Tg=e},{reportAllChanges:!0})}function M_(){return b_(e=>{ls("fid",{metric:e}),Ig=e})}function D_(){return I_(e=>{ls("lcp",{metric:e}),kg=e},{reportAllChanges:!0})}function P_(){return O_(e=>{ls("ttfb",{metric:e}),Og=e})}function j_(){return A_(e=>{ls("inp",{metric:e}),Ng=e})}function ho(e,t,n,r,i=!1){Pg(e,t);let s;return oc[e]||(s=n(),oc[e]=!0),r&&t({metric:r}),jg(e,t,i?s:void 0)}function L_(e){const t={};e==="event"&&(t.durationThreshold=0),Ri(e,n=>{ls(e,{entries:n})},t)}function Pg(e,t){fo[e]=fo[e]||[],fo[e].push(t)}function jg(e,t,n){return()=>{n&&n();const r=fo[e];if(!r)return;const i=r.indexOf(t);i!==-1&&r.splice(i,1)}}function B_(e){return"duration"in e}function td(e){return typeof e=="number"&&isFinite(e)}function ds(e,t,n,{...r}){const i=at(e).start_timestamp;return i&&i>t&&typeof e.updateStartTime=="function"&&e.updateStartTime(t),Ym(e,()=>{const s=ni({startTime:t,...r});return s&&s.end(n),s})}function Lg(e){const t=Xe();if(!t)return;const{name:n,transaction:r,attributes:i,startTime:s}=e,{release:o,environment:c}=t.getOptions(),u=t.getIntegrationByName("Replay"),d=u&&u.getReplayId(),f=vt(),p=f.getUser(),l=p!==void 0?p.email||p.id||p.ip_address:void 0;let v;try{v=f.getScopeData().contexts.profile.profile_id}catch{}const a={release:o,environment:c,user:l||void 0,profile_id:v||void 0,replay_id:d||void 0,transaction:r,"user_agent.original":Pe.navigator&&Pe.navigator.userAgent,...i};return ni({name:n,attributes:a,startTime:s,experimental:{standalone:!0}})}function nd(){return Pe&&Pe.addEventListener&&Pe.performance}function Ut(e){return e/1e3}function F_(){let e=0,t,n;if(!V_())return;let r=!1;function i(){r||(r=!0,n&&U_(e,t,n),s())}const s=ed(({metric:o})=>{const c=o.entries[o.entries.length-1];c&&(e=o.value,t=c)},!0);co(()=>{i()}),setTimeout(()=>{const o=Xe(),c=Pn([o,"optionalAccess",p=>p.on,"call",p=>p("startNavigationSpan",()=>{i(),c&&c()})]),u=rn(),d=u&&nn(u),f=d&&at(d);f&&f.op==="pageload"&&(n=d.spanContext().spanId)},0)}function U_(e,t,n){Ln&&Se.log(`Sending CLS span (${e})`);const r=Ut((yn||0)+(Pn([t,"optionalAccess",u=>u.startTime])||0)),i=vt().getScopeData().transactionName,s=t?Ar(Pn([t,"access",u=>u.sources,"access",u=>u[0],"optionalAccess",u=>u.node])):"Layout shift",o=Ht({[Yt]:"auto.http.browser.cls",[ei]:"ui.webvital.cls",[Ll]:Pn([t,"optionalAccess",u=>u.duration])||0,"sentry.pageload.span_id":n}),c=Lg({name:s,transaction:i,attributes:o,startTime:r});Pn([c,"optionalAccess",u=>u.addEvent,"call",u=>u("cls",{[za]:"",[Qa]:e})]),Pn([c,"optionalAccess",u=>u.end,"call",u=>u(r)])}function V_(){try{return Pn([PerformanceObserver,"access",e=>e.supportedEntryTypes,"optionalAccess",e=>e.includes,"call",e=>e("layout-shift")])}catch{return!1}}const q_=2147483647;let Bg=0,sn={},yr,po;function $_({recordClsStandaloneSpans:e}){const t=nd();if(t&&yn){t.mark&&Pe.performance.mark("sentry-tracing-init");const n=z_(),r=K_(),i=Q_(),s=e?F_():W_();return()=>{n(),r(),i(),s&&s()}}return()=>{}}function G_(){us("longtask",({entries:e})=>{if(rn())for(const t of e){const n=Ut(yn+t.startTime),r=Ut(t.duration),i=ni({name:"Main UI thread blocked",op:"ui.long-task",startTime:n,attributes:{[Yt]:"auto.ui.browser.metrics"}});i&&i.end(n+r)}})}function H_(){new PerformanceObserver(t=>{if(rn())for(const n of t.getEntries()){if(!n.scripts[0])continue;const r=Ut(yn+n.startTime),i=Ut(n.duration),s={[Yt]:"auto.ui.browser.metrics"},o=n.scripts[0],{invoker:c,invokerType:u,sourceURL:d,sourceFunctionName:f,sourceCharPosition:p}=o;s["browser.script.invoker"]=c,s["browser.script.invoker_type"]=u,d&&(s["code.filepath"]=d),f&&(s["code.function"]=f),p!==-1&&(s["browser.script.source_char_position"]=p);const l=ni({name:"Main UI thread blocked",op:"ui.long-animation-frame",startTime:r,attributes:s});l&&l.end(r+i)}}).observe({type:"long-animation-frame",buffered:!0})}function Y_(){us("event",({entries:e})=>{if(rn()){for(const t of e)if(t.name==="click"){const n=Ut(yn+t.startTime),r=Ut(t.duration),i={name:Ar(t.target),op:`ui.interaction.${t.name}`,startTime:n,attributes:{[Yt]:"auto.ui.browser.metrics"}},s=Gp(t.target);s&&(i.attributes["ui.component_name"]=s);const o=ni(i);o&&o.end(n+r)}}})}function W_(){return ed(({metric:e})=>{const t=e.entries[e.entries.length-1];t&&(Ln&&Se.log(`[Measurements] Adding CLS ${e.value}`),sn.cls={value:e.value,unit:""},po=t)},!0)}function K_(){return Rg(({metric:e})=>{const t=e.entries[e.entries.length-1];t&&(Ln&&Se.log("[Measurements] Adding LCP"),sn.lcp={value:e.value,unit:"millisecond"},yr=t)},!0)}function z_(){return Mg(({metric:e})=>{const t=e.entries[e.entries.length-1];if(!t)return;const n=Ut(yn),r=Ut(t.startTime);Ln&&Se.log("[Measurements] Adding FID"),sn.fid={value:e.value,unit:"millisecond"},sn["mark.fid"]={value:n+r,unit:"second"}})}function Q_(){return N_(({metric:e})=>{e.entries[e.entries.length-1]&&(Ln&&Se.log("[Measurements] Adding TTFB"),sn.ttfb={value:e.value,unit:"millisecond"})})}function J_(e,t){const n=nd();if(!n||!Pe.performance.getEntries||!yn)return;Ln&&Se.log("[Tracing] Adding & adjusting spans using Performance API");const r=Ut(yn),i=n.getEntries(),{op:s,start_timestamp:o}=at(e);if(i.slice(Bg).forEach(c=>{const u=Ut(c.startTime),d=Ut(Math.max(0,c.duration));if(!(s==="navigation"&&o&&r+u<o))switch(c.entryType){case"navigation":{X_(e,c,r);break}case"mark":case"paint":case"measure":{Z_(e,c,u,d,r);const f=ic(),p=c.startTime<f.firstHiddenTime;c.name==="first-paint"&&p&&(Ln&&Se.log("[Measurements] Adding FP"),sn.fp={value:c.startTime,unit:"millisecond"}),c.name==="first-contentful-paint"&&p&&(Ln&&Se.log("[Measurements] Adding FCP"),sn.fcp={value:c.startTime,unit:"millisecond"});break}case"resource":{tA(e,c,c.name,u,d,r);break}}}),Bg=Math.max(i.length-1,0),nA(e),s==="pageload"){iA(sn);const c=sn["mark.fid"];c&&sn.fid&&(ds(e,c.value,c.value+Ut(sn.fid.value),{name:"first input delay",op:"ui.action",attributes:{[Yt]:"auto.ui.browser.metrics"}}),delete sn["mark.fid"]),(!("fcp"in sn)||!t.recordClsOnPageloadSpan)&&delete sn.cls,Object.entries(sn).forEach(([u,d])=>{O2(u,d.value,d.unit)}),e.setAttribute("performance.timeOrigin",r),e.setAttribute("performance.activationStart",ao()),rA(e)}yr=void 0,po=void 0,sn={}}function Z_(e,t,n,r,i){const s=oo(),o=Ut(s?s.requestStart:0),c=i+Math.max(n,o),u=i+n,d=u+r,f={[Yt]:"auto.resource.browser.metrics"};return c!==u&&(f["sentry.browser.measure_happened_before_request"]=!0,f["sentry.browser.measure_start_time"]=c),ds(e,c,d,{name:t.name,op:t.entryType,attributes:f}),c}function X_(e,t,n){["unloadEvent","redirect","domContentLoadedEvent","loadEvent","connect"].forEach(r=>{ac(e,t,r,n)}),ac(e,t,"secureConnection",n,"TLS/SSL","connectEnd"),ac(e,t,"fetch",n,"cache","domainLookupStart"),ac(e,t,"domainLookup",n,"DNS"),eA(e,t,n)}function ac(e,t,n,r,i,s){const o=s?t[s]:t[`${n}End`],c=t[`${n}Start`];!c||!o||ds(e,r+Ut(c),r+Ut(o),{op:`browser.${i||n}`,name:t.name,attributes:{[Yt]:"auto.ui.browser.metrics"}})}function eA(e,t,n){const r=n+Ut(t.requestStart),i=n+Ut(t.responseEnd),s=n+Ut(t.responseStart);t.responseEnd&&(ds(e,r,i,{op:"browser.request",name:t.name,attributes:{[Yt]:"auto.ui.browser.metrics"}}),ds(e,s,i,{op:"browser.response",name:t.name,attributes:{[Yt]:"auto.ui.browser.metrics"}}))}function tA(e,t,n,r,i,s){if(t.initiatorType==="xmlhttprequest"||t.initiatorType==="fetch")return;const o=Ti(n),c={[Yt]:"auto.resource.browser.metrics"};rd(c,t,"transferSize","http.response_transfer_size"),rd(c,t,"encodedBodySize","http.response_content_length"),rd(c,t,"decodedBodySize","http.decoded_response_content_length"),"renderBlockingStatus"in t&&(c["resource.render_blocking_status"]=t.renderBlockingStatus),o.protocol&&(c["url.scheme"]=o.protocol.split(":").pop()),o.host&&(c["server.address"]=o.host),c["url.same_origin"]=n.includes(Pe.location.origin);const u=s+r,d=u+i;ds(e,u,d,{name:n.replace(Pe.location.origin,""),op:t.initiatorType?`resource.${t.initiatorType}`:"resource.other",attributes:c})}function nA(e){const t=Pe.navigator;if(!t)return;const n=t.connection;n&&(n.effectiveType&&e.setAttribute("effectiveConnectionType",n.effectiveType),n.type&&e.setAttribute("connectionType",n.type),td(n.rtt)&&(sn["connection.rtt"]={value:n.rtt,unit:"millisecond"})),td(t.deviceMemory)&&e.setAttribute("deviceMemory",`${t.deviceMemory} GB`),td(t.hardwareConcurrency)&&e.setAttribute("hardwareConcurrency",String(t.hardwareConcurrency))}function rA(e){yr&&(Ln&&Se.log("[Measurements] Adding LCP Data"),yr.element&&e.setAttribute("lcp.element",Ar(yr.element)),yr.id&&e.setAttribute("lcp.id",yr.id),yr.url&&e.setAttribute("lcp.url",yr.url.trim().slice(0,200)),e.setAttribute("lcp.size",yr.size)),po&&po.sources&&(Ln&&Se.log("[Measurements] Adding CLS Data"),po.sources.forEach((t,n)=>e.setAttribute(`cls.source.${n+1}`,Ar(t.node))))}function rd(e,t,n,r){const i=t[n];i!=null&&i<q_&&(e[r]=i)}function iA(e){const t=oo();if(!t)return;const{responseStart:n,requestStart:r}=t;r<=n&&(Ln&&Se.log("[Measurements] Adding TTFB Request Time"),e["ttfb.requestTime"]={value:n-r,unit:"millisecond"})}const sA=1e3;let Fg,id,sd;function Ug(e){const t="dom";Qr(t,e),Jr(t,oA)}function oA(){if(!Pe.document)return;const e=Hn.bind(null,"dom"),t=Vg(e,!0);Pe.document.addEventListener("click",t,!1),Pe.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach(n=>{const r=Pe[n]&&Pe[n].prototype;!r||!r.hasOwnProperty||!r.hasOwnProperty("addEventListener")||(_n(r,"addEventListener",function(i){return function(s,o,c){if(s==="click"||s=="keypress")try{const u=this,d=u.__sentry_instrumentation_handlers__=u.__sentry_instrumentation_handlers__||{},f=d[s]=d[s]||{refCount:0};if(!f.handler){const p=Vg(e);f.handler=p,i.call(this,s,p,c)}f.refCount++}catch{}return i.call(this,s,o,c)}}),_n(r,"removeEventListener",function(i){return function(s,o,c){if(s==="click"||s=="keypress")try{const u=this,d=u.__sentry_instrumentation_handlers__||{},f=d[s];f&&(f.refCount--,f.refCount<=0&&(i.call(this,s,f.handler,c),f.handler=void 0,delete d[s]),Object.keys(d).length===0&&delete u.__sentry_instrumentation_handlers__)}catch{}return i.call(this,s,o,c)}}))})}function aA(e){if(e.type!==id)return!1;try{if(!e.target||e.target._sentryId!==sd)return!1}catch{}return!0}function cA(e,t){return e!=="keypress"?!1:!t||!t.tagName?!0:!(t.tagName==="INPUT"||t.tagName==="TEXTAREA"||t.isContentEditable)}function Vg(e,t=!1){return n=>{if(!n||n._sentryCaptured)return;const r=uA(n);if(cA(n.type,r))return;Gn(n,"_sentryCaptured",!0),r&&!r._sentryId&&Gn(r,"_sentryId",St());const i=n.type==="keypress"?"input":n.type;aA(n)||(e({event:n,name:i,global:t}),id=n.type,sd=r?r._sentryId:void 0),clearTimeout(Fg),Fg=Pe.setTimeout(()=>{sd=void 0,id=void 0},sA)}}function uA(e){try{return e.target}catch{return null}}let cc;function uc(e){const t="history";Qr(t,e),Jr(t,lA)}function lA(){if(!e2())return;const e=Pe.onpopstate;Pe.onpopstate=function(...n){const r=Pe.location.href,i=cc;if(cc=r,Hn("history",{from:i,to:r}),e)try{return e.apply(this,n)}catch{}};function t(n){return function(...r){const i=r.length>2?r[2]:void 0;if(i){const s=cc,o=String(i);cc=o,Hn("history",{from:s,to:o})}return n.apply(this,r)}}_n(Pe.history,"pushState",t),_n(Pe.history,"replaceState",t)}const lc={};function qg(e){const t=lc[e];if(t)return t;let n=Pe[e];if(Cl(n))return lc[e]=n.bind(Pe);const r=Pe.document;if(r&&typeof r.createElement=="function")try{const i=r.createElement("iframe");i.hidden=!0,r.head.appendChild(i);const s=i.contentWindow;s&&s[e]&&(n=s[e]),r.head.removeChild(i)}catch(i){Ln&&Se.warn(`Could not create sandbox iframe for ${e} check, bailing to window.${e}: `,i)}return n&&(lc[e]=n.bind(Pe))}function $g(e){lc[e]=void 0}function fs(...e){return qg("setTimeout")(...e)}const Mi="__sentry_xhr_v3__";function Gg(e){const t="xhr";Qr(t,e),Jr(t,dA)}function dA(){if(!Pe.XMLHttpRequest)return;const e=XMLHttpRequest.prototype;e.open=new Proxy(e.open,{apply(t,n,r){const i=gn()*1e3,s=Cr(r[0])?r[0].toUpperCase():void 0,o=fA(r[1]);if(!s||!o)return t.apply(n,r);n[Mi]={method:s,url:o,request_headers:{}},s==="POST"&&o.match(/sentry_key/)&&(n.__sentry_own_request__=!0);const c=()=>{const u=n[Mi];if(u&&n.readyState===4){try{u.status_code=n.status}catch{}const d={endTimestamp:gn()*1e3,startTimestamp:i,xhr:n};Hn("xhr",d)}};return"onreadystatechange"in n&&typeof n.onreadystatechange=="function"?n.onreadystatechange=new Proxy(n.onreadystatechange,{apply(u,d,f){return c(),u.apply(d,f)}}):n.addEventListener("readystatechange",c),n.setRequestHeader=new Proxy(n.setRequestHeader,{apply(u,d,f){const[p,l]=f,v=d[Mi];return v&&Cr(p)&&Cr(l)&&(v.request_headers[p.toLowerCase()]=l),u.apply(d,f)}}),t.apply(n,r)}}),e.send=new Proxy(e.send,{apply(t,n,r){const i=n[Mi];if(!i)return t.apply(n,r);r[0]!==void 0&&(i.body=r[0]);const s={startTimestamp:gn()*1e3,xhr:n};return Hn("xhr",s),t.apply(n,r)}})}function fA(e){if(Cr(e))return e;try{return e.toString()}catch{}}const od=[],dc=new Map;function hA(){if(nd()&&yn){const t=pA();return()=>{t()}}return()=>{}}const Hg={click:"click",pointerdown:"click",pointerup:"click",mousedown:"click",mouseup:"click",touchstart:"click",touchend:"click",mouseover:"hover",mouseout:"hover",mouseenter:"hover",mouseleave:"hover",pointerover:"hover",pointerout:"hover",pointerenter:"hover",pointerleave:"hover",dragstart:"drag",dragend:"drag",drag:"drag",dragenter:"drag",dragleave:"drag",dragover:"drag",drop:"drag",keydown:"press",keyup:"press",keypress:"press",input:"press"};function pA(){return Dg(({metric:e})=>{if(e.value==null)return;const t=e.entries.find(a=>a.duration===e.value&&Hg[a.name]);if(!t)return;const{interactionId:n}=t,r=Hg[t.name],i=Ut(yn+t.startTime),s=Ut(e.value),o=rn(),c=o?nn(o):void 0,d=(n!=null?dc.get(n):void 0)||c,f=d?at(d).description:vt().getScopeData().transactionName,p=Ar(t.target),l=Ht({[Yt]:"auto.http.browser.inp",[ei]:`ui.interaction.${r}`,[Ll]:t.duration}),v=Lg({name:p,transaction:f,attributes:l,startTime:i});Pn([v,"optionalAccess",a=>a.addEvent,"call",a=>a("inp",{[za]:"millisecond",[Qa]:e.value})]),Pn([v,"optionalAccess",a=>a.end,"call",a=>a(i+s)])})}function mA(e){const t=({entries:n})=>{const r=rn(),i=r&&nn(r);n.forEach(s=>{if(!B_(s)||!i)return;const o=s.interactionId;if(o!=null&&!dc.has(o)){if(od.length>10){const c=od.shift();dc.delete(c)}od.push(o),dc.set(o,i)}})};us("event",t),us("first-input",t)}function gA(e,t=qg("fetch")){let n=0,r=0;function i(s){const o=s.body.length;n+=o,r++;const c={body:s.body,method:"POST",referrerPolicy:"origin",headers:e.headers,keepalive:n<=6e4&&r<15,...e.fetchOptions};if(!t)return $g("fetch"),Ga("No fetch implementation available");try{return t(e.url,c).then(u=>(n-=o,r--,{statusCode:u.status,headers:{"x-sentry-rate-limits":u.headers.get("X-Sentry-Rate-Limits"),"retry-after":u.headers.get("Retry-After")}}))}catch(u){return $g("fetch"),n-=o,r--,Ga(u)}}return wC(e,i)}const yA=30,vA=50;function ad(e,t,n,r){const i={filename:e,function:t==="<anonymous>"?Ai:t,in_app:!0};return n!==void 0&&(i.lineno=n),r!==void 0&&(i.colno=r),i}const bA=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,wA=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,EA=/\((\S*)(?::(\d+))(?::(\d+))\)/,SA=[yA,e=>{const t=bA.exec(e);if(t){const[,r,i,s]=t;return ad(r,Ai,+i,+s)}const n=wA.exec(e);if(n){if(n[2]&&n[2].indexOf("eval")===0){const o=EA.exec(n[2]);o&&(n[2]=o[1],n[3]=o[2],n[4]=o[3])}const[i,s]=Yg(n[1]||Ai,n[2]);return ad(s,i,n[3]?+n[3]:void 0,n[4]?+n[4]:void 0)}}],xA=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,CA=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,_A=em(...[SA,[vA,e=>{const t=xA.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){const s=CA.exec(t[3]);s&&(t[1]=t[1]||"eval",t[3]=s[1],t[4]=s[2],t[5]="")}let r=t[3],i=t[1]||Ai;return[i,r]=Yg(i,r),ad(r,i,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}}]]),Yg=(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]:Ai,n?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]},fc=1024,AA="Breadcrumbs",TA=(e={})=>{const t={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e};return{name:AA,setup(n){t.console&&mx(OA(n)),t.dom&&Ug(kA(n,t.dom)),t.xhr&&Gg(NA(n)),t.fetch&&sm(RA(n)),t.history&&uc(MA(n)),t.sentry&&n.on("beforeSendEvent",IA(n))}}};function IA(e){return function(n){Xe()===e&&ri({category:`sentry.${n.type==="transaction"?"transaction":"event"}`,event_id:n.event_id,level:n.level,message:Zr(n)},{event:n})}}function kA(e,t){return function(r){if(Xe()!==e)return;let i,s,o=typeof t=="object"?t.serializeAttribute:void 0,c=typeof t=="object"&&typeof t.maxStringLength=="number"?t.maxStringLength:void 0;c&&c>fc&&(An&&Se.warn(`\`dom.maxStringLength\` cannot exceed ${fc}, but a value of ${c} was configured. Sentry will use ${fc} instead.`),c=fc),typeof o=="string"&&(o=[o]);try{const d=r.event,f=DA(d)?d.target:d;i=Ar(f,{keyAttrs:o,maxStringLength:c}),s=Gp(f)}catch{i="<unknown>"}if(i.length===0)return;const u={category:`ui.${r.name}`,message:i};s&&(u.data={"ui.component_name":s}),ri(u,{event:r.event,name:r.name,global:r.global})}}function OA(e){return function(n){if(Xe()!==e)return;const r={category:"console",data:{arguments:n.args,logger:"console"},level:mm(n.level),message:Fp(n.args," ")};if(n.level==="assert")if(n.args[0]===!1)r.message=`Assertion failed: ${Fp(n.args.slice(1)," ")||"console.assert"}`,r.data.arguments=n.args.slice(1);else return;ri(r,{input:n.args,level:n.level})}}function NA(e){return function(n){if(Xe()!==e)return;const{startTimestamp:r,endTimestamp:i}=n,s=n.xhr[Mi];if(!r||!i||!s)return;const{method:o,url:c,status_code:u,body:d}=s,f={method:o,url:c,status_code:u},p={xhr:n.xhr,input:d,startTimestamp:r,endTimestamp:i},l=qp(u);ri({category:"xhr",data:f,type:"http",level:l},p)}}function RA(e){return function(n){if(Xe()!==e)return;const{startTimestamp:r,endTimestamp:i}=n;if(i&&!(n.fetchData.url.match(/sentry_key/)&&n.fetchData.method==="POST"))if(n.error){const s=n.fetchData,o={data:n.error,input:n.args,startTimestamp:r,endTimestamp:i};ri({category:"fetch",data:s,level:"error",type:"http"},o)}else{const s=n.response,o={...n.fetchData,status_code:s&&s.status},c={input:n.args,response:s,startTimestamp:r,endTimestamp:i},u=qp(o.status_code);ri({category:"fetch",data:o,type:"http",level:u},c)}}}function MA(e){return function(n){if(Xe()!==e)return;let r=n.from,i=n.to;const s=Ti(Ne.location.href);let o=r?Ti(r):void 0;const c=Ti(i);(!o||!o.path)&&(o=s),s.protocol===c.protocol&&s.host===c.host&&(i=c.relative),s.protocol===o.protocol&&s.host===o.host&&(r=o.relative),ri({category:"navigation",data:{from:r,to:i}})}}function DA(e){return!!e&&!!e.target}const PA=["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"],jA="BrowserApiErrors",LA=(e={})=>{const t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...e};return{name:jA,setupOnce(){t.setTimeout&&_n(Ne,"setTimeout",Wg),t.setInterval&&_n(Ne,"setInterval",Wg),t.requestAnimationFrame&&_n(Ne,"requestAnimationFrame",BA),t.XMLHttpRequest&&"XMLHttpRequest"in Ne&&_n(XMLHttpRequest.prototype,"send",FA);const n=t.eventTarget;n&&(Array.isArray(n)?n:PA).forEach(UA)}}};function Wg(e){return function(...t){const n=t[0];return t[0]=os(n,{mechanism:{data:{function:Tr(e)},handled:!1,type:"instrument"}}),e.apply(this,t)}}function BA(e){return function(t){return e.apply(this,[os(t,{mechanism:{data:{function:"requestAnimationFrame",handler:Tr(e)},handled:!1,type:"instrument"}})])}}function FA(e){return function(...t){const n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(i=>{i in n&&typeof n[i]=="function"&&_n(n,i,function(s){const o={mechanism:{data:{function:i,handler:Tr(s)},handled:!1,type:"instrument"}},c=wl(s);return c&&(o.mechanism.data.handler=Tr(c)),os(s,o)})}),e.apply(this,t)}}function UA(e){const t=Ne,n=t[e]&&t[e].prototype;!n||!n.hasOwnProperty||!n.hasOwnProperty("addEventListener")||(_n(n,"addEventListener",function(r){return function(i,s,o){try{typeof s.handleEvent=="function"&&(s.handleEvent=os(s.handleEvent,{mechanism:{data:{function:"handleEvent",handler:Tr(s),target:e},handled:!1,type:"instrument"}}))}catch{}return r.apply(this,[i,os(s,{mechanism:{data:{function:"addEventListener",handler:Tr(s),target:e},handled:!1,type:"instrument"}}),o])}}),_n(n,"removeEventListener",function(r){return function(i,s,o){const c=s;try{const u=c&&c.__sentry_wrapped__;u&&r.call(this,i,u,o)}catch{}return r.call(this,i,c,o)}}))}const VA="GlobalHandlers",qA=(e={})=>{const t={onerror:!0,onunhandledrejection:!0,...e};return{name:VA,setupOnce(){Error.stackTraceLimit=50},setup(n){t.onerror&&($A(n),Kg("onerror")),t.onunhandledrejection&&(GA(n),Kg("onunhandledrejection"))}}};function $A(e){cm(t=>{const{stackParser:n,attachStacktrace:r}=zg();if(Xe()!==e||wg())return;const{msg:i,url:s,line:o,column:c,error:u}=t,d=WA(Wl(n,u||i,void 0,r,!1),s,o,c);d.level="error",Xm(d,{originalException:u,mechanism:{handled:!1,type:"onerror"}})})}function GA(e){um(t=>{const{stackParser:n,attachStacktrace:r}=zg();if(Xe()!==e||wg())return;const i=HA(t),s=yl(i)?YA(i):Wl(n,i,void 0,r,!0);s.level="error",Xm(s,{originalException:i,mechanism:{handled:!1,type:"onunhandledrejection"}})})}function HA(e){if(yl(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 YA(e){return{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(e)}`}]}}}function WA(e,t,n,r){const i=e.exception=e.exception||{},s=i.values=i.values||[],o=s[0]=s[0]||{},c=o.stacktrace=o.stacktrace||{},u=c.frames=c.frames||[],d=isNaN(parseInt(r,10))?void 0:r,f=isNaN(parseInt(n,10))?void 0:n,p=Cr(t)&&t.length>0?t:$p();return u.length===0&&u.push({colno:d,filename:p,function:Ai,in_app:!0,lineno:f}),e}function Kg(e){An&&Se.log(`Global Handler attached: ${e}`)}function zg(){const e=Xe();return e&&e.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}const KA=()=>({name:"HttpContext",preprocessEvent(e){if(!Ne.navigator&&!Ne.location&&!Ne.document)return;const t=e.request&&e.request.url||Ne.location&&Ne.location.href,{referrer:n}=Ne.document||{},{userAgent:r}=Ne.navigator||{},i={...e.request&&e.request.headers,...n&&{Referer:n},...r&&{"User-Agent":r}},s={...e.request,...t&&{url:t},headers:i};e.request=s}}),zA="cause",QA=5,JA="LinkedErrors",ZA=(e={})=>{const t=e.limit||QA,n=e.key||zA;return{name:JA,preprocessEvent(r,i,s){const o=s.getOptions();XS(Gl,o.stackParser,o.maxValueLength,n,t,r,i)}}};function XA(e){return[kC(),AC(),LA(),TA(),qA(),ZA(),VC(),KA()]}function eT(e={}){const t={defaultIntegrations:XA(),release:typeof __SENTRY_RELEASE__=="string"?__SENTRY_RELEASE__:Ne.SENTRY_RELEASE&&Ne.SENTRY_RELEASE.id?Ne.SENTRY_RELEASE.id:void 0,autoSessionTracking:!0,sendClientReports:!0};return e.defaultIntegrations==null&&delete e.defaultIntegrations,{...t,...e}}function tT(){const e=typeof Ne.window<"u"&&Ne;if(!e)return!1;const t=e.chrome?"chrome":"browser",n=e[t],r=n&&n.runtime&&n.runtime.id,i=Ne.location&&Ne.location.href||"",s=["chrome-extension:","moz-extension:","ms-browser-extension:","safari-web-extension:"],o=!!r&&Ne===Ne.top&&s.some(u=>i.startsWith(`${u}//`)),c=typeof e.nw<"u";return!!r&&!o&&!c}function nT(e={}){const t=eT(e);if(tT()){es(()=>{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}An&&(rm()||Se.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:hx(t.stackParser||_A),integrations:fC(t),transport:t.transport||gA},r=yC(u_,n);return t.autoSessionTracking&&rT(),r}function Qg(e={}){if(!Ne.document){An&&Se.error("Global document not defined in showReportDialog call");return}const t=vt(),n=t.getClient(),r=n&&n.getDsn();if(!r){An&&Se.error("DSN not configured for showReportDialog call");return}if(t&&(e.user={...t.getUser(),...e.user}),!e.eventId){const c=iC();c&&(e.eventId=c)}const i=Ne.document.createElement("script");i.async=!0,i.crossOrigin="anonymous",i.src=lC(r,e),e.onLoad&&(i.onload=e.onLoad);const{onClose:s}=e;if(s){const c=u=>{if(u.data==="__sentry_reportdialog_closed__")try{s()}finally{Ne.removeEventListener("message",c)}};Ne.addEventListener("message",c)}const o=Ne.document.head||Ne.document.body;o?o.appendChild(i):An&&Se.error("Not injecting report dialog. No injection point found in HTML")}function rT(){if(typeof Ne.document>"u"){An&&Se.warn("Session tracking in non-browser environment with @sentry/browser is not supported.");return}tg({ignoreDuration:!0}),ig(),uc(({from:e,to:t})=>{e!==void 0&&e!==t&&(tg({ignoreDuration:!0}),ig())})}const bt=nt,cd="sentryReplaySession",iT="replay_event",ud="Unable to send Replay",sT=3e5,oT=9e5,aT=5e3,cT=5500,uT=6e4,lT=5e3,dT=3,Jg=15e4,hc=5e3,fT=3e3,hT=300,ld=2e7,pT=4999,mT=15e3,Zg=36e5;function dd(e,t){return e??t()}function mo(e){let t,n=e[0],r=1;for(;r<e.length;){const i=e[r],s=e[r+1];if(r+=2,(i==="optionalAccess"||i==="optionalCall")&&n==null)return;i==="access"||i==="optionalAccess"?(t=n,n=s(n)):(i==="call"||i==="optionalCall")&&(n=s((...o)=>n.call(t,...o)),t=void 0)}return n}var Wt;(function(e){e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment"})(Wt||(Wt={}));function gT(e){return e.nodeType===e.ELEMENT_NODE}function go(e){const t=mo([e,"optionalAccess",n=>n.host]);return mo([t,"optionalAccess",n=>n.shadowRoot])===e}function yo(e){return Object.prototype.toString.call(e)==="[object ShadowRoot]"}function yT(e){return e.includes(" background-clip: text;")&&!e.includes(" -webkit-background-clip: text;")&&(e=e.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;")),e}function vT(e){const{cssText:t}=e;if(t.split('"').length<3)return t;const n=["@import",`url(${JSON.stringify(e.href)})`];return e.layerName===""?n.push("layer"):e.layerName&&n.push(`layer(${e.layerName})`),e.supportsText&&n.push(`supports(${e.supportsText})`),e.media.length&&n.push(e.media.mediaText),n.join(" ")+";"}function pc(e){try{const t=e.rules||e.cssRules;return t?yT(Array.from(t,Xg).join("")):null}catch{return null}}function Xg(e){let t;if(wT(e))try{t=pc(e.styleSheet)||vT(e)}catch{}else if(ET(e)&&e.selectorText.includes(":"))return bT(e.cssText);return t||e.cssText}function bT(e){const t=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;return e.replace(t,"$1\\$2")}function wT(e){return"styleSheet"in e}function ET(e){return"selectorText"in e}class e0{constructor(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}getId(t){if(!t)return-1;const n=mo([this,"access",r=>r.getMeta,"call",r=>r(t),"optionalAccess",r=>r.id]);return dd(n,()=>-1)}getNode(t){return this.idNodeMap.get(t)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(t){return this.nodeMetaMap.get(t)||null}removeNodeFromMap(t){const n=this.getId(t);this.idNodeMap.delete(n),t.childNodes&&t.childNodes.forEach(r=>this.removeNodeFromMap(r))}has(t){return this.idNodeMap.has(t)}hasNode(t){return this.nodeMetaMap.has(t)}add(t,n){const r=n.id;this.idNodeMap.set(r,t),this.nodeMetaMap.set(t,n)}replace(t,n){const r=this.getNode(t);if(r){const i=this.nodeMetaMap.get(r);i&&this.nodeMetaMap.set(n,i)}this.idNodeMap.set(t,n)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function ST(){return new e0}function mc({maskInputOptions:e,tagName:t,type:n}){return t==="OPTION"&&(t="SELECT"),!!(e[t.toLowerCase()]||n&&e[n]||n==="password"||t==="INPUT"&&!n&&e.text)}function vo({isMasked:e,element:t,value:n,maskInputFn:r}){let i=n||"";return e?(r&&(i=r(i,t)),"*".repeat(i.length)):i}function hs(e){return e.toLowerCase()}function fd(e){return e.toUpperCase()}const t0="__rrweb_original__";function xT(e){const t=e.getContext("2d");if(!t)return!0;const n=50;for(let r=0;r<e.width;r+=n)for(let i=0;i<e.height;i+=n){const s=t.getImageData,o=t0 in s?s[t0]:s;if(new Uint32Array(o.call(t,r,i,Math.min(n,e.width-r),Math.min(n,e.height-i)).data.buffer).some(u=>u!==0))return!1}return!0}function hd(e){const t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?hs(t):null}function gc(e,t,n){return t==="INPUT"&&(n==="radio"||n==="checkbox")?e.getAttribute("value")||"":e.value}function n0(e,t){let n;try{n=new URL(e,dd(t,()=>window.location.href))}catch{return null}const r=/\.([0-9a-z]+)(?:$)/i,i=n.pathname.match(r);return dd(mo([i,"optionalAccess",s=>s[1]]),()=>null)}const r0={};function i0(e){const t=r0[e];if(t)return t;const n=window.document;let r=window[e];if(n&&typeof n.createElement=="function")try{const i=n.createElement("iframe");i.hidden=!0,n.head.appendChild(i);const s=i.contentWindow;s&&s[e]&&(r=s[e]),n.head.removeChild(i)}catch{}return r0[e]=r.bind(window)}function pd(...e){return i0("setTimeout")(...e)}function s0(...e){return i0("clearTimeout")(...e)}let CT=1;const _T=new RegExp("[^a-z0-9-_:]"),bo=-2;function md(){return CT++}function AT(e){if(e instanceof HTMLFormElement)return"form";const t=hs(e.tagName);return _T.test(t)?"div":t}function TT(e){let t="";return e.indexOf("//")>-1?t=e.split("/").slice(0,3).join("/"):t=e.split("/")[0],t=t.split("?")[0],t}let ps,o0;const IT=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,kT=/^(?:[a-z+]+:)?\/\//i,OT=/^www\..*/i,NT=/^(data:)([^,]*),(.*)/i;function yc(e,t){return(e||"").replace(IT,(n,r,i,s,o,c)=>{const u=i||o||c,d=r||s||"";if(!u)return n;if(kT.test(u)||OT.test(u))return`url(${d}${u}${d})`;if(NT.test(u))return`url(${d}${u}${d})`;if(u[0]==="/")return`url(${d}${TT(t)+u}${d})`;const f=t.split("/"),p=u.split("/");f.pop();for(const l of p)l!=="."&&(l===".."?f.pop():f.push(l));return`url(${d}${f.join("/")}${d})`})}const RT=/^[^ \t\n\r\u000c]+/,MT=/^[, \t\n\r\u000c]+/;function DT(e,t){if(t.trim()==="")return t;let n=0;function r(s){let o;const c=s.exec(t.substring(n));return c?(o=c[0],n+=o.length,o):""}const i=[];for(;r(MT),!(n>=t.length);){let s=r(RT);if(s.slice(-1)===",")s=ms(e,s.substring(0,s.length-1)),i.push(s);else{let o="";s=ms(e,s);let c=!1;for(;;){const u=t.charAt(n);if(u===""){i.push((s+o).trim());break}else if(c)u===")"&&(c=!1);else if(u===","){n+=1,i.push((s+o).trim());break}else u==="("&&(c=!0);o+=u,n+=1}}}return i.join(", ")}const a0=new WeakMap;function ms(e,t){return!t||t.trim()===""?t:vc(e,t)}function PT(e){return!!(e.tagName==="svg"||e.ownerSVGElement)}function vc(e,t){let n=a0.get(e);if(n||(n=e.createElement("a"),a0.set(e,n)),!t)t="";else if(t.startsWith("blob:")||t.startsWith("data:"))return t;return n.setAttribute("href",t),n.href}function c0(e,t,n,r,i,s){return r&&(n==="src"||n==="href"&&!(t==="use"&&r[0]==="#")||n==="xlink:href"&&r[0]!=="#"||n==="background"&&(t==="table"||t==="td"||t==="th")?ms(e,r):n==="srcset"?DT(e,r):n==="style"?yc(r,vc(e)):t==="object"&&n==="data"?ms(e,r):typeof s=="function"?s(n,r,i):r)}function u0(e,t,n){return(e==="video"||e==="audio")&&t==="autoplay"}function jT(e,t,n,r){try{if(r&&e.matches(r))return!1;if(typeof t=="string"){if(e.classList.contains(t))return!0}else for(let i=e.classList.length;i--;){const s=e.classList[i];if(t.test(s))return!0}if(n)return e.matches(n)}catch{}return!1}function LT(e,t){for(let n=e.classList.length;n--;){const r=e.classList[n];if(t.test(r))return!0}return!1}function Di(e,t,n=1/0,r=0){return!e||e.nodeType!==e.ELEMENT_NODE||r>n?-1:t(e)?r:Di(e.parentNode,t,n,r+1)}function gs(e,t){return n=>{const r=n;if(r===null)return!1;try{if(e){if(typeof e=="string"){if(r.matches(`.${e}`))return!0}else if(LT(r,e))return!0}return!!(t&&r.matches(t))}catch{return!1}}}function ys(e,t,n,r,i,s){try{const o=e.nodeType===e.ELEMENT_NODE?e:e.parentElement;if(o===null)return!1;if(o.tagName==="INPUT"){const d=o.getAttribute("autocomplete");if(["current-password","new-password","cc-number","cc-exp","cc-exp-month","cc-exp-year","cc-csc"].includes(d))return!0}let c=-1,u=-1;if(s){if(u=Di(o,gs(r,i)),u<0)return!0;c=Di(o,gs(t,n),u>=0?u:1/0)}else{if(c=Di(o,gs(t,n)),c<0)return!1;u=Di(o,gs(r,i),c>=0?c:1/0)}return c>=0?u>=0?c<=u:!0:u>=0?!1:!!s}catch{}return!!s}function BT(e,t,n){const r=e.contentWindow;if(!r)return;let i=!1,s;try{s=r.document.readyState}catch{return}if(s!=="complete"){const c=pd(()=>{i||(t(),i=!0)},n);e.addEventListener("load",()=>{s0(c),i=!0,t()});return}const o="about:blank";if(r.location.href!==o||e.src===o||e.src==="")return pd(t,0),e.addEventListener("load",t);e.addEventListener("load",t)}function FT(e,t,n){let r=!1,i;try{i=e.sheet}catch{return}if(i)return;const s=pd(()=>{r||(t(),r=!0)},n);e.addEventListener("load",()=>{s0(s),r=!0,t()})}function UT(e,t){const{doc:n,mirror:r,blockClass:i,blockSelector:s,unblockSelector:o,maskAllText:c,maskAttributeFn:u,maskTextClass:d,unmaskTextClass:f,maskTextSelector:p,unmaskTextSelector:l,inlineStylesheet:v,maskInputOptions:a={},maskTextFn:h,maskInputFn:y,dataURLOptions:g={},inlineImages:b,recordCanvas:w,keepIframeSrcFn:E,newlyAddedElement:S=!1}=t,A=VT(n,r);switch(e.nodeType){case e.DOCUMENT_NODE:return e.compatMode!=="CSS1Compat"?{type:Wt.Document,childNodes:[],compatMode:e.compatMode}:{type:Wt.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:Wt.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:A};case e.ELEMENT_NODE:return $T(e,{doc:n,blockClass:i,blockSelector:s,unblockSelector:o,inlineStylesheet:v,maskAttributeFn:u,maskInputOptions:a,maskInputFn:y,dataURLOptions:g,inlineImages:b,recordCanvas:w,keepIframeSrcFn:E,newlyAddedElement:S,rootId:A,maskAllText:c,maskTextClass:d,unmaskTextClass:f,maskTextSelector:p,unmaskTextSelector:l});case e.TEXT_NODE:return qT(e,{doc:n,maskAllText:c,maskTextClass:d,unmaskTextClass:f,maskTextSelector:p,unmaskTextSelector:l,maskTextFn:h,maskInputOptions:a,maskInputFn:y,rootId:A});case e.CDATA_SECTION_NODE:return{type:Wt.CDATA,textContent:"",rootId:A};case e.COMMENT_NODE:return{type:Wt.Comment,textContent:e.textContent||"",rootId:A};default:return!1}}function VT(e,t){if(!t.hasNode(e))return;const n=t.getId(e);return n===1?void 0:n}function qT(e,t){const{maskAllText:n,maskTextClass:r,unmaskTextClass:i,maskTextSelector:s,unmaskTextSelector:o,maskTextFn:c,maskInputOptions:u,maskInputFn:d,rootId:f}=t,p=e.parentNode&&e.parentNode.tagName;let l=e.textContent;const v=p==="STYLE"?!0:void 0,a=p==="SCRIPT"?!0:void 0,h=p==="TEXTAREA"?!0:void 0;if(v&&l){try{e.nextSibling||e.previousSibling||mo([e,"access",g=>g.parentNode,"access",g=>g.sheet,"optionalAccess",g=>g.cssRules])&&(l=pc(e.parentNode.sheet))}catch(g){console.warn(`Cannot get CSS styles from text's parentNode. Error: ${g}`,e)}l=yc(l,vc(t.doc))}a&&(l="SCRIPT_PLACEHOLDER");const y=ys(e,r,s,i,o,n);if(!v&&!a&&!h&&l&&y&&(l=c?c(l,e.parentElement):l.replace(/[\S]/g,"*")),h&&l&&(u.textarea||y)&&(l=d?d(l,e.parentNode):l.replace(/[\S]/g,"*")),p==="OPTION"&&l){const g=mc({type:null,tagName:p,maskInputOptions:u});l=vo({isMasked:ys(e,r,s,i,o,g),element:e,value:l,maskInputFn:d})}return{type:Wt.Text,textContent:l||"",isStyle:v,rootId:f}}function $T(e,t){const{doc:n,blockClass:r,blockSelector:i,unblockSelector:s,inlineStylesheet:o,maskInputOptions:c={},maskAttributeFn:u,maskInputFn:d,dataURLOptions:f={},inlineImages:p,recordCanvas:l,keepIframeSrcFn:v,newlyAddedElement:a=!1,rootId:h,maskAllText:y,maskTextClass:g,unmaskTextClass:b,maskTextSelector:w,unmaskTextSelector:E}=t,S=jT(e,r,i,s),A=AT(e);let T={};const O=e.attributes.length;for(let D=0;D<O;D++){const F=e.attributes[D];F.name&&!u0(A,F.name,F.value)&&(T[F.name]=c0(n,A,hs(F.name),F.value,e,u))}if(A==="link"&&o){const D=Array.from(n.styleSheets).find(V=>V.href===e.href);let F=null;D&&(F=pc(D)),F&&(delete T.rel,delete T.href,T._cssText=yc(F,D.href))}if(A==="style"&&e.sheet&&!(e.innerText||e.textContent||"").trim().length){const D=pc(e.sheet);D&&(T._cssText=yc(D,vc(n)))}if(A==="input"||A==="textarea"||A==="select"||A==="option"){const D=e,F=hd(D),V=gc(D,fd(A),F),G=D.checked;if(F!=="submit"&&F!=="button"&&V){const U=ys(D,g,w,b,E,mc({type:F,tagName:fd(A),maskInputOptions:c}));T.value=vo({isMasked:U,element:D,value:V,maskInputFn:d})}G&&(T.checked=G)}if(A==="option"&&(e.selected&&!c.select?T.selected=!0:delete T.selected),A==="canvas"&&l){if(e.__context==="2d")xT(e)||(T.rr_dataURL=e.toDataURL(f.type,f.quality));else if(!("__context"in e)){const D=e.toDataURL(f.type,f.quality),F=n.createElement("canvas");F.width=e.width,F.height=e.height;const V=F.toDataURL(f.type,f.quality);D!==V&&(T.rr_dataURL=D)}}if(A==="img"&&p){ps||(ps=n.createElement("canvas"),o0=ps.getContext("2d"));const D=e,F=D.currentSrc||D.getAttribute("src")||"<unknown-src>",V=D.crossOrigin,G=()=>{D.removeEventListener("load",G);try{ps.width=D.naturalWidth,ps.height=D.naturalHeight,o0.drawImage(D,0,0),T.rr_dataURL=ps.toDataURL(f.type,f.quality)}catch(U){if(D.crossOrigin!=="anonymous"){D.crossOrigin="anonymous",D.complete&&D.naturalWidth!==0?G():D.addEventListener("load",G);return}else console.warn(`Cannot inline img src=${F}! Error: ${U}`)}D.crossOrigin==="anonymous"&&(V?T.crossOrigin=V:D.removeAttribute("crossorigin"))};D.complete&&D.naturalWidth!==0?G():D.addEventListener("load",G)}if((A==="audio"||A==="video")&&(T.rr_mediaState=e.paused?"paused":"played",T.rr_mediaCurrentTime=e.currentTime),a||(e.scrollLeft&&(T.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(T.rr_scrollTop=e.scrollTop)),S){const{width:D,height:F}=e.getBoundingClientRect();T={class:T.class,rr_width:`${D}px`,rr_height:`${F}px`}}A==="iframe"&&!v(T.src)&&(!S&&!e.contentDocument&&(T.rr_src=T.src),delete T.src);let M;try{customElements.get(A)&&(M=!0)}catch{}return{type:Wt.Element,tagName:A,attributes:T,childNodes:[],isSVG:PT(e)||void 0,needBlock:S,rootId:h,isCustom:M}}function wt(e){return e==null?"":e.toLowerCase()}function GT(e,t){if(t.comment&&e.type===Wt.Comment)return!0;if(e.type===Wt.Element){if(t.script&&(e.tagName==="script"||e.tagName==="link"&&(e.attributes.rel==="preload"||e.attributes.rel==="modulepreload")&&e.attributes.as==="script"||e.tagName==="link"&&e.attributes.rel==="prefetch"&&typeof e.attributes.href=="string"&&n0(e.attributes.href)==="js"))return!0;if(t.headFavicon&&(e.tagName==="link"&&e.attributes.rel==="shortcut icon"||e.tagName==="meta"&&(wt(e.attributes.name).match(/^msapplication-tile(image|color)$/)||wt(e.attributes.name)==="application-name"||wt(e.attributes.rel)==="icon"||wt(e.attributes.rel)==="apple-touch-icon"||wt(e.attributes.rel)==="shortcut icon")))return!0;if(e.tagName==="meta"){if(t.headMetaDescKeywords&&wt(e.attributes.name).match(/^description|keywords$/))return!0;if(t.headMetaSocial&&(wt(e.attributes.property).match(/^(og|twitter|fb):/)||wt(e.attributes.name).match(/^(og|twitter):/)||wt(e.attributes.name)==="pinterest"))return!0;if(t.headMetaRobots&&(wt(e.attributes.name)==="robots"||wt(e.attributes.name)==="googlebot"||wt(e.attributes.name)==="bingbot"))return!0;if(t.headMetaHttpEquiv&&e.attributes["http-equiv"]!==void 0)return!0;if(t.headMetaAuthorship&&(wt(e.attributes.name)==="author"||wt(e.attributes.name)==="generator"||wt(e.attributes.name)==="framework"||wt(e.attributes.name)==="publisher"||wt(e.attributes.name)==="progid"||wt(e.attributes.property).match(/^article:/)||wt(e.attributes.property).match(/^product:/)))return!0;if(t.headMetaVerification&&(wt(e.attributes.name)==="google-site-verification"||wt(e.attributes.name)==="yandex-verification"||wt(e.attributes.name)==="csrf-token"||wt(e.attributes.name)==="p:domain_verify"||wt(e.attributes.name)==="verify-v1"||wt(e.attributes.name)==="verification"||wt(e.attributes.name)==="shopify-checkout-api-token"))return!0}}return!1}function vs(e,t){const{doc:n,mirror:r,blockClass:i,blockSelector:s,unblockSelector:o,maskAllText:c,maskTextClass:u,unmaskTextClass:d,maskTextSelector:f,unmaskTextSelector:p,skipChild:l=!1,inlineStylesheet:v=!0,maskInputOptions:a={},maskAttributeFn:h,maskTextFn:y,maskInputFn:g,slimDOMOptions:b,dataURLOptions:w={},inlineImages:E=!1,recordCanvas:S=!1,onSerialize:A,onIframeLoad:T,iframeLoadTimeout:O=5e3,onStylesheetLoad:M,stylesheetLoadTimeout:D=5e3,keepIframeSrcFn:F=()=>!1,newlyAddedElement:V=!1}=t;let{preserveWhiteSpace:G=!0}=t;const U=UT(e,{doc:n,mirror:r,blockClass:i,blockSelector:s,maskAllText:c,unblockSelector:o,maskTextClass:u,unmaskTextClass:d,maskTextSelector:f,unmaskTextSelector:p,inlineStylesheet:v,maskInputOptions:a,maskAttributeFn:h,maskTextFn:y,maskInputFn:g,dataURLOptions:w,inlineImages:E,recordCanvas:S,keepIframeSrcFn:F,newlyAddedElement:V});if(!U)return console.warn(e,"not serialized"),null;let N;r.hasNode(e)?N=r.getId(e):GT(U,b)||!G&&U.type===Wt.Text&&!U.isStyle&&!U.textContent.replace(/^\s+|\s+$/gm,"").length?N=bo:N=md();const L=Object.assign(U,{id:N});if(r.add(e,L),N===bo)return null;A&&A(e);let Y=!l;if(L.type===Wt.Element){Y=Y&&!L.needBlock,delete L.needBlock;const z=e.shadowRoot;z&&yo(z)&&(L.isShadowHost=!0)}if((L.type===Wt.Document||L.type===Wt.Element)&&Y){b.headWhitespace&&L.type===Wt.Element&&L.tagName==="head"&&(G=!1);const z={doc:n,mirror:r,blockClass:i,blockSelector:s,maskAllText:c,unblockSelector:o,maskTextClass:u,unmaskTextClass:d,maskTextSelector:f,unmaskTextSelector:p,skipChild:l,inlineStylesheet:v,maskInputOptions:a,maskAttributeFn:h,maskTextFn:y,maskInputFn:g,slimDOMOptions:b,dataURLOptions:w,inlineImages:E,recordCanvas:S,preserveWhiteSpace:G,onSerialize:A,onIframeLoad:T,iframeLoadTimeout:O,onStylesheetLoad:M,stylesheetLoadTimeout:D,keepIframeSrcFn:F};for(const ee of Array.from(e.childNodes)){const te=vs(ee,z);te&&L.childNodes.push(te)}if(gT(e)&&e.shadowRoot)for(const ee of Array.from(e.shadowRoot.childNodes)){const te=vs(ee,z);te&&(yo(e.shadowRoot)&&(te.isShadow=!0),L.childNodes.push(te))}}return e.parentNode&&go(e.parentNode)&&yo(e.parentNode)&&(L.isShadow=!0),L.type===Wt.Element&&L.tagName==="iframe"&&BT(e,()=>{const z=e.contentDocument;if(z&&T){const ee=vs(z,{doc:z,mirror:r,blockClass:i,blockSelector:s,unblockSelector:o,maskAllText:c,maskTextClass:u,unmaskTextClass:d,maskTextSelector:f,unmaskTextSelector:p,skipChild:!1,inlineStylesheet:v,maskInputOptions:a,maskAttributeFn:h,maskTextFn:y,maskInputFn:g,slimDOMOptions:b,dataURLOptions:w,inlineImages:E,recordCanvas:S,preserveWhiteSpace:G,onSerialize:A,onIframeLoad:T,iframeLoadTimeout:O,onStylesheetLoad:M,stylesheetLoadTimeout:D,keepIframeSrcFn:F});ee&&T(e,ee)}},O),L.type===Wt.Element&&L.tagName==="link"&&typeof L.attributes.rel=="string"&&(L.attributes.rel==="stylesheet"||L.attributes.rel==="preload"&&typeof L.attributes.href=="string"&&n0(L.attributes.href)==="css")&&FT(e,()=>{if(M){const z=vs(e,{doc:n,mirror:r,blockClass:i,blockSelector:s,unblockSelector:o,maskAllText:c,maskTextClass:u,unmaskTextClass:d,maskTextSelector:f,unmaskTextSelector:p,skipChild:!1,inlineStylesheet:v,maskInputOptions:a,maskAttributeFn:h,maskTextFn:y,maskInputFn:g,slimDOMOptions:b,dataURLOptions:w,inlineImages:E,recordCanvas:S,preserveWhiteSpace:G,onSerialize:A,onIframeLoad:T,iframeLoadTimeout:O,onStylesheetLoad:M,stylesheetLoadTimeout:D,keepIframeSrcFn:F});z&&M(e,z)}},D),L}function HT(e,t){const{mirror:n=new e0,blockClass:r="rr-block",blockSelector:i=null,unblockSelector:s=null,maskAllText:o=!1,maskTextClass:c="rr-mask",unmaskTextClass:u=null,maskTextSelector:d=null,unmaskTextSelector:f=null,inlineStylesheet:p=!0,inlineImages:l=!1,recordCanvas:v=!1,maskAllInputs:a=!1,maskAttributeFn:h,maskTextFn:y,maskInputFn:g,slimDOM:b=!1,dataURLOptions:w,preserveWhiteSpace:E,onSerialize:S,onIframeLoad:A,iframeLoadTimeout:T,onStylesheetLoad:O,stylesheetLoadTimeout:M,keepIframeSrcFn:D=()=>!1}=t||{};return vs(e,{doc:e,mirror:n,blockClass:r,blockSelector:i,unblockSelector:s,maskAllText:o,maskTextClass:c,unmaskTextClass:u,maskTextSelector:d,unmaskTextSelector:f,skipChild:!1,inlineStylesheet:p,maskInputOptions:a===!0?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0}:a===!1?{}:a,maskAttributeFn:h,maskTextFn:y,maskInputFn:g,slimDOMOptions:b===!0||b==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:b==="all",headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:b===!1?{}:b,dataURLOptions:w,inlineImages:l,recordCanvas:v,preserveWhiteSpace:E,onSerialize:S,onIframeLoad:A,iframeLoadTimeout:T,onStylesheetLoad:O,stylesheetLoadTimeout:M,keepIframeSrcFn:D,newlyAddedElement:!1})}function ii(e){let t,n=e[0],r=1;for(;r<e.length;){const i=e[r],s=e[r+1];if(r+=2,(i==="optionalAccess"||i==="optionalCall")&&n==null)return;i==="access"||i==="optionalAccess"?(t=n,n=s(n)):(i==="call"||i==="optionalCall")&&(n=s((...o)=>n.call(t,...o)),t=void 0)}return n}function vn(e,t,n=document){const r={capture:!0,passive:!0};return n.addEventListener(e,t,r),()=>n.removeEventListener(e,t,r)}const bs=`Please stop import mirror directly. Instead of that,\r
75
+ Error:`,i)}}function N_(){return y_(e=>{ls("cls",{metric:e}),Tg=e},{reportAllChanges:!0})}function M_(){return b_(e=>{ls("fid",{metric:e}),Ig=e})}function D_(){return I_(e=>{ls("lcp",{metric:e}),kg=e},{reportAllChanges:!0})}function P_(){return O_(e=>{ls("ttfb",{metric:e}),Og=e})}function j_(){return A_(e=>{ls("inp",{metric:e}),Rg=e})}function ho(e,t,n,r,i=!1){Pg(e,t);let s;return oc[e]||(s=n(),oc[e]=!0),r&&t({metric:r}),jg(e,t,i?s:void 0)}function L_(e){const t={};e==="event"&&(t.durationThreshold=0),Ni(e,n=>{ls(e,{entries:n})},t)}function Pg(e,t){fo[e]=fo[e]||[],fo[e].push(t)}function jg(e,t,n){return()=>{n&&n();const r=fo[e];if(!r)return;const i=r.indexOf(t);i!==-1&&r.splice(i,1)}}function B_(e){return"duration"in e}function td(e){return typeof e=="number"&&isFinite(e)}function ds(e,t,n,{...r}){const i=ct(e).start_timestamp;return i&&i>t&&typeof e.updateStartTime=="function"&&e.updateStartTime(t),Ym(e,()=>{const s=ni({startTime:t,...r});return s&&s.end(n),s})}function Lg(e){const t=Xe();if(!t)return;const{name:n,transaction:r,attributes:i,startTime:s}=e,{release:o,environment:c}=t.getOptions(),u=t.getIntegrationByName("Replay"),d=u&&u.getReplayId(),f=vt(),p=f.getUser(),l=p!==void 0?p.email||p.id||p.ip_address:void 0;let v;try{v=f.getScopeData().contexts.profile.profile_id}catch{}const a={release:o,environment:c,user:l||void 0,profile_id:v||void 0,replay_id:d||void 0,transaction:r,"user_agent.original":je.navigator&&je.navigator.userAgent,...i};return ni({name:n,attributes:a,startTime:s,experimental:{standalone:!0}})}function nd(){return je&&je.addEventListener&&je.performance}function Ut(e){return e/1e3}function F_(){let e=0,t,n;if(!V_())return;let r=!1;function i(){r||(r=!0,n&&U_(e,t,n),s())}const s=ed(({metric:o})=>{const c=o.entries[o.entries.length-1];c&&(e=o.value,t=c)},!0);co(()=>{i()}),setTimeout(()=>{const o=Xe(),c=Pn([o,"optionalAccess",p=>p.on,"call",p=>p("startNavigationSpan",()=>{i(),c&&c()})]),u=sn(),d=u&&rn(u),f=d&&ct(d);f&&f.op==="pageload"&&(n=d.spanContext().spanId)},0)}function U_(e,t,n){Ln&&Se.log(`Sending CLS span (${e})`);const r=Ut((bn||0)+(Pn([t,"optionalAccess",u=>u.startTime])||0)),i=vt().getScopeData().transactionName,s=t?Ar(Pn([t,"access",u=>u.sources,"access",u=>u[0],"optionalAccess",u=>u.node])):"Layout shift",o=Yt({[Wt]:"auto.http.browser.cls",[ei]:"ui.webvital.cls",[Ll]:Pn([t,"optionalAccess",u=>u.duration])||0,"sentry.pageload.span_id":n}),c=Lg({name:s,transaction:i,attributes:o,startTime:r});Pn([c,"optionalAccess",u=>u.addEvent,"call",u=>u("cls",{[za]:"",[Qa]:e})]),Pn([c,"optionalAccess",u=>u.end,"call",u=>u(r)])}function V_(){try{return Pn([PerformanceObserver,"access",e=>e.supportedEntryTypes,"optionalAccess",e=>e.includes,"call",e=>e("layout-shift")])}catch{return!1}}const q_=2147483647;let Bg=0,on={},yr,po;function $_({recordClsStandaloneSpans:e}){const t=nd();if(t&&bn){t.mark&&je.performance.mark("sentry-tracing-init");const n=z_(),r=K_(),i=Q_(),s=e?F_():W_();return()=>{n(),r(),i(),s&&s()}}return()=>{}}function G_(){us("longtask",({entries:e})=>{if(sn())for(const t of e){const n=Ut(bn+t.startTime),r=Ut(t.duration),i=ni({name:"Main UI thread blocked",op:"ui.long-task",startTime:n,attributes:{[Wt]:"auto.ui.browser.metrics"}});i&&i.end(n+r)}})}function H_(){new PerformanceObserver(t=>{if(sn())for(const n of t.getEntries()){if(!n.scripts[0])continue;const r=Ut(bn+n.startTime),i=Ut(n.duration),s={[Wt]:"auto.ui.browser.metrics"},o=n.scripts[0],{invoker:c,invokerType:u,sourceURL:d,sourceFunctionName:f,sourceCharPosition:p}=o;s["browser.script.invoker"]=c,s["browser.script.invoker_type"]=u,d&&(s["code.filepath"]=d),f&&(s["code.function"]=f),p!==-1&&(s["browser.script.source_char_position"]=p);const l=ni({name:"Main UI thread blocked",op:"ui.long-animation-frame",startTime:r,attributes:s});l&&l.end(r+i)}}).observe({type:"long-animation-frame",buffered:!0})}function Y_(){us("event",({entries:e})=>{if(sn()){for(const t of e)if(t.name==="click"){const n=Ut(bn+t.startTime),r=Ut(t.duration),i={name:Ar(t.target),op:`ui.interaction.${t.name}`,startTime:n,attributes:{[Wt]:"auto.ui.browser.metrics"}},s=Gp(t.target);s&&(i.attributes["ui.component_name"]=s);const o=ni(i);o&&o.end(n+r)}}})}function W_(){return ed(({metric:e})=>{const t=e.entries[e.entries.length-1];t&&(Ln&&Se.log(`[Measurements] Adding CLS ${e.value}`),on.cls={value:e.value,unit:""},po=t)},!0)}function K_(){return Ng(({metric:e})=>{const t=e.entries[e.entries.length-1];t&&(Ln&&Se.log("[Measurements] Adding LCP"),on.lcp={value:e.value,unit:"millisecond"},yr=t)},!0)}function z_(){return Mg(({metric:e})=>{const t=e.entries[e.entries.length-1];if(!t)return;const n=Ut(bn),r=Ut(t.startTime);Ln&&Se.log("[Measurements] Adding FID"),on.fid={value:e.value,unit:"millisecond"},on["mark.fid"]={value:n+r,unit:"second"}})}function Q_(){return R_(({metric:e})=>{e.entries[e.entries.length-1]&&(Ln&&Se.log("[Measurements] Adding TTFB"),on.ttfb={value:e.value,unit:"millisecond"})})}function J_(e,t){const n=nd();if(!n||!je.performance.getEntries||!bn)return;Ln&&Se.log("[Tracing] Adding & adjusting spans using Performance API");const r=Ut(bn),i=n.getEntries(),{op:s,start_timestamp:o}=ct(e);if(i.slice(Bg).forEach(c=>{const u=Ut(c.startTime),d=Ut(Math.max(0,c.duration));if(!(s==="navigation"&&o&&r+u<o))switch(c.entryType){case"navigation":{X_(e,c,r);break}case"mark":case"paint":case"measure":{Z_(e,c,u,d,r);const f=ic(),p=c.startTime<f.firstHiddenTime;c.name==="first-paint"&&p&&(Ln&&Se.log("[Measurements] Adding FP"),on.fp={value:c.startTime,unit:"millisecond"}),c.name==="first-contentful-paint"&&p&&(Ln&&Se.log("[Measurements] Adding FCP"),on.fcp={value:c.startTime,unit:"millisecond"});break}case"resource":{tA(e,c,c.name,u,d,r);break}}}),Bg=Math.max(i.length-1,0),nA(e),s==="pageload"){iA(on);const c=on["mark.fid"];c&&on.fid&&(ds(e,c.value,c.value+Ut(on.fid.value),{name:"first input delay",op:"ui.action",attributes:{[Wt]:"auto.ui.browser.metrics"}}),delete on["mark.fid"]),(!("fcp"in on)||!t.recordClsOnPageloadSpan)&&delete on.cls,Object.entries(on).forEach(([u,d])=>{O2(u,d.value,d.unit)}),e.setAttribute("performance.timeOrigin",r),e.setAttribute("performance.activationStart",ao()),rA(e)}yr=void 0,po=void 0,on={}}function Z_(e,t,n,r,i){const s=oo(),o=Ut(s?s.requestStart:0),c=i+Math.max(n,o),u=i+n,d=u+r,f={[Wt]:"auto.resource.browser.metrics"};return c!==u&&(f["sentry.browser.measure_happened_before_request"]=!0,f["sentry.browser.measure_start_time"]=c),ds(e,c,d,{name:t.name,op:t.entryType,attributes:f}),c}function X_(e,t,n){["unloadEvent","redirect","domContentLoadedEvent","loadEvent","connect"].forEach(r=>{ac(e,t,r,n)}),ac(e,t,"secureConnection",n,"TLS/SSL","connectEnd"),ac(e,t,"fetch",n,"cache","domainLookupStart"),ac(e,t,"domainLookup",n,"DNS"),eA(e,t,n)}function ac(e,t,n,r,i,s){const o=s?t[s]:t[`${n}End`],c=t[`${n}Start`];!c||!o||ds(e,r+Ut(c),r+Ut(o),{op:`browser.${i||n}`,name:t.name,attributes:{[Wt]:"auto.ui.browser.metrics"}})}function eA(e,t,n){const r=n+Ut(t.requestStart),i=n+Ut(t.responseEnd),s=n+Ut(t.responseStart);t.responseEnd&&(ds(e,r,i,{op:"browser.request",name:t.name,attributes:{[Wt]:"auto.ui.browser.metrics"}}),ds(e,s,i,{op:"browser.response",name:t.name,attributes:{[Wt]:"auto.ui.browser.metrics"}}))}function tA(e,t,n,r,i,s){if(t.initiatorType==="xmlhttprequest"||t.initiatorType==="fetch")return;const o=Ti(n),c={[Wt]:"auto.resource.browser.metrics"};rd(c,t,"transferSize","http.response_transfer_size"),rd(c,t,"encodedBodySize","http.response_content_length"),rd(c,t,"decodedBodySize","http.decoded_response_content_length"),"renderBlockingStatus"in t&&(c["resource.render_blocking_status"]=t.renderBlockingStatus),o.protocol&&(c["url.scheme"]=o.protocol.split(":").pop()),o.host&&(c["server.address"]=o.host),c["url.same_origin"]=n.includes(je.location.origin);const u=s+r,d=u+i;ds(e,u,d,{name:n.replace(je.location.origin,""),op:t.initiatorType?`resource.${t.initiatorType}`:"resource.other",attributes:c})}function nA(e){const t=je.navigator;if(!t)return;const n=t.connection;n&&(n.effectiveType&&e.setAttribute("effectiveConnectionType",n.effectiveType),n.type&&e.setAttribute("connectionType",n.type),td(n.rtt)&&(on["connection.rtt"]={value:n.rtt,unit:"millisecond"})),td(t.deviceMemory)&&e.setAttribute("deviceMemory",`${t.deviceMemory} GB`),td(t.hardwareConcurrency)&&e.setAttribute("hardwareConcurrency",String(t.hardwareConcurrency))}function rA(e){yr&&(Ln&&Se.log("[Measurements] Adding LCP Data"),yr.element&&e.setAttribute("lcp.element",Ar(yr.element)),yr.id&&e.setAttribute("lcp.id",yr.id),yr.url&&e.setAttribute("lcp.url",yr.url.trim().slice(0,200)),e.setAttribute("lcp.size",yr.size)),po&&po.sources&&(Ln&&Se.log("[Measurements] Adding CLS Data"),po.sources.forEach((t,n)=>e.setAttribute(`cls.source.${n+1}`,Ar(t.node))))}function rd(e,t,n,r){const i=t[n];i!=null&&i<q_&&(e[r]=i)}function iA(e){const t=oo();if(!t)return;const{responseStart:n,requestStart:r}=t;r<=n&&(Ln&&Se.log("[Measurements] Adding TTFB Request Time"),e["ttfb.requestTime"]={value:n-r,unit:"millisecond"})}const sA=1e3;let Fg,id,sd;function Ug(e){const t="dom";Qr(t,e),Jr(t,oA)}function oA(){if(!je.document)return;const e=Hn.bind(null,"dom"),t=Vg(e,!0);je.document.addEventListener("click",t,!1),je.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach(n=>{const r=je[n]&&je[n].prototype;!r||!r.hasOwnProperty||!r.hasOwnProperty("addEventListener")||(An(r,"addEventListener",function(i){return function(s,o,c){if(s==="click"||s=="keypress")try{const u=this,d=u.__sentry_instrumentation_handlers__=u.__sentry_instrumentation_handlers__||{},f=d[s]=d[s]||{refCount:0};if(!f.handler){const p=Vg(e);f.handler=p,i.call(this,s,p,c)}f.refCount++}catch{}return i.call(this,s,o,c)}}),An(r,"removeEventListener",function(i){return function(s,o,c){if(s==="click"||s=="keypress")try{const u=this,d=u.__sentry_instrumentation_handlers__||{},f=d[s];f&&(f.refCount--,f.refCount<=0&&(i.call(this,s,f.handler,c),f.handler=void 0,delete d[s]),Object.keys(d).length===0&&delete u.__sentry_instrumentation_handlers__)}catch{}return i.call(this,s,o,c)}}))})}function aA(e){if(e.type!==id)return!1;try{if(!e.target||e.target._sentryId!==sd)return!1}catch{}return!0}function cA(e,t){return e!=="keypress"?!1:!t||!t.tagName?!0:!(t.tagName==="INPUT"||t.tagName==="TEXTAREA"||t.isContentEditable)}function Vg(e,t=!1){return n=>{if(!n||n._sentryCaptured)return;const r=uA(n);if(cA(n.type,r))return;Gn(n,"_sentryCaptured",!0),r&&!r._sentryId&&Gn(r,"_sentryId",St());const i=n.type==="keypress"?"input":n.type;aA(n)||(e({event:n,name:i,global:t}),id=n.type,sd=r?r._sentryId:void 0),clearTimeout(Fg),Fg=je.setTimeout(()=>{sd=void 0,id=void 0},sA)}}function uA(e){try{return e.target}catch{return null}}let cc;function uc(e){const t="history";Qr(t,e),Jr(t,lA)}function lA(){if(!e2())return;const e=je.onpopstate;je.onpopstate=function(...n){const r=je.location.href,i=cc;if(cc=r,Hn("history",{from:i,to:r}),e)try{return e.apply(this,n)}catch{}};function t(n){return function(...r){const i=r.length>2?r[2]:void 0;if(i){const s=cc,o=String(i);cc=o,Hn("history",{from:s,to:o})}return n.apply(this,r)}}An(je.history,"pushState",t),An(je.history,"replaceState",t)}const lc={};function qg(e){const t=lc[e];if(t)return t;let n=je[e];if(Cl(n))return lc[e]=n.bind(je);const r=je.document;if(r&&typeof r.createElement=="function")try{const i=r.createElement("iframe");i.hidden=!0,r.head.appendChild(i);const s=i.contentWindow;s&&s[e]&&(n=s[e]),r.head.removeChild(i)}catch(i){Ln&&Se.warn(`Could not create sandbox iframe for ${e} check, bailing to window.${e}: `,i)}return n&&(lc[e]=n.bind(je))}function $g(e){lc[e]=void 0}function fs(...e){return qg("setTimeout")(...e)}const Mi="__sentry_xhr_v3__";function Gg(e){const t="xhr";Qr(t,e),Jr(t,dA)}function dA(){if(!je.XMLHttpRequest)return;const e=XMLHttpRequest.prototype;e.open=new Proxy(e.open,{apply(t,n,r){const i=vn()*1e3,s=Cr(r[0])?r[0].toUpperCase():void 0,o=fA(r[1]);if(!s||!o)return t.apply(n,r);n[Mi]={method:s,url:o,request_headers:{}},s==="POST"&&o.match(/sentry_key/)&&(n.__sentry_own_request__=!0);const c=()=>{const u=n[Mi];if(u&&n.readyState===4){try{u.status_code=n.status}catch{}const d={endTimestamp:vn()*1e3,startTimestamp:i,xhr:n};Hn("xhr",d)}};return"onreadystatechange"in n&&typeof n.onreadystatechange=="function"?n.onreadystatechange=new Proxy(n.onreadystatechange,{apply(u,d,f){return c(),u.apply(d,f)}}):n.addEventListener("readystatechange",c),n.setRequestHeader=new Proxy(n.setRequestHeader,{apply(u,d,f){const[p,l]=f,v=d[Mi];return v&&Cr(p)&&Cr(l)&&(v.request_headers[p.toLowerCase()]=l),u.apply(d,f)}}),t.apply(n,r)}}),e.send=new Proxy(e.send,{apply(t,n,r){const i=n[Mi];if(!i)return t.apply(n,r);r[0]!==void 0&&(i.body=r[0]);const s={startTimestamp:vn()*1e3,xhr:n};return Hn("xhr",s),t.apply(n,r)}})}function fA(e){if(Cr(e))return e;try{return e.toString()}catch{}}const od=[],dc=new Map;function hA(){if(nd()&&bn){const t=pA();return()=>{t()}}return()=>{}}const Hg={click:"click",pointerdown:"click",pointerup:"click",mousedown:"click",mouseup:"click",touchstart:"click",touchend:"click",mouseover:"hover",mouseout:"hover",mouseenter:"hover",mouseleave:"hover",pointerover:"hover",pointerout:"hover",pointerenter:"hover",pointerleave:"hover",dragstart:"drag",dragend:"drag",drag:"drag",dragenter:"drag",dragleave:"drag",dragover:"drag",drop:"drag",keydown:"press",keyup:"press",keypress:"press",input:"press"};function pA(){return Dg(({metric:e})=>{if(e.value==null)return;const t=e.entries.find(a=>a.duration===e.value&&Hg[a.name]);if(!t)return;const{interactionId:n}=t,r=Hg[t.name],i=Ut(bn+t.startTime),s=Ut(e.value),o=sn(),c=o?rn(o):void 0,d=(n!=null?dc.get(n):void 0)||c,f=d?ct(d).description:vt().getScopeData().transactionName,p=Ar(t.target),l=Yt({[Wt]:"auto.http.browser.inp",[ei]:`ui.interaction.${r}`,[Ll]:t.duration}),v=Lg({name:p,transaction:f,attributes:l,startTime:i});Pn([v,"optionalAccess",a=>a.addEvent,"call",a=>a("inp",{[za]:"millisecond",[Qa]:e.value})]),Pn([v,"optionalAccess",a=>a.end,"call",a=>a(i+s)])})}function mA(e){const t=({entries:n})=>{const r=sn(),i=r&&rn(r);n.forEach(s=>{if(!B_(s)||!i)return;const o=s.interactionId;if(o!=null&&!dc.has(o)){if(od.length>10){const c=od.shift();dc.delete(c)}od.push(o),dc.set(o,i)}})};us("event",t),us("first-input",t)}function gA(e,t=qg("fetch")){let n=0,r=0;function i(s){const o=s.body.length;n+=o,r++;const c={body:s.body,method:"POST",referrerPolicy:"origin",headers:e.headers,keepalive:n<=6e4&&r<15,...e.fetchOptions};if(!t)return $g("fetch"),Ga("No fetch implementation available");try{return t(e.url,c).then(u=>(n-=o,r--,{statusCode:u.status,headers:{"x-sentry-rate-limits":u.headers.get("X-Sentry-Rate-Limits"),"retry-after":u.headers.get("Retry-After")}}))}catch(u){return $g("fetch"),n-=o,r--,Ga(u)}}return wC(e,i)}const yA=30,vA=50;function ad(e,t,n,r){const i={filename:e,function:t==="<anonymous>"?Ai:t,in_app:!0};return n!==void 0&&(i.lineno=n),r!==void 0&&(i.colno=r),i}const bA=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,wA=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,EA=/\((\S*)(?::(\d+))(?::(\d+))\)/,SA=[yA,e=>{const t=bA.exec(e);if(t){const[,r,i,s]=t;return ad(r,Ai,+i,+s)}const n=wA.exec(e);if(n){if(n[2]&&n[2].indexOf("eval")===0){const o=EA.exec(n[2]);o&&(n[2]=o[1],n[3]=o[2],n[4]=o[3])}const[i,s]=Yg(n[1]||Ai,n[2]);return ad(s,i,n[3]?+n[3]:void 0,n[4]?+n[4]:void 0)}}],xA=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,CA=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,_A=em(...[SA,[vA,e=>{const t=xA.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){const s=CA.exec(t[3]);s&&(t[1]=t[1]||"eval",t[3]=s[1],t[4]=s[2],t[5]="")}let r=t[3],i=t[1]||Ai;return[i,r]=Yg(i,r),ad(r,i,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}}]]),Yg=(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]:Ai,n?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]},fc=1024,AA="Breadcrumbs",TA=(e={})=>{const t={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e};return{name:AA,setup(n){t.console&&mx(OA(n)),t.dom&&Ug(kA(n,t.dom)),t.xhr&&Gg(RA(n)),t.fetch&&sm(NA(n)),t.history&&uc(MA(n)),t.sentry&&n.on("beforeSendEvent",IA(n))}}};function IA(e){return function(n){Xe()===e&&ri({category:`sentry.${n.type==="transaction"?"transaction":"event"}`,event_id:n.event_id,level:n.level,message:Zr(n)},{event:n})}}function kA(e,t){return function(r){if(Xe()!==e)return;let i,s,o=typeof t=="object"?t.serializeAttribute:void 0,c=typeof t=="object"&&typeof t.maxStringLength=="number"?t.maxStringLength:void 0;c&&c>fc&&(Tn&&Se.warn(`\`dom.maxStringLength\` cannot exceed ${fc}, but a value of ${c} was configured. Sentry will use ${fc} instead.`),c=fc),typeof o=="string"&&(o=[o]);try{const d=r.event,f=DA(d)?d.target:d;i=Ar(f,{keyAttrs:o,maxStringLength:c}),s=Gp(f)}catch{i="<unknown>"}if(i.length===0)return;const u={category:`ui.${r.name}`,message:i};s&&(u.data={"ui.component_name":s}),ri(u,{event:r.event,name:r.name,global:r.global})}}function OA(e){return function(n){if(Xe()!==e)return;const r={category:"console",data:{arguments:n.args,logger:"console"},level:mm(n.level),message:Fp(n.args," ")};if(n.level==="assert")if(n.args[0]===!1)r.message=`Assertion failed: ${Fp(n.args.slice(1)," ")||"console.assert"}`,r.data.arguments=n.args.slice(1);else return;ri(r,{input:n.args,level:n.level})}}function RA(e){return function(n){if(Xe()!==e)return;const{startTimestamp:r,endTimestamp:i}=n,s=n.xhr[Mi];if(!r||!i||!s)return;const{method:o,url:c,status_code:u,body:d}=s,f={method:o,url:c,status_code:u},p={xhr:n.xhr,input:d,startTimestamp:r,endTimestamp:i},l=qp(u);ri({category:"xhr",data:f,type:"http",level:l},p)}}function NA(e){return function(n){if(Xe()!==e)return;const{startTimestamp:r,endTimestamp:i}=n;if(i&&!(n.fetchData.url.match(/sentry_key/)&&n.fetchData.method==="POST"))if(n.error){const s=n.fetchData,o={data:n.error,input:n.args,startTimestamp:r,endTimestamp:i};ri({category:"fetch",data:s,level:"error",type:"http"},o)}else{const s=n.response,o={...n.fetchData,status_code:s&&s.status},c={input:n.args,response:s,startTimestamp:r,endTimestamp:i},u=qp(o.status_code);ri({category:"fetch",data:o,type:"http",level:u},c)}}}function MA(e){return function(n){if(Xe()!==e)return;let r=n.from,i=n.to;const s=Ti(Re.location.href);let o=r?Ti(r):void 0;const c=Ti(i);(!o||!o.path)&&(o=s),s.protocol===c.protocol&&s.host===c.host&&(i=c.relative),s.protocol===o.protocol&&s.host===o.host&&(r=o.relative),ri({category:"navigation",data:{from:r,to:i}})}}function DA(e){return!!e&&!!e.target}const PA=["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"],jA="BrowserApiErrors",LA=(e={})=>{const t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...e};return{name:jA,setupOnce(){t.setTimeout&&An(Re,"setTimeout",Wg),t.setInterval&&An(Re,"setInterval",Wg),t.requestAnimationFrame&&An(Re,"requestAnimationFrame",BA),t.XMLHttpRequest&&"XMLHttpRequest"in Re&&An(XMLHttpRequest.prototype,"send",FA);const n=t.eventTarget;n&&(Array.isArray(n)?n:PA).forEach(UA)}}};function Wg(e){return function(...t){const n=t[0];return t[0]=os(n,{mechanism:{data:{function:Tr(e)},handled:!1,type:"instrument"}}),e.apply(this,t)}}function BA(e){return function(t){return e.apply(this,[os(t,{mechanism:{data:{function:"requestAnimationFrame",handler:Tr(e)},handled:!1,type:"instrument"}})])}}function FA(e){return function(...t){const n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(i=>{i in n&&typeof n[i]=="function"&&An(n,i,function(s){const o={mechanism:{data:{function:i,handler:Tr(s)},handled:!1,type:"instrument"}},c=wl(s);return c&&(o.mechanism.data.handler=Tr(c)),os(s,o)})}),e.apply(this,t)}}function UA(e){const t=Re,n=t[e]&&t[e].prototype;!n||!n.hasOwnProperty||!n.hasOwnProperty("addEventListener")||(An(n,"addEventListener",function(r){return function(i,s,o){try{typeof s.handleEvent=="function"&&(s.handleEvent=os(s.handleEvent,{mechanism:{data:{function:"handleEvent",handler:Tr(s),target:e},handled:!1,type:"instrument"}}))}catch{}return r.apply(this,[i,os(s,{mechanism:{data:{function:"addEventListener",handler:Tr(s),target:e},handled:!1,type:"instrument"}}),o])}}),An(n,"removeEventListener",function(r){return function(i,s,o){const c=s;try{const u=c&&c.__sentry_wrapped__;u&&r.call(this,i,u,o)}catch{}return r.call(this,i,c,o)}}))}const VA="GlobalHandlers",qA=(e={})=>{const t={onerror:!0,onunhandledrejection:!0,...e};return{name:VA,setupOnce(){Error.stackTraceLimit=50},setup(n){t.onerror&&($A(n),Kg("onerror")),t.onunhandledrejection&&(GA(n),Kg("onunhandledrejection"))}}};function $A(e){cm(t=>{const{stackParser:n,attachStacktrace:r}=zg();if(Xe()!==e||wg())return;const{msg:i,url:s,line:o,column:c,error:u}=t,d=WA(Wl(n,u||i,void 0,r,!1),s,o,c);d.level="error",Xm(d,{originalException:u,mechanism:{handled:!1,type:"onerror"}})})}function GA(e){um(t=>{const{stackParser:n,attachStacktrace:r}=zg();if(Xe()!==e||wg())return;const i=HA(t),s=yl(i)?YA(i):Wl(n,i,void 0,r,!0);s.level="error",Xm(s,{originalException:i,mechanism:{handled:!1,type:"onunhandledrejection"}})})}function HA(e){if(yl(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 YA(e){return{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(e)}`}]}}}function WA(e,t,n,r){const i=e.exception=e.exception||{},s=i.values=i.values||[],o=s[0]=s[0]||{},c=o.stacktrace=o.stacktrace||{},u=c.frames=c.frames||[],d=isNaN(parseInt(r,10))?void 0:r,f=isNaN(parseInt(n,10))?void 0:n,p=Cr(t)&&t.length>0?t:$p();return u.length===0&&u.push({colno:d,filename:p,function:Ai,in_app:!0,lineno:f}),e}function Kg(e){Tn&&Se.log(`Global Handler attached: ${e}`)}function zg(){const e=Xe();return e&&e.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}const KA=()=>({name:"HttpContext",preprocessEvent(e){if(!Re.navigator&&!Re.location&&!Re.document)return;const t=e.request&&e.request.url||Re.location&&Re.location.href,{referrer:n}=Re.document||{},{userAgent:r}=Re.navigator||{},i={...e.request&&e.request.headers,...n&&{Referer:n},...r&&{"User-Agent":r}},s={...e.request,...t&&{url:t},headers:i};e.request=s}}),zA="cause",QA=5,JA="LinkedErrors",ZA=(e={})=>{const t=e.limit||QA,n=e.key||zA;return{name:JA,preprocessEvent(r,i,s){const o=s.getOptions();XS(Gl,o.stackParser,o.maxValueLength,n,t,r,i)}}};function XA(e){return[kC(),AC(),LA(),TA(),qA(),ZA(),VC(),KA()]}function eT(e={}){const t={defaultIntegrations:XA(),release:typeof __SENTRY_RELEASE__=="string"?__SENTRY_RELEASE__:Re.SENTRY_RELEASE&&Re.SENTRY_RELEASE.id?Re.SENTRY_RELEASE.id:void 0,autoSessionTracking:!0,sendClientReports:!0};return e.defaultIntegrations==null&&delete e.defaultIntegrations,{...t,...e}}function tT(){const e=typeof Re.window<"u"&&Re;if(!e)return!1;const t=e.chrome?"chrome":"browser",n=e[t],r=n&&n.runtime&&n.runtime.id,i=Re.location&&Re.location.href||"",s=["chrome-extension:","moz-extension:","ms-browser-extension:","safari-web-extension:"],o=!!r&&Re===Re.top&&s.some(u=>i.startsWith(`${u}//`)),c=typeof e.nw<"u";return!!r&&!o&&!c}function nT(e={}){const t=eT(e);if(tT()){es(()=>{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}Tn&&(rm()||Se.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:hx(t.stackParser||_A),integrations:fC(t),transport:t.transport||gA},r=yC(u_,n);return t.autoSessionTracking&&rT(),r}function Qg(e={}){if(!Re.document){Tn&&Se.error("Global document not defined in showReportDialog call");return}const t=vt(),n=t.getClient(),r=n&&n.getDsn();if(!r){Tn&&Se.error("DSN not configured for showReportDialog call");return}if(t&&(e.user={...t.getUser(),...e.user}),!e.eventId){const c=iC();c&&(e.eventId=c)}const i=Re.document.createElement("script");i.async=!0,i.crossOrigin="anonymous",i.src=lC(r,e),e.onLoad&&(i.onload=e.onLoad);const{onClose:s}=e;if(s){const c=u=>{if(u.data==="__sentry_reportdialog_closed__")try{s()}finally{Re.removeEventListener("message",c)}};Re.addEventListener("message",c)}const o=Re.document.head||Re.document.body;o?o.appendChild(i):Tn&&Se.error("Not injecting report dialog. No injection point found in HTML")}function rT(){if(typeof Re.document>"u"){Tn&&Se.warn("Session tracking in non-browser environment with @sentry/browser is not supported.");return}tg({ignoreDuration:!0}),ig(),uc(({from:e,to:t})=>{e!==void 0&&e!==t&&(tg({ignoreDuration:!0}),ig())})}const bt=nt,cd="sentryReplaySession",iT="replay_event",ud="Unable to send Replay",sT=3e5,oT=9e5,aT=5e3,cT=5500,uT=6e4,lT=5e3,dT=3,Jg=15e4,hc=5e3,fT=3e3,hT=300,ld=2e7,pT=4999,mT=15e3,Zg=36e5;function dd(e,t){return e??t()}function mo(e){let t,n=e[0],r=1;for(;r<e.length;){const i=e[r],s=e[r+1];if(r+=2,(i==="optionalAccess"||i==="optionalCall")&&n==null)return;i==="access"||i==="optionalAccess"?(t=n,n=s(n)):(i==="call"||i==="optionalCall")&&(n=s((...o)=>n.call(t,...o)),t=void 0)}return n}var Kt;(function(e){e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment"})(Kt||(Kt={}));function gT(e){return e.nodeType===e.ELEMENT_NODE}function go(e){const t=mo([e,"optionalAccess",n=>n.host]);return mo([t,"optionalAccess",n=>n.shadowRoot])===e}function yo(e){return Object.prototype.toString.call(e)==="[object ShadowRoot]"}function yT(e){return e.includes(" background-clip: text;")&&!e.includes(" -webkit-background-clip: text;")&&(e=e.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;")),e}function vT(e){const{cssText:t}=e;if(t.split('"').length<3)return t;const n=["@import",`url(${JSON.stringify(e.href)})`];return e.layerName===""?n.push("layer"):e.layerName&&n.push(`layer(${e.layerName})`),e.supportsText&&n.push(`supports(${e.supportsText})`),e.media.length&&n.push(e.media.mediaText),n.join(" ")+";"}function pc(e){try{const t=e.rules||e.cssRules;return t?yT(Array.from(t,Xg).join("")):null}catch{return null}}function Xg(e){let t;if(wT(e))try{t=pc(e.styleSheet)||vT(e)}catch{}else if(ET(e)&&e.selectorText.includes(":"))return bT(e.cssText);return t||e.cssText}function bT(e){const t=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;return e.replace(t,"$1\\$2")}function wT(e){return"styleSheet"in e}function ET(e){return"selectorText"in e}class e0{constructor(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}getId(t){if(!t)return-1;const n=mo([this,"access",r=>r.getMeta,"call",r=>r(t),"optionalAccess",r=>r.id]);return dd(n,()=>-1)}getNode(t){return this.idNodeMap.get(t)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(t){return this.nodeMetaMap.get(t)||null}removeNodeFromMap(t){const n=this.getId(t);this.idNodeMap.delete(n),t.childNodes&&t.childNodes.forEach(r=>this.removeNodeFromMap(r))}has(t){return this.idNodeMap.has(t)}hasNode(t){return this.nodeMetaMap.has(t)}add(t,n){const r=n.id;this.idNodeMap.set(r,t),this.nodeMetaMap.set(t,n)}replace(t,n){const r=this.getNode(t);if(r){const i=this.nodeMetaMap.get(r);i&&this.nodeMetaMap.set(n,i)}this.idNodeMap.set(t,n)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function ST(){return new e0}function mc({maskInputOptions:e,tagName:t,type:n}){return t==="OPTION"&&(t="SELECT"),!!(e[t.toLowerCase()]||n&&e[n]||n==="password"||t==="INPUT"&&!n&&e.text)}function vo({isMasked:e,element:t,value:n,maskInputFn:r}){let i=n||"";return e?(r&&(i=r(i,t)),"*".repeat(i.length)):i}function hs(e){return e.toLowerCase()}function fd(e){return e.toUpperCase()}const t0="__rrweb_original__";function xT(e){const t=e.getContext("2d");if(!t)return!0;const n=50;for(let r=0;r<e.width;r+=n)for(let i=0;i<e.height;i+=n){const s=t.getImageData,o=t0 in s?s[t0]:s;if(new Uint32Array(o.call(t,r,i,Math.min(n,e.width-r),Math.min(n,e.height-i)).data.buffer).some(u=>u!==0))return!1}return!0}function hd(e){const t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?hs(t):null}function gc(e,t,n){return t==="INPUT"&&(n==="radio"||n==="checkbox")?e.getAttribute("value")||"":e.value}function n0(e,t){let n;try{n=new URL(e,dd(t,()=>window.location.href))}catch{return null}const r=/\.([0-9a-z]+)(?:$)/i,i=n.pathname.match(r);return dd(mo([i,"optionalAccess",s=>s[1]]),()=>null)}const r0={};function i0(e){const t=r0[e];if(t)return t;const n=window.document;let r=window[e];if(n&&typeof n.createElement=="function")try{const i=n.createElement("iframe");i.hidden=!0,n.head.appendChild(i);const s=i.contentWindow;s&&s[e]&&(r=s[e]),n.head.removeChild(i)}catch{}return r0[e]=r.bind(window)}function pd(...e){return i0("setTimeout")(...e)}function s0(...e){return i0("clearTimeout")(...e)}let CT=1;const _T=new RegExp("[^a-z0-9-_:]"),bo=-2;function md(){return CT++}function AT(e){if(e instanceof HTMLFormElement)return"form";const t=hs(e.tagName);return _T.test(t)?"div":t}function TT(e){let t="";return e.indexOf("//")>-1?t=e.split("/").slice(0,3).join("/"):t=e.split("/")[0],t=t.split("?")[0],t}let ps,o0;const IT=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,kT=/^(?:[a-z+]+:)?\/\//i,OT=/^www\..*/i,RT=/^(data:)([^,]*),(.*)/i;function yc(e,t){return(e||"").replace(IT,(n,r,i,s,o,c)=>{const u=i||o||c,d=r||s||"";if(!u)return n;if(kT.test(u)||OT.test(u))return`url(${d}${u}${d})`;if(RT.test(u))return`url(${d}${u}${d})`;if(u[0]==="/")return`url(${d}${TT(t)+u}${d})`;const f=t.split("/"),p=u.split("/");f.pop();for(const l of p)l!=="."&&(l===".."?f.pop():f.push(l));return`url(${d}${f.join("/")}${d})`})}const NT=/^[^ \t\n\r\u000c]+/,MT=/^[, \t\n\r\u000c]+/;function DT(e,t){if(t.trim()==="")return t;let n=0;function r(s){let o;const c=s.exec(t.substring(n));return c?(o=c[0],n+=o.length,o):""}const i=[];for(;r(MT),!(n>=t.length);){let s=r(NT);if(s.slice(-1)===",")s=ms(e,s.substring(0,s.length-1)),i.push(s);else{let o="";s=ms(e,s);let c=!1;for(;;){const u=t.charAt(n);if(u===""){i.push((s+o).trim());break}else if(c)u===")"&&(c=!1);else if(u===","){n+=1,i.push((s+o).trim());break}else u==="("&&(c=!0);o+=u,n+=1}}}return i.join(", ")}const a0=new WeakMap;function ms(e,t){return!t||t.trim()===""?t:vc(e,t)}function PT(e){return!!(e.tagName==="svg"||e.ownerSVGElement)}function vc(e,t){let n=a0.get(e);if(n||(n=e.createElement("a"),a0.set(e,n)),!t)t="";else if(t.startsWith("blob:")||t.startsWith("data:"))return t;return n.setAttribute("href",t),n.href}function c0(e,t,n,r,i,s){return r&&(n==="src"||n==="href"&&!(t==="use"&&r[0]==="#")||n==="xlink:href"&&r[0]!=="#"||n==="background"&&(t==="table"||t==="td"||t==="th")?ms(e,r):n==="srcset"?DT(e,r):n==="style"?yc(r,vc(e)):t==="object"&&n==="data"?ms(e,r):typeof s=="function"?s(n,r,i):r)}function u0(e,t,n){return(e==="video"||e==="audio")&&t==="autoplay"}function jT(e,t,n,r){try{if(r&&e.matches(r))return!1;if(typeof t=="string"){if(e.classList.contains(t))return!0}else for(let i=e.classList.length;i--;){const s=e.classList[i];if(t.test(s))return!0}if(n)return e.matches(n)}catch{}return!1}function LT(e,t){for(let n=e.classList.length;n--;){const r=e.classList[n];if(t.test(r))return!0}return!1}function Di(e,t,n=1/0,r=0){return!e||e.nodeType!==e.ELEMENT_NODE||r>n?-1:t(e)?r:Di(e.parentNode,t,n,r+1)}function gs(e,t){return n=>{const r=n;if(r===null)return!1;try{if(e){if(typeof e=="string"){if(r.matches(`.${e}`))return!0}else if(LT(r,e))return!0}return!!(t&&r.matches(t))}catch{return!1}}}function ys(e,t,n,r,i,s){try{const o=e.nodeType===e.ELEMENT_NODE?e:e.parentElement;if(o===null)return!1;if(o.tagName==="INPUT"){const d=o.getAttribute("autocomplete");if(["current-password","new-password","cc-number","cc-exp","cc-exp-month","cc-exp-year","cc-csc"].includes(d))return!0}let c=-1,u=-1;if(s){if(u=Di(o,gs(r,i)),u<0)return!0;c=Di(o,gs(t,n),u>=0?u:1/0)}else{if(c=Di(o,gs(t,n)),c<0)return!1;u=Di(o,gs(r,i),c>=0?c:1/0)}return c>=0?u>=0?c<=u:!0:u>=0?!1:!!s}catch{}return!!s}function BT(e,t,n){const r=e.contentWindow;if(!r)return;let i=!1,s;try{s=r.document.readyState}catch{return}if(s!=="complete"){const c=pd(()=>{i||(t(),i=!0)},n);e.addEventListener("load",()=>{s0(c),i=!0,t()});return}const o="about:blank";if(r.location.href!==o||e.src===o||e.src==="")return pd(t,0),e.addEventListener("load",t);e.addEventListener("load",t)}function FT(e,t,n){let r=!1,i;try{i=e.sheet}catch{return}if(i)return;const s=pd(()=>{r||(t(),r=!0)},n);e.addEventListener("load",()=>{s0(s),r=!0,t()})}function UT(e,t){const{doc:n,mirror:r,blockClass:i,blockSelector:s,unblockSelector:o,maskAllText:c,maskAttributeFn:u,maskTextClass:d,unmaskTextClass:f,maskTextSelector:p,unmaskTextSelector:l,inlineStylesheet:v,maskInputOptions:a={},maskTextFn:h,maskInputFn:y,dataURLOptions:g={},inlineImages:b,recordCanvas:w,keepIframeSrcFn:E,newlyAddedElement:S=!1}=t,A=VT(n,r);switch(e.nodeType){case e.DOCUMENT_NODE:return e.compatMode!=="CSS1Compat"?{type:Kt.Document,childNodes:[],compatMode:e.compatMode}:{type:Kt.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:Kt.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:A};case e.ELEMENT_NODE:return $T(e,{doc:n,blockClass:i,blockSelector:s,unblockSelector:o,inlineStylesheet:v,maskAttributeFn:u,maskInputOptions:a,maskInputFn:y,dataURLOptions:g,inlineImages:b,recordCanvas:w,keepIframeSrcFn:E,newlyAddedElement:S,rootId:A,maskAllText:c,maskTextClass:d,unmaskTextClass:f,maskTextSelector:p,unmaskTextSelector:l});case e.TEXT_NODE:return qT(e,{doc:n,maskAllText:c,maskTextClass:d,unmaskTextClass:f,maskTextSelector:p,unmaskTextSelector:l,maskTextFn:h,maskInputOptions:a,maskInputFn:y,rootId:A});case e.CDATA_SECTION_NODE:return{type:Kt.CDATA,textContent:"",rootId:A};case e.COMMENT_NODE:return{type:Kt.Comment,textContent:e.textContent||"",rootId:A};default:return!1}}function VT(e,t){if(!t.hasNode(e))return;const n=t.getId(e);return n===1?void 0:n}function qT(e,t){const{maskAllText:n,maskTextClass:r,unmaskTextClass:i,maskTextSelector:s,unmaskTextSelector:o,maskTextFn:c,maskInputOptions:u,maskInputFn:d,rootId:f}=t,p=e.parentNode&&e.parentNode.tagName;let l=e.textContent;const v=p==="STYLE"?!0:void 0,a=p==="SCRIPT"?!0:void 0,h=p==="TEXTAREA"?!0:void 0;if(v&&l){try{e.nextSibling||e.previousSibling||mo([e,"access",g=>g.parentNode,"access",g=>g.sheet,"optionalAccess",g=>g.cssRules])&&(l=pc(e.parentNode.sheet))}catch(g){console.warn(`Cannot get CSS styles from text's parentNode. Error: ${g}`,e)}l=yc(l,vc(t.doc))}a&&(l="SCRIPT_PLACEHOLDER");const y=ys(e,r,s,i,o,n);if(!v&&!a&&!h&&l&&y&&(l=c?c(l,e.parentElement):l.replace(/[\S]/g,"*")),h&&l&&(u.textarea||y)&&(l=d?d(l,e.parentNode):l.replace(/[\S]/g,"*")),p==="OPTION"&&l){const g=mc({type:null,tagName:p,maskInputOptions:u});l=vo({isMasked:ys(e,r,s,i,o,g),element:e,value:l,maskInputFn:d})}return{type:Kt.Text,textContent:l||"",isStyle:v,rootId:f}}function $T(e,t){const{doc:n,blockClass:r,blockSelector:i,unblockSelector:s,inlineStylesheet:o,maskInputOptions:c={},maskAttributeFn:u,maskInputFn:d,dataURLOptions:f={},inlineImages:p,recordCanvas:l,keepIframeSrcFn:v,newlyAddedElement:a=!1,rootId:h,maskAllText:y,maskTextClass:g,unmaskTextClass:b,maskTextSelector:w,unmaskTextSelector:E}=t,S=jT(e,r,i,s),A=AT(e);let T={};const O=e.attributes.length;for(let D=0;D<O;D++){const F=e.attributes[D];F.name&&!u0(A,F.name,F.value)&&(T[F.name]=c0(n,A,hs(F.name),F.value,e,u))}if(A==="link"&&o){const D=Array.from(n.styleSheets).find(V=>V.href===e.href);let F=null;D&&(F=pc(D)),F&&(delete T.rel,delete T.href,T._cssText=yc(F,D.href))}if(A==="style"&&e.sheet&&!(e.innerText||e.textContent||"").trim().length){const D=pc(e.sheet);D&&(T._cssText=yc(D,vc(n)))}if(A==="input"||A==="textarea"||A==="select"||A==="option"){const D=e,F=hd(D),V=gc(D,fd(A),F),G=D.checked;if(F!=="submit"&&F!=="button"&&V){const U=ys(D,g,w,b,E,mc({type:F,tagName:fd(A),maskInputOptions:c}));T.value=vo({isMasked:U,element:D,value:V,maskInputFn:d})}G&&(T.checked=G)}if(A==="option"&&(e.selected&&!c.select?T.selected=!0:delete T.selected),A==="canvas"&&l){if(e.__context==="2d")xT(e)||(T.rr_dataURL=e.toDataURL(f.type,f.quality));else if(!("__context"in e)){const D=e.toDataURL(f.type,f.quality),F=n.createElement("canvas");F.width=e.width,F.height=e.height;const V=F.toDataURL(f.type,f.quality);D!==V&&(T.rr_dataURL=D)}}if(A==="img"&&p){ps||(ps=n.createElement("canvas"),o0=ps.getContext("2d"));const D=e,F=D.currentSrc||D.getAttribute("src")||"<unknown-src>",V=D.crossOrigin,G=()=>{D.removeEventListener("load",G);try{ps.width=D.naturalWidth,ps.height=D.naturalHeight,o0.drawImage(D,0,0),T.rr_dataURL=ps.toDataURL(f.type,f.quality)}catch(U){if(D.crossOrigin!=="anonymous"){D.crossOrigin="anonymous",D.complete&&D.naturalWidth!==0?G():D.addEventListener("load",G);return}else console.warn(`Cannot inline img src=${F}! Error: ${U}`)}D.crossOrigin==="anonymous"&&(V?T.crossOrigin=V:D.removeAttribute("crossorigin"))};D.complete&&D.naturalWidth!==0?G():D.addEventListener("load",G)}if((A==="audio"||A==="video")&&(T.rr_mediaState=e.paused?"paused":"played",T.rr_mediaCurrentTime=e.currentTime),a||(e.scrollLeft&&(T.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(T.rr_scrollTop=e.scrollTop)),S){const{width:D,height:F}=e.getBoundingClientRect();T={class:T.class,rr_width:`${D}px`,rr_height:`${F}px`}}A==="iframe"&&!v(T.src)&&(!S&&!e.contentDocument&&(T.rr_src=T.src),delete T.src);let M;try{customElements.get(A)&&(M=!0)}catch{}return{type:Kt.Element,tagName:A,attributes:T,childNodes:[],isSVG:PT(e)||void 0,needBlock:S,rootId:h,isCustom:M}}function wt(e){return e==null?"":e.toLowerCase()}function GT(e,t){if(t.comment&&e.type===Kt.Comment)return!0;if(e.type===Kt.Element){if(t.script&&(e.tagName==="script"||e.tagName==="link"&&(e.attributes.rel==="preload"||e.attributes.rel==="modulepreload")&&e.attributes.as==="script"||e.tagName==="link"&&e.attributes.rel==="prefetch"&&typeof e.attributes.href=="string"&&n0(e.attributes.href)==="js"))return!0;if(t.headFavicon&&(e.tagName==="link"&&e.attributes.rel==="shortcut icon"||e.tagName==="meta"&&(wt(e.attributes.name).match(/^msapplication-tile(image|color)$/)||wt(e.attributes.name)==="application-name"||wt(e.attributes.rel)==="icon"||wt(e.attributes.rel)==="apple-touch-icon"||wt(e.attributes.rel)==="shortcut icon")))return!0;if(e.tagName==="meta"){if(t.headMetaDescKeywords&&wt(e.attributes.name).match(/^description|keywords$/))return!0;if(t.headMetaSocial&&(wt(e.attributes.property).match(/^(og|twitter|fb):/)||wt(e.attributes.name).match(/^(og|twitter):/)||wt(e.attributes.name)==="pinterest"))return!0;if(t.headMetaRobots&&(wt(e.attributes.name)==="robots"||wt(e.attributes.name)==="googlebot"||wt(e.attributes.name)==="bingbot"))return!0;if(t.headMetaHttpEquiv&&e.attributes["http-equiv"]!==void 0)return!0;if(t.headMetaAuthorship&&(wt(e.attributes.name)==="author"||wt(e.attributes.name)==="generator"||wt(e.attributes.name)==="framework"||wt(e.attributes.name)==="publisher"||wt(e.attributes.name)==="progid"||wt(e.attributes.property).match(/^article:/)||wt(e.attributes.property).match(/^product:/)))return!0;if(t.headMetaVerification&&(wt(e.attributes.name)==="google-site-verification"||wt(e.attributes.name)==="yandex-verification"||wt(e.attributes.name)==="csrf-token"||wt(e.attributes.name)==="p:domain_verify"||wt(e.attributes.name)==="verify-v1"||wt(e.attributes.name)==="verification"||wt(e.attributes.name)==="shopify-checkout-api-token"))return!0}}return!1}function vs(e,t){const{doc:n,mirror:r,blockClass:i,blockSelector:s,unblockSelector:o,maskAllText:c,maskTextClass:u,unmaskTextClass:d,maskTextSelector:f,unmaskTextSelector:p,skipChild:l=!1,inlineStylesheet:v=!0,maskInputOptions:a={},maskAttributeFn:h,maskTextFn:y,maskInputFn:g,slimDOMOptions:b,dataURLOptions:w={},inlineImages:E=!1,recordCanvas:S=!1,onSerialize:A,onIframeLoad:T,iframeLoadTimeout:O=5e3,onStylesheetLoad:M,stylesheetLoadTimeout:D=5e3,keepIframeSrcFn:F=()=>!1,newlyAddedElement:V=!1}=t;let{preserveWhiteSpace:G=!0}=t;const U=UT(e,{doc:n,mirror:r,blockClass:i,blockSelector:s,maskAllText:c,unblockSelector:o,maskTextClass:u,unmaskTextClass:d,maskTextSelector:f,unmaskTextSelector:p,inlineStylesheet:v,maskInputOptions:a,maskAttributeFn:h,maskTextFn:y,maskInputFn:g,dataURLOptions:w,inlineImages:E,recordCanvas:S,keepIframeSrcFn:F,newlyAddedElement:V});if(!U)return console.warn(e,"not serialized"),null;let R;r.hasNode(e)?R=r.getId(e):GT(U,b)||!G&&U.type===Kt.Text&&!U.isStyle&&!U.textContent.replace(/^\s+|\s+$/gm,"").length?R=bo:R=md();const L=Object.assign(U,{id:R});if(r.add(e,L),R===bo)return null;A&&A(e);let Y=!l;if(L.type===Kt.Element){Y=Y&&!L.needBlock,delete L.needBlock;const z=e.shadowRoot;z&&yo(z)&&(L.isShadowHost=!0)}if((L.type===Kt.Document||L.type===Kt.Element)&&Y){b.headWhitespace&&L.type===Kt.Element&&L.tagName==="head"&&(G=!1);const z={doc:n,mirror:r,blockClass:i,blockSelector:s,maskAllText:c,unblockSelector:o,maskTextClass:u,unmaskTextClass:d,maskTextSelector:f,unmaskTextSelector:p,skipChild:l,inlineStylesheet:v,maskInputOptions:a,maskAttributeFn:h,maskTextFn:y,maskInputFn:g,slimDOMOptions:b,dataURLOptions:w,inlineImages:E,recordCanvas:S,preserveWhiteSpace:G,onSerialize:A,onIframeLoad:T,iframeLoadTimeout:O,onStylesheetLoad:M,stylesheetLoadTimeout:D,keepIframeSrcFn:F};for(const ee of Array.from(e.childNodes)){const te=vs(ee,z);te&&L.childNodes.push(te)}if(gT(e)&&e.shadowRoot)for(const ee of Array.from(e.shadowRoot.childNodes)){const te=vs(ee,z);te&&(yo(e.shadowRoot)&&(te.isShadow=!0),L.childNodes.push(te))}}return e.parentNode&&go(e.parentNode)&&yo(e.parentNode)&&(L.isShadow=!0),L.type===Kt.Element&&L.tagName==="iframe"&&BT(e,()=>{const z=e.contentDocument;if(z&&T){const ee=vs(z,{doc:z,mirror:r,blockClass:i,blockSelector:s,unblockSelector:o,maskAllText:c,maskTextClass:u,unmaskTextClass:d,maskTextSelector:f,unmaskTextSelector:p,skipChild:!1,inlineStylesheet:v,maskInputOptions:a,maskAttributeFn:h,maskTextFn:y,maskInputFn:g,slimDOMOptions:b,dataURLOptions:w,inlineImages:E,recordCanvas:S,preserveWhiteSpace:G,onSerialize:A,onIframeLoad:T,iframeLoadTimeout:O,onStylesheetLoad:M,stylesheetLoadTimeout:D,keepIframeSrcFn:F});ee&&T(e,ee)}},O),L.type===Kt.Element&&L.tagName==="link"&&typeof L.attributes.rel=="string"&&(L.attributes.rel==="stylesheet"||L.attributes.rel==="preload"&&typeof L.attributes.href=="string"&&n0(L.attributes.href)==="css")&&FT(e,()=>{if(M){const z=vs(e,{doc:n,mirror:r,blockClass:i,blockSelector:s,unblockSelector:o,maskAllText:c,maskTextClass:u,unmaskTextClass:d,maskTextSelector:f,unmaskTextSelector:p,skipChild:!1,inlineStylesheet:v,maskInputOptions:a,maskAttributeFn:h,maskTextFn:y,maskInputFn:g,slimDOMOptions:b,dataURLOptions:w,inlineImages:E,recordCanvas:S,preserveWhiteSpace:G,onSerialize:A,onIframeLoad:T,iframeLoadTimeout:O,onStylesheetLoad:M,stylesheetLoadTimeout:D,keepIframeSrcFn:F});z&&M(e,z)}},D),L}function HT(e,t){const{mirror:n=new e0,blockClass:r="rr-block",blockSelector:i=null,unblockSelector:s=null,maskAllText:o=!1,maskTextClass:c="rr-mask",unmaskTextClass:u=null,maskTextSelector:d=null,unmaskTextSelector:f=null,inlineStylesheet:p=!0,inlineImages:l=!1,recordCanvas:v=!1,maskAllInputs:a=!1,maskAttributeFn:h,maskTextFn:y,maskInputFn:g,slimDOM:b=!1,dataURLOptions:w,preserveWhiteSpace:E,onSerialize:S,onIframeLoad:A,iframeLoadTimeout:T,onStylesheetLoad:O,stylesheetLoadTimeout:M,keepIframeSrcFn:D=()=>!1}=t||{};return vs(e,{doc:e,mirror:n,blockClass:r,blockSelector:i,unblockSelector:s,maskAllText:o,maskTextClass:c,unmaskTextClass:u,maskTextSelector:d,unmaskTextSelector:f,skipChild:!1,inlineStylesheet:p,maskInputOptions:a===!0?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0}:a===!1?{}:a,maskAttributeFn:h,maskTextFn:y,maskInputFn:g,slimDOMOptions:b===!0||b==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:b==="all",headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:b===!1?{}:b,dataURLOptions:w,inlineImages:l,recordCanvas:v,preserveWhiteSpace:E,onSerialize:S,onIframeLoad:A,iframeLoadTimeout:T,onStylesheetLoad:O,stylesheetLoadTimeout:M,keepIframeSrcFn:D,newlyAddedElement:!1})}function ii(e){let t,n=e[0],r=1;for(;r<e.length;){const i=e[r],s=e[r+1];if(r+=2,(i==="optionalAccess"||i==="optionalCall")&&n==null)return;i==="access"||i==="optionalAccess"?(t=n,n=s(n)):(i==="call"||i==="optionalCall")&&(n=s((...o)=>n.call(t,...o)),t=void 0)}return n}function wn(e,t,n=document){const r={capture:!0,passive:!0};return n.addEventListener(e,t,r),()=>n.removeEventListener(e,t,r)}const bs=`Please stop import mirror directly. Instead of that,\r
76
76
  now you can use replayer.getMirror() to access the mirror instance of a replayer,\r
77
- or you can use record.mirror to access the mirror instance during recording.`;let l0={map:{},getId(){return console.error(bs),-1},getNode(){return console.error(bs),null},removeNodeFromMap(){console.error(bs)},has(){return console.error(bs),!1},reset(){console.error(bs)}};typeof window<"u"&&window.Proxy&&window.Reflect&&(l0=new Proxy(l0,{get(e,t,n){return t==="map"&&console.error(bs),Reflect.get(e,t,n)}}));function wo(e,t,n={}){let r=null,i=0;return function(...s){const o=Date.now();!i&&n.leading===!1&&(i=o);const c=t-(o-i),u=this;c<=0||c>t?(r&&(ZT(r),r=null),i=o,e.apply(u,s)):!r&&n.trailing!==!1&&(r=wc(()=>{i=n.leading===!1?0:Date.now(),r=null,e.apply(u,s)},c))}}function d0(e,t,n,r,i=window){const s=i.Object.getOwnPropertyDescriptor(e,t);return i.Object.defineProperty(e,t,r?n:{set(o){wc(()=>{n.set.call(this,o)},0),s&&s.set&&s.set.call(this,o)}}),()=>d0(e,t,s||{},!0)}function gd(e,t,n){try{if(!(t in e))return()=>{};const r=e[t],i=n(r);return typeof i=="function"&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__rrweb_original__:{enumerable:!1,value:r}})),e[t]=i,()=>{e[t]=r}}catch{return()=>{}}}let bc=Date.now;/[1-9][0-9]{12}/.test(Date.now().toString())||(bc=()=>new Date().getTime());function f0(e){const t=e.document;return{left:t.scrollingElement?t.scrollingElement.scrollLeft:e.pageXOffset!==void 0?e.pageXOffset:ii([t,"optionalAccess",n=>n.documentElement,"access",n=>n.scrollLeft])||ii([t,"optionalAccess",n=>n.body,"optionalAccess",n=>n.parentElement,"optionalAccess",n=>n.scrollLeft])||ii([t,"optionalAccess",n=>n.body,"optionalAccess",n=>n.scrollLeft])||0,top:t.scrollingElement?t.scrollingElement.scrollTop:e.pageYOffset!==void 0?e.pageYOffset:ii([t,"optionalAccess",n=>n.documentElement,"access",n=>n.scrollTop])||ii([t,"optionalAccess",n=>n.body,"optionalAccess",n=>n.parentElement,"optionalAccess",n=>n.scrollTop])||ii([t,"optionalAccess",n=>n.body,"optionalAccess",n=>n.scrollTop])||0}}function h0(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function p0(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function m0(e){return e?e.nodeType===e.ELEMENT_NODE?e:e.parentElement:null}function Bn(e,t,n,r,i){if(!e)return!1;const s=m0(e);if(!s)return!1;const o=gs(t,n);if(!i){const d=r&&s.matches(r);return o(s)&&!d}const c=Di(s,o);let u=-1;return c<0?!1:(r&&(u=Di(s,gs(null,r))),c>-1&&u<0?!0:c<u)}function YT(e,t){return t.getId(e)!==-1}function yd(e,t){return t.getId(e)===bo}function g0(e,t){if(go(e))return!1;const n=t.getId(e);return t.has(n)?e.parentNode&&e.parentNode.nodeType===e.DOCUMENT_NODE?!1:e.parentNode?g0(e.parentNode,t):!0:!0}function vd(e){return!!e.changedTouches}function WT(e=window){"NodeList"in e&&!e.NodeList.prototype.forEach&&(e.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in e&&!e.DOMTokenList.prototype.forEach&&(e.DOMTokenList.prototype.forEach=Array.prototype.forEach),Node.prototype.contains||(Node.prototype.contains=(...t)=>{let n=t[0];if(!(0 in t))throw new TypeError("1 argument is required");do if(this===n)return!0;while(n=n&&n.parentNode);return!1})}function y0(e,t){return!!(e.nodeName==="IFRAME"&&t.getMeta(e))}function v0(e,t){return!!(e.nodeName==="LINK"&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&e.getAttribute("rel")==="stylesheet"&&t.getMeta(e))}function bd(e){return!!ii([e,"optionalAccess",t=>t.shadowRoot])}class KT{constructor(){this.id=1,this.styleIDMap=new WeakMap,this.idStyleMap=new Map}getId(t){return Xx(this.styleIDMap.get(t),()=>-1)}has(t){return this.styleIDMap.has(t)}add(t,n){if(this.has(t))return this.getId(t);let r;return n===void 0?r=this.id++:r=n,this.styleIDMap.set(t,r),this.idStyleMap.set(r,t),r}getStyle(t){return this.idStyleMap.get(t)||null}reset(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1}generateId(){return this.id++}}function b0(e){let t=null;return ii([e,"access",n=>n.getRootNode,"optionalCall",n=>n(),"optionalAccess",n=>n.nodeType])===Node.DOCUMENT_FRAGMENT_NODE&&e.getRootNode().host&&(t=e.getRootNode().host),t}function zT(e){let t=e,n;for(;n=b0(t);)t=n;return t}function QT(e){const t=e.ownerDocument;if(!t)return!1;const n=zT(e);return t.contains(n)}function w0(e){const t=e.ownerDocument;return t?t.contains(e)||QT(e):!1}const E0={};function wd(e){const t=E0[e];if(t)return t;const n=window.document;let r=window[e];if(n&&typeof n.createElement=="function")try{const i=n.createElement("iframe");i.hidden=!0,n.head.appendChild(i);const s=i.contentWindow;s&&s[e]&&(r=s[e]),n.head.removeChild(i)}catch{}return E0[e]=r.bind(window)}function JT(...e){return wd("requestAnimationFrame")(...e)}function wc(...e){return wd("setTimeout")(...e)}function ZT(...e){return wd("clearTimeout")(...e)}var Ze=(e=>(e[e.DomContentLoaded=0]="DomContentLoaded",e[e.Load=1]="Load",e[e.FullSnapshot=2]="FullSnapshot",e[e.IncrementalSnapshot=3]="IncrementalSnapshot",e[e.Meta=4]="Meta",e[e.Custom=5]="Custom",e[e.Plugin=6]="Plugin",e))(Ze||{}),Ue=(e=>(e[e.Mutation=0]="Mutation",e[e.MouseMove=1]="MouseMove",e[e.MouseInteraction=2]="MouseInteraction",e[e.Scroll=3]="Scroll",e[e.ViewportResize=4]="ViewportResize",e[e.Input=5]="Input",e[e.TouchMove=6]="TouchMove",e[e.MediaInteraction=7]="MediaInteraction",e[e.StyleSheetRule=8]="StyleSheetRule",e[e.CanvasMutation=9]="CanvasMutation",e[e.Font=10]="Font",e[e.Log=11]="Log",e[e.Drag=12]="Drag",e[e.StyleDeclaration=13]="StyleDeclaration",e[e.Selection=14]="Selection",e[e.AdoptedStyleSheet=15]="AdoptedStyleSheet",e[e.CustomElement=16]="CustomElement",e))(Ue||{}),bn=(e=>(e[e.MouseUp=0]="MouseUp",e[e.MouseDown=1]="MouseDown",e[e.Click=2]="Click",e[e.ContextMenu=3]="ContextMenu",e[e.DblClick=4]="DblClick",e[e.Focus=5]="Focus",e[e.Blur=6]="Blur",e[e.TouchStart=7]="TouchStart",e[e.TouchMove_Departed=8]="TouchMove_Departed",e[e.TouchEnd=9]="TouchEnd",e[e.TouchCancel=10]="TouchCancel",e))(bn||{}),Rr=(e=>(e[e.Mouse=0]="Mouse",e[e.Pen=1]="Pen",e[e.Touch=2]="Touch",e))(Rr||{});function XT(e){let t,n=e[0],r=1;for(;r<e.length;){const i=e[r],s=e[r+1];if(r+=2,(i==="optionalAccess"||i==="optionalCall")&&n==null)return;i==="access"||i==="optionalAccess"?(t=n,n=s(n)):(i==="call"||i==="optionalCall")&&(n=s((...o)=>n.call(t,...o)),t=void 0)}return n}function S0(e){return"__ln"in e}class e4{constructor(){this.length=0,this.head=null,this.tail=null}get(t){if(t>=this.length)throw new Error("Position outside of list range");let n=this.head;for(let r=0;r<t;r++)n=XT([n,"optionalAccess",i=>i.next])||null;return n}addNode(t){const n={value:t,previous:null,next:null};if(t.__ln=n,t.previousSibling&&S0(t.previousSibling)){const r=t.previousSibling.__ln.next;n.next=r,n.previous=t.previousSibling.__ln,t.previousSibling.__ln.next=n,r&&(r.previous=n)}else if(t.nextSibling&&S0(t.nextSibling)&&t.nextSibling.__ln.previous){const r=t.nextSibling.__ln.previous;n.previous=r,n.next=t.nextSibling.__ln,t.nextSibling.__ln.previous=n,r&&(r.next=n)}else this.head&&(this.head.previous=n),n.next=this.head,this.head=n;n.next===null&&(this.tail=n),this.length++}removeNode(t){const n=t.__ln;this.head&&(n.previous?(n.previous.next=n.next,n.next?n.next.previous=n.previous:this.tail=n.previous):(this.head=n.next,this.head?this.head.previous=null:this.tail=null),t.__ln&&delete t.__ln,this.length--)}}const x0=(e,t)=>`${e}@${t}`;class t4{constructor(){this.frozen=!1,this.locked=!1,this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.mapRemoves=[],this.movedMap={},this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.processMutations=t=>{t.forEach(this.processMutation),this.emit()},this.emit=()=>{if(this.frozen||this.locked)return;const t=[],n=new Set,r=new e4,i=u=>{let d=u,f=bo;for(;f===bo;)d=d&&d.nextSibling,f=d&&this.mirror.getId(d);return f},s=u=>{if(!u.parentNode||!w0(u))return;const d=go(u.parentNode)?this.mirror.getId(b0(u)):this.mirror.getId(u.parentNode),f=i(u);if(d===-1||f===-1)return r.addNode(u);const p=vs(u,{doc:this.doc,mirror:this.mirror,blockClass:this.blockClass,blockSelector:this.blockSelector,maskAllText:this.maskAllText,unblockSelector:this.unblockSelector,maskTextClass:this.maskTextClass,unmaskTextClass:this.unmaskTextClass,maskTextSelector:this.maskTextSelector,unmaskTextSelector:this.unmaskTextSelector,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:this.inlineStylesheet,maskInputOptions:this.maskInputOptions,maskAttributeFn:this.maskAttributeFn,maskTextFn:this.maskTextFn,maskInputFn:this.maskInputFn,slimDOMOptions:this.slimDOMOptions,dataURLOptions:this.dataURLOptions,recordCanvas:this.recordCanvas,inlineImages:this.inlineImages,onSerialize:l=>{y0(l,this.mirror)&&!Bn(l,this.blockClass,this.blockSelector,this.unblockSelector,!1)&&this.iframeManager.addIframe(l),v0(l,this.mirror)&&this.stylesheetManager.trackLinkElement(l),bd(u)&&this.shadowDomManager.addShadowRoot(u.shadowRoot,this.doc)},onIframeLoad:(l,v)=>{Bn(l,this.blockClass,this.blockSelector,this.unblockSelector,!1)||(this.iframeManager.attachIframe(l,v),l.contentWindow&&this.canvasManager.addWindow(l.contentWindow),this.shadowDomManager.observeAttachShadow(l))},onStylesheetLoad:(l,v)=>{this.stylesheetManager.attachLinkElement(l,v)}});p&&(t.push({parentId:d,nextId:f,node:p}),n.add(p.id))};for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(const u of this.movedSet)C0(this.removes,u,this.mirror)&&!this.movedSet.has(u.parentNode)||s(u);for(const u of this.addedSet)!_0(this.droppedSet,u)&&!C0(this.removes,u,this.mirror)||_0(this.movedSet,u)?s(u):this.droppedSet.add(u);let o=null;for(;r.length;){let u=null;if(o){const d=this.mirror.getId(o.value.parentNode),f=i(o.value);d!==-1&&f!==-1&&(u=o)}if(!u){let d=r.tail;for(;d;){const f=d;if(d=d.previous,f){const p=this.mirror.getId(f.value.parentNode);if(i(f.value)===-1)continue;if(p!==-1){u=f;break}else{const v=f.value;if(v.parentNode&&v.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE){const a=v.parentNode.host;if(this.mirror.getId(a)!==-1){u=f;break}}}}}}if(!u){for(;r.head;)r.removeNode(r.head.value);break}o=u.previous,r.removeNode(u.value),s(u.value)}const c={texts:this.texts.map(u=>({id:this.mirror.getId(u.node),value:u.value})).filter(u=>!n.has(u.id)).filter(u=>this.mirror.has(u.id)),attributes:this.attributes.map(u=>{const{attributes:d}=u;if(typeof d.style=="string"){const f=JSON.stringify(u.styleDiff),p=JSON.stringify(u._unchangedStyles);f.length<d.style.length&&(f+p).split("var(").length===d.style.split("var(").length&&(d.style=u.styleDiff)}return{id:this.mirror.getId(u.node),attributes:d}}).filter(u=>!n.has(u.id)).filter(u=>this.mirror.has(u.id)),removes:this.removes,adds:t};!c.texts.length&&!c.attributes.length&&!c.removes.length&&!c.adds.length||(this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.movedMap={},this.mutationCb(c))},this.processMutation=t=>{if(!yd(t.target,this.mirror))switch(t.type){case"characterData":{const n=t.target.textContent;!Bn(t.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)&&n!==t.oldValue&&this.texts.push({value:ys(t.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,this.maskAllText)&&n?this.maskTextFn?this.maskTextFn(n,m0(t.target)):n.replace(/[\S]/g,"*"):n,node:t.target});break}case"attributes":{const n=t.target;let r=t.attributeName,i=t.target.getAttribute(r);if(r==="value"){const o=hd(n),c=n.tagName;i=gc(n,c,o);const u=mc({maskInputOptions:this.maskInputOptions,tagName:c,type:o}),d=ys(t.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,u);i=vo({isMasked:d,element:n,value:i,maskInputFn:this.maskInputFn})}if(Bn(t.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||i===t.oldValue)return;let s=this.attributeMap.get(t.target);if(n.tagName==="IFRAME"&&r==="src"&&!this.keepIframeSrcFn(i))if(!n.contentDocument)r="rr_src";else return;if(s||(s={node:t.target,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(s),this.attributeMap.set(t.target,s)),r==="type"&&n.tagName==="INPUT"&&(t.oldValue||"").toLowerCase()==="password"&&n.setAttribute("data-rr-is-password","true"),!u0(n.tagName,r)&&(s.attributes[r]=c0(this.doc,hs(n.tagName),hs(r),i,n,this.maskAttributeFn),r==="style")){if(!this.unattachedDoc)try{this.unattachedDoc=document.implementation.createHTMLDocument()}catch{this.unattachedDoc=this.doc}const o=this.unattachedDoc.createElement("span");t.oldValue&&o.setAttribute("style",t.oldValue);for(const c of Array.from(n.style)){const u=n.style.getPropertyValue(c),d=n.style.getPropertyPriority(c);u!==o.style.getPropertyValue(c)||d!==o.style.getPropertyPriority(c)?d===""?s.styleDiff[c]=u:s.styleDiff[c]=[u,d]:s._unchangedStyles[c]=[u,d]}for(const c of Array.from(o.style))n.style.getPropertyValue(c)===""&&(s.styleDiff[c]=!1)}break}case"childList":{if(Bn(t.target,this.blockClass,this.blockSelector,this.unblockSelector,!0))return;t.addedNodes.forEach(n=>this.genAdds(n,t.target)),t.removedNodes.forEach(n=>{const r=this.mirror.getId(n),i=go(t.target)?this.mirror.getId(t.target.host):this.mirror.getId(t.target);Bn(t.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||yd(n,this.mirror)||!YT(n,this.mirror)||(this.addedSet.has(n)?(Ed(this.addedSet,n),this.droppedSet.add(n)):this.addedSet.has(t.target)&&r===-1||g0(t.target,this.mirror)||(this.movedSet.has(n)&&this.movedMap[x0(r,i)]?Ed(this.movedSet,n):this.removes.push({parentId:i,id:r,isShadow:go(t.target)&&yo(t.target)?!0:void 0})),this.mapRemoves.push(n))});break}}},this.genAdds=(t,n)=>{if(!this.processedNodeManager.inOtherBuffer(t,this)&&!(this.addedSet.has(t)||this.movedSet.has(t))){if(this.mirror.hasNode(t)){if(yd(t,this.mirror))return;this.movedSet.add(t);let r=null;n&&this.mirror.hasNode(n)&&(r=this.mirror.getId(n)),r&&r!==-1&&(this.movedMap[x0(this.mirror.getId(t),r)]=!0)}else this.addedSet.add(t),this.droppedSet.delete(t);Bn(t,this.blockClass,this.blockSelector,this.unblockSelector,!1)||(t.childNodes.forEach(r=>this.genAdds(r)),bd(t)&&t.shadowRoot.childNodes.forEach(r=>{this.processedNodeManager.add(r,this),this.genAdds(r,t)}))}}}init(t){["mutationCb","blockClass","blockSelector","unblockSelector","maskAllText","maskTextClass","unmaskTextClass","maskTextSelector","unmaskTextSelector","inlineStylesheet","maskInputOptions","maskAttributeFn","maskTextFn","maskInputFn","keepIframeSrcFn","recordCanvas","inlineImages","slimDOMOptions","dataURLOptions","doc","mirror","iframeManager","stylesheetManager","shadowDomManager","canvasManager","processedNodeManager"].forEach(n=>{this[n]=t[n]})}freeze(){this.frozen=!0,this.canvasManager.freeze()}unfreeze(){this.frozen=!1,this.canvasManager.unfreeze(),this.emit()}isFrozen(){return this.frozen}lock(){this.locked=!0,this.canvasManager.lock()}unlock(){this.locked=!1,this.canvasManager.unlock(),this.emit()}reset(){this.shadowDomManager.reset(),this.canvasManager.reset()}}function Ed(e,t){e.delete(t),t.childNodes.forEach(n=>Ed(e,n))}function C0(e,t,n){return e.length===0?!1:n4(e,t,n)}function n4(e,t,n){let r=t.parentNode;for(;r;){const i=n.getId(r);if(e.some(s=>s.id===i))return!0;r=r.parentNode}return!1}function _0(e,t){return e.size===0?!1:A0(e,t)}function A0(e,t){const{parentNode:n}=t;return n?e.has(n)?!0:A0(e,n):!1}let Eo;function r4(e){Eo=e}function i4(){Eo=void 0}const st=e=>Eo?(...n)=>{try{return e(...n)}catch(r){if(Eo&&Eo(r)===!0)return()=>{};throw r}}:e;function ir(e){let t,n=e[0],r=1;for(;r<e.length;){const i=e[r],s=e[r+1];if(r+=2,(i==="optionalAccess"||i==="optionalCall")&&n==null)return;i==="access"||i==="optionalAccess"?(t=n,n=s(n)):(i==="call"||i==="optionalCall")&&(n=s((...o)=>n.call(t,...o)),t=void 0)}return n}const ws=[];function So(e){try{if("composedPath"in e){const t=e.composedPath();if(t.length)return t[0]}else if("path"in e&&e.path.length)return e.path[0]}catch{}return e&&e.target}function T0(e,t){const n=new t4;ws.push(n),n.init(e);let r=window.MutationObserver||window.__rrMutationObserver;const i=ir([window,"optionalAccess",o=>o.Zone,"optionalAccess",o=>o.__symbol__,"optionalCall",o=>o("MutationObserver")]);i&&window[i]&&(r=window[i]);const s=new r(st(o=>{e.onMutation&&e.onMutation(o)===!1||n.processMutations.bind(n)(o)}));return s.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),s}function s4({mousemoveCb:e,sampling:t,doc:n,mirror:r}){if(t.mousemove===!1)return()=>{};const i=typeof t.mousemove=="number"?t.mousemove:50,s=typeof t.mousemoveCallback=="number"?t.mousemoveCallback:500;let o=[],c;const u=wo(st(p=>{const l=Date.now()-c;e(o.map(v=>(v.timeOffset-=l,v)),p),o=[],c=null}),s),d=st(wo(st(p=>{const l=So(p),{clientX:v,clientY:a}=vd(p)?p.changedTouches[0]:p;c||(c=bc()),o.push({x:v,y:a,id:r.getId(l),timeOffset:bc()-c}),u(typeof DragEvent<"u"&&p instanceof DragEvent?Ue.Drag:p instanceof MouseEvent?Ue.MouseMove:Ue.TouchMove)}),i,{trailing:!1})),f=[vn("mousemove",d,n),vn("touchmove",d,n),vn("drag",d,n)];return st(()=>{f.forEach(p=>p())})}function o4({mouseInteractionCb:e,doc:t,mirror:n,blockClass:r,blockSelector:i,unblockSelector:s,sampling:o}){if(o.mouseInteraction===!1)return()=>{};const c=o.mouseInteraction===!0||o.mouseInteraction===void 0?{}:o.mouseInteraction,u=[];let d=null;const f=p=>l=>{const v=So(l);if(Bn(v,r,i,s,!0))return;let a=null,h=p;if("pointerType"in l){switch(l.pointerType){case"mouse":a=Rr.Mouse;break;case"touch":a=Rr.Touch;break;case"pen":a=Rr.Pen;break}a===Rr.Touch?bn[p]===bn.MouseDown?h="TouchStart":bn[p]===bn.MouseUp&&(h="TouchEnd"):Rr.Pen}else vd(l)&&(a=Rr.Touch);a!==null?(d=a,(h.startsWith("Touch")&&a===Rr.Touch||h.startsWith("Mouse")&&a===Rr.Mouse)&&(a=null)):bn[p]===bn.Click&&(a=d,d=null);const y=vd(l)?l.changedTouches[0]:l;if(!y)return;const g=n.getId(v),{clientX:b,clientY:w}=y;st(e)({type:bn[h],id:g,x:b,y:w,...a!==null&&{pointerType:a}})};return Object.keys(bn).filter(p=>Number.isNaN(Number(p))&&!p.endsWith("_Departed")&&c[p]!==!1).forEach(p=>{let l=hs(p);const v=f(p);if(window.PointerEvent)switch(bn[p]){case bn.MouseDown:case bn.MouseUp:l=l.replace("mouse","pointer");break;case bn.TouchStart:case bn.TouchEnd:return}u.push(vn(l,v,t))}),st(()=>{u.forEach(p=>p())})}function I0({scrollCb:e,doc:t,mirror:n,blockClass:r,blockSelector:i,unblockSelector:s,sampling:o}){const c=st(wo(st(u=>{const d=So(u);if(!d||Bn(d,r,i,s,!0))return;const f=n.getId(d);if(d===t&&t.defaultView){const p=f0(t.defaultView);e({id:f,x:p.left,y:p.top})}else e({id:f,x:d.scrollLeft,y:d.scrollTop})}),o.scroll||100));return vn("scroll",c,t)}function a4({viewportResizeCb:e},{win:t}){let n=-1,r=-1;const i=st(wo(st(()=>{const s=h0(),o=p0();(n!==s||r!==o)&&(e({width:Number(o),height:Number(s)}),n=s,r=o)}),200));return vn("resize",i,t)}const c4=["INPUT","TEXTAREA","SELECT"],k0=new WeakMap;function u4({inputCb:e,doc:t,mirror:n,blockClass:r,blockSelector:i,unblockSelector:s,ignoreClass:o,ignoreSelector:c,maskInputOptions:u,maskInputFn:d,sampling:f,userTriggeredOnInput:p,maskTextClass:l,unmaskTextClass:v,maskTextSelector:a,unmaskTextSelector:h}){function y(T){let O=So(T);const M=T.isTrusted,D=O&&fd(O.tagName);if(D==="OPTION"&&(O=O.parentElement),!O||!D||c4.indexOf(D)<0||Bn(O,r,i,s,!0))return;const F=O;if(F.classList.contains(o)||c&&F.matches(c))return;const V=hd(O);let G=gc(F,D,V),U=!1;const N=mc({maskInputOptions:u,tagName:D,type:V}),L=ys(O,l,a,v,h,N);(V==="radio"||V==="checkbox")&&(U=O.checked),G=vo({isMasked:L,element:O,value:G,maskInputFn:d}),g(O,p?{text:G,isChecked:U,userTriggered:M}:{text:G,isChecked:U});const Y=O.name;V==="radio"&&Y&&U&&t.querySelectorAll(`input[type="radio"][name="${Y}"]`).forEach(z=>{if(z!==O){const ee=vo({isMasked:L,element:z,value:gc(z,D,V),maskInputFn:d});g(z,p?{text:ee,isChecked:!U,userTriggered:!1}:{text:ee,isChecked:!U})}})}function g(T,O){const M=k0.get(T);if(!M||M.text!==O.text||M.isChecked!==O.isChecked){k0.set(T,O);const D=n.getId(T);st(e)({...O,id:D})}}const w=(f.input==="last"?["change"]:["input","change"]).map(T=>vn(T,st(y),t)),E=t.defaultView;if(!E)return()=>{w.forEach(T=>T())};const S=E.Object.getOwnPropertyDescriptor(E.HTMLInputElement.prototype,"value"),A=[[E.HTMLInputElement.prototype,"value"],[E.HTMLInputElement.prototype,"checked"],[E.HTMLSelectElement.prototype,"value"],[E.HTMLTextAreaElement.prototype,"value"],[E.HTMLSelectElement.prototype,"selectedIndex"],[E.HTMLOptionElement.prototype,"selected"]];return S&&S.set&&w.push(...A.map(T=>d0(T[0],T[1],{set(){st(y)({target:this,isTrusted:!1})}},!1,E))),st(()=>{w.forEach(T=>T())})}function Ec(e){const t=[];function n(r,i){if(Sc("CSSGroupingRule")&&r.parentRule instanceof CSSGroupingRule||Sc("CSSMediaRule")&&r.parentRule instanceof CSSMediaRule||Sc("CSSSupportsRule")&&r.parentRule instanceof CSSSupportsRule||Sc("CSSConditionRule")&&r.parentRule instanceof CSSConditionRule){const o=Array.from(r.parentRule.cssRules).indexOf(r);i.unshift(o)}else if(r.parentStyleSheet){const o=Array.from(r.parentStyleSheet.cssRules).indexOf(r);i.unshift(o)}return i}return n(e,t)}function si(e,t,n){let r,i;return e?(e.ownerNode?r=t.getId(e.ownerNode):i=n.getId(e),{styleId:i,id:r}):{}}function l4({styleSheetRuleCb:e,mirror:t,stylesheetManager:n},{win:r}){if(!r.CSSStyleSheet||!r.CSSStyleSheet.prototype)return()=>{};const i=r.CSSStyleSheet.prototype.insertRule;r.CSSStyleSheet.prototype.insertRule=new Proxy(i,{apply:st((f,p,l)=>{const[v,a]=l,{id:h,styleId:y}=si(p,t,n.styleMirror);return(h&&h!==-1||y&&y!==-1)&&e({id:h,styleId:y,adds:[{rule:v,index:a}]}),f.apply(p,l)})});const s=r.CSSStyleSheet.prototype.deleteRule;r.CSSStyleSheet.prototype.deleteRule=new Proxy(s,{apply:st((f,p,l)=>{const[v]=l,{id:a,styleId:h}=si(p,t,n.styleMirror);return(a&&a!==-1||h&&h!==-1)&&e({id:a,styleId:h,removes:[{index:v}]}),f.apply(p,l)})});let o;r.CSSStyleSheet.prototype.replace&&(o=r.CSSStyleSheet.prototype.replace,r.CSSStyleSheet.prototype.replace=new Proxy(o,{apply:st((f,p,l)=>{const[v]=l,{id:a,styleId:h}=si(p,t,n.styleMirror);return(a&&a!==-1||h&&h!==-1)&&e({id:a,styleId:h,replace:v}),f.apply(p,l)})}));let c;r.CSSStyleSheet.prototype.replaceSync&&(c=r.CSSStyleSheet.prototype.replaceSync,r.CSSStyleSheet.prototype.replaceSync=new Proxy(c,{apply:st((f,p,l)=>{const[v]=l,{id:a,styleId:h}=si(p,t,n.styleMirror);return(a&&a!==-1||h&&h!==-1)&&e({id:a,styleId:h,replaceSync:v}),f.apply(p,l)})}));const u={};xc("CSSGroupingRule")?u.CSSGroupingRule=r.CSSGroupingRule:(xc("CSSMediaRule")&&(u.CSSMediaRule=r.CSSMediaRule),xc("CSSConditionRule")&&(u.CSSConditionRule=r.CSSConditionRule),xc("CSSSupportsRule")&&(u.CSSSupportsRule=r.CSSSupportsRule));const d={};return Object.entries(u).forEach(([f,p])=>{d[f]={insertRule:p.prototype.insertRule,deleteRule:p.prototype.deleteRule},p.prototype.insertRule=new Proxy(d[f].insertRule,{apply:st((l,v,a)=>{const[h,y]=a,{id:g,styleId:b}=si(v.parentStyleSheet,t,n.styleMirror);return(g&&g!==-1||b&&b!==-1)&&e({id:g,styleId:b,adds:[{rule:h,index:[...Ec(v),y||0]}]}),l.apply(v,a)})}),p.prototype.deleteRule=new Proxy(d[f].deleteRule,{apply:st((l,v,a)=>{const[h]=a,{id:y,styleId:g}=si(v.parentStyleSheet,t,n.styleMirror);return(y&&y!==-1||g&&g!==-1)&&e({id:y,styleId:g,removes:[{index:[...Ec(v),h]}]}),l.apply(v,a)})})}),st(()=>{r.CSSStyleSheet.prototype.insertRule=i,r.CSSStyleSheet.prototype.deleteRule=s,o&&(r.CSSStyleSheet.prototype.replace=o),c&&(r.CSSStyleSheet.prototype.replaceSync=c),Object.entries(u).forEach(([f,p])=>{p.prototype.insertRule=d[f].insertRule,p.prototype.deleteRule=d[f].deleteRule})})}function O0({mirror:e,stylesheetManager:t},n){let r=null;n.nodeName==="#document"?r=e.getId(n):r=e.getId(n.host);const i=n.nodeName==="#document"?ir([n,"access",o=>o.defaultView,"optionalAccess",o=>o.Document]):ir([n,"access",o=>o.ownerDocument,"optionalAccess",o=>o.defaultView,"optionalAccess",o=>o.ShadowRoot]),s=ir([i,"optionalAccess",o=>o.prototype])?Object.getOwnPropertyDescriptor(ir([i,"optionalAccess",o=>o.prototype]),"adoptedStyleSheets"):void 0;return r===null||r===-1||!i||!s?()=>{}:(Object.defineProperty(n,"adoptedStyleSheets",{configurable:s.configurable,enumerable:s.enumerable,get(){return ir([s,"access",o=>o.get,"optionalAccess",o=>o.call,"call",o=>o(this)])},set(o){const c=ir([s,"access",u=>u.set,"optionalAccess",u=>u.call,"call",u=>u(this,o)]);if(r!==null&&r!==-1)try{t.adoptStyleSheets(o,r)}catch{}return c}}),st(()=>{Object.defineProperty(n,"adoptedStyleSheets",{configurable:s.configurable,enumerable:s.enumerable,get:s.get,set:s.set})}))}function d4({styleDeclarationCb:e,mirror:t,ignoreCSSAttributes:n,stylesheetManager:r},{win:i}){const s=i.CSSStyleDeclaration.prototype.setProperty;i.CSSStyleDeclaration.prototype.setProperty=new Proxy(s,{apply:st((c,u,d)=>{const[f,p,l]=d;if(n.has(f))return s.apply(u,[f,p,l]);const{id:v,styleId:a}=si(ir([u,"access",h=>h.parentRule,"optionalAccess",h=>h.parentStyleSheet]),t,r.styleMirror);return(v&&v!==-1||a&&a!==-1)&&e({id:v,styleId:a,set:{property:f,value:p,priority:l},index:Ec(u.parentRule)}),c.apply(u,d)})});const o=i.CSSStyleDeclaration.prototype.removeProperty;return i.CSSStyleDeclaration.prototype.removeProperty=new Proxy(o,{apply:st((c,u,d)=>{const[f]=d;if(n.has(f))return o.apply(u,[f]);const{id:p,styleId:l}=si(ir([u,"access",v=>v.parentRule,"optionalAccess",v=>v.parentStyleSheet]),t,r.styleMirror);return(p&&p!==-1||l&&l!==-1)&&e({id:p,styleId:l,remove:{property:f},index:Ec(u.parentRule)}),c.apply(u,d)})}),st(()=>{i.CSSStyleDeclaration.prototype.setProperty=s,i.CSSStyleDeclaration.prototype.removeProperty=o})}function f4({mediaInteractionCb:e,blockClass:t,blockSelector:n,unblockSelector:r,mirror:i,sampling:s,doc:o}){const c=st(d=>wo(st(f=>{const p=So(f);if(!p||Bn(p,t,n,r,!0))return;const{currentTime:l,volume:v,muted:a,playbackRate:h}=p;e({type:d,id:i.getId(p),currentTime:l,volume:v,muted:a,playbackRate:h})}),s.media||500)),u=[vn("play",c(0),o),vn("pause",c(1),o),vn("seeked",c(2),o),vn("volumechange",c(3),o),vn("ratechange",c(4),o)];return st(()=>{u.forEach(d=>d())})}function h4({fontCb:e,doc:t}){const n=t.defaultView;if(!n)return()=>{};const r=[],i=new WeakMap,s=n.FontFace;n.FontFace=function(u,d,f){const p=new s(u,d,f);return i.set(p,{family:u,buffer:typeof d!="string",descriptors:f,fontSource:typeof d=="string"?d:JSON.stringify(Array.from(new Uint8Array(d)))}),p};const o=gd(t.fonts,"add",function(c){return function(u){return wc(st(()=>{const d=i.get(u);d&&(e(d),i.delete(u))}),0),c.apply(this,[u])}});return r.push(()=>{n.FontFace=s}),r.push(o),st(()=>{r.forEach(c=>c())})}function p4(e){const{doc:t,mirror:n,blockClass:r,blockSelector:i,unblockSelector:s,selectionCb:o}=e;let c=!0;const u=st(()=>{const d=t.getSelection();if(!d||c&&ir([d,"optionalAccess",l=>l.isCollapsed]))return;c=d.isCollapsed||!1;const f=[],p=d.rangeCount||0;for(let l=0;l<p;l++){const v=d.getRangeAt(l),{startContainer:a,startOffset:h,endContainer:y,endOffset:g}=v;Bn(a,r,i,s,!0)||Bn(y,r,i,s,!0)||f.push({start:n.getId(a),startOffset:h,end:n.getId(y),endOffset:g})}o({ranges:f})});return u(),vn("selectionchange",u)}function m4({doc:e,customElementCb:t}){const n=e.defaultView;return!n||!n.customElements?()=>{}:gd(n.customElements,"define",function(i){return function(s,o,c){try{t({define:{name:s}})}catch{}return i.apply(this,[s,o,c])}})}function g4(e,t={}){const n=e.doc.defaultView;if(!n)return()=>{};let r;e.recordDOM&&(r=T0(e,e.doc));const i=s4(e),s=o4(e),o=I0(e),c=a4(e,{win:n}),u=u4(e),d=f4(e);let f=()=>{},p=()=>{},l=()=>{},v=()=>{};e.recordDOM&&(f=l4(e,{win:n}),p=O0(e,e.doc),l=d4(e,{win:n}),e.collectFonts&&(v=h4(e)));const a=p4(e),h=m4(e),y=[];for(const g of e.plugins)y.push(g.observer(g.callback,n,g.options));return st(()=>{ws.forEach(g=>g.reset()),ir([r,"optionalAccess",g=>g.disconnect,"call",g=>g()]),i(),s(),o(),c(),u(),d(),f(),p(),l(),v(),a(),h(),y.forEach(g=>g())})}function Sc(e){return typeof window[e]<"u"}function xc(e){return!!(typeof window[e]<"u"&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}class Sd{constructor(t){this.generateIdFn=t,this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap}getId(t,n,r,i){const s=r||this.getIdToRemoteIdMap(t),o=i||this.getRemoteIdToIdMap(t);let c=s.get(n);return c||(c=this.generateIdFn(),s.set(n,c),o.set(c,n)),c}getIds(t,n){const r=this.getIdToRemoteIdMap(t),i=this.getRemoteIdToIdMap(t);return n.map(s=>this.getId(t,s,r,i))}getRemoteId(t,n,r){const i=r||this.getRemoteIdToIdMap(t);if(typeof n!="number")return n;const s=i.get(n);return s||-1}getRemoteIds(t,n){const r=this.getRemoteIdToIdMap(t);return n.map(i=>this.getRemoteId(t,i,r))}reset(t){if(!t){this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap;return}this.iframeIdToRemoteIdMap.delete(t),this.iframeRemoteIdToIdMap.delete(t)}getIdToRemoteIdMap(t){let n=this.iframeIdToRemoteIdMap.get(t);return n||(n=new Map,this.iframeIdToRemoteIdMap.set(t,n)),n}getRemoteIdToIdMap(t){let n=this.iframeRemoteIdToIdMap.get(t);return n||(n=new Map,this.iframeRemoteIdToIdMap.set(t,n)),n}}function N0(e){let t,n=e[0],r=1;for(;r<e.length;){const i=e[r],s=e[r+1];if(r+=2,(i==="optionalAccess"||i==="optionalCall")&&n==null)return;i==="access"||i==="optionalAccess"?(t=n,n=s(n)):(i==="call"||i==="optionalCall")&&(n=s((...o)=>n.call(t,...o)),t=void 0)}return n}class y4{constructor(){this.crossOriginIframeMirror=new Sd(md),this.crossOriginIframeRootIdMap=new WeakMap}addIframe(){}addLoadListener(){}attachIframe(){}}class v4{constructor(t){this.iframes=new WeakMap,this.crossOriginIframeMap=new WeakMap,this.crossOriginIframeMirror=new Sd(md),this.crossOriginIframeRootIdMap=new WeakMap,this.mutationCb=t.mutationCb,this.wrappedEmit=t.wrappedEmit,this.stylesheetManager=t.stylesheetManager,this.recordCrossOriginIframes=t.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new Sd(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=t.mirror,this.recordCrossOriginIframes&&window.addEventListener("message",this.handleMessage.bind(this))}addIframe(t){this.iframes.set(t,!0),t.contentWindow&&this.crossOriginIframeMap.set(t.contentWindow,t)}addLoadListener(t){this.loadListener=t}attachIframe(t,n){this.mutationCb({adds:[{parentId:this.mirror.getId(t),nextId:null,node:n}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),N0([this,"access",r=>r.loadListener,"optionalCall",r=>r(t)]),t.contentDocument&&t.contentDocument.adoptedStyleSheets&&t.contentDocument.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(t.contentDocument.adoptedStyleSheets,this.mirror.getId(t.contentDocument))}handleMessage(t){const n=t;if(n.data.type!=="rrweb"||n.origin!==n.data.origin||!t.source)return;const i=this.crossOriginIframeMap.get(t.source);if(!i)return;const s=this.transformCrossOriginEvent(i,n.data.event);s&&this.wrappedEmit(s,n.data.isCheckout)}transformCrossOriginEvent(t,n){switch(n.type){case Ze.FullSnapshot:{this.crossOriginIframeMirror.reset(t),this.crossOriginIframeStyleMirror.reset(t),this.replaceIdOnNode(n.data.node,t);const r=n.data.node.id;return this.crossOriginIframeRootIdMap.set(t,r),this.patchRootIdOnNode(n.data.node,r),{timestamp:n.timestamp,type:Ze.IncrementalSnapshot,data:{source:Ue.Mutation,adds:[{parentId:this.mirror.getId(t),nextId:null,node:n.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case Ze.Meta:case Ze.Load:case Ze.DomContentLoaded:return!1;case Ze.Plugin:return n;case Ze.Custom:return this.replaceIds(n.data.payload,t,["id","parentId","previousId","nextId"]),n;case Ze.IncrementalSnapshot:switch(n.data.source){case Ue.Mutation:return n.data.adds.forEach(r=>{this.replaceIds(r,t,["parentId","nextId","previousId"]),this.replaceIdOnNode(r.node,t);const i=this.crossOriginIframeRootIdMap.get(t);i&&this.patchRootIdOnNode(r.node,i)}),n.data.removes.forEach(r=>{this.replaceIds(r,t,["parentId","id"])}),n.data.attributes.forEach(r=>{this.replaceIds(r,t,["id"])}),n.data.texts.forEach(r=>{this.replaceIds(r,t,["id"])}),n;case Ue.Drag:case Ue.TouchMove:case Ue.MouseMove:return n.data.positions.forEach(r=>{this.replaceIds(r,t,["id"])}),n;case Ue.ViewportResize:return!1;case Ue.MediaInteraction:case Ue.MouseInteraction:case Ue.Scroll:case Ue.CanvasMutation:case Ue.Input:return this.replaceIds(n.data,t,["id"]),n;case Ue.StyleSheetRule:case Ue.StyleDeclaration:return this.replaceIds(n.data,t,["id"]),this.replaceStyleIds(n.data,t,["styleId"]),n;case Ue.Font:return n;case Ue.Selection:return n.data.ranges.forEach(r=>{this.replaceIds(r,t,["start","end"])}),n;case Ue.AdoptedStyleSheet:return this.replaceIds(n.data,t,["id"]),this.replaceStyleIds(n.data,t,["styleIds"]),N0([n,"access",r=>r.data,"access",r=>r.styles,"optionalAccess",r=>r.forEach,"call",r=>r(i=>{this.replaceStyleIds(i,t,["styleId"])})]),n}}return!1}replace(t,n,r,i){for(const s of i)!Array.isArray(n[s])&&typeof n[s]!="number"||(Array.isArray(n[s])?n[s]=t.getIds(r,n[s]):n[s]=t.getId(r,n[s]));return n}replaceIds(t,n,r){return this.replace(this.crossOriginIframeMirror,t,n,r)}replaceStyleIds(t,n,r){return this.replace(this.crossOriginIframeStyleMirror,t,n,r)}replaceIdOnNode(t,n){this.replaceIds(t,n,["id","rootId"]),"childNodes"in t&&t.childNodes.forEach(r=>{this.replaceIdOnNode(r,n)})}patchRootIdOnNode(t,n){t.type!==Wt.Document&&!t.rootId&&(t.rootId=n),"childNodes"in t&&t.childNodes.forEach(r=>{this.patchRootIdOnNode(r,n)})}}class b4{init(){}addShadowRoot(){}observeAttachShadow(){}reset(){}}class w4{constructor(t){this.shadowDoms=new WeakSet,this.restoreHandlers=[],this.mutationCb=t.mutationCb,this.scrollCb=t.scrollCb,this.bypassOptions=t.bypassOptions,this.mirror=t.mirror,this.init()}init(){this.reset(),this.patchAttachShadow(Element,document)}addShadowRoot(t,n){if(!yo(t)||this.shadowDoms.has(t))return;this.shadowDoms.add(t),this.bypassOptions.canvasManager.addShadowRoot(t);const r=T0({...this.bypassOptions,doc:n,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this},t);this.restoreHandlers.push(()=>r.disconnect()),this.restoreHandlers.push(I0({...this.bypassOptions,scrollCb:this.scrollCb,doc:t,mirror:this.mirror})),wc(()=>{t.adoptedStyleSheets&&t.adoptedStyleSheets.length>0&&this.bypassOptions.stylesheetManager.adoptStyleSheets(t.adoptedStyleSheets,this.mirror.getId(t.host)),this.restoreHandlers.push(O0({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},t))},0)}observeAttachShadow(t){!t.contentWindow||!t.contentDocument||this.patchAttachShadow(t.contentWindow.Element,t.contentDocument)}patchAttachShadow(t,n){const r=this;this.restoreHandlers.push(gd(t.prototype,"attachShadow",function(i){return function(s){const o=i.call(this,s);return this.shadowRoot&&w0(this)&&r.addShadowRoot(this.shadowRoot,n),o}}))}reset(){this.restoreHandlers.forEach(t=>{try{t()}catch{}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet,this.bypassOptions.canvasManager.resetShadowRoots()}}class R0{reset(){}freeze(){}unfreeze(){}lock(){}unlock(){}snapshot(){}addWindow(){}addShadowRoot(){}resetShadowRoots(){}}class E4{constructor(t){this.trackedLinkElements=new WeakSet,this.styleMirror=new KT,this.mutationCb=t.mutationCb,this.adoptedStyleSheetCb=t.adoptedStyleSheetCb}attachLinkElement(t,n){"_cssText"in n.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:n.id,attributes:n.attributes}]}),this.trackLinkElement(t)}trackLinkElement(t){this.trackedLinkElements.has(t)||(this.trackedLinkElements.add(t),this.trackStylesheetInLinkElement(t))}adoptStyleSheets(t,n){if(t.length===0)return;const r={id:n,styleIds:[]},i=[];for(const s of t){let o;this.styleMirror.has(s)?o=this.styleMirror.getId(s):(o=this.styleMirror.add(s),i.push({styleId:o,rules:Array.from(s.rules||CSSRule,(c,u)=>({rule:Xg(c),index:u}))})),r.styleIds.push(o)}i.length>0&&(r.styles=i),this.adoptedStyleSheetCb(r)}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}trackStylesheetInLinkElement(t){}}class S4{constructor(){this.nodeMap=new WeakMap,this.active=!1}inOtherBuffer(t,n){const r=this.nodeMap.get(t);return r&&Array.from(r).some(i=>i!==n)}add(t,n){this.active||(this.active=!0,JT(()=>{this.nodeMap=new WeakMap,this.active=!1})),this.nodeMap.set(t,(this.nodeMap.get(t)||new Set).add(n))}destroy(){}}let Nt,Cc;try{if(Array.from([1],e=>e*2)[0]!==2){const e=document.createElement("iframe");document.body.appendChild(e),Array.from=Pn([e,"access",t=>t.contentWindow,"optionalAccess",t=>t.Array,"access",t=>t.from])||Array.from,document.body.removeChild(e)}}catch(e){console.debug("Unable to override Array.from",e)}const sr=ST();function Mr(e={}){const{emit:t,checkoutEveryNms:n,checkoutEveryNth:r,blockClass:i="rr-block",blockSelector:s=null,unblockSelector:o=null,ignoreClass:c="rr-ignore",ignoreSelector:u=null,maskAllText:d=!1,maskTextClass:f="rr-mask",unmaskTextClass:p=null,maskTextSelector:l=null,unmaskTextSelector:v=null,inlineStylesheet:a=!0,maskAllInputs:h,maskInputOptions:y,slimDOMOptions:g,maskAttributeFn:b,maskInputFn:w,maskTextFn:E,maxCanvasSize:S=null,packFn:A,sampling:T={},dataURLOptions:O={},mousemoveWait:M,recordDOM:D=!0,recordCanvas:F=!1,recordCrossOriginIframes:V=!1,recordAfter:G=e.recordAfter==="DOMContentLoaded"?e.recordAfter:"load",userTriggeredOnInput:U=!1,collectFonts:N=!1,inlineImages:L=!1,plugins:Y,keepIframeSrcFn:z=()=>!1,ignoreCSSAttributes:ee=new Set([]),errorHandler:te,onMutation:re,getCanvasManager:he}=e;r4(te);const ue=V?window.parent===window:!0;let ye=!1;if(!ue)try{window.parent.document&&(ye=!1)}catch{ye=!0}if(ue&&!t)throw new Error("emit function is required");if(!ue&&!ye)return()=>{};M!==void 0&&T.mousemove===void 0&&(T.mousemove=M),sr.reset();const pe=h===!0?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,radio:!0,checkbox:!0}:y!==void 0?y:{},q=g===!0||g==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:g==="all",headMetaDescKeywords:g==="all"}:g||{};WT();let $,Q=0;const _=ie=>{for(const be of Y||[])be.eventProcessor&&(ie=be.eventProcessor(ie));return A&&!ye&&(ie=A(ie)),ie};Nt=(ie,be)=>{const ae=ie;if(ae.timestamp=bc(),Pn([ws,"access",Ce=>Ce[0],"optionalAccess",Ce=>Ce.isFrozen,"call",Ce=>Ce()])&&ae.type!==Ze.FullSnapshot&&!(ae.type===Ze.IncrementalSnapshot&&ae.data.source===Ue.Mutation)&&ws.forEach(Ce=>Ce.unfreeze()),ue)Pn([t,"optionalCall",Ce=>Ce(_(ae),be)]);else if(ye){const Ce={type:"rrweb",event:_(ae),origin:window.location.origin,isCheckout:be};window.parent.postMessage(Ce,"*")}if(ae.type===Ze.FullSnapshot)$=ae,Q=0;else if(ae.type===Ze.IncrementalSnapshot){if(ae.data.source===Ue.Mutation&&ae.data.isAttachIframe)return;Q++;const Ce=r&&Q>=r,_e=n&&$&&ae.timestamp-$.timestamp>n;(Ce||_e)&&le(!0)}};const j=ie=>{Nt({type:Ze.IncrementalSnapshot,data:{source:Ue.Mutation,...ie}})},B=ie=>Nt({type:Ze.IncrementalSnapshot,data:{source:Ue.Scroll,...ie}}),R=ie=>Nt({type:Ze.IncrementalSnapshot,data:{source:Ue.CanvasMutation,...ie}}),X=ie=>Nt({type:Ze.IncrementalSnapshot,data:{source:Ue.AdoptedStyleSheet,...ie}}),J=new E4({mutationCb:j,adoptedStyleSheetCb:X}),Z=typeof __RRWEB_EXCLUDE_IFRAME__=="boolean"&&__RRWEB_EXCLUDE_IFRAME__?new y4:new v4({mirror:sr,mutationCb:j,stylesheetManager:J,recordCrossOriginIframes:V,wrappedEmit:Nt});for(const ie of Y||[])ie.getMirror&&ie.getMirror({nodeMirror:sr,crossOriginIframeMirror:Z.crossOriginIframeMirror,crossOriginIframeStyleMirror:Z.crossOriginIframeStyleMirror});const W=new S4,fe=C4(he,{mirror:sr,win:window,mutationCb:ie=>Nt({type:Ze.IncrementalSnapshot,data:{source:Ue.CanvasMutation,...ie}}),recordCanvas:F,blockClass:i,blockSelector:s,unblockSelector:o,maxCanvasSize:S,sampling:T.canvas,dataURLOptions:O,errorHandler:te}),ge=typeof __RRWEB_EXCLUDE_SHADOW_DOM__=="boolean"&&__RRWEB_EXCLUDE_SHADOW_DOM__?new b4:new w4({mutationCb:j,scrollCb:B,bypassOptions:{onMutation:re,blockClass:i,blockSelector:s,unblockSelector:o,maskAllText:d,maskTextClass:f,unmaskTextClass:p,maskTextSelector:l,unmaskTextSelector:v,inlineStylesheet:a,maskInputOptions:pe,dataURLOptions:O,maskAttributeFn:b,maskTextFn:E,maskInputFn:w,recordCanvas:F,inlineImages:L,sampling:T,slimDOMOptions:q,iframeManager:Z,stylesheetManager:J,canvasManager:fe,keepIframeSrcFn:z,processedNodeManager:W},mirror:sr}),le=(ie=!1)=>{if(!D)return;Nt({type:Ze.Meta,data:{href:window.location.href,width:p0(),height:h0()}},ie),J.reset(),ge.init(),ws.forEach(ae=>ae.lock());const be=HT(document,{mirror:sr,blockClass:i,blockSelector:s,unblockSelector:o,maskAllText:d,maskTextClass:f,unmaskTextClass:p,maskTextSelector:l,unmaskTextSelector:v,inlineStylesheet:a,maskAllInputs:pe,maskAttributeFn:b,maskInputFn:w,maskTextFn:E,slimDOM:q,dataURLOptions:O,recordCanvas:F,inlineImages:L,onSerialize:ae=>{y0(ae,sr)&&Z.addIframe(ae),v0(ae,sr)&&J.trackLinkElement(ae),bd(ae)&&ge.addShadowRoot(ae.shadowRoot,document)},onIframeLoad:(ae,Ce)=>{Z.attachIframe(ae,Ce),ae.contentWindow&&fe.addWindow(ae.contentWindow),ge.observeAttachShadow(ae)},onStylesheetLoad:(ae,Ce)=>{J.attachLinkElement(ae,Ce)},keepIframeSrcFn:z});if(!be)return console.warn("Failed to snapshot the document");Nt({type:Ze.FullSnapshot,data:{node:be,initialOffset:f0(window)}}),ws.forEach(ae=>ae.unlock()),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&J.adoptStyleSheets(document.adoptedStyleSheets,sr.getId(document))};Cc=le;try{const ie=[],be=Ce=>st(g4)({onMutation:re,mutationCb:j,mousemoveCb:(_e,ze)=>Nt({type:Ze.IncrementalSnapshot,data:{source:ze,positions:_e}}),mouseInteractionCb:_e=>Nt({type:Ze.IncrementalSnapshot,data:{source:Ue.MouseInteraction,..._e}}),scrollCb:B,viewportResizeCb:_e=>Nt({type:Ze.IncrementalSnapshot,data:{source:Ue.ViewportResize,..._e}}),inputCb:_e=>Nt({type:Ze.IncrementalSnapshot,data:{source:Ue.Input,..._e}}),mediaInteractionCb:_e=>Nt({type:Ze.IncrementalSnapshot,data:{source:Ue.MediaInteraction,..._e}}),styleSheetRuleCb:_e=>Nt({type:Ze.IncrementalSnapshot,data:{source:Ue.StyleSheetRule,..._e}}),styleDeclarationCb:_e=>Nt({type:Ze.IncrementalSnapshot,data:{source:Ue.StyleDeclaration,..._e}}),canvasMutationCb:R,fontCb:_e=>Nt({type:Ze.IncrementalSnapshot,data:{source:Ue.Font,..._e}}),selectionCb:_e=>{Nt({type:Ze.IncrementalSnapshot,data:{source:Ue.Selection,..._e}})},customElementCb:_e=>{Nt({type:Ze.IncrementalSnapshot,data:{source:Ue.CustomElement,..._e}})},blockClass:i,ignoreClass:c,ignoreSelector:u,maskAllText:d,maskTextClass:f,unmaskTextClass:p,maskTextSelector:l,unmaskTextSelector:v,maskInputOptions:pe,inlineStylesheet:a,sampling:T,recordDOM:D,recordCanvas:F,inlineImages:L,userTriggeredOnInput:U,collectFonts:N,doc:Ce,maskAttributeFn:b,maskInputFn:w,maskTextFn:E,keepIframeSrcFn:z,blockSelector:s,unblockSelector:o,slimDOMOptions:q,dataURLOptions:O,mirror:sr,iframeManager:Z,stylesheetManager:J,shadowDomManager:ge,processedNodeManager:W,canvasManager:fe,ignoreCSSAttributes:ee,plugins:Pn([Y,"optionalAccess",_e=>_e.filter,"call",_e=>_e(ze=>ze.observer),"optionalAccess",_e=>_e.map,"call",_e=>_e(ze=>({observer:ze.observer,options:ze.options,callback:it=>Nt({type:Ze.Plugin,data:{plugin:ze.name,payload:it}})}))])||[]},{});Z.addLoadListener(Ce=>{try{ie.push(be(Ce.contentDocument))}catch(_e){console.warn(_e)}});const ae=()=>{le(),ie.push(be(document))};return document.readyState==="interactive"||document.readyState==="complete"?ae():(ie.push(vn("DOMContentLoaded",()=>{Nt({type:Ze.DomContentLoaded,data:{}}),G==="DOMContentLoaded"&&ae()})),ie.push(vn("load",()=>{Nt({type:Ze.Load,data:{}}),G==="load"&&ae()},window))),()=>{ie.forEach(Ce=>Ce()),W.destroy(),Cc=void 0,i4()}}catch(ie){console.warn(ie)}}function x4(e){if(!Cc)throw new Error("please take full snapshot after start recording");Cc(e)}Mr.mirror=sr,Mr.takeFullSnapshot=x4;function C4(e,t){try{return e?e(t):new R0}catch{return console.warn("Unable to initialize CanvasManager"),new R0}}const Me=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,M0=["info","warn","error","log"],_c="[Replay] ";function xd(e,t="info"){ri({category:"console",data:{logger:"replay"},level:t,message:`${_c}${e}`},{level:t})}function _4(){let e=!1,t=!1;const n={exception:()=>{},infoTick:()=>{},setConfig:r=>{e=r.captureExceptions,t=r.traceInternals}};return Me?(M0.forEach(r=>{n[r]=(...i)=>{Se[r](_c,...i),t&&xd(i.join(""),mm(r))}}),n.exception=(r,...i)=>{i.length&&n.error&&n.error(...i),Se.error(_c,r),e?tc(r):t&&xd(r,"error")},n.infoTick=(...r)=>{Se.info(_c,...r),t&&setTimeout(()=>xd(r[0]),0)}):M0.forEach(r=>{n[r]=()=>{}}),n}const je=_4(),A4=3,T4=5;function Cd(e){return e>9999999999?e:e*1e3}function _d(e){return e>9999999999?e/1e3:e}function xo(e,t){t.category!=="sentry.transaction"&&(["ui.click","ui.input"].includes(t.category)?e.triggerUserActivity():e.checkAndHandleExpiredSession(),e.addUpdate(()=>(e.throttledAddEvent({type:Ze.Custom,timestamp:(t.timestamp||0)*1e3,data:{tag:"breadcrumb",payload:mr(t,10,1e3)}}),t.category==="console")))}const I4="button,a";function D0(e){return e.closest(I4)||e}function P0(e){const t=j0(e);return!t||!(t instanceof Element)?t:D0(t)}function j0(e){return k4(e)?e.target:e}function k4(e){return typeof e=="object"&&!!e&&"target"in e}let oi;function O4(e){return oi||(oi=[],N4()),oi.push(e),()=>{const t=oi?oi.indexOf(e):-1;t>-1&&oi.splice(t,1)}}function N4(){_n(bt,"open",function(e){return function(...t){if(oi)try{oi.forEach(n=>n())}catch{}return e.apply(bt,t)}})}const R4=new Set([Ue.Mutation,Ue.StyleSheetRule,Ue.StyleDeclaration,Ue.AdoptedStyleSheet,Ue.CanvasMutation,Ue.Selection,Ue.MediaInteraction]);function M4(e,t,n){e.handleClick(t,n)}class D4{constructor(t,n,r=xo){this._lastMutation=0,this._lastScroll=0,this._clicks=[],this._timeout=n.timeout/1e3,this._threshold=n.threshold/1e3,this._scollTimeout=n.scrollTimeout/1e3,this._replay=t,this._ignoreSelector=n.ignoreSelector,this._addBreadcrumbEvent=r}addListeners(){const t=O4(()=>{this._lastMutation=L0()});this._teardown=()=>{t(),this._clicks=[],this._lastMutation=0,this._lastScroll=0}}removeListeners(){this._teardown&&this._teardown(),this._checkClickTimeout&&clearTimeout(this._checkClickTimeout)}handleClick(t,n){if(j4(n,this._ignoreSelector)||!L4(t))return;const r={timestamp:_d(t.timestamp),clickBreadcrumb:t,clickCount:0,node:n};this._clicks.some(i=>i.node===r.node&&Math.abs(i.timestamp-r.timestamp)<1)||(this._clicks.push(r),this._clicks.length===1&&this._scheduleCheckClicks())}registerMutation(t=Date.now()){this._lastMutation=_d(t)}registerScroll(t=Date.now()){this._lastScroll=_d(t)}registerClick(t){const n=D0(t);this._handleMultiClick(n)}_handleMultiClick(t){this._getClicks(t).forEach(n=>{n.clickCount++})}_getClicks(t){return this._clicks.filter(n=>n.node===t)}_checkClicks(){const t=[],n=L0();this._clicks.forEach(r=>{!r.mutationAfter&&this._lastMutation&&(r.mutationAfter=r.timestamp<=this._lastMutation?this._lastMutation-r.timestamp:void 0),!r.scrollAfter&&this._lastScroll&&(r.scrollAfter=r.timestamp<=this._lastScroll?this._lastScroll-r.timestamp:void 0),r.timestamp+this._timeout<=n&&t.push(r)});for(const r of t){const i=this._clicks.indexOf(r);i>-1&&(this._generateBreadcrumbs(r),this._clicks.splice(i,1))}this._clicks.length&&this._scheduleCheckClicks()}_generateBreadcrumbs(t){const n=this._replay,r=t.scrollAfter&&t.scrollAfter<=this._scollTimeout,i=t.mutationAfter&&t.mutationAfter<=this._threshold,s=!r&&!i,{clickCount:o,clickBreadcrumb:c}=t;if(s){const u=Math.min(t.mutationAfter||this._timeout,this._timeout)*1e3,d=u<this._timeout*1e3?"mutation":"timeout",f={type:"default",message:c.message,timestamp:c.timestamp,category:"ui.slowClickDetected",data:{...c.data,url:bt.location.href,route:n.getCurrentRoute(),timeAfterClickMs:u,endReason:d,clickCount:o||1}};this._addBreadcrumbEvent(n,f);return}if(o>1){const u={type:"default",message:c.message,timestamp:c.timestamp,category:"ui.multiClick",data:{...c.data,url:bt.location.href,route:n.getCurrentRoute(),clickCount:o,metric:!0}};this._addBreadcrumbEvent(n,u)}}_scheduleCheckClicks(){this._checkClickTimeout&&clearTimeout(this._checkClickTimeout),this._checkClickTimeout=fs(()=>this._checkClicks(),1e3)}}const P4=["A","BUTTON","INPUT"];function j4(e,t){return!!(!P4.includes(e.tagName)||e.tagName==="INPUT"&&!["submit","button"].includes(e.getAttribute("type")||"")||e.tagName==="A"&&(e.hasAttribute("download")||e.hasAttribute("target")&&e.getAttribute("target")!=="_self")||t&&e.matches(t))}function L4(e){return!!(e.data&&typeof e.data.nodeId=="number"&&e.timestamp)}function L0(){return Date.now()/1e3}function B4(e,t){try{if(!F4(t))return;const{source:n}=t.data;if(R4.has(n)&&e.registerMutation(t.timestamp),n===Ue.Scroll&&e.registerScroll(t.timestamp),U4(t)){const{type:r,id:i}=t.data,s=Mr.mirror.getNode(i);s instanceof HTMLElement&&r===bn.Click&&e.registerClick(s)}}catch{}}function F4(e){return e.type===A4}function U4(e){return e.data.source===Ue.MouseInteraction}function vr(e){return{timestamp:Date.now()/1e3,type:"default",...e}}var Ac;(function(e){e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment"})(Ac||(Ac={}));const V4=new Set(["id","class","aria-label","role","name","alt","title","data-test-id","data-testid","disabled","aria-disabled","data-sentry-component"]);function q4(e){const t={};!e["data-sentry-component"]&&e["data-sentry-element"]&&(e["data-sentry-component"]=e["data-sentry-element"]);for(const n in e)if(V4.has(n)){let r=n;(n==="data-testid"||n==="data-test-id")&&(r="testId"),t[r]=e[n]}return t}const $4=e=>t=>{if(!e.isEnabled())return;const n=G4(t);if(!n)return;const r=t.name==="click",i=r?t.event:void 0;r&&e.clickDetector&&i&&i.target&&!i.altKey&&!i.metaKey&&!i.ctrlKey&&!i.shiftKey&&M4(e.clickDetector,n,P0(t.event)),xo(e,n)};function B0(e,t){const n=Mr.mirror.getId(e),r=n&&Mr.mirror.getNode(n),i=r&&Mr.mirror.getMeta(r),s=i&&Y4(i)?i:null;return{message:t,data:s?{nodeId:n,node:{id:n,tagName:s.tagName,textContent:Array.from(s.childNodes).map(o=>o.type===Ac.Text&&o.textContent).filter(Boolean).map(o=>o.trim()).join(""),attributes:q4(s.attributes)}}:{}}}function G4(e){const{target:t,message:n}=H4(e);return vr({category:`ui.${e.name}`,...B0(t,n)})}function H4(e){const t=e.name==="click";let n,r=null;try{r=t?P0(e.event):j0(e.event),n=Ar(r,{maxStringLength:200})||"<unknown>"}catch{n="<unknown>"}return{target:r,message:n}}function Y4(e){return e.type===Ac.Element}function W4(e,t){if(!e.isEnabled())return;e.updateUserActivity();const n=K4(t);n&&xo(e,n)}function K4(e){const{metaKey:t,shiftKey:n,ctrlKey:r,altKey:i,key:s,target:o}=e;if(!o||z4(o)||!s)return null;const c=t||r||i,u=s.length===1;if(!c&&u)return null;const d=Ar(o,{maxStringLength:200})||"<unknown>",f=B0(o,d);return vr({category:"ui.keyDown",message:d,data:{...f.data,metaKey:t,shiftKey:n,ctrlKey:r,altKey:i,key:s}})}function z4(e){return e.tagName==="INPUT"||e.tagName==="TEXTAREA"||e.isContentEditable}const Q4={resource:tI,paint:X4,navigation:eI};function Tc(e,t){return({metric:n})=>void t.replayPerformanceEntries.push(e(n))}function J4(e){return e.map(Z4).filter(Boolean)}function Z4(e){const t=Q4[e.entryType];return t?t(e):null}function Es(e){return((yn||bt.performance.timeOrigin)+e)/1e3}function X4(e){const{duration:t,entryType:n,name:r,startTime:i}=e,s=Es(i);return{type:n,name:r,start:s,end:s+t,data:void 0}}function eI(e){const{entryType:t,name:n,decodedBodySize:r,duration:i,domComplete:s,encodedBodySize:o,domContentLoadedEventStart:c,domContentLoadedEventEnd:u,domInteractive:d,loadEventStart:f,loadEventEnd:p,redirectCount:l,startTime:v,transferSize:a,type:h}=e;return i===0?null:{type:`${t}.${h}`,start:Es(v),end:Es(s),name:n,data:{size:a,decodedBodySize:r,encodedBodySize:o,duration:i,domInteractive:d,domContentLoadedEventStart:c,domContentLoadedEventEnd:u,loadEventStart:f,loadEventEnd:p,domComplete:s,redirectCount:l}}}function tI(e){const{entryType:t,initiatorType:n,name:r,responseEnd:i,startTime:s,decodedBodySize:o,encodedBodySize:c,responseStatus:u,transferSize:d}=e;return["fetch","xmlhttprequest"].includes(n)?null:{type:`${t}.${n}`,start:Es(s),end:Es(i),name:r,data:{size:d,statusCode:u,decodedBodySize:o,encodedBodySize:c}}}function nI(e){const t=e.entries[e.entries.length-1],n=t&&t.element?[t.element]:void 0;return Ic(e,"largest-contentful-paint",n)}function rI(e){return e.sources!==void 0}function iI(e){const t=[],n=[];for(const r of e.entries)if(rI(r)){const i=[];for(const s of r.sources)if(s.node){n.push(s.node);const o=Mr.mirror.getId(s.node);o&&i.push(o)}t.push({value:r.value,nodeIds:i.length?i:void 0})}return Ic(e,"cumulative-layout-shift",n,t)}function sI(e){const t=e.entries[e.entries.length-1],n=t&&t.target?[t.target]:void 0;return Ic(e,"first-input-delay",n)}function oI(e){const t=e.entries[e.entries.length-1],n=t&&t.target?[t.target]:void 0;return Ic(e,"interaction-to-next-paint",n)}function Ic(e,t,n,r){const i=e.value,s=e.rating,o=Es(i);return{type:"web-vital",name:t,start:o,end:o,data:{value:i,size:i,rating:s,nodeIds:n?n.map(c=>Mr.mirror.getId(c)):void 0,attributions:r}}}function aI(e){function t(i){e.performanceEntries.includes(i)||e.performanceEntries.push(i)}function n({entries:i}){i.forEach(t)}const r=[];return["navigation","paint","resource"].forEach(i=>{r.push(us(i,n))}),r.push(Rg(Tc(nI,e)),ed(Tc(iI,e)),Mg(Tc(sI,e)),Dg(Tc(oI,e))),()=>{r.forEach(i=>i())}}const cI='var t=Uint8Array,n=Uint16Array,r=Int32Array,e=new t([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),i=new t([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),a=new t([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),s=function(t,e){for(var i=new n(31),a=0;a<31;++a)i[a]=e+=1<<t[a-1];var s=new r(i[30]);for(a=1;a<30;++a)for(var o=i[a];o<i[a+1];++o)s[o]=o-i[a]<<5|a;return{b:i,r:s}},o=s(e,2),f=o.b,h=o.r;f[28]=258,h[258]=28;for(var l=s(i,0).r,u=new n(32768),c=0;c<32768;++c){var v=(43690&c)>>1|(21845&c)<<1;v=(61680&(v=(52428&v)>>2|(13107&v)<<2))>>4|(3855&v)<<4,u[c]=((65280&v)>>8|(255&v)<<8)>>1}var d=function(t,r,e){for(var i=t.length,a=0,s=new n(r);a<i;++a)t[a]&&++s[t[a]-1];var o,f=new n(r);for(a=1;a<r;++a)f[a]=f[a-1]+s[a-1]<<1;if(e){o=new n(1<<r);var h=15-r;for(a=0;a<i;++a)if(t[a])for(var l=a<<4|t[a],c=r-t[a],v=f[t[a]-1]++<<c,d=v|(1<<c)-1;v<=d;++v)o[u[v]>>h]=l}else for(o=new n(i),a=0;a<i;++a)t[a]&&(o[a]=u[f[t[a]-1]++]>>15-t[a]);return o},g=new t(288);for(c=0;c<144;++c)g[c]=8;for(c=144;c<256;++c)g[c]=9;for(c=256;c<280;++c)g[c]=7;for(c=280;c<288;++c)g[c]=8;var w=new t(32);for(c=0;c<32;++c)w[c]=5;var p=d(g,9,0),y=d(w,5,0),m=function(t){return(t+7)/8|0},b=function(n,r,e){return(null==r||r<0)&&(r=0),(null==e||e>n.length)&&(e=n.length),new t(n.subarray(r,e))},M=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],E=function(t,n,r){var e=new Error(n||M[t]);if(e.code=t,Error.captureStackTrace&&Error.captureStackTrace(e,E),!r)throw e;return e},z=function(t,n,r){r<<=7&n;var e=n/8|0;t[e]|=r,t[e+1]|=r>>8},A=function(t,n,r){r<<=7&n;var e=n/8|0;t[e]|=r,t[e+1]|=r>>8,t[e+2]|=r>>16},_=function(r,e){for(var i=[],a=0;a<r.length;++a)r[a]&&i.push({s:a,f:r[a]});var s=i.length,o=i.slice();if(!s)return{t:F,l:0};if(1==s){var f=new t(i[0].s+1);return f[i[0].s]=1,{t:f,l:1}}i.sort((function(t,n){return t.f-n.f})),i.push({s:-1,f:25001});var h=i[0],l=i[1],u=0,c=1,v=2;for(i[0]={s:-1,f:h.f+l.f,l:h,r:l};c!=s-1;)h=i[i[u].f<i[v].f?u++:v++],l=i[u!=c&&i[u].f<i[v].f?u++:v++],i[c++]={s:-1,f:h.f+l.f,l:h,r:l};var d=o[0].s;for(a=1;a<s;++a)o[a].s>d&&(d=o[a].s);var g=new n(d+1),w=x(i[c-1],g,0);if(w>e){a=0;var p=0,y=w-e,m=1<<y;for(o.sort((function(t,n){return g[n.s]-g[t.s]||t.f-n.f}));a<s;++a){var b=o[a].s;if(!(g[b]>e))break;p+=m-(1<<w-g[b]),g[b]=e}for(p>>=y;p>0;){var M=o[a].s;g[M]<e?p-=1<<e-g[M]++-1:++a}for(;a>=0&&p;--a){var E=o[a].s;g[E]==e&&(--g[E],++p)}w=e}return{t:new t(g),l:w}},x=function(t,n,r){return-1==t.s?Math.max(x(t.l,n,r+1),x(t.r,n,r+1)):n[t.s]=r},D=function(t){for(var r=t.length;r&&!t[--r];);for(var e=new n(++r),i=0,a=t[0],s=1,o=function(t){e[i++]=t},f=1;f<=r;++f)if(t[f]==a&&f!=r)++s;else{if(!a&&s>2){for(;s>138;s-=138)o(32754);s>2&&(o(s>10?s-11<<5|28690:s-3<<5|12305),s=0)}else if(s>3){for(o(a),--s;s>6;s-=6)o(8304);s>2&&(o(s-3<<5|8208),s=0)}for(;s--;)o(a);s=1,a=t[f]}return{c:e.subarray(0,i),n:r}},T=function(t,n){for(var r=0,e=0;e<n.length;++e)r+=t[e]*n[e];return r},k=function(t,n,r){var e=r.length,i=m(n+2);t[i]=255&e,t[i+1]=e>>8,t[i+2]=255^t[i],t[i+3]=255^t[i+1];for(var a=0;a<e;++a)t[i+a+4]=r[a];return 8*(i+4+e)},C=function(t,r,s,o,f,h,l,u,c,v,m){z(r,m++,s),++f[256];for(var b=_(f,15),M=b.t,E=b.l,x=_(h,15),C=x.t,U=x.l,F=D(M),I=F.c,S=F.n,L=D(C),O=L.c,j=L.n,q=new n(19),B=0;B<I.length;++B)++q[31&I[B]];for(B=0;B<O.length;++B)++q[31&O[B]];for(var G=_(q,7),H=G.t,J=G.l,K=19;K>4&&!H[a[K-1]];--K);var N,P,Q,R,V=v+5<<3,W=T(f,g)+T(h,w)+l,X=T(f,M)+T(h,C)+l+14+3*K+T(q,H)+2*q[16]+3*q[17]+7*q[18];if(c>=0&&V<=W&&V<=X)return k(r,m,t.subarray(c,c+v));if(z(r,m,1+(X<W)),m+=2,X<W){N=d(M,E,0),P=M,Q=d(C,U,0),R=C;var Y=d(H,J,0);z(r,m,S-257),z(r,m+5,j-1),z(r,m+10,K-4),m+=14;for(B=0;B<K;++B)z(r,m+3*B,H[a[B]]);m+=3*K;for(var Z=[I,O],$=0;$<2;++$){var tt=Z[$];for(B=0;B<tt.length;++B){var nt=31&tt[B];z(r,m,Y[nt]),m+=H[nt],nt>15&&(z(r,m,tt[B]>>5&127),m+=tt[B]>>12)}}}else N=p,P=g,Q=y,R=w;for(B=0;B<u;++B){var rt=o[B];if(rt>255){A(r,m,N[(nt=rt>>18&31)+257]),m+=P[nt+257],nt>7&&(z(r,m,rt>>23&31),m+=e[nt]);var et=31&rt;A(r,m,Q[et]),m+=R[et],et>3&&(A(r,m,rt>>5&8191),m+=i[et])}else A(r,m,N[rt]),m+=P[rt]}return A(r,m,N[256]),m+P[256]},U=new r([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),F=new t(0),I=function(){for(var t=new Int32Array(256),n=0;n<256;++n){for(var r=n,e=9;--e;)r=(1&r&&-306674912)^r>>>1;t[n]=r}return t}(),S=function(){var t=-1;return{p:function(n){for(var r=t,e=0;e<n.length;++e)r=I[255&r^n[e]]^r>>>8;t=r},d:function(){return~t}}},L=function(){var t=1,n=0;return{p:function(r){for(var e=t,i=n,a=0|r.length,s=0;s!=a;){for(var o=Math.min(s+2655,a);s<o;++s)i+=e+=r[s];e=(65535&e)+15*(e>>16),i=(65535&i)+15*(i>>16)}t=e,n=i},d:function(){return(255&(t%=65521))<<24|(65280&t)<<8|(255&(n%=65521))<<8|n>>8}}},O=function(a,s,o,f,u){if(!u&&(u={l:1},s.dictionary)){var c=s.dictionary.subarray(-32768),v=new t(c.length+a.length);v.set(c),v.set(a,c.length),a=v,u.w=c.length}return function(a,s,o,f,u,c){var v=c.z||a.length,d=new t(f+v+5*(1+Math.ceil(v/7e3))+u),g=d.subarray(f,d.length-u),w=c.l,p=7&(c.r||0);if(s){p&&(g[0]=c.r>>3);for(var y=U[s-1],M=y>>13,E=8191&y,z=(1<<o)-1,A=c.p||new n(32768),_=c.h||new n(z+1),x=Math.ceil(o/3),D=2*x,T=function(t){return(a[t]^a[t+1]<<x^a[t+2]<<D)&z},F=new r(25e3),I=new n(288),S=new n(32),L=0,O=0,j=c.i||0,q=0,B=c.w||0,G=0;j+2<v;++j){var H=T(j),J=32767&j,K=_[H];if(A[J]=K,_[H]=J,B<=j){var N=v-j;if((L>7e3||q>24576)&&(N>423||!w)){p=C(a,g,0,F,I,S,O,q,G,j-G,p),q=L=O=0,G=j;for(var P=0;P<286;++P)I[P]=0;for(P=0;P<30;++P)S[P]=0}var Q=2,R=0,V=E,W=J-K&32767;if(N>2&&H==T(j-W))for(var X=Math.min(M,N)-1,Y=Math.min(32767,j),Z=Math.min(258,N);W<=Y&&--V&&J!=K;){if(a[j+Q]==a[j+Q-W]){for(var $=0;$<Z&&a[j+$]==a[j+$-W];++$);if($>Q){if(Q=$,R=W,$>X)break;var tt=Math.min(W,$-2),nt=0;for(P=0;P<tt;++P){var rt=j-W+P&32767,et=rt-A[rt]&32767;et>nt&&(nt=et,K=rt)}}}W+=(J=K)-(K=A[J])&32767}if(R){F[q++]=268435456|h[Q]<<18|l[R];var it=31&h[Q],at=31&l[R];O+=e[it]+i[at],++I[257+it],++S[at],B=j+Q,++L}else F[q++]=a[j],++I[a[j]]}}for(j=Math.max(j,B);j<v;++j)F[q++]=a[j],++I[a[j]];p=C(a,g,w,F,I,S,O,q,G,j-G,p),w||(c.r=7&p|g[p/8|0]<<3,p-=7,c.h=_,c.p=A,c.i=j,c.w=B)}else{for(j=c.w||0;j<v+w;j+=65535){var st=j+65535;st>=v&&(g[p/8|0]=w,st=v),p=k(g,p+1,a.subarray(j,st))}c.i=v}return b(d,0,f+m(p)+u)}(a,null==s.level?6:s.level,null==s.mem?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(a.length)))):12+s.mem,o,f,u)},j=function(t,n,r){for(;r;++n)t[n]=r,r>>>=8},q=function(t,n){var r=n.filename;if(t[0]=31,t[1]=139,t[2]=8,t[8]=n.level<2?4:9==n.level?2:0,t[9]=3,0!=n.mtime&&j(t,4,Math.floor(new Date(n.mtime||Date.now())/1e3)),r){t[3]=8;for(var e=0;e<=r.length;++e)t[e+10]=r.charCodeAt(e)}},B=function(t){return 10+(t.filename?t.filename.length+1:0)},G=function(){function n(n,r){if("function"==typeof n&&(r=n,n={}),this.ondata=r,this.o=n||{},this.s={l:0,i:32768,w:32768,z:32768},this.b=new t(98304),this.o.dictionary){var e=this.o.dictionary.subarray(-32768);this.b.set(e,32768-e.length),this.s.i=32768-e.length}}return n.prototype.p=function(t,n){this.ondata(O(t,this.o,0,0,this.s),n)},n.prototype.push=function(n,r){this.ondata||E(5),this.s.l&&E(4);var e=n.length+this.s.z;if(e>this.b.length){if(e>2*this.b.length-32768){var i=new t(-32768&e);i.set(this.b.subarray(0,this.s.z)),this.b=i}var a=this.b.length-this.s.z;a&&(this.b.set(n.subarray(0,a),this.s.z),this.s.z=this.b.length,this.p(this.b,!1)),this.b.set(this.b.subarray(-32768)),this.b.set(n.subarray(a),32768),this.s.z=n.length-a+32768,this.s.i=32766,this.s.w=32768}else this.b.set(n,this.s.z),this.s.z+=n.length;this.s.l=1&r,(this.s.z>this.s.w+8191||r)&&(this.p(this.b,r||!1),this.s.w=this.s.i,this.s.i-=2)},n}();var H=function(){function t(t,n){this.c=L(),this.v=1,G.call(this,t,n)}return t.prototype.push=function(t,n){this.c.p(t),G.prototype.push.call(this,t,n)},t.prototype.p=function(t,n){var r=O(t,this.o,this.v&&(this.o.dictionary?6:2),n&&4,this.s);this.v&&(function(t,n){var r=n.level,e=0==r?0:r<6?1:9==r?3:2;if(t[0]=120,t[1]=e<<6|(n.dictionary&&32),t[1]|=31-(t[0]<<8|t[1])%31,n.dictionary){var i=L();i.p(n.dictionary),j(t,2,i.d())}}(r,this.o),this.v=0),n&&j(r,r.length-4,this.c.d()),this.ondata(r,n)},t}(),J="undefined"!=typeof TextEncoder&&new TextEncoder,K="undefined"!=typeof TextDecoder&&new TextDecoder;try{K.decode(F,{stream:!0})}catch(t){}var N=function(){function t(t){this.ondata=t}return t.prototype.push=function(t,n){this.ondata||E(5),this.d&&E(4),this.ondata(P(t),this.d=n||!1)},t}();function P(n,r){if(r){for(var e=new t(n.length),i=0;i<n.length;++i)e[i]=n.charCodeAt(i);return e}if(J)return J.encode(n);var a=n.length,s=new t(n.length+(n.length>>1)),o=0,f=function(t){s[o++]=t};for(i=0;i<a;++i){if(o+5>s.length){var h=new t(o+8+(a-i<<1));h.set(s),s=h}var l=n.charCodeAt(i);l<128||r?f(l):l<2048?(f(192|l>>6),f(128|63&l)):l>55295&&l<57344?(f(240|(l=65536+(1047552&l)|1023&n.charCodeAt(++i))>>18),f(128|l>>12&63),f(128|l>>6&63),f(128|63&l)):(f(224|l>>12),f(128|l>>6&63),f(128|63&l))}return b(s,0,o)}function Q(t){return function(t,n){n||(n={});var r=S(),e=t.length;r.p(t);var i=O(t,n,B(n),8),a=i.length;return q(i,n),j(i,a-8,r.d()),j(i,a-4,e),i}(P(t))}const R=new class{constructor(){this._init()}clear(){this._init()}addEvent(t){if(!t)throw new Error("Adding invalid event");const n=this._hasEvents?",":"";this.stream.push(n+t),this._hasEvents=!0}finish(){this.stream.push("]",!0);const t=function(t){let n=0;for(const r of t)n+=r.length;const r=new Uint8Array(n);for(let n=0,e=0,i=t.length;n<i;n++){const i=t[n];r.set(i,e),e+=i.length}return r}(this._deflatedData);return this._init(),t}_init(){this._hasEvents=!1,this._deflatedData=[],this.deflate=new H,this.deflate.ondata=(t,n)=>{this._deflatedData.push(t)},this.stream=new N(((t,n)=>{this.deflate.push(t,n)})),this.stream.push("[")}},V={clear:()=>{R.clear()},addEvent:t=>R.addEvent(t),finish:()=>R.finish(),compress:t=>Q(t)};addEventListener("message",(function(t){const n=t.data.method,r=t.data.id,e=t.data.arg;if(n in V&&"function"==typeof V[n])try{const t=V[n](e);postMessage({id:r,method:n,success:!0,response:t})}catch(t){postMessage({id:r,method:n,success:!1,response:t.message}),console.error(t)}})),postMessage({id:void 0,method:"init",success:!0,response:void 0});';function uI(){const e=new Blob([cI]);return URL.createObjectURL(e)}class Ad extends Error{constructor(){super(`Event buffer exceeded maximum size of ${ld}.`)}}class F0{constructor(){this.events=[],this._totalSize=0,this.hasCheckout=!1}get hasEvents(){return this.events.length>0}get type(){return"sync"}destroy(){this.events=[]}async addEvent(t){const n=JSON.stringify(t).length;if(this._totalSize+=n,this._totalSize>ld)throw new Ad;this.events.push(t)}finish(){return new Promise(t=>{const n=this.events;this.clear(),t(JSON.stringify(n))})}clear(){this.events=[],this._totalSize=0,this.hasCheckout=!1}getEarliestTimestamp(){const t=this.events.map(n=>n.timestamp).sort()[0];return t?Cd(t):null}}class lI{constructor(t){this._worker=t,this._id=0}ensureReady(){return this._ensureReadyPromise?this._ensureReadyPromise:(this._ensureReadyPromise=new Promise((t,n)=>{this._worker.addEventListener("message",({data:r})=>{r.success?t():n()},{once:!0}),this._worker.addEventListener("error",r=>{n(r)},{once:!0})}),this._ensureReadyPromise)}destroy(){Me&&je.info("Destroying compression worker"),this._worker.terminate()}postMessage(t,n){const r=this._getAndIncrementId();return new Promise((i,s)=>{const o=({data:c})=>{const u=c;if(u.method===t&&u.id===r){if(this._worker.removeEventListener("message",o),!u.success){Me&&je.error("Error in compression worker: ",u.response),s(new Error("Error in compression worker"));return}i(u.response)}};this._worker.addEventListener("message",o),this._worker.postMessage({id:r,method:t,arg:n})})}_getAndIncrementId(){return this._id++}}class dI{constructor(t){this._worker=new lI(t),this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1}get hasEvents(){return!!this._earliestTimestamp}get type(){return"worker"}ensureReady(){return this._worker.ensureReady()}destroy(){this._worker.destroy()}addEvent(t){const n=Cd(t.timestamp);(!this._earliestTimestamp||n<this._earliestTimestamp)&&(this._earliestTimestamp=n);const r=JSON.stringify(t);return this._totalSize+=r.length,this._totalSize>ld?Promise.reject(new Ad):this._sendEventToWorker(r)}finish(){return this._finishRequest()}clear(){this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1,this._worker.postMessage("clear").then(null,t=>{Me&&je.exception(t,'Sending "clear" message to worker failed',t)})}getEarliestTimestamp(){return this._earliestTimestamp}_sendEventToWorker(t){return this._worker.postMessage("addEvent",t)}async _finishRequest(){const t=await this._worker.postMessage("finish");return this._earliestTimestamp=null,this._totalSize=0,t}}class fI{constructor(t){this._fallback=new F0,this._compression=new dI(t),this._used=this._fallback,this._ensureWorkerIsLoadedPromise=this._ensureWorkerIsLoaded()}get type(){return this._used.type}get hasEvents(){return this._used.hasEvents}get hasCheckout(){return this._used.hasCheckout}set hasCheckout(t){this._used.hasCheckout=t}destroy(){this._fallback.destroy(),this._compression.destroy()}clear(){return this._used.clear()}getEarliestTimestamp(){return this._used.getEarliestTimestamp()}addEvent(t){return this._used.addEvent(t)}async finish(){return await this.ensureWorkerIsLoaded(),this._used.finish()}ensureWorkerIsLoaded(){return this._ensureWorkerIsLoadedPromise}async _ensureWorkerIsLoaded(){try{await this._compression.ensureReady()}catch(t){Me&&je.exception(t,"Failed to load the compression worker, falling back to simple buffer");return}await this._switchToCompressionWorker()}async _switchToCompressionWorker(){const{events:t,hasCheckout:n}=this._fallback,r=[];for(const i of t)r.push(this._compression.addEvent(i));this._compression.hasCheckout=n,this._used=this._compression;try{await Promise.all(r),this._fallback.clear()}catch(i){Me&&je.exception(i,"Failed to add events when switching buffers.")}}}function hI({useCompression:e,workerUrl:t}){if(e&&window.Worker){const n=pI(t);if(n)return n}return Me&&je.info("Using simple buffer"),new F0}function pI(e){try{const t=e||mI();if(!t)return;Me&&je.info(`Using compression worker${e?` from ${e}`:""}`);const n=new Worker(t);return new fI(n)}catch(t){Me&&je.exception(t,"Failed to create compression worker")}}function mI(){return typeof __SENTRY_EXCLUDE_REPLAY_WORKER__>"u"||!__SENTRY_EXCLUDE_REPLAY_WORKER__?uI():""}function Td(){try{return"sessionStorage"in bt&&!!bt.sessionStorage}catch{return!1}}function gI(e){yI(),e.session=void 0}function yI(){if(Td())try{bt.sessionStorage.removeItem(cd)}catch{}}function U0(e){return e===void 0?!1:Math.random()<e}function V0(e){const t=Date.now(),n=e.id||St(),r=e.started||t,i=e.lastActivity||t,s=e.segmentId||0,o=e.sampled,c=e.previousSessionId;return{id:n,started:r,lastActivity:i,segmentId:s,sampled:o,previousSessionId:c}}function Id(e){if(Td())try{bt.sessionStorage.setItem(cd,JSON.stringify(e))}catch{}}function vI(e,t){return U0(e)?"session":t?"buffer":!1}function q0({sessionSampleRate:e,allowBuffering:t,stickySession:n=!1},{previousSessionId:r}={}){const i=vI(e,t),s=V0({sampled:i,previousSessionId:r});return n&&Id(s),s}function bI(){if(!Td())return null;try{const e=bt.sessionStorage.getItem(cd);if(!e)return null;const t=JSON.parse(e);return Me&&je.infoTick("Loading existing session"),V0(t)}catch{return null}}function kd(e,t,n=+new Date){return e===null||t===void 0||t<0?!0:t===0?!1:e+t<=n}function $0(e,{maxReplayDuration:t,sessionIdleExpire:n,targetTime:r=Date.now()}){return kd(e.started,t,r)||kd(e.lastActivity,n,r)}function G0(e,{sessionIdleExpire:t,maxReplayDuration:n}){return!(!$0(e,{sessionIdleExpire:t,maxReplayDuration:n})||e.sampled==="buffer"&&e.segmentId===0)}function Od({sessionIdleExpire:e,maxReplayDuration:t,previousSessionId:n},r){const i=r.stickySession&&bI();return i?G0(i,{sessionIdleExpire:e,maxReplayDuration:t})?(Me&&je.infoTick("Session in sessionStorage is expired, creating new one..."),q0(r,{previousSessionId:i.id})):i:(Me&&je.infoTick("Creating new session"),q0(r,{previousSessionId:n}))}function wI(e){return e.type===Ze.Custom}function Nd(e,t,n){return Y0(e,t)?(H0(e,t,n),!0):!1}function EI(e,t,n){return Y0(e,t)?H0(e,t,n):Promise.resolve(null)}async function H0(e,t,n){if(!e.eventBuffer)return null;try{n&&e.recordingMode==="buffer"&&e.eventBuffer.clear(),n&&(e.eventBuffer.hasCheckout=!0);const r=e.getOptions(),i=SI(t,r.beforeAddRecordingEvent);return i?await e.eventBuffer.addEvent(i):void 0}catch(r){const i=r&&r instanceof Ad?"addEventSizeExceeded":"addEvent";e.handleException(r),await e.stop({reason:i});const s=Xe();s&&s.recordDroppedEvent("internal_sdk_error","replay")}}function Y0(e,t){if(!e.eventBuffer||e.isPaused()||!e.isEnabled())return!1;const n=Cd(t.timestamp);return n+e.timeouts.sessionIdlePause<Date.now()?!1:n>e.getContext().initialTimestamp+e.getOptions().maxReplayDuration?(Me&&je.infoTick(`Skipping event with timestamp ${n} because it is after maxReplayDuration`),!1):!0}function SI(e,t){try{if(typeof t=="function"&&wI(e))return t(e)}catch(n){return Me&&je.exception(n,"An error occured in the `beforeAddRecordingEvent` callback, skipping the event..."),null}return e}function Rd(e){return!e.type}function Md(e){return e.type==="transaction"}function xI(e){return e.type==="replay_event"}function W0(e){return e.type==="feedback"}function CI(e){return(t,n)=>{if(!e.isEnabled()||!Rd(t)&&!Md(t))return;const r=n&&n.statusCode;if(!(!r||r<200||r>=300)){if(Md(t)){_I(e,t);return}AI(e,t)}}}function _I(e,t){const n=e.getContext();t.contexts&&t.contexts.trace&&t.contexts.trace.trace_id&&n.traceIds.size<100&&n.traceIds.add(t.contexts.trace.trace_id)}function AI(e,t){const n=e.getContext();if(t.event_id&&n.errorIds.size<100&&n.errorIds.add(t.event_id),e.recordingMode!=="buffer"||!t.tags||!t.tags.replayId)return;const{beforeErrorSampling:r}=e.getOptions();typeof r=="function"&&!r(t)||fs(async()=>{try{await e.sendBufferedReplayOrFlush()}catch(i){e.handleException(i)}})}function TI(e){return t=>{!e.isEnabled()||!Rd(t)||II(e,t)}}function II(e,t){const n=t.exception&&t.exception.values&&t.exception.values[0]&&t.exception.values[0].value;if(typeof n=="string"&&(n.match(/(reactjs\.org\/docs\/error-decoder\.html\?invariant=|react\.dev\/errors\/)(418|419|422|423|425)/)||n.match(/(does not match server-rendered HTML|Hydration failed because)/i))){const r=vr({category:"replay.hydrate-error",data:{url:$p()}});xo(e,r)}}function kI(e){const t=Xe();t&&t.on("beforeAddBreadcrumb",n=>OI(e,n))}function OI(e,t){if(!e.isEnabled()||!K0(t))return;const n=NI(t);n&&xo(e,n)}function NI(e){return!K0(e)||["fetch","xhr","sentry.event","sentry.transaction"].includes(e.category)||e.category.startsWith("ui.")?null:e.category==="console"?RI(e):vr(e)}function RI(e){const t=e.data&&e.data.arguments;if(!Array.isArray(t)||t.length===0)return vr(e);let n=!1;const r=t.map(i=>{if(!i)return i;if(typeof i=="string")return i.length>hc?(n=!0,`${i.slice(0,hc)}…`):i;if(typeof i=="object")try{const s=mr(i,7);return JSON.stringify(s).length>hc?(n=!0,`${JSON.stringify(s,null,2).slice(0,hc)}…`):s}catch{}return i});return vr({...e,data:{...e.data,arguments:r,...n?{_meta:{warnings:["CONSOLE_ARG_TRUNCATED"]}}:{}}})}function K0(e){return!!e.category}function MI(e,t){return e.type||!e.exception||!e.exception.values||!e.exception.values.length?!1:!!(t.originalException&&t.originalException.__rrweb__)}function DI(e,t){e.triggerUserActivity(),e.addUpdate(()=>t.timestamp?(e.throttledAddEvent({type:Ze.Custom,timestamp:t.timestamp*1e3,data:{tag:"breadcrumb",payload:{timestamp:t.timestamp,type:"default",category:"sentry.feedback",data:{feedbackId:t.event_id}}}}),!1):!0)}function PI(e,t){return e.recordingMode!=="buffer"||t.message===ud||!t.exception||t.type?!1:U0(e.getOptions().errorSampleRate)}function jI(e){return Object.assign((t,n)=>!e.isEnabled()||e.isPaused()?t:xI(t)?(delete t.breadcrumbs,t):!Rd(t)&&!Md(t)&&!W0(t)||!e.checkAndHandleExpiredSession()?t:W0(t)?(e.flush(),t.contexts.feedback.replay_id=e.getSessionId(),DI(e,t),t):MI(t,n)&&!e.getOptions()._experiments.captureExceptions?(Me&&je.log("Ignoring error from rrweb internals",t),null):((PI(e,t)||e.recordingMode==="session")&&(t.tags={...t.tags,replayId:e.getSessionId()}),t),{id:"Replay"})}function kc(e,t){return t.map(({type:n,start:r,end:i,name:s,data:o})=>{const c=e.throttledAddEvent({type:Ze.Custom,timestamp:r,data:{tag:"performanceSpan",payload:{op:n,description:s,startTimestamp:r,endTimestamp:i,data:o}}});return typeof c=="string"?Promise.resolve(null):c})}function LI(e){const{from:t,to:n}=e,r=Date.now()/1e3;return{type:"navigation.push",start:r,end:r,name:n,data:{previous:t}}}function BI(e){return t=>{if(!e.isEnabled())return;const n=LI(t);n!==null&&(e.getContext().urls.push(n.name),e.triggerUserActivity(),e.addUpdate(()=>(kc(e,[n]),!1)))}}function FI(e,t){return Me&&e.getOptions()._experiments.traceInternals?!1:EC(t,Xe())}function z0(e,t){e.isEnabled()&&t!==null&&(FI(e,t.name)||e.addUpdate(()=>(kc(e,[t]),!0)))}function Oc(e){if(!e)return;const t=new TextEncoder;try{if(typeof e=="string")return t.encode(e).length;if(e instanceof URLSearchParams)return t.encode(e.toString()).length;if(e instanceof FormData){const n=X0(e);return t.encode(n).length}if(e instanceof Blob)return e.size;if(e instanceof ArrayBuffer)return e.byteLength}catch{}}function Q0(e){if(!e)return;const t=parseInt(e,10);return isNaN(t)?void 0:t}function J0(e){try{if(typeof e=="string")return[e];if(e instanceof URLSearchParams)return[e.toString()];if(e instanceof FormData)return[X0(e)];if(!e)return[void 0]}catch(t){return Me&&je.exception(t,"Failed to serialize body",e),[void 0,"BODY_PARSE_ERROR"]}return Me&&je.info("Skipping network body because of body type",e),[void 0,"UNPARSEABLE_BODY_TYPE"]}function Nc(e,t){if(!e)return{headers:{},size:void 0,_meta:{warnings:[t]}};const n={...e._meta},r=n.warnings||[];return n.warnings=[...r,t],e._meta=n,e}function Z0(e,t){if(!t)return null;const{startTimestamp:n,endTimestamp:r,url:i,method:s,statusCode:o,request:c,response:u}=t;return{type:e,start:n/1e3,end:r/1e3,name:i,data:Ht({method:s,statusCode:o,request:c,response:u})}}function Co(e){return{headers:{},size:e,_meta:{warnings:["URL_SKIPPED"]}}}function ai(e,t,n){if(!t&&Object.keys(e).length===0)return;if(!t)return{headers:e};if(!n)return{headers:e,size:t};const r={headers:e,size:t},{body:i,warnings:s}=UI(n);return r.body=i,s&&s.length>0&&(r._meta={warnings:s}),r}function Dd(e,t){return Object.entries(e).reduce((n,[r,i])=>{const s=r.toLowerCase();return t.includes(s)&&e[r]&&(n[s]=i),n},{})}function X0(e){return new URLSearchParams(e).toString()}function UI(e){if(!e||typeof e!="string")return{body:e};const t=e.length>Jg,n=VI(e);if(t){const r=e.slice(0,Jg);return n?{body:r,warnings:["MAYBE_JSON_TRUNCATED"]}:{body:`${r}…`,warnings:["TEXT_TRUNCATED"]}}if(n)try{return{body:JSON.parse(e)}}catch{}return{body:e}}function VI(e){const t=e[0],n=e[e.length-1];return t==="["&&n==="]"||t==="{"&&n==="}"}function Rc(e,t){const n=qI(e);return zr(n,t)}function qI(e,t=bt.document.baseURI){if(e.startsWith("http://")||e.startsWith("https://")||e.startsWith(bt.location.origin))return e;const n=new URL(e,t);if(n.origin!==new URL(t).origin)return e;const r=n.href;return!e.endsWith("/")&&r.endsWith("/")?r.slice(0,-1):r}async function $I(e,t,n){try{const r=await HI(e,t,n),i=Z0("resource.fetch",r);z0(n.replay,i)}catch(r){Me&&je.exception(r,"Failed to capture fetch breadcrumb")}}function GI(e,t){const{input:n,response:r}=t,i=n?ey(n):void 0,s=Oc(i),o=r?Q0(r.headers.get("content-length")):void 0;s!==void 0&&(e.data.request_body_size=s),o!==void 0&&(e.data.response_body_size=o)}async function HI(e,t,n){const r=Date.now(),{startTimestamp:i=r,endTimestamp:s=r}=t,{url:o,method:c,status_code:u=0,request_body_size:d,response_body_size:f}=e.data,p=Rc(o,n.networkDetailAllowUrls)&&!Rc(o,n.networkDetailDenyUrls),l=p?YI(n,t.input,d):Co(d),v=await WI(p,n,t.response,f);return{startTimestamp:i,endTimestamp:s,url:o,method:c,statusCode:u,request:l,response:v}}function YI({networkCaptureBodies:e,networkRequestHeaders:t},n,r){const i=n?QI(n,t):{};if(!e)return ai(i,r,void 0);const s=ey(n),[o,c]=J0(s),u=ai(i,r,o);return c?Nc(u,c):u}async function WI(e,{networkCaptureBodies:t,networkResponseHeaders:n},r,i){if(!e&&i!==void 0)return Co(i);const s=r?ty(r.headers,n):{};if(!r||!t&&i!==void 0)return ai(s,i,void 0);const[o,c]=await zI(r),u=KI(o,{networkCaptureBodies:t,responseBodySize:i,captureDetails:e,headers:s});return c?Nc(u,c):u}function KI(e,{networkCaptureBodies:t,responseBodySize:n,captureDetails:r,headers:i}){try{const s=e&&e.length&&n===void 0?Oc(e):n;return r?t?ai(i,s,e):ai(i,s,void 0):Co(s)}catch(s){return Me&&je.exception(s,"Failed to serialize response body"),ai(i,n,void 0)}}async function zI(e){const t=JI(e);if(!t)return[void 0,"BODY_PARSE_ERROR"];try{return[await ZI(t)]}catch(n){return Me&&je.exception(n,"Failed to get text body from response"),[void 0,"BODY_PARSE_ERROR"]}}function ey(e=[]){if(!(e.length!==2||typeof e[1]!="object"))return e[1].body}function ty(e,t){const n={};return t.forEach(r=>{e.get(r)&&(n[r]=e.get(r))}),n}function QI(e,t){return e.length===1&&typeof e[0]!="string"?ny(e[0],t):e.length===2?ny(e[1],t):{}}function ny(e,t){if(!e)return{};const n=e.headers;return n?n instanceof Headers?ty(n,t):Array.isArray(n)?{}:Dd(n,t):{}}function JI(e){try{return e.clone()}catch(t){Me&&je.exception(t,"Failed to clone response body")}}function ZI(e){return new Promise((t,n)=>{const r=fs(()=>n(new Error("Timeout while trying to read response body")),500);XI(e).then(i=>t(i),i=>n(i)).finally(()=>clearTimeout(r))})}async function XI(e){return await e.text()}async function e5(e,t,n){try{const r=n5(e,t,n),i=Z0("resource.xhr",r);z0(n.replay,i)}catch(r){Me&&je.exception(r,"Failed to capture xhr breadcrumb")}}function t5(e,t){const{xhr:n,input:r}=t;if(!n)return;const i=Oc(r),s=n.getResponseHeader("content-length")?Q0(n.getResponseHeader("content-length")):o5(n.response,n.responseType);i!==void 0&&(e.data.request_body_size=i),s!==void 0&&(e.data.response_body_size=s)}function n5(e,t,n){const r=Date.now(),{startTimestamp:i=r,endTimestamp:s=r,input:o,xhr:c}=t,{url:u,method:d,status_code:f=0,request_body_size:p,response_body_size:l}=e.data;if(!u)return null;if(!c||!Rc(u,n.networkDetailAllowUrls)||Rc(u,n.networkDetailDenyUrls)){const A=Co(p),T=Co(l);return{startTimestamp:i,endTimestamp:s,url:u,method:d,statusCode:f,request:A,response:T}}const v=c[Mi],a=v?Dd(v.request_headers,n.networkRequestHeaders):{},h=Dd(r5(c),n.networkResponseHeaders),[y,g]=n.networkCaptureBodies?J0(o):[void 0],[b,w]=n.networkCaptureBodies?i5(c):[void 0],E=ai(a,p,y),S=ai(h,l,b);return{startTimestamp:i,endTimestamp:s,url:u,method:d,statusCode:f,request:g?Nc(E,g):E,response:w?Nc(S,w):S}}function r5(e){const t=e.getAllResponseHeaders();return t?t.split(`\r
78
- `).reduce((n,r)=>{const[i,s]=r.split(": ");return s&&(n[i.toLowerCase()]=s),n},{}):{}}function i5(e){const t=[];try{return[e.responseText]}catch(n){t.push(n)}try{return s5(e.response,e.responseType)}catch(n){t.push(n)}return Me&&je.warn("Failed to get xhr response body",...t),[void 0]}function s5(e,t){try{if(typeof e=="string")return[e];if(e instanceof Document)return[e.body.outerHTML];if(t==="json"&&e&&typeof e=="object")return[JSON.stringify(e)];if(!e)return[void 0]}catch(n){return Me&&je.exception(n,"Failed to serialize body",e),[void 0,"BODY_PARSE_ERROR"]}return Me&&je.info("Skipping network body because of body type",e),[void 0,"UNPARSEABLE_BODY_TYPE"]}function o5(e,t){try{const n=t==="json"&&e&&typeof e=="object"?JSON.stringify(e):e;return Oc(n)}catch{return}}function a5(e){const t=Xe();try{const{networkDetailAllowUrls:n,networkDetailDenyUrls:r,networkCaptureBodies:i,networkRequestHeaders:s,networkResponseHeaders:o}=e.getOptions(),c={replay:e,networkDetailAllowUrls:n,networkDetailDenyUrls:r,networkCaptureBodies:i,networkRequestHeaders:s,networkResponseHeaders:o};t&&t.on("beforeAddBreadcrumb",(u,d)=>c5(c,u,d))}catch{}}function c5(e,t,n){if(t.data)try{u5(t)&&d5(n)&&(t5(t,n),e5(t,n,e)),l5(t)&&f5(n)&&(GI(t,n),$I(t,n,e))}catch(r){Me&&je.exception(r,"Error when enriching network breadcrumb")}}function u5(e){return e.category==="xhr"}function l5(e){return e.category==="fetch"}function d5(e){return e&&e.xhr}function f5(e){return e&&e.response}function h5(e){const t=Xe();Ug($4(e)),uc(BI(e)),kI(e),a5(e);const n=jI(e);sC(n),t&&(t.on("beforeSendEvent",TI(e)),t.on("afterSendEvent",CI(e)),t.on("createDsc",r=>{const i=e.getSessionId();i&&e.isEnabled()&&e.recordingMode==="session"&&e.checkAndHandleExpiredSession()&&(r.replay_id=i)}),t.on("spanStart",r=>{e.lastActiveSpan=r}),t.on("spanEnd",r=>{e.lastActiveSpan=r}),t.on("beforeSendFeedback",(r,i)=>{const s=e.getSessionId();i&&i.includeReplay&&e.isEnabled()&&s&&r.contexts&&r.contexts.feedback&&(r.contexts.feedback.replay_id=s)}))}async function p5(e){try{return Promise.all(kc(e,[m5(bt.performance.memory)]))}catch{return[]}}function m5(e){const{jsHeapSizeLimit:t,totalJSHeapSize:n,usedJSHeapSize:r}=e,i=Date.now()/1e3;return{type:"memory",name:"memory",start:i,end:i,data:{memory:{jsHeapSizeLimit:t,totalJSHeapSize:n,usedJSHeapSize:r}}}}function g5(e,t,n){let r,i,s;const o=n&&n.maxWait?Math.max(n.maxWait,t):0;function c(){return u(),r=e(),r}function u(){i!==void 0&&clearTimeout(i),s!==void 0&&clearTimeout(s),i=s=void 0}function d(){return i!==void 0||s!==void 0?c():r}function f(){return i&&clearTimeout(i),i=fs(c,t),o&&s===void 0&&(s=fs(c,o)),r}return f.cancel=u,f.flush=d,f}function y5(e){let t=!1;return(n,r)=>{if(!e.checkAndHandleExpiredSession()){Me&&je.warn("Received replay event after session expired.");return}const i=r||!t;t=!0,e.clickDetector&&B4(e.clickDetector,n),e.addUpdate(()=>{if(e.recordingMode==="buffer"&&i&&e.setInitialState(),!Nd(e,n,i))return!0;if(!i)return!1;const s=e.session;if(b5(e,i),s&&s.previousSessionId)return!0;if(e.recordingMode==="buffer"&&s&&e.eventBuffer){const o=e.eventBuffer.getEarliestTimestamp();o&&(Me&&je.info(`Updating session start time to earliest event in buffer to ${new Date(o)}`),s.started=o,e.getOptions().stickySession&&Id(s))}return e.recordingMode==="session"&&e.flush(),!0})}}function v5(e){const t=e.getOptions();return{type:Ze.Custom,timestamp:Date.now(),data:{tag:"options",payload:{shouldRecordCanvas:e.isRecordingCanvas(),sessionSampleRate:t.sessionSampleRate,errorSampleRate:t.errorSampleRate,useCompressionOption:t.useCompression,blockAllMedia:t.blockAllMedia,maskAllText:t.maskAllText,maskAllInputs:t.maskAllInputs,useCompression:e.eventBuffer?e.eventBuffer.type==="worker":!1,networkDetailHasUrls:t.networkDetailAllowUrls.length>0,networkCaptureBodies:t.networkCaptureBodies,networkRequestHasHeaders:t.networkRequestHeaders.length>0,networkResponseHasHeaders:t.networkResponseHeaders.length>0}}}}function b5(e,t){!t||!e.session||e.session.segmentId!==0||Nd(e,v5(e),!1)}function w5(){const e=vt().getPropagationContext().dsc;e&&delete e.replay_id;const t=rn();if(t){const n=ti(t);delete n.replay_id}}function E5(e,t,n,r){return Ii(Sm(e,Nl(e),r,n),[[{type:"replay_event"},e],[{type:"replay_recording",length:typeof t=="string"?new TextEncoder().encode(t).length:t.length},t]])}function S5({recordingData:e,headers:t}){let n;const r=`${JSON.stringify(t)}
79
- `;if(typeof e=="string")n=`${r}${e}`;else{const s=new TextEncoder().encode(r);n=new Uint8Array(s.length+e.length),n.set(s),n.set(e,s.length)}return n}async function x5({client:e,scope:t,replayId:n,event:r}){const i=typeof e._integrations=="object"&&e._integrations!==null&&!Array.isArray(e._integrations)?Object.keys(e._integrations):void 0,s={event_id:n,integrations:i};e.emit("preprocessEvent",r,s);const o=await Jm(e.getOptions(),r,s,t,e,jn());if(!o)return null;o.platform=o.platform||"javascript";const c=e.getSdkMetadata(),{name:u,version:d}=c&&c.sdk||{};return o.sdk={...o.sdk,name:u||"sentry.javascript.unknown",version:d||"0.0.0"},o}async function C5({recordingData:e,replayId:t,segmentId:n,eventContext:r,timestamp:i,session:s}){const o=S5({recordingData:e,headers:{segment_id:n}}),{urls:c,errorIds:u,traceIds:d,initialTimestamp:f}=r,p=Xe(),l=vt(),v=p&&p.getTransport(),a=p&&p.getDsn();if(!p||!v||!a||!s.sampled)return kr({});const h={type:iT,replay_start_timestamp:f/1e3,timestamp:i/1e3,error_ids:u,trace_ids:d,urls:c,replay_id:t,segment_id:n,replay_type:s.sampled},y=await x5({scope:l,client:p,replayId:t,event:h});if(!y)return p.recordDroppedEvent("event_processor","replay",h),Me&&je.info("An event processor returned `null`, will not send event."),kr({});delete y.sdkProcessingMetadata;const g=E5(y,o,a,p.getOptions().tunnel);let b;try{b=await v.send(g)}catch(E){const S=new Error(ud);try{S.cause=E}catch{}throw S}if(typeof b.statusCode=="number"&&(b.statusCode<200||b.statusCode>=300))throw new ry(b.statusCode);const w=Cm({},b);if(xm(w,"replay"))throw new Pd(w);return b}class ry extends Error{constructor(t){super(`Transport returned status code ${t}`)}}class Pd extends Error{constructor(t){super("Rate limit hit"),this.rateLimits=t}}async function iy(e,t={count:0,interval:lT}){const{recordingData:n,onError:r}=e;if(n.length)try{return await C5(e),!0}catch(i){if(i instanceof ry||i instanceof Pd)throw i;if(eg("Replays",{_retryCount:t.count}),r&&r(i),t.count>=dT){const s=new Error(`${ud} - max retries exceeded`);try{s.cause=i}catch{}throw s}return t.interval*=++t.count,new Promise((s,o)=>{fs(async()=>{try{await iy(e,t),s(!0)}catch(c){o(c)}},t.interval)})}}const sy="__THROTTLED",_5="__SKIPPED";function A5(e,t,n){const r=new Map,i=c=>{const u=c-n;r.forEach((d,f)=>{f<u&&r.delete(f)})},s=()=>[...r.values()].reduce((c,u)=>c+u,0);let o=!1;return(...c)=>{const u=Math.floor(Date.now()/1e3);if(i(u),s()>=t){const f=o;return o=!0,f?_5:sy}o=!1;const d=r.get(u)||0;return r.set(u,d+1),e(...c)}}class ci{constructor({options:t,recordingOptions:n}){ci.prototype.__init.call(this),ci.prototype.__init2.call(this),ci.prototype.__init3.call(this),ci.prototype.__init4.call(this),ci.prototype.__init5.call(this),ci.prototype.__init6.call(this),this.eventBuffer=null,this.performanceEntries=[],this.replayPerformanceEntries=[],this.recordingMode="session",this.timeouts={sessionIdlePause:sT,sessionIdleExpire:oT},this._lastActivity=Date.now(),this._isEnabled=!1,this._isPaused=!1,this._requiresManualStart=!1,this._hasInitializedCoreListeners=!1,this._context={errorIds:new Set,traceIds:new Set,urls:[],initialTimestamp:Date.now(),initialUrl:""},this._recordingOptions=n,this._options=t,this._debouncedFlush=g5(()=>this._flush(),this._options.flushMinDelay,{maxWait:this._options.flushMaxDelay}),this._throttledAddEvent=A5((o,c)=>EI(this,o,c),300,5);const{slowClickTimeout:r,slowClickIgnoreSelectors:i}=this.getOptions(),s=r?{threshold:Math.min(fT,r),timeout:r,scrollTimeout:hT,ignoreSelector:i?i.join(","):""}:void 0;if(s&&(this.clickDetector=new D4(this,s)),Me){const o=t._experiments;je.setConfig({captureExceptions:!!o.captureExceptions,traceInternals:!!o.traceInternals})}}getContext(){return this._context}isEnabled(){return this._isEnabled}isPaused(){return this._isPaused}isRecordingCanvas(){return!!this._canvas}getOptions(){return this._options}handleException(t){Me&&je.exception(t),this._options.onError&&this._options.onError(t)}initializeSampling(t){const{errorSampleRate:n,sessionSampleRate:r}=this._options,i=n<=0&&r<=0;if(this._requiresManualStart=i,!i){if(this._initializeSessionForSampling(t),!this.session){Me&&je.exception(new Error("Unable to initialize and create session"));return}this.session.sampled!==!1&&(this.recordingMode=this.session.sampled==="buffer"&&this.session.segmentId===0?"buffer":"session",Me&&je.infoTick(`Starting replay in ${this.recordingMode} mode`),this._initializeRecording())}}start(){if(this._isEnabled&&this.recordingMode==="session"){Me&&je.info("Recording is already in progress");return}if(this._isEnabled&&this.recordingMode==="buffer"){Me&&je.info("Buffering is in progress, call `flush()` to save the replay");return}Me&&je.infoTick("Starting replay in session mode"),this._updateUserActivity();const t=Od({maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire},{stickySession:this._options.stickySession,sessionSampleRate:1,allowBuffering:!1});this.session=t,this._initializeRecording()}startBuffering(){if(this._isEnabled){Me&&je.info("Buffering is in progress, call `flush()` to save the replay");return}Me&&je.infoTick("Starting replay in buffer mode");const t=Od({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration},{stickySession:this._options.stickySession,sessionSampleRate:0,allowBuffering:!0});this.session=t,this.recordingMode="buffer",this._initializeRecording()}startRecording(){try{const t=this._canvas;this._stopRecording=Mr({...this._recordingOptions,...this.recordingMode==="buffer"?{checkoutEveryNms:uT}:this._options._experiments.continuousCheckout&&{checkoutEveryNms:Math.max(36e4,this._options._experiments.continuousCheckout)},emit:y5(this),onMutation:this._onMutationHandler,...t?{recordCanvas:t.recordCanvas,getCanvasManager:t.getCanvasManager,sampling:t.sampling,dataURLOptions:t.dataURLOptions}:{}})}catch(t){this.handleException(t)}}stopRecording(){try{return this._stopRecording&&(this._stopRecording(),this._stopRecording=void 0),!0}catch(t){return this.handleException(t),!1}}async stop({forceFlush:t=!1,reason:n}={}){if(this._isEnabled){this._isEnabled=!1;try{Me&&je.info(`Stopping Replay${n?` triggered by ${n}`:""}`),w5(),this._removeListeners(),this.stopRecording(),this._debouncedFlush.cancel(),t&&await this._flush({force:!0}),this.eventBuffer&&this.eventBuffer.destroy(),this.eventBuffer=null,gI(this)}catch(r){this.handleException(r)}}}pause(){this._isPaused||(this._isPaused=!0,this.stopRecording(),Me&&je.info("Pausing replay"))}resume(){!this._isPaused||!this._checkSession()||(this._isPaused=!1,this.startRecording(),Me&&je.info("Resuming replay"))}async sendBufferedReplayOrFlush({continueRecording:t=!0}={}){if(this.recordingMode==="session")return this.flushImmediate();const n=Date.now();Me&&je.info("Converting buffer to session"),await this.flushImmediate();const r=this.stopRecording();!t||!r||this.recordingMode!=="session"&&(this.recordingMode="session",this.session&&(this._updateUserActivity(n),this._updateSessionActivity(n),this._maybeSaveSession()),this.startRecording())}addUpdate(t){const n=t();this.recordingMode!=="buffer"&&n!==!0&&this._debouncedFlush()}triggerUserActivity(){if(this._updateUserActivity(),!this._stopRecording){if(!this._checkSession())return;this.resume();return}this.checkAndHandleExpiredSession(),this._updateSessionActivity()}updateUserActivity(){this._updateUserActivity(),this._updateSessionActivity()}conditionalFlush(){return this.recordingMode==="buffer"?Promise.resolve():this.flushImmediate()}flush(){return this._debouncedFlush()}flushImmediate(){return this._debouncedFlush(),this._debouncedFlush.flush()}cancelFlush(){this._debouncedFlush.cancel()}getSessionId(){return this.session&&this.session.id}checkAndHandleExpiredSession(){if(this._lastActivity&&kd(this._lastActivity,this.timeouts.sessionIdlePause)&&this.session&&this.session.sampled==="session"){this.pause();return}return!!this._checkSession()}setInitialState(){const t=`${bt.location.pathname}${bt.location.hash}${bt.location.search}`,n=`${bt.location.origin}${t}`;this.performanceEntries=[],this.replayPerformanceEntries=[],this._clearContext(),this._context.initialUrl=n,this._context.initialTimestamp=Date.now(),this._context.urls.push(n)}throttledAddEvent(t,n){const r=this._throttledAddEvent(t,n);if(r===sy){const i=vr({category:"replay.throttled"});this.addUpdate(()=>!Nd(this,{type:T4,timestamp:i.timestamp||0,data:{tag:"breadcrumb",payload:i,metric:!0}}))}return r}getCurrentRoute(){const t=this.lastActiveSpan||rn(),n=t&&nn(t),i=(n&&at(n).data||{})[gr];if(!(!n||!i||!["route","custom"].includes(i)))return at(n).description}_initializeRecording(){this.setInitialState(),this._updateSessionActivity(),this.eventBuffer=hI({useCompression:this._options.useCompression,workerUrl:this._options.workerUrl}),this._removeListeners(),this._addListeners(),this._isEnabled=!0,this._isPaused=!1,this.startRecording()}_initializeSessionForSampling(t){const n=this._options.errorSampleRate>0,r=Od({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration,previousSessionId:t},{stickySession:this._options.stickySession,sessionSampleRate:this._options.sessionSampleRate,allowBuffering:n});this.session=r}_checkSession(){if(!this.session)return!1;const t=this.session;return G0(t,{sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration})?(this._refreshSession(t),!1):!0}async _refreshSession(t){this._isEnabled&&(await this.stop({reason:"refresh session"}),this.initializeSampling(t.id))}_addListeners(){try{bt.document.addEventListener("visibilitychange",this._handleVisibilityChange),bt.addEventListener("blur",this._handleWindowBlur),bt.addEventListener("focus",this._handleWindowFocus),bt.addEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.addListeners(),this._hasInitializedCoreListeners||(h5(this),this._hasInitializedCoreListeners=!0)}catch(t){this.handleException(t)}this._performanceCleanupCallback=aI(this)}_removeListeners(){try{bt.document.removeEventListener("visibilitychange",this._handleVisibilityChange),bt.removeEventListener("blur",this._handleWindowBlur),bt.removeEventListener("focus",this._handleWindowFocus),bt.removeEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.removeListeners(),this._performanceCleanupCallback&&this._performanceCleanupCallback()}catch(t){this.handleException(t)}}__init(){this._handleVisibilityChange=()=>{bt.document.visibilityState==="visible"?this._doChangeToForegroundTasks():this._doChangeToBackgroundTasks()}}__init2(){this._handleWindowBlur=()=>{const t=vr({category:"ui.blur"});this._doChangeToBackgroundTasks(t)}}__init3(){this._handleWindowFocus=()=>{const t=vr({category:"ui.focus"});this._doChangeToForegroundTasks(t)}}__init4(){this._handleKeyboardEvent=t=>{W4(this,t)}}_doChangeToBackgroundTasks(t){!this.session||$0(this.session,{maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire})||(t&&this._createCustomBreadcrumb(t),this.conditionalFlush())}_doChangeToForegroundTasks(t){if(!this.session)return;if(!this.checkAndHandleExpiredSession()){Me&&je.info("Document has become active, but session has expired");return}t&&this._createCustomBreadcrumb(t)}_updateUserActivity(t=Date.now()){this._lastActivity=t}_updateSessionActivity(t=Date.now()){this.session&&(this.session.lastActivity=t,this._maybeSaveSession())}_createCustomBreadcrumb(t){this.addUpdate(()=>{this.throttledAddEvent({type:Ze.Custom,timestamp:t.timestamp||0,data:{tag:"breadcrumb",payload:t}})})}_addPerformanceEntries(){const t=J4(this.performanceEntries).concat(this.replayPerformanceEntries);return this.performanceEntries=[],this.replayPerformanceEntries=[],Promise.all(kc(this,t))}_clearContext(){this._context.errorIds.clear(),this._context.traceIds.clear(),this._context.urls=[]}_updateInitialTimestampFromEventBuffer(){const{session:t,eventBuffer:n}=this;if(!t||!n||this._requiresManualStart||t.segmentId)return;const r=n.getEarliestTimestamp();r&&r<this._context.initialTimestamp&&(this._context.initialTimestamp=r)}_popEventContext(){const t={initialTimestamp:this._context.initialTimestamp,initialUrl:this._context.initialUrl,errorIds:Array.from(this._context.errorIds),traceIds:Array.from(this._context.traceIds),urls:this._context.urls};return this._clearContext(),t}async _runFlush(){const t=this.getSessionId();if(!this.session||!this.eventBuffer||!t){Me&&je.error("No session or eventBuffer found to flush.");return}if(await this._addPerformanceEntries(),!(!this.eventBuffer||!this.eventBuffer.hasEvents)&&(await p5(this),!!this.eventBuffer&&t===this.getSessionId()))try{this._updateInitialTimestampFromEventBuffer();const n=Date.now();if(n-this._context.initialTimestamp>this._options.maxReplayDuration+3e4)throw new Error("Session is too long, not sending replay");const r=this._popEventContext(),i=this.session.segmentId++;this._maybeSaveSession();const s=await this.eventBuffer.finish();await iy({replayId:t,recordingData:s,segmentId:i,eventContext:r,session:this.session,timestamp:n,onError:o=>this.handleException(o)})}catch(n){this.handleException(n),this.stop({reason:"sendReplay"});const r=Xe();if(r){const i=n instanceof Pd?"ratelimit_backoff":"send_error";r.recordDroppedEvent(i,"replay")}}}__init5(){this._flush=async({force:t=!1}={})=>{if(!this._isEnabled&&!t)return;if(!this.checkAndHandleExpiredSession()){Me&&je.error("Attempting to finish replay event after session expired.");return}if(!this.session)return;const n=this.session.started,i=Date.now()-n;this._debouncedFlush.cancel();const s=i<this._options.minReplayDuration,o=i>this._options.maxReplayDuration+5e3;if(s||o){Me&&je.info(`Session duration (${Math.floor(i/1e3)}s) is too ${s?"short":"long"}, not sending replay.`),s&&this._debouncedFlush();return}const c=this.eventBuffer;c&&this.session.segmentId===0&&!c.hasCheckout&&Me&&je.info("Flushing initial segment without checkout.");const u=!!this._flushLock;this._flushLock||(this._flushLock=this._runFlush());try{await this._flushLock}catch(d){this.handleException(d)}finally{this._flushLock=void 0,u&&this._debouncedFlush()}}}_maybeSaveSession(){this.session&&this._options.stickySession&&Id(this.session)}__init6(){this._onMutationHandler=t=>{const n=t.length,r=this._options.mutationLimit,i=this._options.mutationBreadcrumbLimit,s=r&&n>r;if(n>i||s){const o=vr({category:"replay.mutations",data:{count:n,limit:s}});this._createCustomBreadcrumb(o)}return s?(this.stop({reason:"mutationLimit",forceFlush:this.recordingMode==="session"}),!1):!0}}}function _o(e,t){return[...e,...t].join(",")}function T5({mask:e,unmask:t,block:n,unblock:r,ignore:i}){const s=['base[href="/"]'],o=_o(e,[".sentry-mask","[data-sentry-mask]"]),c=_o(t,[]);return{maskTextSelector:o,unmaskTextSelector:c,blockSelector:_o(n,[".sentry-block","[data-sentry-block]",...s]),unblockSelector:_o(r,[]),ignoreSelector:_o(i,[".sentry-ignore","[data-sentry-ignore]",'input[type="file"]'])}}function I5({el:e,key:t,maskAttributes:n,maskAllText:r,privacyOptions:i,value:s}){return!r||i.unmaskTextSelector&&e.matches(i.unmaskTextSelector)?s:n.includes(t)||t==="value"&&e.tagName==="INPUT"&&["submit","button"].includes(e.getAttribute("type")||"")?s.replace(/[\S]/g,"*"):s}const oy='img,image,svg,video,object,picture,embed,map,audio,link[rel="icon"],link[rel="apple-touch-icon"]',k5=["content-length","content-type","accept"];let ay=!1;const O5=e=>new Mc(e);class Mc{static __initStatic(){this.id="Replay"}constructor({flushMinDelay:t=aT,flushMaxDelay:n=cT,minReplayDuration:r=pT,maxReplayDuration:i=Zg,stickySession:s=!0,useCompression:o=!0,workerUrl:c,_experiments:u={},maskAllText:d=!0,maskAllInputs:f=!0,blockAllMedia:p=!0,mutationBreadcrumbLimit:l=750,mutationLimit:v=1e4,slowClickTimeout:a=7e3,slowClickIgnoreSelectors:h=[],networkDetailAllowUrls:y=[],networkDetailDenyUrls:g=[],networkCaptureBodies:b=!0,networkRequestHeaders:w=[],networkResponseHeaders:E=[],mask:S=[],maskAttributes:A=["title","placeholder"],unmask:T=[],block:O=[],unblock:M=[],ignore:D=[],maskFn:F,beforeAddRecordingEvent:V,beforeErrorSampling:G}={}){this.name=Mc.id;const U=T5({mask:S,unmask:T,block:O,unblock:M,ignore:D});if(this._recordingOptions={maskAllInputs:f,maskAllText:d,maskInputOptions:{password:!0},maskTextFn:F,maskInputFn:F,maskAttributeFn:(N,L,Y)=>I5({maskAttributes:A,maskAllText:d,privacyOptions:U,key:N,value:L,el:Y}),...U,slimDOMOptions:"all",inlineStylesheet:!0,inlineImages:!1,collectFonts:!0,errorHandler:N=>{try{N.__rrweb__=!0}catch{}}},this._initialOptions={flushMinDelay:t,flushMaxDelay:n,minReplayDuration:Math.min(r,mT),maxReplayDuration:Math.min(i,Zg),stickySession:s,useCompression:o,workerUrl:c,blockAllMedia:p,maskAllInputs:f,maskAllText:d,mutationBreadcrumbLimit:l,mutationLimit:v,slowClickTimeout:a,slowClickIgnoreSelectors:h,networkDetailAllowUrls:y,networkDetailDenyUrls:g,networkCaptureBodies:b,networkRequestHeaders:cy(w),networkResponseHeaders:cy(E),beforeAddRecordingEvent:V,beforeErrorSampling:G,_experiments:u},this._initialOptions.blockAllMedia&&(this._recordingOptions.blockSelector=this._recordingOptions.blockSelector?`${this._recordingOptions.blockSelector},${oy}`:oy),this._isInitialized&&lm())throw new Error("Multiple Sentry Session Replay instances are not supported");this._isInitialized=!0}get _isInitialized(){return ay}set _isInitialized(t){ay=t}afterAllSetup(t){!lm()||this._replay||(this._setup(t),this._initialize(t))}start(){this._replay&&this._replay.start()}startBuffering(){this._replay&&this._replay.startBuffering()}stop(){return this._replay?this._replay.stop({forceFlush:this._replay.recordingMode==="session"}):Promise.resolve()}flush(t){return this._replay?this._replay.isEnabled()?this._replay.sendBufferedReplayOrFlush(t):(this._replay.start(),Promise.resolve()):Promise.resolve()}getReplayId(){if(!(!this._replay||!this._replay.isEnabled()))return this._replay.getSessionId()}_initialize(t){this._replay&&(this._maybeLoadFromReplayCanvasIntegration(t),this._replay.initializeSampling())}_setup(t){const n=N5(this._initialOptions,t);this._replay=new ci({options:n,recordingOptions:this._recordingOptions})}_maybeLoadFromReplayCanvasIntegration(t){try{const n=t.getIntegrationByName("ReplayCanvas");if(!n)return;this._replay._canvas=n.getOptions()}catch{}}}Mc.__initStatic();function N5(e,t){const n=t.getOptions(),r={sessionSampleRate:0,errorSampleRate:0,...Ht(e)},i=Xa(n.replaysSessionSampleRate),s=Xa(n.replaysOnErrorSampleRate);return i==null&&s==null&&es(()=>{console.warn("Replay is disabled because neither `replaysSessionSampleRate` nor `replaysOnErrorSampleRate` are set.")}),i!=null&&(r.sessionSampleRate=i),s!=null&&(r.errorSampleRate=s),r}function cy(e){return[...k5,...e.map(t=>t.toLowerCase())]}const uy=new WeakMap,jd=new Map,Ld={traceFetch:!0,traceXHR:!0,enableHTTPTimings:!0};function R5(e,t){const{traceFetch:n,traceXHR:r,shouldCreateSpanForRequest:i,enableHTTPTimings:s,tracePropagationTargets:o}={traceFetch:Ld.traceFetch,traceXHR:Ld.traceXHR,...t},c=typeof i=="function"?i:f=>!0,u=f=>j5(f,o),d={};n&&(e.addEventProcessor(f=>(f.type==="transaction"&&f.spans&&f.spans.forEach(p=>{if(p.op==="http.client"){const l=jd.get(p.span_id);l&&(p.timestamp=l/1e3,jd.delete(p.span_id))}}),f)),bx(f=>{if(f.response){const p=uy.get(f.response);p&&f.endTimestamp&&jd.set(p,f.endTimestamp)}}),sm(f=>{const p=HC(f,c,u,d);if(f.response&&f.fetchData.__span&&uy.set(f.response,f.fetchData.__span),p){const l=dy(f.fetchData.url),v=l?Ti(l).host:void 0;p.setAttributes({"http.url":l,"server.address":v})}s&&p&&ly(p)})),r&&Gg(f=>{const p=L5(f,c,u,d);s&&p&&ly(p)})}function M5(e){return e.entryType==="resource"&&"initiatorType"in e&&typeof e.nextHopProtocol=="string"&&(e.initiatorType==="fetch"||e.initiatorType==="xmlhttprequest")}function ly(e){const{url:t}=at(e).data||{};if(!t||typeof t!="string")return;const n=us("resource",({entries:r})=>{r.forEach(i=>{M5(i)&&i.name.endsWith(t)&&(P5(i).forEach(o=>e.setAttribute(...o)),setTimeout(n))})})}function D5(e){let t="unknown",n="unknown",r="";for(const i of e){if(i==="/"){[t,n]=e.split("/");break}if(!isNaN(Number(i))){t=r==="h"?"http":r,n=e.split(r)[1];break}r+=i}return r===e&&(t=r),{name:t,version:n}}function br(e=0){return((yn||performance.timeOrigin)+e)/1e3}function P5(e){const{name:t,version:n}=D5(e.nextHopProtocol),r=[];return r.push(["network.protocol.version",n],["network.protocol.name",t]),yn?[...r,["http.request.redirect_start",br(e.redirectStart)],["http.request.fetch_start",br(e.fetchStart)],["http.request.domain_lookup_start",br(e.domainLookupStart)],["http.request.domain_lookup_end",br(e.domainLookupEnd)],["http.request.connect_start",br(e.connectStart)],["http.request.secure_connection_start",br(e.secureConnectionStart)],["http.request.connection_end",br(e.connectEnd)],["http.request.request_start",br(e.requestStart)],["http.request.response_start",br(e.responseStart)],["http.request.response_end",br(e.responseEnd)]]:r}function j5(e,t){const n=Ne.location&&Ne.location.href;if(n){let r,i;try{r=new URL(e,n),i=new URL(n).origin}catch{return!1}const s=r.origin===i;return t?zr(r.toString(),t)||s&&zr(r.pathname,t):s}else{const r=!!e.match(/^\/(?!\/)/);return t?zr(e,t):r}}function L5(e,t,n,r){const i=e.xhr,s=i&&i[Mi];if(!i||i.__sentry_own_request__||!s)return;const o=Or()&&t(s.url);if(e.endTimestamp&&o){const l=i.__sentry_xhr_span_id__;if(!l)return;const v=r[l];v&&s.status_code!==void 0&&(Im(v,s.status_code),v.end(),delete r[l]);return}const c=dy(s.url),u=c?Ti(c).host:void 0,d=!!rn(),f=o&&d?ni({name:`${s.method} ${s.url}`,attributes:{type:"xhr","http.method":s.method,"http.url":c,url:s.url,"server.address":u,[Yt]:"auto.http.browser",[ei]:"http.client"}}):new ss;i.__sentry_xhr_span_id__=f.spanContext().spanId,r[i.__sentry_xhr_span_id__]=f;const p=Xe();return i.setRequestHeader&&n(s.url)&&p&&B5(i,p,Or()&&d?f:void 0),f}function B5(e,t,n){const r=vt(),i=jn(),{traceId:s,spanId:o,sampled:c,dsc:u}={...i.getPropagationContext(),...r.getPropagationContext()},d=n&&Or()?Nm(n):kl(s,o,c),f=vm(u||(n?ti(n):Za(s,t)));F5(e,d,f)}function F5(e,t,n){try{e.setRequestHeader("sentry-trace",t),n&&e.setRequestHeader(Il,n)}catch{}}function dy(e){try{return new URL(e,Ne.location.origin).href}catch{return}}function U5(){Ne&&Ne.document?Ne.document.addEventListener("visibilitychange",()=>{const e=rn();if(!e)return;const t=nn(e);if(Ne.document.hidden&&t){const n="cancelled",{op:r,status:i}=at(t);An&&Se.log(`[Tracing] Transaction: ${n} -> since tab moved to the background, op: ${r}`),i||t.setStatus({code:Zt,message:n}),t.setAttribute("sentry.cancellation_reason","document.hidden"),t.end()}}):An&&Se.warn("[Tracing] Could not set up background tab detection due to lack of global document")}const V5="BrowserTracing",q5={...ec,instrumentNavigation:!0,instrumentPageLoad:!0,markBackgroundSpan:!0,enableLongTask:!0,enableLongAnimationFrame:!0,enableInp:!0,_experiments:{},...Ld},$5=(e={})=>{E2();const{enableInp:t,enableLongTask:n,enableLongAnimationFrame:r,_experiments:{enableInteractions:i,enableStandaloneClsSpans:s},beforeStartSpan:o,idleTimeout:c,finalTimeout:u,childSpanTimeout:d,markBackgroundSpan:f,traceFetch:p,traceXHR:l,shouldCreateSpanForRequest:v,enableHTTPTimings:a,instrumentPageLoad:h,instrumentNavigation:y}={...q5,...e},g=$_({recordClsStandaloneSpans:s||!1});t&&hA(),r&&nt.PerformanceObserver&&PerformanceObserver.supportedEntryTypes&&PerformanceObserver.supportedEntryTypes.includes("long-animation-frame")?H_():n&&G_(),i&&Y_();const b={name:void 0,source:void 0};function w(E,S){const A=S.op==="pageload",T=o?o(S):S,O=T.attributes||{};S.name!==T.name&&(O[gr]="custom",T.attributes=O),b.name=T.name,b.source=O[gr];const M=zm(T,{idleTimeout:c,finalTimeout:u,childSpanTimeout:d,disableAutoFinish:A,beforeSpanEnd:F=>{g(),J_(F,{recordClsOnPageloadSpan:!s})}});function D(){["interactive","complete"].includes(Ne.document.readyState)&&E.emit("idleSpanEnableAutoFinish",M)}return A&&Ne.document&&(Ne.document.addEventListener("readystatechange",()=>{D()}),D()),M}return{name:V5,afterAllSetup(E){let S,A=Ne.location&&Ne.location.href;E.on("startNavigationSpan",T=>{Xe()===E&&(S&&!at(S).timestamp&&(An&&Se.log(`[Tracing] Finishing current root span with op: ${at(S).op}`),S.end()),S=w(E,{op:"navigation",...T}))}),E.on("startPageLoadSpan",(T,O={})=>{if(Xe()!==E)return;S&&!at(S).timestamp&&(An&&Se.log(`[Tracing] Finishing current root span with op: ${at(S).op}`),S.end());const M=O.sentryTrace||hy("sentry-trace"),D=O.baggage||hy("baggage"),F=qx(M,D);vt().setPropagationContext(F),S=w(E,{op:"pageload",...T})}),E.on("spanEnd",T=>{const O=at(T).op;if(T!==nn(T)||O!=="navigation"&&O!=="pageload")return;const M=vt(),D=M.getPropagationContext();M.setPropagationContext({...D,sampled:D.sampled!==void 0?D.sampled:Oi(T),dsc:D.dsc||ti(T)})}),Ne.location&&(h&&fy(E,{name:Ne.location.pathname,startTime:yn?yn/1e3:void 0,attributes:{[gr]:"url",[Yt]:"auto.pageload.browser"}}),y&&uc(({to:T,from:O})=>{if(O===void 0&&A&&A.indexOf(T)!==-1){A=void 0;return}O!==T&&(A=void 0,G5(E,{name:Ne.location.pathname,attributes:{[gr]:"url",[Yt]:"auto.navigation.browser"}}))})),f&&U5(),i&&H5(c,u,d,b),t&&mA(),R5(E,{traceFetch:p,traceXHR:l,tracePropagationTargets:E.getOptions().tracePropagationTargets,shouldCreateSpanForRequest:v,enableHTTPTimings:a})}}};function fy(e,t,n){e.emit("startPageLoadSpan",t,n),vt().setTransactionName(t.name);const r=rn();return(r&&at(r).op)==="pageload"?r:void 0}function G5(e,t){jn().setPropagationContext(Ha()),vt().setPropagationContext(Ha()),e.emit("startNavigationSpan",t),vt().setTransactionName(t.name);const n=rn();return(n&&at(n).op)==="navigation"?n:void 0}function hy(e){const t=rx(`meta[name=${e}]`);return t?t.getAttribute("content"):void 0}function H5(e,t,n,r){let i;const s=()=>{const o="ui.action.click",c=rn(),u=c&&nn(c);if(u){const d=at(u).op;if(["navigation","pageload"].includes(d)){An&&Se.warn(`[Tracing] Did not create ${o} span because a pageload or navigation span is in progress.`);return}}if(i&&(i.setAttribute(jl,"interactionInterrupted"),i.end(),i=void 0),!r.name){An&&Se.warn(`[Tracing] Did not create ${o} transaction because _latestRouteName is missing.`);return}i=zm({name:r.name,op:o,attributes:{[gr]:r.source||"url"}},{idleTimeout:e,finalTimeout:t,childSpanTimeout:n})};Ne.document&&addEventListener("click",s,{once:!1,capture:!0})}function Y5(e){const t={...e};return pg(t,"react"),eg("react",{version:I.version}),nT(t)}function W5(e){const t=e.match(/^([^.]+)/);return t!==null&&parseInt(t[0])>=17}function K5(e,t){const n=new WeakSet;function r(i,s){if(!n.has(i)){if(i.cause)return n.add(i),r(i.cause,s);i.cause=s}}r(e,t)}function z5(e,{componentStack:t},n){if(W5(I.version)&&Pa(e)&&t){const r=new Error(e.message);r.name=`React ErrorBoundary ${e.name}`,r.stack=t,K5(e,r)}return tc(e,{...n,captureContext:{contexts:{react:{componentStack:t}}}})}var Bd={exports:{}},dt={};/** @license React v16.13.1
77
+ or you can use record.mirror to access the mirror instance during recording.`;let l0={map:{},getId(){return console.error(bs),-1},getNode(){return console.error(bs),null},removeNodeFromMap(){console.error(bs)},has(){return console.error(bs),!1},reset(){console.error(bs)}};typeof window<"u"&&window.Proxy&&window.Reflect&&(l0=new Proxy(l0,{get(e,t,n){return t==="map"&&console.error(bs),Reflect.get(e,t,n)}}));function wo(e,t,n={}){let r=null,i=0;return function(...s){const o=Date.now();!i&&n.leading===!1&&(i=o);const c=t-(o-i),u=this;c<=0||c>t?(r&&(ZT(r),r=null),i=o,e.apply(u,s)):!r&&n.trailing!==!1&&(r=wc(()=>{i=n.leading===!1?0:Date.now(),r=null,e.apply(u,s)},c))}}function d0(e,t,n,r,i=window){const s=i.Object.getOwnPropertyDescriptor(e,t);return i.Object.defineProperty(e,t,r?n:{set(o){wc(()=>{n.set.call(this,o)},0),s&&s.set&&s.set.call(this,o)}}),()=>d0(e,t,s||{},!0)}function gd(e,t,n){try{if(!(t in e))return()=>{};const r=e[t],i=n(r);return typeof i=="function"&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__rrweb_original__:{enumerable:!1,value:r}})),e[t]=i,()=>{e[t]=r}}catch{return()=>{}}}let bc=Date.now;/[1-9][0-9]{12}/.test(Date.now().toString())||(bc=()=>new Date().getTime());function f0(e){const t=e.document;return{left:t.scrollingElement?t.scrollingElement.scrollLeft:e.pageXOffset!==void 0?e.pageXOffset:ii([t,"optionalAccess",n=>n.documentElement,"access",n=>n.scrollLeft])||ii([t,"optionalAccess",n=>n.body,"optionalAccess",n=>n.parentElement,"optionalAccess",n=>n.scrollLeft])||ii([t,"optionalAccess",n=>n.body,"optionalAccess",n=>n.scrollLeft])||0,top:t.scrollingElement?t.scrollingElement.scrollTop:e.pageYOffset!==void 0?e.pageYOffset:ii([t,"optionalAccess",n=>n.documentElement,"access",n=>n.scrollTop])||ii([t,"optionalAccess",n=>n.body,"optionalAccess",n=>n.parentElement,"optionalAccess",n=>n.scrollTop])||ii([t,"optionalAccess",n=>n.body,"optionalAccess",n=>n.scrollTop])||0}}function h0(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function p0(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function m0(e){return e?e.nodeType===e.ELEMENT_NODE?e:e.parentElement:null}function Bn(e,t,n,r,i){if(!e)return!1;const s=m0(e);if(!s)return!1;const o=gs(t,n);if(!i){const d=r&&s.matches(r);return o(s)&&!d}const c=Di(s,o);let u=-1;return c<0?!1:(r&&(u=Di(s,gs(null,r))),c>-1&&u<0?!0:c<u)}function YT(e,t){return t.getId(e)!==-1}function yd(e,t){return t.getId(e)===bo}function g0(e,t){if(go(e))return!1;const n=t.getId(e);return t.has(n)?e.parentNode&&e.parentNode.nodeType===e.DOCUMENT_NODE?!1:e.parentNode?g0(e.parentNode,t):!0:!0}function vd(e){return!!e.changedTouches}function WT(e=window){"NodeList"in e&&!e.NodeList.prototype.forEach&&(e.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in e&&!e.DOMTokenList.prototype.forEach&&(e.DOMTokenList.prototype.forEach=Array.prototype.forEach),Node.prototype.contains||(Node.prototype.contains=(...t)=>{let n=t[0];if(!(0 in t))throw new TypeError("1 argument is required");do if(this===n)return!0;while(n=n&&n.parentNode);return!1})}function y0(e,t){return!!(e.nodeName==="IFRAME"&&t.getMeta(e))}function v0(e,t){return!!(e.nodeName==="LINK"&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&e.getAttribute("rel")==="stylesheet"&&t.getMeta(e))}function bd(e){return!!ii([e,"optionalAccess",t=>t.shadowRoot])}class KT{constructor(){this.id=1,this.styleIDMap=new WeakMap,this.idStyleMap=new Map}getId(t){return Xx(this.styleIDMap.get(t),()=>-1)}has(t){return this.styleIDMap.has(t)}add(t,n){if(this.has(t))return this.getId(t);let r;return n===void 0?r=this.id++:r=n,this.styleIDMap.set(t,r),this.idStyleMap.set(r,t),r}getStyle(t){return this.idStyleMap.get(t)||null}reset(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1}generateId(){return this.id++}}function b0(e){let t=null;return ii([e,"access",n=>n.getRootNode,"optionalCall",n=>n(),"optionalAccess",n=>n.nodeType])===Node.DOCUMENT_FRAGMENT_NODE&&e.getRootNode().host&&(t=e.getRootNode().host),t}function zT(e){let t=e,n;for(;n=b0(t);)t=n;return t}function QT(e){const t=e.ownerDocument;if(!t)return!1;const n=zT(e);return t.contains(n)}function w0(e){const t=e.ownerDocument;return t?t.contains(e)||QT(e):!1}const E0={};function wd(e){const t=E0[e];if(t)return t;const n=window.document;let r=window[e];if(n&&typeof n.createElement=="function")try{const i=n.createElement("iframe");i.hidden=!0,n.head.appendChild(i);const s=i.contentWindow;s&&s[e]&&(r=s[e]),n.head.removeChild(i)}catch{}return E0[e]=r.bind(window)}function JT(...e){return wd("requestAnimationFrame")(...e)}function wc(...e){return wd("setTimeout")(...e)}function ZT(...e){return wd("clearTimeout")(...e)}var Ze=(e=>(e[e.DomContentLoaded=0]="DomContentLoaded",e[e.Load=1]="Load",e[e.FullSnapshot=2]="FullSnapshot",e[e.IncrementalSnapshot=3]="IncrementalSnapshot",e[e.Meta=4]="Meta",e[e.Custom=5]="Custom",e[e.Plugin=6]="Plugin",e))(Ze||{}),Ue=(e=>(e[e.Mutation=0]="Mutation",e[e.MouseMove=1]="MouseMove",e[e.MouseInteraction=2]="MouseInteraction",e[e.Scroll=3]="Scroll",e[e.ViewportResize=4]="ViewportResize",e[e.Input=5]="Input",e[e.TouchMove=6]="TouchMove",e[e.MediaInteraction=7]="MediaInteraction",e[e.StyleSheetRule=8]="StyleSheetRule",e[e.CanvasMutation=9]="CanvasMutation",e[e.Font=10]="Font",e[e.Log=11]="Log",e[e.Drag=12]="Drag",e[e.StyleDeclaration=13]="StyleDeclaration",e[e.Selection=14]="Selection",e[e.AdoptedStyleSheet=15]="AdoptedStyleSheet",e[e.CustomElement=16]="CustomElement",e))(Ue||{}),En=(e=>(e[e.MouseUp=0]="MouseUp",e[e.MouseDown=1]="MouseDown",e[e.Click=2]="Click",e[e.ContextMenu=3]="ContextMenu",e[e.DblClick=4]="DblClick",e[e.Focus=5]="Focus",e[e.Blur=6]="Blur",e[e.TouchStart=7]="TouchStart",e[e.TouchMove_Departed=8]="TouchMove_Departed",e[e.TouchEnd=9]="TouchEnd",e[e.TouchCancel=10]="TouchCancel",e))(En||{}),Nr=(e=>(e[e.Mouse=0]="Mouse",e[e.Pen=1]="Pen",e[e.Touch=2]="Touch",e))(Nr||{});function XT(e){let t,n=e[0],r=1;for(;r<e.length;){const i=e[r],s=e[r+1];if(r+=2,(i==="optionalAccess"||i==="optionalCall")&&n==null)return;i==="access"||i==="optionalAccess"?(t=n,n=s(n)):(i==="call"||i==="optionalCall")&&(n=s((...o)=>n.call(t,...o)),t=void 0)}return n}function S0(e){return"__ln"in e}class e4{constructor(){this.length=0,this.head=null,this.tail=null}get(t){if(t>=this.length)throw new Error("Position outside of list range");let n=this.head;for(let r=0;r<t;r++)n=XT([n,"optionalAccess",i=>i.next])||null;return n}addNode(t){const n={value:t,previous:null,next:null};if(t.__ln=n,t.previousSibling&&S0(t.previousSibling)){const r=t.previousSibling.__ln.next;n.next=r,n.previous=t.previousSibling.__ln,t.previousSibling.__ln.next=n,r&&(r.previous=n)}else if(t.nextSibling&&S0(t.nextSibling)&&t.nextSibling.__ln.previous){const r=t.nextSibling.__ln.previous;n.previous=r,n.next=t.nextSibling.__ln,t.nextSibling.__ln.previous=n,r&&(r.next=n)}else this.head&&(this.head.previous=n),n.next=this.head,this.head=n;n.next===null&&(this.tail=n),this.length++}removeNode(t){const n=t.__ln;this.head&&(n.previous?(n.previous.next=n.next,n.next?n.next.previous=n.previous:this.tail=n.previous):(this.head=n.next,this.head?this.head.previous=null:this.tail=null),t.__ln&&delete t.__ln,this.length--)}}const x0=(e,t)=>`${e}@${t}`;class t4{constructor(){this.frozen=!1,this.locked=!1,this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.mapRemoves=[],this.movedMap={},this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.processMutations=t=>{t.forEach(this.processMutation),this.emit()},this.emit=()=>{if(this.frozen||this.locked)return;const t=[],n=new Set,r=new e4,i=u=>{let d=u,f=bo;for(;f===bo;)d=d&&d.nextSibling,f=d&&this.mirror.getId(d);return f},s=u=>{if(!u.parentNode||!w0(u))return;const d=go(u.parentNode)?this.mirror.getId(b0(u)):this.mirror.getId(u.parentNode),f=i(u);if(d===-1||f===-1)return r.addNode(u);const p=vs(u,{doc:this.doc,mirror:this.mirror,blockClass:this.blockClass,blockSelector:this.blockSelector,maskAllText:this.maskAllText,unblockSelector:this.unblockSelector,maskTextClass:this.maskTextClass,unmaskTextClass:this.unmaskTextClass,maskTextSelector:this.maskTextSelector,unmaskTextSelector:this.unmaskTextSelector,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:this.inlineStylesheet,maskInputOptions:this.maskInputOptions,maskAttributeFn:this.maskAttributeFn,maskTextFn:this.maskTextFn,maskInputFn:this.maskInputFn,slimDOMOptions:this.slimDOMOptions,dataURLOptions:this.dataURLOptions,recordCanvas:this.recordCanvas,inlineImages:this.inlineImages,onSerialize:l=>{y0(l,this.mirror)&&!Bn(l,this.blockClass,this.blockSelector,this.unblockSelector,!1)&&this.iframeManager.addIframe(l),v0(l,this.mirror)&&this.stylesheetManager.trackLinkElement(l),bd(u)&&this.shadowDomManager.addShadowRoot(u.shadowRoot,this.doc)},onIframeLoad:(l,v)=>{Bn(l,this.blockClass,this.blockSelector,this.unblockSelector,!1)||(this.iframeManager.attachIframe(l,v),l.contentWindow&&this.canvasManager.addWindow(l.contentWindow),this.shadowDomManager.observeAttachShadow(l))},onStylesheetLoad:(l,v)=>{this.stylesheetManager.attachLinkElement(l,v)}});p&&(t.push({parentId:d,nextId:f,node:p}),n.add(p.id))};for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(const u of this.movedSet)C0(this.removes,u,this.mirror)&&!this.movedSet.has(u.parentNode)||s(u);for(const u of this.addedSet)!_0(this.droppedSet,u)&&!C0(this.removes,u,this.mirror)||_0(this.movedSet,u)?s(u):this.droppedSet.add(u);let o=null;for(;r.length;){let u=null;if(o){const d=this.mirror.getId(o.value.parentNode),f=i(o.value);d!==-1&&f!==-1&&(u=o)}if(!u){let d=r.tail;for(;d;){const f=d;if(d=d.previous,f){const p=this.mirror.getId(f.value.parentNode);if(i(f.value)===-1)continue;if(p!==-1){u=f;break}else{const v=f.value;if(v.parentNode&&v.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE){const a=v.parentNode.host;if(this.mirror.getId(a)!==-1){u=f;break}}}}}}if(!u){for(;r.head;)r.removeNode(r.head.value);break}o=u.previous,r.removeNode(u.value),s(u.value)}const c={texts:this.texts.map(u=>({id:this.mirror.getId(u.node),value:u.value})).filter(u=>!n.has(u.id)).filter(u=>this.mirror.has(u.id)),attributes:this.attributes.map(u=>{const{attributes:d}=u;if(typeof d.style=="string"){const f=JSON.stringify(u.styleDiff),p=JSON.stringify(u._unchangedStyles);f.length<d.style.length&&(f+p).split("var(").length===d.style.split("var(").length&&(d.style=u.styleDiff)}return{id:this.mirror.getId(u.node),attributes:d}}).filter(u=>!n.has(u.id)).filter(u=>this.mirror.has(u.id)),removes:this.removes,adds:t};!c.texts.length&&!c.attributes.length&&!c.removes.length&&!c.adds.length||(this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.movedMap={},this.mutationCb(c))},this.processMutation=t=>{if(!yd(t.target,this.mirror))switch(t.type){case"characterData":{const n=t.target.textContent;!Bn(t.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)&&n!==t.oldValue&&this.texts.push({value:ys(t.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,this.maskAllText)&&n?this.maskTextFn?this.maskTextFn(n,m0(t.target)):n.replace(/[\S]/g,"*"):n,node:t.target});break}case"attributes":{const n=t.target;let r=t.attributeName,i=t.target.getAttribute(r);if(r==="value"){const o=hd(n),c=n.tagName;i=gc(n,c,o);const u=mc({maskInputOptions:this.maskInputOptions,tagName:c,type:o}),d=ys(t.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,u);i=vo({isMasked:d,element:n,value:i,maskInputFn:this.maskInputFn})}if(Bn(t.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||i===t.oldValue)return;let s=this.attributeMap.get(t.target);if(n.tagName==="IFRAME"&&r==="src"&&!this.keepIframeSrcFn(i))if(!n.contentDocument)r="rr_src";else return;if(s||(s={node:t.target,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(s),this.attributeMap.set(t.target,s)),r==="type"&&n.tagName==="INPUT"&&(t.oldValue||"").toLowerCase()==="password"&&n.setAttribute("data-rr-is-password","true"),!u0(n.tagName,r)&&(s.attributes[r]=c0(this.doc,hs(n.tagName),hs(r),i,n,this.maskAttributeFn),r==="style")){if(!this.unattachedDoc)try{this.unattachedDoc=document.implementation.createHTMLDocument()}catch{this.unattachedDoc=this.doc}const o=this.unattachedDoc.createElement("span");t.oldValue&&o.setAttribute("style",t.oldValue);for(const c of Array.from(n.style)){const u=n.style.getPropertyValue(c),d=n.style.getPropertyPriority(c);u!==o.style.getPropertyValue(c)||d!==o.style.getPropertyPriority(c)?d===""?s.styleDiff[c]=u:s.styleDiff[c]=[u,d]:s._unchangedStyles[c]=[u,d]}for(const c of Array.from(o.style))n.style.getPropertyValue(c)===""&&(s.styleDiff[c]=!1)}break}case"childList":{if(Bn(t.target,this.blockClass,this.blockSelector,this.unblockSelector,!0))return;t.addedNodes.forEach(n=>this.genAdds(n,t.target)),t.removedNodes.forEach(n=>{const r=this.mirror.getId(n),i=go(t.target)?this.mirror.getId(t.target.host):this.mirror.getId(t.target);Bn(t.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||yd(n,this.mirror)||!YT(n,this.mirror)||(this.addedSet.has(n)?(Ed(this.addedSet,n),this.droppedSet.add(n)):this.addedSet.has(t.target)&&r===-1||g0(t.target,this.mirror)||(this.movedSet.has(n)&&this.movedMap[x0(r,i)]?Ed(this.movedSet,n):this.removes.push({parentId:i,id:r,isShadow:go(t.target)&&yo(t.target)?!0:void 0})),this.mapRemoves.push(n))});break}}},this.genAdds=(t,n)=>{if(!this.processedNodeManager.inOtherBuffer(t,this)&&!(this.addedSet.has(t)||this.movedSet.has(t))){if(this.mirror.hasNode(t)){if(yd(t,this.mirror))return;this.movedSet.add(t);let r=null;n&&this.mirror.hasNode(n)&&(r=this.mirror.getId(n)),r&&r!==-1&&(this.movedMap[x0(this.mirror.getId(t),r)]=!0)}else this.addedSet.add(t),this.droppedSet.delete(t);Bn(t,this.blockClass,this.blockSelector,this.unblockSelector,!1)||(t.childNodes.forEach(r=>this.genAdds(r)),bd(t)&&t.shadowRoot.childNodes.forEach(r=>{this.processedNodeManager.add(r,this),this.genAdds(r,t)}))}}}init(t){["mutationCb","blockClass","blockSelector","unblockSelector","maskAllText","maskTextClass","unmaskTextClass","maskTextSelector","unmaskTextSelector","inlineStylesheet","maskInputOptions","maskAttributeFn","maskTextFn","maskInputFn","keepIframeSrcFn","recordCanvas","inlineImages","slimDOMOptions","dataURLOptions","doc","mirror","iframeManager","stylesheetManager","shadowDomManager","canvasManager","processedNodeManager"].forEach(n=>{this[n]=t[n]})}freeze(){this.frozen=!0,this.canvasManager.freeze()}unfreeze(){this.frozen=!1,this.canvasManager.unfreeze(),this.emit()}isFrozen(){return this.frozen}lock(){this.locked=!0,this.canvasManager.lock()}unlock(){this.locked=!1,this.canvasManager.unlock(),this.emit()}reset(){this.shadowDomManager.reset(),this.canvasManager.reset()}}function Ed(e,t){e.delete(t),t.childNodes.forEach(n=>Ed(e,n))}function C0(e,t,n){return e.length===0?!1:n4(e,t,n)}function n4(e,t,n){let r=t.parentNode;for(;r;){const i=n.getId(r);if(e.some(s=>s.id===i))return!0;r=r.parentNode}return!1}function _0(e,t){return e.size===0?!1:A0(e,t)}function A0(e,t){const{parentNode:n}=t;return n?e.has(n)?!0:A0(e,n):!1}let Eo;function r4(e){Eo=e}function i4(){Eo=void 0}const st=e=>Eo?(...n)=>{try{return e(...n)}catch(r){if(Eo&&Eo(r)===!0)return()=>{};throw r}}:e;function sr(e){let t,n=e[0],r=1;for(;r<e.length;){const i=e[r],s=e[r+1];if(r+=2,(i==="optionalAccess"||i==="optionalCall")&&n==null)return;i==="access"||i==="optionalAccess"?(t=n,n=s(n)):(i==="call"||i==="optionalCall")&&(n=s((...o)=>n.call(t,...o)),t=void 0)}return n}const ws=[];function So(e){try{if("composedPath"in e){const t=e.composedPath();if(t.length)return t[0]}else if("path"in e&&e.path.length)return e.path[0]}catch{}return e&&e.target}function T0(e,t){const n=new t4;ws.push(n),n.init(e);let r=window.MutationObserver||window.__rrMutationObserver;const i=sr([window,"optionalAccess",o=>o.Zone,"optionalAccess",o=>o.__symbol__,"optionalCall",o=>o("MutationObserver")]);i&&window[i]&&(r=window[i]);const s=new r(st(o=>{e.onMutation&&e.onMutation(o)===!1||n.processMutations.bind(n)(o)}));return s.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),s}function s4({mousemoveCb:e,sampling:t,doc:n,mirror:r}){if(t.mousemove===!1)return()=>{};const i=typeof t.mousemove=="number"?t.mousemove:50,s=typeof t.mousemoveCallback=="number"?t.mousemoveCallback:500;let o=[],c;const u=wo(st(p=>{const l=Date.now()-c;e(o.map(v=>(v.timeOffset-=l,v)),p),o=[],c=null}),s),d=st(wo(st(p=>{const l=So(p),{clientX:v,clientY:a}=vd(p)?p.changedTouches[0]:p;c||(c=bc()),o.push({x:v,y:a,id:r.getId(l),timeOffset:bc()-c}),u(typeof DragEvent<"u"&&p instanceof DragEvent?Ue.Drag:p instanceof MouseEvent?Ue.MouseMove:Ue.TouchMove)}),i,{trailing:!1})),f=[wn("mousemove",d,n),wn("touchmove",d,n),wn("drag",d,n)];return st(()=>{f.forEach(p=>p())})}function o4({mouseInteractionCb:e,doc:t,mirror:n,blockClass:r,blockSelector:i,unblockSelector:s,sampling:o}){if(o.mouseInteraction===!1)return()=>{};const c=o.mouseInteraction===!0||o.mouseInteraction===void 0?{}:o.mouseInteraction,u=[];let d=null;const f=p=>l=>{const v=So(l);if(Bn(v,r,i,s,!0))return;let a=null,h=p;if("pointerType"in l){switch(l.pointerType){case"mouse":a=Nr.Mouse;break;case"touch":a=Nr.Touch;break;case"pen":a=Nr.Pen;break}a===Nr.Touch?En[p]===En.MouseDown?h="TouchStart":En[p]===En.MouseUp&&(h="TouchEnd"):Nr.Pen}else vd(l)&&(a=Nr.Touch);a!==null?(d=a,(h.startsWith("Touch")&&a===Nr.Touch||h.startsWith("Mouse")&&a===Nr.Mouse)&&(a=null)):En[p]===En.Click&&(a=d,d=null);const y=vd(l)?l.changedTouches[0]:l;if(!y)return;const g=n.getId(v),{clientX:b,clientY:w}=y;st(e)({type:En[h],id:g,x:b,y:w,...a!==null&&{pointerType:a}})};return Object.keys(En).filter(p=>Number.isNaN(Number(p))&&!p.endsWith("_Departed")&&c[p]!==!1).forEach(p=>{let l=hs(p);const v=f(p);if(window.PointerEvent)switch(En[p]){case En.MouseDown:case En.MouseUp:l=l.replace("mouse","pointer");break;case En.TouchStart:case En.TouchEnd:return}u.push(wn(l,v,t))}),st(()=>{u.forEach(p=>p())})}function I0({scrollCb:e,doc:t,mirror:n,blockClass:r,blockSelector:i,unblockSelector:s,sampling:o}){const c=st(wo(st(u=>{const d=So(u);if(!d||Bn(d,r,i,s,!0))return;const f=n.getId(d);if(d===t&&t.defaultView){const p=f0(t.defaultView);e({id:f,x:p.left,y:p.top})}else e({id:f,x:d.scrollLeft,y:d.scrollTop})}),o.scroll||100));return wn("scroll",c,t)}function a4({viewportResizeCb:e},{win:t}){let n=-1,r=-1;const i=st(wo(st(()=>{const s=h0(),o=p0();(n!==s||r!==o)&&(e({width:Number(o),height:Number(s)}),n=s,r=o)}),200));return wn("resize",i,t)}const c4=["INPUT","TEXTAREA","SELECT"],k0=new WeakMap;function u4({inputCb:e,doc:t,mirror:n,blockClass:r,blockSelector:i,unblockSelector:s,ignoreClass:o,ignoreSelector:c,maskInputOptions:u,maskInputFn:d,sampling:f,userTriggeredOnInput:p,maskTextClass:l,unmaskTextClass:v,maskTextSelector:a,unmaskTextSelector:h}){function y(T){let O=So(T);const M=T.isTrusted,D=O&&fd(O.tagName);if(D==="OPTION"&&(O=O.parentElement),!O||!D||c4.indexOf(D)<0||Bn(O,r,i,s,!0))return;const F=O;if(F.classList.contains(o)||c&&F.matches(c))return;const V=hd(O);let G=gc(F,D,V),U=!1;const R=mc({maskInputOptions:u,tagName:D,type:V}),L=ys(O,l,a,v,h,R);(V==="radio"||V==="checkbox")&&(U=O.checked),G=vo({isMasked:L,element:O,value:G,maskInputFn:d}),g(O,p?{text:G,isChecked:U,userTriggered:M}:{text:G,isChecked:U});const Y=O.name;V==="radio"&&Y&&U&&t.querySelectorAll(`input[type="radio"][name="${Y}"]`).forEach(z=>{if(z!==O){const ee=vo({isMasked:L,element:z,value:gc(z,D,V),maskInputFn:d});g(z,p?{text:ee,isChecked:!U,userTriggered:!1}:{text:ee,isChecked:!U})}})}function g(T,O){const M=k0.get(T);if(!M||M.text!==O.text||M.isChecked!==O.isChecked){k0.set(T,O);const D=n.getId(T);st(e)({...O,id:D})}}const w=(f.input==="last"?["change"]:["input","change"]).map(T=>wn(T,st(y),t)),E=t.defaultView;if(!E)return()=>{w.forEach(T=>T())};const S=E.Object.getOwnPropertyDescriptor(E.HTMLInputElement.prototype,"value"),A=[[E.HTMLInputElement.prototype,"value"],[E.HTMLInputElement.prototype,"checked"],[E.HTMLSelectElement.prototype,"value"],[E.HTMLTextAreaElement.prototype,"value"],[E.HTMLSelectElement.prototype,"selectedIndex"],[E.HTMLOptionElement.prototype,"selected"]];return S&&S.set&&w.push(...A.map(T=>d0(T[0],T[1],{set(){st(y)({target:this,isTrusted:!1})}},!1,E))),st(()=>{w.forEach(T=>T())})}function Ec(e){const t=[];function n(r,i){if(Sc("CSSGroupingRule")&&r.parentRule instanceof CSSGroupingRule||Sc("CSSMediaRule")&&r.parentRule instanceof CSSMediaRule||Sc("CSSSupportsRule")&&r.parentRule instanceof CSSSupportsRule||Sc("CSSConditionRule")&&r.parentRule instanceof CSSConditionRule){const o=Array.from(r.parentRule.cssRules).indexOf(r);i.unshift(o)}else if(r.parentStyleSheet){const o=Array.from(r.parentStyleSheet.cssRules).indexOf(r);i.unshift(o)}return i}return n(e,t)}function si(e,t,n){let r,i;return e?(e.ownerNode?r=t.getId(e.ownerNode):i=n.getId(e),{styleId:i,id:r}):{}}function l4({styleSheetRuleCb:e,mirror:t,stylesheetManager:n},{win:r}){if(!r.CSSStyleSheet||!r.CSSStyleSheet.prototype)return()=>{};const i=r.CSSStyleSheet.prototype.insertRule;r.CSSStyleSheet.prototype.insertRule=new Proxy(i,{apply:st((f,p,l)=>{const[v,a]=l,{id:h,styleId:y}=si(p,t,n.styleMirror);return(h&&h!==-1||y&&y!==-1)&&e({id:h,styleId:y,adds:[{rule:v,index:a}]}),f.apply(p,l)})});const s=r.CSSStyleSheet.prototype.deleteRule;r.CSSStyleSheet.prototype.deleteRule=new Proxy(s,{apply:st((f,p,l)=>{const[v]=l,{id:a,styleId:h}=si(p,t,n.styleMirror);return(a&&a!==-1||h&&h!==-1)&&e({id:a,styleId:h,removes:[{index:v}]}),f.apply(p,l)})});let o;r.CSSStyleSheet.prototype.replace&&(o=r.CSSStyleSheet.prototype.replace,r.CSSStyleSheet.prototype.replace=new Proxy(o,{apply:st((f,p,l)=>{const[v]=l,{id:a,styleId:h}=si(p,t,n.styleMirror);return(a&&a!==-1||h&&h!==-1)&&e({id:a,styleId:h,replace:v}),f.apply(p,l)})}));let c;r.CSSStyleSheet.prototype.replaceSync&&(c=r.CSSStyleSheet.prototype.replaceSync,r.CSSStyleSheet.prototype.replaceSync=new Proxy(c,{apply:st((f,p,l)=>{const[v]=l,{id:a,styleId:h}=si(p,t,n.styleMirror);return(a&&a!==-1||h&&h!==-1)&&e({id:a,styleId:h,replaceSync:v}),f.apply(p,l)})}));const u={};xc("CSSGroupingRule")?u.CSSGroupingRule=r.CSSGroupingRule:(xc("CSSMediaRule")&&(u.CSSMediaRule=r.CSSMediaRule),xc("CSSConditionRule")&&(u.CSSConditionRule=r.CSSConditionRule),xc("CSSSupportsRule")&&(u.CSSSupportsRule=r.CSSSupportsRule));const d={};return Object.entries(u).forEach(([f,p])=>{d[f]={insertRule:p.prototype.insertRule,deleteRule:p.prototype.deleteRule},p.prototype.insertRule=new Proxy(d[f].insertRule,{apply:st((l,v,a)=>{const[h,y]=a,{id:g,styleId:b}=si(v.parentStyleSheet,t,n.styleMirror);return(g&&g!==-1||b&&b!==-1)&&e({id:g,styleId:b,adds:[{rule:h,index:[...Ec(v),y||0]}]}),l.apply(v,a)})}),p.prototype.deleteRule=new Proxy(d[f].deleteRule,{apply:st((l,v,a)=>{const[h]=a,{id:y,styleId:g}=si(v.parentStyleSheet,t,n.styleMirror);return(y&&y!==-1||g&&g!==-1)&&e({id:y,styleId:g,removes:[{index:[...Ec(v),h]}]}),l.apply(v,a)})})}),st(()=>{r.CSSStyleSheet.prototype.insertRule=i,r.CSSStyleSheet.prototype.deleteRule=s,o&&(r.CSSStyleSheet.prototype.replace=o),c&&(r.CSSStyleSheet.prototype.replaceSync=c),Object.entries(u).forEach(([f,p])=>{p.prototype.insertRule=d[f].insertRule,p.prototype.deleteRule=d[f].deleteRule})})}function O0({mirror:e,stylesheetManager:t},n){let r=null;n.nodeName==="#document"?r=e.getId(n):r=e.getId(n.host);const i=n.nodeName==="#document"?sr([n,"access",o=>o.defaultView,"optionalAccess",o=>o.Document]):sr([n,"access",o=>o.ownerDocument,"optionalAccess",o=>o.defaultView,"optionalAccess",o=>o.ShadowRoot]),s=sr([i,"optionalAccess",o=>o.prototype])?Object.getOwnPropertyDescriptor(sr([i,"optionalAccess",o=>o.prototype]),"adoptedStyleSheets"):void 0;return r===null||r===-1||!i||!s?()=>{}:(Object.defineProperty(n,"adoptedStyleSheets",{configurable:s.configurable,enumerable:s.enumerable,get(){return sr([s,"access",o=>o.get,"optionalAccess",o=>o.call,"call",o=>o(this)])},set(o){const c=sr([s,"access",u=>u.set,"optionalAccess",u=>u.call,"call",u=>u(this,o)]);if(r!==null&&r!==-1)try{t.adoptStyleSheets(o,r)}catch{}return c}}),st(()=>{Object.defineProperty(n,"adoptedStyleSheets",{configurable:s.configurable,enumerable:s.enumerable,get:s.get,set:s.set})}))}function d4({styleDeclarationCb:e,mirror:t,ignoreCSSAttributes:n,stylesheetManager:r},{win:i}){const s=i.CSSStyleDeclaration.prototype.setProperty;i.CSSStyleDeclaration.prototype.setProperty=new Proxy(s,{apply:st((c,u,d)=>{const[f,p,l]=d;if(n.has(f))return s.apply(u,[f,p,l]);const{id:v,styleId:a}=si(sr([u,"access",h=>h.parentRule,"optionalAccess",h=>h.parentStyleSheet]),t,r.styleMirror);return(v&&v!==-1||a&&a!==-1)&&e({id:v,styleId:a,set:{property:f,value:p,priority:l},index:Ec(u.parentRule)}),c.apply(u,d)})});const o=i.CSSStyleDeclaration.prototype.removeProperty;return i.CSSStyleDeclaration.prototype.removeProperty=new Proxy(o,{apply:st((c,u,d)=>{const[f]=d;if(n.has(f))return o.apply(u,[f]);const{id:p,styleId:l}=si(sr([u,"access",v=>v.parentRule,"optionalAccess",v=>v.parentStyleSheet]),t,r.styleMirror);return(p&&p!==-1||l&&l!==-1)&&e({id:p,styleId:l,remove:{property:f},index:Ec(u.parentRule)}),c.apply(u,d)})}),st(()=>{i.CSSStyleDeclaration.prototype.setProperty=s,i.CSSStyleDeclaration.prototype.removeProperty=o})}function f4({mediaInteractionCb:e,blockClass:t,blockSelector:n,unblockSelector:r,mirror:i,sampling:s,doc:o}){const c=st(d=>wo(st(f=>{const p=So(f);if(!p||Bn(p,t,n,r,!0))return;const{currentTime:l,volume:v,muted:a,playbackRate:h}=p;e({type:d,id:i.getId(p),currentTime:l,volume:v,muted:a,playbackRate:h})}),s.media||500)),u=[wn("play",c(0),o),wn("pause",c(1),o),wn("seeked",c(2),o),wn("volumechange",c(3),o),wn("ratechange",c(4),o)];return st(()=>{u.forEach(d=>d())})}function h4({fontCb:e,doc:t}){const n=t.defaultView;if(!n)return()=>{};const r=[],i=new WeakMap,s=n.FontFace;n.FontFace=function(u,d,f){const p=new s(u,d,f);return i.set(p,{family:u,buffer:typeof d!="string",descriptors:f,fontSource:typeof d=="string"?d:JSON.stringify(Array.from(new Uint8Array(d)))}),p};const o=gd(t.fonts,"add",function(c){return function(u){return wc(st(()=>{const d=i.get(u);d&&(e(d),i.delete(u))}),0),c.apply(this,[u])}});return r.push(()=>{n.FontFace=s}),r.push(o),st(()=>{r.forEach(c=>c())})}function p4(e){const{doc:t,mirror:n,blockClass:r,blockSelector:i,unblockSelector:s,selectionCb:o}=e;let c=!0;const u=st(()=>{const d=t.getSelection();if(!d||c&&sr([d,"optionalAccess",l=>l.isCollapsed]))return;c=d.isCollapsed||!1;const f=[],p=d.rangeCount||0;for(let l=0;l<p;l++){const v=d.getRangeAt(l),{startContainer:a,startOffset:h,endContainer:y,endOffset:g}=v;Bn(a,r,i,s,!0)||Bn(y,r,i,s,!0)||f.push({start:n.getId(a),startOffset:h,end:n.getId(y),endOffset:g})}o({ranges:f})});return u(),wn("selectionchange",u)}function m4({doc:e,customElementCb:t}){const n=e.defaultView;return!n||!n.customElements?()=>{}:gd(n.customElements,"define",function(i){return function(s,o,c){try{t({define:{name:s}})}catch{}return i.apply(this,[s,o,c])}})}function g4(e,t={}){const n=e.doc.defaultView;if(!n)return()=>{};let r;e.recordDOM&&(r=T0(e,e.doc));const i=s4(e),s=o4(e),o=I0(e),c=a4(e,{win:n}),u=u4(e),d=f4(e);let f=()=>{},p=()=>{},l=()=>{},v=()=>{};e.recordDOM&&(f=l4(e,{win:n}),p=O0(e,e.doc),l=d4(e,{win:n}),e.collectFonts&&(v=h4(e)));const a=p4(e),h=m4(e),y=[];for(const g of e.plugins)y.push(g.observer(g.callback,n,g.options));return st(()=>{ws.forEach(g=>g.reset()),sr([r,"optionalAccess",g=>g.disconnect,"call",g=>g()]),i(),s(),o(),c(),u(),d(),f(),p(),l(),v(),a(),h(),y.forEach(g=>g())})}function Sc(e){return typeof window[e]<"u"}function xc(e){return!!(typeof window[e]<"u"&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}class Sd{constructor(t){this.generateIdFn=t,this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap}getId(t,n,r,i){const s=r||this.getIdToRemoteIdMap(t),o=i||this.getRemoteIdToIdMap(t);let c=s.get(n);return c||(c=this.generateIdFn(),s.set(n,c),o.set(c,n)),c}getIds(t,n){const r=this.getIdToRemoteIdMap(t),i=this.getRemoteIdToIdMap(t);return n.map(s=>this.getId(t,s,r,i))}getRemoteId(t,n,r){const i=r||this.getRemoteIdToIdMap(t);if(typeof n!="number")return n;const s=i.get(n);return s||-1}getRemoteIds(t,n){const r=this.getRemoteIdToIdMap(t);return n.map(i=>this.getRemoteId(t,i,r))}reset(t){if(!t){this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap;return}this.iframeIdToRemoteIdMap.delete(t),this.iframeRemoteIdToIdMap.delete(t)}getIdToRemoteIdMap(t){let n=this.iframeIdToRemoteIdMap.get(t);return n||(n=new Map,this.iframeIdToRemoteIdMap.set(t,n)),n}getRemoteIdToIdMap(t){let n=this.iframeRemoteIdToIdMap.get(t);return n||(n=new Map,this.iframeRemoteIdToIdMap.set(t,n)),n}}function R0(e){let t,n=e[0],r=1;for(;r<e.length;){const i=e[r],s=e[r+1];if(r+=2,(i==="optionalAccess"||i==="optionalCall")&&n==null)return;i==="access"||i==="optionalAccess"?(t=n,n=s(n)):(i==="call"||i==="optionalCall")&&(n=s((...o)=>n.call(t,...o)),t=void 0)}return n}class y4{constructor(){this.crossOriginIframeMirror=new Sd(md),this.crossOriginIframeRootIdMap=new WeakMap}addIframe(){}addLoadListener(){}attachIframe(){}}class v4{constructor(t){this.iframes=new WeakMap,this.crossOriginIframeMap=new WeakMap,this.crossOriginIframeMirror=new Sd(md),this.crossOriginIframeRootIdMap=new WeakMap,this.mutationCb=t.mutationCb,this.wrappedEmit=t.wrappedEmit,this.stylesheetManager=t.stylesheetManager,this.recordCrossOriginIframes=t.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new Sd(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=t.mirror,this.recordCrossOriginIframes&&window.addEventListener("message",this.handleMessage.bind(this))}addIframe(t){this.iframes.set(t,!0),t.contentWindow&&this.crossOriginIframeMap.set(t.contentWindow,t)}addLoadListener(t){this.loadListener=t}attachIframe(t,n){this.mutationCb({adds:[{parentId:this.mirror.getId(t),nextId:null,node:n}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),R0([this,"access",r=>r.loadListener,"optionalCall",r=>r(t)]),t.contentDocument&&t.contentDocument.adoptedStyleSheets&&t.contentDocument.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(t.contentDocument.adoptedStyleSheets,this.mirror.getId(t.contentDocument))}handleMessage(t){const n=t;if(n.data.type!=="rrweb"||n.origin!==n.data.origin||!t.source)return;const i=this.crossOriginIframeMap.get(t.source);if(!i)return;const s=this.transformCrossOriginEvent(i,n.data.event);s&&this.wrappedEmit(s,n.data.isCheckout)}transformCrossOriginEvent(t,n){switch(n.type){case Ze.FullSnapshot:{this.crossOriginIframeMirror.reset(t),this.crossOriginIframeStyleMirror.reset(t),this.replaceIdOnNode(n.data.node,t);const r=n.data.node.id;return this.crossOriginIframeRootIdMap.set(t,r),this.patchRootIdOnNode(n.data.node,r),{timestamp:n.timestamp,type:Ze.IncrementalSnapshot,data:{source:Ue.Mutation,adds:[{parentId:this.mirror.getId(t),nextId:null,node:n.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case Ze.Meta:case Ze.Load:case Ze.DomContentLoaded:return!1;case Ze.Plugin:return n;case Ze.Custom:return this.replaceIds(n.data.payload,t,["id","parentId","previousId","nextId"]),n;case Ze.IncrementalSnapshot:switch(n.data.source){case Ue.Mutation:return n.data.adds.forEach(r=>{this.replaceIds(r,t,["parentId","nextId","previousId"]),this.replaceIdOnNode(r.node,t);const i=this.crossOriginIframeRootIdMap.get(t);i&&this.patchRootIdOnNode(r.node,i)}),n.data.removes.forEach(r=>{this.replaceIds(r,t,["parentId","id"])}),n.data.attributes.forEach(r=>{this.replaceIds(r,t,["id"])}),n.data.texts.forEach(r=>{this.replaceIds(r,t,["id"])}),n;case Ue.Drag:case Ue.TouchMove:case Ue.MouseMove:return n.data.positions.forEach(r=>{this.replaceIds(r,t,["id"])}),n;case Ue.ViewportResize:return!1;case Ue.MediaInteraction:case Ue.MouseInteraction:case Ue.Scroll:case Ue.CanvasMutation:case Ue.Input:return this.replaceIds(n.data,t,["id"]),n;case Ue.StyleSheetRule:case Ue.StyleDeclaration:return this.replaceIds(n.data,t,["id"]),this.replaceStyleIds(n.data,t,["styleId"]),n;case Ue.Font:return n;case Ue.Selection:return n.data.ranges.forEach(r=>{this.replaceIds(r,t,["start","end"])}),n;case Ue.AdoptedStyleSheet:return this.replaceIds(n.data,t,["id"]),this.replaceStyleIds(n.data,t,["styleIds"]),R0([n,"access",r=>r.data,"access",r=>r.styles,"optionalAccess",r=>r.forEach,"call",r=>r(i=>{this.replaceStyleIds(i,t,["styleId"])})]),n}}return!1}replace(t,n,r,i){for(const s of i)!Array.isArray(n[s])&&typeof n[s]!="number"||(Array.isArray(n[s])?n[s]=t.getIds(r,n[s]):n[s]=t.getId(r,n[s]));return n}replaceIds(t,n,r){return this.replace(this.crossOriginIframeMirror,t,n,r)}replaceStyleIds(t,n,r){return this.replace(this.crossOriginIframeStyleMirror,t,n,r)}replaceIdOnNode(t,n){this.replaceIds(t,n,["id","rootId"]),"childNodes"in t&&t.childNodes.forEach(r=>{this.replaceIdOnNode(r,n)})}patchRootIdOnNode(t,n){t.type!==Kt.Document&&!t.rootId&&(t.rootId=n),"childNodes"in t&&t.childNodes.forEach(r=>{this.patchRootIdOnNode(r,n)})}}class b4{init(){}addShadowRoot(){}observeAttachShadow(){}reset(){}}class w4{constructor(t){this.shadowDoms=new WeakSet,this.restoreHandlers=[],this.mutationCb=t.mutationCb,this.scrollCb=t.scrollCb,this.bypassOptions=t.bypassOptions,this.mirror=t.mirror,this.init()}init(){this.reset(),this.patchAttachShadow(Element,document)}addShadowRoot(t,n){if(!yo(t)||this.shadowDoms.has(t))return;this.shadowDoms.add(t),this.bypassOptions.canvasManager.addShadowRoot(t);const r=T0({...this.bypassOptions,doc:n,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this},t);this.restoreHandlers.push(()=>r.disconnect()),this.restoreHandlers.push(I0({...this.bypassOptions,scrollCb:this.scrollCb,doc:t,mirror:this.mirror})),wc(()=>{t.adoptedStyleSheets&&t.adoptedStyleSheets.length>0&&this.bypassOptions.stylesheetManager.adoptStyleSheets(t.adoptedStyleSheets,this.mirror.getId(t.host)),this.restoreHandlers.push(O0({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},t))},0)}observeAttachShadow(t){!t.contentWindow||!t.contentDocument||this.patchAttachShadow(t.contentWindow.Element,t.contentDocument)}patchAttachShadow(t,n){const r=this;this.restoreHandlers.push(gd(t.prototype,"attachShadow",function(i){return function(s){const o=i.call(this,s);return this.shadowRoot&&w0(this)&&r.addShadowRoot(this.shadowRoot,n),o}}))}reset(){this.restoreHandlers.forEach(t=>{try{t()}catch{}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet,this.bypassOptions.canvasManager.resetShadowRoots()}}class N0{reset(){}freeze(){}unfreeze(){}lock(){}unlock(){}snapshot(){}addWindow(){}addShadowRoot(){}resetShadowRoots(){}}class E4{constructor(t){this.trackedLinkElements=new WeakSet,this.styleMirror=new KT,this.mutationCb=t.mutationCb,this.adoptedStyleSheetCb=t.adoptedStyleSheetCb}attachLinkElement(t,n){"_cssText"in n.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:n.id,attributes:n.attributes}]}),this.trackLinkElement(t)}trackLinkElement(t){this.trackedLinkElements.has(t)||(this.trackedLinkElements.add(t),this.trackStylesheetInLinkElement(t))}adoptStyleSheets(t,n){if(t.length===0)return;const r={id:n,styleIds:[]},i=[];for(const s of t){let o;this.styleMirror.has(s)?o=this.styleMirror.getId(s):(o=this.styleMirror.add(s),i.push({styleId:o,rules:Array.from(s.rules||CSSRule,(c,u)=>({rule:Xg(c),index:u}))})),r.styleIds.push(o)}i.length>0&&(r.styles=i),this.adoptedStyleSheetCb(r)}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}trackStylesheetInLinkElement(t){}}class S4{constructor(){this.nodeMap=new WeakMap,this.active=!1}inOtherBuffer(t,n){const r=this.nodeMap.get(t);return r&&Array.from(r).some(i=>i!==n)}add(t,n){this.active||(this.active=!0,JT(()=>{this.nodeMap=new WeakMap,this.active=!1})),this.nodeMap.set(t,(this.nodeMap.get(t)||new Set).add(n))}destroy(){}}let Nt,Cc;try{if(Array.from([1],e=>e*2)[0]!==2){const e=document.createElement("iframe");document.body.appendChild(e),Array.from=Pn([e,"access",t=>t.contentWindow,"optionalAccess",t=>t.Array,"access",t=>t.from])||Array.from,document.body.removeChild(e)}}catch(e){console.debug("Unable to override Array.from",e)}const or=ST();function Mr(e={}){const{emit:t,checkoutEveryNms:n,checkoutEveryNth:r,blockClass:i="rr-block",blockSelector:s=null,unblockSelector:o=null,ignoreClass:c="rr-ignore",ignoreSelector:u=null,maskAllText:d=!1,maskTextClass:f="rr-mask",unmaskTextClass:p=null,maskTextSelector:l=null,unmaskTextSelector:v=null,inlineStylesheet:a=!0,maskAllInputs:h,maskInputOptions:y,slimDOMOptions:g,maskAttributeFn:b,maskInputFn:w,maskTextFn:E,maxCanvasSize:S=null,packFn:A,sampling:T={},dataURLOptions:O={},mousemoveWait:M,recordDOM:D=!0,recordCanvas:F=!1,recordCrossOriginIframes:V=!1,recordAfter:G=e.recordAfter==="DOMContentLoaded"?e.recordAfter:"load",userTriggeredOnInput:U=!1,collectFonts:R=!1,inlineImages:L=!1,plugins:Y,keepIframeSrcFn:z=()=>!1,ignoreCSSAttributes:ee=new Set([]),errorHandler:te,onMutation:re,getCanvasManager:he}=e;r4(te);const ue=V?window.parent===window:!0;let ye=!1;if(!ue)try{window.parent.document&&(ye=!1)}catch{ye=!0}if(ue&&!t)throw new Error("emit function is required");if(!ue&&!ye)return()=>{};M!==void 0&&T.mousemove===void 0&&(T.mousemove=M),or.reset();const pe=h===!0?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,radio:!0,checkbox:!0}:y!==void 0?y:{},q=g===!0||g==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:g==="all",headMetaDescKeywords:g==="all"}:g||{};WT();let $,Q=0;const _=ie=>{for(const be of Y||[])be.eventProcessor&&(ie=be.eventProcessor(ie));return A&&!ye&&(ie=A(ie)),ie};Nt=(ie,be)=>{const ae=ie;if(ae.timestamp=bc(),Pn([ws,"access",Ce=>Ce[0],"optionalAccess",Ce=>Ce.isFrozen,"call",Ce=>Ce()])&&ae.type!==Ze.FullSnapshot&&!(ae.type===Ze.IncrementalSnapshot&&ae.data.source===Ue.Mutation)&&ws.forEach(Ce=>Ce.unfreeze()),ue)Pn([t,"optionalCall",Ce=>Ce(_(ae),be)]);else if(ye){const Ce={type:"rrweb",event:_(ae),origin:window.location.origin,isCheckout:be};window.parent.postMessage(Ce,"*")}if(ae.type===Ze.FullSnapshot)$=ae,Q=0;else if(ae.type===Ze.IncrementalSnapshot){if(ae.data.source===Ue.Mutation&&ae.data.isAttachIframe)return;Q++;const Ce=r&&Q>=r,_e=n&&$&&ae.timestamp-$.timestamp>n;(Ce||_e)&&le(!0)}};const j=ie=>{Nt({type:Ze.IncrementalSnapshot,data:{source:Ue.Mutation,...ie}})},B=ie=>Nt({type:Ze.IncrementalSnapshot,data:{source:Ue.Scroll,...ie}}),N=ie=>Nt({type:Ze.IncrementalSnapshot,data:{source:Ue.CanvasMutation,...ie}}),X=ie=>Nt({type:Ze.IncrementalSnapshot,data:{source:Ue.AdoptedStyleSheet,...ie}}),J=new E4({mutationCb:j,adoptedStyleSheetCb:X}),Z=typeof __RRWEB_EXCLUDE_IFRAME__=="boolean"&&__RRWEB_EXCLUDE_IFRAME__?new y4:new v4({mirror:or,mutationCb:j,stylesheetManager:J,recordCrossOriginIframes:V,wrappedEmit:Nt});for(const ie of Y||[])ie.getMirror&&ie.getMirror({nodeMirror:or,crossOriginIframeMirror:Z.crossOriginIframeMirror,crossOriginIframeStyleMirror:Z.crossOriginIframeStyleMirror});const W=new S4,fe=C4(he,{mirror:or,win:window,mutationCb:ie=>Nt({type:Ze.IncrementalSnapshot,data:{source:Ue.CanvasMutation,...ie}}),recordCanvas:F,blockClass:i,blockSelector:s,unblockSelector:o,maxCanvasSize:S,sampling:T.canvas,dataURLOptions:O,errorHandler:te}),ge=typeof __RRWEB_EXCLUDE_SHADOW_DOM__=="boolean"&&__RRWEB_EXCLUDE_SHADOW_DOM__?new b4:new w4({mutationCb:j,scrollCb:B,bypassOptions:{onMutation:re,blockClass:i,blockSelector:s,unblockSelector:o,maskAllText:d,maskTextClass:f,unmaskTextClass:p,maskTextSelector:l,unmaskTextSelector:v,inlineStylesheet:a,maskInputOptions:pe,dataURLOptions:O,maskAttributeFn:b,maskTextFn:E,maskInputFn:w,recordCanvas:F,inlineImages:L,sampling:T,slimDOMOptions:q,iframeManager:Z,stylesheetManager:J,canvasManager:fe,keepIframeSrcFn:z,processedNodeManager:W},mirror:or}),le=(ie=!1)=>{if(!D)return;Nt({type:Ze.Meta,data:{href:window.location.href,width:p0(),height:h0()}},ie),J.reset(),ge.init(),ws.forEach(ae=>ae.lock());const be=HT(document,{mirror:or,blockClass:i,blockSelector:s,unblockSelector:o,maskAllText:d,maskTextClass:f,unmaskTextClass:p,maskTextSelector:l,unmaskTextSelector:v,inlineStylesheet:a,maskAllInputs:pe,maskAttributeFn:b,maskInputFn:w,maskTextFn:E,slimDOM:q,dataURLOptions:O,recordCanvas:F,inlineImages:L,onSerialize:ae=>{y0(ae,or)&&Z.addIframe(ae),v0(ae,or)&&J.trackLinkElement(ae),bd(ae)&&ge.addShadowRoot(ae.shadowRoot,document)},onIframeLoad:(ae,Ce)=>{Z.attachIframe(ae,Ce),ae.contentWindow&&fe.addWindow(ae.contentWindow),ge.observeAttachShadow(ae)},onStylesheetLoad:(ae,Ce)=>{J.attachLinkElement(ae,Ce)},keepIframeSrcFn:z});if(!be)return console.warn("Failed to snapshot the document");Nt({type:Ze.FullSnapshot,data:{node:be,initialOffset:f0(window)}}),ws.forEach(ae=>ae.unlock()),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&J.adoptStyleSheets(document.adoptedStyleSheets,or.getId(document))};Cc=le;try{const ie=[],be=Ce=>st(g4)({onMutation:re,mutationCb:j,mousemoveCb:(_e,ze)=>Nt({type:Ze.IncrementalSnapshot,data:{source:ze,positions:_e}}),mouseInteractionCb:_e=>Nt({type:Ze.IncrementalSnapshot,data:{source:Ue.MouseInteraction,..._e}}),scrollCb:B,viewportResizeCb:_e=>Nt({type:Ze.IncrementalSnapshot,data:{source:Ue.ViewportResize,..._e}}),inputCb:_e=>Nt({type:Ze.IncrementalSnapshot,data:{source:Ue.Input,..._e}}),mediaInteractionCb:_e=>Nt({type:Ze.IncrementalSnapshot,data:{source:Ue.MediaInteraction,..._e}}),styleSheetRuleCb:_e=>Nt({type:Ze.IncrementalSnapshot,data:{source:Ue.StyleSheetRule,..._e}}),styleDeclarationCb:_e=>Nt({type:Ze.IncrementalSnapshot,data:{source:Ue.StyleDeclaration,..._e}}),canvasMutationCb:N,fontCb:_e=>Nt({type:Ze.IncrementalSnapshot,data:{source:Ue.Font,..._e}}),selectionCb:_e=>{Nt({type:Ze.IncrementalSnapshot,data:{source:Ue.Selection,..._e}})},customElementCb:_e=>{Nt({type:Ze.IncrementalSnapshot,data:{source:Ue.CustomElement,..._e}})},blockClass:i,ignoreClass:c,ignoreSelector:u,maskAllText:d,maskTextClass:f,unmaskTextClass:p,maskTextSelector:l,unmaskTextSelector:v,maskInputOptions:pe,inlineStylesheet:a,sampling:T,recordDOM:D,recordCanvas:F,inlineImages:L,userTriggeredOnInput:U,collectFonts:R,doc:Ce,maskAttributeFn:b,maskInputFn:w,maskTextFn:E,keepIframeSrcFn:z,blockSelector:s,unblockSelector:o,slimDOMOptions:q,dataURLOptions:O,mirror:or,iframeManager:Z,stylesheetManager:J,shadowDomManager:ge,processedNodeManager:W,canvasManager:fe,ignoreCSSAttributes:ee,plugins:Pn([Y,"optionalAccess",_e=>_e.filter,"call",_e=>_e(ze=>ze.observer),"optionalAccess",_e=>_e.map,"call",_e=>_e(ze=>({observer:ze.observer,options:ze.options,callback:it=>Nt({type:Ze.Plugin,data:{plugin:ze.name,payload:it}})}))])||[]},{});Z.addLoadListener(Ce=>{try{ie.push(be(Ce.contentDocument))}catch(_e){console.warn(_e)}});const ae=()=>{le(),ie.push(be(document))};return document.readyState==="interactive"||document.readyState==="complete"?ae():(ie.push(wn("DOMContentLoaded",()=>{Nt({type:Ze.DomContentLoaded,data:{}}),G==="DOMContentLoaded"&&ae()})),ie.push(wn("load",()=>{Nt({type:Ze.Load,data:{}}),G==="load"&&ae()},window))),()=>{ie.forEach(Ce=>Ce()),W.destroy(),Cc=void 0,i4()}}catch(ie){console.warn(ie)}}function x4(e){if(!Cc)throw new Error("please take full snapshot after start recording");Cc(e)}Mr.mirror=or,Mr.takeFullSnapshot=x4;function C4(e,t){try{return e?e(t):new N0}catch{return console.warn("Unable to initialize CanvasManager"),new N0}}const Me=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,M0=["info","warn","error","log"],_c="[Replay] ";function xd(e,t="info"){ri({category:"console",data:{logger:"replay"},level:t,message:`${_c}${e}`},{level:t})}function _4(){let e=!1,t=!1;const n={exception:()=>{},infoTick:()=>{},setConfig:r=>{e=r.captureExceptions,t=r.traceInternals}};return Me?(M0.forEach(r=>{n[r]=(...i)=>{Se[r](_c,...i),t&&xd(i.join(""),mm(r))}}),n.exception=(r,...i)=>{i.length&&n.error&&n.error(...i),Se.error(_c,r),e?tc(r):t&&xd(r,"error")},n.infoTick=(...r)=>{Se.info(_c,...r),t&&setTimeout(()=>xd(r[0]),0)}):M0.forEach(r=>{n[r]=()=>{}}),n}const Le=_4(),A4=3,T4=5;function Cd(e){return e>9999999999?e:e*1e3}function _d(e){return e>9999999999?e/1e3:e}function xo(e,t){t.category!=="sentry.transaction"&&(["ui.click","ui.input"].includes(t.category)?e.triggerUserActivity():e.checkAndHandleExpiredSession(),e.addUpdate(()=>(e.throttledAddEvent({type:Ze.Custom,timestamp:(t.timestamp||0)*1e3,data:{tag:"breadcrumb",payload:mr(t,10,1e3)}}),t.category==="console")))}const I4="button,a";function D0(e){return e.closest(I4)||e}function P0(e){const t=j0(e);return!t||!(t instanceof Element)?t:D0(t)}function j0(e){return k4(e)?e.target:e}function k4(e){return typeof e=="object"&&!!e&&"target"in e}let oi;function O4(e){return oi||(oi=[],R4()),oi.push(e),()=>{const t=oi?oi.indexOf(e):-1;t>-1&&oi.splice(t,1)}}function R4(){An(bt,"open",function(e){return function(...t){if(oi)try{oi.forEach(n=>n())}catch{}return e.apply(bt,t)}})}const N4=new Set([Ue.Mutation,Ue.StyleSheetRule,Ue.StyleDeclaration,Ue.AdoptedStyleSheet,Ue.CanvasMutation,Ue.Selection,Ue.MediaInteraction]);function M4(e,t,n){e.handleClick(t,n)}class D4{constructor(t,n,r=xo){this._lastMutation=0,this._lastScroll=0,this._clicks=[],this._timeout=n.timeout/1e3,this._threshold=n.threshold/1e3,this._scollTimeout=n.scrollTimeout/1e3,this._replay=t,this._ignoreSelector=n.ignoreSelector,this._addBreadcrumbEvent=r}addListeners(){const t=O4(()=>{this._lastMutation=L0()});this._teardown=()=>{t(),this._clicks=[],this._lastMutation=0,this._lastScroll=0}}removeListeners(){this._teardown&&this._teardown(),this._checkClickTimeout&&clearTimeout(this._checkClickTimeout)}handleClick(t,n){if(j4(n,this._ignoreSelector)||!L4(t))return;const r={timestamp:_d(t.timestamp),clickBreadcrumb:t,clickCount:0,node:n};this._clicks.some(i=>i.node===r.node&&Math.abs(i.timestamp-r.timestamp)<1)||(this._clicks.push(r),this._clicks.length===1&&this._scheduleCheckClicks())}registerMutation(t=Date.now()){this._lastMutation=_d(t)}registerScroll(t=Date.now()){this._lastScroll=_d(t)}registerClick(t){const n=D0(t);this._handleMultiClick(n)}_handleMultiClick(t){this._getClicks(t).forEach(n=>{n.clickCount++})}_getClicks(t){return this._clicks.filter(n=>n.node===t)}_checkClicks(){const t=[],n=L0();this._clicks.forEach(r=>{!r.mutationAfter&&this._lastMutation&&(r.mutationAfter=r.timestamp<=this._lastMutation?this._lastMutation-r.timestamp:void 0),!r.scrollAfter&&this._lastScroll&&(r.scrollAfter=r.timestamp<=this._lastScroll?this._lastScroll-r.timestamp:void 0),r.timestamp+this._timeout<=n&&t.push(r)});for(const r of t){const i=this._clicks.indexOf(r);i>-1&&(this._generateBreadcrumbs(r),this._clicks.splice(i,1))}this._clicks.length&&this._scheduleCheckClicks()}_generateBreadcrumbs(t){const n=this._replay,r=t.scrollAfter&&t.scrollAfter<=this._scollTimeout,i=t.mutationAfter&&t.mutationAfter<=this._threshold,s=!r&&!i,{clickCount:o,clickBreadcrumb:c}=t;if(s){const u=Math.min(t.mutationAfter||this._timeout,this._timeout)*1e3,d=u<this._timeout*1e3?"mutation":"timeout",f={type:"default",message:c.message,timestamp:c.timestamp,category:"ui.slowClickDetected",data:{...c.data,url:bt.location.href,route:n.getCurrentRoute(),timeAfterClickMs:u,endReason:d,clickCount:o||1}};this._addBreadcrumbEvent(n,f);return}if(o>1){const u={type:"default",message:c.message,timestamp:c.timestamp,category:"ui.multiClick",data:{...c.data,url:bt.location.href,route:n.getCurrentRoute(),clickCount:o,metric:!0}};this._addBreadcrumbEvent(n,u)}}_scheduleCheckClicks(){this._checkClickTimeout&&clearTimeout(this._checkClickTimeout),this._checkClickTimeout=fs(()=>this._checkClicks(),1e3)}}const P4=["A","BUTTON","INPUT"];function j4(e,t){return!!(!P4.includes(e.tagName)||e.tagName==="INPUT"&&!["submit","button"].includes(e.getAttribute("type")||"")||e.tagName==="A"&&(e.hasAttribute("download")||e.hasAttribute("target")&&e.getAttribute("target")!=="_self")||t&&e.matches(t))}function L4(e){return!!(e.data&&typeof e.data.nodeId=="number"&&e.timestamp)}function L0(){return Date.now()/1e3}function B4(e,t){try{if(!F4(t))return;const{source:n}=t.data;if(N4.has(n)&&e.registerMutation(t.timestamp),n===Ue.Scroll&&e.registerScroll(t.timestamp),U4(t)){const{type:r,id:i}=t.data,s=Mr.mirror.getNode(i);s instanceof HTMLElement&&r===En.Click&&e.registerClick(s)}}catch{}}function F4(e){return e.type===A4}function U4(e){return e.data.source===Ue.MouseInteraction}function vr(e){return{timestamp:Date.now()/1e3,type:"default",...e}}var Ac;(function(e){e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment"})(Ac||(Ac={}));const V4=new Set(["id","class","aria-label","role","name","alt","title","data-test-id","data-testid","disabled","aria-disabled","data-sentry-component"]);function q4(e){const t={};!e["data-sentry-component"]&&e["data-sentry-element"]&&(e["data-sentry-component"]=e["data-sentry-element"]);for(const n in e)if(V4.has(n)){let r=n;(n==="data-testid"||n==="data-test-id")&&(r="testId"),t[r]=e[n]}return t}const $4=e=>t=>{if(!e.isEnabled())return;const n=G4(t);if(!n)return;const r=t.name==="click",i=r?t.event:void 0;r&&e.clickDetector&&i&&i.target&&!i.altKey&&!i.metaKey&&!i.ctrlKey&&!i.shiftKey&&M4(e.clickDetector,n,P0(t.event)),xo(e,n)};function B0(e,t){const n=Mr.mirror.getId(e),r=n&&Mr.mirror.getNode(n),i=r&&Mr.mirror.getMeta(r),s=i&&Y4(i)?i:null;return{message:t,data:s?{nodeId:n,node:{id:n,tagName:s.tagName,textContent:Array.from(s.childNodes).map(o=>o.type===Ac.Text&&o.textContent).filter(Boolean).map(o=>o.trim()).join(""),attributes:q4(s.attributes)}}:{}}}function G4(e){const{target:t,message:n}=H4(e);return vr({category:`ui.${e.name}`,...B0(t,n)})}function H4(e){const t=e.name==="click";let n,r=null;try{r=t?P0(e.event):j0(e.event),n=Ar(r,{maxStringLength:200})||"<unknown>"}catch{n="<unknown>"}return{target:r,message:n}}function Y4(e){return e.type===Ac.Element}function W4(e,t){if(!e.isEnabled())return;e.updateUserActivity();const n=K4(t);n&&xo(e,n)}function K4(e){const{metaKey:t,shiftKey:n,ctrlKey:r,altKey:i,key:s,target:o}=e;if(!o||z4(o)||!s)return null;const c=t||r||i,u=s.length===1;if(!c&&u)return null;const d=Ar(o,{maxStringLength:200})||"<unknown>",f=B0(o,d);return vr({category:"ui.keyDown",message:d,data:{...f.data,metaKey:t,shiftKey:n,ctrlKey:r,altKey:i,key:s}})}function z4(e){return e.tagName==="INPUT"||e.tagName==="TEXTAREA"||e.isContentEditable}const Q4={resource:tI,paint:X4,navigation:eI};function Tc(e,t){return({metric:n})=>void t.replayPerformanceEntries.push(e(n))}function J4(e){return e.map(Z4).filter(Boolean)}function Z4(e){const t=Q4[e.entryType];return t?t(e):null}function Es(e){return((bn||bt.performance.timeOrigin)+e)/1e3}function X4(e){const{duration:t,entryType:n,name:r,startTime:i}=e,s=Es(i);return{type:n,name:r,start:s,end:s+t,data:void 0}}function eI(e){const{entryType:t,name:n,decodedBodySize:r,duration:i,domComplete:s,encodedBodySize:o,domContentLoadedEventStart:c,domContentLoadedEventEnd:u,domInteractive:d,loadEventStart:f,loadEventEnd:p,redirectCount:l,startTime:v,transferSize:a,type:h}=e;return i===0?null:{type:`${t}.${h}`,start:Es(v),end:Es(s),name:n,data:{size:a,decodedBodySize:r,encodedBodySize:o,duration:i,domInteractive:d,domContentLoadedEventStart:c,domContentLoadedEventEnd:u,loadEventStart:f,loadEventEnd:p,domComplete:s,redirectCount:l}}}function tI(e){const{entryType:t,initiatorType:n,name:r,responseEnd:i,startTime:s,decodedBodySize:o,encodedBodySize:c,responseStatus:u,transferSize:d}=e;return["fetch","xmlhttprequest"].includes(n)?null:{type:`${t}.${n}`,start:Es(s),end:Es(i),name:r,data:{size:d,statusCode:u,decodedBodySize:o,encodedBodySize:c}}}function nI(e){const t=e.entries[e.entries.length-1],n=t&&t.element?[t.element]:void 0;return Ic(e,"largest-contentful-paint",n)}function rI(e){return e.sources!==void 0}function iI(e){const t=[],n=[];for(const r of e.entries)if(rI(r)){const i=[];for(const s of r.sources)if(s.node){n.push(s.node);const o=Mr.mirror.getId(s.node);o&&i.push(o)}t.push({value:r.value,nodeIds:i.length?i:void 0})}return Ic(e,"cumulative-layout-shift",n,t)}function sI(e){const t=e.entries[e.entries.length-1],n=t&&t.target?[t.target]:void 0;return Ic(e,"first-input-delay",n)}function oI(e){const t=e.entries[e.entries.length-1],n=t&&t.target?[t.target]:void 0;return Ic(e,"interaction-to-next-paint",n)}function Ic(e,t,n,r){const i=e.value,s=e.rating,o=Es(i);return{type:"web-vital",name:t,start:o,end:o,data:{value:i,size:i,rating:s,nodeIds:n?n.map(c=>Mr.mirror.getId(c)):void 0,attributions:r}}}function aI(e){function t(i){e.performanceEntries.includes(i)||e.performanceEntries.push(i)}function n({entries:i}){i.forEach(t)}const r=[];return["navigation","paint","resource"].forEach(i=>{r.push(us(i,n))}),r.push(Ng(Tc(nI,e)),ed(Tc(iI,e)),Mg(Tc(sI,e)),Dg(Tc(oI,e))),()=>{r.forEach(i=>i())}}const cI='var t=Uint8Array,n=Uint16Array,r=Int32Array,e=new t([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),i=new t([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),a=new t([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),s=function(t,e){for(var i=new n(31),a=0;a<31;++a)i[a]=e+=1<<t[a-1];var s=new r(i[30]);for(a=1;a<30;++a)for(var o=i[a];o<i[a+1];++o)s[o]=o-i[a]<<5|a;return{b:i,r:s}},o=s(e,2),f=o.b,h=o.r;f[28]=258,h[258]=28;for(var l=s(i,0).r,u=new n(32768),c=0;c<32768;++c){var v=(43690&c)>>1|(21845&c)<<1;v=(61680&(v=(52428&v)>>2|(13107&v)<<2))>>4|(3855&v)<<4,u[c]=((65280&v)>>8|(255&v)<<8)>>1}var d=function(t,r,e){for(var i=t.length,a=0,s=new n(r);a<i;++a)t[a]&&++s[t[a]-1];var o,f=new n(r);for(a=1;a<r;++a)f[a]=f[a-1]+s[a-1]<<1;if(e){o=new n(1<<r);var h=15-r;for(a=0;a<i;++a)if(t[a])for(var l=a<<4|t[a],c=r-t[a],v=f[t[a]-1]++<<c,d=v|(1<<c)-1;v<=d;++v)o[u[v]>>h]=l}else for(o=new n(i),a=0;a<i;++a)t[a]&&(o[a]=u[f[t[a]-1]++]>>15-t[a]);return o},g=new t(288);for(c=0;c<144;++c)g[c]=8;for(c=144;c<256;++c)g[c]=9;for(c=256;c<280;++c)g[c]=7;for(c=280;c<288;++c)g[c]=8;var w=new t(32);for(c=0;c<32;++c)w[c]=5;var p=d(g,9,0),y=d(w,5,0),m=function(t){return(t+7)/8|0},b=function(n,r,e){return(null==r||r<0)&&(r=0),(null==e||e>n.length)&&(e=n.length),new t(n.subarray(r,e))},M=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],E=function(t,n,r){var e=new Error(n||M[t]);if(e.code=t,Error.captureStackTrace&&Error.captureStackTrace(e,E),!r)throw e;return e},z=function(t,n,r){r<<=7&n;var e=n/8|0;t[e]|=r,t[e+1]|=r>>8},A=function(t,n,r){r<<=7&n;var e=n/8|0;t[e]|=r,t[e+1]|=r>>8,t[e+2]|=r>>16},_=function(r,e){for(var i=[],a=0;a<r.length;++a)r[a]&&i.push({s:a,f:r[a]});var s=i.length,o=i.slice();if(!s)return{t:F,l:0};if(1==s){var f=new t(i[0].s+1);return f[i[0].s]=1,{t:f,l:1}}i.sort((function(t,n){return t.f-n.f})),i.push({s:-1,f:25001});var h=i[0],l=i[1],u=0,c=1,v=2;for(i[0]={s:-1,f:h.f+l.f,l:h,r:l};c!=s-1;)h=i[i[u].f<i[v].f?u++:v++],l=i[u!=c&&i[u].f<i[v].f?u++:v++],i[c++]={s:-1,f:h.f+l.f,l:h,r:l};var d=o[0].s;for(a=1;a<s;++a)o[a].s>d&&(d=o[a].s);var g=new n(d+1),w=x(i[c-1],g,0);if(w>e){a=0;var p=0,y=w-e,m=1<<y;for(o.sort((function(t,n){return g[n.s]-g[t.s]||t.f-n.f}));a<s;++a){var b=o[a].s;if(!(g[b]>e))break;p+=m-(1<<w-g[b]),g[b]=e}for(p>>=y;p>0;){var M=o[a].s;g[M]<e?p-=1<<e-g[M]++-1:++a}for(;a>=0&&p;--a){var E=o[a].s;g[E]==e&&(--g[E],++p)}w=e}return{t:new t(g),l:w}},x=function(t,n,r){return-1==t.s?Math.max(x(t.l,n,r+1),x(t.r,n,r+1)):n[t.s]=r},D=function(t){for(var r=t.length;r&&!t[--r];);for(var e=new n(++r),i=0,a=t[0],s=1,o=function(t){e[i++]=t},f=1;f<=r;++f)if(t[f]==a&&f!=r)++s;else{if(!a&&s>2){for(;s>138;s-=138)o(32754);s>2&&(o(s>10?s-11<<5|28690:s-3<<5|12305),s=0)}else if(s>3){for(o(a),--s;s>6;s-=6)o(8304);s>2&&(o(s-3<<5|8208),s=0)}for(;s--;)o(a);s=1,a=t[f]}return{c:e.subarray(0,i),n:r}},T=function(t,n){for(var r=0,e=0;e<n.length;++e)r+=t[e]*n[e];return r},k=function(t,n,r){var e=r.length,i=m(n+2);t[i]=255&e,t[i+1]=e>>8,t[i+2]=255^t[i],t[i+3]=255^t[i+1];for(var a=0;a<e;++a)t[i+a+4]=r[a];return 8*(i+4+e)},C=function(t,r,s,o,f,h,l,u,c,v,m){z(r,m++,s),++f[256];for(var b=_(f,15),M=b.t,E=b.l,x=_(h,15),C=x.t,U=x.l,F=D(M),I=F.c,S=F.n,L=D(C),O=L.c,j=L.n,q=new n(19),B=0;B<I.length;++B)++q[31&I[B]];for(B=0;B<O.length;++B)++q[31&O[B]];for(var G=_(q,7),H=G.t,J=G.l,K=19;K>4&&!H[a[K-1]];--K);var N,P,Q,R,V=v+5<<3,W=T(f,g)+T(h,w)+l,X=T(f,M)+T(h,C)+l+14+3*K+T(q,H)+2*q[16]+3*q[17]+7*q[18];if(c>=0&&V<=W&&V<=X)return k(r,m,t.subarray(c,c+v));if(z(r,m,1+(X<W)),m+=2,X<W){N=d(M,E,0),P=M,Q=d(C,U,0),R=C;var Y=d(H,J,0);z(r,m,S-257),z(r,m+5,j-1),z(r,m+10,K-4),m+=14;for(B=0;B<K;++B)z(r,m+3*B,H[a[B]]);m+=3*K;for(var Z=[I,O],$=0;$<2;++$){var tt=Z[$];for(B=0;B<tt.length;++B){var nt=31&tt[B];z(r,m,Y[nt]),m+=H[nt],nt>15&&(z(r,m,tt[B]>>5&127),m+=tt[B]>>12)}}}else N=p,P=g,Q=y,R=w;for(B=0;B<u;++B){var rt=o[B];if(rt>255){A(r,m,N[(nt=rt>>18&31)+257]),m+=P[nt+257],nt>7&&(z(r,m,rt>>23&31),m+=e[nt]);var et=31&rt;A(r,m,Q[et]),m+=R[et],et>3&&(A(r,m,rt>>5&8191),m+=i[et])}else A(r,m,N[rt]),m+=P[rt]}return A(r,m,N[256]),m+P[256]},U=new r([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),F=new t(0),I=function(){for(var t=new Int32Array(256),n=0;n<256;++n){for(var r=n,e=9;--e;)r=(1&r&&-306674912)^r>>>1;t[n]=r}return t}(),S=function(){var t=-1;return{p:function(n){for(var r=t,e=0;e<n.length;++e)r=I[255&r^n[e]]^r>>>8;t=r},d:function(){return~t}}},L=function(){var t=1,n=0;return{p:function(r){for(var e=t,i=n,a=0|r.length,s=0;s!=a;){for(var o=Math.min(s+2655,a);s<o;++s)i+=e+=r[s];e=(65535&e)+15*(e>>16),i=(65535&i)+15*(i>>16)}t=e,n=i},d:function(){return(255&(t%=65521))<<24|(65280&t)<<8|(255&(n%=65521))<<8|n>>8}}},O=function(a,s,o,f,u){if(!u&&(u={l:1},s.dictionary)){var c=s.dictionary.subarray(-32768),v=new t(c.length+a.length);v.set(c),v.set(a,c.length),a=v,u.w=c.length}return function(a,s,o,f,u,c){var v=c.z||a.length,d=new t(f+v+5*(1+Math.ceil(v/7e3))+u),g=d.subarray(f,d.length-u),w=c.l,p=7&(c.r||0);if(s){p&&(g[0]=c.r>>3);for(var y=U[s-1],M=y>>13,E=8191&y,z=(1<<o)-1,A=c.p||new n(32768),_=c.h||new n(z+1),x=Math.ceil(o/3),D=2*x,T=function(t){return(a[t]^a[t+1]<<x^a[t+2]<<D)&z},F=new r(25e3),I=new n(288),S=new n(32),L=0,O=0,j=c.i||0,q=0,B=c.w||0,G=0;j+2<v;++j){var H=T(j),J=32767&j,K=_[H];if(A[J]=K,_[H]=J,B<=j){var N=v-j;if((L>7e3||q>24576)&&(N>423||!w)){p=C(a,g,0,F,I,S,O,q,G,j-G,p),q=L=O=0,G=j;for(var P=0;P<286;++P)I[P]=0;for(P=0;P<30;++P)S[P]=0}var Q=2,R=0,V=E,W=J-K&32767;if(N>2&&H==T(j-W))for(var X=Math.min(M,N)-1,Y=Math.min(32767,j),Z=Math.min(258,N);W<=Y&&--V&&J!=K;){if(a[j+Q]==a[j+Q-W]){for(var $=0;$<Z&&a[j+$]==a[j+$-W];++$);if($>Q){if(Q=$,R=W,$>X)break;var tt=Math.min(W,$-2),nt=0;for(P=0;P<tt;++P){var rt=j-W+P&32767,et=rt-A[rt]&32767;et>nt&&(nt=et,K=rt)}}}W+=(J=K)-(K=A[J])&32767}if(R){F[q++]=268435456|h[Q]<<18|l[R];var it=31&h[Q],at=31&l[R];O+=e[it]+i[at],++I[257+it],++S[at],B=j+Q,++L}else F[q++]=a[j],++I[a[j]]}}for(j=Math.max(j,B);j<v;++j)F[q++]=a[j],++I[a[j]];p=C(a,g,w,F,I,S,O,q,G,j-G,p),w||(c.r=7&p|g[p/8|0]<<3,p-=7,c.h=_,c.p=A,c.i=j,c.w=B)}else{for(j=c.w||0;j<v+w;j+=65535){var st=j+65535;st>=v&&(g[p/8|0]=w,st=v),p=k(g,p+1,a.subarray(j,st))}c.i=v}return b(d,0,f+m(p)+u)}(a,null==s.level?6:s.level,null==s.mem?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(a.length)))):12+s.mem,o,f,u)},j=function(t,n,r){for(;r;++n)t[n]=r,r>>>=8},q=function(t,n){var r=n.filename;if(t[0]=31,t[1]=139,t[2]=8,t[8]=n.level<2?4:9==n.level?2:0,t[9]=3,0!=n.mtime&&j(t,4,Math.floor(new Date(n.mtime||Date.now())/1e3)),r){t[3]=8;for(var e=0;e<=r.length;++e)t[e+10]=r.charCodeAt(e)}},B=function(t){return 10+(t.filename?t.filename.length+1:0)},G=function(){function n(n,r){if("function"==typeof n&&(r=n,n={}),this.ondata=r,this.o=n||{},this.s={l:0,i:32768,w:32768,z:32768},this.b=new t(98304),this.o.dictionary){var e=this.o.dictionary.subarray(-32768);this.b.set(e,32768-e.length),this.s.i=32768-e.length}}return n.prototype.p=function(t,n){this.ondata(O(t,this.o,0,0,this.s),n)},n.prototype.push=function(n,r){this.ondata||E(5),this.s.l&&E(4);var e=n.length+this.s.z;if(e>this.b.length){if(e>2*this.b.length-32768){var i=new t(-32768&e);i.set(this.b.subarray(0,this.s.z)),this.b=i}var a=this.b.length-this.s.z;a&&(this.b.set(n.subarray(0,a),this.s.z),this.s.z=this.b.length,this.p(this.b,!1)),this.b.set(this.b.subarray(-32768)),this.b.set(n.subarray(a),32768),this.s.z=n.length-a+32768,this.s.i=32766,this.s.w=32768}else this.b.set(n,this.s.z),this.s.z+=n.length;this.s.l=1&r,(this.s.z>this.s.w+8191||r)&&(this.p(this.b,r||!1),this.s.w=this.s.i,this.s.i-=2)},n}();var H=function(){function t(t,n){this.c=L(),this.v=1,G.call(this,t,n)}return t.prototype.push=function(t,n){this.c.p(t),G.prototype.push.call(this,t,n)},t.prototype.p=function(t,n){var r=O(t,this.o,this.v&&(this.o.dictionary?6:2),n&&4,this.s);this.v&&(function(t,n){var r=n.level,e=0==r?0:r<6?1:9==r?3:2;if(t[0]=120,t[1]=e<<6|(n.dictionary&&32),t[1]|=31-(t[0]<<8|t[1])%31,n.dictionary){var i=L();i.p(n.dictionary),j(t,2,i.d())}}(r,this.o),this.v=0),n&&j(r,r.length-4,this.c.d()),this.ondata(r,n)},t}(),J="undefined"!=typeof TextEncoder&&new TextEncoder,K="undefined"!=typeof TextDecoder&&new TextDecoder;try{K.decode(F,{stream:!0})}catch(t){}var N=function(){function t(t){this.ondata=t}return t.prototype.push=function(t,n){this.ondata||E(5),this.d&&E(4),this.ondata(P(t),this.d=n||!1)},t}();function P(n,r){if(r){for(var e=new t(n.length),i=0;i<n.length;++i)e[i]=n.charCodeAt(i);return e}if(J)return J.encode(n);var a=n.length,s=new t(n.length+(n.length>>1)),o=0,f=function(t){s[o++]=t};for(i=0;i<a;++i){if(o+5>s.length){var h=new t(o+8+(a-i<<1));h.set(s),s=h}var l=n.charCodeAt(i);l<128||r?f(l):l<2048?(f(192|l>>6),f(128|63&l)):l>55295&&l<57344?(f(240|(l=65536+(1047552&l)|1023&n.charCodeAt(++i))>>18),f(128|l>>12&63),f(128|l>>6&63),f(128|63&l)):(f(224|l>>12),f(128|l>>6&63),f(128|63&l))}return b(s,0,o)}function Q(t){return function(t,n){n||(n={});var r=S(),e=t.length;r.p(t);var i=O(t,n,B(n),8),a=i.length;return q(i,n),j(i,a-8,r.d()),j(i,a-4,e),i}(P(t))}const R=new class{constructor(){this._init()}clear(){this._init()}addEvent(t){if(!t)throw new Error("Adding invalid event");const n=this._hasEvents?",":"";this.stream.push(n+t),this._hasEvents=!0}finish(){this.stream.push("]",!0);const t=function(t){let n=0;for(const r of t)n+=r.length;const r=new Uint8Array(n);for(let n=0,e=0,i=t.length;n<i;n++){const i=t[n];r.set(i,e),e+=i.length}return r}(this._deflatedData);return this._init(),t}_init(){this._hasEvents=!1,this._deflatedData=[],this.deflate=new H,this.deflate.ondata=(t,n)=>{this._deflatedData.push(t)},this.stream=new N(((t,n)=>{this.deflate.push(t,n)})),this.stream.push("[")}},V={clear:()=>{R.clear()},addEvent:t=>R.addEvent(t),finish:()=>R.finish(),compress:t=>Q(t)};addEventListener("message",(function(t){const n=t.data.method,r=t.data.id,e=t.data.arg;if(n in V&&"function"==typeof V[n])try{const t=V[n](e);postMessage({id:r,method:n,success:!0,response:t})}catch(t){postMessage({id:r,method:n,success:!1,response:t.message}),console.error(t)}})),postMessage({id:void 0,method:"init",success:!0,response:void 0});';function uI(){const e=new Blob([cI]);return URL.createObjectURL(e)}class Ad extends Error{constructor(){super(`Event buffer exceeded maximum size of ${ld}.`)}}class F0{constructor(){this.events=[],this._totalSize=0,this.hasCheckout=!1}get hasEvents(){return this.events.length>0}get type(){return"sync"}destroy(){this.events=[]}async addEvent(t){const n=JSON.stringify(t).length;if(this._totalSize+=n,this._totalSize>ld)throw new Ad;this.events.push(t)}finish(){return new Promise(t=>{const n=this.events;this.clear(),t(JSON.stringify(n))})}clear(){this.events=[],this._totalSize=0,this.hasCheckout=!1}getEarliestTimestamp(){const t=this.events.map(n=>n.timestamp).sort()[0];return t?Cd(t):null}}class lI{constructor(t){this._worker=t,this._id=0}ensureReady(){return this._ensureReadyPromise?this._ensureReadyPromise:(this._ensureReadyPromise=new Promise((t,n)=>{this._worker.addEventListener("message",({data:r})=>{r.success?t():n()},{once:!0}),this._worker.addEventListener("error",r=>{n(r)},{once:!0})}),this._ensureReadyPromise)}destroy(){Me&&Le.info("Destroying compression worker"),this._worker.terminate()}postMessage(t,n){const r=this._getAndIncrementId();return new Promise((i,s)=>{const o=({data:c})=>{const u=c;if(u.method===t&&u.id===r){if(this._worker.removeEventListener("message",o),!u.success){Me&&Le.error("Error in compression worker: ",u.response),s(new Error("Error in compression worker"));return}i(u.response)}};this._worker.addEventListener("message",o),this._worker.postMessage({id:r,method:t,arg:n})})}_getAndIncrementId(){return this._id++}}class dI{constructor(t){this._worker=new lI(t),this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1}get hasEvents(){return!!this._earliestTimestamp}get type(){return"worker"}ensureReady(){return this._worker.ensureReady()}destroy(){this._worker.destroy()}addEvent(t){const n=Cd(t.timestamp);(!this._earliestTimestamp||n<this._earliestTimestamp)&&(this._earliestTimestamp=n);const r=JSON.stringify(t);return this._totalSize+=r.length,this._totalSize>ld?Promise.reject(new Ad):this._sendEventToWorker(r)}finish(){return this._finishRequest()}clear(){this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1,this._worker.postMessage("clear").then(null,t=>{Me&&Le.exception(t,'Sending "clear" message to worker failed',t)})}getEarliestTimestamp(){return this._earliestTimestamp}_sendEventToWorker(t){return this._worker.postMessage("addEvent",t)}async _finishRequest(){const t=await this._worker.postMessage("finish");return this._earliestTimestamp=null,this._totalSize=0,t}}class fI{constructor(t){this._fallback=new F0,this._compression=new dI(t),this._used=this._fallback,this._ensureWorkerIsLoadedPromise=this._ensureWorkerIsLoaded()}get type(){return this._used.type}get hasEvents(){return this._used.hasEvents}get hasCheckout(){return this._used.hasCheckout}set hasCheckout(t){this._used.hasCheckout=t}destroy(){this._fallback.destroy(),this._compression.destroy()}clear(){return this._used.clear()}getEarliestTimestamp(){return this._used.getEarliestTimestamp()}addEvent(t){return this._used.addEvent(t)}async finish(){return await this.ensureWorkerIsLoaded(),this._used.finish()}ensureWorkerIsLoaded(){return this._ensureWorkerIsLoadedPromise}async _ensureWorkerIsLoaded(){try{await this._compression.ensureReady()}catch(t){Me&&Le.exception(t,"Failed to load the compression worker, falling back to simple buffer");return}await this._switchToCompressionWorker()}async _switchToCompressionWorker(){const{events:t,hasCheckout:n}=this._fallback,r=[];for(const i of t)r.push(this._compression.addEvent(i));this._compression.hasCheckout=n,this._used=this._compression;try{await Promise.all(r),this._fallback.clear()}catch(i){Me&&Le.exception(i,"Failed to add events when switching buffers.")}}}function hI({useCompression:e,workerUrl:t}){if(e&&window.Worker){const n=pI(t);if(n)return n}return Me&&Le.info("Using simple buffer"),new F0}function pI(e){try{const t=e||mI();if(!t)return;Me&&Le.info(`Using compression worker${e?` from ${e}`:""}`);const n=new Worker(t);return new fI(n)}catch(t){Me&&Le.exception(t,"Failed to create compression worker")}}function mI(){return typeof __SENTRY_EXCLUDE_REPLAY_WORKER__>"u"||!__SENTRY_EXCLUDE_REPLAY_WORKER__?uI():""}function Td(){try{return"sessionStorage"in bt&&!!bt.sessionStorage}catch{return!1}}function gI(e){yI(),e.session=void 0}function yI(){if(Td())try{bt.sessionStorage.removeItem(cd)}catch{}}function U0(e){return e===void 0?!1:Math.random()<e}function V0(e){const t=Date.now(),n=e.id||St(),r=e.started||t,i=e.lastActivity||t,s=e.segmentId||0,o=e.sampled,c=e.previousSessionId;return{id:n,started:r,lastActivity:i,segmentId:s,sampled:o,previousSessionId:c}}function Id(e){if(Td())try{bt.sessionStorage.setItem(cd,JSON.stringify(e))}catch{}}function vI(e,t){return U0(e)?"session":t?"buffer":!1}function q0({sessionSampleRate:e,allowBuffering:t,stickySession:n=!1},{previousSessionId:r}={}){const i=vI(e,t),s=V0({sampled:i,previousSessionId:r});return n&&Id(s),s}function bI(){if(!Td())return null;try{const e=bt.sessionStorage.getItem(cd);if(!e)return null;const t=JSON.parse(e);return Me&&Le.infoTick("Loading existing session"),V0(t)}catch{return null}}function kd(e,t,n=+new Date){return e===null||t===void 0||t<0?!0:t===0?!1:e+t<=n}function $0(e,{maxReplayDuration:t,sessionIdleExpire:n,targetTime:r=Date.now()}){return kd(e.started,t,r)||kd(e.lastActivity,n,r)}function G0(e,{sessionIdleExpire:t,maxReplayDuration:n}){return!(!$0(e,{sessionIdleExpire:t,maxReplayDuration:n})||e.sampled==="buffer"&&e.segmentId===0)}function Od({sessionIdleExpire:e,maxReplayDuration:t,previousSessionId:n},r){const i=r.stickySession&&bI();return i?G0(i,{sessionIdleExpire:e,maxReplayDuration:t})?(Me&&Le.infoTick("Session in sessionStorage is expired, creating new one..."),q0(r,{previousSessionId:i.id})):i:(Me&&Le.infoTick("Creating new session"),q0(r,{previousSessionId:n}))}function wI(e){return e.type===Ze.Custom}function Rd(e,t,n){return Y0(e,t)?(H0(e,t,n),!0):!1}function EI(e,t,n){return Y0(e,t)?H0(e,t,n):Promise.resolve(null)}async function H0(e,t,n){if(!e.eventBuffer)return null;try{n&&e.recordingMode==="buffer"&&e.eventBuffer.clear(),n&&(e.eventBuffer.hasCheckout=!0);const r=e.getOptions(),i=SI(t,r.beforeAddRecordingEvent);return i?await e.eventBuffer.addEvent(i):void 0}catch(r){const i=r&&r instanceof Ad?"addEventSizeExceeded":"addEvent";e.handleException(r),await e.stop({reason:i});const s=Xe();s&&s.recordDroppedEvent("internal_sdk_error","replay")}}function Y0(e,t){if(!e.eventBuffer||e.isPaused()||!e.isEnabled())return!1;const n=Cd(t.timestamp);return n+e.timeouts.sessionIdlePause<Date.now()?!1:n>e.getContext().initialTimestamp+e.getOptions().maxReplayDuration?(Me&&Le.infoTick(`Skipping event with timestamp ${n} because it is after maxReplayDuration`),!1):!0}function SI(e,t){try{if(typeof t=="function"&&wI(e))return t(e)}catch(n){return Me&&Le.exception(n,"An error occured in the `beforeAddRecordingEvent` callback, skipping the event..."),null}return e}function Nd(e){return!e.type}function Md(e){return e.type==="transaction"}function xI(e){return e.type==="replay_event"}function W0(e){return e.type==="feedback"}function CI(e){return(t,n)=>{if(!e.isEnabled()||!Nd(t)&&!Md(t))return;const r=n&&n.statusCode;if(!(!r||r<200||r>=300)){if(Md(t)){_I(e,t);return}AI(e,t)}}}function _I(e,t){const n=e.getContext();t.contexts&&t.contexts.trace&&t.contexts.trace.trace_id&&n.traceIds.size<100&&n.traceIds.add(t.contexts.trace.trace_id)}function AI(e,t){const n=e.getContext();if(t.event_id&&n.errorIds.size<100&&n.errorIds.add(t.event_id),e.recordingMode!=="buffer"||!t.tags||!t.tags.replayId)return;const{beforeErrorSampling:r}=e.getOptions();typeof r=="function"&&!r(t)||fs(async()=>{try{await e.sendBufferedReplayOrFlush()}catch(i){e.handleException(i)}})}function TI(e){return t=>{!e.isEnabled()||!Nd(t)||II(e,t)}}function II(e,t){const n=t.exception&&t.exception.values&&t.exception.values[0]&&t.exception.values[0].value;if(typeof n=="string"&&(n.match(/(reactjs\.org\/docs\/error-decoder\.html\?invariant=|react\.dev\/errors\/)(418|419|422|423|425)/)||n.match(/(does not match server-rendered HTML|Hydration failed because)/i))){const r=vr({category:"replay.hydrate-error",data:{url:$p()}});xo(e,r)}}function kI(e){const t=Xe();t&&t.on("beforeAddBreadcrumb",n=>OI(e,n))}function OI(e,t){if(!e.isEnabled()||!K0(t))return;const n=RI(t);n&&xo(e,n)}function RI(e){return!K0(e)||["fetch","xhr","sentry.event","sentry.transaction"].includes(e.category)||e.category.startsWith("ui.")?null:e.category==="console"?NI(e):vr(e)}function NI(e){const t=e.data&&e.data.arguments;if(!Array.isArray(t)||t.length===0)return vr(e);let n=!1;const r=t.map(i=>{if(!i)return i;if(typeof i=="string")return i.length>hc?(n=!0,`${i.slice(0,hc)}…`):i;if(typeof i=="object")try{const s=mr(i,7);return JSON.stringify(s).length>hc?(n=!0,`${JSON.stringify(s,null,2).slice(0,hc)}…`):s}catch{}return i});return vr({...e,data:{...e.data,arguments:r,...n?{_meta:{warnings:["CONSOLE_ARG_TRUNCATED"]}}:{}}})}function K0(e){return!!e.category}function MI(e,t){return e.type||!e.exception||!e.exception.values||!e.exception.values.length?!1:!!(t.originalException&&t.originalException.__rrweb__)}function DI(e,t){e.triggerUserActivity(),e.addUpdate(()=>t.timestamp?(e.throttledAddEvent({type:Ze.Custom,timestamp:t.timestamp*1e3,data:{tag:"breadcrumb",payload:{timestamp:t.timestamp,type:"default",category:"sentry.feedback",data:{feedbackId:t.event_id}}}}),!1):!0)}function PI(e,t){return e.recordingMode!=="buffer"||t.message===ud||!t.exception||t.type?!1:U0(e.getOptions().errorSampleRate)}function jI(e){return Object.assign((t,n)=>!e.isEnabled()||e.isPaused()?t:xI(t)?(delete t.breadcrumbs,t):!Nd(t)&&!Md(t)&&!W0(t)||!e.checkAndHandleExpiredSession()?t:W0(t)?(e.flush(),t.contexts.feedback.replay_id=e.getSessionId(),DI(e,t),t):MI(t,n)&&!e.getOptions()._experiments.captureExceptions?(Me&&Le.log("Ignoring error from rrweb internals",t),null):((PI(e,t)||e.recordingMode==="session")&&(t.tags={...t.tags,replayId:e.getSessionId()}),t),{id:"Replay"})}function kc(e,t){return t.map(({type:n,start:r,end:i,name:s,data:o})=>{const c=e.throttledAddEvent({type:Ze.Custom,timestamp:r,data:{tag:"performanceSpan",payload:{op:n,description:s,startTimestamp:r,endTimestamp:i,data:o}}});return typeof c=="string"?Promise.resolve(null):c})}function LI(e){const{from:t,to:n}=e,r=Date.now()/1e3;return{type:"navigation.push",start:r,end:r,name:n,data:{previous:t}}}function BI(e){return t=>{if(!e.isEnabled())return;const n=LI(t);n!==null&&(e.getContext().urls.push(n.name),e.triggerUserActivity(),e.addUpdate(()=>(kc(e,[n]),!1)))}}function FI(e,t){return Me&&e.getOptions()._experiments.traceInternals?!1:EC(t,Xe())}function z0(e,t){e.isEnabled()&&t!==null&&(FI(e,t.name)||e.addUpdate(()=>(kc(e,[t]),!0)))}function Oc(e){if(!e)return;const t=new TextEncoder;try{if(typeof e=="string")return t.encode(e).length;if(e instanceof URLSearchParams)return t.encode(e.toString()).length;if(e instanceof FormData){const n=X0(e);return t.encode(n).length}if(e instanceof Blob)return e.size;if(e instanceof ArrayBuffer)return e.byteLength}catch{}}function Q0(e){if(!e)return;const t=parseInt(e,10);return isNaN(t)?void 0:t}function J0(e){try{if(typeof e=="string")return[e];if(e instanceof URLSearchParams)return[e.toString()];if(e instanceof FormData)return[X0(e)];if(!e)return[void 0]}catch(t){return Me&&Le.exception(t,"Failed to serialize body",e),[void 0,"BODY_PARSE_ERROR"]}return Me&&Le.info("Skipping network body because of body type",e),[void 0,"UNPARSEABLE_BODY_TYPE"]}function Rc(e,t){if(!e)return{headers:{},size:void 0,_meta:{warnings:[t]}};const n={...e._meta},r=n.warnings||[];return n.warnings=[...r,t],e._meta=n,e}function Z0(e,t){if(!t)return null;const{startTimestamp:n,endTimestamp:r,url:i,method:s,statusCode:o,request:c,response:u}=t;return{type:e,start:n/1e3,end:r/1e3,name:i,data:Yt({method:s,statusCode:o,request:c,response:u})}}function Co(e){return{headers:{},size:e,_meta:{warnings:["URL_SKIPPED"]}}}function ai(e,t,n){if(!t&&Object.keys(e).length===0)return;if(!t)return{headers:e};if(!n)return{headers:e,size:t};const r={headers:e,size:t},{body:i,warnings:s}=UI(n);return r.body=i,s&&s.length>0&&(r._meta={warnings:s}),r}function Dd(e,t){return Object.entries(e).reduce((n,[r,i])=>{const s=r.toLowerCase();return t.includes(s)&&e[r]&&(n[s]=i),n},{})}function X0(e){return new URLSearchParams(e).toString()}function UI(e){if(!e||typeof e!="string")return{body:e};const t=e.length>Jg,n=VI(e);if(t){const r=e.slice(0,Jg);return n?{body:r,warnings:["MAYBE_JSON_TRUNCATED"]}:{body:`${r}…`,warnings:["TEXT_TRUNCATED"]}}if(n)try{return{body:JSON.parse(e)}}catch{}return{body:e}}function VI(e){const t=e[0],n=e[e.length-1];return t==="["&&n==="]"||t==="{"&&n==="}"}function Nc(e,t){const n=qI(e);return zr(n,t)}function qI(e,t=bt.document.baseURI){if(e.startsWith("http://")||e.startsWith("https://")||e.startsWith(bt.location.origin))return e;const n=new URL(e,t);if(n.origin!==new URL(t).origin)return e;const r=n.href;return!e.endsWith("/")&&r.endsWith("/")?r.slice(0,-1):r}async function $I(e,t,n){try{const r=await HI(e,t,n),i=Z0("resource.fetch",r);z0(n.replay,i)}catch(r){Me&&Le.exception(r,"Failed to capture fetch breadcrumb")}}function GI(e,t){const{input:n,response:r}=t,i=n?ey(n):void 0,s=Oc(i),o=r?Q0(r.headers.get("content-length")):void 0;s!==void 0&&(e.data.request_body_size=s),o!==void 0&&(e.data.response_body_size=o)}async function HI(e,t,n){const r=Date.now(),{startTimestamp:i=r,endTimestamp:s=r}=t,{url:o,method:c,status_code:u=0,request_body_size:d,response_body_size:f}=e.data,p=Nc(o,n.networkDetailAllowUrls)&&!Nc(o,n.networkDetailDenyUrls),l=p?YI(n,t.input,d):Co(d),v=await WI(p,n,t.response,f);return{startTimestamp:i,endTimestamp:s,url:o,method:c,statusCode:u,request:l,response:v}}function YI({networkCaptureBodies:e,networkRequestHeaders:t},n,r){const i=n?QI(n,t):{};if(!e)return ai(i,r,void 0);const s=ey(n),[o,c]=J0(s),u=ai(i,r,o);return c?Rc(u,c):u}async function WI(e,{networkCaptureBodies:t,networkResponseHeaders:n},r,i){if(!e&&i!==void 0)return Co(i);const s=r?ty(r.headers,n):{};if(!r||!t&&i!==void 0)return ai(s,i,void 0);const[o,c]=await zI(r),u=KI(o,{networkCaptureBodies:t,responseBodySize:i,captureDetails:e,headers:s});return c?Rc(u,c):u}function KI(e,{networkCaptureBodies:t,responseBodySize:n,captureDetails:r,headers:i}){try{const s=e&&e.length&&n===void 0?Oc(e):n;return r?t?ai(i,s,e):ai(i,s,void 0):Co(s)}catch(s){return Me&&Le.exception(s,"Failed to serialize response body"),ai(i,n,void 0)}}async function zI(e){const t=JI(e);if(!t)return[void 0,"BODY_PARSE_ERROR"];try{return[await ZI(t)]}catch(n){return Me&&Le.exception(n,"Failed to get text body from response"),[void 0,"BODY_PARSE_ERROR"]}}function ey(e=[]){if(!(e.length!==2||typeof e[1]!="object"))return e[1].body}function ty(e,t){const n={};return t.forEach(r=>{e.get(r)&&(n[r]=e.get(r))}),n}function QI(e,t){return e.length===1&&typeof e[0]!="string"?ny(e[0],t):e.length===2?ny(e[1],t):{}}function ny(e,t){if(!e)return{};const n=e.headers;return n?n instanceof Headers?ty(n,t):Array.isArray(n)?{}:Dd(n,t):{}}function JI(e){try{return e.clone()}catch(t){Me&&Le.exception(t,"Failed to clone response body")}}function ZI(e){return new Promise((t,n)=>{const r=fs(()=>n(new Error("Timeout while trying to read response body")),500);XI(e).then(i=>t(i),i=>n(i)).finally(()=>clearTimeout(r))})}async function XI(e){return await e.text()}async function e5(e,t,n){try{const r=n5(e,t,n),i=Z0("resource.xhr",r);z0(n.replay,i)}catch(r){Me&&Le.exception(r,"Failed to capture xhr breadcrumb")}}function t5(e,t){const{xhr:n,input:r}=t;if(!n)return;const i=Oc(r),s=n.getResponseHeader("content-length")?Q0(n.getResponseHeader("content-length")):o5(n.response,n.responseType);i!==void 0&&(e.data.request_body_size=i),s!==void 0&&(e.data.response_body_size=s)}function n5(e,t,n){const r=Date.now(),{startTimestamp:i=r,endTimestamp:s=r,input:o,xhr:c}=t,{url:u,method:d,status_code:f=0,request_body_size:p,response_body_size:l}=e.data;if(!u)return null;if(!c||!Nc(u,n.networkDetailAllowUrls)||Nc(u,n.networkDetailDenyUrls)){const A=Co(p),T=Co(l);return{startTimestamp:i,endTimestamp:s,url:u,method:d,statusCode:f,request:A,response:T}}const v=c[Mi],a=v?Dd(v.request_headers,n.networkRequestHeaders):{},h=Dd(r5(c),n.networkResponseHeaders),[y,g]=n.networkCaptureBodies?J0(o):[void 0],[b,w]=n.networkCaptureBodies?i5(c):[void 0],E=ai(a,p,y),S=ai(h,l,b);return{startTimestamp:i,endTimestamp:s,url:u,method:d,statusCode:f,request:g?Rc(E,g):E,response:w?Rc(S,w):S}}function r5(e){const t=e.getAllResponseHeaders();return t?t.split(`\r
78
+ `).reduce((n,r)=>{const[i,s]=r.split(": ");return s&&(n[i.toLowerCase()]=s),n},{}):{}}function i5(e){const t=[];try{return[e.responseText]}catch(n){t.push(n)}try{return s5(e.response,e.responseType)}catch(n){t.push(n)}return Me&&Le.warn("Failed to get xhr response body",...t),[void 0]}function s5(e,t){try{if(typeof e=="string")return[e];if(e instanceof Document)return[e.body.outerHTML];if(t==="json"&&e&&typeof e=="object")return[JSON.stringify(e)];if(!e)return[void 0]}catch(n){return Me&&Le.exception(n,"Failed to serialize body",e),[void 0,"BODY_PARSE_ERROR"]}return Me&&Le.info("Skipping network body because of body type",e),[void 0,"UNPARSEABLE_BODY_TYPE"]}function o5(e,t){try{const n=t==="json"&&e&&typeof e=="object"?JSON.stringify(e):e;return Oc(n)}catch{return}}function a5(e){const t=Xe();try{const{networkDetailAllowUrls:n,networkDetailDenyUrls:r,networkCaptureBodies:i,networkRequestHeaders:s,networkResponseHeaders:o}=e.getOptions(),c={replay:e,networkDetailAllowUrls:n,networkDetailDenyUrls:r,networkCaptureBodies:i,networkRequestHeaders:s,networkResponseHeaders:o};t&&t.on("beforeAddBreadcrumb",(u,d)=>c5(c,u,d))}catch{}}function c5(e,t,n){if(t.data)try{u5(t)&&d5(n)&&(t5(t,n),e5(t,n,e)),l5(t)&&f5(n)&&(GI(t,n),$I(t,n,e))}catch(r){Me&&Le.exception(r,"Error when enriching network breadcrumb")}}function u5(e){return e.category==="xhr"}function l5(e){return e.category==="fetch"}function d5(e){return e&&e.xhr}function f5(e){return e&&e.response}function h5(e){const t=Xe();Ug($4(e)),uc(BI(e)),kI(e),a5(e);const n=jI(e);sC(n),t&&(t.on("beforeSendEvent",TI(e)),t.on("afterSendEvent",CI(e)),t.on("createDsc",r=>{const i=e.getSessionId();i&&e.isEnabled()&&e.recordingMode==="session"&&e.checkAndHandleExpiredSession()&&(r.replay_id=i)}),t.on("spanStart",r=>{e.lastActiveSpan=r}),t.on("spanEnd",r=>{e.lastActiveSpan=r}),t.on("beforeSendFeedback",(r,i)=>{const s=e.getSessionId();i&&i.includeReplay&&e.isEnabled()&&s&&r.contexts&&r.contexts.feedback&&(r.contexts.feedback.replay_id=s)}))}async function p5(e){try{return Promise.all(kc(e,[m5(bt.performance.memory)]))}catch{return[]}}function m5(e){const{jsHeapSizeLimit:t,totalJSHeapSize:n,usedJSHeapSize:r}=e,i=Date.now()/1e3;return{type:"memory",name:"memory",start:i,end:i,data:{memory:{jsHeapSizeLimit:t,totalJSHeapSize:n,usedJSHeapSize:r}}}}function g5(e,t,n){let r,i,s;const o=n&&n.maxWait?Math.max(n.maxWait,t):0;function c(){return u(),r=e(),r}function u(){i!==void 0&&clearTimeout(i),s!==void 0&&clearTimeout(s),i=s=void 0}function d(){return i!==void 0||s!==void 0?c():r}function f(){return i&&clearTimeout(i),i=fs(c,t),o&&s===void 0&&(s=fs(c,o)),r}return f.cancel=u,f.flush=d,f}function y5(e){let t=!1;return(n,r)=>{if(!e.checkAndHandleExpiredSession()){Me&&Le.warn("Received replay event after session expired.");return}const i=r||!t;t=!0,e.clickDetector&&B4(e.clickDetector,n),e.addUpdate(()=>{if(e.recordingMode==="buffer"&&i&&e.setInitialState(),!Rd(e,n,i))return!0;if(!i)return!1;const s=e.session;if(b5(e,i),s&&s.previousSessionId)return!0;if(e.recordingMode==="buffer"&&s&&e.eventBuffer){const o=e.eventBuffer.getEarliestTimestamp();o&&(Me&&Le.info(`Updating session start time to earliest event in buffer to ${new Date(o)}`),s.started=o,e.getOptions().stickySession&&Id(s))}return e.recordingMode==="session"&&e.flush(),!0})}}function v5(e){const t=e.getOptions();return{type:Ze.Custom,timestamp:Date.now(),data:{tag:"options",payload:{shouldRecordCanvas:e.isRecordingCanvas(),sessionSampleRate:t.sessionSampleRate,errorSampleRate:t.errorSampleRate,useCompressionOption:t.useCompression,blockAllMedia:t.blockAllMedia,maskAllText:t.maskAllText,maskAllInputs:t.maskAllInputs,useCompression:e.eventBuffer?e.eventBuffer.type==="worker":!1,networkDetailHasUrls:t.networkDetailAllowUrls.length>0,networkCaptureBodies:t.networkCaptureBodies,networkRequestHasHeaders:t.networkRequestHeaders.length>0,networkResponseHasHeaders:t.networkResponseHeaders.length>0}}}}function b5(e,t){!t||!e.session||e.session.segmentId!==0||Rd(e,v5(e),!1)}function w5(){const e=vt().getPropagationContext().dsc;e&&delete e.replay_id;const t=sn();if(t){const n=ti(t);delete n.replay_id}}function E5(e,t,n,r){return Ii(Sm(e,Rl(e),r,n),[[{type:"replay_event"},e],[{type:"replay_recording",length:typeof t=="string"?new TextEncoder().encode(t).length:t.length},t]])}function S5({recordingData:e,headers:t}){let n;const r=`${JSON.stringify(t)}
79
+ `;if(typeof e=="string")n=`${r}${e}`;else{const s=new TextEncoder().encode(r);n=new Uint8Array(s.length+e.length),n.set(s),n.set(e,s.length)}return n}async function x5({client:e,scope:t,replayId:n,event:r}){const i=typeof e._integrations=="object"&&e._integrations!==null&&!Array.isArray(e._integrations)?Object.keys(e._integrations):void 0,s={event_id:n,integrations:i};e.emit("preprocessEvent",r,s);const o=await Jm(e.getOptions(),r,s,t,e,jn());if(!o)return null;o.platform=o.platform||"javascript";const c=e.getSdkMetadata(),{name:u,version:d}=c&&c.sdk||{};return o.sdk={...o.sdk,name:u||"sentry.javascript.unknown",version:d||"0.0.0"},o}async function C5({recordingData:e,replayId:t,segmentId:n,eventContext:r,timestamp:i,session:s}){const o=S5({recordingData:e,headers:{segment_id:n}}),{urls:c,errorIds:u,traceIds:d,initialTimestamp:f}=r,p=Xe(),l=vt(),v=p&&p.getTransport(),a=p&&p.getDsn();if(!p||!v||!a||!s.sampled)return kr({});const h={type:iT,replay_start_timestamp:f/1e3,timestamp:i/1e3,error_ids:u,trace_ids:d,urls:c,replay_id:t,segment_id:n,replay_type:s.sampled},y=await x5({scope:l,client:p,replayId:t,event:h});if(!y)return p.recordDroppedEvent("event_processor","replay",h),Me&&Le.info("An event processor returned `null`, will not send event."),kr({});delete y.sdkProcessingMetadata;const g=E5(y,o,a,p.getOptions().tunnel);let b;try{b=await v.send(g)}catch(E){const S=new Error(ud);try{S.cause=E}catch{}throw S}if(typeof b.statusCode=="number"&&(b.statusCode<200||b.statusCode>=300))throw new ry(b.statusCode);const w=Cm({},b);if(xm(w,"replay"))throw new Pd(w);return b}class ry extends Error{constructor(t){super(`Transport returned status code ${t}`)}}class Pd extends Error{constructor(t){super("Rate limit hit"),this.rateLimits=t}}async function iy(e,t={count:0,interval:lT}){const{recordingData:n,onError:r}=e;if(n.length)try{return await C5(e),!0}catch(i){if(i instanceof ry||i instanceof Pd)throw i;if(eg("Replays",{_retryCount:t.count}),r&&r(i),t.count>=dT){const s=new Error(`${ud} - max retries exceeded`);try{s.cause=i}catch{}throw s}return t.interval*=++t.count,new Promise((s,o)=>{fs(async()=>{try{await iy(e,t),s(!0)}catch(c){o(c)}},t.interval)})}}const sy="__THROTTLED",_5="__SKIPPED";function A5(e,t,n){const r=new Map,i=c=>{const u=c-n;r.forEach((d,f)=>{f<u&&r.delete(f)})},s=()=>[...r.values()].reduce((c,u)=>c+u,0);let o=!1;return(...c)=>{const u=Math.floor(Date.now()/1e3);if(i(u),s()>=t){const f=o;return o=!0,f?_5:sy}o=!1;const d=r.get(u)||0;return r.set(u,d+1),e(...c)}}class ci{constructor({options:t,recordingOptions:n}){ci.prototype.__init.call(this),ci.prototype.__init2.call(this),ci.prototype.__init3.call(this),ci.prototype.__init4.call(this),ci.prototype.__init5.call(this),ci.prototype.__init6.call(this),this.eventBuffer=null,this.performanceEntries=[],this.replayPerformanceEntries=[],this.recordingMode="session",this.timeouts={sessionIdlePause:sT,sessionIdleExpire:oT},this._lastActivity=Date.now(),this._isEnabled=!1,this._isPaused=!1,this._requiresManualStart=!1,this._hasInitializedCoreListeners=!1,this._context={errorIds:new Set,traceIds:new Set,urls:[],initialTimestamp:Date.now(),initialUrl:""},this._recordingOptions=n,this._options=t,this._debouncedFlush=g5(()=>this._flush(),this._options.flushMinDelay,{maxWait:this._options.flushMaxDelay}),this._throttledAddEvent=A5((o,c)=>EI(this,o,c),300,5);const{slowClickTimeout:r,slowClickIgnoreSelectors:i}=this.getOptions(),s=r?{threshold:Math.min(fT,r),timeout:r,scrollTimeout:hT,ignoreSelector:i?i.join(","):""}:void 0;if(s&&(this.clickDetector=new D4(this,s)),Me){const o=t._experiments;Le.setConfig({captureExceptions:!!o.captureExceptions,traceInternals:!!o.traceInternals})}}getContext(){return this._context}isEnabled(){return this._isEnabled}isPaused(){return this._isPaused}isRecordingCanvas(){return!!this._canvas}getOptions(){return this._options}handleException(t){Me&&Le.exception(t),this._options.onError&&this._options.onError(t)}initializeSampling(t){const{errorSampleRate:n,sessionSampleRate:r}=this._options,i=n<=0&&r<=0;if(this._requiresManualStart=i,!i){if(this._initializeSessionForSampling(t),!this.session){Me&&Le.exception(new Error("Unable to initialize and create session"));return}this.session.sampled!==!1&&(this.recordingMode=this.session.sampled==="buffer"&&this.session.segmentId===0?"buffer":"session",Me&&Le.infoTick(`Starting replay in ${this.recordingMode} mode`),this._initializeRecording())}}start(){if(this._isEnabled&&this.recordingMode==="session"){Me&&Le.info("Recording is already in progress");return}if(this._isEnabled&&this.recordingMode==="buffer"){Me&&Le.info("Buffering is in progress, call `flush()` to save the replay");return}Me&&Le.infoTick("Starting replay in session mode"),this._updateUserActivity();const t=Od({maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire},{stickySession:this._options.stickySession,sessionSampleRate:1,allowBuffering:!1});this.session=t,this._initializeRecording()}startBuffering(){if(this._isEnabled){Me&&Le.info("Buffering is in progress, call `flush()` to save the replay");return}Me&&Le.infoTick("Starting replay in buffer mode");const t=Od({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration},{stickySession:this._options.stickySession,sessionSampleRate:0,allowBuffering:!0});this.session=t,this.recordingMode="buffer",this._initializeRecording()}startRecording(){try{const t=this._canvas;this._stopRecording=Mr({...this._recordingOptions,...this.recordingMode==="buffer"?{checkoutEveryNms:uT}:this._options._experiments.continuousCheckout&&{checkoutEveryNms:Math.max(36e4,this._options._experiments.continuousCheckout)},emit:y5(this),onMutation:this._onMutationHandler,...t?{recordCanvas:t.recordCanvas,getCanvasManager:t.getCanvasManager,sampling:t.sampling,dataURLOptions:t.dataURLOptions}:{}})}catch(t){this.handleException(t)}}stopRecording(){try{return this._stopRecording&&(this._stopRecording(),this._stopRecording=void 0),!0}catch(t){return this.handleException(t),!1}}async stop({forceFlush:t=!1,reason:n}={}){if(this._isEnabled){this._isEnabled=!1;try{Me&&Le.info(`Stopping Replay${n?` triggered by ${n}`:""}`),w5(),this._removeListeners(),this.stopRecording(),this._debouncedFlush.cancel(),t&&await this._flush({force:!0}),this.eventBuffer&&this.eventBuffer.destroy(),this.eventBuffer=null,gI(this)}catch(r){this.handleException(r)}}}pause(){this._isPaused||(this._isPaused=!0,this.stopRecording(),Me&&Le.info("Pausing replay"))}resume(){!this._isPaused||!this._checkSession()||(this._isPaused=!1,this.startRecording(),Me&&Le.info("Resuming replay"))}async sendBufferedReplayOrFlush({continueRecording:t=!0}={}){if(this.recordingMode==="session")return this.flushImmediate();const n=Date.now();Me&&Le.info("Converting buffer to session"),await this.flushImmediate();const r=this.stopRecording();!t||!r||this.recordingMode!=="session"&&(this.recordingMode="session",this.session&&(this._updateUserActivity(n),this._updateSessionActivity(n),this._maybeSaveSession()),this.startRecording())}addUpdate(t){const n=t();this.recordingMode!=="buffer"&&n!==!0&&this._debouncedFlush()}triggerUserActivity(){if(this._updateUserActivity(),!this._stopRecording){if(!this._checkSession())return;this.resume();return}this.checkAndHandleExpiredSession(),this._updateSessionActivity()}updateUserActivity(){this._updateUserActivity(),this._updateSessionActivity()}conditionalFlush(){return this.recordingMode==="buffer"?Promise.resolve():this.flushImmediate()}flush(){return this._debouncedFlush()}flushImmediate(){return this._debouncedFlush(),this._debouncedFlush.flush()}cancelFlush(){this._debouncedFlush.cancel()}getSessionId(){return this.session&&this.session.id}checkAndHandleExpiredSession(){if(this._lastActivity&&kd(this._lastActivity,this.timeouts.sessionIdlePause)&&this.session&&this.session.sampled==="session"){this.pause();return}return!!this._checkSession()}setInitialState(){const t=`${bt.location.pathname}${bt.location.hash}${bt.location.search}`,n=`${bt.location.origin}${t}`;this.performanceEntries=[],this.replayPerformanceEntries=[],this._clearContext(),this._context.initialUrl=n,this._context.initialTimestamp=Date.now(),this._context.urls.push(n)}throttledAddEvent(t,n){const r=this._throttledAddEvent(t,n);if(r===sy){const i=vr({category:"replay.throttled"});this.addUpdate(()=>!Rd(this,{type:T4,timestamp:i.timestamp||0,data:{tag:"breadcrumb",payload:i,metric:!0}}))}return r}getCurrentRoute(){const t=this.lastActiveSpan||sn(),n=t&&rn(t),i=(n&&ct(n).data||{})[gr];if(!(!n||!i||!["route","custom"].includes(i)))return ct(n).description}_initializeRecording(){this.setInitialState(),this._updateSessionActivity(),this.eventBuffer=hI({useCompression:this._options.useCompression,workerUrl:this._options.workerUrl}),this._removeListeners(),this._addListeners(),this._isEnabled=!0,this._isPaused=!1,this.startRecording()}_initializeSessionForSampling(t){const n=this._options.errorSampleRate>0,r=Od({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration,previousSessionId:t},{stickySession:this._options.stickySession,sessionSampleRate:this._options.sessionSampleRate,allowBuffering:n});this.session=r}_checkSession(){if(!this.session)return!1;const t=this.session;return G0(t,{sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration})?(this._refreshSession(t),!1):!0}async _refreshSession(t){this._isEnabled&&(await this.stop({reason:"refresh session"}),this.initializeSampling(t.id))}_addListeners(){try{bt.document.addEventListener("visibilitychange",this._handleVisibilityChange),bt.addEventListener("blur",this._handleWindowBlur),bt.addEventListener("focus",this._handleWindowFocus),bt.addEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.addListeners(),this._hasInitializedCoreListeners||(h5(this),this._hasInitializedCoreListeners=!0)}catch(t){this.handleException(t)}this._performanceCleanupCallback=aI(this)}_removeListeners(){try{bt.document.removeEventListener("visibilitychange",this._handleVisibilityChange),bt.removeEventListener("blur",this._handleWindowBlur),bt.removeEventListener("focus",this._handleWindowFocus),bt.removeEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.removeListeners(),this._performanceCleanupCallback&&this._performanceCleanupCallback()}catch(t){this.handleException(t)}}__init(){this._handleVisibilityChange=()=>{bt.document.visibilityState==="visible"?this._doChangeToForegroundTasks():this._doChangeToBackgroundTasks()}}__init2(){this._handleWindowBlur=()=>{const t=vr({category:"ui.blur"});this._doChangeToBackgroundTasks(t)}}__init3(){this._handleWindowFocus=()=>{const t=vr({category:"ui.focus"});this._doChangeToForegroundTasks(t)}}__init4(){this._handleKeyboardEvent=t=>{W4(this,t)}}_doChangeToBackgroundTasks(t){!this.session||$0(this.session,{maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire})||(t&&this._createCustomBreadcrumb(t),this.conditionalFlush())}_doChangeToForegroundTasks(t){if(!this.session)return;if(!this.checkAndHandleExpiredSession()){Me&&Le.info("Document has become active, but session has expired");return}t&&this._createCustomBreadcrumb(t)}_updateUserActivity(t=Date.now()){this._lastActivity=t}_updateSessionActivity(t=Date.now()){this.session&&(this.session.lastActivity=t,this._maybeSaveSession())}_createCustomBreadcrumb(t){this.addUpdate(()=>{this.throttledAddEvent({type:Ze.Custom,timestamp:t.timestamp||0,data:{tag:"breadcrumb",payload:t}})})}_addPerformanceEntries(){const t=J4(this.performanceEntries).concat(this.replayPerformanceEntries);return this.performanceEntries=[],this.replayPerformanceEntries=[],Promise.all(kc(this,t))}_clearContext(){this._context.errorIds.clear(),this._context.traceIds.clear(),this._context.urls=[]}_updateInitialTimestampFromEventBuffer(){const{session:t,eventBuffer:n}=this;if(!t||!n||this._requiresManualStart||t.segmentId)return;const r=n.getEarliestTimestamp();r&&r<this._context.initialTimestamp&&(this._context.initialTimestamp=r)}_popEventContext(){const t={initialTimestamp:this._context.initialTimestamp,initialUrl:this._context.initialUrl,errorIds:Array.from(this._context.errorIds),traceIds:Array.from(this._context.traceIds),urls:this._context.urls};return this._clearContext(),t}async _runFlush(){const t=this.getSessionId();if(!this.session||!this.eventBuffer||!t){Me&&Le.error("No session or eventBuffer found to flush.");return}if(await this._addPerformanceEntries(),!(!this.eventBuffer||!this.eventBuffer.hasEvents)&&(await p5(this),!!this.eventBuffer&&t===this.getSessionId()))try{this._updateInitialTimestampFromEventBuffer();const n=Date.now();if(n-this._context.initialTimestamp>this._options.maxReplayDuration+3e4)throw new Error("Session is too long, not sending replay");const r=this._popEventContext(),i=this.session.segmentId++;this._maybeSaveSession();const s=await this.eventBuffer.finish();await iy({replayId:t,recordingData:s,segmentId:i,eventContext:r,session:this.session,timestamp:n,onError:o=>this.handleException(o)})}catch(n){this.handleException(n),this.stop({reason:"sendReplay"});const r=Xe();if(r){const i=n instanceof Pd?"ratelimit_backoff":"send_error";r.recordDroppedEvent(i,"replay")}}}__init5(){this._flush=async({force:t=!1}={})=>{if(!this._isEnabled&&!t)return;if(!this.checkAndHandleExpiredSession()){Me&&Le.error("Attempting to finish replay event after session expired.");return}if(!this.session)return;const n=this.session.started,i=Date.now()-n;this._debouncedFlush.cancel();const s=i<this._options.minReplayDuration,o=i>this._options.maxReplayDuration+5e3;if(s||o){Me&&Le.info(`Session duration (${Math.floor(i/1e3)}s) is too ${s?"short":"long"}, not sending replay.`),s&&this._debouncedFlush();return}const c=this.eventBuffer;c&&this.session.segmentId===0&&!c.hasCheckout&&Me&&Le.info("Flushing initial segment without checkout.");const u=!!this._flushLock;this._flushLock||(this._flushLock=this._runFlush());try{await this._flushLock}catch(d){this.handleException(d)}finally{this._flushLock=void 0,u&&this._debouncedFlush()}}}_maybeSaveSession(){this.session&&this._options.stickySession&&Id(this.session)}__init6(){this._onMutationHandler=t=>{const n=t.length,r=this._options.mutationLimit,i=this._options.mutationBreadcrumbLimit,s=r&&n>r;if(n>i||s){const o=vr({category:"replay.mutations",data:{count:n,limit:s}});this._createCustomBreadcrumb(o)}return s?(this.stop({reason:"mutationLimit",forceFlush:this.recordingMode==="session"}),!1):!0}}}function _o(e,t){return[...e,...t].join(",")}function T5({mask:e,unmask:t,block:n,unblock:r,ignore:i}){const s=['base[href="/"]'],o=_o(e,[".sentry-mask","[data-sentry-mask]"]),c=_o(t,[]);return{maskTextSelector:o,unmaskTextSelector:c,blockSelector:_o(n,[".sentry-block","[data-sentry-block]",...s]),unblockSelector:_o(r,[]),ignoreSelector:_o(i,[".sentry-ignore","[data-sentry-ignore]",'input[type="file"]'])}}function I5({el:e,key:t,maskAttributes:n,maskAllText:r,privacyOptions:i,value:s}){return!r||i.unmaskTextSelector&&e.matches(i.unmaskTextSelector)?s:n.includes(t)||t==="value"&&e.tagName==="INPUT"&&["submit","button"].includes(e.getAttribute("type")||"")?s.replace(/[\S]/g,"*"):s}const oy='img,image,svg,video,object,picture,embed,map,audio,link[rel="icon"],link[rel="apple-touch-icon"]',k5=["content-length","content-type","accept"];let ay=!1;const O5=e=>new Mc(e);class Mc{static __initStatic(){this.id="Replay"}constructor({flushMinDelay:t=aT,flushMaxDelay:n=cT,minReplayDuration:r=pT,maxReplayDuration:i=Zg,stickySession:s=!0,useCompression:o=!0,workerUrl:c,_experiments:u={},maskAllText:d=!0,maskAllInputs:f=!0,blockAllMedia:p=!0,mutationBreadcrumbLimit:l=750,mutationLimit:v=1e4,slowClickTimeout:a=7e3,slowClickIgnoreSelectors:h=[],networkDetailAllowUrls:y=[],networkDetailDenyUrls:g=[],networkCaptureBodies:b=!0,networkRequestHeaders:w=[],networkResponseHeaders:E=[],mask:S=[],maskAttributes:A=["title","placeholder"],unmask:T=[],block:O=[],unblock:M=[],ignore:D=[],maskFn:F,beforeAddRecordingEvent:V,beforeErrorSampling:G}={}){this.name=Mc.id;const U=T5({mask:S,unmask:T,block:O,unblock:M,ignore:D});if(this._recordingOptions={maskAllInputs:f,maskAllText:d,maskInputOptions:{password:!0},maskTextFn:F,maskInputFn:F,maskAttributeFn:(R,L,Y)=>I5({maskAttributes:A,maskAllText:d,privacyOptions:U,key:R,value:L,el:Y}),...U,slimDOMOptions:"all",inlineStylesheet:!0,inlineImages:!1,collectFonts:!0,errorHandler:R=>{try{R.__rrweb__=!0}catch{}}},this._initialOptions={flushMinDelay:t,flushMaxDelay:n,minReplayDuration:Math.min(r,mT),maxReplayDuration:Math.min(i,Zg),stickySession:s,useCompression:o,workerUrl:c,blockAllMedia:p,maskAllInputs:f,maskAllText:d,mutationBreadcrumbLimit:l,mutationLimit:v,slowClickTimeout:a,slowClickIgnoreSelectors:h,networkDetailAllowUrls:y,networkDetailDenyUrls:g,networkCaptureBodies:b,networkRequestHeaders:cy(w),networkResponseHeaders:cy(E),beforeAddRecordingEvent:V,beforeErrorSampling:G,_experiments:u},this._initialOptions.blockAllMedia&&(this._recordingOptions.blockSelector=this._recordingOptions.blockSelector?`${this._recordingOptions.blockSelector},${oy}`:oy),this._isInitialized&&lm())throw new Error("Multiple Sentry Session Replay instances are not supported");this._isInitialized=!0}get _isInitialized(){return ay}set _isInitialized(t){ay=t}afterAllSetup(t){!lm()||this._replay||(this._setup(t),this._initialize(t))}start(){this._replay&&this._replay.start()}startBuffering(){this._replay&&this._replay.startBuffering()}stop(){return this._replay?this._replay.stop({forceFlush:this._replay.recordingMode==="session"}):Promise.resolve()}flush(t){return this._replay?this._replay.isEnabled()?this._replay.sendBufferedReplayOrFlush(t):(this._replay.start(),Promise.resolve()):Promise.resolve()}getReplayId(){if(!(!this._replay||!this._replay.isEnabled()))return this._replay.getSessionId()}_initialize(t){this._replay&&(this._maybeLoadFromReplayCanvasIntegration(t),this._replay.initializeSampling())}_setup(t){const n=R5(this._initialOptions,t);this._replay=new ci({options:n,recordingOptions:this._recordingOptions})}_maybeLoadFromReplayCanvasIntegration(t){try{const n=t.getIntegrationByName("ReplayCanvas");if(!n)return;this._replay._canvas=n.getOptions()}catch{}}}Mc.__initStatic();function R5(e,t){const n=t.getOptions(),r={sessionSampleRate:0,errorSampleRate:0,...Yt(e)},i=Xa(n.replaysSessionSampleRate),s=Xa(n.replaysOnErrorSampleRate);return i==null&&s==null&&es(()=>{console.warn("Replay is disabled because neither `replaysSessionSampleRate` nor `replaysOnErrorSampleRate` are set.")}),i!=null&&(r.sessionSampleRate=i),s!=null&&(r.errorSampleRate=s),r}function cy(e){return[...k5,...e.map(t=>t.toLowerCase())]}const uy=new WeakMap,jd=new Map,Ld={traceFetch:!0,traceXHR:!0,enableHTTPTimings:!0};function N5(e,t){const{traceFetch:n,traceXHR:r,shouldCreateSpanForRequest:i,enableHTTPTimings:s,tracePropagationTargets:o}={traceFetch:Ld.traceFetch,traceXHR:Ld.traceXHR,...t},c=typeof i=="function"?i:f=>!0,u=f=>j5(f,o),d={};n&&(e.addEventProcessor(f=>(f.type==="transaction"&&f.spans&&f.spans.forEach(p=>{if(p.op==="http.client"){const l=jd.get(p.span_id);l&&(p.timestamp=l/1e3,jd.delete(p.span_id))}}),f)),bx(f=>{if(f.response){const p=uy.get(f.response);p&&f.endTimestamp&&jd.set(p,f.endTimestamp)}}),sm(f=>{const p=HC(f,c,u,d);if(f.response&&f.fetchData.__span&&uy.set(f.response,f.fetchData.__span),p){const l=dy(f.fetchData.url),v=l?Ti(l).host:void 0;p.setAttributes({"http.url":l,"server.address":v})}s&&p&&ly(p)})),r&&Gg(f=>{const p=L5(f,c,u,d);s&&p&&ly(p)})}function M5(e){return e.entryType==="resource"&&"initiatorType"in e&&typeof e.nextHopProtocol=="string"&&(e.initiatorType==="fetch"||e.initiatorType==="xmlhttprequest")}function ly(e){const{url:t}=ct(e).data||{};if(!t||typeof t!="string")return;const n=us("resource",({entries:r})=>{r.forEach(i=>{M5(i)&&i.name.endsWith(t)&&(P5(i).forEach(o=>e.setAttribute(...o)),setTimeout(n))})})}function D5(e){let t="unknown",n="unknown",r="";for(const i of e){if(i==="/"){[t,n]=e.split("/");break}if(!isNaN(Number(i))){t=r==="h"?"http":r,n=e.split(r)[1];break}r+=i}return r===e&&(t=r),{name:t,version:n}}function br(e=0){return((bn||performance.timeOrigin)+e)/1e3}function P5(e){const{name:t,version:n}=D5(e.nextHopProtocol),r=[];return r.push(["network.protocol.version",n],["network.protocol.name",t]),bn?[...r,["http.request.redirect_start",br(e.redirectStart)],["http.request.fetch_start",br(e.fetchStart)],["http.request.domain_lookup_start",br(e.domainLookupStart)],["http.request.domain_lookup_end",br(e.domainLookupEnd)],["http.request.connect_start",br(e.connectStart)],["http.request.secure_connection_start",br(e.secureConnectionStart)],["http.request.connection_end",br(e.connectEnd)],["http.request.request_start",br(e.requestStart)],["http.request.response_start",br(e.responseStart)],["http.request.response_end",br(e.responseEnd)]]:r}function j5(e,t){const n=Re.location&&Re.location.href;if(n){let r,i;try{r=new URL(e,n),i=new URL(n).origin}catch{return!1}const s=r.origin===i;return t?zr(r.toString(),t)||s&&zr(r.pathname,t):s}else{const r=!!e.match(/^\/(?!\/)/);return t?zr(e,t):r}}function L5(e,t,n,r){const i=e.xhr,s=i&&i[Mi];if(!i||i.__sentry_own_request__||!s)return;const o=Or()&&t(s.url);if(e.endTimestamp&&o){const l=i.__sentry_xhr_span_id__;if(!l)return;const v=r[l];v&&s.status_code!==void 0&&(Im(v,s.status_code),v.end(),delete r[l]);return}const c=dy(s.url),u=c?Ti(c).host:void 0,d=!!sn(),f=o&&d?ni({name:`${s.method} ${s.url}`,attributes:{type:"xhr","http.method":s.method,"http.url":c,url:s.url,"server.address":u,[Wt]:"auto.http.browser",[ei]:"http.client"}}):new ss;i.__sentry_xhr_span_id__=f.spanContext().spanId,r[i.__sentry_xhr_span_id__]=f;const p=Xe();return i.setRequestHeader&&n(s.url)&&p&&B5(i,p,Or()&&d?f:void 0),f}function B5(e,t,n){const r=vt(),i=jn(),{traceId:s,spanId:o,sampled:c,dsc:u}={...i.getPropagationContext(),...r.getPropagationContext()},d=n&&Or()?Rm(n):kl(s,o,c),f=vm(u||(n?ti(n):Za(s,t)));F5(e,d,f)}function F5(e,t,n){try{e.setRequestHeader("sentry-trace",t),n&&e.setRequestHeader(Il,n)}catch{}}function dy(e){try{return new URL(e,Re.location.origin).href}catch{return}}function U5(){Re&&Re.document?Re.document.addEventListener("visibilitychange",()=>{const e=sn();if(!e)return;const t=rn(e);if(Re.document.hidden&&t){const n="cancelled",{op:r,status:i}=ct(t);Tn&&Se.log(`[Tracing] Transaction: ${n} -> since tab moved to the background, op: ${r}`),i||t.setStatus({code:Xt,message:n}),t.setAttribute("sentry.cancellation_reason","document.hidden"),t.end()}}):Tn&&Se.warn("[Tracing] Could not set up background tab detection due to lack of global document")}const V5="BrowserTracing",q5={...ec,instrumentNavigation:!0,instrumentPageLoad:!0,markBackgroundSpan:!0,enableLongTask:!0,enableLongAnimationFrame:!0,enableInp:!0,_experiments:{},...Ld},$5=(e={})=>{E2();const{enableInp:t,enableLongTask:n,enableLongAnimationFrame:r,_experiments:{enableInteractions:i,enableStandaloneClsSpans:s},beforeStartSpan:o,idleTimeout:c,finalTimeout:u,childSpanTimeout:d,markBackgroundSpan:f,traceFetch:p,traceXHR:l,shouldCreateSpanForRequest:v,enableHTTPTimings:a,instrumentPageLoad:h,instrumentNavigation:y}={...q5,...e},g=$_({recordClsStandaloneSpans:s||!1});t&&hA(),r&&nt.PerformanceObserver&&PerformanceObserver.supportedEntryTypes&&PerformanceObserver.supportedEntryTypes.includes("long-animation-frame")?H_():n&&G_(),i&&Y_();const b={name:void 0,source:void 0};function w(E,S){const A=S.op==="pageload",T=o?o(S):S,O=T.attributes||{};S.name!==T.name&&(O[gr]="custom",T.attributes=O),b.name=T.name,b.source=O[gr];const M=zm(T,{idleTimeout:c,finalTimeout:u,childSpanTimeout:d,disableAutoFinish:A,beforeSpanEnd:F=>{g(),J_(F,{recordClsOnPageloadSpan:!s})}});function D(){["interactive","complete"].includes(Re.document.readyState)&&E.emit("idleSpanEnableAutoFinish",M)}return A&&Re.document&&(Re.document.addEventListener("readystatechange",()=>{D()}),D()),M}return{name:V5,afterAllSetup(E){let S,A=Re.location&&Re.location.href;E.on("startNavigationSpan",T=>{Xe()===E&&(S&&!ct(S).timestamp&&(Tn&&Se.log(`[Tracing] Finishing current root span with op: ${ct(S).op}`),S.end()),S=w(E,{op:"navigation",...T}))}),E.on("startPageLoadSpan",(T,O={})=>{if(Xe()!==E)return;S&&!ct(S).timestamp&&(Tn&&Se.log(`[Tracing] Finishing current root span with op: ${ct(S).op}`),S.end());const M=O.sentryTrace||hy("sentry-trace"),D=O.baggage||hy("baggage"),F=qx(M,D);vt().setPropagationContext(F),S=w(E,{op:"pageload",...T})}),E.on("spanEnd",T=>{const O=ct(T).op;if(T!==rn(T)||O!=="navigation"&&O!=="pageload")return;const M=vt(),D=M.getPropagationContext();M.setPropagationContext({...D,sampled:D.sampled!==void 0?D.sampled:Oi(T),dsc:D.dsc||ti(T)})}),Re.location&&(h&&fy(E,{name:Re.location.pathname,startTime:bn?bn/1e3:void 0,attributes:{[gr]:"url",[Wt]:"auto.pageload.browser"}}),y&&uc(({to:T,from:O})=>{if(O===void 0&&A&&A.indexOf(T)!==-1){A=void 0;return}O!==T&&(A=void 0,G5(E,{name:Re.location.pathname,attributes:{[gr]:"url",[Wt]:"auto.navigation.browser"}}))})),f&&U5(),i&&H5(c,u,d,b),t&&mA(),N5(E,{traceFetch:p,traceXHR:l,tracePropagationTargets:E.getOptions().tracePropagationTargets,shouldCreateSpanForRequest:v,enableHTTPTimings:a})}}};function fy(e,t,n){e.emit("startPageLoadSpan",t,n),vt().setTransactionName(t.name);const r=sn();return(r&&ct(r).op)==="pageload"?r:void 0}function G5(e,t){jn().setPropagationContext(Ha()),vt().setPropagationContext(Ha()),e.emit("startNavigationSpan",t),vt().setTransactionName(t.name);const n=sn();return(n&&ct(n).op)==="navigation"?n:void 0}function hy(e){const t=rx(`meta[name=${e}]`);return t?t.getAttribute("content"):void 0}function H5(e,t,n,r){let i;const s=()=>{const o="ui.action.click",c=sn(),u=c&&rn(c);if(u){const d=ct(u).op;if(["navigation","pageload"].includes(d)){Tn&&Se.warn(`[Tracing] Did not create ${o} span because a pageload or navigation span is in progress.`);return}}if(i&&(i.setAttribute(jl,"interactionInterrupted"),i.end(),i=void 0),!r.name){Tn&&Se.warn(`[Tracing] Did not create ${o} transaction because _latestRouteName is missing.`);return}i=zm({name:r.name,op:o,attributes:{[gr]:r.source||"url"}},{idleTimeout:e,finalTimeout:t,childSpanTimeout:n})};Re.document&&addEventListener("click",s,{once:!1,capture:!0})}function Y5(e){const t={...e};return pg(t,"react"),eg("react",{version:I.version}),nT(t)}function W5(e){const t=e.match(/^([^.]+)/);return t!==null&&parseInt(t[0])>=17}function K5(e,t){const n=new WeakSet;function r(i,s){if(!n.has(i)){if(i.cause)return n.add(i),r(i.cause,s);i.cause=s}}r(e,t)}function z5(e,{componentStack:t},n){if(W5(I.version)&&Pa(e)&&t){const r=new Error(e.message);r.name=`React ErrorBoundary ${e.name}`,r.stack=t,K5(e,r)}return tc(e,{...n,captureContext:{contexts:{react:{componentStack:t}}}})}var Bd={exports:{}},dt={};/** @license React v16.13.1
80
80
  * react-is.production.min.js
81
81
  *
82
82
  * Copyright (c) Facebook, Inc. and its affiliates.
@@ -90,7 +90,7 @@ or you can use record.mirror to access the mirror instance during recording.`;le
90
90
  *
91
91
  * This source code is licensed under the MIT license found in the
92
92
  * LICENSE file in the root directory of this source tree.
93
- */var my;function J5(){return my||(my=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,s=e?Symbol.for("react.profiler"):60114,o=e?Symbol.for("react.provider"):60109,c=e?Symbol.for("react.context"):60110,u=e?Symbol.for("react.async_mode"):60111,d=e?Symbol.for("react.concurrent_mode"):60111,f=e?Symbol.for("react.forward_ref"):60112,p=e?Symbol.for("react.suspense"):60113,l=e?Symbol.for("react.suspense_list"):60120,v=e?Symbol.for("react.memo"):60115,a=e?Symbol.for("react.lazy"):60116,h=e?Symbol.for("react.block"):60121,y=e?Symbol.for("react.fundamental"):60117,g=e?Symbol.for("react.responder"):60118,b=e?Symbol.for("react.scope"):60119;function w(R){return typeof R=="string"||typeof R=="function"||R===r||R===d||R===s||R===i||R===p||R===l||typeof R=="object"&&R!==null&&(R.$$typeof===a||R.$$typeof===v||R.$$typeof===o||R.$$typeof===c||R.$$typeof===f||R.$$typeof===y||R.$$typeof===g||R.$$typeof===b||R.$$typeof===h)}function E(R){if(typeof R=="object"&&R!==null){var X=R.$$typeof;switch(X){case t:var J=R.type;switch(J){case u:case d:case r:case s:case i:case p:return J;default:var Z=J&&J.$$typeof;switch(Z){case c:case f:case a:case v:case o:return Z;default:return X}}case n:return X}}}var S=u,A=d,T=c,O=o,M=t,D=f,F=r,V=a,G=v,U=n,N=s,L=i,Y=p,z=!1;function ee(R){return z||(z=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),te(R)||E(R)===u}function te(R){return E(R)===d}function re(R){return E(R)===c}function he(R){return E(R)===o}function ue(R){return typeof R=="object"&&R!==null&&R.$$typeof===t}function ye(R){return E(R)===f}function pe(R){return E(R)===r}function q(R){return E(R)===a}function $(R){return E(R)===v}function Q(R){return E(R)===n}function _(R){return E(R)===s}function j(R){return E(R)===i}function B(R){return E(R)===p}ft.AsyncMode=S,ft.ConcurrentMode=A,ft.ContextConsumer=T,ft.ContextProvider=O,ft.Element=M,ft.ForwardRef=D,ft.Fragment=F,ft.Lazy=V,ft.Memo=G,ft.Portal=U,ft.Profiler=N,ft.StrictMode=L,ft.Suspense=Y,ft.isAsyncMode=ee,ft.isConcurrentMode=te,ft.isContextConsumer=re,ft.isContextProvider=he,ft.isElement=ue,ft.isForwardRef=ye,ft.isFragment=pe,ft.isLazy=q,ft.isMemo=$,ft.isPortal=Q,ft.isProfiler=_,ft.isStrictMode=j,ft.isSuspense=B,ft.isValidElementType=w,ft.typeOf=E}()),ft}process.env.NODE_ENV==="production"?Bd.exports=Q5():Bd.exports=J5();var Z5=Bd.exports,gy=Z5,X5={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},e3={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},yy={};yy[gy.ForwardRef]=X5,yy[gy.Memo]=e3;const t3=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,vy={componentStack:null,error:null,eventId:null};class Fd extends se.Component{constructor(t){super(t),Fd.prototype.__init.call(this),this.state=vy,this._openFallbackReportDialog=!0;const n=Xe();n&&t.showDialog&&(this._openFallbackReportDialog=!1,this._cleanupHook=n.on("afterSendEvent",r=>{!r.type&&this._lastEventId&&r.event_id===this._lastEventId&&Qg({...t.dialogOptions,eventId:this._lastEventId})}))}componentDidCatch(t,n){const{componentStack:r}=n,i=r??void 0,{beforeCapture:s,onError:o,showDialog:c,dialogOptions:u}=this.props;Ka(d=>{s&&s(d,t,i);const f=z5(t,n,{mechanism:{handled:!!this.props.fallback}});o&&o(t,i,f),c&&(this._lastEventId=f,this._openFallbackReportDialog&&Qg({...u,eventId:f})),this.setState({error:t,componentStack:r,eventId:f})})}componentDidMount(){const{onMount:t}=this.props;t&&t()}componentWillUnmount(){const{error:t,componentStack:n,eventId:r}=this.state,{onUnmount:i}=this.props;i&&i(t,n,r),this._cleanupHook&&(this._cleanupHook(),this._cleanupHook=void 0)}__init(){this.resetErrorBoundary=()=>{const{onReset:t}=this.props,{error:n,componentStack:r,eventId:i}=this.state;t&&t(n,r,i),this.setState(vy)}}render(){const{fallback:t,children:n}=this.props,r=this.state;if(r.error){let i;return typeof t=="function"?i=se.createElement(t,{error:r.error,componentStack:r.componentStack,resetError:this.resetErrorBoundary,eventId:r.eventId}):i=t,se.isValidElement(i)?i:(t&&t3&&Se.warn("fallback did not produce a valid ReactElement"),null)}return typeof n=="function"?n():n}}const n3=new WeakSet;function r3(e){const t=$5({...e,instrumentPageLoad:!1,instrumentNavigation:!1}),{useEffect:n,useLocation:r,useNavigationType:i,createRoutesFromChildren:s,matchRoutes:o,stripBasename:c,instrumentPageLoad:u=!0,instrumentNavigation:d=!0}=e;return{...t,setup(){},afterAllSetup(f){t.afterAllSetup(f);const p=Ne&&Ne.location&&Ne.location.pathname;u&&p&&fy(f,{name:p,attributes:{[gr]:"url",[ei]:"pageload",[Yt]:"auto.pageload.react.reactrouter_v6"}}),d&&n3.add(f)}}}/**
93
+ */var my;function J5(){return my||(my=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,s=e?Symbol.for("react.profiler"):60114,o=e?Symbol.for("react.provider"):60109,c=e?Symbol.for("react.context"):60110,u=e?Symbol.for("react.async_mode"):60111,d=e?Symbol.for("react.concurrent_mode"):60111,f=e?Symbol.for("react.forward_ref"):60112,p=e?Symbol.for("react.suspense"):60113,l=e?Symbol.for("react.suspense_list"):60120,v=e?Symbol.for("react.memo"):60115,a=e?Symbol.for("react.lazy"):60116,h=e?Symbol.for("react.block"):60121,y=e?Symbol.for("react.fundamental"):60117,g=e?Symbol.for("react.responder"):60118,b=e?Symbol.for("react.scope"):60119;function w(N){return typeof N=="string"||typeof N=="function"||N===r||N===d||N===s||N===i||N===p||N===l||typeof N=="object"&&N!==null&&(N.$$typeof===a||N.$$typeof===v||N.$$typeof===o||N.$$typeof===c||N.$$typeof===f||N.$$typeof===y||N.$$typeof===g||N.$$typeof===b||N.$$typeof===h)}function E(N){if(typeof N=="object"&&N!==null){var X=N.$$typeof;switch(X){case t:var J=N.type;switch(J){case u:case d:case r:case s:case i:case p:return J;default:var Z=J&&J.$$typeof;switch(Z){case c:case f:case a:case v:case o:return Z;default:return X}}case n:return X}}}var S=u,A=d,T=c,O=o,M=t,D=f,F=r,V=a,G=v,U=n,R=s,L=i,Y=p,z=!1;function ee(N){return z||(z=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),te(N)||E(N)===u}function te(N){return E(N)===d}function re(N){return E(N)===c}function he(N){return E(N)===o}function ue(N){return typeof N=="object"&&N!==null&&N.$$typeof===t}function ye(N){return E(N)===f}function pe(N){return E(N)===r}function q(N){return E(N)===a}function $(N){return E(N)===v}function Q(N){return E(N)===n}function _(N){return E(N)===s}function j(N){return E(N)===i}function B(N){return E(N)===p}ft.AsyncMode=S,ft.ConcurrentMode=A,ft.ContextConsumer=T,ft.ContextProvider=O,ft.Element=M,ft.ForwardRef=D,ft.Fragment=F,ft.Lazy=V,ft.Memo=G,ft.Portal=U,ft.Profiler=R,ft.StrictMode=L,ft.Suspense=Y,ft.isAsyncMode=ee,ft.isConcurrentMode=te,ft.isContextConsumer=re,ft.isContextProvider=he,ft.isElement=ue,ft.isForwardRef=ye,ft.isFragment=pe,ft.isLazy=q,ft.isMemo=$,ft.isPortal=Q,ft.isProfiler=_,ft.isStrictMode=j,ft.isSuspense=B,ft.isValidElementType=w,ft.typeOf=E}()),ft}process.env.NODE_ENV==="production"?Bd.exports=Q5():Bd.exports=J5();var Z5=Bd.exports,gy=Z5,X5={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},e3={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},yy={};yy[gy.ForwardRef]=X5,yy[gy.Memo]=e3;const t3=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,vy={componentStack:null,error:null,eventId:null};class Fd extends se.Component{constructor(t){super(t),Fd.prototype.__init.call(this),this.state=vy,this._openFallbackReportDialog=!0;const n=Xe();n&&t.showDialog&&(this._openFallbackReportDialog=!1,this._cleanupHook=n.on("afterSendEvent",r=>{!r.type&&this._lastEventId&&r.event_id===this._lastEventId&&Qg({...t.dialogOptions,eventId:this._lastEventId})}))}componentDidCatch(t,n){const{componentStack:r}=n,i=r??void 0,{beforeCapture:s,onError:o,showDialog:c,dialogOptions:u}=this.props;Ka(d=>{s&&s(d,t,i);const f=z5(t,n,{mechanism:{handled:!!this.props.fallback}});o&&o(t,i,f),c&&(this._lastEventId=f,this._openFallbackReportDialog&&Qg({...u,eventId:f})),this.setState({error:t,componentStack:r,eventId:f})})}componentDidMount(){const{onMount:t}=this.props;t&&t()}componentWillUnmount(){const{error:t,componentStack:n,eventId:r}=this.state,{onUnmount:i}=this.props;i&&i(t,n,r),this._cleanupHook&&(this._cleanupHook(),this._cleanupHook=void 0)}__init(){this.resetErrorBoundary=()=>{const{onReset:t}=this.props,{error:n,componentStack:r,eventId:i}=this.state;t&&t(n,r,i),this.setState(vy)}}render(){const{fallback:t,children:n}=this.props,r=this.state;if(r.error){let i;return typeof t=="function"?i=se.createElement(t,{error:r.error,componentStack:r.componentStack,resetError:this.resetErrorBoundary,eventId:r.eventId}):i=t,se.isValidElement(i)?i:(t&&t3&&Se.warn("fallback did not produce a valid ReactElement"),null)}return typeof n=="function"?n():n}}const n3=new WeakSet;function r3(e){const t=$5({...e,instrumentPageLoad:!1,instrumentNavigation:!1}),{useEffect:n,useLocation:r,useNavigationType:i,createRoutesFromChildren:s,matchRoutes:o,stripBasename:c,instrumentPageLoad:u=!0,instrumentNavigation:d=!0}=e;return{...t,setup(){},afterAllSetup(f){t.afterAllSetup(f);const p=Re&&Re.location&&Re.location.pathname;u&&p&&fy(f,{name:p,attributes:{[gr]:"url",[ei]:"pageload",[Wt]:"auto.pageload.react.reactrouter_v6"}}),d&&n3.add(f)}}}/**
94
94
  * @remix-run/router v1.16.1
95
95
  *
96
96
  * Copyright (c) Remix Software Inc.
@@ -108,9 +108,9 @@ or you can use record.mirror to access the mirror instance during recording.`;le
108
108
  * LICENSE.md file in the root directory of this source tree.
109
109
  *
110
110
  * @license MIT
111
- */function Ao(){return Ao=Object.assign?Object.assign.bind():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},Ao.apply(this,arguments)}const To=se.createContext(null);process.env.NODE_ENV!=="production"&&(To.displayName="DataRouter");const Gd=se.createContext(null);process.env.NODE_ENV!=="production"&&(Gd.displayName="DataRouterState");const T3=se.createContext(null);process.env.NODE_ENV!=="production"&&(T3.displayName="Await");const Kn=se.createContext(null);process.env.NODE_ENV!=="production"&&(Kn.displayName="Navigation");const Ss=se.createContext(null);process.env.NODE_ENV!=="production"&&(Ss.displayName="Location");const or=se.createContext({outlet:null,matches:[],isDataRoute:!1});process.env.NODE_ENV!=="production"&&(or.displayName="Route");const Hd=se.createContext(null);process.env.NODE_ENV!=="production"&&(Hd.displayName="RouteError");function I3(e,t){let{relative:n}=t===void 0?{}:t;xs()||(process.env.NODE_ENV!=="production"?Ke(!1,"useHref() may be used only in the context of a <Router> component."):Ke(!1));let{basename:r,navigator:i}=se.useContext(Kn),{hash:s,pathname:o,search:c}=Io(e,{relative:n}),u=o;return r!=="/"&&(u=o==="/"?r:Dr([r,o])),i.createHref({pathname:u,search:c,hash:s})}function xs(){return se.useContext(Ss)!=null}function Fn(){return xs()||(process.env.NODE_ENV!=="production"?Ke(!1,"useLocation() may be used only in the context of a <Router> component."):Ke(!1)),se.useContext(Ss).location}function k3(){return se.useContext(Ss).navigationType}const _y="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Ay(e){se.useContext(Kn).static||se.useLayoutEffect(e)}function $t(){let{isDataRoute:e}=se.useContext(or);return e?$3():O3()}function O3(){xs()||(process.env.NODE_ENV!=="production"?Ke(!1,"useNavigate() may be used only in the context of a <Router> component."):Ke(!1));let e=se.useContext(To),{basename:t,future:n,navigator:r}=se.useContext(Kn),{matches:i}=se.useContext(or),{pathname:s}=Fn(),o=JSON.stringify(qd(i,n.v7_relativeSplatPath)),c=se.useRef(!1);return Ay(()=>{c.current=!0}),se.useCallback(function(d,f){if(f===void 0&&(f={}),process.env.NODE_ENV!=="production"&&Wn(c.current,_y),!c.current)return;if(typeof d=="number"){r.go(d);return}let p=$d(d,JSON.parse(o),s,f.relative==="path");e==null&&t!=="/"&&(p.pathname=p.pathname==="/"?t:Dr([t,p.pathname])),(f.replace?r.replace:r.push)(p,f.state,f)},[t,r,o,s,e])}function Pr(){let{matches:e}=se.useContext(or),t=e[e.length-1];return t?t.params:{}}function Io(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=se.useContext(Kn),{matches:i}=se.useContext(or),{pathname:s}=Fn(),o=JSON.stringify(qd(i,r.v7_relativeSplatPath));return se.useMemo(()=>$d(e,JSON.parse(o),s,n==="path"),[e,o,s,n])}function N3(e,t){return R3(e,t)}function R3(e,t,n,r){xs()||(process.env.NODE_ENV!=="production"?Ke(!1,"useRoutes() may be used only in the context of a <Router> component."):Ke(!1));let{navigator:i}=se.useContext(Kn),{matches:s}=se.useContext(or),o=s[s.length-1],c=o?o.params:{},u=o?o.pathname:"/",d=o?o.pathnameBase:"/",f=o&&o.route;if(process.env.NODE_ENV!=="production"){let b=f&&f.path||"";ky(u,!f||b.endsWith("*"),"You rendered descendant <Routes> (or called `useRoutes()`) at "+('"'+u+'" (under <Route path="'+b+'">) but the ')+`parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
111
+ */function Ao(){return Ao=Object.assign?Object.assign.bind():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},Ao.apply(this,arguments)}const To=se.createContext(null);process.env.NODE_ENV!=="production"&&(To.displayName="DataRouter");const Gd=se.createContext(null);process.env.NODE_ENV!=="production"&&(Gd.displayName="DataRouterState");const T3=se.createContext(null);process.env.NODE_ENV!=="production"&&(T3.displayName="Await");const Kn=se.createContext(null);process.env.NODE_ENV!=="production"&&(Kn.displayName="Navigation");const Ss=se.createContext(null);process.env.NODE_ENV!=="production"&&(Ss.displayName="Location");const ar=se.createContext({outlet:null,matches:[],isDataRoute:!1});process.env.NODE_ENV!=="production"&&(ar.displayName="Route");const Hd=se.createContext(null);process.env.NODE_ENV!=="production"&&(Hd.displayName="RouteError");function I3(e,t){let{relative:n}=t===void 0?{}:t;xs()||(process.env.NODE_ENV!=="production"?Ke(!1,"useHref() may be used only in the context of a <Router> component."):Ke(!1));let{basename:r,navigator:i}=se.useContext(Kn),{hash:s,pathname:o,search:c}=Io(e,{relative:n}),u=o;return r!=="/"&&(u=o==="/"?r:Dr([r,o])),i.createHref({pathname:u,search:c,hash:s})}function xs(){return se.useContext(Ss)!=null}function Fn(){return xs()||(process.env.NODE_ENV!=="production"?Ke(!1,"useLocation() may be used only in the context of a <Router> component."):Ke(!1)),se.useContext(Ss).location}function k3(){return se.useContext(Ss).navigationType}const _y="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Ay(e){se.useContext(Kn).static||se.useLayoutEffect(e)}function Gt(){let{isDataRoute:e}=se.useContext(ar);return e?$3():O3()}function O3(){xs()||(process.env.NODE_ENV!=="production"?Ke(!1,"useNavigate() may be used only in the context of a <Router> component."):Ke(!1));let e=se.useContext(To),{basename:t,future:n,navigator:r}=se.useContext(Kn),{matches:i}=se.useContext(ar),{pathname:s}=Fn(),o=JSON.stringify(qd(i,n.v7_relativeSplatPath)),c=se.useRef(!1);return Ay(()=>{c.current=!0}),se.useCallback(function(d,f){if(f===void 0&&(f={}),process.env.NODE_ENV!=="production"&&Wn(c.current,_y),!c.current)return;if(typeof d=="number"){r.go(d);return}let p=$d(d,JSON.parse(o),s,f.relative==="path");e==null&&t!=="/"&&(p.pathname=p.pathname==="/"?t:Dr([t,p.pathname])),(f.replace?r.replace:r.push)(p,f.state,f)},[t,r,o,s,e])}function Pr(){let{matches:e}=se.useContext(ar),t=e[e.length-1];return t?t.params:{}}function Io(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=se.useContext(Kn),{matches:i}=se.useContext(ar),{pathname:s}=Fn(),o=JSON.stringify(qd(i,r.v7_relativeSplatPath));return se.useMemo(()=>$d(e,JSON.parse(o),s,n==="path"),[e,o,s,n])}function R3(e,t){return N3(e,t)}function N3(e,t,n,r){xs()||(process.env.NODE_ENV!=="production"?Ke(!1,"useRoutes() may be used only in the context of a <Router> component."):Ke(!1));let{navigator:i}=se.useContext(Kn),{matches:s}=se.useContext(ar),o=s[s.length-1],c=o?o.params:{},u=o?o.pathname:"/",d=o?o.pathnameBase:"/",f=o&&o.route;if(process.env.NODE_ENV!=="production"){let b=f&&f.path||"";ky(u,!f||b.endsWith("*"),"You rendered descendant <Routes> (or called `useRoutes()`) at "+('"'+u+'" (under <Route path="'+b+'">) but the ')+`parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
112
112
 
113
- `+('Please change the parent <Route path="'+b+'"> to <Route ')+('path="'+(b==="/"?"*":b+"/*")+'">.'))}let p=Fn(),l;if(t){var v;let b=typeof t=="string"?Pi(t):t;d==="/"||(v=b.pathname)!=null&&v.startsWith(d)||(process.env.NODE_ENV!=="production"?Ke(!1,"When overriding the location using `<Routes location>` or `useRoutes(routes, location)`, the location pathname must begin with the portion of the URL pathname that was "+('matched by all parent routes. The current pathname base is "'+d+'" ')+('but pathname "'+b.pathname+'" was given in the `location` prop.')):Ke(!1)),l=b}else l=p;let a=l.pathname||"/",h=a;if(d!=="/"){let b=d.replace(/^\//,"").split("/");h="/"+a.replace(/^\//,"").split("/").slice(b.length).join("/")}let y=wy(e,{pathname:h});process.env.NODE_ENV!=="production"&&(process.env.NODE_ENV!=="production"&&Wn(f||y!=null,'No routes matched location "'+l.pathname+l.search+l.hash+'" '),process.env.NODE_ENV!=="production"&&Wn(y==null||y[y.length-1].route.element!==void 0||y[y.length-1].route.Component!==void 0||y[y.length-1].route.lazy!==void 0,'Matched leaf route at location "'+l.pathname+l.search+l.hash+'" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.'));let g=L3(y&&y.map(b=>Object.assign({},b,{params:Object.assign({},c,b.params),pathname:Dr([d,i.encodeLocation?i.encodeLocation(b.pathname).pathname:b.pathname]),pathnameBase:b.pathnameBase==="/"?d:Dr([d,i.encodeLocation?i.encodeLocation(b.pathnameBase).pathname:b.pathnameBase])})),s,n,r);return t&&g?se.createElement(Ss.Provider,{value:{location:Ao({pathname:"/",search:"",hash:"",state:null,key:"default"},l),navigationType:ui.Pop}},g):g}function M3(){let e=q3(),t=_3(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r="rgba(200,200,200, 0.5)",i={padding:"0.5rem",backgroundColor:r},s={padding:"2px 4px",backgroundColor:r},o=null;return process.env.NODE_ENV!=="production"&&(console.error("Error handled by React Router default ErrorBoundary:",e),o=se.createElement(se.Fragment,null,se.createElement("p",null,"💿 Hey developer 👋"),se.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",se.createElement("code",{style:s},"ErrorBoundary")," or"," ",se.createElement("code",{style:s},"errorElement")," prop on your route."))),se.createElement(se.Fragment,null,se.createElement("h2",null,"Unexpected Application Error!"),se.createElement("h3",{style:{fontStyle:"italic"}},t),n?se.createElement("pre",{style:i},n):null,o)}const D3=se.createElement(M3,null);class P3 extends se.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?se.createElement(or.Provider,{value:this.props.routeContext},se.createElement(Hd.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function j3(e){let{routeContext:t,match:n,children:r}=e,i=se.useContext(To);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),se.createElement(or.Provider,{value:t},r)}function L3(e,t,n,r){var i;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var s;if((s=n)!=null&&s.errors)e=n.matches;else return null}let o=e,c=(i=n)==null?void 0:i.errors;if(c!=null){let f=o.findIndex(p=>p.route.id&&(c==null?void 0:c[p.route.id])!==void 0);f>=0||(process.env.NODE_ENV!=="production"?Ke(!1,"Could not find a matching route for errors on route IDs: "+Object.keys(c).join(",")):Ke(!1)),o=o.slice(0,Math.min(o.length,f+1))}let u=!1,d=-1;if(n&&r&&r.v7_partialHydration)for(let f=0;f<o.length;f++){let p=o[f];if((p.route.HydrateFallback||p.route.hydrateFallbackElement)&&(d=f),p.route.id){let{loaderData:l,errors:v}=n,a=p.route.loader&&l[p.route.id]===void 0&&(!v||v[p.route.id]===void 0);if(p.route.lazy||a){u=!0,d>=0?o=o.slice(0,d+1):o=[o[0]];break}}}return o.reduceRight((f,p,l)=>{let v,a=!1,h=null,y=null;n&&(v=c&&p.route.id?c[p.route.id]:void 0,h=p.route.errorElement||D3,u&&(d<0&&l===0?(ky("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),a=!0,y=null):d===l&&(a=!0,y=p.route.hydrateFallbackElement||null)));let g=t.concat(o.slice(0,l+1)),b=()=>{let w;return v?w=h:a?w=y:p.route.Component?w=se.createElement(p.route.Component,null):p.route.element?w=p.route.element:w=f,se.createElement(j3,{match:p,routeContext:{outlet:f,matches:g,isDataRoute:n!=null},children:w})};return n&&(p.route.ErrorBoundary||p.route.errorElement||l===0)?se.createElement(P3,{location:n.location,revalidation:n.revalidation,component:h,error:v,children:b(),routeContext:{outlet:null,matches:g,isDataRoute:!0}}):b()},null)}var Ty=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(Ty||{}),ko=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(ko||{});function Yd(e){return e+" must be used within a data router. See https://reactrouter.com/routers/picking-a-router."}function B3(e){let t=se.useContext(To);return t||(process.env.NODE_ENV!=="production"?Ke(!1,Yd(e)):Ke(!1)),t}function F3(e){let t=se.useContext(Gd);return t||(process.env.NODE_ENV!=="production"?Ke(!1,Yd(e)):Ke(!1)),t}function U3(e){let t=se.useContext(or);return t||(process.env.NODE_ENV!=="production"?Ke(!1,Yd(e)):Ke(!1)),t}function Wd(e){let t=U3(e),n=t.matches[t.matches.length-1];return n.route.id||(process.env.NODE_ENV!=="production"?Ke(!1,e+' can only be used on routes that contain a unique "id"'):Ke(!1)),n.route.id}function V3(){return Wd(ko.UseRouteId)}function q3(){var e;let t=se.useContext(Hd),n=F3(ko.UseRouteError),r=Wd(ko.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function $3(){let{router:e}=B3(Ty.UseNavigateStable),t=Wd(ko.UseNavigateStable),n=se.useRef(!1);return Ay(()=>{n.current=!0}),se.useCallback(function(i,s){s===void 0&&(s={}),process.env.NODE_ENV!=="production"&&Wn(n.current,_y),n.current&&(typeof i=="number"?e.navigate(i):e.navigate(i,Ao({fromRouteId:t},s)))},[e,t])}const Iy={};function ky(e,t,n){!t&&!Iy[e]&&(Iy[e]=!0,process.env.NODE_ENV!=="production"&&Wn(!1,n))}const Oy=se["startTransition"];function G3(e){let{basename:t,children:n,initialEntries:r,initialIndex:i,future:s}=e,o=se.useRef();o.current==null&&(o.current=i3({initialEntries:r,initialIndex:i,v5Compat:!0}));let c=o.current,[u,d]=se.useState({action:c.action,location:c.location}),{v7_startTransition:f}=s||{},p=se.useCallback(l=>{f&&Oy?Oy(()=>d(l)):d(l)},[d,f]);return se.useLayoutEffect(()=>c.listen(p),[c,p]),se.createElement(H3,{basename:t,children:n,location:u.location,navigationType:u.action,navigator:c,future:s})}function zn(e){let{to:t,replace:n,state:r,relative:i}=e;xs()||(process.env.NODE_ENV!=="production"?Ke(!1,"<Navigate> may be used only in the context of a <Router> component."):Ke(!1));let{future:s,static:o}=se.useContext(Kn);process.env.NODE_ENV!=="production"&&Wn(!o,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:c}=se.useContext(or),{pathname:u}=Fn(),d=$t(),f=$d(t,qd(c,s.v7_relativeSplatPath),u,i==="path"),p=JSON.stringify(f);return se.useEffect(()=>d(JSON.parse(p),{replace:n,state:r,relative:i}),[d,p,i,n,r]),null}function He(e){process.env.NODE_ENV!=="production"?Ke(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>."):Ke(!1)}function H3(e){let{basename:t="/",children:n=null,location:r,navigationType:i=ui.Pop,navigator:s,static:o=!1,future:c}=e;xs()&&(process.env.NODE_ENV!=="production"?Ke(!1,"You cannot render a <Router> inside another <Router>. You should never have more than one in your app."):Ke(!1));let u=t.replace(/^\/*/,"/"),d=se.useMemo(()=>({basename:u,navigator:s,static:o,future:Ao({v7_relativeSplatPath:!1},c)}),[u,c,s,o]);typeof r=="string"&&(r=Pi(r));let{pathname:f="/",search:p="",hash:l="",state:v=null,key:a="default"}=r,h=se.useMemo(()=>{let y=li(f,u);return y==null?null:{location:{pathname:y,search:p,hash:l,state:v,key:a},navigationType:i}},[u,f,p,l,v,a,i]);return process.env.NODE_ENV!=="production"&&Wn(h!=null,'<Router basename="'+u+'"> is not able to match the URL '+('"'+f+p+l+'" because it does not start with the ')+"basename, so the <Router> won't render anything."),h==null?null:se.createElement(Kn.Provider,{value:d},se.createElement(Ss.Provider,{children:n,value:h}))}function jr(e){let{children:t,location:n}=e;return N3(jc(t),n)}new Promise(()=>{});function jc(e,t){t===void 0&&(t=[]);let n=[];return se.Children.forEach(e,(r,i)=>{if(!se.isValidElement(r))return;let s=[...t,i];if(r.type===se.Fragment){n.push.apply(n,jc(r.props.children,s));return}r.type!==He&&(process.env.NODE_ENV!=="production"?Ke(!1,"["+(typeof r.type=="string"?r.type:r.type.name)+"] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>"):Ke(!1)),!r.props.index||!r.props.children||(process.env.NODE_ENV!=="production"?Ke(!1,"An index route cannot have child routes."):Ke(!1));let o={id:r.props.id||s.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(o.children=jc(r.props.children,s)),n.push(o)}),n}/**
113
+ `+('Please change the parent <Route path="'+b+'"> to <Route ')+('path="'+(b==="/"?"*":b+"/*")+'">.'))}let p=Fn(),l;if(t){var v;let b=typeof t=="string"?Pi(t):t;d==="/"||(v=b.pathname)!=null&&v.startsWith(d)||(process.env.NODE_ENV!=="production"?Ke(!1,"When overriding the location using `<Routes location>` or `useRoutes(routes, location)`, the location pathname must begin with the portion of the URL pathname that was "+('matched by all parent routes. The current pathname base is "'+d+'" ')+('but pathname "'+b.pathname+'" was given in the `location` prop.')):Ke(!1)),l=b}else l=p;let a=l.pathname||"/",h=a;if(d!=="/"){let b=d.replace(/^\//,"").split("/");h="/"+a.replace(/^\//,"").split("/").slice(b.length).join("/")}let y=wy(e,{pathname:h});process.env.NODE_ENV!=="production"&&(process.env.NODE_ENV!=="production"&&Wn(f||y!=null,'No routes matched location "'+l.pathname+l.search+l.hash+'" '),process.env.NODE_ENV!=="production"&&Wn(y==null||y[y.length-1].route.element!==void 0||y[y.length-1].route.Component!==void 0||y[y.length-1].route.lazy!==void 0,'Matched leaf route at location "'+l.pathname+l.search+l.hash+'" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.'));let g=L3(y&&y.map(b=>Object.assign({},b,{params:Object.assign({},c,b.params),pathname:Dr([d,i.encodeLocation?i.encodeLocation(b.pathname).pathname:b.pathname]),pathnameBase:b.pathnameBase==="/"?d:Dr([d,i.encodeLocation?i.encodeLocation(b.pathnameBase).pathname:b.pathnameBase])})),s,n,r);return t&&g?se.createElement(Ss.Provider,{value:{location:Ao({pathname:"/",search:"",hash:"",state:null,key:"default"},l),navigationType:ui.Pop}},g):g}function M3(){let e=q3(),t=_3(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r="rgba(200,200,200, 0.5)",i={padding:"0.5rem",backgroundColor:r},s={padding:"2px 4px",backgroundColor:r},o=null;return process.env.NODE_ENV!=="production"&&(console.error("Error handled by React Router default ErrorBoundary:",e),o=se.createElement(se.Fragment,null,se.createElement("p",null,"💿 Hey developer 👋"),se.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",se.createElement("code",{style:s},"ErrorBoundary")," or"," ",se.createElement("code",{style:s},"errorElement")," prop on your route."))),se.createElement(se.Fragment,null,se.createElement("h2",null,"Unexpected Application Error!"),se.createElement("h3",{style:{fontStyle:"italic"}},t),n?se.createElement("pre",{style:i},n):null,o)}const D3=se.createElement(M3,null);class P3 extends se.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?se.createElement(ar.Provider,{value:this.props.routeContext},se.createElement(Hd.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function j3(e){let{routeContext:t,match:n,children:r}=e,i=se.useContext(To);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),se.createElement(ar.Provider,{value:t},r)}function L3(e,t,n,r){var i;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var s;if((s=n)!=null&&s.errors)e=n.matches;else return null}let o=e,c=(i=n)==null?void 0:i.errors;if(c!=null){let f=o.findIndex(p=>p.route.id&&(c==null?void 0:c[p.route.id])!==void 0);f>=0||(process.env.NODE_ENV!=="production"?Ke(!1,"Could not find a matching route for errors on route IDs: "+Object.keys(c).join(",")):Ke(!1)),o=o.slice(0,Math.min(o.length,f+1))}let u=!1,d=-1;if(n&&r&&r.v7_partialHydration)for(let f=0;f<o.length;f++){let p=o[f];if((p.route.HydrateFallback||p.route.hydrateFallbackElement)&&(d=f),p.route.id){let{loaderData:l,errors:v}=n,a=p.route.loader&&l[p.route.id]===void 0&&(!v||v[p.route.id]===void 0);if(p.route.lazy||a){u=!0,d>=0?o=o.slice(0,d+1):o=[o[0]];break}}}return o.reduceRight((f,p,l)=>{let v,a=!1,h=null,y=null;n&&(v=c&&p.route.id?c[p.route.id]:void 0,h=p.route.errorElement||D3,u&&(d<0&&l===0?(ky("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),a=!0,y=null):d===l&&(a=!0,y=p.route.hydrateFallbackElement||null)));let g=t.concat(o.slice(0,l+1)),b=()=>{let w;return v?w=h:a?w=y:p.route.Component?w=se.createElement(p.route.Component,null):p.route.element?w=p.route.element:w=f,se.createElement(j3,{match:p,routeContext:{outlet:f,matches:g,isDataRoute:n!=null},children:w})};return n&&(p.route.ErrorBoundary||p.route.errorElement||l===0)?se.createElement(P3,{location:n.location,revalidation:n.revalidation,component:h,error:v,children:b(),routeContext:{outlet:null,matches:g,isDataRoute:!0}}):b()},null)}var Ty=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(Ty||{}),ko=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(ko||{});function Yd(e){return e+" must be used within a data router. See https://reactrouter.com/routers/picking-a-router."}function B3(e){let t=se.useContext(To);return t||(process.env.NODE_ENV!=="production"?Ke(!1,Yd(e)):Ke(!1)),t}function F3(e){let t=se.useContext(Gd);return t||(process.env.NODE_ENV!=="production"?Ke(!1,Yd(e)):Ke(!1)),t}function U3(e){let t=se.useContext(ar);return t||(process.env.NODE_ENV!=="production"?Ke(!1,Yd(e)):Ke(!1)),t}function Wd(e){let t=U3(e),n=t.matches[t.matches.length-1];return n.route.id||(process.env.NODE_ENV!=="production"?Ke(!1,e+' can only be used on routes that contain a unique "id"'):Ke(!1)),n.route.id}function V3(){return Wd(ko.UseRouteId)}function q3(){var e;let t=se.useContext(Hd),n=F3(ko.UseRouteError),r=Wd(ko.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function $3(){let{router:e}=B3(Ty.UseNavigateStable),t=Wd(ko.UseNavigateStable),n=se.useRef(!1);return Ay(()=>{n.current=!0}),se.useCallback(function(i,s){s===void 0&&(s={}),process.env.NODE_ENV!=="production"&&Wn(n.current,_y),n.current&&(typeof i=="number"?e.navigate(i):e.navigate(i,Ao({fromRouteId:t},s)))},[e,t])}const Iy={};function ky(e,t,n){!t&&!Iy[e]&&(Iy[e]=!0,process.env.NODE_ENV!=="production"&&Wn(!1,n))}const Oy=se["startTransition"];function G3(e){let{basename:t,children:n,initialEntries:r,initialIndex:i,future:s}=e,o=se.useRef();o.current==null&&(o.current=i3({initialEntries:r,initialIndex:i,v5Compat:!0}));let c=o.current,[u,d]=se.useState({action:c.action,location:c.location}),{v7_startTransition:f}=s||{},p=se.useCallback(l=>{f&&Oy?Oy(()=>d(l)):d(l)},[d,f]);return se.useLayoutEffect(()=>c.listen(p),[c,p]),se.createElement(H3,{basename:t,children:n,location:u.location,navigationType:u.action,navigator:c,future:s})}function zn(e){let{to:t,replace:n,state:r,relative:i}=e;xs()||(process.env.NODE_ENV!=="production"?Ke(!1,"<Navigate> may be used only in the context of a <Router> component."):Ke(!1));let{future:s,static:o}=se.useContext(Kn);process.env.NODE_ENV!=="production"&&Wn(!o,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:c}=se.useContext(ar),{pathname:u}=Fn(),d=Gt(),f=$d(t,qd(c,s.v7_relativeSplatPath),u,i==="path"),p=JSON.stringify(f);return se.useEffect(()=>d(JSON.parse(p),{replace:n,state:r,relative:i}),[d,p,i,n,r]),null}function He(e){process.env.NODE_ENV!=="production"?Ke(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>."):Ke(!1)}function H3(e){let{basename:t="/",children:n=null,location:r,navigationType:i=ui.Pop,navigator:s,static:o=!1,future:c}=e;xs()&&(process.env.NODE_ENV!=="production"?Ke(!1,"You cannot render a <Router> inside another <Router>. You should never have more than one in your app."):Ke(!1));let u=t.replace(/^\/*/,"/"),d=se.useMemo(()=>({basename:u,navigator:s,static:o,future:Ao({v7_relativeSplatPath:!1},c)}),[u,c,s,o]);typeof r=="string"&&(r=Pi(r));let{pathname:f="/",search:p="",hash:l="",state:v=null,key:a="default"}=r,h=se.useMemo(()=>{let y=li(f,u);return y==null?null:{location:{pathname:y,search:p,hash:l,state:v,key:a},navigationType:i}},[u,f,p,l,v,a,i]);return process.env.NODE_ENV!=="production"&&Wn(h!=null,'<Router basename="'+u+'"> is not able to match the URL '+('"'+f+p+l+'" because it does not start with the ')+"basename, so the <Router> won't render anything."),h==null?null:se.createElement(Kn.Provider,{value:d},se.createElement(Ss.Provider,{children:n,value:h}))}function jr(e){let{children:t,location:n}=e;return R3(jc(t),n)}new Promise(()=>{});function jc(e,t){t===void 0&&(t=[]);let n=[];return se.Children.forEach(e,(r,i)=>{if(!se.isValidElement(r))return;let s=[...t,i];if(r.type===se.Fragment){n.push.apply(n,jc(r.props.children,s));return}r.type!==He&&(process.env.NODE_ENV!=="production"?Ke(!1,"["+(typeof r.type=="string"?r.type:r.type.name)+"] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>"):Ke(!1)),!r.props.index||!r.props.children||(process.env.NODE_ENV!=="production"?Ke(!1,"An index route cannot have child routes."):Ke(!1));let o={id:r.props.id||s.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(o.children=jc(r.props.children,s)),n.push(o)}),n}/**
114
114
  * React Router DOM v6.23.1
115
115
  *
116
116
  * Copyright (c) Remix Software Inc.
@@ -119,7 +119,7 @@ or you can use record.mirror to access the mirror instance during recording.`;le
119
119
  * LICENSE.md file in the root directory of this source tree.
120
120
  *
121
121
  * @license MIT
122
- */function Cs(){return Cs=Object.assign?Object.assign.bind():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},Cs.apply(this,arguments)}function Kd(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,s;for(s=0;s<r.length;s++)i=r[s],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}const Lc="get",Bc="application/x-www-form-urlencoded";function Fc(e){return e!=null&&typeof e.tagName=="string"}function Y3(e){return Fc(e)&&e.tagName.toLowerCase()==="button"}function W3(e){return Fc(e)&&e.tagName.toLowerCase()==="form"}function K3(e){return Fc(e)&&e.tagName.toLowerCase()==="input"}function z3(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function Q3(e,t){return e.button===0&&(!t||t==="_self")&&!z3(e)}let Uc=null;function J3(){if(Uc===null)try{new FormData(document.createElement("form"),0),Uc=!1}catch{Uc=!0}return Uc}const Z3=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function zd(e){return e!=null&&!Z3.has(e)?(process.env.NODE_ENV!=="production"&&Wn(!1,'"'+e+'" is not a valid `encType` for `<Form>`/`<fetcher.Form>` '+('and will default to "'+Bc+'"')),null):e}function X3(e,t){let n,r,i,s,o;if(W3(e)){let c=e.getAttribute("action");r=c?li(c,t):null,n=e.getAttribute("method")||Lc,i=zd(e.getAttribute("enctype"))||Bc,s=new FormData(e)}else if(Y3(e)||K3(e)&&(e.type==="submit"||e.type==="image")){let c=e.form;if(c==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let u=e.getAttribute("formaction")||c.getAttribute("action");if(r=u?li(u,t):null,n=e.getAttribute("formmethod")||c.getAttribute("method")||Lc,i=zd(e.getAttribute("formenctype"))||zd(c.getAttribute("enctype"))||Bc,s=new FormData(c,e),!J3()){let{name:d,type:f,value:p}=e;if(f==="image"){let l=d?d+".":"";s.append(l+"x","0"),s.append(l+"y","0")}else d&&s.append(d,p)}}else{if(Fc(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=Lc,r=null,i=Bc,o=e}return s&&i==="text/plain"&&(o=s,s=void 0),{action:r,method:n.toLowerCase(),encType:i,formData:s,body:o}}const ek=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],tk=["aria-current","caseSensitive","className","end","style","to","unstable_viewTransition","children"],nk=["fetcherKey","navigate","reloadDocument","replace","state","method","action","onSubmit","relative","preventScrollReset","unstable_viewTransition"],rk="6";try{window.__reactRouterVersion=rk}catch{}const Ny=se.createContext({isTransitioning:!1});process.env.NODE_ENV!=="production"&&(Ny.displayName="ViewTransition");const ik=se.createContext(new Map);process.env.NODE_ENV!=="production"&&(ik.displayName="Fetchers"),process.env.NODE_ENV;const sk=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",ok=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Ry=se.forwardRef(function(t,n){let{onClick:r,relative:i,reloadDocument:s,replace:o,state:c,target:u,to:d,preventScrollReset:f,unstable_viewTransition:p}=t,l=Kd(t,ek),{basename:v}=se.useContext(Kn),a,h=!1;if(typeof d=="string"&&ok.test(d)&&(a=d,sk))try{let w=new URL(window.location.href),E=d.startsWith("//")?new URL(w.protocol+d):new URL(d),S=li(E.pathname,v);E.origin===w.origin&&S!=null?d=S+E.search+E.hash:h=!0}catch{process.env.NODE_ENV!=="production"&&Wn(!1,'<Link to="'+d+'"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.')}let y=I3(d,{relative:i}),g=uk(d,{replace:o,state:c,target:u,preventScrollReset:f,relative:i,unstable_viewTransition:p});function b(w){r&&r(w),w.defaultPrevented||g(w)}return se.createElement("a",Cs({},l,{href:a||y,onClick:h||s?r:b,ref:n,target:u}))});process.env.NODE_ENV!=="production"&&(Ry.displayName="Link");const My=se.forwardRef(function(t,n){let{"aria-current":r="page",caseSensitive:i=!1,className:s="",end:o=!1,style:c,to:u,unstable_viewTransition:d,children:f}=t,p=Kd(t,tk),l=Io(u,{relative:p.relative}),v=Fn(),a=se.useContext(Gd),{navigator:h,basename:y}=se.useContext(Kn),g=a!=null&&mk(l)&&d===!0,b=h.encodeLocation?h.encodeLocation(l).pathname:l.pathname,w=v.pathname,E=a&&a.navigation&&a.navigation.location?a.navigation.location.pathname:null;i||(w=w.toLowerCase(),E=E?E.toLowerCase():null,b=b.toLowerCase()),E&&y&&(E=li(E,y)||E);const S=b!=="/"&&b.endsWith("/")?b.length-1:b.length;let A=w===b||!o&&w.startsWith(b)&&w.charAt(S)==="/",T=E!=null&&(E===b||!o&&E.startsWith(b)&&E.charAt(b.length)==="/"),O={isActive:A,isPending:T,isTransitioning:g},M=A?r:void 0,D;typeof s=="function"?D=s(O):D=[s,A?"active":null,T?"pending":null,g?"transitioning":null].filter(Boolean).join(" ");let F=typeof c=="function"?c(O):c;return se.createElement(Ry,Cs({},p,{"aria-current":M,className:D,ref:n,style:F,to:u,unstable_viewTransition:d}),typeof f=="function"?f(O):f)});process.env.NODE_ENV!=="production"&&(My.displayName="NavLink");const ak=se.forwardRef((e,t)=>{let{fetcherKey:n,navigate:r,reloadDocument:i,replace:s,state:o,method:c=Lc,action:u,onSubmit:d,relative:f,preventScrollReset:p,unstable_viewTransition:l}=e,v=Kd(e,nk),a=hk(),h=pk(u,{relative:f}),y=c.toLowerCase()==="get"?"get":"post",g=b=>{if(d&&d(b),b.defaultPrevented)return;b.preventDefault();let w=b.nativeEvent.submitter,E=(w==null?void 0:w.getAttribute("formmethod"))||c;a(w||b.currentTarget,{fetcherKey:n,method:E,navigate:r,replace:s,state:o,relative:f,preventScrollReset:p,unstable_viewTransition:l})};return se.createElement("form",Cs({ref:t,method:y,action:h,onSubmit:i?d:g},v))});process.env.NODE_ENV!=="production"&&(ak.displayName="Form"),process.env.NODE_ENV;var Vc;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(Vc||(Vc={}));var Dy;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(Dy||(Dy={}));function ck(e){return e+" must be used within a data router. See https://reactrouter.com/routers/picking-a-router."}function Py(e){let t=se.useContext(To);return t||(process.env.NODE_ENV!=="production"?Ke(!1,ck(e)):Ke(!1)),t}function uk(e,t){let{target:n,replace:r,state:i,preventScrollReset:s,relative:o,unstable_viewTransition:c}=t===void 0?{}:t,u=$t(),d=Fn(),f=Io(e,{relative:o});return se.useCallback(p=>{if(Q3(p,n)){p.preventDefault();let l=r!==void 0?r:Pc(d)===Pc(f);u(e,{replace:l,state:i,preventScrollReset:s,relative:o,unstable_viewTransition:c})}},[d,u,f,r,i,n,e,s,o,c])}function lk(){if(typeof document>"u")throw new Error("You are calling submit during the server render. Try calling submit within a `useEffect` or callback instead.")}let dk=0,fk=()=>"__"+String(++dk)+"__";function hk(){let{router:e}=Py(Vc.UseSubmit),{basename:t}=se.useContext(Kn),n=V3();return se.useCallback(function(r,i){i===void 0&&(i={}),lk();let{action:s,method:o,encType:c,formData:u,body:d}=X3(r,t);if(i.navigate===!1){let f=i.fetcherKey||fk();e.fetch(f,n,i.action||s,{preventScrollReset:i.preventScrollReset,formData:u,body:d,formMethod:i.method||o,formEncType:i.encType||c,unstable_flushSync:i.unstable_flushSync})}else e.navigate(i.action||s,{preventScrollReset:i.preventScrollReset,formData:u,body:d,formMethod:i.method||o,formEncType:i.encType||c,replace:i.replace,state:i.state,fromRouteId:n,unstable_flushSync:i.unstable_flushSync,unstable_viewTransition:i.unstable_viewTransition})},[e,t,n])}function pk(e,t){let{relative:n}=t===void 0?{}:t,{basename:r}=se.useContext(Kn),i=se.useContext(or);i||(process.env.NODE_ENV!=="production"?Ke(!1,"useFormAction must be used inside a RouteContext"):Ke(!1));let[s]=i.matches.slice(-1),o=Cs({},Io(e||".",{relative:n})),c=Fn();if(e==null){o.search=c.search;let u=new URLSearchParams(o.search);u.has("index")&&u.get("index")===""&&(u.delete("index"),o.search=u.toString()?"?"+u.toString():"")}return(!e||e===".")&&s.route.index&&(o.search=o.search?o.search.replace(/^\?/,"?index&"):"?index"),r!=="/"&&(o.pathname=o.pathname==="/"?r:Dr([r,o.pathname])),Pc(o)}function mk(e,t){t===void 0&&(t={});let n=se.useContext(Ny);n==null&&(process.env.NODE_ENV!=="production"?Ke(!1,"`unstable_useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?"):Ke(!1));let{basename:r}=Py(Vc.useViewTransitionState),i=Io(e,{relative:t.relative});if(!n.isTransitioning)return!1;let s=li(n.currentLocation.pathname,r)||n.currentLocation.pathname,o=li(n.nextLocation.pathname,r)||n.nextLocation.pathname;return Ud(i.pathname,o)!=null||Ud(i.pathname,s)!=null}Y5({dsn:"https://5b16c396f6e8f6e4b0b87455bea7e96b@o80526.ingest.us.sentry.io/4507345428283392",integrations:[r3({useEffect:I.useEffect,useLocation:Fn,useNavigationType:k3,createRoutesFromChildren:jc,matchRoutes:wy}),O5()],enabled:!0});function gk(e){const t=parseInt(e.slice(1,3),16)/255,n=parseInt(e.slice(3,5),16)/255,r=parseInt(e.slice(5,7),16)/255,i=Math.max(t,n,r),s=Math.min(t,n,r),o=i-s,c=(i+s)/2;let u=0;o!==0&&(u=o/(1-Math.abs(2*c-1)));let d=0;return o!==0&&(i===t?d=((n-r)/o+(n<r?6:0))*60:i===n?d=((r-t)/o+2)*60:d=((t-n)/o+4)*60),{hue:d,saturation:u,lightness:c}}function qc(e,t,n){const r=(1-Math.abs(2*n-1))*t,i=r*(1-Math.abs(e/60%2-1)),s=n-r/2;let o=0,c=0,u=0;return e<60?(o=r,c=i,u=0):e<120?(o=i,c=r,u=0):e<180?(o=0,c=r,u=i):e<240?(o=0,c=i,u=r):e<300?(o=i,c=0,u=r):(o=r,c=0,u=i),o=Math.round((o+s)*255),c=Math.round((c+s)*255),u=Math.round((u+s)*255),`#${o.toString(16).padStart(2,"0")}${c.toString(16).padStart(2,"0")}${u.toString(16).padStart(2,"0")}`}function jy(e){const{hue:t,saturation:n,lightness:r}=gk(e),i=.04,s=[{key:"50",min:97,max:99},{key:"100",min:92,max:96},{key:"200",min:85,max:91},{key:"300",min:74,max:84},{key:"400",min:58,max:73},{key:"500",min:51,max:61},{key:"600",min:36,max:50},{key:"700",min:29,max:40},{key:"800",min:24,max:33},{key:"900",min:20,max:28},{key:"950",min:0,max:19}],o={},c={},u={},d={};s.forEach(f=>{const p=(f.min+f.max)/2/100;o[f.key]=qc(t,n,p),u[f.key]=qc(0,n,p),d[f.key]=qc(120,n,p),c[f.key]=qc(t,i,p)});for(const f of s)if(r*100>=f.min&&r*100<=f.max){o[f.key]=e;break}return{primaryPalette:o,redPalette:u,greenPalette:d,grayPalette:c}}const yk=e=>{const t={primary:e.primary_color,secondary:e.secondary_color,tertiary:e.tertiary_color,quaternary:e.quaternary_color},n=document.querySelector(":root");for(const r in t)if(t[r]){const{primaryPalette:i}=jy(t[r]);for(const s in i)n.style.setProperty(`--${r}-${s}`,i[s])}if(t.primary){const{grayPalette:r,redPalette:i,greenPalette:s}=jy(t.primary);for(const o in r)n.style.setProperty(`--gray-${o}`,r[o]);for(const o in i)n.style.setProperty(`--red-${o}`,i[o]);for(const o in s)n.style.setProperty(`--green-${o}`,s[o])}};function Le(){const e=I.useContext(oh);if(!e)throw new Error("Only use 'usePortalSessionContext' within a PortalSessionProvider");return e}const vk={[un.GENERIC]:Fe.GENERIC,[un.PORTAL]:Fe.PORTAL,[un.POINTS_TRANSACTION]:Fe.POINTS_TRANSACTION,[un.PAY_PREPAID]:Fe.PREPAID,[un.TOP_UP_PREPAID]:Fe.PREPAID,[un.VOUCHER]:Fe.VOUCHER,[un.GIFTCARD]:Fe.GIFTCARD,[un.REDEEM_GIFTCARD]:Fe.GIFTCARD,[un.TOP_UP_GIFTCARD]:Fe.GIFTCARD};function bk(){const{portalSession:e}=Le();return m.jsx(zn,{to:vk[e.type]})}function di({value:e,start:t=0,duration:n=1e3,currency:r="EUR",asCurrency:i=!1}){const[s,o]=I.useState(t),c=()=>{const u=t>e?t-e:e-t;return u<=1e3?1:u/1e3};return I.useEffect(()=>{const u=setInterval(()=>{t>e?o(d=>Math.max(d-c(),e)):o(d=>Math.min(d+c(),e)),s===e&&clearInterval(u)},n/e);return()=>clearInterval(u)},[s,n,t,e]),m.jsx("div",{"data-testid":"animated-counter",children:i?Ki(s,r):s})}const wk=(e,t,n)=>{const r=e[t];return r?typeof r=="function"?r():Promise.resolve(r):new Promise((i,s)=>{(typeof queueMicrotask=="function"?queueMicrotask:setTimeout)(s.bind(null,new Error("Unknown variable dynamic import: "+t+(t.split("/").length!==n?". Note that variables only represent file names one level deep.":""))))})},Ek=({svgComponent:e,...t})=>m.jsx(e,{...t});function Ly(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=Ly(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function Sk(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=Ly(e))&&(r&&(r+=" "),r+=t);return r}const By=e=>typeof e=="boolean"?"".concat(e):e===0?"0":e,Fy=Sk,_s=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return Fy(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:i,defaultVariants:s}=t,o=Object.keys(i).map(d=>{const f=n==null?void 0:n[d],p=s==null?void 0:s[d];if(f===null)return null;const l=By(f)||By(p);return i[d][l]}),c=n&&Object.entries(n).reduce((d,f)=>{let[p,l]=f;return l===void 0||(d[p]=l),d},{}),u=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((d,f)=>{let{class:p,className:l,...v}=f;return Object.entries(v).every(a=>{let[h,y]=a;return Array.isArray(y)?y.includes({...s,...c}[h]):{...s,...c}[h]===y})?[...d,p,l]:d},[]);return Fy(e,o,u,n==null?void 0:n.class,n==null?void 0:n.className)},xk=_s("aspect-square",{variants:{size:{"2xs":"h-3 w-3",xs:"h-4 w-4",sm:"h-5 w-5",md:"h-6 w-6",lg:"h-7 w-7",xl:"h-8 w-8","2xl":"h-10 w-10"},variant:{primary:"fill-none stroke-core-white-900 stroke-[1.5]",secondary:"fill-none stroke-core-gray-400 stroke-[1.5] active:stroke-core-gray-900 ",discovery:"fill-none stroke-core-primary-500 stroke-[1.5] ",destructive:"fill-none stroke-core-red-700 stroke-[1.5] ",placeholder:"fill-none stroke-core-gray-300 stroke-[1.5]"},outline:{true:[],false:[]}},compoundVariants:[{variant:"placeholder",outline:!1,class:"fill-core-gray-300 stroke-width-0"}],defaultVariants:{variant:"placeholder",size:"md"}}),on=({icon:e="user",size:t="md",variant:n="placeholder",outline:r=!0})=>{if(I.isValidElement(e))return"span";const i=Ck(e);return i?m.jsx(Ek,{svgComponent:i,className:xk({variant:n,size:t,outline:r})}):null};function Ck(e){const[t,n]=I.useState(null),r=async()=>{try{const i=(await wk(Object.assign({"../../assets/svg/calendar.svg":()=>Promise.resolve().then(()=>w8),"../../assets/svg/camera-switch.svg":()=>Promise.resolve().then(()=>E8),"../../assets/svg/caret-left.svg":()=>Promise.resolve().then(()=>S8),"../../assets/svg/close.svg":()=>Promise.resolve().then(()=>x8),"../../assets/svg/crossBlack.svg":()=>Promise.resolve().then(()=>C8),"../../assets/svg/dollar.svg":()=>Promise.resolve().then(()=>_8),"../../assets/svg/edit.svg":()=>Promise.resolve().then(()=>A8),"../../assets/svg/home.svg":()=>Promise.resolve().then(()=>T8),"../../assets/svg/information.svg":()=>Promise.resolve().then(()=>I8),"../../assets/svg/mail.svg":()=>Promise.resolve().then(()=>k8),"../../assets/svg/notificationErrorV2.svg":()=>Promise.resolve().then(()=>O8),"../../assets/svg/notificationSuccessV2.svg":()=>Promise.resolve().then(()=>N8),"../../assets/svg/notificationWarningV2.svg":()=>Promise.resolve().then(()=>R8),"../../assets/svg/settings.svg":()=>Promise.resolve().then(()=>M8),"../../assets/svg/shopping-bag.svg":()=>Promise.resolve().then(()=>D8),"../../assets/svg/star.svg":()=>Promise.resolve().then(()=>P8),"../../assets/svg/user.svg":()=>Promise.resolve().then(()=>j8)}),`../../assets/svg/${e}.svg`,5)).default;n(()=>i)}catch(i){console.error(`Failed to import icon: ${e}`,i),n(null)}};return I.useEffect(()=>{r()},[e]),t}const _k=_s("bg-core-primary-500 text-core-white-900 relative inline-flex aspect-square shrink-0 items-center antialiased rounded-full overflow-hidden uppercase",{variants:{size:{xs:"h-6 w-6 text-xs ",sm:"h-8 w-8 text-sm",md:"h-10 w-10 text-base",lg:"h-12 w-12 text-lg",xl:"h-14 w-14 text-xl","2xl":"h-16 w-16 text-2xl"}},defaultVariants:{size:"sm"}}),Ak=({src:e,alt:t})=>m.jsx("img",{src:e,alt:t,className:"bg-core-white-900 aspect-square w-full grow rounded-full object-cover object-center"}),Tk=({initials:e})=>m.jsx("div",{className:"h-full w-full content-center text-center",children:e}),Qd=({src:e,alt:t,initials:n,size:r})=>m.jsxs("div",{className:_k({size:r}),children:[e&&m.jsx(Ak,{src:e,alt:t}),e&&!n&&m.jsx("div",{className:"flex grow h-full w-full bg-core-gray-100 justify-center items-center",children:m.jsx(on,{icon:"user",variant:"placeholder",outline:!1,size:r})}),!e&&n&&m.jsx(Tk,{initials:n}),!e&&!n&&m.jsx("div",{className:"flex grow h-full w-full bg-core-gray-100 justify-center items-center",children:m.jsx(on,{icon:"user",variant:"placeholder",outline:!1,size:r})})]});Qd.displayName="Avatar";const Ik=_s("inline-flex items-center rounded-lg px-2 py-1 antialiased",{variants:{color:{primary:"text-core-primary-700 outline-core-primary-200 bg-core-primary-50",gray:"text-core-gray-700 outline-core-gray-200 bg-core-gray-50"},size:{sm:"text-xs leading-4 ",md:"text-sm leading-5 "},stroke:{true:"outline outline-1",false:""}},defaultVariants:{color:"primary",size:"sm",stroke:!1}}),Jd=({label:e,color:t="primary",size:n="sm",stroke:r=!1})=>m.jsx("span",{className:Ik({color:t,size:n,stroke:r}),children:e});Jd.displayName="Badge";function kk({body:e}){return m.jsxs("div",{className:"flex gap-3 rounded-r-lg border-l-2 border-core-primary-500 bg-core-gray-50 p-4 text-sm",children:[m.jsx(on,{icon:"information",variant:"discovery"}),m.jsx("div",{children:e})]})}const Ok=_s("group inline-flex shrink-0 select-none items-center justify-center font-medium transition-colors duration-100 antialiased rounded-lg hover:shadow-none focus:outline-0 focus:outline-core-primary-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 disabled:pointer-events-none",{variants:{size:{sm:"h-8 gap-1 px-2 py-1 text-xs leading-4",md:"h-10 gap-1 px-3 py-2 text-sm leading-5",lg:"h-12 gap-1 px-3 py-3 text-base leading-6"},variant:{primary:"bg-core-primary-500 text-core-white-900 outline-primary hover:bg-core-primary-600 disabled:bg-core-primary-disabled",secondary:"box-border border border-core-gray-200 bg-core-white-900 shadow-xs hover:bg-core-gray-50 disabled:opacity-30",destructive:"bg-core-red-500 text-core-white-900 hover:bg-core-red-600 focus:outline-core-red-500 disabled:bg-core-red-200","destructive-outline":"box-border border border-core-red-200 text-core-red-700 shadow-xs hover:bg-core-red-50 focus:outline-core-red-500 disabled:opacity-40","link-gray":"bg-transparent hover:bg-surface hover:underline underline-offset-2 disabled:opacity-30"}},compoundVariants:[{variant:"link-gray",size:["md","lg"],class:"px-0 py-0"}],defaultVariants:{variant:"primary",size:"md"}}),Uy={primary:"primary",secondary:"secondary",destructive:"primary","destructive-outline":"destructive","link-gray":"secondary"},Vy={md:"sm",lg:"md"},ut=({after:e,before:t,className:n,label:r="button",variant:i="primary",size:s="md",pending:o=!1,disabled:c=!1,onClick:u,...d})=>{const f=l=>{var v;return ln("group-hover:opacity-70 ",(v=l.props)==null?void 0:v.className)},p=l=>{var v;return((v=l.props)==null?void 0:v.icon)??"user"};return m.jsxs("button",{className:ln(Ok({variant:i,size:s}),n),disabled:c||o,onClick:u,...d,children:[m.jsxs("span",{className:`flex items-center gap-1 ${o&&"opacity-0"}`,children:[t&&m.jsx(on,{className:f(t),icon:p(t),variant:Uy[i],size:Vy[s]}),m.jsx("span",{children:r}),e&&m.jsx(on,{className:ln(f(e),`${o&&"opacity-0"}`),icon:p(e),variant:Uy[i],size:Vy[s]})]}),o&&m.jsx(ml,{className:"absolute"})]})};ut.displayName="Button";function Rt({children:e,id:t=I.useId()}){return m.jsx("div",{id:t,className:"flex h-full max-h-full flex-col bg-white md:h-fit md:rounded-lg md:border md:shadow-md",children:e})}function _t({children:e}){return m.jsx("div",{className:"grow overflow-y-auto px-6 py-4",children:e})}function Kt({children:e}){return m.jsx("div",{className:"border-t px-6 py-4",children:e})}function At({children:e}){return m.jsx("div",{className:"border-b px-6",children:e})}const qy=({children:e,className:t,description:n,disabled:r,required:i=!1,tooltip:s,htmlFor:o})=>!e&&!s&&!n?null:m.jsx("label",{htmlFor:o,className:"inline-flex shrink-0 items-center gap-1 text-core-gray-800 antialiased ",children:m.jsxs("div",{className:ln("inline-flex cursor-pointer items-center gap-1 text-sm font-medium leading-6",t,r&&"pointer-events-none text-core-gray-300"),children:[e?m.jsx("span",{className:ln(r&&"pointer-events-none text-core-gray-300"),children:e}):null,n?m.jsx("span",{className:ln("font-normal text-core-gray-500",r&&"text-current"),children:n}):null,i?m.jsx("span",{className:"font-normal text-core-red-500",children:"*"}):null]})}),$y=({helperText:e,error:t,disabled:n})=>e?m.jsx("span",{className:ln("text-start text-sm leading-6 text-core-gray-500 antialiased ",t&&"text-core-red-500",n&&"text-core-gray-300"),children:e}):null;qy.displayName="Label",$y.displayName="HelperText";const wn=Object.assign(qy,{Helper:$y}),Nk=({id:e,defaultChecked:t=!1,disabled:n,onChange:r})=>{const i=n,[s,o]=I.useState(t),c=u=>{i||o(!s),r&&r(u.target.checked)};return m.jsx("div",{className:"flex h-6 w-6 items-center justify-center",children:m.jsx("input",{className:"h-4 w-4 rounded border border-core-gray-200 bg-core-white-900 text-core-primary-500 shadow-xs hover:border-core-gray-300 hover:shadow-none checked:bg-core-primary-500focus:outline-0 focus:ring-core-primary-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 disabled:border disabled:border-core-gray-200 disabled:bg-core-gray-50 disabled:shadow-none disabled:checked:bg-core-gray-200",id:e,type:"checkbox",checked:s,onChange:c,disabled:i})})},Gy=I.createContext(null);function Hy(e=!1){const t=I.useContext(Gy);if(!t&&!e)throw new Error("Checkbox.Item must be used within a CheckboxGroup or CheckboxGroup.Root");return t}const Yy=I.forwardRef(({children:e,description:t,disabled:n,helperText:r,id:i,label:s,required:o,tooltip:c},u)=>{const d=I.useId(),f=i??d,p=s??t??c??r?m.jsxs("div",{className:"inline-flex flex-col",children:[m.jsx(wn,{className:"cursor-default",description:t,required:o,tooltip:c,htmlFor:f,disabled:n,children:s}),m.jsx(wn.Helper,{disabled:n,helperText:r})]}):null;return m.jsx(Gy.Provider,{value:{disabled:n},children:m.jsxs("div",{ref:u,"aria-describedby":r?`${f}__describer`:void 0,"aria-labelledby":s?`${f}__label`:void 0,className:"flex flex-col gap-4",role:"group",children:[s??r??t??c?m.jsx("div",{className:"flex flex-col",children:p}):null,e?m.jsx("div",{className:ln("flex flex-col gap-2"),children:e}):null]})})});Yy.displayName="CheckboxGroup",Object.assign(Yy,{Item:({disabled:e,label:t,defaultChecked:n})=>{const r=Hy(),{disabled:i}=r??{};return m.jsx(Zd,{disabled:e??i,label:t,defaultChecked:n})}});const Zd=({id:e,children:t,defaultChecked:n=!1,description:r,disabled:i,helperText:s,label:o,required:c=!1,tooltip:u,onChange:d})=>{const f=I.useId(),p=e??f,l=!!Hy(!0),v=o??r??u??s?m.jsxs("div",{className:"inline-flex flex-col",children:[m.jsx(wn,{className:ln(l&&"font-normal"),description:r,required:c,tooltip:u,htmlFor:p,disabled:i,children:o}),m.jsx(wn.Helper,{disabled:i,helperText:s})]}):null;return m.jsxs("div",{className:"flex gap-3",children:[m.jsx(Nk,{id:p,defaultChecked:n,disabled:i,onChange:d}),t||v]})};Zd.displayName="Checkbox";function Oo(){return{subscribe:(r,i)=>{document.addEventListener(r,i)},unsubscribe:(r,i)=>{document.removeEventListener(r,i)},publish:(r,i)=>{const s=new CustomEvent(r,{detail:i});document.dispatchEvent(s)}}}function Wy(e,t){I.useEffect(()=>{const n=i=>{e.current&&!e.current.contains(i.target)&&t(!1)},r=i=>{i.key==="Escape"&&t(!1)};return document.addEventListener("mousedown",n),document.addEventListener("keydown",r),()=>{document.removeEventListener("mousedown",n),document.removeEventListener("keydown",r)}},[])}const Rk=typeof window<"u"?I.useLayoutEffect:()=>{},Mk=()=>window.visualViewport?[window.visualViewport.width,window.visualViewport.height]:[window.innerWidth,window.innerHeight],Dk=()=>{const[e,t]=I.useState(),n=I.useCallback(()=>{const r=Mk();t(i=>i&&i[0]===r[0]&&i[1]===r[1]?i:r)},[]);return Rk(n,[n]),I.useEffect(()=>{var i;const r=()=>{n(),setTimeout(n,1e3)};return window.addEventListener("resize",r),window.addEventListener("orientationchange",r),(i=window.visualViewport)==null||i.addEventListener("resize",r),()=>{var s;window.removeEventListener("resize",r),window.removeEventListener("orientationchange",r),(s=window.visualViewport)==null||s.removeEventListener("resize",r)}},[n]),e};var Ky={exports:{}};/*!
122
+ */function Cs(){return Cs=Object.assign?Object.assign.bind():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},Cs.apply(this,arguments)}function Kd(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,s;for(s=0;s<r.length;s++)i=r[s],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}const Lc="get",Bc="application/x-www-form-urlencoded";function Fc(e){return e!=null&&typeof e.tagName=="string"}function Y3(e){return Fc(e)&&e.tagName.toLowerCase()==="button"}function W3(e){return Fc(e)&&e.tagName.toLowerCase()==="form"}function K3(e){return Fc(e)&&e.tagName.toLowerCase()==="input"}function z3(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function Q3(e,t){return e.button===0&&(!t||t==="_self")&&!z3(e)}let Uc=null;function J3(){if(Uc===null)try{new FormData(document.createElement("form"),0),Uc=!1}catch{Uc=!0}return Uc}const Z3=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function zd(e){return e!=null&&!Z3.has(e)?(process.env.NODE_ENV!=="production"&&Wn(!1,'"'+e+'" is not a valid `encType` for `<Form>`/`<fetcher.Form>` '+('and will default to "'+Bc+'"')),null):e}function X3(e,t){let n,r,i,s,o;if(W3(e)){let c=e.getAttribute("action");r=c?li(c,t):null,n=e.getAttribute("method")||Lc,i=zd(e.getAttribute("enctype"))||Bc,s=new FormData(e)}else if(Y3(e)||K3(e)&&(e.type==="submit"||e.type==="image")){let c=e.form;if(c==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let u=e.getAttribute("formaction")||c.getAttribute("action");if(r=u?li(u,t):null,n=e.getAttribute("formmethod")||c.getAttribute("method")||Lc,i=zd(e.getAttribute("formenctype"))||zd(c.getAttribute("enctype"))||Bc,s=new FormData(c,e),!J3()){let{name:d,type:f,value:p}=e;if(f==="image"){let l=d?d+".":"";s.append(l+"x","0"),s.append(l+"y","0")}else d&&s.append(d,p)}}else{if(Fc(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=Lc,r=null,i=Bc,o=e}return s&&i==="text/plain"&&(o=s,s=void 0),{action:r,method:n.toLowerCase(),encType:i,formData:s,body:o}}const ek=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],tk=["aria-current","caseSensitive","className","end","style","to","unstable_viewTransition","children"],nk=["fetcherKey","navigate","reloadDocument","replace","state","method","action","onSubmit","relative","preventScrollReset","unstable_viewTransition"],rk="6";try{window.__reactRouterVersion=rk}catch{}const Ry=se.createContext({isTransitioning:!1});process.env.NODE_ENV!=="production"&&(Ry.displayName="ViewTransition");const ik=se.createContext(new Map);process.env.NODE_ENV!=="production"&&(ik.displayName="Fetchers"),process.env.NODE_ENV;const sk=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",ok=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Ny=se.forwardRef(function(t,n){let{onClick:r,relative:i,reloadDocument:s,replace:o,state:c,target:u,to:d,preventScrollReset:f,unstable_viewTransition:p}=t,l=Kd(t,ek),{basename:v}=se.useContext(Kn),a,h=!1;if(typeof d=="string"&&ok.test(d)&&(a=d,sk))try{let w=new URL(window.location.href),E=d.startsWith("//")?new URL(w.protocol+d):new URL(d),S=li(E.pathname,v);E.origin===w.origin&&S!=null?d=S+E.search+E.hash:h=!0}catch{process.env.NODE_ENV!=="production"&&Wn(!1,'<Link to="'+d+'"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.')}let y=I3(d,{relative:i}),g=uk(d,{replace:o,state:c,target:u,preventScrollReset:f,relative:i,unstable_viewTransition:p});function b(w){r&&r(w),w.defaultPrevented||g(w)}return se.createElement("a",Cs({},l,{href:a||y,onClick:h||s?r:b,ref:n,target:u}))});process.env.NODE_ENV!=="production"&&(Ny.displayName="Link");const My=se.forwardRef(function(t,n){let{"aria-current":r="page",caseSensitive:i=!1,className:s="",end:o=!1,style:c,to:u,unstable_viewTransition:d,children:f}=t,p=Kd(t,tk),l=Io(u,{relative:p.relative}),v=Fn(),a=se.useContext(Gd),{navigator:h,basename:y}=se.useContext(Kn),g=a!=null&&mk(l)&&d===!0,b=h.encodeLocation?h.encodeLocation(l).pathname:l.pathname,w=v.pathname,E=a&&a.navigation&&a.navigation.location?a.navigation.location.pathname:null;i||(w=w.toLowerCase(),E=E?E.toLowerCase():null,b=b.toLowerCase()),E&&y&&(E=li(E,y)||E);const S=b!=="/"&&b.endsWith("/")?b.length-1:b.length;let A=w===b||!o&&w.startsWith(b)&&w.charAt(S)==="/",T=E!=null&&(E===b||!o&&E.startsWith(b)&&E.charAt(b.length)==="/"),O={isActive:A,isPending:T,isTransitioning:g},M=A?r:void 0,D;typeof s=="function"?D=s(O):D=[s,A?"active":null,T?"pending":null,g?"transitioning":null].filter(Boolean).join(" ");let F=typeof c=="function"?c(O):c;return se.createElement(Ny,Cs({},p,{"aria-current":M,className:D,ref:n,style:F,to:u,unstable_viewTransition:d}),typeof f=="function"?f(O):f)});process.env.NODE_ENV!=="production"&&(My.displayName="NavLink");const ak=se.forwardRef((e,t)=>{let{fetcherKey:n,navigate:r,reloadDocument:i,replace:s,state:o,method:c=Lc,action:u,onSubmit:d,relative:f,preventScrollReset:p,unstable_viewTransition:l}=e,v=Kd(e,nk),a=hk(),h=pk(u,{relative:f}),y=c.toLowerCase()==="get"?"get":"post",g=b=>{if(d&&d(b),b.defaultPrevented)return;b.preventDefault();let w=b.nativeEvent.submitter,E=(w==null?void 0:w.getAttribute("formmethod"))||c;a(w||b.currentTarget,{fetcherKey:n,method:E,navigate:r,replace:s,state:o,relative:f,preventScrollReset:p,unstable_viewTransition:l})};return se.createElement("form",Cs({ref:t,method:y,action:h,onSubmit:i?d:g},v))});process.env.NODE_ENV!=="production"&&(ak.displayName="Form"),process.env.NODE_ENV;var Vc;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(Vc||(Vc={}));var Dy;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(Dy||(Dy={}));function ck(e){return e+" must be used within a data router. See https://reactrouter.com/routers/picking-a-router."}function Py(e){let t=se.useContext(To);return t||(process.env.NODE_ENV!=="production"?Ke(!1,ck(e)):Ke(!1)),t}function uk(e,t){let{target:n,replace:r,state:i,preventScrollReset:s,relative:o,unstable_viewTransition:c}=t===void 0?{}:t,u=Gt(),d=Fn(),f=Io(e,{relative:o});return se.useCallback(p=>{if(Q3(p,n)){p.preventDefault();let l=r!==void 0?r:Pc(d)===Pc(f);u(e,{replace:l,state:i,preventScrollReset:s,relative:o,unstable_viewTransition:c})}},[d,u,f,r,i,n,e,s,o,c])}function lk(){if(typeof document>"u")throw new Error("You are calling submit during the server render. Try calling submit within a `useEffect` or callback instead.")}let dk=0,fk=()=>"__"+String(++dk)+"__";function hk(){let{router:e}=Py(Vc.UseSubmit),{basename:t}=se.useContext(Kn),n=V3();return se.useCallback(function(r,i){i===void 0&&(i={}),lk();let{action:s,method:o,encType:c,formData:u,body:d}=X3(r,t);if(i.navigate===!1){let f=i.fetcherKey||fk();e.fetch(f,n,i.action||s,{preventScrollReset:i.preventScrollReset,formData:u,body:d,formMethod:i.method||o,formEncType:i.encType||c,unstable_flushSync:i.unstable_flushSync})}else e.navigate(i.action||s,{preventScrollReset:i.preventScrollReset,formData:u,body:d,formMethod:i.method||o,formEncType:i.encType||c,replace:i.replace,state:i.state,fromRouteId:n,unstable_flushSync:i.unstable_flushSync,unstable_viewTransition:i.unstable_viewTransition})},[e,t,n])}function pk(e,t){let{relative:n}=t===void 0?{}:t,{basename:r}=se.useContext(Kn),i=se.useContext(ar);i||(process.env.NODE_ENV!=="production"?Ke(!1,"useFormAction must be used inside a RouteContext"):Ke(!1));let[s]=i.matches.slice(-1),o=Cs({},Io(e||".",{relative:n})),c=Fn();if(e==null){o.search=c.search;let u=new URLSearchParams(o.search);u.has("index")&&u.get("index")===""&&(u.delete("index"),o.search=u.toString()?"?"+u.toString():"")}return(!e||e===".")&&s.route.index&&(o.search=o.search?o.search.replace(/^\?/,"?index&"):"?index"),r!=="/"&&(o.pathname=o.pathname==="/"?r:Dr([r,o.pathname])),Pc(o)}function mk(e,t){t===void 0&&(t={});let n=se.useContext(Ry);n==null&&(process.env.NODE_ENV!=="production"?Ke(!1,"`unstable_useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?"):Ke(!1));let{basename:r}=Py(Vc.useViewTransitionState),i=Io(e,{relative:t.relative});if(!n.isTransitioning)return!1;let s=li(n.currentLocation.pathname,r)||n.currentLocation.pathname,o=li(n.nextLocation.pathname,r)||n.nextLocation.pathname;return Ud(i.pathname,o)!=null||Ud(i.pathname,s)!=null}Y5({dsn:"https://5b16c396f6e8f6e4b0b87455bea7e96b@o80526.ingest.us.sentry.io/4507345428283392",integrations:[r3({useEffect:I.useEffect,useLocation:Fn,useNavigationType:k3,createRoutesFromChildren:jc,matchRoutes:wy}),O5()],enabled:!0});function gk(e){const t=parseInt(e.slice(1,3),16)/255,n=parseInt(e.slice(3,5),16)/255,r=parseInt(e.slice(5,7),16)/255,i=Math.max(t,n,r),s=Math.min(t,n,r),o=i-s,c=(i+s)/2;let u=0;o!==0&&(u=o/(1-Math.abs(2*c-1)));let d=0;return o!==0&&(i===t?d=((n-r)/o+(n<r?6:0))*60:i===n?d=((r-t)/o+2)*60:d=((t-n)/o+4)*60),{hue:d,saturation:u,lightness:c}}function qc(e,t,n){const r=(1-Math.abs(2*n-1))*t,i=r*(1-Math.abs(e/60%2-1)),s=n-r/2;let o=0,c=0,u=0;return e<60?(o=r,c=i,u=0):e<120?(o=i,c=r,u=0):e<180?(o=0,c=r,u=i):e<240?(o=0,c=i,u=r):e<300?(o=i,c=0,u=r):(o=r,c=0,u=i),o=Math.round((o+s)*255),c=Math.round((c+s)*255),u=Math.round((u+s)*255),`#${o.toString(16).padStart(2,"0")}${c.toString(16).padStart(2,"0")}${u.toString(16).padStart(2,"0")}`}function jy(e){const{hue:t,saturation:n,lightness:r}=gk(e),i=.04,s=[{key:"50",min:97,max:99},{key:"100",min:92,max:96},{key:"200",min:85,max:91},{key:"300",min:74,max:84},{key:"400",min:58,max:73},{key:"500",min:51,max:61},{key:"600",min:36,max:50},{key:"700",min:29,max:40},{key:"800",min:24,max:33},{key:"900",min:20,max:28},{key:"950",min:0,max:19}],o={},c={},u={},d={};s.forEach(f=>{const p=(f.min+f.max)/2/100;o[f.key]=qc(t,n,p),u[f.key]=qc(0,n,p),d[f.key]=qc(120,n,p),c[f.key]=qc(t,i,p)});for(const f of s)if(r*100>=f.min&&r*100<=f.max){o[f.key]=e;break}return{primaryPalette:o,redPalette:u,greenPalette:d,grayPalette:c}}const yk=e=>{const t={primary:e.primary_color,secondary:e.secondary_color,tertiary:e.tertiary_color,quaternary:e.quaternary_color},n=document.querySelector(":root");for(const r in t)if(t[r]){const{primaryPalette:i}=jy(t[r]);for(const s in i)n.style.setProperty(`--${r}-${s}`,i[s])}if(t.primary){const{grayPalette:r,redPalette:i,greenPalette:s}=jy(t.primary);for(const o in r)n.style.setProperty(`--gray-${o}`,r[o]);for(const o in i)n.style.setProperty(`--red-${o}`,i[o]);for(const o in s)n.style.setProperty(`--green-${o}`,s[o])}};function Be(){const e=I.useContext(oh);if(!e)throw new Error("Only use 'usePortalSessionContext' within a PortalSessionProvider");return e}const vk={[$t.GENERIC]:Pe.GENERIC,[$t.PORTAL]:Pe.PORTAL,[$t.POINTS_TRANSACTION]:Pe.POINTS_TRANSACTION,[$t.PREPAID]:Pe.PREPAID,[$t.PAY_PREPAID]:Pe.PREPAID,[$t.TOP_UP_PREPAID]:Pe.PREPAID,[$t.VOUCHER]:Pe.VOUCHER,[$t.GIFTCARD]:Pe.GIFTCARD,[$t.REDEEM_GIFTCARD]:Pe.GIFTCARD,[$t.TOP_UP_GIFTCARD]:Pe.GIFTCARD};function bk(){const{portalSession:e}=Be();return m.jsx(zn,{to:vk[e.type]})}function di({value:e,start:t=0,duration:n=1e3,currency:r="EUR",asCurrency:i=!1}){const[s,o]=I.useState(t),c=()=>{const u=t>e?t-e:e-t;return u<=1e3?1:u/1e3};return I.useEffect(()=>{const u=setInterval(()=>{t>e?o(d=>Math.max(d-c(),e)):o(d=>Math.min(d+c(),e)),s===e&&clearInterval(u)},n/e);return()=>clearInterval(u)},[s,n,t,e]),m.jsx("div",{"data-testid":"animated-counter",children:i?Ki(s,r):s})}const wk=(e,t,n)=>{const r=e[t];return r?typeof r=="function"?r():Promise.resolve(r):new Promise((i,s)=>{(typeof queueMicrotask=="function"?queueMicrotask:setTimeout)(s.bind(null,new Error("Unknown variable dynamic import: "+t+(t.split("/").length!==n?". Note that variables only represent file names one level deep.":""))))})},Ek=({svgComponent:e,...t})=>m.jsx(e,{...t});function Ly(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=Ly(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function Sk(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=Ly(e))&&(r&&(r+=" "),r+=t);return r}const By=e=>typeof e=="boolean"?"".concat(e):e===0?"0":e,Fy=Sk,_s=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return Fy(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:i,defaultVariants:s}=t,o=Object.keys(i).map(d=>{const f=n==null?void 0:n[d],p=s==null?void 0:s[d];if(f===null)return null;const l=By(f)||By(p);return i[d][l]}),c=n&&Object.entries(n).reduce((d,f)=>{let[p,l]=f;return l===void 0||(d[p]=l),d},{}),u=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((d,f)=>{let{class:p,className:l,...v}=f;return Object.entries(v).every(a=>{let[h,y]=a;return Array.isArray(y)?y.includes({...s,...c}[h]):{...s,...c}[h]===y})?[...d,p,l]:d},[]);return Fy(e,o,u,n==null?void 0:n.class,n==null?void 0:n.className)},xk=_s("aspect-square",{variants:{size:{"2xs":"h-3 w-3",xs:"h-4 w-4",sm:"h-5 w-5",md:"h-6 w-6",lg:"h-7 w-7",xl:"h-8 w-8","2xl":"h-10 w-10"},variant:{primary:"fill-none stroke-core-white-900 stroke-[1.5]",secondary:"fill-none stroke-core-gray-400 stroke-[1.5] active:stroke-core-gray-900 ",discovery:"fill-none stroke-core-primary-500 stroke-[1.5] ",destructive:"fill-none stroke-core-red-700 stroke-[1.5] ",placeholder:"fill-none stroke-core-gray-300 stroke-[1.5]"},outline:{true:[],false:[]}},compoundVariants:[{variant:"placeholder",outline:!1,class:"fill-core-gray-300 stroke-width-0"}],defaultVariants:{variant:"placeholder",size:"md"}}),an=({icon:e="user",size:t="md",variant:n="placeholder",outline:r=!0})=>{if(I.isValidElement(e))return"span";const i=Ck(e);return i?m.jsx(Ek,{svgComponent:i,className:xk({variant:n,size:t,outline:r})}):null};function Ck(e){const[t,n]=I.useState(null),r=async()=>{try{const i=(await wk(Object.assign({"../../assets/svg/calendar.svg":()=>Promise.resolve().then(()=>E8),"../../assets/svg/camera-switch.svg":()=>Promise.resolve().then(()=>S8),"../../assets/svg/caret-left.svg":()=>Promise.resolve().then(()=>x8),"../../assets/svg/close.svg":()=>Promise.resolve().then(()=>C8),"../../assets/svg/crossBlack.svg":()=>Promise.resolve().then(()=>_8),"../../assets/svg/dollar.svg":()=>Promise.resolve().then(()=>A8),"../../assets/svg/edit.svg":()=>Promise.resolve().then(()=>T8),"../../assets/svg/home.svg":()=>Promise.resolve().then(()=>I8),"../../assets/svg/information.svg":()=>Promise.resolve().then(()=>k8),"../../assets/svg/mail.svg":()=>Promise.resolve().then(()=>O8),"../../assets/svg/notificationErrorV2.svg":()=>Promise.resolve().then(()=>R8),"../../assets/svg/notificationSuccessV2.svg":()=>Promise.resolve().then(()=>N8),"../../assets/svg/notificationWarningV2.svg":()=>Promise.resolve().then(()=>M8),"../../assets/svg/settings.svg":()=>Promise.resolve().then(()=>D8),"../../assets/svg/shopping-bag.svg":()=>Promise.resolve().then(()=>P8),"../../assets/svg/star.svg":()=>Promise.resolve().then(()=>j8),"../../assets/svg/user.svg":()=>Promise.resolve().then(()=>L8)}),`../../assets/svg/${e}.svg`,5)).default;n(()=>i)}catch(i){console.error(`Failed to import icon: ${e}`,i),n(null)}};return I.useEffect(()=>{r()},[e]),t}const _k=_s("bg-core-primary-500 text-core-white-900 relative inline-flex aspect-square shrink-0 items-center antialiased rounded-full overflow-hidden uppercase",{variants:{size:{xs:"h-6 w-6 text-xs ",sm:"h-8 w-8 text-sm",md:"h-10 w-10 text-base",lg:"h-12 w-12 text-lg",xl:"h-14 w-14 text-xl","2xl":"h-16 w-16 text-2xl"}},defaultVariants:{size:"sm"}}),Ak=({src:e,alt:t})=>m.jsx("img",{src:e,alt:t,className:"bg-core-white-900 aspect-square w-full grow rounded-full object-cover object-center"}),Tk=({initials:e})=>m.jsx("div",{className:"h-full w-full content-center text-center",children:e}),Qd=({src:e,alt:t,initials:n,size:r})=>m.jsxs("div",{className:_k({size:r}),children:[e&&m.jsx(Ak,{src:e,alt:t}),e&&!n&&m.jsx("div",{className:"flex grow h-full w-full bg-core-gray-100 justify-center items-center",children:m.jsx(an,{icon:"user",variant:"placeholder",outline:!1,size:r})}),!e&&n&&m.jsx(Tk,{initials:n}),!e&&!n&&m.jsx("div",{className:"flex grow h-full w-full bg-core-gray-100 justify-center items-center",children:m.jsx(an,{icon:"user",variant:"placeholder",outline:!1,size:r})})]});Qd.displayName="Avatar";const Ik=_s("inline-flex items-center rounded-lg px-2 py-1 antialiased",{variants:{color:{primary:"text-core-primary-700 outline-core-primary-200 bg-core-primary-50",gray:"text-core-gray-700 outline-core-gray-200 bg-core-gray-50"},size:{sm:"text-xs leading-4 ",md:"text-sm leading-5 "},stroke:{true:"outline outline-1",false:""}},defaultVariants:{color:"primary",size:"sm",stroke:!1}}),Jd=({label:e,color:t="primary",size:n="sm",stroke:r=!1})=>m.jsx("span",{className:Ik({color:t,size:n,stroke:r}),children:e});Jd.displayName="Badge";function kk({body:e}){return m.jsxs("div",{className:"flex gap-3 rounded-r-lg border-l-2 border-core-primary-500 bg-core-gray-50 p-4 text-sm",children:[m.jsx(an,{icon:"information",variant:"discovery"}),m.jsx("div",{children:e})]})}const Ok=_s("group inline-flex shrink-0 select-none items-center justify-center font-medium transition-colors duration-100 antialiased rounded-lg hover:shadow-none focus:outline-0 focus:outline-core-primary-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 disabled:pointer-events-none",{variants:{size:{sm:"h-8 gap-1 px-2 py-1 text-xs leading-4",md:"h-10 gap-1 px-3 py-2 text-sm leading-5",lg:"h-12 gap-1 px-3 py-3 text-base leading-6"},variant:{primary:"bg-core-primary-500 text-core-white-900 outline-primary hover:bg-core-primary-600 disabled:bg-core-primary-disabled",secondary:"box-border border border-core-gray-200 bg-core-white-900 shadow-xs hover:bg-core-gray-50 disabled:opacity-30",destructive:"bg-core-red-500 text-core-white-900 hover:bg-core-red-600 focus:outline-core-red-500 disabled:bg-core-red-200","destructive-outline":"box-border border border-core-red-200 text-core-red-700 shadow-xs hover:bg-core-red-50 focus:outline-core-red-500 disabled:opacity-40","link-gray":"bg-transparent hover:bg-surface hover:underline underline-offset-2 disabled:opacity-30"}},compoundVariants:[{variant:"link-gray",size:["md","lg"],class:"px-0 py-0"}],defaultVariants:{variant:"primary",size:"md"}}),Uy={primary:"primary",secondary:"secondary",destructive:"primary","destructive-outline":"destructive","link-gray":"secondary"},Vy={md:"sm",lg:"md"},ot=({after:e,before:t,className:n,label:r="button",variant:i="primary",size:s="md",pending:o=!1,disabled:c=!1,onClick:u,...d})=>{const f=l=>{var v;return ln("group-hover:opacity-70 ",(v=l.props)==null?void 0:v.className)},p=l=>{var v;return((v=l.props)==null?void 0:v.icon)??"user"};return m.jsxs("button",{className:ln(Ok({variant:i,size:s}),n),disabled:c||o,onClick:u,...d,children:[m.jsxs("span",{className:`flex items-center gap-1 ${o&&"opacity-0"}`,children:[t&&m.jsx(an,{className:f(t),icon:p(t),variant:Uy[i],size:Vy[s]}),m.jsx("span",{children:r}),e&&m.jsx(an,{className:ln(f(e),`${o&&"opacity-0"}`),icon:p(e),variant:Uy[i],size:Vy[s]})]}),o&&m.jsx(ml,{className:"absolute"})]})};ot.displayName="Button";function Tt({children:e,id:t=I.useId()}){return m.jsx("div",{id:t,className:"flex h-full max-h-full flex-col bg-white md:h-fit md:rounded-lg md:border md:shadow-md",children:e})}function xt({children:e}){return m.jsx("div",{className:"grow overflow-y-auto px-6 py-4",children:e})}function zt({children:e}){return m.jsx("div",{className:"border-t px-6 py-4",children:e})}function Ct({children:e}){return m.jsx("div",{className:"border-b px-6",children:e})}const qy=({children:e,className:t,description:n,disabled:r,required:i=!1,tooltip:s,htmlFor:o})=>!e&&!s&&!n?null:m.jsx("label",{htmlFor:o,className:"inline-flex shrink-0 items-center gap-1 text-core-gray-800 antialiased ",children:m.jsxs("div",{className:ln("inline-flex cursor-pointer items-center gap-1 text-sm font-medium leading-6",t,r&&"pointer-events-none text-core-gray-300"),children:[e?m.jsx("span",{className:ln(r&&"pointer-events-none text-core-gray-300"),children:e}):null,n?m.jsx("span",{className:ln("font-normal text-core-gray-500",r&&"text-current"),children:n}):null,i?m.jsx("span",{className:"font-normal text-core-red-500",children:"*"}):null]})}),$y=({helperText:e,error:t,disabled:n})=>e?m.jsx("span",{className:ln("text-start text-sm leading-6 text-core-gray-500 antialiased ",t&&"text-core-red-500",n&&"text-core-gray-300"),children:e}):null;qy.displayName="Label",$y.displayName="HelperText";const Sn=Object.assign(qy,{Helper:$y}),Rk=({id:e,defaultChecked:t=!1,disabled:n,onChange:r})=>{const i=n,[s,o]=I.useState(t),c=u=>{i||o(!s),r&&r(u.target.checked)};return m.jsx("div",{className:"flex h-6 w-6 items-center justify-center",children:m.jsx("input",{className:"h-4 w-4 rounded border border-core-gray-200 bg-core-white-900 text-core-primary-500 shadow-xs hover:border-core-gray-300 hover:shadow-none checked:bg-core-primary-500focus:outline-0 focus:ring-core-primary-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 disabled:border disabled:border-core-gray-200 disabled:bg-core-gray-50 disabled:shadow-none disabled:checked:bg-core-gray-200",id:e,type:"checkbox",checked:s,onChange:c,disabled:i})})},Gy=I.createContext(null);function Hy(e=!1){const t=I.useContext(Gy);if(!t&&!e)throw new Error("Checkbox.Item must be used within a CheckboxGroup or CheckboxGroup.Root");return t}const Yy=I.forwardRef(({children:e,description:t,disabled:n,helperText:r,id:i,label:s,required:o,tooltip:c},u)=>{const d=I.useId(),f=i??d,p=s??t??c??r?m.jsxs("div",{className:"inline-flex flex-col",children:[m.jsx(Sn,{className:"cursor-default",description:t,required:o,tooltip:c,htmlFor:f,disabled:n,children:s}),m.jsx(Sn.Helper,{disabled:n,helperText:r})]}):null;return m.jsx(Gy.Provider,{value:{disabled:n},children:m.jsxs("div",{ref:u,"aria-describedby":r?`${f}__describer`:void 0,"aria-labelledby":s?`${f}__label`:void 0,className:"flex flex-col gap-4",role:"group",children:[s??r??t??c?m.jsx("div",{className:"flex flex-col",children:p}):null,e?m.jsx("div",{className:ln("flex flex-col gap-2"),children:e}):null]})})});Yy.displayName="CheckboxGroup",Object.assign(Yy,{Item:({disabled:e,label:t,defaultChecked:n})=>{const r=Hy(),{disabled:i}=r??{};return m.jsx(Zd,{disabled:e??i,label:t,defaultChecked:n})}});const Zd=({id:e,children:t,defaultChecked:n=!1,description:r,disabled:i,helperText:s,label:o,required:c=!1,tooltip:u,onChange:d})=>{const f=I.useId(),p=e??f,l=!!Hy(!0),v=o??r??u??s?m.jsxs("div",{className:"inline-flex flex-col",children:[m.jsx(Sn,{className:ln(l&&"font-normal"),description:r,required:c,tooltip:u,htmlFor:p,disabled:i,children:o}),m.jsx(Sn.Helper,{disabled:i,helperText:s})]}):null;return m.jsxs("div",{className:"flex gap-3",children:[m.jsx(Rk,{id:p,defaultChecked:n,disabled:i,onChange:d}),t||v]})};Zd.displayName="Checkbox";function Oo(){return{subscribe:(r,i)=>{document.addEventListener(r,i)},unsubscribe:(r,i)=>{document.removeEventListener(r,i)},publish:(r,i)=>{const s=new CustomEvent(r,{detail:i});document.dispatchEvent(s)}}}function Wy(e,t){I.useEffect(()=>{const n=i=>{e.current&&!e.current.contains(i.target)&&t(!1)},r=i=>{i.key==="Escape"&&t(!1)};return document.addEventListener("mousedown",n),document.addEventListener("keydown",r),()=>{document.removeEventListener("mousedown",n),document.removeEventListener("keydown",r)}},[])}const Nk=typeof window<"u"?I.useLayoutEffect:()=>{},Mk=()=>window.visualViewport?[window.visualViewport.width,window.visualViewport.height]:[window.innerWidth,window.innerHeight],Dk=()=>{const[e,t]=I.useState(),n=I.useCallback(()=>{const r=Mk();t(i=>i&&i[0]===r[0]&&i[1]===r[1]?i:r)},[]);return Nk(n,[n]),I.useEffect(()=>{var i;const r=()=>{n(),setTimeout(n,1e3)};return window.addEventListener("resize",r),window.addEventListener("orientationchange",r),(i=window.visualViewport)==null||i.addEventListener("resize",r),()=>{var s;window.removeEventListener("resize",r),window.removeEventListener("orientationchange",r),(s=window.visualViewport)==null||s.removeEventListener("resize",r)}},[n]),e};var Ky={exports:{}};/*!
123
123
  *
124
124
  * react-simple-keyboard v3.7.121
125
125
  * https://github.com/hodgef/react-simple-keyboard
@@ -129,14 +129,14 @@ or you can use record.mirror to access the mirror instance during recording.`;le
129
129
  * This source code is licensed under the MIT license found in the
130
130
  * LICENSE file in the root directory of this source tree.
131
131
  *
132
- */(function(e,t){(function(n,r){e.exports=r(I)})(qi,function(n){return function(){var r={981:function(){typeof Element>"u"||"remove"in Element.prototype||(Element.prototype.remove=function(){this.parentNode&&this.parentNode.removeChild(this)}),typeof self<"u"&&"document"in self&&((!("classList"in document.createElement("_"))||document.createElementNS&&!("classList"in document.createElementNS("http://www.w3.org/2000/svg","g")))&&function(c){if("Element"in c){var u="classList",d="prototype",f=c.Element[d],p=Object,l=String[d].trim||function(){return this.replace(/^\s+|\s+$/g,"")},v=Array[d].indexOf||function(E){for(var S=0,A=this.length;S<A;S++)if(S in this&&this[S]===E)return S;return-1},a=function(E,S){this.name=E,this.code=DOMException[E],this.message=S},h=function(E,S){if(S==="")throw new a("SYNTAX_ERR","The token must not be empty.");if(/\s/.test(S))throw new a("INVALID_CHARACTER_ERR","The token must not contain space characters.");return v.call(E,S)},y=function(E){for(var S=l.call(E.getAttribute("class")||""),A=S?S.split(/\s+/):[],T=0,O=A.length;T<O;T++)this.push(A[T]);this._updateClassName=function(){E.setAttribute("class",this.toString())}},g=y[d]=[],b=function(){return new y(this)};if(a[d]=Error[d],g.item=function(E){return this[E]||null},g.contains=function(E){return~h(this,E+"")},g.add=function(){var E,S=arguments,A=0,T=S.length,O=!1;do~h(this,E=S[A]+"")||(this.push(E),O=!0);while(++A<T);O&&this._updateClassName()},g.remove=function(){var E,S,A=arguments,T=0,O=A.length,M=!1;do for(S=h(this,E=A[T]+"");~S;)this.splice(S,1),M=!0,S=h(this,E);while(++T<O);M&&this._updateClassName()},g.toggle=function(E,S){var A=this.contains(E),T=A?S!==!0&&"remove":S!==!1&&"add";return T&&this[T](E),S===!0||S===!1?S:!A},g.replace=function(E,S){var A=h(E+"");~A&&(this.splice(A,1,S),this._updateClassName())},g.toString=function(){return this.join(" ")},p.defineProperty){var w={get:b,enumerable:!0,configurable:!0};try{p.defineProperty(f,u,w)}catch(E){E.number!==void 0&&E.number!==-2146823252||(w.enumerable=!1,p.defineProperty(f,u,w))}}else p[d].__defineGetter__&&f.__defineGetter__(u,b)}}(self),function(){var c=document.createElement("_");if(c.classList.add("c1","c2"),!c.classList.contains("c2")){var u=function(f){var p=DOMTokenList.prototype[f];DOMTokenList.prototype[f]=function(l){var v,a=arguments.length;for(v=0;v<a;v++)l=arguments[v],p.call(this,l)}};u("add"),u("remove")}if(c.classList.toggle("c3",!1),c.classList.contains("c3")){var d=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(f,p){return 1 in arguments&&!this.contains(f)==!p?p:d.call(this,f)}}"replace"in document.createElement("_").classList||(DOMTokenList.prototype.replace=function(f,p){var l=this.toString().split(" "),v=l.indexOf(f+"");~v&&(l=l.slice(v),this.remove.apply(this,l),this.add(p),this.add.apply(this,l.slice(1)))}),c=null}())},548:function(c){c.exports=function(){var u={9306:function(l,v,a){var h=a(4901),y=a(6823),g=TypeError;l.exports=function(b){if(h(b))return b;throw new g(y(b)+" is not a function")}},5548:function(l,v,a){var h=a(3517),y=a(6823),g=TypeError;l.exports=function(b){if(h(b))return b;throw new g(y(b)+" is not a constructor")}},3506:function(l,v,a){var h=a(3925),y=String,g=TypeError;l.exports=function(b){if(h(b))return b;throw new g("Can't set "+y(b)+" as a prototype")}},6469:function(l,v,a){var h=a(8227),y=a(2360),g=a(4913).f,b=h("unscopables"),w=Array.prototype;w[b]===void 0&&g(w,b,{configurable:!0,value:y(null)}),l.exports=function(E){w[b][E]=!0}},7829:function(l,v,a){var h=a(8183).charAt;l.exports=function(y,g,b){return g+(b?h(y,g).length:1)}},8551:function(l,v,a){var h=a(34),y=String,g=TypeError;l.exports=function(b){if(h(b))return b;throw new g(y(b)+" is not an object")}},235:function(l,v,a){var h=a(9213).forEach,y=a(4598)("forEach");l.exports=y?[].forEach:function(g){return h(this,g,arguments.length>1?arguments[1]:void 0)}},7916:function(l,v,a){var h=a(6080),y=a(9565),g=a(8981),b=a(6319),w=a(4209),E=a(3517),S=a(6198),A=a(4659),T=a(81),O=a(851),M=Array;l.exports=function(D){var F=g(D),V=E(this),G=arguments.length,U=G>1?arguments[1]:void 0,N=U!==void 0;N&&(U=h(U,G>2?arguments[2]:void 0));var L,Y,z,ee,te,re,he=O(F),ue=0;if(!he||this===M&&w(he))for(L=S(F),Y=V?new this(L):M(L);L>ue;ue++)re=N?U(F[ue],ue):F[ue],A(Y,ue,re);else for(Y=V?new this:[],te=(ee=T(F,he)).next;!(z=y(te,ee)).done;ue++)re=N?b(ee,U,[z.value,ue],!0):z.value,A(Y,ue,re);return Y.length=ue,Y}},9617:function(l,v,a){var h=a(5397),y=a(5610),g=a(6198),b=function(w){return function(E,S,A){var T=h(E),O=g(T);if(O===0)return!w&&-1;var M,D=y(A,O);if(w&&S!=S){for(;O>D;)if((M=T[D++])!=M)return!0}else for(;O>D;D++)if((w||D in T)&&T[D]===S)return w||D||0;return!w&&-1}};l.exports={includes:b(!0),indexOf:b(!1)}},9213:function(l,v,a){var h=a(6080),y=a(9504),g=a(7055),b=a(8981),w=a(6198),E=a(1469),S=y([].push),A=function(T){var O=T===1,M=T===2,D=T===3,F=T===4,V=T===6,G=T===7,U=T===5||V;return function(N,L,Y,z){for(var ee,te,re=b(N),he=g(re),ue=w(he),ye=h(L,Y),pe=0,q=z||E,$=O?q(N,ue):M||G?q(N,0):void 0;ue>pe;pe++)if((U||pe in he)&&(te=ye(ee=he[pe],pe,re),T))if(O)$[pe]=te;else if(te)switch(T){case 3:return!0;case 5:return ee;case 6:return pe;case 2:S($,ee)}else switch(T){case 4:return!1;case 7:S($,ee)}return V?-1:D||F?F:$}};l.exports={forEach:A(0),map:A(1),filter:A(2),some:A(3),every:A(4),find:A(5),findIndex:A(6),filterReject:A(7)}},597:function(l,v,a){var h=a(9039),y=a(8227),g=a(7388),b=y("species");l.exports=function(w){return g>=51||!h(function(){var E=[];return(E.constructor={})[b]=function(){return{foo:1}},E[w](Boolean).foo!==1})}},4598:function(l,v,a){var h=a(9039);l.exports=function(y,g){var b=[][y];return!!b&&h(function(){b.call(null,g||function(){return 1},1)})}},926:function(l,v,a){var h=a(9306),y=a(8981),g=a(7055),b=a(6198),w=TypeError,E="Reduce of empty array with no initial value",S=function(A){return function(T,O,M,D){var F=y(T),V=g(F),G=b(F);if(h(O),G===0&&M<2)throw new w(E);var U=A?G-1:0,N=A?-1:1;if(M<2)for(;;){if(U in V){D=V[U],U+=N;break}if(U+=N,A?U<0:G<=U)throw new w(E)}for(;A?U>=0:G>U;U+=N)U in V&&(D=O(D,V[U],U,F));return D}};l.exports={left:S(!1),right:S(!0)}},4527:function(l,v,a){var h=a(3724),y=a(4376),g=TypeError,b=Object.getOwnPropertyDescriptor,w=h&&!function(){if(this!==void 0)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(E){return E instanceof TypeError}}();l.exports=w?function(E,S){if(y(E)&&!b(E,"length").writable)throw new g("Cannot set read only .length");return E.length=S}:function(E,S){return E.length=S}},7680:function(l,v,a){var h=a(9504);l.exports=h([].slice)},4488:function(l,v,a){var h=a(7680),y=Math.floor,g=function(b,w){var E=b.length;if(E<8)for(var S,A,T=1;T<E;){for(A=T,S=b[T];A&&w(b[A-1],S)>0;)b[A]=b[--A];A!==T++&&(b[A]=S)}else for(var O=y(E/2),M=g(h(b,0,O),w),D=g(h(b,O),w),F=M.length,V=D.length,G=0,U=0;G<F||U<V;)b[G+U]=G<F&&U<V?w(M[G],D[U])<=0?M[G++]:D[U++]:G<F?M[G++]:D[U++];return b};l.exports=g},7433:function(l,v,a){var h=a(4376),y=a(3517),g=a(34),b=a(8227)("species"),w=Array;l.exports=function(E){var S;return h(E)&&(S=E.constructor,(y(S)&&(S===w||h(S.prototype))||g(S)&&(S=S[b])===null)&&(S=void 0)),S===void 0?w:S}},1469:function(l,v,a){var h=a(7433);l.exports=function(y,g){return new(h(y))(g===0?0:g)}},6319:function(l,v,a){var h=a(8551),y=a(9539);l.exports=function(g,b,w,E){try{return E?b(h(w)[0],w[1]):b(w)}catch(S){y(g,"throw",S)}}},4428:function(l,v,a){var h=a(8227)("iterator"),y=!1;try{var g=0,b={next:function(){return{done:!!g++}},return:function(){y=!0}};b[h]=function(){return this},Array.from(b,function(){throw 2})}catch{}l.exports=function(w,E){try{if(!E&&!y)return!1}catch{return!1}var S=!1;try{var A={};A[h]=function(){return{next:function(){return{done:S=!0}}}},w(A)}catch{}return S}},4576:function(l,v,a){var h=a(9504),y=h({}.toString),g=h("".slice);l.exports=function(b){return g(y(b),8,-1)}},6955:function(l,v,a){var h=a(2140),y=a(4901),g=a(4576),b=a(8227)("toStringTag"),w=Object,E=g(function(){return arguments}())==="Arguments";l.exports=h?g:function(S){var A,T,O;return S===void 0?"Undefined":S===null?"Null":typeof(T=function(M,D){try{return M[D]}catch{}}(A=w(S),b))=="string"?T:E?g(A):(O=g(A))==="Object"&&y(A.callee)?"Arguments":O}},7740:function(l,v,a){var h=a(9297),y=a(5031),g=a(7347),b=a(4913);l.exports=function(w,E,S){for(var A=y(E),T=b.f,O=g.f,M=0;M<A.length;M++){var D=A[M];h(w,D)||S&&h(S,D)||T(w,D,O(E,D))}}},1436:function(l,v,a){var h=a(8227)("match");l.exports=function(y){var g=/./;try{"/./"[y](g)}catch{try{return g[h]=!1,"/./"[y](g)}catch{}}return!1}},2211:function(l,v,a){var h=a(9039);l.exports=!h(function(){function y(){}return y.prototype.constructor=null,Object.getPrototypeOf(new y)!==y.prototype})},2529:function(l){l.exports=function(v,a){return{value:v,done:a}}},6699:function(l,v,a){var h=a(3724),y=a(4913),g=a(6980);l.exports=h?function(b,w,E){return y.f(b,w,g(1,E))}:function(b,w,E){return b[w]=E,b}},6980:function(l){l.exports=function(v,a){return{enumerable:!(1&v),configurable:!(2&v),writable:!(4&v),value:a}}},4659:function(l,v,a){var h=a(3724),y=a(4913),g=a(6980);l.exports=function(b,w,E){h?y.f(b,w,g(0,E)):b[w]=E}},3640:function(l,v,a){var h=a(8551),y=a(4270),g=TypeError;l.exports=function(b){if(h(this),b==="string"||b==="default")b="string";else if(b!=="number")throw new g("Incorrect hint");return y(this,b)}},2106:function(l,v,a){var h=a(283),y=a(4913);l.exports=function(g,b,w){return w.get&&h(w.get,b,{getter:!0}),w.set&&h(w.set,b,{setter:!0}),y.f(g,b,w)}},6840:function(l,v,a){var h=a(4901),y=a(4913),g=a(283),b=a(9433);l.exports=function(w,E,S,A){A||(A={});var T=A.enumerable,O=A.name!==void 0?A.name:E;if(h(S)&&g(S,O,A),A.global)T?w[E]=S:b(E,S);else{try{A.unsafe?w[E]&&(T=!0):delete w[E]}catch{}T?w[E]=S:y.f(w,E,{value:S,enumerable:!1,configurable:!A.nonConfigurable,writable:!A.nonWritable})}return w}},9433:function(l,v,a){var h=a(4475),y=Object.defineProperty;l.exports=function(g,b){try{y(h,g,{value:b,configurable:!0,writable:!0})}catch{h[g]=b}return b}},4606:function(l,v,a){var h=a(6823),y=TypeError;l.exports=function(g,b){if(!delete g[b])throw new y("Cannot delete property "+h(b)+" of "+h(g))}},3724:function(l,v,a){var h=a(9039);l.exports=!h(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7})},4055:function(l,v,a){var h=a(4475),y=a(34),g=h.document,b=y(g)&&y(g.createElement);l.exports=function(w){return b?g.createElement(w):{}}},6837:function(l){var v=TypeError;l.exports=function(a){if(a>9007199254740991)throw v("Maximum allowed index exceeded");return a}},7400:function(l){l.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},9296:function(l,v,a){var h=a(4055)("span").classList,y=h&&h.constructor&&h.constructor.prototype;l.exports=y===Object.prototype?void 0:y},8834:function(l,v,a){var h=a(9392).match(/firefox\/(\d+)/i);l.exports=!!h&&+h[1]},3202:function(l,v,a){var h=a(9392);l.exports=/MSIE|Trident/.test(h)},9088:function(l,v,a){var h=a(4475),y=a(4576);l.exports=y(h.process)==="process"},9392:function(l){l.exports=typeof navigator<"u"&&String(navigator.userAgent)||""},7388:function(l,v,a){var h,y,g=a(4475),b=a(9392),w=g.process,E=g.Deno,S=w&&w.versions||E&&E.version,A=S&&S.v8;A&&(y=(h=A.split("."))[0]>0&&h[0]<4?1:+(h[0]+h[1])),!y&&b&&(!(h=b.match(/Edge\/(\d+)/))||h[1]>=74)&&(h=b.match(/Chrome\/(\d+)/))&&(y=+h[1]),l.exports=y},9160:function(l,v,a){var h=a(9392).match(/AppleWebKit\/(\d+)\./);l.exports=!!h&&+h[1]},8727:function(l){l.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},6518:function(l,v,a){var h=a(4475),y=a(7347).f,g=a(6699),b=a(6840),w=a(9433),E=a(7740),S=a(2796);l.exports=function(A,T){var O,M,D,F,V,G=A.target,U=A.global,N=A.stat;if(O=U?h:N?h[G]||w(G,{}):h[G]&&h[G].prototype)for(M in T){if(F=T[M],D=A.dontCallGetSet?(V=y(O,M))&&V.value:O[M],!S(U?M:G+(N?".":"#")+M,A.forced)&&D!==void 0){if(typeof F==typeof D)continue;E(F,D)}(A.sham||D&&D.sham)&&g(F,"sham",!0),b(O,M,F,A)}}},9039:function(l){l.exports=function(v){try{return!!v()}catch{return!0}}},9228:function(l,v,a){a(7495);var h=a(9565),y=a(6840),g=a(7323),b=a(9039),w=a(8227),E=a(6699),S=w("species"),A=RegExp.prototype;l.exports=function(T,O,M,D){var F=w(T),V=!b(function(){var L={};return L[F]=function(){return 7},""[T](L)!==7}),G=V&&!b(function(){var L=!1,Y=/a/;return T==="split"&&((Y={}).constructor={},Y.constructor[S]=function(){return Y},Y.flags="",Y[F]=/./[F]),Y.exec=function(){return L=!0,null},Y[F](""),!L});if(!V||!G||M){var U=/./[F],N=O(F,""[T],function(L,Y,z,ee,te){var re=Y.exec;return re===g||re===A.exec?V&&!te?{done:!0,value:h(U,Y,z,ee)}:{done:!0,value:h(L,z,Y,ee)}:{done:!1}});y(String.prototype,T,N[0]),y(A,F,N[1])}D&&E(A[F],"sham",!0)}},8745:function(l,v,a){var h=a(616),y=Function.prototype,g=y.apply,b=y.call;l.exports=typeof Reflect=="object"&&Reflect.apply||(h?b.bind(g):function(){return b.apply(g,arguments)})},6080:function(l,v,a){var h=a(7476),y=a(9306),g=a(616),b=h(h.bind);l.exports=function(w,E){return y(w),E===void 0?w:g?b(w,E):function(){return w.apply(E,arguments)}}},616:function(l,v,a){var h=a(9039);l.exports=!h(function(){var y=(function(){}).bind();return typeof y!="function"||y.hasOwnProperty("prototype")})},9565:function(l,v,a){var h=a(616),y=Function.prototype.call;l.exports=h?y.bind(y):function(){return y.apply(y,arguments)}},350:function(l,v,a){var h=a(3724),y=a(9297),g=Function.prototype,b=h&&Object.getOwnPropertyDescriptor,w=y(g,"name"),E=w&&(function(){}).name==="something",S=w&&(!h||h&&b(g,"name").configurable);l.exports={EXISTS:w,PROPER:E,CONFIGURABLE:S}},6706:function(l,v,a){var h=a(9504),y=a(9306);l.exports=function(g,b,w){try{return h(y(Object.getOwnPropertyDescriptor(g,b)[w]))}catch{}}},7476:function(l,v,a){var h=a(4576),y=a(9504);l.exports=function(g){if(h(g)==="Function")return y(g)}},9504:function(l,v,a){var h=a(616),y=Function.prototype,g=y.call,b=h&&y.bind.bind(g,g);l.exports=h?b:function(w){return function(){return g.apply(w,arguments)}}},7751:function(l,v,a){var h=a(4475),y=a(4901);l.exports=function(g,b){return arguments.length<2?(w=h[g],y(w)?w:void 0):h[g]&&h[g][b];var w}},851:function(l,v,a){var h=a(6955),y=a(5966),g=a(4117),b=a(6269),w=a(8227)("iterator");l.exports=function(E){if(!g(E))return y(E,w)||y(E,"@@iterator")||b[h(E)]}},81:function(l,v,a){var h=a(9565),y=a(9306),g=a(8551),b=a(6823),w=a(851),E=TypeError;l.exports=function(S,A){var T=arguments.length<2?w(S):A;if(y(T))return g(h(T,S));throw new E(b(S)+" is not iterable")}},6933:function(l,v,a){var h=a(9504),y=a(4376),g=a(4901),b=a(4576),w=a(655),E=h([].push);l.exports=function(S){if(g(S))return S;if(y(S)){for(var A=S.length,T=[],O=0;O<A;O++){var M=S[O];typeof M=="string"?E(T,M):typeof M!="number"&&b(M)!=="Number"&&b(M)!=="String"||E(T,w(M))}var D=T.length,F=!0;return function(V,G){if(F)return F=!1,G;if(y(this))return G;for(var U=0;U<D;U++)if(T[U]===V)return G}}}},5966:function(l,v,a){var h=a(9306),y=a(4117);l.exports=function(g,b){var w=g[b];return y(w)?void 0:h(w)}},2478:function(l,v,a){var h=a(9504),y=a(8981),g=Math.floor,b=h("".charAt),w=h("".replace),E=h("".slice),S=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,A=/\$([$&'`]|\d{1,2})/g;l.exports=function(T,O,M,D,F,V){var G=M+T.length,U=D.length,N=A;return F!==void 0&&(F=y(F),N=S),w(V,N,function(L,Y){var z;switch(b(Y,0)){case"$":return"$";case"&":return T;case"`":return E(O,0,M);case"'":return E(O,G);case"<":z=F[E(Y,1,-1)];break;default:var ee=+Y;if(ee===0)return L;if(ee>U){var te=g(ee/10);return te===0?L:te<=U?D[te-1]===void 0?b(Y,1):D[te-1]+b(Y,1):L}z=D[ee-1]}return z===void 0?"":z})}},4475:function(l,v,a){var h=function(y){return y&&y.Math===Math&&y};l.exports=h(typeof globalThis=="object"&&globalThis)||h(typeof window=="object"&&window)||h(typeof self=="object"&&self)||h(typeof a.g=="object"&&a.g)||h(typeof this=="object"&&this)||function(){return this}()||Function("return this")()},9297:function(l,v,a){var h=a(9504),y=a(8981),g=h({}.hasOwnProperty);l.exports=Object.hasOwn||function(b,w){return g(y(b),w)}},421:function(l){l.exports={}},397:function(l,v,a){var h=a(7751);l.exports=h("document","documentElement")},5917:function(l,v,a){var h=a(3724),y=a(9039),g=a(4055);l.exports=!h&&!y(function(){return Object.defineProperty(g("div"),"a",{get:function(){return 7}}).a!==7})},7055:function(l,v,a){var h=a(9504),y=a(9039),g=a(4576),b=Object,w=h("".split);l.exports=y(function(){return!b("z").propertyIsEnumerable(0)})?function(E){return g(E)==="String"?w(E,""):b(E)}:b},3167:function(l,v,a){var h=a(4901),y=a(34),g=a(2967);l.exports=function(b,w,E){var S,A;return g&&h(S=w.constructor)&&S!==E&&y(A=S.prototype)&&A!==E.prototype&&g(b,A),b}},3706:function(l,v,a){var h=a(9504),y=a(4901),g=a(7629),b=h(Function.toString);y(g.inspectSource)||(g.inspectSource=function(w){return b(w)}),l.exports=g.inspectSource},1181:function(l,v,a){var h,y,g,b=a(8622),w=a(4475),E=a(34),S=a(6699),A=a(9297),T=a(7629),O=a(6119),M=a(421),D="Object already initialized",F=w.TypeError,V=w.WeakMap;if(b||T.state){var G=T.state||(T.state=new V);G.get=G.get,G.has=G.has,G.set=G.set,h=function(N,L){if(G.has(N))throw new F(D);return L.facade=N,G.set(N,L),L},y=function(N){return G.get(N)||{}},g=function(N){return G.has(N)}}else{var U=O("state");M[U]=!0,h=function(N,L){if(A(N,U))throw new F(D);return L.facade=N,S(N,U,L),L},y=function(N){return A(N,U)?N[U]:{}},g=function(N){return A(N,U)}}l.exports={set:h,get:y,has:g,enforce:function(N){return g(N)?y(N):h(N,{})},getterFor:function(N){return function(L){var Y;if(!E(L)||(Y=y(L)).type!==N)throw new F("Incompatible receiver, "+N+" required");return Y}}}},4209:function(l,v,a){var h=a(8227),y=a(6269),g=h("iterator"),b=Array.prototype;l.exports=function(w){return w!==void 0&&(y.Array===w||b[g]===w)}},4376:function(l,v,a){var h=a(4576);l.exports=Array.isArray||function(y){return h(y)==="Array"}},4901:function(l){var v=typeof document=="object"&&document.all;l.exports=v===void 0&&v!==void 0?function(a){return typeof a=="function"||a===v}:function(a){return typeof a=="function"}},3517:function(l,v,a){var h=a(9504),y=a(9039),g=a(4901),b=a(6955),w=a(7751),E=a(3706),S=function(){},A=w("Reflect","construct"),T=/^\s*(?:class|function)\b/,O=h(T.exec),M=!T.test(S),D=function(V){if(!g(V))return!1;try{return A(S,[],V),!0}catch{return!1}},F=function(V){if(!g(V))return!1;switch(b(V)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return M||!!O(T,E(V))}catch{return!0}};F.sham=!0,l.exports=!A||y(function(){var V;return D(D.call)||!D(Object)||!D(function(){V=!0})||V})?F:D},2796:function(l,v,a){var h=a(9039),y=a(4901),g=/#|\.prototype\./,b=function(T,O){var M=E[w(T)];return M===A||M!==S&&(y(O)?h(O):!!O)},w=b.normalize=function(T){return String(T).replace(g,".").toLowerCase()},E=b.data={},S=b.NATIVE="N",A=b.POLYFILL="P";l.exports=b},2087:function(l,v,a){var h=a(34),y=Math.floor;l.exports=Number.isInteger||function(g){return!h(g)&&isFinite(g)&&y(g)===g}},4117:function(l){l.exports=function(v){return v==null}},34:function(l,v,a){var h=a(4901);l.exports=function(y){return typeof y=="object"?y!==null:h(y)}},3925:function(l,v,a){var h=a(34);l.exports=function(y){return h(y)||y===null}},6395:function(l){l.exports=!1},788:function(l,v,a){var h=a(34),y=a(4576),g=a(8227)("match");l.exports=function(b){var w;return h(b)&&((w=b[g])!==void 0?!!w:y(b)==="RegExp")}},757:function(l,v,a){var h=a(7751),y=a(4901),g=a(1625),b=a(7040),w=Object;l.exports=b?function(E){return typeof E=="symbol"}:function(E){var S=h("Symbol");return y(S)&&g(S.prototype,w(E))}},9539:function(l,v,a){var h=a(9565),y=a(8551),g=a(5966);l.exports=function(b,w,E){var S,A;y(b);try{if(!(S=g(b,"return"))){if(w==="throw")throw E;return E}S=h(S,b)}catch(T){A=!0,S=T}if(w==="throw")throw E;if(A)throw S;return y(S),E}},3994:function(l,v,a){var h=a(7657).IteratorPrototype,y=a(2360),g=a(6980),b=a(687),w=a(6269),E=function(){return this};l.exports=function(S,A,T,O){var M=A+" Iterator";return S.prototype=y(h,{next:g(+!O,T)}),b(S,M,!1,!0),w[M]=E,S}},1088:function(l,v,a){var h=a(6518),y=a(9565),g=a(6395),b=a(350),w=a(4901),E=a(3994),S=a(2787),A=a(2967),T=a(687),O=a(6699),M=a(6840),D=a(8227),F=a(6269),V=a(7657),G=b.PROPER,U=b.CONFIGURABLE,N=V.IteratorPrototype,L=V.BUGGY_SAFARI_ITERATORS,Y=D("iterator"),z="keys",ee="values",te="entries",re=function(){return this};l.exports=function(he,ue,ye,pe,q,$,Q){E(ye,ue,pe);var _,j,B,R=function(le){if(le===q&&fe)return fe;if(!L&&le&&le in Z)return Z[le];switch(le){case z:case ee:case te:return function(){return new ye(this,le)}}return function(){return new ye(this)}},X=ue+" Iterator",J=!1,Z=he.prototype,W=Z[Y]||Z["@@iterator"]||q&&Z[q],fe=!L&&W||R(q),ge=ue==="Array"&&Z.entries||W;if(ge&&(_=S(ge.call(new he)))!==Object.prototype&&_.next&&(g||S(_)===N||(A?A(_,N):w(_[Y])||M(_,Y,re)),T(_,X,!0,!0),g&&(F[X]=re)),G&&q===ee&&W&&W.name!==ee&&(!g&&U?O(Z,"name",ee):(J=!0,fe=function(){return y(W,this)})),q)if(j={values:R(ee),keys:$?fe:R(z),entries:R(te)},Q)for(B in j)(L||J||!(B in Z))&&M(Z,B,j[B]);else h({target:ue,proto:!0,forced:L||J},j);return g&&!Q||Z[Y]===fe||M(Z,Y,fe,{name:q}),F[ue]=fe,j}},7657:function(l,v,a){var h,y,g,b=a(9039),w=a(4901),E=a(34),S=a(2360),A=a(2787),T=a(6840),O=a(8227),M=a(6395),D=O("iterator"),F=!1;[].keys&&("next"in(g=[].keys())?(y=A(A(g)))!==Object.prototype&&(h=y):F=!0),!E(h)||b(function(){var V={};return h[D].call(V)!==V})?h={}:M&&(h=S(h)),w(h[D])||T(h,D,function(){return this}),l.exports={IteratorPrototype:h,BUGGY_SAFARI_ITERATORS:F}},6269:function(l){l.exports={}},6198:function(l,v,a){var h=a(8014);l.exports=function(y){return h(y.length)}},283:function(l,v,a){var h=a(9504),y=a(9039),g=a(4901),b=a(9297),w=a(3724),E=a(350).CONFIGURABLE,S=a(3706),A=a(1181),T=A.enforce,O=A.get,M=String,D=Object.defineProperty,F=h("".slice),V=h("".replace),G=h([].join),U=w&&!y(function(){return D(function(){},"length",{value:8}).length!==8}),N=String(String).split("String"),L=l.exports=function(Y,z,ee){F(M(z),0,7)==="Symbol("&&(z="["+V(M(z),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),ee&&ee.getter&&(z="get "+z),ee&&ee.setter&&(z="set "+z),(!b(Y,"name")||E&&Y.name!==z)&&(w?D(Y,"name",{value:z,configurable:!0}):Y.name=z),U&&ee&&b(ee,"arity")&&Y.length!==ee.arity&&D(Y,"length",{value:ee.arity});try{ee&&b(ee,"constructor")&&ee.constructor?w&&D(Y,"prototype",{writable:!1}):Y.prototype&&(Y.prototype=void 0)}catch{}var te=T(Y);return b(te,"source")||(te.source=G(N,typeof z=="string"?z:"")),Y};Function.prototype.toString=L(function(){return g(this)&&O(this).source||S(this)},"toString")},741:function(l){var v=Math.ceil,a=Math.floor;l.exports=Math.trunc||function(h){var y=+h;return(y>0?a:v)(y)}},5749:function(l,v,a){var h=a(788),y=TypeError;l.exports=function(g){if(h(g))throw new y("The method doesn't accept regular expressions");return g}},4213:function(l,v,a){var h=a(3724),y=a(9504),g=a(9565),b=a(9039),w=a(1072),E=a(3717),S=a(8773),A=a(8981),T=a(7055),O=Object.assign,M=Object.defineProperty,D=y([].concat);l.exports=!O||b(function(){if(h&&O({b:1},O(M({},"a",{enumerable:!0,get:function(){M(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var F={},V={},G=Symbol("assign detection"),U="abcdefghijklmnopqrst";return F[G]=7,U.split("").forEach(function(N){V[N]=N}),O({},F)[G]!==7||w(O({},V)).join("")!==U})?function(F,V){for(var G=A(F),U=arguments.length,N=1,L=E.f,Y=S.f;U>N;)for(var z,ee=T(arguments[N++]),te=L?D(w(ee),L(ee)):w(ee),re=te.length,he=0;re>he;)z=te[he++],h&&!g(Y,ee,z)||(G[z]=ee[z]);return G}:O},2360:function(l,v,a){var h,y=a(8551),g=a(6801),b=a(8727),w=a(421),E=a(397),S=a(4055),A=a(6119),T="prototype",O="script",M=A("IE_PROTO"),D=function(){},F=function(U){return"<"+O+">"+U+"</"+O+">"},V=function(U){U.write(F("")),U.close();var N=U.parentWindow.Object;return U=null,N},G=function(){try{h=new ActiveXObject("htmlfile")}catch{}var U,N,L;G=typeof document<"u"?document.domain&&h?V(h):(N=S("iframe"),L="java"+O+":",N.style.display="none",E.appendChild(N),N.src=String(L),(U=N.contentWindow.document).open(),U.write(F("document.F=Object")),U.close(),U.F):V(h);for(var Y=b.length;Y--;)delete G[T][b[Y]];return G()};w[M]=!0,l.exports=Object.create||function(U,N){var L;return U!==null?(D[T]=y(U),L=new D,D[T]=null,L[M]=U):L=G(),N===void 0?L:g.f(L,N)}},6801:function(l,v,a){var h=a(3724),y=a(8686),g=a(4913),b=a(8551),w=a(5397),E=a(1072);v.f=h&&!y?Object.defineProperties:function(S,A){b(S);for(var T,O=w(A),M=E(A),D=M.length,F=0;D>F;)g.f(S,T=M[F++],O[T]);return S}},4913:function(l,v,a){var h=a(3724),y=a(5917),g=a(8686),b=a(8551),w=a(6969),E=TypeError,S=Object.defineProperty,A=Object.getOwnPropertyDescriptor,T="enumerable",O="configurable",M="writable";v.f=h?g?function(D,F,V){if(b(D),F=w(F),b(V),typeof D=="function"&&F==="prototype"&&"value"in V&&M in V&&!V[M]){var G=A(D,F);G&&G[M]&&(D[F]=V.value,V={configurable:O in V?V[O]:G[O],enumerable:T in V?V[T]:G[T],writable:!1})}return S(D,F,V)}:S:function(D,F,V){if(b(D),F=w(F),b(V),y)try{return S(D,F,V)}catch{}if("get"in V||"set"in V)throw new E("Accessors not supported");return"value"in V&&(D[F]=V.value),D}},7347:function(l,v,a){var h=a(3724),y=a(9565),g=a(8773),b=a(6980),w=a(5397),E=a(6969),S=a(9297),A=a(5917),T=Object.getOwnPropertyDescriptor;v.f=h?T:function(O,M){if(O=w(O),M=E(M),A)try{return T(O,M)}catch{}if(S(O,M))return b(!y(g.f,O,M),O[M])}},298:function(l,v,a){var h=a(4576),y=a(5397),g=a(8480).f,b=a(7680),w=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];l.exports.f=function(E){return w&&h(E)==="Window"?function(S){try{return g(S)}catch{return b(w)}}(E):g(y(E))}},8480:function(l,v,a){var h=a(1828),y=a(8727).concat("length","prototype");v.f=Object.getOwnPropertyNames||function(g){return h(g,y)}},3717:function(l,v){v.f=Object.getOwnPropertySymbols},2787:function(l,v,a){var h=a(9297),y=a(4901),g=a(8981),b=a(6119),w=a(2211),E=b("IE_PROTO"),S=Object,A=S.prototype;l.exports=w?S.getPrototypeOf:function(T){var O=g(T);if(h(O,E))return O[E];var M=O.constructor;return y(M)&&O instanceof M?M.prototype:O instanceof S?A:null}},1625:function(l,v,a){var h=a(9504);l.exports=h({}.isPrototypeOf)},1828:function(l,v,a){var h=a(9504),y=a(9297),g=a(5397),b=a(9617).indexOf,w=a(421),E=h([].push);l.exports=function(S,A){var T,O=g(S),M=0,D=[];for(T in O)!y(w,T)&&y(O,T)&&E(D,T);for(;A.length>M;)y(O,T=A[M++])&&(~b(D,T)||E(D,T));return D}},1072:function(l,v,a){var h=a(1828),y=a(8727);l.exports=Object.keys||function(g){return h(g,y)}},8773:function(l,v){var a={}.propertyIsEnumerable,h=Object.getOwnPropertyDescriptor,y=h&&!a.call({1:2},1);v.f=y?function(g){var b=h(this,g);return!!b&&b.enumerable}:a},2551:function(l,v,a){var h=a(6395),y=a(4475),g=a(9039),b=a(9160);l.exports=h||!g(function(){if(!(b&&b<535)){var w=Math.random();__defineSetter__.call(null,w,function(){}),delete y[w]}})},2967:function(l,v,a){var h=a(6706),y=a(34),g=a(7750),b=a(3506);l.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var w,E=!1,S={};try{(w=h(Object.prototype,"__proto__","set"))(S,[]),E=S instanceof Array}catch{}return function(A,T){return g(A),b(T),y(A)&&(E?w(A,T):A.__proto__=T),A}}():void 0)},3179:function(l,v,a){var h=a(2140),y=a(6955);l.exports=h?{}.toString:function(){return"[object "+y(this)+"]"}},4270:function(l,v,a){var h=a(9565),y=a(4901),g=a(34),b=TypeError;l.exports=function(w,E){var S,A;if(E==="string"&&y(S=w.toString)&&!g(A=h(S,w))||y(S=w.valueOf)&&!g(A=h(S,w))||E!=="string"&&y(S=w.toString)&&!g(A=h(S,w)))return A;throw new b("Can't convert object to primitive value")}},5031:function(l,v,a){var h=a(7751),y=a(9504),g=a(8480),b=a(3717),w=a(8551),E=y([].concat);l.exports=h("Reflect","ownKeys")||function(S){var A=g.f(w(S)),T=b.f;return T?E(A,T(S)):A}},9167:function(l,v,a){var h=a(4475);l.exports=h},1056:function(l,v,a){var h=a(4913).f;l.exports=function(y,g,b){b in y||h(y,b,{configurable:!0,get:function(){return g[b]},set:function(w){g[b]=w}})}},6682:function(l,v,a){var h=a(9565),y=a(8551),g=a(4901),b=a(4576),w=a(7323),E=TypeError;l.exports=function(S,A){var T=S.exec;if(g(T)){var O=h(T,S,A);return O!==null&&y(O),O}if(b(S)==="RegExp")return h(w,S,A);throw new E("RegExp#exec called on incompatible receiver")}},7323:function(l,v,a){var h,y,g=a(9565),b=a(9504),w=a(655),E=a(7979),S=a(8429),A=a(5745),T=a(2360),O=a(1181).get,M=a(3635),D=a(8814),F=A("native-string-replace",String.prototype.replace),V=RegExp.prototype.exec,G=V,U=b("".charAt),N=b("".indexOf),L=b("".replace),Y=b("".slice),z=(y=/b*/g,g(V,h=/a/,"a"),g(V,y,"a"),h.lastIndex!==0||y.lastIndex!==0),ee=S.BROKEN_CARET,te=/()??/.exec("")[1]!==void 0;(z||te||ee||M||D)&&(G=function(re){var he,ue,ye,pe,q,$,Q,_=this,j=O(_),B=w(re),R=j.raw;if(R)return R.lastIndex=_.lastIndex,he=g(G,R,B),_.lastIndex=R.lastIndex,he;var X=j.groups,J=ee&&_.sticky,Z=g(E,_),W=_.source,fe=0,ge=B;if(J&&(Z=L(Z,"y",""),N(Z,"g")===-1&&(Z+="g"),ge=Y(B,_.lastIndex),_.lastIndex>0&&(!_.multiline||_.multiline&&U(B,_.lastIndex-1)!==`
132
+ */(function(e,t){(function(n,r){e.exports=r(I)})(qi,function(n){return function(){var r={981:function(){typeof Element>"u"||"remove"in Element.prototype||(Element.prototype.remove=function(){this.parentNode&&this.parentNode.removeChild(this)}),typeof self<"u"&&"document"in self&&((!("classList"in document.createElement("_"))||document.createElementNS&&!("classList"in document.createElementNS("http://www.w3.org/2000/svg","g")))&&function(c){if("Element"in c){var u="classList",d="prototype",f=c.Element[d],p=Object,l=String[d].trim||function(){return this.replace(/^\s+|\s+$/g,"")},v=Array[d].indexOf||function(E){for(var S=0,A=this.length;S<A;S++)if(S in this&&this[S]===E)return S;return-1},a=function(E,S){this.name=E,this.code=DOMException[E],this.message=S},h=function(E,S){if(S==="")throw new a("SYNTAX_ERR","The token must not be empty.");if(/\s/.test(S))throw new a("INVALID_CHARACTER_ERR","The token must not contain space characters.");return v.call(E,S)},y=function(E){for(var S=l.call(E.getAttribute("class")||""),A=S?S.split(/\s+/):[],T=0,O=A.length;T<O;T++)this.push(A[T]);this._updateClassName=function(){E.setAttribute("class",this.toString())}},g=y[d]=[],b=function(){return new y(this)};if(a[d]=Error[d],g.item=function(E){return this[E]||null},g.contains=function(E){return~h(this,E+"")},g.add=function(){var E,S=arguments,A=0,T=S.length,O=!1;do~h(this,E=S[A]+"")||(this.push(E),O=!0);while(++A<T);O&&this._updateClassName()},g.remove=function(){var E,S,A=arguments,T=0,O=A.length,M=!1;do for(S=h(this,E=A[T]+"");~S;)this.splice(S,1),M=!0,S=h(this,E);while(++T<O);M&&this._updateClassName()},g.toggle=function(E,S){var A=this.contains(E),T=A?S!==!0&&"remove":S!==!1&&"add";return T&&this[T](E),S===!0||S===!1?S:!A},g.replace=function(E,S){var A=h(E+"");~A&&(this.splice(A,1,S),this._updateClassName())},g.toString=function(){return this.join(" ")},p.defineProperty){var w={get:b,enumerable:!0,configurable:!0};try{p.defineProperty(f,u,w)}catch(E){E.number!==void 0&&E.number!==-2146823252||(w.enumerable=!1,p.defineProperty(f,u,w))}}else p[d].__defineGetter__&&f.__defineGetter__(u,b)}}(self),function(){var c=document.createElement("_");if(c.classList.add("c1","c2"),!c.classList.contains("c2")){var u=function(f){var p=DOMTokenList.prototype[f];DOMTokenList.prototype[f]=function(l){var v,a=arguments.length;for(v=0;v<a;v++)l=arguments[v],p.call(this,l)}};u("add"),u("remove")}if(c.classList.toggle("c3",!1),c.classList.contains("c3")){var d=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(f,p){return 1 in arguments&&!this.contains(f)==!p?p:d.call(this,f)}}"replace"in document.createElement("_").classList||(DOMTokenList.prototype.replace=function(f,p){var l=this.toString().split(" "),v=l.indexOf(f+"");~v&&(l=l.slice(v),this.remove.apply(this,l),this.add(p),this.add.apply(this,l.slice(1)))}),c=null}())},548:function(c){c.exports=function(){var u={9306:function(l,v,a){var h=a(4901),y=a(6823),g=TypeError;l.exports=function(b){if(h(b))return b;throw new g(y(b)+" is not a function")}},5548:function(l,v,a){var h=a(3517),y=a(6823),g=TypeError;l.exports=function(b){if(h(b))return b;throw new g(y(b)+" is not a constructor")}},3506:function(l,v,a){var h=a(3925),y=String,g=TypeError;l.exports=function(b){if(h(b))return b;throw new g("Can't set "+y(b)+" as a prototype")}},6469:function(l,v,a){var h=a(8227),y=a(2360),g=a(4913).f,b=h("unscopables"),w=Array.prototype;w[b]===void 0&&g(w,b,{configurable:!0,value:y(null)}),l.exports=function(E){w[b][E]=!0}},7829:function(l,v,a){var h=a(8183).charAt;l.exports=function(y,g,b){return g+(b?h(y,g).length:1)}},8551:function(l,v,a){var h=a(34),y=String,g=TypeError;l.exports=function(b){if(h(b))return b;throw new g(y(b)+" is not an object")}},235:function(l,v,a){var h=a(9213).forEach,y=a(4598)("forEach");l.exports=y?[].forEach:function(g){return h(this,g,arguments.length>1?arguments[1]:void 0)}},7916:function(l,v,a){var h=a(6080),y=a(9565),g=a(8981),b=a(6319),w=a(4209),E=a(3517),S=a(6198),A=a(4659),T=a(81),O=a(851),M=Array;l.exports=function(D){var F=g(D),V=E(this),G=arguments.length,U=G>1?arguments[1]:void 0,R=U!==void 0;R&&(U=h(U,G>2?arguments[2]:void 0));var L,Y,z,ee,te,re,he=O(F),ue=0;if(!he||this===M&&w(he))for(L=S(F),Y=V?new this(L):M(L);L>ue;ue++)re=R?U(F[ue],ue):F[ue],A(Y,ue,re);else for(Y=V?new this:[],te=(ee=T(F,he)).next;!(z=y(te,ee)).done;ue++)re=R?b(ee,U,[z.value,ue],!0):z.value,A(Y,ue,re);return Y.length=ue,Y}},9617:function(l,v,a){var h=a(5397),y=a(5610),g=a(6198),b=function(w){return function(E,S,A){var T=h(E),O=g(T);if(O===0)return!w&&-1;var M,D=y(A,O);if(w&&S!=S){for(;O>D;)if((M=T[D++])!=M)return!0}else for(;O>D;D++)if((w||D in T)&&T[D]===S)return w||D||0;return!w&&-1}};l.exports={includes:b(!0),indexOf:b(!1)}},9213:function(l,v,a){var h=a(6080),y=a(9504),g=a(7055),b=a(8981),w=a(6198),E=a(1469),S=y([].push),A=function(T){var O=T===1,M=T===2,D=T===3,F=T===4,V=T===6,G=T===7,U=T===5||V;return function(R,L,Y,z){for(var ee,te,re=b(R),he=g(re),ue=w(he),ye=h(L,Y),pe=0,q=z||E,$=O?q(R,ue):M||G?q(R,0):void 0;ue>pe;pe++)if((U||pe in he)&&(te=ye(ee=he[pe],pe,re),T))if(O)$[pe]=te;else if(te)switch(T){case 3:return!0;case 5:return ee;case 6:return pe;case 2:S($,ee)}else switch(T){case 4:return!1;case 7:S($,ee)}return V?-1:D||F?F:$}};l.exports={forEach:A(0),map:A(1),filter:A(2),some:A(3),every:A(4),find:A(5),findIndex:A(6),filterReject:A(7)}},597:function(l,v,a){var h=a(9039),y=a(8227),g=a(7388),b=y("species");l.exports=function(w){return g>=51||!h(function(){var E=[];return(E.constructor={})[b]=function(){return{foo:1}},E[w](Boolean).foo!==1})}},4598:function(l,v,a){var h=a(9039);l.exports=function(y,g){var b=[][y];return!!b&&h(function(){b.call(null,g||function(){return 1},1)})}},926:function(l,v,a){var h=a(9306),y=a(8981),g=a(7055),b=a(6198),w=TypeError,E="Reduce of empty array with no initial value",S=function(A){return function(T,O,M,D){var F=y(T),V=g(F),G=b(F);if(h(O),G===0&&M<2)throw new w(E);var U=A?G-1:0,R=A?-1:1;if(M<2)for(;;){if(U in V){D=V[U],U+=R;break}if(U+=R,A?U<0:G<=U)throw new w(E)}for(;A?U>=0:G>U;U+=R)U in V&&(D=O(D,V[U],U,F));return D}};l.exports={left:S(!1),right:S(!0)}},4527:function(l,v,a){var h=a(3724),y=a(4376),g=TypeError,b=Object.getOwnPropertyDescriptor,w=h&&!function(){if(this!==void 0)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(E){return E instanceof TypeError}}();l.exports=w?function(E,S){if(y(E)&&!b(E,"length").writable)throw new g("Cannot set read only .length");return E.length=S}:function(E,S){return E.length=S}},7680:function(l,v,a){var h=a(9504);l.exports=h([].slice)},4488:function(l,v,a){var h=a(7680),y=Math.floor,g=function(b,w){var E=b.length;if(E<8)for(var S,A,T=1;T<E;){for(A=T,S=b[T];A&&w(b[A-1],S)>0;)b[A]=b[--A];A!==T++&&(b[A]=S)}else for(var O=y(E/2),M=g(h(b,0,O),w),D=g(h(b,O),w),F=M.length,V=D.length,G=0,U=0;G<F||U<V;)b[G+U]=G<F&&U<V?w(M[G],D[U])<=0?M[G++]:D[U++]:G<F?M[G++]:D[U++];return b};l.exports=g},7433:function(l,v,a){var h=a(4376),y=a(3517),g=a(34),b=a(8227)("species"),w=Array;l.exports=function(E){var S;return h(E)&&(S=E.constructor,(y(S)&&(S===w||h(S.prototype))||g(S)&&(S=S[b])===null)&&(S=void 0)),S===void 0?w:S}},1469:function(l,v,a){var h=a(7433);l.exports=function(y,g){return new(h(y))(g===0?0:g)}},6319:function(l,v,a){var h=a(8551),y=a(9539);l.exports=function(g,b,w,E){try{return E?b(h(w)[0],w[1]):b(w)}catch(S){y(g,"throw",S)}}},4428:function(l,v,a){var h=a(8227)("iterator"),y=!1;try{var g=0,b={next:function(){return{done:!!g++}},return:function(){y=!0}};b[h]=function(){return this},Array.from(b,function(){throw 2})}catch{}l.exports=function(w,E){try{if(!E&&!y)return!1}catch{return!1}var S=!1;try{var A={};A[h]=function(){return{next:function(){return{done:S=!0}}}},w(A)}catch{}return S}},4576:function(l,v,a){var h=a(9504),y=h({}.toString),g=h("".slice);l.exports=function(b){return g(y(b),8,-1)}},6955:function(l,v,a){var h=a(2140),y=a(4901),g=a(4576),b=a(8227)("toStringTag"),w=Object,E=g(function(){return arguments}())==="Arguments";l.exports=h?g:function(S){var A,T,O;return S===void 0?"Undefined":S===null?"Null":typeof(T=function(M,D){try{return M[D]}catch{}}(A=w(S),b))=="string"?T:E?g(A):(O=g(A))==="Object"&&y(A.callee)?"Arguments":O}},7740:function(l,v,a){var h=a(9297),y=a(5031),g=a(7347),b=a(4913);l.exports=function(w,E,S){for(var A=y(E),T=b.f,O=g.f,M=0;M<A.length;M++){var D=A[M];h(w,D)||S&&h(S,D)||T(w,D,O(E,D))}}},1436:function(l,v,a){var h=a(8227)("match");l.exports=function(y){var g=/./;try{"/./"[y](g)}catch{try{return g[h]=!1,"/./"[y](g)}catch{}}return!1}},2211:function(l,v,a){var h=a(9039);l.exports=!h(function(){function y(){}return y.prototype.constructor=null,Object.getPrototypeOf(new y)!==y.prototype})},2529:function(l){l.exports=function(v,a){return{value:v,done:a}}},6699:function(l,v,a){var h=a(3724),y=a(4913),g=a(6980);l.exports=h?function(b,w,E){return y.f(b,w,g(1,E))}:function(b,w,E){return b[w]=E,b}},6980:function(l){l.exports=function(v,a){return{enumerable:!(1&v),configurable:!(2&v),writable:!(4&v),value:a}}},4659:function(l,v,a){var h=a(3724),y=a(4913),g=a(6980);l.exports=function(b,w,E){h?y.f(b,w,g(0,E)):b[w]=E}},3640:function(l,v,a){var h=a(8551),y=a(4270),g=TypeError;l.exports=function(b){if(h(this),b==="string"||b==="default")b="string";else if(b!=="number")throw new g("Incorrect hint");return y(this,b)}},2106:function(l,v,a){var h=a(283),y=a(4913);l.exports=function(g,b,w){return w.get&&h(w.get,b,{getter:!0}),w.set&&h(w.set,b,{setter:!0}),y.f(g,b,w)}},6840:function(l,v,a){var h=a(4901),y=a(4913),g=a(283),b=a(9433);l.exports=function(w,E,S,A){A||(A={});var T=A.enumerable,O=A.name!==void 0?A.name:E;if(h(S)&&g(S,O,A),A.global)T?w[E]=S:b(E,S);else{try{A.unsafe?w[E]&&(T=!0):delete w[E]}catch{}T?w[E]=S:y.f(w,E,{value:S,enumerable:!1,configurable:!A.nonConfigurable,writable:!A.nonWritable})}return w}},9433:function(l,v,a){var h=a(4475),y=Object.defineProperty;l.exports=function(g,b){try{y(h,g,{value:b,configurable:!0,writable:!0})}catch{h[g]=b}return b}},4606:function(l,v,a){var h=a(6823),y=TypeError;l.exports=function(g,b){if(!delete g[b])throw new y("Cannot delete property "+h(b)+" of "+h(g))}},3724:function(l,v,a){var h=a(9039);l.exports=!h(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7})},4055:function(l,v,a){var h=a(4475),y=a(34),g=h.document,b=y(g)&&y(g.createElement);l.exports=function(w){return b?g.createElement(w):{}}},6837:function(l){var v=TypeError;l.exports=function(a){if(a>9007199254740991)throw v("Maximum allowed index exceeded");return a}},7400:function(l){l.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},9296:function(l,v,a){var h=a(4055)("span").classList,y=h&&h.constructor&&h.constructor.prototype;l.exports=y===Object.prototype?void 0:y},8834:function(l,v,a){var h=a(9392).match(/firefox\/(\d+)/i);l.exports=!!h&&+h[1]},3202:function(l,v,a){var h=a(9392);l.exports=/MSIE|Trident/.test(h)},9088:function(l,v,a){var h=a(4475),y=a(4576);l.exports=y(h.process)==="process"},9392:function(l){l.exports=typeof navigator<"u"&&String(navigator.userAgent)||""},7388:function(l,v,a){var h,y,g=a(4475),b=a(9392),w=g.process,E=g.Deno,S=w&&w.versions||E&&E.version,A=S&&S.v8;A&&(y=(h=A.split("."))[0]>0&&h[0]<4?1:+(h[0]+h[1])),!y&&b&&(!(h=b.match(/Edge\/(\d+)/))||h[1]>=74)&&(h=b.match(/Chrome\/(\d+)/))&&(y=+h[1]),l.exports=y},9160:function(l,v,a){var h=a(9392).match(/AppleWebKit\/(\d+)\./);l.exports=!!h&&+h[1]},8727:function(l){l.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},6518:function(l,v,a){var h=a(4475),y=a(7347).f,g=a(6699),b=a(6840),w=a(9433),E=a(7740),S=a(2796);l.exports=function(A,T){var O,M,D,F,V,G=A.target,U=A.global,R=A.stat;if(O=U?h:R?h[G]||w(G,{}):h[G]&&h[G].prototype)for(M in T){if(F=T[M],D=A.dontCallGetSet?(V=y(O,M))&&V.value:O[M],!S(U?M:G+(R?".":"#")+M,A.forced)&&D!==void 0){if(typeof F==typeof D)continue;E(F,D)}(A.sham||D&&D.sham)&&g(F,"sham",!0),b(O,M,F,A)}}},9039:function(l){l.exports=function(v){try{return!!v()}catch{return!0}}},9228:function(l,v,a){a(7495);var h=a(9565),y=a(6840),g=a(7323),b=a(9039),w=a(8227),E=a(6699),S=w("species"),A=RegExp.prototype;l.exports=function(T,O,M,D){var F=w(T),V=!b(function(){var L={};return L[F]=function(){return 7},""[T](L)!==7}),G=V&&!b(function(){var L=!1,Y=/a/;return T==="split"&&((Y={}).constructor={},Y.constructor[S]=function(){return Y},Y.flags="",Y[F]=/./[F]),Y.exec=function(){return L=!0,null},Y[F](""),!L});if(!V||!G||M){var U=/./[F],R=O(F,""[T],function(L,Y,z,ee,te){var re=Y.exec;return re===g||re===A.exec?V&&!te?{done:!0,value:h(U,Y,z,ee)}:{done:!0,value:h(L,z,Y,ee)}:{done:!1}});y(String.prototype,T,R[0]),y(A,F,R[1])}D&&E(A[F],"sham",!0)}},8745:function(l,v,a){var h=a(616),y=Function.prototype,g=y.apply,b=y.call;l.exports=typeof Reflect=="object"&&Reflect.apply||(h?b.bind(g):function(){return b.apply(g,arguments)})},6080:function(l,v,a){var h=a(7476),y=a(9306),g=a(616),b=h(h.bind);l.exports=function(w,E){return y(w),E===void 0?w:g?b(w,E):function(){return w.apply(E,arguments)}}},616:function(l,v,a){var h=a(9039);l.exports=!h(function(){var y=(function(){}).bind();return typeof y!="function"||y.hasOwnProperty("prototype")})},9565:function(l,v,a){var h=a(616),y=Function.prototype.call;l.exports=h?y.bind(y):function(){return y.apply(y,arguments)}},350:function(l,v,a){var h=a(3724),y=a(9297),g=Function.prototype,b=h&&Object.getOwnPropertyDescriptor,w=y(g,"name"),E=w&&(function(){}).name==="something",S=w&&(!h||h&&b(g,"name").configurable);l.exports={EXISTS:w,PROPER:E,CONFIGURABLE:S}},6706:function(l,v,a){var h=a(9504),y=a(9306);l.exports=function(g,b,w){try{return h(y(Object.getOwnPropertyDescriptor(g,b)[w]))}catch{}}},7476:function(l,v,a){var h=a(4576),y=a(9504);l.exports=function(g){if(h(g)==="Function")return y(g)}},9504:function(l,v,a){var h=a(616),y=Function.prototype,g=y.call,b=h&&y.bind.bind(g,g);l.exports=h?b:function(w){return function(){return g.apply(w,arguments)}}},7751:function(l,v,a){var h=a(4475),y=a(4901);l.exports=function(g,b){return arguments.length<2?(w=h[g],y(w)?w:void 0):h[g]&&h[g][b];var w}},851:function(l,v,a){var h=a(6955),y=a(5966),g=a(4117),b=a(6269),w=a(8227)("iterator");l.exports=function(E){if(!g(E))return y(E,w)||y(E,"@@iterator")||b[h(E)]}},81:function(l,v,a){var h=a(9565),y=a(9306),g=a(8551),b=a(6823),w=a(851),E=TypeError;l.exports=function(S,A){var T=arguments.length<2?w(S):A;if(y(T))return g(h(T,S));throw new E(b(S)+" is not iterable")}},6933:function(l,v,a){var h=a(9504),y=a(4376),g=a(4901),b=a(4576),w=a(655),E=h([].push);l.exports=function(S){if(g(S))return S;if(y(S)){for(var A=S.length,T=[],O=0;O<A;O++){var M=S[O];typeof M=="string"?E(T,M):typeof M!="number"&&b(M)!=="Number"&&b(M)!=="String"||E(T,w(M))}var D=T.length,F=!0;return function(V,G){if(F)return F=!1,G;if(y(this))return G;for(var U=0;U<D;U++)if(T[U]===V)return G}}}},5966:function(l,v,a){var h=a(9306),y=a(4117);l.exports=function(g,b){var w=g[b];return y(w)?void 0:h(w)}},2478:function(l,v,a){var h=a(9504),y=a(8981),g=Math.floor,b=h("".charAt),w=h("".replace),E=h("".slice),S=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,A=/\$([$&'`]|\d{1,2})/g;l.exports=function(T,O,M,D,F,V){var G=M+T.length,U=D.length,R=A;return F!==void 0&&(F=y(F),R=S),w(V,R,function(L,Y){var z;switch(b(Y,0)){case"$":return"$";case"&":return T;case"`":return E(O,0,M);case"'":return E(O,G);case"<":z=F[E(Y,1,-1)];break;default:var ee=+Y;if(ee===0)return L;if(ee>U){var te=g(ee/10);return te===0?L:te<=U?D[te-1]===void 0?b(Y,1):D[te-1]+b(Y,1):L}z=D[ee-1]}return z===void 0?"":z})}},4475:function(l,v,a){var h=function(y){return y&&y.Math===Math&&y};l.exports=h(typeof globalThis=="object"&&globalThis)||h(typeof window=="object"&&window)||h(typeof self=="object"&&self)||h(typeof a.g=="object"&&a.g)||h(typeof this=="object"&&this)||function(){return this}()||Function("return this")()},9297:function(l,v,a){var h=a(9504),y=a(8981),g=h({}.hasOwnProperty);l.exports=Object.hasOwn||function(b,w){return g(y(b),w)}},421:function(l){l.exports={}},397:function(l,v,a){var h=a(7751);l.exports=h("document","documentElement")},5917:function(l,v,a){var h=a(3724),y=a(9039),g=a(4055);l.exports=!h&&!y(function(){return Object.defineProperty(g("div"),"a",{get:function(){return 7}}).a!==7})},7055:function(l,v,a){var h=a(9504),y=a(9039),g=a(4576),b=Object,w=h("".split);l.exports=y(function(){return!b("z").propertyIsEnumerable(0)})?function(E){return g(E)==="String"?w(E,""):b(E)}:b},3167:function(l,v,a){var h=a(4901),y=a(34),g=a(2967);l.exports=function(b,w,E){var S,A;return g&&h(S=w.constructor)&&S!==E&&y(A=S.prototype)&&A!==E.prototype&&g(b,A),b}},3706:function(l,v,a){var h=a(9504),y=a(4901),g=a(7629),b=h(Function.toString);y(g.inspectSource)||(g.inspectSource=function(w){return b(w)}),l.exports=g.inspectSource},1181:function(l,v,a){var h,y,g,b=a(8622),w=a(4475),E=a(34),S=a(6699),A=a(9297),T=a(7629),O=a(6119),M=a(421),D="Object already initialized",F=w.TypeError,V=w.WeakMap;if(b||T.state){var G=T.state||(T.state=new V);G.get=G.get,G.has=G.has,G.set=G.set,h=function(R,L){if(G.has(R))throw new F(D);return L.facade=R,G.set(R,L),L},y=function(R){return G.get(R)||{}},g=function(R){return G.has(R)}}else{var U=O("state");M[U]=!0,h=function(R,L){if(A(R,U))throw new F(D);return L.facade=R,S(R,U,L),L},y=function(R){return A(R,U)?R[U]:{}},g=function(R){return A(R,U)}}l.exports={set:h,get:y,has:g,enforce:function(R){return g(R)?y(R):h(R,{})},getterFor:function(R){return function(L){var Y;if(!E(L)||(Y=y(L)).type!==R)throw new F("Incompatible receiver, "+R+" required");return Y}}}},4209:function(l,v,a){var h=a(8227),y=a(6269),g=h("iterator"),b=Array.prototype;l.exports=function(w){return w!==void 0&&(y.Array===w||b[g]===w)}},4376:function(l,v,a){var h=a(4576);l.exports=Array.isArray||function(y){return h(y)==="Array"}},4901:function(l){var v=typeof document=="object"&&document.all;l.exports=v===void 0&&v!==void 0?function(a){return typeof a=="function"||a===v}:function(a){return typeof a=="function"}},3517:function(l,v,a){var h=a(9504),y=a(9039),g=a(4901),b=a(6955),w=a(7751),E=a(3706),S=function(){},A=w("Reflect","construct"),T=/^\s*(?:class|function)\b/,O=h(T.exec),M=!T.test(S),D=function(V){if(!g(V))return!1;try{return A(S,[],V),!0}catch{return!1}},F=function(V){if(!g(V))return!1;switch(b(V)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return M||!!O(T,E(V))}catch{return!0}};F.sham=!0,l.exports=!A||y(function(){var V;return D(D.call)||!D(Object)||!D(function(){V=!0})||V})?F:D},2796:function(l,v,a){var h=a(9039),y=a(4901),g=/#|\.prototype\./,b=function(T,O){var M=E[w(T)];return M===A||M!==S&&(y(O)?h(O):!!O)},w=b.normalize=function(T){return String(T).replace(g,".").toLowerCase()},E=b.data={},S=b.NATIVE="N",A=b.POLYFILL="P";l.exports=b},2087:function(l,v,a){var h=a(34),y=Math.floor;l.exports=Number.isInteger||function(g){return!h(g)&&isFinite(g)&&y(g)===g}},4117:function(l){l.exports=function(v){return v==null}},34:function(l,v,a){var h=a(4901);l.exports=function(y){return typeof y=="object"?y!==null:h(y)}},3925:function(l,v,a){var h=a(34);l.exports=function(y){return h(y)||y===null}},6395:function(l){l.exports=!1},788:function(l,v,a){var h=a(34),y=a(4576),g=a(8227)("match");l.exports=function(b){var w;return h(b)&&((w=b[g])!==void 0?!!w:y(b)==="RegExp")}},757:function(l,v,a){var h=a(7751),y=a(4901),g=a(1625),b=a(7040),w=Object;l.exports=b?function(E){return typeof E=="symbol"}:function(E){var S=h("Symbol");return y(S)&&g(S.prototype,w(E))}},9539:function(l,v,a){var h=a(9565),y=a(8551),g=a(5966);l.exports=function(b,w,E){var S,A;y(b);try{if(!(S=g(b,"return"))){if(w==="throw")throw E;return E}S=h(S,b)}catch(T){A=!0,S=T}if(w==="throw")throw E;if(A)throw S;return y(S),E}},3994:function(l,v,a){var h=a(7657).IteratorPrototype,y=a(2360),g=a(6980),b=a(687),w=a(6269),E=function(){return this};l.exports=function(S,A,T,O){var M=A+" Iterator";return S.prototype=y(h,{next:g(+!O,T)}),b(S,M,!1,!0),w[M]=E,S}},1088:function(l,v,a){var h=a(6518),y=a(9565),g=a(6395),b=a(350),w=a(4901),E=a(3994),S=a(2787),A=a(2967),T=a(687),O=a(6699),M=a(6840),D=a(8227),F=a(6269),V=a(7657),G=b.PROPER,U=b.CONFIGURABLE,R=V.IteratorPrototype,L=V.BUGGY_SAFARI_ITERATORS,Y=D("iterator"),z="keys",ee="values",te="entries",re=function(){return this};l.exports=function(he,ue,ye,pe,q,$,Q){E(ye,ue,pe);var _,j,B,N=function(le){if(le===q&&fe)return fe;if(!L&&le&&le in Z)return Z[le];switch(le){case z:case ee:case te:return function(){return new ye(this,le)}}return function(){return new ye(this)}},X=ue+" Iterator",J=!1,Z=he.prototype,W=Z[Y]||Z["@@iterator"]||q&&Z[q],fe=!L&&W||N(q),ge=ue==="Array"&&Z.entries||W;if(ge&&(_=S(ge.call(new he)))!==Object.prototype&&_.next&&(g||S(_)===R||(A?A(_,R):w(_[Y])||M(_,Y,re)),T(_,X,!0,!0),g&&(F[X]=re)),G&&q===ee&&W&&W.name!==ee&&(!g&&U?O(Z,"name",ee):(J=!0,fe=function(){return y(W,this)})),q)if(j={values:N(ee),keys:$?fe:N(z),entries:N(te)},Q)for(B in j)(L||J||!(B in Z))&&M(Z,B,j[B]);else h({target:ue,proto:!0,forced:L||J},j);return g&&!Q||Z[Y]===fe||M(Z,Y,fe,{name:q}),F[ue]=fe,j}},7657:function(l,v,a){var h,y,g,b=a(9039),w=a(4901),E=a(34),S=a(2360),A=a(2787),T=a(6840),O=a(8227),M=a(6395),D=O("iterator"),F=!1;[].keys&&("next"in(g=[].keys())?(y=A(A(g)))!==Object.prototype&&(h=y):F=!0),!E(h)||b(function(){var V={};return h[D].call(V)!==V})?h={}:M&&(h=S(h)),w(h[D])||T(h,D,function(){return this}),l.exports={IteratorPrototype:h,BUGGY_SAFARI_ITERATORS:F}},6269:function(l){l.exports={}},6198:function(l,v,a){var h=a(8014);l.exports=function(y){return h(y.length)}},283:function(l,v,a){var h=a(9504),y=a(9039),g=a(4901),b=a(9297),w=a(3724),E=a(350).CONFIGURABLE,S=a(3706),A=a(1181),T=A.enforce,O=A.get,M=String,D=Object.defineProperty,F=h("".slice),V=h("".replace),G=h([].join),U=w&&!y(function(){return D(function(){},"length",{value:8}).length!==8}),R=String(String).split("String"),L=l.exports=function(Y,z,ee){F(M(z),0,7)==="Symbol("&&(z="["+V(M(z),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),ee&&ee.getter&&(z="get "+z),ee&&ee.setter&&(z="set "+z),(!b(Y,"name")||E&&Y.name!==z)&&(w?D(Y,"name",{value:z,configurable:!0}):Y.name=z),U&&ee&&b(ee,"arity")&&Y.length!==ee.arity&&D(Y,"length",{value:ee.arity});try{ee&&b(ee,"constructor")&&ee.constructor?w&&D(Y,"prototype",{writable:!1}):Y.prototype&&(Y.prototype=void 0)}catch{}var te=T(Y);return b(te,"source")||(te.source=G(R,typeof z=="string"?z:"")),Y};Function.prototype.toString=L(function(){return g(this)&&O(this).source||S(this)},"toString")},741:function(l){var v=Math.ceil,a=Math.floor;l.exports=Math.trunc||function(h){var y=+h;return(y>0?a:v)(y)}},5749:function(l,v,a){var h=a(788),y=TypeError;l.exports=function(g){if(h(g))throw new y("The method doesn't accept regular expressions");return g}},4213:function(l,v,a){var h=a(3724),y=a(9504),g=a(9565),b=a(9039),w=a(1072),E=a(3717),S=a(8773),A=a(8981),T=a(7055),O=Object.assign,M=Object.defineProperty,D=y([].concat);l.exports=!O||b(function(){if(h&&O({b:1},O(M({},"a",{enumerable:!0,get:function(){M(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var F={},V={},G=Symbol("assign detection"),U="abcdefghijklmnopqrst";return F[G]=7,U.split("").forEach(function(R){V[R]=R}),O({},F)[G]!==7||w(O({},V)).join("")!==U})?function(F,V){for(var G=A(F),U=arguments.length,R=1,L=E.f,Y=S.f;U>R;)for(var z,ee=T(arguments[R++]),te=L?D(w(ee),L(ee)):w(ee),re=te.length,he=0;re>he;)z=te[he++],h&&!g(Y,ee,z)||(G[z]=ee[z]);return G}:O},2360:function(l,v,a){var h,y=a(8551),g=a(6801),b=a(8727),w=a(421),E=a(397),S=a(4055),A=a(6119),T="prototype",O="script",M=A("IE_PROTO"),D=function(){},F=function(U){return"<"+O+">"+U+"</"+O+">"},V=function(U){U.write(F("")),U.close();var R=U.parentWindow.Object;return U=null,R},G=function(){try{h=new ActiveXObject("htmlfile")}catch{}var U,R,L;G=typeof document<"u"?document.domain&&h?V(h):(R=S("iframe"),L="java"+O+":",R.style.display="none",E.appendChild(R),R.src=String(L),(U=R.contentWindow.document).open(),U.write(F("document.F=Object")),U.close(),U.F):V(h);for(var Y=b.length;Y--;)delete G[T][b[Y]];return G()};w[M]=!0,l.exports=Object.create||function(U,R){var L;return U!==null?(D[T]=y(U),L=new D,D[T]=null,L[M]=U):L=G(),R===void 0?L:g.f(L,R)}},6801:function(l,v,a){var h=a(3724),y=a(8686),g=a(4913),b=a(8551),w=a(5397),E=a(1072);v.f=h&&!y?Object.defineProperties:function(S,A){b(S);for(var T,O=w(A),M=E(A),D=M.length,F=0;D>F;)g.f(S,T=M[F++],O[T]);return S}},4913:function(l,v,a){var h=a(3724),y=a(5917),g=a(8686),b=a(8551),w=a(6969),E=TypeError,S=Object.defineProperty,A=Object.getOwnPropertyDescriptor,T="enumerable",O="configurable",M="writable";v.f=h?g?function(D,F,V){if(b(D),F=w(F),b(V),typeof D=="function"&&F==="prototype"&&"value"in V&&M in V&&!V[M]){var G=A(D,F);G&&G[M]&&(D[F]=V.value,V={configurable:O in V?V[O]:G[O],enumerable:T in V?V[T]:G[T],writable:!1})}return S(D,F,V)}:S:function(D,F,V){if(b(D),F=w(F),b(V),y)try{return S(D,F,V)}catch{}if("get"in V||"set"in V)throw new E("Accessors not supported");return"value"in V&&(D[F]=V.value),D}},7347:function(l,v,a){var h=a(3724),y=a(9565),g=a(8773),b=a(6980),w=a(5397),E=a(6969),S=a(9297),A=a(5917),T=Object.getOwnPropertyDescriptor;v.f=h?T:function(O,M){if(O=w(O),M=E(M),A)try{return T(O,M)}catch{}if(S(O,M))return b(!y(g.f,O,M),O[M])}},298:function(l,v,a){var h=a(4576),y=a(5397),g=a(8480).f,b=a(7680),w=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];l.exports.f=function(E){return w&&h(E)==="Window"?function(S){try{return g(S)}catch{return b(w)}}(E):g(y(E))}},8480:function(l,v,a){var h=a(1828),y=a(8727).concat("length","prototype");v.f=Object.getOwnPropertyNames||function(g){return h(g,y)}},3717:function(l,v){v.f=Object.getOwnPropertySymbols},2787:function(l,v,a){var h=a(9297),y=a(4901),g=a(8981),b=a(6119),w=a(2211),E=b("IE_PROTO"),S=Object,A=S.prototype;l.exports=w?S.getPrototypeOf:function(T){var O=g(T);if(h(O,E))return O[E];var M=O.constructor;return y(M)&&O instanceof M?M.prototype:O instanceof S?A:null}},1625:function(l,v,a){var h=a(9504);l.exports=h({}.isPrototypeOf)},1828:function(l,v,a){var h=a(9504),y=a(9297),g=a(5397),b=a(9617).indexOf,w=a(421),E=h([].push);l.exports=function(S,A){var T,O=g(S),M=0,D=[];for(T in O)!y(w,T)&&y(O,T)&&E(D,T);for(;A.length>M;)y(O,T=A[M++])&&(~b(D,T)||E(D,T));return D}},1072:function(l,v,a){var h=a(1828),y=a(8727);l.exports=Object.keys||function(g){return h(g,y)}},8773:function(l,v){var a={}.propertyIsEnumerable,h=Object.getOwnPropertyDescriptor,y=h&&!a.call({1:2},1);v.f=y?function(g){var b=h(this,g);return!!b&&b.enumerable}:a},2551:function(l,v,a){var h=a(6395),y=a(4475),g=a(9039),b=a(9160);l.exports=h||!g(function(){if(!(b&&b<535)){var w=Math.random();__defineSetter__.call(null,w,function(){}),delete y[w]}})},2967:function(l,v,a){var h=a(6706),y=a(34),g=a(7750),b=a(3506);l.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var w,E=!1,S={};try{(w=h(Object.prototype,"__proto__","set"))(S,[]),E=S instanceof Array}catch{}return function(A,T){return g(A),b(T),y(A)&&(E?w(A,T):A.__proto__=T),A}}():void 0)},3179:function(l,v,a){var h=a(2140),y=a(6955);l.exports=h?{}.toString:function(){return"[object "+y(this)+"]"}},4270:function(l,v,a){var h=a(9565),y=a(4901),g=a(34),b=TypeError;l.exports=function(w,E){var S,A;if(E==="string"&&y(S=w.toString)&&!g(A=h(S,w))||y(S=w.valueOf)&&!g(A=h(S,w))||E!=="string"&&y(S=w.toString)&&!g(A=h(S,w)))return A;throw new b("Can't convert object to primitive value")}},5031:function(l,v,a){var h=a(7751),y=a(9504),g=a(8480),b=a(3717),w=a(8551),E=y([].concat);l.exports=h("Reflect","ownKeys")||function(S){var A=g.f(w(S)),T=b.f;return T?E(A,T(S)):A}},9167:function(l,v,a){var h=a(4475);l.exports=h},1056:function(l,v,a){var h=a(4913).f;l.exports=function(y,g,b){b in y||h(y,b,{configurable:!0,get:function(){return g[b]},set:function(w){g[b]=w}})}},6682:function(l,v,a){var h=a(9565),y=a(8551),g=a(4901),b=a(4576),w=a(7323),E=TypeError;l.exports=function(S,A){var T=S.exec;if(g(T)){var O=h(T,S,A);return O!==null&&y(O),O}if(b(S)==="RegExp")return h(w,S,A);throw new E("RegExp#exec called on incompatible receiver")}},7323:function(l,v,a){var h,y,g=a(9565),b=a(9504),w=a(655),E=a(7979),S=a(8429),A=a(5745),T=a(2360),O=a(1181).get,M=a(3635),D=a(8814),F=A("native-string-replace",String.prototype.replace),V=RegExp.prototype.exec,G=V,U=b("".charAt),R=b("".indexOf),L=b("".replace),Y=b("".slice),z=(y=/b*/g,g(V,h=/a/,"a"),g(V,y,"a"),h.lastIndex!==0||y.lastIndex!==0),ee=S.BROKEN_CARET,te=/()??/.exec("")[1]!==void 0;(z||te||ee||M||D)&&(G=function(re){var he,ue,ye,pe,q,$,Q,_=this,j=O(_),B=w(re),N=j.raw;if(N)return N.lastIndex=_.lastIndex,he=g(G,N,B),_.lastIndex=N.lastIndex,he;var X=j.groups,J=ee&&_.sticky,Z=g(E,_),W=_.source,fe=0,ge=B;if(J&&(Z=L(Z,"y",""),R(Z,"g")===-1&&(Z+="g"),ge=Y(B,_.lastIndex),_.lastIndex>0&&(!_.multiline||_.multiline&&U(B,_.lastIndex-1)!==`
133
133
  `)&&(W="(?: "+W+")",ge=" "+ge,fe++),ue=new RegExp("^(?:"+W+")",Z)),te&&(ue=new RegExp("^"+W+"$(?!\\s)",Z)),z&&(ye=_.lastIndex),pe=g(V,J?ue:_,ge),J?pe?(pe.input=Y(pe.input,fe),pe[0]=Y(pe[0],fe),pe.index=_.lastIndex,_.lastIndex+=pe[0].length):_.lastIndex=0:z&&pe&&(_.lastIndex=_.global?pe.index+pe[0].length:ye),te&&pe&&pe.length>1&&g(F,pe[0],ue,function(){for(q=1;q<arguments.length-2;q++)arguments[q]===void 0&&(pe[q]=void 0)}),pe&&X)for(pe.groups=$=T(null),q=0;q<X.length;q++)$[(Q=X[q])[0]]=pe[Q[1]];return pe}),l.exports=G},7979:function(l,v,a){var h=a(8551);l.exports=function(){var y=h(this),g="";return y.hasIndices&&(g+="d"),y.global&&(g+="g"),y.ignoreCase&&(g+="i"),y.multiline&&(g+="m"),y.dotAll&&(g+="s"),y.unicode&&(g+="u"),y.unicodeSets&&(g+="v"),y.sticky&&(g+="y"),g}},1034:function(l,v,a){var h=a(9565),y=a(9297),g=a(1625),b=a(7979),w=RegExp.prototype;l.exports=function(E){var S=E.flags;return S!==void 0||"flags"in w||y(E,"flags")||!g(w,E)?S:h(b,E)}},8429:function(l,v,a){var h=a(9039),y=a(4475).RegExp,g=h(function(){var E=y("a","y");return E.lastIndex=2,E.exec("abcd")!==null}),b=g||h(function(){return!y("a","y").sticky}),w=g||h(function(){var E=y("^r","gy");return E.lastIndex=2,E.exec("str")!==null});l.exports={BROKEN_CARET:w,MISSED_STICKY:b,UNSUPPORTED_Y:g}},3635:function(l,v,a){var h=a(9039),y=a(4475).RegExp;l.exports=h(function(){var g=y(".","s");return!(g.dotAll&&g.test(`
134
134
  `)&&g.flags==="s")})},8814:function(l,v,a){var h=a(9039),y=a(4475).RegExp;l.exports=h(function(){var g=y("(?<a>b)","g");return g.exec("b").groups.a!=="b"||"b".replace(g,"$<a>c")!=="bc"})},7750:function(l,v,a){var h=a(4117),y=TypeError;l.exports=function(g){if(h(g))throw new y("Can't call method on "+g);return g}},7633:function(l,v,a){var h=a(7751),y=a(2106),g=a(8227),b=a(3724),w=g("species");l.exports=function(E){var S=h(E);b&&S&&!S[w]&&y(S,w,{configurable:!0,get:function(){return this}})}},687:function(l,v,a){var h=a(4913).f,y=a(9297),g=a(8227)("toStringTag");l.exports=function(b,w,E){b&&!E&&(b=b.prototype),b&&!y(b,g)&&h(b,g,{configurable:!0,value:w})}},6119:function(l,v,a){var h=a(5745),y=a(3392),g=h("keys");l.exports=function(b){return g[b]||(g[b]=y(b))}},7629:function(l,v,a){var h=a(6395),y=a(4475),g=a(9433),b="__core-js_shared__",w=l.exports=y[b]||g(b,{});(w.versions||(w.versions=[])).push({version:"3.37.1",mode:h?"pure":"global",copyright:"© 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"})},5745:function(l,v,a){var h=a(7629);l.exports=function(y,g){return h[y]||(h[y]=g||{})}},2293:function(l,v,a){var h=a(8551),y=a(5548),g=a(4117),b=a(8227)("species");l.exports=function(w,E){var S,A=h(w).constructor;return A===void 0||g(S=h(A)[b])?E:y(S)}},8183:function(l,v,a){var h=a(9504),y=a(1291),g=a(655),b=a(7750),w=h("".charAt),E=h("".charCodeAt),S=h("".slice),A=function(T){return function(O,M){var D,F,V=g(b(O)),G=y(M),U=V.length;return G<0||G>=U?T?"":void 0:(D=E(V,G))<55296||D>56319||G+1===U||(F=E(V,G+1))<56320||F>57343?T?w(V,G):D:T?S(V,G,G+2):F-56320+(D-55296<<10)+65536}};l.exports={codeAt:A(!1),charAt:A(!0)}},706:function(l,v,a){var h=a(350).PROPER,y=a(9039),g=a(7452);l.exports=function(b){return y(function(){return!!g[b]()||"​…᠎"[b]()!=="​…᠎"||h&&g[b].name!==b})}},3802:function(l,v,a){var h=a(9504),y=a(7750),g=a(655),b=a(7452),w=h("".replace),E=RegExp("^["+b+"]+"),S=RegExp("(^|[^"+b+"])["+b+"]+$"),A=function(T){return function(O){var M=g(y(O));return 1&T&&(M=w(M,E,"")),2&T&&(M=w(M,S,"$1")),M}};l.exports={start:A(1),end:A(2),trim:A(3)}},4495:function(l,v,a){var h=a(7388),y=a(9039),g=a(4475).String;l.exports=!!Object.getOwnPropertySymbols&&!y(function(){var b=Symbol("symbol detection");return!g(b)||!(Object(b)instanceof Symbol)||!Symbol.sham&&h&&h<41})},8242:function(l,v,a){var h=a(9565),y=a(7751),g=a(8227),b=a(6840);l.exports=function(){var w=y("Symbol"),E=w&&w.prototype,S=E&&E.valueOf,A=g("toPrimitive");E&&!E[A]&&b(E,A,function(T){return h(S,this)},{arity:1})}},1296:function(l,v,a){var h=a(4495);l.exports=h&&!!Symbol.for&&!!Symbol.keyFor},1240:function(l,v,a){var h=a(9504);l.exports=h(1 .valueOf)},5610:function(l,v,a){var h=a(1291),y=Math.max,g=Math.min;l.exports=function(b,w){var E=h(b);return E<0?y(E+w,0):g(E,w)}},5397:function(l,v,a){var h=a(7055),y=a(7750);l.exports=function(g){return h(y(g))}},1291:function(l,v,a){var h=a(741);l.exports=function(y){var g=+y;return g!=g||g===0?0:h(g)}},8014:function(l,v,a){var h=a(1291),y=Math.min;l.exports=function(g){var b=h(g);return b>0?y(b,9007199254740991):0}},8981:function(l,v,a){var h=a(7750),y=Object;l.exports=function(g){return y(h(g))}},2777:function(l,v,a){var h=a(9565),y=a(34),g=a(757),b=a(5966),w=a(4270),E=a(8227),S=TypeError,A=E("toPrimitive");l.exports=function(T,O){if(!y(T)||g(T))return T;var M,D=b(T,A);if(D){if(O===void 0&&(O="default"),M=h(D,T,O),!y(M)||g(M))return M;throw new S("Can't convert object to primitive value")}return O===void 0&&(O="number"),w(T,O)}},6969:function(l,v,a){var h=a(2777),y=a(757);l.exports=function(g){var b=h(g,"string");return y(b)?b:b+""}},2140:function(l,v,a){var h={};h[a(8227)("toStringTag")]="z",l.exports=String(h)==="[object z]"},655:function(l,v,a){var h=a(6955),y=String;l.exports=function(g){if(h(g)==="Symbol")throw new TypeError("Cannot convert a Symbol value to a string");return y(g)}},6823:function(l){var v=String;l.exports=function(a){try{return v(a)}catch{return"Object"}}},3392:function(l,v,a){var h=a(9504),y=0,g=Math.random(),b=h(1 .toString);l.exports=function(w){return"Symbol("+(w===void 0?"":w)+")_"+b(++y+g,36)}},7040:function(l,v,a){var h=a(4495);l.exports=h&&!Symbol.sham&&typeof Symbol.iterator=="symbol"},8686:function(l,v,a){var h=a(3724),y=a(9039);l.exports=h&&y(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42})},8622:function(l,v,a){var h=a(4475),y=a(4901),g=h.WeakMap;l.exports=y(g)&&/native code/.test(String(g))},511:function(l,v,a){var h=a(9167),y=a(9297),g=a(1951),b=a(4913).f;l.exports=function(w){var E=h.Symbol||(h.Symbol={});y(E,w)||b(E,w,{value:g.f(w)})}},1951:function(l,v,a){var h=a(8227);v.f=h},8227:function(l,v,a){var h=a(4475),y=a(5745),g=a(9297),b=a(3392),w=a(4495),E=a(7040),S=h.Symbol,A=y("wks"),T=E?S.for||S:S&&S.withoutSetter||b;l.exports=function(O){return g(A,O)||(A[O]=w&&g(S,O)?S[O]:T("Symbol."+O)),A[O]}},7452:function(l){l.exports=`
135
- \v\f\r                 \u2028\u2029\uFEFF`},8706:function(l,v,a){var h=a(6518),y=a(9039),g=a(4376),b=a(34),w=a(8981),E=a(6198),S=a(6837),A=a(4659),T=a(1469),O=a(597),M=a(8227),D=a(7388),F=M("isConcatSpreadable"),V=D>=51||!y(function(){var U=[];return U[F]=!1,U.concat()[0]!==U}),G=function(U){if(!b(U))return!1;var N=U[F];return N!==void 0?!!N:g(U)};h({target:"Array",proto:!0,arity:1,forced:!V||!O("concat")},{concat:function(U){var N,L,Y,z,ee,te=w(this),re=T(te,0),he=0;for(N=-1,Y=arguments.length;N<Y;N++)if(G(ee=N===-1?te:arguments[N]))for(z=E(ee),S(he+z),L=0;L<z;L++,he++)L in ee&&A(re,he,ee[L]);else S(he+1),A(re,he++,ee);return re.length=he,re}})},2008:function(l,v,a){var h=a(6518),y=a(9213).filter;h({target:"Array",proto:!0,forced:!a(597)("filter")},{filter:function(g){return y(this,g,arguments.length>1?arguments[1]:void 0)}})},3418:function(l,v,a){var h=a(6518),y=a(7916);h({target:"Array",stat:!0,forced:!a(4428)(function(g){Array.from(g)})},{from:y})},4423:function(l,v,a){var h=a(6518),y=a(9617).includes,g=a(9039),b=a(6469);h({target:"Array",proto:!0,forced:g(function(){return!Array(1).includes()})},{includes:function(w){return y(this,w,arguments.length>1?arguments[1]:void 0)}}),b("includes")},5276:function(l,v,a){var h=a(6518),y=a(7476),g=a(9617).indexOf,b=a(4598),w=y([].indexOf),E=!!w&&1/w([1],1,-0)<0;h({target:"Array",proto:!0,forced:E||!b("indexOf")},{indexOf:function(S){var A=arguments.length>1?arguments[1]:void 0;return E?w(this,S,A)||0:g(this,S,A)}})},3792:function(l,v,a){var h=a(5397),y=a(6469),g=a(6269),b=a(1181),w=a(4913).f,E=a(1088),S=a(2529),A=a(6395),T=a(3724),O="Array Iterator",M=b.set,D=b.getterFor(O);l.exports=E(Array,"Array",function(V,G){M(this,{type:O,target:h(V),index:0,kind:G})},function(){var V=D(this),G=V.target,U=V.index++;if(!G||U>=G.length)return V.target=void 0,S(void 0,!0);switch(V.kind){case"keys":return S(U,!1);case"values":return S(G[U],!1)}return S([U,G[U]],!1)},"values");var F=g.Arguments=g.Array;if(y("keys"),y("values"),y("entries"),!A&&T&&F.name!=="values")try{w(F,"name",{value:"values"})}catch{}},8598:function(l,v,a){var h=a(6518),y=a(9504),g=a(7055),b=a(5397),w=a(4598),E=y([].join);h({target:"Array",proto:!0,forced:g!==Object||!w("join",",")},{join:function(S){return E(b(this),S===void 0?",":S)}})},2062:function(l,v,a){var h=a(6518),y=a(9213).map;h({target:"Array",proto:!0,forced:!a(597)("map")},{map:function(g){return y(this,g,arguments.length>1?arguments[1]:void 0)}})},2712:function(l,v,a){var h=a(6518),y=a(926).left,g=a(4598),b=a(7388);h({target:"Array",proto:!0,forced:!a(9088)&&b>79&&b<83||!g("reduce")},{reduce:function(w){var E=arguments.length;return y(this,w,E,E>1?arguments[1]:void 0)}})},4782:function(l,v,a){var h=a(6518),y=a(4376),g=a(3517),b=a(34),w=a(5610),E=a(6198),S=a(5397),A=a(4659),T=a(8227),O=a(597),M=a(7680),D=O("slice"),F=T("species"),V=Array,G=Math.max;h({target:"Array",proto:!0,forced:!D},{slice:function(U,N){var L,Y,z,ee=S(this),te=E(ee),re=w(U,te),he=w(N===void 0?te:N,te);if(y(ee)&&(L=ee.constructor,(g(L)&&(L===V||y(L.prototype))||b(L)&&(L=L[F])===null)&&(L=void 0),L===V||L===void 0))return M(ee,re,he);for(Y=new(L===void 0?V:L)(G(he-re,0)),z=0;re<he;re++,z++)re in ee&&A(Y,z,ee[re]);return Y.length=z,Y}})},6910:function(l,v,a){var h=a(6518),y=a(9504),g=a(9306),b=a(8981),w=a(6198),E=a(4606),S=a(655),A=a(9039),T=a(4488),O=a(4598),M=a(8834),D=a(3202),F=a(7388),V=a(9160),G=[],U=y(G.sort),N=y(G.push),L=A(function(){G.sort(void 0)}),Y=A(function(){G.sort(null)}),z=O("sort"),ee=!A(function(){if(F)return F<70;if(!(M&&M>3)){if(D)return!0;if(V)return V<603;var te,re,he,ue,ye="";for(te=65;te<76;te++){switch(re=String.fromCharCode(te),te){case 66:case 69:case 70:case 72:he=3;break;case 68:case 71:he=4;break;default:he=2}for(ue=0;ue<47;ue++)G.push({k:re+ue,v:he})}for(G.sort(function(pe,q){return q.v-pe.v}),ue=0;ue<G.length;ue++)re=G[ue].k.charAt(0),ye.charAt(ye.length-1)!==re&&(ye+=re);return ye!=="DGBEFHACIJK"}});h({target:"Array",proto:!0,forced:L||!Y||!z||!ee},{sort:function(te){te!==void 0&&g(te);var re=b(this);if(ee)return te===void 0?U(re):U(re,te);var he,ue,ye=[],pe=w(re);for(ue=0;ue<pe;ue++)ue in re&&N(ye,re[ue]);for(T(ye,function(q){return function($,Q){return Q===void 0?-1:$===void 0?1:q!==void 0?+q($,Q)||0:S($)>S(Q)?1:-1}}(te)),he=w(ye),ue=0;ue<he;)re[ue]=ye[ue++];for(;ue<pe;)E(re,ue++);return re}})},4554:function(l,v,a){var h=a(6518),y=a(8981),g=a(5610),b=a(1291),w=a(6198),E=a(4527),S=a(6837),A=a(1469),T=a(4659),O=a(4606),M=a(597)("splice"),D=Math.max,F=Math.min;h({target:"Array",proto:!0,forced:!M},{splice:function(V,G){var U,N,L,Y,z,ee,te=y(this),re=w(te),he=g(V,re),ue=arguments.length;for(ue===0?U=N=0:ue===1?(U=0,N=re-he):(U=ue-2,N=F(D(b(G),0),re-he)),S(re+U-N),L=A(te,N),Y=0;Y<N;Y++)(z=he+Y)in te&&T(L,Y,te[z]);if(L.length=N,U<N){for(Y=he;Y<re-N;Y++)ee=Y+U,(z=Y+N)in te?te[ee]=te[z]:O(te,ee);for(Y=re;Y>re-N+U;Y--)O(te,Y-1)}else if(U>N)for(Y=re-N;Y>he;Y--)ee=Y+U-1,(z=Y+N-1)in te?te[ee]=te[z]:O(te,ee);for(Y=0;Y<U;Y++)te[Y+he]=arguments[Y+2];return E(te,re-N+U),L}})},739:function(l,v,a){var h=a(6518),y=a(9039),g=a(8981),b=a(2777);h({target:"Date",proto:!0,arity:1,forced:y(function(){return new Date(NaN).toJSON()!==null||Date.prototype.toJSON.call({toISOString:function(){return 1}})!==1})},{toJSON:function(w){var E=g(this),S=b(E,"number");return typeof S!="number"||isFinite(S)?E.toISOString():null}})},9572:function(l,v,a){var h=a(9297),y=a(6840),g=a(3640),b=a(8227)("toPrimitive"),w=Date.prototype;h(w,b)||y(w,b,g)},2010:function(l,v,a){var h=a(3724),y=a(350).EXISTS,g=a(9504),b=a(2106),w=Function.prototype,E=g(w.toString),S=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,A=g(S.exec);h&&!y&&b(w,"name",{configurable:!0,get:function(){try{return A(S,E(this))[1]}catch{return""}}})},3110:function(l,v,a){var h=a(6518),y=a(7751),g=a(8745),b=a(9565),w=a(9504),E=a(9039),S=a(4901),A=a(757),T=a(7680),O=a(6933),M=a(4495),D=String,F=y("JSON","stringify"),V=w(/./.exec),G=w("".charAt),U=w("".charCodeAt),N=w("".replace),L=w(1 .toString),Y=/[\uD800-\uDFFF]/g,z=/^[\uD800-\uDBFF]$/,ee=/^[\uDC00-\uDFFF]$/,te=!M||E(function(){var ye=y("Symbol")("stringify detection");return F([ye])!=="[null]"||F({a:ye})!=="{}"||F(Object(ye))!=="{}"}),re=E(function(){return F("\uDF06\uD834")!=='"\\udf06\\ud834"'||F("\uDEAD")!=='"\\udead"'}),he=function(ye,pe){var q=T(arguments),$=O(pe);if(S($)||ye!==void 0&&!A(ye))return q[1]=function(Q,_){if(S($)&&(_=b($,this,D(Q),_)),!A(_))return _},g(F,null,q)},ue=function(ye,pe,q){var $=G(q,pe-1),Q=G(q,pe+1);return V(z,ye)&&!V(ee,Q)||V(ee,ye)&&!V(z,$)?"\\u"+L(U(ye,0),16):ye};F&&h({target:"JSON",stat:!0,arity:3,forced:te||re},{stringify:function(ye,pe,q){var $=T(arguments),Q=g(te?he:F,null,$);return re&&typeof Q=="string"?N(Q,Y,ue):Q}})},2892:function(l,v,a){var h=a(6518),y=a(6395),g=a(3724),b=a(4475),w=a(9167),E=a(9504),S=a(2796),A=a(9297),T=a(3167),O=a(1625),M=a(757),D=a(2777),F=a(9039),V=a(8480).f,G=a(7347).f,U=a(4913).f,N=a(1240),L=a(3802).trim,Y="Number",z=b[Y],ee=w[Y],te=z.prototype,re=b.TypeError,he=E("".slice),ue=E("".charCodeAt),ye=function(Q){var _,j,B,R,X,J,Z,W,fe=D(Q,"number");if(M(fe))throw new re("Cannot convert a Symbol value to a number");if(typeof fe=="string"&&fe.length>2){if(fe=L(fe),(_=ue(fe,0))===43||_===45){if((j=ue(fe,2))===88||j===120)return NaN}else if(_===48){switch(ue(fe,1)){case 66:case 98:B=2,R=49;break;case 79:case 111:B=8,R=55;break;default:return+fe}for(J=(X=he(fe,2)).length,Z=0;Z<J;Z++)if((W=ue(X,Z))<48||W>R)return NaN;return parseInt(X,B)}}return+fe},pe=S(Y,!z(" 0o1")||!z("0b1")||z("+0x1")),q=function(Q){var _,j=arguments.length<1?0:z(function(B){var R=D(B,"number");return typeof R=="bigint"?R:ye(R)}(Q));return O(te,_=this)&&F(function(){N(_)})?T(Object(j),this,q):j};q.prototype=te,pe&&!y&&(te.constructor=q),h({global:!0,constructor:!0,wrap:!0,forced:pe},{Number:q});var $=function(Q,_){for(var j,B=g?V(_):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),R=0;B.length>R;R++)A(_,j=B[R])&&!A(Q,j)&&U(Q,j,G(_,j))};y&&ee&&$(w[Y],ee),(pe||y)&&$(w[Y],z)},2637:function(l,v,a){a(6518)({target:"Number",stat:!0},{isInteger:a(2087)})},9085:function(l,v,a){var h=a(6518),y=a(4213);h({target:"Object",stat:!0,arity:2,forced:Object.assign!==y},{assign:y})},7427:function(l,v,a){var h=a(6518),y=a(3724),g=a(2551),b=a(9306),w=a(8981),E=a(4913);y&&h({target:"Object",proto:!0,forced:g},{__defineGetter__:function(S,A){E.f(w(this),S,{get:b(A),enumerable:!0,configurable:!0})}})},3851:function(l,v,a){var h=a(6518),y=a(9039),g=a(5397),b=a(7347).f,w=a(3724);h({target:"Object",stat:!0,forced:!w||y(function(){b(1)}),sham:!w},{getOwnPropertyDescriptor:function(E,S){return b(g(E),S)}})},1278:function(l,v,a){var h=a(6518),y=a(3724),g=a(5031),b=a(5397),w=a(7347),E=a(4659);h({target:"Object",stat:!0,sham:!y},{getOwnPropertyDescriptors:function(S){for(var A,T,O=b(S),M=w.f,D=g(O),F={},V=0;D.length>V;)(T=M(O,A=D[V++]))!==void 0&&E(F,A,T);return F}})},1480:function(l,v,a){var h=a(6518),y=a(9039),g=a(298).f;h({target:"Object",stat:!0,forced:y(function(){return!Object.getOwnPropertyNames(1)})},{getOwnPropertyNames:g})},9773:function(l,v,a){var h=a(6518),y=a(4495),g=a(9039),b=a(3717),w=a(8981);h({target:"Object",stat:!0,forced:!y||g(function(){b.f(1)})},{getOwnPropertySymbols:function(E){var S=b.f;return S?S(w(E)):[]}})},9432:function(l,v,a){var h=a(6518),y=a(8981),g=a(1072);h({target:"Object",stat:!0,forced:a(9039)(function(){g(1)})},{keys:function(b){return g(y(b))}})},6099:function(l,v,a){var h=a(2140),y=a(6840),g=a(3179);h||y(Object.prototype,"toString",g,{unsafe:!0})},4864:function(l,v,a){var h=a(3724),y=a(4475),g=a(9504),b=a(2796),w=a(3167),E=a(6699),S=a(2360),A=a(8480).f,T=a(1625),O=a(788),M=a(655),D=a(1034),F=a(8429),V=a(1056),G=a(6840),U=a(9039),N=a(9297),L=a(1181).enforce,Y=a(7633),z=a(8227),ee=a(3635),te=a(8814),re=z("match"),he=y.RegExp,ue=he.prototype,ye=y.SyntaxError,pe=g(ue.exec),q=g("".charAt),$=g("".replace),Q=g("".indexOf),_=g("".slice),j=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,B=/a/g,R=/a/g,X=new he(B)!==B,J=F.MISSED_STICKY,Z=F.UNSUPPORTED_Y;if(b("RegExp",h&&(!X||J||ee||te||U(function(){return R[re]=!1,he(B)!==B||he(R)===R||String(he(B,"i"))!=="/a/i"})))){for(var W=function(le,ie){var be,ae,Ce,_e,ze,it,yt=T(ue,this),ht=O(le),Zn=ie===void 0,lt=[],Xt=le;if(!yt&&ht&&Zn&&le.constructor===W)return le;if((ht||T(ue,le))&&(le=le.source,Zn&&(ie=D(Xt))),le=le===void 0?"":M(le),ie=ie===void 0?"":M(ie),Xt=le,ee&&"dotAll"in B&&(ae=!!ie&&Q(ie,"s")>-1)&&(ie=$(ie,/s/g,"")),be=ie,J&&"sticky"in B&&(Ce=!!ie&&Q(ie,"y")>-1)&&Z&&(ie=$(ie,/y/g,"")),te&&(_e=function(pt){for(var Oe,an=pt.length,Mt=0,dn="",en=[],fn=S(null),On=!1,qn=!1,Sn=0,hn="";Mt<=an;Mt++){if((Oe=q(pt,Mt))==="\\")Oe+=q(pt,++Mt);else if(Oe==="]")On=!1;else if(!On)switch(!0){case Oe==="[":On=!0;break;case Oe==="(":pe(j,_(pt,Mt+1))&&(Mt+=2,qn=!0),dn+=Oe,Sn++;continue;case(Oe===">"&&qn):if(hn===""||N(fn,hn))throw new ye("Invalid capture group name");fn[hn]=!0,en[en.length]=[hn,Sn],qn=!1,hn="";continue}qn?hn+=Oe:dn+=Oe}return[dn,en]}(le),le=_e[0],lt=_e[1]),ze=w(he(le,ie),yt?this:ue,W),(ae||Ce||lt.length)&&(it=L(ze),ae&&(it.dotAll=!0,it.raw=W(function(pt){for(var Oe,an=pt.length,Mt=0,dn="",en=!1;Mt<=an;Mt++)(Oe=q(pt,Mt))!=="\\"?en||Oe!=="."?(Oe==="["?en=!0:Oe==="]"&&(en=!1),dn+=Oe):dn+="[\\s\\S]":dn+=Oe+q(pt,++Mt);return dn}(le),be)),Ce&&(it.sticky=!0),lt.length&&(it.groups=lt)),le!==Xt)try{E(ze,"source",Xt===""?"(?:)":Xt)}catch{}return ze},fe=A(he),ge=0;fe.length>ge;)V(W,he,fe[ge++]);ue.constructor=W,W.prototype=ue,G(y,"RegExp",W,{constructor:!0})}Y("RegExp")},7495:function(l,v,a){var h=a(6518),y=a(7323);h({target:"RegExp",proto:!0,forced:/./.exec!==y},{exec:y})},8781:function(l,v,a){var h=a(350).PROPER,y=a(6840),g=a(8551),b=a(655),w=a(9039),E=a(1034),S="toString",A=RegExp.prototype,T=A[S],O=w(function(){return T.call({source:"a",flags:"b"})!=="/a/b"}),M=h&&T.name!==S;(O||M)&&y(A,S,function(){var D=g(this);return"/"+b(D.source)+"/"+b(E(D))},{unsafe:!0})},1699:function(l,v,a){var h=a(6518),y=a(9504),g=a(5749),b=a(7750),w=a(655),E=a(1436),S=y("".indexOf);h({target:"String",proto:!0,forced:!E("includes")},{includes:function(A){return!!~S(w(b(this)),w(g(A)),arguments.length>1?arguments[1]:void 0)}})},7764:function(l,v,a){var h=a(8183).charAt,y=a(655),g=a(1181),b=a(1088),w=a(2529),E="String Iterator",S=g.set,A=g.getterFor(E);b(String,"String",function(T){S(this,{type:E,string:y(T),index:0})},function(){var T,O=A(this),M=O.string,D=O.index;return D>=M.length?w(void 0,!0):(T=h(M,D),O.index+=T.length,w(T,!1))})},8543:function(l,v,a){var h=a(6518),y=a(9565),g=a(7476),b=a(3994),w=a(2529),E=a(7750),S=a(8014),A=a(655),T=a(8551),O=a(4117),M=a(4576),D=a(788),F=a(1034),V=a(5966),G=a(6840),U=a(9039),N=a(8227),L=a(2293),Y=a(7829),z=a(6682),ee=a(1181),te=a(6395),re=N("matchAll"),he="RegExp String",ue=he+" Iterator",ye=ee.set,pe=ee.getterFor(ue),q=RegExp.prototype,$=TypeError,Q=g("".indexOf),_=g("".matchAll),j=!!_&&!U(function(){_("a",/./)}),B=b(function(X,J,Z,W){ye(this,{type:ue,regexp:X,string:J,global:Z,unicode:W,done:!1})},he,function(){var X=pe(this);if(X.done)return w(void 0,!0);var J=X.regexp,Z=X.string,W=z(J,Z);return W===null?(X.done=!0,w(void 0,!0)):X.global?(A(W[0])===""&&(J.lastIndex=Y(Z,S(J.lastIndex),X.unicode)),w(W,!1)):(X.done=!0,w(W,!1))}),R=function(X){var J,Z,W,fe=T(this),ge=A(X),le=L(fe,RegExp),ie=A(F(fe));return J=new le(le===RegExp?fe.source:fe,ie),Z=!!~Q(ie,"g"),W=!!~Q(ie,"u"),J.lastIndex=S(fe.lastIndex),new B(J,ge,Z,W)};h({target:"String",proto:!0,forced:j},{matchAll:function(X){var J,Z,W,fe,ge=E(this);if(O(X)){if(j)return _(ge,X)}else{if(D(X)&&(J=A(E(F(X))),!~Q(J,"g")))throw new $("`.matchAll` does not allow non-global regexes");if(j)return _(ge,X);if((W=V(X,re))===void 0&&te&&M(X)==="RegExp"&&(W=R),W)return y(W,X,ge)}return Z=A(ge),fe=new RegExp(X,"g"),te?y(R,fe,Z):fe[re](Z)}}),te||re in q||G(q,re,R)},1761:function(l,v,a){var h=a(9565),y=a(9228),g=a(8551),b=a(4117),w=a(8014),E=a(655),S=a(7750),A=a(5966),T=a(7829),O=a(6682);y("match",function(M,D,F){return[function(V){var G=S(this),U=b(V)?void 0:A(V,M);return U?h(U,V,G):new RegExp(V)[M](E(G))},function(V){var G=g(this),U=E(V),N=F(D,G,U);if(N.done)return N.value;if(!G.global)return O(G,U);var L=G.unicode;G.lastIndex=0;for(var Y,z=[],ee=0;(Y=O(G,U))!==null;){var te=E(Y[0]);z[ee]=te,te===""&&(G.lastIndex=T(U,w(G.lastIndex),L)),ee++}return ee===0?null:z}]})},5440:function(l,v,a){var h=a(8745),y=a(9565),g=a(9504),b=a(9228),w=a(9039),E=a(8551),S=a(4901),A=a(4117),T=a(1291),O=a(8014),M=a(655),D=a(7750),F=a(7829),V=a(5966),G=a(2478),U=a(6682),N=a(8227)("replace"),L=Math.max,Y=Math.min,z=g([].concat),ee=g([].push),te=g("".indexOf),re=g("".slice),he="a".replace(/./,"$0")==="$0",ue=!!/./[N]&&/./[N]("a","$0")==="";b("replace",function(ye,pe,q){var $=ue?"$":"$0";return[function(Q,_){var j=D(this),B=A(Q)?void 0:V(Q,N);return B?y(B,Q,j,_):y(pe,M(j),Q,_)},function(Q,_){var j=E(this),B=M(Q);if(typeof _=="string"&&te(_,$)===-1&&te(_,"$<")===-1){var R=q(pe,j,B,_);if(R.done)return R.value}var X=S(_);X||(_=M(_));var J,Z=j.global;Z&&(J=j.unicode,j.lastIndex=0);for(var W,fe=[];(W=U(j,B))!==null&&(ee(fe,W),Z);)M(W[0])===""&&(j.lastIndex=F(B,O(j.lastIndex),J));for(var ge,le="",ie=0,be=0;be<fe.length;be++){for(var ae,Ce=M((W=fe[be])[0]),_e=L(Y(T(W.index),B.length),0),ze=[],it=1;it<W.length;it++)ee(ze,(ge=W[it])===void 0?ge:String(ge));var yt=W.groups;if(X){var ht=z([Ce],ze,_e,B);yt!==void 0&&ee(ht,yt),ae=M(h(_,void 0,ht))}else ae=G(Ce,B,_e,ze,yt,_);_e>=ie&&(le+=re(B,ie,_e)+ae,ie=_e+Ce.length)}return le+re(B,ie)}]},!!w(function(){var ye=/./;return ye.exec=function(){var pe=[];return pe.groups={a:"7"},pe},"".replace(ye,"$<a>")!=="7"})||!he||ue)},744:function(l,v,a){var h=a(9565),y=a(9504),g=a(9228),b=a(8551),w=a(4117),E=a(7750),S=a(2293),A=a(7829),T=a(8014),O=a(655),M=a(5966),D=a(6682),F=a(8429),V=a(9039),G=F.UNSUPPORTED_Y,U=Math.min,N=y([].push),L=y("".slice),Y=!V(function(){var ee=/(?:)/,te=ee.exec;ee.exec=function(){return te.apply(this,arguments)};var re="ab".split(ee);return re.length!==2||re[0]!=="a"||re[1]!=="b"}),z="abbc".split(/(b)*/)[1]==="c"||"test".split(/(?:)/,-1).length!==4||"ab".split(/(?:ab)*/).length!==2||".".split(/(.?)(.?)/).length!==4||".".split(/()()/).length>1||"".split(/.?/).length;g("split",function(ee,te,re){var he="0".split(void 0,0).length?function(ue,ye){return ue===void 0&&ye===0?[]:h(te,this,ue,ye)}:te;return[function(ue,ye){var pe=E(this),q=w(ue)?void 0:M(ue,ee);return q?h(q,ue,pe,ye):h(he,O(pe),ue,ye)},function(ue,ye){var pe=b(this),q=O(ue);if(!z){var $=re(he,pe,q,ye,he!==te);if($.done)return $.value}var Q=S(pe,RegExp),_=pe.unicode,j=(pe.ignoreCase?"i":"")+(pe.multiline?"m":"")+(pe.unicode?"u":"")+(G?"g":"y"),B=new Q(G?"^(?:"+pe.source+")":pe,j),R=ye===void 0?4294967295:ye>>>0;if(R===0)return[];if(q.length===0)return D(B,q)===null?[q]:[];for(var X=0,J=0,Z=[];J<q.length;){B.lastIndex=G?0:J;var W,fe=D(B,G?L(q,J):q);if(fe===null||(W=U(T(B.lastIndex+(G?J:0)),q.length))===X)J=A(q,J,_);else{if(N(Z,L(q,X,J)),Z.length===R)return Z;for(var ge=1;ge<=fe.length-1;ge++)if(N(Z,fe[ge]),Z.length===R)return Z;J=X=W}}return N(Z,L(q,X)),Z}]},z||!Y,G)},2762:function(l,v,a){var h=a(6518),y=a(3802).trim;h({target:"String",proto:!0,forced:a(706)("trim")},{trim:function(){return y(this)}})},6761:function(l,v,a){var h=a(6518),y=a(4475),g=a(9565),b=a(9504),w=a(6395),E=a(3724),S=a(4495),A=a(9039),T=a(9297),O=a(1625),M=a(8551),D=a(5397),F=a(6969),V=a(655),G=a(6980),U=a(2360),N=a(1072),L=a(8480),Y=a(298),z=a(3717),ee=a(7347),te=a(4913),re=a(6801),he=a(8773),ue=a(6840),ye=a(2106),pe=a(5745),q=a(6119),$=a(421),Q=a(3392),_=a(8227),j=a(1951),B=a(511),R=a(8242),X=a(687),J=a(1181),Z=a(9213).forEach,W=q("hidden"),fe="Symbol",ge="prototype",le=J.set,ie=J.getterFor(fe),be=Object[ge],ae=y.Symbol,Ce=ae&&ae[ge],_e=y.RangeError,ze=y.TypeError,it=y.QObject,yt=ee.f,ht=te.f,Zn=Y.f,lt=he.f,Xt=b([].push),pt=pe("symbols"),Oe=pe("op-symbols"),an=pe("wks"),Mt=!it||!it[ge]||!it[ge].findChild,dn=function(Ae,Qe,De){var Ye=yt(be,Qe);Ye&&delete be[Qe],ht(Ae,Qe,De),Ye&&Ae!==be&&ht(be,Qe,Ye)},en=E&&A(function(){return U(ht({},"a",{get:function(){return ht(this,"a",{value:7}).a}})).a!==7})?dn:ht,fn=function(Ae,Qe){var De=pt[Ae]=U(Ce);return le(De,{type:fe,tag:Ae,description:Qe}),E||(De.description=Qe),De},On=function(Ae,Qe,De){Ae===be&&On(Oe,Qe,De),M(Ae);var Ye=F(Qe);return M(De),T(pt,Ye)?(De.enumerable?(T(Ae,W)&&Ae[W][Ye]&&(Ae[W][Ye]=!1),De=U(De,{enumerable:G(0,!1)})):(T(Ae,W)||ht(Ae,W,G(1,U(null))),Ae[W][Ye]=!0),en(Ae,Ye,De)):ht(Ae,Ye,De)},qn=function(Ae,Qe){M(Ae);var De=D(Qe),Ye=N(De).concat(Xn(De));return Z(Ye,function(Tt){E&&!g(Sn,De,Tt)||On(Ae,Tt,De[Tt])}),Ae},Sn=function(Ae){var Qe=F(Ae),De=g(lt,this,Qe);return!(this===be&&T(pt,Qe)&&!T(Oe,Qe))&&(!(De||!T(this,Qe)||!T(pt,Qe)||T(this,W)&&this[W][Qe])||De)},hn=function(Ae,Qe){var De=D(Ae),Ye=F(Qe);if(De!==be||!T(pt,Ye)||T(Oe,Ye)){var Tt=yt(De,Ye);return!Tt||!T(pt,Ye)||T(De,W)&&De[W][Ye]||(Tt.enumerable=!0),Tt}},xt=function(Ae){var Qe=Zn(D(Ae)),De=[];return Z(Qe,function(Ye){T(pt,Ye)||T($,Ye)||Xt(De,Ye)}),De},Xn=function(Ae){var Qe=Ae===be,De=Zn(Qe?Oe:D(Ae)),Ye=[];return Z(De,function(Tt){!T(pt,Tt)||Qe&&!T(be,Tt)||Xt(Ye,pt[Tt])}),Ye};S||(ae=function(){if(O(Ce,this))throw new ze("Symbol is not a constructor");var Ae=arguments.length&&arguments[0]!==void 0?V(arguments[0]):void 0,Qe=Q(Ae),De=function(Ye){var Tt=this===void 0?y:this;Tt===be&&g(De,Oe,Ye),T(Tt,W)&&T(Tt[W],Qe)&&(Tt[W][Qe]=!1);var Ps=G(1,Ye);try{en(Tt,Qe,Ps)}catch(wi){if(!(wi instanceof _e))throw wi;dn(Tt,Qe,Ps)}};return E&&Mt&&en(be,Qe,{configurable:!0,set:De}),fn(Qe,Ae)},ue(Ce=ae[ge],"toString",function(){return ie(this).tag}),ue(ae,"withoutSetter",function(Ae){return fn(Q(Ae),Ae)}),he.f=Sn,te.f=On,re.f=qn,ee.f=hn,L.f=Y.f=xt,z.f=Xn,j.f=function(Ae){return fn(_(Ae),Ae)},E&&(ye(Ce,"description",{configurable:!0,get:function(){return ie(this).description}}),w||ue(be,"propertyIsEnumerable",Sn,{unsafe:!0}))),h({global:!0,constructor:!0,wrap:!0,forced:!S,sham:!S},{Symbol:ae}),Z(N(an),function(Ae){B(Ae)}),h({target:fe,stat:!0,forced:!S},{useSetter:function(){Mt=!0},useSimple:function(){Mt=!1}}),h({target:"Object",stat:!0,forced:!S,sham:!E},{create:function(Ae,Qe){return Qe===void 0?U(Ae):qn(U(Ae),Qe)},defineProperty:On,defineProperties:qn,getOwnPropertyDescriptor:hn}),h({target:"Object",stat:!0,forced:!S},{getOwnPropertyNames:xt}),R(),X(ae,fe),$[W]=!0},9463:function(l,v,a){var h=a(6518),y=a(3724),g=a(4475),b=a(9504),w=a(9297),E=a(4901),S=a(1625),A=a(655),T=a(2106),O=a(7740),M=g.Symbol,D=M&&M.prototype;if(y&&E(M)&&(!("description"in D)||M().description!==void 0)){var F={},V=function(){var ee=arguments.length<1||arguments[0]===void 0?void 0:A(arguments[0]),te=S(D,this)?new M(ee):ee===void 0?M():M(ee);return ee===""&&(F[te]=!0),te};O(V,M),V.prototype=D,D.constructor=V;var G=String(M("description detection"))==="Symbol(description detection)",U=b(D.valueOf),N=b(D.toString),L=/^Symbol\((.*)\)[^)]+$/,Y=b("".replace),z=b("".slice);T(D,"description",{configurable:!0,get:function(){var ee=U(this);if(w(F,ee))return"";var te=N(ee),re=G?z(te,7,-1):Y(te,L,"$1");return re===""?void 0:re}}),h({global:!0,constructor:!0,forced:!0},{Symbol:V})}},1510:function(l,v,a){var h=a(6518),y=a(7751),g=a(9297),b=a(655),w=a(5745),E=a(1296),S=w("string-to-symbol-registry"),A=w("symbol-to-string-registry");h({target:"Symbol",stat:!0,forced:!E},{for:function(T){var O=b(T);if(g(S,O))return S[O];var M=y("Symbol")(O);return S[O]=M,A[M]=O,M}})},2259:function(l,v,a){a(511)("iterator")},2675:function(l,v,a){a(6761),a(1510),a(7812),a(3110),a(9773)},7812:function(l,v,a){var h=a(6518),y=a(9297),g=a(757),b=a(6823),w=a(5745),E=a(1296),S=w("symbol-to-string-registry");h({target:"Symbol",stat:!0,forced:!E},{keyFor:function(A){if(!g(A))throw new TypeError(b(A)+" is not a symbol");if(y(S,A))return S[A]}})},5700:function(l,v,a){var h=a(511),y=a(8242);h("toPrimitive"),y()},8344:function(l,v,a){a(8543)},3500:function(l,v,a){var h=a(4475),y=a(7400),g=a(9296),b=a(235),w=a(6699),E=function(A){if(A&&A.forEach!==b)try{w(A,"forEach",b)}catch{A.forEach=b}};for(var S in y)y[S]&&E(h[S]&&h[S].prototype);E(g)},2953:function(l,v,a){var h=a(4475),y=a(7400),g=a(9296),b=a(3792),w=a(6699),E=a(687),S=a(8227)("iterator"),A=b.values,T=function(M,D){if(M){if(M[S]!==A)try{w(M,S,A)}catch{M[S]=A}if(E(M,D,!0),y[D]){for(var F in b)if(M[F]!==b[F])try{w(M,F,b[F])}catch{M[F]=b[F]}}}};for(var O in y)T(h[O]&&h[O].prototype,O);T(g,"DOMTokenList")}},d={};function f(l){var v=d[l];if(v!==void 0)return v.exports;var a=d[l]={exports:{}};return u[l].call(a.exports,a,a.exports,f),a.exports}f.d=function(l,v){for(var a in v)f.o(v,a)&&!f.o(l,a)&&Object.defineProperty(l,a,{enumerable:!0,get:v[a]})},f.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch{if(typeof window=="object")return window}}(),f.o=function(l,v){return Object.prototype.hasOwnProperty.call(l,v)},f.r=function(l){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(l,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(l,"__esModule",{value:!0})};var p={};return function(){function l(q){return function($){if(Array.isArray($))return a($)}(q)||function($){if(typeof Symbol<"u"&&$[Symbol.iterator]!=null||$["@@iterator"]!=null)return Array.from($)}(q)||v(q)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
136
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function v(q,$){if(q){if(typeof q=="string")return a(q,$);var Q=Object.prototype.toString.call(q).slice(8,-1);return Q==="Object"&&q.constructor&&(Q=q.constructor.name),Q==="Map"||Q==="Set"?Array.from(q):Q==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Q)?a(q,$):void 0}}function a(q,$){($==null||$>q.length)&&($=q.length);for(var Q=0,_=new Array($);Q<$;Q++)_[Q]=q[Q];return _}function h(q){return h=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function($){return typeof $}:function($){return $&&typeof Symbol=="function"&&$.constructor===Symbol&&$!==Symbol.prototype?"symbol":typeof $},h(q)}function y(q,$){for(var Q=0;Q<$.length;Q++){var _=$[Q];_.enumerable=_.enumerable||!1,_.configurable=!0,"value"in _&&(_.writable=!0),Object.defineProperty(q,b(_.key),_)}}function g(q,$,Q){return($=b($))in q?Object.defineProperty(q,$,{value:Q,enumerable:!0,configurable:!0,writable:!0}):q[$]=Q,q}function b(q){var $=function(Q,_){if(h(Q)!="object"||!Q)return Q;var j=Q[Symbol.toPrimitive];if(j!==void 0){var B=j.call(Q,_||"default");if(h(B)!="object")return B;throw new TypeError("@@toPrimitive must return a primitive value.")}return(_==="string"?String:Number)(Q)}(q,"string");return h($)=="symbol"?$:$+""}f.r(p),f.d(p,{SimpleKeyboard:function(){return ye},default:function(){return pe}}),f(5276),f(8598),f(4782),f(4554),f(2010),f(7427),f(6099),f(7495),f(8781),f(5440),f(744),f(2762),typeof Element>"u"||"remove"in Element.prototype||(Element.prototype.remove=function(){this.parentNode&&this.parentNode.removeChild(this)}),typeof self<"u"&&"document"in self&&((!("classList"in document.createElement("_"))||document.createElementNS&&!("classList"in document.createElementNS("http://www.w3.org/2000/svg","g")))&&function(q){if("Element"in q){var $="classList",Q="prototype",_=q.Element[Q],j=Object,B=String[Q].trim||function(){return this.replace(/^\s+|\s+$/g,"")},R=Array[Q].indexOf||function(le){for(var ie=0,be=this.length;ie<be;ie++)if(ie in this&&this[ie]===le)return ie;return-1},X=function(le,ie){this.name=le,this.code=DOMException[le],this.message=ie},J=function(le,ie){if(ie==="")throw new X("SYNTAX_ERR","The token must not be empty.");if(/\s/.test(ie))throw new X("INVALID_CHARACTER_ERR","The token must not contain space characters.");return R.call(le,ie)},Z=function(le){for(var ie=B.call(le.getAttribute("class")||""),be=ie?ie.split(/\s+/):[],ae=0,Ce=be.length;ae<Ce;ae++)this.push(be[ae]);this._updateClassName=function(){le.setAttribute("class",this.toString())}},W=Z[Q]=[],fe=function(){return new Z(this)};if(X[Q]=Error[Q],W.item=function(le){return this[le]||null},W.contains=function(le){return~J(this,le+"")},W.add=function(){var le,ie=arguments,be=0,ae=ie.length,Ce=!1;do~J(this,le=ie[be]+"")||(this.push(le),Ce=!0);while(++be<ae);Ce&&this._updateClassName()},W.remove=function(){var le,ie,be=arguments,ae=0,Ce=be.length,_e=!1;do for(ie=J(this,le=be[ae]+"");~ie;)this.splice(ie,1),_e=!0,ie=J(this,le);while(++ae<Ce);_e&&this._updateClassName()},W.toggle=function(le,ie){var be=this.contains(le),ae=be?ie!==!0&&"remove":ie!==!1&&"add";return ae&&this[ae](le),ie===!0||ie===!1?ie:!be},W.replace=function(le,ie){var be=J(le+"");~be&&(this.splice(be,1,ie),this._updateClassName())},W.toString=function(){return this.join(" ")},j.defineProperty){var ge={get:fe,enumerable:!0,configurable:!0};try{j.defineProperty(_,$,ge)}catch(le){le.number!==void 0&&le.number!==-2146823252||(ge.enumerable=!1,j.defineProperty(_,$,ge))}}else j[Q].__defineGetter__&&_.__defineGetter__($,fe)}}(self),function(){var q=document.createElement("_");if(q.classList.add("c1","c2"),!q.classList.contains("c2")){var $=function(_){var j=DOMTokenList.prototype[_];DOMTokenList.prototype[_]=function(B){var R,X=arguments.length;for(R=0;R<X;R++)B=arguments[R],j.call(this,B)}};$("add"),$("remove")}if(q.classList.toggle("c3",!1),q.classList.contains("c3")){var Q=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(_,j){return 1 in arguments&&!this.contains(_)==!j?j:Q.call(this,_)}}"replace"in document.createElement("_").classList||(DOMTokenList.prototype.replace=function(_,j){var B=this.toString().split(" "),R=B.indexOf(_+"");~R&&(B=B.slice(R),this.remove.apply(this,B),this.add(j),this.add.apply(this,B.slice(1)))}),q=null}()),f(2675),f(9463),f(2259),f(5700),f(8706),f(2008),f(3418),f(4423),f(3792),f(2062),f(6910),f(739),f(9572),f(2892),f(9085),f(3851),f(1278),f(9432),f(4864),f(1699),f(7764),f(8344),f(3500),f(2953),f(2712),f(2637),f(1480),f(1761);var w=function(){return q=function _(j){var B=j.getOptions,R=j.getCaretPosition,X=j.getCaretPositionEnd,J=j.dispatch;(function(Z,W){if(!(Z instanceof W))throw new TypeError("Cannot call a class as a function")})(this,_),g(this,"getOptions",void 0),g(this,"getCaretPosition",void 0),g(this,"getCaretPositionEnd",void 0),g(this,"dispatch",void 0),g(this,"maxLengthReached",void 0),g(this,"isStandardButton",function(Z){return Z&&!(Z[0]==="{"&&Z[Z.length-1]==="}")}),this.getOptions=B,this.getCaretPosition=R,this.getCaretPositionEnd=X,this.dispatch=J,_.bindMethods(_,this)},$=[{key:"getButtonType",value:function(_){return _.includes("{")&&_.includes("}")&&_!=="{//}"?"functionBtn":"standardBtn"}},{key:"getButtonClass",value:function(_){var j=this.getButtonType(_),B=_.replace("{","").replace("}",""),R="";return j!=="standardBtn"&&(R=" hg-button-".concat(B)),"hg-".concat(j).concat(R)}},{key:"getDefaultDiplay",value:function(){return{"{bksp}":"backspace","{backspace}":"backspace","{enter}":"< enter","{shift}":"shift","{shiftleft}":"shift","{shiftright}":"shift","{alt}":"alt","{s}":"shift","{tab}":"tab","{lock}":"caps","{capslock}":"caps","{accept}":"Submit","{space}":" ","{//}":" ","{esc}":"esc","{escape}":"esc","{f1}":"f1","{f2}":"f2","{f3}":"f3","{f4}":"f4","{f5}":"f5","{f6}":"f6","{f7}":"f7","{f8}":"f8","{f9}":"f9","{f10}":"f10","{f11}":"f11","{f12}":"f12","{numpaddivide}":"/","{numlock}":"lock","{arrowup}":"↑","{arrowleft}":"←","{arrowdown}":"↓","{arrowright}":"→","{prtscr}":"print","{scrolllock}":"scroll","{pause}":"pause","{insert}":"ins","{home}":"home","{pageup}":"up","{delete}":"del","{forwarddelete}":"del","{end}":"end","{pagedown}":"down","{numpadmultiply}":"*","{numpadsubtract}":"-","{numpadadd}":"+","{numpadenter}":"enter","{period}":".","{numpaddecimal}":".","{numpad0}":"0","{numpad1}":"1","{numpad2}":"2","{numpad3}":"3","{numpad4}":"4","{numpad5}":"5","{numpad6}":"6","{numpad7}":"7","{numpad8}":"8","{numpad9}":"9"}}},{key:"getButtonDisplayName",value:function(_,j){return(j=arguments.length>2&&arguments[2]!==void 0&&arguments[2]?Object.assign({},this.getDefaultDiplay(),j):j||this.getDefaultDiplay())[_]||_}},{key:"getUpdatedInput",value:function(_,j,B){var R=arguments.length>3&&arguments[3]!==void 0?arguments[3]:B,X=arguments.length>4&&arguments[4]!==void 0&&arguments[4],J=this.getOptions(),Z=[B,R,X],W=j;return(_==="{bksp}"||_==="{backspace}")&&W.length>0?W=this.removeAt.apply(this,[W].concat(Z)):(_==="{delete}"||_==="{forwarddelete}")&&W.length>0?W=this.removeForwardsAt.apply(this,[W].concat(Z)):_==="{space}"?W=this.addStringAt.apply(this,[W," "].concat(Z)):_!=="{tab}"||typeof J.tabCharOnTab=="boolean"&&J.tabCharOnTab===!1?_!=="{enter}"&&_!=="{numpadenter}"||!J.newLineOnEnter?_.includes("numpad")&&Number.isInteger(Number(_[_.length-2]))?W=this.addStringAt.apply(this,[W,_[_.length-2]].concat(Z)):_==="{numpaddivide}"?W=this.addStringAt.apply(this,[W,"/"].concat(Z)):_==="{numpadmultiply}"?W=this.addStringAt.apply(this,[W,"*"].concat(Z)):_==="{numpadsubtract}"?W=this.addStringAt.apply(this,[W,"-"].concat(Z)):_==="{numpadadd}"?W=this.addStringAt.apply(this,[W,"+"].concat(Z)):_==="{numpaddecimal}"?W=this.addStringAt.apply(this,[W,"."].concat(Z)):_==="{"||_==="}"?W=this.addStringAt.apply(this,[W,_].concat(Z)):_.includes("{")||_.includes("}")||(W=this.addStringAt.apply(this,[W,_].concat(Z))):W=this.addStringAt.apply(this,[W,`
137
- `].concat(Z)):W=this.addStringAt.apply(this,[W," "].concat(Z)),J.debug&&console.log("Input will be: "+W),W}},{key:"updateCaretPos",value:function(_){var j=arguments.length>1&&arguments[1]!==void 0&&arguments[1],B=this.updateCaretPosAction(_,j);this.dispatch(function(R){R.setCaretPosition(B)})}},{key:"updateCaretPosAction",value:function(_){var j=arguments.length>1&&arguments[1]!==void 0&&arguments[1],B=this.getOptions(),R=this.getCaretPosition();return R!=null&&(j?R>0&&(R-=_):R+=_),B.debug&&console.log("Caret at:",R),R}},{key:"addStringAt",value:function(_,j){var B,R=arguments.length>2&&arguments[2]!==void 0?arguments[2]:_.length,X=arguments.length>3&&arguments[3]!==void 0?arguments[3]:_.length,J=arguments.length>4&&arguments[4]!==void 0&&arguments[4];return R||R===0?(B=[_.slice(0,R),j,_.slice(X)].join(""),this.isMaxLengthReached()||J&&this.updateCaretPos(j.length)):B=_+j,B}},{key:"removeAt",value:function(_){var j,B=arguments.length>1&&arguments[1]!==void 0?arguments[1]:_.length,R=arguments.length>2&&arguments[2]!==void 0?arguments[2]:_.length,X=arguments.length>3&&arguments[3]!==void 0&&arguments[3];if(B===0&&R===0)return _;if(B===R){var J=/([\uD800-\uDBFF][\uDC00-\uDFFF])/g;B&&B>=0?_.substring(B-2,B).match(J)?(j=_.substr(0,B-2)+_.substr(B),X&&this.updateCaretPos(2,!0)):(j=_.substr(0,B-1)+_.substr(B),X&&this.updateCaretPos(1,!0)):_.slice(-2).match(J)?(j=_.slice(0,-2),X&&this.updateCaretPos(2,!0)):(j=_.slice(0,-1),X&&this.updateCaretPos(1,!0))}else j=_.slice(0,B)+_.slice(R),X&&this.dispatch(function(Z){Z.setCaretPosition(B)});return j}},{key:"removeForwardsAt",value:function(_){var j,B=arguments.length>1&&arguments[1]!==void 0?arguments[1]:_.length,R=arguments.length>2&&arguments[2]!==void 0?arguments[2]:_.length,X=arguments.length>3&&arguments[3]!==void 0&&arguments[3];return _!=null&&_.length&&B!==null?(B===R?j=_.substring(B,B+2).match(/([\uD800-\uDBFF][\uDC00-\uDFFF])/g)?_.substr(0,B)+_.substr(B+2):_.substr(0,B)+_.substr(B+1):(j=_.slice(0,B)+_.slice(R),X&&this.dispatch(function(J){J.setCaretPosition(B)})),j):_}},{key:"handleMaxLength",value:function(_,j){var B=this.getOptions(),R=B.maxLength,X=_[B.inputName||"default"],J=j.length-1>=R;if(j.length<=X.length)return!1;if(Number.isInteger(R))return B.debug&&console.log("maxLength (num) reached:",J),J?(this.maxLengthReached=!0,!0):(this.maxLengthReached=!1,!1);if(h(R)==="object"){var Z=j.length-1>=R[B.inputName||"default"];return B.debug&&console.log("maxLength (obj) reached:",Z),Z?(this.maxLengthReached=!0,!0):(this.maxLengthReached=!1,!1)}}},{key:"isMaxLengthReached",value:function(){return!!this.maxLengthReached}},{key:"isTouchDevice",value:function(){return"ontouchstart"in window||navigator.maxTouchPoints}},{key:"pointerEventsSupported",value:function(){return!!window.PointerEvent}},{key:"camelCase",value:function(_){return _?_.toLowerCase().trim().split(/[.\-_\s]/g).reduce(function(j,B){return B.length?j+B[0].toUpperCase()+B.slice(1):j}):""}},{key:"chunkArray",value:function(_,j){return l(Array(Math.ceil(_.length/j))).map(function(B,R){return _.slice(j*R,j+j*R)})}},{key:"escapeRegex",value:function(_){return _.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}},{key:"getRtlOffset",value:function(_,j){var B=_,R=j.indexOf("‫");return R<_&&R!=-1&&B--,j.indexOf("‬")<_&&R!=-1&&B--,B<0?0:B}}],Q=[{key:"bindMethods",value:function(_,j){var B,R=function(J,Z){var W=typeof Symbol<"u"&&J[Symbol.iterator]||J["@@iterator"];if(!W){if(Array.isArray(J)||(W=v(J))||Z){W&&(J=W);var fe=0,ge=function(){};return{s:ge,n:function(){return fe>=J.length?{done:!0}:{done:!1,value:J[fe++]}},e:function(ae){throw ae},f:ge}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
138
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var le,ie=!0,be=!1;return{s:function(){W=W.call(J)},n:function(){var ae=W.next();return ie=ae.done,ae},e:function(ae){be=!0,le=ae},f:function(){try{ie||W.return==null||W.return()}finally{if(be)throw le}}}}(Object.getOwnPropertyNames(_.prototype));try{for(R.s();!(B=R.n()).done;){var X=B.value;X==="constructor"||X==="bindMethods"||(j[X]=j[X].bind(j))}}catch(J){R.e(J)}finally{R.f()}}}],$&&y(q.prototype,$),Q&&y(q,Q),Object.defineProperty(q,"prototype",{writable:!1}),q;var q,$,Q}();g(w,"noop",function(){});var E=w;function S(q){return S=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function($){return typeof $}:function($){return $&&typeof Symbol=="function"&&$.constructor===Symbol&&$!==Symbol.prototype?"symbol":typeof $},S(q)}function A(q,$){for(var Q=0;Q<$.length;Q++){var _=$[Q];_.enumerable=_.enumerable||!1,_.configurable=!0,"value"in _&&(_.writable=!0),Object.defineProperty(q,O(_.key),_)}}function T(q,$,Q){return($=O($))in q?Object.defineProperty(q,$,{value:Q,enumerable:!0,configurable:!0,writable:!0}):q[$]=Q,q}function O(q){var $=function(Q,_){if(S(Q)!="object"||!Q)return Q;var j=Q[Symbol.toPrimitive];if(j!==void 0){var B=j.call(Q,_);if(S(B)!="object")return B;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(Q)}(q,"string");return S($)=="symbol"?$:$+""}var M=function(){return q=function _(j){var B=this,R=j.dispatch,X=j.getOptions;(function(J,Z){if(!(J instanceof Z))throw new TypeError("Cannot call a class as a function")})(this,_),T(this,"getOptions",void 0),T(this,"dispatch",void 0),T(this,"isModifierKey",function(J){return J.altKey||J.ctrlKey||J.shiftKey||["Tab","CapsLock","Esc","ArrowUp","ArrowDown","ArrowLeft","ArrowRight"].includes(J.code||J.key||B.keyCodeToKey(J==null?void 0:J.keyCode))}),this.dispatch=R,this.getOptions=X,E.bindMethods(_,this)},($=[{key:"handleHighlightKeyDown",value:function(_){var j=this.getOptions();j.physicalKeyboardHighlightPreventDefault&&this.isModifierKey(_)&&(_.preventDefault(),_.stopImmediatePropagation());var B=this.getSimpleKeyboardLayoutKey(_);this.dispatch(function(R){var X,J,Z=R.getButtonElement(B),W=R.getButtonElement("{".concat(B,"}"));if(Z)X=Z,J=B;else{if(!W)return;X=W,J="{".concat(B,"}")}var fe,ge,le,ie,be=function(Ce){Ce.style.background=j.physicalKeyboardHighlightBgColor||"#dadce4",Ce.style.color=j.physicalKeyboardHighlightTextColor||"black"};if(X)if(Array.isArray(X)){if(X.forEach(function(Ce){return be(Ce)}),j.physicalKeyboardHighlightPress)if(j.physicalKeyboardHighlightPressUsePointerEvents)(fe=X[0])===null||fe===void 0||(ge=fe.onpointerdown)===null||ge===void 0||ge.call(fe,_);else if(j.physicalKeyboardHighlightPressUseClick){var ae;(ae=X[0])===null||ae===void 0||ae.click()}else R.handleButtonClicked(J,_)}else be(X),j.physicalKeyboardHighlightPress&&(j.physicalKeyboardHighlightPressUsePointerEvents?(le=X)===null||le===void 0||(ie=le.onpointerdown)===null||ie===void 0||ie.call(le,_):j.physicalKeyboardHighlightPressUseClick?X.click():R.handleButtonClicked(J,_))})}},{key:"handleHighlightKeyUp",value:function(_){var j=this.getOptions();j.physicalKeyboardHighlightPreventDefault&&this.isModifierKey(_)&&(_.preventDefault(),_.stopImmediatePropagation());var B=this.getSimpleKeyboardLayoutKey(_);this.dispatch(function(R){var X,J,Z,W=R.getButtonElement(B)||R.getButtonElement("{".concat(B,"}")),fe=function(ge){ge.removeAttribute&&ge.removeAttribute("style")};W&&(Array.isArray(W)?(W.forEach(function(ge){return fe(ge)}),j.physicalKeyboardHighlightPressUsePointerEvents&&((X=W[0])===null||X===void 0||(J=X.onpointerup)===null||J===void 0||J.call(X,_))):(fe(W),j.physicalKeyboardHighlightPressUsePointerEvents&&(W==null||(Z=W.onpointerup)===null||Z===void 0||Z.call(W,_))))})}},{key:"getSimpleKeyboardLayoutKey",value:function(_){var j,B="",R=_.code||_.key||this.keyCodeToKey(_==null?void 0:_.keyCode);return(B=R!=null&&R.includes("Numpad")||R!=null&&R.includes("Shift")||R!=null&&R.includes("Space")||R!=null&&R.includes("Backspace")||R!=null&&R.includes("Control")||R!=null&&R.includes("Alt")||R!=null&&R.includes("Meta")?_.code||"":_.key||this.keyCodeToKey(_==null?void 0:_.keyCode)||"").length>1?(j=B)===null||j===void 0?void 0:j.toLowerCase():B}},{key:"keyCodeToKey",value:function(_){return{8:"Backspace",9:"Tab",13:"Enter",16:"Shift",17:"Ctrl",18:"Alt",19:"Pause",20:"CapsLock",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",48:"0",49:"1",50:"2",51:"3",52:"4",53:"5",54:"6",55:"7",56:"8",57:"9",65:"A",66:"B",67:"C",68:"D",69:"E",70:"F",71:"G",72:"H",73:"I",74:"J",75:"K",76:"L",77:"M",78:"N",79:"O",80:"P",81:"Q",82:"R",83:"S",84:"T",85:"U",86:"V",87:"W",88:"X",89:"Y",90:"Z",91:"Meta",96:"Numpad0",97:"Numpad1",98:"Numpad2",99:"Numpad3",100:"Numpad4",101:"Numpad5",102:"Numpad6",103:"Numpad7",104:"Numpad8",105:"Numpad9",106:"NumpadMultiply",107:"NumpadAdd",109:"NumpadSubtract",110:"NumpadDecimal",111:"NumpadDivide",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"}[_]||""}}])&&A(q.prototype,$),Q&&A(q,Q),Object.defineProperty(q,"prototype",{writable:!1}),q;var q,$,Q}();function D(q){return D=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function($){return typeof $}:function($){return $&&typeof Symbol=="function"&&$.constructor===Symbol&&$!==Symbol.prototype?"symbol":typeof $},D(q)}function F(q,$){for(var Q=0;Q<$.length;Q++){var _=$[Q];_.enumerable=_.enumerable||!1,_.configurable=!0,"value"in _&&(_.writable=!0),Object.defineProperty(q,G(_.key),_)}}function V(q,$,Q){return($=G($))in q?Object.defineProperty(q,$,{value:Q,enumerable:!0,configurable:!0,writable:!0}):q[$]=Q,q}function G(q){var $=function(Q,_){if(D(Q)!="object"||!Q)return Q;var j=Q[Symbol.toPrimitive];if(j!==void 0){var B=j.call(Q,_);if(D(B)!="object")return B;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(Q)}(q,"string");return D($)=="symbol"?$:$+""}var U=function(){return q=function _(j){var B=j.utilities,R=j.options;(function(X,J){if(!(X instanceof J))throw new TypeError("Cannot call a class as a function")})(this,_),V(this,"utilities",void 0),V(this,"options",void 0),V(this,"candidateBoxElement",void 0),V(this,"pageIndex",0),V(this,"pageSize",void 0),this.utilities=B,this.options=R,E.bindMethods(_,this),this.pageSize=this.utilities.getOptions().layoutCandidatesPageSize||5},$=[{key:"destroy",value:function(){this.candidateBoxElement&&(this.candidateBoxElement.remove(),this.pageIndex=0)}},{key:"show",value:function(_){var j=this,B=_.candidateValue,R=_.targetElement,X=_.onSelect;if(B&&B.length){var J=this.utilities.chunkArray(B.split(" "),this.pageSize);this.renderPage({candidateListPages:J,targetElement:R,pageIndex:this.pageIndex,nbPages:J.length,onItemSelected:function(Z,W){X(Z,W),j.destroy()}})}}},{key:"renderPage",value:function(_){var j,B=this,R=_.candidateListPages,X=_.targetElement,J=_.pageIndex,Z=_.nbPages,W=_.onItemSelected;(j=this.candidateBoxElement)===null||j===void 0||j.remove(),this.candidateBoxElement=document.createElement("div"),this.candidateBoxElement.className="hg-candidate-box";var fe=document.createElement("ul");fe.className="hg-candidate-box-list",R[J].forEach(function(_e){var ze,it=document.createElement("li"),yt=function(){var ht=new(B.options.useTouchEvents?TouchEvent:MouseEvent)("click");return Object.defineProperty(ht,"target",{value:it}),ht};it.className="hg-candidate-box-list-item",it.innerHTML=((ze=B.options.display)===null||ze===void 0?void 0:ze[_e])||_e,B.options.useTouchEvents?it.ontouchstart=function(ht){return W(_e,ht||yt())}:it.onclick=function(){var ht=arguments.length>0&&arguments[0]!==void 0?arguments[0]:yt();return W(_e,ht)},fe.appendChild(it)});var ge=J>0,le=document.createElement("div");le.classList.add("hg-candidate-box-prev"),ge&&le.classList.add("hg-candidate-box-btn-active");var ie=function(){ge&&B.renderPage({candidateListPages:R,targetElement:X,pageIndex:J-1,nbPages:Z,onItemSelected:W})};this.options.useTouchEvents?le.ontouchstart=ie:le.onclick=ie,this.candidateBoxElement.appendChild(le),this.candidateBoxElement.appendChild(fe);var be=J<Z-1,ae=document.createElement("div");ae.classList.add("hg-candidate-box-next"),be&&ae.classList.add("hg-candidate-box-btn-active");var Ce=function(){be&&B.renderPage({candidateListPages:R,targetElement:X,pageIndex:J+1,nbPages:Z,onItemSelected:W})};this.options.useTouchEvents?ae.ontouchstart=Ce:ae.onclick=Ce,this.candidateBoxElement.appendChild(ae),X.prepend(this.candidateBoxElement)}}],$&&F(q.prototype,$),Q&&F(q,Q),Object.defineProperty(q,"prototype",{writable:!1}),q;var q,$,Q}(),N=U;function L(q){return function($){if(Array.isArray($))return Y($)}(q)||function($){if(typeof Symbol<"u"&&$[Symbol.iterator]!=null||$["@@iterator"]!=null)return Array.from($)}(q)||function($,Q){if($){if(typeof $=="string")return Y($,Q);var _=Object.prototype.toString.call($).slice(8,-1);return _==="Object"&&$.constructor&&(_=$.constructor.name),_==="Map"||_==="Set"?Array.from($):_==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(_)?Y($,Q):void 0}}(q)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
139
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function Y(q,$){($==null||$>q.length)&&($=q.length);for(var Q=0,_=new Array($);Q<$;Q++)_[Q]=q[Q];return _}function z(q){return z=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function($){return typeof $}:function($){return $&&typeof Symbol=="function"&&$.constructor===Symbol&&$!==Symbol.prototype?"symbol":typeof $},z(q)}function ee(q,$){var Q=Object.keys(q);if(Object.getOwnPropertySymbols){var _=Object.getOwnPropertySymbols(q);$&&(_=_.filter(function(j){return Object.getOwnPropertyDescriptor(q,j).enumerable})),Q.push.apply(Q,_)}return Q}function te(q,$){for(var Q=0;Q<$.length;Q++){var _=$[Q];_.enumerable=_.enumerable||!1,_.configurable=!0,"value"in _&&(_.writable=!0),Object.defineProperty(q,he(_.key),_)}}function re(q,$,Q){return($=he($))in q?Object.defineProperty(q,$,{value:Q,enumerable:!0,configurable:!0,writable:!0}):q[$]=Q,q}function he(q){var $=function(Q,_){if(z(Q)!="object"||!Q)return Q;var j=Q[Symbol.toPrimitive];if(j!==void 0){var B=j.call(Q,_);if(z(B)!="object")return B;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(Q)}(q,"string");return z($)=="symbol"?$:$+""}var ue=function(){return q=function _(j,B){var R=this;if(function(ie,be){if(!(ie instanceof be))throw new TypeError("Cannot call a class as a function")}(this,_),re(this,"input",void 0),re(this,"options",void 0),re(this,"utilities",void 0),re(this,"caretPosition",void 0),re(this,"caretPositionEnd",void 0),re(this,"keyboardDOM",void 0),re(this,"keyboardPluginClasses",void 0),re(this,"keyboardDOMClass",void 0),re(this,"buttonElements",void 0),re(this,"currentInstanceName",void 0),re(this,"allKeyboardInstances",void 0),re(this,"keyboardInstanceNames",void 0),re(this,"isFirstKeyboardInstance",void 0),re(this,"physicalKeyboard",void 0),re(this,"modules",void 0),re(this,"activeButtonClass",void 0),re(this,"holdInteractionTimeout",void 0),re(this,"holdTimeout",void 0),re(this,"isMouseHold",void 0),re(this,"initialized",void 0),re(this,"candidateBox",void 0),re(this,"keyboardRowsDOM",void 0),re(this,"defaultName","default"),re(this,"activeInputElement",null),re(this,"handleParams",function(ie,be){var ae,Ce,_e;if(typeof ie=="string")ae=ie.split(".").join(""),Ce=document.querySelector(".".concat(ae)),_e=be;else if(ie instanceof HTMLDivElement){if(!ie.className)throw console.warn("Any DOM element passed as parameter must have a class."),new Error("KEYBOARD_DOM_CLASS_ERROR");ae=ie.className.split(" ")[0],Ce=ie,_e=be}else ae="simple-keyboard",Ce=document.querySelector(".".concat(ae)),_e=ie;return{keyboardDOMClass:ae,keyboardDOM:Ce,options:_e}}),re(this,"getOptions",function(){return R.options}),re(this,"getCaretPosition",function(){return R.caretPosition}),re(this,"getCaretPositionEnd",function(){return R.caretPositionEnd}),re(this,"registerModule",function(ie,be){R.modules[ie]||(R.modules[ie]={}),be(R.modules[ie])}),re(this,"getKeyboardClassString",function(){for(var ie=arguments.length,be=new Array(ie),ae=0;ae<ie;ae++)be[ae]=arguments[ae];return[R.keyboardDOMClass].concat(be).filter(function(Ce){return!!Ce}).join(" ")}),typeof window<"u"){var X=this.handleParams(j,B),J=X.keyboardDOMClass,Z=X.keyboardDOM,W=X.options,fe=W===void 0?{}:W;this.utilities=new E({getOptions:this.getOptions,getCaretPosition:this.getCaretPosition,getCaretPositionEnd:this.getCaretPositionEnd,dispatch:this.dispatch}),this.caretPosition=null,this.caretPositionEnd=null,this.keyboardDOM=Z,this.options=function(ie){for(var be=1;be<arguments.length;be++){var ae=arguments[be]!=null?arguments[be]:{};be%2?ee(Object(ae),!0).forEach(function(Ce){re(ie,Ce,ae[Ce])}):Object.getOwnPropertyDescriptors?Object.defineProperties(ie,Object.getOwnPropertyDescriptors(ae)):ee(Object(ae)).forEach(function(Ce){Object.defineProperty(ie,Ce,Object.getOwnPropertyDescriptor(ae,Ce))})}return ie}({layoutName:"default",theme:"hg-theme-default",inputName:"default",preventMouseDownDefault:!1,enableLayoutCandidates:!0,excludeFromLayout:{}},fe),this.keyboardPluginClasses="",E.bindMethods(_,this);var ge=this.options.inputName,le=ge===void 0?this.defaultName:ge;if(this.input={},this.input[le]="",this.keyboardDOMClass=J,this.buttonElements={},window.SimpleKeyboardInstances||(window.SimpleKeyboardInstances={}),this.currentInstanceName=this.utilities.camelCase(this.keyboardDOMClass),window.SimpleKeyboardInstances[this.currentInstanceName]=this,this.allKeyboardInstances=window.SimpleKeyboardInstances,this.keyboardInstanceNames=Object.keys(window.SimpleKeyboardInstances),this.isFirstKeyboardInstance=this.keyboardInstanceNames[0]===this.currentInstanceName,this.physicalKeyboard=new M({dispatch:this.dispatch,getOptions:this.getOptions}),this.candidateBox=this.options.enableLayoutCandidates?new N({utilities:this.utilities,options:this.options}):null,!this.keyboardDOM)throw console.warn('".'.concat(J,'" was not found in the DOM.')),new Error("KEYBOARD_DOM_ERROR");this.render(),this.modules={},this.loadModules()}},$=[{key:"setCaretPosition",value:function(_){var j=arguments.length>1&&arguments[1]!==void 0?arguments[1]:_;this.caretPosition=_,this.caretPositionEnd=j}},{key:"getInputCandidates",value:function(_){var j=this,B=this.options,R=B.layoutCandidates,X=B.layoutCandidatesCaseSensitiveMatch;if(!R||z(R)!=="object")return{};var J=Object.keys(R).filter(function(fe){var ge=_.substring(0,j.getCaretPositionEnd()||0)||_,le=new RegExp("".concat(j.utilities.escapeRegex(fe),"$"),X?"g":"gi");return!!L(ge.matchAll(le)).length});if(J.length>1){var Z=J.sort(function(fe,ge){return ge.length-fe.length})[0];return{candidateKey:Z,candidateValue:R[Z]}}if(J.length){var W=J[0];return{candidateKey:W,candidateValue:R[W]}}return{}}},{key:"showCandidatesBox",value:function(_,j,B){var R=this;this.candidateBox&&this.candidateBox.show({candidateValue:j,targetElement:B,onSelect:function(X,J){var Z=R.options,W=Z.layoutCandidatesCaseSensitiveMatch,fe=Z.disableCandidateNormalization,ge=Z.enableLayoutCandidatesKeyPress,le=X;fe||(le=X.normalize("NFD")),typeof R.options.beforeInputUpdate=="function"&&R.options.beforeInputUpdate(R);var ie=R.getInput(R.options.inputName,!0),be=R.getCaretPositionEnd()||0,ae=ie.substring(0,be||0)||ie,Ce=new RegExp("".concat(R.utilities.escapeRegex(_),"$"),W?"g":"gi"),_e=ae.replace(Ce,le),ze=ie.replace(ae,_e),it=_e.length-ae.length,yt=(be||ie.length)+it;yt<0&&(yt=0),R.setInput(ze,R.options.inputName,!0),R.setCaretPosition(yt),ge&&typeof R.options.onKeyPress=="function"&&R.options.onKeyPress(X,J),typeof R.options.onChange=="function"&&R.options.onChange(R.getInput(R.options.inputName,!0),J),typeof R.options.onChangeAll=="function"&&R.options.onChangeAll(R.getAllInputs(),J)}})}},{key:"handleButtonClicked",value:function(_,j){var B=this.options,R=B.inputName,X=R===void 0?this.defaultName:R,J=B.debug;if(_!=="{//}"){this.input[X]||(this.input[X]=""),typeof this.options.beforeInputUpdate=="function"&&this.options.beforeInputUpdate(this);var Z=this.utilities.getUpdatedInput(_,this.input[X],this.caretPosition,this.caretPositionEnd);if(this.utilities.isStandardButton(_)&&this.activeInputElement&&this.input[X]&&this.input[X]===Z&&this.caretPosition===0&&this.caretPositionEnd===Z.length)return this.setInput("",this.options.inputName,!0),this.setCaretPosition(0),this.activeInputElement.value="",this.activeInputElement.setSelectionRange(0,0),void this.handleButtonClicked(_,j);if(typeof this.options.onKeyPress=="function"&&this.options.onKeyPress(_,j),this.input[X]!==Z&&(!this.options.inputPattern||this.options.inputPattern&&this.inputPatternIsValid(Z))){if(this.options.maxLength&&this.utilities.handleMaxLength(this.input,Z))return;var W=this.utilities.getUpdatedInput(_,this.input[X],this.caretPosition,this.caretPositionEnd,!0);if(this.setInput(W,this.options.inputName,!0),J&&console.log("Input changed:",this.getAllInputs()),this.options.debug&&console.log("Caret at: ",this.getCaretPosition(),this.getCaretPositionEnd(),"(".concat(this.keyboardDOMClass,")"),j==null?void 0:j.type),this.options.syncInstanceInputs&&this.syncInstanceInputs(),typeof this.options.onChange=="function"&&this.options.onChange(this.getInput(this.options.inputName,!0),j),typeof this.options.onChangeAll=="function"&&this.options.onChangeAll(this.getAllInputs(),j),j!=null&&j.target&&this.options.enableLayoutCandidates){var fe,ge=this.getInputCandidates(Z),le=ge.candidateKey,ie=ge.candidateValue;le&&ie?this.showCandidatesBox(le,ie,this.keyboardDOM):(fe=this.candidateBox)===null||fe===void 0||fe.destroy()}}this.caretPositionEnd&&this.caretPosition!==this.caretPositionEnd&&(this.setCaretPosition(this.caretPositionEnd,this.caretPositionEnd),this.activeInputElement&&this.activeInputElement.setSelectionRange(this.caretPositionEnd,this.caretPositionEnd),this.options.debug&&console.log("Caret position aligned",this.caretPosition)),J&&console.log("Key pressed:",_)}}},{key:"getMouseHold",value:function(){return this.isMouseHold}},{key:"setMouseHold",value:function(_){this.options.syncInstanceInputs?this.dispatch(function(j){j.isMouseHold=_}):this.isMouseHold=_}},{key:"handleButtonMouseDown",value:function(_,j){var B=this;j&&(this.options.preventMouseDownDefault&&j.preventDefault(),this.options.stopMouseDownPropagation&&j.stopPropagation(),j.target.classList.add(this.activeButtonClass)),this.holdInteractionTimeout&&clearTimeout(this.holdInteractionTimeout),this.holdTimeout&&clearTimeout(this.holdTimeout),this.setMouseHold(!0),this.options.disableButtonHold||(this.holdTimeout=window.setTimeout(function(){(B.getMouseHold()&&(!_.includes("{")&&!_.includes("}")||_==="{delete}"||_==="{backspace}"||_==="{bksp}"||_==="{space}"||_==="{tab}")||_==="{arrowright}"||_==="{arrowleft}"||_==="{arrowup}"||_==="{arrowdown}")&&(B.options.debug&&console.log("Button held:",_),B.handleButtonHold(_)),clearTimeout(B.holdTimeout)},500))}},{key:"handleButtonMouseUp",value:function(_,j){var B=this;j&&(this.options.preventMouseUpDefault&&j.preventDefault&&j.preventDefault(),this.options.stopMouseUpPropagation&&j.stopPropagation&&j.stopPropagation(),!(j.target===this.keyboardDOM||j.target&&this.keyboardDOM.contains(j.target)||this.candidateBox&&this.candidateBox.candidateBoxElement&&(j.target===this.candidateBox.candidateBoxElement||j.target&&this.candidateBox.candidateBoxElement.contains(j.target)))&&this.candidateBox&&this.candidateBox.destroy()),this.recurseButtons(function(R){R.classList.remove(B.activeButtonClass)}),this.setMouseHold(!1),this.holdInteractionTimeout&&clearTimeout(this.holdInteractionTimeout),_&&typeof this.options.onKeyReleased=="function"&&this.options.onKeyReleased(_,j)}},{key:"handleKeyboardContainerMouseDown",value:function(_){this.options.preventMouseDownDefault&&_.preventDefault()}},{key:"handleButtonHold",value:function(_){var j=this;this.holdInteractionTimeout&&clearTimeout(this.holdInteractionTimeout),this.holdInteractionTimeout=window.setTimeout(function(){j.getMouseHold()?(j.handleButtonClicked(_),j.handleButtonHold(_)):clearTimeout(j.holdInteractionTimeout)},100)}},{key:"syncInstanceInputs",value:function(){var _=this;this.dispatch(function(j){j.replaceInput(_.input),j.setCaretPosition(_.caretPosition,_.caretPositionEnd)})}},{key:"clearInput",value:function(){var _=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.options.inputName||this.defaultName;this.input[_]="",this.setCaretPosition(0),this.options.syncInstanceInputs&&this.syncInstanceInputs()}},{key:"getInput",value:function(){var _=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.options.inputName||this.defaultName,j=arguments.length>1&&arguments[1]!==void 0&&arguments[1];return this.options.syncInstanceInputs&&!j&&this.syncInstanceInputs(),this.options.rtl?"‫"+this.input[_].replace("‫","").replace("‬","")+"‬":this.input[_]}},{key:"getAllInputs",value:function(){var _=this,j={};return Object.keys(this.input).forEach(function(B){j[B]=_.getInput(B,!0)}),j}},{key:"setInput",value:function(_){var j=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.options.inputName||this.defaultName,B=arguments.length>2?arguments[2]:void 0;this.input[j]=_,!B&&this.options.syncInstanceInputs&&this.syncInstanceInputs()}},{key:"replaceInput",value:function(_){this.input=_}},{key:"setOptions",value:function(){var _=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},j=this.changedOptions(_);this.options=Object.assign(this.options,_),j.length&&(this.options.debug&&console.log("changedOptions",j),this.onSetOptions(j),this.render())}},{key:"changedOptions",value:function(_){var j=this;return Object.keys(_).filter(function(B){return JSON.stringify(_[B])!==JSON.stringify(j.options[B])})}},{key:"onSetOptions",value:function(){var _=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];_.includes("layoutName")&&this.candidateBox&&this.candidateBox.destroy(),(_.includes("layoutCandidatesPageSize")||_.includes("layoutCandidates"))&&this.candidateBox&&(this.candidateBox.destroy(),this.candidateBox=new N({utilities:this.utilities,options:this.options}))}},{key:"resetRows",value:function(){this.keyboardRowsDOM&&this.keyboardRowsDOM.remove(),this.keyboardDOM.className=this.keyboardDOMClass,this.keyboardDOM.setAttribute("data-skInstance",this.currentInstanceName),this.buttonElements={}}},{key:"dispatch",value:function(_){if(!window.SimpleKeyboardInstances)throw console.warn("SimpleKeyboardInstances is not defined. Dispatch cannot be called."),new Error("INSTANCES_VAR_ERROR");return Object.keys(window.SimpleKeyboardInstances).forEach(function(j){_(window.SimpleKeyboardInstances[j],j)})}},{key:"addButtonTheme",value:function(_,j){var B=this;j&&_&&(_.split(" ").forEach(function(R){j.split(" ").forEach(function(X){B.options.buttonTheme||(B.options.buttonTheme=[]);var J=!1;B.options.buttonTheme.map(function(Z){if(Z!=null&&Z.class.split(" ").includes(X)){J=!0;var W=Z.buttons.split(" ");W.includes(R)||(J=!0,W.push(R),Z.buttons=W.join(" "))}return Z}),J||B.options.buttonTheme.push({class:X,buttons:_})})}),this.render())}},{key:"removeButtonTheme",value:function(_,j){var B=this;if(!_&&!j)return this.options.buttonTheme=[],void this.render();_&&Array.isArray(this.options.buttonTheme)&&this.options.buttonTheme.length&&(_.split(" ").forEach(function(R){var X;(X=B.options)===null||X===void 0||(X=X.buttonTheme)===null||X===void 0||X.map(function(J,Z){if(J&&j&&j.includes(J.class)||!j){var W,fe,ge=(W=J)===null||W===void 0?void 0:W.buttons.split(" ").filter(function(le){return le!==R});J&&ge!=null&&ge.length?J.buttons=ge.join(" "):((fe=B.options.buttonTheme)===null||fe===void 0||fe.splice(Z,1),J=null)}return J})}),this.render())}},{key:"getButtonElement",value:function(_){var j,B=this.buttonElements[_];return B&&(j=B.length>1?B:B[0]),j}},{key:"inputPatternIsValid",value:function(_){var j,B=this.options.inputPattern;if((j=B instanceof RegExp?B:B[this.options.inputName||this.defaultName])&&_){var R=j.test(_);return this.options.debug&&console.log('inputPattern ("'.concat(j,'"): ').concat(R?"passed":"did not pass!")),R}return!0}},{key:"setEventListeners",value:function(){if(this.isFirstKeyboardInstance||!this.allKeyboardInstances){this.options.debug&&console.log("Caret handling started (".concat(this.keyboardDOMClass,")"));var _=this.options.physicalKeyboardHighlightPreventDefault,j=_!==void 0&&_;document.addEventListener("keyup",this.handleKeyUp,j),document.addEventListener("keydown",this.handleKeyDown,j),document.addEventListener("mouseup",this.handleMouseUp),document.addEventListener("touchend",this.handleTouchEnd),document.addEventListener("selectionchange",this.handleSelectionChange),document.addEventListener("select",this.handleSelect)}}},{key:"handleKeyUp",value:function(_){this.caretEventHandler(_),this.options.physicalKeyboardHighlight&&this.physicalKeyboard.handleHighlightKeyUp(_)}},{key:"handleKeyDown",value:function(_){this.options.physicalKeyboardHighlight&&this.physicalKeyboard.handleHighlightKeyDown(_)}},{key:"handleMouseUp",value:function(_){this.caretEventHandler(_)}},{key:"handleTouchEnd",value:function(_){this.caretEventHandler(_)}},{key:"handleSelect",value:function(_){this.caretEventHandler(_)}},{key:"handleSelectionChange",value:function(_){navigator.userAgent.includes("Firefox")||this.caretEventHandler(_)}},{key:"caretEventHandler",value:function(_){var j,B=this;_.target.tagName&&(j=_.target.tagName.toLowerCase()),this.dispatch(function(R){var X=_.target===R.keyboardDOM||_.target&&R.keyboardDOM.contains(_.target);if(B.options.syncInstanceInputs&&Array.isArray(_.path)&&(X=_.path.some(function(W){var fe;return W==null||(fe=W.hasAttribute)===null||fe===void 0?void 0:fe.call(W,"data-skInstance")})),(j==="textarea"||j==="input"&&["text","search","url","tel","password"].includes(_.target.type))&&!R.options.disableCaretPositioning){var J=_.target.selectionStart,Z=_.target.selectionEnd;R.options.rtl&&(J=R.utilities.getRtlOffset(J,R.getInput()),Z=R.utilities.getRtlOffset(Z,R.getInput())),R.setCaretPosition(J,Z),B.activeInputElement=_.target,R.options.debug&&console.log("Caret at: ",R.getCaretPosition(),R.getCaretPositionEnd(),_&&_.target.tagName.toLowerCase(),"(".concat(R.keyboardDOMClass,")"),_==null?void 0:_.type)}else!R.options.disableCaretPositioning&&X||(_==null?void 0:_.type)==="selectionchange"||(R.setCaretPosition(null),B.activeInputElement=null,R.options.debug&&console.log('Caret position reset due to "'.concat(_==null?void 0:_.type,'" event'),_))})}},{key:"recurseButtons",value:function(_){var j=this;_&&Object.keys(this.buttonElements).forEach(function(B){return j.buttonElements[B].forEach(_)})}},{key:"destroy",value:function(){this.options.debug&&console.log("Destroying simple-keyboard instance: ".concat(this.currentInstanceName));var _=this.options.physicalKeyboardHighlightPreventDefault,j=_!==void 0&&_;document.removeEventListener("keyup",this.handleKeyUp,j),document.removeEventListener("keydown",this.handleKeyDown,j),document.removeEventListener("mouseup",this.handleMouseUp),document.removeEventListener("touchend",this.handleTouchEnd),document.removeEventListener("select",this.handleSelect),document.removeEventListener("selectionchange",this.handleSelectionChange),document.onpointerup=null,document.ontouchend=null,document.ontouchcancel=null,document.onmouseup=null,this.recurseButtons(function(B){B&&(B.onpointerdown=null,B.onpointerup=null,B.onpointercancel=null,B.ontouchstart=null,B.ontouchend=null,B.ontouchcancel=null,B.onclick=null,B.onmousedown=null,B.onmouseup=null,B.remove(),B=null)}),this.keyboardDOM.onpointerdown=null,this.keyboardDOM.ontouchstart=null,this.keyboardDOM.onmousedown=null,this.resetRows(),this.candidateBox&&(this.candidateBox.destroy(),this.candidateBox=null),this.activeInputElement=null,this.keyboardDOM.removeAttribute("data-skInstance"),this.keyboardDOM.innerHTML="",window.SimpleKeyboardInstances[this.currentInstanceName]=null,delete window.SimpleKeyboardInstances[this.currentInstanceName],this.initialized=!1}},{key:"getButtonThemeClasses",value:function(_){var j=this.options.buttonTheme,B=[];return Array.isArray(j)&&j.forEach(function(R){if(R&&R.class&&typeof R.class=="string"&&R.buttons&&typeof R.buttons=="string"){var X=R.class.split(" ");R.buttons.split(" ").includes(_)&&(B=[].concat(L(B),L(X)))}else console.warn('Incorrect "buttonTheme". Please check the documentation.',R)}),B}},{key:"setDOMButtonAttributes",value:function(_,j){var B=this.options.buttonAttributes;Array.isArray(B)&&B.forEach(function(R){R.attribute&&typeof R.attribute=="string"&&R.value&&typeof R.value=="string"&&R.buttons&&typeof R.buttons=="string"?R.buttons.split(" ").includes(_)&&j(R.attribute,R.value):console.warn('Incorrect "buttonAttributes". Please check the documentation.',R)})}},{key:"onTouchDeviceDetected",value:function(){this.processAutoTouchEvents(),this.disableContextualWindow()}},{key:"disableContextualWindow",value:function(){window.oncontextmenu=function(_){if(_.target.classList.contains("hg-button"))return _.preventDefault(),_.stopPropagation(),!1}}},{key:"processAutoTouchEvents",value:function(){this.options.autoUseTouchEvents&&(this.options.useTouchEvents=!0,this.options.debug&&console.log("autoUseTouchEvents: Touch device detected, useTouchEvents enabled."))}},{key:"onInit",value:function(){this.options.debug&&console.log("".concat(this.keyboardDOMClass," Initialized")),this.setEventListeners(),typeof this.options.onInit=="function"&&this.options.onInit(this)}},{key:"beforeFirstRender",value:function(){this.utilities.isTouchDevice()&&this.onTouchDeviceDetected(),typeof this.options.beforeFirstRender=="function"&&this.options.beforeFirstRender(this),this.isFirstKeyboardInstance&&this.utilities.pointerEventsSupported()&&!this.options.useTouchEvents&&!this.options.useMouseEvents&&this.options.debug&&console.log("Using PointerEvents as it is supported by this browser"),this.options.useTouchEvents&&this.options.debug&&console.log("useTouchEvents has been enabled. Only touch events will be used.")}},{key:"beforeRender",value:function(){typeof this.options.beforeRender=="function"&&this.options.beforeRender(this)}},{key:"onRender",value:function(){typeof this.options.onRender=="function"&&this.options.onRender(this)}},{key:"onModulesLoaded",value:function(){typeof this.options.onModulesLoaded=="function"&&this.options.onModulesLoaded(this)}},{key:"loadModules",value:function(){var _=this;Array.isArray(this.options.modules)&&(this.options.modules.forEach(function(j){var B=new j(_);B.init&&B.init(_)}),this.keyboardPluginClasses="modules-loaded",this.render(),this.onModulesLoaded())}},{key:"getModuleProp",value:function(_,j){return!!this.modules[_]&&this.modules[_][j]}},{key:"getModulesList",value:function(){return Object.keys(this.modules)}},{key:"parseRowDOMContainers",value:function(_,j,B,R){var X=this,J=Array.from(_.children),Z=0;return J.length&&B.forEach(function(W,fe){var ge=R[fe];if(!(ge&&ge>W))return!1;var le=W-Z,ie=ge-Z,be=document.createElement("div");be.className+="hg-button-container";var ae="".concat(X.options.layoutName,"-r").concat(j,"c").concat(fe);be.setAttribute("data-skUID",ae);var Ce=J.splice(le,ie-le+1);Z=ie-le,Ce.forEach(function(_e){return be.appendChild(_e)}),J.splice(le,0,be),_.innerHTML="",J.forEach(function(_e){return _.appendChild(_e)}),X.options.debug&&console.log("rowDOMContainer",Ce,le,ie,Z+1)}),_}},{key:"render",value:function(){var _=this;this.resetRows(),this.initialized||this.beforeFirstRender(),this.beforeRender();var j="hg-layout-".concat(this.options.layoutName),B=this.options.layout||{default:["` 1 2 3 4 5 6 7 8 9 0 - = {bksp}","{tab} q w e r t y u i o p [ ] \\","{lock} a s d f g h j k l ; ' {enter}","{shift} z x c v b n m , . / {shift}",".com @ {space}"],shift:["~ ! @ # $ % ^ & * ( ) _ + {bksp}","{tab} Q W E R T Y U I O P { } |",'{lock} A S D F G H J K L : " {enter}',"{shift} Z X C V B N M < > ? {shift}",".com @ {space}"]},R=this.options.useTouchEvents||!1,X=R?"hg-touch-events":"",J=this.options.useMouseEvents||!1,Z=this.options.disableRowButtonContainers;this.keyboardDOM.className=this.getKeyboardClassString(this.options.theme,j,this.keyboardPluginClasses,X),this.keyboardDOM.setAttribute("data-skInstance",this.currentInstanceName),this.keyboardRowsDOM=document.createElement("div"),this.keyboardRowsDOM.className="hg-rows",B[this.options.layoutName||this.defaultName].forEach(function(W,fe){var ge=W.split(" ");_.options.excludeFromLayout&&_.options.excludeFromLayout[_.options.layoutName||_.defaultName]&&(ge=ge.filter(function(ae){return _.options.excludeFromLayout&&!_.options.excludeFromLayout[_.options.layoutName||_.defaultName].includes(ae)}));var le=document.createElement("div");le.className+="hg-row";var ie=[],be=[];ge.forEach(function(ae,Ce){var _e,ze=!Z&&typeof ae=="string"&&ae.length>1&&ae.indexOf("[")===0,it=!Z&&typeof ae=="string"&&ae.length>1&&ae.indexOf("]")===ae.length-1;ze&&(ie.push(Ce),ae=ae.replace(/\[/g,"")),it&&(be.push(Ce),ae=ae.replace(/\]/g,""));var yt=_.utilities.getButtonClass(ae),ht=_.utilities.getButtonDisplayName(ae,_.options.display,_.options.mergeDisplay),Zn=_.options.useButtonTag?"button":"div",lt=document.createElement(Zn);lt.className+="hg-button ".concat(yt),(_e=lt.classList).add.apply(_e,L(_.getButtonThemeClasses(ae))),_.setDOMButtonAttributes(ae,function(Oe,an){lt.setAttribute(Oe,an)}),_.activeButtonClass="hg-activeButton",!_.utilities.pointerEventsSupported()||R||J?R?(lt.ontouchstart=function(Oe){_.handleButtonClicked(ae,Oe),_.handleButtonMouseDown(ae,Oe)},lt.ontouchend=function(Oe){_.handleButtonMouseUp(ae,Oe)},lt.ontouchcancel=function(Oe){_.handleButtonMouseUp(ae,Oe)}):(lt.onclick=function(Oe){_.setMouseHold(!1),typeof _.options.onKeyReleased!="function"&&_.handleButtonClicked(ae,Oe)},lt.onmousedown=function(Oe){typeof _.options.onKeyReleased!="function"||_.isMouseHold||_.handleButtonClicked(ae,Oe),_.handleButtonMouseDown(ae,Oe)},lt.onmouseup=function(Oe){_.handleButtonMouseUp(ae,Oe)}):(lt.onpointerdown=function(Oe){_.handleButtonClicked(ae,Oe),_.handleButtonMouseDown(ae,Oe)},lt.onpointerup=function(Oe){_.handleButtonMouseUp(ae,Oe)},lt.onpointercancel=function(Oe){_.handleButtonMouseUp(ae,Oe)}),lt.setAttribute("data-skBtn",ae);var Xt="".concat(_.options.layoutName,"-r").concat(fe,"b").concat(Ce);lt.setAttribute("data-skBtnUID",Xt);var pt=document.createElement("span");pt.innerHTML=ht,lt.appendChild(pt),_.buttonElements[ae]||(_.buttonElements[ae]=[]),_.buttonElements[ae].push(lt),le.appendChild(lt)}),le=_.parseRowDOMContainers(le,fe,ie,be),_.keyboardRowsDOM.appendChild(le)}),this.keyboardDOM.appendChild(this.keyboardRowsDOM),this.onRender(),this.initialized||(this.initialized=!0,!this.utilities.pointerEventsSupported()||R||J?R?(document.ontouchend=function(W){return _.handleButtonMouseUp(void 0,W)},document.ontouchcancel=function(W){return _.handleButtonMouseUp(void 0,W)},this.keyboardDOM.ontouchstart=function(W){return _.handleKeyboardContainerMouseDown(W)}):R||(document.onmouseup=function(W){return _.handleButtonMouseUp(void 0,W)},this.keyboardDOM.onmousedown=function(W){return _.handleKeyboardContainerMouseDown(W)}):(document.onpointerup=function(W){return _.handleButtonMouseUp(void 0,W)},this.keyboardDOM.onpointerdown=function(W){return _.handleKeyboardContainerMouseDown(W)}),this.onInit())}}],$&&te(q.prototype,$),Q&&te(q,Q),Object.defineProperty(q,"prototype",{writable:!1}),q;var q,$,Q}(),ye=ue,pe=ue}(),p}()},442:function(c){c.exports=n}},i={};function s(c){var u=i[c];if(u!==void 0)return u.exports;var d=i[c]={exports:{}};return r[c].call(d.exports,d,d.exports,s),d.exports}s.n=function(c){var u=c&&c.__esModule?function(){return c.default}:function(){return c};return s.d(u,{a:u}),u},s.d=function(c,u){for(var d in u)s.o(u,d)&&!s.o(c,d)&&Object.defineProperty(c,d,{enumerable:!0,get:u[d]})},s.o=function(c,u){return Object.prototype.hasOwnProperty.call(c,u)},s.r=function(c){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(c,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(c,"__esModule",{value:!0})};var o={};return function(){s.r(o),s.d(o,{KeyboardReact:function(){return h},default:function(){return y}}),s(981);var c=s(442),u=s(548),d=s.n(u);function f(g){return f=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(b){return typeof b}:function(b){return b&&typeof Symbol=="function"&&b.constructor===Symbol&&b!==Symbol.prototype?"symbol":typeof b},f(g)}function p(g,b){var w=Object.keys(g);if(Object.getOwnPropertySymbols){var E=Object.getOwnPropertySymbols(g);b&&(E=E.filter(function(S){return Object.getOwnPropertyDescriptor(g,S).enumerable})),w.push.apply(w,E)}return w}function l(g){for(var b=1;b<arguments.length;b++){var w=arguments[b]!=null?arguments[b]:{};b%2?p(Object(w),!0).forEach(function(E){v(g,E,w[E])}):Object.getOwnPropertyDescriptors?Object.defineProperties(g,Object.getOwnPropertyDescriptors(w)):p(Object(w)).forEach(function(E){Object.defineProperty(g,E,Object.getOwnPropertyDescriptor(w,E))})}return g}function v(g,b,w){var E;return E=function(S,A){if(f(S)!="object"||!S)return S;var T=S[Symbol.toPrimitive];if(T!==void 0){var O=T.call(S,A||"default");if(f(O)!="object")return O;throw new TypeError("@@toPrimitive must return a primitive value.")}return(A==="string"?String:Number)(S)}(b,"string"),(b=f(E)=="symbol"?E:E+"")in g?Object.defineProperty(g,b,{value:w,enumerable:!0,configurable:!0,writable:!0}):g[b]=w,g}var a=function(g){return l(l({},g),{},{keyboardRef:null})},h=function(g){var b=g.baseClass||"react-simple-keyboard",w=c.useRef(null),E=c.useRef(null),S=c.useRef(null),A=c.useRef(g);return c.useEffect(function(){return function(){S.current&&S.current.destroy(),w.current=!1}},[]),c.useEffect(function(){var T=function(V){return l(l({},V),{},{theme:"simple-keyboard ".concat(V.theme||"hg-theme-default")})}(g);if(!w.current){w.current=!0,T.debug&&console.log("ReactSimpleKeyboard: Init");var O=E.current,M=".".concat(b);S.current=new(d())(O||M,T),T.keyboardRef&&T.keyboardRef(S.current)}var D=function(V,G){var U=a(G),N=a(V);return Object.keys(U).filter(function(L){return U[L]!==N[L]})}(A.current,T);if(D.length){var F=S.current;A.current=T,F==null||F.setOptions(T),T.debug&&console.log("ReactSimpleKeyboard - setOptions called due to updated props:",D)}},[w,b,A,g]),c.createElement("div",{className:b,ref:E})},y=h}(),o}()})})(Ky);var Pk=Ky.exports;const jk=Iu(Pk);function zy({onChange:e,keyboardRef:t,layout:n,theme:r}){const[i,s]=I.useState("default"),o=c=>{(c==="{shift}"||c==="{lock}")&&s(i==="default"?"shift":"default")};return m.jsx(jk,{keyboardRef:c=>t.current=c,layoutName:i,layout:n,theme:r,onChange:e,onKeyPress:o,preventMouseDownDefault:!0})}function Qy(){const{subscribe:e,unsubscribe:t,publish:n}=Oo();return{initialize:(c,u)=>{e("openKeyboard",c),e("closeKeyboard",u)},terminate:(c,u)=>{t("openKeyboard",c),t("closeKeyboard",u)},open:c=>{n("openKeyboard",{inputId:c.target.id,inputValue:c.target.value})},close:()=>{n("closeKeyboard")}}}const ar="keyboard-custom-overlap-id";function Lk({enabled:e}){const[t,n]=I.useState(!1),r=I.useRef(null),i=I.useRef(null),s=I.useRef(null),[o,c]=I.useState(),{initialize:u,terminate:d}=Qy(),f=g=>{var b,w;i.current=document.getElementById(g.detail.inputId),(b=r.current)==null||b.setInput(g.detail.inputValue),(w=i.current)==null||w.addEventListener("input",E=>{var A;const S=E.target;(A=r.current)==null||A.setInput(S==null?void 0:S.value)}),n(!0)},p=()=>n(!1);I.useEffect(()=>(u(f,p),()=>{d(f,p)}),[t]);const l=g=>{var b,w;if(i&&i.current){v(i.current,g);const E=(b=r.current)==null?void 0:b.getCaretPosition();E&&((w=i.current)==null||w.setSelectionRange(E,E))}},v=(g,b)=>{var S;const w=(S=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"value"))==null?void 0:S.set;w==null||w.call(g,b);const E=new Event("input",{bubbles:!0});g.dispatchEvent(E)},a=()=>{var g;if(!o){const b=(g=s.current)==null?void 0:g.getBoundingClientRect();return b&&b.x&&!o&&c(b),b}return o},h=()=>{var E;const g=(E=i.current)==null?void 0:E.getBoundingClientRect(),b=a();let w=!1;return b&&g&&(w=!(b.right<g.left||b.left>g.right||b.bottom<g.top||b.top>g.bottom)),w},y=()=>{const g=document.querySelectorAll("#"+ar);let b=!1;for(let w=0;w<g.length;w++){const E=g[w].getBoundingClientRect(),S=a();S&&E&&(b=!(S.right<E.left||S.left>E.right||S.bottom<E.top||S.top>E.bottom))}return b||h()};return e?m.jsx("div",{ref:s,className:`mobile:hidden bottom-2 left-2 right-2 z-50 mx-auto w-[98vw] max-w-[1200px] ${!t&&o&&"hidden"} ${!t&&!o&&"pointer-events-none opacity-0"} ${y()?"b-2 block":"absolute"}`,children:m.jsx(zy,{keyboardRef:r,onChange:l})}):m.jsx(m.Fragment,{})}const ji=({id:e,name:t,label:n,description:r,required:i,type:s="text",value:o,placeholder:c,disabled:u,error:d=!1,helperText:f="",onChange:p,beforeIcon:l,afterIcon:v,autoFocus:a,onFocus:h,onBlur:y})=>{const[g,b]=I.useState(f),w=I.useRef(null),[E,S]=I.useState(!1),{open:A,close:T}=Qy();I.useEffect(()=>()=>{T()},[]);const O=()=>{w.current&&b(w.current.validationMessage),S(!1),T(),y==null||y()},M=async G=>{S(!0),(async()=>A(G))().then(()=>{var N;return(N=w.current)==null?void 0:N.scrollIntoView({behavior:"smooth",block:"center"})}),h==null||h()},D=G=>{p==null||p(G)},F=I.useId(),V=e??F;return m.jsxs("div",{className:"flex flex-col gap-2 antialiased",children:[m.jsx(wn,{description:r,disabled:u,htmlFor:V,required:i,children:n}),m.jsx("div",{className:ln("flex-start box flex h-10 flex-col justify-center self-stretch rounded border border-core-gray-200 shadow-xs",u?"pointer-events-none bg-core-gray-50 shadow-none outline-core-gray-200":" bg-core-white-900 hover:border hover:border-core-gray-300 hover:shadow-none ",E&&!d&&"border-core-primary-500 ring-1 ring-core-primary-500",d&&"border-core-red-500",d&&E&&"border-core-red-500 ring-1 ring-core-red-500"),children:m.jsxs("div",{className:"flex flex-row gap-2 self-stretch p-2",children:[l&&m.jsx(on,{icon:l}),m.jsx("input",{type:s,id:V,name:t,className:"flex flex-grow border-none bg-transparent p-0 text-sm text-core-gray-800 placeholder:text-core-gray-500 focus:ring-0 disabled:text-core-gray-300 placeholder:disabled:text-core-gray-300",value:o,onChange:D,onBlur:O,ref:w,placeholder:c,onFocus:M,disabled:u,autoFocus:a}),v&&m.jsx(on,{icon:v})]})}),m.jsx("div",{className:`grid overflow-hidden transition-all duration-300 ease-out ${f||g?"grid-rows-[1fr] opacity-100":"grid-rows-[0fr] opacity-0"}`,children:m.jsx("div",{className:"overflow-hidden",children:m.jsx(wn.Helper,{error:d,helperText:f||g})})})]})};ji.displayName="Input";const Jy=({id:e,name:t,label:n,required:r,description:i,placeholder:s,value:o,disabled:c,error:u=!1,helperText:d,onChange:f,type:p="date"})=>{const[l,v]=I.useState(!1),a=I.useId(),h=e??a;return m.jsxs("div",{className:"flex flex-col gap-2 antialiased",children:[m.jsx(wn,{description:i,disabled:c,htmlFor:h,required:r,children:n}),m.jsx("div",{className:ln("flex-start box relative flex h-10 flex-col justify-center self-stretch rounded border border-core-gray-200 shadow-xs ring-core-primary-500 ",c?"pointer-events-none bg-core-gray-50 shadow-none outline-core-gray-200":" bg-core-white-900 hover:border hover:border-core-gray-300 hover:shadow-none ",l&&!u&&"border-core-primary-500 ring-1 ring-core-primary-500 selection:bg-core-primary-500",u&&"border-core-red-500",u&&l&&"border-core-red-500 ring-1 ring-core-red-500"),children:m.jsxs("div",{className:"flex w-full flex-row gap-2 self-stretch p-2",children:[m.jsx("input",{type:p,id:h,name:t,value:o,max:"2200-01-01",className:"flex flex-grow border-none bg-transparent p-0 text-sm text-core-gray-800 placeholder:text-core-gray-500 focus:ring-0 disabled:text-core-gray-300 placeholder:disabled:text-core-gray-300",placeholder:s,onChange:f,onFocus:()=>v(!0),onBlur:()=>v(!1),disabled:c}),m.jsx(on,{icon:"calendar"})]})}),m.jsx("div",{className:`grid overflow-hidden transition-all duration-300 ease-out ${d?"grid-rows-[1fr] opacity-100":"grid-rows-[0fr] opacity-100"}`,children:m.jsx("div",{className:"overflow-hidden",children:m.jsx(wn.Helper,{error:u,helperText:d})})})]})};Jy.displayName="Input";function En({children:e}){return m.jsx("div",{className:"h-screen w-screen md:p-6",children:m.jsx("div",{className:"flex h-full max-h-full items-center justify-center md:container [&>*]:grow",children:e})})}function fi({title:e,isOpen:t,onClose:n,primaryAction:r,secondaryAction:i,children:s}){const[o,c]=I.useState(t),u=I.useRef(null);I.useEffect(()=>{c(t)},[t]),I.useEffect(()=>{const p=u.current;p&&(o?p.show():p.close())},[o]);const d=()=>{n&&n(),c(!1)},f=p=>{p.key==="Escape"&&d()};return m.jsx("div",{className:`fixed inset-0 z-40 min-h-screen items-center bg-gray-500 bg-opacity-25 ${o?"flex":"hidden"}`,children:m.jsx("dialog",{ref:u,onKeyDown:f,className:"scrollbar-hide absolute overflow-auto rounded-lg drop-shadow-md",children:m.jsxs("div",{className:"rounded-lg bg-white md:min-w-[420px]",children:[m.jsx(At,{children:m.jsx("div",{className:"flex h-16 items-center",children:m.jsx("p",{children:e})})}),m.jsx(_t,{children:s}),m.jsx(Kt,{children:m.jsxs("div",{className:"flex flex-col gap-2",children:[r&&m.jsx(ut,{label:r.label??"",onClick:r.action,disabled:r.disabled,pending:r.loading}),i&&m.jsx(ut,{label:i.label??"",onClick:i.action,disabled:i.disabled,pending:i.loading,variant:"secondary"})]})})]})})})}function Bk({option:{label:e},checked:t,onChange:n}){return m.jsxs("div",{className:"flex items-center gap-2 px-4 py-2 text-sm hover:bg-core-gray-50",children:[m.jsx(Zd,{defaultChecked:t,onChange:n}),m.jsx("p",{children:e})]})}function Fk(e){const{t}=Ve(),n=I.useRef(null),[r,i]=I.useState(!1);Wy(n,i);const[s,o]=I.useState(""),[c,u]=I.useState(e.value.split(";")),{name:d,onChange:f}=e,p=(l,v)=>{let a=[];l?a=[...c,v]:a=c.filter(h=>h!==v),u(a),f&&f(d??"",a.join(";"))};return m.jsxs("div",{ref:n,className:"flex flex-col gap-2 antialiased",children:[m.jsx(wn,{disabled:e.disabled,htmlFor:e.id,required:e.required,children:e.label}),m.jsxs("div",{className:"relative",children:[m.jsxs("div",{className:`flex h-10 items-center justify-between rounded border p-2 ${e.disabled?"pointer-events-none bg-core-gray-50 shadow-none outline-core-gray-200":"bg-core-white-900 hover:border hover:border-core-gray-300 hover:shadow-none"}`,onClick:()=>!e.disabled&&i(!r),children:[m.jsx("div",{className:`flex gap-1 overflow-hidden text-sm ${e.disabled?"text-core-gray-300":"text-core-gray-800"}`,children:c.map(l=>{var a;const v=(a=e.options.find(h=>h.value===l))==null?void 0:a.label;return m.jsxs("div",{className:"pointer-events-none flex items-center overflow-hidden rounded bg-core-gray-100 px-1.5 py-0.5",children:[m.jsx("p",{className:"truncate",children:v}),m.jsx("span",{className:"pointer-events-auto cursor-pointer",onClick:()=>p(!1,l),children:m.jsx(on,{icon:"close"})})]},l)})}),m.jsx("span",{className:"ml-2 text-core-gray-500",children:r?"▴":"▾"})]}),m.jsxs("div",{className:`absolute left-0 right-0 top-11 z-50 rounded border bg-core-white-900 shadow-xl ${!r&&"hidden"} py-2`,children:[e.options.length>6&&m.jsx("div",{className:"px-4",children:m.jsx(ji,{placeholder:`${t("search")}...`,onChange:l=>o(l.target.value)})}),e.options.map(l=>{if(!(s&&!l.label.toLowerCase().includes(s.toLowerCase())))return m.jsx(Bk,{option:l,checked:c.includes(l.value),onChange:v=>p(v,l.value)},`${l.value}_${c.includes(l.value)?"checked":"unchecked"}`)})]})]})]})}function Uk({value:e,max:t,label:n}){return m.jsxs("div",{children:[m.jsx("div",{className:"font-sm mb-1 text-right text-core-gray-500",children:n}),m.jsx("div",{className:"h-1 w-full rounded-full bg-core-gray-200",children:m.jsx("div",{className:"h-1 rounded-full bg-core-primary-500",style:{width:`${Math.min(e/t*100,100)}%`}})})]})}function Vk({value:e,placeholder:t,open:n,setOpen:r,disabled:i}){return m.jsxs("div",{className:`flex items-center justify-between rounded border p-2 ${i?"pointer-events-none bg-core-gray-50 shadow-none outline-core-gray-200":"bg-core-white-900 hover:border hover:border-core-gray-300 hover:shadow-none"}`,onClick:()=>!i&&r(!n),children:[m.jsx("span",{className:`text-sm ${i?"text-core-gray-300":"text-core-gray-800"}`,children:e||t}),m.jsx("span",{className:"ml-2 text-core-gray-500",children:n?"▴":"▾"})]})}function qk({label:e,children:t}){return m.jsxs("div",{className:"[&:not(:last-child)]:mb-2",children:[m.jsx("p",{className:"mb-2 px-4 text-xs text-core-gray-500",children:e}),t]})}function Xd(e){return m.jsx("div",{className:"px-4 py-2 text-sm hover:bg-core-gray-50",children:e.label})}function $k(e){const t=I.useRef(null),[n,r]=I.useState(!1),[i,s]=I.useState(e.value??"");Wy(t,r);const o=(u,d)=>{s(u),r(!1),e.onChange&&e.onChange(d)},c=I.Children.map(e.children,u=>{if(I.isValidElement(u)){if(u.type===Xd)return m.jsx("div",{onClick:()=>o(u.props.label,u.props.value),children:u});if(u.type===qk){const d=I.Children.map(u.props.children,f=>{if(I.isValidElement(f)&&f.type===Xd)return m.jsx("div",{onClick:()=>o(f.props.label,f.props.value),children:f})});return I.cloneElement(u,{},...d)}}});return m.jsxs("div",{ref:t,className:"flex flex-col gap-2 antialiased",children:[m.jsx(wn,{description:e.description,disabled:e.disabled,htmlFor:e.id,required:e.required,children:e.label}),m.jsx("div",{children:m.jsxs("div",{className:"relative",children:[m.jsx(Vk,{value:i,placeholder:e.placeholder,open:n,setOpen:r,disabled:e.disabled}),e.children&&m.jsx("div",{className:`absolute left-0 right-0 top-11 z-50 rounded border bg-core-white-900 shadow-xl ${!n&&"hidden"} py-2`,children:c})]})}),m.jsx(wn.Helper,{helperText:e.helperText})]})}var Gk=Object.defineProperty,Hk=(e,t)=>{for(var n in t)Gk(e,n,{get:t[n],enumerable:!0})},cr={};Hk(cr,{assign:()=>Kk,colors:()=>mi,createStringInterpolator:()=>uf,skipAnimation:()=>iv,to:()=>rv,willAdvance:()=>lf});var ef=Ro(),qe=e=>No(e,ef),tf=Ro();qe.write=e=>No(e,tf);var $c=Ro();qe.onStart=e=>No(e,$c);var nf=Ro();qe.onFrame=e=>No(e,nf);var rf=Ro();qe.onFinish=e=>No(e,rf);var As=[];qe.setTimeout=(e,t)=>{const n=qe.now()+t,r=()=>{const s=As.findIndex(o=>o.cancel==r);~s&&As.splice(s,1),pi-=~s?1:0},i={time:n,handler:e,cancel:r};return As.splice(Zy(n),0,i),pi+=1,Xy(),i};var Zy=e=>~(~As.findIndex(t=>t.time>e)||~As.length);qe.cancel=e=>{$c.delete(e),nf.delete(e),rf.delete(e),ef.delete(e),tf.delete(e)},qe.sync=e=>{of=!0,qe.batchedUpdates(e),of=!1},qe.throttle=e=>{let t;function n(){try{e(...t)}finally{t=null}}function r(...i){t=i,qe.onStart(n)}return r.handler=e,r.cancel=()=>{$c.delete(n),t=null},r};var sf=typeof window<"u"?window.requestAnimationFrame:()=>{};qe.use=e=>sf=e,qe.now=typeof performance<"u"?()=>performance.now():Date.now,qe.batchedUpdates=e=>e(),qe.catch=console.error,qe.frameLoop="always",qe.advance=()=>{qe.frameLoop!=="demand"?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):tv()};var hi=-1,pi=0,of=!1;function No(e,t){of?(t.delete(e),e(0)):(t.add(e),Xy())}function Xy(){hi<0&&(hi=0,qe.frameLoop!=="demand"&&sf(ev))}function Yk(){hi=-1}function ev(){~hi&&(sf(ev),qe.batchedUpdates(tv))}function tv(){const e=hi;hi=qe.now();const t=Zy(hi);if(t&&(nv(As.splice(0,t),n=>n.handler()),pi-=t),!pi){Yk();return}$c.flush(),ef.flush(e?Math.min(64,hi-e):16.667),nf.flush(),tf.flush(),rf.flush()}function Ro(){let e=new Set,t=e;return{add(n){pi+=t==e&&!e.has(n)?1:0,e.add(n)},delete(n){return pi-=t==e&&e.has(n)?1:0,e.delete(n)},flush(n){t.size&&(e=new Set,pi-=t.size,nv(t,r=>r(n)&&e.add(r)),pi+=e.size,t=e)}}}function nv(e,t){e.forEach(n=>{try{t(n)}catch(r){qe.catch(r)}})}function af(){}var Wk=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),xe={arr:Array.isArray,obj:e=>!!e&&e.constructor.name==="Object",fun:e=>typeof e=="function",str:e=>typeof e=="string",num:e=>typeof e=="number",und:e=>e===void 0};function Lr(e,t){if(xe.arr(e)){if(!xe.arr(t)||e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}return e===t}var rt=(e,t)=>e.forEach(t);function wr(e,t,n){if(xe.arr(e)){for(let r=0;r<e.length;r++)t.call(n,e[r],`${r}`);return}for(const r in e)e.hasOwnProperty(r)&&t.call(n,e[r],r)}var Un=e=>xe.und(e)?[]:xe.arr(e)?e:[e];function Mo(e,t){if(e.size){const n=Array.from(e);e.clear(),rt(n,t)}}var Do=(e,...t)=>Mo(e,n=>n(...t)),cf=()=>typeof window>"u"||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),uf,rv,mi=null,iv=!1,lf=af,Kk=e=>{e.to&&(rv=e.to),e.now&&(qe.now=e.now),e.colors!==void 0&&(mi=e.colors),e.skipAnimation!=null&&(iv=e.skipAnimation),e.createStringInterpolator&&(uf=e.createStringInterpolator),e.requestAnimationFrame&&qe.use(e.requestAnimationFrame),e.batchedUpdates&&(qe.batchedUpdates=e.batchedUpdates),e.willAdvance&&(lf=e.willAdvance),e.frameLoop&&(qe.frameLoop=e.frameLoop)},Po=new Set,Qn=[],df=[],Gc=0,Hc={get idle(){return!Po.size&&!Qn.length},start(e){Gc>e.priority?(Po.add(e),qe.onStart(zk)):(sv(e),qe(ff))},advance:ff,sort(e){if(Gc)qe.onFrame(()=>Hc.sort(e));else{const t=Qn.indexOf(e);~t&&(Qn.splice(t,1),ov(e))}},clear(){Qn=[],Po.clear()}};function zk(){Po.forEach(sv),Po.clear(),qe(ff)}function sv(e){Qn.includes(e)||ov(e)}function ov(e){Qn.splice(Qk(Qn,t=>t.priority>e.priority),0,e)}function ff(e){const t=df;for(let n=0;n<Qn.length;n++){const r=Qn[n];Gc=r.priority,r.idle||(lf(r),r.advance(e),r.idle||t.push(r))}return Gc=0,df=Qn,df.length=0,Qn=t,Qn.length>0}function Qk(e,t){const n=e.findIndex(t);return n<0?e.length:n}var Jk=(e,t,n)=>Math.min(Math.max(n,e),t),Zk={transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199},ur="[-+]?\\d*\\.?\\d+",Yc=ur+"%";function Wc(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}var Xk=new RegExp("rgb"+Wc(ur,ur,ur)),e6=new RegExp("rgba"+Wc(ur,ur,ur,ur)),t6=new RegExp("hsl"+Wc(ur,Yc,Yc)),n6=new RegExp("hsla"+Wc(ur,Yc,Yc,ur)),r6=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,i6=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,s6=/^#([0-9a-fA-F]{6})$/,o6=/^#([0-9a-fA-F]{8})$/;function a6(e){let t;return typeof e=="number"?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=s6.exec(e))?parseInt(t[1]+"ff",16)>>>0:mi&&mi[e]!==void 0?mi[e]:(t=Xk.exec(e))?(Ts(t[1])<<24|Ts(t[2])<<16|Ts(t[3])<<8|255)>>>0:(t=e6.exec(e))?(Ts(t[1])<<24|Ts(t[2])<<16|Ts(t[3])<<8|uv(t[4]))>>>0:(t=r6.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=o6.exec(e))?parseInt(t[1],16)>>>0:(t=i6.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=t6.exec(e))?(av(cv(t[1]),Kc(t[2]),Kc(t[3]))|255)>>>0:(t=n6.exec(e))?(av(cv(t[1]),Kc(t[2]),Kc(t[3]))|uv(t[4]))>>>0:null}function hf(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function av(e,t,n){const r=n<.5?n*(1+t):n+t-n*t,i=2*n-r,s=hf(i,r,e+1/3),o=hf(i,r,e),c=hf(i,r,e-1/3);return Math.round(s*255)<<24|Math.round(o*255)<<16|Math.round(c*255)<<8}function Ts(e){const t=parseInt(e,10);return t<0?0:t>255?255:t}function cv(e){return(parseFloat(e)%360+360)%360/360}function uv(e){const t=parseFloat(e);return t<0?0:t>1?255:Math.round(t*255)}function Kc(e){const t=parseFloat(e);return t<0?0:t>100?1:t/100}function lv(e){let t=a6(e);if(t===null)return e;t=t||0;const n=(t&4278190080)>>>24,r=(t&16711680)>>>16,i=(t&65280)>>>8,s=(t&255)/255;return`rgba(${n}, ${r}, ${i}, ${s})`}var jo=(e,t,n)=>{if(xe.fun(e))return e;if(xe.arr(e))return jo({range:e,output:t,extrapolate:n});if(xe.str(e.output[0]))return uf(e);const r=e,i=r.output,s=r.range||[0,1],o=r.extrapolateLeft||r.extrapolate||"extend",c=r.extrapolateRight||r.extrapolate||"extend",u=r.easing||(d=>d);return d=>{const f=u6(d,s);return c6(d,s[f],s[f+1],i[f],i[f+1],u,o,c,r.map)}};function c6(e,t,n,r,i,s,o,c,u){let d=u?u(e):e;if(d<t){if(o==="identity")return d;o==="clamp"&&(d=t)}if(d>n){if(c==="identity")return d;c==="clamp"&&(d=n)}return r===i?r:t===n?e<=t?r:i:(t===-1/0?d=-d:n===1/0?d=d-t:d=(d-t)/(n-t),d=s(d),r===-1/0?d=-d:i===1/0?d=d+r:d=d*(i-r)+r,d)}function u6(e,t){for(var n=1;n<t.length-1&&!(t[n]>=e);++n);return n-1}var l6=(e,t="end")=>n=>{n=t==="end"?Math.min(n,.999):Math.max(n,.001);const r=n*e,i=t==="end"?Math.floor(r):Math.ceil(r);return Jk(0,1,i/e)},zc=1.70158,Qc=zc*1.525,dv=zc+1,fv=2*Math.PI/3,hv=2*Math.PI/4.5,Jc=e=>e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375,d6={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>1-(1-e)*(1-e),easeInOutQuad:e=>e<.5?2*e*e:1-Math.pow(-2*e+2,2)/2,easeInCubic:e=>e*e*e,easeOutCubic:e=>1-Math.pow(1-e,3),easeInOutCubic:e=>e<.5?4*e*e*e:1-Math.pow(-2*e+2,3)/2,easeInQuart:e=>e*e*e*e,easeOutQuart:e=>1-Math.pow(1-e,4),easeInOutQuart:e=>e<.5?8*e*e*e*e:1-Math.pow(-2*e+2,4)/2,easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>1-Math.pow(1-e,5),easeInOutQuint:e=>e<.5?16*e*e*e*e*e:1-Math.pow(-2*e+2,5)/2,easeInSine:e=>1-Math.cos(e*Math.PI/2),easeOutSine:e=>Math.sin(e*Math.PI/2),easeInOutSine:e=>-(Math.cos(Math.PI*e)-1)/2,easeInExpo:e=>e===0?0:Math.pow(2,10*e-10),easeOutExpo:e=>e===1?1:1-Math.pow(2,-10*e),easeInOutExpo:e=>e===0?0:e===1?1:e<.5?Math.pow(2,20*e-10)/2:(2-Math.pow(2,-20*e+10))/2,easeInCirc:e=>1-Math.sqrt(1-Math.pow(e,2)),easeOutCirc:e=>Math.sqrt(1-Math.pow(e-1,2)),easeInOutCirc:e=>e<.5?(1-Math.sqrt(1-Math.pow(2*e,2)))/2:(Math.sqrt(1-Math.pow(-2*e+2,2))+1)/2,easeInBack:e=>dv*e*e*e-zc*e*e,easeOutBack:e=>1+dv*Math.pow(e-1,3)+zc*Math.pow(e-1,2),easeInOutBack:e=>e<.5?Math.pow(2*e,2)*((Qc+1)*2*e-Qc)/2:(Math.pow(2*e-2,2)*((Qc+1)*(e*2-2)+Qc)+2)/2,easeInElastic:e=>e===0?0:e===1?1:-Math.pow(2,10*e-10)*Math.sin((e*10-10.75)*fv),easeOutElastic:e=>e===0?0:e===1?1:Math.pow(2,-10*e)*Math.sin((e*10-.75)*fv)+1,easeInOutElastic:e=>e===0?0:e===1?1:e<.5?-(Math.pow(2,20*e-10)*Math.sin((20*e-11.125)*hv))/2:Math.pow(2,-20*e+10)*Math.sin((20*e-11.125)*hv)/2+1,easeInBounce:e=>1-Jc(1-e),easeOutBounce:Jc,easeInOutBounce:e=>e<.5?(1-Jc(1-2*e))/2:(1+Jc(2*e-1))/2,steps:l6},Lo=Symbol.for("FluidValue.get"),Is=Symbol.for("FluidValue.observers"),Jn=e=>!!(e&&e[Lo]),Tn=e=>e&&e[Lo]?e[Lo]():e,pv=e=>e[Is]||null;function f6(e,t){e.eventObserved?e.eventObserved(t):e(t)}function Bo(e,t){const n=e[Is];n&&n.forEach(r=>{f6(r,t)})}var mv=class{constructor(e){if(!e&&!(e=this.get))throw Error("Unknown getter");h6(this,e)}},h6=(e,t)=>gv(e,Lo,t);function ks(e,t){if(e[Lo]){let n=e[Is];n||gv(e,Is,n=new Set),n.has(t)||(n.add(t),e.observerAdded&&e.observerAdded(n.size,t))}return t}function Fo(e,t){const n=e[Is];if(n&&n.has(t)){const r=n.size-1;r?n.delete(t):e[Is]=null,e.observerRemoved&&e.observerRemoved(r,t)}}var gv=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),Zc=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,p6=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,yv=new RegExp(`(${Zc.source})(%|[a-z]+)`,"i"),m6=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,Xc=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,vv=e=>{const[t,n]=g6(e);if(!t||cf())return e;const r=window.getComputedStyle(document.documentElement).getPropertyValue(t);if(r)return r.trim();if(n&&n.startsWith("--")){const i=window.getComputedStyle(document.documentElement).getPropertyValue(n);return i||e}else{if(n&&Xc.test(n))return vv(n);if(n)return n}return e},g6=e=>{const t=Xc.exec(e);if(!t)return[,];const[,n,r]=t;return[n,r]},pf,y6=(e,t,n,r,i)=>`rgba(${Math.round(t)}, ${Math.round(n)}, ${Math.round(r)}, ${i})`,bv=e=>{pf||(pf=mi?new RegExp(`(${Object.keys(mi).join("|")})(?!\\w)`,"g"):/^\b$/);const t=e.output.map(s=>Tn(s).replace(Xc,vv).replace(p6,lv).replace(pf,lv)),n=t.map(s=>s.match(Zc).map(Number)),i=n[0].map((s,o)=>n.map(c=>{if(!(o in c))throw Error('The arity of each "output" value must be equal');return c[o]})).map(s=>jo({...e,output:s}));return s=>{var u;const o=!yv.test(t[0])&&((u=t.find(d=>yv.test(d)))==null?void 0:u.replace(Zc,""));let c=0;return t[0].replace(Zc,()=>`${i[c++](s)}${o||""}`).replace(m6,y6)}},mf="react-spring: ",wv=e=>{const t=e;let n=!1;if(typeof t!="function")throw new TypeError(`${mf}once requires a function parameter`);return(...r)=>{n||(t(...r),n=!0)}},v6=wv(console.warn);function b6(){v6(`${mf}The "interpolate" function is deprecated in v9 (use "to" instead)`)}var w6=wv(console.warn);function E6(){w6(`${mf}Directly calling start instead of using the api object is deprecated in v9 (use ".start" instead), this will be removed in later 0.X.0 versions`)}function eu(e){return xe.str(e)&&(e[0]=="#"||/\d/.test(e)||!cf()&&Xc.test(e)||e in(mi||{}))}var gf=cf()?I.useEffect:I.useLayoutEffect,S6=()=>{const e=I.useRef(!1);return gf(()=>(e.current=!0,()=>{e.current=!1}),[]),e};function Ev(){const e=I.useState()[1],t=S6();return()=>{t.current&&e(Math.random())}}function x6(e,t){const[n]=I.useState(()=>({inputs:t,result:e()})),r=I.useRef(),i=r.current;let s=i;return s?t&&s.inputs&&C6(t,s.inputs)||(s={inputs:t,result:e()}):s=n,I.useEffect(()=>{r.current=s,i==n&&(n.inputs=n.result=void 0)},[s]),s.result}function C6(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}var Sv=e=>I.useEffect(e,_6),_6=[];function xv(e){const t=I.useRef();return I.useEffect(()=>{t.current=e}),t.current}var Uo=Symbol.for("Animated:node"),A6=e=>!!e&&e[Uo]===e,Er=e=>e&&e[Uo],yf=(e,t)=>Wk(e,Uo,t),tu=e=>e&&e[Uo]&&e[Uo].getPayload(),Cv=class{constructor(){yf(this,this)}getPayload(){return this.payload||[]}},Vo=class extends Cv{constructor(e){super(),this._value=e,this.done=!0,this.durationProgress=0,xe.num(this._value)&&(this.lastPosition=this._value)}static create(e){return new Vo(e)}getPayload(){return[this]}getValue(){return this._value}setValue(e,t){return xe.num(e)&&(this.lastPosition=e,t&&(e=Math.round(e/t)*t,this.done&&(this.lastPosition=e))),this._value===e?!1:(this._value=e,!0)}reset(){const{done:e}=this;this.done=!1,xe.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,e&&(this.lastVelocity=null),this.v0=null)}},qo=class extends Vo{constructor(e){super(0),this._string=null,this._toString=jo({output:[e,e]})}static create(e){return new qo(e)}getValue(){const e=this._string;return e??(this._string=this._toString(this._value))}setValue(e){if(xe.str(e)){if(e==this._string)return!1;this._string=e,this._value=1}else if(super.setValue(e))this._string=null;else return!1;return!0}reset(e){e&&(this._toString=jo({output:[this.getValue(),e]})),this._value=0,super.reset()}},nu={dependencies:null},ru=class extends Cv{constructor(e){super(),this.source=e,this.setValue(e)}getValue(e){const t={};return wr(this.source,(n,r)=>{A6(n)?t[r]=n.getValue(e):Jn(n)?t[r]=Tn(n):e||(t[r]=n)}),t}setValue(e){this.source=e,this.payload=this._makePayload(e)}reset(){this.payload&&rt(this.payload,e=>e.reset())}_makePayload(e){if(e){const t=new Set;return wr(e,this._addToPayload,t),Array.from(t)}}_addToPayload(e){nu.dependencies&&Jn(e)&&nu.dependencies.add(e);const t=tu(e);t&&rt(t,n=>this.add(n))}},_v=class extends ru{constructor(e){super(e)}static create(e){return new _v(e)}getValue(){return this.source.map(e=>e.getValue())}setValue(e){const t=this.getPayload();return e.length==t.length?t.map((n,r)=>n.setValue(e[r])).some(Boolean):(super.setValue(e.map(T6)),!0)}};function T6(e){return(eu(e)?qo:Vo).create(e)}function vf(e){const t=Er(e);return t?t.constructor:xe.arr(e)?_v:eu(e)?qo:Vo}var Av=(e,t)=>{const n=!xe.fun(e)||e.prototype&&e.prototype.isReactComponent;return I.forwardRef((r,i)=>{const s=I.useRef(null),o=n&&I.useCallback(a=>{s.current=O6(i,a)},[i]),[c,u]=k6(r,t),d=Ev(),f=()=>{const a=s.current;if(n&&!a)return;(a?t.applyAnimatedValues(a,c.getValue(!0)):!1)===!1&&d()},p=new I6(f,u),l=I.useRef();gf(()=>(l.current=p,rt(u,a=>ks(a,p)),()=>{l.current&&(rt(l.current.deps,a=>Fo(a,l.current)),qe.cancel(l.current.update))})),I.useEffect(f,[]),Sv(()=>()=>{const a=l.current;rt(a.deps,h=>Fo(h,a))});const v=t.getComponentProps(c.getValue());return se.createElement(e,{...v,ref:o})})},I6=class{constructor(e,t){this.update=e,this.deps=t}eventObserved(e){e.type=="change"&&qe.write(this.update)}};function k6(e,t){const n=new Set;return nu.dependencies=n,e.style&&(e={...e,style:t.createAnimatedStyle(e.style)}),e=new ru(e),nu.dependencies=null,[e,n]}function O6(e,t){return e&&(xe.fun(e)?e(t):e.current=t),t}var Tv=Symbol.for("AnimatedComponent"),N6=(e,{applyAnimatedValues:t=()=>!1,createAnimatedStyle:n=i=>new ru(i),getComponentProps:r=i=>i}={})=>{const i={applyAnimatedValues:t,createAnimatedStyle:n,getComponentProps:r},s=o=>{const c=Iv(o)||"Anonymous";return xe.str(o)?o=s[o]||(s[o]=Av(o,i)):o=o[Tv]||(o[Tv]=Av(o,i)),o.displayName=`Animated(${c})`,o};return wr(e,(o,c)=>{xe.arr(e)&&(c=Iv(o)),s[c]=s(o)}),{animated:s}},Iv=e=>xe.str(e)?e:e&&xe.str(e.displayName)?e.displayName:xe.fun(e)&&e.name||null;function Li(e,...t){return xe.fun(e)?e(...t):e}var $o=(e,t)=>e===!0||!!(t&&e&&(xe.fun(e)?e(t):Un(e).includes(t))),kv=(e,t)=>xe.obj(e)?t&&e[t]:e,Ov=(e,t)=>e.default===!0?e[t]:e.default?e.default[t]:void 0,R6=e=>e,bf=(e,t=R6)=>{let n=M6;e.default&&e.default!==!0&&(e=e.default,n=Object.keys(e));const r={};for(const i of n){const s=t(e[i],i);xe.und(s)||(r[i]=s)}return r},M6=["config","onProps","onStart","onChange","onPause","onResume","onRest"],D6={config:1,from:1,to:1,ref:1,loop:1,reset:1,pause:1,cancel:1,reverse:1,immediate:1,default:1,delay:1,onProps:1,onStart:1,onChange:1,onPause:1,onResume:1,onRest:1,onResolve:1,items:1,trail:1,sort:1,expires:1,initial:1,enter:1,update:1,leave:1,children:1,onDestroyed:1,keys:1,callId:1,parentId:1};function P6(e){const t={};let n=0;if(wr(e,(r,i)=>{D6[i]||(t[i]=r,n++)}),n)return t}function Nv(e){const t=P6(e);if(t){const n={to:t};return wr(e,(r,i)=>i in t||(n[i]=r)),n}return{...e}}function Go(e){return e=Tn(e),xe.arr(e)?e.map(Go):eu(e)?cr.createStringInterpolator({range:[0,1],output:[e,e]})(1):e}function j6(e){for(const t in e)return!0;return!1}function wf(e){return xe.fun(e)||xe.arr(e)&&xe.obj(e[0])}function L6(e,t){var n;(n=e.ref)==null||n.delete(e),t==null||t.delete(e)}function B6(e,t){var n;t&&e.ref!==t&&((n=e.ref)==null||n.delete(e),t.add(e),e.ref=t)}var F6={default:{tension:170,friction:26},gentle:{tension:120,friction:14},wobbly:{tension:180,friction:12},stiff:{tension:210,friction:20},slow:{tension:280,friction:60},molasses:{tension:280,friction:120}},Ef={...F6.default,mass:1,damping:1,easing:d6.linear,clamp:!1},U6=class{constructor(){this.velocity=0,Object.assign(this,Ef)}};function V6(e,t,n){n&&(n={...n},Rv(n,t),t={...n,...t}),Rv(e,t),Object.assign(e,t);for(const o in Ef)e[o]==null&&(e[o]=Ef[o]);let{frequency:r,damping:i}=e;const{mass:s}=e;return xe.und(r)||(r<.01&&(r=.01),i<0&&(i=0),e.tension=Math.pow(2*Math.PI/r,2)*s,e.friction=4*Math.PI*i*s/r),e}function Rv(e,t){if(!xe.und(t.decay))e.duration=void 0;else{const n=!xe.und(t.tension)||!xe.und(t.friction);(n||!xe.und(t.frequency)||!xe.und(t.damping)||!xe.und(t.mass))&&(e.duration=void 0,e.decay=void 0),n&&(e.frequency=void 0)}}var Mv=[],q6=class{constructor(){this.changed=!1,this.values=Mv,this.toValues=null,this.fromValues=Mv,this.config=new U6,this.immediate=!1}};function Dv(e,{key:t,props:n,defaultProps:r,state:i,actions:s}){return new Promise((o,c)=>{let u,d,f=$o(n.cancel??(r==null?void 0:r.cancel),t);if(f)v();else{xe.und(n.pause)||(i.paused=$o(n.pause,t));let a=r==null?void 0:r.pause;a!==!0&&(a=i.paused||$o(a,t)),u=Li(n.delay||0,t),a?(i.resumeQueue.add(l),s.pause()):(s.resume(),l())}function p(){i.resumeQueue.add(l),i.timeouts.delete(d),d.cancel(),u=d.time-qe.now()}function l(){u>0&&!cr.skipAnimation?(i.delayed=!0,d=qe.setTimeout(v,u),i.pauseQueue.add(p),i.timeouts.add(d)):v()}function v(){i.delayed&&(i.delayed=!1),i.pauseQueue.delete(p),i.timeouts.delete(d),e<=(i.cancelId||0)&&(f=!0);try{s.start({...n,callId:e,cancel:f},o)}catch(a){c(a)}}})}var Sf=(e,t)=>t.length==1?t[0]:t.some(n=>n.cancelled)?Os(e.get()):t.every(n=>n.noop)?Pv(e.get()):lr(e.get(),t.every(n=>n.finished)),Pv=e=>({value:e,noop:!0,finished:!0,cancelled:!1}),lr=(e,t,n=!1)=>({value:e,finished:t,cancelled:n}),Os=e=>({value:e,cancelled:!0,finished:!1});function jv(e,t,n,r){const{callId:i,parentId:s,onRest:o}=t,{asyncTo:c,promise:u}=n;return!s&&e===c&&!t.reset?u:n.promise=(async()=>{n.asyncId=i,n.asyncTo=e;const d=bf(t,(y,g)=>g==="onRest"?void 0:y);let f,p;const l=new Promise((y,g)=>(f=y,p=g)),v=y=>{const g=i<=(n.cancelId||0)&&Os(r)||i!==n.asyncId&&lr(r,!1);if(g)throw y.result=g,p(y),y},a=(y,g)=>{const b=new Lv,w=new Bv;return(async()=>{if(cr.skipAnimation)throw Ho(n),w.result=lr(r,!1),p(w),w;v(b);const E=xe.obj(y)?{...y}:{...g,to:y};E.parentId=i,wr(d,(A,T)=>{xe.und(E[T])&&(E[T]=A)});const S=await r.start(E);return v(b),n.paused&&await new Promise(A=>{n.resumeQueue.add(A)}),S})()};let h;if(cr.skipAnimation)return Ho(n),lr(r,!1);try{let y;xe.arr(e)?y=(async g=>{for(const b of g)await a(b)})(e):y=Promise.resolve(e(a,r.stop.bind(r))),await Promise.all([y.then(f),l]),h=lr(r.get(),!0,!1)}catch(y){if(y instanceof Lv)h=y.result;else if(y instanceof Bv)h=y.result;else throw y}finally{i==n.asyncId&&(n.asyncId=s,n.asyncTo=s?c:void 0,n.promise=s?u:void 0)}return xe.fun(o)&&qe.batchedUpdates(()=>{o(h,r,r.item)}),h})()}function Ho(e,t){Mo(e.timeouts,n=>n.cancel()),e.pauseQueue.clear(),e.resumeQueue.clear(),e.asyncId=e.asyncTo=e.promise=void 0,t&&(e.cancelId=t)}var Lv=class extends Error{constructor(){super("An async animation has been interrupted. You see this error because you forgot to use `await` or `.catch(...)` on its returned promise.")}},Bv=class extends Error{constructor(){super("SkipAnimationSignal")}},xf=e=>e instanceof Cf,$6=1,Cf=class extends mv{constructor(){super(...arguments),this.id=$6++,this._priority=0}get priority(){return this._priority}set priority(e){this._priority!=e&&(this._priority=e,this._onPriorityChange(e))}get(){const e=Er(this);return e&&e.getValue()}to(...e){return cr.to(this,e)}interpolate(...e){return b6(),cr.to(this,e)}toJSON(){return this.get()}observerAdded(e){e==1&&this._attach()}observerRemoved(e){e==0&&this._detach()}_attach(){}_detach(){}_onChange(e,t=!1){Bo(this,{type:"change",parent:this,value:e,idle:t})}_onPriorityChange(e){this.idle||Hc.sort(this),Bo(this,{type:"priority",parent:this,priority:e})}},Bi=Symbol.for("SpringPhase"),Fv=1,_f=2,Af=4,Tf=e=>(e[Bi]&Fv)>0,gi=e=>(e[Bi]&_f)>0,Yo=e=>(e[Bi]&Af)>0,Uv=(e,t)=>t?e[Bi]|=_f|Fv:e[Bi]&=~_f,Vv=(e,t)=>t?e[Bi]|=Af:e[Bi]&=~Af,G6=class extends Cf{constructor(e,t){if(super(),this.animation=new q6,this.defaultProps={},this._state={paused:!1,delayed:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._pendingCalls=new Set,this._lastCallId=0,this._lastToId=0,this._memoizedDuration=0,!xe.und(e)||!xe.und(t)){const n=xe.obj(e)?{...e}:{...t,from:e};xe.und(n.default)&&(n.default=!0),this.start(n)}}get idle(){return!(gi(this)||this._state.asyncTo)||Yo(this)}get goal(){return Tn(this.animation.to)}get velocity(){const e=Er(this);return e instanceof Vo?e.lastVelocity||0:e.getPayload().map(t=>t.lastVelocity||0)}get hasAnimated(){return Tf(this)}get isAnimating(){return gi(this)}get isPaused(){return Yo(this)}get isDelayed(){return this._state.delayed}advance(e){let t=!0,n=!1;const r=this.animation;let{toValues:i}=r;const{config:s}=r,o=tu(r.to);!o&&Jn(r.to)&&(i=Un(Tn(r.to))),r.values.forEach((d,f)=>{if(d.done)return;const p=d.constructor==qo?1:o?o[f].lastPosition:i[f];let l=r.immediate,v=p;if(!l){if(v=d.lastPosition,s.tension<=0){d.done=!0;return}let a=d.elapsedTime+=e;const h=r.fromValues[f],y=d.v0!=null?d.v0:d.v0=xe.arr(s.velocity)?s.velocity[f]:s.velocity;let g;const b=s.precision||(h==p?.005:Math.min(1,Math.abs(p-h)*.001));if(xe.und(s.duration))if(s.decay){const w=s.decay===!0?.998:s.decay,E=Math.exp(-(1-w)*a);v=h+y/(1-w)*(1-E),l=Math.abs(d.lastPosition-v)<=b,g=y*E}else{g=d.lastVelocity==null?y:d.lastVelocity;const w=s.restVelocity||b/10,E=s.clamp?0:s.bounce,S=!xe.und(E),A=h==p?d.v0>0:h<p;let T,O=!1;const M=1,D=Math.ceil(e/M);for(let F=0;F<D&&(T=Math.abs(g)>w,!(!T&&(l=Math.abs(p-v)<=b,l)));++F){S&&(O=v==p||v>p==A,O&&(g=-g*E,v=p));const V=-s.tension*1e-6*(v-p),G=-s.friction*.001*g,U=(V+G)/s.mass;g=g+U*M,v=v+g*M}}else{let w=1;s.duration>0&&(this._memoizedDuration!==s.duration&&(this._memoizedDuration=s.duration,d.durationProgress>0&&(d.elapsedTime=s.duration*d.durationProgress,a=d.elapsedTime+=e)),w=(s.progress||0)+a/this._memoizedDuration,w=w>1?1:w<0?0:w,d.durationProgress=w),v=h+s.easing(w)*(p-h),g=(v-d.lastPosition)/e,l=w==1}d.lastVelocity=g,Number.isNaN(v)&&(console.warn("Got NaN while animating:",this),l=!0)}o&&!o[f].done&&(l=!1),l?d.done=!0:t=!1,d.setValue(v,s.round)&&(n=!0)});const c=Er(this),u=c.getValue();if(t){const d=Tn(r.to);(u!==d||n)&&!s.decay?(c.setValue(d),this._onChange(d)):n&&s.decay&&this._onChange(u),this._stop()}else n&&this._onChange(u)}set(e){return qe.batchedUpdates(()=>{this._stop(),this._focus(e),this._set(e)}),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(gi(this)){const{to:e,config:t}=this.animation;qe.batchedUpdates(()=>{this._onStart(),t.decay||this._set(e,!1),this._stop()})}return this}update(e){return(this.queue||(this.queue=[])).push(e),this}start(e,t){let n;return xe.und(e)?(n=this.queue||[],this.queue=[]):n=[xe.obj(e)?e:{...t,to:e}],Promise.all(n.map(r=>this._update(r))).then(r=>Sf(this,r))}stop(e){const{to:t}=this.animation;return this._focus(this.get()),Ho(this._state,e&&this._lastCallId),qe.batchedUpdates(()=>this._stop(t,e)),this}reset(){this._update({reset:!0})}eventObserved(e){e.type=="change"?this._start():e.type=="priority"&&(this.priority=e.priority+1)}_prepareNode(e){const t=this.key||"";let{to:n,from:r}=e;n=xe.obj(n)?n[t]:n,(n==null||wf(n))&&(n=void 0),r=xe.obj(r)?r[t]:r,r==null&&(r=void 0);const i={to:n,from:r};return Tf(this)||(e.reverse&&([n,r]=[r,n]),r=Tn(r),xe.und(r)?Er(this)||this._set(n):this._set(r)),i}_update({...e},t){const{key:n,defaultProps:r}=this;e.default&&Object.assign(r,bf(e,(o,c)=>/^on/.test(c)?kv(o,n):o)),Gv(this,e,"onProps"),zo(this,"onProps",e,this);const i=this._prepareNode(e);if(Object.isFrozen(this))throw Error("Cannot animate a `SpringValue` object that is frozen. Did you forget to pass your component to `animated(...)` before animating its props?");const s=this._state;return Dv(++this._lastCallId,{key:n,props:e,defaultProps:r,state:s,actions:{pause:()=>{Yo(this)||(Vv(this,!0),Do(s.pauseQueue),zo(this,"onPause",lr(this,Wo(this,this.animation.to)),this))},resume:()=>{Yo(this)&&(Vv(this,!1),gi(this)&&this._resume(),Do(s.resumeQueue),zo(this,"onResume",lr(this,Wo(this,this.animation.to)),this))},start:this._merge.bind(this,i)}}).then(o=>{if(e.loop&&o.finished&&!(t&&o.noop)){const c=qv(e);if(c)return this._update(c,!0)}return o})}_merge(e,t,n){if(t.cancel)return this.stop(!0),n(Os(this));const r=!xe.und(e.to),i=!xe.und(e.from);if(r||i)if(t.callId>this._lastToId)this._lastToId=t.callId;else return n(Os(this));const{key:s,defaultProps:o,animation:c}=this,{to:u,from:d}=c;let{to:f=u,from:p=d}=e;i&&!r&&(!t.default||xe.und(f))&&(f=p),t.reverse&&([f,p]=[p,f]);const l=!Lr(p,d);l&&(c.from=p),p=Tn(p);const v=!Lr(f,u);v&&this._focus(f);const a=wf(t.to),{config:h}=c,{decay:y,velocity:g}=h;(r||i)&&(h.velocity=0),t.config&&!a&&V6(h,Li(t.config,s),t.config!==o.config?Li(o.config,s):void 0);let b=Er(this);if(!b||xe.und(f))return n(lr(this,!0));const w=xe.und(t.reset)?i&&!t.default:!xe.und(p)&&$o(t.reset,s),E=w?p:this.get(),S=Go(f),A=xe.num(S)||xe.arr(S)||eu(S),T=!a&&(!A||$o(o.immediate||t.immediate,s));if(v){const F=vf(f);if(F!==b.constructor)if(T)b=this._set(S);else throw Error(`Cannot animate between ${b.constructor.name} and ${F.name}, as the "to" prop suggests`)}const O=b.constructor;let M=Jn(f),D=!1;if(!M){const F=w||!Tf(this)&&l;(v||F)&&(D=Lr(Go(E),S),M=!D),(!Lr(c.immediate,T)&&!T||!Lr(h.decay,y)||!Lr(h.velocity,g))&&(M=!0)}if(D&&gi(this)&&(c.changed&&!w?M=!0:M||this._stop(u)),!a&&((M||Jn(u))&&(c.values=b.getPayload(),c.toValues=Jn(f)?null:O==qo?[1]:Un(S)),c.immediate!=T&&(c.immediate=T,!T&&!w&&this._set(u)),M)){const{onRest:F}=c;rt(Y6,G=>Gv(this,t,G));const V=lr(this,Wo(this,u));Do(this._pendingCalls,V),this._pendingCalls.add(n),c.changed&&qe.batchedUpdates(()=>{var G;c.changed=!w,F==null||F(V,this),w?Li(o.onRest,V):(G=c.onStart)==null||G.call(c,V,this)})}w&&this._set(E),a?n(jv(t.to,t,this._state,this)):M?this._start():gi(this)&&!v?this._pendingCalls.add(n):n(Pv(E))}_focus(e){const t=this.animation;e!==t.to&&(pv(this)&&this._detach(),t.to=e,pv(this)&&this._attach())}_attach(){let e=0;const{to:t}=this.animation;Jn(t)&&(ks(t,this),xf(t)&&(e=t.priority+1)),this.priority=e}_detach(){const{to:e}=this.animation;Jn(e)&&Fo(e,this)}_set(e,t=!0){const n=Tn(e);if(!xe.und(n)){const r=Er(this);if(!r||!Lr(n,r.getValue())){const i=vf(n);!r||r.constructor!=i?yf(this,i.create(n)):r.setValue(n),r&&qe.batchedUpdates(()=>{this._onChange(n,t)})}}return Er(this)}_onStart(){const e=this.animation;e.changed||(e.changed=!0,zo(this,"onStart",lr(this,Wo(this,e.to)),this))}_onChange(e,t){t||(this._onStart(),Li(this.animation.onChange,e,this)),Li(this.defaultProps.onChange,e,this),super._onChange(e,t)}_start(){const e=this.animation;Er(this).reset(Tn(e.to)),e.immediate||(e.fromValues=e.values.map(t=>t.lastPosition)),gi(this)||(Uv(this,!0),Yo(this)||this._resume())}_resume(){cr.skipAnimation?this.finish():Hc.start(this)}_stop(e,t){if(gi(this)){Uv(this,!1);const n=this.animation;rt(n.values,i=>{i.done=!0}),n.toValues&&(n.onChange=n.onPause=n.onResume=void 0),Bo(this,{type:"idle",parent:this});const r=t?Os(this.get()):lr(this.get(),Wo(this,e??n.to));Do(this._pendingCalls,r),n.changed&&(n.changed=!1,zo(this,"onRest",r,this))}}};function Wo(e,t){const n=Go(t),r=Go(e.get());return Lr(r,n)}function qv(e,t=e.loop,n=e.to){const r=Li(t);if(r){const i=r!==!0&&Nv(r),s=(i||e).reverse,o=!i||i.reset;return Ko({...e,loop:t,default:!1,pause:void 0,to:!s||wf(n)?n:void 0,from:o?e.from:void 0,reset:o,...i})}}function Ko(e){const{to:t,from:n}=e=Nv(e),r=new Set;return xe.obj(t)&&$v(t,r),xe.obj(n)&&$v(n,r),e.keys=r.size?Array.from(r):null,e}function H6(e){const t=Ko(e);return xe.und(t.default)&&(t.default=bf(t)),t}function $v(e,t){wr(e,(n,r)=>n!=null&&t.add(r))}var Y6=["onStart","onRest","onChange","onPause","onResume"];function Gv(e,t,n){e.animation[n]=t[n]!==Ov(t,n)?kv(t[n],e.key):void 0}function zo(e,t,...n){var r,i,s,o;(i=(r=e.animation)[t])==null||i.call(r,...n),(o=(s=e.defaultProps)[t])==null||o.call(s,...n)}var W6=["onStart","onChange","onRest"],K6=1,z6=class{constructor(e,t){this.id=K6++,this.springs={},this.queue=[],this._lastAsyncId=0,this._active=new Set,this._changed=new Set,this._started=!1,this._state={paused:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._events={onStart:new Map,onChange:new Map,onRest:new Map},this._onFrame=this._onFrame.bind(this),t&&(this._flush=t),e&&this.start({default:!0,...e})}get idle(){return!this._state.asyncTo&&Object.values(this.springs).every(e=>e.idle&&!e.isDelayed&&!e.isPaused)}get item(){return this._item}set item(e){this._item=e}get(){const e={};return this.each((t,n)=>e[n]=t.get()),e}set(e){for(const t in e){const n=e[t];xe.und(n)||this.springs[t].set(n)}}update(e){return e&&this.queue.push(Ko(e)),this}start(e){let{queue:t}=this;return e?t=Un(e).map(Ko):this.queue=[],this._flush?this._flush(this,t):(Qv(this,t),If(this,t))}stop(e,t){if(e!==!!e&&(t=e),t){const n=this.springs;rt(Un(t),r=>n[r].stop(!!e))}else Ho(this._state,this._lastAsyncId),this.each(n=>n.stop(!!e));return this}pause(e){if(xe.und(e))this.start({pause:!0});else{const t=this.springs;rt(Un(e),n=>t[n].pause())}return this}resume(e){if(xe.und(e))this.start({pause:!1});else{const t=this.springs;rt(Un(e),n=>t[n].resume())}return this}each(e){wr(this.springs,e)}_onFrame(){const{onStart:e,onChange:t,onRest:n}=this._events,r=this._active.size>0,i=this._changed.size>0;(r&&!this._started||i&&!this._started)&&(this._started=!0,Mo(e,([c,u])=>{u.value=this.get(),c(u,this,this._item)}));const s=!r&&this._started,o=i||s&&n.size?this.get():null;i&&t.size&&Mo(t,([c,u])=>{u.value=o,c(u,this,this._item)}),s&&(this._started=!1,Mo(n,([c,u])=>{u.value=o,c(u,this,this._item)}))}eventObserved(e){if(e.type=="change")this._changed.add(e.parent),e.idle||this._active.add(e.parent);else if(e.type=="idle")this._active.delete(e.parent);else return;qe.onFrame(this._onFrame)}};function If(e,t){return Promise.all(t.map(n=>Hv(e,n))).then(n=>Sf(e,n))}async function Hv(e,t,n){const{keys:r,to:i,from:s,loop:o,onRest:c,onResolve:u}=t,d=xe.obj(t.default)&&t.default;o&&(t.loop=!1),i===!1&&(t.to=null),s===!1&&(t.from=null);const f=xe.arr(i)||xe.fun(i)?i:void 0;f?(t.to=void 0,t.onRest=void 0,d&&(d.onRest=void 0)):rt(W6,h=>{const y=t[h];if(xe.fun(y)){const g=e._events[h];t[h]=({finished:b,cancelled:w})=>{const E=g.get(y);E?(b||(E.finished=!1),w&&(E.cancelled=!0)):g.set(y,{value:null,finished:b||!1,cancelled:w||!1})},d&&(d[h]=t[h])}});const p=e._state;t.pause===!p.paused?(p.paused=t.pause,Do(t.pause?p.pauseQueue:p.resumeQueue)):p.paused&&(t.pause=!0);const l=(r||Object.keys(e.springs)).map(h=>e.springs[h].start(t)),v=t.cancel===!0||Ov(t,"cancel")===!0;(f||v&&p.asyncId)&&l.push(Dv(++e._lastAsyncId,{props:t,state:p,actions:{pause:af,resume:af,start(h,y){v?(Ho(p,e._lastAsyncId),y(Os(e))):(h.onRest=c,y(jv(f,h,p,e)))}}})),p.paused&&await new Promise(h=>{p.resumeQueue.add(h)});const a=Sf(e,await Promise.all(l));if(o&&a.finished&&!(n&&a.noop)){const h=qv(t,o,i);if(h)return Qv(e,[h]),Hv(e,h,!0)}return u&&qe.batchedUpdates(()=>u(a,e,e.item)),a}function Yv(e,t){const n={...e.springs};return t&&rt(Un(t),r=>{xe.und(r.keys)&&(r=Ko(r)),xe.obj(r.to)||(r={...r,to:void 0}),zv(n,r,i=>Kv(i))}),Wv(e,n),n}function Wv(e,t){wr(t,(n,r)=>{e.springs[r]||(e.springs[r]=n,ks(n,e))})}function Kv(e,t){const n=new G6;return n.key=e,t&&ks(n,t),n}function zv(e,t,n){t.keys&&rt(t.keys,r=>{(e[r]||(e[r]=n(r)))._prepareNode(t)})}function Qv(e,t){rt(t,n=>{zv(e.springs,n,r=>Kv(r,e))})}var iu=({children:e,...t})=>{const n=I.useContext(su),r=t.pause||!!n.pause,i=t.immediate||!!n.immediate;t=x6(()=>({pause:r,immediate:i}),[r,i]);const{Provider:s}=su;return se.createElement(s,{value:t},e)},su=Q6(iu,{});iu.Provider=su.Provider,iu.Consumer=su.Consumer;function Q6(e,t){return Object.assign(e,se.createContext(t)),e.Provider._context=e,e.Consumer._context=e,e}var J6=()=>{const e=[],t=function(r){E6();const i=[];return rt(e,(s,o)=>{if(xe.und(r))i.push(s.start());else{const c=n(r,s,o);c&&i.push(s.start(c))}}),i};t.current=e,t.add=function(r){e.includes(r)||e.push(r)},t.delete=function(r){const i=e.indexOf(r);~i&&e.splice(i,1)},t.pause=function(){return rt(e,r=>r.pause(...arguments)),this},t.resume=function(){return rt(e,r=>r.resume(...arguments)),this},t.set=function(r){rt(e,(i,s)=>{const o=xe.fun(r)?r(s,i):r;o&&i.set(o)})},t.start=function(r){const i=[];return rt(e,(s,o)=>{if(xe.und(r))i.push(s.start());else{const c=this._getProps(r,s,o);c&&i.push(s.start(c))}}),i},t.stop=function(){return rt(e,r=>r.stop(...arguments)),this},t.update=function(r){return rt(e,(i,s)=>i.update(this._getProps(r,i,s))),this};const n=function(r,i,s){return xe.fun(r)?r(s,i):r};return t._getProps=n,t};function Z6(e,t,n){const r=xe.fun(t)&&t;r&&!n&&(n=[]);const i=I.useMemo(()=>r||arguments.length==3?J6():void 0,[]),s=I.useRef(0),o=Ev(),c=I.useMemo(()=>({ctrls:[],queue:[],flush(g,b){const w=Yv(g,b);return s.current>0&&!c.queue.length&&!Object.keys(w).some(S=>!g.springs[S])?If(g,b):new Promise(S=>{Wv(g,w),c.queue.push(()=>{S(If(g,b))}),o()})}}),[]),u=I.useRef([...c.ctrls]),d=[],f=xv(e)||0;I.useMemo(()=>{rt(u.current.slice(e,f),g=>{L6(g,i),g.stop(!0)}),u.current.length=e,p(f,e)},[e]),I.useMemo(()=>{p(0,Math.min(f,e))},n);function p(g,b){for(let w=g;w<b;w++){const E=u.current[w]||(u.current[w]=new z6(null,c.flush)),S=r?r(w,E):t[w];S&&(d[w]=H6(S))}}const l=u.current.map((g,b)=>Yv(g,d[b])),v=I.useContext(iu),a=xv(v),h=v!==a&&j6(v);gf(()=>{s.current++,c.ctrls=u.current;const{queue:g}=c;g.length&&(c.queue=[],rt(g,b=>b())),rt(u.current,(b,w)=>{i==null||i.add(b),h&&b.start({default:v});const E=d[w];E&&(B6(b,E.ref),b.ref?b.queue.push(E):b.start(E))})}),Sv(()=>()=>{rt(c.ctrls,g=>g.stop(!0))});const y=l.map(g=>({...g}));return i?[y,i]:y}function X6(e,t){const n=xe.fun(e),[[r],i]=Z6(1,n?e:[e],n?[]:t);return n||arguments.length==2?[r,i]:r}var eO=class extends Cf{constructor(e,t){super(),this.source=e,this.idle=!0,this._active=new Set,this.calc=jo(...t);const n=this._get(),r=vf(n);yf(this,r.create(n))}advance(e){const t=this._get(),n=this.get();Lr(t,n)||(Er(this).setValue(t),this._onChange(t,this.idle)),!this.idle&&Jv(this._active)&&kf(this)}_get(){const e=xe.arr(this.source)?this.source.map(Tn):Un(Tn(this.source));return this.calc(...e)}_start(){this.idle&&!Jv(this._active)&&(this.idle=!1,rt(tu(this),e=>{e.done=!1}),cr.skipAnimation?(qe.batchedUpdates(()=>this.advance()),kf(this)):Hc.start(this))}_attach(){let e=1;rt(Un(this.source),t=>{Jn(t)&&ks(t,this),xf(t)&&(t.idle||this._active.add(t),e=Math.max(e,t.priority+1))}),this.priority=e,this._start()}_detach(){rt(Un(this.source),e=>{Jn(e)&&Fo(e,this)}),this._active.clear(),kf(this)}eventObserved(e){e.type=="change"?e.idle?this.advance():(this._active.add(e.parent),this._start()):e.type=="idle"?this._active.delete(e.parent):e.type=="priority"&&(this.priority=Un(this.source).reduce((t,n)=>Math.max(t,(xf(n)?n.priority:0)+1),0))}};function tO(e){return e.idle!==!1}function Jv(e){return!e.size||Array.from(e).every(tO)}function kf(e){e.idle||(e.idle=!0,rt(tu(e),t=>{t.done=!0}),Bo(e,{type:"idle",parent:e}))}cr.assign({createStringInterpolator:bv,to:(e,t)=>new eO(e,t)});var Zv=/^--/;function nO(e,t){return t==null||typeof t=="boolean"||t===""?"":typeof t=="number"&&t!==0&&!Zv.test(e)&&!(Qo.hasOwnProperty(e)&&Qo[e])?t+"px":(""+t).trim()}var Xv={};function rO(e,t){if(!e.nodeType||!e.setAttribute)return!1;const n=e.nodeName==="filter"||e.parentNode&&e.parentNode.nodeName==="filter",{style:r,children:i,scrollTop:s,scrollLeft:o,viewBox:c,...u}=t,d=Object.values(u),f=Object.keys(u).map(p=>n||e.hasAttribute(p)?p:Xv[p]||(Xv[p]=p.replace(/([A-Z])/g,l=>"-"+l.toLowerCase())));i!==void 0&&(e.textContent=i);for(const p in r)if(r.hasOwnProperty(p)){const l=nO(p,r[p]);Zv.test(p)?e.style.setProperty(p,l):e.style[p]=l}f.forEach((p,l)=>{e.setAttribute(p,d[l])}),s!==void 0&&(e.scrollTop=s),o!==void 0&&(e.scrollLeft=o),c!==void 0&&e.setAttribute("viewBox",c)}var Qo={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},iO=(e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1),sO=["Webkit","Ms","Moz","O"];Qo=Object.keys(Qo).reduce((e,t)=>(sO.forEach(n=>e[iO(n,t)]=e[t]),e),Qo);var oO=/^(matrix|translate|scale|rotate|skew)/,aO=/^(translate)/,cO=/^(rotate|skew)/,Of=(e,t)=>xe.num(e)&&e!==0?e+t:e,ou=(e,t)=>xe.arr(e)?e.every(n=>ou(n,t)):xe.num(e)?e===t:parseFloat(e)===t,uO=class extends ru{constructor({x:e,y:t,z:n,...r}){const i=[],s=[];(e||t||n)&&(i.push([e||0,t||0,n||0]),s.push(o=>[`translate3d(${o.map(c=>Of(c,"px")).join(",")})`,ou(o,0)])),wr(r,(o,c)=>{if(c==="transform")i.push([o||""]),s.push(u=>[u,u===""]);else if(oO.test(c)){if(delete r[c],xe.und(o))return;const u=aO.test(c)?"px":cO.test(c)?"deg":"";i.push(Un(o)),s.push(c==="rotate3d"?([d,f,p,l])=>[`rotate3d(${d},${f},${p},${Of(l,u)})`,ou(l,0)]:d=>[`${c}(${d.map(f=>Of(f,u)).join(",")})`,ou(d,c.startsWith("scale")?1:0)])}}),i.length&&(r.transform=new lO(i,s)),super(r)}},lO=class extends mv{constructor(e,t){super(),this.inputs=e,this.transforms=t,this._value=null}get(){return this._value||(this._value=this._get())}_get(){let e="",t=!0;return rt(this.inputs,(n,r)=>{const i=Tn(n[0]),[s,o]=this.transforms[r](xe.arr(i)?i:n.map(Tn));e+=" "+s,t=t&&o}),t?"none":e}observerAdded(e){e==1&&rt(this.inputs,t=>rt(t,n=>Jn(n)&&ks(n,this)))}observerRemoved(e){e==0&&rt(this.inputs,t=>rt(t,n=>Jn(n)&&Fo(n,this)))}eventObserved(e){e.type=="change"&&(this._value=null),Bo(this,e)}},dO=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"];cr.assign({batchedUpdates:Vi.unstable_batchedUpdates,createStringInterpolator:bv,colors:Zk});var fO=N6(dO,{applyAnimatedValues:rO,createAnimatedStyle:e=>new uO(e),getComponentProps:({scrollTop:e,scrollLeft:t,...n})=>n}),hO=fO.animated;function au(e){const{rows:t}=e,n=X6({from:{opacity:0},to:{opacity:1}});return m.jsxs(hO.div,{style:n,className:"flex w-full animate-pulse flex-col items-start space-y-3",children:[[...Array(t)].map((r,i)=>m.jsx("div",{className:"h-10 w-full rounded-lg bg-gray-100 p-5"},`skeleton_rows_${i}`)),m.jsx("span",{className:"sr-only",children:"Loading..."})]})}function e1({children:e,offset:t,max:n=4,initialCollapsed:r=!0}){const i=I.useRef(null),[s,o]=I.useState(0),[c,u]=I.useState(r),d=c&&I.Children.count(e)>n?n:I.Children.count(e);I.useEffect(()=>{i.current&&(s?c?i.current.style.marginBottom=`-${s-(s/d+(d-1)*(t??s/d/7.5))}px`:i.current.style.marginBottom="unset":o(i.current.offsetHeight))},[c,s]);const f=l=>(100-(d-1-l))/100,p=l=>l*(s/d-(t??s/d/7.5));return m.jsx("div",{ref:i,className:"hover:cursor-pointer",onClick:()=>d>1&&u(!c),children:I.Children.map(I.Children.toArray(e).slice(-1*d),(l,v)=>m.jsx("div",{className:`${!c&&"[&:not(:last-child)]:mb-1"} h-full w-full transition-all duration-300 ease-in-out`,style:{transform:c&&d>1?`scaleX(${f(v)}) translateY(-${p(v)}px)`:void 0},children:l}))})}const pO=_s("flex flex-shrink bg-white rounded-full transform transition-transform ease-out",{variants:{size:{md:"w-3 h-3",lg:"w-7 h-7"}}}),mO=_s("",{variants:{size:{md:"pr-4",lg:"pr-6"}}}),gO=({id:e,disabled:t,onChange:n,defaultChecked:r=!1,size:i="md"})=>{const s=t,[o,c]=I.useState(r),[u,d]=I.useState(!1),f=()=>{s||(c(!o),n&&n())},p=()=>{t||d(!0)},l=()=>{d(!1)},v=ln("relative py-0.5 pl-0.5 rounded-full",{"ring-2 ring-core-white-900 outline-core-primary-500 outline outline-2 outline-offset-2":u,"bg-core-primary-500 hover:bg-core-primary-600":o&&!t,"bg-core-gray-200 hover:bg-core-gray-300":!o&&!t,"bg-core-gray-100":t},mO({size:i})),a=i==="lg"?"translate-x-[1.375rem] ease-out":"translate-x-3.5 ease-out";return m.jsxs("div",{className:`inline-flex items-center py-1 ${s?"pointer-events-none":"cursor-pointer "}`,onClick:f,onFocus:p,children:[m.jsx("input",{className:"sr-only ",id:e,type:"checkbox",checked:o,disabled:s,onBlur:l,onChange:f,onFocus:p}),m.jsx("div",{className:v,children:m.jsx("div",{className:ln(pO({size:i}),`${o?a:""} ${s?"shadow-none":"shadow-xs"}`)})})]})},Nf=({id:e,children:t,size:n="md",description:r,toggleLeft:i=!0,disabled:s,helperText:o,defaultChecked:c=!1,label:u,required:d=!1,tooltip:f,onChange:p})=>{const l=I.useId(),v=e??l;return m.jsxs("div",{className:`flex ${i?"flex-row":"flex-row-reverse"} items-start gap-3`,children:[m.jsx(gO,{disabled:s,defaultChecked:c,id:v,size:n,onChange:p}),t||(u||r||f||o)&&m.jsxs("div",{className:"inline-flex w-full flex-col self-center",children:[m.jsx(wn,{className:ln("font-normal"),description:r,required:d,tooltip:f,htmlFor:v,disabled:s,children:u}),m.jsx(wn.Helper,{disabled:s,helperText:o})]})]})};Nf.displayName="Switch";const t1=I.createContext(null);function yO(e=!1){const t=I.useContext(t1);if(!t&&!e)throw new Error("Switch.Item must be used within a SwitchGroup or SwitchGroup.Root");return t}const n1=I.forwardRef(({toggleLeft:e=!1,size:t="md",children:n,description:r,disabled:i,helperText:s,id:o,label:c,required:u,tooltip:d},f)=>{const p=I.useId(),l=o??p,v=c??r??d??s?m.jsxs("div",{className:"inline-flex flex-col",children:[m.jsx(wn,{className:"cursor-default",description:r,required:u,tooltip:d,htmlFor:l,disabled:i,children:c}),m.jsx(wn.Helper,{disabled:i,helperText:s})]}):null;return m.jsx(t1.Provider,{value:{disabled:i,toggleLeft:e,size:t},children:m.jsxs("div",{ref:f,"aria-describedby":s?`${l}__describer`:void 0,"aria-labelledby":c?`${l}__label`:void 0,className:"flex flex-col gap-4",role:"group",children:[c??s??r??d?m.jsx("div",{className:"flex flex-col",children:v}):null,n?m.jsx("div",{className:ln("flex flex-col gap-2"),children:n}):null]})})});n1.displayName="SwitchGroup",Object.assign(n1,{Item:({disabled:e,label:t,defaultChecked:n})=>{const r=yO(),{disabled:i,size:s,toggleLeft:o}=r??{};return m.jsx(Nf,{toggleLeft:o,disabled:e??i,label:t,defaultChecked:n,size:s})}});const vO=({children:e})=>m.jsx("div",{className:"fixed bottom-0 z-10 flex h-[70px] w-full border-b-0 border-t border-gray-100 bg-white lg:bottom-auto lg:top-0 lg:h-[50px] lg:border-b lg:border-t-0",children:e}),bO=({id:e,label:t,icon:n,pathname:r,activeTab:i,setActiveTab:s})=>m.jsx(My,{className:"flex flex-grow items-center",to:r??"",children:m.jsxs("button",{className:`flex h-full flex-grow flex-col items-center justify-center gap-1 border-b-0 border-t-2 px-3 py-3 text-xs focus:outline-none lg:flex-row lg:border-b-2 lg:border-t-0 lg:text-sm ${i===e?"border-core-primary-500 text-core-primary-500":"border-transparent text-core-gray-500 hover:text-core-gray-800"}`,onClick:()=>s(e),children:[m.jsx(on,{icon:n,className:"mr-2",variant:i===e?"discovery":"secondary"}),t]})});function Fi({onSubmit:e,children:t}){const n=r=>{r.preventDefault(),e&&e(r)};return m.jsx("form",{onSubmit:n,children:t})}var r1={},In={};Object.defineProperty(In,"__esModule",{value:!0}),In.compactObject=a1,In.deprecated=IO;var wO=In.detectBrowser=kO;In.disableLog=_O,In.disableWarnings=AO,In.extractVersion=cu,In.filterStats=OO,In.log=TO,In.walkStats=uu,In.wrapPeerConnectionEvent=CO;function EO(e,t,n){return t=SO(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function SO(e){var t=xO(e,"string");return yi(t)=="symbol"?t:t+""}function xO(e,t){if(yi(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(yi(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function yi(e){"@babel/helpers - typeof";return yi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},yi(e)}var i1=!0,s1=!0;function cu(e,t,n){var r=e.match(t);return r&&r.length>=n&&parseInt(r[n],10)}function CO(e,t,n){if(e.RTCPeerConnection){var r=e.RTCPeerConnection.prototype,i=r.addEventListener;r.addEventListener=function(o,c){if(o!==t)return i.apply(this,arguments);var u=function(f){var p=n(f);p&&(c.handleEvent?c.handleEvent(p):c(p))};return this._eventMap=this._eventMap||{},this._eventMap[t]||(this._eventMap[t]=new Map),this._eventMap[t].set(c,u),i.apply(this,[o,u])};var s=r.removeEventListener;r.removeEventListener=function(o,c){if(o!==t||!this._eventMap||!this._eventMap[t])return s.apply(this,arguments);if(!this._eventMap[t].has(c))return s.apply(this,arguments);var u=this._eventMap[t].get(c);return this._eventMap[t].delete(c),this._eventMap[t].size===0&&delete this._eventMap[t],Object.keys(this._eventMap).length===0&&delete this._eventMap,s.apply(this,[o,u])},Object.defineProperty(r,"on"+t,{get:function(){return this["_on"+t]},set:function(c){this["_on"+t]&&(this.removeEventListener(t,this["_on"+t]),delete this["_on"+t]),c&&this.addEventListener(t,this["_on"+t]=c)},enumerable:!0,configurable:!0})}}function _O(e){return typeof e!="boolean"?new Error("Argument type: "+yi(e)+". Please use a boolean."):(i1=e,e?"adapter.js logging disabled":"adapter.js logging enabled")}function AO(e){return typeof e!="boolean"?new Error("Argument type: "+yi(e)+". Please use a boolean."):(s1=!e,"adapter.js deprecation warnings "+(e?"disabled":"enabled"))}function TO(){if((typeof window>"u"?"undefined":yi(window))==="object"){if(i1)return;typeof console<"u"&&typeof console.log=="function"&&console.log.apply(console,arguments)}}function IO(e,t){s1&&console.warn(e+" is deprecated, please use "+t+" instead.")}function kO(e){var t={browser:null,version:null};if(typeof e>"u"||!e.navigator||!e.navigator.userAgent)return t.browser="Not a browser.",t;var n=e.navigator;if(n.userAgentData&&n.userAgentData.brands){var r=n.userAgentData.brands.find(function(i){return i.brand==="Chromium"});if(r)return{browser:"chrome",version:parseInt(r.version,10)}}if(n.mozGetUserMedia)t.browser="firefox",t.version=cu(n.userAgent,/Firefox\/(\d+)\./,1);else if(n.webkitGetUserMedia||e.isSecureContext===!1&&e.webkitRTCPeerConnection)t.browser="chrome",t.version=cu(n.userAgent,/Chrom(e|ium)\/(\d+)\./,2);else if(e.RTCPeerConnection&&n.userAgent.match(/AppleWebKit\/(\d+)\./))t.browser="safari",t.version=cu(n.userAgent,/AppleWebKit\/(\d+)\./,1),t.supportsUnifiedPlan=e.RTCRtpTransceiver&&"currentDirection"in e.RTCRtpTransceiver.prototype;else return t.browser="Not a supported browser.",t;return t}function o1(e){return Object.prototype.toString.call(e)==="[object Object]"}function a1(e){return o1(e)?Object.keys(e).reduce(function(t,n){var r=o1(e[n]),i=r?a1(e[n]):e[n],s=r&&!Object.keys(i).length;return i===void 0||s?t:Object.assign(t,EO({},n,i))},{}):e}function uu(e,t,n){!t||n.has(t.id)||(n.set(t.id,t),Object.keys(t).forEach(function(r){r.endsWith("Id")?uu(e,e.get(t[r]),n):r.endsWith("Ids")&&t[r].forEach(function(i){uu(e,e.get(i),n)})}))}function OO(e,t,n){var r=n?"outbound-rtp":"inbound-rtp",i=new Map;if(t===null)return i;var s=[];return e.forEach(function(o){o.type==="track"&&o.trackIdentifier===t.id&&s.push(o)}),s.forEach(function(o){e.forEach(function(c){c.type===r&&c.trackId===o.id&&uu(e,c,i)})}),i}Object.defineProperty(r1,"__esModule",{value:!0});var NO=r1.shimGetUserMedia=DO,RO=MO(In);function c1(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(c1=function(i){return i?n:t})(e)}function MO(e,t){if(e&&e.__esModule)return e;if(e===null||vi(e)!="object"&&typeof e!="function")return{default:e};var n=c1(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if(s!=="default"&&{}.hasOwnProperty.call(e,s)){var o=i?Object.getOwnPropertyDescriptor(e,s):null;o&&(o.get||o.set)?Object.defineProperty(r,s,o):r[s]=e[s]}return r.default=e,n&&n.set(e,r),r}function vi(e){"@babel/helpers - typeof";return vi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},vi(e)}var u1=RO.log;function DO(e,t){var n=e&&e.navigator;if(n.mediaDevices){var r=function(d){if(vi(d)!=="object"||d.mandatory||d.optional)return d;var f={};return Object.keys(d).forEach(function(p){if(!(p==="require"||p==="advanced"||p==="mediaSource")){var l=vi(d[p])==="object"?d[p]:{ideal:d[p]};l.exact!==void 0&&typeof l.exact=="number"&&(l.min=l.max=l.exact);var v=function(y,g){return y?y+g.charAt(0).toUpperCase()+g.slice(1):g==="deviceId"?"sourceId":g};if(l.ideal!==void 0){f.optional=f.optional||[];var a={};typeof l.ideal=="number"?(a[v("min",p)]=l.ideal,f.optional.push(a),a={},a[v("max",p)]=l.ideal,f.optional.push(a)):(a[v("",p)]=l.ideal,f.optional.push(a))}l.exact!==void 0&&typeof l.exact!="number"?(f.mandatory=f.mandatory||{},f.mandatory[v("",p)]=l.exact):["min","max"].forEach(function(h){l[h]!==void 0&&(f.mandatory=f.mandatory||{},f.mandatory[v(h,p)]=l[h])})}}),d.advanced&&(f.optional=(f.optional||[]).concat(d.advanced)),f},i=function(d,f){if(t.version>=61)return f(d);if(d=JSON.parse(JSON.stringify(d)),d&&vi(d.audio)==="object"){var p=function(y,g,b){g in y&&!(b in y)&&(y[b]=y[g],delete y[g])};d=JSON.parse(JSON.stringify(d)),p(d.audio,"autoGainControl","googAutoGainControl"),p(d.audio,"noiseSuppression","googNoiseSuppression"),d.audio=r(d.audio)}if(d&&vi(d.video)==="object"){var l=d.video.facingMode;l=l&&(vi(l)==="object"?l:{ideal:l});var v=t.version<66;if(l&&(l.exact==="user"||l.exact==="environment"||l.ideal==="user"||l.ideal==="environment")&&!(n.mediaDevices.getSupportedConstraints&&n.mediaDevices.getSupportedConstraints().facingMode&&!v)){delete d.video.facingMode;var a;if(l.exact==="environment"||l.ideal==="environment"?a=["back","rear"]:(l.exact==="user"||l.ideal==="user")&&(a=["front"]),a)return n.mediaDevices.enumerateDevices().then(function(h){h=h.filter(function(g){return g.kind==="videoinput"});var y=h.find(function(g){return a.some(function(b){return g.label.toLowerCase().includes(b)})});return!y&&h.length&&a.includes("back")&&(y=h[h.length-1]),y&&(d.video.deviceId=l.exact?{exact:y.deviceId}:{ideal:y.deviceId}),d.video=r(d.video),u1("chrome: "+JSON.stringify(d)),f(d)})}d.video=r(d.video)}return u1("chrome: "+JSON.stringify(d)),f(d)},s=function(d){return t.version>=64?d:{name:{PermissionDeniedError:"NotAllowedError",PermissionDismissedError:"NotAllowedError",InvalidStateError:"NotAllowedError",DevicesNotFoundError:"NotFoundError",ConstraintNotSatisfiedError:"OverconstrainedError",TrackStartError:"NotReadableError",MediaDeviceFailedDueToShutdown:"NotAllowedError",MediaDeviceKillSwitchOn:"NotAllowedError",TabCaptureError:"AbortError",ScreenCaptureError:"AbortError",DeviceCaptureError:"AbortError"}[d.name]||d.name,message:d.message,constraint:d.constraint||d.constraintName,toString:function(){return this.name+(this.message&&": ")+this.message}}},o=function(d,f,p){i(d,function(l){n.webkitGetUserMedia(l,f,function(v){p&&p(s(v))})})};if(n.getUserMedia=o.bind(n),n.mediaDevices.getUserMedia){var c=n.mediaDevices.getUserMedia.bind(n.mediaDevices);n.mediaDevices.getUserMedia=function(u){return i(u,function(d){return c(d).then(function(f){if(d.audio&&!f.getAudioTracks().length||d.video&&!f.getVideoTracks().length)throw f.getTracks().forEach(function(p){p.stop()}),new DOMException("","NotFoundError");return f},function(f){return Promise.reject(s(f))})})}}}}var l1={};Object.defineProperty(l1,"__esModule",{value:!0});var PO=l1.shimGetUserMedia=BO,jO=LO(In);function d1(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(d1=function(i){return i?n:t})(e)}function LO(e,t){if(e&&e.__esModule)return e;if(e===null||Ns(e)!="object"&&typeof e!="function")return{default:e};var n=d1(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if(s!=="default"&&{}.hasOwnProperty.call(e,s)){var o=i?Object.getOwnPropertyDescriptor(e,s):null;o&&(o.get||o.set)?Object.defineProperty(r,s,o):r[s]=e[s]}return r.default=e,n&&n.set(e,r),r}function Ns(e){"@babel/helpers - typeof";return Ns=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ns(e)}function BO(e,t){var n=e&&e.navigator,r=e&&e.MediaStreamTrack;if(n.getUserMedia=function(u,d,f){jO.deprecated("navigator.getUserMedia","navigator.mediaDevices.getUserMedia"),n.mediaDevices.getUserMedia(u).then(d,f)},!(t.version>55&&"autoGainControl"in n.mediaDevices.getSupportedConstraints())){var i=function(d,f,p){f in d&&!(p in d)&&(d[p]=d[f],delete d[f])},s=n.mediaDevices.getUserMedia.bind(n.mediaDevices);if(n.mediaDevices.getUserMedia=function(u){return Ns(u)==="object"&&Ns(u.audio)==="object"&&(u=JSON.parse(JSON.stringify(u)),i(u.audio,"autoGainControl","mozAutoGainControl"),i(u.audio,"noiseSuppression","mozNoiseSuppression")),s(u)},r&&r.prototype.getSettings){var o=r.prototype.getSettings;r.prototype.getSettings=function(){var u=o.apply(this,arguments);return i(u,"mozAutoGainControl","autoGainControl"),i(u,"mozNoiseSuppression","noiseSuppression"),u}}if(r&&r.prototype.applyConstraints){var c=r.prototype.applyConstraints;r.prototype.applyConstraints=function(u){return this.kind==="audio"&&Ns(u)==="object"&&(u=JSON.parse(JSON.stringify(u)),i(u,"autoGainControl","mozAutoGainControl"),i(u,"noiseSuppression","mozNoiseSuppression")),c.apply(this,[u])}}}}var Sr={};Object.defineProperty(Sr,"__esModule",{value:!0}),Sr.shimAudioContext=KO,Sr.shimCallbacksAPI=$O,Sr.shimConstraints=p1,Sr.shimCreateOfferLegacy=WO;var FO=Sr.shimGetUserMedia=GO;Sr.shimLocalStreamsAPI=VO,Sr.shimRTCIceServerUrls=HO,Sr.shimRemoteStreamsAPI=qO,Sr.shimTrackEventTransceiver=YO;var f1=UO(In);function h1(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(h1=function(i){return i?n:t})(e)}function UO(e,t){if(e&&e.__esModule)return e;if(e===null||bi(e)!="object"&&typeof e!="function")return{default:e};var n=h1(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if(s!=="default"&&{}.hasOwnProperty.call(e,s)){var o=i?Object.getOwnPropertyDescriptor(e,s):null;o&&(o.get||o.set)?Object.defineProperty(r,s,o):r[s]=e[s]}return r.default=e,n&&n.set(e,r),r}function bi(e){"@babel/helpers - typeof";return bi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},bi(e)}function VO(e){if(!(bi(e)!=="object"||!e.RTCPeerConnection)){if("getLocalStreams"in e.RTCPeerConnection.prototype||(e.RTCPeerConnection.prototype.getLocalStreams=function(){return this._localStreams||(this._localStreams=[]),this._localStreams}),!("addStream"in e.RTCPeerConnection.prototype)){var t=e.RTCPeerConnection.prototype.addTrack;e.RTCPeerConnection.prototype.addStream=function(r){var i=this;this._localStreams||(this._localStreams=[]),this._localStreams.includes(r)||this._localStreams.push(r),r.getAudioTracks().forEach(function(s){return t.call(i,s,r)}),r.getVideoTracks().forEach(function(s){return t.call(i,s,r)})},e.RTCPeerConnection.prototype.addTrack=function(r){for(var i=this,s=arguments.length,o=new Array(s>1?s-1:0),c=1;c<s;c++)o[c-1]=arguments[c];return o&&o.forEach(function(u){i._localStreams?i._localStreams.includes(u)||i._localStreams.push(u):i._localStreams=[u]}),t.apply(this,arguments)}}"removeStream"in e.RTCPeerConnection.prototype||(e.RTCPeerConnection.prototype.removeStream=function(r){var i=this;this._localStreams||(this._localStreams=[]);var s=this._localStreams.indexOf(r);if(s!==-1){this._localStreams.splice(s,1);var o=r.getTracks();this.getSenders().forEach(function(c){o.includes(c.track)&&i.removeTrack(c)})}})}}function qO(e){if(!(bi(e)!=="object"||!e.RTCPeerConnection)&&("getRemoteStreams"in e.RTCPeerConnection.prototype||(e.RTCPeerConnection.prototype.getRemoteStreams=function(){return this._remoteStreams?this._remoteStreams:[]}),!("onaddstream"in e.RTCPeerConnection.prototype))){Object.defineProperty(e.RTCPeerConnection.prototype,"onaddstream",{get:function(){return this._onaddstream},set:function(r){var i=this;this._onaddstream&&(this.removeEventListener("addstream",this._onaddstream),this.removeEventListener("track",this._onaddstreampoly)),this.addEventListener("addstream",this._onaddstream=r),this.addEventListener("track",this._onaddstreampoly=function(s){s.streams.forEach(function(o){if(i._remoteStreams||(i._remoteStreams=[]),!i._remoteStreams.includes(o)){i._remoteStreams.push(o);var c=new Event("addstream");c.stream=o,i.dispatchEvent(c)}})})}});var t=e.RTCPeerConnection.prototype.setRemoteDescription;e.RTCPeerConnection.prototype.setRemoteDescription=function(){var r=this;return this._onaddstreampoly||this.addEventListener("track",this._onaddstreampoly=function(i){i.streams.forEach(function(s){if(r._remoteStreams||(r._remoteStreams=[]),!(r._remoteStreams.indexOf(s)>=0)){r._remoteStreams.push(s);var o=new Event("addstream");o.stream=s,r.dispatchEvent(o)}})}),t.apply(r,arguments)}}}function $O(e){if(!(bi(e)!=="object"||!e.RTCPeerConnection)){var t=e.RTCPeerConnection.prototype,n=t.createOffer,r=t.createAnswer,i=t.setLocalDescription,s=t.setRemoteDescription,o=t.addIceCandidate;t.createOffer=function(d,f){var p=arguments.length>=2?arguments[2]:arguments[0],l=n.apply(this,[p]);return f?(l.then(d,f),Promise.resolve()):l},t.createAnswer=function(d,f){var p=arguments.length>=2?arguments[2]:arguments[0],l=r.apply(this,[p]);return f?(l.then(d,f),Promise.resolve()):l};var c=function(d,f,p){var l=i.apply(this,[d]);return p?(l.then(f,p),Promise.resolve()):l};t.setLocalDescription=c,c=function(d,f,p){var l=s.apply(this,[d]);return p?(l.then(f,p),Promise.resolve()):l},t.setRemoteDescription=c,c=function(d,f,p){var l=o.apply(this,[d]);return p?(l.then(f,p),Promise.resolve()):l},t.addIceCandidate=c}}function GO(e){var t=e&&e.navigator;if(t.mediaDevices&&t.mediaDevices.getUserMedia){var n=t.mediaDevices,r=n.getUserMedia.bind(n);t.mediaDevices.getUserMedia=function(i){return r(p1(i))}}!t.getUserMedia&&t.mediaDevices&&t.mediaDevices.getUserMedia&&(t.getUserMedia=(function(s,o,c){t.mediaDevices.getUserMedia(s).then(o,c)}).bind(t))}function p1(e){return e&&e.video!==void 0?Object.assign({},e,{video:f1.compactObject(e.video)}):e}function HO(e){if(e.RTCPeerConnection){var t=e.RTCPeerConnection;e.RTCPeerConnection=function(r,i){if(r&&r.iceServers){for(var s=[],o=0;o<r.iceServers.length;o++){var c=r.iceServers[o];c.urls===void 0&&c.url?(f1.deprecated("RTCIceServer.url","RTCIceServer.urls"),c=JSON.parse(JSON.stringify(c)),c.urls=c.url,delete c.url,s.push(c)):s.push(r.iceServers[o])}r.iceServers=s}return new t(r,i)},e.RTCPeerConnection.prototype=t.prototype,"generateCertificate"in t&&Object.defineProperty(e.RTCPeerConnection,"generateCertificate",{get:function(){return t.generateCertificate}})}}function YO(e){bi(e)==="object"&&e.RTCTrackEvent&&"receiver"in e.RTCTrackEvent.prototype&&!("transceiver"in e.RTCTrackEvent.prototype)&&Object.defineProperty(e.RTCTrackEvent.prototype,"transceiver",{get:function(){return{receiver:this.receiver}}})}function WO(e){var t=e.RTCPeerConnection.prototype.createOffer;e.RTCPeerConnection.prototype.createOffer=function(r){if(r){typeof r.offerToReceiveAudio<"u"&&(r.offerToReceiveAudio=!!r.offerToReceiveAudio);var i=this.getTransceivers().find(function(o){return o.receiver.track.kind==="audio"});r.offerToReceiveAudio===!1&&i?i.direction==="sendrecv"?i.setDirection?i.setDirection("sendonly"):i.direction="sendonly":i.direction==="recvonly"&&(i.setDirection?i.setDirection("inactive"):i.direction="inactive"):r.offerToReceiveAudio===!0&&!i&&this.addTransceiver("audio",{direction:"recvonly"}),typeof r.offerToReceiveVideo<"u"&&(r.offerToReceiveVideo=!!r.offerToReceiveVideo);var s=this.getTransceivers().find(function(o){return o.receiver.track.kind==="video"});r.offerToReceiveVideo===!1&&s?s.direction==="sendrecv"?s.setDirection?s.setDirection("sendonly"):s.direction="sendonly":s.direction==="recvonly"&&(s.setDirection?s.setDirection("inactive"):s.direction="inactive"):r.offerToReceiveVideo===!0&&!s&&this.addTransceiver("video",{direction:"recvonly"})}return t.apply(this,arguments)}}function KO(e){bi(e)!=="object"||e.AudioContext||(e.AudioContext=e.webkitAudioContext)}var m1=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)},g1=(e,t,n)=>(m1(e,t,"read from private field"),n?n.call(e):t.get(e)),zO=(e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)},QO=(e,t,n,r)=>(m1(e,t,"write to private field"),t.set(e,n),n);const y1=["Aztec","Codabar","Code128","Code39","Code93","DataBar","DataBarExpanded","DataMatrix","DXFilmEdge","EAN-13","EAN-8","ITF","Linear-Codes","Matrix-Codes","MaxiCode","MicroQRCode","None","PDF417","QRCode","rMQRCode","UPC-A","UPC-E"];function JO(e){return e.join("|")}function ZO(e){const t=v1(e);let n=0,r=y1.length-1;for(;n<=r;){const i=Math.floor((n+r)/2),s=y1[i],o=v1(s);if(o===t)return s;o<t?n=i+1:r=i-1}return"None"}function v1(e){return e.toLowerCase().replace(/_-\[\]/g,"")}function XO(e,t){return e.Binarizer[t]}function eN(e,t){return e.CharacterSet[t]}const tN=["Text","Binary","Mixed","GS1","ISO15434","UnknownECI"];function nN(e){return tN[e.value]}function rN(e,t){return e.EanAddOnSymbol[t]}function iN(e,t){return e.TextMode[t]}const Rs={formats:[],tryHarder:!0,tryRotate:!0,tryInvert:!0,tryDownscale:!0,binarizer:"LocalAverage",isPure:!1,downscaleFactor:3,downscaleThreshold:500,minLineCount:2,maxNumberOfSymbols:255,tryCode39ExtendedMode:!1,validateCode39CheckSum:!1,validateITFCheckSum:!1,returnCodabarStartEnd:!1,returnErrors:!1,eanAddOnSymbol:"Read",textMode:"Plain",characterSet:"Unknown"};function b1(e,t){return{...t,formats:JO(t.formats),binarizer:XO(e,t.binarizer),eanAddOnSymbol:rN(e,t.eanAddOnSymbol),textMode:iN(e,t.textMode),characterSet:eN(e,t.characterSet)}}function w1(e){return{...e,format:ZO(e.format),eccLevel:e.eccLevel,contentType:nN(e.contentType)}}const sN={locateFile:(e,t)=>{const n=e.match(/_(.+?)\.wasm$/);return n?`https://fastly.jsdelivr.net/npm/zxing-wasm@1.2.11/dist/${n[1]}/${e}`:t+e}};let E1=new WeakMap;function Rf(e,t){var n;const r=E1.get(e);if(r!=null&&r.modulePromise&&t===void 0)return r.modulePromise;const i=(n=r==null?void 0:r.moduleOverrides)!=null?n:sN,s=e({...i});return E1.set(e,{moduleOverrides:i,modulePromise:s}),s}async function oN(e,t,n=Rs){const r={...Rs,...n},i=await Rf(e),{size:s}=t,o=new Uint8Array(await t.arrayBuffer()),c=i._malloc(s);i.HEAPU8.set(o,c);const u=i.readBarcodesFromImage(c,s,b1(i,r));i._free(c);const d=[];for(let f=0;f<u.size();++f)d.push(w1(u.get(f)));return d}async function aN(e,t,n=Rs){const r={...Rs,...n},i=await Rf(e),{data:s,width:o,height:c,data:{byteLength:u}}=t,d=i._malloc(u);i.HEAPU8.set(s,d);const f=i.readBarcodesFromPixmap(d,o,c,b1(i,r));i._free(d);const p=[];for(let l=0;l<f.size();++l)p.push(w1(f.get(l)));return p}({...Rs,formats:[...Rs.formats]});var Mf=(()=>{var e=typeof document<"u"&&document.currentScript?document.currentScript.src:void 0;return function(t={}){var n,r=t,i,s;r.ready=new Promise((C,x)=>{i=C,s=x});var o=Object.assign({},r),c="./this.program",u=typeof window=="object",d=typeof Bun<"u",f=typeof((n=globalThis.WebAssembly)==null?void 0:n.instantiate)=="function",p=typeof importScripts=="function";typeof process=="object"&&typeof process.versions=="object"&&process.versions.node;var l="";function v(C){return r.locateFile?r.locateFile(C,l):l+C}var a;(u||p||d)&&(p?l=self.location.href:typeof document<"u"&&document.currentScript&&(l=document.currentScript.src),e&&(l=e),l.startsWith("blob:")?l="":l=l.substr(0,l.replace(/[?#].*/,"").lastIndexOf("/")+1),p&&(a=C=>{var x=new XMLHttpRequest;return x.open("GET",C,!1),x.responseType="arraybuffer",x.send(null),new Uint8Array(x.response)}));var h=r.print||console.log.bind(console),y=r.printErr||console.error.bind(console);Object.assign(r,o),o=null,r.arguments&&r.arguments,r.thisProgram&&(c=r.thisProgram),r.quit&&r.quit;var g;r.wasmBinary&&(g=r.wasmBinary);var b,w=!1,E,S,A,T,O,M,D,F;function V(){var C=b.buffer;r.HEAP8=E=new Int8Array(C),r.HEAP16=A=new Int16Array(C),r.HEAPU8=S=new Uint8Array(C),r.HEAPU16=T=new Uint16Array(C),r.HEAP32=O=new Int32Array(C),r.HEAPU32=M=new Uint32Array(C),r.HEAPF32=D=new Float32Array(C),r.HEAPF64=F=new Float64Array(C)}var G=[],U=[],N=[];function L(){if(r.preRun)for(typeof r.preRun=="function"&&(r.preRun=[r.preRun]);r.preRun.length;)ee(r.preRun.shift());Z(G)}function Y(){Z(U)}function z(){if(r.postRun)for(typeof r.postRun=="function"&&(r.postRun=[r.postRun]);r.postRun.length;)re(r.postRun.shift());Z(N)}function ee(C){G.unshift(C)}function te(C){U.unshift(C)}function re(C){N.unshift(C)}var he=0,ue=null;function ye(C){var x;he++,(x=r.monitorRunDependencies)===null||x===void 0||x.call(r,he)}function pe(C){var x;if(he--,(x=r.monitorRunDependencies)===null||x===void 0||x.call(r,he),he==0&&ue){var k=ue;ue=null,k()}}function q(C){var x;(x=r.onAbort)===null||x===void 0||x.call(r,C),C="Aborted("+C+")",y(C),w=!0,C+=". Build with -sASSERTIONS for more info.";var k=new WebAssembly.RuntimeError(C);throw s(k),k}var $="data:application/octet-stream;base64,",Q=C=>C.startsWith($),_;_="zxing_reader.wasm",Q(_)||(_=v(_));function j(C){if(C==_&&g)return new Uint8Array(g);if(a)return a(C);throw"both async and sync fetching of the wasm failed"}function B(C){return!g&&(u||p||d||f)&&typeof fetch=="function"?fetch(C,{credentials:"same-origin"}).then(x=>{if(!x.ok)throw`failed to load wasm binary file at '${C}'`;return x.arrayBuffer()}).catch(()=>j(C)):Promise.resolve().then(()=>j(C))}function R(C,x,k){return B(C).then(P=>WebAssembly.instantiate(P,x)).then(k,P=>{y(`failed to asynchronously prepare wasm: ${P}`),q(P)})}function X(C,x,k,P){return!C&&typeof WebAssembly.instantiateStreaming=="function"&&!Q(x)&&typeof fetch=="function"?fetch(x,{credentials:"same-origin"}).then(K=>{var ne=WebAssembly.instantiateStreaming(K,k);return ne.then(P,function(oe){return y(`wasm streaming compile failed: ${oe}`),y("falling back to ArrayBuffer instantiation"),R(x,k,P)})}):R(x,k,P)}function J(){var C={a:r9};function x(P,K){return Pt=P.exports,b=Pt.ma,V(),yb=Pt.qa,te(Pt.na),pe(),Pt}ye();function k(P){x(P.instance)}if(r.instantiateWasm)try{return r.instantiateWasm(C,x)}catch(P){y(`Module.instantiateWasm callback failed with error: ${P}`),s(P)}return X(g,_,C,k).catch(s),{}}var Z=C=>{for(;C.length>0;)C.shift()(r)};r.noExitRuntime;var W=[],fe=0,ge=C=>{var x=new be(C);return x.get_caught()||(x.set_caught(!0),fe--),x.set_rethrown(!1),W.push(x),Rb(x.excPtr),x.get_exception_ptr()},le=0,ie=()=>{kt(0,0);var C=W.pop();Nb(C.excPtr),le=0};class be{constructor(x){this.excPtr=x,this.ptr=x-24}set_type(x){M[this.ptr+4>>2]=x}get_type(){return M[this.ptr+4>>2]}set_destructor(x){M[this.ptr+8>>2]=x}get_destructor(){return M[this.ptr+8>>2]}set_caught(x){x=x?1:0,E[this.ptr+12]=x}get_caught(){return E[this.ptr+12]!=0}set_rethrown(x){x=x?1:0,E[this.ptr+13]=x}get_rethrown(){return E[this.ptr+13]!=0}init(x,k){this.set_adjusted_ptr(0),this.set_type(x),this.set_destructor(k)}set_adjusted_ptr(x){M[this.ptr+16>>2]=x}get_adjusted_ptr(){return M[this.ptr+16>>2]}get_exception_ptr(){var x=Db(this.get_type());if(x)return M[this.excPtr>>2];var k=this.get_adjusted_ptr();return k!==0?k:this.excPtr}}var ae=C=>{throw le||(le=C),le},Ce=C=>{var x=le;if(!x)return ca(0),0;var k=new be(x);k.set_adjusted_ptr(x);var P=k.get_type();if(!P)return ca(0),x;for(var K in C){var ne=C[K];if(ne===0||ne===P)break;var oe=k.ptr+16;if(Mb(ne,P,oe))return ca(ne),x}return ca(P),x},_e=()=>Ce([]),ze=C=>Ce([C]),it=(C,x)=>Ce([C,x]),yt=()=>{var C=W.pop();C||q("no exception to throw");var x=C.excPtr;throw C.get_rethrown()||(W.push(C),C.set_rethrown(!0),C.set_caught(!1),fe++),le=x,le},ht=(C,x,k)=>{var P=new be(C);throw P.init(x,k),le=C,fe++,le},Zn=()=>fe,lt={},Xt=C=>{for(;C.length;){var x=C.pop(),k=C.pop();k(x)}};function pt(C){return this.fromWireType(M[C>>2])}var Oe={},an={},Mt={},dn,en=C=>{throw new dn(C)},fn=(C,x,k)=>{C.forEach(function(ce){Mt[ce]=x});function P(ce){var me=k(ce);me.length!==C.length&&en("Mismatched type converter count");for(var Ee=0;Ee<C.length;++Ee)De(C[Ee],me[Ee])}var K=new Array(x.length),ne=[],oe=0;x.forEach((ce,me)=>{an.hasOwnProperty(ce)?K[me]=an[ce]:(ne.push(ce),Oe.hasOwnProperty(ce)||(Oe[ce]=[]),Oe[ce].push(()=>{K[me]=an[ce],++oe,oe===ne.length&&P(K)}))}),ne.length===0&&P(K)},On=C=>{var x=lt[C];delete lt[C];var k=x.rawConstructor,P=x.rawDestructor,K=x.fields,ne=K.map(oe=>oe.getterReturnType).concat(K.map(oe=>oe.setterArgumentType));fn([C],ne,oe=>{var ce={};return K.forEach((me,Ee)=>{var Ie=me.fieldName,Je=oe[Ee],Be=me.getter,ot=me.getterContext,Bt=oe[Ee+K.length],pn=me.setter,Ot=me.setterContext;ce[Ie]={read:tn=>Je.fromWireType(Be(ot,tn)),write:(tn,we)=>{var ke=[];pn(Ot,tn,Bt.toWireType(ke,we)),Xt(ke)}}}),[{name:x.name,fromWireType:me=>{var Ee={};for(var Ie in ce)Ee[Ie]=ce[Ie].read(me);return P(me),Ee},toWireType:(me,Ee)=>{for(var Ie in ce)if(!(Ie in Ee))throw new TypeError(`Missing field: "${Ie}"`);var Je=k();for(Ie in ce)ce[Ie].write(Je,Ee[Ie]);return me!==null&&me.push(P,Je),Je},argPackAdvance:Ye,readValueFromPointer:pt,destructorFunction:P}]})},qn=(C,x,k,P,K)=>{},Sn=()=>{for(var C=new Array(256),x=0;x<256;++x)C[x]=String.fromCharCode(x);hn=C},hn,xt=C=>{for(var x="",k=C;S[k];)x+=hn[S[k++]];return x},Xn,Ae=C=>{throw new Xn(C)};function Qe(C,x){let k=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};var P=x.name;if(C||Ae(`type "${P}" must have a positive integer typeid pointer`),an.hasOwnProperty(C)){if(k.ignoreDuplicateRegistrations)return;Ae(`Cannot register type '${P}' twice`)}if(an[C]=x,delete Mt[C],Oe.hasOwnProperty(C)){var K=Oe[C];delete Oe[C],K.forEach(ne=>ne())}}function De(C,x){let k=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(!("argPackAdvance"in x))throw new TypeError("registerType registeredInstance requires argPackAdvance");return Qe(C,x,k)}var Ye=8,Tt=(C,x,k,P)=>{x=xt(x),De(C,{name:x,fromWireType:function(K){return!!K},toWireType:function(K,ne){return ne?k:P},argPackAdvance:Ye,readValueFromPointer:function(K){return this.fromWireType(S[K])},destructorFunction:null})},Ps=C=>({count:C.count,deleteScheduled:C.deleteScheduled,preservePointerOnDelete:C.preservePointerOnDelete,ptr:C.ptr,ptrType:C.ptrType,smartPtr:C.smartPtr,smartPtrType:C.smartPtrType}),wi=C=>{function x(k){return k.$$.ptrType.registeredClass.name}Ae(x(C)+" instance already deleted")},js=!1,sa=C=>{},Yf=C=>{C.smartPtr?C.smartPtrType.rawDestructor(C.smartPtr):C.ptrType.registeredClass.rawDestructor(C.ptr)},gu=C=>{C.count.value-=1;var x=C.count.value===0;x&&Yf(C)},yu=(C,x,k)=>{if(x===k)return C;if(k.baseClass===void 0)return null;var P=yu(C,x,k.baseClass);return P===null?null:k.downcast(P)},vu={},H=()=>Object.keys(We).length,ve=()=>{var C=[];for(var x in We)We.hasOwnProperty(x)&&C.push(We[x]);return C},Te=[],Re=()=>{for(;Te.length;){var C=Te.pop();C.$$.deleteScheduled=!1,C.delete()}},et,gt=C=>{et=C,Te.length&&et&&et(Re)},tt=()=>{r.getInheritedInstanceCount=H,r.getLiveInheritedInstances=ve,r.flushPendingDeletes=Re,r.setDelayFunction=gt},We={},cn=(C,x)=>{for(x===void 0&&Ae("ptr should not be undefined");C.baseClass;)x=C.upcast(x),C=C.baseClass;return x},It=(C,x)=>(x=cn(C,x),We[x]),Et=(C,x)=>{(!x.ptrType||!x.ptr)&&en("makeClassHandle requires ptr and ptrType");var k=!!x.smartPtrType,P=!!x.smartPtr;return k!==P&&en("Both smartPtrType and smartPtr must be specified"),x.count={value:1},er(Object.create(C,{$$:{value:x,writable:!0}}))};function Nn(C){var x=this.getPointee(C);if(!x)return this.destructor(C),null;var k=It(this.registeredClass,x);if(k!==void 0){if(k.$$.count.value===0)return k.$$.ptr=x,k.$$.smartPtr=C,k.clone();var P=k.clone();return this.destructor(C),P}function K(){return this.isSmartPointer?Et(this.registeredClass.instancePrototype,{ptrType:this.pointeeType,ptr:x,smartPtrType:this,smartPtr:C}):Et(this.registeredClass.instancePrototype,{ptrType:this,ptr:C})}var ne=this.registeredClass.getActualType(x),oe=vu[ne];if(!oe)return K.call(this);var ce;this.isConst?ce=oe.constPointerType:ce=oe.pointerType;var me=yu(x,this.registeredClass,ce.registeredClass);return me===null?K.call(this):this.isSmartPointer?Et(ce.registeredClass.instancePrototype,{ptrType:ce,ptr:me,smartPtrType:this,smartPtr:C}):Et(ce.registeredClass.instancePrototype,{ptrType:ce,ptr:me})}var er=C=>typeof FinalizationRegistry>"u"?(er=x=>x,C):(js=new FinalizationRegistry(x=>{gu(x.$$)}),er=x=>{var k=x.$$,P=!!k.smartPtr;if(P){var K={$$:k};js.register(x,K,x)}return x},sa=x=>js.unregister(x),er(C)),Fr=()=>{Object.assign(zt.prototype,{isAliasOf(C){if(!(this instanceof zt)||!(C instanceof zt))return!1;var x=this.$$.ptrType.registeredClass,k=this.$$.ptr;C.$$=C.$$;for(var P=C.$$.ptrType.registeredClass,K=C.$$.ptr;x.baseClass;)k=x.upcast(k),x=x.baseClass;for(;P.baseClass;)K=P.upcast(K),P=P.baseClass;return x===P&&k===K},clone(){if(this.$$.ptr||wi(this),this.$$.preservePointerOnDelete)return this.$$.count.value+=1,this;var C=er(Object.create(Object.getPrototypeOf(this),{$$:{value:Ps(this.$$)}}));return C.$$.count.value+=1,C.$$.deleteScheduled=!1,C},delete(){this.$$.ptr||wi(this),this.$$.deleteScheduled&&!this.$$.preservePointerOnDelete&&Ae("Object already scheduled for deletion"),sa(this),gu(this.$$),this.$$.preservePointerOnDelete||(this.$$.smartPtr=void 0,this.$$.ptr=void 0)},isDeleted(){return!this.$$.ptr},deleteLater(){return this.$$.ptr||wi(this),this.$$.deleteScheduled&&!this.$$.preservePointerOnDelete&&Ae("Object already scheduled for deletion"),Te.push(this),Te.length===1&&et&&et(Re),this.$$.deleteScheduled=!0,this}})};function zt(){}var Ur=(C,x)=>Object.defineProperty(x,"name",{value:C}),bu=(C,x,k)=>{if(C[x].overloadTable===void 0){var P=C[x];C[x]=function(){for(var K=arguments.length,ne=new Array(K),oe=0;oe<K;oe++)ne[oe]=arguments[oe];return C[x].overloadTable.hasOwnProperty(ne.length)||Ae(`Function '${k}' called with an invalid number of arguments (${ne.length}) - expects one of (${C[x].overloadTable})!`),C[x].overloadTable[ne.length].apply(this,ne)},C[x].overloadTable=[],C[x].overloadTable[P.argCount]=P}},oa=(C,x,k)=>{r.hasOwnProperty(C)?((k===void 0||r[C].overloadTable!==void 0&&r[C].overloadTable[k]!==void 0)&&Ae(`Cannot register public name '${C}' twice`),bu(r,C,C),r.hasOwnProperty(k)&&Ae(`Cannot register multiple overloads of a function with the same number of arguments (${k})!`),r[C].overloadTable[k]=x):(r[C]=x,k!==void 0&&(r[C].numArguments=k))},L8=48,B8=57,F8=C=>{if(C===void 0)return"_unknown";C=C.replace(/[^a-zA-Z0-9_]/g,"$");var x=C.charCodeAt(0);return x>=L8&&x<=B8?`_${C}`:C};function U8(C,x,k,P,K,ne,oe,ce){this.name=C,this.constructor=x,this.instancePrototype=k,this.rawDestructor=P,this.baseClass=K,this.getActualType=ne,this.upcast=oe,this.downcast=ce,this.pureVirtualFunctions=[]}var Wf=(C,x,k)=>{for(;x!==k;)x.upcast||Ae(`Expected null or instance of ${k.name}, got an instance of ${x.name}`),C=x.upcast(C),x=x.baseClass;return C};function V8(C,x){if(x===null)return this.isReference&&Ae(`null is not a valid ${this.name}`),0;x.$$||Ae(`Cannot pass "${Xf(x)}" as a ${this.name}`),x.$$.ptr||Ae(`Cannot pass deleted object as a pointer of type ${this.name}`);var k=x.$$.ptrType.registeredClass,P=Wf(x.$$.ptr,k,this.registeredClass);return P}function q8(C,x){var k;if(x===null)return this.isReference&&Ae(`null is not a valid ${this.name}`),this.isSmartPointer?(k=this.rawConstructor(),C!==null&&C.push(this.rawDestructor,k),k):0;(!x||!x.$$)&&Ae(`Cannot pass "${Xf(x)}" as a ${this.name}`),x.$$.ptr||Ae(`Cannot pass deleted object as a pointer of type ${this.name}`),!this.isConst&&x.$$.ptrType.isConst&&Ae(`Cannot convert argument of type ${x.$$.smartPtrType?x.$$.smartPtrType.name:x.$$.ptrType.name} to parameter type ${this.name}`);var P=x.$$.ptrType.registeredClass;if(k=Wf(x.$$.ptr,P,this.registeredClass),this.isSmartPointer)switch(x.$$.smartPtr===void 0&&Ae("Passing raw pointer to smart pointer is illegal"),this.sharingPolicy){case 0:x.$$.smartPtrType===this?k=x.$$.smartPtr:Ae(`Cannot convert argument of type ${x.$$.smartPtrType?x.$$.smartPtrType.name:x.$$.ptrType.name} to parameter type ${this.name}`);break;case 1:k=x.$$.smartPtr;break;case 2:if(x.$$.smartPtrType===this)k=x.$$.smartPtr;else{var K=x.clone();k=this.rawShare(k,qr.toHandle(()=>K.delete())),C!==null&&C.push(this.rawDestructor,k)}break;default:Ae("Unsupporting sharing policy")}return k}function $8(C,x){if(x===null)return this.isReference&&Ae(`null is not a valid ${this.name}`),0;x.$$||Ae(`Cannot pass "${Xf(x)}" as a ${this.name}`),x.$$.ptr||Ae(`Cannot pass deleted object as a pointer of type ${this.name}`),x.$$.ptrType.isConst&&Ae(`Cannot convert argument of type ${x.$$.ptrType.name} to parameter type ${this.name}`);var k=x.$$.ptrType.registeredClass,P=Wf(x.$$.ptr,k,this.registeredClass);return P}var G8=()=>{Object.assign(wu.prototype,{getPointee(C){return this.rawGetPointee&&(C=this.rawGetPointee(C)),C},destructor(C){var x;(x=this.rawDestructor)===null||x===void 0||x.call(this,C)},argPackAdvance:Ye,readValueFromPointer:pt,fromWireType:Nn})};function wu(C,x,k,P,K,ne,oe,ce,me,Ee,Ie){this.name=C,this.registeredClass=x,this.isReference=k,this.isConst=P,this.isSmartPointer=K,this.pointeeType=ne,this.sharingPolicy=oe,this.rawGetPointee=ce,this.rawConstructor=me,this.rawShare=Ee,this.rawDestructor=Ie,!K&&x.baseClass===void 0?P?(this.toWireType=V8,this.destructorFunction=null):(this.toWireType=$8,this.destructorFunction=null):this.toWireType=q8}var gb=(C,x,k)=>{r.hasOwnProperty(C)||en("Replacing nonexistent public symbol"),r[C].overloadTable!==void 0&&k!==void 0?r[C].overloadTable[k]=x:(r[C]=x,r[C].argCount=k)},H8=(C,x,k)=>{var P=r["dynCall_"+C];return P(x,...k)},Eu=[],yb,Dt=C=>{var x=Eu[C];return x||(C>=Eu.length&&(Eu.length=C+1),Eu[C]=x=yb.get(C)),x},Y8=function(C,x){let k=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(C.includes("j"))return H8(C,x,k);var P=Dt(x)(...k);return P},W8=(C,x)=>function(){for(var k=arguments.length,P=new Array(k),K=0;K<k;K++)P[K]=arguments[K];return Y8(C,x,P)},dr=(C,x)=>{C=xt(C);function k(){return C.includes("j")?W8(C,x):Dt(x)}var P=k();return typeof P!="function"&&Ae(`unknown function pointer with signature ${C}: ${x}`),P},K8=(C,x)=>{var k=Ur(x,function(P){this.name=x,this.message=P;var K=new Error(P).stack;K!==void 0&&(this.stack=this.toString()+`
140
- `+K.replace(/^Error(:[^\n]*)?\n/,""))});return k.prototype=Object.create(C.prototype),k.prototype.constructor=k,k.prototype.toString=function(){return this.message===void 0?this.name:`${this.name}: ${this.message}`},k},vb,bb=C=>{var x=Ob(C),k=xt(x);return $r(x),k},Su=(C,x)=>{var k=[],P={};function K(ne){if(!P[ne]&&!an[ne]){if(Mt[ne]){Mt[ne].forEach(K);return}k.push(ne),P[ne]=!0}}throw x.forEach(K),new vb(`${C}: `+k.map(bb).join([", "]))},z8=(C,x,k,P,K,ne,oe,ce,me,Ee,Ie,Je,Be)=>{Ie=xt(Ie),ne=dr(K,ne),ce&&(ce=dr(oe,ce)),Ee&&(Ee=dr(me,Ee)),Be=dr(Je,Be);var ot=F8(Ie);oa(ot,function(){Su(`Cannot construct ${Ie} due to unbound types`,[P])}),fn([C,x,k],P?[P]:[],Bt=>{Bt=Bt[0];var pn,Ot;P?(pn=Bt.registeredClass,Ot=pn.instancePrototype):Ot=zt.prototype;var tn=Ur(Ie,function(){if(Object.getPrototypeOf(this)!==we)throw new Xn("Use 'new' to construct "+Ie);if(ke.constructor_body===void 0)throw new Xn(Ie+" has no accessible constructor");for(var Bb=arguments.length,Au=new Array(Bb),Tu=0;Tu<Bb;Tu++)Au[Tu]=arguments[Tu];var Fb=ke.constructor_body[Au.length];if(Fb===void 0)throw new Xn(`Tried to invoke ctor of ${Ie} with invalid number of parameters (${Au.length}) - expected (${Object.keys(ke.constructor_body).toString()}) parameters instead!`);return Fb.apply(this,Au)}),we=Object.create(Ot,{constructor:{value:tn}});tn.prototype=we;var ke=new U8(Ie,tn,we,Be,pn,ne,ce,Ee);if(ke.baseClass){var Ft,Qt;(Qt=(Ft=ke.baseClass).__derivedClasses)!==null&&Qt!==void 0||(Ft.__derivedClasses=[]),ke.baseClass.__derivedClasses.push(ke)}var Ls=new wu(Ie,ke,!0,!1,!1),_u=new wu(Ie+"*",ke,!1,!1,!1),Lb=new wu(Ie+" const*",ke,!1,!0,!1);return vu[C]={pointerType:_u,constPointerType:Lb},gb(ot,tn),[Ls,_u,Lb]})},Kf=(C,x)=>{for(var k=[],P=0;P<C;P++)k.push(M[x+P*4>>2]);return k};function Q8(C){for(var x=1;x<C.length;++x)if(C[x]!==null&&C[x].destructorFunction===void 0)return!0;return!1}function zf(C,x,k,P,K,ne){var oe=x.length;oe<2&&Ae("argTypes array size mismatch! Must at least get return value and 'this' types!");var ce=x[1]!==null&&k!==null,me=Q8(x),Ee=x[0].name!=="void",Ie=oe-2,Je=new Array(Ie),Be=[],ot=[],Bt=function(){arguments.length!==Ie&&Ae(`function ${C} called with ${arguments.length} arguments, expected ${Ie}`),ot.length=0;var pn;Be.length=ce?2:1,Be[0]=K,ce&&(pn=x[1].toWireType(ot,this),Be[1]=pn);for(var Ot=0;Ot<Ie;++Ot)Je[Ot]=x[Ot+2].toWireType(ot,Ot<0||arguments.length<=Ot?void 0:arguments[Ot]),Be.push(Je[Ot]);var tn=P(...Be);function we(ke){if(me)Xt(ot);else for(var Ft=ce?1:2;Ft<x.length;Ft++){var Qt=Ft===1?pn:Je[Ft-2];x[Ft].destructorFunction!==null&&x[Ft].destructorFunction(Qt)}if(Ee)return x[0].fromWireType(ke)}return we(tn)};return Ur(C,Bt)}var J8=(C,x,k,P,K,ne)=>{var oe=Kf(x,k);K=dr(P,K),fn([],[C],ce=>{ce=ce[0];var me=`constructor ${ce.name}`;if(ce.registeredClass.constructor_body===void 0&&(ce.registeredClass.constructor_body=[]),ce.registeredClass.constructor_body[x-1]!==void 0)throw new Xn(`Cannot register multiple constructors with identical number of parameters (${x-1}) for class '${ce.name}'! Overload resolution is currently only performed using the parameter count, not actual type info!`);return ce.registeredClass.constructor_body[x-1]=()=>{Su(`Cannot construct ${ce.name} due to unbound types`,oe)},fn([],oe,Ee=>(Ee.splice(1,0,null),ce.registeredClass.constructor_body[x-1]=zf(me,Ee,null,K,ne),[])),[]})},wb=C=>{C=C.trim();const x=C.indexOf("(");return x!==-1?C.substr(0,x):C},Z8=(C,x,k,P,K,ne,oe,ce,me)=>{var Ee=Kf(k,P);x=xt(x),x=wb(x),ne=dr(K,ne),fn([],[C],Ie=>{Ie=Ie[0];var Je=`${Ie.name}.${x}`;x.startsWith("@@")&&(x=Symbol[x.substring(2)]),ce&&Ie.registeredClass.pureVirtualFunctions.push(x);function Be(){Su(`Cannot call ${Je} due to unbound types`,Ee)}var ot=Ie.registeredClass.instancePrototype,Bt=ot[x];return Bt===void 0||Bt.overloadTable===void 0&&Bt.className!==Ie.name&&Bt.argCount===k-2?(Be.argCount=k-2,Be.className=Ie.name,ot[x]=Be):(bu(ot,x,Je),ot[x].overloadTable[k-2]=Be),fn([],Ee,pn=>{var Ot=zf(Je,pn,Ie,ne,oe);return ot[x].overloadTable===void 0?(Ot.argCount=k-2,ot[x]=Ot):ot[x].overloadTable[k-2]=Ot,[]}),[]})},Qf=[],Vr=[],Jf=C=>{C>9&&--Vr[C+1]===0&&(Vr[C]=void 0,Qf.push(C))},X8=()=>Vr.length/2-5-Qf.length,eM=()=>{Vr.push(0,1,void 0,1,null,1,!0,1,!1,1),r.count_emval_handles=X8},qr={toValue:C=>(C||Ae("Cannot use deleted val. handle = "+C),Vr[C]),toHandle:C=>{switch(C){case void 0:return 2;case null:return 4;case!0:return 6;case!1:return 8;default:{const x=Qf.pop()||Vr.length;return Vr[x]=C,Vr[x+1]=1,x}}}},tM={name:"emscripten::val",fromWireType:C=>{var x=qr.toValue(C);return Jf(C),x},toWireType:(C,x)=>qr.toHandle(x),argPackAdvance:Ye,readValueFromPointer:pt,destructorFunction:null},Eb=C=>De(C,tM),nM=(C,x,k)=>{switch(x){case 1:return k?function(P){return this.fromWireType(E[P])}:function(P){return this.fromWireType(S[P])};case 2:return k?function(P){return this.fromWireType(A[P>>1])}:function(P){return this.fromWireType(T[P>>1])};case 4:return k?function(P){return this.fromWireType(O[P>>2])}:function(P){return this.fromWireType(M[P>>2])};default:throw new TypeError(`invalid integer width (${x}): ${C}`)}},rM=(C,x,k,P)=>{x=xt(x);function K(){}K.values={},De(C,{name:x,constructor:K,fromWireType:function(ne){return this.constructor.values[ne]},toWireType:(ne,oe)=>oe.value,argPackAdvance:Ye,readValueFromPointer:nM(x,k,P),destructorFunction:null}),oa(x,K)},Zf=(C,x)=>{var k=an[C];return k===void 0&&Ae(`${x} has unknown type ${bb(C)}`),k},iM=(C,x,k)=>{var P=Zf(C,"enum");x=xt(x);var K=P.constructor,ne=Object.create(P.constructor.prototype,{value:{value:k},constructor:{value:Ur(`${P.name}_${x}`,function(){})}});K.values[k]=ne,K[x]=ne},Xf=C=>{if(C===null)return"null";var x=typeof C;return x==="object"||x==="array"||x==="function"?C.toString():""+C},sM=(C,x)=>{switch(x){case 4:return function(k){return this.fromWireType(D[k>>2])};case 8:return function(k){return this.fromWireType(F[k>>3])};default:throw new TypeError(`invalid float width (${x}): ${C}`)}},oM=(C,x,k)=>{x=xt(x),De(C,{name:x,fromWireType:P=>P,toWireType:(P,K)=>K,argPackAdvance:Ye,readValueFromPointer:sM(x,k),destructorFunction:null})},aM=(C,x,k,P,K,ne,oe)=>{var ce=Kf(x,k);C=xt(C),C=wb(C),K=dr(P,K),oa(C,function(){Su(`Cannot call ${C} due to unbound types`,ce)},x-1),fn([],ce,me=>{var Ee=[me[0],null].concat(me.slice(1));return gb(C,zf(C,Ee,null,K,ne),x-1),[]})},cM=(C,x,k)=>{switch(x){case 1:return k?P=>E[P]:P=>S[P];case 2:return k?P=>A[P>>1]:P=>T[P>>1];case 4:return k?P=>O[P>>2]:P=>M[P>>2];default:throw new TypeError(`invalid integer width (${x}): ${C}`)}},uM=(C,x,k,P,K)=>{x=xt(x);var ne=Ie=>Ie;if(P===0){var oe=32-8*k;ne=Ie=>Ie<<oe>>>oe}var ce=x.includes("unsigned"),me=(Ie,Je)=>{},Ee;ce?Ee=function(Ie,Je){return me(Je,this.name),Je>>>0}:Ee=function(Ie,Je){return me(Je,this.name),Je},De(C,{name:x,fromWireType:ne,toWireType:Ee,argPackAdvance:Ye,readValueFromPointer:cM(x,k,P!==0),destructorFunction:null})},lM=(C,x,k)=>{var P=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array],K=P[x];function ne(oe){var ce=M[oe>>2],me=M[oe+4>>2];return new K(E.buffer,me,ce)}k=xt(k),De(C,{name:k,fromWireType:ne,argPackAdvance:Ye,readValueFromPointer:ne},{ignoreDuplicateRegistrations:!0})},dM=(C,x)=>{Eb(C)},Sb=(C,x,k,P)=>{if(!(P>0))return 0;for(var K=k,ne=k+P-1,oe=0;oe<C.length;++oe){var ce=C.charCodeAt(oe);if(ce>=55296&&ce<=57343){var me=C.charCodeAt(++oe);ce=65536+((ce&1023)<<10)|me&1023}if(ce<=127){if(k>=ne)break;x[k++]=ce}else if(ce<=2047){if(k+1>=ne)break;x[k++]=192|ce>>6,x[k++]=128|ce&63}else if(ce<=65535){if(k+2>=ne)break;x[k++]=224|ce>>12,x[k++]=128|ce>>6&63,x[k++]=128|ce&63}else{if(k+3>=ne)break;x[k++]=240|ce>>18,x[k++]=128|ce>>12&63,x[k++]=128|ce>>6&63,x[k++]=128|ce&63}}return x[k]=0,k-K},fM=(C,x,k)=>Sb(C,S,x,k),xb=C=>{for(var x=0,k=0;k<C.length;++k){var P=C.charCodeAt(k);P<=127?x++:P<=2047?x+=2:P>=55296&&P<=57343?(x+=4,++k):x+=3}return x},Cb=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0,_b=(C,x,k)=>{for(var P=x+k,K=x;C[K]&&!(K>=P);)++K;if(K-x>16&&C.buffer&&Cb)return Cb.decode(C.subarray(x,K));for(var ne="";x<K;){var oe=C[x++];if(!(oe&128)){ne+=String.fromCharCode(oe);continue}var ce=C[x++]&63;if((oe&224)==192){ne+=String.fromCharCode((oe&31)<<6|ce);continue}var me=C[x++]&63;if((oe&240)==224?oe=(oe&15)<<12|ce<<6|me:oe=(oe&7)<<18|ce<<12|me<<6|C[x++]&63,oe<65536)ne+=String.fromCharCode(oe);else{var Ee=oe-65536;ne+=String.fromCharCode(55296|Ee>>10,56320|Ee&1023)}}return ne},eh=(C,x)=>C?_b(S,C,x):"",hM=(C,x)=>{x=xt(x);var k=x==="std::string";De(C,{name:x,fromWireType(P){var K=M[P>>2],ne=P+4,oe;if(k)for(var ce=ne,me=0;me<=K;++me){var Ee=ne+me;if(me==K||S[Ee]==0){var Ie=Ee-ce,Je=eh(ce,Ie);oe===void 0?oe=Je:(oe+="\0",oe+=Je),ce=Ee+1}}else{for(var Be=new Array(K),me=0;me<K;++me)Be[me]=String.fromCharCode(S[ne+me]);oe=Be.join("")}return $r(P),oe},toWireType(P,K){K instanceof ArrayBuffer&&(K=new Uint8Array(K));var ne,oe=typeof K=="string";oe||K instanceof Uint8Array||K instanceof Uint8ClampedArray||K instanceof Int8Array||Ae("Cannot pass non-string to std::string"),k&&oe?ne=xb(K):ne=K.length;var ce=rh(4+ne+1),me=ce+4;if(M[ce>>2]=ne,k&&oe)fM(K,me,ne+1);else if(oe)for(var Ee=0;Ee<ne;++Ee){var Ie=K.charCodeAt(Ee);Ie>255&&($r(me),Ae("String has UTF-16 code units that do not fit in 8 bits")),S[me+Ee]=Ie}else for(var Ee=0;Ee<ne;++Ee)S[me+Ee]=K[Ee];return P!==null&&P.push($r,ce),ce},argPackAdvance:Ye,readValueFromPointer:pt,destructorFunction(P){$r(P)}})},Ab=typeof TextDecoder<"u"?new TextDecoder("utf-16le"):void 0,pM=(C,x)=>{for(var k=C,P=k>>1,K=P+x/2;!(P>=K)&&T[P];)++P;if(k=P<<1,k-C>32&&Ab)return Ab.decode(S.subarray(C,k));for(var ne="",oe=0;!(oe>=x/2);++oe){var ce=A[C+oe*2>>1];if(ce==0)break;ne+=String.fromCharCode(ce)}return ne},mM=(C,x,k)=>{var P;if((P=k)!==null&&P!==void 0||(k=2147483647),k<2)return 0;k-=2;for(var K=x,ne=k<C.length*2?k/2:C.length,oe=0;oe<ne;++oe){var ce=C.charCodeAt(oe);A[x>>1]=ce,x+=2}return A[x>>1]=0,x-K},gM=C=>C.length*2,yM=(C,x)=>{for(var k=0,P="";!(k>=x/4);){var K=O[C+k*4>>2];if(K==0)break;if(++k,K>=65536){var ne=K-65536;P+=String.fromCharCode(55296|ne>>10,56320|ne&1023)}else P+=String.fromCharCode(K)}return P},vM=(C,x,k)=>{var P;if((P=k)!==null&&P!==void 0||(k=2147483647),k<4)return 0;for(var K=x,ne=K+k-4,oe=0;oe<C.length;++oe){var ce=C.charCodeAt(oe);if(ce>=55296&&ce<=57343){var me=C.charCodeAt(++oe);ce=65536+((ce&1023)<<10)|me&1023}if(O[x>>2]=ce,x+=4,x+4>ne)break}return O[x>>2]=0,x-K},bM=C=>{for(var x=0,k=0;k<C.length;++k){var P=C.charCodeAt(k);P>=55296&&P<=57343&&++k,x+=4}return x},wM=(C,x,k)=>{k=xt(k);var P,K,ne,oe;x===2?(P=pM,K=mM,oe=gM,ne=ce=>T[ce>>1]):x===4&&(P=yM,K=vM,oe=bM,ne=ce=>M[ce>>2]),De(C,{name:k,fromWireType:ce=>{for(var me=M[ce>>2],Ee,Ie=ce+4,Je=0;Je<=me;++Je){var Be=ce+4+Je*x;if(Je==me||ne(Be)==0){var ot=Be-Ie,Bt=P(Ie,ot);Ee===void 0?Ee=Bt:(Ee+="\0",Ee+=Bt),Ie=Be+x}}return $r(ce),Ee},toWireType:(ce,me)=>{typeof me!="string"&&Ae(`Cannot pass non-string to C++ string type ${k}`);var Ee=oe(me),Ie=rh(4+Ee+x);return M[Ie>>2]=Ee/x,K(me,Ie+4,Ee+x),ce!==null&&ce.push($r,Ie),Ie},argPackAdvance:Ye,readValueFromPointer:pt,destructorFunction(ce){$r(ce)}})},EM=(C,x,k,P,K,ne)=>{lt[C]={name:xt(x),rawConstructor:dr(k,P),rawDestructor:dr(K,ne),fields:[]}},SM=(C,x,k,P,K,ne,oe,ce,me,Ee)=>{lt[C].fields.push({fieldName:xt(x),getterReturnType:k,getter:dr(P,K),getterContext:ne,setterArgumentType:oe,setter:dr(ce,me),setterContext:Ee})},xM=(C,x)=>{x=xt(x),De(C,{isVoid:!0,name:x,argPackAdvance:0,fromWireType:()=>{},toWireType:(k,P)=>{}})},th=[],CM=(C,x,k,P)=>(C=th[C],x=qr.toValue(x),C(null,x,k,P)),_M={},AM=C=>{var x=_M[C];return x===void 0?xt(C):x},Tb=()=>{if(typeof globalThis=="object")return globalThis;function C(x){x.$$$embind_global$$$=x;var k=typeof $$$embind_global$$$=="object"&&x.$$$embind_global$$$==x;return k||delete x.$$$embind_global$$$,k}if(typeof $$$embind_global$$$=="object"||(typeof global=="object"&&C(global)?$$$embind_global$$$=global:typeof self=="object"&&C(self)&&($$$embind_global$$$=self),typeof $$$embind_global$$$=="object"))return $$$embind_global$$$;throw Error("unable to get global object.")},TM=C=>C===0?qr.toHandle(Tb()):(C=AM(C),qr.toHandle(Tb()[C])),IM=C=>{var x=th.length;return th.push(C),x},kM=(C,x)=>{for(var k=new Array(C),P=0;P<C;++P)k[P]=Zf(M[x+P*4>>2],"parameter "+P);return k},OM=Reflect.construct,NM=(C,x,k)=>{var P=[],K=C.toWireType(P,k);return P.length&&(M[x>>2]=qr.toHandle(P)),K},RM=(C,x,k)=>{var P=kM(C,x),K=P.shift();C--;var ne=new Array(C),oe=(me,Ee,Ie,Je)=>{for(var Be=0,ot=0;ot<C;++ot)ne[ot]=P[ot].readValueFromPointer(Je+Be),Be+=P[ot].argPackAdvance;var Bt=k===1?OM(Ee,ne):Ee.apply(me,ne);return NM(K,Ie,Bt)},ce=`methodCaller<(${P.map(me=>me.name).join(", ")}) => ${K.name}>`;return IM(Ur(ce,oe))},MM=C=>{C>9&&(Vr[C+1]+=1)},DM=C=>{var x=qr.toValue(C);Xt(x),Jf(C)},PM=(C,x)=>{C=Zf(C,"_emval_take_value");var k=C.readValueFromPointer(x);return qr.toHandle(k)},jM=()=>{q("")},LM=(C,x,k)=>S.copyWithin(C,x,x+k),BM=()=>2147483648,FM=C=>{var x=b.buffer,k=(C-x.byteLength+65535)/65536;try{return b.grow(k),V(),1}catch{}},UM=C=>{var x=S.length;C>>>=0;var k=BM();if(C>k)return!1;for(var P=(me,Ee)=>me+(Ee-me%Ee)%Ee,K=1;K<=4;K*=2){var ne=x*(1+.2/K);ne=Math.min(ne,C+100663296);var oe=Math.min(k,P(Math.max(C,ne),65536)),ce=FM(oe);if(ce)return!0}return!1},nh={},VM=()=>c||"./this.program",aa=()=>{if(!aa.strings){var C=(typeof navigator=="object"&&navigator.languages&&navigator.languages[0]||"C").replace("-","_")+".UTF-8",x={USER:"web_user",LOGNAME:"web_user",PATH:"/",PWD:"/",HOME:"/home/web_user",LANG:C,_:VM()};for(var k in nh)nh[k]===void 0?delete x[k]:x[k]=nh[k];var P=[];for(var k in x)P.push(`${k}=${x[k]}`);aa.strings=P}return aa.strings},qM=(C,x)=>{for(var k=0;k<C.length;++k)E[x++]=C.charCodeAt(k);E[x]=0},$M=(C,x)=>{var k=0;return aa().forEach((P,K)=>{var ne=x+k;M[C+K*4>>2]=ne,qM(P,ne),k+=P.length+1}),0},GM=(C,x)=>{var k=aa();M[C>>2]=k.length;var P=0;return k.forEach(K=>P+=K.length+1),M[x>>2]=P,0},HM=C=>52;function YM(C,x,k,P,K){return 70}var WM=[null,[],[]],KM=(C,x)=>{var k=WM[C];x===0||x===10?((C===1?h:y)(_b(k,0)),k.length=0):k.push(x)},zM=(C,x,k,P)=>{for(var K=0,ne=0;ne<k;ne++){var oe=M[x>>2],ce=M[x+4>>2];x+=8;for(var me=0;me<ce;me++)KM(C,S[oe+me]);K+=ce}return M[P>>2]=K,0},QM=C=>C,xu=C=>C%4===0&&(C%100!==0||C%400===0),JM=(C,x)=>{for(var k=0,P=0;P<=x;k+=C[P++]);return k},Ib=[31,29,31,30,31,30,31,31,30,31,30,31],kb=[31,28,31,30,31,30,31,31,30,31,30,31],ZM=(C,x)=>{for(var k=new Date(C.getTime());x>0;){var P=xu(k.getFullYear()),K=k.getMonth(),ne=(P?Ib:kb)[K];if(x>ne-k.getDate())x-=ne-k.getDate()+1,k.setDate(1),K<11?k.setMonth(K+1):(k.setMonth(0),k.setFullYear(k.getFullYear()+1));else return k.setDate(k.getDate()+x),k}return k};function XM(C,x,k){var P=xb(C)+1,K=new Array(P);return Sb(C,K,0,K.length),K}var e9=(C,x)=>{E.set(C,x)},t9=(C,x,k,P)=>{var K=M[P+40>>2],ne={tm_sec:O[P>>2],tm_min:O[P+4>>2],tm_hour:O[P+8>>2],tm_mday:O[P+12>>2],tm_mon:O[P+16>>2],tm_year:O[P+20>>2],tm_wday:O[P+24>>2],tm_yday:O[P+28>>2],tm_isdst:O[P+32>>2],tm_gmtoff:O[P+36>>2],tm_zone:K?eh(K):""},oe=eh(k),ce={"%c":"%a %b %d %H:%M:%S %Y","%D":"%m/%d/%y","%F":"%Y-%m-%d","%h":"%b","%r":"%I:%M:%S %p","%R":"%H:%M","%T":"%H:%M:%S","%x":"%m/%d/%y","%X":"%H:%M:%S","%Ec":"%c","%EC":"%C","%Ex":"%m/%d/%y","%EX":"%H:%M:%S","%Ey":"%y","%EY":"%Y","%Od":"%d","%Oe":"%e","%OH":"%H","%OI":"%I","%Om":"%m","%OM":"%M","%OS":"%S","%Ou":"%u","%OU":"%U","%OV":"%V","%Ow":"%w","%OW":"%W","%Oy":"%y"};for(var me in ce)oe=oe.replace(new RegExp(me,"g"),ce[me]);var Ee=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],Ie=["January","February","March","April","May","June","July","August","September","October","November","December"];function Je(we,ke,Ft){for(var Qt=typeof we=="number"?we.toString():we||"";Qt.length<ke;)Qt=Ft[0]+Qt;return Qt}function Be(we,ke){return Je(we,ke,"0")}function ot(we,ke){function Ft(Ls){return Ls<0?-1:Ls>0?1:0}var Qt;return(Qt=Ft(we.getFullYear()-ke.getFullYear()))===0&&(Qt=Ft(we.getMonth()-ke.getMonth()))===0&&(Qt=Ft(we.getDate()-ke.getDate())),Qt}function Bt(we){switch(we.getDay()){case 0:return new Date(we.getFullYear()-1,11,29);case 1:return we;case 2:return new Date(we.getFullYear(),0,3);case 3:return new Date(we.getFullYear(),0,2);case 4:return new Date(we.getFullYear(),0,1);case 5:return new Date(we.getFullYear()-1,11,31);case 6:return new Date(we.getFullYear()-1,11,30)}}function pn(we){var ke=ZM(new Date(we.tm_year+1900,0,1),we.tm_yday),Ft=new Date(ke.getFullYear(),0,4),Qt=new Date(ke.getFullYear()+1,0,4),Ls=Bt(Ft),_u=Bt(Qt);return ot(Ls,ke)<=0?ot(_u,ke)<=0?ke.getFullYear()+1:ke.getFullYear():ke.getFullYear()-1}var Ot={"%a":we=>Ee[we.tm_wday].substring(0,3),"%A":we=>Ee[we.tm_wday],"%b":we=>Ie[we.tm_mon].substring(0,3),"%B":we=>Ie[we.tm_mon],"%C":we=>{var ke=we.tm_year+1900;return Be(ke/100|0,2)},"%d":we=>Be(we.tm_mday,2),"%e":we=>Je(we.tm_mday,2," "),"%g":we=>pn(we).toString().substring(2),"%G":pn,"%H":we=>Be(we.tm_hour,2),"%I":we=>{var ke=we.tm_hour;return ke==0?ke=12:ke>12&&(ke-=12),Be(ke,2)},"%j":we=>Be(we.tm_mday+JM(xu(we.tm_year+1900)?Ib:kb,we.tm_mon-1),3),"%m":we=>Be(we.tm_mon+1,2),"%M":we=>Be(we.tm_min,2),"%n":()=>`
141
- `,"%p":we=>we.tm_hour>=0&&we.tm_hour<12?"AM":"PM","%S":we=>Be(we.tm_sec,2),"%t":()=>" ","%u":we=>we.tm_wday||7,"%U":we=>{var ke=we.tm_yday+7-we.tm_wday;return Be(Math.floor(ke/7),2)},"%V":we=>{var ke=Math.floor((we.tm_yday+7-(we.tm_wday+6)%7)/7);if((we.tm_wday+371-we.tm_yday-2)%7<=2&&ke++,ke){if(ke==53){var Ft=(we.tm_wday+371-we.tm_yday)%7;Ft!=4&&(Ft!=3||!xu(we.tm_year))&&(ke=1)}}else{ke=52;var Qt=(we.tm_wday+7-we.tm_yday-1)%7;(Qt==4||Qt==5&&xu(we.tm_year%400-1))&&ke++}return Be(ke,2)},"%w":we=>we.tm_wday,"%W":we=>{var ke=we.tm_yday+7-(we.tm_wday+6)%7;return Be(Math.floor(ke/7),2)},"%y":we=>(we.tm_year+1900).toString().substring(2),"%Y":we=>we.tm_year+1900,"%z":we=>{var ke=we.tm_gmtoff,Ft=ke>=0;return ke=Math.abs(ke)/60,ke=ke/60*100+ke%60,(Ft?"+":"-")+("0000"+ke).slice(-4)},"%Z":we=>we.tm_zone,"%%":()=>"%"};oe=oe.replace(/%%/g,"\0\0");for(var me in Ot)oe.includes(me)&&(oe=oe.replace(new RegExp(me,"g"),Ot[me](ne)));oe=oe.replace(/\0\0/g,"%");var tn=XM(oe);return tn.length>x?0:(e9(tn,C),tn.length-1)},n9=(C,x,k,P,K)=>t9(C,x,k,P);dn=r.InternalError=class extends Error{constructor(C){super(C),this.name="InternalError"}},Sn(),Xn=r.BindingError=class extends Error{constructor(C){super(C),this.name="BindingError"}},Fr(),tt(),G8(),vb=r.UnboundTypeError=K8(Error,"UnboundTypeError"),eM();var r9={s:ge,u:ie,b:_e,g:ze,q:it,K:yt,f:ht,Y:Zn,e:ae,ha:On,U:qn,ba:Tt,fa:z8,ea:J8,w:Z8,aa:Eb,x:rM,h:iM,O:oM,P:aM,t:uM,o:lM,ga:dM,N:hM,C:wM,A:EM,ia:SM,ca:xM,E:CM,ka:Jf,la:TM,M:RM,Q:MM,R:DM,da:PM,B:jM,$:LM,Z:UM,W:$M,X:GM,_:HM,T:YM,L:zM,F:b9,D:c9,G:v9,m:w9,a:i9,d:l9,p:a9,k:y9,I:m9,v:h9,H:g9,z:S9,S:C9,l:d9,j:u9,c:o9,n:s9,J:p9,r:E9,i:f9,y:x9,ja:QM,V:n9},Pt=J(),$r=r._free=C=>($r=r._free=Pt.oa)(C),rh=r._malloc=C=>(rh=r._malloc=Pt.pa)(C),Ob=C=>(Ob=Pt.ra)(C),kt=(C,x)=>(kt=Pt.sa)(C,x),ca=C=>(ca=Pt.ta)(C),jt=()=>(jt=Pt.ua)(),Lt=C=>(Lt=Pt.va)(C),Nb=C=>(Nb=Pt.wa)(C),Rb=C=>(Rb=Pt.xa)(C),Mb=(C,x,k)=>(Mb=Pt.ya)(C,x,k),Db=C=>(Db=Pt.za)(C);r.dynCall_viijii=(C,x,k,P,K,ne,oe)=>(r.dynCall_viijii=Pt.Aa)(C,x,k,P,K,ne,oe),r.dynCall_jiji=(C,x,k,P,K)=>(r.dynCall_jiji=Pt.Ba)(C,x,k,P,K);var Pb=r.dynCall_jiiii=(C,x,k,P,K)=>(Pb=r.dynCall_jiiii=Pt.Ca)(C,x,k,P,K);r.dynCall_iiiiij=(C,x,k,P,K,ne,oe)=>(r.dynCall_iiiiij=Pt.Da)(C,x,k,P,K,ne,oe),r.dynCall_iiiiijj=(C,x,k,P,K,ne,oe,ce,me)=>(r.dynCall_iiiiijj=Pt.Ea)(C,x,k,P,K,ne,oe,ce,me),r.dynCall_iiiiiijj=(C,x,k,P,K,ne,oe,ce,me,Ee)=>(r.dynCall_iiiiiijj=Pt.Fa)(C,x,k,P,K,ne,oe,ce,me,Ee);function i9(C,x){var k=jt();try{return Dt(C)(x)}catch(P){if(Lt(k),P!==P+0)throw P;kt(1,0)}}function s9(C,x,k,P){var K=jt();try{Dt(C)(x,k,P)}catch(ne){if(Lt(K),ne!==ne+0)throw ne;kt(1,0)}}function o9(C,x,k){var P=jt();try{Dt(C)(x,k)}catch(K){if(Lt(P),K!==K+0)throw K;kt(1,0)}}function a9(C,x,k,P){var K=jt();try{return Dt(C)(x,k,P)}catch(ne){if(Lt(K),ne!==ne+0)throw ne;kt(1,0)}}function c9(C,x,k,P,K){var ne=jt();try{return Dt(C)(x,k,P,K)}catch(oe){if(Lt(ne),oe!==oe+0)throw oe;kt(1,0)}}function u9(C,x){var k=jt();try{Dt(C)(x)}catch(P){if(Lt(k),P!==P+0)throw P;kt(1,0)}}function l9(C,x,k){var P=jt();try{return Dt(C)(x,k)}catch(K){if(Lt(P),K!==K+0)throw K;kt(1,0)}}function d9(C){var x=jt();try{Dt(C)()}catch(k){if(Lt(x),k!==k+0)throw k;kt(1,0)}}function f9(C,x,k,P,K,ne,oe,ce,me,Ee,Ie){var Je=jt();try{Dt(C)(x,k,P,K,ne,oe,ce,me,Ee,Ie)}catch(Be){if(Lt(Je),Be!==Be+0)throw Be;kt(1,0)}}function h9(C,x,k,P,K,ne,oe){var ce=jt();try{return Dt(C)(x,k,P,K,ne,oe)}catch(me){if(Lt(ce),me!==me+0)throw me;kt(1,0)}}function p9(C,x,k,P,K){var ne=jt();try{Dt(C)(x,k,P,K)}catch(oe){if(Lt(ne),oe!==oe+0)throw oe;kt(1,0)}}function m9(C,x,k,P,K,ne){var oe=jt();try{return Dt(C)(x,k,P,K,ne)}catch(ce){if(Lt(oe),ce!==ce+0)throw ce;kt(1,0)}}function g9(C,x,k,P,K,ne,oe,ce){var me=jt();try{return Dt(C)(x,k,P,K,ne,oe,ce)}catch(Ee){if(Lt(me),Ee!==Ee+0)throw Ee;kt(1,0)}}function y9(C,x,k,P,K){var ne=jt();try{return Dt(C)(x,k,P,K)}catch(oe){if(Lt(ne),oe!==oe+0)throw oe;kt(1,0)}}function v9(C,x,k,P){var K=jt();try{return Dt(C)(x,k,P)}catch(ne){if(Lt(K),ne!==ne+0)throw ne;kt(1,0)}}function b9(C,x,k,P){var K=jt();try{return Dt(C)(x,k,P)}catch(ne){if(Lt(K),ne!==ne+0)throw ne;kt(1,0)}}function w9(C){var x=jt();try{return Dt(C)()}catch(k){if(Lt(x),k!==k+0)throw k;kt(1,0)}}function E9(C,x,k,P,K,ne,oe,ce){var me=jt();try{Dt(C)(x,k,P,K,ne,oe,ce)}catch(Ee){if(Lt(me),Ee!==Ee+0)throw Ee;kt(1,0)}}function S9(C,x,k,P,K,ne,oe,ce,me,Ee,Ie,Je){var Be=jt();try{return Dt(C)(x,k,P,K,ne,oe,ce,me,Ee,Ie,Je)}catch(ot){if(Lt(Be),ot!==ot+0)throw ot;kt(1,0)}}function x9(C,x,k,P,K,ne,oe,ce,me,Ee,Ie,Je,Be,ot,Bt,pn){var Ot=jt();try{Dt(C)(x,k,P,K,ne,oe,ce,me,Ee,Ie,Je,Be,ot,Bt,pn)}catch(tn){if(Lt(Ot),tn!==tn+0)throw tn;kt(1,0)}}function C9(C,x,k,P,K){var ne=jt();try{return Pb(C,x,k,P,K)}catch(oe){if(Lt(ne),oe!==oe+0)throw oe;kt(1,0)}}var Cu;ue=function C(){Cu||jb(),Cu||(ue=C)};function jb(){if(he>0||(L(),he>0))return;function C(){Cu||(Cu=!0,r.calledRun=!0,!w&&(Y(),i(r),r.onRuntimeInitialized&&r.onRuntimeInitialized(),z()))}r.setStatus?(r.setStatus("Running..."),setTimeout(function(){setTimeout(function(){r.setStatus("")},1),C()},1)):C()}if(r.preInit)for(typeof r.preInit=="function"&&(r.preInit=[r.preInit]);r.preInit.length>0;)r.preInit.pop()();return jb(),t.ready}})();function cN(e){return Rf(Mf,e)}async function uN(e,t){return oN(Mf,e,t)}async function lN(e,t){return aN(Mf,e,t)}const S1=[["aztec","Aztec"],["code_128","Code128"],["code_39","Code39"],["code_93","Code93"],["codabar","Codabar"],["databar","DataBar"],["databar_expanded","DataBarExpanded"],["data_matrix","DataMatrix"],["dx_film_edge","DXFilmEdge"],["ean_13","EAN-13"],["ean_8","EAN-8"],["itf","ITF"],["maxi_code","MaxiCode"],["micro_qr_code","MicroQRCode"],["pdf417","PDF417"],["qr_code","QRCode"],["rm_qr_code","rMQRCode"],["upc_a","UPC-A"],["upc_e","UPC-E"],["linear_codes","Linear-Codes"],["matrix_codes","Matrix-Codes"]],dN=[...S1,["unknown"]].map(e=>e[0]),lu=new Map(S1);function fN(e){for(const[t,n]of lu)if(e===n)return t;return"unknown"}function hN(e){if(x1(e))return{width:e.naturalWidth,height:e.naturalHeight};if(C1(e))return{width:e.width.baseVal.value,height:e.height.baseVal.value};if(_1(e))return{width:e.videoWidth,height:e.videoHeight};if(T1(e))return{width:e.width,height:e.height};if(k1(e))return{width:e.displayWidth,height:e.displayHeight};if(A1(e))return{width:e.width,height:e.height};if(I1(e))return{width:e.width,height:e.height};throw new TypeError("The provided value is not of type '(Blob or HTMLCanvasElement or HTMLImageElement or HTMLVideoElement or ImageBitmap or ImageData or OffscreenCanvas or SVGImageElement or VideoFrame)'.")}function x1(e){try{return e instanceof HTMLImageElement}catch{return!1}}function C1(e){try{return e instanceof SVGImageElement}catch{return!1}}function _1(e){try{return e instanceof HTMLVideoElement}catch{return!1}}function A1(e){try{return e instanceof HTMLCanvasElement}catch{return!1}}function T1(e){try{return e instanceof ImageBitmap}catch{return!1}}function I1(e){try{return e instanceof OffscreenCanvas}catch{return!1}}function k1(e){try{return e instanceof VideoFrame}catch{return!1}}function O1(e){try{return e instanceof Blob}catch{return!1}}function pN(e){try{return e instanceof ImageData}catch{return!1}}function mN(e,t){try{const n=new OffscreenCanvas(e,t);if(n.getContext("2d")instanceof OffscreenCanvasRenderingContext2D)return n;throw void 0}catch{const n=document.createElement("canvas");return n.width=e,n.height=t,n}}async function N1(e){if(x1(e)&&!await bN(e))throw new DOMException("Failed to load or decode HTMLImageElement.","InvalidStateError");if(C1(e)&&!await wN(e))throw new DOMException("Failed to load or decode SVGImageElement.","InvalidStateError");if(k1(e)&&EN(e))throw new DOMException("VideoFrame is closed.","InvalidStateError");if(_1(e)&&(e.readyState===0||e.readyState===1))throw new DOMException("Invalid element or state.","InvalidStateError");if(T1(e)&&xN(e))throw new DOMException("The image source is detached.","InvalidStateError");const{width:t,height:n}=hN(e);if(t===0||n===0)return null;const r=mN(t,n).getContext("2d");r.drawImage(e,0,0);try{return r.getImageData(0,0,t,n)}catch{throw new DOMException("Source would taint origin.","SecurityError")}}async function gN(e){let t;try{if(globalThis.createImageBitmap)t=await createImageBitmap(e);else if(globalThis.Image){t=new Image;let n="";try{n=URL.createObjectURL(e),t.src=n,await t.decode()}finally{URL.revokeObjectURL(n)}}else return e}catch{throw new DOMException("Failed to load or decode Blob.","InvalidStateError")}return await N1(t)}function yN(e){const{width:t,height:n}=e;if(t===0||n===0)return null;const r=e.getContext("2d");try{return r.getImageData(0,0,t,n)}catch{throw new DOMException("Source would taint origin.","SecurityError")}}async function vN(e){if(O1(e))return await gN(e);if(pN(e)){if(SN(e))throw new DOMException("The image data has been detached.","InvalidStateError");return e}return A1(e)||I1(e)?yN(e):await N1(e)}async function bN(e){try{return await e.decode(),!0}catch{return!1}}async function wN(e){var t;try{return await((t=e.decode)==null?void 0:t.call(e)),!0}catch{return!1}}function EN(e){return e.format===null}function SN(e){return e.data.buffer.byteLength===0}function xN(e){return e.width===0&&e.height===0}function R1(e,t){return e instanceof DOMException?new DOMException(`${t}: ${e.message}`,e.name):e instanceof Error?new e.constructor(`${t}: ${e.message}`):new Error(`${t}: ${e}`)}var Jo;class Df extends EventTarget{constructor(t={}){var n;super(),zO(this,Jo,void 0);try{const r=(n=t==null?void 0:t.formats)==null?void 0:n.filter(i=>i!=="unknown");if((r==null?void 0:r.length)===0)throw new TypeError("Hint option provided, but is empty.");for(const i of r??[])if(!lu.has(i))throw new TypeError(`Failed to read the 'formats' property from 'BarcodeDetectorOptions': The provided value '${i}' is not a valid enum value of type BarcodeFormat.`);QO(this,Jo,r??[]),cN().then(i=>{this.dispatchEvent(new CustomEvent("load",{detail:i}))}).catch(i=>{this.dispatchEvent(new CustomEvent("error",{detail:i}))})}catch(r){throw R1(r,"Failed to construct 'BarcodeDetector'")}}static async getSupportedFormats(){return dN.filter(t=>t!=="unknown")}async detect(t){try{const n=await vN(t);if(n===null)return[];let r;try{O1(n)?r=await uN(n,{tryHarder:!0,formats:g1(this,Jo).map(i=>lu.get(i))}):r=await lN(n,{tryHarder:!0,formats:g1(this,Jo).map(i=>lu.get(i))})}catch(i){throw console.error(i),new DOMException("Barcode detection service unavailable.","NotSupportedError")}return r.map(i=>{const{topLeft:{x:s,y:o},topRight:{x:c,y:u},bottomLeft:{x:d,y:f},bottomRight:{x:p,y:l}}=i.position,v=Math.min(s,c,d,p),a=Math.min(o,u,f,l),h=Math.max(s,c,d,p),y=Math.max(o,u,f,l);return{boundingBox:new DOMRectReadOnly(v,a,h-v,y-a),rawValue:i.text,format:fN(i.format),cornerPoints:[{x:s,y:o},{x:c,y:u},{x:p,y:l},{x:d,y:f}]}})}catch(n){throw R1(n,"Failed to execute 'detect' on 'BarcodeDetector'")}}}Jo=new WeakMap,globalThis.BarcodeDetector!=null||(globalThis.BarcodeDetector=Df);function CN(e){const{onClick:t,disabled:n,className:r}=e,i={cursor:n?"default":"pointer",stroke:n?"grey":"yellow",strokeLineJoin:"round",strokeLineCap:"round",strokeWidth:1.5,...e.style};return I.createElement("svg",{onClick:n?void 0:t,className:r,style:i,width:"28px",height:"28px",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},I.createElement("path",{d:"M3 3L6.00007 6.00007M21 21L19.8455 19.8221M9.74194 4.06811C9.83646 4.04279 9.93334 4.02428 10.0319 4.01299C10.1453 4 10.2683 4 10.5141 4H13.5327C13.7786 4 13.9015 4 14.015 4.01299C14.6068 4.08078 15.1375 4.40882 15.4628 4.90782C15.5252 5.00345 15.5802 5.11345 15.6901 5.33333C15.7451 5.44329 15.7726 5.49827 15.8037 5.54609C15.9664 5.79559 16.2318 5.95961 16.5277 5.9935C16.5844 6 16.6459 6 16.7688 6H17.8234C18.9435 6 19.5036 6 19.9314 6.21799C20.3077 6.40973 20.6137 6.71569 20.8055 7.09202C21.0234 7.51984 21.0234 8.0799 21.0234 9.2V15.3496M19.8455 19.8221C19.4278 20 18.8702 20 17.8234 20H6.22344C5.10333 20 4.54328 20 4.11546 19.782C3.73913 19.5903 3.43317 19.2843 3.24142 18.908C3.02344 18.4802 3.02344 17.9201 3.02344 16.8V9.2C3.02344 8.0799 3.02344 7.51984 3.24142 7.09202C3.43317 6.71569 3.73913 6.40973 4.11546 6.21799C4.51385 6.015 5.0269 6.00103 6.00007 6.00007M19.8455 19.8221L14.5619 14.5619M14.5619 14.5619C14.0349 15.4243 13.0847 16 12 16C10.3431 16 9 14.6569 9 13C9 11.9153 9.57566 10.9651 10.4381 10.4381M14.5619 14.5619L10.4381 10.4381M10.4381 10.4381L6.00007 6.00007"}))}function _N(e){const{onClick:t,disabled:n,className:r}=e,i={cursor:n?"default":"pointer",stroke:n?"grey":"yellow",strokeLineJoin:"round",strokeLineCap:"round",strokeWidth:1.5,...e.style};return I.createElement("svg",{onClick:n?void 0:t,className:r,style:i,width:"28px",height:"28px",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},I.createElement("path",{d:"M12 16C13.6569 16 15 14.6569 15 13C15 11.3431 13.6569 10 12 10C10.3431 10 9 11.3431 9 13C9 14.6569 10.3431 16 12 16Z"}),I.createElement("path",{d:"M3 16.8V9.2C3 8.0799 3 7.51984 3.21799 7.09202C3.40973 6.71569 3.71569 6.40973 4.09202 6.21799C4.51984 6 5.0799 6 6.2 6H7.25464C7.37758 6 7.43905 6 7.49576 5.9935C7.79166 5.95961 8.05705 5.79559 8.21969 5.54609C8.25086 5.49827 8.27836 5.44328 8.33333 5.33333C8.44329 5.11342 8.49827 5.00346 8.56062 4.90782C8.8859 4.40882 9.41668 4.08078 10.0085 4.01299C10.1219 4 10.2448 4 10.4907 4H13.5093C13.7552 4 13.8781 4 13.9915 4.01299C14.5833 4.08078 15.1141 4.40882 15.4394 4.90782C15.5017 5.00345 15.5567 5.11345 15.6667 5.33333C15.7216 5.44329 15.7491 5.49827 15.7803 5.54609C15.943 5.79559 16.2083 5.95961 16.5042 5.9935C16.561 6 16.6224 6 16.7454 6H17.8C18.9201 6 19.4802 6 19.908 6.21799C20.2843 6.40973 20.5903 6.71569 20.782 7.09202C21 7.51984 21 8.0799 21 9.2V16.8C21 17.9201 21 18.4802 20.782 18.908C20.5903 19.2843 20.2843 19.5903 19.908 19.782C19.4802 20 18.9201 20 17.8 20H6.2C5.0799 20 4.51984 20 4.09202 19.782C3.71569 19.5903 3.40973 19.2843 3.21799 18.908C3 18.4802 3 17.9201 3 16.8Z"}))}function AN(e){const{scanning:t,startScanning:n,stopScanning:r}=e,[i,s]=I.useState(!1);function o(){s(!0),t?r():n(),setTimeout(()=>s(!1),1e3)}return I.createElement("div",{style:{bottom:85,right:3,position:"absolute",zIndex:2,cursor:i?"default":"pointer"}},t?I.createElement(CN,{disabled:i,onClick:o}):I.createElement(_N,{disabled:i,onClick:o}))}function TN(e){const{onClick:t,className:n,style:r}=e;return I.createElement("svg",{onClick:t,width:"30px",height:"30px",viewBox:"0 0 24 24",className:n,style:r,xmlns:"http://www.w3.org/2000/svg"},I.createElement("path",{strokeWidth:.2,stroke:"yellow",fill:"yellow",d:"M13.225 9l5.025-7h-7.972l-3.3 11h5.359l-2.452 8.648.75.364L20.374 9zm.438 3H8.322l2.7-9H16.3l-5.025 7h7.101l-6.7 8.953z"}))}function IN(e){const{onClick:t,className:n,style:r}=e;return I.createElement("svg",{onClick:t,width:"30px",height:"30px",viewBox:"0 0 24 24",className:n,style:r,xmlns:"http://www.w3.org/2000/svg"},I.createElement("path",{strokeWidth:.2,stroke:"yellow",fill:"yellow",d:"M14.516 15.158l.714.714-4.595 6.14-.75-.364L12.337 13H6.978L8.22 8.861l.803.803L8.322 12h3.036l1.793 1.792-1.475 5.16zm5.984 4.05L4.793 3.5l.707-.707 3.492 3.492L10.278 2h7.972l-5.025 7h7.149l-3.71 4.957 4.543 4.543zM12.707 10l3.243 3.243L18.376 10zM9.795 7.088l2.079 2.079L16.3 3h-5.278z"}))}function kN(e){const{status:t,scanning:n,torchToggle:r}=e;function i(s){r(s)}return n&&r?I.createElement("div",{style:{bottom:35,right:3,position:"absolute",zIndex:2,cursor:"pointer"}},t?I.createElement(IN,{onClick:()=>i(!1)}):I.createElement(TN,{onClick:()=>i(!0)})):null}function ON(e){const{onClick:t,className:n,disabled:r=!1}=e,i={cursor:r?"default":"pointer",stroke:r?"grey":"yellow",fill:r?"grey":"yellow",...e.style};return I.createElement("svg",{onClick:r?void 0:t,width:"30px",height:"30px",viewBox:"0 0 24 24",className:n,style:i,xmlns:"http://www.w3.org/2000/svg"},I.createElement("path",{strokeWidth:.3,d:"M16.279,17.039c-1.396,1.209 -3.216,1.941 -5.206,1.941c-4.393,0 -7.96,-3.567 -7.96,-7.96c-0,-4.393 3.567,-7.96 7.96,-7.96c4.393,0 7.96,3.567 7.96,7.96c-0,2.044 -0.772,3.909 -2.04,5.319l0.165,0.165c1.194,1.194 2.388,2.388 3.583,3.582c0.455,0.456 -0.252,1.163 -0.707,0.708l-3.755,-3.755Zm1.754,-6.019c-0,-3.841 -3.119,-6.96 -6.96,-6.96c-3.842,0 -6.96,3.119 -6.96,6.96c-0,3.841 3.118,6.96 6.96,6.96c3.841,0 6.96,-3.119 6.96,-6.96Zm-7.46,0.5l-1.5,0c-0.645,0 -0.643,-1 -0,-1l1.5,0l-0,-1.5c-0,-0.645 1,-0.643 1,0l-0,1.5l1.5,0c0.645,0 0.643,1 -0,1l-1.5,0l-0,1.5c-0,0.645 -1,0.643 -1,0l-0,-1.5Z"}))}function NN(e){const{onClick:t,className:n,disabled:r=!1}=e,i={cursor:r?"default":"pointer",stroke:r?"grey":"yellow",fill:r?"grey":"yellow",...e.style};return I.createElement("svg",{onClick:r?void 0:t,width:"30px",height:"30px",viewBox:"0 0 24 24",className:n,style:i,xmlns:"http://www.w3.org/2000/svg"},I.createElement("path",{strokeWidth:.3,d:"M16.279,17.039c-1.396,1.209 -3.216,1.941 -5.206,1.941c-4.393,0 -7.96,-3.567 -7.96,-7.96c-0,-4.393 3.567,-7.96 7.96,-7.96c4.393,0 7.96,3.567 7.96,7.96c-0,2.044 -0.772,3.909 -2.04,5.319l0.165,0.165c1.194,1.194 2.388,2.388 3.583,3.582c0.455,0.456 -0.252,1.163 -0.707,0.708l-3.755,-3.755Zm1.754,-6.019c-0,-3.841 -3.119,-6.96 -6.96,-6.96c-3.842,0 -6.96,3.119 -6.96,6.96c-0,3.841 3.118,6.96 6.96,6.96c3.841,0 6.96,-3.119 6.96,-6.96Zm-4.96,-0.5c0.645,0 0.643,1 -0,1l-4,0c-0.645,0 -0.643,-1 -0,-1l4,0Z"}))}function RN(e){const{scanning:t,capabilities:n,onZoom:r,value:i}=e;if(!t||!r)return null;const s=(n.max-n.min)/3;return I.createElement(I.Fragment,null,I.createElement("div",{style:{bottom:130,right:3,position:"absolute",zIndex:2,cursor:"pointer"}},I.createElement(NN,{disabled:i<=n.min,onClick:function(){r(Math.max(i-s,n.min))}})),I.createElement("div",{style:{bottom:180,right:3,position:"absolute",zIndex:2,cursor:"pointer"}},I.createElement(ON,{disabled:i>=n.max,onClick:function(){r(Math.min(i+s,n.max))}})))}function MN(e){const{scanning:t,loading:n,capabilities:r,border:i=35,onOff:s,torch:o,zoom:c,startScanning:u,stopScanning:d}=e,f="rgba(255, 0, 0, 0.5)";return I.createElement("div",{style:{position:"relative"}},I.createElement("svg",{viewBox:"0 0 100 100",style:{top:0,left:0,zIndex:1,boxSizing:"border-box",border:`${i>=35?i:35}px solid rgba(0, 0, 0, 0.2)`}},n&&I.createElement("text",{x:"50",y:"50",textAnchor:"middle",fill:"black",fontSize:"8",fontFamily:"Arial",fontWeight:"bold"},"Loading ...",I.createElement("animate",{attributeName:"opacity",values:"0;1;0",dur:"2s",repeatCount:"indefinite"})),I.createElement("path",{fill:"none",d:"M23,0 L0,0 L0,23",stroke:f,strokeWidth:3}),I.createElement("path",{fill:"none",d:"M0,77 L0,100 L23,100",stroke:f,strokeWidth:3}),I.createElement("path",{fill:"none",d:"M77,100 L100,100 L100,77",stroke:f,strokeWidth:3}),I.createElement("path",{fill:"none",d:"M100,23 L100,0 77,0",stroke:f,strokeWidth:3})),s&&I.createElement(AN,{scanning:t,startScanning:u,stopScanning:d}),o&&r.torch&&I.createElement(kN,{scanning:t,status:o.status,torchToggle:o.toggle}),c&&r.zoom&&I.createElement(RN,{scanning:t,capabilities:r.zoom,value:c.value,onZoom:c.onChange}))}const DN={facingMode:"environment",width:{min:640,ideal:720,max:1920},height:{min:640,ideal:720,max:1080}},PN={audio:!0,tracker:void 0,onOff:!1,finder:!0,torch:!0,zoom:!1},jN={width:"100%",height:"100%",position:"relative"},LN={top:0,left:0,width:"100%",height:"100%",display:"block",overflow:"hidden"};var BN=function(e){let t,n=!1;return(...r)=>(n||(t=e(r),n=!0),t)}(()=>{const e=wO(window);switch(e.browser){case"chrome":NO(window,e);break;case"firefox":PO(window,e);break;case"safari":FO(window,e);break;default:throw new Error("Unsupported browser")}});const FN="data:audio/mp3;base64,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";var Zo=e=>e instanceof Date,M1=e=>e==null;const D1=e=>typeof e=="object";var P1=e=>!M1(e)&&!Array.isArray(e)&&D1(e)&&!Zo(e),j1=e=>M1(e)||!D1(e);function L1(e,t){if(j1(e)||j1(t))return e===t;if(Zo(e)&&Zo(t))return e.getTime()===t.getTime();const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(const i of n){const s=e[i];if(!r.includes(i))return!1;if(i!=="ref"){const o=t[i];if(Zo(s)&&Zo(o)||P1(s)&&P1(o)||Array.isArray(s)&&Array.isArray(o)?!L1(s,o):s!==o)return!1}}return!0}function du(e){if(e===null)throw new Error("Canvas should always be defined when component is mounted.");const t=e.getContext("2d");if(t===null)throw new Error("Canvas 2D context should be non-null");t.clearRect(0,0,e.width,e.height)}function UN(e){var t;const{onScan:n,constraints:r,formats:i=["qr_code"],paused:s=!1,components:o,children:c,styles:u,classNames:d,allowMultiple:f,scanDelay:p,onError:l}=e,v=I.useRef(null),a=I.useRef(null),h=I.useRef(null),y=I.useMemo(()=>({...DN,...r}),[r]),g=I.useMemo(()=>({...PN,...o}),[o]),[b,w]=I.useState(!1),[E,S]=I.useState(!0),[A,T]=I.useState(y),O=function(){const U=I.useRef(Promise.resolve({type:"stop",data:{}})),N=I.useRef(null),L=I.useRef(null),[Y,z]=I.useState({}),[ee,te]=I.useState({}),re=I.useCallback(async(q,$)=>{var Q,_,j;if(!window.isSecureContext)throw new Error("camera access is only permitted in secure context. Use HTTPS or localhost rather than HTTP.");if(((Q=navigator==null?void 0:navigator.mediaDevices)===null||Q===void 0?void 0:Q.getUserMedia)===void 0)throw new Error("this browser has no Stream API support");BN();const B=await navigator.mediaDevices.getUserMedia({audio:!1,video:$});q.srcObject!==void 0?q.srcObject=B:q.mozSrcObject!==void 0?q.mozSrcObject=B:window.URL.createObjectURL?q.src=window.URL.createObjectURL(B):window.webkitURL?q.src=window.webkitURL.createObjectURL(B):q.src=B.id,await Promise.race([q.play(),new Promise(X=>setTimeout(X,3e3)).then(()=>{throw new Error("Loading camera stream timed out after 3 seconds.")})]),await new Promise(X=>setTimeout(X,500));const[R]=B.getVideoTracks();return te(R.getSettings()),z((j=(_=R==null?void 0:R.getCapabilities)===null||_===void 0?void 0:_.call(R))!==null&&j!==void 0?j:{}),N.current=B,L.current=R,{type:"start",data:{videoEl:q,stream:B,constraints:$}}},[]),he=I.useCallback(async(q,$)=>{q.src="",q.srcObject=null,q.load();for(const Q of $.getTracks())$.removeTrack(Q),Q.stop();return N.current=null,L.current=null,te({}),{type:"stop",data:{}}},[]),ue=I.useCallback(async(q,{constraints:$,restart:Q=!1})=>{if(U.current=U.current.then(_=>{if(_.type==="start"){const{data:{videoEl:j,stream:B,constraints:R}}=_;return Q||q!==j||$!==R?he(j,B).then(()=>re(q,$)):_}return re(q,$)}),(await U.current).type==="stop")throw new Error("Something went wrong with the camera task queue (start task).")},[re,he]),ye=I.useCallback(async()=>{if(U.current=U.current.then(q=>{if(q.type==="stop")return q;const{data:{videoEl:$,stream:Q}}=q;return he($,Q)}),(await U.current).type==="start")throw new Error("Something went wrong with the camera task queue (stop task).")},[he]),pe=I.useCallback(async q=>{const $=L.current;if(!$)throw new Error("No active video track found.");{q.advanced&&q.advanced[0].zoom&&$.getCapabilities().torch&&await $.applyConstraints({advanced:[{torch:!1}]}),await $.applyConstraints(q);const Q=$.getCapabilities(),_=$.getSettings();z(Q),te(_)}},[]);return I.useEffect(()=>()=>{(async()=>await ye())()},[ye]),{capabilities:Y,settings:ee,startCamera:ue,stopCamera:ye,updateConstraints:pe}}(),{startScanning:M,stopScanning:D}=function(U){const{videoElementRef:N,onScan:L,onFound:Y,retryDelay:z=100,scanDelay:ee=0,formats:te=[],audio:re=!0,allowMultiple:he=!1}=U,ue=I.useRef(new Df({formats:te})),ye=I.useRef(null),pe=I.useRef(null);I.useEffect(()=>{ue.current=new Df({formats:te})},[te]),I.useEffect(()=>{typeof window<"u"&&re&&(ye.current=new Audio(FN))},[re]);const q=I.useCallback($=>async Q=>{if(N.current!==null&&N.current.readyState>1){const{lastScan:_,contentBefore:j,lastScanHadContent:B}=$;if(Q-_<z)pe.current=window.requestAnimationFrame(q($));else{const R=await ue.current.detect(N.current),X=R.some(fe=>!j.includes(fe.rawValue)),J=R.length>0;let Z=$.lastOnScan;(X||he&&J&&Q-Z>=ee)&&(re&&ye.current&&ye.current.paused&&ye.current.play().catch(fe=>console.error("Error playing the sound",fe)),Z=Q,L(R)),J&&Y(R),!J&&B&&Y(R);const W={lastScan:Q,lastOnScan:Z,lastScanHadContent:J,contentBefore:X?R.map(fe=>fe.rawValue):j};pe.current=window.requestAnimationFrame(q(W))}}},[N.current,L,Y,z]);return{startScanning:I.useCallback(()=>{const $=performance.now(),Q={lastScan:$,lastOnScan:$,contentBefore:[],lastScanHadContent:!1};pe.current=window.requestAnimationFrame(q(Q))},[q]),stopScanning:I.useCallback(()=>{pe.current!==null&&(window.cancelAnimationFrame(pe.current),pe.current=null)},[])}}({videoElementRef:v,onScan:n,onFound:U=>function(N,L,Y,z){const ee=Y;if(ee==null)throw new Error("onFound handler should only be called when component is mounted. Thus tracking canvas is always defined.");const te=L;if(te==null)throw new Error("onFound handler should only be called when component is mounted. Thus video element is always defined.");if(N.length===0||z===void 0)du(ee);else{const re=te.offsetWidth,he=te.offsetHeight,ue=te.videoWidth,ye=te.videoHeight,pe=Math.max(re/ue,he/ye),q=ue*pe,$=ye*pe,Q=q/ue,_=$/ye,j=(re-q)/2,B=(he-$)/2,R=({x:W,y:fe})=>({x:Math.floor(W*Q),y:Math.floor(fe*_)}),X=({x:W,y:fe})=>({x:Math.floor(W+j),y:Math.floor(fe+B)}),J=N.map(W=>{const{boundingBox:fe,cornerPoints:ge}=W,{x:le,y:ie}=X(R({x:fe.x,y:fe.y})),{x:be,y:ae}=R({x:fe.width,y:fe.height});return{...W,cornerPoints:ge.map(Ce=>X(R(Ce))),boundingBox:DOMRectReadOnly.fromRect({x:le,y:ie,width:be,height:ae})}});ee.width=te.offsetWidth,ee.height=te.offsetHeight;const Z=ee.getContext("2d");if(Z===null)throw new Error("onFound handler should only be called when component is mounted. Thus tracking canvas 2D context is always defined.");z(J,Z)}}(U,v.current,h.current,g.tracker),formats:i,audio:g.audio,allowMultiple:f,retryDelay:g.tracker===void 0?500:10,scanDelay:p});I.useEffect(()=>(w(!0),()=>{w(!1)}),[]),I.useEffect(()=>{b&&(D(),M())},[o==null?void 0:o.tracker]),I.useEffect(()=>{if(!L1(y,A)){const U=y;r!=null&&r.deviceId&&delete U.facingMode,T(U)}},[r]);const F=I.useMemo(()=>({constraints:A,shouldStream:b&&!s}),[A,b,s]),V=async()=>{const U=v.current;if(U==null)throw new Error("Video should be defined when component is mounted.");const N=a.current;if(N==null)throw new Error("Canvas should be defined when component is mounted.");const L=N.getContext("2d");if(L==null)throw new Error("Canvas should be defined when component is mounted.");if(F.shouldStream){await O.stopCamera(),S(!1);try{await O.startCamera(U,F),U?S(!0):await O.stopCamera()}catch(Y){l==null||l(Y),console.error("error",Y)}}else N.width=U.videoWidth,N.height=U.videoHeight,L.drawImage(U,0,0,U.videoWidth,U.videoHeight),await O.stopCamera(),S(!1)};I.useEffect(()=>{(async()=>await V())()},[F]);const G=I.useMemo(()=>F.shouldStream&&E,[F.shouldStream,E]);return I.useEffect(()=>{if(G){if(a.current===void 0)throw new Error("shouldScan effect should only be triggered when component is mounted. Thus pause frame canvas is defined");if(du(a.current),h.current===void 0)throw new Error("shouldScan effect should only be triggered when component is mounted. Thus tracking canvas is defined");if(du(h.current),v.current==null)throw new Error("shouldScan effect should only be triggered when component is mounted. Thus video element is defined");M()}},[G]),I.createElement("div",{style:{...jN,...u==null?void 0:u.container},className:d==null?void 0:d.container},I.createElement("video",{ref:v,style:{...LN,...u==null?void 0:u.video,visibility:s?"hidden":"visible"},className:d==null?void 0:d.video,autoPlay:!0,muted:!0,playsInline:!0}),I.createElement("canvas",{ref:a,style:{display:s?"block":"none",position:"absolute",top:0,left:0,width:"100%"}}),I.createElement("canvas",{ref:h,style:{position:"absolute",top:0,left:0,width:"100%",height:"100%"}}),I.createElement("div",{style:{top:0,left:0,position:"absolute",width:"100%",height:"100%"}},g.finder&&I.createElement(MN,{scanning:E,capabilities:O.capabilities,loading:!1,onOff:g.onOff,zoom:g.zoom&&O.settings.zoom?{value:O.settings.zoom,onChange:async U=>{const N={...A,advanced:[{zoom:U}]};await O.updateConstraints(N)}}:void 0,torch:g.torch?{status:(t=O.settings.torch)!==null&&t!==void 0&&t,toggle:async U=>{const N={...A,advanced:[{torch:U}]};await O.updateConstraints(N)}}:void 0,startScanning:async()=>await V(),stopScanning:async()=>{await O.stopCamera(),du(h.current),S(!1)},border:u==null?void 0:u.finderBorder}),c))}function VN(){const[e,t]=I.useState([]);return I.useEffect(()=>{(async()=>t(await async function(){return(await navigator.mediaDevices.enumerateDevices()).filter(({kind:n})=>n==="videoinput")}()))()},[]),e}const B1=I.createContext({});function kn(){const e=I.useContext(B1);if(!e)throw new Error("Only use 'useConfigurationContext' within a ConfigurationContext Provider");return e}const qN="data:image/svg+xml,%3csvg%20height='24'%20viewBox='0%200%2024%2024'%20width='24'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='m21.25%207.5c.3796958%200%20.693491.28215388.7431534.64822944l.0068466.10177056v8.5c0%201.7330315-1.3564548%203.1492459-3.0655761%203.2448552l-.1844239.0051448h-12.689l.71933009.7196699c.26626656.2662666.29047261.6829303.07261815.9765418l-.07261815.0841184c-.26626657.2662665-.68293025.2904726-.97654174.0726181l-.08411844-.0726181-2-2-.06339799-.0720275c-.00244939-.0031685-.00487398-.0063571-.00727348-.0095656l.07067147.0815931c-.03705327-.0370533-.06941902-.077019-.09709724-.1191603-.01316484-.0201549-.025545-.0411423-.03690171-.0627516-.00483354-.0091218-.00919014-.0178526-.01336588-.0266478-.01274712-.0267885-.02425172-.0552483-.03400215-.0845099-.00225837-.0069437-.00418282-.0130149-.00602813-.019105-.02092163-.0684786-.0322748-.1419912-.0322748-.2181555%200-.0383922.00288471-.0761107.00844919-.1129505.00180466-.0115676.0038603-.0232773.00619514-.0349422.00494363-.0250031.01111685-.0492994.01844184-.073091.00362656-.0116598.00765847-.0237092.01200456-.0356703.00848426-.0232976.01778613-.0453662.02808241-.0668678.00549219-.0116011.01179514-.0239381.01846187-.0361292.01323523-.0240158.02734042-.0467392.04258121-.0686124.00392129-.0057417.00832657-.0118713.01283554-.0179483.0251194-.0332177.04801831-.0595185.07261815-.0841184l2-2c.29289322-.2928932.76776696-.2928932%201.06066018%200%20.26626656.2662666.29047261.6829303.07261815.9765418l-.07261815.0841184-.72033009.7196699h12.69c.9181734%200%201.6711923-.7071103%201.7441988-1.6064728l.0058012-.1435272v-8.5c0-.41421356.3357864-.75.75-.75zm-3.0537883-5.35294824.0841184.07261815%202%202c.0254481.02544812.049076.05271652.0706715.08159313l-.0706715-.08159313c.0370533.03705328.069419.07701901.0970972.1191603.0131649.02015493.025545.04114226.0369017.06275154.0048336.00912187.0091902.01785262.0133659.02664784.0127471.02678853.0242517.0552483.0340022.08450994.0022583.00694369.0041828.01301489.0060281.01910493.0209216.06847868.0322748.14199127.0322748.21815554%200%20.03839224-.0028847.07611073-.0084492.11295053-.0014988.0095454-.0031606.01924362-.0050138.02891241-.0051364.02710922-.0117072.05340972-.0196232.07912072-.0036265.0116598-.0076584.02370928-.0120045.03567032-.0084843.02329763-.0177862.04536621-.0280824.06686781-.0054922.01160108-.0117952.02393815-.0184619.03612923-.0132352.02401575-.0273404.04673917-.0425812.06861233-.0039213.00574174-.0083266.01187138-.0128356.0179483-.023778.03144192-.0451015.05615345-.0679264.07938506l-.0046917.00473338-2%202c-.2928932.29289321-.767767.29289321-1.0606602%200-.2662665-.26626657-.2904726-.68293025-.0726181-.97654174l.0726181-.08411844.7183301-.71966991h-12.688c-.9181734%200-1.67119234.70711027-1.7441988%201.60647279l-.0058012.14352721v8.5c0%20.4142136-.33578644.75-.75.75-.37969577%200-.69349096-.2821539-.74315338-.6482294l-.00684662-.1017706v-8.5c0-1.73303146%201.35645477-3.14924593%203.06557609-3.24485521l.18442391-.00514479h12.689l-.7193301-.71966991c-.2662665-.26626657-.2904726-.68293025-.0726181-.97654174l.0726181-.08411844c.2662666-.26626656.6829303-.29047261.9765418-.07261815zm-6.1962117%205.85294824c2.209139%200%204%201.790861%204%204s-1.790861%204-4%204-4-1.790861-4-4%201.790861-4%204-4zm0%201.5c-1.3807119%200-2.5%201.1192881-2.5%202.5s1.1192881%202.5%202.5%202.5%202.5-1.1192881%202.5-2.5-1.1192881-2.5-2.5-2.5z'%20fill='%23212121'/%3e%3c/svg%3e";function $N({onScan:e}){const{cameraFacingMode:t}=kn(),[n,r]=I.useState(t??Hi.USER);return m.jsxs("div",{className:"relative w-full",children:[m.jsx("div",{className:"scale-x-[-1]",children:m.jsx(UN,{components:{finder:!1},onScan:e,constraints:{facingMode:n},allowMultiple:!0,classNames:{video:"rounded",container:"max-h-[calc(100vh-381px)] min-h-[267px] overflow-hidden rounded"},onError:i=>{console.log(i),tc(i)}})}),m.jsx("div",{className:"absolute right-2 top-2 flex h-10 w-10 cursor-pointer items-center justify-center rounded bg-white shadow-overlay",onClick:()=>n===Hi.USER?r(Hi.ENVIRONMENT):r(Hi.USER),children:m.jsx("img",{src:qN,alt:"camera-switch"})})]})}function Ms({data:e,dataSetter:t,setDefer:n,label:r=""}){const i=I.useRef(null),s=VN(),[o,c]=Dk()??[0,0],{subscribe:u,unsubscribe:d}=Oo(),f=p=>{t(p[0].rawValue)};return I.useEffect(()=>{c&&c<=332&&i.current&&i.current.scrollIntoView({behavior:"smooth",block:"end"});const p=l=>{t(l.detail.code)};return u("onCodeScan",p),()=>{d("onCodeScan",p)}},[c]),m.jsxs("div",{ref:i,children:[!!s.length&&m.jsxs("div",{className:"mb-4 flex flex-col gap-4",children:[m.jsx($N,{onScan:f}),m.jsx("hr",{})]}),m.jsx(ji,{label:r,value:e,autoFocus:!0,placeholder:"CDE2341S",onChange:p=>{n&&n(!0),t(p.target.value)}})]})}function GN(){const{t:e}=Ve(),{errorToast:t}=qt(),{uuid:n,portalSession:r}=Le(),[i,s]=I.useState(""),[o,c]=I.useState(!1),[u,d]=I.useState(!1),f=$t(),p=Ct(),l=()=>{d(!0),p.get(`${n}/check-code/${i}`).then(v=>{if(v.data.identifier)return f(`identifier/${v.data.identifier.value}`);if(v.data.voucher)return f(`voucher/${v.data.voucher.code}`);if(v.data.giftcard)return f(`giftcard/${v.data.giftcard.hash}`);t(e("unknownCode",{code:i}))}).catch(t).finally(()=>d(!1))};return I.useEffect(()=>{i&&!o&&l()},[i]),m.jsx(En,{children:m.jsxs(Rt,{id:ar,children:[m.jsx(At,{children:m.jsx("div",{className:"flex h-16 items-center",children:m.jsx("p",{children:e("scanOrEnterX",{x:"code"})})})}),m.jsx(_t,{children:m.jsx(Fi,{onSubmit:l,children:m.jsx(Ms,{data:i,dataSetter:s,setDefer:c,label:e("contactIdentifier")})})}),m.jsx(Kt,{children:m.jsxs("div",{className:"flex flex-col gap-2",children:[m.jsx(ut,{label:e("continue"),onClick:l,pending:u}),r.inputData.enable_email_identification&&m.jsx(ut,{label:e("useEmail"),variant:"secondary",onClick:()=>f("email")})]})})]})})}function HN(){const{hash:e}=Pr();return m.jsx(zn,{to:`${Fe.GIFTCARD}/select/${e}`})}function YN(){const{identifierValue:e}=Pr(),{errorToast:t}=qt(),{uuid:n,mutate:r}=Le(),{onContactLink:i}=kn(),[s,o]=I.useState(!1),c=Ct(),u=f=>c.get(`${n}/contacts`,{contact_uuid:f}),d=()=>{c.put(n,{contact_identifier_value:e}).then(f=>{i&&u(f.data.data.contact.uuid).then(p=>{i==null||i(p.data.data)}),r().then(()=>o(!0))}).catch(t)};return I.useEffect(()=>{d()},[]),s?m.jsx(zn,{to:`${Fe.PORTAL}/overview`}):m.jsx(rr,{})}function F1(e){const{portalSession:t}=Le(),[n,r]=I.useState(),{isLoading:i,pending:s,mutate:o}=$n({url:`${t.uuid}/vouchers/${e}`,onData:r});return{voucher:n,isLoading:i,pending:s,mutate:o}}function WN(){const{t:e}=Ve(),{code:t}=Pr(),{voucher:n}=F1(t),{portalSession:r}=Le(),[i,s]=I.useState(!1),[o,c]=I.useState(!1),u=$t(),d=()=>{n!=null&&n.contact||r.contact?s(!0):c(!0)};return I.useEffect(()=>{n&&d()},[n]),n?m.jsxs(m.Fragment,{children:[i?m.jsx(zn,{to:`${Fe.VOUCHER}/${n.code}/redeem`}):m.jsx(rr,{}),m.jsx(fi,{title:e("noContactLinkedToVoucherTitle"),isOpen:o,onClose:()=>c(!1),primaryAction:{label:e("linkToContact"),action:()=>u(`${Fe.VOUCHER}/${n.code}/identifier`)},secondaryAction:{label:e("cancel"),action:()=>c(!1)},children:m.jsx("p",{children:e("linkVoucherWithCodeToContact",{code:n.code})})})]}):m.jsx(rr,{})}function fu({redirectRoute:e}){const{state:t}=Fn(),{t:n}=Ve(),{onContactLink:r}=kn(),{portalSession:i,mutate:s}=Le(),{publish:o}=Oo(),[c,u]=I.useState(""),[d,f]=I.useState(!1),[p,l]=I.useState(!1),v=$t(),a=Ct(),h=b=>a.get(`${i.uuid}/contacts`,{contact_uuid:b}),y=()=>{f(!0),a.put(i.uuid,{email:c}).then(b=>{r&&h(b.data.data.contact.uuid).then(w=>{r==null||r(w.data.data)}),s().then(()=>v(e))}).catch(b=>{b.response.data.code===Ia.CONTACT_NOT_FOUND&&l(!0)}).finally(()=>f(!1))},g=()=>{f(!0),a.post(`${i.uuid}/contacts`,{email:c}).then(y).finally(()=>f(!1))};return I.useEffect(()=>{o("openKeyboard",{inputId:"via-email-address-input",inputValue:""})},[]),m.jsxs(m.Fragment,{children:[m.jsx(En,{children:m.jsxs(Rt,{id:ar,children:[m.jsx(At,{children:m.jsx("div",{className:"flex h-16 items-center",children:m.jsx("p",{children:n("fillInXBelow",{x:n("emailAddress").toLowerCase()})})})}),m.jsx(_t,{children:m.jsx(Fi,{onSubmit:()=>c&&!d&&y(),children:m.jsx(ji,{id:"via-email-address-input",label:n("emailAddress"),autoFocus:!0,onChange:b=>u(b.target.value),beforeIcon:"mail"})})}),m.jsx(Kt,{children:m.jsxs("div",{className:"flex flex-col gap-2",children:[m.jsx(ut,{label:n("continue"),className:"w-full",onClick:y,disabled:!c,pending:d}),m.jsx(ut,{label:n("useIdentifier"),variant:"secondary",onClick:()=>v("../identifier",{state:t})})]})})]})}),m.jsx(fi,{title:`${n("new")} ${n("emailAddress").toLowerCase()}`,isOpen:p,onClose:()=>l(!1),primaryAction:{label:n("confirm"),action:g,disabled:d},secondaryAction:{label:n("cancel"),action:()=>l(!1)},children:m.jsx("p",{children:n("continueWithEmail",{email:c})})})]})}function KN(){return m.jsxs(jr,{children:[m.jsx(He,{path:"/*",element:m.jsx(GN,{})}),m.jsx(He,{path:"/giftcard/:hash",element:m.jsx(HN,{})}),m.jsx(He,{path:"/identifier/:identifierValue",element:m.jsx(YN,{})}),m.jsx(He,{path:"/voucher/:code",element:m.jsx(WN,{})}),m.jsx(He,{path:"/email",element:m.jsx(fu,{redirectRoute:Fe.PORTAL})})]})}const zN={[un.GIFTCARD]:`${Fe.GIFTCARD}/select`,[un.REDEEM_GIFTCARD]:`${Fe.GIFTCARD}/redeem`,[un.TOP_UP_GIFTCARD]:`${Fe.GIFTCARD}/top-up`};function QN(){const{t:e}=Ve(),{portalSession:t}=Le(),{errorToast:n}=qt(),[r,i]=I.useState(""),[s,o]=I.useState(!1),[c,u]=I.useState(!1),d=Ct(),f=$t(),p=()=>{o(!0),d.get(`${t.uuid}/giftcards/${r}`).then(l=>{const v=t.type;f(`${zN[v]}/${l.data.data.hash}`)}).catch(l=>{n(l),i("")}).finally(()=>o(!1))};return I.useEffect(()=>{!c&&r&&p()},[r]),m.jsx(En,{children:m.jsxs(Rt,{id:ar,children:[m.jsx(At,{children:m.jsx("div",{className:"flex h-16 items-center",children:m.jsx("p",{children:e("scanGiftcard")})})}),m.jsx(_t,{children:m.jsx(Ms,{data:r,dataSetter:i,setDefer:u,label:e("hash")})}),m.jsx(Kt,{children:m.jsx(ut,{label:e("submit"),className:"w-full",onClick:p,disabled:!r,pending:s})})]})})}function JN(){const{t:e}=Ve(),{hash:t}=Pr(),n=$t();return m.jsx(En,{children:m.jsxs(Rt,{id:ar,children:[m.jsx(At,{children:m.jsx("div",{className:"flex h-16 items-center",children:m.jsx("p",{children:e("Choose type")})})}),m.jsx(_t,{children:m.jsxs("div",{className:"flex gap-2",children:[m.jsx(ut,{className:"grow",label:"Redeem",onClick:()=>n(`${Fe.GIFTCARD}/redeem/${t}`)}),m.jsx(ut,{className:"grow",label:"Top up",onClick:()=>n(`${Fe.GIFTCARD}/top-up/${t}`)})]})})]})})}function U1(e){const{portalSession:t}=Le(),[n,r]=I.useState(),{isLoading:i,pending:s,mutate:o}=$n({url:`${t.uuid}/giftcards/${e}`,onData:r});return{giftcard:n,isLoading:i,pending:s,mutate:o}}function Xo(){const{mutate:e}=Le();return{get:()=>e().then(r=>r.data.data.events),post:()=>{e().then(r=>{HS(r.data.data.events)})}}}function ZN(){const{t:e}=Ve(),{errorToast:t}=qt(),{hash:n}=Pr(),{giftcard:r,mutate:i}=U1(n),{portalSession:s,mutate:o}=Le(),{onUseGiftcard:c}=kn(),{post:u}=Xo(),[d]=I.useState(s.results.remaining_amount?+s.results.remaining_amount:+s.inputData.amount_in_cents),[f,p]=I.useState(!1),l=s.inputData.allow_multiple_giftcards??!0,v=$t(),a=Ct(),h=()=>{p(!0),a.post(`${s.uuid}/giftcards/transaction`,{uuid:r.uuid,amount_in_cents:-y()}).then(E=>{i(),o(),u(),c==null||c(E.data.data)}).catch(t).finally(()=>p(!1))},y=()=>Math.min(g(),r.amount_in_cents),g=()=>s.results.remaining_amount??s.inputData.amount_in_cents,b=()=>{let E=0;return s.events.filter(A=>A.type===Kr.GIFTCARD_TRANSACTION).forEach(A=>{A.data.giftcard.uuid===r.uuid&&(E+=A.data.amount_in_cents)}),E},w=()=>{if(y())return{label:e("confirmAndPay",{amount:Ki(y(),s.currency)}),onClick:h};if(l&&g())return{label:e("useAnotherGiftcard"),onClick:()=>v(Fe.GIFTCARD),variant:"secondary"}};return r?m.jsx(En,{children:m.jsxs(Rt,{children:[m.jsx(At,{children:m.jsx("div",{className:"flex h-16 items-center",children:m.jsx("p",{children:`${e("giftcard")} ${r.hash}`})})}),m.jsx(_t,{children:m.jsxs("div",{className:"flex h-full flex-col gap-4",children:[m.jsx("div",{className:"rounded-lg bg-core-primary-50 p-4",children:m.jsxs("div",{className:"flex justify-between",children:[m.jsx("p",{className:"font-light text-gray-500",children:e("balance")}),m.jsx(di,{value:r.amount_in_cents,start:r.amount_in_cents-b(),currency:s.currency,asCurrency:!0})]})}),m.jsx("div",{className:"flex h-full flex-col items-center justify-center gap-2 p-6",children:m.jsxs("div",{className:"flex flex-col items-center gap-2 p-4",children:[m.jsx("p",{className:"font-light text-gray-500",children:e("amountToPay")}),m.jsx("div",{className:"text-5xl font-bold",children:m.jsx(di,{value:d+b(),start:d,currency:s.currency,asCurrency:!0})})]})})]})}),w()&&m.jsx(Kt,{children:m.jsx(ut,{label:"",className:"w-full",...w(),pending:f})})]})}):m.jsx(rr,{})}function XN({value:e,valueSetter:t,enabled:n}){const[r,i]=I.useState(!1),s=I.useRef(null),o=I.useRef(null);I.useEffect(()=>{d(e?e.toString():"")},[]);const c=f=>{t(f?parseInt(f):0),d(f)},u=f=>{const{key:p}=f;if(e===0&&!/^[1-9]$/.test(p)||e!==0&&!/^[0-9]$/.test(p)&&p!=="Backspace")return;let l;if(p!=="Backspace")l=parseInt(e===0?p:`${e}${p}`);else{const v=e.toString().slice(0,-1);l=v.length?parseInt(v,10):0}t(l),d(l?l.toString():"")},d=f=>{o&&o.current&&(f?o.current.style.width=`${Math.max(f.length,3)*3}rem`:o.current.style.width="calc(3rem + 14px)")};return m.jsxs(m.Fragment,{children:[m.jsx("input",{ref:o,className:"h-full w-[65px] rounded border-gray-200 border-transparent text-5xl [appearance:textfield] focus:border-transparent focus:ring-0 [&::-webkit-inner-spin-button]:appearance-none [&::-webkit-outer-spin-button]:appearance-none",type:"number",pattern:"[0-9]*",inputMode:"numeric",placeholder:"0",autoFocus:!0,value:e?(e/100).toFixed(2):"",onKeyDown:u,onChange:()=>{},onFocus:()=>i(!0),onBlur:()=>i(!1)}),n&&m.jsx("div",{className:`mobile:hidden bottom-2 left-2 right-2 z-50 mx-auto w-[98vw] max-w-[1200px] ${!r&&"hidden"} absolute`,children:m.jsx(zy,{keyboardRef:s,layout:{default:["1 2 3","4 5 6","7 8 9","00 0 {bksp}"]},theme:"hg-theme-default hg-layout-numeric numeric-theme",onChange:c})})]})}function V1({title:e,balance:t,balanceName:n,transaction:r,pending:i}){const{t:s}=Ve(),[o,c]=I.useState(0),{portalSession:u}=Le(),d=()=>{let f=0;return u.events.filter(l=>Object.values(Kr).includes(l.type)).forEach(l=>{f+=l.data.amount_in_cents}),f};return m.jsxs(Rt,{children:[e&&m.jsx(At,{children:m.jsx("div",{className:"flex h-16 items-center",children:m.jsx("p",{children:e})})}),m.jsx(_t,{children:m.jsxs("div",{className:"flex h-full flex-col gap-4",children:[m.jsx("div",{className:"rounded-lg bg-core-primary-50 p-4",children:m.jsxs("div",{className:"flex justify-between",children:[m.jsx("p",{className:"font-light text-gray-500",children:n??s("balance")}),m.jsx(di,{value:t??0,start:t??0,currency:u.currency,asCurrency:!0})]})}),m.jsx("div",{className:"flex h-full flex-col items-center justify-center gap-2 p-6",children:m.jsx("div",{className:"flex items-center justify-center gap-1 p-4 text-5xl font-bold",children:d()?m.jsx(di,{value:0,start:o,currency:u.currency,asCurrency:!0}):m.jsxs("div",{className:"flex items-center justify-center gap-1 ",children:[m.jsx("p",{children:GS(u.currency)}),m.jsx(XN,{value:o,valueSetter:c,enabled:u.inputData.enable_on_screen_keyboard})]})})})]})}),m.jsx(Kt,{children:m.jsx(ut,{label:s("confirmAndPay",{amount:Ki(o,u.currency)}),className:"w-full",onClick:r&&(()=>r(o)),disabled:!o||!!d(),pending:i})})]})}function eR(){const{t:e}=Ve(),{errorToast:t}=qt(),{hash:n}=Pr(),{giftcard:r,mutate:i}=U1(n),{portalSession:s,mutate:o}=Le(),{post:c}=Xo(),{onUseGiftcard:u}=kn(),[d,f]=I.useState(!1),p=Ct(),l=v=>{f(!0),p.post(`${s.uuid}/giftcards/transaction`,{uuid:r.uuid,amount_in_cents:v}).then(a=>{i(),o(),c(),u==null||u(a.data.data),mt.success(`${e("transactionSuccessful")}! ${e("totalUpgradedAmount")}: ${Ki(a.data.data.amount_in_cents)}`)}).catch(t).finally(()=>f(!1))};return r?m.jsx(En,{children:m.jsx(V1,{title:`${e("giftcard")} ${r.hash}`,balance:r.amount_in_cents,transaction:l,pending:d})}):m.jsx(rr,{})}function tR(){return m.jsxs(jr,{children:[m.jsx(He,{path:"/",element:m.jsx(QN,{})}),m.jsx(He,{path:"/select/:hash",element:m.jsx(JN,{})}),m.jsx(He,{path:"/redeem/:hash",element:m.jsx(ZN,{})}),m.jsx(He,{path:"/top-up/:hash",element:m.jsx(eR,{})})]})}class Pf{constructor(){Rn(this,"uuid");Rn(this,"email");Rn(this,"credit_balance");Rn(this,"prepaid_balance");Rn(this,"current_display_values")}getDisplayName(){return this.current_display_values.firstname||this.current_display_values.lastname?`${this.current_display_values.firstname} ${this.current_display_values.lastname}`:this.current_display_values.email}}const q1=I.createContext({contact:new Pf,mutate:async()=>{}});function jf({children:e}){const{uuid:t}=Le(),[n,r]=I.useState(new Pf),{mutate:i}=$n({url:`${t}/contacts`,onData:o=>{const c=new Pf;c.uuid=o.uuid,c.email=o.email,c.credit_balance=o.credit_balance,c.prepaid_balance=o.prepaid_balance,c.current_display_values=o.current_display_values,r(c)}}),s=I.useMemo(()=>({contact:n,mutate:i}),[n,i]);return n.uuid?m.jsx(q1.Provider,{value:s,children:e}):m.jsx(rr,{})}function Vn(){const e=I.useContext(q1);if(!e)throw new Error("Only use 'useContactContext' within a ContactProvider");return e}function hu({message:e=""}){return m.jsxs("div",{className:"flex items-center justify-center gap-4 text-core-primary-500",children:[m.jsx(ml,{className:"h-[32px] w-[32px]"}),e&&m.jsx("p",{className:"text-sm",children:e})]})}function nR(){const{t:e}=Ve(),{errorToast:t}=qt(),{contact:n,mutate:r}=Vn(),{uuid:i,portalSession:s,mutate:o}=Le(),c=Ct(),u=()=>{c.post(`${i}/credit-receptions/create`,{unit_value:s.inputData.amount_in_cents/100}).then(()=>{r(),o()}).catch(t)},d=()=>{const f=s.events.filter(p=>p.type===Kr.CREDIT_RECEPTION);return f.length?f[0]:null};return I.useEffect(()=>{d()||u()},[]),m.jsx(En,{children:m.jsxs(Rt,{children:[m.jsx(At,{children:m.jsx("div",{className:"flex h-16 items-center",children:m.jsx("p",{children:n.getDisplayName()})})}),m.jsx(_t,{children:m.jsxs("div",{className:"flex h-full flex-col justify-between gap-4",children:[m.jsx("div",{className:"flex h-full flex-col items-center gap-2 p-6",children:s.inputData.amount_in_cents?m.jsx("div",{className:"flex h-full items-center justify-center gap-1 text-4xl font-bold",children:d()?m.jsxs(m.Fragment,{children:["+",m.jsx(di,{value:d().data.credits,start:0})]}):m.jsx(hu,{})}):m.jsx("p",{className:"text-core-red-500",children:e("xIsRequired",{x:"Amount in cents"})+"."})}),m.jsx("div",{className:"rounded-lg bg-core-primary-50 p-4",children:m.jsxs("div",{className:"flex justify-between",children:[m.jsx("p",{className:"font-light text-gray-500",children:`${e("new")} ${e("balance").toLowerCase()}`}),m.jsx(di,{value:n.credit_balance.balance??0,start:n.credit_balance.balance-(d()?d().data.credits:0)})]})})]})})]})})}function rR(){const{portalSession:e}=Le();return e.contact?m.jsx(jf,{children:m.jsx(nR,{})}):e.inputData.primary_identification_method&&e.inputData.primary_identification_method===Qs.EMAIL?m.jsx(zn,{to:`${Fe.POINTS_TRANSACTION}/email`}):m.jsx(zn,{to:`${Fe.POINTS_TRANSACTION}/identifier`})}function Lf({redirectRoute:e}){const{t}=Ve(),{state:n}=Fn(),{portalSession:r,mutate:i}=Le(),{onContactLink:s}=kn(),[o,c]=I.useState(""),[u,d]=I.useState(!1),[f,p]=I.useState(!1),l=$t(),v=Ct();I.useEffect(()=>{!f&&o&&a()},[o]);const a=()=>{d(!0),v.put(r.uuid,{contact_identifier_value:o}).then(y=>{s&&h(y.data.data.contact.uuid).then(g=>{s==null||s(g.data.data)}),i().then(()=>l(e,{state:{contactIdentifier:o}}))}).catch(()=>l("link",{state:{contactIdentifier:o}})).finally(()=>d(!1))},h=y=>v.get(`${r.uuid}/contacts`,{contact_uuid:y});return m.jsx(En,{children:m.jsxs(Rt,{id:ar,children:[m.jsx(At,{children:m.jsx("div",{className:"flex h-16 items-center",children:m.jsx("p",{children:t("scanOrEnterX",{x:"identifier"})})})}),m.jsx(_t,{children:m.jsx(Fi,{onSubmit:()=>o&&a(),children:m.jsx(Ms,{data:o,dataSetter:c,setDefer:p,label:t("contactIdentifier")})})}),m.jsx(Kt,{children:m.jsxs("div",{className:"flex flex-col gap-2",children:[m.jsx(ut,{label:t("continue"),onClick:a,disabled:!o,pending:u}),r.inputData.enable_email_identification&&m.jsx(ut,{label:t("useEmail"),variant:"secondary",onClick:()=>l("../email",{state:n})})]})})]})})}function Bf({redirectRoute:e}){const{t}=Ve(),{errorToast:n}=qt(),{uuid:r,mutate:i}=Le(),{onContactLink:s}=kn(),{state:o}=Fn(),{publish:c}=Oo(),[u,d]=I.useState(""),[f,p]=I.useState(!1),[l,v]=I.useState(!1),a=$t(),h=Ct();if(!o||!o.contactIdentifier)return m.jsx(zn,{to:"../"});const y=()=>{p(!0),h.post(`${r}/contacts/link-identifier`,{contact_identifier_value:o.contactIdentifier,email:u}).then(b).catch(E=>{E.response.data.code===Ia.CONTACT_NOT_FOUND?v(!0):n(E)}).finally(()=>p(!1))},g=()=>{p(!0),h.post(`${r}/contacts`,{email:u}).then(y).catch(n).finally(()=>p(!1))},b=()=>{h.put(r,{email:u}).then(E=>{s&&w(E.data.data.contact.uuid).then(S=>{s==null||s(S.data.data)}),i().then(()=>a(e))}).catch(n).finally(()=>p(!1))},w=E=>h.get(`${r}/contacts`,{contact_uuid:E});return I.useEffect(()=>{c("openKeyboard",{inputId:"new-contact-identifier-input",inputValue:""})},[]),m.jsxs(En,{children:[m.jsxs(Rt,{id:ar,children:[m.jsx(At,{children:m.jsx("div",{className:"flex h-16 items-center",children:t("linkContact")})}),m.jsx(_t,{children:m.jsxs("div",{className:"flex flex-col gap-3",children:[m.jsx(kk,{body:t("noEmailAddressLinkedToIdentifier")}),m.jsx(Fi,{onSubmit:y,children:m.jsx(ji,{id:"new-contact-identifier-input",label:t("emailAddress"),autoFocus:!0,onChange:E=>d(E.target.value),beforeIcon:"mail"})})]})}),m.jsx(Kt,{children:m.jsx(ut,{label:t("continue"),className:"w-full",onClick:y,disabled:!u||f})})]}),m.jsx(fi,{title:`${t("new")} ${t("emailAddress").toLowerCase()}`,isOpen:l,onClose:()=>v(!1),primaryAction:{label:t("confirm"),action:g,loading:f},secondaryAction:{label:t("cancel"),action:()=>v(!1)},children:m.jsx("p",{children:t("continueWithEmail",{email:u})})})]})}function iR(){return m.jsxs(jr,{children:[m.jsx(He,{path:"/",element:m.jsx(rR,{})}),m.jsx(He,{path:"/email",element:m.jsx(fu,{redirectRoute:Fe.POINTS_TRANSACTION})}),m.jsx(He,{path:"/identifier",element:m.jsx(Lf,{redirectRoute:Fe.POINTS_TRANSACTION})}),m.jsx(He,{path:"/identifier/link",element:m.jsx(Bf,{redirectRoute:Fe.POINTS_TRANSACTION})})]})}function sR(){const{portalSession:e}=Le(),{primaryIdentificationMethod:t}=kn();return e.contact?m.jsx(zn,{to:`${Fe.PORTAL}/overview`}):t&&t===Qs.EMAIL?m.jsx(zn,{to:`${Fe.PORTAL}/email`}):m.jsx(zn,{to:`${Fe.PORTAL}/identifier`})}function oR({children:e}){return m.jsx("div",{className:"h-screen w-screen pb-[70px] md:px-4 md:pb-[86px] md:pt-4 lg:pb-4 lg:pt-[66px]",children:m.jsx("div",{className:"h-full max-h-full",children:e})})}function aR({contact:e}){const{t}=Ve(),n=$t();return m.jsxs("div",{className:"inline-grid w-full items-center gap-4 py-4 lg:grid-cols-2",children:[m.jsxs("div",{className:"flex items-center gap-4",children:[m.jsx(Qd,{src:e.current_display_values.avatar,size:"2xl"}),m.jsxs("div",{className:"flex flex-col gap-1",children:[m.jsxs("div",{className:"flex gap-2",children:[m.jsx("p",{className:"text-lg",children:e.getDisplayName()}),e.current_display_values.tier&&m.jsx(Jd,{label:e.current_display_values.tier,size:"sm",stroke:!0})]}),m.jsx("p",{className:"text-sm text-core-gray-500 ",children:t("joinedAtDate",{date:new Date(e.current_display_values.created_at).toLocaleDateString(Gt.language,{month:"long",year:"numeric"})})})]})]}),m.jsxs("div",{className:"inline-grid gap-2 lg:grid-cols-2",children:[m.jsx(ut,{label:t("goToX",{x:"identifiers"}),variant:"secondary",size:"md",onClick:()=>n("contact-identifiers")}),m.jsx(ut,{before:m.jsx(on,{icon:"edit"}),label:t("editProfile"),variant:"secondary",size:"md",onClick:()=>n("contact-attributes")})]})]})}function ea({children:e}){return m.jsx("div",{className:"flex-grow rounded-lg border p-4",children:e})}function cR(){const{t:e}=Ve(),{contact:t}=Vn(),{portalSession:n}=Le();return m.jsxs("div",{className:"flex gap-2 lg:flex-col",children:[m.jsx(ea,{children:m.jsxs("div",{className:"flex h-full flex-col items-center justify-center",children:[m.jsx("p",{className:"text-2xl leading-8",children:t.current_display_values.loyalty_balance}),m.jsx("p",{className:"text-sm text-core-gray-500",children:n.loyaltyProgram.custom_credit_name})]})}),m.jsx(ea,{children:m.jsxs("div",{className:"flex h-full flex-col items-center justify-center",children:[m.jsx("p",{className:"text-2xl leading-8",children:Ki(t.prepaid_balance.balance_in_cents,n.currency)}),m.jsx("p",{className:"text-sm text-core-gray-500",children:e("prepaidCredit")})]})})]})}function uR(){const{t:e}=Ve(),{contact:t}=Vn(),{portalSession:n}=Le(),r=(i,s)=>Mp(i,s)?`${Mp(i,s)} ${e("yearsAgo")}`:Rp(i,s)?`${Rp(i,s)} ${e("weeksAgo")}`:Np(i,s)?`${Np(i,s)} ${e("daysAgo")}`:e("today");return m.jsx(ea,{children:m.jsxs("div",{className:"h-full justify-between",children:[m.jsx("p",{className:"mb-4 text-lg font-semibold leading-7",children:"Stats"}),m.jsxs("div",{className:"flex flex-col gap-2",children:[m.jsxs("div",{className:"flex items-center gap-2",children:[m.jsx(on,{icon:"calendar"}),m.jsxs("div",{children:[m.jsx("p",{className:"text-xs font-semibold",children:r(new Date,new Date(t.current_display_values.loyalty_last_transaction_date))}),m.jsx("p",{className:"text-xs text-core-gray-500",children:e("lastVisit")})]})]}),m.jsxs("div",{className:"flex items-center gap-2",children:[m.jsx(on,{icon:"shopping-bag"}),m.jsxs("div",{children:[m.jsx("p",{className:"text-xs font-semibold",children:`${t.current_display_values.loyalty_number_of_transactions} ${e("visits")}`}),m.jsx("p",{className:"text-xs text-core-gray-500",children:e("totalVisits")})]})]}),m.jsxs("div",{className:"flex items-center gap-2",children:[m.jsx(on,{icon:"dollar"}),m.jsxs("div",{children:[m.jsx("p",{className:"text-xs font-semibold",children:`${t.current_display_values.loyalty_total_credits_received} ${n.loyaltyProgram.custom_credit_name}`}),m.jsx("p",{className:"text-xs text-core-gray-500",children:e("totalCredits")})]})]})]})]})})}function $1(){const{uuid:e}=Le(),[t,n]=I.useState([]),{data:r,isLoading:i,pending:s,mutate:o}=$n({url:`${e}/loyalty-transactions`});return I.useEffect(()=>{r&&n(r.data)},[r]),{loyaltyTransactions:t,isLoading:i,pending:s,mutate:o}}function G1({loyaltyTransaction:e}){const{t}=Ve();return m.jsxs("div",{className:"mb-2 flex justify-between",children:[m.jsx("p",{className:"text-xs text-core-gray-500",children:e.type===yp.CREDIT_RECEPTION?t("transaction"):`${t("isRedeemed")} '${e.loyalty_transaction_data.title}'`}),m.jsx("p",{className:"text-xs font-semibold",children:e.credits>0?"+"+e.credits:e.credits})]})}function lR(){const{t:e}=Ve(),t=$t(),{loyaltyTransactions:n}=$1();return n?m.jsx(ea,{children:m.jsxs("div",{className:"flex h-full flex-col justify-between gap-4",children:[m.jsxs("div",{className:"flex flex-col gap-4",children:[m.jsx("p",{className:"text-lg font-semibold leading-7",children:e("activities")}),n&&n.length?m.jsx("div",{children:n.slice(0,5).map(r=>m.jsx(G1,{loyaltyTransaction:r},r.uuid))}):m.jsx("p",{className:"text-sm text-core-gray-500",children:e("noActivity")})]}),m.jsx(ut,{label:`${e("all")} ${e("activities").toLowerCase()}`,variant:"secondary",onClick:()=>t("activity")})]})}):m.jsx(hu,{})}function H1(){const{uuid:e}=Le(),[t,n]=I.useState(),{isLoading:r,pending:i,mutate:s}=$n({url:`${e}/subscriptions/contact`,onData:n});return{subscriptions:t,isLoading:r,pending:i,mutate:s}}function Y1({subscription:e,onChange:t,editable:n=!1}){const{t:r}=Ve();return m.jsxs("div",{className:"mb-2 flex justify-between",children:[m.jsx("p",{className:"text-xs font-semibold",children:e.subscription_type.name}),n?m.jsx(Nf,{defaultChecked:e.is_subscribed,disabled:e.subscription_type.strategy===vp.FUNCTIONAL,onChange:t&&(()=>t(e.subscription_type.name))}):m.jsx(Jd,{label:r(e.status.toLowerCase()),size:"sm",color:e.is_subscribed?"primary":"gray"})]})}function dR(){const{t:e}=Ve(),{subscriptions:t}=H1(),n=$t();return t?m.jsx(ea,{children:m.jsxs("div",{className:"flex h-full flex-col justify-between",children:[m.jsxs("div",{className:"flex flex-col gap-4",children:[m.jsx("p",{className:"text-lg font-semibold leading-7",children:e("subscriptions")}),m.jsx("div",{children:t.map(r=>m.jsx(Y1,{subscription:r},r.subscription_type.uuid))})]}),m.jsx(ut,{label:e("change"),before:m.jsx(on,{icon:"edit"}),variant:"secondary",onClick:()=>n("subscriptions")})]})}):m.jsx(hu,{})}function fR(){const{contact:e}=Vn();return m.jsxs(Rt,{children:[m.jsx(At,{children:m.jsx(aR,{contact:e})}),m.jsx(_t,{children:m.jsxs("div",{className:"grid grid-cols-1 gap-x-2 gap-y-2 lg:grid-cols-4",children:[m.jsx(cR,{}),m.jsx(uR,{}),m.jsx(lR,{}),m.jsx(dR,{})]})})]})}function ta({label:e,path:t}){const n=$t();return m.jsx("div",{className:"flex h-16 items-center text-base text-core-gray-900",children:m.jsx(ut,{label:e,variant:"link-gray",before:m.jsx(on,{icon:"caret-left",size:"md"}),onClick:()=>n(t)})})}function hR(){const{t:e}=Ve(),{loyaltyTransactions:t}=$1(),{contact:n}=Vn();return m.jsx("div",{className:"h-full md:container",children:m.jsxs(Rt,{children:[m.jsx(At,{children:m.jsx(ta,{label:e("back"),path:"../profile"})}),m.jsx(_t,{children:m.jsxs("div",{className:"md:max-h-[528px]",children:[m.jsx("p",{className:"text-sm font-medium",children:e("allActivities")}),m.jsx("p",{className:"mb-4 text-sm text-core-gray-500",children:e("checkOutAllActivitiesOfName",{name:n.getDisplayName()})}),m.jsx("div",{className:"overflow-auto",children:t==null?void 0:t.map(r=>m.jsx(G1,{loyaltyTransaction:r},r.uuid))})]})})]})})}function pR(){const{t:e}=Ve(),{errorToast:t}=qt(),{uuid:n}=Le(),{subscriptions:r,mutate:i}=H1(),[s,o]=I.useState({}),[c,u]=I.useState(!1),d=Ct();I.useEffect(()=>{if(r&&!Object.keys(s).length){const v=r.reduce((a,h)=>({...a,[h.subscription_type.name]:h.is_subscribed}),{});o(v)}},[]);const f=v=>{Object.hasOwn(s,v)?o({...s,[v]:!s[v]}):o({...s,[v]:!0})},p=()=>{u(!0),d.put(`${n}/subscriptions`,{values:s}).then(()=>i()).catch(t).finally(()=>u(!1))},l=()=>r&&r.some(v=>s[v.subscription_type.name]!==v.is_subscribed);return r?m.jsx("div",{className:"h-full md:container",children:m.jsxs(Rt,{children:[m.jsx(At,{children:m.jsx(ta,{label:e("back"),path:"../profile"})}),m.jsx(_t,{children:m.jsx("div",{className:"md:max-h-[528px]",children:m.jsxs("div",{children:[m.jsx("p",{className:"text-sm font-medium",children:e("subscriptions")}),m.jsx("p",{className:"mb-4 text-sm text-core-gray-500",children:e("manageEmailPreferences")}),r.map(v=>m.jsx(Y1,{subscription:v,onChange:f,editable:!0},v.subscription_type.uuid))]})})}),m.jsx(Kt,{children:m.jsx(ut,{label:e("saveChanges"),className:"w-full",onClick:p,pending:c,disabled:!l()||c})})]})}):m.jsx(hu,{})}function mR(){const{t:e}=Ve(),{errorToast:t}=qt(),{uuid:n}=Le(),{contact:r,mutate:i}=Vn(),[s,o]=I.useState(),[c,u]=I.useState(!1),[d,f]=I.useState(),p=Ct();$n({url:`${n}/contact-attributes`,onData:h=>o(h.elements)});const l=h=>{f({...d,[h.target.name]:h.target.value})},v=(h,y)=>{f({...d,[h]:y})},a=async()=>{u(!0),p.put(`${n}/contact-attributes`,d).then(()=>{i(),f(void 0)}).catch(t).finally(()=>u(!1))};return m.jsx("div",{className:"h-full md:container",children:m.jsxs(Rt,{children:[m.jsx(At,{children:m.jsx(ta,{label:e("back"),path:"../profile"})}),m.jsx(_t,{children:m.jsxs("div",{className:"md:max-h-[528px]",children:[m.jsxs("div",{className:"mb-4 flex flex-row items-center gap-4 border-b border-b-core-gray-200 px-1 pb-4",children:[m.jsx(Qd,{src:r.current_display_values.avatar,size:"2xl"}),m.jsxs("div",{children:[m.jsx("div",{className:"flex flex-row items-center gap-2 ",children:m.jsxs("h1",{className:"text-lg text-core-gray-900",children:[r.current_display_values.firstname," ",r.current_display_values.lastname]})}),m.jsx("p",{className:"text-sm text-core-gray-500",children:r.current_display_values.email})]})]}),s?s.map(h=>{if(!(h.type==="media_upload"||h.type==="email"))return h.type==="select"?m.jsx($k,{name:h.name,label:h.label,value:d&&d[h.name]?d[h.name]:r.current_display_values[h.name],onChange:y=>v(h.name,y),disabled:h.disabled,children:h.options.map(y=>m.jsx(Xd,{label:y.label,value:y.value},y.value))},h.id):h.type==="multi_select"?m.jsx(Fk,{name:h.name,value:d&&d[h.name]?d[h.name]:h.defaultValue,label:h.label,onChange:v,disabled:h.disabled,options:h.options},h.id):h.type==="birth_date"||h.type==="date_time"?m.jsx(Jy,{id:h.id,name:h.name,label:h.label,type:h.type==="date_time"?"date_time":"date",value:d&&d[h.name]?d[h.name]:r.current_display_values[h.name],disabled:h.disabled,onChange:l},h.id):m.jsx(ji,{disabled:h.disabled,label:h.label,name:h.name,value:d&&d[h.name]!=="undefined"?d[h.name]:r.current_display_values[h.name],onChange:l},h.id)}):m.jsx(au,{rows:10})]})}),m.jsx(Kt,{children:m.jsx(ut,{label:e("saveChanges"),className:"w-full",onClick:a,disabled:!d,pending:c})})]})})}function W1(){const{uuid:e}=Le(),[t,n]=I.useState(),{isLoading:r,pending:i,mutate:s}=$n({url:`${e}/contact-identifiers`,onData:n});return{contactIdentifiers:t,isLoading:r,pending:i,mutate:s}}function gR({identifier:e,onClear:t}){const{t:n}=Ve();return m.jsxs("div",{className:"flex items-center justify-between rounded-lg border text-xs",children:[m.jsxs("div",{className:"flex-col pl-4",children:[m.jsx("p",{className:"font-semibold",children:e.value}),m.jsx("p",{className:"text-core-gray-500",children:n("contactIdentifier")})]}),m.jsx("div",{className:"h-full border-l p-4 hover:cursor-pointer hover:bg-core-gray-50",onClick:()=>t&&t(e.value),children:m.jsx(on,{className:"h-full",icon:"close"})})]})}function yR(){const{t:e}=Ve(),{errorToast:t}=qt(),{uuid:n}=Le(),{contactIdentifiers:r,isLoading:i,mutate:s}=W1(),[o,c]=I.useState(""),[u,d]=I.useState(!1),f=$t(),p=Ct(),l=a=>{c(a),d(!0)},v=async()=>{p.destroy(`${n}/contact-identifiers`,{value:o}).then(()=>s()).catch(t).finally(()=>d(!1))};return m.jsxs("div",{className:"h-full md:container",children:[m.jsxs(Rt,{children:[m.jsx(At,{children:m.jsx(ta,{label:e("back"),path:"../profile"})}),m.jsx(_t,{children:m.jsx("div",{className:"md:max-h-[528px]",children:m.jsxs("div",{className:"flex flex-col gap-2",children:[m.jsxs("div",{children:[m.jsx("p",{className:"text-sm font-medium",children:e("contactIdentifiers")}),m.jsx("p",{className:"mb-4 text-sm text-core-gray-500",children:e("contactIdentifierDescription")})]}),i?m.jsx(au,{rows:10}):r==null?void 0:r.map(a=>m.jsx(gR,{identifier:a,onClear:l},a.value))]})})}),m.jsx(Kt,{children:m.jsx(ut,{label:e("addIdentifier"),className:"w-full",variant:"secondary",onClick:()=>f("create")})})]}),m.jsx(fi,{title:e("confirmClearContactIdentifier"),isOpen:u,primaryAction:{label:e("confirm"),action:v},secondaryAction:{label:e("cancel"),action:()=>d(!1)},onClose:()=>d(!1),children:m.jsx("p",{children:e("clearContactIdentifier",{value:o})})})]})}function vR(){const{t:e}=Ve(),{errorToast:t}=qt(),{uuid:n}=Le(),{contact:r}=Vn(),{mutate:i}=W1(),[s,o]=I.useState(""),[c,u]=I.useState(!1),[d,f]=I.useState(!1),p=$t(),l=Ct(),v=()=>{u(!0),l.post(`${n}/contacts/link-identifier`,{contact_identifier_value:s,email:r.email}).then(()=>{i(),p("../profile/contact-identifiers")}).catch(t).finally(()=>{o(""),u(!1)})};return I.useEffect(()=>{!d&&s&&v()},[s]),m.jsx("div",{className:"h-full md:container",children:m.jsxs(Rt,{id:ar,children:[m.jsx(At,{children:m.jsx(ta,{label:e("back"),path:"../profile/contact-identifiers"})}),m.jsx(_t,{children:m.jsx(Fi,{onSubmit:()=>s&&v(),children:m.jsx(Ms,{data:s,dataSetter:o,setDefer:f,label:e("contactIdentifier")})})}),m.jsx(Kt,{children:m.jsx(ut,{label:e("addIdentifier"),className:"w-full",onClick:v,pending:c,disabled:!s})})]})})}function bR(){return m.jsxs(jr,{children:[m.jsx(He,{path:"/profile",element:m.jsx(fR,{})}),m.jsx(He,{path:"/profile/activity",element:m.jsx(hR,{})}),m.jsx(He,{path:"/profile/subscriptions",element:m.jsx(pR,{})}),m.jsx(He,{path:"/profile/contact-identifiers",element:m.jsx(yR,{})}),m.jsx(He,{path:"/profile/contact-identifiers/create",element:m.jsx(vR,{})}),m.jsx(He,{path:"/profile/contact-attributes",element:m.jsx(mR,{})})]})}function wR(){const{t:e}=Ve(),{contact:t}=Vn(),{portalSession:n}=Le();return m.jsxs("div",{className:"flex h-16 items-center justify-between",children:[m.jsx("h1",{children:e("rewards")}),m.jsxs("div",{className:"flex flex-col items-center",children:[m.jsx("p",{children:t.credit_balance.balance}),m.jsx("p",{className:"text-sm text-core-gray-500",children:n.loyaltyProgram.custom_credit_name})]})]})}function K1(){const{uuid:e}=Le(),[t,n]=I.useState(),{isLoading:r,pending:i,mutate:s}=$n({url:`${e}/rewards`,onData:n});return{rewards:t,isLoading:r,pending:i,mutate:s}}function Ff({reward:e,selected:t,setSelected:n,disabled:r,readOnly:i}){const{portalSession:s}=Le(),{contact:o}=Vn();return m.jsxs("div",{className:`max-h-[48px] rounded-lg border ${r?"pointer-events-none opacity-40":!i&&"cursor-pointer"}`,children:[m.jsxs("div",{className:`flex items-center justify-between rounded-lg text-xs ${r?"px-2 pt-2":"p-2"}`,onClick:i?void 0:()=>(t==null?void 0:t.uuid)===e.uuid?n(void 0):n(e),children:[m.jsxs("div",{className:"mr-4 flex items-center gap-4 overflow-hidden",children:[m.jsx("img",{src:e.media&&e.media.value?e.media.value:"https://static.piggy.nl/images/fallback_image.png",alt:"voucher_image",className:"h-[32px] w-[32px] rounded object-cover object-center"}),m.jsx("p",{className:"truncate",children:e.title??e.description})]}),m.jsxs("p",{className:"whitespace-nowrap text-core-primary-500",children:[e.required_credits," ",s.loyaltyProgram.custom_credit_name]})]}),e.required_credits-o.credit_balance.balance>0&&m.jsx(Uk,{value:o.credit_balance.balance,max:e.required_credits})]})}function ER({selected:e,setSelected:t}){const{t:n}=Ve(),{contact:r}=Vn(),{rewards:i,isLoading:s}=K1(),o=i==null?void 0:i.filter(u=>u.required_credits<=r.credit_balance.balance),c=i==null?void 0:i.filter(u=>u.required_credits>r.credit_balance.balance);return m.jsx(m.Fragment,{children:s?m.jsx(au,{rows:1}):m.jsxs("div",{className:"flex flex-col gap-3 md:max-h-[528px]",children:[m.jsx("div",{className:"flex flex-col gap-1",children:(o==null?void 0:o.length)>0&&m.jsxs(m.Fragment,{children:[m.jsx("p",{className:"text-sm font-light text-core-gray-500",children:n("redeemableRewards")}),o.map(u=>m.jsx(Ff,{reward:u,selected:e,setSelected:t},u.uuid))]})}),m.jsx("div",{className:"flex flex-col gap-1",children:(c==null?void 0:c.length)>0&&m.jsxs(m.Fragment,{children:[m.jsx("p",{className:"text-sm font-light text-core-gray-500",children:n("saveABitMore")}),c.map(u=>m.jsx(Ff,{reward:u,selected:e,setSelected:t,disabled:!0},u.uuid))]})})]})})}function SR(){const{portalSession:e}=Le(),{rewards:t}=K1(),n=()=>e.events.filter(r=>r.type===Kr.REWARD_RECEPTION).map(r=>t.find(i=>i.uuid===r.data.reward.uuid)).filter(r=>r);return t?m.jsx("div",{children:m.jsx(e1,{children:n().map((r,i)=>m.jsxs("div",{className:"flex items-center justify-between rounded-lg border border-core-primary-100 bg-core-primary-50 p-2 text-xs",children:[m.jsxs("div",{className:"mr-4 flex items-center gap-4 overflow-hidden",children:[m.jsx("img",{src:r.media&&r.media.value?r.media.value:"https://static.piggy.nl/images/fallback_image.png",alt:"voucher_image",className:"h-8 w-8 rounded object-cover object-center"}),m.jsx("p",{className:"truncate",children:r.title??r.description})]}),m.jsxs("p",{className:"text-core-primary-500",children:[r.required_credits," ",e.loyaltyProgram.custom_credit_name]})]},`${i}-${r.uuid}`))},n().length)}):m.jsx(m.Fragment,{})}function xR(){const{t:e}=Ve(),{errorToast:t,successToast:n}=qt(),{portalSession:r,mutate:i}=Le(),{mutate:s}=Vn(),{onClaimReward:o}=kn(),[c,u]=I.useState(),[d,f]=I.useState(!1),[p,l]=I.useState(!1),{post:v}=Xo(),a=Ct();I.useEffect(()=>{c&&l(!0)},[c]);const h=g=>{i().then(b=>{const E=b.data.data.events.filter(S=>S.type===Kr.REWARD_RECEPTION&&S.data.reward.uuid===c.uuid).reduce((S,A)=>new Date(S.created_at)>new Date(A.created_at)?S:A);o==null||o(g,E.data.uuid)})},y=()=>{f(!0),a.post(`${r.uuid}/rewards/claim`,{uuid:c.uuid}).then(g=>{v(),s(),h(g.data.data),n(e("rewardClaimed",{name:g.data.data.title}))}).catch(t).finally(()=>{l(!1),u(void 0),f(!1)})};return m.jsxs("div",{className:"h-full md:container",children:[m.jsxs(Rt,{children:[m.jsx(At,{children:m.jsx(wR,{})}),m.jsx(_t,{children:m.jsx(ER,{selected:c,setSelected:u})}),m.jsx(Kt,{children:m.jsx(SR,{})})]}),m.jsx(fi,{title:e("confirmRewardRedemption"),isOpen:p,primaryAction:{label:e("confirm"),action:y,loading:d},secondaryAction:{label:e("cancel"),action:()=>l(!1)},onClose:()=>l(!1),children:m.jsx("div",{className:"flex flex-col gap-4",children:c&&m.jsx(Ff,{reward:c,selected:c,setSelected:u,readOnly:!0})})})]})}function Uf(){const{uuid:e}=Le(),[t,n]=I.useState(),{isLoading:r,pending:i,mutate:s}=$n({url:`${e}/vouchers`,onData:n});return{vouchers:t,isLoading:r,pending:i,mutate:s}}function CR(){const{t:e}=Ve();return m.jsx("div",{className:"flex h-16 items-center",children:m.jsx("p",{children:e("vouchers")})})}function Vf({voucher:e,selected:t,setSelected:n}){const{t:r}=Ve();return m.jsxs("div",{className:`flex cursor-pointer items-center justify-between gap-4 rounded-lg ${e.status===Js.REDEEMED?"border border-core-primary-100 bg-core-primary-50":"border bg-white"} p-2 text-xs`,onClick:()=>(t==null?void 0:t.code)===e.code?n(void 0):n(e),children:[m.jsxs("div",{className:"mr-4 flex items-center gap-4 overflow-hidden",children:[m.jsx("img",{src:e.promotion.image?e.promotion.image.value:"https://static.piggy.nl/images/fallback_image.png",alt:"voucher_image",className:"h-[32px] w-[32px] rounded object-cover object-center"}),m.jsxs("div",{className:"overflow-hidden overflow-ellipsis ",children:[m.jsx("p",{className:"font-semibold",children:e.name}),e.status===Js.REDEEMED?m.jsx("p",{className:"text-core-gray-500",children:r("redeemed")}):m.jsx("p",{className:"text-core-primary-500",children:e.expiration_date?`Valid until ${new Date(e.expiration_date).toLocaleDateString()}`:r("nonExpiring")})]})]}),m.jsx("p",{className:`text-core-${e.status===Js.REDEEMED?"gray":"primary"}-500`,children:e.code})]})}function _R({selected:e,setSelected:t}){const{t:n}=Ve(),{vouchers:r,isLoading:i}=Uf();return m.jsx(m.Fragment,{children:i?m.jsx(au,{rows:1}):m.jsx("div",{className:"flex flex-col gap-1 md:max-h-[528px]",children:m.jsx("div",{className:"flex flex-col gap-1 md:max-h-[528px]",children:r&&r.length?r.map(s=>m.jsx(Vf,{voucher:s,selected:e,setSelected:t},s.code)):m.jsx("p",{className:"text-center text-sm text-core-gray-500",children:n("vouchersEmptyState")})})})})}function AR(){const{t:e}=Ve(),{portalSession:t}=Le(),{vouchers:n}=Uf(),r=()=>t.events.filter(i=>i.type===Kr.VOUCHER_REDEEMED);return n?m.jsx("div",{children:m.jsx(e1,{children:r().map((i,s)=>m.jsx("div",{className:"flex items-center gap-2 rounded-lg border border-core-primary-100 bg-core-primary-50 p-2",children:m.jsx("div",{className:"flex h-full flex-col justify-between text-xs",children:m.jsxs("div",{className:"overflow-hidden",children:[m.jsx("p",{className:"font-semibold",children:i.data.name}),m.jsxs("p",{className:"overflow-ellipsis text-core-gray-500",children:[i.data.code," - ",e("applied")]})]})})},`${s}-${i.data.uuid}`))},r().length)}):m.jsx(m.Fragment,{})}function TR(){const{t:e}=Ve(),{errorToast:t,successToast:n}=qt(),{uuid:r}=Le(),{onRedeemVoucher:i}=kn(),{post:s}=Xo(),{mutate:o}=Uf(),[c,u]=I.useState(),[d,f]=I.useState(!1),[p,l]=I.useState(!1),v=Ct();I.useEffect(()=>{c&&l(!0)},[c]);const a=()=>{f(!0),v.post(`${r}/vouchers/redeem`,{code:c.code}).then(y=>{s(),i&&i(y.data.data),n(e("voucherSuccessfullyRedeemed")),o()}).catch(t).finally(()=>{h(),f(!1)})},h=()=>{l(!1),u(void 0)};return m.jsxs("div",{className:"h-full md:container",children:[m.jsxs(Rt,{children:[m.jsx(At,{children:m.jsx(CR,{})}),m.jsx(_t,{children:m.jsx(_R,{selected:c,setSelected:u})}),m.jsx(Kt,{children:m.jsx(AR,{})})]}),m.jsx(fi,{title:e("confirmVoucherRedemption"),isOpen:p,primaryAction:{label:e("confirm"),action:a,loading:d},secondaryAction:{label:e("cancel"),action:h},onClose:h,children:m.jsxs("div",{className:"flex flex-col gap-4",children:[m.jsx("p",{children:e("redeemTitle",{title:c==null?void 0:c.name})}),c&&m.jsx(Vf,{voucher:c,setSelected:u})]})})]})}function IR(){const{t:e}=Ve(),[t,n]=I.useState(1),r=$t(),i=[{id:0,label:e("profile"),icon:"user",pathname:"profile"},{id:1,label:e("rewards"),icon:"edit",pathname:"rewards"},{id:2,label:e("vouchers"),icon:"mail",pathname:"vouchers"}];return I.useEffect(()=>{r(i[t].pathname)},[]),m.jsx(jf,{children:m.jsxs("div",{className:"relative h-full w-full select-none overflow-auto",children:[m.jsx(vO,{children:i.map(s=>m.jsx(bO,{id:s.id,label:s.label,icon:s.icon,activeTab:t,setActiveTab:n,pathname:s.pathname},s.id))}),m.jsxs(oR,{children:[m.jsx(bR,{}),m.jsxs(jr,{children:[m.jsx(He,{path:"/rewards",element:m.jsx(xR,{})}),m.jsx(He,{path:"/vouchers",element:m.jsx(TR,{})})]})]})]})})}function kR(){return m.jsxs(jr,{children:[m.jsx(He,{path:"/",element:m.jsx(sR,{})}),m.jsx(He,{path:"/overview/*",element:m.jsx(IR,{})}),m.jsx(He,{path:"/email",element:m.jsx(fu,{redirectRoute:Fe.PORTAL})}),m.jsx(He,{path:"/identifier",element:m.jsx(Lf,{redirectRoute:Fe.PORTAL})}),m.jsx(He,{path:"/identifier/link",element:m.jsx(Bf,{redirectRoute:Fe.PORTAL})})]})}function z1(){const{uuid:e}=Le(),[t,n]=I.useState(),{isLoading:r,pending:i,mutate:s}=$n({url:`${e}/prepaid`,onData:n});return{prepaidBalance:t,isLoading:r,pending:i,mutate:s}}function OR(){const{t:e}=Ve(),{state:t}=Fn(),{errorToast:n,successToast:r}=qt(),{uuid:i,mutate:s}=Le(),{contact:o}=Vn(),{prepaidBalance:c,mutate:u}=z1(),[d,f]=I.useState(!1),p=Ct(),l=v=>{f(!0),p.post(`${i}/prepaid/transaction`,{amount_in_cents:v,contact_identifier_value:(t==null?void 0:t.contactIdentifier)??void 0}).then(()=>{u(),s(),r(e("prepaidTransactionCreated"))}).catch(n).finally(()=>f(!1))};return c?m.jsx(En,{children:m.jsx(V1,{title:o.getDisplayName(),balance:(c==null?void 0:c.balance_in_cents)??0,balanceName:e("prepaidBalance"),transaction:l,pending:d})}):m.jsx(rr,{})}function NR({title:e,balance:t,balanceName:n,transaction:r,pending:i}){const{t:s}=Ve(),{portalSession:o}=Le(),c=o.inputData.amount_in_cents??0,u=()=>{let f=0;return o.events.filter(l=>Object.values(Kr).includes(l.type)).forEach(l=>{f+=l.data.amount_in_cents}),f},d=()=>Math.min(c+u(),t);return m.jsxs(Rt,{children:[e&&m.jsx(At,{children:m.jsx("div",{className:"flex h-16 items-center",children:m.jsx("p",{children:e})})}),m.jsx(_t,{children:m.jsxs("div",{className:"flex h-full flex-col gap-4",children:[m.jsx("div",{className:"rounded-lg bg-core-primary-50 p-4",children:m.jsxs("div",{className:"flex justify-between",children:[m.jsx("p",{className:"font-light text-gray-500",children:n??s("balance")}),m.jsx(di,{value:t,start:t+u(),currency:o.currency,asCurrency:!0})]})}),m.jsx("div",{className:"flex h-full flex-col items-center justify-center gap-2 p-6",children:m.jsxs("div",{className:"flex flex-col items-center gap-2 p-4",children:[m.jsx("p",{className:"text-sm font-light text-gray-500",children:s("amountToPay")}),m.jsx("div",{className:"text-5xl font-bold",children:m.jsx(di,{value:d(),start:c,currency:o.currency,asCurrency:!0})})]})})]})}),m.jsx(Kt,{children:m.jsx(ut,{label:s("confirmAndPay",{amount:Ki(c,o.currency)}),className:"w-full",onClick:()=>r==null?void 0:r(-d()),disabled:!c||!!u(),pending:i})})]})}function RR(){const{t:e}=Ve(),{state:t}=Fn(),{errorToast:n,successToast:r}=qt(),{uuid:i,mutate:s}=Le(),{contact:o}=Vn(),{prepaidBalance:c,mutate:u}=z1(),[d,f]=I.useState(!1),p=Ct(),l=v=>{f(!0),p.post(`${i}/prepaid/transaction`,{amount_in_cents:v,contact_identifier_value:(t==null?void 0:t.contactIdentifier)??void 0}).then(()=>{u(),s(),r(e("prepaidTransactionCreated"))}).catch(n).finally(()=>f(!1))};return c?m.jsx(En,{children:m.jsx(NR,{title:o.getDisplayName(),balance:c.balance_in_cents,balanceName:e("prepaidBalance"),transaction:l,pending:d})}):m.jsx(rr,{})}function MR(){const{portalSession:e}=Le(),{primaryIdentificationMethod:t}=kn();if(!e.contact)return t&&t===Qs.EMAIL?m.jsx(zn,{to:`${Fe.PREPAID}/email`}):m.jsx(zn,{to:`${Fe.PREPAID}/identifier`});const n=()=>e.type===un.TOP_UP_PREPAID?m.jsx(OR,{}):m.jsx(RR,{});return m.jsx(jf,{children:n()})}function DR(){return m.jsxs(jr,{children:[m.jsx(He,{path:"/",element:m.jsx(MR,{})}),m.jsx(He,{path:"/email",element:m.jsx(fu,{redirectRoute:Fe.PREPAID})}),m.jsx(He,{path:"/identifier",element:m.jsx(Lf,{redirectRoute:Fe.PREPAID})}),m.jsx(He,{path:"/identifier/link",element:m.jsx(Bf,{redirectRoute:Fe.PREPAID})})]})}function PR(){const{t:e}=Ve(),{errorToast:t}=qt(),{uuid:n,portalSession:r}=Le(),[i,s]=I.useState(""),[o,c]=I.useState(!1),[u,d]=I.useState(!1),[f,p]=I.useState(!1),l=$t(),v=Ct(),a=()=>{c(!0),v.get(`${n}/vouchers/check/${i}`).then(h=>{h.data.data.contact||r.contact?l(`${i}/redeem`):p(!0)}).catch(t).finally(()=>c(!1))};return I.useEffect(()=>{!u&&i&&a()},[i]),m.jsxs(m.Fragment,{children:[m.jsx(En,{children:m.jsxs(Rt,{id:ar,children:[m.jsx(At,{children:m.jsx("div",{className:"flex h-16 items-center",children:m.jsx("p",{children:e("scanOrEnterX",{x:e("voucherCode").toLowerCase()})})})}),m.jsx(_t,{children:m.jsx(Ms,{data:i,dataSetter:s,setDefer:d,label:e("code")})}),m.jsx(Kt,{children:m.jsx(ut,{label:e("submit"),className:"w-full",onClick:a,pending:o})})]})}),m.jsx(fi,{title:e("noContactLinkedToVoucherTitle"),isOpen:f,onClose:()=>p(!1),primaryAction:{label:e("linkToContact"),action:()=>l(`${i}/identifier`)},secondaryAction:{label:e("cancel"),action:()=>p(!1)},children:m.jsx("p",{children:e("linkVoucherWithCodeToContact",{code:i})})})]})}function jR(){const{t:e}=Ve(),{errorToast:t}=qt(),{code:n}=Pr(),{uuid:r}=Le(),{onRedeemVoucher:i}=kn(),{post:s}=Xo(),{voucher:o,mutate:c}=F1(n),[u,d]=I.useState(!1),f=Ct(),p=()=>{d(!0),f.post(`${r}/vouchers/redeem`,{code:n}).then(l=>{i==null||i(l.data.data),s(),c()}).catch(t).finally(()=>d(!1))};return o?m.jsx(En,{children:m.jsxs(Rt,{children:[m.jsx(At,{children:m.jsx("div",{className:"flex h-16 items-center",children:m.jsx("p",{children:"Voucher"})})}),m.jsx(_t,{children:m.jsx("div",{children:m.jsx(Vf,{voucher:o,setSelected:()=>{}})})}),m.jsx(Kt,{children:m.jsx(ut,{label:e("redeemVoucher"),className:"w-full",onClick:p,disabled:o.status!==Js.ACTIVE||u,pending:u})})]})}):m.jsx(rr,{})}function LR(){const{t:e}=Ve(),{errorToast:t}=qt(),{code:n}=Pr(),{portalSession:r,mutate:i}=Le(),{onContactLink:s}=kn(),[o,c]=I.useState(""),[u,d]=I.useState(!1),[f,p]=I.useState(!1),l=$t(),v=Ct(),a=y=>v.get(`${r.uuid}/contacts`,{contact_uuid:y}),h=()=>{d(!0),v.put(r.uuid,{contact_identifier_value:o}).then(y=>{s&&a(y.data.data.contact.uuid).then(g=>{s==null||s(g.data.data)}),i().then(()=>l(`${Fe.VOUCHER}/${n}/redeem`))}).catch(t).finally(()=>d(!1))};return I.useEffect(()=>{!f&&o&&h()},[o]),m.jsx(En,{children:m.jsxs(Rt,{id:ar,children:[m.jsx(At,{children:m.jsx("div",{className:"flex h-16 items-center",children:m.jsx("p",{children:e("scanOrEnterX",{x:"identifier"})})})}),m.jsx(_t,{children:m.jsx(Fi,{onSubmit:h,children:m.jsx(Ms,{data:o,dataSetter:c,setDefer:p,label:e("contactIdentifier")})})}),m.jsx(Kt,{children:m.jsxs("div",{className:"flex flex-col gap-2",children:[m.jsx(ut,{label:e("continue"),onClick:h,pending:u}),r.inputData.enable_email_identification&&m.jsx(ut,{label:e("useEmail"),variant:"secondary",onClick:()=>l(`../${n}/email`)})]})})]})})}function BR(){const{t:e}=Ve(),{code:t}=Pr(),{onContactLink:n}=kn(),{portalSession:r,mutate:i}=Le(),{publish:s}=Oo(),[o,c]=I.useState(""),[u,d]=I.useState(!1),[f,p]=I.useState(!1),l=$t(),v=Ct(),a=g=>v.get(`${r.uuid}/contacts`,{contact_uuid:g}),h=()=>{d(!0),v.put(r.uuid,{email:o}).then(g=>{n&&a(g.data.data.contact.uuid).then(b=>{n==null||n(b.data.data)}),i().then(()=>l(`${Fe.VOUCHER}/${t}/redeem`))}).catch(g=>{g.response.data.code===Ia.CONTACT_NOT_FOUND&&p(!0)}).finally(()=>d(!1))},y=()=>{d(!0),v.post(`${r.uuid}/contacts`,{email:o}).then(h).finally(()=>d(!1))};return I.useEffect(()=>{s("openKeyboard",{inputId:"via-email-address-input",inputValue:""})},[]),m.jsxs(m.Fragment,{children:[m.jsx(En,{children:m.jsxs(Rt,{id:ar,children:[m.jsx(At,{children:m.jsx("div",{className:"flex h-16 items-center",children:m.jsx("p",{children:e("fillInXBelow",{x:e("emailAddress").toLowerCase()})})})}),m.jsx(_t,{children:m.jsx(Fi,{onSubmit:()=>o&&!u&&h(),children:m.jsx(ji,{id:"via-email-address-input",label:e("emailAddress"),autoFocus:!0,onChange:g=>c(g.target.value),beforeIcon:"mail"})})}),m.jsx(Kt,{children:m.jsxs("div",{className:"flex flex-col gap-2",children:[m.jsx(ut,{label:e("continue"),className:"w-full",onClick:h,pending:u,disabled:!o||u}),m.jsx(ut,{label:e("useIdentifier"),variant:"secondary",onClick:()=>l(`../${t}/identifier`)})]})})]})}),m.jsx(fi,{title:`${e("new")} ${e("emailAddress").toLowerCase()}`,isOpen:f,onClose:()=>p(!1),primaryAction:{label:e("confirm"),action:y,disabled:u},secondaryAction:{label:e("cancel"),action:()=>p(!1)},children:m.jsx("p",{children:e("continueWithEmail",{email:o})})})]})}function FR(){return m.jsxs(jr,{children:[m.jsx(He,{path:"/",element:m.jsx(PR,{})}),m.jsx(He,{path:":code/redeem",element:m.jsx(jR,{})}),m.jsx(He,{path:":code/email",element:m.jsx(BR,{})}),m.jsx(He,{path:":code/identifier",element:m.jsx(LR,{})})]})}function UR(){return m.jsxs(jr,{children:[m.jsx(He,{path:"/",element:m.jsx(bk,{})}),m.jsx(He,{path:`${Fe.GENERIC}/*`,element:m.jsx(KN,{})}),m.jsx(He,{path:`${Fe.GIFTCARD}/*`,element:m.jsx(tR,{})}),m.jsx(He,{path:`${Fe.POINTS_TRANSACTION}/*`,element:m.jsx(iR,{})}),m.jsx(He,{path:`${Fe.PORTAL}/*`,element:m.jsx(kR,{})}),m.jsx(He,{path:`${Fe.PREPAID}/*`,element:m.jsx(DR,{})}),m.jsx(He,{path:`${Fe.VOUCHER}/*`,element:m.jsx(FR,{})})]})}function VR(){const{t:e}=Ve(),[t,n]=I.useState(!1);return m.jsx("div",{className:"default-bg-colors flex h-screen items-center justify-center",children:m.jsxs("div",{className:"overflow-hidden rounded-lg border border-gray-300 bg-white shadow-lg",children:[m.jsx("div",{className:"border-b border-gray-200 bg-gray-50 px-6 pb-3 pt-4 shadow",children:m.jsx("h2",{className:"text-3xl",children:"Oops!"})}),m.jsx("p",{className:"mt-4 px-6 text-gray-900",children:e("sorrySomethingWentWrong")}),m.jsx("div",{className:"mt-10 p-6",children:m.jsx(ut,{onClick:()=>{n(!0),window.location.replace("/")},pending:t,label:e("back")})})]})})}function qf(e){"@babel/helpers - typeof";return qf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},qf(e)}function Q1(){return typeof XMLHttpRequest=="function"||(typeof XMLHttpRequest>"u"?"undefined":qf(XMLHttpRequest))==="object"}function qR(e){return!!e&&typeof e.then=="function"}function $R(e){return qR(e)?e:Promise.resolve(e)}function GR(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var $f={exports:{}},pu={exports:{}},J1;function HR(){return J1||(J1=1,function(e,t){var n=typeof globalThis<"u"&&globalThis||typeof self<"u"&&self||typeof qi<"u"&&qi,r=function(){function s(){this.fetch=!1,this.DOMException=n.DOMException}return s.prototype=n,new s}();(function(s){(function(o){var c=typeof s<"u"&&s||typeof self<"u"&&self||typeof c<"u"&&c,u={searchParams:"URLSearchParams"in c,iterable:"Symbol"in c&&"iterator"in Symbol,blob:"FileReader"in c&&"Blob"in c&&function(){try{return new Blob,!0}catch{return!1}}(),formData:"FormData"in c,arrayBuffer:"ArrayBuffer"in c};function d(N){return N&&DataView.prototype.isPrototypeOf(N)}if(u.arrayBuffer)var f=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],p=ArrayBuffer.isView||function(N){return N&&f.indexOf(Object.prototype.toString.call(N))>-1};function l(N){if(typeof N!="string"&&(N=String(N)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(N)||N==="")throw new TypeError('Invalid character in header field name: "'+N+'"');return N.toLowerCase()}function v(N){return typeof N!="string"&&(N=String(N)),N}function a(N){var L={next:function(){var Y=N.shift();return{done:Y===void 0,value:Y}}};return u.iterable&&(L[Symbol.iterator]=function(){return L}),L}function h(N){this.map={},N instanceof h?N.forEach(function(L,Y){this.append(Y,L)},this):Array.isArray(N)?N.forEach(function(L){this.append(L[0],L[1])},this):N&&Object.getOwnPropertyNames(N).forEach(function(L){this.append(L,N[L])},this)}h.prototype.append=function(N,L){N=l(N),L=v(L);var Y=this.map[N];this.map[N]=Y?Y+", "+L:L},h.prototype.delete=function(N){delete this.map[l(N)]},h.prototype.get=function(N){return N=l(N),this.has(N)?this.map[N]:null},h.prototype.has=function(N){return this.map.hasOwnProperty(l(N))},h.prototype.set=function(N,L){this.map[l(N)]=v(L)},h.prototype.forEach=function(N,L){for(var Y in this.map)this.map.hasOwnProperty(Y)&&N.call(L,this.map[Y],Y,this)},h.prototype.keys=function(){var N=[];return this.forEach(function(L,Y){N.push(Y)}),a(N)},h.prototype.values=function(){var N=[];return this.forEach(function(L){N.push(L)}),a(N)},h.prototype.entries=function(){var N=[];return this.forEach(function(L,Y){N.push([Y,L])}),a(N)},u.iterable&&(h.prototype[Symbol.iterator]=h.prototype.entries);function y(N){if(N.bodyUsed)return Promise.reject(new TypeError("Already read"));N.bodyUsed=!0}function g(N){return new Promise(function(L,Y){N.onload=function(){L(N.result)},N.onerror=function(){Y(N.error)}})}function b(N){var L=new FileReader,Y=g(L);return L.readAsArrayBuffer(N),Y}function w(N){var L=new FileReader,Y=g(L);return L.readAsText(N),Y}function E(N){for(var L=new Uint8Array(N),Y=new Array(L.length),z=0;z<L.length;z++)Y[z]=String.fromCharCode(L[z]);return Y.join("")}function S(N){if(N.slice)return N.slice(0);var L=new Uint8Array(N.byteLength);return L.set(new Uint8Array(N)),L.buffer}function A(){return this.bodyUsed=!1,this._initBody=function(N){this.bodyUsed=this.bodyUsed,this._bodyInit=N,N?typeof N=="string"?this._bodyText=N:u.blob&&Blob.prototype.isPrototypeOf(N)?this._bodyBlob=N:u.formData&&FormData.prototype.isPrototypeOf(N)?this._bodyFormData=N:u.searchParams&&URLSearchParams.prototype.isPrototypeOf(N)?this._bodyText=N.toString():u.arrayBuffer&&u.blob&&d(N)?(this._bodyArrayBuffer=S(N.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):u.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(N)||p(N))?this._bodyArrayBuffer=S(N):this._bodyText=N=Object.prototype.toString.call(N):this._bodyText="",this.headers.get("content-type")||(typeof N=="string"?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):u.searchParams&&URLSearchParams.prototype.isPrototypeOf(N)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},u.blob&&(this.blob=function(){var N=y(this);if(N)return N;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){if(this._bodyArrayBuffer){var N=y(this);return N||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}else return this.blob().then(b)}),this.text=function(){var N=y(this);if(N)return N;if(this._bodyBlob)return w(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(E(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},u.formData&&(this.formData=function(){return this.text().then(D)}),this.json=function(){return this.text().then(JSON.parse)},this}var T=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function O(N){var L=N.toUpperCase();return T.indexOf(L)>-1?L:N}function M(N,L){if(!(this instanceof M))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');L=L||{};var Y=L.body;if(N instanceof M){if(N.bodyUsed)throw new TypeError("Already read");this.url=N.url,this.credentials=N.credentials,L.headers||(this.headers=new h(N.headers)),this.method=N.method,this.mode=N.mode,this.signal=N.signal,!Y&&N._bodyInit!=null&&(Y=N._bodyInit,N.bodyUsed=!0)}else this.url=String(N);if(this.credentials=L.credentials||this.credentials||"same-origin",(L.headers||!this.headers)&&(this.headers=new h(L.headers)),this.method=O(L.method||this.method||"GET"),this.mode=L.mode||this.mode||null,this.signal=L.signal||this.signal,this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&Y)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(Y),(this.method==="GET"||this.method==="HEAD")&&(L.cache==="no-store"||L.cache==="no-cache")){var z=/([?&])_=[^&]*/;if(z.test(this.url))this.url=this.url.replace(z,"$1_="+new Date().getTime());else{var ee=/\?/;this.url+=(ee.test(this.url)?"&":"?")+"_="+new Date().getTime()}}}M.prototype.clone=function(){return new M(this,{body:this._bodyInit})};function D(N){var L=new FormData;return N.trim().split("&").forEach(function(Y){if(Y){var z=Y.split("="),ee=z.shift().replace(/\+/g," "),te=z.join("=").replace(/\+/g," ");L.append(decodeURIComponent(ee),decodeURIComponent(te))}}),L}function F(N){var L=new h,Y=N.replace(/\r?\n[\t ]+/g," ");return Y.split("\r").map(function(z){return z.indexOf(`
142
- `)===0?z.substr(1,z.length):z}).forEach(function(z){var ee=z.split(":"),te=ee.shift().trim();if(te){var re=ee.join(":").trim();L.append(te,re)}}),L}A.call(M.prototype);function V(N,L){if(!(this instanceof V))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');L||(L={}),this.type="default",this.status=L.status===void 0?200:L.status,this.ok=this.status>=200&&this.status<300,this.statusText=L.statusText===void 0?"":""+L.statusText,this.headers=new h(L.headers),this.url=L.url||"",this._initBody(N)}A.call(V.prototype),V.prototype.clone=function(){return new V(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new h(this.headers),url:this.url})},V.error=function(){var N=new V(null,{status:0,statusText:""});return N.type="error",N};var G=[301,302,303,307,308];V.redirect=function(N,L){if(G.indexOf(L)===-1)throw new RangeError("Invalid status code");return new V(null,{status:L,headers:{location:N}})},o.DOMException=c.DOMException;try{new o.DOMException}catch{o.DOMException=function(L,Y){this.message=L,this.name=Y;var z=Error(L);this.stack=z.stack},o.DOMException.prototype=Object.create(Error.prototype),o.DOMException.prototype.constructor=o.DOMException}function U(N,L){return new Promise(function(Y,z){var ee=new M(N,L);if(ee.signal&&ee.signal.aborted)return z(new o.DOMException("Aborted","AbortError"));var te=new XMLHttpRequest;function re(){te.abort()}te.onload=function(){var ue={status:te.status,statusText:te.statusText,headers:F(te.getAllResponseHeaders()||"")};ue.url="responseURL"in te?te.responseURL:ue.headers.get("X-Request-URL");var ye="response"in te?te.response:te.responseText;setTimeout(function(){Y(new V(ye,ue))},0)},te.onerror=function(){setTimeout(function(){z(new TypeError("Network request failed"))},0)},te.ontimeout=function(){setTimeout(function(){z(new TypeError("Network request failed"))},0)},te.onabort=function(){setTimeout(function(){z(new o.DOMException("Aborted","AbortError"))},0)};function he(ue){try{return ue===""&&c.location.href?c.location.href:ue}catch{return ue}}te.open(ee.method,he(ee.url),!0),ee.credentials==="include"?te.withCredentials=!0:ee.credentials==="omit"&&(te.withCredentials=!1),"responseType"in te&&(u.blob?te.responseType="blob":u.arrayBuffer&&ee.headers.get("Content-Type")&&ee.headers.get("Content-Type").indexOf("application/octet-stream")!==-1&&(te.responseType="arraybuffer")),L&&typeof L.headers=="object"&&!(L.headers instanceof h)?Object.getOwnPropertyNames(L.headers).forEach(function(ue){te.setRequestHeader(ue,v(L.headers[ue]))}):ee.headers.forEach(function(ue,ye){te.setRequestHeader(ye,ue)}),ee.signal&&(ee.signal.addEventListener("abort",re),te.onreadystatechange=function(){te.readyState===4&&ee.signal.removeEventListener("abort",re)}),te.send(typeof ee._bodyInit>"u"?null:ee._bodyInit)})}return U.polyfill=!0,c.fetch||(c.fetch=U,c.Headers=h,c.Request=M,c.Response=V),o.Headers=h,o.Request=M,o.Response=V,o.fetch=U,o})({})})(r),r.fetch.ponyfill=!0,delete r.fetch.polyfill;var i=n.fetch?n:r;t=i.fetch,t.default=i.fetch,t.fetch=i.fetch,t.Headers=i.Headers,t.Request=i.Request,t.Response=i.Response,e.exports=t}(pu,pu.exports)),pu.exports}(function(e,t){var n;if(typeof fetch=="function"&&(typeof qi<"u"&&qi.fetch?n=qi.fetch:typeof window<"u"&&window.fetch?n=window.fetch:n=fetch),typeof GR<"u"&&typeof window>"u"){var r=n||HR();r.default&&(r=r.default),t.default=r,e.exports=t.default}})($f,$f.exports);var Z1=$f.exports;const X1=Iu(Z1),eb=Vb({__proto__:null,default:X1},[Z1]);function tb(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function nb(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?tb(Object(n),!0).forEach(function(r){YR(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tb(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function YR(e,t,n){return t=WR(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function WR(e){var t=KR(e,"string");return Ui(t)=="symbol"?t:t+""}function KR(e,t){if(Ui(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Ui(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Ui(e){"@babel/helpers - typeof";return Ui=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ui(e)}var Br;typeof fetch=="function"&&(typeof global<"u"&&global.fetch?Br=global.fetch:typeof window<"u"&&window.fetch?Br=window.fetch:Br=fetch);var na;Q1()&&(typeof global<"u"&&global.XMLHttpRequest?na=global.XMLHttpRequest:typeof window<"u"&&window.XMLHttpRequest&&(na=window.XMLHttpRequest));var mu;typeof ActiveXObject=="function"&&(typeof global<"u"&&global.ActiveXObject?mu=global.ActiveXObject:typeof window<"u"&&window.ActiveXObject&&(mu=window.ActiveXObject)),!Br&&eb&&!na&&!mu&&(Br=X1||eb),typeof Br!="function"&&(Br=void 0);var Gf=function(t,n){if(n&&Ui(n)==="object"){var r="";for(var i in n)r+="&"+encodeURIComponent(i)+"="+encodeURIComponent(n[i]);if(!r)return t;t=t+(t.indexOf("?")!==-1?"&":"?")+r.slice(1)}return t},rb=function(t,n,r,i){var s=function(u){if(!u.ok)return r(u.statusText||"Error",{status:u.status});u.text().then(function(d){r(null,{status:u.status,data:d})}).catch(r)};if(i){var o=i(t,n);if(o instanceof Promise){o.then(s).catch(r);return}}typeof fetch=="function"?fetch(t,n).then(s).catch(r):Br(t,n).then(s).catch(r)},ib=!1,zR=function(t,n,r,i){t.queryStringParams&&(n=Gf(n,t.queryStringParams));var s=nb({},typeof t.customHeaders=="function"?t.customHeaders():t.customHeaders);typeof window>"u"&&typeof global<"u"&&typeof global.process<"u"&&global.process.versions&&global.process.versions.node&&(s["User-Agent"]="i18next-http-backend (node/".concat(global.process.version,"; ").concat(global.process.platform," ").concat(global.process.arch,")")),r&&(s["Content-Type"]="application/json");var o=typeof t.requestOptions=="function"?t.requestOptions(r):t.requestOptions,c=nb({method:r?"POST":"GET",body:r?t.stringify(r):void 0,headers:s},ib?{}:o),u=typeof t.alternateFetch=="function"&&t.alternateFetch.length>=1?t.alternateFetch:void 0;try{rb(n,c,i,u)}catch(d){if(!o||Object.keys(o).length===0||!d.message||d.message.indexOf("not implemented")<0)return i(d);try{Object.keys(o).forEach(function(f){delete c[f]}),rb(n,c,i,u),ib=!0}catch(f){i(f)}}},QR=function(t,n,r,i){r&&Ui(r)==="object"&&(r=Gf("",r).slice(1)),t.queryStringParams&&(n=Gf(n,t.queryStringParams));try{var s;na?s=new na:s=new mu("MSXML2.XMLHTTP.3.0"),s.open(r?"POST":"GET",n,1),t.crossDomain||s.setRequestHeader("X-Requested-With","XMLHttpRequest"),s.withCredentials=!!t.withCredentials,r&&s.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),s.overrideMimeType&&s.overrideMimeType("application/json");var o=t.customHeaders;if(o=typeof o=="function"?o():o,o)for(var c in o)s.setRequestHeader(c,o[c]);s.onreadystatechange=function(){s.readyState>3&&i(s.status>=400?s.statusText:null,{status:s.status,data:s.responseText})},s.send(r)}catch(u){console&&console.log(u)}},JR=function(t,n,r,i){if(typeof r=="function"&&(i=r,r=void 0),i=i||function(){},Br&&n.indexOf("file:")!==0)return zR(t,n,r,i);if(Q1()||typeof ActiveXObject=="function")return QR(t,n,r,i);i(new Error("No fetch and no xhr implementation found!"))};function Ds(e){"@babel/helpers - typeof";return Ds=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ds(e)}function sb(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Hf(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?sb(Object(n),!0).forEach(function(r){ob(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):sb(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function ZR(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function XR(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,ab(r.key),r)}}function e8(e,t,n){return t&&XR(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function ob(e,t,n){return t=ab(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ab(e){var t=t8(e,"string");return Ds(t)=="symbol"?t:t+""}function t8(e,t){if(Ds(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Ds(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var n8=function(){return{loadPath:"/locales/{{lng}}/{{ns}}.json",addPath:"/locales/add/{{lng}}/{{ns}}",parse:function(n){return JSON.parse(n)},stringify:JSON.stringify,parsePayload:function(n,r,i){return ob({},r,i||"")},parseLoadPayload:function(n,r){},request:JR,reloadInterval:typeof window<"u"?!1:60*60*1e3,customHeaders:{},queryStringParams:{},crossDomain:!1,withCredentials:!1,overrideMimeType:!1,requestOptions:{mode:"cors",credentials:"same-origin",cache:"default"}}},cb=function(){function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};ZR(this,e),this.services=t,this.options=n,this.allOptions=r,this.type="backend",this.init(t,n,r)}return e8(e,[{key:"init",value:function(n){var r=this,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(this.services=n,this.options=Hf(Hf(Hf({},n8()),this.options||{}),i),this.allOptions=s,this.services&&this.options.reloadInterval){var o=setInterval(function(){return r.reload()},this.options.reloadInterval);Ds(o)==="object"&&typeof o.unref=="function"&&o.unref()}}},{key:"readMulti",value:function(n,r,i){this._readAny(n,n,r,r,i)}},{key:"read",value:function(n,r,i){this._readAny([n],n,[r],r,i)}},{key:"_readAny",value:function(n,r,i,s,o){var c=this,u=this.options.loadPath;typeof this.options.loadPath=="function"&&(u=this.options.loadPath(n,i)),u=$R(u),u.then(function(d){if(!d)return o(null,{});var f=c.services.interpolator.interpolate(d,{lng:n.join("+"),ns:i.join("+")});c.loadUrl(f,o,r,s)})}},{key:"loadUrl",value:function(n,r,i,s){var o=this,c=typeof i=="string"?[i]:i,u=typeof s=="string"?[s]:s,d=this.options.parseLoadPayload(c,u);this.options.request(this.options,n,d,function(f,p){if(p&&(p.status>=500&&p.status<600||!p.status))return r("failed loading "+n+"; status code: "+p.status,!0);if(p&&p.status>=400&&p.status<500)return r("failed loading "+n+"; status code: "+p.status,!1);if(!p&&f&&f.message&&f.message.indexOf("Failed to fetch")>-1)return r("failed loading "+n+": "+f.message,!0);if(f)return r(f,!1);var l,v;try{typeof p.data=="string"?l=o.options.parse(p.data,i,s):l=p.data}catch{v="failed parsing "+n+" to json"}if(v)return r(v,!1);r(null,l)})}},{key:"create",value:function(n,r,i,s,o){var c=this;if(this.options.addPath){typeof n=="string"&&(n=[n]);var u=this.options.parsePayload(r,i,s),d=0,f=[],p=[];n.forEach(function(l){var v=c.options.addPath;typeof c.options.addPath=="function"&&(v=c.options.addPath(l,r));var a=c.services.interpolator.interpolate(v,{lng:l,ns:r});c.options.request(c.options,a,u,function(h,y){d+=1,f.push(h),p.push(y),d===n.length&&typeof o=="function"&&o(f,p)})})}}},{key:"reload",value:function(){var n=this,r=this.services,i=r.backendConnector,s=r.languageUtils,o=r.logger,c=i.language;if(!(c&&c.toLowerCase()==="cimode")){var u=[],d=function(p){var l=s.toResolveHierarchy(p);l.forEach(function(v){u.indexOf(v)<0&&u.push(v)})};d(c),this.allOptions.preload&&this.allOptions.preload.forEach(function(f){return d(f)}),u.forEach(function(f){n.allOptions.ns.forEach(function(p){i.read(f,p,"read",null,null,function(l,v){l&&o.warn("loading namespace ".concat(p," for language ").concat(f," failed"),l),!l&&v&&o.log("loaded namespace ".concat(p," for language ").concat(f),v),i.loaded("".concat(f,"|").concat(p),l,v)})})})}}}])}();cb.type="backend";const{slice:r8,forEach:i8}=[];function s8(e){return i8.call(r8.call(arguments,1),t=>{if(t)for(const n in t)e[n]===void 0&&(e[n]=t[n])}),e}const ub=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,o8=(e,t,n)=>{const r=n||{};r.path=r.path||"/";const i=encodeURIComponent(t);let s=`${e}=${i}`;if(r.maxAge>0){const o=r.maxAge-0;if(Number.isNaN(o))throw new Error("maxAge should be a Number");s+=`; Max-Age=${Math.floor(o)}`}if(r.domain){if(!ub.test(r.domain))throw new TypeError("option domain is invalid");s+=`; Domain=${r.domain}`}if(r.path){if(!ub.test(r.path))throw new TypeError("option path is invalid");s+=`; Path=${r.path}`}if(r.expires){if(typeof r.expires.toUTCString!="function")throw new TypeError("option expires is invalid");s+=`; Expires=${r.expires.toUTCString()}`}if(r.httpOnly&&(s+="; HttpOnly"),r.secure&&(s+="; Secure"),r.sameSite)switch(typeof r.sameSite=="string"?r.sameSite.toLowerCase():r.sameSite){case!0:s+="; SameSite=Strict";break;case"lax":s+="; SameSite=Lax";break;case"strict":s+="; SameSite=Strict";break;case"none":s+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}return s},lb={create(e,t,n,r){let i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{path:"/",sameSite:"strict"};n&&(i.expires=new Date,i.expires.setTime(i.expires.getTime()+n*60*1e3)),r&&(i.domain=r),document.cookie=o8(e,encodeURIComponent(t),i)},read(e){const t=`${e}=`,n=document.cookie.split(";");for(let r=0;r<n.length;r++){let i=n[r];for(;i.charAt(0)===" ";)i=i.substring(1,i.length);if(i.indexOf(t)===0)return i.substring(t.length,i.length)}return null},remove(e){this.create(e,"",-1)}};var a8={name:"cookie",lookup(e){let{lookupCookie:t}=e;if(t&&typeof document<"u")return lb.read(t)||void 0},cacheUserLanguage(e,t){let{lookupCookie:n,cookieMinutes:r,cookieDomain:i,cookieOptions:s}=t;n&&typeof document<"u"&&lb.create(n,e,r,i,s)}},c8={name:"querystring",lookup(e){var r;let{lookupQuerystring:t}=e,n;if(typeof window<"u"){let{search:i}=window.location;!window.location.search&&((r=window.location.hash)==null?void 0:r.indexOf("?"))>-1&&(i=window.location.hash.substring(window.location.hash.indexOf("?")));const o=i.substring(1).split("&");for(let c=0;c<o.length;c++){const u=o[c].indexOf("=");u>0&&o[c].substring(0,u)===t&&(n=o[c].substring(u+1))}}return n}};let ra=null;const db=()=>{if(ra!==null)return ra;try{ra=window!=="undefined"&&window.localStorage!==null;const e="i18next.translate.boo";window.localStorage.setItem(e,"foo"),window.localStorage.removeItem(e)}catch{ra=!1}return ra};var u8={name:"localStorage",lookup(e){let{lookupLocalStorage:t}=e;if(t&&db())return window.localStorage.getItem(t)||void 0},cacheUserLanguage(e,t){let{lookupLocalStorage:n}=t;n&&db()&&window.localStorage.setItem(n,e)}};let ia=null;const fb=()=>{if(ia!==null)return ia;try{ia=window!=="undefined"&&window.sessionStorage!==null;const e="i18next.translate.boo";window.sessionStorage.setItem(e,"foo"),window.sessionStorage.removeItem(e)}catch{ia=!1}return ia};var l8={name:"sessionStorage",lookup(e){let{lookupSessionStorage:t}=e;if(t&&fb())return window.sessionStorage.getItem(t)||void 0},cacheUserLanguage(e,t){let{lookupSessionStorage:n}=t;n&&fb()&&window.sessionStorage.setItem(n,e)}},d8={name:"navigator",lookup(e){const t=[];if(typeof navigator<"u"){const{languages:n,userLanguage:r,language:i}=navigator;if(n)for(let s=0;s<n.length;s++)t.push(n[s]);r&&t.push(r),i&&t.push(i)}return t.length>0?t:void 0}},f8={name:"htmlTag",lookup(e){let{htmlTag:t}=e,n;const r=t||(typeof document<"u"?document.documentElement:null);return r&&typeof r.getAttribute=="function"&&(n=r.getAttribute("lang")),n}},h8={name:"path",lookup(e){var i;let{lookupFromPathIndex:t}=e;if(typeof window>"u")return;const n=window.location.pathname.match(/\/([a-zA-Z-]*)/g);return Array.isArray(n)?(i=n[typeof t=="number"?t:0])==null?void 0:i.replace("/",""):void 0}},p8={name:"subdomain",lookup(e){var i,s;let{lookupFromSubdomainIndex:t}=e;const n=typeof t=="number"?t+1:1,r=typeof window<"u"&&((s=(i=window.location)==null?void 0:i.hostname)==null?void 0:s.match(/^(\w{2,5})\.(([a-z0-9-]{1,63}\.[a-z]{2,6})|localhost)/i));if(r)return r[n]}};function m8(){return{order:["querystring","cookie","localStorage","sessionStorage","navigator","htmlTag"],lookupQuerystring:"lng",lookupCookie:"i18next",lookupLocalStorage:"i18nextLng",lookupSessionStorage:"i18nextLng",caches:["localStorage"],excludeCacheFor:["cimode"],convertDetectedLanguage:e=>e}}class hb{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.type="languageDetector",this.detectors={},this.init(t,n)}init(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.services=t||{languageUtils:{}},this.options=s8(n,this.options||{},m8()),typeof this.options.convertDetectedLanguage=="string"&&this.options.convertDetectedLanguage.indexOf("15897")>-1&&(this.options.convertDetectedLanguage=i=>i.replace("-","_")),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=r,this.addDetector(a8),this.addDetector(c8),this.addDetector(u8),this.addDetector(l8),this.addDetector(d8),this.addDetector(f8),this.addDetector(h8),this.addDetector(p8)}addDetector(t){return this.detectors[t.name]=t,this}detect(t){t||(t=this.options.order);let n=[];return t.forEach(r=>{if(this.detectors[r]){let i=this.detectors[r].lookup(this.options);i&&typeof i=="string"&&(i=[i]),i&&(n=n.concat(i))}}),n=n.map(r=>this.options.convertDetectedLanguage(r)),this.services.languageUtils.getBestMatchFromCodes?n:n.length>0?n[0]:null}cacheUserLanguage(t,n){n||(n=this.options.caches),n&&(this.options.excludeCacheFor&&this.options.excludeCacheFor.indexOf(t)>-1||n.forEach(r=>{this.detectors[r]&&this.detectors[r].cacheUserLanguage(t,this.options)}))}}hb.type="languageDetector",Gt.use(cb).use(hb).use(gS).init({fallbackLng:"en",lng:navigator.language&&navigator.language.substring(0,2),interpolation:{escapeValue:!1},backend:{loadPath:"https://translations.piggy.eu/portal-sessions/{{lng}}.json"}});function pb(){const{uuid:e,portalSession:t}=Le(),[n,r]=I.useState();return $n({url:`${e}/brand-kit`,onData:r}),I.useEffect(()=>{n&&yk(n)},[n]),m.jsx(I.StrictMode,{children:m.jsxs(Fd,{fallback:VR,children:[m.jsx(G3,{children:m.jsx(UR,{})}),m.jsx(Lk,{enabled:t.inputData.enable_on_screen_keyboard}),m.jsx(nS,{className:"lg:top-14"})]})})}function mb(e){const{uuid:t,portalSession:n,error:r}=Le();return n.uuid?m.jsx(B1.Provider,{value:{...e,primaryIdentificationMethod:n.inputData.primary_identification_method},children:e.children}):m.jsx(rr,{message:r&&`No portal session found with uuid: ${t}.`})}function g8(e){const{portalSession:t}=YS(e);return t?m.jsx(Ou.Provider,{value:{apiKey:e.apiKey,host:e.host},children:m.jsx(bp,{uuid:t.uuid,children:m.jsx(mb,{...e,children:m.jsx(pb,{})})})}):m.jsx(rr,{})}const y8="data:image/svg+xml,%3csvg%20width='24'%20height='25'%20viewBox='0%200%2024%2025'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M1.37482%209.55838C0.802045%2011.696%200.887351%2013.9567%201.61959%2016.045C2.35183%2018.1334%203.69695%2019.9524%205.47921%2021.2642C7.26146%2022.5761%209.39798%2023.3199%2011.6096%2023.3985C13.8212%2023.477%2016.0051%2022.8866%2017.876%2021.7045C19.7468%2020.5223%2021.2175%2018.8034%2022.0961%2016.7722C22.9746%2014.7411%2023.2201%2012.4921%2022.8004%2010.3193C22.3807%208.1464%2021.3154%206.15066%2019.7436%204.59277C18.1718%203.03489%2016.1667%201.98732%2013.9902%201.58693M7.14096%202.53681C5.21049%203.48732%203.60119%204.98315%202.51232%206.8391M10.7049%201.48193C10.452%201.51191%2010.2003%201.55066%209.95012%201.59811M18.1995%2015.656C18.757%2014.5927%2019.0317%2013.4039%2018.9971%2012.2038C18.9625%2011.0037%2018.6198%209.83263%2018.002%208.8032C17.3842%207.77377%2016.512%206.92055%2015.4692%206.32553C14.4264%205.73051%2013.2481%205.4137%2012.0476%205.40554C10.847%205.39739%209.66449%205.69816%208.61372%206.27895C7.56295%206.85974%206.67923%207.70104%206.04747%208.72198C5.41572%209.74292%205.05717%2010.9092%205.00628%2012.1087C4.9554%2013.3082%205.21389%2014.5007%205.75691%2015.5714M9.15764%2013.3648C9.00624%2012.9162%208.96314%2012.4382%209.03189%2011.9698C9.10064%2011.5014%209.27926%2011.0559%209.55317%2010.6697C9.82708%2010.2836%2010.1885%209.96774%2010.6079%209.74803C11.0272%209.52832%2011.4926%209.41098%2011.966%209.4056C12.4394%209.40023%2012.9074%209.50697%2013.3316%209.71709C13.7559%209.92722%2014.1244%2010.2348%2014.407%2010.6146C14.6896%2010.9944%2014.8783%2011.4358%2014.9576%2011.9025C15.037%2012.3692%2015.0048%2012.8481%2014.8636%2013.3M14.0993%2010.2622C14.0043%2010.1691%2013.9032%2010.0825%2013.7967%2010.0028M8.2478%2018.3147C9.32147%2018.9965%2010.5606%2019.3728%2011.832%2019.4033C13.1035%2019.4339%2014.3592%2019.1174%2015.4644%2018.488'%20stroke='%233430FF'%20stroke-width='2'%20stroke-linecap='round'/%3e%3c/svg%3e";function v8({message:e}){return m.jsxs("div",{className:"flex h-screen flex-col justify-center gap-12 text-center",children:[m.jsxs("div",{className:"flex items-center justify-center gap-3",children:[m.jsx("img",{alt:"logo",src:y8,className:"z-10 h-16 w-16 hover:animate-spin"}),m.jsxs("p",{className:"z-10 text-7xl font-semibold tracking-wide text-gray-600",children:["Welcome to ",m.jsx("span",{className:"italic",children:"PortalSessions"})]})]}),m.jsx("p",{className:"text-core-red-500",children:e})]})}function b8({uuid:e,host:t}){return e?m.jsx(Ou.Provider,{value:{host:t},children:m.jsx(bp,{uuid:e,children:m.jsx(mb,{children:m.jsx(pb,{})})})}):m.jsx(v8,{message:"No uuid provided."})}const w8=Object.freeze(Object.defineProperty({__proto__:null,default:e=>se.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",...e},se.createElement("path",{d:"M8 4.75V8.25M16 4.75V8.25M7.75 10.75H16.25M6.75 19.25H17.25C18.3546 19.25 19.25 18.3546 19.25 17.25V8.75C19.25 7.64543 18.3546 6.75 17.25 6.75H6.75C5.64543 6.75 4.75 7.64543 4.75 8.75V17.25C4.75 18.3546 5.64543 19.25 6.75 19.25Z",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}))},Symbol.toStringTag,{value:"Module"})),E8=Object.freeze(Object.defineProperty({__proto__:null,default:e=>se.createElement("svg",{height:24,viewBox:"0 0 24 24",width:24,xmlns:"http://www.w3.org/2000/svg",...e},se.createElement("path",{d:"m21.25 7.5c.3796958 0 .693491.28215388.7431534.64822944l.0068466.10177056v8.5c0 1.7330315-1.3564548 3.1492459-3.0655761 3.2448552l-.1844239.0051448h-12.689l.71933009.7196699c.26626656.2662666.29047261.6829303.07261815.9765418l-.07261815.0841184c-.26626657.2662665-.68293025.2904726-.97654174.0726181l-.08411844-.0726181-2-2-.06339799-.0720275c-.00244939-.0031685-.00487398-.0063571-.00727348-.0095656l.07067147.0815931c-.03705327-.0370533-.06941902-.077019-.09709724-.1191603-.01316484-.0201549-.025545-.0411423-.03690171-.0627516-.00483354-.0091218-.00919014-.0178526-.01336588-.0266478-.01274712-.0267885-.02425172-.0552483-.03400215-.0845099-.00225837-.0069437-.00418282-.0130149-.00602813-.019105-.02092163-.0684786-.0322748-.1419912-.0322748-.2181555 0-.0383922.00288471-.0761107.00844919-.1129505.00180466-.0115676.0038603-.0232773.00619514-.0349422.00494363-.0250031.01111685-.0492994.01844184-.073091.00362656-.0116598.00765847-.0237092.01200456-.0356703.00848426-.0232976.01778613-.0453662.02808241-.0668678.00549219-.0116011.01179514-.0239381.01846187-.0361292.01323523-.0240158.02734042-.0467392.04258121-.0686124.00392129-.0057417.00832657-.0118713.01283554-.0179483.0251194-.0332177.04801831-.0595185.07261815-.0841184l2-2c.29289322-.2928932.76776696-.2928932 1.06066018 0 .26626656.2662666.29047261.6829303.07261815.9765418l-.07261815.0841184-.72033009.7196699h12.69c.9181734 0 1.6711923-.7071103 1.7441988-1.6064728l.0058012-.1435272v-8.5c0-.41421356.3357864-.75.75-.75zm-3.0537883-5.35294824.0841184.07261815 2 2c.0254481.02544812.049076.05271652.0706715.08159313l-.0706715-.08159313c.0370533.03705328.069419.07701901.0970972.1191603.0131649.02015493.025545.04114226.0369017.06275154.0048336.00912187.0091902.01785262.0133659.02664784.0127471.02678853.0242517.0552483.0340022.08450994.0022583.00694369.0041828.01301489.0060281.01910493.0209216.06847868.0322748.14199127.0322748.21815554 0 .03839224-.0028847.07611073-.0084492.11295053-.0014988.0095454-.0031606.01924362-.0050138.02891241-.0051364.02710922-.0117072.05340972-.0196232.07912072-.0036265.0116598-.0076584.02370928-.0120045.03567032-.0084843.02329763-.0177862.04536621-.0280824.06686781-.0054922.01160108-.0117952.02393815-.0184619.03612923-.0132352.02401575-.0273404.04673917-.0425812.06861233-.0039213.00574174-.0083266.01187138-.0128356.0179483-.023778.03144192-.0451015.05615345-.0679264.07938506l-.0046917.00473338-2 2c-.2928932.29289321-.767767.29289321-1.0606602 0-.2662665-.26626657-.2904726-.68293025-.0726181-.97654174l.0726181-.08411844.7183301-.71966991h-12.688c-.9181734 0-1.67119234.70711027-1.7441988 1.60647279l-.0058012.14352721v8.5c0 .4142136-.33578644.75-.75.75-.37969577 0-.69349096-.2821539-.74315338-.6482294l-.00684662-.1017706v-8.5c0-1.73303146 1.35645477-3.14924593 3.06557609-3.24485521l.18442391-.00514479h12.689l-.7193301-.71966991c-.2662665-.26626657-.2904726-.68293025-.0726181-.97654174l.0726181-.08411844c.2662666-.26626656.6829303-.29047261.9765418-.07261815zm-6.1962117 5.85294824c2.209139 0 4 1.790861 4 4s-1.790861 4-4 4-4-1.790861-4-4 1.790861-4 4-4zm0 1.5c-1.3807119 0-2.5 1.1192881-2.5 2.5s1.1192881 2.5 2.5 2.5 2.5-1.1192881 2.5-2.5-1.1192881-2.5-2.5-2.5z",fill:"#212121"}))},Symbol.toStringTag,{value:"Module"})),S8=Object.freeze(Object.defineProperty({__proto__:null,default:e=>se.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",...e},se.createElement("path",{d:"M13.25 8.75L9.75 12L13.25 15.25",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}))},Symbol.toStringTag,{value:"Module"})),x8=Object.freeze(Object.defineProperty({__proto__:null,default:e=>se.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",...e},se.createElement("path",{d:"M17.25 6.75L6.75 17.25M6.75 6.75L17.25 17.25",strokeLinecap:"round",strokeLinejoin:"round"}))},Symbol.toStringTag,{value:"Module"})),C8=Object.freeze(Object.defineProperty({__proto__:null,default:e=>se.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},se.createElement("path",{d:"M4.7002 4.70016L11.2999 11.2998",stroke:"#000",strokeWidth:1.8,strokeLinecap:"round",strokeLinejoin:"round"}),se.createElement("path",{d:"M11.2998 4.70016L4.70014 11.2998",stroke:"#000",strokeWidth:1.8,strokeLinecap:"round",strokeLinejoin:"round"}))},Symbol.toStringTag,{value:"Module"})),_8=Object.freeze(Object.defineProperty({__proto__:null,default:e=>se.createElement("svg",{width:24,height:24,fill:"none",viewBox:"0 0 24 24",...e},se.createElement("circle",{cx:12,cy:12,r:7.25,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5}),se.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M14.25 8.75H11.375C10.4775 8.75 9.75 9.47754 9.75 10.375V10.375C9.75 11.2725 10.4775 12 11.375 12H12.625C13.5225 12 14.25 12.7275 14.25 13.625V13.625C14.25 14.5225 13.5225 15.25 12.625 15.25H9.75"}),se.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M12 7.75V8.25"}),se.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M12 15.75V16.25"}))},Symbol.toStringTag,{value:"Module"})),A8=Object.freeze(Object.defineProperty({__proto__:null,default:e=>se.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",...e},se.createElement("path",{d:"M19.25 19.25H13.75M9 18.25L4.75 19.25L5.75 15L15.0429 5.70711C15.4334 5.31658 16.0666 5.31658 16.4571 5.70711L18.2929 7.54289C18.6834 7.93342 18.6834 8.56658 18.2929 8.95711L9 18.25Z",strokeLinecap:"round",strokeLinejoin:"round"}))},Symbol.toStringTag,{value:"Module"})),T8=Object.freeze(Object.defineProperty({__proto__:null,default:e=>se.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",...e},se.createElement("path",{d:"M6.75024 19.2502H17.2502C18.3548 19.2502 19.2502 18.3548 19.2502 17.2502V9.75025L12.0002 4.75024L4.75024 9.75025V17.2502C4.75024 18.3548 5.64568 19.2502 6.75024 19.2502Z",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),se.createElement("path",{d:"M9.74963 15.7493C9.74963 14.6447 10.6451 13.7493 11.7496 13.7493H12.2496C13.3542 13.7493 14.2496 14.6447 14.2496 15.7493V19.2493H9.74963V15.7493Z",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}))},Symbol.toStringTag,{value:"Module"})),I8=Object.freeze(Object.defineProperty({__proto__:null,default:e=>se.createElement("svg",{width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",...e},se.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 13V15"}),se.createElement("circle",{cx:12,cy:9,r:.5}),se.createElement("circle",{cx:12,cy:12,r:7.25,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5}))},Symbol.toStringTag,{value:"Module"})),k8=Object.freeze(Object.defineProperty({__proto__:null,default:e=>se.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",...e},se.createElement("path",{d:"M5.5 6.5L12 12.25L18.5 6.5M6.75 18.25H17.25C18.3546 18.25 19.25 17.3546 19.25 16.25V7.75C19.25 6.64543 18.3546 5.75 17.25 5.75H6.75C5.64543 5.75 4.75 6.64543 4.75 7.75V16.25C4.75 17.3546 5.64543 18.25 6.75 18.25Z",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}))},Symbol.toStringTag,{value:"Module"})),O8=Object.freeze(Object.defineProperty({__proto__:null,default:e=>se.createElement("svg",{width:32,height:32,viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},se.createElement("g",{clipPath:"url(#clip0_17_95)"},se.createElement("rect",{width:32,height:32,rx:4,fill:"#FEF3F2"}),se.createElement("path",{d:"M12.0003 12L20.0003 20M12.0003 20L20.0003 12",stroke:"#E02731",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),se.createElement("defs",null,se.createElement("clipPath",{id:"clip0_17_95"},se.createElement("path",{d:"M0 16C0 7.16344 7.16344 0 16 0V0C24.8366 0 32 7.16344 32 16V16C32 24.8366 24.8366 32 16 32V32C7.16344 32 0 24.8366 0 16V16Z",fill:"white"}))))},Symbol.toStringTag,{value:"Module"})),N8=Object.freeze(Object.defineProperty({__proto__:null,default:e=>se.createElement("svg",{width:32,height:32,viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},se.createElement("g",{clipPath:"url(#clip0_15_20)"},se.createElement("rect",{width:32,height:32,rx:4,fill:"#E7FBF4"}),se.createElement("path",{d:"M10.6668 17.3333L14.6668 20L21.3335 12",stroke:"#039855",strokeWidth:1.6875,strokeLinecap:"round",strokeLinejoin:"round"})),se.createElement("defs",null,se.createElement("clipPath",{id:"clip0_15_20"},se.createElement("path",{d:"M0 16C0 7.16344 7.16344 0 16 0V0C24.8366 0 32 7.16344 32 16V16C32 24.8366 24.8366 32 16 32V32C7.16344 32 0 24.8366 0 16V16Z",fill:"white"}))))},Symbol.toStringTag,{value:"Module"})),R8=Object.freeze(Object.defineProperty({__proto__:null,default:e=>se.createElement("svg",{width:32,height:32,viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},se.createElement("g",{clipPath:"url(#clip0_17_99)"},se.createElement("rect",{width:32,height:32,rx:4,fill:"#FFFAEB"}),se.createElement("path",{d:"M16.0002 17.3333V13.3333M16.0002 20V20.0067M23.0353 19.3333L17.942 10.456C17.0833 8.95867 14.9167 8.95867 14.058 10.456L8.96533 19.3333C8.11266 20.8187 9.18933 22.6667 10.9073 22.6667H21.0933C22.8107 22.6667 23.8873 20.8187 23.0353 19.3333Z",stroke:"#CFAA25",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),se.createElement("defs",null,se.createElement("clipPath",{id:"clip0_17_99"},se.createElement("path",{d:"M0 16C0 7.16344 7.16344 0 16 0C24.8366 0 32 7.16344 32 16C32 24.8366 24.8366 32 16 32C7.16344 32 0 24.8366 0 16Z",fill:"white"}))))},Symbol.toStringTag,{value:"Module"})),M8=Object.freeze(Object.defineProperty({__proto__:null,default:e=>se.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",...e},se.createElement("path",{d:"M13.1191 5.61336C13.0508 5.11856 12.6279 4.75 12.1285 4.75H11.8715C11.3721 4.75 10.9492 5.11856 10.8809 5.61336L10.7938 6.24511C10.7382 6.64815 10.4403 6.96897 10.0622 7.11922C10.006 7.14156 9.95021 7.16484 9.89497 7.18905C9.52217 7.3524 9.08438 7.3384 8.75876 7.09419L8.45119 6.86351C8.05307 6.56492 7.49597 6.60451 7.14408 6.9564L6.95641 7.14408C6.60452 7.49597 6.56492 8.05306 6.86351 8.45118L7.09419 8.75876C7.33841 9.08437 7.3524 9.52216 7.18905 9.89497C7.16484 9.95021 7.14156 10.006 7.11922 10.0622C6.96897 10.4403 6.64815 10.7382 6.24511 10.7938L5.61336 10.8809C5.11856 10.9492 4.75 11.372 4.75 11.8715V12.1285C4.75 12.6279 5.11856 13.0508 5.61336 13.1191L6.24511 13.2062C6.64815 13.2618 6.96897 13.5597 7.11922 13.9378C7.14156 13.994 7.16484 14.0498 7.18905 14.105C7.3524 14.4778 7.3384 14.9156 7.09419 15.2412L6.86351 15.5488C6.56492 15.9469 6.60451 16.504 6.9564 16.8559L7.14408 17.0436C7.49597 17.3955 8.05306 17.4351 8.45118 17.1365L8.75876 16.9058C9.08437 16.6616 9.52216 16.6476 9.89496 16.811C9.95021 16.8352 10.006 16.8584 10.0622 16.8808C10.4403 17.031 10.7382 17.3519 10.7938 17.7549L10.8809 18.3866C10.9492 18.8814 11.3721 19.25 11.8715 19.25H12.1285C12.6279 19.25 13.0508 18.8814 13.1191 18.3866L13.2062 17.7549C13.2618 17.3519 13.5597 17.031 13.9378 16.8808C13.994 16.8584 14.0498 16.8352 14.105 16.8109C14.4778 16.6476 14.9156 16.6616 15.2412 16.9058L15.5488 17.1365C15.9469 17.4351 16.504 17.3955 16.8559 17.0436L17.0436 16.8559C17.3955 16.504 17.4351 15.9469 17.1365 15.5488L16.9058 15.2412C16.6616 14.9156 16.6476 14.4778 16.811 14.105C16.8352 14.0498 16.8584 13.994 16.8808 13.9378C17.031 13.5597 17.3519 13.2618 17.7549 13.2062L18.3866 13.1191C18.8814 13.0508 19.25 12.6279 19.25 12.1285V11.8715C19.25 11.3721 18.8814 10.9492 18.3866 10.8809L17.7549 10.7938C17.3519 10.7382 17.031 10.4403 16.8808 10.0622C16.8584 10.006 16.8352 9.95021 16.8109 9.89496C16.6476 9.52216 16.6616 9.08437 16.9058 8.75875L17.1365 8.4512C17.4351 8.05308 17.3955 7.49599 17.0436 7.1441L16.8559 6.95642C16.504 6.60453 15.9469 6.56494 15.5488 6.86353L15.2412 7.09419C14.9156 7.33841 14.4778 7.3524 14.105 7.18905C14.0498 7.16484 13.994 7.14156 13.9378 7.11922C13.5597 6.96897 13.2618 6.64815 13.2062 6.24511L13.1191 5.61336Z",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),se.createElement("path",{d:"M13.25 12C13.25 12.6904 12.6904 13.25 12 13.25C11.3096 13.25 10.75 12.6904 10.75 12C10.75 11.3096 11.3096 10.75 12 10.75C12.6904 10.75 13.25 11.3096 13.25 12Z",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}))},Symbol.toStringTag,{value:"Module"})),D8=Object.freeze(Object.defineProperty({__proto__:null,default:e=>se.createElement("svg",{width:24,height:24,fill:"none",viewBox:"0 0 24 24",...e},se.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M18.25 7.75H5.75V16.75L4.75 19.25H19.25L18.25 16.75V7.75Z"}),se.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M18.25 7.75L16.25 4.75H7.75L5.75 7.75"}),se.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M9.75 10.75V11.75C9.75 12.9926 10.7574 14 12 14V14C13.2426 14 14.25 12.9926 14.25 11.75V10.75"}))},Symbol.toStringTag,{value:"Module"})),P8=Object.freeze(Object.defineProperty({__proto__:null,default:e=>se.createElement("svg",{width:24,height:24,fill:"none",viewBox:"0 0 24 24",...e},se.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M12 4.75L13.75 10.25H19.25L14.75 13.75L16.25 19.25L12 15.75L7.75 19.25L9.25 13.75L4.75 10.25H10.25L12 4.75Z"}))},Symbol.toStringTag,{value:"Module"})),j8=Object.freeze(Object.defineProperty({__proto__:null,default:e=>se.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",...e},se.createElement("path",{d:"M15.25 8C15.25 9.79493 13.7949 11.25 12 11.25C10.205 11.25 8.74997 9.79493 8.74997 8C8.74997 6.20507 10.205 4.75 12 4.75C13.7949 4.75 15.25 6.20507 15.25 8Z"}),se.createElement("path",{d:"M6.84748 19.25H17.1525C18.2944 19.25 19.174 18.2681 18.6407 17.2584C17.8563 15.7731 16.068 14 12 14C7.93198 14 6.14364 15.7731 5.35921 17.2584C4.82594 18.2681 5.70556 19.25 6.84748 19.25Z"}))},Symbol.toStringTag,{value:"Module"}));Jt.FacingMode=Hi,Jt.PortalSession=g8,Jt.PortalType=un,Jt.PrimaryIdentificationMethod=Qs,Jt.UuidSession=b8,Object.defineProperty(Jt,Symbol.toStringTag,{value:"Module"})});
135
+ \v\f\r                 \u2028\u2029\uFEFF`},8706:function(l,v,a){var h=a(6518),y=a(9039),g=a(4376),b=a(34),w=a(8981),E=a(6198),S=a(6837),A=a(4659),T=a(1469),O=a(597),M=a(8227),D=a(7388),F=M("isConcatSpreadable"),V=D>=51||!y(function(){var U=[];return U[F]=!1,U.concat()[0]!==U}),G=function(U){if(!b(U))return!1;var R=U[F];return R!==void 0?!!R:g(U)};h({target:"Array",proto:!0,arity:1,forced:!V||!O("concat")},{concat:function(U){var R,L,Y,z,ee,te=w(this),re=T(te,0),he=0;for(R=-1,Y=arguments.length;R<Y;R++)if(G(ee=R===-1?te:arguments[R]))for(z=E(ee),S(he+z),L=0;L<z;L++,he++)L in ee&&A(re,he,ee[L]);else S(he+1),A(re,he++,ee);return re.length=he,re}})},2008:function(l,v,a){var h=a(6518),y=a(9213).filter;h({target:"Array",proto:!0,forced:!a(597)("filter")},{filter:function(g){return y(this,g,arguments.length>1?arguments[1]:void 0)}})},3418:function(l,v,a){var h=a(6518),y=a(7916);h({target:"Array",stat:!0,forced:!a(4428)(function(g){Array.from(g)})},{from:y})},4423:function(l,v,a){var h=a(6518),y=a(9617).includes,g=a(9039),b=a(6469);h({target:"Array",proto:!0,forced:g(function(){return!Array(1).includes()})},{includes:function(w){return y(this,w,arguments.length>1?arguments[1]:void 0)}}),b("includes")},5276:function(l,v,a){var h=a(6518),y=a(7476),g=a(9617).indexOf,b=a(4598),w=y([].indexOf),E=!!w&&1/w([1],1,-0)<0;h({target:"Array",proto:!0,forced:E||!b("indexOf")},{indexOf:function(S){var A=arguments.length>1?arguments[1]:void 0;return E?w(this,S,A)||0:g(this,S,A)}})},3792:function(l,v,a){var h=a(5397),y=a(6469),g=a(6269),b=a(1181),w=a(4913).f,E=a(1088),S=a(2529),A=a(6395),T=a(3724),O="Array Iterator",M=b.set,D=b.getterFor(O);l.exports=E(Array,"Array",function(V,G){M(this,{type:O,target:h(V),index:0,kind:G})},function(){var V=D(this),G=V.target,U=V.index++;if(!G||U>=G.length)return V.target=void 0,S(void 0,!0);switch(V.kind){case"keys":return S(U,!1);case"values":return S(G[U],!1)}return S([U,G[U]],!1)},"values");var F=g.Arguments=g.Array;if(y("keys"),y("values"),y("entries"),!A&&T&&F.name!=="values")try{w(F,"name",{value:"values"})}catch{}},8598:function(l,v,a){var h=a(6518),y=a(9504),g=a(7055),b=a(5397),w=a(4598),E=y([].join);h({target:"Array",proto:!0,forced:g!==Object||!w("join",",")},{join:function(S){return E(b(this),S===void 0?",":S)}})},2062:function(l,v,a){var h=a(6518),y=a(9213).map;h({target:"Array",proto:!0,forced:!a(597)("map")},{map:function(g){return y(this,g,arguments.length>1?arguments[1]:void 0)}})},2712:function(l,v,a){var h=a(6518),y=a(926).left,g=a(4598),b=a(7388);h({target:"Array",proto:!0,forced:!a(9088)&&b>79&&b<83||!g("reduce")},{reduce:function(w){var E=arguments.length;return y(this,w,E,E>1?arguments[1]:void 0)}})},4782:function(l,v,a){var h=a(6518),y=a(4376),g=a(3517),b=a(34),w=a(5610),E=a(6198),S=a(5397),A=a(4659),T=a(8227),O=a(597),M=a(7680),D=O("slice"),F=T("species"),V=Array,G=Math.max;h({target:"Array",proto:!0,forced:!D},{slice:function(U,R){var L,Y,z,ee=S(this),te=E(ee),re=w(U,te),he=w(R===void 0?te:R,te);if(y(ee)&&(L=ee.constructor,(g(L)&&(L===V||y(L.prototype))||b(L)&&(L=L[F])===null)&&(L=void 0),L===V||L===void 0))return M(ee,re,he);for(Y=new(L===void 0?V:L)(G(he-re,0)),z=0;re<he;re++,z++)re in ee&&A(Y,z,ee[re]);return Y.length=z,Y}})},6910:function(l,v,a){var h=a(6518),y=a(9504),g=a(9306),b=a(8981),w=a(6198),E=a(4606),S=a(655),A=a(9039),T=a(4488),O=a(4598),M=a(8834),D=a(3202),F=a(7388),V=a(9160),G=[],U=y(G.sort),R=y(G.push),L=A(function(){G.sort(void 0)}),Y=A(function(){G.sort(null)}),z=O("sort"),ee=!A(function(){if(F)return F<70;if(!(M&&M>3)){if(D)return!0;if(V)return V<603;var te,re,he,ue,ye="";for(te=65;te<76;te++){switch(re=String.fromCharCode(te),te){case 66:case 69:case 70:case 72:he=3;break;case 68:case 71:he=4;break;default:he=2}for(ue=0;ue<47;ue++)G.push({k:re+ue,v:he})}for(G.sort(function(pe,q){return q.v-pe.v}),ue=0;ue<G.length;ue++)re=G[ue].k.charAt(0),ye.charAt(ye.length-1)!==re&&(ye+=re);return ye!=="DGBEFHACIJK"}});h({target:"Array",proto:!0,forced:L||!Y||!z||!ee},{sort:function(te){te!==void 0&&g(te);var re=b(this);if(ee)return te===void 0?U(re):U(re,te);var he,ue,ye=[],pe=w(re);for(ue=0;ue<pe;ue++)ue in re&&R(ye,re[ue]);for(T(ye,function(q){return function($,Q){return Q===void 0?-1:$===void 0?1:q!==void 0?+q($,Q)||0:S($)>S(Q)?1:-1}}(te)),he=w(ye),ue=0;ue<he;)re[ue]=ye[ue++];for(;ue<pe;)E(re,ue++);return re}})},4554:function(l,v,a){var h=a(6518),y=a(8981),g=a(5610),b=a(1291),w=a(6198),E=a(4527),S=a(6837),A=a(1469),T=a(4659),O=a(4606),M=a(597)("splice"),D=Math.max,F=Math.min;h({target:"Array",proto:!0,forced:!M},{splice:function(V,G){var U,R,L,Y,z,ee,te=y(this),re=w(te),he=g(V,re),ue=arguments.length;for(ue===0?U=R=0:ue===1?(U=0,R=re-he):(U=ue-2,R=F(D(b(G),0),re-he)),S(re+U-R),L=A(te,R),Y=0;Y<R;Y++)(z=he+Y)in te&&T(L,Y,te[z]);if(L.length=R,U<R){for(Y=he;Y<re-R;Y++)ee=Y+U,(z=Y+R)in te?te[ee]=te[z]:O(te,ee);for(Y=re;Y>re-R+U;Y--)O(te,Y-1)}else if(U>R)for(Y=re-R;Y>he;Y--)ee=Y+U-1,(z=Y+R-1)in te?te[ee]=te[z]:O(te,ee);for(Y=0;Y<U;Y++)te[Y+he]=arguments[Y+2];return E(te,re-R+U),L}})},739:function(l,v,a){var h=a(6518),y=a(9039),g=a(8981),b=a(2777);h({target:"Date",proto:!0,arity:1,forced:y(function(){return new Date(NaN).toJSON()!==null||Date.prototype.toJSON.call({toISOString:function(){return 1}})!==1})},{toJSON:function(w){var E=g(this),S=b(E,"number");return typeof S!="number"||isFinite(S)?E.toISOString():null}})},9572:function(l,v,a){var h=a(9297),y=a(6840),g=a(3640),b=a(8227)("toPrimitive"),w=Date.prototype;h(w,b)||y(w,b,g)},2010:function(l,v,a){var h=a(3724),y=a(350).EXISTS,g=a(9504),b=a(2106),w=Function.prototype,E=g(w.toString),S=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,A=g(S.exec);h&&!y&&b(w,"name",{configurable:!0,get:function(){try{return A(S,E(this))[1]}catch{return""}}})},3110:function(l,v,a){var h=a(6518),y=a(7751),g=a(8745),b=a(9565),w=a(9504),E=a(9039),S=a(4901),A=a(757),T=a(7680),O=a(6933),M=a(4495),D=String,F=y("JSON","stringify"),V=w(/./.exec),G=w("".charAt),U=w("".charCodeAt),R=w("".replace),L=w(1 .toString),Y=/[\uD800-\uDFFF]/g,z=/^[\uD800-\uDBFF]$/,ee=/^[\uDC00-\uDFFF]$/,te=!M||E(function(){var ye=y("Symbol")("stringify detection");return F([ye])!=="[null]"||F({a:ye})!=="{}"||F(Object(ye))!=="{}"}),re=E(function(){return F("\uDF06\uD834")!=='"\\udf06\\ud834"'||F("\uDEAD")!=='"\\udead"'}),he=function(ye,pe){var q=T(arguments),$=O(pe);if(S($)||ye!==void 0&&!A(ye))return q[1]=function(Q,_){if(S($)&&(_=b($,this,D(Q),_)),!A(_))return _},g(F,null,q)},ue=function(ye,pe,q){var $=G(q,pe-1),Q=G(q,pe+1);return V(z,ye)&&!V(ee,Q)||V(ee,ye)&&!V(z,$)?"\\u"+L(U(ye,0),16):ye};F&&h({target:"JSON",stat:!0,arity:3,forced:te||re},{stringify:function(ye,pe,q){var $=T(arguments),Q=g(te?he:F,null,$);return re&&typeof Q=="string"?R(Q,Y,ue):Q}})},2892:function(l,v,a){var h=a(6518),y=a(6395),g=a(3724),b=a(4475),w=a(9167),E=a(9504),S=a(2796),A=a(9297),T=a(3167),O=a(1625),M=a(757),D=a(2777),F=a(9039),V=a(8480).f,G=a(7347).f,U=a(4913).f,R=a(1240),L=a(3802).trim,Y="Number",z=b[Y],ee=w[Y],te=z.prototype,re=b.TypeError,he=E("".slice),ue=E("".charCodeAt),ye=function(Q){var _,j,B,N,X,J,Z,W,fe=D(Q,"number");if(M(fe))throw new re("Cannot convert a Symbol value to a number");if(typeof fe=="string"&&fe.length>2){if(fe=L(fe),(_=ue(fe,0))===43||_===45){if((j=ue(fe,2))===88||j===120)return NaN}else if(_===48){switch(ue(fe,1)){case 66:case 98:B=2,N=49;break;case 79:case 111:B=8,N=55;break;default:return+fe}for(J=(X=he(fe,2)).length,Z=0;Z<J;Z++)if((W=ue(X,Z))<48||W>N)return NaN;return parseInt(X,B)}}return+fe},pe=S(Y,!z(" 0o1")||!z("0b1")||z("+0x1")),q=function(Q){var _,j=arguments.length<1?0:z(function(B){var N=D(B,"number");return typeof N=="bigint"?N:ye(N)}(Q));return O(te,_=this)&&F(function(){R(_)})?T(Object(j),this,q):j};q.prototype=te,pe&&!y&&(te.constructor=q),h({global:!0,constructor:!0,wrap:!0,forced:pe},{Number:q});var $=function(Q,_){for(var j,B=g?V(_):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),N=0;B.length>N;N++)A(_,j=B[N])&&!A(Q,j)&&U(Q,j,G(_,j))};y&&ee&&$(w[Y],ee),(pe||y)&&$(w[Y],z)},2637:function(l,v,a){a(6518)({target:"Number",stat:!0},{isInteger:a(2087)})},9085:function(l,v,a){var h=a(6518),y=a(4213);h({target:"Object",stat:!0,arity:2,forced:Object.assign!==y},{assign:y})},7427:function(l,v,a){var h=a(6518),y=a(3724),g=a(2551),b=a(9306),w=a(8981),E=a(4913);y&&h({target:"Object",proto:!0,forced:g},{__defineGetter__:function(S,A){E.f(w(this),S,{get:b(A),enumerable:!0,configurable:!0})}})},3851:function(l,v,a){var h=a(6518),y=a(9039),g=a(5397),b=a(7347).f,w=a(3724);h({target:"Object",stat:!0,forced:!w||y(function(){b(1)}),sham:!w},{getOwnPropertyDescriptor:function(E,S){return b(g(E),S)}})},1278:function(l,v,a){var h=a(6518),y=a(3724),g=a(5031),b=a(5397),w=a(7347),E=a(4659);h({target:"Object",stat:!0,sham:!y},{getOwnPropertyDescriptors:function(S){for(var A,T,O=b(S),M=w.f,D=g(O),F={},V=0;D.length>V;)(T=M(O,A=D[V++]))!==void 0&&E(F,A,T);return F}})},1480:function(l,v,a){var h=a(6518),y=a(9039),g=a(298).f;h({target:"Object",stat:!0,forced:y(function(){return!Object.getOwnPropertyNames(1)})},{getOwnPropertyNames:g})},9773:function(l,v,a){var h=a(6518),y=a(4495),g=a(9039),b=a(3717),w=a(8981);h({target:"Object",stat:!0,forced:!y||g(function(){b.f(1)})},{getOwnPropertySymbols:function(E){var S=b.f;return S?S(w(E)):[]}})},9432:function(l,v,a){var h=a(6518),y=a(8981),g=a(1072);h({target:"Object",stat:!0,forced:a(9039)(function(){g(1)})},{keys:function(b){return g(y(b))}})},6099:function(l,v,a){var h=a(2140),y=a(6840),g=a(3179);h||y(Object.prototype,"toString",g,{unsafe:!0})},4864:function(l,v,a){var h=a(3724),y=a(4475),g=a(9504),b=a(2796),w=a(3167),E=a(6699),S=a(2360),A=a(8480).f,T=a(1625),O=a(788),M=a(655),D=a(1034),F=a(8429),V=a(1056),G=a(6840),U=a(9039),R=a(9297),L=a(1181).enforce,Y=a(7633),z=a(8227),ee=a(3635),te=a(8814),re=z("match"),he=y.RegExp,ue=he.prototype,ye=y.SyntaxError,pe=g(ue.exec),q=g("".charAt),$=g("".replace),Q=g("".indexOf),_=g("".slice),j=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,B=/a/g,N=/a/g,X=new he(B)!==B,J=F.MISSED_STICKY,Z=F.UNSUPPORTED_Y;if(b("RegExp",h&&(!X||J||ee||te||U(function(){return N[re]=!1,he(B)!==B||he(N)===N||String(he(B,"i"))!=="/a/i"})))){for(var W=function(le,ie){var be,ae,Ce,_e,ze,it,yt=T(ue,this),ht=O(le),Xn=ie===void 0,lt=[],en=le;if(!yt&&ht&&Xn&&le.constructor===W)return le;if((ht||T(ue,le))&&(le=le.source,Xn&&(ie=D(en))),le=le===void 0?"":M(le),ie=ie===void 0?"":M(ie),en=le,ee&&"dotAll"in B&&(ae=!!ie&&Q(ie,"s")>-1)&&(ie=$(ie,/s/g,"")),be=ie,J&&"sticky"in B&&(Ce=!!ie&&Q(ie,"y")>-1)&&Z&&(ie=$(ie,/y/g,"")),te&&(_e=function(pt){for(var Oe,cn=pt.length,Mt=0,hn="",tn=[],pn=S(null),On=!1,qn=!1,xn=0,mn="";Mt<=cn;Mt++){if((Oe=q(pt,Mt))==="\\")Oe+=q(pt,++Mt);else if(Oe==="]")On=!1;else if(!On)switch(!0){case Oe==="[":On=!0;break;case Oe==="(":pe(j,_(pt,Mt+1))&&(Mt+=2,qn=!0),hn+=Oe,xn++;continue;case(Oe===">"&&qn):if(mn===""||R(pn,mn))throw new ye("Invalid capture group name");pn[mn]=!0,tn[tn.length]=[mn,xn],qn=!1,mn="";continue}qn?mn+=Oe:hn+=Oe}return[hn,tn]}(le),le=_e[0],lt=_e[1]),ze=w(he(le,ie),yt?this:ue,W),(ae||Ce||lt.length)&&(it=L(ze),ae&&(it.dotAll=!0,it.raw=W(function(pt){for(var Oe,cn=pt.length,Mt=0,hn="",tn=!1;Mt<=cn;Mt++)(Oe=q(pt,Mt))!=="\\"?tn||Oe!=="."?(Oe==="["?tn=!0:Oe==="]"&&(tn=!1),hn+=Oe):hn+="[\\s\\S]":hn+=Oe+q(pt,++Mt);return hn}(le),be)),Ce&&(it.sticky=!0),lt.length&&(it.groups=lt)),le!==en)try{E(ze,"source",en===""?"(?:)":en)}catch{}return ze},fe=A(he),ge=0;fe.length>ge;)V(W,he,fe[ge++]);ue.constructor=W,W.prototype=ue,G(y,"RegExp",W,{constructor:!0})}Y("RegExp")},7495:function(l,v,a){var h=a(6518),y=a(7323);h({target:"RegExp",proto:!0,forced:/./.exec!==y},{exec:y})},8781:function(l,v,a){var h=a(350).PROPER,y=a(6840),g=a(8551),b=a(655),w=a(9039),E=a(1034),S="toString",A=RegExp.prototype,T=A[S],O=w(function(){return T.call({source:"a",flags:"b"})!=="/a/b"}),M=h&&T.name!==S;(O||M)&&y(A,S,function(){var D=g(this);return"/"+b(D.source)+"/"+b(E(D))},{unsafe:!0})},1699:function(l,v,a){var h=a(6518),y=a(9504),g=a(5749),b=a(7750),w=a(655),E=a(1436),S=y("".indexOf);h({target:"String",proto:!0,forced:!E("includes")},{includes:function(A){return!!~S(w(b(this)),w(g(A)),arguments.length>1?arguments[1]:void 0)}})},7764:function(l,v,a){var h=a(8183).charAt,y=a(655),g=a(1181),b=a(1088),w=a(2529),E="String Iterator",S=g.set,A=g.getterFor(E);b(String,"String",function(T){S(this,{type:E,string:y(T),index:0})},function(){var T,O=A(this),M=O.string,D=O.index;return D>=M.length?w(void 0,!0):(T=h(M,D),O.index+=T.length,w(T,!1))})},8543:function(l,v,a){var h=a(6518),y=a(9565),g=a(7476),b=a(3994),w=a(2529),E=a(7750),S=a(8014),A=a(655),T=a(8551),O=a(4117),M=a(4576),D=a(788),F=a(1034),V=a(5966),G=a(6840),U=a(9039),R=a(8227),L=a(2293),Y=a(7829),z=a(6682),ee=a(1181),te=a(6395),re=R("matchAll"),he="RegExp String",ue=he+" Iterator",ye=ee.set,pe=ee.getterFor(ue),q=RegExp.prototype,$=TypeError,Q=g("".indexOf),_=g("".matchAll),j=!!_&&!U(function(){_("a",/./)}),B=b(function(X,J,Z,W){ye(this,{type:ue,regexp:X,string:J,global:Z,unicode:W,done:!1})},he,function(){var X=pe(this);if(X.done)return w(void 0,!0);var J=X.regexp,Z=X.string,W=z(J,Z);return W===null?(X.done=!0,w(void 0,!0)):X.global?(A(W[0])===""&&(J.lastIndex=Y(Z,S(J.lastIndex),X.unicode)),w(W,!1)):(X.done=!0,w(W,!1))}),N=function(X){var J,Z,W,fe=T(this),ge=A(X),le=L(fe,RegExp),ie=A(F(fe));return J=new le(le===RegExp?fe.source:fe,ie),Z=!!~Q(ie,"g"),W=!!~Q(ie,"u"),J.lastIndex=S(fe.lastIndex),new B(J,ge,Z,W)};h({target:"String",proto:!0,forced:j},{matchAll:function(X){var J,Z,W,fe,ge=E(this);if(O(X)){if(j)return _(ge,X)}else{if(D(X)&&(J=A(E(F(X))),!~Q(J,"g")))throw new $("`.matchAll` does not allow non-global regexes");if(j)return _(ge,X);if((W=V(X,re))===void 0&&te&&M(X)==="RegExp"&&(W=N),W)return y(W,X,ge)}return Z=A(ge),fe=new RegExp(X,"g"),te?y(N,fe,Z):fe[re](Z)}}),te||re in q||G(q,re,N)},1761:function(l,v,a){var h=a(9565),y=a(9228),g=a(8551),b=a(4117),w=a(8014),E=a(655),S=a(7750),A=a(5966),T=a(7829),O=a(6682);y("match",function(M,D,F){return[function(V){var G=S(this),U=b(V)?void 0:A(V,M);return U?h(U,V,G):new RegExp(V)[M](E(G))},function(V){var G=g(this),U=E(V),R=F(D,G,U);if(R.done)return R.value;if(!G.global)return O(G,U);var L=G.unicode;G.lastIndex=0;for(var Y,z=[],ee=0;(Y=O(G,U))!==null;){var te=E(Y[0]);z[ee]=te,te===""&&(G.lastIndex=T(U,w(G.lastIndex),L)),ee++}return ee===0?null:z}]})},5440:function(l,v,a){var h=a(8745),y=a(9565),g=a(9504),b=a(9228),w=a(9039),E=a(8551),S=a(4901),A=a(4117),T=a(1291),O=a(8014),M=a(655),D=a(7750),F=a(7829),V=a(5966),G=a(2478),U=a(6682),R=a(8227)("replace"),L=Math.max,Y=Math.min,z=g([].concat),ee=g([].push),te=g("".indexOf),re=g("".slice),he="a".replace(/./,"$0")==="$0",ue=!!/./[R]&&/./[R]("a","$0")==="";b("replace",function(ye,pe,q){var $=ue?"$":"$0";return[function(Q,_){var j=D(this),B=A(Q)?void 0:V(Q,R);return B?y(B,Q,j,_):y(pe,M(j),Q,_)},function(Q,_){var j=E(this),B=M(Q);if(typeof _=="string"&&te(_,$)===-1&&te(_,"$<")===-1){var N=q(pe,j,B,_);if(N.done)return N.value}var X=S(_);X||(_=M(_));var J,Z=j.global;Z&&(J=j.unicode,j.lastIndex=0);for(var W,fe=[];(W=U(j,B))!==null&&(ee(fe,W),Z);)M(W[0])===""&&(j.lastIndex=F(B,O(j.lastIndex),J));for(var ge,le="",ie=0,be=0;be<fe.length;be++){for(var ae,Ce=M((W=fe[be])[0]),_e=L(Y(T(W.index),B.length),0),ze=[],it=1;it<W.length;it++)ee(ze,(ge=W[it])===void 0?ge:String(ge));var yt=W.groups;if(X){var ht=z([Ce],ze,_e,B);yt!==void 0&&ee(ht,yt),ae=M(h(_,void 0,ht))}else ae=G(Ce,B,_e,ze,yt,_);_e>=ie&&(le+=re(B,ie,_e)+ae,ie=_e+Ce.length)}return le+re(B,ie)}]},!!w(function(){var ye=/./;return ye.exec=function(){var pe=[];return pe.groups={a:"7"},pe},"".replace(ye,"$<a>")!=="7"})||!he||ue)},744:function(l,v,a){var h=a(9565),y=a(9504),g=a(9228),b=a(8551),w=a(4117),E=a(7750),S=a(2293),A=a(7829),T=a(8014),O=a(655),M=a(5966),D=a(6682),F=a(8429),V=a(9039),G=F.UNSUPPORTED_Y,U=Math.min,R=y([].push),L=y("".slice),Y=!V(function(){var ee=/(?:)/,te=ee.exec;ee.exec=function(){return te.apply(this,arguments)};var re="ab".split(ee);return re.length!==2||re[0]!=="a"||re[1]!=="b"}),z="abbc".split(/(b)*/)[1]==="c"||"test".split(/(?:)/,-1).length!==4||"ab".split(/(?:ab)*/).length!==2||".".split(/(.?)(.?)/).length!==4||".".split(/()()/).length>1||"".split(/.?/).length;g("split",function(ee,te,re){var he="0".split(void 0,0).length?function(ue,ye){return ue===void 0&&ye===0?[]:h(te,this,ue,ye)}:te;return[function(ue,ye){var pe=E(this),q=w(ue)?void 0:M(ue,ee);return q?h(q,ue,pe,ye):h(he,O(pe),ue,ye)},function(ue,ye){var pe=b(this),q=O(ue);if(!z){var $=re(he,pe,q,ye,he!==te);if($.done)return $.value}var Q=S(pe,RegExp),_=pe.unicode,j=(pe.ignoreCase?"i":"")+(pe.multiline?"m":"")+(pe.unicode?"u":"")+(G?"g":"y"),B=new Q(G?"^(?:"+pe.source+")":pe,j),N=ye===void 0?4294967295:ye>>>0;if(N===0)return[];if(q.length===0)return D(B,q)===null?[q]:[];for(var X=0,J=0,Z=[];J<q.length;){B.lastIndex=G?0:J;var W,fe=D(B,G?L(q,J):q);if(fe===null||(W=U(T(B.lastIndex+(G?J:0)),q.length))===X)J=A(q,J,_);else{if(R(Z,L(q,X,J)),Z.length===N)return Z;for(var ge=1;ge<=fe.length-1;ge++)if(R(Z,fe[ge]),Z.length===N)return Z;J=X=W}}return R(Z,L(q,X)),Z}]},z||!Y,G)},2762:function(l,v,a){var h=a(6518),y=a(3802).trim;h({target:"String",proto:!0,forced:a(706)("trim")},{trim:function(){return y(this)}})},6761:function(l,v,a){var h=a(6518),y=a(4475),g=a(9565),b=a(9504),w=a(6395),E=a(3724),S=a(4495),A=a(9039),T=a(9297),O=a(1625),M=a(8551),D=a(5397),F=a(6969),V=a(655),G=a(6980),U=a(2360),R=a(1072),L=a(8480),Y=a(298),z=a(3717),ee=a(7347),te=a(4913),re=a(6801),he=a(8773),ue=a(6840),ye=a(2106),pe=a(5745),q=a(6119),$=a(421),Q=a(3392),_=a(8227),j=a(1951),B=a(511),N=a(8242),X=a(687),J=a(1181),Z=a(9213).forEach,W=q("hidden"),fe="Symbol",ge="prototype",le=J.set,ie=J.getterFor(fe),be=Object[ge],ae=y.Symbol,Ce=ae&&ae[ge],_e=y.RangeError,ze=y.TypeError,it=y.QObject,yt=ee.f,ht=te.f,Xn=Y.f,lt=he.f,en=b([].push),pt=pe("symbols"),Oe=pe("op-symbols"),cn=pe("wks"),Mt=!it||!it[ge]||!it[ge].findChild,hn=function(Ae,Qe,De){var Ye=yt(be,Qe);Ye&&delete be[Qe],ht(Ae,Qe,De),Ye&&Ae!==be&&ht(be,Qe,Ye)},tn=E&&A(function(){return U(ht({},"a",{get:function(){return ht(this,"a",{value:7}).a}})).a!==7})?hn:ht,pn=function(Ae,Qe){var De=pt[Ae]=U(Ce);return le(De,{type:fe,tag:Ae,description:Qe}),E||(De.description=Qe),De},On=function(Ae,Qe,De){Ae===be&&On(Oe,Qe,De),M(Ae);var Ye=F(Qe);return M(De),T(pt,Ye)?(De.enumerable?(T(Ae,W)&&Ae[W][Ye]&&(Ae[W][Ye]=!1),De=U(De,{enumerable:G(0,!1)})):(T(Ae,W)||ht(Ae,W,G(1,U(null))),Ae[W][Ye]=!0),tn(Ae,Ye,De)):ht(Ae,Ye,De)},qn=function(Ae,Qe){M(Ae);var De=D(Qe),Ye=R(De).concat(er(De));return Z(Ye,function(It){E&&!g(xn,De,It)||On(Ae,It,De[It])}),Ae},xn=function(Ae){var Qe=F(Ae),De=g(lt,this,Qe);return!(this===be&&T(pt,Qe)&&!T(Oe,Qe))&&(!(De||!T(this,Qe)||!T(pt,Qe)||T(this,W)&&this[W][Qe])||De)},mn=function(Ae,Qe){var De=D(Ae),Ye=F(Qe);if(De!==be||!T(pt,Ye)||T(Oe,Ye)){var It=yt(De,Ye);return!It||!T(pt,Ye)||T(De,W)&&De[W][Ye]||(It.enumerable=!0),It}},_t=function(Ae){var Qe=Xn(D(Ae)),De=[];return Z(Qe,function(Ye){T(pt,Ye)||T($,Ye)||en(De,Ye)}),De},er=function(Ae){var Qe=Ae===be,De=Xn(Qe?Oe:D(Ae)),Ye=[];return Z(De,function(It){!T(pt,It)||Qe&&!T(be,It)||en(Ye,pt[It])}),Ye};S||(ae=function(){if(O(Ce,this))throw new ze("Symbol is not a constructor");var Ae=arguments.length&&arguments[0]!==void 0?V(arguments[0]):void 0,Qe=Q(Ae),De=function(Ye){var It=this===void 0?y:this;It===be&&g(De,Oe,Ye),T(It,W)&&T(It[W],Qe)&&(It[W][Qe]=!1);var Ps=G(1,Ye);try{tn(It,Qe,Ps)}catch(wi){if(!(wi instanceof _e))throw wi;hn(It,Qe,Ps)}};return E&&Mt&&tn(be,Qe,{configurable:!0,set:De}),pn(Qe,Ae)},ue(Ce=ae[ge],"toString",function(){return ie(this).tag}),ue(ae,"withoutSetter",function(Ae){return pn(Q(Ae),Ae)}),he.f=xn,te.f=On,re.f=qn,ee.f=mn,L.f=Y.f=_t,z.f=er,j.f=function(Ae){return pn(_(Ae),Ae)},E&&(ye(Ce,"description",{configurable:!0,get:function(){return ie(this).description}}),w||ue(be,"propertyIsEnumerable",xn,{unsafe:!0}))),h({global:!0,constructor:!0,wrap:!0,forced:!S,sham:!S},{Symbol:ae}),Z(R(cn),function(Ae){B(Ae)}),h({target:fe,stat:!0,forced:!S},{useSetter:function(){Mt=!0},useSimple:function(){Mt=!1}}),h({target:"Object",stat:!0,forced:!S,sham:!E},{create:function(Ae,Qe){return Qe===void 0?U(Ae):qn(U(Ae),Qe)},defineProperty:On,defineProperties:qn,getOwnPropertyDescriptor:mn}),h({target:"Object",stat:!0,forced:!S},{getOwnPropertyNames:_t}),N(),X(ae,fe),$[W]=!0},9463:function(l,v,a){var h=a(6518),y=a(3724),g=a(4475),b=a(9504),w=a(9297),E=a(4901),S=a(1625),A=a(655),T=a(2106),O=a(7740),M=g.Symbol,D=M&&M.prototype;if(y&&E(M)&&(!("description"in D)||M().description!==void 0)){var F={},V=function(){var ee=arguments.length<1||arguments[0]===void 0?void 0:A(arguments[0]),te=S(D,this)?new M(ee):ee===void 0?M():M(ee);return ee===""&&(F[te]=!0),te};O(V,M),V.prototype=D,D.constructor=V;var G=String(M("description detection"))==="Symbol(description detection)",U=b(D.valueOf),R=b(D.toString),L=/^Symbol\((.*)\)[^)]+$/,Y=b("".replace),z=b("".slice);T(D,"description",{configurable:!0,get:function(){var ee=U(this);if(w(F,ee))return"";var te=R(ee),re=G?z(te,7,-1):Y(te,L,"$1");return re===""?void 0:re}}),h({global:!0,constructor:!0,forced:!0},{Symbol:V})}},1510:function(l,v,a){var h=a(6518),y=a(7751),g=a(9297),b=a(655),w=a(5745),E=a(1296),S=w("string-to-symbol-registry"),A=w("symbol-to-string-registry");h({target:"Symbol",stat:!0,forced:!E},{for:function(T){var O=b(T);if(g(S,O))return S[O];var M=y("Symbol")(O);return S[O]=M,A[M]=O,M}})},2259:function(l,v,a){a(511)("iterator")},2675:function(l,v,a){a(6761),a(1510),a(7812),a(3110),a(9773)},7812:function(l,v,a){var h=a(6518),y=a(9297),g=a(757),b=a(6823),w=a(5745),E=a(1296),S=w("symbol-to-string-registry");h({target:"Symbol",stat:!0,forced:!E},{keyFor:function(A){if(!g(A))throw new TypeError(b(A)+" is not a symbol");if(y(S,A))return S[A]}})},5700:function(l,v,a){var h=a(511),y=a(8242);h("toPrimitive"),y()},8344:function(l,v,a){a(8543)},3500:function(l,v,a){var h=a(4475),y=a(7400),g=a(9296),b=a(235),w=a(6699),E=function(A){if(A&&A.forEach!==b)try{w(A,"forEach",b)}catch{A.forEach=b}};for(var S in y)y[S]&&E(h[S]&&h[S].prototype);E(g)},2953:function(l,v,a){var h=a(4475),y=a(7400),g=a(9296),b=a(3792),w=a(6699),E=a(687),S=a(8227)("iterator"),A=b.values,T=function(M,D){if(M){if(M[S]!==A)try{w(M,S,A)}catch{M[S]=A}if(E(M,D,!0),y[D]){for(var F in b)if(M[F]!==b[F])try{w(M,F,b[F])}catch{M[F]=b[F]}}}};for(var O in y)T(h[O]&&h[O].prototype,O);T(g,"DOMTokenList")}},d={};function f(l){var v=d[l];if(v!==void 0)return v.exports;var a=d[l]={exports:{}};return u[l].call(a.exports,a,a.exports,f),a.exports}f.d=function(l,v){for(var a in v)f.o(v,a)&&!f.o(l,a)&&Object.defineProperty(l,a,{enumerable:!0,get:v[a]})},f.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch{if(typeof window=="object")return window}}(),f.o=function(l,v){return Object.prototype.hasOwnProperty.call(l,v)},f.r=function(l){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(l,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(l,"__esModule",{value:!0})};var p={};return function(){function l(q){return function($){if(Array.isArray($))return a($)}(q)||function($){if(typeof Symbol<"u"&&$[Symbol.iterator]!=null||$["@@iterator"]!=null)return Array.from($)}(q)||v(q)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
136
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function v(q,$){if(q){if(typeof q=="string")return a(q,$);var Q=Object.prototype.toString.call(q).slice(8,-1);return Q==="Object"&&q.constructor&&(Q=q.constructor.name),Q==="Map"||Q==="Set"?Array.from(q):Q==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Q)?a(q,$):void 0}}function a(q,$){($==null||$>q.length)&&($=q.length);for(var Q=0,_=new Array($);Q<$;Q++)_[Q]=q[Q];return _}function h(q){return h=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function($){return typeof $}:function($){return $&&typeof Symbol=="function"&&$.constructor===Symbol&&$!==Symbol.prototype?"symbol":typeof $},h(q)}function y(q,$){for(var Q=0;Q<$.length;Q++){var _=$[Q];_.enumerable=_.enumerable||!1,_.configurable=!0,"value"in _&&(_.writable=!0),Object.defineProperty(q,b(_.key),_)}}function g(q,$,Q){return($=b($))in q?Object.defineProperty(q,$,{value:Q,enumerable:!0,configurable:!0,writable:!0}):q[$]=Q,q}function b(q){var $=function(Q,_){if(h(Q)!="object"||!Q)return Q;var j=Q[Symbol.toPrimitive];if(j!==void 0){var B=j.call(Q,_||"default");if(h(B)!="object")return B;throw new TypeError("@@toPrimitive must return a primitive value.")}return(_==="string"?String:Number)(Q)}(q,"string");return h($)=="symbol"?$:$+""}f.r(p),f.d(p,{SimpleKeyboard:function(){return ye},default:function(){return pe}}),f(5276),f(8598),f(4782),f(4554),f(2010),f(7427),f(6099),f(7495),f(8781),f(5440),f(744),f(2762),typeof Element>"u"||"remove"in Element.prototype||(Element.prototype.remove=function(){this.parentNode&&this.parentNode.removeChild(this)}),typeof self<"u"&&"document"in self&&((!("classList"in document.createElement("_"))||document.createElementNS&&!("classList"in document.createElementNS("http://www.w3.org/2000/svg","g")))&&function(q){if("Element"in q){var $="classList",Q="prototype",_=q.Element[Q],j=Object,B=String[Q].trim||function(){return this.replace(/^\s+|\s+$/g,"")},N=Array[Q].indexOf||function(le){for(var ie=0,be=this.length;ie<be;ie++)if(ie in this&&this[ie]===le)return ie;return-1},X=function(le,ie){this.name=le,this.code=DOMException[le],this.message=ie},J=function(le,ie){if(ie==="")throw new X("SYNTAX_ERR","The token must not be empty.");if(/\s/.test(ie))throw new X("INVALID_CHARACTER_ERR","The token must not contain space characters.");return N.call(le,ie)},Z=function(le){for(var ie=B.call(le.getAttribute("class")||""),be=ie?ie.split(/\s+/):[],ae=0,Ce=be.length;ae<Ce;ae++)this.push(be[ae]);this._updateClassName=function(){le.setAttribute("class",this.toString())}},W=Z[Q]=[],fe=function(){return new Z(this)};if(X[Q]=Error[Q],W.item=function(le){return this[le]||null},W.contains=function(le){return~J(this,le+"")},W.add=function(){var le,ie=arguments,be=0,ae=ie.length,Ce=!1;do~J(this,le=ie[be]+"")||(this.push(le),Ce=!0);while(++be<ae);Ce&&this._updateClassName()},W.remove=function(){var le,ie,be=arguments,ae=0,Ce=be.length,_e=!1;do for(ie=J(this,le=be[ae]+"");~ie;)this.splice(ie,1),_e=!0,ie=J(this,le);while(++ae<Ce);_e&&this._updateClassName()},W.toggle=function(le,ie){var be=this.contains(le),ae=be?ie!==!0&&"remove":ie!==!1&&"add";return ae&&this[ae](le),ie===!0||ie===!1?ie:!be},W.replace=function(le,ie){var be=J(le+"");~be&&(this.splice(be,1,ie),this._updateClassName())},W.toString=function(){return this.join(" ")},j.defineProperty){var ge={get:fe,enumerable:!0,configurable:!0};try{j.defineProperty(_,$,ge)}catch(le){le.number!==void 0&&le.number!==-2146823252||(ge.enumerable=!1,j.defineProperty(_,$,ge))}}else j[Q].__defineGetter__&&_.__defineGetter__($,fe)}}(self),function(){var q=document.createElement("_");if(q.classList.add("c1","c2"),!q.classList.contains("c2")){var $=function(_){var j=DOMTokenList.prototype[_];DOMTokenList.prototype[_]=function(B){var N,X=arguments.length;for(N=0;N<X;N++)B=arguments[N],j.call(this,B)}};$("add"),$("remove")}if(q.classList.toggle("c3",!1),q.classList.contains("c3")){var Q=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(_,j){return 1 in arguments&&!this.contains(_)==!j?j:Q.call(this,_)}}"replace"in document.createElement("_").classList||(DOMTokenList.prototype.replace=function(_,j){var B=this.toString().split(" "),N=B.indexOf(_+"");~N&&(B=B.slice(N),this.remove.apply(this,B),this.add(j),this.add.apply(this,B.slice(1)))}),q=null}()),f(2675),f(9463),f(2259),f(5700),f(8706),f(2008),f(3418),f(4423),f(3792),f(2062),f(6910),f(739),f(9572),f(2892),f(9085),f(3851),f(1278),f(9432),f(4864),f(1699),f(7764),f(8344),f(3500),f(2953),f(2712),f(2637),f(1480),f(1761);var w=function(){return q=function _(j){var B=j.getOptions,N=j.getCaretPosition,X=j.getCaretPositionEnd,J=j.dispatch;(function(Z,W){if(!(Z instanceof W))throw new TypeError("Cannot call a class as a function")})(this,_),g(this,"getOptions",void 0),g(this,"getCaretPosition",void 0),g(this,"getCaretPositionEnd",void 0),g(this,"dispatch",void 0),g(this,"maxLengthReached",void 0),g(this,"isStandardButton",function(Z){return Z&&!(Z[0]==="{"&&Z[Z.length-1]==="}")}),this.getOptions=B,this.getCaretPosition=N,this.getCaretPositionEnd=X,this.dispatch=J,_.bindMethods(_,this)},$=[{key:"getButtonType",value:function(_){return _.includes("{")&&_.includes("}")&&_!=="{//}"?"functionBtn":"standardBtn"}},{key:"getButtonClass",value:function(_){var j=this.getButtonType(_),B=_.replace("{","").replace("}",""),N="";return j!=="standardBtn"&&(N=" hg-button-".concat(B)),"hg-".concat(j).concat(N)}},{key:"getDefaultDiplay",value:function(){return{"{bksp}":"backspace","{backspace}":"backspace","{enter}":"< enter","{shift}":"shift","{shiftleft}":"shift","{shiftright}":"shift","{alt}":"alt","{s}":"shift","{tab}":"tab","{lock}":"caps","{capslock}":"caps","{accept}":"Submit","{space}":" ","{//}":" ","{esc}":"esc","{escape}":"esc","{f1}":"f1","{f2}":"f2","{f3}":"f3","{f4}":"f4","{f5}":"f5","{f6}":"f6","{f7}":"f7","{f8}":"f8","{f9}":"f9","{f10}":"f10","{f11}":"f11","{f12}":"f12","{numpaddivide}":"/","{numlock}":"lock","{arrowup}":"↑","{arrowleft}":"←","{arrowdown}":"↓","{arrowright}":"→","{prtscr}":"print","{scrolllock}":"scroll","{pause}":"pause","{insert}":"ins","{home}":"home","{pageup}":"up","{delete}":"del","{forwarddelete}":"del","{end}":"end","{pagedown}":"down","{numpadmultiply}":"*","{numpadsubtract}":"-","{numpadadd}":"+","{numpadenter}":"enter","{period}":".","{numpaddecimal}":".","{numpad0}":"0","{numpad1}":"1","{numpad2}":"2","{numpad3}":"3","{numpad4}":"4","{numpad5}":"5","{numpad6}":"6","{numpad7}":"7","{numpad8}":"8","{numpad9}":"9"}}},{key:"getButtonDisplayName",value:function(_,j){return(j=arguments.length>2&&arguments[2]!==void 0&&arguments[2]?Object.assign({},this.getDefaultDiplay(),j):j||this.getDefaultDiplay())[_]||_}},{key:"getUpdatedInput",value:function(_,j,B){var N=arguments.length>3&&arguments[3]!==void 0?arguments[3]:B,X=arguments.length>4&&arguments[4]!==void 0&&arguments[4],J=this.getOptions(),Z=[B,N,X],W=j;return(_==="{bksp}"||_==="{backspace}")&&W.length>0?W=this.removeAt.apply(this,[W].concat(Z)):(_==="{delete}"||_==="{forwarddelete}")&&W.length>0?W=this.removeForwardsAt.apply(this,[W].concat(Z)):_==="{space}"?W=this.addStringAt.apply(this,[W," "].concat(Z)):_!=="{tab}"||typeof J.tabCharOnTab=="boolean"&&J.tabCharOnTab===!1?_!=="{enter}"&&_!=="{numpadenter}"||!J.newLineOnEnter?_.includes("numpad")&&Number.isInteger(Number(_[_.length-2]))?W=this.addStringAt.apply(this,[W,_[_.length-2]].concat(Z)):_==="{numpaddivide}"?W=this.addStringAt.apply(this,[W,"/"].concat(Z)):_==="{numpadmultiply}"?W=this.addStringAt.apply(this,[W,"*"].concat(Z)):_==="{numpadsubtract}"?W=this.addStringAt.apply(this,[W,"-"].concat(Z)):_==="{numpadadd}"?W=this.addStringAt.apply(this,[W,"+"].concat(Z)):_==="{numpaddecimal}"?W=this.addStringAt.apply(this,[W,"."].concat(Z)):_==="{"||_==="}"?W=this.addStringAt.apply(this,[W,_].concat(Z)):_.includes("{")||_.includes("}")||(W=this.addStringAt.apply(this,[W,_].concat(Z))):W=this.addStringAt.apply(this,[W,`
137
+ `].concat(Z)):W=this.addStringAt.apply(this,[W," "].concat(Z)),J.debug&&console.log("Input will be: "+W),W}},{key:"updateCaretPos",value:function(_){var j=arguments.length>1&&arguments[1]!==void 0&&arguments[1],B=this.updateCaretPosAction(_,j);this.dispatch(function(N){N.setCaretPosition(B)})}},{key:"updateCaretPosAction",value:function(_){var j=arguments.length>1&&arguments[1]!==void 0&&arguments[1],B=this.getOptions(),N=this.getCaretPosition();return N!=null&&(j?N>0&&(N-=_):N+=_),B.debug&&console.log("Caret at:",N),N}},{key:"addStringAt",value:function(_,j){var B,N=arguments.length>2&&arguments[2]!==void 0?arguments[2]:_.length,X=arguments.length>3&&arguments[3]!==void 0?arguments[3]:_.length,J=arguments.length>4&&arguments[4]!==void 0&&arguments[4];return N||N===0?(B=[_.slice(0,N),j,_.slice(X)].join(""),this.isMaxLengthReached()||J&&this.updateCaretPos(j.length)):B=_+j,B}},{key:"removeAt",value:function(_){var j,B=arguments.length>1&&arguments[1]!==void 0?arguments[1]:_.length,N=arguments.length>2&&arguments[2]!==void 0?arguments[2]:_.length,X=arguments.length>3&&arguments[3]!==void 0&&arguments[3];if(B===0&&N===0)return _;if(B===N){var J=/([\uD800-\uDBFF][\uDC00-\uDFFF])/g;B&&B>=0?_.substring(B-2,B).match(J)?(j=_.substr(0,B-2)+_.substr(B),X&&this.updateCaretPos(2,!0)):(j=_.substr(0,B-1)+_.substr(B),X&&this.updateCaretPos(1,!0)):_.slice(-2).match(J)?(j=_.slice(0,-2),X&&this.updateCaretPos(2,!0)):(j=_.slice(0,-1),X&&this.updateCaretPos(1,!0))}else j=_.slice(0,B)+_.slice(N),X&&this.dispatch(function(Z){Z.setCaretPosition(B)});return j}},{key:"removeForwardsAt",value:function(_){var j,B=arguments.length>1&&arguments[1]!==void 0?arguments[1]:_.length,N=arguments.length>2&&arguments[2]!==void 0?arguments[2]:_.length,X=arguments.length>3&&arguments[3]!==void 0&&arguments[3];return _!=null&&_.length&&B!==null?(B===N?j=_.substring(B,B+2).match(/([\uD800-\uDBFF][\uDC00-\uDFFF])/g)?_.substr(0,B)+_.substr(B+2):_.substr(0,B)+_.substr(B+1):(j=_.slice(0,B)+_.slice(N),X&&this.dispatch(function(J){J.setCaretPosition(B)})),j):_}},{key:"handleMaxLength",value:function(_,j){var B=this.getOptions(),N=B.maxLength,X=_[B.inputName||"default"],J=j.length-1>=N;if(j.length<=X.length)return!1;if(Number.isInteger(N))return B.debug&&console.log("maxLength (num) reached:",J),J?(this.maxLengthReached=!0,!0):(this.maxLengthReached=!1,!1);if(h(N)==="object"){var Z=j.length-1>=N[B.inputName||"default"];return B.debug&&console.log("maxLength (obj) reached:",Z),Z?(this.maxLengthReached=!0,!0):(this.maxLengthReached=!1,!1)}}},{key:"isMaxLengthReached",value:function(){return!!this.maxLengthReached}},{key:"isTouchDevice",value:function(){return"ontouchstart"in window||navigator.maxTouchPoints}},{key:"pointerEventsSupported",value:function(){return!!window.PointerEvent}},{key:"camelCase",value:function(_){return _?_.toLowerCase().trim().split(/[.\-_\s]/g).reduce(function(j,B){return B.length?j+B[0].toUpperCase()+B.slice(1):j}):""}},{key:"chunkArray",value:function(_,j){return l(Array(Math.ceil(_.length/j))).map(function(B,N){return _.slice(j*N,j+j*N)})}},{key:"escapeRegex",value:function(_){return _.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}},{key:"getRtlOffset",value:function(_,j){var B=_,N=j.indexOf("‫");return N<_&&N!=-1&&B--,j.indexOf("‬")<_&&N!=-1&&B--,B<0?0:B}}],Q=[{key:"bindMethods",value:function(_,j){var B,N=function(J,Z){var W=typeof Symbol<"u"&&J[Symbol.iterator]||J["@@iterator"];if(!W){if(Array.isArray(J)||(W=v(J))||Z){W&&(J=W);var fe=0,ge=function(){};return{s:ge,n:function(){return fe>=J.length?{done:!0}:{done:!1,value:J[fe++]}},e:function(ae){throw ae},f:ge}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
138
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var le,ie=!0,be=!1;return{s:function(){W=W.call(J)},n:function(){var ae=W.next();return ie=ae.done,ae},e:function(ae){be=!0,le=ae},f:function(){try{ie||W.return==null||W.return()}finally{if(be)throw le}}}}(Object.getOwnPropertyNames(_.prototype));try{for(N.s();!(B=N.n()).done;){var X=B.value;X==="constructor"||X==="bindMethods"||(j[X]=j[X].bind(j))}}catch(J){N.e(J)}finally{N.f()}}}],$&&y(q.prototype,$),Q&&y(q,Q),Object.defineProperty(q,"prototype",{writable:!1}),q;var q,$,Q}();g(w,"noop",function(){});var E=w;function S(q){return S=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function($){return typeof $}:function($){return $&&typeof Symbol=="function"&&$.constructor===Symbol&&$!==Symbol.prototype?"symbol":typeof $},S(q)}function A(q,$){for(var Q=0;Q<$.length;Q++){var _=$[Q];_.enumerable=_.enumerable||!1,_.configurable=!0,"value"in _&&(_.writable=!0),Object.defineProperty(q,O(_.key),_)}}function T(q,$,Q){return($=O($))in q?Object.defineProperty(q,$,{value:Q,enumerable:!0,configurable:!0,writable:!0}):q[$]=Q,q}function O(q){var $=function(Q,_){if(S(Q)!="object"||!Q)return Q;var j=Q[Symbol.toPrimitive];if(j!==void 0){var B=j.call(Q,_);if(S(B)!="object")return B;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(Q)}(q,"string");return S($)=="symbol"?$:$+""}var M=function(){return q=function _(j){var B=this,N=j.dispatch,X=j.getOptions;(function(J,Z){if(!(J instanceof Z))throw new TypeError("Cannot call a class as a function")})(this,_),T(this,"getOptions",void 0),T(this,"dispatch",void 0),T(this,"isModifierKey",function(J){return J.altKey||J.ctrlKey||J.shiftKey||["Tab","CapsLock","Esc","ArrowUp","ArrowDown","ArrowLeft","ArrowRight"].includes(J.code||J.key||B.keyCodeToKey(J==null?void 0:J.keyCode))}),this.dispatch=N,this.getOptions=X,E.bindMethods(_,this)},($=[{key:"handleHighlightKeyDown",value:function(_){var j=this.getOptions();j.physicalKeyboardHighlightPreventDefault&&this.isModifierKey(_)&&(_.preventDefault(),_.stopImmediatePropagation());var B=this.getSimpleKeyboardLayoutKey(_);this.dispatch(function(N){var X,J,Z=N.getButtonElement(B),W=N.getButtonElement("{".concat(B,"}"));if(Z)X=Z,J=B;else{if(!W)return;X=W,J="{".concat(B,"}")}var fe,ge,le,ie,be=function(Ce){Ce.style.background=j.physicalKeyboardHighlightBgColor||"#dadce4",Ce.style.color=j.physicalKeyboardHighlightTextColor||"black"};if(X)if(Array.isArray(X)){if(X.forEach(function(Ce){return be(Ce)}),j.physicalKeyboardHighlightPress)if(j.physicalKeyboardHighlightPressUsePointerEvents)(fe=X[0])===null||fe===void 0||(ge=fe.onpointerdown)===null||ge===void 0||ge.call(fe,_);else if(j.physicalKeyboardHighlightPressUseClick){var ae;(ae=X[0])===null||ae===void 0||ae.click()}else N.handleButtonClicked(J,_)}else be(X),j.physicalKeyboardHighlightPress&&(j.physicalKeyboardHighlightPressUsePointerEvents?(le=X)===null||le===void 0||(ie=le.onpointerdown)===null||ie===void 0||ie.call(le,_):j.physicalKeyboardHighlightPressUseClick?X.click():N.handleButtonClicked(J,_))})}},{key:"handleHighlightKeyUp",value:function(_){var j=this.getOptions();j.physicalKeyboardHighlightPreventDefault&&this.isModifierKey(_)&&(_.preventDefault(),_.stopImmediatePropagation());var B=this.getSimpleKeyboardLayoutKey(_);this.dispatch(function(N){var X,J,Z,W=N.getButtonElement(B)||N.getButtonElement("{".concat(B,"}")),fe=function(ge){ge.removeAttribute&&ge.removeAttribute("style")};W&&(Array.isArray(W)?(W.forEach(function(ge){return fe(ge)}),j.physicalKeyboardHighlightPressUsePointerEvents&&((X=W[0])===null||X===void 0||(J=X.onpointerup)===null||J===void 0||J.call(X,_))):(fe(W),j.physicalKeyboardHighlightPressUsePointerEvents&&(W==null||(Z=W.onpointerup)===null||Z===void 0||Z.call(W,_))))})}},{key:"getSimpleKeyboardLayoutKey",value:function(_){var j,B="",N=_.code||_.key||this.keyCodeToKey(_==null?void 0:_.keyCode);return(B=N!=null&&N.includes("Numpad")||N!=null&&N.includes("Shift")||N!=null&&N.includes("Space")||N!=null&&N.includes("Backspace")||N!=null&&N.includes("Control")||N!=null&&N.includes("Alt")||N!=null&&N.includes("Meta")?_.code||"":_.key||this.keyCodeToKey(_==null?void 0:_.keyCode)||"").length>1?(j=B)===null||j===void 0?void 0:j.toLowerCase():B}},{key:"keyCodeToKey",value:function(_){return{8:"Backspace",9:"Tab",13:"Enter",16:"Shift",17:"Ctrl",18:"Alt",19:"Pause",20:"CapsLock",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",48:"0",49:"1",50:"2",51:"3",52:"4",53:"5",54:"6",55:"7",56:"8",57:"9",65:"A",66:"B",67:"C",68:"D",69:"E",70:"F",71:"G",72:"H",73:"I",74:"J",75:"K",76:"L",77:"M",78:"N",79:"O",80:"P",81:"Q",82:"R",83:"S",84:"T",85:"U",86:"V",87:"W",88:"X",89:"Y",90:"Z",91:"Meta",96:"Numpad0",97:"Numpad1",98:"Numpad2",99:"Numpad3",100:"Numpad4",101:"Numpad5",102:"Numpad6",103:"Numpad7",104:"Numpad8",105:"Numpad9",106:"NumpadMultiply",107:"NumpadAdd",109:"NumpadSubtract",110:"NumpadDecimal",111:"NumpadDivide",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"}[_]||""}}])&&A(q.prototype,$),Q&&A(q,Q),Object.defineProperty(q,"prototype",{writable:!1}),q;var q,$,Q}();function D(q){return D=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function($){return typeof $}:function($){return $&&typeof Symbol=="function"&&$.constructor===Symbol&&$!==Symbol.prototype?"symbol":typeof $},D(q)}function F(q,$){for(var Q=0;Q<$.length;Q++){var _=$[Q];_.enumerable=_.enumerable||!1,_.configurable=!0,"value"in _&&(_.writable=!0),Object.defineProperty(q,G(_.key),_)}}function V(q,$,Q){return($=G($))in q?Object.defineProperty(q,$,{value:Q,enumerable:!0,configurable:!0,writable:!0}):q[$]=Q,q}function G(q){var $=function(Q,_){if(D(Q)!="object"||!Q)return Q;var j=Q[Symbol.toPrimitive];if(j!==void 0){var B=j.call(Q,_);if(D(B)!="object")return B;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(Q)}(q,"string");return D($)=="symbol"?$:$+""}var U=function(){return q=function _(j){var B=j.utilities,N=j.options;(function(X,J){if(!(X instanceof J))throw new TypeError("Cannot call a class as a function")})(this,_),V(this,"utilities",void 0),V(this,"options",void 0),V(this,"candidateBoxElement",void 0),V(this,"pageIndex",0),V(this,"pageSize",void 0),this.utilities=B,this.options=N,E.bindMethods(_,this),this.pageSize=this.utilities.getOptions().layoutCandidatesPageSize||5},$=[{key:"destroy",value:function(){this.candidateBoxElement&&(this.candidateBoxElement.remove(),this.pageIndex=0)}},{key:"show",value:function(_){var j=this,B=_.candidateValue,N=_.targetElement,X=_.onSelect;if(B&&B.length){var J=this.utilities.chunkArray(B.split(" "),this.pageSize);this.renderPage({candidateListPages:J,targetElement:N,pageIndex:this.pageIndex,nbPages:J.length,onItemSelected:function(Z,W){X(Z,W),j.destroy()}})}}},{key:"renderPage",value:function(_){var j,B=this,N=_.candidateListPages,X=_.targetElement,J=_.pageIndex,Z=_.nbPages,W=_.onItemSelected;(j=this.candidateBoxElement)===null||j===void 0||j.remove(),this.candidateBoxElement=document.createElement("div"),this.candidateBoxElement.className="hg-candidate-box";var fe=document.createElement("ul");fe.className="hg-candidate-box-list",N[J].forEach(function(_e){var ze,it=document.createElement("li"),yt=function(){var ht=new(B.options.useTouchEvents?TouchEvent:MouseEvent)("click");return Object.defineProperty(ht,"target",{value:it}),ht};it.className="hg-candidate-box-list-item",it.innerHTML=((ze=B.options.display)===null||ze===void 0?void 0:ze[_e])||_e,B.options.useTouchEvents?it.ontouchstart=function(ht){return W(_e,ht||yt())}:it.onclick=function(){var ht=arguments.length>0&&arguments[0]!==void 0?arguments[0]:yt();return W(_e,ht)},fe.appendChild(it)});var ge=J>0,le=document.createElement("div");le.classList.add("hg-candidate-box-prev"),ge&&le.classList.add("hg-candidate-box-btn-active");var ie=function(){ge&&B.renderPage({candidateListPages:N,targetElement:X,pageIndex:J-1,nbPages:Z,onItemSelected:W})};this.options.useTouchEvents?le.ontouchstart=ie:le.onclick=ie,this.candidateBoxElement.appendChild(le),this.candidateBoxElement.appendChild(fe);var be=J<Z-1,ae=document.createElement("div");ae.classList.add("hg-candidate-box-next"),be&&ae.classList.add("hg-candidate-box-btn-active");var Ce=function(){be&&B.renderPage({candidateListPages:N,targetElement:X,pageIndex:J+1,nbPages:Z,onItemSelected:W})};this.options.useTouchEvents?ae.ontouchstart=Ce:ae.onclick=Ce,this.candidateBoxElement.appendChild(ae),X.prepend(this.candidateBoxElement)}}],$&&F(q.prototype,$),Q&&F(q,Q),Object.defineProperty(q,"prototype",{writable:!1}),q;var q,$,Q}(),R=U;function L(q){return function($){if(Array.isArray($))return Y($)}(q)||function($){if(typeof Symbol<"u"&&$[Symbol.iterator]!=null||$["@@iterator"]!=null)return Array.from($)}(q)||function($,Q){if($){if(typeof $=="string")return Y($,Q);var _=Object.prototype.toString.call($).slice(8,-1);return _==="Object"&&$.constructor&&(_=$.constructor.name),_==="Map"||_==="Set"?Array.from($):_==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(_)?Y($,Q):void 0}}(q)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
139
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function Y(q,$){($==null||$>q.length)&&($=q.length);for(var Q=0,_=new Array($);Q<$;Q++)_[Q]=q[Q];return _}function z(q){return z=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function($){return typeof $}:function($){return $&&typeof Symbol=="function"&&$.constructor===Symbol&&$!==Symbol.prototype?"symbol":typeof $},z(q)}function ee(q,$){var Q=Object.keys(q);if(Object.getOwnPropertySymbols){var _=Object.getOwnPropertySymbols(q);$&&(_=_.filter(function(j){return Object.getOwnPropertyDescriptor(q,j).enumerable})),Q.push.apply(Q,_)}return Q}function te(q,$){for(var Q=0;Q<$.length;Q++){var _=$[Q];_.enumerable=_.enumerable||!1,_.configurable=!0,"value"in _&&(_.writable=!0),Object.defineProperty(q,he(_.key),_)}}function re(q,$,Q){return($=he($))in q?Object.defineProperty(q,$,{value:Q,enumerable:!0,configurable:!0,writable:!0}):q[$]=Q,q}function he(q){var $=function(Q,_){if(z(Q)!="object"||!Q)return Q;var j=Q[Symbol.toPrimitive];if(j!==void 0){var B=j.call(Q,_);if(z(B)!="object")return B;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(Q)}(q,"string");return z($)=="symbol"?$:$+""}var ue=function(){return q=function _(j,B){var N=this;if(function(ie,be){if(!(ie instanceof be))throw new TypeError("Cannot call a class as a function")}(this,_),re(this,"input",void 0),re(this,"options",void 0),re(this,"utilities",void 0),re(this,"caretPosition",void 0),re(this,"caretPositionEnd",void 0),re(this,"keyboardDOM",void 0),re(this,"keyboardPluginClasses",void 0),re(this,"keyboardDOMClass",void 0),re(this,"buttonElements",void 0),re(this,"currentInstanceName",void 0),re(this,"allKeyboardInstances",void 0),re(this,"keyboardInstanceNames",void 0),re(this,"isFirstKeyboardInstance",void 0),re(this,"physicalKeyboard",void 0),re(this,"modules",void 0),re(this,"activeButtonClass",void 0),re(this,"holdInteractionTimeout",void 0),re(this,"holdTimeout",void 0),re(this,"isMouseHold",void 0),re(this,"initialized",void 0),re(this,"candidateBox",void 0),re(this,"keyboardRowsDOM",void 0),re(this,"defaultName","default"),re(this,"activeInputElement",null),re(this,"handleParams",function(ie,be){var ae,Ce,_e;if(typeof ie=="string")ae=ie.split(".").join(""),Ce=document.querySelector(".".concat(ae)),_e=be;else if(ie instanceof HTMLDivElement){if(!ie.className)throw console.warn("Any DOM element passed as parameter must have a class."),new Error("KEYBOARD_DOM_CLASS_ERROR");ae=ie.className.split(" ")[0],Ce=ie,_e=be}else ae="simple-keyboard",Ce=document.querySelector(".".concat(ae)),_e=ie;return{keyboardDOMClass:ae,keyboardDOM:Ce,options:_e}}),re(this,"getOptions",function(){return N.options}),re(this,"getCaretPosition",function(){return N.caretPosition}),re(this,"getCaretPositionEnd",function(){return N.caretPositionEnd}),re(this,"registerModule",function(ie,be){N.modules[ie]||(N.modules[ie]={}),be(N.modules[ie])}),re(this,"getKeyboardClassString",function(){for(var ie=arguments.length,be=new Array(ie),ae=0;ae<ie;ae++)be[ae]=arguments[ae];return[N.keyboardDOMClass].concat(be).filter(function(Ce){return!!Ce}).join(" ")}),typeof window<"u"){var X=this.handleParams(j,B),J=X.keyboardDOMClass,Z=X.keyboardDOM,W=X.options,fe=W===void 0?{}:W;this.utilities=new E({getOptions:this.getOptions,getCaretPosition:this.getCaretPosition,getCaretPositionEnd:this.getCaretPositionEnd,dispatch:this.dispatch}),this.caretPosition=null,this.caretPositionEnd=null,this.keyboardDOM=Z,this.options=function(ie){for(var be=1;be<arguments.length;be++){var ae=arguments[be]!=null?arguments[be]:{};be%2?ee(Object(ae),!0).forEach(function(Ce){re(ie,Ce,ae[Ce])}):Object.getOwnPropertyDescriptors?Object.defineProperties(ie,Object.getOwnPropertyDescriptors(ae)):ee(Object(ae)).forEach(function(Ce){Object.defineProperty(ie,Ce,Object.getOwnPropertyDescriptor(ae,Ce))})}return ie}({layoutName:"default",theme:"hg-theme-default",inputName:"default",preventMouseDownDefault:!1,enableLayoutCandidates:!0,excludeFromLayout:{}},fe),this.keyboardPluginClasses="",E.bindMethods(_,this);var ge=this.options.inputName,le=ge===void 0?this.defaultName:ge;if(this.input={},this.input[le]="",this.keyboardDOMClass=J,this.buttonElements={},window.SimpleKeyboardInstances||(window.SimpleKeyboardInstances={}),this.currentInstanceName=this.utilities.camelCase(this.keyboardDOMClass),window.SimpleKeyboardInstances[this.currentInstanceName]=this,this.allKeyboardInstances=window.SimpleKeyboardInstances,this.keyboardInstanceNames=Object.keys(window.SimpleKeyboardInstances),this.isFirstKeyboardInstance=this.keyboardInstanceNames[0]===this.currentInstanceName,this.physicalKeyboard=new M({dispatch:this.dispatch,getOptions:this.getOptions}),this.candidateBox=this.options.enableLayoutCandidates?new R({utilities:this.utilities,options:this.options}):null,!this.keyboardDOM)throw console.warn('".'.concat(J,'" was not found in the DOM.')),new Error("KEYBOARD_DOM_ERROR");this.render(),this.modules={},this.loadModules()}},$=[{key:"setCaretPosition",value:function(_){var j=arguments.length>1&&arguments[1]!==void 0?arguments[1]:_;this.caretPosition=_,this.caretPositionEnd=j}},{key:"getInputCandidates",value:function(_){var j=this,B=this.options,N=B.layoutCandidates,X=B.layoutCandidatesCaseSensitiveMatch;if(!N||z(N)!=="object")return{};var J=Object.keys(N).filter(function(fe){var ge=_.substring(0,j.getCaretPositionEnd()||0)||_,le=new RegExp("".concat(j.utilities.escapeRegex(fe),"$"),X?"g":"gi");return!!L(ge.matchAll(le)).length});if(J.length>1){var Z=J.sort(function(fe,ge){return ge.length-fe.length})[0];return{candidateKey:Z,candidateValue:N[Z]}}if(J.length){var W=J[0];return{candidateKey:W,candidateValue:N[W]}}return{}}},{key:"showCandidatesBox",value:function(_,j,B){var N=this;this.candidateBox&&this.candidateBox.show({candidateValue:j,targetElement:B,onSelect:function(X,J){var Z=N.options,W=Z.layoutCandidatesCaseSensitiveMatch,fe=Z.disableCandidateNormalization,ge=Z.enableLayoutCandidatesKeyPress,le=X;fe||(le=X.normalize("NFD")),typeof N.options.beforeInputUpdate=="function"&&N.options.beforeInputUpdate(N);var ie=N.getInput(N.options.inputName,!0),be=N.getCaretPositionEnd()||0,ae=ie.substring(0,be||0)||ie,Ce=new RegExp("".concat(N.utilities.escapeRegex(_),"$"),W?"g":"gi"),_e=ae.replace(Ce,le),ze=ie.replace(ae,_e),it=_e.length-ae.length,yt=(be||ie.length)+it;yt<0&&(yt=0),N.setInput(ze,N.options.inputName,!0),N.setCaretPosition(yt),ge&&typeof N.options.onKeyPress=="function"&&N.options.onKeyPress(X,J),typeof N.options.onChange=="function"&&N.options.onChange(N.getInput(N.options.inputName,!0),J),typeof N.options.onChangeAll=="function"&&N.options.onChangeAll(N.getAllInputs(),J)}})}},{key:"handleButtonClicked",value:function(_,j){var B=this.options,N=B.inputName,X=N===void 0?this.defaultName:N,J=B.debug;if(_!=="{//}"){this.input[X]||(this.input[X]=""),typeof this.options.beforeInputUpdate=="function"&&this.options.beforeInputUpdate(this);var Z=this.utilities.getUpdatedInput(_,this.input[X],this.caretPosition,this.caretPositionEnd);if(this.utilities.isStandardButton(_)&&this.activeInputElement&&this.input[X]&&this.input[X]===Z&&this.caretPosition===0&&this.caretPositionEnd===Z.length)return this.setInput("",this.options.inputName,!0),this.setCaretPosition(0),this.activeInputElement.value="",this.activeInputElement.setSelectionRange(0,0),void this.handleButtonClicked(_,j);if(typeof this.options.onKeyPress=="function"&&this.options.onKeyPress(_,j),this.input[X]!==Z&&(!this.options.inputPattern||this.options.inputPattern&&this.inputPatternIsValid(Z))){if(this.options.maxLength&&this.utilities.handleMaxLength(this.input,Z))return;var W=this.utilities.getUpdatedInput(_,this.input[X],this.caretPosition,this.caretPositionEnd,!0);if(this.setInput(W,this.options.inputName,!0),J&&console.log("Input changed:",this.getAllInputs()),this.options.debug&&console.log("Caret at: ",this.getCaretPosition(),this.getCaretPositionEnd(),"(".concat(this.keyboardDOMClass,")"),j==null?void 0:j.type),this.options.syncInstanceInputs&&this.syncInstanceInputs(),typeof this.options.onChange=="function"&&this.options.onChange(this.getInput(this.options.inputName,!0),j),typeof this.options.onChangeAll=="function"&&this.options.onChangeAll(this.getAllInputs(),j),j!=null&&j.target&&this.options.enableLayoutCandidates){var fe,ge=this.getInputCandidates(Z),le=ge.candidateKey,ie=ge.candidateValue;le&&ie?this.showCandidatesBox(le,ie,this.keyboardDOM):(fe=this.candidateBox)===null||fe===void 0||fe.destroy()}}this.caretPositionEnd&&this.caretPosition!==this.caretPositionEnd&&(this.setCaretPosition(this.caretPositionEnd,this.caretPositionEnd),this.activeInputElement&&this.activeInputElement.setSelectionRange(this.caretPositionEnd,this.caretPositionEnd),this.options.debug&&console.log("Caret position aligned",this.caretPosition)),J&&console.log("Key pressed:",_)}}},{key:"getMouseHold",value:function(){return this.isMouseHold}},{key:"setMouseHold",value:function(_){this.options.syncInstanceInputs?this.dispatch(function(j){j.isMouseHold=_}):this.isMouseHold=_}},{key:"handleButtonMouseDown",value:function(_,j){var B=this;j&&(this.options.preventMouseDownDefault&&j.preventDefault(),this.options.stopMouseDownPropagation&&j.stopPropagation(),j.target.classList.add(this.activeButtonClass)),this.holdInteractionTimeout&&clearTimeout(this.holdInteractionTimeout),this.holdTimeout&&clearTimeout(this.holdTimeout),this.setMouseHold(!0),this.options.disableButtonHold||(this.holdTimeout=window.setTimeout(function(){(B.getMouseHold()&&(!_.includes("{")&&!_.includes("}")||_==="{delete}"||_==="{backspace}"||_==="{bksp}"||_==="{space}"||_==="{tab}")||_==="{arrowright}"||_==="{arrowleft}"||_==="{arrowup}"||_==="{arrowdown}")&&(B.options.debug&&console.log("Button held:",_),B.handleButtonHold(_)),clearTimeout(B.holdTimeout)},500))}},{key:"handleButtonMouseUp",value:function(_,j){var B=this;j&&(this.options.preventMouseUpDefault&&j.preventDefault&&j.preventDefault(),this.options.stopMouseUpPropagation&&j.stopPropagation&&j.stopPropagation(),!(j.target===this.keyboardDOM||j.target&&this.keyboardDOM.contains(j.target)||this.candidateBox&&this.candidateBox.candidateBoxElement&&(j.target===this.candidateBox.candidateBoxElement||j.target&&this.candidateBox.candidateBoxElement.contains(j.target)))&&this.candidateBox&&this.candidateBox.destroy()),this.recurseButtons(function(N){N.classList.remove(B.activeButtonClass)}),this.setMouseHold(!1),this.holdInteractionTimeout&&clearTimeout(this.holdInteractionTimeout),_&&typeof this.options.onKeyReleased=="function"&&this.options.onKeyReleased(_,j)}},{key:"handleKeyboardContainerMouseDown",value:function(_){this.options.preventMouseDownDefault&&_.preventDefault()}},{key:"handleButtonHold",value:function(_){var j=this;this.holdInteractionTimeout&&clearTimeout(this.holdInteractionTimeout),this.holdInteractionTimeout=window.setTimeout(function(){j.getMouseHold()?(j.handleButtonClicked(_),j.handleButtonHold(_)):clearTimeout(j.holdInteractionTimeout)},100)}},{key:"syncInstanceInputs",value:function(){var _=this;this.dispatch(function(j){j.replaceInput(_.input),j.setCaretPosition(_.caretPosition,_.caretPositionEnd)})}},{key:"clearInput",value:function(){var _=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.options.inputName||this.defaultName;this.input[_]="",this.setCaretPosition(0),this.options.syncInstanceInputs&&this.syncInstanceInputs()}},{key:"getInput",value:function(){var _=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.options.inputName||this.defaultName,j=arguments.length>1&&arguments[1]!==void 0&&arguments[1];return this.options.syncInstanceInputs&&!j&&this.syncInstanceInputs(),this.options.rtl?"‫"+this.input[_].replace("‫","").replace("‬","")+"‬":this.input[_]}},{key:"getAllInputs",value:function(){var _=this,j={};return Object.keys(this.input).forEach(function(B){j[B]=_.getInput(B,!0)}),j}},{key:"setInput",value:function(_){var j=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.options.inputName||this.defaultName,B=arguments.length>2?arguments[2]:void 0;this.input[j]=_,!B&&this.options.syncInstanceInputs&&this.syncInstanceInputs()}},{key:"replaceInput",value:function(_){this.input=_}},{key:"setOptions",value:function(){var _=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},j=this.changedOptions(_);this.options=Object.assign(this.options,_),j.length&&(this.options.debug&&console.log("changedOptions",j),this.onSetOptions(j),this.render())}},{key:"changedOptions",value:function(_){var j=this;return Object.keys(_).filter(function(B){return JSON.stringify(_[B])!==JSON.stringify(j.options[B])})}},{key:"onSetOptions",value:function(){var _=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];_.includes("layoutName")&&this.candidateBox&&this.candidateBox.destroy(),(_.includes("layoutCandidatesPageSize")||_.includes("layoutCandidates"))&&this.candidateBox&&(this.candidateBox.destroy(),this.candidateBox=new R({utilities:this.utilities,options:this.options}))}},{key:"resetRows",value:function(){this.keyboardRowsDOM&&this.keyboardRowsDOM.remove(),this.keyboardDOM.className=this.keyboardDOMClass,this.keyboardDOM.setAttribute("data-skInstance",this.currentInstanceName),this.buttonElements={}}},{key:"dispatch",value:function(_){if(!window.SimpleKeyboardInstances)throw console.warn("SimpleKeyboardInstances is not defined. Dispatch cannot be called."),new Error("INSTANCES_VAR_ERROR");return Object.keys(window.SimpleKeyboardInstances).forEach(function(j){_(window.SimpleKeyboardInstances[j],j)})}},{key:"addButtonTheme",value:function(_,j){var B=this;j&&_&&(_.split(" ").forEach(function(N){j.split(" ").forEach(function(X){B.options.buttonTheme||(B.options.buttonTheme=[]);var J=!1;B.options.buttonTheme.map(function(Z){if(Z!=null&&Z.class.split(" ").includes(X)){J=!0;var W=Z.buttons.split(" ");W.includes(N)||(J=!0,W.push(N),Z.buttons=W.join(" "))}return Z}),J||B.options.buttonTheme.push({class:X,buttons:_})})}),this.render())}},{key:"removeButtonTheme",value:function(_,j){var B=this;if(!_&&!j)return this.options.buttonTheme=[],void this.render();_&&Array.isArray(this.options.buttonTheme)&&this.options.buttonTheme.length&&(_.split(" ").forEach(function(N){var X;(X=B.options)===null||X===void 0||(X=X.buttonTheme)===null||X===void 0||X.map(function(J,Z){if(J&&j&&j.includes(J.class)||!j){var W,fe,ge=(W=J)===null||W===void 0?void 0:W.buttons.split(" ").filter(function(le){return le!==N});J&&ge!=null&&ge.length?J.buttons=ge.join(" "):((fe=B.options.buttonTheme)===null||fe===void 0||fe.splice(Z,1),J=null)}return J})}),this.render())}},{key:"getButtonElement",value:function(_){var j,B=this.buttonElements[_];return B&&(j=B.length>1?B:B[0]),j}},{key:"inputPatternIsValid",value:function(_){var j,B=this.options.inputPattern;if((j=B instanceof RegExp?B:B[this.options.inputName||this.defaultName])&&_){var N=j.test(_);return this.options.debug&&console.log('inputPattern ("'.concat(j,'"): ').concat(N?"passed":"did not pass!")),N}return!0}},{key:"setEventListeners",value:function(){if(this.isFirstKeyboardInstance||!this.allKeyboardInstances){this.options.debug&&console.log("Caret handling started (".concat(this.keyboardDOMClass,")"));var _=this.options.physicalKeyboardHighlightPreventDefault,j=_!==void 0&&_;document.addEventListener("keyup",this.handleKeyUp,j),document.addEventListener("keydown",this.handleKeyDown,j),document.addEventListener("mouseup",this.handleMouseUp),document.addEventListener("touchend",this.handleTouchEnd),document.addEventListener("selectionchange",this.handleSelectionChange),document.addEventListener("select",this.handleSelect)}}},{key:"handleKeyUp",value:function(_){this.caretEventHandler(_),this.options.physicalKeyboardHighlight&&this.physicalKeyboard.handleHighlightKeyUp(_)}},{key:"handleKeyDown",value:function(_){this.options.physicalKeyboardHighlight&&this.physicalKeyboard.handleHighlightKeyDown(_)}},{key:"handleMouseUp",value:function(_){this.caretEventHandler(_)}},{key:"handleTouchEnd",value:function(_){this.caretEventHandler(_)}},{key:"handleSelect",value:function(_){this.caretEventHandler(_)}},{key:"handleSelectionChange",value:function(_){navigator.userAgent.includes("Firefox")||this.caretEventHandler(_)}},{key:"caretEventHandler",value:function(_){var j,B=this;_.target.tagName&&(j=_.target.tagName.toLowerCase()),this.dispatch(function(N){var X=_.target===N.keyboardDOM||_.target&&N.keyboardDOM.contains(_.target);if(B.options.syncInstanceInputs&&Array.isArray(_.path)&&(X=_.path.some(function(W){var fe;return W==null||(fe=W.hasAttribute)===null||fe===void 0?void 0:fe.call(W,"data-skInstance")})),(j==="textarea"||j==="input"&&["text","search","url","tel","password"].includes(_.target.type))&&!N.options.disableCaretPositioning){var J=_.target.selectionStart,Z=_.target.selectionEnd;N.options.rtl&&(J=N.utilities.getRtlOffset(J,N.getInput()),Z=N.utilities.getRtlOffset(Z,N.getInput())),N.setCaretPosition(J,Z),B.activeInputElement=_.target,N.options.debug&&console.log("Caret at: ",N.getCaretPosition(),N.getCaretPositionEnd(),_&&_.target.tagName.toLowerCase(),"(".concat(N.keyboardDOMClass,")"),_==null?void 0:_.type)}else!N.options.disableCaretPositioning&&X||(_==null?void 0:_.type)==="selectionchange"||(N.setCaretPosition(null),B.activeInputElement=null,N.options.debug&&console.log('Caret position reset due to "'.concat(_==null?void 0:_.type,'" event'),_))})}},{key:"recurseButtons",value:function(_){var j=this;_&&Object.keys(this.buttonElements).forEach(function(B){return j.buttonElements[B].forEach(_)})}},{key:"destroy",value:function(){this.options.debug&&console.log("Destroying simple-keyboard instance: ".concat(this.currentInstanceName));var _=this.options.physicalKeyboardHighlightPreventDefault,j=_!==void 0&&_;document.removeEventListener("keyup",this.handleKeyUp,j),document.removeEventListener("keydown",this.handleKeyDown,j),document.removeEventListener("mouseup",this.handleMouseUp),document.removeEventListener("touchend",this.handleTouchEnd),document.removeEventListener("select",this.handleSelect),document.removeEventListener("selectionchange",this.handleSelectionChange),document.onpointerup=null,document.ontouchend=null,document.ontouchcancel=null,document.onmouseup=null,this.recurseButtons(function(B){B&&(B.onpointerdown=null,B.onpointerup=null,B.onpointercancel=null,B.ontouchstart=null,B.ontouchend=null,B.ontouchcancel=null,B.onclick=null,B.onmousedown=null,B.onmouseup=null,B.remove(),B=null)}),this.keyboardDOM.onpointerdown=null,this.keyboardDOM.ontouchstart=null,this.keyboardDOM.onmousedown=null,this.resetRows(),this.candidateBox&&(this.candidateBox.destroy(),this.candidateBox=null),this.activeInputElement=null,this.keyboardDOM.removeAttribute("data-skInstance"),this.keyboardDOM.innerHTML="",window.SimpleKeyboardInstances[this.currentInstanceName]=null,delete window.SimpleKeyboardInstances[this.currentInstanceName],this.initialized=!1}},{key:"getButtonThemeClasses",value:function(_){var j=this.options.buttonTheme,B=[];return Array.isArray(j)&&j.forEach(function(N){if(N&&N.class&&typeof N.class=="string"&&N.buttons&&typeof N.buttons=="string"){var X=N.class.split(" ");N.buttons.split(" ").includes(_)&&(B=[].concat(L(B),L(X)))}else console.warn('Incorrect "buttonTheme". Please check the documentation.',N)}),B}},{key:"setDOMButtonAttributes",value:function(_,j){var B=this.options.buttonAttributes;Array.isArray(B)&&B.forEach(function(N){N.attribute&&typeof N.attribute=="string"&&N.value&&typeof N.value=="string"&&N.buttons&&typeof N.buttons=="string"?N.buttons.split(" ").includes(_)&&j(N.attribute,N.value):console.warn('Incorrect "buttonAttributes". Please check the documentation.',N)})}},{key:"onTouchDeviceDetected",value:function(){this.processAutoTouchEvents(),this.disableContextualWindow()}},{key:"disableContextualWindow",value:function(){window.oncontextmenu=function(_){if(_.target.classList.contains("hg-button"))return _.preventDefault(),_.stopPropagation(),!1}}},{key:"processAutoTouchEvents",value:function(){this.options.autoUseTouchEvents&&(this.options.useTouchEvents=!0,this.options.debug&&console.log("autoUseTouchEvents: Touch device detected, useTouchEvents enabled."))}},{key:"onInit",value:function(){this.options.debug&&console.log("".concat(this.keyboardDOMClass," Initialized")),this.setEventListeners(),typeof this.options.onInit=="function"&&this.options.onInit(this)}},{key:"beforeFirstRender",value:function(){this.utilities.isTouchDevice()&&this.onTouchDeviceDetected(),typeof this.options.beforeFirstRender=="function"&&this.options.beforeFirstRender(this),this.isFirstKeyboardInstance&&this.utilities.pointerEventsSupported()&&!this.options.useTouchEvents&&!this.options.useMouseEvents&&this.options.debug&&console.log("Using PointerEvents as it is supported by this browser"),this.options.useTouchEvents&&this.options.debug&&console.log("useTouchEvents has been enabled. Only touch events will be used.")}},{key:"beforeRender",value:function(){typeof this.options.beforeRender=="function"&&this.options.beforeRender(this)}},{key:"onRender",value:function(){typeof this.options.onRender=="function"&&this.options.onRender(this)}},{key:"onModulesLoaded",value:function(){typeof this.options.onModulesLoaded=="function"&&this.options.onModulesLoaded(this)}},{key:"loadModules",value:function(){var _=this;Array.isArray(this.options.modules)&&(this.options.modules.forEach(function(j){var B=new j(_);B.init&&B.init(_)}),this.keyboardPluginClasses="modules-loaded",this.render(),this.onModulesLoaded())}},{key:"getModuleProp",value:function(_,j){return!!this.modules[_]&&this.modules[_][j]}},{key:"getModulesList",value:function(){return Object.keys(this.modules)}},{key:"parseRowDOMContainers",value:function(_,j,B,N){var X=this,J=Array.from(_.children),Z=0;return J.length&&B.forEach(function(W,fe){var ge=N[fe];if(!(ge&&ge>W))return!1;var le=W-Z,ie=ge-Z,be=document.createElement("div");be.className+="hg-button-container";var ae="".concat(X.options.layoutName,"-r").concat(j,"c").concat(fe);be.setAttribute("data-skUID",ae);var Ce=J.splice(le,ie-le+1);Z=ie-le,Ce.forEach(function(_e){return be.appendChild(_e)}),J.splice(le,0,be),_.innerHTML="",J.forEach(function(_e){return _.appendChild(_e)}),X.options.debug&&console.log("rowDOMContainer",Ce,le,ie,Z+1)}),_}},{key:"render",value:function(){var _=this;this.resetRows(),this.initialized||this.beforeFirstRender(),this.beforeRender();var j="hg-layout-".concat(this.options.layoutName),B=this.options.layout||{default:["` 1 2 3 4 5 6 7 8 9 0 - = {bksp}","{tab} q w e r t y u i o p [ ] \\","{lock} a s d f g h j k l ; ' {enter}","{shift} z x c v b n m , . / {shift}",".com @ {space}"],shift:["~ ! @ # $ % ^ & * ( ) _ + {bksp}","{tab} Q W E R T Y U I O P { } |",'{lock} A S D F G H J K L : " {enter}',"{shift} Z X C V B N M < > ? {shift}",".com @ {space}"]},N=this.options.useTouchEvents||!1,X=N?"hg-touch-events":"",J=this.options.useMouseEvents||!1,Z=this.options.disableRowButtonContainers;this.keyboardDOM.className=this.getKeyboardClassString(this.options.theme,j,this.keyboardPluginClasses,X),this.keyboardDOM.setAttribute("data-skInstance",this.currentInstanceName),this.keyboardRowsDOM=document.createElement("div"),this.keyboardRowsDOM.className="hg-rows",B[this.options.layoutName||this.defaultName].forEach(function(W,fe){var ge=W.split(" ");_.options.excludeFromLayout&&_.options.excludeFromLayout[_.options.layoutName||_.defaultName]&&(ge=ge.filter(function(ae){return _.options.excludeFromLayout&&!_.options.excludeFromLayout[_.options.layoutName||_.defaultName].includes(ae)}));var le=document.createElement("div");le.className+="hg-row";var ie=[],be=[];ge.forEach(function(ae,Ce){var _e,ze=!Z&&typeof ae=="string"&&ae.length>1&&ae.indexOf("[")===0,it=!Z&&typeof ae=="string"&&ae.length>1&&ae.indexOf("]")===ae.length-1;ze&&(ie.push(Ce),ae=ae.replace(/\[/g,"")),it&&(be.push(Ce),ae=ae.replace(/\]/g,""));var yt=_.utilities.getButtonClass(ae),ht=_.utilities.getButtonDisplayName(ae,_.options.display,_.options.mergeDisplay),Xn=_.options.useButtonTag?"button":"div",lt=document.createElement(Xn);lt.className+="hg-button ".concat(yt),(_e=lt.classList).add.apply(_e,L(_.getButtonThemeClasses(ae))),_.setDOMButtonAttributes(ae,function(Oe,cn){lt.setAttribute(Oe,cn)}),_.activeButtonClass="hg-activeButton",!_.utilities.pointerEventsSupported()||N||J?N?(lt.ontouchstart=function(Oe){_.handleButtonClicked(ae,Oe),_.handleButtonMouseDown(ae,Oe)},lt.ontouchend=function(Oe){_.handleButtonMouseUp(ae,Oe)},lt.ontouchcancel=function(Oe){_.handleButtonMouseUp(ae,Oe)}):(lt.onclick=function(Oe){_.setMouseHold(!1),typeof _.options.onKeyReleased!="function"&&_.handleButtonClicked(ae,Oe)},lt.onmousedown=function(Oe){typeof _.options.onKeyReleased!="function"||_.isMouseHold||_.handleButtonClicked(ae,Oe),_.handleButtonMouseDown(ae,Oe)},lt.onmouseup=function(Oe){_.handleButtonMouseUp(ae,Oe)}):(lt.onpointerdown=function(Oe){_.handleButtonClicked(ae,Oe),_.handleButtonMouseDown(ae,Oe)},lt.onpointerup=function(Oe){_.handleButtonMouseUp(ae,Oe)},lt.onpointercancel=function(Oe){_.handleButtonMouseUp(ae,Oe)}),lt.setAttribute("data-skBtn",ae);var en="".concat(_.options.layoutName,"-r").concat(fe,"b").concat(Ce);lt.setAttribute("data-skBtnUID",en);var pt=document.createElement("span");pt.innerHTML=ht,lt.appendChild(pt),_.buttonElements[ae]||(_.buttonElements[ae]=[]),_.buttonElements[ae].push(lt),le.appendChild(lt)}),le=_.parseRowDOMContainers(le,fe,ie,be),_.keyboardRowsDOM.appendChild(le)}),this.keyboardDOM.appendChild(this.keyboardRowsDOM),this.onRender(),this.initialized||(this.initialized=!0,!this.utilities.pointerEventsSupported()||N||J?N?(document.ontouchend=function(W){return _.handleButtonMouseUp(void 0,W)},document.ontouchcancel=function(W){return _.handleButtonMouseUp(void 0,W)},this.keyboardDOM.ontouchstart=function(W){return _.handleKeyboardContainerMouseDown(W)}):N||(document.onmouseup=function(W){return _.handleButtonMouseUp(void 0,W)},this.keyboardDOM.onmousedown=function(W){return _.handleKeyboardContainerMouseDown(W)}):(document.onpointerup=function(W){return _.handleButtonMouseUp(void 0,W)},this.keyboardDOM.onpointerdown=function(W){return _.handleKeyboardContainerMouseDown(W)}),this.onInit())}}],$&&te(q.prototype,$),Q&&te(q,Q),Object.defineProperty(q,"prototype",{writable:!1}),q;var q,$,Q}(),ye=ue,pe=ue}(),p}()},442:function(c){c.exports=n}},i={};function s(c){var u=i[c];if(u!==void 0)return u.exports;var d=i[c]={exports:{}};return r[c].call(d.exports,d,d.exports,s),d.exports}s.n=function(c){var u=c&&c.__esModule?function(){return c.default}:function(){return c};return s.d(u,{a:u}),u},s.d=function(c,u){for(var d in u)s.o(u,d)&&!s.o(c,d)&&Object.defineProperty(c,d,{enumerable:!0,get:u[d]})},s.o=function(c,u){return Object.prototype.hasOwnProperty.call(c,u)},s.r=function(c){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(c,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(c,"__esModule",{value:!0})};var o={};return function(){s.r(o),s.d(o,{KeyboardReact:function(){return h},default:function(){return y}}),s(981);var c=s(442),u=s(548),d=s.n(u);function f(g){return f=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(b){return typeof b}:function(b){return b&&typeof Symbol=="function"&&b.constructor===Symbol&&b!==Symbol.prototype?"symbol":typeof b},f(g)}function p(g,b){var w=Object.keys(g);if(Object.getOwnPropertySymbols){var E=Object.getOwnPropertySymbols(g);b&&(E=E.filter(function(S){return Object.getOwnPropertyDescriptor(g,S).enumerable})),w.push.apply(w,E)}return w}function l(g){for(var b=1;b<arguments.length;b++){var w=arguments[b]!=null?arguments[b]:{};b%2?p(Object(w),!0).forEach(function(E){v(g,E,w[E])}):Object.getOwnPropertyDescriptors?Object.defineProperties(g,Object.getOwnPropertyDescriptors(w)):p(Object(w)).forEach(function(E){Object.defineProperty(g,E,Object.getOwnPropertyDescriptor(w,E))})}return g}function v(g,b,w){var E;return E=function(S,A){if(f(S)!="object"||!S)return S;var T=S[Symbol.toPrimitive];if(T!==void 0){var O=T.call(S,A||"default");if(f(O)!="object")return O;throw new TypeError("@@toPrimitive must return a primitive value.")}return(A==="string"?String:Number)(S)}(b,"string"),(b=f(E)=="symbol"?E:E+"")in g?Object.defineProperty(g,b,{value:w,enumerable:!0,configurable:!0,writable:!0}):g[b]=w,g}var a=function(g){return l(l({},g),{},{keyboardRef:null})},h=function(g){var b=g.baseClass||"react-simple-keyboard",w=c.useRef(null),E=c.useRef(null),S=c.useRef(null),A=c.useRef(g);return c.useEffect(function(){return function(){S.current&&S.current.destroy(),w.current=!1}},[]),c.useEffect(function(){var T=function(V){return l(l({},V),{},{theme:"simple-keyboard ".concat(V.theme||"hg-theme-default")})}(g);if(!w.current){w.current=!0,T.debug&&console.log("ReactSimpleKeyboard: Init");var O=E.current,M=".".concat(b);S.current=new(d())(O||M,T),T.keyboardRef&&T.keyboardRef(S.current)}var D=function(V,G){var U=a(G),R=a(V);return Object.keys(U).filter(function(L){return U[L]!==R[L]})}(A.current,T);if(D.length){var F=S.current;A.current=T,F==null||F.setOptions(T),T.debug&&console.log("ReactSimpleKeyboard - setOptions called due to updated props:",D)}},[w,b,A,g]),c.createElement("div",{className:b,ref:E})},y=h}(),o}()})})(Ky);var Pk=Ky.exports;const jk=Iu(Pk);function zy({onChange:e,keyboardRef:t,layout:n,theme:r}){const[i,s]=I.useState("default"),o=c=>{(c==="{shift}"||c==="{lock}")&&s(i==="default"?"shift":"default")};return m.jsx(jk,{keyboardRef:c=>t.current=c,layoutName:i,layout:n,theme:r,onChange:e,onKeyPress:o,preventMouseDownDefault:!0})}function Qy(){const{subscribe:e,unsubscribe:t,publish:n}=Oo();return{initialize:(c,u)=>{e("openKeyboard",c),e("closeKeyboard",u)},terminate:(c,u)=>{t("openKeyboard",c),t("closeKeyboard",u)},open:c=>{n("openKeyboard",{inputId:c.target.id,inputValue:c.target.value})},close:()=>{n("closeKeyboard")}}}const Qn="keyboard-custom-overlap-id";function Lk({enabled:e}){const[t,n]=I.useState(!1),r=I.useRef(null),i=I.useRef(null),s=I.useRef(null),[o,c]=I.useState(),{initialize:u,terminate:d}=Qy(),f=g=>{var b,w;i.current=document.getElementById(g.detail.inputId),(b=r.current)==null||b.setInput(g.detail.inputValue),(w=i.current)==null||w.addEventListener("input",E=>{var A;const S=E.target;(A=r.current)==null||A.setInput(S==null?void 0:S.value)}),n(!0)},p=()=>n(!1);I.useEffect(()=>(u(f,p),()=>{d(f,p)}),[t]);const l=g=>{var b,w;if(i&&i.current){v(i.current,g);const E=(b=r.current)==null?void 0:b.getCaretPosition();E&&((w=i.current)==null||w.setSelectionRange(E,E))}},v=(g,b)=>{var S;const w=(S=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"value"))==null?void 0:S.set;w==null||w.call(g,b);const E=new Event("input",{bubbles:!0});g.dispatchEvent(E)},a=()=>{var g;if(!o){const b=(g=s.current)==null?void 0:g.getBoundingClientRect();return b&&b.x&&!o&&c(b),b}return o},h=()=>{var E;const g=(E=i.current)==null?void 0:E.getBoundingClientRect(),b=a();let w=!1;return b&&g&&(w=!(b.right<g.left||b.left>g.right||b.bottom<g.top||b.top>g.bottom)),w},y=()=>{const g=document.querySelectorAll("#"+Qn);let b=!1;for(let w=0;w<g.length;w++){const E=g[w].getBoundingClientRect(),S=a();S&&E&&(b=!(S.right<E.left||S.left>E.right||S.bottom<E.top||S.top>E.bottom))}return b||h()};return e?m.jsx("div",{ref:s,className:`mobile:hidden bottom-2 left-2 right-2 z-50 mx-auto w-[98vw] max-w-[1200px] ${!t&&o&&"hidden"} ${!t&&!o&&"pointer-events-none opacity-0"} ${y()?"b-2 block":"absolute"}`,children:m.jsx(zy,{keyboardRef:r,onChange:l})}):m.jsx(m.Fragment,{})}const ji=({id:e,name:t,label:n,description:r,required:i,type:s="text",value:o,placeholder:c,disabled:u,error:d=!1,helperText:f="",onChange:p,beforeIcon:l,afterIcon:v,autoFocus:a,onFocus:h,onBlur:y})=>{const[g,b]=I.useState(f),w=I.useRef(null),[E,S]=I.useState(!1),{open:A,close:T}=Qy();I.useEffect(()=>()=>{T()},[]);const O=()=>{w.current&&b(w.current.validationMessage),S(!1),T(),y==null||y()},M=async G=>{S(!0),(async()=>A(G))().then(()=>{var R;return(R=w.current)==null?void 0:R.scrollIntoView({behavior:"smooth",block:"center"})}),h==null||h()},D=G=>{p==null||p(G)},F=I.useId(),V=e??F;return m.jsxs("div",{className:"flex flex-col gap-2 antialiased",children:[m.jsx(Sn,{description:r,disabled:u,htmlFor:V,required:i,children:n}),m.jsx("div",{className:ln("flex-start box flex h-10 flex-col justify-center self-stretch rounded border border-core-gray-200 shadow-xs",u?"pointer-events-none bg-core-gray-50 shadow-none outline-core-gray-200":" bg-core-white-900 hover:border hover:border-core-gray-300 hover:shadow-none ",E&&!d&&"border-core-primary-500 ring-1 ring-core-primary-500",d&&"border-core-red-500",d&&E&&"border-core-red-500 ring-1 ring-core-red-500"),children:m.jsxs("div",{className:"flex flex-row gap-2 self-stretch p-2",children:[l&&m.jsx(an,{icon:l}),m.jsx("input",{type:s,id:V,name:t,className:"flex flex-grow border-none bg-transparent p-0 text-sm text-core-gray-800 placeholder:text-core-gray-500 focus:ring-0 disabled:text-core-gray-300 placeholder:disabled:text-core-gray-300",value:o,onChange:D,onBlur:O,ref:w,placeholder:c,onFocus:M,disabled:u,autoFocus:a}),v&&m.jsx(an,{icon:v})]})}),m.jsx("div",{className:`grid overflow-hidden transition-all duration-300 ease-out ${f||g?"grid-rows-[1fr] opacity-100":"grid-rows-[0fr] opacity-0"}`,children:m.jsx("div",{className:"overflow-hidden",children:m.jsx(Sn.Helper,{error:d,helperText:f||g})})})]})};ji.displayName="Input";const Jy=({id:e,name:t,label:n,required:r,description:i,placeholder:s,value:o,disabled:c,error:u=!1,helperText:d,onChange:f,type:p="date"})=>{const[l,v]=I.useState(!1),a=I.useId(),h=e??a;return m.jsxs("div",{className:"flex flex-col gap-2 antialiased",children:[m.jsx(Sn,{description:i,disabled:c,htmlFor:h,required:r,children:n}),m.jsx("div",{className:ln("flex-start box relative flex h-10 flex-col justify-center self-stretch rounded border border-core-gray-200 shadow-xs ring-core-primary-500 ",c?"pointer-events-none bg-core-gray-50 shadow-none outline-core-gray-200":" bg-core-white-900 hover:border hover:border-core-gray-300 hover:shadow-none ",l&&!u&&"border-core-primary-500 ring-1 ring-core-primary-500 selection:bg-core-primary-500",u&&"border-core-red-500",u&&l&&"border-core-red-500 ring-1 ring-core-red-500"),children:m.jsxs("div",{className:"flex w-full flex-row gap-2 self-stretch p-2",children:[m.jsx("input",{type:p,id:h,name:t,value:o,max:"2200-01-01",className:"flex flex-grow border-none bg-transparent p-0 text-sm text-core-gray-800 placeholder:text-core-gray-500 focus:ring-0 disabled:text-core-gray-300 placeholder:disabled:text-core-gray-300",placeholder:s,onChange:f,onFocus:()=>v(!0),onBlur:()=>v(!1),disabled:c}),m.jsx(an,{icon:"calendar"})]})}),m.jsx("div",{className:`grid overflow-hidden transition-all duration-300 ease-out ${d?"grid-rows-[1fr] opacity-100":"grid-rows-[0fr] opacity-100"}`,children:m.jsx("div",{className:"overflow-hidden",children:m.jsx(Sn.Helper,{error:u,helperText:d})})})]})};Jy.displayName="Input";function dn({children:e}){return m.jsx("div",{className:"h-screen w-screen md:p-6",children:m.jsx("div",{className:"flex h-full max-h-full items-center justify-center md:container [&>*]:grow",children:e})})}function fi({title:e,isOpen:t,onClose:n,primaryAction:r,secondaryAction:i,children:s}){const[o,c]=I.useState(t),u=I.useRef(null);I.useEffect(()=>{c(t)},[t]),I.useEffect(()=>{const p=u.current;p&&(o?p.show():p.close())},[o]);const d=()=>{n&&n(),c(!1)},f=p=>{p.key==="Escape"&&d()};return m.jsx("div",{className:`fixed inset-0 z-40 min-h-screen items-center bg-gray-500 bg-opacity-25 ${o?"flex":"hidden"}`,children:m.jsx("dialog",{ref:u,onKeyDown:f,className:"scrollbar-hide absolute overflow-auto rounded-lg drop-shadow-md",children:m.jsxs("div",{className:"rounded-lg bg-white md:min-w-[420px]",children:[m.jsx(Ct,{children:m.jsx("div",{className:"flex h-16 items-center",children:m.jsx("p",{children:e})})}),m.jsx(xt,{children:s}),m.jsx(zt,{children:m.jsxs("div",{className:"flex flex-col gap-2",children:[r&&m.jsx(ot,{label:r.label??"",onClick:r.action,disabled:r.disabled,pending:r.loading}),i&&m.jsx(ot,{label:i.label??"",onClick:i.action,disabled:i.disabled,pending:i.loading,variant:"secondary"})]})})]})})})}function Bk({option:{label:e},checked:t,onChange:n}){return m.jsxs("div",{className:"flex items-center gap-2 px-4 py-2 text-sm hover:bg-core-gray-50",children:[m.jsx(Zd,{defaultChecked:t,onChange:n}),m.jsx("p",{children:e})]})}function Fk(e){const{t}=Ve(),n=I.useRef(null),[r,i]=I.useState(!1);Wy(n,i);const[s,o]=I.useState(""),[c,u]=I.useState(e.value.split(";")),{name:d,onChange:f}=e,p=(l,v)=>{let a=[];l?a=[...c,v]:a=c.filter(h=>h!==v),u(a),f&&f(d??"",a.join(";"))};return m.jsxs("div",{ref:n,className:"flex flex-col gap-2 antialiased",children:[m.jsx(Sn,{disabled:e.disabled,htmlFor:e.id,required:e.required,children:e.label}),m.jsxs("div",{className:"relative",children:[m.jsxs("div",{className:`flex h-10 items-center justify-between rounded border p-2 ${e.disabled?"pointer-events-none bg-core-gray-50 shadow-none outline-core-gray-200":"bg-core-white-900 hover:border hover:border-core-gray-300 hover:shadow-none"}`,onClick:()=>!e.disabled&&i(!r),children:[m.jsx("div",{className:`flex gap-1 overflow-hidden text-sm ${e.disabled?"text-core-gray-300":"text-core-gray-800"}`,children:c.map(l=>{var a;const v=(a=e.options.find(h=>h.value===l))==null?void 0:a.label;return m.jsxs("div",{className:"pointer-events-none flex items-center overflow-hidden rounded bg-core-gray-100 px-1.5 py-0.5",children:[m.jsx("p",{className:"truncate",children:v}),m.jsx("span",{className:"pointer-events-auto cursor-pointer",onClick:()=>p(!1,l),children:m.jsx(an,{icon:"close"})})]},l)})}),m.jsx("span",{className:"ml-2 text-core-gray-500",children:r?"▴":"▾"})]}),m.jsxs("div",{className:`absolute left-0 right-0 top-11 z-50 rounded border bg-core-white-900 shadow-xl ${!r&&"hidden"} py-2`,children:[e.options.length>6&&m.jsx("div",{className:"px-4",children:m.jsx(ji,{placeholder:`${t("search")}...`,onChange:l=>o(l.target.value)})}),e.options.map(l=>{if(!(s&&!l.label.toLowerCase().includes(s.toLowerCase())))return m.jsx(Bk,{option:l,checked:c.includes(l.value),onChange:v=>p(v,l.value)},`${l.value}_${c.includes(l.value)?"checked":"unchecked"}`)})]})]})]})}function Uk({value:e,max:t,label:n}){return m.jsxs("div",{children:[m.jsx("div",{className:"font-sm mb-1 text-right text-core-gray-500",children:n}),m.jsx("div",{className:"h-1 w-full rounded-full bg-core-gray-200",children:m.jsx("div",{className:"h-1 rounded-full bg-core-primary-500",style:{width:`${Math.min(e/t*100,100)}%`}})})]})}function Vk({value:e,placeholder:t,open:n,setOpen:r,disabled:i}){return m.jsxs("div",{className:`flex items-center justify-between rounded border p-2 ${i?"pointer-events-none bg-core-gray-50 shadow-none outline-core-gray-200":"bg-core-white-900 hover:border hover:border-core-gray-300 hover:shadow-none"}`,onClick:()=>!i&&r(!n),children:[m.jsx("span",{className:`text-sm ${i?"text-core-gray-300":"text-core-gray-800"}`,children:e||t}),m.jsx("span",{className:"ml-2 text-core-gray-500",children:n?"▴":"▾"})]})}function qk({label:e,children:t}){return m.jsxs("div",{className:"[&:not(:last-child)]:mb-2",children:[m.jsx("p",{className:"mb-2 px-4 text-xs text-core-gray-500",children:e}),t]})}function Xd(e){return m.jsx("div",{className:"px-4 py-2 text-sm hover:bg-core-gray-50",children:e.label})}function $k(e){const t=I.useRef(null),[n,r]=I.useState(!1),[i,s]=I.useState(e.value??"");Wy(t,r);const o=(u,d)=>{s(u),r(!1),e.onChange&&e.onChange(d)},c=I.Children.map(e.children,u=>{if(I.isValidElement(u)){if(u.type===Xd)return m.jsx("div",{onClick:()=>o(u.props.label,u.props.value),children:u});if(u.type===qk){const d=I.Children.map(u.props.children,f=>{if(I.isValidElement(f)&&f.type===Xd)return m.jsx("div",{onClick:()=>o(f.props.label,f.props.value),children:f})});return I.cloneElement(u,{},...d)}}});return m.jsxs("div",{ref:t,className:"flex flex-col gap-2 antialiased",children:[m.jsx(Sn,{description:e.description,disabled:e.disabled,htmlFor:e.id,required:e.required,children:e.label}),m.jsx("div",{children:m.jsxs("div",{className:"relative",children:[m.jsx(Vk,{value:i,placeholder:e.placeholder,open:n,setOpen:r,disabled:e.disabled}),e.children&&m.jsx("div",{className:`absolute left-0 right-0 top-11 z-50 rounded border bg-core-white-900 shadow-xl ${!n&&"hidden"} py-2`,children:c})]})}),m.jsx(Sn.Helper,{helperText:e.helperText})]})}var Gk=Object.defineProperty,Hk=(e,t)=>{for(var n in t)Gk(e,n,{get:t[n],enumerable:!0})},cr={};Hk(cr,{assign:()=>Kk,colors:()=>mi,createStringInterpolator:()=>uf,skipAnimation:()=>iv,to:()=>rv,willAdvance:()=>lf});var ef=No(),qe=e=>Ro(e,ef),tf=No();qe.write=e=>Ro(e,tf);var $c=No();qe.onStart=e=>Ro(e,$c);var nf=No();qe.onFrame=e=>Ro(e,nf);var rf=No();qe.onFinish=e=>Ro(e,rf);var As=[];qe.setTimeout=(e,t)=>{const n=qe.now()+t,r=()=>{const s=As.findIndex(o=>o.cancel==r);~s&&As.splice(s,1),pi-=~s?1:0},i={time:n,handler:e,cancel:r};return As.splice(Zy(n),0,i),pi+=1,Xy(),i};var Zy=e=>~(~As.findIndex(t=>t.time>e)||~As.length);qe.cancel=e=>{$c.delete(e),nf.delete(e),rf.delete(e),ef.delete(e),tf.delete(e)},qe.sync=e=>{of=!0,qe.batchedUpdates(e),of=!1},qe.throttle=e=>{let t;function n(){try{e(...t)}finally{t=null}}function r(...i){t=i,qe.onStart(n)}return r.handler=e,r.cancel=()=>{$c.delete(n),t=null},r};var sf=typeof window<"u"?window.requestAnimationFrame:()=>{};qe.use=e=>sf=e,qe.now=typeof performance<"u"?()=>performance.now():Date.now,qe.batchedUpdates=e=>e(),qe.catch=console.error,qe.frameLoop="always",qe.advance=()=>{qe.frameLoop!=="demand"?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):tv()};var hi=-1,pi=0,of=!1;function Ro(e,t){of?(t.delete(e),e(0)):(t.add(e),Xy())}function Xy(){hi<0&&(hi=0,qe.frameLoop!=="demand"&&sf(ev))}function Yk(){hi=-1}function ev(){~hi&&(sf(ev),qe.batchedUpdates(tv))}function tv(){const e=hi;hi=qe.now();const t=Zy(hi);if(t&&(nv(As.splice(0,t),n=>n.handler()),pi-=t),!pi){Yk();return}$c.flush(),ef.flush(e?Math.min(64,hi-e):16.667),nf.flush(),tf.flush(),rf.flush()}function No(){let e=new Set,t=e;return{add(n){pi+=t==e&&!e.has(n)?1:0,e.add(n)},delete(n){return pi-=t==e&&e.has(n)?1:0,e.delete(n)},flush(n){t.size&&(e=new Set,pi-=t.size,nv(t,r=>r(n)&&e.add(r)),pi+=e.size,t=e)}}}function nv(e,t){e.forEach(n=>{try{t(n)}catch(r){qe.catch(r)}})}function af(){}var Wk=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),xe={arr:Array.isArray,obj:e=>!!e&&e.constructor.name==="Object",fun:e=>typeof e=="function",str:e=>typeof e=="string",num:e=>typeof e=="number",und:e=>e===void 0};function Lr(e,t){if(xe.arr(e)){if(!xe.arr(t)||e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}return e===t}var rt=(e,t)=>e.forEach(t);function wr(e,t,n){if(xe.arr(e)){for(let r=0;r<e.length;r++)t.call(n,e[r],`${r}`);return}for(const r in e)e.hasOwnProperty(r)&&t.call(n,e[r],r)}var Un=e=>xe.und(e)?[]:xe.arr(e)?e:[e];function Mo(e,t){if(e.size){const n=Array.from(e);e.clear(),rt(n,t)}}var Do=(e,...t)=>Mo(e,n=>n(...t)),cf=()=>typeof window>"u"||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),uf,rv,mi=null,iv=!1,lf=af,Kk=e=>{e.to&&(rv=e.to),e.now&&(qe.now=e.now),e.colors!==void 0&&(mi=e.colors),e.skipAnimation!=null&&(iv=e.skipAnimation),e.createStringInterpolator&&(uf=e.createStringInterpolator),e.requestAnimationFrame&&qe.use(e.requestAnimationFrame),e.batchedUpdates&&(qe.batchedUpdates=e.batchedUpdates),e.willAdvance&&(lf=e.willAdvance),e.frameLoop&&(qe.frameLoop=e.frameLoop)},Po=new Set,Jn=[],df=[],Gc=0,Hc={get idle(){return!Po.size&&!Jn.length},start(e){Gc>e.priority?(Po.add(e),qe.onStart(zk)):(sv(e),qe(ff))},advance:ff,sort(e){if(Gc)qe.onFrame(()=>Hc.sort(e));else{const t=Jn.indexOf(e);~t&&(Jn.splice(t,1),ov(e))}},clear(){Jn=[],Po.clear()}};function zk(){Po.forEach(sv),Po.clear(),qe(ff)}function sv(e){Jn.includes(e)||ov(e)}function ov(e){Jn.splice(Qk(Jn,t=>t.priority>e.priority),0,e)}function ff(e){const t=df;for(let n=0;n<Jn.length;n++){const r=Jn[n];Gc=r.priority,r.idle||(lf(r),r.advance(e),r.idle||t.push(r))}return Gc=0,df=Jn,df.length=0,Jn=t,Jn.length>0}function Qk(e,t){const n=e.findIndex(t);return n<0?e.length:n}var Jk=(e,t,n)=>Math.min(Math.max(n,e),t),Zk={transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199},ur="[-+]?\\d*\\.?\\d+",Yc=ur+"%";function Wc(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}var Xk=new RegExp("rgb"+Wc(ur,ur,ur)),e6=new RegExp("rgba"+Wc(ur,ur,ur,ur)),t6=new RegExp("hsl"+Wc(ur,Yc,Yc)),n6=new RegExp("hsla"+Wc(ur,Yc,Yc,ur)),r6=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,i6=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,s6=/^#([0-9a-fA-F]{6})$/,o6=/^#([0-9a-fA-F]{8})$/;function a6(e){let t;return typeof e=="number"?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=s6.exec(e))?parseInt(t[1]+"ff",16)>>>0:mi&&mi[e]!==void 0?mi[e]:(t=Xk.exec(e))?(Ts(t[1])<<24|Ts(t[2])<<16|Ts(t[3])<<8|255)>>>0:(t=e6.exec(e))?(Ts(t[1])<<24|Ts(t[2])<<16|Ts(t[3])<<8|uv(t[4]))>>>0:(t=r6.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=o6.exec(e))?parseInt(t[1],16)>>>0:(t=i6.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=t6.exec(e))?(av(cv(t[1]),Kc(t[2]),Kc(t[3]))|255)>>>0:(t=n6.exec(e))?(av(cv(t[1]),Kc(t[2]),Kc(t[3]))|uv(t[4]))>>>0:null}function hf(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function av(e,t,n){const r=n<.5?n*(1+t):n+t-n*t,i=2*n-r,s=hf(i,r,e+1/3),o=hf(i,r,e),c=hf(i,r,e-1/3);return Math.round(s*255)<<24|Math.round(o*255)<<16|Math.round(c*255)<<8}function Ts(e){const t=parseInt(e,10);return t<0?0:t>255?255:t}function cv(e){return(parseFloat(e)%360+360)%360/360}function uv(e){const t=parseFloat(e);return t<0?0:t>1?255:Math.round(t*255)}function Kc(e){const t=parseFloat(e);return t<0?0:t>100?1:t/100}function lv(e){let t=a6(e);if(t===null)return e;t=t||0;const n=(t&4278190080)>>>24,r=(t&16711680)>>>16,i=(t&65280)>>>8,s=(t&255)/255;return`rgba(${n}, ${r}, ${i}, ${s})`}var jo=(e,t,n)=>{if(xe.fun(e))return e;if(xe.arr(e))return jo({range:e,output:t,extrapolate:n});if(xe.str(e.output[0]))return uf(e);const r=e,i=r.output,s=r.range||[0,1],o=r.extrapolateLeft||r.extrapolate||"extend",c=r.extrapolateRight||r.extrapolate||"extend",u=r.easing||(d=>d);return d=>{const f=u6(d,s);return c6(d,s[f],s[f+1],i[f],i[f+1],u,o,c,r.map)}};function c6(e,t,n,r,i,s,o,c,u){let d=u?u(e):e;if(d<t){if(o==="identity")return d;o==="clamp"&&(d=t)}if(d>n){if(c==="identity")return d;c==="clamp"&&(d=n)}return r===i?r:t===n?e<=t?r:i:(t===-1/0?d=-d:n===1/0?d=d-t:d=(d-t)/(n-t),d=s(d),r===-1/0?d=-d:i===1/0?d=d+r:d=d*(i-r)+r,d)}function u6(e,t){for(var n=1;n<t.length-1&&!(t[n]>=e);++n);return n-1}var l6=(e,t="end")=>n=>{n=t==="end"?Math.min(n,.999):Math.max(n,.001);const r=n*e,i=t==="end"?Math.floor(r):Math.ceil(r);return Jk(0,1,i/e)},zc=1.70158,Qc=zc*1.525,dv=zc+1,fv=2*Math.PI/3,hv=2*Math.PI/4.5,Jc=e=>e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375,d6={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>1-(1-e)*(1-e),easeInOutQuad:e=>e<.5?2*e*e:1-Math.pow(-2*e+2,2)/2,easeInCubic:e=>e*e*e,easeOutCubic:e=>1-Math.pow(1-e,3),easeInOutCubic:e=>e<.5?4*e*e*e:1-Math.pow(-2*e+2,3)/2,easeInQuart:e=>e*e*e*e,easeOutQuart:e=>1-Math.pow(1-e,4),easeInOutQuart:e=>e<.5?8*e*e*e*e:1-Math.pow(-2*e+2,4)/2,easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>1-Math.pow(1-e,5),easeInOutQuint:e=>e<.5?16*e*e*e*e*e:1-Math.pow(-2*e+2,5)/2,easeInSine:e=>1-Math.cos(e*Math.PI/2),easeOutSine:e=>Math.sin(e*Math.PI/2),easeInOutSine:e=>-(Math.cos(Math.PI*e)-1)/2,easeInExpo:e=>e===0?0:Math.pow(2,10*e-10),easeOutExpo:e=>e===1?1:1-Math.pow(2,-10*e),easeInOutExpo:e=>e===0?0:e===1?1:e<.5?Math.pow(2,20*e-10)/2:(2-Math.pow(2,-20*e+10))/2,easeInCirc:e=>1-Math.sqrt(1-Math.pow(e,2)),easeOutCirc:e=>Math.sqrt(1-Math.pow(e-1,2)),easeInOutCirc:e=>e<.5?(1-Math.sqrt(1-Math.pow(2*e,2)))/2:(Math.sqrt(1-Math.pow(-2*e+2,2))+1)/2,easeInBack:e=>dv*e*e*e-zc*e*e,easeOutBack:e=>1+dv*Math.pow(e-1,3)+zc*Math.pow(e-1,2),easeInOutBack:e=>e<.5?Math.pow(2*e,2)*((Qc+1)*2*e-Qc)/2:(Math.pow(2*e-2,2)*((Qc+1)*(e*2-2)+Qc)+2)/2,easeInElastic:e=>e===0?0:e===1?1:-Math.pow(2,10*e-10)*Math.sin((e*10-10.75)*fv),easeOutElastic:e=>e===0?0:e===1?1:Math.pow(2,-10*e)*Math.sin((e*10-.75)*fv)+1,easeInOutElastic:e=>e===0?0:e===1?1:e<.5?-(Math.pow(2,20*e-10)*Math.sin((20*e-11.125)*hv))/2:Math.pow(2,-20*e+10)*Math.sin((20*e-11.125)*hv)/2+1,easeInBounce:e=>1-Jc(1-e),easeOutBounce:Jc,easeInOutBounce:e=>e<.5?(1-Jc(1-2*e))/2:(1+Jc(2*e-1))/2,steps:l6},Lo=Symbol.for("FluidValue.get"),Is=Symbol.for("FluidValue.observers"),Zn=e=>!!(e&&e[Lo]),In=e=>e&&e[Lo]?e[Lo]():e,pv=e=>e[Is]||null;function f6(e,t){e.eventObserved?e.eventObserved(t):e(t)}function Bo(e,t){const n=e[Is];n&&n.forEach(r=>{f6(r,t)})}var mv=class{constructor(e){if(!e&&!(e=this.get))throw Error("Unknown getter");h6(this,e)}},h6=(e,t)=>gv(e,Lo,t);function ks(e,t){if(e[Lo]){let n=e[Is];n||gv(e,Is,n=new Set),n.has(t)||(n.add(t),e.observerAdded&&e.observerAdded(n.size,t))}return t}function Fo(e,t){const n=e[Is];if(n&&n.has(t)){const r=n.size-1;r?n.delete(t):e[Is]=null,e.observerRemoved&&e.observerRemoved(r,t)}}var gv=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),Zc=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,p6=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,yv=new RegExp(`(${Zc.source})(%|[a-z]+)`,"i"),m6=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,Xc=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,vv=e=>{const[t,n]=g6(e);if(!t||cf())return e;const r=window.getComputedStyle(document.documentElement).getPropertyValue(t);if(r)return r.trim();if(n&&n.startsWith("--")){const i=window.getComputedStyle(document.documentElement).getPropertyValue(n);return i||e}else{if(n&&Xc.test(n))return vv(n);if(n)return n}return e},g6=e=>{const t=Xc.exec(e);if(!t)return[,];const[,n,r]=t;return[n,r]},pf,y6=(e,t,n,r,i)=>`rgba(${Math.round(t)}, ${Math.round(n)}, ${Math.round(r)}, ${i})`,bv=e=>{pf||(pf=mi?new RegExp(`(${Object.keys(mi).join("|")})(?!\\w)`,"g"):/^\b$/);const t=e.output.map(s=>In(s).replace(Xc,vv).replace(p6,lv).replace(pf,lv)),n=t.map(s=>s.match(Zc).map(Number)),i=n[0].map((s,o)=>n.map(c=>{if(!(o in c))throw Error('The arity of each "output" value must be equal');return c[o]})).map(s=>jo({...e,output:s}));return s=>{var u;const o=!yv.test(t[0])&&((u=t.find(d=>yv.test(d)))==null?void 0:u.replace(Zc,""));let c=0;return t[0].replace(Zc,()=>`${i[c++](s)}${o||""}`).replace(m6,y6)}},mf="react-spring: ",wv=e=>{const t=e;let n=!1;if(typeof t!="function")throw new TypeError(`${mf}once requires a function parameter`);return(...r)=>{n||(t(...r),n=!0)}},v6=wv(console.warn);function b6(){v6(`${mf}The "interpolate" function is deprecated in v9 (use "to" instead)`)}var w6=wv(console.warn);function E6(){w6(`${mf}Directly calling start instead of using the api object is deprecated in v9 (use ".start" instead), this will be removed in later 0.X.0 versions`)}function eu(e){return xe.str(e)&&(e[0]=="#"||/\d/.test(e)||!cf()&&Xc.test(e)||e in(mi||{}))}var gf=cf()?I.useEffect:I.useLayoutEffect,S6=()=>{const e=I.useRef(!1);return gf(()=>(e.current=!0,()=>{e.current=!1}),[]),e};function Ev(){const e=I.useState()[1],t=S6();return()=>{t.current&&e(Math.random())}}function x6(e,t){const[n]=I.useState(()=>({inputs:t,result:e()})),r=I.useRef(),i=r.current;let s=i;return s?t&&s.inputs&&C6(t,s.inputs)||(s={inputs:t,result:e()}):s=n,I.useEffect(()=>{r.current=s,i==n&&(n.inputs=n.result=void 0)},[s]),s.result}function C6(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}var Sv=e=>I.useEffect(e,_6),_6=[];function xv(e){const t=I.useRef();return I.useEffect(()=>{t.current=e}),t.current}var Uo=Symbol.for("Animated:node"),A6=e=>!!e&&e[Uo]===e,Er=e=>e&&e[Uo],yf=(e,t)=>Wk(e,Uo,t),tu=e=>e&&e[Uo]&&e[Uo].getPayload(),Cv=class{constructor(){yf(this,this)}getPayload(){return this.payload||[]}},Vo=class extends Cv{constructor(e){super(),this._value=e,this.done=!0,this.durationProgress=0,xe.num(this._value)&&(this.lastPosition=this._value)}static create(e){return new Vo(e)}getPayload(){return[this]}getValue(){return this._value}setValue(e,t){return xe.num(e)&&(this.lastPosition=e,t&&(e=Math.round(e/t)*t,this.done&&(this.lastPosition=e))),this._value===e?!1:(this._value=e,!0)}reset(){const{done:e}=this;this.done=!1,xe.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,e&&(this.lastVelocity=null),this.v0=null)}},qo=class extends Vo{constructor(e){super(0),this._string=null,this._toString=jo({output:[e,e]})}static create(e){return new qo(e)}getValue(){const e=this._string;return e??(this._string=this._toString(this._value))}setValue(e){if(xe.str(e)){if(e==this._string)return!1;this._string=e,this._value=1}else if(super.setValue(e))this._string=null;else return!1;return!0}reset(e){e&&(this._toString=jo({output:[this.getValue(),e]})),this._value=0,super.reset()}},nu={dependencies:null},ru=class extends Cv{constructor(e){super(),this.source=e,this.setValue(e)}getValue(e){const t={};return wr(this.source,(n,r)=>{A6(n)?t[r]=n.getValue(e):Zn(n)?t[r]=In(n):e||(t[r]=n)}),t}setValue(e){this.source=e,this.payload=this._makePayload(e)}reset(){this.payload&&rt(this.payload,e=>e.reset())}_makePayload(e){if(e){const t=new Set;return wr(e,this._addToPayload,t),Array.from(t)}}_addToPayload(e){nu.dependencies&&Zn(e)&&nu.dependencies.add(e);const t=tu(e);t&&rt(t,n=>this.add(n))}},_v=class extends ru{constructor(e){super(e)}static create(e){return new _v(e)}getValue(){return this.source.map(e=>e.getValue())}setValue(e){const t=this.getPayload();return e.length==t.length?t.map((n,r)=>n.setValue(e[r])).some(Boolean):(super.setValue(e.map(T6)),!0)}};function T6(e){return(eu(e)?qo:Vo).create(e)}function vf(e){const t=Er(e);return t?t.constructor:xe.arr(e)?_v:eu(e)?qo:Vo}var Av=(e,t)=>{const n=!xe.fun(e)||e.prototype&&e.prototype.isReactComponent;return I.forwardRef((r,i)=>{const s=I.useRef(null),o=n&&I.useCallback(a=>{s.current=O6(i,a)},[i]),[c,u]=k6(r,t),d=Ev(),f=()=>{const a=s.current;if(n&&!a)return;(a?t.applyAnimatedValues(a,c.getValue(!0)):!1)===!1&&d()},p=new I6(f,u),l=I.useRef();gf(()=>(l.current=p,rt(u,a=>ks(a,p)),()=>{l.current&&(rt(l.current.deps,a=>Fo(a,l.current)),qe.cancel(l.current.update))})),I.useEffect(f,[]),Sv(()=>()=>{const a=l.current;rt(a.deps,h=>Fo(h,a))});const v=t.getComponentProps(c.getValue());return se.createElement(e,{...v,ref:o})})},I6=class{constructor(e,t){this.update=e,this.deps=t}eventObserved(e){e.type=="change"&&qe.write(this.update)}};function k6(e,t){const n=new Set;return nu.dependencies=n,e.style&&(e={...e,style:t.createAnimatedStyle(e.style)}),e=new ru(e),nu.dependencies=null,[e,n]}function O6(e,t){return e&&(xe.fun(e)?e(t):e.current=t),t}var Tv=Symbol.for("AnimatedComponent"),R6=(e,{applyAnimatedValues:t=()=>!1,createAnimatedStyle:n=i=>new ru(i),getComponentProps:r=i=>i}={})=>{const i={applyAnimatedValues:t,createAnimatedStyle:n,getComponentProps:r},s=o=>{const c=Iv(o)||"Anonymous";return xe.str(o)?o=s[o]||(s[o]=Av(o,i)):o=o[Tv]||(o[Tv]=Av(o,i)),o.displayName=`Animated(${c})`,o};return wr(e,(o,c)=>{xe.arr(e)&&(c=Iv(o)),s[c]=s(o)}),{animated:s}},Iv=e=>xe.str(e)?e:e&&xe.str(e.displayName)?e.displayName:xe.fun(e)&&e.name||null;function Li(e,...t){return xe.fun(e)?e(...t):e}var $o=(e,t)=>e===!0||!!(t&&e&&(xe.fun(e)?e(t):Un(e).includes(t))),kv=(e,t)=>xe.obj(e)?t&&e[t]:e,Ov=(e,t)=>e.default===!0?e[t]:e.default?e.default[t]:void 0,N6=e=>e,bf=(e,t=N6)=>{let n=M6;e.default&&e.default!==!0&&(e=e.default,n=Object.keys(e));const r={};for(const i of n){const s=t(e[i],i);xe.und(s)||(r[i]=s)}return r},M6=["config","onProps","onStart","onChange","onPause","onResume","onRest"],D6={config:1,from:1,to:1,ref:1,loop:1,reset:1,pause:1,cancel:1,reverse:1,immediate:1,default:1,delay:1,onProps:1,onStart:1,onChange:1,onPause:1,onResume:1,onRest:1,onResolve:1,items:1,trail:1,sort:1,expires:1,initial:1,enter:1,update:1,leave:1,children:1,onDestroyed:1,keys:1,callId:1,parentId:1};function P6(e){const t={};let n=0;if(wr(e,(r,i)=>{D6[i]||(t[i]=r,n++)}),n)return t}function Rv(e){const t=P6(e);if(t){const n={to:t};return wr(e,(r,i)=>i in t||(n[i]=r)),n}return{...e}}function Go(e){return e=In(e),xe.arr(e)?e.map(Go):eu(e)?cr.createStringInterpolator({range:[0,1],output:[e,e]})(1):e}function j6(e){for(const t in e)return!0;return!1}function wf(e){return xe.fun(e)||xe.arr(e)&&xe.obj(e[0])}function L6(e,t){var n;(n=e.ref)==null||n.delete(e),t==null||t.delete(e)}function B6(e,t){var n;t&&e.ref!==t&&((n=e.ref)==null||n.delete(e),t.add(e),e.ref=t)}var F6={default:{tension:170,friction:26},gentle:{tension:120,friction:14},wobbly:{tension:180,friction:12},stiff:{tension:210,friction:20},slow:{tension:280,friction:60},molasses:{tension:280,friction:120}},Ef={...F6.default,mass:1,damping:1,easing:d6.linear,clamp:!1},U6=class{constructor(){this.velocity=0,Object.assign(this,Ef)}};function V6(e,t,n){n&&(n={...n},Nv(n,t),t={...n,...t}),Nv(e,t),Object.assign(e,t);for(const o in Ef)e[o]==null&&(e[o]=Ef[o]);let{frequency:r,damping:i}=e;const{mass:s}=e;return xe.und(r)||(r<.01&&(r=.01),i<0&&(i=0),e.tension=Math.pow(2*Math.PI/r,2)*s,e.friction=4*Math.PI*i*s/r),e}function Nv(e,t){if(!xe.und(t.decay))e.duration=void 0;else{const n=!xe.und(t.tension)||!xe.und(t.friction);(n||!xe.und(t.frequency)||!xe.und(t.damping)||!xe.und(t.mass))&&(e.duration=void 0,e.decay=void 0),n&&(e.frequency=void 0)}}var Mv=[],q6=class{constructor(){this.changed=!1,this.values=Mv,this.toValues=null,this.fromValues=Mv,this.config=new U6,this.immediate=!1}};function Dv(e,{key:t,props:n,defaultProps:r,state:i,actions:s}){return new Promise((o,c)=>{let u,d,f=$o(n.cancel??(r==null?void 0:r.cancel),t);if(f)v();else{xe.und(n.pause)||(i.paused=$o(n.pause,t));let a=r==null?void 0:r.pause;a!==!0&&(a=i.paused||$o(a,t)),u=Li(n.delay||0,t),a?(i.resumeQueue.add(l),s.pause()):(s.resume(),l())}function p(){i.resumeQueue.add(l),i.timeouts.delete(d),d.cancel(),u=d.time-qe.now()}function l(){u>0&&!cr.skipAnimation?(i.delayed=!0,d=qe.setTimeout(v,u),i.pauseQueue.add(p),i.timeouts.add(d)):v()}function v(){i.delayed&&(i.delayed=!1),i.pauseQueue.delete(p),i.timeouts.delete(d),e<=(i.cancelId||0)&&(f=!0);try{s.start({...n,callId:e,cancel:f},o)}catch(a){c(a)}}})}var Sf=(e,t)=>t.length==1?t[0]:t.some(n=>n.cancelled)?Os(e.get()):t.every(n=>n.noop)?Pv(e.get()):lr(e.get(),t.every(n=>n.finished)),Pv=e=>({value:e,noop:!0,finished:!0,cancelled:!1}),lr=(e,t,n=!1)=>({value:e,finished:t,cancelled:n}),Os=e=>({value:e,cancelled:!0,finished:!1});function jv(e,t,n,r){const{callId:i,parentId:s,onRest:o}=t,{asyncTo:c,promise:u}=n;return!s&&e===c&&!t.reset?u:n.promise=(async()=>{n.asyncId=i,n.asyncTo=e;const d=bf(t,(y,g)=>g==="onRest"?void 0:y);let f,p;const l=new Promise((y,g)=>(f=y,p=g)),v=y=>{const g=i<=(n.cancelId||0)&&Os(r)||i!==n.asyncId&&lr(r,!1);if(g)throw y.result=g,p(y),y},a=(y,g)=>{const b=new Lv,w=new Bv;return(async()=>{if(cr.skipAnimation)throw Ho(n),w.result=lr(r,!1),p(w),w;v(b);const E=xe.obj(y)?{...y}:{...g,to:y};E.parentId=i,wr(d,(A,T)=>{xe.und(E[T])&&(E[T]=A)});const S=await r.start(E);return v(b),n.paused&&await new Promise(A=>{n.resumeQueue.add(A)}),S})()};let h;if(cr.skipAnimation)return Ho(n),lr(r,!1);try{let y;xe.arr(e)?y=(async g=>{for(const b of g)await a(b)})(e):y=Promise.resolve(e(a,r.stop.bind(r))),await Promise.all([y.then(f),l]),h=lr(r.get(),!0,!1)}catch(y){if(y instanceof Lv)h=y.result;else if(y instanceof Bv)h=y.result;else throw y}finally{i==n.asyncId&&(n.asyncId=s,n.asyncTo=s?c:void 0,n.promise=s?u:void 0)}return xe.fun(o)&&qe.batchedUpdates(()=>{o(h,r,r.item)}),h})()}function Ho(e,t){Mo(e.timeouts,n=>n.cancel()),e.pauseQueue.clear(),e.resumeQueue.clear(),e.asyncId=e.asyncTo=e.promise=void 0,t&&(e.cancelId=t)}var Lv=class extends Error{constructor(){super("An async animation has been interrupted. You see this error because you forgot to use `await` or `.catch(...)` on its returned promise.")}},Bv=class extends Error{constructor(){super("SkipAnimationSignal")}},xf=e=>e instanceof Cf,$6=1,Cf=class extends mv{constructor(){super(...arguments),this.id=$6++,this._priority=0}get priority(){return this._priority}set priority(e){this._priority!=e&&(this._priority=e,this._onPriorityChange(e))}get(){const e=Er(this);return e&&e.getValue()}to(...e){return cr.to(this,e)}interpolate(...e){return b6(),cr.to(this,e)}toJSON(){return this.get()}observerAdded(e){e==1&&this._attach()}observerRemoved(e){e==0&&this._detach()}_attach(){}_detach(){}_onChange(e,t=!1){Bo(this,{type:"change",parent:this,value:e,idle:t})}_onPriorityChange(e){this.idle||Hc.sort(this),Bo(this,{type:"priority",parent:this,priority:e})}},Bi=Symbol.for("SpringPhase"),Fv=1,_f=2,Af=4,Tf=e=>(e[Bi]&Fv)>0,gi=e=>(e[Bi]&_f)>0,Yo=e=>(e[Bi]&Af)>0,Uv=(e,t)=>t?e[Bi]|=_f|Fv:e[Bi]&=~_f,Vv=(e,t)=>t?e[Bi]|=Af:e[Bi]&=~Af,G6=class extends Cf{constructor(e,t){if(super(),this.animation=new q6,this.defaultProps={},this._state={paused:!1,delayed:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._pendingCalls=new Set,this._lastCallId=0,this._lastToId=0,this._memoizedDuration=0,!xe.und(e)||!xe.und(t)){const n=xe.obj(e)?{...e}:{...t,from:e};xe.und(n.default)&&(n.default=!0),this.start(n)}}get idle(){return!(gi(this)||this._state.asyncTo)||Yo(this)}get goal(){return In(this.animation.to)}get velocity(){const e=Er(this);return e instanceof Vo?e.lastVelocity||0:e.getPayload().map(t=>t.lastVelocity||0)}get hasAnimated(){return Tf(this)}get isAnimating(){return gi(this)}get isPaused(){return Yo(this)}get isDelayed(){return this._state.delayed}advance(e){let t=!0,n=!1;const r=this.animation;let{toValues:i}=r;const{config:s}=r,o=tu(r.to);!o&&Zn(r.to)&&(i=Un(In(r.to))),r.values.forEach((d,f)=>{if(d.done)return;const p=d.constructor==qo?1:o?o[f].lastPosition:i[f];let l=r.immediate,v=p;if(!l){if(v=d.lastPosition,s.tension<=0){d.done=!0;return}let a=d.elapsedTime+=e;const h=r.fromValues[f],y=d.v0!=null?d.v0:d.v0=xe.arr(s.velocity)?s.velocity[f]:s.velocity;let g;const b=s.precision||(h==p?.005:Math.min(1,Math.abs(p-h)*.001));if(xe.und(s.duration))if(s.decay){const w=s.decay===!0?.998:s.decay,E=Math.exp(-(1-w)*a);v=h+y/(1-w)*(1-E),l=Math.abs(d.lastPosition-v)<=b,g=y*E}else{g=d.lastVelocity==null?y:d.lastVelocity;const w=s.restVelocity||b/10,E=s.clamp?0:s.bounce,S=!xe.und(E),A=h==p?d.v0>0:h<p;let T,O=!1;const M=1,D=Math.ceil(e/M);for(let F=0;F<D&&(T=Math.abs(g)>w,!(!T&&(l=Math.abs(p-v)<=b,l)));++F){S&&(O=v==p||v>p==A,O&&(g=-g*E,v=p));const V=-s.tension*1e-6*(v-p),G=-s.friction*.001*g,U=(V+G)/s.mass;g=g+U*M,v=v+g*M}}else{let w=1;s.duration>0&&(this._memoizedDuration!==s.duration&&(this._memoizedDuration=s.duration,d.durationProgress>0&&(d.elapsedTime=s.duration*d.durationProgress,a=d.elapsedTime+=e)),w=(s.progress||0)+a/this._memoizedDuration,w=w>1?1:w<0?0:w,d.durationProgress=w),v=h+s.easing(w)*(p-h),g=(v-d.lastPosition)/e,l=w==1}d.lastVelocity=g,Number.isNaN(v)&&(console.warn("Got NaN while animating:",this),l=!0)}o&&!o[f].done&&(l=!1),l?d.done=!0:t=!1,d.setValue(v,s.round)&&(n=!0)});const c=Er(this),u=c.getValue();if(t){const d=In(r.to);(u!==d||n)&&!s.decay?(c.setValue(d),this._onChange(d)):n&&s.decay&&this._onChange(u),this._stop()}else n&&this._onChange(u)}set(e){return qe.batchedUpdates(()=>{this._stop(),this._focus(e),this._set(e)}),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(gi(this)){const{to:e,config:t}=this.animation;qe.batchedUpdates(()=>{this._onStart(),t.decay||this._set(e,!1),this._stop()})}return this}update(e){return(this.queue||(this.queue=[])).push(e),this}start(e,t){let n;return xe.und(e)?(n=this.queue||[],this.queue=[]):n=[xe.obj(e)?e:{...t,to:e}],Promise.all(n.map(r=>this._update(r))).then(r=>Sf(this,r))}stop(e){const{to:t}=this.animation;return this._focus(this.get()),Ho(this._state,e&&this._lastCallId),qe.batchedUpdates(()=>this._stop(t,e)),this}reset(){this._update({reset:!0})}eventObserved(e){e.type=="change"?this._start():e.type=="priority"&&(this.priority=e.priority+1)}_prepareNode(e){const t=this.key||"";let{to:n,from:r}=e;n=xe.obj(n)?n[t]:n,(n==null||wf(n))&&(n=void 0),r=xe.obj(r)?r[t]:r,r==null&&(r=void 0);const i={to:n,from:r};return Tf(this)||(e.reverse&&([n,r]=[r,n]),r=In(r),xe.und(r)?Er(this)||this._set(n):this._set(r)),i}_update({...e},t){const{key:n,defaultProps:r}=this;e.default&&Object.assign(r,bf(e,(o,c)=>/^on/.test(c)?kv(o,n):o)),Gv(this,e,"onProps"),zo(this,"onProps",e,this);const i=this._prepareNode(e);if(Object.isFrozen(this))throw Error("Cannot animate a `SpringValue` object that is frozen. Did you forget to pass your component to `animated(...)` before animating its props?");const s=this._state;return Dv(++this._lastCallId,{key:n,props:e,defaultProps:r,state:s,actions:{pause:()=>{Yo(this)||(Vv(this,!0),Do(s.pauseQueue),zo(this,"onPause",lr(this,Wo(this,this.animation.to)),this))},resume:()=>{Yo(this)&&(Vv(this,!1),gi(this)&&this._resume(),Do(s.resumeQueue),zo(this,"onResume",lr(this,Wo(this,this.animation.to)),this))},start:this._merge.bind(this,i)}}).then(o=>{if(e.loop&&o.finished&&!(t&&o.noop)){const c=qv(e);if(c)return this._update(c,!0)}return o})}_merge(e,t,n){if(t.cancel)return this.stop(!0),n(Os(this));const r=!xe.und(e.to),i=!xe.und(e.from);if(r||i)if(t.callId>this._lastToId)this._lastToId=t.callId;else return n(Os(this));const{key:s,defaultProps:o,animation:c}=this,{to:u,from:d}=c;let{to:f=u,from:p=d}=e;i&&!r&&(!t.default||xe.und(f))&&(f=p),t.reverse&&([f,p]=[p,f]);const l=!Lr(p,d);l&&(c.from=p),p=In(p);const v=!Lr(f,u);v&&this._focus(f);const a=wf(t.to),{config:h}=c,{decay:y,velocity:g}=h;(r||i)&&(h.velocity=0),t.config&&!a&&V6(h,Li(t.config,s),t.config!==o.config?Li(o.config,s):void 0);let b=Er(this);if(!b||xe.und(f))return n(lr(this,!0));const w=xe.und(t.reset)?i&&!t.default:!xe.und(p)&&$o(t.reset,s),E=w?p:this.get(),S=Go(f),A=xe.num(S)||xe.arr(S)||eu(S),T=!a&&(!A||$o(o.immediate||t.immediate,s));if(v){const F=vf(f);if(F!==b.constructor)if(T)b=this._set(S);else throw Error(`Cannot animate between ${b.constructor.name} and ${F.name}, as the "to" prop suggests`)}const O=b.constructor;let M=Zn(f),D=!1;if(!M){const F=w||!Tf(this)&&l;(v||F)&&(D=Lr(Go(E),S),M=!D),(!Lr(c.immediate,T)&&!T||!Lr(h.decay,y)||!Lr(h.velocity,g))&&(M=!0)}if(D&&gi(this)&&(c.changed&&!w?M=!0:M||this._stop(u)),!a&&((M||Zn(u))&&(c.values=b.getPayload(),c.toValues=Zn(f)?null:O==qo?[1]:Un(S)),c.immediate!=T&&(c.immediate=T,!T&&!w&&this._set(u)),M)){const{onRest:F}=c;rt(Y6,G=>Gv(this,t,G));const V=lr(this,Wo(this,u));Do(this._pendingCalls,V),this._pendingCalls.add(n),c.changed&&qe.batchedUpdates(()=>{var G;c.changed=!w,F==null||F(V,this),w?Li(o.onRest,V):(G=c.onStart)==null||G.call(c,V,this)})}w&&this._set(E),a?n(jv(t.to,t,this._state,this)):M?this._start():gi(this)&&!v?this._pendingCalls.add(n):n(Pv(E))}_focus(e){const t=this.animation;e!==t.to&&(pv(this)&&this._detach(),t.to=e,pv(this)&&this._attach())}_attach(){let e=0;const{to:t}=this.animation;Zn(t)&&(ks(t,this),xf(t)&&(e=t.priority+1)),this.priority=e}_detach(){const{to:e}=this.animation;Zn(e)&&Fo(e,this)}_set(e,t=!0){const n=In(e);if(!xe.und(n)){const r=Er(this);if(!r||!Lr(n,r.getValue())){const i=vf(n);!r||r.constructor!=i?yf(this,i.create(n)):r.setValue(n),r&&qe.batchedUpdates(()=>{this._onChange(n,t)})}}return Er(this)}_onStart(){const e=this.animation;e.changed||(e.changed=!0,zo(this,"onStart",lr(this,Wo(this,e.to)),this))}_onChange(e,t){t||(this._onStart(),Li(this.animation.onChange,e,this)),Li(this.defaultProps.onChange,e,this),super._onChange(e,t)}_start(){const e=this.animation;Er(this).reset(In(e.to)),e.immediate||(e.fromValues=e.values.map(t=>t.lastPosition)),gi(this)||(Uv(this,!0),Yo(this)||this._resume())}_resume(){cr.skipAnimation?this.finish():Hc.start(this)}_stop(e,t){if(gi(this)){Uv(this,!1);const n=this.animation;rt(n.values,i=>{i.done=!0}),n.toValues&&(n.onChange=n.onPause=n.onResume=void 0),Bo(this,{type:"idle",parent:this});const r=t?Os(this.get()):lr(this.get(),Wo(this,e??n.to));Do(this._pendingCalls,r),n.changed&&(n.changed=!1,zo(this,"onRest",r,this))}}};function Wo(e,t){const n=Go(t),r=Go(e.get());return Lr(r,n)}function qv(e,t=e.loop,n=e.to){const r=Li(t);if(r){const i=r!==!0&&Rv(r),s=(i||e).reverse,o=!i||i.reset;return Ko({...e,loop:t,default:!1,pause:void 0,to:!s||wf(n)?n:void 0,from:o?e.from:void 0,reset:o,...i})}}function Ko(e){const{to:t,from:n}=e=Rv(e),r=new Set;return xe.obj(t)&&$v(t,r),xe.obj(n)&&$v(n,r),e.keys=r.size?Array.from(r):null,e}function H6(e){const t=Ko(e);return xe.und(t.default)&&(t.default=bf(t)),t}function $v(e,t){wr(e,(n,r)=>n!=null&&t.add(r))}var Y6=["onStart","onRest","onChange","onPause","onResume"];function Gv(e,t,n){e.animation[n]=t[n]!==Ov(t,n)?kv(t[n],e.key):void 0}function zo(e,t,...n){var r,i,s,o;(i=(r=e.animation)[t])==null||i.call(r,...n),(o=(s=e.defaultProps)[t])==null||o.call(s,...n)}var W6=["onStart","onChange","onRest"],K6=1,z6=class{constructor(e,t){this.id=K6++,this.springs={},this.queue=[],this._lastAsyncId=0,this._active=new Set,this._changed=new Set,this._started=!1,this._state={paused:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._events={onStart:new Map,onChange:new Map,onRest:new Map},this._onFrame=this._onFrame.bind(this),t&&(this._flush=t),e&&this.start({default:!0,...e})}get idle(){return!this._state.asyncTo&&Object.values(this.springs).every(e=>e.idle&&!e.isDelayed&&!e.isPaused)}get item(){return this._item}set item(e){this._item=e}get(){const e={};return this.each((t,n)=>e[n]=t.get()),e}set(e){for(const t in e){const n=e[t];xe.und(n)||this.springs[t].set(n)}}update(e){return e&&this.queue.push(Ko(e)),this}start(e){let{queue:t}=this;return e?t=Un(e).map(Ko):this.queue=[],this._flush?this._flush(this,t):(Qv(this,t),If(this,t))}stop(e,t){if(e!==!!e&&(t=e),t){const n=this.springs;rt(Un(t),r=>n[r].stop(!!e))}else Ho(this._state,this._lastAsyncId),this.each(n=>n.stop(!!e));return this}pause(e){if(xe.und(e))this.start({pause:!0});else{const t=this.springs;rt(Un(e),n=>t[n].pause())}return this}resume(e){if(xe.und(e))this.start({pause:!1});else{const t=this.springs;rt(Un(e),n=>t[n].resume())}return this}each(e){wr(this.springs,e)}_onFrame(){const{onStart:e,onChange:t,onRest:n}=this._events,r=this._active.size>0,i=this._changed.size>0;(r&&!this._started||i&&!this._started)&&(this._started=!0,Mo(e,([c,u])=>{u.value=this.get(),c(u,this,this._item)}));const s=!r&&this._started,o=i||s&&n.size?this.get():null;i&&t.size&&Mo(t,([c,u])=>{u.value=o,c(u,this,this._item)}),s&&(this._started=!1,Mo(n,([c,u])=>{u.value=o,c(u,this,this._item)}))}eventObserved(e){if(e.type=="change")this._changed.add(e.parent),e.idle||this._active.add(e.parent);else if(e.type=="idle")this._active.delete(e.parent);else return;qe.onFrame(this._onFrame)}};function If(e,t){return Promise.all(t.map(n=>Hv(e,n))).then(n=>Sf(e,n))}async function Hv(e,t,n){const{keys:r,to:i,from:s,loop:o,onRest:c,onResolve:u}=t,d=xe.obj(t.default)&&t.default;o&&(t.loop=!1),i===!1&&(t.to=null),s===!1&&(t.from=null);const f=xe.arr(i)||xe.fun(i)?i:void 0;f?(t.to=void 0,t.onRest=void 0,d&&(d.onRest=void 0)):rt(W6,h=>{const y=t[h];if(xe.fun(y)){const g=e._events[h];t[h]=({finished:b,cancelled:w})=>{const E=g.get(y);E?(b||(E.finished=!1),w&&(E.cancelled=!0)):g.set(y,{value:null,finished:b||!1,cancelled:w||!1})},d&&(d[h]=t[h])}});const p=e._state;t.pause===!p.paused?(p.paused=t.pause,Do(t.pause?p.pauseQueue:p.resumeQueue)):p.paused&&(t.pause=!0);const l=(r||Object.keys(e.springs)).map(h=>e.springs[h].start(t)),v=t.cancel===!0||Ov(t,"cancel")===!0;(f||v&&p.asyncId)&&l.push(Dv(++e._lastAsyncId,{props:t,state:p,actions:{pause:af,resume:af,start(h,y){v?(Ho(p,e._lastAsyncId),y(Os(e))):(h.onRest=c,y(jv(f,h,p,e)))}}})),p.paused&&await new Promise(h=>{p.resumeQueue.add(h)});const a=Sf(e,await Promise.all(l));if(o&&a.finished&&!(n&&a.noop)){const h=qv(t,o,i);if(h)return Qv(e,[h]),Hv(e,h,!0)}return u&&qe.batchedUpdates(()=>u(a,e,e.item)),a}function Yv(e,t){const n={...e.springs};return t&&rt(Un(t),r=>{xe.und(r.keys)&&(r=Ko(r)),xe.obj(r.to)||(r={...r,to:void 0}),zv(n,r,i=>Kv(i))}),Wv(e,n),n}function Wv(e,t){wr(t,(n,r)=>{e.springs[r]||(e.springs[r]=n,ks(n,e))})}function Kv(e,t){const n=new G6;return n.key=e,t&&ks(n,t),n}function zv(e,t,n){t.keys&&rt(t.keys,r=>{(e[r]||(e[r]=n(r)))._prepareNode(t)})}function Qv(e,t){rt(t,n=>{zv(e.springs,n,r=>Kv(r,e))})}var iu=({children:e,...t})=>{const n=I.useContext(su),r=t.pause||!!n.pause,i=t.immediate||!!n.immediate;t=x6(()=>({pause:r,immediate:i}),[r,i]);const{Provider:s}=su;return se.createElement(s,{value:t},e)},su=Q6(iu,{});iu.Provider=su.Provider,iu.Consumer=su.Consumer;function Q6(e,t){return Object.assign(e,se.createContext(t)),e.Provider._context=e,e.Consumer._context=e,e}var J6=()=>{const e=[],t=function(r){E6();const i=[];return rt(e,(s,o)=>{if(xe.und(r))i.push(s.start());else{const c=n(r,s,o);c&&i.push(s.start(c))}}),i};t.current=e,t.add=function(r){e.includes(r)||e.push(r)},t.delete=function(r){const i=e.indexOf(r);~i&&e.splice(i,1)},t.pause=function(){return rt(e,r=>r.pause(...arguments)),this},t.resume=function(){return rt(e,r=>r.resume(...arguments)),this},t.set=function(r){rt(e,(i,s)=>{const o=xe.fun(r)?r(s,i):r;o&&i.set(o)})},t.start=function(r){const i=[];return rt(e,(s,o)=>{if(xe.und(r))i.push(s.start());else{const c=this._getProps(r,s,o);c&&i.push(s.start(c))}}),i},t.stop=function(){return rt(e,r=>r.stop(...arguments)),this},t.update=function(r){return rt(e,(i,s)=>i.update(this._getProps(r,i,s))),this};const n=function(r,i,s){return xe.fun(r)?r(s,i):r};return t._getProps=n,t};function Z6(e,t,n){const r=xe.fun(t)&&t;r&&!n&&(n=[]);const i=I.useMemo(()=>r||arguments.length==3?J6():void 0,[]),s=I.useRef(0),o=Ev(),c=I.useMemo(()=>({ctrls:[],queue:[],flush(g,b){const w=Yv(g,b);return s.current>0&&!c.queue.length&&!Object.keys(w).some(S=>!g.springs[S])?If(g,b):new Promise(S=>{Wv(g,w),c.queue.push(()=>{S(If(g,b))}),o()})}}),[]),u=I.useRef([...c.ctrls]),d=[],f=xv(e)||0;I.useMemo(()=>{rt(u.current.slice(e,f),g=>{L6(g,i),g.stop(!0)}),u.current.length=e,p(f,e)},[e]),I.useMemo(()=>{p(0,Math.min(f,e))},n);function p(g,b){for(let w=g;w<b;w++){const E=u.current[w]||(u.current[w]=new z6(null,c.flush)),S=r?r(w,E):t[w];S&&(d[w]=H6(S))}}const l=u.current.map((g,b)=>Yv(g,d[b])),v=I.useContext(iu),a=xv(v),h=v!==a&&j6(v);gf(()=>{s.current++,c.ctrls=u.current;const{queue:g}=c;g.length&&(c.queue=[],rt(g,b=>b())),rt(u.current,(b,w)=>{i==null||i.add(b),h&&b.start({default:v});const E=d[w];E&&(B6(b,E.ref),b.ref?b.queue.push(E):b.start(E))})}),Sv(()=>()=>{rt(c.ctrls,g=>g.stop(!0))});const y=l.map(g=>({...g}));return i?[y,i]:y}function X6(e,t){const n=xe.fun(e),[[r],i]=Z6(1,n?e:[e],n?[]:t);return n||arguments.length==2?[r,i]:r}var eO=class extends Cf{constructor(e,t){super(),this.source=e,this.idle=!0,this._active=new Set,this.calc=jo(...t);const n=this._get(),r=vf(n);yf(this,r.create(n))}advance(e){const t=this._get(),n=this.get();Lr(t,n)||(Er(this).setValue(t),this._onChange(t,this.idle)),!this.idle&&Jv(this._active)&&kf(this)}_get(){const e=xe.arr(this.source)?this.source.map(In):Un(In(this.source));return this.calc(...e)}_start(){this.idle&&!Jv(this._active)&&(this.idle=!1,rt(tu(this),e=>{e.done=!1}),cr.skipAnimation?(qe.batchedUpdates(()=>this.advance()),kf(this)):Hc.start(this))}_attach(){let e=1;rt(Un(this.source),t=>{Zn(t)&&ks(t,this),xf(t)&&(t.idle||this._active.add(t),e=Math.max(e,t.priority+1))}),this.priority=e,this._start()}_detach(){rt(Un(this.source),e=>{Zn(e)&&Fo(e,this)}),this._active.clear(),kf(this)}eventObserved(e){e.type=="change"?e.idle?this.advance():(this._active.add(e.parent),this._start()):e.type=="idle"?this._active.delete(e.parent):e.type=="priority"&&(this.priority=Un(this.source).reduce((t,n)=>Math.max(t,(xf(n)?n.priority:0)+1),0))}};function tO(e){return e.idle!==!1}function Jv(e){return!e.size||Array.from(e).every(tO)}function kf(e){e.idle||(e.idle=!0,rt(tu(e),t=>{t.done=!0}),Bo(e,{type:"idle",parent:e}))}cr.assign({createStringInterpolator:bv,to:(e,t)=>new eO(e,t)});var Zv=/^--/;function nO(e,t){return t==null||typeof t=="boolean"||t===""?"":typeof t=="number"&&t!==0&&!Zv.test(e)&&!(Qo.hasOwnProperty(e)&&Qo[e])?t+"px":(""+t).trim()}var Xv={};function rO(e,t){if(!e.nodeType||!e.setAttribute)return!1;const n=e.nodeName==="filter"||e.parentNode&&e.parentNode.nodeName==="filter",{style:r,children:i,scrollTop:s,scrollLeft:o,viewBox:c,...u}=t,d=Object.values(u),f=Object.keys(u).map(p=>n||e.hasAttribute(p)?p:Xv[p]||(Xv[p]=p.replace(/([A-Z])/g,l=>"-"+l.toLowerCase())));i!==void 0&&(e.textContent=i);for(const p in r)if(r.hasOwnProperty(p)){const l=nO(p,r[p]);Zv.test(p)?e.style.setProperty(p,l):e.style[p]=l}f.forEach((p,l)=>{e.setAttribute(p,d[l])}),s!==void 0&&(e.scrollTop=s),o!==void 0&&(e.scrollLeft=o),c!==void 0&&e.setAttribute("viewBox",c)}var Qo={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},iO=(e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1),sO=["Webkit","Ms","Moz","O"];Qo=Object.keys(Qo).reduce((e,t)=>(sO.forEach(n=>e[iO(n,t)]=e[t]),e),Qo);var oO=/^(matrix|translate|scale|rotate|skew)/,aO=/^(translate)/,cO=/^(rotate|skew)/,Of=(e,t)=>xe.num(e)&&e!==0?e+t:e,ou=(e,t)=>xe.arr(e)?e.every(n=>ou(n,t)):xe.num(e)?e===t:parseFloat(e)===t,uO=class extends ru{constructor({x:e,y:t,z:n,...r}){const i=[],s=[];(e||t||n)&&(i.push([e||0,t||0,n||0]),s.push(o=>[`translate3d(${o.map(c=>Of(c,"px")).join(",")})`,ou(o,0)])),wr(r,(o,c)=>{if(c==="transform")i.push([o||""]),s.push(u=>[u,u===""]);else if(oO.test(c)){if(delete r[c],xe.und(o))return;const u=aO.test(c)?"px":cO.test(c)?"deg":"";i.push(Un(o)),s.push(c==="rotate3d"?([d,f,p,l])=>[`rotate3d(${d},${f},${p},${Of(l,u)})`,ou(l,0)]:d=>[`${c}(${d.map(f=>Of(f,u)).join(",")})`,ou(d,c.startsWith("scale")?1:0)])}}),i.length&&(r.transform=new lO(i,s)),super(r)}},lO=class extends mv{constructor(e,t){super(),this.inputs=e,this.transforms=t,this._value=null}get(){return this._value||(this._value=this._get())}_get(){let e="",t=!0;return rt(this.inputs,(n,r)=>{const i=In(n[0]),[s,o]=this.transforms[r](xe.arr(i)?i:n.map(In));e+=" "+s,t=t&&o}),t?"none":e}observerAdded(e){e==1&&rt(this.inputs,t=>rt(t,n=>Zn(n)&&ks(n,this)))}observerRemoved(e){e==0&&rt(this.inputs,t=>rt(t,n=>Zn(n)&&Fo(n,this)))}eventObserved(e){e.type=="change"&&(this._value=null),Bo(this,e)}},dO=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"];cr.assign({batchedUpdates:Vi.unstable_batchedUpdates,createStringInterpolator:bv,colors:Zk});var fO=R6(dO,{applyAnimatedValues:rO,createAnimatedStyle:e=>new uO(e),getComponentProps:({scrollTop:e,scrollLeft:t,...n})=>n}),hO=fO.animated;function au(e){const{rows:t}=e,n=X6({from:{opacity:0},to:{opacity:1}});return m.jsxs(hO.div,{style:n,className:"flex w-full animate-pulse flex-col items-start space-y-3",children:[[...Array(t)].map((r,i)=>m.jsx("div",{className:"h-10 w-full rounded-lg bg-gray-100 p-5"},`skeleton_rows_${i}`)),m.jsx("span",{className:"sr-only",children:"Loading..."})]})}function e1({children:e,offset:t,max:n=4,initialCollapsed:r=!0}){const i=I.useRef(null),[s,o]=I.useState(0),[c,u]=I.useState(r),d=c&&I.Children.count(e)>n?n:I.Children.count(e);I.useEffect(()=>{i.current&&(s?c?i.current.style.marginBottom=`-${s-(s/d+(d-1)*(t??s/d/7.5))}px`:i.current.style.marginBottom="unset":o(i.current.offsetHeight))},[c,s]);const f=l=>(100-(d-1-l))/100,p=l=>l*(s/d-(t??s/d/7.5));return m.jsx("div",{ref:i,className:"hover:cursor-pointer",onClick:()=>d>1&&u(!c),children:I.Children.map(I.Children.toArray(e).slice(-1*d),(l,v)=>m.jsx("div",{className:`${!c&&"[&:not(:last-child)]:mb-1"} h-full w-full transition-all duration-300 ease-in-out`,style:{transform:c&&d>1?`scaleX(${f(v)}) translateY(-${p(v)}px)`:void 0},children:l}))})}const pO=_s("flex flex-shrink bg-white rounded-full transform transition-transform ease-out",{variants:{size:{md:"w-3 h-3",lg:"w-7 h-7"}}}),mO=_s("",{variants:{size:{md:"pr-4",lg:"pr-6"}}}),gO=({id:e,disabled:t,onChange:n,defaultChecked:r=!1,size:i="md"})=>{const s=t,[o,c]=I.useState(r),[u,d]=I.useState(!1),f=()=>{s||(c(!o),n&&n())},p=()=>{t||d(!0)},l=()=>{d(!1)},v=ln("relative py-0.5 pl-0.5 rounded-full",{"ring-2 ring-core-white-900 outline-core-primary-500 outline outline-2 outline-offset-2":u,"bg-core-primary-500 hover:bg-core-primary-600":o&&!t,"bg-core-gray-200 hover:bg-core-gray-300":!o&&!t,"bg-core-gray-100":t},mO({size:i})),a=i==="lg"?"translate-x-[1.375rem] ease-out":"translate-x-3.5 ease-out";return m.jsxs("div",{className:`inline-flex items-center py-1 ${s?"pointer-events-none":"cursor-pointer "}`,onClick:f,onFocus:p,children:[m.jsx("input",{className:"sr-only ",id:e,type:"checkbox",checked:o,disabled:s,onBlur:l,onChange:f,onFocus:p}),m.jsx("div",{className:v,children:m.jsx("div",{className:ln(pO({size:i}),`${o?a:""} ${s?"shadow-none":"shadow-xs"}`)})})]})},Rf=({id:e,children:t,size:n="md",description:r,toggleLeft:i=!0,disabled:s,helperText:o,defaultChecked:c=!1,label:u,required:d=!1,tooltip:f,onChange:p})=>{const l=I.useId(),v=e??l;return m.jsxs("div",{className:`flex ${i?"flex-row":"flex-row-reverse"} items-start gap-3`,children:[m.jsx(gO,{disabled:s,defaultChecked:c,id:v,size:n,onChange:p}),t||(u||r||f||o)&&m.jsxs("div",{className:"inline-flex w-full flex-col self-center",children:[m.jsx(Sn,{className:ln("font-normal"),description:r,required:d,tooltip:f,htmlFor:v,disabled:s,children:u}),m.jsx(Sn.Helper,{disabled:s,helperText:o})]})]})};Rf.displayName="Switch";const t1=I.createContext(null);function yO(e=!1){const t=I.useContext(t1);if(!t&&!e)throw new Error("Switch.Item must be used within a SwitchGroup or SwitchGroup.Root");return t}const n1=I.forwardRef(({toggleLeft:e=!1,size:t="md",children:n,description:r,disabled:i,helperText:s,id:o,label:c,required:u,tooltip:d},f)=>{const p=I.useId(),l=o??p,v=c??r??d??s?m.jsxs("div",{className:"inline-flex flex-col",children:[m.jsx(Sn,{className:"cursor-default",description:r,required:u,tooltip:d,htmlFor:l,disabled:i,children:c}),m.jsx(Sn.Helper,{disabled:i,helperText:s})]}):null;return m.jsx(t1.Provider,{value:{disabled:i,toggleLeft:e,size:t},children:m.jsxs("div",{ref:f,"aria-describedby":s?`${l}__describer`:void 0,"aria-labelledby":c?`${l}__label`:void 0,className:"flex flex-col gap-4",role:"group",children:[c??s??r??d?m.jsx("div",{className:"flex flex-col",children:v}):null,n?m.jsx("div",{className:ln("flex flex-col gap-2"),children:n}):null]})})});n1.displayName="SwitchGroup",Object.assign(n1,{Item:({disabled:e,label:t,defaultChecked:n})=>{const r=yO(),{disabled:i,size:s,toggleLeft:o}=r??{};return m.jsx(Rf,{toggleLeft:o,disabled:e??i,label:t,defaultChecked:n,size:s})}});const vO=({children:e})=>m.jsx("div",{className:"fixed bottom-0 z-10 flex h-[70px] w-full border-b-0 border-t border-gray-100 bg-white lg:bottom-auto lg:top-0 lg:h-[50px] lg:border-b lg:border-t-0",children:e}),bO=({id:e,label:t,icon:n,pathname:r,activeTab:i,setActiveTab:s})=>m.jsx(My,{className:"flex flex-grow items-center",to:r??"",children:m.jsxs("button",{className:`flex h-full flex-grow flex-col items-center justify-center gap-1 border-b-0 border-t-2 px-3 py-3 text-xs focus:outline-none lg:flex-row lg:border-b-2 lg:border-t-0 lg:text-sm ${i===e?"border-core-primary-500 text-core-primary-500":"border-transparent text-core-gray-500 hover:text-core-gray-800"}`,onClick:()=>s(e),children:[m.jsx(an,{icon:n,className:"mr-2",variant:i===e?"discovery":"secondary"}),t]})});function Fi({onSubmit:e,children:t}){const n=r=>{r.preventDefault(),e&&e(r)};return m.jsx("form",{onSubmit:n,children:t})}var r1={},kn={};Object.defineProperty(kn,"__esModule",{value:!0}),kn.compactObject=a1,kn.deprecated=IO;var wO=kn.detectBrowser=kO;kn.disableLog=_O,kn.disableWarnings=AO,kn.extractVersion=cu,kn.filterStats=OO,kn.log=TO,kn.walkStats=uu,kn.wrapPeerConnectionEvent=CO;function EO(e,t,n){return t=SO(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function SO(e){var t=xO(e,"string");return yi(t)=="symbol"?t:t+""}function xO(e,t){if(yi(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(yi(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function yi(e){"@babel/helpers - typeof";return yi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},yi(e)}var i1=!0,s1=!0;function cu(e,t,n){var r=e.match(t);return r&&r.length>=n&&parseInt(r[n],10)}function CO(e,t,n){if(e.RTCPeerConnection){var r=e.RTCPeerConnection.prototype,i=r.addEventListener;r.addEventListener=function(o,c){if(o!==t)return i.apply(this,arguments);var u=function(f){var p=n(f);p&&(c.handleEvent?c.handleEvent(p):c(p))};return this._eventMap=this._eventMap||{},this._eventMap[t]||(this._eventMap[t]=new Map),this._eventMap[t].set(c,u),i.apply(this,[o,u])};var s=r.removeEventListener;r.removeEventListener=function(o,c){if(o!==t||!this._eventMap||!this._eventMap[t])return s.apply(this,arguments);if(!this._eventMap[t].has(c))return s.apply(this,arguments);var u=this._eventMap[t].get(c);return this._eventMap[t].delete(c),this._eventMap[t].size===0&&delete this._eventMap[t],Object.keys(this._eventMap).length===0&&delete this._eventMap,s.apply(this,[o,u])},Object.defineProperty(r,"on"+t,{get:function(){return this["_on"+t]},set:function(c){this["_on"+t]&&(this.removeEventListener(t,this["_on"+t]),delete this["_on"+t]),c&&this.addEventListener(t,this["_on"+t]=c)},enumerable:!0,configurable:!0})}}function _O(e){return typeof e!="boolean"?new Error("Argument type: "+yi(e)+". Please use a boolean."):(i1=e,e?"adapter.js logging disabled":"adapter.js logging enabled")}function AO(e){return typeof e!="boolean"?new Error("Argument type: "+yi(e)+". Please use a boolean."):(s1=!e,"adapter.js deprecation warnings "+(e?"disabled":"enabled"))}function TO(){if((typeof window>"u"?"undefined":yi(window))==="object"){if(i1)return;typeof console<"u"&&typeof console.log=="function"&&console.log.apply(console,arguments)}}function IO(e,t){s1&&console.warn(e+" is deprecated, please use "+t+" instead.")}function kO(e){var t={browser:null,version:null};if(typeof e>"u"||!e.navigator||!e.navigator.userAgent)return t.browser="Not a browser.",t;var n=e.navigator;if(n.userAgentData&&n.userAgentData.brands){var r=n.userAgentData.brands.find(function(i){return i.brand==="Chromium"});if(r)return{browser:"chrome",version:parseInt(r.version,10)}}if(n.mozGetUserMedia)t.browser="firefox",t.version=cu(n.userAgent,/Firefox\/(\d+)\./,1);else if(n.webkitGetUserMedia||e.isSecureContext===!1&&e.webkitRTCPeerConnection)t.browser="chrome",t.version=cu(n.userAgent,/Chrom(e|ium)\/(\d+)\./,2);else if(e.RTCPeerConnection&&n.userAgent.match(/AppleWebKit\/(\d+)\./))t.browser="safari",t.version=cu(n.userAgent,/AppleWebKit\/(\d+)\./,1),t.supportsUnifiedPlan=e.RTCRtpTransceiver&&"currentDirection"in e.RTCRtpTransceiver.prototype;else return t.browser="Not a supported browser.",t;return t}function o1(e){return Object.prototype.toString.call(e)==="[object Object]"}function a1(e){return o1(e)?Object.keys(e).reduce(function(t,n){var r=o1(e[n]),i=r?a1(e[n]):e[n],s=r&&!Object.keys(i).length;return i===void 0||s?t:Object.assign(t,EO({},n,i))},{}):e}function uu(e,t,n){!t||n.has(t.id)||(n.set(t.id,t),Object.keys(t).forEach(function(r){r.endsWith("Id")?uu(e,e.get(t[r]),n):r.endsWith("Ids")&&t[r].forEach(function(i){uu(e,e.get(i),n)})}))}function OO(e,t,n){var r=n?"outbound-rtp":"inbound-rtp",i=new Map;if(t===null)return i;var s=[];return e.forEach(function(o){o.type==="track"&&o.trackIdentifier===t.id&&s.push(o)}),s.forEach(function(o){e.forEach(function(c){c.type===r&&c.trackId===o.id&&uu(e,c,i)})}),i}Object.defineProperty(r1,"__esModule",{value:!0});var RO=r1.shimGetUserMedia=DO,NO=MO(kn);function c1(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(c1=function(i){return i?n:t})(e)}function MO(e,t){if(e&&e.__esModule)return e;if(e===null||vi(e)!="object"&&typeof e!="function")return{default:e};var n=c1(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if(s!=="default"&&{}.hasOwnProperty.call(e,s)){var o=i?Object.getOwnPropertyDescriptor(e,s):null;o&&(o.get||o.set)?Object.defineProperty(r,s,o):r[s]=e[s]}return r.default=e,n&&n.set(e,r),r}function vi(e){"@babel/helpers - typeof";return vi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},vi(e)}var u1=NO.log;function DO(e,t){var n=e&&e.navigator;if(n.mediaDevices){var r=function(d){if(vi(d)!=="object"||d.mandatory||d.optional)return d;var f={};return Object.keys(d).forEach(function(p){if(!(p==="require"||p==="advanced"||p==="mediaSource")){var l=vi(d[p])==="object"?d[p]:{ideal:d[p]};l.exact!==void 0&&typeof l.exact=="number"&&(l.min=l.max=l.exact);var v=function(y,g){return y?y+g.charAt(0).toUpperCase()+g.slice(1):g==="deviceId"?"sourceId":g};if(l.ideal!==void 0){f.optional=f.optional||[];var a={};typeof l.ideal=="number"?(a[v("min",p)]=l.ideal,f.optional.push(a),a={},a[v("max",p)]=l.ideal,f.optional.push(a)):(a[v("",p)]=l.ideal,f.optional.push(a))}l.exact!==void 0&&typeof l.exact!="number"?(f.mandatory=f.mandatory||{},f.mandatory[v("",p)]=l.exact):["min","max"].forEach(function(h){l[h]!==void 0&&(f.mandatory=f.mandatory||{},f.mandatory[v(h,p)]=l[h])})}}),d.advanced&&(f.optional=(f.optional||[]).concat(d.advanced)),f},i=function(d,f){if(t.version>=61)return f(d);if(d=JSON.parse(JSON.stringify(d)),d&&vi(d.audio)==="object"){var p=function(y,g,b){g in y&&!(b in y)&&(y[b]=y[g],delete y[g])};d=JSON.parse(JSON.stringify(d)),p(d.audio,"autoGainControl","googAutoGainControl"),p(d.audio,"noiseSuppression","googNoiseSuppression"),d.audio=r(d.audio)}if(d&&vi(d.video)==="object"){var l=d.video.facingMode;l=l&&(vi(l)==="object"?l:{ideal:l});var v=t.version<66;if(l&&(l.exact==="user"||l.exact==="environment"||l.ideal==="user"||l.ideal==="environment")&&!(n.mediaDevices.getSupportedConstraints&&n.mediaDevices.getSupportedConstraints().facingMode&&!v)){delete d.video.facingMode;var a;if(l.exact==="environment"||l.ideal==="environment"?a=["back","rear"]:(l.exact==="user"||l.ideal==="user")&&(a=["front"]),a)return n.mediaDevices.enumerateDevices().then(function(h){h=h.filter(function(g){return g.kind==="videoinput"});var y=h.find(function(g){return a.some(function(b){return g.label.toLowerCase().includes(b)})});return!y&&h.length&&a.includes("back")&&(y=h[h.length-1]),y&&(d.video.deviceId=l.exact?{exact:y.deviceId}:{ideal:y.deviceId}),d.video=r(d.video),u1("chrome: "+JSON.stringify(d)),f(d)})}d.video=r(d.video)}return u1("chrome: "+JSON.stringify(d)),f(d)},s=function(d){return t.version>=64?d:{name:{PermissionDeniedError:"NotAllowedError",PermissionDismissedError:"NotAllowedError",InvalidStateError:"NotAllowedError",DevicesNotFoundError:"NotFoundError",ConstraintNotSatisfiedError:"OverconstrainedError",TrackStartError:"NotReadableError",MediaDeviceFailedDueToShutdown:"NotAllowedError",MediaDeviceKillSwitchOn:"NotAllowedError",TabCaptureError:"AbortError",ScreenCaptureError:"AbortError",DeviceCaptureError:"AbortError"}[d.name]||d.name,message:d.message,constraint:d.constraint||d.constraintName,toString:function(){return this.name+(this.message&&": ")+this.message}}},o=function(d,f,p){i(d,function(l){n.webkitGetUserMedia(l,f,function(v){p&&p(s(v))})})};if(n.getUserMedia=o.bind(n),n.mediaDevices.getUserMedia){var c=n.mediaDevices.getUserMedia.bind(n.mediaDevices);n.mediaDevices.getUserMedia=function(u){return i(u,function(d){return c(d).then(function(f){if(d.audio&&!f.getAudioTracks().length||d.video&&!f.getVideoTracks().length)throw f.getTracks().forEach(function(p){p.stop()}),new DOMException("","NotFoundError");return f},function(f){return Promise.reject(s(f))})})}}}}var l1={};Object.defineProperty(l1,"__esModule",{value:!0});var PO=l1.shimGetUserMedia=BO,jO=LO(kn);function d1(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(d1=function(i){return i?n:t})(e)}function LO(e,t){if(e&&e.__esModule)return e;if(e===null||Rs(e)!="object"&&typeof e!="function")return{default:e};var n=d1(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if(s!=="default"&&{}.hasOwnProperty.call(e,s)){var o=i?Object.getOwnPropertyDescriptor(e,s):null;o&&(o.get||o.set)?Object.defineProperty(r,s,o):r[s]=e[s]}return r.default=e,n&&n.set(e,r),r}function Rs(e){"@babel/helpers - typeof";return Rs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Rs(e)}function BO(e,t){var n=e&&e.navigator,r=e&&e.MediaStreamTrack;if(n.getUserMedia=function(u,d,f){jO.deprecated("navigator.getUserMedia","navigator.mediaDevices.getUserMedia"),n.mediaDevices.getUserMedia(u).then(d,f)},!(t.version>55&&"autoGainControl"in n.mediaDevices.getSupportedConstraints())){var i=function(d,f,p){f in d&&!(p in d)&&(d[p]=d[f],delete d[f])},s=n.mediaDevices.getUserMedia.bind(n.mediaDevices);if(n.mediaDevices.getUserMedia=function(u){return Rs(u)==="object"&&Rs(u.audio)==="object"&&(u=JSON.parse(JSON.stringify(u)),i(u.audio,"autoGainControl","mozAutoGainControl"),i(u.audio,"noiseSuppression","mozNoiseSuppression")),s(u)},r&&r.prototype.getSettings){var o=r.prototype.getSettings;r.prototype.getSettings=function(){var u=o.apply(this,arguments);return i(u,"mozAutoGainControl","autoGainControl"),i(u,"mozNoiseSuppression","noiseSuppression"),u}}if(r&&r.prototype.applyConstraints){var c=r.prototype.applyConstraints;r.prototype.applyConstraints=function(u){return this.kind==="audio"&&Rs(u)==="object"&&(u=JSON.parse(JSON.stringify(u)),i(u,"autoGainControl","mozAutoGainControl"),i(u,"noiseSuppression","mozNoiseSuppression")),c.apply(this,[u])}}}}var Sr={};Object.defineProperty(Sr,"__esModule",{value:!0}),Sr.shimAudioContext=KO,Sr.shimCallbacksAPI=$O,Sr.shimConstraints=p1,Sr.shimCreateOfferLegacy=WO;var FO=Sr.shimGetUserMedia=GO;Sr.shimLocalStreamsAPI=VO,Sr.shimRTCIceServerUrls=HO,Sr.shimRemoteStreamsAPI=qO,Sr.shimTrackEventTransceiver=YO;var f1=UO(kn);function h1(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(h1=function(i){return i?n:t})(e)}function UO(e,t){if(e&&e.__esModule)return e;if(e===null||bi(e)!="object"&&typeof e!="function")return{default:e};var n=h1(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if(s!=="default"&&{}.hasOwnProperty.call(e,s)){var o=i?Object.getOwnPropertyDescriptor(e,s):null;o&&(o.get||o.set)?Object.defineProperty(r,s,o):r[s]=e[s]}return r.default=e,n&&n.set(e,r),r}function bi(e){"@babel/helpers - typeof";return bi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},bi(e)}function VO(e){if(!(bi(e)!=="object"||!e.RTCPeerConnection)){if("getLocalStreams"in e.RTCPeerConnection.prototype||(e.RTCPeerConnection.prototype.getLocalStreams=function(){return this._localStreams||(this._localStreams=[]),this._localStreams}),!("addStream"in e.RTCPeerConnection.prototype)){var t=e.RTCPeerConnection.prototype.addTrack;e.RTCPeerConnection.prototype.addStream=function(r){var i=this;this._localStreams||(this._localStreams=[]),this._localStreams.includes(r)||this._localStreams.push(r),r.getAudioTracks().forEach(function(s){return t.call(i,s,r)}),r.getVideoTracks().forEach(function(s){return t.call(i,s,r)})},e.RTCPeerConnection.prototype.addTrack=function(r){for(var i=this,s=arguments.length,o=new Array(s>1?s-1:0),c=1;c<s;c++)o[c-1]=arguments[c];return o&&o.forEach(function(u){i._localStreams?i._localStreams.includes(u)||i._localStreams.push(u):i._localStreams=[u]}),t.apply(this,arguments)}}"removeStream"in e.RTCPeerConnection.prototype||(e.RTCPeerConnection.prototype.removeStream=function(r){var i=this;this._localStreams||(this._localStreams=[]);var s=this._localStreams.indexOf(r);if(s!==-1){this._localStreams.splice(s,1);var o=r.getTracks();this.getSenders().forEach(function(c){o.includes(c.track)&&i.removeTrack(c)})}})}}function qO(e){if(!(bi(e)!=="object"||!e.RTCPeerConnection)&&("getRemoteStreams"in e.RTCPeerConnection.prototype||(e.RTCPeerConnection.prototype.getRemoteStreams=function(){return this._remoteStreams?this._remoteStreams:[]}),!("onaddstream"in e.RTCPeerConnection.prototype))){Object.defineProperty(e.RTCPeerConnection.prototype,"onaddstream",{get:function(){return this._onaddstream},set:function(r){var i=this;this._onaddstream&&(this.removeEventListener("addstream",this._onaddstream),this.removeEventListener("track",this._onaddstreampoly)),this.addEventListener("addstream",this._onaddstream=r),this.addEventListener("track",this._onaddstreampoly=function(s){s.streams.forEach(function(o){if(i._remoteStreams||(i._remoteStreams=[]),!i._remoteStreams.includes(o)){i._remoteStreams.push(o);var c=new Event("addstream");c.stream=o,i.dispatchEvent(c)}})})}});var t=e.RTCPeerConnection.prototype.setRemoteDescription;e.RTCPeerConnection.prototype.setRemoteDescription=function(){var r=this;return this._onaddstreampoly||this.addEventListener("track",this._onaddstreampoly=function(i){i.streams.forEach(function(s){if(r._remoteStreams||(r._remoteStreams=[]),!(r._remoteStreams.indexOf(s)>=0)){r._remoteStreams.push(s);var o=new Event("addstream");o.stream=s,r.dispatchEvent(o)}})}),t.apply(r,arguments)}}}function $O(e){if(!(bi(e)!=="object"||!e.RTCPeerConnection)){var t=e.RTCPeerConnection.prototype,n=t.createOffer,r=t.createAnswer,i=t.setLocalDescription,s=t.setRemoteDescription,o=t.addIceCandidate;t.createOffer=function(d,f){var p=arguments.length>=2?arguments[2]:arguments[0],l=n.apply(this,[p]);return f?(l.then(d,f),Promise.resolve()):l},t.createAnswer=function(d,f){var p=arguments.length>=2?arguments[2]:arguments[0],l=r.apply(this,[p]);return f?(l.then(d,f),Promise.resolve()):l};var c=function(d,f,p){var l=i.apply(this,[d]);return p?(l.then(f,p),Promise.resolve()):l};t.setLocalDescription=c,c=function(d,f,p){var l=s.apply(this,[d]);return p?(l.then(f,p),Promise.resolve()):l},t.setRemoteDescription=c,c=function(d,f,p){var l=o.apply(this,[d]);return p?(l.then(f,p),Promise.resolve()):l},t.addIceCandidate=c}}function GO(e){var t=e&&e.navigator;if(t.mediaDevices&&t.mediaDevices.getUserMedia){var n=t.mediaDevices,r=n.getUserMedia.bind(n);t.mediaDevices.getUserMedia=function(i){return r(p1(i))}}!t.getUserMedia&&t.mediaDevices&&t.mediaDevices.getUserMedia&&(t.getUserMedia=(function(s,o,c){t.mediaDevices.getUserMedia(s).then(o,c)}).bind(t))}function p1(e){return e&&e.video!==void 0?Object.assign({},e,{video:f1.compactObject(e.video)}):e}function HO(e){if(e.RTCPeerConnection){var t=e.RTCPeerConnection;e.RTCPeerConnection=function(r,i){if(r&&r.iceServers){for(var s=[],o=0;o<r.iceServers.length;o++){var c=r.iceServers[o];c.urls===void 0&&c.url?(f1.deprecated("RTCIceServer.url","RTCIceServer.urls"),c=JSON.parse(JSON.stringify(c)),c.urls=c.url,delete c.url,s.push(c)):s.push(r.iceServers[o])}r.iceServers=s}return new t(r,i)},e.RTCPeerConnection.prototype=t.prototype,"generateCertificate"in t&&Object.defineProperty(e.RTCPeerConnection,"generateCertificate",{get:function(){return t.generateCertificate}})}}function YO(e){bi(e)==="object"&&e.RTCTrackEvent&&"receiver"in e.RTCTrackEvent.prototype&&!("transceiver"in e.RTCTrackEvent.prototype)&&Object.defineProperty(e.RTCTrackEvent.prototype,"transceiver",{get:function(){return{receiver:this.receiver}}})}function WO(e){var t=e.RTCPeerConnection.prototype.createOffer;e.RTCPeerConnection.prototype.createOffer=function(r){if(r){typeof r.offerToReceiveAudio<"u"&&(r.offerToReceiveAudio=!!r.offerToReceiveAudio);var i=this.getTransceivers().find(function(o){return o.receiver.track.kind==="audio"});r.offerToReceiveAudio===!1&&i?i.direction==="sendrecv"?i.setDirection?i.setDirection("sendonly"):i.direction="sendonly":i.direction==="recvonly"&&(i.setDirection?i.setDirection("inactive"):i.direction="inactive"):r.offerToReceiveAudio===!0&&!i&&this.addTransceiver("audio",{direction:"recvonly"}),typeof r.offerToReceiveVideo<"u"&&(r.offerToReceiveVideo=!!r.offerToReceiveVideo);var s=this.getTransceivers().find(function(o){return o.receiver.track.kind==="video"});r.offerToReceiveVideo===!1&&s?s.direction==="sendrecv"?s.setDirection?s.setDirection("sendonly"):s.direction="sendonly":s.direction==="recvonly"&&(s.setDirection?s.setDirection("inactive"):s.direction="inactive"):r.offerToReceiveVideo===!0&&!s&&this.addTransceiver("video",{direction:"recvonly"})}return t.apply(this,arguments)}}function KO(e){bi(e)!=="object"||e.AudioContext||(e.AudioContext=e.webkitAudioContext)}var m1=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)},g1=(e,t,n)=>(m1(e,t,"read from private field"),n?n.call(e):t.get(e)),zO=(e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)},QO=(e,t,n,r)=>(m1(e,t,"write to private field"),t.set(e,n),n);const y1=["Aztec","Codabar","Code128","Code39","Code93","DataBar","DataBarExpanded","DataMatrix","DXFilmEdge","EAN-13","EAN-8","ITF","Linear-Codes","Matrix-Codes","MaxiCode","MicroQRCode","None","PDF417","QRCode","rMQRCode","UPC-A","UPC-E"];function JO(e){return e.join("|")}function ZO(e){const t=v1(e);let n=0,r=y1.length-1;for(;n<=r;){const i=Math.floor((n+r)/2),s=y1[i],o=v1(s);if(o===t)return s;o<t?n=i+1:r=i-1}return"None"}function v1(e){return e.toLowerCase().replace(/_-\[\]/g,"")}function XO(e,t){return e.Binarizer[t]}function eR(e,t){return e.CharacterSet[t]}const tR=["Text","Binary","Mixed","GS1","ISO15434","UnknownECI"];function nR(e){return tR[e.value]}function rR(e,t){return e.EanAddOnSymbol[t]}function iR(e,t){return e.TextMode[t]}const Ns={formats:[],tryHarder:!0,tryRotate:!0,tryInvert:!0,tryDownscale:!0,binarizer:"LocalAverage",isPure:!1,downscaleFactor:3,downscaleThreshold:500,minLineCount:2,maxNumberOfSymbols:255,tryCode39ExtendedMode:!1,validateCode39CheckSum:!1,validateITFCheckSum:!1,returnCodabarStartEnd:!1,returnErrors:!1,eanAddOnSymbol:"Read",textMode:"Plain",characterSet:"Unknown"};function b1(e,t){return{...t,formats:JO(t.formats),binarizer:XO(e,t.binarizer),eanAddOnSymbol:rR(e,t.eanAddOnSymbol),textMode:iR(e,t.textMode),characterSet:eR(e,t.characterSet)}}function w1(e){return{...e,format:ZO(e.format),eccLevel:e.eccLevel,contentType:nR(e.contentType)}}const sR={locateFile:(e,t)=>{const n=e.match(/_(.+?)\.wasm$/);return n?`https://fastly.jsdelivr.net/npm/zxing-wasm@1.2.11/dist/${n[1]}/${e}`:t+e}};let E1=new WeakMap;function Nf(e,t){var n;const r=E1.get(e);if(r!=null&&r.modulePromise&&t===void 0)return r.modulePromise;const i=(n=r==null?void 0:r.moduleOverrides)!=null?n:sR,s=e({...i});return E1.set(e,{moduleOverrides:i,modulePromise:s}),s}async function oR(e,t,n=Ns){const r={...Ns,...n},i=await Nf(e),{size:s}=t,o=new Uint8Array(await t.arrayBuffer()),c=i._malloc(s);i.HEAPU8.set(o,c);const u=i.readBarcodesFromImage(c,s,b1(i,r));i._free(c);const d=[];for(let f=0;f<u.size();++f)d.push(w1(u.get(f)));return d}async function aR(e,t,n=Ns){const r={...Ns,...n},i=await Nf(e),{data:s,width:o,height:c,data:{byteLength:u}}=t,d=i._malloc(u);i.HEAPU8.set(s,d);const f=i.readBarcodesFromPixmap(d,o,c,b1(i,r));i._free(d);const p=[];for(let l=0;l<f.size();++l)p.push(w1(f.get(l)));return p}({...Ns,formats:[...Ns.formats]});var Mf=(()=>{var e=typeof document<"u"&&document.currentScript?document.currentScript.src:void 0;return function(t={}){var n,r=t,i,s;r.ready=new Promise((C,x)=>{i=C,s=x});var o=Object.assign({},r),c="./this.program",u=typeof window=="object",d=typeof Bun<"u",f=typeof((n=globalThis.WebAssembly)==null?void 0:n.instantiate)=="function",p=typeof importScripts=="function";typeof process=="object"&&typeof process.versions=="object"&&process.versions.node;var l="";function v(C){return r.locateFile?r.locateFile(C,l):l+C}var a;(u||p||d)&&(p?l=self.location.href:typeof document<"u"&&document.currentScript&&(l=document.currentScript.src),e&&(l=e),l.startsWith("blob:")?l="":l=l.substr(0,l.replace(/[?#].*/,"").lastIndexOf("/")+1),p&&(a=C=>{var x=new XMLHttpRequest;return x.open("GET",C,!1),x.responseType="arraybuffer",x.send(null),new Uint8Array(x.response)}));var h=r.print||console.log.bind(console),y=r.printErr||console.error.bind(console);Object.assign(r,o),o=null,r.arguments&&r.arguments,r.thisProgram&&(c=r.thisProgram),r.quit&&r.quit;var g;r.wasmBinary&&(g=r.wasmBinary);var b,w=!1,E,S,A,T,O,M,D,F;function V(){var C=b.buffer;r.HEAP8=E=new Int8Array(C),r.HEAP16=A=new Int16Array(C),r.HEAPU8=S=new Uint8Array(C),r.HEAPU16=T=new Uint16Array(C),r.HEAP32=O=new Int32Array(C),r.HEAPU32=M=new Uint32Array(C),r.HEAPF32=D=new Float32Array(C),r.HEAPF64=F=new Float64Array(C)}var G=[],U=[],R=[];function L(){if(r.preRun)for(typeof r.preRun=="function"&&(r.preRun=[r.preRun]);r.preRun.length;)ee(r.preRun.shift());Z(G)}function Y(){Z(U)}function z(){if(r.postRun)for(typeof r.postRun=="function"&&(r.postRun=[r.postRun]);r.postRun.length;)re(r.postRun.shift());Z(R)}function ee(C){G.unshift(C)}function te(C){U.unshift(C)}function re(C){R.unshift(C)}var he=0,ue=null;function ye(C){var x;he++,(x=r.monitorRunDependencies)===null||x===void 0||x.call(r,he)}function pe(C){var x;if(he--,(x=r.monitorRunDependencies)===null||x===void 0||x.call(r,he),he==0&&ue){var k=ue;ue=null,k()}}function q(C){var x;(x=r.onAbort)===null||x===void 0||x.call(r,C),C="Aborted("+C+")",y(C),w=!0,C+=". Build with -sASSERTIONS for more info.";var k=new WebAssembly.RuntimeError(C);throw s(k),k}var $="data:application/octet-stream;base64,",Q=C=>C.startsWith($),_;_="zxing_reader.wasm",Q(_)||(_=v(_));function j(C){if(C==_&&g)return new Uint8Array(g);if(a)return a(C);throw"both async and sync fetching of the wasm failed"}function B(C){return!g&&(u||p||d||f)&&typeof fetch=="function"?fetch(C,{credentials:"same-origin"}).then(x=>{if(!x.ok)throw`failed to load wasm binary file at '${C}'`;return x.arrayBuffer()}).catch(()=>j(C)):Promise.resolve().then(()=>j(C))}function N(C,x,k){return B(C).then(P=>WebAssembly.instantiate(P,x)).then(k,P=>{y(`failed to asynchronously prepare wasm: ${P}`),q(P)})}function X(C,x,k,P){return!C&&typeof WebAssembly.instantiateStreaming=="function"&&!Q(x)&&typeof fetch=="function"?fetch(x,{credentials:"same-origin"}).then(K=>{var ne=WebAssembly.instantiateStreaming(K,k);return ne.then(P,function(oe){return y(`wasm streaming compile failed: ${oe}`),y("falling back to ArrayBuffer instantiation"),N(x,k,P)})}):N(x,k,P)}function J(){var C={a:i9};function x(P,K){return Pt=P.exports,b=Pt.ma,V(),yb=Pt.qa,te(Pt.na),pe(),Pt}ye();function k(P){x(P.instance)}if(r.instantiateWasm)try{return r.instantiateWasm(C,x)}catch(P){y(`Module.instantiateWasm callback failed with error: ${P}`),s(P)}return X(g,_,C,k).catch(s),{}}var Z=C=>{for(;C.length>0;)C.shift()(r)};r.noExitRuntime;var W=[],fe=0,ge=C=>{var x=new be(C);return x.get_caught()||(x.set_caught(!0),fe--),x.set_rethrown(!1),W.push(x),Nb(x.excPtr),x.get_exception_ptr()},le=0,ie=()=>{Ot(0,0);var C=W.pop();Rb(C.excPtr),le=0};class be{constructor(x){this.excPtr=x,this.ptr=x-24}set_type(x){M[this.ptr+4>>2]=x}get_type(){return M[this.ptr+4>>2]}set_destructor(x){M[this.ptr+8>>2]=x}get_destructor(){return M[this.ptr+8>>2]}set_caught(x){x=x?1:0,E[this.ptr+12]=x}get_caught(){return E[this.ptr+12]!=0}set_rethrown(x){x=x?1:0,E[this.ptr+13]=x}get_rethrown(){return E[this.ptr+13]!=0}init(x,k){this.set_adjusted_ptr(0),this.set_type(x),this.set_destructor(k)}set_adjusted_ptr(x){M[this.ptr+16>>2]=x}get_adjusted_ptr(){return M[this.ptr+16>>2]}get_exception_ptr(){var x=Db(this.get_type());if(x)return M[this.excPtr>>2];var k=this.get_adjusted_ptr();return k!==0?k:this.excPtr}}var ae=C=>{throw le||(le=C),le},Ce=C=>{var x=le;if(!x)return ca(0),0;var k=new be(x);k.set_adjusted_ptr(x);var P=k.get_type();if(!P)return ca(0),x;for(var K in C){var ne=C[K];if(ne===0||ne===P)break;var oe=k.ptr+16;if(Mb(ne,P,oe))return ca(ne),x}return ca(P),x},_e=()=>Ce([]),ze=C=>Ce([C]),it=(C,x)=>Ce([C,x]),yt=()=>{var C=W.pop();C||q("no exception to throw");var x=C.excPtr;throw C.get_rethrown()||(W.push(C),C.set_rethrown(!0),C.set_caught(!1),fe++),le=x,le},ht=(C,x,k)=>{var P=new be(C);throw P.init(x,k),le=C,fe++,le},Xn=()=>fe,lt={},en=C=>{for(;C.length;){var x=C.pop(),k=C.pop();k(x)}};function pt(C){return this.fromWireType(M[C>>2])}var Oe={},cn={},Mt={},hn,tn=C=>{throw new hn(C)},pn=(C,x,k)=>{C.forEach(function(ce){Mt[ce]=x});function P(ce){var me=k(ce);me.length!==C.length&&tn("Mismatched type converter count");for(var Ee=0;Ee<C.length;++Ee)De(C[Ee],me[Ee])}var K=new Array(x.length),ne=[],oe=0;x.forEach((ce,me)=>{cn.hasOwnProperty(ce)?K[me]=cn[ce]:(ne.push(ce),Oe.hasOwnProperty(ce)||(Oe[ce]=[]),Oe[ce].push(()=>{K[me]=cn[ce],++oe,oe===ne.length&&P(K)}))}),ne.length===0&&P(K)},On=C=>{var x=lt[C];delete lt[C];var k=x.rawConstructor,P=x.rawDestructor,K=x.fields,ne=K.map(oe=>oe.getterReturnType).concat(K.map(oe=>oe.setterArgumentType));pn([C],ne,oe=>{var ce={};return K.forEach((me,Ee)=>{var Ie=me.fieldName,Je=oe[Ee],Fe=me.getter,at=me.getterContext,Bt=oe[Ee+K.length],gn=me.setter,Rt=me.setterContext;ce[Ie]={read:nn=>Je.fromWireType(Fe(at,nn)),write:(nn,we)=>{var ke=[];gn(Rt,nn,Bt.toWireType(ke,we)),en(ke)}}}),[{name:x.name,fromWireType:me=>{var Ee={};for(var Ie in ce)Ee[Ie]=ce[Ie].read(me);return P(me),Ee},toWireType:(me,Ee)=>{for(var Ie in ce)if(!(Ie in Ee))throw new TypeError(`Missing field: "${Ie}"`);var Je=k();for(Ie in ce)ce[Ie].write(Je,Ee[Ie]);return me!==null&&me.push(P,Je),Je},argPackAdvance:Ye,readValueFromPointer:pt,destructorFunction:P}]})},qn=(C,x,k,P,K)=>{},xn=()=>{for(var C=new Array(256),x=0;x<256;++x)C[x]=String.fromCharCode(x);mn=C},mn,_t=C=>{for(var x="",k=C;S[k];)x+=mn[S[k++]];return x},er,Ae=C=>{throw new er(C)};function Qe(C,x){let k=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};var P=x.name;if(C||Ae(`type "${P}" must have a positive integer typeid pointer`),cn.hasOwnProperty(C)){if(k.ignoreDuplicateRegistrations)return;Ae(`Cannot register type '${P}' twice`)}if(cn[C]=x,delete Mt[C],Oe.hasOwnProperty(C)){var K=Oe[C];delete Oe[C],K.forEach(ne=>ne())}}function De(C,x){let k=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(!("argPackAdvance"in x))throw new TypeError("registerType registeredInstance requires argPackAdvance");return Qe(C,x,k)}var Ye=8,It=(C,x,k,P)=>{x=_t(x),De(C,{name:x,fromWireType:function(K){return!!K},toWireType:function(K,ne){return ne?k:P},argPackAdvance:Ye,readValueFromPointer:function(K){return this.fromWireType(S[K])},destructorFunction:null})},Ps=C=>({count:C.count,deleteScheduled:C.deleteScheduled,preservePointerOnDelete:C.preservePointerOnDelete,ptr:C.ptr,ptrType:C.ptrType,smartPtr:C.smartPtr,smartPtrType:C.smartPtrType}),wi=C=>{function x(k){return k.$$.ptrType.registeredClass.name}Ae(x(C)+" instance already deleted")},js=!1,sa=C=>{},Yf=C=>{C.smartPtr?C.smartPtrType.rawDestructor(C.smartPtr):C.ptrType.registeredClass.rawDestructor(C.ptr)},gu=C=>{C.count.value-=1;var x=C.count.value===0;x&&Yf(C)},yu=(C,x,k)=>{if(x===k)return C;if(k.baseClass===void 0)return null;var P=yu(C,x,k.baseClass);return P===null?null:k.downcast(P)},vu={},H=()=>Object.keys(We).length,ve=()=>{var C=[];for(var x in We)We.hasOwnProperty(x)&&C.push(We[x]);return C},Te=[],Ne=()=>{for(;Te.length;){var C=Te.pop();C.$$.deleteScheduled=!1,C.delete()}},et,gt=C=>{et=C,Te.length&&et&&et(Ne)},tt=()=>{r.getInheritedInstanceCount=H,r.getLiveInheritedInstances=ve,r.flushPendingDeletes=Ne,r.setDelayFunction=gt},We={},un=(C,x)=>{for(x===void 0&&Ae("ptr should not be undefined");C.baseClass;)x=C.upcast(x),C=C.baseClass;return x},kt=(C,x)=>(x=un(C,x),We[x]),Et=(C,x)=>{(!x.ptrType||!x.ptr)&&tn("makeClassHandle requires ptr and ptrType");var k=!!x.smartPtrType,P=!!x.smartPtr;return k!==P&&tn("Both smartPtrType and smartPtr must be specified"),x.count={value:1},tr(Object.create(C,{$$:{value:x,writable:!0}}))};function Rn(C){var x=this.getPointee(C);if(!x)return this.destructor(C),null;var k=kt(this.registeredClass,x);if(k!==void 0){if(k.$$.count.value===0)return k.$$.ptr=x,k.$$.smartPtr=C,k.clone();var P=k.clone();return this.destructor(C),P}function K(){return this.isSmartPointer?Et(this.registeredClass.instancePrototype,{ptrType:this.pointeeType,ptr:x,smartPtrType:this,smartPtr:C}):Et(this.registeredClass.instancePrototype,{ptrType:this,ptr:C})}var ne=this.registeredClass.getActualType(x),oe=vu[ne];if(!oe)return K.call(this);var ce;this.isConst?ce=oe.constPointerType:ce=oe.pointerType;var me=yu(x,this.registeredClass,ce.registeredClass);return me===null?K.call(this):this.isSmartPointer?Et(ce.registeredClass.instancePrototype,{ptrType:ce,ptr:me,smartPtrType:this,smartPtr:C}):Et(ce.registeredClass.instancePrototype,{ptrType:ce,ptr:me})}var tr=C=>typeof FinalizationRegistry>"u"?(tr=x=>x,C):(js=new FinalizationRegistry(x=>{gu(x.$$)}),tr=x=>{var k=x.$$,P=!!k.smartPtr;if(P){var K={$$:k};js.register(x,K,x)}return x},sa=x=>js.unregister(x),tr(C)),Fr=()=>{Object.assign(Qt.prototype,{isAliasOf(C){if(!(this instanceof Qt)||!(C instanceof Qt))return!1;var x=this.$$.ptrType.registeredClass,k=this.$$.ptr;C.$$=C.$$;for(var P=C.$$.ptrType.registeredClass,K=C.$$.ptr;x.baseClass;)k=x.upcast(k),x=x.baseClass;for(;P.baseClass;)K=P.upcast(K),P=P.baseClass;return x===P&&k===K},clone(){if(this.$$.ptr||wi(this),this.$$.preservePointerOnDelete)return this.$$.count.value+=1,this;var C=tr(Object.create(Object.getPrototypeOf(this),{$$:{value:Ps(this.$$)}}));return C.$$.count.value+=1,C.$$.deleteScheduled=!1,C},delete(){this.$$.ptr||wi(this),this.$$.deleteScheduled&&!this.$$.preservePointerOnDelete&&Ae("Object already scheduled for deletion"),sa(this),gu(this.$$),this.$$.preservePointerOnDelete||(this.$$.smartPtr=void 0,this.$$.ptr=void 0)},isDeleted(){return!this.$$.ptr},deleteLater(){return this.$$.ptr||wi(this),this.$$.deleteScheduled&&!this.$$.preservePointerOnDelete&&Ae("Object already scheduled for deletion"),Te.push(this),Te.length===1&&et&&et(Ne),this.$$.deleteScheduled=!0,this}})};function Qt(){}var Ur=(C,x)=>Object.defineProperty(x,"name",{value:C}),bu=(C,x,k)=>{if(C[x].overloadTable===void 0){var P=C[x];C[x]=function(){for(var K=arguments.length,ne=new Array(K),oe=0;oe<K;oe++)ne[oe]=arguments[oe];return C[x].overloadTable.hasOwnProperty(ne.length)||Ae(`Function '${k}' called with an invalid number of arguments (${ne.length}) - expects one of (${C[x].overloadTable})!`),C[x].overloadTable[ne.length].apply(this,ne)},C[x].overloadTable=[],C[x].overloadTable[P.argCount]=P}},oa=(C,x,k)=>{r.hasOwnProperty(C)?((k===void 0||r[C].overloadTable!==void 0&&r[C].overloadTable[k]!==void 0)&&Ae(`Cannot register public name '${C}' twice`),bu(r,C,C),r.hasOwnProperty(k)&&Ae(`Cannot register multiple overloads of a function with the same number of arguments (${k})!`),r[C].overloadTable[k]=x):(r[C]=x,k!==void 0&&(r[C].numArguments=k))},B8=48,F8=57,U8=C=>{if(C===void 0)return"_unknown";C=C.replace(/[^a-zA-Z0-9_]/g,"$");var x=C.charCodeAt(0);return x>=B8&&x<=F8?`_${C}`:C};function V8(C,x,k,P,K,ne,oe,ce){this.name=C,this.constructor=x,this.instancePrototype=k,this.rawDestructor=P,this.baseClass=K,this.getActualType=ne,this.upcast=oe,this.downcast=ce,this.pureVirtualFunctions=[]}var Wf=(C,x,k)=>{for(;x!==k;)x.upcast||Ae(`Expected null or instance of ${k.name}, got an instance of ${x.name}`),C=x.upcast(C),x=x.baseClass;return C};function q8(C,x){if(x===null)return this.isReference&&Ae(`null is not a valid ${this.name}`),0;x.$$||Ae(`Cannot pass "${Xf(x)}" as a ${this.name}`),x.$$.ptr||Ae(`Cannot pass deleted object as a pointer of type ${this.name}`);var k=x.$$.ptrType.registeredClass,P=Wf(x.$$.ptr,k,this.registeredClass);return P}function $8(C,x){var k;if(x===null)return this.isReference&&Ae(`null is not a valid ${this.name}`),this.isSmartPointer?(k=this.rawConstructor(),C!==null&&C.push(this.rawDestructor,k),k):0;(!x||!x.$$)&&Ae(`Cannot pass "${Xf(x)}" as a ${this.name}`),x.$$.ptr||Ae(`Cannot pass deleted object as a pointer of type ${this.name}`),!this.isConst&&x.$$.ptrType.isConst&&Ae(`Cannot convert argument of type ${x.$$.smartPtrType?x.$$.smartPtrType.name:x.$$.ptrType.name} to parameter type ${this.name}`);var P=x.$$.ptrType.registeredClass;if(k=Wf(x.$$.ptr,P,this.registeredClass),this.isSmartPointer)switch(x.$$.smartPtr===void 0&&Ae("Passing raw pointer to smart pointer is illegal"),this.sharingPolicy){case 0:x.$$.smartPtrType===this?k=x.$$.smartPtr:Ae(`Cannot convert argument of type ${x.$$.smartPtrType?x.$$.smartPtrType.name:x.$$.ptrType.name} to parameter type ${this.name}`);break;case 1:k=x.$$.smartPtr;break;case 2:if(x.$$.smartPtrType===this)k=x.$$.smartPtr;else{var K=x.clone();k=this.rawShare(k,qr.toHandle(()=>K.delete())),C!==null&&C.push(this.rawDestructor,k)}break;default:Ae("Unsupporting sharing policy")}return k}function G8(C,x){if(x===null)return this.isReference&&Ae(`null is not a valid ${this.name}`),0;x.$$||Ae(`Cannot pass "${Xf(x)}" as a ${this.name}`),x.$$.ptr||Ae(`Cannot pass deleted object as a pointer of type ${this.name}`),x.$$.ptrType.isConst&&Ae(`Cannot convert argument of type ${x.$$.ptrType.name} to parameter type ${this.name}`);var k=x.$$.ptrType.registeredClass,P=Wf(x.$$.ptr,k,this.registeredClass);return P}var H8=()=>{Object.assign(wu.prototype,{getPointee(C){return this.rawGetPointee&&(C=this.rawGetPointee(C)),C},destructor(C){var x;(x=this.rawDestructor)===null||x===void 0||x.call(this,C)},argPackAdvance:Ye,readValueFromPointer:pt,fromWireType:Rn})};function wu(C,x,k,P,K,ne,oe,ce,me,Ee,Ie){this.name=C,this.registeredClass=x,this.isReference=k,this.isConst=P,this.isSmartPointer=K,this.pointeeType=ne,this.sharingPolicy=oe,this.rawGetPointee=ce,this.rawConstructor=me,this.rawShare=Ee,this.rawDestructor=Ie,!K&&x.baseClass===void 0?P?(this.toWireType=q8,this.destructorFunction=null):(this.toWireType=G8,this.destructorFunction=null):this.toWireType=$8}var gb=(C,x,k)=>{r.hasOwnProperty(C)||tn("Replacing nonexistent public symbol"),r[C].overloadTable!==void 0&&k!==void 0?r[C].overloadTable[k]=x:(r[C]=x,r[C].argCount=k)},Y8=(C,x,k)=>{var P=r["dynCall_"+C];return P(x,...k)},Eu=[],yb,Dt=C=>{var x=Eu[C];return x||(C>=Eu.length&&(Eu.length=C+1),Eu[C]=x=yb.get(C)),x},W8=function(C,x){let k=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(C.includes("j"))return Y8(C,x,k);var P=Dt(x)(...k);return P},K8=(C,x)=>function(){for(var k=arguments.length,P=new Array(k),K=0;K<k;K++)P[K]=arguments[K];return W8(C,x,P)},dr=(C,x)=>{C=_t(C);function k(){return C.includes("j")?K8(C,x):Dt(x)}var P=k();return typeof P!="function"&&Ae(`unknown function pointer with signature ${C}: ${x}`),P},z8=(C,x)=>{var k=Ur(x,function(P){this.name=x,this.message=P;var K=new Error(P).stack;K!==void 0&&(this.stack=this.toString()+`
140
+ `+K.replace(/^Error(:[^\n]*)?\n/,""))});return k.prototype=Object.create(C.prototype),k.prototype.constructor=k,k.prototype.toString=function(){return this.message===void 0?this.name:`${this.name}: ${this.message}`},k},vb,bb=C=>{var x=Ob(C),k=_t(x);return $r(x),k},Su=(C,x)=>{var k=[],P={};function K(ne){if(!P[ne]&&!cn[ne]){if(Mt[ne]){Mt[ne].forEach(K);return}k.push(ne),P[ne]=!0}}throw x.forEach(K),new vb(`${C}: `+k.map(bb).join([", "]))},Q8=(C,x,k,P,K,ne,oe,ce,me,Ee,Ie,Je,Fe)=>{Ie=_t(Ie),ne=dr(K,ne),ce&&(ce=dr(oe,ce)),Ee&&(Ee=dr(me,Ee)),Fe=dr(Je,Fe);var at=U8(Ie);oa(at,function(){Su(`Cannot construct ${Ie} due to unbound types`,[P])}),pn([C,x,k],P?[P]:[],Bt=>{Bt=Bt[0];var gn,Rt;P?(gn=Bt.registeredClass,Rt=gn.instancePrototype):Rt=Qt.prototype;var nn=Ur(Ie,function(){if(Object.getPrototypeOf(this)!==we)throw new er("Use 'new' to construct "+Ie);if(ke.constructor_body===void 0)throw new er(Ie+" has no accessible constructor");for(var Bb=arguments.length,Au=new Array(Bb),Tu=0;Tu<Bb;Tu++)Au[Tu]=arguments[Tu];var Fb=ke.constructor_body[Au.length];if(Fb===void 0)throw new er(`Tried to invoke ctor of ${Ie} with invalid number of parameters (${Au.length}) - expected (${Object.keys(ke.constructor_body).toString()}) parameters instead!`);return Fb.apply(this,Au)}),we=Object.create(Rt,{constructor:{value:nn}});nn.prototype=we;var ke=new V8(Ie,nn,we,Fe,gn,ne,ce,Ee);if(ke.baseClass){var Ft,Jt;(Jt=(Ft=ke.baseClass).__derivedClasses)!==null&&Jt!==void 0||(Ft.__derivedClasses=[]),ke.baseClass.__derivedClasses.push(ke)}var Ls=new wu(Ie,ke,!0,!1,!1),_u=new wu(Ie+"*",ke,!1,!1,!1),Lb=new wu(Ie+" const*",ke,!1,!0,!1);return vu[C]={pointerType:_u,constPointerType:Lb},gb(at,nn),[Ls,_u,Lb]})},Kf=(C,x)=>{for(var k=[],P=0;P<C;P++)k.push(M[x+P*4>>2]);return k};function J8(C){for(var x=1;x<C.length;++x)if(C[x]!==null&&C[x].destructorFunction===void 0)return!0;return!1}function zf(C,x,k,P,K,ne){var oe=x.length;oe<2&&Ae("argTypes array size mismatch! Must at least get return value and 'this' types!");var ce=x[1]!==null&&k!==null,me=J8(x),Ee=x[0].name!=="void",Ie=oe-2,Je=new Array(Ie),Fe=[],at=[],Bt=function(){arguments.length!==Ie&&Ae(`function ${C} called with ${arguments.length} arguments, expected ${Ie}`),at.length=0;var gn;Fe.length=ce?2:1,Fe[0]=K,ce&&(gn=x[1].toWireType(at,this),Fe[1]=gn);for(var Rt=0;Rt<Ie;++Rt)Je[Rt]=x[Rt+2].toWireType(at,Rt<0||arguments.length<=Rt?void 0:arguments[Rt]),Fe.push(Je[Rt]);var nn=P(...Fe);function we(ke){if(me)en(at);else for(var Ft=ce?1:2;Ft<x.length;Ft++){var Jt=Ft===1?gn:Je[Ft-2];x[Ft].destructorFunction!==null&&x[Ft].destructorFunction(Jt)}if(Ee)return x[0].fromWireType(ke)}return we(nn)};return Ur(C,Bt)}var Z8=(C,x,k,P,K,ne)=>{var oe=Kf(x,k);K=dr(P,K),pn([],[C],ce=>{ce=ce[0];var me=`constructor ${ce.name}`;if(ce.registeredClass.constructor_body===void 0&&(ce.registeredClass.constructor_body=[]),ce.registeredClass.constructor_body[x-1]!==void 0)throw new er(`Cannot register multiple constructors with identical number of parameters (${x-1}) for class '${ce.name}'! Overload resolution is currently only performed using the parameter count, not actual type info!`);return ce.registeredClass.constructor_body[x-1]=()=>{Su(`Cannot construct ${ce.name} due to unbound types`,oe)},pn([],oe,Ee=>(Ee.splice(1,0,null),ce.registeredClass.constructor_body[x-1]=zf(me,Ee,null,K,ne),[])),[]})},wb=C=>{C=C.trim();const x=C.indexOf("(");return x!==-1?C.substr(0,x):C},X8=(C,x,k,P,K,ne,oe,ce,me)=>{var Ee=Kf(k,P);x=_t(x),x=wb(x),ne=dr(K,ne),pn([],[C],Ie=>{Ie=Ie[0];var Je=`${Ie.name}.${x}`;x.startsWith("@@")&&(x=Symbol[x.substring(2)]),ce&&Ie.registeredClass.pureVirtualFunctions.push(x);function Fe(){Su(`Cannot call ${Je} due to unbound types`,Ee)}var at=Ie.registeredClass.instancePrototype,Bt=at[x];return Bt===void 0||Bt.overloadTable===void 0&&Bt.className!==Ie.name&&Bt.argCount===k-2?(Fe.argCount=k-2,Fe.className=Ie.name,at[x]=Fe):(bu(at,x,Je),at[x].overloadTable[k-2]=Fe),pn([],Ee,gn=>{var Rt=zf(Je,gn,Ie,ne,oe);return at[x].overloadTable===void 0?(Rt.argCount=k-2,at[x]=Rt):at[x].overloadTable[k-2]=Rt,[]}),[]})},Qf=[],Vr=[],Jf=C=>{C>9&&--Vr[C+1]===0&&(Vr[C]=void 0,Qf.push(C))},eM=()=>Vr.length/2-5-Qf.length,tM=()=>{Vr.push(0,1,void 0,1,null,1,!0,1,!1,1),r.count_emval_handles=eM},qr={toValue:C=>(C||Ae("Cannot use deleted val. handle = "+C),Vr[C]),toHandle:C=>{switch(C){case void 0:return 2;case null:return 4;case!0:return 6;case!1:return 8;default:{const x=Qf.pop()||Vr.length;return Vr[x]=C,Vr[x+1]=1,x}}}},nM={name:"emscripten::val",fromWireType:C=>{var x=qr.toValue(C);return Jf(C),x},toWireType:(C,x)=>qr.toHandle(x),argPackAdvance:Ye,readValueFromPointer:pt,destructorFunction:null},Eb=C=>De(C,nM),rM=(C,x,k)=>{switch(x){case 1:return k?function(P){return this.fromWireType(E[P])}:function(P){return this.fromWireType(S[P])};case 2:return k?function(P){return this.fromWireType(A[P>>1])}:function(P){return this.fromWireType(T[P>>1])};case 4:return k?function(P){return this.fromWireType(O[P>>2])}:function(P){return this.fromWireType(M[P>>2])};default:throw new TypeError(`invalid integer width (${x}): ${C}`)}},iM=(C,x,k,P)=>{x=_t(x);function K(){}K.values={},De(C,{name:x,constructor:K,fromWireType:function(ne){return this.constructor.values[ne]},toWireType:(ne,oe)=>oe.value,argPackAdvance:Ye,readValueFromPointer:rM(x,k,P),destructorFunction:null}),oa(x,K)},Zf=(C,x)=>{var k=cn[C];return k===void 0&&Ae(`${x} has unknown type ${bb(C)}`),k},sM=(C,x,k)=>{var P=Zf(C,"enum");x=_t(x);var K=P.constructor,ne=Object.create(P.constructor.prototype,{value:{value:k},constructor:{value:Ur(`${P.name}_${x}`,function(){})}});K.values[k]=ne,K[x]=ne},Xf=C=>{if(C===null)return"null";var x=typeof C;return x==="object"||x==="array"||x==="function"?C.toString():""+C},oM=(C,x)=>{switch(x){case 4:return function(k){return this.fromWireType(D[k>>2])};case 8:return function(k){return this.fromWireType(F[k>>3])};default:throw new TypeError(`invalid float width (${x}): ${C}`)}},aM=(C,x,k)=>{x=_t(x),De(C,{name:x,fromWireType:P=>P,toWireType:(P,K)=>K,argPackAdvance:Ye,readValueFromPointer:oM(x,k),destructorFunction:null})},cM=(C,x,k,P,K,ne,oe)=>{var ce=Kf(x,k);C=_t(C),C=wb(C),K=dr(P,K),oa(C,function(){Su(`Cannot call ${C} due to unbound types`,ce)},x-1),pn([],ce,me=>{var Ee=[me[0],null].concat(me.slice(1));return gb(C,zf(C,Ee,null,K,ne),x-1),[]})},uM=(C,x,k)=>{switch(x){case 1:return k?P=>E[P]:P=>S[P];case 2:return k?P=>A[P>>1]:P=>T[P>>1];case 4:return k?P=>O[P>>2]:P=>M[P>>2];default:throw new TypeError(`invalid integer width (${x}): ${C}`)}},lM=(C,x,k,P,K)=>{x=_t(x);var ne=Ie=>Ie;if(P===0){var oe=32-8*k;ne=Ie=>Ie<<oe>>>oe}var ce=x.includes("unsigned"),me=(Ie,Je)=>{},Ee;ce?Ee=function(Ie,Je){return me(Je,this.name),Je>>>0}:Ee=function(Ie,Je){return me(Je,this.name),Je},De(C,{name:x,fromWireType:ne,toWireType:Ee,argPackAdvance:Ye,readValueFromPointer:uM(x,k,P!==0),destructorFunction:null})},dM=(C,x,k)=>{var P=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array],K=P[x];function ne(oe){var ce=M[oe>>2],me=M[oe+4>>2];return new K(E.buffer,me,ce)}k=_t(k),De(C,{name:k,fromWireType:ne,argPackAdvance:Ye,readValueFromPointer:ne},{ignoreDuplicateRegistrations:!0})},fM=(C,x)=>{Eb(C)},Sb=(C,x,k,P)=>{if(!(P>0))return 0;for(var K=k,ne=k+P-1,oe=0;oe<C.length;++oe){var ce=C.charCodeAt(oe);if(ce>=55296&&ce<=57343){var me=C.charCodeAt(++oe);ce=65536+((ce&1023)<<10)|me&1023}if(ce<=127){if(k>=ne)break;x[k++]=ce}else if(ce<=2047){if(k+1>=ne)break;x[k++]=192|ce>>6,x[k++]=128|ce&63}else if(ce<=65535){if(k+2>=ne)break;x[k++]=224|ce>>12,x[k++]=128|ce>>6&63,x[k++]=128|ce&63}else{if(k+3>=ne)break;x[k++]=240|ce>>18,x[k++]=128|ce>>12&63,x[k++]=128|ce>>6&63,x[k++]=128|ce&63}}return x[k]=0,k-K},hM=(C,x,k)=>Sb(C,S,x,k),xb=C=>{for(var x=0,k=0;k<C.length;++k){var P=C.charCodeAt(k);P<=127?x++:P<=2047?x+=2:P>=55296&&P<=57343?(x+=4,++k):x+=3}return x},Cb=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0,_b=(C,x,k)=>{for(var P=x+k,K=x;C[K]&&!(K>=P);)++K;if(K-x>16&&C.buffer&&Cb)return Cb.decode(C.subarray(x,K));for(var ne="";x<K;){var oe=C[x++];if(!(oe&128)){ne+=String.fromCharCode(oe);continue}var ce=C[x++]&63;if((oe&224)==192){ne+=String.fromCharCode((oe&31)<<6|ce);continue}var me=C[x++]&63;if((oe&240)==224?oe=(oe&15)<<12|ce<<6|me:oe=(oe&7)<<18|ce<<12|me<<6|C[x++]&63,oe<65536)ne+=String.fromCharCode(oe);else{var Ee=oe-65536;ne+=String.fromCharCode(55296|Ee>>10,56320|Ee&1023)}}return ne},eh=(C,x)=>C?_b(S,C,x):"",pM=(C,x)=>{x=_t(x);var k=x==="std::string";De(C,{name:x,fromWireType(P){var K=M[P>>2],ne=P+4,oe;if(k)for(var ce=ne,me=0;me<=K;++me){var Ee=ne+me;if(me==K||S[Ee]==0){var Ie=Ee-ce,Je=eh(ce,Ie);oe===void 0?oe=Je:(oe+="\0",oe+=Je),ce=Ee+1}}else{for(var Fe=new Array(K),me=0;me<K;++me)Fe[me]=String.fromCharCode(S[ne+me]);oe=Fe.join("")}return $r(P),oe},toWireType(P,K){K instanceof ArrayBuffer&&(K=new Uint8Array(K));var ne,oe=typeof K=="string";oe||K instanceof Uint8Array||K instanceof Uint8ClampedArray||K instanceof Int8Array||Ae("Cannot pass non-string to std::string"),k&&oe?ne=xb(K):ne=K.length;var ce=rh(4+ne+1),me=ce+4;if(M[ce>>2]=ne,k&&oe)hM(K,me,ne+1);else if(oe)for(var Ee=0;Ee<ne;++Ee){var Ie=K.charCodeAt(Ee);Ie>255&&($r(me),Ae("String has UTF-16 code units that do not fit in 8 bits")),S[me+Ee]=Ie}else for(var Ee=0;Ee<ne;++Ee)S[me+Ee]=K[Ee];return P!==null&&P.push($r,ce),ce},argPackAdvance:Ye,readValueFromPointer:pt,destructorFunction(P){$r(P)}})},Ab=typeof TextDecoder<"u"?new TextDecoder("utf-16le"):void 0,mM=(C,x)=>{for(var k=C,P=k>>1,K=P+x/2;!(P>=K)&&T[P];)++P;if(k=P<<1,k-C>32&&Ab)return Ab.decode(S.subarray(C,k));for(var ne="",oe=0;!(oe>=x/2);++oe){var ce=A[C+oe*2>>1];if(ce==0)break;ne+=String.fromCharCode(ce)}return ne},gM=(C,x,k)=>{var P;if((P=k)!==null&&P!==void 0||(k=2147483647),k<2)return 0;k-=2;for(var K=x,ne=k<C.length*2?k/2:C.length,oe=0;oe<ne;++oe){var ce=C.charCodeAt(oe);A[x>>1]=ce,x+=2}return A[x>>1]=0,x-K},yM=C=>C.length*2,vM=(C,x)=>{for(var k=0,P="";!(k>=x/4);){var K=O[C+k*4>>2];if(K==0)break;if(++k,K>=65536){var ne=K-65536;P+=String.fromCharCode(55296|ne>>10,56320|ne&1023)}else P+=String.fromCharCode(K)}return P},bM=(C,x,k)=>{var P;if((P=k)!==null&&P!==void 0||(k=2147483647),k<4)return 0;for(var K=x,ne=K+k-4,oe=0;oe<C.length;++oe){var ce=C.charCodeAt(oe);if(ce>=55296&&ce<=57343){var me=C.charCodeAt(++oe);ce=65536+((ce&1023)<<10)|me&1023}if(O[x>>2]=ce,x+=4,x+4>ne)break}return O[x>>2]=0,x-K},wM=C=>{for(var x=0,k=0;k<C.length;++k){var P=C.charCodeAt(k);P>=55296&&P<=57343&&++k,x+=4}return x},EM=(C,x,k)=>{k=_t(k);var P,K,ne,oe;x===2?(P=mM,K=gM,oe=yM,ne=ce=>T[ce>>1]):x===4&&(P=vM,K=bM,oe=wM,ne=ce=>M[ce>>2]),De(C,{name:k,fromWireType:ce=>{for(var me=M[ce>>2],Ee,Ie=ce+4,Je=0;Je<=me;++Je){var Fe=ce+4+Je*x;if(Je==me||ne(Fe)==0){var at=Fe-Ie,Bt=P(Ie,at);Ee===void 0?Ee=Bt:(Ee+="\0",Ee+=Bt),Ie=Fe+x}}return $r(ce),Ee},toWireType:(ce,me)=>{typeof me!="string"&&Ae(`Cannot pass non-string to C++ string type ${k}`);var Ee=oe(me),Ie=rh(4+Ee+x);return M[Ie>>2]=Ee/x,K(me,Ie+4,Ee+x),ce!==null&&ce.push($r,Ie),Ie},argPackAdvance:Ye,readValueFromPointer:pt,destructorFunction(ce){$r(ce)}})},SM=(C,x,k,P,K,ne)=>{lt[C]={name:_t(x),rawConstructor:dr(k,P),rawDestructor:dr(K,ne),fields:[]}},xM=(C,x,k,P,K,ne,oe,ce,me,Ee)=>{lt[C].fields.push({fieldName:_t(x),getterReturnType:k,getter:dr(P,K),getterContext:ne,setterArgumentType:oe,setter:dr(ce,me),setterContext:Ee})},CM=(C,x)=>{x=_t(x),De(C,{isVoid:!0,name:x,argPackAdvance:0,fromWireType:()=>{},toWireType:(k,P)=>{}})},th=[],_M=(C,x,k,P)=>(C=th[C],x=qr.toValue(x),C(null,x,k,P)),AM={},TM=C=>{var x=AM[C];return x===void 0?_t(C):x},Tb=()=>{if(typeof globalThis=="object")return globalThis;function C(x){x.$$$embind_global$$$=x;var k=typeof $$$embind_global$$$=="object"&&x.$$$embind_global$$$==x;return k||delete x.$$$embind_global$$$,k}if(typeof $$$embind_global$$$=="object"||(typeof global=="object"&&C(global)?$$$embind_global$$$=global:typeof self=="object"&&C(self)&&($$$embind_global$$$=self),typeof $$$embind_global$$$=="object"))return $$$embind_global$$$;throw Error("unable to get global object.")},IM=C=>C===0?qr.toHandle(Tb()):(C=TM(C),qr.toHandle(Tb()[C])),kM=C=>{var x=th.length;return th.push(C),x},OM=(C,x)=>{for(var k=new Array(C),P=0;P<C;++P)k[P]=Zf(M[x+P*4>>2],"parameter "+P);return k},RM=Reflect.construct,NM=(C,x,k)=>{var P=[],K=C.toWireType(P,k);return P.length&&(M[x>>2]=qr.toHandle(P)),K},MM=(C,x,k)=>{var P=OM(C,x),K=P.shift();C--;var ne=new Array(C),oe=(me,Ee,Ie,Je)=>{for(var Fe=0,at=0;at<C;++at)ne[at]=P[at].readValueFromPointer(Je+Fe),Fe+=P[at].argPackAdvance;var Bt=k===1?RM(Ee,ne):Ee.apply(me,ne);return NM(K,Ie,Bt)},ce=`methodCaller<(${P.map(me=>me.name).join(", ")}) => ${K.name}>`;return kM(Ur(ce,oe))},DM=C=>{C>9&&(Vr[C+1]+=1)},PM=C=>{var x=qr.toValue(C);en(x),Jf(C)},jM=(C,x)=>{C=Zf(C,"_emval_take_value");var k=C.readValueFromPointer(x);return qr.toHandle(k)},LM=()=>{q("")},BM=(C,x,k)=>S.copyWithin(C,x,x+k),FM=()=>2147483648,UM=C=>{var x=b.buffer,k=(C-x.byteLength+65535)/65536;try{return b.grow(k),V(),1}catch{}},VM=C=>{var x=S.length;C>>>=0;var k=FM();if(C>k)return!1;for(var P=(me,Ee)=>me+(Ee-me%Ee)%Ee,K=1;K<=4;K*=2){var ne=x*(1+.2/K);ne=Math.min(ne,C+100663296);var oe=Math.min(k,P(Math.max(C,ne),65536)),ce=UM(oe);if(ce)return!0}return!1},nh={},qM=()=>c||"./this.program",aa=()=>{if(!aa.strings){var C=(typeof navigator=="object"&&navigator.languages&&navigator.languages[0]||"C").replace("-","_")+".UTF-8",x={USER:"web_user",LOGNAME:"web_user",PATH:"/",PWD:"/",HOME:"/home/web_user",LANG:C,_:qM()};for(var k in nh)nh[k]===void 0?delete x[k]:x[k]=nh[k];var P=[];for(var k in x)P.push(`${k}=${x[k]}`);aa.strings=P}return aa.strings},$M=(C,x)=>{for(var k=0;k<C.length;++k)E[x++]=C.charCodeAt(k);E[x]=0},GM=(C,x)=>{var k=0;return aa().forEach((P,K)=>{var ne=x+k;M[C+K*4>>2]=ne,$M(P,ne),k+=P.length+1}),0},HM=(C,x)=>{var k=aa();M[C>>2]=k.length;var P=0;return k.forEach(K=>P+=K.length+1),M[x>>2]=P,0},YM=C=>52;function WM(C,x,k,P,K){return 70}var KM=[null,[],[]],zM=(C,x)=>{var k=KM[C];x===0||x===10?((C===1?h:y)(_b(k,0)),k.length=0):k.push(x)},QM=(C,x,k,P)=>{for(var K=0,ne=0;ne<k;ne++){var oe=M[x>>2],ce=M[x+4>>2];x+=8;for(var me=0;me<ce;me++)zM(C,S[oe+me]);K+=ce}return M[P>>2]=K,0},JM=C=>C,xu=C=>C%4===0&&(C%100!==0||C%400===0),ZM=(C,x)=>{for(var k=0,P=0;P<=x;k+=C[P++]);return k},Ib=[31,29,31,30,31,30,31,31,30,31,30,31],kb=[31,28,31,30,31,30,31,31,30,31,30,31],XM=(C,x)=>{for(var k=new Date(C.getTime());x>0;){var P=xu(k.getFullYear()),K=k.getMonth(),ne=(P?Ib:kb)[K];if(x>ne-k.getDate())x-=ne-k.getDate()+1,k.setDate(1),K<11?k.setMonth(K+1):(k.setMonth(0),k.setFullYear(k.getFullYear()+1));else return k.setDate(k.getDate()+x),k}return k};function e9(C,x,k){var P=xb(C)+1,K=new Array(P);return Sb(C,K,0,K.length),K}var t9=(C,x)=>{E.set(C,x)},n9=(C,x,k,P)=>{var K=M[P+40>>2],ne={tm_sec:O[P>>2],tm_min:O[P+4>>2],tm_hour:O[P+8>>2],tm_mday:O[P+12>>2],tm_mon:O[P+16>>2],tm_year:O[P+20>>2],tm_wday:O[P+24>>2],tm_yday:O[P+28>>2],tm_isdst:O[P+32>>2],tm_gmtoff:O[P+36>>2],tm_zone:K?eh(K):""},oe=eh(k),ce={"%c":"%a %b %d %H:%M:%S %Y","%D":"%m/%d/%y","%F":"%Y-%m-%d","%h":"%b","%r":"%I:%M:%S %p","%R":"%H:%M","%T":"%H:%M:%S","%x":"%m/%d/%y","%X":"%H:%M:%S","%Ec":"%c","%EC":"%C","%Ex":"%m/%d/%y","%EX":"%H:%M:%S","%Ey":"%y","%EY":"%Y","%Od":"%d","%Oe":"%e","%OH":"%H","%OI":"%I","%Om":"%m","%OM":"%M","%OS":"%S","%Ou":"%u","%OU":"%U","%OV":"%V","%Ow":"%w","%OW":"%W","%Oy":"%y"};for(var me in ce)oe=oe.replace(new RegExp(me,"g"),ce[me]);var Ee=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],Ie=["January","February","March","April","May","June","July","August","September","October","November","December"];function Je(we,ke,Ft){for(var Jt=typeof we=="number"?we.toString():we||"";Jt.length<ke;)Jt=Ft[0]+Jt;return Jt}function Fe(we,ke){return Je(we,ke,"0")}function at(we,ke){function Ft(Ls){return Ls<0?-1:Ls>0?1:0}var Jt;return(Jt=Ft(we.getFullYear()-ke.getFullYear()))===0&&(Jt=Ft(we.getMonth()-ke.getMonth()))===0&&(Jt=Ft(we.getDate()-ke.getDate())),Jt}function Bt(we){switch(we.getDay()){case 0:return new Date(we.getFullYear()-1,11,29);case 1:return we;case 2:return new Date(we.getFullYear(),0,3);case 3:return new Date(we.getFullYear(),0,2);case 4:return new Date(we.getFullYear(),0,1);case 5:return new Date(we.getFullYear()-1,11,31);case 6:return new Date(we.getFullYear()-1,11,30)}}function gn(we){var ke=XM(new Date(we.tm_year+1900,0,1),we.tm_yday),Ft=new Date(ke.getFullYear(),0,4),Jt=new Date(ke.getFullYear()+1,0,4),Ls=Bt(Ft),_u=Bt(Jt);return at(Ls,ke)<=0?at(_u,ke)<=0?ke.getFullYear()+1:ke.getFullYear():ke.getFullYear()-1}var Rt={"%a":we=>Ee[we.tm_wday].substring(0,3),"%A":we=>Ee[we.tm_wday],"%b":we=>Ie[we.tm_mon].substring(0,3),"%B":we=>Ie[we.tm_mon],"%C":we=>{var ke=we.tm_year+1900;return Fe(ke/100|0,2)},"%d":we=>Fe(we.tm_mday,2),"%e":we=>Je(we.tm_mday,2," "),"%g":we=>gn(we).toString().substring(2),"%G":gn,"%H":we=>Fe(we.tm_hour,2),"%I":we=>{var ke=we.tm_hour;return ke==0?ke=12:ke>12&&(ke-=12),Fe(ke,2)},"%j":we=>Fe(we.tm_mday+ZM(xu(we.tm_year+1900)?Ib:kb,we.tm_mon-1),3),"%m":we=>Fe(we.tm_mon+1,2),"%M":we=>Fe(we.tm_min,2),"%n":()=>`
141
+ `,"%p":we=>we.tm_hour>=0&&we.tm_hour<12?"AM":"PM","%S":we=>Fe(we.tm_sec,2),"%t":()=>" ","%u":we=>we.tm_wday||7,"%U":we=>{var ke=we.tm_yday+7-we.tm_wday;return Fe(Math.floor(ke/7),2)},"%V":we=>{var ke=Math.floor((we.tm_yday+7-(we.tm_wday+6)%7)/7);if((we.tm_wday+371-we.tm_yday-2)%7<=2&&ke++,ke){if(ke==53){var Ft=(we.tm_wday+371-we.tm_yday)%7;Ft!=4&&(Ft!=3||!xu(we.tm_year))&&(ke=1)}}else{ke=52;var Jt=(we.tm_wday+7-we.tm_yday-1)%7;(Jt==4||Jt==5&&xu(we.tm_year%400-1))&&ke++}return Fe(ke,2)},"%w":we=>we.tm_wday,"%W":we=>{var ke=we.tm_yday+7-(we.tm_wday+6)%7;return Fe(Math.floor(ke/7),2)},"%y":we=>(we.tm_year+1900).toString().substring(2),"%Y":we=>we.tm_year+1900,"%z":we=>{var ke=we.tm_gmtoff,Ft=ke>=0;return ke=Math.abs(ke)/60,ke=ke/60*100+ke%60,(Ft?"+":"-")+("0000"+ke).slice(-4)},"%Z":we=>we.tm_zone,"%%":()=>"%"};oe=oe.replace(/%%/g,"\0\0");for(var me in Rt)oe.includes(me)&&(oe=oe.replace(new RegExp(me,"g"),Rt[me](ne)));oe=oe.replace(/\0\0/g,"%");var nn=e9(oe);return nn.length>x?0:(t9(nn,C),nn.length-1)},r9=(C,x,k,P,K)=>n9(C,x,k,P);hn=r.InternalError=class extends Error{constructor(C){super(C),this.name="InternalError"}},xn(),er=r.BindingError=class extends Error{constructor(C){super(C),this.name="BindingError"}},Fr(),tt(),H8(),vb=r.UnboundTypeError=z8(Error,"UnboundTypeError"),tM();var i9={s:ge,u:ie,b:_e,g:ze,q:it,K:yt,f:ht,Y:Xn,e:ae,ha:On,U:qn,ba:It,fa:Q8,ea:Z8,w:X8,aa:Eb,x:iM,h:sM,O:aM,P:cM,t:lM,o:dM,ga:fM,N:pM,C:EM,A:SM,ia:xM,ca:CM,E:_M,ka:Jf,la:IM,M:MM,Q:DM,R:PM,da:jM,B:LM,$:BM,Z:VM,W:GM,X:HM,_:YM,T:WM,L:QM,F:w9,D:u9,G:b9,m:E9,a:s9,d:d9,p:c9,k:v9,I:g9,v:p9,H:y9,z:x9,S:_9,l:f9,j:l9,c:a9,n:o9,J:m9,r:S9,i:h9,y:C9,ja:JM,V:r9},Pt=J(),$r=r._free=C=>($r=r._free=Pt.oa)(C),rh=r._malloc=C=>(rh=r._malloc=Pt.pa)(C),Ob=C=>(Ob=Pt.ra)(C),Ot=(C,x)=>(Ot=Pt.sa)(C,x),ca=C=>(ca=Pt.ta)(C),jt=()=>(jt=Pt.ua)(),Lt=C=>(Lt=Pt.va)(C),Rb=C=>(Rb=Pt.wa)(C),Nb=C=>(Nb=Pt.xa)(C),Mb=(C,x,k)=>(Mb=Pt.ya)(C,x,k),Db=C=>(Db=Pt.za)(C);r.dynCall_viijii=(C,x,k,P,K,ne,oe)=>(r.dynCall_viijii=Pt.Aa)(C,x,k,P,K,ne,oe),r.dynCall_jiji=(C,x,k,P,K)=>(r.dynCall_jiji=Pt.Ba)(C,x,k,P,K);var Pb=r.dynCall_jiiii=(C,x,k,P,K)=>(Pb=r.dynCall_jiiii=Pt.Ca)(C,x,k,P,K);r.dynCall_iiiiij=(C,x,k,P,K,ne,oe)=>(r.dynCall_iiiiij=Pt.Da)(C,x,k,P,K,ne,oe),r.dynCall_iiiiijj=(C,x,k,P,K,ne,oe,ce,me)=>(r.dynCall_iiiiijj=Pt.Ea)(C,x,k,P,K,ne,oe,ce,me),r.dynCall_iiiiiijj=(C,x,k,P,K,ne,oe,ce,me,Ee)=>(r.dynCall_iiiiiijj=Pt.Fa)(C,x,k,P,K,ne,oe,ce,me,Ee);function s9(C,x){var k=jt();try{return Dt(C)(x)}catch(P){if(Lt(k),P!==P+0)throw P;Ot(1,0)}}function o9(C,x,k,P){var K=jt();try{Dt(C)(x,k,P)}catch(ne){if(Lt(K),ne!==ne+0)throw ne;Ot(1,0)}}function a9(C,x,k){var P=jt();try{Dt(C)(x,k)}catch(K){if(Lt(P),K!==K+0)throw K;Ot(1,0)}}function c9(C,x,k,P){var K=jt();try{return Dt(C)(x,k,P)}catch(ne){if(Lt(K),ne!==ne+0)throw ne;Ot(1,0)}}function u9(C,x,k,P,K){var ne=jt();try{return Dt(C)(x,k,P,K)}catch(oe){if(Lt(ne),oe!==oe+0)throw oe;Ot(1,0)}}function l9(C,x){var k=jt();try{Dt(C)(x)}catch(P){if(Lt(k),P!==P+0)throw P;Ot(1,0)}}function d9(C,x,k){var P=jt();try{return Dt(C)(x,k)}catch(K){if(Lt(P),K!==K+0)throw K;Ot(1,0)}}function f9(C){var x=jt();try{Dt(C)()}catch(k){if(Lt(x),k!==k+0)throw k;Ot(1,0)}}function h9(C,x,k,P,K,ne,oe,ce,me,Ee,Ie){var Je=jt();try{Dt(C)(x,k,P,K,ne,oe,ce,me,Ee,Ie)}catch(Fe){if(Lt(Je),Fe!==Fe+0)throw Fe;Ot(1,0)}}function p9(C,x,k,P,K,ne,oe){var ce=jt();try{return Dt(C)(x,k,P,K,ne,oe)}catch(me){if(Lt(ce),me!==me+0)throw me;Ot(1,0)}}function m9(C,x,k,P,K){var ne=jt();try{Dt(C)(x,k,P,K)}catch(oe){if(Lt(ne),oe!==oe+0)throw oe;Ot(1,0)}}function g9(C,x,k,P,K,ne){var oe=jt();try{return Dt(C)(x,k,P,K,ne)}catch(ce){if(Lt(oe),ce!==ce+0)throw ce;Ot(1,0)}}function y9(C,x,k,P,K,ne,oe,ce){var me=jt();try{return Dt(C)(x,k,P,K,ne,oe,ce)}catch(Ee){if(Lt(me),Ee!==Ee+0)throw Ee;Ot(1,0)}}function v9(C,x,k,P,K){var ne=jt();try{return Dt(C)(x,k,P,K)}catch(oe){if(Lt(ne),oe!==oe+0)throw oe;Ot(1,0)}}function b9(C,x,k,P){var K=jt();try{return Dt(C)(x,k,P)}catch(ne){if(Lt(K),ne!==ne+0)throw ne;Ot(1,0)}}function w9(C,x,k,P){var K=jt();try{return Dt(C)(x,k,P)}catch(ne){if(Lt(K),ne!==ne+0)throw ne;Ot(1,0)}}function E9(C){var x=jt();try{return Dt(C)()}catch(k){if(Lt(x),k!==k+0)throw k;Ot(1,0)}}function S9(C,x,k,P,K,ne,oe,ce){var me=jt();try{Dt(C)(x,k,P,K,ne,oe,ce)}catch(Ee){if(Lt(me),Ee!==Ee+0)throw Ee;Ot(1,0)}}function x9(C,x,k,P,K,ne,oe,ce,me,Ee,Ie,Je){var Fe=jt();try{return Dt(C)(x,k,P,K,ne,oe,ce,me,Ee,Ie,Je)}catch(at){if(Lt(Fe),at!==at+0)throw at;Ot(1,0)}}function C9(C,x,k,P,K,ne,oe,ce,me,Ee,Ie,Je,Fe,at,Bt,gn){var Rt=jt();try{Dt(C)(x,k,P,K,ne,oe,ce,me,Ee,Ie,Je,Fe,at,Bt,gn)}catch(nn){if(Lt(Rt),nn!==nn+0)throw nn;Ot(1,0)}}function _9(C,x,k,P,K){var ne=jt();try{return Pb(C,x,k,P,K)}catch(oe){if(Lt(ne),oe!==oe+0)throw oe;Ot(1,0)}}var Cu;ue=function C(){Cu||jb(),Cu||(ue=C)};function jb(){if(he>0||(L(),he>0))return;function C(){Cu||(Cu=!0,r.calledRun=!0,!w&&(Y(),i(r),r.onRuntimeInitialized&&r.onRuntimeInitialized(),z()))}r.setStatus?(r.setStatus("Running..."),setTimeout(function(){setTimeout(function(){r.setStatus("")},1),C()},1)):C()}if(r.preInit)for(typeof r.preInit=="function"&&(r.preInit=[r.preInit]);r.preInit.length>0;)r.preInit.pop()();return jb(),t.ready}})();function cR(e){return Nf(Mf,e)}async function uR(e,t){return oR(Mf,e,t)}async function lR(e,t){return aR(Mf,e,t)}const S1=[["aztec","Aztec"],["code_128","Code128"],["code_39","Code39"],["code_93","Code93"],["codabar","Codabar"],["databar","DataBar"],["databar_expanded","DataBarExpanded"],["data_matrix","DataMatrix"],["dx_film_edge","DXFilmEdge"],["ean_13","EAN-13"],["ean_8","EAN-8"],["itf","ITF"],["maxi_code","MaxiCode"],["micro_qr_code","MicroQRCode"],["pdf417","PDF417"],["qr_code","QRCode"],["rm_qr_code","rMQRCode"],["upc_a","UPC-A"],["upc_e","UPC-E"],["linear_codes","Linear-Codes"],["matrix_codes","Matrix-Codes"]],dR=[...S1,["unknown"]].map(e=>e[0]),lu=new Map(S1);function fR(e){for(const[t,n]of lu)if(e===n)return t;return"unknown"}function hR(e){if(x1(e))return{width:e.naturalWidth,height:e.naturalHeight};if(C1(e))return{width:e.width.baseVal.value,height:e.height.baseVal.value};if(_1(e))return{width:e.videoWidth,height:e.videoHeight};if(T1(e))return{width:e.width,height:e.height};if(k1(e))return{width:e.displayWidth,height:e.displayHeight};if(A1(e))return{width:e.width,height:e.height};if(I1(e))return{width:e.width,height:e.height};throw new TypeError("The provided value is not of type '(Blob or HTMLCanvasElement or HTMLImageElement or HTMLVideoElement or ImageBitmap or ImageData or OffscreenCanvas or SVGImageElement or VideoFrame)'.")}function x1(e){try{return e instanceof HTMLImageElement}catch{return!1}}function C1(e){try{return e instanceof SVGImageElement}catch{return!1}}function _1(e){try{return e instanceof HTMLVideoElement}catch{return!1}}function A1(e){try{return e instanceof HTMLCanvasElement}catch{return!1}}function T1(e){try{return e instanceof ImageBitmap}catch{return!1}}function I1(e){try{return e instanceof OffscreenCanvas}catch{return!1}}function k1(e){try{return e instanceof VideoFrame}catch{return!1}}function O1(e){try{return e instanceof Blob}catch{return!1}}function pR(e){try{return e instanceof ImageData}catch{return!1}}function mR(e,t){try{const n=new OffscreenCanvas(e,t);if(n.getContext("2d")instanceof OffscreenCanvasRenderingContext2D)return n;throw void 0}catch{const n=document.createElement("canvas");return n.width=e,n.height=t,n}}async function R1(e){if(x1(e)&&!await bR(e))throw new DOMException("Failed to load or decode HTMLImageElement.","InvalidStateError");if(C1(e)&&!await wR(e))throw new DOMException("Failed to load or decode SVGImageElement.","InvalidStateError");if(k1(e)&&ER(e))throw new DOMException("VideoFrame is closed.","InvalidStateError");if(_1(e)&&(e.readyState===0||e.readyState===1))throw new DOMException("Invalid element or state.","InvalidStateError");if(T1(e)&&xR(e))throw new DOMException("The image source is detached.","InvalidStateError");const{width:t,height:n}=hR(e);if(t===0||n===0)return null;const r=mR(t,n).getContext("2d");r.drawImage(e,0,0);try{return r.getImageData(0,0,t,n)}catch{throw new DOMException("Source would taint origin.","SecurityError")}}async function gR(e){let t;try{if(globalThis.createImageBitmap)t=await createImageBitmap(e);else if(globalThis.Image){t=new Image;let n="";try{n=URL.createObjectURL(e),t.src=n,await t.decode()}finally{URL.revokeObjectURL(n)}}else return e}catch{throw new DOMException("Failed to load or decode Blob.","InvalidStateError")}return await R1(t)}function yR(e){const{width:t,height:n}=e;if(t===0||n===0)return null;const r=e.getContext("2d");try{return r.getImageData(0,0,t,n)}catch{throw new DOMException("Source would taint origin.","SecurityError")}}async function vR(e){if(O1(e))return await gR(e);if(pR(e)){if(SR(e))throw new DOMException("The image data has been detached.","InvalidStateError");return e}return A1(e)||I1(e)?yR(e):await R1(e)}async function bR(e){try{return await e.decode(),!0}catch{return!1}}async function wR(e){var t;try{return await((t=e.decode)==null?void 0:t.call(e)),!0}catch{return!1}}function ER(e){return e.format===null}function SR(e){return e.data.buffer.byteLength===0}function xR(e){return e.width===0&&e.height===0}function N1(e,t){return e instanceof DOMException?new DOMException(`${t}: ${e.message}`,e.name):e instanceof Error?new e.constructor(`${t}: ${e.message}`):new Error(`${t}: ${e}`)}var Jo;class Df extends EventTarget{constructor(t={}){var n;super(),zO(this,Jo,void 0);try{const r=(n=t==null?void 0:t.formats)==null?void 0:n.filter(i=>i!=="unknown");if((r==null?void 0:r.length)===0)throw new TypeError("Hint option provided, but is empty.");for(const i of r??[])if(!lu.has(i))throw new TypeError(`Failed to read the 'formats' property from 'BarcodeDetectorOptions': The provided value '${i}' is not a valid enum value of type BarcodeFormat.`);QO(this,Jo,r??[]),cR().then(i=>{this.dispatchEvent(new CustomEvent("load",{detail:i}))}).catch(i=>{this.dispatchEvent(new CustomEvent("error",{detail:i}))})}catch(r){throw N1(r,"Failed to construct 'BarcodeDetector'")}}static async getSupportedFormats(){return dR.filter(t=>t!=="unknown")}async detect(t){try{const n=await vR(t);if(n===null)return[];let r;try{O1(n)?r=await uR(n,{tryHarder:!0,formats:g1(this,Jo).map(i=>lu.get(i))}):r=await lR(n,{tryHarder:!0,formats:g1(this,Jo).map(i=>lu.get(i))})}catch(i){throw console.error(i),new DOMException("Barcode detection service unavailable.","NotSupportedError")}return r.map(i=>{const{topLeft:{x:s,y:o},topRight:{x:c,y:u},bottomLeft:{x:d,y:f},bottomRight:{x:p,y:l}}=i.position,v=Math.min(s,c,d,p),a=Math.min(o,u,f,l),h=Math.max(s,c,d,p),y=Math.max(o,u,f,l);return{boundingBox:new DOMRectReadOnly(v,a,h-v,y-a),rawValue:i.text,format:fR(i.format),cornerPoints:[{x:s,y:o},{x:c,y:u},{x:p,y:l},{x:d,y:f}]}})}catch(n){throw N1(n,"Failed to execute 'detect' on 'BarcodeDetector'")}}}Jo=new WeakMap,globalThis.BarcodeDetector!=null||(globalThis.BarcodeDetector=Df);function CR(e){const{onClick:t,disabled:n,className:r}=e,i={cursor:n?"default":"pointer",stroke:n?"grey":"yellow",strokeLineJoin:"round",strokeLineCap:"round",strokeWidth:1.5,...e.style};return I.createElement("svg",{onClick:n?void 0:t,className:r,style:i,width:"28px",height:"28px",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},I.createElement("path",{d:"M3 3L6.00007 6.00007M21 21L19.8455 19.8221M9.74194 4.06811C9.83646 4.04279 9.93334 4.02428 10.0319 4.01299C10.1453 4 10.2683 4 10.5141 4H13.5327C13.7786 4 13.9015 4 14.015 4.01299C14.6068 4.08078 15.1375 4.40882 15.4628 4.90782C15.5252 5.00345 15.5802 5.11345 15.6901 5.33333C15.7451 5.44329 15.7726 5.49827 15.8037 5.54609C15.9664 5.79559 16.2318 5.95961 16.5277 5.9935C16.5844 6 16.6459 6 16.7688 6H17.8234C18.9435 6 19.5036 6 19.9314 6.21799C20.3077 6.40973 20.6137 6.71569 20.8055 7.09202C21.0234 7.51984 21.0234 8.0799 21.0234 9.2V15.3496M19.8455 19.8221C19.4278 20 18.8702 20 17.8234 20H6.22344C5.10333 20 4.54328 20 4.11546 19.782C3.73913 19.5903 3.43317 19.2843 3.24142 18.908C3.02344 18.4802 3.02344 17.9201 3.02344 16.8V9.2C3.02344 8.0799 3.02344 7.51984 3.24142 7.09202C3.43317 6.71569 3.73913 6.40973 4.11546 6.21799C4.51385 6.015 5.0269 6.00103 6.00007 6.00007M19.8455 19.8221L14.5619 14.5619M14.5619 14.5619C14.0349 15.4243 13.0847 16 12 16C10.3431 16 9 14.6569 9 13C9 11.9153 9.57566 10.9651 10.4381 10.4381M14.5619 14.5619L10.4381 10.4381M10.4381 10.4381L6.00007 6.00007"}))}function _R(e){const{onClick:t,disabled:n,className:r}=e,i={cursor:n?"default":"pointer",stroke:n?"grey":"yellow",strokeLineJoin:"round",strokeLineCap:"round",strokeWidth:1.5,...e.style};return I.createElement("svg",{onClick:n?void 0:t,className:r,style:i,width:"28px",height:"28px",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},I.createElement("path",{d:"M12 16C13.6569 16 15 14.6569 15 13C15 11.3431 13.6569 10 12 10C10.3431 10 9 11.3431 9 13C9 14.6569 10.3431 16 12 16Z"}),I.createElement("path",{d:"M3 16.8V9.2C3 8.0799 3 7.51984 3.21799 7.09202C3.40973 6.71569 3.71569 6.40973 4.09202 6.21799C4.51984 6 5.0799 6 6.2 6H7.25464C7.37758 6 7.43905 6 7.49576 5.9935C7.79166 5.95961 8.05705 5.79559 8.21969 5.54609C8.25086 5.49827 8.27836 5.44328 8.33333 5.33333C8.44329 5.11342 8.49827 5.00346 8.56062 4.90782C8.8859 4.40882 9.41668 4.08078 10.0085 4.01299C10.1219 4 10.2448 4 10.4907 4H13.5093C13.7552 4 13.8781 4 13.9915 4.01299C14.5833 4.08078 15.1141 4.40882 15.4394 4.90782C15.5017 5.00345 15.5567 5.11345 15.6667 5.33333C15.7216 5.44329 15.7491 5.49827 15.7803 5.54609C15.943 5.79559 16.2083 5.95961 16.5042 5.9935C16.561 6 16.6224 6 16.7454 6H17.8C18.9201 6 19.4802 6 19.908 6.21799C20.2843 6.40973 20.5903 6.71569 20.782 7.09202C21 7.51984 21 8.0799 21 9.2V16.8C21 17.9201 21 18.4802 20.782 18.908C20.5903 19.2843 20.2843 19.5903 19.908 19.782C19.4802 20 18.9201 20 17.8 20H6.2C5.0799 20 4.51984 20 4.09202 19.782C3.71569 19.5903 3.40973 19.2843 3.21799 18.908C3 18.4802 3 17.9201 3 16.8Z"}))}function AR(e){const{scanning:t,startScanning:n,stopScanning:r}=e,[i,s]=I.useState(!1);function o(){s(!0),t?r():n(),setTimeout(()=>s(!1),1e3)}return I.createElement("div",{style:{bottom:85,right:3,position:"absolute",zIndex:2,cursor:i?"default":"pointer"}},t?I.createElement(CR,{disabled:i,onClick:o}):I.createElement(_R,{disabled:i,onClick:o}))}function TR(e){const{onClick:t,className:n,style:r}=e;return I.createElement("svg",{onClick:t,width:"30px",height:"30px",viewBox:"0 0 24 24",className:n,style:r,xmlns:"http://www.w3.org/2000/svg"},I.createElement("path",{strokeWidth:.2,stroke:"yellow",fill:"yellow",d:"M13.225 9l5.025-7h-7.972l-3.3 11h5.359l-2.452 8.648.75.364L20.374 9zm.438 3H8.322l2.7-9H16.3l-5.025 7h7.101l-6.7 8.953z"}))}function IR(e){const{onClick:t,className:n,style:r}=e;return I.createElement("svg",{onClick:t,width:"30px",height:"30px",viewBox:"0 0 24 24",className:n,style:r,xmlns:"http://www.w3.org/2000/svg"},I.createElement("path",{strokeWidth:.2,stroke:"yellow",fill:"yellow",d:"M14.516 15.158l.714.714-4.595 6.14-.75-.364L12.337 13H6.978L8.22 8.861l.803.803L8.322 12h3.036l1.793 1.792-1.475 5.16zm5.984 4.05L4.793 3.5l.707-.707 3.492 3.492L10.278 2h7.972l-5.025 7h7.149l-3.71 4.957 4.543 4.543zM12.707 10l3.243 3.243L18.376 10zM9.795 7.088l2.079 2.079L16.3 3h-5.278z"}))}function kR(e){const{status:t,scanning:n,torchToggle:r}=e;function i(s){r(s)}return n&&r?I.createElement("div",{style:{bottom:35,right:3,position:"absolute",zIndex:2,cursor:"pointer"}},t?I.createElement(IR,{onClick:()=>i(!1)}):I.createElement(TR,{onClick:()=>i(!0)})):null}function OR(e){const{onClick:t,className:n,disabled:r=!1}=e,i={cursor:r?"default":"pointer",stroke:r?"grey":"yellow",fill:r?"grey":"yellow",...e.style};return I.createElement("svg",{onClick:r?void 0:t,width:"30px",height:"30px",viewBox:"0 0 24 24",className:n,style:i,xmlns:"http://www.w3.org/2000/svg"},I.createElement("path",{strokeWidth:.3,d:"M16.279,17.039c-1.396,1.209 -3.216,1.941 -5.206,1.941c-4.393,0 -7.96,-3.567 -7.96,-7.96c-0,-4.393 3.567,-7.96 7.96,-7.96c4.393,0 7.96,3.567 7.96,7.96c-0,2.044 -0.772,3.909 -2.04,5.319l0.165,0.165c1.194,1.194 2.388,2.388 3.583,3.582c0.455,0.456 -0.252,1.163 -0.707,0.708l-3.755,-3.755Zm1.754,-6.019c-0,-3.841 -3.119,-6.96 -6.96,-6.96c-3.842,0 -6.96,3.119 -6.96,6.96c-0,3.841 3.118,6.96 6.96,6.96c3.841,0 6.96,-3.119 6.96,-6.96Zm-7.46,0.5l-1.5,0c-0.645,0 -0.643,-1 -0,-1l1.5,0l-0,-1.5c-0,-0.645 1,-0.643 1,0l-0,1.5l1.5,0c0.645,0 0.643,1 -0,1l-1.5,0l-0,1.5c-0,0.645 -1,0.643 -1,0l-0,-1.5Z"}))}function RR(e){const{onClick:t,className:n,disabled:r=!1}=e,i={cursor:r?"default":"pointer",stroke:r?"grey":"yellow",fill:r?"grey":"yellow",...e.style};return I.createElement("svg",{onClick:r?void 0:t,width:"30px",height:"30px",viewBox:"0 0 24 24",className:n,style:i,xmlns:"http://www.w3.org/2000/svg"},I.createElement("path",{strokeWidth:.3,d:"M16.279,17.039c-1.396,1.209 -3.216,1.941 -5.206,1.941c-4.393,0 -7.96,-3.567 -7.96,-7.96c-0,-4.393 3.567,-7.96 7.96,-7.96c4.393,0 7.96,3.567 7.96,7.96c-0,2.044 -0.772,3.909 -2.04,5.319l0.165,0.165c1.194,1.194 2.388,2.388 3.583,3.582c0.455,0.456 -0.252,1.163 -0.707,0.708l-3.755,-3.755Zm1.754,-6.019c-0,-3.841 -3.119,-6.96 -6.96,-6.96c-3.842,0 -6.96,3.119 -6.96,6.96c-0,3.841 3.118,6.96 6.96,6.96c3.841,0 6.96,-3.119 6.96,-6.96Zm-4.96,-0.5c0.645,0 0.643,1 -0,1l-4,0c-0.645,0 -0.643,-1 -0,-1l4,0Z"}))}function NR(e){const{scanning:t,capabilities:n,onZoom:r,value:i}=e;if(!t||!r)return null;const s=(n.max-n.min)/3;return I.createElement(I.Fragment,null,I.createElement("div",{style:{bottom:130,right:3,position:"absolute",zIndex:2,cursor:"pointer"}},I.createElement(RR,{disabled:i<=n.min,onClick:function(){r(Math.max(i-s,n.min))}})),I.createElement("div",{style:{bottom:180,right:3,position:"absolute",zIndex:2,cursor:"pointer"}},I.createElement(OR,{disabled:i>=n.max,onClick:function(){r(Math.min(i+s,n.max))}})))}function MR(e){const{scanning:t,loading:n,capabilities:r,border:i=35,onOff:s,torch:o,zoom:c,startScanning:u,stopScanning:d}=e,f="rgba(255, 0, 0, 0.5)";return I.createElement("div",{style:{position:"relative"}},I.createElement("svg",{viewBox:"0 0 100 100",style:{top:0,left:0,zIndex:1,boxSizing:"border-box",border:`${i>=35?i:35}px solid rgba(0, 0, 0, 0.2)`}},n&&I.createElement("text",{x:"50",y:"50",textAnchor:"middle",fill:"black",fontSize:"8",fontFamily:"Arial",fontWeight:"bold"},"Loading ...",I.createElement("animate",{attributeName:"opacity",values:"0;1;0",dur:"2s",repeatCount:"indefinite"})),I.createElement("path",{fill:"none",d:"M23,0 L0,0 L0,23",stroke:f,strokeWidth:3}),I.createElement("path",{fill:"none",d:"M0,77 L0,100 L23,100",stroke:f,strokeWidth:3}),I.createElement("path",{fill:"none",d:"M77,100 L100,100 L100,77",stroke:f,strokeWidth:3}),I.createElement("path",{fill:"none",d:"M100,23 L100,0 77,0",stroke:f,strokeWidth:3})),s&&I.createElement(AR,{scanning:t,startScanning:u,stopScanning:d}),o&&r.torch&&I.createElement(kR,{scanning:t,status:o.status,torchToggle:o.toggle}),c&&r.zoom&&I.createElement(NR,{scanning:t,capabilities:r.zoom,value:c.value,onZoom:c.onChange}))}const DR={facingMode:"environment",width:{min:640,ideal:720,max:1920},height:{min:640,ideal:720,max:1080}},PR={audio:!0,tracker:void 0,onOff:!1,finder:!0,torch:!0,zoom:!1},jR={width:"100%",height:"100%",position:"relative"},LR={top:0,left:0,width:"100%",height:"100%",display:"block",overflow:"hidden"};var BR=function(e){let t,n=!1;return(...r)=>(n||(t=e(r),n=!0),t)}(()=>{const e=wO(window);switch(e.browser){case"chrome":RO(window,e);break;case"firefox":PO(window,e);break;case"safari":FO(window,e);break;default:throw new Error("Unsupported browser")}});const FR="data:audio/mp3;base64,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";var Zo=e=>e instanceof Date,M1=e=>e==null;const D1=e=>typeof e=="object";var P1=e=>!M1(e)&&!Array.isArray(e)&&D1(e)&&!Zo(e),j1=e=>M1(e)||!D1(e);function L1(e,t){if(j1(e)||j1(t))return e===t;if(Zo(e)&&Zo(t))return e.getTime()===t.getTime();const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(const i of n){const s=e[i];if(!r.includes(i))return!1;if(i!=="ref"){const o=t[i];if(Zo(s)&&Zo(o)||P1(s)&&P1(o)||Array.isArray(s)&&Array.isArray(o)?!L1(s,o):s!==o)return!1}}return!0}function du(e){if(e===null)throw new Error("Canvas should always be defined when component is mounted.");const t=e.getContext("2d");if(t===null)throw new Error("Canvas 2D context should be non-null");t.clearRect(0,0,e.width,e.height)}function UR(e){var t;const{onScan:n,constraints:r,formats:i=["qr_code"],paused:s=!1,components:o,children:c,styles:u,classNames:d,allowMultiple:f,scanDelay:p,onError:l}=e,v=I.useRef(null),a=I.useRef(null),h=I.useRef(null),y=I.useMemo(()=>({...DR,...r}),[r]),g=I.useMemo(()=>({...PR,...o}),[o]),[b,w]=I.useState(!1),[E,S]=I.useState(!0),[A,T]=I.useState(y),O=function(){const U=I.useRef(Promise.resolve({type:"stop",data:{}})),R=I.useRef(null),L=I.useRef(null),[Y,z]=I.useState({}),[ee,te]=I.useState({}),re=I.useCallback(async(q,$)=>{var Q,_,j;if(!window.isSecureContext)throw new Error("camera access is only permitted in secure context. Use HTTPS or localhost rather than HTTP.");if(((Q=navigator==null?void 0:navigator.mediaDevices)===null||Q===void 0?void 0:Q.getUserMedia)===void 0)throw new Error("this browser has no Stream API support");BR();const B=await navigator.mediaDevices.getUserMedia({audio:!1,video:$});q.srcObject!==void 0?q.srcObject=B:q.mozSrcObject!==void 0?q.mozSrcObject=B:window.URL.createObjectURL?q.src=window.URL.createObjectURL(B):window.webkitURL?q.src=window.webkitURL.createObjectURL(B):q.src=B.id,await Promise.race([q.play(),new Promise(X=>setTimeout(X,3e3)).then(()=>{throw new Error("Loading camera stream timed out after 3 seconds.")})]),await new Promise(X=>setTimeout(X,500));const[N]=B.getVideoTracks();return te(N.getSettings()),z((j=(_=N==null?void 0:N.getCapabilities)===null||_===void 0?void 0:_.call(N))!==null&&j!==void 0?j:{}),R.current=B,L.current=N,{type:"start",data:{videoEl:q,stream:B,constraints:$}}},[]),he=I.useCallback(async(q,$)=>{q.src="",q.srcObject=null,q.load();for(const Q of $.getTracks())$.removeTrack(Q),Q.stop();return R.current=null,L.current=null,te({}),{type:"stop",data:{}}},[]),ue=I.useCallback(async(q,{constraints:$,restart:Q=!1})=>{if(U.current=U.current.then(_=>{if(_.type==="start"){const{data:{videoEl:j,stream:B,constraints:N}}=_;return Q||q!==j||$!==N?he(j,B).then(()=>re(q,$)):_}return re(q,$)}),(await U.current).type==="stop")throw new Error("Something went wrong with the camera task queue (start task).")},[re,he]),ye=I.useCallback(async()=>{if(U.current=U.current.then(q=>{if(q.type==="stop")return q;const{data:{videoEl:$,stream:Q}}=q;return he($,Q)}),(await U.current).type==="start")throw new Error("Something went wrong with the camera task queue (stop task).")},[he]),pe=I.useCallback(async q=>{const $=L.current;if(!$)throw new Error("No active video track found.");{q.advanced&&q.advanced[0].zoom&&$.getCapabilities().torch&&await $.applyConstraints({advanced:[{torch:!1}]}),await $.applyConstraints(q);const Q=$.getCapabilities(),_=$.getSettings();z(Q),te(_)}},[]);return I.useEffect(()=>()=>{(async()=>await ye())()},[ye]),{capabilities:Y,settings:ee,startCamera:ue,stopCamera:ye,updateConstraints:pe}}(),{startScanning:M,stopScanning:D}=function(U){const{videoElementRef:R,onScan:L,onFound:Y,retryDelay:z=100,scanDelay:ee=0,formats:te=[],audio:re=!0,allowMultiple:he=!1}=U,ue=I.useRef(new Df({formats:te})),ye=I.useRef(null),pe=I.useRef(null);I.useEffect(()=>{ue.current=new Df({formats:te})},[te]),I.useEffect(()=>{typeof window<"u"&&re&&(ye.current=new Audio(FR))},[re]);const q=I.useCallback($=>async Q=>{if(R.current!==null&&R.current.readyState>1){const{lastScan:_,contentBefore:j,lastScanHadContent:B}=$;if(Q-_<z)pe.current=window.requestAnimationFrame(q($));else{const N=await ue.current.detect(R.current),X=N.some(fe=>!j.includes(fe.rawValue)),J=N.length>0;let Z=$.lastOnScan;(X||he&&J&&Q-Z>=ee)&&(re&&ye.current&&ye.current.paused&&ye.current.play().catch(fe=>console.error("Error playing the sound",fe)),Z=Q,L(N)),J&&Y(N),!J&&B&&Y(N);const W={lastScan:Q,lastOnScan:Z,lastScanHadContent:J,contentBefore:X?N.map(fe=>fe.rawValue):j};pe.current=window.requestAnimationFrame(q(W))}}},[R.current,L,Y,z]);return{startScanning:I.useCallback(()=>{const $=performance.now(),Q={lastScan:$,lastOnScan:$,contentBefore:[],lastScanHadContent:!1};pe.current=window.requestAnimationFrame(q(Q))},[q]),stopScanning:I.useCallback(()=>{pe.current!==null&&(window.cancelAnimationFrame(pe.current),pe.current=null)},[])}}({videoElementRef:v,onScan:n,onFound:U=>function(R,L,Y,z){const ee=Y;if(ee==null)throw new Error("onFound handler should only be called when component is mounted. Thus tracking canvas is always defined.");const te=L;if(te==null)throw new Error("onFound handler should only be called when component is mounted. Thus video element is always defined.");if(R.length===0||z===void 0)du(ee);else{const re=te.offsetWidth,he=te.offsetHeight,ue=te.videoWidth,ye=te.videoHeight,pe=Math.max(re/ue,he/ye),q=ue*pe,$=ye*pe,Q=q/ue,_=$/ye,j=(re-q)/2,B=(he-$)/2,N=({x:W,y:fe})=>({x:Math.floor(W*Q),y:Math.floor(fe*_)}),X=({x:W,y:fe})=>({x:Math.floor(W+j),y:Math.floor(fe+B)}),J=R.map(W=>{const{boundingBox:fe,cornerPoints:ge}=W,{x:le,y:ie}=X(N({x:fe.x,y:fe.y})),{x:be,y:ae}=N({x:fe.width,y:fe.height});return{...W,cornerPoints:ge.map(Ce=>X(N(Ce))),boundingBox:DOMRectReadOnly.fromRect({x:le,y:ie,width:be,height:ae})}});ee.width=te.offsetWidth,ee.height=te.offsetHeight;const Z=ee.getContext("2d");if(Z===null)throw new Error("onFound handler should only be called when component is mounted. Thus tracking canvas 2D context is always defined.");z(J,Z)}}(U,v.current,h.current,g.tracker),formats:i,audio:g.audio,allowMultiple:f,retryDelay:g.tracker===void 0?500:10,scanDelay:p});I.useEffect(()=>(w(!0),()=>{w(!1)}),[]),I.useEffect(()=>{b&&(D(),M())},[o==null?void 0:o.tracker]),I.useEffect(()=>{if(!L1(y,A)){const U=y;r!=null&&r.deviceId&&delete U.facingMode,T(U)}},[r]);const F=I.useMemo(()=>({constraints:A,shouldStream:b&&!s}),[A,b,s]),V=async()=>{const U=v.current;if(U==null)throw new Error("Video should be defined when component is mounted.");const R=a.current;if(R==null)throw new Error("Canvas should be defined when component is mounted.");const L=R.getContext("2d");if(L==null)throw new Error("Canvas should be defined when component is mounted.");if(F.shouldStream){await O.stopCamera(),S(!1);try{await O.startCamera(U,F),U?S(!0):await O.stopCamera()}catch(Y){l==null||l(Y),console.error("error",Y)}}else R.width=U.videoWidth,R.height=U.videoHeight,L.drawImage(U,0,0,U.videoWidth,U.videoHeight),await O.stopCamera(),S(!1)};I.useEffect(()=>{(async()=>await V())()},[F]);const G=I.useMemo(()=>F.shouldStream&&E,[F.shouldStream,E]);return I.useEffect(()=>{if(G){if(a.current===void 0)throw new Error("shouldScan effect should only be triggered when component is mounted. Thus pause frame canvas is defined");if(du(a.current),h.current===void 0)throw new Error("shouldScan effect should only be triggered when component is mounted. Thus tracking canvas is defined");if(du(h.current),v.current==null)throw new Error("shouldScan effect should only be triggered when component is mounted. Thus video element is defined");M()}},[G]),I.createElement("div",{style:{...jR,...u==null?void 0:u.container},className:d==null?void 0:d.container},I.createElement("video",{ref:v,style:{...LR,...u==null?void 0:u.video,visibility:s?"hidden":"visible"},className:d==null?void 0:d.video,autoPlay:!0,muted:!0,playsInline:!0}),I.createElement("canvas",{ref:a,style:{display:s?"block":"none",position:"absolute",top:0,left:0,width:"100%"}}),I.createElement("canvas",{ref:h,style:{position:"absolute",top:0,left:0,width:"100%",height:"100%"}}),I.createElement("div",{style:{top:0,left:0,position:"absolute",width:"100%",height:"100%"}},g.finder&&I.createElement(MR,{scanning:E,capabilities:O.capabilities,loading:!1,onOff:g.onOff,zoom:g.zoom&&O.settings.zoom?{value:O.settings.zoom,onChange:async U=>{const R={...A,advanced:[{zoom:U}]};await O.updateConstraints(R)}}:void 0,torch:g.torch?{status:(t=O.settings.torch)!==null&&t!==void 0&&t,toggle:async U=>{const R={...A,advanced:[{torch:U}]};await O.updateConstraints(R)}}:void 0,startScanning:async()=>await V(),stopScanning:async()=>{await O.stopCamera(),du(h.current),S(!1)},border:u==null?void 0:u.finderBorder}),c))}function VR(){const[e,t]=I.useState([]);return I.useEffect(()=>{(async()=>t(await async function(){return(await navigator.mediaDevices.enumerateDevices()).filter(({kind:n})=>n==="videoinput")}()))()},[]),e}const B1=I.createContext({});function fn(){const e=I.useContext(B1);if(!e)throw new Error("Only use 'useConfigurationContext' within a ConfigurationContext Provider");return e}const qR="data:image/svg+xml,%3csvg%20height='24'%20viewBox='0%200%2024%2024'%20width='24'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='m21.25%207.5c.3796958%200%20.693491.28215388.7431534.64822944l.0068466.10177056v8.5c0%201.7330315-1.3564548%203.1492459-3.0655761%203.2448552l-.1844239.0051448h-12.689l.71933009.7196699c.26626656.2662666.29047261.6829303.07261815.9765418l-.07261815.0841184c-.26626657.2662665-.68293025.2904726-.97654174.0726181l-.08411844-.0726181-2-2-.06339799-.0720275c-.00244939-.0031685-.00487398-.0063571-.00727348-.0095656l.07067147.0815931c-.03705327-.0370533-.06941902-.077019-.09709724-.1191603-.01316484-.0201549-.025545-.0411423-.03690171-.0627516-.00483354-.0091218-.00919014-.0178526-.01336588-.0266478-.01274712-.0267885-.02425172-.0552483-.03400215-.0845099-.00225837-.0069437-.00418282-.0130149-.00602813-.019105-.02092163-.0684786-.0322748-.1419912-.0322748-.2181555%200-.0383922.00288471-.0761107.00844919-.1129505.00180466-.0115676.0038603-.0232773.00619514-.0349422.00494363-.0250031.01111685-.0492994.01844184-.073091.00362656-.0116598.00765847-.0237092.01200456-.0356703.00848426-.0232976.01778613-.0453662.02808241-.0668678.00549219-.0116011.01179514-.0239381.01846187-.0361292.01323523-.0240158.02734042-.0467392.04258121-.0686124.00392129-.0057417.00832657-.0118713.01283554-.0179483.0251194-.0332177.04801831-.0595185.07261815-.0841184l2-2c.29289322-.2928932.76776696-.2928932%201.06066018%200%20.26626656.2662666.29047261.6829303.07261815.9765418l-.07261815.0841184-.72033009.7196699h12.69c.9181734%200%201.6711923-.7071103%201.7441988-1.6064728l.0058012-.1435272v-8.5c0-.41421356.3357864-.75.75-.75zm-3.0537883-5.35294824.0841184.07261815%202%202c.0254481.02544812.049076.05271652.0706715.08159313l-.0706715-.08159313c.0370533.03705328.069419.07701901.0970972.1191603.0131649.02015493.025545.04114226.0369017.06275154.0048336.00912187.0091902.01785262.0133659.02664784.0127471.02678853.0242517.0552483.0340022.08450994.0022583.00694369.0041828.01301489.0060281.01910493.0209216.06847868.0322748.14199127.0322748.21815554%200%20.03839224-.0028847.07611073-.0084492.11295053-.0014988.0095454-.0031606.01924362-.0050138.02891241-.0051364.02710922-.0117072.05340972-.0196232.07912072-.0036265.0116598-.0076584.02370928-.0120045.03567032-.0084843.02329763-.0177862.04536621-.0280824.06686781-.0054922.01160108-.0117952.02393815-.0184619.03612923-.0132352.02401575-.0273404.04673917-.0425812.06861233-.0039213.00574174-.0083266.01187138-.0128356.0179483-.023778.03144192-.0451015.05615345-.0679264.07938506l-.0046917.00473338-2%202c-.2928932.29289321-.767767.29289321-1.0606602%200-.2662665-.26626657-.2904726-.68293025-.0726181-.97654174l.0726181-.08411844.7183301-.71966991h-12.688c-.9181734%200-1.67119234.70711027-1.7441988%201.60647279l-.0058012.14352721v8.5c0%20.4142136-.33578644.75-.75.75-.37969577%200-.69349096-.2821539-.74315338-.6482294l-.00684662-.1017706v-8.5c0-1.73303146%201.35645477-3.14924593%203.06557609-3.24485521l.18442391-.00514479h12.689l-.7193301-.71966991c-.2662665-.26626657-.2904726-.68293025-.0726181-.97654174l.0726181-.08411844c.2662666-.26626656.6829303-.29047261.9765418-.07261815zm-6.1962117%205.85294824c2.209139%200%204%201.790861%204%204s-1.790861%204-4%204-4-1.790861-4-4%201.790861-4%204-4zm0%201.5c-1.3807119%200-2.5%201.1192881-2.5%202.5s1.1192881%202.5%202.5%202.5%202.5-1.1192881%202.5-2.5-1.1192881-2.5-2.5-2.5z'%20fill='%23212121'/%3e%3c/svg%3e";function $R({onScan:e}){const{cameraFacingMode:t}=fn(),[n,r]=I.useState(t??Hi.USER);return m.jsxs("div",{className:"relative w-full",children:[m.jsx("div",{className:"scale-x-[-1]",children:m.jsx(UR,{components:{finder:!1},onScan:e,constraints:{facingMode:n},allowMultiple:!0,classNames:{video:"rounded",container:"max-h-[calc(100vh-381px)] min-h-[267px] overflow-hidden rounded"},onError:i=>{console.log(i),tc(i)}})}),m.jsx("div",{className:"absolute right-2 top-2 flex h-10 w-10 cursor-pointer items-center justify-center rounded bg-white shadow-overlay",onClick:()=>n===Hi.USER?r(Hi.ENVIRONMENT):r(Hi.USER),children:m.jsx("img",{src:qR,alt:"camera-switch"})})]})}function Ms({data:e,dataSetter:t,setDefer:n,label:r=""}){const i=I.useRef(null),s=VR(),[o,c]=Dk()??[0,0],{subscribe:u,unsubscribe:d}=Oo(),f=p=>{t(p[0].rawValue)};return I.useEffect(()=>{c&&c<=332&&i.current&&i.current.scrollIntoView({behavior:"smooth",block:"end"});const p=l=>{t(l.detail.code)};return u("onCodeScan",p),()=>{d("onCodeScan",p)}},[c]),m.jsxs("div",{ref:i,children:[!!s.length&&m.jsxs("div",{className:"mb-4 flex flex-col gap-4",children:[m.jsx($R,{onScan:f}),m.jsx("hr",{})]}),m.jsx(ji,{label:r,value:e,autoFocus:!0,placeholder:"CDE2341S",onChange:p=>{n&&n(!0),t(p.target.value)}})]})}function GR(){const{t:e}=Ve(),{errorToast:t}=qt(),{uuid:n,portalSession:r}=Be(),[i,s]=I.useState(""),[o,c]=I.useState(!1),[u,d]=I.useState(!1),f=Gt(),p=At(),l=()=>{d(!0),p.get(`${n}/check-code/${i}`).then(v=>{if(v.data.identifier)return f(`identifier/${v.data.identifier.value}`);if(v.data.voucher)return f(`voucher/${v.data.voucher.code}`);if(v.data.giftcard)return f(`giftcard/${v.data.giftcard.hash}`);t(e("unknownCode",{code:i}))}).catch(t).finally(()=>d(!1))};return I.useEffect(()=>{i&&!o&&l()},[i]),m.jsx(dn,{children:m.jsxs(Tt,{id:Qn,children:[m.jsx(Ct,{children:m.jsx("div",{className:"flex h-16 items-center",children:m.jsx("p",{children:e("scanOrEnterX",{x:"code"})})})}),m.jsx(xt,{children:m.jsx(Fi,{onSubmit:l,children:m.jsx(Ms,{data:i,dataSetter:s,setDefer:c,label:e("contactIdentifier")})})}),m.jsx(zt,{children:m.jsxs("div",{className:"flex flex-col gap-2",children:[m.jsx(ot,{label:e("continue"),onClick:l,pending:u}),r.inputData.enable_email_identification&&m.jsx(ot,{label:e("useEmail"),variant:"secondary",onClick:()=>f("email")})]})})]})})}function HR(){const{hash:e}=Pr();return m.jsx(zn,{to:`${Pe.GIFTCARD}/select/${e}`})}function YR(){const{identifierValue:e}=Pr(),{errorToast:t}=qt(),{uuid:n,mutate:r}=Be(),{onContactLink:i}=fn(),[s,o]=I.useState(!1),c=At(),u=f=>c.get(`${n}/contacts`,{contact_uuid:f}),d=()=>{c.put(n,{contact_identifier_value:e}).then(f=>{i&&u(f.data.data.contact.uuid).then(p=>{i==null||i(p.data.data)}),r().then(()=>o(!0))}).catch(t)};return I.useEffect(()=>{d()},[]),s?m.jsx(zn,{to:`${Pe.PORTAL}/overview`}):m.jsx(ir,{})}function F1(e){const{portalSession:t}=Be(),[n,r]=I.useState(),{isLoading:i,pending:s,mutate:o}=$n({url:`${t.uuid}/vouchers/${e}`,onData:r});return{voucher:n,isLoading:i,pending:s,mutate:o}}function WR(){const{t:e}=Ve(),{code:t}=Pr(),{voucher:n}=F1(t),{portalSession:r}=Be(),[i,s]=I.useState(!1),[o,c]=I.useState(!1),u=Gt(),d=()=>{n!=null&&n.contact||r.contact?s(!0):c(!0)};return I.useEffect(()=>{n&&d()},[n]),n?m.jsxs(m.Fragment,{children:[i?m.jsx(zn,{to:`${Pe.VOUCHER}/${n.code}/redeem`}):m.jsx(ir,{}),m.jsx(fi,{title:e("noContactLinkedToVoucherTitle"),isOpen:o,onClose:()=>c(!1),primaryAction:{label:e("linkToContact"),action:()=>u(`${Pe.VOUCHER}/${n.code}/identifier`)},secondaryAction:{label:e("cancel"),action:()=>c(!1)},children:m.jsx("p",{children:e("linkVoucherWithCodeToContact",{code:n.code})})})]}):m.jsx(ir,{})}function fu({redirectRoute:e}){const{state:t}=Fn(),{t:n}=Ve(),{onContactLink:r}=fn(),{portalSession:i,mutate:s}=Be(),{publish:o}=Oo(),[c,u]=I.useState(""),[d,f]=I.useState(!1),[p,l]=I.useState(!1),v=Gt(),a=At(),h=b=>a.get(`${i.uuid}/contacts`,{contact_uuid:b}),y=()=>{f(!0),a.put(i.uuid,{email:c}).then(b=>{r&&h(b.data.data.contact.uuid).then(w=>{r==null||r(w.data.data)}),s().then(()=>v(e))}).catch(b=>{b.response.data.code===Ia.CONTACT_NOT_FOUND&&l(!0)}).finally(()=>f(!1))},g=()=>{f(!0),a.post(`${i.uuid}/contacts`,{email:c}).then(y).finally(()=>f(!1))};return I.useEffect(()=>{o("openKeyboard",{inputId:"via-email-address-input",inputValue:""})},[]),m.jsxs(m.Fragment,{children:[m.jsx(dn,{children:m.jsxs(Tt,{id:Qn,children:[m.jsx(Ct,{children:m.jsx("div",{className:"flex h-16 items-center",children:m.jsx("p",{children:n("fillInXBelow",{x:n("emailAddress").toLowerCase()})})})}),m.jsx(xt,{children:m.jsx(Fi,{onSubmit:()=>c&&!d&&y(),children:m.jsx(ji,{id:"via-email-address-input",label:n("emailAddress"),autoFocus:!0,onChange:b=>u(b.target.value),beforeIcon:"mail"})})}),m.jsx(zt,{children:m.jsxs("div",{className:"flex flex-col gap-2",children:[m.jsx(ot,{label:n("continue"),className:"w-full",onClick:y,disabled:!c,pending:d}),m.jsx(ot,{label:n("useIdentifier"),variant:"secondary",onClick:()=>v("../identifier",{state:t})})]})})]})}),m.jsx(fi,{title:`${n("new")} ${n("emailAddress").toLowerCase()}`,isOpen:p,onClose:()=>l(!1),primaryAction:{label:n("confirm"),action:g,disabled:d},secondaryAction:{label:n("cancel"),action:()=>l(!1)},children:m.jsx("p",{children:n("continueWithEmail",{email:c})})})]})}function KR(){return m.jsxs(jr,{children:[m.jsx(He,{path:"/*",element:m.jsx(GR,{})}),m.jsx(He,{path:"/giftcard/:hash",element:m.jsx(HR,{})}),m.jsx(He,{path:"/identifier/:identifierValue",element:m.jsx(YR,{})}),m.jsx(He,{path:"/voucher/:code",element:m.jsx(WR,{})}),m.jsx(He,{path:"/email",element:m.jsx(fu,{redirectRoute:Pe.PORTAL})})]})}const zR={[$t.GIFTCARD]:`${Pe.GIFTCARD}/select`,[$t.REDEEM_GIFTCARD]:`${Pe.GIFTCARD}/redeem`,[$t.TOP_UP_GIFTCARD]:`${Pe.GIFTCARD}/top-up`};function QR(){const{t:e}=Ve(),{portalSession:t}=Be(),{errorToast:n}=qt(),[r,i]=I.useState(""),[s,o]=I.useState(!1),[c,u]=I.useState(!1),d=At(),f=Gt(),p=()=>{o(!0),d.get(`${t.uuid}/giftcards/${r}`).then(l=>{const v=t.type;f(`${zR[v]}/${l.data.data.hash}`)}).catch(l=>{n(l),i("")}).finally(()=>o(!1))};return I.useEffect(()=>{!c&&r&&p()},[r]),m.jsx(dn,{children:m.jsxs(Tt,{id:Qn,children:[m.jsx(Ct,{children:m.jsx("div",{className:"flex h-16 items-center",children:m.jsx("p",{children:e("scanGiftcard")})})}),m.jsx(xt,{children:m.jsx(Ms,{data:r,dataSetter:i,setDefer:u,label:e("hash")})}),m.jsx(zt,{children:m.jsx(ot,{label:e("submit"),className:"w-full",onClick:p,disabled:!r,pending:s})})]})})}function JR(){const{t:e}=Ve(),{hash:t}=Pr(),n=Gt();return m.jsx(dn,{children:m.jsxs(Tt,{id:Qn,children:[m.jsx(Ct,{children:m.jsx("div",{className:"flex h-16 items-center",children:m.jsx("p",{children:e("Choose type")})})}),m.jsx(xt,{children:m.jsxs("div",{className:"flex gap-2",children:[m.jsx(ot,{className:"grow",label:"Redeem",onClick:()=>n(`${Pe.GIFTCARD}/redeem/${t}`)}),m.jsx(ot,{className:"grow",label:"Top up",onClick:()=>n(`${Pe.GIFTCARD}/top-up/${t}`)})]})})]})})}function U1(e){const{portalSession:t}=Be(),[n,r]=I.useState(),{isLoading:i,pending:s,mutate:o}=$n({url:`${t.uuid}/giftcards/${e}`,onData:r});return{giftcard:n,isLoading:i,pending:s,mutate:o}}function Xo(){const{mutate:e}=Be();return{get:()=>e().then(r=>r.data.data.events),post:()=>{e().then(r=>{HS(r.data.data.events)})}}}function ZR(){const{t:e}=Ve(),{errorToast:t}=qt(),{hash:n}=Pr(),{giftcard:r,mutate:i}=U1(n),{portalSession:s,mutate:o}=Be(),{onUseGiftcard:c}=fn(),{post:u}=Xo(),[d]=I.useState(s.results.remaining_amount?+s.results.remaining_amount:+s.inputData.amount_in_cents),[f,p]=I.useState(!1),l=s.inputData.allow_multiple_giftcards??!0,v=Gt(),a=At(),h=()=>{p(!0),a.post(`${s.uuid}/giftcards/transaction`,{uuid:r.uuid,amount_in_cents:-y()}).then(E=>{i(),o(),u(),c==null||c(E.data.data)}).catch(t).finally(()=>p(!1))},y=()=>Math.min(g(),r.amount_in_cents),g=()=>s.results.remaining_amount??s.inputData.amount_in_cents,b=()=>{let E=0;return s.events.filter(A=>A.type===Kr.GIFTCARD_TRANSACTION).forEach(A=>{A.data.giftcard.uuid===r.uuid&&(E+=A.data.amount_in_cents)}),E},w=()=>{if(y())return{label:e("confirmAndPay",{amount:Ki(y(),s.currency)}),onClick:h};if(l&&g())return{label:e("useAnotherGiftcard"),onClick:()=>v(Pe.GIFTCARD),variant:"secondary"}};return r?m.jsx(dn,{children:m.jsxs(Tt,{children:[m.jsx(Ct,{children:m.jsx("div",{className:"flex h-16 items-center",children:m.jsx("p",{children:`${e("giftcard")} ${r.hash}`})})}),m.jsx(xt,{children:m.jsxs("div",{className:"flex h-full flex-col gap-4",children:[m.jsx("div",{className:"rounded-lg bg-core-primary-50 p-4",children:m.jsxs("div",{className:"flex justify-between",children:[m.jsx("p",{className:"font-light text-gray-500",children:e("balance")}),m.jsx(di,{value:r.amount_in_cents,start:r.amount_in_cents-b(),currency:s.currency,asCurrency:!0})]})}),m.jsx("div",{className:"flex h-full flex-col items-center justify-center gap-2 p-6",children:m.jsxs("div",{className:"flex flex-col items-center gap-2 p-4",children:[m.jsx("p",{className:"font-light text-gray-500",children:e("amountToPay")}),m.jsx("div",{className:"text-5xl font-bold",children:m.jsx(di,{value:d+b(),start:d,currency:s.currency,asCurrency:!0})})]})})]})}),w()&&m.jsx(zt,{children:m.jsx(ot,{label:"",className:"w-full",...w(),pending:f})})]})}):m.jsx(ir,{})}function XR({value:e,valueSetter:t,enabled:n}){const[r,i]=I.useState(!1),s=I.useRef(null),o=I.useRef(null);I.useEffect(()=>{d(e?e.toString():"")},[]);const c=f=>{t(f?parseInt(f):0),d(f)},u=f=>{const{key:p}=f;if(e===0&&!/^[1-9]$/.test(p)||e!==0&&!/^[0-9]$/.test(p)&&p!=="Backspace")return;let l;if(p!=="Backspace")l=parseInt(e===0?p:`${e}${p}`);else{const v=e.toString().slice(0,-1);l=v.length?parseInt(v,10):0}t(l),d(l?l.toString():"")},d=f=>{o&&o.current&&(f?o.current.style.width=`${Math.max(f.length,3)*3}rem`:o.current.style.width="calc(3rem + 14px)")};return m.jsxs(m.Fragment,{children:[m.jsx("input",{ref:o,className:"h-full w-[65px] rounded border-gray-200 border-transparent text-5xl [appearance:textfield] focus:border-transparent focus:ring-0 [&::-webkit-inner-spin-button]:appearance-none [&::-webkit-outer-spin-button]:appearance-none",type:"number",pattern:"[0-9]*",inputMode:"numeric",placeholder:"0",autoFocus:!0,value:e?(e/100).toFixed(2):"",onKeyDown:u,onChange:()=>{},onFocus:()=>i(!0),onBlur:()=>i(!1)}),n&&m.jsx("div",{className:`mobile:hidden bottom-2 left-2 right-2 z-50 mx-auto w-[98vw] max-w-[1200px] ${!r&&"hidden"} absolute`,children:m.jsx(zy,{keyboardRef:s,layout:{default:["1 2 3","4 5 6","7 8 9","00 0 {bksp}"]},theme:"hg-theme-default hg-layout-numeric numeric-theme",onChange:c})})]})}function V1({title:e,balance:t,balanceName:n,transaction:r,pending:i}){const{t:s}=Ve(),[o,c]=I.useState(0),{portalSession:u}=Be(),d=()=>{let f=0;return u.events.filter(l=>Object.values(Kr).includes(l.type)).forEach(l=>{f+=l.data.amount_in_cents}),f};return m.jsxs(Tt,{children:[e&&m.jsx(Ct,{children:m.jsx("div",{className:"flex h-16 items-center",children:m.jsx("p",{children:e})})}),m.jsx(xt,{children:m.jsxs("div",{className:"flex h-full flex-col gap-4",children:[m.jsx("div",{className:"rounded-lg bg-core-primary-50 p-4",children:m.jsxs("div",{className:"flex justify-between",children:[m.jsx("p",{className:"font-light text-gray-500",children:n??s("balance")}),m.jsx(di,{value:t??0,start:t??0,currency:u.currency,asCurrency:!0})]})}),m.jsx("div",{className:"flex h-full flex-col items-center justify-center gap-2 p-6",children:m.jsx("div",{className:"flex items-center justify-center gap-1 p-4 text-5xl font-bold",children:d()?m.jsx(di,{value:0,start:o,currency:u.currency,asCurrency:!0}):m.jsxs("div",{className:"flex items-center justify-center gap-1 ",children:[m.jsx("p",{children:GS(u.currency)}),m.jsx(XR,{value:o,valueSetter:c,enabled:u.inputData.enable_on_screen_keyboard})]})})})]})}),m.jsx(zt,{children:m.jsx(ot,{label:s("confirmAndPay",{amount:Ki(o,u.currency)}),className:"w-full",onClick:r&&(()=>r(o)),disabled:!o||!!d(),pending:i})})]})}function eN(){const{t:e}=Ve(),{errorToast:t}=qt(),{hash:n}=Pr(),{giftcard:r,mutate:i}=U1(n),{portalSession:s,mutate:o}=Be(),{post:c}=Xo(),{onUseGiftcard:u}=fn(),[d,f]=I.useState(!1),p=At(),l=v=>{f(!0),p.post(`${s.uuid}/giftcards/transaction`,{uuid:r.uuid,amount_in_cents:v}).then(a=>{i(),o(),c(),u==null||u(a.data.data),mt.success(`${e("transactionSuccessful")}! ${e("totalUpgradedAmount")}: ${Ki(a.data.data.amount_in_cents)}`)}).catch(t).finally(()=>f(!1))};return r?m.jsx(dn,{children:m.jsx(V1,{title:`${e("giftcard")} ${r.hash}`,balance:r.amount_in_cents,transaction:l,pending:d})}):m.jsx(ir,{})}function tN(){return m.jsxs(jr,{children:[m.jsx(He,{path:"/",element:m.jsx(QR,{})}),m.jsx(He,{path:"/select/:hash",element:m.jsx(JR,{})}),m.jsx(He,{path:"/redeem/:hash",element:m.jsx(ZR,{})}),m.jsx(He,{path:"/top-up/:hash",element:m.jsx(eN,{})})]})}class Pf{constructor(){Nn(this,"uuid");Nn(this,"email");Nn(this,"credit_balance");Nn(this,"prepaid_balance");Nn(this,"current_display_values")}getDisplayName(){return this.current_display_values.firstname||this.current_display_values.lastname?`${this.current_display_values.firstname} ${this.current_display_values.lastname}`:this.current_display_values.email}}const q1=I.createContext({contact:new Pf,mutate:async()=>{}});function jf({children:e}){const{uuid:t}=Be(),[n,r]=I.useState(new Pf),{mutate:i}=$n({url:`${t}/contacts`,onData:o=>{const c=new Pf;c.uuid=o.uuid,c.email=o.email,c.credit_balance=o.credit_balance,c.prepaid_balance=o.prepaid_balance,c.current_display_values=o.current_display_values,r(c)}}),s=I.useMemo(()=>({contact:n,mutate:i}),[n,i]);return n.uuid?m.jsx(q1.Provider,{value:s,children:e}):m.jsx(ir,{})}function Vn(){const e=I.useContext(q1);if(!e)throw new Error("Only use 'useContactContext' within a ContactProvider");return e}function hu({message:e=""}){return m.jsxs("div",{className:"flex items-center justify-center gap-4 text-core-primary-500",children:[m.jsx(ml,{className:"h-[32px] w-[32px]"}),e&&m.jsx("p",{className:"text-sm",children:e})]})}function nN(){const{t:e}=Ve(),{errorToast:t}=qt(),{contact:n,mutate:r}=Vn(),{uuid:i,portalSession:s,mutate:o}=Be(),c=At(),u=()=>{c.post(`${i}/credit-receptions/create`,{unit_value:s.inputData.amount_in_cents/100}).then(()=>{r(),o()}).catch(t)},d=()=>{const f=s.events.filter(p=>p.type===Kr.CREDIT_RECEPTION);return f.length?f[0]:null};return I.useEffect(()=>{d()||u()},[]),m.jsx(dn,{children:m.jsxs(Tt,{children:[m.jsx(Ct,{children:m.jsx("div",{className:"flex h-16 items-center",children:m.jsx("p",{children:n.getDisplayName()})})}),m.jsx(xt,{children:m.jsxs("div",{className:"flex h-full flex-col justify-between gap-4",children:[m.jsx("div",{className:"flex h-full flex-col items-center gap-2 p-6",children:s.inputData.amount_in_cents?m.jsx("div",{className:"flex h-full items-center justify-center gap-1 text-4xl font-bold",children:d()?m.jsxs(m.Fragment,{children:["+",m.jsx(di,{value:d().data.credits,start:0})]}):m.jsx(hu,{})}):m.jsx("p",{className:"text-core-red-500",children:e("xIsRequired",{x:"Amount in cents"})+"."})}),m.jsx("div",{className:"rounded-lg bg-core-primary-50 p-4",children:m.jsxs("div",{className:"flex justify-between",children:[m.jsx("p",{className:"font-light text-gray-500",children:`${e("new")} ${e("balance").toLowerCase()}`}),m.jsx(di,{value:n.credit_balance.balance??0,start:n.credit_balance.balance-(d()?d().data.credits:0)})]})})]})})]})})}function rN(){const{portalSession:e}=Be();return e.contact?m.jsx(jf,{children:m.jsx(nN,{})}):e.inputData.primary_identification_method&&e.inputData.primary_identification_method===Qs.EMAIL?m.jsx(zn,{to:`${Pe.POINTS_TRANSACTION}/email`}):m.jsx(zn,{to:`${Pe.POINTS_TRANSACTION}/identifier`})}function Lf({redirectRoute:e}){const{t}=Ve(),{state:n}=Fn(),{portalSession:r,mutate:i}=Be(),{onContactLink:s}=fn(),[o,c]=I.useState(""),[u,d]=I.useState(!1),[f,p]=I.useState(!1),l=Gt(),v=At();I.useEffect(()=>{!f&&o&&a()},[o]);const a=()=>{d(!0),v.put(r.uuid,{contact_identifier_value:o}).then(y=>{s&&h(y.data.data.contact.uuid).then(g=>{s==null||s(g.data.data)}),i().then(()=>l(e,{state:{contactIdentifier:o}}))}).catch(()=>l("link",{state:{contactIdentifier:o}})).finally(()=>d(!1))},h=y=>v.get(`${r.uuid}/contacts`,{contact_uuid:y});return m.jsx(dn,{children:m.jsxs(Tt,{id:Qn,children:[m.jsx(Ct,{children:m.jsx("div",{className:"flex h-16 items-center",children:m.jsx("p",{children:t("scanOrEnterX",{x:"identifier"})})})}),m.jsx(xt,{children:m.jsx(Fi,{onSubmit:()=>o&&a(),children:m.jsx(Ms,{data:o,dataSetter:c,setDefer:p,label:t("contactIdentifier")})})}),m.jsx(zt,{children:m.jsxs("div",{className:"flex flex-col gap-2",children:[m.jsx(ot,{label:t("continue"),onClick:a,disabled:!o,pending:u}),r.inputData.enable_email_identification&&m.jsx(ot,{label:t("useEmail"),variant:"secondary",onClick:()=>l("../email",{state:n})})]})})]})})}function Bf({redirectRoute:e}){const{t}=Ve(),{errorToast:n}=qt(),{uuid:r,mutate:i}=Be(),{onContactLink:s}=fn(),{state:o}=Fn(),{publish:c}=Oo(),[u,d]=I.useState(""),[f,p]=I.useState(!1),[l,v]=I.useState(!1),a=Gt(),h=At();if(!o||!o.contactIdentifier)return m.jsx(zn,{to:"../"});const y=()=>{p(!0),h.post(`${r}/contacts/link-identifier`,{contact_identifier_value:o.contactIdentifier,email:u}).then(b).catch(E=>{E.response.data.code===Ia.CONTACT_NOT_FOUND?v(!0):n(E)}).finally(()=>p(!1))},g=()=>{p(!0),h.post(`${r}/contacts`,{email:u}).then(y).catch(n).finally(()=>p(!1))},b=()=>{h.put(r,{email:u}).then(E=>{s&&w(E.data.data.contact.uuid).then(S=>{s==null||s(S.data.data)}),i().then(()=>a(e))}).catch(n).finally(()=>p(!1))},w=E=>h.get(`${r}/contacts`,{contact_uuid:E});return I.useEffect(()=>{c("openKeyboard",{inputId:"new-contact-identifier-input",inputValue:""})},[]),m.jsxs(dn,{children:[m.jsxs(Tt,{id:Qn,children:[m.jsx(Ct,{children:m.jsx("div",{className:"flex h-16 items-center",children:t("linkContact")})}),m.jsx(xt,{children:m.jsxs("div",{className:"flex flex-col gap-3",children:[m.jsx(kk,{body:t("noEmailAddressLinkedToIdentifier")}),m.jsx(Fi,{onSubmit:y,children:m.jsx(ji,{id:"new-contact-identifier-input",label:t("emailAddress"),autoFocus:!0,onChange:E=>d(E.target.value),beforeIcon:"mail"})})]})}),m.jsx(zt,{children:m.jsx(ot,{label:t("continue"),className:"w-full",onClick:y,disabled:!u||f})})]}),m.jsx(fi,{title:`${t("new")} ${t("emailAddress").toLowerCase()}`,isOpen:l,onClose:()=>v(!1),primaryAction:{label:t("confirm"),action:g,loading:f},secondaryAction:{label:t("cancel"),action:()=>v(!1)},children:m.jsx("p",{children:t("continueWithEmail",{email:u})})})]})}function iN(){return m.jsxs(jr,{children:[m.jsx(He,{path:"/",element:m.jsx(rN,{})}),m.jsx(He,{path:"/email",element:m.jsx(fu,{redirectRoute:Pe.POINTS_TRANSACTION})}),m.jsx(He,{path:"/identifier",element:m.jsx(Lf,{redirectRoute:Pe.POINTS_TRANSACTION})}),m.jsx(He,{path:"/identifier/link",element:m.jsx(Bf,{redirectRoute:Pe.POINTS_TRANSACTION})})]})}function sN(){const{portalSession:e}=Be(),{primaryIdentificationMethod:t}=fn();return e.contact?m.jsx(zn,{to:`${Pe.PORTAL}/overview`}):t&&t===Qs.EMAIL?m.jsx(zn,{to:`${Pe.PORTAL}/email`}):m.jsx(zn,{to:`${Pe.PORTAL}/identifier`})}function oN({children:e}){return m.jsx("div",{className:"h-screen w-screen pb-[70px] md:px-4 md:pb-[86px] md:pt-4 lg:pb-4 lg:pt-[66px]",children:m.jsx("div",{className:"h-full max-h-full",children:e})})}function aN({contact:e}){const{t}=Ve(),n=Gt();return m.jsxs("div",{className:"inline-grid w-full items-center gap-4 py-4 lg:grid-cols-2",children:[m.jsxs("div",{className:"flex items-center gap-4",children:[m.jsx(Qd,{src:e.current_display_values.avatar,size:"2xl"}),m.jsxs("div",{className:"flex flex-col gap-1",children:[m.jsxs("div",{className:"flex gap-2",children:[m.jsx("p",{className:"text-lg",children:e.getDisplayName()}),e.current_display_values.tier&&m.jsx(Jd,{label:e.current_display_values.tier,size:"sm",stroke:!0})]}),m.jsx("p",{className:"text-sm text-core-gray-500 ",children:t("joinedAtDate",{date:new Date(e.current_display_values.created_at).toLocaleDateString(Ht.language,{month:"long",year:"numeric"})})})]})]}),m.jsxs("div",{className:"inline-grid gap-2 lg:grid-cols-2",children:[m.jsx(ot,{label:t("goToX",{x:"identifiers"}),variant:"secondary",size:"md",onClick:()=>n("contact-identifiers")}),m.jsx(ot,{before:m.jsx(an,{icon:"edit"}),label:t("editProfile"),variant:"secondary",size:"md",onClick:()=>n("contact-attributes")})]})]})}function ea({children:e}){return m.jsx("div",{className:"flex-grow rounded-lg border p-4",children:e})}function cN(){const{t:e}=Ve(),{contact:t}=Vn(),{portalSession:n}=Be();return m.jsxs("div",{className:"flex gap-2 lg:flex-col",children:[m.jsx(ea,{children:m.jsxs("div",{className:"flex h-full flex-col items-center justify-center",children:[m.jsx("p",{className:"text-2xl leading-8",children:t.current_display_values.loyalty_balance}),m.jsx("p",{className:"text-sm text-core-gray-500",children:n.loyaltyProgram.custom_credit_name})]})}),m.jsx(ea,{children:m.jsxs("div",{className:"flex h-full flex-col items-center justify-center",children:[m.jsx("p",{className:"text-2xl leading-8",children:Ki(t.prepaid_balance.balance_in_cents,n.currency)}),m.jsx("p",{className:"text-sm text-core-gray-500",children:e("prepaidCredit")})]})})]})}function uN(){const{t:e}=Ve(),{contact:t}=Vn(),{portalSession:n}=Be(),r=(i,s)=>Mp(i,s)?`${Mp(i,s)} ${e("yearsAgo")}`:Np(i,s)?`${Np(i,s)} ${e("weeksAgo")}`:Rp(i,s)?`${Rp(i,s)} ${e("daysAgo")}`:e("today");return m.jsx(ea,{children:m.jsxs("div",{className:"h-full justify-between",children:[m.jsx("p",{className:"mb-4 text-lg font-semibold leading-7",children:"Stats"}),m.jsxs("div",{className:"flex flex-col gap-2",children:[m.jsxs("div",{className:"flex items-center gap-2",children:[m.jsx(an,{icon:"calendar"}),m.jsxs("div",{children:[m.jsx("p",{className:"text-xs font-semibold",children:r(new Date,new Date(t.current_display_values.loyalty_last_transaction_date))}),m.jsx("p",{className:"text-xs text-core-gray-500",children:e("lastVisit")})]})]}),m.jsxs("div",{className:"flex items-center gap-2",children:[m.jsx(an,{icon:"shopping-bag"}),m.jsxs("div",{children:[m.jsx("p",{className:"text-xs font-semibold",children:`${t.current_display_values.loyalty_number_of_transactions} ${e("visits")}`}),m.jsx("p",{className:"text-xs text-core-gray-500",children:e("totalVisits")})]})]}),m.jsxs("div",{className:"flex items-center gap-2",children:[m.jsx(an,{icon:"dollar"}),m.jsxs("div",{children:[m.jsx("p",{className:"text-xs font-semibold",children:`${t.current_display_values.loyalty_total_credits_received} ${n.loyaltyProgram.custom_credit_name}`}),m.jsx("p",{className:"text-xs text-core-gray-500",children:e("totalCredits")})]})]})]})]})})}function $1(){const{uuid:e}=Be(),[t,n]=I.useState([]),{data:r,isLoading:i,pending:s,mutate:o}=$n({url:`${e}/loyalty-transactions`});return I.useEffect(()=>{r&&n(r.data)},[r]),{loyaltyTransactions:t,isLoading:i,pending:s,mutate:o}}function G1({loyaltyTransaction:e}){const{t}=Ve();return m.jsxs("div",{className:"mb-2 flex justify-between",children:[m.jsx("p",{className:"text-xs text-core-gray-500",children:e.type===yp.CREDIT_RECEPTION?t("transaction"):`${t("isRedeemed")} '${e.loyalty_transaction_data.title}'`}),m.jsx("p",{className:"text-xs font-semibold",children:e.credits>0?"+"+e.credits:e.credits})]})}function lN(){const{t:e}=Ve(),t=Gt(),{loyaltyTransactions:n}=$1();return n?m.jsx(ea,{children:m.jsxs("div",{className:"flex h-full flex-col justify-between gap-4",children:[m.jsxs("div",{className:"flex flex-col gap-4",children:[m.jsx("p",{className:"text-lg font-semibold leading-7",children:e("activities")}),n&&n.length?m.jsx("div",{children:n.slice(0,5).map(r=>m.jsx(G1,{loyaltyTransaction:r},r.uuid))}):m.jsx("p",{className:"text-sm text-core-gray-500",children:e("noActivity")})]}),m.jsx(ot,{label:`${e("all")} ${e("activities").toLowerCase()}`,variant:"secondary",onClick:()=>t("activity")})]})}):m.jsx(hu,{})}function H1(){const{uuid:e}=Be(),[t,n]=I.useState(),{isLoading:r,pending:i,mutate:s}=$n({url:`${e}/subscriptions/contact`,onData:n});return{subscriptions:t,isLoading:r,pending:i,mutate:s}}function Y1({subscription:e,onChange:t,editable:n=!1}){const{t:r}=Ve();return m.jsxs("div",{className:"mb-2 flex justify-between",children:[m.jsx("p",{className:"text-xs font-semibold",children:e.subscription_type.name}),n?m.jsx(Rf,{defaultChecked:e.is_subscribed,disabled:e.subscription_type.strategy===vp.FUNCTIONAL,onChange:t&&(()=>t(e.subscription_type.name))}):m.jsx(Jd,{label:r(e.status.toLowerCase()),size:"sm",color:e.is_subscribed?"primary":"gray"})]})}function dN(){const{t:e}=Ve(),{subscriptions:t}=H1(),n=Gt();return t?m.jsx(ea,{children:m.jsxs("div",{className:"flex h-full flex-col justify-between",children:[m.jsxs("div",{className:"flex flex-col gap-4",children:[m.jsx("p",{className:"text-lg font-semibold leading-7",children:e("subscriptions")}),m.jsx("div",{children:t.map(r=>m.jsx(Y1,{subscription:r},r.subscription_type.uuid))})]}),m.jsx(ot,{label:e("change"),before:m.jsx(an,{icon:"edit"}),variant:"secondary",onClick:()=>n("subscriptions")})]})}):m.jsx(hu,{})}function fN(){const{contact:e}=Vn();return m.jsxs(Tt,{children:[m.jsx(Ct,{children:m.jsx(aN,{contact:e})}),m.jsx(xt,{children:m.jsxs("div",{className:"grid grid-cols-1 gap-x-2 gap-y-2 lg:grid-cols-4",children:[m.jsx(cN,{}),m.jsx(uN,{}),m.jsx(lN,{}),m.jsx(dN,{})]})})]})}function ta({label:e,path:t}){const n=Gt();return m.jsx("div",{className:"flex h-16 items-center text-base text-core-gray-900",children:m.jsx(ot,{label:e,variant:"link-gray",before:m.jsx(an,{icon:"caret-left",size:"md"}),onClick:()=>n(t)})})}function hN(){const{t:e}=Ve(),{loyaltyTransactions:t}=$1(),{contact:n}=Vn();return m.jsx("div",{className:"h-full md:container",children:m.jsxs(Tt,{children:[m.jsx(Ct,{children:m.jsx(ta,{label:e("back"),path:"../profile"})}),m.jsx(xt,{children:m.jsxs("div",{className:"md:max-h-[528px]",children:[m.jsx("p",{className:"text-sm font-medium",children:e("allActivities")}),m.jsx("p",{className:"mb-4 text-sm text-core-gray-500",children:e("checkOutAllActivitiesOfName",{name:n.getDisplayName()})}),m.jsx("div",{className:"overflow-auto",children:t==null?void 0:t.map(r=>m.jsx(G1,{loyaltyTransaction:r},r.uuid))})]})})]})})}function pN(){const{t:e}=Ve(),{errorToast:t}=qt(),{uuid:n}=Be(),{subscriptions:r,mutate:i}=H1(),[s,o]=I.useState({}),[c,u]=I.useState(!1),d=At();I.useEffect(()=>{if(r&&!Object.keys(s).length){const v=r.reduce((a,h)=>({...a,[h.subscription_type.name]:h.is_subscribed}),{});o(v)}},[]);const f=v=>{Object.hasOwn(s,v)?o({...s,[v]:!s[v]}):o({...s,[v]:!0})},p=()=>{u(!0),d.put(`${n}/subscriptions`,{values:s}).then(()=>i()).catch(t).finally(()=>u(!1))},l=()=>r&&r.some(v=>s[v.subscription_type.name]!==v.is_subscribed);return r?m.jsx("div",{className:"h-full md:container",children:m.jsxs(Tt,{children:[m.jsx(Ct,{children:m.jsx(ta,{label:e("back"),path:"../profile"})}),m.jsx(xt,{children:m.jsx("div",{className:"md:max-h-[528px]",children:m.jsxs("div",{children:[m.jsx("p",{className:"text-sm font-medium",children:e("subscriptions")}),m.jsx("p",{className:"mb-4 text-sm text-core-gray-500",children:e("manageEmailPreferences")}),r.map(v=>m.jsx(Y1,{subscription:v,onChange:f,editable:!0},v.subscription_type.uuid))]})})}),m.jsx(zt,{children:m.jsx(ot,{label:e("saveChanges"),className:"w-full",onClick:p,pending:c,disabled:!l()||c})})]})}):m.jsx(hu,{})}function mN(){const{t:e}=Ve(),{errorToast:t}=qt(),{uuid:n}=Be(),{contact:r,mutate:i}=Vn(),[s,o]=I.useState(),[c,u]=I.useState(!1),[d,f]=I.useState(),p=At();$n({url:`${n}/contact-attributes`,onData:h=>o(h.elements)});const l=h=>{f({...d,[h.target.name]:h.target.value})},v=(h,y)=>{f({...d,[h]:y})},a=async()=>{u(!0),p.put(`${n}/contact-attributes`,d).then(()=>{i(),f(void 0)}).catch(t).finally(()=>u(!1))};return m.jsx("div",{className:"h-full md:container",children:m.jsxs(Tt,{children:[m.jsx(Ct,{children:m.jsx(ta,{label:e("back"),path:"../profile"})}),m.jsx(xt,{children:m.jsxs("div",{className:"md:max-h-[528px]",children:[m.jsxs("div",{className:"mb-4 flex flex-row items-center gap-4 border-b border-b-core-gray-200 px-1 pb-4",children:[m.jsx(Qd,{src:r.current_display_values.avatar,size:"2xl"}),m.jsxs("div",{children:[m.jsx("div",{className:"flex flex-row items-center gap-2 ",children:m.jsxs("h1",{className:"text-lg text-core-gray-900",children:[r.current_display_values.firstname," ",r.current_display_values.lastname]})}),m.jsx("p",{className:"text-sm text-core-gray-500",children:r.current_display_values.email})]})]}),s?s.map(h=>{if(!(h.type==="media_upload"||h.type==="email"))return h.type==="select"?m.jsx($k,{name:h.name,label:h.label,value:d&&d[h.name]?d[h.name]:r.current_display_values[h.name],onChange:y=>v(h.name,y),disabled:h.disabled,children:h.options.map(y=>m.jsx(Xd,{label:y.label,value:y.value},y.value))},h.id):h.type==="multi_select"?m.jsx(Fk,{name:h.name,value:d&&d[h.name]?d[h.name]:h.defaultValue,label:h.label,onChange:v,disabled:h.disabled,options:h.options},h.id):h.type==="birth_date"||h.type==="date_time"?m.jsx(Jy,{id:h.id,name:h.name,label:h.label,type:h.type==="date_time"?"date_time":"date",value:d&&d[h.name]?d[h.name]:r.current_display_values[h.name],disabled:h.disabled,onChange:l},h.id):m.jsx(ji,{disabled:h.disabled,label:h.label,name:h.name,value:d&&d[h.name]!=="undefined"?d[h.name]:r.current_display_values[h.name],onChange:l},h.id)}):m.jsx(au,{rows:10})]})}),m.jsx(zt,{children:m.jsx(ot,{label:e("saveChanges"),className:"w-full",onClick:a,disabled:!d,pending:c})})]})})}function W1(){const{uuid:e}=Be(),[t,n]=I.useState(),{isLoading:r,pending:i,mutate:s}=$n({url:`${e}/contact-identifiers`,onData:n});return{contactIdentifiers:t,isLoading:r,pending:i,mutate:s}}function gN({identifier:e,onClear:t}){const{t:n}=Ve();return m.jsxs("div",{className:"flex items-center justify-between rounded-lg border text-xs",children:[m.jsxs("div",{className:"flex-col pl-4",children:[m.jsx("p",{className:"font-semibold",children:e.value}),m.jsx("p",{className:"text-core-gray-500",children:n("contactIdentifier")})]}),m.jsx("div",{className:"h-full border-l p-4 hover:cursor-pointer hover:bg-core-gray-50",onClick:()=>t&&t(e.value),children:m.jsx(an,{className:"h-full",icon:"close"})})]})}function yN(){const{t:e}=Ve(),{errorToast:t}=qt(),{uuid:n}=Be(),{contactIdentifiers:r,isLoading:i,mutate:s}=W1(),[o,c]=I.useState(""),[u,d]=I.useState(!1),f=Gt(),p=At(),l=a=>{c(a),d(!0)},v=async()=>{p.destroy(`${n}/contact-identifiers`,{value:o}).then(()=>s()).catch(t).finally(()=>d(!1))};return m.jsxs("div",{className:"h-full md:container",children:[m.jsxs(Tt,{children:[m.jsx(Ct,{children:m.jsx(ta,{label:e("back"),path:"../profile"})}),m.jsx(xt,{children:m.jsx("div",{className:"md:max-h-[528px]",children:m.jsxs("div",{className:"flex flex-col gap-2",children:[m.jsxs("div",{children:[m.jsx("p",{className:"text-sm font-medium",children:e("contactIdentifiers")}),m.jsx("p",{className:"mb-4 text-sm text-core-gray-500",children:e("contactIdentifierDescription")})]}),i?m.jsx(au,{rows:10}):r==null?void 0:r.map(a=>m.jsx(gN,{identifier:a,onClear:l},a.value))]})})}),m.jsx(zt,{children:m.jsx(ot,{label:e("addIdentifier"),className:"w-full",variant:"secondary",onClick:()=>f("create")})})]}),m.jsx(fi,{title:e("confirmClearContactIdentifier"),isOpen:u,primaryAction:{label:e("confirm"),action:v},secondaryAction:{label:e("cancel"),action:()=>d(!1)},onClose:()=>d(!1),children:m.jsx("p",{children:e("clearContactIdentifier",{value:o})})})]})}function vN(){const{t:e}=Ve(),{errorToast:t}=qt(),{uuid:n}=Be(),{contact:r}=Vn(),{mutate:i}=W1(),[s,o]=I.useState(""),[c,u]=I.useState(!1),[d,f]=I.useState(!1),p=Gt(),l=At(),v=()=>{u(!0),l.post(`${n}/contacts/link-identifier`,{contact_identifier_value:s,email:r.email}).then(()=>{i(),p("../profile/contact-identifiers")}).catch(t).finally(()=>{o(""),u(!1)})};return I.useEffect(()=>{!d&&s&&v()},[s]),m.jsx("div",{className:"h-full md:container",children:m.jsxs(Tt,{id:Qn,children:[m.jsx(Ct,{children:m.jsx(ta,{label:e("back"),path:"../profile/contact-identifiers"})}),m.jsx(xt,{children:m.jsx(Fi,{onSubmit:()=>s&&v(),children:m.jsx(Ms,{data:s,dataSetter:o,setDefer:f,label:e("contactIdentifier")})})}),m.jsx(zt,{children:m.jsx(ot,{label:e("addIdentifier"),className:"w-full",onClick:v,pending:c,disabled:!s})})]})})}function bN(){return m.jsxs(jr,{children:[m.jsx(He,{path:"/profile",element:m.jsx(fN,{})}),m.jsx(He,{path:"/profile/activity",element:m.jsx(hN,{})}),m.jsx(He,{path:"/profile/subscriptions",element:m.jsx(pN,{})}),m.jsx(He,{path:"/profile/contact-identifiers",element:m.jsx(yN,{})}),m.jsx(He,{path:"/profile/contact-identifiers/create",element:m.jsx(vN,{})}),m.jsx(He,{path:"/profile/contact-attributes",element:m.jsx(mN,{})})]})}function wN(){const{t:e}=Ve(),{contact:t}=Vn(),{portalSession:n}=Be();return m.jsxs("div",{className:"flex h-16 items-center justify-between",children:[m.jsx("h1",{children:e("rewards")}),m.jsxs("div",{className:"flex flex-col items-center",children:[m.jsx("p",{children:t.credit_balance.balance}),m.jsx("p",{className:"text-sm text-core-gray-500",children:n.loyaltyProgram.custom_credit_name})]})]})}function K1(){const{uuid:e}=Be(),[t,n]=I.useState(),{isLoading:r,pending:i,mutate:s}=$n({url:`${e}/rewards`,onData:n});return{rewards:t,isLoading:r,pending:i,mutate:s}}function Ff({reward:e,selected:t,setSelected:n,disabled:r,readOnly:i}){const{portalSession:s}=Be(),{contact:o}=Vn();return m.jsxs("div",{className:`max-h-[48px] rounded-lg border ${r?"pointer-events-none opacity-40":!i&&"cursor-pointer"}`,children:[m.jsxs("div",{className:`flex items-center justify-between rounded-lg text-xs ${r?"px-2 pt-2":"p-2"}`,onClick:i?void 0:()=>(t==null?void 0:t.uuid)===e.uuid?n(void 0):n(e),children:[m.jsxs("div",{className:"mr-4 flex items-center gap-4 overflow-hidden",children:[m.jsx("img",{src:e.media&&e.media.value?e.media.value:"https://static.piggy.nl/images/fallback_image.png",alt:"voucher_image",className:"h-[32px] w-[32px] rounded object-cover object-center"}),m.jsx("p",{className:"truncate",children:e.title??e.description})]}),m.jsxs("p",{className:"whitespace-nowrap text-core-primary-500",children:[e.required_credits," ",s.loyaltyProgram.custom_credit_name]})]}),e.required_credits-o.credit_balance.balance>0&&m.jsx(Uk,{value:o.credit_balance.balance,max:e.required_credits})]})}function EN({selected:e,setSelected:t}){const{t:n}=Ve(),{contact:r}=Vn(),{rewards:i,isLoading:s}=K1(),o=i==null?void 0:i.filter(u=>u.required_credits<=r.credit_balance.balance),c=i==null?void 0:i.filter(u=>u.required_credits>r.credit_balance.balance);return m.jsx(m.Fragment,{children:s?m.jsx(au,{rows:1}):m.jsxs("div",{className:"flex flex-col gap-3 md:max-h-[528px]",children:[m.jsx("div",{className:"flex flex-col gap-1",children:(o==null?void 0:o.length)>0&&m.jsxs(m.Fragment,{children:[m.jsx("p",{className:"text-sm font-light text-core-gray-500",children:n("redeemableRewards")}),o.map(u=>m.jsx(Ff,{reward:u,selected:e,setSelected:t},u.uuid))]})}),m.jsx("div",{className:"flex flex-col gap-1",children:(c==null?void 0:c.length)>0&&m.jsxs(m.Fragment,{children:[m.jsx("p",{className:"text-sm font-light text-core-gray-500",children:n("saveABitMore")}),c.map(u=>m.jsx(Ff,{reward:u,selected:e,setSelected:t,disabled:!0},u.uuid))]})})]})})}function SN(){const{portalSession:e}=Be(),{rewards:t}=K1(),n=()=>e.events.filter(r=>r.type===Kr.REWARD_RECEPTION).map(r=>t.find(i=>i.uuid===r.data.reward.uuid)).filter(r=>r);return t?m.jsx("div",{children:m.jsx(e1,{children:n().map((r,i)=>m.jsxs("div",{className:"flex items-center justify-between rounded-lg border border-core-primary-100 bg-core-primary-50 p-2 text-xs",children:[m.jsxs("div",{className:"mr-4 flex items-center gap-4 overflow-hidden",children:[m.jsx("img",{src:r.media&&r.media.value?r.media.value:"https://static.piggy.nl/images/fallback_image.png",alt:"voucher_image",className:"h-8 w-8 rounded object-cover object-center"}),m.jsx("p",{className:"truncate",children:r.title??r.description})]}),m.jsxs("p",{className:"text-core-primary-500",children:[r.required_credits," ",e.loyaltyProgram.custom_credit_name]})]},`${i}-${r.uuid}`))},n().length)}):m.jsx(m.Fragment,{})}function xN(){const{t:e}=Ve(),{errorToast:t,successToast:n}=qt(),{portalSession:r,mutate:i}=Be(),{mutate:s}=Vn(),{onClaimReward:o}=fn(),[c,u]=I.useState(),[d,f]=I.useState(!1),[p,l]=I.useState(!1),{post:v}=Xo(),a=At();I.useEffect(()=>{c&&l(!0)},[c]);const h=g=>{i().then(b=>{const E=b.data.data.events.filter(S=>S.type===Kr.REWARD_RECEPTION&&S.data.reward.uuid===c.uuid).reduce((S,A)=>new Date(S.created_at)>new Date(A.created_at)?S:A);o==null||o(g,E.data.uuid)})},y=()=>{f(!0),a.post(`${r.uuid}/rewards/claim`,{uuid:c.uuid}).then(g=>{v(),s(),h(g.data.data),n(e("rewardClaimed",{name:g.data.data.title}))}).catch(t).finally(()=>{l(!1),u(void 0),f(!1)})};return m.jsxs("div",{className:"h-full md:container",children:[m.jsxs(Tt,{children:[m.jsx(Ct,{children:m.jsx(wN,{})}),m.jsx(xt,{children:m.jsx(EN,{selected:c,setSelected:u})}),m.jsx(zt,{children:m.jsx(SN,{})})]}),m.jsx(fi,{title:e("confirmRewardRedemption"),isOpen:p,primaryAction:{label:e("confirm"),action:y,loading:d},secondaryAction:{label:e("cancel"),action:()=>l(!1)},onClose:()=>l(!1),children:m.jsx("div",{className:"flex flex-col gap-4",children:c&&m.jsx(Ff,{reward:c,selected:c,setSelected:u,readOnly:!0})})})]})}function Uf(){const{uuid:e}=Be(),[t,n]=I.useState(),{isLoading:r,pending:i,mutate:s}=$n({url:`${e}/vouchers`,onData:n});return{vouchers:t,isLoading:r,pending:i,mutate:s}}function CN(){const{t:e}=Ve();return m.jsx("div",{className:"flex h-16 items-center",children:m.jsx("p",{children:e("vouchers")})})}function Vf({voucher:e,selected:t,setSelected:n}){const{t:r}=Ve();return m.jsxs("div",{className:`flex cursor-pointer items-center justify-between gap-4 rounded-lg ${e.status===Js.REDEEMED?"border border-core-primary-100 bg-core-primary-50":"border bg-white"} p-2 text-xs`,onClick:()=>(t==null?void 0:t.code)===e.code?n(void 0):n(e),children:[m.jsxs("div",{className:"mr-4 flex items-center gap-4 overflow-hidden",children:[m.jsx("img",{src:e.promotion.image?e.promotion.image.value:"https://static.piggy.nl/images/fallback_image.png",alt:"voucher_image",className:"h-[32px] w-[32px] rounded object-cover object-center"}),m.jsxs("div",{className:"overflow-hidden overflow-ellipsis ",children:[m.jsx("p",{className:"font-semibold",children:e.name}),e.status===Js.REDEEMED?m.jsx("p",{className:"text-core-gray-500",children:r("redeemed")}):m.jsx("p",{className:"text-core-primary-500",children:e.expiration_date?`Valid until ${new Date(e.expiration_date).toLocaleDateString()}`:r("nonExpiring")})]})]}),m.jsx("p",{className:`text-core-${e.status===Js.REDEEMED?"gray":"primary"}-500`,children:e.code})]})}function _N({selected:e,setSelected:t}){const{t:n}=Ve(),{vouchers:r,isLoading:i}=Uf();return m.jsx(m.Fragment,{children:i?m.jsx(au,{rows:1}):m.jsx("div",{className:"flex flex-col gap-1 md:max-h-[528px]",children:m.jsx("div",{className:"flex flex-col gap-1 md:max-h-[528px]",children:r&&r.length?r.map(s=>m.jsx(Vf,{voucher:s,selected:e,setSelected:t},s.code)):m.jsx("p",{className:"text-center text-sm text-core-gray-500",children:n("vouchersEmptyState")})})})})}function AN(){const{t:e}=Ve(),{portalSession:t}=Be(),{vouchers:n}=Uf(),r=()=>t.events.filter(i=>i.type===Kr.VOUCHER_REDEEMED);return n?m.jsx("div",{children:m.jsx(e1,{children:r().map((i,s)=>m.jsx("div",{className:"flex items-center gap-2 rounded-lg border border-core-primary-100 bg-core-primary-50 p-2",children:m.jsx("div",{className:"flex h-full flex-col justify-between text-xs",children:m.jsxs("div",{className:"overflow-hidden",children:[m.jsx("p",{className:"font-semibold",children:i.data.name}),m.jsxs("p",{className:"overflow-ellipsis text-core-gray-500",children:[i.data.code," - ",e("applied")]})]})})},`${s}-${i.data.uuid}`))},r().length)}):m.jsx(m.Fragment,{})}function TN(){const{t:e}=Ve(),{errorToast:t,successToast:n}=qt(),{uuid:r}=Be(),{onRedeemVoucher:i}=fn(),{post:s}=Xo(),{mutate:o}=Uf(),[c,u]=I.useState(),[d,f]=I.useState(!1),[p,l]=I.useState(!1),v=At();I.useEffect(()=>{c&&l(!0)},[c]);const a=()=>{f(!0),v.post(`${r}/vouchers/redeem`,{code:c.code}).then(y=>{s(),i&&i(y.data.data),n(e("voucherSuccessfullyRedeemed")),o()}).catch(t).finally(()=>{h(),f(!1)})},h=()=>{l(!1),u(void 0)};return m.jsxs("div",{className:"h-full md:container",children:[m.jsxs(Tt,{children:[m.jsx(Ct,{children:m.jsx(CN,{})}),m.jsx(xt,{children:m.jsx(_N,{selected:c,setSelected:u})}),m.jsx(zt,{children:m.jsx(AN,{})})]}),m.jsx(fi,{title:e("confirmVoucherRedemption"),isOpen:p,primaryAction:{label:e("confirm"),action:a,loading:d},secondaryAction:{label:e("cancel"),action:h},onClose:h,children:m.jsxs("div",{className:"flex flex-col gap-4",children:[m.jsx("p",{children:e("redeemTitle",{title:c==null?void 0:c.name})}),c&&m.jsx(Vf,{voucher:c,setSelected:u})]})})]})}function IN(){const{t:e}=Ve(),[t,n]=I.useState(1),r=Gt(),i=[{id:0,label:e("profile"),icon:"user",pathname:"profile"},{id:1,label:e("rewards"),icon:"edit",pathname:"rewards"},{id:2,label:e("vouchers"),icon:"mail",pathname:"vouchers"}];return I.useEffect(()=>{r(i[t].pathname)},[]),m.jsx(jf,{children:m.jsxs("div",{className:"relative h-full w-full select-none overflow-auto",children:[m.jsx(vO,{children:i.map(s=>m.jsx(bO,{id:s.id,label:s.label,icon:s.icon,activeTab:t,setActiveTab:n,pathname:s.pathname},s.id))}),m.jsxs(oN,{children:[m.jsx(bN,{}),m.jsxs(jr,{children:[m.jsx(He,{path:"/rewards",element:m.jsx(xN,{})}),m.jsx(He,{path:"/vouchers",element:m.jsx(TN,{})})]})]})]})})}function kN(){return m.jsxs(jr,{children:[m.jsx(He,{path:"/",element:m.jsx(sN,{})}),m.jsx(He,{path:"/overview/*",element:m.jsx(IN,{})}),m.jsx(He,{path:"/email",element:m.jsx(fu,{redirectRoute:Pe.PORTAL})}),m.jsx(He,{path:"/identifier",element:m.jsx(Lf,{redirectRoute:Pe.PORTAL})}),m.jsx(He,{path:"/identifier/link",element:m.jsx(Bf,{redirectRoute:Pe.PORTAL})})]})}function z1(){const{uuid:e}=Be(),[t,n]=I.useState(),{isLoading:r,pending:i,mutate:s}=$n({url:`${e}/prepaid`,onData:n});return{prepaidBalance:t,isLoading:r,pending:i,mutate:s}}function ON(){const{t:e}=Ve(),{state:t}=Fn(),{errorToast:n,successToast:r}=qt(),{uuid:i,mutate:s}=Be(),{contact:o}=Vn(),{onCreatePrepaidTransaction:c}=fn(),{prepaidBalance:u,mutate:d}=z1(),[f,p]=I.useState(!1),l=At(),v=a=>{p(!0),l.post(`${i}/prepaid/transaction`,{amount_in_cents:a,contact_identifier_value:(t==null?void 0:t.contactIdentifier)??void 0}).then(h=>{d(),s(),c(h.data.data),r(e("prepaidTransactionCreated"))}).catch(n).finally(()=>p(!1))};return u?m.jsx(dn,{children:m.jsx(V1,{title:o.getDisplayName(),balance:(u==null?void 0:u.balance_in_cents)??0,balanceName:e("prepaidBalance"),transaction:v,pending:f})}):m.jsx(ir,{})}function RN({title:e,balance:t,balanceName:n,transaction:r,pending:i}){const{t:s}=Ve(),{portalSession:o}=Be(),c=o.inputData.amount_in_cents??0,u=()=>{let f=0;return o.events.filter(l=>Object.values(Kr).includes(l.type)).forEach(l=>{f+=l.data.amount_in_cents}),f},d=()=>Math.min(c+u(),t);return m.jsxs(Tt,{children:[e&&m.jsx(Ct,{children:m.jsx("div",{className:"flex h-16 items-center",children:m.jsx("p",{children:e})})}),m.jsx(xt,{children:m.jsxs("div",{className:"flex h-full flex-col gap-4",children:[m.jsx("div",{className:"rounded-lg bg-core-primary-50 p-4",children:m.jsxs("div",{className:"flex justify-between",children:[m.jsx("p",{className:"font-light text-gray-500",children:n??s("balance")}),m.jsx(di,{value:t,start:t+u(),currency:o.currency,asCurrency:!0})]})}),m.jsx("div",{className:"flex h-full flex-col items-center justify-center gap-2 p-6",children:m.jsxs("div",{className:"flex flex-col items-center gap-2 p-4",children:[m.jsx("p",{className:"text-sm font-light text-gray-500",children:s("amountToPay")}),m.jsx("div",{className:"text-5xl font-bold",children:m.jsx(di,{value:d(),start:c,currency:o.currency,asCurrency:!0})})]})})]})}),m.jsx(zt,{children:m.jsx(ot,{label:s("confirmAndPay",{amount:Ki(c,o.currency)}),className:"w-full",onClick:()=>r==null?void 0:r(-d()),disabled:!c||!!u(),pending:i})})]})}function NN(){const{t:e}=Ve(),{state:t}=Fn(),{errorToast:n,successToast:r}=qt(),{uuid:i,mutate:s}=Be(),{contact:o}=Vn(),{onCreatePrepaidTransaction:c}=fn(),{prepaidBalance:u,mutate:d}=z1(),[f,p]=I.useState(!1),l=At(),v=a=>{p(!0),l.post(`${i}/prepaid/transaction`,{amount_in_cents:a,contact_identifier_value:(t==null?void 0:t.contactIdentifier)??void 0}).then(h=>{d(),s(),c(h.data.data),r(e("prepaidTransactionCreated"))}).catch(n).finally(()=>p(!1))};return u?m.jsx(dn,{children:m.jsx(RN,{title:o.getDisplayName(),balance:u.balance_in_cents,balanceName:e("prepaidBalance"),transaction:v,pending:f})}):m.jsx(ir,{})}function MN({setType:e}){const{t}=Ve();return m.jsx(dn,{children:m.jsxs(Tt,{id:Qn,children:[m.jsx(Ct,{children:m.jsx("div",{className:"flex h-16 items-center",children:m.jsx("p",{children:t("Choose type")})})}),m.jsx(xt,{children:m.jsxs("div",{className:"flex gap-2",children:[m.jsx(ot,{className:"grow",label:t("pay"),onClick:()=>e($t.PAY_PREPAID)}),m.jsx(ot,{className:"grow",label:t("topUp"),onClick:()=>e($t.TOP_UP_PREPAID)})]})})]})})}function DN(){const{portalSession:e}=Be(),{primaryIdentificationMethod:t}=fn(),[n,r]=I.useState(e.type);if(!e.contact)return t&&t===Qs.EMAIL?m.jsx(zn,{to:`${Pe.PREPAID}/email`}):m.jsx(zn,{to:`${Pe.PREPAID}/identifier`});const i=()=>n===$t.TOP_UP_PREPAID?m.jsx(ON,{}):n===$t.PAY_PREPAID?m.jsx(NN,{}):m.jsx(MN,{setType:r});return m.jsx(jf,{children:i()})}function PN(){return m.jsxs(jr,{children:[m.jsx(He,{path:"/",element:m.jsx(DN,{})}),m.jsx(He,{path:"/email",element:m.jsx(fu,{redirectRoute:Pe.PREPAID})}),m.jsx(He,{path:"/identifier",element:m.jsx(Lf,{redirectRoute:Pe.PREPAID})}),m.jsx(He,{path:"/identifier/link",element:m.jsx(Bf,{redirectRoute:Pe.PREPAID})})]})}function jN(){const{t:e}=Ve(),{errorToast:t}=qt(),{uuid:n,portalSession:r}=Be(),[i,s]=I.useState(""),[o,c]=I.useState(!1),[u,d]=I.useState(!1),[f,p]=I.useState(!1),l=Gt(),v=At(),a=()=>{c(!0),v.get(`${n}/vouchers/check/${i}`).then(h=>{h.data.data.contact||r.contact?l(`${i}/redeem`):p(!0)}).catch(t).finally(()=>c(!1))};return I.useEffect(()=>{!u&&i&&a()},[i]),m.jsxs(m.Fragment,{children:[m.jsx(dn,{children:m.jsxs(Tt,{id:Qn,children:[m.jsx(Ct,{children:m.jsx("div",{className:"flex h-16 items-center",children:m.jsx("p",{children:e("scanOrEnterX",{x:e("voucherCode").toLowerCase()})})})}),m.jsx(xt,{children:m.jsx(Ms,{data:i,dataSetter:s,setDefer:d,label:e("code")})}),m.jsx(zt,{children:m.jsx(ot,{label:e("submit"),className:"w-full",onClick:a,pending:o})})]})}),m.jsx(fi,{title:e("noContactLinkedToVoucherTitle"),isOpen:f,onClose:()=>p(!1),primaryAction:{label:e("linkToContact"),action:()=>l(`${i}/identifier`)},secondaryAction:{label:e("cancel"),action:()=>p(!1)},children:m.jsx("p",{children:e("linkVoucherWithCodeToContact",{code:i})})})]})}function LN(){const{t:e}=Ve(),{errorToast:t}=qt(),{code:n}=Pr(),{uuid:r}=Be(),{onRedeemVoucher:i}=fn(),{post:s}=Xo(),{voucher:o,mutate:c}=F1(n),[u,d]=I.useState(!1),f=At(),p=()=>{d(!0),f.post(`${r}/vouchers/redeem`,{code:n}).then(l=>{i==null||i(l.data.data),s(),c()}).catch(t).finally(()=>d(!1))};return o?m.jsx(dn,{children:m.jsxs(Tt,{children:[m.jsx(Ct,{children:m.jsx("div",{className:"flex h-16 items-center",children:m.jsx("p",{children:"Voucher"})})}),m.jsx(xt,{children:m.jsx("div",{children:m.jsx(Vf,{voucher:o,setSelected:()=>{}})})}),m.jsx(zt,{children:m.jsx(ot,{label:e("redeemVoucher"),className:"w-full",onClick:p,disabled:o.status!==Js.ACTIVE||u,pending:u})})]})}):m.jsx(ir,{})}function BN(){const{t:e}=Ve(),{errorToast:t}=qt(),{code:n}=Pr(),{portalSession:r,mutate:i}=Be(),{onContactLink:s}=fn(),[o,c]=I.useState(""),[u,d]=I.useState(!1),[f,p]=I.useState(!1),l=Gt(),v=At(),a=y=>v.get(`${r.uuid}/contacts`,{contact_uuid:y}),h=()=>{d(!0),v.put(r.uuid,{contact_identifier_value:o}).then(y=>{s&&a(y.data.data.contact.uuid).then(g=>{s==null||s(g.data.data)}),i().then(()=>l(`${Pe.VOUCHER}/${n}/redeem`))}).catch(t).finally(()=>d(!1))};return I.useEffect(()=>{!f&&o&&h()},[o]),m.jsx(dn,{children:m.jsxs(Tt,{id:Qn,children:[m.jsx(Ct,{children:m.jsx("div",{className:"flex h-16 items-center",children:m.jsx("p",{children:e("scanOrEnterX",{x:"identifier"})})})}),m.jsx(xt,{children:m.jsx(Fi,{onSubmit:h,children:m.jsx(Ms,{data:o,dataSetter:c,setDefer:p,label:e("contactIdentifier")})})}),m.jsx(zt,{children:m.jsxs("div",{className:"flex flex-col gap-2",children:[m.jsx(ot,{label:e("continue"),onClick:h,pending:u}),r.inputData.enable_email_identification&&m.jsx(ot,{label:e("useEmail"),variant:"secondary",onClick:()=>l(`../${n}/email`)})]})})]})})}function FN(){const{t:e}=Ve(),{code:t}=Pr(),{onContactLink:n}=fn(),{portalSession:r,mutate:i}=Be(),{publish:s}=Oo(),[o,c]=I.useState(""),[u,d]=I.useState(!1),[f,p]=I.useState(!1),l=Gt(),v=At(),a=g=>v.get(`${r.uuid}/contacts`,{contact_uuid:g}),h=()=>{d(!0),v.put(r.uuid,{email:o}).then(g=>{n&&a(g.data.data.contact.uuid).then(b=>{n==null||n(b.data.data)}),i().then(()=>l(`${Pe.VOUCHER}/${t}/redeem`))}).catch(g=>{g.response.data.code===Ia.CONTACT_NOT_FOUND&&p(!0)}).finally(()=>d(!1))},y=()=>{d(!0),v.post(`${r.uuid}/contacts`,{email:o}).then(h).finally(()=>d(!1))};return I.useEffect(()=>{s("openKeyboard",{inputId:"via-email-address-input",inputValue:""})},[]),m.jsxs(m.Fragment,{children:[m.jsx(dn,{children:m.jsxs(Tt,{id:Qn,children:[m.jsx(Ct,{children:m.jsx("div",{className:"flex h-16 items-center",children:m.jsx("p",{children:e("fillInXBelow",{x:e("emailAddress").toLowerCase()})})})}),m.jsx(xt,{children:m.jsx(Fi,{onSubmit:()=>o&&!u&&h(),children:m.jsx(ji,{id:"via-email-address-input",label:e("emailAddress"),autoFocus:!0,onChange:g=>c(g.target.value),beforeIcon:"mail"})})}),m.jsx(zt,{children:m.jsxs("div",{className:"flex flex-col gap-2",children:[m.jsx(ot,{label:e("continue"),className:"w-full",onClick:h,pending:u,disabled:!o||u}),m.jsx(ot,{label:e("useIdentifier"),variant:"secondary",onClick:()=>l(`../${t}/identifier`)})]})})]})}),m.jsx(fi,{title:`${e("new")} ${e("emailAddress").toLowerCase()}`,isOpen:f,onClose:()=>p(!1),primaryAction:{label:e("confirm"),action:y,disabled:u},secondaryAction:{label:e("cancel"),action:()=>p(!1)},children:m.jsx("p",{children:e("continueWithEmail",{email:o})})})]})}function UN(){return m.jsxs(jr,{children:[m.jsx(He,{path:"/",element:m.jsx(jN,{})}),m.jsx(He,{path:":code/redeem",element:m.jsx(LN,{})}),m.jsx(He,{path:":code/email",element:m.jsx(FN,{})}),m.jsx(He,{path:":code/identifier",element:m.jsx(BN,{})})]})}function VN(){return m.jsxs(jr,{children:[m.jsx(He,{path:"/",element:m.jsx(bk,{})}),m.jsx(He,{path:`${Pe.GENERIC}/*`,element:m.jsx(KR,{})}),m.jsx(He,{path:`${Pe.GIFTCARD}/*`,element:m.jsx(tN,{})}),m.jsx(He,{path:`${Pe.POINTS_TRANSACTION}/*`,element:m.jsx(iN,{})}),m.jsx(He,{path:`${Pe.PORTAL}/*`,element:m.jsx(kN,{})}),m.jsx(He,{path:`${Pe.PREPAID}/*`,element:m.jsx(PN,{})}),m.jsx(He,{path:`${Pe.VOUCHER}/*`,element:m.jsx(UN,{})})]})}function qN(){const{t:e}=Ve(),[t,n]=I.useState(!1);return m.jsx("div",{className:"default-bg-colors flex h-screen items-center justify-center",children:m.jsxs("div",{className:"overflow-hidden rounded-lg border border-gray-300 bg-white shadow-lg",children:[m.jsx("div",{className:"border-b border-gray-200 bg-gray-50 px-6 pb-3 pt-4 shadow",children:m.jsx("h2",{className:"text-3xl",children:"Oops!"})}),m.jsx("p",{className:"mt-4 px-6 text-gray-900",children:e("sorrySomethingWentWrong")}),m.jsx("div",{className:"mt-10 p-6",children:m.jsx(ot,{onClick:()=>{n(!0),window.location.replace("/")},pending:t,label:e("back")})})]})})}function qf(e){"@babel/helpers - typeof";return qf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},qf(e)}function Q1(){return typeof XMLHttpRequest=="function"||(typeof XMLHttpRequest>"u"?"undefined":qf(XMLHttpRequest))==="object"}function $N(e){return!!e&&typeof e.then=="function"}function GN(e){return $N(e)?e:Promise.resolve(e)}function HN(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var $f={exports:{}},pu={exports:{}},J1;function YN(){return J1||(J1=1,function(e,t){var n=typeof globalThis<"u"&&globalThis||typeof self<"u"&&self||typeof qi<"u"&&qi,r=function(){function s(){this.fetch=!1,this.DOMException=n.DOMException}return s.prototype=n,new s}();(function(s){(function(o){var c=typeof s<"u"&&s||typeof self<"u"&&self||typeof c<"u"&&c,u={searchParams:"URLSearchParams"in c,iterable:"Symbol"in c&&"iterator"in Symbol,blob:"FileReader"in c&&"Blob"in c&&function(){try{return new Blob,!0}catch{return!1}}(),formData:"FormData"in c,arrayBuffer:"ArrayBuffer"in c};function d(R){return R&&DataView.prototype.isPrototypeOf(R)}if(u.arrayBuffer)var f=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],p=ArrayBuffer.isView||function(R){return R&&f.indexOf(Object.prototype.toString.call(R))>-1};function l(R){if(typeof R!="string"&&(R=String(R)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(R)||R==="")throw new TypeError('Invalid character in header field name: "'+R+'"');return R.toLowerCase()}function v(R){return typeof R!="string"&&(R=String(R)),R}function a(R){var L={next:function(){var Y=R.shift();return{done:Y===void 0,value:Y}}};return u.iterable&&(L[Symbol.iterator]=function(){return L}),L}function h(R){this.map={},R instanceof h?R.forEach(function(L,Y){this.append(Y,L)},this):Array.isArray(R)?R.forEach(function(L){this.append(L[0],L[1])},this):R&&Object.getOwnPropertyNames(R).forEach(function(L){this.append(L,R[L])},this)}h.prototype.append=function(R,L){R=l(R),L=v(L);var Y=this.map[R];this.map[R]=Y?Y+", "+L:L},h.prototype.delete=function(R){delete this.map[l(R)]},h.prototype.get=function(R){return R=l(R),this.has(R)?this.map[R]:null},h.prototype.has=function(R){return this.map.hasOwnProperty(l(R))},h.prototype.set=function(R,L){this.map[l(R)]=v(L)},h.prototype.forEach=function(R,L){for(var Y in this.map)this.map.hasOwnProperty(Y)&&R.call(L,this.map[Y],Y,this)},h.prototype.keys=function(){var R=[];return this.forEach(function(L,Y){R.push(Y)}),a(R)},h.prototype.values=function(){var R=[];return this.forEach(function(L){R.push(L)}),a(R)},h.prototype.entries=function(){var R=[];return this.forEach(function(L,Y){R.push([Y,L])}),a(R)},u.iterable&&(h.prototype[Symbol.iterator]=h.prototype.entries);function y(R){if(R.bodyUsed)return Promise.reject(new TypeError("Already read"));R.bodyUsed=!0}function g(R){return new Promise(function(L,Y){R.onload=function(){L(R.result)},R.onerror=function(){Y(R.error)}})}function b(R){var L=new FileReader,Y=g(L);return L.readAsArrayBuffer(R),Y}function w(R){var L=new FileReader,Y=g(L);return L.readAsText(R),Y}function E(R){for(var L=new Uint8Array(R),Y=new Array(L.length),z=0;z<L.length;z++)Y[z]=String.fromCharCode(L[z]);return Y.join("")}function S(R){if(R.slice)return R.slice(0);var L=new Uint8Array(R.byteLength);return L.set(new Uint8Array(R)),L.buffer}function A(){return this.bodyUsed=!1,this._initBody=function(R){this.bodyUsed=this.bodyUsed,this._bodyInit=R,R?typeof R=="string"?this._bodyText=R:u.blob&&Blob.prototype.isPrototypeOf(R)?this._bodyBlob=R:u.formData&&FormData.prototype.isPrototypeOf(R)?this._bodyFormData=R:u.searchParams&&URLSearchParams.prototype.isPrototypeOf(R)?this._bodyText=R.toString():u.arrayBuffer&&u.blob&&d(R)?(this._bodyArrayBuffer=S(R.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):u.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(R)||p(R))?this._bodyArrayBuffer=S(R):this._bodyText=R=Object.prototype.toString.call(R):this._bodyText="",this.headers.get("content-type")||(typeof R=="string"?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):u.searchParams&&URLSearchParams.prototype.isPrototypeOf(R)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},u.blob&&(this.blob=function(){var R=y(this);if(R)return R;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){if(this._bodyArrayBuffer){var R=y(this);return R||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}else return this.blob().then(b)}),this.text=function(){var R=y(this);if(R)return R;if(this._bodyBlob)return w(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(E(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},u.formData&&(this.formData=function(){return this.text().then(D)}),this.json=function(){return this.text().then(JSON.parse)},this}var T=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function O(R){var L=R.toUpperCase();return T.indexOf(L)>-1?L:R}function M(R,L){if(!(this instanceof M))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');L=L||{};var Y=L.body;if(R instanceof M){if(R.bodyUsed)throw new TypeError("Already read");this.url=R.url,this.credentials=R.credentials,L.headers||(this.headers=new h(R.headers)),this.method=R.method,this.mode=R.mode,this.signal=R.signal,!Y&&R._bodyInit!=null&&(Y=R._bodyInit,R.bodyUsed=!0)}else this.url=String(R);if(this.credentials=L.credentials||this.credentials||"same-origin",(L.headers||!this.headers)&&(this.headers=new h(L.headers)),this.method=O(L.method||this.method||"GET"),this.mode=L.mode||this.mode||null,this.signal=L.signal||this.signal,this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&Y)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(Y),(this.method==="GET"||this.method==="HEAD")&&(L.cache==="no-store"||L.cache==="no-cache")){var z=/([?&])_=[^&]*/;if(z.test(this.url))this.url=this.url.replace(z,"$1_="+new Date().getTime());else{var ee=/\?/;this.url+=(ee.test(this.url)?"&":"?")+"_="+new Date().getTime()}}}M.prototype.clone=function(){return new M(this,{body:this._bodyInit})};function D(R){var L=new FormData;return R.trim().split("&").forEach(function(Y){if(Y){var z=Y.split("="),ee=z.shift().replace(/\+/g," "),te=z.join("=").replace(/\+/g," ");L.append(decodeURIComponent(ee),decodeURIComponent(te))}}),L}function F(R){var L=new h,Y=R.replace(/\r?\n[\t ]+/g," ");return Y.split("\r").map(function(z){return z.indexOf(`
142
+ `)===0?z.substr(1,z.length):z}).forEach(function(z){var ee=z.split(":"),te=ee.shift().trim();if(te){var re=ee.join(":").trim();L.append(te,re)}}),L}A.call(M.prototype);function V(R,L){if(!(this instanceof V))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');L||(L={}),this.type="default",this.status=L.status===void 0?200:L.status,this.ok=this.status>=200&&this.status<300,this.statusText=L.statusText===void 0?"":""+L.statusText,this.headers=new h(L.headers),this.url=L.url||"",this._initBody(R)}A.call(V.prototype),V.prototype.clone=function(){return new V(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new h(this.headers),url:this.url})},V.error=function(){var R=new V(null,{status:0,statusText:""});return R.type="error",R};var G=[301,302,303,307,308];V.redirect=function(R,L){if(G.indexOf(L)===-1)throw new RangeError("Invalid status code");return new V(null,{status:L,headers:{location:R}})},o.DOMException=c.DOMException;try{new o.DOMException}catch{o.DOMException=function(L,Y){this.message=L,this.name=Y;var z=Error(L);this.stack=z.stack},o.DOMException.prototype=Object.create(Error.prototype),o.DOMException.prototype.constructor=o.DOMException}function U(R,L){return new Promise(function(Y,z){var ee=new M(R,L);if(ee.signal&&ee.signal.aborted)return z(new o.DOMException("Aborted","AbortError"));var te=new XMLHttpRequest;function re(){te.abort()}te.onload=function(){var ue={status:te.status,statusText:te.statusText,headers:F(te.getAllResponseHeaders()||"")};ue.url="responseURL"in te?te.responseURL:ue.headers.get("X-Request-URL");var ye="response"in te?te.response:te.responseText;setTimeout(function(){Y(new V(ye,ue))},0)},te.onerror=function(){setTimeout(function(){z(new TypeError("Network request failed"))},0)},te.ontimeout=function(){setTimeout(function(){z(new TypeError("Network request failed"))},0)},te.onabort=function(){setTimeout(function(){z(new o.DOMException("Aborted","AbortError"))},0)};function he(ue){try{return ue===""&&c.location.href?c.location.href:ue}catch{return ue}}te.open(ee.method,he(ee.url),!0),ee.credentials==="include"?te.withCredentials=!0:ee.credentials==="omit"&&(te.withCredentials=!1),"responseType"in te&&(u.blob?te.responseType="blob":u.arrayBuffer&&ee.headers.get("Content-Type")&&ee.headers.get("Content-Type").indexOf("application/octet-stream")!==-1&&(te.responseType="arraybuffer")),L&&typeof L.headers=="object"&&!(L.headers instanceof h)?Object.getOwnPropertyNames(L.headers).forEach(function(ue){te.setRequestHeader(ue,v(L.headers[ue]))}):ee.headers.forEach(function(ue,ye){te.setRequestHeader(ye,ue)}),ee.signal&&(ee.signal.addEventListener("abort",re),te.onreadystatechange=function(){te.readyState===4&&ee.signal.removeEventListener("abort",re)}),te.send(typeof ee._bodyInit>"u"?null:ee._bodyInit)})}return U.polyfill=!0,c.fetch||(c.fetch=U,c.Headers=h,c.Request=M,c.Response=V),o.Headers=h,o.Request=M,o.Response=V,o.fetch=U,o})({})})(r),r.fetch.ponyfill=!0,delete r.fetch.polyfill;var i=n.fetch?n:r;t=i.fetch,t.default=i.fetch,t.fetch=i.fetch,t.Headers=i.Headers,t.Request=i.Request,t.Response=i.Response,e.exports=t}(pu,pu.exports)),pu.exports}(function(e,t){var n;if(typeof fetch=="function"&&(typeof qi<"u"&&qi.fetch?n=qi.fetch:typeof window<"u"&&window.fetch?n=window.fetch:n=fetch),typeof HN<"u"&&typeof window>"u"){var r=n||YN();r.default&&(r=r.default),t.default=r,e.exports=t.default}})($f,$f.exports);var Z1=$f.exports;const X1=Iu(Z1),eb=Vb({__proto__:null,default:X1},[Z1]);function tb(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function nb(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?tb(Object(n),!0).forEach(function(r){WN(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tb(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function WN(e,t,n){return t=KN(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function KN(e){var t=zN(e,"string");return Ui(t)=="symbol"?t:t+""}function zN(e,t){if(Ui(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Ui(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Ui(e){"@babel/helpers - typeof";return Ui=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ui(e)}var Br;typeof fetch=="function"&&(typeof global<"u"&&global.fetch?Br=global.fetch:typeof window<"u"&&window.fetch?Br=window.fetch:Br=fetch);var na;Q1()&&(typeof global<"u"&&global.XMLHttpRequest?na=global.XMLHttpRequest:typeof window<"u"&&window.XMLHttpRequest&&(na=window.XMLHttpRequest));var mu;typeof ActiveXObject=="function"&&(typeof global<"u"&&global.ActiveXObject?mu=global.ActiveXObject:typeof window<"u"&&window.ActiveXObject&&(mu=window.ActiveXObject)),!Br&&eb&&!na&&!mu&&(Br=X1||eb),typeof Br!="function"&&(Br=void 0);var Gf=function(t,n){if(n&&Ui(n)==="object"){var r="";for(var i in n)r+="&"+encodeURIComponent(i)+"="+encodeURIComponent(n[i]);if(!r)return t;t=t+(t.indexOf("?")!==-1?"&":"?")+r.slice(1)}return t},rb=function(t,n,r,i){var s=function(u){if(!u.ok)return r(u.statusText||"Error",{status:u.status});u.text().then(function(d){r(null,{status:u.status,data:d})}).catch(r)};if(i){var o=i(t,n);if(o instanceof Promise){o.then(s).catch(r);return}}typeof fetch=="function"?fetch(t,n).then(s).catch(r):Br(t,n).then(s).catch(r)},ib=!1,QN=function(t,n,r,i){t.queryStringParams&&(n=Gf(n,t.queryStringParams));var s=nb({},typeof t.customHeaders=="function"?t.customHeaders():t.customHeaders);typeof window>"u"&&typeof global<"u"&&typeof global.process<"u"&&global.process.versions&&global.process.versions.node&&(s["User-Agent"]="i18next-http-backend (node/".concat(global.process.version,"; ").concat(global.process.platform," ").concat(global.process.arch,")")),r&&(s["Content-Type"]="application/json");var o=typeof t.requestOptions=="function"?t.requestOptions(r):t.requestOptions,c=nb({method:r?"POST":"GET",body:r?t.stringify(r):void 0,headers:s},ib?{}:o),u=typeof t.alternateFetch=="function"&&t.alternateFetch.length>=1?t.alternateFetch:void 0;try{rb(n,c,i,u)}catch(d){if(!o||Object.keys(o).length===0||!d.message||d.message.indexOf("not implemented")<0)return i(d);try{Object.keys(o).forEach(function(f){delete c[f]}),rb(n,c,i,u),ib=!0}catch(f){i(f)}}},JN=function(t,n,r,i){r&&Ui(r)==="object"&&(r=Gf("",r).slice(1)),t.queryStringParams&&(n=Gf(n,t.queryStringParams));try{var s;na?s=new na:s=new mu("MSXML2.XMLHTTP.3.0"),s.open(r?"POST":"GET",n,1),t.crossDomain||s.setRequestHeader("X-Requested-With","XMLHttpRequest"),s.withCredentials=!!t.withCredentials,r&&s.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),s.overrideMimeType&&s.overrideMimeType("application/json");var o=t.customHeaders;if(o=typeof o=="function"?o():o,o)for(var c in o)s.setRequestHeader(c,o[c]);s.onreadystatechange=function(){s.readyState>3&&i(s.status>=400?s.statusText:null,{status:s.status,data:s.responseText})},s.send(r)}catch(u){console&&console.log(u)}},ZN=function(t,n,r,i){if(typeof r=="function"&&(i=r,r=void 0),i=i||function(){},Br&&n.indexOf("file:")!==0)return QN(t,n,r,i);if(Q1()||typeof ActiveXObject=="function")return JN(t,n,r,i);i(new Error("No fetch and no xhr implementation found!"))};function Ds(e){"@babel/helpers - typeof";return Ds=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ds(e)}function sb(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Hf(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?sb(Object(n),!0).forEach(function(r){ob(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):sb(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function XN(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function e8(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,ab(r.key),r)}}function t8(e,t,n){return t&&e8(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function ob(e,t,n){return t=ab(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ab(e){var t=n8(e,"string");return Ds(t)=="symbol"?t:t+""}function n8(e,t){if(Ds(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Ds(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var r8=function(){return{loadPath:"/locales/{{lng}}/{{ns}}.json",addPath:"/locales/add/{{lng}}/{{ns}}",parse:function(n){return JSON.parse(n)},stringify:JSON.stringify,parsePayload:function(n,r,i){return ob({},r,i||"")},parseLoadPayload:function(n,r){},request:ZN,reloadInterval:typeof window<"u"?!1:60*60*1e3,customHeaders:{},queryStringParams:{},crossDomain:!1,withCredentials:!1,overrideMimeType:!1,requestOptions:{mode:"cors",credentials:"same-origin",cache:"default"}}},cb=function(){function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};XN(this,e),this.services=t,this.options=n,this.allOptions=r,this.type="backend",this.init(t,n,r)}return t8(e,[{key:"init",value:function(n){var r=this,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(this.services=n,this.options=Hf(Hf(Hf({},r8()),this.options||{}),i),this.allOptions=s,this.services&&this.options.reloadInterval){var o=setInterval(function(){return r.reload()},this.options.reloadInterval);Ds(o)==="object"&&typeof o.unref=="function"&&o.unref()}}},{key:"readMulti",value:function(n,r,i){this._readAny(n,n,r,r,i)}},{key:"read",value:function(n,r,i){this._readAny([n],n,[r],r,i)}},{key:"_readAny",value:function(n,r,i,s,o){var c=this,u=this.options.loadPath;typeof this.options.loadPath=="function"&&(u=this.options.loadPath(n,i)),u=GN(u),u.then(function(d){if(!d)return o(null,{});var f=c.services.interpolator.interpolate(d,{lng:n.join("+"),ns:i.join("+")});c.loadUrl(f,o,r,s)})}},{key:"loadUrl",value:function(n,r,i,s){var o=this,c=typeof i=="string"?[i]:i,u=typeof s=="string"?[s]:s,d=this.options.parseLoadPayload(c,u);this.options.request(this.options,n,d,function(f,p){if(p&&(p.status>=500&&p.status<600||!p.status))return r("failed loading "+n+"; status code: "+p.status,!0);if(p&&p.status>=400&&p.status<500)return r("failed loading "+n+"; status code: "+p.status,!1);if(!p&&f&&f.message&&f.message.indexOf("Failed to fetch")>-1)return r("failed loading "+n+": "+f.message,!0);if(f)return r(f,!1);var l,v;try{typeof p.data=="string"?l=o.options.parse(p.data,i,s):l=p.data}catch{v="failed parsing "+n+" to json"}if(v)return r(v,!1);r(null,l)})}},{key:"create",value:function(n,r,i,s,o){var c=this;if(this.options.addPath){typeof n=="string"&&(n=[n]);var u=this.options.parsePayload(r,i,s),d=0,f=[],p=[];n.forEach(function(l){var v=c.options.addPath;typeof c.options.addPath=="function"&&(v=c.options.addPath(l,r));var a=c.services.interpolator.interpolate(v,{lng:l,ns:r});c.options.request(c.options,a,u,function(h,y){d+=1,f.push(h),p.push(y),d===n.length&&typeof o=="function"&&o(f,p)})})}}},{key:"reload",value:function(){var n=this,r=this.services,i=r.backendConnector,s=r.languageUtils,o=r.logger,c=i.language;if(!(c&&c.toLowerCase()==="cimode")){var u=[],d=function(p){var l=s.toResolveHierarchy(p);l.forEach(function(v){u.indexOf(v)<0&&u.push(v)})};d(c),this.allOptions.preload&&this.allOptions.preload.forEach(function(f){return d(f)}),u.forEach(function(f){n.allOptions.ns.forEach(function(p){i.read(f,p,"read",null,null,function(l,v){l&&o.warn("loading namespace ".concat(p," for language ").concat(f," failed"),l),!l&&v&&o.log("loaded namespace ".concat(p," for language ").concat(f),v),i.loaded("".concat(f,"|").concat(p),l,v)})})})}}}])}();cb.type="backend";const{slice:i8,forEach:s8}=[];function o8(e){return s8.call(i8.call(arguments,1),t=>{if(t)for(const n in t)e[n]===void 0&&(e[n]=t[n])}),e}const ub=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,a8=(e,t,n)=>{const r=n||{};r.path=r.path||"/";const i=encodeURIComponent(t);let s=`${e}=${i}`;if(r.maxAge>0){const o=r.maxAge-0;if(Number.isNaN(o))throw new Error("maxAge should be a Number");s+=`; Max-Age=${Math.floor(o)}`}if(r.domain){if(!ub.test(r.domain))throw new TypeError("option domain is invalid");s+=`; Domain=${r.domain}`}if(r.path){if(!ub.test(r.path))throw new TypeError("option path is invalid");s+=`; Path=${r.path}`}if(r.expires){if(typeof r.expires.toUTCString!="function")throw new TypeError("option expires is invalid");s+=`; Expires=${r.expires.toUTCString()}`}if(r.httpOnly&&(s+="; HttpOnly"),r.secure&&(s+="; Secure"),r.sameSite)switch(typeof r.sameSite=="string"?r.sameSite.toLowerCase():r.sameSite){case!0:s+="; SameSite=Strict";break;case"lax":s+="; SameSite=Lax";break;case"strict":s+="; SameSite=Strict";break;case"none":s+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}return s},lb={create(e,t,n,r){let i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{path:"/",sameSite:"strict"};n&&(i.expires=new Date,i.expires.setTime(i.expires.getTime()+n*60*1e3)),r&&(i.domain=r),document.cookie=a8(e,encodeURIComponent(t),i)},read(e){const t=`${e}=`,n=document.cookie.split(";");for(let r=0;r<n.length;r++){let i=n[r];for(;i.charAt(0)===" ";)i=i.substring(1,i.length);if(i.indexOf(t)===0)return i.substring(t.length,i.length)}return null},remove(e){this.create(e,"",-1)}};var c8={name:"cookie",lookup(e){let{lookupCookie:t}=e;if(t&&typeof document<"u")return lb.read(t)||void 0},cacheUserLanguage(e,t){let{lookupCookie:n,cookieMinutes:r,cookieDomain:i,cookieOptions:s}=t;n&&typeof document<"u"&&lb.create(n,e,r,i,s)}},u8={name:"querystring",lookup(e){var r;let{lookupQuerystring:t}=e,n;if(typeof window<"u"){let{search:i}=window.location;!window.location.search&&((r=window.location.hash)==null?void 0:r.indexOf("?"))>-1&&(i=window.location.hash.substring(window.location.hash.indexOf("?")));const o=i.substring(1).split("&");for(let c=0;c<o.length;c++){const u=o[c].indexOf("=");u>0&&o[c].substring(0,u)===t&&(n=o[c].substring(u+1))}}return n}};let ra=null;const db=()=>{if(ra!==null)return ra;try{ra=window!=="undefined"&&window.localStorage!==null;const e="i18next.translate.boo";window.localStorage.setItem(e,"foo"),window.localStorage.removeItem(e)}catch{ra=!1}return ra};var l8={name:"localStorage",lookup(e){let{lookupLocalStorage:t}=e;if(t&&db())return window.localStorage.getItem(t)||void 0},cacheUserLanguage(e,t){let{lookupLocalStorage:n}=t;n&&db()&&window.localStorage.setItem(n,e)}};let ia=null;const fb=()=>{if(ia!==null)return ia;try{ia=window!=="undefined"&&window.sessionStorage!==null;const e="i18next.translate.boo";window.sessionStorage.setItem(e,"foo"),window.sessionStorage.removeItem(e)}catch{ia=!1}return ia};var d8={name:"sessionStorage",lookup(e){let{lookupSessionStorage:t}=e;if(t&&fb())return window.sessionStorage.getItem(t)||void 0},cacheUserLanguage(e,t){let{lookupSessionStorage:n}=t;n&&fb()&&window.sessionStorage.setItem(n,e)}},f8={name:"navigator",lookup(e){const t=[];if(typeof navigator<"u"){const{languages:n,userLanguage:r,language:i}=navigator;if(n)for(let s=0;s<n.length;s++)t.push(n[s]);r&&t.push(r),i&&t.push(i)}return t.length>0?t:void 0}},h8={name:"htmlTag",lookup(e){let{htmlTag:t}=e,n;const r=t||(typeof document<"u"?document.documentElement:null);return r&&typeof r.getAttribute=="function"&&(n=r.getAttribute("lang")),n}},p8={name:"path",lookup(e){var i;let{lookupFromPathIndex:t}=e;if(typeof window>"u")return;const n=window.location.pathname.match(/\/([a-zA-Z-]*)/g);return Array.isArray(n)?(i=n[typeof t=="number"?t:0])==null?void 0:i.replace("/",""):void 0}},m8={name:"subdomain",lookup(e){var i,s;let{lookupFromSubdomainIndex:t}=e;const n=typeof t=="number"?t+1:1,r=typeof window<"u"&&((s=(i=window.location)==null?void 0:i.hostname)==null?void 0:s.match(/^(\w{2,5})\.(([a-z0-9-]{1,63}\.[a-z]{2,6})|localhost)/i));if(r)return r[n]}};function g8(){return{order:["querystring","cookie","localStorage","sessionStorage","navigator","htmlTag"],lookupQuerystring:"lng",lookupCookie:"i18next",lookupLocalStorage:"i18nextLng",lookupSessionStorage:"i18nextLng",caches:["localStorage"],excludeCacheFor:["cimode"],convertDetectedLanguage:e=>e}}class hb{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.type="languageDetector",this.detectors={},this.init(t,n)}init(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.services=t||{languageUtils:{}},this.options=o8(n,this.options||{},g8()),typeof this.options.convertDetectedLanguage=="string"&&this.options.convertDetectedLanguage.indexOf("15897")>-1&&(this.options.convertDetectedLanguage=i=>i.replace("-","_")),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=r,this.addDetector(c8),this.addDetector(u8),this.addDetector(l8),this.addDetector(d8),this.addDetector(f8),this.addDetector(h8),this.addDetector(p8),this.addDetector(m8)}addDetector(t){return this.detectors[t.name]=t,this}detect(t){t||(t=this.options.order);let n=[];return t.forEach(r=>{if(this.detectors[r]){let i=this.detectors[r].lookup(this.options);i&&typeof i=="string"&&(i=[i]),i&&(n=n.concat(i))}}),n=n.map(r=>this.options.convertDetectedLanguage(r)),this.services.languageUtils.getBestMatchFromCodes?n:n.length>0?n[0]:null}cacheUserLanguage(t,n){n||(n=this.options.caches),n&&(this.options.excludeCacheFor&&this.options.excludeCacheFor.indexOf(t)>-1||n.forEach(r=>{this.detectors[r]&&this.detectors[r].cacheUserLanguage(t,this.options)}))}}hb.type="languageDetector",Ht.use(cb).use(hb).use(gS).init({fallbackLng:"en",lng:navigator.language&&navigator.language.substring(0,2),interpolation:{escapeValue:!1},backend:{loadPath:"https://translations.piggy.eu/portal-sessions/{{lng}}.json"}});function pb(){const{uuid:e,portalSession:t}=Be(),[n,r]=I.useState();return $n({url:`${e}/brand-kit`,onData:r}),I.useEffect(()=>{n&&yk(n)},[n]),m.jsx(I.StrictMode,{children:m.jsxs(Fd,{fallback:qN,children:[m.jsx(G3,{children:m.jsx(VN,{})}),m.jsx(Lk,{enabled:t.inputData.enable_on_screen_keyboard}),m.jsx(nS,{className:"lg:top-14"})]})})}function mb(e){const{uuid:t,portalSession:n,error:r}=Be();return n.uuid?m.jsx(B1.Provider,{value:{...e,primaryIdentificationMethod:n.inputData.primary_identification_method},children:e.children}):m.jsx(ir,{message:r&&`No portal session found with uuid: ${t}.`})}function y8(e){const{portalSession:t}=YS(e);return t?m.jsx(Ou.Provider,{value:{apiKey:e.apiKey,host:e.host},children:m.jsx(bp,{uuid:t.uuid,children:m.jsx(mb,{...e,children:m.jsx(pb,{})})})}):m.jsx(ir,{})}const v8="data:image/svg+xml,%3csvg%20width='24'%20height='25'%20viewBox='0%200%2024%2025'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M1.37482%209.55838C0.802045%2011.696%200.887351%2013.9567%201.61959%2016.045C2.35183%2018.1334%203.69695%2019.9524%205.47921%2021.2642C7.26146%2022.5761%209.39798%2023.3199%2011.6096%2023.3985C13.8212%2023.477%2016.0051%2022.8866%2017.876%2021.7045C19.7468%2020.5223%2021.2175%2018.8034%2022.0961%2016.7722C22.9746%2014.7411%2023.2201%2012.4921%2022.8004%2010.3193C22.3807%208.1464%2021.3154%206.15066%2019.7436%204.59277C18.1718%203.03489%2016.1667%201.98732%2013.9902%201.58693M7.14096%202.53681C5.21049%203.48732%203.60119%204.98315%202.51232%206.8391M10.7049%201.48193C10.452%201.51191%2010.2003%201.55066%209.95012%201.59811M18.1995%2015.656C18.757%2014.5927%2019.0317%2013.4039%2018.9971%2012.2038C18.9625%2011.0037%2018.6198%209.83263%2018.002%208.8032C17.3842%207.77377%2016.512%206.92055%2015.4692%206.32553C14.4264%205.73051%2013.2481%205.4137%2012.0476%205.40554C10.847%205.39739%209.66449%205.69816%208.61372%206.27895C7.56295%206.85974%206.67923%207.70104%206.04747%208.72198C5.41572%209.74292%205.05717%2010.9092%205.00628%2012.1087C4.9554%2013.3082%205.21389%2014.5007%205.75691%2015.5714M9.15764%2013.3648C9.00624%2012.9162%208.96314%2012.4382%209.03189%2011.9698C9.10064%2011.5014%209.27926%2011.0559%209.55317%2010.6697C9.82708%2010.2836%2010.1885%209.96774%2010.6079%209.74803C11.0272%209.52832%2011.4926%209.41098%2011.966%209.4056C12.4394%209.40023%2012.9074%209.50697%2013.3316%209.71709C13.7559%209.92722%2014.1244%2010.2348%2014.407%2010.6146C14.6896%2010.9944%2014.8783%2011.4358%2014.9576%2011.9025C15.037%2012.3692%2015.0048%2012.8481%2014.8636%2013.3M14.0993%2010.2622C14.0043%2010.1691%2013.9032%2010.0825%2013.7967%2010.0028M8.2478%2018.3147C9.32147%2018.9965%2010.5606%2019.3728%2011.832%2019.4033C13.1035%2019.4339%2014.3592%2019.1174%2015.4644%2018.488'%20stroke='%233430FF'%20stroke-width='2'%20stroke-linecap='round'/%3e%3c/svg%3e";function b8({message:e}){return m.jsxs("div",{className:"flex h-screen flex-col justify-center gap-12 text-center",children:[m.jsxs("div",{className:"flex items-center justify-center gap-3",children:[m.jsx("img",{alt:"logo",src:v8,className:"z-10 h-16 w-16 hover:animate-spin"}),m.jsxs("p",{className:"z-10 text-7xl font-semibold tracking-wide text-gray-600",children:["Welcome to ",m.jsx("span",{className:"italic",children:"PortalSessions"})]})]}),m.jsx("p",{className:"text-core-red-500",children:e})]})}function w8({uuid:e,host:t}){return e?m.jsx(Ou.Provider,{value:{host:t},children:m.jsx(bp,{uuid:e,children:m.jsx(mb,{children:m.jsx(pb,{})})})}):m.jsx(b8,{message:"No uuid provided."})}const E8=Object.freeze(Object.defineProperty({__proto__:null,default:e=>se.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",...e},se.createElement("path",{d:"M8 4.75V8.25M16 4.75V8.25M7.75 10.75H16.25M6.75 19.25H17.25C18.3546 19.25 19.25 18.3546 19.25 17.25V8.75C19.25 7.64543 18.3546 6.75 17.25 6.75H6.75C5.64543 6.75 4.75 7.64543 4.75 8.75V17.25C4.75 18.3546 5.64543 19.25 6.75 19.25Z",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}))},Symbol.toStringTag,{value:"Module"})),S8=Object.freeze(Object.defineProperty({__proto__:null,default:e=>se.createElement("svg",{height:24,viewBox:"0 0 24 24",width:24,xmlns:"http://www.w3.org/2000/svg",...e},se.createElement("path",{d:"m21.25 7.5c.3796958 0 .693491.28215388.7431534.64822944l.0068466.10177056v8.5c0 1.7330315-1.3564548 3.1492459-3.0655761 3.2448552l-.1844239.0051448h-12.689l.71933009.7196699c.26626656.2662666.29047261.6829303.07261815.9765418l-.07261815.0841184c-.26626657.2662665-.68293025.2904726-.97654174.0726181l-.08411844-.0726181-2-2-.06339799-.0720275c-.00244939-.0031685-.00487398-.0063571-.00727348-.0095656l.07067147.0815931c-.03705327-.0370533-.06941902-.077019-.09709724-.1191603-.01316484-.0201549-.025545-.0411423-.03690171-.0627516-.00483354-.0091218-.00919014-.0178526-.01336588-.0266478-.01274712-.0267885-.02425172-.0552483-.03400215-.0845099-.00225837-.0069437-.00418282-.0130149-.00602813-.019105-.02092163-.0684786-.0322748-.1419912-.0322748-.2181555 0-.0383922.00288471-.0761107.00844919-.1129505.00180466-.0115676.0038603-.0232773.00619514-.0349422.00494363-.0250031.01111685-.0492994.01844184-.073091.00362656-.0116598.00765847-.0237092.01200456-.0356703.00848426-.0232976.01778613-.0453662.02808241-.0668678.00549219-.0116011.01179514-.0239381.01846187-.0361292.01323523-.0240158.02734042-.0467392.04258121-.0686124.00392129-.0057417.00832657-.0118713.01283554-.0179483.0251194-.0332177.04801831-.0595185.07261815-.0841184l2-2c.29289322-.2928932.76776696-.2928932 1.06066018 0 .26626656.2662666.29047261.6829303.07261815.9765418l-.07261815.0841184-.72033009.7196699h12.69c.9181734 0 1.6711923-.7071103 1.7441988-1.6064728l.0058012-.1435272v-8.5c0-.41421356.3357864-.75.75-.75zm-3.0537883-5.35294824.0841184.07261815 2 2c.0254481.02544812.049076.05271652.0706715.08159313l-.0706715-.08159313c.0370533.03705328.069419.07701901.0970972.1191603.0131649.02015493.025545.04114226.0369017.06275154.0048336.00912187.0091902.01785262.0133659.02664784.0127471.02678853.0242517.0552483.0340022.08450994.0022583.00694369.0041828.01301489.0060281.01910493.0209216.06847868.0322748.14199127.0322748.21815554 0 .03839224-.0028847.07611073-.0084492.11295053-.0014988.0095454-.0031606.01924362-.0050138.02891241-.0051364.02710922-.0117072.05340972-.0196232.07912072-.0036265.0116598-.0076584.02370928-.0120045.03567032-.0084843.02329763-.0177862.04536621-.0280824.06686781-.0054922.01160108-.0117952.02393815-.0184619.03612923-.0132352.02401575-.0273404.04673917-.0425812.06861233-.0039213.00574174-.0083266.01187138-.0128356.0179483-.023778.03144192-.0451015.05615345-.0679264.07938506l-.0046917.00473338-2 2c-.2928932.29289321-.767767.29289321-1.0606602 0-.2662665-.26626657-.2904726-.68293025-.0726181-.97654174l.0726181-.08411844.7183301-.71966991h-12.688c-.9181734 0-1.67119234.70711027-1.7441988 1.60647279l-.0058012.14352721v8.5c0 .4142136-.33578644.75-.75.75-.37969577 0-.69349096-.2821539-.74315338-.6482294l-.00684662-.1017706v-8.5c0-1.73303146 1.35645477-3.14924593 3.06557609-3.24485521l.18442391-.00514479h12.689l-.7193301-.71966991c-.2662665-.26626657-.2904726-.68293025-.0726181-.97654174l.0726181-.08411844c.2662666-.26626656.6829303-.29047261.9765418-.07261815zm-6.1962117 5.85294824c2.209139 0 4 1.790861 4 4s-1.790861 4-4 4-4-1.790861-4-4 1.790861-4 4-4zm0 1.5c-1.3807119 0-2.5 1.1192881-2.5 2.5s1.1192881 2.5 2.5 2.5 2.5-1.1192881 2.5-2.5-1.1192881-2.5-2.5-2.5z",fill:"#212121"}))},Symbol.toStringTag,{value:"Module"})),x8=Object.freeze(Object.defineProperty({__proto__:null,default:e=>se.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",...e},se.createElement("path",{d:"M13.25 8.75L9.75 12L13.25 15.25",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}))},Symbol.toStringTag,{value:"Module"})),C8=Object.freeze(Object.defineProperty({__proto__:null,default:e=>se.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",...e},se.createElement("path",{d:"M17.25 6.75L6.75 17.25M6.75 6.75L17.25 17.25",strokeLinecap:"round",strokeLinejoin:"round"}))},Symbol.toStringTag,{value:"Module"})),_8=Object.freeze(Object.defineProperty({__proto__:null,default:e=>se.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},se.createElement("path",{d:"M4.7002 4.70016L11.2999 11.2998",stroke:"#000",strokeWidth:1.8,strokeLinecap:"round",strokeLinejoin:"round"}),se.createElement("path",{d:"M11.2998 4.70016L4.70014 11.2998",stroke:"#000",strokeWidth:1.8,strokeLinecap:"round",strokeLinejoin:"round"}))},Symbol.toStringTag,{value:"Module"})),A8=Object.freeze(Object.defineProperty({__proto__:null,default:e=>se.createElement("svg",{width:24,height:24,fill:"none",viewBox:"0 0 24 24",...e},se.createElement("circle",{cx:12,cy:12,r:7.25,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5}),se.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M14.25 8.75H11.375C10.4775 8.75 9.75 9.47754 9.75 10.375V10.375C9.75 11.2725 10.4775 12 11.375 12H12.625C13.5225 12 14.25 12.7275 14.25 13.625V13.625C14.25 14.5225 13.5225 15.25 12.625 15.25H9.75"}),se.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M12 7.75V8.25"}),se.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M12 15.75V16.25"}))},Symbol.toStringTag,{value:"Module"})),T8=Object.freeze(Object.defineProperty({__proto__:null,default:e=>se.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",...e},se.createElement("path",{d:"M19.25 19.25H13.75M9 18.25L4.75 19.25L5.75 15L15.0429 5.70711C15.4334 5.31658 16.0666 5.31658 16.4571 5.70711L18.2929 7.54289C18.6834 7.93342 18.6834 8.56658 18.2929 8.95711L9 18.25Z",strokeLinecap:"round",strokeLinejoin:"round"}))},Symbol.toStringTag,{value:"Module"})),I8=Object.freeze(Object.defineProperty({__proto__:null,default:e=>se.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",...e},se.createElement("path",{d:"M6.75024 19.2502H17.2502C18.3548 19.2502 19.2502 18.3548 19.2502 17.2502V9.75025L12.0002 4.75024L4.75024 9.75025V17.2502C4.75024 18.3548 5.64568 19.2502 6.75024 19.2502Z",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),se.createElement("path",{d:"M9.74963 15.7493C9.74963 14.6447 10.6451 13.7493 11.7496 13.7493H12.2496C13.3542 13.7493 14.2496 14.6447 14.2496 15.7493V19.2493H9.74963V15.7493Z",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}))},Symbol.toStringTag,{value:"Module"})),k8=Object.freeze(Object.defineProperty({__proto__:null,default:e=>se.createElement("svg",{width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",...e},se.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 13V15"}),se.createElement("circle",{cx:12,cy:9,r:.5}),se.createElement("circle",{cx:12,cy:12,r:7.25,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5}))},Symbol.toStringTag,{value:"Module"})),O8=Object.freeze(Object.defineProperty({__proto__:null,default:e=>se.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",...e},se.createElement("path",{d:"M5.5 6.5L12 12.25L18.5 6.5M6.75 18.25H17.25C18.3546 18.25 19.25 17.3546 19.25 16.25V7.75C19.25 6.64543 18.3546 5.75 17.25 5.75H6.75C5.64543 5.75 4.75 6.64543 4.75 7.75V16.25C4.75 17.3546 5.64543 18.25 6.75 18.25Z",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}))},Symbol.toStringTag,{value:"Module"})),R8=Object.freeze(Object.defineProperty({__proto__:null,default:e=>se.createElement("svg",{width:32,height:32,viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},se.createElement("g",{clipPath:"url(#clip0_17_95)"},se.createElement("rect",{width:32,height:32,rx:4,fill:"#FEF3F2"}),se.createElement("path",{d:"M12.0003 12L20.0003 20M12.0003 20L20.0003 12",stroke:"#E02731",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),se.createElement("defs",null,se.createElement("clipPath",{id:"clip0_17_95"},se.createElement("path",{d:"M0 16C0 7.16344 7.16344 0 16 0V0C24.8366 0 32 7.16344 32 16V16C32 24.8366 24.8366 32 16 32V32C7.16344 32 0 24.8366 0 16V16Z",fill:"white"}))))},Symbol.toStringTag,{value:"Module"})),N8=Object.freeze(Object.defineProperty({__proto__:null,default:e=>se.createElement("svg",{width:32,height:32,viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},se.createElement("g",{clipPath:"url(#clip0_15_20)"},se.createElement("rect",{width:32,height:32,rx:4,fill:"#E7FBF4"}),se.createElement("path",{d:"M10.6668 17.3333L14.6668 20L21.3335 12",stroke:"#039855",strokeWidth:1.6875,strokeLinecap:"round",strokeLinejoin:"round"})),se.createElement("defs",null,se.createElement("clipPath",{id:"clip0_15_20"},se.createElement("path",{d:"M0 16C0 7.16344 7.16344 0 16 0V0C24.8366 0 32 7.16344 32 16V16C32 24.8366 24.8366 32 16 32V32C7.16344 32 0 24.8366 0 16V16Z",fill:"white"}))))},Symbol.toStringTag,{value:"Module"})),M8=Object.freeze(Object.defineProperty({__proto__:null,default:e=>se.createElement("svg",{width:32,height:32,viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},se.createElement("g",{clipPath:"url(#clip0_17_99)"},se.createElement("rect",{width:32,height:32,rx:4,fill:"#FFFAEB"}),se.createElement("path",{d:"M16.0002 17.3333V13.3333M16.0002 20V20.0067M23.0353 19.3333L17.942 10.456C17.0833 8.95867 14.9167 8.95867 14.058 10.456L8.96533 19.3333C8.11266 20.8187 9.18933 22.6667 10.9073 22.6667H21.0933C22.8107 22.6667 23.8873 20.8187 23.0353 19.3333Z",stroke:"#CFAA25",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),se.createElement("defs",null,se.createElement("clipPath",{id:"clip0_17_99"},se.createElement("path",{d:"M0 16C0 7.16344 7.16344 0 16 0C24.8366 0 32 7.16344 32 16C32 24.8366 24.8366 32 16 32C7.16344 32 0 24.8366 0 16Z",fill:"white"}))))},Symbol.toStringTag,{value:"Module"})),D8=Object.freeze(Object.defineProperty({__proto__:null,default:e=>se.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",...e},se.createElement("path",{d:"M13.1191 5.61336C13.0508 5.11856 12.6279 4.75 12.1285 4.75H11.8715C11.3721 4.75 10.9492 5.11856 10.8809 5.61336L10.7938 6.24511C10.7382 6.64815 10.4403 6.96897 10.0622 7.11922C10.006 7.14156 9.95021 7.16484 9.89497 7.18905C9.52217 7.3524 9.08438 7.3384 8.75876 7.09419L8.45119 6.86351C8.05307 6.56492 7.49597 6.60451 7.14408 6.9564L6.95641 7.14408C6.60452 7.49597 6.56492 8.05306 6.86351 8.45118L7.09419 8.75876C7.33841 9.08437 7.3524 9.52216 7.18905 9.89497C7.16484 9.95021 7.14156 10.006 7.11922 10.0622C6.96897 10.4403 6.64815 10.7382 6.24511 10.7938L5.61336 10.8809C5.11856 10.9492 4.75 11.372 4.75 11.8715V12.1285C4.75 12.6279 5.11856 13.0508 5.61336 13.1191L6.24511 13.2062C6.64815 13.2618 6.96897 13.5597 7.11922 13.9378C7.14156 13.994 7.16484 14.0498 7.18905 14.105C7.3524 14.4778 7.3384 14.9156 7.09419 15.2412L6.86351 15.5488C6.56492 15.9469 6.60451 16.504 6.9564 16.8559L7.14408 17.0436C7.49597 17.3955 8.05306 17.4351 8.45118 17.1365L8.75876 16.9058C9.08437 16.6616 9.52216 16.6476 9.89496 16.811C9.95021 16.8352 10.006 16.8584 10.0622 16.8808C10.4403 17.031 10.7382 17.3519 10.7938 17.7549L10.8809 18.3866C10.9492 18.8814 11.3721 19.25 11.8715 19.25H12.1285C12.6279 19.25 13.0508 18.8814 13.1191 18.3866L13.2062 17.7549C13.2618 17.3519 13.5597 17.031 13.9378 16.8808C13.994 16.8584 14.0498 16.8352 14.105 16.8109C14.4778 16.6476 14.9156 16.6616 15.2412 16.9058L15.5488 17.1365C15.9469 17.4351 16.504 17.3955 16.8559 17.0436L17.0436 16.8559C17.3955 16.504 17.4351 15.9469 17.1365 15.5488L16.9058 15.2412C16.6616 14.9156 16.6476 14.4778 16.811 14.105C16.8352 14.0498 16.8584 13.994 16.8808 13.9378C17.031 13.5597 17.3519 13.2618 17.7549 13.2062L18.3866 13.1191C18.8814 13.0508 19.25 12.6279 19.25 12.1285V11.8715C19.25 11.3721 18.8814 10.9492 18.3866 10.8809L17.7549 10.7938C17.3519 10.7382 17.031 10.4403 16.8808 10.0622C16.8584 10.006 16.8352 9.95021 16.8109 9.89496C16.6476 9.52216 16.6616 9.08437 16.9058 8.75875L17.1365 8.4512C17.4351 8.05308 17.3955 7.49599 17.0436 7.1441L16.8559 6.95642C16.504 6.60453 15.9469 6.56494 15.5488 6.86353L15.2412 7.09419C14.9156 7.33841 14.4778 7.3524 14.105 7.18905C14.0498 7.16484 13.994 7.14156 13.9378 7.11922C13.5597 6.96897 13.2618 6.64815 13.2062 6.24511L13.1191 5.61336Z",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),se.createElement("path",{d:"M13.25 12C13.25 12.6904 12.6904 13.25 12 13.25C11.3096 13.25 10.75 12.6904 10.75 12C10.75 11.3096 11.3096 10.75 12 10.75C12.6904 10.75 13.25 11.3096 13.25 12Z",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}))},Symbol.toStringTag,{value:"Module"})),P8=Object.freeze(Object.defineProperty({__proto__:null,default:e=>se.createElement("svg",{width:24,height:24,fill:"none",viewBox:"0 0 24 24",...e},se.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M18.25 7.75H5.75V16.75L4.75 19.25H19.25L18.25 16.75V7.75Z"}),se.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M18.25 7.75L16.25 4.75H7.75L5.75 7.75"}),se.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M9.75 10.75V11.75C9.75 12.9926 10.7574 14 12 14V14C13.2426 14 14.25 12.9926 14.25 11.75V10.75"}))},Symbol.toStringTag,{value:"Module"})),j8=Object.freeze(Object.defineProperty({__proto__:null,default:e=>se.createElement("svg",{width:24,height:24,fill:"none",viewBox:"0 0 24 24",...e},se.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M12 4.75L13.75 10.25H19.25L14.75 13.75L16.25 19.25L12 15.75L7.75 19.25L9.25 13.75L4.75 10.25H10.25L12 4.75Z"}))},Symbol.toStringTag,{value:"Module"})),L8=Object.freeze(Object.defineProperty({__proto__:null,default:e=>se.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",...e},se.createElement("path",{d:"M15.25 8C15.25 9.79493 13.7949 11.25 12 11.25C10.205 11.25 8.74997 9.79493 8.74997 8C8.74997 6.20507 10.205 4.75 12 4.75C13.7949 4.75 15.25 6.20507 15.25 8Z"}),se.createElement("path",{d:"M6.84748 19.25H17.1525C18.2944 19.25 19.174 18.2681 18.6407 17.2584C17.8563 15.7731 16.068 14 12 14C7.93198 14 6.14364 15.7731 5.35921 17.2584C4.82594 18.2681 5.70556 19.25 6.84748 19.25Z"}))},Symbol.toStringTag,{value:"Module"}));Zt.FacingMode=Hi,Zt.PortalSession=y8,Zt.PortalType=$t,Zt.PrimaryIdentificationMethod=Qs,Zt.UuidSession=w8,Object.defineProperty(Zt,Symbol.toStringTag,{value:"Module"})});