PageSourceSearch

https://www.interruptor.pt/_next/static/chunks/pages/_app-d3ee81f542e80ea5.js

js interruptor.pt collected 2026-10-02 06:42:26 UTC 528,230 bytes, 38 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[888],{56063:function(e,t,n){"use strict";n.d(t,{o:function(){return s},p:function(){return a}});var r=n(67294),i=(0,r.createContext)(void 0),o=function(e,t){var n;return null==(n=document.monetization)||n.addEventListener(e,t,{passive:!0}),function(){var n;return null==(n=document.monetization)?void 0:n.removeEventListener(e,t)}},a=function(e){var t=e.children,n=(0,r.useState)("pending"),a=n[0],s=n[1];return(0,r.useEffect)(function(){var e=function(){s("started")},t=[o("monetizationstart",e),o("monetizationprogress",e),o("monetizationstop",function(){s("stopped")})];return function(){t.forEach(function(e){return e()})}},[]),r.createElement(i.Provider,{value:{isActive:"started"===a,state:a}},t)},s=function(){var e=(0,r.useContext)(i);if(!e)throw Error("[useWebMonetization] You're using the context outside of the WebMonetizationProvider");return e}},1314:function(e,t,n){"use strict";n.d(t,{He:function(){return l},Ld:function(){return E},eC:function(){return d},f3:function(){return u},iG:function(){return f},rS:function(){return h},sb:function(){return v},ys:function(){return s}});var r=n(21132),i=n(67294);let o=Symbol.for("Animated:node"),a=e=>!!e&&e[o]===e,s=e=>e&&e[o],u=(e,t)=>(0,r.dE)(e,o,t),l=e=>e&&e[o]&&e[o].getPayload();class c{constructor(){this.payload=void 0,u(this,this)}getPayload(){return this.payload||[]}}class f extends c{constructor(e){super(),this.done=!0,this.elapsedTime=void 0,this.lastPosition=void 0,this.lastVelocity=void 0,this.v0=void 0,this.durationProgress=0,this._value=e,r.is.num(this._value)&&(this.lastPosition=this._value)}static create(e){return new f(e)}getPayload(){return[this]}getValue(){return this._value}setValue(e,t){return r.is.num(e)&&(this.lastPosition=e,t&&(e=Math.round(e/t)*t,this.done&&(this.lastPosition=e))),this._value!==e&&(this._value=e,!0)}reset(){let{done:e}=this;this.done=!1,r.is.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,e&&(this.lastVelocity=null),this.v0=null)}}class d extends f{constructor(e){super(0),this._string=null,this._toString=void 0,this._toString=(0,r.mD)({output:[e,e]})}static create(e){return new d(e)}getValue(){let e=this._string;return null==e?this._string=this._toString(this._value):e}setValue(e){if(r.is.str(e)){if(e==this._string)return!1;this._string=e,this._value=1}else{if(!super.setValue(e))return!1;this._string=null}return!0}reset(e){e&&(this._toString=(0,r.mD)({output:[this.getValue(),e]})),this._value=0,super.reset()}}let p={dependencies:null};class h extends c{constructor(e){super(),this.source=e,this.setValue(e)}getValue(e){let t={};return(0,r.rU)(this.source,(n,i)=>{a(n)?t[i]=n.getValue(e):(0,r.j$)(n)?t[i]=(0,r.je)(n):e||(t[i]=n)}),t}setValue(e){this.source=e,this.payload=this._makePayload(e)}reset(){this.payload&&(0,r.S6)(this.payload,e=>e.reset())}_makePayload(e){if(e){let t=new Set;return(0,r.rU)(e,this._addToPayload,t),Array.from(t)}}_addToPayload(e){p.dependencies&&(0,r.j$)(e)&&p.dependencies.add(e);let t=l(e);t&&(0,r.S6)(t,e=>this.add(e))}}class g extends h{constructor(e){super(e)}static create(e){return new g(e)}getValue(){return this.source.map(e=>e.getValue())}setValue(e){let t=this.getPayload();return e.length==t.length?t.map((t,n)=>t.setValue(e[n])).some(Boolean):(super.setValue(e.map(m)),!0)}}function m(e){return((0,r.Df)(e)?d:f).create(e)}function v(e){let t=s(e);return t?t.constructor:r.is.arr(e)?g:(0,r.Df)(e)?d:f}function y(){return(y=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}let b=(e,t)=>{let n=!r.is.fun(e)||e.prototype&&e.prototype.isReactComponent;return(0,i.forwardRef)((o,a)=>{let s=(0,i.useRef)(null),u=n&&(0,i.useCallback)(e=>{s.current=(a&&(r.is.fun(a)?a(e):a.current=e),e)},[a]),[l,c]=function(e,t){let n=new Set;return p.dependencies=n,e.style&&(e=y({},e,{style:t.createAnimatedStyle(e.style)}
1)),e=new h(e),p.dependencies=null,[e,n]}(o,t),f=(0,r.NW)(),d=()=>{let e=s.current;(!n||e)&&!1===(!!e&&t.applyAnimatedValues(e,l.getValue(!0)))&&f()},g=new _(d,c),m=(0,i.useRef)();(0,r.LI)(()=>(m.current=g,(0,r.S6)(c,e=>(0,r.UI)(e,g)),()=>{m.current&&((0,r.S6)(m.current.deps,e=>(0,r.iL)(e,m.current)),r.Wn.cancel(m.current.update))})),(0,i.useEffect)(d,[]),(0,r.tf)(()=>()=>{let e=m.current;(0,r.S6)(e.deps,t=>(0,r.iL)(t,e))});let v=t.getComponentProps(l.getValue());return i.createElement(e,y({},v,{ref:u}))})};class _{constructor(e,t){this.update=e,this.deps=t}eventObserved(e){"change"==e.type&&r.Wn.write(this.update)}}let S=Symbol.for("AnimatedComponent"),E=(e,{applyAnimatedValues:t=()=>!1,createAnimatedStyle:n=e=>new h(e),getComponentProps:i=e=>e}={})=>{let o={applyAnimatedValues:t,createAnimatedStyle:n,getComponentProps:i},a=e=>{let t=O(e)||"Anonymous";return(e=r.is.str(e)?a[e]||(a[e]=b(e,o)):e[S]||(e[S]=b(e,o))).displayName=`Animated(${t})`,e};return(0,r.rU)(e,(t,n)=>{r.is.arr(e)&&(n=O(t)),a[n]=a(t)}),{animated:a}},O=e=>r.is.str(e)?e:e&&r.is.str(e.displayName)?e.displayName:r.is.fun(e)&&e.name||null},14928:function(e,t,n){"use strict";let r;n.d(t,{Globals:function(){return o.OH},useSpring:function(){return ef}});var i,o=n(21132),a=n(67294),s=n(1314);function u(){return(u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function l(e,...t){return o.is.fun(e)?e(...t):e}let c=(e,t)=>!0===e||!!(t&&e&&(o.is.fun(e)?e(t):(0,o.qo)(e).includes(t))),f=(e,t)=>o.is.obj(e)?t&&e[t]:e,d=(e,t)=>!0===e.default?e[t]:e.default?e.default[t]:void 0,p=e=>e,h=(e,t=p)=>{let n=g;e.default&&!0!==e.default&&(n=Object.keys(e=e.default));let r={};for(let i of n){let n=t(e[i],i);o.is.und(n)||(r[i]=n)}return r},g=["config","onProps","onStart","onChange","onPause","onResume","onRest"],m={config:1,from:1,to:1,ref:1,loop:1,reset:1,pause:1,cancel:1,reverse:1,immediate:1,default:1,delay:1,onProps:1,onStart:1,onChange:1,onPause:1,onResume:1,onRest:1,onResolve:1,items:1,trail:1,sort:1,expires:1,initial:1,enter:1,update:1,leave:1,children:1,onDestroyed:1,keys:1,callId:1,parentId:1};function v(e){let t=function(e){let t={},n=0;if((0,o.rU)(e,(e,r)=>{!m[r]&&(t[r]=e,n++)}),n)return t}(e);if(t){let n={to:t};return(0,o.rU)(e,(e,r)=>r in t||(n[r]=e)),n}return u({},e)}function y(e){return e=(0,o.je)(e),o.is.arr(e)?e.map(y):(0,o.Df)(e)?o.OH.createStringInterpolator({range:[0,1],output:[e,e]})(1):e}function b(e){return o.is.fun(e)||o.is.arr(e)&&o.is.obj(e[0])}let _=u({},{tension:170,friction:26},{mass:1,damping:1,easing:e=>e,clamp:!1});class S{constructor(){this.tension=void 0,this.friction=void 0,this.frequency=void 0,this.damping=void 0,this.mass=void 0,this.velocity=0,this.restVelocity=void 0,this.precision=void 0,this.progress=void 0,this.duration=void 0,this.easing=void 0,this.clamp=void 0,this.bounce=void 0,this.decay=void 0,this.round=void 0,Object.assign(this,_)}}function E(e,t){if(o.is.und(t.decay)){let n=!o.is.und(t.tension)||!o.is.und(t.friction);!n&&o.is.und(t.frequency)&&o.is.und(t.damping)&&o.is.und(t.mass)||(e.duration=void 0,e.decay=void 0),n&&(e.frequency=void 0)}else e.duration=void 0}let O=[];class w{constructor(){this.changed=!1,this.values=O,this.toValues=null,this.fromValues=O,this.to=void 0,this.from=void 0,this.config=new S,this.immediate=!1}}function x(e,{key:t,props:n,defaultProps:r,state:i,actions:a}){return new Promise((s,f)=>{var d;let p,h;let g=c(null!=(d=n.cancel)?d:null==r?void 0:r.cancel,t);if(g)y();else{o.is.und(n.pause)||(i.paused=c(n.pause,t));let e=null==r?void 0:r.pause;!0!==e&&(e=i.paused||c(e,t)),p=l(n.delay||0,t),e?(i.resumeQueue.add(v),a.pause()):(a.resume(),v())}function m(){i.resumeQueue.add(v),i.timeouts.delete(h),h.cancel(),p=h.time-o.Wn.now()}function v(){p>0&&!o.OH.skipAnimation?(i.delayed=!0,h=o.Wn.setTimeout(y,p),i.pauseQueue.add(m),i.timeouts.add(h)):y()}function y(){i.delayed&&(i.delayed=!1),i.pauseQueue.delete(m),i.timeouts.delete(h),e<=(i.cancelId||0)&&(g=!0);try{a.start(u({},n,{callId:e,cancel:g}),s)}catch(e){f(e)}}})}let T=(e,t)=>
11==t.length?t[0]:t.some(e=>e.cancelled)?A(e.get()):t.every(e=>e.noop)?C(e.get()):P(e.get(),t.every(e=>e.finished)),C=e=>({value:e,noop:!0,finished:!0,cancelled:!1}),P=(e,t,n=!1)=>({value:e,finished:t,cancelled:n}),A=e=>({value:e,cancelled:!0,finished:!1});function k(e,t,n,r){let{callId:i,parentId:a,onRest:s}=t,{asyncTo:l,promise:c}=n;return a||e!==l||t.reset?n.promise=(async()=>{let f,d,p;n.asyncId=i,n.asyncTo=e;let g=h(t,(e,t)=>"onRest"===t?void 0:e),m=new Promise((e,t)=>(f=e,d=t)),v=e=>{let t=i<=(n.cancelId||0)&&A(r)||i!==n.asyncId&&P(r,!1);if(t)throw e.result=t,d(e),e},y=(e,t)=>{let a=new I,s=new R;return(async()=>{if(o.OH.skipAnimation)throw j(n),s.result=P(r,!1),d(s),s;v(a);let l=o.is.obj(e)?u({},e):u({},t,{to:e});l.parentId=i,(0,o.rU)(g,(e,t)=>{o.is.und(l[t])&&(l[t]=e)});let c=await r.start(l);return v(a),n.paused&&await new Promise(e=>{n.resumeQueue.add(e)}),c})()};if(o.OH.skipAnimation)return j(n),P(r,!1);try{let t;t=o.is.arr(e)?(async e=>{for(let t of e)await y(t)})(e):Promise.resolve(e(y,r.stop.bind(r))),await Promise.all([t.then(f),m]),p=P(r.get(),!0,!1)}catch(e){if(e instanceof I)p=e.result;else if(e instanceof R)p=e.result;else throw e}finally{i==n.asyncId&&(n.asyncId=a,n.asyncTo=a?l:void 0,n.promise=a?c:void 0)}return o.is.fun(s)&&o.Wn.batchedUpdates(()=>{s(p,r,r.item)}),p})():c}function j(e,t){(0,o.yl)(e.timeouts,e=>e.cancel()),e.pauseQueue.clear(),e.resumeQueue.clear(),e.asyncId=e.asyncTo=e.promise=void 0,t&&(e.cancelId=t)}class I extends Error{constructor(){super("An async animation has been interrupted. You see this error because you forgot to use `await` or `.catch(...)` on its returned promise."),this.result=void 0}}class R extends Error{constructor(){super("SkipAnimationSignal"),this.result=void 0}}let D=e=>e instanceof L,N=1;class L extends o.B0{constructor(...e){super(...e),this.id=N++,this.key=void 0,this._priority=0}get priority(){return this._priority}set priority(e){this._priority!=e&&(this._priority=e,this._onPriorityChange(e))}get(){let e=(0,s.ys)(this);return e&&e.getValue()}to(...e){return o.OH.to(this,e)}interpolate(...e){return(0,o.LW)(),o.OH.to(this,e)}toJSON(){return this.get()}observerAdded(e){1==e&&this._attach()}observerRemoved(e){0==e&&this._detach()}_attach(){}_detach(){}_onChange(e,t=!1){(0,o.k0)(this,{type:"change",parent:this,value:e,idle:t})}_onPriorityChange(e){this.idle||o.fT.sort(this),(0,o.k0)(this,{type:"priority",parent:this,priority:e})}}let M=Symbol.for("SpringPhase"),F=e=>(1&e[M])>0,U=e=>(2&e[M])>0,$=e=>(4&e[M])>0,B=(e,t)=>t?e[M]|=3:e[M]&=-3,z=(e,t)=>t?e[M]|=4:e[M]&=-5;class q extends L{constructor(e,t){if(super(),this.key=void 0,this.animation=new w,this.queue=void 0,this.defaultProps={},this._state={paused:!1,delayed:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._pendingCalls=new Set,this._lastCallId=0,this._lastToId=0,this._memoizedDuration=0,!o.is.und(e)||!o.is.und(t)){let n=o.is.obj(e)?u({},e):u({},t,{from:e});o.is.und(n.default)&&(n.default=!0),this.start(n)}}get idle(){return!(U(this)||this._state.asyncTo)||$(this)}get goal(){return(0,o.je)(this.animation.to)}get velocity(){let e=(0,s.ys)(this);return e instanceof s.iG?e.lastVelocity||0:e.getPayload().map(e=>e.lastVelocity||0)}get hasAnimated(){return F(this)}get isAnimating(){return U(this)}get isPaused(){return $(this)}get isDelayed(){return this._state.delayed}advance(e){let t=!0,n=!1,r=this.animation,{config:i,toValues:a}=r,u=(0,s.He)(r.to);!u&&(0,o.j$)(r.to)&&(a=(0,o.qo)((0,o.je)(r.to))),r.values.forEach((l,c)=>{if(l.done)return;let f=l.constructor==s.eC?1:u?u[c].lastPosition:a[c],d=r.immediate,p=f;if(!d){let t;if(p=l.lastPosition,i.tension<=0){l.done=!0;return}let n=l.elapsedTime+=e,a=r.fromValues[c],s=null!=l.v0?l.v0:l.v0=o.is.arr(i.velocity)?i.velocity[c]:i.velocity;if(o.is.und(i.duration)){if(i.decay){let e=!0===i.decay?.998:i.decay,r=Math.exp(-(1-e)*n);p=a+s/(1-e)*(1-r),d=.1>Math.abs(l.lastPosition-p),t=s*r}else{t=null==l.lastVelocity?s:l.lastVelocity;let n=i.precision||(a==f?.005:Math.min(1,.001*Math.abs(f-a))),r=i.restVelocity||n/10,u=i.clamp?0:i.bounce,c=!o.is.und(u),h=a==f?l.v0>0:a<f,g=Math.ceil(e/1);for(let e=0;e<g&&!(!(Math.abs(t)>r)&&(d=Math.abs(f-p)<=n));++e){c&&(p==f||p>f==h)&&(t=-t*u,p=f);let e=(-(1e-6*i.tension)*(p-f)+-(.001*i.friction)*t)/i.mass;t+=1*e,p+=1*t}}}else{let r=1;i.duration>0&&(this._memoizedDuration!==i.duration&&(this._memoizedDuration=i.duration,l.durationProgress>0&&(l.elapsedTime=i.duration*l.durationProgress,n=l.elapsedTime+=e)),r=(r=(i.progress||0)+n/this._memoizedDuration)>1?1:r<0?0:r,l.durationProgress=r),t=((p=a+i.easing(r)*(f-a))-l.lastPosition)/e,d=1==r}l.lastVelocity=t,Number.isNaN(p)&&(console.warn("Got NaN while animating:",this),d=!0)}
1u&&!u[c].done&&(d=!1),d?l.done=!0:t=!1,l.setValue(p,i.round)&&(n=!0)});let l=(0,s.ys)(this),c=l.getValue();if(t){let e=(0,o.je)(r.to);(c!==e||n)&&!i.decay?(l.setValue(e),this._onChange(e)):n&&i.decay&&this._onChange(c),this._stop()}else n&&this._onChange(c)}set(e){return o.Wn.batchedUpdates(()=>{this._stop(),this._focus(e),this._set(e)}),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(U(this)){let{to:e,config:t}=this.animation;o.Wn.batchedUpdates(()=>{this._onStart(),t.decay||this._set(e,!1),this._stop()})}return this}update(e){return(this.queue||(this.queue=[])).push(e),this}start(e,t){let n;return o.is.und(e)?(n=this.queue||[],this.queue=[]):n=[o.is.obj(e)?e:u({},t,{to:e})],Promise.all(n.map(e=>this._update(e))).then(e=>T(this,e))}stop(e){let{to:t}=this.animation;return this._focus(this.get()),j(this._state,e&&this._lastCallId),o.Wn.batchedUpdates(()=>this._stop(t,e)),this}reset(){this._update({reset:!0})}eventObserved(e){"change"==e.type?this._start():"priority"==e.type&&(this.priority=e.priority+1)}_prepareNode(e){let t=this.key||"",{to:n,from:r}=e;(null==(n=o.is.obj(n)?n[t]:n)||b(n))&&(n=void 0),null==(r=o.is.obj(r)?r[t]:r)&&(r=void 0);let i={to:n,from:r};return F(this)||(e.reverse&&([n,r]=[r,n]),r=(0,o.je)(r),o.is.und(r)?(0,s.ys)(this)||this._set(n):this._set(r)),i}_update(e,t){let n=u({},e),{key:r,defaultProps:i}=this;n.default&&Object.assign(i,h(n,(e,t)=>/^on/.test(t)?f(e,r):e)),G(this,n,"onProps"),K(this,"onProps",n,this);let a=this._prepareNode(n);if(Object.isFrozen(this))throw Error("Cannot animate a `SpringValue` object that is frozen. Did you forget to pass your component to `animated(...)` before animating its props?");let s=this._state;return x(++this._lastCallId,{key:r,props:n,defaultProps:i,state:s,actions:{pause:()=>{$(this)||(z(this,!0),(0,o.bl)(s.pauseQueue),K(this,"onPause",P(this,V(this,this.animation.to)),this))},resume:()=>{$(this)&&(z(this,!1),U(this)&&this._resume(),(0,o.bl)(s.resumeQueue),K(this,"onResume",P(this,V(this,this.animation.to)),this))},start:this._merge.bind(this,a)}}).then(e=>{if(n.loop&&e.finished&&!(t&&e.noop)){let e=H(n);if(e)return this._update(e,!0)}return e})}_merge(e,t,n){if(t.cancel)return this.stop(!0),n(A(this));let r=!o.is.und(e.to),i=!o.is.und(e.from);if(r||i){if(!(t.callId>this._lastToId))return n(A(this));this._lastToId=t.callId}let{key:a,defaultProps:f,animation:d}=this,{to:p,from:h}=d,{to:g=p,from:m=h}=e;i&&!r&&(!t.default||o.is.und(g))&&(g=m),t.reverse&&([g,m]=[m,g]);let v=!(0,o.Xy)(m,h);v&&(d.from=m),m=(0,o.je)(m);let S=!(0,o.Xy)(g,p);S&&this._focus(g);let O=b(t.to),{config:w}=d,{decay:x,velocity:T}=w;(r||i)&&(w.velocity=0),t.config&&!O&&function(e,t,n){for(let r in n&&(E(n=u({},n),t),t=u({},n,t)),E(e,t),Object.assign(e,t),_)null==e[r]&&(e[r]=_[r]);let{mass:r,frequency:i,damping:a}=e;o.is.und(i)||(i<.01&&(i=.01),a<0&&(a=0),e.tension=Math.pow(2*Math.PI/i,2)*r,e.friction=4*Math.PI*a*r/i)}(w,l(t.config,a),t.config!==f.config?l(f.config,a):void 0);let j=(0,s.ys)(this);if(!j||o.is.und(g))return n(P(this,!0));let I=o.is.und(t.reset)?i&&!t.default:!o.is.und(m)&&c(t.reset,a),R=I?m:this.get(),D=y(g),N=o.is.num(D)||o.is.arr(D)||(0,o.Df)(D),L=!O&&(!N||c(f.immediate||t.immediate,a));if(S){let e=(0,s.sb)(g);if(e!==j.constructor){if(L)j=this._set(D);else throw Error(`Cannot animate between ${j.constructor.name} and ${e.name}, as the "to" prop suggests`)}}let M=j.constructor,$=(0,o.j$)(g),B=!1;if(!$){let e=I||!F(this)&&v;(S||e)&&($=!(B=(0,o.Xy)(y(R),D))),((0,o.Xy)(d.immediate,L)||L)&&(0,o.Xy)(w.decay,x)&&(0,o.Xy)(w.velocity,T)||($=!0)}if(B&&U(this)&&(d.changed&&!I?$=!0:$||this._stop(p)),!O&&(($||(0,o.j$)(p))&&(d.values=j.getPayload(),d.toValues=(0,o.j$)(g)?null:M==s.eC?[1]:(0,o.qo)(D)),d.immediate==L||(d.immediate=L,L||I||this._set(p)),$)){let{onRest:e}=d;(0,o.S6)(Q,e=>G(this,t,e));let r=P(this,V(this,p));(0,o.bl)(this._pendingCalls,r),this._pendingCalls.add(n),d.changed&&o.Wn.batchedUpdates(()=>{d.changed=!I,null==e||e(r,this),I?l(f.onRest,r):null==d.onStart||d.onStart(r,this)})}I&&this._set(R),O?n(k(t.to,t,this._state,this)):$?this._start():U(this)&&!S?this._pendingCalls.add(n):n(C(R))}_focus(e){let t=this.animation;e!==t.to&&((0,o.Ll)(this)&&this._detach(),t.to=e,(0,o.Ll)(this)&&this._attach())}_attach(){let e=0,{to:t}=this.animation;(0,o.j$)(t)&&((0,o.UI)(t,this),D(t)&&(e=t.priority+1)),this.priority=e}_detach(){let{to:e}=this.animation;(0,o.j$)(e)&&(0,o.iL)(e,this)}_set(e,t=!0){let n=(0,o.je)(e);if(!o.is.und(n)){let e=(0,s.ys)(this);if(!e||!(0,o.Xy)(n,e.getValue())){let r=(0,s.sb)(n);e&&e.constructor==r?e.setValue(n):(0,s.f3)(this,r.create(n)),e&&o.Wn.batchedUpdates(()=>{this._onChange(n,t)})}}return(0,s.ys)(this)}_onStart(){let e=this.animation;e.changed||(e.changed=!0,K(this,"onStart",P(this,V(this,e.to)),this))}_onChange(e,t){t||(this._onStart(),l(this.animation.onChange,e,this)),l(this.defaultProps.onChange,e,this),super._onChange(e,t)}_start(){let e=this.animation;(0,s.ys)(this).reset((0,o.je)(e.to)),e.immediate||(e.fromValues=e.values.map(e=>e.lastPosition)),U(this)||(B(this,!0),$(this)||this._resume())}_resume(){o.OH.skipAnimation?this.finish():o.fT.start(this)}_stop(e,t){if(U(this)){B(this,!1);let n=this.animation;(0,o.S6)(n.values,e=>{e.done=!0}),n.toValues&&(n.onChange=n.onPause=n.onResume=void 0),(0,o.k0)(this,{type:"idle",parent:this});let r=t?A(this.get()):P(this.get(),V(this,null!=e?e:n.to));
1(0,o.bl)(this._pendingCalls,r),n.changed&&(n.changed=!1,K(this,"onRest",r,this))}}}function V(e,t){let n=y(t),r=y(e.get());return(0,o.Xy)(r,n)}function H(e,t=e.loop,n=e.to){let r=l(t);if(r){let i=!0!==r&&v(r),o=(i||e).reverse,a=!i||i.reset;return Z(u({},e,{loop:t,default:!1,pause:void 0,to:!o||b(n)?n:void 0,from:a?e.from:void 0,reset:a},i))}}function Z(e){let{to:t,from:n}=e=v(e),r=new Set;return o.is.obj(t)&&W(t,r),o.is.obj(n)&&W(n,r),e.keys=r.size?Array.from(r):null,e}function W(e,t){(0,o.rU)(e,(e,n)=>null!=e&&t.add(n))}let Q=["onStart","onRest","onChange","onPause","onResume"];function G(e,t,n){e.animation[n]=t[n]!==d(t,n)?f(t[n],e.key):void 0}function K(e,t,...n){var r,i,o,a;null==(r=(i=e.animation)[t])||r.call(i,...n),null==(o=(a=e.defaultProps)[t])||o.call(a,...n)}let Y=["onStart","onChange","onRest"],J=1;class X{constructor(e,t){this.id=J++,this.springs={},this.queue=[],this.ref=void 0,this._flush=void 0,this._initialProps=void 0,this._lastAsyncId=0,this._active=new Set,this._changed=new Set,this._started=!1,this._item=void 0,this._state={paused:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._events={onStart:new Map,onChange:new Map,onRest:new Map},this._onFrame=this._onFrame.bind(this),t&&(this._flush=t),e&&this.start(u({default:!0},e))}get idle(){return!this._state.asyncTo&&Object.values(this.springs).every(e=>e.idle&&!e.isDelayed&&!e.isPaused)}get item(){return this._item}set item(e){this._item=e}get(){let e={};return this.each((t,n)=>e[n]=t.get()),e}set(e){for(let t in e){let n=e[t];o.is.und(n)||this.springs[t].set(n)}}update(e){return e&&this.queue.push(Z(e)),this}start(e){let{queue:t}=this;return(e?t=(0,o.qo)(e).map(Z):this.queue=[],this._flush)?this._flush(this,t):(ea(this,t),ee(this,t))}stop(e,t){if(!!e!==e&&(t=e),t){let n=this.springs;(0,o.S6)((0,o.qo)(t),t=>n[t].stop(!!e))}else j(this._state,this._lastAsyncId),this.each(t=>t.stop(!!e));return this}pause(e){if(o.is.und(e))this.start({pause:!0});else{let t=this.springs;(0,o.S6)((0,o.qo)(e),e=>t[e].pause())}return this}resume(e){if(o.is.und(e))this.start({pause:!1});else{let t=this.springs;(0,o.S6)((0,o.qo)(e),e=>t[e].resume())}return this}each(e){(0,o.rU)(this.springs,e)}_onFrame(){let{onStart:e,onChange:t,onRest:n}=this._events,r=this._active.size>0,i=this._changed.size>0;(r&&!this._started||i&&!this._started)&&(this._started=!0,(0,o.yl)(e,([e,t])=>{t.value=this.get(),e(t,this,this._item)}));let a=!r&&this._started,s=i||a&&n.size?this.get():null;i&&t.size&&(0,o.yl)(t,([e,t])=>{t.value=s,e(t,this,this._item)}),a&&(this._started=!1,(0,o.yl)(n,([e,t])=>{t.value=s,e(t,this,this._item)}))}eventObserved(e){if("change"==e.type)this._changed.add(e.parent),e.idle||this._active.add(e.parent);else{if("idle"!=e.type)return;this._active.delete(e.parent)}o.Wn.onFrame(this._onFrame)}}function ee(e,t){return Promise.all(t.map(t=>et(e,t))).then(t=>T(e,t))}async function et(e,t,n){let{keys:r,to:i,from:a,loop:s,onRest:u,onResolve:l}=t,c=o.is.obj(t.default)&&t.default;s&&(t.loop=!1),!1===i&&(t.to=null),!1===a&&(t.from=null);let f=o.is.arr(i)||o.is.fun(i)?i:void 0;f?(t.to=void 0,t.onRest=void 0,c&&(c.onRest=void 0)):(0,o.S6)(Y,n=>{let r=t[n];if(o.is.fun(r)){let i=e._events[n];t[n]=({finished:e,cancelled:t})=>{let n=i.get(r);n?(e||(n.finished=!1),t&&(n.cancelled=!0)):i.set(r,{value:null,finished:e||!1,cancelled:t||!1})},c&&(c[n]=t[n])}});let p=e._state;!p.paused===t.pause?(p.paused=t.pause,(0,o.bl)(t.pause?p.pauseQueue:p.resumeQueue)):p.paused&&(t.pause=!0);let h=(r||Object.keys(e.springs)).map(n=>e.springs[n].start(t)),g=!0===t.cancel||!0===d(t,"cancel");(f||g&&p.asyncId)&&h.push(x(++e._lastAsyncId,{props:t,state:p,actions:{pause:o.ZT,resume:o.ZT,start(t,n){g?(j(p,e._lastAsyncId),n(A(e))):(t.onRest=u,n(k(f,t,p,e)))}}})),p.paused&&await new Promise(e=>{p.resumeQueue.add(e)});let m=T(e,await Promise.all(h));if(s&&m.finished&&!(n&&m.noop)){let n=H(t,s,i);if(n)return ea(e,[n]),et(e,n,!0)}return l&&o.Wn.batchedUpdates(()=>l(m,e,e.item)),m}function en(e,t){let n=u({},e.springs);return t&&(0,o.S6)((0,o.qo)(t),e=>{o.is.und(e.keys)&&(e=Z(e)),o.is.obj(e.to)||(e=u({},e,{to:void 0})),eo(n,e,e=>ei(e))}),er(e,n),n}function er(e,t){(0,o.rU)(t,(t,n)=>{e.springs[n]||(e.springs[n]=t,(0,o.UI)(t,e))})}function ei(e,t){let n=new q;return n.key=e,t&&(0,o.UI)(n,t),n}function eo(e,t,n){t.keys&&(0,o.S6)(t.keys,r=>{(e[r]||(e[r]=n(r)))._prepareNode(t)})}function ea(e,t){(0,o.S6)(t,t=>{eo(e.springs,t,t=>ei(t,e))})}let es=["children"],eu=e=>{let{children:t}=e,n=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}
1(e,es),r=(0,a.useContext)(el),i=n.pause||!!r.pause,s=n.immediate||!!r.immediate;n=(0,o.Pr)(()=>({pause:i,immediate:s}),[i,s]);let{Provider:u}=el;return a.createElement(u,{value:n},t)},el=(Object.assign(eu,a.createContext({})),eu.Provider._context=eu,eu.Consumer._context=eu,eu);eu.Provider=el.Provider,eu.Consumer=el.Consumer;let ec=()=>{let e=[],t=function(t){(0,o.ZR)();let r=[];return(0,o.S6)(e,(e,i)=>{if(o.is.und(t))r.push(e.start());else{let o=n(t,e,i);o&&r.push(e.start(o))}}),r};t.current=e,t.add=function(t){e.includes(t)||e.push(t)},t.delete=function(t){let n=e.indexOf(t);~n&&e.splice(n,1)},t.pause=function(){return(0,o.S6)(e,e=>e.pause(...arguments)),this},t.resume=function(){return(0,o.S6)(e,e=>e.resume(...arguments)),this},t.set=function(t){(0,o.S6)(e,e=>e.set(t))},t.start=function(t){let n=[];return(0,o.S6)(e,(e,r)=>{if(o.is.und(t))n.push(e.start());else{let i=this._getProps(t,e,r);i&&n.push(e.start(i))}}),n},t.stop=function(){return(0,o.S6)(e,e=>e.stop(...arguments)),this},t.update=function(t){return(0,o.S6)(e,(e,n)=>e.update(this._getProps(t,e,n))),this};let n=function(e,t,n){return o.is.fun(e)?e(n,t):e};return t._getProps=n,t};function ef(e,t){let n=o.is.fun(e),[[r],i]=function(e,t,n){let r=o.is.fun(t)&&t;r&&!n&&(n=[]);let i=(0,a.useMemo)(()=>r||3==arguments.length?ec():void 0,[]),s=(0,a.useRef)(0),l=(0,o.NW)(),c=(0,a.useMemo)(()=>({ctrls:[],queue:[],flush(e,t){let n=en(e,t);return!(s.current>0)||c.queue.length||Object.keys(n).some(t=>!e.springs[t])?new Promise(r=>{er(e,n),c.queue.push(()=>{r(ee(e,t))}),l()}):ee(e,t)}}),[]),f=(0,a.useRef)([...c.ctrls]),d=[],p=(0,o.zH)(e)||0;function g(e,n){for(let i=e;i<n;i++){let e=f.current[i]||(f.current[i]=new X(null,c.flush)),n=r?r(i,e):t[i];n&&(d[i]=function(e){let t=Z(e);return o.is.und(t.default)&&(t.default=h(t)),t}(n))}}(0,a.useMemo)(()=>{(0,o.S6)(f.current.slice(e,p),e=>{var t;null==(t=e.ref)||t.delete(e),null==i||i.delete(e),e.stop(!0)}),f.current.length=e,g(p,e)},[e]),(0,a.useMemo)(()=>{g(0,Math.min(p,e))},n);let m=f.current.map((e,t)=>en(e,d[t])),v=(0,a.useContext)(eu),y=(0,o.zH)(v),b=v!==y&&function(e){for(let t in e)return!0;return!1}(v);(0,o.LI)(()=>{s.current++,c.ctrls=f.current;let{queue:e}=c;e.length&&(c.queue=[],(0,o.S6)(e,e=>e())),(0,o.S6)(f.current,(e,t)=>{null==i||i.add(e),b&&e.start({default:v});let n=d[t];n&&(function(e,t){if(t&&e.ref!==t){var n;null==(n=e.ref)||n.delete(e),t.add(e),e.ref=t}}(e,n.ref),e.ref?e.queue.push(n):e.start(n))})}),(0,o.tf)(()=>()=>{(0,o.S6)(c.ctrls,e=>e.stop(!0))});let _=m.map(e=>u({},e));return i?[_,i]:_}(1,n?e:[e],n?t||[]:t);return n||2==arguments.length?[r,i]:r}(i=r||(r={})).MOUNT="mount",i.ENTER="enter",i.UPDATE="update",i.LEAVE="leave";class ed extends L{constructor(e,t){super(),this.key=void 0,this.idle=!0,this.calc=void 0,this._active=new Set,this.source=e,this.calc=(0,o.mD)(...t);let n=this._get(),r=(0,s.sb)(n);(0,s.f3)(this,r.create(n))}advance(e){let t=this._get(),n=this.get();(0,o.Xy)(t,n)||((0,s.ys)(this).setValue(t),this._onChange(t,this.idle)),!this.idle&&eh(this._active)&&eg(this)}_get(){let e=o.is.arr(this.source)?this.source.map(o.je):(0,o.qo)((0,o.je)(this.source));return this.calc(...e)}_start(){this.idle&&!eh(this._active)&&(this.idle=!1,(0,o.S6)((0,s.He)(this),e=>{e.done=!1}),o.OH.skipAnimation?(o.Wn.batchedUpdates(()=>this.advance()),eg(this)):o.fT.start(this))}_attach(){let e=1;(0,o.S6)((0,o.qo)(this.source),t=>{(0,o.j$)(t)&&(0,o.UI)(t,this),D(t)&&(t.idle||this._active.add(t),e=Math.max(e,t.priority+1))}),this.priority=e,this._start()}_detach(){(0,o.S6)((0,o.qo)(this.source),e=>{(0,o.j$)(e)&&(0,o.iL)(e,this)}),this._active.clear(),eg(this)}eventObserved(e){"change"==e.type?e.idle?this.advance():(this._active.add(e.parent),this._start()):"idle"==e.type?this._active.delete(e.parent):"priority"==e.type&&(this.priority=(0,o.qo)(this.source).reduce((e,t)=>Math.max(e,(D(t)?t.priority:0)+1),0))}}function ep(e){return!1!==e.idle}function eh(e){return!e.size||Array.from(e).every(ep)}function eg(e){e.idle||(e.idle=!0,(0,o.S6)((0,s.He)(e),e=>{e.done=!0}),(0,o.k0)(e,{type:"idle",parent:e}))}o.OH.assign({createStringInterpolator:o.qS,to:(e,t)=>new ed(e,t)}),o.fT.advance},21132:function(e,t,n){"use strict";let r,i,o;n.d(t,{B0:function(){return eS},OH:function(){return F},UI:function(){return eO},k0:function(){return e_},O9:function(){return Q},mD:function(){return ep},qS:function(){return eD},dE:function(){return T},ZR:function(){return e$},LW:function(){return eF},S6:function(){return A},rU:function(){return k},yl:function(){return I},bl:function(){return R},fT:function(){return q},Ll:function(){return eb},je:function(){return ey},j$:function(){return ev},is:function(){return C},Df:function(){return eB},Xy:function(){return P},ZT:function(){return x},Wn:function(){return s},iL:function(){return ew},qo:function(){return j},NW:function(){return eV},LI:function(){return ez},Pr:function(){return eH},tf:function(){return eZ},zH:function(){return eQ}});let a=E(),s=e=>y(e,a),u=E();s.write=e=>y(e,u);let l=E();s.onStart=e=>y(e,l);let c=E();s.onFrame=e=>y(e,c);let f=E();s.onFinish=e=>y(e,f);let d=[];s.setTimeout=(e,t)=>{let n=s.now()+t,r=()=>{let e=d.findIndex(e=>e.cancel==r);~e&&d.splice(e,1),m-=~e?1:0},i={time:n,handler:e,cancel:r};return d.splice(p(n),0,i),m+=1,b(),i};let p=e=>~(~d.findIndex(t=>t.time>e)||~d.length);s.cancel=e=>{l.delete(e),c.delete(e),f.delete(e),a.delete(e),u.delete(e)},s.sync=e=>{v=!0,s.batchedUpdates(e),v=!1},s.throttle=e=>{let t;function n(){try{e(...t)}finally{t=null}}function r(...e){t=e,s.onStart(n)}return r.handler=e,r.cancel=()=>{l.delete(n),t=null},r};let h="undefined"!=typeof window?window.requestAnimationFrame:()=>{};s.use=e=>h=e,s.now="undefined"!=typeof performance?()=>performance.now():Date.now,s.batchedUpdates=e=>e(),s.catch=console.error,s.frameLoop="always",s.advance=()=>{"demand"!==s.frameLoop?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):S()};let g=-1,m=0,v=!1;function y(e,t){v?(t.delete(e),e(0)):(t.add(e),b())}function b(){g<0&&(g=0,"demand"!==s.frameLoop&&h(_))}function _(){~g&&(h(_),s.batchedUpdates(S))}function S(){let e=g,t=p(g=s.now());if(t&&(O(d.splice(0,t),e=>e.handler()),m-=t),!m){g=-1;return}l.flush(),a.flush(e?Math.min(64,g-e):16.667),c.flush(),u.flush(),f.flush()}function E(){let e=new Set,t=e;return{add(n){m+=t!=e||e.has(n)?0:1,e.add(n)},delete:n=>(m-=t==e&&e.has(n)?1:0,e.delete(n)),flush(n){t.size&&(e=new Set,m-=t.size,O(t,t=>t(n)&&e.add(t)),m+=e.size,t=e)}}}
1function O(e,t){e.forEach(e=>{try{t(e)}catch(e){s.catch(e)}})}var w=n(67294);function x(){}let T=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),C={arr:Array.isArray,obj:e=>!!e&&"Object"===e.constructor.name,fun:e=>"function"==typeof e,str:e=>"string"==typeof e,num:e=>"number"==typeof e,und:e=>void 0===e};function P(e,t){if(C.arr(e)){if(!C.arr(t)||e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}return e===t}let A=(e,t)=>e.forEach(t);function k(e,t,n){if(C.arr(e)){for(let r=0;r<e.length;r++)t.call(n,e[r],`${r}`);return}for(let r in e)e.hasOwnProperty(r)&&t.call(n,e[r],r)}let j=e=>C.und(e)?[]:C.arr(e)?e:[e];function I(e,t){if(e.size){let n=Array.from(e);e.clear(),A(n,t)}}let R=(e,...t)=>I(e,e=>e(...t)),D=()=>"undefined"==typeof window||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),N=null,L=!1,M=x;var F=Object.freeze({__proto__:null,get createStringInterpolator(){return r},get to(){return i},get colors(){return N},get skipAnimation(){return L},get willAdvance(){return M},assign:e=>{e.to&&(i=e.to),e.now&&(s.now=e.now),void 0!==e.colors&&(N=e.colors),null!=e.skipAnimation&&(L=e.skipAnimation),e.createStringInterpolator&&(r=e.createStringInterpolator),e.requestAnimationFrame&&s.use(e.requestAnimationFrame),e.batchedUpdates&&(s.batchedUpdates=e.batchedUpdates),e.willAdvance&&(M=e.willAdvance),e.frameLoop&&(s.frameLoop=e.frameLoop)}});let U=new Set,$=[],B=[],z=0,q={get idle(){return!U.size&&!$.length},start(e){z>e.priority?(U.add(e),s.onStart(V)):(H(e),s(W))},advance:W,sort(e){if(z)s.onFrame(()=>q.sort(e));else{let t=$.indexOf(e);~t&&($.splice(t,1),Z(e))}},clear(){$=[],U.clear()}};function V(){U.forEach(H),U.clear(),s(W)}function H(e){$.includes(e)||Z(e)}function Z(e){$.splice(function(e,t){let n=e.findIndex(t);return n<0?e.length:n}($,t=>t.priority>e.priority),0,e)}function W(e){let t=B;for(let n=0;n<$.length;n++){let r=$[n];z=r.priority,r.idle||(M(r),r.advance(e),r.idle||t.push(r))}return z=0,(B=$).length=0,($=t).length>0}let Q={transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199},G="[-+]?\\d*\\.?\\d+",K=G+"%";function Y(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}let J=RegExp("rgb"+Y(G,G,G)),X=RegExp("rgba"+Y(G,G,G,G)),ee=RegExp("hsl"+Y(G,K,K)),et=RegExp("hsla"
1+Y(G,K,K,G)),en=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,er=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,ei=/^#([0-9a-fA-F]{6})$/,eo=/^#([0-9a-fA-F]{8})$/;function ea(e,t,n){return(n<0&&(n+=1),n>1&&(n-=1),n<1/6)?e+(t-e)*6*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function es(e,t,n){let r=n<.5?n*(1+t):n+t-n*t,i=2*n-r;return Math.round(255*ea(i,r,e+1/3))<<24|Math.round(255*ea(i,r,e))<<16|Math.round(255*ea(i,r,e-1/3))<<8}function eu(e){let t=parseInt(e,10);return t<0?0:t>255?255:t}function el(e){return(parseFloat(e)%360+360)%360/360}function ec(e){let t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function ef(e){let t=parseFloat(e);return t<0?0:t>100?1:t/100}function ed(e){let t;let n="number"==typeof e?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=ei.exec(e))?parseInt(t[1]+"ff",16)>>>0:N&&void 0!==N[e]?N[e]:(t=J.exec(e))?(eu(t[1])<<24|eu(t[2])<<16|eu(t[3])<<8|255)>>>0:(t=X.exec(e))?(eu(t[1])<<24|eu(t[2])<<16|eu(t[3])<<8|ec(t[4]))>>>0:(t=en.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=eo.exec(e))?parseInt(t[1],16)>>>0:(t=er.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=ee.exec(e))?(255|es(el(t[1]),ef(t[2]),ef(t[3])))>>>0:(t=et.exec(e))?(es(el(t[1]),ef(t[2]),ef(t[3]))|ec(t[4]))>>>0:null;if(null===n)return e;let r=(4278190080&(n=n||0))>>>24,i=(16711680&n)>>>16,o=(65280&n)>>>8,a=(255&n)/255;return`rgba(${r}, ${i}, ${o}, ${a})`}let ep=(e,t,n)=>{if(C.fun(e))return e;if(C.arr(e))return ep({range:e,output:t,extrapolate:n});if(C.str(e.output[0]))return r(e);let i=e.output,o=e.range||[0,1],a=e.extrapolateLeft||e.extrapolate||"extend",s=e.extrapolateRight||e.extrapolate||"extend",u=e.easing||(e=>e);return t=>{let n=function(e,t){for(var n=1;n<t.length-1&&!(t[n]>=e);++n);return n-1}(t,o);return function(e,t,n,r,i,o,a,s,u){let l=u?u(e):e;if(l<t){if("identity"===a)return l;"clamp"===a&&(l=t)}if(l>n){if("identity"===s)return l;"clamp"===s&&(l=n)}return r===i?r:t===n?e<=t?r:i:(t===-1/0?l=-l:n===1/0?l-=t:l=(l-t)/(n-t),l=o(l),r===-1/0?l=-l:i===1/0?l+=r:l=l*(i-r)+r,l)}(t,o[n],o[n+1],i[n],i[n+1],u,a,s,e.map)}};function eh(){return(eh=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}let eg=Symbol.for("FluidValue.get"),em=Symbol.for("FluidValue.observers"),ev=e=>!!(e&&e[eg]),ey=e=>e&&e[eg]?e[eg]():e,eb=e=>e[em]||null;function e_(e,t){let n=e[em];n&&n.forEach(e=>{e.eventObserved?e.eventObserved(t):e(t)})}class eS{constructor(e){if(this[eg]=void 0,this[em]=void 0,!e&&!(e=this.get))throw Error("Unknown getter");eE(this,e)}}let eE=(e,t)=>ex(e,eg,t);function eO(e,t){if(e[eg]){let n=e[em];n||ex(e,em,n=new Set),!n.has(t)&&(n.add(t),e.observerAdded&&e.observerAdded(n.size,t))}return t}function ew(e,t){let n=e[em];if(n&&n.has(t)){let r=n.size-1;r?n.delete(t):e[em]=null,e.observerRemoved&&e.observerRemoved(r,t)}}let ex=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),eT=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,eC=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,eP=RegExp(`(${eT.source})(%|[a-z]+)`,"i"),eA=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,ek=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,ej=e=>{let[t,n]=eI(e);if(!t||D())return e;let r=window.getComputedStyle(document.documentElement).getPropertyValue(t);if(r)return r.trim();if(n&&n.startsWith("--")){let e=window.getComputedStyle(document.documentElement).getPropertyValue(n);if(e)return e}else if(n&&ek.test(n))return ej(n);else if(n)return n;return e},eI=e=>{let t=ek.exec(e);if(!t)return[,];let[,n,r]=t;return[n,r]},eR=(e,t,n,r,i)=>`rgba(${Math.round(t)}, ${Math.round(n)}, ${Math.round(r)}, ${i})`,eD=e=>{o||(o=N?RegExp(`(${Object.keys(N).join("|")})(?!\\w)`,"g"):/^\b$/);let t=e.output.map(e=>ey(e).replace(ek,ej).replace(eC,ed).replace(o,ed)),n=t.map(e=>e.match(eT).map(Number)),r=n[0].map((e,t)=>n.map(e=>{if(!(t in e))throw Error('The arity of each "output" value must be equal');return e[t]})).map(t=>ep(eh({},e,{output:t})));return e=>{var n;let i=!eP.test(t[0])&&(null==(n=t.find(e=>eP.test(e)))?void 0:n.replace(eT,"")),o=0;return t[0].replace(eT,()=>`${r[o++](e)}${i||""}`).replace(eA,eR)}},eN="react-spring: ",eL=e=>{let t=!1;if("function"!=typeof e)throw TypeError(`${eN}once requires a function parameter`);return(...n)=>{t||(e(...n),t=!0)}},eM=eL(console.warn);function eF(){eM(`${eN}
1The "interpolate" function is deprecated in v9 (use "to" instead)`)}let eU=eL(console.warn);function e$(){eU(`${eN}Directly calling start instead of using the api object is deprecated in v9 (use ".start" instead), this will be removed in later 0.X.0 versions`)}function eB(e){return C.str(e)&&("#"==e[0]||/\d/.test(e)||!D()&&ek.test(e)||e in(N||{}))}let ez=D()?w.useEffect:w.useLayoutEffect,eq=()=>{let e=(0,w.useRef)(!1);return ez(()=>(e.current=!0,()=>{e.current=!1}),[]),e};function eV(){let e=(0,w.useState)()[1],t=eq();return()=>{t.current&&e(Math.random())}}function eH(e,t){let[n]=(0,w.useState)(()=>({inputs:t,result:e()})),r=(0,w.useRef)(),i=r.current,o=i;return o?t&&o.inputs&&function(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}(t,o.inputs)||(o={inputs:t,result:e()}):o=n,(0,w.useEffect)(()=>{r.current=o,i==n&&(n.inputs=n.result=void 0)},[o]),o.result}let eZ=e=>(0,w.useEffect)(e,eW),eW=[];function eQ(e){let t=(0,w.useRef)();return(0,w.useEffect)(()=>{t.current=e}),t.current}},81472:function(e,t,n){"use strict";n.d(t,{animated:function(){return O},useSpring:function(){return r.useSpring}});var r=n(14928),i=n(73935),o=n(21132),a=n(1314);function s(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}let u=["style","children","scrollTop","scrollLeft"],l=/^--/,c={},f={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},d=(e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1),p=["Webkit","Ms","Moz","O"];f=Object.keys(f).reduce((e,t)=>(p.forEach(n=>e[d(n,t)]=e[t]),e),f);let h=["x","y","z"],g=/^(matrix|translate|scale|rotate|skew)/,m=/^(translate)/,v=/^(rotate|skew)/,y=(e,t)=>o.is.num(e)&&0!==e?e+t:e,b=(e,t)=>o.is.arr(e)?e.every(e=>b(e,t)):o.is.num(e)?e===t:parseFloat(e)===t;class _ extends a.rS{constructor(e){let{x:t,y:n,z:r}=e,i=s(e,h),a=[],u=[];(t||n||r)&&(a.push([t||0,n||0,r||0]),u.push(e=>[`translate3d(${e.map(e=>y(e,"px")).join(",")})`,b(e,0)])),(0,o.rU)(i,(e,t)=>{if("transform"===t)a.push([e||""]),u.push(e=>[e,""===e]);else if(g.test(t)){if(delete i[t],o.is.und(e))return;let n=m.test(t)?"px":v.test(t)?"deg":"";a.push((0,o.qo)(e)),u.push("rotate3d"===t?([e,t,r,i])=>[`rotate3d(${e},${t},${r},${y(i,n)})`,b(i,0)]:e=>[`${t}(${e.map(e=>y(e,n)).join(",")})`,b(e,t.startsWith("scale")?1:0)])}}),a.length&&(i.transform=new S(a,u)),super(i)}}class S extends o.B0{constructor(e,t){super(),this._value=null,this.inputs=e,this.transforms=t}get(){return this._value||(this._value=this._get())}_get(){let e="",t=!0;return(0,o.S6)(this.inputs,(n,r)=>{let i=(0,o.je)(n[0]),[a,s]=this.transforms[r](o.is.arr(i)?i:n.map(o.je));e+=" "+a,t=t&&s}),t?"none":e}observerAdded(e){1==e&&(0,o.S6)(this.inputs,e=>(0,o.S6)(e,e=>(0,o.j$)(e)&&(0,o.UI)(e,this)))}observerRemoved(e){0==e&&(0,o.S6)(this.inputs,e=>(0,o.S6)(e,e=>(0,o.j$)(e)&&(0,o.iL)(e,this)))}eventObserved(e){"change"==e.type&&(this._value=null),(0,o.k0)(this,e)}}let E=["scrollTop","scrollLeft"];r.Globals.assign({batchedUpdates:i.unstable_batchedUpdates,createStringInterpolator:o.qS,colors:o.O9});let O=(0,a.Ld)(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],{applyAnimatedValues:function(e,t){if(!e.nodeType||!e.setAttribute)return!1;let n="filter"===e.nodeName||e.parentNode&&"filter"===e.parentNode.nodeName,{style:r,children:i,scrollTop:o,scrollLeft:a}=t,d=s(t,u),p=Object.values(d),h=Object.keys(d).map(t=>n||e.hasAttribute(t)?t:c[t]||(c[t]=t.replace(/([A-Z])/g,e=>"-"+e.toLowerCase())));for(let t in void 0!==i&&(e.textContent=i),r)if(r.hasOwnProperty(t)){var g;let n=null==(g=r[t])||"boolean"==typeof g||""===g?"":"number"!=typeof g||0===g||l.test(t)||f.hasOwnProperty(t)&&f[t]?(""+g).trim():g+"px";l.test(t)?e.style.setProperty(t,n):e.style[t]=n}
1h.forEach((t,n)=>{e.setAttribute(t,p[n])}),void 0!==o&&(e.scrollTop=o),void 0!==a&&(e.scrollLeft=a)},createAnimatedStyle:e=>new _(e),getComponentProps:e=>s(e,E)}).animated},86010:function(e,t,n){"use strict";t.Z=function(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=function e(t){var n,r,i="";if("string"==typeof t||"number"==typeof t)i+=t;else if("object"==typeof t){if(Array.isArray(t))for(n=0;n<t.length;n++)t[n]&&(r=e(t[n]))&&(i&&(i+=" "),i+=r);else for(n in t)t[n]&&(i&&(i+=" "),i+=n)}return i}(e))&&(r&&(r+=" "),r+=t);return r}},76489:function(e,t){"use strict";/*!
2 * cookie
3 * Copyright(c) 2012-2014 Roman Shtylman
4 * Copyright(c) 2015 Douglas Christopher Wilson
5 * MIT Licensed
6 */t.Q=function(e,t){if("string"!=typeof e)throw TypeError("argument str must be a string");for(var r={},i=e.split(";"),o=(t||{}).decode||n,a=0;a<i.length;a++){var s=i[a],u=s.indexOf("=");if(!(u<0)){var l=s.substring(0,u).trim();if(void 0==r[l]){var c=s.substring(u+1,s.length).trim();'"'===c[0]&&(c=c.slice(1,-1)),r[l]=function(e,t){try{return t(e)}catch(t){return e}}(c,o)}}}return r},t.q=function(e,t,n){var o=n||{},a=o.encode||r;if("function"!=typeof a)throw TypeError("option encode is invalid");if(!i.test(e))throw TypeError("argument name is invalid");var s=a(t);if(s&&!i.test(s))throw TypeError("argument val is invalid");var u=e+"="+s;if(null!=o.maxAge){var l=o.maxAge-0;if(isNaN(l)||!isFinite(l))throw TypeError("option maxAge is invalid");u+="; Max-Age="+Math.floor(l)}if(o.domain){if(!i.test(o.domain))throw TypeError("option domain is invalid");u+="; Domain="+o.domain}if(o.path){if(!i.test(o.path))throw TypeError("option path is invalid");u+="; Path="+o.path}if(o.expires){if("function"!=typeof o.expires.toUTCString)throw TypeError("option expires is invali
6d");u+="; Expires="+o.expires.toUTCString()}if(o.httpOnly&&(u+="; HttpOnly"),o.secure&&(u+="; Secure"),o.sameSite)switch("string"==typeof o.sameSite?o.sameSite.toLowerCase():o.sameSite){case!0:case"strict":u+="; SameSite=Strict";break;case"lax":u+="; SameSite=Lax";break;case"none":u+="; SameSite=None";break;default:throw TypeError("option sameSite is invalid")}return u};var n=decodeURIComponent,r=encodeURIComponent,i=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/},20640:function(e,t,n){"use strict";var r=n(11742),i={"text/plain":"Text","text/html":"Url",default:"Text"};e.exports=function(e,t){var n,o,a,s,u,l,c,f,d=!1;t||(t={}),a=t.debug||!1;try{if(u=r(),l=document.createRange(),c=document.getSelection(),(f=document.createElement("span")).textContent=e,f.ariaHidden="true",f.style.all="unset",f.style.position="fixed",f.style.top=0,f.style.clip="rect(0, 0, 0, 0)",f.style.whiteSpace="pre",f.style.webkitUserSelect="text",f.style.MozUserSelect="text",f.style.msUserSelect="text",f.style.userSelect="text",f.addEventListener("copy",function(n){if(n.stopPropagation(),t.format){if(n.preventDefault(),void 0===n.clipboardData){a&&console.warn("unable to use e.clipboardData"),a&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var r=i[t.format]||i.default;window.clipboardData.setData(r,e)}else n.clipboardData.clearData(),n.clipboardData.setData(t.format,e)}t.onCopy&&(n.preventDefault(),t.onCopy(n.clipboardData))}),document.body.appendChild(f),l.selectNodeContents(f),c.addRange(l),!document.execCommand("copy"))throw Error("copy command was unsuccessful");d=!0}catch(r){a&&console.error("unable to copy using execCommand: ",r),a&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),d=!0}catch(r){a&&console.error("unable to copy using clipboardData: ",r),a&&console.error("falling back to prompt"),n="message"in t?t.message:"Copy to clipboard: #{key}, Enter",o=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C",s=n.replace(/#{\s*key\s*}/g,o),window.prompt(s,e)}}finally{c&&("function"==typeof c.removeRange?c.removeRange(l):c.removeAllRanges()),f&&document.body.removeChild(f),u()}return d}},44020:function(e){"use strict";var t="%[a-f0-9]{2}",n=RegExp(t,"gi"),r=RegExp("("+t+")+","gi");e.exports=function(e){if("string"!=typeof e)throw TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof e+"`");try{return e=e.replace(/\+/g," "),decodeURIComponent(e)}catch(t){return function(e){for(var t={"%FE%FF":"��","%FF%FE":"��"},i=r.exec(e);i;){try{t[i[0]]=decodeURIComponent(i[0])}catch(e){var o=function(e){try{return decodeURIComponent(e)}catch(i){for(var t=e.match(n),r=1;r<t.length;r++)t=(e=(function e(t,n){try{return decodeURIComponent(t.join(""))}catch(e){}if(1===t.length)return t;n=n||1;var r=t.slice(0,n),i=t.slice(n);return Array.prototype.concat.call([],e(r),e(i))})(t,r).join("")).match(n);return e}}(i[0]);o!==i[0]&&(t[i[0]]=o)}i=r.exec(e)}t["%C2"]="�";for(var a=Object.keys(t),s=0;s<a.length;s++){var u=a[s];e=e.replace(RegExp(u,"g"),t[u])}return e}(e)}}},4149:function(e,t,n){var r;!function(t){"use strict";var i=function(){},o=t.requestAnimationFrame||t.webkitRequestAnimationFrame||t.mozRequestAnimationFrame||t.msRequestAnimationFrame||function(e){return setTimeout(e,16)};function a(){this.reads=[],this.writes=[],this.raf=o.bind(t),i("initialized",this)}function s(e){e.scheduled||(e.scheduled=!0,e.raf(u.bind(null,e)),i("flush scheduled"))}function u(e){i("flush");var t,n=e.writes,r=e.reads;try{i("flushing reads",r.length),e.runTasks(r),i("flushing writes",n.length),e.runTasks(n)}catch(e){t=e}if(e.scheduled=!1,(r.length||n.length)&&s(e),t){if(i("task errored",t.message),e.catch)e.catch(t);else throw t}}function l(e,t){var n=e.indexOf(t);return!!~n&&!!e.splice(n,1)}a.prototype={constructor:a,runTasks:function(e){var t;for(i("run tasks");t=e.shift();)t()},measure:function(e,t){i("measure");var n=t?e.bind(t):e;return this.reads.push(n),s(this),n},mutate:function(e,t){i("mutate");var n=t?e.bind(t):e;return this.writes.push(n),s(this),n},clear:function(e){return i("clear",e),l(this.reads,e)||l(this.writes,e)},extend:function(e){if(i("extend",e),"object"!=typeof e)throw Error("expected object");var t=Object.create(this);return function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])}(t,e),t.fastdom=this,t.initialize&&t.initialize(),t},catch:null};var c=t.fastdom=t.fastdom||new a;void 0!==(r=(function(){return c}).call(c,n,c,e))&&(e.exports=r)}("undefined"!=typeof window?window:this)},92806:function(e){"use strict";e.exports=function(e,t){for(var n={},r=Object.keys(e),i=Array.isArray(t),o=0;o<r.length;o++){var a=r[o],s=e[a];(i?-1!==t.indexOf(a):t(a,s,e))&&(n[a]=s)}return n}},82175:function(e,t,n){"use strict";n.d(t,{Bc:function(){return nO},gN:function(){return nm},l0:function(){return nv},J9:function(){return nd}});var r,i,o,a,s,u,l=n(67294),c=n(69590),f=n.n(c),d=function(e){var t;return!!e&&"object"==typeof e&&"[object RegExp]"!==(t=Object.prototype.toString.call(e))&&"[object Date]"!==t&&e.$$typeof!==p},p="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function h(e,t){return!1!==t.clone&&t.isMergeableObject(e)?m(Array.isArray(e)?[]:{},e,t):e}function g(e,t,n){return e.concat(t).map(function(e){return h(e,n)})}function m(e,t,n){(n=n||{}).arrayMerge=n.arrayMerge||g,n.isMergeableObject=n.isMergeableObject||d;var r,i,o=Array.isArray(t);return o!==Array.isArray(e)?h(t,n):o?n.arrayMerge(e,t,n):(i={},(r=n).isMergeableObject(e)&&Object.keys(e).forEach(function(t){i[t]=h(e[t],r)}),Object.keys(t).forEach(function(n){r.isMergeableObject(t[n])&&e[n]?i[n]=m(e[n],t[n],r):i[n]=h(t[n],r)}),i)}m.all=function(e,t){if(!Array.isArray(e))throw Error("first argument should be an array");return e.reduce(function(e,n){return m(e,n,t)},{})};var v=m,y="object"==typeof global&&global&&global.Object===Object&&global,b="object"==typeof self&&self&&self.Object===Object&&self,_=y||b||Function("return this")(),S=_.Symbol,E=Object.prototype,O=E.hasOwnProperty,w=E.toString,x=S?S.toStringTag:void 0,T=function(e){var t=O.call(e,x),n=e[x];try{e[x]=void 0;var r=!0}catch(e){}var i=w.call(e);return r&&(t?e[x]=n:delete e[x]),i},C=Object.prototype.toString,P=S?S.toStringTag:void 0,A=function(e){return null==e?void 0===e?"[object Undef
6ined]":"[object Null]":P&&P in Object(e)?T(e):C.call(e)},k=function(e,t){return function(n){return e(t(n))}},j=k(Object.getPrototypeOf,Object),I=function(e){return null!=e&&"object"==typeof e},R=Object.prototype,D=Function.prototype.toString,N=R.hasOwnProperty,L=D.call(Object),M=function(e){if(!I(e)||"[object Object]"!=A(e))return!1;var t=j(e);if(null===t)return!0;var n=N.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&D.call(n)==L},F=function(e,t){return e===t||e!=e&&t!=t},U=function(e,t){for(var n=e.length;n--;)if(F(e[n][0],t))return n;return -1},$=Array.prototype.splice;function B(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}B.prototype.clear=function(){this.__data__=[],this.size=0},B.prototype.delete=function(e){var t=this.__data__,n=U(t,e);return!(n<0)&&(n==t.length-1?t.pop():$.call(t,n,1),--this.size,!0)},B.prototype.get=function(e){var t=this.__data__,n=U(t,e);return n<0?void 0:t[n][1]},B.prototype.has=function(e){return U(this.__data__,e)>-1},B.prototype.set=function(e,t){var n=this.__data__,r=U(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this};var z=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},q=function(e){if(!z(e))return!1;var t=A(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},V=_["__core-js_shared__"],H=(r=/[^.]+$/.exec(V&&V.keys&&V.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"",Z=Function.prototype.toString,W=function(e){if(null!=e){try{return Z.call(e)}catch(e){}try{return e+""}catch(e){}}return""},Q=/^\[object .+?Constructor\]$/,G=Object.prototype,K=Function.prototype.toString,Y=G.hasOwnProperty,J=RegExp("^"+K.call(Y).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),X=function(e,t){var n,r=null==e?void 0:e[t];return z(n=r)&&(!H||!(H in n))&&(q(n)?J:Q).test(W(n))?r:void 0},ee=X(_,"Map"),et=X(Object,"create"),en=Object.prototype.hasOwnProperty,er=Object.prototype.hasOwnProperty;function ei(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}ei.prototype.clear=function(){this.__data__=et?et(null):{},this.size=0},ei.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},ei.prototype.get=function(e){var t=this.__data__;if(et){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return en.call(t,e)?t[e]:void 0},ei.prototype.has=function(e){var t=this.__data__;return et?void 0!==t[e]:er.call(t,e)},ei.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=et&&void 0===t?"__lodash_hash_undefined__":t,this};var eo=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e},ea=function(e,t){var n=e.__data__;return eo(t)?n["string"==typeof t?"string":"hash"]:n.map};function es(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function eu(e){var t=this.__data__=new B(e);this.size=t.size}es.prototype.clear=function(){this.size=0,this.__data__={hash:new ei,map:new(ee||B),string:new ei}},es.prototype.delete=function(e){var t=ea(this,e).delete(e);return this.size-=t?1:0,t},es.prototype.get=function(e){return ea(this,e).get(e)},es.prototype.has=function(e){return ea(this,e).has(e)},es.prototype.set=function(e,t){var n=ea(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},eu.prototype.clear=function(){this.__data__=new B,this.size=0},eu.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},eu.prototype.get=function(e){return this.__data__.get(e)},eu.prototype.has=function(e){return this.__data__.has(e)},eu.prototype.set=function(e,t){var n=this.__data__;if(n instanceof B){var r=n.__data__;if(!ee||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new es(r)}return n.set(e,t),this.size=n.size,this};var el=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e},ec=function(){try{var e=X(Object,"defineProperty");return e({},"",{}),e}catch(e){}}
6(),ef=function(e,t,n){"__proto__"==t&&ec?ec(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n},ed=Object.prototype.hasOwnProperty,ep=function(e,t,n){var r=e[t];ed.call(e,t)&&F(r,n)&&(void 0!==n||t in e)||ef(e,t,n)},eh=function(e,t,n,r){var i=!n;n||(n={});for(var o=-1,a=t.length;++o<a;){var s=t[o],u=r?r(n[s],e[s],s,n,e):void 0;void 0===u&&(u=e[s]),i?ef(n,s,u):ep(n,s,u)}return n},eg=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r},em=function(e){return I(e)&&"[object Arguments]"==A(e)},ev=Object.prototype,ey=ev.hasOwnProperty,eb=ev.propertyIsEnumerable,e_=em(function(){return arguments}())?em:function(e){return I(e)&&ey.call(e,"callee")&&!eb.call(e,"callee")},eS=Array.isArray,eE="object"==typeof exports&&exports&&!exports.nodeType&&exports,eO=eE&&"object"==typeof module&&module&&!module.nodeType&&module,ew=eO&&eO.exports===eE?_.Buffer:void 0,ex=(ew?ew.isBuffer:void 0)||function(){return!1},eT=/^(?:0|[1-9]\d*)$/,eC=function(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&eT.test(e))&&e>-1&&e%1==0&&e<t},eP=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991},eA={};eA["[object Float32Array]"]=eA["[object Float64Array]"]=eA["[object Int8Array]"]=eA["[object Int16Array]"]=eA["[object Int32Array]"]=eA["[object Uint8Array]"]=eA["[object Uint8ClampedArray]"]=eA["[object Uint16Array]"]=eA["[object Uint32Array]"]=!0,eA["[object Arguments]"]=eA["[object Array]"]=eA["[object ArrayBuffer]"]=eA["[object Boolean]"]=eA["[object DataView]"]=eA["[object Date]"]=eA["[object Error]"]=eA["[object Function]"]=eA["[object Map]"]=eA["[object Number]"]=eA["[object Object]"]=eA["[object RegExp]"]=eA["[object Set]"]=eA["[object String]"]=eA["[object WeakMap]"]=!1;var ek=function(e){return function(t){return e(t)}},ej="object"==typeof exports&&exports&&!exports.nodeType&&exports,eI=ej&&"object"==typeof module&&module&&!module.nodeType&&module,eR=eI&&eI.exports===ej&&y.process,eD=function(){try{var e=eI&&eI.require&&eI.require("util").types;if(e)return e;return eR&&eR.binding&&eR.binding("util")}catch(e){}}(),eN=eD&&eD.isTypedArray,eL=eN?ek(eN):function(e){return I(e)&&eP(e.length)&&!!eA[A(e)]},eM=Object.prototype.hasOwnProperty,eF=function(e,t){var n=eS(e),r=!n&&e_(e),i=!n&&!r&&ex(e),o=!n&&!r&&!i&&eL(e),a=n||r||i||o,s=a?eg(e.length,String):[],u=s.length;for(var l in e)(t||eM.call(e,l))&&!(a&&("length"==l||i&&("offset"==l||"parent"==l)||o&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||eC(l,u)))&&s.push(l);return s},eU=Object.prototype,e$=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||eU)},eB=k(Object.keys,Object),ez=Object.prototype.hasOwnProperty,eq=function(e){if(!e$(e))return eB(e);var t=[];for(var n in Object(e))ez.call(e,n)&&"constructor"!=n&&t.push(n);return t},eV=function(e){return null!=e&&eP(e.length)&&!q(e)},eH=function(e){return eV(e)?eF(e):eq(e)},eZ=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t},eW=Object.prototype.hasOwnProperty,eQ=function(e){if(!z(e))return eZ(e);var t=e$(e),n=[];for(var r in e)"constructor"==r&&(t||!eW.call(e,r))||n.push(r);return n},eG=function(e){return eV(e)?eF(e,!0):eQ(e)},eK="object"==typeof exports&&exports&&!exports.nodeType&&exports,eY=eK&&"object"==typeof module&&module&&!module.nodeType&&module,eJ=eY&&eY.exports===eK?_.Buffer:void 0,eX=eJ?eJ.allocUnsafe:void 0,e0=function(e,t){if(t)return e.slice();var n=e.length,r=eX?eX(n):new e.constructor(n);return e.copy(r),r},e1=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t},e2=function(e,t){for(var n=-1,r=null==e?0:e.length,i=0,o=[];++n<r;){var a=e[n];t(a,n,e)&&(o[i++]=a)}return o},e4=function(){return[]},e3=Object.prototype.propertyIsEnumerable,e5=Object.getOwnPropertySymbols,e6=e5?function(e){return null==e?[]:e2(e5(e=Object(e)),function(t){return e3.call(e,t)})}:e4,e7=function(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e},e8=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)e7(t,e6(e)),e=j(e);return t}:e4,e9=function(e,t,n){var r=t(e);return eS(e)?r:e7(r,n(e))},te=function(e){return e9(e,eH,e6)},tt=function(e){return e9(e,eG,e8)},tn=X(_,"DataView"),tr=X(_,"Promise"),ti=X(_,"Set"),to=X(_,"WeakMap"),ta="[object Map]",ts="[object Promise]",tu="[object Set]",tl="[object WeakMap]",tc="[object DataView]",tf=W(tn),td=W(ee),tp=W(tr),th=W(ti),tg=W(to),tm=A;(tn&&tm(new tn(new ArrayBuffer(1)))!=tc||ee&&tm(new ee)!=ta||tr&&tm(tr.resolve())!=ts||ti&&tm(new ti)!=tu||to&&tm(new to)!=tl)&&(tm=function(e){var t=A(e),n="[object Object]"==t?e.constructor:void 0,r=n?W(n):"";if(r)switch(r){case tf:return tc;case td:return ta;case tp:return ts;case th:return tu;case tg:return tl}return t});var tv=tm,ty=Object.prototype.hasOwnProperty,tb=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&ty.call(e,"index")&&(n.index=e.index,n.input=e.input),n},t_=_.Uint8Array,tS=function(e){var t=new e.constructor(e.byteLength);return new t_(t).set(new t_(e)),t},tE=function(e,t){var n=t?tS(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)},tO=/\w*$/,tw=function(e){var t=new e.constructor(e.source,tO.exec(e));return t.lastIndex=e.lastIndex,t}
6,tx=S?S.prototype:void 0,tT=tx?tx.valueOf:void 0,tC=function(e,t){var n=t?tS(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)},tP=function(e,t,n){var r=e.constructor;switch(t){case"[object ArrayBuffer]":return tS(e);case"[object Boolean]":case"[object Date]":return new r(+e);case"[object DataView]":return tE(e,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return tC(e,n);case"[object Map]":case"[object Set]":return new r;case"[object Number]":case"[object String]":return new r(e);case"[object RegExp]":return tw(e);case"[object Symbol]":return tT?Object(tT.call(e)):{}}},tA=Object.create,tk=function(){function e(){}return function(t){if(!z(t))return{};if(tA)return tA(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}(),tj=eD&&eD.isMap,tI=tj?ek(tj):function(e){return I(e)&&"[object Map]"==tv(e)},tR=eD&&eD.isSet,tD=tR?ek(tR):function(e){return I(e)&&"[object Set]"==tv(e)},tN="[object Arguments]",tL="[object Function]",tM="[object Object]",tF={};tF[tN]=tF["[object Array]"]=tF["[object ArrayBuffer]"]=tF["[object DataView]"]=tF["[object Boolean]"]=tF["[object Date]"]=tF["[object Float32Array]"]=tF["[object Float64Array]"]=tF["[object Int8Array]"]=tF["[object Int16Array]"]=tF["[object Int32Array]"]=tF["[object Map]"]=tF["[object Number]"]=tF[tM]=tF["[object RegExp]"]=tF["[object Set]"]=tF["[object String]"]=tF["[object Symbol]"]=tF["[object Uint8Array]"]=tF["[object Uint8ClampedArray]"]=tF["[object Uint16Array]"]=tF["[object Uint32Array]"]=!0,tF["[object Error]"]=tF[tL]=tF["[object WeakMap]"]=!1;var tU=function e(t,n,r,i,o,a){var s,u=1&n,l=2&n,c=4&n;if(r&&(s=o?r(t,i,o,a):r(t)),void 0!==s)return s;if(!z(t))return t;var f=eS(t);if(f){if(s=tb(t),!u)return e1(t,s)}else{var d,p,h,g,m=tv(t),v=m==tL||"[object GeneratorFunction]"==m;if(ex(t))return e0(t,u);if(m==tM||m==tN||v&&!o){if(s=l||v?{}:"function"!=typeof t.constructor||e$(t)?{}:tk(j(t)),!u)return l?(p=(d=s)&&eh(t,eG(t),d),eh(t,e8(t),p)):(g=(h=s)&&eh(t,eH(t),h),eh(t,e6(t),g))}else{if(!tF[m])return o?t:{};s=tP(t,m,u)}}a||(a=new eu);var y=a.get(t);if(y)return y;a.set(t,s),tD(t)?t.forEach(function(i){s.add(e(i,n,r,i,t,a))}):tI(t)&&t.forEach(function(i,o){s.set(o,e(i,n,r,o,t,a))});var b=c?l?tt:te:l?eG:eH,_=f?void 0:b(t);return el(_||t,function(i,o){_&&(i=t[o=i]),ep(s,o,e(i,n,r,o,t,a))}),s},t$=function(e){return tU(e,4)},tB=function(e,t){for(var n=-1,r=null==e?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i},tz=function(e){return"symbol"==typeof e||I(e)&&"[object Symbol]"==A(e)};function tq(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw TypeError("Expected a function");var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=e.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(tq.Cache||es),n}tq.Cache=es;var tV=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,tH=/\\(\\)?/g,tZ=(o=(i=tq(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(tV,function(e,n,r,i){t.push(r?i.replace(tH,"$1"):n||e)}),t},function(e){return 500===o.size&&o.clear(),e})).cache,i),tW=1/0,tQ=function(e){if("string"==typeof e||tz(e))return e;var t=e+"";return"0"==t&&1/e==-tW?"-0":t},tG=1/0,tK=S?S.prototype:void 0,tY=tK?tK.toString:void 0,tJ=function e(t){if("string"==typeof t)return t;if(eS(t))return tB(t,e)+"";if(tz(t))return tY?tY.call(t):"";var n=t+"";return"0"==n&&1/t==-tG?"-0":n},tX=function(e){return eS(e)?tB(e,tQ):tz(e)?[e]:e1(tZ(null==e?"":tJ(e)))},t0=function(e,t){},t1=n(8679),t2=n.n(t1);function t4(){return(t4=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function t3(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function t5(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}function t6(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var t7=function(e){return Array.isArray(e)&&0===e.length},t8=function(e){return"function"==typeof e},t9=function(e){return null!==e&&"object"==typeof e},ne=function(e){return"[object String]"===Object.prototype.toString.call(e)},nt=function(e){return 0===l.Children.count(e)},nn=function(e){return t9(e)&&t8(e.then)};function nr(e,t,n,r){void 0===r&&(r=0);for(var i=tX(t);e&&r<i.length;)e=e[i[r++]];return void 0===e?n:e}function ni(e,t,n){for(var r=t$(e),i=r,o=0,a=tX(t);o<a.length-1;o++){var s=a[o],u=nr(e,a.slice(0,o+1));if(u&&(t9(u)||Array.isArray(u)))i=i[s]=t$(u);else{var l=a[o+1];i=i[s]=String(Math.floor(Number(l)))===l&&Number(l)>=0?[]:{}}}return(0===o?e:i)[a[o]]===n?e:(void 0===n?delete i[a[o]]:i[a[o]]=n,0===o&&void 0===n&&delete r[a[o]],r)}var no=(0,l.createContext)(void 0);no.displayName="FormikContext";var na=no.Provider,ns=no.Consumer;function nu(){var e=(0,l.useContext)(no);return e||t0(!1),e}function nl(e,t){switch(t.type){case"SET_VALUES":return t4({},e,{values:t.payload});case"SET_TOUCHED":return t4({},e,{touched:t.payload});case"SET_ERRORS":if(f()(e.errors,t.payload))return e;return t4({},e,{errors:t.payload});case"SET_STATUS":return t4({},e,{status:t.payload});case"SET_ISSUBMITTING":return t4({},e,{isSubmitting:t.payload});case"SET_ISVALIDATING":return t4({},e,{isValidating:t.payload});case"SET_FIELD_VALUE":return t4({},e,{values:ni(e.values,t.payload.field,t.payload.value)});case"SET_FIELD_TOUCHED":return t4({},e,{touched:ni(e.touched,t.payload.field,t.payload.value)});case"SET_FIELD_ERROR":return t4({},e,{errors:ni(e.errors,t.payload.field,t.payload.value)});case"RESET_FORM":return t4({},e,t.payload);case"SET_FORMIK_STATE":return t.payload(e);case"SUBMIT_ATTEMPT":return t4({},e,{touched:function e(t,n,r,i){void 0===r&&(r=new WeakMap),void 0===i&&(i={});for(var o=0,a=Object.keys(t);o<a.length;o++){var s=a[o],u=t[s];t9(u)?r.get(u)||(r.set(u,!0),i[s]=Array.isArray(u)?[]:{},e(u,n,r,i[s])):i[s]=n}return i}(e.values,!0),isSubmitting:!0,submitCount:e.submitCount+1});case"SUBMIT_FAILURE":case"SUBMIT_SUCCESS":return t4({},e,{isSubmitting:!1});default:return e}}var nc={},nf={};
6function nd(e){var t,n,r,i,o,a,s,u,c,d,p,h,g,m,y,b,_,S,E,O,w,x,T,C,P,A,k,j,I,R,D,N,L,F,U,$,B,z,q,V,H,Z,W,Q,G,K,Y,J,X,ee,et,en,er,ei,eo=(n=void 0===(t=e.validateOnChange)||t,i=void 0===(r=e.validateOnBlur)||r,a=void 0!==(o=e.validateOnMount)&&o,s=e.isInitialValid,c=void 0!==(u=e.enableReinitialize)&&u,d=e.onSubmit,p=t5(e,["validateOnChange","validateOnBlur","validateOnMount","isInitialValid","enableReinitialize","onSubmit"]),h=t4({validateOnChange:n,validateOnBlur:i,validateOnMount:a,onSubmit:d},p),g=(0,l.useRef)(h.initialValues),m=(0,l.useRef)(h.initialErrors||nc),y=(0,l.useRef)(h.initialTouched||nf),b=(0,l.useRef)(h.initialStatus),_=(0,l.useRef)(!1),S=(0,l.useRef)({}),(0,l.useEffect)(function(){return _.current=!0,function(){_.current=!1}},[]),O=(E=(0,l.useReducer)(nl,{values:h.initialValues,errors:h.initialErrors||nc,touched:h.initialTouched||nf,status:h.initialStatus,isSubmitting:!1,isValidating:!1,submitCount:0}))[0],w=E[1],x=(0,l.useCallback)(function(e,t){return new Promise(function(n,r){var i=h.validate(e,t);null==i?n(nc):nn(i)?i.then(function(e){n(e||nc)},function(e){r(e)}):n(i)})},[h.validate]),T=(0,l.useCallback)(function(e,t){var n,r,i,o=h.validationSchema,a=t8(o)?o(t):o,s=t&&a.validateAt?a.validateAt(t,e):(void 0===n&&(n=!1),void 0===r&&(r={}),i=function e(t){var n=Array.isArray(t)?[]:{};for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r)){var i=String(r);!0===Array.isArray(t[i])?n[i]=t[i].map(function(t){return!0===Array.isArray(t)||M(t)?e(t):""!==t?t:void 0}):M(t[i])?n[i]=e(t[i]):n[i]=""!==t[i]?t[i]:void 0}return n}(e),a[n?"validateSync":"validate"](i,{abortEarly:!1,context:r}));return new Promise(function(e,t){s.then(function(){e(nc)},function(n){"ValidationError"===n.name?e(function(e){var t={};if(e.inner){if(0===e.inner.length)return ni(t,e.path,e.message);for(var n=e.inner,r=Array.isArray(n),i=0,n=r?n:n[Symbol.iterator]();;){if(r){if(i>=n.length)break;o=n[i++]}else{if((i=n.next()).done)break;o=i.value}var o,a=o;nr(t,a.path)||(t=ni(t,a.path,a.message))}}return t}(n)):t(n)})})},[h.validationSchema]),C=(0,l.useCallback)(function(e,t){return new Promise(function(n){return n(S.current[e].validate(t))})},[]),P=(0,l.useCallback)(function(e){var t=Object.keys(S.current).filter(function(e){return t8(S.current[e].validate)});return Promise.all(t.length>0?t.map(function(t){return C(t,nr(e,t))}):[Promise.resolve("DO_NOT_DELETE_YOU_WILL_BE_FIRED")]).then(function(e){return e.reduce(function(e,n,r){return"DO_NOT_DELETE_YOU_WILL_BE_FIRED"===n||n&&(e=ni(e,t[r],n)),e},{})})},[C]),A=(0,l.useCallback)(function(e){return Promise.all([P(e),h.validationSchema?T(e):{},h.validate?x(e):{}]).then(function(e){var t=e[0],n=e[1],r=e[2];return v.all([t,n,r],{arrayMerge:np})})},[h.validate,h.validationSchema,P,x,T]),k=ng(function(e){return void 0===e&&(e=O.values),w({type:"SET_ISVALIDATING",payload:!0}),A(e).then(function(e){return _.current&&(w({type:"SET_ISVALIDATING",payload:!1}),w({type:"SET_ERRORS",payload:e})),e})}),(0,l.useEffect)(function(){a&&!0===_.current&&f()(g.current,h.initialValues)&&k(g.current)},[a,k]),j=(0,l.useCallback)(function(e){var t=e&&e.values?e.values:g.current,n=e&&e.errors?e.errors:m.current?m.current:h.initialErrors||{},r=e&&e.touched?e.touched:y.current?y.current:h.initialTouched||{},i=e&&e.status?e.status:b.current?b.current:h.initialStatus;g.current=t,m.current=n,y.current=r,b.current=i;var o=function(){w({type:"RESET_FORM",payload:{isSubmitting:!!e&&!!e.isSubmitting,errors:n,touched:r,status:i,values:t,isValidating:!!e&&!!e.isValidating,submitCount:e&&e.submitCount&&"number"==typeof e.submitCount?e.submitCount:0}})};if(h.onReset){var a=h.onReset(O.values,Y);nn(a)?a.then(o):o()}else o()},[h.initialErrors,h.initialStatus,h.initialTouched]),(0,l.useEffect)(function(){!0===_.current&&!f()(g.current,h.initialValues)&&(c&&(g.current=h.initialValues,j()),a&&k(g.current))},[c,h.initialValues,j,a,k]),(0,l.useEffect)(function(){c&&!0===_.current&&!f()(m.current,h.initialErrors)&&(m.current=h.initialErrors||nc,w({type:"SET_ERRORS",payload:h.initialErrors||nc}))},[c,h.initialErrors]),(0,l.useEffect)(function(){c&&!0===_.current&&!f()(y.current,h.initialTouched)&&(y.current=h.initialTouched||nf,w({type:"SET_TOUCHED",payload:h.initialTouched||nf}))},[c,h.initialTouched]),(0,l.useEffect)(function(){c&&!0===_.current&&!f()(b.current,h.initialStatus)&&(b.current=h.initialStatus,w({type:"SET_STATUS",payload:h.initialStatus}))},[c,h.initialStatus,h.initialTouched]),I=ng(function(e){if(S.current[e]&&t8(S.current[e].validate)){var t=nr(O.values,e),n=S.current[e].validate(t);return nn(n)?(w({type:"SET_ISVALIDATING",payload:!0}),n.then(function(e){return e}).then(function(t){w({type:"SET_FIELD_ERROR",payload:{field:e,value:t}}),w({type:"SET_ISVALIDATING",payload:!1})})):(w({type:"SET_FIELD_ERROR",payload:{field:e,value:n}}),Promise.resolve(n))}return h.validationSchema?(w({type:"SET_ISVALIDATING",payload:!0}),T(O.values,e).then(function(e){return e}).then(function(t){w({type:"SET_FIELD_ERROR",payload:{field:e,value:t[e]}}),w({type:"SET_ISVALIDATING",payload:!1})})):Promise.resolve()}),R=(0,l.useCallback)(function(e,t){var n=t.validate;S.current[e]={validate:n}},[]),D=(0,l.useCallback)(function(e){delete S.current[e]},[]),N=ng(function(e,t){return w({type:"SET_TOUCHED",payload:e}),(void 0===t?i:t)?k(O.values):Promise.resolve()}),L=(0,l.useCallback)(function(e){w({type:"SET_ERRORS",payload:e})},[]),F=ng(function(e,t){var r=t8(e)?e(O.values):e;return w({type:"SET_VALUES",payload:r}
6),(void 0===t?n:t)?k(r):Promise.resolve()}),U=(0,l.useCallback)(function(e,t){w({type:"SET_FIELD_ERROR",payload:{field:e,value:t}})},[]),$=ng(function(e,t,r){return w({type:"SET_FIELD_VALUE",payload:{field:e,value:t}}),(void 0===r?n:r)?k(ni(O.values,e,t)):Promise.resolve()}),B=(0,l.useCallback)(function(e,t){var n,r=t,i=e;if(!ne(e)){e.persist&&e.persist();var o=e.target?e.target:e.currentTarget,a=o.type,s=o.name,u=o.id,l=o.value,c=o.checked,f=(o.outerHTML,o.options),d=o.multiple;r=t||s||u,i=/number|range/.test(a)?isNaN(n=parseFloat(l))?"":n:/checkbox/.test(a)?function(e,t,n){if("boolean"==typeof e)return!!t;var r=[],i=!1,o=-1;if(Array.isArray(e))r=e,i=(o=e.indexOf(n))>=0;else if(!n||"true"==n||"false"==n)return!!t;return t&&n&&!i?r.concat(n):i?r.slice(0,o).concat(r.slice(o+1)):r}(nr(O.values,r),c,l):f&&d?Array.from(f).filter(function(e){return e.selected}).map(function(e){return e.value}):l}r&&$(r,i)},[$,O.values]),z=ng(function(e){if(ne(e))return function(t){return B(t,e)};B(e)}),q=ng(function(e,t,n){return void 0===t&&(t=!0),w({type:"SET_FIELD_TOUCHED",payload:{field:e,value:t}}),(void 0===n?i:n)?k(O.values):Promise.resolve()}),V=(0,l.useCallback)(function(e,t){e.persist&&e.persist();var n=e.target,r=n.name,i=n.id;n.outerHTML,q(t||r||i,!0)},[q]),H=ng(function(e){if(ne(e))return function(t){return V(t,e)};V(e)}),Z=(0,l.useCallback)(function(e){t8(e)?w({type:"SET_FORMIK_STATE",payload:e}):w({type:"SET_FORMIK_STATE",payload:function(){return e}})},[]),W=(0,l.useCallback)(function(e){w({type:"SET_STATUS",payload:e})},[]),Q=(0,l.useCallback)(function(e){w({type:"SET_ISSUBMITTING",payload:e})},[]),G=ng(function(){return w({type:"SUBMIT_ATTEMPT"}),k().then(function(e){var t,n=e instanceof Error;if(!n&&0===Object.keys(e).length){try{if(t=J(),void 0===t)return}catch(e){throw e}return Promise.resolve(t).then(function(e){return _.current&&w({type:"SUBMIT_SUCCESS"}),e}).catch(function(e){if(_.current)throw w({type:"SUBMIT_FAILURE"}),e})}if(_.current&&(w({type:"SUBMIT_FAILURE"}),n))throw e})}),K=ng(function(e){e&&e.preventDefault&&t8(e.preventDefault)&&e.preventDefault(),e&&e.stopPropagation&&t8(e.stopPropagation)&&e.stopPropagation(),G().catch(function(e){console.warn("Warning: An unhandled error was caught from submitForm()",e)})}),Y={resetForm:j,validateForm:k,validateField:I,setErrors:L,setFieldError:U,setFieldTouched:q,setFieldValue:$,setStatus:W,setSubmitting:Q,setTouched:N,setValues:F,setFormikState:Z,submitForm:G},J=ng(function(){return d(O.values,Y)}),X=ng(function(e){e&&e.preventDefault&&t8(e.preventDefault)&&e.preventDefault(),e&&e.stopPropagation&&t8(e.stopPropagation)&&e.stopPropagation(),j()}),ee=(0,l.useCallback)(function(e){return{value:nr(O.values,e),error:nr(O.errors,e),touched:!!nr(O.touched,e),initialValue:nr(g.current,e),initialTouched:!!nr(y.current,e),initialError:nr(m.current,e)}},[O.errors,O.touched,O.values]),et=(0,l.useCallback)(function(e){return{setValue:function(t,n){return $(e,t,n)},setTouched:function(t,n){return q(e,t,n)},setError:function(t){return U(e,t)}}},[$,q,U]),en=(0,l.useCallback)(function(e){var t=t9(e),n=t?e.name:e,r=nr(O.values,n),i={name:n,value:r,onChange:z,onBlur:H};if(t){var o=e.type,a=e.value,s=e.as,u=e.multiple;"checkbox"===o?void 0===a?i.checked=!!r:(i.checked=!!(Array.isArray(r)&&~r.indexOf(a)),i.value=a):"radio"===o?(i.checked=r===a,i.value=a):"select"===s&&u&&(i.value=i.value||[],i.multiple=!0)}return i},[H,z,O.values]),er=(0,l.useMemo)(function(){return!f()(g.current,O.values)},[g.current,O.values]),ei=(0,l.useMemo)(function(){return void 0!==s?er?O.errors&&0===Object.keys(O.errors).length:!1!==s&&t8(s)?s(h):s:O.errors&&0===Object.keys(O.errors).length},[s,er,O.errors,h]),t4({},O,{initialValues:g.current,initialErrors:m.current,initialTouched:y.current,initialStatus:b.current,handleBlur:H,handleChange:z,handleReset:X,handleSubmit:K,resetForm:j,setErrors:L,setFormikState:Z,setFieldTouched:q,setFieldValue:$,setFieldError:U,setStatus:W,setSubmitting:Q,setTouched:N,setValues:F,submitForm:G,validateForm:k,validateField:I,isValid:ei,dirty:er,unregisterField:D,registerField:R,getFieldProps:en,getFieldMeta:ee,getFieldHelpers:et,validateOnBlur:i,validateOnChange:n,validateOnMount:a})),ea=e.component,es=e.children,eu=e.render,el=e.innerRef;return(0,l.useImperativeHandle)(el,function(){return eo}),(0,l.createElement)(na,{value:eo},ea?(0,l.createElement)(ea,eo):eu?eu(eo):es?t8(es)?es(eo):nt(es)?null:l.Children.only(es):null)}
6function np(e,t,n){var r=e.slice();return t.forEach(function(t,i){if(void 0===r[i]){var o=!1!==n.clone&&n.isMergeableObject(t);r[i]=o?v(Array.isArray(t)?[]:{},t,n):t}else n.isMergeableObject(t)?r[i]=v(e[i],t,n):-1===e.indexOf(t)&&r.push(t)}),r}var nh="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?l.useLayoutEffect:l.useEffect;function ng(e){var t=(0,l.useRef)(e);return nh(function(){t.current=e}),(0,l.useCallback)(function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.current.apply(void 0,n)},[])}function nm(e){var t=e.validate,n=e.name,r=e.render,i=e.children,o=e.as,a=e.component,s=t5(e,["validate","name","render","children","as","component"]),u=t5(nu(),["validate","validationSchema"]),c=u.registerField,f=u.unregisterField;(0,l.useEffect)(function(){return c(n,{validate:t}),function(){f(n)}},[c,f,n,t]);var d=u.getFieldProps(t4({name:n},s)),p=u.getFieldMeta(n),h={field:d,form:u};if(r)return r(t4({},h,{meta:p}));if(t8(i))return i(t4({},h,{meta:p}));if(a){if("string"==typeof a){var g=s.innerRef,m=t5(s,["innerRef"]);return(0,l.createElement)(a,t4({ref:g},d,m),i)}return(0,l.createElement)(a,t4({field:d,form:u},s),i)}var v=o||"input";if("string"==typeof v){var y=s.innerRef,b=t5(s,["innerRef"]);return(0,l.createElement)(v,t4({ref:y},d,b),i)}return(0,l.createElement)(v,t4({},d,s),i)}var nv=(0,l.forwardRef)(function(e,t){var n=e.action,r=t5(e,["action"]),i=nu(),o=i.handleReset,a=i.handleSubmit;return(0,l.createElement)("form",Object.assign({onSubmit:a,ref:t,onReset:o,action:null!=n?n:"#"},r))});nv.displayName="Form";var ny=function(e,t,n){var r=nE(e),i=r[t];return r.splice(t,1),r.splice(n,0,i),r},nb=function(e,t,n){var r=nE(e),i=r[t];return r[t]=r[n],r[n]=i,r},n_=function(e,t,n){var r=nE(e);return r.splice(t,0,n),r},nS=function(e,t,n){var r=nE(e);return r[t]=n,r},nE=function(e){if(!e)return[];if(Array.isArray(e))return[].concat(e);var t=Object.keys(e).map(function(e){return parseInt(e)}).reduce(function(e,t){return t>e?t:e},0);return Array.from(t4({},e,{length:t+1}))};(function(e){function t(t){var n;return(n=e.call(this,t)||this).updateArrayField=function(e,t,r){var i=n.props,o=i.name;(0,i.formik.setFormikState)(function(n){var i=ni(n.values,o,e(nr(n.values,o))),a=r?("function"==typeof r?r:e)(nr(n.errors,o)):void 0,s=t?("function"==typeof t?t:e)(nr(n.touched,o)):void 0;return t7(a)&&(a=void 0),t7(s)&&(s=void 0),t4({},n,{values:i,errors:r?ni(n.errors,o,a):n.errors,touched:t?ni(n.touched,o,s):n.touched})})},n.push=function(e){return n.updateArrayField(function(t){return[].concat(nE(t),[tU(e,5)])},!1,!1)},n.handlePush=function(e){return function(){return n.push(e)}},n.swap=function(e,t){return n.updateArrayField(function(n){return nb(n,e,t)},!0,!0)},n.handleSwap=function(e,t){return function(){return n.swap(e,t)}},n.move=function(e,t){return n.updateArrayField(function(n){return ny(n,e,t)},!0,!0)},n.handleMove=function(e,t){return function(){return n.move(e,t)}},n.insert=function(e,t){return n.updateArrayField(function(n){return n_(n,e,t)},function(t){return n_(t,e,null)},function(t){return n_(t,e,null)})},n.handleInsert=function(e,t){return function(){return n.insert(e,t)}},n.replace=function(e,t){return n.updateArrayField(function(n){return nS(n,e,t)},!1,!1)},n.handleReplace=function(e,t){return function(){return n.replace(e,t)}},n.unshift=function(e){var t=-1;return n.updateArrayField(function(n){var r=n?[e].concat(n):[e];return t<0&&(t=r.length),r},function(e){var n=e?[null].concat(e):[null];return t<0&&(t=n.length),n},function(e){var n=e?[null].concat(e):[null];return t<0&&(t=n.length),n}),t},n.handleUnshift=function(e){return function(){return n.unshift(e)}},n.handleRemove=function(e){return function(){return n.remove(e)}},n.handlePop=function(){return function(){return n.pop()}},n.remove=n.remove.bind(t6(n)),n.pop=n.pop.bind(t6(n)),n}t3(t,e);var n=t.prototype;return n.componentDidUpdate=function(e){this.props.validateOnChange&&this.props.formik.validateOnChange&&!f()(nr(e.formik.values,e.name),nr(this.props.formik.values,this.props.name))&&this.props.formik.validateForm(this.props.formik.values)},n.remove=function(e){var t;return this.updateArrayField(function(n){var r=n?nE(n):[];return t||(t=r[e]),t8(r.splice)&&r.splice(e,1),r},!0,!0),t},n.pop=function(){var e;return this.updateArrayField(function(t){return e||(e=t&&t.pop&&t.pop()),t},!0,!0),e},n.render=function(){var e={push:this.push,pop:this.pop,swap:this.swap,move:this.move,insert:this.insert,replace:this.replace,unshift:this.unshift,remove:this.remove,handlePush:this.handlePush,handlePop:this.handlePop,handleSwap:this.handleSwap,handleMove:this.handleMove,handleInsert:this.handleInsert,handleReplace:this.handleReplace,handleUnshift:this.handleUnshift,handleRemove:this.handleRemove},t=this.props,n=t.component,r=t.render,i=t.children,o=t.name,a=t5(t.formik,["validate","validationSchema"]),s=t4({},e,{form:a,name:o});return n?(0,l.createElement)(n,s):r?r(s):i?"function"==typeof i?i(s):nt(i)?null:l.Children.only(i):null},t})(l.Component).defaultProps={validateOnChange:!0};var nO=(a=function(e){function t(){return e.apply(this,arguments)||this}t3(t,e);var n=t.prototype;return n.shouldComponentUpdate=function(e){return nr(this.props.formik.errors,this.props.name)!==nr(e.formik.errors,this.props.name)||nr(this.props.formik.touched,this.props.name)!==nr(e.formik.touched,this.props.name)||Object.keys(this.props).length!==Object.keys(e).length},n.render=function(){var e=this.props,t=e.component,n=e.formik,r=e.render,i=e.children,o=e.name,a=t5(e,["component","formik","render","children","name"]),s=nr(n.touched,o),u=nr(n.errors,o);return s&&u?r?t8(r)?r(u):null:i?t8(i)?i(u):null:t?(0,l.createElement)(t,a,u):u:null},t}(l.Component),s=function(e){return(0,l.createElement)(ns,null,function(t){return t||t0(!1),(0,l.createElement)(a,Object.assign({},e,{formik:t}))})},u=a.displayName||a.name||a.constructor&&a.constructor.name||"Component",s.WrappedComponent=a,s.displayName="FormikConnect("+u+")",t2()(s,a))},8679:function(e,t,n){"use strict";var r=n(59864),i={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function u(e){return r.isMemo(e)?a:s[e.$$typeof]||i}s[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[r.Memo]=a;var l=Object.defineProperty,c=Object.getOwnPropertyNames,f=Object.getOwnPropertySymbols,d=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(h){var i=p(n);i&&i!==h&&e(t,i,r)}var a=c(n);f&&(a=a.concat(f(n)));for(var s=u(t),g=u(n),m=0;m<a.length;++m){var v=a[m];if(!o[v]&&!(r&&r[v])&&!(g&&g[v])&&!(s&&s[v])){var y=d(n,v);try{l(t,v,y)}catch(e){}}}}return t}},91131:function(e,t,n){"use strict";n.d(t,{KO:function(){return y},cn:function(){return v},zt:function(){return g}});var r=n(67294);let i=Symbol(),o=e=>!!e[i],a=e=>!e[i].c,s=e=>{var t,n;null==(n=(t=e[i]).c)||n.call(t)},u=(e,t)=>
6{let n=e[i].o,r=t[i].o;return n===r||e===r||o(n)&&u(n,t)},l=e=>{let t={o:e,c:null},n=new Promise(n=>{t.c=()=>{t.c=null,n()},e.then(t.c,t.c)});return n[i]=t,n},c=e=>"init"in e,f=e=>{let t,n;let r=new WeakMap,i=new WeakMap,f=new Map;if(t=new Set,n=new Set,e)for(let[t,n]of e){let e={v:n,r:0,d:new Map};Object.freeze(e),c(t)||console.warn("Found initial value for derived atom which can cause unexpected behavior",t),r.set(t,e)}let d=new WeakMap,p=(e,t,n)=>{let r=d.get(t);r||(r=new Map,d.set(t,r)),n.then(()=>{r.get(e)!==n||(r.delete(e),r.size||d.delete(t))}),r.set(e,n)},h=e=>{let t=new Set,n=d.get(e);return n&&(d.delete(e),n.forEach((e,n)=>{s(e),t.add(n)})),t},g=new WeakMap,m=e=>{let t=g.get(e);return t||(t=new Map,g.set(e,t)),t},v=(e,t)=>{if(e){let n=m(e),r=n.get(t);return!r&&(r=v(e.p,t))&&n.set(t,r),r}return r.get(t)},y=(e,t,n)=>{if(Object.freeze(n),e)m(e).set(t,n);else{let e=r.get(t);r.set(t,n),f.has(t)||f.set(t,e)}},b=(e,t=new Map,n)=>{if(!n)return t;let r=new Map,i=!1;return(n.forEach(n=>{var o;let a=(null==(o=v(e,n))?void 0:o.r)||0;r.set(n,a),t.get(n)!==a&&(i=!0)}),t.size!==r.size||i)?r:t},_=(e,t,n,r,i)=>{let o=v(e,t);if(o){if(i&&(!("p"in o)||!u(o.p,i)))return o;"p"in o&&s(o.p)}let a={v:n,r:(null==o?void 0:o.r)||0,d:b(e,null==o?void 0:o.d,r)},l=!1;return(o&&"v"in o&&Object.is(o.v,n)?("i"in o||a.d!==o.d&&(a.d.size!==o.d.size||!Array.from(a.d.keys()).every(e=>o.d.has(e))))&&(l=!0,Promise.resolve().then(()=>{L(e)})):(l=!0,++a.r,a.d.has(t)&&(a.d=new Map(a.d).set(t,a.r))),o&&!l)?o:(y(e,t,a),a)},S=(e,t,n,r,i)=>{let o=v(e,t);if(o){if(i&&(!("p"in o)||!u(o.p,i)))return o;"p"in o&&s(o.p)}let a={e:n,r:(null==o?void 0:o.r)||0,d:b(e,null==o?void 0:o.d,r)};return y(e,t,a),a},E=(e,t,n,r)=>{let i=v(e,t);if(i&&"p"in i){if(u(i.p,n))return i;s(i.p)}p(e,t,n);let o={p:n,r:(null==i?void 0:i.r)||0,d:b(e,null==i?void 0:i.d,r)};return y(e,t,o),o},O=(e,t,n,r)=>{if(n instanceof Promise){let i=l(n.then(n=>{_(e,t,n,r,i)}).catch(n=>{if(n instanceof Promise)return o(n)?n.then(()=>{x(e,t,!0)}):n;S(e,t,n,r,i)}));return E(e,t,i,r)}return _(e,t,n,r)},w=(e,t)=>{let n=v(e,t);n?y(e,t,{...n,i:n.r}):console.warn("[Bug] could not invalidate non existing atom",t)},x=(e,t,n)=>{if(!n){let n=v(e,t);if(n&&(n.r!==n.i&&"p"in n&&!a(n.p)||(n.d.forEach((n,r)=>{if(r!==t){if(i.has(r)){let t=v(e,r);t&&t.r===t.i&&x(e,r)}else x(e,r)}}),Array.from(n.d).every(([t,n])=>{let r=v(e,t);return r&&"v"in r&&r.r===n}))))return n}let r=new Set;try{let n=t.read(n=>{r.add(n);let i=n===t?v(e,n):x(e,n);if(i){if("e"in i)throw i.e;if("p"in i)throw i.p;return i.v}if(c(n))return n.init;throw Error("no atom init")});return O(e,t,n,r)}catch(n){if(n instanceof Promise)return E(e,t,l(n),r);return S(e,t,n,r)}},T=(e,t)=>{let n=i.get(t);return n||(n=R(e,t)),n},C=(e,t)=>!t.l.size&&(!t.t.size||1===t.t.size&&t.t.has(e)),P=(e,t)=>{let n=i.get(t);n&&C(t,n)&&D(e,t)},A=(e,t)=>{let n=i.get(t);null==n||n.t.forEach(n=>{n!==t&&(w(e,n),A(e,n))})},k=(e,t,n)=>{let r=!0,i=(t,n)=>{let r=x(e,t);if("e"in r)throw r.e;if("p"in r){if(null==n?void 0:n.unstable_promise)return r.p.then(()=>i(t,n));throw console.info("Reading pending atom state in write operation. We throw a promise for now.",t),r.p}if("v"in r)return r.v;throw console.warn("[Bug] no value found while reading atom in write operation. This is probably a bug.",t),Error("no value found")},o=t.write(i,(n,i)=>{let o;if(n===t){if(!c(n))throw Error("atom not writable");h(n).forEach(t=>{t!==e&&O(t,n,i)}),v(e,n)!==O(e,n,i)&&A(e,n)}else o=k(e,n,i);return r||L(e),o},n);return r=!1,o},j=(e,t,n)=>{let r=k(n,e,t);return L(n),r},I=e=>!!e.write,R=(e,t,r)=>{let o={t:new Set(r&&[r]),l:new Set};if(i.set(t,o),n.add(t),x(void 0,t).d.forEach((n,r)=>{let o=i.get(r);o?o.t.add(t):r!==t&&R(e,r,t)}),I(t)&&t.onMount){let n=t.onMount(n=>j(t,n,e));e=void 0,n&&(o.u=n)}return o},D=(e,t)=>{var r;let o=null==(r=i.get(t))?void 0:r.u;o&&o(),i.delete(t),n.delete(t);let a=v(e,t);a?a.d.forEach((n,r)=>{if(r!==t){let n=i.get(r);n&&(n.t.delete(t),C(r,n)&&D(e,r))}}):console.warn("[Bug] could not find atom state to unmount",t)},N=(e,t,n,r)=>{let o=new Set(n.d.keys());null==r||r.forEach((n,r)=>{if(o.has(r)){o.delete(r);return}let a=i.get(r);a&&(a.t.delete(t),C(r,a)&&D(e,r))}),o.forEach(n=>{let r=i.get(n);r?r.t.add(t):i.has(t)&&R(e,n,t)})},L=e=>{if(e){m(e).forEach((t,n)=>{if(t!==r.get(n)){let t=i.get(n);null==t||t.l.forEach(t=>t(e))}});return}for(;f.size;){let e=Array.from(f);f.clear(),e.forEach(([e,t])=>{let n=v(void 0,e);if(n&&n.d!==(null==t?void 0:t.d)&&N(void 0,e,n,null==t?void 0:t.d),t&&"i"in t&&n&&!("i"in n))return;let r=i.get(e);
6null==r||r.l.forEach(e=>e())})}t.forEach(e=>e())},M=e=>{m(e).forEach((t,n)=>{let i=r.get(n);(!i||t.r>i.r||"v"in t&&t.r===i.r&&t.d!==i.d)&&(r.set(n,t),t.d!==(null==i?void 0:i.d)&&N(e,n,t,null==i?void 0:i.d))})};return{r:(e,t)=>x(t,e),w:j,c:(e,t)=>{t&&M(t),L(void 0)},s:(e,t,n)=>{let r=T(n,e).l;return r.add(t),()=>{r.delete(t),P(n,e)}},h:(e,t)=>{for(let[n,r]of e)c(n)&&(O(t,n,r),A(t,n));L(t)},n:e=>(t.add(e),()=>{t.delete(e)}),l:()=>n.values(),a:e=>r.get(e),m:e=>i.get(e)}},d=(e,t)=>({s:t?t(e).SECRET_INTERNAL_store:f(e)}),p=new Map,h=e=>(p.has(e)||p.set(e,(0,r.createContext)(d())),p.get(e)),g=({children:e,initialValues:t,scope:n,unstable_createStore:i,unstable_enableVersionedWrite:o})=>{let[a,s]=(0,r.useState)({});(0,r.useEffect)(()=>{let e=u.current;e.w&&(e.s.c(null,a),delete a.p,e.v=a)},[a]);let u=(0,r.useRef)();if(!u.current){let e=d(t,i);if(o){let t=0;e.w=e=>{s(n=>{let r=t?n:{p:n};return e(r),r})},e.v=a,e.r=e=>{++t,e(),--t}}u.current=e}let l=h(n);return(0,r.createElement)(l.Provider,{value:u.current},e)},m=0;function v(e,t){let n=`atom${++m}`,r={toString:()=>n};return"function"==typeof e?r.read=e:(r.init=e,r.read=e=>e(r),r.write=(e,t,n)=>t(r,"function"==typeof n?n(e(r)):n)),t&&(r.write=t),r}function y(e,t){return"scope"in e&&(console.warn("atom.scope is deprecated. Please do useAtom(atom, scope) instead."),t=e.scope),[function(e,t){let n=h(t),i=(0,r.useContext)(n),{s:o,v:a}=i,s=t=>{let n=o.r(e,t);if("e"in n)throw n.e;if("p"in n)throw n.p;if("v"in n)return n.v;throw Error("no atom value")},[[u,l,c],f]=(0,r.useReducer)((t,n)=>{let r=s(n);return Object.is(t[1],r)&&t[2]===e?t:[n,r,e]},a,t=>{let n=s(t);return[t,n,e]}),d=l;return c!==e&&(f(u),d=s(u)),(0,r.useEffect)(()=>{let{v:t}=i;t&&o.c(e,t);let n=o.s(e,f,t);return f(t),n},[o,e,i]),(0,r.useEffect)(()=>{o.c(e,u)}),(0,r.useDebugValue)(d),d}(e,t),function(e,t){let n=h(t),{s:i,w:o}=(0,r.useContext)(n);return(0,r.useCallback)(t=>{if(!("write"in e))throw Error("not writable atom");let n=n=>i.w(e,t,n);return o?o(n):n()},[i,o,e])}(e,t)]}},7544:function(e,t,n){e.exports=n(15863)},6840:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/_app",function(){return n(17841)}])},35485:function(e,t,n){"use strict";let r,i,o,a,s,u,l,c,f,d,p,h,g,m,v,y,b;var _,S,E,O,w={};n.r(w),n.d(w,{FunctionToString:function(){return tE},InboundFilters:function(){return tC},LinkedErrors:function(){return tD}});var x={};n.r(x),n.d(x,{Breadcrumbs:function(){return nO},Dedupe:function(){return nI},GlobalHandlers:function(){return t4},HttpContext:function(){return nA},LinkedErrors:function(){return nT},TryCatch:function(){return ne}});let T="7.107.0";function C(e,t,n=[t],r="npm"){let i=e._metadata||{};i.sdk||(i.sdk={name:`sentry.javascript.${t}`,packages:n.map(e=>({name:`${r}:@sentry/${e}`,version:T})),version:T}),e._metadata=i}function P(e){return e&&e.Math==Math?e:void 0}let A="object"==typeof globalThis&&P(globalThis)||"object"==typeof window&&P(window)||"object"==typeof self&&P(self)||"object"==typeof n.g&&P(n.g)||function(){return this}()||{};function k(e,t,n){let r=n||A,i=r.__SENTRY__=r.__SENTRY__||{};return i[e]||(i[e]=t())}let j="production",I=Object.prototype.toString;function R(e){switch(I.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return V(e,Error)}}function D(e,t){return I.call(e)===`[object ${t}]`}function N(e){return D(e,"ErrorEvent")}function L(e){return D(e,"DOMError")}function M(e){return D(e,"String")}function F(e){return"object"==typeof e&&null!==e&&"__sentry_template_string__"in e&&"__sentry_template_values__"in e}function U(e){return null===e||F(e)||"object"!=typeof e&&"function"!=typeof e}function $(e){return D(e,"Object")}function B(e){return"undefined"!=typeof Event&&V(e,Event)}function z(e){return!!(e&&e.then&&"function"==typeof e.then)}function q(e){return"number"==typeof e&&e!=e}function V(e,t){try{return e instanceof t}catch(e){return!1}}function H(e){return!!("object"==typeof e&&null!==e&&(e.__isVue||e._isVue))}function Z(e,t={}){if(!e)return"<unknown>";try{let n,r=e,i=[],o=0,a=0,s=Array.isArray(t)?t:t.keyAttrs,u=!Array.isArray(t)&&t.maxStringLength||80;for(;r&&o++<5&&(n=function(e,t){let n,r,i,o,a;let s=[];if(!e||!e.tagName)return"";if(A.HTMLElement&&e instanceof HTMLElement&&e.dataset&&e.dataset.sentryComponent)return e.dataset.sentryComponent;s.push(e.tagName.toLowerCase());let u=t&&t.length?t.filter(t=>e.getAttribute(t)).map(t=>[t,e.getAttribute(t)]):null;
6if(u&&u.length)u.forEach(e=>{s.push(`[${e[0]}="${e[1]}"]`)});else if(e.id&&s.push(`#${e.id}`),(n=e.className)&&M(n))for(a=0,r=n.split(/\s+/);a<r.length;a++)s.push(`.${r[a]}`);let l=["aria-label","type","name","title","alt"];for(a=0;a<l.length;a++)i=l[a],(o=e.getAttribute(i))&&s.push(`[${i}="${o}"]`);return s.join("")}(r,s),"html"!==n&&(!(o>1)||!(a+3*i.length+n.length>=u)));)i.push(n),a+=n.length,r=r.parentNode;return i.reverse().join(" > ")}catch(e){return"<unknown>"}}function W(e){return A.document&&A.document.querySelector?A.document.querySelector(e):null}function Q(e){if(!A.HTMLElement)return null;let t=e;for(let e=0;e<5&&t;e++){if(t instanceof HTMLElement&&t.dataset.sentryComponent)return t.dataset.sentryComponent;t=t.parentNode}return null}let G="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,K=["debug","info","warn","error","log","assert","trace"],Y={};function J(e){if(!("console"in A))return e();let t=A.console,n={},r=Object.keys(Y);r.forEach(e=>{let r=Y[e];n[e]=t[e],t[e]=r});try{return e()}finally{r.forEach(e=>{t[e]=n[e]})}}let X=function(){let e=!1,t={enable:()=>{e=!0},disable:()=>{e=!1},isEnabled:()=>e};
6return G?K.forEach(n=>{t[n]=(...t)=>{e&&J(()=>{A.console[n](`Sentry Logger [${n}]:`,...t)})}}):K.forEach(e=>{t[e]=()=>void 0}),t}();function ee(e,t=0){return"string"!=typeof e||0===t?e:e.length<=t?e:`${e.slice(0,t)}...`}function et(e,t){if(!Array.isArray(e))return"";let n=[];for(let t=0;t<e.length;t++){let r=e[t];try{H(r)?n.push("[VueViewModel]"):n.push(String(r))}catch(e){n.push("[value cannot be serialized]")}}return n.join(t)}function en(e,t=[],n=!1){return t.some(t=>(function(e,t,n=!1){return!!M(e)&&(D(t,"RegExp")?t.test(e):!!M(t)&&(n?e===t:e.includes(t)))})(e,t,n))}function er(e,t,n){if(!(t in e))return;let r=e[t],i=n(r);"function"==typeof i&&eo(i,r),e[t]=i}function ei(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch(n){G&&X.log(`Failed to add non-enumerable property "${t}" to object`,e)}}function eo(e,t){try{let n=t.prototype||{};e.prototype=t.prototype=n,ei(e,"__sentry_original__",t)}catch(e){}}function ea(e){return e.__sentry_original__}function es(e){if(R(e))return{message:e.message,name:e.name,stack:e.stack,...el(e)};if(!B(e))return e;{let t={type:e.type,target:eu(e.target),currentTarget:eu(e.currentTarget),...el(e)};return"undefined"!=typeof CustomEvent&&V(e,CustomEvent)&&(t.detail=e.detail),t}}function eu(e){try{return"undefined"!=typeof Element&&V(e,Element)?Z(e):Object.prototype.toString.call(e)}catch(e){return"<unknown>"}}function el(e){if("object"!=typeof e||null===e)return{};{let t={};for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}}function ec(e){return function e(t,n){if(function(e){if(!$(e))return!1;try{let t=Object.getPrototypeOf(e).constructor.name;return!t||"Object"===t}catch(e){return!0}}(t)){let r=n.get(t);if(void 0!==r)return r;let i={};for(let r of(n.set(t,i),Object.keys(t)))void 0!==t[r]&&(i[r]=e(t[r],n));return i}if(Array.isArray(t)){let r=n.get(t);if(void 0!==r)return r;let i=[];return n.set(t,i),t.forEach(t=>{i.push(e(t,n))}),i}return t}(e,new Map)}function ef(){let e=A.crypto||A.msCrypto,t=()=>16*Math.random();try{if(e&&e.randomUUID)return e.randomUUID().replace(/-/g,"");e&&e.getRandomValues&&(t=()=>{let t=new Uint8Array(1);return e.getRandomValues(t),t[0]})}catch(e){}return"10000000100040008000100000000000".replace(/[018]/g,e=>(e^(15&t())>>e/4).toString(16))}function ed(e){return e.exception&&e.exception.values?e.exception.values[0]:void 0}function ep(e){let{message:t,event_id:n}=e;if(t)return t;let r=ed(e);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||n||"<unknown>":n||"<unknown>"}function eh(e,t,n){let r=e.exception=e.exception||{},i=r.values=r.values||[],o=i[0]=i[0]||{};o.value||(o.value=t||""),o.type||(o.type=n||"Error")}function eg(e,t){let n=ed(e);if(!n)return;let r=n.mechanism;if(n.mechanism={type:"generic",handled:!0,...r,...t},t&&"data"in t){let e={...r&&r.data,...t.data};n.mechanism.data=e}}function em(e){if(e&&e.__sentry_captured__)return!0;try{ei(e,"__sentry_captured__",!0)}catch(e){}return!1}function ev(e){return Array.isArray(e)?e:[e]}function ey(){return Date.now()/1e3}let eb=function(){let{performance:e}=A;if(!e||!e.now)return ey;let t=Date.now()-e.now(),n=void 0==e.timeOrigin?t:e.timeOrigin;return()=>(n+e.now())/1e3}(),e_=(()=>{let{performance:e}=A;if(!e||!e.now)return;let t=e.now(),n=Date.now(),r=e.timeOrigin?Math.abs(e.timeOrigin+t-n):36e5,i=e.timing&&e.timing.navigationStart,o="number"==typeof i?Math.abs(i+t-n):36e5;return r<36e5||o<36e5?r<=o?e.timeOrigin:i:n})(),eS="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__;function eE(e){return new ew(t=>{t(e)})}function eO(e){return new ew((t,n)=>{n(e)})}(_=E||(E={}))[_.PENDING=0]="PENDING",_[_.RESOLVED=1]="RESOLVED",_[_.REJECTED=2]="REJECTED";class ew{constructor(e){ew.prototype.__init.call(this),ew.prototype.__init2.call(this),ew.prototype.__init3.call(this),ew.prototype.__init4.call(this),this._state=E.PENDING,this._handlers=[];try{e(this._resolve,this._reject)}catch(e){this._reject(e)}}then(e,t){return new ew((n,r)=>{this._handlers.push([!1,t=>{if(e)try{n(e(t))}catch(e){r(e)}else n(t)},e=>{if(t)try{n(t(e))}catch(e){r(e)}else r(e)}]),this._executeHandlers()})}catch(e){return this.then(e=>e,e)}finally(e){return new ew((t,n)=>{let r,i;return this.then(t=>{i=!1,r=t,e&&e()},t=>{i=!0,r=t,e&&e()}).then(()=>
6{if(i){n(r);return}t(r)})})}__init(){this._resolve=e=>{this._setResult(E.RESOLVED,e)}}__init2(){this._reject=e=>{this._setResult(E.REJECTED,e)}}__init3(){this._setResult=(e,t)=>{if(this._state===E.PENDING){if(z(t)){t.then(this._resolve,this._reject);return}this._state=e,this._value=t,this._executeHandlers()}}}__init4(){this._executeHandlers=()=>{if(this._state===E.PENDING)return;let e=this._handlers.slice();this._handlers=[],e.forEach(e=>{e[0]||(this._state===E.RESOLVED&&e[1](this._value),this._state===E.REJECTED&&e[2](this._value),e[0]=!0)})}}}function ex(){return k("globalEventProcessors",()=>[])}function eT(e){ex().push(e)}function eC(e,t,n,r=0){return new ew((i,o)=>{let a=e[r];if(null===t||"function"!=typeof a)i(t);else{let s=a({...t},n);eS&&a.id&&null===s&&X.log(`Event processor "${a.id}" dropped event`),z(s)?s.then(t=>eC(e,t,n,r+1).then(i)).then(null,o):eC(e,s,n,r+1).then(i).then(null,o)}})}function eP(e){let t=eb(),n={sid:ef(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>ec({sid:`${n.sid}`,init:n.init,started:new Date(1e3*n.started).toISOString(),timestamp:new Date(1e3*n.timestamp).toISOString(),status:n.status,errors:n.errors,did:"number"==typeof n.did||"string"==typeof n.did?`${n.did}`:void 0,duration:n.duration,abnormal_mechanism:n.abnormal_mechanism,attrs:{release:n.release,environment:n.environment,ip_address:n.ipAddress,user_agent:n.userAgent}})};return e&&eA(n,e),n}function eA(e,t={}){if(!t.user||(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),e.did||t.did||(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||eb(),t.abnormal_mechanism&&(e.abnormal_mechanism=t.abnormal_mechanism),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=32===t.sid.length?t.sid:ef()),void 0!==t.init&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),"number"==typeof t.started&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if("number"==typeof t.duration)e.duration=t.duration;else{let t=e.timestamp-e.started;e.duration=t>=0?t:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),"number"==typeof t.errors&&(e.errors=t.errors),t.status&&(e.status=t.status)}function ek(e,t){let n={};t?n={status:t}:"ok"===e.status&&(n={status:"exited"}),eA(e,n)}function ej(e){return e.transaction}let eI="baggage",eR="sentry-",eD=/^sentry-/;function eN(e){if(!M(e)&&!Array.isArray(e))return;let t={};if(Array.isArray(e))t=e.reduce((e,t)=>{let n=eM(t);for(let t of Object.keys(n))e[t]=n[t];return e},{});else{if(!e)return;t=eM(e)}let n=Object.entries(t).reduce((e,[t,n])=>(t.match(eD)&&(e[t.slice(eR.length)]=n),e),{});return Object.keys(n).length>0?n:void 0}function eL(e){if(e)return function(e){if(0!==Object.keys(e).length)return Object.entries(e).reduce((e,[t,n],r)=>{let i=`${encodeURIComponent(t)}=${encodeURIComponent(n)}`,o=0===r?i:`${e},${i}`;return o.length>8192?(G&&X.warn(`Not adding key: ${t} with val: ${n} to baggage header due to exceeding baggage size limits.`),e):o},"")}(Object.entries(e).reduce((e,[t,n])=>(n&&(e[`${eR}${t}`]=n),e),{}))}function eM(e){return e.split(",").map(e=>e.split("=").map(e=>decodeURIComponent(e.trim()))).reduce((e,[t,n])=>(e[t]=n,e),{})}let eF=RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function eU(e){let t;if(!e)return;let n=e.match(eF);if(n)return"1"===n[3]?t=!0:"0"===n[3]&&(t=!1),{traceId:n[1],parentSampled:t,parentSpanId:n[2]}}function e$(e,t){let n=eU(e),r=eN(t),{traceId:i,parentSpanId:o,parentSampled:a}=n||{};return n?{traceId:i||ef(),parentSpanId:o||ef().substring(16),spanId:ef().substring(16),sampled:a,dsc:r||{}}:{traceId:i||ef(),spanId:ef().substring(16)}}function eB(e=ef(),t=ef().substring(16),n){let r="";return void 0!==n&&(r=n?"-1":"-0"),`${e}-${t}${r}`}function ez(e){let{spanId:t,traceId:n}=e.spanContext(),{data:r,op:i,parent_span_id:o,status:a,tags:s,origin:u}=eZ(e);return ec({data:r,op:i,parent_span_id:o,span_id:t,status:a,tags:s,trace_id:n,origin:u})}function eq(e){let{traceId:t,spanId:n}=e.spanContext();return eB(t,n,eW(e))}function eV(e){return"number"==typeof e?eH(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?eH(e.getTime()):eb()}function eH(e){return e>9999999999?e/1e3:e}function eZ(e){return"function"==typeof e.getSpanJSON?e.getSpanJSON():"function"==typeof e.toJSON?e.toJSON():{}}function eW(e){let{traceFlags:t}=e.spanContext();return!!(1&t)}function eQ(e,t,n){let r=t.getOptions(),{publicKey:i}=t.getDsn()||{},{segment:o}=n&&n.getUser()||{},a=ec({environment:r.environment||j,release:r.release,user_segment:o,public_key:i,trace_id:e});return t.emit&&t.emit("createDsc",a),a}function eG(e){let t=tu();if(!t)return{};let n=eQ(eZ(e).trace_id||"",t,tl()),r=ej(e);if(!r)return n;let i=r&&r._frozenDynamicSamplingContext;if(i)return i;let{sampleRate:o,source:a}=r.metadata;null!=o&&(n.sample_rate=`${o}`);let s=eZ(r);return a&&"url"!==a&&(n.transaction=s.description),n.sampled=String(eW(r)),t.emit&&t.emit("createDsc",n),n}function eK(e,t){let{fingerprint:n,span:r,breadcrumbs:i,sdkProcessingMetadata:o}=t;(function(e,t){let{extra:n,tags:r,user:i,contexts:o,level:a,transactionName:s}=t,u=ec(n);u&&Object.keys(u).length&&(e.extra={...u,...e.extra});let l=ec(r);l&&Object.keys(l).length&&(e.tags={...l,...e.tags});let c=ec(i);c&&Object.keys(c).length&&(e.user={...c,...e.user});let f=ec(o);f&&Object.keys(f).length&&(e.contexts={...f,...e.contexts}),a&&(e.level=a),s&&(e.transaction=s)})(e,t),r&&function(e,t){e.contexts={trace:ez(t),...e.contexts};let n=ej(t);if(n){e.sdkProcessingMetadata={dynamicSamplingContext:eG(t),...e.sdkProcessingMetadata};let r=eZ(n).description;r&&(e.tags={transaction:r,...e.tags})}}(e,r),e.fingerprint=e.fingerprint?ev(e.fingerprint):[],n&&(e.fingerprint=e.fingerprint.concat(n)),e.fingerprint&&!e.fingerprint.length&&delete e.fingerprint,function(e,t){let n=[...e.breadcrumbs||[],...t];e.breadcrumbs=n.length?n:void 0}(e,i),e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...o}}function eY(e,t){let{extra:n,tags:r,user:i,contexts:o,level:a,sdkProcessingMetadata:s,breadcrumbs:u,fingerprint:l,eventProcessors:c,attachments:f,propagationContext:d,transactionName:p,span:h}=t;eJ(e,"extra",n),eJ(e,"tags",r),eJ(e,"user",i),eJ(e,"contexts",o),eJ(e,"sdkProcessingMetadata",s),a&&(e.level=a),p&&(e.transactionName=p),h&&(e.span=h),u.length&&(e.breadcrumbs=[...e.breadcrumbs,...u]),l.length&&(e.fingerprint=[...e.fingerprint,...l]),c.length&&(e.eventProcessors=[...e.eventProcessors,...c]),f.length&&(e.attachments=[...e.attachments,...f]),e.propagationContext={...e.propagationContext,...d}}function eJ(e,t,n){if(n&&Object.keys(n).length)for(let r in e[t]={...e[t]},n)Object.prototype.hasOwnProperty.call(n,r)&&(e[t][r]=n[r])}class eX{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext=e0()}static clone(e){return e?e.clone():new eX}clone(){let e=new eX;return e._breadcrumbs=[...this._breadcrumbs],e._tags={...this._tags},e._extra={...this._extra},e._contexts={...this._contexts},e._user=this._user,e._level=this._level,e._span=this._span,e._session=this._session,e._transactionName=this._transactionName,e._fingerprint=this._fingerprint,e._eventProcessors=[...this._eventProcessors],e._requestSession=this._requestSession,e._attachments=[...this._attachments],e._sdkProcessingMetadata={...this._sdkProcessingMetadata},e._propagationContext={...this._propagationContext},e._client=this._client,e}setClient(e){this._client=e}getClient(){return this._client}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,segment:void 0,username:void 0},this._session&&eA(this._session,{user:e}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(e){return this._requestSession=e,this}setTags(e){return this._tags={...this._tags,...e},this._notifyScopeListeners(),this}setTag(e,t){return this._tags={...this._tags,[e]:t},this._notifyScopeListeners(),this}setExtras(e){return this._extra={...this._extra,...e},this._notifyScopeListeners(),this}setExtra(e,t){return this._extra={...this._extra,[e]:t},this._notifyScopeListeners(),this}setFingerprint(e){return this._fingerprint=e,this._notifyScopeListeners(),this}setLevel(e){return this._level=e,this._notifyScopeListeners(),this}setTransactionName(e){return this._transactionName=e,this._notifyScopeListeners(),this}setContext(e,t){return null===t?delete this._contexts[e]:this._contexts[e]=t,this._notifyScopeListeners(),this}setSpan(e){return this._span=e,this._notifyScopeListeners(),this}getSpan(){return this._span}getTransaction(){let e=this._span;return e&&e.transaction}setSession(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(e){if(!e)return this;let t="function"==typeof e?e(this):e;if(t instanceof eX){let e=t.getScopeData();this._tags={...this._tags,...e.tags},this._extra={...this._extra,...e.extra},this._contexts={...this._contexts,...e.contexts},e.user&&Object.keys(e.user).length&&(this._user=e.user),e.level&&(this._level=e.level),e.fingerprint.length&&(this._fingerprint=e.fingerprint),t.getRequestSession()&&(this._requestSession=t.getRequestSession()),e.propagationContext&&(this._propagationContext=e.propagationContext)}else $(t)&&(this._tags={...this._tags,...e.tags},this._extra={...this._extra,...e.extra},this._contexts={...this._contexts,...e.contexts},e.user&&(this._user=e.user),e.level&&(this._level=e.level),e.fingerprint&&(this._fingerprint=e.fingerprint),e.requestSession&&(this._requestSession=e.requestSession),e.propagationContext&&(this._propagationContext=e.propagationContext));return this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._span=void 0,this._session=void 0,this._notifyScopeListeners(),this._attachments=[],this._propagationContext=e0(),this}addBreadcrumb(e,t){let n="number"==typeof t?t:100;if(n<=0)return this;let r={timestamp:ey(),...e},i=this._breadcrumbs;return i.push(r),this._breadcrumbs=i.length>n?i.slice(-n):i,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}
6getAttachments(){return this.getScopeData().attachments}clearAttachments(){return this._attachments=[],this}getScopeData(){let{_breadcrumbs:e,_attachments:t,_contexts:n,_tags:r,_extra:i,_user:o,_level:a,_fingerprint:s,_eventProcessors:u,_propagationContext:l,_sdkProcessingMetadata:c,_transactionName:f,_span:d}=this;return{breadcrumbs:e,attachments:t,contexts:n,tags:r,extra:i,user:o,level:a,fingerprint:s||[],eventProcessors:u,propagationContext:l,sdkProcessingMetadata:c,transactionName:f,span:d}}applyToEvent(e,t={},n=[]){return eK(e,this.getScopeData()),eC([...n,...ex(),...this._eventProcessors],e,t)}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata={...this._sdkProcessingMetadata,...e},this}setPropagationContext(e){return this._propagationContext=e,this}getPropagationContext(){return this._propagationContext}captureException(e,t){let n=t&&t.event_id?t.event_id:ef();if(!this._client)return X.warn("No client configured on scope - will not capture exception!"),n;let r=Error("Sentry syntheticException");return this._client.captureException(e,{originalException:e,syntheticException:r,...t,event_id:n},this),n}captureMessage(e,t,n){let r=n&&n.event_id?n.event_id:ef();if(!this._client)return X.warn("No client configured on scope - will not capture message!"),r;let i=Error(e);return this._client.captureMessage(e,t,{originalException:e,syntheticException:i,...n,event_id:r},this),r}captureEvent(e,t){let n=t&&t.event_id?t.event_id:ef();return this._client?this._client.captureEvent(e,{...t,event_id:n},this):X.warn("No client configured on scope - will not capture event!"),n}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(e=>{e(this)}),this._notifyingListeners=!1)}}function e0(){return{traceId:ef(),spanId:ef().substring(16)}}let e1=parseFloat(T);class e2{constructor(e,t,n,r=e1){let i,o;this._version=r,t?i=t:(i=new eX).setClient(e),n?o=n:(o=new eX).setClient(e),this._stack=[{scope:i}],e&&this.bindClient(e),this._isolationScope=o}isOlderThan(e){return this._version<e}bindClient(e){let t=this.getStackTop();t.client=e,t.scope.setClient(e),e&&e.setupIntegrations&&e.setupIntegrations()}pushScope(){let e=this.getScope().clone();return this.getStack().push({client:this.getClient(),scope:e}),e}popScope(){return!(this.getStack().length<=1)&&!!this.getStack().pop()}withScope(e){let t;let n=this.pushScope();try{t=e(n)}catch(e){throw this.popScope(),e}return z(t)?t.then(e=>(this.popScope(),e),e=>{throw this.popScope(),e}):(this.popScope(),t)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStack(){return this._stack}getStackTop(){return this._stack[this._stack.length-1]}captureException(e,t){let n=this._lastEventId=t&&t.event_id?t.event_id:ef(),r=Error("Sentry syntheticException");return this.getScope().captureException(e,{originalException:e,syntheticException:r,...t,event_id:n}),n}captureMessage(e,t,n){let r=this._lastEventId=n&&n.event_id?n.event_id:ef(),i=Error(e);return this.getScope().captureMessage(e,t,{originalException:e,syntheticException:i,...n,event_id:r}),r}captureEvent(e,t){let n=t&&t.event_id?t.event_id:ef();return e.type||(this._lastEventId=n),this.getScope().captureEvent(e,{...t,event_id:n}),n}lastEventId(){return this._lastEventId}addBreadcrumb(e,t){let{scope:n,client:r}=this.getStackTop();if(!r)return;let{beforeBreadcrumb:i=null,maxBreadcrumbs:o=100}=r.getOptions&&r.getOptions()||{};if(o<=0)return;let a={timestamp:ey(),...e},s=i?J(()=>i(a,t)):a;null!==s&&(r.emit&&r.emit("beforeAddBreadcrumb",s,t),n.addBreadcrumb(s,o))}setUser(e){this.getScope().setUser(e),this.getIsolationScope().setUser(e)}setTags(e){this.getScope().setTags(e),this.getIsolationScope().setTags(e)}setExtras(e){this.getScope().setExtras(e),this.getIsolationScope().setExtras(e)}setTag(e,t){this.getScope().setTag(e,t),this.getIsolationScope().setTag(e,t)}setExtra(e,t){this.getScope().setExtra(e,t),this.getIsolationScope().setExtra(e,t)}setContext(e,t){this.getScope().setContext(e,t),this.getIsolationScope().setContext(e,t)}configureScope(e){let{scope:t,client:n}=this.getStackTop();n&&e(t)}run(e){let t=e3(this);try{e(this)}finally{e3(t)}}getIntegration(e){let t=this.getClient();if(!t)return null;try{return t.getIntegration(e)}catch(t){return eS&&X.warn(`Cannot retrieve integration ${e.id} from the current Hub`),null}}startTransaction(e,t){let n=this._callExtensionMethod("startTransaction",e,t);return eS&&!n&&(this.getClient()?X.warn(`Tracing extension 'startTransaction' has not been added. Call 'addTracingExtensions' before calling 'init':
7Sentry.addTracingExtensions();
8Sentry.init({...});
9`):X.warn("Tracing extension 'startTransaction' is missing. You should 'init' the SDK before calling 'startTransaction'")),n}traceHeaders(){return this._callExtensionMethod("traceHeaders")}captureSession(e=!1){if(e)return this.endSession();this._sendSessionUpdate()}endSession(){let e=this.getStackTop().scope,t=e.getSession();t&&ek(t),this._sendSessionUpdate(),e.setSession()}startSession(e){let{scope:t,client:n}=this.getStackTop(),{release:r,environment:i=j}=n&&n.getOptions()||{},{userAgent:o}=A.navigator||{},a=eP({release:r,environment:i,user:t.getUser(),...o&&{userAgent:o},...e}),s=t.getSession&&t.getSession();return s&&"ok"===s.status&&eA(s,{status:"exited"}),this.endSession(),t.setSession(a),a}shouldSendDefaultPii(){let e=this.getClient(),t=e&&e.getOptions();return!!(t&&t.sendDefaultPii)}_sendSessionUpdate(){let{scope:e,client:t}=this.getStackTop(),n=e.getSession();n&&t&&t.captureSession&&t.captureSession(n)}_callExtensionMethod(e,...t){let n=e4().__SENTRY__;if(n&&n.extensions&&"function"==typeof n.extensions[e])return n.extensions[e].apply(this,t);eS&&X.warn(`Extension method ${e} couldn't be found, doing nothing.`)}}function e4(){return A.__SENTRY__=A.__SENTRY__||{extensions:{},hub:void 0},A}function e3(e){let t=e4(),n=e7(t);return e8(t,e),n}function e5(){let e=e4();if(e.__SENTRY__&&e.__SENTRY__.acs){let t=e.__SENTRY__.acs.getCurrentHub();if(t)return t}return function(e=e4()){return(!(e&&e.__SENTRY__&&e.__SENTRY__.hub)||e7(e).isOlderThan(e1))&&e8(e,new e2),e7(e)}(e)}function e6(){return e5().getIsolationScope()}function e7(e){return k("hub",()=>new e2,e)}function e8(e,t){return!!e&&((e.__SENTRY__=e.__SENTRY__||{}).hub=t,!0)}let e9=/\(error: (.*)\)/,te=/captureMessage|captureException/;function tt(...e){let t=e.sort((e,t)=>
9e[0]-t[0]).map(e=>e[1]);return(e,n=0)=>{let r=[],i=e.split("\n");for(let e=n;e<i.length;e++){let n=i[e];if(n.length>1024)continue;let o=e9.test(n)?n.replace(e9,"$1"):n;if(!o.match(/\S*Error: /)){for(let e of t){let t=e(o);if(t){r.push(t);break}}if(r.length>=50)break}}return function(e){if(!e.length)return[];let t=Array.from(e);return/sentryWrapped/.test(t[t.length-1].function||"")&&t.pop(),t.reverse(),te.test(t[t.length-1].function||"")&&(t.pop(),te.test(t[t.length-1].function||"")&&t.pop()),t.slice(0,50).map(e=>({...e,filename:e.filename||t[t.length-1].filename,function:e.function||"?"}))}(r)}}let tn="<anonymous>";function tr(e){try{if(!e||"function"!=typeof e)return tn;return e.name||tn}catch(e){return tn}}function ti(e,t=100,r=Infinity){try{return function e(t,r,i=Infinity,o=Infinity,a=function(){let e="function"==typeof WeakSet,t=e?new WeakSet:[];return[function(n){if(e)return!!t.has(n)||(t.add(n),!1);for(let e=0;e<t.length;e++)if(t[e]===n)return!0;return t.push(n),!1},function(n){if(e)t.delete(n);else for(let e=0;e<t.length;e++)if(t[e]===n){t.splice(e,1);break}}]}()){let[s,u]=a;if(null==r||["number","boolean","string"].includes(typeof r)&&!q(r))return r;let l=function(e,t){try{if("domain"===e&&t&&"object"==typeof t&&t._events)return"[Domain]";if("domainEmitter"===e)return"[DomainEmitter]";if(void 0!==n.g&&t===n.g)return"[Global]";if("undefined"!=typeof window&&t===window)return"[Window]";if("undefined"!=typeof document&&t===document)return"[Document]";if(H(t))return"[VueViewModel]";if($(t)&&"nativeEvent"in t&&"preventDefault"in t&&"stopPropagation"in t)return"[SyntheticEvent]";if("number"==typeof t&&t!=t)return"[NaN]";if("function"==typeof t)return`[Function: ${tr(t)}]`;if("symbol"==typeof t)return`[${String(t)}]`;if("bigint"==typeof t)return`[BigInt: ${String(t)}]`;let r=function(e){let t=Object.getPrototypeOf(e);return t?t.constructor.name:"null prototype"}(t);if(/^HTML(\w*)Element$/.test(r))return`[HTMLElement: ${r}]`;return`[object ${r}]`}catch(e){return`**non-serializable** (${e})`}}(t,r);if(!l.startsWith("[object "))return l;if(r.__sentry_skip_normalization__)return r;let c="number"==typeof r.__sentry_override_normalization_depth__?r.__sentry_override_normalization_depth__:i;if(0===c)return l.replace("object ","");if(s(r))return"[Circular ~]";if(r&&"function"==typeof r.toJSON)try{let t=r.toJSON();return e("",t,c-1,o,a)}catch(e){}let f=Array.isArray(r)?[]:{},d=0,p=es(r);for(let t in p){if(!Object.prototype.hasOwnProperty.call(p,t))continue;if(d>=o){f[t]="[MaxProperties ~]";break}let n=p[t];f[t]=e(t,n,c-1,o,a),d++}return u(r),f}("",e,t,r)}catch(e){return{ERROR:`**non-serializable** (${e})`}}}let to=new WeakMap;function ta(e,t){return e5().captureEvent(e,t)}function ts(e,t){e5().addBreadcrumb(e,t)}function tu(){return e5().getClient()}function tl(){return e5().getScope()}function tc(e){let t=tu(),n=e6(),r=tl(),{release:i,environment:o=j}=t&&t.getOptions()||{},{userAgent:a}=A.navigator||{},s=eP({release:i,environment:o,user:r.getUser()||n.getUser(),...a&&{userAgent:a},...e}),u=n.getSession();return u&&"ok"===u.status&&eA(u,{status:"exited"}),tf(),n.setSession(s),r.setSession(s),s}function tf(){let e=e6(),t=tl(),n=t.getSession()||e.getSession();n&&ek(n),td(),e.setSession(),t.setSession()}function td(){let e=e6(),t=tl(),n=tu(),r=t.getSession()||e.getSession();r&&n&&n.captureSession&&n.captureSession(r)}function tp(e=!1){if(e){tf();return}td()}function th(e){if("boolean"==typeof __SENTRY_TRACING__&&!__SENTRY_TRACING__)return!1;let t=tu(),n=e||t&&t.getOptions();return!!n&&(n.enableTracing||"tracesSampleRate"in n||"tracesSampler"in n)}let tg=[];function tm(e,t){for(let n of t)n&&n.afterAllSetup&&n.afterAllSetup(e)}function tv(e,t,n){if(n[t.name]){eS&&X.log(`Integration skipped because it was already installed: ${t.name}`);return}if(n[t.name]=t,-1===tg.indexOf(t.name)&&(t.setupOnce(eT,e5),tg.push(t.name)),t.setup&&"function"==typeof t.setup&&t.setup(e),e.on&&"function"==typeof t.preprocessEvent){let n=t.preprocessEvent.bind(t);e.on("preprocessEvent",(t,r)=>n(t,r,e))}if(e.addEventProcessor&&"function"==typeof t.processEvent){let n=t.processEvent.bind(t),r=Object.assign((t,r)=>n(t,r,e),{id:t.name});e.addEventProcessor(r)}eS&&X.log(`Integration installed: ${t.name}`)}function ty(e,t){return Object.assign(function(...e){return t(...e)},{id:e})}let tb="FunctionToString",t_=new WeakMap,tS=()=>({name:tb,setupOnce(){i=Function.prototype.toString;try{Function.prototype.toString=function(...e){let t=ea(this),n=t_.has(tu())&&void 0!==t?t:this;return i.apply(n,e)}}catch(e){}},setup(e){t_.set(e,!0)}}),tE=ty(tb,tS),tO=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/],tw=[/^.*\/healthcheck$/,/^.*\/healthy$/,/^.*\/live$/,/^.*\/ready$/,/^.*\/heartbeat$/,/^.*\/health$/,/^.*\/healthz$/],tx="InboundFilters",tT=(e={})=>({name:tx,setupOnce(){},processEvent:(t,n,r)=>{var i,o;return((i=function(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:tO],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[],...e.disableTransactionDefaults?[]:tw],ignoreInternal:void 0===e.ignoreInternal||e.ignoreInternal}}(e,r.getOptions())).ignoreInternal&&function(e){try{return"SentryError"===e.exception.values[0].type}catch(e){}return!1}(t)?(eS&&X.warn(`Event dropped due to being internal Sentry Error.
10Event: ${ep(t)}`),0):(o=i.ignoreErrors,!t.type&&o&&o.length&&(function(e){let t;let n=[];e.message&&n.push(e.message);try{t=e.exception.values[e.exception.values.length-1]}catch(e){}return t&&t.value&&(n.push(t.value),t.type&&n.push(`${t.type}: ${t.value}`)),eS&&0===n.length&&X.error(`Could not extract message for event ${ep(e)}`),n})(t).some(e=>en(e,o)))?(eS&&X.warn(`Event dropped due to being matched by \`ignoreErrors\` option.
11Event: ${ep(t)}`),0):!function(e,t){if("transaction"!==e.type||!t||!t.length)return!1;let n=e.transaction;return!!n&&en(n,t)}(t,i.ignoreTransactions)?!function(e,t){if(!t||!t.length)return!1;let n=tP(e);return!!n&&en(n,t)}(t,i.denyUrls)?function(e,t){if(!t||!t.length)return!0;let n=tP(e);return!n||en(n,t)}(t,i.allowUrls)||(eS&&X.warn(`Event dropped due to not being matched by \`allowUrls\` option.
12Event: ${ep(t)}.
13Url: ${tP(t)}`),0):(eS&&X.warn(`Event dropped due to being matched by \`denyUrls\` option.
14Event: ${ep(t)}.
15Url: ${tP(t)}`),0):(eS&&X.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.
16Event: ${ep(t)}`),0))?t:null}}),tC=ty(tx,tT);function tP(e){try{let t;try{t=e.exception.values[0].stacktrace.frames}catch(e){}return t?function(e=[]){for(let t=e.length-1;t>=0;t--){let n=e[t];if(n&&"<anonymous>"!==n.filename&&"[native code]"!==n.filename)return n.filename||null}return null}(t):null}catch(t){return eS&&X.error(`Cannot extract url for event ${ep(e)}`),null}}function tA(e,t,n=250,r,i,o,a){if(!o.exception||!o.exception.values||!a||!V(a.originalException,Error))return;let s=o.exception.values.length>0?o.exception.values[o.exception.values.length-1]:void 0;s&&(o.exception.values=(function e(t,n,r,i,o,a,s,u){if(a.length>=r+1)return a;let l=[...a];if(V(i[o],Error)){tk(s,u);let a=t(n,i[o]),c=l.length;tj(a,o,c,u),l=e(t,n,r,i[o],o,[a,...l],a,c)}
16return Array.isArray(i.errors)&&i.errors.forEach((i,a)=>{if(V(i,Error)){tk(s,u);let c=t(n,i),f=l.length;tj(c,`errors[${a}]`,f,u),l=e(t,n,r,i,o,[c,...l],c,f)}}),l})(e,t,i,a.originalException,r,o.exception.values,s,0).map(e=>(e.value&&(e.value=ee(e.value,n)),e)))}function tk(e,t){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,..."AggregateError"===e.type&&{is_exception_group:!0},exception_id:t}}function tj(e,t,n,r){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,type:"chained",source:t,exception_id:n,parent_id:r}}function tI(e,t){let n={type:t.name||t.constructor.name,value:t.message},r=e(t.stack||"",1);return r.length&&(n.stacktrace={frames:r}),n}let tR="LinkedErrors",tD=ty(tR,(e={})=>{let t=e.limit||5,n=e.key||"cause";return{name:tR,setupOnce(){},preprocessEvent(e,r,i){let o=i.getOptions();tA(tI,o.stackParser,o.maxValueLength,n,t,e,r)}}}),tN=0;function tL(e,t={},n){if("function"!=typeof e)return e;try{let t=e.__sentry_wrapped__;if(t)return t;if(ea(e))return e}catch(t){return e}let r=function(){let r=Array.prototype.slice.call(arguments);try{n&&"function"==typeof n&&n.apply(this,arguments);let i=r.map(e=>tL(e,t));return e.apply(this,i)}catch(e){throw tN++,setTimeout(()=>{tN--}),!function(...e){let t=e5();if(2===e.length){let[n,r]=e;return n?t.withScope(()=>(t.getStackTop().scope=n,r(n))):t.withScope(r)}t.withScope(e[0])}(n=>{n.addEventProcessor(e=>(t.mechanism&&(eh(e,void 0,void 0),eg(e,t.mechanism)),e.extra={...e.extra,arguments:r},e)),e5().captureException(e,void 0)}),e}};try{for(let t in e)Object.prototype.hasOwnProperty.call(e,t)&&(r[t]=e[t])}catch(e){}eo(r,e),ei(e,"__sentry_wrapped__",r);try{Object.getOwnPropertyDescriptor(r,"name").configurable&&Object.defineProperty(r,"name",{get:()=>e.name})}catch(e){}return r}let tM={},tF={};function tU(e,t){tM[e]=tM[e]||[],tM[e].push(t)}function t$(e,t){tF[e]||(t(),tF[e]=!0)}function tB(e,t){let n=e&&tM[e];if(n)for(let r of n)try{r(t)}catch(t){G&&X.error(`Error while triggering instrumentation handler.
17Type: ${e}
18Name: ${tr(r)}
19Error:`,t)}}let tz=null;function tq(e){let t="error";tU(t,e),t$(t,tV)}function tV(){tz=A.onerror,A.onerror=function(e,t,n,r,i){return tB("error",{column:r,error:i,line:n,msg:e,url:t}),!!tz&&!tz.__SENTRY_LOADER__&&tz.apply(this,arguments)},A.onerror.__SENTRY_INSTRUMENTED__=!0}let tH=null;function tZ(e){let t="unhandledrejection";tU(t,e),t$(t,tW)}function tW(){tH=A.onunhandledrejection,A.onunhandledrejection=function(e){return tB("unhandledrejection",e),!tH||!!tH.__SENTRY_LOADER__||tH.apply(this,arguments)},A.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}let tQ="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__;function tG(e,t){let n=tY(e,t),r={type:t&&t.name,value:function(e){let t=e&&e.message;return t?t.error&&"string"==typeof t.error.message?t.error.message:t:"No error message"}(t)};return n.length&&(r.stacktrace={frames:n}),void 0===r.type&&""===r.value&&(r.value="Unrecoverable error caught"),r}function tK(e,t){return{exception:{values:[tG(e,t)]}}}function tY(e,t){let n=t.stacktrace||t.stack||"",r=function(e){if(e){if("number"==typeof e.framesToPop)return e.framesToPop;if(tJ.test(e.message))return 1}return 0}(t);try{return e(n,r)}catch(e){}return[]}let tJ=/Minified React error #\d+;/i;function tX(e,t,n,r,i){let o;if(N(t)&&t.error)return tK(e,t.error);if(L(t)||D(t,"DOMException")){if("stack"in t)o=tK(e,t);else{let i=t.name||(L(t)?"DOMError":"DOMException"),a=t.message?`${i}: ${t.message}`:i;eh(o=t0(e,a,n,r),a)}return"code"in t&&(o.tags={...o.tags,"DOMException.code":`${t.code}`}),o}return R(t)?tK(e,t):($(t)||B(t)?eg(o=function(e,t,n,r){let i=tu(),o=i&&i.getOptions().normalizeDepth,a={exception:{values:[{type:B(t)?t.constructor.name:r?"UnhandledRejection":"Error",value:function(e,{isUnhandledRejection:t}){let n=function(e,t=40){let n=Object.keys(es(e));if(n.sort(),!n.length)return"[object has no keys]";if(n[0].length>=t)return ee(n[0],t);for(let e=n.length;e>0;e--){let r=n.slice(0,e).join(", ");if(!(r.length>t)){if(e===n.length)return r;return ee(r,t)}}return""}(e),r=t?"promise rejection":"exception";if(N(e))return`Event \`ErrorEvent\` captured as ${r} with message \`${e.message}\``;if(B(e)){let t=function(e){try{let t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch(e){}}(e);return`Event \`${t}\` (type=${e.type}) captured as ${r}`}return`Object captured as ${r} with keys: ${n}`}(t,{isUnhandledRejection:r})}]},extra:{__serialized__:function e(t,n=3,r=102400){let i=ti(t,n);return~-encodeURI(JSON.stringify(i)).split(/%..|./).length>r?e(t,n-1,r):i}(t,o)}};if(n){let t=tY(e,n);t.length&&(a.exception.values[0].stacktrace={frames:t})}return a}(e,t,n,i),{synthetic:!0}):(eh(o=t0(e,t,n,r),`${t}`,void 0),eg(o,{synthetic:!0})),o)}function t0(e,t,n,r){let i={};if(r&&n){let r=tY(e,n);r.length&&(i.exception={values:[{value:t,stacktrace:{frames:r}}]})}
19if(F(t)){let{__sentry_template_string__:e,__sentry_template_values__:n}=t;return i.logentry={message:e,params:n},i}return i.message=t,i}let t1="GlobalHandlers",t2=(e={})=>{let t={onerror:!0,onunhandledrejection:!0,...e};return{name:t1,setupOnce(){Error.stackTraceLimit=50},setup(e){t.onerror&&(tq(t=>{let{stackParser:n,attachStacktrace:r}=t6();if(tu()!==e||tN>0)return;let{msg:i,url:o,line:a,column:s,error:u}=t,l=void 0===u&&M(i)?function(e,t,n,r){let i=N(e)?e.message:e,o="Error",a=i.match(/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i);return a&&(o=a[1],i=a[2]),t3({exception:{values:[{type:o,value:i}]}},t,n,r)}(i,o,a,s):t3(tX(n,u||i,void 0,r,!1),o,a,s);l.level="error",ta(l,{originalException:u,mechanism:{handled:!1,type:"onerror"}})}),t5("onerror")),t.onunhandledrejection&&(tZ(t=>{let{stackParser:n,attachStacktrace:r}=t6();if(tu()!==e||tN>0)return;let i=function(e){if(U(e))return e;try{if("reason"in e)return e.reason;if("detail"in e&&"reason"in e.detail)return e.detail.reason}catch(e){}return e}(t),o=U(i)?{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(i)}`}]}}:tX(n,i,void 0,r,!0);o.level="error",ta(o,{originalException:i,mechanism:{handled:!1,type:"onunhandledrejection"}})}),t5("onunhandledrejection"))}}},t4=ty(t1,t2);function t3(e,t,n,r){let i=e.exception=e.exception||{},o=i.values=i.values||[],a=o[0]=o[0]||{},s=a.stacktrace=a.stacktrace||{},u=s.frames=s.frames||[],l=isNaN(parseInt(r,10))?void 0:r,c=isNaN(parseInt(n,10))?void 0:n,f=M(t)&&t.length>0?t:function(){try{return A.document.location.href}catch(e){return""}}();return 0===u.length&&u.push({colno:l,filename:f,function:"?",in_app:!0,lineno:c}),e}function t5(e){tQ&&X.log(`Global Handler attached: ${e}`)}function t6(){let e=tu();return e&&e.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}let t7=["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"],t8="TryCatch",t9=(e={})=>{let t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...e};return{name:t8,setupOnce(){t.setTimeout&&er(A,"setTimeout",nt),t.setInterval&&er(A,"setInterval",nt),t.requestAnimationFrame&&er(A,"requestAnimationFrame",nn),t.XMLHttpRequest&&"XMLHttpRequest"in A&&er(XMLHttpRequest.prototype,"send",nr);let e=t.eventTarget;e&&(Array.isArray(e)?e:t7).forEach(ni)}}},ne=ty(t8,t9);function nt(e){return function(...t){let n=t[0];return t[0]=tL(n,{mechanism:{data:{function:tr(e)},handled:!1,type:"instrument"}}),e.apply(this,t)}}function nn(e){return function(t){return e.apply(this,[tL(t,{mechanism:{data:{function:"requestAnimationFrame",handler:tr(e)},handled:!1,type:"instrument"}})])}}function nr(e){return function(...t){let n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(e=>{e in n&&"function"==typeof n[e]&&er(n,e,function(t){let n={mechanism:{data:{function:e,handler:tr(t)},handled:!1,type:"instrument"}},r=ea(t);return r&&(n.mechanism.data.handler=tr(r)),tL(t,n)})}),e.apply(this,t)}}function ni(e){let t=A[e]&&A[e].prototype;t&&t.hasOwnProperty&&t.hasOwnProperty("addEventListener")&&(er(t,"addEventListener",function(t){return function(n,r,i){try{"function"==typeof r.handleEvent&&(r.handleEvent=tL(r.handleEvent,{mechanism:{data:{function:"handleEvent",handler:tr(r),target:e},handled:!1,type:"instrument"}}))}catch(e){}return t.apply(this,[n,tL(r,{mechanism:{data:{function:"addEventListener",handler:tr(r),target:e},handled:!1,type:"instrument"}}),i])}}),er(t,"removeEventListener",function(e){return function(t,n,r){try{let i=n&&n.__sentry_wrapped__;i&&e.call(this,t,i,r)}catch(e){}return e.call(this,t,n,r)}}))}
19function no(){"console"in A&&K.forEach(function(e){e in A.console&&er(A.console,e,function(t){return Y[e]=t,function(...t){tB("console",{args:t,level:e});let n=Y[e];n&&n.apply(A.console,t)}})})}function na(){if(!A.document)return;let e=tB.bind(null,"dom"),t=ns(e,!0);A.document.addEventListener("click",t,!1),A.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach(t=>{let n=A[t]&&A[t].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&(er(n,"addEventListener",function(t){return function(n,r,i){if("click"===n||"keypress"==n)try{let r=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},o=r[n]=r[n]||{refCount:0};if(!o.handler){let r=ns(e);o.handler=r,t.call(this,n,r,i)}o.refCount++}catch(e){}return t.call(this,n,r,i)}}),er(n,"removeEventListener",function(e){return function(t,n,r){if("click"===t||"keypress"==t)try{let n=this.__sentry_instrumentation_handlers__||{},i=n[t];i&&(i.refCount--,i.refCount<=0&&(e.call(this,t,i.handler,r),i.handler=void 0,delete n[t]),0===Object.keys(n).length&&delete this.__sentry_instrumentation_handlers__)}catch(e){}return e.call(this,t,n,r)}}))})}function ns(e,t=!1){return n=>{if(!n||n._sentryCaptured)return;let r=function(e){try{return e.target}catch(e){return null}}(n);if("keypress"===n.type&&(!r||!r.tagName||"INPUT"!==r.tagName&&"TEXTAREA"!==r.tagName&&!r.isContentEditable))return;ei(n,"_sentryCaptured",!0),r&&!r._sentryId&&ei(r,"_sentryId",ef());let i="keypress"===n.type?"input":n.type;!function(e){if(e.type!==a)return!1;try{if(!e.target||e.target._sentryId!==s)return!1}catch(e){}return!0}(n)&&(e({event:n,name:i,global:t}),a=n.type,s=r?r._sentryId:void 0),clearTimeout(o),o=A.setTimeout(()=>{s=void 0,a=void 0},1e3)}}let nu="__sentry_xhr_v3__";function nl(e){tU("xhr",e),t$("xhr",nc)}function nc(){if(!A.XMLHttpRequest)return;let e=XMLHttpRequest.prototype;er(e,"open",function(e){return function(...t){let n=Date.now(),r=M(t[0])?t[0].toUpperCase():void 0,i=function(e){if(M(e))return e;try{return e.toString()}catch(e){}}(t[1]);if(!r||!i)return e.apply(this,t);this[nu]={method:r,url:i,request_headers:{}},"POST"===r&&i.match(/sentry_key/)&&(this.__sentry_own_request__=!0);let o=()=>{let e=this[nu];if(e&&4===this.readyState){try{e.status_code=this.status}catch(e){}tB("xhr",{args:[r,i],endTimestamp:Date.now(),startTimestamp:n,xhr:this})}};return"onreadystatechange"in this&&"function"==typeof this.onreadystatechange?er(this,"onreadystatechange",function(e){return function(...t){return o(),e.apply(this,t)}}):this.addEventListener("readystatechange",o),er(this,"setRequestHeader",function(e){return function(...t){let[n,r]=t,i=this[nu];return i&&M(n)&&M(r)&&(i.request_headers[n.toLowerCase()]=r),e.apply(this,t)}}),e.apply(this,t)}}),er(e,"send",function(e){return function(...t){let n=this[nu];return n&&(void 0!==t[0]&&(n.body=t[0]),tB("xhr",{args:[n.method,n.url],startTimestamp:Date.now(),xhr:this})),e.apply(this,t)}})}function nf(){if(!("fetch"in A))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch(e){return!1}}function nd(e){return e&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function np(e){let t="fetch";tU(t,e),t$(t,nh)}function nh(){(function(){if("string"==typeof EdgeRuntime)return!0;if(!nf())return!1;if(nd(A.fetch))return!0;let e=!1,t=A.document;if(t&&"function"==typeof t.createElement)try{let n=t.createElement("iframe");
19n.hidden=!0,t.head.appendChild(n),n.contentWindow&&n.contentWindow.fetch&&(e=nd(n.contentWindow.fetch)),t.head.removeChild(n)}catch(e){G&&X.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",e)}return e})()&&er(A,"fetch",function(e){return function(...t){let{method:n,url:r}=function(e){if(0===e.length)return{method:"GET",url:""};if(2===e.length){let[t,n]=e;return{url:nm(t),method:ng(n,"method")?String(n.method).toUpperCase():"GET"}}let t=e[0];return{url:nm(t),method:ng(t,"method")?String(t.method).toUpperCase():"GET"}}(t),i={args:t,fetchData:{method:n,url:r},startTimestamp:Date.now()};return tB("fetch",{...i}),e.apply(A,t).then(e=>(tB("fetch",{...i,endTimestamp:Date.now(),response:e}),e),e=>{throw tB("fetch",{...i,endTimestamp:Date.now(),error:e}),e})}})}function ng(e,t){return!!e&&"object"==typeof e&&!!e[t]}function nm(e){return"string"==typeof e?e:e?ng(e,"url")?e.url:e.toString?e.toString():"":""}function nv(e){let t="history";tU(t,e),t$(t,ny)}function ny(){if(!function(){let e=A.chrome,t=e&&e.app&&e.app.runtime,n="history"in A&&!!A.history.pushState&&!!A.history.replaceState;return!t&&n}())return;let e=A.onpopstate;function t(e){return function(...t){let n=t.length>2?t[2]:void 0;if(n){let e=u,t=String(n);u=t,tB("history",{from:e,to:t})}return e.apply(this,t)}}A.onpopstate=function(...t){let n=A.location.href,r=u;if(u=n,tB("history",{from:r,to:n}),e)try{return e.apply(this,t)}catch(e){}},er(A.history,"pushState",t),er(A.history,"replaceState",t)}let nb=["fatal","error","warning","log","info","debug"];function n_(e){if(!e)return{};let t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};let n=t[6]||"",r=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],search:n,hash:r,relative:t[5]+n+r}}let nS="Breadcrumbs",nE=(e={})=>{let t={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e};return{name:nS,setupOnce(){},setup(e){var n;t.console&&function(e){let t="console";tU(t,e),t$(t,no)}(function(t){var n;if(tu()!==e)return;let r={category:"console",data:{arguments:t.args,logger:"console"},level:"warn"===(n=t.level)?"warning":nb.includes(n)?n:"log",message:et(t.args," ")};if("assert"===t.level){if(!1!==t.args[0])return;r.message=`Assertion failed: ${et(t.args.slice(1)," ")||"console.assert"}`,r.data.arguments=t.args.slice(1)}ts(r,{input:t.args,level:t.level})}),t.dom&&(tU("dom",(n=t.dom,function(t){let r,i;if(tu()!==e)return;let o="object"==typeof n?n.serializeAttribute:void 0,a="object"==typeof n&&"number"==typeof n.maxStringLength?n.maxStringLength:void 0;a&&a>1024&&(tQ&&X.warn(`\`dom.maxStringLength\` cannot exceed 1024, but a value of ${a} was configured. Sentry will use 1024 instead.`),a=1024),"string"==typeof o&&(o=[o]);try{let e=t.event,n=e&&e.target?e.target:e;r=Z(n,{keyAttrs:o,maxStringLength:a}),i=Q(n)}catch(e){r="<unknown>"}if(0===r.length)return;let s={category:`ui.${t.name}`,message:r};i&&(s.data={"ui.component_name":i}),ts(s,{event:t.event,name:t.name,global:t.global})})),t$("dom",na)),t.xhr&&nl(function(t){if(tu()!==e)return;let{startTimestamp:n,endTimestamp:r}=t,i=t.xhr[nu];if(!n||!r||!i)return;let{method:o,url:a,status_code:s,body:u}=i;ts({category:"xhr",data:{method:o,url:a,status_code:s},type:"http"},{xhr:t.xhr,input:u,startTimestamp:n,endTimestamp:r})}),t.fetch&&np(function(t){if(tu()!==e)return;let{startTimestamp:n,endTimestamp:r}=t;if(!(!r||t.fetchData.url.match(/sentry_key/)&&"POST"===t.fetchData.method)){if(t.error)ts({category:"fetch",data:t.fetchData,level:"error",type:"http"},{data:t.error,input:t.args,startTimestamp:n,endTimestamp:r});else{let e=t.response;ts({category:"fetch",data:{...t.fetchData,status_code:e&&e.status},type:"http"},{input:t.args,response:e,startTimestamp:n,endTimestamp:r})}}}),t.history&&nv(function(t){if(tu()!==e)return;let n=t.from,r=t.to,i=n_(A.location.href),o=n?n_(n):void 0,a=n_(r);o&&o.path||(o=i),i.protocol===a.protocol&&i.host===a.host&&(r=a.relative),i.protocol===o.protocol&&i.host===o.host&&(n=o.relative),ts({category:"navigation",data:{from:n,to:r}})}),t.sentry&&e.on&&e.on("beforeSendEvent",function(t){tu()===e&&ts({category:`sentry.${"transaction"===t.type?"transaction":"event"}`,event_id:t.event_id,level:t.level,message:ep(t)},{event:t})})}}},nO=ty(nS,nE),nw="LinkedErrors",nx=(e={})=>{let t=e.limit||5,n=e.key||"cause";return{name:nw,setupOnce(){},preprocessEvent(e,r,i){let o=i.getOptions();tA(tG,o.stackParser,o.maxValueLength,n,t,e,r)}}},nT=ty(nw,nx),nC="HttpContext",nP=()=>({name:nC,setupOnce(){},preprocessEvent(e){if(!A.navigator&&!A.location&&!A.document)return;let t=e.request&&e.request.url||A.location&&A.location.href,{referrer:n}=A.document||{},{userAgent:r}=A.navigator||{},i={...e.request&&e.request.headers,...n&&{Referer:n},...r&&{"User-Agent":r}},o={...e.request,...t&&{url:t},headers:i};e.request=o}}),nA=ty(nC,nP),nk="Dedupe",nj=()=>{let e;return{name:nk,setupOnce(){},processEvent(t){if(t.type)return t;try{var n;if((n=e)&&(function(e,t){let n=e.message,r=t.message;return!!((n||r)&&(!n||r)&&(n||!r)&&n===r&&nD(e,t)&&nR(e,t))}(t,n)||function(e,t){let n=nN(t),r=nN(e);return!!(n&&r&&n.type===r.type&&n.value===r.value&&nD(e,t)&&nR(e,t))}(t,n)))return tQ&&X.warn("Event dropped due to being a duplicate of previously captured event."),null}catch(e){}return e=t}}},nI=ty(nk,nj);function nR(e,t){let n=nL(e),r=nL(t);if(!n&&!r)return!0;
19if(n&&!r||!n&&r||r.length!==n.length)return!1;for(let e=0;e<r.length;e++){let t=r[e],i=n[e];if(t.filename!==i.filename||t.lineno!==i.lineno||t.colno!==i.colno||t.function!==i.function)return!1}return!0}function nD(e,t){let n=e.fingerprint,r=t.fingerprint;if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;try{return!(n.join("")!==r.join(""))}catch(e){return!1}}function nN(e){return e.exception&&e.exception.values&&e.exception.values[0]}function nL(e){let t=e.exception;if(t)try{return t.values[0].stacktrace.frames}catch(e){}}let nM={};A.Sentry&&A.Sentry.Integrations&&(nM=A.Sentry.Integrations);let nF={...nM,...w,...x},nU=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function n$(e,t=!1){let{host:n,path:r,pass:i,port:o,projectId:a,protocol:s,publicKey:u}=e;return`${s}://${u}${t&&i?`:${i}`:""}@${n}${o?`:${o}`:""}/${r?`${r}/`:r}${a}`}function nB(e){let t=nU.exec(e);if(!t){J(()=>{console.error(`Invalid Sentry Dsn: ${e}`)});return}let[n,r,i="",o,a="",s]=t.slice(1),u="",l=s,c=l.split("/");if(c.length>1&&(u=c.slice(0,-1).join("/"),l=c.pop()),l){let e=l.match(/^\d+/);e&&(l=e[0])}return nz({host:o,pass:i,path:u,projectId:l,port:a,protocol:n,publicKey:r})}function nz(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function nq(e,t=[]){return[e,t]}function nV(e,t){for(let n of e[1]){let e=n[0].type;if(t(n,e))return!0}return!1}function nH(e,t){return(t||new TextEncoder).encode(e)}let nZ={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",feedback:"feedback",span:"span",statsd:"unknown"};function nW(e){if(!e||!e.sdk)return;let{name:t,version:n}=e.sdk;return{name:t,version:n}}class nQ extends Error{constructor(e,t="warn"){super(e),this.message=e,this.name=new.target.prototype.constructor.name,Object.setPrototypeOf(this,new.target.prototype),this.logLevel=t}}let nG="Not capturing exception because it's already been captured.";class nK{constructor(e){if(this._options=e,this._integrations={},this._integrationsInitialized=!1,this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],e.dsn?this._dsn=function(e){let t="string"==typeof e?nB(e):nz(e);if(t&&function(e){if(!G)return!0;let{port:t,projectId:n,protocol:r}=e;return!["protocol","publicKey","host","projectId"].find(t=>!e[t]&&(X.error(`Invalid Sentry Dsn: ${t} missing`),!0))&&(n.match(/^\d+$/)?"http"===r||"https"===r?!(t&&isNaN(parseInt(t,10)))||(X.error(`Invalid Sentry Dsn: Invalid port ${t}`),!1):(X.error(`Invalid Sentry Dsn: Invalid protocol ${r}`),!1):(X.error(`Invalid Sentry Dsn: Invalid projectId ${n}`),!1))}(t))return t}(e.dsn):eS&&X.warn("No DSN provided, client will not send events."),this._dsn){let t=function(e,t={}){var n;let r="string"==typeof t?t:t.tunnel,i="string"!=typeof t&&t._metadata?t._metadata.sdk:void 0;return r||`${function(e){let t=e.protocol?`${e.protocol}:`:"",n=e.port?`:${e.port}`:"";return`${t}//${e.host}${n}${e.path?`/${e.path}`:""}/api/`}(e)}${e.projectId}/envelope/?${Object.keys(n={sentry_key:e.publicKey,sentry_version:"7",...i&&{sentry_client:`${i.name}/${i.version}`}}).map(e=>`${encodeURIComponent(e)}=${encodeURIComponent(n[e])}`).join("&")}`}(this._dsn,e);this._transport=e.transport({recordDroppedEvent:this.recordDroppedEvent.bind(this),...e.transportOptions,url:t})}}captureException(e,t,n){if(em(e)){eS&&X.log(nG);return}let r=t&&t.event_id;return this._process(this.eventFromException(e,t).then(e=>this._captureEvent(e,t,n)).then(e=>{r=e})),r}captureMessage(e,t,n,r){let i=n&&n.event_id,o=F(e)?e:String(e),a=U(e)?this.eventFromMessage(o,t,n):this.eventFromException(e,n);return this._process(a.then(e=>this._captureEvent(e,n,r)).then(e=>{i=e})),i}captureEvent(e,t,n){if(t&&t.originalException&&em(t.originalException)){eS&&X.log(nG);return}let r=t&&t.event_id,i=(e.sdkProcessingMetadata||{}).capturedSpanScope;return this._process(this._captureEvent(e,t,i||n).then(e=>{r=e})),r}captureSession(e){"string"!=typeof e.release?eS&&X.warn("Discarded session because of missing or non-string release"):(this.sendSession(e),eA(e,{init:!1}))}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}flush(e){let t=this._transport;return t?(this.metricsAggregator&&this.metricsAggregator.flush(),this._isCl
19ientDoneProcessing(e).then(n=>t.flush(e).then(e=>n&&e))):eE(!0)}close(e){return this.flush(e).then(e=>(this.getOptions().enabled=!1,this.metricsAggregator&&this.metricsAggregator.close(),e))}getEventProcessors(){return this._eventProcessors}addEventProcessor(e){this._eventProcessors.push(e)}setupIntegrations(e){(e&&!this._integrationsInitialized||this._isEnabled()&&!this._integrationsInitialized)&&this._setupIntegrations()}init(){this._isEnabled()&&this._setupIntegrations()}getIntegrationById(e){return this.getIntegrationByName(e)}getIntegrationByName(e){return this._integrations[e]}getIntegration(e){try{return this._integrations[e.id]||null}catch(t){return eS&&X.warn(`Cannot retrieve integration ${e.id} from the current Client`),null}}addIntegration(e){let t=this._integrations[e.name];tv(this,e,this._integrations),t||tm(this,[e])}sendEvent(e,t={}){this.emit("beforeSendEvent",e,t);let n=function(e,t,n,r){var i;let o=nW(n),a=e.type&&"replay_event"!==e.type?e.type:"event";(i=n&&n.sdk)&&(e.sdk=e.sdk||{},e.sdk.name=e.sdk.name||i.name,e.sdk.version=e.sdk.version||i.version,e.sdk.integrations=[...e.sdk.integrations||[],...i.integrations||[]],e.sdk.packages=[...e.sdk.packages||[],...i.packages||[]]);let s=function(e,t,n,r){let i=e.sdkProcessingMetadata&&e.sdkProcessingMetadata.dynamicSamplingContext;return{event_id:e.event_id,sent_at:new Date().toISOString(),...t&&{sdk:t},...!!n&&r&&{dsn:n$(r)},...i&&{trace:ec({...i})}}}(e,o,r,t);return delete e.sdkProcessingMetadata,nq(s,[[{type:a},e]])}(e,this._dsn,this._options._metadata,this._options.tunnel);for(let e of t.attachments||[])n=function(e,t){let[n,r]=e;return[n,[...r,t]]}(n,function(e,t){let n="string"==typeof e.data?nH(e.data,t):e.data;return[ec({type:"attachment",length:n.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType}),n]}(e,this._options.transportOptions&&this._options.transportOptions.textEncoder));let r=this._sendEnvelope(n);r&&r.then(t=>this.emit("afterSendEvent",e,t),null)}sendSession(e){let t=function(e,t,n,r){let i=nW(n);return nq({sent_at:new Date().toISOString(),...i&&{sdk:i},...!!r&&t&&{dsn:n$(t)}},["aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e.toJSON()]])}(e,this._dsn,this._options._metadata,this._options.tunnel);this._sendEnvelope(t)}recordDroppedEvent(e,t,n){if(this._options.sendClientReports){let n=`${e}:${t}`;eS&&X.log(`Adding outcome: "${n}"`),this._outcomes[n]=this._outcomes[n]+1||1}}captureAggregateMetrics(e){eS&&X.log(`Flushing aggregated metrics, number of metrics: ${e.length}`);let t=function(e,t,n,r){let i={sent_at:new Date().toISOString()};return n&&n.sdk&&(i.sdk={name:n.sdk.name,version:n.sdk.version}),r&&t&&(i.dsn=n$(t)),nq(i,[function(e){let t=function(e){let t="";for(let n of e){let e=Object.entries(n.tags),r=e.length>0?`|#${e.map(([e,t])=>`${e}:${t}`).join(",")}`:"";t+=`${n.name}@${n.unit}:${n.metric}|${n.metricType}${r}|T${n.timestamp}
20`}return t}(e);return[{type:"statsd",length:t.length},t]}(e)])}(e,this._dsn,this._options._metadata,this._options.tunnel);this._sendEnvelope(t)}on(e,t){this._hooks[e]||(this._hooks[e]=[]),this._hooks[e].push(t)}emit(e,...t){this._hooks[e]&&this._hooks[e].forEach(e=>e(...t))}_setupIntegrations(){let{integrations:e}=this._options;this._integrations=function(e,t){let n={};return t.forEach(t=>{t&&tv(e,t,n)}),n}(this,e),tm(this,e),this._integrationsInitialized=!0}_updateSessionFromEvent(e,t){let n=!1,r=!1,i=t.exception&&t.exception.values;if(i)for(let e of(r=!0,i)){let t=e.mechanism;if(t&&!1===t.handled){n=!0;break}}let o="ok"===e.status;(o&&0===e.errors||o&&n)&&(eA(e,{...n&&{status:"crashed"},errors:e.errors||Number(r||n)}),this.captureSession(e))}_isClientDoneProcessing(e){return new ew(t=>{let n=0,r=setInterval(()=>{0==this._numProcessing?(clearInterval(r),t(!0)):(n+=1,e&&n>=e&&(clearInterval(r),t(!1)))},1)})}_isEnabled(){return!1!==this.getOptions().enabled&&void 0!==this._transport}_prepareEvent(e,t,n,i=e6()){let o=this.getOptions(),a=Object.keys(this._integrations);return!t.integrations&&a.length>0&&(t.integrations=a),this.emit("preprocessEvent",e,t),(function(e,t,n,i,o,a){let{normalizeDepth:s=3,normalizeMaxBreadth:u=1e3}=e,l={...t,event_id:t.event_id||n.event_id||ef(),timestamp:t.timestamp||ey()},c=n.integrations||e.integrations.map(e=>e.name);(function(e,t){let{environment:n,release:r,dist:i,maxValueLength:o=250}=t;"environment"in e||(e.environment="environment"in t?n:j),void 0===e.release&&void 0!==r&&(e.release=r),void 0===e.dist&&void 0!==i&&(e.dist=i),e.message&&(e.message=ee(e.message,o));let a=e.exception&&e.exception.values&&e.exception.values[0];
20a&&a.value&&(a.value=ee(a.value,o));let s=e.request;s&&s.url&&(s.url=ee(s.url,o))})(l,e),c.length>0&&(l.sdk=l.sdk||{},l.sdk.integrations=[...l.sdk.integrations||[],...c]),void 0===t.type&&function(e,t){let n;let r=A._sentryDebugIds;if(!r)return;let i=to.get(t);i?n=i:(n=new Map,to.set(t,n));let o=Object.keys(r).reduce((e,i)=>{let o;let a=n.get(i);a?o=a:(o=t(i),n.set(i,o));for(let t=o.length-1;t>=0;t--){let n=o[t];if(n.filename){e[n.filename]=r[i];break}}return e},{});try{e.exception.values.forEach(e=>{e.stacktrace.frames.forEach(e=>{e.filename&&(e.debug_id=o[e.filename])})})}catch(e){}}(l,e.stackParser);let f=function(e,t){if(!t)return e;let n=e?e.clone():new eX;return n.update(t),n}(i,n.captureContext);n.mechanism&&eg(l,n.mechanism);let d=o&&o.getEventProcessors?o.getEventProcessors():[],p=(r||(r=new eX),r).getScopeData();a&&eY(p,a.getScopeData()),f&&eY(p,f.getScopeData());let h=[...n.attachments||[],...p.attachments];return h.length&&(n.attachments=h),eK(l,p),eC([...d,...ex(),...p.eventProcessors],l,n).then(e=>(e&&function(e){let t={};try{e.exception.values.forEach(e=>{e.stacktrace.frames.forEach(e=>{e.debug_id&&(e.abs_path?t[e.abs_path]=e.debug_id:e.filename&&(t[e.filename]=e.debug_id),delete e.debug_id)})})}catch(e){}if(0===Object.keys(t).length)return;e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[];let n=e.debug_meta.images;Object.keys(t).forEach(e=>{n.push({type:"sourcemap",code_file:e,debug_id:t[e]})})}(e),"number"==typeof s&&s>0)?function(e,t,n){if(!e)return null;let r={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map(e=>({...e,...e.data&&{data:ti(e.data,t,n)}}))},...e.user&&{user:ti(e.user,t,n)},...e.contexts&&{contexts:ti(e.contexts,t,n)},...e.extra&&{extra:ti(e.extra,t,n)}};return e.contexts&&e.contexts.trace&&r.contexts&&(r.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(r.contexts.trace.data=ti(e.contexts.trace.data,t,n))),e.spans&&(r.spans=e.spans.map(e=>{let r=eZ(e).data;return r&&(e.data=ti(r,t,n)),e})),r}(e,s,u):e)})(o,e,t,n,this,i).then(e=>{if(null===e)return e;let t={...i.getPropagationContext(),...n?n.getPropagationContext():void 0};if(!(e.contexts&&e.contexts.trace)&&t){let{traceId:r,spanId:i,parentSpanId:o,dsc:a}=t;e.contexts={trace:{trace_id:r,span_id:i,parent_span_id:o},...e.contexts};let s=a||eQ(r,this,n);e.sdkProcessingMetadata={dynamicSamplingContext:s,...e.sdkProcessingMetadata}}return e})}_captureEvent(e,t={},n){return this._processEvent(e,t,n).then(e=>e.event_id,e=>{eS&&("log"===e.logLevel?X.log(e.message):X.warn(e))})}_processEvent(e,t,n){let r=this.getOptions(),{sampleRate:i}=r,o=nJ(e),a=nY(e),s=e.type||"error",u=`before send for type \`${s}\``;if(a&&"number"==typeof i&&Math.random()>i)return this.recordDroppedEvent("sample_rate","error",e),eO(new nQ(`Discarding event because it's not included in the random sample (sampling rate = ${i})`,"log"));let l="replay_event"===s?"replay":s,c=(e.sdkProcessingMetadata||{}).capturedSpanIsolationScope;return this._prepareEvent(e,t,n,c).then(n=>{if(null===n)throw this.recordDroppedEvent("event_processor",l,e),new nQ("An event processor returned `null`, will not send event.","log");return t.data&&!0===t.data.__sentry__?n:function(e,t){let n=`${t} must return \`null\` or a valid event.`;if(z(e))return e.then(e=>{if(!$(e)&&null!==e)throw new nQ(n);return e},e=>{throw new nQ(`${t} rejected with ${e}`)});if(!$(e)&&null!==e)throw new nQ(n);return e}(function(e,t,n){let{beforeSend:r,beforeSendTransaction:i}=e;return nY(t)&&r?r(t,n):nJ(t)&&i?i(t,n):t}(r,n,t),u)}).then(r=>{if(null===r)throw this.recordDroppedEvent("before_send",l,e),new nQ(`${u} returned \`null\`, will not send event.`,"log");let i=n&&n.getSession();!o&&i&&this._updateSessionFromEvent(i,r);let a=r.transaction_info;return o&&a&&r.transaction!==e.transaction&&(r.transaction_info={...a,source:"custom"}),this.sendEvent(r,t),r}).then(null,e=>{if(e instanceof nQ)throw e;throw this.captureException(e,{data:{__sentry__:!0},originalException:e}),new nQ(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.
21Reason: ${e}`)})}_process(e){this._numProcessing++,e.then(e=>(this._numProcessing--,e),e=>(this._numProcessing--,e))}
21_sendEnvelope(e){if(this.emit("beforeEnvelope",e),this._isEnabled()&&this._transport)return this._transport.send(e).then(null,e=>{eS&&X.error("Error while sending event:",e)});eS&&X.error("Transport disabled")}_clearOutcomes(){let e=this._outcomes;return this._outcomes={},Object.keys(e).map(t=>{let[n,r]=t.split(":");return{reason:n,category:r,quantity:e[t]}})}}function nY(e){return void 0===e.type}function nJ(e){return"transaction"===e.type}class nX extends nK{constructor(e){C(e,"browser",["browser"],A.SENTRY_SDK_SOURCE||"npm"),super(e),e.sendClientReports&&A.document&&A.document.addEventListener("visibilitychange",()=>{"hidden"===A.document.visibilityState&&this._flushOutcomes()})}eventFromException(e,t){return function(e,t,n,r){let i=tX(e,t,n&&n.syntheticException||void 0,r);return eg(i),i.level="error",n&&n.event_id&&(i.event_id=n.event_id),eE(i)}(this._options.stackParser,e,t,this._options.attachStacktrace)}eventFromMessage(e,t="info",n){return function(e,t,n="info",r,i){let o=t0(e,t,r&&r.syntheticException||void 0,i);return o.level=n,r&&r.event_id&&(o.event_id=r.event_id),eE(o)}(this._options.stackParser,e,t,n,this._options.attachStacktrace)}captureUserFeedback(e){if(!this._isEnabled()){tQ&&X.warn("SDK not enabled, will not capture user feedback.");return}let t=function(e,{metadata:t,tunnel:n,dsn:r}){return nq({event_id:e.event_id,sent_at:new Date().toISOString(),...t&&t.sdk&&{sdk:{name:t.sdk.name,version:t.sdk.version}},...!!n&&!!r&&{dsn:n$(r)}},[[{type:"user_report"},e]])}(e,{metadata:this.getSdkMetadata(),dsn:this.getDsn(),tunnel:this.getOptions().tunnel});this._sendEnvelope(t)}_prepareEvent(e,t,n){return e.platform=e.platform||"javascript",super._prepareEvent(e,t,n)}_flushOutcomes(){var e;let t=this._clearOutcomes();if(0===t.length){tQ&&X.log("No outcomes to send");return}if(!this._dsn){tQ&&X.log("No dsn provided, will not send outcomes");return}tQ&&X.log("Sending outcomes:",t);let n=nq((e=this._options.tunnel&&n$(this._dsn))?{dsn:e}:{},[[{type:"client_report"},{timestamp:ey(),discarded_events:t}]]);this._sendEnvelope(n)}}function n0(e,t,n,r){let i={filename:e,function:t,in_app:!0};return void 0!==n&&(i.lineno=n),void 0!==r&&(i.colno=r),i}let n1=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,n2=/\((\S*)(?::(\d+))(?::(\d+))\)/,n4=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,n3=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,n5=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:[-a-z]+):.*?):(\d+)(?::(\d+))?\)?\s*$/i,n6=tt(...[[30,e=>{let t=n1.exec(e);if(t){if(t[2]&&0===t[2].indexOf("eval")){let e=n2.exec(t[2]);e&&(t[2]=e[1],t[3]=e[2],t[4]=e[3])}let[e,n]=n7(t[1]||"?",t[2]);return n0(n,e,t[3]?+t[3]:void 0,t[4]?+t[4]:void 0)}}],[50,e=>{let t=n4.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){let e=n3.exec(t[3]);e&&(t[1]=t[1]||"eval",t[3]=e[1],t[4]=e[2],t[5]="")}let e=t[3],n=t[1]||"?";return[n,e]=n7(n,e),n0(e,n,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}}],[40,e=>{let t=n5.exec(e);return t?n0(t[2],t[1]||"?",+t[3],t[4]?+t[4]:void 0):void 0}]]),n7=(e,t)=>{let n=-1!==e.indexOf("safari-extension"),r=-1!==e.indexOf("safari-web-extension");return n||r?[-1!==e.indexOf("@")?e.split("@")[0]:"?",n?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]};function n8(e,t,n=function(e){let t=[];function n(e){return t.splice(t.indexOf(e),1)[0]}return{$:t,add:function(r){if(!(void 0===e||t.length<e))return eO(new nQ("Not adding Promise because buffer limit was reached."));let i=r();return -1===t.indexOf(i)&&t.push(i),i.then(()=>n(i)).then(null,()=>n(i).then(null,()=>{})),i},drain:function(e){return new ew((n,r)=>{let i=t.length;if(!i)return n(!0);let o=setTimeout(()=>{e&&e>0&&n(!1)},e);t.forEach(e=>{eE(e).then(()=>{--i||(clearTimeout(o),n(!0))},r)})})}}}(e.bufferSize||30)){let r={};function i(i){let o=[];if(nV(i,(t,n)=>{let i=nZ[n];if(function(e,t,n=Date.now()){return(e[t]||e.all||0)>n}(r,i)){let r=n9(t,n);e.recordDroppedEvent("ratelimit_backoff",i,r)}else o.push(t)}),0===o.length)return eE();let a=nq(i[0],o),s=t=>{nV(a,(n,r)=>{let i=n9(n,r);e.recordDroppedEvent(t,nZ[r],i)})};return n.add(()=>t({body:function(e,t){let[n,r]=e,i=JSON.stringify(n);function o(e){"string"==typeof i?i="string"==typeof e?i+e:[nH(i,t),e]:i.push("string"==typeof e?nH(e,t):e)}for(let e of r){let[t,n]=e;if(o(`
22${JSON.stringify(t)}
23`),"string"==typeof n||n instanceof Uint8Array)o(n);else{let e;try{e=JSON.stringify(n)}catch(t){e=JSON.stringify(ti(n))}o(e)}}return"string"==typeof i?i:function(e){let t=e.reduce((e,t)=>
23e+t.length,0),n=new Uint8Array(t),r=0;for(let t of e)n.set(t,r),r+=t.length;return n}(i)}(a,e.textEncoder)}).then(e=>(void 0!==e.statusCode&&(e.statusCode<200||e.statusCode>=300)&&eS&&X.warn(`Sentry responded with status code ${e.statusCode} to sent event.`),r=function(e,{statusCode:t,headers:n},r=Date.now()){let i={...e},o=n&&n["x-sentry-rate-limits"],a=n&&n["retry-after"];if(o)for(let e of o.trim().split(",")){let[t,n]=e.split(":",2),o=parseInt(t,10),a=(isNaN(o)?60:o)*1e3;if(n)for(let e of n.split(";"))i[e]=r+a;else i.all=r+a}else a?i.all=r+function(e,t=Date.now()){let n=parseInt(`${e}`,10);if(!isNaN(n))return 1e3*n;let r=Date.parse(`${e}`);return isNaN(r)?6e4:r-t}(a,r):429===t&&(i.all=r+6e4);return i}(r,e),e),e=>{throw s("network_error"),e})).then(e=>e,e=>{if(e instanceof nQ)return eS&&X.error("Skipped sending event because buffer is full."),s("queue_overflow"),eE();throw e})}return i.__sentry__baseTransport__=!0,{send:i,flush:e=>n.drain(e)}}function n9(e,t){if("event"===t||"transaction"===t)return Array.isArray(e)?e[1]:void 0}function re(e,t=function(){if(v)return v;if(nd(A.fetch))return v=A.fetch.bind(A);let e=A.document,t=A.fetch;if(e&&"function"==typeof e.createElement)try{let n=e.createElement("iframe");n.hidden=!0,e.head.appendChild(n);let r=n.contentWindow;r&&r.fetch&&(t=r.fetch),e.head.removeChild(n)}catch(e){tQ&&X.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",e)}return v=t.bind(A)}()){let n=0,r=0;return n8(e,function(i){let o=i.body.length;n+=o,r++;let a={body:i.body,method:"POST",referrerPolicy:"origin",headers:e.headers,keepalive:n<=6e4&&r<15,...e.fetchOptions};try{return t(e.url,a).then(e=>(n-=o,r--,{statusCode:e.status,headers:{"x-sentry-rate-limits":e.headers.get("X-Sentry-Rate-Limits"),"retry-after":e.headers.get("Retry-After")}}))}catch(e){return v=void 0,n-=o,r--,eO(e)}})}function rt(e){return n8(e,function(t){return new ew((n,r)=>{let i=new XMLHttpRequest;for(let t in i.onerror=r,i.onreadystatechange=()=>{4===i.readyState&&n({statusCode:i.status,headers:{"x-sentry-rate-limits":i.getResponseHeader("X-Sentry-Rate-Limits"),"retry-after":i.getResponseHeader("Retry-After")}})},i.open("POST",e.url),e.headers)Object.prototype.hasOwnProperty.call(e.headers,t)&&i.setRequestHeader(t,e.headers[t]);i.send(t.body)})})}let rn=[tT(),tS(),t9(),nE(),t2(),nx(),nj(),nP()];var rr=n(34155);function ri(e){let t;let n=e[0],r=1;for(;r<e.length;){let i=e[r],o=e[r+1];if(r+=2,("optionalAccess"===i||"optionalCall"===i)&&null==n)return;"access"===i||"optionalAccess"===i?(t=n,n=o(n)):("call"===i||"optionalCall"===i)&&(n=o((...e)=>n.call(t,...e)),t=void 0)}return n}function ro(e){let t=l?l.get(e):void 0;if(!t)return;let n={};for(let[,[e,r]]of t)n[e]||(n[e]=[]),n[e].push(ec(r));return n}let ra="sentry.source",rs="sentry.sample_rate",ru="sentry.op",rl="sentry.origin";function rc(e,t){e.setTag("http.status_code",String(t)),e.setData("http.response.status_code",t);let n=function(e){if(e<400&&e>=100)return"ok";if(e>=400&&e<500)switch(e){case 401:return"unauthenticated";case 403:return"permission_denied";case 404:return"not_found";case 409:return"already_exists";case 413:return"failed_precondition";case 429:return"resource_exhausted";default:return"invalid_argument"}if(e>=500&&e<600)switch(e){case 501:return"unimplemented";case 503:return"unavailable";case 504:return"deadline_exceeded";default:return"internal_error"}return"unknown_error"}(t);"unknown_error"!==n&&e.setStatus(n)}(S=O||(O={})).Ok="ok",S.DeadlineExceeded="deadline_exceeded",S.Unauthenticated="unauthenticated",S.PermissionDenied="permission_denied",S.NotFound="not_found",S.ResourceExhausted="resource_exhausted",S.InvalidArgument="invalid_argument",S.Unimplemented="unimplemented",S.Unavailable="unavailable",S.InternalError="internal_error",S.UnknownError="unknown_error",S.Cancelled="cancelled",S.AlreadyExists="already_exists",S.FailedPrecondition="failed_precondition",S.Aborted="aborted",S.OutOfRange="out_of_range",S.DataLoss="data_loss";class rf{constructor(e=1e3){this._maxlen=e,this.spans=[]}add(e){this.spans.length>this._maxlen?e.spanRecorder=void 0:this.spans.push(e)}}class rd{constructor(e={}){this._traceId=e.traceId||ef(),this._spanId=e.spanId||ef().substring(16),this._startTime=e.startTimestamp||eb(),this.tags=e.tags?{...e.tags}:{},this.data=e.data?{...e.data}:{},this.instrumenter=e.instrumenter||"sentry",this._attributes={},this.setAttributes({[rl]:e.origin||"manual",[ru]:e.op,...e.attributes}),this._name=e.name||e.description,e.parentSpanId&&(this._parentSpanId=e.parentSpanId),"sampled"in e&&(this._sampled=e.sampled),e.status&&(this._status=e.status),e.endTimestamp&&(this._endTime=e.endTimestamp),e.exclusiveTime&&(this._exclusiveTime=e.exclusiveTime),this._measurements=e.measurements?{...e.measurements}:{}}get name(){return this._name||""}set name(e){this.updateName(e)}get description(){return this._name}set description(e){this._name=e}get traceId(){return this._traceId}set traceId(e){this._traceId=e}get spanId(){return this._spanId}set spanId(e){this._spanId=e}set parentSpanId(e){this._parentSpanId=e}get parentSpanId(){return this._parentSpanId}get sampled(){return this._sampled}set sampled(e){this._sampled=e}get attributes(){return this._attributes}set attributes(e){this._attributes=e}get startTimestamp(){return this._startTime}set startTimestamp(e){this._startTime=e}get endTimestamp(){return this._endTime}set endTimestamp(e){this._endTime=e}get status(){return this._status}set status(e){this._status=e}get op(){return this._attributes[ru]}set op(e){this.setAttribute(ru,e)}get origin(){return this._attributes[rl]}set origin(e){this.setAttribute(rl,e)}spanContext(){let{_spanId:e,_traceId:t,_sampled:n}=this;return{spanId:e,traceId:t,traceFlags:n?1:0}}startChild(e){let t=new rd({...e,parentSpanId:this._spanId,sampled:this._sampled,traceId:this._traceId});t.spanRecorder=this.spanRecorder,t.spanRecorder&&t.spanRecorder.add(t);let n=ej(this);if(t.transaction=n,eS&&n){let r=e&&e.op||"< unknown op >",i=eZ(t).description||"< unknown name >",o=n.spanContext().spanId,a=`[Tracing] Starting '${r}' span on transaction '${i}' (${o}).`;X.log(a),this._logMessage=a}return t}setTag(e,t){return this.tags={...this.tags,[e]:t},this}setData(e,t){return this.data={...this.data,[e]:t},this}setAttribute(e,t){void 0===t?delete this._attributes[e]:this._attributes[e]=t}setAttributes(e){Object.keys(e).forEach(t=>this.setAttribute(t,e[t]))}setStatus(e){return this._status=e,this}setHttpStatus(e){return rc(this,e),this}setName(e){this.updateName(e)}updateName(e){return this._name=e,this}isSuccess(){return"ok"===this._status}finish(e){return this.end(e)}end(e){if(this._endTime)return;let t=ej(this);if(eS&&t&&t.spanContext().spanId!==this._spanId){let e=this._logMessage;e&&X.log(e.replace("Starting","Finishing"))}this._endTime=eV(e)}toTraceparent(){return eq(this)}toContext(){return ec({data:this._getData(),description:this._name,endTimestamp:this._endTime,op:this.op,parentSpanId:this._parentSpanId,sampled:this._sampled,spanId:this._spanId,startTimestamp:this._startTime,status:this._status,tags:this.tags,traceId:this._traceId})}updateWithContext(e){return this.data=e.data||{},this._name=e.name||e.description,this._endTime=e.endTimestamp,this.op=e.op,this._parentSpanId=e.parentSpanId,this._sampled=e.sampled,this._spanId=e.spanId||this._spanId,this._startTime=e.startTimestamp||this._startTime,this._status=e.status,this.tags=e.tags||{},this._traceId=e.traceId||this._traceId,this}getTraceContext(){return ez(this)}getSpanJSON(){return ec({data:this._getData(),description:this._name,op:this._attributes[ru],parent_span_id:this._parentSpanId,span_id:this._spanId,start_timestamp:this._startTime,status:this._status,tags:Object.keys(this.tags).length>0?this.tags:void 0,timestamp:this._endTime,trace_id:this._traceId,origin:this._attributes[rl],_metrics_summary:ro(this),profile_id:this._attributes.profile_id,exclusive_time:this._exclusiveTime,measurements:Object.keys(this._measurements).length>0?this._measurements:void 0})}isRecording(){return!this._endTime&&!!this._sampled}
23toJSON(){return this.getSpanJSON()}_getData(){let{data:e,_attributes:t}=this,n=Object.keys(e).length>0,r=Object.keys(t).length>0;return n||r?n&&r?{...e,...t}:n?e:t:void 0}}function rp(e){if(!th())return;let t=function(e){if(e.startTime){let t={...e};return t.startTimestamp=eV(e.startTime),delete t.startTime,t}return e}(e),n=e5(),r=e.scope?e.scope.getSpan():rh();if(e.onlyIfParent&&!r)return;let i=(e.scope||tl()).clone();return function(e,{parentSpan:t,spanContext:n,forceTransaction:r,scope:i}){var o;let a;if(!th())return;let s=e6();if(t&&!r)a=t.startChild(n);else if(t){let r=eG(t),{traceId:i,spanId:o}=t.spanContext(),s=eW(t);a=e.startTransaction({traceId:i,parentSpanId:o,parentSampled:s,...n,metadata:{dynamicSamplingContext:r,...n.metadata}})}else{let{traceId:t,dsc:r,parentSpanId:o,sampled:u}={...s.getPropagationContext(),...i.getPropagationContext()};a=e.startTransaction({traceId:t,parentSpanId:o,parentSampled:u,...n,metadata:{dynamicSamplingContext:r,...n.metadata}})}return i.setSpan(a),(o=a)&&(ei(o,rm,s),ei(o,rg,i)),a}(n,{parentSpan:r,spanContext:t,forceTransaction:e.forceTransaction,scope:i})}function rh(){return tl().getSpan()}let rg="_sentryScope",rm="_sentryIsolationScope";class rv extends rd{constructor(e,t){super(e),this._contexts={},this._hub=t||e5(),this._name=e.name||"",this._metadata={...e.metadata},this._trimEnd=e.trimEnd,this.transaction=this;let n=this._metadata.dynamicSamplingContext;n&&(this._frozenDynamicSamplingContext={...n})}get name(){return this._name}set name(e){this.setName(e)}get metadata(){return{source:"custom",spanMetadata:{},...this._metadata,...this._attributes[ra]&&{source:this._attributes[ra]},...this._attributes[rs]&&{sampleRate:this._attributes[rs]}}}set metadata(e){this._metadata=e}setName(e,t="custom"){this._name=e,this.setAttribute(ra,t)}updateName(e){return this._name=e,this}initSpanRecorder(e=1e3){this.spanRecorder||(this.spanRecorder=new rf(e)),this.spanRecorder.add(this)}setContext(e,t){null===t?delete this._contexts[e]:this._contexts[e]=t}setMeasurement(e,t,n=""){this._measurements[e]={value:t,unit:n}}setMetadata(e){this._metadata={...this._metadata,...e}}end(e){let t=eV(e),n=this._finishTransaction(t);if(n)return this._hub.captureEvent(n)}toContext(){return ec({...super.toContext(),name:this._name,trimEnd:this._trimEnd})}updateWithContext(e){return super.updateWithContext(e),this._name=e.name||"",this._trimEnd=e.trimEnd,this}getDynamicSamplingContext(){return eG(this)}setHub(e){this._hub=e}getProfileId(){if(void 0!==this._contexts&&void 0!==this._contexts.profile)return this._contexts.profile.profile_id}_finishTransaction(e){if(void 0!==this._endTime)return;this._name||(eS&&X.warn("Transaction has no name, falling back to `<unlabeled transaction>`."),this._name="<unlabeled transaction>"),super.end(e);let t=this._hub.getClient();if(t&&t.emit&&t.emit("finishTransaction",this),!0!==this._sampled){eS&&X.log("[Tracing] Discarding transaction because its trace was not chosen to be sampled."),t&&t.recordDroppedEvent("sample_rate","transaction");return}let n=this.spanRecorder?this.spanRecorder.spans.filter(e=>e!==this&&eZ(e).timestamp):[];if(this._trimEnd&&n.length>0){let e=n.map(e=>eZ(e).timestamp).filter(Boolean);this._endTime=e.reduce((e,t)=>e>t?e:t)}let{scope:r,isolationScope:i}={scope:this[rg],isolationScope:this[rm]},{metadata:o}=this,{source:a}=o,s={contexts:{...this._contexts,trace:ez(this)},spans:n,start_timestamp:this._startTime,tags:this.tags,timestamp:this._endTime,transaction:this._name,type:"transaction",sdkProcessingMetadata:{...o,capturedSpanScope:r,capturedSpanIsolationScope:i,...ec({dynamicSamplingContext:eG(this)})},_metrics_summary:ro(this),...a&&{transaction_info:{source:a}}};return Object.keys(this._measurements).length>0&&(eS&&X.log("[Measurements] Adding measurements to transaction",JSON.stringify(this._measurements,void 0,2)),s.measurements=this._measurements),eS&&X.log(`[Tracing] Finishing ${this.op} transaction: ${this._name}.`),s}}let ry={idleTimeout:1e3,finalTimeout:3e4,heartbeatInterval:5e3};class rb extends rf{constructor(e,t,n,r){super(r),this._pushActivity=e,this._popActivity=t,this.transactionSpanId=n}add(e){if(e.spanContext().spanId!==this.transactionSpanId){let t=e.end;e.end=(...n)=>(this._popActivity(e.spanContext().spanId),t.apply(e,n)),void 0===eZ(e).timestamp&&this._pushActivity(e.spanContext().spanId)}super.add(e)}}class r_ extends rv{constructor(e,t,n=ry.idleTimeout,r=ry.finalTimeout,i=ry.heartbeatInterval,o=!1,a=!1){super(e,t),this._idleHub=t,this._idleTimeout=n,this._finalTimeout=r,this._heartbeatInterval=i,this._onScope=o,this.activities={},this._heartbeatCounter=0,this._finished=!1,this._idleTimeoutCanceledPermanently=!1,this._beforeFinishCallbacks=[],this._finishReason="externalFinish",this._autoFinishAllowed=!a,o&&(eS&&X.log(`Setting idle transaction on scope. Span ID: ${this.spanContext().spanId}`),t.getScope().setSpan(this)),a||this._restartIdleTimeout(),setTimeout(()=>{this._finished||(this.setStatus("deadline_exceeded"),this._finishReason="finalTimeout",this.end())},this._finalTimeout)}end(e){let t=eV(e);if(this._finished=!0,this.activities={},"ui.action.click"===this.op&&this.setAttribute("finishReason",this._finishReason),this.spanRecorder){for(let e of(eS&&X.log("[Tracing] finishing IdleTransaction",new Date(1e3*t).toISOString(),this.op),this._beforeFinishCallbacks))e(this,t);this.spanRecorder.spans=this.spanRecorder.spans.filter(e=>{if(e.spanContext().spanId===this.spanContext().spanId)return!0;!eZ(e).timestamp&&(e.setStatus("cancelled"),e.end(t),eS&&X.log("[Tracing] cancelling span since transaction ended early",JSON.stringify(e,void 0,2)));let{start_timestamp:n,timestamp:r}=eZ(e),i=n&&n<t,o=(this._finalTimeout+this._idleTimeout)/1e3,a=r&&n&&r-n<o;if(eS){let t=JSON.stringify(e,void 0,2);i?a||X.log("[Tracing] discarding Span since it finished after Transaction final timeout",t):X.log("[Tracing] discarding Span since it happened after Transaction was finished",t)}return i&&a}),eS&&X.log("[Tracing] flushing IdleTransaction")}else eS&&X.log("[Tracing] No active IdleTransaction");if(this._onScope){let e=this._idleHub.getScope();e.getTransaction()===this&&e.setSpan(void 0)}return super.end(e)}registerBeforeFinishCallback(e){this._beforeFinishCallbacks.push(e)}initSpanRecorder(e){this.spanRecorder||(this.spanRecorder=new rb(e=>{this._finished||this._pushActivity(e)},e=>{this._finished||this._popActivity(e)},this.spanContext().spanId,e),eS&&X.log("Starting heartbeat"),this._pingHeartbeat()),this.spanRecorder.add(this)}cancelIdleTimeout(e,{restartOnChildSpanChange:t}={restartOnChildSpanChange:!0}){this._idleTimeoutCanceledPermanently=!1===t,this._idleTimeoutID&&(clearTimeout(this._idleTimeoutID),this._idleTimeoutID=void 0,0===Object.keys(this.activities).length&&this._idleTimeoutCanceledPermanently&&(this._finishReason="cancelled",this.end(e)))}setFinishReason(e){this._finishReason=e}sendAutoFinishSignal(){this._autoFinishAllowed||(eS&&X.log("[Tracing] Received finish signal for idle transaction."),this._restartIdleTimeout(),this._autoFinishAllowed=!0)}_restartIdleTimeout(e){this.cancelIdleTimeout(),this._idleTimeoutID=setTimeout(()=>{this._finished||0!==Object.keys(this.activities).length||(this._finishReason="idleTimeout",this.end(e))},this._idleTimeout)}
23_pushActivity(e){this.cancelIdleTimeout(void 0,{restartOnChildSpanChange:!this._idleTimeoutCanceledPermanently}),eS&&X.log(`[Tracing] pushActivity: ${e}`),this.activities[e]=!0,eS&&X.log("[Tracing] new activities count",Object.keys(this.activities).length)}_popActivity(e){if(this.activities[e]&&(eS&&X.log(`[Tracing] popActivity ${e}`),delete this.activities[e],eS&&X.log("[Tracing] new activities count",Object.keys(this.activities).length)),0===Object.keys(this.activities).length){let e=eb();this._idleTimeoutCanceledPermanently?this._autoFinishAllowed&&(this._finishReason="cancelled",this.end(e)):this._restartIdleTimeout(e+this._idleTimeout/1e3)}}_beat(){if(this._finished)return;let e=Object.keys(this.activities).join("");e===this._prevHeartbeatString?this._heartbeatCounter++:this._heartbeatCounter=1,this._prevHeartbeatString=e,this._heartbeatCounter>=3?this._autoFinishAllowed&&(eS&&X.log("[Tracing] Transaction finished because of no change for 3 heart beats"),this.setStatus("deadline_exceeded"),this._finishReason="heartbeatFailed",this.end()):this._pingHeartbeat()}_pingHeartbeat(){eS&&X.log(`pinging Heartbeat -> current counter: ${this._heartbeatCounter}`),setTimeout(()=>{this._beat()},this._heartbeatInterval)}}function rS(e){return(e||e5()).getScope().getTransaction()}let rE=!1;function rO(){let e=rS();if(e){let t="internal_error";eS&&X.log(`[Tracing] Transaction: ${t} -> Global error occured`),e.setStatus(t)}}function rw(e,t,n){let r;return th(t)?void 0!==e.sampled?e.setAttribute(rs,Number(e.sampled)):("function"==typeof t.tracesSampler?(r=t.tracesSampler(n),e.setAttribute(rs,Number(r))):void 0!==n.parentSampled?r=n.parentSampled:void 0!==t.tracesSampleRate?(r=t.tracesSampleRate,e.setAttribute(rs,Number(r))):(r=1,e.setAttribute(rs,r)),rx(r))?r?(e.sampled=Math.random()<r,e.sampled)?eS&&X.log(`[Tracing] starting ${e.op} transaction - ${eZ(e).description}`):eS&&X.log(`[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = ${Number(r)})`):(eS&&X.log(`[Tracing] Discarding transaction because ${"function"==typeof t.tracesSampler?"tracesSampler returned 0 or false":"a negative sampling decision was inherited or tracesSampleRate is set to 0"}`),e.sampled=!1):(eS&&X.warn("[Tracing] Discarding transaction because of invalid sample rate."),e.sampled=!1):e.sampled=!1,e}function rx(e){return q(e)||!("number"==typeof e||"boolean"==typeof e)?(eS&&X.warn(`[Tracing] Given sample rate is invalid. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(e)} of type ${JSON.stringify(typeof e)}.`),!1):!(e<0)&&!(e>1)||(eS&&X.warn(`[Tracing] Given sample rate is invalid. Sample rate must be between 0 and 1. Got ${e}.`),!1)}function rT(){let e=this.getScope().getSpan();return e?{"sentry-trace":eq(e)}:{}}function rC(e,t){let n=this.getClient(),r=n&&n.getOptions()||{},i=r.instrumenter||"sentry",o=e.instrumenter||"sentry";i!==o&&(eS&&X.error(`A transaction was started with instrumenter=\`${o}\`, but the SDK is configured with the \`${i}\` instrumenter.
24The transaction will not be sampled. Please use the ${i} instrumentation to start transactions.`),e.sampled=!1);let a=new rv(e,this);return(a=rw(a,r,{name:e.name,parentSampled:e.parentSampled,transactionContext:e,attributes:{...e.data,...e.attributes},...t})).isRecording()&&a.initSpanRecorder(r._experiments&&r._experiments.maxSpans),n&&n.emit&&n.emit("startTransaction",a),a}function rP(e,t,n,r,i,o,a,s=!1){let u=e.getClient(),l=u&&u.getOptions()||{},c=new r_(t,e,n,r,a,i,s);return(c=rw(c,l,{name:t.name,parentSampled:t.parentSampled,transactionContext:t,attributes:{...t.data,...t.attributes},...o})).isRecording()&&c.initSpanRecorder(l._experiments&&l._experiments.maxSpans),u&&u.emit&&u.emit("startTransaction",c),c}function rA(){let e=e4();e.__SENTRY__&&(e.__SENTRY__.extensions=e.__SENTRY__.extensions||{},e.__SENTRY__.extensions.startTransaction||(e.__SENTRY__.extensions.startTransaction=rC),e.__SENTRY__.extensions.traceHeaders||(e.__SENTRY__.extensions.traceHeaders=rT),rE||(rE=!0,tq(rO),tZ(rO)))}rO.tag="sentry_tracingErrorCallback";let rk="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__;function rj(){A&&A.document?A.document.addEventListener("visibilitychange",()=>{let e=rS();if(A.document.hidden&&e){let t="cancelled",{op:n,status:r}=eZ(e);rk&&X.log(`[Tracing] Transaction: ${t} -> since tab moved to the background, op: ${n}`),r||e.setStatus(t),e.setTag("visibilitychange","document.hidden"),e.end()}}):rk&&X.warn("[Tracing] Could not set up background tab detection due to lack of global document")}let rI=(e,t,n)=>{let r,i;return o=>{t.value>=0&&(o||n)&&((i=t.value-(r||0))||void 0===r)&&(r=t.value,t.delta=i,e(t))}},rR=()=>`v3-${Date.now()}-${Math.floor(Math.random()*(9e12-1))+1e12}`,rD=()=>{let e=A.performance.timing,t=A.performance.navigation.type,n={entryType:"navigation",startTime:0,type:2==t?"back_forward":1===t?"reload":"navigate"};for(let t in e)"navigationStart"!==t&&"toJSON"!==t&&(n[t]=Math.max(e[t]-e.navigationStart,0));return n},rN=()=>A.__WEB_VITALS_POLYFILL__?A.performance&&(performance.getEntriesByType&&performance.getEntriesByType("navigation")[0]||rD()):A.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0],rL=()=>{let e=rN();return e&&e.activationStart||0},rM=(e,t)=>{let n=rN(),r="navigate";return n&&(r=A.document.prerendering||rL()>0?"prerender":n.type.replace(/_/g,"-")),{name:e,value:void 0===t?-1:t,rating:"good",delta:0,entries:[],id:rR(),navigationType:r}},rF=(e,t,n)=>{try{if(PerformanceObserver.supportedEntryTypes.includes(e)){let r=new PerformanceObserver(e=>{t(e.getEntries())});return r.observe(Object.assign({type:e,buffered:!0},n||{})),r}}catch(e){}},rU=(e,t)=>{let n=r=>{("pagehide"===r.type||"hidden"===A.document.visibilityState)&&(e(r),t&&(removeEventListener("visibilitychange",n,!0),removeEventListener("pagehide",n,!0)))};addEventListener("visibilitychange",n,!0),addEventListener("pagehide",n,!0)},r$=e=>{let t;let n=rM("CLS",0),r=0,i=[],o=e=>
24{e.forEach(e=>{if(!e.hadRecentInput){let o=i[0],a=i[i.length-1];r&&0!==i.length&&e.startTime-a.startTime<1e3&&e.startTime-o.startTime<5e3?(r+=e.value,i.push(e)):(r=e.value,i=[e]),r>n.value&&(n.value=r,n.entries=i,t&&t())}})},a=rF("layout-shift",o);if(a){t=rI(e,n);let r=()=>{o(a.takeRecords()),t(!0)};return rU(r),r}},rB=-1,rz=()=>"hidden"!==A.document.visibilityState||A.document.prerendering?1/0:0,rq=()=>{rU(({timeStamp:e})=>{rB=e},!0)},rV=()=>(rB<0&&(rB=rz(),rq()),{get firstHiddenTime(){return rB}}),rH=e=>{let t;let n=rV(),r=rM("FID"),i=e=>{e.startTime<n.firstHiddenTime&&(r.value=e.processingStart-e.startTime,r.entries.push(e),t(!0))},o=e=>{e.forEach(i)},a=rF("first-input",o);t=rI(e,r),a&&rU(()=>{o(a.takeRecords()),a.disconnect()},!0)},rZ=0,rW=1/0,rQ=0,rG=e=>{e.forEach(e=>{e.interactionId&&(rW=Math.min(rW,e.interactionId),rZ=(rQ=Math.max(rQ,e.interactionId))?(rQ-rW)/7+1:0)})},rK=()=>c?rZ:performance.interactionCount||0,rY=()=>{"interactionCount"in performance||c||(c=rF("event",rG,{type:"event",buffered:!0,durationThreshold:0}))},rJ=()=>rK(),rX=[],r0={},r1=e=>{let t=rX[rX.length-1],n=r0[e.interactionId];if(n||rX.length<10||e.duration>t.latency){if(n)n.entries.push(e),n.latency=Math.max(n.latency,e.duration);else{let t={id:e.interactionId,latency:e.duration,entries:[e]};r0[t.id]=t,rX.push(t)}rX.sort((e,t)=>t.latency-e.latency),rX.splice(10).forEach(e=>{delete r0[e.id]})}},r2=()=>{let e=Math.min(rX.length-1,Math.floor(rJ()/50));return rX[e]},r4=(e,t)=>{let n;t=t||{},rY();let r=rM("INP"),i=e=>{e.forEach(e=>{e.interactionId&&r1(e),"first-input"!==e.entryType||rX.some(t=>t.entries.some(t=>e.duration===t.duration&&e.startTime===t.startTime))||r1(e)});let t=r2();t&&t.latency!==r.value&&(r.value=t.latency,r.entries=t.entries,n())},o=rF("event",i,{durationThreshold:t.durationThreshold||40});n=rI(e,r,t.reportAllChanges),o&&(o.observe({type:"first-input",buffered:!0}),rU(()=>{i(o.takeRecords()),r.value<0&&rJ()>0&&(r.value=0,r.entries=[]),n(!0)}))},r3={},r5=e=>{let t;let n=rV(),r=rM("LCP"),i=e=>{let i=e[e.length-1];if(i){let e=Math.max(i.startTime-rL(),0);e<n.firstHiddenTime&&(r.value=e,r.entries=[i],t())}},o=rF("largest-contentful-paint",i);if(o){t=rI(e,r);let n=()=>{r3[r.id]||(i(o.takeRecords()),o.disconnect(),r3[r.id]=!0,t(!0))};return["keydown","click"].forEach(e=>{addEventListener(e,n,{once:!0,capture:!0})}),rU(n,!0),n}},r6={},r7={};function r8(e,t){return ia(e,t),r7[e]||(function(e){let t={};"event"===e&&(t.durationThreshold=0),rF(e,t=>{r9(e,{entries:t})},t)}(e),r7[e]=!0),is(e,t)}function r9(e,t){let n=r6[e];if(n&&n.length)for(let r of n)try{r(t)}catch(t){rk&&X.error(`Error while triggering instrumentation handler.
25Type: ${e}
26Name: ${tr(r)}
27Error:`,t)}}function ie(){return r$(e=>{r9("cls",{metric:e}),f=e})}function it(){return rH(e=>{r9("fid",{metric:e}),d=e})}function ir(){return r5(e=>{r9("lcp",{metric:e}),p=e})}function ii(){return r4(e=>{r9("inp",{metric:e}),h=e})}function io(e,t,n,r,i=!1){let o;return ia(e,t),r7[e]||(o=n(),r7[e]=!0),r&&t({metric:r}),is(e,t,i?o:void 0)}function ia(e,t){r6[e]=r6[e]||[],r6[e].push(t)}function is(e,t,n){return()=>{n&&n();let r=r6[e];if(!r)return;let i=r.indexOf(t);-1!==i&&r.splice(i,1)}}function iu(e){return[{type:"span"},e]}function il(e){return"number"==typeof e&&isFinite(e)}function ic(e,{startTimestamp:t,...n}){return t&&e.startTimestamp>t&&(e.startTimestamp=t),e.startChild({startTimestamp:t,...n})}function id(e){return e/1e3}function ip(){return A&&A.addEventListener&&A.performance}let ih=0,ig={};function im(){let e=ip();if(e&&e_){e.mark&&A.performance.mark("sentry-tracing-init");let t=io("fid",({metric:e})=>{let t=e.entries[e.entries.length-1];if(!t)return;let n=id(e_),r=id(t.startTime);rk&&X.log("[Measurements] Adding FID"),ig.fid={value:e.value,unit:"millisecond"},ig["mark.fid"]={value:n+r,unit:"second"}},it,d),n=function(e,t=!1){return io("cls",e,ie,f,t)}(({metric:e})=>{let t=e.entries[e.entries.length-1];t&&(rk&&X.log("[Measurements] Adding CLS"),ig.cls={value:e.value,unit:""},m=t)},!0),r=function(e,t=!1){return io("lcp",e,ir,p,t)}(({metric:e})=>{let t=e.entries[e.entries.length-1];t&&(rk&&X.log("[Measurements] Adding LCP"),ig.lcp={value:e.value,unit:"millisecond"},g=t)},!0);return()=>{t(),n(),r()}}return()=>void 0}function iv(){r8("longtask",({entries:e})=>{for(let t of e){let e=rS();if(!e)return;let n=id(e_+t.startTime),r=id(t.duration);e.startChild({description:"Main UI thread blocked",op:"ui.long-task",origin:"auto.ui.browser.metrics",startTimestamp:n,endTimestamp:n+r})}})}function iy(){r8("event",({entries:e})=>{for(let t of e){let e=rS();if(!e)return;if("click"===t.name){let n=id(e_+t.startTime),r=id(t.duration),i={description:Z(t.target),op:`ui.interaction.${t.name}`,origin:"auto.ui.browser.metrics",startTimestamp:n,endTimestamp:n+r},o=Q(t.target);o&&(i.attributes={"ui.component_name":o}),e.startChild(i)}}})}function ib(e){if(ip()&&e_){let t=io("inp",({metric:t})=>{let n;let r=t.entries.find(e=>"click"===e.name||"pointerdown"===e.name),i=tu();if(!r||!i)return;let o=i.getOptions(),a=id(e_+r.startTime),s=id(t.value),{routeName:u,parentContext:l,activeTransaction:c,user:f,replayId:d}=void 0!==r.interactionId?e[r.interactionId]:{routeName:void 0,parentContext:void 0,activeTransaction:void 0,user:void 0,replayId:void 0},p=void 0!==f?f.email||f.id||f.ip_address:void 0,h=void 0!==c?c.getProfileId():void 0,g=new rd({startTimestamp:a,endTimestamp:a+s,op:"ui.interaction.click",name:Z(r.target),attributes:{release:o.release,environment:o.environment,transaction:u,...void 0!==p&&""!==p?{user:p}:{},...void 0!==h?{profile_id:h}:{},...void 0!==d?{replay_id:d}:{}},exclusiveTime:t.value,measurements:{inp:{value:t.value,unit:"millisecond"}}}),m=!!th(o)&&(rx(n=void 0!==l&&"function"==typeof o.tracesSampler?o.tracesSampler({transactionContext:l,name:l.name,parentSampled:l.parentSampled,attributes:{...l.data,...l.attributes},location:A.location}
27):void 0!==l&&void 0!==l.sampled?l.sampled:void 0!==o.tracesSampleRate?o.tracesSampleRate:1)?n:(rk&&X.warn("[Tracing] Discarding transaction because of invalid sample rate."),!1));if(m&&Math.random()<m){let e=g?function(e,t){let n={sent_at:new Date().toISOString()};return t&&(n.dsn=n$(t)),nq(n,e.map(iu))}([g],i.getDsn()):void 0,t=i&&i.getTransport();t&&e&&t.send(e).then(null,e=>{rk&&X.error("Error while sending interaction:",e)});return}},ii,h);return()=>{t()}}return()=>void 0}function i_(e){let t,n;let r=ip();if(!r||!A.performance.getEntries||!e_)return;rk&&X.log("[Tracing] Adding & adjusting spans using Performance API");let i=id(e_),o=r.getEntries(),{op:a,start_timestamp:s}=eZ(e);if(o.slice(ih).forEach(r=>{let o=id(r.startTime),a=id(r.duration);if("navigation"!==e.op||!s||!(i+o<s))switch(r.entryType){case"navigation":["unloadEvent","redirect","domContentLoadedEvent","loadEvent","connect"].forEach(t=>{iS(e,r,t,i)}),iS(e,r,"secureConnection",i,"TLS/SSL","connectEnd"),iS(e,r,"fetch",i,"cache","domainLookupStart"),iS(e,r,"domainLookup",i,"DNS"),r.responseEnd&&(ic(e,{op:"browser",origin:"auto.browser.browser.metrics",description:"request",startTimestamp:i+id(r.requestStart),endTimestamp:i+id(r.responseEnd)}),ic(e,{op:"browser",origin:"auto.browser.browser.metrics",description:"response",startTimestamp:i+id(r.responseStart),endTimestamp:i+id(r.responseEnd)})),t=i+id(r.responseStart),n=i+id(r.requestStart);break;case"mark":case"paint":case"measure":{(function(e,t,n,r,i){let o=i+n;ic(e,{description:t.name,endTimestamp:o+r,op:t.entryType,origin:"auto.resource.browser.metrics",startTimestamp:o})})(e,r,o,a,i);let t=rV(),n=r.startTime<t.firstHiddenTime;"first-paint"===r.name&&n&&(rk&&X.log("[Measurements] Adding FP"),ig.fp={value:r.startTime,unit:"millisecond"}),"first-contentful-paint"===r.name&&n&&(rk&&X.log("[Measurements] Adding FCP"),ig.fcp={value:r.startTime,unit:"millisecond"});break}case"resource":(function(e,t,n,r,i,o){if("xmlhttprequest"===t.initiatorType||"fetch"===t.initiatorType)return;let a=n_(n),s={};iE(s,t,"transferSize","http.response_transfer_size"),iE(s,t,"encodedBodySize","http.response_content_length"),iE(s,t,"decodedBodySize","http.decoded_response_content_length"),"renderBlockingStatus"in t&&(s["resource.render_blocking_status"]=t.renderBlockingStatus),a.protocol&&(s["url.scheme"]=a.protocol.split(":").pop()),a.host&&(s["server.address"]=a.host),s["url.same_origin"]=n.includes(A.location.origin);let u=o+r;ic(e,{description:n.replace(A.location.origin,""),endTimestamp:u+i,op:t.initiatorType?`resource.${t.initiatorType}`:"resource.other",origin:"auto.resource.browser.metrics",startTimestamp:u,data:s})})(e,r,r.name,o,a,i)}}),ih=Math.max(o.length-1,0),function(e){let t=A.navigator;if(!t)return;let n=t.connection;n&&(n.effectiveType&&e.setTag("effectiveConnectionType",n.effectiveType),n.type&&e.setTag("connectionType",n.type),il(n.rtt)&&(ig["connection.rtt"]={value:n.rtt,unit:"millisecond"})),il(t.deviceMemory)&&e.setTag("deviceMemory",`${t.deviceMemory} GB`),il(t.hardwareConcurrency)&&e.setTag("hardwareConcurrency",String(t.hardwareConcurrency))}(e),"pageload"===a){var u,l,c;u=ig,l=t,c=n,"number"==typeof l&&s&&(rk&&X.log("[Measurements] Adding TTFB"),u.ttfb={value:1e3*Math.max(l-s,0),unit:"millisecond"},"number"==typeof c&&c<=l&&(u["ttfb.requestTime"]={value:(l-c)*1e3,unit:"millisecond"})),["fcp","fp","lcp"].forEach(e=>{if(!ig[e]||!s||i>=s)return;let t=ig[e].value,n=Math.abs((i+id(t)-s)*1e3),r=n-t;rk&&X.log(`[Measurements] Normalized ${e} from ${t} to ${n} (${r})`),ig[e].value=n});let r=ig["mark.fid"];r&&ig.fid&&(ic(e,{description:"first input delay",endTimestamp:r.value+id(ig.fid.value),op:"ui.action",origin:"auto.ui.browser.metrics",startTimestamp:r.value}),delete ig["mark.fid"]),"fcp"in ig||delete ig.cls,Object.keys(ig).forEach(e=>{!function(e,t,n){let r=rS();r&&r.setMeasurement(e,t,n)}(e,ig[e].value,ig[e].unit)}),g&&(rk&&X.log("[Measurements] Adding LCP Data"),g.element&&e.setTag("lcp.element",Z(g.element)),g.id&&e.setTag("lcp.id",g.id),g.url&&e.setTag("lcp.url",g.url.trim().slice(0,200)),e.setTag("lcp.size",g.size)),m&&m.sources&&(rk&&X.log("[Measurements] Adding CLS Data"),m.sources.forEac
27h((t,n)=>e.setTag(`cls.source.${n+1}`,Z(t.node))))}g=void 0,m=void 0,ig={}}function iS(e,t,n,r,i,o){let a=o?t[o]:t[`${n}End`],s=t[`${n}Start`];s&&a&&ic(e,{op:"browser",origin:"auto.browser.browser.metrics",description:i||n,startTimestamp:r+id(s),endTimestamp:r+id(a)})}function iE(e,t,n,r){let i=t[n];null!=i&&i<2147483647&&(e[r]=i)}let iO=["localhost",/^\/(?!\/)/],iw={traceFetch:!0,traceXHR:!0,enableHTTPTimings:!0,tracingOrigins:iO,tracePropagationTargets:iO};function ix(e){let{traceFetch:t,traceXHR:n,tracePropagationTargets:r,tracingOrigins:i,shouldCreateSpanForRequest:o,enableHTTPTimings:a}={traceFetch:iw.traceFetch,traceXHR:iw.traceXHR,...e},s="function"==typeof o?o:e=>!0,u=e=>en(e,r||i||iO),l={};t&&np(e=>{let t=function(e,t,n,r,i="auto.http.browser"){if(!th()||!e.fetchData)return;let o=t(e.fetchData.url);if(e.endTimestamp&&o){let t=e.fetchData.__span;if(!t)return;let n=r[t];if(n){if(e.response){rc(n,e.response.status);let t=e.response&&e.response.headers&&e.response.headers.get("content-length");if(t){let e=parseInt(t);e>0&&n.setAttribute("http.response_content_length",e)}}else e.error&&n.setStatus("internal_error");n.end(),delete r[t]}return}let a=tl(),s=tu(),{method:u,url:l}=e.fetchData,c=o?rp({name:`${u} ${l}`,onlyIfParent:!0,attributes:{url:l,type:"fetch","http.method":u,[rl]:i},op:"http.client"}):void 0;if(c&&(e.fetchData.__span=c.spanContext().spanId,r[c.spanContext().spanId]=c),n(e.fetchData.url)&&s){let t=e.args[0];e.args[1]=e.args[1]||{};let n=e.args[1];n.headers=function(e,t,n,r,i){let o=i||n.getSpan(),{traceId:a,spanId:s,sampled:u,dsc:l}={...e6().getPropagationContext(),...n.getPropagationContext()},c=o?eq(o):eB(a,s,u),f=eL(l||(o?eG(o):eQ(a,t,n))),d=r.headers||("undefined"!=typeof Request&&V(e,Request)?e.headers:void 0);if(!d)return{"sentry-trace":c,baggage:f};if("undefined"!=typeof Headers&&V(d,Headers)){let e=new Headers(d);return e.append("sentry-trace",c),f&&e.append(eI,f),e}if(Array.isArray(d)){let e=[...d,["sentry-trace",c]];return f&&e.push([eI,f]),e}{let e="baggage"in d?d.baggage:void 0,t=[];return Array.isArray(e)?t.push(...e):e&&t.push(e),f&&t.push(f),{...d,"sentry-trace":c,baggage:t.length>0?t.join(","):void 0}}}(t,s,a,n,c)}return c}(e,s,u,l);a&&t&&iT(t)}),n&&nl(e=>{let t=function(e,t,n,r){let i=e.xhr,o=i&&i[nu];if(!th()||!i||i.__sentry_own_request__||!o)return;let a=t(o.url);if(e.endTimestamp&&a){let e=i.__sentry_xhr_span_id__;if(!e)return;let t=r[e];t&&void 0!==o.status_code&&(rc(t,o.status_code),t.end(),delete r[e]);return}let s=tl(),u=e6(),l=a?rp({name:`${o.method} ${o.url}`,onlyIfParent:!0,attributes:{type:"xhr","http.method":o.method,url:o.url,[rl]:"auto.http.browser"},op:"http.client"}):void 0;l&&(i.__sentry_xhr_span_id__=l.spanContext().spanId,r[i.__sentry_xhr_span_id__]=l);let c=tu();if(i.setRequestHeader&&n(o.url)&&c){let{traceId:e,spanId:t,sampled:n,dsc:r}={...u.getPropagationContext(),...s.getPropagationContext()};(function(e,t,n){try{e.setRequestHeader("sentry-trace",t),n&&e.setRequestHeader(eI,n)}catch(e){}})(i,l?eq(l):eB(e,t,n),eL(r||(l?eG(l):eQ(e,c,s))))}return l}(e,s,u,l);a&&t&&iT(t)})}function iT(e){let{url:t}=eZ(e).data||{};if(!t||"string"!=typeof t)return;let n=r8("resource",({entries:r})=>{r.forEach(r=>{"resource"===r.entryType&&"initiatorType"in r&&"string"==typeof r.nextHopProtocol&&("fetch"===r.initiatorType||"xmlhttprequest"===r.initiatorType)&&r.name.endsWith(t)&&((function(e){let{name:t,version:n}=function(e){let t="unknown",n="unknown",r="";for(let i of e){if("/"===i){[t,n]=e.split("/");break}if(!isNaN(Number(i))){t="h"===r?"http":r,n=e.split(r)[1];break}r+=i}return r===e&&(t=r),{name:t,version:n}}(e.nextHopProtocol),r=[];return(r.push(["network.protocol.version",n],["network.protocol.name",t]),e_)?[...r,["http.request.redirect_start",iC(e.redirectStart)],["http.request.fetch_start",iC(e.fetchStart)],["http.request.domain_lookup_start",iC(e.domainLookupStart)],["http.request.domain_lookup_end",iC(e.domainLookupEnd)],["http.request.connect_start",iC(e.connectStart)],["http.request.secure_connection_start",iC(e.secureConnectionStart)],["http.request.connection_end",iC(e.connectEnd)],["http.request.request_start",iC(e.requestStart)],["http.request.response_start",iC(e.responseStart)],["http.request.response_end",iC(e.responseEnd)]]:r})(r).forEach(t=>e.setAttribute(...t)),setTimeout(n))})})}function iC(e=0){return((e_||performance.timeOrigin)+e)/1e3}
27let iP={...ry,markBackgroundTransactions:!0,routingInstrumentation:function(e,t=!0,n=!0){let r;if(!A||!A.location){rk&&X.warn("Could not initialize routing instrumentation due to invalid location");return}let i=A.location.href;t&&(r=e({name:A.location.pathname,startTimestamp:e_?e_/1e3:void 0,op:"pageload",origin:"auto.pageload.browser",metadata:{source:"url"}})),n&&nv(({to:t,from:n})=>{if(void 0===n&&i&&-1!==i.indexOf(t)){i=void 0;return}n!==t&&(i=void 0,r&&(rk&&X.log(`[Tracing] Finishing current transaction with op: ${r.op}`),r.end()),r=e({name:A.location.pathname,op:"navigation",origin:"auto.navigation.browser",metadata:{source:"url"}}))})},startTransactionOnLocationChange:!0,startTransactionOnPageLoad:!0,enableLongTask:!0,enableInp:!1,_experiments:{},...iw};class iA{constructor(e){this.name="BrowserTracing",this._hasSetTracePropagationTargets=!1,rA(),rk&&(this._hasSetTracePropagationTargets=!!(e&&(e.tracePropagationTargets||e.tracingOrigins))),this.options={...iP,...e},void 0!==this.options._experiments.enableLongTask&&(this.options.enableLongTask=this.options._experiments.enableLongTask),e&&!e.tracePropagationTargets&&e.tracingOrigins&&(this.options.tracePropagationTargets=e.tracingOrigins),this._collectWebVitals=im(),this._interactionIdtoRouteNameMapping={},this.options.enableInp&&ib(this._interactionIdtoRouteNameMapping),this.options.enableLongTask&&iv(),this.options._experiments.enableInteractions&&iy(),this._latestRoute={name:void 0,context:void 0}}setupOnce(e,t){this._getCurrentHub=t;let n=t().getClient(),r=n&&n.getOptions(),{routingInstrumentation:i,startTransactionOnLocationChange:o,startTransactionOnPageLoad:a,markBackgroundTransactions:s,traceFetch:u,traceXHR:l,shouldCreateSpanForRequest:c,enableHTTPTimings:f,_experiments:d}=this.options,p=r&&r.tracePropagationTargets,h=p||this.options.tracePropagationTargets;rk&&this._hasSetTracePropagationTargets&&p&&X.warn("[Tracing] The `tracePropagationTargets` option was set in the BrowserTracing integration and top level `Sentry.init`. The top level `Sentry.init` value is being used."),i(e=>{let n=this._createRouteTransaction(e);return this.options._experiments.onStartRouteTransaction&&this.options._experiments.onStartRouteTransaction(n,e,t),n},a,o),s&&rj(),d.enableInteractions&&this._registerInteractionListener(),this.options.enableInp&&this._registerInpInteractionListener(),ix({traceFetch:u,traceXHR:l,tracePropagationTargets:h,shouldCreateSpanForRequest:c,enableHTTPTimings:f})}_createRouteTransaction(e){let t;if(!this._getCurrentHub){rk&&X.warn(`[Tracing] Did not create ${e.op} transaction because _getCurrentHub is invalid.`);return}let n=this._getCurrentHub(),{beforeNavigate:r,idleTimeout:i,finalTimeout:o,heartbeatInterval:a}=this.options,s="pageload"===e.op;if(s){let{traceId:n,dsc:r,parentSpanId:i,sampled:o}=e$(s?ik("sentry-trace"):"",s?ik("baggage"):void 0);t={traceId:n,parentSpanId:i,parentSampled:o,...e,metadata:{...e.metadata,dynamicSamplingContext:r},trimEnd:!0}}else t={trimEnd:!0,...e};let u="function"==typeof r?r(t):t,l=void 0===u?{...t,sampled:!1}:u;l.metadata=l.name!==t.name?{...l.metadata,source:"custom"}:l.metadata,this._latestRoute.name=l.name,this._latestRoute.context=l,!1===l.sampled&&rk&&X.log(`[Tracing] Will not send ${l.op} transaction because of beforeNavigate.`),rk&&X.log(`[Tracing] Starting ${l.op} transaction on scope`);let{location:c}=A,f=rP(n,l,i,o,!0,{location:c},a,s);return s&&(A.document.addEventListener("readystatechange",()=>{["interactive","complete"].includes(A.document.readyState)&&f.sendAutoFinishSignal()}),["interactive","complete"].includes(A.document.readyState)&&f.sendAutoFinishSignal()),f.registerBeforeFinishCallback(e=>{this._collectWebVitals(),i_(e)}),f}_registerInteractionListener(){let e;let t=()=>{let{idleTimeout:t,finalTimeout:n,heartbeatInterval:r}=this.options,i="ui.action.click",o=rS();if(o&&o.op&&["navigation","pageload"].includes(o.op)){rk&&X.warn(`[Tracing] Did not create ${i} transaction because a pageload or navigation transaction is in progress.`);return}if(e&&(e.setFinishReason("interactionInterrupted"),e.end(),e=void 0),!this._getCurrentHub){rk&&X.warn(`[Tracing] Did not create ${i}
27 transaction because _getCurrentHub is invalid.`);return}if(!this._latestRoute.name){rk&&X.warn(`[Tracing] Did not create ${i} transaction because _latestRouteName is missing.`);return}let a=this._getCurrentHub(),{location:s}=A;e=rP(a,{name:this._latestRoute.name,op:i,trimEnd:!0,data:{[ra]:this._latestRoute.context?function(e){let t=e.attributes&&e.attributes[ra],n=e.data&&e.data[ra],r=e.metadata&&e.metadata.source;return t||n||r}(this._latestRoute.context):"url"}},t,n,!0,{location:s},r)};["click"].forEach(e=>{addEventListener(e,t,{once:!1,capture:!0})})}_registerInpInteractionListener(){r8("event",({entries:e})=>{let t=tu(),n=void 0!==t&&void 0!==t.getIntegrationByName?t.getIntegrationByName("Replay"):void 0,r=void 0!==n?n.getReplayId():void 0,i=rS(),o=tl(),a=void 0!==o?o.getUser():void 0;for(let t of e)if("duration"in t){let e=t.duration,n=Object.keys(this._interactionIdtoRouteNameMapping),o=n.length>0?n.reduce((e,t)=>this._interactionIdtoRouteNameMapping[e].duration<this._interactionIdtoRouteNameMapping[t].duration?e:t):void 0;if(void 0===o||e>this._interactionIdtoRouteNameMapping[o].duration){let n=t.interactionId,s=this._latestRoute.name,u=this._latestRoute.context;n&&s&&u&&(o&&Object.keys(this._interactionIdtoRouteNameMapping).length>=10&&delete this._interactionIdtoRouteNameMapping[o],this._interactionIdtoRouteNameMapping[n]={routeName:s,duration:e,parentContext:u,user:a,activeTransaction:i,replayId:r})}}})}}function ik(e){let t=W(`meta[name=${e}]`);return t?t.getAttribute("content"):void 0}let ij={...ry,instrumentNavigation:!0,instrumentPageLoad:!0,markBackgroundSpan:!0,enableLongTask:!0,enableInp:!1,_experiments:{},...iw},iI=(e={})=>{let t=!!rk&&!!(e.tracePropagationTargets||e.tracingOrigins);rA(),!e.tracePropagationTargets&&e.tracingOrigins&&(e.tracePropagationTargets=e.tracingOrigins);let n={...ij,...e},r=im(),i={};n.enableInp&&ib(i),n.enableLongTask&&iv(),n._experiments.enableInteractions&&iy();let o={name:void 0,context:void 0};function a(e){let t;let i=e5(),{beforeStartSpan:a,idleTimeout:s,finalTimeout:u,heartbeatInterval:l}=n,c="pageload"===e.op;if(c){let{traceId:n,dsc:r,parentSpanId:i,sampled:o}=e$(c?iN("sentry-trace"):"",c?iN("baggage"):void 0);t={traceId:n,parentSpanId:i,parentSampled:o,...e,metadata:{...e.metadata,dynamicSamplingContext:r},trimEnd:!0}}else t={trimEnd:!0,...e};let f=a?a(t):t;f.metadata=f.name!==t.name?{...f.metadata,source:"custom"}:f.metadata,o.name=f.name,o.context=f,!1===f.sampled&&rk&&X.log(`[Tracing] Will not send ${f.op} transaction because of beforeNavigate.`),rk&&X.log(`[Tracing] Starting ${f.op} transaction on scope`);let{location:d}=A,p=rP(i,f,s,u,!0,{location:d},l,c);return c&&A.document&&(A.document.addEventListener("readystatechange",()=>{["interactive","complete"].includes(A.document.readyState)&&p.sendAutoFinishSignal()}),["interactive","complete"].includes(A.document.readyState)&&p.sendAutoFinishSignal()),p.registerBeforeFinishCallback(e=>{r(),i_(e)}),p}return{name:"BrowserTracing",setupOnce:()=>{},afterAllSetup(e){let r;let s=e.getOptions(),{markBackgroundSpan:u,traceFetch:l,traceXHR:c,shouldCreateSpanForRequest:f,enableHTTPTimings:d,_experiments:p}=n,h=s&&s.tracePropagationTargets,g=h||n.tracePropagationTargets;rk&&t&&h&&X.warn("[Tracing] The `tracePropagationTargets` option was set in the BrowserTracing integration and top level `Sentry.init`. The top level `Sentry.init` value is being used.");let m=A.location&&A.location.href;e.on&&(e.on("startNavigationSpan",e=>{r&&(rk&&X.log(`[Tracing] Finishing current transaction with op: ${eZ(r).op}`),r.end()),r=a({op:"navigation",...e})}),e.on("startPageLoadSpan",e=>{r&&(rk&&X.log(`[Tracing] Finishing current transaction with op: ${eZ(r).op}`),r.end()),r=a({op:"pageload",...e})})),n.instrumentPageLoad&&e.emit&&A.location&&iR(e,{name:A.location.pathname,startTimestamp:e_?e_/1e3:void 0,origin:"auto.pageload.browser",attributes:{[ra]:"url"}}),n.instrumentNavigation&&e.emit&&A.location&&nv(({to:t,from:n})=>{if(void 0===n&&m&&-1!==m.indexOf(t)){m=void 0;return}n!==t&&(m=void 0,iD(e,{name:A.location.pathname,origin:"auto.navigation.browser",attributes:{[ra]:"url"}}))}),u&&rj(),p.enableInteractions&&function(e,t){let n;let r=()=>{let{idleTimeout:r,finalTimeout:i,heartbeatInterval:o}
27=e,a="ui.action.click",s=rS();if(s&&s.op&&["navigation","pageload"].includes(s.op)){rk&&X.warn(`[Tracing] Did not create ${a} transaction because a pageload or navigation transaction is in progress.`);return}if(n&&(n.setFinishReason("interactionInterrupted"),n.end(),n=void 0),!t.name){rk&&X.warn(`[Tracing] Did not create ${a} transaction because _latestRouteName is missing.`);return}let{location:u}=A,l={name:t.name,op:a,trimEnd:!0,data:{[ra]:t.context?function(e){let t=e.attributes&&e.attributes[ra],n=e.data&&e.data[ra],r=e.metadata&&e.metadata.source;return t||n||r}(t.context):"url"}};n=rP(e5(),l,r,i,!0,{location:u},o)};["click"].forEach(e=>{addEventListener(e,r,{once:!1,capture:!0})})}(n,o),n.enableInp&&r8("event",({entries:e})=>{let t=tu(),n=void 0!==t&&void 0!==t.getIntegrationByName?t.getIntegrationByName("Replay"):void 0,r=void 0!==n?n.getReplayId():void 0,a=rS(),s=tl(),u=void 0!==s?s.getUser():void 0;for(let t of e)if("duration"in t){let e=t.duration,n=Object.keys(i),s=n.length>0?n.reduce((e,t)=>i[e].duration<i[t].duration?e:t):void 0;if(void 0===s||e>i[s].duration){let n=t.interactionId,l=o.name,c=o.context;n&&l&&c&&(s&&Object.keys(i).length>=10&&delete i[s],i[n]={routeName:l,duration:e,parentContext:c,user:u,activeTransaction:a,replayId:r})}}}),ix({traceFetch:l,traceXHR:c,tracePropagationTargets:g,shouldCreateSpanForRequest:f,enableHTTPTimings:d})},options:n}};function iR(e,t){if(!e.emit)return;e.emit("startPageLoadSpan",t);let n=rh();return"pageload"===(n&&eZ(n).op)?n:void 0}function iD(e,t){if(!e.emit)return;e.emit("startNavigationSpan",t);let n=rh();return"navigation"===(n&&eZ(n).op)?n:void 0}function iN(e){let t=W(`meta[name=${e}]`);return t?t.getAttribute("content"):void 0}let iL={"routing.instrumentation":"next-app-router"};var iM=n(11163),iF=n.n(iM);let iU="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,i$={"routing.instrumentation":"next-pages-router"},iB=tu();function iz(e,t=!0,n=!0,r,i){A.document.getElementById("__NEXT_DATA__")?function(e,t=!0,n=!0,r,i){let{route:o,params:a,sentryTrace:s,baggage:u}=function(){let e;let t=A.document.getElementById("__NEXT_DATA__");if(t&&t.innerHTML)try{e=JSON.parse(t.innerHTML)}catch(e){iU&&X.warn("Could not extract __NEXT_DATA__")}if(!e)return{};let n={},{page:r,query:i,props:o}=e;return n.route=r,n.params=i,o&&o.pageProps&&(n.sentryTrace=o.pageProps._sentryTraceData,n.baggage=o.pageProps._sentryBaggage),n}(),{traceparentData:l,dynamicSamplingContext:c,propagationContext:f}=function(e,t){let n=eU(e),r=eN(t),{traceId:i,parentSpanId:o,parentSampled:a}=n||{};return n?{traceparentData:n,dynamicSamplingContext:r||{},propagationContext:{traceId:i||ef(),parentSpanId:o||ef().substring(16),spanId:ef().substring(16),sampled:a,dsc:r||{}}}:{traceparentData:n,dynamicSamplingContext:void 0,propagationContext:{traceId:i||ef(),spanId:ef().substring(16)}}}(s,u);if(tl().setPropagationContext(f),b=o||A.location.pathname,t){let t={name:b,op:"pageload",origin:"auto.pageload.nextjs.pages_router_instrumentation",tags:i$,startTimestamp:e_?e_/1e3:void 0,...a&&iB&&iB.getOptions().sendDefaultPii&&{data:a},...l,metadata:{source:o?"route":"url",dynamicSamplingContext:l&&!c?{}:c}};y=e(t),r(t)}n&&iF().events.on("routeChangeStart",t=>{let n,r;let o=t.split(/[\?#]/,1)[0],a=function(e){let t=(A.__BUILD_MANIFEST||{}).sortedPages;if(t)return t.find(t=>{let n=function(e){let t=e.split("/"),n="";t[t.length-1].match(/^\[\[\.\.\..+\]\]$/)&&(t.pop(),n="(?:/(.+?))?");let r=t.map(e=>e.replace(/^\[\.\.\..+\]$/,"(.+?)").replace(/^\[.*\]$/,"([^/]+?)")).join("/");return RegExp(`^${r}${n}(?:/)?$`)}(t);return e.match(n)})}(o);a?(n=a,r="route"):(n=o,r="url");let s={...i$,from:b};b=n,y&&y.end();let u={name:n,op:"navigation",origin:"auto.navigation.nextjs.pages_router_instrumentation",tags:s,metadata:{source:r}},l=e(u);if(i(u),l){let e=l.startChild({op:"ui.nextjs.route-change",origin:"auto.ui.nextjs.pages_router_instrumentation",description:"Next.js Route Change"}),t=()=>{e.end(),iF().events.off("routeChangeComplete",t)};iF().events.on("routeChangeComplete",t)}})}(e,t,n,r||(()=>void 0),i||(()=>void 0)):function(e,t=!0,n=!0,r,i){let o;let a=A.location.pathname;if(t){let t={name:a,op:"pageload",origin:"auto.pageload.nextjs.app_router_instrumentation",tags:iL,startTimestamp:e_?e_/1e3:void 0,metadata:{source:"url"}};o=e(t),r(t)}n&&np(t=>{if(void 0!==t.endTimestamp||"GET"!==t.fetchData.method)return;let n=function(e){if(!e[0]||"object"!=typeof e[0]||void 0===e[0].searchParams||!e[1]||"object"!=typeof e[1]||!("headers"in e[1])
27)return null;try{let t=e[0],n=e[1].headers;if("1"!==n.RSC||"1"===n["Next-Router-Prefetch"])return null;return{targetPathname:t.pathname}}catch(e){return null}}(t.args);if(null===n)return;let r=n.targetPathname,s={...iL,from:a};a=r,o&&o.end();let u={name:r,op:"navigation",origin:"auto.navigation.nextjs.app_router_instrumentation",tags:s,metadata:{source:"url"}};e(u),i(u)})}(e,t,n,r||(()=>void 0),i||(()=>void 0))}class iq extends iA{constructor(e){super({tracingOrigins:[...iw.tracingOrigins,/^(api\/)/],routingInstrumentation:iz,...e})}}let iV=/^(\S+:\\|\/?)([\s\S]*?)((?:\.{1,2}|[^/\\]+?|)(\.[^./\\]*|))(?:[/\\]*)$/;function iH(...e){let t="",n=!1;for(let r=e.length-1;r>=-1&&!n;r--){let i=r>=0?e[r]:"/";i&&(t=`${i}/${t}`,n="/"===i.charAt(0))}return t=(function(e,t){let n=0;for(let t=e.length-1;t>=0;t--){let r=e[t];"."===r?e.splice(t,1):".."===r?(e.splice(t,1),n++):n&&(e.splice(t,1),n--)}if(t)for(;n--;n)e.unshift("..");return e})(t.split("/").filter(e=>!!e),!n).join("/"),(n?"/":"")+t||"."}function iZ(e){let t=0;for(;t<e.length&&""===e[t];t++);let n=e.length-1;for(;n>=0&&""===e[n];n--);return t>n?[]:e.slice(t,n-t+1)}let iW="RewriteFrames",iQ=(e={})=>{let t=e.root,n=e.prefix||"app:///",r=e.iteratee||(e=>{if(!e.filename)return e;let r=/^[a-zA-Z]:\\/.test(e.filename)||e.filename.includes("\\")&&!e.filename.includes("/"),i=/^\//.test(e.filename);if(r||i){var o;let i;let a=r?e.filename.replace(/^[a-zA-Z]:/,"").replace(/\\/g,"/"):e.filename,s=t?function(e,t){e=iH(e).slice(1),t=iH(t).slice(1);let n=iZ(e.split("/")),r=iZ(t.split("/")),i=Math.min(n.length,r.length),o=i;for(let e=0;e<i;e++)if(n[e]!==r[e]){o=e;break}let a=[];for(let e=o;e<n.length;e++)a.push("..");return(a=a.concat(r.slice(o))).join("/")}(t,a):(i=function(e){let t=e.length>1024?`<truncated>${e.slice(-1024)}`:e,n=iV.exec(t);return n?n.slice(1):[]}(a)[2],o&&i.slice(-1*o.length)===o&&(i=i.slice(0,i.length-o.length)),i);e.filename=`${n}${s}`}return e});return{name:iW,setupOnce(){},processEvent(e){let t=e;return e.exception&&Array.isArray(e.exception.values)&&(t=function(e){try{return{...e,exception:{...e.exception,values:e.exception.values.map(e=>{var t;return{...e,...e.stacktrace&&{stacktrace:{...t=e.stacktrace,frames:t&&t.frames&&t.frames.map(e=>r(e))}}}})}}}catch(t){return e}}(t)),t}}};ty(iW,iQ);let iG=e=>{let t=A.__rewriteFramesAssetPrefixPath__||"";return iQ({iteratee:e=>{try{let{origin:n}=new URL(e.filename);e.filename=ri([e,"access",e=>e.filename,"optionalAccess",e=>e.replace,"call",e=>e(n,"app://"),"access",e=>e.replace,"call",e=>e(t,"")])}catch(e){}return e.filename&&e.filename.startsWith("app:///_next")&&(e.filename=decodeURI(e.filename)),e.filename&&e.filename.match(/^app:\/\/\/_next\/static\/chunks\/(main-|main-app-|polyfills-|webpack-|framework-|framework\.)[0-9a-f]+\.js$/)&&(e.in_app=!1),e},...e})};function iK(e){let t=e.find(e=>"BrowserTracing"===e.name);if(!t)return e;if(t.afterAllSetup&&t.options){let{options:n}=t;e[e.indexOf(t)]=new iq(n)}if(!(t instanceof iq)){let n=t.options;delete n.routingInstrumentation,delete n.tracingOrigins,e[e.indexOf(t)]=new iq(n)}return e}({...nF});var iY=n(34155),iJ=window;iJ.__sentryRewritesTunnelPath__=void 0,iJ.SENTRY_RELEASE={id:"e992dd3f8a3dba124982f47c92859a458917140b"},iJ.__sentryBasePath=void 0,iJ.__rewriteFramesAssetPrefixPath__="";let iX=iY.env.SENTRY_DSN||"https://[email protected]/5404939";iX&&function(e){let t={environment:function(e){let t=e?rr.env.NEXT_PUBLIC_VERCEL_ENV:rr.env.VERCEL_ENV;return t?`vercel-${t}`:void 0}(!0)||"production",defaultIntegrations:function(e){let t=[...rn,iG
27()];return("undefined"==typeof __SENTRY_TRACING__||__SENTRY_TRACING__)&&th(e)&&t.push(function(e){let t=iI({tracingOrigins:[...iw.tracingOrigins,/^(api\/)/],...e,instrumentNavigation:!1,instrumentPageLoad:!1});return{...t,afterAllSetup(n){let r=e=>{iR(n,e)},i=e=>{iD(n,e)};iz(()=>void 0,!1,ri([e,"optionalAccess",e=>e.instrumentNavigation]),r,i),t.afterAllSetup(n),iz(()=>void 0,ri([e,"optionalAccess",e=>e.instrumentPageLoad]),!1,r,i)}}}()),t}(e),...e};(function(e){let{integrations:t}=e;t&&(Array.isArray(t)?e.integrations=iK(t):e.integrations=e=>iK(t(e)))})(t),function(e){let t=A.__sentryRewritesTunnelPath__;if(t&&e.dsn){let n=nB(e.dsn);if(!n)return;let r=n.host.match(/^o(\d+)\.ingest(?:\.([a-z]{2}))?\.sentry\.io$/);if(r){let i=r[1],o=r[2],a=`${t}?o=${i}&p=${n.projectId}`;o&&(a+=`&r=${o}`),e.tunnel=a,iU&&X.info(`Tunneling events to "${a}"`)}else iU&&X.warn("Provided DSN is not a Sentry SaaS DSN. Will not tunnel events.")}}(t),C(t,"nextjs",["nextjs","react"]),function(e){let t={...e};C(t,"react"),function(e={}){var t;void 0===e.defaultIntegrations&&(e.defaultIntegrations=[...rn]),void 0===e.release&&("string"==typeof __SENTRY_RELEASE__&&(e.release=__SENTRY_RELEASE__),A.SENTRY_RELEASE&&A.SENTRY_RELEASE.id&&(e.release=A.SENTRY_RELEASE.id)),void 0===e.autoSessionTracking&&(e.autoSessionTracking=!0),void 0===e.sendClientReports&&(e.sendClientReports=!0),function(e,t){!0===t.debug&&(eS?X.enable():J(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")})),tl().update(t.initialScope);let n=new e(t);(function(e){let t=e5().getStackTop();t.client=e,t.scope.setClient(e)})(n),n.init?n.init():n.setupIntegrations&&n.setupIntegrations()}(nX,{...e,stackParser:Array.isArray(t=e.stackParser||n6)?tt(...t):t,integrations:function(e){let t=e.defaultIntegrations||[],n=e.integrations;t.forEach(e=>{e.isDefaultInstance=!0});let r=function(e){let t={};return e.forEach(e=>{let{name:n}=e,r=t[n];r&&!r.isDefaultInstance&&e.isDefaultInstance||(t[n]=e)}),Object.keys(t).map(e=>t[e])}(Array.isArray(n)?[...t,...n]:"function"==typeof n?ev(n(t)):t),i=function(e,t){for(let n=0;n<e.length;n++)if(!0===t(e[n]))return n;return -1}(r,e=>"Debug"===e.name);if(-1!==i){let[e]=r.splice(i,1);r.push(e)}return r}(e),transport:e.transport||(nf()?re:rt)}),e.autoSessionTracking&&function(){if(void 0===A.document){tQ&&X.warn("Session tracking in non-browser environment with @sentry/browser is not supported.");return}tc({ignoreDuration:!0}),tp(),nv(({from:e,to:t})=>{void 0!==e&&e!==t&&(tc({ignoreDuration:!0}),tp())})}()}(t)}(t);let n=tl();n.setTag("runtime","browser");let r=e=>"transaction"===e.type&&"/404"===e.transaction?null:e;r.id="NextClient404Filter",n.addEventProcessor(r)}({dsn:iX,enabled:!0,environment:iY.env.NEXT_PUBLIC_ENV,tracesSampleRate:.1})},13412:function(e,t){"use strict";var n,r;Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{PrefetchKind:function(){return n},ACTION_REFRESH:function(){return i},ACTION_NAVIGATE:function(){return o},ACTION_RESTORE:function(){return a},ACTION_SERVER_PATCH:function(){return s},ACTION_PREFETCH:function(){return u},ACTION_FAST_REFRESH:function(){return l},ACTION_SERVER_ACTION:function(){return c},isThenable:function(){return f}});let i="refresh",o="navigate",a="restore",s="server-patch",u="prefetch",l="fast-refresh",c="server-action";function f(e){return e&&("object"==typeof e||"function"==typeof e)&&"function"==typeof e.then}(r=n||(n={})).AUTO="auto",r.FULL="full",r.TEMPORARY="temporary",("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},96504:function(e,t,n){"use strict";function r(e,t,n,r){return!1}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getDomainLocale",{enumerable:!0,get:function(){return r}}),n(10282),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esMo
27dule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},63480:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return _}});let r=n(38754),i=n(85893),o=r._(n(67294)),a=n(7950),s=n(67229),u=n(76982),l=n(56921),c=n(97727),f=n(1973),d=n(26216),p=n(61722),h=n(96504),g=n(90634),m=n(13412),v=new Set;function y(e,t,n,r,i,o){if(o||(0,s.isLocalURL)(t)){if(!r.bypassPrefetchedCheck){let i=t+"%"+n+"%"+(void 0!==r.locale?r.locale:"locale"in e?e.locale:void 0);if(v.has(i))return;v.add(i)}Promise.resolve(o?e.prefetch(t,i):e.prefetch(t,n,r)).catch(e=>{})}}function b(e){return"string"==typeof e?e:(0,u.formatUrl)(e)}let _=o.default.forwardRef(function(e,t){let n,r;let{href:u,as:v,children:_,prefetch:S=null,passHref:E,replace:O,shallow:w,scroll:x,locale:T,onClick:C,onMouseEnter:P,onTouchStart:A,legacyBehavior:k=!1,...j}=e;n=_,k&&("string"==typeof n||"number"==typeof n)&&(n=(0,i.jsx)("a",{children:n}));let I=o.default.useContext(f.RouterContext),R=o.default.useContext(d.AppRouterContext),D=null!=I?I:R,N=!I,L=!1!==S,M=null===S?m.PrefetchKind.AUTO:m.PrefetchKind.FULL,{href:F,as:U}=o.default.useMemo(()=>{if(!I){let e=b(u);return{href:e,as:v?b(v):e}}let[e,t]=(0,a.resolveHref)(I,u,!0);return{href:e,as:v?(0,a.resolveHref)(I,v):t||e}},[I,u,v]),$=o.default.useRef(F),B=o.default.useRef(U);k&&(r=o.default.Children.only(n));let z=k?r&&"object"==typeof r&&r.ref:t,[q,V,H]=(0,p.useIntersection)({rootMargin:"200px"}),Z=o.default.useCallback(e=>{(B.current!==U||$.current!==F)&&(H(),B.current=U,$.current=F),q(e),z&&("function"==typeof z?z(e):"object"==typeof z&&(z.current=e))},[U,z,F,H,q]);o.default.useEffect(()=>{D&&V&&L&&y(D,F,U,{locale:T},{kind:M},N)},[U,F,V,T,L,null==I?void 0:I.locale,D,N,M]);let W={ref:Z,onClick(e){k||"function"!=typeof C||C(e),k&&r.props&&"function"==typeof r.props.onClick&&r.props.onClick(e),D&&!e.defaultPrevented&&function(e,t,n,r,i,a,u,l,c){let{nodeName:f}=e.currentTarget;if("A"===f.toUpperCase()&&(function(e){let t=e.currentTarget.getAttribute("target");return t&&"_self"!==t||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||e.nativeEvent&&2===e.nativeEvent.which}(e)||!c&&!(0,s.isLocalURL)(n)))return;e.preventDefault();let d=()=>{let e=null==u||u;"beforePopState"in t?t[i?"replace":"push"](n,r,{shallow:a,locale:l,scroll:e}):t[i?"replace":"push"](r||n,{scroll:e})};c?o.default.startTransition(d):d()}(e,D,F,U,O,w,x,T,N)},onMouseEnter(e){k||"function"!=typeof P||P(e),k&&r.props&&"function"==typeof r.props.onMouseEnter&&r.props.onMouseEnter(e),D&&(L||!N)&&y(D,F,U,{locale:T,priority:!0,bypassPrefetchedCheck:!0},{kind:M},N)},onTouchStart(e){k||"function"!=typeof A||A(e),k&&r.props&&"function"==typeof r.props.onTouchStart&&r.props.onTouchStart(e),D&&(L||!N)&&y(D,F,U,{locale:T,priority:!0,bypassPrefetchedCheck:!0},{kind:M},N)}};if((0,l.isAbsoluteUrl)(U))W.href=U;else if(!k||E||"a"===r.type&&!("href"in r.props)){let e=void 0!==T?T:null==I?void 0:I.locale,t=(null==I?void 0:I.isLocaleDomain)&&(0,h.getDomainLocale)(U,e,null==I?void 0:I.locales,null==I?void 0:I.domainLocales);W.href=t||(0,g.addBasePath)((0,c.addLocale)(U,e,null==I?void 0:I.defaultLocale))}return k?o.default.cloneElement(r,W):(0,i.jsx)("a",{...j,...W,children:n})});("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},61722:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useIntersection",{enumerable:!0,get:function(){return u}});let r=n(67294),i=n(39126),o="function"==typeof IntersectionObserver,a=new Map,s=[];function u(e){let{rootRef:t,rootMargin:n,disabled:u}=e,l=u||!o,[c,f]=(0,r.useState)(!1),d=(0,r.useRef)(null),p=(0,r.useCallback)(e=>{d.current=e},[]);return(0,r.useEffect)(()=>{if(o){if(l||c)return;let e=d.current;if(e&&e.tagName)return function(e,t,n){let{id:r,observer:i,elements:o}=function(e){let t;let n={root:e.root||null,margin:e.rootMargin||""},r=s.find(e=>e.root===n.root&&e.margin===n.margin);if(r&&(t=a.get(r)))return t;let i=new Map;return t={id:n,observer:new IntersectionObserver(e=>
27{e.forEach(e=>{let t=i.get(e.target),n=e.isIntersecting||e.intersectionRatio>0;t&&n&&t(n)})},e),elements:i},s.push(n),a.set(n,t),t}(n);return o.set(e,t),i.observe(e),function(){if(o.delete(e),i.unobserve(e),0===o.size){i.disconnect(),a.delete(r);let e=s.findIndex(e=>e.root===r.root&&e.margin===r.margin);e>-1&&s.splice(e,1)}}}(e,e=>e&&f(e),{root:null==t?void 0:t.current,rootMargin:n})}else if(!c){let e=(0,i.requestIdleCallback)(()=>f(!0));return()=>(0,i.cancelIdleCallback)(e)}},[l,n,t,c,d.current]),[p,c,(0,r.useCallback)(()=>{f(!1)},[])]}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},113:function(e,t,n){"use strict";n.d(t,{M:function(){return u}});var r=n(88767),i=n(17563);let o=async function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];let r=await fetch(...t);return r.ok?r.json():Promise.reject(r.text())};var a=n(67294);let s=(e,t)=>{let[n,r]=(0,a.useState)(e);return(0,a.useEffect)(()=>{let n=setTimeout(()=>{r(e)},t);return()=>{clearTimeout(n)}},[t,e]),n},u=(e,t)=>{let{searchText:n}=e,a=s(n.trim(),200);return(0,r.useQuery)(["SearchCMS",a],async()=>{let e=(0,i.stringifyUrl)({url:"/api/search",query:{q:a}});return(await o(e)).results},{...t,enabled:!!a.length})}},56534:function(e,t,n){"use strict";n.d(t,{u:function(){return F},c:function(){return U}});let r={Any:"Any",Document:"Document",Media:"Media",Web:"Web"},i=e=>{var t;return{link_type:r.Document,id:e.id,uid:e.uid??void 0,type:e.type,tags:e.tags,lang:e.lang,url:e.url??void 0,slug:null==(t=e.slugs)?void 0:t[0],...e.data&&Object.keys(e.data).length>0?{data:e.data}:{}}},o=(e,t)=>{if(!e)return null;let n="link_type"in e?e:i(e);switch(n.link_type){case r.Media:case r.Web:return"url"in n?n.url:null;case r.Document:if("id"in n&&t){let e=t(n);if(null!=e)return e}if("url"in n&&n.url)return n.url;return null;case r.Any:default:return null}},a=e=>Array.isArray(e)?e:[e],s=(e={},t)=>({...e,predicates:[...e.predicates||[],...a(t)]}),u=e=>"function"==typeof e?e:()=>e;var l,c,f=n(66831);let d=(e,t)=>{let n=e.find(e=>t(e));if(!n)throw new f.b("Ref could not be found.",void 0,void 0);return n},p=e=>d(e,e=>e.isMasterRef),h=(e,t)=>d(e,e=>e.id===t),g=(e,t)=>d(e,e=>e.label===t),m=e=>e.replace(/%3B/g,";"),v=e=>{let t;for(let n of e.split("; ")){let e=n.split("=");if("io.prismic.preview"===m(e[0]).replace(/%3D/g,"=")){t=m(e.slice(1).join("="));continue}}return t},y=e=>e.replace(/(\n| )*( |{|})(\n| )*/gm,(e,t,n)=>n);class b extends f.b{}class _ extends f.b{}class S extends f.b{}let E={accessToken:"access_token"},O=e=>"string"==typeof e?e:[e.field,"desc"===e.direction?e.direction:void 0].filter(Boolean).join(" "),w=(e,t)=>{let{predicates:n,...r}=t,i=new URL("documents/search",`${e}/`);if(n)for(let e of a(n))i.searchParams.append("q",`[${e}]`);for(let e in r){let t=E[e]??e,n=r[e];if("orderings"===t){let e=r[t];if(null!=e){let t=a(e).map(e=>O(e)).join(",");n=`[${t}]`}}else"routes"===t&&"object"==typeof r[t]&&(n=JSON.stringify(a(r[t])));null!=n&&i.searchParams.set(t,a(n).join(","))}return i.toString()};var x=n(75744);let T=e=>{if((0,x.Z)(e))return`https://${e}.cdn.prismic.io/api/v2`;throw new f.b(`An invalid Prismic repository name was given: ${e}`,void 0,void 0)},C=e=>{try{return new URL(e),!0}catch{return!1}};var P=n(98737),A=Object.defineProperty,k=(e,t,n)=>t in e?A(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,j=(e,t,n)=>(k(e,"symbol"!=typeof t?t+"":t,n),n);(l=c||(c={})).Master="Master",l.ReleaseID="ReleaseID",l.ReleaseLabel="ReleaseLabel",l.Manual="Manual";let I=e=>P.l.at("document.type",e),R=e=>P.l.at("document.tags",a(e)),D=e=>P.l.any("document.tags",a(e)),N=(e,t)=>new L(e,t);class L{constructor(e,t={}){if(j(this,"endpoint"),j(this,"accessToken"),j(this,"routes"),j(this,"brokenRoute"),j(this,"fetchFn"),j(this,"fetchOptions"),j(this,"defaultParams"),j(this,"refState",{mode:c.Master,autoPreviewsEnabled:!0}),j(this,"cachedRepository"),j(this,"cachedRepositoryExpiration",0),j(this,"graphqlFetch",this.graphQLFetch.bind(this)),C(e)?this.endpoint=e:this.endpoint=T(e),this.accessToken=t.accessToken,this.routes=t.routes,this.brokenRoute=t.brokenRoute,this.fetchOptions=t.fetchOptions,this.defaultParams=t.defaultParams,t.ref&&this.queryContentFromRef(t.ref),"function"==typeof t.fetch)this.fetchFn=t.fetch;else if("function"==typeof globalThis.fetch)this.fetchFn=globalThis.fetch;else throw new f.b("A valid fetch implementation was not provided. In environments where fetch is not available (including Node.js), a fetch implementation must be provided via a polyfill or the `fetch` option.",void 0,void 0);this.fetchFn===globalThis.fetch&&(this.fetchFn=this.fetchFn.bind(globalThis)),this.graphQLFetch=this.graphQLFetch.bind(this)}enableAutoPreviews(){this.refState.autoPreviewsEnabled=!0}enableAutoPreviewsFromReq(e){this.refState.httpRequest=e,this.refState.autoPreviewsEnabled=!0}disableAutoPreviews(){this.refState.autoPreviewsEnabled=!1}async query(e,t){let n=await this.buildQueryURL({...t,predicates:e});return await this.fetch(n,t)}async get(e){let t=await this.buildQueryURL(e);return await this.fetch(t,e)}async getFirst(e){var t;let n={...e};e&&e.page||(null==e?void 0:e.pageSize)||(n.pageSize=(null==(t=this.defaultParams)?void 0:t.pageSize)??1);let r=await this.buildQueryURL(n),i=(await this.fetch(r,e)).results[0];if(i)return i;throw new f.b("No documents were returned",r,void 0)}async dangerouslyGetAll(e={}){var t;let n;let{limit:r=1/0,...i}=e,o={...i,pageSize:Math.min(r,i.pageSize||(null==(t=this.defaultParams)?void 0:t.pageSize)||100)},a=[];for(;(!n||n.next_page)&&a.length<r;){let e=n?n.page+1:void 0;n=await this.get({...o,page:e}),a.push(...n.results),n.next_page&&await new Promise(e=>setTimeout(e,500))}return a.slice(0,r)}async getByID(e,t){return await this.getFirst(s(t,P.l.at("document.id",e)))}async getByIDs(e,t){return await this.get(s(t,P.l.in("document.id",e)))}async getAllByIDs(e,t){return await this.dangerouslyGetAll(s(t,P.l.in("document.id",e)))}async getByUID(e,t,n){return await this.getFirst(s(n,[I(e),P.l.at(`my.${e}.uid`,t)]))}async getByUIDs(e,t,n){return await this.get(s(n,[I(e),P.l.in(`my.${e}.uid`,t)]))}async getAllByUIDs(e,t,n){return await this.dangerouslyGetAll(s(n,[I(e),P.l.in(`my.${e}.uid`,t)]))}async getSingle(e,t){return await this.getFirst(s(t,I(e)))}async getByType(e,t){return await this.get(s(t,I(e)))}async getAllByType(e,t){return await this.dangerouslyGetAll(s(t,I(e)))}async getByTag(e,t){return await this.get(s(t,D(e)))}async getAllByTag(e,t){return await this.dangerouslyGetAll(s(t,D(e)))}async getByEveryTag(e,t){return await this.get(s(t,R(e)))}async getAllByEveryTag(e,t){return await this.dangerouslyGetAll(s(t,R(e)))}async getBySomeTags(e,t){return await this.get(s(t,D(e)))}async getAllBySomeTags(e,t){return await this.dangerouslyGetAll(s(t,D(e)))}async getRepository(e){let t=new URL(this.endpoint);return this.accessToken&&t.searchParams.set("access_token",this.accessToken),await this.fetch(t.toString(),e)}async getRefs(e){return(await this.getRepository(e)).refs}
27async getRefByID(e,t){return h(await this.getRefs(t),e)}async getRefByLabel(e,t){return g(await this.getRefs(t),e)}async getMasterRef(e){return p(await this.getRefs(e))}async getReleases(e){return(await this.getRefs(e)).filter(e=>!e.isMasterRef)}async getReleaseByID(e,t){return h(await this.getReleases(t),e)}async getReleaseByLabel(e,t){return g(await this.getReleases(t),e)}async getTags(e){try{let t=await this.getCachedRepositoryForm("tags",e),n=new URL(t.action);return this.accessToken&&n.searchParams.set("access_token",this.accessToken),await this.fetch(n.toString(),e)}catch{return(await this.getRepository(e)).tags}}async buildQueryURL({signal:e,fetchOptions:t,...n}={}){let r=n.ref||await this.getResolvedRefString({signal:e,fetchOptions:t}),i=n.integrationFieldsRef||(await this.getCachedRepository({signal:e,fetchOptions:t})).integrationFieldsRef||void 0;return w(this.endpoint,{...this.defaultParams,...n,ref:r,integrationFieldsRef:i,routes:n.routes||this.routes,brokenRoute:n.brokenRoute||this.brokenRoute,accessToken:n.accessToken||this.accessToken})}async resolvePreviewURL(e){var t,n;let r=e.documentID,i=e.previewToken;if(void 0!==globalThis.location){let e=new URLSearchParams(globalThis.location.search);r=r||e.get("documentId"),i=i||e.get("token")}else if(this.refState.httpRequest){if("query"in this.refState.httpRequest)r=r||(null==(t=this.refState.httpRequest.query)?void 0:t.documentId),i=i||(null==(n=this.refState.httpRequest.query)?void 0:n.token);else if("url"in this.refState.httpRequest&&this.refState.httpRequest.url){let e=new URL(this.refState.httpRequest.url).searchParams;r=r||e.get("documentId"),i=i||e.get("token")}}if(null!=r&&null!=i){let t=o(await this.getByID(r,{ref:i,lang:"*",signal:e.signal,fetchOptions:e.fetchOptions}),e.linkResolver);if("string"==typeof t)return t}return e.defaultURL}queryLatestContent(){this.refState.mode=c.Master}queryContentFromReleaseByID(e){this.refState={...this.refState,mode:c.ReleaseID,releaseID:e}}queryContentFromReleaseByLabel(e){this.refState={...this.refState,mode:c.ReleaseLabel,releaseLabel:e}}queryContentFromRef(e){this.refState={...this.refState,mode:c.Manual,ref:e}}async graphQLFetch(e,t){let n=await this.getCachedRepository(),r=await this.getResolvedRefString(),i={"Prismic-ref":r,Authorization:this.accessToken?`Token ${this.accessToken}`:"",...t?t.headers:{}};n.integrationFieldsRef&&(i["Prismic-integration-field-ref"]=n.integrationFieldsRef);let o={};for(let e in i)i[e]&&(o[e.toLowerCase()]=i[e]);let a=new URL(e);a.searchParams.set("ref",r);let s=a.searchParams.get("query");return s&&a.searchParams.set("query",y(s)),await this.fetchFn(a.toString(),{...t,headers:o})}async getCachedRepository(e){return(!this.cachedRepository||Date.now()>=this.cachedRepositoryExpiration)&&(this.cachedRepositoryExpiration=Date.now()+5e3,this.cachedRepository=await this.getRepository(e)),this.cachedRepository}async getCachedRepositoryForm(e,t){let n=(await this.getCachedRepository(t)).forms[e];if(!n)throw new f.b(`Form with name "${e}" could not be found`,void 0,void 0);return n}async getResolvedRefString(e){var t,n;if(this.refState.autoPreviewsEnabled){let e,r;if((null==(t=this.refState.httpRequest)?void 0:t.headers)?"get"in this.refState.httpRequest.headers&&"function"==typeof this.refState.httpRequest.headers.get?r=this.refState.httpRequest.headers.get("cookie"):"cookie"in this.refState.httpRequest.headers&&(r=this.refState.httpRequest.headers.cookie):(null==(n=globalThis.document)?void 0:n.cookie)&&(r=globalThis.document.cookie),r&&(e=v(r)),e)return e}let r=await this.getCachedRepository(e),i=this.refState.mode;if(i===c.ReleaseID)return h(r.refs,this.refState.releaseID).ref;if(i===c.ReleaseLabel)return g(r.refs,this.refState.releaseLabel).ref;if(i===c.Manual){let e=await u(this.refState.ref)();if("string"==typeof e)return e}return p(r.refs).ref}async fetch(e,t={}){var n,r,i,o;let a;let s=await this.fetchFn(e,{...this.fetchOptions,...t.fetchOptions,headers:{...null==(n=this.fetchOptions)?void 0:n.headers,...null==(r=t.fetchOptions)?void 0:r.headers},signal:(null==(i=t.fetchOptions)?void 0:i.signal)||t.signal||(null==(o=this.fetchOptions)?void 0:o.signal)}
27);try{a=await s.json()}catch{if(404===s.status)throw new _(`Prismic repository not found. Check that "${this.endpoint}" is pointing to the correct repository.`,e,void 0);throw new f.b(void 0,e,void 0)}switch(s.status){case 200:return a;case 400:throw new S(a.message,e,a);case 401:case 403:throw new b("error"in a?a.error:a.message,e,a);case 429:{let n=Number(s.headers.get("retry-after")),r=Number.isNaN(n)?1e3:n;return await new Promise((n,i)=>{setTimeout(async()=>{try{n(await this.fetch(e,t))}catch(e){i(e)}},r)})}}throw new f.b(void 0,e,a)}}var M=n(27406);let F=function(){let{req:e,ref:t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=N(M.publicConfig.prismic.repoName,{ref:t,defaultParams:{orderings:{field:"document.first_publication_date",direction:"desc"}}});return e&&n.enableAutoPreviewsFromReq(e),n};async function U(e){let{req:t,predicates:n=[],ref:r,...i}=e,o=F({req:t,ref:r});return await o.get({...i,predicates:n})}},4468:function(e,t,n){"use strict";var r,i,o;n.d(t,{T:function(){return r},DocumentType:function(){return i}}),(r||(r={})).PT="pt-pt",(o=i||(i={})).ABOUT_PAGE="about_page",o.ARTICLE="article",o.AUTHOR="author",o.CATEGORY="category",o.COLOR_SCHEME="color_scheme",o.CONTENT_THEME="content_theme",o.CONTRIBUTE="contribute",o.DATA_PAGE="data_page",o.HOME_PAGE="home_page",o.NEWSLETTER="newsletter",o.NEWSLETTER_SERIES="newsletter_series",o.PODCAST="podcast",o.PODCAST_EPISODE="podcast_episode",o.PRIVACY_POLICY="privacy_policy"},43557:function(e,t,n){"use strict";n.d(t,{Ax:function(){return Z},wm:function(){return G},Ee:function(){return V},de:function(){return z},M6:function(){return W},Y1:function(){return Q},Dr:function(){return H}});var r,i,o,a,s,u,l,c,f,d,p,h,g,m,v,y,b,_,S,E,O,w,x,T,C,P,A,k,j,I,R,D,N=n(75744),L=n(66831),M=n(17563),F=n(27406),U=n(56534);let $=(e=>{if((0,N.Z)(e))return`https://${e}.cdn.prismic.io/graphql`;throw new L.b(`An invalid Prismic repository name was given: ${e}`,void 0,void 0)})(F.publicConfig.prismic.repoName),B=(e,t,n)=>async()=>{let r=(0,U.u)(n),i=(0,M.stringifyUrl)({url:$,query:{query:e,variables:t&&JSON.stringify(t)}}),o=await r.graphQLFetch(i);if(!o.ok)return Promise.reject(await o.text());let a=await o.json();return a.errors?Promise.reject(a.errors[0]):a.data},z=e=>{let{query:t,variables:n,clientOptions:r}=e;return B(t,n,r)()};var q=n(88767);(r=b||(b={})).META_FIRSTPUBLICATIONDATE_ASC="meta_firstPublicationDate_ASC",r.META_FIRSTPUBLICATIONDATE_DESC="meta_firstPublicationDate_DESC",r.META_LASTPUBLICATIONDATE_ASC="meta_lastPublicationDate_ASC",r.META_LASTPUBLICATIONDATE_DESC="meta_lastPublicationDate_DESC",r.TITLE_ASC="title_ASC",r.TITLE_DESC="title_DESC",(i=_||(_={})).AUDIO_URL_ASC="audio_url_ASC",i.AUDIO_URL_DESC="audio_url_DESC",i.BANNER_IMAGE_CREDITS_ASC="banner_image_credits_ASC",i.BANNER_IMAGE_CREDITS_DESC="banner_image_credits_DESC",i.META_DESCRIPTION_ASC="meta_description_ASC",i.META_DESCRIPTION_DESC="meta_description_DESC",i.META_FIRSTPUBLICATIONDATE_ASC="meta_firstPublicationDate_ASC",i.META_FIRSTPUBLICATIONDATE_DESC="meta_firstPublicationDate_DESC",i.META_LASTPUBLICATIONDATE_ASC="meta_lastPublicationDate_ASC",i.META_LASTPUBLICATIONDATE_DESC="meta_lastPublicationDate_DESC",i.SUBTITLE_ASC="subtitle_ASC",i.SUBTITLE_DESC="subtitle_DESC",i.TITLE_ASC="title_ASC",i.TITLE_DESC="title_DESC",i.ZOTERO_FOOTNOTES_URL_ASC="zotero_footnotes_url_ASC",i.ZOTERO_FOOTNOTES_URL_DESC="zotero_footnotes_url_DESC",(o=S||(S={})).BIO_ASC="bio_ASC",o.BIO_DESC="bio_DESC",o.INSTAGRAM_ASC="instagram_ASC",o.INSTAGRAM_DESC="instagram_DESC",o.META_FIRSTPUBLICATIONDATE_ASC="meta_firstPublicationDate_ASC",o.META_FIRSTPUBLICATIONDATE_DESC="meta_firstPublicationDate_DESC",o.META_LASTPUBLICATIONDATE_ASC="meta_lastPublicationDate_ASC",o.META_LASTPUBLICATIONDATE_DESC="meta_lastPublicationDate_DESC",o.NAME_ASC="name_ASC",o.NAME_DESC="name_DESC",o.TWITTER_HANDLE_ASC="twitter_handle_ASC",o.TWITTER_HANDLE_DESC="twitter_handle_DESC",(a=E||(E={})).META_FIRSTPUBLICATIONDATE_ASC="meta_firstPublicationDate_ASC",a.META_FIRSTPUBLICATIONDATE_DESC="meta_firstPublicationDate_DESC",a.META_LASTPUBLICATIONDATE_ASC="meta_lastPublicationDate_ASC",a.META_LASTPUBLICATIONDATE_DESC="meta_lastPublicationDate_DESC",a.NAME_ASC="name_ASC",a.NAME_DESC="name_DESC",(s=O||(O={})).META_FIRSTPUBLICATIONDATE_ASC="meta_firstPublicationDate_ASC",s.META_FIRSTPUBLICATIONDATE_DESC="meta_firstPublicationDate_DESC",s.META_LASTPUBLICATIONDATE_ASC="meta_lastPublicationDate_ASC",s.META_LASTPUBLICATIONDATE_DESC="meta_lastPublicationDate_DESC",s.NAME_ASC="name_ASC",s.NAME_DESC="name_DESC",(u=w||(w={})).HEADING_ASC="heading_ASC",u.HEADING_DESC="heading_DESC",u.META_FIRSTPUBLICATIONDATE_ASC="meta_firstPublicationDate_ASC",u.META_FIRSTPUBLICATIONDATE_DESC="meta_firstPublicationDate_DESC",u.META_LASTPUBLICATIONDATE_ASC="meta_lastPublicationDate_ASC",u.META_LASTPUBLICATIONDATE_DESC="meta_lastPublicationDate_DESC",u.NAME_ASC="name_ASC",u.NAME_DESC="name_DESC",(l=x||(x={})).META_FIRSTPUBLICATIONDATE_ASC="meta_firstPublicationDate_ASC",l.META_FIRSTPUBLICATIONDATE_DESC="meta_firstPublicationDate_DESC",l.META_LASTPUBLICATIONDATE_ASC="meta_lastPublicationDate_ASC",l.META_LASTPUBLICATIONDATE_DESC="meta_lastPublicationDate_DESC",l.TITLE_ASC="title_ASC",l.TITLE_DESC="title_DESC",(c=T||(T={})).DESCRIPTION_ASC="description_ASC",c.DESCRIPTION_DESC="description_DESC",c.META_FIRSTPUBLICATIONDATE_ASC="meta_firstPublicationDate_ASC",c.META_FIRSTPUBLICATIONDATE_DESC="meta_firstPublicationDate_DESC",c.META_LASTPUBLICATIONDATE_ASC="meta_lastPublicationDate_ASC",c.META_LASTPUBLICATIONDATE_DESC="meta_lastPublicationDate_DESC",c.SEO_DESCRIPTION_ASC="seo_de
27scription_ASC",c.SEO_DESCRIPTION_DESC="seo_description_DESC",c.TITLE_ASC="title_ASC",c.TITLE_DESC="title_DESC",(f=C||(C={})).META_FIRSTPUBLICATIONDATE_ASC="meta_firstPublicationDate_ASC",f.META_FIRSTPUBLICATIONDATE_DESC="meta_firstPublicationDate_DESC",f.META_LASTPUBLICATIONDATE_ASC="meta_lastPublicationDate_ASC",f.META_LASTPUBLICATIONDATE_DESC="meta_lastPublicationDate_DESC",(d=P||(P={})).META_FIRSTPUBLICATIONDATE_ASC="meta_firstPublicationDate_ASC",d.META_FIRSTPUBLICATIONDATE_DESC="meta_firstPublicationDate_DESC",d.META_LASTPUBLICATIONDATE_ASC="meta_lastPublicationDate_ASC",d.META_LASTPUBLICATIONDATE_DESC="meta_lastPublicationDate_DESC",(p=A||(A={})).META_DESCRIPTION_ASC="meta_description_ASC",p.META_DESCRIPTION_DESC="meta_description_DESC",p.META_FIRSTPUBLICATIONDATE_ASC="meta_firstPublicationDate_ASC",p.META_FIRSTPUBLICATIONDATE_DESC="meta_firstPublicationDate_DESC",p.META_LASTPUBLICATIONDATE_ASC="meta_lastPublicationDate_ASC",p.META_LASTPUBLICATIONDATE_DESC="meta_lastPublicationDate_DESC",p.META_TITLE_ASC="meta_title_ASC",p.META_TITLE_DESC="meta_title_DESC",p.NAME_ASC="name_ASC",p.NAME_DESC="name_DESC",p.PAGE_CONTENT_ASC="page_content_ASC",p.PAGE_CONTENT_DESC="page_content_DESC",(h=k||(k={})).DESCRIPTION_ASC="description_ASC",h.DESCRIPTION_DESC="description_DESC",h.META_FIRSTPUBLICATIONDATE_ASC="meta_firstPublicationDate_ASC",h.META_FIRSTPUBLICATIONDATE_DESC="meta_firstPublicationDate_DESC",h.META_LASTPUBLICATIONDATE_ASC="meta_lastPublicationDate_ASC",h.META_LASTPUBLICATIONDATE_DESC="meta_lastPublicationDate_DESC",h.TITLE_ASC="title_ASC",h.TITLE_DESC="title_DESC",(g=j||(j={})).AUDIO_FILE_URL_ASC="audio_file_url_ASC",g.AUDIO_FILE_URL_DESC="audio_file_url_DESC",g.ITUNES_EPISODE_TYPE_ASC="itunes_episode_type_ASC",g.ITUNES_EPISODE_TYPE_DESC="itunes_episode_type_DESC",g.META_FIRSTPUBLICATIONDATE_ASC="meta_firstPublicationDate_ASC",g.META_FIRSTPUBLICATIONDATE_DESC="meta_firstPublicationDate_DESC",g.META_LASTPUBLICATIONDATE_ASC="meta_lastPublicationDate_ASC",g.META_LASTPUBLICATIONDATE_DESC="meta_lastPublicationDate_DESC",g.SHORT_DESCRIPTION_ASC="short_description_ASC",g.SHORT_DESCRIPTION_DESC="short_description_DESC",g.SHOW_NOTES_ASC="show_notes_ASC",g.SHOW_NOTES_DESC="show_notes_DESC",g.TITLE_ASC="title_ASC",g.TITLE_DESC="title_DESC",g.TRANSCRIPTION_ASC="transcription_ASC",g.TRANSCRIPTION_DESC="transcription_DESC",(m=I||(I={})).APPLE_URL_ASC="apple_url_ASC",m.APPLE_URL_DESC="apple_url_DESC",m.COPYRIGHT_ASC="copyright_ASC",m.COPYRIGHT_DESC="copyright_DESC",m.DEEZER_URL_ASC="deezer_url_ASC",m.DEEZER_URL_DESC="deezer_url_DESC",m.DESCRIPTION_ASC="description_ASC",m.DESCRIPTION_DESC="description_DESC",m.GOOGLE_PODCASTS_URL_ASC="google_podcasts_url_ASC",m.GOOGLE_PODCASTS_URL_DESC="google_podcasts_url_DESC",m.LANGUAGE_ASC="language_ASC",m.LANGUAGE_DESC="language_DESC",m.MAX_EPISODES_ASC="max_episodes_ASC",m.MAX_EPISODES_DESC="max_episodes_DESC",m.META_FIRSTPUBLICATIONDATE_ASC="meta_firstPublicationDate_ASC",m.META_FIRSTPUBLICATIONDATE_DESC="meta_firstPublicationDate_DESC",m.META_LASTPUBLICATIONDATE_ASC="meta_lastPublicationDate_ASC",m.META_LASTPUBLICATIONDATE_DESC="meta_lastPublicationDate_DESC",m.NAME_ASC="name_ASC",m.NAME_DESC="name_DESC",m.OWNER_EMAIL_ASC="owner_email_ASC",m.OWNER_EMAIL_DESC="owner_email_DESC",m.OWNER_NAME_ASC="owner_name_ASC",m.OWNER_NAME_DESC="owner_name_DESC",m.POCKET_CASTS_URL_ASC="pocket_casts_url_ASC",m.POCKET_CASTS_URL_DESC="pocket_casts_url_DESC",m.SHOW_LINK_ASC="show_link_ASC",m.SHOW_LINK_DESC="show_link_DESC",m.SPOTIFY_URL_ASC="spotify_url_ASC",m.SPOTIFY_URL_DESC="spotify_url_DESC",m.SUBTITLE_ASC="subtitle_ASC",m.SUBTITLE_DESC="subtitle_DESC",(v=R||(R={})).META_FIRSTPUBLICATIONDATE_ASC="meta_firstPublicationDate_ASC",v.META_FIRSTPUBLICATIONDATE_DESC="meta_firstPublicationDate_DESC",v.META_LASTPUBLICATIONDATE_ASC="meta_lastPublicationDate_ASC",v.META_LASTPUBLICATIONDATE_DESC="meta_lastPublicationDate_DESC",v.TITLE_ASC="title_ASC",v.TITLE_DESC="title_DESC",(y=D||(D={})).META_FIRSTPUBLICATIONDATE_ASC="meta_firstPublicationDate_ASC",y.META_FIRSTPUBLICATIONDATE_DESC="meta_firstPublicationDate_DESC",y.META_LASTPUBLICATIONDATE_ASC="meta_lastPublicationDate_ASC",y.META_LASTPUBLICATIONDATE_DESC="meta_lastPublicationDate_DESC";
27let V="\n    query SiteConfig {\n  allSite_configs {\n    edges {\n      node {\n        footer_important_links {\n          text\n          url\n          is_highlighted\n        }\n        navbar_links {\n          text\n          url\n          is_highlighted\n        }\n      }\n    }\n  }\n}\n    ",H=(e,t)=>(0,q.useQuery)(["PlayerEpisode",e],B("\n    query PlayerEpisode($uid: String!, $lang: String!) {\n  episode: podcast_episode(uid: $uid, lang: $lang) {\n    title\n    audio_file_url\n    episode_image\n    short_description\n    transcription\n    podcast {\n      __typename\n      ... on Podcast {\n        _meta {\n          uid\n        }\n        name\n        image\n        apple_url\n        deezer_url\n        google_podcasts_url\n        pocket_casts_url\n        spotify_url\n      }\n    }\n  }\n}\n    ",e),t),Z='\n    query ArticlesList($pageSize: Int!, $after: String) {\n  _allDocuments(\n    type_in: ["article", "newsletter", "podcast_episode"]\n    first: $pageSize\n    after: $after\n    sortBy: meta_firstPublicationDate_DESC\n  ) {\n    edges {\n      cursor\n      node {\n        __typename\n        _meta {\n          uid\n          firstPublicationDate\n        }\n        ... on Article {\n          rtTitle: title\n          subtitle\n          description: meta_description\n          image: banner_image\n          categories {\n            category_link {\n              ... on Category {\n                name\n              }\n            }\n          }\n        }\n        ... on Podcast_episode {\n          title\n          description: short_description\n          image\n          categories {\n            category_link {\n              ... on Category {\n                name\n              }\n            }\n          }\n        }\n        ... on Newsletter {\n          rtTitle: title\n          description\n          image: preview_image\n        }\n      }\n    }\n  }\n}\n    ',W=(e,t)=>(0,q.useQuery)(["ArticlesByAuthor",e],B("\n    query ArticlesByAuthor($authorID: String!) {\n  allArticles(where: {authors: {link: $authorID}}) {\n    edges {\n      node {\n        _meta {\n          uid\n          firstPublicationDate\n        }\n        title\n        subtitle\n        meta_description\n        banner_image\n      }\n    }\n  }\n}\n    ",e),t),Q=(e,t)=>(0,q.useQuery)(["AuthorBio",e],B('\n    query AuthorBio($uid: String!) {\n  author(uid: $uid, lang: "pt-PT") {\n    bio\n  }\n}\n    ',e),t),G="\n    query PodcastEpisodesList($podcastId: String!, $lang: String!, $pageSize: Int!, $after: String) {\n  episodes: allPodcast_episodes(\n    sortBy: meta_firstPublicationDate_DESC\n    lang: $lang\n    first: $pageSize\n    after: $after\n    where: {podcast: $podcastId}\n  ) {\n    pageInfo {\n      hasNextPage\n    }\n    edges {\n      cursor\n      node {\n        _meta {\n          uid\n        }\n        title\n      }\n    }\n  }\n}\n    "},56006:function(e,t,n){"use strict";n.d(t,{h:function(){return a}});var r=n(85893);n(67294);var i=n(86010),o=n(54398);let a=e=>{let{as:t="span",children:n,className:a,color:s,inline:u,inlineBlock:l,inlineFlex:c}=e;return(0,r.jsx)(t,{className:(0,i.Z)(u&&"inline",l&&"inline-block",c&&"inline-flex",a,(0,o.Z)(s)),children:n})}},93803:function(e,t,n){"use strict";n.d(t,{h:function(){return o}});var r=n(85893),i=n(86010);let o=e=>{let{className:t,children:n,...o}=e;return(0,r.jsx)("button",{...o,className:(0,i.Z)("flex h-9 w-9 items-center justify-center rounded",t),children:n})}},444:function(e,t,n){"use strict";n.d(t,{I:function(){return a}});var r=n(85893),i=n(86010),o=n(82175);function a(e){let{className:t,label:n,isFormik:a,error:s,...u}=e,l=a?o.gN:"input";return(0,r.jsxs)("label",{className:"flex flex-col space-y-2 font-display",children:[(0,r.jsx)("span",{className:"text-sm text-primary-700 theme-peach:text-primary-800 dark:text-secondary-500",children:n}),(0,r.jsx)(l,{...u,className:(0,i.Z)("max-w-md rounded p-2","text-black dark:text-white","placeholder:text-gray-700 dark:placeholder:text-primary-200","bg-primary-50 dark:bg-primary-600","border border-primary-200 dark:border-primary-400",t)}),s]})}},52898:function(e,t,n){"use strict";var r=n(85893),i=n(18222);t.Z=e=>{let{src:t,alt:n,imgixParams:o,lazySize:a,reallyLazy:s,...u}=e,l=(0,i.s)(t,{lazySize:a,imgixParams:o});return(0,r.jsx)("img",{...u,ref:l.ref,src:l.url,alt:n,loading:s?"lazy":void 0})}},47556:function(e,t,n){"use strict";n.d(t,{r:function(){return a}});var r=n(85893),i=n(41664),o=n.n(i);let a=e=>{let{children:t,...n}=e;if("isExternal"in n){let{isExternal:e,href:i,...o}=n;return(0,r.jsx)("a",{...o,href:i,target:"_blank",rel:"noopener noreferrer",children:t})}let{as:i,replace:a,scroll:s,shallow:u,passHref:l,prefetch:c=!1,href:f,...d}=n;return(0,r.jsx)(o(),{href:f,as:i,replace:a,scroll:s,shallow:u,passHref:l,prefetch:c,...d,children:t})};t.Z=a},66446:function(e,t,n){"use strict";n.d(t,{g:function(){return a}});var r=n(85893),i=n(77058),o=n(86010);let a=e=>{let{className:t,fullScreen:n,size:a="medium"}=e,{t:s}=(0,i.$)("general");return(0,r.jsx)("div",{className:(0,o.Z)("flex flex-col items-center justify-center","mx-auto max-w-screen-lg",{"min-h-screen-minus-nav":n},t),children:(0,r.jsx)("img",{className:(0,o.Z)("animate-pulse",{"h-8 sm:h-10 md:h-12":"small"===a,"h-12 sm:h-16 md:h-20":"medium"===a}),src:"/icon.svg",alt:s("loading")})})}},25057:function(e,t,n){"use strict";n.d(t,{fB:function(){return i},o6:function(){return o},Er:function(){return a},vu:function(){return s},qk:function(){return u}});var r=n(85893);let i=e=>(0,r.jsx)("svg",{...e,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,r.jsx)("path",{fill:"currentColor",d:"M5.34 0A5.328 5.328 0 000 5.34v13.32A5.328 5.328 0 005.34 24h13.32A5.328 5.328 0 0024 18.66V5.34A5.328 5.328 0 0018.66 0zm6.525 2.568c2.336 0 4.448.902 6.056 2.587 1.224 1.272 1.912 2.619 2.264 4.392.12.59.12 2.2.007 2.864a8.506 8.506 0 01-3.24 5.296c-.608.46-2.096 1.261-2.336 1.261-.088 0-.096-.091-.056-.46.072-.592.144-.715.48-.856.536-.224 1.448-.874 2.008-1.435a7.644 7.644 0 002.008-3.536c.208-.824.184-2.656-.048-3.504-.728-2.696-2.928-4.792-5.624-5.352-.784-.16-2.208-.16-3 0-2.728.56-4.984 2.76-5.672 5.528-.184.752-.184 2.584 0 3.336.456 1.832 
271.64 3.512 3.192 4.512.304.2.672.408.824.472.336.144.408.264.472.856.04.36.03.464-.056.464-.056 0-.464-.176-.896-.384l-.04-.03c-2.472-1.216-4.056-3.274-4.632-6.012-.144-.706-.168-2.392-.03-3.04.36-1.74 1.048-3.1 2.192-4.304 1.648-1.737 3.768-2.656 6.128-2.656zm.134 2.81c.409.004.803.04 1.106.106 2.784.62 4.76 3.408 4.376 6.174-.152 1.114-.536 2.03-1.216 2.88-.336.43-1.152 1.15-1.296 1.15-.023 0-.048-.272-.048-.603v-.605l.416-.496c1.568-1.878 1.456-4.502-.256-6.224-.664-.67-1.432-1.064-2.424-1.246-.64-.118-.776-.118-1.448-.008-1.02.167-1.81.562-2.512 1.256-1.72 1.704-1.832 4.342-.264 6.222l.413.496v.608c0 .336-.027.608-.06.608-.03 0-.264-.16-.512-.36l-.034-.011c-.832-.664-1.568-1.842-1.872-2.997-.184-.698-.184-2.024.008-2.72.504-1.878 1.888-3.335 3.808-4.019.41-.145 1.133-.22 1.814-.211zm-.13 2.99c.31 0 .62.06.844.178a2.17 2.17 0 011.04 1.259c.464 1.578-1.208 2.96-2.72 2.254h-.015c-.712-.331-1.096-.956-1.104-1.77 0-.733.408-1.371 1.112-1.745.224-.117.534-.176.844-.176zm-.011 4.728c.988-.004 1.706.349 1.97.97.198.464.124 1.932-.218 4.302-.232 1.656-.36 2.074-.68 2.356-.44.39-1.064.498-1.656.288h-.003c-.716-.257-.87-.605-1.164-2.644-.341-2.37-.416-3.838-.218-4.302.262-.616.974-.966 1.97-.97z"})}),o=e=>(0,r.jsx)("svg",{...e,role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,r.jsx)("path",{fill:"currentColor",d:"M18.81 4.16v3.03H24V4.16h-5.19zM6.27 8.38v3.027h5.189V8.38h-5.19zm12.54 0v3.027H24V8.38h-5.19zM6.27 12.594v3.027h5.189v-3.027h-5.19zm6.271 0v3.027h5.19v-3.027h-5.19zm6.27 0v3.027H24v-3.027h-5.19zM0 16.81v3.029h5.19v-3.03H0zm6.27 0v3.029h5.189v-3.03h-5.19zm6.271 0v3.029h5.19v-3.03h-5.19zm6.27 0v3.029H24v-3.03h-5.19Z"})}),a=e=>(0,r.jsx)("svg",{...e,role:"img",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,r.jsx)("path",{fill:"currentColor",d:"M1.5 9.68c-.83 0-1.5.67-1.5 1.5V12.81a1.5 1.5 0 1 0 3 0v-1.63c0-.83-.67-1.5-1.5-1.5zM22.5 9.68c-.83 0-1.5.67-1.5 1.5V12.81a1.5 1.5 0 1 0 3 0v-1.63c0-.83-.67-1.5-1.5-1.5zM6.68 14.59c-.83 0-1.5.67-1.5 1.5V17.72a1.5 1.5 0 1 0 3 0V16.1c0-.83-.67-1.5-1.5-1.5zM6.68 4.77c-.83 0-1.5.67-1.5 1.5V11.63a1.5 1.5 0 0 0 3 0V6.26c0-.83-.67-1.5-1.5-1.5zM17.32 4.77c-.83 0-1.5.67-1.5 1.5V7.91a1.5 1.5 0 0 0 3 0V6.27c0-.83-.67-1.5-1.5-1.5zM12 0c-.83 0-1.5.67-1.5 1.5v1.63a1.5 1.5 0 1 0 3 0V1.5C13.5.67 12.83 0 12 0zM12 19.36c-.83 0-1.5.67-1.5 1.5V22.5a1.5 1.5 0 1 0 3 .01v-1.64c0-.82-.67-1.5-1.5-1.5zM17.32 10.9c-.83 0-1.5.68-1.5 1.5v5.33a1.5 1.5 0 0 0 3 0V12.4c0-.83-.67-1.5-1.5-1.5zM12 6.13c-.83 0-1.5.68-1.5 1.5v8.73a1.5 1.5 0 0 0 3 0V7.64c0-.83-.67-1.5-1.5-1.5z"})}),s=e=>(0,r.jsx)("svg",{...e,role:"img",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,r.jsx)("path",{fill:"currentColor",d:"M12,0C5.372,0,0,5.372,0,12c0,6.628,5.372,12,12,12c6.628,0,12-5.372,12-12 C24,5.372,18.628,0,12,0z M15.564,12c0-1.968-1.596-3.564-3.564-3.564c-1.968,0-3.564,1.595-3.564,3.564 c0,1.968,1.595,3.564,3.564,3.564V17.6c-3.093,0-5.6-2.507-5.6-5.6c0-3.093,2.507-5.6,5.6-5.6c3.093,0,5.6,2.507,5.6,5.6H15.564z M19,12c0-3.866-3.134-7-7-7c-3.866,0-7,3.134-7,7c0,3.866,3.134,7,7,7v2.333c-5.155,0-9.333-4.179-9.333-9.333 c0-5.155,4.179-9.333,9.333-9.333c5.155,0,9.333,4.179,9.333,9.333H19z"})}),u=e=>(0,r.jsx)("svg",{...e,role:"img",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,r.jsx)("path",{fill:"currentColor",d:"M12 0C5.4 0 0 5.4 0 12s5.4 12 12 12 12-5.4 12-12S18.66 0 12 0zm5.521 17.34c-.24.359-.66.48-1.021.24-2.82-1.74-6.36-2.101-10.561-1.141-.418.122-.779-.179-.899-.539-.12-.421.18-.78.54-.9 4.56-1.021 8.52-.6 11.64 1.32.42.18.479.659.301 1.02zm1.44-3.3c-.301.42-.841.6-1.262.3-3.239-1.98-8.159-2.58-11.939-1.38-.479.12-1.02-.12-1.14-.6-.12-.48.12-1.021.6-1.141C9.6 9.9 15 10.561 18.72 12.84c.361.181.54.78.241 1.2zm.12-3.36C15.24 8.4 8.82 8.16 5.16 9.301c-.6.179-1.2-.181-1.38-.721-.18-.601.18-1.2.72-1.381 4.26-1.26 11.28-1.02 15.721 1.621.539.3.719 1.02.419 1.56-.299.421-1.02.599-1.559.3z"})})},81549:function(e,t,n){"use strict";n.d(t,{H:function(){return c}});var r=n(85893),i=n(67294),o=n(9008),a=n.n(o),s=n(11163),u=n(27406),l=n(8229);let c=e=>{let{children:t,pageTitle:n,description:o,image:c,path:f,twitter:d,type:p="website",withTitleSuffix:h=!0}
27=e,g=(0,s.useRouter)(),m="".concat(u.publicConfig.siteURL).concat(f||g.asPath),v=d?d.cardType:"summary",y=(0,l.G)(null==c?void 0:c.url),b=o||u.publicConfig.description,_=[{name:"description",content:b},{name:"twitter:card",content:v},{name:"twitter:site",content:u.publicConfig.socialMedia.twitter.username},{name:"twitter:title",content:n},{name:"twitter:description",content:b},{name:"twitter:image",content:y},{name:"twitter:image:alt",content:(null==c?void 0:c.alt)||""},{property:"og:url",content:m},{property:"og:type",content:p},{property:"og:title",content:n},{property:"og:description",content:b},{property:"og:image",content:y}],S=[n];return h&&S.push(u.publicConfig.title),(0,r.jsxs)(a(),{children:[(0,r.jsx)("title",{children:S.join(" | ")}),_.map(e=>(0,i.createElement)("meta",{...e,key:e.name||e.property})),t]})}},50624:function(e,t,n){"use strict";var r,i;n.d(t,{s:function(){return r}}),(i=r||(r={})).ARTICLES_RSS_FEED="/api/artigos/rss",i.PODCAST_RSS_FEED="/api/podcasts/rss/[uid]"},75297:function(e,t,n){"use strict";var r,i;n.d(t,{V:function(){return r}}),(i=r||(r={})).VIOLET="violet",i.BLACK="black",i.FOREST_GREEN="forest-green",i.TEAL="cs-teal",i.BLUE="cs-blue",i.PINK="cs-pink"},50252:function(e,t,n){"use strict";var r,i;n.d(t,{d:function(){return r}}),(i=r||(r={})).ABOUT="/sobre",i.ARTICLES_LIST="/artigos",i.ARTICLE="/artigos/[uid]",i.CATEGORIES_LIST="/categorias",i.CATEGORY="/categorias/[uid]",i.CONTENT_THEME="/series/[uid]",i.CONTRIBUTE="/contribuir",i.DATA="/dados",i.HOME="/",i.NEWSLETTER="/newsletter/[uid]",i.NEWSLETTER_SERIES="/newsletter",i.PODCASTS_LIST="/podcasts",i.PODCAST="/podcasts/[uid]",i.PODCAST_EPISODE="/podcasts/[uid]/[episodeUid]",i.PRIVACY_POLICY="/politica-de-privacidade"},17841:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return rj}});var r,i,o,a,s,u,l,c,f,d,p,h,g,m=n(85893),v=n(67294),y=n(65885),b=n(29347),_=(r=function(e,t){return(r=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),S=function(e){function t(t){var n=e.call(this,t)||this;return t.cookies?n.cookies=t.cookies:n.cookies=new y.Z,n}return _(t,e),t.prototype.render=function(){return v.createElement(b.zt,{value:this.cookies},this.props.children)},t}(v.Component),E=n(57715);function O(e){var t=e.i18n,n=e.defaultNS,r=e.children,i=(0,v.useMemo)(function(){return{i18n:t,defaultNS:n}},[t,n]);return(0,v.createElement)(E.OO.Provider,{value:i},r)}var w=n(77776),x=n(7544),T=n.n(x),C=n(9008),P=n.n(C),A=n(11163),k=n(56063),j=n(91131),I=n(43557),R=n(39920),D=n(86010),N=()=>{let[e,t]=(0,v.useState)(!1),n=(0,R.useSpring)({height:e?6:0});return(0,v.useEffect)(()=>{let e=()=>t(!0),n=()=>t(!1);return A.Router.events.on("routeChangeStart",e),A.Router.events.on("routeChangeComplete",n),A.Router.events.on("routeChangeError",n),()=>{A.Router.events.off("routeChangeStart",e),A.Router.events.off("routeChangeComplete",n),A.Router.events.off("routeChangeError",n)}},[]),(0,m.jsx)(R.animated.div,{className:"fixed inset-x-0 z-50 bg-white dark:bg-primary-800",style:n,children:(0,m.jsx)("div",{className:(0,D.Z)("relative h-full w-full","bg-primary-500 theme-peach:bg-secondary-500 dark:bg-secondary-500",{"animate-pulse":e})})})},L=n(52898),M=n(56951),F=n(31485),U=n(92173),$=n(46614),B=n(81847),z=n(45697),q=n.n(z);function V(){return(V=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var H=(0,v.forwardRef)(function(e,t){var n=e.color,r=e.size,i=void 0===r?24:r,o=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(e,["color","size"]);return v.createElement("svg",V({ref:t,xmlns:"http://www.w3.org/2000/svg",width:i,height:i,viewBox:"0 0 24 24",fill:"none",stroke:void 0===n?"currentColor":n,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},o),v.createElement("circle",{cx:"12",cy:"12",r:"1"}),v.createElement("circle",{cx:"12",cy:"5",r:"1"}),v.createElement("circle",{cx:"12",cy:"19",r:"1"}))});
27H.propTypes={color:q().string,size:q().oneOfType([q().string,q().number])},H.displayName="MoreVertical";var Z=n(77058);let W=e=>{let{className:t,...n}=e;return(0,m.jsx)("button",{className:(0,D.Z)("flex h-12 w-12 items-center justify-center p-2","text-primary-500 hover:text-primary-800","dark:text-primary-200 dark:hover:text-primary-100",t),type:"button",...n})};var Q=n(38483),G=n(47556),K=n(25057),Y=n(4468);let J=()=>{let[e]=(0,M.M8)();return(0,I.Dr)({uid:e,lang:Y.T.PT},{enabled:!!e})};var X=n(50624),ee=n(27406);let et=e=>{var t;let{isOpen:n}=e,{t:r}=(0,Z.$)("podcasts"),{data:i}=J(),o=(0,F.V1)(null==i?void 0:null===(t=i.episode)||void 0===t?void 0:t.podcast,"Podcast");if(!n||!o)return null;let{apple_url:a,deezer_url:s,google_podcasts_url:u,pocket_casts_url:l,spotify_url:c,_meta:{uid:f}}=o,d=[{text:r("subscribeLinks.rss"),url:f&&function(e){let t=new URL(ee.publicConfig.siteURL),{uid:n}=e;return t.pathname=X.s.PODCAST_RSS_FEED.replace("[uid]",n),t.toString()}({uid:f}),image:(0,m.jsx)(Q.Z,{strokeWidth:3})},{image:(0,m.jsx)(K.qk,{}),text:r("subscribeLinks.spotify"),url:c},{image:(0,m.jsx)(K.fB,{}),text:r("subscribeLinks.apple"),url:a},{image:(0,m.jsx)(K.Er,{}),text:r("subscribeLinks.google"),url:u},{image:(0,m.jsx)(K.vu,{}),text:r("subscribeLinks.pocketCasts"),url:l},{image:(0,m.jsx)(K.o6,{}),text:r("subscribeLinks.deezer"),url:s}].filter(e=>!!e.url);return(0,m.jsx)("ul",{className:"space-y-4 text-primary-700 dark:text-primary-100",children:d.map(e=>{let{image:t,text:n,url:r}=e;return(0,m.jsx)("li",{children:(0,m.jsxs)(G.Z,{href:r,title:n,isExternal:!0,children:[t,(0,m.jsx)("span",{className:"sr-only",children:n})]})},r)})})},en=()=>{let{t:e}=(0,Z.$)("podcasts"),[t,n]=(0,v.useState)(!1);return(0,m.jsxs)("div",{className:"relative",children:[(0,m.jsxs)(W,{onClick:()=>n(e=>!e),children:[(0,m.jsx)("span",{className:"sr-only",children:e(t?"extrasMenu.showMenu":"extrasMenu.hideMenu")}),(0,m.jsx)(H,{})]}),(0,m.jsx)("div",{className:(0,D.Z)("absolute right-0 bottom-0","mb-20 p-4","bg-white shadow-md dark:bg-primary-800",{"h-0 w-0 opacity-0":!t}),children:(0,m.jsx)(et,{isOpen:t})})]})};var er=n(45720),ei=n(50794),eo=n(3785);let ea=(0,j.cn)(!1),es=()=>(0,j.KO)(ea),eu=()=>{let{t:e}=(0,Z.$)("podcasts"),[t,n]=(0,M.nh)(),[r]=es(),{isLoading:i}=J(),o=r||i,a="buttons.play",s=er.Z;return t&&(a="buttons.pause",s=ei.Z),o&&(a="buttons.buffering",s=eo.Z),(0,m.jsxs)(W,{onClick:()=>n(e=>!e),children:[(0,m.jsx)("span",{className:"sr-only",children:e(a)}),(0,m.jsx)(s,{className:(0,D.Z)({"animate-spin":o}),strokeWidth:1.5})]})},el=e=>{let{currentTime:t,duration:n,player:r}=e,i="".concat((100/n*t||0).toFixed(1),"%");return(0,m.jsx)("div",{className:"relative h-2 cursor-pointer bg-primary-200 dark:bg-primary-600",onClick:e=>{if(!r)return;let t=1/window.innerWidth*e.screenX;r.currentTime=n*t},children:(0,m.jsx)("div",{className:"absolute top-0 left-0 h-2 bg-primary-500 dark:bg-primary-400",style:{width:i}})})},ec=()=>{var e;let[,t]=es(),[n,r]=(0,M.nh)(),{data:i,isLoading:o}=J(),a=null==i?void 0:i.episode,s=(null==a?void 0:a.audio_file_url)||void 0,u=(0,F.V1)(null==a?void 0:a.podcast,"Podcast"),[l,c]=(0,v.useState)(!!s),f=(0,R.useSpring)({bottom:l?0:-100,opacity:l?1:0}),d=(0,v.useRef)(null),[p,h]=(0,v.useState)({currentTime:0,duration:0}),g=(0,v.useCallback)(async()=>{let e=d.current;if(e)try{await e.play()}catch(t){e.pause()}},[]);return(0,v.useEffect)(()=>{let e=d.current;e&&(n?g():e.pause())},[n,g]),(0,v.useEffect)(()=>{s&&g()},[s,g]),(0,v.useEffect)(()=>{o&&!l&&c(!0)},[o,l]),(0,m.jsxs)(R.animated.section,{className:"fixed z-10 w-full bg-white dark:bg-primary-800",style:f,children:[(0,m.jsx)(el,{currentTime:p.currentTime,duration:p.duration,player:d.current}),(0,m.jsxs)("div",{className:"flex items-stretch space-x-2 md:space-x-4",children:[(0,m.jsx)("div",{className:"h-16 w-16 shrink-0 self-center md:h-20 md:w-20",children:(0,m.jsx)(L.Z,{className:"h-full w-full object-cover",src:null===(e=(0,U.k)((null==a?void 0:a.episode_image)||(null==u?void 0:u.image)))||void 0===e?void 0:e.url,alt:"",reallyLazy:!0})}),(0,m.jsxs)("div",{className:"flex grow flex-col justify-center p-1",children:[(0,m.jsx)("h1",{className:"text-xs sm:text-sm md:text-base",children:null==a?void 0:a.title}),(0,m.jsx)("p",{className:"hidden text-xs md:inline-block md:text-sm",children:null==u?void 0:u.name})]}),(0,m.jsx)("div",{className:"hidden items-center justify-center md:flex",children:!!p.duration&&(0,m.jsxs)("div",{className:"space-x-1 font-display",children:[(0,m.jsx)("span",{className:"font-semibold",children:(0,$.m)(p.currentTime,(0,B.n)(p.duration))}),(0,m.jsx)("span",{children:"/"}),(0,m.jsx)("span",{className:"text-sm",children:(0,$.m)(p.duration)})]})}),(0,m.jsxs)("div",{className:"flex items-center justify-center pr-2",children:[(0,m.jsx)(eu,{}),(0,m.jsx)(en,{})]})]}),(0,m.jsx)("audio",{src:s||void 0,ref:d,onPlaying:()=>r(!0),onCanPlay:()=>t(!1),onWaiting:()=>t(!0),onTimeUpdate:e=>{let{currentTime:t=0,duration:n=0}=e.currentTarget;h({currentTime:t,duration:n})},onAbort:()=>{t(!1),r(!1)}},s)]})};var ef=n(81549);let ed=()=>{let{t:e}=(0,Z.$)("home");return(0,m.jsx)(ef.H,{pageTitle:e("metadata.title"),withTitleSuffix:!1})};function ep(){return(ep=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var eh=(0,v.forwardRef)(function(e,t){var n=e.color,r=e.size,i=void 0===r?24:r,o=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(e,["color","size"]);return v.createElement("svg",ep({ref:t,xmlns:"http://www.w3.org/2000/svg",width:i,height:i,viewBox:"0 0 24 24",fill:"none",stroke:void 0===n?"currentColor":n,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},o),v.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),v.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"}))});
27eh.propTypes={color:q().string,size:q().oneOfType([q().string,q().number])},eh.displayName="X";var eg=n(72132),em=n(99714),ev=n(82259),ey=n(9986);(i=h||(h={})).LIGHT="light",i.DARK="dark",i.PEACH="peach",i.BLACK_AND_WHITE="light__black-and-white",i.BLACK_AND_WHITE_DARK="dark__black-and-white";let eb=Object.values(h),e_=(0,ey.G)(365),eS=()=>{let[e,t]=(0,em.By)(ev.y.THEME),n=(0,v.useCallback)(e=>t(e,{maxAge:e_}),[t]);return(0,v.useEffect)(()=>{e||n(window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light")},[e,n]),(0,v.useEffect)(()=>{if(!e)return;let t=document.querySelector("html"),n=(e,n)=>{let[r,i]=e.split("__");null==t||t.classList.toggle(r,n),i&&document.body.classList.toggle(i,n)};eb.forEach(e=>{n(e,!1)}),eb.some(t=>{let r=e===t;return r&&n(t,!0),r})},[e]),[e,n]},eE=()=>{let{t:e}=(0,Z.$)("general"),[t]=eS(),n=e("closePopup");return(0,m.jsx)(eg.Ix,{limit:3,transition:eg.Mi,icon:!1,theme:t&&/dark/.test(t)?"dark":"light",closeButton:e=>{let{closeToast:t}=e;return(0,m.jsxs)("button",{title:n,children:[(0,m.jsx)(eh,{onClick:t,"aria-hidden":!0}),(0,m.jsx)("span",{className:"sr-only",children:n})]})}})};var eO=n(63397);let ew=em.yV.SEEN_MONETIZATION_THANK_YOU,ex=()=>{let{t:e}=(0,Z.$)("monetization"),{isActive:t}=(0,k.o)(),n=e("thanks"),[r,i]=(0,em.By)(ew);return(0,v.useEffect)(()=>{t&&!r&&(eg.Am.success(n),i(!0,{maxAge:(0,ey.G)(14)}))},[t,r,n,i]),(0,v.useEffect)(()=>{t&&(0,eO.L)(eO.s.WEB_MONETIZATION_ACTIVE)},[t]),null};var eT=n(71002),eC=n(15671),eP=n(43144);function eA(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var ek=n(89611);function ej(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&(0,ek.Z)(e,t)}function eI(e,t){if(t&&("object"===(0,eT.Z)(t)||"function"==typeof t))return t;if(void 0!==t)throw TypeError("Derived constructors may only return object or undefined");return eA(e)}function eR(e){return(eR=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var eD=n(4942),eN=n(83878),eL=n(81563),eM=n(25267);function eF(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function eU(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?eF(Object(n),!0).forEach(function(t){(0,eD.Z)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):eF(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var e$={type:"logger",log:function(e){this.output("log",e)},warn:function(e){this.output("warn",e)},error:function(e){this.output("error",e)},output:function(e,t){console&&console[e]&&console[e].apply(console,t)}},eB=new(function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,eC.Z)(this,e),this.init(t,n)}return(0,eP.Z)(e,[{key:"init",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.prefix=t.prefix||"i18next:",this.logger=e||e$,this.options=t,this.debug=t.debug}},{key:"setDebug",value:function(e){this.debug=e}},{key:"log",value:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"log","",!0)}},{key:"warn",value:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"warn","",!0)}},{key:"error",value:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"error","")}},{key:"deprecate",value:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"warn","WARNING DEPRECATED: ",!0)}},{key:"forward",value:function(e,t,n,r){return r&&!this.debug?null:("string"==typeof e[0]&&(e[0]="".concat(n).concat(this.prefix," ").concat(e[0])),this.logger[t](e))}},{key:"create",value:function(t){return new e(this.logger,eU(eU({},{prefix:"".concat(this.prefix,":").concat(t,":")}),this.options))}}]),e}()),ez=function(){function e(){(0,eC.Z)(this,e),this.observers={}}return(0,eP.Z)(e,[{key:"on",value:function(e,t){var n=this;return e.split(" ").forEach(function(e){n.observers[e]=n.observers[e]||[],n.observers[e].push(t)}),this}}
27,{key:"off",value:function(e,t){if(this.observers[e]){if(!t){delete this.observers[e];return}this.observers[e]=this.observers[e].filter(function(e){return e!==t})}}},{key:"emit",value:function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];this.observers[e]&&[].concat(this.observers[e]).forEach(function(e){e.apply(void 0,n)}),this.observers["*"]&&[].concat(this.observers["*"]).forEach(function(t){t.apply(t,[e].concat(n))})}}]),e}();function eq(){var e,t,n=new Promise(function(n,r){e=n,t=r});return n.resolve=e,n.reject=t,n}function eV(e){return null==e?"":""+e}function eH(e,t,n){function r(e){return e&&e.indexOf("###")>-1?e.replace(/###/g,"."):e}function i(){return!e||"string"==typeof e}for(var o="string"!=typeof t?[].concat(t):t.split(".");o.length>1;){if(i())return{};var a=r(o.shift());!e[a]&&n&&(e[a]=new n),e=Object.prototype.hasOwnProperty.call(e,a)?e[a]:{}}return i()?{}:{obj:e,k:r(o.shift())}}function eZ(e,t,n){var r=eH(e,t,Object);r.obj[r.k]=n}function eW(e,t){var n=eH(e,t),r=n.obj,i=n.k;if(r)return r[i]}function eQ(e,t,n){var r=eW(e,n);return void 0!==r?r:eW(t,n)}function eG(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var eK={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};function eY(e){return"string"==typeof e?e.replace(/[&<>"'\/]/g,function(e){return eK[e]}):e}var eJ="undefined"!=typeof window&&window.navigator&&void 0===window.navigator.userAgentData&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1,eX=[" ",",","?","!",";"];function e0(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function e1(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?e0(Object(n),!0).forEach(function(t){(0,eD.Z)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):e0(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var e2=function(e){ej(r,e);var t,n=(t=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,n=eR(r);if(t){var i=eR(this).constructor;e=Reflect.construct(n,arguments,i)}else e=n.apply(this,arguments);return eI(this,e)});function r(e){var t,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};return(0,eC.Z)(this,r),t=n.call(this),eJ&&ez.call(eA(t)),t.data=e||{},t.options=i,void 0===t.options.keySeparator&&(t.options.keySeparator="."),void 0===t.options.ignoreJSONStructure&&(t.options.ignoreJSONStructure=!0),t}return(0,eP.Z)(r,[{key:"addNamespaces",value:function(e){0>this.options.ns.indexOf(e)&&this.options.ns.push(e)}},{key:"removeNamespaces",value:function(e){var t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}},{key:"getResource",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=void 0!==r.keySeparator?r.keySeparator:this.options.keySeparator,o=void 0!==r.ignoreJSONStructure?r.ignoreJSONStructure:this.options.ignoreJSONStructure,a=[e,t];n&&"string"!=typeof n&&(a=a.concat(n)),n&&"string"==typeof n&&(a=a.concat(i?n.split(i):n)),e.indexOf(".")>-1&&(a=e.split("."));var s=eW(this.data,a);return s||!o||"string"!=typeof n?s:function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".";if(t){if(t[n])return t[n];for(var i=n.split(r),o=t,a=0;a<i.length;++a){if(!o||"string"==typeof o[i[a]]&&a+1<i.length)return;if(void 0===o[i[a]]){for(var s=2,u=i.slice(a,a+s).join(r),l=o[u];void 0===l&&i.length>a+s;)s++,l=o[u=i.slice(a,a+s).join(r)];if(void 0===l)return;if(null===l)return null;if(n.endsWith(u)){if("string"==typeof l)return l;if(u&&"string"==typeof l[u])return l[u]}var c=i.slice(a+s).join(r);if(c)return e(l,c,r);return}o=o[i[a]]}return o}}(this.data&&this.data[e]&&this.data[e][t],n,i)}},{key:"addResource",value:function(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1},o=this.options.keySeparator;void 0===o&&(o=".");var a=[e,t];
27n&&(a=a.concat(o?n.split(o):n)),e.indexOf(".")>-1&&(a=e.split("."),r=t,t=a[1]),this.addNamespaces(t),eZ(this.data,a,r),i.silent||this.emit("added",e,t,n,r)}},{key:"addResources",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(var i in n)("string"==typeof n[i]||"[object Array]"===Object.prototype.toString.apply(n[i]))&&this.addResource(e,t,i,n[i],{silent:!0});r.silent||this.emit("added",e,t,n)}},{key:"addResourceBundle",value:function(e,t,n,r,i){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1},a=[e,t];e.indexOf(".")>-1&&(a=e.split("."),r=n,n=t,t=a[1]),this.addNamespaces(t);var s=eW(this.data,a)||{};r?function e(t,n,r){for(var i in n)"__proto__"!==i&&"constructor"!==i&&(i in t?"string"==typeof t[i]||t[i]instanceof String||"string"==typeof n[i]||n[i]instanceof String?r&&(t[i]=n[i]):e(t[i],n[i],r):t[i]=n[i]);return t}(s,n,i):s=e1(e1({},s),n),eZ(this.data,a,s),o.silent||this.emit("added",e,t,n)}},{key:"removeResourceBundle",value:function(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}},{key:"hasResourceBundle",value:function(e,t){return void 0!==this.getResource(e,t)}},{key:"getResourceBundle",value:function(e,t){return(t||(t=this.options.defaultNS),"v1"===this.options.compatibilityAPI)?e1(e1({},{}),this.getResource(e,t)):this.getResource(e,t)}},{key:"getDataByLanguage",value:function(e){return this.data[e]}},{key:"hasLanguageSomeTranslations",value:function(e){var t=this.getDataByLanguage(e);return!!(t&&Object.keys(t)||[]).find(function(e){return t[e]&&Object.keys(t[e]).length>0})}},{key:"toJSON",value:function(){return this.data}}]),r}(ez),e4={processors:{},addPostProcessor:function(e){this.processors[e.name]=e},handle:function(e,t,n,r,i){var o=this;return e.forEach(function(e){o.processors[e]&&(t=o.processors[e].process(t,n,r,i))}),t}};function e3(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function e5(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?e3(Object(n),!0).forEach(function(t){(0,eD.Z)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):e3(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var e6={},e7=function(e){ej(r,e);var t,n=(t=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,n=eR(r);if(t){var i=eR(this).constructor;e=Reflect.construct(n,arguments,i)}else e=n.apply(this,arguments);return eI(this,e)});function r(e){var t,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,eC.Z)(this,r),t=n.call(this),eJ&&ez.call(eA(t)),!function(e,t,n){e.forEach(function(e){t[e]&&(n[e]=t[e])})}(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","
27i18nFormat","utils"],e,eA(t)),t.options=i,void 0===t.options.keySeparator&&(t.options.keySeparator="."),t.logger=eB.create("translator"),t}return(0,eP.Z)(r,[{key:"changeLanguage",value:function(e){e&&(this.language=e)}},{key:"exists",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}};if(null==e)return!1;var n=this.resolve(e,t);return n&&void 0!==n.res}},{key:"extractFromKey",value:function(e,t){var n=void 0!==t.nsSeparator?t.nsSeparator:this.options.nsSeparator;void 0===n&&(n=":");var r=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,i=t.ns||this.options.defaultNS||[],o=n&&e.indexOf(n)>-1,a=!this.options.userDefinedKeySeparator&&!t.keySeparator&&!this.options.userDefinedNsSeparator&&!t.nsSeparator&&!function(e,t,n){t=t||"",n=n||"";var r=eX.filter(function(e){return 0>t.indexOf(e)&&0>n.indexOf(e)});if(0===r.length)return!0;var i=new RegExp("(".concat(r.map(function(e){return"?"===e?"\\?":e}).join("|"),")")),o=!i.test(e);if(!o){var a=e.indexOf(n);a>0&&!i.test(e.substring(0,a))&&(o=!0)}return o}(e,n,r);if(o&&!a){var s=e.match(this.interpolator.nestingRegexp);if(s&&s.length>0)return{key:e,namespaces:i};var u=e.split(n);(n!==r||n===r&&this.options.ns.indexOf(u[0])>-1)&&(i=u.shift()),e=u.join(r)}return"string"==typeof i&&(i=[i]),{key:e,namespaces:i}}},{key:"translate",value:function(e,t,n){var i=this;if("object"!==(0,eT.Z)(t)&&this.options.overloadTranslationOptionHandler&&(t=this.options.overloadTranslationOptionHandler(arguments)),t||(t={}),null==e)return"";Array.isArray(e)||(e=[String(e)]);var o=void 0!==t.returnDetails?t.returnDetails:this.options.returnDetails,a=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,s=this.extractFromKey(e[e.length-1],t),u=s.key,l=s.namespaces,c=l[l.length-1],f=t.lng||this.language,d=t.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(f&&"cimode"===f.toLowerCase()){if(d){var p=t.nsSeparator||this.options.nsSeparator;return o?(h.res="".concat(c).concat(p).concat(u),h):"".concat(c).concat(p).concat(u)}return o?(h.res=u,h):u}var h=this.resolve(e,t),g=h&&h.res,m=h&&h.usedKey||u,v=h&&h.exactUsedKey||u,y=Object.prototype.toString.apply(g),b=void 0!==t.joinArrays?t.joinArrays:this.options.joinArrays,_=!this.i18nFormat||this.i18nFormat.handleAsObject,S="string"!=typeof g&&"boolean"!=typeof g&&"number"!=typeof g;if(_&&g&&S&&0>["[object Number]","[object Function]","[object RegExp]"].indexOf(y)&&!("string"==typeof b&&"[object Array]"===y)){if(!t.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");var E=this.options.returnedObjectHandler?this.options.returnedObjectHandler(m,g,e5(e5({},t),{},{ns:l})):"key '".concat(u," (").concat(this.language,")' returned an object instead of string.");return o?(h.res=E,h):E}if(a){var O="[object Array]"===y,w=O?[]:{},x=O?v:m;for(var T in g)if(Object.prototype.hasOwnProperty.call(g,T)){var C="".concat(x).concat(a).concat(T);w[T]=this.translate(C,e5(e5({},t),{joinArrays:!1,ns:l})),w[T]===C&&(w[T]=g[T])}g=w}}else if(_&&"string"==typeof b&&"[object Array]"===y)(g=g.join(b))&&(g=this.extendTranslation(g,e,t,n));else{var P=!1,A=!1,k=void 0!==t.count&&"string"!=typeof t.count,j=r.hasDefaultValue(t),I=k?this.pluralResolver.getSuffix(f,t.count,t):"",R=t["defaultValue".concat(I)]||t.defaultValue;!this.isValidLookup(g)&&j&&(P=!0,g=R),this.isValidLookup(g)||(A=!0,g=u);var D=(t.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&A?void 0:g,N=j&&R!==g&&this.options.updateMissing;if(A||P||N){if(this.logger.log(N?"updateKey":"missingKey",f,c,u,N?R:g),a){var L=this.resolve(u,e5(e5({},t),{},{keySeparator:!1}));L&&L.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.")}var M=[],F=this.languageUtils.getFallbackCodes(this.options.fallbackLng,t.lng||this.language);if("fallback"===this.options.saveMissingTo&&F&&F[0])for(var U=0;U<F.length;U++)M.push(F[U]);else"all"===this.options.saveMissingTo?M=this.languageUtils.toResolveHierarchy(t.lng||this.language):M.push(t.lng||this.language);var $=function(e,n,r){var o=j&&r!==g?r:D;i.options.missingKeyHandler?i.options.missingKeyHandler(e,c,n,o,N,t):i.backendConnector&&i.backendConnector.saveMissing&&i.backendConnector.saveMissing(e,c,n,o,N,t),i.emit("missingKey",e,c,n,g)};this.options.saveMissing&&(this.options.saveMissingPlurals&&k?M.forEach(function(e){i.pluralResolver.getSuffixes(e,t).forEach(function(n){$([e],u+n,t["defaultValue".concat(n)]||R)})}):$(M,u,R))}g=this.extendTranslation(g,e,t,h,n),A&&g===u&&this.options.appendNamespaceToMissingKey&&(g="".concat(c,":").concat(u)),(A||P)&&this.options.parseMissingKeyHandler&&(g="v1"!==this.options.compatibilityAPI?this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?"".concat(c,":").concat(u):u,P?g:void 0):this.options.parseMissingKeyHandler(g))}return o?(h.res=g,h):g}},{key:"extendTranslation",value:function(e,t,n,r,i){var o=this;if(this.i18nFormat&&this.i18nFormat.parse)e=this.i18nFormat.parse(e,e5(e5({},this.options.interpolation.defaultVariables),n),r.usedLng,r.usedNS,r.usedKey,{resolved:r});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init(e5(e5({},n),{interpolation:e5(e5({},this.options.interpolation),n.interpolation)}));var a,s="string"==typeof e&&(n&&n.interpolation&&void 0!==n.interpolation.skipOnVariables?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);if(s){var u=e.match(this.interpolator.nestingRegexp);a=u&&u.length}var l=n.replace&&"string"!=typeof n.replace?n.replace:n;if(this.options.interpolation.defaultVariables&&(l=e5(e5({},this.options.interpolation.defaultVariables),l)),e=this.interpolator.interpolate(e,l,n.lng||this.language,n),s){var c=e.match(this.interpolator.nestingRegexp);a<(c&&c.length)&&(n.nest=!1)}!1!==n.nest&&(e=this.interpolator.nest(e,function(){for(var e=arguments.length,r=Array(e),a=0;a<e;a++)r[a]=arguments[a];return i&&i[0]===r[0]&&!n.context?(o.logger.warn("It seems you are nesting recursively key: ".concat(r[0]," in key: ").concat(t[0])),null):o.translate.apply(o,r.concat([t]))}
27,n)),n.interpolation&&this.interpolator.reset()}var f=n.postProcess||this.options.postProcess,d="string"==typeof f?[f]:f;return null!=e&&d&&d.length&&!1!==n.applyPostProcessor&&(e=e4.handle(d,e,t,this.options&&this.options.postProcessPassResolved?e5({i18nResolved:r},n):n,this)),e}},{key:"resolve",value:function(e){var t,n,r,i,o,a=this,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"string"==typeof e&&(e=[e]),e.forEach(function(e){if(!a.isValidLookup(t)){var u=a.extractFromKey(e,s),l=u.key;n=l;var c=u.namespaces;a.options.fallbackNS&&(c=c.concat(a.options.fallbackNS));var f=void 0!==s.count&&"string"!=typeof s.count,d=f&&!s.ordinal&&0===s.count&&a.pluralResolver.shouldUseIntlApi(),p=void 0!==s.context&&("string"==typeof s.context||"number"==typeof s.context)&&""!==s.context,h=s.lngs?s.lngs:a.languageUtils.toResolveHierarchy(s.lng||a.language,s.fallbackLng);c.forEach(function(e){a.isValidLookup(t)||(o=e,!e6["".concat(h[0],"-").concat(e)]&&a.utils&&a.utils.hasLoadedNamespace&&!a.utils.hasLoadedNamespace(o)&&(e6["".concat(h[0],"-").concat(e)]=!0,a.logger.warn('key "'.concat(n,'" for languages "').concat(h.join(", "),'" won\'t get resolved as namespace "').concat(o,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),h.forEach(function(n){if(!a.isValidLookup(t)){i=n;var o,u=[l];if(a.i18nFormat&&a.i18nFormat.addLookupKeys)a.i18nFormat.addLookupKeys(u,l,n,e,s);else{f&&(c=a.pluralResolver.getSuffix(n,s.count,s));var c,h="".concat(a.options.pluralSeparator,"zero");if(f&&(u.push(l+c),d&&u.push(l+h)),p){var g="".concat(l).concat(a.options.contextSeparator).concat(s.context);u.push(g),f&&(u.push(g+c),d&&u.push(g+h))}}for(;o=u.pop();)a.isValidLookup(t)||(r=o,t=a.getResource(n,e,o,s))}}))})}}),{res:t,usedKey:n,exactUsedKey:r,usedLng:i,usedNS:o}}},{key:"isValidLookup",value:function(e){return void 0!==e&&!(!this.options.returnNull&&null===e)&&!(!this.options.returnEmptyString&&""===e)}},{key:"getResource",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,t,n,r):this.resourceStore.getResource(e,t,n,r)}}],[{key:"hasDefaultValue",value:function(e){var t="defaultValue";for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t===n.substring(0,t.length)&&void 0!==e[n])return!0;return!1}}]),r}(ez);function e8(e){return e.charAt(0).toUpperCase()+e.slice(1)}var e9=function(){function e(t){(0,eC.Z)(this,e),this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=eB.create("languageUtils")}return(0,eP.Z)(e,[{key:"getScriptPartFromCode",value:function(e){if(!e||0>e.indexOf("-"))return null;var t=e.split("-");return 2===t.length?null:(t.pop(),"x"===t[t.length-1].toLowerCase())?null:this.formatLanguageCode(t.join("-"))}},{key:"getLanguagePartFromCode",value:function(e){if(!e||0>e.indexOf("-"))return e;var t=e.split("-");return this.formatLanguageCode(t[0])}},{key:"formatLanguageCode",value:function(e){if("string"==typeof e&&e.indexOf("-")>-1){var t=["hans","hant","latn","cyrl","cans","mong","arab"],n=e.split("-");return this.options.lowerCaseLng?n=n.map(function(e){return e.toLowerCase()}):2===n.length?(n[0]=n[0].toLowerCase(),n[1]=n[1].toUpperCase(),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=e8(n[1].toLowerCase()))):3===n.length&&(n[0]=n[0].toLowerCase(),2===n[1].length&&(n[1]=n[1].toUpperCase()),"sgn"!==n[0]&&2===n[2].length&&(n[2]=n[2].toUpperCase()),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=e8(n[1].toLowerCase())),t.indexOf(n[2].toLowerCase())>-1&&(n[2]=e8(n[2].toLowerCase()))),n.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}},{key:"isSupportedCode",value:function(e){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}},{key:"getBestMatchFromCodes",value:function(e){var t,n=this;return e?(e.forEach(function(e){if(!t){var r=n.formatLanguageCode(e);(!n.options.supportedLngs||n.isSupportedCode(r))&&(t=r)}}),!t&&this.options.supportedLngs&&e.forEach(function(e){if(!t){var r=n.getLanguagePartFromCode(e);if(n.isSupportedCode(r))return t=r;t=n.options.supportedLngs.find(function(e){if(0===e.indexOf(r))return e})}}),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t):null}},{key:"getFallbackCodes",value:function(e,t){if(!e)return[];if("function"==typeof e&&(e=e(t)),"string"==typeof e&&(e=[e]),"[object Array]"===Object.prototype.toString.apply(e))return e;if(!t)return e.default||[];var n=e[t];
vendor: 4,851 bytes, line 27
27return n||(n=e[this.getScriptPartFromCode(t)]),n||(n=e[this.formatLanguageCode(t)]),n||(n=e[this.getLanguagePartFromCode(t)]),n||(n=e.default),n||[]}},{key:"toResolveHierarchy",value:function(e,t){var n=this,r=this.getFallbackCodes(t||this.options.fallbackLng||[],e),i=[],o=function(e){e&&(n.isSupportedCode(e)?i.push(e):n.logger.warn("rejecting language code not found in supportedLngs: ".concat(e)))};return"string"==typeof e&&e.indexOf("-")>-1?("languageOnly"!==this.options.load&&o(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&o(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&o(this.getLanguagePartFromCode(e))):"string"==typeof e&&o(this.formatLanguageCode(e)),r.forEach(function(e){0>i.indexOf(e)&&o(n.formatLanguageCode(e))}),i}}]),e}(),te=[{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}],tt={1:function(e){return Number(e>1)},2:function(e){return Number(1!=e)},3:function(e){return 0},4:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},5:function(e){return Number(0==e?0:1==e?1:2==e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5)},6:function(e){return Number(1==e?0:e>=2&&e<=4?1:2)},7:function(e){return Number(1==e?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},8:function(e){return Number(1==e?0:2==e?1:8!=e&&11!=e?2:3)},9:function(e){return Number(e>=2)},10:function(e){return Number(1==e?0:2==e?1:e<7?2:e<11?3:4)},11:function(e){return Number(1==e||11==e?0:2==e||12==e?1:e>2&&e<20?2:3)},12:function(e){return Number(e%10!=1||e%100==11)},13:function(e){return Number(0!==e)},14:function(e){return Number(1==e?0:2==e?1:3==e?2:3)},15:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2)},16:function(e){return Number(e%10==1&&e%100!=11?0:0!==e?1:2)},17:function(e){return Number(1==e||e%10==1&&e%100!=11?0:1)},18:function(e){return Number(0==e?0:1==e?1:2)},19:function(e){return Number(1==e?0:0==e||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3)},20:function(e){return Number(1==e?0:0==e||e%100>0&&e%100<20?1:2)},21:function(e){return Number(e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0)},22:function(e){return Number(1==e?0:2==e?1:(e<0||e>10)&&e%10==0?2:3)}},tn=["v1","v2","v3"],tr={zero:0,one:1,two:2,few:3,many:4,other:5},ti=function(){function e(t){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,eC.Z)(this,e),this.languageUtils=t,this.options=r,this.logger=eB.create("pluralResolver"),this.options.compatibilityJSON&&"v4"!==this.options.compatibilityJSON||"undefined"!=typeof Intl&&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=(n={},te.forEach(function(e){e.lngs.forEach(function(t){n[t]={numbers:e.nr,plurals:tt[e.fc]}})}),n)}return(0,eP.Z)(e,[{key:"addRule",value:function(e,t){this.rules[e]=t}},{key:"getRule",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(e,{type:t.ordinal?"ordinal":"cardinal"})}catch(e){return}return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}},{key:"needsPlural",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.getRule(e,t);return this.shouldUseIntlApi()?n&&n.resolvedOptions().pluralCategories.length>1:n&&n.numbers.length>1}},{key:"getPluralFormsOfKey",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};
27return this.getSuffixes(e,n).map(function(e){return"".concat(t).concat(e)})}},{key:"getSuffixes",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=this.getRule(e,n);return r?this.shouldUseIntlApi()?r.resolvedOptions().pluralCategories.sort(function(e,t){return tr[e]-tr[t]}).map(function(e){return"".concat(t.options.prepend).concat(e)}):r.numbers.map(function(r){return t.getSuffix(e,r,n)}):[]}},{key:"getSuffix",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=this.getRule(e,n);return r?this.shouldUseIntlApi()?"".concat(this.options.prepend).concat(r.select(t)):this.getSuffixRetroCompatible(r,t):(this.logger.warn("no plural rule found for: ".concat(e)),"")}},{key:"getSuffixRetroCompatible",value:function(e,t){var n=this,r=e.noAbs?e.plurals(t):e.plurals(Math.abs(t)),i=e.numbers[r];this.options.simplifyPluralSuffix&&2===e.numbers.length&&1===e.numbers[0]&&(2===i?i="plural":1===i&&(i=""));var o=function(){return n.options.prepend&&i.toString()?n.options.prepend+i.toString():i.toString()};return"v1"===this.options.compatibilityJSON?1===i?"":"number"==typeof i?"_plural_".concat(i.toString()):o():"v2"===this.options.compatibilityJSON||this.options.simplifyPluralSuffix&&2===e.numbers.length&&1===e.numbers[0]?o():this.options.prepend&&r.toString()?this.options.prepend+r.toString():r.toString()}},{key:"shouldUseIntlApi",value:function(){return!tn.includes(this.options.compatibilityJSON)}}]),e}();function to(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ta(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?to(Object(n),!0).forEach(function(t){(0,eD.Z)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):to(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var ts=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,eC.Z)(this,e),this.logger=eB.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||function(e){return e},this.init(t)}return(0,eP.Z)(e,[{key:"init",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});var t=e.interpolation;this.escape=void 0!==t.escape?t.escape:eY,this.escapeValue=void 0===t.escapeValue||t.escapeValue,this.useRawValueToEscape=void 0!==t.useRawValueToEscape&&t.useRawValueToEscape,this.prefix=t.prefix?eG(t.prefix):t.prefixEscaped||"{{",this.suffix=t.suffix?eG(t.suffix):t.suffixEscaped||"}}",this.formatSeparator=t.formatSeparator?t.formatSeparator:t.formatSeparator||",",this.unescapePrefix=t.unescapeSuffix?"":t.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":t.unescapeSuffix||"",this.nestingPrefix=t.nestingPrefix?eG(t.nestingPrefix):t.nestingPrefixEscaped||eG("$t("),this.nestingSuffix=t.nestingSuffix?eG(t.nestingSuffix):t.nestingSuffixEscaped||eG(")"),this.nestingOptionsSeparator=t.nestingOptionsSeparator?t.nestingOptionsSeparator:t.nestingOptionsSeparator||",",this.maxReplaces=t.maxReplaces?t.maxReplaces:1e3,this.alwaysFormat=void 0!==t.alwaysFormat&&t.alwaysFormat,this.resetRegExp()}},{key:"reset",value:function(){this.options&&this.init(this.options)}},{key:"resetRegExp",value:function(){var e="".concat(this.prefix,"(.+?)").concat(this.suffix);this.regexp=RegExp(e,"g");var t="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=RegExp(t,"g");var n="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=RegExp(n,"g")}},{key:"interpolate",value:function(e,t,n,r){var i,o,a,s=this,u=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function l(e){return e.replace(/\$/g,"$$$$")}var c=function(e){if(0>e.indexOf(s.formatSeparator)){var i=eQ(t,u,e);return s.alwaysFormat?s.format(i,void 0,n,ta(ta(ta({},r),t),{},{interpolationkey:e})):i}var o=e.split(s.formatSeparator),a=o.shift().trim(),l=o.join(s.formatSeparator).trim();return s.format(eQ(t,u,a),l,n,ta(ta(ta({},r),t),{},{interpolationkey:a}))};this.resetRegExp();var f=r&&r.missingInterpolationHandler||this.options.missingInterpolationHandler,d=r&&r.interpolation&&void 0!==r.interpolation.skipOnVariables?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:function(e){return l(e)}},{regex:this.regexp,safeValue:function(e){return s.escapeValue?l(s.escape(e)):l(e)}}
27].forEach(function(t){for(a=0;i=t.regex.exec(e);){var n=i[1].trim();if(void 0===(o=c(n))){if("function"==typeof f){var u=f(e,i,r);o="string"==typeof u?u:""}else if(r&&r.hasOwnProperty(n))o="";else if(d){o=i[0];continue}else s.logger.warn("missed to pass in variable ".concat(n," for interpolating ").concat(e)),o=""}else"string"==typeof o||s.useRawValueToEscape||(o=eV(o));var l=t.safeValue(o);if(e=e.replace(i[0],l),d?(t.regex.lastIndex+=o.length,t.regex.lastIndex-=i[0].length):t.regex.lastIndex=0,++a>=s.maxReplaces)break}}),e}},{key:"nest",value:function(e,t){var n,r,i=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=ta({},o);function s(e,t){var n=this.nestingOptionsSeparator;if(0>e.indexOf(n))return e;var r=e.split(new RegExp("".concat(n,"[ ]*{"))),i="{".concat(r[1]);e=r[0],i=(i=this.interpolate(i,a)).replace(/'/g,'"');try{a=JSON.parse(i),t&&(a=ta(ta({},t),a))}catch(t){return this.logger.warn("failed parsing options string in nesting for key ".concat(e),t),"".concat(e).concat(n).concat(i)}return delete a.defaultValue,e}for(a.applyPostProcessor=!1,delete a.defaultValue;n=this.nestingRegexp.exec(e);){var u=[],l=!1;if(-1!==n[0].indexOf(this.formatSeparator)&&!/{.*}/.test(n[1])){var c=n[1].split(this.formatSeparator).map(function(e){return e.trim()});n[1]=c.shift(),u=c,l=!0}if((r=t(s.call(this,n[1].trim(),a),a))&&n[0]===e&&"string"!=typeof r)return r;"string"!=typeof r&&(r=eV(r)),r||(this.logger.warn("missed to resolve ".concat(n[1]," for nesting ").concat(e)),r=""),l&&(r=u.reduce(function(e,t){return i.format(e,t,o.lng,ta(ta({},o),{},{interpolationkey:n[1].trim()}))},r.trim())),e=e.replace(n[0],r),this.regexp.lastIndex=0}return e}}]),e}();function tu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function tl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?tu(Object(n),!0).forEach(function(t){(0,eD.Z)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tu(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var tc=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,eC.Z)(this,e),this.logger=eB.create("formatter"),this.options=t,this.formats={number:function(e,t,n){return new Intl.NumberFormat(t,n).format(e)},currency:function(e,t,n){return new Intl.NumberFormat(t,tl(tl({},n),{},{style:"currency"})).format(e)},datetime:function(e,t,n){return new Intl.DateTimeFormat(t,tl({},n)).format(e)},relativetime:function(e,t,n){return new Intl.RelativeTimeFormat(t,tl({},n)).format(e,n.range||"day")},list:function(e,t,n){return new Intl.ListFormat(t,tl({},n)).format(e)}},this.init(t)}return(0,eP.Z)(e,[{key:"init",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}},n=t.interpolation;this.formatSeparator=n.formatSeparator?n.formatSeparator:n.formatSeparator||","}},{key:"add",value:function(e,t){this.formats[e.toLowerCase().trim()]=t}},{key:"format",value:function(e,t,n,r){var i=this;return t.split(this.formatSeparator).reduce(function(e,t){var o=function(e){var t=e.toLowerCase().trim(),n={};if(e.indexOf("(")>-1){var r=e.split("(");t=r[0].toLowerCase().trim();var i=r[1].substring(0,r[1].length-1);"currency"===t&&0>i.indexOf(":")?n.currency||(n.currency=i.trim()):"relativetime"===t&&0>i.indexOf(":")?n.range||(n.range=i.trim()):i.split(";").forEach(function(e){if(e){var t,r=(t=e.split(":"),(0,eN.Z)(t)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||(0,eL.Z)(t)||(0,eM.Z)()),i=r[0],o=r.slice(1).join(":").trim().replace(/^'+|'+$/g,"");n[i.trim()]||(n[i.trim()]=o),"false"===o&&(n[i.trim()]=!1),"true"===o&&(n[i.trim()]=!0),isNaN(o)||(n[i.trim()]=parseInt(o,10))}})}return{formatName:t,formatOptions:n}}(t),a=o.formatName,s=o.formatOptions;if(i.formats[a]){var u=e;try{var l=r&&r.formatParams&&r.formatParams[r.interpolationkey]||{},c=l.locale||l.lng||r.locale||r.lng||n;u=i.formats[a](e,c,tl(tl(tl({},s),r),l))}catch(e){i.logger.warn(e)}return u}return i.logger.warn("there was no format function for ".concat(a)),e},e)}}]),e}();function tf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function td(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
27t%2?tf(Object(n),!0).forEach(function(t){(0,eD.Z)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tf(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var tp=function(e){ej(r,e);var t,n=(t=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,n=eR(r);if(t){var i=eR(this).constructor;e=Reflect.construct(n,arguments,i)}else e=n.apply(this,arguments);return eI(this,e)});function r(e,t,i){var o,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return(0,eC.Z)(this,r),o=n.call(this),eJ&&ez.call(eA(o)),o.backend=e,o.store=t,o.services=i,o.languageUtils=i.languageUtils,o.options=a,o.logger=eB.create("backendConnector"),o.waitingReads=[],o.maxParallelReads=a.maxParallelReads||10,o.readingCalls=0,o.state={},o.queue=[],o.backend&&o.backend.init&&o.backend.init(i,a.backend,a),o}return(0,eP.Z)(r,[{key:"queueLoad",value:function(e,t,n,r){var i=this,o={},a={},s={},u={};return e.forEach(function(e){var r=!0;t.forEach(function(t){var s="".concat(e,"|").concat(t);!n.reload&&i.store.hasResourceBundle(e,t)?i.state[s]=2:i.state[s]<0||(1===i.state[s]?void 0===a[s]&&(a[s]=!0):(i.state[s]=1,r=!1,void 0===a[s]&&(a[s]=!0),void 0===o[s]&&(o[s]=!0),void 0===u[t]&&(u[t]=!0)))}),r||(s[e]=!0)}),(Object.keys(o).length||Object.keys(a).length)&&this.queue.push({pending:a,pendingCount:Object.keys(a).length,loaded:{},errors:[],callback:r}),{toLoad:Object.keys(o),pending:Object.keys(a),toLoadLanguages:Object.keys(s),toLoadNamespaces:Object.keys(u)}}},{key:"loaded",value:function(e,t,n){var r=e.split("|"),i=r[0],o=r[1];t&&this.emit("failedLoading",i,o,t),n&&this.store.addResourceBundle(i,o,n),this.state[e]=t?-1:2;var a={};this.queue.forEach(function(n){var r,s,u,l;(u=(s=eH(n.loaded,[i],Object)).obj)[l=s.k]=u[l]||[],r&&(u[l]=u[l].concat(o)),r||u[l].push(o),void 0!==n.pending[e]&&(delete n.pe
27nding[e],n.pendingCount--),t&&n.errors.push(t),0!==n.pendingCount||n.done||(Object.keys(n.loaded).forEach(function(e){a[e]||(a[e]={});var t=n.loaded[e];t.length&&t.forEach(function(t){void 0===a[e][t]&&(a[e][t]=!0)})}),n.done=!0,n.errors.length?n.callback(n.errors):n.callback())}),this.emit("loaded",a),this.queue=this.queue.filter(function(e){return!e.done})}},{key:"read",value:function(e,t,n){var r=this,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:350,a=arguments.length>5?arguments[5]:void 0;if(!e.length)return a(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:e,ns:t,fcName:n,tried:i,wait:o,callback:a});return}return this.readingCalls++,this.backend[n](e,t,function(s,u){if(r.readingCalls--,r.waitingReads.length>0){var l=r.waitingReads.shift();r.read(l.lng,l.ns,l.fcName,l.tried,l.wait,l.callback)}if(s&&u&&i<5){setTimeout(function(){r.read.call(r,e,t,n,i+1,2*o,a)},o);return}a(s,u)})}},{key:"prepareLoading",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?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();"string"==typeof e&&(e=this.languageUtils.toResolveHierarchy(e)),"string"==typeof t&&(t=[t]);var o=this.queueLoad(e,t,r,i);if(!o.toLoad.length)return o.pending.length||i(),null;o.toLoad.forEach(function(e){n.loadOne(e)})}},{key:"load",value:function(e,t,n){this.prepareLoading(e,t,{},n)}},{key:"reload",value:function(e,t,n){this.prepareLoading(e,t,{reload:!0},n)}},{key:"loadOne",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=e.split("|"),i=r[0],o=r[1];this.read(i,o,"read",void 0,void 0,function(r,a){r&&t.logger.warn("".concat(n,"loading namespace ").concat(o," for language ").concat(i," failed"),r),!r&&a&&t.logger.log("".concat(n,"loaded namespace ").concat(o," for language ").concat(i),a),t.loaded(e,r,a)})}},{key:"saveMissing",value:function(e,t,n,r,i){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(t)){this.logger.warn('did not save key "'.concat(n,'" as the namespace "').concat(t,'" 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}null!=n&&""!==n&&(this.backend&&this.backend.create&&this.backend.create(e,t,n,r,null,td(td({},o),{},{isUpdate:i})),e&&e[0]&&this.store.addResource(e[0],t,n,r))}}]),r}(ez);function th(e){return"string"==typeof e.ns&&(e.ns=[e.ns]),"string"==typeof e.fallbackLng&&(e.fallbackLng=[e.fallbackLng]),"string"==typeof e.fallbackNS&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&0>e.supportedLngs.indexOf("cimode")&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function tg(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function tm(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?tg(Object(n),!0).forEach(function(t){(0,eD.Z)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tg(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function tv(){}var ty=function(e){ej(r,e);var t,n=(t=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,n=eR(r);if(t){var i=eR(this).constructor;e=Reflect.construct(n,arguments,i)}else e=n.apply(this,arguments);return eI(this,e)});function r(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=arguments.length>1?arguments[1]:void 0;if((0,eC.Z)(this,r),e=n.call(this),eJ&&ez.call(eA(e)),e.options=th(t),e.services={},e.logger=eB,e.modules={external:[]},!function(e){Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEac
27h(function(t){"function"==typeof e[t]&&(e[t]=e[t].bind(e))})}(eA(e)),i&&!e.isInitialized&&!t.isClone){if(!e.options.initImmediate)return e.init(t,i),eI(e,eA(e));setTimeout(function(){e.init(t,i)},0)}return e}return(0,eP.Z)(r,[{key:"init",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;"function"==typeof t&&(n=t,t={}),!t.defaultNS&&t.ns&&("string"==typeof t.ns?t.defaultNS=t.ns:0>t.ns.indexOf("translation")&&(t.defaultNS=t.ns[0]));var r={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:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(e){var t={};if("object"===(0,eT.Z)(e[1])&&(t=e[1]),"string"==typeof e[1]&&(t.defaultValue=e[1]),"string"==typeof e[2]&&(t.tDescription=e[2]),"object"===(0,eT.Z)(e[2])||"object"===(0,eT.Z)(e[3])){var n=e[3]||e[2];Object.keys(n).forEach(function(e){t[e]=n[e]})}return t},interpolation:{escapeValue:!0,format:function(e,t,n,r){return e},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}};function i(e){return e?"function"==typeof e?new e:e:null}if(this.options=tm(tm(tm({},r),this.options),th(t)),"v1"!==this.options.compatibilityAPI&&(this.options.interpolation=tm(tm({},r.interpolation),this.options.interpolation)),void 0!==t.keySeparator&&(this.options.userDefinedKeySeparator=t.keySeparator),void 0!==t.nsSeparator&&(this.options.userDefinedNsSeparator=t.nsSeparator),!this.options.isClone){this.modules.logger?eB.init(i(this.modules.logger),this.options):eB.init(null,this.options),this.modules.formatter?o=this.modules.formatter:"undefined"!=typeof Intl&&(o=tc);var o,a=new e9(this.options);this.store=new e2(this.options.resources,this.options);var s=this.services;s.logger=eB,s.resourceStore=this.store,s.languageUtils=a,s.pluralResolver=new ti(a,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),o&&(!this.options.interpolation.format||this.options.interpolation.format===r.interpolation.format)&&(s.formatter=i(o),s.formatter.init(s,this.options),this.options.interpolation.format=s.formatter.format.bind(s.formatter)),s.interpolator=new ts(this.options),s.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},s.backendConnector=new tp(i(this.modules.backend),s.resourceStore,s,this.options),s.backendConnector.on("*",function(t){for(var n=arguments.length,r=Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];e.emit.apply(e,[t].concat(r))}),this.modules.languageDetector&&(s.languageDetector=i(this.modules.languageDetector),s.languageDetector.init(s,this.options.detection,this.options)),this.modules.i18nFormat&&(s.i18nFormat=i(this.modules.i18nFormat),s.i18nFormat.init&&s.i18nFormat.init(this)),this.translator=new e7(this.services,this.options),this.translator.on("*",function(t){for(var n=arguments.length,r=Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];e.emit.apply(e,[t].concat(r))}),this.modules.external.forEach(function(t){t.init&&t.init(e)})}if(this.format=this.options.interpolation.format,n||(n=tv),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){var u=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);u.length>0&&"dev"!==u[0]&&(this.options.lng=u[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(function(t){e[t]=function(){var n;return(n=e.store)[t].apply(n,arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(function(t){e[t]=function(){var n;return(n=e.store)[t].apply(n,arguments),e}});var l=eq(),c=function(){var t=function(t,r){e.isInitialized&&!e.initializedStoreOnce&&e.logger.warn("init: i18next is already initialized. You should call init just once!"),e.isInitialized=!0,e.options.isClone||e.logger.log("initialized",e.options),e.emit("initialized",e.options),l.resolve(r),n(t,r)};if(e.languages&&"v1"!==e.options.compatibilityAPI&&!e.isInitialized)return t(null,e.t.bind(e));e.changeLanguage(e.options.lng,t)};return this.options.resources||!this.options.initImmediate?c():setTimeout(c,0),l}},{key:"loadResources",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:tv,r=n,i="string"==typeof e?e:this.language;if("function"==typeof e&&(r=e),!this.options.resources||this.options.partialBundledLanguages){if(i&&"cimode"===i.toLowerCase())return r();var o=[],a=function(e){e&&t.services.languageUtils.toResolveHierarchy(e).forEach(function(e){0>o.indexOf(e)&&o.push(e)})};i?a(i):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(function(e){return a(e)}
vendor: 3,530 bytes, line 27
27),this.options.preload&&this.options.preload.forEach(function(e){return a(e)}),this.services.backendConnector.load(o,this.options.ns,function(e){e||t.resolvedLanguage||!t.language||t.setResolvedLanguage(t.language),r(e)})}else r(null)}},{key:"reloadResources",value:function(e,t,n){var r=eq();return e||(e=this.languages),t||(t=this.options.ns),n||(n=tv),this.services.backendConnector.reload(e,t,function(e){r.resolve(),n(e)}),r}},{key:"use",value:function(e){if(!e)throw Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===e.type&&(this.modules.backend=e),("logger"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),"languageDetector"===e.type&&(this.modules.languageDetector=e),"i18nFormat"===e.type&&(this.modules.i18nFormat=e),"postProcessor"===e.type&&e4.addPostProcessor(e),"formatter"===e.type&&(this.modules.formatter=e),"3rdParty"===e.type&&this.modules.external.push(e),this}},{key:"setResolvedLanguage",value:function(e){if(e&&this.languages&&!(["cimode","dev"].indexOf(e)>-1))for(var t=0;t<this.languages.length;t++){var n=this.languages[t];if(!(["cimode","dev"].indexOf(n)>-1)&&this.store.hasLanguageSomeTranslations(n)){this.resolvedLanguage=n;break}}}},{key:"changeLanguage",value:function(e,t){var n=this;this.isLanguageChangingTo=e;var r=eq();this.emit("languageChanging",e);var i=function(e){n.language=e,n.languages=n.services.languageUtils.toResolveHierarchy(e),n.resolvedLanguage=void 0,n.setResolvedLanguage(e)},o=function(e,o){o?(i(o),n.translator.changeLanguage(o),n.isLanguageChangingTo=void 0,n.emit("languageChanged",o),n.logger.log("languageChanged",o)):n.isLanguageChangingTo=void 0,r.resolve(function(){return n.t.apply(n,arguments)}),t&&t(e,function(){return n.t.apply(n,arguments)})},a=function(t){e||t||!n.services.languageDetector||(t=[]);var r="string"==typeof t?t:n.services.languageUtils.getBestMatchFromCodes(t);r&&(n.language||i(r),n.translator.language||n.translator.changeLanguage(r),n.services.languageDetector&&n.services.languageDetector.cacheUserLanguage(r)),n.loadResources(r,function(e){o(e,r)})};return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect(a):a(e):a(this.services.languageDetector.detect()),r}},{key:"getFixedT",value:function(e,t,n){var r=this,i=function e(t,i){if("object"!==(0,eT.Z)(i)){for(var o,a=arguments.length,s=Array(a>2?a-2:0),u=2;u<a;u++)s[u-2]=arguments[u];o=r.options.overloadTranslationOptionHandler([t,i].concat(s))}else o=tm({},i);o.lng=o.lng||e.lng,o.lngs=o.lngs||e.lngs,o.ns=o.ns||e.ns,o.keyPrefix=o.keyPrefix||n||e.keyPrefix;var l=r.options.keySeparator||".",c=o.keyPrefix?"".concat(o.keyPrefix).concat(l).concat(t):t;return r.t(c,o)};return"string"==typeof e?i.lng=e:i.lngs=e,i.ns=t,i.keyPrefix=n,i}},{key:"t",value:function(){var e;return this.translator&&(e=this.translator).translate.apply(e,arguments)}},{key:"exists",value:function(){var e;return this.translator&&(e=this.translator).exists.apply(e,arguments)}},{key:"setDefaultNamespace",value:function(e){this.options.defaultNS=e}},{key:"hasLoadedNamespace",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;
27if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;var r=this.resolvedLanguage||this.languages[0],i=!!this.options&&this.options.fallbackLng,o=this.languages[this.languages.length-1];if("cimode"===r.toLowerCase())return!0;var a=function(e,n){var r=t.services.backendConnector.state["".concat(e,"|").concat(n)];return -1===r||2===r};if(n.precheck){var s=n.precheck(this,a);if(void 0!==s)return s}return!!(this.hasResourceBundle(r,e)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||a(r,e)&&(!i||a(o,e)))}},{key:"loadNamespaces",value:function(e,t){var n=this,r=eq();return this.options.ns?("string"==typeof e&&(e=[e]),e.forEach(function(e){0>n.options.ns.indexOf(e)&&n.options.ns.push(e)}),this.loadResources(function(e){r.resolve(),t&&t(e)}),r):(t&&t(),Promise.resolve())}},{key:"loadLanguages",value:function(e,t){var n=eq();"string"==typeof e&&(e=[e]);var r=this.options.preload||[],i=e.filter(function(e){return 0>r.indexOf(e)});return i.length?(this.options.preload=r.concat(i),this.loadResources(function(e){n.resolve(),t&&t(e)}),n):(t&&t(),Promise.resolve())}},{key:"dir",value:function(e){return(e||(e=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),e)?["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"].indexOf(this.services.languageUtils.getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr":"rtl"}},{key:"cloneInstance",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:tv,i=tm(tm(tm({},this.options),t),{isClone:!0}),o=new r(i);return["store","services","language"].forEach(function(t){o[t]=e[t]}),o.services=tm({},this.services),o.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},o.translator=new e7(o.services,o.options),o.translator.on("*",function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];o.emit.apply(o,[e].concat(n))}),o.init(i,n),o.translator.options=o.options,o.translator.backendConnector.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},o}},{key:"toJSON",value:function(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}]),r}(ez);(0,eD.Z)(ty,"createInstance",function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return new ty(e,t)});var tb=ty.createInstance();tb.createInstance=ty.createInstance,tb.createInstance,tb.init,tb.loadResources,tb.reloadResources,tb.use,tb.changeLanguage,tb.getFixedT,tb.t,tb.exists,tb.setDefaultNamespace,tb.hasLoadedNamespace,tb.loadNamespaces,tb.loadLanguages;var t_=JSON.parse('{"bookmark":{"added":"Marca de leitura colocada","removed":"Marca de leitura removida"},"contributeSection":{"title":"Obrigado por leres este artigo at\xe9 ao f
27im.","body":"Se gostaste do que leste, considera apoiar‑nos. Podes faz\xea‑lo a partir de apenas €2 por m\xeas. Se n\xe3o puderes contribuir, partilha este artigo nas redes sociais e ajuda‑nos a chegar mais longe.","link":"Contribuir"},"footnotes":{"title":"Refer\xeancias"},"shareWith":{"email":"Partilhar por email","facebook":"Partilhar por Facebook","twitter":"Partilhar por Twitter","link":"Copiar o URL para este artigo"},"sidebar":{"relatedArticles":{"title":"Para continuar a ler","seeAll":"Ver todos os artigos"}},"subscribeToRSS":"Feed RSS","writtenBy":"Por {{name}}"}'),tS=JSON.parse('{"pageTitle":"Artigos","readMore":"Ler mais","pages":"{current} de {pageCount}","error":{"fetchingArticles":"Algo correu mal. N\xe3o conseguimos transferir os artigos"},"buttons":{"buffering":"A carregar...","pause":"Pausar","play":"Reproduzir","listen":"Ouvir"},"search":{"input":{"label":"Pesquisar","placeholder":"Pesquisar artigos, epis\xf3dios, etc..."},"noResults":"N\xe3o encontr\xe1mos nada"}}'),tE=JSON.parse('{"metadata":{"list":{"title":"Categorias"}}}'),tO=JSON.parse('{"modal":{"buttons":{"close":"Fechar"}}}'),tw=JSON.parse('{"authorCard":{"posts":{"title":"Publica\xe7\xf5es"},"seeLess":"Ver menos","seeMore":"Ver mais"},"authors":{"title":"Autores"}}'),tx=JSON.parse('{"openCollective":{"contributeBtn":"Contribuir"}}'),tT=JSON.parse('{"datasets":{"table":{"headers":{"name":"Conjunto de dados","relatedPages":"P\xe1ginas relacionadas"}}}}'),tC=JSON.parse('{"articlesRSS":"Feed RSS","edjn":{"body":"Membro associado da"},"email":{"title":"Enviar um e-mail"},"links":{"about":"Sobre","contribute":"Contribuir","data":"Dados","newsletter":"Newsletter","privacyPolicy":"Pol\xedtica de privacidade","techBlog":"Blogue de tecnologia"},"logo":{"alt":"Interruptor"}}'),tP=JSON.parse('{"404title":"N\xe3o encontr\xe1mos a p\xe1gina","copiedToClipboard":{"default":"Copiado para a \xe1rea de transfer\xeancia","url":"URL copiado para a \xe1rea de transfer\xeancia"},"closePopup":"Fechar","downloadingProgress":"A transferir... ({{percent}}%)","genericError":"Qualquer coisa correu mal","loading":"A carregar..."}'),tA=JSON.parse('{"categories":{"featured":{"readMore":"Mais artigos","title":"Temas"}},"featuredPodcast":{"latestEpisode":"\xdaltimo epis\xf3dio"},"metadata":{"title":"Interruptor | Liga-te"},"seeAllArticles":"Ver todos os artigos"}'),tk=JSON.parse('{"thanks":"Obrigado por nos apoiares com Web Monetization.\\nEstamos a trabalhar em funcionalidades exclusivas para quem nos apoia desta forma.\\nJ\xe1 podes mudar o tema do site nas defini\xe7\xf5es."}');let tj={pt:{articlePage:t_,articles:tS,categories:tE,components:tO,contentThemePage:tw,contribute:tx,data:tT,footer:tC,general:tP,home:tA,navbar:JSON.parse('{"links":{"articles":"Artigos","about":"Sobre","contribute":"Contribuir","newsletter":"Newsletter","podcast":"Podcast"},"buttons":{"toggle":{"ariaLabel":"Abrir/fechar menu"},"close":{"ariaLabel":"Fechar menu"}},"logo":{"alt":"Interruptor"},"searchBar":{"input":{"label":"Pesquisar","placeholder":"Pesquisar artigos, epis\xf3dios, etc..."},"noResults":"N\xe3o encontr\xe1mos nada","error":"Algo correu mal"},"settingsMenu":{"font":{"dropdown":{"open":"Mostrar op\xe7\xf5es de tipo de letra","options":{"default":"Lora (padr\xe3o)","bitter":"Bitter","inter":"Inter","proza-libre":"Proza Libre"},"title":"Tipo de letra"}},"theme":{"toggle":{"description":"Ativar modo escuro"},"dropdown":{"open":"Mostrar op\xe7\xf5es de tema","options":{"dark__black-and-white":"Preto e branco (escuro)","light__black-and-white":"Preto e branco","light":"Modo claro","dark":"Modo escuro","peach":"P\xeassego"},"title":"Tema"}},"toggleButton":"Abrir menu de defini\xe7\xf5es"}}'),monetization:tk,newsletter:JSON.parse('{"form":{"email":{"label":"E-mail","placeholder":"[email protected]","validation":{"required":"Obrigat\xf3rio","invalid":"E-mail inv\xe1lido"}},"submit":"Submeter","errors":{"submit":"Qualquer coisa correu mal","already_subscribed":"J\xe1 subscreveste.","subscribed_but_not_confirmed":"J\xe1 subscreveste. Aguarda pelo e-mail de confirma\xe7\xe3o (pode demorar alguns minutos a ser entregue)."}},"afterSubmitting":{"title":"Est\xe1 quase...","body":"Verifica a tua caixa de e-mail e confirma a subscri\xe7\xe3o."},"recentNewsletters":{"title":"Circuitos ligados"}}
27'),podcasts:JSON.parse('{"buttons":{"buffering":"A carregar...","pause":"Pausar","play":"Reproduzir","listenNow":"Ouvir agora"},"downloadEpisode":{"cancel":"Cancelar a transfer\xeancia","error":"Algo correu mal. N\xe3o conseguimos transferir o epis\xf3dio","start":"Transferir"},"episodesList":{"isCurrentlyPlaying":"Est\xe1 a reproduzir"},"error":{"problemLoadingEpisode":"Algo correu mal. N\xe3o conseguimos transferir os detalhes do epis\xf3dio","problemLoadingPodcast":"Algo correu mal. N\xe3o conseguimos transferir os detalhes do podcast"},"extrasMenu":{"showMenu":"Abrir menu","hideMenu":"Fechar menu"},"subscribeLinks":{"rss":"Feed RSS","spotify":"Spotify","apple":"Apple Podcasts","deezer":"Deezer","google":"Google Podcasts","pocketCasts":"Pocket Casts"},"metadata":{"list":{"title":"Podcasts"},"single":{"title":"Podcast"}},"transcription":{"title":"Transcri\xe7\xe3o"}}'),privacy:JSON.parse('{"cookies":{"delete":"Apagar cookie","inUse":"Cookies em uso","noCookiesInUse":"N\xe3o h\xe1 cookies em uso.","table":{"name":"Nome","value":"Valor"}}}'),social:JSON.parse('{"facebook":"Facebook","github":"GitHub","instagram":"Instagram","twitter":"Twitter","followOn":{"facebook":"Segue o Interruptor no Facebook","github":"Ver o reposit\xf3rio do Interruptor no GitHub","instagram":"Segue o Interruptor no Instagram","twitter":"Segue o Interruptor no Twitter"}}')}};tb.use(E.Db).init({lng:"pt",fallbackLng:"pt",defaultNS:"general",ns:Object.keys(tj.pt),debug:!1,resources:tj,interpolation:{escapeValue:!1},react:{useSuspense:!1}});var tI=n(50252),tR=n(22774),tD=n(20640),tN=n.n(tD),tL=n(67509),tM=n(46702),tF=n(51591),tU=n(80289),t$=n(20706);let{links:tB,socialMedia:tz}=ee.publicConfig,tq=()=>{let{t:e}=(0,Z.$)("social");return[{href:tB.github.url,text:e("social:followOn.github"),Icon:tM.Z},{href:tz.facebook.url,text:e("social:followOn.facebook"),Icon:tF.Z},{href:tz.instagram.url,text:e("social:followOn.instagram"),Icon:tU.Z},{href:tz.twitter.url,text:e("social:followOn.twitter"),Icon:t$.Z}]},{licence:tV,links:{edjn:tH}}=ee.publicConfig,tZ=()=>{let{t:e}=(0,Z.$)(["footer","social"]),[t]=(0,M.M8)(),n=tq(),r=[{text:e("footer:links.about"),path:tI.d.ABOUT},{text:e("footer:links.privacyPolicy"),path:tI.d.PRIVACY_POLICY},{text:e("footer:links.data"),path:tI.d.DATA},{text:e("footer:links.techBlog"),path:ee.publicConfig.techBlogURL},{text:e("footer:links.contribute"),path:tI.d.CONTRIBUTE,linkClass:"text-secondary-500"}];return(0,m.jsx)("footer",{className:(0,D.Z)("bg-black font-display text-white",{"pb-16 md:pb-20":!!t}),children:(0,m.jsxs)("div",{className:"mx-auto flex w-full max-w-screen-lg flex-col flex-wrap py-12 md:flex-row",children:[(0,m.jsxs)("div",{className:"order-1 flex grow flex-col items-center p-4 md:order-2 md:items-start",children:[(0,m.jsx)(G.Z,{href:"/",children:(0,m.jsx)("img",{src:"/_next/static/media/logo-white.9aefab22.svg",alt:e("footer:logo.alt"),className:"mb-4 w-48 md:mb-1"})}),(0,m.jsx)("ul",{className:"space-y-2 md:space-y-1",children:r.map(e=>{let{text:t,path:n,linkClass:r="text-white"}=e;return(0,m.jsx)("li",{className:"list-none text-center font-medium md:text-left",children:(0,m.jsx)(G.Z,{href:n,className:r,children:t})},n)})})]}),(0,m.jsxs)("div",{className:(0,D.Z)("flex flex-col justify-between","order-2 md:order-3","grow-0"),children:[(0,m.jsxs)("div",{className:(0,D.Z)("flex items-start justify-center md:justify-end","space-x-4 p-4"),children:[(0,m.jsxs)("button",{onClick:()=>{tN()((0,tL.N)(),{format:"text/plain"}),(0,eg.Am)(e("general:copiedToClipboard.url"))},title:e("footer:articlesRSS"),type:"button",children:[(0,m.jsx)(Q.Z,{strokeWidth:"0.1rem",size:24}),(0,m.jsx)("span",{className:"sr-only",children:e("footer:articlesRSS")})]}),(0,m.jsx)("a",{href:"mailto:".concat(ee.publicConfig.email.general),title:e("footer:email.title"),children:(0,m.jsx)(tR.Z,{"aria-label":e("footer:email.title"),strokeWidth:"0.1rem",size:24})}),n.map(e=>{let{href:t,text:n,Icon:r}=e;return(0,m.jsxs)(G.Z,{href:t,title:n,isExternal:!0,children:[(0,m.jsx)(r,{"aria-label":n,strokeWidth:"0.1rem",size:24}),(0,m.jsx)("span",{className:"sr-only",children:n})]},t)})]}),(0,m.jsx)("div",{className:"flex flex-col items-center p-4 md:items-end",children:(0,m.jsxs)("small",{className:"flex flex-col",children:[(0,m.jsx)("span",{className:"mx-auto mb-1",children:e("edjn.body")}),(0,m.jsx)(G.Z,{className:"rounded-[10px] bg-white p-1 px-2",href:tH.url,isExternal:!0,children:(0,m.jsx)("img",{src:"/_next/static/media/EDJN_extended_logo.13248f4e.png",alt:tH.name,height:60,width:155,loading:"lazy"})})]})})]}),(0,m.jsx)("div",{className:"order-3 p-4 md:order-1",children:(0,m.jsxs)(G.Z,{"aria-label":tV.title,href:tV.url,className:"flex flex-row justify-center",title:tV.title,isExternal:!0,children:[tV.iconPaths.map(e=>
27(0,m.jsx)("img",{src:e,alt:"",className:"mx-px h-6 w-6"},e)),(0,m.jsx)("span",{className:"sr-only",children:tV.title})]})})]})})},tW=(0,v.createContext)(void 0);tW.displayName="SiteConfigContext";let tQ=()=>{let e=(0,v.useContext)(tW);if(!e)throw Error("[useSiteConfig] The hook was used outside of the provider");return e},tG=(0,j.cn)(!1);tG.onMount=e=>e(!0);let tK=()=>(0,j.KO)(tG)[0];var tY={src:"/_next/static/media/logo-yellow.19b721c3.svg",height:177,width:902,blurWidth:0,blurHeight:0};let tJ=()=>{let{t:e}=(0,Z.$)("navbar"),t=e("logo.alt"),n=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,D.Z)(t,"hidden pt-1 w-40")};return(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)("img",{src:tY.src,className:n("theme-bw:!hidden dark:inline"),alt:t}),(0,m.jsx)("img",{src:"/_next/static/media/logo-purple.55274a0f.svg",className:n("light:inline theme-bw:hidden"),alt:t}),(0,m.jsx)("img",{src:"/_next/static/media/logo-black.5aeff9d1.svg",className:n("theme-peach:inline"),alt:t}),(0,m.jsx)("img",{src:"/_next/static/media/logo-bw.d485930d.svg",className:n("theme-bw:inline dark:hidden"),alt:t}),(0,m.jsx)("img",{src:"/_next/static/media/logo-wb.053e84c8.svg",className:n("dark:theme-bw:inline"),alt:t})]})};function tX(){return(tX=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var t0=(0,v.forwardRef)(function(e,t){var n=e.color,r=e.size,i=void 0===r?24:r,o=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(e,["color","size"]);return v.createElement("svg",tX({ref:t,xmlns:"http://www.w3.org/2000/svg",width:i,height:i,viewBox:"0 0 24 24",fill:"none",stroke:void 0===n?"currentColor":n,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},o),v.createElement("line",{x1:"3",y1:"12",x2:"21",y2:"12"}),v.createElement("line",{x1:"3",y1:"6",x2:"21",y2:"6"}),v.createElement("line",{x1:"3",y1:"18",x2:"21",y2:"18"}))});t0.propTypes={color:q().string,size:q().oneOfType([q().string,q().number])},t0.displayName="Menu";var t1=n(93803);let t2=()=>{let e=tq();return(0,m.jsx)("ul",{className:"flex flex-row items-center space-x-4",children:e.map(e=>{let{href:t,text:n,Icon:r}=e;return(0,m.jsx)("li",{children:(0,m.jsxs)(G.Z,{href:t,isExternal:!0,children:[(0,m.jsx)(r,{}),(0,m.jsx)("span",{className:"sr-only",children:n})]})},t)})})},t4=()=>{let{t:e}=(0,Z.$)("navbar"),t=(0,A.useRouter)(),[n,r]=(0,v.useState)(!1),i=(0,R.useSpring)({transform:"translateX(".concat(n?0:-100,"%)")}),{navbar:o}=tQ();(0,v.useEffect)(()=>{r(!1)},[t.asPath]),(0,v.useEffect)(()=>{document.body.classList.toggle("max-h-screen",n),document.body.classList.toggle("overflow-hidden",n)},[n]);let a=()=>r(!1);return(0,m.jsxs)("div",{className:"flex items-center md:hidden",children:[(0,m.jsx)(t1.h,{title:e("buttons.toggle.ariaLabel"),onClick:()=>r(!n),type:"button",children:(0,m.jsx)(t0,{"aria-label":e("buttons.toggle.ariaLabel")})}),(0,m.jsxs)(R.animated.div,{className:(0,D.Z)("fixed top-0 left-0 z-40","flex flex-col","p-3 md:p-4","h-full w-full","bg-primary-500 theme-peach:bg-gray-800 dark:bg-primary-700","origin-top-right"),style:i,children:[(0,m.jsxs)("div",{className:"flex items-center justify-between",children:[(0,m.jsx)("img",{...tY,alt:e("logo.alt"),className:"w-40 pt-1"}),(0,m.jsx)(t1.h,{className:"text-secondary-500",title:e("buttons.close.ariaLabel"),onClick:a,type:"button",children:(0,m.jsx)(eh,{"aria-label":e("buttons.close.ariaLabel")})})]}),(0,m.jsx)("ul",{className:"flex flex-1 flex-col items-center justify-center space-y-4",children:o.links.map(e=>{let{text:t,url:n,isHighlighted:r}=e;return(0,m.jsx)("li",{className:"list-none",children:(0,m.jsx)(G.Z,{href:n,className:(0,D.Z)("text-xl font-bold",r?"text-secondary-500 no-underline":"text-white no-underline"),onClick:a,children:t})},n)})}),(0,m.jsx)("div",{className:"mx-auto mb-4 text-white",children:(0,m.jsx)(t2,{})})]})]})};function t3(){return(t3=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var t5=(0,v.forwardRef)(function(e,t){var n=e.color,r=e.size,i=void 0===r?24:r,o=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(e,["color","size"]);return v.createElement("svg",t3({ref:t,xmlns:"http://www.w3.org/2000/svg",width:i,height:i,viewBox:"0 0 24 24",fill:"none",stroke:void 0===n?"currentColor":n,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},o),v.createElement("circle",{cx:"11",cy:"11",r:"8"}),v.createElement("line",{x1:"21",y1:"21",x2:"16.65",y2:"16.65"}))});
27t5.propTypes={color:q().string,size:q().oneOfType([q().string,q().number])},t5.displayName="Search";var t6=n(32984),t7=n(12351),t8=n(23784),t9=n(19946),ne=n(61363);function nt(e){let t=e.parentElement,n=null;for(;t&&!(t instanceof HTMLFieldSetElement);)t instanceof HTMLLegendElement&&(n=t),t=t.parentElement;let r=(null==t?void 0:t.getAttribute("disabled"))==="";return!(r&&function(e){if(!e)return!1;let t=e.previousElementSibling;for(;null!==t;){if(t instanceof HTMLLegendElement)return!1;t=t.previousElementSibling}return!0}(n))&&r}var nn=n(84575),nr=n(16567),ni=n(14157),no=n(3855);function na(e,t,n){let r=(0,no.E)(t);(0,v.useEffect)(()=>{function t(e){r.current(e)}return window.addEventListener(e,t,n),()=>window.removeEventListener(e,t,n)},[e,n])}function ns(e,t,n=!0){let r=(0,v.useRef)(!1);function i(n,i){if(!r.current||n.defaultPrevented)return;let o=function e(t){return"function"==typeof t?e(t()):Array.isArray(t)||t instanceof Set?t:[t]}(e),a=i(n);if(null!==a&&a.ownerDocument.documentElement.contains(a)){for(let e of o){if(null===e)continue;let t=e instanceof HTMLElement?e:e.current;if(null!=t&&t.contains(a))return}return(0,nn.sP)(a,nn.tJ.Loose)||-1===a.tabIndex||n.preventDefault(),t(n,a)}}(0,v.useEffect)(()=>{requestAnimationFrame(()=>{r.current=n})},[n]),na("click",e=>i(e,e=>e.target),!0),na("blur",e=>i(e,()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null),!0)}var nu=n(15466);function nl(...e){return(0,v.useMemo)(()=>(0,nu.r)(...e),[...e])}var nc=n(46045),nf=n(73781),nd=((o=nd||{})[o.Forwards=0]="Forwards",o[o.Backwards=1]="Backwards",o);function np(){let e=(0,v.useRef)(0);return na("keydown",t=>{"Tab"===t.key&&(e.current=t.shiftKey?1:0)},!0),e}var nh=((a=nh||{})[a.Open=0]="Open",a[a.Closed=1]="Closed",a),ng=((s=ng||{})[s.TogglePopover=0]="TogglePopover",s[s.ClosePopover=1]="ClosePopover",s[s.SetButton=2]="SetButton",s[s.SetButtonId=3]="SetButtonId",s[s.SetPanel=4]="SetPanel",s[s.SetPanelId=5]="SetPanelId",s);let nm={0:e=>({...e,popoverState:(0,t6.E)(e.popoverState,{0:1,1:0})}),1:e=>1===e.popoverState?e:{...e,popoverState:1},2:(e,t)=>e.button===t.button?e:{...e,button:t.button},3:(e,t)=>
27e.buttonId===t.buttonId?e:{...e,buttonId:t.buttonId},4:(e,t)=>e.panel===t.panel?e:{...e,panel:t.panel},5:(e,t)=>e.panelId===t.panelId?e:{...e,panelId:t.panelId}},nv=(0,v.createContext)(null);function ny(e){let t=(0,v.useContext)(nv);if(null===t){let t=Error(`<${e} /> is missing a parent <Popover /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,ny),t}return t}nv.displayName="PopoverContext";let nb=(0,v.createContext)(null);function n_(e){let t=(0,v.useContext)(nb);if(null===t){let t=Error(`<${e} /> is missing a parent <Popover /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,n_),t}return t}nb.displayName="PopoverAPIContext";let nS=(0,v.createContext)(null);function nE(){return(0,v.useContext)(nS)}nS.displayName="PopoverGroupContext";let nO=(0,v.createContext)(null);function nw(e,t){return(0,t6.E)(t.type,nm,e,t)}nO.displayName="PopoverPanelContext";let nx=(0,t7.yV)(function(e,t){var n,r,i;let o;let a=`headlessui-popover-button-${(0,t9.M)()}`,s=`headlessui-popover-panel-${(0,t9.M)()}`,u=(0,v.useRef)(null),l=(0,t8.T)(t,(0,t8.h)(e=>{u.current=e})),c=(0,v.useReducer)(nw,{popoverState:1,button:null,buttonId:a,panel:null,panelId:s,beforePanelSentinel:(0,v.createRef)(),afterPanelSentinel:(0,v.createRef)()}),[{popoverState:f,button:d,panel:p,beforePanelSentinel:h,afterPanelSentinel:g},m]=c,y=nl(null!=(n=u.current)?n:d);(0,v.useEffect)(()=>m({type:3,buttonId:a}),[a,m]),(0,v.useEffect)(()=>m({type:5,panelId:s}),[s,m]);let b=(0,v.useMemo)(()=>{if(!d||!p)return!1;for(let e of document.querySelectorAll("body > *"))if(Number(null==e?void 0:e.contains(d))^Number(null==e?void 0:e.contains(p)))return!0;return!1},[d,p]),_=(0,v.useMemo)(()=>({buttonId:a,panelId:s,close:()=>m({type:1})}),[a,s,m]),S=nE(),E=null==S?void 0:S.registerPopover,O=(0,nf.z)(()=>{var e;return null!=(e=null==S?void 0:S.isFocusWithinPopoverGroup())?e:(null==y?void 0:y.activeElement)&&((null==d?void 0:d.contains(y.activeElement))||(null==p?void 0:p.contains(y.activeElement)))});(0,v.useEffect)(()=>null==E?void 0:E(_),[E,_]),r=null==y?void 0:y.defaultView,i="focus",o=(0,no.E)(e=>{var t,n,r,i;0===f&&(O()||!d||!p||null!=(n=null==(t=h.current)?void 0:t.contains)&&n.call(t,e.target)||null!=(i=null==(r=g.current)?void 0:r.contains)&&i.call(r,e.target)||m({type:1}))}),(0,v.useEffect)(()=>{function e(e){o.current(e)}return(r=null!=r?r:window).addEventListener(i,e,!0),()=>r.removeEventListener(i,e,!0)},[r,i,!0]),ns([d,p],(e,t)=>{m({type:1}),(0,nn.sP)(t,nn.tJ.Loose)||(e.preventDefault(),null==d||d.focus())},0===f);let w=(0,nf.z)(e=>{m({type:1});let t=e?e instanceof HTMLElement?e:e.current instanceof HTMLElement?e.current:d:d;null==t||t.focus()}),x=(0,v.useMemo)(()=>({close:w,isPortalled:b}),[w,b]),T=(0,v.useMemo)(()=>({open:0===f,close:w}),[f,w]);return v.createElement(nv.Provider,{value:c},v.createElement(nb.Provider,{value:x},v.createElement(nr.up,{value:(0,t6.E)(f,{0:nr.ZM.Open,1:nr.ZM.Closed})},(0,t7.sY)({ourProps:{ref:l},theirProps:e,slot:T,defaultTag:"div",name:"Popover"}))))}),nT=(0,t7.yV)(function(e,t){let[n,r]=ny("Popover.Button"),{isPortalled:i}=n_("Popover.Button"),o=(0,v.useRef)(null),a=`headlessui-focus-sentinel-${(0,t9.M)()}`,s=nE(),u=null==s?void 0:s.closeOthers,l=(0,v.useContext)(nO),c=null!==l&&l===n.panelId,f=(0,t8.T)(o,t,c?null:e=>r({type:2,button:e})),d=(0,t8.T)(o,t),p=nl(o),h=(0,nf.z)(e=>{var t,i,a;if(c){if(1===n.popoverState)return;switch(e.key){case ne.R.Space:case ne.R.Enter:e.preventDefault(),null==(i=(t=e.target).click)||i.call(t),r({type:1}),null==(a=n.button)||a.focus()}}else switch(e.key){case ne.R.Space:case ne.R.Enter:e.preventDefault(),e.stopPropagation(),1===n.popoverState&&(null==u||u(n.buttonId)),r({type:0});break;case ne.R.Escape:if(0!==n.popoverState)return null==u?void 0:u(n.buttonId);if(!o.current||(null==p?void 0:p.activeElement)&&!o.current.contains(p.activeElement))return;e.preventDefault(),e.stopPropagation(),r({type:1})}}),g=(0,nf.z)(e=>{c||e.key===ne.R.Space&&e.preventDefault()}),m=(0,nf.z)(t=>{var i,o;nt(t.currentTarget)||e.disabled||(c?(r({type:1}),null==(i=n.button)||i.focus()):(t.preventDefault(),t.stopPropagation(),1===n.popoverState&&(null==u||u(n.buttonId)),r({type:0}),null==(o=n.button)||o.focus()))}),y=(0,nf.z)(e=>{e.preventDefault(),e.stopPropagation()}),b=0===n.popoverState,_=(0,v.useMemo)(()=>({open:b}),[b]),S=(0,ni.f)(e,o),E=c?{ref:d,type:S,onKeyDown:h,onClick:m}:{ref:f,id:n.buttonId,type:S,"aria-expanded":e.disabled?void 0:0===n.popoverState,"aria-controls":n.panel?n.panelId:void 0,onKeyDown:h,onKeyUp:g,onClick:m,onMouseDown:y},O=np(),w=(0,nf.z)(()=>{let e=n.panel;e&&(0,t6.E)(O.current,{[nd.Forwards]:()=>(0,nn.jA)(e,nn.TO.First),[nd.Backwards]:()=>(0,nn.jA)(e,nn.TO.Last)})});return v.createElement(v.Fragment,null,(0,t7.sY)({ourProps:E,theirProps:e,slot:_,defaultTag:"button",name:"Popover.Button"}),b&&!c&&i&&v.createElement(nc._,{id:a,features:nc.A.Focusable,as:"button",type:"button",onFocus:w}))}),nC=t7.AN.RenderStrategy|t7.AN.Static,nP=(0,t7.yV)(function(e,t){let[{popoverState:n},r]=ny("Popover.Overlay"),i=(0,t8.T)(t),o=`headlessui-popover-overlay-${(0,t9.M)()}`,a=(0,nr.oJ)(),s=null!==a?a===nr.ZM.Open:0===n,u=(0,nf.z)(e=>{if(nt(e.currentTarget))return e.preventDefault();r({type:1})}),l=(0,v.useMemo)(()=>({open:0===n}),[n]);return(0,t7.sY)({ourProps:{ref:i,id:o,"aria-hidden":!0,onClick:u},theirProps:e,slot:l,defaultTag:"div",features:nC,visible:s,name:"Popover.Overlay"})}),nA=t7.AN.RenderStrategy|t7.AN.Static,nk=Object.assign(nx,{Button:nT,Overlay:nP,Panel:(0,t7.yV)(function(e,t){let{focus:n=!1,...r}=e,[i,o]=ny("Popover.Panel"),{close:a,isPortalled:s}=n_("Popover.Panel"),u=`headlessui-focus-sentinel-before-${(0,t9.M)()}`,l=`headlessui-focus-sentinel-after-${(0,t9.M)()}`,c=(0,v.useRef)(null),f=(0,t8.T)(c,t,e=>{o({type:4,panel:e})}),d=nl(c),p=(0,nr.oJ)(),h=null!==p?p===nr.ZM.Open:0===i.popoverState,g=(0,nf.z)(e=>{var t;if(e.key===ne.R.Escape){if(0!==i.popoverState||!c.current||(null==d?void 0:d.activeElement)&&!c.current.contains(d.activeElement))return;e.preventDefault(),e.stopPropagation(),o({type:1}
27),null==(t=i.button)||t.focus()}});(0,v.useEffect)(()=>{var t;e.static||1===i.popoverState&&(null==(t=e.unmount)||t)&&o({type:4,panel:null})},[i.popoverState,e.unmount,e.static,o]),(0,v.useEffect)(()=>{if(!n||0!==i.popoverState||!c.current)return;let e=null==d?void 0:d.activeElement;c.current.contains(e)||(0,nn.jA)(c.current,nn.TO.First)},[n,c,i.popoverState]);let m=(0,v.useMemo)(()=>({open:0===i.popoverState,close:a}),[i,a]),y={ref:f,id:i.panelId,onKeyDown:g,onBlur:n&&0===i.popoverState?e=>{var t,n,r,a,s;let u=e.relatedTarget;!u||!c.current||null!=(t=c.current)&&t.contains(u)||(o({type:1}),((null==(r=null==(n=i.beforePanelSentinel.current)?void 0:n.contains)?void 0:r.call(n,u))||(null==(s=null==(a=i.afterPanelSentinel.current)?void 0:a.contains)?void 0:s.call(a,u)))&&u.focus({preventScroll:!0}))}:void 0,tabIndex:-1},b=np(),_=(0,nf.z)(()=>{let e=c.current;e&&(0,t6.E)(b.current,{[nd.Forwards]:()=>{(0,nn.jA)(e,nn.TO.First)},[nd.Backwards]:()=>{var e;null==(e=i.button)||e.focus({preventScroll:!0})}})}),S=(0,nf.z)(()=>{let e=c.current;e&&(0,t6.E)(b.current,{[nd.Forwards]:()=>{var e,t,n;if(!i.button)return;let r=(0,nn.GO)(),o=r.indexOf(i.button),a=r.slice(0,o+1),s=[...r.slice(o+1),...a];for(let r of s.slice())if((null==(t=null==(e=null==r?void 0:r.id)?void 0:e.startsWith)?void 0:t.call(e,"headlessui-focus-sentinel-"))||(null==(n=i.panel)?void 0:n.contains(r))){let e=s.indexOf(r);-1!==e&&s.splice(e,1)}(0,nn.jA)(s,nn.TO.First,!1)},[nd.Backwards]:()=>(0,nn.jA)(e,nn.TO.Last)})});return v.createElement(nO.Provider,{value:i.panelId},h&&s&&v.createElement(nc._,{id:u,ref:i.beforePanelSentinel,features:nc.A.Focusable,as:"button",type:"button",onFocus:_}),(0,t7.sY)({ourProps:y,theirProps:r,slot:m,defaultTag:"div",features:nA,visible:h,name:"Popover.Panel"}),h&&s&&v.createElement(nc._,{id:l,ref:i.afterPanelSentinel,features:nc.A.Focusable,as:"button",type:"button",onFocus:S}))}),Group:(0,t7.yV)(function(e,t){let n=(0,v.useRef)(null),r=(0,t8.T)(n,t),[i,o]=(0,v.useState)([]),a=(0,nf.z)(e=>{o(t=>{let n=t.indexOf(e);if(-1!==n){let e=t.slice();return e.splice(n,1),e}return t})}),s=(0,nf.z)(e=>(o(t=>[...t,e]),()=>a(e))),u=(0,nf.z)(()=>{var e;let t=(0,nu.r)(n);if(!t)return!1;let r=t.activeElement;return!!(null!=(e=n.current)&&e.contains(r))||i.some(e=>{var n,i;return(null==(n=t.getElementById(e.buttonId))?void 0:n.contains(r))||(null==(i=t.getElementById(e.panelId))?void 0:i.contains(r))})}),l=(0,nf.z)(e=>{for(let t of i)t.buttonId!==e&&t.close()}),c=(0,v.useMemo)(()=>({registerPopover:s,unregisterPopover:a,isFocusWithinPopoverGroup:u,closeOthers:l}),[s,a,u,l]),f=(0,v.useMemo)(()=>({}),[]);return v.createElement(nS.Provider,{value:c},(0,t7.sY)({ourProps:{ref:r},theirProps:e,slot:f,defaultTag:"div",name:"Popover.Group"}))})});var nj=n(113),nI=n(444),nR=n(66446),nD=n(8390);let nN=e=>{let{className:t,children:n}=e;return(0,m.jsx)(nD.u,{as:v.Fragment,enter:"transition ease-out duration-200",enterFrom:"opacity-0 translate-y-1",enterTo:"opacity-100 translate-y-0",leave:"transition ease-in duration-150",leaveFrom:"opacity-100 translate-y-0",leaveTo:"opacity-0 translate-y-1",children:(0,m.jsx)(nk.Panel,{className:t,children:(0,m.jsx)("div",{className:(0,D.Z)("relative p-4","bg-white dark:bg-primary-800","rounded-lg shadow-lg ring-1 ring-black/5"),children:n})})})};var nL=n(8229),nM=n(47376),nF=n(56006);let nU=e=>{let{title:t,description:n,href:r,image:i}=e,o=(0,nM.o)(r);return(0,m.jsx)("article",{children:(0,m.jsxs)(G.Z,{href:r,title:t,"aria-labelledby":o,className:"flex h-24 space-x-3 md:space-x-4",children:[(0,m.jsx)(L.Z,{className:"h-full w-24 shrink-0",src:i.src,alt:i.alt}),(0,m.jsxs)("div",{className:"flex h-full flex-col overflow-hidden",children:[(0,m.jsx)("h1",{id:o,className:"mb-2 text-sm leading-tight md:text-base",children:(0,m.jsx)(nF.h,{children:t})}),(0,m.jsx)("p",{className:"font-body text-xs font-normal line-clamp-2 md:line-clamp-3",children:n})]})]})})},n$=()=>{var e;let{t}=(0,Z.$)("navbar"),[n,r]=(0,v.useState)(""),i=(0,nj.M)({searchText:n},{onError:()=>{eg.Am.error(t("searchBar.error"))},select:e=>e.map(e=>{var t,n;return{title:e.title,href:e.href,description:e.description,image:{src:(0,nL.G)(null===(t=e.image)||void 0===t?void 0:t.url),alt:(null===(n=e.image)||void 0===n?void 0:n.alt)||""}}})});return(0,m.jsxs)(nk,{className:"relative",children:[(0,m.jsx)(nk.Button,{className:"rounded",children:(0,m.jsxs)("span",{className:"flex h-9 w-9 items-center justify-center",children:[(0,m.jsx)(t5,{"aria-hidden":!0}),(0,m.jsx)("span",{className:"sr-only",children:t("settingsMenu.toggleButton")})]})}),(0,m.jsx)(nN,{className:"fixed inset-x-0 z-10 translate-y-2 sm:absolute sm:left-auto",children:(0,m.jsxs)("section",{className:"max-h-[300px] w-[480px] max-w-full space-y-4 overflow-auto text-primary-900 dark:text-primary-50",children:[(0,m.jsx)(nI.I,{value:n,onChange:e=>r(e.target.value),label:t("searchBar.input.label"),placeholder:t("searchBar.input.placeholder")}),i.isLoading&&(0,m.jsx)(nR.g,{className:"h-24",size:"small"}),!!(null===(e=i.data)||void 0===e?void 0:e.length)&&(0,m.jsx)("ul",{className:"space-y-4",children:i.data.map(e=>(0,m.jsx)("li",{children:(0,m.jsx)(nU,{...e})},e.href))}),i.data&&!i.data.length&&(0,m.jsx)("p",{className:"font-normal italic",children:t("searchBar.noResults")})]})})]})};function nB(){return(nB=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var nz=(0,v.forwardRef)(function(e,t){var n=e.color,r=e.size,i=void 0===r?24:r,o=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(e,["color","size"]);return v.createElement("svg",nB({ref:t,xmlns:"http://www.w3.org/2000/svg",width:i,height:i,viewBox:"0 0 24 24",fill:"none",stroke:void 0===n?"currentColor":n,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},o),v.createElement("path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z"}))});
27nz.propTypes={color:q().string,size:q().oneOfType([q().string,q().number])},nz.displayName="Tool";var nq=n(79447),nV=n(27434),nH=n(46445),nZ=n(94192),nW=n(16723);function nQ(e,t){let[n,r]=(0,v.useState)(e),i=(0,no.E)(e);return(0,nW.e)(()=>r(i.current),[i,r,...t]),n}var nG=n(9362),nK=((u=nK||{})[u.First=0]="First",u[u.Previous=1]="Previous",u[u.Next=2]="Next",u[u.Last=3]="Last",u[u.Specific=4]="Specific",u[u.Nothing=5]="Nothing",u);function nY(e,t){return e?e+"["+t+"]":t}var nJ=((l=nJ||{})[l.Open=0]="Open",l[l.Closed=1]="Closed",l),nX=((c=nX||{})[c.Single=0]="Single",c[c.Multi=1]="Multi",c),n0=((f=n0||{})[f.Pointer=0]="Pointer",f[f.Other=1]="Other",f),n1=((d=n1||{})[d.OpenListbox=0]="OpenListbox",d[d.CloseListbox=1]="CloseListbox",d[d.SetDisabled=2]="SetDisabled",d[d.SetOrientation=3]="SetOrientation",d[d.GoToOption=4]="GoToOption",d[d.Search=5]="Search",d[d.ClearSearch=6]="ClearSearch",d[d.RegisterOption=7]="RegisterOption",d[d.UnregisterOption=8]="UnregisterOption",d);function n2(e,t=e=>e){let n=null!==e.activeOptionIndex?e.options[e.activeOptionIndex]:null,r=(0,nn.z2)(t(e.options.slice()),e=>e.dataRef.current.domRef.current),i=n?r.indexOf(n):null;return -1===i&&(i=null),{options:r,activeOptionIndex:i}}let n4={1:e=>e.disabled||1===e.listboxState?e:{...e,activeOptionIndex:null,listboxState:1},0(e){if(e.disabled||0===e.listboxState)return e;let t=e.activeOptionIndex,{value:n,mode:r,compare:i}=e.propsRef.current,o=e.options.findIndex(e=>{let t=e.dataRef.current.value;return(0,t6.E)(r,{1:()=>n.some(e=>i(e,t)),0:()=>i(n,t)})});return -1!==o&&(t=o),{...e,listboxState:0,activeOptionIndex:t}},2:(e,t)=>e.disabled===t.disabled?e:{...e,disabled:t.disabled},3:(e,t)=>e.orientation===t.orientation?e:{...e,orientation:t.orientation},4(e,t){var n;if(e.disabled||1===e.listboxState)return e;let r=n2(e),i=function(e,t){let n=t.resolveItems();if(n.length<=0)return null;let r=t.resolveActiveIndex(),i=null!=r?r:-1,o=(()=>{switch(e.focus){case 0:return n.findIndex(e=>!t.resolveDisabled(e));case 1:{let e=n.slice().reverse().findIndex((e,n,r)=>(-1===i||!(r.length-n-1>=i))&&!t.resolveDisabled(e));return -1===e?e:n.length-1-e}case 2:return n.findIndex((e,n)=>!(n<=i)&&!t.resolveDisabled(e));case 3:{let e=n.slice().reverse().findIndex(e=>!t.resolveDisabled(e));return -1===e?e:n.length-1-e}case 4:return n.findIndex(n=>t.resolveId(n)===e.id);case 5:return null;default:!function(e){throw Error("Unexpected object: "+e)}(e)}})();return -1===o?r:o}(t,{resolveItems:()=>r.options,resolveActiveIndex:()=>r.activeOptionIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled});return{...e,...r,searchQuery:"",activeOptionIndex:i,activationTrigger:null!=(n=t.trigger)?n:1}},5:(e,t)=>{if(e.disabled||1===e.listboxState)return e;let n=""!==e.searchQuery?0:1,r=e.searchQuery+t.value.toLowerCase(),i=(null!==e.activeOptionIndex?e.options.slice(e.activeOptionIndex+n).concat(e.options.slice(0,e.activeOptionIndex+n)):e.options).find(e=>{var t;return!e.dataRef.current.disabled&&(null==(t=e.dataRef.current.textValue)?void 0:t.startsWith(r))}),o=i?e.options.indexOf(i):-1;return -1===o||o===e.activeOptionIndex?{...e,searchQuery:r}:{...e,searchQuery:r,activeOptionIndex:o,activationTrigger:1}},6:e=>e.disabled||1===e.listboxState||""===e.searchQuery?e:{...e,searchQuery:""},7:(e,t)=>{let n={id:t.id,dataRef:t.dataRef},r=n2(e,e=>[...e,n]);if(null===e.activeOptionIndex){let{value:i,mode:o,compare:a}=e.propsRef.current,s=t.dataRef.current.value;(0,t6.E)(o,{1:()=>i.some(e=>a(e,s)),0:()=>a(i,s)})&&(r.activeOptionIndex=r.options.indexOf(n))}return{...e,...r}},8:(e,t)=>{let n=n2(e,e=>{let n=e.findIndex(e=>e.id===t.id);return -1!==n&&e.splice(n,1),e});return{...e,...n,activationTrigger:1}}},n3=(0,v.createContext)(null);function n5(e){let t=(0,v.useContext)(n3);if(null===t){let t=Error(`<${e} /> is missing a parent <Listbox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,n5),t}return t}function n6(e,t){return(0,t6.E)(t.type,n4,e,t)}n3.displayName="ListboxContext";let n7=v.Fragment,n8=(0,t7.yV)(function(e,t){let{value:n,name:r,onChange:i,disabled:o=!1,horizontal:a=!1,multiple:s=!1,...u}=e,l=a?"horizontal":"vertical",c=(0,t8.T)(t),f=(0,v.useReducer)(n6,{listboxState:1,propsRef:{current:{value:n,onChange:i,mode:s?1:0,compare:(0,nf.z)((e,t)=>e===t)}},labelRef:(0,v.createRef)(),buttonRef:(0,v.createRef)(),optionsRef:(0,v.createRef)(),disabled:o,orientation:l,options:[],searchQuery:"",activeOptionIndex:null,activationTrigger:1}),[{listboxState:d,propsRef:p,optionsRef:h,buttonRef:g},m]=f;p.current.value=n,p.current.mode=s?1:0,(0,nW.e)(()=>{p.current.onChange=e=>(0,t6.E)(p.current.mode,{0:()=>i(e),1(){let t=p.current.value.slice(),n=t.indexOf(e);return -1===n?t.push(e):t.splice(n,1),i(t)}})},[i,p]),(0,nW.e)(()=>m({type:2,disabled:o}),[o]),(0,nW.e)(()=>m({type:3,orientation:l}),[l]),ns([g,h],(e,t)=>{var n;m({type:1}),(0,nn.sP)(t,nn.tJ.Loose)||(e.preventDefault(),null==(n=g.current)||n.focus())},0===d);let y=(0,v.useMemo)(()=>({open:0===d,disabled:o}),[d,o]);return v.createElement(n3.Provider,{value:f},v.createElement(nr.up,{value:(0,t6.E)(d,{0:nr.ZM.Open,1:nr.ZM.Closed})},null!=r&&null!=n&&(function e(t={},n=null,r=[]){for(let[i,o]of Object.entries(t))!function t(n,r,i){if(Array.isArray(i))for(let[e,o]of i.entries())t(n,nY(r,e.toString()),o);else i instanceof Date?n.push([r,i.toISOString()]):"boolean"==typeof i?n.push([r,i?"1":"0"]):"string"==typeof i?n.push([r,i]):"number"==typeof i?n.push([r,`${i}`]):null==i?n.push([r,""]):e(i,r,n)}(r,nY(n,i),o);return r})({[r]:n}).map(([e,t])=>v.createElement(nc._,{features:nc.A.Hidden,...(0,t7.oA)({key:e,as:"input",type:"hidden",hidden:!0,readOnly:!0,name:e,value:t})})),(0,t7.sY)({ourProps:{ref:c},theirProps:u,slot:y,defaultTag:n7,name:"Listbox"})))}),n9=(0,t7.yV)(function(e,t){var n;let[r,i]=n5("Listbox.Button"),o=(0,t8.T)(r.buttonRef,t),a=`headlessui-listbox-button-${(0,t9.M)()}`,s=(0,nZ.G)(),u=(0,nf.z)(e=>{switch(e.key){case ne.R.Space:case ne.R.Enter:case ne.R.ArrowDown:e.preventDefault(),i({type:0}),s.nextFrame(()=>{r.propsRef.current.value||i({type:4,focus:nK.First})});break;case ne.R.ArrowUp:e.preventDefault(),i({type:0}),s.nextFrame(()=>{r.propsRef.current.value||i({type:4,focus:nK.Last})})}}),l=(0,nf.z)(e=>{e.key===ne.R.Space&&e.preventDefault()}),c=(0,nf.z)(e=>{if(nt(e.currentTarget))return e.preventDefault();0===r.listboxState?(i({type:1}),s.nextFrame(()=>{var e;return null==(e=r.buttonRef.current)?void 0:e.focus({preventScroll:!0})}
27)):(e.preventDefault(),i({type:0}))}),f=nQ(()=>{if(r.labelRef.current)return[r.labelRef.current.id,a].join(" ")},[r.labelRef.current,a]),d=(0,v.useMemo)(()=>({open:0===r.listboxState,disabled:r.disabled}),[r]),p={ref:o,id:a,type:(0,ni.f)(e,r.buttonRef),"aria-haspopup":!0,"aria-controls":null==(n=r.optionsRef.current)?void 0:n.id,"aria-expanded":r.disabled?void 0:0===r.listboxState,"aria-labelledby":f,disabled:r.disabled,onKeyDown:u,onKeyUp:l,onClick:c};return(0,t7.sY)({ourProps:p,theirProps:e,slot:d,defaultTag:"button",name:"Listbox.Button"})}),re=(0,t7.yV)(function(e,t){let[n]=n5("Listbox.Label"),r=`headlessui-listbox-label-${(0,t9.M)()}`,i=(0,t8.T)(n.labelRef,t),o=(0,nf.z)(()=>{var e;return null==(e=n.buttonRef.current)?void 0:e.focus({preventScroll:!0})}),a=(0,v.useMemo)(()=>({open:0===n.listboxState,disabled:n.disabled}),[n]);return(0,t7.sY)({ourProps:{ref:i,id:r,onClick:o},theirProps:e,slot:a,defaultTag:"label",name:"Listbox.Label"})}),rt=t7.AN.RenderStrategy|t7.AN.Static,rn=Object.assign(n8,{Button:n9,Label:re,Options:(0,t7.yV)(function(e,t){var n;let[r,i]=n5("Listbox.Options"),o=(0,t8.T)(r.optionsRef,t),a=`headlessui-listbox-options-${(0,t9.M)()}`,s=(0,nZ.G)(),u=(0,nZ.G)(),l=(0,nr.oJ)(),c=null!==l?l===nr.ZM.Open:0===r.listboxState;(0,v.useEffect)(()=>{var e;let t=r.optionsRef.current;t&&0===r.listboxState&&t!==(null==(e=(0,nu.r)(t))?void 0:e.activeElement)&&t.focus({preventScroll:!0})},[r.listboxState,r.optionsRef]);let f=(0,nf.z)(e=>{switch(u.dispose(),e.key){case ne.R.Space:if(""!==r.searchQuery)return e.preventDefault(),e.stopPropagation(),i({type:5,value:e.key});case ne.R.Enter:if(e.preventDefault(),e.stopPropagation(),null!==r.activeOptionIndex){let{dataRef:e}=r.options[r.activeOptionIndex];r.propsRef.current.onChange(e.current.value)}0===r.propsRef.current.mode&&(i({type:1}),(0,nG.k)().nextFrame(()=>{var e;return null==(e=r.buttonRef.current)?void 0:e.focus({preventScroll:!0})}
27));break;case(0,t6.E)(r.orientation,{vertical:ne.R.ArrowDown,horizontal:ne.R.ArrowRight}):return e.preventDefault(),e.stopPropagation(),i({type:4,focus:nK.Next});case(0,t6.E)(r.orientation,{vertical:ne.R.ArrowUp,horizontal:ne.R.ArrowLeft}):return e.preventDefault(),e.stopPropagation(),i({type:4,focus:nK.Previous});case ne.R.Home:case ne.R.PageUp:return e.preventDefault(),e.stopPropagation(),i({type:4,focus:nK.First});case ne.R.End:case ne.R.PageDown:return e.preventDefault(),e.stopPropagation(),i({type:4,focus:nK.Last});case ne.R.Escape:return e.preventDefault(),e.stopPropagation(),i({type:1}),s.nextFrame(()=>{var e;return null==(e=r.buttonRef.current)?void 0:e.focus({preventScroll:!0})});case ne.R.Tab:e.preventDefault(),e.stopPropagation();break;default:1===e.key.length&&(i({type:5,value:e.key}),u.setTimeout(()=>i({type:6}),350))}}),d=nQ(()=>{var e,t,n;return null!=(n=null==(e=r.labelRef.current)?void 0:e.id)?n:null==(t=r.buttonRef.current)?void 0:t.id},[r.labelRef.current,r.buttonRef.current]),p=(0,v.useMemo)(()=>({open:0===r.listboxState}),[r]),h={"aria-activedescendant":null===r.activeOptionIndex||null==(n=r.options[r.activeOptionIndex])?void 0:n.id,"aria-multiselectable":1===r.propsRef.current.mode||void 0,"aria-labelledby":d,"aria-orientation":r.orientation,id:a,onKeyDown:f,role:"listbox",tabIndex:0,ref:o};return(0,t7.sY)({ourProps:h,theirProps:e,slot:p,defaultTag:"ul",features:rt,visible:c,name:"Listbox.Options"})}),Option:(0,t7.yV)(function(e,t){let{disabled:n=!1,value:r,...i}=e,[o,a]=n5("Listbox.Option"),s=`headlessui-listbox-option-${(0,t9.M)()}`,u=null!==o.activeOptionIndex&&o.options[o.activeOptionIndex].id===s,{value:l,compare:c}=o.propsRef.current,f=(0,t6.E)(o.propsRef.current.mode,{1:()=>l.some(e=>c(e,r)),0:()=>c(l,r)}),d=(0,v.useRef)(null),p=(0,t8.T)(t,d);(0,nW.e)(()=>{if(0!==o.listboxState||!u||0===o.activationTrigger)return;let e=(0,nG.k)();return e.requestAnimationFrame(()=>{var e,t;null==(t=null==(e=d.current)?void 0:e.scrollIntoView)||t.call(e,{block:"nearest"})}),e.dispose},[d,u,o.listboxState,o.activationTrigger,o.activeOptionIndex]);let h=(0,v.useRef)({disabled:n,value:r,domRef:d});(0,nW.e)(()=>{h.current.disabled=n},[h,n]),(0,nW.e)(()=>{h.current.value=r},[h,r]),(0,nW.e)(()=>{var e,t;h.current.textValue=null==(t=null==(e=d.current)?void 0:e.textContent)?void 0:t.toLowerCase()},[h,d]);let g=(0,nf.z)(()=>o.propsRef.current.onChange(r));(0,nW.e)(()=>(a({type:7,id:s,dataRef:h}),()=>a({type:8,id:s})),[h,s]);let m=(0,nf.z)(e=>{if(n)return e.preventDefault();g(),0===o.propsRef.current.mode&&(a({type:1}),(0,nG.k)().nextFrame(()=>{var e;return null==(e=o.buttonRef.current)?void 0:e.focus({preventScroll:!0})}
27))}),y=(0,nf.z)(()=>{if(n)return a({type:4,focus:nK.Nothing});a({type:4,focus:nK.Specific,id:s})}),b=(0,nf.z)(()=>{n||u||a({type:4,focus:nK.Specific,id:s,trigger:0})}),_=(0,nf.z)(()=>{n||!u||a({type:4,focus:nK.Nothing})}),S=(0,v.useMemo)(()=>({active:u,selected:f,disabled:n}),[u,f,n]);return(0,t7.sY)({ourProps:{id:s,ref:p,role:"option",tabIndex:!0===n?void 0:-1,"aria-disabled":!0===n||void 0,"aria-selected":!0===f||void 0,disabled:void 0,onClick:m,onFocus:y,onPointerMove:b,onMouseMove:b,onPointerLeave:_,onMouseLeave:_},theirProps:i,slot:S,defaultTag:"li",name:"Listbox.Option"})})});function rr(e){var t;let{label:n,options:r,selected:i,onChange:o}=e,a=null===(t=r.find(e=>e.value===i))||void 0===t?void 0:t.label;return(0,m.jsx)(rn,{value:i,onChange:o,children:(0,m.jsxs)("div",{className:(0,D.Z)("relative font-display","text-primary-700 theme-peach:text-primary-800 dark:text-primary-200"),children:[(0,m.jsxs)("div",{className:"flex flex-col",children:[(0,m.jsx)(rn.Label,{className:"mb-2 text-sm dark:text-secondary-500",children:n}),(0,m.jsxs)(rn.Button,{className:(0,D.Z)("flex items-center justify-between","max-w-md p-2","text-primary-700 dark:text-primary-200","bg-primary-50 dark:bg-primary-600","rounded border border-primary-200 dark:border-primary-400"),children:[(0,m.jsx)("span",{className:"block truncate",children:a}),(0,m.jsx)("span",{className:"pointer-events-none flex items-center",children:(0,m.jsx)(nV.Z,{className:"h-5 w-5 text-primary-400","aria-hidden":"true"})})]})]}),(0,m.jsx)(nD.u,{as:v.Fragment,leave:"transition ease-in duration-100",leaveFrom:"opacity-100",leaveTo:"opacity-0",children:(0,m.jsx)(rn.Options,{className:(0,D.Z)("absolute z-10 mt-1 max-h-60 w-full overflow-auto py-1","bg-white dark:bg-primary-700","ring-primary-200/5 dark:ring-primary-400/5 rounded ring-1","shadow-lg focus:outline-none"),children:r.map(e=>(0,m.jsx)(rn.Option,{className:e=>{let{active:t,selected:n}=e;return(0,D.Z)("flex items-center justify-between","relative cursor-default select-none py-1 px-4","text-sm",t&&"bg-primary-100 dark:bg-primary-600",n?"font-semibold":"font-normal text-gray-700 dark:text-gray-200")},value:e.value,children:t=>{let{selected:n}=t;return(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)("span",{className:"block truncate",children:e.label}),n&&(0,m.jsx)(nH.Z,{className:"h-5 w-5","aria-hidden":"true"})]})}},JSON.stringify(e.value)))})})]})})}(p=g||(g={})).DEFAULT="default",p.BITTER="bitter",p.INTER="inter",p.PROZA_LIBRE="proza-libre";let ri=Object.values(g),ro=(0,ey.G)(365),ra=()=>{let[e,t]=(0,em.By)(ev.y.FONT),n=(0,v.useCallback)(e=>t(e,{maxAge:ro}),[t]);return(0,v.useEffect)(()=>{if(!e)return;let t=document.querySelector("html"),n=(e,n)=>{null==t||t.classList.toggle("font-".concat(e),n)};ri.forEach(t=>{n(t,e===t)})},[e]),[e,n]},rs=()=>{let{t:e}=(0,Z.$)("navbar"),[t,n]=ra(),r=Object.values(g).map(t=>({label:e("settingsMenu.font.dropdown.options.".concat(t)),value:t}));return(0,m.jsx)(rr,{onChange:n,options:r,selected:t||g.DEFAULT,label:e("settingsMenu.font.dropdown.title")})},ru=()=>{let{t:e}=(0,Z.$)("navbar"),[t,n]=eS(),r=Object.values(h).map(t=>({label:e("settingsMenu.theme.dropdown.options.".concat(t)),value:t}));return(0,m.jsx)(rr,{onChange:n,options:r,selected:t||null,label:e("settingsMenu.theme.dropdown.title")})};function rl(){return(rl=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var rc=(0,v.forwardRef)(function(e,t){var n=e.color,r=e.size,i=void 0===r?24:r,o=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(e,["color","size"]);return v.createElement("svg",rl({ref:t,xmlns:"http://www.w3.org/2000/svg",width:i,height:i,viewBox:"0 0 24 24",fill:"none",stroke:void 0===n?"currentColor":n,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},o),v.createElement("path",{d:"M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z"}))});function rf(){return(rf=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}
27rc.propTypes={color:q().string,size:q().oneOfType([q().string,q().number])},rc.displayName="Moon";var rd=(0,v.forwardRef)(function(e,t){var n=e.color,r=e.size,i=void 0===r?24:r,o=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(e,["color","size"]);return v.createElement("svg",rf({ref:t,xmlns:"http://www.w3.org/2000/svg",width:i,height:i,viewBox:"0 0 24 24",fill:"none",stroke:void 0===n?"currentColor":n,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},o),v.createElement("circle",{cx:"12",cy:"12",r:"5"}),v.createElement("line",{x1:"12",y1:"1",x2:"12",y2:"3"}),v.createElement("line",{x1:"12",y1:"21",x2:"12",y2:"23"}),v.createElement("line",{x1:"4.22",y1:"4.22",x2:"5.64",y2:"5.64"}),v.createElement("line",{x1:"18.36",y1:"18.36",x2:"19.78",y2:"19.78"}),v.createElement("line",{x1:"1",y1:"12",x2:"3",y2:"12"}),v.createElement("line",{x1:"21",y1:"12",x2:"23",y2:"12"}),v.createElement("line",{x1:"4.22",y1:"19.78",x2:"5.64",y2:"18.36"}),v.createElement("line",{x1:"18.36",y1:"5.64",x2:"19.78",y2:"4.22"}))});rd.propTypes={color:q().string,size:q().oneOfType([q().string,q().number])},rd.displayName="Sun";let rp=(0,v.createContext)(null),rh=(0,t7.yV)(function(e,t){let{passive:n=!1,...r}=e,i=function e(){let t=(0,v.useContext)(rp);if(null===t){let t=Error("You used a <Label /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(t,e),t}return t}(),o=`headlessui-label-${(0,t9.M)()}`,a=(0,t8.T)(t);(0,nW.e)(()=>i.register(o),[o,i.register]);
27let s={ref:a,...i.props,id:o};return n&&("onClick"in s&&delete s.onClick,"onClick"in r&&delete r.onClick),(0,t7.sY)({ourProps:s,theirProps:r,slot:i.slot||{},defaultTag:"label",name:i.name||"Label"})}),rg=(0,v.createContext)(null),rm=(0,t7.yV)(function(e,t){let n=function e(){let t=(0,v.useContext)(rg);if(null===t){let t=Error("You used a <Description /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(t,e),t}return t}(),r=`headlessui-description-${(0,t9.M)()}`,i=(0,t8.T)(t);(0,nW.e)(()=>n.register(r),[r,n.register]);let o={ref:i,...n.props,id:r};return(0,t7.sY)({ourProps:o,theirProps:e,slot:n.slot||{},defaultTag:"p",name:n.name||"Description"})}),rv=(0,v.createContext)(null);rv.displayName="GroupContext";let ry=v.Fragment,rb=Object.assign((0,t7.yV)(function(e,t){let{checked:n,onChange:r,name:i,value:o,...a}=e,s=`headlessui-switch-${(0,t9.M)()}`,u=(0,v.useContext)(rv),l=(0,v.useRef)(null),c=(0,t8.T)(l,t,null===u?null:u.setSwitch),f=(0,nf.z)(()=>r(!n)),d=(0,nf.z)(e=>{if(nt(e.currentTarget))return e.preventDefault();e.preventDefault(),f()}),p=(0,nf.z)(e=>{e.key===ne.R.Space?(e.preventDefault(),f()):e.key===ne.R.Enter&&function(e){var t;let n=null!=(t=null==e?void 0:e.form)?t:e.closest("form");if(n){for(let e of n.elements)if("INPUT"===e.tagName&&"submit"===e.type||"BUTTON"===e.tagName&&"submit"===e.type||"INPUT"===e.nodeName&&"image"===e.type){e.click();return}}}(e.currentTarget)}),h=(0,nf.z)(e=>e.preventDefault()),g=(0,v.useMemo)(()=>({checked:n}),[n]),m={id:s,ref:c,role:"switch",type:(0,ni.f)(e,l),tabIndex:0,"aria-checked":n,"aria-labelledby":null==u?void 0:u.labelledby,"aria-describedby":null==u?void 0:u.describedby,onClick:d,onKeyUp:p,onKeyPress:h};return v.createElement(v.Fragment,null,null!=i&&n&&v.createElement(nc._,{features:nc.A.Hidden,...(0,t7.oA)({as:"input",type:"checkbox",hidden:!0,readOnly:!0,checked:n,name:i,value:o})}),(0,t7.sY)({ourProps:m,theirProps:a,slot:g,defaultTag:"button",name:"Switch"}))}),{Group:function(e){let[t,n]=(0,v.useState)(null),[r,i]=function(){let[e,t]=(0,v.useState)([]);return[e.length>0?e.join(" "):void 0,(0,v.useMemo)(()=>function(e){let n=(0,nf.z)(e=>(t(t=>[...t,e]),()=>t(t=>{let n=t.slice(),r=n.indexOf(e);return -1!==r&&n.splice(r,1),n}))),r=(0,v.useMemo)(()=>({register:n,slot:e.slot,name:e.name,props:e.props}),[n,e.slot,e.name,e.props]);return v.createElement(rp.Provider,{value:r},e.children)},[t])]}(),[o,a]=function(){let[e,t]=(0,v.useState)([]);return[e.length>0?e.join(" "):void 0,(0,v.useMemo)(()=>function(e){let n=(0,nf.z)(e=>(t(t=>[...t,e]),()=>t(t=>{let n=t.slice(),r=n.indexOf(e);return -1!==r&&n.splice(r,1),n}))),r=(0,v.useMemo)(()=>({register:n,slot:e.slot,name:e.name,props:e.props}),[n,e.slot,e.name,e.props]);return v.createElement(rg.Provider,{value:r},e.children)},[t])]}(),s=(0,v.useMemo)(()=>({switch:t,setSwitch:n,labelledby:r,describedby:o}),[t,n,r,o]);return v.createElement(a,{name:"Switch.Description"},v.createElement(i,{name:"Switch.Label",props:{onClick(){t&&(t.click(),t.focus({preventScroll:!0}))}}},v.createElement(rv.Provider,{value:s},(0,t7.sY)({ourProps:{},theirProps:e,defaultTag:ry,name:"Switch.Group"}))))},Label:rh,Description:rm}),r_=()=>{let{t:e}=(0,Z.$)("navbar"),[t,n]=eS(),r=(t||h.DARK)===h.DARK;return(0,m.jsxs)(rb,{checked:r,onChange:e=>{n(e?h.DARK:h.LIGHT)},className:"inline-flex h-8 w-8 items-center justify-center",children:[(0,m.jsx)("span",{className:"sr-only",children:e("settingsMenu.theme.toggle.description")}),r?(0,m.jsx)(rc,{size:20}):(0,m.jsx)(rd,{size:20})]})},rS=()=>{let{t:e}=(0,Z.$)("navbar");return(0,nq.l)()?(0,m.jsxs)(nk,{className:"relative",children:[(0,m.jsx)(nk.Button,{className:"rounded",children:(0,m.jsxs)("span",{className:"flex h-9 w-9 items-center justify-center",children:[(0,m.jsx)(nz,{"aria-hidden":!0}),(0,m.jsx)("span",{className:"sr-only",children:e("settingsMenu.toggleButton")})]})}),(0,m.jsx)(nN,{className:"fixed inset-x-0 z-10 translate-y-2 sm:absolute sm:left-auto",children:(0,m.jsxs)("div",{className:"min-w-[240px] space-y-4",children:[(0,m.jsx)(rs,{}),(0,m.jsx)(ru,{})]})})]}):(0,m.jsx)(r_,{})},rE=()=>{let{navbar:e}=tQ(),t=tK();return(0,m.jsx)("header",{className:"font-display font-semibold",children:(0,m.jsxs)("div",{id:"nav",className:"mx-auto flex max-w-screen-lg items-center justify-between p-3 md:p-4",children:[(0,m.jsx)(G.Z,{href:"/",children:(0,m.jsx)(tJ,{})}),(0,m.jsxs)("nav",{className:(0,D.Z)("flex items-center justify-end","text-primary-700 theme-peach:text-black dark:text-secondary-400 dark:theme-bw:text-white"),children:[(0,m.jsx)("ul",{className:"m-0 hidden space-x-6 md:flex",children:e.links.map(e=>{let{text:t,url:n,isHighlighted:r}=e;return r?(0,m.jsx)("li",{children:(0,m.jsx)(G.Z,{href:n,className:(0,D.Z)("bg-primary-500 text-white hover:text-secondary-500","dark:bg-secondary-400 dark:text-primary-800","theme-peach:bg-secondary-400 theme-peach:text-black","theme-bw:bg-secondary-400 theme-bw:text-black","dark:hover:bg-secondary-200 dark:hover:text-primary-800","rounded py-2 px-4 duration-100"),children:t})},n):(0,m.jsx)("li",{className:"flex list-none items-center leading-none",children:(0,m.jsx)(G.Z,{href:n,className:"no-underline hover:underline",children:t})},n)})}),(0,m.jsx)("div",{className:"ml-4 flex flex-col items-end",children:(0,m.jsx)(n$,{})}),(0,m.jsx)("div",{className:"ml-4 flex flex-col items-end",children:t&&(0,m.jsx)(rS,{})}),(0,m.jsx)("div",{className:"ml-4 md:m-0",children:(0,m.jsx)(t4,{})})]})]})})},rO=e=>{let{children:t}=e;return(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(rE,{}),(0,m.jsx)("main",{className:"container",children:t}),(0,m.jsx)(tZ,{})]})},rw=e=>{let{children:t}=e;return(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(rE,{}),(0,m.jsx)("main",{children:t}),(0,m.jsx)(tZ,{})]})},rx={[tI.d.ARTICLE]:rw,[tI.d.ARTICLES_LIST]:rw,[tI.d.CATEGORY]:rw,[tI.d.HOME]:rw,[tI.d.NEWSLETTER]:rw,[tI.d.NEWSLETTER_SERIES]:rw,[tI.d.PODCAST]:rw,[tI.d.PODCAST_EPISODE]:rw},rT=e=>rx[e.route]||rO;var rC=n(21079),rP=n(56168);n(75373),n(81294),n(64030),n(80401),n(21915),n(47938),n(25461),n(67201),n(70037),n(49856),n(33893);let rA=w.Xu,rk=e=>{let{Component:t,pageProps:n,siteConfig:r}=e,i=rT((0,A.useRouter)());return(0,m.jsx)(j.zt,{children:(0,m.jsx)(k.p,{children:(0,m.jsx)(S,{children:(0,m.jsx)(rC.m,{children:(0,m.jsx)(O,{i18n:tb,children:(0,m.jsxs)(tW.Provider,{value:r,children:[(0,m.jsxs)(rA,{children:[(0,m.jsx)(ed,{}
27),(0,m.jsx)(P(),{children:!ee.td&&ee.sm&&(0,m.jsx)("script",{src:"/js/script.js","data-domain":"interruptor.pt",defer:!0})}),(0,m.jsx)(N,{}),(0,m.jsx)(i,{children:(0,m.jsx)(t,{...n})}),(0,m.jsx)(ec,{})]}),(0,m.jsx)(eE,{}),(0,m.jsx)(ex,{})]})})})})})})};rk.getInitialProps=async e=>{var t,n;console.info("[App] Running get initial props");let[r,i]=await Promise.all([T().getInitialProps(e),(0,I.de)({query:I.Ee})]),o=(0,F.qM)(i.allSite_configs).find(Boolean);if(!o)return{...r,siteConfig:void 0};let a=e=>e.text&&e.url?{text:e.text,url:e.url,isHighlighted:!!e.is_highlighted}:null,s=(null===(t=o.footer_important_links)||void 0===t?void 0:t.map(a))||[],u=(null===(n=o.navbar_links)||void 0===n?void 0:n.map(a))||[];return{...r,siteConfig:{footer:{importantLinks:(0,rP.q)(s)},navbar:{links:(0,rP.q)(u)}}}};var rj=rk},56951:function(e,t,n){"use strict";n.d(t,{M8:function(){return o},nh:function(){return s}});var r=n(91131);let i=(0,r.cn)(void 0),o=()=>(0,r.KO)(i),a=(0,r.cn)(!1),s=()=>(0,r.KO)(a)},21079:function(e,t,n){"use strict";n.d(t,{X:function(){return i},m:function(){return l}});var r,i,o=n(85893);n(67294);var a=n(88767),s=n(20938);(r=i||(i={})).ALL_ARTICLES_AND_EPISODES="ALL_ARTICLES_AND_EPISODES",r.DATASETS="DATASETS",r.DOWNLOAD_FILE="DOWNLOAD_FILE",r.RELATED_ARTICLES="RELATED_ARTICLES",r.PODCAST="PODCAST",r.PODCAST_EPISODE="PODCAST_EPISODE",r.PODCAST_EPISODES_LIST="PODCAST_EPISODES_LIST";let u=new a.QueryClient({defaultOptions:{queries:{enabled:!0,getNextPageParam:e=>{if("object"==typeof e&&e&&"results"in e&&e.total_pages>e.page)return e.page+1}}}}),l=e=>{let{children:t,...n}=e;return(0,o.jsxs)(a.QueryClientProvider,{client:u,...n,children:[t,(0,o.jsx)(s.ReactQueryDevtools,{})]})}},63397:function(e,t,n){"use strict";var r,i;n.d(t,{L:function(){return o},s:function(){return r}}),(i=r||(r={})).ARTICLE_ADD_BOOKMARK="Article: Add bookmark",i.CIRCUITOS_SIGN_UP="Circuitos: sign-up",i.CONTRIBUTE_BUTTON_CLICK="Contribute button click",i.HOMEPAGE_PLAY_PODCAST="Homepage: Play podcast",i.PODCAST_DOWNLOAD_EPISODE="Podcast: Download episode",i.WEB_MONETIZATION_ACTIVE="Web Monetization active";let o=(e,t)=>{let n=(null==t?void 0:t.callback)||(()=>{});try{if(!window.plausible)return console.log("[".concat(e,"] plausible isn't loaded, so just calling callback")),n();window.plausible(e,t)}catch(e){n()}}},67509:function(e,t,n){"use strict";n.d(t,{N:function(){return o}});var r=n(50624),i=n(27406);let o=()=>{let e=new URL(i.publicConfig.siteURL);return e.pathname=r.s.ARTICLES_RSS_FEED,e.toString()}},27406:function(e,t,n){"use strict";n.d(t,{sm:function(){return s},td:function(){return a},publicConfig:function(){return o}});var r=JSON.parse('{"companyName":"Interruptor","title":"Interruptor","description":"O Interruptor \xe9 uma revista multim\xe9dia independente que olha para o mundo pelas lentes da cultura, tentando que nunca fiquem embaciadas.","siteURL":"https://www.interruptor.pt","techBlogURL":"https://tech.interruptor.pt","webMonetizationPointer":"$ilp.uphold.com/nzj2HrUbBDKa","email":{"general":"[email protected]"},"image":{"alt":"Logo","url":"https://www.interruptor.pt/logo_with_background.jpg"},"licence":{"iconPaths":["/icons/cc/white/cc.svg","/icons/cc/white/cc-by.svg","/icons/cc/white/cc-nc.svg","/icons/cc/white/cc-sa.svg"],"title":"CC BY-NC-SA","url":"https://creativecommons.org/licenses/by-nc-sa/4.0/deed.pt"},"links":{"edjn":{"url":"https://www.europeandatajournalism.eu/por/","name":"European Data Journalism Network"},"github":{"url":"https://github.com/InterruptorPt"},"openCollective":{"url":"https://opencollective.com/interruptorpt"}},"prismic":{"repoName":"interruptor"},"socialMedia":{"facebook":{"url":"https://www.facebook.com/InterruptorPt","username":"InterruptorPt"},"instagram":{"url":"https://www.instagram.com/interruptorpt","username":"InterruptorPT"},"twitter":{"url":"https://twitter.com/interruptorpt","username":"@InterruptorPT"}}}'),i=n(34155);let o=r,a="dev"===i.env.NEXT_PUBLIC_ENV,s=!0},82259:function(e,t,n){"use strict";var r,i;n.d(t,{y:function(){return r}}),(i=r||(r={})).FONT="font",i.THEME="theme",i.SEEN_MONETIZATION_THANK_YOU="seen_wm_thanks_msg",i.IS_SUPPORTER="is_supporter"},99714:function(e,t,n){"use strict";n.d(t,{yV:function(){return r.y},By:function(){return f},xM:function(){return c}});var r=n(82259),i=n(27406),o=n(9986);let a={domain:i.publicConfig.siteURL.replace("https://","").replace("www.","."),path:"/",sameSite:"strict",secure:!0,maxAge:(0,o.G)(30)};var s=n(67294),u=n(29347);function l(e){var t=(0,s.useContext)(u.ZP);if(!t)throw Error("Missing <CookiesProvider>");
27var n=t.getAll(),r=(0,s.useState)(n),i=r[0],o=r[1],a=(0,s.useRef)(i);return"undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement&&(0,s.useLayoutEffect)(function(){function n(){var n=t.getAll();(function(e,t,n){if(!e)return!0;for(var r=0;r<e.length;r++){var i=e[r];if(t[i]!==n[i])return!0}return!1})(e||null,n,a.current)&&o(n),a.current=n}return t.addChangeListener(n),function(){t.removeChangeListener(n)}},[t]),[i,(0,s.useMemo)(function(){return t.set.bind(t)},[t]),(0,s.useMemo)(function(){return t.remove.bind(t)},[t])]}let c=e=>{let[t,n,r]=l(e);return[t,function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};n(e,t,{...a,...r})},function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};r(e,{...a,...t})}]},f=e=>{let[{[e]:t},n,r]=l([e]),[i,o]=(0,s.useState)(t);return[i,(0,s.useCallback)(function(t){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};o(t),n(e,t,{...a,...r})},[e,n]),(0,s.useCallback)(function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};o(void 0),r(e,{...a,...t})},[e,r])]}},9986:function(e,t,n){"use strict";n.d(t,{G:function(){return r}});let r=e=>86400*e},79447:function(e,t,n){"use strict";n.d(t,{l:function(){return o}});var r=n(56063),i=n(99714);let o=()=>{let e=(0,r.o)(),[t]=(0,i.By)(i.yV.IS_SUPPORTER);return e.isActive||"true"===t}},31485:function(e,t,n){"use strict";n.d(t,{V1:function(){return o},qM:function(){return i}});var r=n(56168);function i(e){var t;return e?(t=e.edges,(0,r.q)(t||[])).map(e=>{let{node:t}=e;return t}):[]}function o(e,t){return[e].filter(e=>!!e&&e.__typename===t)[0]||null}},15095:function(e,t,n){"use strict";n.d(t,{W:function(){return r}});let r=n(67294).useLayoutEffect},18222:function(e,t,n){"use strict";n.d(t,{s:function(){return l}});var r=n(67294),i=n(4149),o=n.n(i),a=n(8229),s=n(36628),u=n(15095);function l(e){let{imgixParams:t={fit:"crop",crop:"center"},lazySize:n={h:10,w:10}}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=(0,r.useRef)(null),[l,c]=(0,r.useState)(n);return(0,u.W)(()=>{let e=()=>{o().measure(()=>{let e=i.current;if(!e)return;let{clientHeight:t,clientWidth:n}=e;c({h:t,w:n})})};return e(),window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}},[]),{ref:i,url:(0,s.K)((0,a.G)(e),{...t,...l})}}},8229:function(e,t,n){"use strict";n.d(t,{G:function(){return r}});let r=e=>e||"https://images.prismic.io/interruptor/4047f8cd-93e1-4a7f-a675-231db1112f49_crop_podcast_1440x1440.jpg?auto=compress,format"},92173:function(e,t,n){"use strict";n.d(t,{_:function(){return i},k:function(){return r}});let r=e=>"object"==typeof e&&e&&"url"in e?e:null,i=e=>Array.isArray(e)?e:[]},54398:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(86010),i=n(75297);function o(e){switch(e){case i.V.FOREST_GREEN:return(0,r.Z)("chunky-underline-forestGreen-200 dark:chunky-underline-forestGreen-500");case i.V.BLUE:return(0,r.Z)("chunky-underline-blue-200 dark:chunky-underline-blue-500");case i.V.PINK:return(0,r.Z)("chunky-underline-pink-200 dark:chunky-underline-pink-500");case i.V.TEAL:return(0,r.Z)("chunky-underline-teal-200 dark:chunky-underline-teal-500");case i.V.VIOLET:default:return(0,r.Z)("chunky-underline-primary-200","dark:chunky-underline-primary-500")}}},46614:function(e,t,n){"use strict";function r(e,t){let n=new Date(1e3*e),r=n.getUTCSeconds(),i=n.getUTCMinutes(),o=n.getUTCHours(),a=[i,r];return(o||t)&&a.unshift(o),a.map(e=>"".concat(e).padStart(2,"0")).join(":")}n.d(t,{m:function(){return r}})},81847:function(e,t,n){"use strict";function r(e){return!!new Date(1e3*e).getUTCHours()}n.d(t,{n:function(){return r}})},36628:function(e,t,n){"use strict";n.d(t,{K:function(){return i}});var r=n(17563);let i=(e,t)=>{let n=/\.gif$/.test((0,r.parseUrl)(e).url)?{...t,auto:void 0}:t;return(0,r.stringifyUrl)({url:e,query:n})}},56168:function(e,t,n){"use strict";function r(e){return e.filter(e=>!!e)}n.d(t,{q:function(){return r}})},70037:function(){},49856:function(){},25461:function(){},47938:function(){},67201:function(){},33893:function(){},75373:function(){},81294:function(){},64030:function(){},80401:function(){},21915:function(){},9008:function(e,t,n){e.exports=n(6665)},41664:function(e,t,n){e.exports=n(63480)},11163:function(e,t,n){e.exports=n(73035)},47376:function(e,t,n){"use strict";n.d(t,{o:function(){return u}});var r=function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function i(e){return e.toLowerCase()}var o=[/([a-z0-9])([A-Z])/g,/([A-Z])([A-Z][a-z])/g],a=/[^A-Z0-9]+/gi;function s(e,t,n){return t instanceof RegExp?e.replace(t,n):t.reduce(function(e,t){return e.replace(t,n)},e)}function u(e,t){var n;return void 0===t&&(t={}),void 0===(n=r({delimiter:"-"},t))&&(n={}),function(e,t){void 0===t&&(t={});for(var n=t.splitRegexp,r=t.stripRegexp,u=t.transform,l=t.delimiter,c=s(s(e,void 0===n?o:n,"$1\x00$2"),void 0===r?a:r,"\x00"),f=0,d=c.length;"\x00"===c.charAt(f);)f++;for(;"\x00"===c.charAt(d-1);)d--;return c.slice(f,d).split("\x00").map(void 0===u?i:u).join(void 0===l?" ":l)}(e,r({delimiter:"."},n))}},34155:function(e){var t,n,r,i=e.exports={};function o(){throw Error("setTimeout has not been defined")}function a(){throw Error("clearTimeout has not been defined")}function s(e){if(t===setTimeout)return setTimeout(e,0);if((t===o||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(n){try{return t.call(null,e,0)}catch(n){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:o}catch(e){t=o}try{n="function"==typeof clearTimeout?clearTimeout:a}catch(e){n=a}}();var u=[],l=!1,c=-1;function f(){l&&r&&(l=!1,r.length?u=r.concat(u):c=-1,u.length&&d())}function d(){if(!l){var e=s(f);l=!0;for(var t=u.length;t;){for(r=u,u=[];++c<t;)r&&r[c].run();c=-1,t=u.length}r=null,l=!1,function(e){if(n===clearTimeout)return clearTimeout(e);if((n===a||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(e);try{n(e)}catch(t){try{return n.call(null,e)}catch(t){return n.call(this,e)}}}(e)}}function p(e,t){this.fun=e,this.array=t}function h(){}i.nextTick=function(e){var t=Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];u.push(new p(e,t)),1!==u.length||l||s(d)},p.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=h,i.addListener=h,i.once=h,i.off=h,i.removeListener=h,i.removeAllListeners=h,i.emit=h,i.prependListener=h,i.prependOnceListener=h,i.listeners=function(e){return[]},i.binding=function(e){throw Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(e){throw Error("process.chdir is not supported")},i.umask=function(){return 0}},92703:function(e,t,n){"use strict";
27var r=n(50414);function i(){}function o(){}o.resetWarningCache=i,e.exports=function(){function e(e,t,n,i,o,a){if(a!==r){var s=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o,resetWarningCache:i};return n.PropTypes=n,n}},45697:function(e,t,n){e.exports=n(92703)()},50414:function(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},17563:function(e,t,n){"use strict";let r=n(70610),i=n(44020),o=n(80500),a=n(92806),s=e=>null==e,u=Symbol("encodeFragmentIdentifier");function l(e){if("string"!=typeof e||1!==e.length)throw TypeError("arrayFormatSeparator must be single character string")}function c(e,t){return t.encode?t.strict?r(e):encodeURIComponent(e):e}function f(e,t){return t.decode?i(e):e}function d(e){let t=e.indexOf("#");return -1!==t&&(e=e.slice(0,t)),e}function p(e){let t=(e=d(e)).indexOf("?");return -1===t?"":e.slice(t+1)}function h(e,t){return t.parseNumbers&&!Number.isNaN(Number(e))&&"string"==typeof e&&""!==e.trim()?e=Number(e):t.parseBooleans&&null!==e&&("true"===e.toLowerCase()||"false"===e.toLowerCase())&&(e="true"===e.toLowerCase()),e}function g(e,t){l((t=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},t)).arrayFormatSeparator);let n=function(e){let t;switch(e.arrayFormat){case"index":return(e,n,r)=>{if(t=/\[(\d*)\]$/.exec(e),e=e.replace(/\[\d*\]$/,""),!t){r[e]=n;return}void 0===r[e]&&(r[e]={}),r[e][t[1]]=n};case"bracket":return(e,n,r)=>{if(t=/(\[\])$/.exec(e),e=e.replace(/\[\]$/,""),!t){r[e]=n;return}if(void 0===r[e]){r[e]=[n];return}r[e]=[].concat(r[e],n)};case"colon-list-separator":return(e,n,r)=>{if(t=/(:list)$/.exec(e),e=e.replace(/:list$/,""),!t){r[e]=n;return}if(void 0===r[e]){r[e]=[n];return}r[e]=[].concat(r[e],n)};case"comma":case"separator":return(t,n,r)=>{let i="string"==typeof n&&n.includes(e.arrayFormatSeparator),o="string"==typeof n&&!i&&f(n,e).includes(e.arrayFormatSeparator);n=o?f(n,e):n;let a=i||o?n.split(e.arrayFormatSeparator).map(t=>f(t,e)):null===n?n:f(n,e);r[t]=a};case"bracket-separator":return(t,n,r)=>{let i=/(\[\])$/.test(t);if(t=t.replace(/\[\]$/,""),!i){r[t]=n?f(n,e):n;return}let o=null===n?[]:n.split(e.arrayFormatSeparator).map(t=>f(t,e));if(void 0===r[t]){r[t]=o;return}r[t]=[].concat(r[t],o)};default:return(e,t,n)=>{if(void 0===n[e]){n[e]=t;return}n[e]=[].concat(n[e],t)}}}(t),r=Object.create(null);if("string"!=typeof e||!(e=e.trim().replace(/^[?#&]/,"")))return r;for(let i of e.split("&")){if(""===i)continue;let[e,a]=o(t.decode?i.replace(/\+/g," "):i,"=");a=void 0===a?null:["comma","separator","bracket-separator"].includes(t.arrayFormat)?a:f(a,t),n(f(e,t),a,r)}for(let e of Object.keys(r)){let n=r[e];if("object"==typeof n&&null!==n)for(let e of Object.keys(n))n[e]=h(n[e],t);else r[e]=h(n,t)}return!1===t.sort?r:(!0===t.sort?Object.keys(r).sort():Object.keys(r).sort(t.sort)).reduce((e,t)=>{let n=r[t];return n&&"object"==typeof n&&!Array.isArray(n)?e[t]=function e(t){return Array.isArray(t)?t.sort():"object"==typeof t?e(Object.keys(t)).sort((e,t)=>Number(e)-Number(t)).map(e=>t[e]):t}(n):e[t]=n,e},Object.create(null))}t.extract=p,t.parse=g,t.stringify=(e,t)=>{if(!e)return"";l((t=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},t)).arrayFormatSeparator);let n=n=>t.skipNull&&s(e[n])||t.skipEmptyString&&""===e[n],r=function(e){switch(e.arrayFormat){case"index":return t=>(n,r)=>{let i=n.length;return void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:null===r?[...n,[c(t,e),"[",i,"]"].join("")]:[...n,[c(t,e),"[",c(i,e),"]=",c(r,e)].join("")]};case"bracket":return t=>(n,r)=>void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:null===r?[...n,[c(t,e),"[]"].join("")]:[...n,[c(t,e),"[]=",c(r,e)].join("")];case"colon-list-separator":return t=>(n,r)=>void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:null===r?[...n,[c(t,e),":list="].join("")]:[...n,[c(t,e),":list=",c(r,e)].join("")];case"comma":case"separator":case"bracket-separator":{let t="bracket-separator"===e.arrayFormat?"[]=":"=";return n=>(r,i)=>void 0===i||e.skipNull&&null===i||e.skipEmptyString&&""===i?r:(i=null===i?"":i,0===r.length)?[[c(n,e),t,c(i,e)].join("")]:[[r,c(i,e)].join(e.arrayFormatSeparator)]}default:return t=>(n,r)=>void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:null===r?[...n,c(t,e)]:[...n,[c(t,e),"=",c(r,e)].join("")]}}(t),i={};for(let t of Object.keys(e))n(t)||(i[t]=e[t]);let o=Object.keys(i);return!1!==t.sort&&o.sort(t.sort),o.map(n=>{let i=e[n];return void 0===i?"":null===i?c(n,t):Array.isArray(i)?0===i.length&&"bracket-separator"===t.arrayFormat?c(n,t)+"[]":i.reduce(r(n),[]).join("&"):c(n,t)+"="+c(i,t)}).filter(e=>e.length>0).join("&")},t.parseUrl=(e,t)=>
27{t=Object.assign({decode:!0},t);let[n,r]=o(e,"#");return Object.assign({url:n.split("?")[0]||"",query:g(p(e),t)},t&&t.parseFragmentIdentifier&&r?{fragmentIdentifier:f(r,t)}:{})},t.stringifyUrl=(e,n)=>{n=Object.assign({encode:!0,strict:!0,[u]:!0},n);let r=d(e.url).split("?")[0]||"",i=t.extract(e.url),o=Object.assign(t.parse(i,{sort:!1}),e.query),a=t.stringify(o,n);a&&(a=`?${a}`);let s=function(e){let t="",n=e.indexOf("#");return -1!==n&&(t=e.slice(n)),t}(e.url);return e.fragmentIdentifier&&(s=`#${n[u]?c(e.fragmentIdentifier,n):e.fragmentIdentifier}`),`${r}${a}${s}`},t.pick=(e,n,r)=>{r=Object.assign({parseFragmentIdentifier:!0,[u]:!1},r);let{url:i,query:o,fragmentIdentifier:s}=t.parseUrl(e,r);return t.stringifyUrl({url:i,query:a(o,n),fragmentIdentifier:s},r)},t.exclude=(e,n,r)=>{let i=Array.isArray(n)?e=>!n.includes(e):(e,t)=>!n(e,t);return t.pick(e,i,r)}},29347:function(e,t,n){"use strict";n.d(t,{zt:function(){return a},ZP:function(){return s}});var r=n(67294),i=n(65885).Z,o=r.createContext(new i),a=o.Provider;o.Consumer;var s=o},69590:function(e){"use strict";var t=Array.isArray,n=Object.keys,r=Object.prototype.hasOwnProperty,i="undefined"!=typeof Element;e.exports=function(e,o){try{return function e(o,a){if(o===a)return!0;if(o&&a&&"object"==typeof o&&"object"==typeof a){var s,u,l,c=t(o),f=t(a);if(c&&f){if((u=o.length)!=a.length)return!1;for(s=u;0!=s--;)if(!e(o[s],a[s]))return!1;return!0}if(c!=f)return!1;var d=o instanceof Date,p=a instanceof Date;if(d!=p)return!1;if(d&&p)return o.getTime()==a.getTime();var h=o instanceof RegExp,g=a instanceof RegExp;if(h!=g)return!1;if(h&&g)return o.toString()==a.toString();var m=n(o);if((u=m.length)!==n(a).length)return!1;for(s=u;0!=s--;)if(!r.call(a,m[s]))return!1;if(i&&o instanceof Element&&a instanceof Element)return o===a;for(s=u;0!=s--;)if(("_owner"!==(l=m[s])||!o.$$typeof)&&!e(o[l],a[l]))return!1;return!0}return o!=o&&a!=a}(e,o)}catch(e){if(e.message&&e.message.match(/stack|recursion/i)||-2146828260===e.number)return console.warn("Warning: react-fast-compare does not handle circular references.",e.name,e.message),!1;throw e}}},46445:function(e,t,n){"use strict";var r=n(67294),i=n(45697),o=n.n(i);function a(){return(a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var s=(0,r.forwardRef)(function(e,t){var n=e.color,i=e.size,o=void 0===i?24:i,s=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(e,["color","size"]);return r.createElement("svg",a({ref:t,xmlns:"http://www.w3.org/2000/svg",width:o,height:o,viewBox:"0 0 24 24",fill:"none",stroke:void 0===n?"currentColor":n,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},s),r.createElement("polyline",{points:"20 6 9 17 4 12"}))});s.propTypes={color:o().string,size:o().oneOfType([o().string,o().number])},s.displayName="Check",t.Z=s},27434:function(e,t,n){"use strict";var r=n(67294),i=n(45697),o=n.n(i);function a(){return(a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var s=(0,r.forwardRef)(function(e,t){var n=e.color,i=e.size,o=void 0===i?24:i,s=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(e,["color","size"]);return r.createElement("svg",a({ref:t,xmlns:"http://www.w3.org/2000/svg",width:o,height:o,viewBox:"0 0 24 24",fill:"none",stroke:void 0===n?"currentColor":n,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},s),r.createElement("polyline",{points:"6 9 12 15 18 9"}))});
27s.propTypes={color:o().string,size:o().oneOfType([o().string,o().number])},s.displayName="ChevronDown",t.Z=s},51591:function(e,t,n){"use strict";var r=n(67294),i=n(45697),o=n.n(i);function a(){return(a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var s=(0,r.forwardRef)(function(e,t){var n=e.color,i=e.size,o=void 0===i?24:i,s=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(e,["color","size"]);return r.createElement("svg",a({ref:t,xmlns:"http://www.w3.org/2000/svg",width:o,height:o,viewBox:"0 0 24 24",fill:"none",stroke:void 0===n?"currentColor":n,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},s),r.createElement("path",{d:"M18 2h-3a5 5 0 0 0-5 5v3H7v4h3v8h4v-8h3l1-4h-4V7a1 1 0 0 1 1-1h3z"}))});s.propTypes={color:o().string,size:o().oneOfType([o().string,o().number])},s.displayName="Facebook",t.Z=s},46702:function(e,t,n){"use strict";var r=n(67294),i=n(45697),o=n.n(i);function a(){return(a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var s=(0,r.forwardRef)(function(e,t){var n=e.color,i=e.size,o=void 0===i?24:i,s=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(e,["color","size"]);return r.createElement("svg",a({ref:t,xmlns:"http://www.w3.org/2000/svg",width:o,height:o,viewBox:"0 0 24 24",fill:"none",stroke:void 0===n?"currentColor":n,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},s),r.createElement("path",{d:"M9 19c-5 1.5-5-2.5-7-3m14 6v-3.87a3.37 3.37 0 0 0-.94-2.61c3.14-.35 6.44-1.54 6.44-7A5.44 5.44 0 0 0 20 4.77 5.07 5.07 0 0 0 19.91 1S18.73.65 16 2.48a13.38 13.38 0 0 0-7 0C6.27.65 5.09 1 5.09 1A5.07 5.07 0 0 0 5 4.77a5.44 5.44 0 0 0-1.5 3.78c0 5.42 3.3 6.61 6.44 7A3.37 3.37 0 0 0 9 18.13V22"}))});s.propTypes={color:o().string,size:o().oneOfType([o().string,o().number])},s.displayName="GitHub",t.Z=s},80289:function(e,t,n){"use strict";var r=n(67294),i=n(45697),o=n.n(i);function a(){return(a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var s=(0,r.forwardRef)(function(e,t){var n=e.color,i=e.size,o=void 0===i?24:i,s=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(e,["color","size"]);return r.createElement("svg",a({ref:t,xmlns:"http://www.w3.org/2000/svg",width:o,height:o,viewBox:"0 0 24 24",fill:"none",stroke:void 0===n?"currentColor":n,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},s),r.createElement("rect",{x:"2",y:"2",width:"20",height:"20",rx:"5",ry:"5"}),r.createElement("path",{d:"M16 11.37A4 4 0 1 1 12.63 8 4 4 0 0 1 16 11.37z"}),r.createElement("line",{x1:"17.5",y1:"6.5",x2:"17.51",y2:"6.5"}))});s.propTypes={color:o().string,size:o().oneOfType([o().string,o().number])},s.displayName="Instagram",t.Z=s},3785:function(e,t,n){"use strict";var r=n(67294),i=n(45697),o=n.n(i);function a(){return(a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}
27var s=(0,r.forwardRef)(function(e,t){var n=e.color,i=e.size,o=void 0===i?24:i,s=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(e,["color","size"]);return r.createElement("svg",a({ref:t,xmlns:"http://www.w3.org/2000/svg",width:o,height:o,viewBox:"0 0 24 24",fill:"none",stroke:void 0===n?"currentColor":n,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},s),r.createElement("line",{x1:"12",y1:"2",x2:"12",y2:"6"}),r.createElement("line",{x1:"12",y1:"18",x2:"12",y2:"22"}),r.createElement("line",{x1:"4.93",y1:"4.93",x2:"7.76",y2:"7.76"}),r.createElement("line",{x1:"16.24",y1:"16.24",x2:"19.07",y2:"19.07"}),r.createElement("line",{x1:"2",y1:"12",x2:"6",y2:"12"}),r.createElement("line",{x1:"18",y1:"12",x2:"22",y2:"12"}),r.createElement("line",{x1:"4.93",y1:"19.07",x2:"7.76",y2:"16.24"}),r.createElement("line",{x1:"16.24",y1:"7.76",x2:"19.07",y2:"4.93"}))});s.propTypes={color:o().string,size:o().oneOfType([o().string,o().number])},s.displayName="Loader",t.Z=s},22774:function(e,t,n){"use strict";var r=n(67294),i=n(45697),o=n.n(i);function a(){return(a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var s=(0,r.forwardRef)(function(e,t){var n=e.color,i=e.size,o=void 0===i?24:i,s=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(e,["color","size"]);return r.createElement("svg",a({ref:t,xmlns:"http://www.w3.org/2000/svg",width:o,height:o,viewBox:"0 0 24 24",fill:"none",stroke:void 0===n?"currentColor":n,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},s),r.createElement("path",{d:"M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z"}),r.createElement("polyline",{points:"22,6 12,13 2,6"}))});s.propTypes={color:o().string,size:o().oneOfType([o().string,o().number])},s.displayName="Mail",t.Z=s},50794:function(e,t,n){"use strict";var r=n(67294),i=n(45697),o=n.n(i);function a(){return(a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var s=(0,r.forwardRef)(function(e,t){var n=e.color,i=e.size,o=void 0===i?24:i,s=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(e,["color","size"]);return r.createElement("svg",a({ref:t,xmlns:"http://www.w3.org/2000/svg",width:o,height:o,viewBox:"0 0 24 24",fill:"none",stroke:void 0===n?"currentColor":n,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},s),r.createElement("rect",{x:"6",y:"4",width:"4",height:"16"}),r.createElement("rect",{x:"14",y:"4",width:"4",height:"16"}))});s.propTypes={color:o().string,size:o().oneOfType([o().string,o().number])},s.displayName="Pause",t.Z=s},45720:function(e,t,n){"use strict";var r=n(67294),i=n(45697),o=n.n(i);function a(){return(a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var s=(0,r.forwardRef)(function(e,t){var n=e.color,i=e.size,o=void 0===i?24:i,s=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(e,["color","size"]);return r.createElement("svg",a({ref:t,xmlns:"http://www.w3.org/2000/svg",width:o,height:o,viewBox:"0 0 24 24",fill:"none",stroke:void 0===n?"currentColor":n,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},s),r.createElement("polygon",{points:"5 3 19 12 5 21 5 3"}))});
27s.propTypes={color:o().string,size:o().oneOfType([o().string,o().number])},s.displayName="Play",t.Z=s},38483:function(e,t,n){"use strict";var r=n(67294),i=n(45697),o=n.n(i);function a(){return(a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var s=(0,r.forwardRef)(function(e,t){var n=e.color,i=e.size,o=void 0===i?24:i,s=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(e,["color","size"]);return r.createElement("svg",a({ref:t,xmlns:"http://www.w3.org/2000/svg",width:o,height:o,viewBox:"0 0 24 24",fill:"none",stroke:void 0===n?"currentColor":n,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},s),r.createElement("path",{d:"M4 11a9 9 0 0 1 9 9"}),r.createElement("path",{d:"M4 4a16 16 0 0 1 16 16"}),r.createElement("circle",{cx:"5",cy:"19",r:"1"}))});s.propTypes={color:o().string,size:o().oneOfType([o().string,o().number])},s.displayName="Rss",t.Z=s},20706:function(e,t,n){"use strict";var r=n(67294),i=n(45697),o=n.n(i);function a(){return(a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var s=(0,r.forwardRef)(function(e,t){var n=e.color,i=e.size,o=void 0===i?24:i,s=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(e,["color","size"]);return r.createElement("svg",a({ref:t,xmlns:"http://www.w3.org/2000/svg",width:o,height:o,viewBox:"0 0 24 24",fill:"none",stroke:void 0===n?"currentColor":n,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},s),r.createElement("path",{d:"M23 3a10.9 10.9 0 0 1-3.14 1.53 4.48 4.48 0 0 0-7.86 3v1A10.66 10.66 0 0 1 3 4s-4 9 5 13a11.64 11.64 0 0 1-7 2c9 5 20 0 20-11.5a4.5 4.5 0 0 0-.08-.83A7.72 7.72 0 0 0 23 3z"}))});s.propTypes={color:o().string,size:o().oneOfType([o().string,o().number])},s.displayName="Twitter",t.Z=s},57715:function(e,t,n){"use strict";n.d(t,{OO:function(){return h},zv:function(){return m},JP:function(){return g},nI:function(){return v},Db:function(){return y}});var r,i=n(15671),o=n(43144),a=n(4942),s=n(67294),u=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230);/g,l={"&amp;":"&","&#38;":"&","&lt;":"<","&#60;":"<","&gt;":">","&#62;":">","&apos;":"'","&#39;":"'","&quot;":'"',"&#34;":'"',"&nbsp;":" ","&#160;":" ","&copy;":"\xa9","&#169;":"\xa9","&reg;":"\xae","&#174;":"\xae","&hellip;":"…","&#8230;":"…"},c=function(e){return l[e]};function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function d(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?f(Object(n),!0).forEach(function(t){(0,a.Z)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var p={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:function(e){return e.replace(u,c)}},h=(0,s.createContext)();function g(){return p}var m=function(){function e(){(0,i.Z)(this,e),this.usedNamespaces={}}return(0,o.Z)(e,[{key:"addUsedNamespaces",value:function(e){var t=this;e.forEach(function(e){t.usedNamespaces[e]||(t.usedNamespaces[e]=!0)})}},{key:"getUsedNamespaces",value:function(){return Object.keys(this.usedNamespaces)}}]),e}();function v(){return r}var y={type:"3rdParty",init:function(e){!function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};p=d(d({},p),e)}(e.options.react),r=e}}},77058:function(e,t,n){"use strict";n.d(t,{$:function(){return m}});var r=n(83878),i=n(81563),o=n(25267),a=n(4942),s=n(67294),u=n(57715);function l(){if(console&&console.warn){for(var e,t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];"string"==typeof n[0]&&(n[0]="react-i18next:: ".concat(n[0])),(e=console).warn.apply(e,n)}}var c={};function f(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];"string"==typeof t[0]&&c[t[0]]||("string"==typeof t[0]&&(c[t[0]]=new Date),l.a
27pply(void 0,t))}function d(e,t,n){e.loadNamespaces(t,function(){e.isInitialized?n():e.on("initialized",function t(){setTimeout(function(){e.off("initialized",t)},0),n()})})}function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function h(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(Object(n),!0).forEach(function(t){(0,a.Z)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var g=function(e,t){var n=(0,s.useRef)();return(0,s.useEffect)(function(){n.current=t?n.current:e},[e,t]),n.current};function m(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=n.i18n,l=(0,s.useContext)(u.OO)||{},c=l.i18n,p=l.defaultNS,m=a||c||(0,u.nI)();if(m&&!m.reportNamespaces&&(m.reportNamespaces=new u.zv),!m){f("You will need to pass in an i18next instance by using initReactI18next");var v=function(e){return Array.isArray(e)?e[e.length-1]:e},y=[v,{},!1];return y.t=v,y.i18n={},y.ready=!1,y}m.options.react&&void 0!==m.options.react.wait&&f("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");var b=h(h(h({},(0,u.JP)()),m.options.react),n),_=b.useSuspense,S=b.keyPrefix,E=e||p||m.options&&m.options.defaultNS;E="string"==typeof E?[E]:E||["translation"],m.reportNamespaces.addUsedNamespaces&&m.reportNamespaces.addUsedNamespaces(E);var O=(m.isInitialized||m.initializedStoreOnce)&&E.every(function(e){return function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return t.languages&&t.languages.length?void 0!==t.options.ignoreJSONStructure?t.hasLoadedNamespace(e,{precheck:function(t,r){if(n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!r(t.isLanguageChangingTo,e))return!1}}):function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=t.languages[0],i=!!t.options&&t.options.fallbackLng,o=t.languages[t.languages.length-1];if("cimode"===r.toLowerCase())return!0;var a=function(e,n){var r=t.services.backendConnector.state["".concat(e,"|").concat(n)];return -1===r||2===r};return(!(n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1)||!t.services.backendConnector.backend||!t.isLanguageChangingTo||!!a(t.isLanguageChangingTo,e))&&!!(t.hasResourceBundle(r,e)||!t.services.backendConnector.backend||t.options.resources&&!t.options.partialBundledLanguages||a(r,e)&&(!i||a(o,e)))}(e,t,n):(f("i18n.languages were undefined or empty",t.languages),!0)}(e,m,b)});function w(){return m.getFixedT(null,"fallback"===b.nsMode?E:E[0],S)}var x=(t=(0,s.useState)(w),(0,r.Z)(t)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,s=[],u=!0,l=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){l=!0,i=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw i}}return s}}(t,2)||(0,i.Z)(t,2)||(0,o.Z)()),T=x[0],C=x[1],P=E.join(),A=g(P),k=(0,s.useRef)(!0);(0,s.useEffect)(function(){var e=b.bindI18n,t=b.bindI18nStore;function n(){k.current&&C(w)}return k.current=!0,O||_||d(m,E,function(){k.current&&C(w)}),O&&A&&A!==P&&k.current&&C(w),e&&m&&m.on(e,n),t&&m&&m.store.on(t,n),function(){k.current=!1,e&&m&&e.split(" ").forEach(function(e){return m.off(e,n)}),t&&m&&t.split(" ").forEach(function(e){return m.store.off(e,n)})}},[m,P]);var j=(0,s.useRef)(!0);(0,s.useEffect)(function(){k.current&&!j.current&&C(w),j.current=!1},[m]);var I=[T,m,O];if(I.t=T,I.i18n=m,I.ready=O,O||!O&&!_)return I;throw new Promise(function(e){d(m,E,function(){e()})})}},69921:function(e,t){"use strict";/** @license React v16.13.1
28 * react-is.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 n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,i=n?Symbol.for("react.portal"):60106,o=n?Symbol.for("react.fragment"):60107,a=n?Symbol.for("react.strict_mode"):60108,s=n?Symbol.for("react.profiler"):60114,u=n?Symbol.for("react.provider"):60109,l=n?Symbol.for("react.context"):60110,c=n?Symbol.for("react.async_mode"):60111,f=n?Symbol.for("react.concurrent_mode"):60111,d=n?Symbol.for("react.forward_ref"):60112,p=n?Symbol.for("react.suspense"):60113,h=n?Symbol.for("react.suspense_list"):60120,g=n?Symbol.for("react.memo"):60115,m=n?Symbol.for("react.lazy"):60116,v=n?Symbol.for("react.block"):60121,y=n?Symbol.for("react.fundamental"):60117,b=n?Symbol.for("react.responder"):60118,_=n?Symbol.for("react.scope"):60119;function S(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case c:case f:case o:case s:case a:case p:return e;default:switch(e=e&&e.$$typeof){case l:case d:case m:case g:case u:return e;default:return t}}case i:return t}}}function E(e){return S(e)===f}t.AsyncMode=c,t.ConcurrentMode=f,t.ContextConsumer=l,t.ContextProvider=u,t.Element=r,t.ForwardRef=d,t.Fragment=o,t.Lazy=m,t.Memo=g,t.Portal=i,t.Profiler=s,t.StrictMode=a,t.Suspense=p,t.isAsyncMode=function(e){return E(e)||S(e)===c},t.isConcurrentMode=E,t.isContextConsumer=function(e){return S(e)===l},t.isContextProvider=function(e){return S(e)===u},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return S(e)===d},t.isFragment=function(e){return S(e)===o},t.isLazy=function(e){return S(e)===m},t.isMemo=function(e){return S(e)===g},t.isPortal=function(e){return S(e)===i},t.isProfiler=function(e){return S(e)===s},t.isStrictMode=function(e){return S(e)===a},t.isSuspense=function(e){return S(e)===p},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===o||e===f||e===s||e===a||e===p||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===m||e.$$typeof===g||e.$$typeof===u||e.$$typeof===l||e.$$typeof===d||e.$$typeof===y||e.$$typeof===b||e.$$typeof===_||e.$$typeof===v)},t.typeOf=S},59864:function(e,t,n){"use strict";e.exports=n(69921)},20938:function(e){e.exports={ReactQueryDevtools:function(){return null},ReactQueryDevtoolsPanel:function(){return null}}},59852:function(e,t,n){"use strict";n.d(t,{j:function(){return a}});var r=n(94578),i=n(52943),o=n(52288),a=new(function(e){function t(){var t;return(t=e.call(this)||this).setup=function(e){var t;if(!o.sk&&(null==(t=window)?void 0:t.addEventListener)){var n=function(){return e()};return window.addEventListener("visibilitychange",n,!1),window.addEventListener("focus",n,!1),function(){window.removeEventListener("visibilitychange",n),window.removeEventListener("focus",n)}}},t}(0,r.Z)(t,e);var n=t.prototype;return n.onSubscribe=function(){this.cleanup||this.setEventListener(this.setup)},n.onUnsubscribe=function(){if(!this.hasListeners()){var e;null==(e=this.cleanup)||e.call(this),this.cleanup=void 0}},n.setEventListener=function(e){var t,n=this;this.setup=e,null==(t=this.cleanup)||t.call(this),this.cleanup=e(function(e){"boolean"==typeof e?n.setFocused(e):n.onFocus()})},n.setFocused=function(e){this.focused=e,e&&this.onFocus()}
34,n.onFocus=function(){this.listeners.forEach(function(e){e()})},n.isFocused=function(){return"boolean"==typeof this.focused?this.focused:"undefined"==typeof document||[void 0,"visible","prerender"].includes(document.visibilityState)},t}(i.l))},46747:function(e,t,n){"use strict";n.d(t,{QueryClient:function(){return r.S}});var r=n(61284),i=n(86755);n.o(i,"QueryClientProvider")&&n.d(t,{QueryClientProvider:function(){return i.QueryClientProvider}}),n.o(i,"useInfiniteQuery")&&n.d(t,{useInfiniteQuery:function(){return i.useInfiniteQuery}}),n.o(i,"useMutation")&&n.d(t,{useMutation:function(){return i.useMutation}}),n.o(i,"useQuery")&&n.d(t,{useQuery:function(){return i.useQuery}})},36997:function(e,t,n){"use strict";n.d(t,{Gm:function(){return o},Qy:function(){return u},ZF:function(){return l}});var r=n(21216),i=n(52288);function o(){return{onFetch:function(e){e.fetchFn=function(){var t,n,o,u,l,c,f,d=null==(t=e.fetchOptions)?void 0:null==(n=t.meta)?void 0:n.refetchPage,p=null==(o=e.fetchOptions)?void 0:null==(u=o.meta)?void 0:u.fetchMore,h=null==p?void 0:p.pageParam,g=(null==p?void 0:p.direction)==="forward",m=(null==p?void 0:p.direction)==="backward",v=(null==(l=e.state.data)?void 0:l.pages)||[],y=(null==(c=e.state.data)?void 0:c.pageParams)||[],b=(0,i.G9)(),_=null==b?void 0:b.signal,S=y,E=!1,O=e.options.queryFn||function(){return Promise.reject("Missing queryFn")},w=function(e,t,n,r){return S=r?[t].concat(S):[].concat(S,[t]),r?[n].concat(e):[].concat(e,[n])},x=function(t,n,i,o){if(E)return Promise.reject("Cancelled");if(void 0===i&&!n&&t.length)return Promise.resolve(t);var a=O({queryKey:e.queryKey,signal:_,pageParam:i,meta:e.meta}),s=Promise.resolve(a).then(function(e){return w(t,i,e,o)});return(0,r.LE)(a)&&(s.cancel=a.cancel),s};if(v.length){if(g){var T=void 0!==h,C=T?h:a(e.options,v);f=x(v,T,C)}else if(m){var P=void 0!==h,A=P?h:s(e.options,v);f=x(v,P,A,!0)}else!function(){S=[];var t=void 0===e.options.getNextPageParam;f=!d||!v[0]||d(v[0],0,v)?x([],t,y[0]):Promise.resolve(w([],y[0],v[0]));for(var n=function(n){f=f.then(function(r){if(!d||!v[n]||d(v[n],n,v)){var i=t?y[n]:a(e.options,r);return x(r,t,i)}return Promise.resolve(w(r,y[n],v[n]))})},r=1;r<v.length;r++)n(r)}()}else f=x([]);var k=f.then(function(e){return{pages:e,pageParams:S}});return k.cancel=function(){E=!0,null==b||b.abort(),(0,r.LE)(f)&&f.cancel()},k}}}}function a(e,t){return null==e.getNextPageParam?void 0:e.getNextPageParam(t[t.length-1],t)}function s(e,t){return null==e.getPreviousPageParam?void 0:e.getPreviousPageParam(t[0],t)}function u(e,t){if(e.getNextPageParam&&Array.isArray(t)){var n=a(e,t);return null!=n&&!1!==n}}function l(e,t){if(e.getPreviousPageParam&&Array.isArray(t)){var n=s(e,t);return null!=n&&!1!==n}}},41909:function(e,t,n){"use strict";n.d(t,{E:function(){return o},j:function(){return i}});var r=console;function i(){return r}function o(e){r=e}},81262:function(e,t,n){"use strict";n.d(t,{R:function(){return l},m:function(){return u}});var r=n(87462),i=n(41909),o=n(101),a=n(21216),s=n(52288),u=function(){function e(e){this.options=(0,r.Z)({},e.defaultOptions,e.options),this.mutationId=e.mutationId,this.mutationCache=e.mutationCache,this.observers=[],this.state=e.state||l(),this.meta=e.meta}var t=e.prototype;return t.setState=function(e){this.dispatch({type:"setState",state:e})},t.addObserver=function(e){-1===this.observers.indexOf(e)&&this.observers.push(e)},t.removeObserver=function(e){this.observers=this.observers.filter(function(t){return t!==e})},t.cancel=function(){return this.retryer?(this.retryer.cancel(),this.retryer.promise.then(s.ZT).catch(s.ZT)):Promise.resolve()},t.continue=function(){return this.retryer?(this.retryer.continue(),this.retryer.promise):this.execute()},t.execute=function(){var e,t=this,n="loading"===this.state.status,r=Promise.resolve();return n||(this.dispatch({type:"loading",variables:this.options.variables}),r=r.then(function(){null==t.mutationCache.config.onMutate||t.mutationCache.config.onMutate(t.state.variables,t)}).then(function(){return null==t.options.onMutate?void 0:t.options.onMutate(t.state.variables)}
34).then(function(e){e!==t.state.context&&t.dispatch({type:"loading",context:e,variables:t.state.variables})})),r.then(function(){return t.executeMutation()}).then(function(n){e=n,null==t.mutationCache.config.onSuccess||t.mutationCache.config.onSuccess(e,t.state.variables,t.state.context,t)}).then(function(){return null==t.options.onSuccess?void 0:t.options.onSuccess(e,t.state.variables,t.state.context)}).then(function(){return null==t.options.onSettled?void 0:t.options.onSettled(e,null,t.state.variables,t.state.context)}).then(function(){return t.dispatch({type:"success",data:e}),e}).catch(function(e){return null==t.mutationCache.config.onError||t.mutationCache.config.onError(e,t.state.variables,t.state.context,t),(0,i.j)().error(e),Promise.resolve().then(function(){return null==t.options.onError?void 0:t.options.onError(e,t.state.variables,t.state.context)}).then(function(){return null==t.options.onSettled?void 0:t.options.onSettled(void 0,e,t.state.variables,t.state.context)}).then(function(){throw t.dispatch({type:"error",error:e}),e})})},t.executeMutation=function(){var e,t=this;return this.retryer=new a.m4({fn:function(){return t.options.mutationFn?t.options.mutationFn(t.state.variables):Promise.reject("No mutationFn found")},onFail:function(){t.dispatch({type:"failed"})},onPause:function(){t.dispatch({type:"pause"})},onContinue:function(){t.dispatch({type:"continue"})},retry:null!=(e=this.options.retry)?e:0,retryDelay:this.options.retryDelay}),this.retryer.promise},t.dispatch=function(e){var t=this;this.state=function(e,t){switch(t.type){case"failed":return(0,r.Z)({},e,{failureCount:e.failureCount+1});case"pause":return(0,r.Z)({},e,{isPaused:!0});case"continue":return(0,r.Z)({},e,{isPaused:!1});case"loading":return(0,r.Z)({},e,{context:t.context,data:void 0,error:null,isPaused:!1,status:"loading",variables:t.variables});case"success":return(0,r.Z)({},e,{data:t.data,error:null,status:"success",isPaused:!1});case"error":return(0,r.Z)({},e,{data:void 0,error:t.error,failureCount:e.failureCount+1,isPaused:!1,status:"error"});case"setState":return(0,r.Z)({},e,t.state);default:return e}}(this.state,e),o.V.batch(function(){t.observers.forEach(function(t){t.onMutationUpdate(e)}),t.mutationCache.notify(t)})},e}();function l(){return{context:void 0,data:void 0,error:null,failureCount:0,isPaused:!1,status:"idle",variables:void 0}}},101:function(e,t,n){"use strict";n.d(t,{V:function(){return i}});var r=n(52288),i=new(function(){function e(){this.queue=[],this.transactions=0,this.notifyFn=function(e){e()},this.batchNotifyFn=function(e){e()}}var t=e.prototype;return t.batch=function(e){var t;this.transactions++;try{t=e()}finally{this.transactions--,this.transactions||this.flush()}return t},t.schedule=function(e){var t=this;this.transactions?this.queue.push(e):(0,r.A4)(function(){t.notifyFn(e)})},t.batchCalls=function(e){var t=this;return function(){for(var n=arguments.length,r=Array(n),i=0;i<n;i++)r[i]=arguments[i];t.schedule(function(){e.apply(void 0,r)})}},t.flush=function(){var e=this,t=this.queue;this.queue=[],t.length&&(0,r.A4)(function(){e.batchNotifyFn(function(){t.forEach(function(t){e.notifyFn(t)})})})},t.setNotifyFunction=function(e){this.notifyFn=e},t.setBatchNotifyFunction=function(e){this.batchNotifyFn=e},e}())},40068:function(e,t,n){"use strict";n.d(t,{N:function(){return a}});var r=n(94578),i=n(52943),o=n(52288),a=new(function(e){function t(){var t;return(t=e.call(this)||this).setup=function(e){var t;if(!o.sk&&(null==(t=window)?void 0:t.addEventListener)){var n=function(){return e()};return window.addEventListener("online",n,!1),window.addEventListener("offline",n,!1),function(){window.removeEventListener("online",n),window.removeEventListener("offline",n)}}},t}(0,r.Z)(t,e);var n=t.prototype;return n.onSubscribe=function(){this.cleanup||this.setEventListener(this.setup)},n.onUnsubscribe=function(){if(!this.hasListeners()){var e;null==(e=this.cleanup)||e.call(this),this.cleanup=void 0}},n.setEventListener=function(e){var t,n=this;this.setup=e,null==(t=this.cleanup)||t.call(this),this.cleanup=e(function(e){"boolean"==typeof e?n.setOnline(e):n.onOnline()})},n.setOnline=function(e){this.online=e,e&&this.onOnline()}
34,n.onOnline=function(){this.listeners.forEach(function(e){e()})},n.isOnline=function(){return"boolean"==typeof this.online?this.online:"undefined"==typeof navigator||void 0===navigator.onLine||navigator.onLine},t}(i.l))},61284:function(e,t,n){"use strict";n.d(t,{S:function(){return v}});var r=n(87462),i=n(52288),o=n(94578),a=n(101),s=n(41909),u=n(21216),l=function(){function e(e){this.abortSignalConsumed=!1,this.hadObservers=!1,this.defaultOptions=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.cache=e.cache,this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.initialState=e.state||this.getDefaultState(this.options),this.state=this.initialState,this.meta=e.meta,this.scheduleGc()}var t=e.prototype;return t.setOptions=function(e){var t;this.options=(0,r.Z)({},this.defaultOptions,e),this.meta=null==e?void 0:e.meta,this.cacheTime=Math.max(this.cacheTime||0,null!=(t=this.options.cacheTime)?t:3e5)},t.setDefaultOptions=function(e){this.defaultOptions=e},t.scheduleGc=function(){var e=this;this.clearGcTimeout(),(0,i.PN)(this.cacheTime)&&(this.gcTimeout=setTimeout(function(){e.optionalRemove()},this.cacheTime))},t.clearGcTimeout=function(){this.gcTimeout&&(clearTimeout(this.gcTimeout),this.gcTimeout=void 0)},t.optionalRemove=function(){!this.observers.length&&(this.state.isFetching?this.hadObservers&&this.scheduleGc():this.cache.remove(this))},t.setData=function(e,t){var n,r,o=this.state.data,a=(0,i.SE)(e,o);return(null==(n=(r=this.options).isDataEqual)?void 0:n.call(r,o,a))?a=o:!1!==this.options.structuralSharing&&(a=(0,i.Q$)(o,a)),this.dispatch({data:a,type:"success",dataUpdatedAt:null==t?void 0:t.updatedAt}),a},t.setState=function(e,t){this.dispatch({type:"setState",state:e,setStateOptions:t})},t.cancel=function(e){var t,n=this.promise;return null==(t=this.retryer)||t.cancel(e),n?n.then(i.ZT).catch(i.ZT):Promise.resolve()},t.destroy=function(){this.clearGcTimeout(),this.cancel({silent:!0})},t.reset=function(){this.destroy(),this.setState(this.initialState)},t.isActive=function(){return this.observers.some(function(e){return!1!==e.options.enabled})},t.isFetching=function(){return this.state.isFetching},t.isStale=function(){return this.state.isInvalidated||!this.state.dataUpdatedAt||this.observers.some(function(e){return e.getCurrentResult().isStale})},t.isStaleByTime=function(e){return void 0===e&&(e=0),this.state.isInvalidated||!this.state.dataUpdatedAt||!(0,i.Kp)(this.state.dataUpdatedAt,e)},t.onFocus=function(){var e,t=this.observers.find(function(e){return e.shouldFetchOnWindowFocus()});t&&t.refetch(),null==(e=this.retryer)||e.continue()},t.onOnline=function(){var e,t=this.observers.find(function(e){return e.shouldFetchOnReconnect()});t&&t.refetch(),null==(e=this.retryer)||e.continue()},t.addObserver=function(e){-1===this.observers.indexOf(e)&&(this.observers.push(e),this.hadObservers=!0,this.clearGcTimeout(),this.cache.notify({type:"observerAdded",query:this,observer:e}))},t.removeObserver=function(e){-1!==this.observers.indexOf(e)&&(this.observers=this.observers.filter(function(t){return t!==e}),this.observers.length||(this.retryer&&(this.retryer.isTransportCancelable||this.abortSignalConsumed?this.retryer.cancel({revert:!0}):this.retryer.cancelRetry()),this.cacheTime?this.scheduleGc():this.cache.remove(this)),this.cache.notify({type:"observerRemoved",query:this,observer:e}))},t.getObserversCount=function(){return this.observers.length},t.invalidate=function(){this.state.isInvalidated||this.dispatch({type:"invalidate"})},t.fetch=function(e,t){var n,r,o,a,l,c,f=this;if(this.state.isFetching){if(this.state.dataUpdatedAt&&(null==t?void 0:t.cancelRefetch))this.cancel({silent:!0});else if(this.promise)return null==(n=this.retryer)||n.continueRetry(),this.promise}if(e&&this.setOptions(e),!this.options.queryFn){var d=this.observers.find(function(e){return e.options.queryFn});d&&this.setOptions(d.options)}var p=(0,i.mc)(this.queryKey),h=(0,i.G9)(),g={queryKey:p,pageParam:void 0,meta:this.meta};Object.defineProperty(g,"signal",{enumerable:!0,get:function(){if(h)return f.abortSignalConsumed=!0,h.signal}});var m={fetchOptions:t,options:this.options,queryKey:p,state:this.state,fetchFn:function(){return f.options.queryFn?(f.abortSignalConsumed=!1,f.options.queryFn(g)):Promise.reject("Missing queryFn")},meta:this.meta};return(null==(a=this.options.behavior)?void 0:a.onFetch)&&(null==(r=this.options.behavior)||r.onFetch(m)),this.revertState=this.state,this.state.isFetching&&this.state.fetchMeta===(null==(l=m.fetchOptions)?void 0:l.meta)||this.dispatch({type:"fetch",meta:null==(o=m.fetchOptions)?void 0:o.meta}),this.retryer=new u.m4({fn:m.fetchFn,abort:null==h?void 0:null==(c=h.abort)?void 0:c.bind(h),onSuccess:function(e){f.setData(e),null==f.cache.config.onSuccess||f.cache.config.onSuccess(e,f),0===f.cacheTime&&f.optionalRemove()},onError:function(e){(0,u.DV)(e)&&e.silent||f.dispatch({type:"error",error:e}),(0,u.DV)(e)||(null==f.cache.config.onError||f.cache.config.onError(e,f),(0,s.j)().error(e)),0===f.cacheTime&&f.optionalRemove()},onFail:function(){f.dispatch({type:"failed"})},onPause:function(){f.dispatch({type:"pause"})},onContinue:function(){f.dispatch({type:"continue"})},retry:m.options.retry,retryDelay:m.options.retryDelay}),this.promise=this.retryer.promise,this.promise},t.dispatch=function(e){var t=this;this.state=this.reducer(this.state,e),a.V.batch(function(){t.observers.forEac
34h(function(t){t.onQueryUpdate(e)}),t.cache.notify({query:t,type:"queryUpdated",action:e})})},t.getDefaultState=function(e){var t="function"==typeof e.initialData?e.initialData():e.initialData,n=void 0!==e.initialData?"function"==typeof e.initialDataUpdatedAt?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0,r=void 0!==t;return{data:t,dataUpdateCount:0,dataUpdatedAt:r?null!=n?n:Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchMeta:null,isFetching:!1,isInvalidated:!1,isPaused:!1,status:r?"success":"idle"}},t.reducer=function(e,t){var n,i;switch(t.type){case"failed":return(0,r.Z)({},e,{fetchFailureCount:e.fetchFailureCount+1});case"pause":return(0,r.Z)({},e,{isPaused:!0});case"continue":return(0,r.Z)({},e,{isPaused:!1});case"fetch":return(0,r.Z)({},e,{fetchFailureCount:0,fetchMeta:null!=(n=t.meta)?n:null,isFetching:!0,isPaused:!1},!e.dataUpdatedAt&&{error:null,status:"loading"});case"success":return(0,r.Z)({},e,{data:t.data,dataUpdateCount:e.dataUpdateCount+1,dataUpdatedAt:null!=(i=t.dataUpdatedAt)?i:Date.now(),error:null,fetchFailureCount:0,isFetching:!1,isInvalidated:!1,isPaused:!1,status:"success"});case"error":var o=t.error;if((0,u.DV)(o)&&o.revert&&this.revertState)return(0,r.Z)({},this.revertState);return(0,r.Z)({},e,{error:o,errorUpdateCount:e.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:e.fetchFailureCount+1,isFetching:!1,isPaused:!1,status:"error"});case"invalidate":return(0,r.Z)({},e,{isInvalidated:!0});case"setState":return(0,r.Z)({},e,t.state);default:return e}},e}(),c=n(52943),f=function(e){function t(t){var n;return(n=e.call(this)||this).config=t||{},n.queries=[],n.queriesMap={},n}(0,o.Z)(t,e);var n=t.prototype;return n.build=function(e,t,n){var r,o=t.queryKey,a=null!=(r=t.queryHash)?r:(0,i.Rm)(o,t),s=this.get(a);return s||(s=new l({cache:this,queryKey:o,queryHash:a,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(o),meta:t.meta}),this.add(s)),s},n.add=function(e){this.queriesMap[e.queryHash]||(this.queriesMap[e.queryHash]=e,this.queries.push(e),this.notify({type:"queryAdded",query:e}))},n.remove=function(e){var t=this.queriesMap[e.queryHash];t&&(e.destroy(),this.queries=this.queries.filter(function(t){return t!==e}),t===e&&delete this.queriesMap[e.queryHash],this.notify({type:"queryRemoved",query:e}))},n.clear=function(){var e=this;a.V.batch(function(){e.queries.forEach(function(t){e.remove(t)})})},n.get=function(e){return this.queriesMap[e]},n.getAll=function(){return this.queries},n.find=function(e,t){var n=(0,i.I6)(e,t)[0];return void 0===n.exact&&(n.exact=!0),this.queries.find(function(e){return(0,i._x)(n,e)})},n.findAll=function(e,t){var n=(0,i.I6)(e,t)[0];return Object.keys(n).length>0?this.queries.filter(function(e){return(0,i._x)(n,e)}):this.queries},n.notify=function(e){var t=this;a.V.batch(function(){t.listeners.forEach(function(t){t(e)})})},n.onFocus=function(){var e=this;a.V.batch(function(){e.queries.forEach(function(e){e.onFocus()})})},n.onOnline=function(){var e=this;a.V.batch(function(){e.queries.forEach(function(e){e.onOnline()})})},t}(c.l),d=n(81262),p=function(e){function t(t){var n;return(n=e.call(this)||this).config=t||{},n.mutations=[],n.mutationId=0,n}(0,o.Z)(t,e);var n=t.prototype;return n.build=function(e,t,n){var r=new d.m({mutationCache:this,mutationId:++this.mutationId,options:e.defaultMutationOptions(t),state:n,defaultOptions:t.mutationKey?e.getMutationDefaults(t.mutationKey):void 0,meta:t.meta});return this.add(r),r},n.add=function(e){this.mutations.push(e),this.notify(e)},n.remove=function(e){this.mutations=this.mutations.filter(function(t){return t!==e}),e.cancel(),this.notify(e)},n.clear=function(){var e=this;a.V.batch(function(){e.mutations.forEach(function(t){e.remove(t)})})},n.getAll=function(){return this.mutations},n.find=function(e){return void 0===e.exact&&(e.exact=!0),this.mutations.find(function(t){return(0,i.X7)(e,t)})},n.findAll=function(e){return this.mutations.filter(function(t){return(0,i.X7)(e,t)})},n.notify=function(e){var t=this;a.V.batch(function(){t.listeners.forEach(function(t){t(e)})})},n.onFocus=function(){this.resumePausedMutations()},n.onOnline=function(){this.resumePausedMutations()},n.resumePausedMutations=function(){var e=this.mutations.filter(function(e){return e.state.isPau
34sed});return a.V.batch(function(){return e.reduce(function(e,t){return e.then(function(){return t.continue().catch(i.ZT)})},Promise.resolve())})},t}(c.l),h=n(59852),g=n(40068),m=n(36997),v=function(){function e(e){void 0===e&&(e={}),this.queryCache=e.queryCache||new f,this.mutationCache=e.mutationCache||new p,this.defaultOptions=e.defaultOptions||{},this.queryDefaults=[],this.mutationDefaults=[]}var t=e.prototype;return t.mount=function(){var e=this;this.unsubscribeFocus=h.j.subscribe(function(){h.j.isFocused()&&g.N.isOnline()&&(e.mutationCache.onFocus(),e.queryCache.onFocus())}),this.unsubscribeOnline=g.N.subscribe(function(){h.j.isFocused()&&g.N.isOnline()&&(e.mutationCache.onOnline(),e.queryCache.onOnline())})},t.unmount=function(){var e,t;null==(e=this.unsubscribeFocus)||e.call(this),null==(t=this.unsubscribeOnline)||t.call(this)},t.isFetching=function(e,t){var n=(0,i.I6)(e,t)[0];return n.fetching=!0,this.queryCache.findAll(n).length},t.isMutating=function(e){return this.mutationCache.findAll((0,r.Z)({},e,{fetching:!0})).length},t.getQueryData=function(e,t){var n;return null==(n=this.queryCache.find(e,t))?void 0:n.state.data},t.getQueriesData=function(e){return this.getQueryCache().findAll(e).map(function(e){return[e.queryKey,e.state.data]})},t.setQueryData=function(e,t,n){var r=(0,i._v)(e),o=this.defaultQueryOptions(r);return this.queryCache.build(this,o).setData(t,n)},t.setQueriesData=function(e,t,n){var r=this;return a.V.batch(function(){return r.getQueryCache().findAll(e).map(function(e){var i=e.queryKey;return[i,r.setQueryData(i,t,n)]})})},t.getQueryState=function(e,t){var n;return null==(n=this.queryCache.find(e,t))?void 0:n.state},t.removeQueries=function(e,t){var n=(0,i.I6)(e,t)[0],r=this.queryCache;a.V.batch(function(){r.findAll(n).forEach(function(e){r.remove(e)})})},t.resetQueries=function(e,t,n){var o=this,s=(0,i.I6)(e,t,n),u=s[0],l=s[1],c=this.queryCache,f=(0,r.Z)({},u,{active:!0});return a.V.batch(function(){return c.findAll(u).forEach(function(e){e.reset()}),o.refetchQueries(f,l)})},t.cancelQueries=function(e,t,n){var r=this,o=(0,i.I6)(e,t,n),s=o[0],u=o[1],l=void 0===u?{}:u;return void 0===l.revert&&(l.revert=!0),Promise.all(a.V.batch(function(){return r.queryCache.findAll(s).map(function(e){return e.cancel(l)})})).then(i.ZT).catch(i.ZT)},t.invalidateQueries=function(e,t,n){var o,s,u,l=this,c=(0,i.I6)(e,t,n),f=c[0],d=c[1],p=(0,r.Z)({},f,{active:null==(o=null!=(s=f.refetchActive)?s:f.active)||o,inactive:null!=(u=f.refetchInactive)&&u});return a.V.batch(function(){return l.queryCache.findAll(f).forEach(function(e){e.invalidate()}),l.refetchQueries(p,d)})},t.refetchQueries=function(e,t,n){var o=this,s=(0,i.I6)(e,t,n),u=s[0],l=s[1],c=Promise.all(a.V.batch(function(){return o.queryCache.findAll(u).map(function(e){return e.fetch(void 0,(0,r.Z)({},l,{meta:{refetchPage:null==u?void 0:u.refetchPage}}))})})).then(i.ZT);return(null==l?void 0:l.throwOnError)||(c=c.catch(i.ZT)),c},t.fetchQuery=function(e,t,n){var r=(0,i._v)(e,t,n),o=this.defaultQueryOptions(r);void 0===o.retry&&(o.retry=!1);var a=this.queryCache.build(this,o);return a.isStaleByTime(o.staleTime)?a.fetch(o):Promise.resolve(a.state.data)},t.prefetchQuery=function(e,t,n){return this.fetchQuery(e,t,n).then(i.ZT).catch(i.ZT)},t.fetchInfiniteQuery=function(e,t,n){var r=(0,i._v)(e,t,n);return r.behavior=(0,m.Gm)(),this.fetchQuery(r)},t.prefetchInfiniteQuery=function(e,t,n){return this.fetchInfiniteQuery(e,t,n).then(i.ZT).catch(i.ZT)},t.cancelMutations=function(){var e=this;return Promise.all(a.V.batch(function(){return e.mutationCache.getAll().map(function(e){return e.cancel()})})).then(i.ZT).catch(i.ZT)},t.resumePausedMutations=function(){return this.getMutationCache().resumePausedMutations()},t.executeMutation=function(e){return this.mutationCache.build(this,e).execute()},t.getQueryCache=function(){return this.queryCache},t.getMutationCache=function(){return this.mutationCache},t.getDefaultOptions=function(){return this.defaultOptions},t.setDefaultOptions=function(e){this.defaultOptions=e},t.setQueryDefaults=function(e,t){var n=this.queryDefaults.find(function(t){return(0,i.yF)(e)===(0,i.yF)(t.queryKey)});n?n.defaultOptions=t:this.queryDefaults.push({queryKey:e,defaultOptions:t})},t.getQueryDefaults=function(e){var t;return e?null==(t=this.queryDefaults.find(function(t){return(0,i.to)(e,t.queryKey)}))?void 0:t.defaultOptions:void 0},t.setMutationDefaults=function(e,t){var n=this.mutationDefaults.find(function(t){return(0,i.yF)(e)===(0,i.yF)(t.mutationKey)});n?n.defaultOptions=t:this.mutationDefaults.push({mutationKey:e,defaultOptions:t})},t.getMutationDefaults=function(e){var t;return e?null==(t=this.mutationDefaults.find(function(t){return(0,i.to)(e,t.mutationKey)}))?void 0:t.defaultOptions:void 0},t.defaultQueryOptions=function(e){if(null==e?void 0:e._defaulted)return e;var t=(0,r.Z)({},this.defaultOptions.queries,this.getQueryDefaults(null==e?void 0:e.queryKey),e,{_defaulted:!0});return!t.queryHash&&t.queryKey&&(t.queryHash=(0,i.Rm)(t.queryKey,t)),t},t.defaultQueryObserverOptions=function(e){return this.defaultQueryOptions(e)},t.defaultMutationOptions=function(e){return(null==e?void 0:e._defaulted)?e:(0,r.Z)({},this.defaultOptions.mutations,this.getMutationDefaults(null==e?void 0:e.mutationKey),e,{_defaulted:!0})},t.clear=function(){this.queryCache.clear(),this.mutationCache.clear()},e}()},21216:function(e,t,n){"use strict";n.d(t,{DV:function(){return l},LE:function(){return s},m4:function(){return c}});var r=n(59852),i=n(40068),o=n(52288);function a(e){return Math.min(1e3*Math.pow(2,e),3e4)}function s(e){return"function"==typeof(null==e?void 0:e.cancel)}var u=function(e){this.revert=null==e?void 0:e.revert,this.silent=null==e?void 0:e.silent};function l(e){return e instanceof u}var c=function(e){var t,n,l,c,f=this,d=!1;this.abort=e.abort,this.cancel=function(e){return null==t?void 0:t(e)},this.cancelRetry=function(){d=!0},this.continueRetry=function(){d=!1},this.continue=function(){return null==n?void 0:n()},this.failureCount=0,this.isPaused=!1,this.isResolved=!1,this.isTransportCancelable=!1,this.promise=new Promise(function(e,t){l=e,c=t});var p=function(t){f.isResolved||(f.isResolved=!0,null==e.onSuccess||e.onSuccess(t),null==n||n(),l(t))},h=function(t){f.isResolved||(f.isResolved=!0,null==e.onError||e.onError(t),null==n||n(),c(t))};!function l(){var c;if(!f.isResolved){try{c=e.fn()}catch(e){c=Promise.reject(e)}t=function(e){if(!f.isResolved&&(h(new u(e)),null==f.abort||f.abort(),s(c)))try{c.cancel()}catch(e){}},f.isTransportCancelable=s(c),Promise.resolve(c).then(p).catch(function(t){if(!f.isResolved){var s,u,c=null!=(s=e.retry)?s:3,p=null!=(u=e.retryDelay)?u:a,g="function"==typeof p?p(f.failureCount,t):p,m=!0===c||"number"==typeof c&&f.failureCount<c||"function"==typeof c&&c(f.failureCount,t);if(d||!m){h(t);return}f.failureCount++,null==e.onFail||e.onFail(f.failureCount,t),(0,o.Gh)(g).then(function(){if(!r.j.isFocused()||!i.N.isOnline())return new Promise(function(t){n=t,f.isPaused=!0,null==e.onPause||e.onPause()}).then(function(){n=void 0,f.isPaused=!1,null==e.onContinue||e.onContinue()})}).then(function(){d?h(t):l()})}})}}()}},52943:function(e,t,n){"use strict";n.d(t,{l:function(){return r}});var r=function(){function e(){this.listeners=[]}var t=e.prototype;return t.subscribe=function(e){var t=this,n=e||function(){};return this.listeners.push(n),this.onSubscribe(),function(){t.listeners=t.listeners.filter(function(e){return e!==n}),t.onUnsubscribe()}},t.hasListeners=function(){return this.listeners.length>0},t.onSubscribe=function(){},t.onUnsubscribe=function(){},e}()},86755:function(){},52288:function(e,t,n){"use strict";n.d(t,{A4:function(){return O},G9:function(){return w},Gh:function(){return E},I6:function(){return d},Kp:function(){return l},PN:function(){return s},Q$:function(){return function e(t,n){if(t===n)return t;var r=Array.isArray(t)&&Array.isArray(n);if(r||b(t)&&b(n)){for(var i=r?t.length:Object.keys(t).length,o=r?n:Object.keys(n),a=o.length,s=r?[]:{},u=0,l=0;l<a;l++){var c=r?l:o[l];s[c]=e(t[c],n[c]),s[c]===t[c]&&u++}return i===a&&u===i?t:s}return n}},Rm:function(){return g},SE:function(){return a},VS:function(){return y},X7:function(){return h},ZT:function(){return o},_v:function(){return c},_x:function(){return p},lV:function(){return f},mc:function(){return u},sk:function(){return i},to:function(){return v},yF:function(){return m}});var r=n(87462),i="undefined"==typeof window;function o(){}function a(e,t){return"function"==typeof e?e(t):e}function s(e){return"number"==typeof e&&e>=0&&e!==1/0}function u(e){return Array.isArray(e)?e:[e]}function l(e,t){return Math.max(e+(t||0)-Date.now(),0)}
34function c(e,t,n){return S(e)?"function"==typeof t?(0,r.Z)({},n,{queryKey:e,queryFn:t}):(0,r.Z)({},t,{queryKey:e}):e}function f(e,t,n){return S(e)?"function"==typeof t?(0,r.Z)({},n,{mutationKey:e,mutationFn:t}):(0,r.Z)({},t,{mutationKey:e}):"function"==typeof e?(0,r.Z)({},t,{mutationFn:e}):(0,r.Z)({},e)}function d(e,t,n){return S(e)?[(0,r.Z)({},t,{queryKey:e}),n]:[e||{},t]}function p(e,t){var n=e.active,r=e.exact,i=e.fetching,o=e.inactive,a=e.predicate,s=e.queryKey,u=e.stale;if(S(s)){if(r){if(t.queryHash!==g(s,t.options))return!1}else if(!v(t.queryKey,s))return!1}var l=!0===n&&!0===o||null==n&&null==o?"all":!1===n&&!1===o?"none":(null!=n?n:!o)?"active":"inactive";if("none"===l)return!1;if("all"!==l){var c=t.isActive();if("active"===l&&!c||"inactive"===l&&c)return!1}return("boolean"!=typeof u||t.isStale()===u)&&("boolean"!=typeof i||t.isFetching()===i)&&(!a||!!a(t))}function h(e,t){var n=e.exact,r=e.fetching,i=e.predicate,o=e.mutationKey;if(S(o)){if(!t.options.mutationKey)return!1;if(n){if(m(t.options.mutationKey)!==m(o))return!1}else if(!v(t.options.mutationKey,o))return!1}return("boolean"!=typeof r||"loading"===t.state.status===r)&&(!i||!!i(t))}function g(e,t){return((null==t?void 0:t.queryKeyHashFn)||m)(e)}function m(e){return JSON.stringify(u(e),function(e,t){return b(t)?Object.keys(t).sort().reduce(function(e,n){return e[n]=t[n],e},{}):t})}function v(e,t){return function e(t,n){return t===n||typeof t==typeof n&&!!t&&!!n&&"object"==typeof t&&"object"==typeof n&&!Object.keys(n).some(function(r){return!e(t[r],n[r])})}(u(e),u(t))}function y(e,t){if(e&&!t||t&&!e)return!1;for(var n in e)if(e[n]!==t[n])return!1;return!0}function b(e){if(!_(e))return!1;var t=e.constructor;if(void 0===t)return!0;var n=t.prototype;return!!(_(n)&&n.hasOwnProperty("isPrototypeOf"))}function _(e){return"[object Object]"===Object.prototype.toString.call(e)}function S(e){return"string"==typeof e||Array.isArray(e)}function E(e){return new Promise(function(t){setTimeout(t,e)})}function O(e){Promise.resolve().then(e).catch(function(e){return setTimeout(function(){throw e})})}function w(){if("function"==typeof AbortController)return new AbortController}},88767:function(e,t,n){"use strict";n.d(t,{QueryClient:function(){return r.QueryClient},QueryClientProvider:function(){return i.QueryClientProvider},useInfiniteQuery:function(){return i.useInfiniteQuery},useMutation:function(){return i.useMutation},useQuery:function(){return i.useQuery}});var r=n(46747);n.o(r,"QueryClientProvider")&&n.d(t,{QueryClientProvider:function(){return r.QueryClientProvider}}),n.o(r,"useInfiniteQuery")&&n.d(t,{useInfiniteQuery:function(){return r.useInfiniteQuery}}),n.o(r,"useMutation")&&n.d(t,{useMutation:function(){return r.useMutation}}),n.o(r,"useQuery")&&n.d(t,{useQuery:function(){return r.useQuery}});var i=n(3407)},3407:function(e,t,n){"use strict";n.d(t,{QueryClientProvider:function(){return p},useInfiniteQuery:function(){return D},useMutation:function(){return S},useQuery:function(){return j}});var r,i=n(101),o=n(73935).unstable_batchedUpdates;i.V.setBatchNotifyFunction(o);var a=n(41909),s=console;(0,a.E)(s);var u=n(67294),l=u.createContext(void 0),c=u.createContext(!1);function f(e){return e&&"undefined"!=typeof window?(window.ReactQueryClientContext||(window.ReactQueryClientContext=l),window.ReactQueryClientContext):l}var d=function(){var e=u.useContext(f(u.useContext(c)));if(!e)throw Error("No QueryClient set, use QueryClientProvider to set one");return e},p=function(e){var t=e.client,n=e.contextSharing,r=void 0!==n&&n,i=e.children;u.useEffect(function(){return t.mount(),function(){t.unmount()}},[t]);var o=f(r);return u.createElement(c.Provider,{value:r},u.createElement(o.Provider,{value:t},i))},h=n(87462),g=n(52288),m=n(94578),v=n(81262),y=n(52943),b=function(e){function t(t,n){var r;return(r=e.call(this)||this).client=t,r.setOptions(n),r.bindMethods(),r.updateResult(),r}(0,m.Z)(t,e);var n=t.prototype;return n.bindMethods=function(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)},n.setOptions=function(e){this.options=this.client.defaultMutationOptions(e)},n.onUnsubscribe=function(){if(!this.listeners.length){var e;null==(e=this.currentMutation)||e.removeObserver(this)}},n.onMutationUpdate=function(e){this.updateResult();var t={listeners:!0};"success"===e.type?t.onSuccess=!0:"error"===e.type&&(t.onError=!0),this.notify(t)},n.getCurrentResult=function(){return this.currentResult},n.reset=function(){this.currentMutation=void 0,this.updateResult(),this.notify({listeners:!0})},n.mutate=function(e,t){return this.mutateOptions=t,this.currentMutation&&this.currentMutation.removeObserver(this),this.currentMutation=this.client.getMutationCache().build(this.client,(0,h.Z)({},this.options,{variables:void 0!==e?e:this.options.variables})),this.currentMutation.addObserver(this),this.currentMutation.execute()},n.updateResult=function(){var e=this.currentMutation?this.currentMutation.state:(0,v.R)(),t=(0,h.Z)({},e,{isLoading:"loading"===e.status,isSuccess:"success"===e.status,isError:"error"===e.status,isIdle:"idle"===e.status,mutate:this.mutate,reset:this.reset});this.currentResult=t},n.notify=function(e){var t=this;i.V.batch(function(){t.mutateOptions&&(e.onSuccess?(null==t.mutateOptions.onSuccess||t.mutateOptions.onSuccess(t.currentResult.data,t.currentResult.variables,t.currentResult.context),null==t.mutateOptions.onSettled||t.mutateOptions.onSettled(t.currentResult.data,null,t.currentResult.variables,t.currentResult.context)):e.onError&&(null==t.mutateOptions.onError||t.mutateOptions.onError(t.currentResult.error,t.currentResult.variables,t.currentResult.context),null==t.mutateOptions.onSettled||t.mutateOptions.onSettled(void 0,t.currentResult.error,t.currentResult.variables,t.currentResult.context))),e.listeners&&t.listeners.forEac
34h(function(e){e(t.currentResult)})})},t}(y.l);function _(e,t,n){return"function"==typeof t?t.apply(void 0,n):"boolean"==typeof t?t:!!e}function S(e,t,n){var r=u.useRef(!1),o=u.useState(0)[1],a=(0,g.lV)(e,t,n),s=d(),l=u.useRef();l.current?l.current.setOptions(a):l.current=new b(s,a);var c=l.current.getCurrentResult();u.useEffect(function(){r.current=!0;var e=l.current.subscribe(i.V.batchCalls(function(){r.current&&o(function(e){return e+1})}));return function(){r.current=!1,e()}},[]);var f=u.useCallback(function(e,t){l.current.mutate(e,t).catch(g.ZT)},[]);if(c.error&&_(void 0,l.current.options.useErrorBoundary,[c.error]))throw c.error;return(0,h.Z)({},c,{mutate:f,mutateAsync:c.mutate})}var E=n(59852),O=n(21216),w=function(e){function t(t,n){var r;return(r=e.call(this)||this).client=t,r.options=n,r.trackedProps=[],r.selectError=null,r.bindMethods(),r.setOptions(n),r}(0,m.Z)(t,e);var n=t.prototype;return n.bindMethods=function(){this.remove=this.remove.bind(this),this.refetch=this.refetch.bind(this)},n.onSubscribe=function(){1===this.listeners.length&&(this.currentQuery.addObserver(this),x(this.currentQuery,this.options)&&this.executeFetch(),this.updateTimers())},n.onUnsubscribe=function(){this.listeners.length||this.destroy()},n.shouldFetchOnReconnect=function(){return T(this.currentQuery,this.options,this.options.refetchOnReconnect)},n.shouldFetchOnWindowFocus=function(){return T(this.currentQuery,this.options,this.options.refetchOnWindowFocus)},n.destroy=function(){this.listeners=[],this.clearTimers(),this.currentQuery.removeObserver(this)},n.setOptions=function(e,t){var n=this.options,r=this.currentQuery;if(this.options=this.client.defaultQueryObserverOptions(e),void 0!==this.options.enabled&&"boolean"!=typeof this.options.enabled)throw Error("Expected enabled to be a boolean");this.options.queryKey||(this.options.queryKey=n.queryKey),this.updateQuery();var i=this.hasListeners();i&&C(this.currentQuery,r,this.options,n)&&this.executeFetch(),this.updateResult(t),i&&(this.currentQuery!==r||this.options.enabled!==n.enabled||this.options.staleTime!==n.staleTime)&&this.updateStaleTimeout();var o=this.computeRefetchInterval();i&&(this.currentQuery!==r||this.options.enabled!==n.enabled||o!==this.currentRefetchInterval)&&this.updateRefetchInterval(o)},n.getOptimisticResult=function(e){var t=this.client.defaultQueryObserverOptions(e),n=this.client.getQueryCache().build(this.client,t);return this.createResult(n,t)},n.getCurrentResult=function(){return this.currentResult},n.trackResult=function(e,t){var n=this,r={},i=function(e){n.trackedProps.includes(e)||n.trackedProps.push(e)};return Object.keys(e).forEach(function(t){Object.defineProperty(r,t,{configurable:!1,enumerable:!0,get:function(){return i(t),e[t]}})}),(t.useErrorBoundary||t.suspense)&&i("error"),r},n.getNextResult=function(e){var t=this;return new Promise(function(n,r){var i=t.subscribe(function(t){t.isFetching||(i(),t.isError&&(null==e?void 0:e.throwOnError)?r(t.error):n(t))})})},n.getCurrentQuery=function(){return this.currentQuery},n.remove=function(){this.client.getQueryCache().remove(this.currentQuery)},n.refetch=function(e){return this.fetch((0,h.Z)({},e,{meta:{refetchPage:null==e?void 0:e.refetchPage}}))},n.fetchOptimistic=function(e){var t=this,n=this.client.defaultQueryObserverOptions(e),r=this.client.getQueryCache().build(this.client,n);return r.fetch().then(function(){return t.createResult(r,n)})},n.fetch=function(e){var t=this;return this.executeFetch(e).then(function(){return t.updateResult(),t.currentResult})},n.executeFetch=function(e){this.updateQuery();var t=this.currentQuery.fetch(this.options,e);return(null==e?void 0:e.throwOnError)||(t=t.catch(g.ZT)),t},n.updateStaleTimeout=function(){var e=this;if(this.clearStaleTimeout(),!g.sk&&!this.currentResult.isStale&&(0,g.PN)(this.options.staleTime)){var t=(0,g.Kp)(this.currentResult.dataUpdatedAt,this.options.staleTime);this.staleTimeoutId=setTimeout(function(){e.currentResult.isStale||e.updateResult()},t+1)}},n.computeRefetchInterval=function(){var e;return"function"==typeof this.options.refetchInterval?this.options.refetchInterval(this.currentResult.data,this.currentQuery):null!=(e=this.options.refetchInterval)&&e},n.updateRefetchInterval=function(e){var t=this;this.clearRefetchInterval(),this.currentRefetchInterval=e,!g.sk&&!1!==this.options.enabled&&(0,g.PN)(this.currentRefetchInterval)&&0!==this.currentRefetchInterval&&(this.refetchIntervalId=setInterval(function(){(t.options.refetchIntervalInBackgroun
34d||E.j.isFocused())&&t.executeFetch()},this.currentRefetchInterval))},n.updateTimers=function(){this.updateStaleTimeout(),this.updateRefetchInterval(this.computeRefetchInterval())},n.clearTimers=function(){this.clearStaleTimeout(),this.clearRefetchInterval()},n.clearStaleTimeout=function(){this.staleTimeoutId&&(clearTimeout(this.staleTimeoutId),this.staleTimeoutId=void 0)},n.clearRefetchInterval=function(){this.refetchIntervalId&&(clearInterval(this.refetchIntervalId),this.refetchIntervalId=void 0)},n.createResult=function(e,t){var n,r,i=this.currentQuery,o=this.options,s=this.currentResult,u=this.currentResultState,l=this.currentResultOptions,c=e!==i,f=c?e.state:this.currentQueryInitialState,d=c?this.currentResult:this.previousQueryResult,p=e.state,h=p.dataUpdatedAt,m=p.error,v=p.errorUpdatedAt,y=p.isFetching,b=p.status,_=!1,S=!1;if(t.optimisticResults){var E=this.hasListeners(),O=!E&&x(e,t),w=E&&C(e,i,t,o);(O||w)&&(y=!0,h||(b="loading"))}if(t.keepPreviousData&&!p.dataUpdateCount&&(null==d?void 0:d.isSuccess)&&"error"!==b)n=d.data,h=d.dataUpdatedAt,b=d.status,_=!0;else if(t.select&&void 0!==p.data){if(s&&p.data===(null==u?void 0:u.data)&&t.select===this.selectFn)n=this.selectResult;else try{this.selectFn=t.select,n=t.select(p.data),!1!==t.structuralSharing&&(n=(0,g.Q$)(null==s?void 0:s.data,n)),this.selectResult=n,this.selectError=null}catch(e){(0,a.j)().error(e),this.selectError=e}}else n=p.data;if(void 0!==t.placeholderData&&void 0===n&&("loading"===b||"idle"===b)){if((null==s?void 0:s.isPlaceholderData)&&t.placeholderData===(null==l?void 0:l.placeholderData))r=s.data;else if(r="function"==typeof t.placeholderData?t.placeholderData():t.placeholderData,t.select&&void 0!==r)try{r=t.select(r),!1!==t.structuralSharing&&(r=(0,g.Q$)(null==s?void 0:s.data,r)),this.selectError=null}catch(e){(0,a.j)().error(e),this.selectError=e}void 0!==r&&(b="success",n=r,S=!0)}return this.selectError&&(m=this.selectError,n=this.selectResult,v=Date.now(),b="error"),{status:b,isLoading:"loading"===b,isSuccess:"success"===b,isError:"error"===b,isIdle:"idle"===b,data:n,dataUpdatedAt:h,error:m,errorUpdatedAt:v,failureCount:p.fetchFailureCount,errorUpdateCount:p.errorUpdateCount,isFetched:p.dataUpdateCount>0||p.errorUpdateCount>0,isFetchedAfterMount:p.dataUpdateCount>f.dataUpdateCount||p.errorUpdateCount>f.errorUpdateCount,isFetching:y,isRefetching:y&&"loading"!==b,isLoadingError:"error"===b&&0===p.dataUpdatedAt,isPlaceholderData:S,isPreviousData:_,isRefetchError:"error"===b&&0!==p.dataUpdatedAt,isStale:P(e,t),refetch:this.refetch,remove:this.remove}},n.shouldNotifyListeners=function(e,t){if(!t)return!0;var n=this.options,r=n.notifyOnChangeProps,i=n.notifyOnChangePropsExclusions;if(!r&&!i||"tracked"===r&&!this.trackedProps.length)return!0;var o="tracked"===r?this.trackedProps:r;return Object.keys(e).some(function(n){var r=e[n]!==t[n],a=null==o?void 0:o.some(function(e){return e===n}),s=null==i?void 0:i.some(function(e){return e===n});return r&&!s&&(!o||a)})},n.updateResult=function(e){var t=this.currentResult;if(this.currentResult=this.createResult(this.currentQuery,this.options),this.currentResultState=this.currentQuery.state,this.currentResultOptions=this.options,!(0,g.VS)(this.currentResult,t)){var n={cache:!0};(null==e?void 0:e.listeners)!==!1&&this.shouldNotifyListeners(this.currentResult,t)&&(n.listeners=!0),this.notify((0,h.Z)({},n,e))}},n.updateQuery=function(){var e=this.client.getQueryCache().build(this.client,this.options);if(e!==this.currentQuery){var t=this.currentQuery;this.currentQuery=e,this.currentQueryInitialState=e.state,this.previousQueryResult=this.currentResult,this.hasListeners()&&(null==t||t.removeObserver(this),e.addObserver(this))}},n.onQueryUpdate=function(e){var t={};"success"===e.type?t.onSuccess=!0:"error"!==e.type||(0,O.DV)(e.error)||(t.onError=!0),this.updateResult(t),this.hasListeners()&&this.updateTimers()},n.notify=function(e){var t=this;i.V.batch(function(){e.onSuccess?(null==t.options.onSuccess||t.options.onSuccess(t.currentResult.data),null==t.options.onSettled||t.options.onSettled(t.currentResult.data,null)):e.onError&&(null==t.options.onError||t.options.onError(t.currentResult.error),null==t.options.onSettled||t.options.onSettled(void 0,t.currentResult.error)),e.listeners&&t.listeners.forEac
34h(function(e){e(t.currentResult)}),e.cache&&t.client.getQueryCache().notify({query:t.currentQuery,type:"observerResultsUpdated"})})},t}(y.l);function x(e,t){return!1!==t.enabled&&!e.state.dataUpdatedAt&&!("error"===e.state.status&&!1===t.retryOnMount)||e.state.dataUpdatedAt>0&&T(e,t,t.refetchOnMount)}function T(e,t,n){if(!1!==t.enabled){var r="function"==typeof n?n(e):n;return"always"===r||!1!==r&&P(e,t)}return!1}function C(e,t,n,r){return!1!==n.enabled&&(e!==t||!1===r.enabled)&&(!n.suspense||"error"!==e.state.status)&&P(e,n)}function P(e,t){return e.isStaleByTime(t.staleTime)}var A=u.createContext((r=!1,{clearReset:function(){r=!1},reset:function(){r=!0},isReset:function(){return r}}));function k(e,t){var n=u.useRef(!1),r=u.useState(0)[1],o=d(),a=u.useContext(A),s=o.defaultQueryObserverOptions(e);s.optimisticResults=!0,s.onError&&(s.onError=i.V.batchCalls(s.onError)),s.onSuccess&&(s.onSuccess=i.V.batchCalls(s.onSuccess)),s.onSettled&&(s.onSettled=i.V.batchCalls(s.onSettled)),s.suspense&&("number"!=typeof s.staleTime&&(s.staleTime=1e3),0===s.cacheTime&&(s.cacheTime=1)),(s.suspense||s.useErrorBoundary)&&!a.isReset()&&(s.retryOnMount=!1);var l=u.useState(function(){return new t(o,s)})[0],c=l.getOptimisticResult(s);if(u.useEffect(function(){n.current=!0,a.clearReset();var e=l.subscribe(i.V.batchCalls(function(){n.current&&r(function(e){return e+1})}));return l.updateResult(),function(){n.current=!1,e()}},[a,l]),u.useEffect(function(){l.setOptions(s,{listeners:!1})},[s,l]),s.suspense&&c.isLoading)throw l.fetchOptimistic(s).then(function(e){var t=e.data;null==s.onSuccess||s.onSuccess(t),null==s.onSettled||s.onSettled(t,null)}).catch(function(e){a.clearReset(),null==s.onError||s.onError(e),null==s.onSettled||s.onSettled(void 0,e)});if(c.isError&&!a.isReset()&&!c.isFetching&&_(s.suspense,s.useErrorBoundary,[c.error,l.getCurrentQuery()]))throw c.error;return"tracked"===s.notifyOnChangeProps&&(c=l.trackResult(c,s)),c}function j(e,t,n){return k((0,g._v)(e,t,n),w)}var I=n(36997),R=function(e){function t(t,n){return e.call(this,t,n)||this}(0,m.Z)(t,e);var n=t.prototype;return n.bindMethods=function(){e.prototype.bindMethods.call(this),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)},n.setOptions=function(t,n){e.prototype.setOptions.call(this,(0,h.Z)({},t,{behavior:(0,I.Gm)()}),n)},n.getOptimisticResult=function(t){return t.behavior=(0,I.Gm)(),e.prototype.getOptimisticResult.call(this,t)},n.fetchNextPage=function(e){var t;return this.fetch({cancelRefetch:null==(t=null==e?void 0:e.cancelRefetch)||t,throwOnError:null==e?void 0:e.throwOnError,meta:{fetchMore:{direction:"forward",pageParam:null==e?void 0:e.pageParam}}})},n.fetchPreviousPage=function(e){var t;return this.fetch({cancelRefetch:null==(t=null==e?void 0:e.cancelRefetch)||t,throwOnError:null==e?void 0:e.throwOnError,meta:{fetchMore:{direction:"backward",pageParam:null==e?void 0:e.pageParam}}})},n.createResult=function(t,n){var r,i,o,a,s,u,l=t.state,c=e.prototype.createResult.call(this,t,n);return(0,h.Z)({},c,{fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:(0,I.Qy)(n,null==(r=l.data)?void 0:r.pages),hasPreviousPage:(0,I.ZF)(n,null==(i=l.data)?void 0:i.pages),isFetchingNextPage:l.isFetching&&(null==(o=l.fetchMeta)?void 0:null==(a=o.fetchMore)?void 0:a.direction)==="forward",isFetchingPreviousPage:l.isFetching&&(null==(s=l.fetchMeta)?void 0:null==(u=s.fetchMore)?void 0:u.direction)==="backward"})},t}(w);function D(e,t,n){return k((0,g._v)(e,t,n),R)}},40468:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=function e(t,n,r){!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,e);var i=n.y0,o=n.y1,a=n.x1,s=n.x0,u="%"===o.unit&&"%"===i.unit,l=i.value,c=o.value;if(u){var f=t.height/100;l=i.value*f,c=o.value*f}var d="%"===a.unit&&"%"===s.unit,p=s.value,h=a.value;if(d){var g=t.width/100;p=s.value*g,h=a.value*g}var m=Math.abs(l)+Math.abs(c);this.totalDistY=r.height+t.height+m;var v=r.height+t.height+(c>l?-1*m:m),y=Math.abs(p)+Math.abs(h);this.totalDistX=r.width+t.width+y;var b=r.width+t.width+(h>p?-1*y:y),_=t.originTotalDistY/v,S=t.originTotalDistX/b;this.top=t.top,this.bottom=t.bottom,l<0&&(this.top=this.top+l*_),c>0&&(this.bottom=this.bottom+c*_),this.left=t.left,this.right=t.right,p<0&&(this.left=this.left+p*S),h>0&&(this.right=this.right+h*S)}},45299:function(e,t,n){"use strict";
34Object.defineProperty(t,"__esModule",{value:!0}),t.Element=void 0;var r=n(65462),i=n(9476),o=n(66345),a=u(n(40468)),s=u(n(39096));function u(e){return e&&e.__esModule?e:{default:e}}function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l(Object(n),!0).forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function f(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var d=function(){var e,t;function n(e){!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,n),this.elInner=e.elInner,this.elOuter=e.elOuter,this.props=e.props,this.scrollAxis=e.scrollAxis,this.id=(0,r.createId)(),this.offsets=(0,i.getOffsets)(this.props),this.isInView=null,this.percent=0,this.updatePosition=e.scrollAxis===o.VERTICAL?this._updatePositionVertical:this._updatePositionHorizontal}return e=[{key:"updateProps",value:function(e){return this.props=c(c({},this.props),e),this.offsets=(0,i.getOffsets)(e),this}},{key:"setCachedAttributes",value:function(e,t){return this.rect=new s.default(this.elOuter,e,t),this.bounds=new a.default(this.rect,this.offsets,e),this}},{key:"_updatePositionHorizontal",value:function(e,t){return this.isInView=(0,i.isElementInView)(this.bounds.left,this.bounds.right,e.width,t.x),this.isInView&&(this.percent=(0,i.percentMoved)(this.rect.left,this.rect.originTotalDistX,e.width,t.x),(0,i.setParallaxStyles)(this.elInner,this.offsets,this.percent)),this}},{key:"_updatePositionVertical",value:function(e,t){return this.isInView=(0,i.isElementInView)(this.bounds.top,this.bounds.bottom,e.height,t.y),this.isInView&&(this.percent=(0,i.percentMoved)(this.rect.top,this.rect.originTotalDistY,e.height,t.y),(0,i.setParallaxStyles)(this.elInner,this.offsets,this.percent)),this}}],f(n.prototype,e),t&&f(n,t),n}();t.Element=d},5875:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(65462),i=n(9476),o=n(55215),a=n(24787),s=n(45299),u=n(66345);function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function f(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function d(e){var t=e.scrollAxis,n=void 0===t?u.VERTICAL:t,c=e.scrollContainer,d=[],p=!!c,h=c||window,g=p?h.scrollLeft:window.pageXOffset,m=p?h.scrollTop:window.pageYOffset,v=new a.Scroll(g,m),y=new o.View({width:0,height:0,scrollContainer:c}),b=!1,_=(0,r.testForPassiveScroll)();function S(e){e.addEventListener("scroll",O,!!_&&{passive:!0}),window.addEventListener("resize",w,!1)}function E(e){e.removeEventListener("scroll",O,!!_&&{passive:!0}),window.removeEventListener("resize",w,!1)}function O(){var e=p?h.scrollLeft:window.pageXOffset,t=p?h.scrollTop:window.pageYOffset;v.setScroll(e,t),!b&&d.length>0&&(b=!0,window.requestAnimationFrame(x))}function w(){C(),x({updateCache:!0})}function x(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.updateCache;
34d&&d.forEach(function(e){T(e),t&&e.setCachedAttributes(y,v)}),b=!1}function T(e){e.props.disabled||e.updatePosition(y,v)}function C(){if(p){var e=h.offsetWidth,t=h.offsetHeight;return y.setSize(e,t)}var n=document.documentElement,r=window.innerWidth||n.clientWidth,i=window.innerHeight||n.clientHeight;return y.setSize(r,i)}S(h),C(),this.getElements=function(){return d},this.createElement=function(e){var t,r=new s.Element(f(f({},e),{},{scrollAxis:n}));return r.setCachedAttributes(y,v),d=d?[].concat(function(e){if(Array.isArray(e))return l(e)}(t=d)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e,t){if(e){if("string"==typeof e)return l(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return l(e,t)}}(t)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),[r]):[r],T(r),r},this.removeElementById=function(e){d&&(d=d.filter(function(t){return t.id!==e}))},this.updateElementPropsById=function(e,t){d&&(d=d.map(function(n){return n.id===e?n.updateProps(t):n})),this.update()},this.resetElementStyles=function(e){(0,i.resetStyles)(e)},this.update=function(){var e=p?h.scrollLeft:window.pageXOffset,t=p?h.scrollTop:window.pageYOffset;v.setScroll(e,t),C(),x({updateCache:!0})},this.updateScrollContainer=function(e){E(h),h=e,p=!!e,y=new o.View({width:0,height:0,scrollContainer:e}),C(),S(h),x({updateCache:!0})},this.destroy=function(){E(h),d&&d.forEach(function(e){return(0,i.resetStyles)(e)}),d=void 0}}d.init=function(e){if(!("undefined"!=typeof window))throw Error("Looks like ParallaxController.init() was called on the server. This method must be called on the client.");return new d(e)},t.default=d},39096:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=function e(t,n,r){!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,e);var i=t.getBoundingClientRect();if(n.scrollContainer){var o=n.scrollContainer.getBoundingClientRect();i={top:i.top-o.top,right:i.right-o.left,bottom:i.bottom-o.top,left:i.left-o.left}}this.height=t.offsetHeight,this.width=t.offsetWidth,this.left=i.left+r.x,this.right=i.right+r.x,this.top=i.top+r.y,this.bottom=i.bottom+r.y,this.originTotalDistY=n.height+this.height,this.originTotalDistX=n.width+this.width}},24787:function(e,t){"use strict";function n(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}Object.defineProperty(t,"__esModule",{value:!0}),t.Scroll=void 0;var r=function(){var e;function t(){!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,t),this.setScroll.apply(this,arguments)}return n(t.prototype,[{key:"setScroll",value:function(e,t){return this.x=e,this.y=t,this}}]),e&&n(t,e),t}();t.Scroll=r},55215:function(e,t){"use strict";function n(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}Object.defineProperty(t,"__esModule",{value:!0}),t.View=void 0;var r=function(){var e;function t(e){var n=e.width,r=e.height,i=e.scrollContainer;!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,t),this.scrollContainer=i,this.setSize(n,r)}return n(t.prototype,[{key:"setSize",value:function(e,t){return this.width=e,this.height=t,this}}]),e&&n(t,e),t}();t.View=r},10172:function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;
34var i=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var t=l();if(t&&t.has(e))return t.get(e);var n={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(n,o,a):n[o]=e[o]}return n.default=e,t&&t.set(e,n),n}(n(67294)),o=u(n(45697)),a=u(n(5875)),s=u(n(13337));function u(e){return e&&e.__esModule?e:{default:e}}function l(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return l=function(){return e},e}function c(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function f(e,t){return(f=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function d(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function p(e){return(p=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function h(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var g=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&f(e,t)}(s,e);var t,n,o=(t=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,n,i=p(s);if(t){var o=p(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return(e=n)&&("object"===r(e)||"function"==typeof e)?e:d(this)});function s(){var e;!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,s);for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];return h(d(e=o.call.apply(o,[this].concat(n))),"mapRefOuter",function(t){e._outer=t}),h(d(e),"mapRefInner",function(t){e._inner=t}),e}return c(s.prototype,[{key:"componentDidMount",value:function(){var e=this.controller instanceof a.default;if(!this.controller&&!e)throw Error("Must wrap your application's <Parallax />
34 components in a <ParallaxProvider />.");this.element=this.controller.createElement(this._getElementOptions())}},{key:"componentDidUpdate",value:function(e){(this.props.disabled!==e.disabled||this.props.x[0]!==e.x[0]||this.props.x[1]!==e.x[1]||this.props.y[0]!==e.y[0]||this.props.y[1]!==e.y[1])&&this.controller.updateElementPropsById(this.element.id,this._getElementOptions().props),this.props.disabled!==e.disabled&&this.props.disabled&&this.controller.resetElementStyles(this.element)}},{key:"componentWillUnmount",value:function(){this.controller.removeElementById(this.element.id)}},{key:"_getElementOptions",value:function(){return{elInner:this._inner,elOuter:this._outer,props:{disabled:this.props.disabled,x0:this.props.x[0],x1:this.props.x[1],y0:this.props.y[0],y1:this.props.y[1]}}}},{key:"controller",get:function(){return this.props.parallaxController}},{key:"render",value:function(){var e=this.props,t=e.children,n=e.className,r=e.tagOuter,o=e.tagInner,a=e.styleOuter,s=e.styleInner;return i.default.createElement(r,{className:"parallax-outer"+(n?" ".concat(n):""),ref:this.mapRefOuter,style:a},i.default.createElement(o,{className:"parallax-inner",ref:this.mapRefInner,style:s},t))}}]),n&&c(s,n),s}(i.Component);h(g,"defaultProps",{disabled:!1,tagInner:"div",tagOuter:"div",x:[0,0],y:[0,0]}),h(g,"propTypes",{children:o.default.node,className:o.default.string,disabled:o.default.bool.isRequired,parallaxController:o.default.object,styleInner:o.default.object,styleOuter:o.default.object,tagInner:o.default.string.isRequired,tagOuter:o.default.string.isRequired,x:o.default.arrayOf(o.default.oneOfType([o.default.string,o.default.number])),y:o.default.arrayOf(o.default.oneOfType([o.default.string,o.default.number]))});var m=(0,s.default)(g);t.default=m},49851:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=a(n(67294)),i=a(n(45697)),o=a(n(10172));function a(e){return e&&e.__esModule?e:{default:e}}function s(){return(s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var c={position:"relative",overflow:"hidden",width:"100%",height:"50vh"},f={position:"absolute",top:0,right:0,bottom:0,left:0},d=function(e){var t=e.children,n=e.className,i=e.layers,a=e.style,u=e.disabled;return r.default.createElement("div",{style:l(l({},c),a),className:"parallax-banner"+(n?" ".concat(n):"")},i.map(function(e,t){var n=e.amount,i=e.children,a=e.expanded,c=e.image,d=e.props,p=void 0===d?{}:d,h=p.style||{},g=p.className||"";delete p.style,delete p.className;var m="parallax-banner-layer-".concat(t).concat(g?" ".concat(g):"");return r.default.createElement(o.default,{key:"layer-".concat(t),y:[-100*n+"%",100*n+"%"],styleInner:f,styleOuter:f,disabled:u},r.default.createElement("div",s({className:m,style:l(l(l(l({},c?{backgroundImage:"url(".concat(c,")"),backgroundPosition:"center",backgroundSize:"cover"}:{}),f),void 0===a||a?{top:-100*Math.abs(n)+"%",bottom:-100*Math.abs(n)+"%"}:{}),h)},p),i))}),t)};d.defaultProps={disabled:!1},d.propTypes={children:i.default.node,className:i.default.string,disabled:i.default.bool.isRequired,layers:i.default.arrayOf(i.default.shape({amount:i.default.number.isRequired,children:i.default.oneOfType([i.default.node,i.default.func]),expanded:i.default.bool,image:i.default.string,props:i.default.object})),style:i.default.object},t.default=d},54997:function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}
34Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var t=f();if(t&&t.has(e))return t.get(e);var n={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(n,o,a):n[o]=e[o]}return n.default=e,t&&t.set(e,n),n}(n(67294)),o=c(n(45697)),a=c(n(59074)),s=c(n(5875)),u=n(66345),l=c(n(80958));function c(e){return e&&e.__esModule?e:{default:e}}function f(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return f=function(){return e},e}function d(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function p(e,t){return(p=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function h(e){return(h=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function g(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var m=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&p(e,t)}(u,e);var t,n,o=(t=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,n,i=h(u);if(t){var o=h(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return(e=n)&&("object"===r(e)||"function"==typeof e)?e:function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(this)});function u(e){var t,n;return!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,u),(t=o.call(this,e)).controller=(n={scrollAxis:e.scrollAxis,scrollContainer:e.scrollContainer},"undefined"!=typeof window?s.default.init(n):null),t}return d(u.prototype,[{key:"componentDidUpdate",value:function(e){e.scrollContainer!==this.props.scrollContainer&&this.controller.updateScrollContainer(this.props.scrollContainer)}},{key:"componentWillUnmount",value:function(){this.controller=this.controller.destroy()}},{key:"render",value:function(){var e=this.props.children;return i.default.createElement(a.default.Provider,{value:this.controller},e)}}]),n&&d(u,n),u}(i.Component);t.default=m,g(m,"defaultProps",{scrollAxis:u.VERTICAL}),g(m,"propTypes",{children:o.default.node.isRequired,scrollAxis:o.default.oneOf([u.VERTICAL,u.HORIZONTAL]),scrollContainer:l.default})},13939:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,i=n(67294),o=(r=n(59074))&&r.__esModule?r:{default:r};t.default=function(){var e=(0,i.useContext)(o.default);if("undefined"==typeof window)return null;if(!e)throw Error("Could not find `react-scroll-parallax` context value. Please ensure the component is wrapped in a <ParallaxProvi
34der>");return{parallaxController:e}}},13337:function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var t=u();if(t&&t.has(e))return t.get(e);var n={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(n,o,a):n[o]=e[o]}return n.default=e,t&&t.set(e,n),n}(n(67294)),o=s(n(45697)),a=s(n(59074));function s(e){return e&&e.__esModule?e:{default:e}}function u(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return u=function(){return e},e}function l(){return(l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function c(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function f(e,t){return(f=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function d(e){return(d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}t.default=function(e){var t,n,s=function(t){!function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&f(e,t)}(p,t);var n,o,s,u=(n=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,t,i=d(p);if(n){var o=d(this).constructor;t=Reflect.construct(i,arguments,o)}else t=i.apply(this,arguments);return(e=t)&&("object"===r(e)||"function"==typeof e)?e:function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(this)});function p(){return!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,p),u.apply(this,arguments)}return o=[{key:"render",value:function(){var t=this;return i.default.createElement(a.default.Consumer,null,function(n){return i.default.createElement(e,l({parallaxController:n},t.props))})}}],c(p.prototype,o),s&&c(p,s),p}(i.Component);return t="propTypes",n={parallaxController:o.default.object},t in s?Object.defineProperty(s,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):s[t]=n,s}},66345:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.HORIZONTAL=t.VERTICAL=void 0,t.VERTICAL="vertical",t.HORIZONTAL="horizontal"},59074:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,i=((r=n(67294))&&r.__esModule?r:{default:r}).default.createContext(null);t.default=i},41434:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.setParallaxStyles=function(e,t,n){var i=(0,r.getParallaxOffsets)(t,n),o=i.x,a=o.value,s=o.unit,u=i.y,l=u.value,c=u.unit;e.style.transform="translate3d(".concat(a).concat(s,", ").concat(l).concat(c,", 0)")},t.resetStyles=function(e){e.elInner.style.transform=""};var r=n(29656)},66966:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e.y0,n=e.y1,i=e.x1,o=e.x0,a=(0,r.parseValueAndUnit)(t),s=(0,r.parseValueAndUnit)(n),u=(0,r.parseValueAndUnit)(o),l=(0,r.parseValueAndUnit)(i);if(u.unit!==l.unit||a.unit!==s.unit)throw Error("Must provide matching units for the min and max offset values of each axis.");return{xUnit:u.unit||"%",yUnit:a.unit||"%",y0:a,y1:s,x0:u,x1:l}};var r=n(65462)},29656:function(e,t,n){"use strict";
34Object.defineProperty(t,"__esModule",{value:!0}),t.getParallaxOffsets=function(e,t){var n=e.y0,i=e.y1,o=e.x0,a=e.x1,s=i.unit,u=a.unit;return{x:{value:(0,r.scaleBetween)(t,o.value,a.value,0,100),unit:u},y:{value:(0,r.scaleBetween)(t,n.value,i.value,0,100),unit:s}}};var r=n(65462)},9476:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"ParallaxContext",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(t,"percentMoved",{enumerable:!0,get:function(){return i.percentMoved}}),Object.defineProperty(t,"setParallaxStyles",{enumerable:!0,get:function(){return o.setParallaxStyles}}),Object.defineProperty(t,"resetStyles",{enumerable:!0,get:function(){return o.resetStyles}}),Object.defineProperty(t,"getParallaxOffsets",{enumerable:!0,get:function(){return a.getParallaxOffsets}}),Object.defineProperty(t,"isElementInView",{enumerable:!0,get:function(){return s.isElementInView}}),Object.defineProperty(t,"getOffsets",{enumerable:!0,get:function(){return u.default}});var r=l(n(59074)),i=n(59065),o=n(41434),a=n(29656),s=n(72866),u=l(n(66966));function l(e){return e&&e.__esModule?e:{default:e}}},72866:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isElementInView=function(e,t,n,r){var i=e-r,o=t-r;return i>=0&&i<=n||o>=0&&o<=n||i<=0&&o>=n}},59065:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.percentMoved=function(e,t,n,r){return(-1*(e-r)+n)/t*100}},77776:function(e,t,n){"use strict";Object.defineProperty(t,"Xu",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(t,"UG",{enumerable:!0,get:function(){return i.default}}),o(n(13939)),o(n(13337)),o(n(10172));var r=o(n(54997)),i=o(n(49851));function o(e){return e&&e.__esModule?e:{default:e}}o(n(59074))},95862:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createId=function(){return++n};var n=0},65462:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"parseValueAndUnit",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(t,"scaleBetween",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(t,"testForPassiveScroll",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(t,"createId",{enumerable:!0,get:function(){return a.createId}});var r=s(n(73309)),i=s(n(45059)),o=s(n(39692)),a=n(95862);function s(e){return e&&e.__esModule?e:{default:e}}},73309:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{value:0,unit:"px"};if(!("number"==typeof e||"string"==typeof e))throw Error("Invalid value provided. Must provide a value as a string or number");if(e=String(e),t.value=parseFloat(e,10),t.unit=e.match(/[\d.\-\+]*\s*(.*)/)[1]||"%",!["px","%"].find(function(e){return e===t.unit}))throw Error("Invalid unit provided. Must provide a unit of px in or %");return t}},45059:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n,r,i){return(n-t)*(e-r)/(i-r)+t}},39692:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var e=!1;try{var t=Object.defineProperty({},"passive",{get:function(){e=!0}});window.addEventListener("test",null,t),window.removeEventListener("test",null,t)}catch(e){}return e}},80958:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"ANONYMOUS";return"undefined"==typeof window?null:!e[t]||e[t]instanceof window.Element?null:Error('Prop name "'.concat(t,'" in <').concat(n,"> must be an HTML DOM element."))}},39920:function(e,t,n){"use strict";n.d(t,{animated:function(){return r.animated}});var r=n(81472);n.o(r,"useSpring")&&n.d(t,{useSpring:function(){return r.useSpring}})},72132:function(e,t,n){"use strict";n.d(t,{Am:function(){return B},Ix:function(){return R},Mi:function(){return I}});var r,i,o,a=n(67294),s=n(86010),u=n(73935);function l(){return(l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function c(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}function f(e){return"number"==typeof e&&!isNaN(e)}function d(e){return"boolean"==typeof e}function p(e){return"string"==typeof e}function h(e){return"function"==typeof e}function g(e){return p(e)||h(e)?e:null}var m=!!("undefined"!=typeof window&&window.document&&window.document.createElement);function v(e){return(0,a.isValidElement)(e)||p(e)||h(e)||f(e)}var y={TOP_LEFT:"top-left",TOP_RIGHT:"top-right",TOP_CENTER:"top-center",BOTTOM_LEFT:"bottom-left",BOTTOM_RIGHT:"bottom-right",BOTTOM_CENTER:"bottom-center"},b={INFO:"info",SUCCESS:"success",WARNING:"warning",ERROR:"error",DEFAULT:"default"};function _(e){var t=e.enter,n=e.exit,r=e.appendPosition,i=void 0!==r&&r,o=e.collapse,s=void 0===o||o,u=e.collapseDuration,l=void 0===u?300:u;return function(e){var r=e.children,o=e.position,u=e.preventExitTransition,c=e.done,f=e.nodeRef,d=e.isIn,p=i?t+"--"+o:t,h=i?n+"--"+o:n,g=(0,a.useRef)(),m=(0,a.useRef)(0);function v(e){if(e.target===f.current){var t=f.current;
34t.dispatchEvent(new Event("d")),t.removeEventListener("animationend",v),t.removeEventListener("animationcancel",v),0===m.current&&(t.className=g.current)}}function y(){var e,t,n,r=f.current;r.removeEventListener("animationend",y),s?(void 0===(e=l)&&(e=300),t=r.scrollHeight,n=r.style,requestAnimationFrame(function(){n.minHeight="initial",n.height=t+"px",n.transition="all "+e+"ms",requestAnimationFrame(function(){n.height="0",n.padding="0",n.margin="0",setTimeout(c,e)})})):c()}return(0,a.useLayoutEffect)(function(){var e;e=f.current,g.current=e.className,e.className+=" "+p,e.addEventListener("animationend",v),e.addEventListener("animationcancel",v)},[]),(0,a.useEffect)(function(){var e;d||(u?y():(m.current=1,e=f.current,e.className+=" "+h,e.addEventListener("animationend",y)))},[d]),a.createElement(a.Fragment,null,r)}}var S={list:new Map,emitQueue:new Map,on:function(e,t){return this.list.has(e)||this.list.set(e,[]),this.list.get(e).push(t),this},off:function(e,t){if(t){var n=this.list.get(e).filter(function(e){return e!==t});return this.list.set(e,n),this}return this.list.delete(e),this},cancelEmit:function(e){var t=this.emitQueue.get(e);return t&&(t.forEach(clearTimeout),this.emitQueue.delete(e)),this},emit:function(e){for(var t=this,n=arguments.length,r=Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];this.list.has(e)&&this.list.get(e).forEach(function(n){var i=setTimeout(function(){n.apply(void 0,r)},0);t.emitQueue.has(e)||t.emitQueue.set(e,[]),t.emitQueue.get(e).push(i)})}},E=["delay","staleId"];function O(e){return e.targetTouches&&e.targetTouches.length>=1?e.targetTouches[0].clientX:e.clientX}function w(e){return e.targetTouches&&e.targetTouches.length>=1?e.targetTouches[0].clientY:e.clientY}function x(e){var t=e.closeToast,n=e.theme,r=e.ariaLabel;return(0,a.createElement)("button",{className:"Toastify__close-button Toastify__close-button--"+n,type:"button",onClick:function(e){e.stopPropagation(),t(e)},"aria-label":void 0===r?"close":r},(0,a.createElement)("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},(0,a.createElement)("path",{fillRule:"evenodd",d:"M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z"})))}function T(e){var t,n,r=e.delay,i=e.isRunning,o=e.closeToast,u=e.type,c=e.hide,f=e.className,d=e.style,p=e.controlledProgress,g=e.progress,m=e.rtl,v=e.isIn,y=e.theme,b=l({},d,{animationDuration:r+"ms",animationPlayState:i?"running":"paused",opacity:c?0:1});p&&(b.transform="scaleX("+g+")");var _=(0,s.Z)("Toastify__progress-bar",p?"Toastify__progress-bar--controlled":"Toastify__progress-bar--animated","Toastify__progress-bar-theme--"+y,"Toastify__progress-bar--"+u,((t={})["Toastify__progress-bar--rtl"]=m,t)),S=h(f)?f({rtl:m,type:u,defaultClassName:_}):(0,s.Z)(_,f),E=((n={})[p&&g>=1?"onTransitionEnd":"onAnimationEnd"]=p&&g<1?null:function(){v&&o()},n);return(0,a.createElement)("div",Object.assign({role:"progressbar","aria-hidden":c?"true":"false","aria-label":"notification timer",className:S,style:b},E))}T.defaultProps={type:b.DEFAULT,hide:!1};var C=["theme","type"],P=function(e){var t=e.theme,n=e.type,r=c(e,C);return(0,a.createElement)("svg",Object.assign({viewBox:"0 0 24 24",width:"100%",height:"100%",fill:"colored"===t?"currentColor":"var(--toastify-icon-color-"+n+")"},r))},A={info:function(e){return(0,a.createElement)(P,Object.assign({},e),(0,a.createElement)("path",{d:"M12 0a12 12 0 1012 12A12.013 12.013 0 0012 0zm.25 5a1.5 1.5 0 11-1.5 1.5 1.5 1.5 0 011.5-1.5zm2.25 13.5h-4a1 1 0 010-2h.75a.25.25 0 00.25-.25v-4.5a.25.25 0 00-.25-.25h-.75a1 1 0 010-2h1a2 2 0 012 2v4.75a.25.25 0 00.25.25h.75a1 1 0 110 2z"}))},warning:function(e){return(0,a.createElement)(P,Object.assign({},e),(0,a.createElement)("path",{d:"M23.32 17.191L15.438 2.184C14.728.833 13.416 0 11.996 0c-1.42 0-2.733.833-3.443 2.184L.533 17.448a4.744 4.744 0 000 4.368C1.243 23.167 2.555 24 3.975 24h16.05C22.22 24 24 22.044 24 19.632c0-.904-.251-1.746-.68-2.44zm-9.622 1.46c0 1.033-.724 1.823-1.698 1.823s-1.698-.79-1.698-1.822v-.043c0-1.028.724-1.822 1.698-1.822s1.698.79 1.698 1.822v.043zm.039-12.285l-.84 8.06c-.057.581-.408.943-.897.943-.49 0-.84-.367-.896-.942l-.84-8.065c-.057-.624.25-1.095.779-1.095h1.91c.528.005.84.476.784 1.1z"}))},success:function(e){return(0,a.createElement)(P,Object.assign({},e),(0,a.createElement)("path",{d:"M12 0a12 12 0 1012 12A12.014 12.014 0 0012 0zm6.927 8.2l-6.845 9.289a1.011 1.011 0 01-1.43.188l-4.888-3.908a1 1 0 111.25-1.562l4.076 3.261 6.227-8.451a1 1 0 111.61 1.183z"}))},error:function(e){return(0,a.createElement)(P,Object.assign({},e),(0,a.createElement)("path",{d:"M11.983 0a12.206 12.206 0 00-8.51 3.653A11.8 11.8 0 000 12.207 11.779 11.779 0 0011.8 24h.214A12.111 12.111 0 0024 11.791 11.766 11.766 0 0011.983 0zM10.5 16.542a1.476 1.476 0 011.449-1.53h.027a1.527 1.527 0 011.523 1.47 1.475 1.475 0 01-1.449 1.53h-.027a1.529 1.529 0 01-1.523-1.47zM11 12.5v-6a1 1 0 012 0v6a1 1 0 11-2 0z"}))},spinner:function(){return(0,a.createElement)("div",{className:"Toastify__spinner"})}},k=function(e){var t,n,r=function(e){var t=(0,a.useState)(!1),n=t[0],r=t[1],i=(0,a.useState)(!1),o=i[0],s=i[1],u=(0,a.useRef)(null),l=(0,a.useRef)({start:0,x:0,y:0,delta:0,removalDistance:0,canCloseOnClick:!0,canDrag:!1,boundingRect:null,didMove:!1}).current,c=(0,a.useRef)(e),f=e.autoClose,d=e.pauseOnHover,p=e.closeToast,g=e.onClick,m=e.closeOnClick;function v(t){if(e.draggable){l.didMove=!1,document.addEventListener("mousemove",S),document.addEventListener("mouseup",E),document.addEventListener("touchmove",S),document.addEventListener("touchend",E);var n=u.current;l.canCloseOnClick=!0,l.canDrag=!0,l.boundingRect=n.getBoundingClientRect(),n.style.transition="",l.x=O(t.nativeEvent),l.y=w(t.nativeEvent),"x"===e.draggableDirection?(l.start=l.x,l.removalDistance=n.offsetWidth*(e.draggablePercent/100)):(l.start=l.y,l.removalDistance=n.offsetHeight*(80===e.draggablePercent?1.5*e.draggablePercent:e.draggablePercent/100))}}function y(){if(l.boundingRect){var t=l.boundingRect,n=t.top,r=t.bottom,i=t.left,o=t.right;e.pauseOnHover&&l.x>=i&&l.x<=o&&l.y>=n&&l.y<=r?_():b()}}function b(){r(!0)}function _(){r(!1)}function S(t){var r=u.current;l.canDrag&&r&&(l.didMove=!0,n&&_(),l.x=O(t),l.y=w(t),"x"===e.draggableDirection?l.delta=l.x-l.start:l.delta=l.y-l.start,l.start!==l.x&&(l.canCloseOnClick=!1),r.style.transform="translate"+e.draggableDirection+"("+l.delta+"px)",r.style.opacity=""+(1-Math.abs(l.delta/l.removalDistance)))}function E(){document.removeEventListener("mousemove",S),document.removeEventListener("mouseup",E),document.removeEventListener("touchmove",S),document.removeEventListener("touchend",E);var t=u.current;if(l.canDrag&&l.didMove&&t){if(l.canDrag=!1,Math.abs(l.delta)>l.removalDistance){s(!0),e.closeToast();return}t.style.transition="transform 0.2s, opacity 0.2s",t.style.transform="translate"+e.draggableDirection+"(0)",t.style.opacity="1"}}(0,a.useEffect)(function(){c.current=e}),(0,a.useEffect)(function(){return u.current&&u.current.addEventListener("d",b,{once:!0}),h(e.onOpen)&&e.onOpen((0,a.isValidElement)(e.children)&&e.children.props),function(){var e=c.current;h(e.onClose)&&e.onClose((0,a.isValidElement)(e.children)&&e.children.props)}},[]),(0,a.useEffect)(function(){return e.pauseOnFocusLoss&&(document.hasFocus()||_(),window.addEventListener("focus",b),window.addEventListener("blur",_)),function(){e.pauseOnFocusLoss&&(window.removeEventListener("focus",b),window.removeEventListener("blur",_))}},[e.pauseOnFocusLoss]);var x={onMouseDown:v,onTouchStart:v,onMouseUp:y,onTouchEnd:y};return f&&d&&(x.onMouseEnter=_,x.onMouseLeave=b),m&&(x.onClick=function(e){g&&g(e),l.canCloseOnClick&&p()}),{playToast:b,pauseToast:_,isRunning:n,preventExitTransition:o,toastRef:u,eventHandlers:x}}(e),i=r.isRunning,o=r.preventExitTransition,u=r.toastRef,l=r.eventHandlers,c=e.closeButton,f=e.children,d=e.autoClose,g=e.onClick,m=e.type,v=e.hideProgressBar,y=e.closeToast,b=e.transition,_=e.position,S=e.className,E=e.style,x=e.bodyClassName,C=e.bodyStyle,P=e.progressClassName,k=e.progressStyle,j=e.updateId,I=e.role,R=e.progress,D=e.rtl,N=e.toastId,L=e.deleteToast,M=e.isIn,F=e.isLoading,U=e.icon,$=e.theme,B=(0,s.Z)("Toastify__toast","Toastify__toast-theme--"+$,"Toastify__toast--"+m,((t={})["Toastify__toast--rtl"]=D,t)),z=h(S)?S({rtl:D,position:_,type:m,defaultClassName:B}):(0,s.Z)(B,S),q=!!R,V=A[m],H={theme:$,type:m},Z=V&&V(H);return!1===U?Z=void 0:h(U)?Z=U(H):(0,a.isValidElement)(U)?Z=(0,a.cloneElement)(U,H):p(U)?Z=U:F&&(Z=A.spinner()),(0,a.createElement)(b,{isIn:M,done:L,position:_,preventExitTransition:o,nodeRef:u},(0,a.createElement)("div",Object.assign({id:N,onClick:g,className:z},l,{style:E,ref:u}),(0,a.createElement)("div",Object.assign({},M&&{role:I},{className:h(x)?x({type:m}):(0,s.Z)("Toastify__toast-body",x),style:C}),Z&&(0,a.createElement)("div",{className:(0,s.Z)("Toastify__toast-icon",((n={})["Toastify--animate-icon Toastify__zoom-enter"]=!F,n))},Z),(0,a.createElement)("div",null,f)),function(e){if(e){var t={closeToast:y,type:m,theme:$};if(h(e))return e(t);if((0,a.isValidElement)(e))return(0,a.cloneElement)(e,t)}}(c),(d||q)&&(0,a.createElement)(T,Object.assign({}
34,j&&!q?{key:"pb-"+j}:{},{rtl:D,theme:$,delay:d,isRunning:i,isIn:M,closeToast:y,hide:v,type:m,style:k,className:P,controlledProgress:q,progress:R}))))},j=_({enter:"Toastify--animate Toastify__bounce-enter",exit:"Toastify--animate Toastify__bounce-exit",appendPosition:!0}),I=_({enter:"Toastify--animate Toastify__slide-enter",exit:"Toastify--animate Toastify__slide-exit",appendPosition:!0}),R=function(e){var t=function(e){var t=(0,a.useReducer)(function(e){return e+1},0)[1],n=(0,a.useState)([]),r=n[0],i=n[1],o=(0,a.useRef)(null),s=(0,a.useRef)(new Map).current,u=function(e){return -1!==r.indexOf(e)},l=(0,a.useRef)({toastKey:1,displayedToast:0,count:0,queue:[],props:e,containerId:null,isToastActive:u,getToast:function(e){return s.get(e)}}).current;function m(e){var t=e.containerId;l.props.limit&&(!t||l.containerId===t)&&(l.count-=l.queue.length,l.queue=[])}function y(e){i(function(t){return 0===e||e?t.filter(function(t){return t!==e}):[]})}function b(){var e=l.queue.shift();O(e.toastContent,e.toastProps,e.staleId)}function _(e,n){var r=n.delay,i=n.staleId,u=c(n,E);if(!(!v(e)||!o.current||l.props.enableMultiContainer&&u.containerId!==l.props.containerId||s.has(u.toastId)&&null==u.updateId)){var m,_,S=u.toastId,w=u.updateId,x=u.data,T=l.props,C=function(){return y(S)},P=null==w;P&&l.count++;var A={toastId:S,updateId:w,isLoading:u.isLoading,theme:u.theme||T.theme,icon:null!=u.icon?u.icon:T.icon,isIn:!1,key:u.key||l.toastKey++,type:u.type,closeToast:C,closeButton:u.closeButton,rtl:T.rtl,position:u.position||T.position,transition:u.transition||T.transition,className:g(u.className||T.toastClassName),bodyClassName:g(u.bodyClassName||T.bodyClassName),style:u.style||T.toastStyle,bodyStyle:u.bodyStyle||T.bodyStyle,onClick:u.onClick||T.onClick,pauseOnHover:d(u.pauseOnHover)?u.pauseOnHover:T.pauseOnHover,pauseOnFocusLoss:d(u.pauseOnFocusLoss)?u.pauseOnFocusLoss:T.pauseOnFocusLoss,draggable:d(u.draggable)?u.draggable:T.draggable,draggablePercent:u.draggablePercent||T.draggablePercent,draggableDirection:u.draggableDirection||T.draggableDirection,closeOnClick:d(u.closeOnClick)?u.closeOnClick:T.closeOnClick,progressClassName:g(u.progressClassName||T.progressClassName),progressStyle:u.progressStyle||T.progressStyle,autoClose:!u.isLoading&&(m=u.autoClose,_=T.autoClose,!1===m||f(m)&&m>0?m:_),hideProgressBar:d(u.hideProgressBar)?u.hideProgressBar:T.hideProgressBar,progress:u.progress,role:u.role||T.role,deleteToast:function(){s.delete(S);var e=l.queue.length;if(l.count=0===S||S?l.count-1:l.count-l.displayedToast,l.count<0&&(l.count=0),e>0){var n=0===S||S?1:l.props.limit;if(1===e||1===n)l.displayedToast++,b();else{var r=n>e?e:n;l.displayedToast=r;for(var i=0;i<r;i++)b()}}else t()}};h(u.onOpen)&&(A.onOpen=u.onOpen),h(u.onClose)&&(A.onClose=u.onClose),A.closeButton=T.closeButton,!1===u.closeButton||v(u.closeButton)?A.closeButton=u.closeButton:!0===u.closeButton&&(A.closeButton=!v(T.closeButton)||T.closeButton);var k=e;(0,a.isValidElement)(e)&&!p(e.type)?k=(0,a.cloneElement)(e,{closeToast:C,toastProps:A,data:x}):h(e)&&(k=e({closeToast:C,toastProps:A,data:x})),T.limit&&T.limit>0&&l.count>T.limit&&P?l.queue.push({toastContent:k,toastProps:A,staleId:i}):f(r)&&r>0?setTimeout(function(){O(k,A,i)},r):O(k,A,i)}}function O(e,t,n){var r=t.toastId;n&&s.delete(n),s.set(r,{content:e,props:t}),i(function(e){return[].concat(e,[r]).filter(function(e){return e!==n})})}return(0,a.useEffect)(function(){return l.containerId=e.containerId,S.cancelEmit(3).on(0,_).on(1,function(e){return o.current&&y(e)}).on(5,m).emit(2,l),function(){return S.emit(3,l)}},[]),(0,a.useEffect)(function(){l.isToastActive=u,l.displayedToast=r.length,S.emit(4,r.length,e.containerId)},[r]),(0,a.useEffect)(function(){l.props=e}),{getToastToRender:function(t){var n=new Map,r=Array.from(s.values());return e.newestOnTop&&r.reverse(),r.forEach(function(e){var t=e.props.position;n.has(t)||n.set(t,[]),n.get(t).push(e)}),Array.from(n,function(e){return t(e[0],e[1])})},containerRef:o,isToastActive:u}}(e),n=t.getToastToRender,r=t.containerRef,i=t.isToastActive,o=e.className,u=e.style,m=e.rtl,y=e.containerId;return(0,a.createElement)("div",{ref:r,className:"Toastify",id:y},n(function(e,t){var n,r,c=t.length?l({},u):l({},u,{pointerEvents:"none"});return(0,a.createElement)("div",{className:(r=(0,s.Z)("Toastify__toast-container","Toastify__toast-container--"+e,((n={})["Toastify__toast-container--rtl"]=m,n)),h(o)?o({position:e,rtl:m,defaultClassName:r}):(0,s.Z)(r,g(o))),style:c,key:"container-"+e},t.map(function(e){var t=e.content,n=e.props;return(0,a.createElement)(k,Object.assign({},n,{isIn:i(n.toastId),key:"toast-"+n.key,closeButton:!0===n.closeButton?x:n.closeButton}),t)}))}))};R.defaultProps={position:y.TOP_RIGHT,transition:j,rtl:!1,autoClose:5e3,hideProgressBar:!1,closeButton:x,pauseOnHover:!0,pauseOnFocusLoss:!0,closeOnClick:!0,newestOnTop:!1,draggable:!0,draggablePercent:80,draggableDirection:"x",role:"alert",theme:"light"};var D=new Map,N=[],L=!1;function M(){return Math.random().toString(36).substring(2,9)}function F(e,t){return D.size>0?S.emit(0,e,t):(N.push({content:e,options:t}),L&&m&&(L=!1,i=document.createElement("div"),document.body.appendChild(i),(0,u.render)((0,a.createElement)(R,Object.assign({}
34,o)),i))),t.toastId}function U(e,t){return l({},t,{type:t&&t.type||e,toastId:t&&(p(t.toastId)||f(t.toastId))?t.toastId:M()})}function $(e){return function(t,n){return F(t,U(e,n))}}function B(e,t){return F(e,U(b.DEFAULT,t))}B.loading=function(e,t){return F(e,U(b.DEFAULT,l({isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1},t)))},B.promise=function(e,t,n){var r,i=t.pending,o=t.error,a=t.success;i&&(r=p(i)?B.loading(i,n):B.loading(i.render,l({},n,i)));var s={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null},u=function(e,t,i){if(null==t){B.dismiss(r);return}var o=l({type:e},s,n,{data:i}),a=p(t)?{render:t}:t;return r?B.update(r,l({},o,a)):B(a.render,l({},o,a)),i},c=h(e)?e():e;return c.then(function(e){return u("success",a,e)}).catch(function(e){return u("error",o,e)}),c},B.success=$(b.SUCCESS),B.info=$(b.INFO),B.error=$(b.ERROR),B.warning=$(b.WARNING),B.warn=B.warning,B.dark=function(e,t){return F(e,U(b.DEFAULT,l({theme:"dark"},t)))},B.dismiss=function(e){return S.emit(1,e)},B.clearWaitingQueue=function(e){return void 0===e&&(e={}),S.emit(5,e)},B.isActive=function(e){var t=!1;return D.forEach(function(n){n.isToastActive&&n.isToastActive(e)&&(t=!0)}),t},B.update=function(e,t){void 0===t&&(t={}),setTimeout(function(){var n,i,o=(n=t.containerId,(i=D.get(n||r))?i.getToast(e):null);if(o){var a=o.props,s=o.content,u=l({},a,t,{toastId:t.toastId||e,updateId:M()});u.toastId!==e&&(u.staleId=e);var c=u.render||s;delete u.render,F(c,u)}},0)},B.done=function(e){B.update(e,{progress:1})},B.onChange=function(e){return h(e)&&S.on(4,e),function(){h(e)&&S.off(4,e)}},B.configure=function(e){void 0===e&&(e={}),L=!0,o=e},B.POSITION=y,B.TYPE=b,S.on(2,function(e){r=e.containerId||e,D.set(r,e),N.forEach(function(e){S.emit(0,e.content,e.options)}),N=[]}).on(3,function(e){D.delete(e.containerId||e),0===D.size&&S.off(0).off(1).off(5),m&&i&&document.body.removeChild(i)})},80500:function(e){"use strict";e.exports=(e,t)=>{if(!("string"==typeof e&&"string"==typeof t))throw TypeError("Expected the arguments to be of type `string`");if(""===t)return[e];let n=e.indexOf(t);return -1===n?[e]:[e.slice(0,n),e.slice(n+t.length)]}},70610:function(e){"use strict";e.exports=e=>encodeURIComponent(e).replace(/[!'()*]/g,e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`)},11742:function(e){e.exports=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],r=0;r<e.rangeCount;r++)n.push(e.getRangeAt(r));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null}return e.removeAllRanges(),function(){"Caret"===e.type&&e.removeAllRanges(),e.rangeCount||n.forEach(function(t){e.addRange(t)}
34),t&&t.focus()}}},65885:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(76489);function i(e,t){void 0===t&&(t={});var n,r=e&&"j"===e[0]&&":"===e[1]?e.substr(2):e;if(void 0===(n=t.doNotParse)&&(n=!r||"{"!==r[0]&&"["!==r[0]&&'"'!==r[0]),!n)try{return JSON.parse(r)}catch(e){}return e}var o=function(){return(o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},a=function(){function e(e,t){var n=this;this.changeListeners=[],this.HAS_DOCUMENT_COOKIE=!1,this.cookies="string"==typeof e?r.Q(e,t):"object"==typeof e&&null!==e?e:{},new Promise(function(){n.HAS_DOCUMENT_COOKIE="object"==typeof document&&"string"==typeof document.cookie}).catch(function(){})}return e.prototype._updateBrowserValues=function(e){this.HAS_DOCUMENT_COOKIE&&(this.cookies=r.Q(document.cookie,e))},e.prototype._emitChange=function(e){for(var t=0;t<this.changeListeners.length;++t)this.changeListeners[t](e)},e.prototype.get=function(e,t,n){return void 0===t&&(t={}),this._updateBrowserValues(n),i(this.cookies[e],t)},e.prototype.getAll=function(e,t){void 0===e&&(e={}),this._updateBrowserValues(t);var n={};for(var r in this.cookies)n[r]=i(this.cookies[r],e);return n},e.prototype.set=function(e,t,n){var i;"object"==typeof t&&(t=JSON.stringify(t)),this.cookies=o(o({},this.cookies),((i={})[e]=t,i)),this.HAS_DOCUMENT_COOKIE&&(document.cookie=r.q(e,t,n)),this._emitChange({name:e,value:t,options:n})},e.prototype.remove=function(e,t){var n=t=o(o({},t),{expires:new Date(1970,1,1,0,0,1),maxAge:0});this.cookies=o({},this.cookies),delete this.cookies[e],this.HAS_DOCUMENT_COOKIE&&(document.cookie=r.q(e,"",n)),this._emitChange({name:e,value:void 0,options:t})},e.prototype.addChangeListener=function(e){this.changeListeners.push(e)},e.prototype.removeChangeListener=function(e){var t=this.changeListeners.indexOf(e);t>=0&&this.changeListeners.splice(t,1)},e}()},83878:function(e,t,n){"use strict";function r(e){if(Array.isArray(e))return e}n.d(t,{Z:function(){return r}})},15671:function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}n.d(t,{Z:function(){return r}})},43144:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(83997);function i(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,(0,r.Z)(i.key),i)}}function o(e,t,n){return t&&i(e.prototype,t),n&&i(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}},4942:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(83997);function i(e,t,n){return(t=(0,r.Z)(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},87462:function(e,t,n){"use strict";function r(){return(r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}n.d(t,{Z:function(){return r}})},94578:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(89611);function i(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,(0,r.Z)(e,t)}},25267:function(e,t,n){"use strict";function r(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}n.d(t,{Z:function(){return r}})},89611:function(e,t,n){"use strict";function r(e,t){return(r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}n.d(t,{Z:function(){return r}})},83997:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(71002);function i(e){var t=function(e,t){if("object"!=(0,r.Z)(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=(0,r.Z)(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==(0,r.Z)(t)?t:String(t)}},71002:function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}n.d(t,{Z:function(){return r}})},81563:function(e,t,n){"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function i(e,t){if(e){if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return r(e,t)}}n.d(t,{Z:function(){return i}})},61363:function(e,t,n){"use strict";n.d(t,{R:function(){return i}});var r,i=((r=i||{}).Space=" ",r.Enter="Enter",r.Escape="Escape",r.Backspace="Backspace",r.Delete="Delete",r.ArrowLeft="ArrowLeft",r.ArrowUp="ArrowUp",r.ArrowRight="ArrowRight",r.ArrowDown="ArrowDown",r.Home="Home",r.End="End",r.PageUp="PageUp",r.PageDown="PageDown",r.Tab="Tab",r)},8390:function(e,t,n){"use strict";n.d(t,{u:function(){return D}});var r,i,o=n(67294),a=n(12351),s=n(16567),u=n(32984),l=n(19946),c=n(16723);function f(){let e=(0,o.useRef)(!1);return(0,c.e)(()=>(e.current=!0,()=>{e.current=!1}),[]),e}var d=n(3855),p=n(82180),h=n(23784),g=n(9362);function m(e,...t){e&&t.length>0&&e.classList.add(...t)}function v(e,...t){e&&t.length>0&&e.classList.remove(...t)}var y=((r=y||{}).Ended="ended",r.Cancelled="cancelled",r),b=n(94192),_=n(73781);function S(e=""){return e.split(" ").filter(e=>e.trim().length>1)}let E=(0,o.createContext)(null);E.displayName="TransitionContext";var O=((i=O||{}).Visible="visible",i.Hidden="hidden",i);let w=(0,o.createContext)(null);function x(e){return"children"in e?x(e.children):e.current.filter(({state:e})=>"visible"===e).length>0}function T(e){let t=(0,d.E)(e),n=(0,o.useRef)([]),r=f(),i=(0,_.z)((e,i=a.l4.Hidden)=>{var o;let s=n.current.findIndex(({id:t})=>t===e);-1!==s&&((0,u.E)(i,{[a.l4.Unmount](){n.current.splice(s,1)},[a.l4.Hidden](){n.current[s].state="hidden"}}),o=()=>{var e;!x(n)&&r.current&&(null==(e=t.current)||e.call(t))},"function"==typeof queueMicrotask?queueMicrotask(o):Promise.resolve().then(o).catch(e=>setTimeout(()=>{throw e})))}),s=(0,_.z)(e=>{let t=n.current.find(({id:t})=>t===e);return t?"visible"!==t.state&&(t.state="visible"):n.current.push({id:e,state:"visible"}),()=>i(e,a.l4.Unmount)});return(0,o.useMemo)(()=>({children:n,register:s,unregister:i}),[s,i,n])}function C(){}w.displayName="NestingContext";let P=["beforeEnter","afterEnter","beforeLeave","afterLeave"];function A(e){var t;let n={};for(let r of P)n[r]=null!=(t=e[r])?t:C;return n}let k=a.AN.RenderStrategy,j=(0,a.yV)(function(e,t){var n;
34let r,{beforeEnter:i,afterEnter:O,beforeLeave:C,afterLeave:P,enter:j,enterFrom:I,enterTo:R,entered:D,leave:N,leaveFrom:L,leaveTo:M,...F}=e,U=(0,o.useRef)(null),$=(0,h.T)(U,t),[B,z]=(0,o.useState)("visible"),q=F.unmount?a.l4.Unmount:a.l4.Hidden,{show:V,appear:H,initial:Z}=function(){let e=(0,o.useContext)(E);if(null===e)throw Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}(),{register:W,unregister:Q}=function(){let e=(0,o.useContext)(w);if(null===e)throw Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}(),G=(0,o.useRef)(null),K=(0,l.M)();(0,o.useEffect)(()=>{if(K)return W(K)},[W,K]),(0,o.useEffect)(()=>{if(q===a.l4.Hidden&&K){if(V&&"visible"!==B){z("visible");return}(0,u.E)(B,{hidden:()=>Q(K),visible:()=>W(K)})}},[B,K,W,Q,V,q]);let Y=(0,d.E)({enter:S(j),enterFrom:S(I),enterTo:S(R),entered:S(D),leave:S(N),leaveFrom:S(L),leaveTo:S(M)}),J=(n={beforeEnter:i,afterEnter:O,beforeLeave:C,afterLeave:P},r=(0,o.useRef)(A(n)),(0,o.useEffect)(()=>{r.current=A(n)},[n]),r),X=(0,p.H)();(0,o.useEffect)(()=>{if(X&&"visible"===B&&null===U.current)throw Error("Did you forget to passthrough the `ref` to the actual DOM node?")},[U,B,X]);let ee=Z&&!H,et=!X||ee||G.current===V?"idle":V?"enter":"leave",en=(0,o.useRef)(!1),er=T(()=>{en.current||(z("hidden"),Q(K))});return function({container:e,direction:t,classes:n,events:r,onStart:i,onStop:o}){let a=f(),s=(0,b.G)(),l=(0,d.E)(t),p=(0,_.z)(()=>(0,u.E)(l.current,{enter:()=>r.current.beforeEnter(),leave:()=>r.current.beforeLeave(),idle:()=>{}})),h=(0,_.z)(()=>(0,u.E)(l.current,{enter:()=>r.current.afterEnter(),leave:()=>r.current.afterLeave(),idle:()=>{}}));(0,c.e)(()=>{let t=(0,g.k)();s.add(t.dispose);let r=e.current;if(r&&"idle"!==l.current&&a.current){var c,f,d;let e,a,s,b,_,S,E;return t.dispose(),p(),i.current(l.current),t.add((c=n.current,f="enter"===l.current,d=e=>{t.dispose(),(0,u.E)(e,{[y.Ended](){h(),o.current(l.current)},[y.Cancelled]:()=>{}})},a=f?"enter":"leave",s=(0,g.k)(),b=void 0!==d?(e={called:!1},(...t)=>{if(!e.called)return e.called=!0,d(...t)}):()=>{},_=(0,u.E)(a,{enter:()=>c.enter,leave:()=>c.leave}),S=(0,u.E)(a,{enter:()=>c.enterTo,leave:()=>c.leaveTo}),E=(0,u.E)(a,{enter:()=>c.enterFrom,leave:()=>c.leaveFrom}),v(r,...c.enter,...c.enterTo,...c.enterFrom,...c.leave,...c.leaveFrom,...c.leaveTo,...c.entered),m(r,..._,...E),s.nextFrame(()=>{v(r,...E),m(r,...S),function(e,t){let n=(0,g.k)();if(!e)return n.dispose;let{transitionDuration:r,transitionDelay:i}=getComputedStyle(e),[o,a]=[r,i].map(e=>{let[t=0]=e.split(",").filter(Boolean).map(e=>e.includes("ms")?parseFloat(e):1e3*parseFloat(e)).sort((e,t)=>t-e);return t});if(o+a!==0){let r=[];r.push(n.addEventListener(e,"transitionrun",i=>{i.target===i.currentTarget&&(r.splice(0).forEach(e=>e()),r.push(n.addEventListener(e,"transitionend",e=>{e.target===e.currentTarget&&(t("ended"),r.splice(0).forEach(e=>e()))}),n.addEventListener(e,"transitioncancel",e=>{e.target===e.currentTarget&&(t("cancelled"),r.splice(0).forEach(e=>e()))})))}))}else t("ended");n.add(()=>t("cancelled")),n.dispose}(r,e=>("ended"===e&&(v(r,..._),m(r,...c.entered)),b(e)))}),s.dispose)),t.dispose}},[t])}({container:U,classes:Y,events:J,direction:et,onStart:(0,d.E)(()=>{en.current=!0}),onStop:(0,d.E)(e=>{en.current=!1,"leave"!==e||x(er)||(z("hidden"),Q(K))})}),(0,o.useEffect)(()=>{ee&&(q===a.l4.Hidden?G.current=null:G.current=V)},[V,ee,B]),o.createElement(w.Provider,{value:er},o.createElement(s.up,{value:(0,u.E)(B,{visible:s.ZM.Open,hidden:s.ZM.Closed})},(0,a.sY)({ourProps:{ref:$},theirProps:F,defaultTag:"div",features:k,visible:"visible"===B,name:"Transition.Child"})))}),I=(0,a.yV)(function(e,t){let{show:n,appear:r=!1,unmount:i,...l}=e,f=(0,o.useRef)(null),d=(0,h.T)(f,t);(0,p.H)();let g=(0,s.oJ)();if(void 0===n&&null!==g&&(n=(0,u.E)(g,{[s.ZM.Open]:!0,[s.ZM.Closed]:!1})),![!0,!1].includes(n))throw Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");let[m,v]=(0,o.useState)(n?"visible":"hidden"),y=T(()=>{v("hidden")}),[b,_]=(0,o.useState)(!0),S=(0,o.useRef)([n]);(0,c.e)(()=>{!1!==b&&S.current[S.current.length-1]!==n&&(S.current.push(n),_(!1))},[S,n]);let O=(0,o.useMemo)(()=>({show:n,appear:r,initial:b}),[n,r,b]);(0,o.useEffect)(()=>
34{if(n)v("visible");else if(x(y)){let e=f.current;if(!e)return;let t=e.getBoundingClientRect();0===t.x&&0===t.y&&0===t.width&&0===t.height&&v("hidden")}else v("hidden")},[n,y]);let C={unmount:i};return o.createElement(w.Provider,{value:y},o.createElement(E.Provider,{value:O},(0,a.sY)({ourProps:{...C,as:o.Fragment,children:o.createElement(j,{ref:d,...C,...l})},theirProps:{},defaultTag:o.Fragment,features:k,visible:"visible"===m,name:"Transition"})))}),R=(0,a.yV)(function(e,t){let n=null!==(0,o.useContext)(E),r=null!==(0,s.oJ)();return o.createElement(o.Fragment,null,!n&&r?o.createElement(I,{ref:t,...e}):o.createElement(j,{ref:t,...e}))}),D=Object.assign(I,{Child:R,Root:I})},94192:function(e,t,n){"use strict";n.d(t,{G:function(){return o}});var r=n(67294),i=n(9362);function o(){let[e]=(0,r.useState)(i.k);return(0,r.useEffect)(()=>()=>e.dispose(),[e]),e}},73781:function(e,t,n){"use strict";n.d(t,{z:function(){return o}});var r=n(67294),i=n(3855);let o=function(e){let t=(0,i.E)(e);return r.useCallback((...e)=>t.current(...e),[t])}},19946:function(e,t,n){"use strict";n.d(t,{M:function(){return l}});var r,i=n(67294),o=n(16723),a=n(82180);let s=0;function u(){return++s}let l=null!=(r=i.useId)?r:function(){let e=(0,a.H)(),[t,n]=i.useState(e?u:null);return(0,o.e)(()=>{null===t&&n(u())},[t]),null!=t?""+t:void 0}},16723:function(e,t,n){"use strict";n.d(t,{e:function(){return i}});var r=n(67294);let i="undefined"!=typeof window?r.useLayoutEffect:r.useEffect},3855:function(e,t,n){"use strict";n.d(t,{E:function(){return o}});var r=n(67294),i=n(16723);function o(e){let t=(0,r.useRef)(e);return(0,i.e)(()=>{t.current=e},[e]),t}},14157:function(e,t,n){"use strict";n.d(t,{f:function(){return a}});var r=n(67294),i=n(16723);function o(e){var t;if(e.type)return e.type;let n=null!=(t=e.as)?t:"button";if("string"==typeof n&&"button"===n.toLowerCase())return"button"}function a(e,t){let[n,a]=(0,r.useState)(()=>o(e));return(0,i.e)(()=>{a(o(e))},[e.type,e.as]),(0,i.e)(()=>{n||!t.current||t.current instanceof HTMLButtonElement&&!t.current.hasAttribute("type")&&a("button")},[n,t]),n}},82180:function(e,t,n){"use strict";n.d(t,{H:function(){return o}});var r=n(67294);let i={serverHandoffComplete:!1};function o(){let[e,t]=(0,r.useState)(i.serverHandoffComplete);return(0,r.useEffect)(()=>{!0!==e&&t(!0)},[e]),(0,r.useEffect)(()=>{!1===i.serverHandoffComplete&&(i.serverHandoffComplete=!0)},[]),e}},23784:function(e,t,n){"use strict";n.d(t,{T:function(){return s},h:function(){return a}});var r=n(67294),i=n(73781);let o=Symbol();function a(e,t=!0){return Object.assign(e,{[o]:t})}function s(...e){let t=(0,r.useRef)(e);(0,r.useEffect)(()=>{t.current=e},[e]);let n=(0,i.z)(e=>{for(let n of t.current)null!=n&&("function"==typeof n?n(e):n.current=e)});return e.every(e=>null==e||(null==e?void 0:e[o]))?void 0:n}},46045:function(e,t,n){"use strict";n.d(t,{A:function(){return o},_:function(){return a}});var r,i=n(12351),o=((r=o||{})[r.None=1]="None",r[r.Focusable=2]="Focusable",r[r.Hidden=4]="Hidden",r);let a=(0,i.yV)(function(e,t){let{features:n=1,...r}=e,o={ref:t,"aria-hidden":(2&n)==2||void 0,style:{position:"absolute",width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...(4&n)==4&&(2&n)!=2&&{display:"none"}}};return(0,i.sY)({ourProps:o,theirProps:r,slot:{},defaultTag:"div",name:"Hidden"})})},16567:function(e,t,n){"use strict";n.d(t,{ZM:function(){return a},oJ:function(){return s},up:function(){return u}});var r,i=n(67294);let o=(0,i.createContext)(null);o.displayName="OpenClosedContext";var a=((r=a||{})[r.Open=0]="Open",r[r.Closed=1]="Closed",r);function s(){return(0,i.useContext)(o)}function u({value:e,children:t}){return i.createElement(o.Provider,{value:e},t)}},9362:function(e,t,n){"use strict";function r(){let e=[],t=[],n={enqueue(e){t.push(e)},addEventListener:(e,t,r,i)=>(e.addEventListener(t,r,i),n.add(()=>e.removeEventListener(t,r,i))),requestAnimationFrame(...e){let t=requestAnimationFrame(...e);return n.add(()=>cancelAnimationFrame(t))},nextFrame:(...e)=>n.requestAnimationFrame(()=>n.requestAnimationFrame(...e)),setTimeout(...e){let t=setTimeout(...e);return n.add(()=>clearTimeout(t))},add:t=>(e.push(t),()=>{let n=e.indexOf(t);if(n>=0){let[t]=e.splice(n,1);t()}}),dispose(){for(let t of e.splice(0))t()},async workQueue(){for(let e of t.splice(0))await e()}};return n}n.d(t,{k:function(){return r}})},84575:function(e,t,n){"use strict";n.d(t,{GO:function(){return p},TO:function(){return c},jA:function(){return v},sP:function(){return g},tJ:function(){return h},z2:function(){return m}});var r,i,o,a,s=n(32984),u=n(15466);let l=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map(e=>`${e}:not([tabindex='-1'])`).join(",");var c=((r=c||{})[r.First=1]="First",r[r.Previous=2]="Previous",r[r.Next=4]="Next",r[r.Last=8]="Last",r[r.WrapAround=16]="WrapAround",r[r.NoScroll=32]="NoScroll",r),f=((i=f||{})[i.Error=0]="Error",i[i.Overflow=1]="Overflow",i[i.Success=2]="Success",i[i.Underflow=3]="Underflow",i),d=((o=d||{})[o.Previous=-1]="Previous",o[o.Next=1]="Next",o);function p(e=document.body){return null==e?[]:Array.from(e.querySelectorAll(l))}var h=((a=h||{})[a.Strict=0]="Strict",a[a.Loose=1]="Loose",a);function g(e,t=0){var n;return e!==(null==(n=(0,u.r)(e))?void 0:n.body)&&(0,s.E)(t,{0:()=>e.matches(l),1(){let t=e;for(;null!==t;){if(t.matches(l))return!0;t=t.parentElement}return!1}})}function m(e,t=e=>e){return e.slice().sort((e,n)=>{let r=t(e),i=t(n);if(null===r||null===i)return 0;let o=r.compareDocumentPosition(i);return o&Node.DOCUMENT_POSITION_FOLLOWING?-1:o&Node.DOCUMENT_POSITION_PRECEDING?1:0})}function v(e,t,n=!0){var r,i,o;let a=Array.isArray(e)?e.length>0?e[0].ownerDocument:document:e.ownerDocument,s=Array.isArray(e)?n?m(e):e:p(e),u=a.activeElement,l=(()=>
34{if(5&t)return 1;if(10&t)return -1;throw Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),c=(()=>{if(1&t)return 0;if(2&t)return Math.max(0,s.indexOf(u))-1;if(4&t)return Math.max(0,s.indexOf(u))+1;if(8&t)return s.length-1;throw Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),f=32&t?{preventScroll:!0}:{},d=0,h=s.length,g;do{if(d>=h||d+h<=0)return 0;let e=c+d;if(16&t)e=(e+h)%h;else{if(e<0)return 3;if(e>=h)return 1}null==(g=s[e])||g.focus(f),d+=l}while(g!==a.activeElement);return 6&t&&null!=(o=null==(i=null==(r=g)?void 0:r.matches)?void 0:i.call(r,"textarea,input"))&&o&&g.select(),g.hasAttribute("tabindex")||g.setAttribute("tabindex","0"),2}},32984:function(e,t,n){"use strict";function r(e,t,...n){if(e in t){let r=t[e];return"function"==typeof r?r(...n):r}let i=Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map(e=>`"${e}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(i,r),i}n.d(t,{E:function(){return r}})},15466:function(e,t,n){"use strict";function r(e){return"undefined"==typeof window?null:e instanceof Node?e.ownerDocument:null!=e&&e.hasOwnProperty("current")&&e.current instanceof Node?e.current.ownerDocument:document}n.d(t,{r:function(){return r}})},12351:function(e,t,n){"use strict";n.d(t,{AN:function(){return s},l4:function(){return u},oA:function(){return p},sY:function(){return l},yV:function(){return d}});var r,i,o=n(67294),a=n(32984),s=((r=s||{})[r.None=0]="None",r[r.RenderStrategy=1]="RenderStrategy",r[r.Static=2]="Static",r),u=((i=u||{})[i.Unmount=0]="Unmount",i[i.Hidden=1]="Hidden",i);function l({ourProps:e,theirProps:t,slot:n,defaultTag:r,features:i,visible:o=!0,name:s}){let u=f(t,e);if(o)return c(u,n,r,s);let l=null!=i?i:0;if(2&l){let{static:e=!1,...t}=u;if(e)return c(t,n,r,s)}if(1&l){let{unmount:e=!0,...t}=u;return(0,a.E)(e?0:1,{0:()=>null,1:()=>c({...t,hidden:!0,style:{display:"none"}},n,r,s)})}return c(u,n,r,s)}function c(e,t={},n,r){let{as:i=n,children:a,refName:s="ref",...u}=h(e,["unmount","static"]),l=void 0!==e.ref?{[s]:e.ref}:{},c="function"==typeof a?a(t):a;u.className&&"function"==typeof u.className&&(u.className=u.className(t));let d={};if(i===o.Fragment&&Object.keys(p(u)).length>0){if(!(0,o.isValidElement)(c)||Array.isArray(c)&&c.length>1)throw Error(['Passing props on "Fragment"!',"",`The current component <${r} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(u).map(e=>`  - ${e}`).join(`
35`),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map(e=>`  - ${e}`).join(`
36`)].join(`
37`));return(0,o.cloneElement)(c,Object.assign({},f(c.props,p(h(u,["ref"]))),d,l))}return(0,o.createElement)(i,Object.assign({},h(u,["ref"]),i!==o.Fragment&&l,i!==o.Fragment&&d),c)}function f(...e){if(0===e.length)return{};if(1===e.length)return e[0];let t={},n={};for(let r of e)for(let e in r)e.startsWith("on")&&"function"==typeof r[e]?(null!=n[e]||(n[e]=[]),n[e].push(r[e])):t[e]=r[e];if(t.disabled||t["aria-disabled"])return Object.assign(t,Object.fromEntries(Object.keys(n).map(e=>[e,void 0])));for(let e in n)Object.assign(t,{[e](t,...r){for(let i of n[e]){if(t.defaultPrevented)return;i(t,...r)}}});return t}function d(e){var t;return Object.assign((0,o.forwardRef)(e),{displayName:null!=(t=e.displayName)?t:e.name})}function p(e){let t=Object.assign({},e);for(let e in t)void 0===t[e]&&delete t[e];return t}function h(e,t=[]){let n=Object.assign({},e);for(let e of t)e in n&&delete n[e];return n}},66831:function(e,t,n){"use strict";n.d(t,{b:function(){return a}});var r=Object.defineProperty,i=(e,t,n)=>t in e?r(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,o=(e,t,n)=>(i(e,"symbol"!=typeof t?t+"":t,n),n);class a extends Error{constructor(e="An invalid API response was returned",t,n){super(e),o(this,"url"),o(this,"response"),this.url=t,this.response=n}}},75744:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});let r=e=>/^[a-zA-Z0-9][-a-zA-Z0-9]{2,}[a-zA-Z0-9]$/.test(e)},98737:function(e,t,n){"use strict";n.d(t,{l:function(){return a}});let r=e=>Array.isArray(e)?`[${e.map(r).join(", ")}]`:"string"==typeof e?`"${e}"`:e instanceof Date?`${e.getTime()}`:`${e}`,i=e=>(t,...n)=>{let i=n.map(r).join(", "),o=t&&n.length?", ":"";return`[${e}(${t}${o}${i})]`},o=e=>{let t=i(e);return e=>t(e)},a={at:i("at"),not:i("not"),any:i("any"),in:i("in"),fulltext:i("fulltext"),has:o("has"),missing:o("missing"),similar:(e=>{let t=i(e);return(...e)=>t("",...e)})("similar"),geopointNear:i("geopoint.near"),numberLessThan:i("number.lt"),numberGreaterThan:i("number.gt"),numberInRange:i("number.inRange"),dateAfter:i("date.after"),dateBefore:i("date.before"),dateBetween:i("date.between"),dateDayOfMonth:i("date.day-of-month"),dateDayOfMonthAfter:i("date.day-of-month-after"),dateDayOfMonthBefore:i("date.day-of-month-before"),dateDayOfWeek:i("date.day-of-week"),dateDayOfWeekAfter:i("date.day-of-week-after"),dateDayOfWeekBefore:i("date.day-of-week-before"),dateMonth:i("date.month"),dateMonthAfter:i("date.month-after"),dateMonthBefore:i("date.month-before"),dateYear:i("date.year"),dateHour:i("date.hour"),dateHourAfter:i("date.hour-after"),dateHourBefore:i("date.hour-before")}}},function(e){var t=function(t){return e(e.s=t)};e.O(0,[774,179],function(){return t(35485),t(6840),t(73035)}),_N_E=e.O()}]);
38//# sourceMappingURL=_app-d3ee81f542e80ea5.js.map

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.