1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/DashboardPage-B1EiRBHr.js","assets/library-B9J_TPGu.js","assets/UploadPage-Cqmfb5gu.js","assets/music-Dtz1f48-.js","assets/circle-alert-CTXA3kLk.js","assets/MasteringPage-DQiaiVrM.js","assets/ConfirmModal-DWMtbKC_.js","assets/BackLink-DpdsYpaT.js","assets/arrow-left-tPpXJc8N.js","assets/download-DKOUVyOG.js","assets/trash-2-BVh4FfpJ.js","assets/LibraryPage-Cqa7AXTo.js","assets/useMutation-B1MPB0xp.js","assets/AlbumsPage-dH9FyskU.js","assets/albums-api-CpG3TkuU.js","assets/plus-tjVFB78-.js","assets/AlbumEditorPage-zhMenjbr.js","assets/check-C6x7bDEM.js","assets/chevron-up-WZ-kp78Y.js","assets/TokensPage-436V_sTe.js","assets/clock-DiopApuF.js","assets/Trans-DMGWtbs0.js","assets/EthicsPage-Dux6ZdH6.js","assets/BlindTestPage-BemjtR_7.js","assets/MeasurementCharts-B_IUbL9N.js","assets/TransparencePage-Dy9iqqCF.js","assets/LoudnessStreamingPage-_p6Bc4ga.js","assets/CGVPage-BvLKgaER.js","assets/LegalNoticePage-BofZORYt.js","assets/PrivacyPage-Dfwi1J_O.js","assets/ContactPage--kSm2Qef.js","assets/bot-7OsmFbtO.js","assets/HelpPage-MkcxJVZb.js","assets/support-B-eosC8t.js","assets/paperclip-9HrmOfb5.js","assets/sparkles-FmaTlmc-.js","assets/StatusPage-BmM--ykF.js","assets/AccountPage-DtyYk4eI.js","assets/circle-slash-2-C8O3OU6x.js","assets/AuthPage-8JWgaS9p.js","assets/AdminDashboardPage-B2zF1YQK.js","assets/MyTicketsPage-lhylW23L.js","assets/SupportTicketDetailUserPage-DufkrYLx.js","assets/SupportTicketDetailPage-
vendor: 4,105 bytes, lines 1-10
1D9enT7u9.js"])))=>i.map(i=>d[i]); 2var kO=Object.defineProperty;var dE=t=>{throw TypeError(t)};var CO=(t,e,n)=>e in t?kO(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var pn=(t,e,n)=>CO(t,typeof e!="symbol"?e+"":e,n),Wv=(t,e,n)=>e.has(t)||dE("Cannot "+n);var U=(t,e,n)=>(Wv(t,e,"read from private field"),n?n.call(t):e.get(t)),De=(t,e,n)=>e.has(t)?dE("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,n),_e=(t,e,n,r)=>(Wv(t,e,"write to private field"),r?r.call(t,n):e.set(t,n),n),ot=(t,e,n)=>(Wv(t,e,"access private method"),n);var xh=(t,e,n,r)=>({set _(i){_e(t,e,i,n)},get _(){return U(t,e,r)}});function TO(t,e){for(var n=0;n<e.length;n++){const r=e[n];if(typeof r!="string"&&!Array.isArray(r)){for(const i in r)if(i!=="default"&&!(i in t)){const s=Object.getOwnPropertyDescriptor(r,i);s&&Object.defineProperty(t,i,s.get?s:{enumerable:!0,get:()=>r[i]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const s of i)if(s.type==="childList")for(const l of s.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&r(l)}).observe(document,{childList:!0,subtree:!0});function n(i){const s={};return i.integrity&&(s.integrity=i.integrity),i.referrerPolicy&&(s.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?s.credentials="include":i.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function r(i){if(i.ep)return;i.ep=!0;const s=n(i);fetch(i.href,s)}})();function vP(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Hv={exports:{}},Ic={},Vv={exports:{}},et={};/** 3 * @license React 4 * react.production.min.js 5 * 6 * Copyright (c) Facebook, Inc. and its affiliates. 7 * 8 * This source code is licensed under the MIT license found in the 9 * LICENSE file in the root directory of this source tree. 10 */var pE;function PO(){if(pE)return et;pE=1;var t=Symbol.for("react.element"),e=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),l=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),m=Symbol.iterator;function g(D){return D===null||typeof D!="object"?null:(D=m&&D[m]||D["@@iterator"],typeof D=="function"?D:null)}var _={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},x=Object.assign,S={};function w(D,Y,le){this.props=D,this.context=Y,this.refs=S,this.updater=le||_}w.prototype.isReactComponent={},w.prototype.setState=function(D,Y){if(typeof D!="object"&&typeof D!="function"&&D!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,D,Y,"setState")},w.prototype.forceUpdate=function(D){this.updater.enqueueForceUpdate(this,D,"forceUpdate")};function C(){}C.prototype=w.prototype;function R(D,Y,le){this.props=D,this.context=Y,this.refs=S,this.updater=le||_}var I=R.prototype=new C;I.constructor=R,x(I,w.prototype),I.isPureReactComponent=!0;var P=Array.isArray,A=Object.prototype.hasOwnProperty,N={current:null},T={key:!0,ref:!0,__self:!0,__source:!0};function L(D,Y,le){var me,ge={},Ie=null,je=null;if(Y!=null)for(me in Y.ref!==void 0&&(je=Y.ref),Y.key!==void 0&&(Ie=""+Y.key),Y)A.call(Y,me)&&!T.hasOwnProperty(me)&&(ge[me]=Y[me]);var Le=arguments.length-2;if(Le===1)ge.children=le;else if(1<Le){for(var qe=Array(Le),yt=0;yt<Le;yt++)qe[yt]=arguments[yt+2];ge.children=qe}if(D&&D.defaultProps)for(me in Le=D.defaultProps,Le)ge[me]===void 0&&(ge[me]=Le[me]);return{$$typeof:t,type:D,key:Ie,ref:je,props:ge,_owner:N.current}}function O(D,Y){return{$$typeof:t,type:D.type,key:Y,ref:D.ref,props:D.props,_owner:D._owner}}
vendor: 6,333 bytes, lines 10-26
10function j(D){return typeof D=="object"&&D!==null&&D.$$typeof===t}function B(D){var Y={"=":"=0",":":"=2"};return"$"+D.replace(/[=:]/g,function(le){return Y[le]})}var q=/\/+/g;function G(D,Y){return typeof D=="object"&&D!==null&&D.key!=null?B(""+D.key):Y.toString(36)}function W(D,Y,le,me,ge){var Ie=typeof D;(Ie==="undefined"||Ie==="boolean")&&(D=null);var je=!1;if(D===null)je=!0;else switch(Ie){case"string":case"number":je=!0;break;case"object":switch(D.$$typeof){case t:case e:je=!0}}if(je)return je=D,ge=ge(je),D=me===""?"."+G(je,0):me,P(ge)?(le="",D!=null&&(le=D.replace(q,"$&/")+"/"),W(ge,Y,le,"",function(yt){return yt})):ge!=null&&(j(ge)&&(ge=O(ge,le+(!ge.key||je&&je.key===ge.key?"":(""+ge.key).replace(q,"$&/")+"/")+D)),Y.push(ge)),1;if(je=0,me=me===""?".":me+":",P(D))for(var Le=0;Le<D.length;Le++){Ie=D[Le];var qe=me+G(Ie,Le);je+=W(Ie,Y,le,qe,ge)}else if(qe=g(D),typeof qe=="function")for(D=qe.call(D),Le=0;!(Ie=D.next()).done;)Ie=Ie.value,qe=me+G(Ie,Le++),je+=W(Ie,Y,le,qe,ge);else if(Ie==="object")throw Y=String(D),Error("Objects are not valid as a React child (found: "+(Y==="[object Object]"?"object with keys {"+Object.keys(D).join(", ")+"}":Y)+"). If you meant to render a collection of children, use an array instead.");return je}function ie(D,Y,le){if(D==null)return D;var me=[],ge=0;return W(D,me,"","",function(Ie){return Y.call(le,Ie,ge++)}),me}function se(D){if(D._status===-1){var Y=D._result;Y=Y(),Y.then(function(le){(D._status===0||D._status===-1)&&(D._status=1,D._result=le)},function(le){(D._status===0||D._status===-1)&&(D._status=2,D._result=le)}),D._status===-1&&(D._status=0,D._result=Y)}if(D._status===1)return D._result.default;throw D._result}var de={current:null},$={transition:null},Z={ReactCurrentDispatcher:de,ReactCurrentBatchConfig:$,ReactCurrentOwner:N};function Q(){throw Error("act(...) is not supported in production builds of React.")}return et.Children={map:ie,forEach:function(D,Y,le){ie(D,function(){Y.apply(this,arguments)},le)},count:function(D){var Y=0;return ie(D,function(){Y++}),Y},toArray:function(D){return ie(D,function(Y){return Y})||[]},only:function(D){if(!j(D))throw Error("React.Children.only expected to receive a single React element child.");return D}},et.Component=w,et.Fragment=n,et.Profiler=i,et.PureComponent=R,et.StrictMode=r,et.Suspense=c,et.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Z,et.act=Q,et.cloneElement=function(D,Y,le){if(D==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+D+".");var me=x({},D.props),ge=D.key,Ie=D.ref,je=D._owner;if(Y!=null){if(Y.ref!==void 0&&(Ie=Y.ref,je=N.current),Y.key!==void 0&&(ge=""+Y.key),D.type&&D.type.defaultProps)var Le=D.type.defaultProps;for(qe in Y)A.call(Y,qe)&&!T.hasOwnProperty(qe)&&(me[qe]=Y[qe]===void 0&&Le!==void 0?Le[qe]:Y[qe])}var qe=arguments.length-2;if(qe===1)me.children=le;else if(1<qe){Le=Array(qe);for(var yt=0;yt<qe;yt++)Le[yt]=arguments[yt+2];me.children=Le}return{$$typeof:t,type:D.type,key:ge,ref:Ie,props:me,_owner:je}},et.createContext=function(D){return D={$$typeof:l,_currentValue:D,_currentValue2:D,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},D.Provider={$$typeof:s,_context:D},D.Consumer=D},et.createElement=L,et.createFactory=function(D){var Y=L.bind(null,D);return Y.type=D,Y},et.createRef=function(){return{current:null}},et.forwardRef=function(D){return{$$typeof:u,render:D}},et.isValidElement=j,et.lazy=function(D){return{$$typeof:h,_payload:{_status:-1,_result:D},_init:se}},et.memo=function(D,Y){return{$$typeof:p,type:D,compare:Y===void 0?null:Y}},et.startTransition=function(D){var Y=$.transition;$.transition={};try{D()}finally{$.transition=Y}},et.unstable_act=Q,et.useCallback=function(D,Y){return de.current.useCallback(D,Y)},et.useContext=function(D){return de.current.useContext(D)},et.useDebugValue=function(){},et.useDeferredValue=function(D){return de.current.useDeferredValue(D)},et.useEffect=function(D,Y){return de.current.useEffect(D,Y)},et.useId=function(){return de.current.useId()},et.useImperativeHandle=function(D,Y,le){return de.current.useImperativeHandle(D,Y,le)},et.useInsertionEffect=function(D,Y){return de.current.useInsertionEffect(D,Y)},et.useLayoutEffect=function(D,Y){return de.current.useLayoutEffect(D,Y)},et.useMemo=function(D,Y){return de.current.useMemo(D,Y)},et.useReducer=function(D,Y,le){return de.current.useReducer(D,Y,le)},et.useRef=function(D){return de.current.useRef(D)},et.useState=function(D){return de.current.useState(D)},et.useSyncExternalStore=function(D,Y,le){return de.current.useSyncExternalStore(D,Y,le)},et.useTransition=function(){return de.current.useTransition()},et.version="18.3.1",et}var hE;function Sm(){return hE||(hE=1,Vv.exports=PO()),Vv.exports}/** 11 * @license React 12 * react-jsx-runtime.production.min.js 13 * 14 * Copyright (c) Facebook, Inc. and its affiliates. 15 * 16 * This source code is licensed under the MIT license found in the 17 * LICENSE file in the root directory of this source tree. 18 */var fE;function RO(){if(fE)return Ic;fE=1;var t=Sm(),e=Symbol.for("react.element"),n=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,i=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s={key:!0,ref:!0,__self:!0,__source:!0};function l(u,c,p){var h,m={},g=null,_=null;p!==void 0&&(g=""+p),c.key!==void 0&&(g=""+c.key),c.ref!==void 0&&(_=c.ref);for(h in c)r.call(c,h)&&!s.hasOwnProperty(h)&&(m[h]=c[h]);if(u&&u.defaultProps)for(h in c=u.defaultProps,c)m[h]===void 0&&(m[h]=c[h]);return{$$typeof:e,type:u,key:g,ref:_,props:m,_owner:i.current}}return Ic.Fragment=n,Ic.jsx=l,Ic.jsxs=l,Ic}var mE;function AO(){return mE||(mE=1,Hv.exports=RO()),Hv.exports}var v=AO(),k=Sm();const K=vP(k),IO=TO({__proto__:null,default:K},[k]);var Sh={},Gv={exports:{}},gr={},Yv={exports:{}},Kv={};/** 19 * @license React 20 * scheduler.production.min.js 21 * 22 * Copyright (c) Facebook, Inc. and its affiliates. 23 * 24 * This source code is licensed under the MIT license found in the 25 * LICENSE file in the root directory of this source tree. 26 */var gE;function LO(){return gE||(gE=1,(function(t){function e($,Z){var Q=$.length;$.push(Z);e:for(;0<Q;){var D=Q-1>>>1,Y=$[D];if(0<i(Y,Z))$[D]=Z,$[Q]=Y,Q=D;else break e}}function n($){return $.length===0?null:$[0]}function r($){if($.length===0)return null;var Z=$[0],Q=$.pop();
vendor: 27,154 bytes, lines 26-38
26if(Q!==Z){$[0]=Q;e:for(var D=0,Y=$.length,le=Y>>>1;D<le;){var me=2*(D+1)-1,ge=$[me],Ie=me+1,je=$[Ie];if(0>i(ge,Q))Ie<Y&&0>i(je,ge)?($[D]=je,$[Ie]=Q,D=Ie):($[D]=ge,$[me]=Q,D=me);else if(Ie<Y&&0>i(je,Q))$[D]=je,$[Ie]=Q,D=Ie;else break e}}return Z}function i($,Z){var Q=$.sortIndex-Z.sortIndex;return Q!==0?Q:$.id-Z.id}if(typeof performance=="object"&&typeof performance.now=="function"){var s=performance;t.unstable_now=function(){return s.now()}}else{var l=Date,u=l.now();t.unstable_now=function(){return l.now()-u}}var c=[],p=[],h=1,m=null,g=3,_=!1,x=!1,S=!1,w=typeof setTimeout=="function"?setTimeout:null,C=typeof clearTimeout=="function"?clearTimeout:null,R=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function I($){for(var Z=n(p);Z!==null;){if(Z.callback===null)r(p);else if(Z.startTime<=$)r(p),Z.sortIndex=Z.expirationTime,e(c,Z);else break;Z=n(p)}}function P($){if(S=!1,I($),!x)if(n(c)!==null)x=!0,se(A);else{var Z=n(p);Z!==null&&de(P,Z.startTime-$)}}function A($,Z){x=!1,S&&(S=!1,C(L),L=-1),_=!0;var Q=g;try{for(I(Z),m=n(c);m!==null&&(!(m.expirationTime>Z)||$&&!B());){var D=m.callback;if(typeof D=="function"){m.callback=null,g=m.priorityLevel;var Y=D(m.expirationTime<=Z);Z=t.unstable_now(),typeof Y=="function"?m.callback=Y:m===n(c)&&r(c),I(Z)}else r(c);m=n(c)}if(m!==null)var le=!0;else{var me=n(p);me!==null&&de(P,me.startTime-Z),le=!1}return le}finally{m=null,g=Q,_=!1}}var N=!1,T=null,L=-1,O=5,j=-1;function B(){return!(t.unstable_now()-j<O)}function q(){if(T!==null){var $=t.unstable_now();j=$;var Z=!0;try{Z=T(!0,$)}finally{Z?G():(N=!1,T=null)}}else N=!1}var G;if(typeof R=="function")G=function(){R(q)};else if(typeof MessageChannel<"u"){var W=new MessageChannel,ie=W.port2;W.port1.onmessage=q,G=function(){ie.postMessage(null)}}else G=function(){w(q,0)};function se($){T=$,N||(N=!0,G())}function de($,Z){L=w(function(){$(t.unstable_now())},Z)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function($){$.callback=null},t.unstable_continueExecution=function(){x||_||(x=!0,se(A))},t.unstable_forceFrameRate=function($){0>$||125<$?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):O=0<$?Math.floor(1e3/$):5},t.unstable_getCurrentPriorityLevel=function(){return g},t.unstable_getFirstCallbackNode=function(){return n(c)},t.unstable_next=function($){switch(g){case 1:case 2:case 3:var Z=3;break;default:Z=g}var Q=g;g=Z;try{return $()}finally{g=Q}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function($,Z){switch($){case 1:case 2:case 3:case 4:case 5:break;default:$=3}var Q=g;g=$;try{return Z()}finally{g=Q}},t.unstable_scheduleCallback=function($,Z,Q){var D=t.unstable_now();switch(typeof Q=="object"&&Q!==null?(Q=Q.delay,Q=typeof Q=="number"&&0<Q?D+Q:D):Q=D,$){case 1:var Y=-1;break;case 2:Y=250;break;case 5:Y=1073741823;break;case 4:Y=1e4;break;default:Y=5e3}return Y=Q+Y,$={id:h++,callback:Z,priorityLevel:$,startTime:Q,expirationTime:Y,sortIndex:-1},Q>D?($.sortIndex=Q,e(p,$),n(c)===null&&$===n(p)&&(S?(C(L),L=-1):S=!0,de(P,Q-D))):($.sortIndex=Y,e(c,$),x||_||(x=!0,se(A))),$},t.unstable_shouldYield=B,t.unstable_wrapCallback=function($){var Z=g;return function(){var Q=g;g=Z;try{return $.apply(this,arguments)}finally{g=Q}}}})(Kv)),Kv}var vE;function MO(){return vE||(vE=1,Yv.exports=LO()),Yv.exports}/** 27 * @license React 28 * react-dom.production.min.js 29 * 30 * Copyright (c) Facebook, Inc. and its affiliates. 31 * 32 * This source code is licensed under the MIT license found in the 33 * LICENSE file in the root directory of this source tree. 34 */var yE;function NO(){if(yE)return gr;yE=1;var t=Sm(),e=MO();function n(o){for(var a="https://reactjs.org/docs/error-decoder.html?invariant="+o,d=1;d<arguments.length;d++)a+="&args[]="+encodeURIComponent(arguments[d]);return"Minified React error #"+o+"; visit "+a+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var r=new Set,i={};function s(o,a){l(o,a),l(o+"Capture",a)}function l(o,a){for(i[o]=a,o=0;o<a.length;o++)r.add(a[o])}var u=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),c=Object.prototype.hasOwnProperty,p=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,h={},m={};function g(o){return c.call(m,o)?!0:c.call(h,o)?!1:p.test(o)?m[o]=!0:(h[o]=!0,!1)}function _(o,a,d,f){if(d!==null&&d.type===0)return!1;switch(typeof a){case"function":case"symbol":return!0;case"boolean":return f?!1:d!==null?!d.acceptsBooleans:(o=o.toLowerCase().slice(0,5),o!=="data-"&&o!=="aria-");default:return!1}}function x(o,a,d,f){if(a===null||typeof a>"u"||_(o,a,d,f))return!0;if(f)return!1;if(d!==null)switch(d.type){case 3:return!a;case 4:return a===!1;case 5:return isNaN(a);case 6:return isNaN(a)||1>a}return!1}function S(o,a,d,f,y,b,E){this.acceptsBooleans=a===2||a===3||a===4,this.attributeName=f,this.attributeNamespace=y,this.mustUseProperty=d,this.propertyName=o,this.type=a,this.sanitizeURL=b,this.removeEmptyString=E}var w={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(o){w[o]=new S(o,0,!1,o,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(o){var a=o[0];w[a]=new S(a,1,!1,o[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(o){w[o]=new S(o,2,!1,o.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(o){w[o]=new S(o,2,!1,o,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(o){w[o]=new S(o,3,!1,o.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(o){w[o]=new S(o,3,!0,o,null,!1,!1)}),["capture","download"].forEach(function(o){w[o]=new S(o,4,!1,o,null,!1,!1)}),["cols","rows","size","span"].forEach(function(o){w[o]=new S(o,6,!1,o,null,!1,!1)}),["rowSpan","start"].forEach(function(o){w[o]=new S(o,5,!1,o.toLowerCase(),null,!1,!1)});var C=/[\-:]([a-z])/g;function R(o){return o[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(o){var a=o.replace(C,R);w[a]=new S(a,1,!1,o,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(o){var a=o.replace(C,R);w[a]=new S(a,1,!1,o,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(o){var a=o.replace(C,R);w[a]=new S(a,1,!1,o,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(o){w[o]=new S(o,1,!1,o.toLowerCase(),null,!1,!1)}),w.xlinkHref=new S("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(o){w[o]=new S(o,1,!1,o.toLowerCase(),null,!0,!0)});function I(o,a,d,f){var y=w.hasOwnProperty(a)?w[a]:null;(y!==null?y.type!==0:f||!(2<a.length)||a[0]!=="o"&&a[0]!=="O"||a[1]!=="n"&&a[1]!=="N")&&(x(a,d,y,f)&&(d=null),f||y===null?g(a)&&(d===null?o.removeAttribute(a):o.setAttribute(a,""+d)):y.mustUseProperty?o[y.propertyName]=d===null?y.type===3?!1:"":d:(a=y.attributeName,f=y.attributeNamespace,d===null?o.removeAttribute(a):(y=y.type,d=y===3||y===4&&d===!0?"":""+d,f?o.setAttributeNS(f,a,d):o.setAttribute(a,d))))}var P=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,A=Symbol.for("react.element"),N=Symbol.for("react.portal"),T=Symbol.for("react.fragment"),L=Symbol.for("react.strict_mode"),O=Symbol.for("react.profiler"),j=Symbol.for("react.provider"),B=Symbol.for("react.context"),q=Symbol.for("react.forward_ref"),G=Symbol.for("react.suspense"),W=Symbol.for("react.suspense_list"),ie=Symbol.for("react.memo"),se=Symbol.for("react.lazy"),de=Symbol.for("react.offscreen"),$=Symbol.iterator;function Z(o){return o===null||typeof o!="object"?null:(o=$&&o[$]||o["@@iterator"],typeof o=="function"?o:null)}var Q=Object.assign,D;function Y(o){if(D===void 0)try{throw Error()}catch(d){var a=d.stack.trim().match(/\n( *(at )?)/);D=a&&a[1]||""}return` 35`+D+o}var le=!1;function me(o,a){if(!o||le)return"";le=!0;var d=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(a)if(a=function(){throw Error()},Object.defineProperty(a.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(a,[])}catch(J){var f=J}Reflect.construct(o,[],a)}else{try{a.call()}catch(J){f=J}o.call(a.prototype)}else{try{throw Error()}catch(J){f=J}o()}}catch(J){if(J&&f&&typeof J.stack=="string"){for(var y=J.stack.split(` 36`),b=f.stack.split(` 37`),E=y.length-1,M=b.length-1;1<=E&&0<=M&&y[E]!==b[M];)M--;for(;1<=E&&0<=M;E--,M--)if(y[E]!==b[M]){if(E!==1||M!==1)do if(E--,M--,0>M||y[E]!==b[M]){var F=` 38`+y[E].replace(" at new "," at ");return o.displayName&&F.includes("<anonymous>")&&(F=F.replace("<anonymous>",o.displayName)),F}while(1<=E&&0<=M);break}}}finally{le=!1,Error.prepareStackTrace=d}return(o=o?o.displayName||o.name:"")?Y(o):""}function ge(o){switch(o.tag){case 5:return Y(o.type);case 16:return Y("Lazy");case 13:return Y("Suspense");case 19:return Y("SuspenseList");case 0:case 2:case 15:return o=me(o.type,!1),o;case 11:return o=me(o.type.render,!1),o;case 1:return o=me(o.type,!0),o;default:return""}}function Ie(o){if(o==null)return null;if(typeof o=="function")return o.displayName||o.name||null;if(typeof o=="string")return o;switch(o){case T:return"Fragment";case N:return"Portal";case O:return"Profiler";case L:return"StrictMode";case G:return"Suspense";case W:return"SuspenseList"}if(typeof o=="object")switch(o.$$typeof){case B:return(o.displayName||"Context")+".Consumer";case j:return(o._context.displayName||"Context")+".Provider";case q:var a=o.render;return o=o.displayName,o||(o=a.displayName||a.name||"",o=o!==""?"ForwardRef("+o+")":"ForwardRef"),o;case ie:return a=o.displayName||null,a!==null?a:Ie(o.type)||"Memo";case se:a=o._payload,o=o._init;try{return Ie(o(a))}catch{}}return null}function je(o){var a=o.type;switch(o.tag){case 24:return"Cache";case 9:return(a.displayName||"Context")+".Consumer";case 10:return(a._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return o=a.render,o=o.displayName||o.name||"",a.displayName||(o!==""?"ForwardRef("+o+")":"ForwardRef");case 7:return"Fragment";case 5:return a;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Ie(a);case 8:return a===L?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof a=="function")return a.displayName||a.name||null;if(typeof a=="string")return a}return null}function Le(o){switch(typeof o){case"boolean":case"number":case"string":case"undefined":return o;case"object":return o;default:return""}}function qe(o){var a=o.type;return(o=o.nodeName)&&o.toLowerCase()==="input"&&(a==="checkbox"||a==="radio")}function yt(o){var a=qe(o)?"checked":"value",d=Object.getOwnPropertyDescriptor(o.constructor.prototype,a),f=""+o[a];if(!o.hasOwnProperty(a)&&typeof d<"u"&&typeof d.get=="function"&&typeof d.set=="function"){var y=d.get,b=d.set;return Object.defineProperty(o,a,{configurable:!0,get:function(){return y.call(this)},set:function(E){f=""+E,b.call(this,E)}}),Object.defineProperty(o,a,{enumerable:d.enumerable}),{getValue:function(){return f},setValue:function(E){f=""+E},stopTracking:function(){o._valueTracker=null,delete o[a]}}}}function vn(o){o._valueTracker||(o._valueTracker=yt(o))}function ln(o){if(!o)return!1;var a=o._valueTracker;if(!a)return!0;var d=a.getValue(),f="";return o&&(f=qe(o)?o.checked?"true":"false":o.value),o=f,o!==d?(a.setValue(o),!0):!1}function Pi(o){if(o=o||(typeof document<"u"?document:void 0),typeof o>"u")return null;try{return o.activeElement||o.body}catch{return o.body}}function Cn(o,a){var d=a.checked;return Q({},a,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:d??o._wrapperState.initialChecked})}function Hn(o,a){var d=a.defaultValue==null?"":a.defaultValue,f=a.checked!=null?a.checked:a.defaultChecked;d=Le(a.value!=null?a.value:d),o._wrapperState={initialChecked:f,initialValue:d,controlled:a.type==="checkbox"||a.type==="radio"?a.checked!=null:a.value!=null}}function un(o,a){a=a.checked,a!=null&&I(o,"checked",a,!1)}function ri(o,a){un(o,a);var d=Le(a.value),f=a.type;if(d!=null)f==="number"?(d===0&&o.value===""||o.value!=d)&&(o.value=""+d):o.value!==""+d&&(o.value=""+d);else if(f==="submit"||f==="reset"){o.removeAttribute("value");return}a.hasOwnProperty("value")?Qe(o,a.type,d):a.hasOwnProperty("defaultValue")&&Qe(o,a.type,Le(a.defaultValue)),a.checked==null&&a.defaultChecked!=null&&(o.defaultChecked=!!a.defaultChecked)}function kr(o,a,d){if(a.hasOwnProperty("value")||a.hasOwnProperty("defaultValue")){var f=a.type;if(!(f!=="submit"&&f!=="reset"||a.value!==void 0&&a.value!==null))return;a=""+o._wrapperState.initialValue,d||a===o.value||(o.value=a),o.defaultValue=a}d=o.name,d!==""&&(o.name=""),o.defaultChecked=!!o._wrapperState.initialChecked,d!==""&&(o.name=d)}function Qe(o,a,d){(a!=="number"||Pi(o.ownerDocument)!==o)&&(d==null?o.defaultValue=""+o._wrapperState.initialValue:o.defaultValue!==""+d&&(o.defaultValue=""+d))}var We=Array.isArray;function Lt(o,a,d,f){if(o=o.options,a){a={};for(var y=0;y<d.length;y++)a["$"+d[y]]=!0;for(d=0;d<o.length;d++)y=a.hasOwnProperty("$"+o[d].value),o[d].selected!==y&&(o[d].selected=y),y&&f&&(o[d].defaultSelected=!0)}else{for(d=""+Le(d),a=null,y=0;y<o.length;y++){if(o[y].value===d){o[y].selected=!0,f&&(o[y].defaultSelected=!0);return}a!==null||o[y].disabled||(a=o[y])}a!==null&&(a.selected=!0)}}function Ae(o,a){if(a.dangerouslySetInnerHTML!=null)throw Error(n(91));return Q({},a,{value:void 0,defaultValue:void 0,children:""+o._wrapperState.initialValue})}function Mt(o,a){var d=a.value;if(d==null){if(d=a.children,a=a.defaultValue,d!=null){if(a!=null)throw Error(n(92));if(We(d)){if(1<d.length)throw Error(n(93));d=d[0]}a=d}a==null&&(a=""),d=a}o._wrapperState={initialValue:Le(d)}}function yn(o,a){var d=Le(a.value),f=Le(a.defaultValue);d!=null&&(d=""+d,d!==o.value&&(o.value=d),a.defaultValue==null&&o.defaultValue!==d&&(o.defaultValue=d)),f!=null&&(o.defaultValue=""+f)}function tt(o){var a=o.textContent;a===o._wrapperState.initialValue&&a!==""&&a!==null&&(o.value=a)}function Ri(o){switch(o){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function ii(o,a){return o==null||o==="http://www.w3.org/1999/xhtml"?Ri(a):o==="http://www.w3.org/2000/svg"&&a==="foreignObject"?"http://www.w3.org/1999/xhtml":o}var zr,si=(function(o){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(a,d,f,y){MSApp.execUnsafeLocalFunction(function(){return o(a,d,f,y)})}:o})(function(o,a){if(o.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in o)o.innerHTML=a;else{for(zr=zr||document.createElement("div"),zr.innerHTML="<svg>"+a.valueOf().toString()+"</svg>",a=zr.firstChild;o.firstChild;)o.removeChild(o.firstChild);for(;a.firstChild;)o.appendChild(a.firstChild)}});function On(o,a){if(a){var d=o.firstChild;if(d&&d===o.lastChild&&d.nodeType===3){d.nodeValue=a;return}}o.textContent=a}var Zi={animationIterationCount:!0,aspectRatio:!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,gridArea:!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},nl=["Webkit","ms","Moz","O"];Object.keys(Zi).forEach(function(o){nl.forEach(function(a){a=a+o.charAt(0).toUpperCase()+o.substring(1),Zi[a]=Zi[o]})});function oi(o,a,d){return a==null||typeof a=="boolean"||a===""?"":d||typeof a!="number"||a===0||Zi.hasOwnProperty(o)&&Zi[o]?(""+a).trim():a+"px"}function Ns(o,a){o=o.style;for(var d in a)if(a.hasOwnProperty(d)){var f=d.indexOf("--")===0,y=oi(d,a[d],f);d==="float"&&(d="cssFloat"),f?o.setProperty(d,y):o[d]=y}}var Vo=Q({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Go(o,a){if(a){if(Vo[o]&&(a.children!=null||a.dangerouslySetInnerHTML!=null))throw Error(n(137,o));if(a.dangerouslySetInnerHTML!=null){if(a.children!=null)throw Error(n(60));if(typeof a.dangerouslySetInnerHTML!="object"||!("__html"in a.dangerouslySetInnerHTML))throw Error(n(61))}if(a.style!=null&&typeof a.style!="object")throw Error(n(62))}}function Yo(o,a){if(o.indexOf("-")===-1)return typeof a.is=="string";switch(o){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var rl=null;function Ko(o){return o=o.target||o.srcElement||window,o.correspondingUseElement&&(o=o.correspondingUseElement),o.nodeType===3?o.parentNode:o}var Yu=null,Vn=null,Dn=null;function Jo(o){if(o=gc(o)){if(typeof Yu!="function")throw Error(n(280));var a=o.stateNode;a&&(a=Dp(a),Yu(o.stateNode,o.type,a))}}function ur(o){Vn?Dn?Dn.push(o):Dn=[o]:Vn=o}function Ku(){if(Vn){var o=Vn,a=Dn;if(Dn=Vn=null,Jo(o),a)for(o=0;o<a.length;o++)Jo(a[o])}}function Br(o,a){return o(a)}function gp(){}var Ju=!1;function Qu(o,a,d){if(Ju)return o(a,d);Ju=!0;try{return Br(o,a,d)}finally{Ju=!1,(Vn!==null||Dn!==null)&&(gp(),Ku())}}function Qo(o,a){var d=o.stateNode;if(d===null)return null;var f=Dp(d);if(f===null)return null;d=f[a];e:switch(a){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(f=!f.disabled)||(o=o.type,f=!(o==="button"||o==="input"||o==="select"||o==="textarea")),o=!f;break e;default:o=!1}if(o)return null;if(d&&typeof d!="function")throw Error(n(231,a,typeof d));return d}var Gn=!1;if(u)try{var Os={};Object.defineProperty(Os,"passive",{get:function(){Gn=!0}}),window.addEventListener("test",Os,Os),window.removeEventListener("test",Os,Os)}catch{Gn=!1}function il(o,a,d,f,y,b,E,M,F){var J=Array.prototype.slice.call(arguments,3);try{a.apply(d,J)}catch(ne){this.onError(ne)}}var Ai=!1,Cr=null,Xo=!1,Xu=null,lg={onError:function(o){Ai=!0,Cr=o}};function Tr(o,a,d,f,y,b,E,M,F){Ai=!1,Cr=null,il.apply(lg,arguments)}function ug(o,a,d,f,y,b,E,M,F){if(Tr.apply(this,arguments),Ai){if(Ai){var J=Cr;Ai=!1,Cr=null}else throw Error(n(198));Xo||(Xo=!0,Xu=J)}}function ai(o){var a=o,d=o;if(o.alternate)for(;a.return;)a=a.return;else{o=a;do a=o,(a.flags&4098)!==0&&(d=a.return),o=a.return;while(o)}return a.tag===3?d:null}function vp(o){if(o.tag===13){var a=o.memoizedState;if(a===null&&(o=o.alternate,o!==null&&(a=o.memoizedState)),a!==null)return a.dehydrated}return null}function yp(o){if(ai(o)!==o)throw Error(n(188))}function sl(o){var a=o.alternate;if(!a){if(a=ai(o),a===null)throw Error(n(188));return a!==o?null:o}for(var d=o,f=a;;){var y=d.return;if(y===null)break;var b=y.alternate;if(b===null){if(f=y.return,f!==null){d=f;continue}break}if(y.child===b.child){for(b=y.child;b;){if(b===d)return yp(y),o;if(b===f)return yp(y),a;b=b.sibling}throw Error(n(188))}if(d.return!==f.return)d=y,f=b;else{for(var E=!1,M=y.child;M;){if(M===d){E=!0,d=y,f=b;break}if(M===f){E=!0,f=y,d=b;break}M=M.sibling}if(!E){for(M=b.child;M;){if(M===d){E=!0,d=b,f=y;break}if(M===f){E=!0,f=b,d=y;break}M=M.sibling}if(!E)throw Error(n(189))}}if(d.alternate!==f)throw Error(n(190))}if(d.tag!==3)throw Error(n(188));return d.stateNode.current===d?o:a}function _p(o){return o=sl(o),o!==null?bp(o):null}function bp(o){if(o.tag===5||o.tag===6)return o;for(o=o.child;o!==null;){var a=bp(o);if(a!==null)return a;o=o.sibling}return null}var Ds=e.unstable_scheduleCallback,ee=e.unstable_cancelCallback,pe=e.unstable_shouldYield,xe=e.unstable_requestPaint,Ee=e.unstable_now,Pe=e.unstable_getCurrentPriorityLevel,Me=e.unstable_ImmediatePriority,dt=e.unstable_UserBlockingPriority,st=e.unstable_NormalPriority,St=e.unstable_LowPriority,wt=e.unstable_IdlePriority,lt=null,Ze=null;function rn(o){if(Ze&&typeof Ze.onCommitFiberRoot=="function")try{Ze.onCommitFiberRoot(lt,o,void 0,(o.current.flags&128)===128)}catch{}}var kt=Math.clz32?Math.clz32:Wt,pt=Math.log,cr=Math.LN2;function Wt(o){return o>>>=0,o===0?32:31-(pt(o)/cr|0)|0}var Ii=64,Zo=4194304;function Li(o){switch(o&-o){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return o&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return o&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return o}}function ol(o,a){var d=o.pendingLanes;if(d===0)return 0;var f=0,y=o.suspendedLanes,b=o.pingedLanes,E=d&268435455;if(E!==0){var M=E&~y;M!==0?f=Li(M):(b&=E,b!==0&&(f=Li(b)))}else E=d&~y,E!==0?f=Li(E):b!==0&&(f=Li(b));if(f===0)return 0;if(a!==0&&a!==f&&(a&y)===0&&(y=f&-f,b=a&-a,y>=b||y===16&&(b&4194240)!==0))return a;if((f&4)!==0&&(f|=d&16),a=o.entangledLanes,a!==0)for(o=o.entanglements,a&=f;0<a;)d=31-kt(a),y=1<<d,f|=o[d],a&=~y;return f}function cg(o,a){switch(o){case 1:case 2:case 4:return a+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return a+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function HM(o,a){for(var d=o.suspendedLanes,f=o.pingedLanes,y=o.expirationTimes,b=o.pendingLanes;0<b;){var E=31-kt(b),M=1<<E,F=y[E];F===-1?((M&d)===0||(M&f)!==0)&&(y[E]=cg(M,a)):F<=a&&(o.expiredLanes|=M),b&=~M}}function dg(o){return o=o.pendingLanes&-1073741825,o!==0?o:o&1073741824?1073741824:0}function $0(){var o=Ii;return Ii<<=1,(Ii&4194240)===0&&(Ii=64),o}function pg(o){for(var a=[],d=0;31>d;d++)a.push(o);return a}function Zu(o,a,d){o.pendingLanes|=a,a!==536870912&&(o.suspendedLanes=0,o.pingedLanes=0),o=o.eventTimes,a=31-kt(a),o[a]=d}function VM(o,a){var d=o.pendingLanes&~a;o.pendingLanes=a,o.suspendedLanes=0,o.pingedLanes=0,o.expiredLanes&=a,o.mutableReadLanes&=a,o.entangledLanes&=a,a=o.entanglements;var f=o.eventTimes;for(o=o.expirationTimes;0<d;){var y=31-kt(d),b=1<<y;a[y]=0,f[y]=-1,o[y]=-1,d&=~b}}function hg(o,a){var d=o.entangledLanes|=a;for(o=o.entanglements;d;){var f=31-kt(d),y=1<<f;y&a|o[f]&a&&(o[f]|=a),d&=~y}}var xt=0;function q0(o){return o&=-o,1<o?4<o?(o&268435455)!==0?16:536870912:4:1}var W0,fg,H0,V0,G0,mg=!1,xp=[],js=null,Fs=null,Us=null,ec=new Map,tc=new Map,zs=[],GM="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Y0(o,a){switch(o){case"focusin":case"focusout":js=null;break;case"dragenter":case"dragleave":Fs=null;break;case"mouseover":case"mouseout":Us=null;break;case"pointerover":case"pointerout":ec.delete(a.pointerId);break;case"gotpointercapture":case"lostpointercapture":tc.delete(a.pointerId)}}function nc(o,a,d,f,y,b){return o===null||o.nativeEvent!==b?(o={blockedOn:a,domEventName:d,eventSystemFlags:f,nativeEvent:b,targetContainers:[y]},a!==null&&(a=gc(a),a!==null&&fg(a)),o):(o.eventSystemFlags|=f,a=o.targetContainers,y!==null&&a.indexOf(y)===-1&&a.push(y),o)}function YM(o,a,d,f,y){switch(a){case"focusin":return js=nc(js,o,a,d,f,y),!0;case"dragenter":return Fs=nc(Fs,o,a,d,f,y),!0;case"mouseover":return Us=nc(Us,o,a,d,f,y),!0;case"pointerover":var b=y.pointerId;return ec.set(b,nc(ec.get(b)||null,o,a,d,f,y)),!0;case"gotpointercapture":return b=y.pointerId,tc.set(b,nc(tc.get(b)||null,o,a,d,f,y)),!0}return!1}function K0(o){var a=ea(o.target);if(a!==null){var d=ai(a);if(d!==null){if(a=d.tag,a===13){if(a=vp(d),a!==null){o.blockedOn=a,G0(o.priority,function(){H0(d)});return}}else if(a===3&&d.stateNode.current.memoizedState.isDehydrated){o.blockedOn=d.tag===3?d.stateNode.containerInfo:null;return}}}o.blockedOn=null}function Sp(o){if(o.blockedOn!==null)return!1;for(var a=o.targetContainers;0<a.length;){var d=vg(o.domEventName,o.eventSystemFlags,a[0],o.nativeEvent);if(d===null){d=o.nativeEvent;var f=new d.constructor(d.type,d);rl=f,d.target.dispatchEvent(f),rl=null}else return a=gc(d),a!==null&&fg(a),o.blockedOn=d,!1;a.shift()}return!0}function J0(o,a,d){Sp(o)&&d.delete(a)}function KM(){mg=!1,js!==null&&Sp(js)&&(js=null),Fs!==null&&Sp(Fs)&&(Fs=null),Us!==null&&Sp(Us)&&(Us=null),ec.forEac
vendor: 2,980 bytes, line 38
38h(J0),tc.forEach(J0)}function rc(o,a){o.blockedOn===a&&(o.blockedOn=null,mg||(mg=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,KM)))}function ic(o){function a(y){return rc(y,o)}if(0<xp.length){rc(xp[0],o);for(var d=1;d<xp.length;d++){var f=xp[d];f.blockedOn===o&&(f.blockedOn=null)}}for(js!==null&&rc(js,o),Fs!==null&&rc(Fs,o),Us!==null&&rc(Us,o),ec.forEach(a),tc.forEach(a),d=0;d<zs.length;d++)f=zs[d],f.blockedOn===o&&(f.blockedOn=null);for(;0<zs.length&&(d=zs[0],d.blockedOn===null);)K0(d),d.blockedOn===null&&zs.shift()}var al=P.ReactCurrentBatchConfig,wp=!0;function JM(o,a,d,f){var y=xt,b=al.transition;al.transition=null;try{xt=1,gg(o,a,d,f)}finally{xt=y,al.transition=b}}function QM(o,a,d,f){var y=xt,b=al.transition;al.transition=null;try{xt=4,gg(o,a,d,f)}finally{xt=y,al.transition=b}}function gg(o,a,d,f){if(wp){var y=vg(o,a,d,f);if(y===null)Ng(o,a,f,Ep,d),Y0(o,f);else if(YM(y,o,a,d,f))f.stopPropagation();else if(Y0(o,f),a&4&&-1<GM.indexOf(o)){for(;y!==null;){var b=gc(y);if(b!==null&&W0(b),b=vg(o,a,d,f),b===null&&Ng(o,a,f,Ep,d),b===y)break;y=b}y!==null&&f.stopPropagation()}else Ng(o,a,f,null,d)}}var Ep=null;function vg(o,a,d,f){if(Ep=null,o=Ko(f),o=ea(o),o!==null)if(a=ai(o),a===null)o=null;else if(d=a.tag,d===13){if(o=vp(a),o!==null)return o;o=null}else if(d===3){if(a.stateNode.current.memoizedState.isDehydrated)return a.tag===3?a.stateNode.containerInfo:null;o=null}else a!==o&&(o=null);return Ep=o,null}function Q0(o){switch(o){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Pe()){case Me:return 1;case dt:return 4;case st:case St:return 16;case wt:return 536870912;default:return 16}default:return 16}}var Bs=null,yg=null,kp=null;function X0(){if(kp)return kp;var o,a=yg,d=a.length,f,y="value"in Bs?Bs.value:Bs.textContent,b=y.length;for(o=0;o<d&&a[o]===y[o];o++);var E=d-o;for(f=1;f<=E&&a[d-f]===y[b-f];f++);return kp=y.slice(o,1<f?1-f:void 0)}function Cp(o){var a=o.keyCode;
vendor: 22,287 bytes, lines 38-39
38return"charCode"in o?(o=o.charCode,o===0&&a===13&&(o=13)):o=a,o===10&&(o=13),32<=o||o===13?o:0}function Tp(){return!0}function Z0(){return!1}function Pr(o){function a(d,f,y,b,E){this._reactName=d,this._targetInst=y,this.type=f,this.nativeEvent=b,this.target=E,this.currentTarget=null;for(var M in o)o.hasOwnProperty(M)&&(d=o[M],this[M]=d?d(b):b[M]);return this.isDefaultPrevented=(b.defaultPrevented!=null?b.defaultPrevented:b.returnValue===!1)?Tp:Z0,this.isPropagationStopped=Z0,this}return Q(a.prototype,{preventDefault:function(){this.defaultPrevented=!0;var d=this.nativeEvent;d&&(d.preventDefault?d.preventDefault():typeof d.returnValue!="unknown"&&(d.returnValue=!1),this.isDefaultPrevented=Tp)},stopPropagation:function(){var d=this.nativeEvent;d&&(d.stopPropagation?d.stopPropagation():typeof d.cancelBubble!="unknown"&&(d.cancelBubble=!0),this.isPropagationStopped=Tp)},persist:function(){},isPersistent:Tp}),a}var ll={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(o){return o.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},_g=Pr(ll),sc=Q({},ll,{view:0,detail:0}),XM=Pr(sc),bg,xg,oc,Pp=Q({},sc,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:wg,button:0,buttons:0,relatedTarget:function(o){return o.relatedTarget===void 0?o.fromElement===o.srcElement?o.toElement:o.fromElement:o.relatedTarget},movementX:function(o){return"movementX"in o?o.movementX:(o!==oc&&(oc&&o.type==="mousemove"?(bg=o.screenX-oc.screenX,xg=o.screenY-oc.screenY):xg=bg=0,oc=o),bg)},movementY:function(o){return"movementY"in o?o.movementY:xg}}),eS=Pr(Pp),ZM=Q({},Pp,{dataTransfer:0}),eN=Pr(ZM),tN=Q({},sc,{relatedTarget:0}),Sg=Pr(tN),nN=Q({},ll,{animationName:0,elapsedTime:0,pseudoElement:0}),rN=Pr(nN),iN=Q({},ll,{clipboardData:function(o){return"clipboardData"in o?o.clipboardData:window.clipboardData}}),sN=Pr(iN),oN=Q({},ll,{data:0}),tS=Pr(oN),aN={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},lN={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",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",224:"Meta"},uN={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function cN(o){var a=this.nativeEvent;return a.getModifierState?a.getModifierState(o):(o=uN[o])?!!a[o]:!1}function wg(){return cN}var dN=Q({},sc,{key:function(o){if(o.key){var a=aN[o.key]||o.key;if(a!=="Unidentified")return a}return o.type==="keypress"?(o=Cp(o),o===13?"Enter":String.fromCharCode(o)):o.type==="keydown"||o.type==="keyup"?lN[o.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:wg,charCode:function(o){return o.type==="keypress"?Cp(o):0},keyCode:function(o){return o.type==="keydown"||o.type==="keyup"?o.keyCode:0},which:function(o){return o.type==="keypress"?Cp(o):o.type==="keydown"||o.type==="keyup"?o.keyCode:0}}),pN=Pr(dN),hN=Q({},Pp,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),nS=Pr(hN),fN=Q({},sc,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:wg}),mN=Pr(fN),gN=Q({},ll,{propertyName:0,elapsedTime:0,pseudoElement:0}),vN=Pr(gN),yN=Q({},Pp,{deltaX:function(o){return"deltaX"in o?o.deltaX:"wheelDeltaX"in o?-o.wheelDeltaX:0},deltaY:function(o){return"deltaY"in o?o.deltaY:"wheelDeltaY"in o?-o.wheelDeltaY:"wheelDelta"in o?-o.wheelDelta:0},deltaZ:0,deltaMode:0}),_N=Pr(yN),bN=[9,13,27,32],Eg=u&&"CompositionEvent"in window,ac=null;u&&"documentMode"in document&&(ac=document.documentMode);var xN=u&&"TextEvent"in window&&!ac,rS=u&&(!Eg||ac&&8<ac&&11>=ac),iS=" ",sS=!1;function oS(o,a){switch(o){case"keyup":return bN.indexOf(a.keyCode)!==-1;case"keydown":return a.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function aS(o){return o=o.detail,typeof o=="object"&&"data"in o?o.data:null}var ul=!1;function SN(o,a){switch(o){case"compositionend":return aS(a);case"keypress":return a.which!==32?null:(sS=!0,iS);case"textInput":return o=a.data,o===iS&&sS?null:o;default:return null}}function wN(o,a){if(ul)return o==="compositionend"||!Eg&&oS(o,a)?(o=X0(),kp=yg=Bs=null,ul=!1,o):null;switch(o){case"paste":return null;case"keypress":if(!(a.ctrlKey||a.altKey||a.metaKey)||a.ctrlKey&&a.altKey){if(a.char&&1<a.char.length)return a.char;if(a.which)return String.fromCharCode(a.which)}return null;case"compositionend":return rS&&a.locale!=="ko"?null:a.data;default:return null}}var EN={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function lS(o){var a=o&&o.nodeName&&o.nodeName.toLowerCase();return a==="input"?!!EN[o.type]:a==="textarea"}function uS(o,a,d,f){ur(f),a=Mp(a,"onChange"),0<a.length&&(d=new _g("onChange","change",null,d,f),o.push({event:d,listeners:a}))}var lc=null,uc=null;function kN(o){TS(o,0)}function Rp(o){var a=fl(o);if(ln(a))return o}function CN(o,a){if(o==="change")return a}var cS=!1;if(u){var kg;if(u){var Cg="oninput"in document;if(!Cg){var dS=document.createElement("div");dS.setAttribute("oninput","return;"),Cg=typeof dS.oninput=="function"}kg=Cg}else kg=!1;cS=kg&&(!document.documentMode||9<document.documentMode)}function pS(){lc&&(lc.detachEvent("onpropertychange",hS),uc=lc=null)}function hS(o){if(o.propertyName==="value"&&Rp(uc)){var a=[];uS(a,uc,o,Ko(o)),Qu(kN,a)}}function TN(o,a,d){o==="focusin"?(pS(),lc=a,uc=d,lc.attachEvent("onpropertychange",hS)):o==="focusout"&&pS()}function PN(o){if(o==="selectionchange"||o==="keyup"||o==="keydown")return Rp(uc)}function RN(o,a){if(o==="click")return Rp(a)}function AN(o,a){if(o==="input"||o==="change")return Rp(a)}function IN(o,a){return o===a&&(o!==0||1/o===1/a)||o!==o&&a!==a}var li=typeof Object.is=="function"?Object.is:IN;function cc(o,a){if(li(o,a))return!0;if(typeof o!="object"||o===null||typeof a!="object"||a===null)return!1;var d=Object.keys(o),f=Object.keys(a);if(d.length!==f.length)return!1;for(f=0;f<d.length;f++){var y=d[f];if(!c.call(a,y)||!li(o[y],a[y]))return!1}return!0}function fS(o){for(;o&&o.firstChild;)o=o.firstChild;return o}function mS(o,a){var d=fS(o);o=0;for(var f;d;){if(d.nodeType===3){if(f=o+d.textContent.length,o<=a&&f>=a)return{node:d,offset:a-o};o=f}e:{for(;d;){if(d.nextSibling){d=d.nextSibling;break e}d=d.parentNode}d=void 0}d=fS(d)}}function gS(o,a){return o&&a?o===a?!0:o&&o.nodeType===3?!1:a&&a.nodeType===3?gS(o,a.parentNode):"contains"in o?o.contains(a):o.compareDocumentPosition?!!(o.compareDocumentPosition(a)&16):!1:!1}function vS(){for(var o=window,a=Pi();a instanceof o.HTMLIFrameElement;){try{var d=typeof a.contentWindow.location.href=="string"}catch{d=!1}if(d)o=a.contentWindow;else break;a=Pi(o.document)}return a}function Tg(o){var a=o&&o.nodeName&&o.nodeName.toLowerCase();return a&&(a==="input"&&(o.type==="text"||o.type==="search"||o.type==="tel"||o.type==="url"||o.type==="password")||a==="textarea"||o.contentEditable==="true")}function LN(o){var a=vS(),d=o.focusedElem,f=o.selectionRange;if(a!==d&&d&&d.ownerDocument&&gS(d.ownerDocument.documentElement,d)){if(f!==null&&Tg(d)){if(a=f.start,o=f.end,o===void 0&&(o=a),"selectionStart"in d)d.selectionStart=a,d.selectionEnd=Math.min(o,d.value.length);else if(o=(a=d.ownerDocument||document)&&a.defaultView||window,o.getSelection){o=o.getSelection();var y=d.textContent.length,b=Math.min(f.start,y);f=f.end===void 0?b:Math.min(f.end,y),!o.extend&&b>f&&(y=f,f=b,b=y),y=mS(d,b);var E=mS(d,f);y&&E&&(o.rangeCount!==1||o.anchorNode!==y.node||o.anchorOffset!==y.offset||o.focusNode!==E.node||o.focusOffset!==E.offset)&&(a=a.createRange(),a.setStart(y.node,y.offset),o.removeAllRanges(),b>f?(o.addRange(a),o.extend(E.node,E.offset)):(a.setEnd(E.node,E.offset),o.addRange(a)))}}for(a=[],o=d;o=o.parentNode;)o.nodeType===1&&a.push({element:o,left:o.scrollLeft,top:o.scrollTop});for(typeof d.focus=="function"&&d.focus(),d=0;d<a.length;d++)o=a[d],o.element.scrollLeft=o.left,o.element.scrollTop=o.top}}var MN=u&&"documentMode"in document&&11>=document.documentMode,cl=null,Pg=null,dc=null,Rg=!1;function yS(o,a,d){var f=d.window===d?d.document:d.nodeType===9?d:d.ownerDocument;Rg||cl==null||cl!==Pi(f)||(f=cl,"selectionStart"in f&&Tg(f)?f={start:f.selectionStart,end:f.selectionEnd}:(f=(f.ownerDocument&&f.ownerDocument.defaultView||window).getSelection(),f={anchorNode:f.anchorNode,anchorOffset:f.anchorOffset,focusNode:f.focusNode,focusOffset:f.focusOffset}),dc&&cc(dc,f)||(dc=f,f=Mp(Pg,"onSelect"),0<f.length&&(a=new _g("onSelect","select",null,a,d),o.push({event:a,listeners:f}),a.target=cl)))}function Ap(o,a){var d={};return d[o.toLowerCase()]=a.toLowerCase(),d["Webkit"+o]="webkit"+a,d["Moz"+o]="moz"+a,d}var dl={animationend:Ap("Animation","AnimationEnd"),animationiteration:Ap("Animation","AnimationIteration"),animationstart:Ap("Animation","AnimationStart"),transitionend:Ap("Transition","TransitionEnd")},Ag={},_S={};u&&(_S=document.createElement("div").style,"AnimationEvent"in window||(delete dl.animationend.animation,delete dl.animationiteration.animation,delete dl.animationstart.animation),"TransitionEvent"in window||delete dl.transitionend.transition);function Ip(o){if(Ag[o])return Ag[o];if(!dl[o])return o;var a=dl[o],d;for(d in a)if(a.hasOwnProperty(d)&&d in _S)return Ag[o]=a[d];return o}var bS=Ip("animationend"),xS=Ip("animationiteration"),SS=Ip("animationstart"),wS=Ip("transitionend"),ES=new Map,kS="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function $s(o,a){ES.set(o,a),s(a,[o])}for(var Ig=0;Ig<kS.length;Ig++){var Lg=kS[Ig],NN=Lg.toLowerCase(),ON=Lg[0].toUpperCase()+Lg.slice(1);$s(NN,"on"+ON)}$s(bS,"onAnimationEnd"),$s(xS,"onAnimationIteration"),$s(SS,"onAnimationStart"),$s("dblclick","onDoubleClick"),$s("focusin","onFocus"),$s("focusout","onBlur"),$s(wS,"onTransitionEnd"),l("onMouseEnter",["mouseout","mouseover"]),l("onMouseLeave",["mouseout","mouseover"]),l("onPointerEnter",["pointerout","pointerover"]),l("onPointerLeave",["pointerout","pointerover"]),s("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),s("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),s("onBeforeInput",["compositionend","keypress","textInput","paste"]),s("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),s("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),s("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var pc="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),DN=new Set("cancel close invalid load scroll toggle".split(" ").concat(pc));function CS(o,a,d){var f=o.type||"unknown-event";o.currentTarget=d,ug(f,a,void 0,o),o.currentTarget=null}function TS(o,a){a=(a&4)!==0;for(var d=0;d<o.length;d++){var f=o[d],y=f.event;f=f.listeners;e:{var b=void 0;if(a)for(var E=f.length-1;0<=E;E--){var M=f[E],F=M.instance,J=M.currentTarget;if(M=M.listener,F!==b&&y.isPropagationStopped())break e;CS(y,M,J),b=F}else for(E=0;E<f.length;E++){if(M=f[E],F=M.instance,J=M.currentTarget,M=M.listener,F!==b&&y.isPropagationStopped())break e;CS(y,M,J),b=F}}}if(Xo)throw o=Xu,Xo=!1,Xu=null,o}function Nt(o,a){var d=a[zg];d===void 0&&(d=a[zg]=new Set);var f=o+"__bubble";d.has(f)||(PS(a,o,2,!1),d.add(f))}function Mg(o,a,d){var f=0;a&&(f|=4),PS(d,o,f,a)}var Lp="_reactListening"+Math.random().toString(36).slice(2);function hc(o){if(!o[Lp]){o[Lp]=!0,r.forEach(function(d){d!=="selectionchange"&&(DN.has(d)||Mg(d,!1,o),Mg(d,!0,o))});var a=o.nodeType===9?o:o.ownerDocument;a===null||a[Lp]||(a[Lp]=!0,Mg("selectionchange",!1,a))}}function PS(o,a,d,f){switch(Q0(a)){case 1:var y=JM;break;case 4:y=QM;break;default:y=gg}d=y.bind(null,a,d,o),y=void 0,!Gn||a!=="touchstart"&&a!=="touchmove"&&a!=="wheel"||(y=!0),f?y!==void 0?o.addEventListener(a,d,{capture:!0,passive:y}):o.addEventListener(a,d,!0):y!==void 0?o.addEventListener(a,d,{passive:y}):o.addEventListener(a,d,!1)}function Ng(o,a,d,f,y){var b=f;if((a&1)===0&&(a&2)===0&&f!==null)e:for(;;){if(f===null)return;var E=f.tag;if(E===3||E===4){var M=f.stateNode.containerInfo;if(M===y||M.nodeType===8&&M.parentNode===y)break;if(E===4)for(E=f.return;E!==null;){var F=E.tag;if((F===3||F===4)&&(F=E.stateNode.containerInfo,F===y||F.nodeType===8&&F.parentNode===y))return;E=E.return}for(;M!==null;){if(E=ea(M),E===null)return;if(F=E.tag,F===5||F===6){f=b=E;continue e}M=M.parentNode}}f=f.return}Qu(function(){var J=b,ne=Ko(d),oe=[];e:{var te=ES.get(o);if(te!==void 0){var ye=_g,we=o;switch(o){case"keypress":if(Cp(d)===0)break e;case"keydown":case"keyup":ye=pN;break;case"focusin":we="focus",ye=Sg;break;case"focusout":we="blur",ye=Sg;break;case"beforeblur":case"afterblur":ye=Sg;break;case"click":if(d.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":ye=eS;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":ye=eN;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":ye=mN;break;case bS:case xS:case SS:ye=rN;break;case wS:ye=vN;break;case"scroll":ye=XM;break;case"wheel":ye=_N;break;case"copy":case"cut":case"paste":ye=sN;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":ye=nS}var ke=(a&4)!==0,en=!ke&&o==="scroll",H=ke?te!==null?te+"Capture":null:te;ke=[];for(var z=J,V;z!==null;){V=z;var ce=V.stateNode;if(V.tag===5&&ce!==null&&(V=ce,H!==null&&(ce=Qo(z,H),ce!=null&&ke.push(fc(z,ce,V)))),en)break;z=z.return}0<ke.length&&(te=new ye(te,we,null,d,ne),oe.push({event:te,listeners:ke}))}}if((a&7)===0){e:{if(te=o==="mouseover"||o==="pointerover",ye=o==="mouseout"||o==="pointerout",te&&d!==rl&&(we=d.relatedTarget||d.fromElement)&&(ea(we)||we[es]))break e;if((ye||te)&&(te=ne.window===ne?ne:(te=ne.ownerDocument)?te.defaultView||te.parentWindow:window,ye?(we=d.relatedTarget||d.toElement,ye=J,we=we?ea(we):null,we!==null&&(en=ai(we),we!==en||we.tag!==5&&we.tag!==6)&&(we=null)):(ye=null,we=J),ye!==we)){if(ke=eS,ce="onMouseLeave",H="onMouseEnter",z="mouse",(o==="pointerout"||o==="pointerover")&&(ke=nS,ce="onPointerLeave",H="onPointerEnter",z="pointer"),en=ye==null?te:fl(ye),V=we==null?te:fl(we),te=new ke(ce,z+"leave",ye,d,ne),te.target=en,te.relatedTarget=V,ce=null,ea(ne)===J&&(ke=new ke(H,z+"enter",we,d,ne),ke.target=V,ke.relatedTarget=en,ce=ke),en=ce,ye&&we)t:{for(ke=ye,H=we,z=0,V=ke;V;V=pl(V))z++;for(V=0,ce=H;ce;ce=pl(ce))V++;for(;0<z-V;)ke=pl(ke),z--;for(;0<V-z;)H=pl(H),V--;for(;z--;){if(ke===H||H!==null&&ke===H.alternate)break t;ke=pl(ke),H=pl(H)}ke=null}else ke=null;ye!==null&&RS(oe,te,ye,ke,!1),we!==null&&en!==null&&RS(oe,en,we,ke,!0)}}e:{if(te=J?fl(J):window,ye=te.nodeName&&te.nodeName.toLowerCase(),ye==="select"||ye==="input"&&te.type==="file")var Ce=CN;else if(lS(te))if(cS)Ce=AN;else{Ce=PN;var Ne=TN}else(ye=te.nodeName)&&ye.toLowerCase()==="input"&&(te.type==="checkbox"||te.type==="radio")&&(Ce=RN);if(Ce&&(Ce=Ce(o,J))){uS(oe,Ce,d,ne);break e}Ne&&Ne(o,te,J),o==="focusout"&&(Ne=te._wrapperState)&&Ne.controlled&&te.type==="number"&&Qe(te,"number",te.value)}switch(Ne=J?fl(J):window,o){case"focusin":(lS(Ne)||Ne.contentEditable==="true")&&(cl=Ne,Pg=J,dc=null);break;case"focusout":dc=Pg=cl=null;break;case"mousedown":Rg=!0;break;case"contextmenu":case"mouseup":case"dragend":Rg=!1,yS(oe,d,ne);break;case"selectionchange":if(MN)break;case"keydown":case"keyup":yS(oe,d,ne)}var Oe;if(Eg)e:{switch(o){case"compositionstart":var Be="onCompositionStart";break e;case"compositionend":Be="onCompositionEnd";break e;case"compositionupdate":Be="onCompositionUpdate";break e}Be=void 0}else ul?oS(o,d)&&(Be="onCompositionEnd"):o==="keydown"&&d.keyCode===229&&(Be="onCompositionStart");Be&&(rS&&d.locale!=="ko"&&(ul||Be!=="onCompositionStart"?Be==="onCompositionEnd"&&ul&&(Oe=X0()):(Bs=ne,yg="value"in Bs?Bs.value:Bs.textContent,ul=!0)),Ne=Mp(J,Be),0<Ne.length&&(Be=new tS(Be,o,null,d,ne),oe.push({event:Be,listeners:Ne}),Oe?Be.data=Oe:(Oe=aS(d),Oe!==null&&(Be.data=Oe)))),(Oe=xN?SN(o,d):wN(o,d))&&(J=Mp(J,"onBeforeInput"),0<J.length&&(ne=new tS("onBeforeInput","beforeinput",null,d,ne),oe.push({event:ne,listeners:J}),ne.data=Oe))}TS(oe,a)})}function fc(o,a,d){return{instance:o,listener:a,currentTarget:d}}function Mp(o,a){for(var d=a+"Capture",f=[];o!==null;){var y=o,b=y.stateNode;y.tag===5&&b!==null&&(y=b,b=Qo(o,d),b!=null&&f.unshift(fc(o,b,y)),b=Qo(o,a),b!=null&&f.push(fc(o,b,y))),o=o.return}return f}function pl(o){if(o===null)return null;do o=o.return;while(o&&o.tag!==5);return o||null}function RS(o,a,d,f,y){for(var b=a._reactName,E=[];d!==null&&d!==f;){var M=d,F=M.alternate,J=M.stateNode;if(F!==null&&F===f)break;M.tag===5&&J!==null&&(M=J,y?(F=Qo(d,b),F!=null&&E.unshift(fc(d,F,M))):y||(F=Qo(d,b),F!=null&&E.push(fc(d,F,M)))),d=d.return}E.length!==0&&o.push({event:a,listeners:E})}var jN=/\r\n?/g,FN=/\u0000|\uFFFD/g;function AS(o){return(typeof o=="string"?o:""+o).replace(jN,` 39`).replace(FN,"")}function Np(o,a,d){if(a=AS(a),AS(o)!==a&&d)throw Error(n(425))}function Op(){}var Og=null,Dg=null;function jg(o,a){return o==="textarea"||o==="noscript"||typeof a.children=="string"||typeof a.children=="number"||typeof a.dangerouslySetInnerHTML=="object"&&a.dangerouslySetInnerHTML!==null&&a.dangerouslySetInnerHTML.__html!=null}var Fg=typeof setTimeout=="function"?setTimeout:void 0,UN=typeof clearTimeout=="function"?clearTimeout:void 0,IS=typeof Promise=="function"?Promise:void 0,zN=typeof queueMicrotask=="function"?queueMicrotask:typeof IS<"u"?function(o){return IS.resolve(null).then(o).catch(BN)}:Fg;function BN(o){setTimeout(function(){throw o})}function Ug(o,a){var d=a,f=0;do{var y=d.nextSibling;if(o.removeChild(d),y&&y.nodeType===8)if(d=y.data,d==="/$"){if(f===0){o.removeChild(y),ic(a);return}f--}else d!=="$"&&d!=="$?"&&d!=="$!"||f++;d=y}while(d);ic(a)}function qs(o){for(;o!=null;o=o.nextSibling){var a=o.nodeType;if(a===1||a===3)break;if(a===8){if(a=o.data,a==="$"||a==="$!"||a==="$?")break;if(a==="/$")return null}}return o}function LS(o){o=o.previousSibling;for(var a=0;o;){if(o.nodeType===8){var d=o.data;if(d==="$"||d==="$!"||d==="$?"){if(a===0)return o;a--}else d==="/$"&&a++}o=o.previousSibling}return null}var hl=Math.random().toString(36).slice(2),Mi="__reactFiber$"+hl,mc="__reactProps$"+hl,es="__reactContainer$"+hl,zg="__reactEvents$"+hl,$N="__reactListeners$"+hl,qN="__reactHandles$"+hl;function ea(o){var a=o[Mi];if(a)return a;for(var d=o.parentNode;d;){if(a=d[es]||d[Mi]){if(d=a.alternate,a.child!==null||d!==null&&d.child!==null)for(o=LS(o);o!==null;){if(d=o[Mi])return d;o=LS(o)}return a}o=d,d=o.parentNode}return null}function gc(o){return o=o[Mi]||o[es],!o||o.tag!==5&&o.tag!==6&&o.tag!==13&&o.tag!==3?null:o}function fl(o){if(o.tag===5||o.tag===6)return o.stateNode;throw Error(n(33))}function Dp(o){return o[mc]||null}var Bg=[],ml=-1;function Ws(o){return{current:o}}function Ot(o){0>ml||(o.current=Bg[ml],Bg[ml]=null,ml--)}function Rt(o,a){ml++,Bg[ml]=o.current,o.current=a}var Hs={},jn=Ws(Hs),dr=Ws(!1),ta=Hs;function gl(o,a){var d=o.type.contextTypes;if(!d)return Hs;var f=o.stateNode;if(f&&f.__reactInternalMemoizedUnmaskedChildContext===a)return f.__reactInternalMemoizedMaskedChildContext;var y={},b;for(b in d)y[b]=a[b];return f&&(o=o.stateNode,o.__reactInternalMemoizedUnmaskedChildContext=a,o.__reactInternalMemoizedMaskedChildContext=y),y}function pr(o){return o=o.childContextTypes,o!=null}function jp(){Ot(dr),Ot(jn)}function MS(o,a,d){if(jn.current!==Hs)throw Error(n(168));Rt(jn,a),Rt(dr,d)}function NS(o,a,d){var f=o.stateNode;if(a=a.childContextTypes,typeof f.getChildContext!="function")return d;f=f.getChildContext();for(var y in f)if(!(y in a))throw Error(n(108,je(o)||"Unknown",y));return Q({},d,f)}function Fp(o){return o=(o=o.stateNode)&&o.__reactInternalMemoizedMergedChildContext||Hs,ta=jn.current,Rt(jn,o),Rt(dr,dr.current),!0}function OS(o,a,d){var f=o.stateNode;if(!f)throw Error(n(169));d?(o=NS(o,a,ta),f.__reactInternalMemoizedMergedChildContext=o,Ot(dr),Ot(jn),Rt(jn,o)):Ot(dr),Rt(dr,d)}var ts=null,Up=!1,$g=!1;function DS(o){ts===null?ts=[o]:ts.push(o)}function WN(o){Up=!0,DS(o)}function Vs(){if(!$g&&ts!==null){$g=!0;var o=0,a=xt;try{var d=ts;for(xt=1;o<d.length;o++){var f=d[o];do f=f(!0);while(f!==null)}ts=null,Up=!1}catch(y){throw ts!==null&&(ts=ts.slice(o+1)),Ds(Me,Vs),y}finally{xt=a,$g=!1}}return null}var vl=[],yl=0,zp=null,Bp=0,$r=[],qr=0,na=null,ns=1,rs="";function ra(o,a){vl[yl++]=Bp,vl[yl++]=zp,zp=o,Bp=a}function jS(o,a,d){$r[qr++]=ns,$r[qr++]=rs,$r[qr++]=na,na=o;var f=ns;o=rs;var y=32-kt(f)-1;f&=~(1<<y),d+=1;var b=32-kt(a)+y;if(30<b){var E=y-y%5;b=(f&(1<<E)-1).toString(32),f>>=E,y-=E,ns=1<<32-kt(a)+y|d<<y|f,rs=b+o}else ns=1<<b|d<<y|f,rs=o}function qg(o){o.return!==null&&(ra(o,1),jS(o,1,0))}function Wg(o){for(;o===zp;)zp=vl[--yl],vl[yl]=null,Bp=vl[--yl],vl[yl]=null;for(;o===na;)na=$r[--qr],$r[qr]=null,rs=$r[--qr],$r[qr]=null,ns=$r[--qr],$r[qr]=null}var Rr=null,Ar=null,zt=!1,ui=null;function FS(o,a){var d=Gr(5,null,null,0);
vendor: 4,249 bytes, line 39
39d.elementType="DELETED",d.stateNode=a,d.return=o,a=o.deletions,a===null?(o.deletions=[d],o.flags|=16):a.push(d)}function US(o,a){switch(o.tag){case 5:var d=o.type;return a=a.nodeType!==1||d.toLowerCase()!==a.nodeName.toLowerCase()?null:a,a!==null?(o.stateNode=a,Rr=o,Ar=qs(a.firstChild),!0):!1;case 6:return a=o.pendingProps===""||a.nodeType!==3?null:a,a!==null?(o.stateNode=a,Rr=o,Ar=null,!0):!1;case 13:return a=a.nodeType!==8?null:a,a!==null?(d=na!==null?{id:ns,overflow:rs}:null,o.memoizedState={dehydrated:a,treeContext:d,retryLane:1073741824},d=Gr(18,null,null,0),d.stateNode=a,d.return=o,o.child=d,Rr=o,Ar=null,!0):!1;default:return!1}}function Hg(o){return(o.mode&1)!==0&&(o.flags&128)===0}function Vg(o){if(zt){var a=Ar;if(a){var d=a;if(!US(o,a)){if(Hg(o))throw Error(n(418));a=qs(d.nextSibling);var f=Rr;a&&US(o,a)?FS(f,d):(o.flags=o.flags&-4097|2,zt=!1,Rr=o)}}else{if(Hg(o))throw Error(n(418));o.flags=o.flags&-4097|2,zt=!1,Rr=o}}}function zS(o){for(o=o.return;o!==null&&o.tag!==5&&o.tag!==3&&o.tag!==13;)o=o.return;Rr=o}function $p(o){if(o!==Rr)return!1;if(!zt)return zS(o),zt=!0,!1;var a;if((a=o.tag!==3)&&!(a=o.tag!==5)&&(a=o.type,a=a!=="head"&&a!=="body"&&!jg(o.type,o.memoizedProps)),a&&(a=Ar)){if(Hg(o))throw BS(),Error(n(418));for(;a;)FS(o,a),a=qs(a.nextSibling)}if(zS(o),o.tag===13){if(o=o.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(n(317));e:{for(o=o.nextSibling,a=0;o;){if(o.nodeType===8){var d=o.data;if(d==="/$"){if(a===0){Ar=qs(o.nextSibling);break e}a--}else d!=="$"&&d!=="$!"&&d!=="$?"||a++}o=o.nextSibling}Ar=null}}else Ar=Rr?qs(o.stateNode.nextSibling):null;return!0}function BS(){for(var o=Ar;o;)o=qs(o.nextSibling)}function _l(){Ar=Rr=null,zt=!1}function Gg(o){ui===null?ui=[o]:ui.push(o)}var HN=P.ReactCurrentBatchConfig;function vc(o,a,d){if(o=d.ref,o!==null&&typeof o!="function"&&typeof o!="object"){if(d._owner){if(d=d._owner,d){if(d.tag!==1)throw Error(n(309));var f=d.stateNode}if(!f)throw Error(n(147,o));var y=f,b=""+o;return a!==null&&a.ref!==null&&typeof a.ref=="function"&&a.ref._stringRef===b?a.ref:(a=function(E){var M=y.refs;E===null?delete M[b]:M[b]=E},a._stringRef=b,a)}if(typeof o!="string")throw Error(n(284));if(!d._owner)throw Error(n(290,o))}return o}function qp(o,a){throw o=Object.prototype.toString.call(a),Error(n(31,o==="[object Object]"?"object with keys {"+Object.keys(a).join(", ")+"}":o))}function $S(o){var a=o._init;return a(o._payload)}function qS(o){function a(H,z){if(o){var V=H.deletions;V===null?(H.deletions=[z],H.flags|=16):V.push(z)}}function d(H,z){if(!o)return null;for(;z!==null;)a(H,z),z=z.sibling;return null}function f(H,z){for(H=new Map;z!==null;)z.key!==null?H.set(z.key,z):H.set(z.index,z),z=z.sibling;return H}function y(H,z){return H=eo(H,z),H.index=0,H.sibling=null,H}function b(H,z,V){return H.index=V,o?(V=H.alternate,V!==null?(V=V.index,V<z?(H.flags|=2,z):V):(H.flags|=2,z)):(H.flags|=1048576,z)}function E(H){return o&&H.alternate===null&&(H.flags|=2),H}function M(H,z,V,ce){return z===null||z.tag!==6?(z=Fv(V,H.mode,ce),z.return=H,z):(z=y(z,V),z.return=H,z)}function F(H,z,V,ce){var Ce=V.type;return Ce===T?ne(H,z,V.props.children,ce,V.key):z!==null&&(z.elementType===Ce||typeof Ce=="object"&&Ce!==null&&Ce.$$typeof===se&&$S(Ce)===z.type)?(ce=y(z,V.props),ce.ref=vc(H,z,V),ce.return=H,ce):(ce=hh(V.type,V.key,V.props,null,H.mode,ce),ce.ref=vc(H,z,V),ce.return=H,ce)}function J(H,z,V,ce){return z===null||z.tag!==4||z.stateNode.containerInfo!==V.containerInfo||z.stateNode.implementation!==V.implementation?(z=Uv(V,H.mode,ce),z.return=H,z):(z=y(z,V.children||[]),z.return=H,z)}function ne(H,z,V,ce,Ce){return z===null||z.tag!==7?(z=da(V,H.mode,ce,Ce),z.return=H,z):(z=y(z,V),z.return=H,z)}function oe(H,z,V){if(typeof z=="string"&&z!==""||typeof z=="number")return z=Fv(""+z,H.mode,V),z.return=H,z;if(typeof z=="object"&&z!==null){switch(z.$$typeof){case A:return V=hh(z.type,z.key,z.props,null,H.mode,V),V.ref=vc(H,null,z),V.return=H,V;case N:return z=Uv(z,H.mode,V),z.return=H,z;case se:var ce=z._init;return oe(H,ce(z._payload),V)}if(We(z)||Z(z))return z=da(z,H.mode,V,null),z.return=H,z;qp(H,z)}return null}function te(H,z,V,ce){var Ce=z!==null?z.key:null;if(typeof V=="string"&&V!==""||typeof V=="number")return Ce!==null?null:M(H,z,""+V,ce);
vendor: 9,364 bytes, line 39
39if(typeof V=="object"&&V!==null){switch(V.$$typeof){case A:return V.key===Ce?F(H,z,V,ce):null;case N:return V.key===Ce?J(H,z,V,ce):null;case se:return Ce=V._init,te(H,z,Ce(V._payload),ce)}if(We(V)||Z(V))return Ce!==null?null:ne(H,z,V,ce,null);qp(H,V)}return null}function ye(H,z,V,ce,Ce){if(typeof ce=="string"&&ce!==""||typeof ce=="number")return H=H.get(V)||null,M(z,H,""+ce,Ce);if(typeof ce=="object"&&ce!==null){switch(ce.$$typeof){case A:return H=H.get(ce.key===null?V:ce.key)||null,F(z,H,ce,Ce);case N:return H=H.get(ce.key===null?V:ce.key)||null,J(z,H,ce,Ce);case se:var Ne=ce._init;return ye(H,z,V,Ne(ce._payload),Ce)}if(We(ce)||Z(ce))return H=H.get(V)||null,ne(z,H,ce,Ce,null);qp(z,ce)}return null}function we(H,z,V,ce){for(var Ce=null,Ne=null,Oe=z,Be=z=0,xn=null;Oe!==null&&Be<V.length;Be++){Oe.index>Be?(xn=Oe,Oe=null):xn=Oe.sibling;var mt=te(H,Oe,V[Be],ce);if(mt===null){Oe===null&&(Oe=xn);break}o&&Oe&&mt.alternate===null&&a(H,Oe),z=b(mt,z,Be),Ne===null?Ce=mt:Ne.sibling=mt,Ne=mt,Oe=xn}if(Be===V.length)return d(H,Oe),zt&&ra(H,Be),Ce;if(Oe===null){for(;Be<V.length;Be++)Oe=oe(H,V[Be],ce),Oe!==null&&(z=b(Oe,z,Be),Ne===null?Ce=Oe:Ne.sibling=Oe,Ne=Oe);return zt&&ra(H,Be),Ce}for(Oe=f(H,Oe);Be<V.length;Be++)xn=ye(Oe,H,Be,V[Be],ce),xn!==null&&(o&&xn.alternate!==null&&Oe.delete(xn.key===null?Be:xn.key),z=b(xn,z,Be),Ne===null?Ce=xn:Ne.sibling=xn,Ne=xn);return o&&Oe.forEach(function(to){return a(H,to)}),zt&&ra(H,Be),Ce}function ke(H,z,V,ce){var Ce=Z(V);if(typeof Ce!="function")throw Error(n(150));if(V=Ce.call(V),V==null)throw Error(n(151));for(var Ne=Ce=null,Oe=z,Be=z=0,xn=null,mt=V.next();Oe!==null&&!mt.done;Be++,mt=V.next()){Oe.index>Be?(xn=Oe,Oe=null):xn=Oe.sibling;var to=te(H,Oe,mt.value,ce);if(to===null){Oe===null&&(Oe=xn);break}o&&Oe&&to.alternate===null&&a(H,Oe),z=b(to,z,Be),Ne===null?Ce=to:Ne.sibling=to,Ne=to,Oe=xn}if(mt.done)return d(H,Oe),zt&&ra(H,Be),Ce;if(Oe===null){for(;!mt.done;Be++,mt=V.next())mt=oe(H,mt.value,ce),mt!==null&&(z=b(mt,z,Be),Ne===null?Ce=mt:Ne.sibling=mt,Ne=mt);return zt&&ra(H,Be),Ce}for(Oe=f(H,Oe);!mt.done;Be++,mt=V.next())mt=ye(Oe,H,Be,mt.value,ce),mt!==null&&(o&&mt.alternate!==null&&Oe.delete(mt.key===null?Be:mt.key),z=b(mt,z,Be),Ne===null?Ce=mt:Ne.sibling=mt,Ne=mt);return o&&Oe.forEach(function(EO){return a(H,EO)}),zt&&ra(H,Be),Ce}function en(H,z,V,ce){if(typeof V=="object"&&V!==null&&V.type===T&&V.key===null&&(V=V.props.children),typeof V=="object"&&V!==null){switch(V.$$typeof){case A:e:{for(var Ce=V.key,Ne=z;Ne!==null;){if(Ne.key===Ce){if(Ce=V.type,Ce===T){if(Ne.tag===7){d(H,Ne.sibling),z=y(Ne,V.props.children),z.return=H,H=z;break e}}else if(Ne.elementType===Ce||typeof Ce=="object"&&Ce!==null&&Ce.$$typeof===se&&$S(Ce)===Ne.type){d(H,Ne.sibling),z=y(Ne,V.props),z.ref=vc(H,Ne,V),z.return=H,H=z;break e}d(H,Ne);break}else a(H,Ne);Ne=Ne.sibling}V.type===T?(z=da(V.props.children,H.mode,ce,V.key),z.return=H,H=z):(ce=hh(V.type,V.key,V.props,null,H.mode,ce),ce.ref=vc(H,z,V),ce.return=H,H=ce)}return E(H);case N:e:{for(Ne=V.key;z!==null;){if(z.key===Ne)if(z.tag===4&&z.stateNode.containerInfo===V.containerInfo&&z.stateNode.implementation===V.implementation){d(H,z.sibling),z=y(z,V.children||[]),z.return=H,H=z;break e}else{d(H,z);break}else a(H,z);z=z.sibling}z=Uv(V,H.mode,ce),z.return=H,H=z}return E(H);case se:return Ne=V._init,en(H,z,Ne(V._payload),ce)}if(We(V))return we(H,z,V,ce);if(Z(V))return ke(H,z,V,ce);qp(H,V)}return typeof V=="string"&&V!==""||typeof V=="number"?(V=""+V,z!==null&&z.tag===6?(d(H,z.sibling),z=y(z,V),z.return=H,H=z):(d(H,z),z=Fv(V,H.mode,ce),z.return=H,H=z),E(H)):d(H,z)}return en}var bl=qS(!0),WS=qS(!1),Wp=Ws(null),Hp=null,xl=null,Yg=null;function Kg(){Yg=xl=Hp=null}function Jg(o){var a=Wp.current;Ot(Wp),o._currentValue=a}function Qg(o,a,d){for(;o!==null;){var f=o.alternate;if((o.childLanes&a)!==a?(o.childLanes|=a,f!==null&&(f.childLanes|=a)):f!==null&&(f.childLanes&a)!==a&&(f.childLanes|=a),o===d)break;o=o.return}}function Sl(o,a){Hp=o,Yg=xl=null,o=o.dependencies,o!==null&&o.firstContext!==null&&((o.lanes&a)!==0&&(hr=!0),o.firstContext=null)}function Wr(o){var a=o._currentValue;if(Yg!==o)if(o={context:o,memoizedValue:a,next:null},xl===null){if(Hp===null)throw Error(n(308));xl=o,Hp.dependencies={lanes:0,firstContext:o}}else xl=xl.next=o;return a}var ia=null;function Xg(o){ia===null?ia=[o]:ia.push(o)}function HS(o,a,d,f){var y=a.interleaved;return y===null?(d.next=d,Xg(a)):(d.next=y.next,y.next=d),a.interleaved=d,is(o,f)}function is(o,a){o.lanes|=a;var d=o.alternate;for(d!==null&&(d.lanes|=a),d=o,o=o.return;o!==null;)o.childLanes|=a,d=o.alternate,d!==null&&(d.childLanes|=a),d=o,o=o.return;return d.tag===3?d.stateNode:null}var Gs=!1;function Zg(o){o.updateQueue={baseState:o.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function VS(o,a){o=o.updateQueue,a.updateQueue===o&&(a.updateQueue={baseState:o.baseState,firstBaseUpdate:o.firstBaseUpdate,lastBaseUpdate:o.lastBaseUpdate,shared:o.shared,effects:o.effects})}function ss(o,a){return{eventTime:o,lane:a,tag:0,payload:null,callback:null,next:null}}function Ys(o,a,d){var f=o.updateQueue;if(f===null)return null;if(f=f.shared,(ht&2)!==0){var y=f.pending;return y===null?a.next=a:(a.next=y.next,y.next=a),f.pending=a,is(o,d)}return y=f.interleaved,y===null?(a.next=a,Xg(f)):(a.next=y.next,y.next=a),f.interleaved=a,is(o,d)}function Vp(o,a,d){if(a=a.updateQueue,a!==null&&(a=a.shared,(d&4194240)!==0)){var f=a.lanes;f&=o.pendingLanes,d|=f,a.lanes=d,hg(o,d)}}function GS(o,a){var d=o.updateQueue,f=o.alternate;if(f!==null&&(f=f.updateQueue,d===f)){var y=null,b=null;if(d=d.firstBaseUpdate,d!==null){do{var E={eventTime:d.eventTime,lane:d.lane,tag:d.tag,payload:d.payload,callback:d.callback,next:null};b===null?y=b=E:b=b.next=E,d=d.next}while(d!==null);b===null?y=b=a:b=b.next=a}else y=b=a;d={baseState:f.baseState,firstBaseUpdate:y,lastBaseUpdate:b,shared:f.shared,effects:f.effects},o.updateQueue=d;return}o=d.lastBaseUpdate,o===null?d.firstBaseUpdate=a:o.next=a,d.lastBaseUpdate=a}function Gp(o,a,d,f){var y=o.updateQueue;Gs=!1;var b=y.firstBaseUpdate,E=y.lastBaseUpdate,M=y.shared.pending;if(M!==null){y.shared.pending=null;var F=M,J=F.next;F.next=null,E===null?b=J:E.next=J,E=F;var ne=o.alternate;ne!==null&&(ne=ne.updateQueue,M=ne.lastBaseUpdate,M!==E&&(M===null?ne.firstBaseUpdate=J:M.next=J,ne.lastBaseUpdate=F))}if(b!==null){var oe=y.baseState;E=0,ne=J=F=null,M=b;do{var te=M.lane,ye=M.eventTime;if((f&te)===te){ne!==null&&(ne=ne.next={eventTime:ye,lane:0,tag:M.tag,payload:M.payload,callback:M.callback,next:null});e:{var we=o,ke=M;switch(te=a,ye=d,ke.tag){case 1:if(we=ke.payload,typeof we=="function"){oe=we.call(ye,oe,te);break e}oe=we;break e;case 3:we.flags=we.flags&-65537|128;case 0:if(we=ke.payload,te=typeof we=="function"?we.call(ye,oe,te):we,te==null)break e;oe=Q({},oe,te);break e;case 2:Gs=!0}}M.callback!==null&&M.lane!==0&&(o.flags|=64,te=y.effects,te===null?y.effects=[M]:te.push(M))}else ye={eventTime:ye,lane:te,tag:M.tag,payload:M.payload,callback:M.callback,next:null},ne===null?(J=ne=ye,F=oe):ne=ne.next=ye,E|=te;if(M=M.next,M===null){if(M=y.shared.pending,M===null)break;te=M,M=te.next,te.next=null,y.lastBaseUpdate=te,y.shared.pending=null}}while(!0);if(ne===null&&(F=oe),y.baseState=F,y.firstBaseUpdate=J,y.lastBaseUpdate=ne,a=y.shared.interleaved,a!==null){y=a;do E|=y.lane,y=y.next;while(y!==a)}else b===null&&(y.shared.lanes=0);aa|=E,o.lanes=E,o.memoizedState=oe}}function YS(o,a,d){if(o=a.effects,a.effects=null,o!==null)for(a=0;a<o.length;a++){var f=o[a],y=f.callback;if(y!==null){if(f.callback=null,f=d,typeof y!="function")throw Error(n(191,y));y.call(f)}}}var yc={},Ni=Ws(yc),_c=Ws(yc),bc=Ws(yc);function sa(o){if(o===yc)throw Error(n(174));return o}function ev(o,a){switch(Rt(bc,a),Rt(_c,o),Rt(Ni,yc),o=a.nodeType,o){case 9:case 11:a=(a=a.documentElement)?a.namespaceURI:ii(null,"");break;default:o=o===8?a.parentNode:a,a=o.namespaceURI||null,o=o.tagName,a=ii(a,o)}Ot(Ni),Rt(Ni,a)}function wl(){Ot(Ni),Ot(_c),Ot(bc)}function KS(o){sa(bc.current);var a=sa(Ni.current),d=ii(a,o.type);a!==d&&(Rt(_c,o),Rt(Ni,d))}function tv(o){_c.current===o&&(Ot(Ni),Ot(_c))}var Ht=Ws(0);function Yp(o){for(var a=o;a!==null;){if(a.tag===13){var d=a.memoizedState;if(d!==null&&(d=d.dehydrated,d===null||d.data==="$?"||d.data==="$!"))return a}else if(a.tag===19&&a.memoizedProps.revealOrder!==void 0){if((a.flags&128)!==0)return a}else if(a.child!==null){a.child.return=a,a=a.child;continue}if(a===o)break;for(;a.sibling===null;){if(a.return===null||a.return===o)return null;a=a.return}a.sibling.return=a.return,a=a.sibling}return null}var nv=[];function rv(){for(var o=0;o<nv.length;o++)nv[o]._workInProgressVersionPrimary=null;nv.length=0}var Kp=P.ReactCurrentDispatcher,iv=P.ReactCurrentBatchConfig,oa=0,Vt=null,cn=null,_n=null,Jp=!1,xc=!1,Sc=0,VN=0;function Fn(){throw Error(n(321))}function sv(o,a){if(a===null)return!1;for(var d=0;d<a.length&&d<o.length;d++)if(!li(o[d],a[d]))return!1;return!0}function ov(o,a,d,f,y,b){if(oa=b,Vt=a,a.memoizedState=null,a.updateQueue=null,a.lanes=0,Kp.current=o===null||o.memoizedState===null?JN:QN,o=d(f,y),xc){b=0;do{if(xc=!1,Sc=0,25<=b)throw Error(n(301));b+=1,_n=cn=null,a.updateQueue=null,Kp.current=XN,o=d(f,y)}while(xc)}if(Kp.current=Zp,a=cn!==null&&cn.next!==null,oa=0,_n=cn=Vt=null,Jp=!1,a)throw Error(n(300));return o}function av(){var o=Sc!==0;return Sc=0,o}
vendor: 6,365 bytes, line 39
39function Oi(){var o={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return _n===null?Vt.memoizedState=_n=o:_n=_n.next=o,_n}function Hr(){if(cn===null){var o=Vt.alternate;o=o!==null?o.memoizedState:null}else o=cn.next;var a=_n===null?Vt.memoizedState:_n.next;if(a!==null)_n=a,cn=o;else{if(o===null)throw Error(n(310));cn=o,o={memoizedState:cn.memoizedState,baseState:cn.baseState,baseQueue:cn.baseQueue,queue:cn.queue,next:null},_n===null?Vt.memoizedState=_n=o:_n=_n.next=o}return _n}function wc(o,a){return typeof a=="function"?a(o):a}function lv(o){var a=Hr(),d=a.queue;if(d===null)throw Error(n(311));d.lastRenderedReducer=o;var f=cn,y=f.baseQueue,b=d.pending;if(b!==null){if(y!==null){var E=y.next;y.next=b.next,b.next=E}f.baseQueue=y=b,d.pending=null}if(y!==null){b=y.next,f=f.baseState;var M=E=null,F=null,J=b;do{var ne=J.lane;if((oa&ne)===ne)F!==null&&(F=F.next={lane:0,action:J.action,hasEagerState:J.hasEagerState,eagerState:J.eagerState,next:null}),f=J.hasEagerState?J.eagerState:o(f,J.action);else{var oe={lane:ne,action:J.action,hasEagerState:J.hasEagerState,eagerState:J.eagerState,next:null};F===null?(M=F=oe,E=f):F=F.next=oe,Vt.lanes|=ne,aa|=ne}J=J.next}while(J!==null&&J!==b);F===null?E=f:F.next=M,li(f,a.memoizedState)||(hr=!0),a.memoizedState=f,a.baseState=E,a.baseQueue=F,d.lastRenderedState=f}if(o=d.interleaved,o!==null){y=o;do b=y.lane,Vt.lanes|=b,aa|=b,y=y.next;while(y!==o)}else y===null&&(d.lanes=0);return[a.memoizedState,d.dispatch]}function uv(o){var a=Hr(),d=a.queue;if(d===null)throw Error(n(311));d.lastRenderedReducer=o;var f=d.dispatch,y=d.pending,b=a.memoizedState;if(y!==null){d.pending=null;var E=y=y.next;do b=o(b,E.action),E=E.next;while(E!==y);li(b,a.memoizedState)||(hr=!0),a.memoizedState=b,a.baseQueue===null&&(a.baseState=b),d.lastRenderedState=b}return[b,f]}function JS(){}function QS(o,a){var d=Vt,f=Hr(),y=a(),b=!li(f.memoizedState,y);if(b&&(f.memoizedState=y,hr=!0),f=f.queue,cv(ew.bind(null,d,f,o),[o]),f.getSnapshot!==a||b||_n!==null&&_n.memoizedState.tag&1){if(d.flags|=2048,Ec(9,ZS.bind(null,d,f,y,a),void 0,null),bn===null)throw Error(n(349));(oa&30)!==0||XS(d,a,y)}return y}function XS(o,a,d){o.flags|=16384,o={getSnapshot:a,value:d},a=Vt.updateQueue,a===null?(a={lastEffect:null,stores:null},Vt.updateQueue=a,a.stores=[o]):(d=a.stores,d===null?a.stores=[o]:d.push(o))}function ZS(o,a,d,f){a.value=d,a.getSnapshot=f,tw(a)&&nw(o)}function ew(o,a,d){return d(function(){tw(a)&&nw(o)})}function tw(o){var a=o.getSnapshot;o=o.value;try{var d=a();return!li(o,d)}catch{return!0}}function nw(o){var a=is(o,1);a!==null&&hi(a,o,1,-1)}function rw(o){var a=Oi();return typeof o=="function"&&(o=o()),a.memoizedState=a.baseState=o,o={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:wc,lastRenderedState:o},a.queue=o,o=o.dispatch=KN.bind(null,Vt,o),[a.memoizedState,o]}function Ec(o,a,d,f){return o={tag:o,create:a,destroy:d,deps:f,next:null},a=Vt.updateQueue,a===null?(a={lastEffect:null,stores:null},Vt.updateQueue=a,a.lastEffect=o.next=o):(d=a.lastEffect,d===null?a.lastEffect=o.next=o:(f=d.next,d.next=o,o.next=f,a.lastEffect=o)),o}function iw(){return Hr().memoizedState}function Qp(o,a,d,f){var y=Oi();Vt.flags|=o,y.memoizedState=Ec(1|a,d,void 0,f===void 0?null:f)}function Xp(o,a,d,f){var y=Hr();f=f===void 0?null:f;var b=void 0;if(cn!==null){var E=cn.memoizedState;if(b=E.destroy,f!==null&&sv(f,E.deps)){y.memoizedState=Ec(a,d,b,f);return}}Vt.flags|=o,y.memoizedState=Ec(1|a,d,b,f)}function sw(o,a){return Qp(8390656,8,o,a)}function cv(o,a){return Xp(2048,8,o,a)}function ow(o,a){return Xp(4,2,o,a)}function aw(o,a){return Xp(4,4,o,a)}function lw(o,a){if(typeof a=="function")return o=o(),a(o),function(){a(null)};if(a!=null)return o=o(),a.current=o,function(){a.current=null}}function uw(o,a,d){return d=d!=null?d.concat([o]):null,Xp(4,4,lw.bind(null,a,o),d)}function dv(){}function cw(o,a){var d=Hr();a=a===void 0?null:a;var f=d.memoizedState;return f!==null&&a!==null&&sv(a,f[1])?f[0]:(d.memoizedState=[o,a],o)}function dw(o,a){var d=Hr();a=a===void 0?null:a;var f=d.memoizedState;return f!==null&&a!==null&&sv(a,f[1])?f[0]:(o=o(),d.memoizedState=[o,a],o)}function pw(o,a,d){return(oa&21)===0?(o.baseState&&(o.baseState=!1,hr=!0),o.memoizedState=d):(li(d,a)||(d=$0(),Vt.lanes|=d,aa|=d,o.baseState=!0),a)}function GN(o,a){var d=xt;xt=d!==0&&4>d?d:4,o(!0);var f=iv.transition;iv.transition={};try{o(!1),a()}finally{xt=d,iv.transition=f}}function hw(){return Hr().memoizedState}function YN(o,a,d){var f=Xs(o);if(d={lane:f,action:d,hasEagerState:!1,eagerState:null,next:null},fw(o))mw(a,d);else if(d=HS(o,a,d,f),d!==null){var y=Kn();hi(d,o,f,y),gw(d,a,f)}}function KN(o,a,d){var f=Xs(o),y={lane:f,action:d,hasEagerState:!1,eagerState:null,next:null};if(fw(o))mw(a,y);else{var b=o.alternate;if(o.lanes===0&&(b===null||b.lanes===0)&&(b=a.lastRenderedReducer,b!==null))try{var E=a.lastRenderedState,M=b(E,d);if(y.hasEagerState=!0,y.eagerState=M,li(M,E)){var F=a.interleaved;F===null?(y.next=y,Xg(a)):(y.next=F.next,F.next=y),a.interleaved=y;return}}catch{}finally{}d=HS(o,a,y,f),d!==null&&(y=Kn(),hi(d,o,f,y),gw(d,a,f))}}function fw(o){var a=o.alternate;return o===Vt||a!==null&&a===Vt}function mw(o,a){xc=Jp=!0;var d=o.pending;d===null?a.next=a:(a.next=d.next,d.next=a),o.pending=a}function gw(o,a,d){if((d&4194240)!==0){var f=a.lanes;f&=o.pendingLanes,d|=f,a.lanes=d,hg(o,d)}}var Zp={readContext:Wr,useCallback:Fn,useContext:Fn,useEffect:Fn,useImperativeHandle:Fn,useInsertionEffect:Fn,useLayoutEffect:Fn,useMemo:Fn,useReducer:Fn,useRef:Fn,useState:Fn,useDebugValue:Fn,useDeferredValue:Fn,useTransition:Fn,useMutableSource:Fn,useSyncExternalStore:Fn,useId:Fn,unstable_isNewReconciler:!1},JN={readContext:Wr,useCallback:function(o,a){return Oi().memoizedState=[o,a===void 0?null:a],o},useContext:Wr,useEffect:sw,useImperativeHandle:function(o,a,d){return d=d!=null?d.concat([o]):null,Qp(4194308,4,lw.bind(null,a,o),d)},useLayoutEffect:function(o,a){return Qp(4194308,4,o,a)},useInsertionEffect:function(o,a){return Qp(4,2,o,a)},useMemo:function(o,a){var d=Oi();return a=a===void 0?null:a,o=o(),d.memoizedState=[o,a],o},useReducer:function(o,a,d){var f=Oi();return a=d!==void 0?d(a):a,f.memoizedState=f.baseState=a,o={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:o,lastRenderedState:a},f.queue=o,o=o.dispatch=YN.bind(null,Vt,o),[f.memoizedState,o]}
vendor: 12,494 bytes, lines 39-41
39,useRef:function(o){var a=Oi();return o={current:o},a.memoizedState=o},useState:rw,useDebugValue:dv,useDeferredValue:function(o){return Oi().memoizedState=o},useTransition:function(){var o=rw(!1),a=o[0];return o=GN.bind(null,o[1]),Oi().memoizedState=o,[a,o]},useMutableSource:function(){},useSyncExternalStore:function(o,a,d){var f=Vt,y=Oi();if(zt){if(d===void 0)throw Error(n(407));d=d()}else{if(d=a(),bn===null)throw Error(n(349));(oa&30)!==0||XS(f,a,d)}y.memoizedState=d;var b={value:d,getSnapshot:a};return y.queue=b,sw(ew.bind(null,f,b,o),[o]),f.flags|=2048,Ec(9,ZS.bind(null,f,b,d,a),void 0,null),d},useId:function(){var o=Oi(),a=bn.identifierPrefix;if(zt){var d=rs,f=ns;d=(f&~(1<<32-kt(f)-1)).toString(32)+d,a=":"+a+"R"+d,d=Sc++,0<d&&(a+="H"+d.toString(32)),a+=":"}else d=VN++,a=":"+a+"r"+d.toString(32)+":";return o.memoizedState=a},unstable_isNewReconciler:!1},QN={readContext:Wr,useCallback:cw,useContext:Wr,useEffect:cv,useImperativeHandle:uw,useInsertionEffect:ow,useLayoutEffect:aw,useMemo:dw,useReducer:lv,useRef:iw,useState:function(){return lv(wc)},useDebugValue:dv,useDeferredValue:function(o){var a=Hr();return pw(a,cn.memoizedState,o)},useTransition:function(){var o=lv(wc)[0],a=Hr().memoizedState;return[o,a]},useMutableSource:JS,useSyncExternalStore:QS,useId:hw,unstable_isNewReconciler:!1},XN={readContext:Wr,useCallback:cw,useContext:Wr,useEffect:cv,useImperativeHandle:uw,useInsertionEffect:ow,useLayoutEffect:aw,useMemo:dw,useReducer:uv,useRef:iw,useState:function(){return uv(wc)},useDebugValue:dv,useDeferredValue:function(o){var a=Hr();return cn===null?a.memoizedState=o:pw(a,cn.memoizedState,o)},useTransition:function(){var o=uv(wc)[0],a=Hr().memoizedState;return[o,a]},useMutableSource:JS,useSyncExternalStore:QS,useId:hw,unstable_isNewReconciler:!1};function ci(o,a){if(o&&o.defaultProps){a=Q({},a),o=o.defaultProps;for(var d in o)a[d]===void 0&&(a[d]=o[d]);return a}return a}function pv(o,a,d,f){a=o.memoizedState,d=d(f,a),d=d==null?a:Q({},a,d),o.memoizedState=d,o.lanes===0&&(o.updateQueue.baseState=d)}var eh={isMounted:function(o){return(o=o._reactInternals)?ai(o)===o:!1},enqueueSetState:function(o,a,d){o=o._reactInternals;var f=Kn(),y=Xs(o),b=ss(f,y);b.payload=a,d!=null&&(b.callback=d),a=Ys(o,b,y),a!==null&&(hi(a,o,y,f),Vp(a,o,y))},enqueueReplaceState:function(o,a,d){o=o._reactInternals;var f=Kn(),y=Xs(o),b=ss(f,y);b.tag=1,b.payload=a,d!=null&&(b.callback=d),a=Ys(o,b,y),a!==null&&(hi(a,o,y,f),Vp(a,o,y))},enqueueForceUpdate:function(o,a){o=o._reactInternals;var d=Kn(),f=Xs(o),y=ss(d,f);y.tag=2,a!=null&&(y.callback=a),a=Ys(o,y,f),a!==null&&(hi(a,o,f,d),Vp(a,o,f))}};function vw(o,a,d,f,y,b,E){return o=o.stateNode,typeof o.shouldComponentUpdate=="function"?o.shouldComponentUpdate(f,b,E):a.prototype&&a.prototype.isPureReactComponent?!cc(d,f)||!cc(y,b):!0}function yw(o,a,d){var f=!1,y=Hs,b=a.contextType;return typeof b=="object"&&b!==null?b=Wr(b):(y=pr(a)?ta:jn.current,f=a.contextTypes,b=(f=f!=null)?gl(o,y):Hs),a=new a(d,b),o.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,a.updater=eh,o.stateNode=a,a._reactInternals=o,f&&(o=o.stateNode,o.__reactInternalMemoizedUnmaskedChildContext=y,o.__reactInternalMemoizedMaskedChildContext=b),a}function _w(o,a,d,f){o=a.state,typeof a.componentWillReceiveProps=="function"&&a.componentWillReceiveProps(d,f),typeof a.UNSAFE_componentWillReceiveProps=="function"&&a.UNSAFE_componentWillReceiveProps(d,f),a.state!==o&&eh.enqueueReplaceState(a,a.state,null)}function hv(o,a,d,f){var y=o.stateNode;y.props=d,y.state=o.memoizedState,y.refs={},Zg(o);var b=a.contextType;typeof b=="object"&&b!==null?y.context=Wr(b):(b=pr(a)?ta:jn.current,y.context=gl(o,b)),y.state=o.memoizedState,b=a.getDerivedStateFromProps,typeof b=="function"&&(pv(o,a,b,d),y.state=o.memoizedState),typeof a.getDerivedStateFromProps=="function"||typeof y.getSnapshotBeforeUpdate=="function"||typeof y.UNSAFE_componentWillMount!="function"&&typeof y.componentWillMount!="function"||(a=y.state,typeof y.componentWillMount=="function"&&y.componentWillMount(),typeof y.UNSAFE_componentWillMount=="function"&&y.UNSAFE_componentWillMount(),a!==y.state&&eh.enqueueReplaceState(y,y.state,null),Gp(o,d,y,f),y.state=o.memoizedState),typeof y.componentDidMount=="function"&&(o.flags|=4194308)}function El(o,a){try{var d="",f=a;do d+=ge(f),f=f.return;while(f);var y=d}catch(b){y=` 40Error generating stack: `+b.message+` 41`+b.stack}return{value:o,source:a,stack:y,digest:null}}function fv(o,a,d){return{value:o,source:null,stack:d??null,digest:a??null}}function mv(o,a){try{console.error(a.value)}catch(d){setTimeout(function(){throw d})}}var ZN=typeof WeakMap=="function"?WeakMap:Map;function bw(o,a,d){d=ss(-1,d),d.tag=3,d.payload={element:null};var f=a.value;return d.callback=function(){ah||(ah=!0,Av=f),mv(o,a)},d}function xw(o,a,d){d=ss(-1,d),d.tag=3;var f=o.type.getDerivedStateFromError;if(typeof f=="function"){var y=a.value;d.payload=function(){return f(y)},d.callback=function(){mv(o,a)}}var b=o.stateNode;return b!==null&&typeof b.componentDidCatch=="function"&&(d.callback=function(){mv(o,a),typeof f!="function"&&(Js===null?Js=new Set([this]):Js.add(this));var E=a.stack;this.componentDidCatch(a.value,{componentStack:E!==null?E:""})}),d}function Sw(o,a,d){var f=o.pingCache;if(f===null){f=o.pingCache=new ZN;var y=new Set;f.set(a,y)}else y=f.get(a),y===void 0&&(y=new Set,f.set(a,y));y.has(d)||(y.add(d),o=hO.bind(null,o,a,d),a.then(o,o))}function ww(o){do{var a;if((a=o.tag===13)&&(a=o.memoizedState,a=a!==null?a.dehydrated!==null:!0),a)return o;o=o.return}while(o!==null);return null}function Ew(o,a,d,f,y){return(o.mode&1)===0?(o===a?o.flags|=65536:(o.flags|=128,d.flags|=131072,d.flags&=-52805,d.tag===1&&(d.alternate===null?d.tag=17:(a=ss(-1,1),a.tag=2,Ys(d,a,1))),d.lanes|=1),o):(o.flags|=65536,o.lanes=y,o)}var eO=P.ReactCurrentOwner,hr=!1;function Yn(o,a,d,f){a.child=o===null?WS(a,null,d,f):bl(a,o.child,d,f)}function kw(o,a,d,f,y){d=d.render;var b=a.ref;return Sl(a,y),f=ov(o,a,d,f,b,y),d=av(),o!==null&&!hr?(a.updateQueue=o.updateQueue,a.flags&=-2053,o.lanes&=~y,os(o,a,y)):(zt&&d&&qg(a),a.flags|=1,Yn(o,a,f,y),a.child)}function Cw(o,a,d,f,y){if(o===null){var b=d.type;return typeof b=="function"&&!jv(b)&&b.defaultProps===void 0&&d.compare===null&&d.defaultProps===void 0?(a.tag=15,a.type=b,Tw(o,a,b,f,y)):(o=hh(d.type,null,f,a,a.mode,y),o.ref=a.ref,o.return=a,a.child=o)}if(b=o.child,(o.lanes&y)===0){var E=b.memoizedProps;if(d=d.compare,d=d!==null?d:cc,d(E,f)&&o.ref===a.ref)return os(o,a,y)}return a.flags|=1,o=eo(b,f),o.ref=a.ref,o.return=a,a.child=o}function Tw(o,a,d,f,y){if(o!==null){var b=o.memoizedProps;if(cc(b,f)&&o.ref===a.ref)if(hr=!1,a.pendingProps=f=b,(o.lanes&y)!==0)(o.flags&131072)!==0&&(hr=!0);else return a.lanes=o.lanes,os(o,a,y)}return gv(o,a,d,f,y)}function Pw(o,a,d){var f=a.pendingProps,y=f.children,b=o!==null?o.memoizedState:null;if(f.mode==="hidden")if((a.mode&1)===0)a.memoizedState={baseLanes:0,cachePool:null,transitions:null},Rt(Cl,Ir),Ir|=d;else{if((d&1073741824)===0)return o=b!==null?b.baseLanes|d:d,a.lanes=a.childLanes=1073741824,a.memoizedState={baseLanes:o,cachePool:null,transitions:null},a.updateQueue=null,Rt(Cl,Ir),Ir|=o,null;a.memoizedState={baseLanes:0,cachePool:null,transitions:null},f=b!==null?b.baseLanes:d,Rt(Cl,Ir),Ir|=f}else b!==null?(f=b.baseLanes|d,a.memoizedState=null):f=d,Rt(Cl,Ir),Ir|=f;return Yn(o,a,y,d),a.child}function Rw(o,a){var d=a.ref;(o===null&&d!==null||o!==null&&o.ref!==d)&&(a.flags|=512,a.flags|=2097152)}function gv(o,a,d,f,y){var b=pr(d)?ta:jn.current;return b=gl(a,b),Sl(a,y),d=ov(o,a,d,f,b,y),f=av(),o!==null&&!hr?(a.updateQueue=o.updateQueue,a.flags&=-2053,o.lanes&=~y,os(o,a,y)):(zt&&f&&qg(a),a.flags|=1,Yn(o,a,d,y),a.child)}function Aw(o,a,d,f,y){if(pr(d)){var b=!0;Fp(a)}else b=!1;if(Sl(a,y),a.stateNode===null)nh(o,a),yw(a,d,f),hv(a,d,f,y),f=!0;else if(o===null){var E=a.stateNode,M=a.memoizedProps;E.props=M;var F=E.context,J=d.contextType;typeof J=="object"&&J!==null?J=Wr(J):(J=pr(d)?ta:jn.current,J=gl(a,J));var ne=d.getDerivedStateFromProps,oe=typeof ne=="function"||typeof E.getSnapshotBeforeUpdate=="function";oe||typeof E.UNSAFE_componentWillReceiveProps!="function"&&typeof E.componentWillReceiveProps!="function"||(M!==f||F!==J)&&_w(a,E,f,J),Gs=!1;var te=a.memoizedState;E.state=te,Gp(a,f,E,y),F=a.memoizedState,M!==f||te!==F||dr.current||Gs?(typeof ne=="function"&&(pv(a,d,ne,f),F=a.memoizedState),(M=Gs||vw(a,d,M,f,te,F,J))?(oe||typeof E.UNSAFE_componentWillMount!="function"&&typeof E.componentWillMount!="function"||(typeof E.componentWillMount=="function"&&E.componentWillMount(),typeof E.UNSAFE_componentWillMount=="function"&&E.UNSAFE_componentWillMount()),typeof E.componentDidMount=="function"&&(a.flags|=4194308)):(typeof E.componentDidMount=="function"&&(a.flags|=4194308),a.memoizedProps=f,a.memoizedState=F),E.props=f,E.state=F,E.context=J,f=M):(typeof E.componentDidMount=="function"&&(a.flags|=4194308),f=!1)}else{E=a.stateNode,VS(o,a),M=a.memoizedProps,J=a.type===a.elementType?M:ci(a.type,M),E.props=J,oe=a.pendingProps,te=E.context,F=d.contextType,typeof F=="object"&&F!==null?F=Wr(F):(F=pr(d)?ta:jn.current,F=gl(a,F));var ye=d.getDerivedStateFromProps;(ne=typeof ye=="function"||typeof E.getSnapshotBeforeUpdate=="function")||typeof E.UNSAFE_componentWillReceiveProps!="function"&&typeof E.componentWillReceiveProps!="function"||(M!==oe||te!==F)&&_w(a,E,f,F),Gs=!1,te=a.memoizedState,E.state=te,Gp(a,f,E,y);var we=a.memoizedState;M!==oe||te!==we||dr.current||Gs?(typeof ye=="function"&&(pv(a,d,ye,f),we=a.memoizedState),(J=Gs||vw(a,d,J,f,te,we,F)||!1)?(ne||typeof E.UNSAFE_componentWillUpdate!="function"&&typeof E.componentWillUpdate!="function"||(typeof E.componentWillUpdate=="function"&&E.componentWillUpdate(f,we,F),typeof E.UNSAFE_componentWillUpdate=="function"&&E.UNSAFE_componentWillUpdate(f,we,F)),typeof E.componentDidUpdate=="function"&&(a.flags|=4),typeof E.getSnapshotBeforeUpdate=="function"&&(a.flags|=1024)):(typeof E.componentDidUpdate!="function"||M===o.memoizedProps&&te===o.memoizedState||(a.flags|=4),typeof E.getSnapshotBeforeUpdate!="function"||M===o.memoizedProps&&te===o.memoizedState||(a.flags|=1024),a.memoizedProps=f,a.memoizedState=we),E.props=f,E.state=we,E.context=F,f=J):(typeof E.componentDidUpdate!="function"||M===o.memoizedProps&&te===o.memoizedState||(a.flags|=4),typeof E.getSnapshotBeforeUpdate!="function"||M===o.memoizedProps&&te===o.memoizedState||(a.flags|=1024),f=!1)}return vv(o,a,d,f,b,y)}function vv(o,a,d,f,y,b){Rw(o,a);var E=(a.flags&128)!==0;if(!f&&!E)return y&&OS(a,d,!1),os(o,a,b);f=a.stateNode,eO.current=a;var M=E&&typeof d.getDerivedStateFromError!="function"?null:f.render();return a.flags|=1,o!==null&&E?(a.child=bl(a,o.child,null,b),a.child=bl(a,null,M,b)):Yn(o,a,M,b),a.memoizedState=f.state,y&&OS(a,d,!0),a.child}function Iw(o){var a=o.stateNode;a.pendingContext?MS(o,a.pendingContext,a.pendingContext!==a.context):a.context&&MS(o,a.context,!1),ev(o,a.containerInfo)}function Lw(o,a,d,f,y){return _l(),Gg(y),a.flags|=256,Yn(o,a,d,f),a.child}var yv={dehydrated:null,treeContext:null,retryLane:0};function _v(o){return{baseLanes:o,cachePool:null,transitions:null}}function Mw(o,a,d){var f=a.pendingProps,y=Ht.current,b=!1,E=(a.flags&128)!==0,M;if((M=E)||(M=o!==null&&o.memoizedState===null?!1:(y&2)!==0),M?(b=!0,a.flags&=-129):(o===null||o.memoizedState!==null)&&(y|=1),Rt(Ht,y&1),o===null)return Vg(a),o=a.memoizedState,o!==null&&(o=o.dehydrated,o!==null)?((a.mode&1)===0?a.lanes=1:o.data==="$!"?a.lanes=8:a.lanes=1073741824,null):(E=f.children,o=f.fallback,b?(f=a.mode,b=a.child,E={mode:"hidden",children:E},(f&1)===0&&b!==null?(b.childLanes=0,b.pendingProps=E):b=fh(E,f,0,null),o=da(o,f,d,null),b.return=a,o.return=a,b.sibling=o,a.child=b,a.child.memoizedState=_v(d),a.memoizedState=yv,o):bv(a,E));if(y=o.memoizedState,y!==null&&(M=y.dehydrated,M!==null))return tO(o,a,E,f,M,y,d);if(b){b=f.fallback,E=a.mode,y=o.child,M=y.sibling;var F={mode:"hidden",children:f.children};return(E&1)===0&&a.child!==y?(f=a.child,f.childLanes=0,f.pendingProps=F,a.deletions=null):(f=eo(y,F),f.subtreeFlags=y.subtreeFlags&14680064),M!==null?b=eo(M,b):(b=da(b,E,d,null),b.flags|=2),b.return=a,f.return=a,f.sibling=b,a.child=f,f=b,b=a.child,E=o.child.memoizedState,E=E===null?_v(d):{baseLanes:E.baseLanes|d,cachePool:null,transitions:E.transitions},b.memoizedState=E,b.childLanes=o.childLanes&~d,a.memoizedState=yv,f}return b=o.child,o=b.sibling,f=eo(b,{mode:"visible",children:f.children}),(a.mode&1)===0&&(f.lanes=d),f.return=a,f.sibling=null,o!==null&&(d=a.deleti
vendor: 32,535 bytes, line 41
41ons,d===null?(a.deletions=[o],a.flags|=16):d.push(o)),a.child=f,a.memoizedState=null,f}function bv(o,a){return a=fh({mode:"visible",children:a},o.mode,0,null),a.return=o,o.child=a}function th(o,a,d,f){return f!==null&&Gg(f),bl(a,o.child,null,d),o=bv(a,a.pendingProps.children),o.flags|=2,a.memoizedState=null,o}function tO(o,a,d,f,y,b,E){if(d)return a.flags&256?(a.flags&=-257,f=fv(Error(n(422))),th(o,a,E,f)):a.memoizedState!==null?(a.child=o.child,a.flags|=128,null):(b=f.fallback,y=a.mode,f=fh({mode:"visible",children:f.children},y,0,null),b=da(b,y,E,null),b.flags|=2,f.return=a,b.return=a,f.sibling=b,a.child=f,(a.mode&1)!==0&&bl(a,o.child,null,E),a.child.memoizedState=_v(E),a.memoizedState=yv,b);if((a.mode&1)===0)return th(o,a,E,null);if(y.data==="$!"){if(f=y.nextSibling&&y.nextSibling.dataset,f)var M=f.dgst;return f=M,b=Error(n(419)),f=fv(b,f,void 0),th(o,a,E,f)}if(M=(E&o.childLanes)!==0,hr||M){if(f=bn,f!==null){switch(E&-E){case 4:y=2;break;case 16:y=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:y=32;break;case 536870912:y=268435456;break;default:y=0}y=(y&(f.suspendedLanes|E))!==0?0:y,y!==0&&y!==b.retryLane&&(b.retryLane=y,is(o,y),hi(f,o,y,-1))}return Dv(),f=fv(Error(n(421))),th(o,a,E,f)}return y.data==="$?"?(a.flags|=128,a.child=o.child,a=fO.bind(null,o),y._reactRetry=a,null):(o=b.treeContext,Ar=qs(y.nextSibling),Rr=a,zt=!0,ui=null,o!==null&&($r[qr++]=ns,$r[qr++]=rs,$r[qr++]=na,ns=o.id,rs=o.overflow,na=a),a=bv(a,f.children),a.flags|=4096,a)}function Nw(o,a,d){o.lanes|=a;var f=o.alternate;f!==null&&(f.lanes|=a),Qg(o.return,a,d)}function xv(o,a,d,f,y){var b=o.memoizedState;b===null?o.memoizedState={isBackwards:a,rendering:null,renderingStartTime:0,last:f,tail:d,tailMode:y}:(b.isBackwards=a,b.rendering=null,b.renderingStartTime=0,b.last=f,b.tail=d,b.tailMode=y)}function Ow(o,a,d){var f=a.pendingProps,y=f.revealOrder,b=f.tail;if(Yn(o,a,f.children,d),f=Ht.current,(f&2)!==0)f=f&1|2,a.flags|=128;else{if(o!==null&&(o.flags&128)!==0)e:for(o=a.child;o!==null;){if(o.tag===13)o.memoizedState!==null&&Nw(o,d,a);else if(o.tag===19)Nw(o,d,a);else if(o.child!==null){o.child.return=o,o=o.child;continue}if(o===a)break e;for(;o.sibling===null;){if(o.return===null||o.return===a)break e;o=o.return}o.sibling.return=o.return,o=o.sibling}f&=1}if(Rt(Ht,f),(a.mode&1)===0)a.memoizedState=null;else switch(y){case"forwards":for(d=a.child,y=null;d!==null;)o=d.alternate,o!==null&&Yp(o)===null&&(y=d),d=d.sibling;d=y,d===null?(y=a.child,a.child=null):(y=d.sibling,d.sibling=null),xv(a,!1,y,d,b);break;case"backwards":for(d=null,y=a.child,a.child=null;y!==null;){if(o=y.alternate,o!==null&&Yp(o)===null){a.child=y;break}o=y.sibling,y.sibling=d,d=y,y=o}xv(a,!0,d,null,b);break;case"together":xv(a,!1,null,null,void 0);break;default:a.memoizedState=null}return a.child}function nh(o,a){(a.mode&1)===0&&o!==null&&(o.alternate=null,a.alternate=null,a.flags|=2)}function os(o,a,d){if(o!==null&&(a.dependencies=o.dependencies),aa|=a.lanes,(d&a.childLanes)===0)return null;if(o!==null&&a.child!==o.child)throw Error(n(153));if(a.child!==null){for(o=a.child,d=eo(o,o.pendingProps),a.child=d,d.return=a;o.sibling!==null;)o=o.sibling,d=d.sibling=eo(o,o.pendingProps),d.return=a;d.sibling=null}return a.child}function nO(o,a,d){switch(a.tag){case 3:Iw(a),_l();break;case 5:KS(a);break;case 1:pr(a.type)&&Fp(a);break;case 4:ev(a,a.stateNode.containerInfo);break;case 10:var f=a.type._context,y=a.memoizedProps.value;Rt(Wp,f._currentValue),f._currentValue=y;break;case 13:if(f=a.memoizedState,f!==null)return f.dehydrated!==null?(Rt(Ht,Ht.current&1),a.flags|=128,null):(d&a.child.childLanes)!==0?Mw(o,a,d):(Rt(Ht,Ht.current&1),o=os(o,a,d),o!==null?o.sibling:null);Rt(Ht,Ht.current&1);break;case 19:if(f=(d&a.childLanes)!==0,(o.flags&128)!==0){if(f)return Ow(o,a,d);a.flags|=128}if(y=a.memoizedState,y!==null&&(y.rendering=null,y.tail=null,y.lastEffect=null),Rt(Ht,Ht.current),f)break;return null;case 22:case 23:return a.lanes=0,Pw(o,a,d)}return os(o,a,d)}var Dw,Sv,jw,Fw;Dw=function(o,a){for(var d=a.child;d!==null;){if(d.tag===5||d.tag===6)o.appendChild(d.stateNode);else if(d.tag!==4&&d.child!==null){d.child.return=d,d=d.child;continue}if(d===a)break;for(;d.sibling===null;){if(d.return===null||d.return===a)return;d=d.return}d.sibling.return=d.return,d=d.sibling}},Sv=function(){},jw=function(o,a,d,f){var y=o.memoizedProps;if(y!==f){o=a.stateNode,sa(Ni.current);var b=null;switch(d){case"input":y=Cn(o,y),f=Cn(o,f),b=[];break;case"select":y=Q({},y,{value:void 0}),f=Q({},f,{value:void 0}),b=[];break;case"textarea":y=Ae(o,y),f=Ae(o,f),b=[];break;default:typeof y.onClick!="function"&&typeof f.onClick=="function"&&(o.onclick=Op)}Go(d,f);var E;d=null;for(J in y)if(!f.hasOwnProperty(J)&&y.hasOwnProperty(J)&&y[J]!=null)if(J==="style"){var M=y[J];for(E in M)M.hasOwnProperty(E)&&(d||(d={}),d[E]="")}else J!=="dangerouslySetInnerHTML"&&J!=="children"&&J!=="suppressContentEditableWarning"&&J!=="suppressHydrationWarning"&&J!=="autoFocus"&&(i.hasOwnProperty(J)?b||(b=[]):(b=b||[]).push(J,null));for(J in f){var F=f[J];if(M=y!=null?y[J]:void 0,f.hasOwnProperty(J)&&F!==M&&(F!=null||M!=null))if(J==="style")if(M){for(E in M)!M.hasOwnProperty(E)||F&&F.hasOwnProperty(E)||(d||(d={}),d[E]="");for(E in F)F.hasOwnProperty(E)&&M[E]!==F[E]&&(d||(d={}),d[E]=F[E])}else d||(b||(b=[]),b.push(J,d)),d=F;else J==="dangerouslySetInnerHTML"?(F=F?F.__html:void 0,M=M?M.__html:void 0,F!=null&&M!==F&&(b=b||[]).push(J,F)):J==="children"?typeof F!="string"&&typeof F!="number"||(b=b||[]).push(J,""+F):J!=="suppressContentEditableWarning"&&J!=="suppressHydrationWarning"&&(i.hasOwnProperty(J)?(F!=null&&J==="onScroll"&&Nt("scroll",o),b||M===F||(b=[])):(b=b||[]).push(J,F))}d&&(b=b||[]).push("style",d);var J=b;(a.updateQueue=J)&&(a.flags|=4)}},Fw=function(o,a,d,f){d!==f&&(a.flags|=4)};function kc(o,a){if(!zt)switch(o.tailMode){case"hidden":a=o.tail;for(var d=null;a!==null;)a.alternate!==null&&(d=a),a=a.sibling;d===null?o.tail=null:d.sibling=null;break;case"collapsed":d=o.tail;for(var f=null;d!==null;)d.alternate!==null&&(f=d),d=d.sibling;f===null?a||o.tail===null?o.tail=null:o.tail.sibling=null:f.sibling=null}}function Un(o){var a=o.alternate!==null&&o.alternate.child===o.child,d=0,f=0;if(a)for(var y=o.child;y!==null;)d|=y.lanes|y.childLanes,f|=y.subtreeFlags&14680064,f|=y.flags&14680064,y.return=o,y=y.sibling;else for(y=o.child;y!==null;)d|=y.lanes|y.childLanes,f|=y.subtreeFlags,f|=y.flags,y.return=o,y=y.sibling;return o.subtreeFlags|=f,o.childLanes=d,a}function rO(o,a,d){var f=a.pendingProps;switch(Wg(a),a.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Un(a),null;case 1:return pr(a.type)&&jp(),Un(a),null;case 3:return f=a.stateNode,wl(),Ot(dr),Ot(jn),rv(),f.pendingContext&&(f.context=f.pendingContext,f.pendingContext=null),(o===null||o.child===null)&&($p(a)?a.flags|=4:o===null||o.memoizedState.isDehydrated&&(a.flags&256)===0||(a.flags|=1024,ui!==null&&(Mv(ui),ui=null))),Sv(o,a),Un(a),null;case 5:tv(a);var y=sa(bc.current);if(d=a.type,o!==null&&a.stateNode!=null)jw(o,a,d,f,y),o.ref!==a.ref&&(a.flags|=512,a.flags|=2097152);else{if(!f){if(a.stateNode===null)throw Error(n(166));return Un(a),null}if(o=sa(Ni.current),$p(a)){f=a.stateNode,d=a.type;var b=a.memoizedProps;switch(f[Mi]=a,f[mc]=b,o=(a.mode&1)!==0,d){case"dialog":Nt("cancel",f),Nt("close",f);break;case"iframe":case"object":case"embed":Nt("load",f);break;case"video":case"audio":for(y=0;y<pc.length;y++)Nt(pc[y],f);break;case"source":Nt("error",f);break;case"img":case"image":case"link":Nt("error",f),Nt("load",f);break;case"details":Nt("toggle",f);break;case"input":Hn(f,b),Nt("invalid",f);break;case"select":f._wrapperState={wasMultiple:!!b.multiple},Nt("invalid",f);break;case"textarea":Mt(f,b),Nt("invalid",f)}Go(d,b),y=null;for(var E in b)if(b.hasOwnProperty(E)){var M=b[E];E==="children"?typeof M=="string"?f.textContent!==M&&(b.suppressHydrationWarning!==!0&&Np(f.textContent,M,o),y=["children",M]):typeof M=="number"&&f.textContent!==""+M&&(b.suppressHydrationWarning!==!0&&Np(f.textContent,M,o),y=["children",""+M]):i.hasOwnProperty(E)&&M!=null&&E==="onScroll"&&Nt("scroll",f)}switch(d){case"input":vn(f),kr(f,b,!0);break;case"textarea":vn(f),tt(f);break;case"select":case"option":break;default:typeof b.onClick=="function"&&(f.onclick=Op)}f=y,a.updateQueue=f,f!==null&&(a.flags|=4)}else{E=y.nodeType===9?y:y.ownerDocument,o==="http://www.w3.org/1999/xhtml"&&(o=Ri(d)),o==="http://www.w3.org/1999/xhtml"?d==="script"?(o=E.createElement("div"),o.innerHTML="<script><\/script>",o=o.removeChild(o.firstChild)):typeof f.is=="string"?o=E.createElement(d,{is:f.is}):(o=E.createElement(d),d==="select"&&(E=o,f.multiple?E.multiple=!0:f.size&&(E.size=f.size))):o=E.createElementNS(o,d),o[Mi]=a,o[mc]=f,Dw(o,a,!1,!1),a.stateNode=o;e:{switch(E=Yo(d,f),d){case"dialog":Nt("cancel",o),Nt("close",o),y=f;break;case"iframe":case"object":case"embed":Nt("load",o),y=f;break;case"video":case"audio":for(y=0;y<pc.length;y++)Nt(pc[y],o);y=f;break;case"source":Nt("error",o),y=f;break;case"img":case"image":case"link":Nt("error",o),Nt("load",o),y=f;break;case"details":Nt("toggle",o),y=f;break;case"input":Hn(o,f),y=Cn(o,f),Nt("invalid",o);break;case"option":y=f;break;case"select":o._wrapperState={wasMultiple:!!f.multiple},y=Q({},f,{value:void 0}),Nt("invalid",o);break;case"textarea":Mt(o,f),y=Ae(o,f),Nt("invalid",o);break;default:y=f}Go(d,y),M=y;for(b in M)if(M.hasOwnProperty(b)){var F=M[b];b==="style"?Ns(o,F):b==="dangerouslySetInnerHTML"?(F=F?F.__html:void 0,F!=null&&si(o,F)):b==="children"?typeof F=="string"?(d!=="textarea"||F!=="")&&On(o,F):typeof F=="number"&&On(o,""+F):b!=="suppressContentEditableWarning"&&b!=="suppressHydrationWarning"&&b!=="autoFocus"&&(i.hasOwnProperty(b)?F!=null&&b==="onScroll"&&Nt("scroll",o):F!=null&&I(o,b,F,E))}switch(d){case"input":vn(o),kr(o,f,!1);break;case"textarea":vn(o),tt(o);break;case"option":f.value!=null&&o.setAttribute("value",""+Le(f.value));break;case"select":o.multiple=!!f.multiple,b=f.value,b!=null?Lt(o,!!f.multiple,b,!1):f.defaultValue!=null&&Lt(o,!!f.multiple,f.defaultValue,!0);break;default:typeof y.onClick=="function"&&(o.onclick=Op)}switch(d){case"button":case"input":case"select":case"textarea":f=!!f.autoFocus;break e;case"img":f=!0;break e;default:f=!1}}f&&(a.flags|=4)}a.ref!==null&&(a.flags|=512,a.flags|=2097152)}return Un(a),null;case 6:if(o&&a.stateNode!=null)Fw(o,a,o.memoizedProps,f);else{if(typeof f!="string"&&a.stateNode===null)throw Error(n(166));if(d=sa(bc.current),sa(Ni.current),$p(a)){if(f=a.stateNode,d=a.memoizedProps,f[Mi]=a,(b=f.nodeValue!==d)&&(o=Rr,o!==null))switch(o.tag){case 3:Np(f.nodeValue,d,(o.mode&1)!==0);break;case 5:o.memoizedProps.suppressHydrationWarning!==!0&&Np(f.nodeValue,d,(o.mode&1)!==0)}b&&(a.flags|=4)}else f=(d.nodeType===9?d:d.ownerDocument).createTextNode(f),f[Mi]=a,a.stateNode=f}return Un(a),null;case 13:if(Ot(Ht),f=a.memoizedState,o===null||o.memoizedState!==null&&o.memoizedState.dehydrated!==null){if(zt&&Ar!==null&&(a.mode&1)!==0&&(a.flags&128)===0)BS(),_l(),a.flags|=98560,b=!1;else if(b=$p(a),f!==null&&f.dehydrated!==null){if(o===null){if(!b)throw Error(n(318));if(b=a.memoizedState,b=b!==null?b.dehydrated:null,!b)throw Error(n(317));b[Mi]=a}else _l(),(a.flags&128)===0&&(a.memoizedState=null),a.flags|=4;Un(a),b=!1}else ui!==null&&(Mv(ui),ui=null),b=!0;if(!b)return a.flags&65536?a:null}return(a.flags&128)!==0?(a.lanes=d,a):(f=f!==null,f!==(o!==null&&o.memoizedState!==null)&&f&&(a.child.flags|=8192,(a.mode&1)!==0&&(o===null||(Ht.current&1)!==0?dn===0&&(dn=3):Dv())),a.updateQueue!==null&&(a.flags|=4),Un(a),null);case 4:return wl(),Sv(o,a),o===null&&hc(a.stateNode.containerInfo),Un(a),null;case 10:return Jg(a.type._context),Un(a),null;case 17:return pr(a.type)&&jp(),Un(a),null;case 19:if(Ot(Ht),b=a.memoizedState,b===null)return Un(a),null;if(f=(a.flags&128)!==0,E=b.rendering,E===null)if(f)kc(b,!1);else{if(dn!==0||o!==null&&(o.flags&128)!==0)for(o=a.child;o!==null;){if(E=Yp(o),E!==null){for(a.flags|=128,kc(b,!1),f=E.updateQueue,f!==null&&(a.updateQueue=f,a.flags|=4),a.subtreeFlags=0,f=d,d=a.child;d!==null;)b=d,o=f,b.flags&=14680066,E=b.alternate,E===null?(b.childLanes=0,b.lanes=o,b.child=null,b.subtreeFlags=0,b.memoizedProps=null,b.memoizedState=null,b.updateQueue=null,b.dependencies=null,b.stateNode=null):(b.childLanes=E.childLanes,b.lanes=E.lanes,b.child=E.child,b.subtreeFlags=0,b.deletions=null,b.memoizedProps=E.memoizedProps,b.memoizedState=E.memoizedState,b.updateQueue=E.updateQueue,b.type=E.type,o=E.dependencies,b.dependencies=o===null?null:{lanes:o.lanes,firstContext:o.firstContext}),d=d.sibling;return Rt(Ht,Ht.current&1|2),a.child}o=o.sibling}b.tail!==null&&Ee()>Tl&&(a.flags|=128,f=!0,kc(b,!1),a.lanes=4194304)}else{if(!f)if(o=Yp(E),o!==null){if(a.flags|=128,f=!0,d=o.updateQueue,d!==null&&(a.updateQueue=d,a.flags|=4),kc(b,!0),b.tail===null&&b.tailMode==="hidden"&&!E.alternate&&!zt)return Un(a),null}else 2*Ee()-b.renderingStartTime>Tl&&d!==1073741824&&(a.flags|=128,f=!0,kc(b,!1),a.lanes=4194304);b.isBackwards?(E.sibling=a.child,a.child=E):(d=b.last,d!==null?d.sibling=E:a.child=E,b.last=E)}return b.tail!==null?(a=b.tail,b.rendering=a,b.tail=a.sibling,b.renderingStartTime=Ee(),a.sibling=null,d=Ht.current,Rt(Ht,f?d&1|2:d&1),a):(Un(a),null);case 22:case 23:return Ov(),f=a.memoizedState!==null,o!==null&&o.memoizedState!==null!==f&&(a.flags|=8192),f&&(a.mode&1)!==0?(Ir&1073741824)!==0&&(Un(a),a.subtreeFlags&6&&(a.flags|=8192)):Un(a),null;case 24:return null;case 25:return null}throw Error(n(156,a.tag))}function iO(o,a){switch(Wg(a),a.tag){case 1:return pr(a.type)&&jp(),o=a.flags,o&65536?(a.flags=o&-65537|128,a):null;case 3:return wl(),Ot(dr),Ot(jn),rv(),o=a.flags,(o&65536)!==0&&(o&128)===0?(a.flags=o&-65537|128,a):null;case 5:return tv(a),null;case 13:if(Ot(Ht),o=a.memoizedState,o!==null&&o.dehydrated!==null){if(a.alternate===null)throw Error(n(340));_l()}return o=a.flags,o&65536?(a.flags=o&-65537|128,a):null;case 19:return Ot(Ht),null;case 4:return wl(),null;case 10:return Jg(a.type._context),null;case 22:case 23:return Ov(),null;case 24:return null;default:return null}}var rh=!1,zn=!1,sO=typeof WeakSet=="function"?WeakSet:Set,Se=null;function kl(o,a){var d=o.ref;if(d!==null)if(typeof d=="function")try{d(null)}catch(f){Jt(o,a,f)}else d.current=null}function wv(o,a,d){try{d()}catch(f){Jt(o,a,f)}}var Uw=!1;function oO(o,a){if(Og=wp,o=vS(),Tg(o)){if("selectionStart"in o)var d={start:o.selectionStart,end:o.selectionEnd};else e:{d=(d=o.ownerDocument)&&d.defaultView||window;var f=d.getSelection&&d.getSelection();if(f&&f.rangeCount!==0){d=f.anchorNode;var y=f.anchorOffset,b=f.focusNode;f=f.focusOffset;try{d.nodeType,b.nodeType}catch{d=null;break e}var E=0,M=-1,F=-1,J=0,ne=0,oe=o,te=null;t:for(;;){for(var ye;oe!==d||y!==0&&oe.nodeType!==3||(M=E+y),oe!==b||f!==0&&oe.nodeType!==3||(F=E+f),oe.nodeType===3&&(E+=oe.nodeValue.length),(ye=oe.firstChild)!==null;)te=oe,oe=ye;for(;;){if(oe===o)break t;if(te===d&&++J===y&&(M=E),te===b&&++ne===f&&(F=E),(ye=oe.nextSibling)!==null)break;oe=te,te=oe.parentNode}oe=ye}d=M===-1||F===-1?null:{start:M,end:F}}else d=null}d=d||{start:0,end:0}}else d=null;for(Dg={focusedElem:o,selectionRange:d},wp=!1,Se=a;Se!==null;)if(a=Se,o=a.child,(a.subtreeFlags&1028)!==0&&o!==null)o.return=a,Se=o;else for(;Se!==null;){a=Se;try{var we=a.alternate;if((a.flags&1024)!==0)switch(a.tag){case 0:case 11:case 15:break;case 1:if(we!==null){var ke=we.memoizedProps,en=we.memoizedState,H=a.stateNode,z=H.getSnapshotBeforeUpdate(a.elementType===a.type?ke:ci(a.type,ke),en);H.__reactInternalSnapshotBeforeUpdate=z}break;case 3:var V=a.stateNode.containerInfo;V.nodeType===1?V.textContent="":V.nodeType===9&&V.documentElement&&V.removeChild(V.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(n(163))}}catch(ce){Jt(a,a.return,ce)}if(o=a.sibling,o!==null){o.return=a.return,Se=o;break}Se=a.return}return we=Uw,Uw=!1,we}function Cc(o,a,d){var f=a.updateQueue;if(f=f!==null?f.lastEffect:null,f!==null){var y=f=f.next;do{if((y.tag&o)===o){var b=y.destroy;y.destroy=void 0,b!==void 0&&wv(a,d,b)}y=y.next}while(y!==f)}}function ih(o,a){if(a=a.updateQueue,a=a!==null?a.lastEffect:null,a!==null){var d=a=a.next;do{if((d.tag&o)===o){var f=d.create;d.destroy=f()}d=d.next}while(d!==a)}}function Ev(o){var a=o.ref;if(a!==null){var d=o.stateNode;switch(o.tag){case 5:o=d;break;default:o=d}typeof a=="function"?a(o):a.current=o}}function zw(o){var a=o.alternate;a!==null&&(o.alternate=null,zw(a)),o.child=null,o.deletions=null,o.sibling=null,o.tag===5&&(a=o.stateNode,a!==null&&(delete a[Mi],delete a[mc],delete a[zg],delete a[$N],delete a[qN])),o.stateNode=null,o.return=null,o.dependencies=null,o.memoizedProps=null,o.memoizedState=null,o.pendingProps=null,o.stateNode=null,o.updateQueue=null}function Bw(o){return o.tag===5||o.tag===3||o.tag===4}function $w(o){e:for(;;){for(;o.sibling===null;){if(o.return===null||Bw(o.return))return null;o=o.return}for(o.sibling.return=o.return,o=o.sibling;o.tag!==5&&o.tag!==6&&o.tag!==18;){if(o.flags&2||o.child===null||o.tag===4)continue e;o.child.return=o,o=o.child}if(!(o.flags&2))return o.stateNode}}function kv(o,a,d){var f=o.tag;if(f===5||f===6)o=o.stateNode,a?d.nodeType===8?d.parentNode.insertBefore(o,a):d.insertBefore(o,a):(d.nodeType===8?(a=d.parentNode,a.insertBefore(o,d)):(a=d,a.appendChild(o)),d=d._reactRootContainer,d!=null||a.onclick!==null||(a.onclick=Op));else if(f!==4&&(o=o.child,o!==null))for(kv(o,a,d),o=o.sibling;o!==null;)kv(o,a,d),o=o.sibling}function Cv(o,a,d){var f=o.tag;if(f===5||f===6)o=o.stateNode,a?d.insertBefore(o,a):d.appendChild(o);else if(f!==4&&(o=o.child,o!==null))for(Cv(o,a,d),o=o.sibling;o!==null;)Cv(o,a,d),o=o.sibling}var Tn=null,di=!1;function Ks(o,a,d){for(d=d.child;d!==null;)qw(o,a,d),d=d.sibling}function qw(o,a,d){if(Ze&&typeof Ze.onCommitFiberUnmount=="function")try{Ze.onCommitFiberUnmount(lt,d)}catch{}switch(d.tag){case 5:zn||kl(d,a);case 6:var f=Tn,y=di;Tn=null,Ks(o,a,d),Tn=f,di=y,Tn!==null&&(di?(o=Tn,d=d.stateNode,o.nodeType===8?o.parentNode.removeChild(d):o.removeChild(d)):Tn.removeChild(d.stateNode));break;case 18:Tn!==null&&(di?(o=Tn,d=d.stateNode,o.nodeType===8?Ug(o.parentNode,d):o.nodeType===1&&Ug(o,d),ic(o)):Ug(Tn,d.stateNode));break;case 4:f=Tn,y=di,Tn=d.stateNode.containerInfo,di=!0,Ks(o,a,d),Tn=f,di=y;break;case 0:case 11:case 14:case 15:if(!zn&&(f=d.updateQueue,f!==null&&(f=f.lastEffect,f!==null))){y=f=f.next;do{var b=y,E=b.destroy;b=b.tag,E!==void 0&&((b&2)!==0||(b&4)!==0)&&wv(d,a,E),y=y.next}while(y!==f)}Ks(o,a,d);break;case 1:if(!zn&&(kl(d,a),f=d.stateNode,typeof f.componentWillUnmount=="function"))try{f.props=d.memoizedProps,f.state=d.memoizedState,f.componentWillUnmount()}catch(M){Jt(d,a,M)}Ks(o,a,d);break;case 21:Ks(o,a,d);break;case 22:d.mode&1?(zn=(f=zn)||d.memoizedState!==null,Ks(o,a,d),zn=f):Ks(o,a,d);break;default:Ks(o,a,d)}}function Ww(o){var a=o.updateQueue;if(a!==null){o.updateQueue=null;var d=o.stateNode;d===null&&(d=o.stateNode=new sO),a.forEach(function(f){var y=mO.bind(null,o,f);d.has(f)||(d.add(f),f.then(y,y))})}}function pi(o,a){var d=a.deletions;if(d!==null)for(var f=0;f<d.length;f++){var y=d[f];try{var b=o,E=a,M=E;e:for(;M!==null;){switch(M.tag){case 5:Tn=M.stateNode,di=!1;break e;case 3:Tn=M.stateNode.containerInfo,di=!0;break e;case 4:Tn=M.stateNode.containerInfo,di=!0;break e}M=M.return}if(Tn===null)throw Error(n(160));qw(b,E,y),Tn=null,di=!1;var F=y.alternate;F!==null&&(F.return=null),y.return=null}catch(J){Jt(y,a,J)}}if(a.subtreeFlags&12854)for(a=a.child;a!==null;)Hw(a,o),a=a.sibling}function Hw(o,a){var d=o.alternate,f=o.flags;switch(o.tag){case 0:case 11:case 14:case 15:if(pi(a,o),Di(o),f&4){try{Cc(3,o,o.return),ih(3,o)}catch(ke){Jt(o,o.return,ke)}try{Cc(5,o,o.return)}catch(ke){Jt(o,o.return,ke)}}break;case 1:pi(a,o),Di(o),f&512&&d!==null&&kl(d,d.return);break;case 5:if(pi(a,o),Di(o),f&512&&d!==null&&kl(d,d.return),o.flags&32){var y=o.stateNode;try{On(y,"")}catch(ke){Jt(o,o.return,ke)}}if(f&4&&(y=o.stateNode,y!=null)){var b=o.memoizedProps,E=d!==null?d.memoizedProps:b,M=o.type,F=o.updateQueue;if(o.updateQueue=null,F!==null)try{M==="input"&&b.type==="radio"&&b.name!=null&&un(y,b),Yo(M,E);var J=Yo(M,b);for(E=0;E<F.length;E+=2){var ne=F[E],oe=F[E+1];ne==="style"?Ns(y,oe):ne==="dangerouslySetInnerHTML"?si(y,oe):ne==="children"?On(y,oe):I(y,ne,oe,J)}switch(M){case"input":ri(y,b);break;case"textarea":yn(y,b);break;case"select":var te=y._wrapperState.wasMultiple;y._wrapperState.wasMultiple=!!b.multiple;var ye=b.value;ye!=null?Lt(y,!!b.multiple,ye,!1):te!==!!b.multiple&&(b.defaultValue!=null?Lt(y,!!b.multiple,b.defaultValue,!0):Lt(y,!!b.multiple,b.multiple?[]:"",!1))}y[mc]=b}catch(ke){Jt(o,o.return,ke)}}break;case 6:if(pi(a,o),Di(o),f&4){if(o.stateNode===null)throw Error(n(162));y=o.stateNode,b=o.memoizedProps;try{y.nodeValue=b}catch(ke){Jt(o,o.return,ke)}}break;case 3:if(pi(a,o),Di(o),f&4&&d!==null&&d.memoizedState.isDehydrated)try{ic(a.containerInfo)}catch(ke){Jt(o,o.return,ke)}break;case 4:pi(a,o),Di(o);break;case 13:pi(a,o),Di(o),y=o.child,y.flags&8192&&(b=y.memoizedState!==null,y.stateNode.isHidden=b,!b||y.alternate!==null&&y.alternate.memoizedState!==null||(Rv=Ee())),f&4&&Ww(o);break;case 22:if(ne=d!==null&&d.memoizedState!==null,o.mode&1?(zn=(J=zn)||ne,pi(a,o),zn=J):pi(a,o),Di(o),f&8192){if(J=o.memoizedState!==null,(o.stateNode.isHidden=J)&&!ne&&(o.mode&1)!==0)for(Se=o,ne=o.child;ne!==null;){for(oe=Se=ne;Se!==null;){switch(te=Se,ye=te.child,te.tag){case 0:case 11:case 14:case 15:Cc(4,te,te.return);break;case 1:kl(te,te.return);var we=te.stateNode;if(typeof we.componentWillUnmount=="function"){f=te,d=te.return;try{a=f,we.props=a.memoizedProps,we.state=a.memoizedState,we.componentWillUnmount()}catch(ke){Jt(f,d,ke)}}break;case 5:kl(te,te.return);break;case 22:if(te.memoizedState!==null){Yw(oe);continue}}ye!==null?(ye.return=te,Se=ye):Yw(oe)}ne=ne.sibling}e:for(ne=null,oe=o;;){if(oe.tag===5){if(ne===null){ne=oe;try{y=oe.stateNode,J?(b=y.style,typeof b.setProperty=="function"?b.setProperty("display","none","important"):b.display="none"):(M=oe.stateNode,F=oe.memoizedProps.style,E=F!=null&&F.hasOwnProperty("display")?F.display:null,M.style.display=oi("display",E))}catch(ke){Jt(o,o.return,ke)}}}else if(oe.tag===6){if(ne===null)try{oe.stateNode.nodeValue=J?"":oe.memoizedProps}catch(ke){Jt(o,o.return,ke)}}else if((oe.tag!==22&&oe.tag!==23||oe.memoizedState===null||oe===o)&&oe.child!==null){oe.child.return=oe,oe=oe.child;continue}if(oe===o)break e;for(;oe.sibling===null;){if(oe.return===null||oe.return===o)break e;ne===oe&&(ne=null),oe=oe.return}ne===oe&&(ne=null),oe.sibling.return=oe.return,oe=oe.sibling}}break;case 19:pi(a,o),Di(o),f&4&&Ww(o);break;case 21:break;default:pi(a,o),Di(o)}}function Di(o){var a=o.flags;if(a&2){try{e:{for(var d=o.return;d!==null;){if(Bw(d)){var f=d;break e}d=d.return}throw Error(n(160))}switch(f.tag){case 5:var y=f.stateNode;f.flags&32&&(On(y,""),f.flags&=-33);var b=$w(o);Cv(o,b,y);break;case 3:case 4:var E=f.stateNode.containerInfo,M=$w(o);kv(o,M,E);break;default:throw Error(n(161))}}catch(F){Jt(o,o.return,F)}o.flags&=-3}a&4096&&(o.flags&=-4097)}function aO(o,a,d){Se=o,Vw(o)}function Vw(o,a,d){for(var f=(o.mode&1)!==0;Se!==null;){var y=Se,b=y.child;if(y.tag===22&&f){var E=y.memoizedState!==null||rh;if(!E){var M=y.alternate,F=M!==null&&M.memoizedState!==null||zn;M=rh;var J=zn;if(rh=E,(zn=F)&&!J)for(Se=y;Se!==null;)E=Se,F=E.child,E.tag===22&&E.memoizedState!==null?Kw(y):F!==null?(F.return=E,Se=F):Kw(y);for(;b!==null;)Se=b,Vw(b),b=b.sibling;Se=y,rh=M,zn=J}Gw(o)}else(y.subtreeFlags&8772)!==0&&b!==null?(b.return=y,Se=b):Gw(o)}}function Gw(o){for(;Se!==null;){var a=Se;if((a.flags&8772)!==0){var d=a.alternate;try{if((a.flags&8772)!==0)switch(a.tag){case 0:case 11:case 15:zn||ih(5,a);break;case 1:var f=a.stateNode;if(a.flags&4&&!zn)if(d===null)f.componentDidMount();else{var y=a.elementType===a.type?d.memoizedProps:ci(a.type,d.memoizedProps);f.componentDidUpdate(y,d.memoizedState,f.__reactInternalSnapshotBeforeUpdate)}var b=a.updateQueue;b!==null&&YS(a,b,f);break;case 3:var E=a.updateQueue;if(E!==null){if(d=null,a.child!==null)switch(a.child.tag){case 5:d=a.child.stateNode;break;case 1:d=a.child.stateNode}YS(a,E,d)}break;case 5:var M=a.stateNode;if(d===null&&a.flags&4){d=M;var F=a.memoizedProps;switch(a.type){case"button":case"input":case"select":case"textarea":F.autoFocus&&d.focus();break;case"img":F.src&&(d.src=F.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(a.memoizedState===null){var J=a.alternate;if(J!==null){var ne=J.memoizedState;if(ne!==null){var oe=ne.dehydrated;oe!==null&&ic(oe)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(n(163))}zn||a.flags&512&&Ev(a)}catch(te){Jt(a,a.return,te)}}if(a===o){Se=null;break}if(d=a.sibling,d!==null){d.return=a.return,Se=d;break}Se=a.return}}function Yw(o){for(;Se!==null;){var a=Se;if(a===o){Se=null;break}var d=a.sibling;if(d!==null){d.return=a.return,Se=d;break}Se=a.return}}function Kw(o){for(;Se!==null;){var a=Se;try{switch(a.tag){case 0:case 11:case 15:var d=a.return;try{ih(4,a)}catch(F){Jt(a,d,F)}break;case 1:var f=a.stateNode;if(typeof f.componentDidMount=="function"){var y=a.return;try{f.componentDidMount()}catch(F){Jt(a,y,F)}}var b=a.return;try{Ev(a)}catch(F){Jt(a,b,F)}break;case 5:var E=a.return;try{Ev(a)}catch(F){Jt(a,E,F)}}}catch(F){Jt(a,a.return,F)}if(a===o){Se=null;break}var M=a.sibling;if(M!==null){M.return=a.return,Se=M;break}Se=a.return}}var lO=Math.ceil,sh=P.ReactCurrentDispatcher,Tv=P.ReactCurrentOwner,Vr=P.ReactCurrentBatchConfig,ht=0,bn=null,sn=null,Pn=0,Ir=0,Cl=Ws(0),dn=0,Tc=null,aa=0,oh=0,Pv=0,Pc=null,fr=null,Rv=0,Tl=1/0,as=null,ah=!1,Av=null,Js=null,lh=!1,Qs=null,uh=0,Rc=0,Iv=null,ch=-1,dh=0;function Kn(){return(ht&6)!==0?Ee():ch!==-1?ch:ch=Ee()}function Xs(o){return(o.mode&1)===0?1:(ht&2)!==0&&Pn!==0?Pn&-Pn:HN.transition!==null?(dh===0&&(dh=$0()),dh):(o=xt,o!==0||(o=window.event,o=o===void 0?16:Q0(o.type)),o)}function hi(o,a,d,f){if(50<Rc)throw Rc=0,Iv=null,Error(n(185));Zu(o,d,f),((ht&2)===0||o!==bn)&&(o===bn&&((ht&2)===0&&(oh|=d),dn===4&&Zs(o,Pn)),mr(o,f),d===1&&ht===0&&(a.mode&1)===0&&(Tl=Ee()+500,Up&&Vs()))}function mr(o,a){var d=o.callbackNode;HM(o,a);var f=ol(o,o===bn?Pn:0);if(f===0)d!==null&&ee(d),o.callbackNode=null,o.callbackPriority=0;else if(a=f&-f,o.callbackPriority!==a){if(d!=null&&ee(d),a===1)o.tag===0?WN(Qw.bind(null,o)):DS(Qw.bind(null,o)),zN(function(){(ht&6)===0&&Vs()}),d=null;else{switch(q0(f)){case 1:d=Me;break;case 4:d=dt;break;case 16:d=st;break;case 536870912:d=wt;break;default:d=st}d=sE(d,Jw.bind(null,o))}o.callbackPriority=a,o.callbackNode=d}}function Jw(o,a){if(ch=-1,dh=0,(ht&6)!==0)throw Error(n(327));var d=o.callbackNode;if(Pl()&&o.callbackNode!==d)return null;var f=ol(o,o===bn?Pn:0);if(f===0)return null;if((f&30)!==0||(f&o.expiredLanes)!==0||a)a=ph(o,f);else{a=f;var y=ht;ht|=2;var b=Zw();(bn!==o||Pn!==a)&&(as=null,Tl=Ee()+500,ua(o,a));do try{dO();break}catch(M){Xw(o,M)}while(!0);Kg(),sh.current=b,ht=y,sn!==null?a=0:(bn=null,Pn=0,a=dn)}if(a!==0){if(a===2&&(y=dg(o),y!==0&&(f=y,a=Lv(o,y))),a===1)throw d=Tc,ua(o,0),Zs(o,f),mr(o,Ee()),d;if(a===6)Zs(o,f);else{if(y=o.current.alternate,(f&30)===0&&!uO(y)&&(a=ph(o,f),a===2&&(b=dg(o),b!==0&&(f=b,a=Lv(o,b))),a===1))throw d=Tc,ua(o,0),Zs(o,f),mr(o,Ee()),d;switch(o.finishedWork=y,o.finishedLanes=f,a){case 0:case 1:throw Error(n(345));case 2:ca(o,fr,as);break;case 3:if(Zs(o,f),(f&130023424)===f&&(a=Rv+500-Ee(),10<a)){if(ol(o,0)!==0)break;if(y=o.suspendedLanes,(y&f)!==f){Kn(),o.pingedLanes|=o.suspendedLanes&y;break}o.timeoutHandle=Fg(ca.bind(null,o,fr,as),a);break}ca(o,fr,as);break;case 4:if(Zs(o,f),(f&4194240)===f)break;for(a=o.eventTimes,y=-1;0<f;){var E=31-kt(f);b=1<<E,E=a[E],E>y&&(y=E),f&=~b}if(f=y,f=Ee()-f,f=(120>f?120:480>f?480:1080>f?1080:1920>f?1920:3e3>f?3e3:4320>f?4320:1960*lO(f/1960))-f,10<f){o.timeoutHandle=Fg(ca.bind(null,o,fr,as),f);break}ca(o,fr,as);break;case 5:ca(o,fr,as);break;default:throw Error(n(329))}}}return mr(o,Ee()),o.callbackNode===d?Jw.bind(null,o):null}function Lv(o,a){var d=Pc;return o.current.memoizedState.isDehydrated&&(ua(o,a).flags|=256),o=ph(o,a),o!==2&&(a=fr,fr=d,a!==null&&Mv(a)),o}function Mv(o){fr===null?fr=o:fr.push.apply(fr,o)}function uO(o){for(var a=o;;){if(a.flags&16384){var d=a.updateQueue;if(d!==null&&(d=d.stores,d!==null))for(var f=0;f<d.length;f++){var y=d[f],b=y.getSnapshot;y=y.value;try{if(!li(b(),y))return!1}catch{return!1}}}if(d=a.child,a.subtreeFlags&16384&&d!==null)d.return=a,a=d;else{if(a===o)break;for(;a.sibling===null;){if(a.return===null||a.return===o)return!0;a=a.return}a.sibling.return=a.return,a=a.sibling}}return!0}function Zs(o,a){for(a&=~Pv,a&=~oh,o.suspendedLanes|=a,o.pingedLanes&=~a,o=o.expirationTimes;0<a;){var d=31-kt(a),f=1<<d;o[d]=-1,a&=~f}}function Qw(o){if((ht&6)!==0)throw Error(n(327));Pl();var a=ol(o,0);if((a&1)===0)return mr(o,Ee()),null;var d=ph(o,a);if(o.tag!==0&&d===2){var f=dg(o);f!==0&&(a=f,d=Lv(o,f))}if(d===1)throw d=Tc,ua(o,0),Zs(o,a),mr(o,Ee()),d;if(d===6)throw Error(n(345));return o.finishedWork=o.current.alternate,o.finishedLanes=a,ca(o,fr,as),mr(o,Ee()),null}function Nv(o,a){var d=ht;ht|=1;try{return o(a)}finally{ht=d,ht===0&&(Tl=Ee()+500,Up&&Vs())}}function la(o){Qs!==null&&Qs.tag===0&&(ht&6)===0&&Pl();var a=ht;ht|=1;var d=Vr.transition,f=xt;try{if(Vr.transition=null,xt=1,o)return o()}finally{xt=f,Vr.transition=d,ht=a,(ht&6)===0&&Vs()}}function Ov(){Ir=Cl.current,Ot(Cl)}function ua(o,a){o.finishedWork=null,o.finishedLanes=0;var d=o.timeoutHandle;if(d!==-1&&(o.timeoutHandle=-1,UN(d)),sn!==null)for(d=sn.return;d!==null;){var f=d;switch(Wg(f),f.tag){case 1:f=f.type.childContextTypes,f!=null&&jp();break;case 3:wl(),Ot(dr),Ot(jn),rv();break;case 5:tv(f);break;case 4:wl();break;case 13:Ot(Ht);break;case 19:Ot(Ht);break;case 10:Jg(f.type._context);break;case 22:case 23:Ov()}d=d.return}if(bn=o,sn=o=eo(o.current,null),Pn=Ir=a,dn=0,Tc=null,Pv=oh=aa=0,fr=Pc=null,ia!==null){for(a=0;a<ia.length;a++)if(d=ia[a],f=d.interleaved,f!==null){d.interleaved=null;var y=f.next,b=d.pending;if(b!==null){var E=b.next;b.next=y,f.next=E}d.pending=f}ia=null}return o}function Xw(o,a){do{var d=sn;try{if(Kg(),Kp.current=Zp,Jp){for(var f=Vt.memoizedState;f!==null;){var y=f.queue;y!==null&&(y.pending=null),f=f.next}Jp=!1}if(oa=0,_n=cn=Vt=null,xc=!1,Sc=0,Tv.current=null,d===null||d.return===null){dn=1,Tc=a,sn=null;break}e:{var b=o,E=d.return,M=d,F=a;if(a=Pn,M.flags|=32768,F!==null&&typeof F=="object"&&typeof F.then=="function"){var J=F,ne=M,oe=ne.tag;if((ne.mode&1)===0&&(oe===0||oe===11||oe===15)){var te=ne.alternate;te?(ne.updateQueue=te.updateQueue,ne.memoizedState=te.memoizedState,ne.lanes=te.lanes):(ne.updateQueue=null,ne.memoizedState=null)}var ye=ww(E);if(ye!==null){ye.flags&=-257,Ew(ye,E,M,b,a),ye.mode&1&&Sw(b,J,a),a=ye,F=J;var we=a.updateQueue;if(we===null){var ke=new Set;ke.add(F),a.updateQueue=ke}else we.add(F);break e}else{if((a&1)===0){Sw(b,J,a),Dv();break e}F=Error(n(426))}}else if(zt&&M.mode&1){var en=ww(E);if(en!==null){(en.flags&65536)===0&&(en.flags|=256),Ew(en,E,M,b,a),Gg(El(F,M));break e}}b=F=El(F,M),dn!==4&&(dn=2),Pc===null?Pc=[b]:Pc.push(b),b=E;do{switch(b.tag){case 3:b.flags|=65536,a&=-a,b.lanes|=a;var H=bw(b,F,a);GS(b,H);break e;case 1:M=F;var z=b.type,V=b.stateNode;if((b.flags&128)===0&&(typeof z.getDerivedStateFromError=="function"||V!==null&&typeof V.componentDidCatch=="function"&&(Js===null||!Js.has(V)))){b.flags|=65536,a&=-a,b.lanes|=a;var ce=xw(b,M,a);GS(b,ce);break e}}b=b.return}while(b!==null)}tE(d)}catch(Ce){a=Ce,sn===d&&d!==null&&(sn=d=d.return);continue}break}while(!0)}function Zw(){var o=sh.current;return sh.current=Zp,o===null?Zp:o}function Dv(){(dn===0||dn===3||dn===2)&&(dn=4),bn===null||(aa&268435455)===0&&(oh&268435455)===0||Zs(bn,Pn)}function ph(o,a){var d=ht;ht|=2;var f=Zw();(bn!==o||Pn!==a)&&(as=null,ua(o,a));do try{cO();break}catch(y){Xw(o,y)}while(!0);if(Kg(),ht=d,sh.current=f,sn!==null)throw Error(n(261));return bn=null,Pn=0,dn}function cO(){for(;sn!==null;)eE(sn)}function dO(){for(;sn!==null&&!pe();)eE(sn)}function eE(o){var a=iE(o.alternate,o,Ir);o.memoizedProps=o.pendingProps,a===null?tE(o):sn=a,Tv.current=null}function tE(o){var a=o;do{var d=a.alternate;if(o=a.return,(a.flags&32768)===0){if(d=rO(d,a,Ir),d!==null){sn=d;return}}else{if(d=iO(d,a),d!==null){d.flags&=32767,sn=d;return}if(o!==null)o.flags|=32768,o.subtreeFlags=0,o.deletions=null;else{dn=6,sn=null;return}}if(a=a.sibling,a!==null){sn=a;return}sn=a=o}while(a!==null);
vendor: 4,321 bytes, line 41
41dn===0&&(dn=5)}function ca(o,a,d){var f=xt,y=Vr.transition;try{Vr.transition=null,xt=1,pO(o,a,d,f)}finally{Vr.transition=y,xt=f}return null}function pO(o,a,d,f){do Pl();while(Qs!==null);if((ht&6)!==0)throw Error(n(327));d=o.finishedWork;var y=o.finishedLanes;if(d===null)return null;if(o.finishedWork=null,o.finishedLanes=0,d===o.current)throw Error(n(177));o.callbackNode=null,o.callbackPriority=0;var b=d.lanes|d.childLanes;if(VM(o,b),o===bn&&(sn=bn=null,Pn=0),(d.subtreeFlags&2064)===0&&(d.flags&2064)===0||lh||(lh=!0,sE(st,function(){return Pl(),null})),b=(d.flags&15990)!==0,(d.subtreeFlags&15990)!==0||b){b=Vr.transition,Vr.transition=null;var E=xt;xt=1;var M=ht;ht|=4,Tv.current=null,oO(o,d),Hw(d,o),LN(Dg),wp=!!Og,Dg=Og=null,o.current=d,aO(d),xe(),ht=M,xt=E,Vr.transition=b}else o.current=d;if(lh&&(lh=!1,Qs=o,uh=y),b=o.pendingLanes,b===0&&(Js=null),rn(d.stateNode),mr(o,Ee()),a!==null)for(f=o.onRecoverableError,d=0;d<a.length;d++)y=a[d],f(y.value,{componentStack:y.stack,digest:y.digest});if(ah)throw ah=!1,o=Av,Av=null,o;return(uh&1)!==0&&o.tag!==0&&Pl(),b=o.pendingLanes,(b&1)!==0?o===Iv?Rc++:(Rc=0,Iv=o):Rc=0,Vs(),null}function Pl(){if(Qs!==null){var o=q0(uh),a=Vr.transition,d=xt;try{if(Vr.transition=null,xt=16>o?16:o,Qs===null)var f=!1;else{if(o=Qs,Qs=null,uh=0,(ht&6)!==0)throw Error(n(331));var y=ht;for(ht|=4,Se=o.current;Se!==null;){var b=Se,E=b.child;if((Se.flags&16)!==0){var M=b.deletions;if(M!==null){for(var F=0;F<M.length;F++){var J=M[F];for(Se=J;Se!==null;){var ne=Se;switch(ne.tag){case 0:case 11:case 15:Cc(8,ne,b)}var oe=ne.child;if(oe!==null)oe.return=ne,Se=oe;else for(;Se!==null;){ne=Se;var te=ne.sibling,ye=ne.return;if(zw(ne),ne===J){Se=null;break}if(te!==null){te.return=ye,Se=te;break}Se=ye}}}var we=b.alternate;if(we!==null){var ke=we.child;if(ke!==null){we.child=null;do{var en=ke.sibling;ke.sibling=null,ke=en}while(ke!==null)}}Se=b}}if((b.subtreeFlags&2064)!==0&&E!==null)E.return=b,Se=E;else e:for(;Se!==null;){if(b=Se,(b.flags&2048)!==0)switch(b.tag){case 0:case 11:case 15:Cc(9,b,b.return)}var H=b.sibling;if(H!==null){H.return=b.return,Se=H;break e}Se=b.return}}var z=o.current;for(Se=z;Se!==null;){E=Se;var V=E.child;if((E.subtreeFlags&2064)!==0&&V!==null)V.return=E,Se=V;else e:for(E=z;Se!==null;){if(M=Se,(M.flags&2048)!==0)try{switch(M.tag){case 0:case 11:case 15:ih(9,M)}}catch(Ce){Jt(M,M.return,Ce)}if(M===E){Se=null;break e}var ce=M.sibling;if(ce!==null){ce.return=M.return,Se=ce;break e}Se=M.return}}if(ht=y,Vs(),Ze&&typeof Ze.onPostCommitFiberRoot=="function")try{Ze.onPostCommitFiberRoot(lt,o)}catch{}f=!0}return f}finally{xt=d,Vr.transition=a}}return!1}function nE(o,a,d){a=El(d,a),a=bw(o,a,1),o=Ys(o,a,1),a=Kn(),o!==null&&(Zu(o,1,a),mr(o,a))}function Jt(o,a,d){if(o.tag===3)nE(o,o,d);else for(;a!==null;){if(a.tag===3){nE(a,o,d);break}else if(a.tag===1){var f=a.stateNode;if(typeof a.type.getDerivedStateFromError=="function"||typeof f.componentDidCatch=="function"&&(Js===null||!Js.has(f))){o=El(d,o),o=xw(a,o,1),a=Ys(a,o,1),o=Kn(),a!==null&&(Zu(a,1,o),mr(a,o));break}}a=a.return}}function hO(o,a,d){var f=o.pingCache;f!==null&&f.delete(a),a=Kn(),o.pingedLanes|=o.suspendedLanes&d,bn===o&&(Pn&d)===d&&(dn===4||dn===3&&(Pn&130023424)===Pn&&500>Ee()-Rv?ua(o,0):Pv|=d),mr(o,a)}function rE(o,a){a===0&&((o.mode&1)===0?a=1:(a=Zo,Zo<<=1,(Zo&130023424)===0&&(Zo=4194304)));var d=Kn();o=is(o,a),o!==null&&(Zu(o,a,d),mr(o,d))}function fO(o){var a=o.memoizedState,d=0;a!==null&&(d=a.retryLane),rE(o,d)}function mO(o,a){var d=0;switch(o.tag){case 13:var f=o.stateNode,y=o.memoizedState;y!==null&&(d=y.retryLane);break;case 19:f=o.stateNode;break;default:throw Error(n(314))}f!==null&&f.delete(a),rE(o,d)}var iE;iE=function(o,a,d){if(o!==null)if(o.memoizedProps!==a.pendingProps||dr.current)hr=!0;else{if((o.lanes&d)===0&&(a.flags&128)===0)return hr=!1,nO(o,a,d);hr=(o.flags&131072)!==0}else hr=!1,zt&&(a.flags&1048576)!==0&&jS(a,Bp,a.index);switch(a.lanes=0,a.tag){case 2:var f=a.type;nh(o,a),o=a.pendingProps;var y=gl(a,jn.current);Sl(a,d),y=ov(null,a,f,o,y,d);var b=av();return a.flags|=1,typeof y=="object"&&y!==null&&typeof y.render=="function"&&y.$$typeof===void 0?(a.tag=1,a.memoizedState=null,a.updateQueue=null,pr(f)?(b=!0,Fp(a)):b=!1,a.memoizedState=y.state!==null&&y.state!==void 0?y.state:null,Zg(a),y.updater=eh,a.stateNode=y,y._reactInternals=a,hv(a,f,o,d),a=vv
vendor: 10,397 bytes, line 41
41(null,a,f,!0,b,d)):(a.tag=0,zt&&b&&qg(a),Yn(null,a,y,d),a=a.child),a;case 16:f=a.elementType;e:{switch(nh(o,a),o=a.pendingProps,y=f._init,f=y(f._payload),a.type=f,y=a.tag=vO(f),o=ci(f,o),y){case 0:a=gv(null,a,f,o,d);break e;case 1:a=Aw(null,a,f,o,d);break e;case 11:a=kw(null,a,f,o,d);break e;case 14:a=Cw(null,a,f,ci(f.type,o),d);break e}throw Error(n(306,f,""))}return a;case 0:return f=a.type,y=a.pendingProps,y=a.elementType===f?y:ci(f,y),gv(o,a,f,y,d);case 1:return f=a.type,y=a.pendingProps,y=a.elementType===f?y:ci(f,y),Aw(o,a,f,y,d);case 3:e:{if(Iw(a),o===null)throw Error(n(387));f=a.pendingProps,b=a.memoizedState,y=b.element,VS(o,a),Gp(a,f,null,d);var E=a.memoizedState;if(f=E.element,b.isDehydrated)if(b={element:f,isDehydrated:!1,cache:E.cache,pendingSuspenseBoundaries:E.pendingSuspenseBoundaries,transitions:E.transitions},a.updateQueue.baseState=b,a.memoizedState=b,a.flags&256){y=El(Error(n(423)),a),a=Lw(o,a,f,d,y);break e}else if(f!==y){y=El(Error(n(424)),a),a=Lw(o,a,f,d,y);break e}else for(Ar=qs(a.stateNode.containerInfo.firstChild),Rr=a,zt=!0,ui=null,d=WS(a,null,f,d),a.child=d;d;)d.flags=d.flags&-3|4096,d=d.sibling;else{if(_l(),f===y){a=os(o,a,d);break e}Yn(o,a,f,d)}a=a.child}return a;case 5:return KS(a),o===null&&Vg(a),f=a.type,y=a.pendingProps,b=o!==null?o.memoizedProps:null,E=y.children,jg(f,y)?E=null:b!==null&&jg(f,b)&&(a.flags|=32),Rw(o,a),Yn(o,a,E,d),a.child;case 6:return o===null&&Vg(a),null;case 13:return Mw(o,a,d);case 4:return ev(a,a.stateNode.containerInfo),f=a.pendingProps,o===null?a.child=bl(a,null,f,d):Yn(o,a,f,d),a.child;case 11:return f=a.type,y=a.pendingProps,y=a.elementType===f?y:ci(f,y),kw(o,a,f,y,d);case 7:return Yn(o,a,a.pendingProps,d),a.child;case 8:return Yn(o,a,a.pendingProps.children,d),a.child;case 12:return Yn(o,a,a.pendingProps.children,d),a.child;case 10:e:{if(f=a.type._context,y=a.pendingProps,b=a.memoizedProps,E=y.value,Rt(Wp,f._currentValue),f._currentValue=E,b!==null)if(li(b.value,E)){if(b.children===y.children&&!dr.current){a=os(o,a,d);break e}}else for(b=a.child,b!==null&&(b.return=a);b!==null;){var M=b.dependencies;if(M!==null){E=b.child;for(var F=M.firstContext;F!==null;){if(F.context===f){if(b.tag===1){F=ss(-1,d&-d),F.tag=2;var J=b.updateQueue;if(J!==null){J=J.shared;var ne=J.pending;ne===null?F.next=F:(F.next=ne.next,ne.next=F),J.pending=F}}b.lanes|=d,F=b.alternate,F!==null&&(F.lanes|=d),Qg(b.return,d,a),M.lanes|=d;break}F=F.next}}else if(b.tag===10)E=b.type===a.type?null:b.child;else if(b.tag===18){if(E=b.return,E===null)throw Error(n(341));E.lanes|=d,M=E.alternate,M!==null&&(M.lanes|=d),Qg(E,d,a),E=b.sibling}else E=b.child;if(E!==null)E.return=b;else for(E=b;E!==null;){if(E===a){E=null;break}if(b=E.sibling,b!==null){b.return=E.return,E=b;break}E=E.return}b=E}Yn(o,a,y.children,d),a=a.child}return a;case 9:return y=a.type,f=a.pendingProps.children,Sl(a,d),y=Wr(y),f=f(y),a.flags|=1,Yn(o,a,f,d),a.child;case 14:return f=a.type,y=ci(f,a.pendingProps),y=ci(f.type,y),Cw(o,a,f,y,d);case 15:return Tw(o,a,a.type,a.pendingProps,d);case 17:return f=a.type,y=a.pendingProps,y=a.elementType===f?y:ci(f,y),nh(o,a),a.tag=1,pr(f)?(o=!0,Fp(a)):o=!1,Sl(a,d),yw(a,f,y),hv(a,f,y,d),vv(null,a,f,!0,o,d);case 19:return Ow(o,a,d);case 22:return Pw(o,a,d)}throw Error(n(156,a.tag))};function sE(o,a){return Ds(o,a)}function gO(o,a,d,f){this.tag=o,this.key=d,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=a,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=f,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Gr(o,a,d,f){return new gO(o,a,d,f)}function jv(o){return o=o.prototype,!(!o||!o.isReactComponent)}function vO(o){if(typeof o=="function")return jv(o)?1:0;if(o!=null){if(o=o.$$typeof,o===q)return 11;if(o===ie)return 14}return 2}function eo(o,a){var d=o.alternate;return d===null?(d=Gr(o.tag,a,o.key,o.mode),d.elementType=o.elementType,d.type=o.type,d.stateNode=o.stateNode,d.alternate=o,o.alternate=d):(d.pendingProps=a,d.type=o.type,d.flags=0,d.subtreeFlags=0,d.deletions=null),d.flags=o.flags&14680064,d.childLanes=o.childLanes,d.lanes=o.lanes,d.child=o.child,d.memoizedProps=o.memoizedProps,d.memoizedState=o.memoizedState,d.updateQueue=o.updateQueue,a=o.dependencies,d.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext},d.sibling=o.sibling,d.index=o.index,d.ref=o.ref,d}function hh(o,a,d,f,y,b){var E=2;if(f=o,typeof o=="function")jv(o)&&(E=1);else if(typeof o=="string")E=5;else e:switch(o){case T:return da(d.children,y,b,a);case L:E=8,y|=8;break;case O:return o=Gr(12,d,a,y|2),o.elementType=O,o.lanes=b,o;case G:return o=Gr(13,d,a,y),o.elementType=G,o.lanes=b,o;case W:return o=Gr(19,d,a,y),o.elementType=W,o.lanes=b,o;case de:return fh(d,y,b,a);default:if(typeof o=="object"&&o!==null)switch(o.$$typeof){case j:E=10;break e;case B:E=9;break e;case q:E=11;break e;case ie:E=14;break e;case se:E=16,f=null;break e}throw Error(n(130,o==null?o:typeof o,""))}return a=Gr(E,d,a,y),a.elementType=o,a.type=f,a.lanes=b,a}function da(o,a,d,f){return o=Gr(7,o,f,a),o.lanes=d,o}function fh(o,a,d,f){return o=Gr(22,o,f,a),o.elementType=de,o.lanes=d,o.stateNode={isHidden:!1},o}function Fv(o,a,d){return o=Gr(6,o,null,a),o.lanes=d,o}function Uv(o,a,d){return a=Gr(4,o.children!==null?o.children:[],o.key,a),a.lanes=d,a.stateNode={containerInfo:o.containerInfo,pendingChildren:null,implementation:o.implementation},a}function yO(o,a,d,f,y){this.tag=a,this.containerInfo=o,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=pg(0),this.expirationTimes=pg(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=pg(0),this.identifierPrefix=f,this.onRecoverableError=y,this.mutableSourceEagerHydrationData=null}function zv(o,a,d,f,y,b,E,M,F){return o=new yO(o,a,d,M,F),a===1?(a=1,b===!0&&(a|=8)):a=0,b=Gr(3,null,null,a),o.current=b,b.stateNode=o,b.memoizedState={element:f,isDehydrated:d,cache:null,transitions:null,pendingSuspenseBoundaries:null},Zg(b),o}function _O(o,a,d){var f=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:N,key:f==null?null:""+f,children:o,containerInfo:a,implementation:d}}function oE(o){if(!o)return Hs;o=o._reactInternals;e:{if(ai(o)!==o||o.tag!==1)throw Error(n(170));var a=o;do{switch(a.tag){case 3:a=a.stateNode.context;break e;case 1:if(pr(a.type)){a=a.stateNode.__reactInternalMemoizedMergedChildContext;break e}}a=a.return}while(a!==null);throw Error(n(171))}if(o.tag===1){var d=o.type;if(pr(d))return NS(o,d,a)}return a}function aE(o,a,d,f,y,b,E,M,F){return o=zv(d,f,!0,o,y,b,E,M,F),o.context=oE(null),d=o.current,f=Kn(),y=Xs(d),b=ss(f,y),b.callback=a??null,Ys(d,b,y),o.current.lanes=y,Zu(o,y,f),mr(o,f),o}function mh(o,a,d,f){var y=a.current,b=Kn(),E=Xs(y);return d=oE(d),a.context===null?a.context=d:a.pendingContext=d,a=ss(b,E),a.payload={element:o},f=f===void 0?null:f,f!==null&&(a.callback=f),o=Ys(y,a,E),o!==null&&(hi(o,y,E,b),Vp(o,y,E)),E}function gh(o){if(o=o.current,!o.child)return null;switch(o.child.tag){case 5:return o.child.stateNode;default:return o.child.stateNode}}function lE(o,a){if(o=o.memoizedState,o!==null&&o.dehydrated!==null){var d=o.retryLane;o.retryLane=d!==0&&d<a?d:a}}function Bv(o,a){lE(o,a),(o=o.alternate)&&lE(o,a)}function bO(){return null}var uE=typeof reportError=="function"?reportError:function(o){console.error(o)};function $v(o){this._internalRoot=o}vh.prototype.render=$v.prototype.render=function(o){var a=this._internalRoot;if(a===null)throw Error(n(409));mh(o,a,null,null)},vh.prototype.unmount=$v.prototype.unmount=function(){var o=this._internalRoot;if(o!==null){this._internalRoot=null;var a=o.containerInfo;la(function(){mh(null,o,null,null)}),a[es]=null}};function vh(o){this._internalRoot=o}vh.prototype.unstable_scheduleHydration=function(o){if(o){var a=V0();o={blockedOn:null,target:o,priority:a};for(var d=0;d<zs.length&&a!==0&&a<zs[d].priority;d++);zs.splice(d,0,o),d===0&&K0(o)}};function qv(o){return!(!o||o.nodeType!==1&&o.nodeType!==9&&o.nodeType!==11)}function yh(o){return!(!o||o.nodeType!==1&&o.nodeType!==9&&o.nodeType!==11&&(o.nodeType!==8||o.nodeValue!==" react-mount-point-unstable "))}function cE(){}function xO(o,a,d,f,y){if(y){if(typeof f=="function"){var b=f;f=function(){var J=gh(E);b.call(J)}}var E=aE(a,f,o,0,null,!1,!1,"",cE);return o._reactRootContainer=E,o[es]=E.current,hc(o.nodeType===8?o.parentNode:o),la(),E}for(;y=o.lastChild;)o.removeChild(y);if(typeof f=="function"){var M=f;f=function(){var J=gh(F);M.call(J)}}var F=zv(o,0,!1,null,null,!1,!1,"",cE);return o._reactRootContainer=F,o[es]=F.current,hc(o.nodeType===8?o.parentNode:o),la(function(){mh(a,F,d,f)}),F}function _h(o,a,d,f,y){var b=d._reactRootContainer;if(b){var E=b;if(typeof y=="function"){var M=y;y=function(){var F=gh(E);M.call(F)}}mh(a,E,o,y)}else E=xO(d,a,o,y,f);return gh(E)}W0=function(o){switch(o.tag){case 3:var a=o.stateNode;if(a.current.memoizedState.isDehydrated){var d=Li(a.pendingLanes);d!==0&&(hg(a,d|1),mr(a,Ee()),(ht&6)===0&&(Tl=Ee()+500,Vs()))}break;case 13:la(function(){var f=is(o,1);if(f!==null){var y=Kn();hi(f,o,1,y)}}),Bv(o,1)}},fg=function(o){if(o.tag===13){var a=is(o,134217728);if(a!==null){var d=Kn();hi(a,o,134217728,d)}Bv(o,134217728)}},H0=function(o){if(o.tag===13){var a=Xs(o),d=is(o,a);if(d!==null){var f=Kn();hi(d,o,a,f)}Bv(o,a)}},V0=function(){return xt},G0=function(o,a){var d=xt;try{return xt=o,a()}finally{xt=d}},Yu=function(o,a,d){switch(a){case"input":if(ri(o,d),a=d.name,d.type==="radio"&&a!=null){for(d=o;d.parentNode;)d=d.parentNode;for(d=d.querySelectorAll("input[name="+JSON.stringify(""+a)+'][type="radio"]'),a=0;a<d.length;a++){var f=d[a];if(f!==o&&f.form===o.form){var y=Dp(f);if(!y)throw Error(n(90));ln(f),ri(f,y)}}}break;case"textarea":yn(o,d);break;case"select":a=d.value,a!=null&&Lt(o,!!d.multiple,a,!1)}},Br=Nv,gp=la;var SO={usingClientEntryPoint:!1,Events:[gc,fl,Dp,ur,Ku,Nv]},Ac={findFiberByHostInstance:ea,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},wO={bundleType:Ac.bundleType,version:Ac.version,rendererPackageName:Ac.rendererPackageName,rendererConfig:Ac.rendererConfig,overrideHookState:null,overri
41deHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:P.ReactCurrentDispatcher,findHostInstanceByFiber:function(o){return o=_p(o),o===null?null:o.stateNode},findFiberByHostInstance:Ac.findFiberByHostInstance||bO,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var bh=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!bh.isDisabled&&bh.supportsFiber)try{lt=bh.inject(wO),Ze=bh}catch{}}return gr.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=SO,gr.createPortal=function(o,a){var d=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!qv(a))throw Error(n(200));return _O(o,a,null,d)},gr.createRoot=function(o,a){if(!qv(o))throw Error(n(299));var d=!1,f="",y=uE;return a!=null&&(a.unstable_strictMode===!0&&(d=!0),a.identifierPrefix!==void 0&&(f=a.identifierPrefix),a.onRecoverableError!==void 0&&(y=a.onRecoverableError)),a=zv(o,1,!1,null,null,d,!1,f,y),o[es]=a.current,hc(o.nodeType===8?o.parentNode:o),new $v(a)},gr.findDOMNode=function(o){if(o==null)return null;if(o.nodeType===1)return o;var a=o._reactInternals;if(a===void 0)throw typeof o.render=="function"?Error(n(188)):(o=Object.keys(o).join(","),Error(n(268,o)));return o=_p(a),o=o===null?null:o.stateNode,o},gr.flushSync=function(o){return la(o)},gr.hydrate=function(o,a,d){if(!yh(a))throw Error(n(200));return _h(null,o,a,!0,d)},gr.hydrateRoot=function(o,a,d){if(!qv(o))throw Error(n(405));var f=d!=null&&d.hydratedSources||null,y=!1,b="",E=uE;if(d!=null&&(d.unstable_strictMode===!0&&(y=!0),d.identifierPrefix!==void 0&&(b=d.identifierPrefix),d.onRecoverableError!==void 0&&(E=d.onRecoverableError)),a=aE(a,null,o,1,d??null,y,!1,b,E),o[es]=a.current,hc(o),f)for(o=0;o<f.length;o++)d=f[o],y=d._getVersion,y=y(d._source),a.mutableSourceEagerHydrationData==null?a.mutableSourceEagerHydrationData=[d,y]:a.mutableSourceEagerHydrationData.push(d,y);return new vh(a)},gr.render=function(o,a,d){if(!yh(a))throw Error(n(200));return _h(null,o,a,!1,d)},gr.unmountComponentAtNode=function(o){if(!yh(o))throw Error(n(40));return o._reactRootContainer?(la(function(){_h(null,null,o,!1,function(){o._reactRootContainer=null,o[es]=null})}),!0):!1},gr.unstable_batchedUpdates=Nv,gr.unstable_renderSubtreeIntoContainer=function(o,a,d,f){if(!yh(d))throw Error(n(200));if(o==null||o._reactInternals===void 0)throw Error(n(38));return _h(o,a,d,!1,f)},gr.version="18.3.1-next-f1338f8080-20240426",gr}var _E;function yP(){if(_E)return Gv.exports;_E=1;function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(e){console.error(e)}}return t(),Gv.exports=NO(),Gv.exports}var bE;function OO(){if(bE)return Sh;bE=1;var t=yP();return Sh.createRoot=t.createRoot,Sh.hydrateRoot=t.hydrateRoot,Sh}var DO=OO();const jO=vP(DO),Te=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,it=globalThis,Fa="10.49.0";function Xa(){return wm(it),it}function wm(t){const e=t.__SENTRY__=t.__SENTRY__||{};return e.version=e.version||Fa,e[Fa]=e[Fa]||{}}function zu(t,e,n=it){const r=n.__SENTRY__=n.__SENTRY__||{},i=r[Fa]=r[Fa]||{};return i[t]||(i[t]=e())}const FO=["debug","info","warn","error","log","assert","trace"],UO="Sentry Logger ",Cf={};function Fo(t){if(!("console"in it))return t();const e=it.console,n={},r=Object.keys(Cf);r.forEach(i=>{const s=Cf[i];n[i]=e[i],e[i]=s});try{return t()}finally{r.forEach(i=>{e[i]=n[i]})}}function zO(){gx().enabled=!0}function BO(){gx().enabled=!1}function _P(){return gx().enabled}function $O(...t){mx("log",...t)}function qO(...t){mx("warn",...t)}function WO(...t){mx("error",...t)}function mx(t,...e){Te&&_P()&&Fo(()=>{it.console[t](`${UO}[${t}]:`,...e)})}function gx(){return Te?zu("loggerSettings",()=>({enabled:!1})):{enabled:!1}}const ae={enable:zO,disable:BO,isEnabled:_P,log:$O,warn:qO,error:WO},bP=50,Wa="?",xE=/\(error: (.*)\)/,SE=/captureMessage|captureException/;function xP(...t){const e=t.sort((n,r)=>n[0]-r[0]).map(n=>n[1]);return(n,r=0,i=0)=>{const s=[],l=n.split(` 42`);for(let u=r;u<l.length;u++){let c=l[u];c.length>1024&&(c=c.slice(0,1024));const p=xE.test(c)?c.replace(xE,"$1"):c;if(!p.includes("Error: ")){for(const h of e){const m=h(p);if(m){s.push(m);break}}if(s.length>=bP+i)break}}return VO(s.slice(i))}}function HO(t){return Array.isArray(t)?xP(...t):t}function VO(t){if(!t.length)return[];const e=Array.from(t);return/sentryWrapped/.test(wh(e).function||"")&&e.pop(),e.reverse(),SE.test(wh(e).function||"")&&(e.pop(),SE.test(wh(e).function||"")&&e.pop()),e.slice(0,bP).map(n=>({...n,filename:n.filename||wh(e).filename,function:n.function||Wa}
vendor: 4,702 bytes, lines 42-45
42))}function wh(t){return t[t.length-1]||{}}const Jv="<anonymous>";function Cs(t){try{return!t||typeof t!="function"?Jv:t.name||Jv}catch{return Jv}}function wE(t){const e=t.exception;if(e){const n=[];try{return e.values.forEach(r=>{r.stacktrace.frames&&n.push(...r.stacktrace.frames)}),n}catch{return}}}function SP(t){return"__v_isVNode"in t&&t.__v_isVNode?"[VueVNode]":"[VueViewModel]"}const nf={},EE={};function Uo(t,e){nf[t]=nf[t]||[],nf[t].push(e)}function zo(t,e){if(!EE[t]){EE[t]=!0;try{e()}catch(n){Te&&ae.error(`Error while instrumenting ${t}`,n)}}}function ei(t,e){const n=t&&nf[t];if(n)for(const r of n)try{r(e)}catch(i){Te&&ae.error(`Error while triggering instrumentation handler. 43Type: ${t} 44Name: ${Cs(r)} 45Error:`,i)}}let Qv=null;function wP(t){const e="error";Uo(e,t),zo(e,GO)}function GO(){Qv=it.onerror,it.onerror=function(t,e,n,r,i){return ei("error",{column:r,error:i,line:n,msg:t,url:e}),Qv?Qv.apply(this,arguments):!1},it.onerror.__SENTRY_INSTRUMENTED__=!0}let Xv=null;function EP(t){const e="unhandledrejection";Uo(e,t),zo(e,YO)}function YO(){Xv=it.onunhandledrejection,it.onunhandledrejection=function(t){return ei("unhandledrejection",t),Xv?Xv.apply(this,arguments):!0},it.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}const kP=Object.prototype.toString;function Gd(t){switch(kP.call(t)){case"[object Error]":case"[object Exception]":case"[object DOMException]":case"[object WebAssembly.Exception]":return!0;default:return Ts(t,Error)}}function Bu(t,e){return kP.call(t)===`[object ${e}]`}function CP(t){return Bu(t,"ErrorEvent")}function kE(t){return Bu(t,"DOMError")}function KO(t){return Bu(t,"DOMException")}function Ss(t){return Bu(t,"String")}function vx(t){return typeof t=="object"&&t!==null&&"__sentry_template_string__"in t&&"__sentry_template_values__"in t}function Su(t){return t===null||vx(t)||typeof t!="object"&&typeof t!="function"}function _d(t){return Bu(t,"Object")}function Em(t){return typeof Event<"u"&&Ts(t,Event)}function JO(t){return typeof Element<"u"&&Ts(t,Element)}function QO(t){return Bu(t,"RegExp")}function Yd(t){return!!(t!=null&&t.then&&typeof t.then=="function")}function XO(t){return _d(t)&&"nativeEvent"in t&&"preventDefault"in t&&"stopPropagation"in t}function Ts(t,e){try{return t instanceof e}catch{return!1}}function TP(t){return!!(typeof t=="object"&&t!==null&&(t.__isVue||t._isVue||t.__v_isVNode))}function yx(t){return typeof Request<"u"&&Ts(t,Request)}const _x=it,ZO=80;function mn(t,e={}){if(!t)return"<unknown>";try{let n=t;const r=5,i=[];let s=0,l=0;const u=" > ",c=u.length;let p;const h=Array.isArray(e)?e:e.keyAttrs,m=!Array.isArray(e)&&e.maxStringLength||ZO;for(;n&&s++<r&&(p=eD(n,h),!(p==="html"||s>1&&l+i.length*c+p.length>=m));)i.push(p),l+=p.length,n=n.parentNode;return i.reverse().join(u)}catch{return"<unknown>"}}function eD(t,e){const n=t,r=[];if(!(n!=null&&n.tagName))return"";if(_x.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=e!=null&&e.length?e.filter(s=>n.getAttribute(s)).map(s=>[s,n.getAttribute(s)]):null;if(i!=null&&i.length)i.forEach(s=>{r.push(`[${s[0]}="${s[1]}"]`)});else{n.id&&r.push(`#${n.id}`);const s=n.className;if(s&&Ss(s)){const l=s.split(/\s+/);for(const u of l)r.push(`.${u}`)}}for(const s of["aria-label","type","name","title","alt"]){const l=n.getAttribute(s);l&&r.push(`[${s}="${l}"]`)}return r.join("")}function $u(){try{return _x.document.location.href}catch{return""}}function PP(t,e=5){if(!_x.HTMLElement)return null;let n=t;for(let r=0;r<e;r++){if(!n)return null;if(n instanceof HTMLElement){if(n.dataset.sentryComponent)return n.dataset.sentryComponent;if(n.dataset.sentryElement)return n.dataset.sentryElement}n=n.parentNode}return null}function xr(t,e,n){if(!(e in t))return;const r=t[e];if(typeof r!="function")return;const i=n(r);typeof i=="function"&&RP(i,r);try{t[e]=i}catch{Te&&ae.log(`Failed to replace method "${e}" in object`,t)}}function Er(t,e,n){try{Object.defineProperty(t,e,{value:n,writable:!0,configurable:!0})}catch{Te&&ae.log(`Failed to add non-enumerable property "${e}" to object`,t)}}function RP(t,e){try{const n=e.prototype||{};t.prototype=e.prototype=n,Er(t,"__sentry_original__",e)}catch{}}function bx(t){return t.__sentry_original__}function AP(t){if(Gd(t))return{message:t.message,name:t.name,stack:t.stack,...TE(t)};if(Em(t)){const e={type:t.type,target:CE(t.target),currentTarget:CE(t.currentTarget),...TE(t)};return typeof CustomEvent<"u"&&Ts(t,CustomEvent)&&(e.detail=t.detail),e}else return t}function CE(t){try{return JO(t)?mn(t):Object.prototype.toString.call(t)}catch{return"<unknown>"}}
45function TE(t){return typeof t=="object"&&t!==null?Object.fromEntries(Object.entries(t)):{}}function tD(t){const e=Object.keys(AP(t));return e.sort(),e[0]?e.join(", "):"[object has no keys]"}let Rl;function Kd(t){if(Rl!==void 0)return Rl?Rl(t):t();const e=Symbol.for("__SENTRY_SAFE_RANDOM_ID_WRAPPER__"),n=it;return e in n&&typeof n[e]=="function"?(Rl=n[e],Rl(t)):(Rl=null,t())}function Ao(){return Kd(()=>Math.random())}function Jd(){return Kd(()=>Date.now())}function c_(t,e=0){return typeof t!="string"||e===0||t.length<=e?t:`${t.slice(0,e)}...`}function PE(t,e){if(!Array.isArray(t))return"";const n=[];for(let r=0;r<t.length;r++){const i=t[r];try{TP(i)?n.push(SP(i)):n.push(String(i))}catch{n.push("[value cannot be serialized]")}}return n.join(e)}function rf(t,e,n=!1){return Ss(t)?QO(e)?e.test(t):Ss(e)?n?t===e:t.includes(e):typeof e=="function"?e(t):!1:!1}function ws(t,e=[],n=!1){return e.some(r=>rf(t,r,n))}function nD(){const t=it;return t.crypto||t.msCrypto}let Zv;function rD(){return Ao()*16}function jr(t=nD()){try{if(t!=null&&t.randomUUID)return Kd(()=>t.randomUUID()).replace(/-/g,"")}catch{}return Zv||(Zv="10000000100040008000"+1e11),Zv.replace(/[018]/g,e=>(e^(rD()&15)>>e/4).toString(16))}function IP(t){var e,n;return(n=(e=t.exception)==null?void 0:e.values)==null?void 0:n[0]}function ba(t){const{message:e,event_id:n}=t;if(e)return e;const r=IP(t);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||n||"<unknown>":n||"<unknown>"}function d_(t,e,n){const r=t.exception=t.exception||{},i=r.values=r.values||[],s=i[0]=i[0]||{};s.value||(s.value=e||""),s.type||(s.type="Error")}function wu(t,e){const n=IP(t);if(!n)return;const r={type:"generic",handled:!0},i=n.mechanism;if(n.mechanism={...r,...i,...e},e&&"data"in e){const s={...i==null?void 0:i.data,...e.data};n.mechanism.data=s}}function RE(t){if(iD(t))return!0;try{Er(t,"__sentry_captured__",!0)}catch{}return!1}function iD(t){try{return t.__sentry_captured__}catch{}}const LP=1e3;function Za(){return Jd()/LP}function sD(){const{performance:t}=it;if(!(t!=null&&t.now)||!t.timeOrigin)return Za;const e=t.timeOrigin;return()=>(e+Kd(()=>t.now()))/LP}let AE;function fn(){return(AE??(AE=sD()))()}let ey=null;function oD(){var l;const{performance:t}=it;if(!(t!=null&&t.now))return;const e=3e5,n=Kd(()=>t.now()),r=Jd(),i=t.timeOrigin;if(typeof i=="number"&&Math.abs(i+n-r)<e)return i;const s=(l=t.timing)==null?void 0:l.navigationStart;return typeof s=="number"&&Math.abs(s+n-r)<e?s:r-n}function Nn(){return ey===null&&(ey=oD()),ey}function aD(t){const e=fn(),n={sid:jr(),init:!0,timestamp:e,started:e,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>uD(n)};return t&&Eu(n,t),n}function Eu(t,e={}){if(e.user&&(!t.ipAddress&&e.user.ip_address&&(t.ipAddress=e.user.ip_address),!t.did&&!e.did&&(t.did=e.user.id||e.user.email||e.user.username)),t.timestamp=e.timestamp||fn(),e.abnormal_mechanism&&(t.abnormal_mechanism=e.abnormal_mechanism),e.ignoreDuration&&(t.ignoreDuration=e.ignoreDuration),e.sid&&(t.sid=e.sid.length===32?e.sid:jr()),e.init!==void 0&&(t.init=e.init),!t.did&&e.did&&(t.did=`${e.did}`),typeof e.started=="number"&&(t.started=e.started),t.ignoreDuration)t.duration=void 0;else if(typeof e.duration=="number")t.duration=e.duration;else{const n=t.timestamp-t.started;t.duration=n>=0?n:0}e.release&&(t.release=e.release),e.environment&&(t.environment=e.environment),!t.ipAddress&&e.ipAddress&&(t.ipAddress=e.ipAddress),!t.userAgent&&e.userAgent&&(t.userAgent=e.userAgent),typeof e.errors=="number"&&(t.errors=e.errors),e.status&&(t.status=e.status)}function lD(t,e){let n={};t.status==="ok"&&(n={status:"exited"}),Eu(t,n)}function uD(t){return{sid:`${t.sid}`,init:t.init,started:new Date(t.started*1e3).toISOString(),timestamp:new Date(t.timestamp*1e3).toISOString(),status:t.status,errors:t.errors,did:typeof t.did=="number"||typeof t.did=="string"?`${t.did}`:void 0,duration:t.duration,abnormal_mechanism:t.abnormal_mechanism,attrs:{release:t.release,environment:t.environment,ip_address:t.ipAddress,user_agent:t.userAgent}}}function Qd(t,e,n=2){if(!e||typeof e!="object"||n<=0)return e;if(t&&Object.keys(e).length===0)return t;const r={...t};for(const i in e)Object.prototype.hasOwnProperty.call(e,i)&&(r[i]=Qd(r[i],e[i],n-1));return r}function Ps(){return jr()}function Es(){return jr().substring(16)}const p_="_sentrySpan";function bd(t,e){e?Er(t,p_,e):delete t[p_]}function Tf(t){return t[p_]}const cD=100;class Ji{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._attributes={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext={traceId:Ps(),sampleRand:Ao()}}clone(){const e=new Ji;return e._breadcrumbs=[...this._breadcrumbs],e._tags={...this._tags},e._attributes={...this._attributes},e._extra={...this._extra},e._contexts={...this._contexts},this._contexts.flags&&(e._contexts.flags={values:[...this._contexts.flags.values]}),e._user=this._user,e._level=this._level,e._session=this._session,e._transactionName=this._transactionName,e._fingerprint=this._fingerprint,e._eventProcessors=[...this._eventProcessors],e._attachments=[...this._attachments],e._sdkProcessingMetadata={...this._sdkProcessingMetadata},e._propagationContext={...this._propagationContext},e._client=this._client,e._lastEventId=this._lastEventId,e._conversationId=this._conversationId,bd(e,Tf(this)),e}setClient(e){this._client=e}setLastEventId(e){this._lastEventId=e}getClient(){return this._client}lastEventId(){return this._lastEventId}addScopeListener(e){this._scopeListeners.push(e)}addEventProcessor(e){return this._eventProcessors.push(e),this}setUser(e){return this._user=e||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this._session&&Eu(this._session,{user:e}),this._notifyScopeListeners(),this}getUser(){return this._user}setConversationId(e){return this._conversationId=e||void 0,this._notifyScopeListeners(),this}setTags(e){return this._tags={...this._tags,...e},this._notifyScopeListeners(),this}setTag(e,n){return this.setTags({[e]:n})}setAttributes(e){return this._attributes={...this._attributes,...e},this._notifyScopeListeners(),this}setAttribute(e,n){return this.setAttributes({[e]:n})}removeAttribute(e){return e in this._attributes&&(delete this._attributes[e],this._notifyScopeListeners()),this}setExtras(e){return this._extra={...this._extra,...e},this._notifyScopeListeners(),this}setExtra(e,n){return this._extra={...this._extra,[e]:n},this._notifyScopeListeners(),this}setFingerprint(e){return this._fingerprint=e,this._notifyScopeListeners(),this}setLevel(e){return this._level=e,this._notifyScopeListeners(),this}setTransactionName(e){return this._transactionName=e,this._notifyScopeListeners(),this}setContext(e,n){return n===null?delete this._contexts[e]:this._contexts[e]=n,this._notifyScopeListeners(),this}setSession(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(e){if(!e)return this;const n=typeof e=="function"?e(this):e,r=n instanceof Ji?n.getScopeData():_d(n)?e:void 0,{tags:i,attributes:s,extra:l,user:u,contexts:c,level:p,fingerprint:h=[],propagationContext:m,conversationId:g}=r||{};return this._tags={...this._tags,...i},this._attributes={...this._attributes,...s},this._extra={...this._extra,...l},this._contexts={...this._contexts,...c},u&&Object.keys(u).length&&(this._user=u),p&&(this._level=p),h.length&&(this._fingerprint=h),m&&(this._propagationContext=m),g&&(this._conversationId=g),this}clear(){return this._breadcrumbs=[],this._tags={},this._attributes={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._session=void 0,this._conversationId=void 0,bd(this,void 0),this._attachments=[],this.setPropagationContext({traceId:Ps(),sampleRand:Ao()}),this._notifyScopeListeners(),this}addBreadcrumb(e,n){var s;const r=typeof n=="number"?n:cD;if(r<=0)return this;const i={timestamp:Za(),...e,message:e.message?c_(e.message,2048):e.message};return this._breadcrumbs.push(i),this._breadcrumbs.length>r&&(this._breadcrumbs=this._breadcrumbs.slice(-r),(s=this._client)==null||s.recordDroppedEvent("buffer_overflow","log_item")),this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(e){return this._attachments.push(e),this}clearAttachments(){return this._attachments=[],this}getScopeData(){return{breadcrumbs:this._breadcrumbs,attachments:this._attachments,contexts:this._contexts,tags:this._tags,attributes:this._attributes,extra:this._extra,user:this._user,level:this._level,fingerprint:this._fingerprint||[],eventProcessors:this._eventProcessors,propagationContext:this._propagationContext,sdkProcessingMetadata:this._sdkProcessingMetadata,transactionName:this._transactionName,span:Tf(this),conversationId:this._conversationId}}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata=Qd(this._sdkProcessingMetadata,e,2),this}setPropagationContext(e){return this._propagationContext=e,this}getPropagationContext(){return this._propagationContext}captureException(e,n){const r=(n==null?void 0:n.event_id)||jr();if(!this._client)return Te&&ae.warn("No client configured on scope - will not capture exception!"),r;const i=new Error("Sentry syntheticException");return this._client.captureException(e,{originalException:e,syntheticException:i,...n,event_id:r},this),r}captureMessage(e,n,r){const i=(r==null?void 0:r.event_id)||jr();if(!this._client)return Te&&ae.warn("No client configured on scope - will not capture message!"),i;const s=(r==null?void 0:r.syntheticException)??new Error(e);return this._client.captureMessage(e,n,{originalException:e,syntheticException:s,...r,event_id:i},this),i}
45captureEvent(e,n){const r=e.event_id||(n==null?void 0:n.event_id)||jr();return this._client?(this._client.captureEvent(e,{...n,event_id:r},this),r):(Te&&ae.warn("No client configured on scope - will not capture event!"),r)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(e=>{e(this)}),this._notifyingListeners=!1)}}function dD(){return zu("defaultCurrentScope",()=>new Ji)}function pD(){return zu("defaultIsolationScope",()=>new Ji)}const IE=t=>t instanceof Promise&&!t[MP],MP=Symbol("chained PromiseLike"),hD=(t,e,n)=>{const r=t.then(i=>(e(i),i),i=>{throw n(i),i});return IE(r)&&IE(t)?r:fD(t,r)},fD=(t,e)=>{let n=!1;for(const r in t){if(r in e)continue;n=!0;const i=t[r];typeof i=="function"?Object.defineProperty(e,r,{value:(...s)=>i.apply(t,s),enumerable:!0,configurable:!0,writable:!0}):e[r]=i}return n&&Object.assign(e,{[MP]:!0}),e};class mD{constructor(e,n){let r;e?r=e:r=new Ji;let i;n?i=n:i=new Ji,this._stack=[{scope:r}],this._isolationScope=i}withScope(e){const n=this._pushScope();let r;try{r=e(n)}catch(i){throw this._popScope(),i}return Yd(r)?hD(r,()=>this._popScope(),()=>this._popScope()):(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 e=this.getScope().clone();return this._stack.push({client:this.getClient(),scope:e}),e}_popScope(){return this._stack.length<=1?!1:!!this._stack.pop()}}function ku(){const t=Xa(),e=wm(t);return e.stack=e.stack||new mD(dD(),pD())}function gD(t){return ku().withScope(t)}function vD(t,e){const n=ku();return n.withScope(()=>(n.getStackTop().scope=t,e(t)))}function LE(t){return ku().withScope(()=>t(ku().getIsolationScope()))}function yD(){return{withIsolationScope:LE,withScope:gD,withSetScope:vD,withSetIsolationScope:(t,e)=>LE(e),getCurrentScope:()=>ku().getScope(),getIsolationScope:()=>ku().getIsolationScope()}}function qu(t){const e=wm(t);return e.acs?e.acs:yD()}function _t(){const t=Xa();return qu(t).getCurrentScope()}function Ur(){const t=Xa();return qu(t).getIsolationScope()}function _D(){return zu("globalScope",()=>new Ji)}function Xd(...t){const e=Xa(),n=qu(e);if(t.length===2){const[r,i]=t;return r?n.withSetScope(r,i):n.withScope(i)}return n.withScope(t[0])}function Xe(){return _t().getClient()}function bD(t){const e=t.getPropagationContext(),{traceId:n,parentSpanId:r,propagationSpanId:i}=e,s={trace_id:n,span_id:i||Es()};return r&&(s.parent_span_id=r),s}const Wi="sentry.source",xx="sentry.sample_rate",NP="sentry.previous_trace_sample_rate",Ci="sentry.op",gn="sentry.origin",xd="sentry.idle_span_finish_reason",Zd="sentry.measurement_unit",ep="sentry.measurement_value",ME="sentry.custom_span_name",Sx="sentry.profile_id",Bo="sentry.exclusive_time",xD="sentry.link.type",SD="gen_ai.conversation.id",OP=0,km=1,wn=2;function wD(t){if(t<400&&t>=100)return{code:km};
45if(t>=400&&t<500)switch(t){case 401:return{code:wn,message:"unauthenticated"};case 403:return{code:wn,message:"permission_denied"};case 404:return{code:wn,message:"not_found"};case 409:return{code:wn,message:"already_exists"};case 413:return{code:wn,message:"failed_precondition"};case 429:return{code:wn,message:"resource_exhausted"};case 499:return{code:wn,message:"cancelled"};default:return{code:wn,message:"invalid_argument"}}if(t>=500&&t<600)switch(t){case 501:return{code:wn,message:"unimplemented"};case 503:return{code:wn,message:"unavailable"};case 504:return{code:wn,message:"deadline_exceeded"};default:return{code:wn,message:"internal_error"}}return{code:wn,message:"internal_error"}}function DP(t,e){t.setAttribute("http.response.status_code",e);const n=wD(e);n.message!=="unknown_error"&&t.setStatus(n)}function ED(t){try{const e=it.WeakRef;if(typeof e=="function")return new e(t)}catch{}return t}function kD(t){if(t){if(typeof t=="object"&&"deref"in t&&typeof t.deref=="function")try{return t.deref()}catch{return}return t}}const jP="_sentryScope",FP="_sentryIsolationScope";function CD(t,e,n){t&&(Er(t,FP,ED(n)),Er(t,jP,e))}function Pf(t){const e=t;return{scope:e[jP],isolationScope:kD(e[FP])}}const Rf="sentry-",TD=8192;function UP(t){const e=RD(t);if(!e)return;const n=Object.entries(e).reduce((r,[i,s])=>{if(i.startsWith(Rf)){const l=i.slice(Rf.length);r[l]=s}return r},{});if(Object.keys(n).length>0)return n}function PD(t){if(!t)return;const e=Object.entries(t).reduce((n,[r,i])=>(i&&(n[`${Rf}${r}`]=i),n),{});return AD(e)}function RD(t){if(!(!t||!Ss(t)&&!Array.isArray(t)))return Array.isArray(t)?t.reduce((e,n)=>{const r=NE(n);return Object.entries(r).forEach(([i,s])=>{e[i]=s}),e},{}):NE(t)}function NE(t){return t.split(",").map(e=>{const n=e.indexOf("=");if(n===-1)return[];const r=e.slice(0,n),i=e.slice(n+1);return[r,i].map(s=>{try{return decodeURIComponent(s.trim())}catch{return}})}).reduce((e,[n,r])=>(n&&r&&(e[n]=r),e),{})}function AD(t){if(Object.keys(t).length!==0)return Object.entries(t).reduce((e,[n,r],i)=>{const s=`${encodeURIComponent(n)}=${encodeURIComponent(r)}`,l=i===0?s:`${e},${s}`;return l.length>TD?(Te&&ae.warn(`Not adding key: ${n} with val: ${r} to baggage header due to exceeding baggage size limits.`),e):l},"")}const ID=/^o(\d+)\./,LD=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)((?:\[[:.%\w]+\]|[\w.-]+))(?::(\d+))?\/(.+)/;function MD(t){return t==="http"||t==="https"}function el(t,e=!1){const{host:n,path:r,pass:i,port:s,projectId:l,protocol:u,publicKey:c}=t;return`${u}://${c}${e&&i?`:${i}`:""}@${n}${s?`:${s}`:""}/${r&&`${r}/`}${l}`}function ND(t){const e=LD.exec(t);if(!e){Fo(()=>{console.error(`Invalid Sentry Dsn: ${t}`)});return}const[n,r,i="",s="",l="",u=""]=e.slice(1);let c="",p=u;const h=p.split("/");if(h.length>1&&(c=h.slice(0,-1).join("/"),p=h.pop()),p){const m=p.match(/^\d+/);m&&(p=m[0])}return zP({host:s,pass:i,path:c,projectId:p,port:l,protocol:n,publicKey:r})}function zP(t){return{protocol:t.protocol,publicKey:t.publicKey||"",pass:t.pass||"",host:t.host,port:t.port||"",path:t.path||"",projectId:t.projectId}}function OD(t){if(!Te)return!0;const{port:e,projectId:n,protocol:r}=t;return["protocol","publicKey","host","projectId"].find(l=>t[l]?!1:(ae.error(`Invalid Sentry Dsn: ${l} missing`),!0))?!1:n.match(/^\d+$/)?MD(r)?e&&isNaN(parseInt(e,10))?(ae.error(`Invalid Sentry Dsn: Invalid port ${e}`),!1):!0:(ae.error(`Invalid Sentry Dsn: Invalid protocol ${r}`),!1):(ae.error(`Invalid Sentry Dsn: Invalid projectId ${n}`),!1)}function DD(t){const e=t.match(ID);return e==null?void 0:e[1]}function jD(t){const e=t.getOptions(),{host:n}=t.getDsn()||{};let r;return e.orgId?r=String(e.orgId):n&&(r=DD(n)),r}function BP(t){const e=typeof t=="string"?ND(t):zP(t);if(!(!e||!OD(e)))return e}function Ha(t){if(typeof t=="boolean")return Number(t);const e=typeof t=="string"?parseFloat(t):t;if(!(typeof e!="number"||isNaN(e)||e<0||e>1))return e}const $P=new RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function FD(t){if(!t)return;const e=t.match($P);if(!e)return;let n;return e[3]==="1"?n=!0:e[3]==="0"&&(n=!1),{traceId:e[1],parentSampled:n,parentSpanId:e[2]}}function UD(t,e){const n=FD(t),r=UP(e);if(!(n!=null&&n.traceId))return{traceId:Ps(),sampleRand:Ao()};const i=zD(n,r);r&&(r.sample_rand=i.toString());const{traceId:s,parentSpanId:l,parentSampled:u}=n;return{traceId:s,parentSpanId:l,sampled:u,dsc:r||{},sampleRand:i}}function qP(t=Ps(),e=Es(),n){let r="";return n!==void 0&&(r=n?"-1":"-0"),`${t}-${e}${r}`}function WP(t=Ps(),e=Es(),n){return`00-${t}-${e}-${n?"01":"00"}`}
45function zD(t,e){const n=Ha(e==null?void 0:e.sample_rand);if(n!==void 0)return n;const r=Ha(e==null?void 0:e.sample_rate);return r&&(t==null?void 0:t.parentSampled)!==void 0?t.parentSampled?Ao()*r:r+Ao()*(1-r):Ao()}const HP=0,Cm=1;let OE=!1;function BD(t){const{spanId:e,traceId:n}=t.spanContext(),{data:r,op:i,parent_span_id:s,status:l,origin:u,links:c}=vt(t);return{parent_span_id:s,span_id:e,trace_id:n,data:r,op:i,status:l,origin:u,links:c}}function $D(t){const{spanId:e,traceId:n,isRemote:r}=t.spanContext(),i=r?e:vt(t).parent_span_id,s=Pf(t).scope,l=r?(s==null?void 0:s.getPropagationContext().propagationSpanId)||Es():e;return{parent_span_id:i,span_id:l,trace_id:n}}function qD(t){const{traceId:e,spanId:n}=t.spanContext(),r=$o(t);return qP(e,n,r)}function WD(t){const{traceId:e,spanId:n}=t.spanContext(),r=$o(t);return WP(e,n,r)}function VP(t){if(t&&t.length>0)return t.map(({context:{spanId:e,traceId:n,traceFlags:r,...i},attributes:s})=>({span_id:e,trace_id:n,sampled:r===Cm,attributes:s,...i}))}function GP(t){if(t!=null&&t.length)return t.map(({context:{spanId:e,traceId:n,traceFlags:r},attributes:i})=>({span_id:e,trace_id:n,sampled:r===Cm,attributes:i}))}function ks(t){return typeof t=="number"?DE(t):Array.isArray(t)?t[0]+t[1]/1e9:t instanceof Date?DE(t.getTime()):fn()}function DE(t){return t>9999999999?t/1e3:t}function vt(t){if(QP(t))return t.getSpanJSON();const{spanId:e,traceId:n}=t.spanContext();if(JP(t)){const{attributes:r,startTime:i,name:s,endTime:l,status:u,links:c}=t;return{span_id:e,trace_id:n,data:r,description:s,parent_span_id:KP(t),start_timestamp:ks(i),timestamp:ks(l)||void 0,status:XP(u),op:r[Ci],origin:r[gn],links:VP(c)}}return{span_id:e,trace_id:n,start_timestamp:0,data:{}}}function YP(t){if(QP(t))return t.getStreamedSpanJSON();const{spanId:e,traceId:n}=t.spanContext();if(JP(t)){const{attributes:r,startTime:i,name:s,endTime:l,status:u,links:c}=t;return{name:s,span_id:e,trace_id:n,parent_span_id:KP(t),start_timestamp:ks(i),end_timestamp:ks(l),is_segment:t===f_(t),status:ZP(u),attributes:r,links:GP(c)}}return{span_id:e,trace_id:n,start_timestamp:0,name:"",end_timestamp:0,status:"ok",is_segment:t===f_(t)}}function KP(t){var e;return"parentSpanId"in t?t.parentSpanId:"parentSpanContext"in t?(e=t.parentSpanContext)==null?void 0:e.spanId:void 0}function JP(t){const e=t;return!!e.attributes&&!!e.startTime&&!!e.name&&!!e.endTime&&!!e.status}function QP(t){return typeof t.getSpanJSON=="function"}function $o(t){const{traceFlags:e}=t.spanContext();return e===Cm}function XP(t){if(!(!t||t.code===OP))return t.code===km?"ok":t.message||"internal_error"}function ZP(t){return!t||t.code===km||t.code===OP||t.message==="cancelled"?"ok":"error"}const Ua="_sentryChildSpans",h_="_sentryRootSpan";function eR(t,e){const n=t[h_]||t;Er(e,h_,n),t[Ua]?t[Ua].add(e):Er(t,Ua,new Set([e]))}function HD(t,e){t[Ua]&&t[Ua].delete(e)}function sf(t){const e=new Set;function n(r){if(!e.has(r)&&$o(r)){e.add(r);const i=r[Ua]?Array.from(r[Ua]):[];for(const s of i)n(s)}}return n(t),Array.from(e)}const Mn=f_;function f_(t){return t[h_]||t}function lr(){const t=Xa(),e=qu(t);return e.getActiveSpan?e.getActiveSpan():Tf(_t())}function m_(){OE||(Fo(()=>{console.warn("[Sentry] Returning null from `beforeSendSpan` is disallowed. To drop certain spans, configure the respective integrations directly or use `ignoreSpans`.")}),OE=!0)}let jE=!1;function VD(){if(jE)return;function t(){const e=lr(),n=e&&Mn(e);if(n){const r="internal_error";Te&&ae.log(`[Tracing] Root span: ${r} -> Global error occurred`),n.setStatus({code:wn,message:r})}}t.tag="sentry_tracingErrorCallback",jE=!0,wP(t),EP(t)}function wi(t){var n;if(typeof __SENTRY_TRACING__=="boolean"&&!__SENTRY_TRACING__)return!1;const e=t||((n=Xe())==null?void 0:n.getOptions());return!!e&&(e.tracesSampleRate!=null||!!e.tracesSampler)}function FE(t){ae.log(`Ignoring span ${t.op} - ${t.description} because it matches \`ignoreSpans\`.`)}function Sd(t,e){if(!(e!=null&&e.length)||!t.description)return!1;for(const n of e){if(YD(n)){if(rf(t.description,n))return Te&&FE(t),!0;continue}if(!n.name&&!n.op)continue;const r=n.name?rf(t.description,n.name):!0,i=n.op?t.op&&rf(t.op,n.op):!0;if(r&&i)return Te&&FE(t),!0}return!1}function GD(t,e){const n=e.parent_span_id,r=e.span_id;if(n)for(const i of t)i.parent_span_id===r&&(i.parent_span_id=n)}function YD(t){return typeof t=="string"||t instanceof RegExp}const wx="production",tR="_frozenDsc";function of(t,e){Er(t,tR,e)}function nR(t,e){const n=e.getOptions(),{publicKey:r}=e.getDsn()||{},i={environment:n.environment||wx,release:n.release,public_key:r,trace_id:t,org_id:jD(e)};return e.emit("createDsc",i),i}function rR(t,e){const n=e.getPropagationContext();return n.dsc||nR(n.traceId,t)}function Rs(t){var x;const e=Xe();if(!e)return{};const n=Mn(t),r=vt(n),i=r.data,s=n.spanContext().traceState,l=(s==null?void 0:s.get("sentry.sample_rate"))??i[xx]??i[NP];function u(S){return(typeof l=="number"||typeof l=="string")&&(S.sample_rate=`${l}`),S}const c=n[tR];if(c)return u(c);const p=s==null?void 0:s.get("sentry.dsc"),h=p&&UP(p);if(h)return u(h);const m=nR(t.spanContext().traceId,e),g=i[Wi]??i["sentry.span.source"],_=r.description;return g!=="url"&&_&&(m.transaction=_),wi()&&(m.sampled=String($o(n)),m.sample_rand=(s==null?void 0:s.get("sentry.sample_rand"))??((x=Pf(n).scope)==null?void 0:x.getPropagationContext().sampleRand.toString())),u(m),e.emit("createDsc",m,n),m}class Ki{constructor(e={}){this._traceId=e.traceId||Ps(),this._spanId=e.spanId||Es(),this.dropReason=e.dropReason}spanContext(){return{spanId:this._spanId,traceId:this._traceId,traceFlags:HP}}end(e){}setAttribute(e,n){return this}setAttributes(e){return this}setStatus(e){return this}updateName(e){return this}isRecording(){return!1}
45addEvent(e,n,r){return this}addLink(e){return this}addLinks(e){return this}recordException(e,n){}}function iR(t){return!!t&&typeof t=="function"&&"_streamed"in t&&!!t._streamed}function bi(t,e=100,n=1/0){try{return g_("",t,e,n)}catch(r){return{ERROR:`**non-serializable** (${r})`}}}function sR(t,e=3,n=100*1024){const r=bi(t,e);return XD(r)>n?sR(t,e-1,n):r}function g_(t,e,n=1/0,r=1/0,i=ZD()){const[s,l]=i;if(e==null||["boolean","string"].includes(typeof e)||typeof e=="number"&&Number.isFinite(e))return e;const u=KD(t,e);if(!u.startsWith("[object "))return u;if(e.__sentry_skip_normalization__)return e;const c=typeof e.__sentry_override_normalization_depth__=="number"?e.__sentry_override_normalization_depth__:n;if(c===0)return u.replace("object ","");if(s(e))return"[Circular ~]";const p=e;if(p&&typeof p.toJSON=="function")try{const _=p.toJSON();return g_("",_,c-1,r,i)}catch{}const h=Array.isArray(e)?[]:{};let m=0;const g=AP(e);for(const _ in g){if(!Object.prototype.hasOwnProperty.call(g,_))continue;if(m>=r){h[_]="[MaxProperties ~]";break}const x=g[_];h[_]=g_(_,x,c-1,r,i),m++}return l(e),h}function KD(t,e){try{if(t==="domain"&&e&&typeof e=="object"&&e._events)return"[Domain]";if(t==="domainEmitter")return"[DomainEmitter]";if(typeof global<"u"&&e===global)return"[Global]";if(typeof window<"u"&&e===window)return"[Window]";if(typeof document<"u"&&e===document)return"[Document]";if(TP(e))return SP(e);if(XO(e))return"[SyntheticEvent]";if(typeof e=="number"&&!Number.isFinite(e))return`[${e}]`;if(typeof e=="function")return`[Function: ${Cs(e)}]`;if(typeof e=="symbol")return`[${String(e)}]`;if(typeof e=="bigint")return`[BigInt: ${String(e)}]`;const n=JD(e);return/^HTML(\w*)Element$/.test(n)?`[HTMLElement: ${n}]`:`[object ${n}]`}catch(n){return`**non-serializable** (${n})`}}function JD(t){const e=Object.getPrototypeOf(t);return e!=null&&e.constructor?e.constructor.name:"null prototype"}function QD(t){return~-encodeURI(t).split(/%..|./).length}function XD(t){return QD(JSON.stringify(t))}function ZD(){const t=new WeakSet;function e(r){return t.has(r)?!0:(t.add(r),!1)}function n(r){t.delete(r)}return[e,n]}function qo(t,e=[]){return[t,e]}function ej(t,e){const[n,r]=t;return[n,[...r,e]]}function v_(t,e){const n=t[1];for(const r of n){const i=r[0].type;if(e(r,i))return!0}return!1}function tj(t,e){return v_(t,(n,r)=>e.includes(r))}function y_(t){const e=wm(it);return e.encodePolyfill?e.encodePolyfill(t):new TextEncoder().encode(t)}function nj(t){const[e,n]=t;let r=JSON.stringify(e);function i(s){typeof r=="string"?r=typeof s=="string"?r+s:[y_(r),s]:r.push(typeof s=="string"?y_(s):s)}for(const s of n){const[l,u]=s;if(i(` 46${JSON.stringify(l)} 47`),typeof u=="string"||u instanceof Uint8Array)i(u);else{let c;try{c=JSON.stringify(u)}catch{c=JSON.stringify(bi(u))}i(c)}}return typeof r=="string"?r:rj(r)}function rj(t){const e=t.reduce((i,s)=>i+s.length,0),n=new Uint8Array(e);let r=0;for(const i of t)n.set(i,r),r+=i.length;return n}function ij(t){return[{type:"span"},t]}function sj(t){const e=typeof t.data=="string"?y_(t.data):t.data;return[{type:"attachment",length:e.length,filename:t.filename,content_type:t.contentType,attachment_type:t.attachmentType},e]}const oR={sessions:"session",event:"error",client_report:"internal",user_report:"default",profile_chunk:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",raw_security:"security",log:"log_item",trace_metric:"metric"};function oj(t){return t in oR}function UE(t){return oj(t)?oR[t]:t}function Ex(t){if(!(t!=null&&t.sdk))return;const{name:e,version:n}=t.sdk;return{name:e,version:n}}function aR(t,e,n,r){var s;const i=(s=t.sdkProcessingMetadata)==null?void 0:s.dynamicSamplingContext;return{event_id:t.event_id,sent_at:new Date().toISOString(),...e&&{sdk:e},...!!n&&r&&{dsn:el(r)},...i&&{trace:i}}}function aj(t,e){var r,i,s,l;if(!e)return t;const n=t.sdk||{};return t.sdk={...n,name:n.name||e.name,version:n.version||e.version,integrations:[...((r=t.sdk)==null?void 0:r.integrations)||[],...e.integrations||[]],packages:[...((i=t.sdk)==null?void 0:i.packages)||[],...e.packages||[]],settings:(s=t.sdk)!=null&&s.settings||e.settings?{...(l=t.sdk)==null?void 0:l.settings,...e.settings}:void 0},t}function lj(t,e,n,r){const i=Ex(n),s={sent_at:new Date().toISOString(),...i&&{sdk:i},...!!r&&e&&{dsn:el(e)}},l="aggregates"in t?[{type:"sessions"},t]:[{type:"session"},t.toJSON()];return qo(s,[l])}function uj(t,e,n,r){const i=Ex(n),s=t.type&&t.type!=="replay_event"?t.type:"event";aj(t,n==null?void 0:n.sdk);const l=aR(t,i,r,e);return delete t.sdkProcessingMetadata,qo(l,[[{type:s},t]])}function cj(t,e){function n(_){return!!_.trace_id&&!!_.public_key}const r=Rs(t[0]),i=e==null?void 0:e.getDsn(),s=e==null?void 0:e.getOptions().tunnel,l={sent_at:new Date().toISOString(),...n(r)&&{trace:r},...!!s&&i&&{dsn:el(i)}},{beforeSendSpan:u,ignoreSpans:c}=(e==null?void 0:e.getOptions())||{},p=c!=null&&c.length?t.filter(_=>!Sd(vt(_),c)):t,h=t.length-p.length;h&&(e==null||e.recordDroppedEvent("before_send","span",h));const m=u?_=>{const x=vt(_),S=iR(u)?x:u(x);return S||(m_(),x)}:vt,g=[];for(const _ of p){const x=m(_);x&&g.push(ij(x))}return qo(l,g)}function dj(t){if(!Te)return;const{description:e="< unknown name >",op:n="< unknown op >",parent_span_id:r}=vt(t),{spanId:i}=t.spanContext(),s=$o(t),l=Mn(t),u=l===t,c=`[Tracing] Starting ${s?"sampled":"unsampled"} ${u?"root ":""}span`,p=[`op: ${n}`,`name: ${e}`,`ID: ${i}`];
47if(r&&p.push(`parent ID: ${r}`),!u){const{op:h,description:m}=vt(l);p.push(`root ID: ${l.spanContext().spanId}`),h&&p.push(`root op: ${h}`),m&&p.push(`root description: ${m}`)}ae.log(`${c} 48 ${p.join(` 49 `)}`)}function pj(t){if(!Te)return;const{description:e="< unknown name >",op:n="< unknown op >"}=vt(t),{spanId:r}=t.spanContext(),s=Mn(t)===t,l=`[Tracing] Finishing "${n}" ${s?"root ":""}span "${e}" with ID ${r}`;ae.log(l)}function hj(t,e,n,r=lr()){const i=r&&Mn(r);i&&(Te&&ae.log(`[Measurement] Setting measurement on root span: ${t} = ${e} ${n}`),i.addEvent(t,{[ep]:e,[Zd]:n}))}function zE(t){if(!t||t.length===0)return;const e={};return t.forEach(n=>{const r=n.attributes||{},i=r[Zd],s=r[ep];typeof i=="string"&&typeof s=="number"&&(e[n.name]={value:s,unit:i})}),e}function Va(t){return t.getOptions().traceLifecycle==="stream"}const BE=1e3;class Tm{constructor(e={}){this._traceId=e.traceId||Ps(),this._spanId=e.spanId||Es(),this._startTime=e.startTimestamp||fn(),this._links=e.links,this._attributes={},this.setAttributes({[gn]:"manual",[Ci]:e.op,...e.attributes}),this._name=e.name,e.parentSpanId&&(this._parentSpanId=e.parentSpanId),"sampled"in e&&(this._sampled=e.sampled),e.endTimestamp&&(this._endTime=e.endTimestamp),this._events=[],this._isStandaloneSpan=e.isStandalone,this._endTime&&this._onSpanEnded()}addLink(e){return this._links?this._links.push(e):this._links=[e],this}addLinks(e){return this._links?this._links.push(...e):this._links=e,this}recordException(e,n){}spanContext(){const{_spanId:e,_traceId:n,_sampled:r}=this;
49return{spanId:e,traceId:n,traceFlags:r?Cm:HP}}setAttribute(e,n){return n===void 0?delete this._attributes[e]:this._attributes[e]=n,this}setAttributes(e){return Object.keys(e).forEach(n=>this.setAttribute(n,e[n])),this}updateStartTime(e){this._startTime=ks(e)}setStatus(e){return this._status=e,this}updateName(e){return this._name=e,this.setAttribute(Wi,"custom"),this}end(e){this._endTime||(this._endTime=ks(e),pj(this),this._onSpanEnded())}getSpanJSON(){return{data:this._attributes,description:this._name,op:this._attributes[Ci],parent_span_id:this._parentSpanId,span_id:this._spanId,start_timestamp:this._startTime,status:XP(this._status),timestamp:this._endTime,trace_id:this._traceId,origin:this._attributes[gn],profile_id:this._attributes[Sx],exclusive_time:this._attributes[Bo],measurements:zE(this._events),is_segment:this._isStandaloneSpan&&Mn(this)===this||void 0,segment_id:this._isStandaloneSpan?Mn(this).spanContext().spanId:void 0,links:VP(this._links)}}getStreamedSpanJSON(){return{name:this._name??"",span_id:this._spanId,trace_id:this._traceId,parent_span_id:this._parentSpanId,start_timestamp:this._startTime,end_timestamp:this._endTime??this._startTime,is_segment:this._isStandaloneSpan||this===Mn(this),status:ZP(this._status),attributes:this._attributes,links:GP(this._links)}}isRecording(){return!this._endTime&&!!this._sampled}addEvent(e,n,r){Te&&ae.log("[Tracing] Adding an event to span:",e);const i=$E(n)?n:r||fn(),s=$E(n)?{}:n||{},l={name:e,time:ks(i),attributes:s};return this._events.push(l),this}isStandaloneSpan(){return!!this._isStandaloneSpan}_onSpanEnded(){const e=Xe();if(e&&(e.emit("spanEnd",this),this._isStandaloneSpan||e.emit("afterSpanEnd",this)),!(this._isStandaloneSpan||this===Mn(this)))return;if(this._isStandaloneSpan){this._sampled?mj(cj([this],e)):(Te&&ae.log("[Tracing] Discarding standalone span because its trace was not chosen to be sampled."),e&&e.recordDroppedEvent("sample_rate","span"));return}else if(e&&Va(e)){e.emit("afterSegmentSpanEnd",this);return}const r=this._convertSpanToTransaction();r&&(Pf(this).scope||_t()).captureEvent(r)}_convertSpanToTransaction(){var h;if(!qE(vt(this)))return;this._name||(Te&&ae.warn("Transaction has no name, falling back to `<unlabeled transaction>`."),this._name="<unlabeled transaction>");const{scope:e,isolationScope:n}=Pf(this),r=(h=e==null?void 0:e.getScopeData().sdkProcessingMetadata)==null?void 0:h.normalizedRequest;if(this._sampled!==!0)return;const s=sf(this).filter(m=>m!==this&&!fj(m)).map(m=>vt(m)).filter(qE),l=this._attributes[Wi];delete this._attributes[ME],s.forEach(m=>{delete m.data[ME]});const u={contexts:{trace:BD(this)},spans:s.length>BE?s.sort((m,g)=>m.start_timestamp-g.start_timestamp).slice(0,BE):s,start_timestamp:this._startTime,timestamp:this._endTime,transaction:this._name,type:"transaction",sdkProcessingMetadata:{capturedSpanScope:e,capturedSpanIsolationScope:n,dynamicSamplingContext:Rs(this)},request:r,...l&&{transaction_info:{source:l}}},c=zE(this._events);return c&&Object.keys(c).length&&(Te&&ae.log("[Measurements] Adding measurements to transaction event",JSON.stringify(c,void 0,2)),u.measurements=c),u}}function $E(t){return t&&typeof t=="number"||t instanceof Date||Array.isArray(t)}function qE(t){return!!t.start_timestamp&&!!t.timestamp&&!!t.span_id&&!!t.trace_id}function fj(t){return t instanceof Tm&&t.isStandaloneSpan()}function mj(t){const e=Xe();if(!e)return;const n=t[1];if(!n||n.length===0){e.recordDroppedEvent("before_send","span");return}e.sendEnvelope(t)}function gj(t,e,n){if(!wi(t))return[!1];let r,i;typeof t.tracesSampler=="function"?(i=t.tracesSampler({...e,inheritOrSampleWith:u=>typeof e.parentSampleRate=="number"?e.parentSampleRate:typeof e.parentSampled=="boolean"?Number(e.parentSampled):u}),r=!0):e.parentSampled!==void 0?i=e.parentSampled:typeof t.tracesSampleRate<"u"&&(i=t.tracesSampleRate,r=!0);const s=Ha(i);if(s===void 0)return Te&&ae.warn(`[Tracing] Discarding root span because of invalid sample rate. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(i)} of type ${JSON.stringify(typeof i)}.`),[!1];if(!s)return Te&&ae.log(`[Tracing] Discarding transaction because ${typeof t.tracesSampler=="function"?"tracesSampler returned 0 or false":"a negative sampling decision was inherited or tracesSampleRate is set to 0"}`),[!1,s,r];const l=n<s;return l||Te&&ae.log(`[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = ${Number(i)})`),[l,s,r]}const vj="__SENTRY_SUPPRESS_TRACING__";function tl(t){const e=uR();if(e.startInactiveSpan)return e.startInactiveSpan(t);const n=_j(t),{forceTransaction:r,parentSpan:i}=t;return(t.scope?l=>Xd(t.scope,l):i!==void 0?l=>lR(i,l):l=>l())(()=>{const l=_t(),u=xj(l,i);
49return t.onlyIfParent&&!u?new Ki:yj({parentSpan:u,spanArguments:n,forceTransaction:r,scope:l})})}function lR(t,e){const n=uR();return n.withActiveSpan?n.withActiveSpan(t,e):Xd(r=>(bd(r,t||void 0),e(r)))}function yj({parentSpan:t,spanArguments:e,forceTransaction:n,scope:r}){if(!wi()){const u=new Ki;if(n||!t){const c={sampled:"false",sample_rate:"0",transaction:e.name,...Rs(u)};of(u,c)}return u}const i=Xe();if(Sj(i,e))return kx(r)||i==null||i.recordDroppedEvent("ignored","span"),new Ki({dropReason:"ignored",traceId:(t==null?void 0:t.spanContext().traceId)??r.getPropagationContext().traceId});const s=Ur();let l;if(t&&!n)l=bj(t,r,e),eR(t,l);else if(t){const u=Rs(t),{traceId:c,spanId:p}=t.spanContext(),h=$o(t);l=WE({traceId:c,parentSpanId:p,...e},r,h),of(l,u)}else{const{traceId:u,dsc:c,parentSpanId:p,sampled:h}={...s.getPropagationContext(),...r.getPropagationContext()};l=WE({traceId:u,parentSpanId:p,...e},r,h),c&&of(l,c)}return dj(l),CD(l,r,s),l}function _j(t){const n={isStandalone:(t.experimental||{}).standalone,...t};if(t.startTime){const r={...n};return r.startTimestamp=ks(t.startTime),delete r.startTime,r}return n}function uR(){const t=Xa();return qu(t)}function WE(t,e,n){var S;const r=Xe(),i=(r==null?void 0:r.getOptions())||{},{name:s=""}=t,l={spanAttributes:{...t.attributes},spanName:s,parentSampled:n};r==null||r.emit("beforeSampling",l,{decision:!1});const u=l.parentSampled??n,c=l.spanAttributes,p=e.getPropagationContext(),h=kx(e),[m,g,_]=h?[!1]:gj(i,{name:s,parentSampled:u,attributes:c,parentSampleRate:Ha((S=p.dsc)==null?void 0:S.sample_rate)},p.sampleRand),x=new Tm({...t,attributes:{[Wi]:"custom",[xx]:g!==void 0&&_?g:void 0,...c},sampled:m});return!m&&r&&!h&&(Te&&ae.log("[Tracing] Discarding root span because its trace was not chosen to be sampled."),r.recordDroppedEvent("sample_rate",Va(r)?"span":"transaction")),r&&r.emit("spanStart",x),x}function bj(t,e,n){const{spanId:r,traceId:i}=t.spanContext(),s=kx(e),l=s?!1:$o(t),u=l?new Tm({...n,parentSpanId:r,traceId:i,sampled:l}):new Ki({traceId:i});eR(t,u);const c=Xe();return c&&(Va(c)&&u instanceof Ki&&(t instanceof Ki&&t.dropReason?(u.dropReason=t.dropReason,c.recordDroppedEvent(t.dropReason,"span")):s||(u.dropReason="sample_rate",c.recordDroppedEvent("sample_rate","span"))),c.emit("spanStart",u),n.endTimestamp&&(c.emit("spanEnd",u),c.emit("afterSpanEnd",u))),u}function xj(t,e){if(e)return e;if(e===null)return;const n=Tf(t);if(!n)return;const r=Xe();return(r?r.getOptions():{}).parentSpanIsAlwaysRootSpan?Mn(n):n}function Sj(t,e){var r;const n=t==null?void 0:t.getOptions().ignoreSpans;return!t||!Va(t)||!(n!=null&&n.length)?!1:Sd({description:e.name||"",op:((r=e.attributes)==null?void 0:r[Ci])||e.op},n)}function kx(t){return t.getScopeData().sdkProcessingMetadata[vj]===!0}const af={idleTimeout:1e3,finalTimeout:3e4,childSpanTimeout:15e3},wj="heartbeatFailed",Ej="idleTimeout",kj="finalTimeout",Cj="externalFinish";function cR(t,e={}){const n=new Map;let r=!1,i,s=Cj,l=!e.disableAutoFinish;const u=[],{idleTimeout:c=af.idleTimeout,finalTimeout:p=af.finalTimeout,childSpanTimeout:h=af.childSpanTimeout,beforeSpanEnd:m,trimIdleSpanEndTimestamp:g=!0}=e,_=Xe();if(!_||!wi()){const T=new Ki,L={sample_rate:"0",sampled:"false",...Rs(T)};return of(T,L),T}const x=_t(),S=lr(),w=Tj(t);w.end=new Proxy(w.end,{apply(T,L,O){if(m&&m(w),L instanceof Ki)return;const[j,...B]=O,q=j||fn(),G=ks(q),W=sf(w).filter(Q=>Q!==w),ie=vt(w);if(!W.length||!g)return N(G),Reflect.apply(T,L,[G,...B]);const se=_.getOptions().ignoreSpans,de=W==null?void 0:W.reduce((Q,D)=>{const Y=vt(D);return!Y.timestamp||se&&Sd(Y,se)?Q:Q?Math.max(Q,Y.timestamp):Y.timestamp},void 0),$=ie.start_timestamp,Z=Math.min($?$+p/1e3:1/0,Math.max($||-1/0,Math.min(G,de||1/0)));return N(Z),Reflect.apply(T,L,[Z,...B])}});function C(){i&&(clearTimeout(i),i=void 0)}function R(T){C(),i=setTimeout(()=>{!r&&n.size===0&&l&&(s=Ej,w.end(T))},c)}function I(T){i=setTimeout(()=>{!r&&l&&(s=wj,w.end(T))},h)}function P(T){C(),n.set(T,!0);const L=fn();I(L+h/1e3)}function A(T){if(n.has(T)&&n.delete(T),n.size===0){const L=fn();R(L+c/1e3)}}function N(T){r=!0,n.clear(),u.forEach(W=>W()),bd(x,S);const L=vt(w),{start_timestamp:O}=L;if(!O)return;L.data[xd]||w.setAttribute(xd,s);const B=L.status;(!B||B==="unknown")&&w.setStatus({code:km}),ae.log(`[Tracing] Idle span "${L.op}" finished`);const q=sf(w).filter(W=>W!==w);let G=0;q.forEach(W=>{W.isRecording()&&(W.setStatus({code:wn,message:"cancelled"}),W.end(T),Te&&ae.log("[Tracing] Cancelling span since span ended early",JSON.stringify(W,void 0,2)));const ie=vt(W),{timestamp:se=0,start_timestamp:de=0}=ie,$=de<=T,Z=(p+c)/1e3,Q=se-de<=Z;if(Te){const D=JSON.stringify(W,void 0,2);$?Q||ae.log("[Tracing] Discarding span since it finished after idle span final timeout",D):ae.log("[Tracing] Discarding span since it happened after idle span was finished",D)}(!Q||!$)&&(HD(w,W),G++)}),G>0&&w.setAttribute("sentry.idle_span_discarded_spans",G)}return u.push(_.on("spanStart",T=>{if(r||T===w||vt(T).timestamp||T instanceof Tm&&T.isStandaloneSpan())return;sf(w).includes(T)&&P(T.spanContext().spanId)})),u.push(_.on("spanEnd",T=>{r||A(T.spanContext().spanId)})),u.push(_.on("idleSpanEnableAutoFinish",T=>{T===w&&(l=!0,R(),n.size&&I())})),e.disableAutoFinish||R(),setTimeout(()=>{r||(w.setStatus({code:wn,message:"deadline_exceeded"}),s=kj,w.end())},p),w}function Tj(t){const e=tl(t);
vendor: 4,584 bytes, line 49
49return bd(_t(),e),Te&&ae.log("[Tracing] Started span is an idle span"),e}function Pj(t,e){const{fingerprint:n,span:r,breadcrumbs:i,sdkProcessingMetadata:s}=e;Rj(t,e),r&&Lj(t,r),Mj(t,n),Aj(t,i),Ij(t,s)}function HE(t,e){const{extra:n,tags:r,attributes:i,user:s,contexts:l,level:u,sdkProcessingMetadata:c,breadcrumbs:p,fingerprint:h,eventProcessors:m,attachments:g,propagationContext:_,transactionName:x,span:S}=e;Lc(t,"extra",n),Lc(t,"tags",r),Lc(t,"attributes",i),Lc(t,"user",s),Lc(t,"contexts",l),t.sdkProcessingMetadata=Qd(t.sdkProcessingMetadata,c,2),u&&(t.level=u),x&&(t.transactionName=x),S&&(t.span=S),p.length&&(t.breadcrumbs=[...t.breadcrumbs,...p]),h.length&&(t.fingerprint=[...t.fingerprint,...h]),m.length&&(t.eventProcessors=[...t.eventProcessors,...m]),g.length&&(t.attachments=[...t.attachments,...g]),t.propagationContext={...t.propagationContext,..._}}function Lc(t,e,n){t[e]=Qd(t[e],n,1)}function dR(t,e){const n=_D().getScopeData();return t&&HE(n,t.getScopeData()),e&&HE(n,e.getScopeData()),n}function Rj(t,e){const{extra:n,tags:r,user:i,contexts:s,level:l,transactionName:u}=e;Object.keys(n).length&&(t.extra={...n,...t.extra}),Object.keys(r).length&&(t.tags={...r,...t.tags}),Object.keys(i).length&&(t.user={...i,...t.user}),Object.keys(s).length&&(t.contexts={...s,...t.contexts}),l&&(t.level=l),u&&t.type!=="transaction"&&(t.transaction=u)}function Aj(t,e){const n=[...t.breadcrumbs||[],...e];t.breadcrumbs=n.length?n:void 0}function Ij(t,e){t.sdkProcessingMetadata={...t.sdkProcessingMetadata,...e}}function Lj(t,e){t.contexts={trace:$D(e),...t.contexts},t.sdkProcessingMetadata={dynamicSamplingContext:Rs(e),...t.sdkProcessingMetadata};const n=Mn(e),r=vt(n).description;r&&!t.transaction&&t.type==="transaction"&&(t.transaction=r)}function Mj(t,e){t.fingerprint=t.fingerprint?Array.isArray(t.fingerprint)?t.fingerprint:[t.fingerprint]:[],e&&(t.fingerprint=t.fingerprint.concat(e)),t.fingerprint.length||delete t.fingerprint}const ty=0,VE=1,GE=2;function tp(t){return new wd(e=>{e(t)})}function Cx(t){return new wd((e,n)=>{n(t)})}class wd{constructor(e){this._state=ty,this._handlers=[],this._runExecutor(e)}then(e,n){return new wd((r,i)=>{this._handlers.push([!1,s=>{if(!e)r(s);else try{r(e(s))}catch(l){i(l)}},s=>{if(!n)i(s);else try{r(n(s))}catch(l){i(l)}}]),this._executeHandlers()})}catch(e){return this.then(n=>n,e)}finally(e){return new wd((n,r)=>{let i,s;return this.then(l=>{s=!1,i=l,e&&e()},l=>{s=!0,i=l,e&&e()}).then(()=>{if(s){r(i);return}n(i)})})}_executeHandlers(){if(this._state===ty)return;const e=this._handlers.slice();this._handlers=[],e.forEach(n=>{n[0]||(this._state===VE&&n[1](this._value),this._state===GE&&n[2](this._value),n[0]=!0)})}_runExecutor(e){const n=(s,l)=>{if(this._state===ty){if(Yd(l)){l.then(r,i);return}this._state=s,this._value=l,this._executeHandlers()}},r=s=>{n(VE,s)},i=s=>{n(GE,s)};try{e(r,i)}catch(s){i(s)}}}function Nj(t,e,n,r=0){try{const i=__(e,n,t,r);return Yd(i)?i:tp(i)}catch(i){return Cx(i)}}function __(t,e,n,r){const i=n[r];if(!t||!i)return t;const s=i({...t},e);return Te&&s===null&&ae.log(`Event processor "${i.id||"?"}" dropped event`),Yd(s)?s.then(l=>__(l,e,n,r+1)):__(s,e,n,r+1)}let ls,YE,KE,no;function Oj(t){const e=it._sentryDebugIds,n=it._debugIds;if(!e&&!n)return{};const r=e?Object.keys(e):[],i=n?Object.keys(n):[];if(no&&r.length===YE&&i.length===KE)return no;YE=r.length,KE=i.length,no={},ls||(ls={});const s=(l,u)=>{for(const c of l){const p=u[c],h=ls==null?void 0:ls[c];if(h&&no&&p)no[h[0]]=p,ls&&(ls[c]=[h[0],p]);else if(p){const m=t(c);for(let g=m.length-1;g>=0;g--){const _=m[g],x=_==null?void 0:_.filename;if(x&&no&&ls){no[x]=p,ls[c]=[x,p];break}}}}};return e&&s(r,e),n&&s(i,n),no}function pR(t,e,n,r,i,s){const{normalizeDepth:l=3,normalizeMaxBreadth:u=1e3}=t,c={...e,event_id:e.event_id||n.event_id||jr(),timestamp:e.timestamp||Za()},p=n.integrations||t.integrations.map(C=>C.name);Dj(c,t),Uj(c,p),i&&i.emit("applyFrameMetadata",e),e.type===void 0&&jj(c,t.stackParser);const h=Bj(r,n.captureContext);n.mechanism&&wu(c,n.mechanism);const m=i?i.getEventProcessors():[],g=dR(s,h),_=[...n.attachments||[],...g.attachments];_.length&&(n.attachments=_),Pj(c,g);const x=[...m,...g.eventProcessors];return(n.data&&n.data.__sentry__===!0?tp(c):Nj(x,c,n)).then(C=>(C&&Fj(C),typeof l=="number"&&l>0?zj(C,l,u):C))}function Dj(t,e){var u,c;const{environment:n,release:r,dist:i,maxValueLength:s}=e;t.environment=t.environment||n||wx,!t.release&&r&&(t.release=r),!t.dist&&i&&(t.dist=i);const l=t.request;l!=null&&l.url&&s&&(l.url=c_(l.url,s)),s&&((c=(u=t.exception)==null?void 0:u.values)==null||c.forEac
49h(p=>{p.value&&(p.value=c_(p.value,s))}))}function jj(t,e){var r,i;const n=Oj(e);(i=(r=t.exception)==null?void 0:r.values)==null||i.forEach(s=>{var l,u;(u=(l=s.stacktrace)==null?void 0:l.frames)==null||u.forEach(c=>{c.filename&&(c.debug_id=n[c.filename])})})}function Fj(t){var r,i;const e={};if((i=(r=t.exception)==null?void 0:r.values)==null||i.forEach(s=>{var l,u;(u=(l=s.stacktrace)==null?void 0:l.frames)==null||u.forEach(c=>{c.debug_id&&(c.abs_path?e[c.abs_path]=c.debug_id:c.filename&&(e[c.filename]=c.debug_id),delete c.debug_id)})}),Object.keys(e).length===0)return;t.debug_meta=t.debug_meta||{},t.debug_meta.images=t.debug_meta.images||[];const n=t.debug_meta.images;Object.entries(e).forEach(([s,l])=>{n.push({type:"sourcemap",code_file:s,debug_id:l})})}function Uj(t,e){e.length>0&&(t.sdk=t.sdk||{},t.sdk.integrations=[...t.sdk.integrations||[],...e])}function zj(t,e,n){var i,s;if(!t)return null;const r={...t,...t.breadcrumbs&&{breadcrumbs:t.breadcrumbs.map(l=>({...l,...l.data&&{data:bi(l.data,e,n)}}))},...t.user&&{user:bi(t.user,e,n)},...t.contexts&&{contexts:bi(t.contexts,e,n)},...t.extra&&{extra:bi(t.extra,e,n)}};return(i=t.contexts)!=null&&i.trace&&r.contexts&&(r.contexts.trace=t.contexts.trace,t.contexts.trace.data&&(r.contexts.trace.data=bi(t.contexts.trace.data,e,n))),t.spans&&(r.spans=t.spans.map(l=>({...l,...l.data&&{data:bi(l.data,e,n)}}))),(s=t.contexts)!=null&&s.flags&&r.contexts&&(r.contexts.flags=bi(t.contexts.flags,3,n)),r}function Bj(t,e){if(!e)return t;const n=t?t.clone():new Ji;return n.update(e),n}function $j(t){if(t)return qj(t)?{captureContext:t}:Hj(t)?{captureContext:t}:t}function qj(t){return t instanceof Ji||typeof t=="function"}const Wj=["user","level","extra","contexts","tags","fingerprint","propagationContext"];function Hj(t){return Object.keys(t).some(e=>Wj.includes(e))}function Tx(t,e){return _t().captureException(t,$j(e))}function hR(t,e){return _t().captureEvent(t,e)}function fR(t,e){Ur().setContext(t,e)}function Vj(){return Ur().lastEventId()}function Gj(){const t=Xe();return(t==null?void 0:t.getOptions().enabled)!==!1&&!!(t!=null&&t.getTransport())}function Yj(t){Ur().addEventProcessor(t)}function JE(t){const e=Ur(),{user:n}=dR(e,_t()),{userAgent:r}=it.navigator||{},i=aD({user:n,...r&&{userAgent:r},...t}),s=e.getSession();return(s==null?void 0:s.status)==="ok"&&Eu(s,{status:"exited"}),mR(),e.setSession(i),i}function mR(){const t=Ur(),n=_t().getSession()||t.getSession();n&&lD(n),gR(),t.setSession()}function gR(){const t=Ur(),e=Xe(),n=t.getSession();n&&e&&e.captureSession(n)}function ny(t=!1){if(t){mR();return}gR()}const Kj="7";function vR(t){const e=t.protocol?`${t.protocol}:`:"",n=t.port?`:${t.port}`:"";return`${e}//${t.host}${n}${t.path?`/${t.path}`:""}/api/`}function Jj(t){return`${vR(t)}${t.projectId}/envelope/`}function Qj(t,e){const n={sentry_version:Kj};return t.publicKey&&(n.sentry_key=t.publicKey),e&&(n.sentry_client=`${e.name}/${e.version}`),new URLSearchParams(n).toString()}function Xj(t,e,n){return e||`${Jj(t)}?${Qj(t,n)}`}function Zj(t,e){const n=BP(t);if(!n)return"";const r=`${vR(n)}embed/error-page/`;let i=`dsn=${el(n)}`;for(const s in e)if(s!=="dsn"&&s!=="onClose")if(s==="user"){const l=e.user;if(!l)continue;l.name&&(i+=`&name=${encodeURIComponent(l.name)}`),l.email&&(i+=`&email=${encodeURIComponent(l.email)}`)}else i+=`&${encodeURIComponent(s)}=${encodeURIComponent(e[s])}`;return`${r}?${i}`}const QE=[];function eF(t){const e={};return t.forEach(n=>{const{name:r}=n,i=e[r];i&&!i.isDefaultInstance&&n.isDefaultInstance||(e[r]=n)}),Object.values(e)}function tF(t){const e=t.defaultIntegrations||[],n=t.integrations;e.forEach(i=>{i.isDefaultInstance=!0});let r;if(Array.isArray(n))r=[...e,...n];else if(typeof n=="function"){const i=n(e);r=Array.isArray(i)?i:[i]}else r=e;return eF(r)}function nF(t,e){const n={};return e.forEach(r=>{r!=null&&r.beforeSetup&&r.beforeSetup(t)}),e.forEach(r=>{r&&yR(t,r,n)}),n}function XE(t,e){for(const n of e)n!=null&&n.afterAllSetup&&n.afterAllSetup(t)}function yR(t,e,n){if(n[e.name]){Te&&ae.log(`Integration skipped because it was already installed: ${e.name}`);return}if(n[e.name]=e,!QE.includes(e.name)&&typeof e.setupOnce=="function"&&(e.setupOnce(),QE.push(e.name)),e.setup&&typeof e.setup=="function"&&e.setup(t),typeof e.preprocessEvent=="function"){const r=e.preprocessEvent.bind(e);t.on("preprocessEvent",(i,s)=>r(i,s,t))}if(typeof e.processEvent=="function"){const r=e.processEvent.bind(e),i=Object.assign((s,l)=>r(s,l,t),{id:e.name});t.addEventProcessor(i)}Te&&ae.log(`Integration installed: ${e.name}`)}function rF(t){return[{type:"log",item_count:t.length,content_type:"application/vnd.sentry.items.log+json"},{items:t}]}function iF(t,e,n,r){const i={};return e!=null&&e.sdk&&(i.sdk={name:e.sdk.name,version:e.sdk.version}),n&&r&&(i.dsn=el(r)),qo(i,[rF(t)])}function b_(t,e){const n=e??sF(t)??[];
49if(n.length===0)return;const r=t.getOptions(),i=iF(n,r._metadata,r.tunnel,t.getDsn());_R().set(t,[]),t.emit("flushLogs"),t.sendEnvelope(i)}function sF(t){return _R().get(t)}function _R(){return zu("clientToLogBufferMap",()=>new WeakMap)}function oF(t){return[{type:"trace_metric",item_count:t.length,content_type:"application/vnd.sentry.items.trace-metric+json"},{items:t}]}function aF(t,e,n,r){const i={};return e!=null&&e.sdk&&(i.sdk={name:e.sdk.name,version:e.sdk.version}),n&&r&&(i.dsn=el(r)),qo(i,[oF(t)])}function bR(t,e){const n=e??lF(t)??[];if(n.length===0)return;const r=t.getOptions(),i=aF(n,r._metadata,r.tunnel,t.getDsn());xR().set(t,[]),t.emit("flushMetrics"),t.sendEnvelope(i)}function lF(t){return xR().get(t)}function xR(){return zu("clientToMetricBufferMap",()=>new WeakMap)}function SR(t){return typeof t=="object"&&typeof t.unref=="function"&&t.unref(),t}const Px=Symbol.for("SentryBufferFullError");function Rx(t=100){const e=new Set;function n(){return e.size<t}function r(l){e.delete(l)}function i(l){if(!n())return Cx(Px);const u=l();return e.add(u),u.then(()=>r(u),()=>r(u)),u}function s(l){if(!e.size)return tp(!0);const u=Promise.allSettled(Array.from(e)).then(()=>!0);if(!l)return u;const c=[u,new Promise(p=>SR(setTimeout(()=>p(!1),l)))];return Promise.race(c)}return{get $(){return Array.from(e)},add:i,drain:s}}const uF=60*1e3;function cF(t,e=Jd()){const n=parseInt(`${t}`,10);if(!isNaN(n))return n*1e3;const r=Date.parse(`${t}`);return isNaN(r)?uF:r-e}function dF(t,e){return t[e]||t.all||0}function wR(t,e,n=Jd()){return dF(t,e)>n}function ER(t,{statusCode:e,headers:n},r=Jd()){const i={...t},s=n==null?void 0:n["x-sentry-rate-limits"],l=n==null?void 0:n["retry-after"];if(s)for(const u of s.trim().split(",")){const[c,p,,,h]=u.split(":",5),m=parseInt(c,10),g=(isNaN(m)?60:m)*1e3;if(!p)i.all=r+g;else for(const _ of p.split(";
49"))_==="metric_bucket"?(!h||h.split(";").includes("custom"))&&(i[_]=r+g):i[_]=r+g}else l?i.all=r+cF(l,r):e===429&&(i.all=r+60*1e3);return i}const kR=64;function pF(t,e,n=Rx(t.bufferSize||kR)){let r={};const i=l=>n.drain(l);function s(l){const u=[];if(v_(l,(m,g)=>{const _=UE(g);wR(r,_)?t.recordDroppedEvent("ratelimit_backoff",_):u.push(m)}),u.length===0)return Promise.resolve({});const c=qo(l[0],u),p=m=>{if(tj(c,["client_report"])){Te&&ae.warn(`Dropping client report. Will not send outcomes (reason: ${m}).`);return}v_(c,(g,_)=>{t.recordDroppedEvent(m,UE(_))})},h=()=>e({body:nj(c)}).then(m=>m.statusCode===413?(Te&&ae.error("Sentry responded with status code 413. Envelope was discarded due to exceeding size limits."),p("send_error"),m):(Te&&m.statusCode!==void 0&&(m.statusCode<200||m.statusCode>=300)&&ae.warn(`Sentry responded with status code ${m.statusCode} to sent event.`),r=ER(r,m),m),m=>{throw p("network_error"),Te&&ae.error("Encountered error running transport request:",m),m});return n.add(h).then(m=>m,m=>{if(m===Px)return Te&&ae.error("Skipped sending event because buffer is full."),p("queue_overflow"),Promise.resolve({});throw m})}return{send:s,flush:i}}function hF(t,e,n){const r=[{type:"client_report"},{timestamp:Za(),discarded_events:t}];return qo(e?{dsn:e}:{},[r])}function CR(t){const e=[];t.message&&e.push(t.message);try{const n=t.exception.values[t.exception.values.length-1];n!=null&&n.value&&(e.push(n.value),n.type&&e.push(`${n.type}: ${n.value}`))}catch{}return e}function fF(t){var c;const{trace_id:e,parent_span_id:n,span_id:r,status:i,origin:s,data:l,op:u}=((c=t.contexts)==null?void 0:c.trace)??{};return{data:l??{},description:t.transaction,op:u,parent_span_id:n,span_id:r??"",start_timestamp:t.start_timestamp??0,status:i,timestamp:t.timestamp,trace_id:e??"",origin:s,profile_id:l==null?void 0:l[Sx],exclusive_time:l==null?void 0:l[Bo],measurements:t.measurements,is_segment:!0}}function mF(t){return{type:"transaction",timestamp:t.timestamp,start_timestamp:t.start_timestamp,transaction:t.description,contexts:{trace:{trace_id:t.trace_id,span_id:t.span_id,parent_span_id:t.parent_span_id,op:t.op,status:t.status,origin:t.origin,data:{...t.data,...t.profile_id&&{[Sx]:t.profile_id},...t.exclusive_time&&{[Bo]:t.exclusive_time}}}},measurements:t.measurements}}const ZE="Not capturing exception because it's already been captured.",ek="Discarded session because of missing or non-string release",TR=Symbol.for("SentryInternalError"),PR=Symbol.for("SentryDoNotSendEventError"),gF=5e3;function lf(t){return{message:t,[TR]:!0}}function ry(t){return{message:t,[PR]:!0}}function tk(t){return!!t&&typeof t=="object"&&TR in t}function nk(t){return!!t&&typeof t=="object"&&PR in t}function rk(t,e,n,r,i){let s=0,l,u=!1;t.on(n,()=>{s=0,clearTimeout(l),u=!1}),t.on(e,c=>{s+=r(c),s>=8e5?i(t):u||(u=!0,l=SR(setTimeout(()=>{i(t)},gF)))}),t.on("flush",()=>{i(t)})}class vF{constructor(e){var r,i,s;if(this._options=e,this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],this._promiseBuffer=Rx(((r=e.transportOptions)==null?void 0:r.bufferSize)??kR),e.dsn?this._dsn=BP(e.dsn):Te&&ae.warn("No DSN provided, client will not send events."),this._dsn){const l=Xj(this._dsn,e.tunnel,e._metadata?e._metadata.sdk:void 0);this._transport=e.transport({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...e.transportOptions,url:l})}this._options.enableLogs=this._options.enableLogs??((i=this._options._experiments)==null?void 0:i.enableLogs),this._options.enableLogs&&rk(this,"afterCaptureLog","flushLogs",xF,b_),(this._options.enableMetrics??((s=this._options._experiments)==null?void 0:s.enableMetrics)??!0)&&rk(this,"afterCaptureMetric","flushMetrics",bF,bR)}captureException(e,n,r){const i=jr();if(RE(e))return Te&&ae.log(ZE),i;const s={event_id:i,...n};return this._process(()=>this.eventFromException(e,s).then(l=>this._captureEvent(l,s,r)).then(l=>l),"error"),s.event_id}captureMessage(e,n,r,i){const s={event_id:jr(),...r},l=vx(e)?e:String(e),u=Su(e),c=u?this.eventFromMessage(l,n,s):this.eventFromException(e,s);return this._process(()=>c.then(p=>this._captureEvent(p,s,i)),u?"unknown":"error"),s.event_id}captureEvent(e,n,r){const i=jr();if(n!=null&&n.originalException&&RE(n.originalException))return Te&&ae.log(ZE),i;const s={event_id:i,...n},l=e.sdkProcessingMetadata||{},u=l.capturedSpanScope,c=l.capturedSpanIsolationScope,p=ik(e.type);return this._process(()=>this._captureEvent(e,s,u||r,c),p),s.event_id}captureSession(e){this.sendSession(e),Eu(e,{init:!1})}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}async flush(e){const n=this._transport;if(!n)return!0;
49this.emit("flush");const r=await this._isClientDoneProcessing(e),i=await n.flush(e);return r&&i}async close(e){b_(this);const n=await this.flush(e);return this.getOptions().enabled=!1,this.emit("close"),n}getEventProcessors(){return this._eventProcessors}addEventProcessor(e){this._eventProcessors.push(e)}init(){(this._isEnabled()||this._options.integrations.some(({name:e})=>e.startsWith("Spotlight")))&&this._setupIntegrations()}getIntegrationByName(e){return this._integrations[e]}addIntegration(e){const n=this._integrations[e.name];!n&&e.beforeSetup&&e.beforeSetup(this),yR(this,e,this._integrations),n||XE(this,[e])}sendEvent(e,n={}){this.emit("beforeSendEvent",e,n);let r=uj(e,this._dsn,this._options._metadata,this._options.tunnel);for(const i of n.attachments||[])r=ej(r,sj(i));this.sendEnvelope(r).then(i=>this.emit("afterSendEvent",e,i))}sendSession(e){const{release:n,environment:r=wx}=this._options;if("aggregates"in e){const s=e.attrs||{};if(!s.release&&!n){Te&&ae.warn(ek);return}s.release=s.release||n,s.environment=s.environment||r,e.attrs=s}else{if(!e.release&&!n){Te&&ae.warn(ek);return}e.release=e.release||n,e.environment=e.environment||r}this.emit("beforeSendSession",e);const i=lj(e,this._dsn,this._options._metadata,this._options.tunnel);this.sendEnvelope(i)}recordDroppedEvent(e,n,r=1){if(this._options.sendClientReports){const i=`${e}:${n}`;Te&&ae.log(`Recording outcome: "${i}"${r>1?` (${r} times)`:""}`),this._outcomes[i]=(this._outcomes[i]||0)+r}}on(e,n){const r=this._hooks[e]=this._hooks[e]||new Set,i=(...s)=>n(...s);return r.add(i),()=>{r.delete(i)}}emit(e,...n){const r=this._hooks[e];r&&r.forEach(i=>i(...n))}async sendEnvelope(e){if(this.emit("beforeEnvelope",e),this._isEnabled()&&this._transport)try{return await this._transport.send(e)}catch(n){return Te&&ae.error("Error while sending envelope:",n),{}}return Te&&ae.error("Transport disabled"),{}}dispose(){}_setupIntegrations(){const{integrations:e}=this._options;this._integrations=nF(this,e),XE(this,e)}_updateSessionFromEvent(e,n){var c,p;let r=n.level==="fatal",i=!1;const s=(c=n.exception)==null?void 0:c.values;if(s){i=!0,r=!1;for(const h of s)if(((p=h.mechanism)==null?void 0:p.handled)===!1){r=!0;break}}const l=e.status==="ok";(l&&e.errors===0||l&&r)&&(Eu(e,{...r&&{status:"crashed"},errors:e.errors||Number(i||r)}),this.captureSession(e))}async _isClientDoneProcessing(e){let n=0;for(;!e||n<e;){if(await new Promise(r=>setTimeout(r,1)),!this._numProcessing)return!0;n++}return!1}_isEnabled(){return this.getOptions().enabled!==!1&&this._transport!==void 0}_prepareEvent(e,n,r,i){const s=this.getOptions(),l=Object.keys(this._integrations);return!n.integrations&&(l!=null&&l.length)&&(n.integrations=l),this.emit("preprocessEvent",e,n),e.type||i.setLastEventId(e.event_id||n.event_id),pR(s,e,n,r,this,i).then(u=>{var p;if(u===null)return u;this.emit("postprocessEvent",u,n),u.contexts={trace:{...(p=u.contexts)==null?void 0:p.trace,...bD(r)},...u.contexts};const c=rR(this,r);return u.sdkProcessingMetadata={dynamicSamplingContext:c,...u.sdkProcessingMetadata},u})}_captureEvent(e,n={},r=_t(),i=Ur()){return Te&&x_(e)&&ae.log(`Captured error event \`${CR(e)[0]||"<unknown>"}\``),this._processEvent(e,n,r,i).then(s=>s.event_id,s=>{Te&&(nk(s)?ae.log(s.message):tk(s)?ae.warn(s.message):ae.warn(s))})}_processEvent(e,n,r,i){const s=this.getOptions(),{sampleRate:l}=s,u=RR(e),c=x_(e),h=`before send for type \`${e.type||"error"}\``,m=typeof l>"u"?void 0:Ha(l);if(c&&typeof m=="number"&&Ao()>m)return this.recordDroppedEvent("sample_rate","error"),Cx(ry(`Discarding event because it's not included in the random sample (sampling rate = ${l})`));const g=ik(e.type);return this._prepareEvent(e,n,r,i).then(_=>{var w;if(_===null)throw this.recordDroppedEvent("event_processor",g),ry("An event processor returned `null`, will not send event.");if(((w=n.data)==null?void 0:w.__sentry__)===!0)return _;const S=_F(this,s,_,n);return yF(S,h)}).then(_=>{var w;if(_===null){if(this.recordDroppedEvent("before_send",g),u){const R=1+(e.spans||[]).length;this.recordDroppedEvent("before_send","span",R)}throw ry(`${h} returned \`null\`, will not send event.`)}const x=r.getSession()||i.getSession();if(c&&x&&this._updateSessionFromEvent(x,_),u){const C=((w=_.sdkProcessingMetadata)==null?void 0:w.spanCountBeforeProcessing)||0,R=_.spans?_.spans.length:0,I=C-R;I>0&&this.recordDroppedEvent("before_send","span",I)}const S=_.transaction_info;if(u&&S&&_.transaction!==e.transaction){const C="custom";_.transaction_info={...S,source:C}}return this.sendEvent(_,n),_}).then(null,_=>{throw nk(_)||tk(_)?_:(this.captureException(_,{mechanism:{handled:!1,type:"internal"},data:{__sentry__:!0},originalException:_}),lf(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event. 50Reason: ${_}`))})}_process(e,n){this._numProcessing++,this._promiseBuffer.add(e).then(r=>(this._numProcessing--,r),r=>(this._numProcessing--,r===Px&&this.recordDroppedEvent("queue_overflow",n),r))}_clearOutcomes(){const e=this._outcomes;return this._outcomes={},Object.entries(e).map(([n,r])=>{const[i,s]=n.split(":");return{reason:i,category:s,quantity:r}})}_flushOutcomes(){Te&&ae.log("Flushing outcomes...");const e=this._clearOutcomes();if(e.length===0){Te&&ae.log("No outcomes to send");return}if(!this._dsn){Te&&ae.log("No dsn provided, will not send outcomes");return}Te&&ae.log("Sending outcomes:",e);const n=hF(e,this._options.tunnel&&el(this._dsn));this.sendEnvelope(n)}}function ik(t){return t==="replay_event"?"replay":t||"error"}function yF(t,e){const n=`${e} must return \`null\` or a valid event.`;if(Yd(t))return t.then(r=>{if(!_d(r)&&r!==null)throw lf(n);return r},r=>{throw lf(`${e} rejected with ${r}`)});if(!_d(t)&&t!==null)throw lf(n);return t}function _F(t,e,n,r){const{beforeSend:i,beforeSendTransaction:s,ignoreSpans:l}=e,u=!iR(e.beforeSendSpan)&&e.beforeSendSpan;let c=n;if(x_(c)&&i)return i(c,r);if(RR(c)){if(u||l){const p=fF(c);if(l!=null&&l.length&&Sd(p,l))return null;if(u){const h=u(p);
50h?c=Qd(n,mF(h)):m_()}if(c.spans){const h=[],m=c.spans;for(const _ of m){if(l!=null&&l.length&&Sd(_,l)){GD(m,_);continue}if(u){const x=u(_);x?h.push(x):(m_(),h.push(_))}else h.push(_)}const g=c.spans.length-h.length;g&&t.recordDroppedEvent("before_send","span",g),c.spans=h}}if(s){if(c.spans){const p=c.spans.length;c.sdkProcessingMetadata={...n.sdkProcessingMetadata,spanCountBeforeProcessing:p}}return s(c,r)}}return c}function x_(t){return t.type===void 0}function RR(t){return t.type==="transaction"}function bF(t){let e=0;return t.name&&(e+=t.name.length*2),e+=8,e+AR(t.attributes)}function xF(t){let e=0;return t.message&&(e+=t.message.length*2),e+AR(t.attributes)}function AR(t){if(!t)return 0;let e=0;return Object.values(t).forEach(n=>{Array.isArray(n)?e+=n.length*sk(n[0]):Su(n)?e+=sk(n):e+=100}),e}function sk(t){return typeof t=="string"?t.length*2:typeof t=="number"?8:typeof t=="boolean"?4:0}function SF(t){return Gd(t)&&"__sentry_fetch_url_host__"in t&&typeof t.__sentry_fetch_url_host__=="string"}function ok(t){return SF(t)?`${t.message} (${t.__sentry_fetch_url_host__})`:t.message}function wF(t,e){e.debug===!0&&(Te?ae.enable():Fo(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")})),_t().update(e.initialScope);const r=new t(e);return EF(r),r.init(),r}function EF(t){_t().setClient(t)}const kF="thismessage:/";function Ax(t){return"isRelative"in t}function Ix(t,e){const n=t.indexOf("://")<=0&&t.indexOf("//")!==0,r=n?kF:void 0;try{if("canParse"in URL&&!URL.canParse(t,r))return;const i=new URL(t,r);return n?{isRelative:n,pathname:i.pathname,search:i.search,hash:i.hash}:i}catch{}}function CF(t){if(Ax(t))return t.pathname;const e=new URL(t);return e.search="",e.hash="",["80","443"].includes(e.port)&&(e.port=""),e.password&&(e.password="%filtered%"),e.username&&(e.username="%filtered%"),e.toString()}function za(t){if(!t)return{};const e=t.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!e)return{};const n=e[6]||"",r=e[8]||"";return{host:e[4],path:e[5],protocol:e[2],search:n,hash:r,relative:e[5]+n+r}}function TF(t){return t.split(/[?#]/,1)[0]}function Io(t,e=!0){if(t.startsWith("data:")){const n=t.match(/^data:([^;,]+)/),r=n?n[1]:"text/plain",i=t.includes(";base64,"),s=t.indexOf(",");let l="";if(e&&s!==-1){const u=t.slice(s+1);l=u.length>10?`${u.slice(0,10)}... [truncated]`:u}return`data:${r}${i?",base64":""}${l?`,${l}`:""}`}return t}function PF(t,e){const n=e==null?void 0:e.getDsn(),r=e==null?void 0:e.getOptions().tunnel;return AF(t,n)||RF(t,r)}function RF(t,e){return e?ak(t)===ak(e):!1}function AF(t,e){const n=Ix(t);return!n||Ax(n)?!1:e?n.host.includes(e.host)&&/(^|&|\?)sentry_key=/.test(n.search):!1}function ak(t){return t[t.length-1]==="/"?t.slice(0,-1):t}function IF(t){var e;"aggregates"in t?((e=t.attrs)==null?void 0:e.ip_address)===void 0&&(t.attrs={...t.attrs,ip_address:"{{auto}}"}):t.ipAddress===void 0&&(t.ipAddress="{{auto}}")}function IR(t,e,n=[e],r="npm"){const i=(t._metadata=t._metadata||{}).sdk=t._metadata.sdk||{};i.name||(i.name=`sentry.javascript.${e}`,i.packages=n.map(s=>({name:`${r}:@sentry/${s}`,version:Fa})),i.version=Fa)}function LR(t={}){const e=t.client||Xe();if(!Gj()||!e)return{};const n=Xa(),r=qu(n);if(r.getTraceData)return r.getTraceData(t);const i=t.scope||_t(),s=t.span||lr(),l=s?qD(s):LF(i),u=s?Rs(s):rR(e,i),c=PD(u);if(!$P.test(l))return ae.warn("Invalid sentry-trace data. Cannot generate trace data"),{};const h={"sentry-trace":l,baggage:c};return t.propagateTraceparent&&(h.traceparent=s?WD(s):MF(i)),h}function LF(t){const{traceId:e,sampled:n,propagationSpanId:r}=t.getPropagationContext();return qP(e,r,n)}function MF(t){const{traceId:e,sampled:n,propagationSpanId:r}=t.getPropagationContext();return WP(e,r,n)}function NF(t,e,n){let r,i,s;const l=n!=null&&n.maxWait?Math.max(n.maxWait,e):0,u=(n==null?void 0:n.setTimeoutImpl)||setTimeout;function c(){return p(),r=t(),r}function p(){i!==void 0&&clearTimeout(i),s!==void 0&&clearTimeout(s),i=s=void 0}function h(){return i!==void 0||s!==void 0?c():r}function m(){return i&&clearTimeout(i),i=u(c,e),l&&s===void 0&&(s=u(c,l)),r}return m.cancel=p,m.flush=h,m}const OF=100;function Do(t,e){const n=Xe(),r=Ur();if(!n)return;const{beforeBreadcrumb:i=null,maxBreadcrumbs:s=OF}=n.getOptions();if(s<=0)return;const u={timestamp:Za(),...t}
vendor: 5,025 bytes, lines 50-57
50,c=i?Fo(()=>i(u,e)):u;c!==null&&(n.emit&&n.emit("beforeAddBreadcrumb",c,e),r.addBreadcrumb(c,s))}let lk;const DF="FunctionToString",uk=new WeakMap,jF=(()=>({name:DF,setupOnce(){lk=Function.prototype.toString;try{Function.prototype.toString=function(...t){const e=bx(this),n=uk.has(Xe())&&e!==void 0?e:this;return lk.apply(n,t)}}catch{}},setup(t){uk.set(t,!0)}})),FF=jF,UF=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/,/^Can't find variable: gmo$/,/^undefined is not an object \(evaluating 'a\.[A-Z]'\)$/,/can't redefine non-configurable property "solana"/,/vv\(\)\.getRestrictions is not a function/,/Can't find variable: _AutofillCallbackHandler/,/Object Not Found Matching Id:\d+, MethodName:simulateEvent/,/^Java exception was raised during method invocation$/],zF="EventFilters",BF=(t={})=>{let e;return{name:zF,setup(n){const r=n.getOptions();e=ck(t,r)},processEvent(n,r,i){if(!e){const s=i.getOptions();e=ck(t,s)}return qF(n,e)?null:n}}},$F=((t={})=>({...BF(t),name:"InboundFilters"}));function ck(t={},e={}){return{allowUrls:[...t.allowUrls||[],...e.allowUrls||[]],denyUrls:[...t.denyUrls||[],...e.denyUrls||[]],ignoreErrors:[...t.ignoreErrors||[],...e.ignoreErrors||[],...t.disableErrorDefaults?[]:UF],ignoreTransactions:[...t.ignoreTransactions||[],...e.ignoreTransactions||[]]}}function qF(t,e){if(t.type){if(t.type==="transaction"&&HF(t,e.ignoreTransactions))return Te&&ae.warn(`Event dropped due to being matched by \`ignoreTransactions\` option. 51Event: ${ba(t)}`),!0}else{if(WF(t,e.ignoreErrors))return Te&&ae.warn(`Event dropped due to being matched by \`ignoreErrors\` option. 52Event: ${ba(t)}`),!0;if(KF(t))return Te&&ae.warn(`Event dropped due to not having an error message, error type or stacktrace. 53Event: ${ba(t)}`),!0;if(VF(t,e.denyUrls))return Te&&ae.warn(`Event dropped due to being matched by \`denyUrls\` option. 54Event: ${ba(t)}. 55Url: ${Af(t)}`),!0;if(!GF(t,e.allowUrls))return Te&&ae.warn(`Event dropped due to not being matched by \`allowUrls\` option. 56Event: ${ba(t)}. 57Url: ${Af(t)}`),!0}return!1}function WF(t,e){return e!=null&&e.length?CR(t).some(n=>ws(n,e)):!1}function HF(t,e){if(!(e!=null&&e.length))return!1;const n=t.transaction;return n?ws(n,e):!1}function VF(t,e){if(!(e!=null&&e.length))return!1;const n=Af(t);return n?ws(n,e):!1}function GF(t,e){if(!(e!=null&&e.length))return!0;const n=Af(t);return n?ws(n,e):!0}function YF(t=[]){for(let e=t.length-1;e>=0;e--){const n=t[e];if(n&&n.filename!=="<anonymous>"&&n.filename!=="[native code]")return n.filename||null}return null}function Af(t){var e,n;try{const r=[...((e=t.exception)==null?void 0:e.values)??[]].reverse().find(s=>{var l,u,c;return((l=s.mechanism)==null?void 0:l.parent_id)===void 0&&((c=(u=s.stacktrace)==null?void 0:u.frames)==null?void 0:c.length)}),i=(n=r==null?void 0:r.stacktrace)==null?void 0:n.frames;return i?YF(i):null}catch{return Te&&ae.error(`Cannot extract url for event ${ba(t)}`),null}}function KF(t){var e,n;return(n=(e=t.exception)==null?void 0:e.values)!=null&&n.length?!t.message&&!t.exception.values.some(r=>r.stacktrace||r.type&&r.type!=="Error"||r.value):!1}function JF(t,e,n,r,i,s){var u;if(!((u=i.exception)!=null&&u.values)||!s||!Ts(s.originalException,Error))return;const l=i.exception.values.length>0?i.exception.values[i.exception.values.length-1]:void 0;l&&(i.exception.values=S_(t,e,r,s.originalException,n,i.exception.values,l,0))}function S_(t,e,n,r,i,s,l,u){if(s.length>=n+1)return s;let c=[...s];if(Ts(r[i],Error)){dk(l,u,r);const p=t(e,r[i]),h=c.length;pk(p,i,h,u),c=S_(t,e,n,r[i],i,[p,...c],p,h)}return MR(r)&&r.errors.forEach((p,h)=>{if(Ts(p,Error)){dk(l,u,r);const m=t(e,p),g=c.length;pk(m,`errors[${h}]`,g,u),c=S_(t,e,n,p,i,[m,...c],m,g)}}),c}function MR(t){return Array.isArray(t.errors)}function dk(t,e,n){t.mechanism={handled:!0,type:"auto.core.linked_errors",...MR(n)&&{is_exception_group:!0},...t.mechanism,exception_id:e}}function pk(t,e,n,r){t.mechanism={handled:!0,...t.mechanism,type:"chained",source:e,exception_id:n,parent_id:r}}function QF(t){const e="console";Uo(e,t),zo(e,XF)}function XF(){"console"in it&&FO.forEach(function(t){t in it.console&&xr(it.console,t,function(e){return Cf[t]=e,function(...n){ei("console",{args:n,level:t});const i=Cf[t];i==null||i.apply(it.console,n)}})})}function NR(t){return t==="warn"?"warning":["fatal","error","warning","log","info","debug"].includes(t)?t:"log"}const ZF="Dedupe",e2=(()=>{let t;return{name:ZF,processEvent(e){if(e.type)return e;try{if(n2(e,t))return Te&&ae.warn("Event dropped due to being a duplicate of previously captured event."),null}catch{}return t=e}}}),t2=e2;function n2(t,e){return e?!!(r2(t,e)||i2(t,e)):!1}function r2(t,e){const n=t.message,r=e.message;return!(!n&&!r||n&&!r||!n&&r||n!==r||!DR(t,e)||!OR(t,e))}function i2(t,e){const n=hk(e),r=hk(t);return!(!n||!r||n.type!==r.type||n.value!==r.value||!DR(t,e)||!OR(t,e))}function OR(t,e){let n=wE(t),r=wE(e);if(!n&&!r)return!0;
57if(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],l=n[i];if(s.filename!==l.filename||s.lineno!==l.lineno||s.colno!==l.colno||s.function!==l.function)return!1}return!0}function DR(t,e){let n=t.fingerprint,r=e.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 hk(t){var e,n;return(n=(e=t.exception)==null?void 0:e.values)==null?void 0:n[0]}const s2="ConversationId",o2=(()=>({name:s2,setup(t){t.on("spanStart",e=>{const n=_t().getScopeData(),r=Ur().getScopeData(),i=n.conversationId||r.conversationId;if(i){const{op:s,data:l,description:u}=vt(e);if(!(s!=null&&s.startsWith("gen_ai."))&&!l["ai.operationId"]&&!(u!=null&&u.startsWith("ai.")))return;e.setAttribute(SD,i)}})}})),a2=o2;function l2(t,e,n,r,i){if(!t.fetchData)return;const{method:s,url:l}=t.fetchData,u=wi()&&e(l);if(t.endTimestamp){const _=t.fetchData.__span;if(!_)return;const x=r[_];x&&(u&&(d2(x,t),u2(x,t,i)),delete r[_]);return}const{spanOrigin:c="auto.http.browser",propagateTraceparent:p=!1}=typeof i=="object"?i:{spanOrigin:i},h=!!lr(),m=u&&h?tl(f2(l,s,c)):new Ki;if(t.fetchData.__span=m.spanContext().spanId,r[m.spanContext().spanId]=m,n(t.fetchData.url)){const _=t.args[0],x={...t.args[1]||{}},S=c2(_,x,wi()&&h?m:void 0,p);S&&(t.args[1]=x,x.headers=S)}const g=Xe();if(g){const _={input:t.args,response:t.response,startTimestamp:t.startTimestamp,endTimestamp:t.endTimestamp};g.emit("beforeOutgoingRequestSpan",m,_)}return m}function u2(t,e,n){var i;const r=typeof n=="object"&&n!==null?n.onRequestSpanEnd:void 0;r==null||r(t,{headers:(i=e.response)==null?void 0:i.headers,error:e.error})}function c2(t,e,n,r){const i=LR({span:n,propagateTraceparent:r}),s=i["sentry-trace"],l=i.baggage,u=i.traceparent;if(!s)return;const c=e.headers||(yx(t)?t.headers:void 0);if(c)if(p2(c)){const p=new Headers(c);if(p.get("sentry-trace")||p.set("sentry-trace",s),r&&u&&!p.get("traceparent")&&p.set("traceparent",u),l){const h=p.get("baggage");h?Eh(h)||p.set("baggage",`${h},${l}`):p.set("baggage",l)}return p}else if(h2(c)){const p=[...c];p.find(m=>m[0]==="sentry-trace")||p.push(["sentry-trace",s]),r&&u&&!p.find(m=>m[0]==="traceparent")&&p.push(["traceparent",u]);const h=c.find(m=>m[0]==="baggage"&&typeof m[1]=="string"&&Eh(m[1]));return l&&!h&&p.push(["baggage",l]),p}else{const p="sentry-trace"in c?c["sentry-trace"]:void 0,h="traceparent"in c?c.traceparent:void 0,m="baggage"in c?c.baggage:void 0,g=m?Array.isArray(m)?[...m]:[m]:[],_=m&&(Array.isArray(m)?m.find(S=>Eh(S)):Eh(m));l&&!_&&g.push(l);const x=Object.assign({},c,{"sentry-trace":p??s,baggage:g.length>0?g.join(","):void 0});return r&&u&&!h&&(x.traceparent=u),x}else return{...i}}function d2(t,e){var n,r;if(e.response){DP(t,e.response.status);const i=(r=(n=e.response)==null?void 0:n.headers)==null?void 0:r.get("content-length");if(i){const s=parseInt(i);s>0&&t.setAttribute("http.response_content_length",s)}}else e.error&&t.setStatus({code:wn,message:"internal_error"});t.end()}function Eh(t){return typeof t!="string"?!1:t.split(",").some(e=>e.trim().startsWith(Rf))}function p2(t){return typeof Headers<"u"&&Ts(t,Headers)}function h2(t){return Array.isArray(t)?t.every(e=>Array.isArray(e)&&e.length===2&&typeof e[0]=="string"):!1}function f2(t,e,n){if(t.startsWith("data:")){const s=Io(t);return{name:`${e} ${s}`,attributes:fk(t,void 0,e,n)}}const r=Ix(t),i=r?CF(r):t;return{name:`${e} ${i}`,attributes:fk(t,r,e,n)}}function fk(t,e,n,r){const i={url:Io(t),type:"fetch","http.method":n,[gn]:r,[Ci]:"http.client"};return e&&(Ax(e)||(i["http.url"]=Io(e.href),i["server.address"]=e.host),e.search&&(i["http.query"]=e.search),e.hash&&(i["http.fragment"]=e.hash)),i}function jR(t){if(t!==void 0)return t>=400&&t<500?"warning":t>=500?"error":void 0}const Ed=it;function m2(){return"history"in Ed&&!!Ed.history}function g2(){if(!("fetch"in Ed))return!1;try{return new Headers,new Request("data:,"),new Response,!0}catch{return!1}}function w_(t){return t&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(t.toString())}function v2(){var n;if(typeof EdgeRuntime=="string")return!0;
57if(!g2())return!1;if(w_(Ed.fetch))return!0;let t=!1;const e=Ed.document;if(e&&typeof e.createElement=="function")try{const r=e.createElement("iframe");r.hidden=!0,e.head.appendChild(r),(n=r.contentWindow)!=null&&n.fetch&&(t=w_(r.contentWindow.fetch)),e.head.removeChild(r)}catch(r){Te&&ae.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",r)}return t}function FR(t,e){const n="fetch";Uo(n,t),zo(n,()=>UR(void 0,e))}function y2(t){const e="fetch-body-resolved";Uo(e,t),zo(e,()=>UR(b2))}function UR(t,e=!1){e&&!v2()||xr(it,"fetch",function(n){return function(...r){const i=new Error,{method:s,url:l}=x2(r),u={args:r,fetchData:{method:s,url:l},startTimestamp:fn()*1e3,virtualError:i,headers:S2(r)};return t||ei("fetch",{...u}),n.apply(it,r).then(async c=>(t?t(c):ei("fetch",{...u,endTimestamp:fn()*1e3,response:c}),c),c=>{ei("fetch",{...u,endTimestamp:fn()*1e3,error:c}),Gd(c)&&c.stack===void 0&&(c.stack=i.stack,Er(c,"framesToPop",1));const p=Xe(),h=(p==null?void 0:p.getOptions().enhanceFetchErrorMessages)??"always";if(h!==!1&&c instanceof TypeError&&(c.message==="Failed to fetch"||c.message==="Load failed"||c.message==="NetworkError when attempting to fetch resource."))try{const _=new URL(u.fetchData.url).host;h==="always"?c.message=`${c.message} (${_})`:Er(c,"__sentry_fetch_url_host__",_)}catch{}throw c})}})}async function _2(t,e){if(t!=null&&t.body){const n=t.body,r=n.getReader(),i=setTimeout(()=>{n.cancel().then(null,()=>{})},90*1e3);let s=!0;for(;s;){let l;try{l=setTimeout(()=>{n.cancel().then(null,()=>{})},5e3);const{done:u}=await r.read();clearTimeout(l),u&&(e(),s=!1)}catch{s=!1}finally{clearTimeout(l)}}clearTimeout(i),r.releaseLock(),n.cancel().then(null,()=>{})}}function b2(t){let e;try{e=t.clone()}catch{return}_2(e,()=>{ei("fetch-body-resolved",{endTimestamp:fn()*1e3,response:t})})}function uf(t,e){return!!t&&typeof t=="object"&&!!t[e]}function mk(t){return typeof t=="string"?t:t?uf(t,"url")?t.url:t.toString?t.toString():"":""}function x2(t){if(t.length===0)return{method:"GET",url:""};if(t.length===2){const[n,r]=t;return{url:mk(n),method:uf(r,"method")?String(r.method).toUpperCase():yx(n)&&uf(n,"method")?String(n.method).toUpperCase():"GET"}}const e=t[0];return{url:mk(e),method:uf(e,"method")?String(e.method).toUpperCase():"GET"}}function S2(t){const[e,n]=t;try{if(typeof n=="object"&&n!==null&&"headers"in n&&n.headers)return new Headers(n.headers);if(yx(e))return new Headers(e.headers)}catch{}}function w2(){return typeof __SENTRY_BROWSER_BUNDLE__<"u"&&!!__SENTRY_BROWSER_BUNDLE__}function E2(){return"npm"}function k2(){return!w2()&&Object.prototype.toString.call(typeof process<"u"?process:0)==="[object process]"}function E_(){return typeof window<"u"&&(!k2()||C2())}function C2(){const t=it.process;return(t==null?void 0:t.type)==="renderer"}const Je=it;let k_=0;function zR(){return k_>0}function T2(){k_++,setTimeout(()=>{k_--})}function Cu(t,e={}){function n(i){return typeof i=="function"}if(!n(t))return t;try{const i=t.__sentry_wrapped__;if(i)return typeof i=="function"?i:t;if(bx(t))return t}catch{return t}const r=function(...i){try{const s=i.map(l=>Cu(l,e));return t.apply(this,s)}catch(s){throw T2(),Xd(l=>{l.addEventProcessor(u=>(e.mechanism&&(d_(u,void 0),wu(u,e.mechanism)),u.extra={...u.extra,arguments:i},u)),Tx(s)}),s}};try{for(const i in t)Object.prototype.hasOwnProperty.call(t,i)&&(r[i]=t[i])}catch{}RP(r,t),Er(t,"__sentry_wrapped__",r);try{Object.getOwnPropertyDescriptor(r,"name").configurable&&Object.defineProperty(r,"name",{get(){return t.name}})}catch{}return r}function Lx(){const t=$u(),{referrer:e}=Je.document||{},{userAgent:n}=Je.navigator||{},r={...e&&{Referer:e},...n&&{"User-Agent":n}};return{url:t,headers:r}}function Mx(t,e){const n=Nx(t,e),r={type:L2(e),value:M2(e)};return n.length&&(r.stacktrace={frames:n}),r.type===void 0&&r.value===""&&(r.value="Unrecoverable error caught"),r}function P2(t,e,n,r){const i=Xe(),s=i==null?void 0:i.getOptions().normalizeDepth,l=F2(e),u={__serialized__:sR(e,s)};if(l)return{exception:{values:[Mx(t,l)]},extra:u};const c={exception:{values:[{type:Em(e)?e.constructor.name:r?"UnhandledRejection":"Error",value:D2(e,{isUnhandledRejection:r})}]},extra:u};if(n){const p=Nx(t,n);p.length&&(c.exception.values[0].stacktrace={frames:p})}return c}function iy(t,e){return{exception:{values:[Mx(t,e)]}}}function Nx(t,e){const n=e.stacktrace||e.stack||"",r=A2(e),i=I2(e);try{return t(n,r,i)}catch{}return[]}const R2=/Minified React error #\d+;/i;function A2(t){return t&&R2.test(t.message)?1:0}function I2(t){return typeof t.framesToPop=="number"?t.framesToPop:0}function BR(t){return typeof WebAssembly<"u"&&typeof WebAssembly.Exception<"u"?t instanceof WebAssembly.Exception:!1}function L2(t){const e=t==null?void 0:t.name;return!e&&BR(t)?t.message&&Array.isArray(t.message)&&t.message.length==2?t.message[0]:"WebAssembly.Exception":e}function M2(t){const e=t==null?void 0:t.message;return BR(t)?Array.isArray(t.message)&&t.message.length==2?t.message[1]:"wasm exception":e?e.error&&typeof e.error.message=="string"?ok(e.error):ok(t):"No error message"}function N2(t,e,n,r){const i=(n==null?void 0:n.syntheticException)||void 0,s=Ox(t,e,i,r);return wu(s),s.level="error",n!=null&&n.event_id&&(s.event_id=n.event_id),tp(s)}function O2(t,e,n="info",r,i){const s=(r==null?void 0:r.syntheticException)||void 0,l=C_(t,e,s,i);return l.level=n,r!=null&&r.event_id&&(l.event_id=r.event_id),tp(l)}function Ox(t,e,n,r,i){let s;if(CP(e)&&e.error)return iy(t,e.error);if(kE(e)||KO(e)){const l=e;if("stack"in e)s=iy(t,e);else{const u=l.name||(kE(l)?"DOMError":"DOMException"),c=l.message?`${u}: ${l.message}`:u;s=C_(t,c,n,r),d_(s,c)}return"code"in l&&(s.tags={...s.tags,"DOMException.code":`${l.code}`}),s}return Gd(e)?iy(t,e):_d(e)||Em(e)?(s=P2(t,e,n,i),wu(s,{synthetic:!0}),s):(s=C_(t,e,n,r),d_(s,`${e}`),wu(s,{synthetic:!0}),s)}function C_(t,e,n,r){const i={};if(r&&n){const s=Nx(t,n);s.length&&(i.exception={values:[{value:e,stacktrace:{frames:s}}]}),wu(i,{synthetic:!0})}
57if(vx(e)){const{__sentry_template_string__:s,__sentry_template_values__:l}=e;return i.logentry={message:s,params:l},i}return i.message=e,i}function D2(t,{isUnhandledRejection:e}){const n=tD(t),r=e?"promise rejection":"exception";return CP(t)?`Event \`ErrorEvent\` captured as ${r} with message \`${t.message}\``:Em(t)?`Event \`${j2(t)}\` (type=${t.type}) captured as ${r}`:`Object captured as ${r} with keys: ${n}`}function j2(t){try{const e=Object.getPrototypeOf(t);return e?e.constructor.name:void 0}catch{}}function F2(t){return Object.values(t).find(e=>e instanceof Error)}class U2 extends vF{constructor(e){var h;const n=z2(e),r=Je.SENTRY_SDK_SOURCE||E2();IR(n,"browser",["browser"],r),(h=n._metadata)!=null&&h.sdk&&(n._metadata.sdk.settings={infer_ip:n.sendDefaultPii?"auto":"never",...n._metadata.sdk.settings}),super(n);const{sendDefaultPii:i,sendClientReports:s,enableLogs:l,_experiments:u,enableMetrics:c}=this._options,p=c??(u==null?void 0:u.enableMetrics)??!0;Je.document&&(s||l||p)&&Je.document.addEventListener("visibilitychange",()=>{Je.document.visibilityState==="hidden"&&(s&&this._flushOutcomes(),l&&b_(this),p&&bR(this))}),i&&this.on("beforeSendSession",IF)}eventFromException(e,n){return N2(this._options.stackParser,e,n,this._options.attachStacktrace)}eventFromMessage(e,n="info",r){return O2(this._options.stackParser,e,n,r,this._options.attachStacktrace)}_prepareEvent(e,n,r,i){return e.platform=e.platform||"javascript",super._prepareEvent(e,n,r,i)}}function z2(t){var e;return{release:typeof __SENTRY_RELEASE__=="string"?__SENTRY_RELEASE__:(e=Je.SENTRY_RELEASE)==null?void 0:e.id,sendClientReports:!0,parentSpanIsAlwaysRootSpan:!0,...t}}const Ti=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,ze=it,B2=(t,e)=>t>e[1]?"poor":t>e[0]?"needs-improvement":"good",np=(t,e,n,r)=>{let i,s;return l=>{e.value>=0&&(l||r)&&(s=e.value-(i??0),(s||i===void 0)&&(i=e.value,e.delta=s,e.rating=B2(e.value,n),t(e)))}},rp=(t=!0)=>{var n,r;const e=(r=(n=ze.performance)==null?void 0:n.getEntriesByType)==null?void 0:r.call(n,"navigation")[0];if(!t||e&&e.responseStart>0&&e.responseStart<performance.now())return e},Wu=()=>{const t=rp();return(t==null?void 0:t.activationStart)??0};function Lo(t,e,n){ze.document&&ze.addEventListener(t,e,n)}function If(t,e,n){ze.document&&ze.removeEventListener(t,e,n)}let au=-1;const $R=new Set,$2=()=>{var t,e;return((t=ze.document)==null?void 0:t.visibilityState)==="hidden"&&!((e=ze.document)!=null&&e.prerendering)?0:1/0},cf=t=>{if(q2(t)&&au>-1){if(t.type==="visibilitychange"||t.type==="pagehide")for(const e of $R)e();isFinite(au)||(au=t.type==="visibilitychange"?t.timeStamp:0,If("prerenderingchange",cf,!0))}},ip=()=>{var t;if(ze.document&&au<0){const e=Wu();au=(ze.document.prerendering||(t=globalThis.performance.getEntriesByType("visibility-state").filter(r=>r.name==="hidden"&&r.startTime>e)[0])==null?void 0:t.startTime)??$2(),Lo("visibilitychange",cf,!0),Lo("pagehide",cf,!0),Lo("prerenderingchange",cf,!0)}return{get firstHiddenTime(){return au},onHidden(e){$R.add(e)}}};function q2(t){var e;return t.type==="pagehide"||((e=ze.document)==null?void 0:e.visibilityState)==="hidden"}const W2=()=>`v5-${Date.now()}-${Math.floor(Math.random()*(9e12-1))+1e12}`,sp=(t,e=-1)=>{var s,l;const n=rp();let r="navigate";return n&&((s=ze.document)!=null&&s.prerendering||Wu()>0?r="prerender":(l=ze.document)!=null&&l.wasDiscarded?r="restore":n.type&&(r=n.type.replace(/_/g,"-"))),{name:t,value:e,rating:"good",delta:0,entries:[],id:W2(),navigationType:r}},sy=new WeakMap;function Dx(t,e){try{return sy.get(t)||sy.set(t,new e),sy.get(t)}catch{return new e}}class Lf{constructor(){Lf.prototype.__init.call(this),Lf.prototype.__init2.call(this)}__init(){this._sessionValue=0}__init2(){this._sessionEntries=[]}_processEntry(e){var i;if(e.hadRecentInput)return;const n=this._sessionEntries[0],r=this._sessionEntries[this._sessionEntries.length-1];this._sessionValue&&n&&r&&e.startTime-r.startTime<1e3&&e.startTime-n.startTime<5e3?(this._sessionValue+=e.value,this._sessionEntries.push(e)):(this._sessionValue=e.value,this._sessionEntries=[e]),(i=this._onAfterProcessingUnexpectedShift)==null||i.call(this,e)}}const Hu=(t,e,n={})=>{try{if(PerformanceObserver.supportedEntryTypes.includes(t)){const r=new PerformanceObserver(i=>{Promise.resolve().then(()=>{e(i.getEntries())})});return r.observe({type:t,buffered:!0,...n}),r}}catch{}},jx=t=>{let e=!1;return()=>{e||(t(),e=!0)}},Pm=t=>{var e;(e=ze.document)!=null&&e.prerendering?addEventListener("prerenderingchange",()=>t(),!0):t()},H2=[1800,3e3],V2=(t,e={})=>{Pm(()=>{const n=ip(),r=sp("FCP");let i;const l=Hu("paint",u=>{for(const c of u)c.name==="first-contentful-paint"&&(l.disconnect(),c.startTime<n.firstHiddenTime&&(r.value=Math.max(c.startTime-Wu(),0),r.entries.push(c),i(!0)))});l&&(i=np(t,r,H2,e.reportAllChanges))})},G2=[.1,.25],Y2=(t,e={})=>{V2(jx(()=>{var c;const n=sp("CLS",0);let r;const i=ip(),s=Dx(e,Lf),l=p=>{for(const h of p)s._processEntry(h);s._sessionValue>
57n.value&&(n.value=s._sessionValue,n.entries=s._sessionEntries,r())},u=Hu("layout-shift",l);u&&(r=np(t,n,G2,e.reportAllChanges),i.onHidden(()=>{l(u.takeRecords()),r(!0)}),(c=ze==null?void 0:ze.setTimeout)==null||c.call(ze,r))}))};let qR=0,oy=1/0,kh=0;const K2=t=>{t.forEach(e=>{e.interactionId&&(oy=Math.min(oy,e.interactionId),kh=Math.max(kh,e.interactionId),qR=kh?(kh-oy)/7+1:0)})};let T_;const WR=()=>T_?qR:performance.interactionCount||0,J2=()=>{"interactionCount"in performance||T_||(T_=Hu("event",K2,{type:"event",buffered:!0,durationThreshold:0}))},ay=10;let HR=0;const Q2=()=>WR()-HR;class Mf{constructor(){Mf.prototype.__init.call(this),Mf.prototype.__init2.call(this)}__init(){this._longestInteractionList=[]}__init2(){this._longestInteractionMap=new Map}_resetInteractions(){HR=WR(),this._longestInteractionList.length=0,this._longestInteractionMap.clear()}_estimateP98LongestInteraction(){const e=Math.min(this._longestInteractionList.length-1,Math.floor(Q2()/50));return this._longestInteractionList[e]}_processEntry(e){var i,s;if((i=this._onBeforeProcessingEntry)==null||i.call(this,e),!(e.interactionId||e.entryType==="first-input"))return;const n=this._longestInteractionList.at(-1);let r=this._longestInteractionMap.get(e.interactionId);if(r||this._longestInteractionList.length<ay||e.duration>n._latency){if(r?e.duration>r._latency?(r.entries=[e],r._latency=e.duration):e.duration===r._latency&&e.startTime===r.entries[0].startTime&&r.entries.push(e):(r={id:e.interactionId,entries:[e],_latency:e.duration},this._longestInteractionMap.set(r.id,r),this._longestInteractionList.push(r)),this._longestInteractionList.sort((l,u)=>u._latency-l._latency),this._longestInteractionList.length>ay){const l=this._longestInteractionList.splice(ay);for(const u of l)this._longestInteractionMap.delete(u.id)}(s=this._onAfterProcessingINPCandidate)==null||s.call(this,r)}}}const VR=t=>{var n;const e=ze.requestIdleCallback||ze.setTimeout;((n=ze.document)==null?void 0:n.visibilityState)==="hidden"?t():(t=jx(t),Lo("visibilitychange",t,{once:!0,capture:!0}),Lo("pagehide",t,{once:!0,capture:!0}),e(()=>{t(),If("visibilitychange",t,{capture:!0}),If("pagehide",t,{capture:!0})}))},X2=[200,500],Z2=40,eU=(t,e={})=>{if(!(globalThis.PerformanceEventTiming&&"interactionId"in PerformanceEventTiming.prototype))return;const n=ip();Pm(()=>{J2();const r=sp("INP");let i;const s=Dx(e,Mf),l=c=>{VR(()=>{for(const h of c)s._processEntry(h);const p=s._estimateP98LongestInteraction();p&&p._latency!==r.value&&(r.value=p._latency,r.entries=p.entries,i())})},u=Hu("event",l,{durationThreshold:e.durationThreshold??Z2});i=np(t,r,X2,e.reportAllChanges),u&&(u.observe({type:"first-input",buffered:!0}),n.onHidden(()=>{l(u.takeRecords()),i(!0)}))})};class tU{_processEntry(e){var n;(n=this._onBeforeProcessingEntry)==null||n.call(this,e)}}const nU=[2500,4e3],rU=(t,e={})=>{Pm(()=>{const n=ip(),r=sp("LCP");let i;const s=Dx(e,tU),l=c=>{e.reportAllChanges||(c=c.slice(-1));for(const p of c)s._processEntry(p),p.startTime<n.firstHiddenTime&&(r.value=Math.max(p.startTime-Wu(),0),r.entries=[p],i())},u=Hu("largest-contentful-paint",l);if(u){i=np(t,r,nU,e.reportAllChanges);const c=jx(()=>{l(u.takeRecords()),u.disconnect(),i(!0)}),p=h=>{h.isTrusted&&(VR(c),If(h.type,p,{capture:!0}))};for(const h of["keydown","click","visibilitychange"])Lo(h,p,{capture:!0})}})},iU=[800,1800],P_=t=>{var e,n;(e=ze.document)!=null&&e.prerendering?Pm(()=>P_(t)):((n=ze.document)==null?void 0:n.readyState)!=="complete"?addEventListener("load",()=>P_(t),!0):setTimeout(t)},sU=(t,e={})=>{const n=sp("TTFB"),r=np(t,n,iU,e.reportAllChanges);P_(()=>{const i=rp();i&&(n.value=Math.max(i.responseStart-Wu(),0),n.entries=[i],r(!0))})},id={},Nf={};let GR,YR,KR,JR;function Rm(t,e=!1){return Im("cls",t,aU,GR,e)}function Am(t,e=!1){return Im("lcp",t,lU,YR,e)}function oU(t){return Im("ttfb",t,uU,KR)}function Fx(t){return Im("inp",t,cU,JR)}function Tu(t,e){return QR(t,e),Nf[t]||(dU(t),Nf[t]=!0),XR(t,e)}function op(t,e){const n=id[t];if(n!=null&&n.length)for(const r of n)try{r(e)}catch(i){Ti&&ae.error(`Error while triggering instrumentation handler. 58Type: ${t} 59Name: ${Cs(r)}
59 60Error:`,i)}}function aU(){return Y2(t=>{op("cls",{metric:t}),GR=t},{reportAllChanges:!0})}function lU(){return rU(t=>{op("lcp",{metric:t}),YR=t},{reportAllChanges:!0})}function uU(){return sU(t=>{op("ttfb",{metric:t}),KR=t})}function cU(){return eU(t=>{op("inp",{metric:t}),JR=t})}function Im(t,e,n,r,i=!1){QR(t,e);let s;return Nf[t]||(s=n(),Nf[t]=!0),r&&e({metric:r}),XR(t,e,i?s:void 0)}function dU(t){const e={};t==="event"&&(e.durationThreshold=0),Hu(t,n=>{op(t,{entries:n})},e)}function QR(t,e){id[t]=id[t]||[],id[t].push(e)}function XR(t,e,n){return()=>{n&&n();const r=id[t];if(!r)return;const i=r.indexOf(e);i!==-1&&r.splice(i,1)}}function pU(t){return"duration"in t}const hU=t=>{const e=n=>{var r;(n.type==="pagehide"||((r=ze.document)==null?void 0:r.visibilityState)==="hidden")&&t(n)};Lo("visibilitychange",e,{capture:!0,once:!0}),Lo("pagehide",e,{capture:!0,once:!0})};function ly(t){return typeof t=="number"&&isFinite(t)}function jo(t,e,n,{...r}){const i=vt(t).start_timestamp;return i&&i>e&&typeof t.updateStartTime=="function"&&t.updateStartTime(e),lR(t,()=>{const s=tl({startTime:e,...r});return s&&s.end(n),s})}function Ux(t){var w;const e=Xe();if(!e)return;const{name:n,transaction:r,attributes:i,startTime:s}=t,{release:l,environment:u,sendDefaultPii:c}=e.getOptions(),p=e.getIntegrationByName("Replay"),h=p==null?void 0:p.getReplayId(),m=_t(),g=m.getUser(),_=g!==void 0?g.email||g.id||g.ip_address:void 0;let x;try{x=m.getScopeData().contexts.profile.profile_id}catch{}const S={release:l,environment:u,user:_||void 0,profile_id:x||void 0,replay_id:h||void 0,transaction:r,"user_agent.original":(w=ze.navigator)==null?void 0:w.userAgent,"client.address":c?"{{auto}}":void 0,...i};return tl({name:n,attributes:S,startTime:s,experimental:{standalone:!0}})}function ap(){return ze.addEventListener&&ze.performance}function Ut(t){return t/1e3}function fU(t){let e="unknown",n="unknown",r="";for(const i of t){if(i==="/"){[e,n]=t.split("/");break}if(!isNaN(Number(i))){e=r==="h"?"http":r,n=t.split(r)[1];break}r+=i}return r===t&&(e=r),{name:e,version:n}}function Lm(t){try{return PerformanceObserver.supportedEntryTypes.includes(t)}catch{return!1}}function Mm(t,e){let n,r=!1;function i(u){!r&&n&&e(u,n.spanContext().spanId,n),r=!0}hU(()=>{i("pagehide")});const s=t.on("beforeStartNavigationSpan",(u,c)=>{c!=null&&c.isRedirect||(i("navigation"),s(),l())}),l=t.on("afterStartPageLoadSpan",u=>{n=u,l()})}function mU(t){let e=0,n;if(!Lm("layout-shift"))return;const r=Rm(({metric:i})=>{const s=i.entries[i.entries.length-1];s&&(e=i.value,n=s)},!0);Mm(t,(i,s)=>{gU(e,n,s,i),r()})}function gU(t,e,n,r){var p;Ti&&ae.log(`Sending CLS span (${t})`);const i=e?Ut((Nn()||0)+e.startTime):fn(),s=_t().getScopeData().transactionName,l=e?mn((p=e.sources[0])==null?void 0:p.node):"Layout shift",u={[gn]:"auto.http.browser.cls",[Ci]:"ui.webvital.cls",[Bo]:0,"sentry.pageload.span_id":n,"sentry.report_event":r};e!=null&&e.sources&&e.sources.forEach((h,m)=>{u[`cls.source.${m+1}`]=mn(h.node)});const c=Ux({name:l,transaction:s,attributes:u,startTime:i});c&&(c.addEvent("cls",{[Zd]:"",[ep]:t}),c.end(i))}function vU(t){let e=0,n;if(!Lm("largest-contentful-paint"))return;const r=Am(({metric:i})=>{const s=i.entries[i.entries.length-1];s&&(e=i.value,n=s)},!0);Mm(t,(i,s)=>{yU(e,n,s,i),r()})}function yU(t,e,n,r){Ti&&ae.log(`Sending LCP span (${t})`);const i=Ut((Nn()||0)+((e==null?void 0:e.startTime)||0)),s=_t().getScopeData().transactionName,l=e?mn(e.element):"Largest contentful paint",u={[gn]:"auto.http.browser.lcp",[Ci]:"ui.webvital.lcp",[Bo]:0,"sentry.pageload.span_id":n,"sentry.report_event":r};e&&(e.element&&(u["lcp.element"]=mn(e.element)),e.id&&(u["lcp.id"]=e.id),e.url&&(u["lcp.url"]=e.url),e.loadTime!=null&&(u["lcp.loadTime"]=e.loadTime),e.renderTime!=null&&(u["lcp.renderTime"]=e.renderTime),e.size!=null&&(u["lcp.size"]=e.size));const c=Ux({name:l,transaction:s,attributes:u,startTime:i});c&&(c.addEvent("lcp",{[Zd]:"millisecond",[ep]:t}),c.end(i))}function Yr(t){return t&&((Nn()||performance.timeOrigin)+t)/1e3}function ZR(t){var n;const e={};if(t.nextHopProtocol!=null){const{name:r,version:i}=fU(t.nextHopProtocol);e["network.protocol.version"]=i,e["network.protocol.name"]=r}return Nn()||(n=ap())!=null&&n.timeOrigin?_U({...e,"http.request.redirect_start":Yr(t.redirectStart),"http.request.redirect_end":Yr(t.redirectEnd),"http.request.worker_start":Yr(t.workerStart),"http.request.fetch_start":Yr(t.fetchStart),"http.request.domain_lookup_start":Yr(t.domainLookupStart),"http.request.domain_lookup_end":Yr(t.domainLookupEnd),"http.request.connect_start":Yr(t.connectStart),"http.request.secure_connection_start":Yr(t.secureConnectionStart),"http.request.connection_end":Yr(t.connectEnd),"http.request.request_start":Yr(t.requestStart),"http.request.response_start":Yr(t.responseStart),"http.request.response_end":Yr(t.responseEnd),"http.request.time_to_first_byte":t.responseStart!=null?t.responseStart/1e3:void 0}):e}function _U(t){return Object.fromEntries(Object.entries(t).filter(([,e])=>e!=null))}const bU=2147483647;let gk=0,tr={},vr,Zl;function xU({recordClsStandaloneSpans:t,recordLcpStandaloneSpans:e,client:n}){const r=ap();if(r&&Nn()){r.mark&&ze.performance.mark("sentry-tracing-init");const i=e?vU(n):e===!1?CU():void 0,s=t?mU(n):t===!1?kU():void 0,l=TU();return()=>{l(),i==null||i(),s==null||s()}}return()=>{}}function SU(){Tu("longtask",({entries:t})=>{const e=lr();if(!e)return;const{op:n,start_timestamp:r}=vt(e);for(const i of t){const s=Ut(Nn()+i.startTime),l=Ut(i.duration);n==="navigation"&&r&&s<r||jo(e,s,s+l,{name:"Main UI thread blocked",op:"ui.long-task",attributes:{[gn]:"auto.ui.browser.metrics"}})}})}function wU(){new PerformanceObserver(e=>{const n=lr();if(n)for(const r of e.getEntries()){if(!r.scripts[0])continue;const i=Ut(Nn()+r.startTime),{start_timestamp:s,op:l}=vt(n);if(l==="navigation"&&s&&i<s)continue;const u=Ut(r.duration),c={[gn]:"auto.ui.browser.metrics"},p=r.scripts[0],{invoker:h,invokerType:m,sourceURL:g,sourceFunctionName:_,sourceCharPosition:x}=p;c["browser.script.invoker"]=h,c["browser.script.invoker_type"]=m,g&&(c["code.filepath"]=g),_&&(c["code.function"]=_),x!==-1&&(c["browser.script.source_char_position"]=x),jo(n,i,i+u,{name:"Main UI thread blocked",op:"ui.long-animation-frame",attributes:c})}}).observe({type:"long-animation-frame",buffered:!0})}function EU(){Tu("event",({entries:t})=>{const e=lr();if(e){for(const n of t)if(n.name==="click"){const r=Ut(Nn()+n.startTime),i=Ut(n.duration),s={name:mn(n.target),op:`ui.interaction.${n.name}`,startTime:r,attributes:{[gn]:"auto.ui.browser.metrics"}},l=PP(n.target);l&&(s.attributes["ui.component_name"]=l),jo(e,r,r+i,s)}}})}function kU(){return Rm(({metric:t})=>{const e=t.entries[t.entries.length-1];e&&(tr.cls={value:t.value,unit:""},Zl=e)},!0)}function CU(){return Am(({metric:t})=>{const e=t.entries[t.entries.length-1];e&&(tr.lcp={value:t.value,unit:"millisecond"},vr=e)},!0)}function TU(){return oU(({metric:t})=>
60{t.entries[t.entries.length-1]&&(tr.ttfb={value:t.value,unit:"millisecond"})})}function PU(t,e){const n=ap(),r=Nn();if(!(n!=null&&n.getEntries)||!r)return;const{spanStreamingEnabled:i,ignorePerformanceApiSpans:s,ignoreResourceSpans:l,recordClsOnPageloadSpan:u,recordLcpOnPageloadSpan:c}=e,p=Ut(r),h=n.getEntries(),{op:m,start_timestamp:g}=vt(t);if(h.slice(gk).forEach(_=>{const x=Ut(_.startTime),S=Ut(Math.max(0,_.duration));if(!(m==="navigation"&&g&&p+x<g))switch(_.entryType){case"navigation":{LU(t,_,p);break}case"mark":case"paint":case"measure":{AU(t,_,x,S,p,s);const w=ip(),C=_.startTime<w.firstHiddenTime;_.name==="first-paint"&&C&&(tr.fp={value:_.startTime,unit:"millisecond"}),_.name==="first-contentful-paint"&&C&&(tr.fcp={value:_.startTime,unit:"millisecond"});break}case"resource":{OU(t,_,_.name,x,S,p,l);break}}}),gk=Math.max(h.length-1,0),DU(t,i),m==="pageload"){if(UU(tr),i){const _=(x,S,w)=>{const C=w??`browser.web_vital.${x}.value`;t.setAttribute(C,S),Ti&&ae.log("Setting web vital attribute",{[C]:S},"on pageload span")};["ttfb","fp","fcp"].forEach(x=>{tr[x]&&_(x,tr[x].value)}),tr["ttfb.requestTime"]&&_("ttfb.requestTime",tr["ttfb.requestTime"].value,"browser.web_vital.ttfb.request_time")}else u||delete tr.cls,c||delete tr.lcp,Object.entries(tr).forEach(([_,x])=>{hj(_,x.value,x.unit)}),jU(t,e);t.setAttribute(i?"browser.performance.time_origin":"performance.timeOrigin",p),t.setAttribute(i?"browser.performance.navigation.activation_start":"performance.activationStart",Wu())}vr=void 0,Zl=void 0,tr={}}function RU(t){if((t==null?void 0:t.entryType)==="measure")try{return t.detail.devtools.track==="Components â"}catch{return}}function AU(t,e,n,r,i,s){if(RU(e)||["mark","measure"].includes(e.entryType)&&ws(e.name,s))return;const l=rp(!1),u=Ut(l?l.requestStart:0),c=i+Math.max(n,u),p=i+n,h=p+r,m={[gn]:"auto.resource.browser.metrics"};c!==p&&(m["sentry.browser.measure_happened_before_request"]=!0,m["sentry.browser.measure_start_time"]=c),IU(m,e),c<=h&&jo(t,c,h,{name:e.name,op:e.entryType,attributes:m})}function IU(t,e){try{const n=e.detail;if(!n)return;if(typeof n=="object"){for(const[r,i]of Object.entries(n))if(i&&Su(i))t[`sentry.browser.measure.detail.${r}`]=i;else if(i!==void 0)try{t[`sentry.browser.measure.detail.${r}`]=JSON.stringify(i)}catch{}return}if(Su(n)){t["sentry.browser.measure.detail"]=n;return}try{t["sentry.browser.measure.detail"]=JSON.stringify(n)}catch{}}catch{}}function LU(t,e,n){["unloadEvent","redirect","domContentLoadedEvent","loadEvent","connect"].forEach(r=>{Ch(t,e,r,n)}),Ch(t,e,"secureConnection",n,"TLS/SSL"),Ch(t,e,"fetch",n,"cache"),Ch(t,e,"domainLookup",n,"DNS"),NU(t,e,n)}function Ch(t,e,n,r,i=n){const s=MU(n),l=e[s],u=e[`${n}Start`];!u||!l||jo(t,r+Ut(u),r+Ut(l),{op:`browser.${i}`,name:e.name,attributes:{[gn]:"auto.ui.browser.metrics",...n==="redirect"&&e.redirectCount!=null?{"http.redirect_count":e.redirectCount}:{}}})}function MU(t){return t==="secureConnection"?"connectEnd":t==="fetch"?"domainLookupStart":`${t}End`}function NU(t,e,n){const r=n+Ut(e.requestStart),i=n+Ut(e.responseEnd),s=n+Ut(e.responseStart);e.responseEnd&&(jo(t,r,i,{op:"browser.request",name:e.name,attributes:{[gn]:"auto.ui.browser.metrics"}}),jo(t,s,i,{op:"browser.response",name:e.name,attributes:{[gn]:"auto.ui.browser.metrics"}}))}function OU(t,e,n,r,i,s,l){if(e.initiatorType==="xmlhttprequest"||e.initiatorType==="fetch")return;const u=e.initiatorType?`resource.${e.initiatorType}`:"resource.other";if(l!=null&&l.includes(u))return;const c={[gn]:"auto.resource.browser.metrics"},p=za(n);p.protocol&&(c["url.scheme"]=p.protocol.split(":").pop()),p.host&&(c["server.address"]=p.host),c["url.same_origin"]=n.includes(ze.location.origin),FU(e,c,[["responseStatus","http.response.status_code"],["transferSize","http.response_transfer_size"],["encodedBodySize","http.response_content_length"],["decodedBodySize","http.decoded_response_content_length"],["renderBlockingStatus","resource.render_blocking_status"],["deliveryType","http.response_delivery_type"]]);const h={...c,...ZR(e)},m=s+r,g=m+i;jo(t,m,g,{name:n.replace(ze.location.origin,""),op:u,attributes:h})}function DU(t,e){const n=ze.navigator;if(!n)return;const r=n.connection;r&&(r.effectiveType&&t.setAttribute(e?"network.connection.effective_type":"effectiveConnectionType",r.effectiveType),r.type&&t.setAttribute(e?"network.connection.type":"connectionType",r.type),ly(r.rtt)&&(tr["connection.rtt"]={value:r.rtt,unit:"millisecond"},e&&t.setAttribute("network.connection.rtt",r.rtt))),ly(n.deviceMemory)&&(e?t.setAttribute("device.memory.estimated_capacity",n.deviceMemory):t.setAttribute("deviceMemory",`${n.deviceMemory} GB`)),ly(n.hardwareConcurrency)&&(e?t.setAttribute("device.processor_count",n.hardwareConcurrency):t.setAttribute("hardwareConcurrency",String(n.hardwareConcurrency)))}function jU(t,e){vr&&e.recordLcpOnPageloadSpan&&(vr.element&&t.setAttribute("lcp.element",mn(vr.element)),vr.id&&t.setAttribute("lcp.id",vr.id),vr.url&&t.setAttribute("lcp.url",vr.url.trim().slice(0,200)),vr.loadTime!=null&&t.setAttribute("lcp.loadTime",vr.loadTime),vr.renderTime!=null&&t.setAttribute("lcp.renderTime",vr.renderTime),t.setAttribute("lcp.size",vr.size)),Zl!=null&&Zl.s
60ources&&e.recordClsOnPageloadSpan&&Zl.sources.forEach((n,r)=>t.setAttribute(`cls.source.${r+1}`,mn(n.node)))}function FU(t,e,n){n.forEach(([r,i])=>{const s=t[r];s!=null&&(typeof s=="number"&&s<bU||typeof s=="string")&&(e[i]=s)})}function UU(t){const e=rp(!1);if(!e)return;const{responseStart:n,requestStart:r}=e;r<=n&&(t["ttfb.requestTime"]={value:n-r,unit:"millisecond"})}const uy=[],sd=new Map,Al=new Map,eA=60;function zU(){if(ap()&&Nn()){const e=BU();return()=>{e()}}return()=>{}}const kd={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 BU(){return Fx($U)}const $U=({metric:t})=>{if(t.value==null)return;const e=Ut(t.value);if(e>eA)return;const n=t.entries.find(x=>x.duration===t.value&&kd[x.name]);if(!n)return;const{interactionId:r}=n,i=kd[n.name],s=Ut(Nn()+n.startTime),l=lr(),u=l?Mn(l):void 0,c=r!=null?sd.get(r):void 0,p=(c==null?void 0:c.span)||u,h=p?vt(p).description:_t().getScopeData().transactionName,m=(c==null?void 0:c.elementName)||mn(n.target),g={[gn]:"auto.http.browser.inp",[Ci]:`ui.interaction.${i}`,[Bo]:n.duration},_=Ux({name:m,transaction:h,attributes:g,startTime:s});_&&(_.addEvent("inp",{[Zd]:"millisecond",[ep]:t.value}),_.end(s+e))};function qU(t){return t!=null?sd.get(t):void 0}function WU(){const t=Object.keys(kd);E_()&&t.forEach(i=>{ze.addEventListener(i,e,{capture:!0,passive:!0})});function e(i){const s=i.target;if(!s)return;const l=mn(s),u=Math.round(i.timeStamp);if(Al.set(u,l),Al.size>50){const c=Al.keys().next().value;c!==void 0&&Al.delete(c)}}function n(i){const s=Math.round(i.startTime);let l=Al.get(s);if(!l)for(let u=-5;u<=5;u++){const c=Al.get(s+u);if(c){l=c;break}}return l||"<unknown>"}const r=({entries:i})=>{const s=lr(),l=s&&Mn(s);i.forEach(u=>{if(!pU(u))return;const c=u.interactionId;if(c==null||sd.has(c))return;const p=u.target?mn(u.target):n(u);if(uy.length>10){const h=uy.shift();sd.delete(h)}uy.push(c),sd.set(c,{span:l,elementName:p})})};Tu("event",r),Tu("first-input",r)}function zx(t){var x,S;const{name:e,op:n,origin:r,metricName:i,value:s,attributes:l,parentSpan:u,reportEvent:c,startTime:p,endTime:h}=t,m=_t().getScopeData().transactionName,g={[gn]:r,[Ci]:n,[Bo]:0,[`browser.web_vital.${i}.value`]:s,"sentry.transaction":m,"user_agent.original":(x=ze.navigator)==null?void 0:x.userAgent,...l};u&&((S=YP(u).attributes)==null?void 0:S[Ci])==="pageload"&&(g["sentry.pageload.span_id"]=u.spanContext().spanId),c&&(g[`browser.web_vital.${i}.report_event`]=c);const _=tl({name:e,attributes:g,startTime:p,parentSpan:u});_&&_.end(h??p)}function HU(t){let e=0,n;if(!Lm("largest-contentful-paint"))return;const r=Am(({metric:i})=>{const s=i.entries[i.entries.length-1];s&&(e=i.value,n=s)},!0);Mm(t,(i,s,l)=>{VU(e,n,l,i),r()})}function VU(t,e,n,r){Ti&&ae.log(`Sending LCP span (${t})`);const i=Nn()||0,s=Ut(i),l=Ut(i+((e==null?void 0:e.startTime)||0)),u=e?mn(e.element):"Largest contentful paint",c={};e!=null&&e.element&&(c["browser.web_vital.lcp.element"]=mn(e.element)),e!=null&&e.id&&(c["browser.web_vital.lcp.id"]=e.id),e!=null&&e.url&&(c["browser.web_vital.lcp.url"]=e.url),(e==null?void 0:e.loadTime)!=null&&(c["browser.web_vital.lcp.load_time"]=e.loadTime),(e==null?void 0:e.renderTime)!=null&&(c["browser.web_vital.lcp.render_time"]=e.renderTime),(e==null?void 0:e.size)!=null&&(c["browser.web_vital.lcp.size"]=e.size),zx({name:u,op:"ui.webvital.lcp",origin:"auto.http.browser.lcp",metricName:"lcp",value:t,attributes:c,parentSpan:n,reportEvent:r,startTime:s,endTime:l})}function GU(t){let e=0,n;if(!Lm("layout-shift"))return;const r=Rm(({metric:i})=>{const s=i.entries[i.entries.length-1];s&&(e=i.value,n=s)},!0);Mm(t,(i,s,l)=>{YU(e,n,l,i),r()})}function YU(t,e,n,r){var u;Ti&&ae.log(`Sending CLS span (${t})`);
60const i=e?Ut((Nn()||0)+e.startTime):fn(),s=e?mn((u=e.sources[0])==null?void 0:u.node):"Layout shift",l={};e!=null&&e.sources&&e.sources.forEach((c,p)=>{l[`browser.web_vital.cls.source.${p+1}`]=mn(c.node)}),zx({name:s,op:"ui.webvital.cls",origin:"auto.http.browser.cls",metricName:"cls",value:t,attributes:l,parentSpan:n,reportEvent:r,startTime:i})}function KU(){if(!ap()||!Nn())return;Fx(({metric:n})=>{if(n.value==null||Ut(n.value)>eA)return;const i=n.entries.find(s=>s.duration===n.value&&kd[s.name]);i&&JU(n.value,i)})}function JU(t,e){Ti&&ae.log(`Sending INP span (${t})`);const n=Ut(Nn()+e.startTime),r=Ut(t),i=kd[e.name],s=qU(e.interactionId),l=lr(),u=l?Mn(l):void 0,c=(s==null?void 0:s.span)||u,p=c?YP(c).name:_t().getScopeData().transactionName,h=(s==null?void 0:s.elementName)||mn(e.target);zx({name:h,op:`ui.interaction.${i}`,origin:"auto.http.browser.inp",metricName:"inp",value:t,attributes:{[Bo]:e.duration,"sentry.transaction":p},startTime:n,endTime:n+r,parentSpan:c})}const QU=1e3;let vk,R_,A_;function tA(t){Uo("dom",t),zo("dom",XU)}function XU(){if(!ze.document)return;const t=ei.bind(null,"dom"),e=yk(t,!0);ze.document.addEventListener("click",e,!1),ze.document.addEventListener("keypress",e,!1),["EventTarget","Node"].forEach(n=>{var s,l;const i=(s=ze[n])==null?void 0:s.prototype;(l=i==null?void 0:i.hasOwnProperty)!=null&&l.call(i,"addEventListener")&&(xr(i,"addEventListener",function(u){return function(c,p,h){if(c==="click"||c=="keypress")try{const m=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},g=m[c]=m[c]||{refCount:0};if(!g.handler){const _=yk(t);g.handler=_,u.call(this,c,_,h)}g.refCount++}catch{}return u.call(this,c,p,h)}}),xr(i,"removeEventListener",function(u){return function(c,p,h){if(c==="click"||c=="keypress")try{const m=this.__sentry_instrumentation_handlers__||{},g=m[c];g&&(g.refCount--,g.refCount<=0&&(u.call(this,c,g.handler,h),g.handler=void 0,delete m[c]),Object.keys(m).length===0&&delete this.__sentry_instrumentation_handlers__)}catch{}return u.call(this,c,p,h)}}))})}function ZU(t){if(t.type!==R_)return!1;try{if(!t.target||t.target._sentryId!==A_)return!1}catch{}return!0}function ez(t,e){return t!=="keypress"?!1:e!=null&&e.tagName?!(e.tagName==="INPUT"||e.tagName==="TEXTAREA"||e.isContentEditable):!0}function yk(t,e=!1){return n=>{if(!n||n._sentryCaptured)return;const r=tz(n);if(ez(n.type,r))return;Er(n,"_sentryCaptured",!0),r&&!r._sentryId&&Er(r,"_sentryId",jr());
60const i=n.type==="keypress"?"input":n.type;ZU(n)||(t({event:n,name:i,global:e}),R_=n.type,A_=r?r._sentryId:void 0),clearTimeout(vk),vk=ze.setTimeout(()=>{A_=void 0,R_=void 0},QU)}}function tz(t){try{return t.target}catch{return null}}let Th;function Nm(t){const e="history";Uo(e,t),zo(e,nz)}function nz(){if(ze.addEventListener("popstate",()=>{const e=ze.location.href,n=Th;if(Th=e,n===e)return;ei("history",{from:n,to:e})}),!m2())return;function t(e){return function(...n){const r=n.length>2?n[2]:void 0;if(r){const i=Th,s=rz(String(r));if(Th=s,i===s)return e.apply(this,n);ei("history",{from:i,to:s})}return e.apply(this,n)}}xr(ze.history,"pushState",t),xr(ze.history,"replaceState",t)}function rz(t){try{return new URL(t,ze.location.origin).toString()}catch{return t}}const df={};function nA(t){const e=df[t];if(e)return e;let n=ze[t];if(w_(n))return df[t]=n.bind(ze);const r=ze.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!=null&&s[t]&&(n=s[t]),r.head.removeChild(i)}catch(i){Ti&&ae.warn(`Could not create sandbox iframe for ${t} check, bailing to window.${t}: `,i)}return n&&(df[t]=n.bind(ze))}function iz(t){df[t]=void 0}function lp(...t){return nA("setTimeout")(...t)}const wa="__sentry_xhr_v3__";function rA(t){Uo("xhr",t),zo("xhr",sz)}function sz(){if(!ze.XMLHttpRequest)return;const t=XMLHttpRequest.prototype;t.open=new Proxy(t.open,{apply(e,n,r){const i=new Error,s=fn()*1e3,l=Ss(r[0])?r[0].toUpperCase():void 0,u=oz(r[1]);if(!l||!u)return e.apply(n,r);n[wa]={method:l,url:u,request_headers:{}},l==="POST"&&u.match(/sentry_key/)&&(n.__sentry_own_request__=!0);const c=()=>{const p=n[wa];if(p&&n.readyState===4){try{p.status_code=n.status}catch{}const h={endTimestamp:fn()*1e3,startTimestamp:s,xhr:n,virtualError:i};ei("xhr",h)}};return"onreadystatechange"in n&&typeof n.onreadystatechange=="function"?n.onreadystatechange=new Proxy(n.onreadystatechange,{apply(p,h,m){return c(),p.apply(h,m)}}):n.addEventListener("readystatechange",c),n.setRequestHeader=new Proxy(n.setRequestHeader,{apply(p,h,m){const[g,_]=m,x=h[wa];return x&&Ss(g)&&Ss(_)&&(x.request_headers[g.toLowerCase()]=_),p.apply(h,m)}}),e.apply(n,r)}}),t.send=new Proxy(t.send,{apply(e,n,r){const i=n[wa];if(!i)return e.apply(n,r);r[0]!==void 0&&(i.body=r[0]);const s={startTimestamp:fn()*1e3,xhr:n};return ei("xhr",s),e.apply(n,r)}})}function oz(t){if(Ss(t))return t;try{return t.toString()}catch{}}const az=Symbol.for("sentry__originalRequestBody");function iA(t){return new URLSearchParams(t).toString()}function sA(t,e=ae){try{if(typeof t=="string")return[t];if(t instanceof URLSearchParams)return[t.toString()];if(t instanceof FormData)return[iA(t)];if(!t)return[void 0]}catch(n){return Ti&&e.error(n,"Failed to serialize body",t),[void 0,"BODY_PARSE_ERROR"]}return Ti&&e.log("Skipping network body because of body type",t),[void 0,"UNPARSEABLE_BODY_TYPE"]}function oA(t=[]){if(t.length>=2&&t[1]&&typeof t[1]=="object"&&"body"in t[1])return t[1].body;if(t.length>=1&&t[0]instanceof Request){const n=t[0][az];return n!==void 0?n:void 0}}function aA(t){let e;try{e=t.getAllResponseHeaders()}catch(n){return Ti&&ae.error(n,"Failed to get xhr response headers",t),{}}return e?e.split(`\r 61`).reduce((n,r)=>{const[i,s]=r.split(": ");return s&&(n[i.toLowerCase()]=s),n},{}):{}}const lz=40;function uz(t,e=nA("fetch")){let n=0,r=0;async function i(s){const l=s.body.length;n+=l,r++;const u={body:s.body,method:"POST",referrerPolicy:"strict-origin",headers:t.headers,keepalive:n<=6e4&&r<15,...t.fetchOptions};try{const c=await e(t.url,u);return{statusCode:c.status,headers:{"x-sentry-rate-limits":c.headers.get("X-Sentry-Rate-Limits"),"retry-after":c.headers.get("Retry-After")}}}catch(c){throw iz("fetch"),c}finally{n-=l,r--}}return pF(t,i,Rx(t.bufferSize||lz))}const ar=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,cz=30,dz=50;function I_(t,e,n,r){const i={filename:t,function:e==="<anonymous>"?Wa:e,in_app:!0};return n!==void 0&&(i.lineno=n),r!==void 0&&(i.colno=r),i}const pz=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,hz=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,fz=/\((\S*)(?::(\d+))(?::(\d+))\)/,mz=/at (.+?) ?\(data:(.+?),/,gz=t=>{var i;const e=t.match(mz);
vendor: 4,230 bytes, line 61
61if(e)return{filename:`<data:${e[2]}>`,function:e[1]};const n=pz.exec(t);if(n){const[,s,l,u]=n;return I_(s,Wa,+l,+u)}const r=hz.exec(t);if(r){if(((i=r[2])==null?void 0:i.indexOf("eval"))===0){const c=fz.exec(r[2]);c&&(r[2]=c[1],r[3]=c[2],r[4]=c[3])}const[l,u]=lA(r[1]||Wa,r[2]);return I_(u,l,r[3]?+r[3]:void 0,r[4]?+r[4]:void 0)}},vz=[cz,gz],yz=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,_z=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,bz=t=>{const e=yz.exec(t);if(e){if(e[3]&&e[3].indexOf(" > eval")>-1){const s=_z.exec(e[3]);s&&(e[1]=e[1]||"eval",e[3]=s[1],e[4]=s[2],e[5]="")}let r=e[3],i=e[1]||Wa;return[i,r]=lA(i,r),I_(r,i,e[4]?+e[4]:void 0,e[5]?+e[5]:void 0)}},xz=[dz,bz],Sz=[vz,xz],wz=xP(...Sz),lA=(t,e)=>{const n=t.indexOf("safari-extension")!==-1,r=t.indexOf("safari-web-extension")!==-1;return n||r?[t.indexOf("@")!==-1?t.split("@")[0]:Wa,n?`safari-extension:${e}`:`safari-web-extension:${e}`]:[t,e]},Ph=1024,Ez="Breadcrumbs",kz=((t={})=>{const e={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...t};return{name:Ez,setup(n){e.console&&QF(Rz(n)),e.dom&&tA(Pz(n,e.dom)),e.xhr&&rA(Az(n)),e.fetch&&FR(Iz(n)),e.history&&Nm(Lz(n)),e.sentry&&n.on("beforeSendEvent",Tz(n))}}}),Cz=kz;function Tz(t){return function(n){Xe()===t&&Do({category:`sentry.${n.type==="transaction"?"transaction":"event"}`,event_id:n.event_id,level:n.level,message:ba(n)},{event:n})}}function Pz(t,e){return function(r){if(Xe()!==t)return;let i,s,l=typeof e=="object"?e.serializeAttribute:void 0,u=typeof e=="object"&&typeof e.maxStringLength=="number"?e.maxStringLength:void 0;u&&u>Ph&&(ar&&ae.warn(`\`dom.maxStringLength\` cannot exceed ${Ph}, but a value of ${u} was configured. Sentry will use ${Ph} instead.`),u=Ph),typeof l=="string"&&(l=[l]);try{const p=r.event,h=Mz(p)?p.target:p;i=mn(h,{keyAttrs:l,maxStringLength:u}),s=PP(h)}catch{i="<unknown>"}if(i.length===0)return;const c={category:`ui.${r.name}`,message:i};s&&(c.data={"ui.component_name":s}),Do(c,{event:r.event,name:r.name,global:r.global})}}function Rz(t){return function(n){if(Xe()!==t)return;const r={category:"console",data:{arguments:n.args,logger:"console"},level:NR(n.level),message:PE(n.args," ")};if(n.level==="assert")if(n.args[0]===!1)r.message=`Assertion failed: ${PE(n.args.slice(1)," ")||"console.assert"}`,r.data.arguments=n.args.slice(1);else return;Do(r,{input:n.args,level:n.level})}}function Az(t){return function(n){if(Xe()!==t)return;const{startTimestamp:r,endTimestamp:i}=n,s=n.xhr[wa];if(!r||!i||!s)return;const{method:l,url:u,status_code:c,body:p}=s,h={method:l,url:u,status_code:c},m={xhr:n.xhr,input:p,startTimestamp:r,endTimestamp:i},g={category:"xhr",data:h,type:"http",level:jR(c)};t.emit("beforeOutgoingRequestBreadcrumb",g,m),Do(g,m)}}function Iz(t){return function(n){if(Xe()!==t)return;const{startTimestamp:r,endTimestamp:i}=n;if(i&&!(n.fetchData.url.match(/sentry_key/)&&n.fetchData.method==="POST"))if(n.error){const s={data:n.error,input:n.args,startTimestamp:r,endTimestamp:i},l={category:"fetch",data:n.fetchData,level:"error",type:"http"};t.emit("beforeOutgoingRequestBreadcrumb",l,s),Do(l,s)}else{const s=n.response,l={...n.fetchData,status_code:s==null?void 0:s.status},u={input:n.args,response:s,startTimestamp:r,endTimestamp:i},c={category:"fetch",data:l,type:"http",level:jR(l.status_code)};t.emit("beforeOutgoingRequestBreadcrumb",c,u),Do(c,u)}}}function Lz(t){return function(n){if(Xe()!==t)return;let r=n.from,i=n.to;const s=za(Je.location.href);let l=r?za(r):void 0;const u=za(i);l!=null&&l.path||(l=s),s.protocol===u.protocol&&s.host===u.host&&(i=u.relative),s.protocol===l.protocol&&s.host===l.host&&(r=l.relative),Do({category:"navigation",data:{from:r,to:i}})}}function Mz(t){return!!t&&!!t.target}const Nz="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".
61split(","),Oz="BrowserApiErrors",Dz=((t={})=>{const e={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,unregisterOriginalCallbacks:!1,...t};return{name:Oz,setupOnce(){e.setTimeout&&xr(Je,"setTimeout",_k),e.setInterval&&xr(Je,"setInterval",_k),e.requestAnimationFrame&&xr(Je,"requestAnimationFrame",Fz),e.XMLHttpRequest&&"XMLHttpRequest"in Je&&xr(XMLHttpRequest.prototype,"send",Uz);const n=e.eventTarget;n&&(Array.isArray(n)?n:Nz).forEach(i=>zz(i,e))}}}),jz=Dz;function _k(t){return function(...e){const n=e[0];return e[0]=Cu(n,{mechanism:{handled:!1,type:`auto.browser.browserapierrors.${Cs(t)}`}}),t.apply(this,e)}}function Fz(t){return function(e){return t.apply(this,[Cu(e,{mechanism:{data:{handler:Cs(t)},handled:!1,type:"auto.browser.browserapierrors.requestAnimationFrame"}})])}}function Uz(t){return function(...e){const n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(i=>{i in n&&typeof n[i]=="function"&&xr(n,i,function(s){const l={mechanism:{data:{handler:Cs(s)},handled:!1,type:`auto.browser.browserapierrors.xhr.${i}`}},u=bx(s);return u&&(l.mechanism.data.handler=Cs(u)),Cu(s,l)})}),t.apply(this,e)}}function zz(t,e){var i,s;const r=(i=Je[t])==null?void 0:i.prototype;(s=r==null?void 0:r.hasOwnProperty)!=null&&s.call(r,"addEventListener")&&(xr(r,"addEventListener",function(l){return function(u,c,p){try{Bz(c)&&(c.handleEvent=Cu(c.handleEvent,{mechanism:{data:{handler:Cs(c),target:t},handled:!1,type:"auto.browser.browserapierrors.handleEvent"}}))}catch{}return e.unregisterOriginalCallbacks&&$z(this,u,c),l.apply(this,[u,Cu(c,{mechanism:{data:{handler:Cs(c),target:t},handled:!1,type:"auto.browser.browserapierrors.addEventListener"}}),p])}}),xr(r,"removeEventListener",function(l){return function(u,c,p){try{const h=c.__sentry_wrapped__;h&&l.call(this,u,h,p)}catch{}return l.call(this,u,c,p)}}))}function Bz(t){return typeof t.handleEvent=="function"}function $z(t,e,n){t&&typeof t=="object"&&"removeEventListener"in t&&typeof t.removeEventListener=="function"&&t.removeEventListener(e,n)}const qz=(t={})=>{const e=t.lifecycle??"route";return{name:"BrowserSession",setupOnce(){if(typeof Je.document>"u"){ar&&ae.warn("Using the `browserSessionIntegration` in non-browser environments is not supported.");return}JE({ignoreDuration:!0}),ny();const n=Ur();let r=n.getUser();n.addScopeListener(i=>{const s=i.getUser();((r==null?void 0:r.id)!==(s==null?void 0:s.id)||(r==null?void 0:r.ip_address)!==(s==null?void 0:s.ip_address))&&(ny(),r=s)}),e==="route"&&Nm(({from:i,to:s})=>{i!==s&&(JE({ignoreDuration:!0}),ny())})}}},Wz="CultureContext",Hz=(()=>({name:Wz,preprocessEvent(t){var n;const e=Gz();e&&(t.contexts={...t.contexts,culture:{...e,...(n=t.contexts)==null?void 0:n.culture}})}})),Vz=Hz;function Gz(){try{const t=Je.Intl;if(!t)return;const e=t.DateTimeFormat().resolvedOptions();return{locale:e.locale,timezone:e.timeZone,calendar:e.calendar}}catch{return}}const Yz="GlobalHandlers",Kz=((t={})=>{const e={onerror:!0,onunhandledrejection:!0,...t};return{name:Yz,setupOnce(){Error.stackTraceLimit=50},setup(n){e.onerror&&(Qz(n),bk("onerror")),e.onunhandledrejection&&(Xz(n),bk("onunhandledrejection"))}}}),Jz=Kz;function Qz(t){wP(e=>{const{stackParser:n,attachStacktrace:r}=uA();if(Xe()!==t||zR())return;const{msg:i,url:s,line:l,column:u,error:c}=e,p=tB(Ox(n,c||i,void 0,r,!1),s,l,u);p.level="error",hR(p,{originalException:c,mechanism:{handled:!1,type:"auto.browser.global_handlers.onerror"}})})}function Xz(t){EP(e=>{const{stackParser:n,attachStacktrace:r}=uA();if(Xe()!==t||zR())return;const i=Zz(e),s=Su(i)?eB(i):Ox(n,i,void 0,r,!0);s.level="error",hR(s,{originalException:i,mechanism:{handled:!1,type:"auto.browser.global_handlers.onunhandledrejection"}})})}function Zz(t){if(Su(t))return t;try{if("reason"in t)return t.reason;if("detail"in t&&"reason"in t.detail)return t.detail.reason}catch{}return t}function eB(t){return{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(t)}`}]}}}function tB(t,e,n,r){const i=t.exception=t.exception||{},s=i.values=i.values||[],l=s[0]=s[0]||{},u=l.stacktrace=l.stacktrace||{},c=u.frames=u.frames||[];
61return c.length===0&&c.push({colno:r,lineno:n,filename:nB(e)??$u(),function:Wa,in_app:!0}),t}function bk(t){ar&&ae.log(`Global Handler attached: ${t}`)}function uA(){const t=Xe();return(t==null?void 0:t.getOptions())||{stackParser:()=>[],attachStacktrace:!1}}function nB(t){if(!(!Ss(t)||t.length===0))return t.startsWith("data:")?`<${Io(t,!1)}>`:t}const rB=()=>({name:"HttpContext",preprocessEvent(t){var r;if(!Je.navigator&&!Je.location&&!Je.document)return;const e=Lx(),n={...e.headers,...(r=t.request)==null?void 0:r.headers};t.request={...e,...t.request,headers:n}}}),iB="cause",sB=5,oB="LinkedErrors",aB=((t={})=>{const e=t.limit||sB,n=t.key||iB;return{name:oB,preprocessEvent(r,i,s){const l=s.getOptions();JF(Mx,l.stackParser,n,e,r,i)}}}),lB=aB;function uB(){return cB()?(ar&&Fo(()=>{console.error("[Sentry] You cannot use Sentry.init() in a browser extension, see: https://docs.sentry.io/platforms/javascript/best-practices/browser-extensions/")}),!0):!1}function cB(){var i;if(typeof Je.window>"u")return!1;const t=Je;if(t.nw)return!1;const e=t.chrome||t.browser;if(!((i=e==null?void 0:e.runtime)!=null&&i.id))return!1;const n=$u();return!(Je===Je.top&&/^(?:chrome-extension|moz-extension|ms-browser-extension|safari-web-extension):\/\//.test(n))}function dB(t){return[$F(),FF(),a2(),jz(),Cz(),Jz(),lB(),t2(),rB(),Vz(),qz()]}function pB(t={}){const e=!t.skipBrowserExtensionCheck&&uB();let n=t.defaultIntegrations==null?dB():t.defaultIntegrations;const r={...t,enabled:e?!1:t.enabled,stackParser:HO(t.stackParser||wz),integrations:tF({integrations:t.integrations,defaultIntegrations:n}),transport:t.transport||uz};return wF(U2,r)}function xk(t={}){const e=Je.document,n=(e==null?void 0:e.head)||(e==null?void 0:e.body);if(!n){ar&&ae.error("[showReportDialog] Global document not defined");return}const r=_t(),i=Xe(),s=i==null?void 0:i.getDsn();if(!s){ar&&ae.error("[showReportDialog] DSN not configured");return}const l={...t,user:{...r.getUser(),...t.user},eventId:t.eventId||Vj()},u=Je.document.createElement("script");u.async=!0,u.crossOrigin="anonymous",u.src=Zj(s,l);const{onLoad:c,onClose:p}=l;if(c&&(u.onload=c),p){const h=m=>{if(m.data==="__sentry_reportdialog_closed__")try{p()}finally{Je.removeEventListener("message",h)}};Je.addEventListener("message",h)}n.appendChild(u)}const It=it,Bx="sentryReplaySession",hB="replay_event",$x="Unable to send Replay",fB=3e5,mB=9e5,gB=5e3,vB=5500,yB=6e4,_B=5e3,bB=3,Sk=15e4,Rh=5e3,xB=3e3,SB=300,qx=2e7,wB=4999,EB=5e4,wk=36e5;var kB=Object.defineProperty,CB=(t,e,n)=>e in t?kB(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Ek=(t,e,n)=>CB(t,typeof e!="symbol"?e+"":e,n),an=(t=>(t[t.Document=0]="Document",t[t.DocumentType=1]="DocumentType",t[t.Element=2]="Element",t[t.Text=3]="Text",t[t.CDATA=4]="CDATA",t[t.Comment=5]="Comment",t))(an||{});function TB(t){return t.nodeType===t.ELEMENT_NODE}function od(t){const e=t==null?void 0:t.host;return(e==null?void 0:e.shadowRoot)===t}function ad(t){return Object.prototype.toString.call(t)==="[object ShadowRoot]"}function PB(t){return t.includes(" background-clip: text;")&&!t.includes(" -webkit-background-clip: text;")&&(t=t.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;")),t}function RB(t){const{cssText:e}=t;if(e.split('"').length<3)return e;const n=["@import",`url(${JSON.stringify(t.href)})`];return t.layerName===""?n.push("layer"):t.layerName&&n.push(`layer(${t.layerName})`),t.supportsText&&n.push(`supports(${t.supportsText})`),t.media.length&&n.push(t.media.mediaText),n.join(" ")+";"}function Of(t){try{const e=t.rules||t.cssRules;return e?PB(Array.from(e,cA).join("")):null}catch{return null}}function AB(t){let e="";for(let n=0;n<t.style.length;n++){const r=t.style,i=r[n],s=r.getPropertyPriority(i);e+=`${i}:${r.getPropertyValue(i)}${s?" !important":""};`}return`${t.selectorText} { ${e} }`}function cA(t){let e;if(LB(t))try{e=Of(t.styleSheet)||RB(t)}catch{}else if(MB(t)){let n=t.cssText;const r=t.selectorText.includes(":"),i=typeof t.style.all=="string"&&t.style.all;if(i&&(n=AB(t)),r&&(n=IB(n)),r||i)return n}return e||t.cssText}function IB(t){const e=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;return t.replace(e,"$1\\$2")}function LB(t){return"styleSheet"in t}function MB(t){return"selectorText"in t}class dA{constructor(){Ek(this,"idNodeMap",new Map),Ek(this,"nodeMetaMap",new WeakMap)}getId(e){var r;return e?((r=this.getMeta(e))==null?void 0:r.id)??-1:-1}getNode(e){return this.idNodeMap.get(e)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(e){return this.nodeMetaMap.get(e)||null}removeNodeFromMap(e){const n=this.getId(e);
61this.idNodeMap.delete(n),e.childNodes&&e.childNodes.forEach(r=>this.removeNodeFromMap(r))}has(e){return this.idNodeMap.has(e)}hasNode(e){return this.nodeMetaMap.has(e)}add(e,n){const r=n.id;this.idNodeMap.set(r,e),this.nodeMetaMap.set(e,n)}replace(e,n){const r=this.getNode(e);if(r){const i=this.nodeMetaMap.get(r);i&&this.nodeMetaMap.set(n,i)}this.idNodeMap.set(e,n)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function NB(){return new dA}function Om({maskInputOptions:t,tagName:e,type:n}){return e==="OPTION"&&(e="SELECT"),!!(t[e.toLowerCase()]||n&&t[n]||n==="password"||e==="INPUT"&&!n&&t.text)}function Cd({isMasked:t,element:e,value:n,maskInputFn:r}){let i=n||"";return t?(r&&(i=r(i,e)),"*".repeat(i.length)):i}function Pu(t){return t.toLowerCase()}function L_(t){return t.toUpperCase()}const kk="__rrweb_original__";function OB(t){const e=t.getContext("2d");if(!e)return!0;const n=50;for(let r=0;r<t.width;r+=n)for(let i=0;i<t.height;i+=n){const s=e.getImageData,l=kk in s?s[kk]:s;if(new Uint32Array(l.call(e,r,i,Math.min(n,t.width-r),Math.min(n,t.height-i)).data.buffer).some(c=>c!==0))return!1}return!0}function Wx(t){const e=t.type;return t.hasAttribute("data-rr-is-password")?"password":e?Pu(e):null}function Df(t,e,n){return e==="INPUT"&&(n==="radio"||n==="checkbox")?t.getAttribute("value")||"":t.value}function pA(t,e){let n;try{n=new URL(t,e??window.location.href)}catch{return null}const r=/\.([0-9a-z]+)(?:$)/i,i=n.pathname.match(r);return(i==null?void 0:i[1])??null}const Ck={};function hA(t){const e=Ck[t];if(e)return e;const n=window.document;let r=window[t];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[t]&&(r=s[t]),n.head.removeChild(i)}catch{}return Ck[t]=r.bind(window)}function M_(...t){return hA("setTimeout")(...t)}function fA(...t){return hA("clearTimeout")(...t)}function mA(t){try{return t.contentDocument}catch{}}let DB=1;const jB=new RegExp("[^a-z0-9-_:]"),Td=-2;function Hx(){return DB++}function FB(t){if(t instanceof HTMLFormElement)return"form";const e=Pu(t.tagName);return jB.test(e)?"div":e}function UB(t){let e="";return t.indexOf("//")>-1?e=t.split("/").slice(0,3).join("/"):e=t.split("/")[0],e=e.split("?")[0],e}let Il,Tk;const zB=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,BB=/^(?:[a-z+]+:)?\/\//i,$B=/^www\..*/i,qB=/^(data:)([^,]*),(.*)/i;function WB(t,e){if(!t||e.size===0)return t;try{const n=t.split(";"),r=[];for(let i of n){if(i=i.trim(),!i)continue;const s=i.indexOf(":");if(s===-1){r.push(i);continue}const l=i.slice(0,s).trim();e.has(l)||r.push(i)}return r.join("; ")+(r.length>0&&t.endsWith(";")?";":"")}catch(n){return console.warn("Error filtering CSS properties:",n),t}}function jf(t,e){return(t||"").replace(zB,(n,r,i,s,l,u)=>{const c=i||l||u,p=r||s||"";if(!c)return n;if(BB.test(c)||$B.test(c))return`url(${p}${c}${p})`;if(qB.test(c))return`url(${p}${c}${p})`;if(c[0]==="/")return`url(${p}${UB(e)+c}${p})`;const h=e.split("/"),m=c.split("/");h.pop();for(const g of m)g!=="."&&(g===".."?h.pop():h.push(g));return`url(${p}${h.join("/")}${p})`})}const HB=/^[^ \t\n\r\u000c]+/,VB=/^[, \t\n\r\u000c]+/;function GB(t,e){if(e.trim()==="")return e;let n=0;function r(s){let l;const u=s.exec(e.substring(n));return u?(l=u[0],n+=l.length,l):""}const i=[];for(;r(VB),!(n>=e.length);){let s=r(HB);if(s.slice(-1)===",")s=eu(t,s.substring(0,s.length-1)),i.push(s);else{let l="";s=eu(t,s);let u=!1;for(;;){const c=e.charAt(n);if(c===""){i.push((s+l).trim());break}else if(u)c===")"&&(u=!1);else if(c===","){n+=1,i.push((s+l).trim());break}else c==="("&&(u=!0);l+=c,n+=1}}}return i.join(", ")}const Pk=new WeakMap;function eu(t,e){return!e||e.trim()===""?e:Dm(t,e)}function YB(t){return!!(t.tagName==="svg"||t.ownerSVGElement)}function Dm(t,e){let n=Pk.get(t);if(n||(n=t.createElement("a"),Pk.set(t,n)),!e)e="";else if(e.startsWith("blob:")||e.startsWith("data:"))return e;return n.setAttribute("href",e),n.href}function gA(t,e,n,r,i,s,l){if(!r)return r;if(n==="src"||n==="href"&&!(e==="use"&&r[0]==="#"))return eu(t,r);if(n==="xlink:href"&&r[0]!=="#")return eu(t,r);
61if(n==="background"&&(e==="table"||e==="td"||e==="th"))return eu(t,r);if(n==="srcset")return GB(t,r);if(n==="style"){let u=jf(r,Dm(t));return l&&l.size>0&&(u=WB(u,l)),u}else if(e==="object"&&n==="data")return eu(t,r);return typeof s=="function"?s(n,r,i):r}function vA(t,e,n){return(t==="video"||t==="audio")&&e==="autoplay"}function KB(t,e,n,r){try{if(r&&t.matches(r))return!1;if(typeof e=="string"){if(t.classList.contains(e))return!0}else for(let i=t.classList.length;i--;){const s=t.classList[i];if(e.test(s))return!0}if(n)return t.matches(n)}catch{}return!1}function JB(t,e){for(let n=t.classList.length;n--;){const r=t.classList[n];if(e.test(r))return!0}return!1}function Ea(t,e,n=1/0,r=0){return!t||t.nodeType!==t.ELEMENT_NODE||r>n?-1:e(t)?r:Ea(t.parentNode,e,n,r+1)}function tu(t,e){return n=>{const r=n;if(r===null)return!1;try{if(t){if(typeof t=="string"){if(r.matches(`.${t}`))return!0}else if(JB(r,t))return!0}return!!(e&&r.matches(e))}catch{return!1}}}function Ru(t,e,n,r,i,s){try{const l=t.nodeType===t.ELEMENT_NODE?t:t.parentElement;if(l===null)return!1;if(l.tagName==="INPUT"){const p=l.getAttribute("autocomplete");if(["current-password","new-password","cc-number","cc-exp","cc-exp-month","cc-exp-year","cc-csc"].includes(p))return!0}let u=-1,c=-1;if(s){if(c=Ea(l,tu(r,i)),c<0)return!0;u=Ea(l,tu(e,n),c>=0?c:1/0)}else{if(u=Ea(l,tu(e,n)),u<0)return!1;c=Ea(l,tu(r,i),u>=0?u:1/0)}return u>=0?c>=0?u<=c:!0:c>=0?!1:!!s}catch{}return!!s}function QB(t,e,n){const r=t.contentWindow;if(!r)return;let i=!1,s;try{s=r.document.readyState}catch{return}if(s!=="complete"){const u=M_(()=>{i||(e(),i=!0)},n);t.addEventListener("load",()=>{fA(u),i=!0,e()});return}const l="about:blank";if(r.location.href!==l||t.src===l||t.src==="")return M_(e,0),t.addEventListener("load",e);t.addEventListener("load",e)}function XB(t,e,n){let r=!1,i;try{i=t.sheet}catch{return}if(i)return;const s=M_(()=>{r||(e(),r=!0)},n);t.addEventListener("load",()=>{fA(s),r=!0,e()})}function ZB(t,e){const{doc:n,mirror:r,blockClass:i,blockSelector:s,unblockSelector:l,maskAllText:u,maskAttributeFn:c,maskTextClass:p,unmaskTextClass:h,maskTextSelector:m,unmaskTextSelector:g,inlineStylesheet:_,maskInputOptions:x={},maskTextFn:S,maskInputFn:w,dataURLOptions:C={},inlineImages:R,recordCanvas:I,keepIframeSrcFn:P,newlyAddedElement:A=!1,ignoreCSSAttributes:N}=e,T=e3(n,r);switch(t.nodeType){case t.DOCUMENT_NODE:return t.compatMode!=="CSS1Compat"?{type:an.Document,childNodes:[],compatMode:t.compatMode}:{type:an.Document,childNodes:[]};case t.DOCUMENT_TYPE_NODE:return{type:an.DocumentType,name:t.name,publicId:t.publicId,systemId:t.systemId,rootId:T};case t.ELEMENT_NODE:return n3(t,{doc:n,blockClass:i,blockSelector:s,unblockSelector:l,inlineStylesheet:_,maskAttributeFn:c,maskInputOptions:x,maskInputFn:w,dataURLOptions:C,inlineImages:R,recordCanvas:I,keepIframeSrcFn:P,newlyAddedElement:A,rootId:T,maskTextClass:p,unmaskTextClass:h,maskTextSelector:m,unmaskTextSelector:g,ignoreCSSAttributes:N});case t.TEXT_NODE:return t3(t,{doc:n,maskAllText:u,maskTextClass:p,unmaskTextClass:h,maskTextSelector:m,unmaskTextSelector:g,maskTextFn:S,maskInputOptions:x,maskInputFn:w,rootId:T});case t.CDATA_SECTION_NODE:return{type:an.CDATA,textContent:"",rootId:T};case t.COMMENT_NODE:return{type:an.Comment,textContent:t.textContent||"",rootId:T};default:return!1}}function e3(t,e){if(!e.hasNode(t))return;const n=e.getId(t);return n===1?void 0:n}function t3(t,e){var C;const{maskAllText:n,maskTextClass:r,unmaskTextClass:i,maskTextSelector:s,unmaskTextSelector:l,maskTextFn:u,maskInputOptions:c,maskInputFn:p,rootId:h}=e,m=t.parentNode&&t.parentNode.tagName;let g=t.textContent;const _=m==="STYLE"?!0:void 0,x=m==="SCRIPT"?!0:void 0,S=m==="TEXTAREA"?!0:void 0;if(_&&g){try{t.nextSibling||t.previousSibling||(C=t.parentNode.sheet)!=null&&C.cssRules&&(g=Of(t.parentNode.sheet))}catch(R){console.warn(`Cannot get CSS styles from text's parentNode. Error: ${R}`,t)}g=jf(g,Dm(e.doc))}x&&(g="SCRIPT_PLACEHOLDER");const w=Ru(t,r,s,i,l,n);if(!_&&!x&&!S&&g&&w&&(g=u?u(g,t.parentElement):g.replace(/[\S]/g,"*")),S&&g&&(c.textarea||w)&&(g=p?p(g,t.parentNode):g.replace(/[\S]/g,"*")),m==="OPTION"&&g){const R=Om({type:null,tagName:m,maskInputOptions:c});g=Cd({isMasked:Ru(t,r,s,i,l,R),element:t,value:g,maskInputFn:p})}return{type:an.Text,textContent:g||"",isStyle:_,rootId:h}}function n3(t,e){const{doc:n,blockClass:r,blockSelector:i,unblockSelector:s,inlineStylesheet:l,maskInputOptions:u={},maskAttributeFn:c,maskInputFn:p,dataURLOptions:h={},inlineImages:m,recordCanvas:g,keepIframeSrcFn:_,newlyAddedElement:x=!1,rootId:S,maskTextClass:w,unmaskTextClass:C,maskTextSelector:R,unmaskTextSelector:I,ignoreCSSAttributes:P}=e,A=KB(t,r,i,s),N=FB(t);let T={};const L=t.attributes.length;for(let j=0;j<L;j++){const B=t.attributes[j];B.name&&!vA(N,B.name,B.value)&&(T[B.name]=gA(n,N,Pu(B.name),B.value,t,c,P))}if(N==="link"&&l){const j=Array.from(n.styleSheets).find(q=>q.href===t.href);let B=null;j&&(B=Of(j)),B&&(T.rel=null,T.href=null,T.crossorigin=null,T._cssText=jf(B,j.href))}if(N==="style"&&t.sheet&&!(t.innerText||t.textContent||"").trim().length){const j=Of(t.sheet);
61j&&(T._cssText=jf(j,Dm(n)))}if(N==="input"||N==="textarea"||N==="select"||N==="option"){const j=t,B=Wx(j),q=Df(j,L_(N),B),G=j.checked;if(B!=="submit"&&B!=="button"&&q){const W=Ru(j,w,R,C,I,Om({type:B,tagName:L_(N),maskInputOptions:u}));T.value=Cd({isMasked:W,element:j,value:q,maskInputFn:p})}G&&(T.checked=G)}if(N==="option"&&(t.selected&&!u.select?T.selected=!0:delete T.selected),N==="canvas"&&g){if(t.__context==="2d")OB(t)||(T.rr_dataURL=t.toDataURL(h.type,h.quality));else if(!("__context"in t)){const j=t.toDataURL(h.type,h.quality),B=n.createElement("canvas");B.width=t.width,B.height=t.height;const q=B.toDataURL(h.type,h.quality);j!==q&&(T.rr_dataURL=j)}}if(N==="img"&&m){Il||(Il=n.createElement("canvas"),Tk=Il.getContext("2d"));const j=t,B=j.currentSrc||j.getAttribute("src")||"<unknown-src>",q=j.crossOrigin,G=()=>{j.removeEventListener("load",G);try{Il.width=j.naturalWidth,Il.height=j.naturalHeight,Tk.drawImage(j,0,0),T.rr_dataURL=Il.toDataURL(h.type,h.quality)}catch(W){if(j.crossOrigin!=="anonymous"){j.crossOrigin="anonymous",j.complete&&j.naturalWidth!==0?G():j.addEventListener("load",G);return}else console.warn(`Cannot inline img src=${B}! Error: ${W}`)}j.crossOrigin==="anonymous"&&(q?T.crossOrigin=q:j.removeAttribute("crossorigin"))};j.complete&&j.naturalWidth!==0?G():j.addEventListener("load",G)}if((N==="audio"||N==="video")&&(T.rr_mediaState=t.paused?"paused":"played",T.rr_mediaCurrentTime=t.currentTime),x||(t.scrollLeft&&(T.rr_scrollLeft=t.scrollLeft),t.scrollTop&&(T.rr_scrollTop=t.scrollTop)),A){const{width:j,height:B}=t.getBoundingClientRect();T={class:T.class,rr_width:`${j}px`,rr_height:`${B}px`}}N==="iframe"&&!_(T.src)&&(!A&&!mA(t)&&(T.rr_src=T.src),delete T.src);let O;try{customElements.get(N)&&(O=!0)}catch{}return{type:an.Element,tagName:N,attributes:T,childNodes:[],isSVG:YB(t)||void 0,needBlock:A,rootId:S,isCustom:O}}function At(t){return t==null?"":t.toLowerCase()}function r3(t,e){if(e.comment&&t.type===an.Comment)return!0;if(t.type===an.Element){if(e.script&&(t.tagName==="script"||t.tagName==="link"&&(t.attributes.rel==="preload"||t.attributes.rel==="modulepreload")||t.tagName==="link"&&t.attributes.rel==="prefetch"&&typeof t.attributes.href=="string"&&pA(t.attributes.href)==="js"))return!0;if(e.headFavicon&&(t.tagName==="link"&&t.attributes.rel==="shortcut icon"||t.tagName==="meta"&&(At(t.attributes.name).match(/^msapplication-tile(image|color)$/)||At(t.attributes.name)==="application-name"||At(t.attributes.rel)==="icon"||At(t.attributes.rel)==="apple-touch-icon"||At(t.attributes.rel)==="shortcut icon")))return!0;if(t.tagName==="meta"){if(e.headMetaDescKeywords&&At(t.attributes.name).match(/^description|keywords$/))return!0;if(e.headMetaSocial&&(At(t.attributes.property).match(/^(og|twitter|fb):/)||At(t.attributes.name).match(/^(og|twitter):/)||At(t.attributes.name)==="pinterest"))return!0;if(e.headMetaRobots&&(At(t.attributes.name)==="robots"||At(t.attributes.name)==="googlebot"||At(t.attributes.name)==="bingbot"))return!0;if(e.headMetaHttpEquiv&&t.attributes["http-equiv"]!==void 0)return!0;if(e.headMetaAuthorship&&(At(t.attributes.name)==="author"||At(t.attributes.name)==="generator"||At(t.attributes.name)==="framework"||At(t.attributes.name)==="publisher"||At(t.attributes.name)==="progid"||At(t.attributes.property).match(/^article:/)||At(t.attributes.property).match(/^product:/)))return!0;if(e.headMetaVerification&&(At(t.attributes.name)==="google-site-verification"||At(t.attributes.name)==="yandex-verification"||At(t.attributes.name)==="csrf-token"||At(t.attributes.name)==="p:domain_verify"||At(t.attributes.name)==="verify-v1"||At(t.attributes.name)==="verification"||At(t.attributes.name)==="shopify-checkout-api-token"))return!0}}return!1}function nu(t,e){const{doc:n,mirror:r,blockClass:i,blockSelector:s,unblockSelector:l,maskAllText:u,maskTextClass:c,unmaskTextClass:p,maskTextSelector:h,unmaskTextSelector:m,skipChild:g=!1,inlineStylesheet:_=!0,maskInputOptions:x={},maskAttributeFn:S,maskTextFn:w,maskInputFn:C,slimDOMOptions:R,dataURLOptions:I={},inlineImages:P=!1,recordCanvas:A=!1,onSerialize:N,onIframeLoad:T,iframeLoadTimeout:L=5e3,onBlockedImageLoad:O,onStylesheetLoad:j,stylesheetLoadTimeout:B=5e3,keepIframeSrcFn:q=()=>!1,newlyAddedElement:G=!1,ignoreCSSAttributes:W}=e;let{preserveWhiteSpace:ie=!0}=e;const se=ZB(t,{doc:n,mirror:r,blockClass:i,blockSelector:s,maskAllText:u,unblockSelector:l,maskTextClass:c,unmaskTextClass:p,maskTextSelector:h,unmaskTextSelector:m,inlineStylesheet:_,maskInputOptions:x,maskAttributeFn:S,maskTextFn:w,maskInputFn:C,dataURLOptions:I,inlineImages:P,recordCanvas:A,keepIframeSrcFn:q,newlyAddedElement:G,ignoreCSSAttributes:W});if(!se)return console.warn(t,"not serialized"),null;let de;r.hasNode(t)?de=r.getId(t):r3(se,R)||!ie&&se.type===an.Text&&!se.isStyle&&!se.textContent.replace(/^\s+|\s+$/gm,"").length?de=Td:de=Hx();const $=Object.assign(se,{id:de});if(r.add(t,$),de===Td)return null;N&&N(t);let Z=!g;if($.type===an.Element){Z=Z&&!$.needBlock;const Q=t.shadowRoot;Q&&ad(Q)&&($.isShadowHost=!0)}if(($.type===an.Document||$.type===an.Element)&&Z){R.headWhitespace&&$.type===an.Element&&$.tagName==="head"&&(ie=!1);const Q={doc:n,mirror:r,blockClass:i,blockSelector:s,maskAllText:u,unblockSelector:l,maskTextClass:c,unmaskTextClass:p,maskTextSelector:h,unmaskTextSelector:m,skipChild:g,inlineStylesheet:_,maskInputOptions:x,maskAttributeFn:S,maskTextFn:w,maskInputFn:C,slimDOMOptions:R,dataURLOptions:I,inlineImages:P,recordCanvas:A,preserveWhiteSpace:ie,onSerialize:N,onIframeLoad:T,iframeLoadTimeout:L,onBlockedImageLoad:O,onStylesheetLoad:j,stylesheetLoadTimeout:B,keepIframeSrcFn:q,ignoreCSSAttributes:W},D=t.childNodes?Array.from(t.childNodes):[];for(const Y of D){const le=nu(Y,Q);le&&$.childNodes.push(le)}if(TB(t)&&t.shadowRoot)for(const Y of Array.from(t.shadowRoot.childNodes)){const le=nu(Y,Q);
61le&&(ad(t.shadowRoot)&&(le.isShadow=!0),$.childNodes.push(le))}}if(t.parentNode&&od(t.parentNode)&&ad(t.parentNode)&&($.isShadow=!0),$.type===an.Element&&$.tagName==="iframe"&&!$.needBlock&&QB(t,()=>{const Q=mA(t);if(Q&&T){const D=nu(Q,{doc:Q,mirror:r,blockClass:i,blockSelector:s,unblockSelector:l,maskAllText:u,maskTextClass:c,unmaskTextClass:p,maskTextSelector:h,unmaskTextSelector:m,skipChild:!1,inlineStylesheet:_,maskInputOptions:x,maskAttributeFn:S,maskTextFn:w,maskInputFn:C,slimDOMOptions:R,dataURLOptions:I,inlineImages:P,recordCanvas:A,preserveWhiteSpace:ie,onSerialize:N,onIframeLoad:T,iframeLoadTimeout:L,onStylesheetLoad:j,stylesheetLoadTimeout:B,keepIframeSrcFn:q,ignoreCSSAttributes:W});D&&T(t,D)}},L),$.type===an.Element&&$.tagName==="img"&&!t.complete&&$.needBlock){const Q=t,D=()=>{if(Q.isConnected&&!Q.complete&&O)try{const Y=Q.getBoundingClientRect();Y.width>0&&Y.height>0&&O(Q,$,Y)}catch{}Q.removeEventListener("load",D)};Q.isConnected&&Q.addEventListener("load",D)}return $.type===an.Element&&$.tagName==="link"&&typeof $.attributes.rel=="string"&&($.attributes.rel==="stylesheet"||$.attributes.rel==="preload"&&typeof $.attributes.href=="string"&&pA($.attributes.href)==="css")&&XB(t,()=>{if(j){const Q=nu(t,{doc:n,mirror:r,blockClass:i,blockSelector:s,unblockSelector:l,maskAllText:u,maskTextClass:c,unmaskTextClass:p,maskTextSelector:h,unmaskTextSelector:m,skipChild:!1,inlineStylesheet:_,maskInputOptions:x,maskAttributeFn:S,maskTextFn:w,maskInputFn:C,slimDOMOptions:R,dataURLOptions:I,inlineImages:P,recordCanvas:A,preserveWhiteSpace:ie,onSerialize:N,onIframeLoad:T,iframeLoadTimeout:L,onStylesheetLoad:j,stylesheetLoadTimeout:B,keepIframeSrcFn:q,ignoreCSSAttributes:W});Q&&j(t,Q)}},B),$.type===an.Element&&delete $.needBlock,$}function i3(t,e){const{mirror:n=new dA,blockClass:r="rr-block",blockSelector:i=null,unblockSelector:s=null,maskAllText:l=!1,maskTextClass:u="rr-mask",unmaskTextClass:c=null,maskTextSelector:p=null,unmaskTextSelector:h=null,inlineStylesheet:m=!0,inlineImages:g=!1,recordCanvas:_=!1,maskAllInputs:x=!1,maskAttributeFn:S,maskTextFn:w,maskInputFn:C,slimDOM:R=!1,dataURLOptions:I,preserveWhiteSpace:P,onSerialize:A,onIframeLoad:N,iframeLoadTimeout:T,onBlockedImageLoad:L,onStylesheetLoad:O,stylesheetLoadTimeout:j,keepIframeSrcFn:B=()=>!1,ignoreCSSAttributes:q=new Set([])}=e||{};return nu(t,{doc:t,mirror:n,blockClass:r,blockSelector:i,unblockSelector:s,maskAllText:l,maskTextClass:u,unmaskTextClass:c,maskTextSelector:p,unmaskTextSelector:h,skipChild:!1,inlineStylesheet:m,maskInputOptions:x===!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}:x===!1?{}:x,maskAttributeFn:S,maskTextFn:w,maskInputFn:C,slimDOMOptions:R===!0||R==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:R==="all",headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:R===!1?{}:R,dataURLOptions:I,inlineImages:g,recordCanvas:_,preserveWhiteSpace:P,onSerialize:A,onIframeLoad:N,iframeLoadTimeout:T,onBlockedImageLoad:L,onStylesheetLoad:O,stylesheetLoadTimeout:j,keepIframeSrcFn:B,newlyAddedElement:!1,ignoreCSSAttributes:q})}function sr(t,e,n=document){const r={capture:!0,passive:!0};return n.addEventListener(t,e,r),()=>n.removeEventListener(t,e,r)}const Wl=`Please stop import mirror directly. Instead of that,\r 62now you can use replayer.getMirror() to access the mirror instance of a replayer,\r 63or you can use record.mirror to access the mirror instance during recording.`;let Rk={map:{},getId(){return console.error(Wl),-1},getNode(){return console.error(Wl),null},removeNodeFromMap(){console.error(Wl)},has(){return console.error(Wl),!1},reset(){console.error(Wl)}};typeof window<"u"&&window.Proxy&&window.Reflect&&(Rk=new Proxy(Rk,{get(t,e,n){return e==="map"&&console.error(Wl),Reflect.get(t,e,n)}}));function Pd(t,e,n={}){let r=null,i=0;return function(...s){const l=Date.now();!i&&n.leading===!1&&(i=l);const u=e-(l-i),c=this;u<=0||u>e?(r&&(d3(r),r=null),i=l,t.apply(c,s)):!r&&n.trailing!==!1&&(r=jm(()=>{i=n.leading===!1?0:Date.now(),r=null,t.apply(c,s)},u))}}function yA(t,e,n,r,i=window){const s=i.Object.getOwnPropertyDescriptor(t,e);
63return i.Object.defineProperty(t,e,r?n:{set(l){jm(()=>{n.set.call(this,l)},0),s&&s.set&&s.set.call(this,l)}}),()=>yA(t,e,s||{},!0)}function Vx(t,e,n){try{if(!(e in t))return()=>{};const r=t[e],i=n(r);return typeof i=="function"&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__rrweb_original__:{enumerable:!1,value:r}})),t[e]=i,()=>{t[e]=r}}catch{return()=>{}}}let Ff=Date.now;/[1-9][0-9]{12}/.test(Date.now().toString())||(Ff=()=>new Date().getTime());function _A(t){var n,r,i,s,l,u;const e=t.document;return{left:e.scrollingElement?e.scrollingElement.scrollLeft:t.pageXOffset!==void 0?t.pageXOffset:(e==null?void 0:e.documentElement.scrollLeft)||((r=(n=e==null?void 0:e.body)==null?void 0:n.parentElement)==null?void 0:r.scrollLeft)||((i=e==null?void 0:e.body)==null?void 0:i.scrollLeft)||0,top:e.scrollingElement?e.scrollingElement.scrollTop:t.pageYOffset!==void 0?t.pageYOffset:(e==null?void 0:e.documentElement.scrollTop)||((l=(s=e==null?void 0:e.body)==null?void 0:s.parentElement)==null?void 0:l.scrollTop)||((u=e==null?void 0:e.body)==null?void 0:u.scrollTop)||0}}function bA(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function xA(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function SA(t){if(!t)return null;try{return t.nodeType===t.ELEMENT_NODE?t:t.parentElement}catch{return null}}function Mr(t,e,n,r,i){if(!t)return!1;const s=SA(t);if(!s)return!1;const l=tu(e,n);if(!i){const p=r&&s.matches(r);return l(s)&&!p}const u=Ea(s,l);let c=-1;return u<0?!1:(r&&(c=Ea(s,tu(null,r))),u>-1&&c<0?!0:u<c)}function s3(t,e){return e.getId(t)!==-1}function cy(t,e){return e.getId(t)===Td}function wA(t,e){if(od(t))return!1;const n=e.getId(t);return e.has(n)?t.parentNode&&t.parentNode.nodeType===t.DOCUMENT_NODE?!1:t.parentNode?wA(t.parentNode,e):!0:!0}function N_(t){return!!t.changedTouches}function o3(t=window){"NodeList"in t&&!t.NodeList.prototype.forEach&&(t.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in t&&!t.DOMTokenList.prototype.forEach&&(t.DOMTokenList.prototype.forEach=Array.prototype.forEach),Node.prototype.contains||(Node.prototype.contains=(...e)=>{let n=e[0];if(!(0 in e))throw new TypeError("1 argument is required");do if(this===n)return!0;while(n=n&&n.parentNode);return!1})}function EA(t,e){return!!(t.nodeName==="IFRAME"&&e.getMeta(t))}function kA(t,e){return!!(t.nodeName==="LINK"&&t.nodeType===t.ELEMENT_NODE&&t.getAttribute&&t.getAttribute("rel")==="stylesheet"&&e.getMeta(t))}function O_(t){return!!(t!=null&&t.shadowRoot)}class a3{constructor(){this.id=1,this.styleIDMap=new WeakMap,this.idStyleMap=new Map}getId(e){return this.styleIDMap.get(e)??-1}has(e){return this.styleIDMap.has(e)}add(e,n){if(this.has(e))return this.getId(e);let r;return n===void 0?r=this.id++:r=n,this.styleIDMap.set(e,r),this.idStyleMap.set(r,e),r}getStyle(e){return this.idStyleMap.get(e)||null}reset(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1}generateId(){return this.id++}}function CA(t){var n,r;let e=null;return((r=(n=t.getRootNode)==null?void 0:n.call(t))==null?void 0:r.nodeType)===Node.DOCUMENT_FRAGMENT_NODE&&t.getRootNode().host&&(e=t.getRootNode().host),e}function l3(t){let e=t,n;for(;n=CA(e);)e=n;return e}function u3(t){const e=t.ownerDocument;if(!e)return!1;const n=l3(t);return e.contains(n)}function TA(t){const e=t.ownerDocument;return e?e.contains(t)||u3(t):!1}const Ak={};function Gx(t){const e=Ak[t];if(e)return e;const n=window.document;let r=window[t];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[t]&&(r=s[t]),n.head.removeChild(i)}catch{}return Ak[t]=r.bind(window)}function c3(...t){return Gx("requestAnimationFrame")(...t)}function jm(...t){return Gx("setTimeout")(...t)}function d3(...t){return Gx("clearTimeout")(...t)}var Ye=(t=>(t[t.DomContentLoaded=0]="DomContentLoaded",t[t.Load=1]="Load",t[t.FullSnapshot=2]="FullSnapshot",t[t.IncrementalSnapshot=3]="IncrementalSnapshot",t[t.Meta=4]="Meta",t[t.Custom=5]="Custom",t[t.Plugin=6]="Plugin",t))(Ye||{}),$e=(t=>(t[t.Mutation=0]="Mutation",t[t.MouseMove=1]="MouseMove",t[t.MouseInteraction=2]="MouseInteraction",t[t.Scroll=3]="Scroll",t[t.ViewportResize=4]="ViewportResize",t[t.In
63put=5]="Input",t[t.TouchMove=6]="TouchMove",t[t.MediaInteraction=7]="MediaInteraction",t[t.StyleSheetRule=8]="StyleSheetRule",t[t.CanvasMutation=9]="CanvasMutation",t[t.Font=10]="Font",t[t.Log=11]="Log",t[t.Drag=12]="Drag",t[t.StyleDeclaration=13]="StyleDeclaration",t[t.Selection=14]="Selection",t[t.AdoptedStyleSheet=15]="AdoptedStyleSheet",t[t.CustomElement=16]="CustomElement",t))($e||{}),Zn=(t=>(t[t.MouseUp=0]="MouseUp",t[t.MouseDown=1]="MouseDown",t[t.Click=2]="Click",t[t.ContextMenu=3]="ContextMenu",t[t.DblClick=4]="DblClick",t[t.Focus=5]="Focus",t[t.Blur=6]="Blur",t[t.TouchStart=7]="TouchStart",t[t.TouchMove_Departed=8]="TouchMove_Departed",t[t.TouchEnd=9]="TouchEnd",t[t.TouchCancel=10]="TouchCancel",t))(Zn||{}),hs=(t=>(t[t.Mouse=0]="Mouse",t[t.Pen=1]="Pen",t[t.Touch=2]="Touch",t))(hs||{}),Hl=(t=>(t[t.Play=0]="Play",t[t.Pause=1]="Pause",t[t.Seeked=2]="Seeked",t[t.VolumeChange=3]="VolumeChange",t[t.RateChange=4]="RateChange",t))(Hl||{});function Yx(t){try{return t.contentDocument}catch{}}function p3(t){try{return t.contentWindow}catch{}}function Ik(t){return"__ln"in t}class h3{constructor(){this.length=0,this.head=null,this.tail=null}get(e){if(e>=this.length)throw new Error("Position outside of list range");let n=this.head;for(let r=0;r<e;r++)n=(n==null?void 0:n.next)||null;return n}addNode(e){const n={value:e,previous:null,next:null};if(e.__ln=n,e.previousSibling&&Ik(e.previousSibling)){const r=e.previousSibling.__ln.next;n.next=r,n.previous=e.previousSibling.__ln,e.previousSibling.__ln.next=n,r&&(r.previous=n)}else if(e.nextSibling&&Ik(e.nextSibling)&&e.nextSibling.__ln.previous){const r=e.nextSibling.__ln.previous;n.previous=r,n.next=e.nextSibling.__ln,e.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(e){const n=e.__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),e.__ln&&delete e.__ln,this.length--)}}const Lk=(t,e)=>`${t}@${e}`;class f3{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=e=>{e.forEach(this.processMutation),this.emit()},this.emit=()=>{if(this.frozen||this.locked)return;const e=[],n=new Set,r=new h3,i=c=>{let p=c,h=Td;for(;h===Td;)p=p&&p.nextSibling,h=p&&this.mirror.getId(p);return h},s=c=>{if(!c.parentNode||!TA(c))return;const p=od(c.parentNode)?this.mirror.getId(CA(c)):this.mirror.getId(c.parentNode),h=i(c);if(p===-1||h===-1)return r.addNode(c);const m=nu(c,{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:g=>{EA(g,this.mirror)&&!Mr(g,this.blockClass,this.blockSelector,this.unblockSelector,!1)&&this.iframeManager.addIframe(g),kA(g,this.mirror)&&this.stylesheetManager.trackLinkElement(g),O_(c)&&this.shadowDomManager.addShadowRoot(c.shadowRoot,this.doc)},onIframeLoad:(g,_)=>{Mr(g,this.blockClass,this.blockSelector,this.unblockSelector,!1)||(this.iframeManager.attachIframe(g,_),g.contentWindow&&this.canvasManager.addWindow(g.contentWindow),this.shadowDomManager.observeAttachShadow(g))},onStylesheetLoad:(g,_)=>{this.stylesheetManager.attachLinkElement(g,_)},onBlockedImageLoad:(g,_,{width:x,height:S})=>{this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:_.id,attributes:{style:{width:`${x}px`,height:`${S}px`}}}]})},ignoreCSSAttributes:this.ignoreCSSAttributes});m&&(e.push({parentId:p,nextId:h,node:m}),n.add(m.id))};for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(const c of this.movedSet)Mk(this.removes,c,this.mirror)&&!this.movedSet.has(c.parentNode)||s(c);for(const c of this.addedSet)!Nk(this.droppedSet,c)&&!Mk(this.removes,c,this.mirror)||Nk(this.movedSet,c)?s(c):this.droppedSet.add(c);let l=null;for(;r.length;){let c=null;if(l){const p=this.mirror.getId(l.value.parentNode),h=i(l.value);p!==-1&&h!==-1&&(c=l)}if(!c){let p=r.tail;for(;p;){const h=p;if(p=p.previous,h){const m=this.mirror.getId(h.value.parentNode);
vendor: 7,677 bytes, line 63
63if(i(h.value)===-1)continue;if(m!==-1){c=h;break}else{const _=h.value;if(_.parentNode&&_.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE){const x=_.parentNode.host;if(this.mirror.getId(x)!==-1){c=h;break}}}}}}if(!c){for(;r.head;)r.removeNode(r.head.value);break}l=c.previous,r.removeNode(c.value),s(c.value)}const u={texts:this.texts.map(c=>({id:this.mirror.getId(c.node),value:c.value})).filter(c=>!n.has(c.id)).filter(c=>this.mirror.has(c.id)),attributes:this.attributes.map(c=>{const{attributes:p}=c;if(typeof p.style=="string"){const h=JSON.stringify(c.styleDiff),m=JSON.stringify(c._unchangedStyles);h.length<p.style.length&&(h+m).split("var(").length===p.style.split("var(").length&&(p.style=c.styleDiff)}return{id:this.mirror.getId(c.node),attributes:p}}).filter(c=>!n.has(c.id)).filter(c=>this.mirror.has(c.id)),removes:this.removes,adds:e};!u.texts.length&&!u.attributes.length&&!u.removes.length&&!u.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(u))},this.processMutation=e=>{if(!cy(e.target,this.mirror))switch(e.type){case"characterData":{const n=e.target.textContent;!Mr(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)&&n!==e.oldValue&&this.texts.push({value:Ru(e.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,this.maskAllText)&&n?this.maskTextFn?this.maskTextFn(n,SA(e.target)):n.replace(/[\S]/g,"*"):n,node:e.target});break}case"attributes":{const n=e.target;let r=e.attributeName,i=e.target.getAttribute(r);if(r==="value"){const l=Wx(n),u=n.tagName;i=Df(n,u,l);const c=Om({maskInputOptions:this.maskInputOptions,tagName:u,type:l}),p=Ru(e.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,c);i=Cd({isMasked:p,element:n,value:i,maskInputFn:this.maskInputFn})}if(Mr(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||i===e.oldValue)return;let s=this.attributeMap.get(e.target);if(n.tagName==="IFRAME"&&r==="src"&&!this.keepIframeSrcFn(i))if(!Yx(n))r="rr_src";else return;if(s||(s={node:e.target,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(s),this.attributeMap.set(e.target,s)),r==="type"&&n.tagName==="INPUT"&&(e.oldValue||"").toLowerCase()==="password"&&n.setAttribute("data-rr-is-password","true"),!vA(n.tagName,r)&&(s.attributes[r]=gA(this.doc,Pu(n.tagName),Pu(r),i,n,this.maskAttributeFn),r==="style")){if(!this.unattachedDoc)try{this.unattachedDoc=document.implementation.createHTMLDocument()}catch{this.unattachedDoc=this.doc}const l=this.unattachedDoc.createElement("span");e.oldValue&&l.setAttribute("style",e.oldValue);for(const u of Array.from(n.style)){const c=n.style.getPropertyValue(u),p=n.style.getPropertyPriority(u);c!==l.style.getPropertyValue(u)||p!==l.style.getPropertyPriority(u)?p===""?s.styleDiff[u]=c:s.styleDiff[u]=[c,p]:s._unchangedStyles[u]=[c,p]}for(const u of Array.from(l.style))n.style.getPropertyValue(u)===""&&(s.styleDiff[u]=!1)}break}case"childList":{if(Mr(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!0))return;e.addedNodes.forEach(n=>this.genAdds(n,e.target)),e.removedNodes.forEach(n=>{const r=this.mirror.getId(n),i=od(e.target)?this.mirror.getId(e.target.host):this.mirror.getId(e.target);Mr(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||cy(n,this.mirror)||!s3(n,this.mirror)||(this.addedSet.has(n)?(D_(this.addedSet,n),this.droppedSet.add(n)):this.addedSet.has(e.target)&&r===-1||wA(e.target,this.mirror)||(this.movedSet.has(n)&&this.movedMap[Lk(r,i)]?D_(this.movedSet,n):this.removes.push({parentId:i,id:r,isShadow:od(e.target)&&ad(e.target)?!0:void 0})),this.mapRemoves.push(n))});break}}},this.genAdds=(e,n)=>{if(!this.processedNodeManager.inOtherBuffer(e,this)&&!(this.addedSet.has(e)||this.movedSet.has(e))){if(this.mirror.hasNode(e)){if(cy(e,this.mirror))return;this.movedSet.add(e);let r=null;n&&this.mirror.hasNode(n)&&(r=this.mirror.getId(n)),r&&r!==-1&&(this.movedMap[Lk(this.mirror.getId(e),r)]=!0)}else this.addedSet.add(e),this.droppedSet.delete(e);Mr(e,this.blockClass,this.blockSelector,this.unblockSelector,!1)||(e.childNodes&&e.childNodes.forEach(r=>this.genAdds(r)),O_(e)&&e.shadowRoot.childNodes.forEach(r=>{this.processedNodeManager.add(r,this),this.genAdds(r,e)}))}}}init(e){["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","ignoreCSSAttributes"].forEach(n=>{this[n]=e[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 D_(t,e){var n;t.delete(e),(n=e.childNodes)==null||n.forEach(r=>D_(t,r))}function Mk(t,e,n){return t.length===0?!1:m3(t,e,n)}function m3(t,e,n){let r=e.parentNode;for(;r;){const i=n.getId(r);if(t.some(s=>s.id===i))return!0;r=r.parentNode}return!1}function Nk(t,e){return t.size===0?!1:PA(t,e)}function PA(t,e){const{parentNode:n}=e;return n?t.has(n)?!0:PA(t,n):!1}let ld;function g3(t){ld=t}function v3(){ld=void 0}const ct=t=>ld?(...n)=>{try{return t(...n)}catch(r){if(ld&&ld(r)===!0)return()=>{};throw r}}:t,ru=[];function up(t){try{if("composedPath"in t){const e=t.composedPath();if(e.length)return e[0]}else if("path"in t&&t.path.length)return t.path[0]}catch{}return t&&t.target}function RA(t,e){var l,u;const n=new f3;ru.push(n),n.init(t);let r=window.MutationObserver||window.__rrMutationObserver;const i=(u=(l=window==null?void 0:window.Zone)==null?void 0:l.__symbol__)==null?void 0:u.call(l,"MutationObserver");i&&window[i]&&(r=window[i]);const s=new r(ct(c=>{t.onMutation&&t.onMutation(c)===!1||n.processMutations.bind(n)(c)}));return s.observe(e,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),s}function y3({mousemoveCb:t,sampling:e,doc:n,mirror:r}){if(e.mousemove===!1)return()=>{};const i=typeof e.mousemove=="number"?e.mousemove:50,s=typeof e.mousemoveCallback=="number"?e.mousemoveCallback:500;let l=[],u;const c=Pd(ct(m=>{const g=Date.now()-u;t(l.map(_=>(_.timeOffset-=g,_)),m),l=[],u=null}),s),p=ct(Pd(ct(m=>{const g=up(m),{clientX:_,clientY:x}=N_(m)?m.changedTouches[0]:m;u||(u=Ff()),l.push({x:_,y:x,id:r.getId(g),timeOffset:Ff()-u}),c(typeof DragEvent<"u"&&m instanceof DragEvent?$e.Drag:m instanceof MouseEvent?$e.MouseMove:$e.TouchMove)}),i,{trailing:!1})),h=[sr("mousemove",p,n),sr("touchmove",p,n),sr("drag",p,n)];return ct(()=>{h.forEach(m=>m())})}function _3({mouseInteractionCb:t,doc:e,mirror:n,blockClass:r,blockSelector:i,unblockSelector:s,sampling:l}){if(l.mouseInteraction===!1)return()=>{};const u=l.mouseInteraction===!0||l.mouseInteraction===void 0?{}:l.mouseInteraction,c=[];let p=null;const h=m=>g=>{const _=up(g);if(Mr(_,r,i,s,!0))return;let x=null,S=m;if("pointerType"in g){switch(g.pointerType){case"mouse":x=hs.Mouse;break;case"touch":x=hs.Touch;break;case"pen":x=hs.Pen;break}x===hs.Touch?Zn[m]===Zn.MouseDown?S="TouchStart":Zn[m]===Zn.MouseUp&&(S="TouchEnd"):hs.Pen}else N_(g)&&(x=hs.Touch);x!==null?(p=x,(S.startsWith("Touch")&&x===hs.Touch||S.startsWith("Mouse")&&x===
vendor: 4,903 bytes, line 63
63hs.Mouse)&&(x=null)):Zn[m]===Zn.Click&&(x=p,p=null);const w=N_(g)?g.changedTouches[0]:g;if(!w)return;const C=n.getId(_),{clientX:R,clientY:I}=w;ct(t)({type:Zn[S],id:C,x:R,y:I,...x!==null&&{pointerType:x}})};return Object.keys(Zn).filter(m=>Number.isNaN(Number(m))&&!m.endsWith("_Departed")&&u[m]!==!1).forEach(m=>{let g=Pu(m);const _=h(m);if(window.PointerEvent)switch(Zn[m]){case Zn.MouseDown:case Zn.MouseUp:g=g.replace("mouse","pointer");break;case Zn.TouchStart:case Zn.TouchEnd:return}c.push(sr(g,_,e))}),ct(()=>{c.forEach(m=>m())})}function AA({scrollCb:t,doc:e,mirror:n,blockClass:r,blockSelector:i,unblockSelector:s,sampling:l}){const u=ct(Pd(ct(c=>{const p=up(c);if(!p||Mr(p,r,i,s,!0))return;const h=n.getId(p);if(p===e&&e.defaultView){const m=_A(e.defaultView);t({id:h,x:m.left,y:m.top})}else t({id:h,x:p.scrollLeft,y:p.scrollTop})}),l.scroll||100));return sr("scroll",u,e)}function b3({viewportResizeCb:t},{win:e}){let n=-1,r=-1;const i=ct(Pd(ct(()=>{const s=bA(),l=xA();(n!==s||r!==l)&&(t({width:Number(l),height:Number(s)}),n=s,r=l)}),200));return sr("resize",i,e)}const x3=["INPUT","TEXTAREA","SELECT"],Ok=new WeakMap;function S3({inputCb:t,doc:e,mirror:n,blockClass:r,blockSelector:i,unblockSelector:s,ignoreClass:l,ignoreSelector:u,maskInputOptions:c,maskInputFn:p,sampling:h,userTriggeredOnInput:m,maskTextClass:g,unmaskTextClass:_,maskTextSelector:x,unmaskTextSelector:S}){function w(T){let L=up(T);const O=T.isTrusted,j=L&&L_(L.tagName);if(j==="OPTION"&&(L=L.parentElement),!L||!j||x3.indexOf(j)<0||Mr(L,r,i,s,!0))return;const B=L;if(B.classList.contains(l)||u&&B.matches(u))return;const q=Wx(L);let G=Df(B,j,q),W=!1;const ie=Om({maskInputOptions:c,tagName:j,type:q}),se=Ru(L,g,x,_,S,ie);(q==="radio"||q==="checkbox")&&(W=L.checked),G=Cd({isMasked:se,element:L,value:G,maskInputFn:p}),C(L,m?{text:G,isChecked:W,userTriggered:O}:{text:G,isChecked:W});const de=L.name;q==="radio"&&de&&W&&e.querySelectorAll(`input[type="radio"][name="${de}"]`).forEach($=>{if($!==L){const Z=Cd({isMasked:se,element:$,value:Df($,j,q),maskInputFn:p});C($,m?{text:Z,isChecked:!W,userTriggered:!1}:{text:Z,isChecked:!W})}})}function C(T,L){const O=Ok.get(T);if(!O||O.text!==L.text||O.isChecked!==L.isChecked){Ok.set(T,L);const j=n.getId(T);ct(t)({...L,id:j})}}const I=(h.input==="last"?["change"]:["input","change"]).map(T=>sr(T,ct(w),e)),P=e.defaultView;if(!P)return()=>{I.forEach(T=>T())};const A=P.Object.getOwnPropertyDescriptor(P.HTMLInputElement.prototype,"value"),N=[[P.HTMLInputElement.prototype,"value"],[P.HTMLInputElement.prototype,"checked"],[P.HTMLSelectElement.prototype,"value"],[P.HTMLTextAreaElement.prototype,"value"],[P.HTMLSelectElement.prototype,"selectedIndex"],[P.HTMLOptionElement.prototype,"selected"]];return A&&A.set&&I.push(...N.map(T=>yA(T[0],T[1],{set(){ct(w)({target:this,isTrusted:!1})}},!1,P))),ct(()=>{I.forEach(T=>T())})}function Uf(t){const e=[];function n(r,i){if(Ah("CSSGroupingRule")&&r.parentRule instanceof CSSGroupingRule||Ah("CSSMediaRule")&&r.parentRule instanceof CSSMediaRule||Ah("CSSSupportsRule")&&r.parentRule instanceof CSSSupportsRule||Ah("CSSConditionRule")&&r.parentRule instanceof CSSConditionRule){const l=Array.from(r.parentRule.cssRules).indexOf(r);i.unshift(l)}else if(r.parentStyleSheet){const l=Array.from(r.parentStyleSheet.cssRules).indexOf(r);i.unshift(l)}return i}return n(t,e)}function lo(t,e,n){let r,i;return t?(t.ownerNode?r=e.getId(t.ownerNode):i=n.getId(t),{styleId:i,id:r}):{}}function w3({styleSheetRuleCb:t,mirror:e,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:ct((h,m,g)=>{const[_,x]=g,{id:S,styleId:w}=lo(m,e,n.styleMirror);return(S&&S!==-1||w&&w!==-1)&&t({id:S,styleId:w,adds:[{rule:_,index:x}]}),h.apply(m,g)})});const s=r.CSSStyleSheet.prototype.deleteRule;r.CSSStyleSheet.prototype.deleteRule=new Proxy(s,{apply:ct((h,m,g)=>{const[_]=g,{id:x,styleId:S}=lo(m,e,n.styleMirror);return(x&&x!==-1||S&&S!==-1)&&t({id:x,styleId:S,removes:[{index:_}]}),h.apply(m,g)})});let l;r.CSSStyleSheet.prototype.replace&&(l=r.CSSStyleSheet.prototype.replace,r.CSSStyleSheet.prototype.replace=new Proxy(l,{apply:ct((h,m,g)=>{const[_]=g,{id:x,styleId:S}=lo(m,e,n.styleMirror);return(x&&x!==-1||S&&S!==-1)&&t({id:x,styleId:S,replace:_}),h.apply(m,g)})}));let u;r.CSSStyleSheet.prototype.replaceSync&&(u=r.CSSStyleSheet.prototype.replaceSync,r.CSSStyleSheet.prototype.replaceSync=new Proxy(u,{apply:ct((h,m,g)=>{const[_]=g,{id:x,styleId:S}=lo(m,e,n.styleMirror);return(x&&x!==-1||S&&S!==-1)&&t({id:x,styleId:S,replaceSync:_}),h.apply(m,g)})}));const c={};Ih("CSSGroupingRule")?c.CSSGroupingRule=r.CSSGroupingRule:(Ih("CSSMediaRule")&&(c.CSSMediaRule=r.CSSMediaRule),Ih("CSSConditionRule")&&(c.CSSConditionRule=r.CSSConditionRule),Ih("CSSSupportsRule")&&(c.CSSSupportsRule=r.CSSSupportsRule));const p={};
vendor: 4,976 bytes, line 63
63return Object.entries(c).forEach(([h,m])=>{p[h]={insertRule:m.prototype.insertRule,deleteRule:m.prototype.deleteRule},m.prototype.insertRule=new Proxy(p[h].insertRule,{apply:ct((g,_,x)=>{const[S,w]=x,{id:C,styleId:R}=lo(_.parentStyleSheet,e,n.styleMirror);return(C&&C!==-1||R&&R!==-1)&&t({id:C,styleId:R,adds:[{rule:S,index:[...Uf(_),w||0]}]}),g.apply(_,x)})}),m.prototype.deleteRule=new Proxy(p[h].deleteRule,{apply:ct((g,_,x)=>{const[S]=x,{id:w,styleId:C}=lo(_.parentStyleSheet,e,n.styleMirror);return(w&&w!==-1||C&&C!==-1)&&t({id:w,styleId:C,removes:[{index:[...Uf(_),S]}]}),g.apply(_,x)})})}),ct(()=>{r.CSSStyleSheet.prototype.insertRule=i,r.CSSStyleSheet.prototype.deleteRule=s,l&&(r.CSSStyleSheet.prototype.replace=l),u&&(r.CSSStyleSheet.prototype.replaceSync=u),Object.entries(c).forEach(([h,m])=>{m.prototype.insertRule=p[h].insertRule,m.prototype.deleteRule=p[h].deleteRule})})}function IA({mirror:t,stylesheetManager:e},n){var l,u,c;let r=null;n.nodeName==="#document"?r=t.getId(n):r=t.getId(n.host);const i=n.nodeName==="#document"?(l=n.defaultView)==null?void 0:l.Document:(c=(u=n.ownerDocument)==null?void 0:u.defaultView)==null?void 0:c.ShadowRoot,s=i!=null&&i.prototype?Object.getOwnPropertyDescriptor(i==null?void 0:i.prototype,"adoptedStyleSheets"):void 0;return r===null||r===-1||!i||!s?()=>{}:(Object.defineProperty(n,"adoptedStyleSheets",{configurable:s.configurable,enumerable:s.enumerable,get(){var p;return(p=s.get)==null?void 0:p.call(this)},set(p){var m;const h=(m=s.set)==null?void 0:m.call(this,p);if(r!==null&&r!==-1)try{e.adoptStyleSheets(p,r)}catch{}return h}}),ct(()=>{Object.defineProperty(n,"adoptedStyleSheets",{configurable:s.configurable,enumerable:s.enumerable,get:s.get,set:s.set})}))}function E3({styleDeclarationCb:t,mirror:e,ignoreCSSAttributes:n,stylesheetManager:r},{win:i}){const s=i.CSSStyleDeclaration.prototype.setProperty;i.CSSStyleDeclaration.prototype.setProperty=new Proxy(s,{apply:ct((u,c,p)=>{var S;const[h,m,g]=p;if(n.has(h))return s.apply(c,[h,m,g]);const{id:_,styleId:x}=lo((S=c.parentRule)==null?void 0:S.parentStyleSheet,e,r.styleMirror);return(_&&_!==-1||x&&x!==-1)&&t({id:_,styleId:x,set:{property:h,value:m,priority:g},index:Uf(c.parentRule)}),u.apply(c,p)})});const l=i.CSSStyleDeclaration.prototype.removeProperty;return i.CSSStyleDeclaration.prototype.removeProperty=new Proxy(l,{apply:ct((u,c,p)=>{var _;const[h]=p;if(n.has(h))return l.apply(c,[h]);const{id:m,styleId:g}=lo((_=c.parentRule)==null?void 0:_.parentStyleSheet,e,r.styleMirror);return(m&&m!==-1||g&&g!==-1)&&t({id:m,styleId:g,remove:{property:h},index:Uf(c.parentRule)}),u.apply(c,p)})}),ct(()=>{i.CSSStyleDeclaration.prototype.setProperty=s,i.CSSStyleDeclaration.prototype.removeProperty=l})}function k3({mediaInteractionCb:t,blockClass:e,blockSelector:n,unblockSelector:r,mirror:i,sampling:s,doc:l}){const u=ct(p=>Pd(ct(h=>{const m=up(h);if(!m||Mr(m,e,n,r,!0))return;const{currentTime:g,volume:_,muted:x,playbackRate:S}=m;t({type:p,id:i.getId(m),currentTime:g,volume:_,muted:x,playbackRate:S})}),s.media||500)),c=[sr("play",u(Hl.Play),l),sr("pause",u(Hl.Pause),l),sr("seeked",u(Hl.Seeked),l),sr("volumechange",u(Hl.VolumeChange),l),sr("ratechange",u(Hl.RateChange),l)];return ct(()=>{c.forEach(p=>p())})}function C3({fontCb:t,doc:e}){const n=e.defaultView;if(!n)return()=>{};const r=[],i=new WeakMap,s=n.FontFace;n.FontFace=function(c,p,h){const m=new s(c,p,h);return i.set(m,{family:c,buffer:typeof p!="string",descriptors:h,fontSource:typeof p=="string"?p:JSON.stringify(Array.from(new Uint8Array(p)))}),m};const l=Vx(e.fonts,"add",function(u){return function(c){return jm(ct(()=>{const p=i.get(c);p&&(t(p),i.delete(c))}),0),u.apply(this,[c])}});return r.push(()=>{n.FontFace=s}),r.push(l),ct(()=>{r.forEach(u=>u())})}function T3(t){const{doc:e,mirror:n,blockClass:r,blockSelector:i,unblockSelector:s,selectionCb:l}=t;let u=!0;const c=ct(()=>{const p=e.getSelection();if(!p||u&&(p!=null&&p.isCollapsed))return;u=p.isCollapsed||!1;const h=[],m=p.rangeCount||0;for(let g=0;g<m;g++){const _=p.getRangeAt(g),{startContainer:x,startOffset:S,endContainer:w,endOffset:C}=_;Mr(x,r,i,s,!0)||Mr(w,r,i,s,!0)||h.push({start:n.getId(x),startOffset:S,end:n.getId(w),endOffset:C})}l({ranges:h})});return c(),sr("selectionchange",c)}function P3({doc:t,customElementCb:e}){const n=t.defaultView;return!n||!n.customElements?()=>{}:Vx(n.customElements,"define",function(i){return function(s,l,u){try{e({define:{name:s}})}catch{}return i.apply(this,[s,l,u])}})}function R3(t,e={}){const n=t.doc.defaultView;if(!n)return()=>{};let r;t.recordDOM&&(r=RA(t,t.doc));const i=y3(t),s=_3(t),l=AA(t),u=b3(t,{win:n}),c=S3(t),p=k3(t);let h=()=>{},m=()=>{},g=()=>{},_=()=>{};t.recordDOM&&(h=w3(t,{win:n}),m=IA(t,t.doc),g=E3(t,{win:n}),t.collectFonts&&(_=C3(t)));const x=T3(t),S=P3(t),w=[];for(const C of t.plugins)w.push(C.observer(C.callback,n,C.options));return ct(()=>{ru.forEach(C=>C.reset()),r==null||r.disconnect(),i(),s(),l(),u(),c(),p(),h(),m(),g(),_(),x(),S(),w.forEac
vendor: 12,326 bytes, line 63
63h(C=>C())})}function Ah(t){return typeof window[t]<"u"}function Ih(t){return!!(typeof window[t]<"u"&&window[t].prototype&&"insertRule"in window[t].prototype&&"deleteRule"in window[t].prototype)}class j_{constructor(e){this.generateIdFn=e,this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap}getId(e,n,r,i){const s=r||this.getIdToRemoteIdMap(e),l=i||this.getRemoteIdToIdMap(e);let u=s.get(n);return u||(u=this.generateIdFn(),s.set(n,u),l.set(u,n)),u}getIds(e,n){const r=this.getIdToRemoteIdMap(e),i=this.getRemoteIdToIdMap(e);return n.map(s=>this.getId(e,s,r,i))}getRemoteId(e,n,r){const i=r||this.getRemoteIdToIdMap(e);if(typeof n!="number")return n;const s=i.get(n);return s||-1}getRemoteIds(e,n){const r=this.getRemoteIdToIdMap(e);return n.map(i=>this.getRemoteId(e,i,r))}reset(e){if(!e){this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap;return}this.iframeIdToRemoteIdMap.delete(e),this.iframeRemoteIdToIdMap.delete(e)}getIdToRemoteIdMap(e){let n=this.iframeIdToRemoteIdMap.get(e);return n||(n=new Map,this.iframeIdToRemoteIdMap.set(e,n)),n}getRemoteIdToIdMap(e){let n=this.iframeRemoteIdToIdMap.get(e);return n||(n=new Map,this.iframeRemoteIdToIdMap.set(e,n)),n}}class A3{constructor(){this.crossOriginIframeMirror=new j_(Hx),this.crossOriginIframeRootIdMap=new WeakMap}addIframe(){}addLoadListener(){}attachIframe(){}}class I3{constructor(e){this.iframes=new WeakMap,this.crossOriginIframeMap=new WeakMap,this.crossOriginIframeMirror=new j_(Hx),this.crossOriginIframeRootIdMap=new WeakMap,this.mutationCb=e.mutationCb,this.wrappedEmit=e.wrappedEmit,this.stylesheetManager=e.stylesheetManager,this.recordCrossOriginIframes=e.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new j_(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=e.mirror,this.recordCrossOriginIframes&&window.addEventListener("message",this.handleMessage.bind(this))}addIframe(e){this.iframes.set(e,!0),e.contentWindow&&this.crossOriginIframeMap.set(e.contentWindow,e)}addLoadListener(e){this.loadListener=e}attachIframe(e,n){var i,s;this.mutationCb({adds:[{parentId:this.mirror.getId(e),nextId:null,node:n}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),this.recordCrossOriginIframes&&((i=e.contentWindow)==null||i.addEventListener("message",this.handleMessage.bind(this))),(s=this.loadListener)==null||s.call(this,e);const r=Yx(e);r&&r.adoptedStyleSheets&&r.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(r.adoptedStyleSheets,this.mirror.getId(r))}handleMessage(e){const n=e;if(n.data.type!=="rrweb"||n.origin!==n.data.origin||!e.source)return;const i=this.crossOriginIframeMap.get(e.source);if(!i)return;const s=this.transformCrossOriginEvent(i,n.data.event);s&&this.wrappedEmit(s,n.data.isCheckout)}transformCrossOriginEvent(e,n){var r;switch(n.type){case Ye.FullSnapshot:{this.crossOriginIframeMirror.reset(e),this.crossOriginIframeStyleMirror.reset(e),this.replaceIdOnNode(n.data.node,e);const i=n.data.node.id;return this.crossOriginIframeRootIdMap.set(e,i),this.patchRootIdOnNode(n.data.node,i),{timestamp:n.timestamp,type:Ye.IncrementalSnapshot,data:{source:$e.Mutation,adds:[{parentId:this.mirror.getId(e),nextId:null,node:n.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case Ye.Meta:case Ye.Load:case Ye.DomContentLoaded:return!1;case Ye.Plugin:return n;case Ye.Custom:return this.replaceIds(n.data.payload,e,["id","parentId","previousId","nextId"]),n;case Ye.IncrementalSnapshot:switch(n.data.source){case $e.Mutation:return n.data.adds.forEach(i=>{this.replaceIds(i,e,["parentId","nextId","previousId"]),this.replaceIdOnNode(i.node,e);const s=this.crossOriginIframeRootIdMap.get(e);s&&this.patchRootIdOnNode(i.node,s)}),n.data.removes.forEach(i=>{this.replaceIds(i,e,["parentId","id"])}),n.data.attributes.forEach(i=>{this.replaceIds(i,e,["id"])}),n.data.texts.forEach(i=>{this.replaceIds(i,e,["id"])}),n;case $e.Drag:case $e.TouchMove:case $e.MouseMove:return n.data.positions.forEach(i=>{this.replaceIds(i,e,["id"])}),n;case $e.ViewportResize:return!1;case $e.MediaInteraction:case $e.MouseInteraction:case $e.Scroll:case $e.CanvasMutation:case $e.Input:return this.replaceIds(n.data,e,["id"]),n;case $e.StyleSheetRule:case $e.StyleDeclaration:return this.replaceIds(n.data,e,["id"]),this.replaceStyleIds(n.data,e,["styleId"]),n;case $e.Font:return n;case $e.Selection:return n.data.ranges.forEach(i=>{this.replaceIds(i,e,["start","end"])}),n;case $e.AdoptedStyleSheet:return this.replaceIds(n.data,e,["id"]),this.replaceStyleIds(n.data,e,["styleIds"]),(r=n.data.styles)==null||r.forEach(i=>{this.replaceStyleIds(i,e,["styleId"])}),n}}return!1}replace(e,n,r,i){for(const s of i)!Array.isArray(n[s])&&typeof n[s]!="number"||(Array.isArray(n[s])?n[s]=e.getIds(r,n[s]):n[s]=e.getId(r,n[s]));return n}replaceIds(e,n,r){return this.replace(this.crossOriginIframeMirror,e,n,r)}replaceStyleIds(e,n,r){return this.replace(this.crossOriginIframeStyleMirror,e,n,r)}replaceIdOnNode(e,n){this.replaceIds(e,n,["id","rootId"]),"childNodes"in e&&e.childNodes.forEach(r=>{this.replaceIdOnNode(r,n)})}patchRootIdOnNode(e,n){e.type!==an.Document&&!e.rootId&&(e.rootId=n),"childNodes"in e&&e.childNodes.forEach(r=>{this.patchRootIdOnNode(r,n)})}}class L3{init(){}addShadowRoot(){}observeAttachShadow(){}reset(){}}class M3{constructor(e){this.shadowDoms=new WeakSet,this.restoreHandlers=[],this.mutationCb=e.mutationCb,this.scrollCb=e.scrollCb,this.bypassOptions=e.bypassOptions,this.mirror=e.mirror,this.init()}init(){this.reset(),this.patchAttachShadow(Element,document)}addShadowRoot(e,n){if(!ad(e)||this.shadowDoms.has(e))return;this.shadowDoms.add(e),this.bypassOptions.canvasManager.addShadowRoot(e);const r=RA({...this.bypassOptions,doc:n,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this},e);this.restoreHandlers.push(()=>r.disconnect()),this.restoreHandlers.push(AA({...this.bypassOptions,scrollCb:this.scrollCb,doc:e,mirror:this.mirror})),jm(()=>{e.adoptedStyleSheets&&e.adoptedStyleSheets.length>0&&this.bypassOptions.stylesheetManager.adoptStyleSheets(e.adoptedStyleSheets,this.mirror.getId(e.host)),this.restoreHandlers.push(IA({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},e))},0)}observeAttachShadow(e){const n=Yx(e),r=p3(e);!n||!r||this.patchAttachShadow(r.Element,n)}patchAttachShadow(e,n){const r=this;this.restoreHandlers.push(Vx(e.prototype,"attachShadow",function(i){return function(s){const l=i.call(this,s);return this.shadowRoot&&TA(this)&&r.addShadowRoot(this.shadowRoot,n),l}}))}reset(){this.restoreHandlers.forEach(e=>{try{e()}catch{}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet,this.bypassOptions.canvasManager.resetShadowRoots()}}var Dk="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",N3=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var Lh=0;Lh<Dk.length;Lh++)N3[Dk.charCodeAt(Lh)]=Lh;class jk{reset(){}freeze(){}unfreeze(){}lock(){}unlock(){}snapshot(){}addWindow(){}addShadowRoot(){}resetShadowRoots(){}}class O3{constructor(e){this.trackedLinkElements=new WeakSet,this.styleMirror=new a3,this.mutationCb=e.mutationCb,this.adoptedStyleSheetCb=e.adoptedStyleSheetCb}attachLinkElement(e,n){"_cssText"in n.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:n.id,attributes:n.attributes}]}),this.trackLinkElement(e)}trackLinkElement(e){this.trackedLinkElements.has(e)||(this.trackedLinkElements.add(e),this.trackStylesheetInLinkElement(e))}adoptStyleSheets(e,n){if(e.length===0)return;const r={id:n,styleIds:[]},i=[];for(const s of e){let l;this.styleMirror.has(s)?l=this.styleMirror.getId(s):(l=this.styleMirror.add(s),i.push({styleId:l,rules:Array.from(s.rules||CSSRule,(u,c)=>({rule:cA(u),index:c}))})),r.styleIds.push(l)}i.length>0&&(r.styles=i),this.adoptedStyleSheetCb(r)}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}trackStylesheetInLinkElement(e){}}class D3{constructor(){this.nodeMap=new WeakMap,this.active=!1}inOtherBuffer(e,n){const r=this.nodeMap.get(e);return r&&Array.from(r).some(i=>i!==n)}add(e,n){this.active||(this.active=!0,c3(()=>{this.nodeMap=new WeakMap,this.active=!1})),this.nodeMap.set(e,(this.nodeMap.get(e)||new Set).add(n))}destroy(){}}let Qt,zf;var oP;try{if(Array.from([1],t=>t*2)[0]!==2){const t=document.createElement("iframe");document.body.appendChild(t),Array.from=((oP=t.contentWindow)==null?void 0:oP.Array.from)||Array.from,document.body.removeChild(t)}}catch(t){console.debug("Unable to override Array.from",t)}const gi=NB();function Ei(t={}){const{emit:e,checkoutEveryNms:n,checkoutEveryNth:r,blockClass:i="rr-block",blockSelector:s=null,unblockSelector:l=null,ignoreClass:u="rr-ignore",ignoreSelector:c=null,maskAllText:p=!1,maskTextClass:h="rr-mask",unmaskTextClass:m=null,maskTextSelector:g=null,unmaskTextSelector:_=null,inlineStylesheet:x=!0,maskAllInputs:S,maskInputOptions:w,slimDOMOptions:C,maskAttributeFn:R,maskInputFn:I,maskTextFn:P,maxCanvasSize:A=null,packFn:N,sampling:T={},dataURLOptions:L={},mousemoveWait:O,recordDOM:j=!0,recordCanvas:B=!1,recordCrossOriginIframes:q=!1,recordAfter:G=t.recordAfter==="DOMContentLoaded"?t.recordAfter:"load",userTriggeredOnInput:W=!1,collectFonts:ie=!1,inlineImages:se=!1,plugins:de,keepIframeSrcFn:$=()=>!1,ignoreCSSAttributes:Z=new Set([]),errorHandler:Q,onMutation:D,getCanvasManager:Y}=t;g3(Q);const le=q?window.parent===window:!0;let me=!1;if(!le)try{window.parent.document&&(me=!1)}catch{me=!0}if(le&&!e)throw new Error("emit function is required");if(!le&&!me)return()=>{};O!==void 0&&T.mousemove===void 0&&(T.mousemove=O),gi.reset();const ge=S===!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}:w!==void 0?w:{},Ie=C===!0||C==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:C==="all",headMetaDescKeywords:C==="all"}:C||{};o3();let je,Le=0;const qe=We=>{for(const Lt of de||[])Lt.eventProcessor&&(We=Lt.eventProcessor(We));return N&&!me&&(We=N(We)),We};Qt=(We,Lt)=>{var Mt;const Ae=We;if(Ae.timestamp=Ff(),(Mt=ru[0])!=null&&Mt.isFrozen()&&Ae.type!==Ye.FullSnapshot&&!(Ae.type===Ye.IncrementalSnapshot&&Ae.data.source===$e.Mutation)&&ru.forEach(yn=>yn.unfreeze()),le)e==null||e(qe(Ae),Lt);else if(me){const yn={type:"rrweb",event:qe(Ae),origin:window.location.origin,isCheckout:Lt};window.parent.postMessage(yn,"*")}if(Ae.type===Ye.FullSnapshot)je=Ae,Le=0;else if(Ae.type===Ye.IncrementalSnapshot){if(Ae.data.source===$e.Mutation&&Ae.data.isAttachIframe)return;Le++;const yn=r&&Le>=r,tt=n&&je&&Ae.timestamp-je.timestamp>n;(yn||tt)&&Qe(!0)}};const yt=We=>{Qt({type:Ye.IncrementalSnapshot,data:{source:$e.Mutation,...We}})},vn=We=>Qt({type:Ye.IncrementalSnapshot,data:{source:$e.Scroll,...We}}),ln=We=>Qt({type:Ye.IncrementalSnapshot,data:{source:$e.CanvasMutation,...We}}),Pi=We=>Qt({type:Ye.IncrementalSnapshot,data:{source:$e.AdoptedStyleSheet,...We}}),Cn=new O3({mutationCb:yt,adoptedStyleSheetCb:Pi}),Hn=typeof __RRWEB_EXCLUDE_IFRAME__=="boolean"&&__RRWEB_EXCLUDE_IFRAME__?new A3:new I3({mirror:gi,mutationCb:yt,stylesheetManager:Cn,recordCrossOriginIframes:q,wrappedEmit:Qt});for(const We of de||[])We.getMirror&&We.getMirror({nodeMirror:gi,crossOriginIframeMirror:Hn.crossOriginIframeMirror,crossOriginIframeStyleMirror:Hn.crossOriginIframeStyleMirror});const un=new D3,ri=F3(Y,{mirror:gi,win:window,mutationCb:We=>Qt({type:Ye.IncrementalSnapshot,data:{source:$e.CanvasMutation,...We}}),recordCanvas:B,blockClass:i,blockSelector:s,unblockSelector:l,maxCanvasSize:A,sampling:T.canvas,dataURLOptions:L,errorHandler:Q}),kr=typeof __RRWEB_EXCLUDE_SHADOW_DOM__=="boolean"&&__RRWEB_EXCLUDE_SHADOW_DOM__?new L3:new M3({mutationCb:yt,scrollCb:vn,bypassOptions:{onMutation:D,blockClass:i,blockSelector:s,unblockSelector:l,maskAllText:p,maskTextClass:h,unmaskTextClass:m,maskTextSelector:g,unmaskTextSelector:_,inlineStylesheet:x,maskInputOptions:ge,dataURLOptions:L,maskAttributeFn:R,maskTextFn:P,maskInputFn:I,recordCanvas:B,inlineImages:se,sampling:T,slimDOMOptions:Ie,iframeManager:Hn,stylesheetManager:Cn,canvasManager:ri,keepIframeSrcFn:$,processedNodeManager:un,ignoreCSSAttributes:Z},mirror:gi}),Qe=(We=!1)=>
63{if(!j)return;Qt({type:Ye.Meta,data:{href:window.location.href,width:xA(),height:bA()}},We),Cn.reset(),kr.init(),ru.forEach(Ae=>Ae.lock());const Lt=i3(document,{mirror:gi,blockClass:i,blockSelector:s,unblockSelector:l,maskAllText:p,maskTextClass:h,unmaskTextClass:m,maskTextSelector:g,unmaskTextSelector:_,inlineStylesheet:x,maskAllInputs:ge,maskAttributeFn:R,maskInputFn:I,maskTextFn:P,slimDOM:Ie,dataURLOptions:L,recordCanvas:B,inlineImages:se,onSerialize:Ae=>{EA(Ae,gi)&&Hn.addIframe(Ae),kA(Ae,gi)&&Cn.trackLinkElement(Ae),O_(Ae)&&kr.addShadowRoot(Ae.shadowRoot,document)},onIframeLoad:(Ae,Mt)=>{Hn.attachIframe(Ae,Mt),Ae.contentWindow&&ri.addWindow(Ae.contentWindow),kr.observeAttachShadow(Ae)},onStylesheetLoad:(Ae,Mt)=>{Cn.attachLinkElement(Ae,Mt)},onBlockedImageLoad:(Ae,Mt,{width:yn,height:tt})=>{yt({adds:[],removes:[],texts:[],attributes:[{id:Mt.id,attributes:{style:{width:`${yn}px`,height:`${tt}px`}}}]})},keepIframeSrcFn:$,ignoreCSSAttributes:Z});if(!Lt)return console.warn("Failed to snapshot the document");Qt({type:Ye.FullSnapshot,data:{node:Lt,initialOffset:_A(window)}}),ru.forEach(Ae=>Ae.unlock()),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&Cn.adoptStyleSheets(document.adoptedStyleSheets,gi.getId(document))};zf=Qe;try{const We=[],Lt=Mt=>{var yn;return ct(R3)({onMutation:D,mutationCb:yt,mousemoveCb:(tt,Ri)=>Qt({type:Ye.IncrementalSnapshot,data:{source:Ri,positions:tt}}),mouseInteractionCb:tt=>Qt({type:Ye.IncrementalSnapshot,data:{source:$e.MouseInteraction,...tt}}),scrollCb:vn,viewportResizeCb:tt=>Qt({type:Ye.IncrementalSnapshot,data:{source:$e.ViewportResize,...tt}}),inputCb:tt=>Qt({type:Ye.IncrementalSnapshot,data:{source:$e.Input,...tt}}),mediaInteractionCb:tt=>Qt({type:Ye.IncrementalSnapshot,data:{source:$e.MediaInteraction,...tt}}),styleSheetRuleCb:tt=>Qt({type:Ye.IncrementalSnapshot,data:{source:$e.StyleSheetRule,...tt}}),styleDeclarationCb:tt=>Qt({type:Ye.IncrementalSnapshot,data:{source:$e.StyleDeclaration,...tt}}),canvasMutationCb:ln,fontCb:tt=>Qt({type:Ye.IncrementalSnapshot,data:{source:$e.Font,...tt}}),selectionCb:tt=>{Qt({type:Ye.IncrementalSnapshot,data:{source:$e.Selection,...tt}})},customElementCb:tt=>{Qt({type:Ye.IncrementalSnapshot,data:{source:$e.CustomElement,...tt}})},blockClass:i,ignoreClass:u,ignoreSelector:c,maskAllText:p,maskTextClass:h,unmaskTextClass:m,maskTextSelector:g,unmaskTextSelector:_,maskInputOptions:ge,inlineStylesheet:x,sampling:T,recordDOM:j,recordCanvas:B,inlineImages:se,userTriggeredOnInput:W,collectFonts:ie,doc:Mt,maskAttributeFn:R,maskInputFn:I,maskTextFn:P,keepIframeSrcFn:$,blockSelector:s,unblockSelector:l,slimDOMOptions:Ie,dataURLOptions:L,mirror:gi,iframeManager:Hn,stylesheetManager:Cn,shadowDomManager:kr,processedNodeManager:un,canvasManager:ri,ignoreCSSAttributes:Z,plugins:((yn=de==null?void 0:de.filter(tt=>tt.observer))==null?void 0:yn.map(tt=>({observer:tt.observer,options:tt.options,callback:Ri=>Qt({type:Ye.Plugin,data:{plugin:tt.name,payload:Ri}})})))||[]},{})};Hn.addLoadListener(Mt=>{try{We.push(Lt(Mt.contentDocument))}catch(yn){console.warn(yn)}});const Ae=()=>{Qe(),We.push(Lt(document))};return document.readyState==="interactive"||document.readyState==="complete"?Ae():(We.push(sr("DOMContentLoaded",()=>{Qt({type:Ye.DomContentLoaded,data:{}}),G==="DOMContentLoaded"&&Ae()})),We.push(sr("load",()=>{Qt({type:Ye.Load,data:{}}),G==="load"&&Ae()},window))),()=>{We.forEach(Mt=>Mt()),un.destroy(),zf=void 0,v3()}}catch(We){console.warn(We)}}function j3(t){if(!zf)throw new Error("please take full snapshot after start recording");zf(t)}Ei.mirror=gi;Ei.takeFullSnapshot=j3;function F3(t,e){try{return t?t(e):new jk}catch{return console.warn("Unable to initialize CanvasManager"),new jk}}var Fk;(function(t){t[t.NotStarted=0]="NotStarted",t[t.Running=1]="Running",t[t.Stopped=2]="Stopped"})(Fk||(Fk={}));const U3=3,z3=5;function Kx(t){return t>9999999999?t:t*1e3}function dy(t){return t>9999999999?t/1e3:t}function cp(t,e){e.category!=="sentry.transaction"&&(["ui.click","ui.input"].includes(e.category)?t.triggerUserActivity():t.checkAndHandleExpiredSession(),t.addUpdate(()=>(t.throttledAddEvent({type:Ye.Custom,timestamp:(e.timestamp||0)*1e3,data:{tag:"breadcrumb",payload:bi(e,10,1e3)}}),e.category==="console")))}const B3="button,a";function LA(t){return t.closest(B3)||t}function MA(t){const e=NA(t);return!e||!(e instanceof Element)?e:LA(e)}function NA(t){return $3(t)?t.target:t}function $3(t){return typeof t=="object"&&!!t&&"target"in t}let uo;function q3(t){return uo||(uo=[],W3()),uo.push(t),()=>{const e=uo?uo.indexOf(t):-1;e>-1&&uo.splice(e,1)}}function W3(){xr(It,"open",function(t){return function(...e){if(uo)try{uo.forEach(n=>n())}catch{}return t.apply(It,e)}})}const H3=new Set([$e.Mutation,$e.StyleSheetRule,$e.StyleDeclaration,$e.AdoptedStyleSheet,$e.CanvasMutation,$e.Selection,$e.MediaInteraction]);function V3(t,e,n){t.handleClick(e,n)}class G3{constructor(e,n,r=cp){this._lastMutation=0,this._lastScroll=0,this._clicks=[],this._timeout=n.timeout/1e3,this._threshold=n.threshold/1e3,this._scrollTimeout=n.scrollTimeout/1e3,this._replay=e,this._ignoreSelector=n.ignoreSelector,this._addBreadcrumbEvent=r}addListeners(){const e=q3(()=>{this._lastMutation=Uk()});this._teardown=()=>{e(),this._clicks=[],this._lastMutation=0,this._lastScroll=0}}removeListeners(){this._teardown&&this._teardown(),this._checkClickTimeout&&clearTimeout(this._checkClickTimeout)}handleClick(e,n){if(K3(n,this._ignoreSelector)||!J3(e))return;const r={timestamp:dy(e.timestamp),clickBreadcrumb:e,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(e=Date.now()){this._lastMutation=dy(e)}registerScroll(e=Date.now()){this._lastScroll=dy(e)}registerClick(e){const n=LA(e);this._handleMultiClick(n)}_handleMultiClick(e){this._getClicks(e).forEach(n=>
63{n.clickCount++})}_getClicks(e){return this._clicks.filter(n=>n.node===e)}_checkClicks(){const e=[],n=Uk();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&&e.push(r)});for(const r of e){const i=this._clicks.indexOf(r);i>-1&&(this._generateBreadcrumbs(r),this._clicks.splice(i,1))}this._clicks.length&&this._scheduleCheckClicks()}_generateBreadcrumbs(e){const n=this._replay,r=e.scrollAfter&&e.scrollAfter<=this._scrollTimeout,i=e.mutationAfter&&e.mutationAfter<=this._threshold,s=!r&&!i,{clickCount:l,clickBreadcrumb:u}=e;if(s){const c=Math.min(e.mutationAfter||this._timeout,this._timeout)*1e3,p=c<this._timeout*1e3?"mutation":"timeout",h={type:"default",message:u.message,timestamp:u.timestamp,category:"ui.slowClickDetected",data:{...u.data,url:It.location.href,route:n.getCurrentRoute(),timeAfterClickMs:c,endReason:p,clickCount:l||1}};this._addBreadcrumbEvent(n,h);return}if(l>1){const c={type:"default",message:u.message,timestamp:u.timestamp,category:"ui.multiClick",data:{...u.data,url:It.location.href,route:n.getCurrentRoute(),clickCount:l,metric:!0}};this._addBreadcrumbEvent(n,c)}}_scheduleCheckClicks(){this._checkClickTimeout&&clearTimeout(this._checkClickTimeout),this._checkClickTimeout=lp(()=>this._checkClicks(),1e3)}}const Y3=["A","BUTTON","INPUT"];function K3(t,e){return!!(!Y3.includes(t.tagName)||t.tagName==="INPUT"&&!["submit","button"].includes(t.getAttribute("type")||"")||t.tagName==="A"&&(t.hasAttribute("download")||t.hasAttribute("target")&&t.getAttribute("target")!=="_self")||e&&t.matches(e))}function J3(t){return!!(t.data&&typeof t.data.nodeId=="number"&&t.timestamp)}function Uk(){return Date.now()/1e3}function Q3(t,e){try{if(!X3(e))return;const{source:n}=e.data;if(H3.has(n)&&t.registerMutation(e.timestamp),n===$e.Scroll&&t.registerScroll(e.timestamp),Z3(e)){const{type:r,id:i}=e.data,s=Ei.mirror.getNode(i);s instanceof HTMLElement&&r===Zn.Click&&t.registerClick(s)}}catch{}}function X3(t){return t.type===U3}function Z3(t){return t.data.source===$e.MouseInteraction}function Hi(t){return{timestamp:Date.now()/1e3,type:"default",...t}}var Fm=(t=>(t[t.Document=0]="Document",t[t.DocumentType=1]="DocumentType",t[t.Element=2]="Element",t[t.Text=3]="Text",t[t.CDATA=4]="CDATA",t[t.Comment=5]="Comment",t))(Fm||{});const e$=new Set(["id","class","aria-label","role","name","alt","title","data-test-id","data-testid","disabled","aria-disabled","data-sentry-component"]);function t$(t){const e={};!t["data-sentry-component"]&&t["data-sentry-element"]&&(t["data-sentry-component"]=t["data-sentry-element"]);for(const n in t)if(e$.has(n)){let r=n;(n==="data-testid"||n==="data-test-id")&&(r="testId"),e[r]=t[n]}return e}const n$=t=>e=>{if(!t.isEnabled())return;const n=r$(e);if(!n)return;const r=e.name==="click",i=r?e.event:void 0;r&&t.clickDetector&&(i!=null&&i.target)&&!i.altKey&&!i.metaKey&&!i.ctrlKey&&!i.shiftKey&&V3(t.clickDetector,n,MA(e.event)),cp(t,n)};function OA(t,e){const n=Ei.mirror.getId(t),r=n&&Ei.mirror.getNode(n),i=r&&Ei.mirror.getMeta(r),s=i&&s$(i)?i:null;return{message:e,data:s?{nodeId:n,node:{id:n,tagName:s.tagName,textContent:Array.from(s.childNodes).map(l=>l.type===Fm.Text&&l.textContent).filter(Boolean).map(l=>l.trim()).join(""),attributes:t$(s.attributes)}}:{}}}function r$(t){const{target:e,message:n}=i$(t);return Hi({category:`ui.${t.name}`,...OA(e,n)})}function i$(t){const e=t.name==="click";let n,r=null;try{r=e?MA(t.event):NA(t.event),n=mn(r,{maxStringLength:200})||"<unknown>"}catch{n="<unknown>"}return{target:r,message:n}}function s$(t){return t.type===Fm.Element}function o$(t,e){if(!t.isEnabled())return;t.updateUserActivity();const n=a$(e);n&&cp(t,n)}function a$(t){const{metaKey:e,shiftKey:n,ctrlKey:r,altKey:i,key:s,target:l}=t;if(!l||l$(l)||!s)return null;const u=e||r||i,c=s.length===1;if(!u&&c)return null;const p=mn(l,{maxStringLength:200})||"<unknown>",h=OA(l,p);return Hi({category:"ui.keyDown",message:p,data:{...h.data,metaKey:e,shiftKey:n,ctrlKey:r,altKey:i,key:s}})}function l$(t){return t.tagName==="INPUT"||t.tagName==="TEXTAREA"||t.isContentEditable}const u$={resource:f$,paint:p$,navigation:h$};function py(t,e){return({metric:n})=>void e.replayPerformanceEntries.push(t(n))}
63function c$(t){return t.map(d$).filter(Boolean)}function d$(t){const e=u$[t.entryType];return e?e(t):null}function Au(t){return((Nn()||It.performance.timeOrigin)+t)/1e3}function p$(t){const{duration:e,entryType:n,name:r,startTime:i}=t,s=Au(i);return{type:n,name:r,start:s,end:s+e,data:void 0}}function h$(t){const{entryType:e,name:n,decodedBodySize:r,duration:i,domComplete:s,encodedBodySize:l,domContentLoadedEventStart:u,domContentLoadedEventEnd:c,domInteractive:p,loadEventStart:h,loadEventEnd:m,redirectCount:g,startTime:_,transferSize:x,type:S}=t;return i===0?null:{type:`${e}.${S}`,start:Au(_),end:Au(s),name:n,data:{size:x,decodedBodySize:r,encodedBodySize:l,duration:i,domInteractive:p,domContentLoadedEventStart:u,domContentLoadedEventEnd:c,loadEventStart:h,loadEventEnd:m,domComplete:s,redirectCount:g}}}function f$(t){const{entryType:e,initiatorType:n,name:r,responseEnd:i,startTime:s,decodedBodySize:l,encodedBodySize:u,responseStatus:c,transferSize:p}=t;return["fetch","xmlhttprequest"].includes(n)?null:{type:`${e}.${n}`,start:Au(s),end:Au(i),name:r,data:{size:p,statusCode:c,decodedBodySize:l,encodedBodySize:u}}}function m$(t){const e=t.entries[t.entries.length-1],n=e!=null&&e.element?[e.element]:void 0;return Jx(t,"largest-contentful-paint",n)}function g$(t){return t.sources!==void 0}function v$(t){const e=[],n=[];for(const r of t.entries)if(g$(r)){const i=[];for(const s of r.sources)if(s.node){n.push(s.node);const l=Ei.mirror.getId(s.node);l&&i.push(l)}e.push({value:r.value,nodeIds:i.length?i:void 0})}return Jx(t,"cumulative-layout-shift",n,e)}function y$(t){const e=t.entries[t.entries.length-1],n=e!=null&&e.target?[e.target]:void 0;return Jx(t,"interaction-to-next-paint",n)}function Jx(t,e,n,r){const i=t.value,s=t.rating,l=Au(i);return{type:"web-vital",name:e,start:l,end:l,data:{value:i,size:i,rating:s,nodeIds:n?n.map(u=>Ei.mirror.getId(u)):void 0,attributions:r}}}function _$(t){function e(i){t.performanceEntries.includes(i)||t.performanceEntries.push(i)}function n({entries:i}){i.forEach(e)}const r=[];return["navigation","paint","resource"].forEach(i=>{r.push(Tu(i,n))}),r.push(Am(py(m$,t)),Rm(py(v$,t)),Fx(py(y$,t))),()=>{r.forEach(i=>i())}}const Fe=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,b$='
vendor: 10,329 bytes, line 63
63var 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]),s=new t([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),a=function(t,e){for(var i=new n(31),s=0;s<31;++s)i[s]=e+=1<<t[s-1];var a=new r(i[30]);for(s=1;s<30;++s)for(var o=i[s];o<i[s+1];++o)a[o]=o-i[s]<<5|s;return{b:i,r:a}},o=a(e,2),h=o.b,f=o.r;h[28]=258,f[258]=28;for(var l=a(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,s=0,a=new n(r);s<i;++s)t[s]&&++a[t[s]-1];var o,h=new n(r);for(s=1;s<r;++s)h[s]=h[s-1]+a[s-1]<<1;if(e){o=new n(1<<r);var f=15-r;for(s=0;s<i;++s)if(t[s])for(var l=s<<4|t[s],c=r-t[s],v=h[t[s]-1]++<<c,d=v|(1<<c)-1;v<=d;++v)o[u[v]>>f]=l}else for(o=new n(i),s=0;s<i;++s)t[s]&&(o[s]=u[h[t[s]-1]++]>>15-t[s]);return o},p=new t(288);for(c=0;c<144;++c)p[c]=8;for(c=144;c<256;++c)p[c]=9;for(c=256;c<280;++c)p[c]=7;for(c=280;c<288;++c)p[c]=8;var g=new t(32);for(c=0;c<32;++c)g[c]=5;var w=d(p,9,0),y=d(g,5,0),m=function(t){return(t+7)/8|0},b=function(n,r,e){return(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},_=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},x=function(r,e){for(var i=[],s=0;s<r.length;++s)r[s]&&i.push({s:s,f:r[s]});var a=i.length,o=i.slice();if(!a)return{t:F,l:0};if(1==a){var h=new t(i[0].s+1);return h[i[0].s]=1,{t:h,l:1}}i.sort(function(t,n){return t.f-n.f}),i.push({s:-1,f:25001});var f=i[0],l=i[1],u=0,c=1,v=2;for(i[0]={s:-1,f:f.f+l.f,l:f,r:l};c!=a-1;)f=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:f.f+l.f,l:f,r:l};var d=o[0].s;for(s=1;s<a;++s)o[s].s>d&&(d=o[s].s);var p=new n(d+1),g=A(i[c-1],p,0);if(g>e){s=0;var w=0,y=g-e,m=1<<y;for(o.sort(function(t,n){return p[n.s]-p[t.s]||t.f-n.f});s<a;++s){var b=o[s].s;if(!(p[b]>e))break;w+=m-(1<<g-p[b]),p[b]=e}for(w>>=y;w>0;){var M=o[s].s;p[M]<e?w-=1<<e-p[M]++-1:++s}for(;s>=0&&w;--s){var E=o[s].s;p[E]==e&&(--p[E],++w)}g=e}return{t:new t(p),l:g}},A=function(t,n,r){return-1==t.s?Math.max(A(t.l,n,r+1),A(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,s=t[0],a=1,o=function(t){e[i++]=t},h=1;h<=r;++h)if(t[h]==s&&h!=r)++a;else{if(!s&&a>2){for(;a>138;a-=138)o(32754);a>2&&(o(a>10?a-11<<5|28690:a-3<<5|12305),a=0)}else if(a>3){for(o(s),--a;a>6;a-=6)o(8304);a>2&&(o(a-3<<5|8208),a=0)}for(;a--;)o(s);a=1,s=t[h]}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 s=0;s<e;++s)t[i+s+4]=r[s];return 8*(i+4+e)},U=function(t,r,a,o,h,f,l,u,c,v,m){z(r,m++,a),++h[256];for(var b=x(h,15),M=b.t,E=b.l,A=x(f,15),U=A.t,C=A.l,F=D(M),I=F.c,S=F.n,L=D(U),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=x(q,7),H=G.t,J=G.l,K=19;K>4&&!H[s[K-1]];--K);var N,P,Q,R,V=v+5<<3,W=T(h,p)+T(f,g)+l,X=T(h,M)+T(f,U)+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(U,C,0),R=U;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[s[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=w,P=p,Q=y,R=g;for(B=0;B<u;++B){var rt=o[B];if(rt>255){_(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;_(r,m,Q[et]),m+=R[et],et>3&&(_(r,m,rt>>5&8191),m+=i[et])}else _(r,m,N[rt]),m+=P[rt]}return _(r,m,N[256]),m+P[256]},C=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,n=0;return{p:function(r){for(var e=t,i=n,s=0|r.length,a=0;a!=s;){for(var o=Math.min(a+2655,s);a<o;++a)i+=e+=r[a];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}}},L=function(s,a,o,h,u){if(!u&&(u={l:1},a.dictionary)){var c=a.dictionary.subarray(-32768),v=new t(c.length+s.length);v.set(c),v.set(s,c.length),s=v,u.w=c.length}return function(s,a,o,h,u,c){var v=c.z||s.length,d=new t(h+v+5*(1+Math.ceil(v/7e3))+u),p=d.subarray(h,d.length-u),g=c.l,w=7&(c.r||0);if(a){w&&(p[0]=c.r>>3);for(var y=C[a-1],M=y>>13,E=8191&y,z=(1<<o)-1,_=c.p||new n(32768),x=c.h||new n(z+1),A=Math.ceil(o/3),D=2*A,T=function(t){return(s[t]^s[t+1]<<A^s[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=x[H];if(_[J]=K,x[H]=J,B<=j){var N=v-j;if((L>7e3||q>24576)&&(N>423||!g)){w=U(s,p,0,F,I,S,O,q,G,j-G,w),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(s[j+Q]==s[j+Q-W]){for(var $=0;$<Z&&s[j+$]==s[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-_[rt]&32767;et>nt&&(nt=et,K=rt)}}}W+=(J=K)-(K=_[J])&32767}if(R){F[q++]=268435456|f[Q]<<18|l[R];var it=31&f[Q],st=31&l[R];O+=e[it]+i[st],++I[257+it],++S[st],B=j+Q,++L}else F[q++]=s[j],++I[s[j]]}}for(j=Math.max(j,B);j<v;++j)F[q++]=s[j],++I[s[j]];w=U(s,p,g,F,I,S,O,q,G,j-G,w),g||(c.r=7&w|p[w/8|0]<<3,w-=7,c.h=x,c.p=_,c.i=j,c.w=B)}else{for(j=c.w||0;j<v+g;j+=65535){var at=j+65535;at>=v&&(p[w/8|0]=g,at=v),w=k(p,w+1,s.subarray(j,at))}c.i=v}return b(d,0,h+m(w)+u)}(s,null==a.level?6:a.level,null==a.mem?u.l?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(s.length)))):20:12+a.mem,o,h,u)},O=function(t,n,r){for(;r;++n)t[n]=r,r>>>=8},j=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(L(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 s=this.b.length-this.s.z;this.b.set(n.subarray(0,s),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(s),32768),this.s.z=n.length-s+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.prototype.flush=function(){this.ondata||E(5),this.s.l&&E(4),this.p(this.b,!1),this.s.w=this.s.i,this.s.i-=2},n}();function q(t,n){n||(n={});var r=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}}}(),e=t.length;r.p(t);var i,s=L(t,n,10+((i=n).filename?i.filename.length+1:0),8),a=s.length;return 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&&O(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)}}(s,n),O(s,a-8,r.d()),O(s,a-4,e),s}var B=function(){function t(t,n){this.c=S(),this.v=1,j.call(this,t,n)}return t.prototype.push=function(t,n){this.c.p(t),j.prototype.push.call(this,t,n)},t.prototype.p=function(t,n){var r=L(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=S();i.p(n.dictionary),O(t,2,i.d())}}(r,this.o),this.v=0),n&&O(r,r.length-4,this.c.d()),this.ondata(r,n)},t.prototype.flush=function(){j.prototype.flush.call(this)},t}(),G="undefined"!=typeof TextEncoder&&new TextEncoder,H="undefined"!=typeof TextDecoder&&new TextDecoder;try{H.decode(F,{stream:!0})}catch(t){}var J=function(){function t(t){this.ondata=t}return t.prototype.push=function(t,n){this.ondata||E(5),this.d&&E(4),this.ondata(K(t),this.d=n||!1)},t}();function K(n,r){if(G)return G.encode(n);for(var e=n.length,i=new t(n.length+(n.length>>1)),s=0,a=function(t){i[s++]=t},o=0;o<e;++o){if(s+5>i.length){var h=new t(s+8+(e-o<<1));h.set(i),i=h}var f=n.charCodeAt(o);f<128||r?a(f):f<2048?(a(192|f>>6),a(128|63&f)):f>55295&&f<57344?(a(240|(f=65536+(1047552&f)|1023&n.charCodeAt(++o))>>18),a(128|f>>12&63),a(128|f>>6&63),a(128|63&f)):(a(224|f>>12),a(128|f>>6&63),a(128|63&f))}return b(i,0,s)}const N=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 B,this.deflate.ondata=(t,n)=>{this._deflatedData.push(t)},this.stream=new J((t,n)=>{this.deflate.push(t,n)}),this.stream.push("[")}},P={clear:()=>{N.clear()},addEvent:t=>N.addEvent(t),finish:()=>N.finish(),compress:t=>function(t){return q(K(t))}(t)};addEventListener("message",function(t){const n=t.data.method,r=t.data.id,e=t.data.arg;if(n in P&&"function"==typeof P[n])try{const t=P[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});
63';function x$(){const t=new Blob([b$]);return URL.createObjectURL(t)}const zk=["log","warn","error"],pf="[Replay] ";function hy(t,e="info"){Do({category:"console",data:{logger:"replay"},level:e,message:`${pf}${t}`},{level:e})}function S$(){let t=!1,e=!1;const n={exception:()=>{},infoTick:()=>{},setConfig:r=>{t=!!r.captureExceptions,e=!!r.traceInternals}};return Fe?(zk.forEach(r=>{n[r]=(...i)=>{ae[r](pf,...i),e&&hy(i.join(""),NR(r))}}),n.exception=(r,...i)=>{i.length&&n.error&&n.error(...i),ae.error(pf,r),t?Tx(r,{mechanism:{handled:!0,type:"auto.function.replay.debug"}}):e&&hy(r,"error")},n.infoTick=(...r)=>{ae.log(pf,...r),e&&setTimeout(()=>hy(r[0]),0)}):zk.forEach(r=>{n[r]=()=>{}}),n}const Ue=S$();class Qx extends Error{constructor(){super(`Event buffer exceeded maximum size of ${qx}.`)}}class DA{constructor(){this.events=[],this._totalSize=0,this.hasCheckout=!1,this.waitForCheckout=!1}get hasEvents(){return this.events.length>0}get type(){return"sync"}destroy(){this.events=[]}async addEvent(e){const n=JSON.stringify(e).length;if(this._totalSize+=n,this._totalSize>qx)throw new Qx;this.events.push(e)}finish(){return new Promise(e=>{const n=this.events;this.clear(),e(JSON.stringify(n))})}clear(){this.events=[],this._totalSize=0,this.hasCheckout=!1}getEarliestTimestamp(){let e=null;for(const{timestamp:n}of this.events)(e===null||n<e)&&(e=n);return e===null?e:Kx(e)}}class w${constructor(e){this._worker=e,this._id=0}ensureReady(){return this._ensureReadyPromise?this._ensureReadyPromise:(this._ensureReadyPromise=new Promise((e,n)=>{this._worker.addEventListener("message",({data:r})=>{r.success?e():(Fe&&Ue.warn("Received worker message with unsuccessful status",r),n(new Error("Received worker message with unsuccessful status")))},{once:!0}),this._worker.addEventListener("error",r=>{Fe&&Ue.warn("Failed to load Replay compression worker",r),n(new Error(`Failed to load Replay compression worker: ${r instanceof ErrorEvent&&r.message?r.message:"Unknown error. This can happen due to CSP policy restrictions, network issues, or the worker script failing to load."}`))},{once:!0})}),this._ensureReadyPromise)}destroy(){Fe&&Ue.log("Destroying compression worker"),this._worker.terminate()}postMessage(e,n){const r=this._getAndIncrementId();return new Promise((i,s)=>{const l=({data:u})=>{const c=u;if(c.method===e&&c.id===r){if(this._worker.removeEventListener("message",l),!c.success){Fe&&Ue.error("Error in compression worker: ",c.response),s(new Error("Error in compression worker"));return}i(c.response)}};this._worker.addEventListener("message",l),this._worker.postMessage({id:r,method:e,arg:n})})}_getAndIncrementId(){return this._id++}}class E${constructor(e){this._worker=new w$(e),this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1,this.waitForCheckout=!1}get hasEvents(){return!!this._earliestTimestamp}get type(){return"worker"}ensureReady(){return this._worker.ensureReady()}destroy(){this._worker.destroy()}addEvent(e){const n=Kx(e.timestamp);(!this._earliestTimestamp||n<this._earliestTimestamp)&&(this._earliestTimestamp=n);const r=JSON.stringify(e);return this._totalSize+=r.length,this._totalSize>qx?Promise.reject(new Qx):this._sendEventToWorker(r)}finish(){return this._finishRequest()}clear(){this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1,this._worker.postMessage("clear").then(null,e=>{Fe&&Ue.exception(e,'Sending "clear" message to worker failed',e)})}getEarliestTimestamp(){return this._earliestTimestamp}_sendEventToWorker(e){return this._worker.postMessage("addEvent",e)}async _finishRequest(){const e=await this._worker.postMessage("finish");return this._earliestTimestamp=null,this._totalSize=0,e}}class k${constructor(e){this._fallback=new DA,this._compression=new E$(e),this._used=this._fallback,this._ensureWorkerIsLoadedPromise=this._ensureWorkerIsLoaded()}get waitForCheckout(){return this._used.waitForCheckout}get type(){return this._used.type}get hasEvents(){return this._used.hasEvents}get hasCheckout(){return this._used.hasCheckout}set hasCheckout(e){this._used.hasCheckout=e}set waitForCheckout(e){this._used.waitForCheckout=e}destroy(){this._fallback.destroy(),this._compression.destroy()}clear(){return this._used.clear()}getEarliestTimestamp(){return this._used.getEarliestTimestamp()}addEvent(e){return this._used.addEvent(e)}
63async finish(){return await this.ensureWorkerIsLoaded(),this._used.finish()}ensureWorkerIsLoaded(){return this._ensureWorkerIsLoadedPromise}async _ensureWorkerIsLoaded(){try{await this._compression.ensureReady()}catch(e){Fe&&Ue.exception(e,"Failed to load the compression worker, falling back to simple buffer");return}await this._switchToCompressionWorker()}async _switchToCompressionWorker(){const{events:e,hasCheckout:n,waitForCheckout:r}=this._fallback,i=[];for(const s of e)i.push(this._compression.addEvent(s));this._compression.hasCheckout=n,this._compression.waitForCheckout=r,this._used=this._compression;try{await Promise.all(i),this._fallback.clear()}catch(s){Fe&&Ue.exception(s,"Failed to add events when switching buffers.")}}}function C$({useCompression:t,workerUrl:e}){if(t&&window.Worker){const n=T$(e);if(n)return n}return Fe&&Ue.log("Using simple buffer"),new DA}function T$(t){try{const e=t||P$();if(!e)return;Fe&&Ue.log(`Using compression worker${t?` from ${t}`:""}`);const n=new Worker(e);return new k$(n)}catch(e){Fe&&Ue.exception(e,"Failed to create compression worker")}}function P$(){return typeof __SENTRY_EXCLUDE_REPLAY_WORKER__>"u"||!__SENTRY_EXCLUDE_REPLAY_WORKER__?x$():""}function Xx(){try{return"sessionStorage"in It&&!!It.sessionStorage}catch{return!1}}function R$(t){A$(),t.session=void 0}function A$(){if(Xx())try{It.sessionStorage.removeItem(Bx)}catch{}}function jA(t){return t===void 0?!1:Math.random()<t}function Um(t){if(Xx())try{It.sessionStorage.setItem(Bx,JSON.stringify(t))}catch{}}function FA(t){const e=Date.now(),n=t.id||jr(),r=t.started||e,i=t.lastActivity||e,s=t.segmentId||0,l=t.sampled,u=t.previousSessionId,c=t.dirty||!1;return{id:n,started:r,lastActivity:i,segmentId:s,sampled:l,previousSessionId:u,dirty:c}}function I$(t,e){return jA(t)?"session":e?"buffer":!1}function Bk({sessionSampleRate:t,allowBuffering:e,stickySession:n=!1},{previousSessionId:r}={}){const i=I$(t,e),s=FA({sampled:i,previousSessionId:r});return n&&Um(s),s}function L$(){if(!Xx())return null;try{const t=It.sessionStorage.getItem(Bx);if(!t)return null;const e=JSON.parse(t);return Fe&&Ue.infoTick("Loading existing session"),FA(e)}catch{return null}}function F_(t,e,n=+new Date){return t===null||e===void 0||e<0?!0:e===0?!1:t+e<=n}function UA(t,{maxReplayDuration:e,sessionIdleExpire:n,targetTime:r=Date.now()}){return F_(t.started,e,r)||F_(t.lastActivity,n,r)}function zA(t,{sessionIdleExpire:e,maxReplayDuration:n}){return!(!UA(t,{sessionIdleExpire:e,maxReplayDuration:n})||t.sampled==="buffer"&&t.segmentId===0)}function fy({sessionIdleExpire:t,maxReplayDuration:e,previousSessionId:n},r){const i=r.stickySession&&L$();return i?zA(i,{sessionIdleExpire:t,maxReplayDuration:e})?(Fe&&Ue.infoTick("Session in sessionStorage is expired, creating new one..."),Bk(r,{previousSessionId:i.id})):i:(Fe&&Ue.infoTick("Creating new session"),Bk(r,{previousSessionId:n}))}function M$(t){return t.type===Ye.Custom}function Zx(t,e,n){return $A(t,e)?(BA(t,e,n),!0):!1}function N$(t,e,n){return $A(t,e)?BA(t,e,n):Promise.resolve(null)}async function BA(t,e,n){const{eventBuffer:r}=t;if(!r||r.waitForCheckout&&!n)return null;const i=t.recordingMode==="buffer";try{n&&i&&r.clear(),n&&(r.hasCheckout=!0,r.waitForCheckout=!1);const s=t.getOptions(),l=O$(e,s.beforeAddRecordingEvent);return l?await r.addEvent(l):void 0}catch(s){const l=s&&s instanceof Qx,u=l?"addEventSizeExceeded":"addEvent",c=Xe();if(c){const p=l?"buffer_overflow":"internal_sdk_error";c.recordDroppedEvent(p,"replay")}if(l&&i)return r.clear(),r.waitForCheckout=!0,null;t.handleException(s),await t.stop({reason:u})}}function $A(t,e){if(!t.eventBuffer||t.isPaused()||!t.isEnabled())return!1;const n=Kx(e.timestamp);return n+t.timeouts.sessionIdlePause<Date.now()?!1:n>t.getContext().initialTimestamp+t.getOptions().maxReplayDuration?(Fe&&Ue.infoTick(`Skipping event with timestamp ${n} because it is after maxReplayDuration`),!1):!0}function O$(t,e){try{if(typeof e=="function"&&M$(t))return e(t)}catch(n){return Fe&&Ue.exception(n,"An error occurred in the `beforeAddRecordingEvent` callback, skipping the event..."),null}return t}function e0(t){return!t.type}function U_(t){return t.type==="transaction"}function D$(t){return t.type==="replay_event"}function $k(t){return t.type==="feedback"}function j$(t){return(e,n)=>{if(!t.isEnabled()||!e0(e)&&!U_(e))return;const r=n.statusCode;if(!(!r||r<200||r>=300)){if(U_(e)){F$(t,e);return}U$(t,e)}}}function F$(t,e){var r,i;const n=t.getContext();(i=(r=e.contexts)==null?void 0:r.trace)!=null&&i.trace_id&&n.traceIds.size<100&&n.traceIds.add(e.contexts.trace.trace_id)}function U$(t,e){var i;const n=t.getContext();if(e.event_id&&n.errorIds.size<100&&n.errorIds.add(e.event_id),t.recordingMode!=="buffer"||!((i=e.tags)!=null&&i.replayId))return;const{beforeErrorSampling:r}=t.getOptions();typeof r=="function"&&!r(e)||lp(async()=>{try{await t.sendBufferedReplayOrFlush()}catch(s){t.handleException(s)}})}function z$(t){return e=>{!t.isEnabled()||!e0(e)||B$(t,e)}}function B$(t,e){var r,i,s;const n=(s=(i=(r=e.exception)==null?void 0:r.values)==null?void 0:i[0])==null?void 0:s.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 l=Hi({category:"replay.hydrate-error",data:{url:$u()}});cp(t,l)}}function $$(t){const e=Xe();e&&e.on("beforeAddBreadcrumb",n=>q$(t,n))}function q$(t,e){if(!t.isEnabled()||!qA(e))return;const n=W$(e);n&&cp(t,n)}function W$(t){return!qA(t)||["fetch","xhr","sentry.event","sentry.transaction"].includes(t.category)||t.category.startsWith("ui.")?null:t.category==="console"?H$(t):Hi(t)}function H$(t){var i;const e=(i=t.data)==null?void 0:i.arguments;if(!Array.isArray(e)||e.length===0)return Hi(t);let n=!1;const r=e.map(s=>{if(!s)return s;if(typeof s=="string")return s.length>Rh?(n=!0,`${s.slice(0,Rh)}â¦`):s;if(typeof s=="object")try{const l=bi(s,7);return JSON.stringify(l).length>Rh?(n=!0,`${JSON.stringify(l,null,2).slice(0,Rh)}â¦`):l}catch{}return s});return Hi({...t,data:{...t.data,arguments:r,...n?{_meta:{warnings:["CONSOLE_ARG_TRUNCATED"]}}:{}}})}function qA(t){return!!t.category}function V$(t,e){var n,r,i;return t.type||!((r=(n=t.exception)==null?void 0:n.values)!=null&&r.length)?!1:!!((i=e.originalException)!=null&&i.__rrweb__)}function WA(){const t=_t().getPropagationContext().dsc;t&&delete t.replay_id;const e=lr();if(e){const n=Rs(e);delete n.replay_id}}function G$(t,e){t.triggerUserActivity(),t.addUpdate(()=>e.timestamp?(t.throttledAddEvent({type:Ye.Custom,timestamp:e.timestamp*1e3,data:{tag:"breadcrumb",payload:{timestamp:e.timestamp,type:"default",category:"sentry.feedback",data:{feedbackId:e.event_id}}}}),!1):!0)}function Y$(t,e){return t.recordingMode!=="buffer"||e.message===$x||!e.exception||e.type?!1:jA(t.getOptions().errorSampleRate)}function K$(t){return Object.assign((e,n)=>{var l;if(!t.isEnabled()||t.isPaused())return e;if(D$(e))return delete e.breadcrumbs,e;if(!e0(e)&&!U_(e)&&!$k(e))return e;if(!t.checkAndHandleExpiredSession())return WA(),e;if($k(e))return t.flush(),e.contexts.feedback.replay_id=t.getSessionId(),G$(t,e),e;if(V$(e,n)&&!t.getOptions()._experiments.captureExceptions)return Fe&&Ue.log("Ignoring error from rrweb internals",e),null;const i=Y$(t,e);if((i||t.recordingMode==="session")&&(e.tags={...e.tags,replayId:t.getSessionId()}
63),i&&t.recordingMode==="buffer"&&((l=t.session)==null?void 0:l.sampled)==="buffer"){const u=t.session;u.dirty=!0,t.getOptions().stickySession&&Um(u)}return e},{id:"Replay"})}function zm(t,e){return e.map(({type:n,start:r,end:i,name:s,data:l})=>{const u=t.throttledAddEvent({type:Ye.Custom,timestamp:r,data:{tag:"performanceSpan",payload:{op:n,description:s,startTimestamp:r,endTimestamp:i,data:l}}});return typeof u=="string"?Promise.resolve(null):u})}function J$(t){const{from:e,to:n}=t,r=Date.now()/1e3;return{type:"navigation.push",start:r,end:r,name:n,data:{previous:e}}}function Q$(t){return e=>{if(!t.isEnabled())return;const n=J$(e);n!==null&&(t.getContext().urls.push(n.name),t.triggerUserActivity(),t.addUpdate(()=>(zm(t,[n]),!1)))}}function X$(t,e){return Fe&&t.getOptions()._experiments.traceInternals?!1:PF(e,Xe())}function HA(t,e){t.isEnabled()&&e!==null&&(X$(t,e.name)||t.addUpdate(()=>(zm(t,[e]),!0)))}function Bm(t){if(!t)return;const e=new TextEncoder;try{if(typeof t=="string")return e.encode(t).length;if(t instanceof URLSearchParams)return e.encode(t.toString()).length;if(t instanceof FormData){const n=iA(t);return e.encode(n).length}if(t instanceof Blob)return t.size;if(t instanceof ArrayBuffer)return t.byteLength}catch{}}function VA(t){if(!t)return;const e=parseInt(t,10);return isNaN(e)?void 0:e}function Bf(t,e){if(!t)return{headers:{},size:void 0,_meta:{warnings:[e]}};const n={...t._meta},r=n.warnings||[];return n.warnings=[...r,e],t._meta=n,t}function GA(t,e){if(!e)return null;const{startTimestamp:n,endTimestamp:r,url:i,method:s,statusCode:l,request:u,response:c}=e;return{type:t,start:n/1e3,end:r/1e3,name:i,data:{method:s,statusCode:l,request:u,response:c}}}function Rd(t){return{headers:{},size:t,_meta:{warnings:["URL_SKIPPED"]}}}function Mo(t,e,n){if(!e&&Object.keys(t).length===0)return;if(!e)return{headers:t};if(!n)return{headers:t,size:e};const r={headers:t,size:e},{body:i,warnings:s}=Z$(n);return r.body=i,s!=null&&s.length&&(r._meta={warnings:s}),r}function z_(t,e){return Object.entries(t).reduce((n,[r,i])=>{const s=r.toLowerCase();return e.includes(s)&&t[r]&&(n[s]=i),n},{})}function Z$(t){if(!t||typeof t!="string")return{body:t};const e=t.length>Sk,n=e9(t);if(e){const r=t.slice(0,Sk);return n?{body:r,warnings:["MAYBE_JSON_TRUNCATED"]}:{body:`${r}â¦`,warnings:["TEXT_TRUNCATED"]}}if(n)try{return{body:JSON.parse(t)}}catch{}return{body:t}}function e9(t){const e=t[0],n=t[t.length-1];return e==="["&&n==="]"||e==="{"&&n==="}"}function $f(t,e){const n=t9(t);return ws(n,e)}function t9(t,e=It.document.baseURI){if(t.startsWith("http://")||t.startsWith("https://")||t.startsWith(It.location.origin))return t;const n=new URL(t,e);if(n.origin!==new URL(e).origin)return t;const r=n.href;return!t.endsWith("/")&&r.endsWith("/")?r.slice(0,-1):r}async function n9(t,e,n){try{const r=await i9(t,e,n),i=GA("resource.fetch",r);HA(n.replay,i)}catch(r){Fe&&Ue.exception(r,"Failed to capture fetch breadcrumb")}}function r9(t,e){const{input:n,response:r}=e,i=n?oA(n):void 0,s=Bm(i),l=r?VA(r.headers.get("content-length")):void 0;s!==void 0&&(t.data.request_body_size=s),l!==void 0&&(t.data.response_body_size=l)}async function i9(t,e,n){const r=Date.now(),{startTimestamp:i=r,endTimestamp:s=r}=e,{url:l,method:u,status_code:c=0,request_body_size:p,response_body_size:h}=t.data,m=$f(l,n.networkDetailAllowUrls)&&!$f(l,n.networkDetailDenyUrls),g=m?s9(n,e.input,p):Rd(p),_=await o9(m,n,e.response,h);return{startTimestamp:i,endTimestamp:s,url:l,method:u,statusCode:c,request:g,response:_}}function s9({networkCaptureBodies:t,networkRequestHeaders:e},n,r){const i=n?u9(n,e):{};if(!t)return Mo(i,r,void 0);const s=oA(n),[l,u]=sA(s,Ue),c=Mo(i,r,l);return u?Bf(c,u):c}async function o9(t,{networkCaptureBodies:e,networkResponseHeaders:n},r,i){if(!t&&i!==void 0)return Rd(i);const s=r?YA(r.headers,n):{};if(!r||!e&&i!==void 0)return Mo(s,i,void 0);const[l,u]=await l9(r),c=a9(l,{networkCaptureBodies:e,responseBodySize:i,captureDetails:t,headers:s});return u?Bf(c,u):c}function a9(t,{networkCaptureBodies:e,responseBodySize:n,captureDetails:r,headers:i}){try{const s=t!=null&&t.length&&n===void 0?Bm(t):n;return r?e?Mo(i,s,t):Mo(i,s,void 0):Rd(s)}catch(s){return Fe&&Ue.exception(s,"Failed to serialize response body"),Mo(i,n,void 0)}}async function l9(t){const e=c9(t);if(!e)return[void 0,"BODY_PARSE_ERROR"];try{return[await d9(e)]}catch(n){return n instanceof Error&&n.message.indexOf("Timeout")>-1?(Fe&&Ue.warn("Parsing text body from response timed out"),[void 0,"BODY_PARSE_TIMEOUT"]):(Fe&&Ue.exception(n,"Failed to get text body from response"),[void 0,"BODY_PARSE_ERROR"])}}function YA(t,e){const n={};return e.forEach(r=>{t.get(r)&&(n[r]=t.get(r))}),n}
63function u9(t,e){return t.length===1&&typeof t[0]!="string"?qk(t[0],e):t.length===2?qk(t[1],e):{}}function qk(t,e){if(!t)return{};const n=t.headers;return n?n instanceof Headers?YA(n,e):Array.isArray(n)?{}:z_(n,e):{}}function c9(t){try{return t.clone()}catch(e){Fe&&Ue.exception(e,"Failed to clone response body")}}function d9(t){return new Promise((e,n)=>{const r=lp(()=>n(new Error("Timeout while trying to read response body")),500);p9(t).then(i=>e(i),i=>n(i)).finally(()=>clearTimeout(r))})}async function p9(t){return await t.text()}async function h9(t,e,n){try{const r=m9(t,e,n),i=GA("resource.xhr",r);HA(n.replay,i)}catch(r){Fe&&Ue.exception(r,"Failed to capture xhr breadcrumb")}}function f9(t,e){const{xhr:n,input:r}=e;if(!n)return;const i=Bm(r),s=n.getResponseHeader("content-length")?VA(n.getResponseHeader("content-length")):y9(n.response,n.responseType);i!==void 0&&(t.data.request_body_size=i),s!==void 0&&(t.data.response_body_size=s)}function m9(t,e,n){const r=Date.now(),{startTimestamp:i=r,endTimestamp:s=r,input:l,xhr:u}=e,{url:c,method:p,status_code:h=0,request_body_size:m,response_body_size:g}=t.data;if(!c)return null;if(!u||!$f(c,n.networkDetailAllowUrls)||$f(c,n.networkDetailDenyUrls)){const N=Rd(m),T=Rd(g);return{startTimestamp:i,endTimestamp:s,url:c,method:p,statusCode:h,request:N,response:T}}const _=u[wa],x=_?z_(_.request_headers,n.networkRequestHeaders):{},S=z_(aA(u),n.networkResponseHeaders),[w,C]=n.networkCaptureBodies?sA(l,Ue):[void 0],[R,I]=n.networkCaptureBodies?g9(u):[void 0],P=Mo(x,m,w),A=Mo(S,g,R);return{startTimestamp:i,endTimestamp:s,url:c,method:p,statusCode:h,request:C?Bf(P,C):P,response:I?Bf(A,I):A}}function g9(t){const e=[];try{return[t.responseText]}catch(n){e.push(n)}try{return v9(t.response,t.responseType)}catch(n){e.push(n)}return Fe&&Ue.warn("Failed to get xhr response body",...e),[void 0]}function v9(t,e){try{if(typeof t=="string")return[t];if(t instanceof Document)return[t.body.outerHTML];if(e==="json"&&t&&typeof t=="object")return[JSON.stringify(t)];if(!t)return[void 0]}catch(n){return Fe&&Ue.exception(n,"Failed to serialize body",t),[void 0,"BODY_PARSE_ERROR"]}return Fe&&Ue.log("Skipping network body because of body type",t),[void 0,"UNPARSEABLE_BODY_TYPE"]}function y9(t,e){try{const n=e==="json"&&t&&typeof t=="object"?JSON.stringify(t):t;return Bm(n)}catch{return}}function _9(t){const e=Xe();try{const{networkDetailAllowUrls:n,networkDetailDenyUrls:r,networkCaptureBodies:i,networkRequestHeaders:s,networkResponseHeaders:l}=t.getOptions(),u={replay:t,networkDetailAllowUrls:n,networkDetailDenyUrls:r,networkCaptureBodies:i,networkRequestHeaders:s,networkResponseHeaders:l};e&&e.on("beforeAddBreadcrumb",(c,p)=>b9(u,c,p))}catch{}}function b9(t,e,n){if(e.data)try{x9(e)&&w9(n)&&(f9(e,n),h9(e,n,t)),S9(e)&&E9(n)&&(r9(e,n),n9(e,n,t))}catch(r){Fe&&Ue.exception(r,"Error when enriching network breadcrumb")}}function x9(t){return t.category==="xhr"}function S9(t){return t.category==="fetch"}function w9(t){return t==null?void 0:t.xhr}function E9(t){return t==null?void 0:t.response}function k9(t){const e=Xe();tA(n$(t)),Nm(Q$(t)),$$(t),_9(t);const n=K$(t);Yj(n),e&&(e.on("beforeSendEvent",z$(t)),e.on("afterSendEvent",j$(t)),e.on("createDsc",r=>{const i=t.getSessionId();i&&t.isEnabled()&&t.recordingMode==="session"&&t.checkAndHandleExpiredSession()&&(r.replay_id=i)}),e.on("spanStart",r=>{t.lastActiveSpan=r}),e.on("spanEnd",r=>{t.lastActiveSpan=r}),e.on("beforeSendFeedback",async(r,i)=>{var l;const s=t.getSessionId();i!=null&&i.includeReplay&&t.isEnabled()&&s&&((l=r.contexts)!=null&&l.feedback)&&(r.contexts.feedback.source==="api"&&await t.sendBufferedReplayOrFlush(),r.contexts.feedback.replay_id=s)}),e.on("openFeedbackWidget",async()=>{await t.sendBufferedReplayOrFlush()}))}async function C9(t){try{return Promise.all(zm(t,[T9(It.performance.memory)]))}catch{return[]}}function T9(t){const{jsHeapSizeLimit:e,totalJSHeapSize:n,usedJSHeapSize:r}=t,i=Date.now()/1e3;return{type:"memory",name:"memory",start:i,end:i,data:{memory:{jsHeapSizeLimit:e,totalJSHeapSize:n,usedJSHeapSize:r}}}}function P9(t,e,n){return NF(t,e,{...n,setTimeoutImpl:lp})}const Kr=it.navigator;function R9(){return/iPhone|iPad|iPod/i.test((Kr==null?void 0:Kr.userAgent)??"")||/Macintosh/i.test((Kr==null?void 0:Kr.userAgent)??"")&&(Kr!=null&&Kr.maxTouchPoints)&&(Kr==null?void 0:Kr.maxTouchPoints)>1?{sampling:{mousemove:!1}}:{}}function A9(t){let e=!1;return(n,r)=>{if(!t.checkAndHandleExpiredSession()){Fe&&Ue.warn("Received replay event after session expired.");return}const i=r||!e;e=!0,I9(n),t.clickDetector&&Q3(t.clickDetector,n),t.addUpdate(()=>{if(t.recordingMode==="buffer"&&i&&t.setInitialState(),!Zx(t,n,i))return!0;
63if(!i)return!1;const s=t.session;if(M9(t,i),t.recordingMode==="buffer"&&s&&t.eventBuffer&&!s.dirty){const l=t.eventBuffer.getEarliestTimestamp();l&&(Fe&&Ue.log(`Updating session start time to earliest event in buffer to ${new Date(l)}`),s.started=l,t.getOptions().stickySession&&Um(s))}return s!=null&&s.previousSessionId||t.recordingMode==="session"&&t.flush(),!0})}}function I9(t){const e=t.data;if(!(t.type!==Ye.IncrementalSnapshot||!e||typeof e!="object"||!("source"in e)||e.source!==$e.Mutation||!("attributes"in e)||!Array.isArray(e.attributes)))for(const n of e.attributes){const r=Ei.mirror.getNode(n.id),i=r&&Ei.mirror.getMeta(r);if((i==null?void 0:i.type)===Fm.Element)for(const[s,l]of Object.entries(n.attributes))l===null?delete i.attributes[s]:i.attributes[s]=l}}function L9(t){const e=t.getOptions();return{type:Ye.Custom,timestamp:Date.now(),data:{tag:"options",payload:{shouldRecordCanvas:t.isRecordingCanvas(),sessionSampleRate:e.sessionSampleRate,errorSampleRate:e.errorSampleRate,useCompressionOption:e.useCompression,blockAllMedia:e.blockAllMedia,maskAllText:e.maskAllText,maskAllInputs:e.maskAllInputs,useCompression:t.eventBuffer?t.eventBuffer.type==="worker":!1,networkDetailHasUrls:e.networkDetailAllowUrls.length>0,networkCaptureBodies:e.networkCaptureBodies,networkRequestHasHeaders:e.networkRequestHeaders.length>0,networkResponseHasHeaders:e.networkResponseHeaders.length>0}}}}function M9(t,e){var n;!e||((n=t.session)==null?void 0:n.segmentId)!==0||Zx(t,L9(t),!1)}function N9(t){if(!t)return null;try{return t.nodeType===t.ELEMENT_NODE?t:t.parentElement}catch{return null}}function O9(t,e,n,r){return qo(aR(t,Ex(t),r,n),[[{type:"replay_event"},t],[{type:"replay_recording",length:typeof e=="string"?new TextEncoder().encode(e).length:e.length},e]])}function D9({recordingData:t,headers:e}){let n;const r=`${JSON.stringify(e)} 64`;if(typeof t=="string")n=`${r}${t}`;else{const s=new TextEncoder().encode(r);n=new Uint8Array(s.length+t.length),n.set(s),n.set(t,s.length)}return n}async function j9({client:t,scope:e,replayId:n,event:r}){const i=typeof t._integrations=="object"&&t._integrations!==null&&!Array.isArray(t._integrations)?Object.keys(t._integrations):void 0,s={event_id:n,integrations:i};t.emit("preprocessEvent",r,s);
64const l=await pR(t.getOptions(),r,s,e,t,Ur());if(!l)return null;t.emit("postprocessEvent",l,s),l.platform=l.platform||"javascript";const u=t.getSdkMetadata(),{name:c,version:p,settings:h}=(u==null?void 0:u.sdk)||{};return l.sdk={...l.sdk,name:c||"sentry.javascript.unknown",version:p||"0.0.0",settings:h},l}async function F9({recordingData:t,replayId:e,segmentId:n,eventContext:r,timestamp:i,session:s}){const l=D9({recordingData:t,headers:{segment_id:n}}),{urls:u,errorIds:c,traceIds:p,initialTimestamp:h}=r,m=Xe(),g=_t(),_=m==null?void 0:m.getTransport(),x=m==null?void 0:m.getDsn();if(!m||!_||!x||!s.sampled)return Promise.resolve({});const S={type:hB,replay_start_timestamp:h/1e3,timestamp:i/1e3,error_ids:c,trace_ids:p,urls:u,replay_id:e,segment_id:n,replay_type:s.sampled},w=await j9({scope:g,client:m,replayId:e,event:S});if(!w)return m.recordDroppedEvent("event_processor","replay"),Fe&&Ue.log("An event processor returned `null`, will not send event."),Promise.resolve({});delete w.sdkProcessingMetadata;const C=O9(w,l,x,m.getOptions().tunnel);let R;try{R=await _.send(C)}catch(P){const A=new Error($x);try{A.cause=P}catch{}throw A}const I=ER({},R);if(wR(I,"replay"))throw new t0(I);if(typeof R.statusCode=="number"&&(R.statusCode<200||R.statusCode>=300))throw new KA(R.statusCode);return R}class KA extends Error{constructor(e){super(`Transport returned status code ${e}`)}}class t0 extends Error{constructor(e){super("Rate limit hit"),this.rateLimits=e}}class Wk extends Error{constructor(){super("Session is too long, not sending replay")}}async function JA(t,e={count:0,interval:_B}){const{recordingData:n,onError:r}=t;if(n.length)try{return await F9(t),!0}catch(i){if(i instanceof KA||i instanceof t0)throw i;if(fR("Replays",{_retryCount:e.count}),r&&r(i),e.count>=bB){const s=new Error(`${$x} - max retries exceeded`);try{s.cause=i}catch{}throw s}return e.interval*=++e.count,new Promise((s,l)=>{lp(async()=>{try{await JA(t,e),s(!0)}catch(u){l(u)}},e.interval)})}}const QA="__THROTTLED",U9="__SKIPPED";function z9(t,e,n){const r=new Map,i=u=>{const c=u-n;r.forEach((p,h)=>{h<c&&r.delete(h)})},s=()=>[...r.values()].reduce((u,c)=>u+c,0);let l=!1;return(...u)=>{const c=Math.floor(Date.now()/1e3);if(i(c),s()>=e){const h=l;return l=!0,h?U9:QA}l=!1;const p=r.get(c)||0;return r.set(c,p+1),t(...u)}}class B9{constructor({options:e,recordingOptions:n}){this.eventBuffer=null,this.performanceEntries=[],this.replayPerformanceEntries=[],this.recordingMode="session",this.timeouts={sessionIdlePause:fB,sessionIdleExpire:mB},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=e,this._debouncedFlush=P9(()=>this._flush(),this._options.flushMinDelay,{maxWait:this._options.flushMaxDelay}),this._throttledAddEvent=z9((l,u)=>N$(this,l,u),300,5);const{slowClickTimeout:r,slowClickIgnoreSelectors:i}=this.getOptions(),s=r?{threshold:Math.min(xB,r),timeout:r,scrollTimeout:SB,ignoreSelector:i?i.join(","):""}:void 0;if(s&&(this.clickDetector=new G3(this,s)),Fe){const l=e._experiments;Ue.setConfig({captureExceptions:!!l.captureExceptions,traceInternals:!!l.traceInternals})}this._handleVisibilityChange=()=>{It.document.visibilityState==="visible"?this._doChangeToForegroundTasks():this._doChangeToBackgroundTasks()},this._handleWindowBlur=()=>{const l=Hi({category:"ui.blur"});this._doChangeToBackgroundTasks(l)},this._handleWindowFocus=()=>{const l=Hi({category:"ui.focus"});this._doChangeToForegroundTasks(l)},this._handleKeyboardEvent=l=>{o$(this,l)}}getContext(){return this._context}isEnabled(){return this._isEnabled}isPaused(){return this._isPaused}isRecordingCanvas(){return!!this._canvas}getOptions(){return this._options}handleException(e){Fe&&Ue.exception(e),this._options.onError&&this._options.onError(e)}initializeSampling(e){const{errorSampleRate:n,sessionSampleRate:r}=this._options,i=n<=0&&r<=0;if(this._requiresManualStart=i,!i){if(this._initializeSessionForSampling(e),!this.session){Fe&&Ue.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",Fe&&Ue.infoTick(`Starting replay in ${this.recordingMode} mode`),this._initializeRecording())}}
64start(){if(this._isEnabled&&this.recordingMode==="session"){Fe&&Ue.log("Recording is already in progress");return}if(this._isEnabled&&this.recordingMode==="buffer"){Fe&&Ue.log("Buffering is in progress, call `flush()` to save the replay");return}Fe&&Ue.infoTick("Starting replay in session mode"),this._updateUserActivity();const e=fy({maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire},{stickySession:this._options.stickySession,sessionSampleRate:1,allowBuffering:!1});this.session=e,this.recordingMode="session",this._initializeRecording()}startBuffering(){if(this._isEnabled){Fe&&Ue.log("Buffering is in progress, call `flush()` to save the replay");return}Fe&&Ue.infoTick("Starting replay in buffer mode");const e=fy({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration},{stickySession:this._options.stickySession,sessionSampleRate:0,allowBuffering:!0});this.session=e,this.recordingMode="buffer",this._initializeRecording()}startRecording(){try{const e=this._canvas;this._stopRecording=Ei({...this._recordingOptions,...this.recordingMode==="buffer"?{checkoutEveryNms:yB}:this._options._experiments.continuousCheckout&&{checkoutEveryNms:Math.max(36e4,this._options._experiments.continuousCheckout)},emit:A9(this),...R9(),onMutation:this._onMutationHandler.bind(this),...e?{recordCanvas:e.recordCanvas,getCanvasManager:e.getCanvasManager,sampling:e.sampling,dataURLOptions:e.dataURLOptions}:{}})}catch(e){this.handleException(e)}}stopRecording(){try{return this._stopRecording&&(this._stopRecording(),this._stopRecording=void 0),!0}catch(e){return this.handleException(e),!1}}async stop({forceFlush:e=!1,reason:n}={}){var r;if(this._isEnabled){this._isEnabled=!1,this.recordingMode="buffer";try{Fe&&Ue.log(`Stopping Replay${n?` triggered by ${n}`:""}`),WA(),this._removeListeners(),this.stopRecording(),this._debouncedFlush.cancel(),e&&await this._flush({force:!0}),(r=this.eventBuffer)==null||r.destroy(),this.eventBuffer=null,R$(this)}catch(i){this.handleException(i)}}}pause(){this._isPaused||(this._isPaused=!0,this.stopRecording(),Fe&&Ue.log("Pausing replay"))}resume(){!this._isPaused||!this._checkSession()||(this._isPaused=!1,this.startRecording(),Fe&&Ue.log("Resuming replay"))}async sendBufferedReplayOrFlush({continueRecording:e=!0}={}){if(this.recordingMode==="session")return this.flushImmediate();const n=Date.now();Fe&&Ue.log("Converting buffer to session"),await this.flushImmediate();const r=this.stopRecording();!e||!r||this.recordingMode!=="session"&&(this.recordingMode="session",this.session&&(this.session.dirty=!1,this._updateUserActivity(n),this._updateSessionActivity(n),this._maybeSaveSession()),this.startRecording())}addUpdate(e){const n=e();this.recordingMode==="buffer"||!this._isEnabled||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(e){var n,r;if(!(e&&((n=this.session)==null?void 0:n.sampled)===!1))return(r=this.session)==null?void 0:r.id}checkAndHandleExpiredSession(){var e;if(this._lastActivity&&F_(this._lastActivity,this.timeouts.sessionIdlePause)&&((e=this.session)==null?void 0:e.sampled)==="session"){this.pause();return}return!!this._checkSession()}setInitialState(){const e=`${It.location.pathname}${It.location.hash}${It.location.search}`,n=`${It.location.origin}${e}`;this.performanceEntries=[],this.replayPerformanceEntries=[],this._clearContext(),this._context.initialUrl=n,this._context.initialTimestamp=Date.now(),this._context.urls.push(n)}throttledAddEvent(e,n){const r=this._throttledAddEvent(e,n);if(r===QA){const i=Hi({category:"replay.throttled"});this.addUpdate(()=>!Zx(this,{type:z3,timestamp:i.timestamp||0,data:{tag:"breadcrumb",payload:i,metric:!0}}))}return r}getCurrentRoute(){const e=this.lastActiveSpan||lr(),n=e&&Mn(e),i=(n&&vt(n).data||{})[Wi];if(!(!n||!i||!["route","custom"].includes(i)))return vt(n).description}_initializeRecording(){this.setInitialState(),this._updateSessionActivity(),this.eventBuffer=C$({useCompression:this._options.useCompression,workerUrl:this._options.workerUrl}),this._removeListeners(),this._addListeners(),this._isEnabled=!0,this._isPaused=!1,this.startRecording()}_initializeSessionForSampling(e){const n=this._options.errorSampleRate>0,r=fy({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration,previousSessionId:e},{stickySession:this._options.stickySession,sessionSampleRate:this._options.sessionSampleRate,allowBuffering:n});this.session=r}_checkSession(){if(!this.session)return!1;const e=this.session;return zA(e,{sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration})?(this._refreshSession(e),!1):!0}async _refreshSession(e){this._isEnabled&&(await this.stop({reason:"refresh session"}),this.initializeSampling(e.id))}_addListeners(){try{It.document.addEventListener("visibilitychange",this._handleVisibilityChange),It.addEventListener("blur",this._handleWindowBlur),It.addEventListener("focus",this._handleWindowFocus),It.addEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.addListeners(),this._hasInitializedCoreListeners||(k9(this),this._hasInitializedCoreListeners=!0)}catch(e){this.handleException(e)}this._performanceCleanupCallback=_$(this)}_removeListeners(){try{It.document.removeEventListener("visibilitychange",this._handleVisibilityChange),It.removeEventListener("blur",this._handleWindowBlur),It.removeEventListener("focus",this._handleWindowFocus),It.removeEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.removeListeners(),this._performanceCleanupCallback&&this._performanceCleanupCallback()}catch(e){this.handleException(e)}}
64_doChangeToBackgroundTasks(e){!this.session||UA(this.session,{maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire})||(e&&this._createCustomBreadcrumb(e),this.conditionalFlush())}_doChangeToForegroundTasks(e){if(!this.session)return;if(!this.checkAndHandleExpiredSession()){Fe&&Ue.log("Document has become active, but session has expired");return}e&&this._createCustomBreadcrumb(e)}_updateUserActivity(e=Date.now()){this._lastActivity=e}_updateSessionActivity(e=Date.now()){this.session&&(this.session.lastActivity=e,this._maybeSaveSession())}_createCustomBreadcrumb(e){this.addUpdate(()=>{this.throttledAddEvent({type:Ye.Custom,timestamp:e.timestamp||0,data:{tag:"breadcrumb",payload:e}})})}_addPerformanceEntries(){let e=c$(this.performanceEntries).concat(this.replayPerformanceEntries);if(this.performanceEntries=[],this.replayPerformanceEntries=[],this._requiresManualStart){const n=this._context.initialTimestamp/1e3;e=e.filter(r=>r.start>=n)}return Promise.all(zm(this,e))}_clearContext(){this._context.errorIds.clear(),this._context.traceIds.clear(),this._context.urls=[]}_updateInitialTimestampFromEventBuffer(){const{session:e,eventBuffer:n}=this;if(!e||!n||this._requiresManualStart||e.segmentId)return;const r=n.getEarliestTimestamp();r&&r<this._context.initialTimestamp&&(this._context.initialTimestamp=r)}_popEventContext(){const e={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(),e}async _runFlush(){var n;const e=this.getSessionId();if(!this.session||!this.eventBuffer||!e){Fe&&Ue.error("No session or eventBuffer found to flush.");return}if(await this._addPerformanceEntries(),!!((n=this.eventBuffer)!=null&&n.hasEvents)&&(await C9(this),!!this.eventBuffer&&e===this.getSessionId()))try{this._updateInitialTimestampFromEventBuffer();const r=Date.now();if(r-this._context.initialTimestamp>this._options.maxReplayDuration+3e4)throw new Wk;const i=this._popEventContext(),s=this.session.segmentId++;this._maybeSaveSession();const l=await this.eventBuffer.finish();await JA({replayId:e,recordingData:l,segmentId:s,eventContext:i,session:this.session,timestamp:r,onError:u=>this.handleException(u)})}catch(r){this.handleException(r),this.stop({reason:"sendReplay"});const i=Xe();if(i){let s;r instanceof t0?s="ratelimit_backoff":r instanceof Wk?s="invalid":s="send_error",i.recordDroppedEvent(s,"replay")}}}async _flush({force:e=!1}={}){if(!this._isEnabled&&!e)return;if(!this.checkAndHandleExpiredSession()){Fe&&Ue.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,l=i>this._options.maxReplayDuration+5e3;if(s||l){Fe&&Ue.log(`Session duration (${Math.floor(i/1e3)}s) is too ${s?"short":"long"}, not sending replay.`),s&&this._debouncedFlush();return}const u=this.eventBuffer;u&&this.session.segmentId===0&&!u.hasCheckout&&Fe&&Ue.log("Flushing initial segment without checkout.");const c=!!this._flushLock;this._flushLock||(this._flushLock=this._runFlush());try{await this._flushLock}catch(p){this.handleException(p)}finally{this._flushLock=void 0,c&&this._debouncedFlush()}}_maybeSaveSession(){this.session&&this._options.stickySession&&Um(this.session)}_onMutationHandler(e){const{ignoreMutations:n}=this._options._experiments;if(n!=null&&n.length&&e.some(u=>{const c=N9(u.target),p=n.join(",");return c==null?void 0:c.matches(p)}))return!1;const r=e.length,i=this._options.mutationLimit,s=this._options.mutationBreadcrumbLimit,l=i&&r>i;if(r>s||l){const u=Hi({category:"replay.mutations",data:{count:r,limit:l}});this._createCustomBreadcrumb(u)}return l?(this.stop({reason:"mutationLimit",forceFlush:this.recordingMode==="session"}),!1):!0}}function Mc(t,e){return[...t,...e].join(",")}function $9({mask:t,unmask:e,block:n,unblock:r,ignore:i}){const s=["base","iframe[srcdoc]:not([src])"],l=Mc(t,[".sentry-mask","[data-sentry-mask]"]),u=Mc(e,[]);return{maskTextSelector:l,unmaskTextSelector:u,blockSelector:Mc(n,[".sentry-block","[data-sentry-block]",...s]),unblockSelector:Mc(r,[]),ignoreSelector:Mc(i,[".sentry-ignore","[data-sentry-ignore]",'
64input[type="file"]'])}}function q9({el:t,key:e,maskAttributes:n,maskAllText:r,privacyOptions:i,value:s}){return!r||i.unmaskTextSelector&&t.matches(i.unmaskTextSelector)?s:n.includes(e)||e==="value"&&t.tagName==="INPUT"&&["submit","button"].includes(t.getAttribute("type")||"")?s.replace(/[\S]/g,"*"):s}const Hk='img,image,svg,video,object,picture,embed,map,audio,link[rel="icon"],link[rel="apple-touch-icon"]',W9=["content-length","content-type","accept"],H9=Symbol.for("sentry__originalRequestBody");let Vk=!1,Gk=!1;function V9(){if(typeof Request>"u"||Gk)return;const t=Request;try{const e=function(n,r){const i=new t(n,r);return(r==null?void 0:r.body)!=null&&(i[H9]=r.body),i};e.prototype=t.prototype,it.Request=e,Gk=!0}catch{}}const G9=(t=>new Y9(t));class Y9{constructor({flushMinDelay:e=gB,flushMaxDelay:n=vB,minReplayDuration:r=wB,maxReplayDuration:i=wk,stickySession:s=!0,useCompression:l=!0,workerUrl:u,_experiments:c={},maskAllText:p=!0,maskAllInputs:h=!0,blockAllMedia:m=!0,mutationBreadcrumbLimit:g=750,mutationLimit:_=1e4,slowClickTimeout:x=7e3,slowClickIgnoreSelectors:S=[],networkDetailAllowUrls:w=[],networkDetailDenyUrls:C=[],networkCaptureBodies:R=!0,networkRequestHeaders:I=[],networkResponseHeaders:P=[],mask:A=[],maskAttributes:N=["title","placeholder","aria-label"],unmask:T=[],block:L=[],unblock:O=[],ignore:j=[],maskFn:B,beforeAddRecordingEvent:q,beforeErrorSampling:G,onError:W,attachRawBodyFromRequest:ie=!1}={}){this.name="Replay";const se=$9({mask:A,unmask:T,block:L,unblock:O,ignore:j});if(this._recordingOptions={maskAllInputs:h,maskAllText:p,maskInputOptions:{password:!0},maskTextFn:B,maskInputFn:B,maskAttributeFn:(de,$,Z)=>q9({maskAttributes:N,maskAllText:p,privacyOptions:se,key:de,value:$,el:Z}),...se,slimDOMOptions:"all",inlineStylesheet:!0,inlineImages:!1,collectFonts:!0,errorHandler:de=>{try{de.__rrweb__=!0}catch{}},recordCrossOriginIframes:!!c.recordCrossOriginIframes},this._initialOptions={flushMinDelay:e,flushMaxDelay:n,minReplayDuration:Math.min(r,EB),maxReplayDuration:Math.min(i,wk),stickySession:s,useCompression:l,workerUrl:u,blockAllMedia:m,maskAllInputs:h,maskAllText:p,mutationBreadcrumbLimit:g,mutationLimit:_,slowClickTimeout:x,slowClickIgnoreSelectors:S,networkDetailAllowUrls:w,networkDetailDenyUrls:C,networkCaptureBodies:R,networkRequestHeaders:Yk(I),networkResponseHeaders:Yk(P),beforeAddRecordingEvent:q,beforeErrorSampling:G,onError:W,attachRawBodyFromRequest:ie,_experiments:c},this._initialOptions.blockAllMedia&&(this._recordingOptions.blockSelector=this._recordingOptions.blockSelector?`${this._recordingOptions.blockSelector},${Hk}`:Hk,this._recordingOptions.ignoreCSSAttributes=new Set(["background-image"])),this._isInitialized&&E_())throw new Error("Multiple Sentry Session Replay instances are not supported");this._isInitialized=!0}get _isInitialized(){return Vk}set _isInitialized(e){Vk=e}afterAllSetup(e){!E_()||this._replay||(this._initialOptions.attachRawBodyFromRequest&&V9(),this._setup(e),this._initialize(e))}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(e){return this._replay?this._replay.isEnabled()?this._replay.sendBufferedReplayOrFlush(e):(this._replay.start(),Promise.resolve()):Promise.resolve()}getReplayId(e){var n;if((n=this._replay)!=null&&n.isEnabled())return this._replay.getSessionId(e)}getRecordingMode(){var e;if((e=this._replay)!=null&&e.isEnabled())return this._replay.recordingMode}_initialize(e){this._replay&&(this._maybeLoadFromReplayCanvasIntegration(e),this._replay.initializeSampling())}_setup(e){const n=K9(this._initialOptions,e);this._replay=new B9({options:n,recordingOptions:this._recordingOptions})}_maybeLoadFromReplayCanvasIntegration(e){try{const n=e.getIntegrationByName("ReplayCanvas");if(!n)return;this._replay._canvas=n.getOptions()}catch{}}}function K9(t,e){const n=e.getOptions(),r={sessionSampleRate:0,errorSampleRate:0,...t},i=Ha(n.replaysSessionSampleRate),s=Ha(n.replaysOnErrorSampleRate);return i==null&&s==null&&Fo(()=>{console.warn("Replay is disabled because neither `replaysSessionSampleRate` nor `replaysOnErrorSampleRate` are set.")}),i!=null&&(r.sessionSampleRate=i),s!=null&&(r.errorSampleRate=s),r}function Yk(t){return[...W9,...t.map(e=>e.toLowerCase())]}function J9(t){return t.split(",").some(e=>e.trim().startsWith("sentry-"))}function XA(t){try{return new URL(t,Je.location.origin).href}catch{return}}function Q9(t){return t.entryType==="resource"&&"initiatorType"in t&&typeof t.nextHopProtocol=="string"&&(t.initiatorType==="fetch"||t.initiatorType==="xmlhttprequest")}function ZA(t){try{return new Headers(t)}catch{return}}const Kk=new WeakMap,my=new Map,eI={traceFetch:!0,traceXHR:!0,enableHTTPTimings:!0,trackFetchStreamPerformance:!1};function X9(t,e){const{traceFetch:n,traceXHR:r,trackFetchStreamPerformance:i,shouldCreateSpanForRequest:s,enableHTTPTimings:l,tracePropagationTargets:u,onRequestSpanStart:c,onRequestSpanEnd:p}={...eI,...e},h=typeof s=="function"?s:x=>!0,m=x=>e5(x,u),g={},_=t.getOptions().propagateTraceparent;n&&(t.addEventProcessor(x=>(x.type==="transaction"&&x.spans&&x.spans.forEach(S=>{if(S.op==="http.client"){const w=my.get(S.span_id);w&&(S.timestamp=w/1e3,my.delete(S.span_id))}}),x)),i&&y2(x=>{if(x.response){const S=Kk.get(x.response);S&&x.endTimestamp&&my.set(S,x.endTimestamp)}}),FR(x=>{const S=l2(x,h,m,g,{propagateTraceparent:_,onRequestSpanEnd:p});if(x.response&&x.fetchData.__span&&Kk.set(x.response,x.fetchData.__span),S){const w=XA(x.fetchData.url),C=w?za(w).host:void 0;S.setAttributes({"http.url":w?Io(w):void 0,"server.address":C}),l&&Jk(S,t),c==null||c(S,{headers:x.headers})}})),r&&rA(x=>{var w;const S=t5(x,h,m,g,_,p);S&&(l&&Jk(S,t),c==null||c(S,{headers:ZA((w=x.xhr.__sentry_xhr_v3__)==null?void 0:w.request_headers)}))})}const Z9=300;function Jk(t,e){const{url:n}=vt(t).data;
64if(!n||typeof n!="string")return;let r=()=>void setTimeout(i);if(Va(e)){const s=t.end.bind(t);t.end=l=>{const u=l??fn();let c=!1;const p=()=>{c||(c=!0,setTimeout(i),s(u),clearTimeout(h))};r=p;const h=setTimeout(p,Z9)}}const i=Tu("resource",({entries:s})=>{s.forEach(l=>{Q9(l)&&l.name.endsWith(n)&&(t.setAttributes(ZR(l)),r())})})}function e5(t,e){const n=$u();if(n){let r,i;try{r=new URL(t,n),i=new URL(n).origin}catch{return!1}const s=r.origin===i;return e?ws(r.toString(),e)||s&&ws(r.pathname,e):s}else{const r=!!t.match(/^\/(?!\/)/);return e?ws(t,e):r}}function t5(t,e,n,r,i,s){const l=t.xhr,u=l==null?void 0:l[wa];if(!l||l.__sentry_own_request__||!u)return;const{url:c,method:p}=u,h=wi()&&e(c);if(t.endTimestamp){const C=l.__sentry_xhr_span_id__;if(!C)return;const R=r[C];R&&(h&&u.status_code!==void 0&&(DP(R,u.status_code),R.end(),s==null||s(R,{headers:ZA(aA(l)),error:t.error})),delete r[C]);return}const m=XA(c),g=za(m||c),_=Io(TF(c)),x=!!lr(),S=h&&x?tl({name:`${p} ${_}`,attributes:{url:Io(c),type:"xhr","http.method":p,"http.url":m?Io(m):void 0,"server.address":g==null?void 0:g.host,[gn]:"auto.http.browser",[Ci]:"http.client",...(g==null?void 0:g.search)&&{"http.query":g==null?void 0:g.search},...(g==null?void 0:g.hash)&&{"http.fragment":g==null?void 0:g.hash}}}):new Ki;l.__sentry_xhr_span_id__=S.spanContext().spanId,r[l.__sentry_xhr_span_id__]=S,n(c)&&n5(l,wi()&&x?S:void 0,i);const w=Xe();return w&&w.emit("beforeOutgoingRequestSpan",S,t),S}function n5(t,e,n){const{"sentry-trace":r,baggage:i,traceparent:s}=LR({span:e,propagateTraceparent:n});r&&r5(t,r,i,s)}function r5(t,e,n,r){var s;const i=(s=t.__sentry_xhr_v3__)==null?void 0:s.request_headers;if(!(i!=null&&i["sentry-trace"]||!t.setRequestHeader))try{if(t.setRequestHeader("sentry-trace",e),r&&!(i!=null&&i.traceparent)&&t.setRequestHeader("traceparent",r),n){const l=i==null?void 0:i.baggage;(!l||!J9(l))&&t.setRequestHeader("baggage",n)}}catch{}}function i5(){Je.document?Je.document.addEventListener("visibilitychange",()=>{const t=lr();if(!t)return;const e=Mn(t);if(Je.document.hidden&&e){const n="cancelled",{op:r,status:i}=vt(e);ar&&ae.log(`[Tracing] Transaction: ${n} -> since tab moved to the background, op: ${r}`),i||e.setStatus({code:wn,message:n}),e.setAttribute("sentry.cancellation_reason","document.hidden"),e.end()}}):ar&&ae.warn("[Tracing] Could not set up background tab detection due to lack of global document")}const s5=3600,tI="sentry_previous_trace",o5="sentry.previous_trace";function a5(t,{linkPreviousTrace:e,consistentTraceSampling:n}){const r=e==="session-storage";let i=r?c5():void 0;t.on("spanStart",l=>{if(Mn(l)!==l)return;const u=_t().getPropagationContext();i=l5(i,l,u),r&&u5(i)});let s=!0;n&&t.on("beforeSampling",l=>{if(!i)return;const u=_t(),c=u.getPropagationContext();if(s&&c.parentSpanId){s=!1;return}u.setPropagationContext({...c,dsc:{...c.dsc,sample_rate:String(i.sampleRate),sampled:String(B_(i.spanContext))},sampleRand:i.sampleRand}),l.parentSampled=B_(i.spanContext),l.parentSampleRate=i.sampleRate,l.spanAttributes={...l.spanAttributes,[NP]:i.sampleRate}})}function l5(t,e,n){const r=vt(e);function i(){var u,c;try{return Number((u=n.dsc)==null?void 0:u.sample_rate)??Number((c=r.data)==null?void 0:c[xx])}catch{return 0}}const s={spanContext:e.spanContext(),startTimestamp:r.start_timestamp,sampleRate:i(),sampleRand:n.sampleRand};if(!t)return s;const l=t.spanContext;return l.traceId===r.trace_id?t:(Date.now()/1e3-t.startTimestamp<=s5&&(ar&&ae.log(`Adding previous_trace \`${JSON.stringify(l)}\` link to span \`${JSON.stringify({op:r.op,...e.spanContext()})}\``),e.addLink({context:l,attributes:{[xD]:"previous_trace"}}),e.setAttribute(o5,`${l.traceId}-${l.spanId}-${B_(l)?1:0}`)),s)}function u5(t){try{Je.sessionStorage.setItem(tI,JSON.stringify(t))}catch(e){ar&&ae.warn("Could not store previous trace in sessionStorage",e)}}function c5(){var t;try{const e=(t=Je.sessionStorage)==null?void 0:t.getItem(tI);return JSON.parse(e)}catch{return}}function B_(t){return t.traceFlags===1}const d5="BrowserTracing",p5=/Googlebot|Google-InspectionTool|Storebot-Google|Bingbot|Slurp|DuckDuckBot|Baiduspider|YandexBot|Facebot|facebookexternalhit|LinkedInBot|Twitterbot|Applebot/i;function h5(){const t=Je.navigator;return t!=null&&t.userAgent?p5.test(t.userAgent):!1}const f5={...af,instrumentNavigation:!0,instrumentPageLoad:!0,markBackgroun
64dSpan:!0,enableLongTask:!0,enableLongAnimationFrame:!0,enableInp:!0,ignoreResourceSpans:[],ignorePerformanceApiSpans:[],detectRedirects:!0,linkPreviousTrace:"in-memory",consistentTraceSampling:!1,enableReportPageLoaded:!1,_experiments:{},...eI},m5=((t={})=>{"enableElementTiming"in t&&Fo(()=>{console.warn("[Sentry] `enableElementTiming` is deprecated and no longer has any effect. Use the standalone `elementTimingIntegration` instead.")});const e={name:void 0,source:void 0},n=Je.document,{enableInp:r,enableLongTask:i,enableLongAnimationFrame:s,_experiments:{enableInteractions:l,enableStandaloneClsSpans:u,enableStandaloneLcpSpans:c},beforeStartSpan:p,idleTimeout:h,finalTimeout:m,childSpanTimeout:g,markBackgroundSpan:_,traceFetch:x,traceXHR:S,trackFetchStreamPerformance:w,shouldCreateSpanForRequest:C,enableHTTPTimings:R,ignoreResourceSpans:I,ignorePerformanceApiSpans:P,instrumentPageLoad:A,instrumentNavigation:N,detectRedirects:T,linkPreviousTrace:L,consistentTraceSampling:O,enableReportPageLoaded:j,onRequestSpanStart:B,onRequestSpanEnd:q}={...f5,...t},G=h5();let W,ie,se;function de($,Z,Q=!0){const D=Z.op==="pageload",Y=Z.name,le=p?p(Z):Z,me=le.attributes||{};if(Y!==le.name&&(me[Wi]="custom",le.attributes=me),!Q){const je=Za();tl({...le,startTime:je}).end(je);return}e.name=le.name,e.source=me[Wi];const ge=cR(le,{idleTimeout:h,finalTimeout:m,childSpanTimeout:g,disableAutoFinish:D,beforeSpanEnd:je=>{W==null||W();const Le=Va($);PU(je,{recordClsOnPageloadSpan:!Le&&!u,recordLcpOnPageloadSpan:!Le&&!c,ignoreResourceSpans:I,ignorePerformanceApiSpans:P,spanStreamingEnabled:Le}),Zk($,void 0);const qe=_t(),yt=qe.getPropagationContext();qe.setPropagationContext({...yt,traceId:ge.spanContext().traceId,sampled:$o(ge),dsc:Rs(je)}),D&&(se=void 0)},trimIdleSpanEndTimestamp:!j});D&&j&&(se=ge),Zk($,ge);function Ie(){n&&["interactive","complete"].includes(n.readyState)&&$.emit("idleSpanEnableAutoFinish",ge)}D&&!j&&n&&(n.addEventListener("readystatechange",()=>{Ie()}),Ie())}return{name:d5,setup($){var D;if(G){ar&&ae.log("[Tracing] Skipping browserTracingIntegration setup for bot user agent.");return}VD();const Z=Va($);if(W=xU({recordClsStandaloneSpans:Z?void 0:u||!1,recordLcpStandaloneSpans:Z?void 0:c||!1,client:$}),Z?(HU($),GU($),r&&KU()):r&&zU(),s&&it.PerformanceObserver&&((D=PerformanceObserver.supportedEntryTypes)!=null&&D.includes("long-animation-frame"))?wU():i&&SU(),l&&EU(),T&&n){const Y=()=>{ie=fn()};addEventListener("click",Y,{capture:!0}),addEventListener("keydown",Y,{capture:!0,passive:!0})}function Q(){const Y=Ad($);Y&&!vt(Y).timestamp&&(ar&&ae.log(`[Tracing] Finishing current active span with op: ${vt(Y).op}`),Y.setAttribute(xd,"cancelled"),Y.end())}$.on("startNavigationSpan",(Y,le)=>{if(Xe()!==$)return;if(le!=null&&le.isRedirect){ar&&ae.warn("[Tracing] Detected redirect, navigation span will not be the root span, but a child span."),de($,{op:"navigation.redirect",...Y},!1);return}ie=void 0,Q(),Ur().setPropagationContext({traceId:Ps(),sampleRand:Math.random(),propagationSpanId:wi()?void 0:Es()});const me=_t();me.setPropagationContext({traceId:Ps(),sampleRand:Math.random(),propagationSpanId:wi()?void 0:Es()}),me.setSDKProcessingMetadata({normalizedRequest:void 0}),de($,{op:"navigation",...Y,parentSpan:null,forceTransaction:!0})}),$.on("startPageLoadSpan",(Y,le={})=>{if(Xe()!==$)return;Q();const me=le.sentryTrace||Qk("sentry-trace")||Xk("sentry-trace"),ge=le.baggage||Qk("baggage")||Xk("baggage"),Ie=UD(me,ge),je=_t();je.setPropagationContext(Ie),wi()||(je.getPropagationContext().propagationSpanId=Es()),je.setSDKProcessingMetadata({normalizedRequest:Lx()}),de($,{op:"pageload",...Y})}),$.on("endPageloadSpan",()=>{j&&se&&(se.setAttribute(xd,"reportPageLoaded"),se.end())})},afterAllSetup($){if(G)return;let Z=$u();if(L!=="off"&&a5($,{linkPreviousTrace:L,consistentTraceSampling:O}),Je.location){if(A){const Q=Nn();g5($,{name:Je.location.pathname,startTime:Q?Q/1e3:void 0,attributes:{[Wi]:"url",[gn]:"auto.pageload.browser"}})}N&&Nm(({to:Q,from:D})=>{if(D===void 0&&(Z==null?void 0:Z.indexOf(Q))!==-1){Z=void 0;return}Z=void 0;const Y=Ix(Q),le=Ad($),me=le&&T&&_5(le,ie);v5($,{name:(Y==null?void 0:Y.pathname)||Je.location.pathname,attributes:{[Wi]:"url",[gn]:"auto.navigation.browser"}},{url:Q,isRedirect:me})})}_&&i5(),l&&y5($,h,m,g,e),r&&WU(),X9($,{traceFetch:x,traceXHR:S,trackFetchStreamPerformance:w,tracePropagationTargets:$.getOptions().tracePropagationTargets,shouldCreateSpanForRequest:C,enableHTTPTimings:R,onRequestSpanStart:B,onRequestSpanEnd:q})}}});function g5(t,e,n){t.emit("startPageLoadSpan",e,n),_t().setTransactionName(e.name);const r=Ad(t);return r&&t.emit("afterStartPageLoadSpan",r),r}function v5(t,e,n){const{url:r,isRedirect:i}=n||{};t.emit("beforeStartNavigationSpan",e,{isRedirect:i}),t.emit("startNavigationSpan",e,{isRedirect:i});const s=_t();return s.setTransactionName(e.name),r&&!i&&s.setSDKProcessingMetadata({normalizedRequest:{...Lx(),url:r}}),Ad(t)}function Qk(t){const e=Je.document,n=e==null?void 0:e.querySelector(`meta[name=${t}]`);return(n==null?void 0:n.getAttribute("content"))||void 0}function Xk(t){var r,i,s;const e=(i=(r=Je.performance)==null?void 0:r.getEntriesByType)==null?void 0:i.call(r,"navigation")[0],n=(s=e==null?void 0:e.serverTiming)==null?void 0:s.find(l=>
64l.name===t);return n==null?void 0:n.description}function y5(t,e,n,r,i){const s=Je.document;let l;const u=()=>{const c="ui.action.click",p=Ad(t);if(p){const h=vt(p).op;if(["navigation","pageload"].includes(h)){ar&&ae.warn(`[Tracing] Did not create ${c} span because a pageload or navigation span is in progress.`);return}}if(l&&(l.setAttribute(xd,"interactionInterrupted"),l.end(),l=void 0),!i.name){ar&&ae.warn(`[Tracing] Did not create ${c} transaction because _latestRouteName is missing.`);return}l=cR({name:i.name,op:c,attributes:{[Wi]:i.source||"url"}},{idleTimeout:e,finalTimeout:n,childSpanTimeout:r})};s&&addEventListener("click",u,{capture:!0})}const nI="_sentry_idleSpan";function Ad(t){return t[nI]}function Zk(t,e){Er(t,nI,e)}const e1=1.5;function _5(t,e){const n=vt(t),r=Za(),i=n.start_timestamp;return!(r-i>e1||e&&r-e<=e1)}function b5(t){const e={...t};return IR(e,"react"),fR("react",{version:k.version}),pB(e)}function x5(t){const e=t.match(/^([^.]+)/);return e!==null&&parseInt(e[0])>=17}function S5(t,e){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(t,e)}function w5(t,{componentStack:e},n){if(x5(k.version)&&Gd(t)&&e){const r=new Error(t.message);r.name=`React ErrorBoundary ${t.name}`,r.stack=e,S5(t,r)}return Xd(r=>(r.setContext("react",{componentStack:e}),Tx(t,n)))}const E5=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,gy={componentStack:null,error:null,eventId:null};class rI extends k.Component{constructor(e){super(e),this.state=gy,this._openFallbackReportDialog=!0;const n=Xe();n&&e.showDialog&&(this._openFallbackReportDialog=!1,this._cleanupHook=n.on("afterSendEvent",r=>{!r.type&&this._lastEventId&&r.event_id===this._lastEventId&&xk({...e.dialogOptions,eventId:this._lastEventId})}))}componentDidCatch(e,n){const{componentStack:r}=n,{beforeCapture:i,onError:s,showDialog:l,dialogOptions:u}=this.props;Xd(c=>{i&&i(c,e,r);const p=this.props.handled!=null?this.props.handled:!!this.props.fallback,h=w5(e,n,{mechanism:{handled:p,type:"auto.function.react.error_boundary"}});s&&s(e,r,h),l&&(this._lastEventId=h,this._openFallbackReportDialog&&xk({...u,eventId:h})),this.setState({error:e,componentStack:r,eventId:h})})}componentDidMount(){const{onMount:e}=this.props;e&&e()}componentWillUnmount(){const{error:e,componentStack:n,eventId:r}=this.state,{onUnmount:i}=this.props;i&&(this.state===gy?i(null,null,null):i(e,n,r)),this._cleanupHook&&(this._cleanupHook(),this._cleanupHook=void 0)}resetErrorBoundary(){const{onReset:e}=this.props,{error:n,componentStack:r,eventId:i}=this.state;e&&e(n,r,i),this.setState(gy)}render(){const{fallback:e,children:n}=this.props,r=this.state;if(r.componentStack===null)return typeof n=="function"?n():n;const i=typeof e=="function"?k.createElement(e,{error:r.error,componentStack:r.componentStack,resetError:()=>this.resetErrorBoundary(),eventId:r.eventId}):e;return k.isValidElement(i)?i:(e&&E5&&ae.warn("fallback did not produce a valid ReactElement"),null)}}var dp=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(t){return this.listeners.add(t),this.onSubscribe(),()=>{this.listeners.delete(t),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},k5={setTimeout:(t,e)=>setTimeout(t,e),clearTimeout:t=>clearTimeout(t),setInterval:(t,e)=>setInterval(t,e),clearInterval:t=>clearInterval(t)},_o,fx,aP,C5=(aP=class{constructor(){De(this,_o,k5);De(this,fx,!1)}setTimeoutProvider(t){_e(this,_o,t)}setTimeout(t,e){return U(this,_o).setTimeout(t,e)}clearTimeout(t){U(this,_o).clearTimeout(t)}setInterval(t,e){return U(this,_o).setInterval(t,e)}clearInterval(t){U(this,_o).clearInterval(t)}},_o=new WeakMap,fx=new WeakMap,aP),ka=new C5;function T5(t){setTimeout(t,0)}var Ga=typeof window>"u"||"Deno"in globalThis;function br(){}function P5(t,e){return typeof t=="function"?t(e):t}function $_(t){return typeof t=="number"&&t>=0&&t!==1/0}function iI(t,e){return Math.max(t+(e||0)-Date.now(),0)}function No(t,e){return typeof t=="function"?t(e):t}function Xr(t,e){return typeof t=="function"?t(e):t}function t1(t,e){const{type:n="all",exact:r,fetchStatus:i,predicate:s,queryKey:l,stale:u}=t;if(l){if(r){if(e.queryHash!==n0(l,e.options))return!1}else if(!Ld(e.queryKey,l))return!1}if(n!=="all"){const c=e.isActive();if(n==="active"&&!c||n==="inactive"&&c)return!1}return!(typeof u=="boolean"&&e.isStale()!==u||i&&i!==e.state.fetchStatus||s&&!s(e))}function n1(t,e){const{exact:n,status:r,predicate:i,mutationKey:s}=t;if(s){if(!e.options.mutationKey)return!1;if(n){if(Id(e.options.mutationKey)!==Id(s))return!1}else if(!Ld(e.options.mutationKey,s))return!1}return!(r&&e.state.status!==r||i&&!i(e))}function n0(t,e){return((e==null?void 0:e.queryKeyHashFn)||Id)(t)}function Id(t){return JSON.stringify(t,(e,n)=>W_(n)?Object.keys(n).sort().reduce((r,i)=>(r[i]=n[i],r),{}):n)}function Ld(t,e){return t===e?!0:typeof t!=typeof e?!1:t&&e&&typeof t=="object"&&typeof e=="object"?Object.keys(e).every(n=>Ld(t[n],e[n])):!1}var R5=Object.prototype.hasOwnProperty;function sI(t,e,n=0){if(t===e)return t;if(n>500)return e;const r=r1(t)&&r1(e);if(!r&&!(W_(t)&&W_(e)))return e;const s=(r?t:Object.keys(t)).length,l=r?e:Object.keys(e),u=l.length,c=r?new Array(u):{};let p=0;for(let h=0;h<u;h++){const m=r?h:l[h],g=t[m],_=e[m];if(g===_){c[m]=g,(r?h<s:R5.call(t,m))&&p++;continue}if(g===null||_===null||typeof g!="object"||typeof _!="object"){c[m]=_;continue}const x=sI(g,_,n+1);c[m]=x,x===g&&p++}return s===u&&p===s?t:c}function q_(t,e){if(!e||Object.keys(t).length!==Object.keys(e).length)return!1;for(const n in t)if(t[n]!==e[n])return!1;return!0}function r1(t){return Array.isArray(t)&&t.length===Object.keys(t).length}function W_(t){if(!i1(t))return!1;const e=t.constructor;if(e===void 0)return!0;const n=e.prototype;return!(!i1(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(t)!==Object.prototype)}function i1(t){return Object.prototype.toString.call(t)==="[object Object]"}function A5(t){return new Promise(e=>{ka.setTimeout(e,t)})}function H_(t,e,n){return typeof n.structuralSharing=="function"?n.structuralSharing(t,e):n.structuralSharing!==!1?sI(t,e):e}function I5(t,e,n=0){const r=[...t,e];return n&&r.length>n?r.slice(1):r}function L5(t,e,n=0){const r=[e,...t];return n&&r.length>n?r.slice(0,-1):r}var r0=Symbol();function oI(t,e){return!t.queryFn&&(e!=null&&e.initialPromise)?()=>e.initialPromise:!t.queryFn||t.queryFn===r0?()=>Promise.reject(new Error(`Missing queryFn: '${t.queryHash}'`)):t.queryFn}function aI(t,e){return typeof t=="function"?t(...e):!!t}function M5(t,e,n){let r=!1,i;return Object.defineProperty(t,"signal",{enumerable:!0,get:()=>(i??(i=e()),r||(r=!0,i.aborted?n():i.addEventListener("abort",n,{once:!0})),i)}),t}var Ta,bo,cu,lP,N5=(lP=class extends dp{constructor(){super();De(this,Ta);De(this,bo);De(this,cu);_e(this,cu,e=>
vendor: 2,790 bytes, line 64
64{if(!Ga&&window.addEventListener){const n=()=>e();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){U(this,bo)||this.setEventListener(U(this,cu))}onUnsubscribe(){var e;this.hasListeners()||((e=U(this,bo))==null||e.call(this),_e(this,bo,void 0))}setEventListener(e){var n;_e(this,cu,e),(n=U(this,bo))==null||n.call(this),_e(this,bo,e(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(e){U(this,Ta)!==e&&(_e(this,Ta,e),this.onFocus())}onFocus(){const e=this.isFocused();this.listeners.forEach(n=>{n(e)})}isFocused(){var e;return typeof U(this,Ta)=="boolean"?U(this,Ta):((e=globalThis.document)==null?void 0:e.visibilityState)!=="hidden"}},Ta=new WeakMap,bo=new WeakMap,cu=new WeakMap,lP),i0=new N5;function V_(){let t,e;const n=new Promise((i,s)=>{t=i,e=s});n.status="pending",n.catch(()=>{});function r(i){Object.assign(n,i),delete n.resolve,delete n.reject}return n.resolve=i=>{r({status:"fulfilled",value:i}),t(i)},n.reject=i=>{r({status:"rejected",reason:i}),e(i)},n}var O5=T5;function D5(){let t=[],e=0,n=u=>{u()},r=u=>{u()},i=O5;const s=u=>{e?t.push(u):i(()=>{n(u)})},l=()=>{const u=t;t=[],u.length&&i(()=>{r(()=>{u.forEach(c=>{n(c)})})})};return{batch:u=>{let c;e++;try{c=u()}finally{e--,e||l()}return c},batchCalls:u=>(...c)=>{s(()=>{u(...c)})},schedule:s,setNotifyFunction:u=>{n=u},setBatchNotifyFunction:u=>{r=u},setScheduler:u=>{i=u}}}var In=D5(),du,xo,pu,uP,j5=(uP=class extends dp{constructor(){super();De(this,du,!0);De(this,xo);De(this,pu);_e(this,pu,e=>{if(!Ga&&window.addEventListener){const n=()=>e(!0),r=()=>e(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}})}onSubscribe(){U(this,xo)||this.setEventListener(U(this,pu))}onUnsubscribe(){var e;this.hasListeners()||((e=U(this,xo))==null||e.call(this),_e(this,xo,void 0))}setEventListener(e){var n;_e(this,pu,e),(n=U(this,xo))==null||n.call(this),_e(this,xo,e(this.setOnline.bind(this)))}setOnline(e){U(this,du)!==e&&(_e(this,du,e),this.listeners.forEach(r=>{r(e)}))}isOnline(){return U(this,du)}},du=new WeakMap,xo=new WeakMap,pu=new WeakMap,uP),qf=new j5;function F5(t){return Math.min(1e3*2**t,3e4)}function lI(t){return(t??"online")==="online"?qf.isOnline():!0}var G_=class extends Error{constructor(t){super("CancelledError"),this.revert=t==null?void 0:t.revert,this.silent=t==null?void 0:t.silent}};function uI(t){let e=!1,n=0,r;const i=V_(),s=()=>i.status!=="pending",l=S=>{var w;if(!s()){const C=new G_(S);g(C),(w=t.onCancel)==null||w.call(t,C)}},u=()=>{e=!0},c=()=>{e=!1},p=()=>i0.isFocused()&&(t.networkMode==="always"||qf.isOnline())&&t.canRun(),h=()=>lI(t.networkMode)&&t.canRun(),m=S=>
vendor: 4,564 bytes, line 64
64{s()||(r==null||r(),i.resolve(S))},g=S=>{s()||(r==null||r(),i.reject(S))},_=()=>new Promise(S=>{var w;r=C=>{(s()||p())&&S(C)},(w=t.onPause)==null||w.call(t)}).then(()=>{var S;r=void 0,s()||(S=t.onContinue)==null||S.call(t)}),x=()=>{if(s())return;let S;const w=n===0?t.initialPromise:void 0;try{S=w??t.fn()}catch(C){S=Promise.reject(C)}Promise.resolve(S).then(m).catch(C=>{var N;if(s())return;const R=t.retry??(Ga?0:3),I=t.retryDelay??F5,P=typeof I=="function"?I(n,C):I,A=R===!0||typeof R=="number"&&n<R||typeof R=="function"&&R(n,C);if(e||!A){g(C);return}n++,(N=t.onFail)==null||N.call(t,n,C),A5(P).then(()=>p()?void 0:_()).then(()=>{e?g(C):x()})})};return{promise:i,status:()=>i.status,cancel:l,continue:()=>(r==null||r(),i),cancelRetry:u,continueRetry:c,canStart:h,start:()=>(h()?x():_().then(x),i)}}var Pa,cP,cI=(cP=class{constructor(){De(this,Pa)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),$_(this.gcTime)&&_e(this,Pa,ka.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(t){this.gcTime=Math.max(this.gcTime||0,t??(Ga?1/0:300*1e3))}clearGcTimeout(){U(this,Pa)&&(ka.clearTimeout(U(this,Pa)),_e(this,Pa,void 0))}},Pa=new WeakMap,cP),Ra,hu,Qr,Aa,Sn,$d,Ia,yi,fs,dP,U5=(dP=class extends cI{constructor(e){super();De(this,yi);De(this,Ra);De(this,hu);De(this,Qr);De(this,Aa);De(this,Sn);De(this,$d);De(this,Ia);_e(this,Ia,!1),_e(this,$d,e.defaultOptions),this.setOptions(e.options),this.observers=[],_e(this,Aa,e.client),_e(this,Qr,U(this,Aa).getQueryCache()),this.queryKey=e.queryKey,this.queryHash=e.queryHash,_e(this,Ra,o1(this.options)),this.state=e.state??U(this,Ra),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var e;return(e=U(this,Sn))==null?void 0:e.promise}setOptions(e){if(this.options={...U(this,$d),...e},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const n=o1(this.options);n.data!==void 0&&(this.setState(s1(n.data,n.dataUpdatedAt)),_e(this,Ra,n))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&U(this,Qr).remove(this)}setData(e,n){const r=H_(this.state.data,e,this.options);return ot(this,yi,fs).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(e,n){ot(this,yi,fs).call(this,{type:"setState",state:e,setStateOptions:n})}cancel(e){var r,i;const n=(r=U(this,Sn))==null?void 0:r.promise;return(i=U(this,Sn))==null||i.cancel(e),n?n.then(br).catch(br):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(U(this,Ra))}isActive(){return this.observers.some(e=>Xr(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===r0||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(e=>No(e.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(e=0){return this.state.data===void 0?!0:e==="static"?!1:this.state.isInvalidated?!0:!iI(this.state.dataUpdatedAt,e)}onFocus(){var n;const e=this.observers.find(r=>r.shouldFetchOnWindowFocus());e==null||e.refetch({cancelRefetch:!1}),(n=U(this,Sn))==null||n.continue()}onOnline(){var n;const e=this.observers.find(r=>r.shouldFetchOnReconnect());e==null||e.refetch({cancelRefetch:!1}),(n=U(this,Sn))==null||n.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),U(this,Qr).notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(n=>n!==e),this.observers.length||(U(this,Sn)&&(U(this,Ia)?U(this,Sn).cancel({revert:!0}):U(this,Sn).cancelRetry()),this.scheduleGc()),U(this,Qr).notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||ot(this,yi,fs).call(this,{type:"invalidate"})}async fetch(e,n){var c,p,h,m,g,_,x,S,w,C,R,I;if(this.state.fetchStatus!=="idle"&&((c=U(this,Sn))==null?void 0:c.status())!=="rejected"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(U(this,Sn))return U(this,Sn).continueRetry(),U(this,Sn).promise}if(e&&this.setOptions(e),!this.options.queryFn){const P=this.observers.find(A=>A.options.queryFn);P&&this.setOptions(P.options)}const r=new AbortController,i=P=>{Object.defineProperty(P,"signal",{enumerable:!0,get:()=>
64(_e(this,Ia,!0),r.signal)})},s=()=>{const P=oI(this.options,n),N=(()=>{const T={client:U(this,Aa),queryKey:this.queryKey,meta:this.meta};return i(T),T})();return _e(this,Ia,!1),this.options.persister?this.options.persister(P,N,this):P(N)},u=(()=>{const P={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:U(this,Aa),state:this.state,fetchFn:s};return i(P),P})();(p=this.options.behavior)==null||p.onFetch(u,this),_e(this,hu,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((h=u.fetchOptions)==null?void 0:h.meta))&&ot(this,yi,fs).call(this,{type:"fetch",meta:(m=u.fetchOptions)==null?void 0:m.meta}),_e(this,Sn,uI({initialPromise:n==null?void 0:n.initialPromise,fn:u.fetchFn,onCancel:P=>{P instanceof G_&&P.revert&&this.setState({...U(this,hu),fetchStatus:"idle"}),r.abort()},onFail:(P,A)=>{ot(this,yi,fs).call(this,{type:"failed",failureCount:P,error:A})},onPause:()=>{ot(this,yi,fs).call(this,{type:"pause"})},onContinue:()=>{ot(this,yi,fs).call(this,{type:"continue"})},retry:u.options.retry,retryDelay:u.options.retryDelay,networkMode:u.options.networkMode,canRun:()=>!0}));try{const P=await U(this,Sn).start();if(P===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(P),(_=(g=U(this,Qr).config).onSuccess)==null||_.call(g,P,this),(S=(x=U(this,Qr).config).onSettled)==null||S.call(x,P,this.state.error,this),P}catch(P){if(P instanceof G_){if(P.silent)return U(this,Sn).promise;if(P.revert){if(this.state.data===void 0)throw P;return this.state.data}}throw ot(this,yi,fs).call(this,{type:"error",error:P}),(C=(w=U(this,Qr).config).onError)==null||C.call(w,P,this),(I=(R=U(this,Qr).config).onSettled)==null||I.call(R,this.state.data,P,this),P}finally{this.scheduleGc()}}},Ra=new WeakMap,hu=new WeakMap,Qr=new WeakMap,Aa=new WeakMap,Sn=new WeakMap,$d=new WeakMap,Ia=new WeakMap,yi=new WeakSet,fs=function(e){const n=r=>{switch(e.type){case"failed":return{...r,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...dI(r.data,this.options),fetchMeta:e.meta??null};case"success":const i={...r,...s1(e.data,e.dataUpdatedAt),dataUpdateCount:r.dataUpdateCount+1,...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return _e(this,hu,e.manual?i:void 0),i;case"error":const s=e.error;return{...r,error:s,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:s,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...e.state}}};this.state=n(this.state),In.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),U(this,Qr).notify({query:this,type:"updated",action:e})})},dP);function dI(t,e){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:lI(e.networkMode)?"fetching":"paused",...t===void 0&&{error:null,status:"pending"}}}function s1(t,e){return{data:t,dataUpdatedAt:e??Date.now(),error:null,isInvalidated:!1,status:"success"}}function o1(t){const e=typeof t.initialData=="function"?t.initialData():t.initialData,n=e!==void 0,r=n?typeof t.initialDataUpdatedAt=="function"?t.initialDataUpdatedAt():t.initialDataUpdatedAt:0;return{data:e,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var yr,at,qd,er,La,fu,vs,So,Wd,mu,gu,Ma,Na,wo,vu,bt,Gc,Y_,K_,J_,Q_,X_,Z_,eb,pI,pP,z5=(pP=class extends dp{constructor(e,n){super();De(this,bt);De(this,yr);De(this,at);De(this,qd);De(this,er);De(this,La);De(this,fu);De(this,vs);De(this,So);De(this,Wd);De(this,mu);De(this,gu);De(this,Ma);De(this,Na);De(this,wo);De(this,vu,new Set);this.options=n,_e(this,yr,e),_e(this,So,null),_e(this,vs,V_()),this.bindMethods(),this.setOptions(n)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(U(this,at).addObserver(this),a1(U(this,at),this.options)?ot(this,bt,Gc).call(this):this.updateResult(),ot(this,bt,Q_).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return tb(U(this,at),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return tb(U(this,at),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,ot(this,bt,X_).call(this),ot(this,bt,Z_).call(this),U(this,at).removeObserver(this)}setOptions(e){const n=this.options,r=U(this,at);if(this.options=U(this,yr).defaultQueryOptions(e),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Xr(this.options.enabled,U(this,at))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");ot(this,bt,eb).call(this),U(this,at).setOptions(this.options),n._defaulted&&!q_(this.options,n)&&U(this,yr).getQueryCache().notify({type:"observerOptionsUpdated",query:U(this,at),observer:this});const i=this.hasListeners();i&&l1(U(this,at),r,this.options,n)&&ot(this,bt,Gc).call(this),this.updateResult(),i&&(U(this,at)!==r||Xr(this.options.enabled,U(this,at))!==Xr(n.enabled,U(this,at))||No(this.options.staleTime,U(this,at))!==No(n.staleTime,U(this,at)))&&ot(this,bt,Y_).call(this);const s=ot(this,bt,K_).call(this);i&&(U(this,at)!==r||Xr(this.options.enabled,U(this,at))!==Xr(n.enabled,U(this,at))||s!==U(this,wo))&&ot(this,bt,J_).call(this,s)}getOptimisticResult(e){const n=U(this,yr).getQueryCache().build(U(this,yr),e),r=this.createResult(n,e);return $5(this,r)&&(_e(this,er,r),_e(this,fu,this.options),_e(this,La,U(this,at).state)),r}getCurrentResult(){return U(this,er)}trackResult(e,n){return new Proxy(e,{get:(r,i)=>(this.trackProp(i),n==null||n(i),i==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&U(this,vs).status==="pending"&&U(this,vs).reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(r,i))})}trackProp(e){U(this,vu).add(e)}getCurrentQuery(){return U(this,at)}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){const n=U(this,yr).defaultQueryOptions(e),r=U(this,yr).getQueryCache().build(U(this,yr),n);return r.fetch().then(()=>this.createResult(r,n))}fetch(e){return ot(this,bt,Gc).call(this,{...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),U(this,er)))}createResult(e,n){var O;const r=U(this,at),i=this.options,s=U(this,er),l=U(this,La),u=U(this,fu),p=e!==r?e.state:U(this,qd),{state:h}=e;let m={...h},g=!1,_;if(n._optimisticResults){const j=this.hasListeners(),B=!j&&a1(e,n),q=j&&l1(e,r,n,i);(B||q)&&(m={...m,...dI(h.data,e.options)}),n._optimisticResults==="isRestoring"&&(m.fetchStatus="idle")}let{error:x,errorUpdatedAt:S,status:w}=m;_=m.data;let C=!1;if(n.placeholderData!==void 0&&_===void 0&&w==="pending"){let j;s!=null&&s.isPlaceholderData&&n.placeholderData===(u==null?void 0:u.placeholderData)?(j=s.data,C=!0):j=typeof n.placeholderData=="function"?n.placeholderData((O=U(this,gu))==null?void 0:O.state.data,U(this,gu)):n.placeholderData,j!==void 0&&(w="success",_=H_(s==null?void 0:s.data,j,n),g=!0)}if(n.select&&_!==void 0&&!C)if(s&&_===(l==null?void 0:l.data)&&n.select===U(this,Wd))_=U(this,mu);else try{_e(this,Wd,n.select),_=n.select(_),_=H_(s==null?void 0:s.data,_,n),_e(this,mu,_),_e(this,So,null)}catch(j){_e(this,So,j)}U(this,So)&&(x=U(this,So),_=U(this,mu),S=Date.now(),w="error");const R=m.fetchStatus==="fetching",I=w==="pending",P=w==="error",A=I&&R,N=_!==void 0,L={status:w,fetchStatus:m.fetchStatus,isPending:I,isSuccess:w==="success",isError:P,isInitialLoading:A,isLoading:A,data:_,dataUpdatedAt:m.dataUpdatedAt,error:x,errorUpdatedAt:S,failureCount:m.fetchFailureCount,failureReason:m.fetchFailureReason,errorUpdate
vendor: 8,408 bytes, line 64
64Count:m.errorUpdateCount,isFetched:m.dataUpdateCount>0||m.errorUpdateCount>0,isFetchedAfterMount:m.dataUpdateCount>p.dataUpdateCount||m.errorUpdateCount>p.errorUpdateCount,isFetching:R,isRefetching:R&&!I,isLoadingError:P&&!N,isPaused:m.fetchStatus==="paused",isPlaceholderData:g,isRefetchError:P&&N,isStale:s0(e,n),refetch:this.refetch,promise:U(this,vs),isEnabled:Xr(n.enabled,e)!==!1};if(this.options.experimental_prefetchInRender){const j=L.data!==void 0,B=L.status==="error"&&!j,q=ie=>{B?ie.reject(L.error):j&&ie.resolve(L.data)},G=()=>{const ie=_e(this,vs,L.promise=V_());q(ie)},W=U(this,vs);switch(W.status){case"pending":e.queryHash===r.queryHash&&q(W);break;case"fulfilled":(B||L.data!==W.value)&&G();break;case"rejected":(!B||L.error!==W.reason)&&G();break}}return L}updateResult(){const e=U(this,er),n=this.createResult(U(this,at),this.options);if(_e(this,La,U(this,at).state),_e(this,fu,this.options),U(this,La).data!==void 0&&_e(this,gu,U(this,at)),q_(n,e))return;_e(this,er,n);const r=()=>{if(!e)return!0;const{notifyOnChangeProps:i}=this.options,s=typeof i=="function"?i():i;if(s==="all"||!s&&!U(this,vu).size)return!0;const l=new Set(s??U(this,vu));return this.options.throwOnError&&l.add("error"),Object.keys(U(this,er)).some(u=>{const c=u;return U(this,er)[c]!==e[c]&&l.has(c)})};ot(this,bt,pI).call(this,{listeners:r()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&ot(this,bt,Q_).call(this)}},yr=new WeakMap,at=new WeakMap,qd=new WeakMap,er=new WeakMap,La=new WeakMap,fu=new WeakMap,vs=new WeakMap,So=new WeakMap,Wd=new WeakMap,mu=new WeakMap,gu=new WeakMap,Ma=new WeakMap,Na=new WeakMap,wo=new WeakMap,vu=new WeakMap,bt=new WeakSet,Gc=function(e){ot(this,bt,eb).call(this);let n=U(this,at).fetch(this.options,e);return e!=null&&e.throwOnError||(n=n.catch(br)),n},Y_=function(){ot(this,bt,X_).call(this);const e=No(this.options.staleTime,U(this,at));if(Ga||U(this,er).isStale||!$_(e))return;const r=iI(U(this,er).dataUpdatedAt,e)+1;_e(this,Ma,ka.setTimeout(()=>{U(this,er).isStale||this.updateResult()},r))},K_=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(U(this,at)):this.options.refetchInterval)??!1},J_=function(e){ot(this,bt,Z_).call(this),_e(this,wo,e),!(Ga||Xr(this.options.enabled,U(this,at))===!1||!$_(U(this,wo))||U(this,wo)===0)&&_e(this,Na,ka.setInterval(()=>{(this.options.refetchIntervalInBackground||i0.isFocused())&&ot(this,bt,Gc).call(this)},U(this,wo)))},Q_=function(){ot(this,bt,Y_).call(this),ot(this,bt,J_).call(this,ot(this,bt,K_).call(this))},X_=function(){U(this,Ma)&&(ka.clearTimeout(U(this,Ma)),_e(this,Ma,void 0))},Z_=function(){U(this,Na)&&(ka.clearInterval(U(this,Na)),_e(this,Na,void 0))},eb=function(){const e=U(this,yr).getQueryCache().build(U(this,yr),this.options);if(e===U(this,at))return;const n=U(this,at);_e(this,at,e),_e(this,qd,e.state),this.hasListeners()&&(n==null||n.removeObserver(this),e.addObserver(this))},pI=function(e){In.batch(()=>{e.listeners&&this.listeners.forEach(n=>{n(U(this,er))}),U(this,yr).getQueryCache().notify({query:U(this,at),type:"observerResultsUpdated"})})},pP);function B5(t,e){return Xr(e.enabled,t)!==!1&&t.state.data===void 0&&!(t.state.status==="error"&&e.retryOnMount===!1)}function a1(t,e){return B5(t,e)||t.state.data!==void 0&&tb(t,e,e.refetchOnMount)}function tb(t,e,n){if(Xr(e.enabled,t)!==!1&&No(e.staleTime,t)!=="static"){const r=typeof n=="function"?n(t):n;return r==="always"||r!==!1&&s0(t,e)}return!1}function l1(t,e,n,r){return(t!==e||Xr(r.enabled,t)===!1)&&(!n.suspense||t.state.status!=="error")&&s0(t,n)}function s0(t,e){return Xr(e.enabled,t)!==!1&&t.isStaleByTime(No(e.staleTime,t))}function $5(t,e){return!q_(t.getCurrentResult(),e)}function u1(t){return{onFetch:(e,n)=>{var h,m,g,_,x;const r=e.options,i=(g=(m=(h=e.fetchOptions)==null?void 0:h.meta)==null?void 0:m.fetchMore)==null?void 0:g.direction,s=((_=e.state.data)==null?void 0:_.pages)||[],l=((x=e.state.data)==null?void 0:x.pageParams)||[];let u={pages:[],pageParams:[]},c=0;const p=async()=>{let S=!1;const w=I=>{M5(I,()=>e.signal,()=>S=!0)},C=oI(e.options,e.fetchOptions),R=async(I,P,A)=>{if(S)return Promise.reject();if(P==null&&I.pages.length)return Promise.resolve(I);const T=(()=>{const B={client:e.client,queryKey:e.queryKey,pageParam:P,direction:A?"backward":"forward",meta:e.options.meta};return w(B),B})(),L=await C(T),{maxPages:O}=e.options,j=A?L5:I5;return{pages:j(I.pages,L,O),pageParams:j(I.pageParams,P,O)}};if(i&&s.length){const I=i==="backward",P=I?q5:c1,A={pages:s,pageParams:l},N=P(r,A);u=await R(A,N,I)}else{const I=t??s.length;do{const P=c===0?l[0]??r.initialPageParam:c1(r,u);if(c>0&&P==null)break;u=await R(u,P),c++}while(c<I)}return u};e.options.persister?e.fetchFn=()=>{var S,w;return(w=(S=e.options).persister)==null?void 0:w.call(S,p,{client:e.client,queryKey:e.queryKey,meta:e.options.meta,signal:e.signal},n)}:e.fetchFn=p}}}function c1(t,{pages:e,pageParams:n}){const r=e.length-1;return e.length>0?t.getNextPageParam(e[r],e,n[r],n):void 0}function q5(t,{pages:e,pageParams:n}){var r;return e.length>0?(r=t.getPreviousPageParam)==null?void 0:r.call(t,e[0],e,n[0],n):void 0}var Hd,Ui,$n,Oa,zi,so,hP,W5=(hP=class extends cI{constructor(e){super();De(this,zi);De(this,Hd);De(this,Ui);De(this,$n);De(this,Oa);_e(this,Hd,e.client),this.mutationId=e.mutationId,_e(this,$n,e.mutationCache),_e(this,Ui,[]),this.state=e.state||H5(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){U(this,Ui).includes(e)||(U(this,Ui).push(e),this.clearGcTimeout(),U(this,$n).notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){_e(this,Ui,U(this,Ui).filter(n=>n!==e)),this.scheduleGc(),U(this,$n).notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){U(this,Ui).length||(this.state.status==="pending"?this.scheduleGc():U(this,$n).remove(this))}continue(){var e;return((e=U(this,Oa))==null?void 0:e.continue())??this.execute(this.state.variables)}async execute(e){var l,u,c,p,h,m,g,_,x,S,w,C,R,I,P,A,N,T;const n=()=>{ot(this,zi,so).call(this,{type:"continue"})},r={client:U(this,Hd),meta:this.options.meta,mutationKey:this.options.mutationKey};_e(this,Oa,uI({fn:()=>this.options.mutationFn?this.options.mutationFn(e,r):Promise.reject(new Error("No mutationFn found")),onFail:(L,O)=>{ot(this,zi,so).call(this,{type:"failed",failureCount:L,error:O})},onPause:()=>{ot(this,zi,so).call(this,{type:"pause"})},onContinue:n,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>U(this,$n).canRun(this)}));const i=this.state.status==="pending",s=!U(this,Oa).canStart();try{if(i)n();else{ot(this,zi,so).call(this,{type:"pending",variables:e,isPaused:s}),U(this,$n).config.onMutate&&await U(this,$n).config.onMutate(e,this,r);const O=await((u=(l=this.options).onMutate)==null?void 0:u.call(l,e,r));O!==this.state.context&&ot(this,zi,so).call(this,{type:"pending",context:O,variables:e,isPaused:s})}const L=await U(this,Oa).start();return await((p=(c=U(this,$n).config).onSuccess)==null?void 0:p.call(c,L,e,this.state.context,this,r)),await((m=(h=this.options).onSuccess)==null?void 0:m.call(h,L,e,this.state.context,r)),await((_=(g=U(this,$n).config).onSettled)==null?void 0:_.call(g,L,null,this.state.variables,this.state.context,this,r)),await((S=(x=this.options).onSettled)==null?void 0:S.call(x,L,null,e,this.state.context,r)),ot(this,zi,so).call(this,{type:"success",data:L}),L}catch(L){try{await((C=(w=U(this,$n).config).onError)==null?void 0:C.call(w,L,e,this.state.context,this,r))}catch(O){Promise.reject(O)}try{await((I=(R=this.options).onError)==null?void 0:I.call(R,L,e,this.state.context,r))}catch(O){Promise.reject(O)}try{await((A=(P=U(this,$n).config).onSettled)==null?void 0:A.call(P,void 0,L,this.state.variables,this.state.context,this,r))}catch(O){Promise.reject(O)}try{await((T=(N=this.options).onSettled)==null?void 0:T.call(N,void 0,L,e,this.state.context,r))}catch(O){Promise.reject(O)}throw ot(this,zi,so).call(this,{type:"error",error:L}),L}finally{U(this,$n).runNext(this)}}},Hd=new WeakMap,Ui=new WeakMap,$n=new WeakMap,Oa=new WeakMap,zi=new WeakSet,so=function(e){const n=r=>{switch(e.type){case"failed":return{...r,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};
64case"pending":return{...r,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...r,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:e.error,failureCount:r.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}};this.state=n(this.state),In.batch(()=>{U(this,Ui).forEach(r=>{r.onMutationUpdate(e)}),U(this,$n).notify({mutation:this,type:"updated",action:e})})},hP);function H5(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var ys,_i,Vd,fP,V5=(fP=class extends dp{constructor(e={}){super();De(this,ys);De(this,_i);De(this,Vd);this.config=e,_e(this,ys,new Set),_e(this,_i,new Map),_e(this,Vd,0)}build(e,n,r){const i=new W5({client:e,mutationCache:this,mutationId:++xh(this,Vd)._,options:e.defaultMutationOptions(n),state:r});return this.add(i),i}add(e){U(this,ys).add(e);const n=Mh(e);if(typeof n=="string"){const r=U(this,_i).get(n);r?r.push(e):U(this,_i).set(n,[e])}this.notify({type:"added",mutation:e})}remove(e){if(U(this,ys).delete(e)){const n=Mh(e);if(typeof n=="string"){const r=U(this,_i).get(n);if(r)if(r.length>1){const i=r.indexOf(e);i!==-1&&r.splice(i,1)}else r[0]===e&&U(this,_i).delete(n)}}this.notify({type:"removed",mutation:e})}canRun(e){const n=Mh(e);if(typeof n=="string"){const r=U(this,_i).get(n),i=r==null?void 0:r.find(s=>s.state.status==="pending");return!i||i===e}else return!0}runNext(e){var r;const n=Mh(e);if(typeof n=="string"){const i=(r=U(this,_i).get(n))==null?void 0:r.find(s=>s!==e&&s.state.isPaused);return(i==null?void 0:i.continue())??Promise.resolve()}else return Promise.resolve()}clear(){In.batch(()=>{U(this,ys).forEach(e=>{this.notify({type:"removed",mutation:e})}),U(this,ys).clear(),U(this,_i).clear()})}getAll(){return Array.from(U(this,ys))}find(e){const n={exact:!0,...e};return this.getAll().find(r=>n1(n,r))}findAll(e={}){return this.getAll().filter(n=>n1(e,n))}notify(e){In.batch(()=>{this.listeners.forEach(n=>{n(e)})})}resumePausedMutations(){const e=this.getAll().filter(n=>n.state.isPaused);return In.batch(()=>Promise.all(e.map(n=>n.continue().catch(br))))}},ys=new WeakMap,_i=new WeakMap,Vd=new WeakMap,fP);function Mh(t){var e;return(e=t.options.scope)==null?void 0:e.id}var Bi,mP,G5=(mP=class extends dp{constructor(e={}){super();De(this,Bi);this.config=e,_e(this,Bi,new Map)}build(e,n,r){const i=n.queryKey,s=n.queryHash??n0(i,n);let l=this.get(s);return l||(l=new U5({client:e,queryKey:i,queryHash:s,options:e.defaultQueryOptions(n),state:r,defaultOptions:e.getQueryDefaults(i)}),this.add(l)),l}add(e){U(this,Bi).has(e.queryHash)||(U(this,Bi).set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const n=U(this,Bi).get(e.queryHash);n&&(e.destroy(),n===e&&U(this,Bi).delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){In.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return U(this,Bi).get(e)}getAll(){return[...U(this,Bi).values()]}find(e){const n={exact:!0,...e};return this.getAll().find(r=>t1(n,r))}findAll(e={}){const n=this.getAll();return Object.keys(e).length>0?n.filter(r=>t1(e,r)):n}notify(e){In.batch(()=>{this.listeners.forEach(n=>{n(e)})})}onFocus(){In.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){In.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},Bi=new WeakMap,mP),Xt,Eo,ko,yu,_u,Co,bu,xu,gP,Y5=(gP=class{constructor(t={}){De(this,Xt);De(this,Eo);De(this,ko);De(this,yu);De(this,_u);De(this,Co);De(this,bu);De(this,xu);_e(this,Xt,t.queryCache||new G5),_e(this,Eo,t.mutationCache||new V5),_e(this,ko,t.defaultOptions||{}),_e(this,yu,new Map),_e(this,_u,new Map),_e(this,Co,0)}mount(){xh(this,Co)._++,U(this,Co)===1&&(_e(this,bu,i0.subscribe(async t=>{t&&(await this.resumePausedMutations(),U(this,Xt).onFocus())})),_e(this,xu,qf.subscribe(async t=>{t&&(await this.resumePausedMutations(),U(this,Xt).onOnline())})))}unmount(){var t,e;
vendor: 4,772 bytes, line 64
64xh(this,Co)._--,U(this,Co)===0&&((t=U(this,bu))==null||t.call(this),_e(this,bu,void 0),(e=U(this,xu))==null||e.call(this),_e(this,xu,void 0))}isFetching(t){return U(this,Xt).findAll({...t,fetchStatus:"fetching"}).length}isMutating(t){return U(this,Eo).findAll({...t,status:"pending"}).length}getQueryData(t){var n;const e=this.defaultQueryOptions({queryKey:t});return(n=U(this,Xt).get(e.queryHash))==null?void 0:n.state.data}ensureQueryData(t){const e=this.defaultQueryOptions(t),n=U(this,Xt).build(this,e),r=n.state.data;return r===void 0?this.fetchQuery(t):(t.revalidateIfStale&&n.isStaleByTime(No(e.staleTime,n))&&this.prefetchQuery(e),Promise.resolve(r))}getQueriesData(t){return U(this,Xt).findAll(t).map(({queryKey:e,state:n})=>{const r=n.data;return[e,r]})}setQueryData(t,e,n){const r=this.defaultQueryOptions({queryKey:t}),i=U(this,Xt).get(r.queryHash),s=i==null?void 0:i.state.data,l=P5(e,s);if(l!==void 0)return U(this,Xt).build(this,r).setData(l,{...n,manual:!0})}setQueriesData(t,e,n){return In.batch(()=>U(this,Xt).findAll(t).map(({queryKey:r})=>[r,this.setQueryData(r,e,n)]))}getQueryState(t){var n;const e=this.defaultQueryOptions({queryKey:t});return(n=U(this,Xt).get(e.queryHash))==null?void 0:n.state}removeQueries(t){const e=U(this,Xt);In.batch(()=>{e.findAll(t).forEach(n=>{e.remove(n)})})}resetQueries(t,e){const n=U(this,Xt);return In.batch(()=>(n.findAll(t).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...t},e)))}cancelQueries(t,e={}){const n={revert:!0,...e},r=In.batch(()=>U(this,Xt).findAll(t).map(i=>i.cancel(n)));return Promise.all(r).then(br).catch(br)}invalidateQueries(t,e={}){return In.batch(()=>(U(this,Xt).findAll(t).forEach(n=>{n.invalidate()}),(t==null?void 0:t.refetchType)==="none"?Promise.resolve():this.refetchQueries({...t,type:(t==null?void 0:t.refetchType)??(t==null?void 0:t.type)??"active"},e)))}refetchQueries(t,e={}){const n={...e,cancelRefetch:e.cancelRefetch??!0},r=In.batch(()=>U(this,Xt).findAll(t).filter(i=>!i.isDisabled()&&!i.isStatic()).map(i=>{let s=i.fetch(void 0,n);return n.throwOnError||(s=s.catch(br)),i.state.fetchStatus==="paused"?Promise.resolve():s}));return Promise.all(r).then(br)}fetchQuery(t){const e=this.defaultQueryOptions(t);e.retry===void 0&&(e.retry=!1);const n=U(this,Xt).build(this,e);return n.isStaleByTime(No(e.staleTime,n))?n.fetch(e):Promise.resolve(n.state.data)}prefetchQuery(t){return this.fetchQuery(t).then(br).catch(br)}fetchInfiniteQuery(t){return t.behavior=u1(t.pages),this.fetchQuery(t)}prefetchInfiniteQuery(t){return this.fetchInfiniteQuery(t).then(br).catch(br)}ensureInfiniteQueryData(t){return t.behavior=u1(t.pages),this.ensureQueryData(t)}resumePausedMutations(){return qf.isOnline()?U(this,Eo).resumePausedMutations():Promise.resolve()}getQueryCache(){return U(this,Xt)}getMutationCache(){return U(this,Eo)}getDefaultOptions(){return U(this,ko)}setDefaultOptions(t){_e(this,ko,t)}setQueryDefaults(t,e){U(this,yu).set(Id(t),{queryKey:t,defaultOptions:e})}getQueryDefaults(t){const e=[...U(this,yu).values()],n={};return e.forEach(r=>{Ld(t,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(t,e){U(this,_u).set(Id(t),{mutationKey:t,defaultOptions:e})}getMutationDefaults(t){const e=[...U(this,_u).values()],n={};return e.forEach(r=>{Ld(t,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(t){if(t._defaulted)return t;const e={...U(this,ko).queries,...this.getQueryDefaults(t.queryKey),...t,_defaulted:!0};return e.queryHash||(e.queryHash=n0(e.queryKey,e)),e.refetchOnReconnect===void 0&&(e.refetchOnReconnect=e.networkMode!=="always"),e.throwOnError===void 0&&(e.throwOnError=!!e.suspense),!e.networkMode&&e.persister&&(e.networkMode="offlineFirst"),e.queryFn===r0&&(e.enabled=!1),e}defaultMutationOptions(t){return t!=null&&t._defaulted?t:{...U(this,ko).mutations,...(t==null?void 0:t.mutationKey)&&this.getMutationDefaults(t.mutationKey),...t,_defaulted:!0}}clear(){U(this,Xt).clear(),U(this,Eo).clear()}},Xt=new WeakMap,Eo=new WeakMap,ko=new WeakMap,yu=new WeakMap,_u=new WeakMap,Co=new WeakMap,bu=new WeakMap,xu=new WeakMap,gP),hI=k.createContext(void 0),K5=t=>{const e=k.useContext(hI);if(t)return t;if(!e)throw new Error("No QueryClient set, use QueryClientProvider to set one");return e},J5=({client:t,children:e})=>(k.useEffect(()=>(t.mount(),()=>{t.unmount()}),[t]),v.jsx(hI.Provider,{value:t,children:e})),fI=k.createContext(!1),Q5=()=>k.useContext(fI);fI.Provider;function X5(){let t=!1;return{clearReset:()=>{t=!1},reset:()=>{t=!0},isReset:()=>t}}var Z5=k.createContext(X5()),e4=()=>k.useContext(Z5),t4=(t,e,n)=>{const r=n!=null&&n.state.error&&typeof t.throwOnError=="function"?aI(t.throwOnError,[n.state.error,n]):t.throwOnError;(t.suspense||t.experimental_prefetchInRender||r)&&(e.isReset()||(t.retryOn
64Mount=!1))},n4=t=>{k.useEffect(()=>{t.clearReset()},[t])},r4=({result:t,errorResetBoundary:e,throwOnError:n,query:r,suspense:i})=>t.isError&&!e.isReset()&&!t.isFetching&&r&&(i&&t.data===void 0||aI(n,[t.error,r])),i4=t=>{if(t.suspense){const n=i=>i==="static"?i:Math.max(i??1e3,1e3),r=t.staleTime;t.staleTime=typeof r=="function"?(...i)=>n(r(...i)):n(r),typeof t.gcTime=="number"&&(t.gcTime=Math.max(t.gcTime,1e3))}},s4=(t,e)=>t.isLoading&&t.isFetching&&!e,o4=(t,e)=>(t==null?void 0:t.suspense)&&e.isPending,d1=(t,e,n)=>e.fetchOptimistic(t).catch(()=>{n.clearReset()});function a4(t,e,n){var g,_,x,S;const r=Q5(),i=e4(),s=K5(n),l=s.defaultQueryOptions(t);(_=(g=s.getDefaultOptions().queries)==null?void 0:g._experimental_beforeQuery)==null||_.call(g,l);const u=s.getQueryCache().get(l.queryHash);l._optimisticResults=r?"isRestoring":"optimistic",i4(l),t4(l,i,u),n4(i);const c=!s.getQueryCache().get(l.queryHash),[p]=k.useState(()=>new e(s,l)),h=p.getOptimisticResult(l),m=!r&&t.subscribed!==!1;if(k.useSyncExternalStore(k.useCallback(w=>{const C=m?p.subscribe(In.batchCalls(w)):br;return p.updateResult(),C},[p,m]),()=>p.getCurrentResult(),()=>p.getCurrentResult()),k.useEffect(()=>{p.setOptions(l)},[l,p]),o4(l,h))throw d1(l,p,i);if(r4({result:h,errorResetBoundary:i,throwOnError:l.throwOnError,query:u,suspense:l.suspense}))throw h.error;if((S=(x=s.getDefaultOptions().queries)==null?void 0:x._experimental_afterQuery)==null||S.call(x,l,h),l.experimental_prefetchInRender&&!Ga&&s4(h,r)){const w=c?d1(l,p,i):u==null?void 0:u.promise;w==null||w.catch(br).finally(()=>{p.updateResult()})}return l.notifyOnChangeProps?h:p.trackResult(h)}function mI(t,e){return a4(t,z5,e)}var l4=yP();/** 65 * @remix-run/router v1.23.2 66 * 67 * Copyright (c) Remix Software Inc. 68 * 69 * This source code is licensed under the MIT license found in the 70 * LICENSE.md file in the root directory of this source tree. 71 * 72 * @license MIT 73 */function Md(){return Md=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Md.apply(this,arguments)}var To;(function(t){t.Pop="POP",t.Push="PUSH",t.Replace="REPLACE"})(To||(To={}));const p1="popstate";function u4(t){t===void 0&&(t={});function e(r,i){let{pathname:s,search:l,hash:u}=r.location;return nb("",{pathname:s,search:l,hash:u},i.state&&i.state.usr||null,i.state&&i.state.key||"default")}function n(r,i){return typeof i=="string"?i:Wf(i)}return d4(e,n,null,t)}function Kt(t,e){if(t===!1||t===null||typeof t>"u")throw new Error(e)}function o0(t,e){if(!t){typeof console<"u"&&console.warn(e);try{throw new Error(e)}catch{}}}function c4(){return Math.random().toString(36).substr(2,8)}function h1(t,e){return{usr:t.state,key:t.key,idx:e}}function nb(t,e,n,r){return n===void 0&&(n=null),Md({pathname:typeof t=="string"?t:t.pathname,search:"",hash:""},typeof e=="string"?Vu(e):e,{state:n,key:e&&e.key||r||c4()})}function Wf(t){let{pathname:e="/",search:n="",hash:r=""}=t;return n&&n!=="?"&&(e+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(e+=r.charAt(0)==="#"?r:"#"+r),e}function Vu(t){let e={};if(t){let n=t.indexOf("#");n>=0&&(e.hash=t.substr(n),t=t.substr(0,n));let r=t.indexOf("?");r>=0&&(e.search=t.substr(r),t=t.substr(0,r)),t&&(e.pathname=t)}return e}function d4(t,e,n,r){r===void 0&&(r={});let{window:i=document.defaultView,v5Compat:s=!1}=r,l=i.history,u=To.Pop,c=null,p=h();p==null&&(p=0,l.replaceState(Md({},l.state,{idx:p}),""));function h(){return(l.state||{idx:null}).idx}function m(){u=To.Pop;let w=h(),C=w==null?null:w-p;p=w,c&&c({action:u,location:S.location,delta:C})}function g(w,C){u=To.Push;let R=nb(S.location,w,C);p=h()+1;let I=h1(R,p),P=S.createHref(R);try{l.pushState(I,"",P)}catch(A){if(A instanceof DOMException&&A.name==="DataCloneError")throw A;i.location.assign(P)}s&&c&&c({action:u,location:S.location,delta:1})}function _(w,C){u=To.Replace;let R=nb(S.location,w,C);p=h();let I=h1(R,p),P=S.createHref(R);l.replaceState(I,"",P),s&&c&&c({action:u,location:S.location,delta:0})}function x(w){let C=i.location.origin!=="null"?i.location.origin:i.location.href,R=typeof w=="string"?w:Wf(w);return R=R.replace(/ $/,"%20"),Kt(C,"No window.location.(origin|href) available to create URL for href: "+R),new URL(R,C)}let S={get action(){return u},get location(){return t(i,l)},listen(w){if(c)throw new Error("A history only accepts one active listener");return i.addEventListener(p1,m),c=w,()=>{i.removeEventListener(p1,m),c=null}},createHref(w){return e(i,w)},createURL:x,encodeLocation(w){let C=x(w);return{pathname:C.pathname,search:C.search,hash:C.hash}},push:g,replace:_,go(w){return l.go(w)}};return S}var f1;(function(t){t.data="data",t.deferred="deferred",t.redirect="redirect",t.error="error"})(f1||(f1={}));function p4(t,e,n){return n===void 0&&(n="/"),h4(t,e,n)}function h4(t,e,n,r){let i=typeof e=="string"?Vu(e):e,s=Iu(i.pathname||"/",n);if(s==null)return null;let l=gI(t);f4(l);let u=null;for(let c=0;u==null&&c<l.length;++c){let p=k4(s);u=w4(l[c],p)}return u}function gI(t,e,n,r){e===void 0&&(e=[]),n===void 0&&(n=[]),r===void 0&&(r="");let i=(s,l,u)=>{let c={relativePath:u===void 0?s.path||"":u,caseSensitive:s.caseSensitive===!0,childrenIndex:l,route:s};c.relativePath.startsWith("/")&&(Kt(c.relativePath.startsWith(r),'Absolute route path "'+c.relativePath+'" nested under path '+('"'+r+'" is not val
73id. An absolute child route path ')+"must start with the combined path of all its parent routes."),c.relativePath=c.relativePath.slice(r.length));let p=Oo([r,c.relativePath]),h=n.concat(c);s.children&&s.children.length>0&&(Kt(s.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+p+'".')),gI(s.children,e,h,p)),!(s.path==null&&!s.index)&&e.push({path:p,score:x4(p,s.index),routesMeta:h})};return t.forEach((s,l)=>{var u;if(s.path===""||!((u=s.path)!=null&&u.includes("?")))i(s,l);else for(let c of vI(s.path))i(s,l,c)}),e}function vI(t){let e=t.split("/");if(e.length===0)return[];let[n,...r]=e,i=n.endsWith("?"),s=n.replace(/\?$/,"");if(r.length===0)return i?[s,""]:[s];let l=vI(r.join("/")),u=[];return u.push(...l.map(c=>c===""?s:[s,c].join("/"))),i&&u.push(...l),u.map(c=>t.startsWith("/")&&c===""?"/":c)}function f4(t){t.sort((e,n)=>e.score!==n.score?n.score-e.score:S4(e.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const m4=/^:[\w-]+$/,g4=3,v4=2,y4=1,_4=10,b4=-2,m1=t=>t==="*";function x4(t,e){let n=t.split("/"),r=n.length;return n.some(m1)&&(r+=b4),e&&(r+=v4),n.filter(i=>!m1(i)).reduce((i,s)=>i+(m4.test(s)?g4:s===""?y4:_4),r)}function S4(t,e){return t.length===e.length&&t.slice(0,-1).every((r,i)=>r===e[i])?t[t.length-1]-e[e.length-1]:0}function w4(t,e,n){let{routesMeta:r}=t,i={},s="/",l=[];for(let u=0;u<r.length;++u){let c=r[u],p=u===r.length-1,h=s==="/"?e:e.slice(s.length)||"/",m=rb({path:c.relativePath,caseSensitive:c.caseSensitive,end:p},h),g=c.route;if(!m)return null;
vendor: 5,132 bytes, lines 73-82
73Object.assign(i,m.params),l.push({params:i,pathname:Oo([s,m.pathname]),pathnameBase:A4(Oo([s,m.pathnameBase])),route:g}),m.pathnameBase!=="/"&&(s=Oo([s,m.pathnameBase]))}return l}function rb(t,e){typeof t=="string"&&(t={path:t,caseSensitive:!1,end:!0});let[n,r]=E4(t.path,t.caseSensitive,t.end),i=e.match(n);if(!i)return null;let s=i[0],l=s.replace(/(.)\/+$/,"$1"),u=i.slice(1);return{params:r.reduce((p,h,m)=>{let{paramName:g,isOptional:_}=h;if(g==="*"){let S=u[m]||"";l=s.slice(0,s.length-S.length).replace(/(.)\/+$/,"$1")}const x=u[m];return _&&!x?p[g]=void 0:p[g]=(x||"").replace(/%2F/g,"/"),p},{}),pathname:s,pathnameBase:l,pattern:t}}function E4(t,e,n){e===void 0&&(e=!1),n===void 0&&(n=!0),o0(t==="*"||!t.endsWith("*")||t.endsWith("/*"),'Route path "'+t+'" will be treated as if it were '+('"'+t.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+t.replace(/\*$/,"/*")+'".'));let r=[],i="^"+t.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(l,u,c)=>(r.push({paramName:u,isOptional:c!=null}),c?"/?([^\\/]+)?":"/([^\\/]+)"));return t.endsWith("*")?(r.push({paramName:"*"}),i+=t==="*"||t==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":t!==""&&t!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,e?void 0:"i"),r]}function k4(t){try{return t.split("/").map(e=>decodeURIComponent(e).replace(/\//g,"%2F")).join("/")}catch(e){return o0(!1,'The URL path "'+t+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+e+").")),t}}function Iu(t,e){if(e==="/")return t;if(!t.toLowerCase().startsWith(e.toLowerCase()))return null;let n=e.endsWith("/")?e.length-1:e.length,r=t.charAt(n);return r&&r!=="/"?null:t.slice(n)||"/"}const C4=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,T4=t=>C4.test(t);function P4(t,e){e===void 0&&(e="/");let{pathname:n,search:r="",hash:i=""}=typeof t=="string"?Vu(t):t,s;if(n)if(T4(n))s=n;else{if(n.includes("//")){let l=n;n=n.replace(/\/\/+/g,"/"),o0(!1,"Pathnames cannot have embedded double slashes - normalizing "+(l+" -> "+n))}n.startsWith("/")?s=g1(n.substring(1),"/"):s=g1(n,e)}else s=e;return{pathname:s,search:I4(r),hash:L4(i)}}function g1(t,e){let n=e.replace(/\/+$/,"").split("/");return t.split("/").forEach(i=>{i===".."?n.length>1&&n.pop():i!=="."&&n.push(i)}),n.length>1?n.join("/"):"/"}function vy(t,e,n,r){return"Cannot include a '"+t+"' character in a manually specified "+("`to."+e+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function R4(t){return t.filter((e,n)=>n===0||e.route.path&&e.route.path.length>0)}function a0(t,e){let n=R4(t);return e?n.map((r,i)=>i===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function l0(t,e,n,r){r===void 0&&(r=!1);let i;typeof t=="string"?i=Vu(t):(i=Md({},t),Kt(!i.pathname||!i.pathname.includes("?"),vy("?","pathname","search",i)),Kt(!i.pathname||!i.pathname.includes("#"),vy("#","pathname","hash",i)),Kt(!i.search||!i.search.includes("#"),vy("#","search","hash",i)));let s=t===""||i.pathname==="",l=s?"/":i.pathname,u;if(l==null)u=n;else{let m=e.length-1;if(!r&&l.startsWith("..")){let g=l.split("/");for(;g[0]==="..";)g.shift(),m-=1;i.pathname=g.join("/")}u=m>=0?e[m]:"/"}let c=P4(i,u),p=l&&l!=="/"&&l.endsWith("/"),h=(s||l===".")&&n.endsWith("/");return!c.pathname.endsWith("/")&&(p||h)&&(c.pathname+="/"),c}const Oo=t=>t.join("/").replace(/\/\/+/g,"/"),A4=t=>t.replace(/\/+$/,"").replace(/^\/*/,"/"),I4=t=>!t||t==="?"?"":t.startsWith("?")?t:"?"+t,L4=t=>!t||t==="#"?"":t.startsWith("#")?t:"#"+t;function M4(t){return t!=null&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.internal=="boolean"&&"data"in t}const yI=["post","put","patch","delete"];new Set(yI);const N4=["get",...yI];new Set(N4);/** 74 * React Router v6.30.3 75 * 76 * Copyright (c) Remix Software Inc. 77 * 78 * This source code is licensed under the MIT license found in the 79 * LICENSE.md file in the root directory of this source tree. 80 * 81 * @license MIT 82 */function Nd(){return Nd=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Nd.apply(this,arguments)}const $m=k.createContext(null),_I=k.createContext(null),Is=k.createContext(null),qm=k.createContext(null),Qi=k.createContext({outlet:null,matches:[],isDataRoute:!1}),bI=k.createContext(null);function O4(t,e){let{relative:n}=e===void 0?{}:e;Gu()||Kt(!1);let{basename:r,navigator:i}=k.useContext(Is),{hash:s,pathname:l,search:u}=Wm(t,{relative:n}),c=l;return r!=="/"&&(c=l==="/"?r:Oo([r,l])),i.createHref({pathname:c,search:u,hash:s})}function Gu(){return k.useContext(qm)!=null}function En(){return Gu()||Kt(!1),k.useContext(qm).location}function xI(t){k.useContext(Is).static||k.useLayoutEffect(t)}function pp(){let{isDataRoute:t}=k.useContext(Qi);return t?J4():D4()}function D4(){Gu()||Kt(!1);
vendor: 4,764 bytes, line 82
82let t=k.useContext($m),{basename:e,future:n,navigator:r}=k.useContext(Is),{matches:i}=k.useContext(Qi),{pathname:s}=En(),l=JSON.stringify(a0(i,n.v7_relativeSplatPath)),u=k.useRef(!1);return xI(()=>{u.current=!0}),k.useCallback(function(p,h){if(h===void 0&&(h={}),!u.current)return;if(typeof p=="number"){r.go(p);return}let m=l0(p,JSON.parse(l),s,h.relative==="path");t==null&&e!=="/"&&(m.pathname=m.pathname==="/"?e:Oo([e,m.pathname])),(h.replace?r.replace:r.push)(m,h.state,h)},[e,r,l,s,t])}const j4=k.createContext(null);function F4(t){let e=k.useContext(Qi).outlet;return e&&k.createElement(j4.Provider,{value:t},e)}function EX(){let{matches:t}=k.useContext(Qi),e=t[t.length-1];return e?e.params:{}}function Wm(t,e){let{relative:n}=e===void 0?{}:e,{future:r}=k.useContext(Is),{matches:i}=k.useContext(Qi),{pathname:s}=En(),l=JSON.stringify(a0(i,r.v7_relativeSplatPath));return k.useMemo(()=>l0(t,JSON.parse(l),s,n==="path"),[t,l,s,n])}function U4(t,e){return z4(t,e)}function z4(t,e,n,r){Gu()||Kt(!1);let{navigator:i}=k.useContext(Is),{matches:s}=k.useContext(Qi),l=s[s.length-1],u=l?l.params:{};l&&l.pathname;let c=l?l.pathnameBase:"/";l&&l.route;let p=En(),h;if(e){var m;let w=typeof e=="string"?Vu(e):e;c==="/"||(m=w.pathname)!=null&&m.startsWith(c)||Kt(!1),h=w}else h=p;let g=h.pathname||"/",_=g;if(c!=="/"){let w=c.replace(/^\//,"").split("/");_="/"+g.replace(/^\//,"").split("/").slice(w.length).join("/")}let x=p4(t,{pathname:_}),S=H4(x&&x.map(w=>Object.assign({},w,{params:Object.assign({},u,w.params),pathname:Oo([c,i.encodeLocation?i.encodeLocation(w.pathname).pathname:w.pathname]),pathnameBase:w.pathnameBase==="/"?c:Oo([c,i.encodeLocation?i.encodeLocation(w.pathnameBase).pathname:w.pathnameBase])})),s,n,r);return e&&S?k.createElement(qm.Provider,{value:{location:Nd({pathname:"/",search:"",hash:"",state:null,key:"default"},h),navigationType:To.Pop}},S):S}function B4(){let t=K4(),e=M4(t)?t.status+" "+t.statusText:t instanceof Error?t.message:JSON.stringify(t),n=t instanceof Error?t.stack:null,i={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return k.createElement(k.Fragment,null,k.createElement("h2",null,"Unexpected Application Error!"),k.createElement("h3",{style:{fontStyle:"italic"}},e),n?k.createElement("pre",{style:i},n):null,null)}const $4=k.createElement(B4,null);class q4 extends k.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,n){return n.location!==e.location||n.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:n.error,location:n.location,revalidation:e.revalidation||n.revalidation}}componentDidCatch(e,n){console.error("React Router caught the following error during render",e,n)}render(){return this.state.error!==void 0?k.createElement(Qi.Provider,{value:this.props.routeContext},k.createElement(bI.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function W4(t){let{routeContext:e,match:n,children:r}=t,i=k.useContext($m);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),k.createElement(Qi.Provider,{value:e},r)}function H4(t,e,n,r){var i;if(e===void 0&&(e=[]),n===void 0&&(n=null),r===void 0&&(r=null),t==null){var s;if(!n)return null;if(n.errors)t=n.matches;else if((s=r)!=null&&s.v7_partialHydration&&e.length===0&&!n.initialized&&n.matches.length>0)t=n.matches;else return null}let l=t,u=(i=n)==null?void 0:i.errors;if(u!=null){let h=l.findIndex(m=>m.route.id&&(u==null?void 0:u[m.route.id])!==void 0);h>=0||Kt(!1),l=l.slice(0,Math.min(l.length,h+1))}let c=!1,p=-1;if(n&&r&&r.v7_partialHydration)for(let h=0;h<l.length;h++){let m=l[h];if((m.route.HydrateFallback||m.route.hydrateFallbackElement)&&(p=h),m.route.id){let{loaderData:g,errors:_}=n,x=m.route.loader&&g[m.route.id]===void 0&&(!_||_[m.route.id]===void 0);if(m.route.lazy||x){c=!0,p>=0?l=l.slice(0,p+1):l=[l[0]];break}}}return l.reduceRight((h,m,g)=>{let _,x=!1,S=null,w=null;n&&(_=u&&m.route.id?u[m.route.id]:void 0,S=m.route.errorElement||$4,c&&(p<0&&g===0?(Q4("route-fallback"),x=!0,w=null):p===g&&(x=!0,w=m.route.hydrateFallbackElement||null)));let C=e.concat(l.slice(0,g+1)),R=()=>{let I;return _?I=S:x?I=w:m.route.Component?I=k.createElement(m.route.Component,null):m.route.element?I=m.route.element:I=h,k.createElement(W4,{match:m,routeContext:{outlet:h,matches:C,isDataRoute:n!=null},children:I})};return n&&(m.route.ErrorBoundary||m.route.errorElement||g===0)?k.createElement(q4,{location:n.location,revalidation:n.revalidation,component:S,error:_,children:R(),routeC
82ontext:{outlet:null,matches:C,isDataRoute:!0}}):R()},null)}var SI=(function(t){return t.UseBlocker="useBlocker",t.UseRevalidator="useRevalidator",t.UseNavigateStable="useNavigate",t})(SI||{}),wI=(function(t){return t.UseBlocker="useBlocker",t.UseLoaderData="useLoaderData",t.UseActionData="useActionData",t.UseRouteError="useRouteError",t.UseNavigation="useNavigation",t.UseRouteLoaderData="useRouteLoaderData",t.UseMatches="useMatches",t.UseRevalidator="useRevalidator",t.UseNavigateStable="useNavigate",t.UseRouteId="useRouteId",t})(wI||{});function V4(t){let e=k.useContext($m);return e||Kt(!1),e}function G4(t){let e=k.useContext(_I);return e||Kt(!1),e}function Y4(t){let e=k.useContext(Qi);return e||Kt(!1),e}function EI(t){let e=Y4(),n=e.matches[e.matches.length-1];return n.route.id||Kt(!1),n.route.id}function K4(){var t;let e=k.useContext(bI),n=G4(),r=EI();return e!==void 0?e:(t=n.errors)==null?void 0:t[r]}function J4(){let{router:t}=V4(SI.UseNavigateStable),e=EI(wI.UseNavigateStable),n=k.useRef(!1);return xI(()=>{n.current=!0}),k.useCallback(function(i,s){s===void 0&&(s={}),n.current&&(typeof i=="number"?t.navigate(i):t.navigate(i,Nd({fromRouteId:e},s)))},[t,e])}const v1={};function Q4(t,e,n){v1[t]||(v1[t]=!0)}function X4(t,e){t==null||t.v7_startTransition,t==null||t.v7_relativeSplatPath}function u0(t){let{to:e,replace:n,state:r,relative:i}=t;Gu()||Kt(!1);let{future:s,static:l}=k.useContext(Is),{matches:u}=k.useContext(Qi),{pathname:c}=En(),p=pp(),h=l0(e,a0(u,s.v7_relativeSplatPath),c,i==="path"),m=JSON.stringify(h);return k.useEffect(()=>p(JSON.parse(m),{replace:n,state:r,relative:i}),[p,m,i,n,r]),null}function c0(t){return F4(t.context)}function gt(t){Kt(!1)}function Z4(t){let{basename:e="/",children:n=null,location:r,navigationType:i=To.Pop,navigator:s,static:l=!1,future:u}=t;Gu()&&Kt(!1);let c=e.replace(/^\/*/,"/"),p=k.useMemo(()=>({basename:c,navigator:s,static:l,future:Nd({v7_relativeSplatPath:!1},u)}),[c,u,s,l]);typeof r=="string"&&(r=Vu(r));let{pathname:h="/",search:m="",hash:g="",state:_=null,key:x="default"}=r,S=k.useMemo(()=>{let w=Iu(h,c);return w==null?null:{location:{pathname:w,search:m,hash:g,state:_,key:x},navigationType:i}},[c,h,m,g,_,x,i]);return S==null?null:k.createElement(Is.Provider,{value:p},k.createElement(qm.Provider,{children:n,value:S}))}function kI(t){let{children:e,location:n}=t;return U4(ib(e),n)}new Promise(()=>{});function ib(t,e){e===void 0&&(e=[]);let n=[];return k.Children.forEach(t,(r,i)=>{if(!k.isValidElement(r))return;let s=[...e,i];if(r.type===k.Fragment){n.push.apply(n,ib(r.props.children,s));return}r.type!==gt&&Kt(!1),!r.props.index||!r.props.children||Kt(!1);let l={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&&(l.children=ib(r.props.children,s)),n.push(l)}),n}/** 83 * React Router DOM v6.30.3 84 * 85 * Copyright (c) Remix Software Inc. 86 * 87 * This source code is licensed under the MIT license found in the 88 * LICENSE.md file in the root directory of this source tree. 89 * 90 * @license MIT 91 */function Hf(){return Hf=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Hf.apply(this,arguments)}function CI(t,e){if(t==null)return{};var n={},r=Object.keys(t),i,s;for(s=0;s<r.length;s++)i=r[s],!(e.indexOf(i)>=0)&&(n[i]=t[i]);return n}function eq(t){return!!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)}function tq(t,e){return t.button===0&&(!e||e==="_self")&&!eq(t)}function sb(t){return t===void 0&&(t=""),new URLSearchParams(typeof t=="string"||Array.isArray(t)||t instanceof URLSearchParams?t:Object.keys(t).reduce((e,n)=>{let r=t[n];return e.concat(Array.isArray(r)?r.map(i=>[n,i]):[[n,r]])},[]))}function nq(t,e){let n=sb(t);return e&&e.forEach((r,i)=>
91{n.has(i)||e.getAll(i).forEach(s=>{n.append(i,s)})}),n}const rq=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],iq=["aria-current","caseSensitive","className","end","style","to","viewTransition","children"],sq="6";try{window.__reactRouterVersion=sq}catch{}const oq=k.createContext({isTransitioning:!1}),aq="startTransition",y1=IO[aq];function lq(t){let{basename:e,children:n,future:r,window:i}=t,s=k.useRef();s.current==null&&(s.current=u4({window:i,v5Compat:!0}));let l=s.current,[u,c]=k.useState({action:l.action,location:l.location}),{v7_startTransition:p}=r||{},h=k.useCallback(m=>{p&&y1?y1(()=>c(m)):c(m)},[c,p]);return k.useLayoutEffect(()=>l.listen(h),[l,h]),k.useEffect(()=>X4(r),[r]),k.createElement(Z4,{basename:e,children:n,location:u.location,navigationType:u.action,navigator:l,future:r})}const uq=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",cq=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,d0=k.forwardRef(function(e,n){let{onClick:r,relative:i,reloadDocument:s,replace:l,state:u,target:c,to:p,preventScrollReset:h,viewTransition:m}=e,g=CI(e,rq),{basename:_}=k.useContext(Is),x,S=!1;if(typeof p=="string"&&cq.test(p)&&(x=p,uq))try{let I=new URL(window.location.href),P=p.startsWith("//")?new URL(I.protocol+p):new URL(p),A=Iu(P.pathname,_);P.origin===I.origin&&A!=null?p=A+P.search+P.hash:S=!0}catch{}let w=O4(p,{relative:i}),C=hq(p,{replace:l,state:u,target:c,preventScrollReset:h,relative:i,viewTransition:m});function R(I){r&&r(I),I.defaultPrevented||C(I)}return k.createElement("a",Hf({},g,{href:x||w,onClick:S||s?r:R,ref:n,target:c}))}),dq=k.forwardRef(function(e,n){let{"aria-current":r="page",caseSensitive:i=!1,className:s="",end:l=!1,style:u,to:c,viewTransition:p,children:h}=e,m=CI(e,iq),g=Wm(c,{relative:m.relative}),_=En(),x=k.useContext(_I),{navigator:S,basename:w}=k.useContext(Is),C=x!=null&&fq(g)&&p===!0,R=S.encodeLocation?S.encodeLocation(g).pathname:g.pathname,I=_.pathname,P=x&&x.navigation&&x.navigation.location?x.navigation.location.pathname:null;i||(I=I.toLowerCase(),P=P?P.toLowerCase():null,R=R.toLowerCase()),P&&w&&(P=Iu(P,w)||P);const A=R!=="/"&&R.endsWith("/")?R.length-1:R.length;let N=I===R||!l&&I.startsWith(R)&&I.charAt(A)==="/",T=P!=null&&(P===R||!l&&P.startsWith(R)&&P.charAt(R.length)==="/"),L={isActive:N,isPending:T,isTransitioning:C},O=N?r:void 0,j;typeof s=="function"?j=s(L):j=[s,N?"active":null,T?"pending":null,C?"transitioning":null].filter(Boolean).join(" ");let B=typeof u=="function"?u(L):u;return k.createElement(d0,Hf({},m,{"aria-current":O,className:j,ref:n,style:B,to:c,viewTransition:p}),typeof h=="function"?h(L):h)});var ob;(function(t){t.UseScrollRestoration="useScrollRestoration",t.UseSubmit="useSubmit",t.UseSubmitFetcher="useSubmitFetcher",t.UseFetcher="useFetcher",t.useViewTransitionState="useViewTransitionState"})(ob||(ob={}));var _1;(function(t){t.UseFetcher="useFetcher",t.UseFetchers="useFetchers",t.UseScrollRestoration="useScrollRestoration"})(_1||(_1={}));function pq(t){let e=k.useContext($m);return e||Kt(!1),e}function hq(t,e){let{target:n,replace:r,state:i,preventScrollReset:s,relative:l,viewTransition:u}=e===void 0?{}:e,c=pp(),p=En(),h=Wm(t,{relative:l});return k.useCallback(m=>{if(tq(m,n)){m.preventDefault();let g=r!==void 0?r:Wf(p)===Wf(h);c(t,{replace:g,state:i,preventScrollReset:s,relative:l,viewTransition:u})}},[p,c,h,r,i,n,t,s,l,u])}function TI(t){let e=k.useRef(sb(t)),n=k.useRef(!1),r=En(),i=k.useMemo(()=>nq(r.search,n.current?null:e.current),[r.search]),s=pp(),l=k.useCallback((u,c)=>{const p=sb(typeof u=="function"?u(i):u);n.current=!0,s("?"+p,c)},[s,i]);return[i,l]}function fq(t,e){e===void 0&&(e={});let n=k.useContext(oq);n==null&&Kt(!1);let{basename:r}=pq(ob.useViewTransitionState),i=Wm(t,{relative:e.relative});if(!n.isTransitioning)return!1;let s=Iu(n.currentLocation.pathname,r)||n.currentLocation.pathname,l=Iu(n.nextLocation.pathname,r)||n.nextLocation.pathname;return rb(i.pathname,l)!=null||rb(i.pathname,s)!=null}const mq="modulepreload",gq=function(t){return"/"+t},b1={},$t=function(e,n,r){let i=Promise.resolve();if(n&&n.length>0){let l=function(p){return Promise.all(p.map(h=>Promise.resolve(h).then(m=>({status:"fulfilled",value:m}),m=>({status:"rejected",reason:m}))))};document.getElementsByTagName("link");const u=document.querySelector("meta[property=csp-nonce]"),c=(u==null?void 0:u.nonce)||(u==null?void 0:u.getAttribute("nonce"));i=l(n.map(p=>{if(p=gq(p),p in b1)return;b1[p]=!0;const h=p.endsWith(".css"),m=h?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${p}"]${m}`))return;const g=document.createElement("link");if(g.rel=h?"stylesheet":mq,h||(g.as="script"),g.crossOrigin="",g.href=p,c&&g.setAttribute("nonce",c),document.head.appendChild(g),h)return new Promise((_,x)=>{g.addEventListener("load",_),g.addEventListener("error",()=>x(new Error(`Unable to preload CSS for ${p}`)))})}))}function s(l){const u=new Event("vite:preloadError",{cancelable:!0});if(u.payload=l,window.dispatchEvent(u),!u.defaultPrevented)throw l}return i.then(l=>{for(const u of l||[])u.status==="rejected"&&s(u.reason);return e().catch(s)})};function vq(){if(console&&console.warn){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];Ba(e[0])&&(e[0]=`react-i18next:: ${e[0]}`),console.warn(...e)}}const x1={};function ab(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];Ba(e[0])&&x1[e[0]]||(Ba(e[0])&&(x1[e[0]]=new Date),vq(...e))}const PI=(t,e)=>()=>{if(t.isInitialized)e();else{const n=()=>{setTimeout(()=>{t.off("initialized",n)},0),e()};t.on("initialized",n)}},S1=(t,e,n)=>{t.loadNamespaces(e,PI(t,n))},w1=(t,e,n,r)=>
vendor: 4,831 bytes, lines 91-98
91{Ba(n)&&(n=[n]),n.forEach(i=>{t.options.ns.indexOf(i)<0&&t.options.ns.push(i)}),t.loadLanguages(e,PI(t,r))},yq=function(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const r=e.languages[0],i=e.options?e.options.fallbackLng:!1,s=e.languages[e.languages.length-1];if(r.toLowerCase()==="cimode")return!0;const l=(u,c)=>{const p=e.services.backendConnector.state[`${u}|${c}`];return p===-1||p===2};return n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&e.services.backendConnector.backend&&e.isLanguageChangingTo&&!l(e.isLanguageChangingTo,t)?!1:!!(e.hasResourceBundle(r,t)||!e.services.backendConnector.backend||e.options.resources&&!e.options.partialBundledLanguages||l(r,t)&&(!i||l(s,t)))},_q=function(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return!e.languages||!e.languages.length?(ab("i18n.languages were undefined or empty",e.languages),!0):e.options.ignoreJSONStructure!==void 0?e.hasLoadedNamespace(t,{lng:n.lng,precheck:(i,s)=>{if(n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&i.services.backendConnector.backend&&i.isLanguageChangingTo&&!s(i.isLanguageChangingTo,t))return!1}}):yq(t,e,n)},Ba=t=>typeof t=="string",bq=t=>typeof t=="object"&&t!==null,xq=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,Sq={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"©","©":"©","®":"®","®":"®","…":"â¦","…":"â¦","/":"/","/":"/"},wq=t=>Sq[t],Eq=t=>t.replace(xq,wq);let lb={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:Eq};const kq=function(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};lb={...lb,...t}},Cq=()=>lb;let RI;const Tq=t=>{RI=t},Pq=()=>RI,Rq={type:"3rdParty",init(t){kq(t.options.react),Tq(t)}},Aq=k.createContext();class Iq{constructor(){pn(this,"getUsedNamespaces",()=>Object.keys(this.usedNamespaces));this.usedNamespaces={}}addUsedNamespaces(e){e.forEach(n=>{this.usedNamespaces[n]||(this.usedNamespaces[n]=!0)})}}const Lq=(t,e)=>{const n=k.useRef();return k.useEffect(()=>{n.current=t},[t,e]),n.current},AI=(t,e,n,r)=>t.getFixedT(e,n,r),Mq=(t,e,n,r)=>k.useCallback(AI(t,e,n,r),[t,e,n,r]),Tt=function(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{i18n:n}=e,{i18n:r,defaultNS:i}=k.useContext(Aq)||{},s=n||r||Pq();if(s&&!s.reportNamespaces&&(s.reportNamespaces=new Iq),!s){ab("You will need to pass in an i18next instance by using initReactI18next");const P=(N,T)=>Ba(T)?T:bq(T)&&Ba(T.defaultValue)?T.defaultValue:Array.isArray(N)?N[N.length-1]:N,A=[P,{},!1];return A.t=P,A.i18n={},A.ready=!1,A}s.options.react&&s.options.react.wait!==void 0&&ab("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");const l={...Cq(),...s.options.react,...e},{useSuspense:u,keyPrefix:c}=l;let p=i||s.options&&s.options.defaultNS;p=Ba(p)?[p]:p||["translation"],s.reportNamespaces.addUsedNamespaces&&s.reportNamespaces.addUsedNamespaces(p);const h=(s.isInitialized||s.initializedStoreOnce)&&p.every(P=>_q(P,s,l)),m=Mq(s,e.lng||null,l.nsMode==="fallback"?p:p[0],c),g=()=>m,_=()=>AI(s,e.lng||null,l.nsMode==="fallback"?p:p[0],c),[x,S]=k.useState(g);let w=p.join();e.lng&&(w=`${e.lng}${w}`);const C=Lq(w),R=k.useRef(!0);k.useEffect(()=>{const{bindI18n:P,bindI18nStore:A}=l;R.current=!0,!h&&!u&&(e.lng?w1(s,e.lng,p,()=>{R.current&&S(_)}):S1(s,p,()=>{R.current&&S(_)})),h&&C&&C!==w&&R.current&&S(_);const N=()=>{R.current&&S(_)};return P&&s&&s.on(P,N),A&&s&&s.store.on(A,N),()=>{R.current=!1,P&&s&&P.split(" ").forEach(T=>s.off(T,N)),A&&s&&A.split(" ").forEach(T=>s.store.off(T,N))}},[s,w]),k.useEffect(()=>{R.current&&h&&S(g)},[s,c,h]);const I=[x,s,h];if(I.t=x,I.i18n=s,I.ready=h,h||!h&&!u)return I;throw new Promise(P=>{e.lng?w1(s,e.lng,p,()=>P()):S1(s,p,()=>P())})};var Da,Nq=(Da=class extends Error{constructor(n){super(new.target.formatMessage(new.target.kind,n.message,n.code,n.docsUrl),{cause:n.cause});pn(this,"clerkError",!0);pn(this,"code");pn(this,"longMessage");pn(this,"docsUrl");pn(this,"cause");Object.setPrototypeOf(this,Da.prototype),this.code=n.code,this.docsUrl=n.docsUrl,this.longMessage=n.longMessage,this.cause=n.cause}get name(){return this.constructor.name}toString(){return`[${this.name}] 92Message:${this.message}`}static formatMessage(n,r,i,s){const l="Clerk:",u=new RegExp(l.replace(" ","\\s*"),"i");return r=r.replace(u,""),r=`${l} ${r.trim()} 93 94(code="${i}") 95 96`,s&&(r+=` 97 98Docs: ${s}`),r}},pn(Da,"kind","ClerkError"),Da);const Oq=Object.freeze({InvalidProxyUrlErrorMessage:"The proxyUrl passed to Clerk is invali
98d. The expected value for proxyUrl is an absolute URL or a relative path with a leading '/'. (key={{url}})",InvalidPublishableKeyErrorMessage:"The publishableKey passed to Clerk is invalid. You can get your Publishable key at https://dashboard.clerk.com/last-active?path=api-keys. (key={{key}})",MissingPublishableKeyErrorMessage:"Missing publishableKey. You can get your key at https://dashboard.clerk.com/last-active?path=api-keys.",MissingSecretKeyErrorMessage:"Missing secretKey. You can get your key at https://dashboard.clerk.com/last-active?path=api-keys.",MissingClerkProvider:"{{source}} can only be used within the <ClerkProvider /> component. Learn more: https://clerk.com/docs/components/clerk-provider"});function II({packageName:t,customMessages:e}){let n=t;function r(s,l){if(!l)return`${n}: ${s}`;let u=s;const c=s.matchAll(/{{([a-zA-Z0-9-_]+)}}/g);for(const p of c){const h=(l[p[1]]||"").toString();u=u.replace(`{{${p[1]}}}`,h)}return`${n}: ${u}`}const i={...Oq,...e};return{setPackageName({packageName:s}){return typeof s=="string"&&(n=s),this},setMessages({customMessages:s}){return Object.assign(i,s||{}),this},throwInvalidPublishableKeyError(s){throw new Error(r(i.InvalidPublishableKeyErrorMessage,s))},throwInvalidProxyUrl(s){throw new Error(r(i.InvalidProxyUrlErrorMessage,s))},throwMissingPublishableKeyError(){throw new Error(r(i.MissingPublishableKeyErrorMessage))},throwMissingSecretKeyError(){throw new Error(r(i.MissingSecretKeyErrorMessage))},throwMissingClerkProviderError(s){throw new Error(r(i.MissingClerkProvider,s))},throw(s){throw new Error(r(s))}}}var ja,ub=(ja=class extends Nq{constructor(n,r){super({...r,message:n});pn(this,"clerkRuntimeError",!0);Object.setPrototypeOf(this,ja.prototype)}},pn(ja,"kind","ClerkRuntimeError"),ja);const Dq={strict_mfa:{afterMinutes:10,level:"multi_factor"},strict:{afterMinutes:10,level:"second_factor"},moderate:{afterMinutes:60,level:"second_factor"},lax:{afterMinutes:1440,level:"second_factor"}},jq=new Set(["first_factor","second_factor","multi_factor"]),Fq=new Set(["strict_mfa","strict","moderate","lax"]),Uq=t=>typeof t=="number"&&t>0,zq=t=>jq.has(t),Bq=t=>Fq.has(t),E1=t=>typeof t=="number"&&Number.isFinite(t)&&(t===-1||t>=0),yy=t=>t.replace(/^(org:)*/,"org:"),$q=(t,e)=>{const{orgId:n,orgRole:r,orgPermissions:i}=e,s=t.role!==void 0,l=t.permission!==void 0;return!s&&!l?"skip":s&&typeof t.role!="string"||l&&typeof t.permission!="string"||!n||s&&(typeof r!="string"||!r||yy(r)!==yy(t.role))||l&&(!Array.isArray(i)||!i.includes(yy(t.permission)))?"fail":"pass"},k1=(t,e)=>{const{org:n,user:r}=Wq(t),[i,s]=e.split(":"),l=s||i;return i==="org"?n.includes(l):i==="user"?r.includes(l):[...n,...r].includes(l)},qq=(t,e)=>{const{features:n,plans:r}=e,i=t.feature!==void 0,s=t.plan!==void 0;if(!i&&!s)return"skip";if(i&&typeof t.feature!="string"||s&&typeof t.plan!="string")return"fail";if(i){if(typeof n!="string"||!n)return"fail";try{if(!k1(n,t.feature))return"fail"}catch{return"fail"}}if(s){if(typeof r!="string"||!r)return"fail";try{if(!k1(r,t.plan))return"fail"}catch{return"fail"}}return"pass"},Wq=t=>{const e=t?t.split(",").map(n=>n.trim()):[];return{org:e.filter(n=>n.split(":")[0].includes("o")).map(n=>n.split(":")[1]),user:e.filter(n=>n.split(":")[0].includes("u")).map(n=>n.split(":")[1])}},Hq=t=>{if(!t)return!1;const e=i=>typeof i=="string"?Dq[i]:i,n=typeof t=="string"&&Bq(t),r=typeof t=="object"&&zq(t.level)&&Uq(t.afterMinutes);return n||r?e.bind(null,t):!1},Vq=(t,{factorVerificationAge:e})=>{if(t.reverification===void 0)return"skip";if(!e||!Array.isArray(e)||e.length!==2||!E1(e[0])||!E1(e[1]))return"fail";const n=Hq(t.reverification);if(!n)return"fail";const{level:r,afterMinutes:i}=n(),[s,l]=e;if(s===-1&&l===-1)return"fail";const u=s!==-1&&i>s,c=l!==-1&&i>l;switch(r){case"first_factor":return u?"pass":"fail";case"second_factor":return l===-1?u?"pass":"fail":c?"pass":"fail";case"multi_factor":return l===-1?u?"pass":"fail":s===-1?"fail":u&&c?"pass":"fail"}},Gq=t=>t.some(e=>e==="pass")&&t.every(e=>e==="pass"||e==="skip"),Yq=t=>e=>t.userId?Gq([$q(e,t),qq(e,t),Vq(e,t)]):!1,Kq=({authObject:{sessionId:t,sessionStatus:e,userId:n,actor:r,orgId:i,orgRole:s,orgSlug:l,signOut:u,getToken:c,has:p,sessionClaims:h},options:{treatPendingAsSignedOut:m=!0}})=>{if(t===void 0&&n===void 0)return{isLoaded:!1,isSignedIn:void 0,sessionId:t,sessionClaims:void 0,userId:n,actor:void 0,orgId:void 0,orgRole:void 0,orgSlug:void 0,has:void 0,signOut:u,getToken:c};if(t===null&&n===null)return{isLoaded:!0,isSignedIn:!1,sessionId:t,userId:n,sessionClaims:null,actor:null,orgId:null,orgRole:null,orgSlug:null,has:()=>!1,signOut:u,getToken:c};if(m&&e==="pending")return{isLoaded:!0,isSignedIn:!1,sessionId:null,userId:null,sessionClaims:null,actor:null,orgId:null,orgRole:null,orgSlug:null,has:()=>!1,signOut:u,getToken:c};if(t&&h&&n&&i&&s)return{isLoaded:!0,isSignedIn:!0,sessionId:t,sessionClaims:h,userId:n,actor:r||null,orgId:i,orgRole:s,orgSlug:l||null,has:p,signOut:u,getToken:c};if(t&&h&&n&&!i)return{isLoaded:!0,isSignedIn:!0,sessionId:t,sessionClaims:h,userId:n,actor:r||null,orgId:null,orgRole:null,orgSlug:null,has:p,signOut:u,getToken:c}},Jq=[".lcl.dev",".stg.dev",".lclstage.dev",".stgstage.dev",".dev.lclclerk.com",".stg.lclclerk.com",".accounts.lclclerk.com","accountsstage.dev","accounts.dev"],LI=t=>typeof atob<"u"&&typeof atob=="function"?atob(t):typeof global<"u"&&global.Buffer?new global.Buffer(t,"base64").toString():t,MI="pk_live_",Qq="pk_test_";function NI(t){if(!t.endsWith("$"))return!1;const e=t.slice(0,-1);return e.includes("$")?!1:e.includes(".")}function C1(t,e={}){if(t=t||"",!t||!cb(t)){if(e.fatal&&!t)throw new Error("Publishable key is missing. Ensure that your publishable key is correctly configured. Double-check your environment c
98onfiguration for your keys, or access them here: https://dashboard.clerk.com/last-active?path=api-keys");if(e.fatal&&!cb(t))throw new Error("Publishable key not valid.");return null}const n=t.startsWith(MI)?"production":"development";let r;try{r=LI(t.split("_")[2])}catch{if(e.fatal)throw new Error("Publishable key not valid: Failed to decode key.");return null}if(!NI(r)){if(e.fatal)throw new Error("Publishable key not valid: Decoded key has invalid format.");return null}let i=r.slice(0,-1);return e.proxyUrl?i=e.proxyUrl:n!=="development"&&e.domain&&e.isSatellite&&(i=`clerk.${e.domain}`),{instanceType:n,frontendApi:i}}function cb(t=""){try{if(!(t.startsWith(MI)||t.startsWith(Qq)))return!1;const e=t.split("_");if(e.length!==3)return!1;const n=e[2];return n?NI(LI(n)):!1}catch{return!1}}function Xq(){const t=new Map;return{isDevOrStagingUrl:e=>{if(!e)return!1;const n=typeof e=="string"?e:e.hostname;let r=t.get(n);return r===void 0&&(r=Jq.some(i=>n.endsWith(i)),t.set(n,r)),r}}}const Zq="METHOD_CALLED",eW=.1;function OI(t,e){return{event:Zq,eventSamplingRate:eW,payload:{method:t,...e}}}var _y={exports:{}},by={};/** 99 * @license React 100 * use-sync-external-store-shim.production.js 101 * 102 * Copyright (c) Meta Platforms, Inc. and affiliates. 103 * 104 * This source code is licensed under the MIT license found in the 105 * LICENSE file in the root directory of this source tree. 106 */var T1;function tW(){if(T1)return by;T1=1;var t=Sm();function e(m,g){return m===g&&(m!==0||1/m===1/g)||m!==m&&g!==g}var n=typeof Object.is=="function"?Object.is:e,r=t.useState,i=t.useEffect,s=t.useLayoutEffect,l=t.useDebugValue;function u(m,g){var _=g(),x=r({inst:{value:_,getSnapshot:g}}),S=x[0].inst,w=x[1];return s(function(){S.value=_,S.getSnapshot=g,c(S)&&w({inst:S})},[m,_,g]),i(function(){return c(S)&&w({inst:S}),m(function(){c(S)&&w({inst:S})})},[m]),l(_),_}function c(m){var g=m.getSnapshot;m=m.value;try{var _=g();return!n(m,_)}catch{return!0}}function p(m,g){return g()}var h=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?p:u;return by.useSyncExternalStore=t.useSyncExternalStore!==void 0?t.useSyncExternalStore:h,by}var P1;function nW(){return P1||(P1=1,_y.exports=tW()),_y.exports}nW();const rW=0,iW=1,sW=2;var R1=Object.prototype.hasOwnProperty;function db(t,e){var n,r;if(t===e)return!0;if(t&&e&&(n=t.constructor)===e.constructor){if(n===Date)return t.getTime()===e.getTime();if(n===RegExp)return t.toString()===e.toString();if(n===Array){if((r=t.length)===e.length)for(;r--&&db(t[r],e[r]););return r===-1}if(!n||typeof t=="object"){r=0;for(n in t)if(R1.call(t,n)&&++r&&!R1.call(e,n)||!(n in e)||!db(t[n],e[n]))return!1;return Object.keys(e).length===r}}return t!==t&&e!==e}const ho=new WeakMap,Po=()=>{},Or=Po(),Vf=Object,xi=t=>t===Or,fo=t=>typeof t=="function",Ya=(t,e)=>({...t,...e}),oW=t=>fo(t.then),xy={},Nh={},DI="undefined",Hm=typeof window!=DI,pb=typeof document!=DI,aW=Hm&&"Deno"in window,lW=(t,e)=>{const n=ho.get(t);return[()=>!xi(e)&&t.get(e)||xy,r=>{if(!xi(e)){const i=t.get(e);e in Nh||(Nh[e]=i),n[5](e,Ya(i,r),i||xy)}},n[6],()=>!xi(e)&&e in Nh?Nh[e]:!xi(e)&&t.get(e)||xy]};let hb=!0;const uW=()=>hb,[fb,mb]=Hm&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[Po,Po],cW=()=>{const t=pb&&document.visibilityState;return xi(t)||t!=="hidden"},dW=t=>(pb&&document.addEventListener("visibilitychange",t),fb("focus",t),()=>{pb&&document.removeEventListener("visibilitychange",t),mb("focus",t)}),pW=t=>{const e=()=>{hb=!0,t()},n=()=>{hb=!1};return fb("online",e),fb("offline",n),()=>{mb("online",e),mb("offline",n)}},hW={isOnline:uW,isVisible:cW},fW={initFocus:dW,initReconnect:pW};K.useId;const p0=!Hm||aW,mW=p0?k.useEffect:k.useLayoutEffect,Sy=typeof navigator<"u"&&navigator.connection,A1=!p0&&Sy&&(["slow-2g","2g"].includes(Sy.effectiveType)||Sy.saveData),Oh=new WeakMap,gW=t=>Vf.prototype.toString.call(t),wy=(t,e)=>t===`[object ${e}]`;let vW=0;const gb=t=>{const e=typeof t,n=gW(t),r=wy(n,"Date"),i=wy(n,"RegExp"),s=wy(n,"Object");let l,u;if(Vf(t)===t&&!r&&!i){if(l=Oh.get(t),l)return l;if(l=++vW+"~",Oh.set(t,l),Array.isArray(t)){for(l="@",u=0;u<t.length;u++)l+=gb(t[u])+",";Oh.set(t,l)}if(s){l="#";const c=Vf.keys(t).sort();for(;!xi(u=c.pop());)xi(t[u])||(l+=u+":"+gb(t[u])+",");Oh.set(t,l)}}else l=r?t.toJSON():e=="symbol"?t.toString():e=="string"?JSON.stringify(t):""+t;return l},jI=t=>{if(fo(t))try{t=t()}catch{t=""}const e=t;return t=typeof t=="string"?t:(Array.isArray(t)?t.length:t)?gb(t):"",[t,e]};let yW=0;const I1=()=>++yW;async function _W(...t){const[e,n,r,i]=t,s=Ya({populateCache:!0,throwOnError:!0},typeof i=="boolean"?{revalidate:i}:i||{});let l=s.populateCache;const u=s.rollbackOnError;let c=s.optimisticData;const p=g=>typeof u=="function"?u(g):u!==!1,h=s.throwOnError;if(fo(n)){const g=n,_=[],x=e.keys();for(const S of x)!/^\$(inf|sub)\$/.test(S)&&g(e.get(S)._k)&&_.push(S);return Promise.all(_.map(m))}return m(n);async function m(g){const[_]=jI(g);
106if(!_)return;const[x,S]=lW(e,_),[w,C,R,I]=ho.get(e),P=()=>{const W=w[_];return(fo(s.revalidate)?s.revalidate(x().data,g):s.revalidate!==!1)&&(delete R[_],delete I[_],W&&W[0])?W[0](sW).then(()=>x().data):x().data};if(t.length<3)return P();let A=r,N,T=!1;const L=I1();C[_]=[L,0];const O=!xi(c),j=x(),B=j.data,q=j._c,G=xi(q)?B:q;if(O&&(c=fo(c)?c(G,B):c,S({data:c,_c:G})),fo(A))try{A=A(G)}catch(W){N=W,T=!0}if(A&&oW(A))if(A=await A.catch(W=>{N=W,T=!0}),L!==C[_][0]){if(T)throw N;return A}else T&&O&&p(N)&&(l=!0,S({data:G,_c:Or}));if(l&&!T)if(fo(l)){const W=l(A,G);S({data:W,error:Or,_c:Or})}else S({data:A,error:Or,_c:Or});if(C[_][1]=I1(),Promise.resolve(P()).then(()=>{S({_c:Or})}),T){if(h)throw N;return}return A}}const L1=(t,e)=>{for(const n in t)t[n][0]&&t[n][0](e)},FI=(t,e)=>{if(!ho.has(t)){const n=Ya(fW,e),r=Object.create(null),i=_W.bind(Or,t);let s=Po;const l=Object.create(null),u=(h,m)=>{const g=l[h]||[];return l[h]=g,g.push(m),()=>g.splice(g.indexOf(m),1)},c=(h,m,g)=>{t.set(h,m);const _=l[h];if(_)for(const x of _)x(m,g)},p=()=>{if(!ho.has(t)&&(ho.set(t,[r,Object.create(null),Object.create(null),Object.create(null),i,c,u]),!p0)){const h=n.initFocus(setTimeout.bind(Or,L1.bind(Or,r,rW))),m=n.initReconnect(setTimeout.bind(Or,L1.bind(Or,r,iW)));s=()=>{h&&h(),m&&m(),ho.delete(t)}}};return p(),[t,i,p,s]}return[t,ho.get(t)[4]]},bW=(t,e,n,r,i)=>{const s=n.errorRetryCount,l=i.retryCount,u=~~((Math.random()+.5)*(1<<(l<8?l:8)))*n.errorRetryInterval;!xi(s)&&l>s||setTimeout(r,u,i)},xW=db,[h0,SW]=FI(new Map),wW=Ya({onLoadingSlow:Po,onSuccess:Po,onError:Po,onErrorRetry:bW,onDiscarded:Po,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:A1?1e4:5e3,focusThrottleInterval:5*1e3,dedupingInterval:2*1e3,loadingTimeout:A1?5e3:3e3,compare:xW,isPaused:()=>!1,cache:h0,mutate:SW,fallback:{}},hW),EW=(t,e)=>{const n=Ya(t,e);if(e){const{use:r,fallback:i}=t,{use:s,fallback:l}=e;r&&s&&(n.use=r.concat(s)),i&&l&&(n.fallback=Ya(i,l))}return n},M1=k.createContext({}),kW=t=>{const{value:e}=t,n=k.useContext(M1),r=fo(e),i=k.useMemo(()=>r?e(n):e,[r,n,e]),s=k.useMemo(()=>r?i:EW(n,i),[r,n,i]),l=i&&i.provider,u=k.useRef(Or);l&&!u.current&&(u.current=FI(l(s.cache||h0),i));const c=u.current;return c&&(s.cache=c[0],s.mutate=c[1]),mW(()=>{if(c)return c[2]&&c[2](),c[3]},[]),k.createElement(M1.Provider,Ya(t,{value:s}))},CW="$inf$",UI=Hm&&window.__SWR_DEVTOOLS_USE__,TW=UI?window.__SWR_DEVTOOLS_USE__:[],PW=()=>{UI&&(window.__SWR_DEVTOOLS_REACT__=K)},RW=t=>(e,n,r)=>t(e,n&&((...s)=>{const[l]=jI(e),[,,,u]=ho.get(h0);if(l.startsWith(CW))return n(...s);const c=u[l];return xi(c)?n(...s):(delete u[l],c)}),r);TW.concat(RW);PW();K.use;const AW=Vf.defineProperty(kW,"defaultValue",{value:wW});var N1=Object.prototype.hasOwnProperty;function O1(t,e,n){for(n of t.keys())if(ud(n,e))return n}function ud(t,e){var n,r,i;if(t===e)return!0;if(t&&e&&(n=t.constructor)===e.constructor){if(n===Date)return t.getTime()===e.getTime();if(n===RegExp)return t.toString()===e.toString();if(n===Array){if((r=t.length)===e.length)for(;r--&&ud(t[r],e[r]););return r===-1}if(n===Set){if(t.size!==e.size)return!1;for(r of t)if(i=r,i&&typeof i=="object"&&(i=O1(e,i),!i)||!e.has(i))return!1;return!0}if(n===Map){if(t.size!==e.size)return!1;for(r of t)if(i=r[0],i&&typeof i=="object"&&(i=O1(e,i),!i)||!ud(r[1],e.get(i)))return!1;return!0}if(n===ArrayBuffer)t=new Uint8Array(t),e=new Uint8Array(e);else if(n===DataView){if((r=t.byteLength)===e.byteLength)for(;r--&&t.getInt8(r)===e.getInt8(r););return r===-1}if(ArrayBuffer.isView(t)){if((r=t.byteLength)===e.byteLength)for(;r--&&t[r]===e[r];);return r===-1}if(!n||typeof t=="object"){r=0;for(n in t)if(N1.call(t,n)&&++r&&!N1.call(e,n)||!(n in e)||!ud(t[n],e[n]))return!1;return Object.keys(e).length===r}}return t!==t&&e!==e}function IW(t,e){if(!t)throw typeof e=="string"?new Error(e):new Error(`${e.displayName} not found`)}const Ls=(t,e)=>{const{assertCtxFn:n=IW}={},r=K.createContext(void 0);return r.displayName=t,[r,()=>{const l=K.useContext(r);return n(l,`${t} not found`),l.value},()=>{const l=K.useContext(r);return l?l.value:{}}]};function LW({swrConfig:t,children:e}){return K.createElement(AW,{value:t},e)}const[zI,BI]=Ls("ClerkInstanceContext"),[MW,NW]=Ls("UserContext"),[OW]=Ls("ClientContext"),[DW]=Ls("SessionContext");K.createContext({});const[jW]=Ls("CheckoutContext"),FW=({children:t,...e})=>K.createElement(jW.Provider,{value:{value:e}},t),[UW]=Ls("OrganizationContext"),zW=({children:t,organization:e,swrConfig:n})=>K.createElement(LW,{swrConfig:n},K.createElement(UW.Provider,{value:{value:{organization:e}}},t));function $I(t){if(!K.useContext(zI)){if(typeof t=="function"){t();return}throw new Error(`${t} can only be used within the <ClerkProvider /> component. 107 108Possible fixes: 1091. Ensure that the <ClerkProvider /> is correctly wrapping your application where this component is used. 1102. Check for multiple versions of the \`@clerk/shared\` package in y
110our project. Use a tool like \`npm ls @clerk/shared\` to identify multiple versions, and update your dependencies to only rely on one. 111 112Learn more: https://clerk.com/docs/components/clerk-provider`.trim())}}typeof window<"u"?K.useLayoutEffect:K.useEffect;const D1="useUser";function kX(){var e;$I(D1);const t=NW();return(e=BI().telemetry)==null||e.record(OI(D1)),t===void 0?{isLoaded:!1,isSignedIn:void 0,user:void 0}:t===null?{isLoaded:!0,isSignedIn:!1,user:null}:{isLoaded:!0,isSignedIn:!0,user:t}}const j1=ud,BW=t=>{const e=k.useRef(t);return k.useEffect(()=>{e.current=t},[t]),e.current},Lr=(t,e,n)=>{const r=!!n,i=k.useRef(n);k.useEffect(()=>{i.current=n},[n]),k.useEffect(()=>{if(!r||!t)return()=>{};const s=(...l)=>{i.current&&i.current(...l)};return t.on(e,s),()=>{t.off(e,s)}},[r,e,t,i])},qI=K.createContext(null);qI.displayName="ElementsContext";const $W=(t,e)=>{if(!t)throw new Error(`Could not find Elements context; You need to wrap the part of your app that ${e} in an <Elements> provider.`);return t},Gf=t=>t!==null&&typeof t=="object",qW=(t,e,n)=>Gf(t)?Object.keys(t).reduce((r,i)=>{const s=!Gf(e)||!WI(t[i],e[i]);return n.includes(i)?(s&&console.warn(`Unsupported prop change: options.${i} is not a mutable property.`),r):s?{...r||{},[i]:t[i]}:r},null):null,F1="[object Object]",WI=(t,e)=>{if(!Gf(t)||!Gf(e))return t===e;const n=Array.isArray(t);if(n!==Array.isArray(e))return!1;const r=Object.prototype.toString.call(t)===F1;if(r!==(Object.prototype.toString.call(e)===F1))return!1;if(!r&&!n)return t===e;const i=Object.keys(t),s=Object.keys(e);if(i.length!==s.length)return!1;const l={};for(let m=0;m<i.length;m+=1)l[i[m]]=!0;for(let m=0;m<s.length;m+=1)l[s[m]]=!0;const u=Object.keys(l);if(u.length!==i.length)return!1;const c=t,p=e,h=m=>WI(c[m],p[m]);return u.every(h)},U1=t=>$W(K.useContext(qI),t),WW=t=>t.charAt(0).toUpperCase()+t.slice(1),HW=(t,e)=>{const n=`${WW(t)}Element`,s=e?l=>{U1(`mounts <${n}>`);const{id:u,className:c}=l;return K.createElement("div",{id:u,className:c})}:({id:l,className:u,fallback:c,options:p={},onBlur:h,onFocus:m,onReady:g,onChange:_,onEscape:x,onClick:S,onLoadError:w,onLoaderStart:C,onNetworksChange:R,onConfirm:I,onCancel:P,onShippingAddressChange:A,onShippingRateChange:N})=>{const T=U1(`mounts <${n}>`),L="elements"in T?T.elements:null,[O,j]=K.useState(null),B=K.useRef(null),q=K.useRef(null),[G,W]=k.useState(!1);Lr(O,"blur",h),Lr(O,"focus",m),Lr(O,"escape",x),Lr(O,"click",S),Lr(O,"loaderror",w),Lr(O,"loaderstart",C),Lr(O,"networkschange",R),Lr(O,"confirm",I),Lr(O,"cancel",P),Lr(O,"shippingaddresschange",A),Lr(O,"shippingratechange",N),Lr(O,"change",_);let ie;g&&(ie=()=>{W(!0),g(O)}),Lr(O,"ready",ie),K.useLayoutEffect(()=>{if(B.current===null&&q.current!==null&&L){let de=null;L&&(de=L.create(t,p)),B.current=de,j(de),de&&de.mount(q.current)}},[L,p]);const se=BW(p);return K.useEffect(()=>{if(!B.current)return;const de=qW(p,se,["paymentRequest"]);de&&"update"in B.current&&B.current.update(de)},[p,se]),K.useLayoutEffect(()=>()=>{if(B.current&&typeof B.current.destroy=="function")try{B.current.destroy(),B.current=null}catch{}},[]),K.createElement(K.Fragment,null,!G&&c,K.createElement("div",{id:l,style:{height:G?"unset":"0px",visibility:G?"visible":"hidden"},className:u,ref:q}))};return s.displayName=n,s.__elementType=t,s};HW("payment",typeof window>"u");Ls("PaymentElementContext");Ls("StripeUtilsContext");var ki=II({packageName:"@clerk/clerk-react"});function VW(t){ki.setMessages(t).setPackageName(t)}var[GW,YW]=Ls("AuthContext"),KW=zI,HI=BI,JW="You've added multiple <ClerkProvider> components in your React component tree. Wrap your components in a single <ClerkProvider>.",QW=t=>`You've passed multiple children components to <${t}/>. You can only pass a single child component or text.`,XW="Invalid state. Feel free to submit a bug or reach out to support here: https://clerk.com/support",Ey="Unsupported usage of isSatellite, domain or proxyUrl. The usage of isSatellite, domain or proxyUrl as function is not supported in non-browser environments.",ZW="<UserProfile.Page /> component needs to be a direct child of `<UserProfile />` or `<UserButton />`.",eH="<UserProfile.Link /> component needs to be a direct child of `<UserProfile />` or `<UserButton />`.",tH="<OrganizationProfile.Page /> component needs to be a direct child of `<OrganizationProfile />` or `<OrganizationSwitcher />`.",nH="<OrganizationProfile.Link /> component needs to be a direct child of `<OrganizationProfile />` or `<OrganizationSwitcher />`.",rH=t=>`<${t} /> can only accept <${t}.Page /> and <${t}.Link /> as its children. Any other provided component will be ignored. Additionally, please ensure that the component is rendered in a client component.`,iH=t=>`Missing props. <${t}.Page /> component requires the following props: url, label, labelIcon, alongside with children to be rendered inside the page.`,sH=t=>`Missing props. <${t}.Link /> component requires the following props: url, label and labelIcon.`,oH="<UserButton /> can only accept <UserButton.UserProfilePage />, <UserButton.UserProfileLink /> and <UserButton.MenuItems /> as its children. Any other provided component will be ignored. Additionally, please ensure that the component is rendered in a client component.",aH="<UserButton.MenuItems /> component can only accept <UserButton.Action /> and <UserButton.Link /> as its children. Any other provided component will be ignored. Additionally, please ensure that the component is rendered in a client component.",lH="<UserButton.MenuItems /> component needs to be a direct child of `<UserButton />`.",uH="<UserButton.Action /> component needs to be a direct child of `<UserButton.MenuItems />`.",cH="<UserButton.Link /> component needs to be a direct child of `<UserButton.MenuItems />
112`.",dH="Missing props. <UserButton.Link /> component requires the following props: href, label and labelIcon.",pH="Missing props. <UserButton.Action /> component requires the following props: label.",Vm=t=>{$I(()=>{ki.throwMissingClerkProviderError({source:t})})},VI=t=>new Promise(e=>{const n=r=>{["ready","degraded"].includes(r)&&(e(),t.off("status",n))};t.on("status",n,{notify:!0})}),hH=t=>async e=>(await VI(t),t.session?t.session.getToken(e):null),fH=t=>async(...e)=>(await VI(t),t.signOut(...e)),Wo=(t={})=>{var e;Vm("useAuth");const{treatPendingAsSignedOut:n,...r}=t??{},i=r;let l=YW();l.sessionId===void 0&&l.userId===void 0&&(l=i??{});const u=HI(),c=k.useCallback(hH(u),[u]),p=k.useCallback(fH(u),[u]);return(e=u.telemetry)==null||e.record(OI("useAuth",{treatPendingAsSignedOut:n})),mH({...l,getToken:c,signOut:p},{treatPendingAsSignedOut:n})};function mH(t,{treatPendingAsSignedOut:e=!0}={}){const{userId:n,orgId:r,orgRole:i,has:s,signOut:l,getToken:u,orgPermissions:c,factorVerificationAge:p,sessionClaims:h}=t??{},m=k.useCallback(_=>s?s(_):Yq({userId:n,orgId:r,orgRole:i,orgPermissions:c,factorVerificationAge:p,features:(h==null?void 0:h.fea)||"",plans:(h==null?void 0:h.pla)||""})(_),[s,n,r,i,c,p,h]),g=Kq({authObject:{...t,getToken:u,signOut:l,has:m},options:{treatPendingAsSignedOut:e}});return g||ki.throw(XW)}var Pt=(t,e)=>{const r=(typeof e=="string"?e:e==null?void 0:e.component)||t.displayName||t.name||"Component";t.displayName=r;const i=typeof e=="string"?void 0:e,s=l=>{Vm(r||"withClerk");const u=HI();return!u.loaded&&!(i!=null&&i.renderWhileLoading)?null:K.createElement(t,{...l,component:r,clerk:u})};return s.displayName=`withClerk(${r})`,s};const gH=()=>{try{return!1}catch{}return!1},vH=()=>{try{return!1}catch{}return!1},yH=()=>{try{return!0}catch{}return!1},z1=new Set,f0=(t,e,n)=>{const r=vH()||yH(),i=t;z1.has(i)||r||(z1.add(i),console.warn(`Clerk - DEPRECATION WARNING: "${t}" is deprecated and will be removed in the next major release. 113${e}`))};var ky=({children:t,treatPendingAsSignedOut:e})=>{Vm("SignedIn");const{userId:n}=Wo({treatPendingAsSignedOut:e});return n?t:null},B1=({children:t,treatPendingAsSignedOut:e})=>{Vm("SignedOut");const{userId:n}=Wo({treatPendingAsSignedOut:e});return n===null?t:null};Pt(({clerk:t,...e})=>{const{client:n,session:r}=t,i=n.signedInSessions?n.signedInSessions.length>0:n.activeSessions&&n.activeSessions.length>0;return K.useEffect(()=>{r===null&&i?t.redirectToAfterSignOut():t.redirectToSignIn(e)},[]),null},"RedirectToSignIn");Pt(({clerk:t,...e})=>(K.useEffect(()=>{t.redirectToSignUp(e)},[]),null),"RedirectToSignUp");Pt(({clerk:t,...e})=>(K.useEffect(()=>{t.redirectToTasks(e)},[]),null),"RedirectToTasks");Pt(({clerk:t})=>(K.useEffect(()=>{f0("RedirectToUserProfile","Use the `redirectToUserProfile()` method instead."),t.redirectToUserProfile()},[]),null),"RedirectToUserProfile");Pt(({clerk:t})=>(K.useEffect(()=>{f0("RedirectToOrganizationProfile","Use the `redirectToOrganizationProfile()` method instead."),t.redirectToOrganizationProfile()},[]),null),"RedirectToOrganizationProfile");Pt(({clerk:t})=>(K.useEffect(()=>{f0("RedirectToCreateOrganization","Use the `redirectToCreateOrganization()` method instead."),t.redirectToCreateOrganization()},[]),null),"RedirectToCreateOrganization");Pt(({clerk:t,...e})=>(K.useEffect(()=>{t.handleRedirectCallback(e)},[]),null),"AuthenticateWithRedirectCallback");function Cy(t,e,n){if(typeof t=="function")return t(e);if(typeof t<"u")return t;if(typeof n<"u")return n}const or=t=>{gH()&&console.error(`Clerk: ${t}`)},$1=(t,...e)=>{const n={...t};for(const r of e)delete n[r];return n};var Gm=t=>e=>{try{return K.Children.only(t)}catch{return ki.throw(QW(e))}},Ym=(t,e)=>(t||(t=e),typeof t=="string"&&(t=K.createElement("button",null,t)),t),Km=t=>(...e)=>{if(t&&typeof t=="function")return t(...e)};function _H(t){return typeof t=="function"}var Dh=new Map;function bH(t,e,n=1){K.useEffect(()=>{const r=Dh.get(t)||0;return r==n?ki.throw(e):(Dh.set(t,r+1),()=>{Dh.set(t,(Dh.get(t)||1)-1)})},[])}function xH(t,e,n){const r=t.displayName||t.name||e||"Component",i=s=>(bH(e,n),K.createElement(t,{...s}));return i.displayName=`withMaxAllowedInstancesGuard(${r})`,i}var cd=t=>{const[e,n]=k.useState(new Map);return t.map(r=>({id:r.id,mount:i=>n(s=>new Map(s).set(String(r.id),i)),unmount:()=>n(i=>{const s=new Map(i);return s.set(String(r.id),null),s}),portal:()=>{const i=e.get(String(r.id));return i?l4.createPortal(r.component,i):null}}))},rr=(t,e)=>!!t&&K.isValidElement(t)&&(t==null?void 0:t.type)===e,GI=(t,e)=>JI({children:t,reorderItemsLabels:["account","security","billing","apiKeys"],LinkComponent:fp,PageComponent:hp,MenuItemsComponent:Qm,componentName:"UserProfile"},e),YI=(t,e)=>JI({children:t,reorderItemsLabels:["general","members","billing","apiKeys"],LinkComponent:Zm,PageComponent:Xm,componentName:"OrganizationProfile"},e),KI=t=>{const e=[],n=[Zm,Xm,Qm,hp,fp];
113return K.Children.forEach(t,r=>{n.some(i=>rr(r,i))||e.push(r)}),e},JI=(t,e)=>{const{children:n,LinkComponent:r,PageComponent:i,MenuItemsComponent:s,reorderItemsLabels:l,componentName:u}=t,{allowForAnyChildren:c=!1}=e||{},p=[];K.Children.forEach(n,R=>{if(!rr(R,i)&&!rr(R,r)&&!rr(R,s)){R&&!c&&or(rH(u));return}const{props:I}=R,{children:P,label:A,url:N,labelIcon:T}=I;if(rr(R,i))if(q1(I,l))p.push({label:A});else if(Ty(I))p.push({label:A,labelIcon:T,children:P,url:N});else{or(iH(u));return}if(rr(R,r))if(Py(I))p.push({label:A,labelIcon:T,url:N});else{or(sH(u));return}});const h=[],m=[],g=[];p.forEach((R,I)=>{if(Ty(R)){h.push({component:R.children,id:I}),m.push({component:R.labelIcon,id:I});return}Py(R)&&g.push({component:R.labelIcon,id:I})});const _=cd(h),x=cd(m),S=cd(g),w=[],C=[];return p.forEach((R,I)=>{if(q1(R,l)){w.push({label:R.label});return}if(Ty(R)){const{portal:P,mount:A,unmount:N}=_.find(j=>j.id===I),{portal:T,mount:L,unmount:O}=x.find(j=>j.id===I);w.push({label:R.label,url:R.url,mount:A,unmount:N,mountIcon:L,unmountIcon:O}),C.push(P),C.push(T);return}if(Py(R)){const{portal:P,mount:A,unmount:N}=S.find(T=>T.id===I);w.push({label:R.label,url:R.url,mountIcon:A,unmountIcon:N}),C.push(P);return}}),{customPages:w,customPagesPortals:C}},q1=(t,e)=>{const{children:n,label:r,url:i,labelIcon:s}=t;return!n&&!i&&!s&&e.some(l=>l===r)},Ty=t=>{const{children:e,label:n,url:r,labelIcon:i}=t;return!!e&&!!r&&!!i&&!!n},Py=t=>{const{children:e,label:n,url:r,labelIcon:i}=t;return!e&&!!r&&!!i&&!!n},SH=(t,e)=>{var n;return wH({children:t,reorderItemsLabels:["manageAccount","signOut"],MenuItemsComponent:Qm,MenuActionComponent:XI,MenuLinkComponent:ZI,UserProfileLinkComponent:fp,UserProfilePageComponent:hp,allowForAnyChildren:(n=e==null?void 0:e.allowForAnyChildren)!=null?n:!1})},wH=({children:t,MenuItemsComponent:e,MenuActionComponent:n,MenuLinkComponent:r,UserProfileLinkComponent:i,UserProfilePageComponent:s,reorderItemsLabels:l,allowForAnyChildren:u=!1})=>{const c=[],p=[],h=[];K.Children.forEach(t,S=>{if(!rr(S,e)&&!rr(S,i)&&!rr(S,s)){S&&!u&&or(oH);return}if(rr(S,i)||rr(S,s))return;const{props:w}=S;K.Children.forEach(w.children,C=>{if(!rr(C,n)&&!rr(C,r)){C&&or(aH);return}const{props:R}=C,{label:I,labelIcon:P,href:A,onClick:N,open:T}=R;if(rr(C,n))if(W1(R,l))c.push({label:I});else if(Ry(R)){const L={label:I,labelIcon:P};if(N!==void 0)c.push({...L,onClick:N});else if(T!==void 0)c.push({...L,open:T.startsWith("/")?T:`/${T}`});else{or("Custom menu item must have either onClick or open property");return}}else{or(pH);return}if(rr(C,r))if(Ay(R))c.push({label:I,labelIcon:P,href:A});else{or(dH);return}})});const m=[],g=[];c.forEach((S,w)=>{Ry(S)&&m.push({component:S.labelIcon,id:w}),Ay(S)&&g.push({component:S.labelIcon,id:w})});const _=cd(m),x=cd(g);return c.forEach((S,w)=>{if(W1(S,l)&&p.push({label:S.label}),Ry(S)){const{portal:C,mount:R,unmount:I}=_.find(A=>A.id===w),P={label:S.label,mountIcon:R,unmountIcon:I};"onClick"in S?P.onClick=S.onClick:"open"in S&&(P.open=S.open),p.push(P),h.push(C)}if(Ay(S)){const{portal:C,mount:R,unmount:I}=x.find(P=>P.id===w);p.push({label:S.label,href:S.href,mountIcon:R,unmountIcon:I}),h.push(C)}}),{customMenuItems:p,customMenuItemsPortals:h}},W1=(t,e)=>{const{children:n,label:r,onClick:i,labelIcon:s}=t;return!n&&!i&&!s&&e.some(l=>l===r)},Ry=t=>{const{label:e,labelIcon:n,onClick:r,open:i}=t;return!!n&&!!e&&(typeof r=="function"||typeof i=="string")},Ay=t=>{const{label:e,href:n,labelIcon:r}=t;return!!n&&!!r&&!!e},EH=t=>{const e=t==null?void 0:t.isReady;return n=>new Promise((r,i)=>{const{root:s=document==null?void 0:document.body,selector:l,timeout:u=0}=n;if(!s){i(new Error("No root element provided"));return}let c=s;if(l&&(c=s==null?void 0:s.querySelector(l)),e(c,l)){r();return}const p=new MutationObserver(h=>{for(const m of h)if(!c&&l&&(c=s==null?void 0:s.querySelector(l)),(t.childList&&m.type==="childList"||t.attributes&&m.type==="attributes")&&e(c,l)){p.disconnect(),r();return}});p.observe(s,t),u>0&&setTimeout(()=>{p.disconnect(),i(new Error(`Timeout waiting for ${l}`))},u)})},kH=EH({childList:!0,subtree:!0,isReady:(t,e)=>{var n;return!!(t!=null&&t.childElementCount)&&((n=t==null?void 0:t.matches)==null?void 0:n.call(t,e))&&t.childElementCount>0}});function qn(t,e){const n=k.useRef(),[r,i]=k.useState("rendering");return k.useEffect(()=>{if(!t)throw new Error("Clerk: no component name provided, unable to detect mount.");if(typeof window<"u"&&!n.current){const s=`[data-clerk-component="${t}"]`,l=e==null?void 0:e.selector;n.current=kH({selector:l?s+l:s}).then(()=>{i("rendered")}
113).catch(()=>{i("error")})}},[t,e==null?void 0:e.selector]),r}var jh=t=>"mount"in t,H1=t=>"open"in t,V1=t=>t==null?void 0:t.map(({mountIcon:e,unmountIcon:n,...r})=>r),kn=class extends K.PureComponent{constructor(){super(...arguments),this.rootRef=K.createRef()}componentDidUpdate(t){var e,n,r,i;if(!jh(t)||!jh(this.props))return;const s=$1(t.props,"customPages","customMenuItems","children"),l=$1(this.props.props,"customPages","customMenuItems","children"),u=((e=s.customPages)==null?void 0:e.length)!==((n=l.customPages)==null?void 0:n.length),c=((r=s.customMenuItems)==null?void 0:r.length)!==((i=l.customMenuItems)==null?void 0:i.length),p=V1(t.props.customMenuItems),h=V1(this.props.props.customMenuItems);(!j1(s,l)||!j1(p,h)||u||c)&&this.rootRef.current&&this.props.updateProps({node:this.rootRef.current,props:this.props.props})}componentDidMount(){this.rootRef.current&&(jh(this.props)&&this.props.mount(this.rootRef.current,this.props.props),H1(this.props)&&this.props.open(this.props.props))}componentWillUnmount(){this.rootRef.current&&(jh(this.props)&&this.props.unmount(this.rootRef.current),H1(this.props)&&this.props.close())}render(){const{hideRootHtmlElement:t=!1}=this.props,e={ref:this.rootRef,...this.props.rootProps,...this.props.component&&{"data-clerk-component":this.props.component}};return K.createElement(K.Fragment,null,!t&&K.createElement("div",{...e}),this.props.children)}},Jm=t=>{var e,n;return K.createElement(K.Fragment,null,(e=t==null?void 0:t.customPagesPortals)==null?void 0:e.map((r,i)=>k.createElement(r,{key:i})),(n=t==null?void 0:t.customMenuItemsPortals)==null?void 0:n.map((r,i)=>k.createElement(r,{key:i})))},CX=Pt(({clerk:t,component:e,fallback:n,...r})=>{const s=qn(e)==="rendering"||!t.loaded,l={...s&&n&&{style:{display:"none"}}};return K.createElement(K.Fragment,null,s&&n,t.loaded&&K.createElement(kn,{component:e,mount:t.mountSignIn,unmount:t.unmountSignIn,updateProps:t.__unstable__updateProps,props:r,rootProps:l}))},{component:"SignIn",renderWhileLoading:!0}),TX=Pt(({clerk:t,component:e,fallback:n,...r})=>{const s=qn(e)==="rendering"||!t.loaded,l={...s&&n&&{style:{display:"none"}}};return K.createElement(K.Fragment,null,s&&n,t.loaded&&K.createElement(kn,{component:e,mount:t.mountSignUp,unmount:t.unmountSignUp,updateProps:t.__unstable__updateProps,props:r,rootProps:l}))},{component:"SignUp",renderWhileLoading:!0});function hp({children:t}){return or(ZW),K.createElement(K.Fragment,null,t)}function fp({children:t}){return or(eH),K.createElement(K.Fragment,null,t)}var CH=Pt(({clerk:t,component:e,fallback:n,...r})=>{const s=qn(e)==="rendering"||!t.loaded,l={...s&&n&&{style:{display:"none"}}},{customPages:u,customPagesPortals:c}=GI(r.children);return K.createElement(K.Fragment,null,s&&n,K.createElement(kn,{component:e,mount:t.mountUserProfile,unmount:t.unmountUserProfile,updateProps:t.__unstable__updateProps,props:{...r,customPages:u},rootProps:l},K.createElement(Jm,{customPagesPortals:c})))},{component:"UserProfile",renderWhileLoading:!0});Object.assign(CH,{Page:hp,Link:fp});var QI=k.createContext({mount:()=>{},unmount:()=>{},updateProps:()=>{}}),TH=Pt(({clerk:t,component:e,fallback:n,...r})=>{const s=qn(e)==="rendering"||!t.loaded,l={...s&&n&&{style:{display:"none"}}},{customPages:u,customPagesPortals:c}=GI(r.children,{allowForAnyChildren:!!r.__experimental_asProvider}),p={...r.userProfileProps,customPages:u},{customMenuItems:h,customMenuItemsPortals:m}=SH(r.children,{allowForAnyChildren:!!r.__experimental_asProvider}),g=KI(r.children),_={mount:t.mountUserButton,unmount:t.unmountUserButton,updateProps:t.__unstable__updateProps,props:{...r,userProfileProps:p,customMenuItems:h}},x={customPagesPortals:c,customMenuItemsPortals:m};return K.createElement(QI.Provider,{value:_},s&&n,t.loaded&&K.createElement(kn,{component:e,..._,hideRootHtmlElement:!!r.__experimental_asProvider,rootProps:l},r.__experimental_asProvider?g:null,K.createElement(Jm,{...x})))},{component:"UserButton",renderWhileLoading:!0});function Qm({children:t}){return or(lH),K.createElement(K.Fragment,null,t)}function XI({children:t}){return or(uH),K.createElement(K.Fragment,null,t)}function ZI({children:t}){return or(cH),K.createElement(K.Fragment,null,t)}function PH(t){const e=k.useContext(QI),n={...e,props:{...e.props,...t}};return K.createElement(kn,{...n})}var Ll=Object.assign(TH,{UserProfilePage:hp,UserProfileLink:fp,MenuItems:Qm,Action:XI,Link:ZI,__experimental_Outlet:PH});function Xm({children:t}){return or(tH),K.createElement(K.Fragment,null,t)}function Zm({children:t}){return or(nH),K.createElement(K.Fragment,null,t)}var RH=Pt(({clerk:t,component:e,fallback:n,...r})=>{const s=qn(e)==="rendering"||!t.loaded,l={...s&&n&&{style:{display:"none"}}},{customPages:u,customPagesPortals:c}=YI(r.children);return K.createElement(K.Fragment,null,s&&n,t.loaded&&K.createElement(kn,{component:e,mount:t.mountOrganizationProfile,unmount:t.unmountOrganizationProfile,updateProps:t.__unstable__updateProps,props:{...r,customPages:u},rootProps:l},K.createElement(Jm,{customPagesPortals:c})))},{component:"OrganizationProfile",renderWhileLoading:!0});Object.assign(RH,{Page:Xm,Link:Zm});Pt(({clerk:t,component:e,fallback:n,...r})=>{const s=qn(e)==="rendering"||!t.loaded,l={...s&&n&&{style:{display:"none"}}};return K.createElement(K.Fragment,null,s&&n,t.loaded&&K.createElement(kn,{component:e,mount:t.mountCreateOrganization,unmount:t.unmountCreateOrganization,updateProps:t.__unstable__updateProps,props:r,rootProps:l}))},{component:"CreateOrganization",renderWhileLoading:!0});var eL=k.createContext({mount:()=>{},unmount:()=>{},updateProps:()=>{}}),AH=Pt(({clerk:t,component:e,fallback:n,...r})=>{const s=qn(e)==="rendering"||!t.loaded,l={...s&&n&&{style:{display:"none"}}},{customPages:u,customPagesPortals:c}=YI(r.children,{allowForAnyChildren:!!r.__experimental_asProvider}),p={...r.organizationProfileProps,customPages:u},h=KI(r.children),m={mount:t.mountOrganizationSwitcher,unmount:t.unmountOrganizationSwitcher,updateProps:t.__unstable__updateProps,props:{...r,organizationProfileProps:p},rootProps:l,component:e};return t.__experimental_prefetchOrganizationSwitcher(),K.createElement(eL.Provider,{value:m},K.createElement(K.Fragment,null,s&&n,t.loaded&&K.createElement(kn,{...m,hideRootHtmlElement:!!r.__experimental_asProvider},r.__experimental_asProvider?h:null,K.createElement(Jm,{customPagesPortals:c}))))},{component:"OrganizationSwitcher",renderWhileLoading:!0});function IH(t){const e=k.useContext(eL),n={...e,props:{...e.props,...t}};return K.createElement(kn,{...n})}Object.assign(AH,{OrganizationProfilePage:Xm,OrganizationProfileLink:Zm,__experimental_Outlet:IH});Pt(({clerk:t,component:e,fallback:n,...r})=>{const s=qn(e)==="rendering"||!t.loaded,l={...s&&n&&{style:{display:"none"}}};return K.createElement(K.Fragment,null,s&&n,t.loaded&&K.createElement(kn,{component:e,mount:t.mountOrganizationList,unmount:t.unmountOrganizationList,updateProps:t.__unstable__updateProps,props:r,rootProps:l}))},{component:"OrganizationList",renderWhileLoading:!0});Pt(({clerk:t,component:e,fallback:n,...r})=>{const s=qn(e)==="rendering"||!t.loaded,l={...s&&n&&{style:{display:"none"}}};return K.createElement(K.Fragment,null,s&&n,t.loaded&&K.createElement(kn,{component:e,open:t.openGoogleOneTap,close:t.closeGoogleOneTap,updateProps:t.__unstable__updateProps,props:r,rootProps:l}))},{component:"GoogleOneTap",renderWhileLoading:!0});Pt(({clerk:t,component:e,fallback:n,...r})=>{const s=qn(e)==="rendering"||!t.loaded,l={...s&&n&&{style:{display:"none"}}};return K.createElement(K.Fragment,null,s&&n,t.loaded&&K.createElement(kn,{component:e,mount:t.mountWaitlist,unmount:t.unmountWaitlist,updateProps:t.__unstable__updateProps,props:r,rootProps:l}))},{component:"Waitlist",renderWhileLoading:!0});Pt(({clerk:t,component:e,fallback:n,...r})=>{const s=qn(e,{selector:'[data-component-status="ready"]'})==="rendering"||!t.loaded,l={...s&&n&&{style:{display:"none"}}};return K.createElement(K.Fragment,null,s&&n,t.loaded&&K.createElement(kn,{component:e,mount:t.mountPricingTable,unmount:t.unmountPricingTable,updateProps:t.__unstable__updateProps,props:r,rootProps:l}))},{component:"PricingTable",renderWhileLoading:!0});Pt(({clerk:t,component:e,fallback:n,...r})=>{const s=qn(e)==="rendering"||!t.loaded,l={...s&&n&&{style:{display:"none"}}};return K.createElement(K.Fragment,null,s&&n,t.loaded&&K.createElement(kn,{component:e,mount:t.mountAPIKeys,unmount:t.unmountAPIKeys,updateProps:t.__unstable__updateProps,props:r,rootProps:l}))},{component:"ApiKeys",renderWhileLoading:!0});Pt(({clerk:t,component:e,fallback:n,...r})=>{const s=qn(e)==="rendering"||!t.loaded,l={...s&&n&&{style:{display:"none"}}};return K.createElement(K.Fragment,null,s&&n,t.loaded&&K.createElement(kn,{component:e,mount:t.mountUserAvatar,unmount:t.unmountUserAvatar,updateProps:t.__unstable__updateProps,props:r,rootProps:l}))},{component:"UserAvatar",renderWhileLoading:!0});Pt(({clerk:t,component:e,fallback:n,...r})=>{const s=qn(e)==="rendering"||!t.loaded,l={...s&&n&&{style:{display:"none"}}};return K.createElement(K.Fragment,null,s&&n,t.loaded&&K.createElement(kn,{component:e,mount:t.mountTaskChooseOrganization,unmount:t.unmountTaskChooseOrganization,updateProps:t.__unstable__updateProps,props:r,rootProps:l}))},{component:"TaskChooseOrganization",renderWhileLoading:!0});Pt(({clerk:t,component:e,fallback:n,...r})=>{const s=qn(e)==="rendering"||!t.loaded,l={...s&&n&&{style:{display:"none"}}};return K.createElement(K.Fragment,null,s&&n,t.loaded&&K.createElement(kn,{component:e,mount:t.mountTaskResetPassword,unmount:t.unmountTaskResetPassword,updateProps:t.__unstable__updateProps,props:r,rootProps:l}))},{component:"TaskResetPassword",renderWhileLoading:!0});Pt(({clerk:t,component:e,fallback:n,...r})=>{const s=qn(e)==="rendering"||!t.loaded,l={...s&&n&&{style:{display:"none"}}};return K.createElement(K.Fragment,null,s&&n,t.loaded&&K.createElement(kn,{component:e,mount:t.mountTaskSetupMFA,unmount:t.unmountTaskSetupMFA,updateProps:t.__unstable__updateProps,props:r,rootProps:l}))},{component:"TaskSetupMFA",renderWhileLoading:!0});var tL=t=>{throw TypeError(t)},m0=(t,e,n)=>e.has(t)||tL("Cannot "+n),Dt=(t,e,n)=>(m0(t,e,"read from private field"),n?n.call(t):e.get(t)),oo=(t,e,n)=>e.has(t)?tL("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,n),pa=(t,e,n,r)=>(m0(t,e,"write to private field"),e.set(t,n),n),Iy=(t,e,n)=>(m0(t,e,"access private method"),n);const LH={initialDelay:125,maxDelayBetweenRetries:0,factor:2,shouldRetry:(t,e)=>e<5,retryImmediately:!1,jitter:!0},MH=100,nL=async t=>new Promise(e=>setTimeout(e,t)),rL=(t,e)=>e?t*(1+Math.random()):t,NH=t=>{let e=0;const n=()=>{const r=t.initialDelay,i=t.factor;let s=r*Math.pow(i,e);return s=rL(s,t.jitter),Math.min(t.maxDelayBetweenRetries||s,s)};return async()=>{await nL(n()),e++}},OH=async(t,e={})=>{let n=0;const{shouldRetry:r,initialDelay:i,maxDelayBetweenRetries:s,factor:l,retryImmediately:u,jitter:c,onBeforeRetry:p}={...LH,...e},h=NH({initialDelay:i,maxDelayBetweenRetries:s,factor:l,jitter:c});for(;;)try{return await t()}catch(m){if(n++,!r(m,n))throw m;p&&await p(n),u&&n===1?await nL(rL(MH,c)):await h()}},DH="loadScript cannot be called when document does not exist",jH="loadScript cannot be called without a src";async function FH(t="",e){const{async:n,defer:r,beforeLoad:i,crossOrigin:s,nonce:l}=e||{};return OH(()=>new Promise((c,p)=>{t||p(new Error(jH)),(!document||!document.body)&&p(new Error(DH));const h=document.createElement("script");s&&h.setAttribute("crossorigin",s),h.async=n||!1,h.defer=r||!1,h.addEventListener("load",()=>{h.remove(),c(h)}),h.addEventListener("error",m=>{h.remove(),p(m.error??new Error(`failed to load script: ${t}`))}),h.src=t,h.nonce=l,i==null||i(h),document.body.appendChild(h)}),{shouldRetry:(c,p)=>p<=5})}function UH(t){return t?zH(t)||iL(t):!0}function zH(t){return/^http(s)?:\/\//.test(t||"")}function iL(t){return t.startsWith("/")}function BH(t){return t?iL(t)?new URL(t,window.location.origin).toString():t:""}function $H(t){if(!t)return"";let e;if(t.match(/^(clerk\.)+\w*$/))e=/(clerk\.)*(?=clerk\.)/;
113else{if(t.match(/\.clerk.accounts/))return t;e=/^(clerk\.)*/gi}return`clerk.${t.replace(e,"")}`}const qH=(t,e="5.125.10")=>{if(t)return t;const n=WH(e);return n?n==="snapshot"?"5.125.10":n:HH(e)},WH=t=>{var e;return(e=t.trim().replace(/^v/,"").match(/-(.+?)(\.|$)/))==null?void 0:e[1]},HH=t=>t.trim().replace(/^v/,"").split(".")[0],sL="failed_to_load_clerk_js",VH="failed_to_load_clerk_js_timeout",vb="Failed to load Clerk",{isDevOrStagingUrl:GH}=Xq(),oL=II({packageName:"@clerk/shared"});function YH(t){oL.setPackageName({packageName:t})}function yb(){if(typeof window>"u"||!window.Clerk)return!1;const t=window.Clerk;return typeof t=="object"&&typeof t.load=="function"}function KH(t){if(typeof window>"u"||!window.performance)return!1;const e=performance.getEntriesByName(t,"resource");if(e.length===0)return!1;const n=e[e.length-1];return n.transferSize===0&&n.decodedBodySize===0&&(n.responseEnd===0||n.responseEnd>0&&n.responseStart>0||"responseStatus"in n&&(n.responseStatus>=400||n.responseStatus===0))}function G1(t,e){return new Promise((n,r)=>{let i=!1;const s=(h,m)=>{clearTimeout(h),clearInterval(m)};e==null||e.addEventListener("error",()=>{s(c,p),r(new ub(vb,{code:sL}))});const l=()=>{i||yb()&&(i=!0,s(c,p),n(null))},c=setTimeout(()=>{i||(i=!0,s(c,p),yb()?n(null):r(new ub(vb,{code:VH})))},t);l();const p=setInterval(()=>{if(i){clearInterval(p);return}l()},100)})}const JH=async t=>{const e=(t==null?void 0:t.scriptLoadTimeout)??15e3;if(yb())return null;if(!(t!=null&&t.publishableKey))return oL.throwMissingPublishableKeyError(),null;const n=QH(t),r=document.querySelector("script[data-clerk-js-script]");if(r)if(KH(n))r.remove();else try{return await G1(e,r),null}catch{r.remove()}const i=G1(e);return FH(n,{async:!0,crossOrigin:"anonymous",nonce:t.nonce,beforeLoad:ZH(t)}).catch(s=>{throw new ub(vb+(s.message?`, ${s.message}`:""),{code:sL,cause:s})}),i},QH=t=>{var h,m;const{clerkJSUrl:e,clerkJSVariant:n,clerkJSVersion:r,proxyUrl:i,domain:s,publishableKey:l}=t;if(e)return e;let u="";i&&UH(i)?u=BH(i).replace(/http(s)?:\/\//,""):s&&!GH(((h=C1(l))==null?void 0:h.frontendApi)||"")?u=$H(s):u=((m=C1(l))==null?void 0:m.frontendApi)||"";const c=n?`${n.replace(/\.+$/,"")}.`:"",p=qH(r);return`https://${u}/npm/@clerk/clerk-js@${p}/dist/clerk.${c}browser.js`},XH=t=>{const e={};return t.publishableKey&&(e["data-clerk-publishable-key"]=t.publishableKey),t.proxyUrl&&(e["data-clerk-proxy-url"]=t.proxyUrl),t.domain&&(e["data-clerk-domain"]=t.domain),t.nonce&&(e.nonce=t.nonce),e},ZH=t=>e=>{const n=XH(t);for(const r in n)e.setAttribute(r,n[r])},eV=(t,e,n)=>!t&&n?tV(n):nV(e),tV=t=>{const e=t.userId,n=t.user,r=t.sessionId,i=t.sessionStatus,s=t.sessionClaims;return{userId:e,user:n,sessionId:r,session:t.session,sessionStatus:i,sessionClaims:s,organization:t.organization,orgId:t.orgId,orgRole:t.orgRole,orgPermissions:t.orgPermissions,orgSlug:t.orgSlug,actor:t.actor,factorVerificationAge:t.factorVerificationAge}},nV=t=>{var x,S,w,C;const e=t.user?t.user.id:t.user,n=t.user,r=t.session?t.session.id:t.session,i=t.session,s=(x=t.session)==null?void 0:x.status,l=t.session?(w=(S=t.session.lastActiveToken)==null?void 0:S.jwt)==null?void 0:w.claims:null,u=t.session?t.session.factorVerificationAge:null,c=i==null?void 0:i.actor,p=t.organization,h=t.organization?t.organization.id:t.organization,m=p==null?void 0:p.slug,g=p&&((C=n==null?void 0:n.organizationMemberships)==null?void 0:C.find(R=>R.organization.id===h)),_=g&&g.permissions;return{userId:e,user:n,sessionId:r,session:i,sessionStatus:s,sessionClaims:l,organization:p,orgId:h,orgRole:g&&g.role,orgSlug:m,orgPermissions:_,actor:c,factorVerificationAge:u}};function Yf(){return typeof window<"u"}const Y1=(t,e,n,r,i)=>{const{notify:s}=i||{};let l=t.get(n);l||(l=[],t.set(n,l)),l.push(r),s&&e.has(n)&&r(e.get(n))},K1=(t,e,n)=>(t.get(e)||[]).map(r=>r(n)),J1=(t,e,n)=>{const r=t.get(e);r&&(n?r.splice(r.indexOf(n)>>>0,1):t.set(e,[]))},rV=()=>{const t=new Map,e=new Map,n=new Map;return{on:(...i)=>Y1(t,e,...i),prioritizedOn:(...i)=>Y1(n,e,...i),emit:(i,s)=>{e.set(i,s),K1(n,i,s),K1(t,i,s)},off:(...i)=>J1(t,...i),prioritizedOff:(...i)=>J1(n,...i),internal:{retrieveListeners:i=>t.get(i)||[]}}},Fh={Status:"status"},iV=()=>rV();typeof window<"u"&&!window.global&&(window.global=typeof global>"u"?window:global);Pt(({clerk:t,children:e,...n})=>{const{appearance:r,signUpFallbackRedirectUrl:i,forceRedirectUrl:s,fallbackRedirectUrl:l,signUpForceRedirectUrl:u,mode:c,initialValues:p,withSignUp:h,oauthFlow:m,...g}=n;e=Ym(e,"Sign in");const _=Gm(e)("SignInButton"),x=()=>{const C={forceRedirectUrl:s,fallbackRedirectUrl:l,signUpFallbackRedirectUrl:i,signUpForceRedirectUrl:u,initialValues:p,withSignUp:h,oauthFlow:m};return c==="modal"?t.openSignIn({...C,appearance:r}
113):t.redirectToSignIn({...C,signInFallbackRedirectUrl:l,signInForceRedirectUrl:s})},w={...g,onClick:async C=>(_&&typeof _=="object"&&"props"in _&&await Km(_.props.onClick)(C),x())};return K.cloneElement(_,w)},{component:"SignInButton",renderWhileLoading:!0});Pt(({clerk:t,children:e,...n})=>{const{redirectUrl:r,...i}=n;e=Ym(e,"Sign in with Metamask");const s=Gm(e)("SignInWithMetamaskButton"),l=async()=>{async function p(){await t.authenticateWithMetamask({redirectUrl:r||void 0})}p()},c={...i,onClick:async p=>(await Km(s.props.onClick)(p),l())};return K.cloneElement(s,c)},{component:"SignInWithMetamask",renderWhileLoading:!0});Pt(({clerk:t,children:e,...n})=>{const{redirectUrl:r="/",signOutOptions:i,...s}=n;e=Ym(e,"Sign out");const l=Gm(e)("SignOutButton"),u=()=>t.signOut({redirectUrl:r,...i}),p={...s,onClick:async h=>(await Km(l.props.onClick)(h),u())};return K.cloneElement(l,p)},{component:"SignOutButton",renderWhileLoading:!0});Pt(({clerk:t,children:e,...n})=>{const{appearance:r,unsafeMetadata:i,fallbackRedirectUrl:s,forceRedirectUrl:l,signInFallbackRedirectUrl:u,signInForceRedirectUrl:c,mode:p,initialValues:h,oauthFlow:m,...g}=n;e=Ym(e,"Sign up");const _=Gm(e)("SignUpButton"),x=()=>{const C={fallbackRedirectUrl:s,forceRedirectUrl:l,signInFallbackRedirectUrl:u,signInForceRedirectUrl:c,initialValues:h,oauthFlow:m};return p==="modal"?t.openSignUp({...C,appearance:r,unsafeMetadata:i}):t.redirectToSignUp({...C,signUpFallbackRedirectUrl:s,signUpForceRedirectUrl:l})},w={...g,onClick:async C=>(_&&typeof _=="object"&&"props"in _&&await Km(_.props.onClick)(C),x())};return K.cloneElement(_,w)},{component:"SignUpButton",renderWhileLoading:!0});var sV=()=>({fields:{identifier:null,password:null,code:null},raw:null,global:null}),oV=()=>({fields:{firstName:null,lastName:null,emailAddress:null,phoneNumber:null,password:null,username:null,code:null,captcha:null,legalAccepted:null},raw:null,global:null}),aV=class{constructor(t){this.isomorphicClerk=t,this.signInSignalProxy=this.buildSignInProxy(),this.signUpSignalProxy=this.buildSignUpProxy()}signInSignal(){return this.signInSignalProxy}signUpSignal(){return this.signUpSignalProxy}buildSignInProxy(){const t=this.gateProperty.bind(this),e=()=>this.client.signIn.__internal_future;return{errors:sV(),fetchStatus:"idle",signIn:{status:"needs_identifier",availableStrategies:[],isTransferable:!1,get id(){return t(e,"id",void 0)},get supportedFirstFactors(){return t(e,"supportedFirstFactors",[])},get supportedSecondFactors(){return t(e,"supportedSecondFactors",[])},get secondFactorVerification(){return t(e,"secondFactorVerification",{status:null,error:null,expireAt:null,externalVerificationRedirectURL:null,nonce:null,attempts:null,message:null,strategy:null,verifiedAtClient:null,verifiedFromTheSameClient:()=>!1,__internal_toSnapshot:()=>{throw new Error("__internal_toSnapshot called before Clerk is loaded")},pathRoot:"",reload:()=>{throw new Error("__internal_toSnapshot called before Clerk is loaded")}})},get identifier(){return t(e,"identifier",null)}
113,get createdSessionId(){return t(e,"createdSessionId",null)},get userData(){return t(e,"userData",{})},get firstFactorVerification(){return t(e,"firstFactorVerification",{status:null,error:null,expireAt:null,externalVerificationRedirectURL:null,nonce:null,attempts:null,message:null,strategy:null,verifiedAtClient:null,verifiedFromTheSameClient:()=>!1,__internal_toSnapshot:()=>{throw new Error("__internal_toSnapshot called before Clerk is loaded")},pathRoot:"",reload:()=>{throw new Error("__internal_toSnapshot called before Clerk is loaded")}})},create:this.gateMethod(e,"create"),password:this.gateMethod(e,"password"),sso:this.gateMethod(e,"sso"),finalize:this.gateMethod(e,"finalize"),emailCode:this.wrapMethods(()=>e().emailCode,["sendCode","verifyCode"]),emailLink:this.wrapStruct(()=>e().emailLink,["sendLink","waitForVerification"],["verification"],{verification:null}),resetPasswordEmailCode:this.wrapMethods(()=>e().resetPasswordEmailCode,["sendCode","verifyCode","submitPassword"]),phoneCode:this.wrapMethods(()=>e().phoneCode,["sendCode","verifyCode"]),mfa:this.wrapMethods(()=>e().mfa,["sendPhoneCode","verifyPhoneCode","verifyTOTP","verifyBackupCode"]),ticket:this.gateMethod(e,"ticket"),passkey:this.gateMethod(e,"passkey"),web3:this.gateMethod(e,"web3")}}}buildSignUpProxy(){const t=this.gateProperty.bind(this),e=this.gateMethod.bind(this),n=this.wrapMethods.bind(this),r=()=>this.client.signUp.__internal_future;return{errors:oV(),fetchStatus:"idle",signUp:{get id(){return t(r,"id",void 0)},get requiredFields(){return t(r,"requiredFields",[])},get optionalFields(){return t(r,"optionalFields",[])},get missingFields(){return t(r,"missingFields",[])},get username(){return t(r,"username",null)},get firstName(){return t(r,"firstName",null)},get lastName(){return t(r,"lastName",null)},get emailAddress(){return t(r,"emailAddress",null)},get phoneNumber(){return t(r,"phoneNumber",null)},get web3Wallet(){return t(r,"web3Wallet",null)},get hasPassword(){return t(r,"hasPassword",!1)},get unsafeMetadata(){return t(r,"unsafeMetadata",{})},get createdSessionId(){return t(r,"createdSessionId",null)},get createdUserId(){return t(r,"createdUserId",null)},get abandonAt(){return t(r,"abandonAt",null)},get legalAcceptedAt(){return t(r,"legalAcceptedAt",null)},get locale(){return t(r,"locale",null)},get status(){return t(r,"status","missing_requirements")},get unverifiedFields(){return t(r,"unverifiedFields",[])},get isTransferable(){return t(r,"isTransferable",!1)},create:e(r,"create"),update:e(r,"update"),sso:e(r,"sso"),password:e(r,"password"),ticket:e(r,"ticket"),web3:e(r,"web3"),finalize:e(r,"finalize"),verifications:n(()=>r().verifications,["sendEmailCode","verifyEmailCode","sendPhoneCode","verifyPhoneCode"])}}}__internal_effect(t){throw new Error("__internal_effect called before Clerk is loaded")}__internal_computed(t){throw new Error("__internal_computed called before Clerk is loaded")}get client(){const t=this.isomorphicClerk.client;if(!t)throw new Error("Clerk client not ready");return t}gateProperty(t,e,n){return!Yf()||!this.isomorphicClerk.loaded?n:t()[e]}gateMethod(t,e){return(async(...n)=>{if(!Yf())return ki.throw(`Attempted to call a method (${e}) that is not supported on the server.`);this.isomorphicClerk.loaded||await new Promise(i=>this.isomorphicClerk.addOnLoaded(i));const r=t();return r[e].apply(r,n)})}wrapMethods(t,e){return Object.fromEntries(e.map(n=>[n,this.gateMethod(t,n)]))}wrapStruct(t,e,n,r){const i={};for(const s of e)i[s]=this.gateMethod(t,s);for(const s of n)Object.defineProperty(i,s,{get:()=>this.gateProperty(t,s,r[s]),enumerable:!0});return i}};typeof globalThis.__BUILD_DISABLE_RHC__>"u"&&(globalThis.__BUILD_DISABLE_RHC__=!1);var lV={name:"@clerk/clerk-react",version:"5.61.6",environment:"production"},hf,Vl,Gl,ao,Fi,ff,co,Yc,mf,aL=class lL{constructor(e){oo(this,Yc),this.clerkjs=null,this.preopenOneTap=null,this.preopenUserVerification=null,this.preopenEnableOrganizationsPrompt=null,this.preopenSignIn=null,this.preopenCheckout=null,this.preopenPlanDetails=null,this.preopenSubscriptionDetails=null,this.preopenSignUp=null,this.preopenUserProfile=null,this.preopenOrganizationProfile=null,this.preopenCreateOrganization=null,this.preOpenWaitlist=null,this.premountSign
113InNodes=new Map,this.premountSignUpNodes=new Map,this.premountUserAvatarNodes=new Map,this.premountUserProfileNodes=new Map,this.premountUserButtonNodes=new Map,this.premountOrganizationProfileNodes=new Map,this.premountCreateOrganizationNodes=new Map,this.premountOrganizationSwitcherNodes=new Map,this.premountOrganizationListNodes=new Map,this.premountMethodCalls=new Map,this.premountWaitlistNodes=new Map,this.premountPricingTableNodes=new Map,this.premountAPIKeysNodes=new Map,this.premountOAuthConsentNodes=new Map,this.premountTaskChooseOrganizationNodes=new Map,this.premountTaskResetPasswordNodes=new Map,this.premountTaskSetupMFANodes=new Map,this.premountAddListenerCalls=new Map,this.loadedListeners=[],oo(this,hf,"loading"),oo(this,Vl),oo(this,Gl),oo(this,ao),oo(this,Fi,iV()),oo(this,ff),this.buildSignInUrl=i=>{const s=()=>{var l;return((l=this.clerkjs)==null?void 0:l.buildSignInUrl(i))||""};if(this.clerkjs&&this.loaded)return s();this.premountMethodCalls.set("buildSignInUrl",s)},this.buildSignUpUrl=i=>{const s=()=>{var l;return((l=this.clerkjs)==null?void 0:l.buildSignUpUrl(i))||""};if(this.clerkjs&&this.loaded)return s();this.premountMethodCalls.set("buildSignUpUrl",s)},this.buildAfterSignInUrl=(...i)=>{const s=()=>{var l;return((l=this.clerkjs)==null?void 0:l.buildAfterSignInUrl(...i))||""};if(this.clerkjs&&this.loaded)return s();this.premountMethodCalls.set("buildAfterSignInUrl",s)},this.buildAfterSignUpUrl=(...i)=>{const s=()=>{var l;return((l=this.clerkjs)==null?void 0:l.buildAfterSignUpUrl(...i))||""};if(this.clerkjs&&this.loaded)return s();this.premountMethodCalls.set("buildAfterSignUpUrl",s)},this.buildAfterSignOutUrl=()=>{const i=()=>{var s;return((s=this.clerkjs)==null?void 0:s.buildAfterSignOutUrl())||""};if(this.clerkjs&&this.loaded)return i();this.premountMethodCalls.set("buildAfterSignOutUrl",i)},this.buildNewSubscriptionRedirectUrl=()=>{const i=()=>{var s;return((s=this.clerkjs)==null?void 0:s.buildNewSubscriptionRedirectUrl())||""};if(this.clerkjs&&this.loaded)return i();this.premountMethodCalls.set("buildNewSubscriptionRedirectUrl",i)},this.buildAfterMultiSessionSingleSignOutUrl=()=>{const i=()=>{var s;return((s=this.clerkjs)==null?void 0:s.buildAfterMultiSessionSingleSignOutUrl())||""};if(this.clerkjs&&this.loaded)return i();this.premountMethodCalls.set("buildAfterMultiSessionSingleSignOutUrl",i)},this.buildUserProfileUrl=()=>{const i=()=>{var s;return((s=this.clerkjs)==null?void 0:s.buildUserProfileUrl())||""};if(this.clerkjs&&this.loaded)return i();this.premountMethodCalls.set("buildUserProfileUrl",i)},this.buildCreateOrganizationUrl=()=>{const i=()=>{var s;return((s=this.clerkjs)==null?void 0:s.buildCreateOrganizationUrl())||""};if(this.clerkjs&&this.loaded)return i();this.premountMethodCalls.set("buildCreateOrganizationUrl",i)},this.buildOrganizationProfileUrl=()=>{const i=()=>{var s;return((s=this.clerkjs)==null?void 0:s.buildOrganizationProfileUrl())||""};if(this.clerkjs&&this.loaded)return i();this.premountMethodCalls.set("buildOrganizationProfileUrl",i)},this.buildWaitlistUrl=()=>{const i=()=>{var s;return((s=this.clerkjs)==null?void 0:s.buildWaitlistUrl())||""};if(this.clerkjs&&this.loaded)return i();this.premountMethodCalls.set("buildWaitlistUrl",i)},this.buildTasksUrl=()=>{const i=()=>{var s;return((s=this.clerkjs)==null?void 0:s.buildTasksUrl())||""};if(this.clerkjs&&this.loaded)return i();this.premountMethodCalls.set("buildTasksUrl",i)},this.buildUrlWithAuth=i=>{const s=()=>{var l;return((l=this.clerkjs)==null?void 0:l.buildUrlWithAuth(i))||""};if(this.clerkjs&&this.loaded)return s();this.premountMethodCalls.set("buildUrlWithAuth",s)},this.handleUnauthenticated=async()=>{const i=()=>{var s;return(s=this.clerkjs)==null?void 0:s.handleUnauthenticated()};this.clerkjs&&this.loaded?i():this.premountMethodCalls.set("handleUnauthenticated",i)},this.on=(...i)=>{var s;if((s=this.clerkjs)!=null&&s.on)return this.clerkjs.on(...i);Dt(this,Fi).on(...i)},this.off=(...i)=>{var s;if((s=this.clerkjs)!=null&&s.off)return this.clerkjs.off(...i);Dt(this,Fi).off(...i)},this.addOnLoaded=i=>{this.loadedListeners.push(i),this.loaded&&this.emitLoaded()},this.emitLoaded=()=>
113{this.loadedListeners.forEach(i=>i()),this.loadedListeners=[]},this.beforeLoad=i=>{if(!i)throw new Error("Failed to hydrate latest Clerk JS")},this.hydrateClerkJS=i=>{var s,l;if(!i)throw new Error("Failed to hydrate latest Clerk JS");return this.clerkjs=i,this.premountMethodCalls.forEach(u=>u()),this.premountAddListenerCalls.forEach((u,c)=>{u.nativeUnsubscribe=i.addListener(c)}),(s=Dt(this,Fi).internal.retrieveListeners("status"))==null||s.forEach(u=>{this.on("status",u,{notify:!0})}),(l=Dt(this,Fi).internal.retrieveListeners("queryClientStatus"))==null||l.forEach(u=>{this.on("queryClientStatus",u,{notify:!0})}),this.preopenSignIn!==null&&i.openSignIn(this.preopenSignIn),this.preopenCheckout!==null&&i.__internal_openCheckout(this.preopenCheckout),this.preopenPlanDetails!==null&&i.__internal_openPlanDetails(this.preopenPlanDetails),this.preopenSubscriptionDetails!==null&&i.__internal_openSubscriptionDetails(this.preopenSubscriptionDetails),this.preopenSignUp!==null&&i.openSignUp(this.preopenSignUp),this.preopenUserProfile!==null&&i.openUserProfile(this.preopenUserProfile),this.preopenUserVerification!==null&&i.__internal_openReverification(this.preopenUserVerification),this.preopenOneTap!==null&&i.openGoogleOneTap(this.preopenOneTap),this.preopenOrganizationProfile!==null&&i.openOrganizationProfile(this.preopenOrganizationProfile),this.preopenCreateOrganization!==null&&i.openCreateOrganization(this.preopenCreateOrganization),this.preOpenWaitlist!==null&&i.openWaitlist(this.preOpenWaitlist),this.preopenEnableOrganizationsPrompt&&i.__internal_openEnableOrganizationsPrompt(this.preopenEnableOrganizationsPrompt),this.premountSignInNodes.forEach((u,c)=>{i.mountSignIn(c,u)}),this.premountSignUpNodes.forEach((u,c)=>{i.mountSignUp(c,u)}),this.premountUserProfileNodes.forEach((u,c)=>{i.mountUserProfile(c,u)}),this.premountUserAvatarNodes.forEach((u,c)=>{i.mountUserAvatar(c,u)}),this.premountUserButtonNodes.forEach((u,c)=>{i.mountUserButton(c,u)}),this.premountOrganizationListNodes.forEach((u,c)=>{i.mountOrganizationList(c,u)}),this.premountWaitlistNodes.forEach((u,c)=>{i.mountWaitlist(c,u)}),this.premountPricingTableNodes.forEach((u,c)=>{i.mountPricingTable(c,u)}),this.premountAPIKeysNodes.forEach((u,c)=>{i.mountAPIKeys(c,u)}),this.premountOAuthConsentNodes.forEach((u,c)=>{i.__internal_mountOAuthConsent(c,u)}),this.premountTaskChooseOrganizationNodes.forEach((u,c)=>{i.mountTaskChooseOrganization(c,u)}),this.premountTaskResetPasswordNodes.forEach((u,c)=>{i.mountTaskResetPassword(c,u)}),this.premountTaskSetupMFANodes.forEach((u,c)=>{i.mountTaskSetupMFA(c,u)}),typeof this.clerkjs.status>"u"&&Dt(this,Fi).emit(Fh.Status,"ready"),this.emitLoaded(),this.clerkjs},this.__experimental_checkout=(...i)=>{var s;return(s=this.clerkjs)==null?void 0:s.__experimental_checkout(...i)},this.__unstable__updateProps=async i=>{const s=await Iy(this,Yc,mf).call(this);if(s&&"__unstable__updateProps"in s)return s.__unstable__updateProps(i)},this.setActive=i=>this.clerkjs?this.clerkjs.setActive(i):Promise.reject(),this.openSignIn=i=>{this.clerkjs&&this.loaded?this.clerkjs.openSignIn(i):this.preopenSignIn=i},this.closeSignIn=()=>{this.clerkjs&&this.loaded?this.clerkjs.closeSignIn():this.preopenSignIn=null},this.__internal_openCheckout=i=>{this.clerkjs&&this.loaded?this.clerkjs.__internal_openCheckout(i):this.preopenCheckout=i},this.__internal_closeCheckout=()=>{this.clerkjs&&this.loaded?this.clerkjs.__internal_closeCheckout():this.preopenCheckout=null},this.__internal_openPlanDetails=i=>{this.clerkjs&&this.loaded?this.clerkjs.__internal_openPlanDetails(i):this.preopenPlanDetails=i},this.__internal_closePlanDetails=()=>{this.clerkjs&&this.loaded?this.clerkjs.__internal_closePlanDetails():this.preopenPlanDetails=null},this.__internal_openSubscriptionDetails=i=>{this.clerkjs&&this.loaded?this.clerkjs.__internal_openSubscriptionDetails(i):this.preopenSubscriptionDetails=i??null},this.__internal_closeSubscriptionDetails=()=>{this.clerkjs&&this.loaded?this.clerkjs.__internal_closeSubscriptionDetails():this.preopenSubscriptionDetails=null},this.__internal_openReverification=i=>{this.clerkjs&&this.loaded?this.clerkjs.__internal_openReverification(i):this.preopenUserVerification=i},this.__internal_closeReverification=()=>{this.clerkjs&&this.loaded?this.clerkjs.__internal_closeReverification():this.preopenUserVerification=null},this.__internal_openEnableOrganizationsPrompt=i=>{this.clerkjs&&this.loaded?this.clerkjs.__internal_openEnableOrganizationsPrompt(i):this.preopenEnableOrganizationsPrompt=i},this.__internal_closeEnableOrganizationsPrompt=()=>{this.clerkjs&&this.loaded?this.clerkjs.__internal_closeEnableOrganizationsPrompt():this.preopenEnableOrganizationsPrompt=null},this.openGoogleOneTap=i=>{this.clerkjs&&this.loaded?this.clerkjs.openGoogleOneTap(i):this.preopenOneTap=i},this.closeGoogleOneTap=()=>{this.clerkjs&&this.loaded?this.clerkjs.closeGoogleOneTap():this.preopenOneTap=null},this.openUserProfile=i=>{this.clerkjs&&this.loaded?this.clerkjs.openUserProfile(i):this.preopenUserProfile=i},this.closeUserProfile=()=>{this.clerkjs&&this.loaded?this.clerkjs.closeUserProfile():this.preopenUserProfile=null},this.openOrganizationProfile=i=>{this.clerkjs&&this.loaded?this.clerkjs.openOrganizationProfile(i):this.preopenOrganizationProfile=i},this.closeOrganizationProfile=()=>{this.clerkjs&&this.loaded?this.clerkjs.closeOrganizationProfile():this.preopenOrganizationProfile=null},this.openCreateOrganization=i=>{this.clerkjs&&this.loaded?this.clerkjs.openCreateOrganization(i):this.preopenCreateOrganization=i},this.closeCreateOrganization=()=>{this.clerkjs&&this.loaded?this.clerkjs.closeCreateOrganization():this.preopenCreateOrganization=null},this.openWaitlist=i=>{this.clerkjs&&this.loaded?this.clerkjs.openWaitlist(i):this.preOpenWaitlist=i},this.closeWaitlist=()=>{this.clerkjs&&this.loaded?this.clerkjs.closeWaitlist():this.preOpenWaitlist=null},this.openSignUp=i=>{this.clerkjs&&this.loaded?this.clerkjs.openSignUp(i):this.preopenSignUp=i},this.closeSignUp=()=>{this.clerkjs&&this.loaded?this.clerkjs.closeSignUp():this.preopenSignUp=null}
113,this.mountSignIn=(i,s)=>{this.clerkjs&&this.loaded?this.clerkjs.mountSignIn(i,s):this.premountSignInNodes.set(i,s)},this.unmountSignIn=i=>{this.clerkjs&&this.loaded?this.clerkjs.unmountSignIn(i):this.premountSignInNodes.delete(i)},this.mountSignUp=(i,s)=>{this.clerkjs&&this.loaded?this.clerkjs.mountSignUp(i,s):this.premountSignUpNodes.set(i,s)},this.unmountSignUp=i=>{this.clerkjs&&this.loaded?this.clerkjs.unmountSignUp(i):this.premountSignUpNodes.delete(i)},this.mountUserAvatar=(i,s)=>{this.clerkjs&&this.loaded?this.clerkjs.mountUserAvatar(i,s):this.premountUserAvatarNodes.set(i,s)},this.unmountUserAvatar=i=>{this.clerkjs&&this.loaded?this.clerkjs.unmountUserAvatar(i):this.premountUserAvatarNodes.delete(i)},this.mountUserProfile=(i,s)=>{this.clerkjs&&this.loaded?this.clerkjs.mountUserProfile(i,s):this.premountUserProfileNodes.set(i,s)},this.unmountUserProfile=i=>{this.clerkjs&&this.loaded?this.clerkjs.unmountUserProfile(i):this.premountUserProfileNodes.delete(i)},this.mountOrganizationProfile=(i,s)=>{this.clerkjs&&this.loaded?this.clerkjs.mountOrganizationProfile(i,s):this.premountOrganizationProfileNodes.set(i,s)},this.unmountOrganizationProfile=i=>{this.clerkjs&&this.loaded?this.clerkjs.unmountOrganizationProfile(i):this.premountOrganizationProfileNodes.delete(i)},this.mountCreateOrganization=(i,s)=>{this.clerkjs&&this.loaded?this.clerkjs.mountCreateOrganization(i,s):this.premountCreateOrganizationNodes.set(i,s)},this.unmountCreateOrganization=i=>{this.clerkjs&&this.loaded?this.clerkjs.unmountCreateOrganization(i):this.premountCreateOrganizationNodes.delete(i)},this.mountOrganizationSwitcher=(i,s)=>{this.clerkjs&&this.loaded?this.clerkjs.mountOrganizationSwitcher(i,s):this.premountOrganizationSwitcherNodes.set(i,s)},this.unmountOrganizationSwitcher=i=>{this.clerkjs&&this.loaded?this.clerkjs.unmountOrganizationSwitcher(i):this.premountOrganizationSwitcherNodes.delete(i)},this.__experimental_prefetchOrganizationSwitcher=()=>{const i=()=>{var s;return(s=this.clerkjs)==null?void 0:s.__experimental_prefetchOrganizationSwitcher()};this.clerkjs&&this.loaded?i():this.premountMethodCalls.set("__experimental_prefetchOrganizationSwitcher",i)},this.mountOrganizationList=(i,s)=>{this.clerkjs&&this.loaded?this.clerkjs.mountOrganizationList(i,s):this.premountOrganizationListNodes.set(i,s)},this.unmountOrganizationList=i=>{this.clerkjs&&this.loaded?this.clerkjs.unmountOrganizationList(i):this.premountOrganizationListNodes.delete(i)},this.mountUserButton=(i,s)=>{this.clerkjs&&this.loaded?this.clerkjs.mountUserButton(i,s):this.premountUserButtonNodes.set(i,s)},this.unmountUserButton=i=>{this.clerkjs&&this.loaded?this.clerkjs.unmountUserButton(i):this.premountUserButtonNodes.delete(i)},this.mountWaitlist=(i,s)=>{this.clerkjs&&this.loaded?this.clerkjs.mountWaitlist(i,s):this.premountWaitlistNodes.set(i,s)},this.unmountWaitlist=i=>{this.clerkjs&&this.loaded?this.clerkjs.unmountWaitlist(i):this.premountWaitlistNodes.delete(i)},this.mountPricingTable=(i,s)=>{this.clerkjs&&this.loaded?this.clerkjs.mountPricingTable(i,s):this.premountPricingTableNodes.set(i,s)},this.unmountPricingTable=i=>{this.clerkjs&&this.loaded?this.clerkjs.unmountPricingTable(i):this.premountPricingTableNodes.delete(i)},this.mountAPIKeys=(i,s)=>{this.clerkjs&&this.loaded?this.clerkjs.mountAPIKeys(i,s):this.premountAPIKeysNodes.set(i,s)},this.unmountAPIKeys=i=>{this.clerkjs&&this.loaded?this.clerkjs.unmountAPIKeys(i):this.premountAPIKeysNodes.delete(i)},this.__internal_mountOAuthConsent=(i,s)=>{this.clerkjs&&this.loaded?this.clerkjs.__internal_mountOAuthConsent(i,s):this.premountOAuthConsentNodes.set(i,s)},this.__internal_unmountOAuthConsent=i=>{this.clerkjs&&this.loaded?this.clerkjs.__internal_unmountOAuthConsent(i):this.premountOAuthConsentNodes.delete(i)},this.mountTaskChooseOrganization=(i,s)=>{this.clerkjs&&this.loaded?this.clerkjs.mountTaskChooseOrganization(i,s):this.premountTaskChooseOrganizationNodes.set(i,s)},this.unmountTaskChooseOrganization=i=>{this.clerkjs&&this.loaded?this.clerkjs.unmountTaskChooseOrganization(i):this.premountTaskChooseOrganizationNodes.delete(i)},this.mountTaskResetPassword=(i,s)=>{this.clerkjs&&this.loaded?this.clerkjs.mountTaskResetPassword(i,s):this.premountTaskResetPasswordNodes.set(i,s)},this.unmountTaskResetPassword=i=>{this.clerkjs&&this.loaded?this.clerkjs.unmountTaskResetPassword(i):this.premountTaskResetPasswordNodes.delete(i)},this.mountTaskSetupMFA=(i,s)=>{this.clerkjs&&this.loaded?this.clerkjs.mountTaskSetupMFA(i,s):this.premountTaskSetupMFANodes.set(i,s)},this.unmountTaskSetupMFA=i=>{this.clerkjs&&this.loaded?this.clerkjs.unmountTaskSetupMFA(i):this.premountTaskSetupMFANodes.delete(i)},this.addListener=i=>{if(this.clerkjs)return this.clerkjs.addListener(i);{const s=()=>{var l;const u=this.premountAddListenerCalls.get(i);
113u&&((l=u.nativeUnsubscribe)==null||l.call(u),this.premountAddListenerCalls.delete(i))};return this.premountAddListenerCalls.set(i,{unsubscribe:s,nativeUnsubscribe:void 0}),s}},this.navigate=i=>{const s=()=>{var l;return(l=this.clerkjs)==null?void 0:l.navigate(i)};this.clerkjs&&this.loaded?s():this.premountMethodCalls.set("navigate",s)},this.redirectWithAuth=async(...i)=>{const s=()=>{var l;return(l=this.clerkjs)==null?void 0:l.redirectWithAuth(...i)};if(this.clerkjs&&this.loaded)return s();this.premountMethodCalls.set("redirectWithAuth",s)},this.redirectToSignIn=async i=>{const s=()=>{var l;return(l=this.clerkjs)==null?void 0:l.redirectToSignIn(i)};if(this.clerkjs&&this.loaded)return s();this.premountMethodCalls.set("redirectToSignIn",s)},this.redirectToSignUp=async i=>{const s=()=>{var l;return(l=this.clerkjs)==null?void 0:l.redirectToSignUp(i)};if(this.clerkjs&&this.loaded)return s();this.premountMethodCalls.set("redirectToSignUp",s)},this.redirectToUserProfile=async()=>{const i=()=>{var s;return(s=this.clerkjs)==null?void 0:s.redirectToUserProfile()};if(this.clerkjs&&this.loaded)return i();this.premountMethodCalls.set("redirectToUserProfile",i)},this.redirectToAfterSignUp=()=>{const i=()=>{var s;return(s=this.clerkjs)==null?void 0:s.redirectToAfterSignUp()};if(this.clerkjs&&this.loaded)return i();this.premountMethodCalls.set("redirectToAfterSignUp",i)},this.redirectToAfterSignIn=()=>{const i=()=>{var s;return(s=this.clerkjs)==null?void 0:s.redirectToAfterSignIn()};this.clerkjs&&this.loaded?i():this.premountMethodCalls.set("redirectToAfterSignIn",i)},this.redirectToAfterSignOut=()=>{const i=()=>{var s;return(s=this.clerkjs)==null?void 0:s.redirectToAfterSignOut()};this.clerkjs&&this.loaded?i():this.premountMethodCalls.set("redirectToAfterSignOut",i)},this.redirectToOrganizationProfile=async()=>{const i=()=>{var s;return(s=this.clerkjs)==null?void 0:s.redirectToOrganizationProfile()};if(this.clerkjs&&this.loaded)return i();this.premountMethodCalls.set("redirectToOrganizationProfile",i)},this.redirectToCreateOrganization=async()=>{const i=()=>{var s;return(s=this.clerkjs)==null?void 0:s.redirectToCreateOrganization()};if(this.clerkjs&&this.loaded)return i();this.premountMethodCalls.set("redirectToCreateOrganization",i)},this.redirectToWaitlist=async()=>{const i=()=>{var s;return(s=this.clerkjs)==null?void 0:s.redirectToWaitlist()};if(this.clerkjs&&this.loaded)return i();this.premountMethodCalls.set("redirectToWaitlist",i)},this.redirectToTasks=async i=>{const s=()=>{var l;return(l=this.clerkjs)==null?void 0:l.redirectToTasks(i)};if(this.clerkjs&&this.loaded)return s();this.premountMethodCalls.set("redirectToTasks",s)},this.handleRedirectCallback=async i=>{var s;const l=()=>{var u;return(u=this.clerkjs)==null?void 0:u.handleRedirectCallback(i)};this.clerkjs&&this.loaded?(s=l())==null||s.catch(()=>{}):this.premountMethodCalls.set("handleRedirectCallback",l)},this.handleGoogleOneTapCallback=async(i,s)=>{var l;const u=()=>{var c;return(c=this.clerkjs)==null?void 0:c.handleGoogleOneTapCallback(i,s)};this.clerkjs&&this.loaded?(l=u())==null||l.catch(()=>{}):this.premountMethodCalls.set("handleGoogleOneTapCallback",u)},this.handleEmailLinkVerification=async i=>{const s=()=>{var l;return(l=this.clerkjs)==null?void 0:l.handleEmailLinkVerification(i)};if(this.clerkjs&&this.loaded)return s();this.premountMethodCalls.set("handleEmailLinkVerification",s)},this.authenticateWithMetamask=async i=>{const s=()=>{var l;return(l=this.clerkjs)==null?void 0:l.authenticateWithMetamask(i)};if(this.clerkjs&&this.loaded)return s();this.premountMethodCalls.set("authenticateWithMetamask",s)},this.authenticateWithCoinbaseWallet=async i=>{const s=()=>{var l;return(l=this.clerkjs)==null?void 0:l.authenticateWithCoinbaseWallet(i)};if(this.clerkjs&&this.loaded)return s();this.premountMethodCalls.set("authenticateWithCoinbaseWallet",s)},this.authenticateWithBase=async i=>{const s=()=>{var l;return(l=this.clerkjs)==null?void 0:l.authenticateWithBase(i)};if(this.clerkjs&&this.loaded)return s();this.premountMethodCalls.set("authenticateWithBase",s)},this.authenticateWithOKXWallet=async i=>{const s=()=>{var l;return(l=this.clerkjs)==null?void 0:l.authenticateWithOKXWallet(i)};if(this.clerkjs&&this.loaded)return s();this.premountMethodCalls.set("authenticateWithOKXWallet",s)},this.authenticateWithSolana=async i=>{const s=()=>{var l;return(l=this.clerkjs)==null?void 0:l.authenticateWithSolana(i)};if(this.clerkjs&&this.loaded)return s();this.premountMethodCalls.set("authenticateWithSolana",s)},this.authenticateWithWeb3=async i=>{const s=()=>{var l;return(l=this.clerkjs)==null?void 0:l.authenticateWithWeb3(i)};if(this.clerkjs&&this.loaded)return s();this.premountMethodCalls.set("authenticateWithWeb3",s)},this.authenticateWithGoogleOneTap=async i=>
113(await Iy(this,Yc,mf).call(this)).authenticateWithGoogleOneTap(i),this.__internal_loadStripeJs=async()=>(await Iy(this,Yc,mf).call(this)).__internal_loadStripeJs(),this.createOrganization=async i=>{const s=()=>{var l;return(l=this.clerkjs)==null?void 0:l.createOrganization(i)};if(this.clerkjs&&this.loaded)return s();this.premountMethodCalls.set("createOrganization",s)},this.getOrganization=async i=>{const s=()=>{var l;return(l=this.clerkjs)==null?void 0:l.getOrganization(i)};if(this.clerkjs&&this.loaded)return s();this.premountMethodCalls.set("getOrganization",s)},this.joinWaitlist=async i=>{const s=()=>{var l;return(l=this.clerkjs)==null?void 0:l.joinWaitlist(i)};if(this.clerkjs&&this.loaded)return s();this.premountMethodCalls.set("joinWaitlist",s)},this.signOut=async(...i)=>{const s=()=>{var l;return(l=this.clerkjs)==null?void 0:l.signOut(...i)};if(this.clerkjs&&this.loaded)return s();this.premountMethodCalls.set("signOut",s)},this.__internal_attemptToEnableEnvironmentSetting=i=>{const s=()=>{var l;return(l=this.clerkjs)==null?void 0:l.__internal_attemptToEnableEnvironmentSetting(i)};if(this.clerkjs&&this.loaded)return s();this.premountMethodCalls.set("__internal_attemptToEnableEnvironmentSetting",s)};const{Clerk:n=null,publishableKey:r}=e||{};pa(this,ao,r),pa(this,Gl,e==null?void 0:e.proxyUrl),pa(this,Vl,e==null?void 0:e.domain),this.options=e,this.Clerk=n,this.mode=Yf()?"browser":"server",pa(this,ff,new aV(this)),this.options.sdkMetadata||(this.options.sdkMetadata=lV),Dt(this,Fi).emit(Fh.Status,"loading"),Dt(this,Fi).prioritizedOn(Fh.Status,i=>pa(this,hf,i)),Dt(this,ao)&&this.loadClerkJS()}get publishableKey(){return Dt(this,ao)}get loaded(){var e;return((e=this.clerkjs)==null?void 0:e.loaded)||!1}get status(){var e;return this.clerkjs?((e=this.clerkjs)==null?void 0:e.status)||(this.clerkjs.loaded?"ready":"loading"):Dt(this,hf)}static getOrCreateInstance(e){return(!Yf()||!Dt(this,co)||e.Clerk&&Dt(this,co).Clerk!==e.Clerk||Dt(this,co).publishableKey!==e.publishableKey)&&pa(this,co,new lL(e)),Dt(this,co)}static clearInstance(){pa(this,co,null)}
113get domain(){return typeof window<"u"&&window.location?Cy(Dt(this,Vl),new URL(window.location.href),""):typeof Dt(this,Vl)=="function"?ki.throw(Ey):Dt(this,Vl)||""}get proxyUrl(){return typeof window<"u"&&window.location?Cy(Dt(this,Gl),new URL(window.location.href),""):typeof Dt(this,Gl)=="function"?ki.throw(Ey):Dt(this,Gl)||""}__internal_getOption(e){var n,r;return(n=this.clerkjs)!=null&&n.__internal_getOption?(r=this.clerkjs)==null?void 0:r.__internal_getOption(e):this.options[e]}get sdkMetadata(){var e;return((e=this.clerkjs)==null?void 0:e.sdkMetadata)||this.options.sdkMetadata||void 0}get instanceType(){var e;return(e=this.clerkjs)==null?void 0:e.instanceType}get frontendApi(){var e;return((e=this.clerkjs)==null?void 0:e.frontendApi)||""}get isStandardBrowser(){var e;return((e=this.clerkjs)==null?void 0:e.isStandardBrowser)||this.options.standardBrowser||!1}get __internal_queryClient(){var e;return(e=this.clerkjs)==null?void 0:e.__internal_queryClient}get isSatellite(){return typeof window<"u"&&window.location?Cy(this.options.isSatellite,new URL(window.location.href),!1):typeof this.options.isSatellite=="function"?ki.throw(Ey):!1}async loadClerkJS(){var e;if(!(this.mode!=="browser"||this.loaded)){typeof window<"u"&&(window.__clerk_publishable_key=Dt(this,ao),window.__clerk_proxy_url=this.proxyUrl,window.__clerk_domain=this.domain);try{if(this.Clerk){let n;_H(this.Clerk)?(n=new this.Clerk(Dt(this,ao),{proxyUrl:this.proxyUrl,domain:this.domain}),this.beforeLoad(n),await n.load(this.options)):(n=this.Clerk,n.loaded||(this.beforeLoad(n),await n.load(this.options))),global.Clerk=n}else if(!__BUILD_DISABLE_RHC__){if(global.Clerk||await JH({...this.options,publishableKey:Dt(this,ao),proxyUrl:this.proxyUrl,domain:this.domain,nonce:this.options.nonce}),!global.Clerk)throw new Error("Failed to download latest ClerkJS. Contact [email protected].");this.beforeLoad(global.Clerk),await global.Clerk.load(this.options)}return(e=global.Clerk)!=null&&e.loaded?this.hydrateClerkJS(global.Clerk):void 0}catch(n){const r=n;Dt(this,Fi).emit(Fh.Status,"error"),console.error(r.stack||r.message||r);return}}}get version(){var e;return(e=this.clerkjs)==null?void 0:e.version}get client(){if(this.clerkjs)return this.clerkjs.client}get session(){if(this.clerkjs)return this.clerkjs.session}get user(){if(this.clerkjs)return this.clerkjs.user}get organization(){if(this.clerkjs)return this.clerkjs.organization}get telemetry(){if(this.clerkjs)return this.clerkjs.telemetry}get __unstable__environment(){if(this.clerkjs)return this.clerkjs.__unstable__environment}get isSignedIn(){return this.clerkjs?this.clerkjs.isSignedIn:!1}get billing(){var e;return(e=this.clerkjs)==null?void 0:e.billing}get __internal_state(){return this.loaded&&this.clerkjs?this.clerkjs.__internal_state:Dt(this,ff)}get apiKeys(){var e;return(e=this.clerkjs)==null?void 0:e.apiKeys}__unstable__setEnvironment(...e){if(this.clerkjs&&"__unstable__setEnvironment"in this.clerkjs)this.clerkjs.__unstable__setEnvironment(e);else return}};hf=new WeakMap;Vl=new WeakMap;Gl=new WeakMap;ao=new WeakMap;Fi=new WeakMap;ff=new WeakMap;co=new WeakMap;Yc=new WeakSet;mf=function(){return new Promise(t=>{this.addOnLoaded(()=>t(this.clerkjs))})};oo(aL,co);var Q1=aL;function uV(t){const{isomorphicClerkOptions:e,initialState:n,children:r}=t,{isomorphicClerk:i,clerkStatus:s}=cV(e),[l,u]=K.useState({client:i.client,session:i.session,user:i.user,organization:i.organization});K.useEffect(()=>i.addListener(q=>u({...q})),[]);const c=eV(i.loaded,l,n),p=K.useMemo(()=>({value:i}),[s]),h=K.useMemo(()=>({value:l.client}),[l.client]),{sessionId:m,sessionStatus:g,sessionClaims:_,session:x,userId:S,user:w,orgId:C,actor:R,organization:I,orgRole:P,orgSlug:A,orgPermissions:N,factorVerificationAge:T}=c,L=K.useMemo(()=>({value:{sessionId:m,sessionStatus:g,sessionClaims:_,userId:S,actor:R,orgId:C,orgRole:P,orgSlug:A,orgPermissions:N,factorVerificationAge:T}}),[m,g,S,R,C,P,A,T,_==null?void 0:_.__raw]),O=K.useMemo(()=>({value:x}),[m,x]),j=K.useMemo(()=>({value:w}),[S,w]),B=K.useMemo(()=>({value:{organization:I}}),[C,I]);return K.createElement(KW.Provider,{value:p},K.createElement(OW.Provider,{value:h},K.createElement(DW.Provider,{value:O},K.createElement(zW,{...B.value},K.createElement(GW.Provider,{value:L},K.createElement(MW.Provider,{value:j},K.createElement(FW,{value:void 0},r)))))))}var cV=t=>{const e=K.useRef(Q1.getOrCreateInstance(t)),[n,r]=K.useState(e.current.status);return K.useEffect(()=>{e.current.__unstable__updateProps({appearance:t.appearance})},[t.appearance]),K.useEffect(()=>{e.current.__unstable__updateProps({options:t})},[t.localization]),K.useEffect(()=>(e.current.on("status",r),()=>{e.current&&e.current.off("status",r),Q1.clearInstance()}),[]),{isomorphicClerk:e.current,clerkStatus:n}};function dV(t){const{initialState:e,children:n,__internal_bypassMissingPublishableKey:r,...i}=t,{publishableKey:s="",Clerk:l}=i;return!l&&!r&&(s?s&&!cb(s)&&ki.throwInvalidPublishableKeyError({key:s}):ki.throwMissingPublishableKeyError()),K.createElement(uV,{initialState:e,isomorphicClerkOptions:i},n)}var uL=xH(dV,"ClerkProvider",JW);uL.displayName="ClerkProvider";VW({packageName:"@clerk/clerk-react"});YH("@clerk/clerk-react");/** 114 * @license lucide-react v0.460.0 - ISC 115 * 116 * This source code is licensed under the ISC license. 117 * See the LICENSE file in the root directory of this source tree. 118 */const pV=t=>t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),cL=(...t)=>t.filter((e,n,r)=>!!e&&e.trim()!==""&&r.indexOf(e)===n).join(" ").trim();/** 119 * @license lucide-react v0.460.0 - ISC 120 * 121 * This source code is licensed under the ISC license. 122 * See the LICENSE file in the root directory of this source tree. 123 */var hV={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/** 124 * @license lucide-react v0.460.0 - ISC 125 * 126 * This source code is licensed under the ISC license. 127 * See the LICENSE file in the root directory of this source tree. 128 */const fV=k.forwardRef(({color:t="currentColor",size:e=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:i="",children:s,iconNode:l,...u},c)=>k.createElement("svg",{ref:c,...hV,width:e,height:e,stroke:t,strokeWidth:r?Number(n)*24/Number(e):n,className:cL("lucide",i),...u},[...l.map(([p,h])=>k.createElement(p,h)),...Array.isArray(s)?s:[s]]));/** 129 * @license lucide-react v0.460.0 - ISC 130 * 131 * This source code is licensed under the ISC license. 132 * See the LICENSE file in the root directory of this source tree. 133 */const Ge=(t,e)=>{const n=k.forwardRef(({className:r,...i},s)=>k.createElement(fV,{ref:s,iconNode:e,className:cL(`lucide-${pV(t)}`,r),...i}));return n.displayName=`${t}`,n};/** 134 * @license lucide-react v0.460.0 - ISC 135 * 136 * This source code is licensed under the ISC license. 137 * See the LICENSE file in the root directory of this source tree. 138 */const mV=Ge("ArrowLeftRight",[["path",{d:"M8 3 4 7l4 4",key:"9rb6wj"}],["path",{d:"M4 7h16",key:"6tx8e3"}],["path",{d:"m16 21 4-4-4-4",key:"siv7j2"}],["path",{d:"M20 17H4",key:"h6l3hr"}]]);/** 139 * @license lucide-react v0.460.0 - ISC 140 * 141 * This source code is licensed under the ISC license. 142 * See the LICENSE file in the root directory of this source tree. 143 */const dd=Ge("ArrowRight",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);/** 144 * @license lucide-react v0.460.0 - ISC 145 * 146 * This source code is licensed under the ISC license. 147 * See the LICENSE file in the root directory of this source tree. 148 */const X1=Ge("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/** 149 * @license lucide-react v0.460.0 - ISC 150 * 151 * This source code is licensed under the ISC license. 152 * See the LICENSE file in the root directory of this source tree. 153 */const Kf=Ge("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);/** 154 * @license lucide-react v0.460.0 - ISC 155 * 156 * This source code is licensed under the ISC license. 157 * See the LICENSE file in the root directory of this source tree. 158 */const Jf=Ge("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/** 159 * @license lucide-react v0.460.0 - ISC 160 * 161 * This source code is licensed under the ISC license. 162 * See the LICENSE file in the root directory of this source tree. 163 */const gV=Ge("CircleCheckBig",[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]);/** 164 * @license lucide-react v0.460.0 - ISC 165 * 166 * This source code is licensed under the ISC license. 167 * See the LICENSE file in the root directory of this source tree. 168 */const vV=Ge("CircleCheck",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/** 169 * @license lucide-react v0.460.0 - ISC 170 * 171 * This source code is licensed under the ISC license. 172 * See the LICENSE file in the root directory of this source tree. 173 */const yV=Ge("CircleX",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]]);/** 174 * @license lucide-react v0.460.0 - ISC 175 * 176 * This source code is licensed under the ISC license. 177 * See the LICENSE file in the root directory of this source tree. 178 */const _V=Ge("Coffee",[["path",{d:"M10 2v2",key:"7u0qdc"}],["path",{d:"M14 2v2",key:"6buw04"}],["path",{d:"M16 8a1 1 0 0 1 1 1v8a4 4 0 0 1-4 4H7a4 4 0 0 1-4-4V9a1 1 0 0 1 1-1h14a4 4 0 1 1 0 8h-1",key:"pwadti"}],["path",{d:"M6 2v2",key:"colzsn"}]]);/** 179 * @license lucide-react v0.460.0 - ISC 180 * 181 * This source code is licensed under the ISC license. 182 * See the LICENSE file in the root directory of this source tree. 183 */const gf=Ge("Coins",[["circle",{cx:"8",cy:"8",r:"6",key:"3yglwk"}],["path",{d:"M18.09 10.37A6 6 0 1 1 10.34 18",key:"t5s6rm"}],["path",{d:"M7 6h1v4",key:"1obek4"}],["path",{d:"m16.71 13.88.7.71-2.82 2.82",key:"1rbuyh"}]]);/** 184 * @license lucide-react v0.460.0 - ISC 185 * 186 * This source code is licensed under the ISC license. 187 * See the LICENSE file in the root directory of this source tree. 188 */const bV=Ge("Cookie",[["path",{d:"M12 2a10 10 0 1 0 10 10 4 4 0 0 1-5-5 4 4 0 0 1-5-5",key:"laymnq"}],["path",{d:"M8.5 8.5v.01",key:"ue8clq"}],["path",{d:"M16 15.5v.01",key:"14dtrp"}],["path",{d:"M12 12v.01",key:"u5ubse"}],["path",{d:"M11 17v.01",key:"1hyl5a"}],["path",{d:"M7 14v.01",key:"uct60s"}]]);/** 189 * @license lucide-react v0.460.0 - ISC 190 * 191 * This source code is licensed under the ISC license. 192 * See the LICENSE file in the root directory of this source tree.
193 */const xV=Ge("CreditCard",[["rect",{width:"20",height:"14",x:"2",y:"5",rx:"2",key:"ynyp8z"}],["line",{x1:"2",x2:"22",y1:"10",y2:"10",key:"1b3vmo"}]]);/** 194 * @license lucide-react v0.460.0 - ISC 195 * 196 * This source code is licensed under the ISC license. 197 * See the LICENSE file in the root directory of this source tree. 198 */const SV=Ge("Download",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]]);/** 199 * @license lucide-react v0.460.0 - ISC 200 * 201 * This source code is licensed under the ISC license. 202 * See the LICENSE file in the root directory of this source tree. 203 */const wV=Ge("EqualNot",[["line",{x1:"5",x2:"19",y1:"9",y2:"9",key:"1nwqeh"}],["line",{x1:"5",x2:"19",y1:"15",y2:"15",key:"g8yjpy"}],["line",{x1:"19",x2:"5",y1:"5",y2:"19",key:"1x9vlm"}]]);/** 204 * @license lucide-react v0.460.0 - ISC 205 * 206 * This source code is licensed under the ISC license. 207 * See the LICENSE file in the root directory of this source tree. 208 */const EV=Ge("Equal",[["line",{x1:"5",x2:"19",y1:"9",y2:"9",key:"1nwqeh"}],["line",{x1:"5",x2:"19",y1:"15",y2:"15",key:"g8yjpy"}]]);/** 209 * @license lucide-react v0.460.0 - ISC 210 * 211 * This source code is licensed under the ISC license. 212 * See the LICENSE file in the root directory of this source tree. 213 */const kV=Ge("ExternalLink",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]]);/** 214 * @license lucide-react v0.460.0 - ISC 215 * 216 * This source code is licensed under the ISC license. 217 * See the LICENSE file in the root directory of this source tree. 218 */const CV=Ge("FileAudio",[["path",{d:"M17.5 22h.5a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v3",key:"rslqgf"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M2 19a2 2 0 1 1 4 0v1a2 2 0 1 1-4 0v-4a6 6 0 0 1 12 0v4a2 2 0 1 1-4 0v-1a2 2 0 1 1 4 0",key:"9f7x3i"}]]);/** 219 * @license lucide-react v0.460.0 - ISC 220 * 221 * This source code is licensed under the ISC license. 222 * See the LICENSE file in the root directory of this source tree. 223 */const TV=Ge("Headphones",[["path",{d:"M3 14h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-7a9 9 0 0 1 18 0v7a2 2 0 0 1-2 2h-1a2 2 0 0 1-2-2v-3a2 2 0 0 1 2-2h3",key:"1xhozi"}]]);/** 224 * @license lucide-react v0.460.0 - ISC 225 * 226 * This source code is licensed under the ISC license. 227 * See the LICENSE file in the root directory of this source tree. 228 */const PV=Ge("Info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]);/** 229 * @license lucide-react v0.460.0 - ISC 230 * 231 * This source code is licensed under the ISC license. 232 * See the LICENSE file in the root directory of this source tree. 233 */const RV=Ge("LifeBuoy",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m4.93 4.93 4.24 4.24",key:"1ymg45"}],["path",{d:"m14.83 9.17 4.24-4.24",key:"1cb5xl"}],["path",{d:"m14.83 14.83 4.24 4.24",key:"q42g0n"}],["path",{d:"m9.17 14.83-4.24 4.24",key:"bqpfvv"}],["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}]]);/** 234 * @license lucide-react v0.460.0 - ISC 235 * 236 * This source code is licensed under the ISC license. 237 * See the LICENSE file in the root directory of this source tree. 238 */const Lu=Ge("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);/** 239 * @license lucide-react v0.460.0 - ISC 240 * 241 * This source code is licensed under the ISC license. 242 * See the LICENSE file in the root directory of this source tree. 243 */const AV=Ge("Maximize2",[["polyline",{points:"15 3 21 3 21 9",key:"mznyad"}],["polyline",{points:"9 21 3 21 3 15",key:"1avn1i"}],["line",{x1:"21",x2:"14",y1:"3",y2:"10",key:"ota7mn"}],["line",{x1:"3",x2:"10",y1:"21",y2:"14",key:"1atl0r"}]]);/** 244 * @license lucide-react v0.460.0 - ISC 245 * 246 * This source code is licensed under the ISC license. 247 * See the LICENSE file in the root directory of this source tree. 248 */const IV=Ge("Medal",[["path",{d:"M7.21 15 2.66 7.14a2 2 0 0 1 .13-2.2L4.4 2.8A2 2 0 0 1 6 2h12a2 2 0 0 1 1.6.8l1.6 2.14a2 2 0 0 1 .14 2.2L16.79 15",key:"143lza"}],["path",{d:"M11 12 5.12 2.2",key:"qhuxz6"}],["path",{d:"m13 12 5.88-9.8",key:"hbye0f"}],["path",{d:"M8 7h8",key:"i86dvs"}],["circle",{cx:"12",cy:"17",r:"5",key:"qbz8iq"}],["path",{d:"M12 18v-2h-.5",key:"fawc4q"}]]);/** 249 * @license lucide-react v0.460.0 - ISC 250 * 251 * This source code is licensed under the ISC license. 252 * See the LICENSE file in the root directory of this source tree. 253 */const LV=Ge("Menu",[["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}],["line",{x1:"4",x2:"20",y1:"6",y2:"6",key:"1owob3"}],["line",{x1:"4",x2:"20",y1:"18",y2:"18",key:"yk5zj1"}]]);/** 254 * @license lucide-react v0.460.0 - ISC 255 * 256 * This source code is licensed under the ISC license. 257 * See the LICENSE file in the root directory of this source tree. 258 */const _b=Ge("Pause",[["rect",{x:"14",y:"4",width:"4",height:"16",rx:"1",key:"zuxfzm"}],["rect",{x:"6",y:"4",width:"4",height:"16",rx:"1",key:"1okwgv"}]]);/** 259 * @license lucide-react v0.460.0 - ISC 260 * 261 * This source code is licensed under the ISC license. 262 * See the LICENSE file in the root directory of this source tree. 263 */const Qf=Ge("Play",[["polygon",{points:"6 3 20 12 6 21 6 3",key:"1oa8hb"}]]);/** 264 * @license lucide-react v0.460.0 - ISC 265 * 266 * This source code is licensed under the ISC license. 267 * See the LICENSE file in the root directory of this source tree. 268 */const bb=Ge("RefreshCw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]);/** 269 * @license lucide-react v0.460.0 - ISC 270 * 271 * This source code is licensed under the ISC license. 272 * See the LICENSE file in the root directory of this source tree. 273 */const MV=Ge("RotateCcw",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]]);/** 274 * @license lucide-react v0.460.0 - ISC 275 * 276 * This source code is licensed under the ISC license. 277 * See the LICENSE file in the root directory of this source tree. 278 */const NV=Ge("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);/** 279 * @license lucide-react v0.460.0 - ISC 280 * 281 * This source code is licensed under the ISC license. 282 * See the LICENSE file in the root directory of this source tree. 283 */const Xf=Ge("ShieldCheck",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",ke
283y:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/** 284 * @license lucide-react v0.460.0 - ISC 285 * 286 * This source code is licensed under the ISC license. 287 * See the LICENSE file in the root directory of this source tree. 288 */const OV=Ge("Shield",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]]);/** 289 * @license lucide-react v0.460.0 - ISC 290 * 291 * This source code is licensed under the ISC license. 292 * See the LICENSE file in the root directory of this source tree. 293 */const DV=Ge("SkipBack",[["polygon",{points:"19 20 9 12 19 4 19 20",key:"o2sva"}],["line",{x1:"5",x2:"5",y1:"19",y2:"5",key:"1ocqjk"}]]);/** 294 * @license lucide-react v0.460.0 - ISC 295 * 296 * This source code is licensed under the ISC license. 297 * See the LICENSE file in the root directory of this source tree. 298 */const jV=Ge("TriangleAlert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);/** 299 * @license lucide-react v0.460.0 - ISC 300 * 301 * This source code is licensed under the ISC license. 302 * See the LICENSE file in the root directory of this source tree. 303 */const dL=Ge("Upload",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"17 8 12 3 7 8",key:"t8dd8p"}],["line",{x1:"12",x2:"12",y1:"3",y2:"15",key:"widbto"}]]);/** 304 * @license lucide-react v0.460.0 - ISC 305 * 306 * This source code is licensed under the ISC license. 307 * See the LICENSE file in the root directory of this source tree. 308 */const FV=Ge("User",[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]]);/** 309 * @license lucide-react v0.460.0 - ISC 310 * 311 * This source code is licensed under the ISC license. 312 * See the LICENSE file in the root directory of this source tree. 313 */const UV=Ge("Volume1",[["path",{d:"M11 4.702a.705.705 0 0 0-1.203-.498L6.413 7.587A1.4 1.4 0 0 1 5.416 8H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2.416a1.4 1.4 0 0 1 .997.413l3.383 3.384A.705.705 0 0 0 11 19.298z",key:"uqj9uw"}],["path",{d:"M16 9a5 5 0 0 1 0 6",key:"1q6k2b"}]]);/** 314 * @license lucide-react v0.460.0 - ISC 315 * 316 * This source code is licensed under the ISC license. 317 * See the LICENSE file in the root directory of this source tree. 318 */const zV=Ge("Volume2",[["path",{d:"M11 4.702a.705.705 0 0 0-1.203-.498L6.413 7.587A1.4 1.4 0 0 1 5.416 8H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2.416a1.4 1.4 0 0 1 .997.413l3.383 3.384A.705.705 0 0 0 11 19.298z",key:"uqj9uw"}],["path",{d:"M16 9a5 5 0 0 1 0 6",key:"1q6k2b"}],["path",{d:"M19.364 18.364a9 9 0 0 0 0-12.728",key:"ijwkga"}]]);/** 319 * @license lucide-react v0.460.0 - ISC 320 * 321 * This source code is licensed under the ISC license. 322 * See the LICENSE file in the root directory of this source tree. 323 */const BV=Ge("VolumeX",[["path",{d:"M11 4.702a.705.705 0 0 0-1.203-.498L6.413 7.587A1.4 1.4 0 0 1 5.416 8H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2.416a1.4 1.4 0 0 1 .997.413l3.383 3.384A.705.705 0 0 0 11 19.298z",key:"uqj9uw"}],["line",{x1:"22",x2:"16",y1:"9",y2:"15",key:"1ewh16"}],["line",{x1:"16",x2:"22",y1:"9",y2:"15",key:"5ykzw1"}]]);/** 324 * @license lucide-react v0.460.0 - ISC 325 * 326 * This source code is licensed under the ISC license. 327 * See the LICENSE file in the root directory of this source tree. 328 */const $V=Ge("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);/** 329 * @license lucide-react v0.460.0 - ISC 330 * 331 * This source code is licensed under the ISC license. 332 * See the LICENSE file in the root directory of this source tree. 333 */const qV=Ge("ZoomIn",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["line",{x1:"21",x2:"16.65",y1:"21",y2:"16.65",key:"13gj7c"}],["line",{x1:"11",x2:"11",y1:"8",y2:"14",key:"1vmskp"}],["line",{x1:"8",x2:"14",y1:"11",y2:"11",key:"durymu"}]]);/** 334 * @license lucide-react v0.460.0 - ISC 335 * 336 * This source code is licensed under the ISC license. 337 * See the LICENSE file in the root directory of this source tree. 338 */const WV=Ge("ZoomOut",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["line",{x1:"21",x2:"16.65",y1:"21",y2:"16.65",key:"13gj7c"}],["line",{x1:"8",x2:"14",y1:"11",y2:"11",key:"durymu"}]]),HV={BASE_URL:"/",DEV:!1,MODE:"production",PROD:!0,SSR:!1,VITE_API_URL:"https://api.lexpi.ai/api",VITE_CLERK_PUBLISHABLE_KEY:"pk_live_Y2xlcmsubGV4cGkuYWkk",VITE_FEATURE_ANON_PREVIEW:"true",VITE_FEATURE_AUTH:"true",VITE_FEATURE_PURCHASE:"true",VITE_FEATURE_UPLOAD:"true",VITE_FONT_PRESET:"euclid",VITE_GADS_SIGNUP_CONVERSION:"AW-18287264474/rBozCKT0uMocENqFhpBE",VITE_HERO_BG_DIFFRACTION:"true",VITE_POSTHOG_HOST:"https://eu.i.posthog.com",VITE_POSTHOG_KEY:"phc_wjatyAbpBtEWVhuBQBhXTWWcPdz2veq2eKFMYPk524sh",VITE_SENTRY_DSN:"https://926985a85d02f03e3ec7a21e9589dfc4@o4511245328515072.ingest.de.sentry.io/4511245346275408",VITE_VERCEL_BRANCH_URL:"lexpi-ai-git-main-lexpi314s-projects.vercel.app",VITE_VERCEL_DEPLOYMENT_ID:"dpl_6e82hPAZaPwxS9U4nUYGKsuxmeTS",VITE_VERCEL_ENV:"production",VITE_VERCEL_GIT_COMMIT_AUTHOR_LOGIN:"lexpi314",VITE_VERCEL_GIT_COMMIT_AUTHOR_NAME:"lexpi",VITE_VERCEL_GIT_COMMIT_MESSAGE:"merge(website): mesure first-party des refus d'analyse (analysis_block_daily)",VITE_VERCEL_GIT_COMMIT_REF:"main",VITE_VERCEL_GIT_COMMIT_SHA:"a6e85628bcaf40ebd27641017f73bdbb0d7cd6c2",VITE_VERCEL_GIT_PREVIOUS_SHA:"",VITE_VERCEL_GIT_PROVIDER:"github",VITE_VERCEL_GIT_PULL_REQUEST_ID:"",VITE_VERCEL_GIT_REPO_ID:"951902160",VITE_VERCEL_GIT_REPO_OWNER:"lexpi314",VITE_VERCEL_GIT_REPO_SLUG:"lexpi_ai",VITE_VERCEL_OBSERVABILITY_CLIENT_CONFIG:'{"analytics":{"scriptSrc":"61b317aaddaaf816/script.
338js","viewEndpoint":"61b317aaddaaf816/view","eventEndpoint":"61b317aaddaaf816/event","sessionEndpoint":"61b317aaddaaf816/session"},"speedInsights":{"scriptSrc":"9c3fcbfb0f140af3/script.js","endpoint":"9c3fcbfb0f140af3/vitals"}}',VITE_VERCEL_PROJECT_ID:"prj_4QKDjnDactkulYSbHVu66jzJIibB",VITE_VERCEL_PROJECT_PRODUCTION_URL:"lexpi.ai",VITE_VERCEL_TARGET_ENV:"production",VITE_VERCEL_URL:"lexpi-r2b7v9fdf-lexpi314s-projects.vercel.app",VITE_WS_URL:"wss://api.lexpi.ai"},pd={upload:Uh("VITE_FEATURE_UPLOAD"),auth:Uh("VITE_FEATURE_AUTH"),purchase:Uh("VITE_FEATURE_PURCHASE"),anonPreview:Uh("VITE_FEATURE_ANON_PREVIEW")};function Uh(t){return["1","true"].includes(String(HV[t]??"").toLowerCase())}let vf=null;function Z1(t){vf=t}function VV(){vf==null||vf()}function mo({feature:t,children:e}){if(pd[t])return v.jsx(v.Fragment,{children:e});const n=r=>{r.preventDefault(),r.stopPropagation(),VV()};return v.jsx("div",{className:"relative",onClickCapture:n,onKeyDownCapture:r=>{(r.key==="Enter"||r.key===" ")&&n(r)},onSubmitCapture:n,children:e})}const eC=t=>{let e;const n=new Set,r=(p,h)=>{const m=typeof p=="function"?p(e):p;if(!Object.is(m,e)){const g=e;e=h??(typeof m!="object"||m===null)?m:Object.assign({},e,m),n.forEach(_=>_(e,g))}},i=()=>e,u={setState:r,getState:i,getInitialState:()=>c,subscribe:p=>(n.add(p),()=>n.delete(p))},c=e=t(r,i,u);return u},GV=(t=>t?eC(t):eC),YV=t=>t;function KV(t,e=YV){const n=K.useSyncExternalStore(t.subscribe,K.useCallback(()=>e(t.getState()),[t,e]),K.useCallback(()=>e(t.getInitialState()),[t,e]));return K.useDebugValue(n),n}const tC=t=>{const e=GV(t),n=r=>KV(e,r);return Object.assign(n,e),n},g0=(t=>t?tC(t):tC),Kc=g0(t=>({balance:0,nearestExpiry:null,expiringCount:0,setBalance:e=>t({balance:e}),setExpiryInfo:(e,n)=>t({nearestExpiry:e,expiringCount:n})})),go=g0(t=>({role:null,freeHdLicenseQuota:0,isLoading:!0,error:null,setUser:(e,n)=>t(r=>({role:e,freeHdLicenseQuota:n??r.freeHdLicenseQuota,isLoading:!1,error:null})),setFreeHdLicenseQuota:e=>t({freeHdLicenseQuota:e}),decrementFreeHdLicenseQuota:()=>t(e=>({freeHdLicenseQuota:Math.max(0,e.freeHdLicenseQuota-1)})),setError:e=>t({error:e,isLoading:!1,role:null}),clear:()=>t({role:null,freeHdLicenseQuota:0,isLoading:!0,error:null})})),He=t=>typeof t=="string",Nc=()=>{let t,e;const n=new Promise((r,i)=>{t=r,e=i});return n.resolve=t,n.reject=e,n},nC=t=>t==null?"":""+t,JV=(t,e,n)=>{t.forEach(r=>{e[r]&&(n[r]=e[r])})},QV=/###/g,rC=t=>t&&t.indexOf("###")>-1?t.replace(QV,"."):t,iC=t=>!t||He(t),hd=(t,e,n)=>{const r=He(e)?e.split("."):e;let i=0;for(;i<r.length-1;){if(iC(t))return{};const s=rC(r[i]);!t[s]&&n&&(t[s]=new n),Object.prototype.hasOwnProperty.call(t,s)?t=t[s]:t={},++i}return iC(t)?{}:{obj:t,k:rC(r[i])}},sC=(t,e,n)=>{const{obj:r,k:i}=hd(t,e,Object);if(r!==void 0||e.length===1){r[i]=n;return}let s=e[e.length-1],l=e.slice(0,e.length-1),u=hd(t,l,Object);for(;u.obj===void 0&&l.length;)s=`${l[l.length-1]}.${s}`,l=l.slice(0,l.length-1),u=hd(t,l,Object),u&&u.obj&&typeof u.obj[`${u.k}.${s}`]<"u"&&(u.obj=void 0);u.obj[`${u.k}.${s}`]=n},XV=(t,e,n,r)=>{const{obj:i,k:s}=hd(t,e,Object);i[s]=i[s]||[],i[s].push(n)},Zf=(t,e)=>{const{obj:n,k:r}=hd(t,e);if(n)return n[r]},ZV=(t,e,n)=>{const r=Zf(t,n);return r!==void 0?r:Zf(e,n)},pL=(t,e,n)=>{for(const r in e)r!=="__proto__"&&r!=="constructor"&&(r in t?He(t[r])||t[r]instanceof String||He(e[r])||e[r]instanceof String?n&&(t[r]=e[r]):pL(t[r],e[r],n):t[r]=e[r]);return t},Ml=t=>t.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var e8={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};const t8=t=>He(t)?t.replace(/[&<>"'\/]/g,e=>e8[e]):t;class n8{constructor(e){this.capacity=e,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(e){const n=this.regExpMap.get(e);if(n!==void 0)return n;const r=new RegExp(e);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(e,r),this.regExpQueue.push(e),r}}const r8=[" ",",","?","!",";"],i8=new n8(20),s8=(t,e,n)=>{e=e||"",n=n||"";const r=r8.filter(l=>e.indexOf(l)<0&&n.indexOf(l)<0);if(r.length===0)return!0;const i=i8.getRegExp(`(${r.map(l=>l==="?"?"\\?":l).join("|")})`);let s=!i.test(t);if(!s){const l=t.indexOf(n);l>0&&!i.test(t.substring(0,l))&&(s=!0)}return s},xb=function(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!t)return;if(t[e])return t[e];const r=e.split(n);let i=t;for(let s=0;s<r.length;){if(!i||typeof i!="object")return;let l,u="";for(let c=s;c<r.length;++c)if(c!==s&&(u+=n),u+=r[c],l=i[u],l!==void 0){if(["string","number","boolean"].indexOf(typeof l)>-1&&c<r.length-1)continue;s+=c-s+1;break}i=l}return i},em=t=>t&&t.replace("_","-"),o8={type:"logger",log(t){this.output("log",t)},warn(t){this.output("warn",t)},error(t){this.output("error",t)},output(t,e){console&&console[t]&&console[t].apply(console,e)}};class tm{constructor(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.init(e,n)}init(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=n.prefix||"i18next:",this.logger=e||o8,this.options=n,this.debug=n.debug}log(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return this.forward(n,"log","",!0)}warn(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return this.forward(n,"warn","",!0)}error(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return this.forward(n,"error","")}deprecate(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return this.forward(n,"warn","WARNING DEPRECATED: ",!0)}forward(e,n,r,i){return i&&!this.debug?null:(He(e[0])&&(e[0]=`${r}${this.prefix} ${e[0]}`),this.logger[n](e))}create(e){return new tm(this.logger,{prefix:`${this.prefix}:${e}:`,...this.options})}clone(e){return e=e||this.options,e.prefix=e.prefix||this.prefix,new tm(this.logger,e)}}var Vi=new tm;class eg{constructor(){this.observers={}}on(e,n){return e.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}
vendor: 3,276 bytes, line 338
338off(e,n){if(this.observers[e]){if(!n){delete this.observers[e];return}this.observers[e].delete(n)}}emit(e){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[e]&&Array.from(this.observers[e].entries()).forEach(l=>{let[u,c]=l;for(let p=0;p<c;p++)u(...r)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(l=>{let[u,c]=l;for(let p=0;p<c;p++)u.apply(u,[e,...r])})}}class oC extends eg{constructor(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=e||{},this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}removeNamespaces(e){const n=this.options.ns.indexOf(e);n>-1&&this.options.ns.splice(n,1)}getResource(e,n,r){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const s=i.keySeparator!==void 0?i.keySeparator:this.options.keySeparator,l=i.ignoreJSONStructure!==void 0?i.ignoreJSONStructure:this.options.ignoreJSONStructure;let u;e.indexOf(".")>-1?u=e.split("."):(u=[e,n],r&&(Array.isArray(r)?u.push(...r):He(r)&&s?u.push(...r.split(s)):u.push(r)));const c=Zf(this.data,u);return!c&&!n&&!r&&e.indexOf(".")>-1&&(e=u[0],n=u[1],r=u.slice(2).join(".")),c||!l||!He(r)?c:xb(this.data&&this.data[e]&&this.data[e][n],r,s)}addResource(e,n,r,i){let s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1};const l=s.keySeparator!==void 0?s.keySeparator:this.options.keySeparator;let u=[e,n];r&&(u=u.concat(l?r.split(l):r)),e.indexOf(".")>-1&&(u=e.split("."),i=n,n=u[1]),this.addNamespaces(n),sC(this.data,u,i),s.silent||this.emit("added",e,n,r,i)}addResources(e,n,r){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(const s in r)(He(r[s])||Array.isArray(r[s]))&&this.addResource(e,n,s,r[s],{silent:!0});i.silent||this.emit("added",e,n,r)}addResourceBundle(e,n,r,i,s){let l=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1,skipCopy:!1},u=[e,n];e.indexOf(".")>-1&&(u=e.split("."),i=r,r=n,n=u[1]),this.addNamespaces(n);let c=Zf(this.data,u)||{};l.skipCopy||(r=JSON.parse(JSON.stringify(r))),i?pL(c,r,s):c={...c,...r},sC(this.data,u,c),l.silent||this.emit("added",e,n,r)}removeResourceBundle(e,n){this.hasResourceBundle(e,n)&&delete this.data[e][n],this.removeNamespaces(n),this.emit("removed",e,n)}hasResourceBundle(e,n){return this.getResource(e,n)!==void 0}getResourceBundle(e,n){return n||(n=this.options.defaultNS),this.options.compatibilityAPI==="v1"?{...this.getResource(e,n)}:this.getResource(e,n)}getDataByLanguage(e){return this.data[e]}hasLanguageSomeTranslations(e){const n=this.getDataByLanguage(e);return!!(n&&Object.keys(n)||[]).find(i=>n[i]&&Object.keys(n[i]).length>0)}toJSON(){return this.data}}var hL={processors:{},addPostProcessor(t){this.processors[t.name]=t},handle(t,e,n,r,i){return t.forEach(s=>{this.processors[s]&&(e=this.processors[s].process(e,n,r,i))}),e}};const aC={};class nm extends eg{constructor(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),JV(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","
338i18nFormat","utils"],e,this),this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=Vi.create("translator")}changeLanguage(e){e&&(this.language=e)}exists(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(e==null)return!1;const r=this.resolve(e,n);return r&&r.res!==void 0}extractFromKey(e,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 l=r&&e.indexOf(r)>-1,u=!this.options.userDefinedKeySeparator&&!n.keySeparator&&!this.options.userDefinedNsSeparator&&!n.nsSeparator&&!s8(e,r,i);if(l&&!u){const c=e.match(this.interpolator.nestingRegexp);if(c&&c.length>0)return{key:e,namespaces:He(s)?[s]:s};const p=e.split(r);(r!==i||r===i&&this.options.ns.indexOf(p[0])>-1)&&(s=p.shift()),e=p.join(i)}return{key:e,namespaces:He(s)?[s]:s}}translate(e,n,r){if(typeof n!="object"&&this.options.overloadTranslationOptionHandler&&(n=this.options.overloadTranslationOptionHandler(arguments)),typeof n=="object"&&(n={...n}),n||(n={}),e==null)return"";Array.isArray(e)||(e=[String(e)]);const i=n.returnDetails!==void 0?n.returnDetails:this.options.returnDetails,s=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator,{key:l,namespaces:u}=this.extractFromKey(e[e.length-1],n),c=u[u.length-1],p=n.lng||this.language,h=n.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(p&&p.toLowerCase()==="cimode"){if(h){const P=n.nsSeparator||this.options.nsSeparator;return i?{res:`${c}${P}${l}`,usedKey:l,exactUsedKey:l,usedLng:p,usedNS:c,usedParams:this.getUsedParamsDetails(n)}:`${c}${P}${l}`}return i?{res:l,usedKey:l,exactUsedKey:l,usedLng:p,usedNS:c,usedParams:this.getUsedParamsDetails(n)}:l}const m=this.resolve(e,n);let g=m&&m.res;const _=m&&m.usedKey||l,x=m&&m.exactUsedKey||l,S=Object.prototype.toString.apply(g),w=["[object Number]","[object Function]","[object RegExp]"],C=n.joinArrays!==void 0?n.joinArrays:this.options.joinArrays,R=!this.i18nFormat||this.i18nFormat.handleAsObject,I=!He(g)&&typeof g!="boolean"&&typeof g!="number";if(R&&g&&I&&w.indexOf(S)<0&&!(He(C)&&Array.isArray(g))){if(!n.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const P=this.options.returnedObjectHandler?this.options.returnedObjectHandler(_,g,{...n,ns:u}):`key '${l} (${this.language})' returned an object instead of string.`;return i?(m.res=P,m.usedParams=this.getUsedParamsDetails(n),m):P}if(s){const P=Array.isArray(g),A=P?[]:{},N=P?x:_;for(const T in g)if(Object.prototype.hasOwnProperty.call(g,T)){const L=`${N}${s}${T}`;A[T]=this.translate(L,{...n,joinArrays:!1,ns:u}),A[T]===L&&(A[T]=g[T])}g=A}}else if(R&&He(C)&&Array.isArray(g))g=g.join(C),g&&(g=this.extendTranslation(g,e,n,r));else{let P=!1,A=!1;const N=n.count!==void 0&&!He(n.count),T=nm.hasDefaultValue(n),L=N?this.pluralResolver.getSuffix(p,n.count,n):"",O=n.ordinal&&N?this.pluralResolver.getSuffix(p,n.count,{ordinal:!1}):"",j=N&&!n.ordinal&&n.count===0&&this.pluralResolver.shouldUseIntlApi(),B=j&&n[`defaultValue${this.options.pluralSeparator}zero`]||n[`defaultValue${L}`]||n[`defaultValue${O}`]||n.defaultValue;!this.isValidLookup(g)&&T&&(P=!0,g=B),this.isValidLookup(g)||(A=!0,g=l);const G=(n.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&A?void 0:g,W=T&&B!==g&&this.options.updateMissing;if(A||P||W){if(this.logger.log(W?"updateKey":"missingKey",p,c,l,W?B:g),s){const $=this.resolve(l,{...n,keySeparator:!1});$&&$.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 ie=[];const se=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if(this.options.saveMissingTo==="fallback"&&se&&se[0])for(let $=0;$<se.length;$++)ie.push(se[$]);else this.options.saveMissingTo==="all"?ie=this.languageUtils.toResolveHierarchy(n.lng||this.language):ie.push(n.lng||this.language);const de=($,Z,Q)=>{const D=T&&Q!==g?Q:G;this.options.missingKeyHandler?this.options.missingKeyHandler($,c,Z,D,W,n):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing($,c,Z,D,W,n),this.emit
vendor: 12,007 bytes, line 338
338("missingKey",$,c,Z,g)};this.options.saveMissing&&(this.options.saveMissingPlurals&&N?ie.forEach($=>{const Z=this.pluralResolver.getSuffixes($,n);j&&n[`defaultValue${this.options.pluralSeparator}zero`]&&Z.indexOf(`${this.options.pluralSeparator}zero`)<0&&Z.push(`${this.options.pluralSeparator}zero`),Z.forEach(Q=>{de([$],l+Q,n[`defaultValue${Q}`]||B)})}):de(ie,l,B))}g=this.extendTranslation(g,e,n,m,r),A&&g===l&&this.options.appendNamespaceToMissingKey&&(g=`${c}:${l}`),(A||P)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?g=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${c}:${l}`:l,P?g:void 0):g=this.options.parseMissingKeyHandler(g))}return i?(m.res=g,m.usedParams=this.getUsedParamsDetails(n),m):g}extendTranslation(e,n,r,i,s){var l=this;if(this.i18nFormat&&this.i18nFormat.parse)e=this.i18nFormat.parse(e,{...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 p=He(e)&&(r&&r.interpolation&&r.interpolation.skipOnVariables!==void 0?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let h;if(p){const g=e.match(this.interpolator.nestingRegexp);h=g&&g.length}let m=r.replace&&!He(r.replace)?r.replace:r;if(this.options.interpolation.defaultVariables&&(m={...this.options.interpolation.defaultVariables,...m}),e=this.interpolator.interpolate(e,m,r.lng||this.language||i.usedLng,r),p){const g=e.match(this.interpolator.nestingRegexp),_=g&&g.length;h<_&&(r.nest=!1)}!r.lng&&this.options.compatibilityAPI!=="v1"&&i&&i.res&&(r.lng=this.language||i.usedLng),r.nest!==!1&&(e=this.interpolator.nest(e,function(){for(var g=arguments.length,_=new Array(g),x=0;x<g;x++)_[x]=arguments[x];return s&&s[0]===_[0]&&!r.context?(l.logger.warn(`It seems you are nesting recursively key: ${_[0]} in key: ${n[0]}`),null):l.translate(..._,n)},r)),r.interpolation&&this.interpolator.reset()}const u=r.postProcess||this.options.postProcess,c=He(u)?[u]:u;return e!=null&&c&&c.length&&r.applyPostProcessor!==!1&&(e=hL.handle(c,e,n,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...i,usedParams:this.getUsedParamsDetails(r)},...r}:r,this)),e}resolve(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r,i,s,l,u;return He(e)&&(e=[e]),e.forEach(c=>{if(this.isValidLookup(r))return;const p=this.extractFromKey(c,n),h=p.key;i=h;let m=p.namespaces;this.options.fallbackNS&&(m=m.concat(this.options.fallbackNS));const g=n.count!==void 0&&!He(n.count),_=g&&!n.ordinal&&n.count===0&&this.pluralResolver.shouldUseIntlApi(),x=n.context!==void 0&&(He(n.context)||typeof n.context=="number")&&n.context!=="",S=n.lngs?n.lngs:this.languageUtils.toResolveHierarchy(n.lng||this.language,n.fallbackLng);m.forEach(w=>{this.isValidLookup(r)||(u=w,!aC[`${S[0]}-${w}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(u)&&(aC[`${S[0]}-${w}`]=!0,this.logger.warn(`key "${i}" for languages "${S.join(", ")}" won't get resolved as namespace "${u}" 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!!!")),S.forEach(C=>{if(this.isValidLookup(r))return;l=C;const R=[h];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(R,h,C,w,n);else{let P;g&&(P=this.pluralResolver.getSuffix(C,n.count,n));const A=`${this.options.pluralSeparator}zero`,N=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(g&&(R.push(h+P),n.ordinal&&P.indexOf(N)===0&&R.push(h+P.replace(N,this.options.pluralSeparator)),_&&R.push(h+A)),x){const T=`${h}${this.options.contextSeparator}${n.context}`;R.push(T),g&&(R.push(T+P),n.ordinal&&P.indexOf(N)===0&&R.push(T+P.replace(N,this.options.pluralSeparator)),_&&R.push(T+A))}}let I;for(;I=R.pop();)this.isValidLookup(r)||(s=I,r=this.getResource(C,w,I,n))}))})}),{res:r,usedKey:i,exactUsedKey:s,usedLng:l,usedNS:u}}isValidLookup(e){return e!==void 0&&!(!this.options.returnNull&&e===null)&&!(!this.options.returnEmptyString&&e==="")}getResource(e,n,r){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,n,r,i):this.resourceStore.getResource(e,n,r,i)}getUsedParamsDetails(){let e=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=e.replace&&!He(e.replace);let i=r?e.replace:e;if(r&&typeof e.count<"u"&&(i.count=e.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(e){const n="defaultValue";for(const r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&n===r.substring(0,n.length)&&e[r]!==void 0)return!0;return!1}}const Ly=t=>t.charAt(0).toUpperCase()+t.slice(1);class lC{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Vi.create("languageUtils")}getScriptPartFromCode(e){if(e=em(e),!e||e.indexOf("-")<0)return null;const n=e.split("-");return n.length===2||(n.pop(),n[n.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(n.join("-"))}getLanguagePartFromCode(e){if(e=em(e),!e||e.indexOf("-")<0)return e;const n=e.split("-");return this.formatLanguageCode(n[0])}formatLanguageCode(e){if(He(e)&&e.indexOf("-")>-1){if(typeof Intl<"u"&&typeof Intl.getCanonicalLocales<"u")try{let i=Intl.getCanonicalLocales(e)[0];if(i&&this.options.lowerCaseLng&&(i=i.toLowerCase()),i)return i}catch{}const n=["hans","hant","latn","cyrl","cans","mong","arab"];let r=e.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]=Ly(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]=Ly(r[1].toLowerCase())),n.indexOf(r[2].toLowerCase())>-1&&(r[2]=Ly(r[2].toLowerCase()))),r.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}isSupportedCode(e){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}getBestMatchFromCodes(e){if(!e)return null;let n;return e.forEach(r=>{if(n)return;const i=this.formatLanguageCode(r);(!this.options.supportedLngs||this.isSupportedCode(i))&&(n=i)}),!n&&this.options.supportedLngs&&e.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(e,n){if(!e)return[];if(typeof e=="function"&&(e=e(n)),He(e)&&(e=[e]),Array.isArray(e))return e;if(!n)return e.default||[];let r=e[n];return r||(r=e[this.getScriptPartFromCode(n)]),r||(r=e[this.formatLanguageCode(n)]),r||(r=e[this.getLanguagePartFromCode(n)]),r||(r=e.default),r||[]}toResolveHierarchy(e,n){const r=this.getFallbackCodes(n||this.options.fallbackLng||[],e),i=[],s=l=>{l&&(this.isSupportedCode(l)?i.push(l):this.logger.warn(`rejecting language code not found in supportedLngs: ${l}`))};return He(e)&&(e.indexOf("-")>-1||e.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&s(this.formatLanguageCode(e)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&s(this.getScriptPartFromCode(e)),this.options.load!=="currentOnly"&&s(this.getLanguagePartFromCode(e))):He(e)&&s(this.formatLanguageCode(e)),r.forEach(l=>{i.indexOf(l)<0&&s(this.formatLanguageCode(l))}),i}}let a8=[{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}],l8={1:t=>+(t>1),2:t=>+(t!=1),3:t=>0,4:t=>t%10==1&&t%100!=11?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2,5:t=>t==0?0:t==1?1:t==2?2:t%100>=3&&t%100<=10?3:t%100>=11?4:5,6:t=>t==1?0:t>=2&&t<=4?1:2,7:t=>t==1?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2,8:t=>t==1?0:t==2?1:t!=8&&t!=11?2:3,9:t=>+(t>=2),10:t=>t==1?0:t==2?1:t<7?2:t<11?3:4,11:t=>t==1||t==11?0:t==2||t==12?1:t>2&&t<20?2:3,12:t=>+(t%10!=1||t%100==11),13:t=>+(t!==0),14:t=>t==1?0:t==2?1:t==3?2:3,15:t=>t%10==1&&t%100!=11?0:t%10>=2&&(t%100<10||t%100>=20)?1:2,16:t=>t%10==1&&t%100!=11?0:t!==0?1:2,17:t=>t==1||t%10==1&&t%100!=11?0:1,18:t=>t==0?0:t==1?1:2,19:t=>t==1?0:t==0||t%100>1&&t%100<11?1:t%100>10&&t%100<20?2:3,20:t=>t==1?0:t==0||t%100>0&&t%100<20?1:2,21:t=>t%100==1?1:t%100==2?2:t%100==3||t%100==4?3:0,22:t=>t==1?0:t==2?1:(t<0||t>10)&&t%10==0?2:3};const u8=["v1","v2","v3"],c8=["v4"],uC={zero:0,one:1,two:2,few:3,many:4,other:5},d8=()=>{const t={};return a8.forEach(e=>{e.lngs.forEach(n=>{t[n]={numbers:e.nr,plurals:l8[e.fc]}})}),t};class p8{constructor(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=e,this.options=n,this.logger=Vi.create("pluralResolver"),(!this.options.compatibilityJSON||c8.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=d8(),this.pluralRulesCache={}}addRule(e,n){this.rules[e]=n}clearCache(){this.pluralRulesCache={}}getRule(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi()){const r=em(e==="dev"?"en":e),i=n.ordinal?"ordinal":"cardinal",s=JSON.stringify({cleanedCode:r,type:i});if(s in this.pluralRulesCache)return this.pluralRulesCache[s];let l;try{l=new Intl.PluralRules(r,{type:i})}catch{if(!e.match(/-|_/))return;const c=this.languageUtils.getLanguagePartFromCode(e);l=this.getRule(c,n)}return this.pluralRulesCache[s]=l,l}return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}needsPlural(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const r=this.getRule(e,n);return this.shouldUseIntlApi()?r&&r.resolvedOptions().pluralCategories.length>1:r&&r.numbers.length>1}getPluralFormsOfKey(e,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};
vendor: 1,299 bytes, line 338
338return this.getSuffixes(e,r).map(i=>`${n}${i}`)}getSuffixes(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const r=this.getRule(e,n);return r?this.shouldUseIntlApi()?r.resolvedOptions().pluralCategories.sort((i,s)=>uC[i]-uC[s]).map(i=>`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${i}`):r.numbers.map(i=>this.getSuffix(e,i,n)):[]}getSuffix(e,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const i=this.getRule(e,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: ${e}`),"")}getSuffixRetroCompatible(e,n){const r=e.noAbs?e.plurals(n):e.plurals(Math.abs(n));let i=e.numbers[r];this.options.simplifyPluralSuffix&&e.numbers.length===2&&e.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&&e.numbers.length===2&&e.numbers[0]===1?s():this.options.prepend&&r.toString()?this.options.prepend+r.toString():r.toString()}
vendor: 24,005 bytes, line 338
338shouldUseIntlApi(){return!u8.includes(this.options.compatibilityJSON)}}const cC=function(t,e,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,s=ZV(t,e,n);return!s&&i&&He(n)&&(s=xb(t,n,r),s===void 0&&(s=xb(e,n,r))),s},My=t=>t.replace(/\$/g,"$$$$");class h8{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=Vi.create("interpolator"),this.options=e,this.format=e.interpolation&&e.interpolation.format||(n=>n),this.init(e)}init(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});const{escape:n,escapeValue:r,useRawValueToEscape:i,prefix:s,prefixEscaped:l,suffix:u,suffixEscaped:c,formatSeparator:p,unescapeSuffix:h,unescapePrefix:m,nestingPrefix:g,nestingPrefixEscaped:_,nestingSuffix:x,nestingSuffixEscaped:S,nestingOptionsSeparator:w,maxReplaces:C,alwaysFormat:R}=e.interpolation;this.escape=n!==void 0?n:t8,this.escapeValue=r!==void 0?r:!0,this.useRawValueToEscape=i!==void 0?i:!1,this.prefix=s?Ml(s):l||"{{",this.suffix=u?Ml(u):c||"}}",this.formatSeparator=p||",",this.unescapePrefix=h?"":m||"-",this.unescapeSuffix=this.unescapePrefix?"":h||"",this.nestingPrefix=g?Ml(g):_||Ml("$t("),this.nestingSuffix=x?Ml(x):S||Ml(")"),this.nestingOptionsSeparator=w||",",this.maxReplaces=C||1e3,this.alwaysFormat=R!==void 0?R:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const e=(n,r)=>n&&n.source===r?(n.lastIndex=0,n):new RegExp(r,"g");this.regexp=e(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=e(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=e(this.nestingRegexp,`${this.nestingPrefix}(.+?)${this.nestingSuffix}`)}interpolate(e,n,r,i){let s,l,u;const c=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},p=_=>{if(_.indexOf(this.formatSeparator)<0){const C=cC(n,c,_,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(C,void 0,r,{...i,...n,interpolationkey:_}):C}const x=_.split(this.formatSeparator),S=x.shift().trim(),w=x.join(this.formatSeparator).trim();return this.format(cC(n,c,S,this.options.keySeparator,this.options.ignoreJSONStructure),w,r,{...i,...n,interpolationkey:S})};this.resetRegExp();const h=i&&i.missingInterpolationHandler||this.options.missingInterpolationHandler,m=i&&i.interpolation&&i.interpolation.skipOnVariables!==void 0?i.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:_=>My(_)},{regex:this.regexp,safeValue:_=>this.escapeValue?My(this.escape(_)):My(_)}].forEach(_=>{for(u=0;s=_.regex.exec(e);){const x=s[1].trim();if(l=p(x),l===void 0)if(typeof h=="function"){const w=h(e,s,i);l=He(w)?w:""}else if(i&&Object.prototype.hasOwnProperty.call(i,x))l="";else if(m){l=s[0];continue}else this.logger.warn(`missed to pass in variable ${x} for interpolating ${e}`),l="";else!He(l)&&!this.useRawValueToEscape&&(l=nC(l));const S=_.safeValue(l);if(e=e.replace(s[0],S),m?(_.regex.lastIndex+=l.length,_.regex.lastIndex-=s[0].length):_.regex.lastIndex=0,u++,u>=this.maxReplaces)break}}),e}nest(e,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i,s,l;const u=(c,p)=>{const h=this.nestingOptionsSeparator;if(c.indexOf(h)<0)return c;const m=c.split(new RegExp(`${h}[ ]*{`));let g=`{${m[1]}`;c=m[0],g=this.interpolate(g,l);const _=g.match(/'/g),x=g.match(/"/g);(_&&_.length%2===0&&!x||x.length%2!==0)&&(g=g.replace(/'/g,'"'));try{l=JSON.parse(g),p&&(l={...p,...l})}catch(S){return this.logger.warn(`failed parsing options string in nesting for key ${c}`,S),`${c}${h}${g}`}return l.defaultValue&&l.defaultValue.indexOf(this.prefix)>-1&&delete l.defaultValue,c};for(;i=this.nestingRegexp.exec(e);){let c=[];l={...r},l=l.replace&&!He(l.replace)?l.replace:l,l.applyPostProcessor=!1,delete l.defaultValue;let p=!1;if(i[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(i[1])){const h=i[1].split(this.formatSeparator).map(m=>m.trim());i[1]=h.shift(),c=h,p=!0}if(s=n(u.call(this,i[1].trim(),l),l),s&&i[0]===e&&!He(s))return s;He(s)||(s=nC(s)),s||(this.logger.warn(`missed to resolve ${i[1]} for nesting ${e}`),s=""),p&&(s=c.reduce((h,m)=>this.format(h,m,r.lng,{...r,interpolationkey:i[1].trim()}),s.trim())),e=e.replace(i[0],s),this.regexp.lastIndex=0}return e}}const f8=t=>{let e=t.toLowerCase().trim();const n={};if(t.indexOf("(")>-1){const r=t.split("(");e=r[0].toLowerCase().trim();const i=r[1].substring(0,r[1].length-1);e==="currency"&&i.indexOf(":")<0?n.currency||(n.currency=i.trim()):e==="relativetime"&&i.indexOf(":")<0?n.range||(n.range=i.trim()):i.split(";").forEach(l=>{if(l){const[u,...c]=l.split(":"),p=c.join(":").trim().replace(/^'+|'+$/g,""),h=u.trim();n[h]||(n[h]=p),p==="false"&&(n[h]=!1),p==="true"&&(n[h]=!0),isNaN(p)||(n[h]=parseInt(p,10))}})}return{formatName:e,formatOptions:n}},Nl=t=>{const e={};return(n,r,i)=>{let s=i;i&&i.interpolationkey&&i.formatParams&&i.formatParams[i.interpolationkey]&&i[i.interpolationkey]&&(s={...s,[i.interpolationkey]:void 0});const l=r+JSON.stringify(s);let u=e[l];return u||(u=t(em(r),i),e[l]=u),u(n)}};class m8{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=Vi.create("formatter"),this.options=e,this.formats={number:Nl((n,r)=>{const i=new Intl.NumberFormat(n,{...r});return s=>i.format(s)}),currency:Nl((n,r)=>{const i=new Intl.NumberFormat(n,{...r,style:"currency"});return s=>i.format(s)}),datetime:Nl((n,r)=>{const i=new Intl.DateTimeFormat(n,{...r});return s=>i.format(s)}),relativetime:Nl((n,r)=>{const i=new Intl.RelativeTimeFormat(n,{...r});return s=>i.format(s,r.range||"day")}),list:Nl((n,r)=>{const i=new Intl.ListFormat(n,{...r});return s=>i.format(s)})},this.init(e)}init(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};this.formatSeparator=n.interpolation.formatSeparator||","}add(e,n){this.formats[e.toLowerCase().trim()]=n}addCached(e,n){this.formats[e.toLowerCase().trim()]=Nl(n)}format(e,n,r){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const s=n.split(this.formatSeparator);if(s.length>1&&s[0].indexOf("(")>1&&s[0].indexOf(")")<0&&s.find(u=>u.indexOf(")")>-1)){const u=s.findIndex(c=>c.indexOf(")")>-1);s[0]=[s[0],...s.splice(1,u)].join(this.formatSeparator)}return s.reduce((u,c)=>{const{formatName:p,formatOptions:h}=f8(c);if(this.formats[p]){let m=u;try{const g=i&&i.formatParams&&i.formatParams[i.interpolationkey]||{},_=g.locale||g.lng||i.locale||i.lng||r;m=this.formats[p](u,_,{...h,...i,...g})}catch(g){this.logger.warn(g)}return m}else this.logger.warn(`there was no format function for ${p}`);return u},e)}}const g8=(t,e)=>{t.pending[e]!==void 0&&(delete t.pending[e],t.pendingCount--)};class v8 extends eg{constructor(e,n,r){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};super(),this.backend=e,this.store=n,this.services=r,this.languageUtils=r.languageUtils,this.options=i,this.logger=Vi.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(e,n,r,i){const s={},l={},u={},c={};return e.forEach(p=>{let h=!0;n.forEach(m=>{const g=`${p}|${m}`;!r.reload&&this.store.hasResourceBundle(p,m)?this.state[g]=2:this.state[g]<0||(this.state[g]===1?l[g]===void 0&&(l[g]=!0):(this.state[g]=1,h=!1,l[g]===void 0&&(l[g]=!0),s[g]===void 0&&(s[g]=!0),c[m]===void 0&&(c[m]=!0)))}),h||(u[p]=!0)}),(Object.keys(s).length||Object.keys(l).length)&&this.queue.push({pending:l,pendingCount:Object.keys(l).length,loaded:{},errors:[],callback:i}),{toLoad:Object.keys(s),pending:Object.keys(l),toLoadLanguages:Object.keys(u),toLoadNamespaces:Object.keys(c)}}loaded(e,n,r){const i=e.split("|"),s=i[0],l=i[1];n&&this.emit("failedLoading",s,l,n),!n&&r&&this.store.addResourceBundle(s,l,r,void 0,void 0,{skipCopy:!0}),this.state[e]=n?-1:2,n&&r&&(this.state[e]=0);const u={};this.queue.forEach(c=>{XV(c.loaded,[s],l),g8(c,e),n&&c.errors.push(n),c.pendingCount===0&&!c.done&&(Object.keys(c.loaded).forEach(p=>{u[p]||(u[p]={});const h=c.loaded[p];h.length&&h.forEach(m=>{u[p][m]===void 0&&(u[p][m]=!0)})}),c.done=!0,c.errors.length?c.callback(c.errors):c.callback())}),this.emit("loaded",u),this.queue=this.queue.filter(c=>!c.done)}read(e,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,l=arguments.length>5?arguments[5]:void 0;if(!e.length)return l(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:e,ns:n,fcName:r,tried:i,wait:s,callback:l});return}this.readingCalls++;const u=(p,h)=>{if(this.readingCalls--,this.waitingReads.length>0){const m=this.waitingReads.shift();this.read(m.lng,m.ns,m.fcName,m.tried,m.wait,m.callback)}if(p&&h&&i<this.maxRetries){setTimeout(()=>{this.read.call(this,e,n,r,i+1,s*2,l)},s);return}l(p,h)},c=this.backend[r].bind(this.backend);if(c.length===2){try{const p=c(e,n);p&&typeof p.then=="function"?p.then(h=>u(null,h)).catch(u):u(null,p)}catch(p){u(p)}return}return c(e,n,u)}prepareLoading(e,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();He(e)&&(e=this.languageUtils.toResolveHierarchy(e)),He(n)&&(n=[n]);const s=this.queueLoad(e,n,r,i);if(!s.toLoad.length)return s.pending.length||i(),null;s.toLoad.forEach(l=>{this.loadOne(l)})}load(e,n,r){this.prepareLoading(e,n,{},r)}reload(e,n,r){this.prepareLoading(e,n,{reload:!0},r)}loadOne(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const r=e.split("|"),i=r[0],s=r[1];this.read(i,s,"read",void 0,void 0,(l,u)=>{l&&this.logger.warn(`${n}loading namespace ${s} for language ${i} failed`,l),!l&&u&&this.logger.log(`${n}loaded namespace ${s} for language ${i}`,u),this.loaded(e,l,u)})}saveMissing(e,n,r,i,s){let l=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},u=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 c={...l,isUpdate:s},p=this.backend.create.bind(this.backend);if(p.length<6)try{let h;p.length===5?h=p(e,n,r,i,c):h=p(e,n,r,i),h&&typeof h.then=="function"?h.then(m=>u(null,m)).catch(u):u(null,h)}catch(h){u(h)}else p(e,n,r,i,u,c)}!e||!e[0]||this.store.addResource(e[0],n,r,i)}}}const dC=()=>({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:t=>{let e={};if(typeof t[1]=="object"&&(e=t[1]),He(t[1])&&(e.defaultValue=t[1]),He(t[2])&&(e.tDescription=t[2]),typeof t[2]=="object"||typeof t[3]=="object"){const n=t[3]||t[2];Object.keys(n).forEach(r=>{e[r]=n[r]})}return e},interpolation:{escapeValue:!0,format:t=>t,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}),pC=t=>(He(t.ns)&&(t.ns=[t.ns]),He(t.fallbackLng)&&(t.fallbackLng=[t.fallbackLng]),He(t.fallbackNS)&&(t.fallbackNS=[t.fallbackNS]),t.supportedLngs&&t.supportedLngs.indexOf("cimode")<0&&(t.supportedLngs=t.supportedLngs.concat(["cimode"])),t),zh=()=>{},y8=t=>{Object.getOwnPropertyNames(Object.getPrototypeOf(t)).forEach(n=>{typeof t[n]=="function"&&(t[n]=t[n].bind(t))})};class Od extends eg{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;if(super(),this.options=pC(e),this.services={},this.logger=Vi,this.modules={external:[]},y8(this),n&&!this.isInitialized&&!e.isClone){if(!this.options.initImmediate)return this.init(e,n),this;setTimeout(()=>{this.init(e,n)},0)}}init(){var e=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&&(He(n.ns)?n.defaultNS=n.ns:n.ns.indexOf("translation")<0&&(n.defaultNS=n.ns[0]));const i=dC();this.options={...i,...this.options,...pC(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);const s=h=>h?typeof h=="function"?new h:h:null;if(!this.options.isClone){this.modules.logger?Vi.init(s(this.modules.logger),this.options):Vi.init(null,this.options);let h;this.modules.formatter?h=this.modules.formatter:typeof Intl<"u"&&(h=m8);const m=new lC(this.options);this.store=new oC(this.options.resources,this.options);const g=this.services;g.logger=Vi,g.resourceStore=this.store,g.languageUtils=m,g.pluralResolver=new p8(m,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),h&&(!this.options.interpolation.format||this.options.interpolation.format===i.interpolation.format)&&(g.formatter=s(h),g.formatter.init(g,this.options),this.options.interpolation.format=g.formatter.format.bind(g.formatter)),g.interpolator=new h8(this.options),g.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},g.backendConnector=new v8(s(this.modules.backend),g.resourceStore,g,this.options),g.backendConnector.on("*",function(_){for(var x=arguments.length,S=new Array(x>1?x-1:0),w=1;w<x;w++)S[w-1]=arguments[w];e.emit(_,...S)}),this.modules.languageDetector&&(g.languageDetector=s(this.modules.languageDetector),g.languageDetector.init&&g.languageDetector.init(g,this.options.detection,this.options)),this.modules.i18nFormat&&(g.i18nFormat=s(this.modules.i18nFormat),g.i18nFormat.init&&g.i18nFormat.init(this)),this.translator=new nm(this.services,this.options),this.translator.on("*",function(_){for(var x=arguments.length,S=new Array(x>1?x-1:0),w=1;w<x;w++)S[w-1]=arguments[w];e.emit(_,...S)}),this.modules.external.forEach(_=>{_.init&&_.init(this)})}if(this.format=this.options.interpolation.format,r||(r=zh),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const h=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);h.length>0&&h[0]!=="dev"&&(this.options.lng=h[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(h=>{this[h]=function(){return e.store[h](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(h=>{this[h]=function(){return e.store[h](...arguments),e}});const c=Nc(),p=()=>{const h=(m,g)=>{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),c.resolve(g),r(m,g)};if(this.languages&&this.options.compatibilityAPI!=="v1"&&!this.isInitialized)return h(null,this.t.bind(this));this.changeLanguage(this.options.lng,h)};return this.options.resources||!this.options.initImmediate?p():setTimeout(p,0),c}loadResources(e){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:zh;const i=He(e)?e:this.language;if(typeof e=="function"&&(r=e),!this.options.resources||this.options.partialBundledLanguages){if(i&&i.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return r();const s=[],l=u=>{if(!u||u==="cimode")return;this.services.languageUtils.toResolveHierarchy(u).forEach(p=>{p!=="cimode"&&s.indexOf(p)<0&&s.push(p)})};i?l(i):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(c=>l(c)),this.options.preload&&this.options.preload.forEach(u=>l(u)),this.services.backendConnector.load(s,this.options.ns,u=>{!u&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),r(u)})}else r(null)}reloadResources(e,n,r){const i=Nc();return typeof e=="function"&&(r=e,e=void 0),typeof n=="function"&&(r=n,n=void 0),e||(e=this.languages),n||(n=this.options.ns),r||(r=zh),this.services.backendConnector.reload(e,n,s=>{i.resolve(),r(s)}),i}use(e){if(!e)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return e.type==="backend"&&(this.modules.backend=e),(e.type==="logger"||e.log&&e.warn&&e.error)&&(this.modules.logger=e),e.type==="languageDetector"&&(this.modules.languageDetector=e),e.type==="i18nFormat"&&(this.modules.i18nFormat=e),e.type==="postProcessor"&&hL.addPostProcessor(e),e.type==="formatter"&&(this.modules.formatter=e),e.type==="3rdParty"&&this.modules.external.push(e),this}setResolvedLanguage(e){if(!(!e||!this.languages)&&!(["cimode","dev"].indexOf(e)>-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(e,n){var r=this;this.isLanguageChangingTo=e;const i=Nc();this.emit("languageChanging",e);const s=c=>{this.language=c,this.languages=this.services.languageUtils.toResolveHierarchy(c),this.resolvedLanguage=void 0,this.setResolvedLanguage(c)},l=(c,p)=>{p?(s(p),this.translator.changeLanguage(p),this.isLanguageChangingTo=void 0,this.emit("languageChanged",p),this.logger.log("languageChanged",p)):this.isLanguageChangingTo=void 0,i.resolve(function(){return r.t(...arguments)}),n&&n(c,function(){return r.t(...arguments)})},u=c=>{!e&&!c&&this.services.languageDetector&&(c=[]);const p=He(c)?c:this.services.languageUtils.getBestMatchFromCodes(c);p&&(this.language||s(p),this.translator.language||this.translator.changeLanguage(p),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(p)),this.loadResources(p,h=>{l(h,p)})};return!e&&this.services.languageDetector&&!this.services.languageDetector.async?u(this.services.languageDetector.detect()):!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(u):this.services.languageDetector.detect(u):u(e),i}getFixedT(e,n,r){var i=this;const s=function(l,u){let c;if(typeof u!="object"){for(var p=arguments.length,h=new Array(p>2?p-2:0),m=2;m<p;m++)h[m-2]=arguments[m];c=i.options.overloadTranslationOptionHandler([l,u].concat(h))}else c={...u};c.lng=c.lng||s.lng,c.lngs=c.lngs||s.lngs,c.ns=c.ns||s.ns,c.keyPrefix!==""&&(c.keyPrefix=c.keyPrefix||r||s.keyPrefix);const g=i.options.keySeparator||".";let _;return c.keyPrefix&&Array.isArray(l)?_=l.map(x=>`${c.keyPrefix}${g}${x}`):_=c.keyPrefix?`${c.keyPrefix}${g}${l}`:l,i.t(_,c)};return He(e)?s.lng=e:s.lngs=e,s.ns=n,s.keyPrefix=r,s}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(e){this.options.defaultNS=e}hasLoadedNamespace(e){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 l=(u,c)=>{const p=this.services.backendConnector.state[`${u}|${c}`];return p===-1||p===0||p===2};if(n.precheck){const u=n.precheck(this,l);if(u!==void 0)return u}return!!(this.hasResourceBundle(r,e)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||l(r,e)&&(!i||l(s,e)))}loadNamespaces(e,n){const r=Nc();return this.options.ns?(He(e)&&(e=[e]),e.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(e,n){const r=Nc();He(e)&&(e=[e]);const i=this.options.preload||[],s=e.filter(l=>i.indexOf(l)<0&&this.services.languageUtils.isSupportedCode(l));return s.length?(this.options.preload=i.concat(s),this.loadResources(l=>{r.resolve(),n&&n(l)}),r):(n&&n(),Promise.resolve())}dir(e){if(e||(e=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!e)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 lC(dC());return n.indexOf(r.getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;return new Od(e,n)}cloneInstance(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:zh;const r=e.forkResourceStore;r&&delete e.forkResourceStore;const i={...this.options,...e,isClone:!0},s=new Od(i);return(e.debug!==void 0||e.prefix!==void 0)&&(s.logger=s.logger.clone(e)),["store","services","language"].forEach(u=>{s[u]=this[u]}),s.services={...this.services},s.services.utils={hasLoadedNamespace:s.hasLoadedNamespace.bind(s)},r&&(s.store=new oC(this.store.data,i),s.services.resourceStore=s.store),s.translator=new nm(s.services,i),s.translator.on("*",function(u){for(var c=arguments.length,p=new Array(c>1?c-1:0),h=1;h<c;h++)p[h-1]=arguments[h];s.emit(u,...p)}),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 Wn=Od.createInstance();Wn.createInstance=Od.createInstance;Wn.createInstance;Wn.dir;Wn.init;Wn.loadResources;Wn.reloadResources;Wn.use;Wn.changeLanguage;Wn.getFixedT;Wn.t;Wn.exists;Wn.setDefaultNamespace;Wn.hasLoadedNamespace;Wn.loadNamespaces;Wn.loadLanguages;const{slice:_8,forEach:b8}=[];function x8(t){return b8.call(_8.call(arguments,1),e=>{if(e)for(const n in e)t[n]===void 0&&(t[n]=e[n])}),t}
vendor: 9,892 bytes, line 338
338function S8(t){return typeof t!="string"?!1:[/<\s*script.*?>/i,/<\s*\/\s*script\s*>/i,/<\s*img.*?on\w+\s*=/i,/<\s*\w+\s*on\w+\s*=.*?>/i,/javascript\s*:/i,/vbscript\s*:/i,/expression\s*\(/i,/eval\s*\(/i,/alert\s*\(/i,/document\.cookie/i,/document\.write\s*\(/i,/window\.location/i,/innerHTML/i].some(n=>n.test(t))}const hC=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,w8=function(t,e){const r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{path:"/"},i=encodeURIComponent(e);let s=`${t}=${i}`;if(r.maxAge>0){const l=r.maxAge-0;if(Number.isNaN(l))throw new Error("maxAge should be a Number");s+=`; Max-Age=${Math.floor(l)}`}if(r.domain){if(!hC.test(r.domain))throw new TypeError("option domain is invalid");s+=`; Domain=${r.domain}`}if(r.path){if(!hC.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 r.partitioned&&(s+="; Partitioned"),s},fC={create(t,e,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=w8(t,e,i)},read(t){const e=`${t}=`,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(e)===0)return i.substring(e.length,i.length)}return null},remove(t,e){this.create(t,"",-1,e)}};var E8={name:"cookie",lookup(t){let{lookupCookie:e}=t;if(e&&typeof document<"u")return fC.read(e)||void 0},cacheUserLanguage(t,e){let{lookupCookie:n,cookieMinutes:r,cookieDomain:i,cookieOptions:s}=e;n&&typeof document<"u"&&fC.create(n,t,r,i,s)}},k8={name:"querystring",lookup(t){var r;let{lookupQuerystring:e}=t,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 l=i.substring(1).split("&");for(let u=0;u<l.length;u++){const c=l[u].indexOf("=");c>0&&l[u].substring(0,c)===e&&(n=l[u].substring(c+1))}}return n}},C8={name:"hash",lookup(t){var i;let{lookupHash:e,lookupFromHashIndex:n}=t,r;if(typeof window<"u"){const{hash:s}=window.location;if(s&&s.length>2){const l=s.substring(1);if(e){const u=l.split("&");for(let c=0;c<u.length;c++){const p=u[c].indexOf("=");p>0&&u[c].substring(0,p)===e&&(r=u[c].substring(p+1))}}if(r)return r;if(!r&&n>-1){const u=s.match(/\/([a-zA-Z-]*)/g);return Array.isArray(u)?(i=u[typeof n=="number"?n:0])==null?void 0:i.replace("/",""):void 0}}}return r}};let Ol=null;const mC=()=>{if(Ol!==null)return Ol;try{if(Ol=typeof window<"u"&&window.localStorage!==null,!Ol)return!1;const t="i18next.translate.boo";window.localStorage.setItem(t,"foo"),window.localStorage.removeItem(t)}catch{Ol=!1}return Ol};var T8={name:"localStorage",lookup(t){let{lookupLocalStorage:e}=t;if(e&&mC())return window.localStorage.getItem(e)||void 0},cacheUserLanguage(t,e){let{lookupLocalStorage:n}=e;n&&mC()&&window.localStorage.setItem(n,t)}};let Dl=null;const gC=()=>{if(Dl!==null)return Dl;try{if(Dl=typeof window<"u"&&window.sessionStorage!==null,!Dl)return!1;const t="i18next.translate.boo";window.sessionStorage.setItem(t,"foo"),window.sessionStorage.removeItem(t)}catch{Dl=!1}return Dl};var P8={name:"sessionStorage",lookup(t){let{lookupSessionStorage:e}=t;if(e&&gC())return window.sessionStorage.getItem(e)||void 0},cacheUserLanguage(t,e){let{lookupSessionStorage:n}=e;n&&gC()&&window.sessionStorage.setItem(n,t)}},R8={name:"navigator",lookup(t){const e=[];if(typeof navigator<"u"){const{languages:n,userLanguage:r,language:i}=navigator;if(n)for(let s=0;s<n.length;s++)e.push(n[s]);r&&e.push(r),i&&e.push(i)}return e.length>0?e:void 0}},A8={name:"htmlTag",lookup(t){let{htmlTag:e}=t,n;const r=e||(typeof document<"u"?document.documentElement:null);return r&&typeof r.getAttribute=="function"&&(n=r.getAttribute("lang")),n}},I8={name:"path",lookup(t){var i;let{lookupFromPathIndex:e}=t;if(typeof window>"u")return;const n=window.location.pathname.match(/\/([a-zA-Z-]*)/g);return Array.isArray(n)?(i=n[typeof e=="number"?e:0])==null?void 0:i.replace("/",""):void 0}},L8={name:"subdomain",lookup(t){var i,s;let{lookupFromSubdomainIndex:e}=t;const n=typeof e=="number"?e+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]}};let fL=!1;try{document.cookie,fL=!0}catch{}const mL=["querystring","cookie","localStorage","sessionStorage","navigator","htmlTag"];fL||mL.splice(1,1);const M8=()=>({order:mL,lookupQuerystring:"lng",lookupCookie:"i18next",lookupLocalStorage:"i18nextLng",lookupSessionStorage:"i18nextLng",caches:["localStorage"],excludeCacheFor:["cimode"],convertDetectedLanguage:t=>t});class gL{constructor(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.type="languageDetector",this.detectors={},this.init(e,n)}init(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{languageUtils:{}},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.services=e,this.options=x8(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(E8),this.addDetector(k8),this.addDetector(T8),this.addDetector(P8),this.addDetector(R8),this.addDetector(A8),this.addDetector(I8),this.addDetector(L8),this.addDetector(C8)}addDetector(e){return this.detectors[e.name]=e,this}detect(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.options.order,n=[];return e.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.filter(r=>r!=null&&!S8(r)).map(r=>this.options.convertDetectedLanguage(r)),this.services&&this.services.languageUtils&&this.services.languageUtils.getBestMatchFromCodes?n:n.length>0?n[0]:null}cacheUserLanguage(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.options.caches;n&&(this.options.excludeCacheFor&&this.options.excludeCacheFor.indexOf(e)>-1||n.forEach(r=>{this.detectors[r]&&this.detectors[r].cacheUserLanguage(e,this.options)}))}}gL.type="languageDetector";const N8={message:"Le chargement de la page a échoué. Vérifiez votre connexion, puis rechargez la page.",reload:"Recharger la page"},O8={loading:"Chargementâ¦",back:"Retour",backHome:"Retour à l'accueil",close:"Fermer",cancel:"Annuler",save:"Enregistrer",delete:"Supprimer",edit:"Modifier",confirm:"Confirmer",yes:"Oui",no:"Non",openMenu:"Ouvrir le menu",closeMenu:"Fermer le menu"},D8={trust:"Sans abonnement · Vos mix restent privés · Paiement par master",helpPrompt:"Besoin d'aide ?",helpCenter:"Centre d'aide",writeUs:"Nous écrire",cgv:"CGV",privacy:"Confidentialité",legal:"Mentions légales",ethics:"Ãthique",contact:"Contact",status:"Statut",blindTest:"Test à l'aveugle",transparence:"Transparence",loudnessGuide:"Guide LUFS"},j8={title:"Cookies analytiques",body:"Pour mesurer l'usage du site et corriger ce qui ne fonctionne pas, nous déposons des cookies d'analyse statistique (Posthog, serveurs Union européenne) et de suivi des erreurs techniques (Sentry). Aucun cookie publicitaire, aucun partage à des tiers commerciaux. Vous pouvez revenir sur ce choix à tout moment depuis la page Confidentialité.",accept:"Accepter",decline:"Refuser",learnMore:"En savoir plus"},F8={dashboard:"Dashboard",myTracks:"Mes morceaux",myAlbums:"Mes albums",myMasters:"Mes masters",myAccount:"Mon compte",admin:"Admin",signIn:"Connexion",manageSession:"Gérer la connexion",balanceAria:"Solde : {{count}} master",balanceAria_other:"Solde : {{count}} masters",balanceLabel:"Solde : {{count}}",adminTitle:"Mode administrateur",adminAria:"Mode administrateur : accéder au backoffice"},U8={body:"Le support est <strong>automatisé</strong> : la plupart des réponses se trouvent dans la <help>FAQ</help> et le <account>self-service compte</account>.",legalPrefix:"Pour les demandes légales ou RGPD : ",legalSuffix:"(réponse sous 7 jours ouvrables)"},z8={title:"Contact",generalTitle:"Support général",generalText:"Pour toute question relative au service, contactez-nous à l'adresse :",dsaTitle:"Point de contact DSA (art. 12)",dsaIntro:"Conformément au Règlement (UE) 2022/2065 sur les services numériques (Digital Services Act), le point de contact unique pour les autorités des Ãtats membres, la Commission et le Comité est :",emailLabel:"Email :",responseLabel:"Délai de réponse :",response:"7 jours ouvrables",languageLabel:"Langue :",languages:"français, anglais",gdprTitle:"Données personnelles (RGPD)",gdprBody:"Pour exercer vos droits (accès, rectification, effacement, portabilité, opposition, limitation), rendez-vous sur votre <account>espace compte</account> ou contactez <mail>[email protected]</mail>. Pour plus de détails, consultez notre <privacy>politique de confidentialité</privacy>.",writeUsCta:"Nous écrire"},B8={title:"Statut du service",services:{apiName:"API",apiDesc:"Serveur principal et endpoints",audioName:"Traitement audio",audioDesc:"Analyse et mastering",storageName:"Stockage",storageDesc:"Upload et téléchargement de fic
338hiers",paymentName:"Paiement",paymentDesc:"Achat de crédits via Stripe"},allOperational:"Tous les services sont opérationnels",someDown:"Certains services sont indisponibles",apiOk:"API opérationnelle",checking:"Vérification en cours...",unknownNote:"Les services marqués « Non vérifié » ne sont pas testés individuellement par le healthcheck.",lastCheck:"Dernière vérification : {{time}}",incidentTitle:"En cas d'incident",incidentBefore:"Si un service est indisponible, l'équipe est automatiquement alertée. Les incidents confirmés donnent lieu à une compensation (crédit offert) pour les comptes impactés. Pour signaler un problème, contactez ",incidentEnd:".",badge:{operational:"Opérationnel",degraded:"Dégradé",down:"Indisponible",unknown:"Non vérifié",checking:"Vérification"}},$8={linkInvalid:"Lien invalide : aucun token fourni.",invalidOrExpired:"Ce lien est invalide ou a expiré. Veuillez refaire une demande de suppression.",genericError:"Une erreur est survenue lors de la suppression du compte.",deleting:"Suppression en cours...",deletedTitle:"Compte supprimé",deletedBody:"Votre compte et toutes vos données ont été définitivement supprimées. Un email de confirmation vous a été envoyé.",errorTitle:"Erreur"},q8={title:"Mon compte",exportTitle:"Exporter mes données",exportDesc:"Téléchargez une copie de toutes vos données personnelles au format JSON (RGPD art. 20).",exportButton:"Exporter mes données",exportError:"Erreur lors de l'export. Réessayez.",deleteTitle:"Supprimer mon compte",deleteWarnIrreversible:"Cette action est irréversible",deleteWarnFiles:"Tous vos fichiers audio seront définitivement supprimés",deleteWarnMasters:"Vos masters achetés et non utilisés seront perdus sans remboursement",deletionSent:"Un email de confirmation a été envoyé. Vérifiez votre boîte de réception.",confirmQuestion:"Ãtes-vous sûr de vouloir supprimer votre compte ?",confirmHint:"Un email de confirmation vous sera envoyé pour finaliser la suppression.",confirmButton:"Confirmer la suppression",deleteButton:"Supprimer mon compte",deleteError:"Erreur lors de la demande de suppression. Réessayez."},W8={greeting:"Bonjour{{name}}.",greetingPrompt:"Prêt à finir un morceau ?",balance:"Solde",balanceUnit_one:"master",balanceUnit_other:"masters",buy:"Acheter â",activeFiles:"Fichiers actifs",freeCap:"1 max",paidCap:"{{count}} master de capacité",paidCap_other:"{{count}} masters de capacité",library:"Bibliothèque",viewMasters:"Voir mes masters â",masterCta:"Masteriser",uploadHint:"WAV ou AIFF, 24-bit minimum, 44.1/48 kHz",inProgress:"Fichiers en cours",fileCost_one:"{{count}} master",fileCost_other:"{{count}} masters",status:{uploading:"Uploadâ¦",validating:"Validationâ¦",analyzing:"Analyseâ¦",analyzed:"Analysé",mastering:"Masteringâ¦",completed:"Prêt",failed:"Erreur"}},H8={title:"Masters",subtitle:"Achetez des masters pour télécharger vos masters.",paymentSuccess:"Paiement réussi ! Vos masters seront crédités sous quelques secondes.",paymentCancelled:"Paiement annulé. Aucun montant n'a été débité.",balanceUnit_one:"master disponible",balanceUnit_other:"masters disponibles",expiring_one:"{{count}} master expire le {{date}}",expiring_other:"{{count}} masters expirent le {{date}}",buyTitle:"Acheter des masters",buySubtitle:"1 master = 10 minutes d'audio. Validité : 12 mois. Consommation FIFO.",pricePerMaster:"{{price}} ⬠/ master",buyButton:"Acheter",packUnit_one:"master",packUnit_other:"masters",infoTitle:"Comment fonctionnent les masters ?",info1:"1 master = 10 minutes d'audio.",info1Suffix:" Un morceau de 12 minutes coûte 2 masters.",info2Pre:"Les masters sont ",info2Strong:"valables 12 mois",info2Suf:" à compter de l'achat.",info3Pre:"Consommation ",info3Strong:"FIFO",info3Suf:" : les masters les plus anciens sont utilisés en premier.",info4Pre:"Le mastering et la version d'écoute sont ",info4Strong:"gratuits",info4Suf:". Le master est consommé uniquement au téléchargement du master.",info5Strong:"1 master débloque tous les formats",info5Suf:" (WAV 24-bit, WAV 16-bit, MP3 320 kbps).",info6:"Vous êtes n
338otifié avant expiration (30 jours, 7 jours, 24 h).",notAuthenticated:"Non authentifié"},V8={title:"Historique des transactions",emptyTitle:"Historique",emptyDesc:"Aucune transaction pour le moment.",types:{credit:"Achat",debit:"Téléchargement",revocation:"Révocation",dispute:"Litige"},amountUnit_one:"{{count}} master",amountUnit_other:"{{count}} masters",page:"{{page}} / {{total}}",notAuthenticated:"Non authentifié"},G8={INVALID_FORMAT:{message:"Format non supporté. Seuls les fichiers WAV et AIFF sont acceptés.",action:"Exportez votre mix au format WAV ou AIFF depuis votre DAW."},INVALID_HEADER:{message:"Le fichier n'est pas un fichier WAV ou AIFF valide.",action:"Exportez votre mix au format WAV PCM ou AIFF depuis votre DAW (pas MP3, FLAC, OGG, etc.)."},LOW_BIT_DEPTH:{message:"Résolution insuffisante ({{bitDepth}}-bit). Le minimum requis est 24-bit.",action:"Réexportez votre mix en 24-bit ou plus depuis votre DAW."},UNSUPPORTED_SAMPLE_RATE:{message:"Fréquence d'échantillonnage non supportée ({{sampleRate}} Hz). Seuls 44.1 kHz et 48 kHz sont acceptés.",action:"Réexportez votre mix en 44.1 kHz ou 48 kHz. Utilisez le sample rate natif de votre session."},TOO_LONG:{message:"Durée excessive ({{duration}}). Maximum autorisé : 30 minutes.",action:"Découpez votre fichier en segments de moins de 30 minutes."},TOO_SHORT:{message:"Fichier trop court ({{duration}}). Minimum requis : 30 secondes.",action:"Uploadez un fichier d'au moins 30 secondes."},INVALID_CHANNELS:{message:"Nombre de canaux non supporté ({{channels}}). Seuls mono et stéréo sont acceptés.",action:"Exportez votre mix en mono (1 canal) ou stéréo interleaved (2 canaux)."},PARSE_ERROR:{message:"Impossible de lire l'en-tête du fichier. Le fichier est peut-être corrompu.",action:"Réexportez votre mix depuis votre DAW. Si le problème persiste, essayez un autre format (WAV ou AIFF)."}},Y8={invitationTitle:"Déposez votre mix. Récupérez votre master.",invitationFormat:"WAV ou AIFF · 24-bit · 44.1 / 48 kHz",validating:"Validation en coursâ¦",valid_one:"Fichier valide · {{count}} master",valid_other:"Fichier valide · {{count}} masters",fileMetaStereo:"Stéréo",fileMetaMono:"Mono",changeFile:"Changer de fichier",tryAnother:"Réessayer avec un autre fichier",freeLabel:"Mastering + écoute gratuits."},K8={title:"3 choses qui comptent vraiment",footer:"Un bon premaster = un meilleur master. L'outil optimise ce que vous lui donnez.",rules:[{title:"Phase cohérente",detail:"Vérifiez votre mix en mono. Si des basses s'évanouissent, si la voix recule, si un instrument disparaît, c'est un problème de phase qui survivra au mastering."},{title:"Balance tonale crédible",detail:"Comparez à 2-3 morceaux pros du même genre. Pas besoin d'être identique, juste d'être dans le même monde. Un mix franchement plus sombre, brillant ou creux qu'eux le restera après master."},{title:"Pas écrasé",detail:"Gardez de la dynamique. Pas de limiteur de bus, compresseur de bus modéré (1-2 dB de réduction max). Le mastering choisit jusqu'où pousser
338chaque morceau sans l'abîmer ; un mix déjà tassé en entrée l'empêche de faire ce choix."}]},J8={title:"Masteriser",subtitle:"Déposez un ou plusieurs mix pour analyse et mastering automatique.",paymentSuccess:"Paiement réussi ! Vos masters seront crédités sous quelques secondes. Déposez vos fichiers pour les masteriser.",freeCapReached:"Vous avez déjà un fichier actif. Terminez-le ou abandonnez-le avant d'en uploader un nouveau.",paidCapReached:"Limite de fichiers actifs atteinte. Téléchargez ou abandonnez des fichiers existants.",uploadProgress:"Upload en cours⦠{{percent}}%",uploadButton:"Uploader et masteriser",uploadError:"Erreur lors de l'upload",notAuthenticated:"Non authentifié",insufficient_one:"Solde insuffisant pour ce fichier. Coût : {{cost}} master, capacité restante : {{remaining}} master.",insufficient_other:"Solde insuffisant pour ce fichier. Coût : {{cost}} masters, capacité restante : {{remaining}} masters.",uploadFailed:"Upload échoué : {{status}}",networkError:"Erreur réseau lors de l'upload",discoveryNote:"En découverte, une seule piste à la fois. Créditez votre compte pour masteriser un album entier d'un coup.",discoveryTrimmed:"Mode découverte : seule la première piste a été retenue.",creditPending:"Vos masters sont en cours de crédit. Déposez votre album, le lancement se débloque dès réception.",creditPendingShort:"Crédit en coursâ¦",queueHeading:"à masteriser",queueItemCost_one:"{{count}} master",queueItemCost_other:"{{count}} masters",itemValidating:"Validationâ¦",itemUploading:"Envoi⦠{{percent}}%",itemDone:"Envoyé",itemError:"Ãchec de l'envoi",itemInvalid:"Fichier non conforme",blockOverCap:"Au-delà de la limite de {{max}} pistes actives",blockOverBudget:"Dépasse votre solde disponible",batchSummary:"{{accepted}} sur {{total}} piste(s) prête(s) à masteriser",batchUploading:"Envoi des pistes en coursâ¦",batchAllFailed:"Aucune piste n'a pu être envoyée. Réessayez.",launchButton_one:"Lancer le mastering ({{cost}} master)",launchButton_other:"Lancer le mastering ({{cost}} masters)",removeItem:"Retirer"},Q8={title:"Bibliothèque",subtitle:"Tous vos masters achetés, prêts à être re-téléchargés.",masterCta:"Masteriser un morceau",searchPlaceholder:"Rechercher un morceauâ¦",sortRecent:"Plus récents",sortName:"Nom A-Z",sortDuration:"Durée",emptyTitle:"Aucun master dans votre bibliothèque.",emptyHint:"Vos masters achetés apparaîtront ici.",preserveSilence:"Conserver les silences de l'original",viewReport:"Voir le rapport",report:"Rapport",probeReport:"Probe Report",probeReportPng:"Probe Report (PNG)",no
338Report:"Rapport non disponible pour ce master.",download:"Télécharger",notAuthenticated:"Non authentifié"},X8={title:"Albums",subtitle:"Regroupez vos masters pour un volume cohérent sur Spotify et ailleurs.",create:"Créer un album",emptyTitle:"Vous n'avez pas encore d'album.",emptyHint:"Créez-en un pour aligner le volume de plusieurs morceaux.",trackCount_one:"{{count}} piste",trackCount_other:"{{count}} pistes",empty:"vide",newAlbum:"Nouvel album",newAlbumHint:"Vous pourrez ajouter des morceaux et ajuster la cohésion ensuite.",fieldTitle:"Titre de l'album",fieldArtist:"Artiste",fieldYear:"Année",placeholderTitle:"Mon album",placeholderArtist:"Lex Pi",placeholderYear:"2026",createError:"La création a échoué. Réessayez.",createSubmit:"Créer",notAuthenticated:"Non authentifié"},Z8={message:"Ouverture des fonctionnalités à l'été 2026. D'ici là , vous pouvez demander une démo à [email protected]."},e6={preparing:"On prépare le masteringâ¦",progressAria:"Progression du mastering",bank:{opening:{saturated:["Ton mix a déjà de la densité, il encaisse bien. On peut pousser sans le casser.","C'est dense et en place, ton mix accepte qu'on lui mette du jus."],fragile:["Ton mix est propre et aéré, avec des transitoires qui comptent. On va y aller en finesse.","Beaucoup de respiration dans ce mix. On travaille en douceur pour pas l'écraser."],moderate:["Mix équilibré, ni trop dense ni trop aéré. On dose pour garder ce compromis.","Bonne assise générale. On va ajuster sans chambouler."],neutral:["Mix classique dans sa construction, traitement mesuré.","Rien d'extrême à signaler, on part sur une approche standard."]},prep:{default:["On prépare le signal avant d'attaquer le vrai traitement.","Petit nettoyage technique avant d'entrer dans le vif."],trim:["On coupe les blancs en début et fin, juste ce qu'il faut.","On raccourcit les silences qui trainent aux extrémités."]},polarity:{clean:["La polarité est correcte, les canaux sont bien en phase.","Rien d'inversé côté polarité, on garde tel quel."],corrected:["Un canal était inversé en polarité, on le remet d'aplomb pour recentrer l'image.","On corrige une inversion de polarité, ça va resserrer le centre du mix."]},dynamics:{bypass:["La dynamique est déjà bien tenue, on laisse tel quel.","Ton mix est déjà serré côté dynamique, on n'y touche pas."],gentle:["On laisse respirer. Tes transitoires sont trop beaux pour les écraser.","Compression très légère, on préserve ce qui fait vivre le mix."],dense:["On colle un peu plus, ton mix peut l'avaler.","On serre davantage, la dynamique supporte bien la pression."],standard:["Un peu de colle sur la dynamique, rien de brutal.","Compression dosée, juste pour souder l'ensemble."]},bass:{skip:["Le bas est déjà en place, on passe.","Les basses tiennent la route, rien à rajouter."],gentle:["Appui léger sur le bas, juste pour asseoir sans saturer.","On souligne discrètement le bas, la texture est trop fine pour plus."],strong:["On épaissit le bas, les fondations méritent ça.","On donne du corps au bas du spectre, ton mix le supporte."],standard:["Petit coup de pouce sur le bas pour installer la fondation.","On soigne l'ancrage dans les basses fréquences."]},tone:{skip:["La balance tonale est propre, rien à redresser.","Ãquilibre spectral déjà bon, on n'intervient pas."],mild:["Ton spectre penche un peu, on rééquilibre doucement vers un profil plus naturel.","Léger déséquilibre tonal, on remet d'aplomb sans forcer."],strong:["Il y a un vrai déséquilibre tonal, on corrige mais sans tout aplatir.","Le spectre a besoin d'être repris, on applique une correction plus marquée."],damped_fragile:["Correction douce, ton mix est fragile et on veut pas casser la texture.","On rééquilibre avec retenue pour respecter l'aération du mix."]},resonances:{skip:["Haut du spectre déjà propre, ni résonances ni sifflantes à mater.","Aigus déjà sans accroche, on passe cette étape."],subtle:["Toucher discret sur les résonances et les sifflantes, on garde la texture.","On lisse très légèrement les pics et les aigus piquants qui pourraient gêner."],strong:["On lisse les résonances qui s'accrochent et on dompte les sifflantes qui piquent, ça restera net même fort.","Les pics résonnants et les sifflantes agressives sont matés, le haut du spectre respire."]},warmth:{skip:["Pas de saturation ajoutée, ton mix en a déjà son compte.","On laisse la couleur telle quelle, il y a ce qu'il faut."],subtle:["Touche de chaleur très discrète, juste de quoi habiller.","Très léger voile analogique pour adoucir sans saturer."],standard:["Un peu de chaleur analogique, ton mix encaisse bien.","On pose une couche de chaleur pour donner du grain."]},stereo:{vocal:["On ajuste l'image stéréo autour du centre, ta voix doit rester plantée devant.","On sculpte la largeur sans déplacer le centre, la voix reste bien ancrée."],instrumental:["Un peu plus de largeur sur les médiums, pas de voix à bloquer au centre.","On ouvre l'image stéréo, le mix instrumental peut se déployer."],tight:["On resserre le bas en stéréo pour une image qui s'éparpille pas.","Focus mono dans le bas, la stéréo s'élargit seulement plus haut."],standard:["On ajuste l'image stéréo bande par bande.","On travaille la largeur pour que chaque fréquence soit bien placée."]},phase:{clean:["Phase propre sur toute la durée, rien à corriger.","Aucune zone problématique en phase, on laisse comme c'est."],fixed:["Quelques zones où la ph
338ase se mangeait, on resserre la stéréo juste là .","On a repéré des accrocs de phase, on les lisse chirurgicalement."]},air:{gentle:["On redonne un peu d'air aux aigus que le limiteur a tassés.","Petit coup d'éclat sur le haut du spectre pour garder la brillance."],restore:["Le limiteur a mangé du haut du spectre, on le rouvre pour retrouver de l'air.","On restitue la brillance perdue au plafonnage, le haut respire à nouveau."]},loudness:{hard:["On pousse le niveau, ton mix tient un plafond franc sans broncher.","Plafonnage ferme, le signal est assez robuste pour encaisser."],soft:["On monte le niveau posément, le plafond reste souple pour ne rien écraser.","Montée en niveau prudente, on protège ce qui fait vibrer le mix."],standard:["On amène le niveau là où il doit être, sans perdre en propreté.","On plafonne le signal pour qu'il sonne fort sans saturer."]},final:{default:["Dernière passe, on cale le niveau crête pour que ça passe sur toutes les écoutes.","Calage final du pic pour que ton master tienne la route partout."]}}},t6={categoryLabels:{billing:"Facturation",technical:"Technique",audio_quality:"Qualité audio",account:"Compte",legal:"Juridique",other:"Autre"},statusLabels:{open:"Ouvert",in_progress:"En cours",waiting_user:"En attente client",resolved:"Résolu",closed:"Fermé"},aiNotice:"Vous échangez avec un assistant automatisé. Un conseiller peut prendre le relais à tout moment."},n6={back:"Retour à mes demandes",header:"{{category}}
338 · créé le {{date}}",attachmentTitle:"Capture jointe",reportedTracks_one:"{{count}} morceau concerné",reportedTracks_other:"{{count}} morceaux concernés",noDuration:"â",speakerYou:"Vous",speakerSupport:"Support Lexpi",replyHint:"Pour relancer cette demande, répondez à l'email reçu : un conseiller prendra le relais.",authRequired:"Authentification requise",ticketIdMissing:"Identifiant de demande manquant",ticketNotFound:"Demande introuvable"},r6={backToHelp:"Retour au centre d'aide",title:"Mes demandes",subtitle:"Suivi de vos tickets envoyés au support.",loadError:"Erreur de chargement : {{message}}",empty:"Vous n'avez encore créé aucune demande.",createdOn:"créé le {{date}}",attachment:"1 capture",linkedTracks_one:"{{count}} morceau lié",linkedTracks_other:"{{count}} morceaux liés",authRequired:"Authentification requise"},i6={successTitle:"Ticket envoyé",successBody:"Nous avons reçu votre demande et vous répondrons sous 7 jours ouvrables. Un accusé de réception vient de partir sur votre adresse email.",sendAnother:"Envoyer un autre message",subject:"Sujet",subjectPlaceholder:"Ex : Problème de téléchargement",category:"Catégorie",body:"Décrivez votre problème",bodyPlaceholder:"Plus vous donnez de contexte (référence du master, message d'erreur exact, navigateur), plus on pourra aider vite.",bodyCharCount:"{{count}}/10000 caractères (min. 10)",screenshot:"Capture d'écran (optionnel)",screenshotPreview:"Aperçu de la capture",screenshotRemove:"Retirer la capture",screenshotJoin:"Joindre une image (JPG/PNG, 2 Mo max)",imageFormatError:"Format non supporté. Utilisez JPG ou PNG.",imageTooLarge:"Image trop lourde ({{size}}). Maximum : 2 Mo.",tracksTitle:"Morceaux problématiques (optionnel)",tracksHint:"Sélectionnez le ou les masters concernés dans votre bibliothèque.",noLibrary:"Vous n'avez pas encore de master dans votre bibliothèque.",trackMax:"Maximum {{count}} morceaux",trackSearch:"Rechercher un master...",trackRemove:"Retirer {{name}}",submitError:"Erreur : {{message}}",send:"Envoyer",authRequired:"Authentification requise",bytes:"{{size}} o",kilobytes:"{{size}} Ko",megabytes:"{{size}} Mo"},s6={backToBackoffice:"Backoffice",ticketNotFound:"Ticket introuvable",authRequired:"Authentification requise",ticketIdMissing:"Ticket id manquant",authIdMissing:"Auth/id manquant",header:"{{category}}
338 · {{email}} · créé le {{date}}",attachmentTitle:"Capture jointe",attachmentAlt:"Ouvrir la capture en grand",reportedTracks_one:"Morceau signalé ({{count}})",reportedTracks_other:"Morceaux signalés ({{count}})",noDuration:"-",speakerClient:"Client",speakerAdmin:"Admin",reply:"Répondre",replyPlaceholder:"Votre réponse...",markResolved:"Marquer comme résolu",sendReply:"Envoyer la réponse",replyError:"Erreur : {{message}}",adminNotes:"Notes admin",status:"Statut",actions:"Actions",refundCta:"Recréditer des masters",refundTitle:"Recréditer des masters",refundDisabled:"Action indisponible (ticket sans user)",source:"Source :",updatedAt:"Mis à jour :",refundTokensLabel:"Nombre de masters",refundReasonLabel:"Motif (visible dans la transaction)",refundReasonPlaceholder:"Ex : Master raté suite à clipping en sortie.",refundError:"Erreur : {{message}}",refundConfirm:"Recréditer",agent:{title:"Activité de l'agent",empty:"L'agent n'a pas encore traité ce ticket.",confidence:"Confiance",tokens:"Tokens",authProfile:"Profil auth",attempts:"Tentatives",completedAt:"Terminé le",error:"Erreur",shadowDraft:"Brouillon (mode shadow)",shadowDraftHint:"Réponse que l'agent aurait envoyée â bloquée car l'envoi est désactivé.",statusLabels:{pending:"En attente",processing:"En cours",completed:"Réponse envoyée",failed:"Ãchec",escalated:"Escaladé à un humain",deferred_human:"Déféré à un humain"},confidenceLabels:{high:"haute",medium:"moyenne",low:"basse"}}},o6={allStatuses:"Tous statuts",allPriorities:"Toutes priorités",priorityNormal:"Normale",priorityHigh:"Haute",allCategories:"Toutes catégories",searchPlaceholder:"Recherche sujet ou email",loadError:"Erreur de chargement : {{message}}",empty:"Aucun ticket.",colDate:"Date",colSubject:"Sujet",colEmail:"Email",colCategory:"Catégorie",colStatus:"Statut",colPriority:"Prio",colMessages:"Msg",prioHigh:"haute",prioNorm:"norm",prev:"Préc.",next:"Suiv.",page:"Page {{page}}",authRequired:"Authentification requise"},a6={title:"Backoffice",tabs:{tickets:"Tickets SAV",jobs:"Jobs",users:"Utilisateurs",audit:"Journal d'audit",abuse:"Abus",dispute:"Litiges",blindtest:"Test à l'aveugle",cessions:"Cessions",finops:"Finops",cohorts:"Cohortes",campaigns:"Campagnes"}},l6={title:"Conversion par cohorte",subtitle:"Les gens s'inscrivent puis déposent en différé. à lire par cohorte d'inscription sur la durée, pas au jour J : la couleur indique au bout de combien de temps ils ont déposé.",heroMedianDeposit:"Délai médian avant 1er dépôt",kpiSignups:"Inscrits",kpiDepositRate:"Ont déposé",kpiPurchaseRate:"Ont acheté",days_one:"{{count}} j",days_other:"{{count}} j",weekOf:"sem. du",signupsCount_one:"{{count}} inscrit",signupsCount_other:"{{count}} inscrits",milestone:{deposit:"Dépôt",master:"Master",purchase:"Achat"},bucket:{day:"Jour",week:"Semaine",month:"Mois"},empty:"Aucune inscription sur la période. Les cohortes apparaîtront ici dès les premiers comptes créés.",legendRipening:"En maturation",ripeningBadge:"en maturation",barAria:"{{rate}} de cette cohorte a atteint l'étape {{milestone}}",bandTip:"{{count}} en ⤠{{days}} j",tailTip:"Convertis au-delà de {{days}} j",ripeningTip:"Cohorte trop récente : ces comptes peuvent encore déposer. Taux non définitif.",lostTip:"Pas encore convertis",footnote:"Une fenêtre est marquée « en maturation » tant que la cohorte n'a pas atteint {{max}} jours d'âge : son taux n'est que partiel et grimpera encore.",incompleteUploads_one:"{{count}} upload non abouti (commencé, jamais terminé). Exclu des dépôts. Si ça grimpe, l'upload fuit.",incompleteUploads_other:"{{count}} uploads non aboutis (commencés, jamais terminés). Exclus des dépôts. Si ça grimpe, l'upload fuit.",campaignsActive:"Campagnes diffusées sur la période : {{names}}"},u6={title:"Journal de campagnes",subtitle:"Notez ce que vous avez lancé : pub, canal, dates, budget, matériel. Tout se recolle aux cohortes d'inscription par les dates, sans aucun cookie ni traceur. Le budget servira à calculer le coût par client (CAC).",new:"Nouvelle campagne",empty:"Aucune campagne pour l'instant. Créez-en une pour garder la trace de ce que vous lancez et le voir apparaître sur les cohortes.",ongoing:"en cours",planEyebrow:"Campagne",flightAria:"{{name}}, {{channel}}, du {{from}} au {{to}}",now:"aujourd'hui",creative:"Matériel",noBudget:"budget non renseigné",durationDays_one
338:"{{count}} j diffusés",durationDays_other:"{{count}} j diffusés",edit:"Modifier",delete:"Supprimer",confirmDelete:"Supprimer la campagne « {{name}} » et tout son matériel ?",addAsset:"Ajouter un fichier",openAsset:"Ouvrir le fichier",deleteAsset:"Retirer ce fichier",confirmDeleteAsset:"Retirer ce fichier ?",assetTooBig:"Fichier trop lourd (50 Mo max).",fieldName:"Nom",namePlaceholder:"Ex. Story Insta violette, Google Ads « mastering en ligne »",fieldChannel:"Canal",fieldBudget:"Budget dépensé",fieldStart:"Début",fieldEnd:"Fin (vide = en cours)",fieldNotes:"Description / notes",notesPlaceholder:"Ce que vous avez lancé, l'audience visée, l'accroche, les observationsâ¦",requiredFields:"Le nom et la date de début sont requis.",badBudget:"Budget invalide.",cancel:"Annuler",create:"Créer",save:"Enregistrer",channel:{meta:"Meta / Instagram",google:"Google Ads",seo:"SEO",organic:"Organique",email:"Email",other:"Autre"}},c6={fiscal:{title:"Fiscal",tvaBadge:"TVA franchise {{threshold}} â¬",microBadge:"Plafond micro {{threshold}} â¬",caYtd:"CA YTD",caRolling12m:"CA 12 mois",stripePending:"Cache Stripe absent. Lancez un refresh pour activer le bandeau fiscal.",projTvaFranchise:"Franchissement franchise TVA",projTvaTolerance:"Franchissement tolérance TVA",projMicro:"Franchissement plafond micro",projMonths:"â {{months}} mois au rythme actuel",projAlreadyCrossed:"Seuil franchi"},kpi:{tco:"TCO du mois",tcoHint:"Saisies manuelles + AWS + Google Ads",revenue:"Revenue net",revenueHint:"Brut Stripe â frais",margin:"Marge nette",marginHint:"Revenue net â URSSAF {{urssaf}}% â TCO",ratio:"Ratio gratuit/payant",ratioHint:"Vert ⤠10, orange 10-14, rouge > 14"},sparkline:{title:"6 derniers mois",legendTco:"TCO",legendRevenue:"Revenue net"},services:{title:"Services et sources",tcoTotal:"TCO total : {{amount}}",colService:"Service",colAmount:"Montant",colSource:"Source",colLastUpdate:"Mise à jour",colActions:"Actions",edit:"Modifier",add:"Saisir",notSet:"non saisi",refresh:"Actualiser",force:"Forcer",awsForceWarning:"Forcer le refresh AWS Cost Explorer facture 0,01 $ immédiatement. Continuer ?",staleBadge:"à reconfirmer",staleHint:"Valeur saisie il y a plus de 90 jours sans reconfirmation"},internal:{title:"Métriques internes du mois",nbMast:"Masterings réussis",nbHd:"HD vendus",avgDuration:"Durée moyenne",totalAudio:"Audio total mastérisé",costPerMin:"Coût/min audio",costPerTrack:"Coût/track 3 min",refTrack:"Référence catalogue",rtf:"Real-time factor",usdEur:"Taux USD/EUR"},refreshAll:{title:"Refresh combiné",hint:"Stripe (mensuel + YTD + 12m) + AWS Cost Explorer + Google Ads en un appel. Respecte les TTL DB sauf si Force.",forceLabel:"Forcer (bypass TTL)",forceConfirm:"Forcer bypass le TTL AWS 24 h et facture 0,01 $. Continuer ?",button:"Lancer le refresh",resultPrefix:"Dernier résultat :"},consoles:{title:"Consoles externes",hint:"Détails facture et usage à consulter directement chez le fournisseur.",stripe:"Stripe Payments",aws:"AWS Cost Management",googleAds:"Google Ads",modal:"Modal Billing",anthropic:"Anthropic Usage",posthog:"Posthog (funnel)"},entryModal:{title:"Saisie {{service}}",currentValue:"Valeur actuelle : {{amount}} â¬",lastVerified:"vérifié {{date}}",updatedBy:"par {{actor}}",amountLabel:"Montant mensuel en EUR",amountInvalid:"Montant invalide : doit être un nombre ⥠0",noteLabel:"Note (optionnelle)",notePlaceholder:"Ex. plan dev, upgrade pro depuis 2026-04-01, etc.",save:"Enregistrer",reconfirm:"Toujours à jour (toucher last_verified_at)",reconfirmHint:"Confirme la valeur sans la modifier. Remet le badge stale à zéro.",cancel:"Annuler"}},d6={purchaseError:"Erreur lors de l'achat. Réessayez.",cgvVersionLabel:"Version {{version}}"},p6={profileLoadError:"Impossible de charger le profil. Veuillez rafraîchir la page."},h6={retry:"Le crédit tarde à arriver, réessayer",resumeDownloading:"Crédits reçus, téléchargement...",downloadingState:"Téléchargement en cours...",redirectingPayment:"Redirection vers le paiement...",download_one:"Télécharger le master ({{count}} master)",download_other:"Télécharger le master ({{count}} masters)",confirm_one:"Confirmer le déblocage ({{count}} master)",confirm_other:"Confirmer le déblocage ({{count}} masters)",remainingAfter_one:"Il vous restera {{count}} master après ce déblocage.",remainingAfter_other:"Il vous restera {{count}} masters après ce déblocage.",cancel:"Annuler",unlock:"Débloquer ce master - {{price}}",downloadFallback:"Télécharger le master",notAuthenticated:"Non authentifié"},f6={title:"Conditions Générales de Vente",checkboxBefore:"J'ai lu les ",checkboxLink:"Conditions Générales de Vente",checkboxAfter:" et j'accepte que mes masters soient utilisables tout de suite. Un master téléchargé n'est plus remboursable.",article:"(art. L.221-28)",cancel:"Annuler",confirm:"Confirmer"},m6={title:"Centre d'aide",intro:"Retrouvez les réponses aux questions les plus fréquentes. Si vous ne trouvez pas ce que vous cherchez, contactez-nous à ",introSuffix:".",notFoundTitle:"Vous ne trouvez pas votre réponse ?",signedInIntroBefore:"Envoyez-nous un message. Vous pourrez suivre la réponse depuis ",myTickets:"mes demandes",signedInIntroAfter:". Délai de réponse : 7 jours ouvrables.",signedOutBefore:"Contactez notre support à ",signedOutMiddle:". Pour les demandes légales ou RGPD, écrivez à ",signedOutEnd:". Délai de réponse : 7 jours ouvrables.",search:{placeholder:"Rechercher dans l'aideâ¦",clear:"Effacer la recherche",results_one:"{{count}} réponse pour « {{query}} »",results_other:"{{count}} réponses pour « {{query}} »",noResults:"Aucun résultat pour « {{query}} ». Essayez d'autres mots ou contactez le support plus bas."},categories:{firstSteps:"Premiers pas",pricing:"Tarification et crédits",audioQuality:"Qualité audio et prémaster",accountData:"Compte et données",billing:"Paiement et facturation",usage:"Utilisation et limites",refund:"Remboursement et droits"},faq:{firstSteps:[{q:"Quelle différence entre mix et master ?",a:"Le mix équilibre les pistes et les effets au sein d'un morceau. Le master optimise le mix final pour la diffusion : niveau, tonalité globale, dynamique et cohérence. lexpi traite un fichier stéréo déjà mixé. Ce n'est pas un outil de mixage."},{q:"Quels formats puis-je envoyer ?",a:"WAV ou AIFF, 24-bit minimum, en 44.1 kHz ou 48 kHz. Le fichier doit durer entre 30 secondes et 30 minutes. Mono et stéréo sont acceptés."},{q:"Pourquoi 24-bit minimum ?",a:"Le 24-bit préserve la marge dynamique (headroom) nécessaire au traitement. Un fichier 16-bit a déjà été réduit et peut générer des artefacts lors du mastering."},{q:"Mon fichier est refusé, que vérifier ?",a:"Vérifiez que le fichier est au format WAV ou AIFF, en 24-bit ou plus, à 44.1 kHz ou 48 kHz, entre 30 secondes et 30 minutes. Assurez-vous que l'exp
338ort est en stéréo interleaved et que le fichier n'est pas corrompu. L'écran d'upload vous indiquera la raison exacte du refus."}],pricing:[{q:"Combien coûte un morceau ?",a:"1 crédit couvre 10 minutes d'audio. Une durée commencée est due au pas de 10 minutes. Par exemple, un morceau de 4 minutes coûte 1 crédit, un morceau de 12 minutes en coûte 2."},{q:"Je peux écouter gratuitement ?",a:"Oui. L'analyse et la pré-écoute A/B compressée sont gratuites. Vous ne payez qu'au téléchargement des fichiers lossless (WAV 24-bit, WAV 16-bit, MP3 320 kbps)."},{q:"Mes crédits expirent quand ?",a:"Les crédits sont valables 12 mois à compter de l'achat. La date d'expiration est affichée sur votre page Tokens. Vous recevrez une notification par email avant l'expiration."},{q:"Puis-je prolonger la validité de mes crédits ?",a:"Pour le moment, les crédits ne sont pas prolongeables. Consommez-les dans les 12 mois suivant l'achat."}],audioQuality:[{q:"La version d'écoute MP3 et le WAV final sont-ils différents ?",a:"Ils proviennent du même traitement. La version d'écoute est encodée en MP3, ce qui peut modifier légèrement la perception. Le WAV final est le résultat sans perte, non compressé."},{q:"Pourquoi ça sature ou clipe ?",a:"Le plus souvent, le clipping est déjà présent dans le mix. Causes fréquentes : limiteur trop agressif sur le master bus, gain trop élevé. Solution : baissez le master fader de quelques dB, retirez le limiteur du master bus, et réexportez."},{q:"Dois-je enlever le limiteur sur mon master bus ?",a:"Oui. Pour un prémaster optimal, retirez le limiteur (et idéalement le compresseur) du master bus. Visez du headroom : un signal qui plafonne entre -6 et -3 dBTP. Le mastering s'occupe du reste."},{q:"Le service répare-t-il un mauvais mix ?",a:"Non. Le mastering optimise un mix correct pour la diffusion. Un mix déséquilibré (trop de basses, voix noyée, instruments mal panoramiqués) restera déséquilibré. Corrigez d'abord votre mix."},{q:"Que faire si je reçois un avertissement « fichier déjà masterisé » ?",a:"Cela signifie que la dynamique de votre fichier est très limitée (Dynamic Range < 8 dB, LUFS > -14). Le traitement aura peu de marge et peut être plus agressif que voulu. Exportez un prémaster sans limiteur pour un meilleur résultat."},{q:"Comment éviter les artefacts ?",a:"Exportez un prémaster propre : pas de clipping, du headroom (-6 à -3 dBTP), pas de dither inutile, pas de normalisation destructive, pas de conversion de sample rate exotique. Consultez le guide prémaster sur la page d'upload."},{q:"Le WAV 16-bit est-il dithered ?",a:"Oui. Le master 16-bit est exporté avec un dither triangulaire (TPDF) appliqué à la conversion 24â16 bits. Vous pouvez l'utiliser tel quel pour la gravure CD ou la distribution."},{q:"Le rendu est trop fort ou écrasé.",a:"Si le master sonne écrasé, votre mix est probablement déjà très compressé. Réexportez un mix avec plus de dynamique (retirez le limiteur du master bus). Le mastering gère le niveau final."},{q:"Le rendu manque de basses ou d'aigus.",a:"Le mastering respecte l'équilibre tonal de votre mix. Si le résultat manque de basses ou d'aigus, le problème vient probablement du mix. Vérifiez votre mix sur plusieurs systèmes d'écoute avant de réexporter."}],accountData:[{q:"Le service utilise-t-il mes fichiers pour entraîner un modèle ?",a:"Non, jamais. Vos fichiers sont traités uniquement pour produire votre master. Ils ne sont ni partagés, ni utilisés pour l'entraînement. Voir notre page Ãthique pour plus de détails."},{q:"Combien de temps gardez-vous mes fichiers ?",a:"Les versions d'écoute sont conservées 7 jours. Les masters payés restent disponibles tant que votre compte est actif. Les fichiers déposés et abandonnés sont purgés sous 24 heures. Toutes les durées sont détaillées dans notre politique de confidentialité."},{q:"Puis-je supprimer mes données et mon compte ?",a:"Oui. Rendez-vous sur votre page Compte pour exporter vos données (JSON) ou demander la suppression de votre compte. La suppression entraîne l'effacement de tous vos fichiers audio (S3), de vos données en base et de votre compte Clerk. Un email de confirmation vous est envoyé."},{q:"Puis-je exporter mes données ?",a:"Oui. Depuis votre page Compte, vous pouvez exporter votre profil, votre historique de transactions, vos consentements et vos fichiers au format JSON."}],billing:[{q:"Pourquoi ma carte est refusée ?",a:"Causes fréquentes : authentification 3D Secure échouée, plafond bancaire atteint, carte non compatible avec les paiements en ligne. Réessayez ou utilisez un autre moyen de paiement."},{q:"J'ai été débité deux fois.",a:"Vérifiez votre historique de transactions sur la page Tokens. Si un doublon est confirmé, contactez-nous à [email protected] avec la référence de la transaction."},{q:"Puis-je retélécharger un master déjà payé ?",a:"Oui. Le re-téléchargement d'un master payé est illimité et gratuit. Retrouvez vos masters dans la Bibliothèque."}],usage:[{q:"Pourquoi 1 seul fichier actif en mode gratuit ?",a:"En mode découverte (0 crédit), vous pouvez analyser et écouter la ver
338sion d'écoute d'un fichier à la fois. Cela garantit la capacité serveur et évite les abus. Achetez des crédits pour traiter plusieurs fichiers simultanément."},{q:"Puis-je uploader un album entier ?",a:"Oui, piste par piste. Chaque fichier est traité indépendamment. Si vous avez suffisamment de crédits, vous pouvez avoir jusqu'à 10 fichiers actifs en parallèle."},{q:"Pourquoi certains fichiers sont refusés ?",a:"Un fichier est refusé s'il ne respecte pas les critères techniques : format (WAV/AIFF uniquement), résolution (24-bit minimum), fréquence (44.1/48 kHz), durée (30s-30min), ou s'il est détecté comme silencieux ou sévèrement clipé. L'écran d'upload explique la raison et comment corriger."},{q:"Le fichier final est tronqué.",a:"Vérifiez que votre fichier source n'est pas corrompu et que l'export est complet (pas de coupure en fin de morceau). Réuploadez le fichier."}],refund:[{q:"Puis-je obtenir un remboursement ?",a:"En cas d'erreur de facturation vérifiée : oui. En cas de déception esthétique : non. Le mastering est un traitement technique automatisé : le résultat dépend du mix fourni. Consultez nos CGV (art. 6 et 7) pour le détail de la politique."},{q:"Qui possède les droits sur le master ?",a:"Vous conservez l'intégralité des droits sur votre musique. lexpi ne revendique aucun droit sur les fichiers uploadés ni sur les masters générés. Voir nos CGV (art. 8)."}]}},g6={backToDashboard:"Retour au dashboard",masterUnit_one:"master",masterUnit_other:"masters",analysisTitle:"Analyse de votre mix",analysisLoading:"Analyse en cours...",analysisLoadingWithProgress:"Analyse en cours... {{progress}}%",rejectedNotice:"Ce fichier ne peut pas être mastérisé en l'état.",retryWithCorrected:"Réessayer avec un fichier corrigé",abandonFile:"Abandonner ce fichier",abListenTitle:"Ãcoute comparative",lufsModeAnalytical:"Mode analytique : loudness perçu égal, évaluation honnête du travail timbral et spectral.",lufsModePublication:"Mode publication : le master sonne plus fort, tel qu'il sera entendu sur les plateformes.",downloadPreviewCta:"Télécharger la version d'écoute MP3 · Gratuit",preserveSilences:"Conserver les silences de l'original",masterUnlocked:"Master débloqué !",whatNext:"Et maintenant ?",masterAnother:"Masteriser un autre morceau",viewLibrary:"Voir ma bibliothèque",downloadError:"Erreur lors du téléchargement. Réessayez.",formatDownloadError:"Téléchargement échoué. Réessayez.",nominalMix:"Votre mix est prêt pour le mastering, tout est bon.",notAuthenticated:"Non authentifié",abandonModal:{title:"Abandonner ce fichier ?",message:"Le fichier sera retiré de votre liste active. Cette action est définitive.",confirm:"Abandonner",cancel:"Annuler"},stepLabels:{download:"Téléchargement...",lufs_true_peak:"Loudness & True Peak",stereo_phase:"Stéréo & Phase",spectral:"Analyse spectrale",detection:"Détection des anomalies"},statusLine:{uploading:"Uploadâ¦",validating:"Validationâ¦",analyzingDefault:"Analyse en cours...",analyzingWithProgress:"Analyse... {{progress}}%",analyzingWithStep:"Analyse · {{step}} {{progress}}%",ready:"Prêt",error:"Erreur"},countdown:{expired:"Expiré",days_one:"Plus que {{count}} jour",days_other:"Plus que {{count}} jours",hoursMinutes:"Plus que {{hours}}h {{minutes}}m"},previewModal:{title:"Version d'écoute MP3",body:"Ce fichier MP3 filigrané vous appartient. Ãcoutez-le partout : voiture, téléphone, casque⦠Vous avez 7 jours pour décider si le résultat vous convient et acheter le master haute définition.",countdownSuffix:"avant suppression",download:"Télécharger",cancel:"Annuler"}},v6={title:"Créditer des masters",closeAria:"Fermer",forUser:"Pour",balanceLoading:"Chargement du soldeâ¦",balanceCurrent:"Solde actuel",balanceAfter:"Après crédit",balanceUnavailable:"Solde indisponible",tokensLabel:"Nombre de masters (1 - {{max}})",reasonLabel:"Motif (⥠3 caractères)",reasonPlaceholder:"ex : geste commercial suite au bug d'export du 27/04â¦",reasonHint:"Inscrit dans la transaction et visible dans le journal utilisateur.",notifyLabel:"Prévenir l'utilisateur par email",notifyHint:"Décocher pour un ajustement silencieux (test, correction interne).",confirmTitle:"Confirmer le crédit",confirmBody_one:"Vous allez créditer <strong>{{count}} master</strong> à <email>{{email}}</email>.",confirmBody_other:"Vous allez créditer <strong>{{count}} masters</strong> à <email>{{email}}</email>.",emailSent:"Un email lui sera envoyé.",immediateNotice:"Cette action est immédiate et tracée.",back:"Retour",cancel:"Annuler",confirmCta:"Confirmer le crédit",creditCta_one:"Créditer {{count}} master",creditCta_other:"Créditer {{count}} masters"},y6={reasonPlaceholder:"Raison (min. 3 caractères)â¦"},_6={prev:"Préc.",next:"Suiv.",page:"Page {{page}}",loadError:"Erreur de chargement : {{message}}",mutationError:"Erreur : {{message}}"},b6={filterAllRoles:"Tous les rôles",empty:"Aucun utilisateur trouvé.",colEmail:"Email",colRole:"Rôle",colFirstName:"Prénom",colLastName:"Nom",colCreatedAt:"Créé le",colActions:"Actions",promote:"Promouvoir",demote:"Rétrograder",credit:"Créditer",promoteModalTitle:"Promouvoir en ADMIN",demoteModalTitle:"Rétrograder en MEMBER",flashAlreadyCredited_one:"Crédit déjà appliqué (idempotent) · solde : {{count}} master.",flashAlreadyCredited_other:"Crédit déjà appliqué (idempotent) · solde : {{count}} masters.",flashCredited_one:"+{{count}} master crédité · solde : {{balance}}{{emailSuffix}}.",flashCredited_other:"+{{count}} masters crédités · solde : {{balance}}{{emailSuffix}}.",flashEmailSent:" · email envoyé"},x6={filterLevelMin:"Niveau min : {{level}}",empty:"Aucun utilisateur signalé.",colEmail:"Email",colLevel:"Niveau",colL
338abel:"Label",colReason:"Raison",colFlaggedAt:"Signalé le",colCooldown:"Cooldown",colConsecDays:"Jours consécutifs",colActions:"Actions",unflag:"Unflag",escalate:"Escalader",unflagModalTitle:"Retirer le signalement",escalateModalTitle:"Escalader le niveau d'abus"},S6={kpiRate:"Taux de litige",kpiCharges:"Charges totales",kpiDisputes:"Litiges",searchTitle:"Recherche de preuves par file_id",searchPlaceholder:"UUID du fichierâ¦",searchSubmit:"Chercher",fileInfoTitle:"Informations du fichier",fileId:"File ID",filename:"Nom",userId:"User ID",status:"Statut",duration:"Durée",tokenCost:"Coût tokens",downloadIp:"IP téléchargement",downloadUa:"UA téléchargement",createdAt:"Créé le",purchasedAt:"Acheté le",masteringCompletedAt:"Mastering terminé",outputLufs:"LUFS sortie",outputTruePeak:"True Peak sortie",consentsTitle:"Consentements ({{count}})",consentType:"Type",consentVersion:"Version",consentHash:"Hash",consentIp:"IP",consentUa:"UA",consentAcceptedAt:"Accepté le",transactionsTitle:"Transactions ({{count}})",txId:"ID",txType:"Type",txTokens:"Tokens",txDescription:"Description",txDate:"Date",paymentTitle:"Paiement",paymentBatchId:"Batch ID",paymentStripeSession:"Stripe Session",paymentIntent:"Payment Intent",paymentTokens:"Tokens",paymentPrice:"Prix",paymentPurchasedAt:"Acheté le",paymentExpiresAt:"Expire le"},w6={filterAllStatuses:"Tous les statuts",jobsCount:"{{count}} jobs",empty:"Aucun job.",stuckTitle_one:"{{count}} upload bloqué",stuckTitle_other:"{{count}} uploads bloqués",stuckHint:"Envoi commencé mais jamais terminé (onglet fermé ou connexion coupée). « Récupérer » reprend le mastering si le fichier est complet dans le stockage, sinon renvoie au client un email pour réessayer.",stuckNotified:"déjà relancé",stuckRecover:"Récupérer",stuckResumed:"Mastering relancé",stuckReinvited:"Client réinvité",colFile:"Fichier",colUser:"User",colStatus:"Statut",colAudioDuration:"Durée audio",colMastering:"Mastering",colRtf:"RTF",colRtfTooltip:"Real-time factor : mastering / durée audio (1x = temps réel)",colTotal:"Total",colGpu:"GPU",colCreated:"Créé",detailTitle:"Détail du job",phasesTitle:"Durée globale (phases)",phaseQueue:"File d'attente",phaseAnalysis:"Analyse",phaseBetween:"Transition",phaseMastering:"Mastering",phaseTotal:"Total",rtfTitle:"Real-time factor (durée traitement / durée morceau)",rtfMastering:"Mastering",rtfMasteringHint:"Pure inférence + assembly + I/O · coût du pipeline",rtfTotal:"Total",rtfTotalHint:"Vu côté user (queue + analyse + mastering)",rtfFootnote:"1x = traitement aussi long que la lecture du morceau. L'écart <mono>total - mastering</mono> mesure la part plomberie (queue, analyse, transitions Modal/Railway).",stepsTitle:"Détail mastering (étapes)",stepDownload:"Download",stepInference:"Inference",stepAssembly:"Assembly",stepProbeReport:"Probe report",stepUpload:"Upload",outputTitle:"Sortie",outputLufs:"LUFS",outputTruePeak:"True Peak",outputSilenceLeading:"Silence leading (samples)",outputSilenceTrailing:"Silence trailing (samples)",engineTitle:"Engine",pipelineTitle:"Métadonnées pipeline (nÅuds)",timestampsTitle:"Timestamps",tsCreated:"Créé",tsAnalysisStarted:"Analyse débutée",tsAnalysisCompleted:"Analyse terminée",tsMasteringStarted:"Mastering débuté",tsMasteringCompleted:"Mastering terminé",copyDone:"Copié",copyMetadata:"Copier metadata",listenTitle:"Ãcoute de contrôle A/B",listenHint:"Ouvre l'original et le master de ce client dans le lecteur A/B. Réservé au contrôle qualité : chaque écoute est journalisée.",listenStart:"Lancer l'écoute",listenStop:"Terminer l'écoute",listenActive:"Ãcoute active",listenNoLufs:"Mesures LUFS indisponibles pour ce job : lecteur A/B non disponible.",reportTitle:"Rapport d'analyse",reportView:"Voir le rapport",reportGenerate:"Générer le rapport",reportGenerating:"Génération (jusqu'à 1 min)â¦",reportUnavailable:"Rapport indisponible (sources manquantes)."},E6={title:"Aperçus anonymes (sans compte)",count_one:"{{count}} aperçu",count_other:"{{count}} aperçus",hint:"Aperçus 30s lancés sans compte. L'audio est purgé ~2h après création ; la trace anonyme est conservée 30 jours (aucune IP brute). Aucun lien possible vers un inscrit : un aperçu est anonyme par construction.",empty:"Aucun aperçu anonyme sur les 30 derniers jours.",colCreated:"Créé",colStatus:"Statut",colDuration:"Durée",colLufs:"LUFS source â teaser",colAudio:"Audio",colIp:"IP (hash)",audioPurged:"purgé",audioLive:"disponible"},k6={empty:"Aucune entrée dans le journal d'audit.",colDate:"Date",colTarget:"Cible",colChange:"Changement",colSource:"Source",colReason:"Raison",colBy:"Par"},C6={title:"Ajouter des morceaux",subtitle:"Sélectionnez un ou plusieurs masters achetés.",searchPlaceholder:"Rechercherâ¦",allAlreadyAdded:"Tous vos masters sont déjà dans cet album.",noM
338aster:"Aucun master dans votre bibliothèque.",selectedCount_one:"{{count}} sélectionné",selectedCount_other:"{{count}} sélectionnés",noSelection:"Aucune sélection",cancel:"Annuler",add:"Ajouter",notAuthenticated:"Non authentifié"},T6={authRequired:"Authentification requise",includeSuspiciousLabel:"Inclure les sessions suspectes (durée < 10 s ou > 5 h)",overviewTitle:"Vue d'ensemble",statsLoadError:"Erreur de chargement des stats : {{message}}",statTotalSessions:"Sessions totales",statTotalSessionsHint:"Sessions complètes (5 rounds)",statWinRate:"Win rate Lexpi",statWinRateHint:"Sur les votes décisifs (hors égalités)",statPoints:"Points Lexpi",statPointsHint:"vs {{other}} autre service",statTies:"Ãgalités",statTiesHint:"Rounds 'aucune préférence'",colTrack:"Morceau",colLexpiWins:"Lexpi wins",colOtherWins:"Autre wins",colTies:"Ãgalités",colLexpiPct:"% Lexpi",perTrackEmpty:"Aucune donnée pour l'instant.",sessionsTitle:"Sessions récentes",sessionsEmpty:"Aucune session enregistrée.",colSessionDate:"Date",colSessionIp:"IP",colSessionDevice:"Ãcoute",deviceMobile:"Mobile",deviceMobileTip:"Mobile : probable HP téléphone, écoute biaisée",deviceTablet:"Tablette",deviceTabletTip:"Tablette : HP intégré ou casque, écoute moyenne",deviceDesktop:"Desktop",deviceDesktopTip:"Desktop ou laptop : moniteurs ou casque, écoute la plus fiable",deviceUnknown:"Inconnu",deviceUnknownTip:"User-agent absent ou non reconnu",colSessionService:"Service",colSessionLexpi:"Lexpi",colSessionOther:"Autre",colSessionTies:"Ãgal.",colSessionDuration:"Durée",prefLexpi:"Lexpi",prefOther:"Autre",prefTie:"Ãgalité",suspectBadge:"Suspect",suspectTooltip:"Durée hors bornes [10 s, 5 h]",roundLabel:"Round {{round}}",choiceLine:"Choix {{choice}} â {{label}}",lexpiSidePrefix:"Lexpi côté",uaPrefix:"UA :"},P6={notFound:"Album introuvable.",backToAlbums:"Retour aux albums",allAlbums:"Tous les albums",trackCount_one:"{{count}} piste",trackCount_other:"{{count}} pistes",deleteButton:"Supprimer",notAuthenticated:"Non authentifié",confirmDelete:{title:"Supprimer l'album « {{title}} » ?",message:"Les masters ne seront pas supprimés, mais l'album et ses réglages le seront.",confirmLabel:"Supprimer",cancelLabel:"Annuler"},metadata:{title:"Métadonnées",fieldTitle:"Titre",fieldArtist:"Artiste",fieldAlbumArtist:"Artiste de l'album",placeholderAlbumArtist:"Par défaut : même que Artiste",f
338ieldYear:"Année",fieldGenre:"Genre",fieldCopyrightYear:"Année copyright",placeholderCopyrightYearWithYear:"Par défaut : {{year}}",placeholderCopyrightYearDefault:"Par défaut : année de l'album",fieldCopyrightOwner:"Propriétaire copyright",placeholderCopyrightOwner:"Ex : Sony Music BMG, Marc Léger",fieldDescription:"Description (optionnel)"},artwork:{title:"Pochette",constraints:"JPEG, PNG ou WebP. 5 Mo max.",alt:"Pochette de {{title}}",embedNotice:"La pochette sera intégrée aux fichiers exportés.",dropPrompt:"Glissez une image ici ou choisissez un fichier.",replace:"Remplacer",choose:"Choisir une image",remove:"Retirer",uploadFailed:"Ãchec du téléversement.",unsupportedFormat:"Format non supporté. Formats acceptés : JPEG, PNG, WebP.",tooHeavy:"Image trop lourde ({{kb}} Ko). Maximum : 5 Mo."},cohesion:{title:"Cohésion entre morceaux",description:"Aligne le volume en tirant les pistes les plus fortes vers la plus calme. Jamais d'amplification, les masters gardent leur headroom.",presetStrictTitle:"Stricte",presetStrictSubtitle:"±1 LUFS",presetStrictDescription:"Album très serré, volume quasi identique.",presetRespectTitle:"Respect",presetRespectSubtitle:"±3 LUFS",presetRespectDescription:"Préserve les masters. Intervention minimale.",presetCustomTitle:"Personnalisé",presetCustomSubtitle:"±{{tolerance}} LUFS",presetCustomDescription:"Choisissez votre tolérance.",sliderLabel:"Tolérance : ±{{tolerance}} LUFS",sliderRange:"0.5 â 6.0",excludeQuietLabel:"Exclure automatiquement les pistes très calmes",excludeQuietHint:"Une piste anormalement plus faible (> 4 LUFS d'écart) ne servira pas d'ancrage. Utile pour les pistes ambient / bonus.",summary:{emptyTracks:"Ajoutez au moins un morceau pour voir l'analyse de cohésion.",singleTrack:"Cohésion inapplicable avec une seule piste, elle sera exportée telle quelle avec les métadonnées album (utile pour tagger un single).",noLufs:"LUFS des masters non disponible, attendez la fin du mastering des morceaux.",anchor:"Ancrage",target:"Cible",maxPulldown:"Atténuation max",lufsValue:"{{value}} LUFS",anchorSublabel:"tolérance ±{{tolerance}}",maxPulldownValueWithDb:"â{{db}} dB",maxPulldownValueNone:"aucune",maxPulldownSublabelLossless:"pull-down lossless",maxPulldownSublabelWithin:"toutes dans la tolérance",outliersWarning_one:"{{count}} piste détectée comme anormalement calme, exclue de l'ancrage.",outliersWarning_other:"{{count}} pistes détectées comme anormalement calmes, exclues de l'ancrage."}},gap:{title:"Espacement entre pistes",description:"Silence ajouté à la fin de chaque mor
338ceau exporté, sauf le dernier. 0 s pour un enchaînement sans interruption.",gapless:"0 s (gapless)",max:"5 s",valueSec:"{{value}} s"},tracks:{titleWithCount:"Pistes ({{count}})",addButton:"Ajouter",emptyMessage:"Aucun morceau dans cet album.",addFromLibrary:"Ajouter depuis la bibliothèque"},trackRow:{dragTitle:"Glissez pour réordonner",dragAriaLabel:"Glisser la piste {{number}} pour la déplacer",renameTitle:"Cliquez pour renommer la piste (videz pour revenir au nom du fichier)",excludedBadge:"Hors ancrage",gainArrow:"{{db}} dB â cohésion",preserveSilence:"Conserver les silences de l'original",playTitle:"Ãcouter la piste",pauseTitle:"Mettre en pause",excludeTitle:"Exclure de l'ancrage (ex : piste bonus)",reincludeTitle:"Réinclure dans le calcul de cohésion",hideDetails:"Masquer les détails",showDetails:"Afficher les détails (artiste, ISRC, BPMâ¦)",removeTitle:"Retirer de l'album",invalidField:"Champ invalide.",saveFailed:"Ãchec de l'enregistrement.",bpmOutOfRange:"BPM hors limites (1 à 999).",detailArtistLabel:"Artiste de la piste (ex : feat.)",detailArtistPlaceholder:"Par défaut : artiste de l'album",detailComposerLabel:"Compositeur",detailIsrcLabel:"ISRC",detailBpmLabel:"BPM"},export:{title:"Export",description:"Génère un ZIP contenant tous les morceaux avec la cohésion appliquée et les métadonnées album embarquées.",formatAll:"Complet",formatAllDescription:"WAV 24 + 16 + MP3 320. Tous usages.",formatBoth:"WAV 24 + 16",formatBothDescription:"Studio + CD sans MP3.",formatMp3:"MP3 320 kbps",formatMp3Description:"Partage / upload plateformes.",formatWav24:"WAV 24-bit",formatWav24Description:"Studio / streaming HD.",formatWav16:"WAV 16-bit",formatWav16Description:"CD / compatibilité max.",inProgress:"Export en coursâ¦",generate:"Générer le ZIP",needTrack:"Ajoutez au moins un morceau avant d'exporter."},exportStatus:{completedTitle:"Export prêt",download:"Télécharger",close:"Fermer",failedTitle:"Export échoué",pending:"En file d'attenteâ¦",processing:"Génération du ZIPâ¦"}},R6={defaultLabelA:"A · Original",defaultLabelB:"B · Master",errors:{auth:"Session expirée. Reconnectez-vous puis réessayez.",serverWithStatus:"Serveur momentanément indisponible ({{status}}). Réessayez dans quelques secondes.",server:"Serveur momentanément indisponible. Réessayez dans quelques secondes.",network:"Connexion interrompue. Vérifiez votre réseau puis réessayez.",decode:"La version d'écoute n'a pas pu être décodée. Rechargez la page.",otherWithStatus:"Ãchec du chargement ({{status}}). Réessayez.",other:"Ãchec du chargement. Réessayez."},retry:"Réessayer",listenLabel:"Ãcouter {{label}}",listenOriginal:"Ãcouter l'original",listenMaster:"Ãcouter le master",restartTitle:"Retour au début",swapTitle:"Cliquer pour basculer (ou maintenir pour comparer brièvement), touches A / B",swapAriaLabel:"Comparer A et B (clic : bascule, maintenir : comparer)",lufs:{activeTitle:"LUFS normalisation : comparaison à loudness égal. Cliquer pour entendre le master en peak normalisation (niveau réel).",inactiveTitle:"Peak normalisation : le master au niveau réel (sonne plus fort). Cliquer pour activer la LUFS normalisation.",activeAriaLabel:"LUFS normalisation active (cliquer pour passer en peak normalisation)",inactiveAriaLabel:"Peak normalisation (cliquer pour activer la LUFS normalisation)",label:"LUFS normalisation",inactiveLabel:"Peak normalisation"},mute:"Couper le son",unmute:"Activer le son",zoomOut:"Dézoomer (Ctrl + molette bas)",zoomIn:"Zoomer (Ctrl + molette haut)",zoomReset:"Réinitialiser le zoom",zoomFit:"Ajuster à la vue",loading:"Chargement de la comparaisonâ¦",protectionModal:{title:"Lecture mise en pause",body:"Pour protéger les masters non payés contre l'enregistrement, la lecture s'interrompt brièvement toutes les 30 secondes. Le master HD complet (320 kbps, sans interruption) est téléchargeable dès quelques euros.",resume:"Reprendre l'écoute"}},A6={pendingBanner:{title:"Plus qu'une étape",body:"Votre morceau « {{filename}} » sera masterisé en entier, gratuitement, dès que votre compte est prêt."}},I6={hero:{headline1:"Déposez votre morceau,",headline2:"écoutez-le mastérisé.",subhead:"Gratuit et sans compte. Le travail d'un ingénieur de mastering, pas un filtre tout fait. Vous payez seulement si le son vous convainc.",reassurance:"Aucune carte bancaire demandée · Vos fichiers restent privés"}},L6={heroTaglines:["Un seul bouton. Cinquante ans de mastering.","Finissez votre morceau. Vraiment."],hero:{ctaSignup:"Créer un compte pour lancer le mastering",reassurance:"Mastering complet offert à l'écoute · MP3 320 kbps filigrané, téléchargeable",scrollCue:"Exemples · Test à l'aveugle · Tarifs"},preview:{heading:"Votre aperçu",analyzing:"Préparation de votre aperçuâ¦",seeBelow:"Votre aperçu ci-dessous",progressUploading:"Envoi de votre morceauâ¦",progressAnalyzing:"Mesure du caractère de votre morceauâ¦",progressRendering:"Application du mastering sur 30 secondesâ¦",progressFinalizing:"Finalisation de votre aperçuâ¦",progressAria:"Progression de l'aperçu",labelSource:"Votre mix",labelTeaser:"Aperçu masterisé",qualityNote:"Aperçu approximatif de 30 secondes : ce n'est pas le rendu final. Le master complet, fidèle, est offert à l'écoute après inscription.",ctaFullMaster:"Masteriser le morceau complet gratuitement",errorFallback:"L'aperçu n'a pas pu être préparé. Vous pouvez masteriser le morceau complet gratuitement après inscription.",blockedHint:"Ce fichier ne peut pas être masterisé en l'état, l'aperçu n'a donc pas été rendu. Corrigez le point ci-dessus puis déposez le nouveau fichier."},examples:{heading:"Ãcoutez la différence."},ctaAfterExamples:{heading:"à votre tour.",subheading:"Déposez votre mix. Mastering + écoute gratuits, aucune carte requise."},howItWorks:{heading:"Le mastering, c'est la clôture avant la mise au monde.",subheading:"Plus d'intermédiaires, plus de boucle. Vous repartez avec votre version finale, prête à publier.",steps:[{title:"Confiez-nous votre mix",description:"Un clic, validation instantanée. WAV ou AIFF, 24-bit minimum, vérifiés avant l'envoi."},{title:"Analyse honnête & respectueuse",description:"On regarde votre mix avant de le toucher. Si quelque chose ne se règle pas en mastering, on vous le signale."},{title:`Votre mastering fait pour durer. 339Prêt le temps d'un café.`,description:"Pipeline en haute définition, automatique et conforme aux standards streaming. Environ une à une fois et demie la durée du morceau."},{title:"Ãcoutez & comparez",description:"Version d'écoute MP3 320 filigranée, téléchargeable. Comparez avec votre original."},{title:"Du temps pour choisir",description:"Sept jours d'écoute, sans abonnement, sans pression. Emportez votre mix dans la voiture, dans les écouteurs, sur l'enceinte du salon."},{title:"Achetez selon vos besoins",description:"Achat à l'unité, sans abonnement. Vous repartez avec vos trois formats (WAV 24-bit, WAV 16-bit, MP3 320) et le rapport précis du mastering."}],safeguard:{title:"Privé & Archivé",description:"Archivé sur votre compte, à votre disposition. Personne d'autre n'y accède, pas même nous. Sauf si vous demandez un SAV."}},manifesto:{title:"Pourquoi un seul bouton.",p1:"Faire un album, c'est mille choix. La composition, les prises, le mix, les arrangements. Vous arrivez au mastering épuisé. Et là , on vous propose encore plus de choix : préréglages, niveaux d'intensité, curseurs. Comme si c'était une nouvelle phase de mix.",p2:"Le mastering, ce n'est pas ça. C'est la clôture. Quelqu'un dit : votre mix est prêt, voici la version finale. à vous de la mettre au monde.",p3:"C'est le rôle que les ingénieurs mastering tiennent depuis cinquante ans. C'est le rôle que nous prenons ici. Pas un logiciel de plus, pas un abonnement de plus. Une fin à la boucle."},ethics:{title:"Un moteur construit sans données d'artiste.",p1:"Aucun morceau, aucun mix, aucune Åuvre d'artiste n'a servi à construire notre moteur.",p2:`Ce n'est pas un modèle qui imite ce que les humains ont fait. 340C'est un moteur qui fait ce que le mastering est censé faire.`,p3:"
340Votre musique reste votre musique. Celle des autres aussi.",learnMore:"En savoir plus sur notre approche"},pricing:{heading:"Le mastering, sans mensualités.",subheading:"Pas d'engagement, pas de quotas qui se perdent. Achetez ce dont vous avez besoin, utilisez-le dans les 12 mois. Point.",tokenLabel_one:"master",tokenLabel_other:"masters",perTokenLabel:"{{amount}} / master",popular:"Populaire",buyButton:"Acheter",note:"1 master = 10 minutes d'audio. La quasi-totalité des morceaux tiennent dans un seul master.",cards:{pack_1:{price:"3 â¬",perToken:"3,00 â¬"},pack_5:{price:"12 â¬",perToken:"2,40 â¬",savings:"Ãconomie 3 â¬"},pack_15:{price:"34 â¬",perToken:"2,27 â¬",savings:"Ãconomie 11 â¬"}}}},M6={comingSoon:{chip:"Bientôt disponible",title:"Les exemples avant / après arrivent très prochainement.",body:"Nous finalisons les masters d'exemple. En attendant, vous pouvez déjà tester sur votre propre mix."},carousel:{labelStyle:"Style",genres:{pop:"Pop",hiphop:"Hip-hop",rock:"Rock",electronic:"Ãlectronique"},ownTracks:{track1:"Morceau 1",track2:"Morceau 2",track3:"Morceau 3",track4:"Morceau 4"},overlay:{headline:"Cliquer pour entendre la différence",ariaLabel:"Cliquer pour entendre la différence original / master"},ariaPrevTrack:"Morceau précédent",ariaNextTrack:"Morceau suivant",ariaGoTo:"Aller à {{label}}"}},N6={comingSoon:{chip:"Bientôt disponible",title:"Le test à l'aveugle Lexpi vs autre service de mastering en ligne arrive très prochainement.",body:"Nous finalisons les masters de comparaison. Vous pourrez juger vous-même, sans étiquette, dans quelques jours.",ctaTryMix:"Tester sur mon mix"},tracks:{track1:"Morceau 1",track2:"Morceau 2",track3:"Morceau 3",track4:"Morceau 4",track5:"Morceau 5"},idle:{preTitle:"Le test à l'aveugle",title:"Lexpi face à un service concurrent",subtitle:"5 rounds.",play:"Jouer"},roundPlayer:{roundLabel:"Round {{n}}",roundLabelTotal:"/ {{total}}",introP2:"Sans perte · même volume.",masteringSide:"Mastering {{side}}",loadingBoth:"Préparation des deux versionsâ¦",invitationListen:"Cliquez sur Ãcouter (en bas) pour démarrer la lecture.",ariaNoMastering:"Aucun mastering sélectionné",ariaPauseMastering:"Mettre en pause Mastering {{side}}",ariaListenMastering:"Ãcouter Mastering {{side}}",ariaLoading:"Chargement en cours",sideButton:{loading:"Chargement",pause:"Pause",play:"Ãcouter"},verdictHeading:"Votre verdict",choices:{preferA:"Je préfère A",noPreference:"Aucune préférence",preferB:"Je préfère B"},nextRound:"Passer à {{label}}",seeResult:"Voir le résultat"},finalReveal:{preTitle:"Verdict de votre oreille · {{n}} rounds",serviceLabel:{lexpi:"Lexpi",other:"Autre service"},ptsSuffix:"pts",footerScores:"Mastering A = {{aLabel}} · Mastering B = {{bLabel}}. 1 pt par préférence, 0,5 pt par égalité.",tieCount_one:" {{count}} round à égalité.",tieCount_other:" {{count}} rounds à égalité.",roundChoiceLabel:"Votre choix",closingHeadline:{balanced:"Une oreille équilibrée.",slight:"Préférence légère à votre oreille.",emerging:"Une préférence se dégage à votre oreille.",clear:"Une préférence nette à votre oreille."},closingSubtext:"Le verdict définitif se joue sur votre propre mix.",ctaTryMix:"Tester sur mon mix",restart:"Refaire le test"}},O6={h1:"Le test à l'aveugle du mastering",answer:"On ne vous demande pas de nous croire. Sur le même mix et à volume égal, comparez deux masters sans savoir lequel vient de Lexpi et lequel vient d'un service leader du mastering en ligne. Vous tranchez à l'oreille. La méthode est ouverte et les extraits sont téléchargeables.",testLead:"Cinq morceaux, deux masters chacun. à vous de juger, puis on révèle.",method:{heading:"Comment le test est-il monté ?",points:[{title:"Même mix au départ",body:"Les deux versions d'un même tour partent du même mixage. Vous comparez deux masters, pas deux mixages."},{title:"Volume égal",body:"Chaque paire est calée au même niveau sonore, mesuré sur l'extrait lui-même. Aucune cible de loudness imposée : le plus fort ne l'emporte pas par défaut."},{title:"Qualité préservée",body:"Extraits en FLAC 24 bits sans perte, environ vingt secondes, lus tels quels. Rien n'est ajouté ni retouché à l'écoute."},{title:"à l'aveugle, puis révélé",body:"Pendant le test, les marques sont masquées : Mastering A, Mastering B. L'identité n'apparaît qu'à la fin, avec votre score."}]},preserve:{heading:"Qu'est-ce qu'un master Lexpi préserve ?",points:[{title:"L'énergie",body:"Resserrer l'image stéréo ou corriger une phase ne doit pas faire chuter le volume. Ce qui était là reste là ."},{title:"Le naturel",body:"Le meilleur master est celui qu'on n'entend pas travailler : on retire ce qui gêne, on laisse le reste intact."},{title:"La dynamique",body:"Gagner en volume ne veut pas dire écraser. Le niveau monte sans saturer, dans la limite propre à votre morceau."},{title:"L'adaptation",body:"Chaque mix est différent. Le traitement s'ajuste à ce qu'il y a dans votre morceau, pas à un préréglage unique."},{title:"La clarté",body:"L'air et le détail sont restitués après traitement, pas sacrifiés au nom de la cohérence."}]},transparencyLink:"Notre approche : pourquoi un bon master ne s'entend pas",downloads:{heading:"Puis-je vérifier moi-même ?",lead:"Téléchargez les extraits et comparez-les où vous voulez, dans votre logiciel ou sur votre casque de référence.",trackLabel:"Morceau {{n}}",lexpi:"Master Lexpi",other:"Autre service",ariaLexpi:"Télécharger le master Lexpi du morceau {{n}}",ariaOther:"Télécharger l'autre service du morceau {{n}}"},beforeAfter:{heading:"Du mix au master",lead:"Quatre morceaux, du mix d'entrée au master Lexpi. Mesuré, pas raconté.",caption:"Le niveau monte d'une dizaine de LU jusqu'au niveau de sortie, et la crête vraie est ramenée sous un plafond maîtrisé et constant, quelle que soit la crête du mix. La dynamique reste large (douze à quinze décibels) : on monte le volume sans écraser."},cta:{heading:"Le verdict qui compte, c'est sur votre mix",body:"Le test à l'aveugle vous donne la tendance. La vraie réponse, c'est votre morceau : mastérisé, écouté, et payé seulement s'il vous convainc.",button:"Tester sur mon morceau"},landingLink:"Comment ce test est monté"},D6={h1:"Pourquoi un bon master ne s'entend pas",answer:"Le meilleur master est celui qu'on n'entend pas travailler. Il retire ce qui accroche l'oreille (dureté, sibilance, pompage, flou de phase) sans rien soustraire à l'énergie du morceau. Vous gagnez en clarté, en air et en présence, jamais une version appauvrie. C'est la transparence, et c'est la définition même d'un mastering réussi.",phenomenon:{heading:"Quand le traitement devient inaudible",body:"à mesure qu'un master gagne en justesse, le traitement s'efface : il ne reste que la musique. L'oreille traque les anomalies ; quand il n'y a plus rien à signaler, l'attention se relâche et l'écoute devient évidente. Ce n'est pas un défaut, c'est le but."},twoDisappearances:{heading:"Les deux disparitions à ne pas confondre",lead:"Un son qui « recule » peut venir de deux causes opposées. Toute la maîtrise est là .",good:{title:"La bonne : transparence",points:["Les anomalies sont retirées, l'énergie est conservée, l'air est rendu.","Au casque, en se concentrant, le détail augmente : grain, largeur, transitoires présents.","Une fenêtre nette sur l'enregistrement, sans effort."]}
340,bad:{title:"La mauvaise : stérilité",points:["Sur-correction : l'énergie est soustraite sans être compensée.","Au casque, le détail manque : c'est propre, mais sans vie.","Plat, anémique ; la musique a perdu quelque chose."]},criterion:"Le test simple : montez le volume. Si le détail est tout là et que rien n'accroche, c'est la bonne disparition. Si l'énergie a fui, c'est la mauvaise. Un master Lexpi vise toujours la première."},principles:{heading:"Comment garde-t-on la vie du morceau ?",points:[{title:"L'énergie préservée",body:"Resserrer l'image stéréo ou corriger une phase ne fait pas chuter le volume : ce qui est resserré pour la cohérence est ré-haussé, jamais perdu."},{title:"La dynamique respectée",body:"Monter en niveau n'est pas écraser. Les transitoires et le punch de votre mix restent là , à l'écart de la guerre du volume."},{title:"La cohérence mono et de phase",body:"Le master tient en mono comme en stéréo : pas de zone qui s'effondre selon le système d'écoute."},{title:"L'air restitué",body:"Quand la chaîne resserre, les hautes fréquences et l'air perdus sont rendus, pas remplacés par un éclat artificiel."},{title:"L'adaptation au morceau",body:"Chaque mix est différent. Le traitement s'ajuste à ce qu'il y a dans le vôtre, il ne déroule pas un préréglage unique."}]},measured:{heading:"La maîtrise, en mesures",lead:"Vingt-et-un masters comparés à ceux d'un service leader, sur les mêmes mix. Tout est mesurable sur le fichier de sortie : vous pouvez refaire la mesure.",truePeak:{title:"Une marge constante sous le plafond",caption:"Sur les vingt-et-un titres, notre master garde plus de marge de crête vraie que le service leader (environ 0,4 dB), et la tient constante d'un morceau à l'autre. Lui longe le plafond. Plus de marge, c'est plus de sécurité sur les transcodages du streaming."},loudness:{title:"Le niveau suit le morceau",caption:"Le service leader ramène presque tous les titres autour de -10,5 LUFS. Un master Lexpi va de -7 à -17 LUFS selon ce que le morceau demande. On adapte le niveau à la musique, on ne force pas un volume unique."}},cta:{heading:"La transparence, ça s'entend mieux qu'on ne l'explique",body:"Comparez à l'aveugle, ou mastérisez votre morceau et écoutez avant de payer.",primary:"Tester sur mon morceau",secondary:"Faire le test à l'aveugle"}},j6={lexpi:"Lexpi",competitor:"Service leader",mix:"Mix",master:"Master",axisTp:"Crête vraie (dBTP)",axisLufs:"Niveau intégré (LUFS)",loudnessTitle:"Niveau (LUFS)",truePeakTitle:"Crête vraie (dBTP)"},F6={h1:"à quel niveau masteriser pour le streaming ?",subtitle:"LUFS, normalisation et le mythe du -14",answer:"Il n'existe pas de niveau unique. Les plateformes normalisent toutes le volume à la lecture : Spotify, YouTube et Tidal autour de -14 LUFS, Apple Music à -16. Viser -14 ne fait pas sonner plus fort. La normalisation baisse les masters trop forts, mais elle ne rend jamais la dynamique perdue. Ce qui compte, c'est la dynamique et une crête vraie maîtrisée, pas un chiffre.",normalization:{heading:"Qu'est-ce que la normalisation du volume ?",body:"à la lecture, chaque grande plateforme ramène le volume de tous les titres vers une cible commune. Un master plus fort que la cible est baissé ; un master plus faible est monté. à l'écoute, deux titres arrivent donc au même niveau perçu, quel que soit le LUFS du fichier. Pousser le volume au mastering ne donne aucun avantage de volume sur la plateforme."},table:{heading:"Les cibles, plateforme par plateforme",platform:"Plateforme",target:"Cible (LUFS)",tp:"Crête vraie",rows:[{platform:"Spotify",target:"-14",tp:"-1 dBTP"},{platform:"Apple Music",target:"-16",tp:"-1 dBTP"},{platform:"YouTube",target:"-14",tp:"-1 dBTP"},{platform:"Tidal",target:"-14",tp:"-1 dBTP"},{platform:"Amazon Music",target:"-14",tp:"-2 dBTP"},{platform:"Deezer",target:"-15",tp:"-1 dBTP"},{platform:"SoundCloud, Bandcamp",target:"Pas de normalisation",tp:"-1 dBTP"}],note:"Valeurs de référence à la mi-2026. Un seul bon master, autour de -14 LUFS et sous -1 dBTP de crête vraie, passe correctement partout : plus besoin d'un fichier par plateforme."},myth:{heading:"Faut-il viser -14 LUFS ?",body1:"C'est l'idée reçue la plus tenace. Non : -14 LUFS n'est pas une obligation, et s'y verrouiller affaiblit souvent le son. La normalisation égalise le volume, elle ne restitue pas la dynamique.",body2:"Un master écrasé à -6 LUFS, une fois baissé à -14 par la plateforme, sonnera plus petit qu'un master à -14 LUFS qui a gardé ses transitoires. La normalisation récompense la dynamique, pas le volume du fichier."},level:{heading:"Quel est le bon niveau, alors ?",body:"Celui que le morceau demande. Une pop, un hip-hop ou une musique électronique vivent fort (souvent -7 à -9 LUFS) ; un classique, un jazz ou une ambient ont besoin de respirer (parfois -16 LUFS ou plus bas). Le bon réflexe n'est pas de viser un chiffre, mais de servir la musique et de laisser la normalisation faire le niveau.",link:"Nos mesures : le niveau adapté au morceau"},truePeak:{heading:"Et la crête vraie (true peak) ?",body:"Au-dessus du niveau, il y a le plafond. La crête vraie mesure le signal reconstruit entre les échantillons, là où des pics inter-échantillons peuvent dépasser ce que votre logiciel affiche. Quand la plateforme convertit votre fichier en format compressé (AAC, Ogg, Opus), ces pics peuvent saturer. D'où le standard : rester sous
340-1 dBTP, et sous -2 dBTP pour Amazon. Garder cette marge évite une distorsion que vous n'entendez pas chez vous mais qui apparaît au streaming."},social:{heading:"Et pour les réseaux sociaux ?",body:"TikTok, Reels et Stories n'appliquent pas toujours la même normalisation, et l'écoute se fait souvent sur petit haut-parleur. Un master un peu plus présent (vers -9 à -12 LUFS) peut mieux passer dans ce contexte. Ce n'est pas le même usage que le streaming musical : si c'est un enjeu, prévoyez une version dédiée."},takeaways:{heading:"Ce qu'il faut retenir",points:["Toutes les grandes plateformes normalisent le volume : le plus fort ne gagne pas.","-14 LUFS n'est pas une cible à atteindre, c'est une référence de lecture.","Après normalisation, c'est la dynamique qui fait la différence, pas le volume du fichier.","Masterisez pour le morceau, pas pour un chiffre.","Gardez la crête vraie sous -1 dBTP (-2 pour Amazon) pour éviter la distorsion au streaming.","Un seul bon master suffit pour toutes les plateformes."]},cta:{heading:"Un master fait pour votre morceau",body:"Lexpi adapte le niveau et tient la crête vraie pour vous. Ãcoutez le résultat avant de payer.",primary:"Masteriser mon morceau",secondary:"Comparer à l'aveugle"}},U6={pageError:N8,common:O8,footer:D8,cookieConsent:j8,header:F8,supportBanner:U8,contactPage:z8,statusPage:B8,deletionConfirmPage:$8,accountPage:q8,dashboardPage:W8,tokensPage:H8,transactionHistory:V8,audioValidation:G8,canonicalDropZone:Y8,premasterGuide:K8,uploadPage:J8,libraryPage:Q8,albumsPage:X8,comingSoonToast:Z8,masteringCommentary:e6,support:t6,supportTicketDetailUser:n6,myTicketsPage:r6,supportTicketForm:i6,supportTicketDetail:s6,supportTicketsTab:o6,adminDashboardPage:a6,adminCohortTab:l6,adminCampaignsTab:u6,adminFinopsTab:c6,checkout:d6,appInit:p6,downloadMaster:h6,cgvModal:f6,helpPage:m6,masteringPage:g6,adminCreditMastersModal:v6,adminReasonModal:y6,adminCommon:_6,adminUsersTab:b6,adminAbuseTab:x6,adminDisputeTab:S6,adminJobsTab:w6,adminPreviews:E6,adminAuditLogTab:k6,addTracksModal:C6,adminBlindTestTab:T6,albumEditorPage:P6,audioPlayer:R6,authPage:A6,landingPageV2:I6,landingPage:L6,landingExamples:M6,landingBlind:N6,blindTestPage:O6,transparencePage:D6,measurements:j6,loudnessGuide:F6},z6={message:"The page failed to load. Check your connection, then reload the page.",reload:"Reload the page"},B6={loading:"Loadingâ¦",back:"Back",backHome:"Back to home",close:"Close",cancel:"Cancel",save:"Save",delete:"Delete",edit:"Edit",confirm:"Confirm",yes:"Yes",no:"No",openMenu:"Open menu",closeMenu:"Close menu"},$6={trust:"No subscription · Your mixes stay private · Pay per master",helpPrompt:"Need help?",helpCenter:"Help centre",writeUs:"Write to us",cgv:"Terms",privacy:"Privacy",legal:"Legal",ethics:"Ethics",contact:"Contact",status:"Status",blindTest:"Blind test",transparence:"Transparency",loudnessGuide:"LUFS guide"},q6={title:"Analytics cookies",body:"To measure how the site is used and to fix what doesn't work, we set statistical analytics cookies (Posthog, EU servers) and technical error tracking cookies (Sentry). No advertising cookies, no sharing with commercial third parties. You can change your mind at any time from the Privacy page.",accept:"Accept",decline:"Decline",learnMore:"Learn more"},W6={dashboard:"Dashboard",myTracks:"My tracks",myAlbums:"My albums",myMasters:"My masters",myAccount:"My account",admin:"Admin",signIn:"Sign in",manageSession:"Manage session",balanceAria:"Balance: {{count}} master",balanceAria_other:"Balance: {{count}} masters",balanceLabel:"Balance: {{count}}",adminTitle:"Admin mode",adminAria:"Admin mode: open backoffice"},H6={body:"Support is <strong>automated</strong>: most answers are in the <help>FAQ</help> and in the <account>account self-service</account>.",legalPrefix:"For legal or GDPR enquiries: ",legalSuffix:"(reply within 7 business days)"},V6={title:"Contact",generalTitle:"General support",generalText:"For any question about the service, reach us at:",dsaTitle:"DSA contact point (art. 12)",dsaIntro:"Pursuant to Regulation (EU) 2022/2065 on digital services (Digital Services Act), the single point of contact for Member State authorities, the Commission and the Board is:",emailLabel:"Email:",responseLabel:"Reply time:",response:"7 business days",languageLabel:"Language:",languages:"French, English",gdprTitle:"Personal data (GDPR)",gdprBody:"To exercise your rights (access, rectification, erasure, portability, objection, restriction), open your <account>account area</account> or write to <mail>[email protected]</mail>. For more details, see our <privacy>privacy policy</privacy>.",writeUsCta:"Write to us"},G6={title:"Service status",services:{apiName:"API",apiDesc:"Main server and endpoints",audioName:"Audio processing",audioDesc:"Analysis and mastering",storageName:"Storage",storageDesc:"File upload and download",paymentName:"Payment",paymentDesc:"Credit purchase via Stripe"},allOperational:"All services are operational",someDown:"Some services are unavailable",apiOk:"API operational",checking:"Checkingâ¦",unknownNote:"Services marked as âNot verifiedâ are not tested individually by the healthcheck.",last
340Check:"Last check: {{time}}",incidentTitle:"In case of incident",incidentBefore:"When a service is unavailable, the team is alerted automatically. Confirmed incidents are compensated (free credit) for affected accounts. To report an issue, contact ",incidentEnd:".",badge:{operational:"Operational",degraded:"Degraded",down:"Down",unknown:"Not verified",checking:"Checking"}},Y6={linkInvalid:"Invalid link: no token provided.",invalidOrExpired:"This link is invalid or has expired. Please request deletion again.",genericError:"An error occurred while deleting the account.",deleting:"Deletingâ¦",deletedTitle:"Account deleted",deletedBody:"Your account and all your data have been permanently deleted. A confirmation email has been sent.",errorTitle:"Error"},K6={title:"My account",exportTitle:"Export my data",exportDesc:"Download a copy of all your personal data in JSON (GDPR art. 20).",exportButton:"Export my data",exportError:"Export failed. Please try again.",deleteTitle:"Delete my account",deleteWarnIrreversible:"This action is irreversible",deleteWarnFiles:"All your audio files will be permanently deleted",deleteWarnMasters:"Purchased and unused masters will be lost without refund",deletionSent:"A confirmation email has been sent. Check your inbox.",confirmQuestion:"Are you sure you want to delete your account?",confirmHint:"A confirmation email will be sent to complete the deletion.",confirmButton:"Confirm deletion",deleteButton:"Delete my account",deleteError:"Deletion request failed. Please try again."},J6={greeting:"Hello{{name}}.",greetingPrompt:"Ready to finish a track?",balance:"Balance",balanceUnit_one:"master",balanceUnit_other:"masters",buy:"Buy â",activeFiles:"Active files",freeCap:"1 max",paidCap:"{{count}} master capacity",paidCap_other:"{{count}} masters capacity",library:"Library",viewMasters:"View my masters â",masterCta:"Master",uploadHint:"WAV or AIFF, 24-bit minimum, 44.1/48 kHz",inProgress:"Files in progress",fileCost_one:"{{count}} master",fileCost_other:"{{count}} masters",status:{uploading:"Uploadingâ¦",validating:"Validatingâ¦",analyzing:"Analysingâ¦",analyzed:"Analysed",mastering:"Masteringâ¦",completed:"Ready",failed:"Error"}},Q6={title:"Masters",subtitle:"Buy masters to download your tracks.",paymentSuccess:"Payment successful! Your masters will be credited within seconds.",paymentCancelled:"Payment cancelled. No amount was charged.",balanceUnit_one:"master available",balanceUnit_other:"masters available",expiring_one:"{{count}} master expires on {{date}}",expiring_other:"{{count}} masters expire on {{date}}",buyTitle:"Buy masters",buySubtitle:"1 master = 10 minutes of audio. Valid for 12 months. FIFO consumption.",pricePerMaster:"â¬{{price}} / master",buyButton:"Buy",packUnit_one:"master",packUnit_other:"masters",infoTitle:"How do masters work?",info1:"1 master = 10 minutes of audio.",info1Suffix:" A 12-minute track costs 2 masters.",info2Pre:"Masters are ",info2Strong:"valid for 12 months",info2Suf:" from the purchase date.",info3Pre:"Consumption is ",info3Strong:"FIFO",info3Suf:": the oldest masters are used first.",info4Pre:"Mastering and the preview are ",info4Strong:"free",info4Suf:". A master is consumed only when downloading.",info5Strong:"1 master unlocks every format",info5Suf:" (24-bit WAV, 16-bit WAV, 320 kbps MP3).",info6:"You are notified before expiry (30 days, 7 days, 24 h).",notAuthenticated:"Not authenticated"},X6={title:"Transaction history",emptyTitle:"History",emptyDesc:"No transaction yet.",types:{credit:"Purchase",debit:"Download",revocation:"Revocation",dispute:"Dispute"},amountUnit_one:"{{count}} master",amountUnit_other:"{{count}} masters",page:"{{page}} / {{total}}",notAuthenticated:"Not authenticated"},Z6={INVALID_FORMAT:{message:"Unsupported format. Only WAV and AIFF files are accepted.",action:"Export your mix as WAV or AIFF from your DAW."},INVALID_HEADER:{message:"The file is not a valid WAV or AIFF file.",action:"Export your mix as WAV PCM or AIFF from your DAW (not MP3, FLAC, OGG, etc.)."},LOW_BIT_DEPTH:{message:"Resolution too low ({{bitDepth}}-bit). Minimum required is 24-bit.",action:"Re-export your mix at 24-bit or above from your DAW."},UNSUPPORTED_SAMPLE_RATE:{message:"Unsupported sample rate ({{sampleRate}} Hz). Only 44.1 kHz and 48 kHz are accepted.",action:"Re-export your mix at 44.1 kHz or 48 kHz. Use your session's native sample rate."},TOO_LONG:{message:"Duration too long ({{duration}}). Maximum allowed: 30 minutes.",action:"Split your file into segments shorter than 30 minutes."},TOO_SHORT:{message:"File too short ({{duration}}). Minimum required: 30 seconds.",action:"Upload a file of at least 30 seconds."},INVALID_CHANNELS:{message:"Unsupported channel count ({{channels}}). Only mono and stereo are accepted.",action:"Export your mix as mono (1 channel) or interleaved stereo (2 channels)."},PARSE_ERROR:{message:"Could not read the file header. The file may be corrupted.",action:"Re-export your mix from your DAW. If the issue persists, try another format (WAV or AIFF)."}},e7={invitationTitle:"Drop your mix. Get your master.",invitationFormat:"WAV or AIFF · 24-bit · 44.1 / 48 kHz",validating:"Validatingâ¦",valid_one:"Valid file · {{count}} master",valid_other:"Valid file · {{count}} masters",fileMetaStereo:"Stereo",fileMetaMono:"Mono",changeFile:"Change file",tryAnother:"Try another file",freeLabel:"Free mastering + preview."},t7={title:"3 things that really matter",footer:"A good premaster makes a better master. The tool optimises what you give it.",rules:[{title:"Coherent phase",detail:"Check your mix in mono. If bass disappears, vocals recede, or an instrument vanishes, it's a phase issue that will survive mastering."},{title:"Believable tonal balance",detail:"Compare with 2-3 professional tracks in the same genre. No need to be identical, just in the same world. A mix clearly darker, brighter or hollower than them will stay that way after mastering."}
340,{title:"Not crushed",detail:"Keep dynamics. No bus limiter, moderate bus compressor (1-2 dB of reduction max). Mastering decides how far to push each track without damaging it; an already-crushed input prevents that choice."}]},n7={title:"Master",subtitle:"Drop one or several mixes for automatic analysis and mastering.",paymentSuccess:"Payment successful! Your masters will be credited within a few seconds. Drop your files to master them.",freeCapReached:"You already have an active file. Finish it or abandon it before uploading a new one.",paidCapReached:"Active file limit reached. Download or abandon existing files.",uploadProgress:"Uploading⦠{{percent}}%",uploadButton:"Upload and master",uploadError:"Upload failed",notAuthenticated:"Not authenticated",insufficient_one:"Insufficient balance for this file. Cost: {{cost}} master, remaining capacity: {{remaining}} master.",insufficient_other:"Insufficient balance for this file. Cost: {{cost}} masters, remaining capacity: {{remaining}} masters.",uploadFailed:"Upload failed: {{status}}",networkError:"Network error during upload",discoveryNote:"In discovery mode, one track at a time. Add credits to master a whole album at once.",discoveryTrimmed:"Discovery mode: only the first track was kept.",creditPending:"Your masters are being credited. Drop your album; launching unlocks as soon as they arrive.",creditPendingShort:"Creditingâ¦",queueHeading:"To master",queueItemCost_one:"{{count}} master",queueItemCost_other:"{{count}} masters",itemValidating:"Validatingâ¦",itemUploading:"Uploading⦠{{percent}}%",itemDone:"Uploaded",itemError:"Upload failed",itemInvalid:"File not supported",blockOverCap:"Beyond the limit of {{max}} active tracks",blockOverBudget:"Exceeds your available balance",batchSummary:"{{accepted}} of {{total}} track(s) ready to master",batchUploading:"Uploading tracksâ¦",batchAllFailed:"No track could be uploaded. Please try again.",launchButton_one:"Start mastering ({{cost}} master)",launchButton_other:"Start mastering ({{cost}} masters)",removeItem:"Remove"},r7={title:"Library",subtitle:"All your paid masters, ready to be re-downloaded.",masterCta:"Master a track",searchPlaceholder:"Search a trackâ¦",sortRecent:"Most recent",sortName:"Name A-Z",sortDuration:"Duration",emptyTitle:"No master in your library yet.",emptyHint:"Your paid masters will appear here.",preserveSilence:"Preserve original silences",viewReport:"View report",report:"Report",probeReport:"Probe Report",probeReportPng:"Probe Report (PNG)",no
340Report:"Report not available for this master.",download:"Download",notAuthenticated:"Not authenticated"},i7={title:"Albums",subtitle:"Group your masters for a consistent volume on Spotify and elsewhere.",create:"Create an album",emptyTitle:"You don't have any album yet.",emptyHint:"Create one to align the volume of multiple tracks.",trackCount_one:"{{count}} track",trackCount_other:"{{count}} tracks",empty:"empty",newAlbum:"New album",newAlbumHint:"You can add tracks and adjust cohesion afterwards.",fieldTitle:"Album title",fieldArtist:"Artist",fieldYear:"Year",placeholderTitle:"My album",placeholderArtist:"Lex Pi",placeholderYear:"2026",createError:"Creation failed. Please try again.",createSubmit:"Create",notAuthenticated:"Not authenticated"},s7={message:"Features unlock in summer 2026. Until then, you can request a demo at [email protected]."},o7={preparing:"Setting up the masteringâ¦",progressAria:"Mastering progress",bank:{opening:{saturated:["Your mix already has density, it holds up well. We can push it without breaking it.","It's dense and locked in, your mix is happy to take some juice."],fragile:["Your mix is clean and open, with transients that matter. We're going in with a light hand.","Lots of breath in this mix. We'll work gently so we don't crush it."],moderate:["Balanced mix, neither too dense nor too open. We'll dose it carefully to keep that balance.","Solid foundation overall. We'll adjust without shaking things up."],neutral:["Conventional mix in its build, measured treatment.","Nothing extreme to flag, we're going with a standard approach."]},prep:{default:["We're prepping the signal before we dive into the real work.","Quick technical cleanup before we get into the meat of it."],trim:["We're trimming the silence at the head and tail, just what's needed.","Tightening up the dead air hanging at the edges."]},polarity:{clean:["Polarity is correct, the channels are properly in phase.","Nothing flipped on the polarity side, we're keeping it as is."],corrected:["One channel was polarity-inverted, we're flipping it back to recenter the image.","We're correcting a polarity inversion, it'll tighten up the center of the mix."]},dynamics:{bypass:["The dynamics are already well in check, we're leaving it as is.","Your mix is already tight on the dynamics side, hands off."],gentle:["Letting it breathe. Your transients are too good to crush.","Very light compression, preserving what makes the mix come alive."],dense:["We'll glue it a bit more, your mix can take it.","Squeezing harder, the dynamics handle the pressure well."],standard:["A touch of glue on the dynamics, nothing harsh.","Measured compression, just enough to tie it all together."]},bass:{skip:["The low end is already in place, we'll skip it.","The bass holds up, nothing to add."],gentle:["Light touch on the low end, just enough to anchor without overloading.","Subtly underlining the bottom, the texture is too fine for more."],strong:["Thickening up the low end, the foundation deserves it.","Giving body to the bottom of the spectrum, your mix can take it."],standard:["A small nudge on the low end to set the foundation.","Fine-tuning the anchor in the low frequencies."]},tone:{skip:["The tonal balance is clean, nothing to fix.","Spectral balance is already good, we're not stepping in."],mild:["Your spectrum leans a little, we'll gently rebalance it toward a more natural profile.","Slight tonal imbalance, we'll straighten it without forcing."],strong:["There's a real tonal imbalance, we'll correct it without flattening everything.","The spectrum needs reshaping, we're applying a more pronounced correction."],damped_fragile:["Gentle correction, your mix is fragile and we don't want to break the texture.","Rebalancing with restraint to respect the openness of the mix."]},resonances:{skip:["The top end is already clean, no resonances or sibilance to tame.","The highs already sit smooth, we'll skip this step."],subtle:["Subtle touch on the resonances and sibilance, we're keeping the texture.","Lightly smoothing the peaks and biting highs that could get in the way."],strong:["We're smoothing the resonances that snag and taming the sibilance that stings, it'll stay clean even loud.","The resonant peaks and harsh sibilance are tamed, the top end can breathe."]},warmth:{skip:["No added saturation, your mix already has its share.","We're leaving the color as is, it has what it needs."],subtle:["Very subtle touch of warmth, just enough to dress it up.","A very light analog veil to soften without saturating."],standard:["A bit of analog warmth, your mix takes it well.","Laying down a layer of warmth to add some grain."]},stereo:{vocal:["We're adjusting the stereo image around the center, your vocal needs to stay planted up front.","Sculpting the width without moving the center, the vocal stays well anchored."],instrumental:["A bit more width on the mids, no vocal to keep locked at the center.","We're opening up the stereo image, the instrumental mix can spread out."],tight:["We're tightening the low end in stereo so the image doesn't scatter.","Mono focus in the low end, stereo widens only higher up."],standard:["We're adjusting the stereo image band by band.","Working the width so every frequency sits where it should."]},phase:{clean:["Phase is clean throughout, nothing to fix.","No trouble spots in phase, we're leaving it as is."],fixed:["A few spots where the phase was collapsing, we narrow the stereo right there.","We spotted some phase glitches, we're smoothing them out surgically."]},air:{gentle:["Giving a bit of air back to the highs the limiter pressed down.","A little sparkle on the top end to keep the brilliance."],restore:["The limiter ate into the top end, we're reopening it to bring the air back.","Restoring the brilliance lost in limiting, the top breathes again."]}
340,loudness:{hard:["We're pushing the level, your mix holds a firm ceiling without flinching.","Firm limiting, the signal is robust enough to take it."],soft:["We're bringing up the level gently, the ceiling stays soft so nothing gets crushed.","Careful level push, we're protecting what gives the mix its pulse."],standard:["Bringing the level where it needs to be, without losing clarity.","Limiting the signal so it hits loud without saturating."]},final:{default:["Final pass, we're setting the peak level so it plays well on every system.","Final peak alignment so your master holds up everywhere."]}}},a7={categoryLabels:{billing:"Billing",technical:"Technical",audio_quality:"Audio quality",account:"Account",legal:"Legal",other:"Other"},statusLabels:{open:"Open",in_progress:"In progress",waiting_user:"Waiting for customer",resolved:"Resolved",closed:"Closed"},aiNotice:"You are chatting with an automated assistant. A human advisor can take over at any time."},l7={back:"Back to my requests",header:"{{category}} · created on {{date}}",attachmentTitle:"Attached screenshot",reportedTracks_one:"{{count}} affected track",reportedTracks_other:"{{count}} affected tracks",noDuration:"â",speakerYou:"You",speakerSupport:"Lexpi support",replyHint:"To follow up on this request, reply to the email you received: a human advisor will take over.",authRequired:"Authentication required",ticketIdMissing:"Missing request identifier",ticketNotFound:"Request not found"},u7={backToHelp:"Back to help centre",title:"My requests",subtitle:"Track the tickets you sent to supp
340ort.",loadError:"Loading error: {{message}}",empty:"You haven't created any request yet.",createdOn:"created on {{date}}",attachment:"1 attachment",linkedTracks_one:"{{count}} linked track",linkedTracks_other:"{{count}} linked tracks",authRequired:"Authentication required"},c7={successTitle:"Ticket sent",successBody:"We received your request and will reply within 7 business days. An acknowledgement has just been sent to your email address.",sendAnother:"Send another message",subject:"Subject",subjectPlaceholder:"E.g.: Download problem",category:"Category",body:"Describe your problem",bodyPlaceholder:"The more context you give (master reference, exact error message, browser), the faster we can help.",bodyCharCount:"{{count}}/10000 characters (min. 10)",screenshot:"Screenshot (optional)",screenshotPreview:"Screenshot preview",screenshotRemove:"Remove screenshot",screenshotJoin:"Attach an image (JPG/PNG, 2 MB max)",imageFormatError:"Unsupported format. Use JPG or PNG.",imageTooLarge:"Image too large ({{size}}). Maximum: 2 MB.",tracksTitle:"Affected tracks (optional)",tracksHint:"Select the masters concerned from your library.",noLibrary:"You don't have any master in your library yet.",trackMax:"Maximum {{count}} tracks",trackSearch:"Search a master...",trackRemove:"Remove {{name}}",submitError:"Error: {{message}}",send:"Send",authRequired:"Authentication required",bytes:"{{size}} B",kilobytes:"{{size}} KB",megabytes:"{{size}} MB"},d7={backToBackoffice:"Backoffice",ticketNotFound:"Ticket not found",authRequired:"Authentication required",ticketIdMissing:"Ticket id missing",authIdMissing:"Auth/id missing",header:"{{category}}
340 · {{email}} · created on {{date}}",attachmentTitle:"Attached screenshot",attachmentAlt:"Open screenshot full size",reportedTracks_one:"Reported track ({{count}})",reportedTracks_other:"Reported tracks ({{count}})",noDuration:"-",speakerClient:"Customer",speakerAdmin:"Admin",reply:"Reply",replyPlaceholder:"Your reply...",markResolved:"Mark as resolved",sendReply:"Send reply",replyError:"Error: {{message}}",adminNotes:"Admin notes",status:"Status",actions:"Actions",refundCta:"Refund masters",refundTitle:"Refund masters",refundDisabled:"Action unavailable (ticket without user)",source:"Source:",updatedAt:"Updated:",refundTokensLabel:"Number of masters",refundReasonLabel:"Reason (visible in the transaction)",refundReasonPlaceholder:"E.g.: Master failed due to output clipping.",refundError:"Error: {{message}}",refundConfirm:"Refund",agent:{title:"Agent activity",empty:"The agent has not processed this ticket yet.",confidence:"Confidence",tokens:"Tokens",authProfile:"Auth profile",attempts:"Attempts",completedAt:"Completed at",error:"Error",shadowDraft:"Draft (shadow mode)",shadowDraftHint:"Reply the agent would have sent â blocked because sending is disabled.",statusLabels:{pending:"Pending",processing:"Processing",completed:"Reply sent",failed:"Failed",escalated:"Escalated to human",deferred_human:"Deferred to human"},confidenceLabels:{high:"high",medium:"medium",low:"low"}}},p7={allStatuses:"All statuses",allPriorities:"All priorities",priorityNormal:"Normal",priorityHigh:"High",allCategories:"All categories",searchPlaceholder:"Search subject or email",loadError:"Loading error: {{message}}",empty:"No ticket.",colDate:"Date",colSubject:"Subject",colEmail:"Email",colCategory:"Category",colStatus:"Status",colPriority:"Prio",colMessages:"Msg",prioHigh:"high",prioNorm:"norm",prev:"Prev.",next:"Next",page:"Page {{page}}",authRequired:"Authentication required"},h7={title:"Backoffice",tabs:{tickets:"Support",jobs:"Jobs",users:"Users",audit:"Audit log",abuse:"Abuse",dispute:"Disputes",blindtest:"Blind test",cessions:"Cessions",finops:"Finops",cohorts:"Cohorts",campaigns:"Campaigns"}},f7={title:"Conversion by cohort",subtitle:"People sign up, then deposit later. Read this by signup cohort over time, not on day one: the colour shows how long they took to deposit.",heroMedianDeposit:"Median time to first deposit",kpiSignups:"Signups",kpiDepositRate:"Deposited",kpiPurchaseRate:"Purchased",days_one:"{{count}}d",days_other:"{{count}}d",weekOf:"wk of",signupsCount_one:"{{count}} signup",signupsCount_other:"{{count}} signups",milestone:{deposit:"Deposit",master:"Master",purchase:"Purchase"},bucket:{day:"Day",week:"Week",month:"Month"},empty:"No signups in this range yet. Cohorts will appear here as soon as the first accounts are created.",legendRipening:"Ripening",ripeningBadge:"ripening",barAria:"{{rate}} of this cohort reached the {{milestone}} step",bandTip:"{{count}} within {{days}}d",tailTip:"Converted beyond {{days}}d",ripeningTip:"Cohort too recent: these accounts may still deposit. Rate not final.",lostTip:"Not converted yet",footnote:'A window is flagged "ripening" until the cohort is {{max}} days old: its rate is only partial and will still climb.',incompleteUploads_one:"{{count}} upload never finished (started, never completed). Excluded from deposits. If this climbs, uploads are leaking.",incompleteUploads_other:"{{count}} uploads never finished (started, never completed). Excluded from deposits. If this climbs, uploads are leaking.",campaignsActive:"Campaigns running in this period: {{names}}"},m7={title:"Campaign log",subtitle:"Record what you launched: ad, channel, dates, budget, creative. Everything maps back to signup cohorts by date, with no cookie or tracker. Budget feeds the cost-per-customer (CAC) later.",new:"New campaign",empty:"No campaigns yet. Create one to keep track of what you launch and see it appear on the cohorts.",ongoing:"ongoing",planEyebrow:"Campaign",flightAria:"{{name}}, {{channel}}, {{from}} to {{to}}",now:"today",creative:"Creative",noBudget:"no budget set",durationDays_one:"{{count}} day live",durationDays_other:"{{count}} days live",edit:"Edit",delete:"Delete",confirmDelete:'Delete campaign "{{name}}" and all its creative?',addAsset:"Add a file",openAsset:"Open file",deleteAsset:"Remove this file",confirmDeleteAsset:"Remove this file?",assetTooBig:"File too large (50 MB max).",fieldName:"Name",namePlaceholder:'e.g. Purple Insta story, Google Ads "online mastering"',fieldChannel:"Channel",fieldBudget:"Amount spent",fieldStart:"Start",fieldEnd:"End (empty = ongoing)",fieldNotes:"Description / notes",notesPlaceholder:"What you lau
340nched, the audience, the hook, observationsâ¦",requiredFields:"Name and start date are required.",badBudget:"Invalid budget.",cancel:"Cancel",create:"Create",save:"Save",channel:{meta:"Meta / Instagram",google:"Google Ads",seo:"SEO",organic:"Organic",email:"Email",other:"Other"}},g7={fiscal:{title:"Fiscal",tvaBadge:"VAT threshold â¬{{threshold}}",microBadge:"Micro cap â¬{{threshold}}",caYtd:"Revenue YTD",caRolling12m:"Revenue 12m",stripePending:"Stripe cache missing. Trigger a refresh to populate the fiscal banner.",projTvaFranchise:"VAT franchise crossing",projTvaTolerance:"VAT tolerance crossing",projMicro:"Micro cap crossing",projMonths:"â {{months}} months at current pace",projAlreadyCrossed:"Threshold crossed"},kpi:{tco:"Monthly TCO",tcoHint:"Manual entries + AWS + Google Ads",revenue:"Net revenue",revenueHint:"Stripe gross â fees",margin:"Net margin",marginHint:"Revenue â URSSAF {{urssaf}}% â TCO",ratio:"Free / paid ratio",ratioHint:"Green ⤠10, orange 10-14, red > 14"},sparkline:{title:"Last 6 months",legendTco:"TCO",legendRevenue:"Net revenue"},services:{title:"Services and sources",tcoTotal:"TCO total: {{amount}}",colService:"Service",colAmount:"Amount",colSource:"Source",colLastUpdate:"Last update",colActions:"Actions",edit:"Edit",add:"Add",notSet:"not set",refresh:"Refresh",force:"Force",awsForceWarning:"Forcing AWS Cost Explorer refresh bills $0.01 immediately. Continue?",staleBadge:"stale",staleHint:"Value entered more than 90 days ago without reconfirmation"},internal:{title:"Internal metrics this month",nbMast:"Completed masterings",nbHd:"HD sold",avgDuration:"Avg duration",totalAudio:"Total audio mastered",costPerMin:"Cost/min audio",costPerTrack:"Cost/track 3 min",refTrack:"Catalogue reference",rtf:"Real-time factor",usdEur:"USD/EUR rate"},refreshAll:{title:"Combined refresh",hint:"Stripe (monthly + YTD + 12m) + AWS Cost Explorer + Google Ads in one call. Respects DB TTLs unless Force is set.",forceLabel:"Force (bypass TTL)",forceConfirm:"Force bypasses the AWS 24h TTL and bills $0.01. Continue?",button:"Run refresh",resultPrefix:"Last result:"},consoles:{title:"External consoles",hint:"Detailed billing and usage to consult directly at the provider.",stripe:"Stripe Payments",aws:"AWS Cost Management",googleAds:"Google Ads",modal:"Modal Billing",anthropic:"Anthropic Usage",posthog:"Posthog (funnel)"},entryModal:{title:"Entry {{service}}",currentValue:"Current value: â¬{{amount}}",lastVerified:"verified {{date}}",updatedBy:"by {{actor}}",amountLabel:"Monthly amount in EUR",amountInvalid:"Invalid amount: must be a number ⥠0",noteLabel:"Note (optional)",notePlaceholder:"Eg. dev plan, pro upgrade since 2026-04-01, etc.",save:"Save",reconfirm:"Still up to date (touch last_verified_at)",reconfirmHint:"Confirms the value without changing it. Resets the stale badge.",cancel:"Cancel"}},v7={purchaseError:"Purchase failed. Please try again.",cgvVersionLabel:"Version {{version}}"},y7={profileLoadError:"Could not load profile. Please refresh the page."},_7={retry:"Credit hasn't arrived yet, retry",resumeDownloading:"Credits received, downloadingâ¦",downloadingState:"Downloadingâ¦",redirectingPayment:"Redirecting to paymentâ¦",download_one:"Download master ({{count}} master)",download_other:"Download master ({{count}} masters)",confirm_one:"Confirm unlock ({{count}} master)",confirm_other:"Confirm unlock ({{count}} masters)",remainingAfter_one:"You will have {{count}} master left after this unlock.",remainingAfter_other:"You will have {{count}} masters left after this unlock.",cancel:"Cancel",unlock:"Unlock this master - {{price}}",downloadFallback:"Download master",notAuthenticated:"Not authenticated"},b7={title:"Terms of Sale",checkboxBefore:"I have read the ",checkboxLink:"Terms of Sale",checkboxAfter:" and I accept that my masters become usable immediately. A downloaded master is no longer refundable.",article:"(art. L.221-28)",cancel:"Cancel",confirm:"Confirm"},x7={title:"Help centre",intro:"Find answers to the most common questions. If you cannot find what you need, contact us at ",introSuffix:".",notFoundTitle:"Can't find your answer?",signedInIntroBefore:"Send us a message. You can follow the reply from ",myTickets:"my requests",signedInIntroAfter:". Reply time: 7 business days.",signedOutBefore:"Contact our support at ",signedOutMiddle:". For legal or GDPR enquiries, write to ",signedOutEnd:". Reply time: 7 business days.",search:{placeholder:"Search the help centreâ¦",clear:"Clear search",results_one:"{{count}} answer for â{{query}}â",results_other:"{{count}} answers for â{{query}}â",noResults:"No results for â{{query}}â. Try different words or contact support below."},categories:{firstSteps:"First steps",pricing:"Pricing and credits",audioQuality:"Audio quality and premaster",accountData:"Account and data",billing:"Payment and billing",usage:"Usage and limits",refund:"Refunds and rights"},faq:{firstSteps:[{q:"What is the difference between mix and master?",a:"Mixing balances tracks and effects within a song. Mastering optimises the final mix for distribution: level, overall tone, dynamics and consistency. lexpi processes an already-mixed stereo file. It is not a mixing tool."},{q:"Which formats can I upload?",a:"WAV or AIFF, 24-bit minimum, at 44.1 kHz or 48 kHz. The file must be between 30 seconds and 30 minutes long. Mono and stereo are both accepted."},{q:"Why 24-bit minimum?",a:"24-bit preserves the dynamic headroom required by the processing. A 16-bit file has already been reduced and may produce artefacts during mastering."},{q:"My file was rejected. What should I check?",a:"Check that the file is WAV or AIFF, 24-bit or above, at 44.1 kHz or 48 kHz, between 30 seconds and 30 minutes. Make sure the export is stereo interleaved and that the file is not corrupted. The upload screen tells you the exact reason."}],pricing:[{q:"How much does one track cost?",a:"1 credit covers 10 minutes of audio. Any started 10-minute slot is due in full. For example, a 4-minute track costs 1 credit; a 12-minute track costs 2."},{q:"Can I listen for free?",a:"Yes. Analysis and the compressed A/B preview are free. You only pay to download the lossless files (24-bit WAV, 16-bit WAV, 320 kbps MP3)."},{q:"When do my credits expire?",a:"Credits are valid for 12 months from the purchase date. The expiration date is shown on your Tokens page. You will receive an email notification before they expire."},{q:"Can I extend the validity of my credits?",a:"Credits cannot currently be extended. Please use them within 12 months of purchase."}],audioQuality:[{q:"Are the MP3 preview and the final WAV different?",a:"They come from the same processing. The preview is encoded as MP3, which may slightly change perception. The final WAV is the lossless, uncompressed result."},{q:"Why does it saturate or clip?",a:"Clipping is most often already present in the mix. Common causes: limiter too aggressive on the master bus, gain too high. Solution: bring the master fader down a few dB, remove the limiter from the master bus, and re-export."},{q:"Should I remove the limiter from my master bus?",a:"Yes. For an optimal premaster, remove the limiter (and ideally the compressor) from the master bus. Aim for headroom: a signal peaking between -6 and -3 dBTP. Mastering takes care of the rest."},{q:"Does the service fix a bad mix?",a:"No. Mastering optimises a correct mix for distribution. An unbalanced mix (too much bass, bur
340ied vocals, mis-panned instruments) will stay unbalanced. Fix your mix first."},{q:"What if I get a âfile already masteredâ warning?",a:"It means your file's dynamics are very limited (Dynamic Range < 8 dB, LUFS > -14). Processing will have little headroom and may be more aggressive than intended. Export a premaster without a limiter for a better result."},{q:"How do I avoid artefacts?",a:"Export a clean premaster: no clipping, headroom (-6 to -3 dBTP), no unnecessary dither, no destructive normalisation, no exotic sample-rate conversion. See the premaster guide on the upload page."},{q:"Is the 16-bit WAV dithered?",a:"Yes. The 16-bit master is exported with triangular dither (TPDF) applied to the 24â16-bit conversion. You can use it as-is for CD burning or distribution."},{q:"The output sounds too loud or crushed.",a:"If the master sounds crushed, your mix is probably already very compressed. Re-export a mix with more dynamics (remove the limiter from the master bus). Mastering handles the final level."},{q:"The output lacks bass or highs.",a:"Mastering respects the tonal balance of your mix. If the result lacks bass or highs, the issue most likely comes from the mix. Check your mix on several listening systems before re-exporting."}],accountData:[{q:"Does the service use my files to train a model?",a:"No, never. Your files are processed only to produce your master. They are neither shared nor used for training. See our Ethics page for details."},{q:"How long do you keep my files?",a:"Previews are kept for 7 days. Paid masters remain available while your account is active. Uploaded and abandoned files are purged within 24 hours. All retention periods are detailed in our privacy policy."},{q:"Can I delete my data and my account?",a:"Yes. Open your Account page to export your data (JSON) or request account deletion. Deletion erases all your audio files (S3), your database records and your Clerk account. A confirmation email is sent."},{q:"Can I export my data?",a:"Yes. From your Account page, you can export your profile, transaction history, consents and files as JSON."}],billing:[{q:"Why is my card declined?",a:"Common causes: 3D Secure authentication failed, bank limit reached, card not compatible with online payments. Try again or use another payment method."},{q:"I was charged twice.",a:"Check your transaction history on the Tokens page. If a duplicate is confirmed, contact [email protected] with the transaction reference."},{q:"Can I re-download a master I already paid for?",a:"Yes. Re-downloading a paid master is unlimited and free. Find your masters in the Library."}],usage:[{q:"Why only one active file in free mode?",a:"In discovery mode (0 credit), you can analyse and listen to one file at a time. This guarantees server capacity and prevents abuse. Buy credits to process several files in parallel."},{q:"Can I upload a whole album?",a:"Yes, track by track. Each file is processed independently. With enough credits, you can have up to 10 files active in parallel."},{q:"Why are some files rejected?",a:"A file is rejected when it doesn't meet the technical criteria: format (WAV/AIFF only), resolution (24-bit minimum), sample rate (44.1/48 kHz), duration (30s-30min), or when it is detected as silent or severely clipped. The upload screen explains the reason and how to fix it."},{q:"The final file is truncated.",a:"Check that your source file is not corrupted and that the export is complete (no cut at the end of the song). Re-upload the file."}],refund:[{q:"Can I get a refund?",a:"In case of a verified billing error: yes. In case of aesthetic disappointment: no. Mastering is an automated technical process. The result depends on the mix provided. See our Terms (art. 6 and 7) for the full policy."},{q:"Who owns the rights to the master?",a:"You keep full rights to your music. lexpi claims no right over uploaded files or generated masters. See our Terms (art. 8)."}]}},S7={backToDashboard:"Back to dashboard",masterUnit_one:"master",masterUnit_other:"masters",analysisTitle:"Mix analysis",analysisLoading:"Analysingâ¦",anal
340ysisLoadingWithProgress:"Analysing⦠{{progress}}%",rejectedNotice:"This file cannot be mastered as it is.",retryWithCorrected:"Try again with a corrected file",abandonFile:"Abandon this file",abListenTitle:"A/B comparison",lufsModeAnalytical:"Analytical mode: perceived loudness matched, honest evaluation of tonal and spectral work.",lufsModePublication:"Publication mode: the master sounds louder, the way it will be heard on streaming platforms.",downloadPreviewCta:"Download MP3 preview · Free",preserveSilences:"Keep the original silences",masterUnlocked:"Master unlocked!",whatNext:"What next?",masterAnother:"Master another track",viewLibrary:"View my library",downloadError:"Download failed. Please try again.",formatDownloadError:"Download failed. Please try again.",nominalMix:"Your mix is ready for mastering, everything looks good.",notAuthenticated:"Not authenticated",abandonModal:{title:"Abandon this file?",message:"The file will be removed from your active list. This action is permanent.",confirm:"Abandon",cancel:"Cancel"},stepLabels:{download:"Downloadingâ¦",lufs_true_peak:"Loudness & True Peak",stereo_phase:"Stereo & Phase",spectral:"Spectral analysis",detection:"Anomaly detection"},statusLine:{uploading:"Uploadingâ¦",validating:"Validatingâ¦",analyzingDefault:"Analysingâ¦",analyzingWithProgress:"Analysing⦠{{progress}}%",analyzingWithStep:"Analysing · {{step}} {{progress}}%",ready:"Ready",error:"Error"},countdown:{expired:"Expired",days_one:"{{count}} day left",days_other:"{{count}} days left",hoursMinutes:"{{hours}}h {{minutes}}m left"},previewModal:{title:"MP3 preview",body:"This watermarked MP3 file is yours. Listen everywhere: in the car, on your phone, with headphones⦠You have 7 days to decide if the result suits you and to buy the high-definition master.",countdownSuffix:"before deletion",download:"Download",cancel:"Cancel"}},w7={title:"Credit masters",closeAria:"Close",forUser:"For",balanceLoading:"Loading balanceâ¦",balanceCurrent:"Current balance",balanceAfter:"After credit",balanceUnavailable:"Balance unavailable",tokensLabel:"Number of masters (1 - {{max}})",reasonLabel:"Reason (⥠3 characters)",reasonPlaceholder:"e.g.: goodwill gesture after the 27/04 export bugâ¦",reasonHint:"Recorded in the transaction and visible in the user log.",notifyLabel:"Notify the user by email",notifyHint:"Uncheck for a silent adjustment (test, internal fix).",confirmTitle:"Confirm credit",confirmBody_one:"You are about to credit <strong>{{count}} master</strong> to <email>{{email}}</email>.",confirmBody_other:"You are about to credit <strong>{{count}} masters</strong> to <email>{{email}}</email>.",emailSent:"An email will be sent to them.",immediateNotice:"This action is immediate and logged.",back:"Back",cancel:"Cancel",confirmCta:"Confirm credit",creditCta_one:"Credit {{count}} master",creditCta_other:"Credit {{count}} masters"},E7={reasonPlaceholder:"Reason (min. 3 characters)â¦"},k7={prev:"Prev.",next:"Next",page:"Page {{page}}",loadError:"Loading error: {{message}}",mutationError:"Error: {{message}}"},C7={filterAllRoles:"All roles",empty:"No user found.",colEmail:"Email",colRole:"Role",colFirstName:"First name",colLastName:"Last name",colCreatedAt:"Created on",colActions:"Actions",promote:"Promote",demote:"Demote",credit:"Credit",promoteModalTitle:"Promote to ADMIN",demoteModalTitle:"Demote to MEMBER",flashAlreadyCredited_one:"Credit already applied (idempotent) · balance: {{count}} master.",flashAlreadyCredited_other:"Credit already applied (idempotent) · balance: {{count}} masters.",flashCredited_one:"+{{count}} master credited · balance: {{balance}}{{emailSuffix}}.",flashCredited_other:"+{{count}} masters credited · balance: {{balance}}{{emailSuffix}}.",flashEmailSent:" · email sent"},T7={filterLevelMin:"Min level: {{level}}",empty:"No flagged user.",colEmail:"Email",colLevel:"Level",colLabel:"Label",colReason:"Reason",colFlaggedAt:"Flagged on",colCooldown:"Cooldown",colConsecDays:"Consecutive days",colActions:"Actions",unflag:"Unflag",escalate:"Escalate",unflagModalTitle:"Remove the flag",escalateModalTitle:"Escalate the abuse level"},P7={kpiRate:"Dispute rate",kpiCharges:"Total charges",kpiDisputes:"Disputes",searchTitle:"Search evidence by file_id",searchPlaceholder:"File UUIDâ¦",searchSubmit:"Search",fileInfoTitle:"File information",fileId:"File ID",filename:"Name",userId:"User ID",status:"Status",duration:"Duration",tokenCost:"Token cost",downloadIp:"Download IP",downloadUa:"Download UA",createdAt:"Created on",purchasedAt:"Purchased on",masteringCompletedAt:"Mastering completed",outputLufs:"Output LUFS",outputTruePeak:"Output True Peak",consentsTitle:"Consents ({{count}})",consentType:"Type",consentVersion:"Version",consentHash:"Hash",consentIp:"IP",consentUa:"UA",consentAcceptedAt:"Accepted on",transactionsTitle:"Transactions ({{count}})",txId:"ID",txType:"Type",txTokens:"Tokens",txDescription:"Description",txDate:"Date",paymentTitle:"Payment",paymentBatchId:"Batch ID",paymentStripeSession:"Stripe Session",paymentIntent:"Payment Intent",paymentTokens:"Tokens",paymentPrice:"Price",paymentPurchasedAt:"Purchased on",paymentExpiresAt:"Expires on"},R7={filterAllStatuses:"All statuses",jobsCount:"{{count}} jobs",empty:"No job.",stuckTitle_one:"{{count}} stuck upload",stuckTitle_other:"{{count}} stuck uploads",stuckHint:'Upload started but never finished (tab closed or c
340onnection dropped). "Recover" resumes mastering if the file is complete in storage, otherwise emails the customer to try again.',stuckNotified:"already nudged",stuckRecover:"Recover",stuckResumed:"Mastering resumed",stuckReinvited:"Customer re-invited",colFile:"File",colUser:"User",colStatus:"Status",colAudioDuration:"Audio duration",colMastering:"Mastering",colRtf:"RTF",colRtfTooltip:"Real-time factor: mastering / audio duration (1x = real-time)",colTotal:"Total",colGpu:"GPU",colCreated:"Created",detailTitle:"Job details",phasesTitle:"Total duration (phases)",phaseQueue:"Queue",phaseAnalysis:"Analysis",phaseBetween:"Transition",phaseMastering:"Mastering",phaseTotal:"Total",rtfTitle:"Real-time factor (processing time / track duration)",rtfMastering:"Mastering",rtfMasteringHint:"Pure inference + assembly + I/O · pipeline cost",rtfTotal:"Total",rtfTotalHint:"User-facing (queue + analysis + mastering)",rtfFootnote:"1x = processing as long as track playback. The gap <mono>total - mastering</mono> measures plumbing time (queue, analysis, Modal/Railway transitions).",stepsTitle:"Mastering details (steps)",stepDownload:"Download",stepInference:"Inference",stepAssembly:"Assembly",stepProbeReport:"Probe report",stepUpload:"Upload",outputTitle:"Output",outputLufs:"LUFS",outputTruePeak:"True Peak",outputSilenceLeading:"Leading silence (samples)",outputSilenceTrailing:"Trailing silence (samples)",engineTitle:"Engine",pipelineTitle:"Pipeline metadata (nodes)",timestampsTitle:"Timestamps",tsCreated:"Created",tsAnalysisStarted:"Analysis started",tsAnalysisCompleted:"Analysis completed",tsMasteringStarted:"Mastering started",tsMasteringCompleted:"Mastering completed",copyDone:"Copied",copyMetadata:"Copy metadata",listenTitle:"A/B quality check",listenHint:"Opens this client's original and master in the A/B player. Quality control only: every listen is logged.",listenStart:"Start listening",listenStop:"End listening",listenActive:"Listening",listenNoLufs:"LUFS measurements unavailable for this job: A/B player unavailable.",reportTitle:"Analysis report",reportView:"View report",reportGenerate:"Generate report",reportGenerating:"Generating (up to 1 min)â¦",reportUnavailable:"Report unavailable (missing sources)."},A7={title:"Anonymous previews (no account)",count_one:"{{count}} preview",count_other:"{{count}} previews",hint:"30s previews run without an account. Audio is purged ~2h after creation; the anonymous record is kept for 30 days (no raw IP). No link to a signed-up user is possible: a preview is anonymous by design.",empty:"No anonymous preview in the last 30 days.",colCreated:"Created",colStatus:"Status",colDuration:"Duration",colLufs:"LUFS source â teaser",colAudio:"Audio",colIp:"IP (hash)",audioPurged:"purged",audioLive:"available"},I7={empty:"No entry in the audit log.",colDate:"Date",colTarget:"Target",colChange:"Change",colSource:"Source",colReason:"Reason",colBy:"By"},L7={title:"Add tracks",subtitle:"Select one or several purchased masters.",searchPlaceholder:"Searchâ¦",allAlreadyAdded:"All your masters are already in this album.",noMaster:"No master in your library.",selectedCount_one:"{{count}} selected",selectedCount_other:"{{count}} selected",noSelection:"No selection",cancel:"Cancel",add:"Add",notAuthenticated:"Not authenticated"},M7={authRequired:"Authentication required",includeSuspiciousLabel:"Include suspicious sessions (duration < 10 s or > 5 h)",overviewTitle:"Overview",statsLoadError:"Stats loading error: {{message}}",statTotalSessions:"Total sessions",statTotalSessionsHint:"Complete sessions (5 rounds)",statWinRate:"Lexpi win rate",statWinRateHint:"On decisive votes (excluding ties)",statPoints:"Lexpi points",statPointsHint:"vs {{other}} other service",statTies:"Ties",statTiesHint:"'No preference' rounds",colTrack:"Track",colLexpiWins:"Lexpi wins",colOtherWins:"Other wins",colTies:"Ties",colLexpiPct:"% Lexpi",perTrackEmpty:"No data yet.",sessionsTitle:"Recent sessions",sessionsEmpty:"No session recorded.",colSessionDate:"Date",colSessionIp:"IP",colSessionDevice:"Listening",deviceMobile:"Mobile",deviceMobileTip:"Mobile: likely phone speakers, biased listening",deviceTablet:"Tablet",deviceTabletTip:"Tablet: built-in speakers or headphones, average listening",deviceDesktop:"Desktop",deviceDesktopTip:"Desktop or laptop: monitors or headphones, most reliable listening",deviceUnknown:"Unknown",deviceUnknownTip:"User-agent missing or unrecognized",colSessionService:"Service",colSessionLexpi:"Lexpi",colSessionOther:"Other",colSessionTies:"Ties",colSessionDuration:"Duration",prefLexpi:"Lexpi",prefOther:"Other",prefTie:"Tie",suspectBadge:"Suspicious",suspectTooltip:"Duration out of bounds [10 s, 5 h]",roundLabel:"Round {{round}}",choiceLine:"Choice {{choice}} â {{label}}",lexpiSidePrefix:"Lexpi side",uaPrefix:"UA:"},N7={notFound:"Album not found.",backToAlbums:"Back to albums",allAlbums:"All albums",trackCount_one:"{{count}} track",trackCount_other:"{{count}} tracks",deleteButton:"Delete",notAuthenticated:"Not authenticated",confirmDelete:{title:'Delete the album "{{title}}"?',message:"The masters will not be deleted, but the album and its settings will.",confirmLabel:"Delete",cancelLabel:"Cancel"},metadata:{title:"Metadata",fieldTitle:"Title",fieldArtist:"Artist",fieldAlbumArtist:"Album artist",placeholderAlbumArtist:"Default: same as Artist",fieldYear:"Year",fieldGenre:"Genre",fieldCopyrightYear:"Copyright year",placeholderCopyrightYearWithYear:"Default: {{year}}",placeholderCopyrightYearDefault:"Default: album year",fieldCopyrightOwner:"Copyright owner",placeholderCopyrightOwner:"E.g. Sony Music BMG, Marc Léger",fieldDescription:"Description (optional)"},artwork:{title:"Artwork",constraints:"JPEG, PNG or WebP. 5 MB max.",alt:"Artwork for {{title}}",embedNotice:"The artwork will be embedded in exported files.",dropPrompt:"Drop an image here or pick a file.",replace:"Replace",choose:"Pick an image",remove:"Remove",uploadFailed:"Upload failed.",unsupportedFormat:"Unsupported format. Accepted formats: JPEG, PNG, WebP.",tooHeavy:"Image too heavy ({{kb}} KB). Maximum: 5 MB."},cohesion:{title:"Inter-track cohesion",description:"Aligns volume by pulling louder tracks toward the quietest one. Never amplifies, masters keep their headroom.",presetStrictTitle:"Str
340ict",presetStrictSubtitle:"±1 LUFS",presetStrictDescription:"Very tight album, near-identical loudness.",presetRespectTitle:"Respect",presetRespectSubtitle:"±3 LUFS",presetRespectDescription:"Preserves masters. Minimal intervention.",presetCustomTitle:"Custom",presetCustomSubtitle:"±{{tolerance}} LUFS",presetCustomDescription:"Pick your tolerance.",sliderLabel:"Tolerance: ±{{tolerance}} LUFS",sliderRange:"0.5 â 6.0",excludeQuietLabel:"Automatically exclude very quiet tracks",excludeQuietHint:"An abnormally quieter track (> 4 LUFS gap) will not anchor the album. Useful for ambient / bonus tracks.",summary:{emptyTracks:"Add at least one track to see the cohesion analysis.",singleTrack:"Cohesion does not apply to a single track, it will be exported as-is with the album metadata (handy to tag a single).",noLufs:"Master LUFS not yet available, wait until the tracks finish mastering.",anchor:"Anchor",target:"Target",maxPulldown:"Max pull-down",lufsValue:"{{value}} LUFS",anchorSublabel:"tolerance ±{{tolerance}}",maxPulldownValueWithDb:"â{{db}} dB",maxPulldownValueNone:"none",maxPulldownSublabelLossless:"lossless pull-down",maxPulldownSublabelWithin:"all within tolerance",outliersWarning_one:"{{count}} track flagged as abnormally quiet, excluded from anchoring.",outliersWarning_other:"{{count}} tracks flagged as abnormally quiet, excluded from anchoring."}},gap:{title:"Inter-track gap",description:"Silence appended after each exported track, except the last. 0 s for a seamless flow.",gapless:"0 s (gapless)",max:"5 s",valueSec:"{{value}} s"},tracks:{titleWithCount:"Tracks ({{count}})",addButton:"Add",emptyMessage:"No tracks in this album yet.",addFromLibrary:"Add from library"},trackRow:{dragTitle:"Drag to reorder",dragAriaLabel:"Drag track {{number}} to move it",renameTitle:"Click to rename the track (clear it to fall back to the file name)",excludedBadge:"Excluded",gainArrow:"{{db}} dB â cohesion",preserveSilence:"Keep silences from the original",playTitle:"Listen to the track",pauseTitle:"Pause",excludeTitle:"Exclude from anchoring (e.g. bonus track)",reincludeTitle:"Reinclude in the cohesion calculation",hideDetails:"Hide details",showDetails:"Show details (artist, ISRC, BPMâ¦)",removeTitle:"Remove from album",invalidField:"Invalid field.",saveFailed:"Save failed.",bpmOutOfRange:"BPM out of range (1 to 999).",detailArtistLabel:"Track artist (e.g. feat.)",detailArtistPlaceholder:"Default: album artist",detailComposerLabel:"Composer",detailIsrcLabel:"ISRC",detailBpmLabel:"BPM"},export:{title:"Export",description:"Builds a ZIP with every track, cohesion applied and album metadata embedded.",formatAll:"Complete",formatAllDescription:"WAV 24 + 16 + MP3 320. Every use case.",formatBoth:"WAV 24 + 16",formatBothDescription:"Studio + CD without MP3.",formatMp3:"MP3 320 kbps",formatMp3Description:"Sharing / platform uploads.",formatWav24:"WAV 24-bit",formatWav24Description:"Studio / HD streaming.",formatWav16:"WAV 16-bit",formatWav16Description:"CD / max compatibility.",inProgress:"Export in progressâ¦",generate:"Generate ZIP",needTrack:"Add at least one track before exporting."},exportStatus:{completedTitle:"Export ready",download:"Download",close:"Close",failedTitle:"Export failed",pending:"Queuedâ¦",processing:"Building ZIPâ¦"}},O7={defaultLabelA:"A · Original",defaultLabelB:"B · Master",errors:{auth:"Session expired. Sign in again and retry.",serverWithStatus:"Server temporarily unavailable ({{status}}). Try again in a few seconds.",server:"Server temporarily unavailable. Try again in a few seconds.",network:"Connection interrupted. Check your network and retry.",decode:"The preview could not be decoded. Reload the page.",otherWithStatus:"Loading failed ({{status}}). Please retry.",other:"Loading failed. Please retry."},retry:"Retry",listenLabel:"Listen to {{label}}",listenOriginal:"Listen to the original",listenMaster:"Listen to the master",restartTitle:"Back to start",swapTitle:"Click to toggle (or hold to compare briefly), keys A / B",swapAriaLabel:"Compare A and B (click: toggle, hold: compare)",lufs:{activeTitle:"LUFS normalization: comparison at equal loudness. Click to hear the master at peak normalization (actual level).",inactiveTitle:"Peak normalization: the master at actual level (sounds louder). Click to enable LUFS normalization.",activeAriaLabel:"LUFS normalization on (click to switch to peak normalization)",inactiveAriaLabel:"Peak normalization (click to enable LUFS normalization)",label:"LUFS normalization",inactiveLabel:"Peak normalization"},mute:"Mute",unmute:"Unmute",zoomOut:"Zoom out (Ctrl + scroll down)",zoomIn:"Zoom in (Ctrl + scroll up)",zoomReset:"Reset zoom",zoomFit:"Fit to view",loading:"Loading comparisonâ¦",protectionModal:{title:"Playback paused",body:"To protect unpaid masters from recording, playback briefly stops every 30 seconds. The full HD master (320 kbps, uninterrupted) is downloadable from a few euros.",resume:"Resume playback"}},D7={pendingBanner:{title:"One step away",body:"Your track â{{filename}}â will be mastered in full, free of charge, as soon as your account is ready."}},j7={hero:{headline1:"Drop your track,",headline2:"hear it mastered.",subhead:"Free, no account. The work of a mastering engineer, not a one-size filter. You only pay if the sound wins you over.",reassurance:"No credit card needed · Your files stay private"}},F7={heroTaglines:["One button. Fifty years of mastering.","Finish your track. For real."],hero:{ctaSignup:"Sign up to start mastering",reassurance:"Full mastering free to listen · watermarked 320 kbps MP3, downloadable",scrollCue:"Examples
340· Blind test · Pricing"},preview:{heading:"Your preview",analyzing:"Preparing your previewâ¦",seeBelow:"Your preview below",progressUploading:"Uploading your trackâ¦",progressAnalyzing:"Measuring your track's characterâ¦",progressRendering:"Mastering a 30-second segmentâ¦",progressFinalizing:"Finalizing your previewâ¦",progressAria:"Preview progress",labelSource:"Your mix",labelTeaser:"Mastered preview",qualityNote:"Rough 30-second preview: this isn't the final render. The complete, faithful master is free to listen to after signing up.",ctaFullMaster:"Master the whole track for free",errorFallback:"We couldn't prepare the preview. You can master the whole track for free after signing up.",blockedHint:"This file cannot be mastered as is, so no preview was rendered. Fix the issue above, then drop the new file."},examples:{heading:"Hear the difference."},ctaAfterExamples:{heading:"Your turn.",subheading:"Drop your mix. Free mastering and preview, no card required."},howItWorks:{heading:"Mastering is the closure before release.",subheading:"No more back-and-forth. You leave with your final version, ready to publish.",steps:[{title:"Hand us your mix",description:"One click, instant validation. WAV or AIFF, 24-bit minimum, checked before upload."},{title:"Honest & respectful analysis",description:"We listen to your mix before touching it. If something can't be solved in mastering, we let you know."},{title:`Mastering that lasts. 341Ready before your coffee cools.`,description:"High-definition pipeline, automatic and compliant with streaming standards. Roughly one to one-and-a-half times the track's duration."},{title:"Listen & compare",description:"Downloadable watermarked 320 kbps MP3 preview. Compare with your original."},{title:"Take your time",description:"Seven days to listen, no subscription, no pressure. Play your mix in the car, in your headphones, on your living room speakers."},{title:"Buy what you need",description:"One-off purchase, no subscription. You leave with your three formats (24-bit WAV, 16-bit WAV, 320 kbps MP3) and the precise mastering report."}],safeguard:{title:"Private & archived",description:"Archived on your account, available to you. No one else has access, not even us. Except if you request support."}},manifesto:{title:"Why one button.",p1:"Making an album is a thousand choices. Composition, takes, mix, arrangements. You reach mastering exhausted. And there, you're offered even more choices: presets, intensity levels, sliders. As if it were a new mixing phase.",p2:"That's not what mastering is. It's the closure. Someone tells you: your mix is ready, here's the final version. Now it's yours to release.",p3:"That's the role mastering engineers have held for fifty years. That's the role we take here. Not one more piece of software, not one more subscription. An end to the loop."},ethics:{title:"An engine built without artist data.",p1:"No track, no mix, no artist's work was used to build our engine.",p2:`It's not a model imitating what humans have done. 342It's an engine doing what mastering is meant to do.`,p3:"Your music stays your music. So does everyone else's.",learnMore:"Learn more about our approach"},pricing:{heading:"Mastering, no subscription.",subheading:"No commitment, no expiring quotas. Buy what you need, use it within 12 months. That's it.",tokenLabel_one:"master",tokenLabel_other:"masters",perTokenLabel:"{{amount}} / master",popular:"Popular",buyButton:"Purchase",note:"1 master = 10 minutes of audio. Nearly every track fits within a single master.",cards:{pack_1:{price:"â¬3",perToken:"â¬3.00"},pack_5:{price:"â¬12",perToken:"â¬2.40",savings:"Save â¬3"},pack_15:{price:"â¬34",perToken:"â¬2.27",savings:"Save â¬11"}}}},U7={comingSoon:{chip:"Coming soon",title:"Before / after examples will be available shortly.",body:"We're finalizing the example masters. Meanwhile, you can already test on your own mix."},carousel:{labelStyle:"Style",genres:{pop:"Pop",hiphop:"Hip-hop",rock:"Rock",electronic:"Electronic"},ownTracks:{track1:"Track 1",track2:"Track 2",track3:"Track 3",track4:"Track 4"},overlay:{headline:"Click to hear the difference",ariaLabel:"Click to hear the difference between original and master"},ariaPrevTrack:"Previous track",ariaNextTrack:"Next track",ariaGoTo:"Go to {{label}}"}},z7={comingSoon:{chip:"Coming soon",title:"The blind test, Lexpi vs another online mastering service, is coming very soon.",body:"We're finalizing the comparison masters. You'll be able to judge for yourself, blind, in a few days.",ctaTryMix:"Try on my own mix"},tracks:{track1:"Track 1",track2:"Track 2",track3:"Track 3",track4:"Track 4",track5:"Track 5"},idle:{preTitle:"Blind comparison",title:"Lexpi against a rival service",subtitle:"5 rounds.",play:"Start"},roundPlayer:{roundLabel:"Round {{n}}",roundLabelTotal:"/ {{total}}
342",introP2:"Lossless · same loudness.",masteringSide:"Mastering {{side}}",loadingBoth:"Loading both versionsâ¦",invitationListen:"Click Play (below) to start playback.",ariaNoMastering:"No mastering selected",ariaPauseMastering:"Pause Mastering {{side}}",ariaListenMastering:"Listen to Mastering {{side}}",ariaLoading:"Loading",sideButton:{loading:"Loading",pause:"Pause",play:"Play"},verdictHeading:"Your verdict",choices:{preferA:"I prefer A",noPreference:"No preference",preferB:"I prefer B"},nextRound:"Continue to {{label}}",seeResult:"See the result"},finalReveal:{preTitle:"Your ear's verdict · {{n}} rounds",serviceLabel:{lexpi:"Lexpi",other:"Other service"},ptsSuffix:"pts",footerScores:"Mastering A = {{aLabel}} · Mastering B = {{bLabel}}. 1 pt per preference, 0.5 pt per tie.",tieCount_one:" {{count}} round tied.",tieCount_other:" {{count}} rounds tied.",roundChoiceLabel:"Your pick",closingHeadline:{balanced:"A balanced ear.",slight:"A slight preference shows in your ear.",emerging:"Your ear is starting to choose a side.",clear:"Your ear has chosen."},closingSubtext:"The real verdict comes from your own mix.",ctaTryMix:"Try on my own mix",restart:"Retake the test"}},B7={h1:"The mastering blind test",answer:"Don't take our word for it. On the same mix and at matched loudness, compare two masters without knowing which one is Lexpi and which one is a leading online mastering service. You decide by ear. The method is open and the samples are downloadable.",testLead:"Five tracks, two masters each. You judge, then we reveal.",method:{heading:"How is the test built?",points:[{title:"Same source mix",body:"Both versions in a round start from the same mix. You compare two masters, not two mixes."},{title:"Matched loudness",body:"Each pair is matched to the same loudness, measured on the excerpt itself. No imposed loudness target: the louder one doesn't win by default."},{title:"Quality preserved",body:"Lossless 24-bit FLAC excerpts, about twenty seconds, played as-is. Nothing is added or altered on playback."},{title:"Blind, then revealed",body:"During the test the brands are hidden: Mastering A, Mastering B. Identities appear only at the end, with your score."}]},preserve:{heading:"What does a Lexpi master preserve?",points:[{title:"Energy",body:"Tightening the stereo image or correcting phase shouldn't make the level drop. What was there stays there."},{title:"Naturalness",body:"The best master is the one you don't hear working: remove what gets in the way, leave the rest untouched."},{title:"Dynamics",body:"Getting louder doesn't mean crushing. The level rises without clipping, within the ceiling specific to your track."},{title:"Adaptation",body:"Every mix is different. The treatment adjusts to what's in your track, not to a single preset."},{title:"Clarity",body:"Air and detail are restored after processing, not sacrificed for the sake of cohesion."}]},transparencyLink:"Our approach: why a good master doesn't draw attention to itself",downloads:{heading:"Can I check for myself?",lead:"Download the excerpts and compare them wherever you like, in your software or on your reference headphones.",trackLabel:"Track {{n}}",lexpi:"Lexpi master",other:"Other service",ariaLexpi:"Download the Lexpi master of track {{n}}",ariaOther:"Download the other service of track {{n}}"},beforeAfter:{heading:"From mix to master",lead:"Four tracks, from the input mix to the Lexpi master. Measured, not claimed.",caption:"The level rises by about ten LU to release loudness, and the true peak is brought under a controlled, constant ceiling whatever the mix peak. The dynamic range stays wide (twelve to fifteen decibels): we raise the level without crushing."},cta:{heading:"The verdict that matters is on your own mix",body:"The blind test shows you the trend. The real answer is your track: mastered, auditioned, and paid for only if it convinces you.",button:"Try on my track"},landingLink:"How this test is built"},$7={h1:"Why a good master doesn't draw attention to itself",answer:"The best master is the one you don't hear working. It removes what catches the ear (harshness, sibilance, pumping, phase mud) without taking anything away from the energy of the track. You gain clarity, air and presence, never a thinned-out version. That's transparency, and it's the very definition of a successful master.",phenomenon:{heading:"When the processing becomes inaudible",body:"As a master gets more accurate, the processing fades away: only the music is left. The ear hunts for anomalies; once there's nothing left to flag, attention relaxes and listening becomes effortless. That isn't a flaw, it's the goal."},twoDisappearances:{heading:"Two disappearances not to confuse",lead:"A sound that 'steps back' can come from two opposite causes. The whole craft is there.",good:{title:"The good one: transparency",points:["Anomalies are removed, energy is kept, air is restored.","On headphones, listening closely, detail increases: grain, width, transients present.","A clear window onto the recording, effortless."]},bad:{title:"The bad one: sterility",points:["Over-correction: energy is taken away without being compensated.","On headphones, detail is missing: it's clean, but lifeless.","Flat, anaemic; the music has lost something."]},criterion:"The simple test: turn it up. If the detail is all there and nothing catches, it's the good disappearance. If the energy has fled, it's the bad one. A Lexpi master always aims for the first."},principles:{heading:"How do we keep the life in the track?",points:[{title:"Energy preserved",body:"Tightening the stereo image or correcting phase doesn't drop the level: what's tightened for c
342oherence is raised back, never lost."},{title:"Dynamics respected",body:"Getting louder isn't crushing. The transients and punch of your mix stay there, clear of the loudness war."},{title:"Mono and phase coherence",body:"The master holds up in mono as in stereo: no zone that collapses depending on the playback system."},{title:"Air restored",body:"When the chain tightens, the highs and air that were lost are given back, not replaced by artificial sparkle."},{title:"Adapted to the track",body:"Every mix is different. The treatment adjusts to what's in yours; it doesn't roll out a single preset."}]},measured:{heading:"The craft, measured",lead:"Twenty-one masters compared with those of a leading service, on the same mixes. Everything is measurable on the output file: you can run the measurement yourself.",truePeak:{title:"Constant headroom under the ceiling",caption:"Across the twenty-one tracks, our master keeps more true-peak headroom than the leading service (about 0.4 dB), and holds it constant from one track to the next. They ride the ceiling. More headroom means more safety on streaming transcodes."},loudness:{title:"The level follows the track",caption:"The leading service brings nearly every track to around -10.5 LUFS. A Lexpi master ranges from -7 to -17 LUFS depending on what the track calls for. We adapt the level to the music; we don't force a single loudness."}},cta:{heading:"Transparency is heard better than it's explained",body:"Compare it blind, or master your track and listen before you pay.",primary:"Try on my track",secondary:"Take the blind test"}},q7={lexpi:"Lexpi",competitor:"Leading service",mix:"Mix",master:"Master",axisTp:"True peak (dBTP)",axisLufs:"Integrated loudness (LUFS)",loudnessTitle:"Loudness (LUFS)",truePeakTitle:"True peak (dBTP)"},W7={h1:"How loud should you master for streaming?",subtitle:"LUFS, normalization and the -14 myth",answer:"There is no single level. Every platform normalizes playback loudness: Spotify, YouTube and Tidal around -14 LUFS, Apple Music at -16. Aiming for -14 doesn't make you sound louder. Normalization turns down masters that are too loud, but it never gives back lost dynamics. What matters is dynamics and a controlled true peak, not a number.",normalization:{heading:"What is loudness normalization?",body:"On playback, every major platform brings all tracks to a shared target loudness. A master louder than the target is turned down; a quieter one is turned up. So two tracks reach the same perceived level whatever the file's LUFS. Pushing loudness at the mastering stage gives no loudness advantage on the platform."},table:{heading:"Targets, platform by platform",platform:"Platform",target:"Target (LUFS)",tp:"True peak",rows:[{platform:"Spotify",target:"-14",tp:"-1 dBTP"},{platform:"Apple Music",target:"-16",tp:"-1 dBTP"},{platform:"YouTube",target:"-14",tp:"-1 dBTP"},{platform:"Tidal",target:"-14",tp:"-1 dBTP"},{platform:"Amazon Music",target:"-14",tp:"-2 dBTP"},{platform:"Deezer",target:"-15",tp:"-1 dBTP"},{platform:"SoundCloud, Bandcamp",target:"No normalization",tp:"-1 dBTP"}],note:"Reference values as of mid-2026. A single good master, around -14 LUFS and under -1 dBTP true peak, travels well everywhere: no need for one file per platform."},myth:{heading:"Should you aim for -14 LUFS?",body1:"It's the most stubborn misconception. No: -14 LUFS isn't a requirement, and locking to it often weakens the sound. Normalization equalizes loudness; it doesn't restore dynamics.",body2:"A master crushed to -6 LUFS, once turned down to -14 by the platform, will sound smaller than a -14 LUFS master that kept its transients. Normalization rewards dynamics, not the file's loudness."},level:{heading:"So what is the right level?",body:"The one the track asks for. Pop, hip-hop or electronic music live loud (often -7 to -9 LUFS); classical, jazz or ambient need to breathe (sometimes -16 LUFS or lower). The right instinct isn't to hit a number, but to serve the music and let normalization set the level.",link:"Our measurements: the level adapted to the track"},truePeak:{heading:"What about true peak?",body:"Above the level sits the ceiling. True peak measures the signal reconstructed between samples, where inter-sample peaks can exceed what your software shows. When the platform converts your file to a compressed format (AAC, Ogg, Opus), those peaks can clip. Hence the standard: stay under -1 dBTP, and under -2 dBTP for Amazon. Keeping that margin avoids distortion you don't hear at home but that appears on streaming."},social:{heading:"What about social media?",body:"TikTok, Reels and Stories don't always apply the same normalization, and listening often happens on a small speaker. A slightly more present master (around -9 to -12 LUFS) can carry better there. It isn't the same use as music streaming: if it matters to you, plan a dedicated version."},takeaways:{heading:"Key takeaways",points:["Every major platform normalizes loudness: louder doesn't win.","-14 LUFS isn't a target to reach, it's a playback reference.","After normalization, dynamics make the difference, not the file's loudness.","Master for the track, not for a number.","Keep true peak under -1 dBTP (-2 for Amazon) to avoid distortion on streaming.","A single good master is enough for every platform."]},cta:{heading:"A master made for your track",body:"Lexpi adapts the level and holds the true peak for you. Listen to the result before you pay.",primary:"Master my track",secondary:"Compare it blind"}},H7={pageError:z6,common:B6,footer:$6,cookieConsent:q6,header:W6,supportBanner:H6,contactPage:V6,statusPage:G6,deleti
342onConfirmPage:Y6,accountPage:K6,dashboardPage:J6,tokensPage:Q6,transactionHistory:X6,audioValidation:Z6,canonicalDropZone:e7,premasterGuide:t7,uploadPage:n7,libraryPage:r7,albumsPage:i7,comingSoonToast:s7,masteringCommentary:o7,support:a7,supportTicketDetailUser:l7,myTicketsPage:u7,supportTicketForm:c7,supportTicketDetail:d7,supportTicketsTab:p7,adminDashboardPage:h7,adminCohortTab:f7,adminCampaignsTab:m7,adminFinopsTab:g7,checkout:v7,appInit:y7,downloadMaster:_7,cgvModal:b7,helpPage:x7,masteringPage:S7,adminCreditMastersModal:w7,adminReasonModal:E7,adminCommon:k7,adminUsersTab:C7,adminAbuseTab:T7,adminDisputeTab:P7,adminJobsTab:R7,adminPreviews:A7,adminAuditLogTab:I7,addTracksModal:L7,adminBlindTestTab:M7,albumEditorPage:N7,audioPlayer:O7,authPage:D7,landingPageV2:j7,landingPage:F7,landingExamples:U7,landingBlind:z7,blindTestPage:B7,transparencePage:$7,measurements:q7,loudnessGuide:W7},vL=["fr","en"],As="fr";function v0(t){return vL.includes(t)}Wn.use(gL).use(Rq).init({resources:{fr:{translation:U6},en:{translation:H7}},fallbackLng:As,supportedLngs:vL,interpolation:{escapeValue:!1},detection:{order:["path","cookie","navigator"],lookupCookie:"lexpi_lang",lookupFromPathIndex:0,caches:["cookie"],cookieMinutes:1440*365,cookieDomain:typeof window<"u"?window.location.hostname:void 0},returnNull:!1});const yL=k.createContext(As);function V7({lang:t,children:e}){const{i18n:n}=Tt();return k.useEffect(()=>{n.language!==t&&n.changeLanguage(t),typeof document<"u"&&(document.documentElement.lang=t)},[t,n]),v.jsx(yL.Provider,{value:t,children:e})}function Ho(){return k.useContext(yL)}function _s(t,e){return e===As?t:t==="/"?"/en":t.startsWith("/en/")||t==="/en"?t:t.startsWith("/")?`/en${t}`:`/en/${t}`}function _L(t){return t==="/en"?"/":t.startsWith("/en/")?t.slice(3)||"/":t}function tg(t,e){return typeof t=="string"?_s(t,e):t&&typeof t=="object"&&"pathname"in t&&t.pathname?{...t,pathname:_s(t.pathname,e)}:t}const ut=k.forwardRef(function({to:e,...n},r){const i=Ho();return v.jsx(d0,{ref:r,to:tg(e,i),...n})});k.forwardRef(function({to:e,...n},r){const i=Ho();return v.jsx(dq,{ref:r,to:tg(e,i),...n})});function G7({to:t,...e}){const n=Ho();return v.jsx(u0,{to:tg(t,n),...e})}function Y7(){const t=pp(),e=Ho();return(n,r)=>{if(typeof n=="number"){t(n);return}t(tg(n,e),r)}}function K7(t){const{pathname:e,search:n,hash:r}=En(),i=_L(e);return`${t===As?i:_s(i,t)}${n}${r}`}function J7(t){const e=t.split("/")[1]??"";return v0(e)?e:As}const Q7={fr:"FR",en:"EN"},vC={fr:"Passer en français",en:"Switch to English"};function Sb({className:t=""}){const n=Ho()==="fr"?"en":"fr",r=K7(n);return v.jsx(d0,{to:r,className:`text-xs font-medium uppercase tracking-wider text-lexpi-text-muted/60 transition-colors hover:text-lexpi-text ${t}`,title:vC[n],"aria-label":vC[n],onClick:()=>{typeof document<"u"&&(document.cookie=`lexpi_lang=${n}; path=/; max-age=31536000; samesite=lax`)},children:Q7[n]})}const Ve=(t,e,n)=>`${t} ${e} ${n}`,ga={red:Ve(255,108,108),orange:Ve(255,184,98),yellow:Ve(255,232,108),green:Ve(120,255,160),cyan:Ve(108,200,255),magenta:Ve(192,135,255)},Yl=[ga.red,ga.orange,ga.yellow,ga.green,ga.cyan,ga.magenta],Ln={base:Ve(59,130,246),hover:Ve(96,165,250),light:Ve(91,156,248),dark:Ve(37,99,235),glow:Ve(120,180,255)},Ke={white:Ve(255,255,255),black:Ve(0,0,0)},Sr={success:Ve(52,211,153),warning:Ve(251,191,36),error:Ve(248,113,113)},Ct={redBase:Ve(255,66,66),redCore:Ve(255,82,82),orangeBase:Ve(255,139,63),orangeCore:Ve(255,168,75),yellow:Ve(255,228,85),green:Ve(89,255,135),blue:Ve(86,194,255),indigo:Ve(109,122,255),violet:Ve(190,112,255),beamHalo:Ve(180,220,255),anamorphicSoft:Ve(200,222,255),anamorphicMid:Ve(220,235,255),anamorphicCore:Ve(235,244,255)},Ny={highlightBlue:Ve(72,98,168),midFade:Ve(10,14,24),vanishingPoint:Ve(1,2,5)},bL="inset 0 1px 0 rgb(var(--c-white) / 0.45), inset 0 -1px 0 rgb(20 35 60 / 0.20), 0 0 8px rgb(var(--c-accent-glow) / 0.65), 0 0 20px rgb(var(--c-accent-shadow) / 0.45), 0 1px 3px rgb(var(--c-black) / 0.28)",va={rest:[Ve(228,238,250),Ve(190,218,245),Ve(155,188,230),Ve(168,178,218),Ve(195,182,218)],progress:[Ve(244,248,254),Ve(190,222,250),Ve(140,178,230),Ve(160,152,215),Ve(200,170,220)],cursor:Ve(220,232,255),cursorFallback:"#a8a29e",restAlphas:[.32,.4,.45,.4,.32],progressAlphas:[.85,.92,.95,.82,.62],cursorAlpha:.85},jl={rest:va.rest.map((t,e)=>yC(t,va.restAlphas[e])),progress:va.progress.map((t,e)=>yC(t,va.progressAlphas[e])),cursor:`rgb(${va.cursor} / ${va.cursorAlpha})`};function yC(t,e){return`rgb(${t} / ${e})`}const _C={rimBlue:Ve(180,200,235),rimWarm:Ve(170,195,240)},yf=t=>`rgb(${t})`,re=(t,e)=>`rgb(${t} / ${e})`,bC={aspectRatio:"400 / 190",background:"var(--logo-fall)",WebkitMaskImage:"url(/logo-lexpi-white.png)",maskImage:"url(/logo-lexpi-white.png)",WebkitMaskSize:"contain",maskSize:"contain",WebkitMaskRepeat:"no-repeat",maskRepeat:"no-repeat",WebkitMaskPosition:"center",maskPosition:"center"};function X7(){const{t}=Tt(),e=Ho(),[n,r]=k.useState(!1),i=En(),{isSignedIn:s}=Wo(),l=Kc(g=>g.balance),c=go(g=>g.role)==="ADMIN",p=s?"/upload":"/?landing=1#hero",h="/?landing=1#hero",m=g=>{const _=new URLSearchParams(i.search).get("landing")==="1",x=_s("/",e);if(!((i.pathname==="/"||i.pathname===x)&&_))return;const w=document.getElementById("hero");w&&(g.preventDefault(),w.scrollIntoView({behavior:"smooth",block:"start"}),window.history.replaceState(null,"",_s(h,e)))};return k.useEffect(()=>{r(!1)},[i.pathname]),k.useEffect(()=>(n?document.body.style.overflow="hidden":document.body.style.overflow="",()=>{document.body.style.overflow=""}),[n]),v.jsxs("header",{className:"sticky top-0 z-50 border-b border-white/[0.08] bg-white/[0.03] backdrop-blur-xl backdrop-saturate-150",style:{boxShadow:`0 4px 30px ${re(Ke.black,.15)}, 0 1px 3px ${re(Ke.black,.1)}`},children:[v.jsxs("div",{className:"mx-auto flex h-16 max-w-6xl items-center justify-between px-6 sm:px-10",children:[v.jsx("div",{className:"flex items-center gap-4",children:v.jsx(ut,{to:p,className:"md:hidden",onClick:m,children:v.jsx("span",{role:"img","aria-label":"lexpi.ai",className:"block h-9",style:bC})})}),v.jsx(ut,{to:p,className:"absolute left-1/2 hidden -translate-x-1/2 items-center justify-center md:flex",onClick:m,children:v.jsx("span",{role:"img","aria-label":"lexpi.ai",className:"block h-10",
342style:bC})}),v.jsxs("div",{className:"flex items-center gap-4",children:[v.jsxs("nav",{className:"hidden items-center gap-6 md:flex",children:[v.jsxs(ky,{children:[v.jsx(ut,{to:"/",className:"text-sm font-medium text-lexpi-text-muted transition-colors hover:text-lexpi-text",children:t("header.dashboard")}),v.jsx(ut,{to:"/library",className:"text-sm font-medium text-lexpi-text-muted transition-colors hover:text-lexpi-text",children:t("header.myTracks")}),v.jsx(ut,{to:"/albums",className:"text-sm font-medium text-lexpi-text-muted transition-colors hover:text-lexpi-text",children:t("header.myAlbums")}),c&&v.jsx(eG,{}),v.jsx(Z7,{balance:l}),v.jsx(Ll,{appearance:{elements:{avatarBox:"h-8 w-8"}},children:v.jsxs(Ll.MenuItems,{children:[v.jsx(Ll.Link,{label:t("header.myMasters"),labelIcon:v.jsx(gf,{className:"h-4 w-4"}),href:_s("/tokens",e)}),v.jsx(Ll.Link,{label:t("header.myAccount"),labelIcon:v.jsx(FV,{className:"h-4 w-4"}),href:_s("/account",e)}),c&&v.jsx(Ll.Link,{label:t("header.admin"),labelIcon:v.jsx(Xf,{className:"h-4 w-4"}),href:_s("/admin/dashboard",e)})]})})]}),v.jsx(B1,{children:v.jsx(mo,{feature:"auth",children:v.jsx(ut,{to:"/auth/sign-in",className:"text-sm font-medium text-lexpi-text-muted transition-colors hover:text-lexpi-text",children:t("header.signIn")})})})]}),v.jsx(ky,{children:v.jsxs(ut,{to:"/tokens",className:"inline-flex items-center gap-1.5 rounded-full border border-white/[0.08] bg-white/[0.04] px-3 py-1 text-xs font-medium text-lexpi-text transition-colors hover:border-lexpi-accent/40 hover:text-lexpi-accent md:hidden","aria-label":t("header.balanceAria",{count:l}),children:[v.jsx(gf,{className:"h-3.5 w-3.5 text-lexpi-accent"}),l]})}),v.jsx("button",{className:"p-2 text-lexpi-text-muted transition-colors hover:text-lexpi-text md:hidden",onClick:()=>r(g=>!g),"aria-label":t(n?"common.closeMenu":"common.openMenu"),"aria-expanded":n,children:n?v.jsx($V,{className:"h-6 w-6"}):v.jsx(LV,{className:"h-6 w-6"})})]})]}),n&&v.jsx("div",{className:"md:hidden",children:v.jsx("nav",{className:"border-t border-white/[0.08] bg-lexpi-surface/95 backdrop-blur-xl",children:v.jsxs("div",{className:"mx-auto flex max-w-6xl flex-col gap-1 px-6 py-4",children:[v.jsxs(ky,{children:[v.jsx(ut,{to:"/",className:"py-3 text-sm font-medium text-lexpi-text-muted transition-colors hover:text-lexpi-text",children:t("header.dashboard")}),v.jsx(ut,{to:"/library",className:"py-3 text-sm font-medium text-lexpi-text-muted transition-colors hover:text-lexpi-text",children:t("header.myTracks")}),v.jsx(ut,{to:"/albums",className:"py-3 text-sm font-medium text-lexpi-text-muted transition-colors hover:text-lexpi-text",children:t("header.myAlbums")}),v.jsxs(ut,{to:"/tokens",className:"flex items-center justify-between py-3 text-sm font-medium text-lexpi-text-muted transition-colors hover:text-lexpi-text",children:[v.jsxs("span",{className:"inline-flex items-center gap-2",children:[v.jsx(gf,{className:"h-4 w-4 text-lexpi-accent"}),t("header.myMasters")]}),v.jsx("span",{className:"text-xs text-lexpi-text-dim",children:t("header.balanceLabel",{count:l})})]}),v.jsx(ut,{to:"/account",className:"py-3 text-sm font-medium text-lexpi-text-muted transition-colors hover:text-lexpi-text",children:t("header.myAccount")}),c&&v.jsxs(ut,{to:"/admin/dashboard",className:"flex items-center gap-2 py-3 text-sm font-medium text-amber-300 transition-colors hover:text-amber-200",children:[v.jsx(Xf,{className:"h-4 w-4"}),t("header.admin")]}),v.jsxs("div",{className:"mt-1 flex items-center gap-3 border-t border-white/[0.06] py-3",children:[v.jsx(Ll,{appearance:{elements:{avatarBox:"h-8 w-8"}}}),v.jsx("span",{className:"text-sm text-lexpi-text-muted",children:t("header.manageSession")})]}),v.jsx("div",{className:"mt-1 border-t border-white/[0.06] pt-3",children:v.jsx(Sb,{className:"block py-3 text-sm"})})]}),v.jsxs(B1,{children:[v.jsx(mo,{feature:"auth",children:v.jsx(ut,{to:"/auth/sign-in",className:"py-3 text-sm font-medium text-lexpi-text-muted transition-colors hover:text-lexpi-text",children:t("header.signIn")})}),v.jsx("div",{className:"mt-1 border-t border-white/[0.06] pt-3",children:v.jsx(Sb,{className:"block py-3 text-sm"})})]})]})})})]})}function Z7({balance:t}){const{t:e}=Tt();return v.jsxs(ut,{to:"/tokens",className:"inline-flex items-center gap-1.5 rounded-full border border-white/[0.08] bg-white/[0.04] px-3 py-1 text-xs font-medium text-lexpi-text transition-colors hover:border-lexpi-accent/40 hover:text-lexpi-accent","aria-label":e("header.balanceAria",{count:t}),title:e("header.myMasters"),children:[v.jsx(gf,{className:"h-3.5 w-3.5 text-lexpi-accent"}),t]})}function eG(){const{t}=Tt();return v.jsxs(ut,{to:"/admin/dashboard",className:"inline-flex items-center gap-1.5 rounded-full border border-amber-500/40 bg-amber-500/[0.12] px-3 py-1 text-xs font-semibold uppercase tracking-wide text-amber-300 transition-colors hover:border-amber-400/60 hover:bg-amber-500/[0.18] hover:text-amber-200","aria-label":t("header.adminAria"),title:t("header.adminTitle"),children:[v.jsx(Xf,{className:"h-3.5 w-3.5"}),t("header.admin")]})}function tG(){const{t}=Tt(),e=En(),[n,r]=k.useState(!1);k.useLayoutEffect(()=>{let s=null,l=null,u=0;const c=h=>{r(!0),s=new IntersectionObserver(([m])=>r(m.isIntersecting),{threshold:0}),s.observe(h)},p=document.getElementById("hero");return p?c(p):(r(!1),l=new MutationObserver(()=>{const h=document.getElementById("hero");h&&(l==null||l.disconnect(),window.clearTimeout(u),c(h))}),l.observe(document.body,{childList:!0,subtree:!0}),u=window.setTimeout(()=>l==null?void 0:l.disconnect(),4e3)),()=>{s==null||s.disconnect(),l==null||l.disconnect(),window.clearTimeout(u)}},[e.pathname]);const i="px-1 py-2 text-xs text-lexpi-text-muted/70 transition-colors hover:text-lexpi-text sm:py-0 sm:text-[10px] sm:text-lexpi-text-muted/50 sm:hover:text-lexpi-text-muted";return v.jsxs("footer",{className:`border-t border-white/[0.06] bg-white/[0.02] px-6 py-3 backdrop-blur-xl backdrop-saturate-150 sm:px-10 ${n?"":"sm:sticky sm:bottom-0 sm:z-40"}`,style:{boxShadow:`0 -2px 20px ${re(Ke.black,.1)}`},children:[v.jsx("p",{className:"text-center text-xs leading-relaxed text-lexpi-text-muted/80 sm:text-[11px]",children:t("footer.trust")}),v.jsxs("div",{className:"mt-1.5 flex flex-wrap items-center justify-center gap-x-3 gap-y-0 text-xs sm:mt-2 sm:text-[11px]",children:[v.jsx("span",{className:"text-lexpi-text-muted/60",children:t("footer.helpPrompt")}),v.jsxs(ut,{to:"/help",className:"inline-flex items-center gap-1 px-1 py-2 font-medium text-lexpi-text transition-colors hover:text-lexpi-accent sm:py-0",children:[v.jsx(RV,{className:"h-3.5 w-3.5","aria-hidden":"true"}),t("footer.helpCenter")]}),v.jsx("span",{"aria-hidden":"true",className:"text-lexpi-text-muted/30",children:"·"}),v.jsx(ut,{to:"/contact",className:"px-1 py-2 text-lexpi-text-muted/70 transition-colors hover:text-lexpi-text-muted sm:py-0",children:t("footer.writeUs")})]}),v.jsxs("nav",{className:"mt-1 flex flex-wrap items-center justify-center gap-x-4 gap-y-0 sm:mt-2",children:[v.jsx(ut,{to:"/cgv",className:i,children:t("footer.cgv")}),v.jsx(ut,{to:"/privacy",className:i,children:t("footer.privacy")}),v.jsx(ut,{to:"/legal",className:i,children:t("footer.legal")}),v.jsx(ut,{to:"/ethics",className:i,children:t("footer.ethics")}),v.jsx(ut,{to:"/test-a-l-aveugle",className:i,children:t("footer.blindTest")}
342),v.jsx(ut,{to:"/transparence",className:i,children:t("footer.transparence")}),v.jsx(ut,{to:"/loudness-streaming",className:i,children:t("footer.loudnessGuide")}),v.jsx(ut,{to:"/status",className:i,children:t("footer.status")}),v.jsx(Sb,{className:"px-1 py-2 sm:py-0"})]})]})}async function nG(){const t=[];t.push(rG()),t.push(iG()),t.push(`${screen.width}x${screen.height}x${screen.colorDepth}`),t.push(Intl.DateTimeFormat().resolvedOptions().timeZone),t.push(navigator.languages.join(",")),t.push(navigator.userAgent),t.push(String(navigator.hardwareConcurrency||0)),t.push(String(navigator.deviceMemory||0)),t.push(String(navigator.maxTouchPoints||0)),t.push(navigator.platform);const e=t.join("|");return await sG(e)}function rG(){try{const t=document.createElement("canvas");t.width=200,t.height=50;const e=t.getContext("2d");return e?(e.textBaseline="top",e.font="14px Arial",e.fillStyle="#f60",e.fillRect(125,1,62,20),e.fillStyle="#069",e.fillText("LexPi.ai fp",2,15),e.fillStyle="rgba(102, 204, 0, 0.7)",e.fillText("LexPi.ai fp",4,17),t.toDataURL()):"no-canvas"}catch{return"canvas-error"}}function iG(){try{const t=document.createElement("canvas"),e=t.getContext("webgl")||t.getContext("experimental-webgl");if(!e)return"no-webgl";const n=e,r=n.getExtension("WEBGL_debug_renderer_info");if(!r)return"no-debug-info";const i=n.getParameter(r.UNMASKED_RENDERER_WEBGL);return`${n.getParameter(r.UNMASKED_VENDOR_WEBGL)}|${i}`}catch{return"webgl-error"}}async function sG(t){const n=new TextEncoder().encode(t),r=await crypto.subtle.digest("SHA-256",n);return Array.from(new Uint8Array(r)).map(s=>s.toString(16).padStart(2,"0")).join("")}const Xi="https://api.lexpi.ai/api";class y0 extends Error{constructor(e,n,r){super(`API Error ${e}: ${n}`),this.status=e,this.statusText=n,this.data=r,this.name="ApiError"}}async function be(t,e={}){const{method:n="GET",body:r,headers:i={},token:s}=e,l=typeof FormData<"u"&&r instanceof FormData,u={...l?{}:{"Content-Type":"application/json"},...i};s&&(u.Authorization=`Bearer ${s}`);const c=l?r:r?JSON.stringify(r):void 0,p=await fetch(`${Xi}${t}`,{method:n,headers:u,body:c});if(!p.ok){const h=await p.json().catch(()=>null);throw new y0(p.status,p.statusText,h)}if(p.status!==204)return p.json()}function oG(t){try{fetch(`${Xi}/track/visit`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(t),keepalive:!0,credentials:"omit"}).catch(()=>{})}catch{}}function aG(t){try{fetch(`${Xi}/track/scroll`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(t),keepalive:!0,credentials:"omit"}).catch(()=>{})}catch{}}function lG(t,e){const n=new FormData;return n.append("file",t),be("/anon-preview",{method:"POST",body:n})}function uG(t){return be(`/anon-preview/${encodeURIComponent(t)}`)}function cG(t){return`${Xi}/anon-preview/${encodeURIComponent(t)}/teaser-stream`}function dG(t){return`${Xi}/anon-preview/${encodeURIComponent(t)}/source-stream`}function pG(t){return be("/tokens/balance",{token:t})}function PX(t){return be("/tokens/packs",{token:t})}function RX(){return be("/cgv/current")}function xC(t){return be("/cgv/consent-status",{token:t})}function hG(t,e,n=!1,r="",i=!1,s){return be("/tokens/checkout",{method:"POST",body:{pack_id:e,cgv_accepted:n,cgv_version:r,withdrawal_accepted:i,redirect_to:s??null},token:t})}function AX(t,e){return be("/upload/init",{method:"POST",body:e,token:t})}async function IX(t,e,n){const r=await be(`/upload/${e}/parts`,{method:"POST",body:{part_numbers:n},token:t}),i={};for(const[s,l]of Object.entries(r.urls))i[Number(s)]=l;return i}function LX(t,e,n){return be(`/upload/${e}/complete`,{method:"POST",body:{parts:n.map(r=>({part_number:r.partNumber,etag:r.etag}))},token:t})}function fG(t){return be("/files/active",{token:t})}function MX(t,e){return be(`/jobs/${e}/status`,{token:t})}function NX(t,e){const n=new URLSearchParams;e!=null&&e.search&&n.set("search",e.search),e!=null&&e.sort&&n.set("sort",e.sort);const r=n.toString();return be(`/library${r?`?${r}`:""}`,{token:t})}function OX(t,e,n){return be(`/download/${e}`,{method:"POST",body:n!==void 0?{preserve_silence:n}:void 0,token:t})}function DX(t,e){return be(`/library/${e}/playback-url`,{token:t})}function jX(t,e){return be(`/library/${e}/probe-report-url`,{token:t})}function FX(t,e,n){return be(`/library/${e}/download${n!==void 0?`?preserve_silence=${n?"true":"false"}`:""}`,{token:t})}function UX(t,e){return be(`/files/${e}/abandon`,{method:"POST",token:t})}function mG(t,e){return be("/auth/register-device",{method:"POST",body:{fingerprint:e},token:t})}function xL(t){return be("/auth/me",{token:t})}function gG(t,e){return be("/auth/identify",{method:"POST",token:t,body:{posthog_distinct_id:e}})}function vG(){return be("/site-settings/public")}function Oc(t){try{fetch(`${Xi}/track/landing`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(t),keepalive:!0,credentials:"omit"}).catch(()=>{})}catch{}}function Oy(t){try{fetch(`${Xi}/track/purchase`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(t),keepalive:!0,credentials:"omit"}).catch(()=>{})}catch{}}function yG(){return be("/landing/showcase")}function zX(t,e,n){return be(`/files/${e}/sign-license`,{method:"POST",body:n,token:t})}function BX(t){return be("/rights-cessions/me",{token:t})}function $X(t,e,n){return be(`/rights-cessions/${e}/revoke`,{method:"POST",body:{reason:null},token:t})}function qX(t,e={}){const n=new URLSearchParams;e.landingApproved!==void 0&&n.set("landing_approved",String(e.landingApproved)),e.revoked!==void 0&&n.set("revoked",String(e.revoked)),e.offset!==void 0&&n.set("offset",String(e.offset)),e.limit!==void 0&&n.set("limit",String(e.limit));const r=n.toString();return be(`/admin/rights-cessions${r?`?${r}`:""}`,{token:t})}function WX(t,e){return be(`/admin/rights-cessions/${e}/approve-landing`,{method:"POST",body:{},token:t})}function HX(t,e){return be(`/admin/rights-cessions/${e}/revoke-landing`,{method:"POST",token:t})}function VX(t,e){return be(`/admin/rights-cessions/${e}/regenerate-extracts`,{method:"POST",token:t})}function GX(t,e){return be(`/admin/site-settings/${encodeURIComponent(e)}`,{token:t})}function YX(t,e,n){return be(`/admin/site-settings/${encodeURIComponent(e)}`,{method:"PATCH",body:{value:n},token:t})}function KX(t,e,n){return be(`/admin/users/${e}/free-hd-quota`,{method:"PATCH",body:{quota:n},token:t})}function JX(t){return be("/auth/export",{token:t})}function QX(t){return be("/auth/request-deletion",{method:"POST",token:t})}async function XX(t){const e=await fetch(`${Xi}/auth/confirm-deletion?token=${encodeURIComponent(t)}`,{method:"POST",headers:{"Content-Type":"application/json"}});if(!e.ok){const n=await e.json().catch(()=>null);throw new y0(e.status,e.statusText,n)}return e.json()}function ZX(t,e){const n=new URLSearchParams;(e==null?void 0:e.offset)!==void 0&&n.set("offset",String(e.offset)),n.set("limit",String(e.limit));const r=n.toString();return be(`/tokens/transactions${r?`?${r}`:""}`,{token:t})}function eZ(t,e){return be("/support/attachments/init",{method:"POST",body:e,token:t})}async function tZ(t,e,n){const r=await fetch(t,{method:"PUT",headers:{"Content-Type":n},body:e});if(!r.ok)throw new Error(`Echec upload S3 (${r.status} ${r.statusText})`)}function nZ(t,e){return be("/support/tickets",{method:"POST",body:e,token:t})}function rZ(t){return be("/support/tickets",{token:t})}function iZ(t,e){return be(`/support/tickets/${e}`,{token:t})}function sZ(t,e){return be(`/admin/users/${e}/balance`,{token:t})}function oZ(t,e,n){return be(`/admin/users/${e}/credit-masters`,{method:"POST",body:n,token:t})}function aZ(t,e={}){const n=new URLSearchParams;e.status&&n.set("status",e.status),e.offset!==void 0&&n.set("offset",String(e.offset)),e.limit!==void 0&&n.set("limit",String(e.limit));const r=n.toString();return be(`/admin/jobs${r?`?${r}`:""}`,{token:t})}function lZ(t,e){return be(`/admin/jobs/${e}`,{token:t})}function uZ(t){return be("/admin/flags",{token:t})}function cZ(t){return`${Xi}/admin/jobs/${t}/stream`}function dZ(t){return`${Xi}/admin/jobs/${t}/original-stream`}function pZ(t,e){return be(`/admin/jobs/${e}/probe-report-url`,{token:t})}function hZ(t,e){return be(`/admin/jobs/${e}/probe-report`,{method:"POST",token:t})}function fZ(t,e={}){const n=new URLSearchParams;e.offset!==void 0&&n.set("offset",String(e.offset)),e.limit!==void 0&&n.set("limit",String(e.limit));const r=n.toString();return be(`/admin/previews${r?`?${r}`:""}`,{token:t})}function mZ(t,e={}){const n=new URLSearchParams;e.status&&n.set("status",e.status),e.priority&&n.set("priority",e.priority),e.category&&n.set("category",e.category),e.q&&n.set("q",e.q),e.offset!==void 0&&n.set("offset",String(e.offset)),e.limit!==void 0&&n.set("limit",String(e.limit));const r=n.toString();return be(`/admin/tickets${r?`?${r}`:""}`,{token:t})}function gZ(t,e){return be(`/admin/tickets/${e}`,{token:t})}function vZ(t,e,n){return be(`/admin/tickets/${e}/reply`,{method:"POST",body:n,token:t})}function yZ(t,e,n){return be(`/admin/tickets/${e}/status`,{method:"POST",body:n,token:t})}function _Z(t,e,n){return be(`/admin/tickets/${e}/refund-credits`,{method:"POST",body:n,token:t})}function _G(t){return be("/blind-test/results",{method:"POST",body:t})}function bZ(t,e=!1){const n=new URLSearchParams;e&&n.set("include_suspicious","true");const r=n.toString();return be(`/admin/blind-test/stats${r?`?${r}`:""}`,{token:t})}function xZ(t,e={}){const n=new URLSearchParams;e.offset!==void 0&&n.set("offset",String(e.offset)),e.limit!==void 0&&n.set("limit",String(e.limit)),e.includeSuspicious&&n.set("include_suspicious","true");const r=n.toString();return be(`/admin/blind-test/sessions${r?`?${r}`:""}`,{token:t})}function SZ(t){return be("/admin/uploads/stuck",{token:t})}function wZ(t,e){return be(`/admin/files/${e}/recover`,{token:t,method:"POST"})}function EZ(t,e={}){const n=new URLSearchParams;e.bucket&&n.set("bucket",e.bucket),e.includeAdmins&&n.set("include_admins","true");const r=n.toString();return be(`/admin/cohorts/conversion${r?`?${r}`:""}`,{token:t})}function kZ(t){return be("/admin/campaigns",{token:t})}function CZ(t,e){return be("/admin/campaigns",{token:t,method:"POST",body:e})}function TZ(t,e,n){return be(`/admin/campaigns/${e}`,{token:t,method:"PATCH",body:n})}function PZ(t,e){return be(`/admin/campaigns/${e}`,{token:t,method:"DELETE"})}function RZ(t,e,n){return be(`/admin/campaigns/${e}/assets/init`,{token:t,method:"POST",body:n})}function AZ(t,e,n){return be(`/admin/campaigns/${e}/assets`,{token:t,method:"POST",body:n})}function IZ(t,e,n){return be(`/admin/campaigns/${e}/assets/${n}/url`,{token:t})}function LZ(t,e,n){return be(`/admin/campaigns/${e}/assets/${n}`,{token:t,method:"DELETE"})}const SC="lexpi_device_registered";function bG(){const{getToken:t,isSignedIn:e}=Wo();return k.useEffect(()=>{if(!e||sessionStorage.getItem(SC))return;let n=!1;async function r(){try{const i=await t();if(!i||n)return;const s=await nG();await mG(i,s),sessionStorage.setItem(SC,"1")}catch{}}return r(),()=>{n=!0}},[e]),null}class xG{constructor(){pn(this,"ws",null);pn(this,"handlers",new Map);pn(this,"reconnectAttempts",0);pn(this,"maxReconnectAttempts",10);pn(this,"reconnectDelay",1e3);pn(this,"token",null);pn(this,"getToken",null);pn(this,"isConnecting",!1);pn(this,"intentionalClose",!1)}connect(e,n){var i,s;if(((i=this.ws)==null?void 0:i.readyState)===WebSocket.OPEN||((s=this.ws)==null?void 0:s.readyState)===WebSocket.CONNECTING||this.isConnecting)return;this.token=e,n&&(this.getToken=n),this.isConnecting=!0,this.intentionalClose=!1;const r="wss://api.lexpi.ai";this.ws=new WebSocket(`${r}/ws?token=${encodeURIComponent(e)}`),this.ws.onopen=()=>{this.isConnecting=!1,this.reconnectAttempts=0,console.log("[WS] Connecté")},this.ws.onmessage=l=>{var u;try{const c=JSON.parse(l.data);if(c.type==="ping"){(u=this.ws)==null||u.send(JSON.stringify({type:"pong"}));return}this.dispatch(c)}catch(c){console.error("[WS] Message invalide:",c)}}
342,this.ws.onclose=()=>{if(this.isConnecting=!1,this.intentionalClose){console.log("[WS] Déconnecté (intentionnel)");return}console.log("[WS] Déconnecté"),this.attemptReconnect()},this.ws.onerror=l=>{this.isConnecting=!1,console.error("[WS] Erreur:",l)}}isConnected(){var e;return((e=this.ws)==null?void 0:e.readyState)===WebSocket.OPEN}disconnect(){var e;this.intentionalClose=!0,this.reconnectAttempts=this.maxReconnectAttempts,(e=this.ws)==null||e.close(),this.ws=null,this.token=null,this.getToken=null}on(e,n){return this.handlers.has(e)||this.handlers.set(e,new Set),this.handlers.get(e).add(n),()=>this.off(e,n)}off(e,n){var r;(r=this.handlers.get(e))==null||r.delete(n)}dispatch(e){const n=this.handlers.get(e.type);n&&n.forEach(r=>r(e))}attemptReconnect(){if(this.reconnectAttempts>=this.maxReconnectAttempts||!this.token)return;this.reconnectAttempts++;const e=this.reconnectDelay*Math.pow(2,this.reconnectAttempts-1),r=Math.min(e,3e4)*(.5+Math.random());console.log(`[WS] Reconnexion dans ${Math.round(r)}ms (tentative ${this.reconnectAttempts})`),setTimeout(async()=>{if(this.getToken)try{const i=await this.getToken();this.token=i}catch{}this.token&&this.connect(this.token)},r)}}const ji=new xG,SG=["1","true","yes","on"];function _0(){return SG.includes("".trim().toLowerCase())}const SL="lexpi_consent_analytics_v1",wb=new Set;function wG(){if(typeof window>"u")return"unknown";try{const t=window.localStorage.getItem(SL);return t==="granted"||t==="denied"?t:"unknown"}catch{return"unknown"}}function b0(){return wG()}function wC(t){if(!(typeof window>"u")){try{window.localStorage.setItem(SL,t)}catch{}for(const e of wb)e(t)}}function x0(t){return wb.add(t),()=>{wb.delete(t)}}var X=typeof window<"u"?window:void 0,hn=typeof globalThis<"u"?globalThis:X;typeof self>"u"&&(hn.self=hn),typeof File>"u"&&(hn.File=function(){});var Dr=hn==null?void 0:hn.navigator,fe=hn==null?void 0:hn.document,Rn=hn==null?void 0:hn.location,Eb=hn==null?void 0:hn.fetch,kb=hn!=null&&hn.XMLHttpRequest&&"withCredentials"in new hn.XMLHttpRequest?hn.XMLHttpRequest:void 0,EC=hn==null?void 0:hn.AbortController,EG=hn==null?void 0:hn.CompressionStream,_r=Dr==null?void 0:Dr.userAgent,Re=X??{},kC="1.373.5",nr={DEBUG:!1,LIB_VERSION:kC,LIB_NAME:"web",JS_SDK_VERSION:kC};function CC(t,e,n,r,i,s,l){try{var u=t[s](l),c=u.value}catch(p){return void n(p)}u.done?e(c):Promise.resolve(c).then(r,i)}function Nr(t){return function(){var e=this,n=arguments;return new Promise((function(r,i){var s=t.apply(e,n);function l(c){CC(s,r,i,l,u,"next",c)}function u(c){CC(s,r,i,l,u,"throw",c)}l(void 0)}))}}function ue(){return ue=Object.assign?Object.assign.bind():function(t){for(var e=1;arguments.length>e;e++){var n=arguments[e];for(var r in n)({}).hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},ue.apply(null,arguments)}function wL(t,e){if(t==null)return{};var n={};for(var r in t)if({}.hasOwnProperty.call(t,r)){if(e.indexOf(r)!==-1)continue;n[r]=t[r]}return n}var Dc,TC=(function(t){return t.GZipJS="gzip-js",t.Base64="base64",t})({}),kG=["$snapshot","$pageview","$pageleave","$set","survey dismissed","survey sent","survey shown","$identify","$groupidentify","$create_alias","$$client_ingestion_warning","$web_experiment_applied","$feature_enrollment_update","$feature_flag_called"],EL="NativeGzipValidationError",Cb=t=>t.length>=2&&t[0]===31&&t[1]===139,PC=t=>!(!t||typeof t!="object")&&("name"in t?String(t.name):"")==="NotReadableError",Bh=t=>{var e=new Error("Native gzip produced invalid output: "+t);throw e.name=EL,e},CG=(function(){var t=Nr((function*(e,n){18>e.size&&Bh("too-short");var r=new Uint8Array(yield e.slice(0,10).arrayBuffer());Cb(r)&&r[2]===8||Bh("invalid-header");var i=new DataView(yield e.slice(e.size-8).arrayBuffer());i.getUint32(0,!0)!==(l=>{for(var u=(()=>{if(Dc)return Dc;Dc=[];for(var h=0;256>h;h++){for(var m=h,g=0;8>g;g++)m=1&m?3988292384^m>>>1:m>>>1;Dc[h]=m>>>0}return Dc})(),c=4294967295,p=0;l.length>p;p++)c=u[255&(c^l[p])]^c>>>8;return(4294967295^c)>>>0})(n)&&Bh("invalid-crc");var s=n.length>>>0;i.getUint32(4,!0)!==s&&Bh("invalid-size")}));return function(e,n){return t.apply(this,arguments)}})();function Tb(){return Tb=Nr((function*(t,e,n){e===void 0&&(e=!0);try{var r=new TextEncoder().encode(t),i=new CompressionStream("gzip"),s=i.writable.getWriter(),l=s.write(r).then((()=>s.close())).catch((function(){var p=Nr((function*(h){try{yield s.abort(h)}catch{}throw h}));return function(h){return p.apply(this,arguments)}})()),u=new Response(i.readable).blob(),[c]=yield Promise.all([u,l]);return yield CG(c,r),c}catch(p){if(n!=null&&n.rethrow)throw p;return e&&console.error("Failed to gzip compress data",p),null}})),Tb.apply(this,arguments)}var TG=["amazonbot","amazonproductbot","app.hypefactors.com","applebot","archive.org_bot","awariobot","backlinksextendedbot","baiduspider","bingbot","bingpreview","chrome-lighthouse","dataforseobot","deepscan","duckduckbot","facebookexternal","facebookcatalog","http://yandex.com/bots","hub
342spot","ia_archiver","leikibot","linkedinbot","meta-externalagent","mj12bot","msnbot","nessus","petalbot","pinterest","prerender","rogerbot","screaming frog","sebot-wa","sitebulb","slackbot","slurp","trendictionbot","turnitin","twitterbot","vercel-screenshot","vercelbot","yahoo! slurp","yandexbot","zoombot","bot.htm","bot.php","(bot;","bot/","crawler","ahrefsbot","ahrefssiteaudit","semrushbot","siteauditbot","splitsignalbot","gptbot","oai-searchbot","chatgpt-user","perplexitybot","better uptime bot","sentryuptimebot","uptimerobot","headlesschrome","cypress","google-hoteladsverifier","adsbot-google","apis-google","duplexweb-google","feedfetcher-google","google favicon","google web preview","google-read-aloud","googlebot","googleother","google-cloudvertexbot","googleweblight","mediapartners-google","storebot-google","google-inspectiontool","bytespider"],RC=function(t,e){if(e===void 0&&(e=[]),!t)return!1;var n=t.toLowerCase();return TG.concat(e).some((r=>{var i=r.toLowerCase();return n.indexOf(i)!==-1}))};function nt(t,e){return t.indexOf(e)!==-1}var ng=function(t){return t.trim()},Pb=function(t){return t.replace(/^\$/,"")},kL=Object.prototype,CL=kL.hasOwnProperty,rg=kL.toString,ft=Array.isArray||function(t){return rg.call(t)==="[object Array]"},gs=t=>typeof t=="function",nn=t=>t===Object(t)&&!ft(t),iu=t=>
342{if(nn(t)){for(var e in t)if(CL.call(t,e))return!1;return!0}return!1},ve=t=>t===void 0,Yt=t=>rg.call(t)=="[object String]",_f=t=>Yt(t)&&t.trim().length===0,Ms=t=>t===null,rt=t=>ve(t)||Ms(t),ni=t=>rg.call(t)=="[object Number]"&&t==t,Kl=t=>ni(t)&&t>0,Gi=t=>rg.call(t)==="[object Boolean]",PG=t=>t instanceof FormData,RG=t=>nt(kG,t);function TL(t){return t===null||typeof t!="object"}function rm(t,e){return{}.toString.call(t)==="[object "+e+"]"}function S0(t){return typeof Event<"u"&&(function(e,n){try{return e instanceof n}catch{return!1}})(t,Event)}var AG=[!0,"true",1,"1","yes"],Dy=t=>nt(AG,t),IG=[!1,"false",0,"0","no"];function Yi(t,e,n,r,i){return e>n&&(r.warn("min cannot be greater than max."),e=n),ni(t)?t>n?(r.warn(" cannot be greater than max: "+n+". Using max value instead."),n):e>t?(r.warn(" cannot be less than min: "+e+". Using min value instead."),e):t:(r.warn(" must be a number. using max or fallback. max: "+n+", fallback: "+i),Yi(i||n,e,n,r))}class LG{constructor(e){this.$t={},this.zt=e.zt,this.Zt=Yi(e.bucketSize,0,100,e.Gt),this.Qt=Yi(e.refillRate,0,this.Zt,e.Gt),this.Jt=Yi(e.refillInterval,0,864e5,e.Gt)}Kt(e,n){var r=Math.floor((n-e.lastAccess)/this.Jt);r>0&&(e.tokens=Math.min(e.tokens+r*this.Qt,this.Zt),e.lastAccess=e.lastAccess+r*this.Jt)}consumeRateLimit(e){var n,r=Date.now(),i=String(e),s=this.$t[i];return s?this.Kt(s,r):this.$t[i]=s={tokens:this.Zt,lastAccess:r},s.tokens===0||(s.tokens--,s.tokens===0&&((n=this.zt)==null||n.call(this,e)),s.tokens===0)}stop(){this.$t={}}}var $h,AC,jy,Fr="Mobile",im="iOS",xs="Android",Mu="Tablet",PL=xs+" "+Mu,RL="iPad",AL="Apple",IL=AL+" Watch",fd="Safari",Nu="BlackBerry",LL="Samsung",ML=LL+"Browser",NL=LL+" Internet",$a="Chrome",MG=$a+" OS",OL=$a+" "+im,w0="Internet Explorer",DL=w0+" "+Fr,E0="Opera",NG=E0+" Mini",k0="Edge",jL="Microsoft "+k0,lu="Firefox",FL=lu+" "+im,Dd="Nintendo",jd="PlayStation",uu="Xbox",UL=xs+" "+Fr,zL=Fr+" "+fd,Jc="Windows",Rb=Jc+" Phone",IC="Nokia",Ab="Ouya",BL="Generic",OG=BL+" "+Fr.toLowerCase(),$L=BL+" "+Mu.toLowerCase(),Ib="Konqueror",Xn="(\\d+(\\.\\d+)?)",Fy=new RegExp("Version/"+Xn),DG=new RegExp(uu,"i"),jG=new RegExp(jd+" \\w+","i"),FG=new RegExp(Dd+" \\w+","i"),C0=new RegExp(Nu+"|PlayBook|BB10","i"),UG={"NT3.51":"NT 3.11","NT4.0":"NT 4.0","5.0":"2000",5.1:"XP",5.2:"XP","6.0":"Vista",6.1:"7",6.2:"8",6.3:"8.1",6.4:"10","10.0":"10"},qL=function(t,e){return e=e||"",nt(t," OPR/")&&nt(t,"Mini")?NG:nt(t," OPR/")?E0:C0.test(t)?Nu:nt(t,"IE"+Fr)||nt(t,"WPDesktop")?DL:nt(t,ML)?NL:nt(t,k0)||nt(t,"Edg/")?jL:nt(t,"FBIOS")?"Facebook "+Fr:nt(t,"UCWEB")||nt(t,"UCBrowser")?"UC Browser":nt(t,"CriOS")?OL:nt(t,"CrMo")||nt(t,$a)?$a:nt(t,xs)&&nt(t,fd)?UL:nt(t,"FxiOS")?FL:nt(t.toLowerCase(),Ib.toLowerCase())?Ib:((n,r)=>r&&nt(r,AL)||(function(i){return nt(i,fd)&&!nt(i,$a)&&!nt(i,xs)})(n))(t,e)?nt(t,Fr)?zL:fd:nt(t,lu)?lu:nt(t,"MSIE")||nt(t,"Trident/")?w0:nt(t,"Gecko")?lu:""},zG={[DL]:[new RegExp("rv:"+Xn)],[jL]:[new RegExp(k0+"?\\/"+Xn)],[$a]:[new RegExp("("+$a+"|CrMo)\\/"+Xn)],[OL]:[new RegExp("CriOS\\/"+Xn)],"UC Browser":[new RegExp("(UCBrowser|UCWEB)\\/"+Xn)],[fd]:[Fy],[zL]:[Fy],[E0]:[new RegExp("(Opera|OPR)\\/"+Xn)],[lu]:[new RegExp(lu+"\\/"+Xn)],[FL]:[new RegExp("FxiOS\\/"+Xn)],[Ib]:[new RegExp("Konqueror[:/]?"+Xn,"i")],[Nu]:[new RegExp(Nu+" "+Xn),Fy],[UL]:[new RegExp("android\\s"+Xn,"i")],[NL]:[new RegExp(ML+"\\/"+Xn)],[w0]:[new RegExp("(rv:|MSIE )"+Xn)],Mozilla:[new RegExp("rv:"+Xn)]},BG=function(t,e){var n=qL(t,e),r=zG[n];if(ve(r))return null;for(var i=0;r.length>i;i++){var s=t.match(r[i]);if(s)return parseFloat(s[s.length-2])}return null},LC=[[new RegExp(uu+"; "+uu+" (.*?)[);]","i"),t=>[uu,t&&t[1]||""]],[new RegExp(Dd,"i"),[Dd,""]],[new RegExp(jd,"i"),[jd,""]],[C0,[Nu,""]],[new RegExp(Jc,"i"),(t,e)=>{if(/Phone/.test(e)||/WPDesktop/.test(e))return[Rb,""];if(new RegExp(Fr).test(e)&&!/IEMobile\b/.test(e))return[Jc+" "+Fr,""];var n=/Windows NT ([0-9.]+)/i.exec(e);if(n&&n[1]){var r=UG[n[1]]||"";return/arm/i.test(e)&&(r="RT"),[Jc,r]}return[Jc,""]}],[/((iPhone|iPad|iPod).*?OS (\d+)_(\d+)_?(\d+)?|iPhone)/,t=>t&&t[3]?[im,[t[3],t[4],t[5]||"0"].join(".")]:[im,""]],[/(watch.*\/(\d+\.\d+\.\d+)|watch os,(\d+\.\d+),)/i,t=>{var e="";return t&&t.length>=3&&(e=ve(t[2])?t[3]:t[2]),["watchOS",e]}],[new RegExp("("+xs+" (\\d+)\\.(\\d+)\\.?(\\d+)?|"+xs+")","i"),t=>t&&t[2]?[xs,[t[2],t[3],t[4]||"0"].join(".")]:[xs,""]],[/Mac OS X (\d+)[_.](\d+)[_.]?(\d+)?/i,t=>{var e=["Mac OS X",""];return t&&t[1]&&(e[1]=[t[1],t[2],t[3]||"0"].join(".")),e}],[/Mac/i,["Mac OS X",""]],[/CrOS/,[MG,""]],[/Linux|debian/i,["Linux",""]]],MC=function(t){return FG.test(t)?Dd:jG.test(t)?jd:DG.test(t)?uu:new RegExp(Ab,"i").test(t)?Ab:new RegExp("("+Rb+"|WPDesktop)","i").test(t)?Rb:/iPad/.test(t)?RL:/iPod/.test(t)?"iPod Touch":/iPhone/.test(t)?"iPhone":/(watch)(?: ?os[,/]|\d,\d\/)[\d.]+/i.test(t)?IL:C0.test(t)?Nu:/(kobo)\s(ereader|touch)/i.test(t)?"K
342obo":new RegExp(IC,"i").test(t)?IC:/(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\))/i.test(t)||/(kf[a-z]+)( bui|\)).+silk\//i.test(t)?"Kindle Fire":/(Android|ZTE)/i.test(t)?new RegExp(Fr).test(t)&&!/(9138B|TB782B|Nexus [97]|pixel c|HUAWEISHT|BTV|noble nook|smart ultra 6)/i.test(t)||/pixel[\daxl ]{1,6}/i.test(t)&&!/pixel c/i.test(t)||/(huaweimed-al00|tah-|APA|SM-G92|i980|zte|U304AA)/i.test(t)||/lmy47v/i.test(t)&&!/QTAQZ3/i.test(t)?xs:PL:new RegExp("(pda|"+Fr+")","i").test(t)?OG:new RegExp(Mu,"i").test(t)&&!new RegExp(Mu+" pc","i").test(t)?$L:""},$G=t=>t instanceof Error,WL={trace:{text:"TRACE",number:1},debug:{text:"DEBUG",number:5},info:{text:"INFO",number:9},warn:{text:"WARN",number:13},error:{text:"ERROR",number:17},fatal:{text:"FATAL",number:21}},qG=WL.info;function HL(t){if(Gi(t))return{boolValue:t};if(typeof t=="number")return Number.isFinite(t)?Number.isInteger(t)?{intValue:t}:{doubleValue:t}:{stringValue:String(t)};if(typeof t=="string")return{stringValue:t};if(ft(t))return{arrayValue:{values:t.map((e=>HL(e)))}};try{return{stringValue:JSON.stringify(t)}}catch{return{stringValue:String(t)}}}function NC(t){var e=[];for(var n in t){var r=t[n];Ms(r)||ve(r)||e.push({key:n,value:HL(r)})}return e}function WG(t){var e=globalThis._posthogChunkIds;if(e){var n=Object.keys(e);return jy&&n.length===AC||(AC=n.length,jy=n.reduce(((r,i)=>{$h||($h={});var s=$h[i];if(s)r[s[0]]=s[1];else for(var l=t(i),u=l.length-1;u>=0;u--){var c=l[u],p=c==null?void 0:c.filename,h=e[i];if(p&&h){r[p]=h,$h[i]=[p,h];break}}return r}),{})),jy}}class HG{constructor(e,n,r){r===void 0&&(r=[]),this.coercers=e,this.stackParser=n,this.modifiers=r}buildFromUnknown(e,n){n===void 0&&(n={});var r=n&&n.mechanism||{handled:!0,type:"generic"},i=this.buildCoercingContext(r,n,0).apply(e),s=this.buildParsingContext(n),l=this.parseStacktrace(i,s);return{$exception_list:this.convertToExceptionList(l,r),$exception_level:"error"}}modifyFrames(e){var n=this;return Nr((function*(){for(var r of e)r.stacktrace&&r.stacktrace.frames&&ft(r.stacktrace.frames)&&(r.stacktrace.frames=yield n.applyModifiers(r.stacktrace.frames));return e}))()}coerceFallback(e){var n;return{type:"Error",value:"Unknown error",stack:(n=e.syntheticException)==null?void 0:n.stack,synthetic:!0}}parseStacktrace(e,n){var r,i;return e.cause!=null&&(r=this.parseStacktrace(e.cause,n)),e.stack!=""&&e.stack!=null&&(i=this.applyChunkIds(this.stackParser(e.stack,e.synthetic?n.skipFirstLines:0),n.chunkIdMap)),ue({},e,{cause:r,stack:i})}applyChunkIds(e,n){return e.map((r=>(r.filename&&n&&(r.chunk_id=n[r.filename]),r)))}applyCoercers(e,n){for(var r of this.coercers)if(r.match(e))return r.coerce(e,n);return this.coerceFallback(n)}applyModifiers(e){var n=this;return Nr((function*(){var r=e;for(var i of n.modifiers)r=yield i(r);return r}))()}convertToExceptionList(e,n){var r,i,s,l={type:e.type,value:e.value,mechanism:{type:(r=n.type)!==null&&r!==void 0?r:"generic",handled:(i=n.handled)===null||i===void 0||i,synthetic:(s=e.synthetic)!==null&&s!==void 0&&s}};e.stack&&(l.stacktrace={type:"raw",frames:e.stack});var u=[l];return e.cause!=null&&u.push(...this.convertToExceptionList(e.cause,ue({},n,{handled:!0}))),u}buildParsingContext(e){var n;return{chunkIdMap:WG(this.stackParser),skipFirstLines:(n=e.skipFirstLines)!==null&&n!==void 0?n:1}}buildCoercingContext(e,n,r){r===void 0&&(r=0);var i=(s,l)=>{if(4>=l){var u=this.buildCoercingContext(e,n,l);return this.applyCoercers(s,u)}};return ue({},n,{syntheticException:r==0?n.syntheticException:void 0,mechanism:e,apply:s=>i(s,r),next:s=>i(s,r+1)})}}var Ou="?";function Lb(t,e,n,r,i){var s={platform:t,filename:e,function:n==="<anonymous>"?Ou:n,in_app:!0};return ve(r)||(s.lineno=r),ve(i)||(s.colno=i),s}var VL=(t,e)=>{var n=t.indexOf("safari-extension")!==-1,r=t.indexOf("safari-web-extension")!==-1;return n||r?[t.indexOf("@")!==-1?t.split("@")[0]:Ou,n?"safari-extension:"+e:"safari-web-extension:"+e]:[t,e]},VG=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,GG=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,YG=/\((\S*)(?::(\d+))(?::(\d+))\)/,KG=(t,e)=>{var n=VG.exec(t);if(n){var[,r,i,s]=n;return Lb(e,r,Ou,+i,+s)}var l=GG.exec(t);if(l){if(l[2]&&l[2].indexOf("eval")===0){var u=YG.exec(l[2]);u&&(l[2]=u[1],l[3]=u[2],l[4]=u[3])}var[c,p]=VL(l[1]||Ou,l[2]);return Lb(e,p,c,l[3]?+l[3]:void 0,l[4]?+l[4]:void 0)}},JG=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,QG=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,XG=(t,e)=>{var n=JG.exec(t);if(n){if(n[3]&&n[3].indexOf(" > eval")>-1){var r=QG.exec(n[3]);r&&(n[1]=n[1]||"eval",n[3]=r[1],n[4]=r[2],n[5]="")}var i=n[3],s=n[1]||Ou;return[s,i]=VL(s,i),Lb(e,i,s,n[4]?+n[4]:void 0,n[5]?+n[5]:void 0)}},OC=/\(error: (.*)\)/;class ZG{match(e){return this.isDOMException(e)||this.isDOMError(e)}coerce(e,n){var r=Yt(e.stack);return{type:this.getType(e),value:this.getValue(e),stack:r?e.stack:void 0,cause:e.cause?n.next(e.cause):void 0,synthetic:!1}}getType(e){return this.isDOMError(e)?"DOMError":"DOMException"}getValue(e){var n=e.name||(this.isDOMError(e)?"DOMError":"DOMException");return e.message?n+": "+e.message:n}isDOMException(e){return rm(e,"DOMException")}isDOMError(e){return rm(e,"DOMError")}}class eY{match(e){return(n=>n instanceof Error)(e)}coerce(e,n){return{type:this.getType(e),value:this.getMessage(e,n),stack:this.getStack(e),cause:e.cause?n.next(e.cause):void 0,synthetic:!1}}getType(e){return e.name||e.constructor.name}getMessage(e,n){var r=e.message;return String(r.error&&typeof r.error.message=="string"?r.error.message:r)}getStack(e){return e.stacktrace||e.stack||void 0}}class tY{constructor(){}match(e){return rm(e,"ErrorEvent")&&e.error!=null}coerce(e,n){var r;return n.apply(e.error)||{type:"ErrorEvent",value:e.message,stack:(r=n.syntheticException)==null?void 0:r.stack,synthetic:!0}}}var nY=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i;class rY{match(e){return typeof e=="string"}coerce(e,n){var r,[i,s]=this.getInfos(e);return{type:i??"Error",value:s??e,stack:(r=n.syntheticException)==null?void 0:r.stack,synthetic:!0}}getInfos(e){var n="Error",r=e,i=e.match(nY);return i&&(n=i[1],r=i[2]),[n,r]}}var iY=["fatal","error","warning","log","info","debug"];function GL(t,e){e===void 0&&(e=40);var n=Object.keys(t);if(n.sort(),!n.length)return"[object has no keys]";for(var r=n.length;r>0;r--){var i=n.slice(0,r).join(", ");
342if(e>=i.length)return r===n.length?i:i.length>e?i.slice(0,e)+"...":i}return""}class sY{match(e){return typeof e=="object"&&e!==null}coerce(e,n){var r,i=this.getErrorPropertyFromObject(e);return i?n.apply(i):{type:this.getType(e),value:this.getValue(e),stack:(r=n.syntheticException)==null?void 0:r.stack,level:this.isSeverityLevel(e.level)?e.level:"error",synthetic:!0}}getType(e){return S0(e)?e.constructor.name:"Error"}getValue(e){if("name"in e&&typeof e.name=="string"){var n="'"+e.name+"' captured as exception";return"message"in e&&typeof e.message=="string"&&(n+=" with message: '"+e.message+"'"),n}if("message"in e&&typeof e.message=="string")return e.message;var r=this.getObjectClassName(e);return(r&&r!=="Object"?"'"+r+"'":"Object")+" captured as exception with keys: "+GL(e)}isSeverityLevel(e){return Yt(e)&&!_f(e)&&iY.indexOf(e)>=0}getErrorPropertyFromObject(e){for(var n in e)if({}.hasOwnProperty.call(e,n)){var r=e[n];if($G(r))return r}}getObjectClassName(e){try{var n=Object.getPrototypeOf(e);return n?n.constructor.name:void 0}catch{return}}}class oY{match(e){return S0(e)}coerce(e,n){var r,i=e.constructor.name;return{type:i,value:i+" captured as exception with keys: "+GL(e),stack:(r=n.syntheticException)==null?void 0:r.stack,synthetic:!0}}}class aY{match(e){return TL(e)}coerce(e,n){var r;return{type:"Error",value:"Primitive value captured as exception: "+String(e),stack:(r=n.syntheticException)==null?void 0:r.stack,synthetic:!0}}}class lY{match(e){return rm(e,"PromiseRejectionEvent")||this.isCustomEventWrappingRejection(e)}isCustomEventWrappingRejection(e){if(!S0(e))return!1;try{var n=e.detail;return n!=null&&typeof n=="object"&&"reason"in n}catch{return!1}}coerce(e,n){var r,i=this.getUnhandledRejectionReason(e);return TL(i)?{type:"UnhandledRejection",value:"Non-Error promise rejection captured with value: "+String(i),stack:(r=n.syntheticException)==null?void 0:r.stack,synthetic:!0}:n.apply(i)}getUnhandledRejectionReason(e){try{if("reason"in e)return e.reason;if("detail"in e&&e.detail!=null&&typeof e.detail=="object"&&"reason"in e.detail)return e.detail.reason}catch{}return e}}var sm="$message",om="$timestamp",uY=new Set([sm,om]),Uy={enabled:!0,max_bytes:32768};function am(t){var e;return t?{enabled:(e=t.enabled)!==null&&e!==void 0?e:Uy.enabled,max_bytes:dY(t.max_bytes,Uy.max_bytes)}:ue({},Uy)}class cY{constructor(e){this.Yt=[],this.Xt=0,this.qt=am(e)}setConfig(e){this.qt=am(e),this.er()}add(e){var n=(function(i){var s=(function(h){var m=new WeakSet;try{return JSON.stringify(h,((g,_)=>{if(typeof _=="bigint")return _.toString();if(typeof _!="function"&&typeof _!="symbol"){if(_ instanceof Date)return _.toISOString();if(_ instanceof Error)return{name:_.name,message:_.message,stack:_.stack};if(_&&typeof _=="object"){if(m.has(_))return"[Circular]";m.add(_)}return _}}))}catch{return}})(i);if(s)try{var l=JSON.parse(s);if(!nn(l))return;var u=l,c=u[sm],p=u[om];return!Yt(c)||c.trim().length===0||!Yt(p)&&!ni(p)?void 0:{step:u,json:s}}catch{return}})(e);if(n){var r=(function(i){if(typeof TextEncoder<"u")return new TextEncoder().encode(i).length;for(var s=encodeURIComponent(i),l=0,u=0;s.length>u;u++)s[u]==="%"?(l+=1,u+=2):l+=1;return l})(n.json);r>this.qt.max_bytes||(this.Yt.push({step:n.step,bytes:r}),this.Xt+=r,this.er())}}getAttachable(){return this.Yt.map((e=>e.step))}clear(){this.Yt=[],this.Xt=0}size(){return this.Yt.length}er(){for(;this.Xt>this.qt.max_bytes&&this.Yt.length>0;){var e=this.Yt.shift();e&&(this.Xt-=e.bytes)}}}function dY(t,e){if(!ni(t)||t===1/0||t===-1/0)return e;var n=Math.floor(t);return 0>n?e:n}var YL=function(t,e){var{debugEnabled:n}=e===void 0?{}:e,r={k(i){if(X&&(nr.DEBUG||Re.POSTHOG_DEBUG||n)&&!ve(X.console)&&X.console){for(var s=("__rrweb_original__"in X.console[i])?X.console[i].__rrweb_original__:X.console[i],l=arguments.length,u=new Array(l>1?l-1:0),c=1;l>c;c++)u[c-1]=arguments[c];s(t,...u)}},debug(){for(var i=arguments.length,s=new Array(i),l=0;i>l;l++)s[l]=arguments[l];r.k("debug",...s)},info(){for(var i=arguments.length,s=new Array(i),l=0;i>l;l++)s[l]=arguments[l];r.k("log",...s)},warn(){for(var i=arguments.length,s=new Array(i),l=0;i>l;l++)s[l]=arguments[l];r.k("warn",...s)},error(){for(var i=arguments.length,s=new Array(i),l=0;i>l;l++)s[l]=arguments[l];r.k("error",...s)},critical(){for(var i=arguments.length,s=new Array(i),l=0;i>l;l++)s[l]=arguments[l];console.error(t,...s)},uninitializedWarning(i){r.error("You must initialize PostHog before calling "+i)},createLogger:(i,s)=>YL(t+" "+i,s)};return r},he=YL("[PostHog.js]"),Bt=he.createLogger,pY=Bt("[ExternalScriptsLoader]"),zy=(t,e,n)=>{if(t.config.disable_external_dependency_loading)return pY.warn(e+" was requested but loading of external scripts is disabled."),n("Loading of external scripts is disabled");var r=fe==null?void 0:fe.querySelectorAll("script");
342if(r){for(var i,s=function(){if(r[l].src===e){var c=r[l];return c.__posthog_loading_callback_fired?{v:n()}:(c.addEventListener("load",(p=>{c.__posthog_loading_callback_fired=!0,n(void 0,p)})),c.onerror=p=>n(p),{v:void 0})}},l=0;r.length>l;l++)if(i=s())return i.v}var u=()=>{if(!fe)return n("document not found");var c=fe.createElement("script");if(c.type="text/javascript",c.crossOrigin="anonymous",c.src=e,c.onload=m=>{c.__posthog_loading_callback_fired=!0,n(void 0,m)},c.onerror=m=>n(m),t.config.prepare_external_dependency_script&&(c=t.config.prepare_external_dependency_script(c)),!c)return n("prepare_external_dependency_script returned null");if(t.config.external_scripts_inject_target==="head")fe.head.appendChild(c);else{var p,h=fe.querySelectorAll("body > script");h.length>0?(p=h[0].parentNode)==null||p.insertBefore(c,h[0]):fe.body.appendChild(c)}};fe!=null&&fe.body?u():fe==null||fe.addEventListener("DOMContentLoaded",u)};Re.__PosthogExtensions__=Re.__PosthogExtensions__||{},Re.__PosthogExtensions__.loadExternalDependency=(t,e,n)=>{if(e!=="remote-config"){var r;if(t.config.__preview_external_dependency_versioned_paths)r=t.requestRouter.endpointFor("assets","/static/"+t.version+"/"+e+".js");else{var i="/static/"+e+".js?v="+t.version;if(e==="toolbar"){var s=3e5;i=i+"&t="+Math.floor(Date.now()/s)*s}r=t.requestRouter.endpointFor("assets",i)}zy(t,r,n)}else{var l=t.requestRouter.endpointFor("assets","/array/"+t.config.token+"/config.js");zy(t,l,n)}},Re.__PosthogExtensions__.loadSiteApp=(t,e,n)=>{var r=t.requestRouter.endpointFor("api",e);zy(t,r,n)};var KL="$people_distinct_id",lm="$device_id",Qc="__alias",Xc="__timers",Mb="$autocapture_disabled_server_side",Nb="$heatmaps_enabled_server_side",Ob="$exception_capture_enabled_server_side",Db="$error_tracking_suppression_rules",jb="$error_tracking_capture_extension_exceptions",Fb="$web_vitals_enabled_server_side",T0="$dead_clicks_enabled_server_side",Ub="$product_tours_enabled_server_side",zb="$web_vitals_allowed_metrics",Zc="$session_recording_remote_config",JL="$replay_override_sampling",QL="$replay_override_linked_flag",XL="$replay_override_url_trigger",ZL="$replay_override_event_trigger",um="$sesid",P0="$session_is_sampled",su="$enabled_feature_flags",bf="$active_feature_flags",ed="$early_access_features",Bb="$feature_flag_details",$b="$feature_flag_payloads",qb="$feature_flag_request_id",ms="$override_feature_flags",Jl="$override_feature_flag_payloads",td="$stored_person_properties",ya="$stored_group_properties",Wb="$surveys",Hb="$surveys_activated",xf="ph_product_tours",md="$flag_call_reported",Vb="$flag_call_reported_session_id",Gb="$feature_flag_errors",cm="$feature_flag_evaluated_at",vi="$user_state",Yb="$client_session_props",Kb="$capture_rate_limit",Jb="$initial_campaign_params",Qb="$initial_referrer_info",dm="$initial_person_info",pm="$epp",eM="__POSTHOG_TOOLBAR__",qh="$posthog_cookieless",tM="$sdk_debug_extensions_init_method",nM="$sdk_debug_extensions_init_time_ms",rM="$sdk_debug_recording_script_not_loaded",R0="PostHog loadExternalDependency extension not found.",_a="on_reject",bs="always",Fl="anonymous",Ul="identified",Xb="identified_only",hm="visibilitychange",fm="beforeunload",Ql="$pageview",By="$pageleave",$y="$identify",DC="$groupidentify";function Wh(t,e){ft(t)&&t.forEach(e)}function jt(t,e){if(!rt(t))if(ft(t))t.forEach(e);else if(PG(t))t.forEach(((r,i)=>e(r,i)));else for(var n in t)CL.call(t,n)&&e(t[n],n)}var Zt=function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;e>r;r++)n[r-1]=arguments[r];for(var i of n)for(var s in i)i[s]!==void 0&&(t[s]=i[s]);return t};function Sf(t){for(var e=Object.keys(t),n=e.length,r=new Array(n);n--;)r[n]=[e[n],t[e[n]]];return r}var jC=function(t){try{return t()}catch{return}},hY=function(t){return function(){try{for(var e=arguments.length,n=new Array(e),r=0;e>r;r++)n[r]=arguments[r];return t.apply(this,n)}catch(i){he.critical("Implementation error. Please turn on debug mode and open a ticket on https://app.posthog.com/home#panel=support%3Asupport%3A."),he.critical(i)}}},A0=function(t){var e={};return jt(t,(function(n,r){(Yt(n)&&n.length>0||ni(n))&&(e[r]=n)})),e},fY=["herokuapp.com","vercel.app","netlify.app"];function mY(t){var e=t==null?void 0:t.hostname;if(!Yt(e))return!1;var n=e.split(".").slice(-2).join(".");for(var r of fY)if(n===r)return!1;return!0}function on(t,e,n,r){var{capture:i=!1,passive:s=!0}=r??{};t==null||t.addEventListener(e,n,{capture:i,passive:s})}
342function iM(t){return t.name==="ph_toolbar_internal"}Math.trunc||(Math.trunc=function(t){return 0>t?Math.ceil(t):Math.floor(t)}),Number.isInteger||(Number.isInteger=function(t){return ni(t)&&isFinite(t)&&Math.floor(t)===t});class mm{constructor(e){if(this.bytes=e,e.length!==16)throw new TypeError("not 128-bit length")}static fromFieldsV7(e,n,r,i){if(!Number.isInteger(e)||!Number.isInteger(n)||!Number.isInteger(r)||!Number.isInteger(i)||0>e||0>n||0>r||0>i||e>0xffffffffffff||n>4095||r>1073741823||i>4294967295)throw new RangeError("invalid field value");var s=new Uint8Array(16);return s[0]=e/Math.pow(2,40),s[1]=e/Math.pow(2,32),s[2]=e/Math.pow(2,24),s[3]=e/Math.pow(2,16),s[4]=e/Math.pow(2,8),s[5]=e,s[6]=112|n>>>8,s[7]=n,s[8]=128|r>>>24,s[9]=r>>>16,s[10]=r>>>8,s[11]=r,s[12]=i>>>24,s[13]=i>>>16,s[14]=i>>>8,s[15]=i,new mm(s)}toString(){for(var e="",n=0;this.bytes.length>n;n++)e=e+(this.bytes[n]>>>4).toString(16)+(15&this.bytes[n]).toString(16),n!==3&&n!==5&&n!==7&&n!==9||(e+="-");if(e.length!==36)throw new Error("Invalid UUIDv7 was generated");return e}clone(){return new mm(this.bytes.slice(0))}equals(e){return this.compareTo(e)===0}compareTo(e){for(var n=0;16>n;n++){var r=this.bytes[n]-e.bytes[n];if(r!==0)return Math.sign(r)}return 0}}class gY{constructor(){this.S=0,this.C=0,this.I=new vY}generate(){var e=this.generateOrAbort();if(ve(e)){this.S=0;var n=this.generateOrAbort();if(ve(n))throw new Error("Could not generate UUID after timestamp reset");return n}return e}generateOrAbort(){var e=Date.now();if(e>this.S)this.S=e,this.T();else{if(this.S>=e+1e4)return;this.C++,this.C>4398046511103&&(this.S++,this.T())}return mm.fromFieldsV7(this.S,Math.trunc(this.C/Math.pow(2,30)),this.C&Math.pow(2,30)-1,this.I.nextUint32())}T(){this.C=1024*this.I.nextUint32()+(1023&this.I.nextUint32())}}var FC,sM=t=>{if(typeof UUIDV7_DENY_WEAK_RNG<"u"&&UUIDV7_DENY_WEAK_RNG)throw new Error("no cryptographically strong RNG available");for(var e=0;t.length>e;e++)t[e]=65536*Math.trunc(65536*Math.random())+Math.trunc(65536*Math.random());return t};X&&!ve(X.crypto)&&crypto.getRandomValues&&(sM=t=>crypto.getRandomValues(t));class vY{constructor(){this.M=new Uint32Array(8),this.O=1/0}nextUint32(){return this.M.length>this.O||(sM(this.M),this.O=0),this.M[this.O++]}}var vo=()=>yY().toString(),yY=()=>(FC||(FC=new gY)).generate(),jc="",_Y=/[a-z0-9][a-z0-9-]+\.[a-z]{2,}$/i,qi={R:()=>!!fe,D(t){he.error("cookieStore error: "+t)},A(t){if(fe){try{for(var e=t+"=",n=fe.cookie.split(";").filter((s=>s.length)),r=0;n.length>r;r++){for(var i=n[r];i.charAt(0)==" ";)i=i.substring(1,i.length);if(i.indexOf(e)===0)return decodeURIComponent(i.substring(e.length,i.length))}}catch{}return null}},F(t){var e;try{e=JSON.parse(qi.A(t))||{}}catch{}return e},N(t,e,n,r,i){if(fe)try{var s="",l="",u=(function(h,m){if(m){var g=(function(x,S){if(S===void 0&&(S=fe),jc)return jc;if(!S||["localhost","127.0.0.1"].includes(x))return"";for(var w=x.split("."),C=Math.min(w.length,8),R="dmn_chk_"+vo();!jc&&C--;){var I=w.slice(C).join("."),P=R+"=1;domain=."+I+";path=/";S.cookie=P+";max-age=3",S.cookie.includes(R)&&(S.cookie=P+";max-age=0",jc=I)}return jc})(h);if(!g){var _=(x=>{var S=x.match(_Y);return S?S[0]:""})(h);_!==g&&he.info("Warning: cookie subdomain discovery mismatch",_,g),g=_}return g?"; domain=."+g:""}return""})(fe.location.hostname,r);if(n){var c=new Date;c.setTime(c.getTime()+864e5*n),s="; expires="+c.toUTCString()}i&&(l="; secure");var p=t+"="+encodeURIComponent(JSON.stringify(e))+s+"; SameSite=Lax; path=/"+u+l;return p.length>3686.4&&he.warn("cookieStore warning: large cookie, len="+p.length),fe.cookie=p,p}catch{return}},q(t,e){if(fe!=null&&fe.cookie)try{qi.N(t,"",-1,e)}catch{return}}},qy=null,Gt={R(){if(!Ms(qy))return qy;var t=!0;if(ve(X))t=!1;else try{var e="__mplssupport__";Gt.N(e,"xyz"),Gt.A(e)!=='"xyz"'&&(t=!1),Gt.q(e)}catch{t=!1}return t||he.error("localStorage unsupported; falling back to cookie store"),qy=t,t},D(t){he.error("localStorage error: "+t)},A(t){try{return X==null?void 0:X.localStorage.getItem(t)}catch(e){Gt.D(e)}return null},F(t){try{return JSON.parse(Gt.A(t))||{}}catch{}return null},N(t,e){try{X==null||X.localStorage.setItem(t,JSON.stringify(e))}catch(n){Gt.D(n)}},q(t){try{X==null||X.localStorage.removeItem(t)}catch(e){Gt.D(e)}}},bY=[lm,"distinct_id",um,P0,pm,dm,vi],Hh={},xY={R:()=>!0,D(t){he.error("memoryStorage error: "+t)},A:t=>Hh[t]||null,F:t=>Hh[t]||null,N(t,e){Hh[t]=e},q(t){delete Hh[t]}},ha=null,An={R(){if(!Ms(ha))return ha;if(ha=!0,ve(X))ha=!1;else try{var t="__support__";An.N(t,"xyz"),An.A(t)!=='"xyz"'&&(ha=!1),An.q(t)}catch{ha=!1}return ha},D(t){he.error("sessionStorage error: ",t)},A(t){try{return X==null?void 0:X.sessionStorage.getItem(t)}catch(e){An.D(e)}return null},F(t){try{return JSON.parse(An.A(t))||null}catch{}return null},N(t,e){try{X==null||X.sessionStorage.setItem(t,JSON.stringify(e))}catch(n){An.D(n)}},q(t){try{X==null||X.sessionStorage.removeItem(t)}catch(e){An.D(e)}}};class SY{constructor(e){this._instance=e}get qt(){return this._instance.config}get consent(){return this.rr()?0:this.ir}isOptedOut(){return this.qt.cookieless_mode===bs||this.isRejected()||this.consent===-1&&this.qt.cookieless_mode===_a}isOptedIn(){return!this.isOptedOut()}isExplicitlyOptedOut(){return this.consent===0}isRejected(){return this.consent===0||this.consent===-1&&this.qt.opt_out_capturing_by_default}optInOut(e){this.nr.N(this.sr,e?1:0,this.qt.cookie_expiration,this.qt.cross_subdomain_cookie,this.qt.secure_cookie)}reset(){this.nr.q(this.sr,this.qt.cross_subdomain_cookie)}get sr(){var{token:e,opt_out_capturing_cookie_prefix:n,consent_persistence_name:r}=this._instance.config;return r||(n?n+e:"__ph_opt_in_out_"+e)}get ir(){var e=this.nr.A(this.sr);return Dy(e)?1:nt(IG,e)?0:-1}get nr(){var e=this.qt.opt_out_capturing_persistence_type,n=e==="localStorage"?Gt:qi;if(!this.ar||this.ar!==n){this.ar=n;var r=e==="localStorage"?qi:Gt;r.A(this.sr)&&(this.ar.A(this.sr)||this.optInOut(Dy(r.A(this.sr))),r.q(this.sr,this.qt.cross_subdomain_cookie))}return this.ar}rr(){return!!this.qt.respect_dnt&&[Dr==null?void 0:Dr.doNotTrack,Dr==null?void 0:Dr.msDoNotTrack,Re.doNotTrack].some((e=>Dy(e)))}}var Vh=Bt("[Dead Clicks]"),wY=()=>!0,EY=t=>{var e,n=!((e=t.instance.persistence)==null||!e.get_property(T0)
342),r=t.instance.config.capture_dead_clicks;return Gi(r)?r:!!nn(r)||n};class UC{get lazyLoadedDeadClicksAutocapture(){return this.ur}constructor(e,n,r){this.instance=e,this.isEnabled=n,this.onCapture=r,this.startIfEnabledOrStop()}onRemoteConfig(e){"captureDeadClicks"in e&&(this.instance.persistence&&this.instance.persistence.register({[T0]:e.captureDeadClicks}),this.startIfEnabledOrStop())}startIfEnabledOrStop(){this.isEnabled(this)?this.lr((()=>{this.hr()})):this.stop()}lr(e){var n,r;(n=Re.__PosthogExtensions__)!=null&&n.initDeadClicksAutocapture&&e(),(r=Re.__PosthogExtensions__)==null||r.loadExternalDependency==null||r.loadExternalDependency(this.instance,"dead-clicks-autocapture",(i=>{i?Vh.error("failed to load script",i):e()}))}hr(){var e;if(fe){if(!this.ur&&(e=Re.__PosthogExtensions__)!=null&&e.initDeadClicksAutocapture){var n=nn(this.instance.config.capture_dead_clicks)?this.instance.config.capture_dead_clicks:{};n.__onCapture=this.onCapture,this.ur=Re.__PosthogExtensions__.initDeadClicksAutocapture(this.instance,n),this.ur.start(fe),Vh.info("starting...")}}else Vh.error("`document` not found. Cannot start.")}stop(){this.ur&&(this.ur.stop(),this.ur=void 0,Vh.info("stopping..."))}}var Wy=Bt("[SegmentIntegration]"),oM="posthog-js";function aM(t,e){var{organization:n,projectId:r,prefix:i,severityAllowList:s=["error"],sendExceptionsToPostHog:l=!0}=e===void 0?{}:e;return u=>{var c,p,h,m,g;if(s!=="*"&&!s.includes(u.level)||!t.__loaded)return u;u.tags||(u.tags={});var _=t.requestRouter.endpointFor("ui","/project/"+t.config.token+"/person/"+t.get_distinct_id());u.tags["PostHog Person URL"]=_,t.sessionRecordingStarted()&&(u.tags["PostHog Recording URL"]=t.get_session_replay_url({withTimestamp:!0}));var x,S=((c=u.exception)==null?void 0:c.values)||[],w=S.map((R=>ue({},R,{stacktrace:R.stacktrace?ue({},R.stacktrace,{type:"raw",frames:(R.stacktrace.frames||[]).map((I=>ue({},I,{platform:"web:javascript"})))}):void 0}))),C={$exception_message:((p=S[0])==null?void 0:p.value)||u.message,$exception_type:(h=S[0])==null?void 0:h.type,$exception_level:u.level,$exception_list:w,$sentry_event_id:u.event_id,$sentry_exception:u.exception,$sentry_exception_message:((m=S[0])==null?void 0:m.value)||u.message,$sentry_exception_type:(g=S[0])==null?void 0:g.type,$sentry_tags:u.tags};return n&&r&&(C.$sentry_url=(i||"https://sentry.io/organizations/")+n+"/issues/?project="+r+"&query="+u.event_id),l&&((x=t.exceptions)==null||x.sendExceptionEvent(C)),u}}class kY{constructor(e,n,r,i,s,l){this.name=oM,this.setupOnce=function(u){u(aM(e,{organization:n,projectId:r,prefix:i,severityAllowList:s,sendExceptionsToPostHog:l==null||l}))}}}class zC{constructor(e){this.cr=(n,r,i)=>{i&&(i.noSessionId||i.activityTimeout||i.sessionPastMaximumLength)&&(he.info("[PageViewManager] Session rotated, clearing pageview state",{sessionId:n,changeReason:i}),this.dr=void 0,this._instance.scrollManager.resetContext())},this._instance=e,this.vr()}vr(){var e;this.pr=(e=this._instance.sessionManager)==null?void 0:e.onSessionId(this.cr)}destroy(){var e;(e=this.pr)==null||e.call(this),this.pr=void 0}doPageView(e,n){var r,i=this.gr(e,n);return this.dr={pathname:(r=X==null?void 0:X.location.pathname)!==null&&r!==void 0?r:"",pageViewId:n,timestamp:e},this._instance.scrollManager.resetContext(),i}doPageLeave(e){var n;return this.gr(e,(n=this.dr)==null?void 0:n.pageViewId)}doEvent(){var e;return{$pageview_id:(e=this.dr)==null?void 0:e.pageViewId}}gr(e,n){var r=this.dr;if(!r)return{$pageview_id:n};var i={$pageview_id:n,$prev_pageview_id:r.pageViewId},s=this._instance.scrollManager.getContext();if(s&&!this._instance.config.disable_scroll_properties){var{maxScrollHeight:l,lastScrollY:u,maxScrollY:c,maxContentHeight:p,lastContentY:h,maxContentY:m}=s;if(!(ve(l)||ve(u)||ve(c)||ve(p)||ve(h)||ve(m))){l=Math.ceil(l),u=Math.ceil(u),c=Math.ceil(c),p=Math.ceil(p),h=Math.ceil(h),m=Math.ceil(m);var g=l>1?Yi(u/l,0,1,he):1,_=l>1?Yi(c/l,0,1,he):1,x=p>1?Yi(h/p,0,1,he):1,S=p>1?Yi(m/p,0,1,he):1;i=Zt(i,{$prev_pageview_last_scroll:u,$prev_pageview_last_scroll_percentage:g,$prev_pageview_max_scroll:c,$prev_pageview_max_scroll_percentage:_,$prev_pageview_last_content:h,$prev_pageview_last_content_percentage:x,$prev_pageview_max_content:m,$prev_pageview_max_content_percentage:S})}}return r.pathname&&(i.$prev_pageview_pathname=r.pathname),r.timestamp&&(i.$prev_pageview_duration=(e.getTime()-r.timestamp.getTime())/1e3),i}}var CY={[KL]:{exposure:"hidden"},[Qc]:{exposure:"hidden"},__cmpns:{exposure:"hidden"},[Xc]:{exposure:"hidden"},[Mb]:{exposure:"event"},[Nb]:{exposure:"hidden"},[Ob]:{exposure:"event"},[Db]:{exposure:"hidden"},[jb]:{exposure:"event"},[Fb]:{exposure:"event"},[T0]:{exposure:"event"},[Ub]:{exposure:"hidden"},[zb]:{exposure:"event"},[Zc]:{exposure:"hidden"},$session_recording_enabled_server_side:{exposure:"hidden"},[um]:{exposure:"hidden"}
342,[P0]:{exposure:"event"},$session_past_minimum_duration:{exposure:"event"},$session_recording_url_trigger_activated_session:{exposure:"event"},$session_recording_event_trigger_activated_session:{exposure:"event"},$debug_first_full_snapshot_timestamp:{exposure:"event"},[su]:{exposure:"derived",shouldSkipFromEventProperties:(t,e)=>e(),transformToEventProperties(t){if(!nn(t))return{};for(var e={},n=Object.keys(t),r=0;n.length>r;r++)e["$feature/"+n[r]]=t[n[r]];return e}},[bf]:{exposure:"event"},[ed]:{exposure:"hidden"},[Bb]:{exposure:"hidden"},[$b]:{exposure:"event"},[qb]:{exposure:"event"},[ms]:{exposure:"event"},[Jl]:{exposure:"hidden"},[td]:{exposure:"hidden"},[ya]:{exposure:"hidden"},[Wb]:{exposure:"hidden"},[Hb]:{exposure:"event"},[xf]:{exposure:"hidden"},$product_tours_activated:{exposure:"hidden"},$conversations_widget_session_id:{exposure:"event"},$conversations_ticket_id:{exposure:"event"},$conversations_widget_state:{exposure:"event"},$conversations_user_traits:{exposure:"event"},[md]:{exposure:"hidden"},[Vb]:{exposure:"hidden"},[Gb]:{exposure:"hidden"},[cm]:{exposure:"hidden"},[vi]:{exposure:"hidden"},[Yb]:{exposure:"hidden"},[Kb]:{exposure:"hidden"},[Jb]:{exposure:"hidden"},[Qb]:{exposure:"hidden"},[dm]:{exposure:"hidden"},[pm]:{exposure:"hidden"},[JL]:{exposure:"event"},[QL]:{exposure:"event"},[XL]:{exposure:"event"},[ZL]:{exposure:"event"},[tM]:{exposure:"event"},[nM]:{exposure:"event"},[rM]:{exposure:"event"},$sdk_debug_replay_event_trigger_status:{exposure:"event"},$sdk_debug_replay_linked_flag_trigger_status:{exposure:"event"},$sdk_debug_replay_matched_recording_trigger_groups:{exposure:"event"},$sdk_debug_replay_remote_trigger_matching_config:{exposure:"event"},$sdk_debug_replay_trigger_groups_count:{exposure:"event"},$sdk_debug_replay_url_trigger_status:{exposure:"event"},$session_recording_start_reason:{exposure:"event"}},TY=[["$posthog_sr_group_event_trigger_",{exposure:"hidden"}],["$posthog_sr_group_url_trigger_",{exposure:"hidden"}],["$posthog_sr_group_sampling_",{exposure:"hidden"}]],gm=t=>{var e=fe==null?void 0:fe.createElement("a");return ve(e)?null:(e.href=t,e)},Fd=function(t,e){for(var n,r=((t.split("#")[0]||"").split(/\?(.*)/)[1]||"").replace(/^\?+/g,"").split("&"),i=0;r.length>i;i++){var s=r[i].split("=");if(s[0]===e){n=s;break}}if(!ft(n)||2>n.length)return"";var l=n[1];try{l=decodeURIComponent(l)}catch{he.error("Skipping decoding for malformed query param: "+l)}return l.replace(/\+/g," ")},Ud=function(t,e,n){if(!t||!e||!e.length)return t;for(var r=t.split("#"),i=r[1],s=(r[0]||"").split("?"),l=s[1],u=s[0],c=(l||"").split("&"),p=[],h=0;c.length>h;h++){var m=c[h].split("=");ft(m)&&(e.includes(m[0])?p.push(m[0]+"="+n):p.push(c[h]))}var g=u;return l!=null&&(g+="?"+p.join("&")),i!=null&&(g+="#"+i),g},vm=function(t,e){var n=t.match(new RegExp(e+"=([^&]*)"));return n?n[1]:null},Gh="https?://(.*)",Du=["gclid","gclsrc","dclid","gbraid","wbraid","fbclid","msclkid","twclid","li_fat_id","igshid","ttclid","rdt_cid","epik","qclid","sccid","irclid","_kx"],PY=["utm_source","utm_medium","utm_campaign","utm_content","utm_term","gad_source","mc_cid",...Du],zd="<masked>",RY=["li_fat_id"];function lM(t,e,n){if(!fe)return{};var r,i=e?[...Du,...n||[]]:[],s=uM(Ud(fe.URL,i,zd),t),l=(r={},jt(RY,(function(u){var c=qi.A(u);r[u]=c||null})),r);return Zt(l,s)}function uM(t,e){var n=PY.concat(e||[]),r={};return jt(n,(function(i){var s=Fd(t,i);r[i]=s||null})),r}function cM(t){var e=(function(s){return s?s.search(Gh+"google.([^/?]*)")===0?"google":s.search(Gh+"bing.com")===0?"bing":s.search(Gh+"yahoo.com")===0?"yahoo":s.search(Gh+"duckduckgo.com")===0?"duckduckgo":null:null})(t),n=e!="yahoo"?"q":"p",r={};if(!Ms(e)){r.$search_engine=e;var i=fe?Fd(fe.referrer,n):"";i.length&&(r.ph_keyword=i)}return r}function BC(){return navigator.language||navigator.userLanguage}var ym="$direct";function dM(){return(fe==null?void 0:fe.referrer)||ym}function pM(t,e){var n=t?[...Du,...e||[]]:[],r=Rn==null?void 0:Rn.href.substring(0,1e3);return{r:dM().substring(0,1e3),u:r?Ud(r,n,zd):void 0}}function hM(t){var e,{r:n,u:r}=t,i={$referrer:n,$referring_domain:n==null?void 0:n==ym?ym:(e=gm(n))==null?void 0:e.host};
342if(r){i.$current_url=r;var s=gm(r);i.$host=s==null?void 0:s.host,i.$pathname=s==null?void 0:s.pathname;var l=uM(r);Zt(i,l)}if(n){var u=cM(n);Zt(i,u)}return i}function fM(){try{return Intl.DateTimeFormat().resolvedOptions().timeZone}catch{return}}function AY(){try{return new Date().getTimezoneOffset()}catch{return}}var IY=["cookie","localstorage","localstorage+cookie","sessionstorage","memory"];class Hy{constructor(e,n){this.qt=e,this.props={},this.mr=!1,this.yr=(r=>{var i="";return r.token&&(i=r.token.replace(/\+/g,"PL").replace(/\//g,"SL").replace(/=/g,"EQ")),r.persistence_name?"ph_"+r.persistence_name:"ph_"+i+"_posthog"})(e),this.nr=this.br(e),this.load(),e.debug&&he.info("Persistence loaded",e.persistence,ue({},this.props)),this.update_config(e,e,n),this.save()}isDisabled(){return!!this._r}br(e){IY.indexOf(e.persistence.toLowerCase())===-1&&(he.critical("Unknown persistence type "+e.persistence+"; falling back to localStorage+cookie"),e.persistence="localStorage+cookie");var n=(function(i){i===void 0&&(i=[]);var s=[...bY,...i];return ue({},Gt,{F(l){try{var u={};try{u=qi.F(l)||{}}catch{}var c=Zt(u,JSON.parse(Gt.A(l)||"{}"));return Gt.N(l,c),c}catch{}return null},N(l,u,c,p,h,m){try{Gt.N(l,u,void 0,void 0,m);var g={};s.forEach((_=>{u[_]&&(g[_]=u[_])})),Object.keys(g).length&&qi.N(l,g,c,p,h,m)}catch(_){Gt.D(_)}},q(l,u){try{X==null||X.localStorage.removeItem(l),qi.q(l,u)}catch(c){Gt.D(c)}}})})(e.cookie_persisted_properties||[]),r=e.persistence.toLowerCase();return r==="localstorage"&&Gt.R()?Gt:r==="localstorage+cookie"&&n.R()?n:r==="sessionstorage"&&An.R()?An:r==="memory"?xY:r==="cookie"?qi:n.R()?n:qi}wr(e){var n=e??this.qt.feature_flag_cache_ttl_ms;if(!n||0>=n)return!1;var r=this.props[cm];return!r||typeof r!="number"||Date.now()-r>n}properties(){var e={};return jt(this.props,((n,r)=>{var i=(s=>{var l=CY[s];if(l)return l;for(var[u,c]of TY)if(s.indexOf(u)===0)return c})(r);if((i==null?void 0:i.exposure)==="derived"){if(i.shouldSkipFromEventProperties!=null&&i.shouldSkipFromEventProperties(n,r===su?()=>this.wr():()=>!1))return;i.transformToEventProperties&&Zt(e,i.transformToEventProperties(n))}else i&&i.exposure!=="event"||(e[r]=n)})),e}load(){if(!this._r){var e=this.nr.F(this.yr);e&&(this.props=Zt({},e))}}save(){this._r||this.nr.N(this.yr,this.props,this.Sr,this.kr,this.Cr,this.qt.debug)}remove(){this.nr.q(this.yr,!1),this.nr.q(this.yr,!0)}clear(){this.remove(),this.props={}}register_once(e,n,r){if(nn(e)){ve(n)&&(n="None"),this.Sr=ve(r)?this.Ir:r;var i=!1;if(jt(e,((s,l)=>{this.props.hasOwnProperty(l)&&this.props[l]!==n||(this.Tr(l,s),i=!0)})),i)return this.save(),!0}return!1}register(e,n){if(nn(e)){this.Sr=ve(n)?this.Ir:n;var r=!1;if(jt(e,((i,s)=>{e.hasOwnProperty(s)&&this.props[s]!==i&&(this.Tr(s,i),r=!0)})),r)return this.save(),!0}return!1}unregister(e){e in this.props&&(this.Er(e),this.save())}update_campaign_params(){if(!this.mr){var e=lM(this.qt.custom_campaign_params,this.qt.mask_personal_data_properties,this.qt.custom_personal_data_properties);iu(A0(e))||this.register(e),this.mr=!0}}update_search_keyword(){var e;this.register((e=fe==null?void 0:fe.referrer)?cM(e):{})}update_referrer_info(){var e;this.register_once({$referrer:dM(),$referring_domain:fe!=null&&fe.referrer&&((e=gm(fe.referrer))==null?void 0:e.host)||ym},void 0)}set_initial_person_info(){this.props[Jb]||this.props[Qb]||this.register_once({[dm]:pM(this.qt.mask_personal_data_properties,this.qt.custom_personal_data_properties)},void 0)}get_initial_props(){var e={};jt([Qb,Jb],(l=>{var u=this.props[l];u&&jt(u,(function(c,p){e["$initial_"+Pb(p)]=c}))}));var n,r,i=this.props[dm];if(i){var s=(n=hM(i),r={},jt(n,(function(l,u){r["$initial_"+Pb(u)]=l})),r);Zt(e,s)}return e}safe_merge(e){return jt(this.props,(function(n,r){r in e||(e[r]=n)})),e}update_config(e,n,r){if(this.Ir=this.Sr=e.cookie_expiration,this.set_disabled(e.disable_persistence||!!r),this.set_cross_subdomain(e.cross_subdomain_cookie),this.set_secure(e.secure_cookie),e.persistence!==n.persistence||!((l,u)=>{if(l.length!==u.length)return!1;var c=[...l].sort(),p=[...u].sort();return c.every(((h,m)=>h===p[m]))}
342)(e.cookie_persisted_properties||[],n.cookie_persisted_properties||[])){var i=this.br(e),s=this.props;this.clear(),this.nr=i,this.props=s,this.save()}}set_disabled(e){this._r=e,this._r?this.remove():this.save()}set_cross_subdomain(e){e!==this.kr&&(this.kr=e,this.remove(),this.save())}set_secure(e){e!==this.Cr&&(this.Cr=e,this.remove(),this.save())}set_event_timer(e,n){var r=this.props[Xc]||{};r[e]=n,this.Tr(Xc,r),this.save()}remove_event_timer(e){var n=this.props[Xc]||{},r=n[e];return ve(r)||(delete n[e],this.Tr(Xc,n),this.save()),r}get_property(e){return this.props[e]}set_property(e,n){this.Tr(e,n),this.save()}Tr(e,n){this.props[e]=n}Er(e){delete this.props[e]}}var Fc={Activation:"events",Cancellation:"cancelEvents"},Vy={Popover:"popover",API:"api",Widget:"widget"},nd={SHOWN:"survey shown",DISMISSED:"survey dismissed",SENT:"survey sent"},Gy={SURVEY_ID:"$survey_id",SURVEY_ITERATION:"$survey_iteration",SURVEY_LAST_SEEN_DATE:"$survey_last_seen_date"},Zb={Popover:"popover",Inline:"inline"},LY={SHOWN:"product tour shown"},$C={TOUR_LAST_SEEN_DATE:"$product_tour_last_seen_date",TOUR_TYPE:"$product_tour_type"},qC=Bt("[RateLimiter]");class MY{constructor(e){this.serverLimits={},this.lastEventRateLimited=!1,this.checkForLimiting=n=>{var r=n.text;if(r&&r.length)try{(JSON.parse(r).quota_limited||[]).forEach((i=>{qC.info((i||"events")+" is quota limited."),this.serverLimits[i]=new Date().getTime()+6e4}))}catch(i){return void qC.warn('could not rate limit - continuing. Error: "'+(i==null?void 0:i.message)+'"',{text:r})}},this.instance=e,this.lastEventRateLimited=this.clientRateLimitContext(!0).isRateLimited}get captureEventsPerSecond(){var e;return((e=this.instance.config.rate_limiting)==null?void 0:e.events_per_second)||10}get captureEventsBurstLimit(){var e;return Math.max(((e=this.instance.config.rate_limiting)==null?void 0:e.events_burst_limit)||10*this.captureEventsPerSecond,this.captureEventsPerSecond)}clientRateLimitContext(e){var n,r,i;e===void 0&&(e=!1);var{captureEventsBurstLimit:s,captureEventsPerSecond:l}=this,u=new Date().getTime(),c=(n=(r=this.instance.persistence)==null?void 0:r.get_property(Kb))!==null&&n!==void 0?n:{tokens:s,last:u};c.tokens+=(u-c.last)/1e3*l,c.last=u,c.tokens>s&&(c.tokens=s);var p=1>c.tokens;return p||e||(c.tokens=Math.max(0,c.tokens-1)),!p||this.lastEventRateLimited||e||this.instance.capture("$$client_ingestion_warning",{$$client_ingestion_warning_message:"posthog-js client rate limited. Config is set to "+l+" events per second and "+s+" events burst limit."},{skip_client_rate_limiting:!0}),this.lastEventRateLimited=p,(i=this.instance.persistence)==null||i.set_property(Kb,c),{isRateLimited:p,remainingTokens:c.tokens}}isServerRateLimited(e){var n=this.serverLimits[e||"events"]||!1;return n!==!1&&new Date().getTime()<n}}var Uc=Bt("[RemoteConfig]");class mM{constructor(e){this._instance=e}get remoteConfig(){var e;return(e=Re._POSTHOG_REMOTE_CONFIG)==null||(e=e[this._instance.config.token])==null?void 0:e.config}Mr(e){var n,r;(n=Re.__PosthogExtensions__)!=null&&n.loadExternalDependency?(r=Re.__PosthogExtensions__)==null||r.loadExternalDependency==null||r.loadExternalDependency(this._instance,"remote-config",(()=>e(this.remoteConfig))):e()}Pr(e){this._instance._send_request({method:"GET",url:this._instance.requestRouter.endpointFor("assets","/array/"+this._instance.config.token+"/config"),callback(n){e(n.json)}})}load(){try{if(this.remoteConfig)return Uc.info("Using preloaded remote config",this.remoteConfig),this.Rr(this.remoteConfig),void this.Or();if(this._instance.Lr())return void Uc.warn("Remote config is disabled. Falling back to local config.");this.Mr((e=>{if(!e)return Uc.info("No config found after loading remote JS config. Falling back to JSON."),void this.Pr((n=>{this.Rr(n),this.Or()}));this.Rr(e),this.Or()}))}catch(e){Uc.error("Error loading remote config",e)}}stop(){this.Fr&&(clearInterval(this.Fr),this.Fr=void 0)}refresh(){!this._instance.Lr()&&fe&&fe.visibilityState!=="hidden"&&this._instance.reloadFeatureFlags()}Or(){var e;if(!this.Fr){var n=(e=this._instance.config.remote_config_refresh_interval_ms)!==null&&e!==void 0?e:3e5;n!==0&&(this.Fr=setInterval((()=>{this.refresh()}),n))}}Rr(e){var n;e||Uc.error("Failed to fetch remote config from PostHog."),this._instance.Rr(e??{}),(e==null?void 0:e.hasFeatureFlags)!==!1&&(this._instance.config.advanced_disable_feature_flags_on_first_load||(n=this._instance.featureFlags)==null||n.ensureFlagsLoaded())}}var $i={GZipJS:"gzip-js",Base64:"base64"},ti=Uint8Array,wr=Uint16Array,ju=Uint32Array,I0=new ti([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]),L0=new ti([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]),WC=new ti([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),gM=function(t,e){for(var n=new wr(31),r
vendor: 4,500 bytes, line 342
342=0;31>r;++r)n[r]=e+=1<<t[r-1];var i=new ju(n[30]);for(r=1;30>r;++r)for(var s=n[r];n[r+1]>s;++s)i[s]=s-n[r]<<5|r;return[n,i]},vM=gM(I0,2),ex=vM[1];vM[0][28]=258,ex[258]=28;for(var HC=gM(L0,0)[1],yM=new wr(32768),Ft=0;32768>Ft;++Ft){var zl=(43690&Ft)>>>1|(21845&Ft)<<1;yM[Ft]=((65280&(zl=(61680&(zl=(52428&zl)>>>2|(13107&zl)<<2))>>>4|(3855&zl)<<4))>>>8|(255&zl)<<8)>>>1}var gd=function(t,e,n){for(var r=t.length,i=0,s=new wr(e);r>i;++i)++s[t[i]-1];var l,u=new wr(e);for(i=0;e>i;++i)u[i]=u[i-1]+s[i-1]<<1;for(l=new wr(r),i=0;r>i;++i)l[i]=yM[u[t[i]-1]++]>>>15-t[i];return l},Ka=new ti(288);for(Ft=0;144>Ft;++Ft)Ka[Ft]=8;for(Ft=144;256>Ft;++Ft)Ka[Ft]=9;for(Ft=256;280>Ft;++Ft)Ka[Ft]=7;for(Ft=280;288>Ft;++Ft)Ka[Ft]=8;var _m=new ti(32);for(Ft=0;32>Ft;++Ft)_m[Ft]=5;var NY=gd(Ka,9),OY=gd(_m,5),_M=function(t){return(t/8>>0)+(7&t&&1)},bM=function(t,e,n){(n==null||n>t.length)&&(n=t.length);var r=new(t instanceof wr?wr:t instanceof ju?ju:ti)(n-e);return r.set(t.subarray(e,n)),r},us=function(t,e,n){var r=e/8>>0;t[r]|=n<<=7&e,t[r+1]|=n>>>8},zc=function(t,e,n){var r=e/8>>0;t[r]|=n<<=7&e,t[r+1]|=n>>>8,t[r+2]|=n>>>16},Yy=function(t,e){for(var n=[],r=0;t.length>r;++r)t[r]&&n.push({s:r,f:t[r]});var i=n.length,s=n.slice();if(!i)return[new ti(0),0];if(i==1){var l=new ti(n[0].s+1);return l[n[0].s]=1,[l,1]}n.sort((function(A,N){return A.f-N.f})),n.push({s:-1,f:25001});var u=n[0],c=n[1],p=0,h=1,m=2;for(n[0]={s:-1,f:u.f+c.f,l:u,r:c};h!=i-1;)u=n[n[m].f>n[p].f?p++:m++],c=n[p!=h&&n[m].f>n[p].f?p++:m++],n[h++]={s:-1,f:u.f+c.f,l:u,r:c};var g=s[0].s;for(r=1;i>r;++r)s[r].s>g&&(g=s[r].s);var _=new wr(g+1),x=tx(n[h-1],_,0);if(x>e){r=0;var S=0,w=x-e,C=1<<w;for(s.sort((function(A,N){return _[N.s]-_[A.s]||A.f-N.f}));i>r;++r){var R=s[r].s;if(e>=_[R])break;S+=C-(1<<x-_[R]),_[R]=e}for(S>>>=w;S>0;){var I=s[r].s;e>_[I]?S-=1<<e-_[I]++-1:++r}for(;r>=0&&S;--r){var P=s[r].s;_[P]==e&&(--_[P],++S)}x=e}return[new ti(_),x]},tx=function(t,e,n){return t.s==-1?Math.max(tx(t.l,e,n+1),tx(t.r,e,n+1)):e[t.s]=n},VC=function(t){for(var e=t.length;e&&!t[--e];);for(var n=new wr(++e),r=0,i=t[0],s=1,l=function(c){n[r++]=c},u=1;e>=u;++u)if(t[u]==i&&u!=e)++s;else{if(!i&&s>2){for(;s>138;s-=138)l(32754);s>2&&(l(s>10?s-11<<5|28690:s-3<<5|12305),s=0)}else if(s>3){for(l(i),--s;s>6;s-=6)l(8304);s>2&&(l(s-3<<5|8208),s=0)}for(;s--;)l(i);s=1,i=t[u]}return[n.subarray(0,r),e]},Bc=function(t,e){for(var n=0,r=0;e.length>r;++r)n+=t[r]*e[r];return n},nx=function(t,e,n){var r=n.length,i=_M(e+2);t[i]=255&r,t[i+1]=r>>>8,t[i+2]=255^t[i],t[i+3]=255^t[i+1];for(var s=0;r>s;++s)t[i+s+4]=n[s];return 8*(i+4+r)},GC=function(t,e,n,r,i,s,l,u,c,p,h){us(e,h++,n),++i[256];for(var m=Yy(i,15),g=m[0],_=m[1],x=Yy(s,15),S=x[0],w=x[1],C=VC(g),R=C[0],I=C[1],P=VC(S),A=P[0],N=P[1],T=new wr(19),L=0;R.length>L;++L)T[31&R[L]]++;for(L=0;A.length>L;++L)T[31&A[L]]++;for(var O=Yy(T,7),j=O[0],B=O[1],q=19;q>4&&!j[WC[q-1]];--q);var G,W,ie,se,de=p+5<<3,$=Bc(i,Ka)+Bc(s,_m)+l,Z=Bc(i,g)+Bc(s,S)+l+14+3*q+Bc(T,j)+(2*T[16]+3*T[17]+7*T[18]);if($>=de&&Z>=de)return nx(e,h,t.subarray(c,c+p));if(us(e,h,1+($>Z)),h+=2,$>Z){G=gd(g,_),W=g,ie=gd(S,w),se=S;var Q=gd(j,B);for(us(e,h,I-257),us(e,h+5,N-1),us(e,h+10,q-4),h+=14,L=0;q>L;++L)us(e,h+3*L,j[WC[L]]);h+=3*q;for(var D=[R,A],Y=0;2>Y;++Y){var le=D[Y];for(L=0;le.length>L;++L)us(e,h,Q[me=31&le[L]]),h+=j[me],me>15&&(us(e,h,le[L]>>>5&127),h+=le[L]>>>12)}}else G=NY,W=Ka,ie=OY,se=_m;for(L=0;u>L;++L)if(r[L]>255){var me;zc(e,h,G[257+(me=r[L]>>>18&31)]),h+=W[me+257],me>7&&(us(e,h,r[L]>>>23&31),h+=I0[me]);var ge=31&r[L];zc(e,h,ie[ge]),h+=se[ge],ge>3&&(zc(e,h,r[L]>>>5&8191),h+=L0[ge])}else zc(e,h,G[r[L]]),h+=W[r[L]];return zc(e,h,G[256]),h+W[256]},DY=new ju([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),jY=(function(){for(var t=new ju(256),e=0;256>e;++e){for(var n=e,r=9;--r;)n=(1&n&&3988292384)^n>>>1;t[e]=n}return t})(),Ky=function(t,e,n){for(;n;++e)t[e]=n,n>>>=8};function FY(t,e){e===void 0&&(e={});var n=(function(){var m=4294967295;return{p(g){for(var _=m,x=0;g.length>x;++x)_=jY[255&_^g[x]]^_>>>8;m=_},d(){return 4294967295^m}}})(),r=t.length;n.p(t);var i,s,l,u,c,p=(u=10+((i=e).filename&&i.filename.length+1||0),c=8,(function(m,g,_,x,S,w){var C=m.length,R=new ti(x+C+5*(1+Math.floor(C/7e3))+S),I=R.subarray(x,R.length-S),P=0;if(!g||8>C)for(var A=0;C>=A;A+=65535){var N=A+65535;C>N?P=nx(I,P,m.subarray(A,N)):(I[A]=!0,P=nx(I,P,m.subarray(A,C)))}else{for(var T=DY[g-1],L=T>>>13,O=8191&T,j=(1<<_)-1,B=new wr(32768),q=new wr(j+1),G=Math.ceil(_/3),W=2*G,ie=function(Mt){return(m[Mt]^m[Mt+1]<<G^m[Mt+2]<<W)&j}
342,se=new ju(25e3),de=new wr(288),$=new wr(32),Z=0,Q=0,D=(A=0,0),Y=0,le=0;C>A;++A){var me=ie(A),ge=32767&A,Ie=q[me];if(B[ge]=Ie,q[me]=ge,A>=Y){var je=C-A;if((Z>7e3||D>24576)&&je>423){P=GC(m,I,0,se,de,$,Q,D,le,A-le,P),D=Z=Q=0,le=A;for(var Le=0;286>Le;++Le)de[Le]=0;for(Le=0;30>Le;++Le)$[Le]=0}var qe=2,yt=0,vn=O,ln=ge-Ie&32767;if(je>2&&me==ie(A-ln))for(var Pi=Math.min(L,je)-1,Cn=Math.min(32767,A),Hn=Math.min(258,je);Cn>=ln&&--vn&&ge!=Ie;){if(m[A+qe]==m[A+qe-ln]){for(var un=0;Hn>un&&m[A+un]==m[A+un-ln];++un);if(un>qe){if(qe=un,yt=ln,un>Pi)break;var ri=Math.min(ln,un-2),kr=0;for(Le=0;ri>Le;++Le){var Qe=A-ln+Le+32768&32767,We=Qe-B[Qe]+32768&32767;We>kr&&(kr=We,Ie=Qe)}}}ln+=(ge=Ie)-(Ie=B[ge])+32768&32767}if(yt){se[D++]=268435456|ex[qe]<<18|HC[yt];var Lt=31&ex[qe],Ae=31&HC[yt];Q+=I0[Lt]+L0[Ae],++de[257+Lt],++$[Ae],Y=A+qe,++Z}else se[D++]=m[A],++de[m[A]]}}P=GC(m,I,!0,se,de,$,Q,D,le,A-le,P)}return bM(R,0,x+_M(P)+S)})(s=t,(l=e).level==null?6:l.level,l.mem==null?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(s.length)))):12+l.mem,u,c)),h=p.length;return(function(m,g){var _=g.filename;if(m[0]=31,m[1]=139,m[2]=8,m[8]=2>g.level?4:g.level==9?2:0,m[9]=3,g.mtime!=0&&Ky(m,4,Math.floor(new Date(g.mtime||Date.now())/1e3)),_){m[3]=8;for(var x=0;_.length>=x;++x)m[x+10]=_.charCodeAt(x)}})(p,e),Ky(p,h-8,n.d()),Ky(p,h-4,r),p}var UY=!!kb||!!Eb,xM="text/plain",wf=!1,zY=(t,e)=>{var[n,r]=t.split("#"),[i,s]=n.split("?");if(!s)return t;var l=s.split("&").filter((u=>u.split("=")[0]!==e)).join("&");return i+(l?"?"+l:"")+(r?"#"+r:"")},ig=function(t,e,n){var r;n===void 0&&(n=!0);var[i,s]=t.split("?"),l=ue({},e),u=(r=s==null?void 0:s.split("&").map((p=>{var h,[m,g]=p.split("="),_=n&&(h=l[m])!==null&&h!==void 0?h:g;return delete l[m],m+"="+_})))!==null&&r!==void 0?r:[],c=(function(p,h){var m,g;h===void 0&&(h="&");var _=[];return jt(p,(function(x,S){ve(x)||ve(S)||S==="undefined"||(m=encodeURIComponent((w=>w instanceof File)(x)?x.name:x.toString()),g=encodeURIComponent(S),_[_.length]=g+"="+m)})),_.join(h)})(l);return c&&u.push(c),i+"?"+u.join("&")},ou=(t,e)=>JSON.stringify(t,((n,r)=>typeof r=="bigint"?r.toString():r),e),YC=t=>{if(t.tr)return t.tr;var{data:e,compression:n}=t;if(e){if(n===$i.GZipJS){var r=FY((function(u,c){var p=u.length;if(typeof TextEncoder<"u")return new TextEncoder().encode(u);for(var h=new ti(u.length+(u.length>>>1)),m=0,g=function(w){h[m++]=w},_=0;p>_;++_){if(m+5>h.length){var x=new ti(m+8+(p-_<<1));x.set(h),h=x}var S=u.charCodeAt(_);128>S?g(S):2048>S?(g(192|S>>>6),g(128|63&S)):S>55295&&57344>S?(g(240|(S=65536+(1047552&S)|1023&u.charCodeAt(++_))>>>18),g(128|S>>>12&63),g(128|S>>>6&63),g(128|63&S)):(g(224|S>>>12),g(128|S>>>6&63),g(128|63&S))}return bM(h,0,m)})(ou(e)),{mtime:0});return{contentType:xM,body:r.buffer.slice(r.byteOffset,r.byteOffset+r.byteLength),estimatedSize:r.byteLength}}if(n===$i.Base64){var i=(function(u){return u&&btoa(encodeURIComponent(u).replace(/%([0-9A-F]{2})/g,((c,p)=>String.fromCharCode(parseInt(p,16)))))})(ou(e)),s=(u=>"data="+encodeURIComponent(typeof u=="string"?u:ou(u)))(i);return{contentType:"application/x-www-form-urlencoded",body:s,estimatedSize:new Blob([s]).size}}var l=ou(e);return{contentType:"application/json",body:l,estimatedSize:new Blob([l]).size}}},Jy=t=>{var e,n,r,i=YC(t);return!i||(n=t.compression,r=Fd(t.url,"compression"),n!==TC.GZipJS&&r!==TC.GZipJS&&r!=="gzip")||((e=i.body)instanceof ArrayBuffer?Cb(new Uint8Array(e)):ArrayBuffer.isView(e)&&Cb(new Uint8Array(e.buffer,e.byteOffset,e.byteLength)))?{url:t.url,encodedBody:i}:(wf=!0,{url:zY(t.url,"compression"),encodedBody:YC(ue({},t,{compression:void 0,tr:void 0}))})},BY=(function(){var t=Nr((function*(e){var n=ou(e.data),r=yield(function(s,l,u){return Tb.apply(this,arguments)})(n,nr.DEBUG,{rethrow:!0});if(!r)return e;var i=yield r.arrayBuffer();return ue({},e,{tr:{contentType:xM,body:i,estimatedSize:i.byteLength}})}));return function(e){return t.apply(this,arguments)}})(),KC=(t,e)=>ig(t,{_:new Date().getTime().toString(),ver:nr.JS_SDK_VERSION,compression:e}),Ef=[];Eb&&Ef.push({transport:"fetch",method(t){var e,{url:n,encodedBody:r}=Jy(t),{contentType:i,body:s,estimatedSize:l}=r??{},u=new Headers;jt(t.headers,(function(h,m){u.append(m,h)})),i&&u.append("Content-Type",i);var c=null;if(EC){var p=new EC;c={signal:p.signal,timeout:setTimeout((()=>p.abort()),t.timeout)}}Eb(n,ue({method:(t==null?void 0:t.method)||"GET",headers:u,keepalive:t.method==="POST"&&52428.8>(l||0),body:s,signal:(e=c)==null?void 0:e.signal},t.fetchOptions)).then((h=>h.text().then((m=>{var g={statusCode:h.status,text:m};if(h.status===200)try{g.json=JSON.parse(m)}catch(_){he.error(_)}t.callback==null||t.callback(g)})))).catch((h=>{he.error(h),t.callback==null||t.callback({statusCode:0,error:h})})).finally((()=>c?clearTimeout(c.timeout):null))}}),kb&&Ef.push({transport:"XHR",method(t){var e=new kb,{url:n,encodedBody:r}=Jy(t);e.open(t.method||"GET",n,!0);var{contentType:i,body:s}=r??{};jt(t.headers,(function(l,u){e.setRequestHeader(u,l)})),i&&e.setRequestHeader("Content-Type",i),t.timeout&&(e.timeout=t.timeout),t.disableXHRCredentials||(e.withCredentials=!0),e.onreadystatechange=()=>{if(e.readyState===4){var l={statusCode:e.status,text:e.responseText};if(e.status===200)try{l.json=JSON.parse(e.responseText)}catch{}t.callback==null||t.callback(l)}},e.send(s)}}),Dr!=null&&Dr.sendBeacon&&Ef.push({transport:"sendBeacon",method(t){try{var{url:e,encodedBody:n}=Jy(t),r=ig(e,{beacon:"1"}),{contentType:i,body:s}=n??{};if(!s)return;var l=s instanceof Blob?s:new Blob([s],{type:i});Dr.sendBeacon(r,l)}catch{}}});var rx=3e3;class $Y{constructor(e,n){this.Ar=!0,this.Nr=[],this.$r=Yi((n==null?void 0:n.flush_interval_ms)||rx,250,5e3,he.createLogger("flush interval"),rx),this.Dr=e}enqueue(e){this.Nr.push(e),this.qr||this.jr()}unload(){this.Hr();var e=this.Nr.length>0?this.Ur():{},n=Object.values(e);[...n.filter((r=>r.url.indexOf("/e")===0)),...n.filter((r=>r.url.indexOf("/e")!==0))].map((r=>{this.Dr(ue({},r,{transport:"sendBeacon"}))}))}enable(){this.Ar=!1,this.jr()}jr(){var e=this;this.Ar||(this.qr=setTimeout((()=>
342{if(this.Hr(),this.Nr.length>0){var n=this.Ur(),r=function(){var s=n[i],l=new Date().getTime();s.data&&ft(s.data)&&jt(s.data,(u=>{u.offset=Math.abs(u.timestamp-l),delete u.timestamp})),e.Dr(s)};for(var i in n)r()}}),this.$r))}Hr(){clearTimeout(this.qr),this.qr=void 0}Ur(){var e={};return jt(this.Nr,(n=>{var r,i=n,s=(i?i.batchKey:null)||i.url;ve(e[s])&&(e[s]=ue({},i,{data:[]})),(r=e[s].data)==null||r.push(i.data)})),this.Nr=[],e}}var qY=["retriesPerformedSoFar"];class WY{constructor(e){this.Br=!1,this.zr=3e3,this.Nr=[],this._instance=e,this.Nr=[],this.Vr=!0,!ve(X)&&"onLine"in X.navigator&&(this.Vr=X.navigator.onLine,this.Wr=()=>{this.Vr=!0,this.Zr()},this.Gr=()=>{this.Vr=!1},on(X,"online",this.Wr),on(X,"offline",this.Gr))}get length(){return this.Nr.length}retriableRequest(e){var{retriesPerformedSoFar:n}=e,r=wL(e,qY);Kl(n)&&(r.url=ig(r.url,{retry_count:n})),this._instance._send_request(ue({},r,{callback:i=>{i.statusCode===200||i.statusCode>=400&&500>i.statusCode||(n??0)>=10?r.callback==null||r.callback(i):this.Qr(ue({retriesPerformedSoFar:n},r))}}))}Qr(e){var n=e.retriesPerformedSoFar||0;e.retriesPerformedSoFar=n+1;var r=(function(l){var u=3e3*Math.pow(2,l),c=u/2,p=Math.min(18e5,u),h=Math.random()-.5;return Math.ceil(p+h*(p-c))})(n),i=Date.now()+r;this.Nr.push({retryAt:i,requestOptions:e});var s="Enqueued failed request for retry in "+r;navigator.onLine||(s+=" (Browser is offline)"),he.warn(s),this.Br||(this.Br=!0,this.Jr())}Jr(){if(this.Kr&&clearTimeout(this.Kr),this.Nr.length===0)return this.Br=!1,void(this.Kr=void 0);this.Kr=setTimeout((()=>{this.Vr&&this.Nr.length>0&&this.Zr(),this.Jr()}),this.zr)}Zr(){var e=Date.now(),n=[],r=this.Nr.filter((s=>e>s.retryAt||(n.push(s),!1)));if(this.Nr=n,r.length>0)for(var{requestOptions:i}of r)this.retriableRequest(i)}unload(){for(var{requestOptions:e}of(this.Kr&&(clearTimeout(this.Kr),this.Kr=void 0),this.Br=!1,ve(X)||(this.Wr&&(X.removeEventListener("online",this.Wr),this.Wr=void 0),this.Gr&&(X.removeEventListener("offline",this.Gr),this.Gr=void 0)),this.Nr))try{this._instance._send_request(ue({},e,{transport:"sendBeacon"}))}catch(n){he.error(n)}this.Nr=[]}}class HY{constructor(e){this.Yr=()=>{var n,r,i,s;this.Xr||(this.Xr={});var l=this.scrollElement(),u=this.scrollY(),c=l?Math.max(0,l.scrollHeight-l.clientHeight):0,p=u+((l==null?void 0:l.clientHeight)||0),h=(l==null?void 0:l.scrollHeight)||0;this.Xr.lastScrollY=Math.ceil(u),this.Xr.maxScrollY=Math.max(u,(n=this.Xr.maxScrollY)!==null&&n!==void 0?n:0),this.Xr.maxScrollHeight=Math.max(c,(r=this.Xr.maxScrollHeight)!==null&&r!==void 0?r:0),this.Xr.lastContentY=p,this.Xr.maxContentY=Math.max(p,(i=this.Xr.maxContentY)!==null&&i!==void 0?i:0),this.Xr.maxContentHeight=Math.max(h,(s=this.Xr.maxContentHeight)!==null&&s!==void 0?s:0)},this._instance=e}get ei(){return this._instance.config.scroll_root_selector}getContext(){return this.Xr}resetContext(){var e=this.Xr;return setTimeout(this.Yr,0),e}startMeasuringScrollPosition(){on(X,"scroll",this.Yr,{capture:!0}),on(X,"scrollend",this.Yr,{capture:!0}),on(X,"resize",this.Yr)}scrollElement(){if(!this.ei)return X==null?void 0:X.document.documentElement;var e=ft(this.ei)?this.ei:[this.ei];for(var n of e){var r=X==null?void 0:X.document.querySelector(n);if(r)return r}}scrollY(){if(this.ei){var e=this.scrollElement();return e&&e.scrollTop||0}return X&&(X.scrollY||X.pageYOffset||X.document.documentElement.scrollTop)||0}scrollX(){if(this.ei){var e=this.scrollElement();return e&&e.scrollLeft||0}return X&&(X.scrollX||X.pageXOffset||X.document.documentElement.scrollLeft)||0}}var VY=t=>pM(t==null?void 0:t.config.mask_personal_data_properties,t==null?void 0:t.config.custom_personal_data_properties);class JC{constructor(e,n,r,i){this.ti=s=>{var l=this.ri();if(!l||l.sessionId!==s){var u={sessionId:s,props:this.ii(this._instance)};this.ni.register({[Yb]:u})}},this._instance=e,this.si=n,this.ni=r,this.ii=i||VY,this.si.onSessionId(this.ti)}ri(){return this.ni.props[Yb]}getSetOnceProps(){var e,n=(e=this.ri())==null?void 0:e.props;return n?"r"in n?hM(n):{$referring_domain:n.referringDomain,$pathname:n.initialPathName,utm_source:n.utm_source,utm_campaign:n.utm_campaign,utm_medium:n.utm_medium,utm_content:n.utm_content,utm_term:n.utm_term}:{}}getSessionProps(){var e={};return jt(A0(this.getSetOnceProps()),((n,r)=>{r==="$current_url"&&(r="url"),e["$session_entry_"+Pb(r)]=n})),e}}class M0{constructor(){this.oi={}}on(e,n){return this.oi[e]||(this.oi[e]=[]),this.oi[e].push(n),()=>{this.oi[e]=this.oi[e].filter((r=>r!==n))}}emit(e,n){for(var r of this.oi[e]||[])r(n);for(var i of this.oi["*"]||[])i(e,n)}}var Qy=Bt("[SessionId]");class QC{on(e,n){return this.ai.on(e,n)}constructor(e,n,r){var i;if(this.ui=[],this.li=void 0,this.ai=new M0,this.hi=(p,h)=>!(!Kl(p)||!Kl(h))&&Math.abs(p-h)>
342this.sessionTimeoutMs,!e.persistence)throw new Error("SessionIdManager requires a PostHogPersistence instance");if(e.config.cookieless_mode===bs)throw new Error('SessionIdManager cannot be used with cookieless_mode="always"');this.qt=e.config,this.ni=e.persistence,this.ci=void 0,this.di=void 0,this._sessionStartTimestamp=null,this._sessionActivityTimestamp=null,this.vi=n||vo,this.fi=r||vo;var s=this.qt.persistence_name||this.qt.token;if(this._sessionTimeoutMs=1e3*Yi(this.qt.session_idle_timeout_seconds||1800,60,36e3,Qy.createLogger("session_idle_timeout_seconds"),1800),e.register({$configured_session_timeout_ms:this._sessionTimeoutMs}),this.pi(),this.gi="ph_"+s+"_window_id",this.mi="ph_"+s+"_primary_window_exists",this.yi()){var l=An.F(this.gi),u=An.F(this.mi);l&&!u?this.ci=l:An.q(this.gi),An.N(this.mi,!0)}if((i=this.qt.bootstrap)!=null&&i.sessionID)try{var c=(p=>{var h=this.qt.bootstrap.sessionID.replace(/-/g,"");if(h.length!==32)throw new Error("Not a valid UUID");if(h[12]!=="7")throw new Error("Not a UUIDv7");return parseInt(h.substring(0,12),16)})();this.bi(this.qt.bootstrap.sessionID,new Date().getTime(),c)}catch(p){Qy.error("Invalid sessionID in bootstrap",p)}this.wi()}get sessionTimeoutMs(){return this._sessionTimeoutMs}onSessionId(e){return ve(this.ui)&&(this.ui=[]),this.ui.push(e),this.di&&e(this.di,this.ci),()=>{this.ui=this.ui.filter((n=>n!==e))}}yi(){return this.qt.persistence!=="memory"&&!this.ni._r&&An.R()}xi(e){e!==this.ci&&(this.ci=e,this.yi()&&An.N(this.gi,e))}Si(){return this.ci?this.ci:this.yi()?An.F(this.gi):null}bi(e,n,r){e===this.di&&n===this._sessionActivityTimestamp&&r===this._sessionStartTimestamp||(this._sessionStartTimestamp=r,this._sessionActivityTimestamp=n,this.di=e,this.ni.register({[um]:[n,e,r]}))}ki(){var e=this.ni.props[um];return ft(e)&&e.length===2&&e.push(e[0]),e||[0,null,0]}resetSessionId(){this.bi(null,null,null)}destroy(){clearTimeout(this.Ci),this.Ci=void 0,this.li&&X&&(X.removeEventListener(fm,this.li,{capture:!1}),this.li=void 0),this.ui=[]}wi(){this.li=()=>{this.yi()&&An.q(this.mi)},on(X,fm,this.li,{capture:!1})}checkAndGetSessionAndWindowId(e,n){if(e===void 0&&(e=!1),n===void 0&&(n=null),this.qt.cookieless_mode===bs)throw new Error('checkAndGetSessionAndWindowId should not be called with cookieless_mode="always"');var r=n||new Date().getTime(),[i,s,l]=this.ki(),u=this.Si(),c=Kl(l)&&Math.abs(r-l)>864e5,p=!1,h=!s,m=!h&&!e&&this.hi(r,i);h||m||c?(s=this.vi(),u=this.fi(),Qy.info("new session ID generated",{sessionId:s,windowId:u,changeReason:{noSessionId:h,activityTimeout:m,sessionPastMaximumLength:c}}),l=r,p=!0):u||(u=this.fi(),p=!0);var g=Kl(i)&&e&&!c?i:r,_=Kl(l)?l:new Date().getTime();return this.xi(u),this.bi(s,g,_),e||this.pi(),p&&this.ui.forEach((x=>x(s,u,p?{noSessionId:h,activityTimeout:m,sessionPastMaximumLength:c}:void 0))),{sessionId:s,windowId:u,sessionStartTimestamp:_,changeReason:p?{noSessionId:h,activityTimeout:m,sessionPastMaximumLength:c}:void 0,lastActivityTimestamp:i}}pi(){clearTimeout(this.Ci),this.Ci=setTimeout((()=>{var[e]=this.ki();if(this.hi(new Date().getTime(),e)){var n=this.di;this.resetSessionId(),this.ai.emit("forcedIdleReset",{idleSessionId:n})}}),1.1*this.sessionTimeoutMs)}}var SM=function(t,e){if(!t)return!1;var n=t.userAgent;if(n&&RC(n,e))return!0;try{var r=t==null?void 0:t.userAgentData;if(r!=null&&r.brands&&r.brands.some((i=>RC(i==null?void 0:i.brand,e))))return!0}catch{}return!!t.webdriver},bm=function(t,e){if(!(function(n){try{new RegExp(n)}catch{return!1}return!0})(e))return!1;try{return new RegExp(e).test(t)}catch{return!1}};function XC(t,e,n){return ou({distinct_id:t,userPropertiesToSet:e,userPropertiesToSetOnce:n})}var wM={exact:(t,e)=>e.some((n=>t.some((r=>n===r)))),is_not:(t,e)=>e.every((n=>t.every((r=>n!==r)))),regex:(t,e)=>e.some((n=>t.some((r=>bm(n,r))))),not_regex:(t,e)=>e.every((n=>t.every((r=>!bm(n,r))))),icontains:(t,e)=>e.map(Yh).some((n=>t.map(Yh).some((r=>n.includes(r))))),not_icontains:(t,e)=>e.map(Yh).every((n=>t.map(Yh).every((r=>!n.includes(r))))),gt:(t,e)=>e.some((n=>{var r=parseFloat(n);return!isNaN(r)&&t.some((i=>r>parseFloat(i)))})),lt:(t,e)=>e.some((n=>{var r=parseFloat(n);return!isNaN(r)&&t.some((i=>r<parseFloat(i)))}))},Yh=t=>t.toLowerCase();function EM(t,e){return!t||Object.entries(t).every((n=>{var[r,i]=n,s=e==null?void 0:e[r];if(ve(s)||Ms(s))return!1;var l=[String(s)],u=wM[i.operator];return!!u&&u(i.values,l)}))}var ix="custom",ZC="i.posthog.com",GY=/^\/static\//;class YY{constructor(e){this.Ii={},this.instance=e}get apiHost(){var e=this.instance.config.api_host.trim().replace(/\/$/,"");return e==="https://app.posthog.com"?"https://us.i.posthog.com":e}get flagsApiHost(){var e=this.instance.config.flags_api_host;return e?e.trim().replace(/\/$/,""):this.apiHost}get uiHost(){var e,n=(e=this.instance.config.ui_host)==null?void 0:e.replace(/\/$/,"");return n||(n=this.apiHost.replace("."+ZC,".posthog.com")),n==="https://app.posthog.com"?"https://us.posthog.com":n}
342get region(){return this.Ii[this.apiHost]||(this.Ii[this.apiHost]=/https:\/\/(app|us|us-assets)(\.i)?\.posthog\.com/i.test(this.apiHost)?"us":/https:\/\/(eu|eu-assets)(\.i)?\.posthog\.com/i.test(this.apiHost)?"eu":ix),this.Ii[this.apiHost]}Ti(e){var n=this.instance.config.__preview_external_dependency_versioned_paths;if(typeof n=="string"&&GY.test(e))return n.trim().replace(/\/$/,"")||void 0}endpointFor(e,n){if(n===void 0&&(n=""),n&&(n=n[0]==="/"?n:"/"+n),e==="ui")return this.uiHost+n;if(e==="flags")return this.flagsApiHost+n;if(e==="assets"){var r=this.Ti(n);if(r)return""+r+n}if(this.region===ix)return this.apiHost+n;var i=ZC+n;switch(e){case"assets":return"https://"+this.region+"-assets."+i;case"api":return"https://"+this.region+"."+i}}}var Et=Bt("[Surveys]"),sx="seenSurvey_",KY=[Vy.Popover,Vy.Widget,Vy.API],JY={ignoreConditions:!1,ignoreDelay:!1,displayType:Zb.Popover},QY=Bt("[PostHog ExternalIntegrations]"),XY={intercom:"intercom-integration",crispChat:"crisp-chat-integration"};class ZY{constructor(e){this._instance=e}lr(e,n){var r;(r=Re.__PosthogExtensions__)==null||r.loadExternalDependency==null||r.loadExternalDependency(this._instance,e,(i=>{if(i)return QY.error("failed to load script",i);n()}))}startIfEnabledOrStop(){var e=this,n=function(l){var u,c,p;!i||(u=Re.__PosthogExtensions__)!=null&&(u=u.integrations)!=null&&u[l]||e.lr(XY[l],(()=>{var h;(h=Re.__PosthogExtensions__)==null||(h=h.integrations)==null||(h=h[l])==null||h.start(e._instance)})),!i&&(c=Re.__PosthogExtensions__)!=null&&(c=c.integrations)!=null&&c[l]&&((p=Re.__PosthogExtensions__)==null||(p=p.integrations)==null||(p=p[l])==null||p.stop())};for(var[r,i]of Object.entries((s=this._instance.config.integrations)!==null&&s!==void 0?s:{})){var s;n(r)}}}var Bl,vd={},Xy=0,ox=()=>{},eT='Consent opt in/out is not valid with cookieless_mode="always" and will be ignored',$c="Surveys module not available",tT="sanitize_properties is deprecated. Use before_send instead",kM="Invalid value for property_denylist config: ",Xl="posthog",CM=!UY&&(_r==null?void 0:_r.indexOf("MSIE"))===-1&&(_r==null?void 0:_r.indexOf("Mozilla"))===-1,nT=t=>{var e;return ue({api_host:"https://us.i.posthog.com",flags_api_host:null,ui_host:null,token:"",autocapture:!0,cross_subdomain_cookie:mY(fe==null?void 0:fe.location),persistence:"localStorage+cookie",persistence_name:"",cookie_persisted_properties:[],loaded:ox,save_campaign_params:!0,custom_campaign_params:[],custom_blocked_useragents:[],save_referrer:!0,capture_pageleave:"if_capture_pageview",defaults:t??"unset",__preview_deferred_init_extensions:!1,__preview_external_dependency_versioned_paths:!1,debug:Rn&&Yt(Rn==null?void 0:Rn.search)&&Rn.search.indexOf("__posthog_debug=true")!==-1||!1,cookie_expiration:365,upgrade:!1,disable_session_recording:!1,disable_persistence:!1,disable_web_experiments:!0,disable_surveys:!1,disable_surveys_automatic_display:!1,disable_conversations:!1,disable_product_tours:!1,disable_external_dependency_loading:!1,enable_recording_console_log:void 0,secure_cookie:(X==null||(e=X.location)==null?void 0:e.protocol)==="https:",ip:!1,opt_out_capturing_by_default:!1,opt_out_persistence_by_default:!1,opt_out_useragent_filter:!1,opt_out_capturing_persistence_type:"localStorage",consent_persistence_name:null,opt_out_capturing_cookie_prefix:null,opt_in_site_apps:!1,property_denylist:[],respect_dnt:!1,sanitize_properties:null,request_headers:{},request_batching:!0,properties_string_max_length:65535,mask_all_element_attributes:!1,mask_all_text:!1,mask_personal_data_properties:!1,custom_personal_data_properties:[],advanced_disable_flags:!1,advanced_disable_decide:!1,advanced_disable_feature_flags:!1,advanced_disable_feature_flags_on_first_load:!1,advanced_only_evaluate_survey_feature_flags:!1,advanced_feature_flags_dedup_per_session:!1,advanced_enable_surveys:!1,advanced_disable_toolbar_metrics:!1,feature_flag_request_timeout_ms:3e3,surveys_request_timeout_ms:1e4,on_request_error(n){he.error("Bad HTTP status: "+n.statusCode+" "+n.text)},get_device_id:n=>n,capture_performance:void 0,name:"posthog",bootstrap:{},disable_compression:!1,session_idle_timeout_seconds:1800,person_profiles:Xb,before_send:void 0,request_queue_config:{flush_interval_ms:rx},error_tracking:{},_onCapture:ox,__preview_eager_load_replay:!1},(n=>({rageclick:!n||"2025-11-30">n||{content_ignorelist:!0},capture_pageview:!n||"2025-05-24">n||"history_change",session_recording:n&&n>="2025-11-30"?{strictMinimumDuration:!0}:{},external_scripts_inject_target:n&&n>="2026-01-30"?"head":"body",internal_or_test_user_hostname:n&&n>="2026-01-30"?/^(localhost|127\.0\.0\.1)$/:void 0}))(t))},eK=[["process_person","person_profiles"],["xhr_headers","request_headers"],["cookie_name","persistence_name"],["disable_cookie","disable_persistence"],["store_google","save_campaign_params"],["verbose","debug"]],rT=t=>{var e={};for(var[n,r]of eK)ve(t[n])||(e[r]=t[n]);var i=Zt({},e,t);return ft(t.property_blacklist)&&(ve(t.property_denylist)?i.property_denylist=t.property_blacklist:ft(t.property_denylist)?i.property_denylist=[...t.property_blacklist,...t.property_denylist]:he.error(kM+t.property_denylist)),i};class tK{constructor(){this.__forceAllowLocalhost=!1}get Ei(){return this.__forceAllowLocalhost}set Ei(e){he.error("WebPerformanceObserver is deprecated and has no impact on network capture. Use `_forceAllowLocalhostNetworkCapture` on `posthog.sessionRecording`"),this.__forceAllowLocalhost=e}}class Zr{Mi(e,n){if(e){var r=this.Pi.indexOf(e);r!==-1&&this.Pi.splice(r,1)}return this.Pi.push(n),n.initialize==null||n.initialize(),n}Ri(){return this.config.cookieless_mode===bs||this.config.cookieless_mode===_a&&this.consent.isRejected()}get decideEndpointWasHit(){var e,n;return(e=(n=this.featureFlags)==null?void 0:n.hasLoadedFlags)!==null&&e!==void 0&&e}get flagsEndpointWasHit(){var e,n;return(e=(n=this.featureFlags)==null?void 0:n.hasLoadedFlags)!==null&&e!==void 0&&e}constructor(){var e;this.webPerformance=new tK,this.Oi=!1,this.version=nr.LIB_VERSION,this.Li=new M0,this.Pi=[],this._calculate_event_properties=this.calculateEventProperties.bind(this),this.config=nT(),this.SentryIntegration=kY,this.sentryIntegration=r=>(function(i,s){var l=aM(i,s);return{name:oM,processEvent:u=>l(u)}})(this,r),this.__request_queue=[],this.__loaded=!1,this.analyticsDefaultEndpoint="/e/",this.Fi=!1,this.Ai=null,this.Ni=null,this.$i=null,this.scrollManager=new HY(this),this.pageViewM
342anager=new zC(this),this.rateLimiter=new MY(this),this.requestRouter=new YY(this),this.consent=new SY(this),this.externalIntegrations=new ZY(this);var n=(e=Zr.__defaultExtensionClasses)!==null&&e!==void 0?e:{};this.featureFlags=n.featureFlags&&new n.featureFlags(this),this.toolbar=n.toolbar&&new n.toolbar(this),this.surveys=n.surveys&&new n.surveys(this),this.conversations=n.conversations&&new n.conversations(this),this.logs=n.logs&&new n.logs(this),this.experiments=n.experiments&&new n.experiments(this),this.exceptions=n.exceptions&&new n.exceptions(this),this.people={set:(r,i,s)=>{var l=Yt(r)?{[r]:i}:r;this.setPersonProperties(l),s==null||s({})},set_once:(r,i,s)=>{var l=Yt(r)?{[r]:i}:r;this.setPersonProperties(void 0,l),s==null||s({})}},this.on("eventCaptured",(r=>he.info('send "'+(r==null?void 0:r.event)+'"',r)))}init(e,n,r){if(r&&r!==Xl){var i,s=(i=vd[r])!==null&&i!==void 0?i:new Zr;return s._init(e,n,r),vd[r]=s,vd[Xl][r]=s,s}return this._init(e,n,r)}_init(e,n,r){var i,s;if(n===void 0&&(n={}),ve(e)||_f(e))return he.critical("PostHog was initialized without a token. This likely indicates a misconfiguration. Please check the first argument passed to posthog.init()"),this;if(this.__loaded)return console.warn("[PostHog.js]","You have already initialized PostHog! Re-initializing is a no-op"),this;this.__loaded=!0,this.config={},n.debug=this.Di(n.debug),this.qi=n,this.ji=[],n.person_profiles?this.Ni=n.person_profiles:n.process_person&&(this.Ni=n.process_person),this.set_config(Zt({},nT(n.defaults),rT(n),{name:r,token:e})),this.config.on_xhr_error&&he.error("on_xhr_error is deprecated. Use on_request_error instead"),this.compression=n.disable_compression?void 0:$i.GZipJS;var l=this.Hi();this.persistence=new Hy(this.config,l),this.sessionPersistence=this.config.persistence==="sessionStorage"||this.config.persistence==="memory"?this.persistence:new Hy(ue({},this.config,{persistence:"sessionStorage"}),l);var u=ue({},this.persistence.props),c=ue({},this.sessionPersistence.props);this.register({$initialization_time:new Date().toISOString()}),this.Ui=new $Y((w=>this.Bi(w)),this.config.request_queue_config),this.zi=new WY(this),this.__request_queue=[];var p=this.Ri();if(p||(this.sessionManager=new QC(this),this.sessionPropsManager=new JC(this,this.sessionManager,this.persistence)),this.config.__preview_deferred_init_extensions?(he.info("Deferring extension initialization to improve startup performance"),setTimeout((()=>{this.Vi(p)}),0)):(he.info("Initializing extensions synchronously"),this.Vi(p)),nr.DEBUG=nr.DEBUG||this.config.debug,nr.DEBUG&&he.info("Starting in debug mode",{this:this,config:n,thisC:ue({},this.config),p:u,s:c}),!this.config.identity_distinct_id||(i=n.bootstrap)!=null&&i.distinctID||(n.bootstrap=ue({},n.bootstrap,{distinctID:this.config.identity_distinct_id,isIdentifiedID:!0})),((s=n.bootstrap)==null?void 0:s.distinctID)!==void 0){var h=n.bootstrap.distinctID,m=this.get_distinct_id(),g=this.persistence.get_property(vi);if(n.bootstrap.isIdentifiedID&&m!=null&&m!==h&&g===Fl)this.identify(h);else if(n.bootstrap.isIdentifiedID&&m!=null&&m!==h&&g===Ul)he.warn("Bootstrap distinctID differs from an already-identified user. The existing identity is preserved. Call reset() before reinitializing if you intend to switch users.");else{var _=this.config.get_device_id(vo()),x=n.bootstrap.isIdentifiedID?_:h;this.persistence.set_property(vi,n.bootstrap.isIdentifiedID?Ul:Fl),this.register({distinct_id:h,$device_id:x})}}if(p)this.register_once({distinct_id:qh,$device_id:null},"");else if(!this.get_distinct_id()){var S=this.config.get_device_id(vo());this.register_once({distinct_id:S,$device_id:S},""),this.persistence.set_property(vi,Fl)}return on(X,"onpagehide"in self?"pagehide":"unload",this._handle_unload.bind(this),{passive:!1}),n.segment?(function(w,C){var R=w.config.segment;if(!R)return C();(function(I,P){var A=I.config.segment;if(!A)return P();var N=L=>{var O=()=>L.anonymousId()||vo();I.config.get_device_id=O,L.id()&&(I.register({distinct_id:L.id(),$device_id:O()}),I.persistence.set_property(vi,Ul)),P()},T=A.user();"then"in T&&gs(T.then)?T.then(N):N(T)})(w,(()=>{R.register((I=>{Promise&&Promise.resolve||Wy.warn("This browser does not have Promise support, and can not use the segment integration");var P=(A,N)=>{if(!N)return A;A.event.userId||A.event.anonymousId===I.get_distinct_id()||(Wy.info("No userId set, resetting PostHog"),I.reset()),A.event.userId&&A.event.userId!==I.get_distinct_id()&&(Wy.info("UserId set, identifying with PostHog"),I.identify(A.event.userId)
342);var T=I.calculateEventProperties(N,A.event.properties);return A.event.properties=Object.assign({},T,A.event.properties),A};return{name:"PostHog JS",type:"enrichment",version:"1.0.0",isLoaded:()=>!0,load:()=>Promise.resolve(),track:A=>P(A,A.event.event),page:A=>P(A,Ql),identify:A=>P(A,$y),screen:A=>P(A,"$screen")}})(w)).then((()=>{C()}))}))})(this,(()=>this.Wi())):this.Wi(),gs(this.config._onCapture)&&this.config._onCapture!==ox&&(he.warn("onCapture is deprecated. Please use `before_send` instead"),this.on("eventCaptured",(w=>this.config._onCapture(w.event,w)))),this.config.ip&&he.warn('The `ip` config option has NO EFFECT AT ALL and has been deprecated. Use a custom transformation or "Discard IP data" project setting instead. See https://posthog.com/tutorials/web-redact-properties#hiding-customer-ip-address for more information.'),this}Vi(e){var n,r,i,s,l,u,c,p=performance.now(),h=ue({},Zr.__defaultExtensionClasses,this.config.__extensionClasses),m=[];h.featureFlags&&this.Pi.push(this.featureFlags=(n=this.featureFlags)!==null&&n!==void 0?n:new h.featureFlags(this)),h.exceptions&&this.Pi.push(this.exceptions=(r=this.exceptions)!==null&&r!==void 0?r:new h.exceptions(this)),h.historyAutocapture&&this.Pi.push(this.historyAutocapture=new h.historyAutocapture(this)),h.tracingHeaders&&this.Pi.push(new h.tracingHeaders(this)),h.siteApps&&this.Pi.push(this.siteApps=new h.siteApps(this)),h.sessionRecording&&!e&&this.Pi.push(this.sessionRecording=new h.sessionRecording(this)),this.config.disable_scroll_properties||m.push((()=>{this.scrollManager.startMeasuringScrollPosition()})),h.autocapture&&this.Pi.push(this.autocapture=new h.autocapture(this)),h.surveys&&this.Pi.push(this.surveys=(i=this.surveys)!==null&&i!==void 0?i:new h.surveys(this)),h.logs&&this.Pi.push(this.logs=(s=this.logs)!==null&&s!==void 0?s:new h.logs(this)),h.conversations&&this.Pi.push(this.conversations=(l=this.conversations)!==null&&l!==void 0?l:new h.conversations(this)),h.productTours&&this.Pi.push(this.productTours=new h.productTours(this)),h.heatmaps&&this.Pi.push(this.heatmaps=new h.heatmaps(this)),h.webVitalsAutocapture&&this.Pi.push(this.webVitalsAutocapture=new h.webVitalsAutocapture(this)),h.exceptionObserver&&this.Pi.push(this.exceptionObserver=new h.exceptionObserver(this)),h.deadClicksAutocapture&&this.Pi.push(this.deadClicksAutocapture=new h.deadClicksAutocapture(this,EY)),h.toolbar&&this.Pi.push(this.toolbar=(u=this.toolbar)!==null&&u!==void 0?u:new h.toolbar(this)),h.experiments&&this.Pi.push(this.experiments=(c=this.experiments)!==null&&c!==void 0?c:new h.experiments(this)),this.Pi.forEach((g=>{g.initialize&&m.push((()=>{g.initialize==null||g.initialize()}))})),m.push((()=>{if(this.Zi){var g=this.Zi;this.Zi=void 0,this.Rr(g)}})),this.Gi(m,p)}Gi(e,n){for(;e.length>0;){if(this.config.__preview_deferred_init_extensions&&performance.now()-n>=30&&e.length>0)return void setTimeout((()=>{this.Gi(e,n)}),0);var r=e.shift();if(r)try{r()}catch(s){he.error("Error initializing extension:",s)}}var i=Math.round(performance.now()-n);this.register_for_session({[tM]:this.config.__preview_deferred_init_extensions?"deferred":"synchronous",[nM]:i}),this.config.__preview_deferred_init_extensions&&he.info("PostHog extensions initialized ("+i+"ms)")}Rr(e){var n;if(!fe||!fe.body)return he.info("document not ready yet, trying again in 500 milliseconds..."),void setTimeout((()=>{this.Rr(e)}),500);this.config.__preview_deferred_init_extensions&&(this.Zi=e),this.Qi=e,this.compression=void 0,e.supportedCompression&&!this.config.disable_compression&&(this.compression=nt(e.supportedCompression,$i.GZipJS)?$i.GZipJS:nt(e.supportedCompression,$i.Base64)?$i.Base64:void 0),(n=e.analytics)!=null&&n.endpoint&&(this.analyticsDefaultEndpoint=e.analytics.endpoint),this.set_config({person_profiles:this.Ni?this.Ni:Xb}),this.Pi.forEach((r=>r.onRemoteConfig==null?void 0:r.onRemoteConfig(e)))}Wi(){try{this.config.loaded(this)}catch(r){he.critical("`loaded` function failed",r)}if(this.Ji(),this.config.internal_or_test_user_hostname&&Rn!=null&&Rn.hostname){var e=Rn.hostname,n=this.config.internal_or_test_user_hostname;(typeof n=="string"?e===n:n.test(e))&&this.setInternalOrTestUser()}this.config.capture_pageview&&setTimeout((()=>{(this.consent.isOptedIn()||this.Ri())&&this.Ki()}),1),this.Yi=new mM(this),this.Yi.load()}Ji(){var e;this.is_capturing()&&this.config.request_batching&&((e=this.Ui)==null||e.enable())}_dom_loaded(){this.is_capturing()&&Wh(this.__request_queue,(e=>this.Bi(e))),this.__request_queue=[],this.Ji()}_handle_unload(){var e,n,r,i;(e=this.surveys)==null||e.handlePageUnload(),this.config.request_batching?(this.Xi()&&this.capture(By),(n=this.logs)==null||n.flushLogs("sendBeacon"),(r=this.Ui)==null||r.unload(),(i=this.zi)==null||i.unload()):this.Xi()&&this.capture(By,null,{transport:"sendBeacon"})}_send_request(e){this.__loaded&&(CM?this.__request_queue.push(e):this.rateLimiter.isServerRateLimited(e.batchKey)||(e.transport=e.transport||this.config.api_transport,e.url=ig(e.url,{ip:this.config.ip?1:0}),e.headers=ue({},this.config.request_headers,e.headers),e.compression=e.compression==="best-available"?this.compression:e.compression,e.disableXHRCredentials=this.config.__preview_disable_xhr_credentials,this.config.__preview_disable_beacon&&(e.disableTransport=["sendBeacon"]),e.fetchOptions=e.fetchOptions||this.config.fetch_options,
342(n=>{var r,i,s,l=ue({},n);l.timeout=l.timeout||6e4,l.url=KC(l.url,l.compression);var u=(r=l.transport)!==null&&r!==void 0?r:"fetch",c=Ef.filter((h=>!l.disableTransport||!h.transport||!l.disableTransport.includes(h.transport))),p=(i=(s=(function(h,m){for(var g=0;h.length>g;g++)if(h[g].transport===u)return h[g]})(c))==null?void 0:s.method)!==null&&i!==void 0?i:c[0].method;if(!p)throw new Error("No available transport method");u!=="sendBeacon"&&l.data&&l.compression===$i.GZipJS&&EG&&!wf?BY(l).then((h=>{p(h)})).catch((h=>{if(PC(h))return wf=!0,void p(ue({},l,{compression:void 0,url:KC(n.url,void 0)}));(m=>{if(!m||typeof m!="object")return!1;var g="name"in m?String(m.name):"";return PC(m)||g===EL})(h)&&(wf=!0),p(l)})):p(l)})(ue({},e,{callback:n=>{var r,i;this.rateLimiter.checkForLimiting(n),400>n.statusCode||(r=(i=this.config).on_request_error)==null||r.call(i,n),e.callback==null||e.callback(n)}}))))}Bi(e){this.zi?this.zi.retriableRequest(e):this._send_request(e)}_execute_array(e){Xy++;try{var n,r=[],i=[],s=[];Wh(e,(u=>{if(u)if(ft(n=u[0]))s.push(u);else if(gs(u))try{u.call(this)}catch(c){he.error("Error executing queued PostHog call",u,c)}else ft(u)&&n==="alias"?r.push(u):ft(u)&&n.indexOf("capture")!==-1&&gs(this[n])?s.push(u):i.push(u)}));var l=function(u,c){Wh(u,(function(p){try{if(ft(p[0])){var h=c;jt(p,(function(m){h=h[m[0]].apply(h,m.slice(1))}))}else c[p[0]].apply(c,p.slice(1))}catch(m){he.error("Error executing queued PostHog call",p,m)}}))};l(r,this),l(i,this),l(s,this)}finally{Xy--}}push(e){if(Xy>0&&ft(e)&&Yt(e[0])){var n=Zr.prototype[e[0]];gs(n)&&n.apply(this,e.slice(1))}else this._execute_array([e])}capture(e,n,r){var i,s,l,u,c;if(this.__loaded&&this.persistence&&this.sessionPersistence&&this.Ui){if(this.is_capturing())if(!ve(e)&&Yt(e)){var p=!this.config.opt_out_useragent_filter&&this._is_bot();if(!p||this.config.__preview_capture_bot_pageviews){var h=r!=null&&r.skip_client_rate_limiting?void 0:this.rateLimiter.clientRateLimitContext();if(h==null||!h.isRateLimited){n!=null&&n.$current_url&&!Yt(n==null?void 0:n.$current_url)&&(he.error("Invalid `$current_url` property provided to `posthog.capture`. Input must be a string. Ignoring provided value."),n==null||delete n.$current_url),e!=="$exception"||r!=null&&r.en||he.warn("Using `posthog.capture('$exception')` is unreliable because it does not attach required metadata. Use `posthog.captureException(error)` instead, which attaches required metadata automatically."),this.sessionPersistence.update_search_keyword(),this.config.save_campaign_params&&this.sessionPersistence.update_campaign_params(),this.config.save_referrer&&this.sessionPersistence.update_referrer_info(),(this.config.save_campaign_params||this.config.save_referrer)&&this.persistence.set_initial_person_info();var m=new Date,g=(r==null?void 0:r.timestamp)||m,_=(r==null?void 0:r.uuid)||vo(),x={uuid:_,event:e,properties:this.calculateEventProperties(e,n||{},g,_)};e===Ql&&this.config.__preview_capture_bot_pageviews&&p&&(x.event="$bot_pageview",x.properties.$browser_type="bot"),h&&(x.properties.$lib_rate_limit_remaining_tokens=h.remainingTokens),r!=null&&r.$set&&(x.$set=r==null?void 0:r.$set);var S,w,C,R=this.tn(r==null?void 0:r.$set_once,e!==DC,e===$y);if(R&&(x.$set_once=R),r!=null&&r._noTruncate||(s=this.config.properties_string_max_length,l=x,u=O=>Yt(O)?O.slice(0,s):O,c=new Set,x=(function O(j,B){return j!==Object(j)?u?u(j):j:c.has(j)?void 0:(c.add(j),ft(j)?(q=[],Wh(j,(G=>{q.push(O(G))}))):(q={},jt(j,((G,W)=>{c.has(G)||(q[W]=O(G))}))),q);var q})(l)),x.timestamp=g,ve(r==null?void 0:r.timestamp)||(x.properties.$event_time_override_provided=!0,x.properties.$event_time_override_system_time=m),e===nd.DISMISSED||e===nd.SENT){var I=n==null?void 0:n[Gy.SURVEY_ID],P=n==null?void 0:n[Gy.SURVEY_ITERATION];(O=>{try{var j=(B=>((q,G)=>{var W=""+sx+G.id;return G.current_iteration&&G.current_iteration>0&&(W=""+sx+G.id+"_"+G.current_iteration),W})(0,B))(O);if(localStorage.getItem(j))return;localStorage.setItem(j,"true")}catch(B){Et.error("Failed to persist survey seen state",B)}})({id:I,current_iteration:P}),x.$set=ue({},x.$set,{[(S={id:I,current_iteration:P},w=e===nd.SENT?"responded":"dismissed",C="$survey_"+w+"/"+S.id,S.current_iteration&&S.current_iteration>0&&(C="$survey_"+w+"/"+S.id+"/"+S.current_iteration),C)]:!0})}else e===nd.SHOWN&&(x.$set=ue({},x.$set,{[Gy.SURVEY_LAST_SEEN_DATE]:new Date().toISOString()}));if(e===LY.SHOWN){var A=n==null?void 0:n[$C.TOUR_TYPE];A&&(x.$set=ue({},x.$set,{[$C.TOUR_LAST_SEEN_DATE+"/"+A]:new Date().toISOString()}))}var N=ue({},x.properties.$set,x.$set);if(iu(N)||this.setPersonPropertiesForFlags(N),!rt(this.config.before_send)){var T=this.rn(x);if(!T)return;x=T}this.Li.emit("eventCaptured",x);var L={method:"POST",url:(i=r==null?void 0:r._url)!==null&&i!==void 0?i:this.requestRouter.endpointFor("api",this.analyticsDefaultEndpoint),data:x,compression:"best-available",batchKey:r==null?void 0:r._batchKey};return!this.config.request_batching||r&&(r==null||!r._batchKey)||r!=null&&r.send_instantly?this.Bi(L):this.Ui.enqueue(L),x}he.critical("This capture call is ignored due to client rate limiting.")}}else he.error("No event name provided to posthog.capture")}else he.uninitializedWarning("posthog.capture")}_addCaptureHook(e){return this.on("eventCaptured",(n=>e(n.event,n)))}calculateEventProperties(e,n,r,i,s){if(r=r||new Date,!this.persistence||!this.sessionPersistence)return n;var l=s?void 0:this.persistence.remove_event_timer(e),u=ue({},n);if(u.token=this.config.token,u.$config_defaults=this.config.defaults,this.Ri()&&(u.$cookieless_mode=!0),e==="$snapshot"){var c=ue({},this.persistence.properties(),this.sessionPersistence.properties());return u.distinct_id=c.distinct_id,(!Yt(u.distinct_id)&&!ni(u.distinct_id)||_f(u.distinct_id))&&he.error("Invalid distinct_id for replay event. This indicates a bug in your implementation"),u}var p,h=(function(C,R){var I,P,A,N;if(!_r)return{};var T,L,O,j,B,q,G,W,ie=C?[...Du,...R||[]]:[],[se,de]=(function($){for(var Z=0;LC.length>Z;Z++){var[Q,D]=LC[Z],Y=Q.exec($),le=Y&&(gs(D)?D(Y,$):D);if(le)return le}return["",""]})(_r);return Zt(A0({$os:se,$os_version:de,$browser:qL(_r,navigator.vendor),$device:MC(_r),$device_type:(L=_r,O={userAgentDataPlatform:(I=navigator)==null||(I=I.userAgentData)==null?void 0:I.platform,maxTouchPoints:(P=navigator)==null?void 0:P.maxTouchPoints,screenWidth:X==null||(A=X.screen)==null?void 0:A.width,screenHeight:X==null||(N=X.screen)==null?void 0:N.height,devicePixelRatio:X==null?void 0:X.devicePixelRatio},W=MC(L),W===RL||W===PL||W==="Kobo"||W==="Kindle Fire"||W===$L?Mu:W===Dd||W===uu||W===jd||W===Ab?"Console":W===IL?"Wearable":W?Fr:(O==null?void 0:O.userAgentDataPlatform)==="Android"&&((j=O==null?void 0:O.maxTouchPoints)!==null&&j!==void 0?j:0)>0?600>Math.min((B=O==null?void 0:O.screenWidth)!==null&&B!==void 0?B:0,(q=O==null?void 0:O.screenHeight)!==null&&q!==void 0?q:0)/((G=O==null?void 0:O.devicePixelRatio)!==null&&G!==void 0?G:1)?Fr:Mu:"Desktop"),$timezone:fM(),$timezone_offset:AY()}),{$current_url:Ud(Rn==null?void 0:Rn.href,ie,zd),$host:Rn==null?void 0:Rn.host,$pathname:Rn==null?void 0:Rn.pathname,$raw_user_agent:_r.length>1e3?_r.substring(0,997)+"...":_r,$browser_version:BG(_r,navigator.vendor),$browser_language:BC(),$browser_language_prefix:(T=BC(),typeof T=="string"?T.split("-")[0]:void 0),$screen_height:X==null?void 0:X.screen.height,$screen_width:X==null?void 0:X.screen.width,$viewport_height:X==null?void 0:X.innerHeight,$viewport_width:X==null?void 0:X.innerWidth,$lib:nr.LIB_NAME,$lib_version:nr.LIB_VERSION,$insert_id:Math.random().toString(36).substring(2,10)+Math.random().toString(36).substring(2,10),$time:Date.now()/1e3})})(this.config.mask_personal_data_properties,this.config.custom_personal_data_properties);if(this.sessionManager){var{sessionId:m,windowId:g}=this.sessionManager.checkAndGetSessionAndWindowId(s,r.getTime());u.$session_id=m,u.$window_id=g}this.sessionPropsManager&&Zt(u,this.sessionPropsManager.getSessionProps());try{var _;this.sessionRecording&&Zt(u,this.sessionRecording.sdkDebugProperties),u.$sdk_debug_retry_queue_size=(_=this.zi)==null?void 0:_.length}catch(C){u.$sdk_debug_error_capturing_properties=String(C)}if(this.requestRouter.region===ix&&(u.$lib_custom_api_host=this.config.api_host),p=e!==Ql||s?e!==By||s?this.pageViewM
342anager.doEvent():this.pageViewManager.doPageLeave(r):this.pageViewManager.doPageView(r,i),u=Zt(u,p),e===Ql&&fe&&(u.title=fe.title),!ve(l)){var x=r.getTime()-l;u.$duration=parseFloat((x/1e3).toFixed(3))}_r&&this.config.opt_out_useragent_filter&&(u.$browser_type=this._is_bot()?"bot":"browser"),(u=Zt({},h,this.persistence.properties(),this.sessionPersistence.properties(),u)).$is_identified=this._isIdentified(),ft(this.config.property_denylist)?jt(this.config.property_denylist,(function(C){delete u[C]})):he.error(kM+this.config.property_denylist+" or property_blacklist config: "+this.config.property_blacklist);var S=this.config.sanitize_properties;S&&(he.error(tT),u=S(u,e));var w=this.nn();return u.$process_person_profile=w,w&&!s&&this.sn("_calculate_event_properties"),u}tn(e,n,r){var i;if(n===void 0&&(n=!0),r===void 0&&(r=!1),!this.persistence||!this.nn()||this.Oi&&!r)return e;var s=this.persistence.get_initial_props(),l=(i=this.sessionPropsManager)==null?void 0:i.getSetOnceProps(),u=Zt({},s,l||{},e||{}),c=this.config.sanitize_properties;return c&&(he.error(tT),u=c(u,"$set_once")),n&&(this.Oi=!0),iu(u)?void 0:u}register(e,n){var r;(r=this.persistence)==null||r.register(e,n)}register_once(e,n,r){var i;(i=this.persistence)==null||i.register_once(e,n,r)}register_for_session(e){var n;(n=this.sessionPersistence)==null||n.register(e)}unregister(e){var n;(n=this.persistence)==null||n.unregister(e)}unregister_for_session(e){var n;(n=this.sessionPersistence)==null||n.unregister(e)}an(e,n){this.register({[e]:n})}getFeatureFlag(e,n){var r;return(r=this.featureFlags)==null?void 0:r.getFeatureFlag(e,n)}getFeatureFlagPayload(e){var n;return(n=this.featureFlags)==null?void 0:n.getFeatureFlagPayload(e)}getFeatureFlagResult(e,n){var r;return(r=this.featureFlags)==null?void 0:r.getFeatureFlagResult(e,n)}isFeatureEnabled(e,n){var r;return(r=this.featureFlags)==null?void 0:r.isFeatureEnabled(e,n)}reloadFeatureFlags(){var e;(e=this.featureFlags)==null||e.reloadFeatureFlags()}updateFlags(e,n,r){var i;(i=this.featureFlags)==null||i.updateFlags(e,n,r)}updateEarlyAccessFeatureEnrollment(e,n,r){var i;(i=this.featureFlags)==null||i.updateEarlyAccessFeatureEnrollment(e,n,r)}getEarlyAccessFeatures(e,n,r){var i;return n===void 0&&(n=!1),(i=this.featureFlags)==null?void 0:i.getEarlyAccessFeatures(e,n,r)}on(e,n){return this.Li.on(e,n)}onFeatureFlags(e){return this.featureFlags?this.featureFlags.onFeatureFlags(e):(e([],{},{errorsLoading:!0}),()=>{})}onSurveysLoaded(e){return this.surveys?this.surveys.onSurveysLoaded(e):(e([],{isLoaded:!1,error:$c}),()=>{})}onSessionId(e){var n,r;return(n=(r=this.sessionManager)==null?void 0:r.onSessionId(e))!==null&&n!==void 0?n:()=>{}}getSurveys(e,n){n===void 0&&(n=!1),this.surveys?this.surveys.getSurveys(e,n):e([],{isLoaded:!1,error:$c})}getActiveMatchingSurveys(e,n){n===void 0&&(n=!1),this.surveys?this.surveys.getActiveMatchingSurveys(e,n):e([],{isLoaded:!1,error:$c})}renderSurvey(e,n){var r;(r=this.surveys)==null||r.renderSurvey(e,n)}displaySurvey(e,n){var r;n===void 0&&(n=JY),(r=this.surveys)==null||r.displaySurvey(e,n)}cancelPendingSurvey(e){var n;(n=this.surveys)==null||n.cancelPendingSurvey(e)}canRenderSurvey(e){var n,r;return(n=(r=this.surveys)==null?void 0:r.canRenderSurvey(e))!==null&&n!==void 0?n:{visible:!1,disabledReason:$c}}canRenderSurveyAsync(e,n){var r,i;return n===void 0&&(n=!1),(r=(i=this.surveys)==null?void 0:i.canRenderSurveyAsync(e,n))!==null&&r!==void 0?r:Promise.resolve({visible:!1,disabledReason:$c})}un(e){return!e||_f(e)?(he.critical("Unique user id has not been set in posthog.identify"),!1):e===qh?(he.critical('The string "'+e+'" was set in posthog.identify which indicates an error. This ID is only used as a sentinel value.'),!1):!["distinct_id","distinctid"].includes(e.toLowerCase())&&!["undefined","null"].includes(e.toLowerCase())||(he.critical('The string "'+e+'" was set in posthog.identify which indicates an error. This ID should be unique to the user and not a hardcoded string.'),!1)}identify(e,n,r){if(!this.__loaded||!this.persistence)return he.uninitializedWarning("posthog.identify");if(ni(e)&&(e=e.toString(),he.warn("The first argument to posthog.identify was a number, but it should be a string. It has been converted to a string.")),this.un(e)&&this.sn("posthog.identify")){var i=this.get_distinct_id();this.register({$user_id:e}),this.get_property(lm)||this.register_once({$had_persisted_distinct_id:!0,$device_id:i},""),e!==i&&e!==this.get_property(Qc)&&(this.unregister(Qc),this.register({distinct_id:e}));var s,l=(this.persistence.get_property(vi)||Fl)===Fl;e!==i&&l?(this.persistence.set_property(vi,Ul),this.setPersonPropertiesForFlags({$set:n||{},$set_once:r||{}},!1),this.capture($y,{distinct_id:e,$anon_distinct_id:i},{$set:n||{},$set_once:r||{}}),this.$i=XC(e,n,r),(s=this.featureFlags)==null||s.setAnonymousDistinctId(i)):(n||r)&&this.setPersonProperties(n,r),e!==i&&(this.reloadFeatureFlags(),this.unregister(md))}}setPersonProperties(e,n){if((e||n)&&this.sn("posthog.setPersonProperties")){var r=XC(this.get_distinct_id(),e,n);this.$i!==r?(this.setPersonPropertiesForFlags({$set:e||{},$set_once:n||{}},!0),this.capture("$set",{$set:e||{},$set_once:n||{}}),this.$i=r):he.info("A duplicate setPersonProperties call was made with the same properties. It has been ignored.")}}group(e,n,r){if(e&&n){var i=this.getGroups(),s=i[e]!==n;if(s&&this.resetGroupPropertiesForFlags(e),this.register({$groups:ue({},i,{[e]:n})}),s||r){var l={$group_type:e,$group_key:n};r&&(l.$group_set=r),this.capture(DC,l)}r&&this.setGroupPropertiesForFlags({[e]:r}),s&&!r&&this.reloadFeatureFlags()}else he.error("posthog.group requires a group type and group key")}resetGroups(){this.register({$groups:{}}),this.resetGroupPropertiesForFlags(),this.reloadFeatureFlags()}setPersonPropertiesForFlags(e,n){var r;n===void 0&&(n=!0),(r=this.featureFlags)==null||r.setPersonPropertiesForFlags(e,n)}resetPersonPropertiesForFlags(){var e;(e=this.featureFlags)==null||e.resetPersonPropertiesForFlags()}setGroupPropertiesForFlags(e,n){var r;n===void 0&&(n=!0),this.sn("posthog.setGroupPropertiesForFlags")&&((r=this.featureFlags)==null||r.setGroupPropertiesForFlags(e,n))}resetGroupPropertiesForFlags(e){var n;(n=this.featureFlags)==null||n.resetGroupPropertiesForFlags(e)}reset(e){var n,r,i,s,l,u,c,p;if(he.info("reset"),!this.__loaded)return he.uninitializedWarning("posthog.reset");var h=this.get_property(lm);if(this.consent.reset(),(n=this.persistence)==null||n.clear(),(r=this.sessionPersistence)==null||r.clear(),(i=this.surveys)==null||i.reset(),(s=this.Yi)==null||s.stop(),(l=this.featureFlags)==null||l.reset(),(u=this.conversations)==null||u.reset(),(c=this.persistence)==null||c.set_property(vi,Fl),(p=this.sessionManager)==null||p.resetSessionId(),this.$i=null,this.config.cookieless_mode===bs)this.register_once({distinct_id:qh,$device_id:null},"");else{var m=this.config.get_device_id(vo());this.register_once({distinct_id:m,$device_id:e?m:h},"")}this.register({$last_posthog_reset:new Date().toISOString()},1),delete this.config.identity_distinct_id,delete this.config.identity_hash,this.reloadFeatureFlags()}
342setIdentity(e,n){var r;this.config.identity_distinct_id=e,this.config.identity_hash=n,this.alias(e),(r=this.conversations)==null||r.ln()}clearIdentity(){var e;delete this.config.identity_distinct_id,delete this.config.identity_hash,(e=this.conversations)==null||e.hn()}get_distinct_id(){return this.get_property("distinct_id")}getGroups(){return this.get_property("$groups")||{}}get_session_id(){var e,n;return(e=(n=this.sessionManager)==null?void 0:n.checkAndGetSessionAndWindowId(!0).sessionId)!==null&&e!==void 0?e:""}get_session_replay_url(e){if(!this.sessionManager)return"";var{sessionId:n,sessionStartTimestamp:r}=this.sessionManager.checkAndGetSessionAndWindowId(!0),i=this.requestRouter.endpointFor("ui","/project/"+this.config.token+"/replay/"+n);if(e!=null&&e.withTimestamp&&r){var s,l=(s=e.timestampLookBack)!==null&&s!==void 0?s:10;if(!r)return i;i+="?t="+Math.max(Math.floor((new Date().getTime()-r)/1e3)-l,0)}return i}alias(e,n){return e===this.get_property(KL)?(he.critical("Attempting to create alias for existing People user - aborting."),-2):this.sn("posthog.alias")?(ve(n)&&(n=this.get_distinct_id()),e!==n?(this.an(Qc,e),this.capture("$create_alias",{alias:e,distinct_id:n})):(he.warn("alias matches current distinct_id - skipping api call."),this.identify(e),-1)):void 0}set_config(e){var n=ue({},this.config);if(nn(e)){var r,i,s,l,u,c,p,h,m,g;Zt(this.config,rT(e));var _=this.Hi();(r=this.persistence)==null||r.update_config(this.config,n,_),this.sessionPersistence=this.config.persistence==="sessionStorage"||this.config.persistence==="memory"?this.persistence:new Hy(ue({},this.config,{persistence:"sessionStorage"}),_);var x=this.Di(this.config.debug);Gi(x)&&(this.config.debug=x),Gi(this.config.debug)&&(this.config.debug?(nr.DEBUG=!0,Gt.R()&&Gt.N("ph_debug",!0),he.info("set_config",{config:e,oldConfig:n,newConfig:ue({},this.config)})):(nr.DEBUG=!1,Gt.R()&&Gt.q("ph_debug"))),(i=this.exceptionObserver)==null||i.onConfigChange(),(s=this.exceptions)==null||s.onConfigChange(),(l=this.sessionRecording)==null||l.startIfEnabledOrStop(),(u=this.autocapture)==null||u.startIfEnabled(),(c=this.heatmaps)==null||c.startIfEnabled(),(p=this.exceptionObserver)==null||p.startIfEnabledOrStop(),(h=this.deadClicksAutocapture)==null||h.startIfEnabledOrStop(),(m=this.surveys)==null||m.loadIfEnabled(),this.cn(),(g=this.externalIntegrations)==null||g.startIfEnabledOrStop()}}_overrideSDKInfo(e,n){nr.LIB_NAME=e,nr.LIB_VERSION=n}startSessionRecording(e){var n,r,i,s,l,u=e===!0,c={sampling:u||!(e==null||!e.sampling),linked_flag:u||!(e==null||!e.linked_flag),url_trigger:u||!(e==null||!e.url_trigger),event_trigger:u||!(e==null||!e.event_trigger)};Object.values(c).some(Boolean)&&((n=this.sessionManager)==null||n.checkAndGetSessionAndWindowId(),c.sampling&&((r=this.sessionRecording)==null||r.overrideSampling()),c.linked_flag&&((i=this.sessionRecording)==null||i.overrideLinkedFlag()),c.url_trigger&&((s=this.sessionRecording)==null||s.overrideTrigger("url")),c.event_trigger&&((l=this.sessionRecording)==null||l.overrideTrigger("event"))),this.set_config({disable_session_recording:!1})}stopSessionRecording(){this.set_config({disable_session_recording:!0})}sessionRecordingStarted(){var e;return!((e=this.sessionRecording)==null||!e.started)}captureException(e,n){if(this.exceptions){var r=new Error("PostHog syntheticException"),i=this.exceptions.buildProperties(e,{handled:!0,syntheticException:r});return this.exceptions.sendExceptionEvent(ue({},i,n))}}addExceptionStep(e,n){var r;(r=this.exceptions)==null||r.addExceptionStep(e,n)}captureLog(e){var n;(n=this.logs)==null||n.captureLog(e)}get logger(){var e,n;return(e=(n=this.logs)==null?void 0:n.logger)!==null&&e!==void 0?e:Zr.dn}startExceptionAutocapture(e){this.set_config({capture_exceptions:e==null||e})}stopExceptionAutocapture(){this.set_config({capture_exceptions:!1})}loadToolbar(e){var n,r;return(n=(r=this.toolbar)==null?void 0:r.loadToolbar(e))!==null&&n!==void 0&&n}get_property(e){var n;return(n=this.persistence)==null?void 0:n.props[e]}getSessionProperty(e){var n;return(n=this.sessionPersistence)==null?void 0:n.props[e]}toString(){var e,n=(e=this.config.name)!==null&&e!==void 0?e:Xl;return n!==Xl&&(n=Xl+"."+n),n}_isIdentified(){var e,n;return((e=this.persistence)==null?void 0:e.get_property(vi))===Ul||((n=this.sessionPersistence)==null?void 0:n.get_property(vi))===Ul}nn(){var e,n;return!(this.config.person_profiles==="never"||this.config.person_profiles===Xb&&!this._isIdentified()&&iu(this.getGroups())&&((e=this.persistence)==null||(e=e.props)==null||!e[Qc])&&((n=this.persistence)==null||(n=n.props)==null||!n[pm]))}Xi(){return this.config.capture_pageleave===!0||this.config.capture_pageleave==="if_capture_pageview"&&(this.config.capture_pageview===!0||this.config.capture_pageview==="history_change")}createPersonProfile(){this.nn()||this.sn("posthog.createPersonProfile")&&this.setPersonProperties({},{})}setInternalOrTestUser(){this.sn("posthog.setInternalOrTestUser")&&this.setPersonProperties({$internal_or_test_user:!0})}sn(e){return this.config.person_profiles==="never"?(he.error(e+' was called, but process_person is set to "never". This call will be ignored.'),!1):(this.an(pm,!0),!0)}Hi(){if(this.config.cookieless_mode==="always")return!0;var e=this.consent.isOptedOut();return this.config.disable_persistence||e&&!(!this.config.opt_out_persistence_by_default&&this.config.cookieless_mode!==_a)}cn(){var e,n,r,i,s=this.Hi();return((e=this.persistence)==null?void 0:e._r)!==s&&((r=this.persistence)==null||r.set_disabled(s)),((n=this.sessionPersistence)==null?void 0:n._r)!==s&&((i=this.sessionPersistence)==null||i.set_disabled(s)),s}opt_in_capturing(e){var n;if(this.config.cookieless_mode!==bs){if(this.Ri()){var r,i,s,l,u;this.reset(!0),(r=this.sessionManager)==null||r.destroy(),(i=this.pageViewM
342anager)==null||i.destroy(),this.sessionManager=new QC(this),this.pageViewManager=new zC(this),this.persistence&&(this.sessionPropsManager=new JC(this,this.sessionManager,this.persistence));var c,p=(s=(l=this.config.__extensionClasses)==null?void 0:l.sessionRecording)!==null&&s!==void 0?s:(u=Zr.__defaultExtensionClasses)==null?void 0:u.sessionRecording;p&&(this.sessionRecording=this.Mi(this.sessionRecording,new p(this)),this.Qi&&((c=this.sessionRecording)==null||c.onRemoteConfig==null||c.onRemoteConfig(this.Qi)))}var h,m;this.consent.optInOut(!0),this.cn(),this.Ji(),(n=this.sessionRecording)==null||n.startIfEnabledOrStop(),this.config.cookieless_mode==_a&&((h=this.surveys)==null||h.loadIfEnabled()),(ve(e==null?void 0:e.captureEventName)||e!=null&&e.captureEventName)&&this.capture((m=e==null?void 0:e.captureEventName)!==null&&m!==void 0?m:"$opt_in",e==null?void 0:e.captureProperties,{send_instantly:!0}),this.config.capture_pageview&&this.Ki()}else he.warn(eT)}opt_out_capturing(){var e,n,r;this.config.cookieless_mode!==bs?(this.config.cookieless_mode===_a&&this.consent.isOptedIn()&&this.reset(!0),this.consent.optInOut(!1),this.cn(),this.config.cookieless_mode===_a&&(this.register({distinct_id:qh,$device_id:null}),(e=this.sessionRecording)==null||e.stopRecording(),this.sessionRecording=void 0,(n=this.sessionManager)==null||n.destroy(),(r=this.pageViewManager)==null||r.destroy(),this.sessionManager=void 0,this.sessionPropsManager=void 0,this.Ki())):he.warn(eT)}has_opted_in_capturing(){return this.consent.isOptedIn()}has_opted_out_capturing(){return this.consent.isOptedOut()}get_explicit_consent_status(){var e=this.consent.consent;return e===1?"granted":e===0?"denied":"pending"}is_capturing(){return this.config.cookieless_mode===bs||(this.config.cookieless_mode===_a?this.consent.isRejected()||this.consent.isOptedIn():!this.has_opted_out_capturing())}clear_opt_in_out_capturing(){this.consent.reset(),this.cn()}_is_bot(){return Dr?SM(Dr,this.config.custom_blocked_useragents):void 0}Ki(){fe&&(fe.visibilityState==="visible"?this.Fi||(this.Fi=!0,this.capture(Ql,{title:fe.title},{send_instantly:!0}),this.Ai&&(fe.removeEventListener(hm,this.Ai),this.Ai=null)):this.Ai||(this.Ai=this.Ki.bind(this),on(fe,hm,this.Ai)))}debug(e){e===!1?(X==null||X.console.log("You've disabled debug mode."),this.set_config({debug:!1})):(X==null||X.console.log("You're now in debug mode. All calls to PostHog will be logged in your console.\nYou can disable this with `posthog.debug(false)`."),this.set_config({debug:!0}))}Lr(){var e,n,r,i,s,l,u=this.qi||{};return"advanced_disable_flags"in u?!!u.advanced_disable_flags:this.config.advanced_disable_flags!==!1?!!this.config.advanced_disable_flags:this.config.advanced_disable_decide===!0?(he.warn("Config field 'advanced_disable_decide' is deprecated. Please use 'advanced_disable_flags' instead. The old field will be removed in a future major version."),!0):(r="advanced_disable_decide",i=he,s=(n="advanced_disable_flags")in(e=u)&&!rt(e[n]),l=r in e&&!rt(e[r]),s?e[n]:!!l&&(i&&i.warn("Config field '"+r+"' is deprecated. Please use '"+n+"' instead. The old field will be removed in a future major version."),e[r]))}rn(e){if(rt(this.config.before_send))return e;var n=ft(this.config.before_send)?this.config.before_send:[this.config.before_send],r=e;for(var i of n){if(r=i(r),rt(r)){var s="Event '"+e.event+"' was rejected in beforeSend function";return RG(e.event)?he.warn(s+". This can cause unexpected behavior."):he.info(s),null}r.properties&&!iu(r.properties)||he.warn("Event '"+e.event+"' has no properties after beforeSend function, this is likely an error.")}return r}getPageViewId(){var e;return(e=this.pageViewManager.dr)==null?void 0:e.pageViewId}captureTraceFeedback(e,n){this.capture("$ai_feedback",{$ai_trace_id:String(e),$ai_feedback_text:n})}captureTraceMetric(e,n,r){this.capture("$ai_metric",{$ai_trace_id:String(e),$ai_metric_name:n,$ai_metric_value:String(r)})}Di(e){var n=Gi(e)&&!e,r=Gt.R()&&Gt.A("ph_debug")==="true";return!n&&(!!r||e)}}Zr.__defaultExtensionClasses={},Zr.dn={trace:Bl=()=>{},debug:Bl,info:Bl,warn:Bl,error:Bl,fatal:Bl},(function(t,e){for(var n=0;e.length>n;n++)t.prototype[e[n]]=hY(t.prototype[e[n]])})(Zr,["identify"]);var nK=1,rK=3,iK=11;function iT(t){return t instanceof Element&&(t.id===eM||!(t.closest==null||!t.closest(".toolbar-global-fade-container")))}function Ja(t){return!!t&&t.nodeType===nK}function Si(t,e){return!!t&&!!t.tagName&&t.tagName.toLowerCase()===e.toLowerCase()}function TM(t){return!!t&&t.nodeType===rK}function PM(t){return!!t&&t.nodeType===iK&&Ja(t.host)}function N0(t){return t?ng(t).split(/\s+/):[]}function sT(t){var e=X==null?void 0:X.location.href;return!!(e&&t&&t.some((n=>e.match(n))))}function xm(t){var e="";switch(typeof t.className){case"string":e=t.className;break;case"object":e=(t.className&&"baseVal"in t.className?t.className.baseVal:null)||t.getAttribute("class")||"";break;default:e=""}return N0(e)}function RM(t){return rt(t)?null:ng(t).split(/(\s+)/).filter((e=>yd(e))).join("").replace(/[\r\n]/g," ").replace(/[ ]+/g," ").substring(0,255)}function Bd(t){var e="";return lx(t)&&!IM(t)&&t.childNodes&&t.childNodes.length&&jt(t.childNodes,(function(n){var r;TM(n)&&n.textContent&&(e+=(r=RM(n.textContent))!==null&&r!==void 0?r:"")})),ng(e)}function oT(t){return ve(t.target)?t.srcElement||null:(e=t.target)!=null&&e.shadowRoot?t.composedPath()[0]||null:t.target||null;var e}var O0=["a","button","form","input","select","textarea","label"];function aT(t,e){if(ve(e))return!0;var n,r=function(s){if(e.some((l=>s.matches(l))))return{v:!0}};for(var i of t)if(n=r(i))return n.v;return!1}function AM(t){var e=t.parentNode;return!(!e||!Ja(e))&&e}var sK=["next","previous","prev",">","<"],lT=[".ph-no-rageclick",".ph-no-capture"],ax=t=>!t||Si(t,"html")||!Ja(t),uT=(t,e)=>{if(!X||ax(t))return{parentIsUsefulElement:!1,targetElementList:[]};for(var n=!1,r=[t],i=t;i.parentNode&&!Si(i,"body");)if(PM(i.parentNode))r.push(i.parentNode.host),i=i.parentNode.host;else{var s=AM(i);if(!s)break;if(e||O0.indexOf(s.tagName.toLowerCase())>-1)n=!0;else{var l=X.getComputedStyle(s);l&&l.getPropertyValue("cursor")==="pointer"&&(n=!0)}r.push(s),i=s}return{parentIsUsefulElement:n,targetElementList:r}};function lx(t){for(var e=t;e.parentNode&&!Si(e,"body");e=e.parentNode){var n=xm(e);if(nt(n,"ph-sensitive")||nt(n,"ph-no-capture"))return!1}if(nt(xm(t),"ph-include"))return!0;var r=t.type||"";if(Yt(r))switch(r.toLowerCase()){case"hidden":case"password":return!1}var i=t.name||t.id||"";return!Yt(i)||!/^cc|cardnum|ccnum|creditcard|csc|cvc|cvv|exp|pass|pwd|routing|seccode|securitycode|securitynum|socialsec|socsec|ssn/i.test(i.replace(/[^a-zA-Z0-9]/g,""))}function IM(t){return!!(Si(t,"input")&&!["button","checkbox","submit","reset"].includes(t.type)||Si(t,"select")||Si(t,"textarea")||t.getAttribute("contenteditable")==="true")}var LM="(4[0-9]{12}(?:[0-9]{3})?)|(5[1-5][0-9]{14})|(6(?:011|5[0-9]{2})[0-9]{12})|(3[47][0-9]{13})|(3(?:0[0-5]|[68][0-9])[0-9]{11}
342)|((?:2131|1800|35[0-9]{3})[0-9]{11})",oK=new RegExp("^(?:"+LM+")$"),aK=new RegExp(LM),MM="\\d{3}-?\\d{2}-?\\d{4}",lK=new RegExp("^("+MM+")$"),uK=new RegExp("("+MM+")");function yd(t,e){return e===void 0&&(e=!0),!(rt(t)||Yt(t)&&(t=ng(t),(e?oK:aK).test((t||"").replace(/[- ]/g,""))||(e?lK:uK).test(t)))}function cT(t){var e=Bd(t);return yd(e=(e+" "+NM(t)).trim())?e:""}function NM(t){var e="";return t&&t.childNodes&&t.childNodes.length&&jt(t.childNodes,(function(n){var r;if(n&&((r=n.tagName)==null?void 0:r.toLowerCase())==="span")try{var i=Bd(n);e=(e+" "+i).trim(),n.childNodes&&n.childNodes.length&&(e=(e+" "+NM(n)).trim())}catch(s){he.error("[AutoCapture]",s)}})),e}function dT(t){return t.replace(/"|\\"/g,'\\"')}function cK(t){var e=t.attr__class;return e?ft(e)?e:N0(e):void 0}class pT{constructor(e){this.disabled=e===!1;var n=nn(e)?e:{};this.thresholdPx=n.threshold_px||30,this.timeoutMs=n.timeout_ms||1e3,this.clickCount=n.click_count||3,this.clicks=[]}isRageClick(e,n,r){if(this.disabled)return!1;var i=this.clicks[this.clicks.length-1];if(i&&Math.abs(e-i.x)+Math.abs(n-i.y)<this.thresholdPx&&this.timeoutMs>r-i.timestamp){if(this.clicks.push({x:e,y:n,timestamp:r}),this.clicks.length===this.clickCount)return!0}else this.clicks=[{x:e,y:n,timestamp:r}];return!1}}var Zy="$copy_autocapture",e_=Bt("[AutoCapture]");function t_(t,e){return e.length>t?e.slice(0,t)+"...":e}function dK(t){if(t.previousElementSibling)return t.previousElementSibling;var e=t;do e=e.previousSibling;while(e&&!Ja(e));return e}function pK(t,e){var n,r,{e:i,maskAllElementAttributes:s,maskAllText:l,elementAttributeIgnoreList:u,elementsChainAsString:c}=e;if(!Ja(t))return{props:{}};for(var p=[t],h=t;h.parentNode&&!Si(h,"body");)if(PM(h.parentNode))p.push(h.parentNode.host),h=h.parentNode.host;else{if(!Ja(h.parentNode))break;p.push(h.parentNode),h=h.parentNode}var m,g,_=[],x={},S=!1,w=!1;if(jt(p,(A=>{var N=lx(A);if(Si(A,"a")){var T=A.getAttribute("href");S=N&&!!T&&yd(T)&&T}nt(xm(A),"ph-no-capture")&&(w=!0),_.push((function(O,j,B,q){var G=O.tagName.toLowerCase(),W={tag_name:G};O0.indexOf(G)>-1&&!B&&(W.$el_text=G.toLowerCase()==="a"||G.toLowerCase()==="button"?t_(1024,cT(O)):t_(1024,Bd(O)));var ie=xm(O);ie.length>0&&(W.classes=ie.filter((function(Z){return Z!==""}))),jt(O.attributes,(function(Z){var Q;if((!IM(O)||["name","id","class","aria-label"].indexOf(Z.name)!==-1)&&(q==null||!q.includes(Z.name))&&!j&&yd(Z.value)&&(!Yt(Q=Z.name)||Q.substring(0,10)!=="_ngcontent"&&Q.substring(0,7)!=="_nghost")){var D=Z.value;Z.name==="class"&&(D=N0(D).join(" ")),W["attr__"+Z.name]=t_(1024,D)}}));for(var se=1,de=1,$=O;$=dK($);)se++,$.tagName===O.tagName&&de++;return W.nth_child=se,W.nth_of_type=de,W})(A,s,l,u));var L=(function(O){if(!lx(O))return{};var j={};return jt(O.attributes,(function(B){if(B.name&&B.name.indexOf("data-ph-capture-attribute")===0){var q=B.name.replace("data-ph-capture-attribute-",""),G=B.value;q&&G&&yd(G)&&(j[q]=G)}})),j})(A);Zt(x,L)})),w)return{props:{},explicitNoCapture:w};if(l||(_[0].$el_text=Si(t,"a")||Si(t,"button")?cT(t):Bd(t)),S){var C,R;_[0].attr__href=S;var I=(C=gm(S))==null?void 0:C.host,P=X==null||(R=X.location)==null?void 0:R.host;I&&P&&I!==P&&(m=S)}return{props:Zt({$event_type:i.type,$ce_version:1},c?{}:{$elements:_},{$elements_chain:(g=_,(function(A){return A.map((N=>{var T,L,O="";if(N.tag_name&&(O+=N.tag_name),N.attr_class)for(var j of(N.attr_class.sort(),N.attr_class))O+="."+j.replace(/"/g,"");var B=ue({},N.text?{text:N.text}:{},{"nth-child":(T=N.nth_child)!==null&&T!==void 0?T:0,"nth-of-type":(L=N.nth_of_type)!==null&&L!==void 0?L:0},N.href?{href:N.href}:{},N.attr_id?{attr_id:N.attr_id}:{},N.attributes),q={};return Sf(B).sort(((G,W)=>{var[ie]=G,[se]=W;return ie.localeCompare(se)})).forEach((G=>{var[W,ie]=G;return q[dT(W.toString())]=dT(ie.toString())})),(O+=":")+Sf(q).map((G=>{var[W,ie]=G;return W+'="'+ie+'"'})).join("")})).join(";")})((function(A){return A.map((N=>{var T,L,O={text:(T=N.$el_text)==null?void 0:T.slice(0,400),tag_name:N.tag_name,href:(L=N.attr__href)==null?void 0:L.slice(0,2048),attr_class:cK(N),attr_id:N.attr__id,nth_child:N.nth_child,nth_of_type:N.nth_of_type,attributes:{}};return Sf(N).filter((j=>{var[B]=j;return B.indexOf("attr__")===0}
342)).forEach((j=>{var[B,q]=j;return O.attributes[B]=q})),O}))})(g)))},(n=_[0])!=null&&n.$el_text?{$el_text:(r=_[0])==null?void 0:r.$el_text}:{},m&&i.type==="click"?{$external_click_url:m}:{},x)}}var qc=Bt("[ExceptionAutocapture]");function hT(t,e,n){try{if(!(e in t))return()=>{};var r=t[e],i=n(r);return gs(i)&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__posthog_wrapped__:{enumerable:!1,value:!0}})),t[e]=i,()=>{t[e]=r}}catch{return()=>{}}}var hK=Bt("[TracingHeaders]"),ro=Bt("[Web Vitals]"),fT=9e5,mT="disabled",gT="lazy_loading",Wc="awaiting_config",Kh="missing_config";Bt("[SessionRecording]"),Bt("[SessionRecording]");var ux="[SessionRecording]",cs=Bt(ux),fK=Bt("[Heatmaps]");function vT(t){return nn(t)&&"clientX"in t&&"clientY"in t&&ni(t.clientX)&&ni(t.clientY)}var yT=Bt("[Product Tours]"),mK=["$set_once","$set"],io=Bt("[SiteApps]"),_T="Error while initializing PostHog app with config id ";function $l(t,e,n){if(rt(t))return!1;switch(n){case"exact":return t===e;case"contains":var r=e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&").replace(/_/g,".").replace(/%/g,".*");return new RegExp(r,"i").test(t);case"regex":try{return new RegExp(e).test(t)}catch{return!1}default:return!1}}class gK{constructor(e){this.vn=new M0,this.fn=(n,r)=>this.pn(n,r)&&this.gn(n,r)&&this.mn(n,r)&&this.yn(n,r),this.pn=(n,r)=>r==null||!r.event||(n==null?void 0:n.event)===(r==null?void 0:r.event),this._instance=e,this.bn=new Set,this._n=new Set}init(){var e,n;ve((e=this._instance)==null?void 0:e._addCaptureHook)||(n=this._instance)==null||n._addCaptureHook(((r,i)=>{this.on(r,i)}))}register(e){var n,r;if(!ve((n=this._instance)==null?void 0:n._addCaptureHook)&&(e.forEach((l=>{var u,c;(u=this._n)==null||u.add(l),(c=l.steps)==null||c.forEach((p=>{var h;(h=this.bn)==null||h.add((p==null?void 0:p.event)||"")}))})),(r=this._instance)!=null&&r.autocapture)){var i,s=new Set;e.forEach((l=>{var u;(u=l.steps)==null||u.forEach((c=>{c!=null&&c.selector&&s.add(c==null?void 0:c.selector)}))})),(i=this._instance)==null||i.autocapture.setElementSelectors(s)}}on(e,n){var r;n!=null&&e.length!=0&&(this.bn.has(e)||this.bn.has(n==null?void 0:n.event))&&this._n&&((r=this._n)==null?void 0:r.size)>0&&this._n.forEach((i=>{this.wn(n,i)&&this.vn.emit("actionCaptured",i.name)}))}xn(e){this.onAction("actionCaptured",(n=>e(n)))}wn(e,n){if((n==null?void 0:n.steps)==null)return!1;for(var r of n.steps)if(this.fn(e,r))return!0;return!1}onAction(e,n){return this.vn.on(e,n)}gn(e,n){if(n!=null&&n.url){var r,i=e==null||(r=e.properties)==null?void 0:r.$current_url;if(!i||typeof i!="string"||!$l(i,n.url,n.url_matching||"contains"))return!1}return!0}mn(e,n){return!!this.Sn(e,n)&&!!this.kn(e,n)&&!!this.Cn(e,n)}Sn(e,n){var r;if(n==null||!n.href)return!0;var i=this.In(e);if(i.length>0)return i.some((u=>$l(u.href,n.href,n.href_matching||"exact")));var s,l=(e==null||(r=e.properties)==null?void 0:r.$elements_chain)||"";return!!l&&$l((s=l.match(/(?::|")href="(.*?)"/))?s[1]:"",n.href,n.href_matching||"exact")}kn(e,n){var r;if(n==null||!n.text)return!0;var i=this.In(e);if(i.length>0)return i.some((p=>$l(p.text,n.text,n.text_matching||"exact")||$l(p.$el_text,n.text,n.text_matching||"exact")));var s,l,u,c=(e==null||(r=e.properties)==null?void 0:r.$elements_chain)||"";return!!c&&(s=(function(p){for(var h,m=[],g=/(?::|")text="(.*?)"/g;!rt(h=g.exec(p));)m.includes(h[1])||m.push(h[1]);return m})(c),l=n.text,u=n.text_matching||"exact",s.some((p=>$l(p,l,u))))}Cn(e,n){var r,i;if(n==null||!n.selector)return!0;var s=e==null||(r=e.properties)==null?void 0:r.$element_selectors;if(s!=null&&s.includes(n.selector))return!0;var l=(e==null||(i=e.properties)==null?void 0:i.$elements_chain)||"";if(n.selector_regex&&l)try{return new RegExp(n.selector_regex).test(l)}catch{return!1}return!1}In(e){var n;return(e==null||(n=e.properties)==null?void 0:n.$elements)==null?[]:e==null?void 0:e.properties.$elements}yn(e,n){return n==null||!n.properties||n.properties.length===0||EM(n.properties.reduce(((r,i)=>{var s=ft(i.value)?i.value.map(String):i.value!=null?[String(i.value)]:[];return r[i.key]={values:s,operator:i.operator||"exact"},r}),{}),e==null?void 0:e.properties)}}class vK{constructor(e){this._instance=e,this.Tn=new Map,this.En=new Map,this.Mn=new Map}Pn(e,n){return!!e&&EM(e.propertyFilters,n==null?void 0:n.properties)}Rn(e,n){var r=new Map;return e.forEach((i=>{var s;(s=i.conditions)==null||(s=s[n])==null||(s=s.values)==null||s.forEac
342h((l=>{if(l!=null&&l.name){var u=r.get(l.name)||[];u.push(i.id),r.set(l.name,u)}}))})),r}On(e,n,r){var i=(r===Fc.Activation?this.Tn:this.En).get(e),s=[];return this.Ln((l=>{s=l.filter((u=>i==null?void 0:i.includes(u.id)))})),s.filter((l=>{var u,c=(u=l.conditions)==null||(u=u[r])==null||(u=u.values)==null?void 0:u.find((p=>p.name===e));return this.Pn(c,n)}))}register(e){var n;ve((n=this._instance)==null?void 0:n._addCaptureHook)||(this.Fn(e),this.An(e))}An(e){var n=e.filter((r=>{var i,s;return((i=r.conditions)==null?void 0:i.actions)&&((s=r.conditions)==null||(s=s.actions)==null||(s=s.values)==null?void 0:s.length)>0}));n.length!==0&&(this.Nn==null&&(this.Nn=new gK(this._instance),this.Nn.init(),this.Nn.xn((r=>{this.onAction(r)}))),n.forEach((r=>{var i,s,l,u,c;r.conditions&&(i=r.conditions)!=null&&i.actions&&(s=r.conditions)!=null&&(s=s.actions)!=null&&s.values&&((l=r.conditions)==null||(l=l.actions)==null||(l=l.values)==null?void 0:l.length)>0&&((u=this.Nn)==null||u.register(r.conditions.actions.values),(c=r.conditions)==null||(c=c.actions)==null||(c=c.values)==null||c.forEach((p=>{if(p&&p.name){var h=this.Mn.get(p.name);h&&h.push(r.id),this.Mn.set(p.name,h||[r.id])}})))})))}Fn(e){var n,r=e.filter((s=>{var l,u;return((l=s.conditions)==null?void 0:l.events)&&((u=s.conditions)==null||(u=u.events)==null||(u=u.values)==null?void 0:u.length)>0})),i=e.filter((s=>{var l,u;return((l=s.conditions)==null?void 0:l.cancelEvents)&&((u=s.conditions)==null||(u=u.cancelEvents)==null||(u=u.values)==null?void 0:u.length)>0}));r.length===0&&i.length===0||((n=this._instance)==null||n._addCaptureHook(((s,l)=>{this.onEvent(s,l)})),this.Tn=this.Rn(e,Fc.Activation),this.En=this.Rn(e,Fc.Cancellation))}onEvent(e,n){var r,i=this.le(),s=this.$n(),l=this.Dn(),u=((r=this._instance)==null||(r=r.persistence)==null?void 0:r.props[s])||[];if(l===e&&n&&u.length>0){var c,p;i.info("event matched, removing item from activated items",{event:e,eventPayload:n,existingActivatedItems:u});var h=(n==null||(c=n.properties)==null?void 0:c.$survey_id)||(n==null||(p=n.properties)==null?void 0:p.$product_tour_id);if(h){var m=u.indexOf(h);0>m||(u.splice(m,1),this.qn(u))}}else{if(this.En.has(e)){var g=this.On(e,n,Fc.Cancellation);g.length>0&&(i.info("cancel event matched, cancelling items",{event:e,itemsToCancel:g.map((x=>x.id))}),g.forEach((x=>{var S=u.indexOf(x.id);0>S||u.splice(S,1),this.jn(x.id)})),this.qn(u))}if(this.Tn.has(e)){i.info("event name matched",{event:e,eventPayload:n,items:this.Tn.get(e)});var _=this.On(e,n,Fc.Activation);this.qn(u.concat(_.map((x=>x.id))||[]))}}}onAction(e){var n,r=this.$n(),i=((n=this._instance)==null||(n=n.persistence)==null?void 0:n.props[r])||[];this.Mn.has(e)&&this.qn(i.concat(this.Mn.get(e)||[]))}qn(e){var n=this.le(),r=[...new Set(e)].filter((i=>!this.Hn(i)));n.info("updating activated items",{activatedItems:r}),this.Un(r)}getActivatedIds(){var e,n=this.$n();return((e=this._instance)==null||(e=e.persistence)==null?void 0:e.props[n])||[]}getEventToItemsMap(){return this.Tn}Bn(){return this.Nn}}class yK extends vK{constructor(e){super(e)}$n(){return Hb}Dn(){return nd.SHOWN}Ln(e){var n;(n=this._instance)==null||n.getSurveys(e)}jn(e){var n;(n=this._instance)==null||n.cancelPendingSurvey(e)}le(){return Et}Un(e){var n;(n=this._instance)==null||(n=n.persistence)==null||n.register({[Hb]:e})}Hn(){return!1}getSurveys(){return this.getActivatedIds()}getEventToSurveys(){return this.getEventToItemsMap()}}var n_="SDK is not enabled or survey functionality is not yet loaded",bT="Disabled. Not loading surveys.",_K=X!=null&&X.location?vm(X.location.hash,"__posthog")||vm(location.hash,"state"):null,xT="_postHogToolbarParams",ST=Bt("[Toolbar]"),Jn=Bt("[FeatureFlags]"),fa=Bt("[FeatureFlags]",{debugEnabled:!0}),r_=`" failed. Feature flags didn't load in time.`,wT=t=>{for(var e={},n=0;t.length>n;n++)e[t[n]]=!0;return e},ET=t=>{var e={};for(var[n,r]of Sf(t||{}))r&&(e[n]=r);return e},ds=Bt("[Error tracking]"),kT="Refusing to render web experiment since the viewer is a likely bot",bK={icontains:(t,e)=>!!X&&e.href.toLowerCase().indexOf(t.toLowerCase())>-1,not_icontains:(t,e)=>!!X&&e.href.toLowerCase().indexOf(t.toLowerCase())===-1,regex:(t,e)=>!!X&&bm(e.href,t),not_regex:(t,e)=>!!X&&!bm(e.href,t),exact:(t,e)=>e.href===t,is_not:(t,e)=>e.href!==t};class Bn{get qt(){return this._instance.config}constructor(e){var n=this;this.getWebExperimentsAndEvaluateDisplayLogic=function(r){r===void 0&&(r=!1),n.getWebExperiments((i=>{Bn.zn("retrieved web experiments from the server"),n.Vn=new Map,i.forEac
342h((s=>{if(s.feature_flag_key){var l;n.Vn&&(Bn.zn("setting flag key ",s.feature_flag_key," to web experiment ",s),(l=n.Vn)==null||l.set(s.feature_flag_key,s));var u=n._instance.getFeatureFlag(s.feature_flag_key);Yt(u)&&s.variants[u]&&n.Wn(s.name,u,s.variants[u].transforms)}else if(s.variants)for(var c in s.variants){var p=s.variants[c];Bn.Zn(p)&&n.Wn(s.name,c,p.transforms)}}))}),r)},this._instance=e,this._instance.onFeatureFlags((r=>{this.onFeatureFlags(r)}))}initialize(){}onFeatureFlags(e){if(this._is_bot())Bn.zn(kT);else if(!this.qt.disable_web_experiments){if(rt(this.Vn))return this.Vn=new Map,this.loadIfEnabled(),void this.previewWebExperiment();Bn.zn("applying feature flags",e),e.forEach((n=>{var r;if(this.Vn&&(r=this.Vn)!=null&&r.has(n)){var i,s=this._instance.getFeatureFlag(n),l=(i=this.Vn)==null?void 0:i.get(n);s&&l!=null&&l.variants[s]&&this.Wn(l.name,s,l.variants[s].transforms)}}))}}previewWebExperiment(){var e=Bn.getWindowLocation();if(e!=null&&e.search){var n=Fd(e==null?void 0:e.search,"__experiment_id"),r=Fd(e==null?void 0:e.search,"__experiment_variant");n&&r&&(Bn.zn("previewing web experiments "+n+" && "+r),this.getWebExperiments((i=>{this.Gn(parseInt(n),r,i)}),!1,!0))}}loadIfEnabled(){this.qt.disable_web_experiments||this.getWebExperimentsAndEvaluateDisplayLogic()}getWebExperiments(e,n,r){if(this.qt.disable_web_experiments&&!r)return e([]);var i=this._instance.get_property("$web_experiments");if(i&&!n)return e(i);this._instance._send_request({url:this._instance.requestRouter.endpointFor("api","/api/web_experiments/?token="+this.qt.token),method:"GET",callback:s=>e(s.statusCode===200&&s.json&&s.json.experiments||[])})}Gn(e,n,r){var i=r.filter((s=>s.id===e));i&&i.length>0&&(Bn.zn("Previewing web experiment ["+i[0].name+"] with variant ["+n+"]"),this.Wn(i[0].name,n,i[0].variants[n].transforms))}static Zn(e){return!rt(e.conditions)&&Bn.Qn(e)&&Bn.Jn(e)}static Qn(e){var n;if(rt(e.conditions)||rt((n=e.conditions)==null?void 0:n.url))return!0;var r,i,s,l=Bn.getWindowLocation();return!!l&&((r=e.conditions)==null||!r.url||bK[(i=(s=e.conditions)==null?void 0:s.urlMatchType)!==null&&i!==void 0?i:"icontains"](e.conditions.url,l))}
342static getWindowLocation(){return X==null?void 0:X.location}static Jn(e){var n;if(rt(e.conditions)||rt((n=e.conditions)==null?void 0:n.utm))return!0;var r=lM();if(r.utm_source){var i,s,l,u,c,p,h,m,g=(i=e.conditions)==null||(i=i.utm)==null||!i.utm_campaign||((s=e.conditions)==null||(s=s.utm)==null?void 0:s.utm_campaign)==r.utm_campaign,_=(l=e.conditions)==null||(l=l.utm)==null||!l.utm_source||((u=e.conditions)==null||(u=u.utm)==null?void 0:u.utm_source)==r.utm_source,x=(c=e.conditions)==null||(c=c.utm)==null||!c.utm_medium||((p=e.conditions)==null||(p=p.utm)==null?void 0:p.utm_medium)==r.utm_medium,S=(h=e.conditions)==null||(h=h.utm)==null||!h.utm_term||((m=e.conditions)==null||(m=m.utm)==null?void 0:m.utm_term)==r.utm_term;return g&&x&&S&&_}return!1}static zn(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;n>i;i++)r[i-1]=arguments[i];he.info("[WebExperiments] "+e,r)}Wn(e,n,r){this._is_bot()?Bn.zn(kT):n!=="control"?r.forEach((i=>{if(i.selector){var s;Bn.zn("applying transform of variant "+n+" for experiment "+e+" ",i);var l=(s=document)==null?void 0:s.querySelectorAll(i.selector);l==null||l.forEach((u=>{var c=u;i.html&&(c.innerHTML=i.html),i.css&&c.setAttribute("style",i.css)}))}})):Bn.zn("Control variants leave the page unmodified.")}_is_bot(){return Dr&&this._instance?SM(Dr,this.qt.custom_blocked_useragents):void 0}}var Jr=Bt("[Conversations]"),ma="Conversations not available yet.",sg={featureFlags:class{constructor(t){this.Kn=!1,this.Yn=!1,this.Xn=!1,this.es=!1,this.ts=!1,this.rs=!1,this.ns=!1,this.ss=!1,this._instance=t,this.featureFlagEventHandlers=[]}get qt(){return this._instance.config}get ni(){return this._instance.persistence}os(t){return this._instance.get_property(t)}us(){var t,e;return(t=(e=this.ni)==null?void 0:e.wr(this.qt.feature_flag_cache_ttl_ms))!==null&&t!==void 0&&t}ls(){return!!this.us()&&(this.ss||this.Xn||(this.ss=!0,Jn.warn("Feature flag cache is stale, triggering refresh..."),this.reloadFeatureFlags()),!0)}hs(){var t,e=(t=this.qt.evaluation_contexts)!==null&&t!==void 0?t:this.qt.evaluation_environments;return!this.qt.evaluation_environments||this.qt.evaluation_contexts||this.ns||(Jn.warn("evaluation_environments is deprecated. Use evaluation_contexts instead. evaluation_environments will be removed in a future version."),this.ns=!0),e!=null&&e.length?e.filter((n=>{var r=n&&typeof n=="string"&&n.trim().length>0;return r||Jn.error("Invalid evaluation context found:",n,"Expected non-empty string"),r})):[]}cs(){return this.hs().length>0}initialize(){var t,e,{config:n}=this._instance,r=(t=(e=n.bootstrap)==null?void 0:e.featureFlags)!==null&&t!==void 0?t:{};if(Object.keys(r).length){var i,s,l=(i=(s=n.bootstrap)==null?void 0:s.featureFlagPayloads)!==null&&i!==void 0?i:{},u=Object.keys(r).filter((p=>!!r[p])).reduce(((p,h)=>(p[h]=r[h]||!1,p)),{}),c=Object.keys(l).filter((p=>u[p])).reduce(((p,h)=>(l[h]&&(p[h]=l[h]),p)),{});this.receivedFeatureFlags({featureFlags:u,featureFlagPayloads:c})}}updateFlags(t,e,n){var r=n!=null&&n.merge?this.getFlagVariants():{},i=n!=null&&n.merge?this.getFlagPayloads():{},s=ue({},r,t),l=ue({},i,e),u={};for(var[c,p]of Object.entries(s)){var h=typeof p=="string";u[c]={key:c,enabled:!!h||!!p,variant:h?p:void 0,reason:void 0,metadata:ve(l==null?void 0:l[c])?void 0:{id:0,version:void 0,description:void 0,payload:l[c]}}}this.receivedFeatureFlags({flags:u})}get hasLoadedFlags(){return this.Yn}getFlags(){return Object.keys(this.getFlagVariants())}getFlagsWithDetails(){var t=this.os(Bb),e=this.os(ms),n=this.os(Jl);if(!n&&!e)return t||{};var r=Zt({},t||{}),i=[...new Set([...Object.keys(n||{}),...Object.keys(e||{})])];for(var s of i){var l,u,c=r[s],p=e==null?void 0:e[s],h=ve(p)?(l=c==null?void 0:c.enabled)!==null&&l!==void 0&&l:!!p,m=ve(p)?c.variant:typeof p=="string"?p:void 0,g=n==null?void 0:n[s],_=ue({},c,{enabled:h,variant:h?m??(c==null?void 0:c.variant):void 0});h!==(c==null?void 0:c.enabled)&&(_.original_enabled=c==null?void 0:c.enabled),m!==(c==null?void 0:c.variant)&&(_.original_variant=c==null?void 0:c.variant),g&&(_.metadata=ue({},c==null?void 0:c.metadata,{payload:g,original_payload:c==null||(u=c.metadata)==null?void 0:u.payload})),r[s]=_}return this.Kn||(Jn.warn(" Overriding feature flag details!",{flagDetails:t,overriddenPayloads:n,finalDetails:r}),this.Kn=!0),r}getFlagVariants(){var t=this.os(su),e=this.os(ms);if(!e)return t||{};for(var n=Zt({},t),r=Object.keys(e),i=0;r.length>i;i++)n[r[i]]=e[r[i]];return this.Kn||(Jn.warn(" Overriding feature flags!",{enabledFlags:t,overriddenFlags:e,finalFlags:n}),this.Kn=!0),n}getFlagPayloads(){var t=this.os($b),e=this.os(Jl);if(!e)return t||{};for(var n=Zt({},t||{}),r=Object.keys(e),i=0;r.length>i;i++)n[r[i]]=e[r[i]];return this.Kn||(Jn.warn(" Overriding feature flag payloads!",{flagPayloads:t,overriddenPayloads:e,finalPayloads:n}),this.Kn=!0),n}reloadFeatureFlags(){this.es||this.qt.advanced_disable_feature_flags||this.ds||(this._instance.Li.emit("featureFlagsReloading",!0),this.ds=setTimeout((()=>{this.vs()}),5))}fs(){clearTimeout(this.ds),this.ds=void 0}ensureFlagsLoaded(){this.Yn||this.Xn||this.ds||this.reloadFeatureFlags()}setAnonymousDistinctId(t){this.$anon_distinct_id=t}setReloadingPaused(t){this.es=t}vs(t){var e;if(this.fs(),!this._instance.Lr())if(this.Xn)this.ts=!0;else{var n=this.qt.token,r=this.os(lm),i={token:n,distinct_id:this._instance.get_distinct_id(),groups:this._instance.getGroups(),$anon_distinct_id:this.$anon_distinct_id,person_properties:ue({},((e=this.ni)==null?void 0:e.get_initial_props())||{},this.os(td)||{}),group_properties:this.os(ya),timezone:fM()};Ms(r)||ve(r)||(i.$device_id=r),(t!=null&&t.disableFlags||this.qt.advanced_disable_feature_flags)&&(i.disable_flags=!0),this.cs()&&(i.evaluation_contexts=this.hs());var s=this._instance.requestRouter.endpointFor("flags","/flags/?v=2"+(this.qt.advanced_only_evaluate_survey_feature_flags?"&only_evaluate_survey_feature_flags=true":""));this.Xn=!0,this._instance._send_request({method:"POST",url:s,data:i,compression:this.qt.disable_compression?void 0:$i.Base64,timeout:this.qt.feature_flag_request_timeout_ms,callback:l=>{var u,c,p,h=!0;if(l.statusCode===200&&(this.ts||(this.$anon_distinct_id=void 0),h=!1),this.Xn=!1,!i.disable_flags||this.ts){this.rs=!h;var m=[];l.error?l.error instanceof Error?m.push(l.error.name==="AbortError"?"timeout":"connection_error"):m.push("unknown_error"):l.statusCode!==200&&m.push("api_error_"+l.statusCode),(u=l.json)!=null&&u.errorsWhileComputingFlags&&m.push("errors_while_computing_flags");var g,_=!((c=l.json)==null||(c=c.quotaLimited)==null||!c.includes("feature_flags"));_&&m.push("quota_limited"),(p=this.ni)==null||p.register({[Gb]:m}),_?Jn.warn("You have hit your feature flags quota limit, and will not be able to load feature flags until the quota is reset. Please visit https://posthog.com/docs/billing/limits-alerts to learn more."):(i.disable_flags||this.receivedFeatureFlags((g=l.json)!==null&&g!==void 0?g:{},h,{partialResponse:!!this.qt.advanced_only_evaluate_survey_feature_flags}
342),this.ts&&(this.ts=!1,this.vs()))}}})}}getFeatureFlag(t,e){var n;if(e===void 0&&(e={}),!e.fresh||this.rs)if(this.Yn||this.getFlags()&&this.getFlags().length>0){if(!this.ls()){var r=this.getFeatureFlagResult(t,e);return(n=r==null?void 0:r.variant)!==null&&n!==void 0?n:r==null?void 0:r.enabled}}else Jn.warn('getFeatureFlag for key "'+t+r_)}getFeatureFlagDetails(t){return this.getFlagsWithDetails()[t]}getFeatureFlagPayload(t){var e=this.getFeatureFlagResult(t,{send_event:!1});return e==null?void 0:e.payload}getFeatureFlagResult(t,e){if(e===void 0&&(e={}),!e.fresh||this.rs)if(this.Yn||this.getFlags()&&this.getFlags().length>0){if(!this.ls()){var n=this.getFlagVariants(),r=t in n,i=n[t],s=this.getFlagPayloads()[t],l=String(i),u=this.os(qb)||void 0,c=this.os(cm)||void 0,p=this.os(md)||{};if(this.qt.advanced_feature_flags_dedup_per_session){var h,m=this._instance.get_session_id(),g=this.os(Vb);m&&m!==g&&(p={},(h=this.ni)==null||h.register({[md]:p,[Vb]:m}))}if((e.send_event||!("send_event"in e))&&(!(t in p)||!p[t].includes(l))){var _,x,S,w,C,R,I,P,A,N;ft(p[t])?p[t].push(l):p[t]=[l],(_=this.ni)==null||_.register({[md]:p});var T=this.getFeatureFlagDetails(t),L=[...(x=this.os(Gb))!==null&&x!==void 0?x:[]];ve(i)&&L.push("flag_missing");var O={$feature_flag:t,$feature_flag_response:i,$feature_flag_payload:s||null,$feature_flag_request_id:u,$feature_flag_evaluated_at:c,$feature_flag_bootstrapped_response:((S=this.qt.bootstrap)==null||(S=S.featureFlags)==null?void 0:S[t])||null,$feature_flag_bootstrapped_payload:((w=this.qt.bootstrap)==null||(w=w.featureFlagPayloads)==null?void 0:w[t])||null,$used_bootstrap_value:!this.rs};ve(T==null||(C=T.metadata)==null?void 0:C.version)||(O.$feature_flag_version=T.metadata.version);var j,B=(R=T==null||(I=T.reason)==null?void 0:I.description)!==null&&R!==void 0?R:T==null||(P=T.reason)==null?void 0:P.code;B&&(O.$feature_flag_reason=B),T!=null&&(A=T.metadata)!=null&&A.id&&(O.$feature_flag_id=T.metadata.id),ve(T==null?void 0:T.original_variant)&&ve(T==null?void 0:T.original_enabled)||(O.$feature_flag_original_response=ve(T.original_variant)?T.original_enabled:T.original_variant),T!=null&&(N=T.metadata)!=null&&N.original_payload&&(O.$feature_flag_original_payload=T==null||(j=T.metadata)==null?void 0:j.original_payload),L.length&&(O.$feature_flag_error=L.join(",")),this._instance.capture("$feature_flag_called",O)}if(r){var q=s;if(!ve(s))try{q=JSON.parse(s)}catch{}return{key:t,enabled:!!i,variant:typeof i=="string"?i:void 0,payload:q}}}}else Jn.warn('getFeatureFlagResult for key "'+t+r_)}getRemoteConfigPayload(t,e){var n=this.qt.token,r={distinct_id:this._instance.get_distinct_id(),token:n};this.cs()&&(r.evaluation_contexts=this.hs()),this._instance._send_request({method:"POST",url:this._instance.requestRouter.endpointFor("flags","/flags/?v=2"),data:r,compression:this.qt.disable_compression?void 0:$i.Base64,timeout:this.qt.feature_flag_request_timeout_ms,callback(i){var s,l=(s=i.json)==null?void 0:s.featureFlagPayloads;e((l==null?void 0:l[t])||void 0)}})}isFeatureEnabled(t,e){if(e===void 0&&(e={}),!e.fresh||this.rs){if(this.Yn||this.getFlags()&&this.getFlags().length>0){var n=this.getFeatureFlag(t,e);return ve(n)?void 0:!!n}Jn.warn('isFeatureEnabled for key "'+t+r_)}}addFeatureFlagsHandler(t){this.featureFlagEventHandlers.push(t)}removeFeatureFlagsHandler(t){this.featureFlagEventHandlers=this.featureFlagEventHandlers.filter((e=>e!==t))}receivedFeatureFlags(t,e,n){if(this.ni){this.Yn=!0;var r=this.getFlagVariants(),i=this.getFlagPayloads(),s=this.getFlagsWithDetails();(function(l,u,c,p,h,m){c===void 0&&(c={}),p===void 0&&(p={}),h===void 0&&(h={});var g=(L=>{var O=L.flags;return O?(L.featureFlags=Object.fromEntries(Object.keys(O).map((j=>{var B;return[j,(B=O[j].variant)!==null&&B!==void 0?B:O[j].enabled]}))),L.featureFlagPayloads=Object.fromEntries(Object.keys(O).filter((j=>O[j].enabled)).filter((j=>{var B;return(B=O[j].metadata)==null?void 0:B.payload})).map((j=>{var B;return[j,(B=O[j].metadata)==null?void 0:B.payload]})))):Jn.warn("Using an older version of the feature flags endpoint. Please upgrade your PostHog server to the latest version"),L})(l),_=g.flags,x=g.featureFlags,S=g.featureFlagPayloads;if(x){var w=l.requestId,C=l.evaluatedAt;if(ft(x)){Jn.warn("v1 of the feature flags endpoint is deprecated. Please use the latest version.");var R={};if(x)for(var I=0;x.length>I;I++)R[x[I]]=!0;u&&u.register({[bf]:x,[su]:R})}else{var P=x,A=S,N=_;if(m!=null&&m.partialResponse)P=ue({},c,P),A=ue({},p,A),N=ue({},h,N);else if(l.errorsWhileComputingFlags)if(_){var T=new Set(Object.keys(_).filter((L=>{var O;return!((O=_[L])!=null&&O.failed)})));P=ue({},c,Object.fromEntries(Object.entries(P).filter((L=>{var[O]=L;return T.has(O)})))),A=ue({},p,Object.fromEntries(Object.entries(A||{}).filter((L=>{var[O]=L;return T.has(O)})))),N=ue({},h,Object.fromEntries(Object.entries(N||{}).filter((L=>{var[O]=L;return T.has(O)}))))}else P=ue({},c,P),A=ue({},p,A),N=ue({},h,N);u&&u.register(ue({[bf]:Object.keys(ET(P)),[su]:P||{},[$b]:A||{},[Bb]:N||{}},w?{[qb]:w}:{},C?{[cm]:C}:{}))}}})(t,this.ni,r,i,s,n),e||(this.ss=!1),this.ps(e)}}override(t,e){e===void 0&&(e=!1),Jn.warn("override is deprecated. Please use overrideFeatureFlags instead."),this.overrideFeatureFlags({flags:t,suppressWarning:e})}overrideFeatureFlags(t){if(!this._instance.__loaded||!this.ni)return Jn.uninitializedWarning("posthog.featureFlags.overrideFeatureFlags");if(t===!1)return this.ni.unregister(ms),this.ni.unregister(Jl),this.ps(),fa.info("All overrides cleared");if(ft(t)){var e=wT(t);return this.ni.register({[ms]:e}),this.ps(),fa.info("Flag overrides set",{flags:t})}if(t&&typeof t=="object"&&("flags"in t||"payloads"in t)){var n,r=t;if(this.Kn=!!((n=r.suppressWarning)!==null&&n!==void 0&&n),"flags"in r){if(r.flags===!1)this.ni.unregister(ms),fa.info("Flag overrides cleared");else if(r.flags){if(ft(r.flags)){var i=wT(r.flags);this.ni.register({[ms]:i})}else this.ni.register({[ms]:r.flags});fa.info("Flag overrides set",{flags:r.flags})}}return"payloads"in r&&(r.payloads===!1?(this.ni.unregister(Jl),fa.info("Payload overrides cleared")):r.payloads&&(this.ni.register({[Jl]:r.payloads}),fa.info("Payload overrides set",{payloads:r.payloads}))),void this.ps()}if(t&&typeof t=="object")return this.ni.register({[ms]:t}),this.ps(),fa.info("Flag overrides set",{flags:t});Jn.warn("Invalid overrideOptions provided to overrideFeatureFlags",{overrideOptions:t})}onFeatureFlags(t){if(this.addFeatureFlagsHandler(t),this.Yn){var{flags:e,flagVariants:n}=this.gs();t(e,n)}return()=>this.removeFeatureFlagsHandler(t)}updateEarlyAccessFeatureEnrollment(t,e,n){var r,i=(this.os(ed)||[]).find((c=>c.flagKey===t)),s={["$feature_enrollment/"+t]:e},l={$feature_flag:t,$feature_enrollment:e,$set:s};i&&(l.$early_access_feature_name=i.name),n&&(l.$feature_enrollment_stage=n),this._instance.capture("$feature_enrollment_update",l),this.setPersonPropertiesForFlags(s,!1);var u=ue({},this.getFlagVariants(),{[t]:e});(r=this.ni)==null||r.register({[bf]:Object.keys(ET(u)),[su]:u}),this.ps()}getEarlyAccessFeatures(t,e,n){e===void 0&&(e=!1);var r=this.os(ed),i=n?"&"+n.map((s=>"stage="+s)).join("&"):"";if(r&&!e)return t(r);this._instance._send_request({url:this._instance.requestRouter.endpointFor("api","/api/early_access_features/?token="+this.qt.token+i),method:"GET",callback:s=>{var l,u;if(s.json){var c=s.json.earlyAccessFeatures;return(l=this.ni)==null||l.unregister(ed),(u=this.ni)==null||u.register({[ed]:c}),t(c)}}})}gs(){var t=this.getFlags(),e=this.getFlagVariants();return{flags:t.filter((n=>e[n])),flagVariants:Object.keys(e).filter((n=>e[n])).reduce(((n,r)=>(n[r]=e[r],n)),{})}}ps(t){var{flags:e,flagVariants:n}=this.gs();
342this.featureFlagEventHandlers.forEach((r=>r(e,n,{errorsLoading:t})))}setPersonPropertiesForFlags(t,e){e===void 0&&(e=!0);var n=this.os(td)||{},r=(t==null?void 0:t.$set)||(t!=null&&t.$set_once?{}:t),i=t==null?void 0:t.$set_once,s={};if(i)for(var l in i)({}).hasOwnProperty.call(i,l)&&(l in n||(s[l]=i[l]));this._instance.register({[td]:ue({},n,s,r)}),e&&this._instance.reloadFeatureFlags()}resetPersonPropertiesForFlags(){this._instance.unregister(td)}setGroupPropertiesForFlags(t,e){e===void 0&&(e=!0);var n=this.os(ya)||{};Object.keys(n).length!==0&&Object.keys(n).forEach((r=>{n[r]=ue({},n[r],t[r]),delete t[r]})),this._instance.register({[ya]:ue({},n,t)}),e&&this._instance.reloadFeatureFlags()}resetGroupPropertiesForFlags(t){if(t){var e=this.os(ya)||{};this._instance.register({[ya]:ue({},e,{[t]:{}})})}else this._instance.unregister(ya)}reset(){this.Yn=!1,this.Xn=!1,this.es=!1,this.ts=!1,this.rs=!1,this.$anon_distinct_id=void 0,this.fs(),this.Kn=!1}}},xK={sessionRecording:class{get qt(){return this._instance.config}get ni(){return this._instance.persistence}get started(){var t;return!((t=this.ys)==null||!t.isStarted)}get status(){var t,e;return this.bs===Wc||this.bs===Kh?this.bs:(t=(e=this.ys)==null?void 0:e.status)!==null&&t!==void 0?t:this.bs}constructor(t){if(this._forceAllowLocalhostNetworkCapture=!1,this.bs=mT,this._s=void 0,this._instance=t,!this._instance.sessionManager)throw cs.error("started without valid sessionManager"),new Error(ux+" started without valid sessionManager. This is a bug.");if(this.qt.cookieless_mode===bs)throw new Error(ux+' cannot be used with cookieless_mode="always"')}initialize(){this.startIfEnabledOrStop()}get ws(){var t,e=!((t=this._instance.get_property(Zc))==null||!t.enabled),n=!this.qt.disable_session_recording,r=this.qt.disable_session_recording||this._instance.consent.isOptedOut();return X&&e&&n&&!r}startIfEnabledOrStop(t){var e;if(!this.ws||(e=this.ys)==null||!e.isStarted){var n=!ve(Object.assign)&&!ve(Array.from);this.ws&&n?(this.xs(t),cs.info("starting")):(this.bs=mT,this.stopRecording())}}xs(t){var e,n,r;this.ws&&(this.bs!==Wc&&this.bs!==Kh&&(this.bs=gT),Re!=null&&(e=Re.__PosthogExtensions__)!=null&&(e=e.rrweb)!=null&&e.record&&(n=Re.__PosthogExtensions__)!=null&&n.initSessionRecording?this.Ss(t):(r=Re.__PosthogExtensions__)==null||r.loadExternalDependency==null||r.loadExternalDependency(this._instance,this.ks,(i=>{if(i)return cs.error("could not load recorder",i);this.Ss(t)})))}stopRecording(){var t,e;(t=this._s)==null||t.call(this),this._s=void 0,(e=this.ys)==null||e.stop()}Cs(){var t,e;(t=this._s)==null||t.call(this),this._s=void 0,(e=this.ys)==null||e.discard()}Is(){var t;(t=this.ni)==null||t.unregister(P0)}Ts(t,e){if(rt(t))return null;var n,r=ni(t)?t:parseFloat(t);return typeof(n=r)!="number"||!Number.isFinite(n)||0>n||n>1?(cs.warn(e+" must be between 0 and 1. Ignoring invalid value:",t),null):r}Es(t){if(this.ni){var e,n,r=this.ni,i=()=>{var s,l=t.sessionRecording===!1?void 0:t.sessionRecording,u=this.Ts((s=this.qt.session_recording)==null?void 0:s.sampleRate,"session_recording.sampleRate"),c=this.Ts(l==null?void 0:l.sampleRate,"remote config sampleRate"),p=u??c;rt(p)&&this.Is();var h=l==null?void 0:l.minimumDurationMilliseconds;r.register({[Zc]:ue({cache_timestamp:Date.now(),enabled:!!l},l,{networkPayloadCapture:ue({capturePerformance:t.capturePerformance},l==null?void 0:l.networkPayloadCapture),canvasRecording:{enabled:l==null?void 0:l.recordCanvas,fps:l==null?void 0:l.canvasFps,quality:l==null?void 0:l.canvasQuality},sampleRate:p,minimumDurationMilliseconds:ve(h)?null:h,endpoint:l==null?void 0:l.endpoint,triggerMatchType:l==null?void 0:l.triggerMatchType,masking:l==null?void 0:l.masking,urlTriggers:l==null?void 0:l.urlTriggers,version:l==null?void 0:l.version,triggerGroups:l==null?void 0:l.triggerGroups})})};i(),(e=this._s)==null||e.call(this),this._s=(n=this._instance.sessionManager)==null?void 0:n.onSessionId(i)}}onRemoteConfig(t){return"sessionRecording"in t?t.sessionRecording===!1?(this.Es(t),void this.Cs()):(this.Es(t),void this.startIfEnabledOrStop()):(this.bs===Wc&&(this.bs=Kh,cs.warn("config refresh failed, recording will not start until page reload")),void this.startIfEnabledOrStop())}log(t,e){var n;e===void 0&&(e="log"),(n=this.ys)!=null&&n.log?this.ys.log(t,e):cs.warn("log called before recorder was ready")}get ks(){var t,e,n=(t=this._instance)==null||(t=t.persistence)==null?void 0:t.get_property(Zc);return(n==null||(e=n.scriptConfig)==null?void 0:e.script)||"lazy-recorder"}Ms(){var t,e,n=this._instance.get_property(Zc);if(!n)return!1;try{e=typeof n=="object"?n:JSON.parse(n)}catch(i){return cs.warn("persisted remote config for session recording is invali
342d and will be ignored",i),!1}var r=(t=e.cache_timestamp)!==null&&t!==void 0?t:Date.now();return 36e5>=Date.now()-r}Ss(t){var e,n;if((e=Re.__PosthogExtensions__)==null||!e.initSessionRecording)return cs.warn("Called on script loaded before session recording is available. This can be caused by adblockers."),void this._instance.register_for_session({[rM]:!0});if(this.ys||(this.ys=(n=Re.__PosthogExtensions__)==null?void 0:n.initSessionRecording(this._instance),this.ys._forceAllowLocalhostNetworkCapture=this._forceAllowLocalhostNetworkCapture),!this.Ms())return this.bs===Kh||this.bs===Wc?void 0:(this.bs=Wc,cs.info("persisted remote config is stale, requesting fresh config before starting"),void new mM(this._instance).load());this.bs=gT,this.ys.start(t)}onRRwebEmit(t){var e;(e=this.ys)==null||e.onRRwebEmit==null||e.onRRwebEmit(t)}overrideLinkedFlag(){var t,e;this.ys||(e=this.ni)==null||e.register({[QL]:!0}),(t=this.ys)==null||t.overrideLinkedFlag()}overrideSampling(){var t,e;this.ys||(e=this.ni)==null||e.register({[JL]:!0}),(t=this.ys)==null||t.overrideSampling()}overrideTrigger(t){var e,n;this.ys||(n=this.ni)==null||n.register({[t==="url"?XL:ZL]:!0}),(e=this.ys)==null||e.overrideTrigger(t)}get sdkDebugProperties(){var t;return((t=this.ys)==null?void 0:t.sdkDebugProperties)||{$recording_status:this.status}}tryAddCustomEvent(t,e){var n;return!((n=this.ys)==null||!n.tryAddCustomEvent(t,e))}}},SK={autocapture:class{constructor(t){this.Ps=!1,this.Rs=null,this.Os=!1,this.instance=t,this.rageclicks=new pT(t.config.rageclick),this.Ls=null}initialize(){this.startIfEnabled()}get qt(){var t,e,n=nn(this.instance.config.autocapture)?this.instance.config.autocapture:{};return n.url_allowlist=(t=n.url_allowlist)==null?void 0:t.map((r=>new RegExp(r))),n.url_ignorelist=(e=n.url_ignorelist)==null?void 0:e.map((r=>new RegExp(r))),n}Fs(){if(this.isBrowserSupported()){if(X&&fe){var t=n=>{n=n||(X==null?void 0:X.event);try{this.As(n)}catch(r){e_.error("Failed to capture event",r)}};if(on(fe,"submit",t,{capture:!0}),on(fe,"change",t,{capture:!0}),on(fe,"click",t,{capture:!0}),this.qt.capture_copied_text){var e=n=>{n=n||(X==null?void 0:X.event);try{this.As(n,Zy)}catch(r){e_.error("Failed to capture copy/cut event",r)}};on(fe,"copy",e,{capture:!0}),on(fe,"cut",e,{capture:!0})}}}else e_.info("Disabling Automatic Event Collection because this browser is not supported")}startIfEnabled(){this.isEnabled&&!this.Ps&&(this.Fs(),this.Ps=!0)}onRemoteConfig(t){t.elementsChainAsString&&(this.Os=t.elementsChainAsString),this.instance.persistence&&this.instance.persistence.register({[Mb]:!!t.autocapture_opt_out}),this.Rs=!!t.autocapture_opt_out,this.startIfEnabled()}setElementSelectors(t){this.Ls=t}getElementSelectors(t){var e,n=[];return(e=this.Ls)==null||e.forEach((r=>{var i=fe==null?void 0:fe.querySelectorAll(r);i==null||i.forEach((s=>{t===s&&n.push(r)}))})),n}get isEnabled(){var t,e,n=(t=this.instance.persistence)==null?void 0:t.props[Mb];if(Ms(this.Rs)&&!Gi(n)&&!this.instance.Lr())return!1;var r=(e=this.Rs)!==null&&e!==void 0?e:!!n;return!!this.instance.config.autocapture&&!r}As(t,e){if(e===void 0&&(e="$autocapture"),this.isEnabled){var n,r=oT(t);TM(r)&&(r=r.parentNode||null),e==="$autocapture"&&t.type==="click"&&t instanceof MouseEvent&&this.instance.config.rageclick&&(n=this.rageclicks)!=null&&n.isRageClick(t.clientX,t.clientY,t.timeStamp||new Date().getTime())&&(function(m,g){if(!X||ax(m))return!1;var _,x,S;if(Gi(g)?(_=!!g&&lT,x=void 0):(_=(S=g==null?void 0:g.css_selector_ignorelist)!==null&&S!==void 0?S:lT,x=g==null?void 0:g.content_ignorelist),_===!1)return!1;var{targetElementList:w}=uT(m,!1);return!(function(C,R){if(C===!1||ve(C))return!1;var I;if(C===!0)I=sK;else{if(!ft(C))return!1;if(C.length>10)return he.error("[PostHog] content_ignorelist array cannot exceed 10 items. Use css_selector_ignorelist for more complex matching."),!1;I=C.map((P=>P.toLowerCase()))}return R.some((P=>{var{safeText:A,ariaLabel:N}=P;return I.some((T=>A.includes(T)||N.includes(T)))}))})(x,w.map((C=>{var R;return{safeText:Bd(C).toLowerCase(),ariaLabel:((R=C.getAttribute("aria-label"))==null?void 0:R.toLowerCase().trim())||""}})))&&!aT(w,_)})(r,this.instance.config.rageclick)&&this.As(t,"$rageclick");var i=e===Zy;if(r&&(function(m,g,_,x,S){var w,C,R,I;if(_===void 0&&(_=void 0),!X||ax(m)||(w=_)!=null&&w.url_allowlist&&!sT(_.url_allowlist)||(C=_)!=null&&C.url_ignorelist&&sT(_.url_ignorelist))return!1;if((R=_)!=null&&R.dom_event_allowlist){var P=_.dom_event_allowlist;if(P&&!P.some((O=>g.type===O)))return!1}var{parentIsUsefulElement:A,targetElementList:N}=uT(m,x);if(!(function(O,j){var B=j==null?void 0:j.element_allowlist;if(ve(B))return!0;var q,G=function(ie){if(B.some((se=>ie.tagName.toLowerCase()===se)))return{v:!0}};for(var W of O)if(q=G(W))return q.v;return!1})(N,_)||!aT(N,(I=_)==null?void 0:I.css_selector_allowlist))return!1;var T=X.getComputedStyle(m);if(T&&T.getPropertyValue("cursor")==="pointer"&&g.type==="click")return!0;var L=m.tagName.toLowerCase();switch(L){case"html":return!1;case"form":return(S||["submit"]).indexOf(g.type)>=0;case"input":case"select":case"textarea":return(S||["change","click"]).indexOf(g.type)>=0;default:return A?(S||["click"]).indexOf(g.type)>=0:(S||["click"]).indexOf(g.type)>=0&&(O0.indexOf(L)>-1||m.getAttribute("contenteditable")==="true")}})(r,t,this.qt,i,i?["copy","cut"]:void 0)){var{props:s,explicitNoCapture:l}=pK(r,{e:t,maskAllElementAttributes:this.instance.config.mask_all_element_attributes,maskAllText:this.instance.config.mask_all_text,elementAttributeIgnoreList:this.qt.element_attribute_ignorelist,elementsC
342hainAsString:this.Os});if(l)return!1;var u=this.getElementSelectors(r);if(u&&u.length>0&&(s.$element_selectors=u),e===Zy){var c,p=RM(X==null||(c=X.getSelection())==null?void 0:c.toString()),h=t.type||"clipboard";if(!p)return!1;s.$selected_content=p,s.$copy_type=h}return this.instance.capture(e,s),!0}}}isBrowserSupported(){return gs(fe==null?void 0:fe.querySelectorAll)}},historyAutocapture:class{constructor(t){var e;this._instance=t,this.Ns=(X==null||(e=X.location)==null?void 0:e.pathname)||""}initialize(){this.startIfEnabled()}get isEnabled(){return this._instance.config.capture_pageview==="history_change"}startIfEnabled(){this.isEnabled&&(he.info("History API monitoring enabled, starting..."),this.monitorHistoryChanges())}stop(){this.$s&&this.$s(),this.$s=void 0,he.info("History API monitoring stopped")}monitorHistoryChanges(){var t,e;if(X&&X.history){var n=this;(t=X.history.pushState)!=null&&t.__posthog_wrapped__||hT(X.history,"pushState",(r=>function(i,s,l){r.call(this,i,s,l),n.Ds("pushState")})),(e=X.history.replaceState)!=null&&e.__posthog_wrapped__||hT(X.history,"replaceState",(r=>function(i,s,l){r.call(this,i,s,l),n.Ds("replaceState")})),this.qs()}}Ds(t){try{var e,n=X==null||(e=X.location)==null?void 0:e.pathname;if(!n)return;n!==this.Ns&&this.isEnabled&&this._instance.capture(Ql,{navigation_type:t}),this.Ns=n}catch(r){he.error("Error capturing "+t+" pageview",r)}}qs(){if(!this.$s){var t=()=>{this.Ds("popstate")};on(X,"popstate",t),this.$s=()=>{X&&X.removeEventListener("popstate",t)}}}},heatmaps:class{get qt(){return this.instance.config}constructor(t){var e;this.js=!1,this.Ps=!1,this.Hs=null,this.instance=t,this.js=!((e=this.instance.persistence)==null||!e.props[Nb]),this.rageclicks=new pT(t.config.rageclick)}initialize(){this.startIfEnabled()}get flushIntervalMilliseconds(){var t=5e3;return nn(this.qt.capture_heatmaps)&&this.qt.capture_heatmaps.flush_interval_milliseconds&&(t=this.qt.capture_heatmaps.flush_interval_milliseconds),t}get isEnabled(){return rt(this.qt.capture_heatmaps)?rt(this.qt.enable_heatmaps)?this.js:this.qt.enable_heatmaps:this.qt.capture_heatmaps!==!1}startIfEnabled(){if(this.isEnabled){if(this.Ps)return;fK.info("starting..."),this.Us(),this.At()}else{var t;clearInterval((t=this.Hs)!==null&&t!==void 0?t:void 0),this.Bs(),this.getAndClearBuffer()}}onRemoteConfig(t){if("heatmaps"in t){var e=!!t.heatmaps;this.instance.persistence&&this.instance.persistence.register({[Nb]:e}),this.js=e,this.startIfEnabled()}}getAndClearBuffer(){var t=this.M;return this.M=void 0,t}zs(t){this.Mt(t.originalEvent,"deadclick")}At(){this.Hs&&clearInterval(this.Hs),this.Hs=(fe==null?void 0:fe.visibilityState)==="visible"?setInterval(this.Zr.bind(this),this.flushIntervalMilliseconds):null}Us(){X&&fe&&(this.Vs=this.Zr.bind(this),on(X,fm,this.Vs),this.Ws=t=>this.Mt(t||(X==null?void 0:X.event)),on(fe,"click",this.Ws,{capture:!0}),this.Zs=t=>this.Gs(t||(X==null?void 0:X.event)),on(fe,"mousemove",this.Zs,{capture:!0}),this.Qs=new UC(this.instance,wY,this.zs.bind(this)),this.Qs.startIfEnabledOrStop(),this.Js=this.At.bind(this),on(fe,hm,this.Js),this.Ps=!0)}Bs(){var t;X&&fe&&(this.Vs&&X.removeEventListener(fm,this.Vs),this.Ws&&fe.removeEventListener("click",this.Ws,{capture:!0}),this.Zs&&fe.removeEventListener("mousemove",this.Zs,{capture:!0}),this.Js&&fe.removeEventListener(hm,this.Js),clearTimeout(this.Ks),(t=this.Qs)==null||t.stop(),this.Ps=!1)}Ys(t,e){var n=this.instance.scrollManager.scrollY(),r=this.instance.scrollManager.scrollX(),i=this.instance.scrollManager.scrollElement(),s=(function(l,u,c){for(var p=l;p&&Ja(p)&&!Si(p,"body");){if(p===c)return!1;if(nt(u,X==null?void 0:X.getComputedStyle(p).position))return!0;p=AM(p)}return!1})(oT(t),["fixed","sticky"],i);return{x:t.clientX+(s?0:r),y:t.clientY+(s?0:n),target_fixed:s,type:e}}Mt(t,e){var n;if(e===void 0&&(e="click"),!iT(t.target)&&vT(t)){var r=this.Ys(t,e);(n=this.rageclicks)!=null&&n.isRageClick(t.clientX,t.clientY,new Date().getTime())&&this.Xs(ue({},r,{type:"rageclick"})),this.Xs(r)}}Gs(t){!iT(t.target)&&vT(t)&&(clearTimeout(this.Ks),this.Ks=setTimeout((()=>{this.Xs(this.Ys(t,"mousemove"))}),500))}Xs(t){if(X){var e=X.location.href,n=this.qt.custom_personal_data_properties,r=this.qt.mask_personal_data_properties?[...Du,...n||[]]:[],i=Ud(e,r,zd);this.M=this.M||{},this.M[i]||(this.M[i]=[]),this.M[i].push(t)}}Zr(){this.M&&!iu(this.M)&&this.instance.capture("$$heatmap",{$heatmap_data:this.getAndClearBuffer()})}},deadClicksAutocapture:UC,webVitalsAutocapture:class{constructor(t){var e;this.js=!1,this.Ps=!1,this.M={url:void 0,metrics:[],firstMetricTimestamp:void 0},this.eo=()=>{clearTimeout(this.ro),this.M.metrics.length!==0&&(this._instance.capture("$web_vitals",this.M.metrics.reduce(((n,r)=>ue({},n,{["$web_vitals_"+r.name+"_event"]:ue({},r),["$web_vitals_"+r.name+"_value"]:r.value})),{})),this.M={url:void 0,metrics:[],firstMetricTimestamp:void 0})},this.ht=n=>{var r,i=(r=this._instance.sessionManager)==null?void 0:r.checkAndGetSessionAndWindowId(!0);if(ve(i))ro.error("Could not read session ID. Dropping metrics!");else{this.M=this.M||{url:void 0,metrics:[],firstMetricTimestamp:void 0};var s=this.io();ve(s)||(rt(n==null?void 0:n.name)||rt(n==null?void 0:n.value)?ro.error("Invalid metric received",n):!this.no||this.no>n.value?(this.M.url!==s&&(this.eo(),this.ro=setTimeout(this.eo,this.flushToCaptureTimeoutMs)),ve(this.M.url)&&(this.M.url=s),this.M.firstMetricTimestamp=ve(this.M.firstMetricTimestamp)?Date.now():this.M.firstMetricTimestamp,n.attribution&&n.attribution.interactionTargetElement&&(n.attribution.interactionTargetElement=void 0),this.M.metrics.push(ue({},n,{$current_url:s,$session_id:i.sessionId,$window_id:i.windowId,timestamp:Date.now()})),this.M.metrics.length===this.allowedMetrics.length&&this.eo()):ro.error("Ignoring metric with value >= "+this.no,n))}},this.so=()=>
342{if(!this.Ps){var n,r,i,s,l=Re.__PosthogExtensions__;ve(l)||ve(l.postHogWebVitalsCallbacks)||({onLCP:n,onCLS:r,onFCP:i,onINP:s}=l.postHogWebVitalsCallbacks),n&&r&&i&&s?(this.allowedMetrics.indexOf("LCP")>-1&&n(this.ht.bind(this)),this.allowedMetrics.indexOf("CLS")>-1&&r(this.ht.bind(this)),this.allowedMetrics.indexOf("FCP")>-1&&i(this.ht.bind(this)),this.allowedMetrics.indexOf("INP")>-1&&s(this.ht.bind(this)),this.Ps=!0):ro.error("web vitals callbacks not loaded - not starting")}},this._instance=t,this.js=!((e=this._instance.persistence)==null||!e.props[Fb]),this.startIfEnabled()}get oo(){return this._instance.config.capture_performance}get allowedMetrics(){var t,e,n=nn(this.oo)?(t=this.oo)==null?void 0:t.web_vitals_allowed_metrics:void 0;return rt(n)?((e=this._instance.persistence)==null?void 0:e.props[zb])||["CLS","FCP","INP","LCP"]:n}get flushToCaptureTimeoutMs(){return(nn(this.oo)?this.oo.web_vitals_delayed_flush_ms:void 0)||5e3}get useAttribution(){var t=nn(this.oo)?this.oo.web_vitals_attribution:void 0;return t!=null&&t}get no(){var t=nn(this.oo)&&ni(this.oo.__web_vitals_max_value)?this.oo.__web_vitals_max_value:fT;return t>0&&6e4>=t?fT:t}get isEnabled(){var t=Rn==null?void 0:Rn.protocol;if(t!=="http:"&&t!=="https:")return ro.info("Web Vitals are disabled on non-http/https protocols"),!1;var e=nn(this.oo)?this.oo.web_vitals:Gi(this.oo)?this.oo:void 0;return Gi(e)?e:this.js}startIfEnabled(){this.isEnabled&&!this.Ps&&(ro.info("enabled, starting..."),this.lr(this.so))}onRemoteConfig(t){if("capturePerformance"in t){var e=nn(t.capturePerformance)&&!!t.capturePerformance.web_vitals,n=nn(t.capturePerformance)?t.capturePerformance.web_vitals_allowed_metrics:void 0;this._instance.persistence&&(this._instance.persistence.register({[Fb]:e}),this._instance.persistence.register({[zb]:n})),this.js=e,this.startIfEnabled()}}lr(t){var e,n;(e=Re.__PosthogExtensions__)!=null&&e.postHogWebVitalsCallbacks?t():(n=Re.__PosthogExtensions__)==null||n.loadExternalDependency==null||n.loadExternalDependency(this._instance,this.useAttribution?"web-vitals-with-attribution":"web-vitals",(r=>{r?ro.error("failed to load script",r):t()}))}io(){var t=X?X.location.href:void 0;if(t){var e=this._instance.config.custom_personal_data_properties,n=this._instance.config.mask_personal_data_properties?[...Du,...e||[]]:[];return Ud(t,n,zd)}ro.error("Could not determine current URL")}}},wK={exceptionObserver:class{constructor(t){var e,n,r;this.so=()=>{var i;if(X&&this.isEnabled&&(i=Re.__PosthogExtensions__)!=null&&i.errorWrappingFunctions){var s=Re.__PosthogExtensions__.errorWrappingFunctions.wrapOnError,l=Re.__PosthogExtensions__.errorWrappingFunctions.wrapUnhandledRejection,u=Re.__PosthogExtensions__.errorWrappingFunctions.wrapConsoleError;try{!this.ao&&this.qt.capture_unhandled_errors&&(this.ao=s(this.captureException.bind(this))),!this.uo&&this.qt.capture_unhandled_rejections&&(this.uo=l(this.captureException.bind(this))),!this.lo&&this.qt.capture_console_errors&&(this.lo=u(this.captureException.bind(this)))}catch(c){qc.error("failed to start",c),this.ho()}}},this._instance=t,this.co=!((e=this._instance.persistence)==null||!e.props[Ob]),this.do=new LG({refillRate:(n=this._instance.config.error_tracking.__exceptionRateLimiterRefillRate)!==null&&n!==void 0?n:1,bucketSize:(r=this._instance.config.error_tracking.__exceptionRateLimiterBucketSize)!==null&&r!==void 0?r:10,refillInterval:1e4,Gt:qc}),this.qt=this.vo(),this.startIfEnabledOrStop()}vo(){var t=this._instance.config.capture_exceptions,e={capture_unhandled_errors:!1,capture_unhandled_rejections:!1,capture_console_errors:!1};return nn(t)?e=ue({},e,t):(ve(t)?this.co:t)&&(e=ue({},e,{capture_unhandled_errors:!0,capture_unhandled_rejections:!0})),e}get isEnabled(){return this.qt.capture_console_errors||this.qt.capture_unhandled_errors||this.qt.capture_unhandled_rejections}startIfEnabledOrStop(){this.isEnabled?(qc.info("enabled"),this.ho(),this.lr(this.so)):this.ho()}lr(t){var e,n;(e=Re.__PosthogExtensions__)!=null&&e.errorWrappingFunctions&&t(),(n=Re.__PosthogExtensions__)==null||n.loadExternalDependency==null||n.loadExternalDependency(this._instance,"exception-autocapture",(r=>{if(r)return qc.error("failed to load script",r);t()}))}ho(){var t,e,n;(t=this.ao)==null||t.call(this),this.ao=void 0,(e=this.uo)==null||e.call(this),this.uo=void 0,(n=this.lo)==null||n.call(this),this.lo=void 0}onRemoteConfig(t){"autocaptureExceptions"in t&&(this.co=!!t.autocaptureExceptions||!1,this._instance.persistence&&this._instance.persistence.register({[Ob]:this.co}),this.qt=this.vo(),this.startIfEnabledOrStop())}onConfigChange(){this.qt=this.vo()}captureException(t){var e,n,r,i=(e=t==null||(n=t.$exception_list)==null||(n=n[0])==null?void 0:n.type)!==null&&e!==void 0?e:"Exception";this.do.consumeRateLimit(i)?qc.info("Skipping exception capture because of client rate limiting.",{exception:i}):(r=this._instance.exceptions)==null||r.sendExceptionEvent(t)}},exceptions:class{constructor(t){var e,n;this.fo=[],this.po=new HG([new ZG,new lY,new tY,new eY,new oY,new sY,new rY,new aY],(function(r){for(var i=arguments.length,s=new Array(i>1?i-1:0),l=1;i>l;l++)s[l-1]=arguments[l];return function(u,c){c===void 0&&(c=0);for(var p=[],h=u.split(` 343`),m=c;h.length>m;m++){var g=h[m];if(1024>=g.length){var _=OC.test(g)?g.replace(OC,"$1"):g;if(!_.match(/\S*Error: /)){for(var x of s){var S=x(_,r);if(S){p.push(S);break}}if(p.length>=50)break}}}return(function(w){if(!w.length)return[];var C=Array.from(w);return C.reverse(),C.slice(0,50).map((R=>{return ue({},R,{filename:R.filename||(I=C,I[I.length-1]||{}).filename,function:R.function||Ou});var I}))})(p)}})("web:javascript",KG,XG)),this._instance=t,this.fo=(e=(n=this._instance.persistence)==null?void 0:n.get_property(Db))!==null&&e!==void 0?e:[],this.mo=am(this.yo()),this.bo=new cY(this.mo)}onConfigChange(){this.mo=am(this.yo()),this.bo.setConfig(this.mo)}onRemoteConfig(t){var e,n,r;if("errorTracking"in t){var i=(e=(n=t.errorTracking)==null?void 0:n.suppressionRules)!==null&&e!==void 0?e:[],s=(r=t.errorTracking)==null?void 0:r.captureExtensionExceptions;this.fo=i,this._instance.persistence&&this._instance.persistence.register({[Db]:this.fo,[jb]:s})}}get _o(){var t,e=!!this._instance.get_property(jb),n=this._instance.config.error_tracking.captureExtensionExceptions;return(t=n??e)!==null&&t!==void 0&&t}buildProperties(t,e){return this.po.buildFromUnknown(t,{syntheticException:e==null?void 0:e.syntheticException,mechanism:{handled:e==null?void 0:e.handled}})}addExceptionStep(t,e){if(this.mo.enabled)try{if(!Yt(t)||t.trim().length===0)return void ds.warn("Ignoring exception step because message must be a non-empty string");var n=this.wo(e),{sanitizedProperties:r,droppedKeys:i}=(function(s){if(!s)return{sanitizedProperties:{},droppedKeys:[]};var l=[];return{sanitizedProperties:Object.keys(s).reduce(((u,c)=>
343uY.has(c)?(l.push(c),u):(u[c]=s[c],u)),{}),droppedKeys:l}})(n);i.length>0&&ds.warn("Ignoring reserved exception step fields",{droppedKeys:i}),this.bo.add(ue({[sm]:t,[om]:new Date().toISOString()},r))}catch(s){ds.error("Failed to add exception step. Ignoring breadcrumb.",s)}}sendExceptionEvent(t){try{var e=t.$exception_list;if(this.xo(e)){if(this.So(e))return this.ko("Exception dropped: matched a suppression rule"),void ds.info("Skipping exception capture because a suppression rule matched");if(!this._o&&this.Co(e))return this.ko("Exception dropped: thrown by a browser extension"),void ds.info("Skipping exception capture because it was thrown by an extension");if(!this._instance.config.error_tracking.__capturePostHogExceptions&&this.Io(e))return this.ko("Exception dropped: thrown by the PostHog SDK"),void ds.info("Skipping exception capture because it was thrown by the PostHog SDK")}var n=this.mo.enabled&&rt(t.$exception_steps)?this.To(t):t;try{var r=this._instance.capture("$exception",n,{_noTruncate:!0,_batchKey:"exceptionEvent",en:!0});return r&&this.bo.clear(),r}catch(i){return ds.error("Failed to capture exception event. Dropping this exception.",i),void this.bo.clear()}}catch(i){return void ds.error("Failed to process exception event. Ignoring this exception.",i)}}To(t){try{var e=this.bo.getAttachable();return e.length===0?t:ue({},t,{$exception_steps:e})}catch(n){return ds.error("Failed to read buffered exception steps. Capturing exception without steps.",n),t}}ko(t){this.mo.enabled&&this.bo.add({[sm]:t,[om]:new Date().toISOString()})}wo(t){return nn(t)?ue({},t):{}}yo(){var t,e;return(t=(e=this._instance.config.error_tracking)==null?void 0:e.exception_steps)!==null&&t!==void 0?t:{}}So(t){if(t.length===0)return!1;var e=t.reduce(((n,r)=>{var{type:i,value:s}=r;return Yt(i)&&i.length>0&&n.$exception_types.push(i),Yt(s)&&s.length>0&&n.$exception_values.push(s),n}),{$exception_types:[],$exception_values:[]});return this.fo.some((n=>{var r=n.values.map((i=>{var s,l=wM[i.operator],u=ft(i.value)?i.value:[i.value],c=(s=e[i.key])!==null&&s!==void 0?s:[];return u.length>0&&l(u,c)}));return n.type==="OR"?r.some(Boolean):r.every(Boolean)}))}Co(t){return t.flatMap((e=>{var n,r;return(n=(r=e.stacktrace)==null?void 0:r.frames)!==null&&n!==void 0?n:[]})).some((e=>e.filename&&e.filename.startsWith("chrome-extension://")))}Io(t){if(t.length>0){var e,n,r,i,s=(e=(n=t[0].stacktrace)==null?void 0:n.frames)!==null&&e!==void 0?e:[],l=s[s.length-1];return(r=l==null||(i=l.filename)==null?void 0:i.includes("posthog.com/static"))!==null&&r!==void 0&&r}return!1}xo(t){return!rt(t)&&ft(t)}}},EK=ue({productTours:class{get ni(){return this._instance.persistence}constructor(t){this.Eo=null,this.Mo=null,this._instance=t}initialize(){this.loadIfEnabled()}onRemoteConfig(t){"productTours"in t&&(this.ni&&this.ni.register({[Ub]:!!t.productTours}),this.loadIfEnabled())}loadIfEnabled(){var t,e;this.Eo||(t=this._instance).config.disable_product_tours||(e=t.persistence)==null||!e.get_property(Ub)||this.lr((()=>this.Po()))}lr(t){var e,n;(e=Re.__PosthogExtensions__)!=null&&e.generateProductTours?t():(n=Re.__PosthogExtensions__)==null||n.loadExternalDependency==null||n.loadExternalDependency(this._instance,"product-tours",(r=>{r?yT.error("Could not load product tours script",r):t()}))}Po(){var t;!this.Eo&&(t=Re.__PosthogExtensions__)!=null&&t.generateProductTours&&(this.Eo=Re.__PosthogExtensions__.generateProductTours(this._instance,!0))}getProductTours(t,e){if(e===void 0&&(e=!1),!ft(this.Mo)||e){var n=this.ni;if(n){var r=n.props[xf];if(ft(r)&&!e)return this.Mo=r,void t(r,{isLoaded:!0})}this._instance._send_request({url:this._instance.requestRouter.endpointFor("api","/api/product_tours/?token="+this._instance.config.token),method:"GET",callback:i=>{var s=i.statusCode;if(s!==200||!i.json){var l="Product Tours API could not be loaded, status: "+s;return yT.error(l),void t([],{isLoaded:!1,error:l})}var u=ft(i.json.product_tours)?i.json.product_tours:[];this.Mo=u,n&&n.register({[xf]:u}),t(u,{isLoaded:!0})}})}else t(this.Mo,{isLoaded:!0})}getActiveProductTours(t){rt(this.Eo)?t([],{isLoaded:!1,error:"Product tours not loaded"}):this.Eo.getActiveProductTours(t)}showProductTour(t){var e;(e=this.Eo)==null||e.showTourById(t)}previewTour(t){this.Eo?this.Eo.previewTour(t):this.lr((()=>{var e;this.Po(),(e=this.Eo)==null||e.previewTour(t)}))}dismissProductTour(){var t;(t=this.Eo)==null||t.dismissTour("user_clicked_skip")}nextStep(){var t;(t=this.Eo)==null||t.nextStep()}previousStep(){var t;(t=this.Eo)==null||t.previousStep()}clearCache(){var t;this.Mo=null,(t=this.ni)==null||t.unregister(xf)}resetTour(t){var e;(e=this.Eo)==null||e.resetTour(t)}resetAllTours(){var t;(t=this.Eo)==null||t.resetAllTours()}cancelPendingTour(t){var e;(e=this.Eo)==null||e.cancelPendingTour(t)}}},sg),kK={siteApps:class{constructor(t){this._instance=t,this.Ro=[],this.apps={}}get isEnabled(){return!!this._instance.config.opt_in_site_apps}Oo(t,e){if(e){var n=this.globalsForEvent(e);this.Ro.push(n),this.Ro.length>1e3&&(this.Ro=this.Ro.slice(10))}}get siteAppLoaders(){var t;return(t=Re._POSTHOG_REMOTE_CONFIG)==null||(t=t[this._instance.config.token])==null?void 0:t.siteApps}initialize(){if(this.isEnabled){var t=this._instance._addCaptureHook(this.Oo.bind(this));this.Lo=()=>{t(),this.Ro=[],this.Lo=void 0}}}globalsForEvent(t){var e,n,r,i,s,l,u;if(!t)throw new Error("Event payload is required");var c={},p=this._instance.get_property("$groups")||[],h=this._instance.get_property("$stored_group_properties")||{};for(var[m,g]of Object.entries(h))c[m]={id:p[m],type:m,properties:g};
343var{$set_once:_,$set:x}=t;return{event:ue({},wL(t,mK),{properties:ue({},t.properties,x?{$set:ue({},(e=(n=t.properties)==null?void 0:n.$set)!==null&&e!==void 0?e:{},x)}:{},_?{$set_once:ue({},(r=(i=t.properties)==null?void 0:i.$set_once)!==null&&r!==void 0?r:{},_)}:{}),elements_chain:(s=(l=t.properties)==null?void 0:l.$elements_chain)!==null&&s!==void 0?s:"",distinct_id:(u=t.properties)==null?void 0:u.distinct_id}),person:{properties:this._instance.get_property("$stored_person_properties")},groups:c}}setupSiteApp(t){var e=this.apps[t.id],n=()=>{var l;!e.errored&&this.Ro.length&&(io.info("Processing "+this.Ro.length+" events for site app with id "+t.id),this.Ro.forEach((u=>e.processEvent==null?void 0:e.processEvent(u))),e.processedBuffer=!0),Object.values(this.apps).every((u=>u.processedBuffer||u.errored))&&((l=this.Lo)==null||l.call(this))},r=!1,i=l=>{e.errored=!l,e.loaded=!0,io.info("Site app with id "+t.id+" "+(l?"loaded":"errored")),r&&n()};try{var{processEvent:s}=t.init({posthog:this._instance,callback(l){i(l)}});s&&(e.processEvent=s),r=!0}catch(l){io.error(_T+t.id,l),i(!1)}if(r&&e.loaded)try{n()}catch(l){io.error("Error while processing buffered events PostHog app with config id "+t.id,l),e.errored=!0}}Fo(){var t=this.siteAppLoaders||[];for(var e of t)this.apps[e.id]={id:e.id,loaded:!1,errored:!1,processedBuffer:!1};for(var n of t)this.setupSiteApp(n)}Ao(t){if(Object.keys(this.apps).length!==0){var e=this.globalsForEvent(t);for(var n of Object.values(this.apps))try{n.processEvent==null||n.processEvent(e)}catch(r){io.error("Error while processing event "+t.event+" for site app "+n.id,r)}}}onRemoteConfig(t){var e,n,r,i=this;if((e=this.siteAppLoaders)!=null&&e.length)return this.isEnabled?(this.Fo(),void this._instance.on("eventCaptured",(c=>this.Ao(c)))):void io.error('PostHog site apps are disabled. Enable the "opt_in_site_apps" config to proceed.');if((n=this.Lo)==null||n.call(this),(r=t.siteApps)!=null&&r.length)if(this.isEnabled){var s=function(c){var p;Re["__$$ph_site_app_"+c]=i._instance,(p=Re.__PosthogExtensions__)==null||p.loadSiteApp==null||p.loadSiteApp(i._instance,u,(h=>{if(h)return io.error(_T+c,h)}))};for(var{id:l,url:u}of t.siteApps)s(l)}else io.error('PostHog site apps are disabled. Enable the "opt_in_site_apps" config to proceed.')}}},CK={tracingHeaders:class{constructor(t){this.No=void 0,this.$o=void 0,this.so=()=>{var e,n,r=this.Do()||[];ve(this.No)&&((e=Re.__PosthogExtensions__)==null||(e=e.tracingHeadersPatchFns)==null||e._patchXHR(r,this._instance.get_distinct_id(),this._instance.sessionManager)),ve(this.$o)&&((n=Re.__PosthogExtensions__)==null||(n=n.tracingHeadersPatchFns)==null||n._patchFetch(r,this._instance.get_distinct_id(),this._instance.sessionManager))},this._instance=t}initialize(){this.startIfEnabledOrStop()}lr(t){var e,n;(e=Re.__PosthogExtensions__)!=null&&e.tracingHeadersPatchFns&&t(),(n=Re.__PosthogExtensions__)==null||n.loadExternalDependency==null||n.loadExternalDependency(this._instance,"tracing-headers",(r=>{if(r)return hK.error("failed to load script",r);t()}))}Do(){var t;return(t=this._instance.config.addTracingHeaders)!==null&&t!==void 0?t:this._instance.config.__add_tracing_headers}startIfEnabledOrStop(){var t,e;this.Do()?this.lr(this.so):((t=this.No)==null||t.call(this),(e=this.$o)==null||e.call(this),this.No=void 0,this.$o=void 0)}}},TK=ue({surveys:class{get qt(){return this._instance.config}constructor(t){this.qo=void 0,this._surveyManager=null,this.jo=!1,this.Ho=[],this.Uo=null,this._instance=t,this._surveyEventReceiver=null}initialize(){this.loadIfEnabled()}onRemoteConfig(t){if(!this.qt.disable_surveys){var e=t.surveys;if(rt(e))return Et.warn("Flags not loaded yet. Not loading surveys.");var n=ft(e);this.qo=n?e.length>0:e,Et.info("flags response received, isSurveysEnabled: "+this.qo),this.loadIfEnabled()}}reset(){localStorage.removeItem("lastSeenSurveyDate");for(var t=[],e=0;e<localStorage.length;e++){var n=localStorage.key(e);(n!=null&&n.startsWith(sx)||n!=null&&n.startsWith("inProgressSurvey_"))&&t.push(n)}t.forEach((r=>localStorage.removeItem(r)))}loadIfEnabled(){if(!this._surveyManager)if(this.jo)Et.info("Already initializing surveys, skipping...");else if(this.qt.disable_surveys)Et.info(bT);else if(this.qt.cookieless_mode&&this._instance.consent.isOptedOut())Et.info("Not loading surveys in cookieless mode without consent.");else{var t=Re==null?void 0:Re.__PosthogExtensions__;if(t){if(!ve(this.qo)||this.qt.advanced_enable_surveys){var e=this.qo||this.qt.advanced_enable_surveys;this.jo=!0;try{var n=t.generateSurveys;if(n)return void this.Bo(n,e);var r=t.loadExternalDependency;if(!r)return void this.zo(R0);r(this._instance,"surveys",(i=>{i||!t.generateSurveys?this.zo("Could not load surveys script",i):this.Bo(t.generateSurveys,e)}))}catch(i){throw this.zo("Error initializing surveys",i),i}finally{this.jo=!1}}}else Et.error("PostHog Extensions not found.")}}Bo(t,e){this._surveyManager=t(this._instance,e),this._surveyEventReceiver=new yK(this._instance),Et.info("Surveys loaded successfully"),this.Vo({isLoaded:!0})}zo(t,e){Et.error(t,e),this.Vo({isLoaded:!1,error:t})}onSurveysLoaded(t){return this.Ho.push(t),this._surveyManager&&this.Vo({isLoaded:!0}),()=>{this.Ho=this.Ho.filter((e=>e!==t))}}getSurveys(t,e){if(e===void 0&&(e=!1),this.qt.disable_surveys)return Et.info(bT),t([]);var n,r=this._instance.get_property(Wb);if(r&&!e)return t(r,{isLoaded:!0});typeof Promise<"u"&&this.Uo?this.Uo.then((i=>{var{surveys:s,context:l}=i;return t(s,l)})):(typeof Promise<"u"&&(this.Uo=new Promise((i=>
343{n=i}))),this._instance._send_request({url:this._instance.requestRouter.endpointFor("api","/api/surveys/?token="+this.qt.token),method:"GET",timeout:this.qt.surveys_request_timeout_ms,callback:i=>{var s;this.Uo=null;var l=i.statusCode;if(l!==200||!i.json){var u="Surveys API could not be loaded, status: "+l;Et.error(u);var c={isLoaded:!1,error:u};return t([],c),void(n==null||n({surveys:[],context:c}))}var p,h=i.json.surveys||[],m=h.filter((_=>(function(x){return!(!x.start_date||x.end_date)})(_)&&((function(x){var S;return!((S=x.conditions)==null||(S=S.events)==null||(S=S.values)==null||!S.length)})(_)||(function(x){var S;return!((S=x.conditions)==null||(S=S.actions)==null||(S=S.values)==null||!S.length)})(_))));m.length>0&&((p=this._surveyEventReceiver)==null||p.register(m)),(s=this._instance.persistence)==null||s.register({[Wb]:h});var g={isLoaded:!0};t(h,g),n==null||n({surveys:h,context:g})}}))}Vo(t){for(var e of this.Ho)try{if(!t.isLoaded)return e([],t);this.getSurveys(e)}catch(n){Et.error("Error in survey callback",n)}}getActiveMatchingSurveys(t,e){if(e===void 0&&(e=!1),!rt(this._surveyManager))return this._surveyManager.getActiveMatchingSurveys(t,e);Et.warn("init was not called")}Wo(t){var e=null;return this.getSurveys((n=>{var r;e=(r=n.find((i=>i.id===t)))!==null&&r!==void 0?r:null})),e}Zo(t){if(rt(this._surveyManager))return{eligible:!1,reason:n_};var e=typeof t=="string"?this.Wo(t):t;return e?this._surveyManager.checkSurveyEligibility(e):{eligible:!1,reason:"Survey not found"}}canRenderSurvey(t){if(rt(this._surveyManager))return Et.warn("init was not called"),{visible:!1,disabledReason:n_};var e=this.Zo(t);return{visible:e.eligible,disabledReason:e.reason}}canRenderSurveyAsync(t,e){return rt(this._surveyManager)?(Et.warn("init was not called"),Promise.resolve({visible:!1,disabledReason:n_})):new Promise((n=>{this.getSurveys((r=>{var i,s=(i=r.find((u=>u.id===t)))!==null&&i!==void 0?i:null;if(s){var l=this.Zo(s);n({visible:l.eligible,disabledReason:l.reason})}else n({visible:!1,disabledReason:"Survey not found"})}),e)}))}renderSurvey(t,e,n){var r;if(rt(this._surveyManager))Et.warn("init was not called");else{var i=typeof t=="string"?this.Wo(t):t;if(i!=null&&i.id)if(KY.includes(i.type)){var s=fe==null?void 0:fe.querySelector(e);if(s)return(r=i.appearance)!=null&&r.surveyPopupDelaySeconds?(Et.info("Rendering survey "+i.id+" with delay of "+i.appearance.surveyPopupDelaySeconds+" seconds"),void setTimeout((()=>{var l,u;Et.info("Rendering survey "+i.id+" with delay of "+((l=i.appearance)==null?void 0:l.surveyPopupDelaySeconds)+" seconds"),(u=this._surveyManager)==null||u.render
343Survey(i,s,n),Et.info("Survey "+i.id+" rendered")}),1e3*i.appearance.surveyPopupDelaySeconds)):void this._surveyManager.renderSurvey(i,s,n);Et.warn("Survey element not found")}else Et.warn("Surveys of type "+i.type+" cannot be rendered in the app");else Et.warn("Survey not found")}}displaySurvey(t,e){var n;if(rt(this._surveyManager))Et.warn("init was not called");else{var r=this.Wo(t);if(r){var i=r;if((n=r.appearance)!=null&&n.surveyPopupDelaySeconds&&e.ignoreDelay&&(i=ue({},r,{appearance:ue({},r.appearance,{surveyPopupDelaySeconds:0})})),e.displayType!==Zb.Popover&&e.initialResponses&&Et.warn("initialResponses is only supported for popover surveys. prefill will not be applied."),e.ignoreConditions===!1){var s=this.canRenderSurvey(r);if(!s.visible)return void Et.warn("Survey is not eligible to be displayed: ",s.disabledReason)}e.displayType!==Zb.Inline?this._surveyManager.handlePopoverSurvey(i,e):this.renderSurvey(i,e.selector,e.properties)}else Et.warn("Survey not found")}}cancelPendingSurvey(t){rt(this._surveyManager)?Et.warn("init was not called"):this._surveyManager.cancelSurvey(t)}handlePageUnload(){var t;(t=this._surveyManager)==null||t.handlePageUnload()}}},sg),PK={toolbar:class{constructor(t){this.instance=t}Go(t){Re.ph_toolbar_state=t}Qo(){var t;return(t=Re.ph_toolbar_state)!==null&&t!==void 0?t:0}initialize(){return this.maybeLoadToolbar()}maybeLoadToolbar(t,e,n){if(t===void 0&&(t=void 0),e===void 0&&(e=void 0),n===void 0&&(n=void 0),iM(this.instance.config)||!X||!fe)return!1;t=t??X.location,n=n??X.history;try{if(!e){try{X.localStorage.setItem("test","test"),X.localStorage.removeItem("test")}catch{return!1}e=X==null?void 0:X.localStorage}var r,i=_K||vm(t.hash,"__posthog")||vm(t.hash,"state"),s=i?jC((()=>JSON.parse(atob(decodeURIComponent(i)))))||jC((()=>JSON.parse(decodeURIComponent(i)))):null;return s&&s.action==="ph_authorize"?((r=s).source="url",r&&Object.keys(r).length>0&&(s.desiredHash?t.hash=s.desiredHash:n?n.replaceState(n.state,"",t.pathname+t.search):t.hash="")):((r=JSON.parse(e.getItem(xT)||"{}")).source="localstorage",delete r.userIntent),!(!r.token||this.instance.config.token!==r.token||(this.loadToolbar(r),0))}catch{return!1}}Jo(t){var e=Re.ph_load_toolbar||Re.ph_load_editor;!rt(e)&&gs(e)?e(t,this.instance):ST.warn("No toolbar load function found")}loadToolbar(t){var e=!(fe==null||!fe.getElementById(eM));if(!X||e)return!1;var n=this.instance.requestRouter.region==="custom"&&this.instance.config.advanced_disable_toolbar_metrics,r=ue({token:this.instance.config.token},t,{apiURL:this.instance.requestRouter.endpointFor("ui")},n?{instrument:!1}:{});if(X.localStorage.setItem(xT,JSON.stringify(ue({},r,{source:void 0}))),this.Qo()===2)this.Jo(r);else if(this.Qo()===0){var i;this.Go(1),(i=Re.__PosthogExtensions__)==null||i.loadExternalDependency==null||i.loadExternalDependency(this.instance,"toolbar",(s=>{if(s)return ST.error("[Toolbar] Failed to load",s),void this.Go(0);this.Go(2),this.Jo(r)})),on(X,"turbolinks:load",(()=>{this.Go(0),this.loadToolbar(r)}))}return!0}Ko(t){return this.loadToolbar(t)}maybeLoadEditor(t,e,n){return t===void 0&&(t=void 0),e===void 0&&(e=void 0),n===void 0&&(n=void 0),this.maybeLoadToolbar(t,e,n)}}},RK=ue({experiments:Bn},sg),AK={conversations:class{constructor(t){this.Yo=void 0,this._conversationsManager=null,this.Xo=!1,this.ea=null,this._instance=t}initialize(){this.loadIfEnabled()}onRemoteConfig(t){if(!this._instance.config.disable_conversations){var e=t.conversations;rt(e)||(Gi(e)?this.Yo=e:(this.Yo=e.enabled,this.ea=e),this.loadIfEnabled())}}reset(){var t;(t=this._conversationsManager)==null||t.reset(),this._conversationsManager=null,this.Yo=void 0,this.ea=null}loadIfEnabled(){if(!(this._conversationsManager||this.Xo||this._instance.config.disable_conversations||iM(this._instance.config)||this._instance.config.cookieless_mode&&this._instance.consent.isOptedOut())){var t=Re==null?void 0:Re.__PosthogExtensions__;if(t&&!ve(this.Yo)&&this.Yo)if(this.ea&&this.ea.token){this.Xo=!0;try{var e=t.initConversations;if(e)return this.ta(e),void(this.Xo=!1);var n=t.loadExternalDependency;if(!n)return void this.ra(R0);n(this._instance,"conversations",(r=>{r||!t.initConversations?this.ra("Could not load conversations script",r):this.ta(t.initConversations),this.Xo=!1}))}catch(r){this.ra("Error initializing conversations",r),this.Xo=!1}}else Jr.error("Conversations enabled but missing token in remote config.")}}ta(t){if(this.ea)try{this._conversationsManager=t(this.ea,this._instance),Jr.info("Conversations loaded successfully")}catch(e){this.ra("Error completing conversations initialization",e)}else Jr.error("Cannot complete initialization: remote config is null")}ra(t,e){Jr.error(t,e),this._conversationsManager=null,this.Xo=!1}show(){this._conversationsManager?this._conversationsManager.show():Jr.warn("Conversations not loaded yet.")}hide(){this._conversationsManager&&this._conversationsManager.hide()}isAvailable(){return this.Yo===!0&&!Ms(this._conversationsManager)}isVisible(){var t,e;return(t=(e=this._conversationsManager)==null?void 0:e.isVisible())!==null&&t!==void 0&&t}sendMessage(t,e,n){var r=this;return Nr((function*(){return r._conversationsManager?r._conversationsManager.sendMessage(t,e,n):(Jr.warn(ma),null)}))()}getMessages(t,e){var n=this;return Nr((function*(){return n._conversationsManager?n._conversationsManager.getMessages(t,e):(Jr.warn(ma),null)}))()}markAsRead(t){var e=this;return Nr((function*(){return e._conversationsManager?e._conversationsManager.markAsRead(t):(Jr.warn(ma),null)}))()}getTickets(t){var e=this;return Nr((function*(){return e._conversationsManager?e._conversationsManager.getTickets(t):(Jr.warn(ma),null)}))()}requestRestoreLink(t){var e=this;return Nr((function*(){return e._conversationsManager?e._conversationsManager.requestRestoreLink(t):(Jr.warn(ma),null)}))()}restoreFromToken(t){var e=this;return Nr((function*(){return e._conversationsManager?e._conversationsManager.restoreFromToken(t):(Jr.warn(ma),null)}))()}restoreFromUrlToken(){var t=this;return Nr((function*(){return t._conversationsManager?t._conversationsManager.restoreFromUrlToken():(Jr.warn(ma),null)}))()}getCurrentTicketId(){var t,e;return(t=(e=this._conversationsManager)==null?void 0:e.getCurrentTicketId())!==null&&t!==void 0?t:null}getWidgetSessionId(){var t,e;return(t=(e=this._conversationsManager)==null?void 0:e.getWidgetSessionId())!==null&&t!==void 0?t:null}ln(){var t;(t=this._conversationsManager)==null||t.setIdentity()}hn(){var t;(t=this._conversationsManager)==null||t.clearIdentity()}}},IK={logs:class{constructor(t){var e;this.ia=!1,this.na=!1,this.Gt=Bt("[logs]"),this.sa=[],this.oa=0,this.aa=0,this.ua=!1,this._instance=t,this._instance&&(e=this._instance.config.logs)!=null&&e.captureConsoleLogs&&(this.ia=!0)}initialize(){this.loadIfEnabled()}onRemoteConfig(t){var e,n=(e=t.logs)==null?void 0:e.captureConsoleLogs;!rt(n)&&n&&(this.ia=!0,this.loadIfEnabled())}reset(){this.sa=[],this.qr&&(clearTimeout(this.qr),this.qr=void 0),this.oa=0,this.aa=0,this.ua=!1}loadIfEnabled(){if(this.ia&&!this.na){var t=Re==null?void 0:Re.__PosthogExtensions__;if(t){var e=t.loadExternalDependency;e?e(this._instance,"logs",(n=>{var r;n||(r=t.logs)==null||!r.initializeLogs?this.Gt.error("Could not load logs script",n):(t.logs.initializeLogs(this._instance),this.na=!0)})):this.Gt.error(R0)}else this.Gt.error("PostHog Extensions not found.")}}captureLog(t){var e,n,r,i,s,l;if(this._instance.is_capturing())if(t&&t.body){var u=(e=(n=this._instance.config.logs)==null?void 0:n.flushIntervalMs)!==null&&e!==void 0?e:3e3,c=(r=(i=this._instance.config.logs)==null?void 0:i.maxLogsPerInterval)!==null&&r!==void 0?r:1e3,p=Date.now();if(u>p-this.aa||(this.aa=p,this.oa=0,this.ua=!1),c>this.oa){this.oa++;var h=(function(m,g){var _=m.level||"info",{text:x,number:S}=WL[_]||qG,w=String(Date.now())+"000000",C={};g.distinctId&&(C.posthogDistinctId=g.distinctId),g.sessionId&&(C.sessionId=g.sessionId),g.currentUrl&&(C["url.full"]=g.currentUrl),g.screenName&&(C["screen.name"]=g.screenName),g.appState&&(C["app.state"]=g.appState),g.activeFeatureFlags&&g.activeFeatureFlags.length>0&&(C.feature_flags=g.activeFeatureFlags);var R=ue({},C,m.attributes||{}),I={timeUnixNano:w,observedTimeUnixNano:w,severityNumber:S,severityText:x,body:{stringValue:m.body},attributes:NC(R)};return m.trace_id&&(I.traceId=m.trace_id),m.span_id&&(I.spanId=m.span_id),ve(m.trace_flags)||(I.flags=m.trace_flags),I})(t,this.la());this.sa.push({record:h}),((s=(l=this._instance.config.logs)==null?void 0:l.maxBufferSize)!==null&&s!==void 0?s:100)>this.sa.length?this.ha():this.flushLogs()}else this.ua||(this.Gt.warn("captureLog dropping logs: exceeded "+c+" logs per "+u+"ms"),this.ua=!0)}else this.Gt.warn("captureLog requires a body")}get logger(){return this.ca||(this.ca={trace:(t,e)=>this.captureLog({body:t,level:"trace",attributes:e}),debug:(t,e)=>this.captureLog({body:t,level:"debug",attributes:e}),info:(t,e)=>this.captureLog({body:t,level:"info",attributes:e}),warn:(t,e)=>this.captureLog({body:t,level:"warn",attributes:e}),error:(t,e)=>this.captureLog({body:t,level:"error",attributes:e}),fatal:(t,e)=>this.captureLog({body:t,level:"fatal",attributes:e})}),this.ca}flushLogs(t){if(this.qr&&(clearTimeout(this.qr),this.qr=void 0),this.sa.length!==0){var e=this.sa;this.sa=[];var n=this._instance.config.logs,r=ue({"service.name":(n==null?void 0:n.serviceName)||"unknown_service"},(n==null?void 0:n.environment)&&{"deployment.environment":n.environment},(n==null?void 0:n.serviceVersion)&&{"service.version":n.serviceVersion},n==null?void 0:n.resourceAttributes),i=(function(l,u,c,p){return{resourceLogs:[{resource:{attributes:NC(u)},scopeLogs:[{scope:{name:c,version:p},logRecords:l}]}]}})(e.map((l=>l.record)),r,nr.LIB_NAME,nr.LIB_VERSION),s=this._instance.requestRouter.endpointFor("api","/i/v1/logs")+"?token="+encodeURIComponent(this._instance.config.token);this._instance.Bi({method:"POST",url:s,data:i,compression:"best-available",batchKey:"logs",transport:t})}}ha(){var t,e;this.qr||(this.qr=setTimeout((()=>{this.qr=void 0,this.flushLogs()}),(t=(e=this._instance.config.logs)==null?void 0:e.flushIntervalMs)!==null&&t!==void 0?t:3e3))}la(){var t,e={};if(e.distinctId=this._instance.get_distinct_id(),this._instance.sessionManager){var{sessionId:n}=this._instance.sessionManager.checkAndGetSessionAndWindowId(!0);e.sessionId=n}if(Re!=null&&(t=Re.location)!=null&&t.href&&(e.currentUrl=Re.location.href),this._instance.featureFlags){var r=this._instance.featureFlags.getFlags();r&&r.length>0&&(e.activeFeatureFlags=r)}return e}}},LK=ue({},sg,xK,SK,wK,EK,kK,TK,CK,PK,RK,AK,IK);Zr.__defaultExtensionClasses=ue({},LK);
343var CT,qa=(CT=vd[Xl]=new Zr,(function(){function t(){t.done||(t.done=!0,CM=!1,jt(vd,(function(e){e._dom_loaded()})))}fe!=null&&fe.addEventListener?fe.readyState==="complete"?t():on(fe,"DOMContentLoaded",t,{capture:!1}):X&&he.error("Browser doesn't support `document.addEventListener` so PostHog couldn't be initialized")})(),CT);let Fu=!1;function MK(){var t;try{for(const e of document.cookie.split(";")){const n=(t=e.split("=")[0])==null?void 0:t.trim();if(!n||!n.startsWith("ph_"))continue;const r="=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/";document.cookie=n+r;const i=window.location.hostname,s=i.replace(/^[^.]+\./,".");s!==i&&s.includes(".")&&(document.cookie=`${n}${r}; domain=${s}`)}}catch{}try{const e=[];for(let n=0;n<window.localStorage.length;n++){const r=window.localStorage.key(n);r&&r.startsWith("ph_")&&e.push(r)}for(const n of e)window.localStorage.removeItem(n)}catch{}}function NK(){if(Fu||typeof window>"u")return;if(!_0()){MK();return}qa.init("phc_wjatyAbpBtEWVhuBQBhXTWWcPdz2veq2eKFMYPk524sh",{api_host:"https://eu.i.posthog.com",opt_out_capturing_by_default:!0,disable_session_recording:!0,capture_pageview:!1,capture_pageleave:!0,persistence:"localStorage+cookie",loaded:n=>{b0()==="granted"&&n.opt_in_capturing()}}),Fu=!0,x0(n=>{n==="granted"?qa.opt_in_capturing():n==="denied"&&qa.opt_out_capturing()})}function OK(t,e){Fu&&qa.capture(t,e)}function DK(t,e){Fu&&qa.identify(t,e)}function jK(){if(!Fu)return null;try{return qa.get_distinct_id()}catch{return null}}function FK(){Fu&&qa.reset()}const UK="lexpi-pending",Qa="files",D0="pendingFile",j0="lexpi:pendingValidation";function F0(){return new Promise((t,e)=>{const n=indexedDB.open(UK,1);n.onupgradeneeded=()=>{n.result.createObjectStore(Qa)},n.onsuccess=()=>t(n.result),n.onerror=()=>e(n.error)})}async function zK(t,e){try{const n=await F0();await new Promise((r,i)=>{const s=n.transaction(Qa,"readwrite");s.objectStore(Qa).put(t,D0),s.oncomplete=()=>r(),s.onerror=()=>i(s.error)}),n.close(),sessionStorage.setItem(j0,JSON.stringify(e))}catch{}}async function BK(){try{const t=await F0(),e=await new Promise((i,s)=>{const u=t.transaction(Qa,"readonly").objectStore(Qa).get(D0);u.onsuccess=()=>i(u.result),u.onerror=()=>s(u.error)});if(t.close(),!e)return null;const n=sessionStorage.getItem(j0);if(!n)return null;const r=JSON.parse(n);return{file:e,validation:r}}catch{return null}}async function $K(){try{const t=await F0();await new Promise((e,n)=>{const r=t.transaction(Qa,"readwrite");r.objectStore(Qa).delete(D0),r.oncomplete=()=>e(),r.onerror=()=>n(r.error)}),t.close(),sessionStorage.removeItem(j0)}catch{}}function cx(t){const e=(n,r)=>t[n]??t[r];return{lufsIntegrated:e("lufsIntegrated","lufs_integrated")??0,truePeak:e("truePeak","true_peak")??0,stereoWidth:e("stereoWidth","stereo_width")??0,phaseCorrelation:e("phaseCorrelation","phase_correlation")??0,spectralBalance:e("spectralBalance","spectral_balance")??{},crestFactorDb:e("crestFactorDb","crest_factor_db"),dynamicRangeDb:e("dynamicRangeDb","dynamic_range_db"),spectralDeviation:e("spectralDeviation","spectral_deviation"),spectralMaxDeviationDb:e("spectralMaxDeviationDb","spectral_max_deviation_db"),phaseProblematicPct:e("phaseProblematicPct","phase_problematic_pct"),hfEnergyRatio:e("hfEnergyRatio","hf_energy_ratio"),hfTemporalProportion:e("hfTemporalProportion","hf_temporal_proportion"),bassRmsDb:e("bassRmsDb","bass_rms_db"),thresholdsVersion:e("thresholdsVersion","thresholds_version"),infos:t.infos||t.warnings||[],risks:t.risks||[],blocking:t.blocking||[]}}function TT(t){const e=(n,r)=>t[n]??t[r];return{outputLufs:e("outputLufs","output_lufs")??0,outputTruePeak:e("outputTruePeak","output_true_peak")??0,processingTimeSeconds:e("processingTimeSeconds","processing_time_seconds")??0,streamUrl:e("streamUrl","stream_url")??null,originalStreamUrl:e("originalStreamUrl","original_stream_url")??null,watermarkedUrl:e("watermarkedUrl","watermarked_url")??null}}const Ca=g0((t,e)=>({files:[],setFiles:n=>t(r=>{if(r.files.length===0)return{files:n};const i=new Map(r.files.map(l=>[l.id,l]));return{files:n.map(l=>{const u=i.get(l.id);
343return u&&(u.analysisData||u.masteringData)?{...l,analysisData:l.analysisData??u.analysisData,masteringData:l.masteringData??u.masteringData,status:u.analysisData?u.status:l.status,progress:u.progress||l.progress}:l})}}),addFile:n=>t(r=>{const i=r.files.findIndex(s=>s.id===n.id);if(i>=0){const s=[...r.files];return s[i]={...s[i],...n},{files:s}}return{files:[...r.files,n]}}),updateFile:(n,r)=>t(i=>({files:i.files.map(s=>s.id===n?{...s,...r}:s)})),removeFile:n=>t(r=>({files:r.files.filter(i=>i.id!==n)})),getTotalActiveCost:()=>{const{files:n}=e();return n.filter(r=>!["abandoned","failed"].includes(r.status)).reduce((r,i)=>r+i.tokenCost,0)},pendingFile:null,pendingValidation:null,setPendingFile:(n,r)=>{zK(n,r),t({pendingFile:n,pendingValidation:r})},clearPendingFile:()=>{$K(),t({pendingFile:null,pendingValidation:null})}}));let Jh=!1;function qK(){const{t}=Tt(),{getToken:e,isSignedIn:n}=Wo();return k.useEffect(()=>{if(!n){n===!1&&Jh&&(Jh=!1,ji.disconnect(),FK());return}if(Jh)return;Jh=!0;async function r(){try{const _=await e();if(!_)return;const x=jK();ji.connect(_,async()=>{const P=await e();if(!P)throw new Error("No token");return P});const[S,w,C]=await Promise.all([pG(_),xL(_),fG(_)]);DK(w.id),x&&x!==w.id&&gG(_,x).catch(()=>{}),Kc.getState().setBalance(S.balance),Kc.getState().setExpiryInfo(S.nearest_expiry,S.expiring_count);const R=w.role==="ADMIN"?"ADMIN":"MEMBER";go.getState().setUser(R);const I=C.files.map(P=>({id:P.id,name:P.name,durationSeconds:P.duration_seconds,tokenCost:P.token_cost,status:P.status,progress:0,analysisData:null,masteringData:null,createdAt:P.created_at,expiresAt:P.expires_at}));Ca.getState().setFiles(I)}catch{go.getState().setError(t("appInit.profileLoadError"))}}const i=ji.on("token_update",_=>{const{balance:x,nearest_expiry:S,expiring_count:w}=_.data;Kc.getState().setBalance(x),Kc.getState().setExpiryInfo(S,w)}),s=(_,x)=>{Ca.getState().updateFile(_,x)},l=ji.on("analysis_progress",_=>{_.file_id&&s(_.file_id,{progress:_.data.progress})}),u=ji.on("analysis_complete",_=>{_.file_id&&s(_.file_id,{status:"analyzed",progress:100,analysisData:cx(_.data.analysis)})}),c=ji.on("mastering_progress",_=>{if(!_.file_id)return;const x=Ca.getState().files.find(w=>w.id===_.file_id),S={progress:_.data.progress};(x==null?void 0:x.status)==="analyzed"&&(S.status="mastering"),s(_.file_id,S)}),p=ji.on("mastering_complete",_=>{if(!_.file_id)return;const x={status:"completed",masteringData:TT(_.data.mastering)};typeof _.data.expires_at=="string"&&(x.expiresAt=_.data.expires_at),s(_.file_id,x)}),h=ji.on("analysis_failed",_=>{_.file_id&&s(_.file_id,{status:"failed"})}),m=ji.on("mastering_failed",_=>{_.file_id&&s(_.file_id,{status:"failed"})}),g=ji.on("snapshot",_=>{const x=_.data.jobs;if(!x)return;const S=Ca.getState();for(const w of x){const C={status:w.status};w.analysis&&(C.analysisData=cx(w.analysis)),w.mastering&&(C.masteringData=TT(w.mastering)),S.updateFile(w.file_id,C)}});return r(),()=>{i(),l(),u(),c(),p(),h(),m(),g()}},[n]),null}function WK(){const{t}=Tt(),[e,n]=k.useState(!1),[r,i]=k.useState(!1);return k.useEffect(()=>(Z1(()=>{r||(i(!0),requestAnimationFrame(()=>n(!0)))}),()=>{Z1(null)}),[r]),k.useEffect(()=>{if(!r)return;const s=setTimeout(()=>{n(!1),setTimeout(()=>i(!1),300)},3e3);return()=>clearTimeout(s)},[r]),r?v.jsx("div",{className:`fixed left-1/2 top-1/2 z-[100] -translate-x-1/2 -translate-y-1/2 rounded-xl border border-white/[0.12] bg-white/[0.08] px-5 py-3 text-sm text-lexpi-text backdrop-blur-xl transition-all duration-300 ${e?"scale-100 opacity-100":"scale-95 opacity-0"}`,style:{boxShadow:`0 8px 32px ${re(Ke.black,.3)}, 0 2px 8px ${re(Ke.black,.2)}`},children:t("comingSoonToast.message")}):null}function HK(){const{t}=Tt(),[e,n]=k.useState(()=>b0());return k.useEffect(()=>x0(i=>n(i)),[]),!_0()||e!=="unknown"?null:v.jsx("div",{role:"dialog","aria-label":t("cookieConsent.title"),className:"pointer-events-none fixed inset-x-0 bottom-0 z-50 px-3 pb-3 sm:px-6 sm:pb-6",children:v.jsxs("div",{className:"pointer-events-auto mx-auto flex max-w-3xl flex-col gap-4 roun
343ded-2xl border border-lexpi-border bg-lexpi-surface/95 p-5 shadow-2xl backdrop-blur-xl sm:flex-row sm:items-start",children:[v.jsxs("div",{className:"flex flex-1 items-start gap-3",children:[v.jsx(bV,{className:"mt-0.5 h-5 w-5 flex-shrink-0 text-lexpi-accent","aria-hidden":!0}),v.jsxs("div",{className:"text-sm leading-relaxed text-lexpi-text-muted",children:[v.jsx("p",{className:"font-semibold text-lexpi-text",children:t("cookieConsent.title")}),v.jsx("p",{className:"mt-1.5",children:t("cookieConsent.body")}),v.jsx("p",{className:"mt-1.5",children:v.jsx(ut,{to:"/privacy",className:"text-lexpi-accent hover:text-lexpi-accent-hover",children:t("cookieConsent.learnMore")})})]})]}),v.jsxs("div",{className:"flex flex-shrink-0 gap-2 sm:flex-col",children:[v.jsx("button",{type:"button",onClick:()=>wC("granted"),className:"btn-primary flex-1 px-5 py-2 text-sm sm:flex-none",children:t("cookieConsent.accept")}),v.jsx("button",{type:"button",onClick:()=>wC("denied"),className:"flex-1 rounded-lg border border-lexpi-border bg-lexpi-surface-hover px-5 py-2 text-sm text-lexpi-text-muted transition-colors hover:bg-lexpi-border hover:text-lexpi-text sm:flex-none",children:t("cookieConsent.decline")})]})]})})}function VK(t){const e=new URLSearchParams(t),n={};for(const r of["utm_source","utm_medium","utm_campaign","utm_term","utm_content"]){const i=e.get(r);i&&(n[r]=i)}return n}function GK(){const t=En(),e=k.useRef(""),n=k.useRef(!0);k.useEffect(()=>{n.current&&(e.current=typeof document<"u"&&document.referrer||"",n.current=!1);const r=VK(t.search);OK("$pageview",{...r,referrer:e.current||void 0,landing_path:t.pathname})},[t.pathname,t.search])}const YK=["0","false","no","off"];function KK(){return!YK.includes("".trim().toLowerCase())}let PT=!1;function JK(){const t=En(),e=k.useRef(t.pathname),n=k.useRef(t.search);k.useEffect(()=>{if(PT||!KK())return;PT=!0;const r=new URLSearchParams(n.current),i=s=>r.get(s)||void 0;oG({landing_path:e.current,utm_source:i("utm_source"),utm_medium:i("utm_medium"),utm_campaign:i("utm_campaign"),referrer:typeof document<"u"&&document.referrer||void 0})},[])}const QK="AW-18287264474/z12iCIfsr8gcENqFhpBE";function XK(){return"AW-18287264474/rBozCKT0uMocENqFhpBE"}function OM(){if(typeof window>"u")return null;const t=window;return typeof t.gtag=="function"?t.gtag:null}function ZK(t){const e=OM();e&&e("event","conversion",{send_to:QK,...t.value!=null?{value:t.value,currency:"EUR"}:{},...t.transactionId?{transaction_id:t.transactionId}:{}})}function eJ(){const t=OM(),e=XK();!t||!e||t("event","conversion",{send_to:e})}function MZ(t){const e=t.indexOf("#"),n=e===-1?t:t.slice(0,e),r=e===-1?"":t.slice(e),i=n.includes("?")?"&":"?";return`${n}${i}signup_done=1${r}`}let RT=!1,AT=!1;function tJ(){const{search:t}=En();k.useEffect(()=>{if(typeof window>"u")return;const e=new URLSearchParams(t);let n=!1;if(!RT&&e.get("gads_conv")==="1"){RT=!0;const s=e.get("value"),l=s?Number.parseFloat(s):NaN,u=e.get("oid")||void 0;ZK({value:Number.isFinite(l)?l:void 0,transactionId:u}),e.delete("gads_conv"),e.delete("value"),e.delete("oid"),n=!0}if(!AT&&e.get("signup_done")==="1"&&(AT=!0,eJ(),e.delete("signup_done"),n=!0),!n)return;const r=e.toString(),i=window.location.pathname+(r?`?${r}`:"")+window.location.hash;window.history.replaceState(null,"",i)},[t])}function nJ(){return v.jsx("div",{className:"flex min-h-[60vh] items-center justify-center",children:v.jsx("div",{className:"h-8 w-8 animate-spin rounded-full border-2 border-white/20 border-t-white"})})}function rJ(){const{t}=Tt();return v.jsxs("div",{className:"flex min-h-[60vh] flex-col items-center justify-center gap-4 px-6 text-center",children:[v.jsx("p",{className:"text-sm leading-relaxed text-lexpi-text-muted",children:t("pageError.message")}),v.jsx("button",{onClick:()=>window.location.reload(),className:"rounded-lg bg-lexpi-accent px-4 py-2 text-sm font-medium text-white transition-colors hover:bg-lexpi-accent-hover",children:t("pageError.reload")})]})}function iJ(){return GK(),JK(),tJ(),v.jsxs("div",{className:"flex min-h-screen flex-col",children:[v.jsx(X7,{}),v.jsx(bG,{}),v.jsx(qK,{}),v.jsx("main",{className:"flex-1",children:v.jsx(rI,{fallback:v.jsx(rJ,{}),children:v.jsx(k.Suspense,{fallback:v.jsx(nJ,{}),children:v.jsx(c0,{})})})}),v.jsx(tG,{}),v.jsx(WK,{}),v.jsx(HK,{})]})}function og(){return mI({queryKey:["public-flags"],queryFn:vG,staleTime:6e4,gcTime:3e5})}function IT(t){let e=Math.sin(t*127.1+t*t*311.7)*43758.5453;return e=e-Math.floor(e),e}function sJ(t,e,n){const r=n*n*(3-2*n);return t+(e-t)*r}function DM(t,e){const n=Math.floor(t),r=t-n,i=IT(n+e*1e3),s=IT(n+1+e*1e3);return sJ(i,s,r)}function Hc(t,e,n){let r=0,i=.5,s=1,l=0;for(let u=0;u<n;u++)r+=DM(t*s,e+u*7.3)*i,l+=i,i*=.5,s*=2.15;return r/l}const oJ=45;function aJ(){const t=k.useRef(null),e=k.useRef(0),n=k.useRef({w:0,h:0,dpr:1}),r=k.useRef(0),i=k.useRef(null),s=k.useRef(!0),l=k.useRef(!0),u=k.useRef(!1),c=k.useRef(!0),p=k.useCallback(()=>s.current&&l.current,[]),h=k.useCallback(_=>{p()&&(e.current=requestAnimationFrame(_))},[p]),m=k.useCallback(()=>{const _=t.current;if(!_)return;const x=Math.min(window.devicePixelRatio||1,c.current?1.4:1.1),S=_.getBoundingClientRect(),w=S.width,C=S.height;(n.current.w!==w||n.current.h!==C||n.current.dpr!==x)&&(n.current={w,h:C,dpr:x},_.width=w*x,_.height=C*x)},[]),g=k.useCallback(_=>{if(_-r.current<oJ){h(g);return}r.current=_;const x=t.current;if(!x)return;const S=i.current??x.getContext("2d");if(!S)return;i.current=S;const{w,h:C,dpr:R}=n.current;if(w===0||C===0){m(),h(g);return}S.setTransform(R,0,0,R,0,0),S.clearRect(0,0,w,C);const I=w<640,P=u.current||!c.current;{const A=P?I?2:3:I?3:5,N=P?I?45:70:I?70:110,T=_*25e-6;S.save(),S.globalCompositeOperation="lighter";for(let L=0;L<A;L++){const O=200+L*13.7,j=(L-(A-1)/2)*.06;S.beginPath();for(let ie=0;ie<=N;ie++){const se=ie/N,de=Hc((se-T*.4)*2.2+L*.9,O+80,P?2:3)*2-1,$=w*(-.2+se*1.4)+de*(I?w*.06:w*.09),Z=C*(1.15-se*1.3)+de*(I?C*.04:C*.06),Q=Math.pow(Math.sin(se*Math.PI),.45),D=Hc((se-T*.3)*1.8+L*2.1,O+120,P?1:2)*.6-.3,le=Math.atan2(-1.3,1.4)+Math.PI/2+D,me=Math.cos(le),ge=Math.sin(le),Ie=Math.sin(se*Math.PI*1.6+T*(1.8+L*.25)+L*2.1)*(P?I?35:60:I?65:120)*Q,je=Math.sin(se*Math.PI*3.3+T*(2.5+L*.4)+L*.7+1.2)*(P?I?15:24:I?25:50)*Q,Le=(Hc((se-T*(.7+L*.08))*3,O,P?2:3)*2-1)*(P?I?20:35:I?40:75)*Q,qe=(DM((se-T*1.2)*7+L*5.3,O+50)*2-1)*(P?10:18)*Q,yt=Ie+je+Le+qe+j*(I?120:220),vn=$+me*yt,ln=Z+ge*yt;ie===0?S.moveTo(vn,ln):S.lineTo(vn,ln)}const B=Math.abs((L-(A-1)/2)/A),q=(.028+.018*(1-B))*(I?.7:1);S.strokeStyle=re(_C.rimBlue,q),S.lineWidth=I?1+(1-B)*1:1.3+(1-B)*1.5,S.stroke();const G=q*(I?.12:.16);S.strokeStyle=re(Ln.base,G),S.lineWidth=I?3+(1-B)*3:P?4+(1-B)*4:6+(1-B)*6,S.stroke();const W=q*(I?.03:.045);S.strokeStyle=re(Ln.base,W),S.lineWidth=I?8+(1-B)*5:P?12+(1-B)*6:22+(1-B)*12,S.stroke()}for(let L=0;L<(P?1:2);L++){S.beginPath();const O=P?30:50,j=300+L*17;for(let B=0;B<=O;B++){const q=B/O,G=Hc((q-T*.35)*1.8+L*1.5,j+80,2)*2-1,W=w*(-.15+q*1.3)+G*w*.07,ie=C*(1.1-q*1.2)+G*C*.05,se=Math.pow(Math.sin(q*Math.PI),.4),de=Math.sin(q*Math.PI*1.4+T*(1.3+L*.6)+L*2.8)*(P?I?22:38:I?50:90)*se,$=(Hc((q-T*.5)*2.2,j,2)*2-1)*(P?I?14:24:I?30:55)*se,Z=W+.678*(de+$),Q=ie+.735*(de+$);B===0?S.moveTo(Z,Q):S.lineTo(Z,Q)}S.strokeStyle=re(_C.rimWarm,I?.007:.01),S.lineWidth=P?I?14:24:I?30:50,S.stroke(),S.strokeStyle=re(Ln.base,I?.004:.006),S.lineWidth=P?I?16:28:I?35:55,S.stroke()}
343S.restore()}h(g)},[h,m]);return k.useEffect(()=>{u.current=window.matchMedia("(prefers-reduced-motion: reduce)").matches;const _=navigator.hardwareConcurrency??4,x=navigator.deviceMemory??4;c.current=_>=6&&x>=6,m(),h(g);const S=()=>{s.current=!document.hidden,!document.hidden&&e.current===0&&h(g),document.hidden&&e.current&&(cancelAnimationFrame(e.current),e.current=0)};return document.addEventListener("visibilitychange",S),()=>{document.removeEventListener("visibilitychange",S),e.current&&cancelAnimationFrame(e.current),e.current=0}},[g,h,m]),k.useEffect(()=>{const _=t.current;if(!_)return;const x=new ResizeObserver(()=>m());return x.observe(_),()=>x.disconnect()},[m]),k.useEffect(()=>{const _=t.current;if(!_)return;const x=new IntersectionObserver(([S])=>{l.current=S.isIntersecting,S.isIntersecting&&e.current===0&&h(g),!S.isIntersecting&&e.current&&(cancelAnimationFrame(e.current),e.current=0)},{threshold:.05});return x.observe(_),()=>x.disconnect()},[g,h]),v.jsx("canvas",{ref:t,className:"pointer-events-none absolute inset-0 h-full w-full","aria-hidden":"true"})}const lJ=!1,uJ=1.2,cJ=.55,dJ=.45,LT=(t,e,n,r,i,s)=>`${t},${e-i} ${n},${r-s} ${n},${r+s} ${t},${e+i}`,MT=[{id:"beamRed",y2:190.3,rimHalf:5.4,shimDur:"11s",shimBegin:"-2.4s"},{id:"beamOrange",y2:219.7,rimHalf:7.8,shimDur:"13s",shimBegin:"-1.7s"},{id:"beamYellow",y2:250.4,rimHalf:7.8,shimDur:"12s",shimBegin:"-3.1s"},{id:"beamGreen",y2:280.6,rimHalf:9,shimDur:"10s",shimBegin:"-2.2s"},{id:"beamBlue",y2:310.2,rimHalf:9,shimDur:"13s",shimBegin:"-3.8s"},{id:"beamIndigo",y2:339.8,rimHalf:7.8,shimDur:"11s",shimBegin:"-2.9s"},{id:"beamViolet",y2:370.5,rimHalf:5.4,shimDur:"12s",shimBegin:"-4.4s"}];function pJ(){return v.jsxs("div",{className:"pointer-events-none absolute inset-0 overflow-hidden","aria-hidden":"true",children:[v.jsx("div",{className:"absolute inset-0",style:{background:`radial-gradient(125% 78% at 50% -2%, ${re(Ny.highlightBlue,.1)} 0%, ${re(Ny.midFade,.92)} 42%, ${yf(Ny.vanishingPoint)} 100%)`}}),v.jsxs("svg",{className:"absolute inset-0 h-full w-full",viewBox:"0 0 1000 560",preserveAspectRatio:"xMidYMid slice",style:{willChange:"transform"},children:[v.jsxs("defs",{children:[v.jsxs("linearGradient",{id:"beamWhite",x1:"0%",y1:"0%",x2:"100%",y2:"0%",children:[v.jsx("stop",{offset:"0%",stopColor:re(Ke.white,0)}),v.jsx("stop",{offset:"35%",stopColor:re(Ke.white,.72)}),v.jsx("stop",{offset:"100%",stopColor:re(Ke.white,.2)})]}),v.jsxs("linearGradient",{id:"beamRed",x1:"0%",y1:"0%",x2:"100%",y2:"0%",children:[v.jsx("stop",{offset:"0%",stopColor:re(Ct.redBase,0)}),v.jsx("stop",{offset:"20%",stopColor:re(Ct.redCore,.6)}),v.jsx("stop",{offset:"100%",stopColor:re(Ct.redCore,.09)})]}),v.jsxs("linearGradient",{id:"beamOrange",x1:"0%",y1:"0%",x2:"100%",y2:"0%",children:[v.jsx("stop",{offset:"0%",stopColor:re(Ct.orangeBase,0)}),v.jsx("stop",{offset:"20%",stopColor:re(Ct.orangeCore,.57)}),v.jsx("stop",{offset:"100%",stopColor:re(Ct.orangeCore,.08)})]}),v.jsxs("linearGradient",{id:"beamYellow",x1:"0%",y1:"0%",x2:"100%",y2:"0%",children:[v.jsx("stop",{offset:"0%",stopColor:re(Ct.yellow,0)}),v.jsx("stop",{offset:"20%",stopColor:re(Ct.yellow,.57)}),v.jsx("stop",{offset:"100%",stopColor:re(Ct.yellow,.08)})]}),v.jsxs("linearGradient",{id:"beamGreen",x1:"0%",y1:"0%",x2:"100%",y2:"0%",children:[v.jsx("stop",{offset:"0%",stopColor:re(Ct.green,0)}),v.jsx("stop",{offset:"20%",stopColor:re(Ct.green,.55)}),v.jsx("stop",{offset:"100%",stopColor:re(Ct.green,.07)})]}),v.jsxs("linearGradient",{id:"beamBlue",x1:"0%",y1:"0%",x2:"100%",y2:"0%",children:[v.jsx("stop",{offset:"0%",stopColor:re(Ct.blue,0)}),v.jsx("stop",{offset:"20%",stopColor:re(Ct.blue,.6)}),v.jsx("stop",{offset:"100%",stopColor:re(Ct.blue,.1)})]}),v.jsxs("linearGradient",{id:"beamIndigo",x1:"0%",y1:"0%",x2:"100%",y2:"0%",children:[v.jsx("stop",{offset:"0%",stopColor:re(Ct.indigo,0)}),v.jsx("stop",{offset:"20%",stopColor:re(Ct.indigo,.6)}),v.jsx("stop",{offset:"100%",stopColor:re(Ct.indigo,.1)})]}),v.jsxs("linearGradient",{id:"beamViolet",x1:"0%",y1:"0%",x2:"100%",y2:"0%",children:[v.jsx("stop",{offset:"0%",stopColor:re(Ct.violet,0)}),v.jsx("stop",{offset:"20%",stopColor:re(Ct.violet,.6)}),v.jsx("stop",{offset:"100%",stopColor:re(Ct.violet,.1)})]}),v.jsxs("filter",{id:"softGlow",x:"-30%",y:"-30%",width:"160%",height:"160%",children:[v.jsx("feGaussianBlur",{stdDeviation:"6",result:"blurred"}),v.jsxs("feMerge",{children:[v.jsx("feMergeNode",{in:"blurred"}),v.jsx("feMergeNode",{in:"SourceGraphic"})]})]}),v.jsxs("filter",{id:"spectrumSoft",x:"-40%",y:"-60%",width:"180%",height:"220%",children:[v.jsx("feGaussianBlur",{stdDeviation:"6",in:"SourceGraphic",result:"blurNear"}),v.jsx("feGaussianBlur",{stdDeviation:"16",in:"SourceGraphic",result:"blurFar"}),v.jsxs("feMerge",{children:[v.jsx("feMergeNode",{in:"blurFar"}),v.jsx("feMergeNode",{in:"blurNear"}),v.jsx("feMergeNode",{in:"SourceGraphic"})]})]}),v.jsxs("linearGradient",{id:"anamorphic",x1:"0%",y1:"0%",x2:"100%",y2:"0%",children:[v.jsx("stop",{offset:"0%",stopColor:re(Ct.anamorphicSoft,0)}),v.jsx("stop",{offset:"35%",stopColor:re(Ct.anamorphicMid,.35)}),v.jsx("stop",{offset:"50%",stopColor:re(Ct.anamorphicCore,.55)}),v.jsx("stop",{offset:"65%",stopColor:re(Ct.anamorphicMid,.35)}),v.jsx("stop",{offset:"100%",stopColor:re(Ct.anamorphicSoft,0)})]}),v.jsx("filter",{id:"anamorphicBlur",x:"-10%",y:"-10%",width:"120%",height:"120%",children:v.jsx("feGaussianBlur",{stdDeviation:"2.4"})}),v.jsxs("radialGradient",{id:"vignette",cx:"50%",cy:"48%",r:"68%",children:[v.jsx("stop",{offset:"55%",stopColor:re(Ke.black,0)}),v.jsx("stop",{offset:"100%",stopColor:re(Ke.black,.55)})]}),v.jsxs("filter",{id:"filmGrain",x:"0%",y:"0%",width:"100%",height:"100%",children:[v.jsx("feTurbulence",{type:"fractalNoise",baseFrequency:"0.92",numOctaves:"2",seed:"7",stitchTiles:"stitch"}),v.jsx("feColorMatrix",{values:`0 0 0 0 1 344 0 0 0 0 1 345 0 0 0 0 1 346 0 0 0 0.42 0`})]})]}
346),lJ,v.jsx("g",{filter:"url(#softGlow)",children:v.jsx("line",{x1:-140,y1:"279",x2:500,y2:280,stroke:"url(#beamWhite)",strokeWidth:"5.5",children:v.jsx("animate",{attributeName:"y1",values:"279;277;279",keyTimes:"0;0.5;1",keySplines:"0.42 0 0.58 1;0.42 0 0.58 1",calcMode:"spline",dur:"14s",begin:"-1.1s",repeatCount:"indefinite"})})}),v.jsxs("g",{filter:"url(#softGlow)",children:[v.jsxs("circle",{cx:500,cy:280,r:"16",fill:re(Ct.beamHalo,.18),children:[v.jsx("animate",{attributeName:"r",values:"14.5;17.5;14.5",keyTimes:"0;0.5;1",keySplines:"0.42 0 0.58 1;0.42 0 0.58 1",calcMode:"spline",dur:"6.8s",begin:"-0.9s",repeatCount:"indefinite"}),v.jsx("animate",{attributeName:"opacity",values:"0.17;0.23;0.17",keyTimes:"0;0.5;1",keySplines:"0.42 0 0.58 1;0.42 0 0.58 1",calcMode:"spline",dur:"6.8s",begin:"-1.2s",repeatCount:"indefinite"})]}),v.jsx("circle",{cx:500,cy:280,r:"5",fill:re(Ke.white,.62),children:v.jsx("animate",{attributeName:"opacity",values:"0.52;0.74;0.52",keyTimes:"0;0.5;1",keySplines:"0.42 0 0.58 1;0.42 0 0.58 1",calcMode:"spline",dur:"5.6s",begin:"-0.7s",repeatCount:"indefinite"})})]}),v.jsx("g",{filter:"url(#spectrumSoft)",style:{mixBlendMode:"screen"},children:MT.map(i=>v.jsx("polygon",{points:LT(500,280,1140,i.y2,uJ,i.rimHalf),fill:`url(#${i.id})`,children:v.jsx("animate",{attributeName:"opacity",values:"0.92;1;0.92",keyTimes:"0;0.5;1",keySplines:"0.42 0 0.58 1;0.42 0 0.58 1",calcMode:"spline",dur:i.shimDur,begin:i.shimBegin,repeatCount:"indefinite"})},i.id))}),v.jsx("g",{style:{mixBlendMode:"screen"},children:MT.map(i=>v.jsx("polygon",{points:LT(500,280,1140,i.y2,cJ,i.rimHalf*dJ),fill:`url(#${i.id})`},`${i.id}-core`))}),v.jsxs("g",{filter:"url(#anamorphicBlur)",style:{mixBlendMode:"screen"},children:[v.jsx("line",{x1:180,y1:280,x2:820,y2:280,stroke:"url(#anamorphic)",strokeWidth:"0.9",strokeLinecap:"round"}),v.jsx("line",{x1:320,y1:280,x2:680,y2:280,stroke:"url(#anamorphic)",strokeWidth:"2.6",strokeLinecap:"round",opacity:"0.55"})]}),v.jsx("rect",{x:"0",y:"0",width:"1000",height:"560",fill:"url(#vignette)",pointerEvents:"none"}),v.jsx("rect",{x:"0",y:"0",width:"1000",height:"560",filter:"url(#filmGrain)",opacity:"0.06",style:{mixBlendMode:"overlay"},pointerEvents:"none"})]}),v.jsx("div",{className:"absolute inset-0",style:{background:`linear-gradient(180deg, ${re(Ke.black,0)} 50%, ${re(Ke.black,.36)} 100%)`}})]})}const hJ=8e3,jM=1400;function fJ(){const{t}=Tt(),e=k.useMemo(()=>{const h=t("landingPage.heroTaglines",{returnObjects:!0});return Array.isArray(h)?h:[]},[t]),[n,r]=k.useState(0),[i,s]=k.useState(!0),[l,u]=k.useState(!1),[c,p]=k.useState(!1);return k.useEffect(()=>{if(typeof window>"u")return;const h=window.matchMedia("(prefers-reduced-motion: reduce)");p(h.matches);const m=g=>p(g.matches);return h.addEventListener("change",m),()=>h.removeEventListener("change",m)},[]),k.useEffect(()=>{if(c||e.length<2)return;if(i){if(l)return;const m=window.setTimeout(()=>s(!1),hJ);return()=>window.clearTimeout(m)}const h=window.setTimeout(()=>{r(m=>(m+1)%e.length),s(!0)},jM);return()=>window.clearTimeout(h)},[i,l,c,e.length]),e.length===0?null:c?v.jsx("h1",{className:"hero-tagline-text text-[clamp(1.5rem,4.5vw,3.5rem)] font-bold tracking-tight",children:e[0]}):v.jsx("div",{onMouseEnter:()=>u(!0),onMouseLeave:()=>u(!1),onFocus:()=>u(!0),onBlur:()=>u(!1),children:v.jsx(mJ,{text:e[n]??e[0],fadingOut:!i},n)})}function mJ({text:t,fadingOut:e}){const[n,r]=k.useState(!1);return k.useEffect(()=>{const i=requestAnimationFrame(()=>r(!0));return()=>cancelAnimationFrame(i)},[]),v.jsx("h1",{className:"hero-tagline-text text-[clamp(1.5rem,4.5vw,3.5rem)] font-bold tracking-tight",style:{opacity:n&&!e?1:0,transition:`opacity ${jM}ms ease-in-out`},children:t})}function ir(t,e,n,r){return new(n||(n=Promise))((function(i,s){function l(p){try{c(r.next(p))}catch(h){s(h)}}function u(p){try{c(r.throw(p))}catch(h){s(h)}}function c(p){var h;p.done?i(p.value):(h=p.value,h instanceof n?h:new n((function(m){m(h)}))).then(l,u)}c((r=r.apply(t,e||[])).next())}))}class mp{constructor(){this.listeners={}}on(e,n,r){if(this.listeners[e]||(this.listeners[e]=new Set),r==null?void 0:r.once){const i=(...s)=>{this.un(e,i),n(...s)};return this.listeners[e].add(i),()=>this.un(e,i)}return this.listeners[e].add(n),()=>this.un(e,n)}un(e,n){var r;(r=this.listeners[e])===null||r===void 0||r.delete(n)}once(e,n){return this.on(e,n,{once:!0})}unAll(){this.listeners={}}emit(e,...n){this.listeners[e]&&this.listeners[e].forEach((r=>r(...n)))}}const Qh={decode:function(t,e){return ir(this,void 0,void 0,(function*(){const n=new AudioContext({sampleRate:e});try{return yield n.decodeAudioData(t)}finally{n.close()}}))},createBuffer:function(t,e){if(!t||t.length===0)throw new Error("channelData must be a non-empty array");if(e<=0)throw new Error("duration must be greater than 0");if(typeof t[0]=="number"&&(t=[t]),!t[0]||t[0].length===0)throw new Error("channelData must contain non-empty channel arrays");(function(r){const i=r[0];if(i.some((s=>s>1||s<-1))){const s=i.length;let l=0;for(let u=0;u<s;u++){const c=Math.abs(i[u]);c>l&&(l=c)}for(const u of r)for(let c=0;c<s;c++)u[c]/=l}})(t);const n=t.map((r=>r instanceof Float32Array?r:Float32Array.from(r)));return{duration:e,length:n[0].length,sampleRate:n[0].length/e,numberOfChannels:n.length,getChannelData:r=>{const i=n[r];if(!i)throw new Error(`Channel ${r} not found`);return i},copyFromChannel:AudioBuffer.prototype.copyFromChannel,copyToChannel:AudioBuffer.prototype.copyToChannel}}};function FM(t,e){const n=e.xmlns?document.createElementNS(e.xmlns,t):document.createElement(t);for(const[r,i]of Object.entries(e))if(r==="children"&&i)for(const[s,l]of Object.entries(i))l instanceof Node?n.appendChild(l):typeof l=="string"?n.appendChild(document.createTextNode(l)):n.appendChild(FM(s,l));else r==="style"?Object.assign(n.style,i):r==="textContent"?n.textContent=i:n.setAttribute(r,i.toString());return n}function NT(t,e,n){const r=FM(t,e||{});return n==null||n.appendChild(r),r}var gJ=Object.freeze({__proto__:null,createElement:NT,default:NT});const vJ={fetchBlob:function(t,e,n){return ir(this,void 0,void 0,(function*(){const r=yield fetch(t,n);if(r.status>=400)throw new Error(`Failed to fetch ${t}: ${r.status} (${r.statusText})`);return(function(i,s){ir(this,void 0,void 0,(function*(){if(!i.body||!i.headers)return;const l=i.body.getReader(),u=Number(i.headers.get("Content-Length"))||0;let c=0;const p=h=>{c+=(h==null?void 0:h.length)||0;const m=Math.round(c/u*100);s(m)};try{for(;;){const h=yield l.read();if(h.done)break;p(h.value)}}catch(h){console.warn("Progress tracking error:",h)}}))})(r.clone(),e),r.blob()}))}};function tn(t){let e=t;const n=new Set;return{get value(){return e}
346,set(r){Object.is(e,r)||(e=r,n.forEach((i=>i(e))))},update(r){this.set(r(e))},subscribe:r=>(n.add(r),()=>n.delete(r))}}function xa(t,e){const n=tn(t());return e.forEach((r=>r.subscribe((()=>{const i=t();Object.is(n.value,i)||n.set(i)})))),{get value(){return n.value},subscribe:r=>n.subscribe(r)}}function po(t,e){let n;const r=()=>{n&&(n(),n=void 0),n=t()},i=e.map((s=>s.subscribe(r)));return r(),()=>{n&&(n(),n=void 0),i.forEach((s=>s()))}}class yJ extends mp{get isPlayingSignal(){return this._isPlaying}get currentTimeSignal(){return this._currentTime}get durationSignal(){return this._duration}get volumeSignal(){return this._volume}get mutedSignal(){return this._muted}get playbackRateSignal(){return this._playbackRate}get seekingSignal(){return this._seeking}constructor(e){super(),this.isExternalMedia=!1,this.reactiveMediaEventCleanups=[],e.media?(this.media=e.media,this.isExternalMedia=!0):this.media=document.createElement("audio"),this._isPlaying=tn(!1),this._currentTime=tn(0),this._duration=tn(0),this._volume=tn(this.media.volume),this._muted=tn(this.media.muted),this._playbackRate=tn(this.media.playbackRate||1),this._seeking=tn(!1),this.setupReactiveMediaEvents(),e.mediaControls&&(this.media.controls=!0),e.autoplay&&(this.media.autoplay=!0),e.playbackRate!=null&&this.onMediaEvent("canplay",(()=>{e.playbackRate!=null&&(this.media.playbackRate=e.playbackRate)}),{once:!0})}setupReactiveMediaEvents(){this.reactiveMediaEventCleanups.push(this.onMediaEvent("play",(()=>{this._isPlaying.set(!0)}))),this.reactiveMediaEventCleanups.push(this.onMediaEvent("pause",(()=>{this._isPlaying.set(!1)}))),this.reactiveMediaEventCleanups.push(this.onMediaEvent("ended",(()=>{this._isPlaying.set(!1)}))),this.reactiveMediaEventCleanups.push(this.onMediaEvent("timeupdate",(()=>{this._currentTime.set(this.media.currentTime)}))),this.reactiveMediaEventCleanups.push(this.onMediaEvent("durationchange",(()=>{this._duration.set(this.media.duration||0)}))),this.reactiveMediaEventCleanups.push(this.onMediaEvent("loadedmetadata",(()=>{this._duration.set(this.media.duration||0)}))),this.reactiveMediaEventCleanups.push(this.onMediaEvent("seeking",(()=>{this._seeking.set(!0)}))),this.reactiveMediaEventCleanups.push(this.onMediaEvent("seeked",(()=>{this._seeking.set(!1)}))),this.reactiveMediaEventCleanups.push(this.onMediaEvent("volumechange",(()=>{this._volume.set(this.media.volume),this._muted.set(this.media.muted)}))),this.reactiveMediaEventCleanups.push(this.onMediaEvent("ratechange",(()=>{this._playbackRate.set(this.media.playbackRate)})))}onMediaEvent(e,n,r){return this.media.addEventListener(e,n,r),()=>this.media.removeEventListener(e,n,r)}getSrc(){return this.media.currentSrc||this.media.src||""}revokeSrc(){const e=this.getSrc();e.startsWith("blob:")&&URL.revokeObjectURL(e)}canPlayType(e){return this.media.canPlayType(e)!==""}setSrc(e,n){const r=this.getSrc();if(e&&r===e)return;this.revokeSrc();const i=n instanceof Blob&&(this.canPlayType(n.type)||!e)?URL.createObjectURL(n):e;if(r&&this.media.removeAttribute("src"),i||e)try{this.media.src=i}catch{this.media.src=e}}destroy(){this.reactiveMediaEventCleanups.forEach((e=>e())),this.reactiveMediaEventCleanups=[],this.isExternalMedia||(this.media.pause(),this.revokeSrc(),this.media.removeAttribute("src"),this.media.load(),this.media.remove())}setMediaElement(e){this.reactiveMediaEventCleanups.forEach((n=>n())),this.reactiveMediaEventCleanups=[],this.media=e,this.setupReactiveMediaEvents()}play(){return ir(this,void 0,void 0,(function*(){try{return yield this.media.play()}catch(e){if(e instanceof DOMException&&e.name==="AbortError")return;throw e}}))}pause(){this.media.pause()}isPlaying(){return!this.media.paused&&!this.media.ended}setTime(e){this.media.currentTime=Math.max(0,Math.min(e,this.getDuration()))}getDuration(){return this.media.duration}getCurrentTime(){return this.media.currentTime}getVolume(){return this.media.volume}setVolume(e){this.media.volume=e}getMuted(){return this.media.muted}setMuted(e){this.media.muted=e}getPlaybackRate(){return this.media.playbackRate}isSeeking(){return this.media.seeking}setPlaybackRate(e,n){n!=null&&(this.media.preservesPitch=n),this.media.playbackRate=e}getMediaElement(){return this.media}setSinkId(e){return this.media.setSinkId(e)}}function _J({maxTop:t,maxBottom:e,halfHeight:n,vScale:r,barMinHeight:i=0,barAlign:s}){let l=Math.round(t*n*r),u=l+Math.round(e*n*r)||1;return u<i&&(u=i,s||(l=u/2)),{topHeight:l,totalHeight:u}}function bJ({barAlign:t,halfHeight:e,topHeight:n,totalHeight:r,canvasHeight:i}){return t==="top"?0:t==="bottom"?i-r:e-n}
346function OT(t,e,n){const r=e-t.left,i=n-t.top;return[r/t.width,i/t.height]}function UM(t){return!!(t.barWidth||t.barGap||t.barAlign)}function DT(t,e){if(!UM(e))return t;const n=e.barWidth||.5,r=n+(e.barGap||n/2);return r===0?t:Math.floor(t/r)*r}function jT({scrollLeft:t,totalWidth:e,numCanvases:n}){if(e===0)return[0];const r=t/e,i=Math.floor(r*n);return[i-1,i,i+1]}function zM(t){const e=t._cleanup;typeof e=="function"&&e()}function xJ(t){const e=tn({scrollLeft:t.scrollLeft,scrollWidth:t.scrollWidth,clientWidth:t.clientWidth}),n=xa((()=>(function(s){const{scrollLeft:l,scrollWidth:u,clientWidth:c}=s;if(u===0)return{startX:0,endX:1};const p=l/u,h=(l+c)/u;return{startX:Math.max(0,Math.min(1,p)),endX:Math.max(0,Math.min(1,h))}})(e.value)),[e]),r=xa((()=>(function(s){return{left:s.scrollLeft,right:s.scrollLeft+s.clientWidth}})(e.value)),[e]),i=()=>{e.set({scrollLeft:t.scrollLeft,scrollWidth:t.scrollWidth,clientWidth:t.clientWidth})};return t.addEventListener("scroll",i,{passive:!0}),{scrollData:e,percentages:n,bounds:r,cleanup:()=>{t.removeEventListener("scroll",i),zM(e)}}}class SJ extends mp{constructor(e,n){super(),this.timeouts=[],this.isScrollable=!1,this.audioData=null,this.resizeObserver=null,this.lastContainerWidth=0,this.isDragging=!1,this.subscriptions=[],this.unsubscribeOnScroll=[],this.dragStream=null,this.scrollStream=null,this.subscriptions=[],this.options=e;const r=this.parentFromOptionsContainer(e.container);this.parent=r;const[i,s]=this.initHtml();r.appendChild(i),this.container=i,this.scrollContainer=s.querySelector(".scroll"),this.wrapper=s.querySelector(".wrapper"),this.canvasWrapper=s.querySelector(".canvases"),this.progressWrapper=s.querySelector(".progress"),this.cursor=s.querySelector(".cursor"),n&&s.appendChild(n),this.initEvents()}parentFromOptionsContainer(e){let n;if(typeof e=="string"?n=document.querySelector(e):e instanceof HTMLElement&&(n=e),!n)throw new Error("Container not found");return n}initEvents(){this.wrapper.addEventListener("click",(n=>{const r=this.wrapper.getBoundingClientRect(),[i,s]=OT(r,n.clientX,n.clientY);this.emit("click",i,s)})),this.wrapper.addEventListener("dblclick",(n=>{const r=this.wrapper.getBoundingClientRect(),[i,s]=OT(r,n.clientX,n.clientY);this.emit("dblclick",i,s)})),this.options.dragToSeek!==!0&&typeof this.options.dragToSeek!="object"||this.initDrag(),this.scrollStream=xJ(this.scrollContainer);const e=po((()=>{const{startX:n,endX:r}=this.scrollStream.percentages.value,{left:i,right:s}=this.scrollStream.bounds.value;this.emit("scroll",n,r,i,s)}),[this.scrollStream.percentages,this.scrollStream.bounds]);if(this.subscriptions.push(e),typeof ResizeObserver=="function"){const n=this.createDelay(100);this.resizeObserver=new ResizeObserver((()=>{n().then((()=>this.onContainerResize())).catch((()=>{}))})),this.resizeObserver.observe(this.scrollContainer)}}onContainerResize(){const e=this.parent.clientWidth;e===this.lastContainerWidth&&this.options.height!=="auto"||(this.lastContainerWidth=e,this.reRender(),this.emit("resize"))}initDrag(){if(this.dragStream)return;this.dragStream=(function(n,r={}){const{threshold:i=3,mouseButton:s=0,touchDelay:l=100}=r,u=tn(null),c=new Map,p=matchMedia("(pointer: coarse)").matches;let h=()=>{};const m=g=>{if(g.button!==s||(c.set(g.pointerId,g),c.size>1))return;let _=g.clientX,x=g.clientY,S=!1;const w=Date.now(),C=n.getBoundingClientRect(),{left:R,top:I}=C,P=O=>{if(O.defaultPrevented||c.size>1||p&&Date.now()-w<l)return;const j=O.clientX,B=O.clientY,q=j-_,G=B-x;(S||Math.abs(q)>i||Math.abs(G)>i)&&(O.preventDefault(),O.stopPropagation(),S||(u.set({type:"start",x:_-R,y:x-I}),S=!0),u.set({type:"move",x:j-R,y:B-I,deltaX:q,deltaY:G}),_=j,x=B)},A=O=>{if(c.delete(O.pointerId),S){const j=O.clientX,B=O.clientY;u.set({type:"end",x:j-R,y:B-I})}h()},N=O=>{c.delete(O.pointerId),O.relatedTarget&&O.relatedTarget!==document.documentElement||A(O)},T=O=>{S&&(O.stopPropagation(),O.preventDefault())},L=O=>{O.defaultPrevented||c.size>1||S&&O.preventDefault()};document.addEventListener("pointermove",P),document.addEventListener("pointerup",A),document.addEventListener("pointerout",N),document.addEventListener("pointercancel",N),document.addEventListener("touchmove",L,{passive:!1}),document.addEventListener("click",T,{capture:!0}),h=()=>{document.removeEventListener("pointermove",P),document.removeEventListener("pointerup",A),document.removeEventListener("pointerout",N),document.removeEventListener("pointercancel",N),document.removeEventListener("touchmove",L),setTimeout((()=>{document.removeEventListener("click",T,{capture:!0})}),10)}};return n.addEventListener("pointerdown",m),{signal:u,cleanup:()=>{h(),n.removeEventListener("pointerdown",m),c.clear(),zM(u)}}})(this.wrapper);const e=po((()=>{const n=this.dragStream.signal.value;if(!n)return;const r=this.wrapper.getBoundingClientRect().width,i=(s=n.x/r)<0?0:s>1?1:s;var s;
346n.type==="start"?(this.isDragging=!0,this.emit("dragstart",i)):n.type==="move"?this.emit("drag",i):n.type==="end"&&(this.isDragging=!1,this.emit("dragend",i))}),[this.dragStream.signal]);this.subscriptions.push(e)}initHtml(){const e=document.createElement("div"),n=e.attachShadow({mode:"open"}),r=this.options.cspNonce&&typeof this.options.cspNonce=="string"?this.options.cspNonce.replace(/"/g,""):"";return n.innerHTML=` 347 <style${r?` nonce="${r}"`:""}> 348 :host { 349 user-select: none; 350 min-width: 1px; 351 } 352 :host audio { 353 display: block; 354 width: 100%; 355 } 356 :host .scroll { 357 overflow-x: auto; 358 overflow-y: hidden; 359 width: 100%; 360 position: relative; 361 } 362 :host .noScrollbar { 363 scrollbar-color: transparent; 364 scrollbar-width: none; 365 } 366 :host .noScrollbar::-webkit-scrollbar { 367 display: none; 368 -webkit-appearance: none; 369 } 370 :host .wrapper { 371 position: relative; 372 overflow: visible; 373 z-index: 2; 374 } 375 :host .canvases { 376 min-height: ${this.getHeight(this.options.height,this.options.splitChannels)}px; 377 pointer-events: none; 378 } 379 :host .canvases > div { 380 position: relative; 381 } 382 :host canvas { 383 display: block; 384 position: absolute; 385 top: 0; 386 image-rendering: pixelated; 387 } 388 :host .progress { 389 pointer-events: none; 390 position: absolute; 391 z-index: 2; 392 top: 0; 393 left: 0; 394 width: 0; 395 height: 100%; 396 overflow: hidden; 397 } 398 :host .progress > div { 399 position: relative; 400 } 401 :host .cursor { 402 pointer-events: none; 403 position: absolute; 404 z-index: 5; 405 top: 0; 406 left: 0; 407 height: 100%; 408 border-radius: 2px; 409 } 410 </style> 411 412 <div class="scroll" part="scroll"> 413 <div class="wrapper" part="wrapper"> 414 <div class="canvases" part="canvases"></div> 415 <div class="progress" part="progress"></div> 416 <div class="cursor" part="cursor"></div> 417 </div> 418 </div> 419 `,[e,n]}setOptions(e){if(this.options.container!==e.container){const n=this.parentFromOptionsContainer(e.container);n.appendChild(this.container),this.parent=n}e.dragToSeek!==!0&&typeof this.options.dragToSeek!="object"||this.initDrag(),this.options=e,this.reRender()}getWrapper(){return this.wrapper}getWidth(){return this.scrollContainer.clientWidth}getScroll(){return this.scrollContainer.scrollLeft}setScroll(e){this.scrollContainer.scrollLeft=e}setScrollPercentage(e){const{scrollWidth:n}=this.scrollContainer,r=n*e;this.setScroll(r)}destroy(){var e;this.subscriptions.forEach((n=>n())),this.container.remove(),this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null),(e=this.unsubscribeOnScroll)===null||e===void 0||e.forEach((n=>n())),this.unsubscribeOnScroll=[],this.dragStream&&(this.dragStream.cleanup(),this.dragStream=null),this.scrollStream&&(this.scrollStream.cleanup(),this.scrollStream=null)}createDelay(e=10){let n,r;const i=()=>{n&&(clearTimeout(n),n=void 0),r&&(r(),r=void 0)};return this.timeouts.push(i),()=>new Promise(((s,l)=>{i(),r=l,n=setTimeout((()=>{n=void 0,r=void 0,s()}),e)}))}getHeight(e,n){var r;const i=((r=this.audioData)===null||r===void 0?void 0:r.numberOfChannels)||1;return(function({optionsHeight:s,optionsSplitChannels:l,parentHeight:u,numberOfChannels:c,defaultHeight:p=128}){if(s==null)return p;const h=Number(s);if(!isNaN(h))return h;if(s==="auto"){const m=u||p;return l!=null&&l.every((g=>!g.overlay))?m/c:m}return p})({optionsHeight:e,optionsSplitChannels:n,parentHeight:this.parent.clientHeight,numberOfChannels:i,defaultHeight:128})}convertColorValues(e,n){return(function(r,i,s){if(!Array.isArray(r))return r||"";if(r.length===0)return"#999";if(r.length<2)return r[0]||"";const l=document.createElement("canvas"),u=l.getContext("2d"),c=s??l.height*i,p=u.createLinearGradient(0,0,0,c||i),h=1/(r.length-1);return r.forEach(((m,g)=>{p.addColorStop(g*h,m)})),p})(e,this.getPixelRatio(),n==null?void 0:n.canvas.height)}getPixelRatio(){return e=window.devicePixelRatio,Math.max(1,e||1);var e}renderBarWaveform(e,n,r,i){const{width:s,height:l}=r.canvas,{halfHeight:u,barWidth:c,barRadius:p,barIndexScale:h,barSpacing:m,barMinHeight:g}=(function({width:x,height:S,length:w,options:C,pixelRatio:R}){const I=S/2,P=C.barWidth?C.barWidth*R:1,A=C.barGap?C.barGap*R:C.barWidth?P/2:0,N=P+A||1;return{halfHeight:I,barWidth:P,barGap:A,barRadius:C.barRadius||0,barMinHeight:C.barMinHeight?C.barMinHeight*R:0,barIndexScale:w>0?x/N/w:0,barSpacing:N}})({width:s,height:l,length:(e[0]||[]).length,options:n,pixelRatio:this.getPixelRatio()}),_=(function({channelData:x,barIndexScale:S,barSpacing:w,barWidth:C,halfHeight:R,vScale:I,canvasHeight:P,barAlign:A,barMinHeight:N}){const T=x[0]||[],L=x[1]||T,O=T.length,j=[];let B=0,q=0,G=0;for(let W=0;W<=O;W++){const ie=Math.round(W*S);if(ie>B){const{topHeight:$,totalHeight:Z}=_J({maxTop:q,maxBottom:G,halfHeight:R,vScale:I,barMinHeight:N,barAlign:A}),Q=bJ({barAlign:A,halfHeight:R,topHeight:$,totalHeight:Z,canvasHeight:P});j.push({x:B*w,y:Q,width:C,height:Z}),B=ie,q=0,G=0}const se=Math.abs(T[W]||0),de=Math.abs(L[W]||0);se>q&&(q=se),de>G&&(G=de)}return j})({channelData:e,barIndexScale:h,barSpacing:m,barWidth:c,halfHeight:u,vScale:i,canvasHeight:l,barAlign:n.barAlign,barMinHeight:g});r.beginPath();for(const x of _)p&&"roundRect"in r?r.roundRect(x.x,x.y,x.width,x.height,p):r.rect(x.x,x.y,x.width,x.height);r.fill(),r.closePath()}renderLineWaveform(e,n,r,i){const{width:s,height:l}=r.canvas,u=(function({channelData:c,width:p,height:h,vScale:m}){const g=h/2,_=c[0]||[];return[_,c[1]||_].map(((x,S)=>{const w=x.length,C=w?p/w:0,R=g,I=S===0?-1:1,P=[{x:0,y:R}];let A=0,N=0;for(let T=0;T<=w;T++){const L=Math.round(T*C);if(L>A){const j=R+(Math.round(N*g*m)||1)*I;P.push({x:A,y:j}),A=L,N=0}const O=Math.abs(x[T]||0);O>N&&(N=O)}return P.push({x:A,y:R}),P}))})({channelData:e,width:s,height:l,vScale:i});r.beginPath();for(const c of u)if(c.length){r.moveTo(c[0].x,c[0].y);for(let p=1;p<c.length;p++){const h=c[p];r.lineTo(h.x,h.y)}}r.fill(),r.closePath()}renderWaveform(e,n,r){if(r.fillStyle=this.convertColorValues(n.waveColor,r),n.renderFunction)return void n.renderFunction(e,r);const i=(function({channelData:s,barHeight:l,normalize:u,maxPeak:c}){var p;const h=l||1;if(!u)return h;const m=s[0];if(!m||m.length===0)return h;let g=c??0;if(!c)for(let _=0;_<m.length;_++){const x=(p=m[_])!==null&&p!==void 0?p:0,S=Math.abs(x);S>g&&(g=S)}return g?h/g:h})({channelData:e,barHeight:n.barHeight,normalize:n.normalize,maxPeak:n.maxPeak});UM(n)?this.renderBarWaveform(e,n,r,i):this.renderLineWaveform(e,n,r,i)}renderSingleCanvas(e,n,r,i,s,l,u){const c=this.getPixelRatio(),p=document.createElement("canvas");p.width=Math.round(r*c),p.height=Math.round(i*c),p.style.width=`${r}px`,p.style.height=`${i}px`,p.style.left=`${Math.round(s)}px`,l.appendChild(p);const h=p.getContext("2d");if(n.renderFunction?(h.fillStyle=this.convertColorValues(n.waveColor,h),n.renderFunction(e,h)):this.renderWaveform(e,n,h),p.width>0&&p.height>0){const m=p.cloneNode(),g=m.getContext("2d");g.drawImage(p,0,0),g.globalCompositeOperation="source-in",g.fillStyle=this.convertColorValues(n.progressColor,g),g.fillRect(0,0,p.width,p.height),u.appendChild(m)}}renderMultiCanvas(e,n,r,i,s,l){const u=this.getPixelRatio(),{clientWidth:c}=this.scrollContainer,p=r/u,h=(function({clientWidth:x,totalWidth:S,options:w}){return DT(Math.min(8e3,x,S),w)})({clientWidth:c,totalWidth:p,options:n});let m={};if(h===0)return;const g=x=>{if(x<0||x>=_||m[x])return;m[x]=!0;const S=x*h;let w=Math.min(p-S,h);if(w=DT(w,n),w<=0)return;const C=(function({channelData:R,offset:I,clampedWidth:P,totalWidth:A}){return R.map((N=>
419{const T=Math.floor(I/A*N.length),L=Math.floor((I+P)/A*N.length);return N.slice(T,L)}))})({channelData:e,offset:S,clampedWidth:w,totalWidth:p});this.renderSingleCanvas(C,n,w,i,S,s,l)},_=Math.ceil(p/h);if(!this.isScrollable){for(let x=0;x<_;x++)g(x);return}if(jT({scrollLeft:this.scrollContainer.scrollLeft,totalWidth:p,numCanvases:_}).forEach((x=>g(x))),_>1){const x=this.on("scroll",(()=>{const{scrollLeft:S}=this.scrollContainer;Object.keys(m).length>10&&(s.innerHTML="",l.innerHTML="",m={}),jT({scrollLeft:S,totalWidth:p,numCanvases:_}).forEach((w=>g(w)))}));this.unsubscribeOnScroll.push(x)}}renderChannel(e,n,r,i){var{overlay:s}=n,l=(function(h,m){var g={};for(var _ in h)Object.prototype.hasOwnProperty.call(h,_)&&m.indexOf(_)<0&&(g[_]=h[_]);if(h!=null&&typeof Object.getOwnPropertySymbols=="function"){var x=0;for(_=Object.getOwnPropertySymbols(h);x<_.length;x++)m.indexOf(_[x])<0&&Object.prototype.propertyIsEnumerable.call(h,_[x])&&(g[_[x]]=h[_[x]])}return g})(n,["overlay"]);const u=document.createElement("div"),c=this.getHeight(l.height,l.splitChannels);u.style.height=`${c}px`,s&&i>0&&(u.style.marginTop=`-${c}px`),this.canvasWrapper.style.minHeight=`${c}px`,this.canvasWrapper.appendChild(u);const p=u.cloneNode();this.progressWrapper.appendChild(p),this.renderMultiCanvas(e,l,r,c,u,p)}render(e){return ir(this,void 0,void 0,(function*(){var n;this.timeouts.forEach((p=>p())),this.timeouts=[],this.canvasWrapper.innerHTML="",this.progressWrapper.innerHTML="",this.options.width!=null&&(this.scrollContainer.style.width=typeof this.options.width=="number"?`${this.options.width}px`:this.options.width);const r=this.getPixelRatio(),i=this.scrollContainer.clientWidth,{scrollWidth:s,isScrollable:l,useParentWidth:u,width:c}=(function({duration:p,minPxPerSec:h=0,parentWidth:m,fillParent:g,pixelRatio:_}){const x=Math.ceil(p*h),S=x>m,w=!!(g&&!S);return{scrollWidth:x,isScrollable:S,useParentWidth:w,width:(w?m:x)*_}})({duration:e.duration,minPxPerSec:this.options.minPxPerSec||0,parentWidth:i,fillParent:this.options.fillParent,pixelRatio:r});if(this.isScrollable=l,this.wrapper.style.width=u?"100%":`${s}px`,this.scrollContainer.style.overflowX=this.isScrollable?"auto":"hidden",this.scrollContainer.classList.toggle("noScrollbar",!!this.options.hideScrollbar),this.cursor.style.backgroundColor=`${this.options.cursorColor||this.options.progressColor}`,this.cursor.style.width=`${this.options.cursorWidth}px`,this.audioData=e,this.emit("render"),this.options.splitChannels)for(let p=0;p<e.numberOfChannels;p++){const h=Object.assign(Object.assign({},this.options),(n=this.options.splitChannels)===null||n===void 0?void 0:n[p]);this.renderChannel([e.getChannelData(p)],h,c,p)}else{const p=[e.getChannelData(0)];e.numberOfChannels>1&&p.push(e.getChannelData(1)),this.renderChannel(p,this.options,c,0)}Promise.resolve().then((()=>
419this.emit("rendered")))}))}reRender(){if(this.unsubscribeOnScroll.forEach((r=>r())),this.unsubscribeOnScroll=[],!this.audioData)return;const{scrollWidth:e}=this.scrollContainer,{right:n}=this.progressWrapper.getBoundingClientRect();if(this.render(this.audioData),this.isScrollable&&e!==this.scrollContainer.scrollWidth){const{right:r}=this.progressWrapper.getBoundingClientRect(),i=(function(s){const l=2*s;return(l<0?Math.floor(l):Math.ceil(l))/2})(r-n);this.scrollContainer.scrollLeft+=i}}zoom(e){this.options.minPxPerSec=e,this.reRender()}scrollIntoView(e,n=!1){const{scrollLeft:r,scrollWidth:i,clientWidth:s}=this.scrollContainer,l=e*i,u=r,c=r+s,p=s/2;if(this.isDragging)l+30>c?this.scrollContainer.scrollLeft+=30:l-30<u&&(this.scrollContainer.scrollLeft-=30);else{(l<u||l>c)&&(this.scrollContainer.scrollLeft=l-(this.options.autoCenter?p:0));const h=l-r-p;n&&this.options.autoCenter&&h>0&&(this.scrollContainer.scrollLeft+=h)}}renderProgress(e,n){if(isNaN(e))return;const r=100*e;this.canvasWrapper.style.clipPath=`polygon(${r}% 0%, 100% 0%, 100% 100%, ${r}% 100%)`,this.progressWrapper.style.width=`${r}%`,this.cursor.style.left=`${r}%`,this.cursor.style.transform=this.options.cursorWidth?`translateX(-${e*this.options.cursorWidth}px)`:"",this.isScrollable&&this.options.autoScroll&&this.audioData&&this.audioData.duration>0&&this.scrollIntoView(e,n)}exportImage(e,n,r){return ir(this,void 0,void 0,(function*(){const i=this.canvasWrapper.querySelectorAll("canvas");if(!i.length)throw new Error("No waveform data");if(r==="dataURL"){const s=Array.from(i).map((l=>l.toDataURL(e,n)));return Promise.resolve(s)}return Promise.all(Array.from(i).map((s=>new Promise(((l,u)=>{s.toBlob((c=>{c?l(c):u(new Error("Could not export image"))}),e,n)})))))}))}}class wJ extends mp{constructor(){super(...arguments),this.animationFrameId=null,this.isRunning=!1}start(){if(this.isRunning)return;this.isRunning=!0;const e=()=>
419{this.isRunning&&(this.emit("tick"),this.animationFrameId=requestAnimationFrame(e))};e()}stop(){this.isRunning=!1,this.animationFrameId!==null&&(cancelAnimationFrame(this.animationFrameId),this.animationFrameId=null)}destroy(){this.stop()}}class i_ extends mp{constructor(e=new AudioContext){super(),this.bufferNode=null,this.playStartTime=0,this.playedDuration=0,this._muted=!1,this._playbackRate=1,this._duration=void 0,this.buffer=null,this.currentSrc="",this.paused=!0,this.crossOrigin=null,this.seeking=!1,this.autoplay=!1,this.addEventListener=this.on,this.removeEventListener=this.un,this.audioContext=e,this.gainNode=this.audioContext.createGain(),this.gainNode.connect(this.audioContext.destination)}load(){return ir(this,void 0,void 0,(function*(){}))}get src(){return this.currentSrc}set src(e){if(this.currentSrc=e,this._duration=void 0,!e)return this.buffer=null,void this.emit("emptied");fetch(e).then((n=>{if(n.status>=400)throw new Error(`Failed to fetch ${e}: ${n.status} (${n.statusText})`);return n.arrayBuffer()})).then((n=>this.currentSrc!==e?null:this.audioContext.decodeAudioData(n))).then((n=>{this.currentSrc===e&&(this.buffer=n,this.emit("loadedmetadata"),this.emit("canplay"),this.autoplay&&this.play())})).catch((n=>{console.error("WebAudioPlayer load error:",n)}))}_play(){if(!this.paused)return;this.paused=!1,this.bufferNode&&(this.bufferNode.onended=null,this.bufferNode.disconnect()),this.bufferNode=this.audioContext.createBufferSource(),this.buffer&&(this.bufferNode.buffer=this.buffer),this.bufferNode.playbackRate.value=this._playbackRate,this.bufferNode.connect(this.gainNode);let e=this.playedDuration*this._playbackRate;(e>=this.duration||e<0)&&(e=0,this.playedDuration=0),this.bufferNode.start(this.audioContext.currentTime,e),this.playStartTime=this.audioContext.currentTime,this.bufferNode.onended=()=>{this.currentTime>=this.duration&&(this.pause(),this.emit("ended"))}}_pause(){var e;this.paused=!0,(e=this.bufferNode)===null||e===void 0||e.stop(),this.playedDuration+=this.audioContext.currentTime-this.playStartTime}play(){return ir(this,void 0,void 0,(function*(){this.paused&&(this._play(),this.emit("play"))}))}pause(){this.paused||(this._pause(),this.emit("pause"))}stopAt(e){const n=e-this.currentTime,r=this.bufferNode;r==null||r.stop(this.audioContext.currentTime+n),r==null||r.addEventListener("ended",(()=>{r===this.bufferNode&&(this.bufferNode=null,this.pause())}),{once:!0})}setSinkId(e){return ir(this,void 0,void 0,(function*(){return this.audioContext.setSinkId(e)}))}get playbackRate(){return this._playbackRate}set playbackRate(e){this._playbackRate=e,this.bufferNode&&(this.bufferNode.playbackRate.value=e)}get currentTime(){return(this.paused?this.playedDuration:this.playedDuration+(this.audioContext.currentTime-this.playStartTime))*this._playbackRate}set currentTime(e){const n=!this.paused;n&&this._pause(),this.playedDuration=e/this._playbackRate,n&&this._play(),this.emit("seeking"),this.emit("timeupdate")}get duration(){var e,n;return(e=this._duration)!==null&&e!==void 0?e:((n=this.buffer)===null||n===void 0?void 0:n.duration)||0}set duration(e){this._duration=e}get volume(){return this.gainNode.gain.value}set volume(e){this.gainNode.gain.value=e,this.emit("volumechange")}get muted(){return this._muted}set muted(e){this._muted!==e&&(this._muted=e,this._muted?this.gainNode.disconnect():this.gainNode.connect(this.audioContext.destination))}canPlayType(e){return/^(audio|video)\//.test(e)}getGainNode(){return this.gainNode}getChannelData(){const e=[];if(!this.buffer)return e;const n=this.buffer.numberOfChannels;for(let r=0;r<n;r++)e.push(this.buffer.getChannelData(r));return e}removeAttribute(e){switch(e){case"src":this.src="";break;case"playbackRate":this.playbackRate=0;break;case"currentTime":this.currentTime=0;break;case"duration":this.duration=0;break;case"volume":this.volume=0;break;case"muted":this.muted=!1}}}const EJ={waveColor:"#999",progressColor:"#555",cursorWidth:1,minPxPerSec:0,fillParent:!0,interact:!0,dragToSeek:!1,autoScroll:!0,autoCenter:!0,sampleRate:8e3};class Uu extends yJ{static create(e){return new Uu(e)}getState(){return this.wavesurferState}getRenderer(){return this.renderer}constructor(e){const n=e.media||(e.backend==="WebAudio"?new i_:void 0);
419super({media:n,mediaControls:e.mediaControls,autoplay:e.autoplay,playbackRate:e.audioRate}),this.plugins=[],this.decodedData=null,this.stopAtPosition=null,this.subscriptions=[],this.mediaSubscriptions=[],this.abortController=null,this.reactiveCleanups=[],this.options=Object.assign({},EJ,e);const{state:r,actions:i}=(function(u){var c,p,h,m,g,_;const x=(c=u==null?void 0:u.currentTime)!==null&&c!==void 0?c:tn(0),S=(p=u==null?void 0:u.duration)!==null&&p!==void 0?p:tn(0),w=(h=u==null?void 0:u.isPlaying)!==null&&h!==void 0?h:tn(!1),C=(m=u==null?void 0:u.isSeeking)!==null&&m!==void 0?m:tn(!1),R=(g=u==null?void 0:u.volume)!==null&&g!==void 0?g:tn(1),I=(_=u==null?void 0:u.playbackRate)!==null&&_!==void 0?_:tn(1),P=tn(null),A=tn(null),N=tn(""),T=tn(0),L=tn(0),O=xa((()=>!w.value),[w]),j=xa((()=>P.value!==null),[P]),B=xa((()=>j.value&&S.value>0),[j,S]),q=xa((()=>x.value),[x]),G=xa((()=>S.value>0?x.value/S.value:0),[x,S]);return{state:{currentTime:x,duration:S,isPlaying:w,isPaused:O,isSeeking:C,volume:R,playbackRate:I,audioBuffer:P,peaks:A,url:N,zoom:T,scrollPosition:L,canPlay:j,isReady:B,progress:q,progressPercent:G},actions:{setCurrentTime:W=>{const ie=Math.max(0,Math.min(S.value||1/0,W));x.set(ie)},setDuration:W=>{S.set(Math.max(0,W))},setPlaying:W=>{w.set(W)},setSeeking:W=>{C.set(W)},setVolume:W=>{const ie=Math.max(0,Math.min(1,W));R.set(ie)},setPlaybackRate:W=>{const ie=Math.max(.1,Math.min(16,W));I.set(ie)},setAudioBuffer:W=>{P.set(W),W&&S.set(W.duration)},setPeaks:W=>{A.set(W)},setUrl:W=>{N.set(W)},setZoom:W=>{T.set(Math.max(0,W))},setScrollPosition:W=>{L.set(Math.max(0,W))}}}})({isPlaying:this.isPlayingSignal,currentTime:this.currentTimeSignal,duration:this.durationSignal,volume:this.volumeSignal,playbackRate:this.playbackRateSignal,isSeeking:this.seekingSignal});this.wavesurferState=r,this.wavesurferActions=i,this.timer=new wJ;const s=n?void 0:this.getMediaElement();this.renderer=new SJ(this.options,s),this.initPlayerEvents(),this.initRendererEvents(),this.initTimerEvents(),this.initReactiveState(),this.initPlugins();const l=this.options.url||this.getSrc()||"";Promise.resolve().then((()=>{this.emit("init");const{peaks:u,duration:c}=this.options;(l||u&&c)&&this.load(l,u,c).catch((p=>{this.emit("error",p instanceof Error?p:new Error(String(p)))}))}))}updateProgress(e=this.getCurrentTime()){return this.renderer.renderProgress(e/this.getDuration(),this.isPlaying()),e}initTimerEvents(){this.subscriptions.push(this.timer.on("tick",(()=>{if(!this.isSeeking()){const e=this.updateProgress();this.emit("timeupdate",e),this.emit("audioprocess",e),this.stopAtPosition!=null&&this.isPlaying()&&e>=this.stopAtPosition&&this.pause()}})))}initReactiveState(){this.reactiveCleanups.push((function(e,n){const r=[];r.push(po((()=>{const l=e.isPlaying.value;n.emit(l?"play":"pause")}),[e.isPlaying])),r.push(po((()=>{const l=e.currentTime.value;n.emit("timeupdate",l),e.isPlaying.value&&n.emit("audioprocess",l)}),[e.currentTime,e.isPlaying])),r.push(po((()=>{e.isSeeking.value&&n.emit("seeking",e.currentTime.value)}),[e.isSeeking,e.currentTime]));let i=!1;r.push(po((()=>{e.isReady.value&&!i&&(i=!0,n.emit("ready",e.duration.value))}),[e.isReady,e.duration]));let s=!1;return r.push(po((()=>{const l=e.isPlaying.value,u=e.currentTime.value,c=e.duration.value,p=c>0&&u>=c;s&&!l&&p&&n.emit("finish"),s=l&&p}),[e.isPlaying,e.currentTime,e.duration])),r.push(po((()=>{const l=e.zoom.value;l>0&&n.emit("zoom",l)}),[e.zoom])),()=>{r.forEach((l=>l()))}})(this.wavesurferState,{emit:this.emit.bind(this)}))}initPlayerEvents(){this.isPlaying()&&(this.emit("play"),this.timer.start()),this.mediaSubscriptions.push(this.onMediaEvent("timeupdate",(()=>{const e=this.updateProgress();this.emit("timeupdate",e)})),this.onMediaEvent("play",(()=>{this.emit("play"),this.timer.start()})),this.onMediaEvent("pause",(()=>{this.emit("pause"),this.timer.stop(),this.stopAtPosition=null})),this.onMediaEvent("emptied",(()=>{this.timer.stop(),this.stopAtPosition=null})),this.onMediaEvent("ended",(()=>{this.emit("timeupdate",this.getDuration()),this.emit("finish"),this.stopAtPosition=null})),this.onMediaEvent("seeking",(()=>
419{this.emit("seeking",this.getCurrentTime())})),this.onMediaEvent("error",(()=>{var e;this.emit("error",(e=this.getMediaElement().error)!==null&&e!==void 0?e:new Error("Media error")),this.stopAtPosition=null})))}initRendererEvents(){this.subscriptions.push(this.renderer.on("click",((e,n)=>{this.options.interact&&(this.seekTo(e),this.emit("interaction",e*this.getDuration()),this.emit("click",e,n))})),this.renderer.on("dblclick",((e,n)=>{this.emit("dblclick",e,n)})),this.renderer.on("scroll",((e,n,r,i)=>{const s=this.getDuration();this.emit("scroll",e*s,n*s,r,i)})),this.renderer.on("render",(()=>{this.emit("redraw")})),this.renderer.on("rendered",(()=>{this.emit("redrawcomplete")})),this.renderer.on("dragstart",(e=>{this.emit("dragstart",e)})),this.renderer.on("dragend",(e=>{this.emit("dragend",e)})),this.renderer.on("resize",(()=>{this.emit("resize")})));{let e;const n=this.renderer.on("drag",(r=>{var i;if(!this.options.interact)return;this.renderer.renderProgress(r),clearTimeout(e);let s=0;const l=this.options.dragToSeek;this.isPlaying()?s=0:l===!0?s=200:l&&typeof l=="object"&&(s=(i=l.debounceTime)!==null&&i!==void 0?i:200),e=setTimeout((()=>{this.seekTo(r)}),s),this.emit("interaction",r*this.getDuration()),this.emit("drag",r)}));this.subscriptions.push((()=>{clearTimeout(e),n()}))}}initPlugins(){var e;!((e=this.options.plugins)===null||e===void 0)&&e.length&&this.options.plugins.forEach((n=>{this.registerPlugin(n)}))}unsubscribePlayerEvents(){this.mediaSubscriptions.forEach((e=>e())),this.mediaSubscriptions=[]}setOptions(e){this.options=Object.assign({},this.options,e),e.duration&&!e.peaks&&(this.decodedData=Qh.createBuffer(this.exportPeaks(),e.duration)),e.peaks&&e.duration&&(this.decodedData=Qh.createBuffer(e.peaks,e.duration)),this.renderer.setOptions(this.options),e.audioRate&&this.setPlaybackRate(e.audioRate),e.mediaControls!=null&&(this.getMediaElement().controls=e.mediaControls)}registerPlugin(e){if(this.plugins.includes(e))return e;e._init(this),this.plugins.push(e);const n=e.once("destroy",(()=>{this.plugins=this.plugins.filter((r=>r!==e)),this.subscriptions=this.subscriptions.filter((r=>r!==n))}));return this.subscriptions.push(n),e}unregisterPlugin(e){this.plugins=this.plugins.filter((n=>n!==e)),e.destroy()}getWrapper(){return this.renderer.getWrapper()}getWidth(){return this.renderer.getWidth()}getScroll(){return this.renderer.getScroll()}setScroll(e){return this.renderer.setScroll(e)}setScrollTime(e){const n=e/this.getDuration();this.renderer.setScrollPercentage(n)}getActivePlugins(){return this.plugins}loadAudio(e,n,r,i){return ir(this,void 0,void 0,(function*(){var s;if(this.emit("load",e),!this.options.media&&this.isPlaying()&&this.pause(),this.decodedData=null,this.stopAtPosition=null,(s=this.abortController)===null||s===void 0||s.abort(),this.abortController=null,!n&&!r){const u=this.options.fetchParams||{};window.AbortController&&!u.signal&&(this.abortController=new AbortController,u.signal=this.abortController.signal);const c=h=>
419this.emit("loading",h);n=yield vJ.fetchBlob(e,c,u);const p=this.options.blobMimeType;p&&(n=new Blob([n],{type:p}))}this.setSrc(e,n);const l=yield new Promise((u=>{const c=i||this.getDuration();c?u(c):this.mediaSubscriptions.push(this.onMediaEvent("loadedmetadata",(()=>u(this.getDuration())),{once:!0}))}));if(!e&&!n){const u=this.getMediaElement();u instanceof i_&&(u.duration=l)}if(r)this.decodedData=Qh.createBuffer(r,l||0);else if(n){const u=yield n.arrayBuffer();this.decodedData=yield Qh.decode(u,this.options.sampleRate)}this.decodedData&&(this.emit("decode",this.getDuration()),this.renderer.render(this.decodedData)),this.emit("ready",this.getDuration())}))}load(e,n,r){return ir(this,void 0,void 0,(function*(){try{return yield this.loadAudio(e,void 0,n,r)}catch(i){throw this.emit("error",i),i}}))}loadBlob(e,n,r){return ir(this,void 0,void 0,(function*(){try{return yield this.loadAudio("",e,n,r)}catch(i){throw this.emit("error",i),i}}))}zoom(e){if(!this.decodedData)throw new Error("No audio loaded");this.renderer.zoom(e),this.emit("zoom",e)}getDecodedData(){return this.decodedData}exportPeaks({channels:e=2,maxLength:n=8e3,precision:r=1e4}={}){if(!this.decodedData)throw new Error("The audio has not been decoded yet");const i=Math.min(e,this.decodedData.numberOfChannels),s=[];for(let l=0;l<i;l++){const u=this.decodedData.getChannelData(l),c=[],p=u.length/n;for(let h=0;h<n;h++){const m=u.slice(Math.floor(h*p),Math.ceil((h+1)*p));let g=0;for(let _=0;_<m.length;_++){const x=m[_];Math.abs(x)>Math.abs(g)&&(g=x)}c.push(Math.round(g*r)/r)}s.push(c)}return s}getDuration(){let e=super.getDuration()||0;return e!==0&&e!==1/0||!this.decodedData||(e=this.decodedData.duration),e}toggleInteraction(e){this.options.interact=e}setTime(e){this.stopAtPosition=null,super.setTime(e),this.updateProgress(e),this.emit("timeupdate",e)}seekTo(e){const n=this.getDuration()*e;this.setTime(n)}play(e,n){const r=Object.create(null,{play:{get:()=>super.play}});return ir(this,void 0,void 0,(function*(){e!=null&&this.setTime(e);const i=yield r.play.call(this);return n!=null&&(this.media instanceof i_?this.media.stopAt(n):this.stopAtPosition=n),i}))}playPause(){return ir(this,void 0,void 0,(function*(){return this.isPlaying()?this.pause():this.play()}))}stop(){this.pause(),this.setTime(0)}skip(e){this.setTime(this.getCurrentTime()+e)}empty(){this.load("",[[0]],.001)}setMediaElement(e){this.unsubscribePlayerEvents(),super.setMediaElement(e),this.initPlayerEvents()}exportImage(){return ir(this,arguments,void 0,(function*(e="image/png",n=1,r="dataURL"){return this.renderer.exportImage(e,n,r)}))}destroy(){var e;this.emit("destroy"),(e=this.abortController)===null||e===void 0||e.abort(),this.plugins.forEach((n=>n.destroy())),this.subscriptions.forEach((n=>n())),this.unsubscribePlayerEvents(),this.reactiveCleanups.forEach((n=>n())),this.reactiveCleanups=[],this.timer.destroy(),this.renderer.destroy(),super.destroy()}}Uu.BasePlugin=class extends mp{constructor(t){super(),this.subscriptions=[],this.isDestroyed=!1,this.options=t}onInit(){}_init(t){this.isDestroyed&&(this.subscriptions=[],this.isDestroyed=!1),this.wavesurfer=t,this.onInit()}destroy(){this.emit("destroy"),this.subscriptions.forEach((t=>t())),this.subscriptions=[],this.isDestroyed=!0,this.wavesurfer=void 0}},Uu.dom=gJ;class ps extends Error{constructor(e,n,r){super(r??`Stream load failed (${e}${n?` ${n}`:""})`),this.kind=e,this.status=n,this.name="StreamLoadError"}}const kJ=new Set(["network","server"]),CJ=1e3,Xh=1.4,FT=800,TJ=30,PJ=.1,UT=30,s_=10,zT=120,BT=12,$T=96,RJ=.03,AJ=220,IJ=-1.5,qT=(t,e,n)=>{const r=new Float32Array(n),i=e<t;for(let s=0;s<n;s++){const l=s/(n-1),u=i?Math.cos(.5*Math.PI*l):Math.sin(.5*Math.PI*l);r[s]=i?e+(t-e)*u:t+(e-t)*u}return r},LJ={aspectRatio:"400 / 190",background:"var(--logo-fall)",WebkitMaskImage:"url(/logo-lexpi-white.png)",maskImage:"url(/logo-lexpi-white.png)",WebkitMaskSize:"contain",maskSize:"contain",WebkitMaskRepeat:"no-repeat",maskRepeat:"no-repeat",WebkitMaskPosition:"center",maskPosition:"center"};function U0({masterStreamUrl:t,originalStreamUrl:e,originalLufs:n,masterLufs:r,originalTruePeak:i,lufsMode:s,onLufsModeChange:l,getToken:u,disableAntiScraping:c=!1,blindMode:p=!1,labelA:h,labelB:m,autoTransitionDemo:g=!1,onAutoTransitionEnd:_,initialTrack:x="B",onFirstPlay:S}){const{t:w}=Tt(),C=h??w("audioPlayer.defaultLabelA"),R=m??w("audioPlayer.defaultLabelB"),I=k.useRef(null),P=k.useRef(null),A=k.useRef(null),N=k.useRef(null),T=k.useRef(null),L=k.useRef(!1),O=k.useRef(null),j=k.useRef(null),B=k.useRef(!1),q=k.useRef(null),[G,W]=k.useState(x),[ie,se]=k.useState(!1),[de,$]=k.useState(0),[Z,Q]=k.useState(0),[D,Y]=k.useState(!1),[le,me]=k.useState(!1),[ge,Ie]=k.useState(0),[je,Le]=k.useState(0),[qe,yt]=k.useState(1),[vn,ln]=k.useState(!1),[Pi,Cn]=k.useState(!1),[Hn,un]=k.useState(null),[ri,kr]=k.useState(0),[Qe,We]=k.useState(!1),Lt=k.useRef(null),Ae=k.useRef(G),Mt=k.useRef(ie);Ae.current=G,Mt.current=ie;const yn=k.useRef(!1),tt=k.useRef(S);tt.current=S;const Ri=k.useRef(0),ii=k.useRef(null),zr=k.useRef(null),si=k.useRef(!1),On=k.useRef(null),Zi=k.useRef(G),nl=k.useRef(null),oi=k.useRef(null),Ns=k.useRef(null),Vo=k.useRef(null),Go=k.useRef(!1),Yo=k.useRef(null),rl=r-n,Ko=Math.min(1,Math.pow(10,(n-r)/20)),Yu=rl>0,Vn=k.useCallback(()=>
419{if(s){const xe=Math.min(n,r);return{gainA:Math.pow(10,(xe-n)/20),gainB:Math.pow(10,(xe-r)/20)}}return{gainA:typeof i=="number"&&i<0?Math.pow(10,(IJ-i)/20):1,gainB:1}},[s,n,r,i]),Dn=k.useCallback(()=>{var xe,Ee;const ee=((xe=O.current)==null?void 0:xe.clientWidth)??600,pe=((Ee=A.current)==null?void 0:Ee.getDuration())??1;return Math.max(1,ee/pe)},[]),Jo=k.useCallback(()=>ge>0?ge:Dn(),[ge,Dn]),ur=ge>0,Ku=k.useCallback(()=>{const ee=A.current;if(!ee)return;const pe=ee.getDuration(),xe=ge>0?ge:Dn();Le(Math.ceil(pe*xe))},[ge,Dn]);k.useEffect(()=>{Ku()},[ge,D,Ku]);const Br=k.useCallback(ee=>{var pe,xe;try{(pe=A.current)==null||pe.zoom(ee)}catch{}try{(xe=N.current)==null||xe.zoom(ee)}catch{}Ie(ee)},[]),gp=k.useCallback(()=>{const ee=Jo(),pe=Math.min(ee*Xh,FT);Br(pe)},[Jo,Br]),Ju=k.useCallback(()=>{const ee=Dn(),xe=Jo()/Xh;Br(xe<=ee*1.05?0:xe)},[Jo,Dn,Br]),Qu=k.useCallback(()=>{Br(0)},[Br]);k.useEffect(()=>{const ee=O.current;if(!ee)return;const pe=xe=>{if(!xe.ctrlKey&&!xe.metaKey||(xe.preventDefault(),Qe))return;const Ee=Dn(),Pe=ge>0?ge:Ee;if(xe.deltaY<0)Br(Math.min(Pe*Xh,FT));else{const Me=Pe/Xh;Br(Me<=Ee*1.05?0:Me)}};return ee.addEventListener("wheel",pe,{passive:!1}),()=>ee.removeEventListener("wheel",pe)},[ge,Dn,Br,Qe]),k.useEffect(()=>{const ee=j.current;if(!ee||!ur)return;const pe=()=>{var Ee,Pe;if(B.current)return;B.current=!0;const xe=ee.scrollLeft;try{(Ee=A.current)==null||Ee.setScroll(xe)}catch{}try{(Pe=N.current)==null||Pe.setScroll(xe)}catch{}B.current=!1};return ee.addEventListener("scroll",pe),()=>ee.removeEventListener("scroll",pe)},[ur]),k.useEffect(()=>{const ee=A.current;if(!ee||!ur)return;const pe=()=>{var Ee;if(B.current)return;B.current=!0;const xe=j.current;if(xe)try{xe.scrollLeft=ee.getScroll()}catch{}try{(Ee=N.current)==null||Ee.setScroll(ee.getScroll())}catch{}B.current=!1};return ee.on("scroll",pe),ee.on("redraw",pe),()=>{ee.un("scroll",pe),ee.un("redraw",pe)}},[ur,D,le]),k.useEffect(()=>{if(!I.current||!P.current)return;un(null);let ee=!1,pe=null,xe=null;const Ee=P.current;let Pe=null,Me=null,dt=null;const st=async St=>{let wt;try{wt=await u()}catch(Ze){throw new ps("auth",void 0,String(Ze))}let lt;try{lt=await fetch(St,{headers:wt?{Authorization:`Bearer ${wt}`}:{}})}catch(Ze){throw new ps("network",void 0,String(Ze))}if(!lt.ok)throw lt.status===401||lt.status===403?new ps("auth",lt.status):lt.status>=500?new ps("server",lt.status):new ps("other",lt.status);try{return await lt.blob()}catch(Ze){throw new ps("network",lt.status,String(Ze))}};return(async()=>{try{const[St,wt]=await Promise.all([st(t),st(e)]);if(ee)return;pe=URL.createObjectURL(St),xe=URL.createObjectURL(wt),Pe=Uu.create({container:I.current,waveColor:[...jl.rest],progressColor:[...jl.progress],cursorColor:jl.cursor,cursorWidth:1,height:64,normalize:!0,backend:"MediaElement",minPxPerSec:0,autoScroll:!0,autoCenter:!0,hideScrollbar:!0}),Pe.load(pe),A.current=Pe,Pe.on("ready",()=>{ee||!Pe||(Q(Pe.getDuration()),Y(!0))}),Pe.on("timeupdate",pt=>{$(pt);const cr=N.current;if(cr){const Wt=cr.getDuration();Wt>0&&(L.current=!0,cr.seekTo(pt/Wt),L.current=!1)}}),Pe.on("interaction",()=>{if(L.current)return;const pt=T.current;pt&&Pe&&(pt.currentTime=Pe.getCurrentTime()),Ae.current!=="B"&&W("B")}),Pe.on("play",()=>{var pt;se(!0),yn.current||(yn.current=!0,(pt=tt.current)==null||pt.call(tt))}),Pe.on("pause",()=>se(!1)),Pe.on("finish",()=>{se(!1);const pt=T.current;pt&&(pt.pause(),pt.currentTime=0)}),Me=new Audio,Me.preload="auto",Me.src=xe,Me.volume=0,Me.preservesPitch=!0,T.current=Me;const lt=await wt.arrayBuffer();if(ee)return;let Ze;try{const pt=new AudioContext;Ze=await pt.decodeAudioData(lt),pt.close()}catch(pt){throw new ps("decode",void 0,String(pt))}if(ee)return;const rn=[];for(let pt=0;pt<Ze.numberOfChannels;pt++)rn.push(Ze.getChannelData(pt));if(ee)return;const kt=Uu.create({container:Ee,peaks:rn,duration:Ze.duration,waveColor:p?[...jl.rest]:"#57534e",progressColor:p?[...jl.progress]:"#78716c",cursorColor:p?jl.cursor:va.cursorFallback,cursorWidth:1,height:64,normalize:!0,interact:!0,minPxPerSec:0,autoScroll:!0,autoCenter:!0,hideScrollbar:!0});N.current=kt,me(!0),kt.on("timeupdate",pt=>{if(L.current)return;const cr=A.current;if(!cr)return;const Wt=cr.getDuration();if(Wt>0){L.current=!0;try{cr.seekTo(pt/Wt)}finally{L.current=!1}}T.current&&(T.current.currentTime=pt)}),kt.on("interaction",()=>{if(!L.current&&Ae.current!=="A"){const pt=T.current,cr=A.current;pt&&cr&&(pt.currentTime=cr.getCurrentTime()),W("A")}}),kt.on("play",()=>kt.pause())}catch(St){if(ee)return;console.error("AudioABPlayer load error:",St);const wt=St instanceof ps?St.kind:"other",lt=St instanceof ps?St.status:void 0,Ze=`${t}|${e}`;if(kJ.has(wt)&&Lt.current!==Ze){Lt.current=Ze,dt=window.setTimeout(()=>{ee||kr(kt=>kt+1)},CJ);return}let rn;switch(wt){case"auth":rn=w("audioPlayer.errors.auth");break;
419case"server":rn=lt?w("audioPlayer.errors.serverWithStatus",{status:lt}):w("audioPlayer.errors.server");break;case"network":rn=w("audioPlayer.errors.network");break;case"decode":rn=w("audioPlayer.errors.decode");break;default:rn=lt?w("audioPlayer.errors.otherWithStatus",{status:lt}):w("audioPlayer.errors.other")}un({kind:wt,message:rn})}})(),()=>{if(ee=!0,dt!==null&&(window.clearTimeout(dt),dt=null),oi.current){try{oi.current.close()}catch{}oi.current=null}if(Ns.current=null,Vo.current=null,Go.current=!1,Pe)try{Pe.destroy()}catch{}if(N.current){try{N.current.destroy()}catch{}N.current=null}Me&&(Me.pause(),Me.src=""),pe&&URL.revokeObjectURL(pe),xe&&URL.revokeObjectURL(xe),Y(!1),me(!1),Ie(0)}},[t,e,u,ri,p]),k.useEffect(()=>{Lt.current=null},[t,e]);const Qo=k.useCallback(()=>{un(null),kr(ee=>ee+1)},[]),Gn=vn?0:qe,Os=k.useCallback(()=>{if(Go.current)return;const ee=A.current,pe=T.current;if(!ee||!pe)return;const xe=ee.getMediaElement();if(!xe)return;const Ee=window.AudioContext??window.webkitAudioContext;if(Ee)try{const Pe=new Ee,Me=Pe.createMediaElementSource(xe),dt=Pe.createMediaElementSource(pe),st=Pe.createGain(),St=Pe.createGain();Me.connect(st).connect(Pe.destination),dt.connect(St).connect(Pe.destination),xe.volume=1,pe.volume=1;const{gainA:wt,gainB:lt}=Vn();st.gain.value=Ae.current==="B"?lt*Gn:0,St.gain.value=Ae.current==="A"?wt*Gn:0,oi.current=Pe,Ns.current=st,Vo.current=St,Go.current=!0}catch(Pe){console.warn("WebAudio routing init failed, using fallback fade",Pe)}},[Vn,Gn]);k.useEffect(()=>{const ee=A.current,pe=T.current;if(!ee||!pe||si.current)return;const{gainA:xe,gainB:Ee}=Vn(),Pe=G==="B"?Ee*Gn:0,Me=G==="A"?xe*Gn:0,dt=Zi.current!==G;Zi.current=G;const st=nl.current??zT;dt&&nl.current!==null&&(nl.current=null);const St=oi.current,wt=Ns.current,lt=Vo.current;if(St&&wt&<){const Wt=St.currentTime,Ii=wt.gain.value,Zo=lt.gain.value;if(wt.gain.cancelScheduledValues(Wt),lt.gain.cancelScheduledValues(Wt),!dt){wt.gain.setValueAtTime(Pe,Wt),lt.gain.setValueAtTime(Me,Wt);return}const Li=st/1e3,ol=qT(Ii,Pe,$T),cg=qT(Zo,Me,$T);try{wt.gain.setValueCurveAtTime(ol,Wt,Li),lt.gain.setValueCurveAtTime(cg,Wt,Li)}catch{wt.gain.setValueAtTime(Ii,Wt),lt.gain.setValueAtTime(Zo,Wt),wt.gain.linearRampToValueAtTime(Pe,Wt+Li),lt.gain.linearRampToValueAtTime(Me,Wt+Li)}return}if(On.current!==null&&(window.clearInterval(On.current),On.current=null),!dt){try{ee.setVolume(Pe)}catch{}pe.volume=Me;return}const Ze=(()=>{try{return ee.getVolume()}catch{return Pe}})(),rn=pe.volume,kt=st===zT?BT:Math.max(BT,Math.round(st/10));let pt=0;const cr=st/kt;return On.current=window.setInterval(()=>{pt++;const Wt=pt/kt,Ii=Wt<.5?2*Wt*Wt:1-Math.pow(-2*Wt+2,2)/2;try{ee.setVolume(Ze+(Pe-Ze)*Ii)}catch{}pe.volume=rn+(Me-rn)*Ii,pt>=kt&&On.current!==null&&(window.clearInterval(On.current),On.current=null)},cr),()=>{On.current!==null&&(window.clearInterval(On.current),On.current=null)}},[G,s,Vn,Gn]),k.useEffect(()=>{const ee=A.current,pe=T.current;if(!ee||!pe)return;const xe=setInterval(()=>{if(!ie)return;const Ee=ee.getCurrentTime();Math.abs(pe.currentTime-Ee)>.03&&(pe.currentTime=Ee)},200);return()=>clearInterval(xe)},[ie]);const il=k.useCallback((ee,pe)=>{const xe=oi.current,Ee=Ns.current,Pe=Vo.current;if(xe&&Ee&&Pe){const st=xe.currentTime;Ee.gain.cancelScheduledValues(st),Pe.gain.cancelScheduledValues(st),Ee.gain.setValueAtTime(ee,st),Pe.gain.setValueAtTime(pe,st);return}const Me=A.current,dt=T.current;if(Me)try{Me.setVolume(ee)}catch{}dt&&(dt.volume=pe)},[]),Ai=k.useCallback(async(ee,pe,xe)=>{const Ee=oi.current,Pe=Ns.current,Me=Vo.current;if(Ee&&Pe&&Me){const Ze=Ee.currentTime,rn=xe/1e3;Pe.gain.cancelScheduledValues(Ze),Me.gain.cancelScheduledValues(Ze),Pe.gain.setValueAtTime(Pe.gain.value,Ze),Me.gain.setValueAtTime(Me.gain.value,Ze),Pe.gain.linearRampToValueAtTime(ee,Ze+rn),Me.gain.linearRampToValueAtTime(pe,Ze+rn),await new Promise(kt=>setTimeout(kt,xe));return}const dt=A.current,st=T.current;if(!dt||!st)return;const St=(()=>{try{return dt.getVolume()}catch{return ee}})(),wt=st.volume,lt=xe/s_;for(let Ze=1;Ze<=s_;Ze++){const rn=Ze/s_;try{dt.setVolume(St+(ee-St)*rn)}catch{}st.volume=wt+(pe-wt)*rn,await new Promise(kt=>setTimeout(kt,lt))}},[]),Cr=k.useCallback(async()=>{Os();const ee=oi.current;if(ee&&ee.state==="suspended")try{await ee.resume()}catch{}},[Os]),Xo=k.useCallback(async()=>
419{if(si.current)return;const ee=A.current,pe=T.current;if(!ee||!pe)return;si.current=!0,Ri.current=0,zr.current=null,await Ai(0,0,UT);try{ee.pause()}catch{}pe.pause();const xe=ee.getDuration(),Ee=Math.min(ee.getCurrentTime()+PJ,xe);if(xe>0)try{ee.seekTo(Ee/xe)}catch{}pe.currentTime=Ee,Cn(!0)},[Ai]);k.useEffect(()=>{if(!D||(ii.current&&(window.clearInterval(ii.current),ii.current=null),c))return;const ee=()=>{if(!Mt.current||si.current){zr.current=null;return}const pe=performance.now();if(zr.current!==null){const xe=(pe-zr.current)/1e3;Ri.current+=xe}zr.current=pe,Ri.current>=TJ&&Xo()};return ii.current=window.setInterval(ee,200),()=>{ii.current&&(window.clearInterval(ii.current),ii.current=null)}},[D,Xo,c]),k.useEffect(()=>{ie||(zr.current=null)},[ie]);const Xu=k.useCallback(async()=>{const ee=A.current,pe=T.current;if(!ee||!pe){Cn(!1),si.current=!1;return}Cn(!1);const{gainA:xe,gainB:Ee}=Vn(),Pe=Ae.current==="B"?Ee*Gn:0,Me=Ae.current==="A"?xe*Gn:0;il(0,0),await Cr();try{await ee.play()}catch{}try{await pe.play()}catch{}await Ai(Pe,Me,UT),si.current=!1,zr.current=null},[Vn,Gn,Cr,Ai,il]),lg=k.useCallback(async()=>{if(Qe)return;const ee=A.current,pe=T.current;!ee||!pe||si.current||(ee.isPlaying()?(ee.pause(),pe.pause()):(await Cr(),pe.currentTime=ee.getCurrentTime(),ee.play(),pe.play().catch(()=>{})))},[Cr,Qe]),Tr=k.useCallback(ee=>{if(ee===Ae.current)return;const pe=T.current,xe=A.current;!pe||!xe||(Mt.current&&Math.abs(pe.currentTime-xe.getCurrentTime())>RJ&&(pe.currentTime=xe.getCurrentTime()),W(ee))},[]);k.useEffect(()=>{if(!g||!D||!le)return;let ee=!1,pe=null,xe=null;const Ee=1e4,Pe=3e3,Me=3e3;return We(!0),(async()=>{const dt=A.current,st=T.current;if(!dt||!st){We(!1),_==null||_();return}try{dt.seekTo(0)}catch{}if(st.currentTime=0,await Cr(),ee)return;const{gainA:St}=Vn(),wt=St*Gn;Ae.current="A",Zi.current="A",il(0,wt),W("A");try{await dt.play()}catch{}try{await st.play()}catch{}pe=window.setTimeout(()=>{ee||(nl.current=Pe,W("B"),xe=window.setTimeout(()=>{ee||(We(!1),_==null||_())},Pe+Me))},Ee)})(),()=>{ee=!0,pe!==null&&(window.clearTimeout(pe),pe=null),xe!==null&&(window.clearTimeout(xe),xe=null),We(!1)}},[g,D,le,Cr,_,Vn,Gn,il]),k.useEffect(()=>{if(!D)return;const ee=Me=>{if(!Me)return!1;const dt=Me.tagName;return dt==="INPUT"||dt==="TEXTAREA"||dt==="SELECT"?!0:Me.isContentEditable===!0};let pe=!0;const xe=q.current;let Ee=null;xe&&typeof IntersectionObserver<"u"&&(pe=!1,Ee=new IntersectionObserver(Me=>{for(const dt of Me)pe=dt.isIntersecting},{threshold:.2}),Ee.observe(xe));const Pe=Me=>{if(ee(document.activeElement)||!pe||Qe||Me.ctrlKey||Me.metaKey||Me.altKey)return;if(Me.code==="Space"||Me.key===" "){Me.preventDefault();const st=A.current,St=T.current;if(!st||!St||si.current)return;st.isPlaying()?(st.pause(),St.pause()):(Cr(),St.currentTime=st.getCurrentTime(),st.play(),St.play().catch(()=>{}));return}const dt=Me.key.toLowerCase();dt==="a"?(Me.preventDefault(),Tr("A")):dt==="b"&&(Me.preventDefault(),Tr("B"))};return window.addEventListener("keydown",Pe),()=>{window.removeEventListener("keydown",Pe),Ee&&Ee.disconnect()}},[D,Tr,Cr,Qe]);const ug=k.useCallback(ee=>{if(Qe)return;ee.preventDefault();try{ee.currentTarget.setPointerCapture(ee.pointerId)}catch{}const pe=Ae.current;Yo.current={startTrack:pe,startTime:performance.now()},Tr(pe==="A"?"B":"A")},[Tr,Qe]),ai=k.useCallback(()=>{const ee=Yo.current;if(!ee)return;Yo.current=null,performance.now()-ee.startTime>=AJ&&Tr(ee.startTrack)},[Tr]),vp=k.useCallback(ee=>{Qe||(ee.key==="Enter"||ee.key===" ")&&(ee.preventDefault(),Tr(Ae.current==="A"?"B":"A"))},[Tr,Qe]),yp=k.useCallback(()=>{if(Qe)return;const ee=A.current,pe=T.current;!ee||!pe||(ee.seekTo(0),pe.currentTime=0,$(0))},[Qe]),sl=k.useCallback(ee=>{Qe||Tr(ee)},[Qe,Tr]),_p=Math.abs(rl).toFixed(1),bp=ur?Math.round(ge/Dn()*100):100,Ds=D&≤return Hn?v.jsxs("div",{className:"flex flex-col items-center justify-center gap-3 rounded-xl bg-lexpi-warning/5 px-4 py-6 text-center text-xs text-lexpi-warning",children:[v.jsx("p",{children:Hn.message}),v.jsxs("button",{type:"button",onClick:Qo,className:"inline-flex items-center gap-1.5 rounded-full border border-lexpi-warning/40 bg-lexpi-warning/10 px-3 py-1 text-[11px] font-medium text-lexpi-warning transition-colors hover:bg-lexpi-warning/15",children:[v.jsx(bb,{className:"h-3 w-3"}),w("audioPlayer.retry")]})]}
419):v.jsxs("div",{ref:q,className:"relative",tabIndex:-1,children:[v.jsx("div",{role:"img","aria-label":"Lexpi",className:`mx-auto mb-3 h-10 transition-opacity duration-300 ease-out sm:h-12 ${Ds?"opacity-100":"opacity-0"}`,style:LJ,"aria-hidden":!Ds}),v.jsxs("div",{ref:O,className:`grid grid-cols-[minmax(0,1fr)] grid-rows-[1fr_auto_1fr] gap-y-4 transition-opacity duration-300 ease-out ${Ds?"opacity-100":"pointer-events-none opacity-0"}`,style:{minHeight:"280px"},"aria-hidden":!Ds,children:[v.jsx("div",{className:"flex flex-col justify-end",children:v.jsxs("div",{role:"button",tabIndex:Qe?-1:0,"aria-pressed":G==="A","aria-label":p?w("audioPlayer.listenLabel",{label:C}):w("audioPlayer.listenOriginal"),onClick:()=>sl("A"),onKeyDown:ee=>{ee.key==="Enter"&&(ee.preventDefault(),sl("A"))},className:`outline-none ${Qe?"cursor-default":"cursor-pointer"}`,children:[v.jsxs("div",{className:"mb-1 flex items-center gap-2",children:[v.jsx("span",{className:`text-xs font-medium transition-colors duration-200 ${G==="A"?p?"text-lexpi-accent":"text-lexpi-text":"text-lexpi-text-dim"}`,children:C}),G==="A"&&ie&&v.jsx("span",{className:`h-1.5 w-1.5 animate-pulse rounded-full ${p?"bg-lexpi-accent":"bg-lexpi-text"}`,"aria-hidden":"true"})]}),v.jsx("div",{ref:P,style:{borderRadius:"28px / 18px"},className:`min-h-[64px] px-2 py-1 backdrop-blur-sm transition-all duration-200 ${G==="A"?p?"bg-white/[0.05] opacity-100 ring-1 ring-lexpi-accent/40":"bg-white/[0.05] opacity-100 ring-1 ring-white/20":"bg-white/[0.02] opacity-60 ring-1 ring-transparent"}`})]})}),v.jsxs("div",{className:"flex items-center gap-1.5 sm:gap-3",children:[v.jsxs("div",{className:"flex flex-1 items-center justify-end gap-1.5 sm:gap-3",children:[v.jsx("button",{onClick:yp,disabled:!D||Qe,className:"hidden rounded-full p-2 text-lexpi-text-muted transition-all duration-200 hover:bg-white/[0.06] hover:text-lexpi-text disabled:opacity-40 sm:inline-flex",title:w("audioPlayer.restartTitle"),children:v.jsx(DV,{className:"h-4 w-4"})}),v.jsxs("button",{type:"button",onPointerDown:ug,onPointerUp:ai,onPointerCancel:ai,onLostPointerCapture:ai,onKeyDown:vp,disabled:!D||Qe,style:{borderRadius:"50% / 80%"},className:`flex items-center gap-1.5 px-3 py-1 text-[11px] font-medium transition-transform duration-200 disabled:opacity-40 ${G==="B"?"glass-cristal-blue text-white":"border border-white/10 bg-white/[0.04] text-lexpi-text"}`,title:w("audioPlayer.swapTitle"),"aria-label":w("audioPlayer.swapAriaLabel"),children:[v.jsx(mV,{className:"h-3 w-3"}),v.jsx("span",{className:"font-mono",children:G==="A"?"A":"B"})]}),v.jsx("span",{className:"font-mono text-[10px] tabular-nums text-lexpi-text-muted sm:text-xs",children:WT(de)})]}),v.jsxs("button",{onClick:lg,disabled:!D||Qe,style:{borderRadius:"50% / 60%"},className:"glass-cristal-blue flex h-10 w-14 shrink-0 items-center justify-center text-white transition-transform duration-200 after:hidden hover:scale-105 disabled:opacity-40",children:[v.jsx("span",{className:"glass-cristal-sweep-mask","aria-hidden":"true",children:v.jsx("span",{className:"glass-cristal-sweep-band"})}),ie?v.jsx(_b,{className:"h-4 w-4"}):v.jsx(Qf,{className:"ml-0.5 h-4 w-4"})]}),v.jsxs("div",{className:"flex flex-1 items-center justify-start gap-1.5 sm:gap-3",children:[v.jsx("span",{className:"hidden font-mono text-xs tabular-nums text-lexpi-text-muted sm:inline",children:WT(Z)}),l&&v.jsxs("button",{type:"button",onClick:()=>l(!s),disabled:Qe,className:`flex items-center gap-1.5 rounded-lg px-3 py-1 text-[11px] font-medium transition-transform duration-200 disabled:opacity-40 ${s?"glass-cristal-blue text-white":"border border-white/10 bg-white/[0.04] text-lexpi-text"}`,title:w(s?"audioPlayer.lufs.activeTitle":"audioPlayer.lufs.inactiveTitle"),"aria-label":w(s?"audioPlayer.lufs.activeAriaLabel":"audioPlayer.lufs.inactiveAriaLabel"),"aria-pressed":s,children:[s?v.jsx(EV,{className:"h-3 w-3"}):v.jsx(wV,{className:"h-3 w-3"}),v.jsx("span",{className:"hidden sm:inline",children:w(s?"audioPlayer.lufs.label":"audioPlayer.lufs.inactiveLabel")})]})]})]}),v.jsxs("div",{className:"flex flex-col justify-between gap-2",children:[v.jsxs("div",{className:"flex flex-col gap-2",children:[v.jsxs("div",{role:"button",tabIndex:Qe?-1:0,"aria-pressed":G==="B","aria-label":p?w("audioPlayer.listenLabel",{label:R}):w("audioPlayer.listenMaster"),onClick:()=>sl("B"),onKeyDown:ee=>{ee.key==="Enter"&&(ee.preventDefault(),sl("B"))},className:`outline-none ${Qe?"cursor-default":"cursor-pointer"}`,children:[v.jsxs("div",{style:{borderRadius:"28px / 18px"},className:`relative px-2 py-1 backdrop-blur-sm transition-all duration-200 ${G==="B"?"bg-white/[0.05] opacity-100 ring-1 ring-lexpi-accent/40":"bg-white/[0.02] opacity-60 ring-1 ring-transparent"}`,children:[s&&Yu&&!p&&v.jsxs(v.Fragment,{children:[v.jsx("div",{className:"pointer-events-none absolute inset-x-2 top-1 rounded-t-md bg-lexpi-warning/10 ring-1 ring-inset ring-lexpi-warning/20 transition-[height] duration-500 ease-out",style:{height:`${(1-Ko)*32}px`},"aria-hidden":"true"}),v.jsx("div",{className:"pointer-events-none absolute inset-x-2 bottom-1 rounded-b-md bg-lexpi-warning/10 ring-1 ring-inset ring-lexpi-warning/20 transition-[height] duration-500 ease-out",style:{height:`${(1-Ko)*32}px`},"aria-hidden":"true"}),v.jsxs("div",{className:"pointer-events-none absolute right-2 top-1 flex items-center gap-1 rounded-bl-md rounded-tr-md bg-lexpi-warning/20 px-1.5 py-0.5 font-mono text-[10px] font-semibold text-lexpi-warning","aria-hidden":"true",children:[v.jsx("span",{"aria-hidden":"true",children:"â"}),v.jsxs("span",{children:["â",_p," dB"]})]})]}),v.jsx("div",{ref:I,className:"origin-center transition-transform duration-500 ease-out",style:{transform:s?`scaleY(${Ko})`:"scaleY(1)"}})]}),v.jsxs("div",{className:"mt-1 flex items-center gap-2",children:[v.jsx("span",{className:`text-xs font-medium transition-colors duration-200 ${G==="B"?"text-lexpi-accent":"text-lexpi-text-dim"}`,children:R}),G==="B"&&ie&&v.jsx("span",{className:"h-1.5 w-1.5 animate-pulse rounded-full bg-lexpi-accent","aria-hidden":"true"})]})]}),ur&&v.jsx("div",{ref:j,className:"ab-scrollbar mx-2 overflow-x-auto overflow-y-hidden",style:{height:8},children:v.jsx("div",{style:{width:je,height:1}})})]}),v.jsxs("div",{className:"flex items-center justify-between gap-2 pt-1",children:[v.jsxs("div",{className:"group/vol flex items-center gap-1",children:[v.jsx("button",{onClick:()=>ln(ee=>!ee),className:"rounded-full p-1.5 text-lexpi-text-muted transition-colors hover:bg-white/[0.06] hover:text-lexpi-text",title:w(vn?"audioPlayer.unmute":"audioPlayer.mute"),children:vn||qe===0?v.jsx(BV,{className:"h-3.5 w-3.5"}):qe<.5?v.jsx(UV,{className:"h-3.5 w-3.5"}):v.jsx(zV,{className:"h-3.5 w-3.5"})}
419),v.jsx("input",{type:"range",min:0,max:1,step:.01,value:vn?0:qe,onChange:ee=>{const pe=parseFloat(ee.target.value);yt(pe),pe>0&&vn&&ln(!1)},className:"hidden h-1 w-16 cursor-pointer appearance-none rounded-full bg-white/10 opacity-60 transition-opacity group-hover/vol:opacity-100 sm:block [&::-webkit-slider-thumb]:h-3 [&::-webkit-slider-thumb]:w-3 [&::-webkit-slider-thumb]:appearance-none [&::-webkit-slider-thumb]:rounded-full [&::-webkit-slider-thumb]:bg-white"})]}),v.jsxs("div",{style:{borderRadius:"50% / 80%"},className:"flex items-center gap-0.5 border border-white/[0.06] px-1",children:[v.jsx("button",{onClick:Ju,disabled:!D||!ur||Qe,className:"rounded-full p-1.5 text-lexpi-text-muted transition-colors hover:bg-white/[0.06] hover:text-lexpi-text disabled:opacity-30",title:w("audioPlayer.zoomOut"),children:v.jsx(WV,{className:"h-3.5 w-3.5"})}),v.jsxs("button",{onClick:ur&&!Qe?Qu:void 0,disabled:!D||Qe,className:`min-w-[3rem] rounded-full px-1.5 py-1 text-center font-mono text-[10px] transition-colors ${ur&&!Qe?"cursor-pointer text-lexpi-text-muted hover:bg-white/[0.06] hover:text-lexpi-text":"cursor-default text-lexpi-text-dim"}`,title:ur?w("audioPlayer.zoomReset"):"",children:[bp,"%"]}),v.jsx("button",{onClick:gp,disabled:!D||Qe,className:"rounded-full p-1.5 text-lexpi-text-muted transition-colors hover:bg-white/[0.06] hover:text-lexpi-text disabled:opacity-30",title:w("audioPlayer.zoomIn"),children:v.jsx(qV,{className:"h-3.5 w-3.5"})}),ur&&v.jsx("button",{onClick:Qu,className:"rounded-full p-1.5 text-lexpi-text-muted transition-colors hover:bg-white/[0.06] hover:text-lexpi-text",title:w("audioPlayer.zoomFit"),children:v.jsx(AV,{className:"h-3 w-3"})})]})]})]})]}),!Ds&&v.jsxs("div",{className:"pointer-events-none absolute inset-0 flex items-center justify-center","aria-live":"polite","aria-busy":"true",children:[v.jsx(Lu,{className:"h-5 w-5 animate-spin text-lexpi-text-muted"}),v.jsx("span",{className:"sr-only",children:w("audioPlayer.loading")})]}),Pi&&v.jsx("div",{role:"dialog","aria-modal":"true","aria-labelledby":"protection-modal-title",className:"fixed inset-0 z-50 flex items-center justify-center bg-black/60 px-4 backdrop-blur-sm",children:v.jsxs("div",{className:"max-w-md rounded-2xl border border-white/10 bg-lexpi-bg p-6 shadow-2xl",children:[v.jsxs("div",{className:"mb-3 flex items-center gap-2 text-lexpi-accent",children:[v.jsx(Xf,{className:"h-5 w-5"}),v.jsx("h3",{id:"protection-modal-title",className:"text-sm font-semibold text-lexpi-text",children:w("audioPlayer.protectionModal.title")})]}),v.jsx("p",{className:"mb-5 text-xs leading-relaxed text-lexpi-text-muted",children:w("audioPlayer.protectionModal.body")}),v.jsx("button",{onClick:Xu,autoFocus:!0,className:"glass-cristal-blue w-full rounded-xl px-4 py-2.5 text-sm font-medium text-white transition-transform hover:scale-[1.02]",children:w("audioPlayer.protectionModal.resume")})]})})]})}function WT(t){const e=Math.floor(t/60),n=Math.floor(t%60);return`${e}:${n.toString().padStart(2,"0")}`}const Ro=(t,e)=>`linear-gradient(to right, transparent 0%, ${re(t,e)} 50%, transparent 100%)`,o_=(t,e)=>`radial-gradient(ellipse at 50% 100%, ${re(t,e)} 0%, transparent 60%)`,MJ={chromatic:"var(--spectrum-edge-rest)",success:Ro(Sr.success,.55),error:Ro(Sr.error,.55),warning:Ro(Sr.warning,.55),neutral:Ro(Ke.white,.3),none:"transparent"},NJ={chromatic:"var(--spectrum-edge-active)",success:Ro(Sr.success,.85),error:Ro(Sr.error,.85),warning:Ro(Sr.warning,.85),neutral:Ro(Ke.white,.5),none:"transparent"},OJ={success:o_(Sr.success,.1),error:o_(Sr.error,.1),warning:o_(Sr.warning,.1)},ag=k.forwardRef(function({interactive:e=!1,edgeVariant:n="chromatic",edgeActive:r=!1,statusGlow:i="none",className:s="",style:l,children:u,...c}
419,p){const h=r?NJ[n]:MJ[n];return v.jsxs("div",{ref:p,className:`group relative overflow-hidden rounded-2xl border border-white/[0.08] bg-white/[0.04] backdrop-blur-md transition-all duration-300 ${e?"cursor-pointer hover:-translate-y-0.5 hover:border-white/[0.16] hover:bg-white/[0.055]":""} ${s}`,style:{boxShadow:`inset 0 1px 0 ${re(Ke.white,.08)}, 0 1px 2px ${re(Ke.black,.25)}`,...l},...c,children:[i!=="none"&&v.jsx("div",{className:"pointer-events-none absolute inset-x-0 bottom-0 h-1/2 transition-opacity duration-300",style:{background:OJ[i]},"aria-hidden":!0}),v.jsx("div",{className:`pointer-events-none absolute inset-0 transition-opacity duration-300 ${e?"opacity-25 group-hover:opacity-60":r?"opacity-100":"opacity-25"}`,style:{background:`radial-gradient(circle at 50% 50%, ${re(Ln.glow,.1)} 0%, transparent 60%)`},"aria-hidden":!0}),n!=="none"&&v.jsx("div",{className:"pointer-events-none absolute bottom-0 left-0 right-0 h-px transition-all duration-300",style:{background:h},"aria-hidden":!0}),v.jsx("div",{className:"relative z-10",children:u})]})}),DJ=!1,jJ=[{id:"track-4",labelKey:"landingExamples.carousel.ownTracks.track1",originalUrl:"/landing-demos/track-4-original.flac",masterUrl:"/landing-demos/track-4-master.flac",originalLufs:-16.74,masterLufs:-11.93},{id:"track-2",labelKey:"landingExamples.carousel.ownTracks.track2",originalUrl:"/landing-demos/track-2-original.flac",masterUrl:"/landing-demos/track-2-master.flac",originalLufs:-19.28,masterLufs:-11.18},{id:"track-3",labelKey:"landingExamples.carousel.ownTracks.track3",originalUrl:"/landing-demos/track-3-original.flac",masterUrl:"/landing-demos/track-3-master.flac",originalLufs:-17.05,masterLufs:-12.74},{id:"track-1",labelKey:"landingExamples.carousel.ownTracks.track4",originalUrl:"/landing-demos/track-1-original.flac",masterUrl:"/landing-demos/track-1-master.flac",originalLufs:-15.78,masterLufs:-11.18}],Vc=jJ,FJ=async()=>null;function UJ(){return v.jsx(zJ,{})}function zJ(){const{t}=Tt(),[e,n]=k.useState(0),[r,i]=k.useState(!1),[s,l]=k.useState(!1),[u,c]=k.useState(!1);k.useCallback(()=>{l(!0),i(!1),c(!0)},[]);const p=k.useCallback(()=>{c(!1)},[]),h=Vc[e],m=t(h.labelKey),g=k.useCallback(()=>{n(S=>(S-1+Vc.length)%Vc.length)},[]),_=k.useCallback(()=>{n(S=>(S+1)%Vc.length)},[]),x=DJ;return v.jsxs("div",{className:"w-full max-w-3xl",children:[v.jsxs("div",{className:"flex items-center gap-3 sm:gap-4",children:[v.jsx("button",{type:"button",onClick:g,"aria-label":t("landingExamples.carousel.ariaPrevTrack"),className:"hidden h-12 w-12 shrink-0 items-center justify-center rounded-full border border-white/[0.08] bg-white/[0.04] text-lexpi-text-muted transition-all duration-200 hover:scale-105 hover:bg-white/[0.08] hover:text-lexpi-text sm:flex",children:v.jsx(Kf,{className:"h-5 w-5"})}),v.jsx(ag,{className:"flex-1 px-4 py-3 sm:px-6 sm:py-4",style:{borderRadius:"72px / 36px",boxShadow:"inset 0 1px 0 rgb(var(--c-white) / 0.08), 0 6px 16px -4px rgb(var(--c-black) / 0.5), 0 28px 56px -12px rgb(var(--c-black) / 0.45)"},children:v.jsxs("div",{className:"grid grid-rows-[1fr_auto_1fr] gap-2",style:{minHeight:"344px"},children:[v.jsxs("div",{className:"flex items-center self-start justify-end",children:[!1,v.jsx("span",{className:"text-base font-semibold text-lexpi-text",children:m})]}),v.jsxs("div",{className:"relative",children:[v.jsx(U0,{masterStreamUrl:h.masterUrl,originalStreamUrl:h.originalUrl,originalLufs:h.originalLufs,masterLufs:h.masterLufs,lufsMode:r,onLufsModeChange:i,getToken:FJ,disableAntiScraping:!0,autoTransitionDemo:u,onAutoTransitionEnd:p,initialTrack:"A"},h.id),x]})]})}),v.jsx("button",{type:"button",onClick:_,"aria-label":t("landingExamples.carousel.ariaNextTrack"),className:"hidden h-12 w-12 shrink-0 items-center justify-center rounded-full border border-white/[0.08] bg-white/[0.04] text-lexpi-text-muted transition-all duration-200 hover:scale-105 hover:bg-white/[0.08] hover:text-lexpi-text sm:flex",children:v.jsx(Jf,{className:"h-5 w-5"})})]}),v.jsxs("div",{className:"mt-6 flex items-center justify-center gap-3",children:[v.jsx("button",{type:"button",onClick:g,"aria-label":t("landingExamples.carousel.ariaPrevTrack"),className:"flex h-9 w-9 shrink-0 items-center justify-center rounded-full border border-white/[0.08] bg-white/[0.04] text-lexpi-text-muted transition-all duration-200 hover:bg-white/[0.08] hover:text-lexpi-text sm:hidden",children:v.jsx(Kf,{className:"h-4 w-4"})}),v.jsx("div",{className:"flex items-center justify-center gap-2",children:Vc.map((S,w)=>v.jsx("button",{type:"button",onClick:()=>n(w),"aria-label":t("landingExamples.carousel.ariaGoTo",{label:t(S.labelKey)}),"aria-current":w===e?"true":void 0,className:`h-2 rounded-full transition-all duration-200 ${w===e?"w-6":"w-2 border border-white/10 bg-white/[0.05] hover:bg-white/[0.1]"}`,style:w===e?{background:"rgb(var(--c-accent))",boxShadow:bL}:void 0},S.id))}),v.jsx("button",{type:"button",onClick:_,"aria-label":t("landingExamples.carousel.ariaNextTrack"),className:"flex h-9 w-9 shrink-0 items-center justify-center rounded-full border border-white/[0.08] bg-white/[0.04] text-lexpi-text-muted transition-all duration-200 hover:bg-white/[0.08] hover:text-lexpi-text sm:hidden",children:v.jsx(Jf,{className:"h-4 w-4"})})]})]})}const BJ="landr",$J={aspectRatio:"400 / 190",background:"var(--logo-fall)",WebkitMaskImage:"url(/logo-lexpi-white.png)",maskImage:"url(/logo-lexpi-white.png)",WebkitMaskSize:"contain",maskSize:"contain",WebkitMaskRepeat:"no-repeat",maskRepeat:"no-repeat",WebkitMaskPosition:"center",maskPosition:"center"};function HT(){if(typeof crypto<"u"&&"randomUUID"in crypto)return crypto.randomUUID();const t="0123456789abcdef";let e="";for(let n=0;n<36;n++)n===8||n===13||n===18||n===23?e+="-":n===14?e+="4":n===19?e+=t[8+Math.floor(Math.random()*4)]:e+=t[Math.floor(Math.random()*16)];return e}const yo=[{id:"track-4",labelKey:"landingBlind.tracks.track1",versions:{lexpi:{url:"/landing-demos/blind/track-4-lexpi.flac"},other:{url:"/landing-demos/blind/track-4-other.flac"}}},{id:"track-2",labelKey:"landingBlind.tracks.track2",versions:{lexpi:{url:"/landing-demos/blind/track-2-lexpi.flac"},other:{url:"/landing-demos/blind/track-2-other.flac"}}},{id:"track-3",labelKey:"landingBlind.tracks.track3",versions:{lexpi:{url:"/landing-demos/blind/track-3-lexpi.flac"},other:{url:"/landing-demos/blind/track-3-other.flac"}}},{id:"track-1",labelKey:"landingBlind.tracks.track4",versions:{lexpi:{url:"/landing-demos/blind/track-1-lexpi.flac"},other:{url:"/landing-demos/blind/track-1-other.flac"}}},{id:"track-5",labelKey:"landingBlind.tracks.track5",versions:{lexpi:{url:"/landing-demos/blind/track-5-lexpi.flac"},other:{url:"/landing-demos/blind/track-5-other.flac"}}}],ql=["A","B"];function VT(){return Math.random()<.5?{A:"lexpi",B:"other"}:{A:"other",B:"lexpi"}}function GT(t){if(!Number.isFinite(t)||t<0)return"0:00";const e=Math.floor(t/60),n=Math.floor(t%60);return`${e}:${n.toString().padStart(2,"0")}`}
419function qJ(){return v.jsx(GJ,{})}const Sa=[Yl[0],Yl[2],Yl[3],Yl[4],Yl[5]];function BM(t=.32){const e=r=>t*(r===0||r===5?1:.9);return"linear-gradient(to right, "+[0,18,36,54,72,100].map((r,i)=>`${re(Yl[i],e(i))} ${r}%`).join(", ")+")"}function WJ(t,e=.6){return`linear-gradient(to right, transparent 0%, ${re(t,e)} 50%, transparent 100%)`}const HJ=`inset 0 1px 0 ${re(Ke.white,.08)}, 0 1px 2px ${re(Ke.black,.25)}`,$M=`inset 0 1px 0 ${re(Ke.white,.08)}, 0 4px 32px ${re(Ke.black,.35)}, 0 1px 2px ${re(Ke.black,.4)}`;function VJ({onStart:t}){const{t:e}=Tt();return v.jsxs("div",{className:"group relative w-full max-w-xl overflow-hidden rounded-2xl border border-white/[0.08] bg-white/[0.04] backdrop-blur-md transition-all duration-300 hover:border-white/[0.16] hover:bg-white/[0.055]",style:{boxShadow:HJ},children:[v.jsx("div",{className:"pointer-events-none absolute inset-0 opacity-25 transition-opacity duration-300 group-hover:opacity-60",style:{background:`radial-gradient(circle at 50% 45%, ${re(Ln.glow,.12)} 0%, transparent 65%)`},"aria-hidden":!0}),v.jsx("div",{className:"pointer-events-none absolute bottom-0 left-0 right-0 h-px transition-opacity duration-300",style:{background:BM(.45)},"aria-hidden":!0}),v.jsxs("div",{className:"relative z-10 flex flex-col items-center px-8 py-12 text-center sm:px-12 sm:py-14",children:[v.jsx("p",{className:"text-[11px] font-bold uppercase tracking-[0.2em] text-lexpi-text-dim",children:e("landingBlind.idle.preTitle")}),v.jsx("h2",{className:"hero-tagline-text mt-3 text-3xl font-bold tracking-tight sm:text-4xl",children:e("landingBlind.idle.title")}),v.jsx("p",{className:"mt-3 text-lexpi-text-muted",children:e("landingBlind.idle.subtitle")}),v.jsxs("div",{className:"relative mt-8",children:[v.jsx("div",{className:"pointer-events-none absolute inset-0 -z-10 scale-150 rounded-full opacity-50 blur-2xl transition-opacity duration-300 group-hover:opacity-90",style:{background:`radial-gradient(circle at 50% 50%, ${re(Ln.hover,.55)} 0%, transparent 65%)`},"aria-hidden":!0}),v.jsxs("button",{type:"button",onClick:t,className:"btn-primary inline-flex items-center gap-2 px-10 py-4 text-base",children:[v.jsx(Qf,{className:"h-4 w-4 fill-current",strokeWidth:0}),e("landingBlind.idle.play")]})]})]})]})}function GJ(){const{t}=Tt(),[e,n]=k.useState("idle"),[r,i]=k.useState(()=>VT()),[s,l]=k.useState(0),[u,c]=k.useState([]),[p,h]=k.useState(null),m=k.useRef(HT()),g=k.useRef(null),_=s>=yo.length,x=yo[s],S=()=>{p!==null&&(c(I=>[...I,p]),h(null),l(I=>I+1))},w=()=>{c([]),h(null),l(0),i(VT()),m.current=HT(),g.current=Date.now()},C=()=>{g.current=Date.now(),n("playing")};if(e==="idle")return v.jsx(VJ,{onStart:C});if(_)return v.jsx(JJ,{choices:u,sideToService:r,onRestart:w,clientSessionId:m.current,startedAtMs:g.current});const R=s===yo.length-1?t("landingBlind.roundPlayer.seeResult"):t("landingBlind.roundPlayer.nextRound",{label:t(yo[s+1].labelKey)});return v.jsx(YJ,{roundIndex:s,totalRounds:yo.length,round:x,sideToService:r,pendingChoice:p,onChoose:h,onConfirm:S,nextLabel:R},`${x.id}-${r.A}`)}function YJ({roundIndex:t,totalRounds:e,round:n,sideToService:r,pendingChoice:i,onChoose:s,onConfirm:l,nextLabel:u}){const{t:c}=Tt();k.useRef([null,null]),k.useRef([null,null]);const p=k.useRef([null,null]),[h,m]=k.useState(null),[g,_]=k.useState(0),[x,S]=k.useState(0),[w,C]=k.useState([!1,!1]),R=k.useRef(0);k.useEffect(()=>{{[0,1].forEach(L=>{const O=p.current[L];if(!O)return;const j=()=>C(B=>{if(B[L])return B;const q=[...B];return q[L]=!0,q});O.readyState>=1?j():O.addEventListener("loadedmetadata",j,{once:!0})});return}},[n.id,n.versions,r]),k.useEffect(()=>{if(h===null)return;const L=p.current[h];if(!L)return;const O=()=>{L.duration>0&&Number.isFinite(L.duration)&&_(L.duration)};O(),S(L.currentTime);const j=()=>S(L.currentTime),B=()=>O();return L.addEventListener("timeupdate",j),L.addEventListener("loadedmetadata",B),()=>{L.removeEventListener("timeupdate",j),L.removeEventListener("loadedmetadata",B)}},[h]);const I=L=>{const O=p.current[L];if(O){if(h===L){R.current=O.currentTime,O.pause(),m(null);return}if(h!==null){const j=p.current[h];j&&(R.current=j.currentTime,j.pause())}try{O.currentTime=R.current}catch{}m(L),O.play()}},P=()=>{h!==null&&I(h)},A=L=>{if(h===null)return;const O=p.current[h];if(!O||!O.duration||!Number.isFinite(O.duration))return;const j=L.currentTarget.getBoundingClientRect(),q=Math.max(0,Math.min(1,(L.clientX-j.left)/j.width))*O.duration;O.currentTime=q,R.current=q,S(q)},N=Sa[t]??Sa[0],T=w[0]&&w[1];return v.jsxs("div",{className:"relative w-full max-w-3xl overflow-hidden rounded-2xl border border-white/[0.08] bg-white/[0.04] px-5 py-6 backdrop-blur-md sm:px-7 sm:py-
4197",style:{boxShadow:$M},children:[v.jsx("div",{className:"pointer-events-none absolute inset-0",style:{background:`radial-gradient(ellipse at 50% 25%, ${re(Ln.glow,.07)} 0%, transparent 65%)`},"aria-hidden":!0}),v.jsx("div",{className:"pointer-events-none absolute bottom-0 left-0 right-0 h-px transition-all duration-500",style:{background:WJ(N,.7)},"aria-hidden":!0}),v.jsxs("div",{className:"flex items-center justify-between",children:[v.jsxs("span",{className:"text-[11px] font-bold uppercase tracking-[0.2em] text-lexpi-text-dim",children:[c("landingBlind.roundPlayer.roundLabel",{n:t+1})," ",v.jsx("span",{className:"opacity-60",children:c("landingBlind.roundPlayer.roundLabelTotal",{total:e})})]}),v.jsx("span",{className:"text-base font-semibold",style:{color:re(N,.95)},children:c(n.labelKey)})]}),v.jsx("div",{className:"mt-3 flex items-center gap-1.5",children:Array.from({length:e}).map((L,O)=>{const j=O<t,B=O===t,q=Sa[O]??Sa[Sa.length-1];return v.jsx("div",{className:"h-1 flex-1 rounded-full transition-all duration-500",style:{background:B?re(q,.85):j?re(q,.45):re(Ke.white,.08),boxShadow:B?`0 0 10px ${re(q,.45)}`:void 0}},O)})}),v.jsx("p",{className:"mx-auto mt-6 max-w-xl text-center text-sm text-lexpi-text-muted",children:c("landingBlind.roundPlayer.introP2")}),[0,1].map(L=>{const O=r[ql[L]],j=n.versions[O].url;return v.jsx("audio",{ref:B=>{p.current[L]=B},src:j,preload:"auto",loop:!0,className:"hidden"},L)}),v.jsxs("div",{style:{borderRadius:"28px / 18px"},className:"mt-5 border border-white/[0.08] bg-white/[0.025] p-3 backdrop-blur-sm",children:[v.jsx("div",{role:"img","aria-label":"Lexpi",className:"mx-auto mb-3 h-8 sm:h-9",style:$J}),v.jsxs("div",{className:"flex items-center justify-between",children:[v.jsxs("div",{className:"flex items-center gap-2",children:[v.jsx("button",{type:"button",onClick:P,disabled:h===null,"aria-label":h!==null?c("landingBlind.roundPlayer.ariaPauseMastering",{side:ql[h]}):c("landingBlind.roundPlayer.ariaNoMastering"),className:"flex h-8 w-8 items-center justify-center rounded-full border border-white/10 bg-white/[0.04] text-lexpi-text transition-colors hover:bg-white/[0.08] disabled:cursor-not-allowed disabled:opacity-40",children:h!==null?v.jsx(_b,{className:"h-3.5 w-3.5"}):v.jsx(Qf,{className:"h-3.5 w-3.5"})}),v.jsx("span",{className:"text-xs font-semibold text-lexpi-text",children:h!==null?c("landingBlind.roundPlayer.masteringSide",{side:ql[h]}):"â"})]}),v.jsxs("span",{className:"text-[11px] tabular-nums text-lexpi-text-dim",children:[GT(x)," / ",GT(g)]})]}),v.jsxs(v.Fragment,{children:[v.jsx("div",{onClick:T?A:void 0,role:h!==null?"slider":void 0,"aria-valuemin":0,"aria-valuemax":g||void 0,"aria-valuenow":h!==null?x:void 0,className:`mt-3 h-2 rounded-full bg-white/10 transition-opacity duration-300 ${T?"opacity-100":"opacity-40"} ${h!==null?"cursor-pointer":"cursor-default"}`,children:v.jsx("div",{className:"h-full rounded-full bg-lexpi-accent transition-[width] duration-100",style:{width:g>0?`${x/g*100}%`:"0%"}})}),T?h===null&&v.jsx("p",{className:"mt-2 text-center text-[11px] text-lexpi-text-dim",children:c("landingBlind.roundPlayer.invitationListen")}):v.jsxs("div",{className:"mt-2 flex items-center justify-center gap-2 text-[11px] text-lexpi-text-dim","aria-live":"polite","aria-busy":"true",children:[v.jsx(Lu,{className:"h-3 w-3 animate-spin"}),v.jsx("span",{children:c("landingBlind.roundPlayer.loadingBoth")})]})]})]}),v.jsx("div",{className:"mt-5 grid grid-cols-1 gap-3 sm:grid-cols-2",children:[0,1].map(L=>{const O=h===L;return v.jsxs("div",{className:`relative flex flex-col gap-3 rounded-xl border bg-white/[0.04] p-4 backdrop-blur-sm transition-all duration-300 ${O?"border-lexpi-accent/40":"border-white/[0.10] hover:border-white/[0.18]"}`,style:O?{boxShadow:`0 0 22px -6px ${re(Ln.hover,.45)}, inset 0 1px 0 ${re(Ke.white,.06)}`}:{boxShadow:`inset 0 1px 0 ${re(Ke.white,.04)}`},children:[v.jsx("span",{className:"text-sm font-semibold text-lexpi-text",children:c("landingBlind.roundPlayer.masteringSide",{side:ql[L]})}),v.jsx("button",{type:"button",onClick:()=>
419I(L),disabled:!T,"aria-label":T?O?c("landingBlind.roundPlayer.ariaPauseMastering",{side:ql[L]}):c("landingBlind.roundPlayer.ariaListenMastering",{side:ql[L]}):c("landingBlind.roundPlayer.ariaLoading"),className:`flex items-center justify-center gap-2 rounded-md border px-3 py-2 text-xs font-medium transition-colors disabled:cursor-not-allowed disabled:opacity-50 ${O?"border-lexpi-accent/30 bg-lexpi-accent/[0.12] text-lexpi-accent hover:bg-lexpi-accent/[0.18]":"border-white/10 bg-white/[0.03] text-lexpi-text hover:bg-white/[0.06]"}`,children:T?O?v.jsxs(v.Fragment,{children:[v.jsx(_b,{className:"h-3.5 w-3.5"}),c("landingBlind.roundPlayer.sideButton.pause")]}):v.jsxs(v.Fragment,{children:[v.jsx(Qf,{className:"h-3.5 w-3.5"}),c("landingBlind.roundPlayer.sideButton.play")]}):v.jsxs(v.Fragment,{children:[v.jsx(Lu,{className:"h-3.5 w-3.5 animate-spin"}),c("landingBlind.roundPlayer.sideButton.loading")]})})]},L)})}),v.jsxs("div",{className:"mt-6",children:[v.jsx("p",{className:"text-xs font-bold uppercase tracking-wider text-lexpi-text-dim",children:c("landingBlind.roundPlayer.verdictHeading")}),v.jsxs("div",{className:"mt-2 grid grid-cols-1 gap-2 sm:grid-cols-3",children:[v.jsx(a_,{label:c("landingBlind.roundPlayer.choices.preferA"),selected:i==="A",onClick:()=>s("A")}),v.jsx(a_,{label:c("landingBlind.roundPlayer.choices.noPreference"),selected:i==="tie",onClick:()=>s("tie")}),v.jsx(a_,{label:c("landingBlind.roundPlayer.choices.preferB"),selected:i==="B",onClick:()=>s("B")})]})]}),i!==null&&v.jsx("div",{className:"mt-6 flex flex-col items-center gap-2",children:v.jsxs("button",{type:"button",onClick:l,className:"btn-primary inline-flex px-6 py-3 text-sm",children:[u,v.jsx(dd,{className:"h-4 w-4"})]})})]})}function a_({label:t,selected:e,onClick:n}){return v.jsx("button",{type:"button",onClick:n,"aria-pressed":e,className:`rounded-xl border px-4 py-3 text-sm font-medium transition-all ${e?"border-lexpi-accent/50 bg-lexpi-accent/[0.12] text-lexpi-accent":"border-white/[0.10] bg-white/[0.03] text-lexpi-text hover:border-white/[0.18] hover:bg-white/[0.06]"}`,style:e?{boxShadow:`0 0 18px -6px ${re(Ln.hover,.45)}, inset 0 1px 0 ${re(Ke.white,.06)}`}:void 0,children:t})}const KJ={lexpi:ga.cyan,other:Sr.warning};function JJ({choices:t,sideToService:e,onRestart:n,clientSessionId:r,startedAtMs:i}){const{t:s}=Tt(),l=yo.length,u=k.useRef(!1);k.useEffect(()=>{if(u.current)return;u.current=!0;const w=e.A==="lexpi"?"A":"B",C=i!==null?Math.max(0,Date.now()-i):0;_G({client_session_id:r,lexpi_side:w,other_service:BJ,duration_ms:C,choices:t.map((R,I)=>({track_id:yo[I].id,round_index:I,choice:R}))}).catch(R=>{console.warn("[blind-test] submission failed",R)})},[t,e,r,i]);const c={lexpi:0,other:0};for(const w of t)w==="tie"?(c.lexpi+=.5,c.other+=.5):c[e[w]]+=1;const p=t.filter(w=>w==="tie").length,h=Math.abs(c.lexpi-c.other),m=h<1?"balanced":h<2?"slight":h<4?"emerging":"clear",g=s(`landingBlind.finalReveal.closingHeadline.${m}`),_=["lexpi","other"].sort((w,C)=>c[C]-c[w]),x=w=>Number.isInteger(w)?w.toString():w.toFixed(1),S=w=>s(`landingBlind.finalReveal.serviceLabel.${w}`);return v.jsxs("div",{className:"relative w-full max-w-3xl overflow-hidden rounded-2xl border border-white/[0.08] bg-white/[0.04] px-6 py-7 text-center backdrop-blur-md sm:px-8 sm:py-8",style:{boxShadow:$M},children:[v.jsx("div",{className:"pointer-events-none absolute inset-0",style:{background:`radial-gradient(ellipse at 50% 20%, ${re(Ln.glow,.1)} 0%, transparent 65%)`},"aria-hidden":!0}),v.jsx("div",{className:"pointer-events-none absolute bottom-0 left-0 right-0 h-px",style:{background:BM(.6)},"aria-hidden":!0}),v.jsx("div",{className:"relative mx-auto flex h-12 w-12 items-center justify-center rounded-2xl border border-white/[0.10] bg-white/[0.05] backdrop-blur-sm",style:{boxShadow:`inset 0 1px 0 ${re(Ke.white,.08)}, 0 0 24px -6px ${re(Ln.glow,.35)}`},children:v.jsx(IV,{className:"h-6 w-6 text-lexpi-text-muted"})}),v.jsx("p",{className:"mt-5 text-[11px] font-bold uppercase tracking-[0.2em] text-lexpi-text-dim",children:s("landingBlind.finalReveal.preTitle",{n:l})}
419),v.jsx("div",{className:"mx-auto mt-5 max-w-md space-y-2 text-left",children:_.map(w=>{const C=KJ[w];return v.jsxs("div",{className:"relative flex items-center justify-between gap-3 overflow-hidden rounded-xl border border-white/[0.10] bg-white/[0.03] px-4 py-3 backdrop-blur-sm",style:{boxShadow:`inset 0 1px 0 ${re(Ke.white,.04)}`},children:[v.jsx("div",{className:"pointer-events-none absolute inset-y-0 left-0 w-1",style:{background:`linear-gradient(to bottom, transparent 0%, ${re(C,.8)} 50%, transparent 100%)`},"aria-hidden":!0}),v.jsx("span",{className:"relative text-sm font-semibold text-lexpi-text",children:S(w)}),v.jsxs("span",{className:"relative text-base font-bold tabular-nums text-lexpi-text",children:[x(c[w]),v.jsx("span",{className:"ml-1 text-xs font-normal text-lexpi-text-dim",children:s("landingBlind.finalReveal.ptsSuffix")})]})]},w)})}),v.jsxs("p",{className:"mt-3 text-[11px] text-lexpi-text-dim",children:[s("landingBlind.finalReveal.footerScores",{aLabel:S(e.A),bLabel:S(e.B)}),p>0?s("landingBlind.finalReveal.tieCount",{count:p}):""]}),v.jsx("div",{className:"mt-6 space-y-2 text-left",children:t.map((w,C)=>{const R=yo[C],I=Sa[C]??Sa[0],P=w==="tie"?s("landingBlind.roundPlayer.choices.noPreference"):S(e[w]);return v.jsxs("div",{className:"relative overflow-hidden rounded-lg border border-white/[0.08] bg-white/[0.025] px-3 py-2 backdrop-blur-sm",children:[v.jsx("div",{className:"pointer-events-none absolute inset-y-0 left-0 w-0.5",style:{background:`linear-gradient(to bottom, transparent 0%, ${re(I,.55)} 50%, transparent 100%)`},"aria-hidden":!0}),v.jsxs("div",{className:"relative flex flex-wrap items-center justify-between gap-2",children:[v.jsx("span",{className:"text-xs font-semibold",style:{color:re(I,.92)},children:s(R.labelKey)}),v.jsxs("span",{className:"inline-flex items-center gap-1 rounded-full bg-white/[0.05] px-2 py-0.5 text-[11px] text-lexpi-text-muted",children:[v.jsx("span",{className:"font-bold",children:s("landingBlind.finalReveal.roundChoiceLabel")}),v.jsx("span",{className:"opacity-80",children:P})]})]})]},R.id)})}),v.jsxs("div",{className:"relative mt-7",children:[v.jsx("h3",{className:"text-lg font-semibold text-lexpi-text",children:g}),v.jsx("p",{className:"mt-2 text-sm text-lexpi-text-muted",children:s("landingBlind.finalReveal.closingSubtext")}),v.jsxs("div",{className:"mt-5 flex flex-wrap items-center justify-center gap-3",children:[v.jsxs("div",{className:"relative",children:[v.jsx("div",{className:"pointer-events-none absolute inset-0 -z-10 scale-150 rounded-full opacity-50 blur-2xl",style:{background:`radial-gradient(circle at 50% 50%, ${re(Ln.hover,.45)} 0%, transparent 65%)`},"aria-hidden":!0}),v.jsxs(ut,{to:"/auth/sign-up",className:"btn-primary inline-flex px-6 py-3 text-sm",children:[s("landingBlind.finalReveal.ctaTryMix"),v.jsx(dd,{className:"h-4 w-4"})]})]}),v.jsxs("button",{type:"button",onClick:n,className:"inline-flex items-center gap-1.5 text-xs font-medium text-lexpi-text-muted underline underline-offset-4 transition-colors hover:text-lexpi-text",children:[v.jsx(MV,{className:"h-3 w-3"}),s("landingBlind.finalReveal.restart")]})]})]})]})}const QJ=-16,XJ=-10,ZJ=async()=>null;function eQ(){const{data:t}=og(),e=!!(t!=null&&t.free_hd_license_enabled),{data:n}=mI({queryKey:["landing-showcase"],queryFn:yG,enabled:e,staleTime:5*6e4}),[r,i]=k.useState(0),[s,l]=k.useState(!1);if(!e||!n||n.length===0)return null;const u=n[r%n.length],c=()=>i(h=>(h-1+n.length)%n.length),p=()=>i(h=>(h+1)%n.length);return v.jsxs("div",{className:"w-full max-w-3xl",children:[v.jsxs("div",{className:"flex items-center gap-3 sm:gap-4",children:[n.length>1&&v.jsx("button",{type:"button",onClick:c,"aria-label":"Précédent",className:"hidden h-12 w-12 shrink-0 items-center justify-center rounded-full border border-white/[0.08] bg-white/[0.04] text-lexpi-text-muted transition-all duration-200 hover:scale-105 hover:bg-white/[0.08] hover:text-lexpi-text sm:flex",children:v.jsx(Kf,{className:"h-5 w-5"})}),v.jsx(ag,{className:"flex-1 px-4 py-3 sm:px-6 sm:py-4",style:{borderRadius:"72px / 36px",boxShadow:"inset 0 1px 0 rgb(var(--c-white) / 0.08), 0 6px 16px -4px rgb(var(--c-black) / 0.5), 0 28px 56px -12px rgb(var(--c-black) / 0.45)"},children:v.jsxs("div",{className:"grid grid-rows-[1fr_auto_1fr] gap-2",style:{minHeight:"344px"},children:[v.jsxs("div",{className:"flex flex-wrap items-baseline justify-between gap-2 self
419-start",children:[v.jsx("span",{className:"text-base font-semibold text-lexpi-text",children:u.artist_name}),v.jsxs("a",{href:u.profile_url,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-1 text-xs text-lexpi-accent hover:opacity-80",children:[v.jsx(kV,{className:"h-3 w-3"}),"Profil artiste"]})]}),v.jsx(U0,{masterStreamUrl:u.after_url,originalStreamUrl:u.before_url,originalLufs:QJ,masterLufs:XJ,lufsMode:s,onLufsModeChange:l,getToken:ZJ,disableAntiScraping:!0,initialTrack:"A"},u.id),v.jsx("p",{className:"self-end text-center text-xs text-lexpi-text-dim",children:"Extrait de 60 secondes diffusé avec l'aimable autorisation de l'artiste."})]})}),n.length>1&&v.jsx("button",{type:"button",onClick:p,"aria-label":"Suivant",className:"hidden h-12 w-12 shrink-0 items-center justify-center rounded-full border border-white/[0.08] bg-white/[0.04] text-lexpi-text-muted transition-all duration-200 hover:scale-105 hover:bg-white/[0.08] hover:text-lexpi-text sm:flex",children:v.jsx(Jf,{className:"h-5 w-5"})})]}),n.length>1&&v.jsxs("div",{className:"mt-6 flex items-center justify-center gap-3",children:[v.jsx("button",{type:"button",onClick:c,"aria-label":"Précédent",className:"flex h-9 w-9 shrink-0 items-center justify-center rounded-full border border-white/[0.08] bg-white/[0.04] text-lexpi-text-muted transition-all duration-200 hover:bg-white/[0.08] hover:text-lexpi-text sm:hidden",children:v.jsx(Kf,{className:"h-4 w-4"})}),v.jsx("div",{className:"flex items-center justify-center gap-2",children:n.map((h,m)=>v.jsx("button",{type:"button",onClick:()=>i(m),"aria-label":`Aller à ${h.artist_name}`,"aria-current":m===r?"true":void 0,className:`h-2 rounded-full transition-all duration-200 ${m===r?"w-6":"w-2 border border-white/10 bg-white/[0.05] hover:bg-white/[0.1]"}`,style:m===r?{background:"rgb(var(--c-accent))",boxShadow:bL}:void 0},h.id))}),v.jsx("button",{type:"button",onClick:p,"aria-label":"Suivant",className:"flex h-9 w-9 shrink-0 items-center justify-center rounded-full border border-white/[0.08] bg-white/[0.04] text-lexpi-text-muted transition-all duration-200 hover:bg-white/[0.08] hover:text-lexpi-text sm:hidden",children:v.jsx(Jf,{className:"h-4 w-4"})})]})]})}function YT({inputId:t,dragOver:e,setDragOver:n,validation:r,validating:i,selectedFile:s,tokenCost:l,handleFile:u,multiple:c=!1,onFiles:p,resetDropZone:h,disabled:m=!1,validLabel:g,isChromecoreMode:_=!1}){const{t:x}=Tt(),S=g===void 0?x("canonicalDropZone.freeLabel"):g,w=k.useCallback(A=>{if(A.preventDefault(),n(!1),m)return;const N=Array.from(A.dataTransfer.files);N.length!==0&&(c&&p?p(N):u(N[0]))},[u,p,c,n,m]),C=k.useCallback(A=>{const N=Array.from(A.target.files??[]);N.length>0&&(c&&p?p(N):u(N[0])),A.target.value=""},[u,p,c]),R=!m&&!(r!=null&&r.valid)&&!i,I=r!=null&&r.valid?"success":r&&!r.valid?"error":i?"neutral":"chromatic",P=r!=null&&r.valid?"success":r&&!r.valid?"error":"none";return v.jsx(ag,{"data-chromecore-dropzone":_?"true":void 0,interactive:R,edgeVariant:I,edgeActive:e,statusGlow:P,className:`z-10 w-full max-w-xl will-change-transform ${e?"scale-[1.01]":""} ${m?"pointer-events-none opacity-50":""}`,onDragOver:A=>{A.preventDefault(),m||n(!0)},onDragLeave:()=>n(!1),onDrop:w,onClick:()=>{var A;R&&((A=document.getElementById(t))==null||A.click())},children:v.jsxs("div",{className:"px-8 py-12 sm:px-12 sm:py-14",children:[!r&&!i&&v.jsxs("div",{className:"flex flex-col items-center text-center",children:[v.jsx(dL,{className:"h-10 w-10 text-lexpi-text",strokeWidth:1.25}),v.jsx("p",{className:"mt-6 text-lg font-semibold tracking-tight",children:x("canonicalDropZone.invitationTitle")}),v.jsx("p",{className:"mt-2 text-sm text-lexpi-text-muted",children:x("canonicalDropZone.invitationFormat")})]}),i&&v.jsxs("div",{className:"flex flex-col items-center text-center",children:[v.jsx("div",{className:"h-10 w-10 animate-spin rounded-full border-[1.5px] border-lexpi-accent/25 border-t-lexpi-accent"}),v.jsx("p",{className:"mt-5 text-sm text-lexpi-text-muted",children:x("canonicalDropZone.validating")})]}),(r==null?void 0:r.valid)&&r.info&&s&&v.jsxs("div",{className:"flex flex-col items-center text-center",children:[v.jsx(vV,{className:"h-9 w-9 text-lexpi-success",strokeWidth:1.5}),v.jsx("p",{className:"mt-5 text-base font-semibold text-lexpi-success",children:x("canonicalDropZone.valid",{count:l})}),v.jsx("p",{className:"mt-1 text-sm text-lexpi-text-muted",children:s.name}),v.jsxs("p",{className:"mt-0.5 text-xs text-lexpi-text-dim",children:[r.info.format.toUpperCase()," ",r.info.bitDepth,"-bit · ",r.info.sampleRate/1e3," kHz ·"," ",r.info.channels===2?x("canonicalDropZone.fileMetaStereo"):x("canonicalDropZone.fileMetaMono")," ","· ",tQ(r.info.durationSeconds)]}),S&&v.jsx("p",{className:"mt-3 text-sm text-lexpi-accent",children:S}),v.jsxs("button",{onClick:A=>{A.stopPropagation(),h()},className:"mt-3 inline-flex items-center gap-1.5 text-xs text-lexpi-text-dim transition-colors hover:text-lexpi-text-muted",children:[v.jsx(bb,{className:"h-3 w-3"}),x("canonicalDropZone.changeFile")]})]}),r&&!r.valid&&v.jsxs("div",{className:"flex flex-col items-center text-center",children:[v.jsx(CV,{className:"h-9 w-9 text-lexpi-error",strokeWidth:1.5}),v.jsx("div",{className:"mt-5 space-y-2",children:r.errors.map((A,N)=>v.jsxs("div",{children:[v.jsx("p",{className:"text-sm text-lexpi-error",children:x(`audioValidation.${A.code}.message`,A.params)}),v.jsx("p",{className:"mt-0.5 text-xs text-lexpi-text-dim",children:x(`audioValidation.${A.code}.action`)})]},N))}),v.jsxs("button",{onClick:A=>{A.stopPropagation(),h(),setTimeout(()=>{var N;(N=document.getElementById(t))==null||N.click()},0)},className:"mt-4 inline-flex items-center gap-1.5 text-sm text-lexpi-text-dim transition-colors hover:text-lexpi-text-muted",children:[v.jsx(bb,{className:"h-3.5 w-3.5"}),x("canonicalDropZone.tryAnother")]})]}),v.jsx("input",{id:t,type:"file",accept:".wav,.aiff,.aif",multiple:c,className:"hidden",onChange:C,disabled:m})]})})}function tQ(t){const e=Math.floor(t/60),n=Math.floor(t%60);return`${e}:${n.toString().padStart(2,"0")}`}function l_({packId:t,tokens:e,popular:n=!1,isSignedIn:r,loadingPackId:i,onBuy:s}){const{t:l}=Tt(),u=i===t,c=`/tokens?pack=${encodeURIComponent(t)}&autoCheckout=1`,p=l(`landingPage.pricing.cards.${t}.price`),h=l(`landingPage.pricing.cards.${t}.perToken`),m=l(`landingPage.pricing.cards.${t}.savings`,{defaultValue:""});return v.jsxs("div",{className:"relative",children:[n&&v.jsx("span",{className:"absolute -top-3 left-1/2 z-20 -translate-x-1/2 roun
419ded-full px-4 py-1 text-xs font-bold text-white",style:{background:`linear-gradient(135deg, ${yf(Ln.light)}, ${yf(Ln.base)}, ${yf(Ln.dark)})`,boxShadow:`0 2px 10px ${re(Ln.base,.4)}`},children:l("landingPage.pricing.popular")}),v.jsxs(ag,{interactive:!0,className:`p-4 sm:p-6 ${n?"border-lexpi-accent/40 ring-1 ring-lexpi-accent/20":""}`,style:n?{boxShadow:`inset 0 1px 0 ${re(Ke.white,.08)}, 0 8px 40px ${re(Ln.base,.15)}, 0 2px 12px ${re(Ke.black,.2)}`}:void 0,children:[v.jsxs("div",{className:"text-4xl font-extrabold",children:[e,v.jsx("span",{className:"ml-1 text-lg font-normal text-lexpi-text-muted",children:l("landingPage.pricing.tokenLabel",{count:e})})]}),v.jsx("div",{className:"mt-4 text-2xl font-bold",children:p}),v.jsx("div",{className:"mt-1 text-sm text-lexpi-text-muted",children:l("landingPage.pricing.perTokenLabel",{amount:h})}),v.jsx("div",{className:"mt-2 flex h-7 items-center justify-center",children:m&&v.jsx("span",{className:"bg-emerald-400/12 inline-flex items-center rounded-full border border-emerald-300/40 px-3 py-1 text-xs font-semibold text-emerald-200",children:m})}),v.jsx(mo,{feature:"auth",children:r?v.jsx("button",{type:"button",onClick:()=>s(t),disabled:u,className:"btn-primary mt-6 w-full",children:u?v.jsx(Lu,{className:"h-4 w-4 animate-spin"}):l("landingPage.pricing.buyButton")}):v.jsx(ut,{to:`/auth/sign-up?returnTo=${encodeURIComponent(c)}`,className:"btn-primary mt-6 w-full",children:l("landingPage.pricing.buyButton")})})]})]})}function KT({data:t}){const{t:e}=Tt(),n=t.infos&&t.risks?t:cx(t);return n.infos.length===0&&n.risks.length===0&&n.blocking.length===0?v.jsxs("div",{className:"mt-4 flex gap-3 rounded-lg border border-lexpi-success/20 bg-lexpi-success/5 p-4",children:[v.jsx(gV,{className:"mt-0.5 h-5 w-5 flex-shrink-0 text-lexpi-success"}),v.jsx("p",{className:"text-sm font-medium text-lexpi-success",children:e("masteringPage.nominalMix")})]}):v.jsxs("div",{className:"mt-4 space-y-3",children:[n.infos.map((i,s)=>v.jsxs("div",{className:"flex gap-3 rounded-lg border border-blue-500/20 bg-blue-500/5 p-3",children:[v.jsx(PV,{className:"mt-0.5 h-4 w-4 flex-shrink-0 text-blue-400"}),v.jsxs("div",{children:[v.jsx("p",{className:"text-sm font-medium text-blue-400",children:i.message}),v.jsx("p",{className:"mt-0.5 text-xs text-lexpi-text-muted",children:i.detail})]})]},`info-${s}`)),n.risks.map((i,s)=>v.jsxs("div",{className:"flex gap-3 rounded-lg border border-lexpi-warning/20 bg-lexpi-warning/5 p-3",children:[v.jsx(jV,{className:"mt-0.5 h-4 w-4 flex-shrink-0 text-lexpi-warning"}),v.jsxs("div",{children:[v.jsx("p",{className:"text-sm font-medium text-lexpi-warning",children:i.message}),v.jsx("p",{className:"mt-0.5 text-xs text-lexpi-text-muted",children:i.detail}),v.jsx("p",{className:"mt-1 text-xs italic text-lexpi-text-muted",children:i.impact})]})]},`risk-${s}`)),n.blocking.map((i,s)=>v.jsxs("div",{className:"flex gap-3 rounded-lg border border-lexpi-error/20 bg-lexpi-error/5 p-3",children:[v.jsx(yV,{className:"mt-0.5 h-4 w-4 flex-shrink-0 text-lexpi-error"}),v.jsxs("div",{children:[v.jsx("p",{className:"text-sm font-medium text-lexpi-error",children:i.message}),v.jsx("p",{className:"mt-0.5 text-xs text-lexpi-text-muted",children:i.detail}),v.jsx("p",{className:"mt-1 text-xs text-lexpi-text",children:i.action}),i.verify&&v.jsx("p",{className:"mt-1 text-xs italic text-lexpi-text-dim",children:i.verify})]})]},`block-${s}`))]})}function nQ({progress:t,message:e}){const{t:n}=Tt(),r=Math.max(0,Math.min(100,Math.round(t)));return v.jsxs("div",{className:"rounded-xl border border-white/[0.06] bg-white/[0.02] p-4",children:[v.jsxs("div",{className:"flex items-start gap-3",children:[v.jsx(Lu,{className:"mt-0.5 h-5 w-5 flex-shrink-0 animate-spin text-lexpi-accent"}),v.jsx("p",{className:"commentary-fade text-sm leading-relaxed text-lexpi-text",children:e},e)]}),v.jsx("div",{role:"progressbar","aria-valuenow":r,"aria-valuemin":0,"aria-valuemax":100,"aria-label":n("landingPage.preview.progressAria"),className:"mt-3 h-1 w-full overflow-hidden rounded-full bg-white/[0.04]",children:v.jsx("div",{className:"h-full rounded-full bg-lexpi-accent transition-[width] duration-700 ease-out",style:{width:`${r}%`}})})]})}function rQ({isOpen:t,cgvVersion:e,cgvLabel:n,onAccept:r,onCancel:i}){const{t:s}=Tt(),l=Ho(),[u,c]=k.useState(!1);k.useEffect(()=>{t&&c(!1)},[t]);const p=k.useCallback(h=>{h.key==="Escape"&&i()},[i]);return k.useEffect(()=>{if(t)return document.addEventListener("keydown",p),()=>document.removeEventListener("keydown",p)},[t,p]),t?v.jsxs("div",{className:"fixed inset-0 z-50 flex items-center justify-center",children:[v.jsx("div",{className:"absolute inset-0 bg-black/60 backdrop-blur-sm",onClick:i}),v.jsxs("div",{className:"relative mx-4 w-full max-w-md rounded-2xl border border-white/[0.08] bg-lexpi-surface/95 p-6 shadow-glass-lg backdrop-blur-md",children:[v.jsx("h2",{className:"text-lg font-semibold",children:s("cgvModal.title")}),v.jsx("p",{className:"mt-2 text-sm text-lexpi-text-muted",children:n}),v.jsxs("div",{className:"mt-5 flex items-start gap-3",children:[v.jsx("input",{id:"cgv-accept",type:"checkbox",checked:u,onChange:h=>
419c(h.target.checked),className:"mt-1 h-4 w-4 rounded border-lexpi-border accent-lexpi-accent"}),v.jsxs("label",{htmlFor:"cgv-accept",className:"text-sm leading-relaxed",children:[s("cgvModal.checkboxBefore"),v.jsx("a",{href:_s("/cgv",l),target:"_blank",rel:"noopener noreferrer",className:"text-lexpi-accent underline hover:text-lexpi-accent-hover",children:s("cgvModal.checkboxLink")}),s("cgvModal.checkboxAfter")," ",v.jsx("span",{className:"text-lexpi-text-dim",children:s("cgvModal.article")})]})]}),v.jsxs("div",{className:"mt-6 flex gap-3",children:[v.jsx("button",{onClick:i,className:"btn-secondary flex-1",children:s("cgvModal.cancel")}),v.jsx("button",{onClick:()=>r(e,u),disabled:!u,className:"btn-primary flex-1 disabled:cursor-not-allowed disabled:opacity-40",children:s("cgvModal.confirm")})]})]})]}):null}function iQ(){const{t}=Tt(),{getToken:e}=Wo(),[n,r]=k.useState({open:!1,packId:"",version:"",label:""}),[i,s]=k.useState(null),[l,u]=k.useState(null),c=k.useRef("other"),p=async(_,x,S,w,C)=>{try{const{checkout_url:R}=await hG(_,x,!0,S,w,C);window.location.href=R}catch(R){if(R instanceof y0&&R.status===409){const I=await xC(_);Oy({event:"cgv_shown",source:c.current}),r({open:!0,packId:x,version:I.current_version,label:t("checkout.cgvVersionLabel",{version:I.current_version}),redirectTo:C})}else throw R}},h=async({packId:_,redirectTo:x,source:S="other"})=>{s(_),u(null),c.current=S;try{const w=await e();if(!w)return;const C=await xC(w);if(C.must_accept){Oy({event:"cgv_shown",source:S}),r({open:!0,packId:_,version:C.current_version,label:t("checkout.cgvVersionLabel",{version:C.current_version}),redirectTo:x});return}await p(w,_,C.current_version,!0,x)}catch(w){console.error("[checkout] startCheckout a échoué :",w),u(t("checkout.purchaseError"))}finally{s(null)}},m=async(_,x)=>{const{packId:S,redirectTo:w}=n;r(C=>({...C,open:!1})),s(S);try{const C=await e();if(!C)return;await p(C,S,_,x,w)}catch(C){console.error("[checkout] handleAccept a échoué :",C),u(t("checkout.purchaseError"))}finally{s(null)}},g=()=>{Oy({event:"cgv_cancelled",source:c.current}),r(_=>({..._,open:!1})),s(null)};return{startCheckout:h,loadingPackId:i,error:l,cgvModalProps:{isOpen:n.open,cgvVersion:n.version,cgvLabel:n.label,onAccept:m,onCancel:g}}}const sQ=["0","false","no","off"],oQ=[25,50,75,100];function aQ(){return!sQ.includes("".trim().toLowerCase())}function lQ(){const t=document.documentElement,e=window.scrollY||t.scrollTop||0,n=window.innerHeight||t.clientHeight||0,r=(t.scrollHeight||0)-n;return r<=0?0:Math.min(100,e/r*100)}function uQ(){const t=En(),e=k.useRef(t.pathname),n=k.useRef(new Set);k.useEffect(()=>{if(!aQ())return;const r=n.current,i=e.current,s=u=>{r.has(u)||(r.add(u),aG({landing_path:i,depth:u}))};s(0);const l=()=>{const u=lQ();for(const c of oQ)u>=c&&s(c)};return window.addEventListener("scroll",l,{passive:!0}),l(),()=>window.removeEventListener("scroll",l)},[])}function cQ(t){return Math.ceil(t/600)}async function dQ(t){var r;const e=[],n=(r=t.name.split(".").pop())==null?void 0:r.toLowerCase();if(!n||!["wav","aiff","aif"].includes(n))return{valid:!1,info:null,errors:[{code:"INVALID_FORMAT",blocking:!0}]};try{const i=await mQ(t,0,Math.min(t.size,8192)),s=new DataView(i),l=String.fromCharCode(s.getUint8(0),s.getUint8(1),s.getUint8(2),s.getUint8(3))==="RIFF",u=String.fromCharCode(s.getUint8(0),s.getUint8(1),s.getUint8(2),s.getUint8(3))==="FORM";if(!l&&!u)return{valid:!1,info:null,errors:[{code:"INVALID_HEADER",blocking:!0}]};let c;return l?c=pQ(s,t.size):c=hQ(s,t.size),c.bitDepth<24&&e.push({code:"LOW_BIT_DEPTH",blocking:!0,params:{bitDepth:c.bitDepth}}),[44100,48e3].includes(c.sampleRate)||e.push({code:"UNSUPPORTED_SAMPLE_RATE",blocking:!0,params:{sampleRate:c.sampleRate}}),c.durationSeconds>1800&&e.push({code:"TOO_LONG",blocking:!0,params:{duration:JT(c.durationSeconds)}}),c.durationSeconds<30&&e.push({code:"TOO_SHORT",blocking:!0,params:{duration:JT(c.durationSeconds)}}),(c.channels<1||c.channels>2)&&e.push({code:"INVALID_CHANNELS",blocking:!0,params:{channels:c.channels}}),{valid:e.filter(p=>p.blocking).length===0,info:c,errors:e}}
419catch{return{valid:!1,info:null,errors:[{code:"PARSE_ERROR",blocking:!0}]}}}function pQ(t,e){let n=0,r=0,i=0,s=0,l=e-44,u=!1,c=!1,p=12;const h=t.byteLength;for(;p+8<=h;){const g=String.fromCharCode(t.getUint8(p),t.getUint8(p+1),t.getUint8(p+2),t.getUint8(p+3)),_=t.getUint32(p+4,!0);if(g==="fmt "&&p+8+16<=h?(n=t.getUint16(p+8+2,!0),r=t.getUint32(p+8+4,!0),i=t.getUint32(p+8+8,!0),s=t.getUint16(p+8+14,!0),u=!0):g==="data"&&(l=_,c=!0),u&&c)break;p+=8+_,_%2!==0&&(p+=1)}const m=i>0?l/i:0;return{format:"wav",sampleRate:r,bitDepth:s,channels:n,durationSeconds:m,fileSizeBytes:e}}function hQ(t,e){let n=12,r=2,i=44100,s=24,l=0;for(;n+8<=t.byteLength;){const c=String.fromCharCode(t.getUint8(n),t.getUint8(n+1),t.getUint8(n+2),t.getUint8(n+3)),p=t.getUint32(n+4,!1);if(c==="COMM"){r=t.getUint16(n+8,!1),l=t.getUint32(n+10,!1),s=t.getUint16(n+14,!1),i=fQ(t,n+16);break}n+=8+p,p%2!==0&&(n+=1)}const u=i>0?l/i:0;return{format:"aiff",sampleRate:i,bitDepth:s,channels:r,durationSeconds:u,fileSizeBytes:e}}function fQ(t,e){const n=(t.getUint8(e)&127)<<8|t.getUint8(e+1),i=t.getUint32(e+2,!1)*Math.pow(2,n-16383-31);return Math.round(i)}function mQ(t,e,n){return new Promise((r,i)=>{const s=new FileReader;s.onload=()=>r(s.result),s.onerror=i,s.readAsArrayBuffer(t.slice(e,n))})}function JT(t){const e=Math.floor(t/60),n=Math.floor(t%60);return`${e}:${n.toString().padStart(2,"0")}`}function gQ(){const{t}=Tt(),e=Y7(),n=Ca(q=>q.setPendingFile),{data:r}=og(),[i,s]=k.useState(!1),[l,u]=k.useState(null),[c,p]=k.useState(!1),[h,m]=k.useState(null),[g,_]=k.useState("idle"),[x,S]=k.useState(null),[w,C]=k.useState(null),[R,I]=k.useState(0),[P,A]=k.useState(!1),N=k.useRef(0),T=k.useCallback(()=>{const q=document.getElementById("preview");q&&typeof q.scrollIntoView=="function"&&q.scrollIntoView({behavior:"smooth",block:"start"})},[]),L=k.useCallback(async q=>{u(null),m(null),p(!0);const G=await dQ(q);if(u(G),p(!1),G.valid&&G.info){m(q),n(q,G);const W=(r==null?void 0:r.anon_preview_max_duration_seconds)??330;if(pd.anonPreview&&G.info.durationSeconds<=W){C(null),S(null),_("uploading");try{const{preview_token:se}=await lG(q);N.current=Date.now(),S(se),_("rendering")}catch{_("error")}}else e("/auth/sign-up")}},[n,r,e]),O=k.useCallback(()=>{u(null),m(null),p(!1),_("idle"),S(null),C(null),I(0)},[]);k.useEffect(()=>{if(!x||g!=="rendering")return;let q=!1,G=0;const W=12e4,ie=async()=>{if(!q){if(Date.now()-N.current>W){_("error");return}try{const se=await uG(x);if(q)return;if(se.status==="completed"){C(se),_("ready");return}if(se.status==="blocked"){C(se),_("blocked");return}if(se.status==="failed"){_("error");return}}catch{}q||(G=window.setTimeout(ie,2e3))}};return G=window.setTimeout(ie,2e3),()=>{q=!0,clearTimeout(G)}},[x,g]),k.useEffect(()=>{if(g==="uploading"){I(3);return}if(g==="ready"){I(100);return}if(g!=="rendering")return;const q=55e3,G=Date.now(),W=window.setInterval(()=>{const ie=Math.min(1,(Date.now()-G)/q);I(5+90*(1-Math.pow(1-ie,2)))},400);return()=>clearInterval(W)},[g]);const j=g==="uploading"?t("landingPage.preview.progressUploading"):R<45?t("landingPage.preview.progressAnalyzing"):R<85?t("landingPage.preview.progressRendering"):t("landingPage.preview.progressFinalizing"),B=l!=null&&l.valid&&l.info?cQ(l.info.durationSeconds):0;return{dragOver:i,setDragOver:s,validation:l,validating:c,selectedFile:h,tokenCost:B,handleFile:L,resetDropZone:O,previewPhase:g,previewToken:x,previewStatus:w,previewProgress:R,previewMessage:j,lufsMode:P,setLufsMode:A,scrollToPreview:T}}const qM=k.createContext("v1"),QT=qM.Provider,vQ=()=>k.useContext(qM);let u_=null;function yQ(t){return t==="v2"?"v2":t==="ab"?(u_===null&&(u_=Math.random()<.5?"v1":"v2"),u_):"v1"}function _Q(){const t=document.documentElement,e=window.scrollY||t.scrollTop||0,n=window.innerHeight||t.clientHeight||0,r=(t.scrollHeight||0)-n;return r<=0?0:Math.min(100,e/r*100)}const bQ={LOW_BIT_DEPTH:"drop_rejected_bit_depth",INVALID_FORMAT:"drop_rejected_format",INVALID_HEADER:"drop_rejected_format",PARSE_ERROR:"drop_rejected_format",UNSUPPORTED_SAMPLE_RATE:"drop_rejected_sample_rate",TOO_LONG:"drop_rejected_duration",TOO_SHORT:"drop_rejected_duration",INVALID_CHANNELS:"drop_rejected_channels"};function xQ(t,e){var u;const n=!!((u=e.validation)!=null&&u.valid),r=k.useRef(!1),i=k.useRef(!1),s=k.useRef(null),l=k.useRef(new Set);k.useEffect(()=>{r.current||(r.current=!0,Oc({variant:t,event:"view"}))},[t]),k.useEffect(()=>{n&&!i.current&&Oc({variant:t,event:"drop"}),i.current=n},[n,t]),k.useEffect(()=>{var h;const c=e.validation;if(!c||c.valid||s.current===c)return;s.current=c;const p=(h=c.errors.find(m=>m.blocking))==null?void 0:h.code;Oc({variant:t,event:p&&bQ[p]||"drop_rejected_other"})},[e.validation,t]),k.useEffect(()=>{const c=p=>{var g;const h=p.target,m=(g=h==null?void 0:h.closest)==null?void 0:g.call(h,"a");m&&/auth\/sign-up/.test(m.getAttribute("href")||"")&&Oc({variant:t,event:"signup_click"})};return document.addEventListener("click",c,{capture:!0}),()=>document.removeEventListener("click",c,{capture:!0})},[t]),k.useEffect(()=>{const c=l.current,p=()=>{const h=_Q();for(const m of[50,100])h>=m&&!c.has(m)&&(c.add(m),Oc({variant:t,event:m===50?"scroll_50":"scroll_100"}))};return window.addEventListener("scroll",p,{passive:!0}),()=>window.removeEventListener("scroll",p)},[t])}function dx({heroVariant:t="v1"}={}){const{t:e}=Tt(),n="".toLowerCase()==="chromecore",r=["1","true","yes","on"].includes("true".toLowerCase())||n,{data:i}=og();uQ();const s=vQ(),{dragOver:l,setDragOver:u,validation:c,validating:p,selectedFile:h,tokenCost:m,handleFile:g,resetDropZone:_,previewPhase:x,previewToken:S,previewStatus:w,previewProgress:C,previewMessage:R,lufsMode:I,setLufsMode:P,scrollToPreview:A}=gQ();xQ(s,{validation:c});const{isSignedIn:N}=Wo(),{startCheckout:T,loadingPackId:L,error:O,cgvModalProps:j}=iQ();k.useEffect(()=>{(x==="rendering"||x==="ready"||x==="blocked"||x==="error")&&A()},[x,A]);const B={dragOver:l,setDragOver:u,validation:c,validating:p,selectedFile:h,tokenCost:m,handleFile:g,resetDropZone:_,isChromecoreMode:n};return v.jsxs("div",{className:`flex flex-col ${n?"chromecore-landing":""}`,children:[v.jsxs("section",{id:"hero",className:"chromecore-hero relative flex h-[calc(100vh-4rem)] flex-col items-center overflow-hidden px-6 text-center sm:px-10",children:[r?v.jsx(pJ,{}):v.jsx(aJ,{}),v.jsx("div",{className:"relative z-10 flex flex-1 flex-col items-center justify-center pt-[2rem]",children:t==="v2"?v.jsxs("div",{className:"max-w-2xl",children:[v.jsxs("h1",{className:"text-[clamp(1.5rem,4.5vw,3.5rem)] font-bold leading-[1.16] tracking-tight",children:[v.jsx("span",{className:"hero-tagline-text block",children:e("landingPageV2.hero.headline1")}),v.jsx("span",{className:"hero-tagline-text block",children:e("landingPageV2.hero.headline2")})]}),v.jsx("p",{className:"mx-auto mt-5 max-w-xl text-base text-lexpi-text-muted sm:text-lg",children:e("landingPageV2.hero.subhead")})]}):v.jsx(fJ,{})}),v.jsx(mo,{feature:"upload",children:v.jsx(YT,{inputId:"landing-file-input",...B})}),c!=null&&c.valid?v.jsx("div",{className:"relative z-10 mt-6 flex flex-col items-center gap-3",children:pd.anonPreview&&x!=="idle"?v.jsxs("button",{type:"button",onClick:A,className:"flex items-center gap-2 text-sm text-lexpi-text-dim transition-colors hover:text-lexpi-text",children:[e(x==="uploading"||x==="rendering"?"landingPage.preview.analyzing":"landingPage.preview.seeBelow"),v.jsx(X1,{className:"h-4 w-4 animate-bounce"})]}):v.jsx(mo,{feature:"auth",children:v.jsxs(ut,{to:"/auth/sign-up",className:"btn-primary px-8 py-3.5 text-base",children:[e("landingPage.hero.ctaSignup"),v.jsx(dd,{className:"h-4 w-4"})]})})}):v.jsx("p",{className:"relative z-10 mt-5 text-sm text-lexpi-text-dim",children:e(t==="v2"?"landingPageV2.hero.reassurance":"landingPage.hero.reassurance")}),v.jsx("div",{className:"relative z-10 flex-1"}),v.jsxs("a",{href:"#examples",onClick:q=>{var G;q.preventDefault(),(G=document.getElementById("examples"))==null||G.scrollIntoView({behavior:"smooth"})},className:"group absolute bottom-6 left-1/2 z-10 flex -translate-x-1/2 flex-col items-center gap-2 text-lexpi-text-dim transition-colors hover:text-lexpi-text",children:[v.jsx("span",{className:"text-xs uppercase tracking-[0.2em]",children:e("landingPage.hero.scrollCue")}),v.jsx(X1,{className:"h-4 w-4 animate-bounce opacity-60 group-hover:opacity-100"})]})]}),pd.anonPreview&&x!=="idle"&&v.jsx("section",{id:"preview",className:"animate-fade-in flex min-h-[calc(100vh-4rem)] flex-col items-center justify-center px-6 py-16 sm:px-10",children:v.jsxs("div",{className:"w-full max-w-3xl",children:[v.jsx("h2",{className:"text-center text-2xl font-bold",children:e("landingPage.preview.heading")}),(x==="uploading"||x==="rendering")&&v.jsx("div",{className:"mt-6",children:v.jsx(nQ,{progress:C,message:R})}),x==="ready"&&w&&v.jsxs("div",{className:"mt-6",children:[w.analysis&&v.jsx(KT,{data:w.analysis}),S&&(()=>{const q=w.source_lufs!=null&&w.teaser_lufs!=null,G=q&&I;return v.jsxs("div",{className:"mt-6",children:[v.jsx(U0,{masterStreamUrl:cG(S),originalStreamUrl:dG(S),originalLufs:w.source_lufs??0,masterLufs:w.teaser_lufs??0,originalTruePeak:w.source_true_peak??void 0,lufsMode:G,onLufsModeChange:q?P:void 0,getToken:async()=>null,disableAntiScraping:!0,initialTrack:"A",labelA:e("landingPage.preview.labelSource"),labelB:e("landingPage.preview.labelTeaser")}),v.jsx("p",{className:"mt-2 text-center text-xs text-lexpi-text-dim",children:e(G?"masteringPage.lufsModeAnalytical":"masteringPage.lufsModePublication")})]})})(),v.jsx("p",{className:"mt-4 text-center text-xs text-lexpi-text-dim",children:e("landingPage.preview.qualityNote")})]}),x==="error"&&v.jsx("p",{className:"mt-6 text-center text-sm text-lexpi-text-dim",children:e("landingPage.preview.errorFallback")}),x==="blocked"&&(w==null?void 0:w.analysis)&&v.jsxs("div",{className:"mt-6",children:[v.jsx(KT,{data:w.analysis}),v.jsx("p",{className:"mt-4 text-center text-sm text-lexpi-text-dim",children:e("landingPage.preview.blockedHint")})]}),(x==="ready"||x==="error")&&v.jsx("div",{className:"mt-8 flex justify-center",children:v.jsx(mo,{feature:"auth",children:v.jsxs(ut,{to:"/auth/sign-up",className:"btn-primary px-8 py-3.5 text-base",children:[e("landingPage.preview.ctaFullMaster"),v.jsx(dd,{className:"h-4 w-4"})]})})})]})}),!(pd.anonPreview&&(x==="uploading"||x==="rendering"))&&v.jsxs("section",{id:"examples",className:"flex min-h-screen flex-col items-center justify-center px-6 py-16 sm:px-10 sm:py-0",children:[v.jsx("div",{className:"max-w-3xl text-center",children:v.jsx("h2",{className:"text-3xl font-bold",children:e("landingPage.examples.heading")})}),v.jsx("div",{className:"mt-10 flex w-full justify-center sm:mt-12",children:v.jsx(UJ,{})})]}),(i==null?void 0:i.free_hd_license_enabled)&&v.jsxs("section",{id:"artists-showcase",className:"flex flex-col items-center justify-center border-t border-white/[0.06] bg-white/[0.01] px-6 py-20 sm:px-10",children:[v.jsxs("div",{className:"max-w-3xl text-center",children:[v.jsx("h2",{className:"text-3xl font-bold",children:"Ils ont mastérisé avec Lexpi"}),v.jsx("p",{className:"mt-3 text-lexpi-text-muted",children:"Extraits de 60 secondes diffusés avec l'autorisation des artistes."})]}),v.jsx("div",{className:"mt-10 flex w-full justify-center sm:mt-12",children:v.jsx(eQ,{})})]}),v.jsxs("section",{id:"cta-after-examples",className:"flex min-h-screen flex-col items-center justify-center border-t border-white/[0.06] bg-white/[0.02] px-6 py-16 text-center sm:px-10 sm:py-0",children:[v.jsxs("div",{className:"max-w-2xl",children:[v.jsx("h2",{className:"text-3xl font-bold",children:e("landingPage.ctaAfterExamples.heading")}),v.jsx("p",{className:"mt-3 text-lexpi-text-muted",children:e("landingPage.ctaAfterExamples.subheading")})]}),v.jsxs("div",{className:"mt-10 flex w-full max-w-xl flex-col items-center sm:mt-12",children:[v.jsx(mo,{feature:"upload",children:v.jsx(YT,{inputId:"landing-file-input-cta",...B})}),(c==null?void 0:c.valid)&&v.jsx("div",{className:"mt-6",children:v.jsx(mo,{feature:"auth",children:v.jsxs(ut,{to:"/auth/sign-up",className:"btn-primary px-8 py-3.5 text-base",children:[e("landingPage.hero.ctaSignup"),v.jsx(dd,{className:"h-4 w-4"})]})})})]})]}),v.jsxs("section",{id:"blind-comparison",className:"flex min-h-screen flex-col items-center justify-center px-6 py-16 sm:px-10 sm:py-0",children:[v.jsx("div",{className:"flex w-full justify-center",children:v.jsx(qJ,{})}),v.jsx("div",{className:"mt-6 flex w-full justify-center",children:v.jsx(ut,{to:"/test-a-l-aveugle",className:"text-sm text-lexpi-text-muted underline underline-offset-4 transition-colors hover:text-lexpi-text",children:e("blindTestPage.landingLink")})})]}),v.jsxs("section",{id:"how-it-works",className:"animate-fade-in flex min-h-screen flex-col items-center justify-center px-6 py-16 sm:px-10 sm:py-24",children:[v.jsx("h2",{className:"mx-auto max-w-4xl text-center text-2xl font-bold sm:text-3xl",children:e("landingPage.howItWorks.heading")}),v.jsx("p",{className:"mt-3 text-center text-lexpi-text-muted",children:e("landingPage.howItWorks.subheading")}),v.jsx("div",{className:"mt-20 w-full max-w-5xl sm:mt-28",children:v.jsx(wQ,{})})]}),v.jsx("section",{className:"flex min-h-screen flex-col items-center justify-center px-6 py-16 text-center sm:px-10 sm:py-0",children:v.jsxs("div",{className:"max-w-3xl",children:[v.jsx("p",{className:"text-2xl font-bold",children:e("landingPage.manifesto.title")}),v.jsx("p",{className:"mt-6 text-lg leading-relaxed text-lexpi-text-muted",children:e("landingPage.manifesto.p1")}),v.jsx("p",{className:"mt-6 text-lg leading-relaxed text-lexpi-text-muted",children:e("landingPage.manifesto.p2")}),v.jsx("p",{className:"mt-6 text-lg leading-relaxed text-lexpi-text-muted",children:e("landingPage.manifesto.p3")})]})}),v.jsx("section",{className:"flex min-h-screen flex-col items-center justify-center px-6 py-16 text-center sm:px-10 sm:py-0",children:v.jsxs("div",{className:"max-w-3xl",children:[v.jsx("p",{className:"text-2xl font-bold",children:e("landingPage.ethics.title")}),v.jsx("p",{className:"mt-6 text-lg leading-relaxed text-lexpi-text-muted",children:e("landingPage.ethics.p1")}),v.jsx("p",{className:"mt-6 whitespace-pre-line text-lg leading-relaxed text-lexpi-text-muted",children:e("landingPage.ethics.p2")}),v.jsx("p",{className:"mt-6 text-lg leading-relaxed text-lexpi-text-muted",children:e("landingPage.ethics.p3")}),v.jsx(ut,{to:"/ethics",className:"mt-6 inline-block text-sm text-lexpi-text-muted underline hover:text-lexpi-text",children:e("landingPage.ethics.learnMore")})]})}),v.jsx("section",{id:"pricing",className:"chromecore-pricing flex min-h-screen flex-col items-center justify-center border-t border-white/[0.06] bg-white/[0.02] px-6 py-16 sm:px-10 sm:py-0",children:v.jsxs("div",{className:"max-w-4xl text-center",children:[v.jsx("h2",{className:"text-3xl font-bold",children:e("landingPage.pricing.heading")}),v.jsx("p",{className:"mt-3 text-lexpi-text-muted",children:e("landingPage.pricing.subheading")}),v.jsxs("div",{className:"mt-10 grid gap-4 sm:mt-12 sm:grid-cols-3 sm:gap-6",children:[v.jsx(l_,{packId:"pack_1",tokens:1,isSignedIn:!!N,loadingPackId:L,onBuy:q=>T({packId:q,redirectTo:"/upload?success=true",source:"landing"})}),v.jsx(l_,{packId:"pack_5",tokens:5,isSignedIn:!!N,loadingPackId:L,onBuy:q=>T({packId:q,redirectTo:"/upload?success=true",source:"landing"})}),v.jsx(l_,{packId:"pack_15",tokens:15,isSignedIn:!!N,loadingPackId:L,onBuy:q=>T({packId:q,redirectTo:"/upload?success=true",source:"landing"})})]}),O&&v.jsx("p",{className:"mt-6 text-sm text-lexpi-error",children:O}),v.jsx("p",{className:"mt-8 text-sm text-lexpi-text-dim",children:e("landingPage.pricing.note")})]})}),v.jsx(rQ,{...j})]})}const SQ=[{step:"1",icon:v.jsx(dL,{className:"h-5 w-5"}),rgb:[255,108,108]},{step:"2",icon:v.jsx(NV,{className:"h-5 w-5"}),rgb:[255,184,98]},{step:"3",icon:v.jsx(_V,{className:"h-5 w-5"}),rgb:[255,232,108]},{step:"4",icon:v.jsx(TV,{className:"h-5 w-5"}),rgb:[120,255,160]},{step:"5",icon:v.jsx(SV,{className:"h-5 w-5"}),rgb:[108,200,255]},{step:"6",icon:v.jsx(xV,{className:"h-5 w-5"}),rgb:[192,135,255]}];function wQ(){const{t}=Tt(),e=t("landingPage.howItWorks.steps",{returnObjects:!0}),n=Array.isArray(e)?e:[];return v.jsxs("div",{className:"w-full",children:[v.jsxs("div",{className:"relative pb-24 sm:pb-32",children:[v.jsx("div",{className:"pointer-events-none
419 absolute bottom-0 left-7 top-0 w-1.5 -translate-x-1/2 lg:left-1/2",style:{maskImage:"linear-gradient(to bottom, transparent 0px, transparent 6px, black 24px, black calc(100% - 86px), transparent 100%)",WebkitMaskImage:"linear-gradient(to bottom, transparent 0px, transparent 6px, black 24px, black calc(100% - 86px), transparent 100%)"},"aria-hidden":!0,children:v.jsx("div",{className:"absolute inset-0 rounded-full backdrop-blur-[1.5px]",style:{background:`linear-gradient(to right, ${re(Ke.white,.045)}, ${re(Ke.white,.02)}, ${re(Ke.white,.045)})`,boxShadow:`inset 0 1px 0 ${re(Ke.white,.08)}, inset 1px 0 0 ${re(Ke.white,.05)}, inset -1px 0 0 ${re(Ke.black,.25)}, 0 1px 2px ${re(Ke.black,.25)}`}})}),v.jsxs("div",{className:"pointer-events-none absolute bottom-0 left-7 top-0 w-px overflow-hidden lg:left-1/2 lg:-translate-x-1/2",style:{maskImage:"linear-gradient(to bottom, transparent 0px, transparent 20px, black 30px, black calc(100% - 80px), transparent 100%)",WebkitMaskImage:"linear-gradient(to bottom, transparent 0px, transparent 20px, black 30px, black calc(100% - 80px), transparent 100%)"},"aria-hidden":!0,children:[v.jsx("div",{className:"absolute inset-0",style:{background:"var(--spectrum-spine)"}}),v.jsx("div",{className:"timeline-spine-flow absolute left-0 right-0 top-0 h-24",style:{background:`linear-gradient(to bottom, transparent 0%, ${re(Ke.white,.5)} 50%, transparent 100%)`,mixBlendMode:"screen"}})]}),v.jsx("ol",{className:"relative space-y-16 sm:space-y-24 lg:space-y-32",children:SQ.map((r,i)=>{var s,l;return v.jsx(EQ,{index:i,step:r.step,icon:r.icon,rgb:r.rgb,title:((s=n[i])==null?void 0:s.title)??"",description:((l=n[i])==null?void 0:l.description)??""},r.step)})})]}),v.jsx(kQ,{})]})}function EQ({index:t,step:e,icon:n,title:r,description:i,rgb:s}){const l=t%2===1,u=`rgb(${s.join(",")})`,c=p=>`rgba(${s.join(",")},${p})`;return v.jsxs("li",{className:"relative",children:[v.jsx("div",{className:"absolute left-7 top-3 z-10 -translate-x-1/2 lg:left-1/2","aria-hidden":!0,children:v.jsxs("span",{className:"relative flex h-3 w-3 items-center justify-center",children:[v.jsx("span",{className:"timeline-node-halo absolute inset-0 rounded-full blur-[5px]",style:{backgroundColor:u,animationDelay:`${t*.7}s`}}),v.jsx("span",{className:"relative h-2 w-2 rounded-full",style:{backgroundColor:u,boxShadow:`0 0 8px ${u}, 0 0 18px ${c(.45)}`}})]})}),v.jsxs("div",{className:`pl-14 lg:pl-0 ${l?"lg:ml-[50%] lg:pl-12":"lg:mr-[50%] lg:pr-12 lg:text-right"}`,children:[v.jsx("div",{className:"font-extralight leading-none tracking-tight text-lexpi-text/[0.16]",style:{fontSize:"clamp(3rem, 6.5vw, 5.25rem)"},children:e.padStart(2,"0")}),v.jsxs("div",{className:`mt-4 flex items-center gap-3 ${l?"":"lg:flex-row-reverse"}`,children:[v.jsx("span",{className:"flex h-10 w-10 shrink-0 items-center justify-center rounded-full",style:{backgroundColor:c(.1),border:`1px solid ${c(.22)}`,color:u,boxShadow:`inset 0 1px 0 ${re(Ke.white,.06)}`},children:n}),v.jsx("h3",{className:"whitespace-pre-line text-lg font-semibold leading-snug sm:text-xl",children:r})]}),v.jsx("p",{className:`mt-3 max-w-md text-sm leading-relaxed text-lexpi-text-muted sm:text-base ${l?"":"lg:ml-auto"}`,children:i})]})]})}function kQ(){const{t}=Tt();return v.jsxs("div",{className:"mx-auto max-w-md text-center",children:[v.jsx("div",{className:"relative mx-auto flex h-16 w-16 items-center justify-center rounded-full border border-lexpi-success/30",style:{background:`radial-gradient(circle at 50% 30%, ${re(Sr.success,.18)} 0%, ${re(Sr.success,.04)} 70%)`,boxShadow:`0 0 32px ${re(Sr.success,.16)}, inset 0 0 16px ${re(Sr.success,.08)}, inset 0 1px 0 ${re(Ke.white,.08)}`},children:v.jsx(OV,{className:"h-7 w-7 text-lexpi-success"})}),v.jsx("h3",{className:"mt-6 text-xl font-semibold sm:text-2xl",children:t("landingPage.howItWorks.safeguard.title")}),v.jsx("p",{className:"mt-3 text-sm leading-relaxed text-lexpi-text-muted sm:text-base",children:t("landingPage.howItWorks.safeguard.description")})]})}function XT(){return v.jsx(dx,{heroVariant:"v2"})}function ZT(){const{data:t,isLoading:e}=og(),[n]=TI(),r=k.useRef(null),i=n.get("lp");if(i==="v1"||i==="v2")return v.jsx(QT,{value:i,children:i==="v2"?v.jsx(XT,{}):v.jsx(dx,{})});
419if(r.current===null&&!e&&(r.current=yQ((t==null?void 0:t.landing_ab_mode)??"v1")),r.current===null)return v.jsx("div",{className:"flex min-h-[calc(100vh-4rem)] items-center justify-center",children:v.jsx(Lu,{className:"h-6 w-6 animate-spin text-lexpi-text-dim"})});const s=r.current;return v.jsx(QT,{value:s,children:s==="v2"?v.jsx(XT,{}):v.jsx(dx,{})})}function z0(){const{t}=Tt(),{isSignedIn:e,getToken:n}=Wo(),{role:r,isLoading:i,error:s}=go(),l=k.useRef(!1);return k.useEffect(()=>{if(!e){go.getState().role!==null&&go.getState().clear(),l.current=!1;return}if(r!==null||l.current)return;l.current=!0;let c=!1;async function p(){try{const h=await n();if(!h||c)return;const m=await xL(h);if(c)return;const g=m.role==="ADMIN"?"ADMIN":"MEMBER";go.getState().setUser(g,m.free_hd_license_quota??0)}catch{c||go.getState().setError(t("appInit.profileLoadError"))}finally{c||(l.current=!1)}}return p(),()=>{c=!0,l.current=!1}},[e,r]),{role:r,isLoading:e===void 0||(e?i:!1),isSignedIn:e??!1,error:s}}function eP(){const{isSignedIn:t,isLoading:e}=z0(),n=En();if(e)return v.jsx("div",{className:"flex min-h-[60vh] items-center justify-center",children:v.jsx("div",{className:"h-8 w-8 animate-spin rounded-full border-2 border-white/20 border-t-white"})});if(!t){const r=encodeURIComponent(n.pathname+n.search);return v.jsx(u0,{to:`/auth/sign-in?returnTo=${r}`,replace:!0})}return v.jsx(c0,{})}function CQ(){const{role:t,isLoading:e}=z0();return e?v.jsx("div",{className:"flex min-h-[60vh] items-center justify-center",children:v.jsx("div",{className:"h-8 w-8 animate-spin rounded-full border-2 border-white/20 border-t-white"})}):t!=="ADMIN"?v.jsx(u0,{to:"/dashboard",replace:!0}):v.jsx(c0,{})}const TQ=["/dashboard","/upload","/mastering","/library","/tokens","/admin"];function rd(t){return t==="ADMIN"?"/admin/dashboard":"/dashboard"}function NZ(t,e){if(!t||t.includes("://")||t.startsWith("//")||!t.startsWith("/"))return rd(e);const n=t.split(/[?#]/)[0];return TQ.some(i=>n===i||n.startsWith(i+"/"))?t:rd(e)}function PQ(t){const{role:e,hasPendingFile:n,forceLanding:r}=t;return r?null:n?"/upload":rd(e)}const kf="https://lexpi.ai",RQ="lexpi.ai",tP=`${kf}/og-image.png`,nP={"/":{fr:{title:"Mastering automatique en ligne | lexpi.ai",description:"Mastering automatique en ligne pour vos morceaux. Ãcoutez le master avant de payer, vous ne réglez que si le résultat vous plaît."},en:{title:"Online automatic mastering | lexpi.ai",description:"Online automatic mastering for your tracks. Listen to the master before you pay, you only pay if you like the result."}},"/help":{fr:{title:"Aide et questions fréquentes | lexpi.ai",description:"Comment fonctionne lexpi.ai : formats acceptés, écoute avant paiement, livraison du master et réponses aux questions courantes."},en:{title:"Help and FAQ | lexpi.ai",description:"How lexpi.ai works: accepted formats, listen before you pay, master delivery and answers to common questions."}},"/contact":{fr:{title:"Contact | lexpi.ai",description:"Une question sur votre master ou votre compte ? Ãcrivez-nous, vous pourrez suivre la réponse depuis votre espace."},en:{title:"Contact | lexpi.ai",description:"A question about your master or your account? Write to us and follow the reply from your account."}},"/ethics":{fr:{title:"Ãthique | lexpi.ai",description:"Notre approche du mastering automatique : ce que le moteur fait, ce qu'il ne fait pas, et nos engagements."},en:{title:"Ethics | lexpi.ai",description:"Our approach to automatic mastering: what the engine does, what it does not, and our commitments."}},"/test-a-l-aveugle":{fr:{title:"Test à l'aveugle du mastering | lexpi.ai",description:"Comparez à l'aveugle, sur le même mix et à volume égal, le master Lexpi et celui d'un service leader. Méthode ouverte, extraits téléchargeables."},en:{title:"Mastering blind test | lexpi.ai",description:"Blind-compare, on the same mix at matched loudness, a Lexpi master and a leading service. Open method, downloadable samples."}},"/transparence":{fr:{title:"Transparence : qu'est-ce qu'un bon master ? | lexpi.ai",description:"Un bon master ne s'entend pas : il retire ce qui accroche sans soustraire d'énergie. Notre approche de la transparence, de la dynamique et de l'air."}
419,en:{title:"Transparency: what makes a good master? | lexpi.ai",description:"A good master doesn't draw attention to itself: it removes what catches without taking away energy. Our approach to transparency, dynamics and air."}},"/loudness-streaming":{fr:{title:"à quel niveau masteriser pour le streaming ? (LUFS) | lexpi.ai",description:"LUFS, normalisation et le mythe du -14. Les cibles de Spotify, Apple Music, YouTube et les autres, et pourquoi viser un chiffre ne fait pas sonner plus fort."},en:{title:"How loud should you master for streaming? (LUFS) | lexpi.ai",description:"LUFS, normalization and the -14 myth. Spotify, Apple Music, YouTube targets and why chasing a number doesn't make you sound louder."}},"/legal":{fr:{title:"Mentions légales | lexpi.ai",description:"Mentions légales du site lexpi.ai : éditeur, hébergement et informations de contact."},en:{title:"Legal notice | lexpi.ai",description:"Legal notice for lexpi.ai: publisher, hosting and contact information."}},"/privacy":{fr:{title:"Confidentialité | lexpi.ai",description:"Politique de confidentialité de lexpi.ai : données collectées, durée de conservation et vos droits."},en:{title:"Privacy | lexpi.ai",description:"lexpi.ai privacy policy: data collected, retention period and your rights."}},"/cgv":{fr:{title:"Conditions générales de vente | lexpi.ai",description:"Conditions générales de vente de lexpi.ai : commande, paiement, livraison du master et garanties."},en:{title:"Terms of sale | lexpi.ai",description:"lexpi.ai terms of sale: order, payment, master delivery and warranties."}},"/status":{fr:{title:"Ãtat du service | lexpi.ai",description:"Ãtat en temps réel du service de mastering lexpi.ai."},en:{title:"Service status | lexpi.ai",description:"Real-time status of the lexpi.ai mastering service."}}},AQ=["/dashboard","/upload","/mastering","/library","/albums","/tokens","/account","/admin","/auth","/support"];function IQ(t){return AQ.some(e=>t===e||t.startsWith(`${e}/`))}function LQ(t,e){return(nP[t]??nP["/"])[e]}function Zh(t,e){return e==="en"?t==="/"?`${kf}/en`:`${kf}/en${t}`:`${kf}${t}`}const B0="data-seo";function Qn(t,e,n){let r=document.head.querySelector(`meta[${t}="${e}"]`);r||(r=document.createElement("meta"),r.setAttribute(t,e),r.setAttribute(B0,""),document.head.appendChild(r)),r.setAttribute("content",n)}function MQ(){document.head.querySelectorAll(`link[${B0}]`).forEach(t=>t.remove())}function ef(t,e,n){const r=document.createElement("link");r.setAttribute("rel",t),r.setAttribute("href",e),n&&r.setAttribute("hreflang",n),r.setAttribute(B0,""),document.head.appendChild(r)}function NQ(){const t=En(),e=Ho();return k.useEffect(()=>{const n=_L(t.pathname),{title:r,description:i}=LQ(n,e),s=IQ(n),l=Zh(n,e);document.title=r,document.documentElement.lang=e,Qn("name","description",i),Qn("name","robots",s?"noindex, follow":"index, follow, max-image-preview:large"),Qn("property","og:title",r),Qn("property","og:description",i),Qn("property","og:url",l),Qn("property","og:locale",e==="en"?"en_US":"fr_FR"),Qn("property","og:site_name",RQ),Qn("property","og:type","website"),Qn("property","og:image",tP),Qn("property","og:image:width","1200"),Qn("property","og:image:height","630"),Qn("name","twitter:card","summary_large_image"),Qn("name","twitter:title",r),Qn("name","twitter:description",i),Qn("name","twitter:image",tP),MQ(),s||(ef("canonical",l),ef("alternate",Zh(n,"fr"),"fr"),ef("alternate",Zh(n,"en"),"en"),ef("alternate",Zh(n,"fr"),"x-default"))},[t.pathname,e]),null}const px="lexpi_lang";function OQ(){if(typeof document>"u")return null;const t=document.cookie.split("; ").find(n=>n.startsWith(`${px}=`));if(!t)return null;const e=t.slice(px.length+1);return v0(e)?e:null}function DQ(){if(typeof navigator>"u")return As;const t=navigator.languages??[navigator.language??""];for(const e of t){const n=e.toLowerCase().split("-")[0];if(n==="fr")return"fr";if(n==="en")return"en"}return As}function jQ(t){const e=t.split("/")[1]??"";return v0(e)&&e!==As}function FQ(){const t=pp(),e=En();return k.useLayoutEffect(()=>{if(OQ())return;const r=DQ();if(r===As||jQ(e.pathname))return;const i=3600*24*365;document.cookie=`${px}=${r}; path=/; max-age=${i}; samesite=lax`;const s=e.pathname==="/"?`/${r}`:`/${r}${e.pathname}`;t(`${s}${e.search}${e.hash}`,{replace:!0})},[]),null}const qt=(t,e)=>k.lazy(()=>t().then(n=>
419(sessionStorage.removeItem(`chunk-reload:${e}`),{default:n[e]}),n=>{throw sessionStorage.getItem(`chunk-reload:${e}`)||(sessionStorage.setItem(`chunk-reload:${e}`,"1"),window.location.reload()),n})),UQ=qt(()=>$t(()=>import("./DashboardPage-B1EiRBHr.js"),__vite__mapDeps([0,1])),"DashboardPage"),zQ=qt(()=>$t(()=>import("./UploadPage-Cqmfb5gu.js"),__vite__mapDeps([2,3,4])),"UploadPage"),BQ=qt(()=>$t(()=>import("./MasteringPage-DQiaiVrM.js"),__vite__mapDeps([5,6,7,8,9,10,1])),"MasteringPage"),$Q=qt(()=>$t(()=>import("./LibraryPage-Cqa7AXTo.js"),__vite__mapDeps([11,12,9,3])),"LibraryPage"),qQ=qt(()=>$t(()=>import("./AlbumsPage-dH9FyskU.js"),__vite__mapDeps([13,12,14,15])),"AlbumsPage"),WQ=qt(()=>$t(()=>import("./AlbumEditorPage-zhMenjbr.js"),__vite__mapDeps([16,12,14,3,17,6,8,10,15,18])),"AlbumEditorPage"),HQ=qt(()=>$t(()=>import("./TokensPage-436V_sTe.js"),__vite__mapDeps([19,20,21])),"TokensPage"),VQ=qt(()=>$t(()=>import("./EthicsPage-Dux6ZdH6.js"),__vite__mapDeps([22,7,8])),"EthicsPage"),GQ=qt(()=>$t(()=>import("./BlindTestPage-BemjtR_7.js"),__vite__mapDeps([23,7,8,24])),"BlindTestPage"),YQ=qt(()=>$t(()=>import("./TransparencePage-Dy9iqqCF.js"),__vite__mapDeps([25,7,8,24,17])),"TransparencePage"),KQ=qt(()=>$t(()=>import("./LoudnessStreamingPage-_p6Bc4ga.js"),__vite__mapDeps([26,7,8,17])),"LoudnessStreamingPage"),JQ=qt(()=>$t(()=>import("./CGVPage-BvLKgaER.js"),__vite__mapDeps([27,7,8])),"CGVPage"),QQ=qt(()=>$t(()=>import("./LegalNoticePage-BofZORYt.js"),__vite__mapDeps([28,7,8])),"LegalNoticePage"),XQ=qt(()=>$t(()=>import("./PrivacyPage-Dfwi1J_O.js"),__vite__mapDeps([29,7,8])),"PrivacyPage"),ZQ=qt(()=>$t(()=>import("./ContactPage--kSm2Qef.js"),__vite__mapDeps([30,31,21,7,8])),"ContactPage"),eX=qt(()=>$t(()=>import("./HelpPage-MkcxJVZb.js"),__vite__mapDeps([32,7,8,12,33,34,35])),"HelpPage"),tX=qt(()=>$t(()=>import("./StatusPage-BmM--ykF.js"),__vite__mapDeps([36,7,8])),"StatusPage"),nX=qt(()=>$t(()=>import("./AccountPage-DtyYk4eI.js"),__vite__mapDeps([37,7,8,6,38,20,10])),"AccountPage"),rX=qt(()=>$t(()=>import("./DeletionConfirmPage-C4QBtXzF.js"),[]),"DeletionConfirmPage"),iX=qt(()=>$t(()=>import("./AuthPage-8JWgaS9p.js"),__vite__mapDeps([39,35])),"AuthPage"),sX=qt(()=>$t(()=>import("./AdminDashboardPage-B2zF1YQK.js"),__vite__mapDeps([40,12,21,33,17,18,15,38,20,4,10,34,3])),"AdminDashboardPage"),oX=qt(()=>$t(()=>import("./MyTicketsPage-lhylW23L.js"),__vite__mapDeps([41,7,8,34,3])),"MyTicketsPage"),aX=qt(()=>$t(()=>import("./SupportTicketDetailUserPage-DufkrYLx.js"),__vite__mapDeps([42,7,8,35,34,3])),"SupportTicketDetailUserPage"),lX=qt(()=>$t(()=>
419import("./SupportTicketDetailPage-D9enT7u9.js"),__vite__mapDeps([43,12,7,8,33,34,3,31])),"SupportTicketDetailPage");function uX(){const t=Ca(h=>h.pendingFile),e=Ca(h=>h.setPendingFile),{role:n,isLoading:r,isSignedIn:i}=z0(),[s]=TI(),l=s.get("landing")==="1",[u,c]=k.useState(!1);if(k.useEffect(()=>{if(u||!i)return;if(t){c(!0);return}let h=!1;return BK().then(m=>{h||(m&&e(m.file,m.validation),c(!0))}),()=>{h=!0}},[i,t,u,e]),r||i&&!u)return v.jsx("div",{className:"flex min-h-[60vh] items-center justify-center",children:v.jsx("div",{className:"h-8 w-8 animate-spin rounded-full border-2 border-white/20 border-t-white"})});if(!i||!n)return v.jsx(ZT,{});const p=PQ({role:n,hasPendingFile:!!t,forceLanding:l});return p===null?v.jsx(ZT,{}):v.jsx(G7,{to:p,replace:!0})}function cX(){return v.jsx(kI,{children:v.jsxs(gt,{element:v.jsx(iJ,{}),children:[v.jsx(gt,{path:"/",element:v.jsx(uX,{})}),v.jsx(gt,{path:"/auth/*",element:v.jsx(iX,{})}),v.jsx(gt,{path:"/ethics",element:v.jsx(VQ,{})}),v.jsx(gt,{path:"/test-a-l-aveugle",element:v.jsx(GQ,{})}),v.jsx(gt,{path:"/transparence",element:v.jsx(YQ,{})}),v.jsx(gt,{path:"/loudness-streaming",element:v.jsx(KQ,{})}),v.jsx(gt,{path:"/cgv",element:v.jsx(JQ,{})}),v.jsx(gt,{path:"/legal",element:v.jsx(QQ,{})}),v.jsx(gt,{path:"/privacy",element:v.jsx(XQ,{})}),v.jsx(gt,{path:"/contact",element:v.jsx(ZQ,{})}),v.jsx(gt,{path:"/help",element:v.jsx(eX,{})}),v.jsx(gt,{path:"/status",element:v.jsx(tX,{})}),v.jsx(gt,{path:"/account/confirm-deletion",element:v.jsx(rX,{})}),v.jsxs(gt,{element:v.jsx(eP,{}),children:[v.jsx(gt,{path:"/dashboard",element:v.jsx(UQ,{})}),v.jsx(gt,{path:"/upload",element:v.jsx(zQ,{})}),v.jsx(gt,{path:"/mastering/:fileId",element:v.jsx(BQ,{})}),v.jsx(gt,{path:"/library",element:v.jsx($Q,{})}),v.jsx(gt,{path:"/albums",element:v.jsx(qQ,{})}),v.jsx(gt,{path:"/albums/:albumId",element:v.jsx(WQ,{})}),v.jsx(gt,{path:"/tokens",element:v.jsx(HQ,{})}),v.jsx(gt,{path:"/account",element:v.jsx(nX,{})}),v.jsx(gt,{path:"/support/my",element:v.jsx(oX,{})}),v.jsx(gt,{path:"/support/my/:ticketId",element:v.jsx(aX,{})})]}),v.jsx(gt,{element:v.jsx(eP,{}),children:v.jsxs(gt,{element:v.jsx(CQ,{}),children:[v.jsx(gt,{path:"/admin/dashboard",element:v.jsx(sX,{})}),v.jsx(gt,{path:"/admin/tickets/:ticketId",element:v.jsx(lX,{})})]})})]})})}function rP({lang:t}){return v.jsxs(V7,{lang:t,children:[v.jsx(NQ,{}),v.jsx(cX,{})]})}function dX(){return v.jsxs(v.Fragment,{children:[v.jsx(FQ,{}),v.jsxs(kI,{children:[v.jsx(gt,{path:"/en/*",element:v.jsx(rP,{lang:"en"})}),v.jsx(gt,{path:"/*",element:v.jsx(rP,{lang:"fr"})})]})]})}var WM={locale:"en-US",apiKeys:{action__add:"Add new key",action__search:"Search keys",copySecret:{formButtonPrimary__copyAndClose:"Copy & Close",formHint:"For security reasons, we won't allow you to view it again later.",formTitle:'Copy your "{{name}}" API Key now'},createdAndExpirationStatus__expiresOn:"Created {{ createdDate | shortDate('en-US') }} ⢠Expires {{ expiresDate | longDate('en-US') }}",createdAndExpirationStatus__never:"Created {{ createdDate | shortDate('en-US') }} ⢠Never expires",detailsTitle__emptyRow:"No API keys found",formButtonPrimary__add:"Create key",formFieldCaption__expiration__expiresOn:"Expiring {{ date }}",formFieldCaption__expiration__never:"This key will never expire",formFieldOption__expiration__180d:"180 Days",formFieldOption__expiration__1d:"1 Day",formFieldOption__expiration__1y:"1 Year",formFieldOption__expiration__30d:"30 Days",formFieldOption__expiration__60d:"60 Days",formFieldOption__expiration__7d:"7 Days",formFieldOption__expiration__90d:"90 Days",formFieldOption__expiration__never:"Never",formHint:"Provide a name to generate a new key. Youâll be able to revoke it anytime.",formTitle:"Add new API key",lastUsed__days:"{{days}}d ago",lastUsed__hours:"{{hours}}h ago",lastUsed__minutes:"{{minutes}}m ago",lastUsed__months:"{{months}}mo ago",lastUsed__seconds:"{{seconds}}s ago",lastUsed__years:"{{years}}y ago",menuAction__revoke:"Revoke key",revokeConfirmation:{confirmationText:"Revoke",inputLabel:'Type "Revoke" to confirm',formButtonPrimary__revoke:"Revoke key",formHint:"Are you sure you want to delete this Secret key?",formTitle:'Revoke "{{apiKeyName}}" secret key?'},tableHeader__name:"Name",tableHeader__lastUsed:"Last used",tableHeader__actions:"Actions"},backButton:"Back",badge__activePlan:"Active",badge__canceledEndsAt:"Canceled ⢠Ends {{ date | shortDate('en-US') }}",badge__currentPlan:"Current plan",badge__default:"Default",badge__endsAt:"Ends {{ date | shortDate('en-US') }}",badge__expired:"Expired",badge__freeTrial:"Free trial",badge__otherImpersonatorDevice:"Other impersonator device",badge__pastDueAt:"Past due {{ date | shortDate('en-US') }}",badge__pastDuePlan:"Past due",badge__primary:"Primary",badge__renewsAt:"Renews {{ date | shortDate('en-US') }}",badge__requiresAction:"Requires action",badge__startsAt:"Starts {{ date | shortDate('en-US') }}",badge__thisDevice:"This device",badge__trialEndsAt:"Trial ends {{ date | shortDate('en-US') }}",badge__unverified:"Unverified",badge__upcomingPlan:"Upcoming",badge__userDevice:"User device",badge__you:"You",badge__banned:"Banned",billing:{addPaymentMethod__label:"Add payment method",alwaysFree:"Always free",annually:"Annually",availableFeatures:"Available features",billedAnnually:"Billed annually",billedMonthlyOnly:"Only billed monthly",billedAnnuallyOnly:"Only billed annually",cancelFreeTrial:"Cancel free trial",cancelFreeTrialAccessUntil:"Your trial will stay active until {{ date | longDate('en-US') }}. After that, you'll lose access to trial features. You won't be charged.",cancelFreeTrialTitle:"Cancel free trial for {{plan}} plan?",cancelSubscription:"Cancel subscription",cancelSubscriptionAccessUntil:"You can keep using '{{plan}}' features until {{ date | longDate('en-US') }}, after which you will no longer have access.",cancelSubscriptionNoCharge:"You will not be charged for this subscription.",cancelSubscriptionPastDue:"Your subscription will end immediately and you will lose access to all plan features. You will be asked to pay the past due amount on your next subscription.",cancelSubscriptionTitle:"Cancel {{plan}} Subscription?",cannotSubscribeMonthly:"You cannot subscribe to this plan by paying monthly. To subscribe to this plan, you need to choose to pay annually.",cannotSubscribeUnrecoverable:"You cannot subscribe to this plan. Your existing subscription is more expensive than this plan.",checkout:{description__paymentSuccessful:"Your payment was successful.",description__subscriptionSuccessful:"Your new subscription is all set.",downgradeNotice:"You will keep your current subscription and its features until the end of the billing cycle, then you will be switched to this subscription.",emailForm:{subtitle:"Before you can complete your purchase you must add an email address where receipts will be sent.",title:"Add an email address"},lineItems:{title__freeTrialEndsAt:"Trial ends on",title__paymentMethod:"Payment method",title__statementId:"Statement ID",title__subscriptionBegins:"Subscription begins",title__totalPaid:"Total paid"},pastDueNotice:"Your previous subscription was past due, with no payment.",perMonth:"per month",title:"Checkout",title__paymentSuccessful:"Payment was successful!",title__subscriptionSuccessful:"Success!",title__trialSuccess:"Trial successfully started!",totalDueAfterTrial:"Total Due after trial ends in {{days}} days"},credit:"Credit",prorationCredit:"Prorated credit",accountCredit:"Account credit",creditRemainder:"Credit for the remainder of your current subscription.",payerCreditRemainder:"Credit from account balance.",defaultFreePlanActive:"You're currently on the Free plan",free:"Free",getStarted:"Get started",keepFreeTrial:"Keep free trial",keepSubscription:"Keep subscription",manage:"Manage",manageSubscription:"Manage subscription",month:"Month",monthAbbreviation:"mo",monthPerUnit:"Month per {{unitName}}",monthly:"Monthly",pastDue:"Past due",pay:"Pay {{amount}}",paymentMethod:{applePayDescription:{annual:"Annual payment",monthly:"Monthly payment"},dev:{anyNumbers:"Any numbers",cardNumber:"Card number",cvcZip:"CVC, ZIP",developmentMode:"Development mode",expirationDate:"Expiration date",testCardInfo:"Test card information"}},paymentMethods__label:"Payment Methods",popular:"Popular",pricingTable:{billingCycle:"Billing cycle",included:"Included",seatCost:{freeUpToSeats:"Free up to {{endsAfterBlock}} seats",upToSeats:"Up to {{endsAfterBlock}} seats",perSeat:"{{feePerBlockAmount}}/{{periodAbbreviation}} per seat",includedSeats:"{{includedSeats}} seats included",additionalSeats:"({{additionalTierFeePerBlockAmount}}/{{periodAbbreviation}} for additional)",unlimitedSeats:"Unlimited seats",tooltip:{freeForUpToSeats:"Free for up to {{endsAfterBlock}} seats.",additionalSeatsEach:"Additional seats are {{feePerBlockAmount}}/{{period}} each.",firstSeatsIncludedInPlan:"First {{endsAfterBlock}} seats are included in the plan."}}},reSubscribe:"Resubscribe",seats:"Seats",seeAllFeatures:"See all features",startFreeTrial:"Start free trial",startFreeTrial__days:"Start {{days}}
419-day free trial",subscribe:"Subscribe",subscriptionDetails:{beginsOn:"Begins on",currentBillingCycle:"Current billing cycle",endsOn:"Ends on",firstPaymentAmount:"First payment amount",firstPaymentOn:"First payment on",nextPaymentAmount:"Next payment amount",nextPaymentOn:"Next payment on",pastDueAt:"Past due on",renewsAt:"Renews at",subscribedOn:"Subscribed on",title:"Subscription",trialEndsOn:"Trial ends on",trialStartedOn:"Trial started on"},subtotal:"Subtotal",switchPlan:"Switch to this plan",switchToAnnual:"Switch to annual",switchToAnnualWithAnnualPrice:"Switch to annual {{currency}}{{price}} / year",switchToMonthly:"Switch to monthly",switchToMonthlyWithPrice:"Switch to monthly {{currency}}{{price}} / month",totalDue:"Total due",totalDueToday:"Total Due Today",viewFeatures:"View features",viewPayment:"View payment",year:"Year",yearAbbreviation:"yr",yearPerUnit:"Year per {{unitName}}"},configureSSO:{navbar:{title:"Configure Single Sign-On (SSO)"}},createOrganization:{formButtonSubmit:"Create organization",invitePage:{formButtonReset:"Skip"},title:"Create organization"},dates:{lastDay:"Yesterday at {{ date | timeString('en-US') }}",next6Days:"{{ date | weekday('en-US','long') }} at {{ date | timeString('en-US') }}",nextDay:"Tomorrow at {{ date | timeString('en-US') }}",numeric:"{{ date | numeric('en-US') }}",previous6Days:"Last {{ date | weekday('en-US','long') }} at {{ date | timeString('en-US') }}",sameDay:"Today at {{ date | timeString('en-US') }}"},dividerText:"or",footerActionLink__alternativePhoneCodeProvider:"Send code via SMS instead",footerActionLink__useAnotherMethod:"Use another method",footerPageLink__help:"Help",footerPageLink__privacy:"Privacy",footerPageLink__terms:"Terms",formButtonPrimary:"Continue",formButtonPrimary__verify:"Verify",formFieldAction__forgotPassword:"Forgot password?",formFieldError__matchingPasswords:"Passwords match.",formFieldError__notMatchingPasswords:"Passwords don't match.",formFieldError__verificationLinkExpired:"The verification link expired. Please request a new link.",formFieldHintText__optional:"Optional",formFieldHintText__slug:"A slug is a human-readable ID that must be unique. Itâs often used in URLs.",formFieldInputPlaceholder__apiKeyDescription:"Explain why youâre generating this key",formFieldInputPlaceholder__apiKeyExpirationDate:"Select date",formFieldInputPlaceholder__apiKeyName:"Enter your secret key name",formFieldInputPlaceholder__backupCode:"Enter backup code",formFieldInputPlaceholder__confirmDeletionUserAccount:"Delete account",formFieldInputPlaceholder__emailAddress:"Enter your email address",formFieldInputPlaceholder__emailAddress_username:"Enter email or username",formFieldInputPlaceholder__emailAddresses:"[email protected], [email protected]",formFieldInputPlaceholder__firstName:"First name",formFieldInputPlaceholder__lastName:"Last name",formFieldInputPlaceholder__organizationDomain:"example.com",formFieldInputPlaceholder__organizationDomainEmailAddress:"[email protected]",formFieldInputPlaceholder__organizationName:"Organization name",formFieldInputPlaceholder__organizationSlug:"my-org",formFieldInputPlaceholder__password:"Enter your password",formFieldInputPlaceholder__signUpPassword:"Create a password",formFieldInputPlaceholder__phoneNumber:"Enter your phone number",formFieldInputPlaceholder__username:"Enter your username",formFieldInput__emailAddress_format:"Example format: [email protected]",formFieldLabel__apiKey:"API key",formFieldLabel__apiKeyDescription:"Description",formFieldLabel__apiKeyExpiration:"Expiration",formFieldLabel__apiKeyName:"Secret key name",formFieldLabel__automaticInvitations:"Enable automatic invitations for this domain",formFieldLabel__backupCode:"Backup code",formFieldLabel__confirmDeletion:"Confirmation",formFieldLabel__confirmPassword:"Confirm password",formFieldLabel__currentPassword:"Current password",formFieldLabel__emailAddress:"Email address",formFieldLabel__emailAddress_username:"Email address or username",formFieldLabel__emailAddresses:"Email addresses",formFieldLabel__firstName:"First name",formFieldLabel__lastName:"Last name",formFieldLabel__newPassword:"New password",formFieldLabel__organizationDomain:"Domain",formFieldLabel__organizationDomainDeletePending:"Delete pe
419nding invitations and suggestions",formFieldLabel__organizationDomainEmailAddress:"Verification email address",formFieldLabel__organizationDomainEmailAddressDescription:"Enter an email address under this domain to receive a code and verify this domain.",formFieldLabel__organizationName:"Name",formFieldLabel__organizationSlug:"Slug",formFieldLabel__passkeyName:"Name of passkey",formFieldLabel__password:"Password",formFieldLabel__phoneNumber:"Phone number",formFieldLabel__role:"Role",formFieldLabel__signOutOfOtherSessions:"Sign out of all other devices",formFieldLabel__username:"Username",impersonationFab:{action__signOut:"Sign out",title:"Signed in as {{identifier}}"},lastAuthenticationStrategy:"Last used",maintenanceMode:"We are currently undergoing maintenance, but don't worry, it shouldn't take more than a few minutes.",membershipRole__admin:"Admin",membershipRole__basicMember:"Member",membershipRole__guestMember:"Guest",organizationList:{action__createOrganization:"Create organization",action__invitationAccept:"Join",action__suggestionsAccept:"Request to join",createOrganization:"Create Organization",invitationAcceptedLabel:"Joined",subtitle:"to continue to {{applicationName}}",suggestionsAcceptedLabel:"Pending approval",title:"Choose an account",titleWithoutPersonal:"Choose an organization"},oauthConsent:{action__allow:"Allow",action__deny:"Deny",offlineAccessNotice:" You'll stay signed in until you sign out or revoke access.",redirectNotice:"If you allow access, this app will redirect you to {{domainAction}}.",redirectUriModal:{subtitle:"Make sure you trust {{applicationName}} and that this URL belongs to {{applicationName}}.",title:"Redirect URL"},scopeList:{title:"This will allow {{applicationName}} access to:"},subtitle:"wants to access {{applicationName}} on behalf of {{identifier}}",viewFullUrl:"View full URL",warning:"Make sure that you trust {{applicationName}} ({{domainAction}}). You may be sharing sensitive data with this site or app."},organizationProfile:{apiKeysPage:{title:"API keys"},badge__automaticInvitation:"Automatic invitations",badge__automaticSuggestion:"Automatic suggestions",badge__manualInvitation:"No automatic enrollment",badge__unverified:"Unverified",billingPage:{paymentHistorySection:{empty:"No payment history",notFound:"Payment attempt not found",tableHeader__amount:"Amount",tableHeader__date:"Date",tableHeader__status:"Status"},paymentMethodsSection:{actionLabel__default:"Make default",actionLabel__remove:"Remove",add:"Add new payment method",addSubtitle:"Add a new payment method to your account.",cancelButton:"Cancel",formButtonPrimary__add:"Add Payment Method",formButtonPrimary__pay:"Pay {{amount}}",payWithTestCardButton:"Pay with test card",removeMethod:{messageLine1:"{{identifier}} will be removed from this account.",messageLine2:"You will no longer be able to use this payment method and any recurring subscriptions dependent on it will no longer work.",successMessage:"{{paymentMethod}} has been removed from your account.",title:"Remove payment method"},title:"Payment methods"},start:{headerTitle__payments:"Payments",headerTitle__plans:"Plans",headerTitle__statements:"Statements",headerTitle__subscriptions:"Subscription"},statementsSection:{empty:"No statements to display",itemCaption__paidForPlan:"Paid for {{plan}} {{period}} plan",itemCaption__proratedCredit:"Prorated credit for partial usage of previous subscription",itemCaption__payerCredit:"Credit from account balance",itemCaption__subscribedAndPaidForPlan:"Subscribed and paid for {{plan}} {{period}} plan",notFound:"Statement not found",tableHeader__amount:"Amount",tableHeader__date:"Date",title:"Statements",totalPaid:"Total paid"},subscriptionsListSection:{actionLabel__manageSubscription:"Manage",actionLabel__newSubscription:"Subscribe to a plan",actionLabel__switchPlan:"Switch plans",tableHeader__edit:"Edit",tableHeader__plan:"Plan",tableHeader__startDate:"Start date",title:"Subscription"},subscriptionsSection:{actionLabel__default:"Manage"},switchPlansSection:{title:"Switch plans"},title:"Billing"},createDomainPage:{subtitle:"Add the domain to verify. Users with email addresses at this domain can join the organization automatically or request to join.",title:"Add domain"},invitePage:{detailsTitle__inviteFailed:"The invitations could not be sent. There are already pending invitations for the following email addresses: {{email_addresses}}.",formButtonPrimary__continue:"Send invitations",selectDropdown__role:"Select role",subtitle:"Enter or paste one or more email addresses, separated by spaces or commas.",successMessage:"Invitations successfully sent",title:"Invite new members"},membersPage:{action__invite:"Invite",action__search:"Search",activeMembersTab:{menuAction__remove:"Remove member",tableHeader__actions:"Actions",tableHeader__joined:"Joined",tableHeader__role:"Role",tableHeader__user:"User"}
419,alerts:{roleSetMigrationInProgress:{subtitle:"We are updating the available roles. Once thatâs done, youâll be able to update roles again.",title:"Roles are temporarily locked"}},detailsTitle__emptyRow:"No members to display",invitationsTab:{autoInvitations:{headerSubtitle:"Invite users by connecting an email domain with your organization. Anyone who signs up with a matching email domain will be able to join the organization anytime.",headerTitle:"Automatic invitations",primaryButton:"Manage verified domains"},table__emptyRow:"No invitations to display"},invitedMembersTab:{menuAction__revoke:"Revoke invitation",tableHeader__invited:"Invited"},requestsTab:{autoSuggestions:{headerSubtitle:"Users who sign up with a matching email domain, will be able to see a suggestion to request to join your organization.",headerTitle:"Automatic suggestions",primaryButton:"Manage verified domains"},menuAction__approve:"Approve",menuAction__reject:"Reject",tableHeader__requested:"Requested access",table__emptyRow:"No requests to display"},start:{headerTitle__invitations:"Invitations",headerTitle__members:"Members",headerTitle__requests:"Requests"}},navbar:{apiKeys:"API keys",billing:"Billing",description:"Manage your organization.",general:"General",members:"Members",title:"Organization"},plansPage:{alerts:{noPermissionsToManageBilling:"You do not have permissions to manage billing for this organization.",planMembershipLimitExceeded:"Your organization has {{count}} members (including pending invitations). This plan only allows {{limit}} members."},title:"Plans"},profilePage:{dangerSection:{deleteOrganization:{actionDescription:'Type "{{organizationName}}" below to continue.',messageLine1:"Are you sure you want to delete this organization?",messageLine2:"This action is permanent and irreversible.",successMessage:"You have deleted the organization.",title:"Delete organization"},leaveOrganization:{actionDescription:'Type "{{organizationName}}" below to continue.',messageLine1:"Are you sure you want to leave this organization? You will lose access to this organization and its applications.",messageLine2:"This action is permanent and irreversible.",successMessage:"You have left the organization.",title:"Leave organization"},title:"Danger"},domainSection:{menuAction__manage:"Manage",menuAction__remove:"Delete",menuAction__verify:"Verify",primaryButton:"Add domain",subtitle:"Allow users to join the organization automatically or request to join based on a verified email domain.",title:"Verified domains"},successMessage:"The organization has been updated.",title:"Update profile"},removeDomainPage:{messageLine1:"The email domain {{domain}} will be removed.",messageLine2:"Users wonât be able to join the organization automatically after this.",successMessage:"{{domain}} has been removed.",title:"Remove domain"},start:{headerTitle__general:"General",headerTitle__members:"Members",membershipSeatUsageLabel:"{{count}} of {{limit}} seats used",profileSection:{primaryButton:"Update profile",title:"Organization
vendor: 4,294 bytes, line 419
419Profile",uploadAction__title:"Logo"}},verifiedDomainPage:{dangerTab:{calloutInfoLabel:"Removing this domain will affect invited users.",removeDomainActionLabel__remove:"Remove domain",removeDomainSubtitle:"Remove this domain from your verified domains",removeDomainTitle:"Remove domain"},enrollmentTab:{automaticInvitationOption__description:"Users are automatically invited to join the organization when they sign-up and can join anytime.",automaticInvitationOption__label:"Automatic invitations",automaticSuggestionOption__description:"Users receive a suggestion to request to join, but must be approved by an admin before they are able to join the organization.",automaticSuggestionOption__label:"Automatic suggestions",calloutInfoLabel:"Changing the enrollment mode will only affect new users.",calloutInvitationCountLabel:"Pending invitations sent to users: {{count}}",calloutSuggestionCountLabel:"Pending suggestions sent to users: {{count}}",manualInvitationOption__description:"Users can only be invited manually to the organization.",manualInvitationOption__label:"No automatic enrollment",subtitle:"Choose how users from this domain can join the organization."},start:{headerTitle__danger:"Danger",headerTitle__enrollment:"Enrollment options"},subtitle:"The domain {{domain}} is now verified. Continue by selecting enrollment mode.",title:"Update {{domain}}"},verifyDomainPage:{formSubtitle:"Enter the verification code sent to your email address",formTitle:"Verification code",resendButton:"Didn't receive a code? Resend",subtitle:"The domain {{domainName}} needs to be verified via email.",subtitleVerificationCodeScreen:"A verification code was sent to {{emailAddress}}. Enter the code to continue.",title:"Verify domain"}},organizationSwitcher:{action__closeOrganizationSwitcher:"Close organization switcher",action__createOrganization:"Create organization",action__invitationAccept:"Join",action__manageOrganization:"Manage",action__openOrganizationSwitcher:"Open organization switcher",action__suggestionsAccept:"Request to join",notSelected:"No organization selected",personalWorkspace:"Personal account",suggestionsAcceptedLabel:"Pending approval"},paginationButton__next:"Next",paginationButton__previous:"Previous",paginationRowText__displaying:"Displaying",paginationRowText__of:"of",reverification:{alternativeMethods:{actionLink:"Get help",actionText:"Donât have any of these?",blockButton__backupCode:"Use a backup code",blockButton__emailCode:"Email code to {{identifier}}",blockButton__passkey:"Use your passkey",blockButton__password:"Continue with your password",blockButton__phoneCode:"Send SMS code to {{identifier}}",blockButton__totp:"Use your authenticator app",getHelp:{blockButton__emailSupport:"Email support",content:"If you have trouble verifying your account, email us and we will work with you to restore access as soon as possible.",title:"Get help"},subtitle:"Facing issues? You can use any of these methods for verification.",title:"Use another method"},backupCodeMfa:{subtitle:"Enter the backup code you received when setting up two-step authentication",title:"Enter a backup code"},emailCode:{formTitle:"Verification code",resendButton:"Didn't receive a code? Resend",subtitle:"Enter the code sent to your email to continue",title:"Verification required"},noAvailableMethods:{message:"Cannot proceed with verification. No suitable authentication factor is configured",subtitle:"An error occurred",title:"Cannot verify your account"},passkey:{blockButton__passkey:"Use your passkey",subtitle:"Using your passkey confirms your identity. Your device may ask for your fingerprint, face, or screen lock.",title:"Use your passkey"},password:{actionLink:"Use another method",subtitle:"Enter your current password to continue",title:"Verification required"},phoneCode:{formTitle:"Verification code",resendButton:"Didn't receive a code? Resend",subtitle:"Enter the code sent to your phone to continue",title:"Verification required"},phoneCodeMfa:{formTitle:"Verification code",resendButton:"Didn't receive a code? Resend",subtitle:"Enter the code sent to your phone to continue",title:"Verification required"},totpMfa:{formTitle:"Verification code",subtitle:"Enter the code generated by your authenticator app to continue",title:"Verification required"}},s
419ignIn:{accountSwitcher:{action__addAccount:"Add account",action__signOutAll:"Sign out of all accounts",subtitle:"Select the account with which you wish to continue.",title:"Choose an account"},alternativeMethods:{actionLink:"Get help",actionText:"Donât have any of these?",blockButton__backupCode:"Use a backup code",blockButton__emailCode:"Email code to {{identifier}}",blockButton__emailLink:"Email link to {{identifier}}",blockButton__passkey:"Sign in with your passkey",blockButton__password:"Sign in with your password",blockButton__phoneCode:"Send SMS code to {{identifier}}",blockButton__totp:"Use your authenticator app",getHelp:{blockButton__emailSupport:"Email support",content:"If you have trouble signing into your account, email us and we will work with you to restore access as soon as possible.",title:"Get help"},subtitle:"Facing issues? You can use any of these methods to sign in.",title:"Use another method"},alternativePhoneCodeProvider:{formTitle:"Verification code",resendButton:"Didn't receive a code? Resend",subtitle:"to continue to {{applicationName}}",title:"Check your {{provider}}"}
419,backupCodeMfa:{subtitle:"Your backup code is the one you got when setting up two-step authentication.",title:"Enter a backup code"},emailCode:{formTitle:"Verification code",resendButton:"Didn't receive a code? Resend",subtitle:"to continue to {{applicationName}}",title:"Check your email"},emailCodeMfa:{formTitle:"Check your email",resendButton:"Didn't receive a code? Resend",subtitle:"to continue to {{applicationName}}",title:"Check your email"},emailLink:{clientMismatch:{subtitle:"To continue, open the verification link on the device and browser from which you initiated the sign-in",title:"Verification link is invalid for this device"},expired:{subtitle:"Return to the original tab to continue.",title:"This verification link has expired"},failed:{subtitle:"Return to the original tab to continue.",title:"This verification link is invalid"},formSubtitle:"Use the verification link sent to your email",formTitle:"Verification link",loading:{subtitle:"You will be redirected soon",title:"Signing in..."},resendButton:"Didn't receive a link? Resend",subtitle:"to continue to {{applicationName}}",title:"Check your email",unusedTab:{title:"You may close this tab"},verified:{subtitle:"You will be redirected soon",title:"Successfully signed in"},verifiedSwitchTab:{subtitle:"Return to original tab to continue",subtitleNewTab:"Return to the newly opened tab to continue",titleNewTab:"Signed in on other tab"}},emailLinkMfa:{formSubtitle:"Use the verification link sent to your email",resendButton:"Didn't receive a link? Resend",subtitle:"to continue to {{applicationName}}",title:"Check your email"},enterpriseConnections:{subtitle:"Select the enterprise account with which you wish to continue.",title:"Choose your enterprise account"},forgotPassword:{formTitle:"Reset password code",resendButton:"Didn't receive a code? Resend",subtitle:"to reset your password",subtitle_email:"First, enter the code sent to your email address",subtitle_phone:"First, enter the code sent to your phone",title:"Reset password"},forgotPasswordAlternativeMethods:{blockButton__resetPassword:"Reset your password",label__alternativeMethods:"Or, sign in with another method",title:"Forgot Password?"},newDeviceVerificationNotice:"You're signing in from a new device. We're asking for verification to keep your account secure.",noAvailableMethods:{message:"Cannot proceed with sign in. There's no available authentication factor.",subtitle:"An error occurred",title:"Cannot sign in"},passkey:{subtitle:"Using your passkey confirms it's you. Your device may ask for your fingerprint, face or screen lock.",title:"Use your passkey"},password:{actionLink:"Use another method",subtitle:"Enter the password associated with your account",title:"Enter your password"},passwordCompromised:{title:"Password compromised"},passwordPwned:{title:"Password compromised"},passwordUntrusted:{title:"Password untrusted"},phoneCode:{formTitle:"Verification code",resendButton:"Didn't receive a code? Resend",subtitle:"to continue to {{applicationName}}",title:"Check your phone"},phoneCodeMfa:{formTitle:"Verification code",resendButton:"Didn't receive a code? Resend",subtitle:"To continue, please enter the verification code sent to your phone",title:"Check your phone"},resetPassword:{formButtonPrimary:"Reset Password",requiredMessage:"For security reasons, it is required to reset your password.",successMessage:"Your password was successfully changed. Signing you in, please wait a moment.",title:"Set new password"},resetPasswordMfa:{detailsLabel:"We need to verify your identity before resetting your password."},start:{actionLink:"Sign up",actionLink__join_waitlist:"Join waitlist",actionLink__use_email:"Use email",actionLink__use_email_username:"Use email or username",actionLink__use_passkey:"Use passkey instead",actionLink__use_phone:"Use phone",actionLink__use_username:"Use username",actionText:"Donât have an account?",actionText__join_waitlist:"Want early access?",alternativePhoneCodeProvider:{actionLink:"Use another method",label:"{{provider}} phone number",subtitle:"Enter your phone number to get a verification code on {{provider}}.",title:"Sign in to {{applicationName}} with {{provider}}"},subtitle:"Welcome back! Please sign in to continue",subtitleCombined:void 0,title:"Sign in to {{applicationName}}
419",titleCombined:"Continue to {{applicationName}}"},totpMfa:{formTitle:"Verification code",subtitle:"To continue, please enter the verification code generated by your authenticator app",title:"Two-step verification"},web3Solana:{subtitle:"Select a wallet below to sign in",title:"Sign in with Solana"}},signInEnterPasswordTitle:"Enter your password",signUp:{alternativePhoneCodeProvider:{resendButton:"Didn't receive a code? Resend",subtitle:"Enter the verification code sent to your {{provider}}",title:"Verify your {{provider}}"},continue:{actionLink:"Sign in",actionText:"Already have an account?",subtitle:"Please fill in the remaining details to continue.",title:"Fill in missing fields"},emailCode:{formSubtitle:"Enter the verification code sent to your email address",formTitle:"Verification code",resendButton:"Didn't receive a code? Resend",subtitle:"Enter the verification code sent to your email",title:"Verify your email"},emailLink:{clientMismatch:{subtitle:"To continue, open the verification link on the device and browser from which you initiated the sign-up",title:"Verification link is invalid for this device"},formSubtitle:"Use the verification link sent to your email address",formTitle:"Verification link",loading:{title:"Signing up..."},resendButton:"Didn't receive a link? Resend",subtitle:"to continue to {{applicationName}}",title:"Verify your email",verified:{title:"Successfully signed up"},verifiedSwitchTab:{subtitle:"Return to the newly opened tab to continue",subtitleNewTab:"Return to previous tab to continue",title:"Successfully verified email"}},enterpriseConnections:{subtitle:"Select the enterprise account with which you wish to continue.",title:"Choose your enterprise account"},legalConsent:{checkbox:{label__onlyPrivacyPolicy:'I agree to the {{ privacyPolicyLink || link("Privacy Policy") }}',label__onlyTermsOfService:'I agree to the {{ termsOfServiceLink || link("Terms of Service") }}',label__termsOfServiceAndPrivacyPolicy:'I agree to the {{ termsOfServiceLink || link("Terms of Service") }} and {{ privacyPolicyLink || link("Privacy Policy") }}'},continue:{subtitle:"Please read and accept the terms to continue",title:"Legal consent"}},phoneCode:{formSubtitle:"Enter the verification code sent to your phone number",formTitle:"Verification code",resendButton:"Didn't receive a code? Resend",subtitle:"Enter the verification code sent to your phone",title:"Verify your phone"},restrictedAccess:{actionLink:"Sign in",actionText:"Already have an account?",blockButton__emailSupport:"Email support",blockButton__joinWaitlist:"Join waitlist",subtitle:"Sign ups are currently disabled. If you believe you should have access, please contact support.",subtitleWaitlist:"Sign ups are currently disabled. To be the first to know when we launch, join the waitlist.",title:"Access restricted"},start:{actionLink:"Sign in",actionLink__use_email:"Use email instead",actionLink__use_phone:"Use phone instead",actionText:"Already have an account?",alternativePhoneCodeProvider:{actionLink:"Use another method",label:"{{provider}} phone number",subtitle:"Enter your phone number to get a verification code on {{provider}}.",title:"Sign up to {{applicationName}} with {{provider}}"},subtitle:"Welcome! Please fill in the details to get started.",subtitleCombined:"Welcome! Please fill in the details to get started.",title:"Create your account",titleCombined:"Create your account"},web3Solana:{subtitle:"Select a wallet below to sign up",title:"Sign up with Solana"}},socialButtonsBlockButton:"Continue with {{provider|titleize}}",socialButtonsBlockButtonManyInView:"{{provider|titleize}}",taskChooseOrganization:{alerts:{organizationAlreadyExists:"An organization already exists for the detected company name ({{organizationName}}) and {{organizationDomain}}. Join by invitation."},chooseOrganization:{action__createOrganization:"Create new organization",action__invitationAccept:"Join",action__suggestionsAccept:"Request to join",subtitle:"Join an existing organization or create a new one",subtitle__createOrganizationDisabled:"Join an existing organization",suggestionsAcceptedLabel:"Pending approval",title:"Cho
419ose an organization"},createOrganization:{formButtonReset:"Cancel",formButtonSubmit:"Continue",formFieldInputPlaceholder__name:"My Organization",formFieldInputPlaceholder__slug:"my-organization",formFieldLabel__name:"Name",formFieldLabel__slug:"Slug",subtitle:"Enter your organization details to continue",title:"Setup your organization"},organizationCreationDisabled:{subtitle:"Contact your organization admin for an invitation.",title:"You must belong to an organization"},signOut:{actionLink:"Sign out",actionText:"Signed in as {{identifier}}"}},taskResetPassword:{formButtonPrimary:"Reset Password",signOut:{actionLink:"Sign out",actionText:"Signed in as {{identifier}}"},subtitle:"Your account requires a new password before you can continue",title:"Reset your password"},taskSetupMfa:{badge:"Two-step verification setup",signOut:{actionLink:"Sign out",actionText:"Signed in as {{identifier}}"},smsCode:{addPhone:{formButtonPrimary:"Continue",infoText:"A text message containing a verification code will be sent to this phone number. Message and data rates may apply."},addPhoneNumber:"Add phone number",cancel:"Cancel",subtitle:"Choose phone number you want to use for SMS code two-step verification",success:{finishButton:"Continue",message1:"Two-step verification is now enabled. When signing in, you will need to enter a verification code sent to this phone number as an additional step.",message2:"Save these backup codes and store them somewhere safe. If you lose access to your authentication device, you can use backup codes to sign in.",title:"SMS code verification enabled"},title:"Add SMS code verification",verifyPhone:{formButtonPrimary:"Continue",formTitle:"Verification code",resendButton:"Didn't receive a code? Resend",subtitle:"Enter the verification code sent to",title:"Verify your phone number"}},start:{methodSelection:{phoneCode:"SMS code",totp:"Authenticator application"},subtitle:"Choose which method you prefer to protect your account with an extra layer of security",title:"Set up two-step verification"},totpCode:{addAuthenticatorApp:{buttonAbleToScan__nonPrimary:"Scan QR code instead",buttonUnableToScan__nonPrimary:"Can't scan QR code?",formButtonPrimary:"Continue",formButtonReset:"Cancel",infoText__ableToScan:"Set up a new sign-in method in your authenticator app and scan the following QR code to link it to your account.",infoText__unableToScan:"Set up a new sign-in method in your authenticator and enter the Key provided below.",inputLabel__unableToScan1:"Make sure Time-based or One-time passwords is enabled, then finish linking your account."},success:{finishButton:"Continue",message1:"Two-step verification is now enabled. When signing in, you will need to enter a verification code from this authenticator as an additional step.",message2:"Save these backup codes and store them somewhere safe. If you lose access to your authentication device, you can use backup codes to sign in.",title:"Authenticator application verification enabled"},title:"Add authenticator application",verifyTotp:{formButtonPrimary:"Continue",formButtonReset:"Cancel",formTitle:"Verification code",subtitle:"Enter verification code generated by your authenticator",title:"Add authenticator application"}}},unstable__errors:{already_a_member_in_organization:"{{email}} is already a member of the organization.",api_key_name_already_exists:"API Key name already exists.",api_key_usage_exceeded:"You have reached your usage limit. You can remove the limit by upgrading to a paid plan.",avatar_file_size_exceeded:"File size exceeds the maximum limit of 10MB. Please choose a smaller file.",avatar_file_type_invalid:"File type not supported. Please upload a JPG, PNG, GIF, or WEBP image.",captcha_invalid:void 0,captcha_unavailable:"Sign up unsuccessful due to failed bot validation. Please refresh the page to try again or reach out to support for more assistance.",form_code_incorrect:void 0,form_email_address_blocked:void 0,form_identifier_exists__email_address:void 0,form_identifier_exists__phone_number:void 0,form_identifier_exists__username:void 0,form_identifier_not_found:void 0,form_new_password_matches_current:"New password cannot be the same as the current password.",form_param_format_invalid:void 0,form_param_format_invalid__email_address:void 0,form_param_format_invalid__phone_number:void 0,form_param_max_length_exceeded__first_name:void 0,form_param_max_length_exceeded__last_name:void 0,form_param_max_length_exceeded__name:void 0,form_param_nil:void 0,form_param_type_invalid:void 0,form_param_type_invalid__email_address:void 0,form_param_type_invalid__phone_number:void 0,form_param_value_invalid:void 0,form_password_compromised__sign_in:void 0,form_password_incorrect:void 0,form_password_length_too_short:"Your password is too short. It must be at least 8 characters long.",form_password_not_strong_enough:"Your password is not strong enough.",form_password_or_identifier_incorrect:void 0,form_password_pwned:"This password has been found as part of a breach and can not be used, please try another password instead.",form_password_pwned__sign_in:"This password has been found as part of a breach and can not be used, please reset your password.",form_password_size_in_bytes_exceeded:void 0,form_password_untrusted__sign_in:"Your password may be compromised. To protect your account, please continue with an alternative sign-in method. You will be required to reset your password after signing in.",form_password_validation_failed:void 0,form_username_invalid_character:void 0,form_username_invalid_length:"Your username must be between {{min_length}} and {{max_length}} characters long.",form_username_needs_non_number_char:"Your username must contain at least one non-numeric character.",identification_deletion_failed:void 0,not_allowed_access:void 0,organization_domain_blocked:void 0,organization_domain_common:void 0,organization_domain_exists_for_enterprise_connection:void 0,organization_membership_quota_exceeded:"You have reached your limit of organization memberships, including outstanding invitations.",organization_minimum_permissions_needed:void 0,organization_not_found_or_unauthorized:"You are no longer a member of this organization. Please choose or create another one.",organization_not_found_or_unauthorized_with_create_organization_disabled:"You are no longer a member of this organization. Please choose another one.",passkey_already_exists:"A passkey is already registered with this device.",passkey_not_supported:"Passkeys are not supported on this device.",passkey_pa_not_supported:"Registration requires a platform authenticator but the device does not support it.",passkey_registration_cancelled:"Passkey registration was cancelled or timed out.",passkey_retrieval_cancelled:"Passkey verification was cancelled or timed out.",passwordComplexity:{maximumLength:"less than {{length}} characters",minimumLength:"{{length}} or more characters",requireLowercase:"a lowercase letter",requireNumbers:"a number",requireSpecialCharacter:"a special character",requireUppercase:"an uppercase letter",sentencePrefix:"Your password must contain"},phone_number_exists:void 0,session_exists:void 0,web3_missing_identifier:"A Web3 Wallet extension cannot be found. Please install one to continue.",web3_signature_request_rejected:"You have rejected the signature request. Please try again to continue.",web3_solana_signature_generation_failed:"An error occurred while generating the signature. Please try again to continue.",zxcvbn:{couldBeStronger:"Your password works, but could be stronger. Try adding more characters.",goodPassword:"Your password meets all the necessary requirements.",notEnough:"Your password is not strong enough.",suggestions:{allUppercase:"Capitalize some, but not all letters.",anotherWord:"Add more words that are less common.",associatedYears:"Avoid years that are associated with you.",capitalization:"Capitalize more than the first letter.",dates:"Avoid dates and years that are associated with you.",l33t:"Avoid predictable letter substitutions like '@' for 'a'.",longerKeyboardPattern:"Use longer keyboard patterns and change typing direction multiple times.",noNeed:"You can create strong passwords without using symbols, numbers, or uppercase letters.",pwned:"If you use this password elsewhere, you should change it.",recentYears:"Avoid recent years.",repeated:"Avoid repeated words and characters.",reverseWords:"Avoid reversed spellings of common words.",sequences:"Avoid common character sequences.",useWords:"Use multiple words, but avoid common phrases."},warnings:{common:"This is a commonly used password.",commonNames:"Common names and surnames are easy to guess.",dates:"Dates are easy to guess.",extendedRepeat:'Repeated character patterns like "abcabcabc" are easy to guess.',keyPattern:"Short keyboard patterns are easy to guess.",namesByThemselves:"Single names or surnames are easy to guess.",pwned:"Your password was exposed by a data breach on the Internet.",recentYears:"Recent years are easy to guess.",sequences:'Common character sequences like "abc" are easy to guess.',similarToCommon:"This is similar to a commonly used password.",simpleRepeat:'Repeated characters like "aaa" are easy to guess.',straightRow:"Straight rows of keys on your keyboard are easy to guess.",topHundred:"This is a frequently used password.",topTen:"This is a heavily used password.",userInputs:"There should not be any personal or page related data.",wordByItself:"Single words are easy to guess."}}},userButton:{action__addAccount:"Add account",action__closeUserMe
419nu:"Close user menu",action__manageAccount:"Manage account",action__openUserMenu:"Open user menu",action__signOut:"Sign out",action__signOutAll:"Sign out of all accounts"},userProfile:{apiKeysPage:{title:"API keys"},backupCodePage:{actionLabel__copied:"Copied!",actionLabel__copy:"Copy all",actionLabel__download:"Download .txt",actionLabel__print:"Print",infoText1:"Backup codes will be enabled for this account.",infoText2:"Keep the backup codes secret and store them securely. You may regenerate backup codes if you suspect they have been compromised.",subtitle__codelist:"Store them securely and keep them secret.",successMessage:"Backup codes are now enabled. You can use one of these to sign in to your account, if you lose access to your authentication device. Each code can only be used once.",successSubtitle:"You can use one of these to sign in to your account, if you lose access to your authentication device.",title:"Add backup code verification",title__codelist:"Backup codes"},billingPage:{paymentHistorySection:{empty:"No payment history",notFound:"Payment attempt not found",tableHeader__amount:"Amount",tableHeader__date:"Date",tableHeader__status:"Status"},paymentMethodsSection:{actionLabel__default:"Make default",actionLabel__remove:"Remove",add:"Add new payment method",addSubtitle:"Add a new payment method to your account.",cancelButton:"Cancel",formButtonPrimary__add:"Add Payment Method",formButtonPrimary__pay:"Pay {{amount}}",payWithTestCardButton:"Pay with test card",removeMethod:{messageLine1:"{{identifier}} will be removed from this account.",messageLine2:"You will no longer be able to use this payment source and any recurring subscriptions dependent on it will no longer work.",successMessage:"{{paymentMethod}} has been removed from your account.",title:"Remove payment method"},title:"Payment methods"},start:{headerTitle__payments:"Payments",headerTitle__plans:"Plans",headerTitle__statements:"Statements",headerTitle__subscriptions:"Subscription"},statementsSection:{empty:"No statements to display",itemCaption__paidForPlan:"Paid for {{plan}} {{period}} plan",itemCaption__proratedCredit:"Prorated credit for partial usage of previous subscription",itemCaption__payerCredit:"Credit from account balance",itemCaption__subscribedAndPaidForPlan:"Subscribed and paid for {{plan}} {{period}} plan",notFound:"Statement not found",tableHeader__amount:"Amount",tableHeader__date:"Date",title:"Statements",totalPaid:"Total paid"},subscriptionsListSection:{actionLabel__manageSubscription:"Manage",actionLabel__newSubscription:"Subscribe to a plan",actionLabel__switchPlan:"Switch plans
vendor: 10,518 bytes, line 419
419",tableHeader__edit:"Edit",tableHeader__plan:"Plan",tableHeader__startDate:"Start date",title:"Subscription"},subscriptionsSection:{actionLabel__default:"Manage"},switchPlansSection:{title:"Switch plans"},title:"Billing"},connectedAccountPage:{formHint:"Select a provider to connect your account.",formHint__noAccounts:"There are no available external account providers.",removeResource:{messageLine1:"{{identifier}} will be removed from this account.",messageLine2:"You will no longer be able to use this connected account and any dependent features will no longer work.",successMessage:"{{connectedAccount}} has been removed from your account.",title:"Remove connected account"},socialButtonsBlockButton:"{{provider|titleize}}",successMessage:"The provider has been added to your account",title:"Add connected account"},deletePage:{actionDescription:'Type "Delete account" below to continue.',confirm:"Delete account",messageLine1:"Are you sure you want to delete your account? Some associated data may be retained. To request full data deletion, please contact support.",messageLine2:"This action is permanent and irreversible.",title:"Delete account"},emailAddressPage:{emailCode:{formHint:"An email containing a verification code will be sent to this email address.",formSubtitle:"Enter the verification code sent to {{identifier}}",formTitle:"Verification code",resendButton:"Didn't receive a code? Resend",successMessage:"The email {{identifier}} has been added to your account."},emailLink:{formHint:"An email containing a verification link will be sent to this email address.",formSubtitle:"Click on the verification link in the email sent to {{identifier}}",formTitle:"Verification link",resendButton:"Didn't receive a link? Resend",successMessage:"The email {{identifier}} has been added to your account."},enterpriseSSOLink:{formButton:"Click to sign-in",formSubtitle:"Complete the sign-in with {{identifier}}"},formHint:"You'll need to verify this email address before it can be added to your account.",removeResource:{messageLine1:"{{identifier}} will be removed from this account.",messageLine2:"You will no longer be able to sign in using this email address.",successMessage:"{{emailAddress}} has been removed from your account.",title:"Remove email address"},title:"Add email address",verifyTitle:"Verify email address"},formButtonPrimary__add:"Add",formButtonPrimary__continue:"Continue",formButtonPrimary__finish:"Finish",formButtonPrimary__remove:"Remove",formButtonPrimary__save:"Save",formButtonReset:"Cancel",mfaPage:{formHint:"Select a method to add.",title:"Add two-step verification"},mfaPhoneCodePage:{backButton:"Use existing number",primaryButton__addPhoneNumber:"Add phone number",removeResource:{messageLine1:"{{identifier}} will be no longer receiving verification codes when signing in.",messageLine2:"Your account may not be as secure. Are you sure you want to continue?",successMessage:"SMS code two-step verification has been removed for {{mfaPhoneCode}}",title:"Remove two-step verification"},subtitle__availablePhoneNumbers:"Select an existing phone number to register for SMS code two-step verification or add a new one.",subtitle__unavailablePhoneNumbers:"There are no available phone numbers to register for SMS code two-step verification, please add a new one.",successMessage1:"When signing in, you will need to enter a verification code sent to this phone number as an additional step.",successMessage2:"Save these backup codes and store them somewhere safe. If you lose access to your authentication device, you can use backup codes to sign in.",successTitle:"SMS code verification enabled",title:"Add SMS code verification"},mfaTOTPPage:{authenticatorApp:{buttonAbleToScan__nonPrimary:"Scan QR code instead",buttonUnableToScan__nonPrimary:"Canât scan QR code?",infoText__ableToScan:"Set up a new sign-in method in your authenticator app and scan the following QR code to link it to your account.",infoText__unableToScan:"Set up a new sign-in method in your authenticator and enter the Key provided below.",inputLabel__unableToScan1:"Make sure Time-based or One-time passwords is enabled, then finish linking your account.",inputLabel__unableToScan2:"Alternatively, if your authenticator supports TOTP URIs, you can also copy the full URI."},removeResource:{messageLine1:"Verification codes from this authenticator will no longer be required when signing in.",messageLine2:"Your account may not be as secure. Are you sure you want to continue?",successMessage:"Two-step verification via authenticator application has been removed.",title:"Remove two-step verification"},successMessage:"Two-step verification is now enabled. When signing in, you will need to enter a verification code from this authenticator as an additional step.",title:"Add authenticator application",verifySubtitle:"Enter verification code generated by your authenticator",verifyTitle:"Verification code"},mobileButton__menu:"Menu",navbar:{account:"Profile",apiKeys:"API keys",billing:"Billing",description:"Manage your account info.",security:"Security",title:"Account"},passkeyScreen:{removeResource:{messageLine1:"{{name}} will be removed from this account.",title:"Remove passkey"},subtitle__rename:"You can change the passkey name to make it easier to find.",title__rename:"Rename Passkey"},passwordPage:{checkboxInfoText__signOutOfOtherSessions:"It is recommended to sign out of all other devices which may have used your old password.",readonly:"Your password can currently not be edited because you can sign in only via the enterprise connection.",successMessage__set:"Your password has been set.",successMessage__signOutOfOtherSessions:"All other devices have been signed out.",successMessage__update:"Your password has been updated.",title__set:"Set password",title__update:"Update password"},phoneNumberPage:{infoText:"A text message containing a verification code will be sent to this phone number. Message and data rates may apply.",removeResource:{messageLine1:"{{identifier}} will be removed from this account.",messageLine2:"You will no longer be able to sign in using this phone number.",successMessage:"{{phoneNumber}} has been removed from your account.",title:"Remove phone number"},successMessage:"{{identifier}} has been added to your account.",title:"Add phone number",verifySubtitle:"Enter the verification code sent to {{identifier}}",verifyTitle:"Verify phone number"},plansPage:{title:"Plans"},profilePage:{fileDropAreaHint:"Recommended size 1:1, up to 10MB.",imageFormDestructiveActionSubtitle:"Remove",imageFormSubtitle:"Upload",imageFormTitle:"Profile image",readonly:"Your profile information has been provided by the enterprise connection and cannot be edited.",successMessage:"Your profile has been updated.",title:"Update profile"},start:{activeDevicesSection:{destructiveAction:"Sign out of device",title:"Active devices"},connectedAccountsSection:{actionLabel__connectionFailed:"Reconnect",actionLabel__reauthorize:"Authorize now",destructiveActionTitle:"Remove",primaryButton:"Connect account",subtitle__disconnected:"This account has been disconnected.",subtitle__reauthorize:"The required scopes have been updated, and you may be experiencing limited functionality. Please re-authorize this application to avoid any issues",title:"Connected accounts"},dangerSection:{deleteAccountButton:"Delete account",title:"Delete account"},emailAddressesSection:{destructiveAction:"Remove email",detailsAction__nonPrimary:"Set as primary",detailsAction__primary:"Complete verification",detailsAction__unverified:"Verify",primaryButton:"Add email address",title:"Email addresses"},enterpriseAccountsSection:{primaryButton:"Connect account",title:"Enterprise accounts"},headerTitle__account:"Profile details",headerTitle__security:"Security",mfaSection:{backupCodes:{actionLabel__regenerate:"Regenerate",headerTitle:"Backup codes",subtitle__regenerate:"Get a fresh set of secure backup codes. Prior backup codes will be deleted and cannot be used.",title__regenerate:"Regenerate backup codes"},phoneCode:{actionLabel__setDefault:"Set as default",destructiveActionLabel:"Remove"},primaryButton:"Add two-step verification",title:"Two-step verification",totp:{destructiveActionTitle:"Remove",headerTitle:"Authenticator application"}},passkeysSection:{menuAction__destructive:"Remove",menuAction__rename:"Rename",primaryButton:"Add a passkey",title:"Passkeys"},passwordSection:{primaryButton__setPassword:"Set password",primaryButton__updatePassword:"Update password",title:"Password"},phoneNumbersSection:{destructiveAction:"Remove phone number",detailsAction__nonPrimary:"Set as primary",detailsAction__primary:"Complete verification",detailsAction__unverified:"Verify phone number",primaryButton:"Add phone number",title:"Phone numbers"},profileSection:{primaryButton:"Update profile",title:"Profile"},usernameSection:{primaryButton__setUsername:"Set username",primaryButton__updateUsername:"Update username",title:"Username"},web3WalletsSection:{destructiveAction:"Remove wallet",detailsAction__nonPrimary:"Set as primary",primaryButton:"Connect wallet",title:"Web3 wallets",web3SelectSolanaWalletScreen:{subtitle:"Select a Solana wallet to connect to your account.",title:"Add a Solana wallet"}}},usernamePage:{successMessage:"Your username has been updated.",title__set:"Set username",title__update:"Update username"},web3WalletPage:{removeResource:{messageLine1:"{{identifier}} will be removed from this account.",messageLine2:"You will no longer be able to sign in using this web3 wallet.",successMessage:"{{web3Wallet}} has been removed from your account.",title:"Remove web3 wallet"},subtitle__availableWallets:"Select a web3 wallet to connect to your account.",subtitle__unavailableWallets:"There are no available web3 wallets.",successMessage:"The wallet has been added to your account.",title:"Add web3 wallet",web3WalletButtonsBlockButton:"{{provider|titleize}}"}},waitlist:{start:{actionLink:"Sign in",actionText:"Already have access?",formButton:"Join the waitlist",subtitle:"Enter your email address and weâll let you know when your spot is ready",title:"Join the waitlist"},success:{message:"You will be redirected soon...",subtitle:"Weâll be in touch when your spot is ready",title:"Thanks for joining the waitlist!"}},web3SolanaWalletButtons:{connect:"Connect with {{walletName}}",continue:"Continue with {{walletName}}",noneAvailable:'No Solana Web3 wallets detected. Please install a Web3 supported {{ solanaWalletsLink || link("wallet extension") }}.'}}
419,pX={a:"Ã¥",b:"Æ",c:"ç",d:"ð",e:"é",f:"Æ",g:"Ä",h:"ħ",i:"ï",j:"ĵ",k:"Ä·",l:"ľ",m:"ɱ",n:"ñ",o:"ø",p:"þ",q:"Ê ",r:"Å",s:"Å¡",t:"ŧ",u:"ü",v:"á¹½",w:"ŵ",x:"áº",y:"ÿ",z:"ž"},hX=Object.fromEntries(Object.entries(pX).flatMap(([t,e])=>[[t,e],[t.toUpperCase(),e.toLocaleUpperCase("en-US")]])),fX=/\{\{[^{}]*\}\}|\{[^{}]*\}|[a-zA-Z]/g;function mX(t){return t.replace(fX,e=>{var n;return e.startsWith("{")?e:(n=hX[e])!=null?n:e})}function hx(t){if(typeof t=="string")return mX(t);if(Array.isArray(t))return t.map(e=>hx(e));if(t&&typeof t=="object"){const e={};for(const[n,r]of Object.entries(t))e[n]=hx(r);return e}return t}var gX=hx(WM);({...gX});var vX={locale:"fr-FR",apiKeys:{action__add:"Ajouter une nouvelle clé",action__search:"Rechercher des clés",copySecret:{formButtonPrimary__copyAndClose:"Copier et fermer",formHint:"Pour des raisons de sécurité, nous ne vous permettrons pas de la consulter à nouveau plus tard.",formTitle:'Copiez votre clé API "{{name}}" maintenant'},createdAndExpirationStatus__expiresOn:"Créée le {{ createdDate | shortDate('fr-FR') }} ⢠Expire le {{ expiresDate | longDate('fr-FR') }}",createdAndExpirationStatus__never:"Créée le {{ createdDate | shortDate('fr-FR') }} ⢠Nâexpire jamais",detailsTitle__emptyRow:"Aucune clé API trouvée",formButtonPrimary__add:"Créer une clé",formFieldCaption__expiration__expiresOn:"Expire le {{ date }}",formFieldCaption__expiration__never:"Cette clé nâexpirera jamais",formFieldOption__expiration__180d:"180 jours",formFieldOption__expiration__1d:"1 jour",formFieldOption__expiration__1y:"1 an",formFieldOption__expiration__30d:"30 jours",formFieldOption__expiration__60d:"60 jours",formFieldOption__expiration__7d:"7 jours",formFieldOption__expiration__90d:"90 jours",formFieldOption__expiration__never:"Jamais",formHint:"Indiquez un nom pour générer une nouvelle clé. Vous pourrez la révoquer à tout moment.",formTitle:"Ajouter une nouvelle clé API",lastUsed__days:"il y a {{days}} j",lastUsed__hours:"il y a {{hours}} h",lastUsed__minutes:"il y a {{minutes}} min",lastUsed__months:"il y a {{months}} mois",lastUsed__seconds:"il y a {{seconds}} s",lastUsed__years:"il y a {{years}} an(s)",menuAction__revoke:"Révoquer la clé",revokeConfirmation:{confirmationText:"Révoquer",formButtonPrimary__revoke:"Révoquer la clé",formHint:"Ãtes-vous sûr de vouloir supprimer cette clé secrète ?",formTitle:"Révoquer la clé secrète « {{apiKeyName}} » ?"}},backButton:"Retour",badge__activePlan:"Actif",badge__canceledEndsAt:"Annulé ⢠Termine le {{ date | shortDate('fr-FR') }}",badge__currentPlan:"Plan actuel",badge__default:"Défaut",badge__endsAt:"Termine le {{ date | shortDate('fr-FR') }}",badge__expired:"Expiré",badge__freeTrial:"Essai gratuit",badge__otherImpersonatorDevice:"Autre dispositif d'imitation",badge__pastDueAt:"En retard depuis le {{ date | shortDate('fr-FR') }}",badge__pastDuePlan:"Paiement en retard",badge__primary:"Principal",badge__renewsAt:"Renouvelle le {{ date | shortDate('fr-FR') }}",badge__requiresAction:"Nécessite une action",badge__startsAt:"Débute le {{ date | shortDate('fr-FR') }}",badge__thisDevice:"Cet appareil",badge__trialEndsAt:"Lâessai se termine le {{ date | shortDate('fr-FR') }}",badge__unverified:"Non vérifié",badge__upcomingPlan:"à venir",badge__userDevice:"Appareil utilisateur",badge__you:"Vous",billing:{addPaymentMethod__label:"Ajouter une méthode de paiement",alwaysFree:"Toujours gratuit",annually:"Annuel",availableFeatures:"Fonctionnalités disponibles",billedAnnually:"Facturé annuellement",billedMonthlyOnly:"Seulement facturé mensuellement",cancelFreeTrial:"Annuler lâessai gratuit",cancelFreeTrialAccessUntil:"Votre essai restera actif jusquâau {{ date | longDate('fr-FR') }}. Après cette date, vous perdrez lâaccès aux fonctionnalités dâessai. Aucun frais ne vous sera facturé.",cancelFreeTrialTitle:"Annuler lâessai gratuit du plan {{plan}} ?",cancelSubscription:"Annuler la souscription",cancelSubscriptionAccessUntil:"Souscription annulée. Vous pouvez continuer à utiliser les fonctionnalités de '{{plan}}' jusqu'au {{ date | longDate('fr-FR') }}, après quoi vous n'aurez plus accès.",cancelSubscriptionNoCharge:"Pas de charge",cancelSubscriptionPastDue:"Votre abonnement prendra fin immédiatement et vous perdrez lâaccè
419s à toutes les fonctionnalités du plan. Le montant dû sera demandé lors de votre prochaine souscription.",cancelSubscriptionTitle:"Annuler la souscription",cannotSubscribeMonthly:"Ne peut pas souscrire mensuellement. Pour souscrire à ce plan, il faut payer annuellement.",cannotSubscribeUnrecoverable:"Vous ne pouvez pas souscrire à ce plan. Votre abonnement actuel est plus cher que celui-ci.",checkout:{description__paymentSuccessful:"Votre paiement a été effectué avec succès.",description__subscriptionSuccessful:"Votre nouvel abonnement est prêt.",downgradeNotice:"Vous conserverez votre abonnement actuel et ses fonctionnalités jusqu'à la fin du cycle de facturation, puis vous passerez à cet abonnement.",emailForm:{subtitle:"Avant de pouvoir finaliser votre achat, vous devez ajouter une adresse e-mail où les reçus seront envoyés.",title:"Ajouter une adresse e-mail"},lineItems:{title__freeTrialEndsAt:"Lâessai se termine le",title__paymentMethod:"Méthode de paiement",title__statementId:"Identifiant du relevé",title__subscriptionBegins:"L'abonnement commence",title__totalPaid:"Total payé"},pastDueNotice:"Votre abonnement précédent était en retard de paiement.",perMonth:"par mois",title:"Paiement",title__paymentSuccessful:"Le paiement a réussi !",title__subscriptionSuccessful:"Succès !",title__trialSuccess:"Essai démarré avec succès !",totalDueAfterTrial:"Total dû après la fin de lâessai dans {{days}} jours"},credit:"Crédit",creditRemainder:"Crédit restant",defaultFreePlanActive:"Vous êtes actuellement sur le plan gratuit",free:"Gratuit",getStarted:"Commencer",keepFreeTrial:"Conserver lâessai gratuit",keepSubscription:"Conserver l'abonnement",manage:"Gérer",manageSubscription:"Gérer l'abonnement",month:"Mois",monthly:"Mensuel",pastDue:"En retard",pay:"Payer {{amount}}",paymentMethod:{applePayDescription:{annual:"Paiement annuel",monthly:"Paiement mensuel"},dev:{anyNumbers:"Nâimporte quels chiffres",cardNumber:"Numéro de carte",cvcZip:"CVC, ZIP",developmentMode:"Mode de développement",expirationDate:"Date d'expiration",testCardInfo:"Informations de carte de test"}},paymentMethods__label:"Méthodes de paiement",popular:"Populaire",pricingTable:{billingCycle:"Cycle de facturation",included:"Inclus"},reSubscribe:"Se réabonner",seeAllFeatures:"Voir toutes les fonctionnalités",startFreeTrial:"Commencer lâessai gratuit",startFreeTrial__days:"Commencer lâessai gratuit de {{days}} jours",subscribe:"S'abonner",subscriptionDetails:{beginsOn:"Commence le",currentBillingCycle:"Cycle de facturation en cours",endsOn:"Se termine le",firstPaymentAmount:"Montant du premier paiement",firstPaymentOn:"Premier paiement le",nextPaymentAmount:"Montant du prochain paiement",nextPaymentOn:"Prochain paiement le",pastDueAt:"En retard le",renewsAt:"Renouvelé le",subscribedOn:"Souscrit le",title:"Abonnement",trialEndsOn:"Lâessai se termine le",trialStartedOn:"Essai commencé le"},subtotal:"Total",switchPlan:"Changer de plan",switchToAnnual:"Passer à l'annuel",switchToAnnualWithAnnualPrice:"Passer à lâannuel {{currency}}{{price}} / an",switchToMonthly:"Passer au mensuel",switchToMonthlyWithPrice:"Passer au mensuel {{currency}}{{price}} / mois",totalDue:"Total dû",totalDueToday:"Total dû aujourd'hui",viewFeatures:"Voir les fonctionnalités",viewPayment:"Voir le paiement",year:"An"},configureSSO:{navbar:{title:"Configurer l'authentification unique (SSO)"}},createOrganization:{formButtonSubmit:"Créer lâorganisation",invitePage:{formButtonReset:"Passer"},title:"Créer une organisation"},dates:{lastDay:"Hier à {{ date | timeString('fr-FR') }}",next6Days:"{{ date | weekday('fr-FR','long') }} à {{ date | timeString('fr-FR') }}",nextDay:"Demain à {{ date | timeString('fr-FR') }}",numeric:"{{ date | numeric('fr-FR') }}",previous6Days:"{{ date | weekday('fr-FR','long') }} dernier à {{ date | timeString('fr-FR') }}",sameDay:"Aujourd'hui à {{ date | timeString('fr-FR') }}"},dividerText:"ou",footerActionLink__alternativePhoneCodeProvider:"Envoyer le code par SMS à la place",footerActionLink__useAnotherMethod:"Utiliser une autre méthode",footerPageLink__help:"Aide",footerPageLink__privacy:"Vie privée",footerPageLink__terms:"Conditions",formButtonPrimary:"Continuer",formButtonPrimary__verify:"Vérifier",formFieldAction__forgotPassword:"Mot de passe oublié ?",formFieldError__matchingPasswords:"Les mots de passe correspondent.",formFieldError__notMatchingPasswords:"Les mots de passe ne correspondent pas.",formFieldError__verificationLinkExpired:"Le lien de vérification a expiré. Merci de demander un nouveau lien.",formFieldHintText__optional:"Optionnel",formFieldHintText__slug:"Un slug est un identifiant lisible qui doit être unique. Il est souvent utilisé dans les URL.",formFieldInputPlaceholder__apiKeyDescription:"Expliquez pourquoi vous générez cette clé",formFieldInputPlaceholder__apiKeyExpirationDate:"Sélectionner une date",formFieldInputPlaceholder__apiKeyName:"Entrez le nom de votre clé secrète",formFieldInputPlaceholder__backupCode:"Code de sauvegarde",formFieldInputPlaceholder__confirmDeletionUserAccount:"Supprimer le compte",formFieldInputPlaceholder__emailAddress:"Adresse e-mail",formFieldInputPlaceholder__emailAddress_username:"Nom d'utilisateur ou adresse e-mail",formFieldInputPlaceholder__emailAddresses:"[email protected], [email protected]",formFieldInputPlaceholder__firstName:"Prénom",formFieldInputPlaceholder__lastName:"Nom",formFieldInputPlaceholder__organizationDomain:"Domaine de l'organisation",formFieldInputPlaceholder__organizationDomainEmailAddress:"Adresse e-mail de l'organisation",formFieldInputPlaceholder__organizationName:"Nom de l'organisation",formFieldInputPlaceholder__organizationSlug:"Identifiant de l'organisation",formFieldInputPlaceholder__password:"Mot de passe",formFieldInputPlaceholder__phoneNumber:"Numéro de téléphone",formFieldInputPlaceholder__username:"Nom d'utilisateur",formFieldInput__emailAddress_format:void 0,formFieldLabel__apiKey:"Clé API",formFieldLabel__apiKeyDescription:"Description",formFieldLabel__apiKeyExpiration:"Expiration",formFieldLabel__apiKeyName:"Nom de la clé secrète",formFieldLabel__automaticInvitations:"Activer les invitations automatiques pour ce domaine",formFieldLabel__backupCode:"Code de récupération",formFieldLabel__confirmDeletion:"Confirmation",formFieldLabel__confirmPassword:"Confirmer le mot de passe",formFieldLabel__currentPassword:"Mot de passe actuel",formFieldLabel__emailAddress:"Adresse e-mail",formFieldLabel__emailAddress_username:"Adresse e-mail ou nom d'utilisateur",formFieldLabel__emailAddresses:"Adresses e-mail",formFieldLabel__firstName:"Prénom",formFieldLabel__lastName:"Nom",formFieldLabel__newPassword:"Nouveau mot de passe",formFieldLabel__organizationDomain:"Domaine",formFieldLabel__organizationDomainDeletePending:"Supprimer les invitations et suggestions en attente",formFieldLabel__organizationDomainEmailAddress:"E-mail de vérification",formFieldLabel__organizationDomainEmailAddressDescription:"Entrer une adresse e-mail appartenant à ce domaine pour recevoir un code et vérifier ce domaine.",formFieldLabel__organizationName:"Nom de l'organisation",formFieldLabel__organizationSlug:"Slug URL",formFieldLabel__passkeyName:"Nom de la clé de sécurité",formFieldLabel__password:"Mot de passe",formFieldLabel__phoneNumber:"Numéro de téléphone",formFieldLabel__role:"Rôle",formFieldLabel__signOutOfOtherSessions:"Se déconnecter de tous les autres appareils",formFieldLabel__username:"Nom d'utilisateur",impersonationFab:{action__signOut:"Déconnexion",title:"Connecté en tant que {{identifier}}"},lastAuthenticationStrategy:"Utilisé la dernière fois",maintenanceMode:"Nous effectuons des travaux de maintenance, mais ne vous en inquiétez pas, cela ne devrait pas prendre plus de quelques minutes.",membershipRole__admin:"Administrateur",membershipRole__basicMember:"Membre",membershipRole__guestMember:"Invité",organizationList:{action__createOrganization:"Créer une organisation",action__invitationAccept:"Rejoindre",action__suggestionsAccept:"Demande d'adhésion",createOrganization:"Créer une Organisation",invitationAcceptedLabel:"Acceptée",subtitle:"pour continuer vers {{applicationName}}",suggestionsAcceptedLabel:"En attente dâapprobation",title:"Choisissez un compte",titleWithoutPersonal:"Choisissez une organisation"},organizationProfile:{apiKeysPage:{title:"Clés API"},badge__automaticInvitation:"Invitations automatiques",badge__automaticSuggestion:"Suggestions automatiques",badge__manualInvitation:"Pas d'inscription automatique",badge__unverified:"Non vérifié",billingPage:{paymentHistorySection:{empty:"Aucun historique de paiement",notFound:"Tentative de paiement introuvable",tableHeader__amount:"Montant",tableHeader__date:"Date",tableHeader__status:"Statut"},paymentMethodsSection:{actionLabel__default:"Rendre par défaut",actionLabel__remove:"Supprimer",add:"Ajouter une nouvelle méthode de paiement",addSubtitle:"Ajoutez une nouvelle méthode de paiement à votre compte.",cancelButton:"Annuler",formButtonPrimary__add:"Ajouter une méthode de paiement",formButtonPrimary__pay:"Payer {{amount}}",payWithTestCardButton:"Payer avec une carte de test",removeMethod:{messageLine1:"{{identifier}} sera supprimé de ce compte.",messageLine2:"Vous ne pourrez plus utiliser cette méthode de paiement et tous les abonnements récurrents qui en dépendent ne fonctionneront plus.",successMessage:"{{paymentMethod}} a été supprimé de votre compte.",title:"Supprimer une méthode de paiement"},title:"Méthodes de paiement"},start:{headerTitle__payments:"Paiements",headerTitle__plans:"Plans",headerTitle__statements:"Relevés",headerTitle__subscriptions:"Abonnements"},statementsSection:{empty:"Aucun relevé à afficher",itemCaption__paidForPlan:"Payé pour le plan {{plan}} {{period}}",itemCaption__proratedCredit:"Crédit au prorata pour lâutilisation partielle de lâabonnement précédent",itemCaption__subscribedAndPaidForPlan:"Souscrit et payé pour le plan {{plan}} {{period}}",notFound:"Relevé introuvable",tableHeader__amount:"Montant",tableHeader__date:"Date",title:"Relevés",totalPaid:"Total payé"},subscriptionsListSection:{actionLabel__manageSubscription:"Gérer",actionLabel__newSubscription:"S'abonner à un plan",actionLabel__switchPlan:"Changer de plan",tableHeader__edit:"Modifier",tableHeader__plan:"Plan",tableHeader__startDate:"Date de début",title:"Abonnement"},subscriptionsSection:{actionLabel__default:"Gérer"},switchPlansSection:{title:"Changer de plan"},title:"Abonnements"},createDomainPage:{subtitle:"Ajoutez le domaine pour le vérifier. Les utilisateurs possédant une adresse e-mail sur ce domaine peuvent rejoindre l'organisation automatiquement ou demander à y adhérer.",title:"Ajouter un domaine"},invitePage:{detailsTitle__inviteFailed:"Les invitations suivantes nâont pas pu être envoyées. Veuillez régler ce problème et réessayer:",formButtonPrimary__continue:"Envoyer des invitations",selectDropdown__role:"Sélectionner un rôle",subt
419itle:"Inviter des membres à rejoindre lâorganisation",successMessage:"Les invitations ont été envoyées.",title:"Inviter des membres"},membersPage:{action__invite:"Inviter",action__search:"Rechercher",activeMembersTab:{menuAction__remove:"Supprimer",tableHeader__actions:"Actions",tableHeader__joined:"Rejoint le",tableHeader__role:"Rôle",tableHeader__user:"Utilisateur"},alerts:{roleSetMigrationInProgress:{subtitle:"Nous mettons à jour les rôles disponibles. Une fois terminé, vous pourrez de nouveau modifier les rôles.",title:"Les rôles sont temporairement verrouillés"}},detailsTitle__emptyRow:"Aucun membre",invitationsTab:{autoInvitations:{headerSubtitle:"Invitez des utilisateurs en connectant un domaine de messagerie à votre organisation. Toute personne s'inscrivant avec une adresse e-mail de ce domaine pourra rejoindre l'organisation.",headerTitle:"Invitations automatiques",primaryButton:"Gérer les domaines validés"},table__emptyRow:"Pas d'invitations à afficher"},invitedMembersTab:{menuAction__revoke:"Révoquer l'invitation",tableHeader__invited:"Invité"},requestsTab:{autoSuggestions:{headerSubtitle:"Les utilisateurs qui s'inscrivent avec un domaine de messagerie identique verront une suggestion pour demander à rejoindre votre organisation.",headerTitle:"Suggestions automatiques",primaryButton:"Gérer les domaines validés"},menuAction__approve:"Approuver",menuAction__reject:"Rejeter",tableHeader__requested:"Accès demandé",table__emptyRow:"Pas de demandes à afficher"},start:{headerTitle__invitations:"Invitations",headerTitle__members:"Membres",headerTitle__requests:"Demandes"}},navbar:{apiKeys:"Clés API",billing:"Facturation",description:"Gérer votre organisation.",general:"Général",members:"Membres",title:"Organisation"},plansPage:{alerts:{noPermissionsToManageBilling:"Vous n'avez pas les permissions pour gérer la facturation de cette organisation."},title:"Plans"},profilePage:{dangerSection:{deleteOrganization:{actionDescription:"Saisissez {{organizationName}} ci-dessous pour continuer.",messageLine1:"Ãtes-vous sûr(e) de vouloir supprimer cette organisation ?",messageLine2:"Cette action est définitive et irréversible.",successMessage:"Vous avez supprimé l'organisation.",title:"Supprimer l'organisation"},leaveOrganization:{actionDescription:"Saisissez {{organizationName}} ci-dessous pour continuer.",messageLine1:"Ãtes-vous sûr de vouloir quitter cette organisation ? Vous perdrez l'accès à cette organisation et à ses applications.",messageLine2:"Cette action est permanente et irréversible.",successMessage:"Vous avez quitté l'organisation.",title:"Quitter l'organisation"},title:"Danger"},domainSection:{menuAction__manage:"Gérer",menuAction__remove:"Supprimer",menuAction__verify:"Valider",primaryButton:"Ajouter un domaine",subtitle:"Permettre aux utilisateurs de rejoindre l'organisation automatiquement ou de faire une demande d'adhésion si leur domaine de messagerie est vérifié.",title:"Domaines vérifiés"},successMessage:"L'organisation a été mise à jour.",title:"Profil de lâorganisation"},removeDomainPage:{messageLine1:"Le domaine de messagerie {{domain}} sera supprimé.",messageLine2:"Les utilisateurs ne pourront plus rejoindre l'organisation automatiquement après cela.",successMessage:"{{domain}} a été supprimé.",title:"Supprimer un domaine"},start:{headerTitle__general:"Général",headerTitle__members:"Membres",profileSection:{primaryButton:"Mettre à jour le profil",title:"Profil de l'organisation",uploadAction__title:"Logo"}},verifiedDomainPage:{dangerTab:{calloutInfoLabel:"Supprimer ce domaine affectera les utilisateurs invités.",removeDomainActionLabel__remove:"Supprimer ce domaine",removeDomainSubtitle:"Supprimer ce domaine de vos domaines vérifiés",removeDomainTitle:"Supprimer un domaine"},enrollmentTab:{automaticInvitationOption__description:"Les utilisateurs sont automatiquement invités à rejoindre l'organisation lors de leur inscription et peuvent la rejoindre à tout moment.",automaticInvitationOption__label:"Invitations automatiques",automaticSuggestionOption__description:"Les utilisateurs reç
419oivent une suggestion d'adhésion à l'organisation, mais doivent être approuvés par un administrateur avant de pouvoir y adhérer.",automaticSuggestionOption__label:"Suggestions automatiques",calloutInfoLabel:"Changer le mode d'inscription n'affectera que les nouveaux utilisateurs.",calloutInvitationCountLabel:"Invitations en attente envoyées aux utilisateurs : {{count}}",calloutSuggestionCountLabel:"Suggestions en attente envoyées aux utilisateurs : {{count}}",manualInvitationOption__description:"Les utilisateurs peuvent uniquement être invités à l'organisation manuellement.",manualInvitationOption__label:"Pas d'inscription automatique",subtitle:"Choisissez comment les utilisateurs de ce domaine peuvent rejoindre l'organisation."},start:{headerTitle__danger:"Danger",headerTitle__enrollment:"Option d'inscription"},subtitle:"Le domaine {{domain}} est maintenant vérifié. Poursuivez en sélectionnant le mode d'inscription.",title:"Mettre à jour {{domain}}"},verifyDomainPage:{formSubtitle:"Saisissez le code de vérification envoyé à votre adresse e-mail",formTitle:"Code de vérification",resendButton:"Vous n'avez pas reçu de code ? Renvoyer",subtitle:"Le domaine {{domainName}} doit être vérifié par e-mail.",subtitleVerificationCodeScreen:"Un code de vérification a été envoyé à {{emailAddress}}. Saisissez le code pour continuer.",title:"Vérifier un domaine"}},organizationSwitcher:{action__closeOrganizationSwitcher:void 0,action__createOrganization:"Créer une organisation",action__invitationAccept:"Rejoindre",action__manageOrganization:"Gérer l'organisation",action__openOrganizationSwitcher:void 0,action__suggestionsAccept:"Demander à rejoindre",notSelected:"Aucune organisation sélectionnée",personalWorkspace:"Espace de travail personnel",suggestionsAcceptedLabel:"En attente d'acceptation"},paginationButton__next:"Suivant",paginationButton__previous:"Précédent",paginationRowText__displaying:"Affichage",paginationRowText__of:"de",reverification:{alternativeMethods:{actionLink:"Utiliser une autre méthode",actionText:"Vous ne pouvez pas accéder à votre compte ?",blockButton__backupCode:"Utiliser un code de récupération",blockButton__emailCode:"Recevoir un code par e-mail",blockButton__passkey:"Utiliser une clé de sécurité",blockButton__password:"Utiliser le mot de passe",blockButton__phoneCode:"Recevoir un code par téléphone",blockButton__totp:"Utiliser un code dâapplication dâauthentification",getHelp:{blockButton__emailSupport:"Contacter le support par e-mail",content:"Si vous ne pouvez pas accéder à votre compte, contactez notre équipe de support pour obtenir de l'aide.",title:"Obtenir de l'aide"},subtitle:"Choisissez une méthode alternative pour vérifier votre identité.",title:"Vérification alternative"}
419,backupCodeMfa:{subtitle:"Entrez l'un de vos codes de récupération pour vérifier votre compte.",title:"Vérification par code de récupération"},emailCode:{formTitle:"Entrez le code de vérification",resendButton:"Renvoyer le code",subtitle:"Un code a été envoyé à votre adresse e-mail.",title:"Vérification par e-mail"},noAvailableMethods:{message:"Aucune méthode de vérification n'est disponible.",subtitle:"Impossible de procéder à la vérification.",title:"Aucune méthode disponible"},passkey:{blockButton__passkey:"Utiliser votre clé de sécurité",subtitle:"L'utilisation de votre clé de sécurité confirme votre identité. Votre appareil peut vous demander votre empreinte digitale, votre visage ou votre code de sécurité.",title:"Utiliser votre clé de sécurité"},password:{actionLink:"Réinitialiser le mot de passe",subtitle:"Entrez votre mot de passe pour continuer.",title:"Vérification par mot de passe"},phoneCode:{formTitle:"Entrez le code de vérification",resendButton:"Renvoyer le code",subtitle:"Un code a été envoyé à votre téléphone.",title:"Vérification par téléphone"},phoneCodeMfa:{formTitle:"Entrez le code de vérification",resendButton:"Renvoyer le code",subtitle:"Un code a été envoyé à votre téléphone pour vérification.",title:"Vérification par téléphone"},totpMfa:{formTitle:"Entrez le code de vérification",subtitle:"Entrez le code généré par votre application d'authentification.",title:"Vérification par application dâauthentification"}},signIn:{accountSwitcher:{action__addAccount:"Ajouter un compte",action__signOutAll:"Se déconnecter de tous les comptes",subtitle:"Sélectionnez le compte avec lequel vous souhaitez continuer.",title:"Choisissez un compte"},alternativeMethods:{actionLink:"Obtenir de l'aide",actionText:"Aucune de ces méthodes ne fonctionne ?",blockButton__backupCode:"Utiliser un code de récupération",blockButton__emailCode:"Envoyer le code à {{identifier}}",blockButton__emailLink:"Envoyer le lien à {{identifier}}",blockButton__passkey:"Utiliser une clé de sécurité",blockButton__password:"Connectez-vous avec votre mot de passe",blockButton__phoneCode:"Envoyer le code à {{identifier}}",blockButton__totp:"Utilisez votre application d'authentification",getHelp:{blockButton__emailSupport:"Assistance par e-mail",content:"Si vous rencontrez des difficultés pour vous connecter à votre compte, envoyez-nous un e-mail et nous travaillerons avec vous pour rétablir l'accès dès que possible.",title:"Obtenir de l'aide"},subtitle:"Vous rencontrez des problèmes ? Vous pouvez utiliser l'une de ces méthodes pour vous connecter.",title:"Utiliser une autre méthode"},alternativePhoneCodeProvider:{formTitle:"Code de vérification",resendButton:"Vous nâavez pas reçu de code ? Renvoyer",subtitle:"pour continuer vers {{applicationName}}",title:"Vérifiez votre {{provider}}"}
419,backupCodeMfa:{subtitle:"pour continuer vers {{applicationName}}",title:"Entrez un code de récupération"},emailCode:{formTitle:"Le code de vérification",resendButton:"Renvoyer le code",subtitle:"pour continuer vers {{applicationName}}",title:"Vérifiez votre messagerie"},emailCodeMfa:{formTitle:"Vérifiez votre messagerie",resendButton:"Vous n'avez pas reçu de code ? Renvoyer",subtitle:"pour continuer vers {{applicationName}}",title:"Vérifiez votre messagerie"},emailLink:{clientMismatch:{subtitle:"Ce lien ne correspond pas à la demande en cours.",title:"Erreur de correspondance du client"},expired:{subtitle:"Retournez à l'onglet d'origine pour continuer",title:"Ce lien de vérification a expiré"},failed:{subtitle:"Retourner à l'onglet original pour continuer",title:"Ce lien de vérification n'est pas valide"},formSubtitle:"Utilisez le lien de vérification envoyé par e-mail",formTitle:"lien de vérification",loading:{subtitle:"Vous allez bientôt être redirigé",title:"Connexion en cours..."},resendButton:"Renvoyer le lien",subtitle:"pour continuer vers {{applicationName}}",title:"Vérifiez votre messagerie",unusedTab:{title:"Vous pouvez fermer cet onglet"},verified:{subtitle:"Vous serez bientôt redirigé",title:"Connexion réussie"},verifiedSwitchTab:{subtitle:"Revenir à l'onglet d'origine pour continuer",subtitleNewTab:"Revenez à l'onglet nouvellement ouvert pour continuer",titleNewTab:"Connecté sur un autre onglet"}},emailLinkMfa:{formSubtitle:"Utilisez le lien de vérification envoyé par e-mail",resendButton:"Vous n'avez pas reçu de lien ? Renvoyer",subtitle:"pour continuer vers {{applicationName}}",title:"Vérifiez votre messagerie"},enterpriseConnections:{subtitle:void 0,title:void 0},forgotPassword:{formTitle:"Code de réinitialisation du mot de passe",resendButton:"Vous n'avez pas reçu de code ? Renvoyer",subtitle:"pour réinitialiser votre mot de passe",subtitle_email:"Tout d'abord, saisissez le code envoyé à votre adresse e-mail.",subtitle_phone:"Tout d'abord, saisissez le code envoyé à votre téléphone.",title:"Réinitialiser le mot de passe"},forgotPasswordAlternativeMethods:{blockButton__resetPassword:"Réinitialiser votre mot de passe",label__alternativeMethods:"Ou connectez-vous avec une autre méthode.",title:"Mot de passe oublié ?"},newDeviceVerificationNotice:"Vous vous connectez depuis un nouvel appareil. Nous demandons une vérification pour sécuriser votre compte.",noAvailableMethods:{message:"Impossible de poursuivre la connexion. Aucun facteur d'authentification n'est disponible.",subtitle:"Une erreur s'est produite",title:"Impossible de se connecter"},passkey:{subtitle:"Utilisez une clé de sécurité pour continuer.",title:"Clé de sécurité"},password:{actionLink:"Utiliser une autre méthode",subtitle:"pour continuer vers {{applicationName}}",title:"Entrez votre mot de passe"},passwordCompromised:{title:void 0},passwordPwned:{title:"Mot de passe compromis"},passwordUntrusted:{title:void 0},phoneCode:{formTitle:"Code de vérification",resendButton:"Vous n'avez pas reçu de code ? Renvoyer",subtitle:"pour continuer vers {{applicationName}}",title:"Vérifiez votre téléphone"},phoneCodeMfa:{formTitle:"Code de vérification",resendButton:"Vous n'avez pas reçu de code ? Renvoyer",subtitle:"Entrez le code envoyé à votre téléphone pour continuer.",title:"Vérifiez votre téléphone"},resetPassword:{formButtonPrimary:"Réinitialiser",requiredMessage:"Pour des raisons de sécurité, il est nécessaire de réinitialiser votre mot de passe.",successMessage:"Votre mot de passe a été modifié avec succès. Nous vous reconnectons, veuillez patienter un instant.",title:"Réinitialiser le mot de passe"},resetPasswordMfa:{detailsLabel:"Nous devons vérifier votre identité avant de réinitialiser votre mot de passe."},start:{actionLink:"S'inscrire",actionLink__join_waitlist:"Rejoindre la liste d'attente",actionLink__use_email:"Utiliser e-mail",actionLink__use_email_username:"Utiliser l'e-mail ou le nom d'utilisateur",actionLink__use_passkey:"Utiliser une clé de sécurité",actionLink__use_phone:"Utiliser téléphone",actionLink__use_username:"Utiliser le nom d'utilisateur",actionText:"Vous n'avez pas encore de compte ?",actionText__join_waitlist:"Inscrivez-vous sur la liste d'attente",alternativePhoneCodeProvider:{actionLink:"Utiliser une autre méthode",label:"Numéro de téléphone {{provider}}",subtitle:"Entrez votre numéro de téléphone pour recevoir un code de vérification sur {{provider}}.",title:"Se connecter à {{applicationName}} avec {{provider}}"},subtitle:"pour continuer vers {{applicationName}}",subtitleCombined:void 0,title:"Se connecter",titleCombined:"Continuer vers {{applicationName}}"}
419,totpMfa:{formTitle:"Le code de vérification",subtitle:"Entrez le code de l'application d'authentification.",title:"Vérification en deux étapes"},web3Solana:{subtitle:"Sélectionnez un portefeuille ci-dessous pour vous connecter",title:"Se connecter avec Solana"}},signInEnterPasswordTitle:"Entrez votre mot de passe",signUp:{alternativePhoneCodeProvider:{resendButton:"Vous nâavez pas reçu de code ? Renvoyer",subtitle:"Entrez le code de vérification envoyé à votre {{provider}}",title:"Vérifiez votre {{provider}}"},continue:{actionLink:"Se connecter",actionText:"Vous avez déjà un compte ?",subtitle:"pour continuer vers {{applicationName}}",title:"Remplir les champs manquants"},emailCode:{formSubtitle:"Entrez le code de vérification envoyé à votre adresse e-mail",formTitle:"Le code de vérification",resendButton:"Renvoyer le code",subtitle:"pour continuer vers {{applicationName}}",title:"Vérifiez votre e-mail"},emailLink:{clientMismatch:{subtitle:"Pour continuer, ouvrir le lien de vérification sur l'appareil et le navigateur depuis lequel vous avez initié l'inscription",title:"Erreur de correspondance du client"},formSubtitle:"Utilisez le lien de vérification envoyé à votre adresse e-mail",formTitle:"lien de vérification",loading:{title:"Création de votre compte..."},resendButton:"Renvoyer le lien",subtitle:"pour continuer vers {{applicationName}}",title:"Vérifiez votre e-mail",verified:{title:"Compte créé"},verifiedSwitchTab:{subtitle:"Revenez à l'onglet nouvellement ouvert pour continuer",subtitleNewTab:"Revenir à l'onglet précédent pour continuer",title:"E-mail vérifié avec succès"}},enterpriseConnections:{subtitle:void 0,title:void 0},legalConsent:{checkbox:{label__onlyPrivacyPolicy:"J'accepte la Politique de confidentialité.",label__onlyTermsOfService:"J'accepte les Conditions d'utilisation.",label__termsOfServiceAndPrivacyPolicy:`J'accepte les {{ termsOfServiceLink || link("Conditions d'utilisation") }} et la {{ privacyPolicyLink || link("Politique de confidentialité") }}.`},continue:{subtitle:"Lisez et acceptez les conditions pour continuer.",title:"Consentement légal"}},phoneCode:{formSubtitle:"Entrez le code de vérification envoyé à votre numéro de téléphone",formTitle:"Le code de vérification",resendButton:"Renvoyer le code",subtitle:"pour continuer vers {{applicationName}}",title:"Vérifiez votre téléphone"},restrictedAccess:{actionLink:"Contacter le support",actionText:"Accès restreint.",blockButton__emailSupport:"Contacter le support par e-mail",blockButton__joinWaitlist:"Rejoindre la liste d'attente",subt
419itle:"Vous n'avez pas la permission d'accéder à cette page.",subtitleWaitlist:"Inscrivez-vous pour demander l'accès.",title:"Accès restreint"},start:{actionLink:"Se connecter",actionLink__use_email:"Utiliser votre adresse e-mail",actionLink__use_phone:"Utiliser votre téléphone",actionText:"Vous avez déjà un compte ?",alternativePhoneCodeProvider:{actionLink:"Utiliser une autre méthode",label:"Numéro de téléphone {{provider}}",subtitle:"Entrez votre numéro de téléphone pour recevoir un code de vérification sur {{provider}}.",title:"Sâinscrire à {{applicationName}} avec {{provider}}"},subtitle:"pour continuer vers {{applicationName}}",subtitleCombined:"pour continuer vers {{applicationName}}",title:"Créez votre compte",titleCombined:"Créez votre compte"},web3Solana:{subtitle:"Sélectionnez un portefeuille ci-dessous pour vous inscrire",title:"S'inscrire avec Solana"}},socialButtonsBlockButton:"Continuer avec {{provider|titleize}}",socialButtonsBlockButtonManyInView:"{{provider|titleize}}",taskChooseOrganization:{alerts:{organizationAlreadyExists:void 0},chooseOrganization:{action__createOrganization:"Créer une nouvelle organisation",action__invitationAccept:"Rejoindre",action__suggestionsAccept:"Demander à rejoindre",subtitle:"Rejoignez une organisation existante ou créez-en une nouvelle",subtitle__createOrganizationDisabled:"Rejoignez une organisation existante",suggestionsAcceptedLabel:"En attente dâapprobation",title:"Choisir une organisation"},createOrganization:{formButtonReset:"Annuler",formButtonSubmit:"Continuer",formFieldInputPlaceholder__name:"Mon organisation",formFieldInputPlaceholder__slug:"mon-organisation",formFieldLabel__name:"Nom",formFieldLabel__slug:"Identifiant (slug)",subtitle:"Entrez les détails de votre organisation pour continuer",title:"Configurer votre organisation"},organizationCreationDisabled:{subtitle:"Contactez l'administrateur de votre organisation pour obtenir une invitation.",title:"Vous devez appartenir à une organisation"},signOut:{actionLink:"Se déconnecter",actionText:"Connecté en tant que {{identifier}}"}},taskResetPassword:{formButtonPrimary:void 0,signOut:{actionLink:void 0,actionText:void 0},subtitle:void 0,title:void 0},taskSetupMfa:{badge:void 0,signOut:{actionLink:void 0,actionText:void 0},smsCode:{addPhone:{formButtonPrimary:void 0,infoText:void 0},addPhoneNumber:void 0,cancel:void 0,subtitle:void 0,success:{finishButton:void 0,message1:void 0,message2:void 0,title:void 0},title:void 0,verifyPhone:{formButtonPrimary:void 0,formTitle:void 0,resendButton:void 0,subtitle:void 0,title:void 0}},start:{methodSelection:{phoneCode:void 0,totp:void 0},subtitle:void 0,title:void 0},totpCode:{addAuthenticatorApp:{buttonAbleToScan__nonPrimary:void 0,buttonUnableToScan__nonPrimary:void 0,formButtonPrimary:void 0,formButtonReset:void 0,infoText__ableToScan:void 0,infoText__unableToScan:void 0,inputLabel__unableToScan1:void 0},success:{finishButton:void 0,message1:void 0,message2:void 0,title:void 0},title:void 0,verifyTotp:{formButtonPrimary:void 0,formButtonReset:void 0,formTitle:void 0,subtitle:void 0,title:void 0}}},unstable__errors:{already_a_member_in_organization:"Vous êtes déjà membre de cette organisation.",avatar_file_size_exceeded:"La taille du fichier dépasse la limite maximale de 10 Mo. Veuillez choisir un fichier plus petit.",avatar_file_type_invalid:"Type de fichier non pris en charge. Veuillez télécharger une image JPG, PNG, GIF ou WEBP.",captcha_invalid:"Inscription échouée en raison de validations de sécurité incorrectes. Veuillez rafraîchir la page pour réessayer ou contacter le support pour obtenir de l'aide.",captcha_unavailable:"Inscription échouée en raison d'une validation de captcha non réussie. Veuillez actualiser la page pour réessayer ou contacter le support pour obtenir de l'aide.",form_code_incorrect:"Code incorrect",form_email_address_blocked:"Les services de messagerie temporaire ne sont pas pris en charge. Veuillez utiliser votre adresse e-mail habituelle pour créer un compte.",form_identifier_exists__email_address:"Cette adresse e-mail existe déjà .",form_identifier_exists__phone_number:"Ce numéro de téléphone existe déjà .",form_identifier_exists__username:"Ce nom d'utilisateur existe déjà .",form_identifier_not_found:"Nous n'avons pas trouvé de compte avec ces détails.",form_new_password_matches_current:void 0,form_param_format_invalid:"Le format est invalide",form_param_format_invalid__email_address:"L'adresse e-mail doit être une adresse e-mail valide.",form_param_format_invalid__phone_number:"Le numéro de téléphone doit être au format international.",form_param_max_length_exceeded__first_name:"Le prénom ne doit pas dépasser 256 caractères.",form_param_max_length_exceeded__last_name:"Le nom ne doit pas dépasser 256 caractères.",form_param_max_length_exceeded__name:"Le nom ne doit pas dépasser 256 caractères.",form_param_nil:"Ce champ est requis.",form_param_type_invalid:void 0,form_param_type_invalid__email_address:void 0,form_param_type_invalid__phone_number:void 0,form_param_value_invalid:"La valeur fournie est invalide.",form_password_compromised__sign_in:void 0,form_password_incorrect:"Mot de passe incorrect",form_password_length_too_short:"Votre mot de passe est trop court.",form_password_not_strong_enough:"Votre mot de passe n'est pas assez fort.",form_password_or_identifier_incorrect:"Le mot de passe ou l'adresse e-mail est incorrect. Réessayez ou utilisez une autre méthode.",form_password_pwned:"Ce mot de passe a été compromis et ne peut pas être utilisé. Veuillez essayer un autre mot de passe à la place.",form_password_pwned__sign_in:"Mot de passe compromis. Veuillez le réinitialiser.",form_password_size_in_bytes_exceeded:"Votre mot de passe a dépassé le nombre maximum d'octets autorisés. Veuillez le raccourcir ou supprimer certains caractères spéciaux.",form_password_untrusted__sign_in:void 0,form_password_validation_failed:"Mot de passe incorrect",form_username_invalid_character:"L'identifiant contient des caractères invalides.",form_username_invalid_length:"Le nombre de caractères de l'identifiant est invalide.",form_username_needs_non_number_char:"Votre nom d'utilisateur doit contenir au moins un caractère non numérique.",identification_deletion_failed:"Vous ne pouvez pas supprimer votre dernière identification.",n
419ot_allowed_access:"L'adresse e-mail ou le numéro de téléphone n'est pas autorisée à s'inscrire. Cela peut être dû à l'utilisation de '+', '=', '#' ou '.' dans votre adresse e-mail, l'utilisation d'un domaine connecté à un service de messagerie temporaire ou l'exclusion explicite. Si vous pensez que c'est une erreur, veuillez contacter le support.",organization_domain_blocked:"Ce domaine d'organisation est bloqué.",organization_domain_common:"Ce domaine est trop courant pour une organisation.",organization_domain_exists_for_enterprise_connection:void 0,organization_membership_quota_exceeded:"Le quota de membres de l'organisation a été dépassé.",organization_minimum_permissions_needed:"Permissions minimales nécessaires pour accéder à cette organisation.",organization_not_found_or_unauthorized:"Vous nâêtes plus membre de cette organisation. Veuillez en choisir ou en créer une autre.",organization_not_found_or_unauthorized_with_create_organization_disabled:"Vous nâêtes plus membre de cette organisation. Veuillez en choisir une autre.",passkey_already_exists:"Cette clé de sécurité existe déjà .",passkey_not_supported:"Les clés de sécurité ne sont pas prises en charge sur cet appareil.",passkey_pa_not_supported:"Les clés de sécurité ne sont pas prises en charge dans cet environnement.",passkey_registration_cancelled:"Enregistrement de la clé de sécurité annulé.",passkey_retrieval_cancelled:"Récupération de la clé de sécurité annulée.",passwordComplexity:{maximumLength:"moins de {{length}} caractères",minimumLength:"au moins {{length}} caractères",requireLowercase:"une lettre minuscule",requireNumbers:"un chiffre",requireSpecialCharacter:"un caractère spécial",requireUppercase:"une lettre majuscule",sentencePrefix:"Votre mot de passe doit contenir"},phone_number_exists:"Ce numéro de téléphone est déjà utilisé. Veuillez essayer un autre.",session_exists:"Vous êtes déjà connecté.",web3_missing_identifier:"Aucune extension de portefeuille Web3 trouvée. Veuillez en installer une pour continuer.",web3_signature_request_rejected:"Vous avez refusé la demande de signature. Veuillez réessayer pour continuer.",web3_solana_signature_generation_failed:"Une erreur s'est produite lors de la génération de la signature. Veuillez réessayer pour continuer.",zxcvbn:{couldBeStronger:"Votre mot de passe fonctionne mais pourrait être plus sûr. Essayez d'ajouter des caractères.",goodPassword:"Bien joué. C'est un excellent mot de passe.",notEnough:"Votre mot de passe n'est pas assez fort.",suggestions:{allUppercase:"Mettez quelques lettres en majuscules, mais pas toutes.",anotherWord:"Ajoutez des mots moins courants.",associatedYears:"Ãvitez les années qui vous sont associées. (ex: date de naissance)",capitalization:"Capitalisez mais pas seulement la première lettre.",dates:"Ãvitez les dates et les années qui vous sont associées. (ex: date ou année de naissance)",l33t:"Ãvitez les substitutions de lettres prévisibles comme '@' pour 'a'.",longerKeyboardPattern:"Utilisez des motifs de clavier plus longs et changez de sens de frappe plusieurs fois.",noNeed:"Vous pouvez créer des mots de passe forts sans utiliser de symboles, de chiffres ou de lettres majuscules.",pwned:"Si vous utilisez ce mot de passe ailleurs, vous devriez le modifier.",recentYears:"Ãvitez les dernières années.",repeated:"Ãvitez les mots et les caractères répétés.",reverseWords:"Ãvitez les orthographes inversées des mots courants",sequences:"Ãvitez les séquences de caractères courantes.",useWords:"Utilisez plusieurs mots, mais évitez les phrases courantes."},warnings:{common:"Ce mot de passe est couramment utilisé.",commonNames:"Les noms communs et les noms de famille sont faciles à deviner.",dates:"Les dates sont faciles à deviner.",extendedRepeat:"Les caractères répétés comme 'abcabcabc' sont faciles à deviner.",keyPattern:"Des motifs de clavier courts sont faciles à deviner.",namesByThemselves:"Des noms ou des prénoms simples sont faciles à deviner.",pwned:"Votre mot de passe a été divulgué suite à une violation de données sur Internet.",recentYears:"Les années récentes sont faciles à deviner.",sequences:"Des séquences de caractères communs comme 'abc' sont faciles à deviner.",similarToCommon:"Ce mot de passe est similaire à un mot de passe couramment utilisé.",simpleRepeat:"Les caractères répétés comme 'aaa' sont faciles à deviner.",straightRow:"Les lignes droites de touches de votre clavier sont faciles à deviner.",topHundred:"Ce mot de passe est fréquemment utilisé.",topTen:"Ce mot de passe est très utilisé.",userInputs:"Le mot de passe ne doit pas comporter de données personnelles ou liées au site.",wordByItself:"Les mots simples sont faciles à deviner."}}},userButton:{action__addAccount:"Ajouter un compte",action__closeUserMe
419nu:"Fermer le menu utilisateur",action__manageAccount:"Gérer mon compte",action__openUserMenu:"Ouvrir le menu utilisateur",action__signOut:"Déconnexion",action__signOutAll:"Se déconnecter de tous les comptes"},userProfile:{apiKeysPage:{title:"Clés API"},backupCodePage:{actionLabel__copied:"Copié !",actionLabel__copy:"Copier tous les codes",actionLabel__download:"Télécharger en .txt",actionLabel__print:"Imprimer",infoText1:"Les codes de récupération seront activés pour ce compte.",infoText2:"Gardez les codes de récupération secrets et stockez-les en toute sécurité. Vous pouvez régénérer les codes de récupération si vous pensez qu'ils ont été compromis.",subtitle__codelist:"Conservez-les en toute sécurité et gardez-les secrets.",successMessage:"Les codes de récupération sont maintenant activés. Vous pouvez utiliser l'un d'entre eux pour vous connecter à votre compte, si vous perdez l'accès à votre dispositif d'authentification. Chaque code ne peut être utilisé qu'une seule fois.",successSubtitle:"Vous pouvez utiliser l'un d'entre eux pour vous connecter à votre compte, si vous perdez l'accès à votre dispositif d'authentification.",title:"Ajouter la vérification du code de récupération",title__codelist:"Codes de récupération"},billingPage:{paymentHistorySection:{empty:"Aucun historique de paiement",notFound:"Tentative de paiement introuvable",tableHeader__amount:"Montant",tableHeader__date:"Date",tableHeader__status:"Statut"},paymentMethodsSection:{actionLabel__default:"Rendre par défaut",actionLabel__remove:"Supprimer",add:"Ajouter une nouvelle méthode de paiement",addSubtitle:"Ajoutez une nouvelle méthode de paiement à votre compte.",cancelButton:"Annuler",formButtonPrimary__add:"Ajouter une méthode de paiement",formButtonPrimary__pay:"Payer {{amount}}",payWithTestCardButton:"Payer avec une carte de test",removeMethod:{messageLine1:"{{identifier}} sera supprimé de ce compte.",messageLine2:"Vous ne pourrez plus utiliser cette méthode de paiement et tous les abonnements récurrents qui en dépendent ne fonctionneront plus.",successMessage:"{{paymentMethod}} a été supprimé de votre compte.",title:"Supprimer une méthode de paiement"},title:"Méthodes de paiement"},start:{headerTitle__payments:"Paiements",headerTitle__plans:"Plans",headerTitle__statements:"Relevés",headerTitle__subscriptions:"Abonnement"},statementsSection:{empty:"Aucun relevé à afficher",itemCaption__paidForPlan:"Payé pour le plan {{plan}} {{period}}",itemCaption__proratedCredit:"Crédit au prorata pour lâutilisation partielle de lâabonnement précédent",itemCaption__subscribedAndPaidForPlan:"Souscrit et payé pour le plan {{plan}} {{period}}",notFound:"Relevé introuvable",tableHeader__amount:"Montant",tableHeader__date:"Date",title:"Relevés",totalPaid:"Total payé"},subscriptionsListSection:{actionLabel__manageSubscription:"Gérer",actionLabel__newSubscription:"S'abonner à un plan",actionLabel__switchPlan:"Changer de plan",tableHeader__edit:"Modifier",tableHeader__plan:"Plan",tableHeader__startDate:"Date de début",title:"Abonnement"},subscriptionsSection:{actionLabel__default:"Gérer"},switchPlansSection:{title:"Changer de plan"},title:"Facturation"},connectedAccountPage:{formHint:"Sélectionnez un fournisseur pour connecter votre compte.",formHint__noAccounts:"Aucun fournisseur de compte externe n'est disponible.",removeResource:{messageLine1:"{{identifier}} sera supprimé de ce compte.",messageLine2:"Vous ne pourrez plus utiliser ce compte connecté et toutes les fonctionnalités dépendantes ne fonctionneront plus.",successMessage:"{{connectedAccount}} a été supprimé de votre compte.",title:"Supprimer le compte connecté"},socialButtonsBlockButton:"Connecter un compte {{provider|titleize}}",successMessage:"Le fournisseur a été ajouté à votre compte",title:"Ajouter un compte connecté"},deletePage:{actionDescription:'Saisissez "Supprimer le compte" ci-dessous pour continuer.',confirm:"Supprimer le compte",messageLine1:"Ãtes-vous sûr de vouloir supprimer votre compte ? Certaines données associées peuvent être conservées. Pour demander la suppression complète des données, veuillez contacter l'assistance.",messageLine2:"Cette action est définitive et irréversible.",title:"Supprimer le compte"},emailAddressPage:{emailCode:{formHint:"Un e-mail contenant un code de vérification sera envoyé à cette adresse e-mail.",formSubtitle:"Saisissez le code de vérification envoyé à {{identifier}}
419",formTitle:"Le code de vérification",resendButton:"Renvoyer le lien",successMessage:"L'e-mail {{identifier}} a été vérifié et ajouté à votre compte."},emailLink:{formHint:"Un e-mail contenant un lien de vérification sera envoyé à cette adresse e-mail.",formSubtitle:"Cliquez sur le lien de vérification dans l'e-mail envoyé à {{identifier}}",formTitle:"lien de vérification",resendButton:"Renvoyer le lien",successMessage:"L'e-mail {{identifier}} a été vérifié et ajouté à votre compte."},enterpriseSSOLink:{formButton:"Cliquez pour vous connecter",formSubtitle:"Terminez la connexion avec {{identifier}}"},formHint:"Vous devrez vérifier cette adresse e-mail avant quâelle puisse être ajoutée à votre compte.",removeResource:{messageLine1:"{{identifier}} sera supprimé de ce compte.",messageLine2:"Vous ne pourrez plus vous connecter avec cette adresse e-mail.",successMessage:"{{emailAddress}} a été supprimé de votre compte.",title:"Supprimer l'adresse e-mail"},title:"Ajouter une adresse e-mail",verifyTitle:"Vérifier un e-mail"},formButtonPrimary__add:"Ajouter",formButtonPrimary__continue:"Continuer",formButtonPrimary__finish:"Terminer",formButtonPrimary__remove:"Supprimer",formButtonPrimary__save:"Sauvegarder",formButtonReset:"Annuler",mfaPage:{formHint:"Sélectionnez une méthode à ajouter.",title:"Ajouter la vérification en deux étapes"},mfaPhoneCodePage:{backButton:"Utiliser un numéro existant",primaryButton__addPhoneNumber:"Ajouter un numéro de téléphone",removeResource:{messageLine1:"{{identifier}} ne recevra plus de codes de validation lors de la connexion.",messageLine2:"Votre compte sera moins sécurisé. Souhaitez-vous continuer ?",successMessage:"La vérification en deux étapes du code SMS a été supprimée pour {{mfaPhoneCode}}",title:"Supprimer la vérification en deux étapes"},subtitle__availablePhoneNumbers:"Sélectionnez un numéro de téléphone pour vous inscrire à la vérification en deux étapes du code SMS.",subtitle__unavailablePhoneNumbers:"Il n'y a pas de numéros de téléphone disponibles pour s'inscrire à la vérification en deux étapes du code SMS.",successMessage1:"Lors de la connexion, vous devrez entrer un code de vérification envoyé à ce numéro de téléphone comme étape supplémentaire.",successMessage2:"Enregistrez ces codes de récupérations et conservez-les en lieu sûr. Si vous perdez l'accès à votre appareil d'authentification, vous pourrez utiliser les codes de récupérations pour vous connecter.",successTitle:"Vérification par SMS activée",title:"Ajouter la vérification du code SMS"},mfaTOTPPage:{authenticatorApp:{buttonAbleToScan__nonPrimary:"Scannez le QR code à la place",buttonUnableToScan__nonPrimary:"Vous ne pouvez pas scanner le QR code ?",infoText__ableToScan:"Configurez une nouvelle méthode de connexion dans votre application d'authentification et scannez le QR code suivant pour le lier à votre compte.",infoText__unableToScan:"Configurez une nouvelle méthode de connexion dans votre authentificateur et entrez la clé fournie ci-dessous.",inputLabel__unableToScan1:"Assurez-vous que les mots de passe basés sur le temps ou à usage unique sont activés, puis terminez la liaison de votre compte.",inputLabel__unableToScan2:"Alternativement, si votre authentificateur prend en charge les URI TOTP, vous pouvez également copier l'URI complet."},removeResource:{messageLine1:"Les codes de vérification de cet authentificateur ne seront plus requis lors de la connexion.",messageLine2:"Votre compte sera moins sécurisé. Souhaitez-vous continuer ?",successMessage:"La vérification en deux étapes via l'application d'authentification a été supprimée.",title:"Supprimer la vérification en deux étapes"},successMessage:"La vérification en deux étapes est maintenant activée. Lors de la connexion, vous devrez saisir un code de vérification de cet authentificateur comme étape supplémentaire.",title:"Ajouter une application d'authentification",verifySubtitle:"Entrez le code de vérification généré par votre application d'authentification",verifyTitle:"Le co
419de de vérification"},mobileButton__menu:"Menu",navbar:{account:"Compte",apiKeys:"Clés API",billing:"Facturation",description:"Gérer votre compte.",security:"Sécurité",title:"Profil"},passkeyScreen:{removeResource:{messageLine1:"Ãtes-vous sûr de vouloir supprimer cette clé de sécurité ?",title:"Supprimer la clé de sécurité"},subtitle__rename:"Renommez votre clé de sécurité pour une identification facile.",title__rename:"Renommer la clé de sécurité"},passwordPage:{checkboxInfoText__signOutOfOtherSessions:"Il est recommandé de se déconnecter de tous les autres appareils qui pourraient avoir utilisé votre ancien mot de passe.",readonly:"Votre mot de passe ne peut pas être modifié pour l'instant car vous ne pouvez vous connecter qu'à l'aide de la connexion entreprise.",successMessage__set:"Votre mot de passe a été mis à jour.",successMessage__signOutOfOtherSessions:"Tous les autres appareils ont été déconnectés.",successMessage__update:"Votre mot de passe a été mis à jour.",title__set:"Mettre à jour le mot de passe",title__update:"Changer le mot de passe"},phoneNumberPage:{infoText:"Un SMS contenant un lien de vérification sera envoyé à ce numéro de téléphone.",removeResource:{messageLine1:"{{identifier}} sera supprimé de ce compte.",messageLine2:"Vous ne pourrez plus vous connecter avec ce numéro de téléphone.",successMessage:"{{phoneNumber}} a été supprimé de votre compte.",title:"Supprimer le numéro de téléphone"},successMessage:"{{identifier}} a été vérifié et ajouté à votre compte.",title:"Ajouter un numéro de téléphone",verifySubtitle:"Saisissez le code de vérification envoyé à {{identifier}}",verifyTitle:"Vérification du numéro de téléphone"},plansPage:{title:"Plans"},profilePage:{fileDropAreaHint:"Téléchargez une image JPG, PNG, GIF ou WEBP inférieure à 10 Mo",imageFormDestructiveActionSubtitle:"Supprimer l'image",imageFormSubtitle:"Télécharger une image",imageFormTitle:"Photo de profil",readonly:"Les informations de votre profil ont été fournies par la connexion d'entreprise et ne peuvent pas être modifiées.",successMessage:"Votre profil a été mis à jour.",title:"Mettre à jour le profil"},start:{activeDevicesSection:{destructiveAction:"Se déconnecter de l'appareil",title:"Appareils actifs"},connectedAccountsSection:{actionLabel__connectionFailed:"Réessayer",actionLabel__reauthorize:"Autoriser maintenant",destructiveActionTitle:"Retirer",primaryButton:"Connecter un compte",subtitle__disconnected:"Compte déconnecté. Connectez-vous à nouveau pour accéder aux fonctionnalités.",subtitle__reauthorize:"Les autorisations requises ont été mises à jour, ce qui peut entraîner des fonctionnalités limitées. Veuillez ré-autoriser cette application pour éviter tout problème.",title:"Comptes connectés"},dangerSection:{deleteAccountButton:"Supprimer le compte",title:"Danger"},emailAddressesSection:{destructiveAction:"Supprimer l'adresse e-mail",detailsAction__nonPrimary:"Définir comme principale",detailsAction__primary:"Compléter la vérification",detailsAction__unverified:"Compléter la vérification",primaryButton:"Ajouter une adresse e-mail",title:"Adresses e-mail"},enterpriseAccountsSection:{primaryButton:"Connecter un compte",title:"Comptes entreprises"},headerTitle__account:"Compte",headerTitle__security:"Sécurité",mfaSection:{backupCodes:{actionLabel__regenerate:"Régénérer les codes",headerTitle:"Codes de récupération",subtitle__regenerate:"Obtenez de nouveaux codes de récupération sécurisés. Les codes de récupération antérieurs seront supprimés et ne pourront pas être utilisés.",title__regenerate:"Régénérer les codes de récupération"},phoneCode:{actionLabel__setDefault:"Définir par défaut",destructiveActionLabel:"Supprimer le numéro de téléphone"},primaryButton:"Ajouter la vérification en deux étapes",title:"Vérification en deux étapes",totp:{destructiveActionTitle:"Désactiver",headerTitle:"Application d'authentification"}},passkeysSection:{menuAction__destructive:"Supprimer",menuAction__rename:"Renommer",primaryButton:"Ajouter une clé de sécurité",title:"Clés de sécurité"},passwordSection:{primaryButton__setPassword:"Définir le mot de passe",primaryButton__updatePassword:"Changer le mot de passe",title:"Mot de passe"},phoneNumbersSection:{destructiveAction:"Supprimer le numéro de téléphone",detailsAction__nonPrimary:"Définir comme principale",detailsAction__primary:"Compléter la vérification",detailsAction__unverified:"Compléter la vérification",primaryButton:"Ajouter un numéro de téléphone",title:"Numéros de téléphone"},profileSection:{primaryButton:"Mettre à jour le profil",title:"Profil"},usernameSection:{primaryButton__setUsername:"Définir le nom d'utilisateur",primaryButton__updateUsername:"Changer le nom d'utilisateur",title:"Nom d'utilisateur"},web3WalletsSection:{destructiveAction:"Supprimer le portefeuille",detailsAction__nonPrimary:"Définir comme principal",primaryButton:"Portefeuilles Web3",title:"Portefeuilles Web3",web3SelectSolanaWalletScreen:{subtitle:"Sélectionnez un portefeuille Solana à connecter à votre compte.",title:"Ajouter un portefeuille Solana"}}},usernamePage:{successMessage:"Votre nom d'utilisateur a été mis à jour.",title__set:"Mettre à jour le nom d'utilisateur",title__update:"Mettre à jour le nom d'utilisateur"},web3WalletPage:{removeResource:{messageLine1:"{{identifier}} sera supprimé de ce compte.",messageLine2:"Vous ne pourrez plus vous connecter avec ce portefeuille web3.",successMessage:"{{web3Wallet}} a été supprimé de votre compte.",title:"Supprimer le portefeuille Web3"},subtitle__availableWallets:"Sélectionnez un portefeuille Web3 pour vous connecter à votre compte.",subtitle__unavailableWallets:"Il n'y a pas de portefeuilles Web3 disponibles.",successMessage:"Le portefeuille a été ajouté à votre compte.",title:"Ajouter un portefeuille Web3",web3WalletButtonsBlockButton:"Utiliser un portefeuille Web3"}},waitlist:{start:{actionLink:"Rejoindre la liste d'attente",actionText:"Intéressé ? Rejoignez-nous !",formButton:"S'inscrire",subt
419itle:"Soyez parmi les premiers à découvrir notre nouveau service.",title:"Rejoindre la liste d'attente"},success:{message:"Merci ! Vous avez été ajouté à la liste d'attente.",subtitle:"Nous vous contacterons bientôt avec plus de détails.",title:"Inscription réussie"}},web3SolanaWalletButtons:{connect:"Se connecter avec {{walletName}}",continue:"Continuer avec {{walletName}}",noneAvailable:'Aucun portefeuille Solana Web3 détecté. Veuillez installer une {{ solanaWalletsLink || link("wallet extension") }} compatible Web3.'}};function yX({children:t,...e}){const{pathname:n}=En(),r=J7(n),i=k.useMemo(()=>r==="en"?WM:vX,[r]),s={...e,localization:i};return v.jsx(uL,{...s,children:t})}let iP=!1;function sP(){iP||_0()&&(b5({dsn:"https://926985a85d02f03e3ec7a21e9589dfc4@o4511245328515072.ingest.de.sentry.io/4511245346275408",environment:"production",integrations:[m5(),G9()],tracesSampleRate:.1,replaysSessionSampleRate:0,replaysOnErrorSampleRate:1}),iP=!0)}function _X(){b0()==="granted"&&sP(),x0(t=>{t==="granted"&&sP()})}_X();NK();const bX="pk_live_Y2xlcmsubGV4cGkuYWkk",tf="".toLowerCase();tf&&tf!=="default"&&(document.documentElement.classList.add(`ui-${tf}`),document.documentElement.setAttribute("data-theme",tf));function xX(t){return getComputedStyle(document.documentElement).getPropertyValue(t).trim()}function fi(t){return`rgb(${xX(t)})`}const mi={bg:fi("--c-surface"),surfaceHover:fi("--c-surface-hover"),text:fi("--c-text"),textMuted:fi("--c-text-muted"),textDim:fi("--c-text-dim"),white:fi("--c-white"),accent:fi("--c-accent"),accentHover:fi("--c-accent-hover"),error:fi("--c-error"),success:fi("--c-success"),warning:fi("--c-warning")},SX=new Y5({defaultOptions:{queries:{staleTime:3e4,retry:2}}});jO.createRoot(document.getElementById("root")).render(v.jsx(K.StrictMode,{children:v.jsx(rI,{fallback:v.jsx("p",{children:"Something went wrong."}),children:v.jsx(lq,{children:v.jsx(yX,{publishableKey:bX,appearance:{variables:{colorBackground:mi.bg,colorInputBackground:mi.surfaceHover,colorInputText:mi.text,colorText:mi.text,colorTextSecondary:mi.textMuted,colorTextOnPrimaryBackground:mi.white,colorPrimary:mi.accent,colorDanger:mi.error,colorSuccess:mi.success,colorWarning:mi.warning,colorNeutral:mi.text,borderRadius:"0.5rem"},elements:{card:"bg-lexpi-surface border border-lexpi-border shadow-xl",headerTitle:"text-lexpi-text",headerSubtitle:"text-lexpi-text-muted",formFieldLabel:"text-lexpi-text-muted",formFieldInput:"bg-lexpi-surface-hover border-lexpi-border text-lexpi-text placeholder:text-lexpi-text-dim",footerActionLink:"text-lexpi-accent hover:text-lexpi-accent-hover",formButtonPrimary:"bg-lexpi-accent hover:bg-lexpi-accent-hover text-white",socialButtonsBlockButton:"bg-lexpi-surface-hover border-lexpi-border text-lexpi-text hover:bg-lexpi-border",socialButtonsBlockButtonText:"text-lexpi-text",dividerLine:"bg-lexpi-border",dividerText:"text-lexpi-text-muted",formFieldInputShowPasswordButton:"text-lexpi-text-muted hover:text-lexpi-text",identityPreview:"bg-lexpi-surface-hover border-lexpi-border",identityPreviewText:"text-lexpi-text",identityPreviewEditButton:"text-lexpi-accent",alertText:"text-lexpi-text",formResendCodeLink:"text-lexpi-accent",otpCodeFieldInput:"bg-lexpi-surface-hover border-lexpi-border text-lexpi-text",footer:"bg-transparent",footerAction:"bg-transparent",footerActionText:"text-lexpi-text-muted"}},children:v.jsx(J5,{client:SX,children:v.jsx(dX,{})})})})})}));export{K5 as $,Ln as A,PX as B,gf as C,SV as D,Xf as E,CV as F,kV as G,zX as H,dd as I,Wn as J,EX as K,ut as L,og as M,go as N,ji as O,cx as P,TT as Q,bb as R,mo as S,MX as T,dL as U,KT as V,U0 as W,$V as X,fG as Y,UX as Z,OX as _,kX as a,pZ as a$,NV as a0,FX as a1,jX as a2,y0 as a3,NX as a4,sI as a5,In as a6,K as a7,l4 as a8,_b as a9,PV as aA,$X as aB,BX as aC,JX as aD,QX as aE,XX as aF,En as aG,pd as aH,VV as aI,_s as aJ,NZ as aK,TX as aL,MZ as aM,CX as aN,sZ as aO,oZ as aP,mZ as aQ,wZ as aR,TV as aS,dZ as aT,cZ as aU,hZ as aV,aZ as aW,fZ as aX,SZ as aY,lZ as aZ,uZ as a_,Qf as aa,BV as ab,DX as ac,be as ad,jV as ae,yV as af,Kf as ag,Jf as ah,ZX as ai,qJ as aj,ga as ak,Sr as al,re as am,Ke as an,Ho as ao,tP as ap,kf as aq,RQ as ar,Zh as as,vP as at,RX as au,d0 as av,_0 as aw,eZ as ax,tZ as ay,nZ as az,Kc as b,bZ as b0,xZ as b1,YX as b2,WX as b3,HX as b4,VX as b5,KX as b6,GX as b7,qX as b8,EZ as b9,H5 as bA,br as bB,aI as bC,kZ as ba,PZ as bb,TZ as bc,CZ as bd,IZ as be,LZ as bf,RZ as bg,AZ as bh,RV as bi,OV as bj,ab as bk,Cq as bl,Pq as bm,Ba as bn,vq as bo,bq as bp,Aq as bq,rZ as br,iZ as bs,vZ as bt,yZ as bu,_Z as bv,gZ as bw,dp as bx,q_ as by,Id as bz,Ca as c,X1 as d,Y7 as e,Wo as f,TI as g,OK as h,cQ as i,v as j,AX as k,IX as l,LX as m,gV as n,YT as o,Lu as p,yf as q,k as r,vV as s,Ge as t,Tt as u,dQ as v,iQ as w,mI as x,rQ as y,Oy as z};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.